* warning.m4 (GCC_WARN_CFLAGS): Only add -Wshadow for gcc-4 and above.
[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
788with_separate_debug_dir
789enable_elf_stt_common
790with_pkgversion
791with_bugurl
792enable_werror
793enable_build_warnings
794enable_maintainer_mode
795enable_install_libbfd
796enable_nls
bf993e3c 797with_zlib
81ecdfbb
RW
798'
799 ac_precious_vars='build_alias
800host_alias
801target_alias
802CC
803CFLAGS
804LDFLAGS
805LIBS
806CPPFLAGS
807CPP'
808
252b5132
RH
809
810# Initialize some variables set by options.
5464f5a1
NN
811ac_init_help=
812ac_init_version=false
81ecdfbb
RW
813ac_unrecognized_opts=
814ac_unrecognized_sep=
252b5132
RH
815# The variables have the same names as the options, with
816# dashes changed to underlines.
5464f5a1 817cache_file=/dev/null
252b5132 818exec_prefix=NONE
252b5132 819no_create=
252b5132
RH
820no_recursion=
821prefix=NONE
822program_prefix=NONE
823program_suffix=NONE
824program_transform_name=s,x,x,
825silent=
826site=
827srcdir=
252b5132
RH
828verbose=
829x_includes=NONE
830x_libraries=NONE
5464f5a1
NN
831
832# Installation directory options.
833# These are left unexpanded so users can "make install exec_prefix=/foo"
834# and all the variables that are supposed to be based on exec_prefix
835# by default will actually change.
836# Use braces instead of parens because sh, perl, etc. also accept them.
81ecdfbb 837# (The list follows the same order as the GNU Coding Standards.)
252b5132
RH
838bindir='${exec_prefix}/bin'
839sbindir='${exec_prefix}/sbin'
840libexecdir='${exec_prefix}/libexec'
81ecdfbb
RW
841datarootdir='${prefix}/share'
842datadir='${datarootdir}'
252b5132
RH
843sysconfdir='${prefix}/etc'
844sharedstatedir='${prefix}/com'
845localstatedir='${prefix}/var'
252b5132
RH
846includedir='${prefix}/include'
847oldincludedir='/usr/include'
81ecdfbb
RW
848docdir='${datarootdir}/doc/${PACKAGE}'
849infodir='${datarootdir}/info'
850htmldir='${docdir}'
851dvidir='${docdir}'
852pdfdir='${docdir}'
853psdir='${docdir}'
854libdir='${exec_prefix}/lib'
855localedir='${datarootdir}/locale'
856mandir='${datarootdir}/man'
252b5132 857
252b5132 858ac_prev=
81ecdfbb 859ac_dashdash=
252b5132
RH
860for ac_option
861do
252b5132
RH
862 # If the previous option needs an argument, assign it.
863 if test -n "$ac_prev"; then
81ecdfbb 864 eval $ac_prev=\$ac_option
252b5132
RH
865 ac_prev=
866 continue
867 fi
868
81ecdfbb
RW
869 case $ac_option in
870 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
871 *) ac_optarg=yes ;;
872 esac
252b5132
RH
873
874 # Accept the important Cygnus configure options, so we can diagnose typos.
875
81ecdfbb
RW
876 case $ac_dashdash$ac_option in
877 --)
878 ac_dashdash=yes ;;
252b5132
RH
879
880 -bindir | --bindir | --bindi | --bind | --bin | --bi)
881 ac_prev=bindir ;;
882 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
5464f5a1 883 bindir=$ac_optarg ;;
252b5132
RH
884
885 -build | --build | --buil | --bui | --bu)
5464f5a1 886 ac_prev=build_alias ;;
252b5132 887 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
5464f5a1 888 build_alias=$ac_optarg ;;
252b5132
RH
889
890 -cache-file | --cache-file | --cache-fil | --cache-fi \
891 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
892 ac_prev=cache_file ;;
893 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
894 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
5464f5a1
NN
895 cache_file=$ac_optarg ;;
896
897 --config-cache | -C)
898 cache_file=config.cache ;;
252b5132 899
81ecdfbb 900 -datadir | --datadir | --datadi | --datad)
252b5132 901 ac_prev=datadir ;;
81ecdfbb 902 -datadir=* | --datadir=* | --datadi=* | --datad=*)
5464f5a1 903 datadir=$ac_optarg ;;
252b5132 904
81ecdfbb
RW
905 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
906 | --dataroo | --dataro | --datar)
907 ac_prev=datarootdir ;;
908 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
909 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
910 datarootdir=$ac_optarg ;;
911
252b5132 912 -disable-* | --disable-*)
81ecdfbb 913 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
252b5132 914 # Reject names that are not valid shell variable names.
81ecdfbb
RW
915 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
916 as_fn_error "invalid feature name: $ac_useropt"
917 ac_useropt_orig=$ac_useropt
918 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
919 case $ac_user_opts in
920 *"
921"enable_$ac_useropt"
922"*) ;;
923 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
924 ac_unrecognized_sep=', ';;
925 esac
926 eval enable_$ac_useropt=no ;;
927
928 -docdir | --docdir | --docdi | --doc | --do)
929 ac_prev=docdir ;;
930 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
931 docdir=$ac_optarg ;;
932
933 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
934 ac_prev=dvidir ;;
935 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
936 dvidir=$ac_optarg ;;
252b5132
RH
937
938 -enable-* | --enable-*)
81ecdfbb 939 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
252b5132 940 # Reject names that are not valid shell variable names.
81ecdfbb
RW
941 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
942 as_fn_error "invalid feature name: $ac_useropt"
943 ac_useropt_orig=$ac_useropt
944 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
945 case $ac_user_opts in
946 *"
947"enable_$ac_useropt"
948"*) ;;
949 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
950 ac_unrecognized_sep=', ';;
252b5132 951 esac
81ecdfbb 952 eval enable_$ac_useropt=\$ac_optarg ;;
252b5132
RH
953
954 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
955 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
956 | --exec | --exe | --ex)
957 ac_prev=exec_prefix ;;
958 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
959 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
960 | --exec=* | --exe=* | --ex=*)
5464f5a1 961 exec_prefix=$ac_optarg ;;
252b5132
RH
962
963 -gas | --gas | --ga | --g)
964 # Obsolete; use --with-gas.
965 with_gas=yes ;;
966
5464f5a1
NN
967 -help | --help | --hel | --he | -h)
968 ac_init_help=long ;;
969 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
970 ac_init_help=recursive ;;
971 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
972 ac_init_help=short ;;
252b5132
RH
973
974 -host | --host | --hos | --ho)
5464f5a1 975 ac_prev=host_alias ;;
252b5132 976 -host=* | --host=* | --hos=* | --ho=*)
5464f5a1 977 host_alias=$ac_optarg ;;
252b5132 978
81ecdfbb
RW
979 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
980 ac_prev=htmldir ;;
981 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
982 | --ht=*)
983 htmldir=$ac_optarg ;;
984
252b5132
RH
985 -includedir | --includedir | --includedi | --included | --include \
986 | --includ | --inclu | --incl | --inc)
987 ac_prev=includedir ;;
988 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
989 | --includ=* | --inclu=* | --incl=* | --inc=*)
5464f5a1 990 includedir=$ac_optarg ;;
252b5132
RH
991
992 -infodir | --infodir | --infodi | --infod | --info | --inf)
993 ac_prev=infodir ;;
994 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
5464f5a1 995 infodir=$ac_optarg ;;
252b5132
RH
996
997 -libdir | --libdir | --libdi | --libd)
998 ac_prev=libdir ;;
999 -libdir=* | --libdir=* | --libdi=* | --libd=*)
5464f5a1 1000 libdir=$ac_optarg ;;
252b5132
RH
1001
1002 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1003 | --libexe | --libex | --libe)
1004 ac_prev=libexecdir ;;
1005 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1006 | --libexe=* | --libex=* | --libe=*)
5464f5a1 1007 libexecdir=$ac_optarg ;;
252b5132 1008
81ecdfbb
RW
1009 -localedir | --localedir | --localedi | --localed | --locale)
1010 ac_prev=localedir ;;
1011 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1012 localedir=$ac_optarg ;;
1013
252b5132 1014 -localstatedir | --localstatedir | --localstatedi | --localstated \
81ecdfbb 1015 | --localstate | --localstat | --localsta | --localst | --locals)
252b5132
RH
1016 ac_prev=localstatedir ;;
1017 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
81ecdfbb 1018 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
5464f5a1 1019 localstatedir=$ac_optarg ;;
252b5132
RH
1020
1021 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1022 ac_prev=mandir ;;
1023 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
5464f5a1 1024 mandir=$ac_optarg ;;
252b5132
RH
1025
1026 -nfp | --nfp | --nf)
1027 # Obsolete; use --without-fp.
1028 with_fp=no ;;
1029
1030 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
5464f5a1 1031 | --no-cr | --no-c | -n)
252b5132
RH
1032 no_create=yes ;;
1033
1034 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1035 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1036 no_recursion=yes ;;
1037
1038 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1039 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1040 | --oldin | --oldi | --old | --ol | --o)
1041 ac_prev=oldincludedir ;;
1042 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1043 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1044 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
5464f5a1 1045 oldincludedir=$ac_optarg ;;
252b5132
RH
1046
1047 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1048 ac_prev=prefix ;;
1049 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
5464f5a1 1050 prefix=$ac_optarg ;;
252b5132
RH
1051
1052 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1053 | --program-pre | --program-pr | --program-p)
1054 ac_prev=program_prefix ;;
1055 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1056 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
5464f5a1 1057 program_prefix=$ac_optarg ;;
252b5132
RH
1058
1059 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1060 | --program-suf | --program-su | --program-s)
1061 ac_prev=program_suffix ;;
1062 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1063 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
5464f5a1 1064 program_suffix=$ac_optarg ;;
252b5132
RH
1065
1066 -program-transform-name | --program-transform-name \
1067 | --program-transform-nam | --program-transform-na \
1068 | --program-transform-n | --program-transform- \
1069 | --program-transform | --program-transfor \
1070 | --program-transfo | --program-transf \
1071 | --program-trans | --program-tran \
1072 | --progr-tra | --program-tr | --program-t)
1073 ac_prev=program_transform_name ;;
1074 -program-transform-name=* | --program-transform-name=* \
1075 | --program-transform-nam=* | --program-transform-na=* \
1076 | --program-transform-n=* | --program-transform-=* \
1077 | --program-transform=* | --program-transfor=* \
1078 | --program-transfo=* | --program-transf=* \
1079 | --program-trans=* | --program-tran=* \
1080 | --progr-tra=* | --program-tr=* | --program-t=*)
5464f5a1 1081 program_transform_name=$ac_optarg ;;
252b5132 1082
81ecdfbb
RW
1083 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1084 ac_prev=pdfdir ;;
1085 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1086 pdfdir=$ac_optarg ;;
1087
1088 -psdir | --psdir | --psdi | --psd | --ps)
1089 ac_prev=psdir ;;
1090 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1091 psdir=$ac_optarg ;;
1092
252b5132
RH
1093 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1094 | -silent | --silent | --silen | --sile | --sil)
1095 silent=yes ;;
1096
1097 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1098 ac_prev=sbindir ;;
1099 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1100 | --sbi=* | --sb=*)
5464f5a1 1101 sbindir=$ac_optarg ;;
252b5132
RH
1102
1103 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1104 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1105 | --sharedst | --shareds | --shared | --share | --shar \
1106 | --sha | --sh)
1107 ac_prev=sharedstatedir ;;
1108 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1109 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1110 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1111 | --sha=* | --sh=*)
5464f5a1 1112 sharedstatedir=$ac_optarg ;;
252b5132
RH
1113
1114 -site | --site | --sit)
1115 ac_prev=site ;;
1116 -site=* | --site=* | --sit=*)
5464f5a1 1117 site=$ac_optarg ;;
6be7c12c 1118
252b5132
RH
1119 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1120 ac_prev=srcdir ;;
1121 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
5464f5a1 1122 srcdir=$ac_optarg ;;
252b5132
RH
1123
1124 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1125 | --syscon | --sysco | --sysc | --sys | --sy)
1126 ac_prev=sysconfdir ;;
1127 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1128 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
5464f5a1 1129 sysconfdir=$ac_optarg ;;
252b5132
RH
1130
1131 -target | --target | --targe | --targ | --tar | --ta | --t)
5464f5a1 1132 ac_prev=target_alias ;;
252b5132 1133 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
5464f5a1 1134 target_alias=$ac_optarg ;;
252b5132
RH
1135
1136 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1137 verbose=yes ;;
1138
5464f5a1
NN
1139 -version | --version | --versio | --versi | --vers | -V)
1140 ac_init_version=: ;;
252b5132
RH
1141
1142 -with-* | --with-*)
81ecdfbb 1143 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
252b5132 1144 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1145 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1146 as_fn_error "invalid package name: $ac_useropt"
1147 ac_useropt_orig=$ac_useropt
1148 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1149 case $ac_user_opts in
1150 *"
1151"with_$ac_useropt"
1152"*) ;;
1153 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1154 ac_unrecognized_sep=', ';;
252b5132 1155 esac
81ecdfbb 1156 eval with_$ac_useropt=\$ac_optarg ;;
252b5132
RH
1157
1158 -without-* | --without-*)
81ecdfbb 1159 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
252b5132 1160 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1161 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1162 as_fn_error "invalid package name: $ac_useropt"
1163 ac_useropt_orig=$ac_useropt
1164 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1165 case $ac_user_opts in
1166 *"
1167"with_$ac_useropt"
1168"*) ;;
1169 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1170 ac_unrecognized_sep=', ';;
1171 esac
1172 eval with_$ac_useropt=no ;;
252b5132
RH
1173
1174 --x)
1175 # Obsolete; use --with-x.
1176 with_x=yes ;;
1177
1178 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1179 | --x-incl | --x-inc | --x-in | --x-i)
1180 ac_prev=x_includes ;;
1181 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1182 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
5464f5a1 1183 x_includes=$ac_optarg ;;
252b5132
RH
1184
1185 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1186 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1187 ac_prev=x_libraries ;;
1188 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1189 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
5464f5a1 1190 x_libraries=$ac_optarg ;;
252b5132 1191
81ecdfbb
RW
1192 -*) as_fn_error "unrecognized option: \`$ac_option'
1193Try \`$0 --help' for more information."
252b5132
RH
1194 ;;
1195
5464f5a1
NN
1196 *=*)
1197 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1198 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1199 case $ac_envvar in #(
1200 '' | [0-9]* | *[!_$as_cr_alnum]* )
1201 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1202 esac
1203 eval $ac_envvar=\$ac_optarg
5464f5a1
NN
1204 export $ac_envvar ;;
1205
252b5132 1206 *)
5464f5a1 1207 # FIXME: should be removed in autoconf 3.0.
81ecdfbb 1208 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
5464f5a1 1209 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
81ecdfbb 1210 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
5464f5a1 1211 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
252b5132
RH
1212 ;;
1213
1214 esac
1215done
1216
1217if test -n "$ac_prev"; then
5464f5a1 1218 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
81ecdfbb 1219 as_fn_error "missing argument to $ac_option"
252b5132 1220fi
252b5132 1221
81ecdfbb
RW
1222if test -n "$ac_unrecognized_opts"; then
1223 case $enable_option_checking in
1224 no) ;;
1225 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1226 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
5464f5a1 1227 esac
81ecdfbb 1228fi
6be7c12c 1229
81ecdfbb
RW
1230# Check all directory arguments for consistency.
1231for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1232 datadir sysconfdir sharedstatedir localstatedir includedir \
1233 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1234 libdir localedir mandir
252b5132 1235do
81ecdfbb
RW
1236 eval ac_val=\$$ac_var
1237 # Remove trailing slashes.
5464f5a1 1238 case $ac_val in
81ecdfbb
RW
1239 */ )
1240 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1241 eval $ac_var=\$ac_val;;
252b5132 1242 esac
81ecdfbb
RW
1243 # Be sure to have absolute directory names.
1244 case $ac_val in
1245 [\\/$]* | ?:[\\/]* ) continue;;
1246 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1247 esac
1248 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
252b5132
RH
1249done
1250
5464f5a1
NN
1251# There might be people who depend on the old broken behavior: `$host'
1252# used to hold the argument of --host etc.
1253# FIXME: To remove some day.
1254build=$build_alias
1255host=$host_alias
1256target=$target_alias
1257
1258# FIXME: To remove some day.
1259if test "x$host_alias" != x; then
1260 if test "x$build_alias" = x; then
1261 cross_compiling=maybe
81ecdfbb 1262 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
5464f5a1
NN
1263 If a cross compiler is detected then cross compile mode will be used." >&2
1264 elif test "x$build_alias" != "x$host_alias"; then
1265 cross_compiling=yes
1266 fi
1267fi
252b5132 1268
5464f5a1
NN
1269ac_tool_prefix=
1270test -n "$host_alias" && ac_tool_prefix=$host_alias-
1271
1272test "$silent" = yes && exec 6>/dev/null
252b5132 1273
252b5132 1274
81ecdfbb
RW
1275ac_pwd=`pwd` && test -n "$ac_pwd" &&
1276ac_ls_di=`ls -di .` &&
1277ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1278 as_fn_error "working directory cannot be determined"
1279test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1280 as_fn_error "pwd does not report name of working directory"
1281
1282
252b5132
RH
1283# Find the source files, if location was not specified.
1284if test -z "$srcdir"; then
1285 ac_srcdir_defaulted=yes
81ecdfbb
RW
1286 # Try the directory containing this script, then the parent directory.
1287 ac_confdir=`$as_dirname -- "$as_myself" ||
1288$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1289 X"$as_myself" : 'X\(//\)[^/]' \| \
1290 X"$as_myself" : 'X\(//\)$' \| \
1291 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1292$as_echo X"$as_myself" |
1293 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1294 s//\1/
1295 q
1296 }
1297 /^X\(\/\/\)[^/].*/{
1298 s//\1/
1299 q
1300 }
1301 /^X\(\/\/\)$/{
1302 s//\1/
1303 q
1304 }
1305 /^X\(\/\).*/{
1306 s//\1/
1307 q
1308 }
1309 s/.*/./; q'`
252b5132 1310 srcdir=$ac_confdir
81ecdfbb 1311 if test ! -r "$srcdir/$ac_unique_file"; then
252b5132
RH
1312 srcdir=..
1313 fi
1314else
1315 ac_srcdir_defaulted=no
1316fi
81ecdfbb
RW
1317if test ! -r "$srcdir/$ac_unique_file"; then
1318 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1319 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1320fi
1321ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1322ac_abs_confdir=`(
1323 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1324 pwd)`
1325# When building in place, set srcdir=.
1326if test "$ac_abs_confdir" = "$ac_pwd"; then
1327 srcdir=.
1328fi
1329# Remove unnecessary trailing slashes from srcdir.
1330# Double slashes in file names in object file debugging info
1331# mess up M-x gdb in Emacs.
1332case $srcdir in
1333*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1334esac
1335for ac_var in $ac_precious_vars; do
1336 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1337 eval ac_env_${ac_var}_value=\$${ac_var}
1338 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1339 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1340done
b3baf5d0 1341
5464f5a1
NN
1342#
1343# Report the --help message.
1344#
1345if test "$ac_init_help" = "long"; then
1346 # Omit some internal or obsolete options to make the list less imposing.
1347 # This message is too long to be a string in the A/UX 3.1 sh.
1348 cat <<_ACEOF
1349\`configure' configures this package to adapt to many kinds of systems.
252b5132 1350
5464f5a1 1351Usage: $0 [OPTION]... [VAR=VALUE]...
252b5132 1352
5464f5a1
NN
1353To assign environment variables (e.g., CC, CFLAGS...), specify them as
1354VAR=VALUE. See below for descriptions of some of the useful variables.
6be7c12c 1355
5464f5a1 1356Defaults for the options are specified in brackets.
6be7c12c 1357
5464f5a1
NN
1358Configuration:
1359 -h, --help display this help and exit
1360 --help=short display options specific to this package
1361 --help=recursive display the short help of all the included packages
1362 -V, --version display version information and exit
1363 -q, --quiet, --silent do not print \`checking...' messages
1364 --cache-file=FILE cache test results in FILE [disabled]
1365 -C, --config-cache alias for \`--cache-file=config.cache'
1366 -n, --no-create do not create output files
1367 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1368
5464f5a1
NN
1369Installation directories:
1370 --prefix=PREFIX install architecture-independent files in PREFIX
81ecdfbb 1371 [$ac_default_prefix]
5464f5a1 1372 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
81ecdfbb 1373 [PREFIX]
6be7c12c 1374
5464f5a1
NN
1375By default, \`make install' will install all the files in
1376\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1377an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1378for instance \`--prefix=\$HOME'.
6be7c12c 1379
5464f5a1 1380For better control, use the options below.
6be7c12c 1381
5464f5a1 1382Fine tuning of the installation directories:
81ecdfbb
RW
1383 --bindir=DIR user executables [EPREFIX/bin]
1384 --sbindir=DIR system admin executables [EPREFIX/sbin]
1385 --libexecdir=DIR program executables [EPREFIX/libexec]
1386 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1387 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1388 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1389 --libdir=DIR object code libraries [EPREFIX/lib]
1390 --includedir=DIR C header files [PREFIX/include]
1391 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1392 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1393 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1394 --infodir=DIR info documentation [DATAROOTDIR/info]
1395 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1396 --mandir=DIR man documentation [DATAROOTDIR/man]
1397 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1398 --htmldir=DIR html documentation [DOCDIR]
1399 --dvidir=DIR dvi documentation [DOCDIR]
1400 --pdfdir=DIR pdf documentation [DOCDIR]
1401 --psdir=DIR ps documentation [DOCDIR]
5464f5a1 1402_ACEOF
6be7c12c 1403
5464f5a1 1404 cat <<\_ACEOF
6be7c12c 1405
5464f5a1
NN
1406Program names:
1407 --program-prefix=PREFIX prepend PREFIX to installed program names
1408 --program-suffix=SUFFIX append SUFFIX to installed program names
1409 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
252b5132 1410
5464f5a1
NN
1411System types:
1412 --build=BUILD configure for building on BUILD [guessed]
1413 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1414 --target=TARGET configure for building compilers for TARGET [HOST]
1415_ACEOF
252b5132 1416fi
252b5132 1417
5464f5a1 1418if test -n "$ac_init_help"; then
6be7c12c 1419
5464f5a1 1420 cat <<\_ACEOF
252b5132 1421
5464f5a1 1422Optional Features:
81ecdfbb 1423 --disable-option-checking ignore unrecognized --enable/--with options
5464f5a1
NN
1424 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1425 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
f5385ebf
AM
1426 --disable-dependency-tracking speeds up one-time build
1427 --enable-dependency-tracking do not reject slow dependency extractors
81ecdfbb
RW
1428 --enable-shared[=PKGS] build shared libraries [default=no]
1429 --enable-static[=PKGS] build static libraries [default=yes]
d7040cdb
SE
1430 --enable-fast-install[=PKGS]
1431 optimize for fast installation [default=yes]
5464f5a1 1432 --disable-libtool-lock avoid locking (might break parallel builds)
5691d22d 1433 --enable-plugins Enable support for plugins (defaults no)
ce3c775b 1434 --disable-largefile omit support for large files
5464f5a1
NN
1435 --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)
1436 --enable-targets alternative target configurations
6ec7057a 1437 --enable-secureplt Default to creating read-only plt entries
504b7d20 1438 --enable-elf-stt-common Allow the generation of ELF symbols with the STT_COMMON type
241a6c40
AM
1439 --enable-werror treat compile warnings as errors
1440 --enable-build-warnings enable build-time compiler warnings
f5385ebf
AM
1441 --enable-maintainer-mode enable make rules and dependencies not useful
1442 (and sometimes confusing) to the casual installer
5464f5a1
NN
1443 --enable-install-libbfd controls installation of libbfd and related headers
1444 --disable-nls do not use Native Language Support
1445
1446Optional Packages:
1447 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1448 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
d7040cdb
SE
1449 --with-pic try to use only PIC/non-PIC objects [default=use
1450 both]
1451 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
5464f5a1 1452 --with-mmap try using mmap for BFD input files if available
0d4a1476
AS
1453 --with-separate-debug-dir=DIR
1454 Look for global separate debug info in DIR
1455 [default=LIBDIR/debug]
a1ac8190
JM
1456 --with-pkgversion=PKG Use PKG in the version string in place of "GNU
1457 Binutils"
c428fa83 1458 --with-bugurl=URL Direct users to URL to report a bug
bf993e3c 1459 --with-zlib include zlib support (auto/yes/no) default=auto
5464f5a1
NN
1460
1461Some influential environment variables:
1462 CC C compiler command
1463 CFLAGS C compiler flags
1464 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1465 nonstandard directory <lib dir>
81ecdfbb
RW
1466 LIBS libraries to pass to the linker, e.g. -l<library>
1467 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1468 you have headers in a nonstandard directory <include dir>
5464f5a1
NN
1469 CPP C preprocessor
1470
1471Use these variables to override the choices made by `configure' or to help
1472it to find libraries and programs with nonstandard names/locations.
1473
81ecdfbb 1474Report bugs to the package provider.
5464f5a1 1475_ACEOF
81ecdfbb 1476ac_status=$?
5464f5a1
NN
1477fi
1478
1479if test "$ac_init_help" = "recursive"; then
1480 # If there are subdirs, report their specific --help.
5464f5a1 1481 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
81ecdfbb
RW
1482 test -d "$ac_dir" ||
1483 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1484 continue
5464f5a1
NN
1485 ac_builddir=.
1486
81ecdfbb
RW
1487case "$ac_dir" in
1488.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1489*)
1490 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1491 # A ".." for each directory in $ac_dir_suffix.
1492 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1493 case $ac_top_builddir_sub in
1494 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1495 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1496 esac ;;
1497esac
1498ac_abs_top_builddir=$ac_pwd
1499ac_abs_builddir=$ac_pwd$ac_dir_suffix
1500# for backward compatibility:
1501ac_top_builddir=$ac_top_build_prefix
5464f5a1
NN
1502
1503case $srcdir in
81ecdfbb 1504 .) # We are building in place.
5464f5a1 1505 ac_srcdir=.
81ecdfbb
RW
1506 ac_top_srcdir=$ac_top_builddir_sub
1507 ac_abs_top_srcdir=$ac_pwd ;;
1508 [\\/]* | ?:[\\/]* ) # Absolute name.
5464f5a1 1509 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
1510 ac_top_srcdir=$srcdir
1511 ac_abs_top_srcdir=$srcdir ;;
1512 *) # Relative name.
1513 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1514 ac_top_srcdir=$ac_top_build_prefix$srcdir
1515 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
5464f5a1 1516esac
81ecdfbb
RW
1517ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1518
1519 cd "$ac_dir" || { ac_status=$?; continue; }
1520 # Check for guested configure.
1521 if test -f "$ac_srcdir/configure.gnu"; then
1522 echo &&
1523 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1524 elif test -f "$ac_srcdir/configure"; then
1525 echo &&
1526 $SHELL "$ac_srcdir/configure" --help=recursive
5464f5a1 1527 else
81ecdfbb
RW
1528 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1529 fi || ac_status=$?
1530 cd "$ac_pwd" || { ac_status=$?; break; }
5464f5a1 1531 done
6be7c12c
AO
1532fi
1533
81ecdfbb 1534test -n "$ac_init_help" && exit $ac_status
5464f5a1
NN
1535if $ac_init_version; then
1536 cat <<\_ACEOF
81ecdfbb
RW
1537configure
1538generated by GNU Autoconf 2.64
6be7c12c 1539
81ecdfbb 1540Copyright (C) 2009 Free Software Foundation, Inc.
5464f5a1
NN
1541This configure script is free software; the Free Software Foundation
1542gives unlimited permission to copy, distribute and modify it.
1543_ACEOF
81ecdfbb 1544 exit
5464f5a1 1545fi
6be7c12c 1546
81ecdfbb
RW
1547## ------------------------ ##
1548## Autoconf initialization. ##
1549## ------------------------ ##
6be7c12c 1550
81ecdfbb
RW
1551# ac_fn_c_try_compile LINENO
1552# --------------------------
1553# Try to compile conftest.$ac_ext, and return whether this succeeded.
1554ac_fn_c_try_compile ()
5464f5a1 1555{
81ecdfbb
RW
1556 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1557 rm -f conftest.$ac_objext
1558 if { { ac_try="$ac_compile"
1559case "(($ac_try" in
1560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1561 *) ac_try_echo=$ac_try;;
1562esac
1563eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1564$as_echo "$ac_try_echo"; } >&5
1565 (eval "$ac_compile") 2>conftest.err
1566 ac_status=$?
1567 if test -s conftest.err; then
1568 grep -v '^ *+' conftest.err >conftest.er1
1569 cat conftest.er1 >&5
1570 mv -f conftest.er1 conftest.err
1571 fi
1572 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1573 test $ac_status = 0; } && {
1574 test -z "$ac_c_werror_flag" ||
1575 test ! -s conftest.err
1576 } && test -s conftest.$ac_objext; then :
1577 ac_retval=0
1578else
1579 $as_echo "$as_me: failed program was:" >&5
1580sed 's/^/| /' conftest.$ac_ext >&5
5464f5a1 1581
81ecdfbb
RW
1582 ac_retval=1
1583fi
1584 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1585 return $ac_retval
5464f5a1 1586
81ecdfbb 1587} # ac_fn_c_try_compile
5464f5a1 1588
81ecdfbb
RW
1589# ac_fn_c_try_link LINENO
1590# -----------------------
1591# Try to link conftest.$ac_ext, and return whether this succeeded.
1592ac_fn_c_try_link ()
1593{
1594 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1595 rm -f conftest.$ac_objext conftest$ac_exeext
1596 if { { ac_try="$ac_link"
1597case "(($ac_try" in
1598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1599 *) ac_try_echo=$ac_try;;
1600esac
1601eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1602$as_echo "$ac_try_echo"; } >&5
1603 (eval "$ac_link") 2>conftest.err
1604 ac_status=$?
1605 if test -s conftest.err; then
1606 grep -v '^ *+' conftest.err >conftest.er1
1607 cat conftest.er1 >&5
1608 mv -f conftest.er1 conftest.err
1609 fi
1610 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1611 test $ac_status = 0; } && {
1612 test -z "$ac_c_werror_flag" ||
1613 test ! -s conftest.err
1614 } && test -s conftest$ac_exeext && {
1615 test "$cross_compiling" = yes ||
1616 $as_test_x conftest$ac_exeext
1617 }; then :
1618 ac_retval=0
1619else
1620 $as_echo "$as_me: failed program was:" >&5
1621sed 's/^/| /' conftest.$ac_ext >&5
5464f5a1 1622
81ecdfbb
RW
1623 ac_retval=1
1624fi
1625 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1626 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1627 # interfere with the next link command; also delete a directory that is
1628 # left behind by Apple's compiler. We do this before executing the actions.
1629 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1630 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1631 return $ac_retval
6be7c12c 1632
81ecdfbb 1633} # ac_fn_c_try_link
66e25bab 1634
81ecdfbb
RW
1635# ac_fn_c_try_cpp LINENO
1636# ----------------------
1637# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1638ac_fn_c_try_cpp ()
1639{
1640 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1641 if { { ac_try="$ac_cpp conftest.$ac_ext"
1642case "(($ac_try" in
1643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1644 *) ac_try_echo=$ac_try;;
1645esac
1646eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1647$as_echo "$ac_try_echo"; } >&5
1648 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1649 ac_status=$?
1650 if test -s conftest.err; then
1651 grep -v '^ *+' conftest.err >conftest.er1
1652 cat conftest.er1 >&5
1653 mv -f conftest.er1 conftest.err
1654 fi
1655 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1656 test $ac_status = 0; } >/dev/null && {
1657 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1658 test ! -s conftest.err
1659 }; then :
1660 ac_retval=0
1661else
1662 $as_echo "$as_me: failed program was:" >&5
1663sed 's/^/| /' conftest.$ac_ext >&5
b3baf5d0 1664
81ecdfbb
RW
1665 ac_retval=1
1666fi
1667 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1668 return $ac_retval
6be7c12c 1669
81ecdfbb 1670} # ac_fn_c_try_cpp
252b5132 1671
81ecdfbb
RW
1672# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1673# -------------------------------------------------------
1674# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1675# the include files in INCLUDES and setting the cache variable VAR
1676# accordingly.
1677ac_fn_c_check_header_mongrel ()
1678{
1679 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1680 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1682$as_echo_n "checking for $2... " >&6; }
1683if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1684 $as_echo_n "(cached) " >&6
1685fi
1686eval ac_res=\$$3
1687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1688$as_echo "$ac_res" >&6; }
1689else
1690 # Is the header compilable?
1691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1692$as_echo_n "checking $2 usability... " >&6; }
1693cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1694/* end confdefs.h. */
1695$4
1696#include <$2>
5464f5a1 1697_ACEOF
81ecdfbb
RW
1698if ac_fn_c_try_compile "$LINENO"; then :
1699 ac_header_compiler=yes
1700else
1701 ac_header_compiler=no
1702fi
1703rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1704{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1705$as_echo "$ac_header_compiler" >&6; }
c5d1701e 1706
81ecdfbb
RW
1707# Is the header present?
1708{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1709$as_echo_n "checking $2 presence... " >&6; }
1710cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1711/* end confdefs.h. */
1712#include <$2>
1713_ACEOF
1714if ac_fn_c_try_cpp "$LINENO"; then :
1715 ac_header_preproc=yes
1716else
1717 ac_header_preproc=no
1718fi
1719rm -f conftest.err conftest.$ac_ext
1720{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1721$as_echo "$ac_header_preproc" >&6; }
6be7c12c 1722
81ecdfbb
RW
1723# So? What about this header?
1724case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1725 yes:no: )
1726 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1727$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1728 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1729$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1730 ;;
1731 no:yes:* )
1732 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1733$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1734 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1735$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1736 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1737$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1738 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1739$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1740 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1741$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1742 ;;
1743esac
1744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1745$as_echo_n "checking for $2... " >&6; }
1746if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1747 $as_echo_n "(cached) " >&6
1748else
1749 eval "$3=\$ac_header_compiler"
1750fi
1751eval ac_res=\$$3
1752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1753$as_echo "$ac_res" >&6; }
1754fi
1755 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
5464f5a1 1756
81ecdfbb 1757} # ac_fn_c_check_header_mongrel
5464f5a1 1758
81ecdfbb
RW
1759# ac_fn_c_try_run LINENO
1760# ----------------------
1761# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1762# that executables *can* be run.
1763ac_fn_c_try_run ()
5464f5a1 1764{
81ecdfbb
RW
1765 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1766 if { { ac_try="$ac_link"
1767case "(($ac_try" in
1768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1769 *) ac_try_echo=$ac_try;;
1770esac
1771eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1772$as_echo "$ac_try_echo"; } >&5
1773 (eval "$ac_link") 2>&5
1774 ac_status=$?
1775 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1776 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1777 { { case "(($ac_try" in
1778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1779 *) ac_try_echo=$ac_try;;
1780esac
1781eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1782$as_echo "$ac_try_echo"; } >&5
1783 (eval "$ac_try") 2>&5
1784 ac_status=$?
1785 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1786 test $ac_status = 0; }; }; then :
1787 ac_retval=0
1788else
1789 $as_echo "$as_me: program exited with status $ac_status" >&5
1790 $as_echo "$as_me: failed program was:" >&5
1791sed 's/^/| /' conftest.$ac_ext >&5
5464f5a1 1792
81ecdfbb
RW
1793 ac_retval=$ac_status
1794fi
1795 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1796 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1797 return $ac_retval
5464f5a1 1798
81ecdfbb 1799} # ac_fn_c_try_run
5464f5a1 1800
81ecdfbb
RW
1801# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1802# -------------------------------------------------------
1803# Tests whether HEADER exists and can be compiled using the include files in
1804# INCLUDES, setting the cache variable VAR accordingly.
1805ac_fn_c_check_header_compile ()
1806{
1807 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1809$as_echo_n "checking for $2... " >&6; }
1810if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1811 $as_echo_n "(cached) " >&6
1812else
1813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1814/* end confdefs.h. */
1815$4
1816#include <$2>
1817_ACEOF
1818if ac_fn_c_try_compile "$LINENO"; then :
1819 eval "$3=yes"
1820else
1821 eval "$3=no"
1822fi
1823rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1824fi
1825eval ac_res=\$$3
1826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1827$as_echo "$ac_res" >&6; }
1828 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
5464f5a1 1829
81ecdfbb 1830} # ac_fn_c_check_header_compile
5464f5a1 1831
81ecdfbb
RW
1832# ac_fn_c_check_func LINENO FUNC VAR
1833# ----------------------------------
1834# Tests whether FUNC exists, setting the cache variable VAR accordingly
1835ac_fn_c_check_func ()
1836{
1837 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1839$as_echo_n "checking for $2... " >&6; }
1840if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1841 $as_echo_n "(cached) " >&6
1842else
1843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1844/* end confdefs.h. */
1845/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1846 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1847#define $2 innocuous_$2
5464f5a1 1848
81ecdfbb
RW
1849/* System header to define __stub macros and hopefully few prototypes,
1850 which can conflict with char $2 (); below.
1851 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1852 <limits.h> exists even on freestanding compilers. */
5464f5a1 1853
81ecdfbb
RW
1854#ifdef __STDC__
1855# include <limits.h>
1856#else
1857# include <assert.h>
1858#endif
5464f5a1 1859
81ecdfbb 1860#undef $2
5464f5a1 1861
81ecdfbb
RW
1862/* Override any GCC internal prototype to avoid an error.
1863 Use char because int might match the return type of a GCC
1864 builtin and then its argument prototype would still apply. */
1865#ifdef __cplusplus
1866extern "C"
1867#endif
1868char $2 ();
1869/* The GNU C library defines this for functions which it implements
1870 to always fail with ENOSYS. Some functions are actually named
1871 something starting with __ and the normal name is an alias. */
1872#if defined __stub_$2 || defined __stub___$2
1873choke me
1874#endif
5464f5a1 1875
81ecdfbb
RW
1876int
1877main ()
1878{
1879return $2 ();
1880 ;
1881 return 0;
1882}
5464f5a1 1883_ACEOF
81ecdfbb
RW
1884if ac_fn_c_try_link "$LINENO"; then :
1885 eval "$3=yes"
1886else
1887 eval "$3=no"
1888fi
1889rm -f core conftest.err conftest.$ac_objext \
1890 conftest$ac_exeext conftest.$ac_ext
1891fi
1892eval ac_res=\$$3
1893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1894$as_echo "$ac_res" >&6; }
1895 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
5464f5a1 1896
81ecdfbb 1897} # ac_fn_c_check_func
5464f5a1 1898
81ecdfbb
RW
1899# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1900# --------------------------------------------
1901# Tries to find the compile-time value of EXPR in a program that includes
1902# INCLUDES, setting VAR accordingly. Returns whether the value could be
1903# computed
1904ac_fn_c_compute_int ()
1905{
1906 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1907 if test "$cross_compiling" = yes; then
1908 # Depending upon the size, compute the lo and hi bounds.
1909cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1910/* end confdefs.h. */
1911$4
1912int
1913main ()
1914{
1915static int test_array [1 - 2 * !(($2) >= 0)];
1916test_array [0] = 0
5464f5a1 1917
81ecdfbb
RW
1918 ;
1919 return 0;
1920}
5464f5a1 1921_ACEOF
81ecdfbb
RW
1922if ac_fn_c_try_compile "$LINENO"; then :
1923 ac_lo=0 ac_mid=0
1924 while :; do
1925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1926/* end confdefs.h. */
1927$4
1928int
1929main ()
1930{
1931static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1932test_array [0] = 0
5464f5a1 1933
81ecdfbb
RW
1934 ;
1935 return 0;
1936}
1937_ACEOF
1938if ac_fn_c_try_compile "$LINENO"; then :
1939 ac_hi=$ac_mid; break
5464f5a1 1940else
81ecdfbb
RW
1941 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1942 if test $ac_lo -le $ac_mid; then
1943 ac_lo= ac_hi=
1944 break
1945 fi
1946 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
5464f5a1 1947fi
81ecdfbb
RW
1948rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1949 done
1950else
1951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1952/* end confdefs.h. */
1953$4
1954int
1955main ()
1956{
1957static int test_array [1 - 2 * !(($2) < 0)];
1958test_array [0] = 0
5464f5a1 1959
81ecdfbb
RW
1960 ;
1961 return 0;
1962}
1963_ACEOF
1964if ac_fn_c_try_compile "$LINENO"; then :
1965 ac_hi=-1 ac_mid=-1
1966 while :; do
1967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1968/* end confdefs.h. */
1969$4
1970int
1971main ()
1972{
1973static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1974test_array [0] = 0
5464f5a1 1975
81ecdfbb
RW
1976 ;
1977 return 0;
1978}
1979_ACEOF
1980if ac_fn_c_try_compile "$LINENO"; then :
1981 ac_lo=$ac_mid; break
1982else
1983 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1984 if test $ac_mid -le $ac_hi; then
1985 ac_lo= ac_hi=
1986 break
1987 fi
1988 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1989fi
1990rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1991 done
1992else
1993 ac_lo= ac_hi=
1994fi
1995rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1996fi
1997rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1998# Binary search between lo and hi bounds.
1999while test "x$ac_lo" != "x$ac_hi"; do
2000 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2002/* end confdefs.h. */
2003$4
2004int
2005main ()
2006{
2007static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2008test_array [0] = 0
5464f5a1 2009
81ecdfbb
RW
2010 ;
2011 return 0;
2012}
2013_ACEOF
2014if ac_fn_c_try_compile "$LINENO"; then :
2015 ac_hi=$ac_mid
2016else
2017 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2018fi
2019rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2020done
2021case $ac_lo in #((
2022?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2023'') ac_retval=1 ;;
2024esac
2025 else
2026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2027/* end confdefs.h. */
2028$4
2029static long int longval () { return $2; }
2030static unsigned long int ulongval () { return $2; }
2031#include <stdio.h>
2032#include <stdlib.h>
2033int
2034main ()
2035{
5464f5a1 2036
81ecdfbb
RW
2037 FILE *f = fopen ("conftest.val", "w");
2038 if (! f)
2039 return 1;
2040 if (($2) < 0)
2041 {
2042 long int i = longval ();
2043 if (i != ($2))
2044 return 1;
2045 fprintf (f, "%ld", i);
2046 }
2047 else
2048 {
2049 unsigned long int i = ulongval ();
2050 if (i != ($2))
2051 return 1;
2052 fprintf (f, "%lu", i);
2053 }
2054 /* Do not output a trailing newline, as this causes \r\n confusion
2055 on some platforms. */
2056 return ferror (f) || fclose (f) != 0;
5464f5a1 2057
81ecdfbb
RW
2058 ;
2059 return 0;
2060}
2061_ACEOF
2062if ac_fn_c_try_run "$LINENO"; then :
2063 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2064else
2065 ac_retval=1
2066fi
2067rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2068 conftest.$ac_objext conftest.beam conftest.$ac_ext
2069rm -f conftest.val
7357c5b6 2070
81ecdfbb
RW
2071 fi
2072 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2073 return $ac_retval
7357c5b6 2074
81ecdfbb 2075} # ac_fn_c_compute_int
7357c5b6 2076
81ecdfbb
RW
2077# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2078# -------------------------------------------
2079# Tests whether TYPE exists after having included INCLUDES, setting cache
2080# variable VAR accordingly.
2081ac_fn_c_check_type ()
2082{
2083 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2085$as_echo_n "checking for $2... " >&6; }
2086if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2087 $as_echo_n "(cached) " >&6
2088else
2089 eval "$3=no"
2090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2091/* end confdefs.h. */
2092$4
2093int
2094main ()
2095{
2096if (sizeof ($2))
2097 return 0;
2098 ;
2099 return 0;
2100}
2101_ACEOF
2102if ac_fn_c_try_compile "$LINENO"; then :
2103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2104/* end confdefs.h. */
2105$4
2106int
2107main ()
2108{
2109if (sizeof (($2)))
2110 return 0;
2111 ;
2112 return 0;
2113}
2114_ACEOF
2115if ac_fn_c_try_compile "$LINENO"; then :
5464f5a1 2116
81ecdfbb
RW
2117else
2118 eval "$3=yes"
2119fi
2120rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2121fi
2122rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2123fi
2124eval ac_res=\$$3
2125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2126$as_echo "$ac_res" >&6; }
2127 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
5464f5a1 2128
81ecdfbb 2129} # ac_fn_c_check_type
5464f5a1 2130
81ecdfbb
RW
2131# ac_fn_c_check_decl LINENO SYMBOL VAR
2132# ------------------------------------
2133# Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2134ac_fn_c_check_decl ()
2135{
2136 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2138$as_echo_n "checking whether $2 is declared... " >&6; }
2139if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2140 $as_echo_n "(cached) " >&6
2141else
2142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2143/* end confdefs.h. */
2144$4
2145int
2146main ()
2147{
2148#ifndef $2
2149 (void) $2;
2150#endif
5464f5a1 2151
81ecdfbb
RW
2152 ;
2153 return 0;
2154}
2155_ACEOF
2156if ac_fn_c_try_compile "$LINENO"; then :
2157 eval "$3=yes"
2158else
2159 eval "$3=no"
5464f5a1 2160fi
81ecdfbb
RW
2161rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2162fi
2163eval ac_res=\$$3
2164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2165$as_echo "$ac_res" >&6; }
2166 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
5464f5a1 2167
81ecdfbb
RW
2168} # ac_fn_c_check_decl
2169cat >config.log <<_ACEOF
2170This file contains any messages produced by compilers while
2171running configure, to aid debugging if configure makes a mistake.
5464f5a1 2172
81ecdfbb
RW
2173It was created by $as_me, which was
2174generated by GNU Autoconf 2.64. Invocation command line was
5464f5a1 2175
81ecdfbb 2176 $ $0 $@
5464f5a1 2177
81ecdfbb
RW
2178_ACEOF
2179exec 5>>config.log
2180{
2181cat <<_ASUNAME
2182## --------- ##
2183## Platform. ##
2184## --------- ##
5464f5a1 2185
81ecdfbb
RW
2186hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2187uname -m = `(uname -m) 2>/dev/null || echo unknown`
2188uname -r = `(uname -r) 2>/dev/null || echo unknown`
2189uname -s = `(uname -s) 2>/dev/null || echo unknown`
2190uname -v = `(uname -v) 2>/dev/null || echo unknown`
5464f5a1 2191
81ecdfbb
RW
2192/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2193/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
5464f5a1 2194
81ecdfbb
RW
2195/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2196/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2197/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2198/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2199/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2200/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2201/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
5464f5a1 2202
81ecdfbb 2203_ASUNAME
5464f5a1 2204
5464f5a1
NN
2205as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2206for as_dir in $PATH
2207do
2208 IFS=$as_save_IFS
2209 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2210 $as_echo "PATH: $as_dir"
2211 done
2212IFS=$as_save_IFS
5464f5a1 2213
81ecdfbb 2214} >&5
5464f5a1 2215
81ecdfbb 2216cat >&5 <<_ACEOF
5464f5a1 2217
5464f5a1 2218
81ecdfbb
RW
2219## ----------- ##
2220## Core tests. ##
2221## ----------- ##
5464f5a1 2222
81ecdfbb
RW
2223_ACEOF
2224
2225
2226# Keep a trace of the command line.
2227# Strip out --no-create and --no-recursion so they do not pile up.
2228# Strip out --silent because we don't want to record it for future runs.
2229# Also quote any args containing shell meta-characters.
2230# Make two passes to allow for proper duplicate-argument suppression.
2231ac_configure_args=
2232ac_configure_args0=
2233ac_configure_args1=
2234ac_must_keep_next=false
2235for ac_pass in 1 2
2236do
2237 for ac_arg
2238 do
2239 case $ac_arg in
2240 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2241 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2242 | -silent | --silent | --silen | --sile | --sil)
2243 continue ;;
2244 *\'*)
2245 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2246 esac
2247 case $ac_pass in
2248 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2249 2)
2250 as_fn_append ac_configure_args1 " '$ac_arg'"
2251 if test $ac_must_keep_next = true; then
2252 ac_must_keep_next=false # Got value, back to normal.
2253 else
2254 case $ac_arg in
2255 *=* | --config-cache | -C | -disable-* | --disable-* \
2256 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2257 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2258 | -with-* | --with-* | -without-* | --without-* | --x)
2259 case "$ac_configure_args0 " in
2260 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2261 esac
2262 ;;
2263 -* ) ac_must_keep_next=true ;;
2264 esac
2265 fi
2266 as_fn_append ac_configure_args " '$ac_arg'"
2267 ;;
2268 esac
2269 done
2270done
2271{ ac_configure_args0=; unset ac_configure_args0;}
2272{ ac_configure_args1=; unset ac_configure_args1;}
2273
2274# When interrupted or exit'd, cleanup temporary files, and complete
2275# config.log. We remove comments because anyway the quotes in there
2276# would cause problems or look ugly.
2277# WARNING: Use '\'' to represent an apostrophe within the trap.
2278# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2279trap 'exit_status=$?
2280 # Save into config.log some information that might help in debugging.
2281 {
2282 echo
2283
2284 cat <<\_ASBOX
2285## ---------------- ##
2286## Cache variables. ##
2287## ---------------- ##
2288_ASBOX
2289 echo
2290 # The following way of writing the cache mishandles newlines in values,
2291(
2292 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2293 eval ac_val=\$$ac_var
2294 case $ac_val in #(
2295 *${as_nl}*)
2296 case $ac_var in #(
2297 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2298$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2299 esac
2300 case $ac_var in #(
2301 _ | IFS | as_nl) ;; #(
2302 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2303 *) { eval $ac_var=; unset $ac_var;} ;;
2304 esac ;;
2305 esac
2306 done
2307 (set) 2>&1 |
2308 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2309 *${as_nl}ac_space=\ *)
2310 sed -n \
2311 "s/'\''/'\''\\\\'\'''\''/g;
2312 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2313 ;; #(
2314 *)
2315 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2316 ;;
2317 esac |
2318 sort
2319)
2320 echo
2321
2322 cat <<\_ASBOX
2323## ----------------- ##
2324## Output variables. ##
2325## ----------------- ##
2326_ASBOX
2327 echo
2328 for ac_var in $ac_subst_vars
2329 do
2330 eval ac_val=\$$ac_var
2331 case $ac_val in
2332 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2333 esac
2334 $as_echo "$ac_var='\''$ac_val'\''"
2335 done | sort
2336 echo
2337
2338 if test -n "$ac_subst_files"; then
2339 cat <<\_ASBOX
2340## ------------------- ##
2341## File substitutions. ##
2342## ------------------- ##
2343_ASBOX
2344 echo
2345 for ac_var in $ac_subst_files
2346 do
2347 eval ac_val=\$$ac_var
2348 case $ac_val in
2349 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2350 esac
2351 $as_echo "$ac_var='\''$ac_val'\''"
2352 done | sort
2353 echo
2354 fi
2355
2356 if test -s confdefs.h; then
2357 cat <<\_ASBOX
2358## ----------- ##
2359## confdefs.h. ##
2360## ----------- ##
2361_ASBOX
2362 echo
2363 cat confdefs.h
2364 echo
2365 fi
2366 test "$ac_signal" != 0 &&
2367 $as_echo "$as_me: caught signal $ac_signal"
2368 $as_echo "$as_me: exit $exit_status"
2369 } >&5
2370 rm -f core *.core core.conftest.* &&
2371 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2372 exit $exit_status
2373' 0
2374for ac_signal in 1 2 13 15; do
2375 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2376done
2377ac_signal=0
2378
2379# confdefs.h avoids OS command line length limits that DEFS can exceed.
2380rm -f -r conftest* confdefs.h
2381
2382$as_echo "/* confdefs.h */" > confdefs.h
2383
2384# Predefined preprocessor variables.
2385
2386cat >>confdefs.h <<_ACEOF
2387#define PACKAGE_NAME "$PACKAGE_NAME"
2388_ACEOF
2389
2390cat >>confdefs.h <<_ACEOF
2391#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2392_ACEOF
2393
2394cat >>confdefs.h <<_ACEOF
2395#define PACKAGE_VERSION "$PACKAGE_VERSION"
2396_ACEOF
2397
2398cat >>confdefs.h <<_ACEOF
2399#define PACKAGE_STRING "$PACKAGE_STRING"
2400_ACEOF
2401
2402cat >>confdefs.h <<_ACEOF
2403#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2404_ACEOF
2405
2406cat >>confdefs.h <<_ACEOF
2407#define PACKAGE_URL "$PACKAGE_URL"
2408_ACEOF
2409
2410
2411# Let the site file select an alternate cache file if it wants to.
2412# Prefer an explicitly selected file to automatically selected ones.
2413ac_site_file1=NONE
2414ac_site_file2=NONE
2415if test -n "$CONFIG_SITE"; then
2416 ac_site_file1=$CONFIG_SITE
2417elif test "x$prefix" != xNONE; then
2418 ac_site_file1=$prefix/share/config.site
2419 ac_site_file2=$prefix/etc/config.site
2420else
2421 ac_site_file1=$ac_default_prefix/share/config.site
2422 ac_site_file2=$ac_default_prefix/etc/config.site
2423fi
2424for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2425do
2426 test "x$ac_site_file" = xNONE && continue
2427 if test -r "$ac_site_file"; then
2428 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2429$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2430 sed 's/^/| /' "$ac_site_file" >&5
2431 . "$ac_site_file"
2432 fi
2433done
2434
2435if test -r "$cache_file"; then
2436 # Some versions of bash will fail to source /dev/null (special
2437 # files actually), so we avoid doing that.
2438 if test -f "$cache_file"; then
2439 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2440$as_echo "$as_me: loading cache $cache_file" >&6;}
2441 case $cache_file in
2442 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2443 *) . "./$cache_file";;
2444 esac
2445 fi
2446else
2447 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2448$as_echo "$as_me: creating cache $cache_file" >&6;}
2449 >$cache_file
2450fi
2451
2452# Check that the precious variables saved in the cache have kept the same
2453# value.
2454ac_cache_corrupted=false
2455for ac_var in $ac_precious_vars; do
2456 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2457 eval ac_new_set=\$ac_env_${ac_var}_set
2458 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2459 eval ac_new_val=\$ac_env_${ac_var}_value
2460 case $ac_old_set,$ac_new_set in
2461 set,)
2462 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2463$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2464 ac_cache_corrupted=: ;;
2465 ,set)
2466 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2467$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2468 ac_cache_corrupted=: ;;
2469 ,);;
2470 *)
2471 if test "x$ac_old_val" != "x$ac_new_val"; then
2472 # differences in whitespace do not lead to failure.
2473 ac_old_val_w=`echo x $ac_old_val`
2474 ac_new_val_w=`echo x $ac_new_val`
2475 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2476 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2477$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2478 ac_cache_corrupted=:
2479 else
2480 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2481$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2482 eval $ac_var=\$ac_old_val
2483 fi
2484 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2485$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2486 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2487$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2488 fi;;
2489 esac
2490 # Pass precious variables to config.status.
2491 if test "$ac_new_set" = set; then
2492 case $ac_new_val in
2493 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2494 *) ac_arg=$ac_var=$ac_new_val ;;
2495 esac
2496 case " $ac_configure_args " in
2497 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2498 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2499 esac
5464f5a1
NN
2500 fi
2501done
81ecdfbb
RW
2502if $ac_cache_corrupted; then
2503 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2504$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2505 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2506$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2507 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2508fi
2509## -------------------- ##
2510## Main body of script. ##
2511## -------------------- ##
2512
2513ac_ext=c
2514ac_cpp='$CPP $CPPFLAGS'
2515ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2516ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2517ac_compiler_gnu=$ac_cv_c_compiler_gnu
2518
2519
2520
2521
2522
2523
2524
2525ac_aux_dir=
2526for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2527 for ac_t in install-sh install.sh shtool; do
2528 if test -f "$ac_dir/$ac_t"; then
2529 ac_aux_dir=$ac_dir
2530 ac_install_sh="$ac_aux_dir/$ac_t -c"
2531 break 2
2532 fi
2533 done
5464f5a1 2534done
81ecdfbb
RW
2535if test -z "$ac_aux_dir"; then
2536 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2537fi
2538
2539# These three variables are undocumented and unsupported,
2540# and are intended to be withdrawn in a future Autoconf release.
2541# They can cause serious problems if a builder's source tree is in a directory
2542# whose full name contains unusual characters.
2543ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2544ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2545ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2546
2547
2548# Make sure we can run config.sub.
2549$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2550 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2551
2552{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2553$as_echo_n "checking build system type... " >&6; }
2554if test "${ac_cv_build+set}" = set; then :
2555 $as_echo_n "(cached) " >&6
2556else
2557 ac_build_alias=$build_alias
2558test "x$ac_build_alias" = x &&
2559 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2560test "x$ac_build_alias" = x &&
2561 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2562ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2563 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2564
2565fi
2566{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2567$as_echo "$ac_cv_build" >&6; }
2568case $ac_cv_build in
2569*-*-*) ;;
2570*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2571esac
2572build=$ac_cv_build
2573ac_save_IFS=$IFS; IFS='-'
2574set x $ac_cv_build
2575shift
2576build_cpu=$1
2577build_vendor=$2
2578shift; shift
2579# Remember, the first character of IFS is used to create $*,
2580# except with old shells:
2581build_os=$*
2582IFS=$ac_save_IFS
2583case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5464f5a1 2584
81ecdfbb
RW
2585
2586{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2587$as_echo_n "checking host system type... " >&6; }
2588if test "${ac_cv_host+set}" = set; then :
2589 $as_echo_n "(cached) " >&6
2590else
2591 if test "x$host_alias" = x; then
2592 ac_cv_host=$ac_cv_build
2593else
2594 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2595 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5464f5a1 2596fi
81ecdfbb 2597
5464f5a1 2598fi
81ecdfbb
RW
2599{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2600$as_echo "$ac_cv_host" >&6; }
2601case $ac_cv_host in
2602*-*-*) ;;
2603*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2604esac
2605host=$ac_cv_host
2606ac_save_IFS=$IFS; IFS='-'
2607set x $ac_cv_host
2608shift
2609host_cpu=$1
2610host_vendor=$2
2611shift; shift
2612# Remember, the first character of IFS is used to create $*,
2613# except with old shells:
2614host_os=$*
2615IFS=$ac_save_IFS
2616case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2617
2618
2619{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2620$as_echo_n "checking target system type... " >&6; }
2621if test "${ac_cv_target+set}" = set; then :
2622 $as_echo_n "(cached) " >&6
5464f5a1 2623else
81ecdfbb
RW
2624 if test "x$target_alias" = x; then
2625 ac_cv_target=$ac_cv_host
2626else
2627 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2628 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
5464f5a1
NN
2629fi
2630
2631fi
81ecdfbb
RW
2632{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2633$as_echo "$ac_cv_target" >&6; }
2634case $ac_cv_target in
2635*-*-*) ;;
2636*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2637esac
2638target=$ac_cv_target
2639ac_save_IFS=$IFS; IFS='-'
2640set x $ac_cv_target
2641shift
2642target_cpu=$1
2643target_vendor=$2
2644shift; shift
2645# Remember, the first character of IFS is used to create $*,
2646# except with old shells:
2647target_os=$*
2648IFS=$ac_save_IFS
2649case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2650
2651
2652# The aliases save the names the user supplied, while $host etc.
2653# will get canonicalized.
2654test -n "$target_alias" &&
2655 test "$program_prefix$program_suffix$program_transform_name" = \
2656 NONENONEs,x,x, &&
2657 program_prefix=${target_alias}-
2658ac_ext=c
2659ac_cpp='$CPP $CPPFLAGS'
2660ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2661ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2662ac_compiler_gnu=$ac_cv_c_compiler_gnu
2663if test -n "$ac_tool_prefix"; then
2664 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2665set dummy ${ac_tool_prefix}gcc; ac_word=$2
2666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2667$as_echo_n "checking for $ac_word... " >&6; }
2668if test "${ac_cv_prog_CC+set}" = set; then :
2669 $as_echo_n "(cached) " >&6
5464f5a1 2670else
81ecdfbb
RW
2671 if test -n "$CC"; then
2672 ac_cv_prog_CC="$CC" # Let the user override the test.
5464f5a1
NN
2673else
2674as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2675for as_dir in $PATH
2676do
2677 IFS=$as_save_IFS
2678 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2679 for ac_exec_ext in '' $ac_executable_extensions; do
2680 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2681 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2682 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5464f5a1
NN
2683 break 2
2684 fi
2685done
81ecdfbb
RW
2686 done
2687IFS=$as_save_IFS
5464f5a1
NN
2688
2689fi
2690fi
81ecdfbb
RW
2691CC=$ac_cv_prog_CC
2692if test -n "$CC"; then
2693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2694$as_echo "$CC" >&6; }
5464f5a1 2695else
81ecdfbb
RW
2696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2697$as_echo "no" >&6; }
5464f5a1
NN
2698fi
2699
81ecdfbb
RW
2700
2701fi
2702if test -z "$ac_cv_prog_CC"; then
2703 ac_ct_CC=$CC
2704 # Extract the first word of "gcc", so it can be a program name with args.
2705set dummy gcc; ac_word=$2
2706{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2707$as_echo_n "checking for $ac_word... " >&6; }
2708if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2709 $as_echo_n "(cached) " >&6
2710else
2711 if test -n "$ac_ct_CC"; then
2712 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2713else
2714as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2715for as_dir in $PATH
2716do
2717 IFS=$as_save_IFS
2718 test -z "$as_dir" && as_dir=.
2719 for ac_exec_ext in '' $ac_executable_extensions; do
2720 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2721 ac_cv_prog_ac_ct_CC="gcc"
2722 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2723 break 2
2724 fi
2725done
2726 done
2727IFS=$as_save_IFS
2728
2729fi
2730fi
2731ac_ct_CC=$ac_cv_prog_ac_ct_CC
2732if test -n "$ac_ct_CC"; then
2733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2734$as_echo "$ac_ct_CC" >&6; }
2735else
2736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2737$as_echo "no" >&6; }
2738fi
2739
2740 if test "x$ac_ct_CC" = x; then
2741 CC=""
2742 else
2743 case $cross_compiling:$ac_tool_warned in
2744yes:)
2745{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2746$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2747ac_tool_warned=yes ;;
2748esac
2749 CC=$ac_ct_CC
2750 fi
2751else
2752 CC="$ac_cv_prog_CC"
2753fi
2754
2755if test -z "$CC"; then
2756 if test -n "$ac_tool_prefix"; then
2757 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2758set dummy ${ac_tool_prefix}cc; ac_word=$2
2759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2760$as_echo_n "checking for $ac_word... " >&6; }
2761if test "${ac_cv_prog_CC+set}" = set; then :
2762 $as_echo_n "(cached) " >&6
2763else
2764 if test -n "$CC"; then
2765 ac_cv_prog_CC="$CC" # Let the user override the test.
2766else
2767as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2768for as_dir in $PATH
2769do
2770 IFS=$as_save_IFS
2771 test -z "$as_dir" && as_dir=.
2772 for ac_exec_ext in '' $ac_executable_extensions; do
2773 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2774 ac_cv_prog_CC="${ac_tool_prefix}cc"
2775 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2776 break 2
2777 fi
2778done
2779 done
2780IFS=$as_save_IFS
2781
5464f5a1 2782fi
81ecdfbb
RW
2783fi
2784CC=$ac_cv_prog_CC
2785if test -n "$CC"; then
2786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2787$as_echo "$CC" >&6; }
2788else
2789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2790$as_echo "no" >&6; }
2791fi
2792
5464f5a1 2793
81ecdfbb 2794 fi
5464f5a1
NN
2795fi
2796if test -z "$CC"; then
2797 # Extract the first word of "cc", so it can be a program name with args.
2798set dummy cc; ac_word=$2
81ecdfbb
RW
2799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2800$as_echo_n "checking for $ac_word... " >&6; }
2801if test "${ac_cv_prog_CC+set}" = set; then :
2802 $as_echo_n "(cached) " >&6
5464f5a1
NN
2803else
2804 if test -n "$CC"; then
2805 ac_cv_prog_CC="$CC" # Let the user override the test.
2806else
2807 ac_prog_rejected=no
2808as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2809for as_dir in $PATH
2810do
2811 IFS=$as_save_IFS
2812 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2813 for ac_exec_ext in '' $ac_executable_extensions; do
2814 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5464f5a1
NN
2815 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2816 ac_prog_rejected=yes
2817 continue
2818 fi
2819 ac_cv_prog_CC="cc"
81ecdfbb 2820 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5464f5a1
NN
2821 break 2
2822 fi
2823done
81ecdfbb
RW
2824 done
2825IFS=$as_save_IFS
5464f5a1
NN
2826
2827if test $ac_prog_rejected = yes; then
2828 # We found a bogon in the path, so make sure we never use it.
2829 set dummy $ac_cv_prog_CC
2830 shift
2831 if test $# != 0; then
2832 # We chose a different compiler from the bogus one.
2833 # However, it has the same basename, so the bogon will be chosen
2834 # first if we set CC to just the basename; use the full file name.
2835 shift
2836 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2837 fi
2838fi
2839fi
2840fi
2841CC=$ac_cv_prog_CC
2842if test -n "$CC"; then
81ecdfbb
RW
2843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2844$as_echo "$CC" >&6; }
5464f5a1 2845else
81ecdfbb
RW
2846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2847$as_echo "no" >&6; }
5464f5a1
NN
2848fi
2849
81ecdfbb 2850
5464f5a1
NN
2851fi
2852if test -z "$CC"; then
2853 if test -n "$ac_tool_prefix"; then
81ecdfbb 2854 for ac_prog in cl.exe
5464f5a1
NN
2855 do
2856 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2857set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
2858{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2859$as_echo_n "checking for $ac_word... " >&6; }
2860if test "${ac_cv_prog_CC+set}" = set; then :
2861 $as_echo_n "(cached) " >&6
5464f5a1
NN
2862else
2863 if test -n "$CC"; then
2864 ac_cv_prog_CC="$CC" # Let the user override the test.
2865else
2866as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2867for as_dir in $PATH
2868do
2869 IFS=$as_save_IFS
2870 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2871 for ac_exec_ext in '' $ac_executable_extensions; do
2872 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5464f5a1 2873 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
81ecdfbb 2874 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5464f5a1
NN
2875 break 2
2876 fi
2877done
81ecdfbb
RW
2878 done
2879IFS=$as_save_IFS
5464f5a1
NN
2880
2881fi
2882fi
2883CC=$ac_cv_prog_CC
2884if test -n "$CC"; then
81ecdfbb
RW
2885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2886$as_echo "$CC" >&6; }
5464f5a1 2887else
81ecdfbb
RW
2888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2889$as_echo "no" >&6; }
5464f5a1
NN
2890fi
2891
81ecdfbb 2892
5464f5a1
NN
2893 test -n "$CC" && break
2894 done
2895fi
2896if test -z "$CC"; then
2897 ac_ct_CC=$CC
81ecdfbb 2898 for ac_prog in cl.exe
5464f5a1
NN
2899do
2900 # Extract the first word of "$ac_prog", so it can be a program name with args.
2901set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
2902{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2903$as_echo_n "checking for $ac_word... " >&6; }
2904if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2905 $as_echo_n "(cached) " >&6
5464f5a1
NN
2906else
2907 if test -n "$ac_ct_CC"; then
2908 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2909else
2910as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2911for as_dir in $PATH
2912do
2913 IFS=$as_save_IFS
2914 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2915 for ac_exec_ext in '' $ac_executable_extensions; do
2916 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5464f5a1 2917 ac_cv_prog_ac_ct_CC="$ac_prog"
81ecdfbb 2918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5464f5a1
NN
2919 break 2
2920 fi
2921done
81ecdfbb
RW
2922 done
2923IFS=$as_save_IFS
5464f5a1
NN
2924
2925fi
2926fi
2927ac_ct_CC=$ac_cv_prog_ac_ct_CC
2928if test -n "$ac_ct_CC"; then
81ecdfbb
RW
2929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2930$as_echo "$ac_ct_CC" >&6; }
5464f5a1 2931else
81ecdfbb
RW
2932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2933$as_echo "no" >&6; }
5464f5a1
NN
2934fi
2935
81ecdfbb 2936
5464f5a1
NN
2937 test -n "$ac_ct_CC" && break
2938done
2939
81ecdfbb
RW
2940 if test "x$ac_ct_CC" = x; then
2941 CC=""
2942 else
2943 case $cross_compiling:$ac_tool_warned in
2944yes:)
2945{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2946$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2947ac_tool_warned=yes ;;
2948esac
2949 CC=$ac_ct_CC
2950 fi
5464f5a1
NN
2951fi
2952
2953fi
2954
2955
81ecdfbb
RW
2956test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2957$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2958as_fn_error "no acceptable C compiler found in \$PATH
2959See \`config.log' for more details." "$LINENO" 5; }
5464f5a1
NN
2960
2961# Provide some information about the compiler.
81ecdfbb
RW
2962$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2963set X $ac_compile
2964ac_compiler=$2
2965for ac_option in --version -v -V -qversion; do
2966 { { ac_try="$ac_compiler $ac_option >&5"
2967case "(($ac_try" in
2968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2969 *) ac_try_echo=$ac_try;;
2970esac
2971eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2972$as_echo "$ac_try_echo"; } >&5
2973 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5464f5a1 2974 ac_status=$?
81ecdfbb
RW
2975 if test -s conftest.err; then
2976 sed '10a\
2977... rest of stderr output deleted ...
2978 10q' conftest.err >conftest.er1
2979 cat conftest.er1 >&5
2980 rm -f conftest.er1 conftest.err
2981 fi
2982 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2983 test $ac_status = 0; }
2984done
5464f5a1 2985
81ecdfbb 2986cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5464f5a1
NN
2987/* end confdefs.h. */
2988
2989int
2990main ()
2991{
2992
2993 ;
2994 return 0;
2995}
2996_ACEOF
2997ac_clean_files_save=$ac_clean_files
81ecdfbb 2998ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
5464f5a1
NN
2999# Try to create an executable without -o first, disregard a.out.
3000# It will help us diagnose broken compilers, and finding out an intuition
3001# of exeext.
81ecdfbb
RW
3002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3003$as_echo_n "checking for C compiler default output file name... " >&6; }
3004ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3005
3006# The possible output files:
3007ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3008
3009ac_rmfiles=
3010for ac_file in $ac_files
3011do
3012 case $ac_file in
3013 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3014 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3015 esac
3016done
3017rm -f $ac_rmfiles
3018
3019if { { ac_try="$ac_link_default"
3020case "(($ac_try" in
3021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3022 *) ac_try_echo=$ac_try;;
3023esac
3024eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3025$as_echo "$ac_try_echo"; } >&5
3026 (eval "$ac_link_default") 2>&5
3027 ac_status=$?
3028 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3029 test $ac_status = 0; }; then :
3030 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3031# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3032# in a Makefile. We should not override ac_cv_exeext if it was cached,
3033# so that the user can short-circuit this test for compilers unknown to
3034# Autoconf.
3035for ac_file in $ac_files ''
5464f5a1
NN
3036do
3037 test -f "$ac_file" || continue
3038 case $ac_file in
81ecdfbb 3039 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
5464f5a1
NN
3040 ;;
3041 [ab].out )
3042 # We found the default executable, but exeext='' is most
3043 # certainly right.
3044 break;;
3045 *.* )
81ecdfbb
RW
3046 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3047 then :; else
3048 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3049 fi
3050 # We set ac_cv_exeext here because the later test for it is not
3051 # safe: cross compilers may not add the suffix if given an `-o'
3052 # argument, so we may need to know it at that point already.
3053 # Even if this section looks crufty: it has the advantage of
3054 # actually working.
5464f5a1
NN
3055 break;;
3056 * )
3057 break;;
3058 esac
3059done
81ecdfbb
RW
3060test "$ac_cv_exeext" = no && ac_cv_exeext=
3061
5464f5a1 3062else
81ecdfbb
RW
3063 ac_file=''
3064fi
3065{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3066$as_echo "$ac_file" >&6; }
3067if test -z "$ac_file"; then :
3068 $as_echo "$as_me: failed program was:" >&5
5464f5a1
NN
3069sed 's/^/| /' conftest.$ac_ext >&5
3070
81ecdfbb
RW
3071{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3072$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3073{ as_fn_set_status 77
3074as_fn_error "C compiler cannot create executables
3075See \`config.log' for more details." "$LINENO" 5; }; }
5464f5a1 3076fi
5464f5a1 3077ac_exeext=$ac_cv_exeext
5464f5a1 3078
81ecdfbb 3079# Check that the compiler produces executables we can run. If not, either
5464f5a1 3080# the compiler is broken, or we cross compile.
81ecdfbb
RW
3081{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3082$as_echo_n "checking whether the C compiler works... " >&6; }
5464f5a1
NN
3083# If not cross compiling, check that we can run a simple program.
3084if test "$cross_compiling" != yes; then
3085 if { ac_try='./$ac_file'
81ecdfbb
RW
3086 { { case "(($ac_try" in
3087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3088 *) ac_try_echo=$ac_try;;
3089esac
3090eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3091$as_echo "$ac_try_echo"; } >&5
3092 (eval "$ac_try") 2>&5
5464f5a1 3093 ac_status=$?
81ecdfbb
RW
3094 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3095 test $ac_status = 0; }; }; then
5464f5a1
NN
3096 cross_compiling=no
3097 else
3098 if test "$cross_compiling" = maybe; then
3099 cross_compiling=yes
3100 else
81ecdfbb
RW
3101 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3102$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3103as_fn_error "cannot run C compiled programs.
5464f5a1 3104If you meant to cross compile, use \`--host'.
81ecdfbb 3105See \`config.log' for more details." "$LINENO" 5; }
5464f5a1
NN
3106 fi
3107 fi
3108fi
81ecdfbb
RW
3109{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3110$as_echo "yes" >&6; }
5464f5a1 3111
81ecdfbb 3112rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
5464f5a1 3113ac_clean_files=$ac_clean_files_save
81ecdfbb 3114# Check that the compiler produces executables we can run. If not, either
5464f5a1 3115# the compiler is broken, or we cross compile.
81ecdfbb
RW
3116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3117$as_echo_n "checking whether we are cross compiling... " >&6; }
3118{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3119$as_echo "$cross_compiling" >&6; }
3120
3121{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3122$as_echo_n "checking for suffix of executables... " >&6; }
3123if { { ac_try="$ac_link"
3124case "(($ac_try" in
3125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3126 *) ac_try_echo=$ac_try;;
3127esac
3128eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3129$as_echo "$ac_try_echo"; } >&5
3130 (eval "$ac_link") 2>&5
5464f5a1 3131 ac_status=$?
81ecdfbb
RW
3132 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3133 test $ac_status = 0; }; then :
5464f5a1
NN
3134 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3135# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3136# work properly (i.e., refer to `conftest.exe'), while it won't with
3137# `rm'.
3138for ac_file in conftest.exe conftest conftest.*; do
3139 test -f "$ac_file" || continue
3140 case $ac_file in
81ecdfbb 3141 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5464f5a1 3142 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5464f5a1
NN
3143 break;;
3144 * ) break;;
3145 esac
3146done
3147else
81ecdfbb
RW
3148 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3149$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3150as_fn_error "cannot compute suffix of executables: cannot compile and link
3151See \`config.log' for more details." "$LINENO" 5; }
5464f5a1 3152fi
5464f5a1 3153rm -f conftest$ac_cv_exeext
81ecdfbb
RW
3154{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3155$as_echo "$ac_cv_exeext" >&6; }
5464f5a1
NN
3156
3157rm -f conftest.$ac_ext
3158EXEEXT=$ac_cv_exeext
3159ac_exeext=$EXEEXT
81ecdfbb
RW
3160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3161$as_echo_n "checking for suffix of object files... " >&6; }
3162if test "${ac_cv_objext+set}" = set; then :
3163 $as_echo_n "(cached) " >&6
5464f5a1 3164else
81ecdfbb 3165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5464f5a1
NN
3166/* end confdefs.h. */
3167
3168int
3169main ()
3170{
3171
3172 ;
3173 return 0;
3174}
3175_ACEOF
3176rm -f conftest.o conftest.obj
81ecdfbb
RW
3177if { { ac_try="$ac_compile"
3178case "(($ac_try" in
3179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3180 *) ac_try_echo=$ac_try;;
3181esac
3182eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3183$as_echo "$ac_try_echo"; } >&5
3184 (eval "$ac_compile") 2>&5
3185 ac_status=$?
3186 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3187 test $ac_status = 0; }; then :
3188 for ac_file in conftest.o conftest.obj conftest.*; do
3189 test -f "$ac_file" || continue;
5464f5a1 3190 case $ac_file in
81ecdfbb 3191 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5464f5a1
NN
3192 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3193 break;;
3194 esac
3195done
3196else
81ecdfbb 3197 $as_echo "$as_me: failed program was:" >&5
5464f5a1
NN
3198sed 's/^/| /' conftest.$ac_ext >&5
3199
81ecdfbb
RW
3200{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3201$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3202as_fn_error "cannot compute suffix of object files: cannot compile
3203See \`config.log' for more details." "$LINENO" 5; }
5464f5a1 3204fi
5464f5a1
NN
3205rm -f conftest.$ac_cv_objext conftest.$ac_ext
3206fi
81ecdfbb
RW
3207{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3208$as_echo "$ac_cv_objext" >&6; }
5464f5a1
NN
3209OBJEXT=$ac_cv_objext
3210ac_objext=$OBJEXT
81ecdfbb
RW
3211{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3212$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3213if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3214 $as_echo_n "(cached) " >&6
5464f5a1 3215else
81ecdfbb 3216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5464f5a1
NN
3217/* end confdefs.h. */
3218
3219int
3220main ()
3221{
3222#ifndef __GNUC__
3223 choke me
3224#endif
3225
3226 ;
3227 return 0;
3228}
3229_ACEOF
81ecdfbb 3230if ac_fn_c_try_compile "$LINENO"; then :
5464f5a1
NN
3231 ac_compiler_gnu=yes
3232else
81ecdfbb 3233 ac_compiler_gnu=no
5464f5a1 3234fi
81ecdfbb 3235rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5464f5a1
NN
3236ac_cv_c_compiler_gnu=$ac_compiler_gnu
3237
3238fi
81ecdfbb
RW
3239{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3240$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3241if test $ac_compiler_gnu = yes; then
3242 GCC=yes
3243else
3244 GCC=
3245fi
5464f5a1
NN
3246ac_test_CFLAGS=${CFLAGS+set}
3247ac_save_CFLAGS=$CFLAGS
81ecdfbb
RW
3248{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3249$as_echo_n "checking whether $CC accepts -g... " >&6; }
3250if test "${ac_cv_prog_cc_g+set}" = set; then :
3251 $as_echo_n "(cached) " >&6
3252else
3253 ac_save_c_werror_flag=$ac_c_werror_flag
3254 ac_c_werror_flag=yes
3255 ac_cv_prog_cc_g=no
3256 CFLAGS="-g"
3257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5464f5a1
NN
3258/* end confdefs.h. */
3259
3260int
3261main ()
3262{
3263
3264 ;
3265 return 0;
3266}
3267_ACEOF
81ecdfbb 3268if ac_fn_c_try_compile "$LINENO"; then :
5464f5a1
NN
3269 ac_cv_prog_cc_g=yes
3270else
81ecdfbb
RW
3271 CFLAGS=""
3272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3273/* end confdefs.h. */
5464f5a1 3274
81ecdfbb
RW
3275int
3276main ()
3277{
3278
3279 ;
3280 return 0;
3281}
3282_ACEOF
3283if ac_fn_c_try_compile "$LINENO"; then :
3284
3285else
3286 ac_c_werror_flag=$ac_save_c_werror_flag
3287 CFLAGS="-g"
3288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3289/* end confdefs.h. */
3290
3291int
3292main ()
3293{
3294
3295 ;
3296 return 0;
3297}
3298_ACEOF
3299if ac_fn_c_try_compile "$LINENO"; then :
3300 ac_cv_prog_cc_g=yes
3301fi
3302rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5464f5a1 3303fi
81ecdfbb 3304rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5464f5a1 3305fi
81ecdfbb
RW
3306rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3307 ac_c_werror_flag=$ac_save_c_werror_flag
3308fi
3309{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3310$as_echo "$ac_cv_prog_cc_g" >&6; }
5464f5a1
NN
3311if test "$ac_test_CFLAGS" = set; then
3312 CFLAGS=$ac_save_CFLAGS
3313elif test $ac_cv_prog_cc_g = yes; then
3314 if test "$GCC" = yes; then
3315 CFLAGS="-g -O2"
3316 else
3317 CFLAGS="-g"
3318 fi
3319else
3320 if test "$GCC" = yes; then
3321 CFLAGS="-O2"
3322 else
3323 CFLAGS=
3324 fi
3325fi
81ecdfbb
RW
3326{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3327$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3328if test "${ac_cv_prog_cc_c89+set}" = set; then :
3329 $as_echo_n "(cached) " >&6
5464f5a1 3330else
81ecdfbb 3331 ac_cv_prog_cc_c89=no
5464f5a1 3332ac_save_CC=$CC
81ecdfbb 3333cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5464f5a1
NN
3334/* end confdefs.h. */
3335#include <stdarg.h>
3336#include <stdio.h>
3337#include <sys/types.h>
3338#include <sys/stat.h>
3339/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3340struct buf { int x; };
3341FILE * (*rcsopen) (struct buf *, struct stat *, int);
3342static char *e (p, i)
3343 char **p;
3344 int i;
3345{
3346 return p[i];
3347}
3348static char *f (char * (*g) (char **, int), char **p, ...)
3349{
3350 char *s;
3351 va_list v;
3352 va_start (v,p);
3353 s = g (p, va_arg (v,int));
3354 va_end (v);
3355 return s;
3356}
3357
3358/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3359 function prototypes and stuff, but not '\xHH' hex character constants.
3360 These don't provoke an error unfortunately, instead are silently treated
81ecdfbb 3361 as 'x'. The following induces an error, until -std is added to get
5464f5a1
NN
3362 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3363 array size at least. It's necessary to write '\x00'==0 to get something
81ecdfbb 3364 that's true only with -std. */
5464f5a1
NN
3365int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3366
81ecdfbb
RW
3367/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3368 inside strings and character constants. */
3369#define FOO(x) 'x'
3370int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3371
5464f5a1
NN
3372int test (int i, double x);
3373struct s1 {int (*f) (int a);};
3374struct s2 {int (*f) (double a);};
3375int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3376int argc;
3377char **argv;
3378int
3379main ()
3380{
3381return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3382 ;
3383 return 0;
3384}
3385_ACEOF
81ecdfbb
RW
3386for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3387 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5464f5a1
NN
3388do
3389 CC="$ac_save_CC $ac_arg"
81ecdfbb
RW
3390 if ac_fn_c_try_compile "$LINENO"; then :
3391 ac_cv_prog_cc_c89=$ac_arg
5464f5a1 3392fi
81ecdfbb
RW
3393rm -f core conftest.err conftest.$ac_objext
3394 test "x$ac_cv_prog_cc_c89" != "xno" && break
5464f5a1 3395done
81ecdfbb 3396rm -f conftest.$ac_ext
5464f5a1
NN
3397CC=$ac_save_CC
3398
3399fi
81ecdfbb
RW
3400# AC_CACHE_VAL
3401case "x$ac_cv_prog_cc_c89" in
3402 x)
3403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3404$as_echo "none needed" >&6; } ;;
3405 xno)
3406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3407$as_echo "unsupported" >&6; } ;;
5464f5a1 3408 *)
81ecdfbb
RW
3409 CC="$CC $ac_cv_prog_cc_c89"
3410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3411$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5464f5a1 3412esac
81ecdfbb 3413if test "x$ac_cv_prog_cc_c89" != xno; then :
5464f5a1
NN
3414
3415fi
5464f5a1 3416
5464f5a1
NN
3417ac_ext=c
3418ac_cpp='$CPP $CPPFLAGS'
3419ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3420ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3421ac_compiler_gnu=$ac_cv_c_compiler_gnu
3422
3423
81ecdfbb
RW
3424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
3425$as_echo_n "checking for library containing strerror... " >&6; }
3426if test "${ac_cv_search_strerror+set}" = set; then :
3427 $as_echo_n "(cached) " >&6
5464f5a1 3428else
f5385ebf 3429 ac_func_search_save_LIBS=$LIBS
81ecdfbb 3430cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5464f5a1
NN
3431/* end confdefs.h. */
3432
81ecdfbb
RW
3433/* Override any GCC internal prototype to avoid an error.
3434 Use char because int might match the return type of a GCC
3435 builtin and then its argument prototype would still apply. */
5464f5a1
NN
3436#ifdef __cplusplus
3437extern "C"
3438#endif
5464f5a1
NN
3439char strerror ();
3440int
3441main ()
3442{
81ecdfbb 3443return strerror ();
5464f5a1
NN
3444 ;
3445 return 0;
3446}
3447_ACEOF
81ecdfbb
RW
3448for ac_lib in '' cposix; do
3449 if test -z "$ac_lib"; then
3450 ac_res="none required"
3451 else
3452 ac_res=-l$ac_lib
f5385ebf 3453 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
81ecdfbb
RW
3454 fi
3455 if ac_fn_c_try_link "$LINENO"; then :
3456 ac_cv_search_strerror=$ac_res
3457fi
3458rm -f core conftest.err conftest.$ac_objext \
3459 conftest$ac_exeext
3460 if test "${ac_cv_search_strerror+set}" = set; then :
3461 break
3462fi
3463done
3464if test "${ac_cv_search_strerror+set}" = set; then :
f5385ebf 3465
f5385ebf 3466else
81ecdfbb 3467 ac_cv_search_strerror=no
5464f5a1 3468fi
81ecdfbb 3469rm conftest.$ac_ext
f5385ebf
AM
3470LIBS=$ac_func_search_save_LIBS
3471fi
81ecdfbb
RW
3472{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
3473$as_echo "$ac_cv_search_strerror" >&6; }
3474ac_res=$ac_cv_search_strerror
3475if test "$ac_res" != no; then :
3476 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5464f5a1 3477
f5385ebf 3478fi
5464f5a1
NN
3479
3480
81ecdfbb
RW
3481am__api_version='1.11'
3482
5464f5a1
NN
3483# Find a good install program. We prefer a C program (faster),
3484# so one script is as good as another. But avoid the broken or
3485# incompatible versions:
3486# SysV /etc/install, /usr/sbin/install
3487# SunOS /usr/etc/install
3488# IRIX /sbin/install
3489# AIX /bin/install
3490# AmigaOS /C/install, which installs bootblocks on floppy discs
252b5132
RH
3491# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3492# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3493# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5464f5a1 3494# OS/2's system install, which has a completely different semantic
252b5132 3495# ./install, which can be erroneously created by make from ./install.sh.
58c85be7 3496# Reject install programs that cannot install multiple files.
81ecdfbb
RW
3497{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3498$as_echo_n "checking for a BSD-compatible install... " >&6; }
252b5132 3499if test -z "$INSTALL"; then
81ecdfbb
RW
3500if test "${ac_cv_path_install+set}" = set; then :
3501 $as_echo_n "(cached) " >&6
252b5132 3502else
5464f5a1
NN
3503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3504for as_dir in $PATH
3505do
3506 IFS=$as_save_IFS
3507 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3508 # Account for people who put trailing slashes in PATH elements.
3509case $as_dir/ in #((
3510 ./ | .// | /[cC]/* | \
5464f5a1 3511 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
81ecdfbb 3512 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
5464f5a1
NN
3513 /usr/ucb/* ) ;;
3514 *)
3515 # OSF1 and SCO ODT 3.0 have their own names for install.
3516 # Don't use installbsd from OSF since it installs stuff as root
3517 # by default.
3518 for ac_prog in ginstall scoinst install; do
3519 for ac_exec_ext in '' $ac_executable_extensions; do
81ecdfbb 3520 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
252b5132 3521 if test $ac_prog = install &&
5464f5a1 3522 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
252b5132
RH
3523 # AIX install. It has an incompatible calling convention.
3524 :
5464f5a1
NN
3525 elif test $ac_prog = install &&
3526 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3527 # program-specific install script used by HP pwplus--don't use.
3528 :
252b5132 3529 else
58c85be7
RW
3530 rm -rf conftest.one conftest.two conftest.dir
3531 echo one > conftest.one
3532 echo two > conftest.two
3533 mkdir conftest.dir
3534 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3535 test -s conftest.one && test -s conftest.two &&
3536 test -s conftest.dir/conftest.one &&
3537 test -s conftest.dir/conftest.two
3538 then
3539 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3540 break 3
3541 fi
252b5132
RH
3542 fi
3543 fi
3544 done
5464f5a1
NN
3545 done
3546 ;;
3547esac
81ecdfbb
RW
3548
3549 done
3550IFS=$as_save_IFS
5464f5a1 3551
58c85be7 3552rm -rf conftest.one conftest.two conftest.dir
252b5132
RH
3553
3554fi
3555 if test "${ac_cv_path_install+set}" = set; then
5464f5a1 3556 INSTALL=$ac_cv_path_install
252b5132 3557 else
58c85be7
RW
3558 # As a last resort, use the slow shell script. Don't cache a
3559 # value for INSTALL within a source directory, because that will
252b5132 3560 # break other packages using the cache if that directory is
58c85be7 3561 # removed, or if the value is a relative name.
5464f5a1 3562 INSTALL=$ac_install_sh
252b5132
RH
3563 fi
3564fi
81ecdfbb
RW
3565{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3566$as_echo "$INSTALL" >&6; }
252b5132
RH
3567
3568# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3569# It thinks the first close brace ends the variable substitution.
3570test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3571
5464f5a1 3572test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
252b5132
RH
3573
3574test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3575
81ecdfbb
RW
3576{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3577$as_echo_n "checking whether build environment is sane... " >&6; }
252b5132
RH
3578# Just in case
3579sleep 1
f5385ebf 3580echo timestamp > conftest.file
81ecdfbb
RW
3581# Reject unsafe characters in $srcdir or the absolute working directory
3582# name. Accept space and tab only in the latter.
3583am_lf='
3584'
3585case `pwd` in
3586 *[\\\"\#\$\&\'\`$am_lf]*)
3587 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3588esac
3589case $srcdir in
3590 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3591 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3592esac
3593
252b5132
RH
3594# Do `set' in a subshell so we don't clobber the current shell's
3595# arguments. Must try -L first in case configure is actually a
3596# symlink; some systems play weird games with the mod time of symlinks
3597# (eg FreeBSD returns the mod time of the symlink's containing
3598# directory).
3599if (
81ecdfbb 3600 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
252b5132
RH
3601 if test "$*" = "X"; then
3602 # -L didn't work.
81ecdfbb 3603 set X `ls -t "$srcdir/configure" conftest.file`
252b5132 3604 fi
f5385ebf
AM
3605 rm -f conftest.file
3606 if test "$*" != "X $srcdir/configure conftest.file" \
3607 && test "$*" != "X conftest.file $srcdir/configure"; then
252b5132
RH
3608
3609 # If neither matched, then we have a broken ls. This can happen
3610 # if, for instance, CONFIG_SHELL is bash and it inherits a
3611 # broken ls alias from the environment. This has actually
3612 # happened. Such a system could not be considered "sane".
81ecdfbb
RW
3613 as_fn_error "ls -t appears to fail. Make sure there is not a broken
3614alias in your environment" "$LINENO" 5
252b5132
RH
3615 fi
3616
f5385ebf 3617 test "$2" = conftest.file
252b5132
RH
3618 )
3619then
3620 # Ok.
3621 :
3622else
81ecdfbb
RW
3623 as_fn_error "newly created file is older than distributed files!
3624Check your system clock" "$LINENO" 5
252b5132 3625fi
81ecdfbb
RW
3626{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3627$as_echo "yes" >&6; }
252b5132 3628test "$program_prefix" != NONE &&
81ecdfbb 3629 program_transform_name="s&^&$program_prefix&;$program_transform_name"
252b5132
RH
3630# Use a double $ so make ignores it.
3631test "$program_suffix" != NONE &&
81ecdfbb
RW
3632 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3633# Double any \ or $.
5464f5a1 3634# By default was `s,x,x', remove it if useless.
81ecdfbb
RW
3635ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3636program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
5464f5a1 3637
f5385ebf
AM
3638# expand $ac_aux_dir to an absolute path
3639am_aux_dir=`cd $ac_aux_dir && pwd`
3640
81ecdfbb
RW
3641if test x"${MISSING+set}" != xset; then
3642 case $am_aux_dir in
3643 *\ * | *\ *)
3644 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3645 *)
3646 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3647 esac
3648fi
f5385ebf
AM
3649# Use eval to expand $SHELL
3650if eval "$MISSING --run true"; then
3651 am_missing_run="$MISSING --run "
3652else
3653 am_missing_run=
81ecdfbb
RW
3654 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3655$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3656fi
3657
3658if test x"${install_sh}" != xset; then
3659 case $am_aux_dir in
3660 *\ * | *\ *)
3661 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3662 *)
3663 install_sh="\${SHELL} $am_aux_dir/install-sh"
3664 esac
3665fi
3666
3667# Installed binaries are usually stripped using `strip' when the user
3668# run `make install-strip'. However `strip' might not be the right
3669# tool to use in cross-compilation environments, therefore Automake
3670# will honor the `STRIP' environment variable to overrule this program.
3671if test "$cross_compiling" != no; then
3672 if test -n "$ac_tool_prefix"; then
3673 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3674set dummy ${ac_tool_prefix}strip; ac_word=$2
3675{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3676$as_echo_n "checking for $ac_word... " >&6; }
3677if test "${ac_cv_prog_STRIP+set}" = set; then :
3678 $as_echo_n "(cached) " >&6
3679else
3680 if test -n "$STRIP"; then
3681 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3682else
3683as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3684for as_dir in $PATH
3685do
3686 IFS=$as_save_IFS
3687 test -z "$as_dir" && as_dir=.
3688 for ac_exec_ext in '' $ac_executable_extensions; do
3689 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3690 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3691 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3692 break 2
3693 fi
3694done
3695 done
3696IFS=$as_save_IFS
3697
3698fi
3699fi
3700STRIP=$ac_cv_prog_STRIP
3701if test -n "$STRIP"; then
3702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3703$as_echo "$STRIP" >&6; }
3704else
3705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3706$as_echo "no" >&6; }
3707fi
3708
3709
3710fi
3711if test -z "$ac_cv_prog_STRIP"; then
3712 ac_ct_STRIP=$STRIP
3713 # Extract the first word of "strip", so it can be a program name with args.
3714set dummy strip; ac_word=$2
3715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3716$as_echo_n "checking for $ac_word... " >&6; }
3717if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3718 $as_echo_n "(cached) " >&6
3719else
3720 if test -n "$ac_ct_STRIP"; then
3721 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3722else
3723as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3724for as_dir in $PATH
3725do
3726 IFS=$as_save_IFS
3727 test -z "$as_dir" && as_dir=.
3728 for ac_exec_ext in '' $ac_executable_extensions; do
3729 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3730 ac_cv_prog_ac_ct_STRIP="strip"
3731 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3732 break 2
3733 fi
3734done
3735 done
3736IFS=$as_save_IFS
3737
3738fi
3739fi
3740ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3741if test -n "$ac_ct_STRIP"; then
3742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3743$as_echo "$ac_ct_STRIP" >&6; }
3744else
3745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3746$as_echo "no" >&6; }
3747fi
3748
3749 if test "x$ac_ct_STRIP" = x; then
3750 STRIP=":"
3751 else
3752 case $cross_compiling:$ac_tool_warned in
3753yes:)
3754{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3755$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3756ac_tool_warned=yes ;;
3757esac
3758 STRIP=$ac_ct_STRIP
3759 fi
3760else
3761 STRIP="$ac_cv_prog_STRIP"
3762fi
3763
3764fi
3765INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3766
3767{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3768$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3769if test -z "$MKDIR_P"; then
3770 if test "${ac_cv_path_mkdir+set}" = set; then :
3771 $as_echo_n "(cached) " >&6
3772else
3773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3774for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3775do
3776 IFS=$as_save_IFS
3777 test -z "$as_dir" && as_dir=.
3778 for ac_prog in mkdir gmkdir; do
3779 for ac_exec_ext in '' $ac_executable_extensions; do
3780 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3781 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3782 'mkdir (GNU coreutils) '* | \
3783 'mkdir (coreutils) '* | \
3784 'mkdir (fileutils) '4.1*)
3785 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3786 break 3;;
3787 esac
3788 done
3789 done
f5385ebf 3790 done
81ecdfbb
RW
3791IFS=$as_save_IFS
3792
3793fi
3794
3795 if test "${ac_cv_path_mkdir+set}" = set; then
3796 MKDIR_P="$ac_cv_path_mkdir -p"
f5385ebf 3797 else
81ecdfbb
RW
3798 # As a last resort, use the slow shell script. Don't cache a
3799 # value for MKDIR_P within a source directory, because that will
3800 # break other packages using the cache if that directory is
3801 # removed, or if the value is a relative name.
3802 test -d ./--version && rmdir ./--version
3803 MKDIR_P="$ac_install_sh -d"
f5385ebf
AM
3804 fi
3805fi
81ecdfbb
RW
3806{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3807$as_echo "$MKDIR_P" >&6; }
3808
3809mkdir_p="$MKDIR_P"
3810case $mkdir_p in
3811 [\\/$]* | ?:[\\/]*) ;;
3812 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3813esac
f5385ebf
AM
3814
3815for ac_prog in gawk mawk nawk awk
3816do
3817 # Extract the first word of "$ac_prog", so it can be a program name with args.
3818set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
3819{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3820$as_echo_n "checking for $ac_word... " >&6; }
3821if test "${ac_cv_prog_AWK+set}" = set; then :
3822 $as_echo_n "(cached) " >&6
f5385ebf
AM
3823else
3824 if test -n "$AWK"; then
3825 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3826else
3827as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3828for as_dir in $PATH
3829do
3830 IFS=$as_save_IFS
3831 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3832 for ac_exec_ext in '' $ac_executable_extensions; do
3833 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
f5385ebf 3834 ac_cv_prog_AWK="$ac_prog"
81ecdfbb 3835 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
f5385ebf
AM
3836 break 2
3837 fi
3838done
81ecdfbb
RW
3839 done
3840IFS=$as_save_IFS
f5385ebf
AM
3841
3842fi
3843fi
3844AWK=$ac_cv_prog_AWK
3845if test -n "$AWK"; then
81ecdfbb
RW
3846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3847$as_echo "$AWK" >&6; }
f5385ebf 3848else
81ecdfbb
RW
3849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3850$as_echo "no" >&6; }
f5385ebf
AM
3851fi
3852
81ecdfbb 3853
f5385ebf
AM
3854 test -n "$AWK" && break
3855done
3856
81ecdfbb
RW
3857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3858$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3859set x ${MAKE-make}
3860ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3861if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3862 $as_echo_n "(cached) " >&6
5464f5a1
NN
3863else
3864 cat >conftest.make <<\_ACEOF
81ecdfbb 3865SHELL = /bin/sh
252b5132 3866all:
81ecdfbb 3867 @echo '@@@%%%=$(MAKE)=@@@%%%'
5464f5a1 3868_ACEOF
252b5132 3869# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
81ecdfbb
RW
3870case `${MAKE-make} -f conftest.make 2>/dev/null` in
3871 *@@@%%%=?*=@@@%%%*)
3872 eval ac_cv_prog_make_${ac_make}_set=yes;;
3873 *)
3874 eval ac_cv_prog_make_${ac_make}_set=no;;
3875esac
5464f5a1 3876rm -f conftest.make
252b5132 3877fi
81ecdfbb
RW
3878if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3880$as_echo "yes" >&6; }
252b5132
RH
3881 SET_MAKE=
3882else
81ecdfbb
RW
3883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3884$as_echo "no" >&6; }
252b5132
RH
3885 SET_MAKE="MAKE=${MAKE-make}"
3886fi
3887
f5385ebf
AM
3888rm -rf .tst 2>/dev/null
3889mkdir .tst 2>/dev/null
3890if test -d .tst; then
3891 am__leading_dot=.
3892else
3893 am__leading_dot=_
3894fi
3895rmdir .tst 2>/dev/null
3896
3897DEPDIR="${am__leading_dot}deps"
3898
81ecdfbb 3899ac_config_commands="$ac_config_commands depfiles"
f5385ebf
AM
3900
3901
3902am_make=${MAKE-make}
3903cat > confinc << 'END'
3904am__doit:
81ecdfbb 3905 @echo this is the am__doit target
f5385ebf
AM
3906.PHONY: am__doit
3907END
3908# If we don't find an include directive, just comment out the code.
81ecdfbb
RW
3909{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3910$as_echo_n "checking for style of include used by $am_make... " >&6; }
f5385ebf
AM
3911am__include="#"
3912am__quote=
3913_am_result=none
3914# First try GNU make style include.
3915echo "include confinc" > confmf
81ecdfbb
RW
3916# Ignore all kinds of additional output from `make'.
3917case `$am_make -s -f confmf 2> /dev/null` in #(
3918*the\ am__doit\ target*)
3919 am__include=include
3920 am__quote=
3921 _am_result=GNU
3922 ;;
3923esac
f5385ebf
AM
3924# Now try BSD make style include.
3925if test "$am__include" = "#"; then
3926 echo '.include "confinc"' > confmf
81ecdfbb
RW
3927 case `$am_make -s -f confmf 2> /dev/null` in #(
3928 *the\ am__doit\ target*)
3929 am__include=.include
3930 am__quote="\""
3931 _am_result=BSD
3932 ;;
3933 esac
f5385ebf
AM
3934fi
3935
3936
81ecdfbb
RW
3937{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3938$as_echo "$_am_result" >&6; }
f5385ebf
AM
3939rm -f confinc confmf
3940
81ecdfbb
RW
3941# Check whether --enable-dependency-tracking was given.
3942if test "${enable_dependency_tracking+set}" = set; then :
3943 enableval=$enable_dependency_tracking;
3944fi
f5385ebf 3945
f5385ebf
AM
3946if test "x$enable_dependency_tracking" != xno; then
3947 am_depcomp="$ac_aux_dir/depcomp"
3948 AMDEPBACKSLASH='\'
3949fi
81ecdfbb 3950 if test "x$enable_dependency_tracking" != xno; then
f5385ebf
AM
3951 AMDEP_TRUE=
3952 AMDEP_FALSE='#'
3953else
3954 AMDEP_TRUE='#'
3955 AMDEP_FALSE=
3956fi
6be7c12c 3957
252b5132 3958
81ecdfbb
RW
3959if test "`cd $srcdir && pwd`" != "`pwd`"; then
3960 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3961 # is not polluted with repeated "-I."
3962 am__isrc=' -I$(srcdir)'
3963 # test to see if srcdir already configured
3964 if test -f $srcdir/config.status; then
3965 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3966 fi
252b5132 3967fi
5464f5a1 3968
f5385ebf
AM
3969# test whether we have cygpath
3970if test -z "$CYGPATH_W"; then
3971 if (cygpath --version) >/dev/null 2>/dev/null; then
3972 CYGPATH_W='cygpath -w'
3973 else
3974 CYGPATH_W=echo
3975 fi
3976fi
3977
3978
3979# Define the identity of the package.
3980 PACKAGE=bfd
df7e4f42 3981 VERSION=2.20.51
f5385ebf
AM
3982
3983
5464f5a1 3984cat >>confdefs.h <<_ACEOF
252b5132 3985#define PACKAGE "$PACKAGE"
5464f5a1 3986_ACEOF
252b5132 3987
5464f5a1
NN
3988
3989cat >>confdefs.h <<_ACEOF
252b5132 3990#define VERSION "$VERSION"
5464f5a1 3991_ACEOF
252b5132 3992
f5385ebf
AM
3993# Some tools Automake needs.
3994
3995ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3996
3997
3998AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3999
4000
4001AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4002
4003
4004AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4005
4006
4007MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
6be7c12c 4008
f5385ebf
AM
4009# We need awk for the "check" target. The system "awk" is bad on
4010# some platforms.
4011# Always define AMTAR for backward compatibility.
4012
4013AMTAR=${AMTAR-"${am_missing_run}tar"}
4014
4015am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4016
252b5132 4017
f5385ebf
AM
4018
4019
4020depcc="$CC" am_compiler_list=
4021
81ecdfbb
RW
4022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4023$as_echo_n "checking dependency style of $depcc... " >&6; }
4024if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4025 $as_echo_n "(cached) " >&6
252b5132 4026else
f5385ebf
AM
4027 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4028 # We make a subdir and do the tests there. Otherwise we can end up
4029 # making bogus files that we don't know about and never remove. For
4030 # instance it was reported that on HP-UX the gcc test will end up
4031 # making a dummy file named `D' -- because `-MD' means `put the output
4032 # in D'.
4033 mkdir conftest.dir
4034 # Copy depcomp to subdir because otherwise we won't find it if we're
4035 # using a relative directory.
4036 cp "$am_depcomp" conftest.dir
4037 cd conftest.dir
4038 # We will build objects and dependencies in a subdirectory because
4039 # it helps to detect inapplicable dependency modes. For instance
4040 # both Tru64's cc and ICC support -MD to output dependencies as a
4041 # side effect of compilation, but ICC will put the dependencies in
4042 # the current directory while Tru64 will put them in the object
4043 # directory.
4044 mkdir sub
4045
4046 am_cv_CC_dependencies_compiler_type=none
4047 if test "$am_compiler_list" = ""; then
4048 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4049 fi
81ecdfbb
RW
4050 am__universal=false
4051 case " $depcc " in #(
4052 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4053 esac
4054
f5385ebf
AM
4055 for depmode in $am_compiler_list; do
4056 # Setup a source with many dependencies, because some compilers
4057 # like to wrap large dependency lists on column 80 (with \), and
4058 # we should not choose a depcomp mode which is confused by this.
4059 #
4060 # We need to recreate these files for each test, as the compiler may
4061 # overwrite some of them when testing with obscure command lines.
4062 # This happens at least with the AIX C compiler.
4063 : > sub/conftest.c
4064 for i in 1 2 3 4 5 6; do
4065 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4066 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4067 # Solaris 8's {/usr,}/bin/sh.
4068 touch sub/conftst$i.h
4069 done
4070 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4071
81ecdfbb
RW
4072 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4073 # mode. It turns out that the SunPro C++ compiler does not properly
4074 # handle `-M -o', and we need to detect this. Also, some Intel
4075 # versions had trouble with output in subdirs
4076 am__obj=sub/conftest.${OBJEXT-o}
4077 am__minus_obj="-o $am__obj"
f5385ebf 4078 case $depmode in
81ecdfbb
RW
4079 gcc)
4080 # This depmode causes a compiler race in universal mode.
4081 test "$am__universal" = false || continue
4082 ;;
f5385ebf
AM
4083 nosideeffect)
4084 # after this tag, mechanisms are not by side-effect, so they'll
4085 # only be used when explicitly requested
4086 if test "x$enable_dependency_tracking" = xyes; then
4087 continue
4088 else
4089 break
4090 fi
4091 ;;
81ecdfbb
RW
4092 msvisualcpp | msvcmsys)
4093 # This compiler won't grok `-c -o', but also, the minuso test has
4094 # not run yet. These depmodes are late enough in the game, and
4095 # so weak that their functioning should not be impacted.
4096 am__obj=conftest.${OBJEXT-o}
4097 am__minus_obj=
4098 ;;
f5385ebf
AM
4099 none) break ;;
4100 esac
f5385ebf 4101 if depmode=$depmode \
81ecdfbb 4102 source=sub/conftest.c object=$am__obj \
f5385ebf 4103 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
81ecdfbb 4104 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
f5385ebf 4105 >/dev/null 2>conftest.err &&
81ecdfbb 4106 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
f5385ebf 4107 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
81ecdfbb 4108 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
f5385ebf
AM
4109 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4110 # icc doesn't choke on unknown options, it will just issue warnings
4111 # or remarks (even with -Werror). So we grep stderr for any message
4112 # that says an option was ignored or not supported.
4113 # When given -MP, icc 7.0 and 7.1 complain thusly:
4114 # icc: Command line warning: ignoring option '-M'; no argument required
4115 # The diagnosis changed in icc 8.0:
4116 # icc: Command line remark: option '-MP' not supported
4117 if (grep 'ignoring option' conftest.err ||
4118 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4119 am_cv_CC_dependencies_compiler_type=$depmode
4120 break
4121 fi
4122 fi
4123 done
4124
4125 cd ..
4126 rm -rf conftest.dir
4127else
4128 am_cv_CC_dependencies_compiler_type=none
4129fi
4130
252b5132 4131fi
81ecdfbb
RW
4132{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4133$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
f5385ebf 4134CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
252b5132 4135
81ecdfbb 4136 if
f5385ebf
AM
4137 test "x$enable_dependency_tracking" != xno \
4138 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4139 am__fastdepCC_TRUE=
4140 am__fastdepCC_FALSE='#'
252b5132 4141else
f5385ebf
AM
4142 am__fastdepCC_TRUE='#'
4143 am__fastdepCC_FALSE=
252b5132
RH
4144fi
4145
6be7c12c 4146
e43d48cc 4147
f5385ebf 4148
5464f5a1
NN
4149if test -n "$ac_tool_prefix"; then
4150 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
252b5132 4151set dummy ${ac_tool_prefix}ar; ac_word=$2
81ecdfbb
RW
4152{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4153$as_echo_n "checking for $ac_word... " >&6; }
4154if test "${ac_cv_prog_AR+set}" = set; then :
4155 $as_echo_n "(cached) " >&6
252b5132
RH
4156else
4157 if test -n "$AR"; then
4158 ac_cv_prog_AR="$AR" # Let the user override the test.
4159else
5464f5a1
NN
4160as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4161for as_dir in $PATH
4162do
4163 IFS=$as_save_IFS
4164 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4165 for ac_exec_ext in '' $ac_executable_extensions; do
4166 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5464f5a1 4167 ac_cv_prog_AR="${ac_tool_prefix}ar"
81ecdfbb 4168 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5464f5a1
NN
4169 break 2
4170 fi
4171done
81ecdfbb
RW
4172 done
4173IFS=$as_save_IFS
5464f5a1 4174
252b5132
RH
4175fi
4176fi
5464f5a1 4177AR=$ac_cv_prog_AR
252b5132 4178if test -n "$AR"; then
81ecdfbb
RW
4179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4180$as_echo "$AR" >&6; }
252b5132 4181else
81ecdfbb
RW
4182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4183$as_echo "no" >&6; }
5464f5a1
NN
4184fi
4185
81ecdfbb 4186
252b5132 4187fi
5464f5a1
NN
4188if test -z "$ac_cv_prog_AR"; then
4189 ac_ct_AR=$AR
4190 # Extract the first word of "ar", so it can be a program name with args.
4191set dummy ar; ac_word=$2
81ecdfbb
RW
4192{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4193$as_echo_n "checking for $ac_word... " >&6; }
4194if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
4195 $as_echo_n "(cached) " >&6
5464f5a1
NN
4196else
4197 if test -n "$ac_ct_AR"; then
4198 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4199else
4200as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4201for as_dir in $PATH
4202do
4203 IFS=$as_save_IFS
4204 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4205 for ac_exec_ext in '' $ac_executable_extensions; do
4206 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5464f5a1 4207 ac_cv_prog_ac_ct_AR="ar"
81ecdfbb 4208 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5464f5a1
NN
4209 break 2
4210 fi
4211done
81ecdfbb
RW
4212 done
4213IFS=$as_save_IFS
252b5132 4214
5464f5a1
NN
4215fi
4216fi
4217ac_ct_AR=$ac_cv_prog_ac_ct_AR
4218if test -n "$ac_ct_AR"; then
81ecdfbb
RW
4219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4220$as_echo "$ac_ct_AR" >&6; }
5464f5a1 4221else
81ecdfbb
RW
4222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4223$as_echo "no" >&6; }
5464f5a1 4224fi
252b5132 4225
81ecdfbb
RW
4226 if test "x$ac_ct_AR" = x; then
4227 AR=""
4228 else
4229 case $cross_compiling:$ac_tool_warned in
4230yes:)
4231{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4232$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4233ac_tool_warned=yes ;;
4234esac
4235 AR=$ac_ct_AR
4236 fi
5464f5a1
NN
4237else
4238 AR="$ac_cv_prog_AR"
4239fi
6be7c12c 4240
5464f5a1
NN
4241if test -n "$ac_tool_prefix"; then
4242 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
252b5132 4243set dummy ${ac_tool_prefix}ranlib; ac_word=$2
81ecdfbb
RW
4244{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4245$as_echo_n "checking for $ac_word... " >&6; }
4246if test "${ac_cv_prog_RANLIB+set}" = set; then :
4247 $as_echo_n "(cached) " >&6
252b5132
RH
4248else
4249 if test -n "$RANLIB"; then
4250 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4251else
5464f5a1
NN
4252as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4253for as_dir in $PATH
4254do
4255 IFS=$as_save_IFS
4256 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4257 for ac_exec_ext in '' $ac_executable_extensions; do
4258 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5464f5a1 4259 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
81ecdfbb 4260 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5464f5a1
NN
4261 break 2
4262 fi
4263done
81ecdfbb
RW
4264 done
4265IFS=$as_save_IFS
5464f5a1 4266
252b5132
RH
4267fi
4268fi
5464f5a1 4269RANLIB=$ac_cv_prog_RANLIB
252b5132 4270if test -n "$RANLIB"; then
81ecdfbb
RW
4271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4272$as_echo "$RANLIB" >&6; }
252b5132 4273else
81ecdfbb
RW
4274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4275$as_echo "no" >&6; }
252b5132
RH
4276fi
4277
81ecdfbb 4278
5464f5a1 4279fi
252b5132 4280if test -z "$ac_cv_prog_RANLIB"; then
5464f5a1 4281 ac_ct_RANLIB=$RANLIB
252b5132
RH
4282 # Extract the first word of "ranlib", so it can be a program name with args.
4283set dummy ranlib; ac_word=$2
81ecdfbb
RW
4284{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4285$as_echo_n "checking for $ac_word... " >&6; }
4286if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4287 $as_echo_n "(cached) " >&6
6be7c12c 4288else
5464f5a1
NN
4289 if test -n "$ac_ct_RANLIB"; then
4290 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6be7c12c 4291else
5464f5a1
NN
4292as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4293for as_dir in $PATH
4294do
4295 IFS=$as_save_IFS
4296 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4297 for ac_exec_ext in '' $ac_executable_extensions; do
4298 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5464f5a1 4299 ac_cv_prog_ac_ct_RANLIB="ranlib"
81ecdfbb 4300 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5464f5a1
NN
4301 break 2
4302 fi
4303done
81ecdfbb
RW
4304 done
4305IFS=$as_save_IFS
5464f5a1 4306
252b5132
RH
4307fi
4308fi
5464f5a1
NN
4309ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4310if test -n "$ac_ct_RANLIB"; then
81ecdfbb
RW
4311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4312$as_echo "$ac_ct_RANLIB" >&6; }
252b5132 4313else
81ecdfbb
RW
4314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4315$as_echo "no" >&6; }
252b5132
RH
4316fi
4317
81ecdfbb
RW
4318 if test "x$ac_ct_RANLIB" = x; then
4319 RANLIB=":"
4320 else
4321 case $cross_compiling:$ac_tool_warned in
4322yes:)
4323{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4324$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4325ac_tool_warned=yes ;;
4326esac
4327 RANLIB=$ac_ct_RANLIB
4328 fi
252b5132 4329else
5464f5a1 4330 RANLIB="$ac_cv_prog_RANLIB"
6be7c12c
AO
4331fi
4332
252b5132 4333
81ecdfbb
RW
4334# Check whether --enable-shared was given.
4335if test "${enable_shared+set}" = set; then :
4336 enableval=$enable_shared; p=${PACKAGE-default}
d7040cdb
SE
4337 case $enableval in
4338 yes) enable_shared=yes ;;
4339 no) enable_shared=no ;;
4340 *)
4341 enable_shared=no
4342 # Look at the argument we got. We use all the common list separators.
4343 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4344 for pkg in $enableval; do
4345 IFS="$lt_save_ifs"
4346 if test "X$pkg" = "X$p"; then
4347 enable_shared=yes
4348 fi
4349 done
4350 IFS="$lt_save_ifs"
4351 ;;
4352 esac
252b5132
RH
4353else
4354 enable_shared=no
81ecdfbb
RW
4355fi
4356
252b5132 4357
d7040cdb
SE
4358
4359
4360
4361
4362
4363
4364
4365
cfbc9945
SE
4366ac_ext=c
4367ac_cpp='$CPP $CPPFLAGS'
4368ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4369ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4370ac_compiler_gnu=$ac_cv_c_compiler_gnu
4371if test -n "$ac_tool_prefix"; then
4372 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4373set dummy ${ac_tool_prefix}gcc; ac_word=$2
81ecdfbb
RW
4374{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4375$as_echo_n "checking for $ac_word... " >&6; }
4376if test "${ac_cv_prog_CC+set}" = set; then :
4377 $as_echo_n "(cached) " >&6
252b5132 4378else
cfbc9945
SE
4379 if test -n "$CC"; then
4380 ac_cv_prog_CC="$CC" # Let the user override the test.
b2ef150d 4381else
cfbc9945
SE
4382as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4383for as_dir in $PATH
4384do
4385 IFS=$as_save_IFS
4386 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4387 for ac_exec_ext in '' $ac_executable_extensions; do
4388 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
cfbc9945 4389 ac_cv_prog_CC="${ac_tool_prefix}gcc"
81ecdfbb 4390 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cfbc9945
SE
4391 break 2
4392 fi
4393done
81ecdfbb
RW
4394 done
4395IFS=$as_save_IFS
c5d1701e 4396
cfbc9945
SE
4397fi
4398fi
4399CC=$ac_cv_prog_CC
4400if test -n "$CC"; then
81ecdfbb
RW
4401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4402$as_echo "$CC" >&6; }
252b5132 4403else
81ecdfbb
RW
4404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4405$as_echo "no" >&6; }
252b5132 4406fi
cfbc9945 4407
81ecdfbb 4408
cfbc9945
SE
4409fi
4410if test -z "$ac_cv_prog_CC"; then
4411 ac_ct_CC=$CC
4412 # Extract the first word of "gcc", so it can be a program name with args.
4413set dummy gcc; ac_word=$2
81ecdfbb
RW
4414{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4415$as_echo_n "checking for $ac_word... " >&6; }
4416if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4417 $as_echo_n "(cached) " >&6
252b5132 4418else
cfbc9945
SE
4419 if test -n "$ac_ct_CC"; then
4420 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
252b5132 4421else
cfbc9945
SE
4422as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4423for as_dir in $PATH
4424do
4425 IFS=$as_save_IFS
4426 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4427 for ac_exec_ext in '' $ac_executable_extensions; do
4428 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
cfbc9945 4429 ac_cv_prog_ac_ct_CC="gcc"
81ecdfbb 4430 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cfbc9945
SE
4431 break 2
4432 fi
4433done
81ecdfbb
RW
4434 done
4435IFS=$as_save_IFS
cfbc9945 4436
252b5132
RH
4437fi
4438fi
cfbc9945
SE
4439ac_ct_CC=$ac_cv_prog_ac_ct_CC
4440if test -n "$ac_ct_CC"; then
81ecdfbb
RW
4441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4442$as_echo "$ac_ct_CC" >&6; }
252b5132 4443else
81ecdfbb
RW
4444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4445$as_echo "no" >&6; }
252b5132 4446fi
cfbc9945 4447
81ecdfbb
RW
4448 if test "x$ac_ct_CC" = x; then
4449 CC=""
4450 else
4451 case $cross_compiling:$ac_tool_warned in
4452yes:)
4453{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4454$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4455ac_tool_warned=yes ;;
4456esac
4457 CC=$ac_ct_CC
4458 fi
cfbc9945
SE
4459else
4460 CC="$ac_cv_prog_CC"
4461fi
4462
4463if test -z "$CC"; then
81ecdfbb
RW
4464 if test -n "$ac_tool_prefix"; then
4465 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
cfbc9945 4466set dummy ${ac_tool_prefix}cc; ac_word=$2
81ecdfbb
RW
4467{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4468$as_echo_n "checking for $ac_word... " >&6; }
4469if test "${ac_cv_prog_CC+set}" = set; then :
4470 $as_echo_n "(cached) " >&6
252b5132 4471else
cfbc9945
SE
4472 if test -n "$CC"; then
4473 ac_cv_prog_CC="$CC" # Let the user override the test.
252b5132 4474else
cfbc9945
SE
4475as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4476for as_dir in $PATH
4477do
4478 IFS=$as_save_IFS
4479 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4480 for ac_exec_ext in '' $ac_executable_extensions; do
4481 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
cfbc9945 4482 ac_cv_prog_CC="${ac_tool_prefix}cc"
81ecdfbb 4483 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cfbc9945
SE
4484 break 2
4485 fi
4486done
81ecdfbb
RW
4487 done
4488IFS=$as_save_IFS
cfbc9945 4489
252b5132
RH
4490fi
4491fi
cfbc9945
SE
4492CC=$ac_cv_prog_CC
4493if test -n "$CC"; then
81ecdfbb
RW
4494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4495$as_echo "$CC" >&6; }
ac48eca1 4496else
81ecdfbb
RW
4497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4498$as_echo "no" >&6; }
ac48eca1 4499fi
ac48eca1 4500
81ecdfbb
RW
4501
4502 fi
cfbc9945 4503fi
81ecdfbb 4504if test -z "$CC"; then
cfbc9945
SE
4505 # Extract the first word of "cc", so it can be a program name with args.
4506set dummy cc; ac_word=$2
81ecdfbb
RW
4507{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4508$as_echo_n "checking for $ac_word... " >&6; }
4509if test "${ac_cv_prog_CC+set}" = set; then :
4510 $as_echo_n "(cached) " >&6
252b5132 4511else
81ecdfbb
RW
4512 if test -n "$CC"; then
4513 ac_cv_prog_CC="$CC" # Let the user override the test.
252b5132 4514else
81ecdfbb 4515 ac_prog_rejected=no
cfbc9945
SE
4516as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4517for as_dir in $PATH
4518do
4519 IFS=$as_save_IFS
4520 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4521 for ac_exec_ext in '' $ac_executable_extensions; do
4522 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
cfbc9945
SE
4523 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4524 ac_prog_rejected=yes
4525 continue
4526 fi
4527 ac_cv_prog_CC="cc"
81ecdfbb 4528 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cfbc9945
SE
4529 break 2
4530 fi
4531done
81ecdfbb
RW
4532 done
4533IFS=$as_save_IFS
cfbc9945
SE
4534
4535if test $ac_prog_rejected = yes; then
4536 # We found a bogon in the path, so make sure we never use it.
4537 set dummy $ac_cv_prog_CC
4538 shift
4539 if test $# != 0; then
4540 # We chose a different compiler from the bogus one.
4541 # However, it has the same basename, so the bogon will be chosen
4542 # first if we set CC to just the basename; use the full file name.
4543 shift
4544 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4545 fi
4546fi
4547fi
4548fi
4549CC=$ac_cv_prog_CC
4550if test -n "$CC"; then
81ecdfbb
RW
4551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4552$as_echo "$CC" >&6; }
cfbc9945 4553else
81ecdfbb
RW
4554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4555$as_echo "no" >&6; }
252b5132
RH
4556fi
4557
81ecdfbb 4558
cfbc9945
SE
4559fi
4560if test -z "$CC"; then
4561 if test -n "$ac_tool_prefix"; then
81ecdfbb 4562 for ac_prog in cl.exe
cfbc9945
SE
4563 do
4564 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4565set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
4566{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4567$as_echo_n "checking for $ac_word... " >&6; }
4568if test "${ac_cv_prog_CC+set}" = set; then :
4569 $as_echo_n "(cached) " >&6
ac48eca1 4570else
cfbc9945
SE
4571 if test -n "$CC"; then
4572 ac_cv_prog_CC="$CC" # Let the user override the test.
4573else
4574as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4575for as_dir in $PATH
4576do
4577 IFS=$as_save_IFS
4578 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4579 for ac_exec_ext in '' $ac_executable_extensions; do
4580 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
cfbc9945 4581 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
81ecdfbb 4582 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cfbc9945
SE
4583 break 2
4584 fi
4585done
81ecdfbb
RW
4586 done
4587IFS=$as_save_IFS
ac48eca1 4588
cfbc9945
SE
4589fi
4590fi
4591CC=$ac_cv_prog_CC
4592if test -n "$CC"; then
81ecdfbb
RW
4593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4594$as_echo "$CC" >&6; }
cfbc9945 4595else
81ecdfbb
RW
4596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4597$as_echo "no" >&6; }
cfbc9945 4598fi
ac48eca1 4599
81ecdfbb 4600
cfbc9945
SE
4601 test -n "$CC" && break
4602 done
4603fi
4604if test -z "$CC"; then
4605 ac_ct_CC=$CC
81ecdfbb 4606 for ac_prog in cl.exe
cfbc9945
SE
4607do
4608 # Extract the first word of "$ac_prog", so it can be a program name with args.
4609set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
4610{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4611$as_echo_n "checking for $ac_word... " >&6; }
4612if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4613 $as_echo_n "(cached) " >&6
cfbc9945
SE
4614else
4615 if test -n "$ac_ct_CC"; then
4616 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4617else
4618as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4619for as_dir in $PATH
4620do
4621 IFS=$as_save_IFS
4622 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4623 for ac_exec_ext in '' $ac_executable_extensions; do
4624 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
cfbc9945 4625 ac_cv_prog_ac_ct_CC="$ac_prog"
81ecdfbb 4626 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cfbc9945
SE
4627 break 2
4628 fi
4629done
81ecdfbb
RW
4630 done
4631IFS=$as_save_IFS
ac48eca1 4632
cfbc9945
SE
4633fi
4634fi
4635ac_ct_CC=$ac_cv_prog_ac_ct_CC
4636if test -n "$ac_ct_CC"; then
81ecdfbb
RW
4637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4638$as_echo "$ac_ct_CC" >&6; }
cfbc9945 4639else
81ecdfbb
RW
4640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4641$as_echo "no" >&6; }
cfbc9945 4642fi
ac48eca1 4643
81ecdfbb 4644
cfbc9945
SE
4645 test -n "$ac_ct_CC" && break
4646done
ac48eca1 4647
81ecdfbb
RW
4648 if test "x$ac_ct_CC" = x; then
4649 CC=""
4650 else
4651 case $cross_compiling:$ac_tool_warned in
4652yes:)
4653{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4654$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4655ac_tool_warned=yes ;;
4656esac
4657 CC=$ac_ct_CC
4658 fi
cfbc9945 4659fi
55c80943 4660
cfbc9945 4661fi
ac48eca1 4662
ac48eca1 4663
81ecdfbb
RW
4664test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4665$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4666as_fn_error "no acceptable C compiler found in \$PATH
4667See \`config.log' for more details." "$LINENO" 5; }
ac48eca1 4668
cfbc9945 4669# Provide some information about the compiler.
81ecdfbb
RW
4670$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4671set X $ac_compile
4672ac_compiler=$2
4673for ac_option in --version -v -V -qversion; do
4674 { { ac_try="$ac_compiler $ac_option >&5"
4675case "(($ac_try" in
4676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4677 *) ac_try_echo=$ac_try;;
4678esac
4679eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4680$as_echo "$ac_try_echo"; } >&5
4681 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cfbc9945 4682 ac_status=$?
81ecdfbb
RW
4683 if test -s conftest.err; then
4684 sed '10a\
4685... rest of stderr output deleted ...
4686 10q' conftest.err >conftest.er1
4687 cat conftest.er1 >&5
4688 rm -f conftest.er1 conftest.err
4689 fi
4690 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4691 test $ac_status = 0; }
4692done
ac48eca1 4693
81ecdfbb
RW
4694{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4695$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4696if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4697 $as_echo_n "(cached) " >&6
ac48eca1 4698else
81ecdfbb 4699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cfbc9945 4700/* end confdefs.h. */
ac48eca1 4701
cfbc9945
SE
4702int
4703main ()
4704{
4705#ifndef __GNUC__
4706 choke me
4707#endif
5464f5a1 4708
cfbc9945
SE
4709 ;
4710 return 0;
4711}
4712_ACEOF
81ecdfbb 4713if ac_fn_c_try_compile "$LINENO"; then :
cfbc9945 4714 ac_compiler_gnu=yes
ac48eca1 4715else
81ecdfbb 4716 ac_compiler_gnu=no
ac48eca1 4717fi
81ecdfbb 4718rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cfbc9945 4719ac_cv_c_compiler_gnu=$ac_compiler_gnu
ac48eca1 4720
5464f5a1 4721fi
81ecdfbb
RW
4722{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4723$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4724if test $ac_compiler_gnu = yes; then
4725 GCC=yes
4726else
4727 GCC=
4728fi
cfbc9945
SE
4729ac_test_CFLAGS=${CFLAGS+set}
4730ac_save_CFLAGS=$CFLAGS
81ecdfbb
RW
4731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4732$as_echo_n "checking whether $CC accepts -g... " >&6; }
4733if test "${ac_cv_prog_cc_g+set}" = set; then :
4734 $as_echo_n "(cached) " >&6
4735else
4736 ac_save_c_werror_flag=$ac_c_werror_flag
4737 ac_c_werror_flag=yes
4738 ac_cv_prog_cc_g=no
4739 CFLAGS="-g"
4740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cfbc9945
SE
4741/* end confdefs.h. */
4742
4743int
4744main ()
4745{
4746
4747 ;
4748 return 0;
4749}
4750_ACEOF
81ecdfbb 4751if ac_fn_c_try_compile "$LINENO"; then :
cfbc9945 4752 ac_cv_prog_cc_g=yes
6be7c12c 4753else
81ecdfbb
RW
4754 CFLAGS=""
4755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4756/* end confdefs.h. */
4757
4758int
4759main ()
4760{
4761
4762 ;
4763 return 0;
4764}
4765_ACEOF
4766if ac_fn_c_try_compile "$LINENO"; then :
4767
4768else
4769 ac_c_werror_flag=$ac_save_c_werror_flag
4770 CFLAGS="-g"
4771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4772/* end confdefs.h. */
4773
4774int
4775main ()
4776{
5464f5a1 4777
81ecdfbb
RW
4778 ;
4779 return 0;
4780}
4781_ACEOF
4782if ac_fn_c_try_compile "$LINENO"; then :
4783 ac_cv_prog_cc_g=yes
4784fi
4785rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ac48eca1 4786fi
81ecdfbb 4787rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ac48eca1 4788fi
81ecdfbb
RW
4789rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4790 ac_c_werror_flag=$ac_save_c_werror_flag
4791fi
4792{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4793$as_echo "$ac_cv_prog_cc_g" >&6; }
cfbc9945
SE
4794if test "$ac_test_CFLAGS" = set; then
4795 CFLAGS=$ac_save_CFLAGS
4796elif test $ac_cv_prog_cc_g = yes; then
4797 if test "$GCC" = yes; then
4798 CFLAGS="-g -O2"
4799 else
4800 CFLAGS="-g"
4801 fi
ac48eca1 4802else
cfbc9945
SE
4803 if test "$GCC" = yes; then
4804 CFLAGS="-O2"
4805 else
4806 CFLAGS=
4807 fi
ac48eca1 4808fi
81ecdfbb
RW
4809{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4810$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4811if test "${ac_cv_prog_cc_c89+set}" = set; then :
4812 $as_echo_n "(cached) " >&6
ac48eca1 4813else
81ecdfbb 4814 ac_cv_prog_cc_c89=no
cfbc9945 4815ac_save_CC=$CC
81ecdfbb 4816cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cfbc9945
SE
4817/* end confdefs.h. */
4818#include <stdarg.h>
4819#include <stdio.h>
4820#include <sys/types.h>
4821#include <sys/stat.h>
4822/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4823struct buf { int x; };
4824FILE * (*rcsopen) (struct buf *, struct stat *, int);
4825static char *e (p, i)
4826 char **p;
4827 int i;
4828{
4829 return p[i];
4830}
4831static char *f (char * (*g) (char **, int), char **p, ...)
4832{
4833 char *s;
4834 va_list v;
4835 va_start (v,p);
4836 s = g (p, va_arg (v,int));
4837 va_end (v);
4838 return s;
4839}
5464f5a1 4840
cfbc9945
SE
4841/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4842 function prototypes and stuff, but not '\xHH' hex character constants.
4843 These don't provoke an error unfortunately, instead are silently treated
81ecdfbb 4844 as 'x'. The following induces an error, until -std is added to get
cfbc9945
SE
4845 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4846 array size at least. It's necessary to write '\x00'==0 to get something
81ecdfbb 4847 that's true only with -std. */
cfbc9945
SE
4848int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4849
81ecdfbb
RW
4850/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4851 inside strings and character constants. */
4852#define FOO(x) 'x'
4853int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4854
cfbc9945
SE
4855int test (int i, double x);
4856struct s1 {int (*f) (int a);};
4857struct s2 {int (*f) (double a);};
4858int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4859int argc;
4860char **argv;
4861int
4862main ()
4863{
4864return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4865 ;
4866 return 0;
4867}
4868_ACEOF
81ecdfbb
RW
4869for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4870 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
cfbc9945
SE
4871do
4872 CC="$ac_save_CC $ac_arg"
81ecdfbb
RW
4873 if ac_fn_c_try_compile "$LINENO"; then :
4874 ac_cv_prog_cc_c89=$ac_arg
5464f5a1 4875fi
81ecdfbb
RW
4876rm -f core conftest.err conftest.$ac_objext
4877 test "x$ac_cv_prog_cc_c89" != "xno" && break
5464f5a1 4878done
81ecdfbb 4879rm -f conftest.$ac_ext
cfbc9945 4880CC=$ac_save_CC
5464f5a1 4881
ac48eca1 4882fi
81ecdfbb
RW
4883# AC_CACHE_VAL
4884case "x$ac_cv_prog_cc_c89" in
4885 x)
4886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4887$as_echo "none needed" >&6; } ;;
4888 xno)
4889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4890$as_echo "unsupported" >&6; } ;;
cfbc9945 4891 *)
81ecdfbb
RW
4892 CC="$CC $ac_cv_prog_cc_c89"
4893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4894$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
cfbc9945 4895esac
81ecdfbb 4896if test "x$ac_cv_prog_cc_c89" != xno; then :
6be7c12c 4897
6ec7057a 4898fi
cfbc9945 4899
cfbc9945
SE
4900ac_ext=c
4901ac_cpp='$CPP $CPPFLAGS'
4902ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4903ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4904ac_compiler_gnu=$ac_cv_c_compiler_gnu
92f01d61 4905
7357c5b6
AM
4906ac_ext=c
4907ac_cpp='$CPP $CPPFLAGS'
4908ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4909ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4910ac_compiler_gnu=$ac_cv_c_compiler_gnu
81ecdfbb
RW
4911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4912$as_echo_n "checking how to run the C preprocessor... " >&6; }
7357c5b6
AM
4913# On Suns, sometimes $CPP names a directory.
4914if test -n "$CPP" && test -d "$CPP"; then
4915 CPP=
4916fi
4917if test -z "$CPP"; then
81ecdfbb
RW
4918 if test "${ac_cv_prog_CPP+set}" = set; then :
4919 $as_echo_n "(cached) " >&6
7357c5b6
AM
4920else
4921 # Double quotes because CPP needs to be expanded
4922 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4923 do
4924 ac_preproc_ok=false
4925for ac_c_preproc_warn_flag in '' yes
4926do
4927 # Use a header file that comes with gcc, so configuring glibc
4928 # with a fresh cross-compiler works.
4929 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4930 # <limits.h> exists even on freestanding compilers.
4931 # On the NeXT, cc -E runs the code through the compiler's parser,
4932 # not just through cpp. "Syntax error" is here to catch this case.
81ecdfbb 4933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
4934/* end confdefs.h. */
4935#ifdef __STDC__
4936# include <limits.h>
4937#else
4938# include <assert.h>
4939#endif
4940 Syntax error
4941_ACEOF
81ecdfbb 4942if ac_fn_c_try_cpp "$LINENO"; then :
cfbc9945 4943
81ecdfbb 4944else
7357c5b6
AM
4945 # Broken: fails on valid input.
4946continue
4947fi
4948rm -f conftest.err conftest.$ac_ext
d7040cdb 4949
81ecdfbb 4950 # OK, works on sane cases. Now check whether nonexistent headers
7357c5b6 4951 # can be detected and how.
81ecdfbb 4952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
4953/* end confdefs.h. */
4954#include <ac_nonexistent.h>
4955_ACEOF
81ecdfbb 4956if ac_fn_c_try_cpp "$LINENO"; then :
7357c5b6
AM
4957 # Broken: success on invalid input.
4958continue
4959else
7357c5b6
AM
4960 # Passes both tests.
4961ac_preproc_ok=:
4962break
4963fi
4964rm -f conftest.err conftest.$ac_ext
d7040cdb 4965
7357c5b6
AM
4966done
4967# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4968rm -f conftest.err conftest.$ac_ext
81ecdfbb 4969if $ac_preproc_ok; then :
7357c5b6
AM
4970 break
4971fi
d7040cdb 4972
7357c5b6
AM
4973 done
4974 ac_cv_prog_CPP=$CPP
d7040cdb 4975
7357c5b6
AM
4976fi
4977 CPP=$ac_cv_prog_CPP
4978else
4979 ac_cv_prog_CPP=$CPP
4980fi
81ecdfbb
RW
4981{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4982$as_echo "$CPP" >&6; }
7357c5b6
AM
4983ac_preproc_ok=false
4984for ac_c_preproc_warn_flag in '' yes
4985do
4986 # Use a header file that comes with gcc, so configuring glibc
4987 # with a fresh cross-compiler works.
4988 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4989 # <limits.h> exists even on freestanding compilers.
4990 # On the NeXT, cc -E runs the code through the compiler's parser,
4991 # not just through cpp. "Syntax error" is here to catch this case.
81ecdfbb 4992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
4993/* end confdefs.h. */
4994#ifdef __STDC__
4995# include <limits.h>
4996#else
4997# include <assert.h>
4998#endif
4999 Syntax error
5000_ACEOF
81ecdfbb 5001if ac_fn_c_try_cpp "$LINENO"; then :
d7040cdb 5002
81ecdfbb 5003else
7357c5b6
AM
5004 # Broken: fails on valid input.
5005continue
5006fi
5007rm -f conftest.err conftest.$ac_ext
d7040cdb 5008
81ecdfbb 5009 # OK, works on sane cases. Now check whether nonexistent headers
7357c5b6 5010 # can be detected and how.
81ecdfbb 5011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
5012/* end confdefs.h. */
5013#include <ac_nonexistent.h>
5014_ACEOF
81ecdfbb 5015if ac_fn_c_try_cpp "$LINENO"; then :
7357c5b6
AM
5016 # Broken: success on invalid input.
5017continue
5018else
7357c5b6
AM
5019 # Passes both tests.
5020ac_preproc_ok=:
5021break
5022fi
5023rm -f conftest.err conftest.$ac_ext
d7040cdb 5024
7357c5b6
AM
5025done
5026# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5027rm -f conftest.err conftest.$ac_ext
81ecdfbb
RW
5028if $ac_preproc_ok; then :
5029
7357c5b6 5030else
81ecdfbb
RW
5031 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5032$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5033as_fn_error "C preprocessor \"$CPP\" fails sanity check
5034See \`config.log' for more details." "$LINENO" 5; }
7357c5b6 5035fi
d7040cdb 5036
7357c5b6
AM
5037ac_ext=c
5038ac_cpp='$CPP $CPPFLAGS'
5039ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5040ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5041ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7040cdb 5042
d7040cdb 5043
81ecdfbb
RW
5044{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5045$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5046if test "${ac_cv_path_GREP+set}" = set; then :
5047 $as_echo_n "(cached) " >&6
5048else
5049 if test -z "$GREP"; then
5050 ac_path_GREP_found=false
5051 # Loop through the user's path and test for each of PROGNAME-LIST
5052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5053for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5054do
5055 IFS=$as_save_IFS
5056 test -z "$as_dir" && as_dir=.
5057 for ac_prog in grep ggrep; do
5058 for ac_exec_ext in '' $ac_executable_extensions; do
5059 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5060 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5061# Check for GNU ac_path_GREP and select it if it is found.
5062 # Check for GNU $ac_path_GREP
5063case `"$ac_path_GREP" --version 2>&1` in
5064*GNU*)
5065 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5066*)
5067 ac_count=0
5068 $as_echo_n 0123456789 >"conftest.in"
5069 while :
5070 do
5071 cat "conftest.in" "conftest.in" >"conftest.tmp"
5072 mv "conftest.tmp" "conftest.in"
5073 cp "conftest.in" "conftest.nl"
5074 $as_echo 'GREP' >> "conftest.nl"
5075 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5076 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5077 as_fn_arith $ac_count + 1 && ac_count=$as_val
5078 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5079 # Best one so far, save it but keep looking for a better one
5080 ac_cv_path_GREP="$ac_path_GREP"
5081 ac_path_GREP_max=$ac_count
5082 fi
5083 # 10*(2^10) chars as input seems more than enough
5084 test $ac_count -gt 10 && break
5085 done
5086 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5087esac
5088
5089 $ac_path_GREP_found && break 3
5090 done
5091 done
5092 done
5093IFS=$as_save_IFS
5094 if test -z "$ac_cv_path_GREP"; then
5095 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5096 fi
5097else
5098 ac_cv_path_GREP=$GREP
5099fi
5100
5101fi
5102{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5103$as_echo "$ac_cv_path_GREP" >&6; }
5104 GREP="$ac_cv_path_GREP"
5105
5106
5107{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5108$as_echo_n "checking for egrep... " >&6; }
5109if test "${ac_cv_path_EGREP+set}" = set; then :
5110 $as_echo_n "(cached) " >&6
7357c5b6 5111else
81ecdfbb
RW
5112 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5113 then ac_cv_path_EGREP="$GREP -E"
5114 else
5115 if test -z "$EGREP"; then
5116 ac_path_EGREP_found=false
5117 # Loop through the user's path and test for each of PROGNAME-LIST
5118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5119for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5120do
5121 IFS=$as_save_IFS
5122 test -z "$as_dir" && as_dir=.
5123 for ac_prog in egrep; do
5124 for ac_exec_ext in '' $ac_executable_extensions; do
5125 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5126 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5127# Check for GNU ac_path_EGREP and select it if it is found.
5128 # Check for GNU $ac_path_EGREP
5129case `"$ac_path_EGREP" --version 2>&1` in
5130*GNU*)
5131 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5132*)
5133 ac_count=0
5134 $as_echo_n 0123456789 >"conftest.in"
5135 while :
5136 do
5137 cat "conftest.in" "conftest.in" >"conftest.tmp"
5138 mv "conftest.tmp" "conftest.in"
5139 cp "conftest.in" "conftest.nl"
5140 $as_echo 'EGREP' >> "conftest.nl"
5141 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5142 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5143 as_fn_arith $ac_count + 1 && ac_count=$as_val
5144 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5145 # Best one so far, save it but keep looking for a better one
5146 ac_cv_path_EGREP="$ac_path_EGREP"
5147 ac_path_EGREP_max=$ac_count
7357c5b6 5148 fi
81ecdfbb
RW
5149 # 10*(2^10) chars as input seems more than enough
5150 test $ac_count -gt 10 && break
5151 done
5152 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5153esac
5154
5155 $ac_path_EGREP_found && break 3
5156 done
5157 done
5158 done
5159IFS=$as_save_IFS
5160 if test -z "$ac_cv_path_EGREP"; then
5161 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5162 fi
5163else
5164 ac_cv_path_EGREP=$EGREP
5165fi
5166
5167 fi
7357c5b6 5168fi
81ecdfbb
RW
5169{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5170$as_echo "$ac_cv_path_EGREP" >&6; }
5171 EGREP="$ac_cv_path_EGREP"
d7040cdb
SE
5172
5173
81ecdfbb
RW
5174{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5175$as_echo_n "checking for ANSI C header files... " >&6; }
5176if test "${ac_cv_header_stdc+set}" = set; then :
5177 $as_echo_n "(cached) " >&6
7357c5b6 5178else
81ecdfbb 5179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
5180/* end confdefs.h. */
5181#include <stdlib.h>
5182#include <stdarg.h>
5183#include <string.h>
5184#include <float.h>
d7040cdb 5185
7357c5b6
AM
5186int
5187main ()
5188{
d7040cdb 5189
7357c5b6
AM
5190 ;
5191 return 0;
5192}
5193_ACEOF
81ecdfbb 5194if ac_fn_c_try_compile "$LINENO"; then :
7357c5b6 5195 ac_cv_header_stdc=yes
c428fa83 5196else
81ecdfbb 5197 ac_cv_header_stdc=no
7357c5b6 5198fi
81ecdfbb 5199rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d7040cdb 5200
7357c5b6
AM
5201if test $ac_cv_header_stdc = yes; then
5202 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
81ecdfbb 5203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
5204/* end confdefs.h. */
5205#include <string.h>
d7040cdb 5206
7357c5b6
AM
5207_ACEOF
5208if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
81ecdfbb
RW
5209 $EGREP "memchr" >/dev/null 2>&1; then :
5210
7357c5b6
AM
5211else
5212 ac_cv_header_stdc=no
5213fi
5214rm -f conftest*
d7040cdb 5215
7357c5b6 5216fi
d7040cdb 5217
7357c5b6
AM
5218if test $ac_cv_header_stdc = yes; then
5219 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
81ecdfbb 5220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
5221/* end confdefs.h. */
5222#include <stdlib.h>
d7040cdb 5223
7357c5b6
AM
5224_ACEOF
5225if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
81ecdfbb
RW
5226 $EGREP "free" >/dev/null 2>&1; then :
5227
7357c5b6
AM
5228else
5229 ac_cv_header_stdc=no
5230fi
5231rm -f conftest*
d7040cdb 5232
7357c5b6 5233fi
d7040cdb 5234
7357c5b6
AM
5235if test $ac_cv_header_stdc = yes; then
5236 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
81ecdfbb 5237 if test "$cross_compiling" = yes; then :
7357c5b6
AM
5238 :
5239else
81ecdfbb 5240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
5241/* end confdefs.h. */
5242#include <ctype.h>
81ecdfbb 5243#include <stdlib.h>
7357c5b6
AM
5244#if ((' ' & 0x0FF) == 0x020)
5245# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5246# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5247#else
5248# define ISLOWER(c) \
5249 (('a' <= (c) && (c) <= 'i') \
5250 || ('j' <= (c) && (c) <= 'r') \
5251 || ('s' <= (c) && (c) <= 'z'))
5252# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5253#endif
d7040cdb 5254
7357c5b6
AM
5255#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5256int
5257main ()
5258{
5259 int i;
5260 for (i = 0; i < 256; i++)
5261 if (XOR (islower (i), ISLOWER (i))
5262 || toupper (i) != TOUPPER (i))
81ecdfbb
RW
5263 return 2;
5264 return 0;
7357c5b6
AM
5265}
5266_ACEOF
81ecdfbb 5267if ac_fn_c_try_run "$LINENO"; then :
d7040cdb 5268
81ecdfbb
RW
5269else
5270 ac_cv_header_stdc=no
7357c5b6 5271fi
81ecdfbb
RW
5272rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5273 conftest.$ac_objext conftest.beam conftest.$ac_ext
7357c5b6 5274fi
81ecdfbb 5275
7357c5b6
AM
5276fi
5277fi
81ecdfbb
RW
5278{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5279$as_echo "$ac_cv_header_stdc" >&6; }
7357c5b6 5280if test $ac_cv_header_stdc = yes; then
d7040cdb 5281
81ecdfbb 5282$as_echo "#define STDC_HEADERS 1" >>confdefs.h
d7040cdb 5283
7357c5b6 5284fi
d7040cdb 5285
7357c5b6 5286# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7357c5b6
AM
5287for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5288 inttypes.h stdint.h unistd.h
81ecdfbb
RW
5289do :
5290 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5291ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5292"
5293eval as_val=\$$as_ac_Header
5294 if test "x$as_val" = x""yes; then :
7357c5b6 5295 cat >>confdefs.h <<_ACEOF
81ecdfbb 5296#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7357c5b6 5297_ACEOF
d7040cdb 5298
7357c5b6
AM
5299fi
5300
5301done
5302
5303
5304
81ecdfbb
RW
5305 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5306if test "x$ac_cv_header_minix_config_h" = x""yes; then :
7357c5b6
AM
5307 MINIX=yes
5308else
5309 MINIX=
5310fi
d7040cdb
SE
5311
5312
7357c5b6 5313 if test "$MINIX" = yes; then
d7040cdb 5314
81ecdfbb 5315$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
d7040cdb
SE
5316
5317
81ecdfbb 5318$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
d7040cdb
SE
5319
5320
81ecdfbb 5321$as_echo "#define _MINIX 1" >>confdefs.h
d7040cdb 5322
7357c5b6 5323 fi
d7040cdb
SE
5324
5325
81ecdfbb
RW
5326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5327$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5328if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5329 $as_echo_n "(cached) " >&6
d053aef8 5330else
81ecdfbb 5331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d053aef8 5332/* end confdefs.h. */
ce3c775b
NC
5333
5334# define __EXTENSIONS__ 1
5335 $ac_includes_default
d053aef8
JK
5336int
5337main ()
5338{
5339
5340 ;
5341 return 0;
5342}
5343_ACEOF
81ecdfbb 5344if ac_fn_c_try_compile "$LINENO"; then :
ce3c775b 5345 ac_cv_safe_to_define___extensions__=yes
d053aef8 5346else
81ecdfbb 5347 ac_cv_safe_to_define___extensions__=no
d053aef8 5348fi
81ecdfbb 5349rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ce3c775b 5350fi
81ecdfbb
RW
5351{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5352$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
ce3c775b 5353 test $ac_cv_safe_to_define___extensions__ = yes &&
81ecdfbb 5354 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
d053aef8 5355
81ecdfbb 5356 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
d053aef8 5357
81ecdfbb
RW
5358 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5359
5360 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5361
5362 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
d053aef8 5363
ce3c775b 5364
d053aef8 5365
d053aef8 5366
d7040cdb 5367
718a6fd8
SE
5368case `pwd` in
5369 *\ * | *\ *)
81ecdfbb
RW
5370 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5371$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
718a6fd8 5372esac
d7040cdb
SE
5373
5374
7357c5b6 5375
3725885a
RW
5376macro_version='2.2.7a'
5377macro_revision='1.3134'
7357c5b6
AM
5378
5379
5380
5381
5382
5383
7357c5b6
AM
5384
5385
5386
5387
5388
5389
5390
718a6fd8 5391ltmain="$ac_aux_dir/ltmain.sh"
7357c5b6 5392
3725885a
RW
5393# Backslashify metacharacters that are still active within
5394# double-quoted strings.
5395sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5396
5397# Same as above, but do not quote variable references.
5398double_quote_subst='s/\(["`\\]\)/\\\1/g'
5399
5400# Sed substitution to delay expansion of an escaped shell variable in a
5401# double_quote_subst'ed string.
5402delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5403
5404# Sed substitution to delay expansion of an escaped single quote.
5405delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5406
5407# Sed substitution to avoid accidental globbing in evaled expressions
5408no_glob_subst='s/\*/\\\*/g'
5409
5410ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5411ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5412ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5413
5414{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5415$as_echo_n "checking how to print strings... " >&6; }
5416# Test print first, because it will be a builtin if present.
5417if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5418 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5419 ECHO='print -r --'
5420elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5421 ECHO='printf %s\n'
5422else
5423 # Use this function as a fallback that always works.
5424 func_fallback_echo ()
5425 {
5426 eval 'cat <<_LTECHO_EOF
5427$1
5428_LTECHO_EOF'
5429 }
5430 ECHO='func_fallback_echo'
5431fi
5432
5433# func_echo_all arg...
5434# Invoke $ECHO with all args, space-separated.
5435func_echo_all ()
5436{
5437 $ECHO ""
5438}
5439
5440case "$ECHO" in
5441 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5442$as_echo "printf" >&6; } ;;
5443 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5444$as_echo "print -r" >&6; } ;;
5445 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5446$as_echo "cat" >&6; } ;;
5447esac
5448
5449
5450
5451
5452
5453
5454
5455
5456
5457
5458
5459
5460
5461
81ecdfbb
RW
5462{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5463$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5464if test "${ac_cv_path_SED+set}" = set; then :
5465 $as_echo_n "(cached) " >&6
7357c5b6 5466else
81ecdfbb
RW
5467 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5468 for ac_i in 1 2 3 4 5 6 7; do
5469 ac_script="$ac_script$as_nl$ac_script"
5470 done
5471 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5472 { ac_script=; unset ac_script;}
5473 if test -z "$SED"; then
5474 ac_path_SED_found=false
5475 # Loop through the user's path and test for each of PROGNAME-LIST
5476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7357c5b6
AM
5477for as_dir in $PATH
5478do
5479 IFS=$as_save_IFS
5480 test -z "$as_dir" && as_dir=.
81ecdfbb 5481 for ac_prog in sed gsed; do
7357c5b6 5482 for ac_exec_ext in '' $ac_executable_extensions; do
81ecdfbb
RW
5483 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5484 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5485# Check for GNU ac_path_SED and select it if it is found.
5486 # Check for GNU $ac_path_SED
5487case `"$ac_path_SED" --version 2>&1` in
5488*GNU*)
5489 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5490*)
5491 ac_count=0
5492 $as_echo_n 0123456789 >"conftest.in"
5493 while :
5494 do
5495 cat "conftest.in" "conftest.in" >"conftest.tmp"
5496 mv "conftest.tmp" "conftest.in"
5497 cp "conftest.in" "conftest.nl"
5498 $as_echo '' >> "conftest.nl"
5499 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5500 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5501 as_fn_arith $ac_count + 1 && ac_count=$as_val
5502 if test $ac_count -gt ${ac_path_SED_max-0}; then
5503 # Best one so far, save it but keep looking for a better one
5504 ac_cv_path_SED="$ac_path_SED"
5505 ac_path_SED_max=$ac_count
5506 fi
5507 # 10*(2^10) chars as input seems more than enough
5508 test $ac_count -gt 10 && break
5509 done
5510 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5511esac
5512
5513 $ac_path_SED_found && break 3
7357c5b6
AM
5514 done
5515 done
81ecdfbb 5516 done
7357c5b6 5517IFS=$as_save_IFS
81ecdfbb
RW
5518 if test -z "$ac_cv_path_SED"; then
5519 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
7357c5b6 5520 fi
81ecdfbb
RW
5521else
5522 ac_cv_path_SED=$SED
7357c5b6
AM
5523fi
5524
81ecdfbb
RW
5525fi
5526{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5527$as_echo "$ac_cv_path_SED" >&6; }
5528 SED="$ac_cv_path_SED"
5529 rm -f conftest.sed
7357c5b6
AM
5530
5531test -z "$SED" && SED=sed
5532Xsed="$SED -e 1s/^X//"
5533
5534
5535
5536
5537
5538
5539
5540
5541
5542
5543
81ecdfbb
RW
5544{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5545$as_echo_n "checking for fgrep... " >&6; }
5546if test "${ac_cv_path_FGREP+set}" = set; then :
5547 $as_echo_n "(cached) " >&6
7357c5b6 5548else
81ecdfbb
RW
5549 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5550 then ac_cv_path_FGREP="$GREP -F"
5551 else
5552 if test -z "$FGREP"; then
5553 ac_path_FGREP_found=false
5554 # Loop through the user's path and test for each of PROGNAME-LIST
5555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5556for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5557do
5558 IFS=$as_save_IFS
5559 test -z "$as_dir" && as_dir=.
5560 for ac_prog in fgrep; do
5561 for ac_exec_ext in '' $ac_executable_extensions; do
5562 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5563 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5564# Check for GNU ac_path_FGREP and select it if it is found.
5565 # Check for GNU $ac_path_FGREP
5566case `"$ac_path_FGREP" --version 2>&1` in
5567*GNU*)
5568 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5569*)
5570 ac_count=0
5571 $as_echo_n 0123456789 >"conftest.in"
5572 while :
5573 do
5574 cat "conftest.in" "conftest.in" >"conftest.tmp"
5575 mv "conftest.tmp" "conftest.in"
5576 cp "conftest.in" "conftest.nl"
5577 $as_echo 'FGREP' >> "conftest.nl"
5578 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5579 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5580 as_fn_arith $ac_count + 1 && ac_count=$as_val
5581 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5582 # Best one so far, save it but keep looking for a better one
5583 ac_cv_path_FGREP="$ac_path_FGREP"
5584 ac_path_FGREP_max=$ac_count
7357c5b6 5585 fi
81ecdfbb
RW
5586 # 10*(2^10) chars as input seems more than enough
5587 test $ac_count -gt 10 && break
5588 done
5589 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5590esac
5591
5592 $ac_path_FGREP_found && break 3
5593 done
5594 done
5595 done
5596IFS=$as_save_IFS
5597 if test -z "$ac_cv_path_FGREP"; then
5598 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5599 fi
5600else
5601 ac_cv_path_FGREP=$FGREP
7357c5b6 5602fi
81ecdfbb
RW
5603
5604 fi
5605fi
5606{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5607$as_echo "$ac_cv_path_FGREP" >&6; }
5608 FGREP="$ac_cv_path_FGREP"
7357c5b6
AM
5609
5610
5611test -z "$GREP" && GREP=grep
5612
5613
5614
5615
5616
5617
5618
5619
5620
5621
5622
5623
5624
5625
5626
5627
5628
5629
5630
81ecdfbb
RW
5631# Check whether --with-gnu-ld was given.
5632if test "${with_gnu_ld+set}" = set; then :
5633 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7357c5b6
AM
5634else
5635 with_gnu_ld=no
81ecdfbb
RW
5636fi
5637
7357c5b6
AM
5638ac_prog=ld
5639if test "$GCC" = yes; then
5640 # Check if gcc -print-prog-name=ld gives a path.
81ecdfbb
RW
5641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5642$as_echo_n "checking for ld used by $CC... " >&6; }
7357c5b6
AM
5643 case $host in
5644 *-*-mingw*)
5645 # gcc leaves a trailing carriage return which upsets mingw
5646 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5647 *)
5648 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5649 esac
5650 case $ac_prog in
5651 # Accept absolute paths.
5652 [\\/]* | ?:[\\/]*)
5653 re_direlt='/[^/][^/]*/\.\./'
5654 # Canonicalize the pathname of ld
5655 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5656 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
d7040cdb 5657 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
cfbc9945
SE
5658 done
5659 test -z "$LD" && LD="$ac_prog"
5660 ;;
5bd8253d 5661 "")
cfbc9945
SE
5662 # If it fails, then pretend we aren't using GCC.
5663 ac_prog=ld
5bd8253d
L
5664 ;;
5665 *)
cfbc9945
SE
5666 # If it is relative, then search for the first ld in PATH.
5667 with_gnu_ld=unknown
5bd8253d 5668 ;;
cfbc9945
SE
5669 esac
5670elif test "$with_gnu_ld" = yes; then
81ecdfbb
RW
5671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5672$as_echo_n "checking for GNU ld... " >&6; }
cfbc9945 5673else
81ecdfbb
RW
5674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5675$as_echo_n "checking for non-GNU ld... " >&6; }
cfbc9945 5676fi
81ecdfbb
RW
5677if test "${lt_cv_path_LD+set}" = set; then :
5678 $as_echo_n "(cached) " >&6
cfbc9945
SE
5679else
5680 if test -z "$LD"; then
d7040cdb 5681 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
cfbc9945 5682 for ac_dir in $PATH; do
d7040cdb 5683 IFS="$lt_save_ifs"
cfbc9945
SE
5684 test -z "$ac_dir" && ac_dir=.
5685 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5686 lt_cv_path_LD="$ac_dir/$ac_prog"
5687 # Check to see if the program is GNU ld. I'd rather use --version,
d7040cdb 5688 # but apparently some variants of GNU ld only accept -v.
cfbc9945 5689 # Break only if it was the GNU/non-GNU ld that we prefer.
d7040cdb
SE
5690 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5691 *GNU* | *'with BFD'*)
cfbc9945 5692 test "$with_gnu_ld" != no && break
d7040cdb
SE
5693 ;;
5694 *)
cfbc9945 5695 test "$with_gnu_ld" != yes && break
d7040cdb
SE
5696 ;;
5697 esac
cfbc9945
SE
5698 fi
5699 done
d7040cdb 5700 IFS="$lt_save_ifs"
cfbc9945
SE
5701else
5702 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9e9b66a9 5703fi
1ad12f97
NC
5704fi
5705
cfbc9945
SE
5706LD="$lt_cv_path_LD"
5707if test -n "$LD"; then
81ecdfbb
RW
5708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5709$as_echo "$LD" >&6; }
cfbc9945 5710else
81ecdfbb
RW
5711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5712$as_echo "no" >&6; }
cfbc9945 5713fi
81ecdfbb
RW
5714test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5716$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5717if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5718 $as_echo_n "(cached) " >&6
cfbc9945 5719else
d7040cdb
SE
5720 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5721case `$LD -v 2>&1 </dev/null` in
5722*GNU* | *'with BFD'*)
cfbc9945 5723 lt_cv_prog_gnu_ld=yes
d7040cdb
SE
5724 ;;
5725*)
cfbc9945 5726 lt_cv_prog_gnu_ld=no
d7040cdb
SE
5727 ;;
5728esac
49c96104 5729fi
81ecdfbb
RW
5730{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5731$as_echo "$lt_cv_prog_gnu_ld" >&6; }
cfbc9945 5732with_gnu_ld=$lt_cv_prog_gnu_ld
49c96104 5733
9e9b66a9 5734
cfbc9945 5735
d7040cdb
SE
5736
5737
5738
5739
5740
5741
81ecdfbb
RW
5742{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5743$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5744if test "${lt_cv_path_NM+set}" = set; then :
5745 $as_echo_n "(cached) " >&6
cfbc9945
SE
5746else
5747 if test -n "$NM"; then
5748 # Let the user override the test.
5749 lt_cv_path_NM="$NM"
5750else
d7040cdb
SE
5751 lt_nm_to_check="${ac_tool_prefix}nm"
5752 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5753 lt_nm_to_check="$lt_nm_to_check nm"
5754 fi
5755 for lt_tmp_nm in $lt_nm_to_check; do
5756 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5757 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5758 IFS="$lt_save_ifs"
5759 test -z "$ac_dir" && ac_dir=.
5760 tmp_nm="$ac_dir/$lt_tmp_nm"
5761 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5762 # Check to see if the nm accepts a BSD-compat flag.
5763 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5764 # nm: unknown option "B" ignored
5765 # Tru64's nm complains that /dev/null is an invalid object file
5766 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5767 */dev/null* | *'Invalid file or object type'*)
5768 lt_cv_path_NM="$tmp_nm -B"
5769 break
5770 ;;
5771 *)
5772 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5773 */dev/null*)
5774 lt_cv_path_NM="$tmp_nm -p"
5775 break
5776 ;;
5777 *)
5778 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5779 continue # so that we can try to find one that supports BSD flags
5780 ;;
5781 esac
5782 ;;
5783 esac
cfbc9945 5784 fi
d7040cdb
SE
5785 done
5786 IFS="$lt_save_ifs"
cfbc9945 5787 done
d7040cdb 5788 : ${lt_cv_path_NM=no}
cfbc9945 5789fi
a2d91340 5790fi
81ecdfbb
RW
5791{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5792$as_echo "$lt_cv_path_NM" >&6; }
d7040cdb
SE
5793if test "$lt_cv_path_NM" != "no"; then
5794 NM="$lt_cv_path_NM"
cfbc9945 5795else
d7040cdb 5796 # Didn't find any BSD compatible name lister, look for dumpbin.
3725885a
RW
5797 if test -n "$DUMPBIN"; then :
5798 # Let the user override the test.
5799 else
5800 if test -n "$ac_tool_prefix"; then
5801 for ac_prog in dumpbin "link -dump"
d7040cdb
SE
5802 do
5803 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5804set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
5805{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5806$as_echo_n "checking for $ac_word... " >&6; }
5807if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5808 $as_echo_n "(cached) " >&6
252b5132 5809else
d7040cdb
SE
5810 if test -n "$DUMPBIN"; then
5811 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5812else
5813as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5814for as_dir in $PATH
5815do
5816 IFS=$as_save_IFS
5817 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
5818 for ac_exec_ext in '' $ac_executable_extensions; do
5819 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d7040cdb 5820 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
81ecdfbb 5821 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d7040cdb
SE
5822 break 2
5823 fi
5824done
81ecdfbb
RW
5825 done
5826IFS=$as_save_IFS
5464f5a1 5827
d7040cdb
SE
5828fi
5829fi
5830DUMPBIN=$ac_cv_prog_DUMPBIN
5831if test -n "$DUMPBIN"; then
81ecdfbb
RW
5832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5833$as_echo "$DUMPBIN" >&6; }
d7040cdb 5834else
81ecdfbb
RW
5835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5836$as_echo "no" >&6; }
d7040cdb 5837fi
d5fbea21 5838
81ecdfbb 5839
d7040cdb
SE
5840 test -n "$DUMPBIN" && break
5841 done
5842fi
5843if test -z "$DUMPBIN"; then
5844 ac_ct_DUMPBIN=$DUMPBIN
3725885a 5845 for ac_prog in dumpbin "link -dump"
d7040cdb
SE
5846do
5847 # Extract the first word of "$ac_prog", so it can be a program name with args.
5848set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
5849{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5850$as_echo_n "checking for $ac_word... " >&6; }
5851if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5852 $as_echo_n "(cached) " >&6
d7040cdb
SE
5853else
5854 if test -n "$ac_ct_DUMPBIN"; then
5855 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5856else
5857as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5858for as_dir in $PATH
5859do
5860 IFS=$as_save_IFS
5861 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
5862 for ac_exec_ext in '' $ac_executable_extensions; do
5863 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d7040cdb 5864 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
81ecdfbb 5865 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d7040cdb 5866 break 2
cfbc9945 5867 fi
d7040cdb 5868done
81ecdfbb
RW
5869 done
5870IFS=$as_save_IFS
d5fbea21 5871
d7040cdb
SE
5872fi
5873fi
5874ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5875if test -n "$ac_ct_DUMPBIN"; then
81ecdfbb
RW
5876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5877$as_echo "$ac_ct_DUMPBIN" >&6; }
d7040cdb 5878else
81ecdfbb
RW
5879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5880$as_echo "no" >&6; }
d7040cdb 5881fi
d5fbea21 5882
81ecdfbb 5883
d7040cdb
SE
5884 test -n "$ac_ct_DUMPBIN" && break
5885done
24443139 5886
81ecdfbb
RW
5887 if test "x$ac_ct_DUMPBIN" = x; then
5888 DUMPBIN=":"
5889 else
5890 case $cross_compiling:$ac_tool_warned in
5891yes:)
5892{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5893$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5894ac_tool_warned=yes ;;
5895esac
5896 DUMPBIN=$ac_ct_DUMPBIN
5897 fi
d7040cdb 5898fi
24443139 5899
3725885a
RW
5900 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5901 *COFF*)
5902 DUMPBIN="$DUMPBIN -symbols"
5903 ;;
5904 *)
5905 DUMPBIN=:
5906 ;;
5907 esac
5908 fi
24443139 5909
d7040cdb
SE
5910 if test "$DUMPBIN" != ":"; then
5911 NM="$DUMPBIN"
cfbc9945 5912 fi
d7040cdb
SE
5913fi
5914test -z "$NM" && NM=nm
a703a6ea 5915
f5385ebf 5916
cfbc9945 5917
24443139
AS
5918
5919
5920
81ecdfbb
RW
5921{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5922$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5923if test "${lt_cv_nm_interface+set}" = set; then :
5924 $as_echo_n "(cached) " >&6
d7040cdb
SE
5925else
5926 lt_cv_nm_interface="BSD nm"
5927 echo "int some_variable = 0;" > conftest.$ac_ext
3725885a 5928 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
d7040cdb
SE
5929 (eval "$ac_compile" 2>conftest.err)
5930 cat conftest.err >&5
3725885a 5931 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
d7040cdb
SE
5932 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5933 cat conftest.err >&5
3725885a 5934 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
d7040cdb
SE
5935 cat conftest.out >&5
5936 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5937 lt_cv_nm_interface="MS dumpbin"
5938 fi
5939 rm -f conftest*
cfbc9945 5940fi
81ecdfbb
RW
5941{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5942$as_echo "$lt_cv_nm_interface" >&6; }
a703a6ea 5943
81ecdfbb
RW
5944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5945$as_echo_n "checking whether ln -s works... " >&6; }
d7040cdb
SE
5946LN_S=$as_ln_s
5947if test "$LN_S" = "ln -s"; then
81ecdfbb
RW
5948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5949$as_echo "yes" >&6; }
d7040cdb 5950else
81ecdfbb
RW
5951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5952$as_echo "no, using $LN_S" >&6; }
d7040cdb 5953fi
252b5132 5954
cfbc9945 5955# find the maximum length of command line arguments
81ecdfbb
RW
5956{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5957$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5958if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5959 $as_echo_n "(cached) " >&6
cfbc9945
SE
5960else
5961 i=0
5962 teststring="ABCD"
5464f5a1 5963
cfbc9945
SE
5964 case $build_os in
5965 msdosdjgpp*)
5966 # On DJGPP, this test can blow up pretty badly due to problems in libc
5967 # (any single argument exceeding 2000 bytes causes a buffer overrun
5968 # during glob expansion). Even if it were fixed, the result of this
5969 # check would be larger than it should be.
5970 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5971 ;;
5464f5a1 5972
d7040cdb
SE
5973 gnu*)
5974 # Under GNU Hurd, this test is not required because there is
5975 # no limit to the length of command line arguments.
5976 # Libtool will interpret -1 as no limit whatsoever
5977 lt_cv_sys_max_cmd_len=-1;
5978 ;;
5979
718a6fd8 5980 cygwin* | mingw* | cegcc*)
cfbc9945
SE
5981 # On Win9x/ME, this test blows up -- it succeeds, but takes
5982 # about 5 minutes as the teststring grows exponentially.
5983 # Worse, since 9x/ME are not pre-emptively multitasking,
5984 # you end up with a "frozen" computer, even though with patience
5985 # the test eventually succeeds (with a max line length of 256k).
5986 # Instead, let's just punt: use the minimum linelength reported by
5987 # all of the supported platforms: 8192 (on NT/2K/XP).
5988 lt_cv_sys_max_cmd_len=8192;
5989 ;;
5464f5a1 5990
3725885a
RW
5991 mint*)
5992 # On MiNT this can take a long time and run out of memory.
5993 lt_cv_sys_max_cmd_len=8192;
5994 ;;
5995
cfbc9945
SE
5996 amigaos*)
5997 # On AmigaOS with pdksh, this test takes hours, literally.
5998 # So we just punt and use a minimum line length of 8192.
5999 lt_cv_sys_max_cmd_len=8192;
6000 ;;
5464f5a1 6001
cfbc9945
SE
6002 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6003 # This has been around since 386BSD, at least. Likely further.
6004 if test -x /sbin/sysctl; then
6005 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6006 elif test -x /usr/sbin/sysctl; then
6007 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6008 else
d7040cdb 6009 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
cfbc9945
SE
6010 fi
6011 # And add a safety zone
6012 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6013 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6014 ;;
d7040cdb
SE
6015
6016 interix*)
6017 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6018 lt_cv_sys_max_cmd_len=196608
6019 ;;
6020
6021 osf*)
6022 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6023 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6024 # nice to cause kernel panics so lets avoid the loop below.
6025 # First set a reasonable default.
6026 lt_cv_sys_max_cmd_len=16384
6027 #
6028 if test -x /sbin/sysconfig; then
6029 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6030 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6031 esac
6032 fi
6033 ;;
6034 sco3.2v5*)
6035 lt_cv_sys_max_cmd_len=102400
6036 ;;
6037 sysv5* | sco5v6* | sysv4.2uw2*)
6038 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6039 if test -n "$kargmax"; then
6040 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6041 else
6042 lt_cv_sys_max_cmd_len=32768
6043 fi
6044 ;;
6045 *)
718a6fd8
SE
6046 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6047 if test -n "$lt_cv_sys_max_cmd_len"; then
79887925
L
6048 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6049 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6050 else
6051 # Make teststring a little bigger before we do anything with it.
6052 # a 1K string should be a reasonable start.
6053 for i in 1 2 3 4 5 6 7 8 ; do
6054 teststring=$teststring$teststring
6055 done
6056 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6057 # If test is not a shell built-in, we'll probably end up computing a
6058 # maximum length that is only half of the actual maximum length, but
6059 # we can't tell.
3725885a
RW
6060 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6061 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
79887925
L
6062 test $i != 17 # 1/2 MB should be enough
6063 do
6064 i=`expr $i + 1`
6065 teststring=$teststring$teststring
6066 done
6067 # Only check the string length outside the loop.
6068 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6069 teststring=
6070 # Add a significant safety factor because C++ compilers can tack on
6071 # massive amounts of additional arguments before passing them to the
6072 # linker. It appears as though 1/2 is a usable value.
6073 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6074 fi
d7040cdb 6075 ;;
cfbc9945 6076 esac
5464f5a1 6077
252b5132 6078fi
cfbc9945 6079
d7040cdb 6080if test -n $lt_cv_sys_max_cmd_len ; then
81ecdfbb
RW
6081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6082$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5464f5a1 6083else
81ecdfbb
RW
6084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6085$as_echo "none" >&6; }
5464f5a1 6086fi
d7040cdb 6087max_cmd_len=$lt_cv_sys_max_cmd_len
252b5132 6088
cfbc9945 6089
252b5132 6090
cfbc9945 6091
cfbc9945 6092
d7040cdb 6093
d7040cdb
SE
6094: ${CP="cp -f"}
6095: ${MV="mv -f"}
6096: ${RM="rm -f"}
6097
81ecdfbb
RW
6098{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6099$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
d7040cdb
SE
6100# Try some XSI features
6101xsi_shell=no
6102( _lt_dummy="a/b/c"
6103 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
718a6fd8
SE
6104 = c,a/b,, \
6105 && eval 'test $(( 1 + 1 )) -eq 2 \
6106 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
d7040cdb 6107 && xsi_shell=yes
81ecdfbb
RW
6108{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6109$as_echo "$xsi_shell" >&6; }
d7040cdb
SE
6110
6111
81ecdfbb
RW
6112{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6113$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
d7040cdb
SE
6114lt_shell_append=no
6115( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6116 >/dev/null 2>&1 \
6117 && lt_shell_append=yes
81ecdfbb
RW
6118{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6119$as_echo "$lt_shell_append" >&6; }
d7040cdb
SE
6120
6121
6122if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6123 lt_unset=unset
5464f5a1 6124else
d7040cdb 6125 lt_unset=false
5464f5a1 6126fi
252b5132 6127
d7040cdb
SE
6128
6129
6130
6131
6132# test EBCDIC or ASCII
6133case `echo X|tr X '\101'` in
6134 A) # ASCII based system
6135 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6136 lt_SP2NL='tr \040 \012'
6137 lt_NL2SP='tr \015\012 \040\040'
6138 ;;
6139 *) # EBCDIC based system
6140 lt_SP2NL='tr \100 \n'
6141 lt_NL2SP='tr \r\n \100\100'
6142 ;;
6143esac
6144
6145
6146
6147
6148
6149
6150
6151
6152
81ecdfbb
RW
6153{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6154$as_echo_n "checking for $LD option to reload object files... " >&6; }
6155if test "${lt_cv_ld_reload_flag+set}" = set; then :
6156 $as_echo_n "(cached) " >&6
5464f5a1 6157else
d7040cdb
SE
6158 lt_cv_ld_reload_flag='-r'
6159fi
81ecdfbb
RW
6160{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6161$as_echo "$lt_cv_ld_reload_flag" >&6; }
d7040cdb
SE
6162reload_flag=$lt_cv_ld_reload_flag
6163case $reload_flag in
6164"" | " "*) ;;
6165*) reload_flag=" $reload_flag" ;;
6166esac
6167reload_cmds='$LD$reload_flag -o $output$reload_objs'
6168case $host_os in
6169 darwin*)
6170 if test "$GCC" = yes; then
6171 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6172 else
6173 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6174 fi
6175 ;;
6176esac
6177
6178
6179
6180
6181
6182
6183
6184
6185
718a6fd8
SE
6186if test -n "$ac_tool_prefix"; then
6187 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6188set dummy ${ac_tool_prefix}objdump; ac_word=$2
81ecdfbb
RW
6189{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6190$as_echo_n "checking for $ac_word... " >&6; }
6191if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
6192 $as_echo_n "(cached) " >&6
718a6fd8
SE
6193else
6194 if test -n "$OBJDUMP"; then
6195 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6196else
6197as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6198for as_dir in $PATH
6199do
6200 IFS=$as_save_IFS
6201 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6202 for ac_exec_ext in '' $ac_executable_extensions; do
6203 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
718a6fd8 6204 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
81ecdfbb 6205 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
6206 break 2
6207 fi
6208done
81ecdfbb
RW
6209 done
6210IFS=$as_save_IFS
718a6fd8
SE
6211
6212fi
6213fi
6214OBJDUMP=$ac_cv_prog_OBJDUMP
6215if test -n "$OBJDUMP"; then
81ecdfbb
RW
6216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6217$as_echo "$OBJDUMP" >&6; }
718a6fd8 6218else
81ecdfbb
RW
6219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6220$as_echo "no" >&6; }
718a6fd8
SE
6221fi
6222
81ecdfbb 6223
718a6fd8
SE
6224fi
6225if test -z "$ac_cv_prog_OBJDUMP"; then
6226 ac_ct_OBJDUMP=$OBJDUMP
6227 # Extract the first word of "objdump", so it can be a program name with args.
6228set dummy objdump; ac_word=$2
81ecdfbb
RW
6229{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6230$as_echo_n "checking for $ac_word... " >&6; }
6231if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
6232 $as_echo_n "(cached) " >&6
718a6fd8
SE
6233else
6234 if test -n "$ac_ct_OBJDUMP"; then
6235 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6236else
6237as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6238for as_dir in $PATH
6239do
6240 IFS=$as_save_IFS
6241 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6242 for ac_exec_ext in '' $ac_executable_extensions; do
6243 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
718a6fd8 6244 ac_cv_prog_ac_ct_OBJDUMP="objdump"
81ecdfbb 6245 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
6246 break 2
6247 fi
6248done
81ecdfbb
RW
6249 done
6250IFS=$as_save_IFS
718a6fd8 6251
718a6fd8
SE
6252fi
6253fi
6254ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6255if test -n "$ac_ct_OBJDUMP"; then
81ecdfbb
RW
6256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6257$as_echo "$ac_ct_OBJDUMP" >&6; }
718a6fd8 6258else
81ecdfbb
RW
6259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6260$as_echo "no" >&6; }
718a6fd8
SE
6261fi
6262
81ecdfbb
RW
6263 if test "x$ac_ct_OBJDUMP" = x; then
6264 OBJDUMP="false"
6265 else
6266 case $cross_compiling:$ac_tool_warned in
6267yes:)
6268{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6269$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6270ac_tool_warned=yes ;;
6271esac
6272 OBJDUMP=$ac_ct_OBJDUMP
6273 fi
718a6fd8
SE
6274else
6275 OBJDUMP="$ac_cv_prog_OBJDUMP"
6276fi
6277
6278test -z "$OBJDUMP" && OBJDUMP=objdump
6279
6280
6281
6282
6283
6284
6285
6286
d7040cdb 6287
81ecdfbb
RW
6288{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6289$as_echo_n "checking how to recognize dependent libraries... " >&6; }
6290if test "${lt_cv_deplibs_check_method+set}" = set; then :
6291 $as_echo_n "(cached) " >&6
d7040cdb
SE
6292else
6293 lt_cv_file_magic_cmd='$MAGIC_CMD'
6294lt_cv_file_magic_test_file=
6295lt_cv_deplibs_check_method='unknown'
6296# Need to set the preceding variable on all platforms that support
6297# interlibrary dependencies.
6298# 'none' -- dependencies not supported.
6299# `unknown' -- same as none, but documents that we really don't know.
6300# 'pass_all' -- all dependencies passed with no checks.
6301# 'test_compile' -- check by making test program.
6302# 'file_magic [[regex]]' -- check by looking for files in library path
6303# which responds to the $file_magic_cmd with a given extended regex.
6304# If you have `file' or equivalent on your system and you're not sure
6305# whether `pass_all' will *always* work, you probably want this one.
6306
6307case $host_os in
e81819a5 6308aix[4-9]*)
d7040cdb
SE
6309 lt_cv_deplibs_check_method=pass_all
6310 ;;
6311
6312beos*)
6313 lt_cv_deplibs_check_method=pass_all
6314 ;;
6315
6316bsdi[45]*)
6317 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6318 lt_cv_file_magic_cmd='/usr/bin/file -L'
6319 lt_cv_file_magic_test_file=/shlib/libc.so
6320 ;;
6321
6322cygwin*)
6323 # func_win32_libid is a shell function defined in ltmain.sh
6324 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6325 lt_cv_file_magic_cmd='func_win32_libid'
6326 ;;
6327
6328mingw* | pw32*)
6329 # Base MSYS/MinGW do not provide the 'file' command needed by
6330 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6331 # unless we find 'file', for example because we are cross-compiling.
3725885a
RW
6332 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6333 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
d7040cdb
SE
6334 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6335 lt_cv_file_magic_cmd='func_win32_libid'
6336 else
6337 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6338 lt_cv_file_magic_cmd='$OBJDUMP -f'
6339 fi
6340 ;;
6341
3725885a 6342cegcc*)
718a6fd8
SE
6343 # use the weaker test based on 'objdump'. See mingw*.
6344 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6345 lt_cv_file_magic_cmd='$OBJDUMP -f'
6346 ;;
6347
d7040cdb
SE
6348darwin* | rhapsody*)
6349 lt_cv_deplibs_check_method=pass_all
cfbc9945 6350 ;;
d7040cdb
SE
6351
6352freebsd* | dragonfly*)
6353 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6354 case $host_cpu in
6355 i*86 )
6356 # Not sure whether the presence of OpenBSD here was a mistake.
6357 # Let's accept both of them until this is cleared up.
6358 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6359 lt_cv_file_magic_cmd=/usr/bin/file
6360 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6361 ;;
6362 esac
6363 else
6364 lt_cv_deplibs_check_method=pass_all
6365 fi
6366 ;;
6367
6368gnu*)
6369 lt_cv_deplibs_check_method=pass_all
cfbc9945 6370 ;;
d7040cdb 6371
3725885a
RW
6372haiku*)
6373 lt_cv_deplibs_check_method=pass_all
6374 ;;
6375
d7040cdb
SE
6376hpux10.20* | hpux11*)
6377 lt_cv_file_magic_cmd=/usr/bin/file
6378 case $host_cpu in
6379 ia64*)
6380 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6381 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6382 ;;
6383 hppa*64*)
3725885a 6384 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
6385 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6386 ;;
cfbc9945 6387 *)
3725885a 6388 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
d7040cdb
SE
6389 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6390 ;;
6391 esac
6392 ;;
6be7c12c 6393
d7040cdb
SE
6394interix[3-9]*)
6395 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6396 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6397 ;;
cfbc9945 6398
d7040cdb
SE
6399irix5* | irix6* | nonstopux*)
6400 case $LD in
6401 *-32|*"-32 ") libmagic=32-bit;;
6402 *-n32|*"-n32 ") libmagic=N32;;
6403 *-64|*"-64 ") libmagic=64-bit;;
6404 *) libmagic=never-match;;
6405 esac
6406 lt_cv_deplibs_check_method=pass_all
cfbc9945 6407 ;;
cfbc9945 6408
d7040cdb 6409# This must be Linux ELF.
58e24671 6410linux* | k*bsd*-gnu | kopensolaris*-gnu)
d7040cdb
SE
6411 lt_cv_deplibs_check_method=pass_all
6412 ;;
5464f5a1 6413
d7040cdb
SE
6414netbsd*)
6415 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6416 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
cfbc9945 6417 else
d7040cdb 6418 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
cfbc9945 6419 fi
d7040cdb
SE
6420 ;;
6421
6422newos6*)
6423 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6424 lt_cv_file_magic_cmd=/usr/bin/file
6425 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6426 ;;
6427
6428*nto* | *qnx*)
6429 lt_cv_deplibs_check_method=pass_all
6430 ;;
cfbc9945 6431
d7040cdb
SE
6432openbsd*)
6433 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6434 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6435 else
6436 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
cfbc9945
SE
6437 fi
6438 ;;
d7040cdb
SE
6439
6440osf3* | osf4* | osf5*)
6441 lt_cv_deplibs_check_method=pass_all
6442 ;;
6443
6444rdos*)
6445 lt_cv_deplibs_check_method=pass_all
6446 ;;
6447
6448solaris*)
6449 lt_cv_deplibs_check_method=pass_all
6450 ;;
6451
6452sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6453 lt_cv_deplibs_check_method=pass_all
6454 ;;
6455
6456sysv4 | sysv4.3*)
6457 case $host_vendor in
6458 motorola)
6459 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]'
6460 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6461 ;;
6462 ncr)
6463 lt_cv_deplibs_check_method=pass_all
6464 ;;
6465 sequent)
6466 lt_cv_file_magic_cmd='/bin/file'
6467 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6468 ;;
6469 sni)
6470 lt_cv_file_magic_cmd='/bin/file'
6471 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6472 lt_cv_file_magic_test_file=/lib/libc.so
6473 ;;
6474 siemens)
6475 lt_cv_deplibs_check_method=pass_all
6476 ;;
6477 pc)
6478 lt_cv_deplibs_check_method=pass_all
6479 ;;
6480 esac
6481 ;;
6482
6483tpf*)
6484 lt_cv_deplibs_check_method=pass_all
6485 ;;
cfbc9945
SE
6486esac
6487
d7040cdb 6488fi
81ecdfbb
RW
6489{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6490$as_echo "$lt_cv_deplibs_check_method" >&6; }
d7040cdb
SE
6491file_magic_cmd=$lt_cv_file_magic_cmd
6492deplibs_check_method=$lt_cv_deplibs_check_method
6493test -z "$deplibs_check_method" && deplibs_check_method=unknown
6494
6495
6496
6497
6498
6499
6500
6501
6502
6503
6504
6505
cfbc9945 6506if test -n "$ac_tool_prefix"; then
d7040cdb
SE
6507 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6508set dummy ${ac_tool_prefix}ar; ac_word=$2
81ecdfbb
RW
6509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6510$as_echo_n "checking for $ac_word... " >&6; }
6511if test "${ac_cv_prog_AR+set}" = set; then :
6512 $as_echo_n "(cached) " >&6
5464f5a1 6513else
d7040cdb
SE
6514 if test -n "$AR"; then
6515 ac_cv_prog_AR="$AR" # Let the user override the test.
5464f5a1
NN
6516else
6517as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6518for as_dir in $PATH
6519do
6520 IFS=$as_save_IFS
6521 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6522 for ac_exec_ext in '' $ac_executable_extensions; do
6523 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d7040cdb 6524 ac_cv_prog_AR="${ac_tool_prefix}ar"
81ecdfbb 6525 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5464f5a1
NN
6526 break 2
6527 fi
6528done
81ecdfbb
RW
6529 done
6530IFS=$as_save_IFS
5464f5a1
NN
6531
6532fi
6533fi
d7040cdb
SE
6534AR=$ac_cv_prog_AR
6535if test -n "$AR"; then
81ecdfbb
RW
6536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6537$as_echo "$AR" >&6; }
5464f5a1 6538else
81ecdfbb
RW
6539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6540$as_echo "no" >&6; }
5464f5a1
NN
6541fi
6542
81ecdfbb 6543
5464f5a1 6544fi
d7040cdb
SE
6545if test -z "$ac_cv_prog_AR"; then
6546 ac_ct_AR=$AR
6547 # Extract the first word of "ar", so it can be a program name with args.
6548set dummy ar; ac_word=$2
81ecdfbb
RW
6549{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6550$as_echo_n "checking for $ac_word... " >&6; }
6551if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6552 $as_echo_n "(cached) " >&6
252b5132 6553else
d7040cdb
SE
6554 if test -n "$ac_ct_AR"; then
6555 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
252b5132 6556else
5464f5a1
NN
6557as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6558for as_dir in $PATH
6559do
6560 IFS=$as_save_IFS
6561 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6562 for ac_exec_ext in '' $ac_executable_extensions; do
6563 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d7040cdb 6564 ac_cv_prog_ac_ct_AR="ar"
81ecdfbb 6565 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5464f5a1
NN
6566 break 2
6567 fi
6568done
81ecdfbb
RW
6569 done
6570IFS=$as_save_IFS
5464f5a1 6571
5464f5a1
NN
6572fi
6573fi
d7040cdb
SE
6574ac_ct_AR=$ac_cv_prog_ac_ct_AR
6575if test -n "$ac_ct_AR"; then
81ecdfbb
RW
6576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6577$as_echo "$ac_ct_AR" >&6; }
d7040cdb 6578else
81ecdfbb
RW
6579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6580$as_echo "no" >&6; }
5464f5a1
NN
6581fi
6582
81ecdfbb
RW
6583 if test "x$ac_ct_AR" = x; then
6584 AR="false"
6585 else
6586 case $cross_compiling:$ac_tool_warned in
6587yes:)
6588{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6589$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6590ac_tool_warned=yes ;;
6591esac
6592 AR=$ac_ct_AR
6593 fi
cfbc9945 6594else
d7040cdb 6595 AR="$ac_cv_prog_AR"
5464f5a1 6596fi
cfbc9945 6597
d7040cdb
SE
6598test -z "$AR" && AR=ar
6599test -z "$AR_FLAGS" && AR_FLAGS=cru
6600
6601
6602
6603
6604
6605
6606
6607
6608
6609
6610
cfbc9945
SE
6611if test -n "$ac_tool_prefix"; then
6612 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6613set dummy ${ac_tool_prefix}strip; ac_word=$2
81ecdfbb
RW
6614{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6615$as_echo_n "checking for $ac_word... " >&6; }
6616if test "${ac_cv_prog_STRIP+set}" = set; then :
6617 $as_echo_n "(cached) " >&6
5464f5a1 6618else
cfbc9945
SE
6619 if test -n "$STRIP"; then
6620 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5464f5a1
NN
6621else
6622as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6623for as_dir in $PATH
6624do
6625 IFS=$as_save_IFS
6626 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6627 for ac_exec_ext in '' $ac_executable_extensions; do
6628 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
cfbc9945 6629 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
81ecdfbb 6630 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5464f5a1
NN
6631 break 2
6632 fi
6633done
81ecdfbb
RW
6634 done
6635IFS=$as_save_IFS
5464f5a1
NN
6636
6637fi
6638fi
cfbc9945
SE
6639STRIP=$ac_cv_prog_STRIP
6640if test -n "$STRIP"; then
81ecdfbb
RW
6641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6642$as_echo "$STRIP" >&6; }
5464f5a1 6643else
81ecdfbb
RW
6644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6645$as_echo "no" >&6; }
5464f5a1
NN
6646fi
6647
81ecdfbb 6648
252b5132 6649fi
cfbc9945
SE
6650if test -z "$ac_cv_prog_STRIP"; then
6651 ac_ct_STRIP=$STRIP
6652 # Extract the first word of "strip", so it can be a program name with args.
6653set dummy strip; ac_word=$2
81ecdfbb
RW
6654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6655$as_echo_n "checking for $ac_word... " >&6; }
6656if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6657 $as_echo_n "(cached) " >&6
5464f5a1 6658else
cfbc9945
SE
6659 if test -n "$ac_ct_STRIP"; then
6660 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5464f5a1
NN
6661else
6662as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6663for as_dir in $PATH
6664do
6665 IFS=$as_save_IFS
6666 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6667 for ac_exec_ext in '' $ac_executable_extensions; do
6668 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
cfbc9945 6669 ac_cv_prog_ac_ct_STRIP="strip"
81ecdfbb 6670 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5464f5a1
NN
6671 break 2
6672 fi
6673done
81ecdfbb
RW
6674 done
6675IFS=$as_save_IFS
5464f5a1
NN
6676
6677fi
6678fi
cfbc9945
SE
6679ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6680if test -n "$ac_ct_STRIP"; then
81ecdfbb
RW
6681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6682$as_echo "$ac_ct_STRIP" >&6; }
5464f5a1 6683else
81ecdfbb
RW
6684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6685$as_echo "no" >&6; }
5464f5a1
NN
6686fi
6687
81ecdfbb
RW
6688 if test "x$ac_ct_STRIP" = x; then
6689 STRIP=":"
6690 else
6691 case $cross_compiling:$ac_tool_warned in
6692yes:)
6693{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6694$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6695ac_tool_warned=yes ;;
6696esac
6697 STRIP=$ac_ct_STRIP
6698 fi
cfbc9945
SE
6699else
6700 STRIP="$ac_cv_prog_STRIP"
5464f5a1
NN
6701fi
6702
d7040cdb 6703test -z "$STRIP" && STRIP=:
5464f5a1 6704
cfbc9945
SE
6705
6706
cfbc9945 6707
cfbc9945
SE
6708
6709
d7040cdb
SE
6710if test -n "$ac_tool_prefix"; then
6711 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6712set dummy ${ac_tool_prefix}ranlib; ac_word=$2
81ecdfbb
RW
6713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6714$as_echo_n "checking for $ac_word... " >&6; }
6715if test "${ac_cv_prog_RANLIB+set}" = set; then :
6716 $as_echo_n "(cached) " >&6
cfbc9945 6717else
d7040cdb
SE
6718 if test -n "$RANLIB"; then
6719 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6720else
6721as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6722for as_dir in $PATH
6723do
6724 IFS=$as_save_IFS
6725 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6726 for ac_exec_ext in '' $ac_executable_extensions; do
6727 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d7040cdb 6728 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
81ecdfbb 6729 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d7040cdb 6730 break 2
cfbc9945 6731 fi
d7040cdb 6732done
81ecdfbb
RW
6733 done
6734IFS=$as_save_IFS
cfbc9945 6735
d7040cdb
SE
6736fi
6737fi
6738RANLIB=$ac_cv_prog_RANLIB
6739if test -n "$RANLIB"; then
81ecdfbb
RW
6740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6741$as_echo "$RANLIB" >&6; }
d7040cdb 6742else
81ecdfbb
RW
6743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6744$as_echo "no" >&6; }
d7040cdb 6745fi
cfbc9945 6746
81ecdfbb 6747
d7040cdb
SE
6748fi
6749if test -z "$ac_cv_prog_RANLIB"; then
6750 ac_ct_RANLIB=$RANLIB
6751 # Extract the first word of "ranlib", so it can be a program name with args.
6752set dummy ranlib; ac_word=$2
81ecdfbb
RW
6753{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6754$as_echo_n "checking for $ac_word... " >&6; }
6755if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6756 $as_echo_n "(cached) " >&6
d7040cdb
SE
6757else
6758 if test -n "$ac_ct_RANLIB"; then
6759 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6760else
6761as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6762for as_dir in $PATH
6763do
6764 IFS=$as_save_IFS
6765 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6766 for ac_exec_ext in '' $ac_executable_extensions; do
6767 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d7040cdb 6768 ac_cv_prog_ac_ct_RANLIB="ranlib"
81ecdfbb 6769 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d7040cdb 6770 break 2
cfbc9945 6771 fi
d7040cdb 6772done
81ecdfbb
RW
6773 done
6774IFS=$as_save_IFS
cfbc9945 6775
d7040cdb
SE
6776fi
6777fi
6778ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6779if test -n "$ac_ct_RANLIB"; then
81ecdfbb
RW
6780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6781$as_echo "$ac_ct_RANLIB" >&6; }
cfbc9945 6782else
81ecdfbb
RW
6783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6784$as_echo "no" >&6; }
d7040cdb 6785fi
5464f5a1 6786
81ecdfbb
RW
6787 if test "x$ac_ct_RANLIB" = x; then
6788 RANLIB=":"
6789 else
6790 case $cross_compiling:$ac_tool_warned in
6791yes:)
6792{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6793$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6794ac_tool_warned=yes ;;
6795esac
6796 RANLIB=$ac_ct_RANLIB
6797 fi
d7040cdb
SE
6798else
6799 RANLIB="$ac_cv_prog_RANLIB"
6800fi
5464f5a1 6801
d7040cdb 6802test -z "$RANLIB" && RANLIB=:
5464f5a1 6803
5464f5a1 6804
5464f5a1 6805
cfbc9945 6806
cfbc9945 6807
d7040cdb
SE
6808
6809# Determine commands to create old-style static archives.
718a6fd8 6810old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
d7040cdb
SE
6811old_postinstall_cmds='chmod 644 $oldlib'
6812old_postuninstall_cmds=
6813
6814if test -n "$RANLIB"; then
6815 case $host_os in
6816 openbsd*)
6817 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6818 ;;
6819 *)
6820 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6821 ;;
6822 esac
6823 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
cfbc9945 6824fi
cfbc9945 6825
3725885a
RW
6826case $host_os in
6827 darwin*)
6828 lock_old_archive_extraction=yes ;;
6829 *)
6830 lock_old_archive_extraction=no ;;
6831esac
6832
6833
6834
6835
6836
6837
cfbc9945 6838
cfbc9945
SE
6839
6840
cfbc9945 6841
cfbc9945 6842
cfbc9945 6843
cfbc9945 6844
cfbc9945
SE
6845
6846
cfbc9945 6847
cfbc9945 6848
cfbc9945
SE
6849
6850
6851
6852
6853
6854
6855
5464f5a1 6856
5464f5a1 6857
cfbc9945
SE
6858
6859
6860
5464f5a1 6861
5464f5a1 6862
cfbc9945
SE
6863
6864
6865
5464f5a1 6866
cfbc9945
SE
6867
6868
6869
6870
d7040cdb
SE
6871# If no C compiler was specified, use CC.
6872LTCC=${LTCC-"$CC"}
cfbc9945 6873
d7040cdb
SE
6874# If no C compiler flags were specified, use CFLAGS.
6875LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
cfbc9945 6876
d7040cdb
SE
6877# Allow CC to be a program name with arguments.
6878compiler=$CC
cfbc9945 6879
cfbc9945 6880
d7040cdb 6881# Check for command to grab the raw symbol name followed by C symbol from nm.
81ecdfbb
RW
6882{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6883$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6884if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6885 $as_echo_n "(cached) " >&6
d7040cdb 6886else
5464f5a1 6887
d7040cdb
SE
6888# These are sane defaults that work on at least a few old systems.
6889# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5464f5a1 6890
d7040cdb
SE
6891# Character class describing NM global symbol codes.
6892symcode='[BCDEGRST]'
6893
6894# Regexp to match symbols that can be accessed directly from C.
6895sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6896
6897# Define system-specific variables.
6898case $host_os in
6899aix*)
6900 symcode='[BCDT]'
6901 ;;
718a6fd8 6902cygwin* | mingw* | pw32* | cegcc*)
d7040cdb
SE
6903 symcode='[ABCDGISTW]'
6904 ;;
6905hpux*)
6906 if test "$host_cpu" = ia64; then
6907 symcode='[ABCDEGRST]'
6908 fi
6909 ;;
6910irix* | nonstopux*)
6911 symcode='[BCDEGRST]'
6912 ;;
6913osf*)
6914 symcode='[BCDEGQRST]'
6915 ;;
6916solaris*)
6917 symcode='[BDRT]'
6918 ;;
6919sco3.2v5*)
6920 symcode='[DT]'
6921 ;;
6922sysv4.2uw2*)
6923 symcode='[DT]'
6924 ;;
6925sysv5* | sco5v6* | unixware* | OpenUNIX*)
6926 symcode='[ABDT]'
6927 ;;
6928sysv4)
6929 symcode='[DFNSTU]'
6930 ;;
cfbc9945 6931esac
5464f5a1 6932
d7040cdb
SE
6933# If we're using GNU nm, then use its standard symbol codes.
6934case `$NM -V 2>&1` in
6935*GNU* | *'with BFD'*)
6936 symcode='[ABCDGIRSTW]' ;;
6937esac
5464f5a1 6938
d7040cdb
SE
6939# Transform an extracted symbol line into a proper C declaration.
6940# Some systems (esp. on ia64) link data and code symbols differently,
6941# so use this general approach.
6942lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5464f5a1 6943
d7040cdb
SE
6944# Transform an extracted symbol line into symbol name and symbol address
6945lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
718a6fd8 6946lt_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 6947
d7040cdb
SE
6948# Handle CRLF in mingw tool chain
6949opt_cr=
6950case $build_os in
6951mingw*)
6952 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6953 ;;
6954esac
5464f5a1 6955
d7040cdb
SE
6956# Try without a prefix underscore, then with it.
6957for ac_symprfx in "" "_"; do
6958
6959 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6960 symxfrm="\\1 $ac_symprfx\\2 \\2"
6961
6962 # Write the raw and C identifiers.
6963 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6964 # Fake it for dumpbin and say T for any non-static function
6965 # and D for any global variable.
6966 # Also find C++ and __fastcall symbols from MSVC++,
6967 # which start with @ or ?.
6968 lt_cv_sys_global_symbol_pipe="$AWK '"\
6969" {last_section=section; section=\$ 3};"\
6970" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6971" \$ 0!~/External *\|/{next};"\
6972" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6973" {if(hide[section]) next};"\
6974" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6975" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6976" s[1]~/^[@?]/{print s[1], s[1]; next};"\
6977" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6978" ' prfx=^$ac_symprfx"
6979 else
6980 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6981 fi
cfbc9945 6982
d7040cdb
SE
6983 # Check to see that the pipe works correctly.
6984 pipe_works=no
cfbc9945 6985
d7040cdb
SE
6986 rm -f conftest*
6987 cat > conftest.$ac_ext <<_LT_EOF
6988#ifdef __cplusplus
6989extern "C" {
6990#endif
6991char nm_test_var;
6992void nm_test_func(void);
6993void nm_test_func(void){}
6994#ifdef __cplusplus
6995}
6996#endif
6997int main(){nm_test_var='a';nm_test_func();return(0);}
6998_LT_EOF
cfbc9945 6999
81ecdfbb 7000 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
d7040cdb
SE
7001 (eval $ac_compile) 2>&5
7002 ac_status=$?
81ecdfbb
RW
7003 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7004 test $ac_status = 0; }; then
d7040cdb
SE
7005 # Now try to grab the symbols.
7006 nlist=conftest.nm
3725885a
RW
7007 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7008 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
d7040cdb 7009 ac_status=$?
81ecdfbb
RW
7010 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7011 test $ac_status = 0; } && test -s "$nlist"; then
d7040cdb
SE
7012 # Try sorting and uniquifying the output.
7013 if sort "$nlist" | uniq > "$nlist"T; then
7014 mv -f "$nlist"T "$nlist"
7015 else
7016 rm -f "$nlist"T
7017 fi
cfbc9945 7018
d7040cdb
SE
7019 # Make sure that we snagged all the symbols we need.
7020 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7021 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7022 cat <<_LT_EOF > conftest.$ac_ext
7023#ifdef __cplusplus
7024extern "C" {
7025#endif
cfbc9945 7026
d7040cdb
SE
7027_LT_EOF
7028 # Now generate the symbol file.
7029 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5464f5a1 7030
d7040cdb 7031 cat <<_LT_EOF >> conftest.$ac_ext
cfbc9945 7032
d7040cdb
SE
7033/* The mapping between symbol names and symbols. */
7034const struct {
7035 const char *name;
7036 void *address;
7037}
7038lt__PROGRAM__LTX_preloaded_symbols[] =
7039{
7040 { "@PROGRAM@", (void *) 0 },
7041_LT_EOF
7042 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7043 cat <<\_LT_EOF >> conftest.$ac_ext
7044 {0, (void *) 0}
7045};
7046
7047/* This works around a problem in FreeBSD linker */
7048#ifdef FREEBSD_WORKAROUND
7049static const void *lt_preloaded_setup() {
7050 return lt__PROGRAM__LTX_preloaded_symbols;
7051}
7052#endif
cfbc9945 7053
d7040cdb
SE
7054#ifdef __cplusplus
7055}
7056#endif
7057_LT_EOF
7058 # Now try linking the two files.
7059 mv conftest.$ac_objext conftstm.$ac_objext
7060 lt_save_LIBS="$LIBS"
7061 lt_save_CFLAGS="$CFLAGS"
7062 LIBS="conftstm.$ac_objext"
7063 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
81ecdfbb 7064 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
d7040cdb
SE
7065 (eval $ac_link) 2>&5
7066 ac_status=$?
81ecdfbb
RW
7067 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7068 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
d7040cdb
SE
7069 pipe_works=yes
7070 fi
7071 LIBS="$lt_save_LIBS"
7072 CFLAGS="$lt_save_CFLAGS"
7073 else
7074 echo "cannot find nm_test_func in $nlist" >&5
7075 fi
7076 else
7077 echo "cannot find nm_test_var in $nlist" >&5
7078 fi
7079 else
7080 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7081 fi
7082 else
7083 echo "$progname: failed program was:" >&5
7084 cat conftest.$ac_ext >&5
7085 fi
718a6fd8 7086 rm -rf conftest* conftst*
cfbc9945 7087
d7040cdb
SE
7088 # Do not use the global_symbol_pipe unless it works.
7089 if test "$pipe_works" = yes; then
7090 break
7091 else
7092 lt_cv_sys_global_symbol_pipe=
7093 fi
7094done
cfbc9945 7095
252b5132 7096fi
5464f5a1 7097
d7040cdb
SE
7098if test -z "$lt_cv_sys_global_symbol_pipe"; then
7099 lt_cv_sys_global_symbol_to_cdecl=
7100fi
7101if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
81ecdfbb
RW
7102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7103$as_echo "failed" >&6; }
b3baf5d0 7104else
81ecdfbb
RW
7105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7106$as_echo "ok" >&6; }
d7040cdb 7107fi
5464f5a1 7108
cfbc9945 7109
b3baf5d0 7110
cfbc9945
SE
7111
7112
7113
7114
5464f5a1 7115
4a2a2686
HPN
7116
7117
7118
cfbc9945
SE
7119
7120
cfbc9945 7121
cfbc9945 7122
718a6fd8
SE
7123
7124
7125
7126
7127
9d7cbccd 7128
20e95c23 7129
81ecdfbb
RW
7130# Check whether --enable-libtool-lock was given.
7131if test "${enable_libtool_lock+set}" = set; then :
7132 enableval=$enable_libtool_lock;
7133fi
20e95c23 7134
d7040cdb 7135test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
20e95c23 7136
d7040cdb
SE
7137# Some flags need to be propagated to the compiler or linker for good
7138# libtool support.
7139case $host in
7140ia64-*-hpux*)
7141 # Find out which ABI we are using.
7142 echo 'int i;' > conftest.$ac_ext
81ecdfbb 7143 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
d7040cdb
SE
7144 (eval $ac_compile) 2>&5
7145 ac_status=$?
81ecdfbb
RW
7146 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7147 test $ac_status = 0; }; then
d7040cdb
SE
7148 case `/usr/bin/file conftest.$ac_objext` in
7149 *ELF-32*)
7150 HPUX_IA64_MODE="32"
7151 ;;
7152 *ELF-64*)
7153 HPUX_IA64_MODE="64"
7154 ;;
20e95c23 7155 esac
d7040cdb
SE
7156 fi
7157 rm -rf conftest*
7158 ;;
7159*-*-irix6*)
7160 # Find out which ABI we are using.
3725885a 7161 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
81ecdfbb 7162 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
d7040cdb
SE
7163 (eval $ac_compile) 2>&5
7164 ac_status=$?
81ecdfbb
RW
7165 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7166 test $ac_status = 0; }; then
d7040cdb
SE
7167 if test "$lt_cv_prog_gnu_ld" = yes; then
7168 case `/usr/bin/file conftest.$ac_objext` in
7169 *32-bit*)
7170 LD="${LD-ld} -melf32bsmip"
7171 ;;
7172 *N32*)
7173 LD="${LD-ld} -melf32bmipn32"
7174 ;;
7175 *64-bit*)
7176 LD="${LD-ld} -melf64bmip"
7177 ;;
7178 esac
20e95c23 7179 else
d7040cdb
SE
7180 case `/usr/bin/file conftest.$ac_objext` in
7181 *32-bit*)
7182 LD="${LD-ld} -32"
7183 ;;
7184 *N32*)
7185 LD="${LD-ld} -n32"
7186 ;;
7187 *64-bit*)
7188 LD="${LD-ld} -64"
7189 ;;
20e95c23
DJ
7190 esac
7191 fi
d7040cdb
SE
7192 fi
7193 rm -rf conftest*
7194 ;;
20e95c23 7195
d7040cdb
SE
7196x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7197s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7198 # Find out which ABI we are using.
7199 echo 'int i;' > conftest.$ac_ext
81ecdfbb 7200 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
d7040cdb
SE
7201 (eval $ac_compile) 2>&5
7202 ac_status=$?
81ecdfbb
RW
7203 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7204 test $ac_status = 0; }; then
d7040cdb
SE
7205 case `/usr/bin/file conftest.o` in
7206 *32-bit*)
7207 case $host in
7208 x86_64-*kfreebsd*-gnu)
7209 LD="${LD-ld} -m elf_i386_fbsd"
7210 ;;
7211 x86_64-*linux*)
7212 LD="${LD-ld} -m elf_i386"
7213 ;;
7214 ppc64-*linux*|powerpc64-*linux*)
7215 LD="${LD-ld} -m elf32ppclinux"
7216 ;;
7217 s390x-*linux*)
7218 LD="${LD-ld} -m elf_s390"
7219 ;;
7220 sparc64-*linux*)
7221 LD="${LD-ld} -m elf32_sparc"
7222 ;;
7223 esac
7224 ;;
7225 *64-bit*)
7226 case $host in
7227 x86_64-*kfreebsd*-gnu)
7228 LD="${LD-ld} -m elf_x86_64_fbsd"
7229 ;;
7230 x86_64-*linux*)
7231 LD="${LD-ld} -m elf_x86_64"
7232 ;;
7233 ppc*-*linux*|powerpc*-*linux*)
7234 LD="${LD-ld} -m elf64ppc"
7235 ;;
7236 s390*-*linux*|s390*-*tpf*)
7237 LD="${LD-ld} -m elf64_s390"
7238 ;;
7239 sparc*-*linux*)
7240 LD="${LD-ld} -m elf64_sparc"
7241 ;;
7242 esac
7243 ;;
20e95c23
DJ
7244 esac
7245 fi
d7040cdb 7246 rm -rf conftest*
7357c5b6 7247 ;;
d7040cdb 7248
7357c5b6
AM
7249*-*-sco3.2v5*)
7250 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7251 SAVE_CFLAGS="$CFLAGS"
7252 CFLAGS="$CFLAGS -belf"
81ecdfbb
RW
7253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7254$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7255if test "${lt_cv_cc_needs_belf+set}" = set; then :
7256 $as_echo_n "(cached) " >&6
d7040cdb 7257else
7357c5b6
AM
7258 ac_ext=c
7259ac_cpp='$CPP $CPPFLAGS'
7260ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7261ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7262ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7040cdb 7263
81ecdfbb 7264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7040cdb 7265/* end confdefs.h. */
d7040cdb 7266
d7040cdb
SE
7267int
7268main ()
7269{
7357c5b6
AM
7270
7271 ;
7272 return 0;
d7040cdb
SE
7273}
7274_ACEOF
81ecdfbb 7275if ac_fn_c_try_link "$LINENO"; then :
7357c5b6 7276 lt_cv_cc_needs_belf=yes
d7040cdb 7277else
81ecdfbb 7278 lt_cv_cc_needs_belf=no
d7040cdb 7279fi
81ecdfbb
RW
7280rm -f core conftest.err conftest.$ac_objext \
7281 conftest$ac_exeext conftest.$ac_ext
7357c5b6
AM
7282 ac_ext=c
7283ac_cpp='$CPP $CPPFLAGS'
7284ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7285ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7286ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7040cdb
SE
7287
7288fi
81ecdfbb
RW
7289{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7290$as_echo "$lt_cv_cc_needs_belf" >&6; }
7357c5b6
AM
7291 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7292 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7293 CFLAGS="$SAVE_CFLAGS"
7294 fi
7295 ;;
7296sparc*-*solaris*)
7297 # Find out which ABI we are using.
7298 echo 'int i;' > conftest.$ac_ext
81ecdfbb 7299 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7357c5b6
AM
7300 (eval $ac_compile) 2>&5
7301 ac_status=$?
81ecdfbb
RW
7302 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7303 test $ac_status = 0; }; then
7357c5b6
AM
7304 case `/usr/bin/file conftest.o` in
7305 *64-bit*)
7306 case $lt_cv_prog_gnu_ld in
7307 yes*) LD="${LD-ld} -m elf64_sparc" ;;
718a6fd8
SE
7308 *)
7309 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7310 LD="${LD-ld} -64"
7311 fi
7312 ;;
7357c5b6
AM
7313 esac
7314 ;;
7315 esac
7316 fi
7317 rm -rf conftest*
7318 ;;
7319esac
d7040cdb 7320
7357c5b6 7321need_locks="$enable_libtool_lock"
d7040cdb
SE
7322
7323
718a6fd8
SE
7324 case $host_os in
7325 rhapsody* | darwin*)
7326 if test -n "$ac_tool_prefix"; then
7327 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7328set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
81ecdfbb
RW
7329{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7330$as_echo_n "checking for $ac_word... " >&6; }
7331if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
7332 $as_echo_n "(cached) " >&6
718a6fd8
SE
7333else
7334 if test -n "$DSYMUTIL"; then
7335 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7336else
7337as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7338for as_dir in $PATH
7339do
7340 IFS=$as_save_IFS
7341 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7342 for ac_exec_ext in '' $ac_executable_extensions; do
7343 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
718a6fd8 7344 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
81ecdfbb 7345 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
7346 break 2
7347 fi
7348done
81ecdfbb
RW
7349 done
7350IFS=$as_save_IFS
718a6fd8
SE
7351
7352fi
7353fi
7354DSYMUTIL=$ac_cv_prog_DSYMUTIL
7355if test -n "$DSYMUTIL"; then
81ecdfbb
RW
7356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7357$as_echo "$DSYMUTIL" >&6; }
718a6fd8 7358else
81ecdfbb
RW
7359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7360$as_echo "no" >&6; }
718a6fd8
SE
7361fi
7362
81ecdfbb 7363
718a6fd8
SE
7364fi
7365if test -z "$ac_cv_prog_DSYMUTIL"; then
7366 ac_ct_DSYMUTIL=$DSYMUTIL
7367 # Extract the first word of "dsymutil", so it can be a program name with args.
7368set dummy dsymutil; ac_word=$2
81ecdfbb
RW
7369{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7370$as_echo_n "checking for $ac_word... " >&6; }
7371if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
7372 $as_echo_n "(cached) " >&6
718a6fd8
SE
7373else
7374 if test -n "$ac_ct_DSYMUTIL"; then
7375 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7376else
7377as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7378for as_dir in $PATH
7379do
7380 IFS=$as_save_IFS
7381 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7382 for ac_exec_ext in '' $ac_executable_extensions; do
7383 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
718a6fd8 7384 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
81ecdfbb 7385 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
7386 break 2
7387 fi
7388done
81ecdfbb
RW
7389 done
7390IFS=$as_save_IFS
718a6fd8 7391
718a6fd8
SE
7392fi
7393fi
7394ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7395if test -n "$ac_ct_DSYMUTIL"; then
81ecdfbb
RW
7396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7397$as_echo "$ac_ct_DSYMUTIL" >&6; }
718a6fd8 7398else
81ecdfbb
RW
7399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7400$as_echo "no" >&6; }
718a6fd8
SE
7401fi
7402
81ecdfbb
RW
7403 if test "x$ac_ct_DSYMUTIL" = x; then
7404 DSYMUTIL=":"
7405 else
7406 case $cross_compiling:$ac_tool_warned in
7407yes:)
7408{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7409$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7410ac_tool_warned=yes ;;
7411esac
7412 DSYMUTIL=$ac_ct_DSYMUTIL
7413 fi
718a6fd8
SE
7414else
7415 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7416fi
7417
7418 if test -n "$ac_tool_prefix"; then
7419 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7420set dummy ${ac_tool_prefix}nmedit; ac_word=$2
81ecdfbb
RW
7421{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7422$as_echo_n "checking for $ac_word... " >&6; }
7423if test "${ac_cv_prog_NMEDIT+set}" = set; then :
7424 $as_echo_n "(cached) " >&6
718a6fd8
SE
7425else
7426 if test -n "$NMEDIT"; then
7427 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7428else
7429as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7430for as_dir in $PATH
7431do
7432 IFS=$as_save_IFS
7433 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7434 for ac_exec_ext in '' $ac_executable_extensions; do
7435 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
718a6fd8 7436 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
81ecdfbb 7437 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
7438 break 2
7439 fi
7440done
81ecdfbb
RW
7441 done
7442IFS=$as_save_IFS
718a6fd8
SE
7443
7444fi
7445fi
7446NMEDIT=$ac_cv_prog_NMEDIT
7447if test -n "$NMEDIT"; then
81ecdfbb
RW
7448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7449$as_echo "$NMEDIT" >&6; }
718a6fd8 7450else
81ecdfbb
RW
7451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7452$as_echo "no" >&6; }
718a6fd8
SE
7453fi
7454
81ecdfbb 7455
718a6fd8
SE
7456fi
7457if test -z "$ac_cv_prog_NMEDIT"; then
7458 ac_ct_NMEDIT=$NMEDIT
7459 # Extract the first word of "nmedit", so it can be a program name with args.
7460set dummy nmedit; ac_word=$2
81ecdfbb
RW
7461{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7462$as_echo_n "checking for $ac_word... " >&6; }
7463if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
7464 $as_echo_n "(cached) " >&6
718a6fd8
SE
7465else
7466 if test -n "$ac_ct_NMEDIT"; then
7467 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7468else
7469as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7470for as_dir in $PATH
7471do
7472 IFS=$as_save_IFS
7473 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7474 for ac_exec_ext in '' $ac_executable_extensions; do
7475 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
718a6fd8 7476 ac_cv_prog_ac_ct_NMEDIT="nmedit"
81ecdfbb 7477 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
7478 break 2
7479 fi
7480done
81ecdfbb
RW
7481 done
7482IFS=$as_save_IFS
718a6fd8 7483
718a6fd8
SE
7484fi
7485fi
7486ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7487if test -n "$ac_ct_NMEDIT"; then
81ecdfbb
RW
7488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7489$as_echo "$ac_ct_NMEDIT" >&6; }
718a6fd8 7490else
81ecdfbb
RW
7491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7492$as_echo "no" >&6; }
718a6fd8
SE
7493fi
7494
81ecdfbb
RW
7495 if test "x$ac_ct_NMEDIT" = x; then
7496 NMEDIT=":"
7497 else
7498 case $cross_compiling:$ac_tool_warned in
7499yes:)
7500{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7501$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7502ac_tool_warned=yes ;;
7503esac
7504 NMEDIT=$ac_ct_NMEDIT
7505 fi
718a6fd8
SE
7506else
7507 NMEDIT="$ac_cv_prog_NMEDIT"
7508fi
7509
7510 if test -n "$ac_tool_prefix"; then
7511 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7512set dummy ${ac_tool_prefix}lipo; ac_word=$2
81ecdfbb
RW
7513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7514$as_echo_n "checking for $ac_word... " >&6; }
7515if test "${ac_cv_prog_LIPO+set}" = set; then :
7516 $as_echo_n "(cached) " >&6
718a6fd8
SE
7517else
7518 if test -n "$LIPO"; then
7519 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7520else
7521as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7522for as_dir in $PATH
7523do
7524 IFS=$as_save_IFS
7525 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7526 for ac_exec_ext in '' $ac_executable_extensions; do
7527 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
718a6fd8 7528 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
81ecdfbb 7529 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
7530 break 2
7531 fi
7532done
81ecdfbb
RW
7533 done
7534IFS=$as_save_IFS
718a6fd8
SE
7535
7536fi
7537fi
7538LIPO=$ac_cv_prog_LIPO
7539if test -n "$LIPO"; then
81ecdfbb
RW
7540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7541$as_echo "$LIPO" >&6; }
718a6fd8 7542else
81ecdfbb
RW
7543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7544$as_echo "no" >&6; }
718a6fd8
SE
7545fi
7546
81ecdfbb 7547
718a6fd8
SE
7548fi
7549if test -z "$ac_cv_prog_LIPO"; then
7550 ac_ct_LIPO=$LIPO
7551 # Extract the first word of "lipo", so it can be a program name with args.
7552set dummy lipo; ac_word=$2
81ecdfbb
RW
7553{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7554$as_echo_n "checking for $ac_word... " >&6; }
7555if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7556 $as_echo_n "(cached) " >&6
718a6fd8
SE
7557else
7558 if test -n "$ac_ct_LIPO"; then
7559 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7560else
7561as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7562for as_dir in $PATH
7563do
7564 IFS=$as_save_IFS
7565 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7566 for ac_exec_ext in '' $ac_executable_extensions; do
7567 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
718a6fd8 7568 ac_cv_prog_ac_ct_LIPO="lipo"
81ecdfbb 7569 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
7570 break 2
7571 fi
7572done
81ecdfbb
RW
7573 done
7574IFS=$as_save_IFS
718a6fd8 7575
718a6fd8
SE
7576fi
7577fi
7578ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7579if test -n "$ac_ct_LIPO"; then
81ecdfbb
RW
7580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7581$as_echo "$ac_ct_LIPO" >&6; }
718a6fd8 7582else
81ecdfbb
RW
7583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7584$as_echo "no" >&6; }
718a6fd8
SE
7585fi
7586
81ecdfbb
RW
7587 if test "x$ac_ct_LIPO" = x; then
7588 LIPO=":"
7589 else
7590 case $cross_compiling:$ac_tool_warned in
7591yes:)
7592{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7593$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7594ac_tool_warned=yes ;;
7595esac
7596 LIPO=$ac_ct_LIPO
7597 fi
7598else
718a6fd8
SE
7599 LIPO="$ac_cv_prog_LIPO"
7600fi
7601
7602 if test -n "$ac_tool_prefix"; then
7603 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7604set dummy ${ac_tool_prefix}otool; ac_word=$2
81ecdfbb
RW
7605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7606$as_echo_n "checking for $ac_word... " >&6; }
7607if test "${ac_cv_prog_OTOOL+set}" = set; then :
7608 $as_echo_n "(cached) " >&6
718a6fd8
SE
7609else
7610 if test -n "$OTOOL"; then
7611 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7612else
7613as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7614for as_dir in $PATH
7615do
7616 IFS=$as_save_IFS
7617 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7618 for ac_exec_ext in '' $ac_executable_extensions; do
7619 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
718a6fd8 7620 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
81ecdfbb 7621 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
7622 break 2
7623 fi
7624done
81ecdfbb
RW
7625 done
7626IFS=$as_save_IFS
718a6fd8
SE
7627
7628fi
7629fi
7630OTOOL=$ac_cv_prog_OTOOL
7631if test -n "$OTOOL"; then
81ecdfbb
RW
7632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7633$as_echo "$OTOOL" >&6; }
718a6fd8 7634else
81ecdfbb
RW
7635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7636$as_echo "no" >&6; }
718a6fd8
SE
7637fi
7638
81ecdfbb 7639
718a6fd8
SE
7640fi
7641if test -z "$ac_cv_prog_OTOOL"; then
7642 ac_ct_OTOOL=$OTOOL
7643 # Extract the first word of "otool", so it can be a program name with args.
7644set dummy otool; ac_word=$2
81ecdfbb
RW
7645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7646$as_echo_n "checking for $ac_word... " >&6; }
7647if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7648 $as_echo_n "(cached) " >&6
718a6fd8
SE
7649else
7650 if test -n "$ac_ct_OTOOL"; then
7651 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7652else
7653as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7654for as_dir in $PATH
7655do
7656 IFS=$as_save_IFS
7657 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7658 for ac_exec_ext in '' $ac_executable_extensions; do
7659 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
718a6fd8 7660 ac_cv_prog_ac_ct_OTOOL="otool"
81ecdfbb 7661 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
7662 break 2
7663 fi
7664done
81ecdfbb
RW
7665 done
7666IFS=$as_save_IFS
718a6fd8 7667
718a6fd8
SE
7668fi
7669fi
7670ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7671if test -n "$ac_ct_OTOOL"; then
81ecdfbb
RW
7672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7673$as_echo "$ac_ct_OTOOL" >&6; }
718a6fd8 7674else
81ecdfbb
RW
7675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7676$as_echo "no" >&6; }
718a6fd8
SE
7677fi
7678
81ecdfbb
RW
7679 if test "x$ac_ct_OTOOL" = x; then
7680 OTOOL=":"
7681 else
7682 case $cross_compiling:$ac_tool_warned in
7683yes:)
7684{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7685$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7686ac_tool_warned=yes ;;
7687esac
7688 OTOOL=$ac_ct_OTOOL
7689 fi
718a6fd8
SE
7690else
7691 OTOOL="$ac_cv_prog_OTOOL"
7692fi
7693
7694 if test -n "$ac_tool_prefix"; then
7695 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7696set dummy ${ac_tool_prefix}otool64; ac_word=$2
81ecdfbb
RW
7697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7698$as_echo_n "checking for $ac_word... " >&6; }
7699if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7700 $as_echo_n "(cached) " >&6
718a6fd8
SE
7701else
7702 if test -n "$OTOOL64"; then
7703 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7704else
7705as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7706for as_dir in $PATH
7707do
7708 IFS=$as_save_IFS
7709 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7710 for ac_exec_ext in '' $ac_executable_extensions; do
7711 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
718a6fd8 7712 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
81ecdfbb 7713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
7714 break 2
7715 fi
7716done
81ecdfbb
RW
7717 done
7718IFS=$as_save_IFS
718a6fd8
SE
7719
7720fi
7721fi
7722OTOOL64=$ac_cv_prog_OTOOL64
7723if test -n "$OTOOL64"; then
81ecdfbb
RW
7724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7725$as_echo "$OTOOL64" >&6; }
718a6fd8 7726else
81ecdfbb
RW
7727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7728$as_echo "no" >&6; }
718a6fd8
SE
7729fi
7730
81ecdfbb 7731
718a6fd8
SE
7732fi
7733if test -z "$ac_cv_prog_OTOOL64"; then
7734 ac_ct_OTOOL64=$OTOOL64
7735 # Extract the first word of "otool64", so it can be a program name with args.
7736set dummy otool64; ac_word=$2
81ecdfbb
RW
7737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7738$as_echo_n "checking for $ac_word... " >&6; }
7739if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7740 $as_echo_n "(cached) " >&6
718a6fd8
SE
7741else
7742 if test -n "$ac_ct_OTOOL64"; then
7743 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7744else
7745as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7746for as_dir in $PATH
7747do
7748 IFS=$as_save_IFS
7749 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7750 for ac_exec_ext in '' $ac_executable_extensions; do
7751 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
718a6fd8 7752 ac_cv_prog_ac_ct_OTOOL64="otool64"
81ecdfbb 7753 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
7754 break 2
7755 fi
7756done
81ecdfbb
RW
7757 done
7758IFS=$as_save_IFS
718a6fd8 7759
718a6fd8
SE
7760fi
7761fi
7762ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7763if test -n "$ac_ct_OTOOL64"; then
81ecdfbb
RW
7764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7765$as_echo "$ac_ct_OTOOL64" >&6; }
718a6fd8 7766else
81ecdfbb
RW
7767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7768$as_echo "no" >&6; }
718a6fd8
SE
7769fi
7770
81ecdfbb
RW
7771 if test "x$ac_ct_OTOOL64" = x; then
7772 OTOOL64=":"
7773 else
7774 case $cross_compiling:$ac_tool_warned in
7775yes:)
7776{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7777$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7778ac_tool_warned=yes ;;
7779esac
7780 OTOOL64=$ac_ct_OTOOL64
7781 fi
718a6fd8
SE
7782else
7783 OTOOL64="$ac_cv_prog_OTOOL64"
7784fi
7785
7786
7787
7788
7789
7790
7791
7792
7793
7794
7795
7796
7797
7798
7799
7800
7801
7802
7803
7804
7805
7806
7807
7808
7809
7810
7811
81ecdfbb
RW
7812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7813$as_echo_n "checking for -single_module linker flag... " >&6; }
7814if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7815 $as_echo_n "(cached) " >&6
718a6fd8
SE
7816else
7817 lt_cv_apple_cc_single_mod=no
7818 if test -z "${LT_MULTI_MODULE}"; then
7819 # By default we will add the -single_module flag. You can override
7820 # by either setting the environment variable LT_MULTI_MODULE
7821 # non-empty at configure time, or by adding -multi_module to the
7822 # link flags.
7823 rm -rf libconftest.dylib*
7824 echo "int foo(void){return 1;}" > conftest.c
7825 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7826-dynamiclib -Wl,-single_module conftest.c" >&5
7827 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7828 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7829 _lt_result=$?
7830 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7831 lt_cv_apple_cc_single_mod=yes
7832 else
7833 cat conftest.err >&5
7834 fi
7835 rm -rf libconftest.dylib*
7836 rm -f conftest.*
7837 fi
7838fi
81ecdfbb
RW
7839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7840$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7842$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7843if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7844 $as_echo_n "(cached) " >&6
718a6fd8
SE
7845else
7846 lt_cv_ld_exported_symbols_list=no
7847 save_LDFLAGS=$LDFLAGS
7848 echo "_main" > conftest.sym
7849 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
81ecdfbb 7850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
718a6fd8
SE
7851/* end confdefs.h. */
7852
7853int
7854main ()
7855{
7856
7857 ;
7858 return 0;
7859}
7860_ACEOF
81ecdfbb 7861if ac_fn_c_try_link "$LINENO"; then :
718a6fd8
SE
7862 lt_cv_ld_exported_symbols_list=yes
7863else
81ecdfbb 7864 lt_cv_ld_exported_symbols_list=no
718a6fd8 7865fi
81ecdfbb
RW
7866rm -f core conftest.err conftest.$ac_objext \
7867 conftest$ac_exeext conftest.$ac_ext
718a6fd8
SE
7868 LDFLAGS="$save_LDFLAGS"
7869
7870fi
81ecdfbb
RW
7871{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7872$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
3725885a
RW
7873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7874$as_echo_n "checking for -force_load linker flag... " >&6; }
7875if test "${lt_cv_ld_force_load+set}" = set; then :
7876 $as_echo_n "(cached) " >&6
7877else
7878 lt_cv_ld_force_load=no
7879 cat > conftest.c << _LT_EOF
7880int forced_loaded() { return 2;}
7881_LT_EOF
7882 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7883 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7884 echo "$AR cru libconftest.a conftest.o" >&5
7885 $AR cru libconftest.a conftest.o 2>&5
7886 cat > conftest.c << _LT_EOF
7887int main() { return 0;}
7888_LT_EOF
7889 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7890 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7891 _lt_result=$?
7892 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7893 lt_cv_ld_force_load=yes
7894 else
7895 cat conftest.err >&5
7896 fi
7897 rm -f conftest.err libconftest.a conftest conftest.c
7898 rm -rf conftest.dSYM
7899
7900fi
7901{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7902$as_echo "$lt_cv_ld_force_load" >&6; }
718a6fd8
SE
7903 case $host_os in
7904 rhapsody* | darwin1.[012])
7905 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7906 darwin1.*)
7907 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7908 darwin*) # darwin 5.x on
7909 # if running on 10.5 or later, the deployment target defaults
7910 # to the OS version, if on x86, and 10.4, the deployment
7911 # target defaults to 10.4. Don't you love it?
7912 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7913 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7914 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7915 10.[012]*)
7916 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7917 10.*)
7918 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7919 esac
7920 ;;
7921 esac
7922 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7923 _lt_dar_single_mod='$single_module'
7924 fi
7925 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7926 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7927 else
7928 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7929 fi
3725885a 7930 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
718a6fd8
SE
7931 _lt_dsymutil='~$DSYMUTIL $lib || :'
7932 else
7933 _lt_dsymutil=
7934 fi
7935 ;;
7936 esac
7937
d7040cdb 7938for ac_header in dlfcn.h
81ecdfbb
RW
7939do :
7940 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7941"
7942if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
d7040cdb 7943 cat >>confdefs.h <<_ACEOF
81ecdfbb 7944#define HAVE_DLFCN_H 1
d7040cdb
SE
7945_ACEOF
7946
7947fi
7948
7949done
7950
7951
7952
3725885a
RW
7953
7954
718a6fd8 7955# Set options
ce3c775b 7956enable_dlopen=yes
718a6fd8
SE
7957
7958
7959
718a6fd8
SE
7960
7961 enable_win32_dll=no
7962
7963
7964
81ecdfbb
RW
7965 # Check whether --enable-static was given.
7966if test "${enable_static+set}" = set; then :
7967 enableval=$enable_static; p=${PACKAGE-default}
718a6fd8
SE
7968 case $enableval in
7969 yes) enable_static=yes ;;
7970 no) enable_static=no ;;
7971 *)
7972 enable_static=no
7973 # Look at the argument we got. We use all the common list separators.
7974 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7975 for pkg in $enableval; do
7976 IFS="$lt_save_ifs"
7977 if test "X$pkg" = "X$p"; then
7978 enable_static=yes
7979 fi
7980 done
7981 IFS="$lt_save_ifs"
7982 ;;
7983 esac
7984else
7985 enable_static=yes
81ecdfbb 7986fi
718a6fd8
SE
7987
7988
7989
7990
7991
7992
7993
7994
7995
81ecdfbb
RW
7996
7997# Check whether --with-pic was given.
7998if test "${with_pic+set}" = set; then :
7999 withval=$with_pic; pic_mode="$withval"
718a6fd8
SE
8000else
8001 pic_mode=default
81ecdfbb
RW
8002fi
8003
718a6fd8
SE
8004
8005test -z "$pic_mode" && pic_mode=default
8006
8007
8008
8009
8010
8011
8012
81ecdfbb
RW
8013 # Check whether --enable-fast-install was given.
8014if test "${enable_fast_install+set}" = set; then :
8015 enableval=$enable_fast_install; p=${PACKAGE-default}
718a6fd8
SE
8016 case $enableval in
8017 yes) enable_fast_install=yes ;;
8018 no) enable_fast_install=no ;;
8019 *)
8020 enable_fast_install=no
8021 # Look at the argument we got. We use all the common list separators.
8022 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8023 for pkg in $enableval; do
8024 IFS="$lt_save_ifs"
8025 if test "X$pkg" = "X$p"; then
8026 enable_fast_install=yes
8027 fi
8028 done
8029 IFS="$lt_save_ifs"
8030 ;;
8031 esac
8032else
8033 enable_fast_install=yes
81ecdfbb
RW
8034fi
8035
718a6fd8
SE
8036
8037
8038
8039
8040
8041
8042
8043
8044
8045
d7040cdb
SE
8046# This can be used to rebuild libtool when needed
8047LIBTOOL_DEPS="$ltmain"
8048
8049# Always use our own libtool.
8050LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8051
8052
8053
8054
8055
8056
8057
8058
8059
8060
8061
8062
8063
8064
8065
8066
8067
8068
8069
8070
8071
8072
8073
3725885a 8074
d7040cdb
SE
8075
8076
8077test -z "$LN_S" && LN_S="ln -s"
8078
8079
8080
8081
8082
8083
8084
8085
8086
8087
8088
8089
8090
8091
8092if test -n "${ZSH_VERSION+set}" ; then
8093 setopt NO_GLOB_SUBST
8094fi
8095
81ecdfbb
RW
8096{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8097$as_echo_n "checking for objdir... " >&6; }
8098if test "${lt_cv_objdir+set}" = set; then :
8099 $as_echo_n "(cached) " >&6
d7040cdb
SE
8100else
8101 rm -f .libs 2>/dev/null
8102mkdir .libs 2>/dev/null
8103if test -d .libs; then
8104 lt_cv_objdir=.libs
8105else
8106 # MS-DOS does not allow filenames that begin with a dot.
8107 lt_cv_objdir=_libs
8108fi
8109rmdir .libs 2>/dev/null
8110fi
81ecdfbb
RW
8111{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8112$as_echo "$lt_cv_objdir" >&6; }
d7040cdb
SE
8113objdir=$lt_cv_objdir
8114
8115
8116
8117
8118
8119cat >>confdefs.h <<_ACEOF
8120#define LT_OBJDIR "$lt_cv_objdir/"
8121_ACEOF
8122
8123
8124
8125
d7040cdb
SE
8126case $host_os in
8127aix3*)
8128 # AIX sometimes has problems with the GCC collect2 program. For some
8129 # reason, if we set the COLLECT_NAMES environment variable, the problems
8130 # vanish in a puff of smoke.
8131 if test "X${COLLECT_NAMES+set}" != Xset; then
8132 COLLECT_NAMES=
8133 export COLLECT_NAMES
8134 fi
8135 ;;
8136esac
8137
d7040cdb
SE
8138# Global variables:
8139ofile=libtool
8140can_build_shared=yes
8141
8142# All known linkers require a `.a' archive for static linking (except MSVC,
8143# which needs '.lib').
8144libext=a
8145
8146with_gnu_ld="$lt_cv_prog_gnu_ld"
8147
8148old_CC="$CC"
8149old_CFLAGS="$CFLAGS"
8150
8151# Set sane defaults for various variables
8152test -z "$CC" && CC=cc
8153test -z "$LTCC" && LTCC=$CC
8154test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8155test -z "$LD" && LD=ld
8156test -z "$ac_objext" && ac_objext=o
8157
8158for cc_temp in $compiler""; do
8159 case $cc_temp in
8160 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8161 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8162 \-*) ;;
8163 *) break;;
8164 esac
8165done
3725885a 8166cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
d7040cdb
SE
8167
8168
8169# Only perform the check for file, if the check method requires it
8170test -z "$MAGIC_CMD" && MAGIC_CMD=file
8171case $deplibs_check_method in
8172file_magic*)
8173 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
81ecdfbb
RW
8174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8175$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8176if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8177 $as_echo_n "(cached) " >&6
d7040cdb
SE
8178else
8179 case $MAGIC_CMD in
8180[\\/*] | ?:[\\/]*)
8181 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8182 ;;
8183*)
8184 lt_save_MAGIC_CMD="$MAGIC_CMD"
8185 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8186 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8187 for ac_dir in $ac_dummy; do
8188 IFS="$lt_save_ifs"
8189 test -z "$ac_dir" && ac_dir=.
8190 if test -f $ac_dir/${ac_tool_prefix}file; then
8191 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8192 if test -n "$file_magic_test_file"; then
8193 case $deplibs_check_method in
8194 "file_magic "*)
8195 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8196 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8197 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8198 $EGREP "$file_magic_regex" > /dev/null; then
8199 :
8200 else
8201 cat <<_LT_EOF 1>&2
8202
8203*** Warning: the command libtool uses to detect shared libraries,
8204*** $file_magic_cmd, produces output that libtool cannot recognize.
8205*** The result is that libtool may fail to recognize shared libraries
8206*** as such. This will affect the creation of libtool libraries that
8207*** depend on shared libraries, but programs linked with such libtool
8208*** libraries will work regardless of this problem. Nevertheless, you
8209*** may want to report the problem to your system manager and/or to
8210*** bug-libtool@gnu.org
8211
8212_LT_EOF
8213 fi ;;
8214 esac
8215 fi
8216 break
8217 fi
8218 done
8219 IFS="$lt_save_ifs"
8220 MAGIC_CMD="$lt_save_MAGIC_CMD"
8221 ;;
8222esac
8223fi
8224
8225MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8226if test -n "$MAGIC_CMD"; then
81ecdfbb
RW
8227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8228$as_echo "$MAGIC_CMD" >&6; }
d7040cdb 8229else
81ecdfbb
RW
8230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8231$as_echo "no" >&6; }
d7040cdb
SE
8232fi
8233
8234
8235
8236
8237
8238if test -z "$lt_cv_path_MAGIC_CMD"; then
8239 if test -n "$ac_tool_prefix"; then
81ecdfbb
RW
8240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8241$as_echo_n "checking for file... " >&6; }
8242if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8243 $as_echo_n "(cached) " >&6
d7040cdb
SE
8244else
8245 case $MAGIC_CMD in
8246[\\/*] | ?:[\\/]*)
8247 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8248 ;;
8249*)
8250 lt_save_MAGIC_CMD="$MAGIC_CMD"
8251 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8252 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8253 for ac_dir in $ac_dummy; do
8254 IFS="$lt_save_ifs"
8255 test -z "$ac_dir" && ac_dir=.
8256 if test -f $ac_dir/file; then
8257 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8258 if test -n "$file_magic_test_file"; then
8259 case $deplibs_check_method in
8260 "file_magic "*)
8261 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8262 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8263 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8264 $EGREP "$file_magic_regex" > /dev/null; then
8265 :
8266 else
8267 cat <<_LT_EOF 1>&2
8268
8269*** Warning: the command libtool uses to detect shared libraries,
8270*** $file_magic_cmd, produces output that libtool cannot recognize.
8271*** The result is that libtool may fail to recognize shared libraries
8272*** as such. This will affect the creation of libtool libraries that
8273*** depend on shared libraries, but programs linked with such libtool
8274*** libraries will work regardless of this problem. Nevertheless, you
8275*** may want to report the problem to your system manager and/or to
8276*** bug-libtool@gnu.org
8277
8278_LT_EOF
8279 fi ;;
8280 esac
8281 fi
8282 break
8283 fi
8284 done
8285 IFS="$lt_save_ifs"
8286 MAGIC_CMD="$lt_save_MAGIC_CMD"
8287 ;;
8288esac
8289fi
8290
8291MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8292if test -n "$MAGIC_CMD"; then
81ecdfbb
RW
8293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8294$as_echo "$MAGIC_CMD" >&6; }
d7040cdb 8295else
81ecdfbb
RW
8296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8297$as_echo "no" >&6; }
d7040cdb
SE
8298fi
8299
8300
8301 else
8302 MAGIC_CMD=:
8303 fi
8304fi
8305
8306 fi
8307 ;;
8308esac
8309
8310# Use C for the default configuration in the libtool script
8311
8312lt_save_CC="$CC"
8313ac_ext=c
8314ac_cpp='$CPP $CPPFLAGS'
8315ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8316ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8317ac_compiler_gnu=$ac_cv_c_compiler_gnu
8318
8319
8320# Source file extension for C test sources.
8321ac_ext=c
8322
8323# Object file extension for compiled C test sources.
8324objext=o
8325objext=$objext
8326
8327# Code to be used in simple compile tests
8328lt_simple_compile_test_code="int some_variable = 0;"
8329
8330# Code to be used in simple link tests
8331lt_simple_link_test_code='int main(){return(0);}'
8332
8333
8334
8335
8336
8337
8338
8339# If no C compiler was specified, use CC.
8340LTCC=${LTCC-"$CC"}
8341
8342# If no C compiler flags were specified, use CFLAGS.
8343LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8344
8345# Allow CC to be a program name with arguments.
8346compiler=$CC
8347
8348# Save the default compiler, since it gets overwritten when the other
8349# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8350compiler_DEFAULT=$CC
8351
8352# save warnings/boilerplate of simple test code
8353ac_outfile=conftest.$ac_objext
8354echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8355eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8356_lt_compiler_boilerplate=`cat conftest.err`
8357$RM conftest*
8358
8359ac_outfile=conftest.$ac_objext
8360echo "$lt_simple_link_test_code" >conftest.$ac_ext
8361eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8362_lt_linker_boilerplate=`cat conftest.err`
718a6fd8 8363$RM -r conftest*
d7040cdb
SE
8364
8365
8366## CAVEAT EMPTOR:
8367## There is no encapsulation within the following macros, do not change
8368## the running order or otherwise move them around unless you know exactly
8369## what you are doing...
8370if test -n "$compiler"; then
8371
8372lt_prog_compiler_no_builtin_flag=
8373
8374if test "$GCC" = yes; then
3725885a
RW
8375 case $cc_basename in
8376 nvcc*)
8377 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8378 *)
8379 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8380 esac
d7040cdb 8381
81ecdfbb
RW
8382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8383$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8384if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8385 $as_echo_n "(cached) " >&6
d7040cdb
SE
8386else
8387 lt_cv_prog_compiler_rtti_exceptions=no
8388 ac_outfile=conftest.$ac_objext
8389 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8390 lt_compiler_flag="-fno-rtti -fno-exceptions"
8391 # Insert the option either (1) after the last *FLAGS variable, or
8392 # (2) before a word containing "conftest.", or (3) at the end.
8393 # Note that $ac_compile itself does not contain backslashes and begins
8394 # with a dollar sign (not a hyphen), so the echo should work correctly.
8395 # The option is referenced via a variable to avoid confusing sed.
8396 lt_compile=`echo "$ac_compile" | $SED \
8397 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8398 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8399 -e 's:$: $lt_compiler_flag:'`
3725885a 8400 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
d7040cdb
SE
8401 (eval "$lt_compile" 2>conftest.err)
8402 ac_status=$?
8403 cat conftest.err >&5
3725885a 8404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d7040cdb
SE
8405 if (exit $ac_status) && test -s "$ac_outfile"; then
8406 # The compiler can only warn and ignore the option if not recognized
8407 # So say no if there are warnings other than the usual output.
3725885a 8408 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
d7040cdb
SE
8409 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8410 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8411 lt_cv_prog_compiler_rtti_exceptions=yes
8412 fi
8413 fi
8414 $RM conftest*
8415
8416fi
81ecdfbb
RW
8417{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8418$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
d7040cdb
SE
8419
8420if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8421 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8422else
8423 :
8424fi
8425
8426fi
8427
8428
8429
8430
8431
8432
8433 lt_prog_compiler_wl=
8434lt_prog_compiler_pic=
8435lt_prog_compiler_static=
8436
81ecdfbb
RW
8437{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8438$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
d7040cdb
SE
8439
8440 if test "$GCC" = yes; then
8441 lt_prog_compiler_wl='-Wl,'
8442 lt_prog_compiler_static='-static'
8443
8444 case $host_os in
8445 aix*)
8446 # All AIX code is PIC.
8447 if test "$host_cpu" = ia64; then
8448 # AIX 5 now supports IA64 processor
8449 lt_prog_compiler_static='-Bstatic'
8450 fi
8451 ;;
8452
8453 amigaos*)
718a6fd8
SE
8454 case $host_cpu in
8455 powerpc)
8456 # see comment about AmigaOS4 .so support
8457 lt_prog_compiler_pic='-fPIC'
8458 ;;
8459 m68k)
8460 # FIXME: we need at least 68020 code to build shared libraries, but
8461 # adding the `-m68020' flag to GCC prevents building anything better,
8462 # like `-m68040'.
8463 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8464 ;;
8465 esac
d7040cdb
SE
8466 ;;
8467
8468 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8469 # PIC is the default for these OSes.
8470 ;;
8471
718a6fd8 8472 mingw* | cygwin* | pw32* | os2* | cegcc*)
d7040cdb
SE
8473 # This hack is so that the source file can tell whether it is being
8474 # built for inclusion in a dll (and should export symbols for example).
8475 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8476 # (--disable-auto-import) libraries
8477 lt_prog_compiler_pic='-DDLL_EXPORT'
8478 ;;
8479
8480 darwin* | rhapsody*)
8481 # PIC is the default on this platform
8482 # Common symbols not allowed in MH_DYLIB files
8483 lt_prog_compiler_pic='-fno-common'
8484 ;;
8485
3725885a
RW
8486 haiku*)
8487 # PIC is the default for Haiku.
8488 # The "-static" flag exists, but is broken.
8489 lt_prog_compiler_static=
8490 ;;
8491
d7040cdb 8492 hpux*)
718a6fd8
SE
8493 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8494 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8495 # sets the default TLS model and affects inlining.
d7040cdb 8496 case $host_cpu in
718a6fd8 8497 hppa*64*)
d7040cdb
SE
8498 # +Z the default
8499 ;;
8500 *)
8501 lt_prog_compiler_pic='-fPIC'
8502 ;;
8503 esac
8504 ;;
8505
8506 interix[3-9]*)
8507 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8508 # Instead, we relocate shared libraries at runtime.
8509 ;;
8510
8511 msdosdjgpp*)
8512 # Just because we use GCC doesn't mean we suddenly get shared libraries
8513 # on systems that don't support them.
8514 lt_prog_compiler_can_build_shared=no
8515 enable_shared=no
8516 ;;
8517
8518 *nto* | *qnx*)
8519 # QNX uses GNU C++, but need to define -shared option too, otherwise
8520 # it will coredump.
8521 lt_prog_compiler_pic='-fPIC -shared'
8522 ;;
8523
8524 sysv4*MP*)
8525 if test -d /usr/nec; then
8526 lt_prog_compiler_pic=-Kconform_pic
8527 fi
8528 ;;
8529
8530 *)
8531 lt_prog_compiler_pic='-fPIC'
8532 ;;
8533 esac
3725885a
RW
8534
8535 case $cc_basename in
8536 nvcc*) # Cuda Compiler Driver 2.2
8537 lt_prog_compiler_wl='-Xlinker '
8538 lt_prog_compiler_pic='-Xcompiler -fPIC'
8539 ;;
8540 esac
d7040cdb
SE
8541 else
8542 # PORTME Check for flag to pass linker flags through the system compiler.
8543 case $host_os in
8544 aix*)
8545 lt_prog_compiler_wl='-Wl,'
8546 if test "$host_cpu" = ia64; then
8547 # AIX 5 now supports IA64 processor
8548 lt_prog_compiler_static='-Bstatic'
8549 else
8550 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8551 fi
8552 ;;
d7040cdb 8553
718a6fd8 8554 mingw* | cygwin* | pw32* | os2* | cegcc*)
d7040cdb
SE
8555 # This hack is so that the source file can tell whether it is being
8556 # built for inclusion in a dll (and should export symbols for example).
8557 lt_prog_compiler_pic='-DDLL_EXPORT'
8558 ;;
8559
8560 hpux9* | hpux10* | hpux11*)
8561 lt_prog_compiler_wl='-Wl,'
8562 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8563 # not for PA HP-UX.
8564 case $host_cpu in
8565 hppa*64*|ia64*)
8566 # +Z the default
8567 ;;
8568 *)
8569 lt_prog_compiler_pic='+Z'
8570 ;;
8571 esac
8572 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8573 lt_prog_compiler_static='${wl}-a ${wl}archive'
8574 ;;
8575
8576 irix5* | irix6* | nonstopux*)
8577 lt_prog_compiler_wl='-Wl,'
8578 # PIC (with -KPIC) is the default.
8579 lt_prog_compiler_static='-non_shared'
8580 ;;
8581
58e24671 8582 linux* | k*bsd*-gnu | kopensolaris*-gnu)
d7040cdb 8583 case $cc_basename in
718a6fd8
SE
8584 # old Intel for x86_64 which still supported -KPIC.
8585 ecc*)
d7040cdb
SE
8586 lt_prog_compiler_wl='-Wl,'
8587 lt_prog_compiler_pic='-KPIC'
8588 lt_prog_compiler_static='-static'
8589 ;;
718a6fd8
SE
8590 # icc used to be incompatible with GCC.
8591 # ICC 10 doesn't accept -KPIC any more.
8592 icc* | ifort*)
8593 lt_prog_compiler_wl='-Wl,'
8594 lt_prog_compiler_pic='-fPIC'
8595 lt_prog_compiler_static='-static'
8596 ;;
8597 # Lahey Fortran 8.1.
8598 lf95*)
8599 lt_prog_compiler_wl='-Wl,'
8600 lt_prog_compiler_pic='--shared'
8601 lt_prog_compiler_static='--static'
8602 ;;
3725885a 8603 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
d7040cdb
SE
8604 # Portland Group compilers (*not* the Pentium gcc compiler,
8605 # which looks to be a dead project)
8606 lt_prog_compiler_wl='-Wl,'
8607 lt_prog_compiler_pic='-fpic'
8608 lt_prog_compiler_static='-Bstatic'
8609 ;;
8610 ccc*)
8611 lt_prog_compiler_wl='-Wl,'
8612 # All Alpha code is PIC.
8613 lt_prog_compiler_static='-non_shared'
8614 ;;
3725885a
RW
8615 xl* | bgxl* | bgf* | mpixl*)
8616 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
718a6fd8
SE
8617 lt_prog_compiler_wl='-Wl,'
8618 lt_prog_compiler_pic='-qpic'
8619 lt_prog_compiler_static='-qstaticlink'
8620 ;;
d7040cdb
SE
8621 *)
8622 case `$CC -V 2>&1 | sed 5q` in
3725885a
RW
8623 *Sun\ F* | *Sun*Fortran*)
8624 # Sun Fortran 8.3 passes all unrecognized flags to the linker
d7040cdb
SE
8625 lt_prog_compiler_pic='-KPIC'
8626 lt_prog_compiler_static='-Bstatic'
3725885a 8627 lt_prog_compiler_wl=''
d7040cdb 8628 ;;
3725885a
RW
8629 *Sun\ C*)
8630 # Sun C 5.9
d7040cdb
SE
8631 lt_prog_compiler_pic='-KPIC'
8632 lt_prog_compiler_static='-Bstatic'
3725885a 8633 lt_prog_compiler_wl='-Wl,'
d7040cdb
SE
8634 ;;
8635 esac
8636 ;;
8637 esac
8638 ;;
8639
8640 newsos6)
8641 lt_prog_compiler_pic='-KPIC'
8642 lt_prog_compiler_static='-Bstatic'
8643 ;;
8644
8645 *nto* | *qnx*)
8646 # QNX uses GNU C++, but need to define -shared option too, otherwise
8647 # it will coredump.
8648 lt_prog_compiler_pic='-fPIC -shared'
8649 ;;
8650
8651 osf3* | osf4* | osf5*)
8652 lt_prog_compiler_wl='-Wl,'
8653 # All OSF/1 code is PIC.
8654 lt_prog_compiler_static='-non_shared'
8655 ;;
8656
8657 rdos*)
8658 lt_prog_compiler_static='-non_shared'
8659 ;;
8660
8661 solaris*)
8662 lt_prog_compiler_pic='-KPIC'
8663 lt_prog_compiler_static='-Bstatic'
8664 case $cc_basename in
8665 f77* | f90* | f95*)
8666 lt_prog_compiler_wl='-Qoption ld ';;
8667 *)
8668 lt_prog_compiler_wl='-Wl,';;
8669 esac
8670 ;;
8671
8672 sunos4*)
8673 lt_prog_compiler_wl='-Qoption ld '
8674 lt_prog_compiler_pic='-PIC'
8675 lt_prog_compiler_static='-Bstatic'
8676 ;;
8677
8678 sysv4 | sysv4.2uw2* | sysv4.3*)
8679 lt_prog_compiler_wl='-Wl,'
8680 lt_prog_compiler_pic='-KPIC'
8681 lt_prog_compiler_static='-Bstatic'
8682 ;;
8683
8684 sysv4*MP*)
8685 if test -d /usr/nec ;then
8686 lt_prog_compiler_pic='-Kconform_pic'
8687 lt_prog_compiler_static='-Bstatic'
8688 fi
8689 ;;
8690
8691 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8692 lt_prog_compiler_wl='-Wl,'
8693 lt_prog_compiler_pic='-KPIC'
8694 lt_prog_compiler_static='-Bstatic'
8695 ;;
8696
8697 unicos*)
8698 lt_prog_compiler_wl='-Wl,'
8699 lt_prog_compiler_can_build_shared=no
8700 ;;
8701
8702 uts4*)
8703 lt_prog_compiler_pic='-pic'
8704 lt_prog_compiler_static='-Bstatic'
8705 ;;
8706
8707 *)
8708 lt_prog_compiler_can_build_shared=no
8709 ;;
8710 esac
8711 fi
8712
8713case $host_os in
8714 # For platforms which do not support PIC, -DPIC is meaningless:
8715 *djgpp*)
8716 lt_prog_compiler_pic=
8717 ;;
8718 *)
8719 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8720 ;;
8721esac
81ecdfbb
RW
8722{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8723$as_echo "$lt_prog_compiler_pic" >&6; }
d7040cdb
SE
8724
8725
8726
8727
8728
8729
8730#
8731# Check to make sure the PIC flag actually works.
8732#
8733if test -n "$lt_prog_compiler_pic"; then
81ecdfbb
RW
8734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8735$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8736if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8737 $as_echo_n "(cached) " >&6
d7040cdb 8738else
718a6fd8 8739 lt_cv_prog_compiler_pic_works=no
d7040cdb
SE
8740 ac_outfile=conftest.$ac_objext
8741 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8742 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8743 # Insert the option either (1) after the last *FLAGS variable, or
8744 # (2) before a word containing "conftest.", or (3) at the end.
8745 # Note that $ac_compile itself does not contain backslashes and begins
8746 # with a dollar sign (not a hyphen), so the echo should work correctly.
8747 # The option is referenced via a variable to avoid confusing sed.
8748 lt_compile=`echo "$ac_compile" | $SED \
8749 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8750 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8751 -e 's:$: $lt_compiler_flag:'`
3725885a 8752 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
d7040cdb
SE
8753 (eval "$lt_compile" 2>conftest.err)
8754 ac_status=$?
8755 cat conftest.err >&5
3725885a 8756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d7040cdb
SE
8757 if (exit $ac_status) && test -s "$ac_outfile"; then
8758 # The compiler can only warn and ignore the option if not recognized
8759 # So say no if there are warnings other than the usual output.
3725885a 8760 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
d7040cdb
SE
8761 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8762 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
718a6fd8 8763 lt_cv_prog_compiler_pic_works=yes
d7040cdb
SE
8764 fi
8765 fi
8766 $RM conftest*
8767
8768fi
81ecdfbb
RW
8769{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8770$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
d7040cdb 8771
718a6fd8 8772if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
d7040cdb
SE
8773 case $lt_prog_compiler_pic in
8774 "" | " "*) ;;
8775 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8776 esac
8777else
8778 lt_prog_compiler_pic=
8779 lt_prog_compiler_can_build_shared=no
8780fi
8781
8782fi
8783
8784
8785
8786
8787
8788
8789#
8790# Check to make sure the static flag actually works.
8791#
8792wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
81ecdfbb
RW
8793{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8794$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8795if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8796 $as_echo_n "(cached) " >&6
d7040cdb 8797else
718a6fd8 8798 lt_cv_prog_compiler_static_works=no
d7040cdb
SE
8799 save_LDFLAGS="$LDFLAGS"
8800 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8801 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8802 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8803 # The linker can only warn and ignore the option if not recognized
8804 # So say no if there are warnings
8805 if test -s conftest.err; then
8806 # Append any errors to the config.log.
8807 cat conftest.err 1>&5
3725885a 8808 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
d7040cdb
SE
8809 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8810 if diff conftest.exp conftest.er2 >/dev/null; then
718a6fd8 8811 lt_cv_prog_compiler_static_works=yes
d7040cdb
SE
8812 fi
8813 else
718a6fd8 8814 lt_cv_prog_compiler_static_works=yes
d7040cdb
SE
8815 fi
8816 fi
718a6fd8 8817 $RM -r conftest*
d7040cdb
SE
8818 LDFLAGS="$save_LDFLAGS"
8819
8820fi
81ecdfbb
RW
8821{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8822$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
d7040cdb 8823
718a6fd8 8824if test x"$lt_cv_prog_compiler_static_works" = xyes; then
d7040cdb
SE
8825 :
8826else
8827 lt_prog_compiler_static=
8828fi
8829
8830
8831
8832
8833
8834
8835
81ecdfbb
RW
8836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8837$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8838if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8839 $as_echo_n "(cached) " >&6
d7040cdb
SE
8840else
8841 lt_cv_prog_compiler_c_o=no
8842 $RM -r conftest 2>/dev/null
8843 mkdir conftest
8844 cd conftest
8845 mkdir out
8846 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8847
8848 lt_compiler_flag="-o out/conftest2.$ac_objext"
8849 # Insert the option either (1) after the last *FLAGS variable, or
8850 # (2) before a word containing "conftest.", or (3) at the end.
8851 # Note that $ac_compile itself does not contain backslashes and begins
8852 # with a dollar sign (not a hyphen), so the echo should work correctly.
8853 lt_compile=`echo "$ac_compile" | $SED \
8854 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8855 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8856 -e 's:$: $lt_compiler_flag:'`
3725885a 8857 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
d7040cdb
SE
8858 (eval "$lt_compile" 2>out/conftest.err)
8859 ac_status=$?
8860 cat out/conftest.err >&5
3725885a 8861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d7040cdb
SE
8862 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8863 then
8864 # The compiler can only warn and ignore the option if not recognized
8865 # So say no if there are warnings
3725885a 8866 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
d7040cdb
SE
8867 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8868 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8869 lt_cv_prog_compiler_c_o=yes
8870 fi
8871 fi
8872 chmod u+w . 2>&5
8873 $RM conftest*
8874 # SGI C++ compiler will create directory out/ii_files/ for
8875 # template instantiation
8876 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8877 $RM out/* && rmdir out
8878 cd ..
8879 $RM -r conftest
8880 $RM conftest*
8881
8882fi
81ecdfbb
RW
8883{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8884$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
d7040cdb
SE
8885
8886
8887
8888
8889
8890
81ecdfbb
RW
8891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8892$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8893if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8894 $as_echo_n "(cached) " >&6
d7040cdb
SE
8895else
8896 lt_cv_prog_compiler_c_o=no
8897 $RM -r conftest 2>/dev/null
8898 mkdir conftest
8899 cd conftest
8900 mkdir out
8901 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8902
8903 lt_compiler_flag="-o out/conftest2.$ac_objext"
8904 # Insert the option either (1) after the last *FLAGS variable, or
8905 # (2) before a word containing "conftest.", or (3) at the end.
8906 # Note that $ac_compile itself does not contain backslashes and begins
8907 # with a dollar sign (not a hyphen), so the echo should work correctly.
8908 lt_compile=`echo "$ac_compile" | $SED \
8909 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8910 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8911 -e 's:$: $lt_compiler_flag:'`
3725885a 8912 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
d7040cdb
SE
8913 (eval "$lt_compile" 2>out/conftest.err)
8914 ac_status=$?
8915 cat out/conftest.err >&5
3725885a 8916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d7040cdb
SE
8917 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8918 then
8919 # The compiler can only warn and ignore the option if not recognized
8920 # So say no if there are warnings
3725885a 8921 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
d7040cdb
SE
8922 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8923 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8924 lt_cv_prog_compiler_c_o=yes
8925 fi
8926 fi
8927 chmod u+w . 2>&5
8928 $RM conftest*
8929 # SGI C++ compiler will create directory out/ii_files/ for
8930 # template instantiation
8931 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8932 $RM out/* && rmdir out
8933 cd ..
8934 $RM -r conftest
8935 $RM conftest*
8936
8937fi
81ecdfbb
RW
8938{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8939$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
d7040cdb
SE
8940
8941
8942
8943
8944hard_links="nottested"
8945if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8946 # do not overwrite the value of need_locks provided by the user
81ecdfbb
RW
8947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8948$as_echo_n "checking if we can lock with hard links... " >&6; }
d7040cdb
SE
8949 hard_links=yes
8950 $RM conftest*
8951 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8952 touch conftest.a
8953 ln conftest.a conftest.b 2>&5 || hard_links=no
8954 ln conftest.a conftest.b 2>/dev/null && hard_links=no
81ecdfbb
RW
8955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8956$as_echo "$hard_links" >&6; }
d7040cdb 8957 if test "$hard_links" = no; then
81ecdfbb
RW
8958 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8959$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
d7040cdb
SE
8960 need_locks=warn
8961 fi
8962else
8963 need_locks=no
8964fi
8965
8966
8967
8968
8969
8970
81ecdfbb
RW
8971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8972$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
d7040cdb
SE
8973
8974 runpath_var=
8975 allow_undefined_flag=
8976 always_export_symbols=no
8977 archive_cmds=
8978 archive_expsym_cmds=
8979 compiler_needs_object=no
8980 enable_shared_with_static_runtimes=no
8981 export_dynamic_flag_spec=
8982 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8983 hardcode_automatic=no
8984 hardcode_direct=no
8985 hardcode_direct_absolute=no
8986 hardcode_libdir_flag_spec=
8987 hardcode_libdir_flag_spec_ld=
8988 hardcode_libdir_separator=
8989 hardcode_minus_L=no
8990 hardcode_shlibpath_var=unsupported
8991 inherit_rpath=no
8992 link_all_deplibs=unknown
8993 module_cmds=
8994 module_expsym_cmds=
8995 old_archive_from_new_cmds=
8996 old_archive_from_expsyms_cmds=
8997 thread_safe_flag_spec=
8998 whole_archive_flag_spec=
8999 # include_expsyms should be a list of space-separated symbols to be *always*
9000 # included in the symbol list
9001 include_expsyms=
9002 # exclude_expsyms can be an extended regexp of symbols to exclude
9003 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9004 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9005 # as well as any symbol that contains `d'.
718a6fd8 9006 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
d7040cdb
SE
9007 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9008 # platforms (ab)use it in PIC code, but their linkers get confused if
9009 # the symbol is explicitly referenced. Since portable code cannot
9010 # rely on this symbol name, it's probably fine to never include it in
9011 # preloaded symbol tables.
718a6fd8 9012 # Exclude shared library initialization/finalization symbols.
d7040cdb
SE
9013 extract_expsyms_cmds=
9014
9015 case $host_os in
718a6fd8 9016 cygwin* | mingw* | pw32* | cegcc*)
d7040cdb
SE
9017 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9018 # When not using gcc, we currently assume that we are using
9019 # Microsoft Visual C++.
9020 if test "$GCC" != yes; then
9021 with_gnu_ld=no
9022 fi
9023 ;;
9024 interix*)
9025 # we just hope/assume this is gcc and not c89 (= MSVC++)
9026 with_gnu_ld=yes
9027 ;;
9028 openbsd*)
9029 with_gnu_ld=no
9030 ;;
9031 esac
9032
9033 ld_shlibs=yes
3725885a
RW
9034
9035 # On some targets, GNU ld is compatible enough with the native linker
9036 # that we're better off using the native interface for both.
9037 lt_use_gnu_ld_interface=no
d7040cdb 9038 if test "$with_gnu_ld" = yes; then
3725885a
RW
9039 case $host_os in
9040 aix*)
9041 # The AIX port of GNU ld has always aspired to compatibility
9042 # with the native linker. However, as the warning in the GNU ld
9043 # block says, versions before 2.19.5* couldn't really create working
9044 # shared libraries, regardless of the interface used.
9045 case `$LD -v 2>&1` in
9046 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9047 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9048 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9049 *)
9050 lt_use_gnu_ld_interface=yes
9051 ;;
9052 esac
9053 ;;
9054 *)
9055 lt_use_gnu_ld_interface=yes
9056 ;;
9057 esac
9058 fi
9059
9060 if test "$lt_use_gnu_ld_interface" = yes; then
d7040cdb
SE
9061 # If archive_cmds runs LD, not CC, wlarc should be empty
9062 wlarc='${wl}'
9063
9064 # Set some defaults for GNU ld with shared library support. These
9065 # are reset later if shared libraries are not supported. Putting them
9066 # here allows them to be overridden if necessary.
9067 runpath_var=LD_RUN_PATH
9068 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9069 export_dynamic_flag_spec='${wl}--export-dynamic'
9070 # ancient GNU ld didn't support --whole-archive et. al.
9071 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9072 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9073 else
9074 whole_archive_flag_spec=
9075 fi
9076 supports_anon_versioning=no
9077 case `$LD -v 2>&1` in
3725885a 9078 *GNU\ gold*) supports_anon_versioning=yes ;;
d7040cdb
SE
9079 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9080 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9081 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9082 *\ 2.11.*) ;; # other 2.11 versions
9083 *) supports_anon_versioning=yes ;;
9084 esac
9085
9086 # See if GNU ld supports shared libraries.
9087 case $host_os in
e81819a5 9088 aix[3-9]*)
d7040cdb
SE
9089 # On AIX/PPC, the GNU linker is very broken
9090 if test "$host_cpu" != ia64; then
9091 ld_shlibs=no
9092 cat <<_LT_EOF 1>&2
9093
3725885a 9094*** Warning: the GNU linker, at least up to release 2.19, is reported
d7040cdb
SE
9095*** to be unable to reliably create shared libraries on AIX.
9096*** Therefore, libtool is disabling shared libraries support. If you
3725885a
RW
9097*** really care for shared libraries, you may want to install binutils
9098*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9099*** You will then need to restart the configuration process.
d7040cdb
SE
9100
9101_LT_EOF
9102 fi
9103 ;;
9104
9105 amigaos*)
718a6fd8
SE
9106 case $host_cpu in
9107 powerpc)
9108 # see comment about AmigaOS4 .so support
9109 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9110 archive_expsym_cmds=''
9111 ;;
9112 m68k)
9113 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)'
9114 hardcode_libdir_flag_spec='-L$libdir'
9115 hardcode_minus_L=yes
9116 ;;
9117 esac
d7040cdb
SE
9118 ;;
9119
9120 beos*)
9121 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9122 allow_undefined_flag=unsupported
9123 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9124 # support --undefined. This deserves some investigation. FIXME
9125 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9126 else
9127 ld_shlibs=no
9128 fi
9129 ;;
9130
718a6fd8 9131 cygwin* | mingw* | pw32* | cegcc*)
d7040cdb
SE
9132 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9133 # as there is no search path for DLLs.
9134 hardcode_libdir_flag_spec='-L$libdir'
3725885a 9135 export_dynamic_flag_spec='${wl}--export-all-symbols'
d7040cdb
SE
9136 allow_undefined_flag=unsupported
9137 always_export_symbols=no
9138 enable_shared_with_static_runtimes=yes
9139 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9140
9141 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9142 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9143 # If the export-symbols file already is a .def file (1st line
9144 # is EXPORTS), use it as is; otherwise, prepend...
9145 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9146 cp $export_symbols $output_objdir/$soname.def;
9147 else
9148 echo EXPORTS > $output_objdir/$soname.def;
9149 cat $export_symbols >> $output_objdir/$soname.def;
9150 fi~
9151 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9152 else
9153 ld_shlibs=no
9154 fi
9155 ;;
9156
3725885a
RW
9157 haiku*)
9158 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9159 link_all_deplibs=yes
9160 ;;
9161
d7040cdb
SE
9162 interix[3-9]*)
9163 hardcode_direct=no
9164 hardcode_shlibpath_var=no
9165 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9166 export_dynamic_flag_spec='${wl}-E'
9167 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9168 # Instead, shared libraries are loaded at an image base (0x10000000 by
9169 # default) and relocated if they conflict, which is a slow very memory
9170 # consuming and fragmenting process. To avoid this, we pick a random,
9171 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9172 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9173 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9174 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'
9175 ;;
9176
58e24671 9177 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
d7040cdb
SE
9178 tmp_diet=no
9179 if test "$host_os" = linux-dietlibc; then
9180 case $cc_basename in
9181 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9182 esac
9183 fi
9184 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9185 && test "$tmp_diet" = no
9186 then
9187 tmp_addflag=
718a6fd8 9188 tmp_sharedflag='-shared'
d7040cdb
SE
9189 case $cc_basename,$host_cpu in
9190 pgcc*) # Portland Group C compiler
3725885a 9191 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
9192 tmp_addflag=' $pic_flag'
9193 ;;
3725885a
RW
9194 pgf77* | pgf90* | pgf95* | pgfortran*)
9195 # Portland Group f77 and f90 compilers
9196 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
9197 tmp_addflag=' $pic_flag -Mnomain' ;;
9198 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9199 tmp_addflag=' -i_dynamic' ;;
9200 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9201 tmp_addflag=' -i_dynamic -nofor_main' ;;
9202 ifc* | ifort*) # Intel Fortran compiler
9203 tmp_addflag=' -nofor_main' ;;
718a6fd8
SE
9204 lf95*) # Lahey Fortran 8.1
9205 whole_archive_flag_spec=
9206 tmp_sharedflag='--shared' ;;
3725885a 9207 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
718a6fd8
SE
9208 tmp_sharedflag='-qmkshrobj'
9209 tmp_addflag= ;;
3725885a
RW
9210 nvcc*) # Cuda Compiler Driver 2.2
9211 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'
9212 compiler_needs_object=yes
9213 ;;
d7040cdb
SE
9214 esac
9215 case `$CC -V 2>&1 | sed 5q` in
9216 *Sun\ C*) # Sun C 5.9
3725885a 9217 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
9218 compiler_needs_object=yes
9219 tmp_sharedflag='-G' ;;
9220 *Sun\ F*) # Sun Fortran 8.3
9221 tmp_sharedflag='-G' ;;
d7040cdb
SE
9222 esac
9223 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9224
9225 if test "x$supports_anon_versioning" = xyes; then
9226 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9227 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9228 echo "local: *; };" >> $output_objdir/$libname.ver~
9229 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9230 fi
718a6fd8
SE
9231
9232 case $cc_basename in
3725885a 9233 xlf* | bgf* | bgxlf* | mpixlf*)
718a6fd8
SE
9234 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9235 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9236 hardcode_libdir_flag_spec=
9237 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9238 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9239 if test "x$supports_anon_versioning" = xyes; then
9240 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9241 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9242 echo "local: *; };" >> $output_objdir/$libname.ver~
9243 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9244 fi
9245 ;;
9246 esac
d7040cdb
SE
9247 else
9248 ld_shlibs=no
9249 fi
9250 ;;
9251
9252 netbsd*)
9253 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9254 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9255 wlarc=
9256 else
9257 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9258 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9259 fi
9260 ;;
9261
9262 solaris*)
9263 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9264 ld_shlibs=no
9265 cat <<_LT_EOF 1>&2
9266
9267*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9268*** create shared libraries on Solaris systems. Therefore, libtool
9269*** is disabling shared libraries support. We urge you to upgrade GNU
9270*** binutils to release 2.9.1 or newer. Another option is to modify
9271*** your PATH or compiler configuration so that the native linker is
9272*** used, and then restart.
9273
9274_LT_EOF
9275 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9276 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9277 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9278 else
9279 ld_shlibs=no
9280 fi
9281 ;;
9282
9283 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9284 case `$LD -v 2>&1` in
9285 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9286 ld_shlibs=no
9287 cat <<_LT_EOF 1>&2
9288
9289*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9290*** reliably create shared libraries on SCO systems. Therefore, libtool
9291*** is disabling shared libraries support. We urge you to upgrade GNU
9292*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9293*** your PATH or compiler configuration so that the native linker is
9294*** used, and then restart.
9295
9296_LT_EOF
9297 ;;
9298 *)
9299 # For security reasons, it is highly recommended that you always
9300 # use absolute paths for naming shared libraries, and exclude the
9301 # DT_RUNPATH tag from executables and libraries. But doing so
9302 # requires that you compile everything twice, which is a pain.
9303 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9304 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9305 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9306 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9307 else
9308 ld_shlibs=no
9309 fi
9310 ;;
9311 esac
9312 ;;
9313
9314 sunos4*)
9315 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9316 wlarc=
9317 hardcode_direct=yes
9318 hardcode_shlibpath_var=no
9319 ;;
9320
9321 *)
9322 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9323 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9324 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9325 else
9326 ld_shlibs=no
9327 fi
9328 ;;
9329 esac
9330
9331 if test "$ld_shlibs" = no; then
9332 runpath_var=
9333 hardcode_libdir_flag_spec=
9334 export_dynamic_flag_spec=
9335 whole_archive_flag_spec=
9336 fi
9337 else
9338 # PORTME fill in a description of your system's linker (not GNU ld)
9339 case $host_os in
9340 aix3*)
9341 allow_undefined_flag=unsupported
9342 always_export_symbols=yes
9343 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'
9344 # Note: this linker hardcodes the directories in LIBPATH if there
9345 # are no directories specified by -L.
9346 hardcode_minus_L=yes
9347 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9348 # Neither direct hardcoding nor static linking is supported with a
9349 # broken collect2.
9350 hardcode_direct=unsupported
9351 fi
9352 ;;
9353
e81819a5 9354 aix[4-9]*)
d7040cdb
SE
9355 if test "$host_cpu" = ia64; then
9356 # On IA64, the linker does run time linking by default, so we don't
9357 # have to do anything special.
9358 aix_use_runtimelinking=no
9359 exp_sym_flag='-Bexport'
9360 no_entry_flag=""
9361 else
9362 # If we're using GNU nm, then we don't want the "-C" option.
9363 # -C means demangle to AIX nm, but means don't demangle with GNU nm
3725885a
RW
9364 # Also, AIX nm treats weak defined symbols like other global
9365 # defined symbols, whereas GNU nm marks them as "W".
d7040cdb 9366 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
3725885a 9367 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
9368 else
9369 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'
9370 fi
9371 aix_use_runtimelinking=no
9372
9373 # Test if we are trying to use run time linking or normal
9374 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9375 # need to do runtime linking.
e81819a5 9376 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
d7040cdb
SE
9377 for ld_flag in $LDFLAGS; do
9378 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9379 aix_use_runtimelinking=yes
9380 break
9381 fi
9382 done
9383 ;;
9384 esac
9385
9386 exp_sym_flag='-bexport'
9387 no_entry_flag='-bnoentry'
9388 fi
9389
9390 # When large executables or shared objects are built, AIX ld can
9391 # have problems creating the table of contents. If linking a library
9392 # or program results in "error TOC overflow" add -mminimal-toc to
9393 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9394 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9395
9396 archive_cmds=''
9397 hardcode_direct=yes
9398 hardcode_direct_absolute=yes
9399 hardcode_libdir_separator=':'
9400 link_all_deplibs=yes
9401 file_list_spec='${wl}-f,'
9402
9403 if test "$GCC" = yes; then
9404 case $host_os in aix4.[012]|aix4.[012].*)
9405 # We only want to do this on AIX 4.2 and lower, the check
9406 # below for broken collect2 doesn't work under 4.3+
9407 collect2name=`${CC} -print-prog-name=collect2`
9408 if test -f "$collect2name" &&
9409 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9410 then
9411 # We have reworked collect2
9412 :
9413 else
9414 # We have old collect2
9415 hardcode_direct=unsupported
9416 # It fails to find uninstalled libraries when the uninstalled
9417 # path is not listed in the libpath. Setting hardcode_minus_L
9418 # to unsupported forces relinking
9419 hardcode_minus_L=yes
9420 hardcode_libdir_flag_spec='-L$libdir'
9421 hardcode_libdir_separator=
9422 fi
9423 ;;
9424 esac
9425 shared_flag='-shared'
9426 if test "$aix_use_runtimelinking" = yes; then
9427 shared_flag="$shared_flag "'${wl}-G'
9428 fi
9429 else
9430 # not using gcc
9431 if test "$host_cpu" = ia64; then
9432 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9433 # chokes on -Wl,-G. The following line is correct:
9434 shared_flag='-G'
9435 else
9436 if test "$aix_use_runtimelinking" = yes; then
9437 shared_flag='${wl}-G'
9438 else
9439 shared_flag='${wl}-bM:SRE'
9440 fi
9441 fi
9442 fi
9443
718a6fd8 9444 export_dynamic_flag_spec='${wl}-bexpall'
d7040cdb
SE
9445 # It seems that -bexpall does not export symbols beginning with
9446 # underscore (_), so it is better to generate a list of symbols to export.
9447 always_export_symbols=yes
9448 if test "$aix_use_runtimelinking" = yes; then
9449 # Warning - without using the other runtime loading flags (-brtl),
9450 # -berok will link without error, but may produce a broken library.
9451 allow_undefined_flag='-berok'
9452 # Determine the default libpath from the value encoded in an
9453 # empty executable.
81ecdfbb 9454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7040cdb
SE
9455/* end confdefs.h. */
9456
9457int
9458main ()
9459{
9460
9461 ;
9462 return 0;
9463}
9464_ACEOF
81ecdfbb 9465if ac_fn_c_try_link "$LINENO"; then :
d7040cdb
SE
9466
9467lt_aix_libpath_sed='
9468 /Import File Strings/,/^$/ {
9469 /^0/ {
9470 s/^0 *\(.*\)$/\1/
9471 p
9472 }
9473 }'
9474aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9475# Check for a 64-bit object if we didn't find anything.
9476if test -z "$aix_libpath"; then
9477 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9478fi
d7040cdb 9479fi
81ecdfbb
RW
9480rm -f core conftest.err conftest.$ac_objext \
9481 conftest$ac_exeext conftest.$ac_ext
d7040cdb
SE
9482if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9483
9484 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
3725885a 9485 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
9486 else
9487 if test "$host_cpu" = ia64; then
9488 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9489 allow_undefined_flag="-z nodefs"
9490 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"
9491 else
9492 # Determine the default libpath from the value encoded in an
9493 # empty executable.
81ecdfbb 9494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7040cdb
SE
9495/* end confdefs.h. */
9496
9497int
9498main ()
9499{
9500
9501 ;
9502 return 0;
9503}
9504_ACEOF
81ecdfbb 9505if ac_fn_c_try_link "$LINENO"; then :
d7040cdb
SE
9506
9507lt_aix_libpath_sed='
9508 /Import File Strings/,/^$/ {
9509 /^0/ {
9510 s/^0 *\(.*\)$/\1/
9511 p
9512 }
9513 }'
9514aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9515# Check for a 64-bit object if we didn't find anything.
9516if test -z "$aix_libpath"; then
9517 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9518fi
d7040cdb 9519fi
81ecdfbb
RW
9520rm -f core conftest.err conftest.$ac_objext \
9521 conftest$ac_exeext conftest.$ac_ext
d7040cdb
SE
9522if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9523
9524 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9525 # Warning - without using the other run time loading flags,
9526 # -berok will link without error, but may produce a broken library.
9527 no_undefined_flag=' ${wl}-bernotok'
9528 allow_undefined_flag=' ${wl}-berok'
3725885a
RW
9529 if test "$with_gnu_ld" = yes; then
9530 # We only use this code for GNU lds that support --whole-archive.
9531 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9532 else
9533 # Exported symbols can be pulled into shared objects from archives
9534 whole_archive_flag_spec='$convenience'
9535 fi
d7040cdb
SE
9536 archive_cmds_need_lc=yes
9537 # This is similar to how AIX traditionally builds its shared libraries.
9538 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'
9539 fi
9540 fi
9541 ;;
9542
9543 amigaos*)
718a6fd8
SE
9544 case $host_cpu in
9545 powerpc)
9546 # see comment about AmigaOS4 .so support
9547 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9548 archive_expsym_cmds=''
9549 ;;
9550 m68k)
9551 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)'
9552 hardcode_libdir_flag_spec='-L$libdir'
9553 hardcode_minus_L=yes
9554 ;;
9555 esac
d7040cdb
SE
9556 ;;
9557
9558 bsdi[45]*)
9559 export_dynamic_flag_spec=-rdynamic
9560 ;;
9561
718a6fd8 9562 cygwin* | mingw* | pw32* | cegcc*)
d7040cdb
SE
9563 # When not using gcc, we currently assume that we are using
9564 # Microsoft Visual C++.
9565 # hardcode_libdir_flag_spec is actually meaningless, as there is
9566 # no search path for DLLs.
9567 hardcode_libdir_flag_spec=' '
9568 allow_undefined_flag=unsupported
9569 # Tell ltmain to make .lib files, not .a files.
9570 libext=lib
9571 # Tell ltmain to make .dll files, not .so files.
9572 shrext_cmds=".dll"
9573 # FIXME: Setting linknames here is a bad hack.
3725885a 9574 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
d7040cdb
SE
9575 # The linker will automatically build a .lib file if we build a DLL.
9576 old_archive_from_new_cmds='true'
9577 # FIXME: Should let the user specify the lib program.
9578 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9579 fix_srcfile_path='`cygpath -w "$srcfile"`'
9580 enable_shared_with_static_runtimes=yes
9581 ;;
9582
9583 darwin* | rhapsody*)
d7040cdb 9584
718a6fd8
SE
9585
9586 archive_cmds_need_lc=no
9587 hardcode_direct=no
9588 hardcode_automatic=yes
9589 hardcode_shlibpath_var=unsupported
3725885a
RW
9590 if test "$lt_cv_ld_force_load" = "yes"; then
9591 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\"`'
9592 else
9593 whole_archive_flag_spec=''
9594 fi
718a6fd8
SE
9595 link_all_deplibs=yes
9596 allow_undefined_flag="$_lt_dar_allow_undefined"
9597 case $cc_basename in
9598 ifort*) _lt_dar_can_shared=yes ;;
9599 *) _lt_dar_can_shared=$GCC ;;
9600 esac
9601 if test "$_lt_dar_can_shared" = "yes"; then
3725885a 9602 output_verbose_link_cmd=func_echo_all
718a6fd8
SE
9603 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9604 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9605 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}"
9606 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}"
9607
9608 else
9609 ld_shlibs=no
9610 fi
9611
d7040cdb
SE
9612 ;;
9613
9614 dgux*)
9615 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9616 hardcode_libdir_flag_spec='-L$libdir'
9617 hardcode_shlibpath_var=no
9618 ;;
9619
9620 freebsd1*)
9621 ld_shlibs=no
9622 ;;
9623
9624 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9625 # support. Future versions do this automatically, but an explicit c++rt0.o
9626 # does not break anything, and helps significantly (at the cost of a little
9627 # extra space).
9628 freebsd2.2*)
9629 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9630 hardcode_libdir_flag_spec='-R$libdir'
9631 hardcode_direct=yes
9632 hardcode_shlibpath_var=no
9633 ;;
9634
9635 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9636 freebsd2*)
9637 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9638 hardcode_direct=yes
9639 hardcode_minus_L=yes
9640 hardcode_shlibpath_var=no
9641 ;;
9642
9643 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9644 freebsd* | dragonfly*)
9645 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9646 hardcode_libdir_flag_spec='-R$libdir'
9647 hardcode_direct=yes
9648 hardcode_shlibpath_var=no
9649 ;;
9650
9651 hpux9*)
9652 if test "$GCC" = yes; then
9653 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'
9654 else
9655 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'
9656 fi
9657 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9658 hardcode_libdir_separator=:
9659 hardcode_direct=yes
9660
9661 # hardcode_minus_L: Not really in the search PATH,
9662 # but as the default location of the library.
9663 hardcode_minus_L=yes
9664 export_dynamic_flag_spec='${wl}-E'
9665 ;;
9666
9667 hpux10*)
3725885a 9668 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
d7040cdb
SE
9669 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9670 else
9671 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9672 fi
9673 if test "$with_gnu_ld" = no; then
9674 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9675 hardcode_libdir_flag_spec_ld='+b $libdir'
9676 hardcode_libdir_separator=:
9677 hardcode_direct=yes
9678 hardcode_direct_absolute=yes
9679 export_dynamic_flag_spec='${wl}-E'
9680 # hardcode_minus_L: Not really in the search PATH,
9681 # but as the default location of the library.
9682 hardcode_minus_L=yes
9683 fi
9684 ;;
9685
9686 hpux11*)
3725885a 9687 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
d7040cdb
SE
9688 case $host_cpu in
9689 hppa*64*)
9690 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9691 ;;
9692 ia64*)
718a6fd8 9693 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
d7040cdb
SE
9694 ;;
9695 *)
9696 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9697 ;;
9698 esac
9699 else
9700 case $host_cpu in
9701 hppa*64*)
9702 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9703 ;;
9704 ia64*)
9705 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9706 ;;
9707 *)
3725885a
RW
9708
9709 # Older versions of the 11.00 compiler do not understand -b yet
9710 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9712$as_echo_n "checking if $CC understands -b... " >&6; }
9713if test "${lt_cv_prog_compiler__b+set}" = set; then :
9714 $as_echo_n "(cached) " >&6
9715else
9716 lt_cv_prog_compiler__b=no
9717 save_LDFLAGS="$LDFLAGS"
9718 LDFLAGS="$LDFLAGS -b"
9719 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9720 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9721 # The linker can only warn and ignore the option if not recognized
9722 # So say no if there are warnings
9723 if test -s conftest.err; then
9724 # Append any errors to the config.log.
9725 cat conftest.err 1>&5
9726 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9727 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9728 if diff conftest.exp conftest.er2 >/dev/null; then
9729 lt_cv_prog_compiler__b=yes
9730 fi
9731 else
9732 lt_cv_prog_compiler__b=yes
9733 fi
9734 fi
9735 $RM -r conftest*
9736 LDFLAGS="$save_LDFLAGS"
9737
9738fi
9739{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9740$as_echo "$lt_cv_prog_compiler__b" >&6; }
9741
9742if test x"$lt_cv_prog_compiler__b" = xyes; then
9743 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9744else
9745 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9746fi
9747
d7040cdb
SE
9748 ;;
9749 esac
9750 fi
9751 if test "$with_gnu_ld" = no; then
9752 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9753 hardcode_libdir_separator=:
9754
9755 case $host_cpu in
9756 hppa*64*|ia64*)
9757 hardcode_direct=no
9758 hardcode_shlibpath_var=no
9759 ;;
9760 *)
9761 hardcode_direct=yes
9762 hardcode_direct_absolute=yes
9763 export_dynamic_flag_spec='${wl}-E'
9764
9765 # hardcode_minus_L: Not really in the search PATH,
9766 # but as the default location of the library.
9767 hardcode_minus_L=yes
9768 ;;
9769 esac
9770 fi
9771 ;;
9772
9773 irix5* | irix6* | nonstopux*)
9774 if test "$GCC" = yes; then
3725885a 9775 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
9776 # Try to use the -exported_symbol ld option, if it does not
9777 # work, assume that -exports_file does not work either and
9778 # implicitly export all symbols.
9779 save_LDFLAGS="$LDFLAGS"
9780 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
81ecdfbb
RW
9781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9782/* end confdefs.h. */
d7040cdb
SE
9783int foo(void) {}
9784_ACEOF
81ecdfbb 9785if ac_fn_c_try_link "$LINENO"; then :
3725885a 9786 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 9787
d7040cdb 9788fi
81ecdfbb
RW
9789rm -f core conftest.err conftest.$ac_objext \
9790 conftest$ac_exeext conftest.$ac_ext
d7040cdb
SE
9791 LDFLAGS="$save_LDFLAGS"
9792 else
3725885a
RW
9793 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'
9794 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
9795 fi
9796 archive_cmds_need_lc='no'
9797 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9798 hardcode_libdir_separator=:
9799 inherit_rpath=yes
9800 link_all_deplibs=yes
9801 ;;
9802
9803 netbsd*)
9804 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9805 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9806 else
9807 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9808 fi
9809 hardcode_libdir_flag_spec='-R$libdir'
9810 hardcode_direct=yes
9811 hardcode_shlibpath_var=no
9812 ;;
9813
9814 newsos6)
9815 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9816 hardcode_direct=yes
9817 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9818 hardcode_libdir_separator=:
9819 hardcode_shlibpath_var=no
9820 ;;
9821
9822 *nto* | *qnx*)
9823 ;;
9824
9825 openbsd*)
718a6fd8
SE
9826 if test -f /usr/libexec/ld.so; then
9827 hardcode_direct=yes
9828 hardcode_shlibpath_var=no
9829 hardcode_direct_absolute=yes
9830 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
d7040cdb 9831 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
718a6fd8 9832 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
d7040cdb 9833 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
718a6fd8
SE
9834 export_dynamic_flag_spec='${wl}-E'
9835 else
9836 case $host_os in
9837 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9838 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9839 hardcode_libdir_flag_spec='-R$libdir'
9840 ;;
9841 *)
9842 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9843 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9844 ;;
9845 esac
9846 fi
9847 else
9848 ld_shlibs=no
d7040cdb
SE
9849 fi
9850 ;;
9851
9852 os2*)
9853 hardcode_libdir_flag_spec='-L$libdir'
9854 hardcode_minus_L=yes
9855 allow_undefined_flag=unsupported
3725885a 9856 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
9857 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9858 ;;
9859
9860 osf3*)
9861 if test "$GCC" = yes; then
9862 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
3725885a 9863 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
9864 else
9865 allow_undefined_flag=' -expect_unresolved \*'
3725885a 9866 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
9867 fi
9868 archive_cmds_need_lc='no'
9869 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9870 hardcode_libdir_separator=:
9871 ;;
9872
9873 osf4* | osf5*) # as osf3* with the addition of -msym flag
9874 if test "$GCC" = yes; then
9875 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
3725885a 9876 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
9877 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9878 else
9879 allow_undefined_flag=' -expect_unresolved \*'
3725885a 9880 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 9881 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 9882 $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
9883
9884 # Both c and cxx compiler support -rpath directly
9885 hardcode_libdir_flag_spec='-rpath $libdir'
9886 fi
9887 archive_cmds_need_lc='no'
9888 hardcode_libdir_separator=:
9889 ;;
9890
9891 solaris*)
9892 no_undefined_flag=' -z defs'
9893 if test "$GCC" = yes; then
9894 wlarc='${wl}'
9895 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9896 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9897 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9898 else
9899 case `$CC -V 2>&1` in
9900 *"Compilers 5.0"*)
9901 wlarc=''
9902 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9903 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9904 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9905 ;;
9906 *)
9907 wlarc='${wl}'
9908 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9909 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9910 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9911 ;;
9912 esac
9913 fi
9914 hardcode_libdir_flag_spec='-R$libdir'
9915 hardcode_shlibpath_var=no
9916 case $host_os in
9917 solaris2.[0-5] | solaris2.[0-5].*) ;;
9918 *)
9919 # The compiler driver will combine and reorder linker options,
9920 # but understands `-z linker_flag'. GCC discards it without `$wl',
9921 # but is careful enough not to reorder.
9922 # Supported since Solaris 2.6 (maybe 2.5.1?)
9923 if test "$GCC" = yes; then
9924 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9925 else
9926 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9927 fi
9928 ;;
9929 esac
9930 link_all_deplibs=yes
9931 ;;
9932
9933 sunos4*)
9934 if test "x$host_vendor" = xsequent; then
9935 # Use $CC to link under sequent, because it throws in some extra .o
9936 # files that make .init and .fini sections work.
9937 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9938 else
9939 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9940 fi
9941 hardcode_libdir_flag_spec='-L$libdir'
9942 hardcode_direct=yes
9943 hardcode_minus_L=yes
9944 hardcode_shlibpath_var=no
9945 ;;
9946
9947 sysv4)
9948 case $host_vendor in
9949 sni)
9950 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9951 hardcode_direct=yes # is this really true???
9952 ;;
9953 siemens)
9954 ## LD is ld it makes a PLAMLIB
9955 ## CC just makes a GrossModule.
9956 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9957 reload_cmds='$CC -r -o $output$reload_objs'
9958 hardcode_direct=no
9959 ;;
9960 motorola)
9961 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9962 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9963 ;;
9964 esac
9965 runpath_var='LD_RUN_PATH'
9966 hardcode_shlibpath_var=no
9967 ;;
9968
9969 sysv4.3*)
9970 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9971 hardcode_shlibpath_var=no
9972 export_dynamic_flag_spec='-Bexport'
9973 ;;
9974
9975 sysv4*MP*)
9976 if test -d /usr/nec; then
9977 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9978 hardcode_shlibpath_var=no
9979 runpath_var=LD_RUN_PATH
9980 hardcode_runpath_var=yes
9981 ld_shlibs=yes
9982 fi
9983 ;;
9984
9985 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9986 no_undefined_flag='${wl}-z,text'
9987 archive_cmds_need_lc=no
9988 hardcode_shlibpath_var=no
9989 runpath_var='LD_RUN_PATH'
9990
9991 if test "$GCC" = yes; then
9992 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9993 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9994 else
9995 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9996 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9997 fi
9998 ;;
9999
10000 sysv5* | sco3.2v5* | sco5v6*)
10001 # Note: We can NOT use -z defs as we might desire, because we do not
10002 # link with -lc, and that would cause any symbols used from libc to
10003 # always be unresolved, which means just about no library would
10004 # ever link correctly. If we're not using GNU ld we use -z text
10005 # though, which does catch some bad symbols but isn't as heavy-handed
10006 # as -z defs.
10007 no_undefined_flag='${wl}-z,text'
10008 allow_undefined_flag='${wl}-z,nodefs'
10009 archive_cmds_need_lc=no
10010 hardcode_shlibpath_var=no
10011 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10012 hardcode_libdir_separator=':'
10013 link_all_deplibs=yes
10014 export_dynamic_flag_spec='${wl}-Bexport'
10015 runpath_var='LD_RUN_PATH'
10016
10017 if test "$GCC" = yes; then
10018 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10019 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10020 else
10021 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10022 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10023 fi
10024 ;;
10025
10026 uts4*)
10027 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10028 hardcode_libdir_flag_spec='-L$libdir'
10029 hardcode_shlibpath_var=no
10030 ;;
10031
10032 *)
10033 ld_shlibs=no
10034 ;;
10035 esac
10036
10037 if test x$host_vendor = xsni; then
10038 case $host in
10039 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10040 export_dynamic_flag_spec='${wl}-Blargedynsym'
10041 ;;
10042 esac
10043 fi
10044 fi
10045
81ecdfbb
RW
10046{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10047$as_echo "$ld_shlibs" >&6; }
d7040cdb
SE
10048test "$ld_shlibs" = no && can_build_shared=no
10049
10050with_gnu_ld=$with_gnu_ld
10051
10052
10053
10054
10055
10056
10057
10058
10059
10060
10061
10062
10063
10064
10065
10066#
10067# Do we need to explicitly link libc?
10068#
10069case "x$archive_cmds_need_lc" in
10070x|xyes)
10071 # Assume -lc should be added
10072 archive_cmds_need_lc=yes
10073
10074 if test "$enable_shared" = yes && test "$GCC" = yes; then
10075 case $archive_cmds in
10076 *'~'*)
10077 # FIXME: we may have to deal with multi-command sequences.
10078 ;;
10079 '$CC '*)
10080 # Test whether the compiler implicitly links with -lc since on some
10081 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10082 # to ld, don't add -lc before -lgcc.
81ecdfbb
RW
10083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10084$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10085if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
10086 $as_echo_n "(cached) " >&6
39144654
RW
10087else
10088 $RM conftest*
10089 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d7040cdb 10090
81ecdfbb 10091 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
d7040cdb
SE
10092 (eval $ac_compile) 2>&5
10093 ac_status=$?
81ecdfbb
RW
10094 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10095 test $ac_status = 0; } 2>conftest.err; then
39144654
RW
10096 soname=conftest
10097 lib=conftest
10098 libobjs=conftest.$ac_objext
10099 deplibs=
10100 wl=$lt_prog_compiler_wl
10101 pic_flag=$lt_prog_compiler_pic
10102 compiler_flags=-v
10103 linker_flags=-v
10104 verstring=
10105 output_objdir=.
10106 libname=conftest
10107 lt_save_allow_undefined_flag=$allow_undefined_flag
10108 allow_undefined_flag=
81ecdfbb 10109 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
d7040cdb
SE
10110 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10111 ac_status=$?
81ecdfbb
RW
10112 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10113 test $ac_status = 0; }
39144654
RW
10114 then
10115 lt_cv_archive_cmds_need_lc=no
10116 else
10117 lt_cv_archive_cmds_need_lc=yes
10118 fi
10119 allow_undefined_flag=$lt_save_allow_undefined_flag
10120 else
10121 cat conftest.err 1>&5
10122 fi
10123 $RM conftest*
10124
10125fi
81ecdfbb
RW
10126{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10127$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
39144654 10128 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
d7040cdb
SE
10129 ;;
10130 esac
10131 fi
10132 ;;
10133esac
10134
10135
10136
10137
10138
10139
10140
10141
10142
10143
10144
10145
10146
10147
10148
10149
10150
10151
10152
10153
10154
10155
10156
10157
10158
10159
10160
10161
10162
10163
10164
10165
10166
10167
10168
10169
10170
10171
10172
10173
10174
10175
10176
10177
10178
10179
10180
10181
10182
10183
10184
10185
10186
10187
10188
10189
10190
10191
10192
10193
10194
10195
10196
10197
10198
10199
10200
10201
10202
10203
10204
10205
10206
10207
10208
10209
10210
10211
10212
10213
10214
10215
10216
10217
10218
10219
10220
10221
10222
10223
10224
10225
10226
10227
10228
10229
10230
10231
10232
10233
10234
10235
10236
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
81ecdfbb
RW
10291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10292$as_echo_n "checking dynamic linker characteristics... " >&6; }
718a6fd8
SE
10293
10294if test "$GCC" = yes; then
d7040cdb
SE
10295 case $host_os in
10296 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10297 *) lt_awk_arg="/^libraries:/" ;;
10298 esac
3725885a
RW
10299 case $host_os in
10300 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10301 *) lt_sed_strip_eq="s,=/,/,g" ;;
10302 esac
10303 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10304 case $lt_search_path_spec in
10305 *\;*)
d7040cdb
SE
10306 # if the path contains ";" then we assume it to be the separator
10307 # otherwise default to the standard path separator (i.e. ":") - it is
10308 # assumed that no part of a normal pathname contains ";" but that should
10309 # okay in the real world where ";" in dirpaths is itself problematic.
3725885a
RW
10310 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10311 ;;
10312 *)
10313 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10314 ;;
10315 esac
d7040cdb
SE
10316 # Ok, now we have the path, separated by spaces, we can step through it
10317 # and add multilib dir if necessary.
10318 lt_tmp_lt_search_path_spec=
10319 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10320 for lt_sys_path in $lt_search_path_spec; do
10321 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10322 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10323 else
10324 test -d "$lt_sys_path" && \
10325 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10326 fi
10327 done
3725885a 10328 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
d7040cdb
SE
10329BEGIN {RS=" "; FS="/|\n";} {
10330 lt_foo="";
10331 lt_count=0;
10332 for (lt_i = NF; lt_i > 0; lt_i--) {
10333 if ($lt_i != "" && $lt_i != ".") {
10334 if ($lt_i == "..") {
10335 lt_count++;
10336 } else {
10337 if (lt_count == 0) {
10338 lt_foo="/" $lt_i lt_foo;
10339 } else {
10340 lt_count--;
10341 }
10342 }
10343 }
10344 }
10345 if (lt_foo != "") { lt_freq[lt_foo]++; }
10346 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10347}'`
3725885a
RW
10348 # AWK program above erroneously prepends '/' to C:/dos/paths
10349 # for these hosts.
10350 case $host_os in
10351 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10352 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10353 esac
10354 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
d7040cdb
SE
10355else
10356 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10357fi
10358library_names_spec=
10359libname_spec='lib$name'
10360soname_spec=
10361shrext_cmds=".so"
10362postinstall_cmds=
10363postuninstall_cmds=
10364finish_cmds=
10365finish_eval=
10366shlibpath_var=
10367shlibpath_overrides_runpath=unknown
10368version_type=none
10369dynamic_linker="$host_os ld.so"
10370sys_lib_dlsearch_path_spec="/lib /usr/lib"
10371need_lib_prefix=unknown
10372hardcode_into_libs=no
10373
10374# when you set need_version to no, make sure it does not cause -set_version
10375# flags to be left without arguments
10376need_version=unknown
10377
10378case $host_os in
10379aix3*)
10380 version_type=linux
10381 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10382 shlibpath_var=LIBPATH
10383
10384 # AIX 3 has no versioning support, so we append a major version to the name.
10385 soname_spec='${libname}${release}${shared_ext}$major'
10386 ;;
10387
e81819a5 10388aix[4-9]*)
d7040cdb
SE
10389 version_type=linux
10390 need_lib_prefix=no
10391 need_version=no
10392 hardcode_into_libs=yes
10393 if test "$host_cpu" = ia64; then
10394 # AIX 5 supports IA64
10395 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10396 shlibpath_var=LD_LIBRARY_PATH
10397 else
10398 # With GCC up to 2.95.x, collect2 would create an import file
10399 # for dependence libraries. The import file would start with
10400 # the line `#! .'. This would cause the generated library to
10401 # depend on `.', always an invalid library. This was fixed in
10402 # development snapshots of GCC prior to 3.0.
10403 case $host_os in
10404 aix4 | aix4.[01] | aix4.[01].*)
10405 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10406 echo ' yes '
10407 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10408 :
10409 else
10410 can_build_shared=no
10411 fi
10412 ;;
10413 esac
10414 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10415 # soname into executable. Probably we can add versioning support to
10416 # collect2, so additional links can be useful in future.
10417 if test "$aix_use_runtimelinking" = yes; then
10418 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10419 # instead of lib<name>.a to let people know that these are not
10420 # typical AIX shared libraries.
10421 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10422 else
10423 # We preserve .a as extension for shared libraries through AIX4.2
10424 # and later when we are not doing run time linking.
10425 library_names_spec='${libname}${release}.a $libname.a'
10426 soname_spec='${libname}${release}${shared_ext}$major'
10427 fi
10428 shlibpath_var=LIBPATH
10429 fi
10430 ;;
10431
10432amigaos*)
718a6fd8
SE
10433 case $host_cpu in
10434 powerpc)
10435 # Since July 2007 AmigaOS4 officially supports .so libraries.
10436 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10437 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10438 ;;
10439 m68k)
d7040cdb
SE
10440 library_names_spec='$libname.ixlibrary $libname.a'
10441 # Create ${libname}_ixlibrary.a entries in /sys/libs.
3725885a 10442 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
10443 ;;
10444 esac
d7040cdb
SE
10445 ;;
10446
10447beos*)
10448 library_names_spec='${libname}${shared_ext}'
10449 dynamic_linker="$host_os ld.so"
10450 shlibpath_var=LIBRARY_PATH
10451 ;;
10452
10453bsdi[45]*)
10454 version_type=linux
10455 need_version=no
10456 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10457 soname_spec='${libname}${release}${shared_ext}$major'
10458 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10459 shlibpath_var=LD_LIBRARY_PATH
10460 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10461 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10462 # the default ld.so.conf also contains /usr/contrib/lib and
10463 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10464 # libtool to hard-code these into programs
10465 ;;
10466
718a6fd8 10467cygwin* | mingw* | pw32* | cegcc*)
d7040cdb
SE
10468 version_type=windows
10469 shrext_cmds=".dll"
10470 need_version=no
10471 need_lib_prefix=no
10472
718a6fd8
SE
10473 case $GCC,$host_os in
10474 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
d7040cdb
SE
10475 library_names_spec='$libname.dll.a'
10476 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10477 postinstall_cmds='base_file=`basename \${file}`~
10478 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10479 dldir=$destdir/`dirname \$dlpath`~
10480 test -d \$dldir || mkdir -p \$dldir~
10481 $install_prog $dir/$dlname \$dldir/$dlname~
10482 chmod a+x \$dldir/$dlname~
10483 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10484 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10485 fi'
10486 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10487 dlpath=$dir/\$dldll~
10488 $RM \$dlpath'
10489 shlibpath_overrides_runpath=yes
10490
10491 case $host_os in
10492 cygwin*)
10493 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10494 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
3725885a
RW
10495
10496 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
d7040cdb 10497 ;;
718a6fd8 10498 mingw* | cegcc*)
d7040cdb
SE
10499 # MinGW DLLs use traditional 'lib' prefix
10500 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
d7040cdb
SE
10501 ;;
10502 pw32*)
10503 # pw32 DLLs use 'pw' prefix rather than 'lib'
10504 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10505 ;;
10506 esac
10507 ;;
10508
10509 *)
10510 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10511 ;;
10512 esac
10513 dynamic_linker='Win32 ld.exe'
10514 # FIXME: first we should search . and the directory the executable is in
10515 shlibpath_var=PATH
10516 ;;
10517
10518darwin* | rhapsody*)
10519 dynamic_linker="$host_os dyld"
10520 version_type=darwin
10521 need_lib_prefix=no
10522 need_version=no
10523 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10524 soname_spec='${libname}${release}${major}$shared_ext'
10525 shlibpath_overrides_runpath=yes
10526 shlibpath_var=DYLD_LIBRARY_PATH
10527 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10528
10529 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10530 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10531 ;;
10532
10533dgux*)
10534 version_type=linux
10535 need_lib_prefix=no
10536 need_version=no
10537 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10538 soname_spec='${libname}${release}${shared_ext}$major'
10539 shlibpath_var=LD_LIBRARY_PATH
10540 ;;
10541
10542freebsd1*)
10543 dynamic_linker=no
10544 ;;
10545
10546freebsd* | dragonfly*)
10547 # DragonFly does not have aout. When/if they implement a new
10548 # versioning mechanism, adjust this.
10549 if test -x /usr/bin/objformat; then
10550 objformat=`/usr/bin/objformat`
10551 else
10552 case $host_os in
10553 freebsd[123]*) objformat=aout ;;
10554 *) objformat=elf ;;
10555 esac
10556 fi
10557 version_type=freebsd-$objformat
10558 case $version_type in
10559 freebsd-elf*)
10560 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10561 need_version=no
10562 need_lib_prefix=no
10563 ;;
10564 freebsd-*)
10565 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10566 need_version=yes
10567 ;;
10568 esac
10569 shlibpath_var=LD_LIBRARY_PATH
10570 case $host_os in
10571 freebsd2*)
10572 shlibpath_overrides_runpath=yes
10573 ;;
10574 freebsd3.[01]* | freebsdelf3.[01]*)
10575 shlibpath_overrides_runpath=yes
10576 hardcode_into_libs=yes
10577 ;;
10578 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10579 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10580 shlibpath_overrides_runpath=no
10581 hardcode_into_libs=yes
10582 ;;
10583 *) # from 4.6 on, and DragonFly
10584 shlibpath_overrides_runpath=yes
10585 hardcode_into_libs=yes
10586 ;;
10587 esac
10588 ;;
10589
10590gnu*)
10591 version_type=linux
10592 need_lib_prefix=no
10593 need_version=no
10594 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10595 soname_spec='${libname}${release}${shared_ext}$major'
10596 shlibpath_var=LD_LIBRARY_PATH
10597 hardcode_into_libs=yes
10598 ;;
10599
3725885a
RW
10600haiku*)
10601 version_type=linux
10602 need_lib_prefix=no
10603 need_version=no
10604 dynamic_linker="$host_os runtime_loader"
10605 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10606 soname_spec='${libname}${release}${shared_ext}$major'
10607 shlibpath_var=LIBRARY_PATH
10608 shlibpath_overrides_runpath=yes
10609 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10610 hardcode_into_libs=yes
10611 ;;
10612
d7040cdb
SE
10613hpux9* | hpux10* | hpux11*)
10614 # Give a soname corresponding to the major version so that dld.sl refuses to
10615 # link against other versions.
10616 version_type=sunos
10617 need_lib_prefix=no
10618 need_version=no
10619 case $host_cpu in
10620 ia64*)
10621 shrext_cmds='.so'
10622 hardcode_into_libs=yes
10623 dynamic_linker="$host_os dld.so"
10624 shlibpath_var=LD_LIBRARY_PATH
10625 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10626 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10627 soname_spec='${libname}${release}${shared_ext}$major'
10628 if test "X$HPUX_IA64_MODE" = X32; then
10629 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10630 else
10631 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10632 fi
10633 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10634 ;;
10635 hppa*64*)
10636 shrext_cmds='.sl'
10637 hardcode_into_libs=yes
10638 dynamic_linker="$host_os dld.sl"
10639 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10640 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10641 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10642 soname_spec='${libname}${release}${shared_ext}$major'
10643 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10644 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10645 ;;
10646 *)
10647 shrext_cmds='.sl'
10648 dynamic_linker="$host_os dld.sl"
10649 shlibpath_var=SHLIB_PATH
10650 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10651 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10652 soname_spec='${libname}${release}${shared_ext}$major'
10653 ;;
10654 esac
3725885a 10655 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
d7040cdb 10656 postinstall_cmds='chmod 555 $lib'
3725885a
RW
10657 # or fails outright, so override atomically:
10658 install_override_mode=555
d7040cdb
SE
10659 ;;
10660
10661interix[3-9]*)
10662 version_type=linux
10663 need_lib_prefix=no
10664 need_version=no
10665 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10666 soname_spec='${libname}${release}${shared_ext}$major'
10667 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10668 shlibpath_var=LD_LIBRARY_PATH
10669 shlibpath_overrides_runpath=no
10670 hardcode_into_libs=yes
10671 ;;
10672
10673irix5* | irix6* | nonstopux*)
10674 case $host_os in
10675 nonstopux*) version_type=nonstopux ;;
10676 *)
10677 if test "$lt_cv_prog_gnu_ld" = yes; then
10678 version_type=linux
10679 else
10680 version_type=irix
10681 fi ;;
10682 esac
10683 need_lib_prefix=no
10684 need_version=no
10685 soname_spec='${libname}${release}${shared_ext}$major'
10686 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10687 case $host_os in
10688 irix5* | nonstopux*)
10689 libsuff= shlibsuff=
10690 ;;
10691 *)
10692 case $LD in # libtool.m4 will add one of these switches to LD
10693 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10694 libsuff= shlibsuff= libmagic=32-bit;;
10695 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10696 libsuff=32 shlibsuff=N32 libmagic=N32;;
10697 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10698 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10699 *) libsuff= shlibsuff= libmagic=never-match;;
10700 esac
10701 ;;
10702 esac
10703 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10704 shlibpath_overrides_runpath=no
10705 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10706 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10707 hardcode_into_libs=yes
10708 ;;
10709
10710# No shared lib support for Linux oldld, aout, or coff.
10711linux*oldld* | linux*aout* | linux*coff*)
10712 dynamic_linker=no
10713 ;;
10714
10715# This must be Linux ELF.
58e24671 10716linux* | k*bsd*-gnu | kopensolaris*-gnu)
d7040cdb
SE
10717 version_type=linux
10718 need_lib_prefix=no
10719 need_version=no
10720 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10721 soname_spec='${libname}${release}${shared_ext}$major'
10722 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10723 shlibpath_var=LD_LIBRARY_PATH
10724 shlibpath_overrides_runpath=no
39144654 10725
d7040cdb 10726 # Some binutils ld are patched to set DT_RUNPATH
81ecdfbb
RW
10727 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
10728 $as_echo_n "(cached) " >&6
39144654
RW
10729else
10730 lt_cv_shlibpath_overrides_runpath=no
10731 save_LDFLAGS=$LDFLAGS
10732 save_libdir=$libdir
10733 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10734 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
81ecdfbb 10735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7040cdb
SE
10736/* end confdefs.h. */
10737
10738int
10739main ()
10740{
10741
10742 ;
10743 return 0;
10744}
10745_ACEOF
81ecdfbb
RW
10746if ac_fn_c_try_link "$LINENO"; then :
10747 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
39144654 10748 lt_cv_shlibpath_overrides_runpath=yes
d7040cdb 10749fi
d7040cdb 10750fi
81ecdfbb
RW
10751rm -f core conftest.err conftest.$ac_objext \
10752 conftest$ac_exeext conftest.$ac_ext
39144654
RW
10753 LDFLAGS=$save_LDFLAGS
10754 libdir=$save_libdir
10755
10756fi
10757
10758 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
d7040cdb
SE
10759
10760 # This implies no fast_install, which is unacceptable.
10761 # Some rework will be needed to allow for fast_install
10762 # before this can be enabled.
10763 hardcode_into_libs=yes
10764
10765 # Append ld.so.conf contents to the search path
10766 if test -f /etc/ld.so.conf; then
3725885a 10767 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
10768 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10769 fi
10770
10771 # We used to test for /lib/ld.so.1 and disable shared libraries on
10772 # powerpc, because MkLinux only supported shared libraries with the
10773 # GNU dynamic linker. Since this was broken with cross compilers,
10774 # most powerpc-linux boxes support dynamic linking these days and
10775 # people can always --disable-shared, the test was removed, and we
10776 # assume the GNU/Linux dynamic linker is in use.
10777 dynamic_linker='GNU/Linux ld.so'
10778 ;;
10779
10780netbsd*)
10781 version_type=sunos
10782 need_lib_prefix=no
10783 need_version=no
10784 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10785 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10786 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10787 dynamic_linker='NetBSD (a.out) ld.so'
10788 else
10789 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10790 soname_spec='${libname}${release}${shared_ext}$major'
10791 dynamic_linker='NetBSD ld.elf_so'
10792 fi
10793 shlibpath_var=LD_LIBRARY_PATH
10794 shlibpath_overrides_runpath=yes
10795 hardcode_into_libs=yes
10796 ;;
10797
10798newsos6)
10799 version_type=linux
10800 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10801 shlibpath_var=LD_LIBRARY_PATH
10802 shlibpath_overrides_runpath=yes
10803 ;;
10804
10805*nto* | *qnx*)
10806 version_type=qnx
10807 need_lib_prefix=no
10808 need_version=no
10809 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10810 soname_spec='${libname}${release}${shared_ext}$major'
10811 shlibpath_var=LD_LIBRARY_PATH
10812 shlibpath_overrides_runpath=no
10813 hardcode_into_libs=yes
10814 dynamic_linker='ldqnx.so'
10815 ;;
10816
10817openbsd*)
10818 version_type=sunos
10819 sys_lib_dlsearch_path_spec="/usr/lib"
10820 need_lib_prefix=no
10821 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10822 case $host_os in
10823 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10824 *) need_version=no ;;
10825 esac
10826 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10827 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10828 shlibpath_var=LD_LIBRARY_PATH
10829 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10830 case $host_os in
10831 openbsd2.[89] | openbsd2.[89].*)
10832 shlibpath_overrides_runpath=no
10833 ;;
10834 *)
10835 shlibpath_overrides_runpath=yes
10836 ;;
10837 esac
10838 else
10839 shlibpath_overrides_runpath=yes
10840 fi
10841 ;;
10842
10843os2*)
10844 libname_spec='$name'
10845 shrext_cmds=".dll"
10846 need_lib_prefix=no
10847 library_names_spec='$libname${shared_ext} $libname.a'
10848 dynamic_linker='OS/2 ld.exe'
10849 shlibpath_var=LIBPATH
10850 ;;
10851
10852osf3* | osf4* | osf5*)
10853 version_type=osf
10854 need_lib_prefix=no
10855 need_version=no
10856 soname_spec='${libname}${release}${shared_ext}$major'
10857 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10858 shlibpath_var=LD_LIBRARY_PATH
10859 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10860 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10861 ;;
10862
10863rdos*)
10864 dynamic_linker=no
10865 ;;
10866
10867solaris*)
10868 version_type=linux
10869 need_lib_prefix=no
10870 need_version=no
10871 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10872 soname_spec='${libname}${release}${shared_ext}$major'
10873 shlibpath_var=LD_LIBRARY_PATH
10874 shlibpath_overrides_runpath=yes
10875 hardcode_into_libs=yes
10876 # ldd complains unless libraries are executable
10877 postinstall_cmds='chmod +x $lib'
10878 ;;
10879
10880sunos4*)
10881 version_type=sunos
10882 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10883 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10884 shlibpath_var=LD_LIBRARY_PATH
10885 shlibpath_overrides_runpath=yes
10886 if test "$with_gnu_ld" = yes; then
10887 need_lib_prefix=no
10888 fi
10889 need_version=yes
10890 ;;
10891
10892sysv4 | sysv4.3*)
10893 version_type=linux
10894 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10895 soname_spec='${libname}${release}${shared_ext}$major'
10896 shlibpath_var=LD_LIBRARY_PATH
10897 case $host_vendor in
10898 sni)
10899 shlibpath_overrides_runpath=no
10900 need_lib_prefix=no
10901 runpath_var=LD_RUN_PATH
10902 ;;
10903 siemens)
10904 need_lib_prefix=no
10905 ;;
10906 motorola)
10907 need_lib_prefix=no
10908 need_version=no
10909 shlibpath_overrides_runpath=no
10910 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10911 ;;
10912 esac
10913 ;;
10914
10915sysv4*MP*)
10916 if test -d /usr/nec ;then
10917 version_type=linux
10918 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10919 soname_spec='$libname${shared_ext}.$major'
10920 shlibpath_var=LD_LIBRARY_PATH
10921 fi
10922 ;;
10923
10924sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10925 version_type=freebsd-elf
10926 need_lib_prefix=no
10927 need_version=no
10928 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10929 soname_spec='${libname}${release}${shared_ext}$major'
10930 shlibpath_var=LD_LIBRARY_PATH
10931 shlibpath_overrides_runpath=yes
10932 hardcode_into_libs=yes
10933 if test "$with_gnu_ld" = yes; then
10934 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10935 else
10936 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10937 case $host_os in
10938 sco3.2v5*)
10939 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10940 ;;
10941 esac
10942 fi
10943 sys_lib_dlsearch_path_spec='/usr/lib'
10944 ;;
10945
10946tpf*)
10947 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10948 version_type=linux
10949 need_lib_prefix=no
10950 need_version=no
718a6fd8 10951 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
d7040cdb
SE
10952 shlibpath_var=LD_LIBRARY_PATH
10953 shlibpath_overrides_runpath=no
10954 hardcode_into_libs=yes
10955 ;;
10956
10957uts4*)
10958 version_type=linux
10959 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10960 soname_spec='${libname}${release}${shared_ext}$major'
10961 shlibpath_var=LD_LIBRARY_PATH
10962 ;;
10963
10964*)
10965 dynamic_linker=no
10966 ;;
10967esac
81ecdfbb
RW
10968{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10969$as_echo "$dynamic_linker" >&6; }
d7040cdb
SE
10970test "$dynamic_linker" = no && can_build_shared=no
10971
10972variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10973if test "$GCC" = yes; then
10974 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10975fi
10976
718a6fd8
SE
10977if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10978 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10979fi
10980if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10981 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10982fi
10983
d7040cdb
SE
10984
10985
10986
10987
10988
10989
10990
10991
10992
10993
10994
10995
10996
10997
10998
10999
11000
11001
11002
11003
11004
11005
11006
11007
11008
11009
11010
11011
11012
11013
11014
11015
11016
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
3725885a
RW
11064
11065
11066
11067
11068
d7040cdb
SE
11069
11070
11071
11072
11073
11074
81ecdfbb
RW
11075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11076$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
d7040cdb
SE
11077hardcode_action=
11078if test -n "$hardcode_libdir_flag_spec" ||
11079 test -n "$runpath_var" ||
11080 test "X$hardcode_automatic" = "Xyes" ; then
11081
11082 # We can hardcode non-existent directories.
11083 if test "$hardcode_direct" != no &&
11084 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11085 # have to relink, otherwise we might link with an installed library
11086 # when we should be linking with a yet-to-be-installed one
11087 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11088 test "$hardcode_minus_L" != no; then
11089 # Linking always hardcodes the temporary library directory.
11090 hardcode_action=relink
11091 else
11092 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11093 hardcode_action=immediate
11094 fi
11095else
11096 # We cannot hardcode anything, or else we can only hardcode existing
11097 # directories.
11098 hardcode_action=unsupported
11099fi
81ecdfbb
RW
11100{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11101$as_echo "$hardcode_action" >&6; }
d7040cdb
SE
11102
11103if test "$hardcode_action" = relink ||
11104 test "$inherit_rpath" = yes; then
11105 # Fast installation is not supported
11106 enable_fast_install=no
11107elif test "$shlibpath_overrides_runpath" = yes ||
11108 test "$enable_shared" = no; then
11109 # Fast installation is not necessary
11110 enable_fast_install=needless
11111fi
11112
11113
11114
11115
11116
11117
11118 if test "x$enable_dlopen" != xyes; then
11119 enable_dlopen=unknown
11120 enable_dlopen_self=unknown
11121 enable_dlopen_self_static=unknown
11122else
11123 lt_cv_dlopen=no
11124 lt_cv_dlopen_libs=
11125
11126 case $host_os in
11127 beos*)
11128 lt_cv_dlopen="load_add_on"
11129 lt_cv_dlopen_libs=
11130 lt_cv_dlopen_self=yes
11131 ;;
11132
718a6fd8 11133 mingw* | pw32* | cegcc*)
d7040cdb
SE
11134 lt_cv_dlopen="LoadLibrary"
11135 lt_cv_dlopen_libs=
11136 ;;
11137
11138 cygwin*)
11139 lt_cv_dlopen="dlopen"
11140 lt_cv_dlopen_libs=
11141 ;;
11142
11143 darwin*)
11144 # if libdl is installed we need to link against it
81ecdfbb
RW
11145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11146$as_echo_n "checking for dlopen in -ldl... " >&6; }
11147if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11148 $as_echo_n "(cached) " >&6
d7040cdb
SE
11149else
11150 ac_check_lib_save_LIBS=$LIBS
11151LIBS="-ldl $LIBS"
81ecdfbb 11152cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7040cdb
SE
11153/* end confdefs.h. */
11154
81ecdfbb
RW
11155/* Override any GCC internal prototype to avoid an error.
11156 Use char because int might match the return type of a GCC
11157 builtin and then its argument prototype would still apply. */
d7040cdb
SE
11158#ifdef __cplusplus
11159extern "C"
11160#endif
d7040cdb
SE
11161char dlopen ();
11162int
11163main ()
11164{
81ecdfbb 11165return dlopen ();
d7040cdb
SE
11166 ;
11167 return 0;
11168}
11169_ACEOF
81ecdfbb 11170if ac_fn_c_try_link "$LINENO"; then :
d7040cdb
SE
11171 ac_cv_lib_dl_dlopen=yes
11172else
81ecdfbb 11173 ac_cv_lib_dl_dlopen=no
d7040cdb 11174fi
81ecdfbb
RW
11175rm -f core conftest.err conftest.$ac_objext \
11176 conftest$ac_exeext conftest.$ac_ext
d7040cdb
SE
11177LIBS=$ac_check_lib_save_LIBS
11178fi
81ecdfbb
RW
11179{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11180$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11181if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
d7040cdb
SE
11182 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11183else
11184
11185 lt_cv_dlopen="dyld"
11186 lt_cv_dlopen_libs=
11187 lt_cv_dlopen_self=yes
11188
11189fi
11190
11191 ;;
11192
11193 *)
81ecdfbb
RW
11194 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11195if test "x$ac_cv_func_shl_load" = x""yes; then :
d7040cdb
SE
11196 lt_cv_dlopen="shl_load"
11197else
81ecdfbb
RW
11198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11199$as_echo_n "checking for shl_load in -ldld... " >&6; }
11200if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
11201 $as_echo_n "(cached) " >&6
d7040cdb
SE
11202else
11203 ac_check_lib_save_LIBS=$LIBS
11204LIBS="-ldld $LIBS"
81ecdfbb 11205cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7040cdb
SE
11206/* end confdefs.h. */
11207
81ecdfbb
RW
11208/* Override any GCC internal prototype to avoid an error.
11209 Use char because int might match the return type of a GCC
11210 builtin and then its argument prototype would still apply. */
d7040cdb
SE
11211#ifdef __cplusplus
11212extern "C"
11213#endif
d7040cdb
SE
11214char shl_load ();
11215int
11216main ()
11217{
81ecdfbb 11218return shl_load ();
d7040cdb
SE
11219 ;
11220 return 0;
11221}
11222_ACEOF
81ecdfbb 11223if ac_fn_c_try_link "$LINENO"; then :
d7040cdb
SE
11224 ac_cv_lib_dld_shl_load=yes
11225else
81ecdfbb 11226 ac_cv_lib_dld_shl_load=no
d7040cdb 11227fi
81ecdfbb
RW
11228rm -f core conftest.err conftest.$ac_objext \
11229 conftest$ac_exeext conftest.$ac_ext
d7040cdb
SE
11230LIBS=$ac_check_lib_save_LIBS
11231fi
81ecdfbb
RW
11232{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11233$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11234if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
718a6fd8 11235 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
d7040cdb 11236else
81ecdfbb
RW
11237 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11238if test "x$ac_cv_func_dlopen" = x""yes; then :
d7040cdb
SE
11239 lt_cv_dlopen="dlopen"
11240else
81ecdfbb
RW
11241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11242$as_echo_n "checking for dlopen in -ldl... " >&6; }
11243if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11244 $as_echo_n "(cached) " >&6
d7040cdb
SE
11245else
11246 ac_check_lib_save_LIBS=$LIBS
11247LIBS="-ldl $LIBS"
81ecdfbb 11248cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7040cdb
SE
11249/* end confdefs.h. */
11250
81ecdfbb
RW
11251/* Override any GCC internal prototype to avoid an error.
11252 Use char because int might match the return type of a GCC
11253 builtin and then its argument prototype would still apply. */
d7040cdb
SE
11254#ifdef __cplusplus
11255extern "C"
11256#endif
d7040cdb
SE
11257char dlopen ();
11258int
11259main ()
11260{
81ecdfbb 11261return dlopen ();
d7040cdb
SE
11262 ;
11263 return 0;
11264}
11265_ACEOF
81ecdfbb 11266if ac_fn_c_try_link "$LINENO"; then :
d7040cdb
SE
11267 ac_cv_lib_dl_dlopen=yes
11268else
81ecdfbb 11269 ac_cv_lib_dl_dlopen=no
d7040cdb 11270fi
81ecdfbb
RW
11271rm -f core conftest.err conftest.$ac_objext \
11272 conftest$ac_exeext conftest.$ac_ext
d7040cdb
SE
11273LIBS=$ac_check_lib_save_LIBS
11274fi
81ecdfbb
RW
11275{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11276$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11277if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
d7040cdb
SE
11278 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11279else
81ecdfbb
RW
11280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11281$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11282if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11283 $as_echo_n "(cached) " >&6
d7040cdb
SE
11284else
11285 ac_check_lib_save_LIBS=$LIBS
11286LIBS="-lsvld $LIBS"
81ecdfbb 11287cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7040cdb
SE
11288/* end confdefs.h. */
11289
81ecdfbb
RW
11290/* Override any GCC internal prototype to avoid an error.
11291 Use char because int might match the return type of a GCC
11292 builtin and then its argument prototype would still apply. */
d7040cdb
SE
11293#ifdef __cplusplus
11294extern "C"
11295#endif
d7040cdb
SE
11296char dlopen ();
11297int
11298main ()
11299{
81ecdfbb 11300return dlopen ();
d7040cdb
SE
11301 ;
11302 return 0;
11303}
11304_ACEOF
81ecdfbb 11305if ac_fn_c_try_link "$LINENO"; then :
d7040cdb
SE
11306 ac_cv_lib_svld_dlopen=yes
11307else
81ecdfbb 11308 ac_cv_lib_svld_dlopen=no
d7040cdb 11309fi
81ecdfbb
RW
11310rm -f core conftest.err conftest.$ac_objext \
11311 conftest$ac_exeext conftest.$ac_ext
d7040cdb
SE
11312LIBS=$ac_check_lib_save_LIBS
11313fi
81ecdfbb
RW
11314{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11315$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11316if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
d7040cdb
SE
11317 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11318else
81ecdfbb
RW
11319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11320$as_echo_n "checking for dld_link in -ldld... " >&6; }
11321if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11322 $as_echo_n "(cached) " >&6
d7040cdb
SE
11323else
11324 ac_check_lib_save_LIBS=$LIBS
11325LIBS="-ldld $LIBS"
81ecdfbb 11326cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7040cdb
SE
11327/* end confdefs.h. */
11328
81ecdfbb
RW
11329/* Override any GCC internal prototype to avoid an error.
11330 Use char because int might match the return type of a GCC
11331 builtin and then its argument prototype would still apply. */
d7040cdb
SE
11332#ifdef __cplusplus
11333extern "C"
11334#endif
d7040cdb
SE
11335char dld_link ();
11336int
11337main ()
11338{
81ecdfbb 11339return dld_link ();
d7040cdb
SE
11340 ;
11341 return 0;
11342}
11343_ACEOF
81ecdfbb 11344if ac_fn_c_try_link "$LINENO"; then :
d7040cdb
SE
11345 ac_cv_lib_dld_dld_link=yes
11346else
81ecdfbb 11347 ac_cv_lib_dld_dld_link=no
d7040cdb 11348fi
81ecdfbb
RW
11349rm -f core conftest.err conftest.$ac_objext \
11350 conftest$ac_exeext conftest.$ac_ext
d7040cdb
SE
11351LIBS=$ac_check_lib_save_LIBS
11352fi
81ecdfbb
RW
11353{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11354$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11355if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
718a6fd8 11356 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
d7040cdb
SE
11357fi
11358
11359
11360fi
11361
11362
11363fi
11364
11365
11366fi
11367
11368
11369fi
11370
11371
11372fi
11373
11374 ;;
11375 esac
11376
11377 if test "x$lt_cv_dlopen" != xno; then
11378 enable_dlopen=yes
20e95c23 11379 else
d7040cdb 11380 enable_dlopen=no
252b5132 11381 fi
5464f5a1 11382
d7040cdb
SE
11383 case $lt_cv_dlopen in
11384 dlopen)
11385 save_CPPFLAGS="$CPPFLAGS"
11386 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11387
11388 save_LDFLAGS="$LDFLAGS"
11389 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11390
11391 save_LIBS="$LIBS"
11392 LIBS="$lt_cv_dlopen_libs $LIBS"
11393
81ecdfbb
RW
11394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11395$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11396if test "${lt_cv_dlopen_self+set}" = set; then :
11397 $as_echo_n "(cached) " >&6
20e95c23 11398else
d7040cdb
SE
11399 if test "$cross_compiling" = yes; then :
11400 lt_cv_dlopen_self=cross
11401else
11402 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11403 lt_status=$lt_dlunknown
11404 cat > conftest.$ac_ext <<_LT_EOF
3725885a 11405#line 11405 "configure"
d7040cdb
SE
11406#include "confdefs.h"
11407
11408#if HAVE_DLFCN_H
11409#include <dlfcn.h>
11410#endif
11411
11412#include <stdio.h>
11413
11414#ifdef RTLD_GLOBAL
11415# define LT_DLGLOBAL RTLD_GLOBAL
11416#else
11417# ifdef DL_GLOBAL
11418# define LT_DLGLOBAL DL_GLOBAL
11419# else
11420# define LT_DLGLOBAL 0
11421# endif
11422#endif
11423
11424/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11425 find out it does not work in some platform. */
11426#ifndef LT_DLLAZY_OR_NOW
11427# ifdef RTLD_LAZY
11428# define LT_DLLAZY_OR_NOW RTLD_LAZY
11429# else
11430# ifdef DL_LAZY
11431# define LT_DLLAZY_OR_NOW DL_LAZY
11432# else
11433# ifdef RTLD_NOW
11434# define LT_DLLAZY_OR_NOW RTLD_NOW
11435# else
11436# ifdef DL_NOW
11437# define LT_DLLAZY_OR_NOW DL_NOW
11438# else
11439# define LT_DLLAZY_OR_NOW 0
11440# endif
11441# endif
11442# endif
11443# endif
11444#endif
11445
3725885a
RW
11446/* When -fvisbility=hidden is used, assume the code has been annotated
11447 correspondingly for the symbols needed. */
11448#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11449void fnord () __attribute__((visibility("default")));
11450#endif
11451
11452void fnord () { int i=42; }
d7040cdb
SE
11453int main ()
11454{
11455 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11456 int status = $lt_dlunknown;
11457
11458 if (self)
11459 {
11460 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
3725885a
RW
11461 else
11462 {
11463 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11464 else puts (dlerror ());
11465 }
d7040cdb
SE
11466 /* dlclose (self); */
11467 }
11468 else
11469 puts (dlerror ());
11470
718a6fd8 11471 return status;
d7040cdb
SE
11472}
11473_LT_EOF
81ecdfbb 11474 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
d7040cdb
SE
11475 (eval $ac_link) 2>&5
11476 ac_status=$?
81ecdfbb
RW
11477 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11478 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
d7040cdb
SE
11479 (./conftest; exit; ) >&5 2>/dev/null
11480 lt_status=$?
11481 case x$lt_status in
11482 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11483 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11484 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11485 esac
11486 else :
11487 # compilation failed
11488 lt_cv_dlopen_self=no
11489 fi
252b5132 11490fi
d7040cdb 11491rm -fr conftest*
20e95c23 11492
d7040cdb
SE
11493
11494fi
81ecdfbb
RW
11495{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11496$as_echo "$lt_cv_dlopen_self" >&6; }
d7040cdb
SE
11497
11498 if test "x$lt_cv_dlopen_self" = xyes; then
11499 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
81ecdfbb
RW
11500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11501$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11502if test "${lt_cv_dlopen_self_static+set}" = set; then :
11503 $as_echo_n "(cached) " >&6
20e95c23 11504else
d7040cdb
SE
11505 if test "$cross_compiling" = yes; then :
11506 lt_cv_dlopen_self_static=cross
11507else
11508 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11509 lt_status=$lt_dlunknown
11510 cat > conftest.$ac_ext <<_LT_EOF
3725885a 11511#line 11511 "configure"
d7040cdb
SE
11512#include "confdefs.h"
11513
11514#if HAVE_DLFCN_H
11515#include <dlfcn.h>
11516#endif
11517
11518#include <stdio.h>
11519
11520#ifdef RTLD_GLOBAL
11521# define LT_DLGLOBAL RTLD_GLOBAL
11522#else
11523# ifdef DL_GLOBAL
11524# define LT_DLGLOBAL DL_GLOBAL
11525# else
11526# define LT_DLGLOBAL 0
11527# endif
11528#endif
11529
11530/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11531 find out it does not work in some platform. */
11532#ifndef LT_DLLAZY_OR_NOW
11533# ifdef RTLD_LAZY
11534# define LT_DLLAZY_OR_NOW RTLD_LAZY
11535# else
11536# ifdef DL_LAZY
11537# define LT_DLLAZY_OR_NOW DL_LAZY
11538# else
11539# ifdef RTLD_NOW
11540# define LT_DLLAZY_OR_NOW RTLD_NOW
11541# else
11542# ifdef DL_NOW
11543# define LT_DLLAZY_OR_NOW DL_NOW
11544# else
11545# define LT_DLLAZY_OR_NOW 0
11546# endif
11547# endif
11548# endif
11549# endif
11550#endif
11551
3725885a
RW
11552/* When -fvisbility=hidden is used, assume the code has been annotated
11553 correspondingly for the symbols needed. */
11554#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11555void fnord () __attribute__((visibility("default")));
11556#endif
11557
11558void fnord () { int i=42; }
d7040cdb
SE
11559int main ()
11560{
11561 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11562 int status = $lt_dlunknown;
11563
11564 if (self)
11565 {
11566 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
3725885a
RW
11567 else
11568 {
11569 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11570 else puts (dlerror ());
11571 }
d7040cdb
SE
11572 /* dlclose (self); */
11573 }
11574 else
11575 puts (dlerror ());
11576
718a6fd8 11577 return status;
d7040cdb
SE
11578}
11579_LT_EOF
81ecdfbb 11580 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
d7040cdb
SE
11581 (eval $ac_link) 2>&5
11582 ac_status=$?
81ecdfbb
RW
11583 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11584 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
d7040cdb
SE
11585 (./conftest; exit; ) >&5 2>/dev/null
11586 lt_status=$?
11587 case x$lt_status in
11588 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11589 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11590 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11591 esac
11592 else :
11593 # compilation failed
11594 lt_cv_dlopen_self_static=no
11595 fi
11596fi
11597rm -fr conftest*
11598
11599
11600fi
81ecdfbb
RW
11601{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11602$as_echo "$lt_cv_dlopen_self_static" >&6; }
d7040cdb
SE
11603 fi
11604
11605 CPPFLAGS="$save_CPPFLAGS"
11606 LDFLAGS="$save_LDFLAGS"
11607 LIBS="$save_LIBS"
11608 ;;
11609 esac
11610
11611 case $lt_cv_dlopen_self in
11612 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11613 *) enable_dlopen_self=unknown ;;
11614 esac
11615
11616 case $lt_cv_dlopen_self_static in
11617 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11618 *) enable_dlopen_self_static=unknown ;;
11619 esac
11620fi
11621
11622
11623
11624
11625
11626
11627
11628
11629
11630
11631
11632
11633
11634
11635
11636
11637
11638striplib=
11639old_striplib=
81ecdfbb
RW
11640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11641$as_echo_n "checking whether stripping libraries is possible... " >&6; }
d7040cdb
SE
11642if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11643 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11644 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
81ecdfbb
RW
11645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11646$as_echo "yes" >&6; }
d7040cdb
SE
11647else
11648# FIXME - insert some real tests, host_os isn't really good enough
11649 case $host_os in
11650 darwin*)
11651 if test -n "$STRIP" ; then
11652 striplib="$STRIP -x"
11653 old_striplib="$STRIP -S"
81ecdfbb
RW
11654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11655$as_echo "yes" >&6; }
d7040cdb 11656 else
81ecdfbb
RW
11657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11658$as_echo "no" >&6; }
d7040cdb 11659 fi
20e95c23
DJ
11660 ;;
11661 *)
81ecdfbb
RW
11662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11663$as_echo "no" >&6; }
d7040cdb
SE
11664 ;;
11665 esac
11666fi
11667
11668
11669
11670
11671
11672
11673
11674
11675
11676
11677
11678
11679 # Report which library types will actually be built
81ecdfbb
RW
11680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11681$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11683$as_echo "$can_build_shared" >&6; }
d7040cdb 11684
81ecdfbb
RW
11685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11686$as_echo_n "checking whether to build shared libraries... " >&6; }
d7040cdb
SE
11687 test "$can_build_shared" = "no" && enable_shared=no
11688
11689 # On AIX, shared libraries and static libraries use the same namespace, and
11690 # are all built from PIC.
11691 case $host_os in
11692 aix3*)
11693 test "$enable_shared" = yes && enable_static=no
11694 if test -n "$RANLIB"; then
11695 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11696 postinstall_cmds='$RANLIB $lib'
11697 fi
11698 ;;
11699
e81819a5 11700 aix[4-9]*)
d7040cdb
SE
11701 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11702 test "$enable_shared" = yes && enable_static=no
11703 fi
20e95c23 11704 ;;
d7040cdb 11705 esac
81ecdfbb
RW
11706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11707$as_echo "$enable_shared" >&6; }
d7040cdb 11708
81ecdfbb
RW
11709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11710$as_echo_n "checking whether to build static libraries... " >&6; }
d7040cdb
SE
11711 # Make sure either enable_shared or enable_static is yes.
11712 test "$enable_shared" = yes || enable_static=yes
81ecdfbb
RW
11713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11714$as_echo "$enable_static" >&6; }
d7040cdb
SE
11715
11716
11717
11718
11719fi
11720ac_ext=c
11721ac_cpp='$CPP $CPPFLAGS'
11722ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11723ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11724ac_compiler_gnu=$ac_cv_c_compiler_gnu
11725
11726CC="$lt_save_CC"
11727
11728
11729
11730
11731
11732
11733
11734
11735
11736
11737
11738
11739
81ecdfbb 11740 ac_config_commands="$ac_config_commands libtool"
ce3c775b
NC
11741
11742
11743
11744
11745# Only expand once:
11746
11747
11748
da2f07f1
JK
11749# AC_PLUGINS setting $plugins is called by ACX_LARGEFILE.
11750
3388710e
JM
11751# The tests for host and target for $enable_largefile require
11752# canonical names.
11753
11754
11755
da2f07f1
JK
11756# As the $enable_largefile decision depends on --enable-plugins we must set it
11757# even in directories otherwise not depending on the $plugins option.
11758
5691d22d 11759
81ecdfbb
RW
11760# Check whether --enable-plugins was given.
11761if test "${enable_plugins+set}" = set; then :
11762 enableval=$enable_plugins; case "${enableval}" in
ce3c775b
NC
11763 yes | "") plugins=yes ;;
11764 no) plugins=no ;;
11765 *) plugins=yes ;;
11766 esac
11767else
11768 plugins=no
81ecdfbb 11769fi
ce3c775b
NC
11770
11771
5691d22d 11772
da2f07f1 11773case "${host}" in
ce3c775b
NC
11774 sparc-*-solaris*|i[3-7]86-*-solaris*)
11775 # On native 32bit sparc and ia32 solaris, large-file and procfs support
da2f07f1 11776 # are mutually exclusive; and without procfs support, the bfd/ elf module
ce3c775b
NC
11777 # cannot provide certain routines such as elfcore_write_prpsinfo
11778 # or elfcore_write_prstatus. So unless the user explicitly requested
11779 # large-file support through the --enable-largefile switch, disable
11780 # large-file support in favor of procfs support.
da2f07f1
JK
11781 test "${target}" = "${host}" -a "x$plugins" = xno \
11782 && : ${enable_largefile="no"}
ce3c775b
NC
11783 ;;
11784esac
11785
81ecdfbb
RW
11786# Check whether --enable-largefile was given.
11787if test "${enable_largefile+set}" = set; then :
11788 enableval=$enable_largefile;
11789fi
ce3c775b 11790
ce3c775b
NC
11791if test "$enable_largefile" != no; then
11792
81ecdfbb
RW
11793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
11794$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
11795if test "${ac_cv_sys_largefile_CC+set}" = set; then :
11796 $as_echo_n "(cached) " >&6
ce3c775b
NC
11797else
11798 ac_cv_sys_largefile_CC=no
11799 if test "$GCC" != yes; then
11800 ac_save_CC=$CC
11801 while :; do
81ecdfbb
RW
11802 # IRIX 6.2 and later do not support large files by default,
11803 # so use the C compiler's -n32 option if that helps.
11804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce3c775b
NC
11805/* end confdefs.h. */
11806#include <sys/types.h>
11807 /* Check that off_t can represent 2**63 - 1 correctly.
11808 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11809 since some C++ compilers masquerading as C compilers
11810 incorrectly reject 9223372036854775807. */
11811#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11812 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11813 && LARGE_OFF_T % 2147483647 == 1)
11814 ? 1 : -1];
11815int
11816main ()
11817{
11818
11819 ;
11820 return 0;
11821}
11822_ACEOF
81ecdfbb 11823 if ac_fn_c_try_compile "$LINENO"; then :
ce3c775b 11824 break
ce3c775b 11825fi
81ecdfbb
RW
11826rm -f core conftest.err conftest.$ac_objext
11827 CC="$CC -n32"
11828 if ac_fn_c_try_compile "$LINENO"; then :
ce3c775b 11829 ac_cv_sys_largefile_CC=' -n32'; break
ce3c775b 11830fi
81ecdfbb 11831rm -f core conftest.err conftest.$ac_objext
ce3c775b
NC
11832 break
11833 done
11834 CC=$ac_save_CC
11835 rm -f conftest.$ac_ext
11836 fi
11837fi
81ecdfbb
RW
11838{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
11839$as_echo "$ac_cv_sys_largefile_CC" >&6; }
ce3c775b
NC
11840 if test "$ac_cv_sys_largefile_CC" != no; then
11841 CC=$CC$ac_cv_sys_largefile_CC
11842 fi
11843
81ecdfbb
RW
11844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
11845$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
11846if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
11847 $as_echo_n "(cached) " >&6
ce3c775b
NC
11848else
11849 while :; do
81ecdfbb 11850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce3c775b
NC
11851/* end confdefs.h. */
11852#include <sys/types.h>
11853 /* Check that off_t can represent 2**63 - 1 correctly.
11854 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11855 since some C++ compilers masquerading as C compilers
11856 incorrectly reject 9223372036854775807. */
11857#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11858 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11859 && LARGE_OFF_T % 2147483647 == 1)
11860 ? 1 : -1];
11861int
11862main ()
11863{
11864
11865 ;
11866 return 0;
11867}
11868_ACEOF
81ecdfbb
RW
11869if ac_fn_c_try_compile "$LINENO"; then :
11870 ac_cv_sys_file_offset_bits=no; break
ce3c775b 11871fi
81ecdfbb
RW
11872rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce3c775b
NC
11874/* end confdefs.h. */
11875#define _FILE_OFFSET_BITS 64
11876#include <sys/types.h>
11877 /* Check that off_t can represent 2**63 - 1 correctly.
11878 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11879 since some C++ compilers masquerading as C compilers
11880 incorrectly reject 9223372036854775807. */
11881#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11882 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11883 && LARGE_OFF_T % 2147483647 == 1)
11884 ? 1 : -1];
11885int
11886main ()
11887{
11888
11889 ;
11890 return 0;
11891}
11892_ACEOF
81ecdfbb 11893if ac_fn_c_try_compile "$LINENO"; then :
ce3c775b 11894 ac_cv_sys_file_offset_bits=64; break
ce3c775b 11895fi
81ecdfbb
RW
11896rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11897 ac_cv_sys_file_offset_bits=unknown
ce3c775b
NC
11898 break
11899done
11900fi
81ecdfbb
RW
11901{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
11902$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
11903case $ac_cv_sys_file_offset_bits in #(
11904 no | unknown) ;;
11905 *)
ce3c775b
NC
11906cat >>confdefs.h <<_ACEOF
11907#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
11908_ACEOF
81ecdfbb
RW
11909;;
11910esac
11911rm -rf conftest*
11912 if test $ac_cv_sys_file_offset_bits = unknown; then
11913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
11914$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
11915if test "${ac_cv_sys_large_files+set}" = set; then :
11916 $as_echo_n "(cached) " >&6
ce3c775b
NC
11917else
11918 while :; do
81ecdfbb 11919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce3c775b
NC
11920/* end confdefs.h. */
11921#include <sys/types.h>
11922 /* Check that off_t can represent 2**63 - 1 correctly.
11923 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11924 since some C++ compilers masquerading as C compilers
11925 incorrectly reject 9223372036854775807. */
11926#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11927 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11928 && LARGE_OFF_T % 2147483647 == 1)
11929 ? 1 : -1];
11930int
11931main ()
11932{
11933
11934 ;
11935 return 0;
11936}
11937_ACEOF
81ecdfbb
RW
11938if ac_fn_c_try_compile "$LINENO"; then :
11939 ac_cv_sys_large_files=no; break
ce3c775b 11940fi
81ecdfbb
RW
11941rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce3c775b
NC
11943/* end confdefs.h. */
11944#define _LARGE_FILES 1
11945#include <sys/types.h>
11946 /* Check that off_t can represent 2**63 - 1 correctly.
11947 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11948 since some C++ compilers masquerading as C compilers
11949 incorrectly reject 9223372036854775807. */
11950#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11951 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11952 && LARGE_OFF_T % 2147483647 == 1)
11953 ? 1 : -1];
11954int
11955main ()
11956{
d7040cdb 11957
ce3c775b
NC
11958 ;
11959 return 0;
11960}
11961_ACEOF
81ecdfbb 11962if ac_fn_c_try_compile "$LINENO"; then :
ce3c775b 11963 ac_cv_sys_large_files=1; break
ce3c775b 11964fi
81ecdfbb
RW
11965rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11966 ac_cv_sys_large_files=unknown
ce3c775b
NC
11967 break
11968done
11969fi
81ecdfbb
RW
11970{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
11971$as_echo "$ac_cv_sys_large_files" >&6; }
11972case $ac_cv_sys_large_files in #(
11973 no | unknown) ;;
11974 *)
ce3c775b
NC
11975cat >>confdefs.h <<_ACEOF
11976#define _LARGE_FILES $ac_cv_sys_large_files
11977_ACEOF
81ecdfbb
RW
11978;;
11979esac
11980rm -rf conftest*
11981 fi
ce3c775b 11982fi
d7040cdb
SE
11983
11984
da2f07f1
JK
11985
11986 if test "$plugins" = "yes"; then
11987 PLUGINS_TRUE=
11988 PLUGINS_FALSE='#'
11989else
11990 PLUGINS_TRUE='#'
11991 PLUGINS_FALSE=
11992fi
11993
11994
11995if test "$plugins" = "yes"; then
11996 if test "$enable_dlopen" != "yes" ; then
11997 as_fn_error "
11998 Building BFD with plugin support requires a host that supports -ldl." "$LINENO" 5
11999 fi
12000 enable_targets="$enable_targets plugin"
12001fi
12002
81ecdfbb
RW
12003# Check whether --enable-64-bit-bfd was given.
12004if test "${enable_64_bit_bfd+set}" = set; then :
12005 enableval=$enable_64_bit_bfd; case "${enableval}" in
d7040cdb
SE
12006 yes) want64=true ;;
12007 no) want64=false ;;
81ecdfbb 12008 *) as_fn_error "bad value ${enableval} for 64-bit-bfd option" "$LINENO" 5 ;;
d7040cdb
SE
12009esac
12010else
12011 want64=false
81ecdfbb
RW
12012fi
12013
12014# Check whether --enable-targets was given.
12015if test "${enable_targets+set}" = set; then :
12016 enableval=$enable_targets; case "${enableval}" in
12017 yes | "") as_fn_error "enable-targets option must specify target names or 'all'" "$LINENO" 5
d7040cdb
SE
12018 ;;
12019 no) enable_targets= ;;
12020 *) enable_targets=$enableval ;;
12021esac
81ecdfbb 12022fi
504b7d20 12023
81ecdfbb
RW
12024
12025# Check whether --with-mmap was given.
12026if test "${with_mmap+set}" = set; then :
12027 withval=$with_mmap; case "${withval}" in
d7040cdb
SE
12028 yes) want_mmap=true ;;
12029 no) want_mmap=false ;;
81ecdfbb 12030 *) as_fn_error "bad value ${withval} for BFD with-mmap option" "$LINENO" 5 ;;
20e95c23 12031esac
252b5132 12032else
d7040cdb 12033 want_mmap=false
81ecdfbb
RW
12034fi
12035
12036# Check whether --enable-secureplt was given.
12037if test "${enable_secureplt+set}" = set; then :
12038 enableval=$enable_secureplt; case "${enableval}" in
d7040cdb
SE
12039 yes) use_secureplt=true ;;
12040 no) use_secureplt=false ;;
81ecdfbb 12041 *) as_fn_error "bad value ${enableval} for secureplt option" "$LINENO" 5 ;;
d7040cdb 12042esac
252b5132 12043else
d7040cdb 12044 use_secureplt=false
81ecdfbb
RW
12045fi
12046if test $use_secureplt = true; then
d7040cdb 12047
81ecdfbb 12048$as_echo "#define USE_SECUREPLT 1" >>confdefs.h
5464f5a1 12049
252b5132 12050fi
20e95c23 12051
0d4a1476
AS
12052DEBUGDIR=${libdir}/debug
12053
81ecdfbb
RW
12054# Check whether --with-separate-debug-dir was given.
12055if test "${with_separate_debug_dir+set}" = set; then :
12056 withval=$with_separate_debug_dir; DEBUGDIR="${withval}"
12057fi
12058
0d4a1476
AS
12059
12060
504b7d20
NC
12061# Check to see if we should allow the generation of
12062# symbols with the ELF standard's STT_COMMON type.
81ecdfbb
RW
12063# Check whether --enable-elf-stt-common was given.
12064if test "${enable_elf_stt_common+set}" = set; then :
12065 enableval=$enable_elf_stt_common; case "${enableval}" in
504b7d20
NC
12066 yes) want_elf_stt_common=true ;;
12067 no) want_elf_stt_common=false ;;
81ecdfbb 12068 *) as_fn_error "bad value ${enableval} for ELF STT_COMMON option" "$LINENO" 5 ;;
504b7d20
NC
12069 esac
12070else
12071 # We have to choose a default behaviour. For native builds we could
8bc9c892
NC
12072# test whether the loader supports the STT_COMMON type, but that would
12073# mean that built binaries could not be exported to older systems where
12074# the loader does not support it. So by default we always choose to
12075# disable this feature.
504b7d20 12076 want_elf_stt_common=false
81ecdfbb
RW
12077fi
12078if test $want_elf_stt_common = true; then
504b7d20 12079
81ecdfbb 12080$as_echo "#define USE_STT_COMMON 1" >>confdefs.h
504b7d20
NC
12081
12082fi
12083
12084
d7040cdb 12085
81ecdfbb
RW
12086# Check whether --with-pkgversion was given.
12087if test "${with_pkgversion+set}" = set; then :
12088 withval=$with_pkgversion; case "$withval" in
12089 yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
d7040cdb
SE
12090 no) PKGVERSION= ;;
12091 *) PKGVERSION="($withval) " ;;
12092 esac
252b5132 12093else
d7040cdb 12094 PKGVERSION="(GNU Binutils) "
252b5132 12095
81ecdfbb
RW
12096fi
12097
20e95c23
DJ
12098
12099
5464f5a1 12100
20e95c23 12101
81ecdfbb
RW
12102# Check whether --with-bugurl was given.
12103if test "${with_bugurl+set}" = set; then :
12104 withval=$with_bugurl; case "$withval" in
12105 yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
d7040cdb
SE
12106 no) BUGURL=
12107 ;;
12108 *) BUGURL="$withval"
12109 ;;
12110 esac
252b5132 12111else
d7040cdb
SE
12112 BUGURL="http://www.sourceware.org/bugzilla/"
12113
81ecdfbb
RW
12114fi
12115
d7040cdb
SE
12116 case ${BUGURL} in
12117 "")
12118 REPORT_BUGS_TO=
12119 REPORT_BUGS_TEXI=
20e95c23
DJ
12120 ;;
12121 *)
d7040cdb
SE
12122 REPORT_BUGS_TO="<$BUGURL>"
12123 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
20e95c23 12124 ;;
d7040cdb
SE
12125 esac;
12126
12127
12128
12129
12130
d1a98e0c
AM
12131GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
12132cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12133/* end confdefs.h. */
12134__GNUC__
12135_ACEOF
12136if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12137 $EGREP "^[0-3]$" >/dev/null 2>&1; then :
12138
12139else
12140 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wshadow"
12141fi
12142rm -f conftest*
12143
d7040cdb 12144
81ecdfbb
RW
12145# Check whether --enable-werror was given.
12146if test "${enable_werror+set}" = set; then :
12147 enableval=$enable_werror; case "${enableval}" in
d7040cdb
SE
12148 yes | y) ERROR_ON_WARNING="yes" ;;
12149 no | n) ERROR_ON_WARNING="no" ;;
81ecdfbb 12150 *) as_fn_error "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
d7040cdb 12151 esac
81ecdfbb
RW
12152fi
12153
d7040cdb 12154
d1a98e0c 12155# Disable -Wformat by default when using gcc on mingw
bb8541b9
L
12156case "${host}" in
12157 *-*-mingw32*)
12158 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
12159 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
12160 fi
12161 ;;
12162 *) ;;
12163esac
12164
d7040cdb
SE
12165# Enable -Werror by default when using gcc
12166if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
12167 ERROR_ON_WARNING=yes
12168fi
12169
12170NO_WERROR=
12171if test "${ERROR_ON_WARNING}" = yes ; then
12172 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
12173 NO_WERROR="-Wno-error"
12174fi
12175
12176if test "${GCC}" = yes ; then
12177 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
12178fi
12179
81ecdfbb
RW
12180# Check whether --enable-build-warnings was given.
12181if test "${enable_build_warnings+set}" = set; then :
12182 enableval=$enable_build_warnings; case "${enableval}" in
d7040cdb
SE
12183 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
12184 no) if test "${GCC}" = yes ; then
12185 WARN_CFLAGS="-w"
12186 fi;;
12187 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
12188 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
12189 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
12190 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
12191 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
20e95c23 12192esac
81ecdfbb
RW
12193fi
12194
d7040cdb
SE
12195
12196if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
12197 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
20e95c23 12198fi
d7040cdb
SE
12199
12200
12201
12202
12203
81ecdfbb 12204ac_config_headers="$ac_config_headers config.h:config.in"
d7040cdb
SE
12205
12206
12207if test -z "$target" ; then
81ecdfbb 12208 as_fn_error "Unrecognized target system type; please check config.sub." "$LINENO" 5
20e95c23
DJ
12209fi
12210
81ecdfbb
RW
12211
12212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
12213$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
12214 # Check whether --enable-maintainer-mode was given.
12215if test "${enable_maintainer_mode+set}" = set; then :
12216 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
d7040cdb
SE
12217else
12218 USE_MAINTAINER_MODE=no
81ecdfbb 12219fi
20e95c23 12220
81ecdfbb
RW
12221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
12222$as_echo "$USE_MAINTAINER_MODE" >&6; }
12223 if test $USE_MAINTAINER_MODE = yes; then
d7040cdb
SE
12224 MAINTAINER_MODE_TRUE=
12225 MAINTAINER_MODE_FALSE='#'
12226else
12227 MAINTAINER_MODE_TRUE='#'
12228 MAINTAINER_MODE_FALSE=
6be7c12c 12229fi
5464f5a1 12230
d7040cdb
SE
12231 MAINT=$MAINTAINER_MODE_TRUE
12232
12233
81ecdfbb 12234 if false; then
d7040cdb
SE
12235 GENINSRC_NEVER_TRUE=
12236 GENINSRC_NEVER_FALSE='#'
20e95c23 12237else
d7040cdb
SE
12238 GENINSRC_NEVER_TRUE='#'
12239 GENINSRC_NEVER_FALSE=
5464f5a1 12240fi
5464f5a1 12241
d7040cdb
SE
12242 case ${build_alias} in
12243 "") build_noncanonical=${build} ;;
12244 *) build_noncanonical=${build_alias} ;;
20e95c23 12245esac
d7040cdb
SE
12246
12247 case ${host_alias} in
12248 "") host_noncanonical=${build_noncanonical} ;;
12249 *) host_noncanonical=${host_alias} ;;
12250esac
12251
12252 case ${target_alias} in
12253 "") target_noncanonical=${host_noncanonical} ;;
12254 *) target_noncanonical=${target_alias} ;;
12255esac
12256
81ecdfbb
RW
12257{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to install libbfd" >&5
12258$as_echo_n "checking whether to install libbfd... " >&6; }
12259 # Check whether --enable-install-libbfd was given.
12260if test "${enable_install_libbfd+set}" = set; then :
12261 enableval=$enable_install_libbfd; install_libbfd_p=$enableval
252b5132 12262else
d7040cdb
SE
12263 if test "${host}" = "${target}" || test "$enable_shared" = "yes"; then
12264 install_libbfd_p=yes
12265 else
12266 install_libbfd_p=no
12267 fi
81ecdfbb 12268fi
d7040cdb 12269
81ecdfbb
RW
12270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $install_libbfd_p" >&5
12271$as_echo "$install_libbfd_p" >&6; }
12272 if test $install_libbfd_p = yes; then
d7040cdb
SE
12273 INSTALL_LIBBFD_TRUE=
12274 INSTALL_LIBBFD_FALSE='#'
12275else
12276 INSTALL_LIBBFD_TRUE='#'
12277 INSTALL_LIBBFD_FALSE=
5464f5a1 12278fi
5464f5a1 12279
d7040cdb 12280 # Need _noncanonical variables for this.
5464f5a1 12281
5464f5a1 12282
d7040cdb
SE
12283
12284
12285 # libbfd.a is a host library containing target dependent code
12286 bfdlibdir='$(libdir)'
12287 bfdincludedir='$(includedir)'
12288 if test "${host}" != "${target}"; then
12289 bfdlibdir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/lib'
12290 bfdincludedir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/include'
20e95c23 12291 fi
6be7c12c 12292
5464f5a1 12293
5464f5a1
NN
12294
12295
5464f5a1 12296
ac48eca1 12297
573e8a1c
RW
12298
12299
d7040cdb
SE
12300host64=false
12301target64=false
12302bfd_default_target_size=32
252b5132 12303
d7040cdb 12304# host stuff:
20e95c23 12305
ec68b083 12306ALL_LINGUAS="fr tr ja es sv da zh_CN ro rw vi fi id ru"
d7040cdb
SE
12307# If we haven't got the data from the intl directory,
12308# assume NLS is disabled.
12309USE_NLS=no
12310LIBINTL=
12311LIBINTL_DEP=
12312INCINTL=
12313XGETTEXT=
12314GMSGFMT=
12315POSUB=
12316
12317if test -f ../intl/config.intl; then
12318 . ../intl/config.intl
252b5132 12319fi
81ecdfbb
RW
12320{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
12321$as_echo_n "checking whether NLS is requested... " >&6; }
d7040cdb 12322if test x"$USE_NLS" != xyes; then
81ecdfbb
RW
12323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12324$as_echo "no" >&6; }
d7040cdb 12325else
81ecdfbb
RW
12326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12327$as_echo "yes" >&6; }
5464f5a1 12328
81ecdfbb 12329$as_echo "#define ENABLE_NLS 1" >>confdefs.h
252b5132 12330
6be7c12c 12331
81ecdfbb
RW
12332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
12333$as_echo_n "checking for catalogs to be installed... " >&6; }
d7040cdb
SE
12334 # Look for .po and .gmo files in the source directory.
12335 CATALOGS=
12336 XLINGUAS=
12337 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
12338 # If there aren't any .gmo files the shell will give us the
12339 # literal string "../path/to/srcdir/po/*.gmo" which has to be
12340 # weeded out.
12341 case "$cat" in *\**)
12342 continue;;
12343 esac
12344 # The quadruple backslash is collapsed to a double backslash
12345 # by the backticks, then collapsed again by the double quotes,
12346 # leaving us with one backslash in the sed expression (right
12347 # before the dot that mustn't act as a wildcard).
12348 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
12349 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
12350 # The user is allowed to set LINGUAS to a list of languages to
12351 # install catalogs for. If it's empty that means "all of them."
12352 if test "x$LINGUAS" = x; then
12353 CATALOGS="$CATALOGS $cat"
12354 XLINGUAS="$XLINGUAS $lang"
12355 else
12356 case "$LINGUAS" in *$lang*)
12357 CATALOGS="$CATALOGS $cat"
12358 XLINGUAS="$XLINGUAS $lang"
12359 ;;
12360 esac
12361 fi
12362 done
12363 LINGUAS="$XLINGUAS"
81ecdfbb
RW
12364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
12365$as_echo "$LINGUAS" >&6; }
d7040cdb 12366
252b5132 12367
d7040cdb 12368 DATADIRNAME=share
252b5132 12369
d7040cdb 12370 INSTOBJEXT=.mo
5464f5a1 12371
d7040cdb 12372 GENCAT=gencat
20e95c23 12373
d7040cdb 12374 CATOBJEXT=.gmo
5464f5a1 12375
20e95c23 12376fi
5464f5a1 12377
d7040cdb
SE
12378 MKINSTALLDIRS=
12379 if test -n "$ac_aux_dir"; then
12380 case "$ac_aux_dir" in
12381 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
12382 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
12383 esac
12384 fi
12385 if test -z "$MKINSTALLDIRS"; then
12386 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
5464f5a1 12387 fi
5464f5a1 12388
5464f5a1 12389
d7040cdb 12390
81ecdfbb
RW
12391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
12392$as_echo_n "checking whether NLS is requested... " >&6; }
12393 # Check whether --enable-nls was given.
12394if test "${enable_nls+set}" = set; then :
12395 enableval=$enable_nls; USE_NLS=$enableval
252b5132 12396else
d7040cdb 12397 USE_NLS=yes
81ecdfbb
RW
12398fi
12399
12400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
12401$as_echo "$USE_NLS" >&6; }
5464f5a1 12402
252b5132 12403
5464f5a1 12404
252b5132 12405
d7040cdb
SE
12406
12407
12408# Prepare PATH_SEPARATOR.
12409# The user is always right.
12410if test "${PATH_SEPARATOR+set}" != set; then
12411 echo "#! /bin/sh" >conf$$.sh
12412 echo "exit 0" >>conf$$.sh
12413 chmod +x conf$$.sh
12414 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12415 PATH_SEPARATOR=';'
20e95c23 12416 else
d7040cdb 12417 PATH_SEPARATOR=:
20e95c23 12418 fi
d7040cdb
SE
12419 rm -f conf$$.sh
12420fi
12421
12422# Find out how to test for executable files. Don't use a zero-byte file,
12423# as systems may use methods other than mode bits to determine executability.
12424cat >conf$$.file <<_ASEOF
12425#! /bin/sh
12426exit 0
12427_ASEOF
12428chmod +x conf$$.file
12429if test -x conf$$.file >/dev/null 2>&1; then
12430 ac_executable_p="test -x"
20e95c23 12431else
d7040cdb 12432 ac_executable_p="test -f"
20e95c23 12433fi
d7040cdb 12434rm -f conf$$.file
5464f5a1 12435
d7040cdb
SE
12436# Extract the first word of "msgfmt", so it can be a program name with args.
12437set dummy msgfmt; ac_word=$2
81ecdfbb
RW
12438{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12439$as_echo_n "checking for $ac_word... " >&6; }
12440if test "${ac_cv_path_MSGFMT+set}" = set; then :
12441 $as_echo_n "(cached) " >&6
d7040cdb
SE
12442else
12443 case "$MSGFMT" in
12444 [\\/]* | ?:[\\/]*)
12445 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
12446 ;;
12447 *)
12448 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12449 for ac_dir in $PATH; do
12450 IFS="$ac_save_IFS"
12451 test -z "$ac_dir" && ac_dir=.
12452 for ac_exec_ext in '' $ac_executable_extensions; do
12453 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12454 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
12455 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12456 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
12457 break 2
12458 fi
12459 fi
12460 done
12461 done
12462 IFS="$ac_save_IFS"
12463 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
12464 ;;
12465esac
5464f5a1 12466fi
d7040cdb
SE
12467MSGFMT="$ac_cv_path_MSGFMT"
12468if test "$MSGFMT" != ":"; then
81ecdfbb
RW
12469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
12470$as_echo "$MSGFMT" >&6; }
20e95c23 12471else
81ecdfbb
RW
12472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12473$as_echo "no" >&6; }
252b5132 12474fi
d7040cdb
SE
12475
12476 # Extract the first word of "gmsgfmt", so it can be a program name with args.
12477set dummy gmsgfmt; ac_word=$2
81ecdfbb
RW
12478{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12479$as_echo_n "checking for $ac_word... " >&6; }
12480if test "${ac_cv_path_GMSGFMT+set}" = set; then :
12481 $as_echo_n "(cached) " >&6
252b5132 12482else
d7040cdb
SE
12483 case $GMSGFMT in
12484 [\\/]* | ?:[\\/]*)
12485 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
12486 ;;
12487 *)
12488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12489for as_dir in $PATH
12490do
12491 IFS=$as_save_IFS
12492 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12493 for ac_exec_ext in '' $ac_executable_extensions; do
12494 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d7040cdb 12495 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 12496 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d7040cdb
SE
12497 break 2
12498 fi
12499done
81ecdfbb
RW
12500 done
12501IFS=$as_save_IFS
5464f5a1 12502
d7040cdb
SE
12503 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
12504 ;;
12505esac
252b5132 12506fi
d7040cdb 12507GMSGFMT=$ac_cv_path_GMSGFMT
d7040cdb 12508if test -n "$GMSGFMT"; then
81ecdfbb
RW
12509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
12510$as_echo "$GMSGFMT" >&6; }
252b5132 12511else
81ecdfbb
RW
12512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12513$as_echo "no" >&6; }
252b5132
RH
12514fi
12515
20e95c23
DJ
12516
12517
81ecdfbb 12518
d7040cdb
SE
12519# Prepare PATH_SEPARATOR.
12520# The user is always right.
12521if test "${PATH_SEPARATOR+set}" != set; then
12522 echo "#! /bin/sh" >conf$$.sh
12523 echo "exit 0" >>conf$$.sh
12524 chmod +x conf$$.sh
12525 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12526 PATH_SEPARATOR=';'
12527 else
12528 PATH_SEPARATOR=:
12529 fi
12530 rm -f conf$$.sh
252b5132 12531fi
20e95c23 12532
d7040cdb
SE
12533# Find out how to test for executable files. Don't use a zero-byte file,
12534# as systems may use methods other than mode bits to determine executability.
12535cat >conf$$.file <<_ASEOF
12536#! /bin/sh
12537exit 0
12538_ASEOF
12539chmod +x conf$$.file
12540if test -x conf$$.file >/dev/null 2>&1; then
12541 ac_executable_p="test -x"
12542else
12543 ac_executable_p="test -f"
12544fi
12545rm -f conf$$.file
252b5132 12546
d7040cdb
SE
12547# Extract the first word of "xgettext", so it can be a program name with args.
12548set dummy xgettext; ac_word=$2
81ecdfbb
RW
12549{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12550$as_echo_n "checking for $ac_word... " >&6; }
12551if test "${ac_cv_path_XGETTEXT+set}" = set; then :
12552 $as_echo_n "(cached) " >&6
20e95c23 12553else
d7040cdb
SE
12554 case "$XGETTEXT" in
12555 [\\/]* | ?:[\\/]*)
12556 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
12557 ;;
12558 *)
12559 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12560 for ac_dir in $PATH; do
12561 IFS="$ac_save_IFS"
12562 test -z "$ac_dir" && ac_dir=.
12563 for ac_exec_ext in '' $ac_executable_extensions; do
12564 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12565 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
12566 (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
12567 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
12568 break 2
12569 fi
12570 fi
12571 done
12572 done
12573 IFS="$ac_save_IFS"
12574 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
12575 ;;
12576esac
12577fi
12578XGETTEXT="$ac_cv_path_XGETTEXT"
12579if test "$XGETTEXT" != ":"; then
81ecdfbb
RW
12580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
12581$as_echo "$XGETTEXT" >&6; }
252b5132 12582else
81ecdfbb
RW
12583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12584$as_echo "no" >&6; }
252b5132
RH
12585fi
12586
d7040cdb 12587 rm -f messages.po
5464f5a1 12588
252b5132 12589
d7040cdb
SE
12590# Prepare PATH_SEPARATOR.
12591# The user is always right.
12592if test "${PATH_SEPARATOR+set}" != set; then
12593 echo "#! /bin/sh" >conf$$.sh
12594 echo "exit 0" >>conf$$.sh
12595 chmod +x conf$$.sh
12596 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12597 PATH_SEPARATOR=';'
12598 else
12599 PATH_SEPARATOR=:
12600 fi
12601 rm -f conf$$.sh
252b5132
RH
12602fi
12603
d7040cdb
SE
12604# Find out how to test for executable files. Don't use a zero-byte file,
12605# as systems may use methods other than mode bits to determine executability.
12606cat >conf$$.file <<_ASEOF
12607#! /bin/sh
12608exit 0
12609_ASEOF
12610chmod +x conf$$.file
12611if test -x conf$$.file >/dev/null 2>&1; then
12612 ac_executable_p="test -x"
5464f5a1 12613else
d7040cdb 12614 ac_executable_p="test -f"
20e95c23 12615fi
d7040cdb 12616rm -f conf$$.file
5464f5a1 12617
d7040cdb
SE
12618# Extract the first word of "msgmerge", so it can be a program name with args.
12619set dummy msgmerge; ac_word=$2
81ecdfbb
RW
12620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12621$as_echo_n "checking for $ac_word... " >&6; }
12622if test "${ac_cv_path_MSGMERGE+set}" = set; then :
12623 $as_echo_n "(cached) " >&6
d7040cdb
SE
12624else
12625 case "$MSGMERGE" in
12626 [\\/]* | ?:[\\/]*)
12627 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
12628 ;;
12629 *)
12630 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12631 for ac_dir in $PATH; do
12632 IFS="$ac_save_IFS"
12633 test -z "$ac_dir" && ac_dir=.
12634 for ac_exec_ext in '' $ac_executable_extensions; do
12635 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12636 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
12637 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
12638 break 2
12639 fi
12640 fi
12641 done
12642 done
12643 IFS="$ac_save_IFS"
12644 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
12645 ;;
12646esac
5464f5a1 12647fi
d7040cdb
SE
12648MSGMERGE="$ac_cv_path_MSGMERGE"
12649if test "$MSGMERGE" != ":"; then
81ecdfbb
RW
12650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
12651$as_echo "$MSGMERGE" >&6; }
20e95c23 12652else
81ecdfbb
RW
12653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12654$as_echo "no" >&6; }
d7040cdb 12655fi
20e95c23 12656
5464f5a1 12657
d7040cdb
SE
12658 if test "$GMSGFMT" != ":"; then
12659 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
12660 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12661 : ;
12662 else
12663 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
81ecdfbb
RW
12664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
12665$as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
d7040cdb
SE
12666 GMSGFMT=":"
12667 fi
12668 fi
252b5132 12669
d7040cdb
SE
12670 if test "$XGETTEXT" != ":"; then
12671 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
12672 (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
12673 : ;
12674 else
81ecdfbb
RW
12675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
12676$as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
d7040cdb
SE
12677 XGETTEXT=":"
12678 fi
12679 rm -f messages.po
12680 fi
6be7c12c 12681
81ecdfbb 12682 ac_config_commands="$ac_config_commands default-1"
5464f5a1 12683
252b5132 12684
5464f5a1 12685
d7040cdb
SE
12686# Permit host specific settings.
12687. ${srcdir}/configure.host
12688
12689
252b5132 12690
252b5132 12691
d7040cdb 12692BFD_HOST_64BIT_LONG=0
d2df793a 12693BFD_HOST_64BIT_LONG_LONG=0
d7040cdb
SE
12694BFD_HOST_64_BIT_DEFINED=0
12695BFD_HOST_64_BIT=
12696BFD_HOST_U_64_BIT=
d2df793a 12697BFD_HOSTPTR_T="unsigned long"
6be7c12c 12698
81ecdfbb
RW
12699# The cast to long int works around a bug in the HP C Compiler
12700# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12701# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12702# This bug is HP SR number 8606223364.
12703{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
12704$as_echo_n "checking size of long long... " >&6; }
12705if test "${ac_cv_sizeof_long_long+set}" = set; then :
12706 $as_echo_n "(cached) " >&6
6726e1ea 12707else
81ecdfbb
RW
12708 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
12709
12710else
12711 if test "$ac_cv_type_long_long" = yes; then
12712 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12713$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12714{ as_fn_set_status 77
12715as_fn_error "cannot compute sizeof (long long)
12716See \`config.log' for more details." "$LINENO" 5; }; }
12717 else
12718 ac_cv_sizeof_long_long=0
12719 fi
12720fi
12721
12722fi
12723{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
12724$as_echo "$ac_cv_sizeof_long_long" >&6; }
12725
12726
12727
12728cat >>confdefs.h <<_ACEOF
12729#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5464f5a1 12730_ACEOF
81ecdfbb
RW
12731
12732
12733# The cast to long int works around a bug in the HP C Compiler
12734# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12735# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12736# This bug is HP SR number 8606223364.
12737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
12738$as_echo_n "checking size of void *... " >&6; }
12739if test "${ac_cv_sizeof_void_p+set}" = set; then :
12740 $as_echo_n "(cached) " >&6
6726e1ea 12741else
81ecdfbb 12742 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
5464f5a1 12743
81ecdfbb
RW
12744else
12745 if test "$ac_cv_type_void_p" = yes; then
12746 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12747$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12748{ as_fn_set_status 77
12749as_fn_error "cannot compute sizeof (void *)
12750See \`config.log' for more details." "$LINENO" 5; }; }
12751 else
12752 ac_cv_sizeof_void_p=0
12753 fi
6726e1ea 12754fi
81ecdfbb 12755
6726e1ea 12756fi
81ecdfbb
RW
12757{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
12758$as_echo "$ac_cv_sizeof_void_p" >&6; }
6726e1ea 12759
6726e1ea 12760
2ba49b59 12761
81ecdfbb
RW
12762cat >>confdefs.h <<_ACEOF
12763#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5464f5a1 12764_ACEOF
81ecdfbb
RW
12765
12766
12767# The cast to long int works around a bug in the HP C Compiler
12768# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12769# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12770# This bug is HP SR number 8606223364.
12771{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
12772$as_echo_n "checking size of long... " >&6; }
12773if test "${ac_cv_sizeof_long+set}" = set; then :
12774 $as_echo_n "(cached) " >&6
6726e1ea 12775else
81ecdfbb 12776 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
5464f5a1 12777
252b5132 12778else
81ecdfbb
RW
12779 if test "$ac_cv_type_long" = yes; then
12780 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12781$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12782{ as_fn_set_status 77
12783as_fn_error "cannot compute sizeof (long)
12784See \`config.log' for more details." "$LINENO" 5; }; }
12785 else
12786 ac_cv_sizeof_long=0
12787 fi
12788fi
5464f5a1 12789
81ecdfbb
RW
12790fi
12791{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
12792$as_echo "$ac_cv_sizeof_long" >&6; }
2ba49b59 12793
81ecdfbb
RW
12794
12795
12796cat >>confdefs.h <<_ACEOF
12797#define SIZEOF_LONG $ac_cv_sizeof_long
5464f5a1 12798_ACEOF
2ba49b59 12799
2ba49b59 12800
81ecdfbb
RW
12801
12802if test "x${ac_cv_sizeof_void_p}" = "x8"; then
12803 host64=true
252b5132 12804fi
5464f5a1 12805
81ecdfbb
RW
12806if test "x${ac_cv_sizeof_long}" = "x8"; then
12807 BFD_HOST_64BIT_LONG=1
12808 test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long"
12809 test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long"
12810elif test "x${ac_cv_sizeof_long_long}" = "x8"; then
12811 BFD_HOST_64BIT_LONG_LONG=1
12812 test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long long"
12813 test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long long"
12814 if test "x${ac_cv_sizeof_void_p}" = "x8"; then
12815 BFD_HOSTPTR_T="unsigned long long"
12816 fi
252b5132 12817fi
81ecdfbb
RW
12818
12819if test -n "${HOST_64BIT_TYPE}" -a -n "${HOST_U_64BIT_TYPE}"; then
12820 BFD_HOST_64_BIT_DEFINED=1
12821 BFD_HOST_64_BIT="${HOST_64BIT_TYPE}"
12822 BFD_HOST_U_64_BIT="${HOST_U_64BIT_TYPE}"
2ba49b59 12823fi
5464f5a1 12824
5464f5a1 12825
2ba49b59 12826
2ba49b59 12827
5464f5a1 12828
81ecdfbb
RW
12829
12830
12831
12832# Put a plausible default for CC_FOR_BUILD in Makefile.
12833if test -z "$CC_FOR_BUILD"; then
12834 if test "x$cross_compiling" = "xno"; then
12835 CC_FOR_BUILD='$(CC)'
12836 else
12837 CC_FOR_BUILD=gcc
12838 fi
2ba49b59 12839fi
81ecdfbb
RW
12840
12841# Also set EXEEXT_FOR_BUILD.
12842if test "x$cross_compiling" = "xno"; then
12843 EXEEXT_FOR_BUILD='$(EXEEXT)'
12844else
12845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for build system executable suffix" >&5
12846$as_echo_n "checking for build system executable suffix... " >&6; }
12847if test "${bfd_cv_build_exeext+set}" = set; then :
12848 $as_echo_n "(cached) " >&6
6be7c12c 12849else
81ecdfbb
RW
12850 rm -f conftest*
12851 echo 'int main () { return 0; }' > conftest.c
12852 bfd_cv_build_exeext=
12853 ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5
12854 for file in conftest.*; do
12855 case $file in
12856 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
12857 *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
12858 esac
12859 done
12860 rm -f conftest*
12861 test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
5464f5a1 12862fi
81ecdfbb
RW
12863{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_build_exeext" >&5
12864$as_echo "$bfd_cv_build_exeext" >&6; }
12865 EXEEXT_FOR_BUILD=""
12866 test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
5464f5a1 12867fi
5464f5a1 12868
5464f5a1 12869
81ecdfbb
RW
12870for ac_header in alloca.h stddef.h string.h strings.h stdlib.h time.h unistd.h
12871do :
12872 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12873ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12874eval as_val=\$$as_ac_Header
12875 if test "x$as_val" = x""yes; then :
12876 cat >>confdefs.h <<_ACEOF
12877#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
d2df793a 12878_ACEOF
d2df793a 12879
d2df793a 12880fi
d2df793a 12881
81ecdfbb 12882done
d2df793a 12883
81ecdfbb
RW
12884for ac_header in fcntl.h sys/file.h sys/time.h sys/stat.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 12898
d2df793a 12899
f3b4f6d0 12900inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
81ecdfbb 12901
f3b4f6d0
PB
12902acx_cv_header_stdint=stddef.h
12903acx_cv_header_stdint_kind="(already complete)"
12904for i in stdint.h $inttype_headers; do
12905 unset ac_cv_type_uintptr_t
12906 unset ac_cv_type_uintmax_t
12907 unset ac_cv_type_int_least32_t
12908 unset ac_cv_type_int_fast32_t
12909 unset ac_cv_type_uint64_t
12910 $as_echo_n "looking for a compliant stdint.h in $i, " >&6
12911 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "#include <sys/types.h>
12912#include <$i>
12913"
12914if test "x$ac_cv_type_uintmax_t" = x""yes; then :
12915 acx_cv_header_stdint=$i
d2df793a 12916else
f3b4f6d0
PB
12917 continue
12918fi
81ecdfbb 12919
f3b4f6d0
PB
12920 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
12921#include <$i>
12922"
12923if test "x$ac_cv_type_uintptr_t" = x""yes; then :
d2df793a 12924
81ecdfbb 12925else
f3b4f6d0 12926 acx_cv_header_stdint_kind="(mostly complete)"
d2df793a 12927fi
81ecdfbb 12928
f3b4f6d0
PB
12929 ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <sys/types.h>
12930#include <$i>
12931"
12932if test "x$ac_cv_type_int_least32_t" = x""yes; then :
12933
d2df793a 12934else
f3b4f6d0 12935 acx_cv_header_stdint_kind="(mostly complete)"
81ecdfbb 12936fi
81ecdfbb 12937
f3b4f6d0
PB
12938 ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include <sys/types.h>
12939#include <$i>
12940"
12941if test "x$ac_cv_type_int_fast32_t" = x""yes; then :
81ecdfbb 12942
f3b4f6d0
PB
12943else
12944 acx_cv_header_stdint_kind="(mostly complete)"
12945fi
81ecdfbb 12946
f3b4f6d0
PB
12947 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
12948#include <$i>
12949"
12950if test "x$ac_cv_type_uint64_t" = x""yes; then :
d2df793a 12951
07c58694 12952else
f3b4f6d0
PB
12953 acx_cv_header_stdint_kind="(lacks uint64_t)"
12954fi
81ecdfbb 12955
f3b4f6d0
PB
12956 break
12957done
12958if test "$acx_cv_header_stdint" = stddef.h; then
12959 acx_cv_header_stdint_kind="(lacks uintmax_t)"
12960 for i in stdint.h $inttype_headers; do
12961 unset ac_cv_type_uintptr_t
12962 unset ac_cv_type_uint32_t
12963 unset ac_cv_type_uint64_t
12964 $as_echo_n "looking for an incomplete stdint.h in $i, " >&6
12965 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <sys/types.h>
12966#include <$i>
12967"
12968if test "x$ac_cv_type_uint32_t" = x""yes; then :
12969 acx_cv_header_stdint=$i
12970else
12971 continue
d2df793a 12972fi
81ecdfbb 12973
f3b4f6d0
PB
12974 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
12975#include <$i>
12976"
12977if test "x$ac_cv_type_uint64_t" = x""yes; then :
81ecdfbb 12978
f3b4f6d0 12979fi
81ecdfbb 12980
f3b4f6d0
PB
12981 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
12982#include <$i>
12983"
12984if test "x$ac_cv_type_uintptr_t" = x""yes; then :
81ecdfbb 12985
f3b4f6d0 12986fi
81ecdfbb 12987
f3b4f6d0
PB
12988 break
12989 done
12990fi
12991if test "$acx_cv_header_stdint" = stddef.h; then
12992 acx_cv_header_stdint_kind="(u_intXX_t style)"
12993 for i in sys/types.h $inttype_headers; do
12994 unset ac_cv_type_u_int32_t
12995 unset ac_cv_type_u_int64_t
12996 $as_echo_n "looking for u_intXX_t types in $i, " >&6
12997 ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <sys/types.h>
12998#include <$i>
12999"
13000if test "x$ac_cv_type_u_int32_t" = x""yes; then :
13001 acx_cv_header_stdint=$i
07c58694 13002else
f3b4f6d0
PB
13003 continue
13004fi
81ecdfbb 13005
f3b4f6d0
PB
13006 ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include <sys/types.h>
13007#include <$i>
13008"
13009if test "x$ac_cv_type_u_int64_t" = x""yes; then :
81ecdfbb 13010
f3b4f6d0 13011fi
81ecdfbb 13012
f3b4f6d0
PB
13013 break
13014 done
d2df793a 13015fi
f3b4f6d0
PB
13016if test "$acx_cv_header_stdint" = stddef.h; then
13017 acx_cv_header_stdint_kind="(using manual detection)"
d2df793a 13018fi
81ecdfbb 13019
f3b4f6d0
PB
13020test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
13021test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
13022test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
13023test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
13024test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
81ecdfbb 13025
f3b4f6d0 13026# ----------------- Summarize what we found so far
07c58694 13027
f3b4f6d0
PB
13028{ $as_echo "$as_me:${as_lineno-$LINENO}: checking what to include in bfd_stdint.h" >&5
13029$as_echo_n "checking what to include in bfd_stdint.h... " >&6; }
81ecdfbb 13030
f3b4f6d0
PB
13031case `$as_basename -- bfd_stdint.h ||
13032$as_expr X/bfd_stdint.h : '.*/\([^/][^/]*\)/*$' \| \
13033 Xbfd_stdint.h : 'X\(//\)$' \| \
13034 Xbfd_stdint.h : 'X\(/\)' \| . 2>/dev/null ||
13035$as_echo X/bfd_stdint.h |
13036 sed '/^.*\/\([^/][^/]*\)\/*$/{
13037 s//\1/
13038 q
13039 }
13040 /^X\/\(\/\/\)$/{
13041 s//\1/
13042 q
13043 }
13044 /^X\/\(\/\).*/{
13045 s//\1/
13046 q
13047 }
13048 s/.*/./; q'` in
13049 stdint.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
13050$as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
13051 inttypes.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
13052$as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
13053 *) ;;
13054esac
81ecdfbb 13055
f3b4f6d0
PB
13056{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
13057$as_echo "$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6; }
5464f5a1 13058
f3b4f6d0 13059# ----------------- done included file, check C basic types --------
2ba49b59 13060
f3b4f6d0
PB
13061# Lacking an uintptr_t? Test size of void *
13062case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
13063 stddef.h:* | *:no) # The cast to long int works around a bug in the HP C Compiler
13064# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13065# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13066# This bug is HP SR number 8606223364.
13067{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
13068$as_echo_n "checking size of void *... " >&6; }
13069if test "${ac_cv_sizeof_void_p+set}" = set; then :
13070 $as_echo_n "(cached) " >&6
13071else
13072 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
2ba49b59 13073
f3b4f6d0
PB
13074else
13075 if test "$ac_cv_type_void_p" = yes; then
13076 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13077$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13078{ as_fn_set_status 77
13079as_fn_error "cannot compute sizeof (void *)
13080See \`config.log' for more details." "$LINENO" 5; }; }
13081 else
13082 ac_cv_sizeof_void_p=0
13083 fi
13084fi
81ecdfbb 13085
f3b4f6d0
PB
13086fi
13087{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
13088$as_echo "$ac_cv_sizeof_void_p" >&6; }
81ecdfbb 13089
07c58694
PB
13090
13091
13092cat >>confdefs.h <<_ACEOF
f3b4f6d0 13093#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
07c58694 13094_ACEOF
07c58694 13095
f3b4f6d0
PB
13096 ;;
13097esac
07c58694 13098
f3b4f6d0
PB
13099# Lacking an uint64_t? Test size of long
13100case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
13101 stddef.h:*:* | *:no:no) # The cast to long int works around a bug in the HP C Compiler
13102# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13103# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13104# This bug is HP SR number 8606223364.
13105{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
13106$as_echo_n "checking size of long... " >&6; }
13107if test "${ac_cv_sizeof_long+set}" = set; then :
81ecdfbb 13108 $as_echo_n "(cached) " >&6
5464f5a1 13109else
f3b4f6d0 13110 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
07c58694 13111
2ba49b59 13112else
f3b4f6d0
PB
13113 if test "$ac_cv_type_long" = yes; then
13114 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13115$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13116{ as_fn_set_status 77
13117as_fn_error "cannot compute sizeof (long)
13118See \`config.log' for more details." "$LINENO" 5; }; }
13119 else
13120 ac_cv_sizeof_long=0
13121 fi
81ecdfbb 13122fi
2ba49b59 13123
f3b4f6d0
PB
13124fi
13125{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
13126$as_echo "$ac_cv_sizeof_long" >&6; }
81ecdfbb 13127
5464f5a1 13128
81ecdfbb 13129
f3b4f6d0
PB
13130cat >>confdefs.h <<_ACEOF
13131#define SIZEOF_LONG $ac_cv_sizeof_long
13132_ACEOF
07c58694 13133
f3b4f6d0
PB
13134 ;;
13135esac
2ba49b59 13136
f3b4f6d0
PB
13137if test $acx_cv_header_stdint = stddef.h; then
13138 # Lacking a good header? Test size of everything and deduce all types.
13139 # The cast to long int works around a bug in the HP C Compiler
13140# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13141# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13142# This bug is HP SR number 8606223364.
13143{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
13144$as_echo_n "checking size of int... " >&6; }
13145if test "${ac_cv_sizeof_int+set}" = set; then :
13146 $as_echo_n "(cached) " >&6
81ecdfbb 13147else
f3b4f6d0 13148 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
81ecdfbb 13149
f3b4f6d0
PB
13150else
13151 if test "$ac_cv_type_int" = yes; then
13152 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13153$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13154{ as_fn_set_status 77
13155as_fn_error "cannot compute sizeof (int)
13156See \`config.log' for more details." "$LINENO" 5; }; }
13157 else
13158 ac_cv_sizeof_int=0
13159 fi
2ba49b59 13160fi
81ecdfbb 13161
f3b4f6d0
PB
13162fi
13163{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
13164$as_echo "$ac_cv_sizeof_int" >&6; }
81ecdfbb
RW
13165
13166
07c58694
PB
13167
13168cat >>confdefs.h <<_ACEOF
f3b4f6d0 13169#define SIZEOF_INT $ac_cv_sizeof_int
07c58694 13170_ACEOF
81ecdfbb 13171
07c58694 13172
f3b4f6d0
PB
13173 # The cast to long int works around a bug in the HP C Compiler
13174# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13175# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13176# This bug is HP SR number 8606223364.
13177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
13178$as_echo_n "checking size of short... " >&6; }
13179if test "${ac_cv_sizeof_short+set}" = set; then :
13180 $as_echo_n "(cached) " >&6
13181else
13182 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
07c58694 13183
f3b4f6d0
PB
13184else
13185 if test "$ac_cv_type_short" = yes; then
13186 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13187$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13188{ as_fn_set_status 77
13189as_fn_error "cannot compute sizeof (short)
13190See \`config.log' for more details." "$LINENO" 5; }; }
13191 else
13192 ac_cv_sizeof_short=0
13193 fi
13194fi
07c58694 13195
f3b4f6d0
PB
13196fi
13197{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
13198$as_echo "$ac_cv_sizeof_short" >&6; }
07c58694
PB
13199
13200
13201
f3b4f6d0
PB
13202cat >>confdefs.h <<_ACEOF
13203#define SIZEOF_SHORT $ac_cv_sizeof_short
13204_ACEOF
07c58694
PB
13205
13206
f3b4f6d0
PB
13207 # The cast to long int works around a bug in the HP C Compiler
13208# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13209# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13210# This bug is HP SR number 8606223364.
13211{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
13212$as_echo_n "checking size of char... " >&6; }
13213if test "${ac_cv_sizeof_char+set}" = set; then :
13214 $as_echo_n "(cached) " >&6
13215else
13216 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
07c58694 13217
f3b4f6d0
PB
13218else
13219 if test "$ac_cv_type_char" = yes; then
13220 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13221$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13222{ as_fn_set_status 77
13223as_fn_error "cannot compute sizeof (char)
13224See \`config.log' for more details." "$LINENO" 5; }; }
13225 else
13226 ac_cv_sizeof_char=0
13227 fi
13228fi
07c58694 13229
f3b4f6d0
PB
13230fi
13231{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
13232$as_echo "$ac_cv_sizeof_char" >&6; }
07c58694
PB
13233
13234
07c58694 13235
2ba49b59 13236cat >>confdefs.h <<_ACEOF
f3b4f6d0 13237#define SIZEOF_CHAR $ac_cv_sizeof_char
2ba49b59
KC
13238_ACEOF
13239
13240
2ba49b59 13241
f3b4f6d0
PB
13242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int8_t" >&5
13243$as_echo_n "checking for type equivalent to int8_t... " >&6; }
13244 case "$ac_cv_sizeof_char" in
13245 1) acx_cv_type_int8_t=char ;;
13246 *) { as_fn_set_status please report a bug
13247as_fn_error "no 8-bit type" "$LINENO" 5; }
13248 esac
13249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int8_t" >&5
13250$as_echo "$acx_cv_type_int8_t" >&6; }
13251
13252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int16_t" >&5
13253$as_echo_n "checking for type equivalent to int16_t... " >&6; }
13254 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
13255 2:*) acx_cv_type_int16_t=int ;;
13256 *:2) acx_cv_type_int16_t=short ;;
13257 *) { as_fn_set_status please report a bug
13258as_fn_error "no 16-bit type" "$LINENO" 5; }
13259 esac
13260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int16_t" >&5
13261$as_echo "$acx_cv_type_int16_t" >&6; }
13262
13263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int32_t" >&5
13264$as_echo_n "checking for type equivalent to int32_t... " >&6; }
13265 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
13266 4:*) acx_cv_type_int32_t=int ;;
13267 *:4) acx_cv_type_int32_t=long ;;
13268 *) { as_fn_set_status please report a bug
13269as_fn_error "no 32-bit type" "$LINENO" 5; }
13270 esac
13271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int32_t" >&5
13272$as_echo "$acx_cv_type_int32_t" >&6; }
81ecdfbb 13273fi
2ba49b59 13274
f3b4f6d0 13275# These tests are here to make the output prettier
07c58694 13276
f3b4f6d0
PB
13277if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
13278 case "$ac_cv_sizeof_long" in
13279 8) acx_cv_type_int64_t=long ;;
13280 esac
13281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int64_t" >&5
13282$as_echo_n "checking for type equivalent to int64_t... " >&6; }
13283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
13284$as_echo "${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6; }
13285fi
13286
13287# Now we can use the above types
13288
13289if test "$ac_cv_type_uintptr_t" != yes; then
13290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to intptr_t" >&5
13291$as_echo_n "checking for type equivalent to intptr_t... " >&6; }
13292 case $ac_cv_sizeof_void_p in
13293 2) acx_cv_type_intptr_t=int16_t ;;
13294 4) acx_cv_type_intptr_t=int32_t ;;
13295 8) acx_cv_type_intptr_t=int64_t ;;
13296 *) { as_fn_set_status please report a bug
13297as_fn_error "no equivalent for intptr_t" "$LINENO" 5; }
13298 esac
13299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_intptr_t" >&5
13300$as_echo "$acx_cv_type_intptr_t" >&6; }
13301fi
07c58694 13302
f3b4f6d0 13303# ----------------- done all checks, emit header -------------
81ecdfbb 13304ac_config_commands="$ac_config_commands bfd_stdint.h"
2ba49b59
KC
13305
13306
d2df793a 13307
81ecdfbb
RW
13308{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
13309$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
13310if test "${ac_cv_header_time+set}" = set; then :
13311 $as_echo_n "(cached) " >&6
2ba49b59 13312else
81ecdfbb
RW
13313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13314/* end confdefs.h. */
13315#include <sys/types.h>
13316#include <sys/time.h>
13317#include <time.h>
13318
13319int
13320main ()
13321{
13322if ((struct tm *) 0)
13323return 0;
13324 ;
13325 return 0;
13326}
13327_ACEOF
13328if ac_fn_c_try_compile "$LINENO"; then :
13329 ac_cv_header_time=yes
2ba49b59 13330else
81ecdfbb 13331 ac_cv_header_time=no
2ba49b59 13332fi
81ecdfbb 13333rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2ba49b59 13334fi
81ecdfbb
RW
13335{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
13336$as_echo "$ac_cv_header_time" >&6; }
13337if test $ac_cv_header_time = yes; then
2ba49b59 13338
81ecdfbb 13339$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
2ba49b59 13340
2ba49b59 13341fi
81ecdfbb
RW
13342
13343ac_header_dirent=no
13344for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13345 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
13347$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
13348if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
13349 $as_echo_n "(cached) " >&6
2ba49b59 13350else
81ecdfbb 13351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2ba49b59 13352/* end confdefs.h. */
81ecdfbb
RW
13353#include <sys/types.h>
13354#include <$ac_hdr>
13355
13356int
13357main ()
13358{
13359if ((DIR *) 0)
13360return 0;
13361 ;
13362 return 0;
13363}
2ba49b59 13364_ACEOF
81ecdfbb
RW
13365if ac_fn_c_try_compile "$LINENO"; then :
13366 eval "$as_ac_Header=yes"
2ba49b59 13367else
81ecdfbb
RW
13368 eval "$as_ac_Header=no"
13369fi
13370rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13371fi
13372eval ac_res=\$$as_ac_Header
13373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13374$as_echo "$ac_res" >&6; }
13375eval as_val=\$$as_ac_Header
13376 if test "x$as_val" = x""yes; then :
13377 cat >>confdefs.h <<_ACEOF
13378#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13379_ACEOF
2ba49b59 13380
81ecdfbb 13381ac_header_dirent=$ac_hdr; break
2ba49b59 13382fi
2ba49b59 13383
81ecdfbb
RW
13384done
13385# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13386if test $ac_header_dirent = dirent.h; then
13387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
13388$as_echo_n "checking for library containing opendir... " >&6; }
13389if test "${ac_cv_search_opendir+set}" = set; then :
13390 $as_echo_n "(cached) " >&6
13391else
13392 ac_func_search_save_LIBS=$LIBS
13393cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2ba49b59 13394/* end confdefs.h. */
81ecdfbb
RW
13395
13396/* Override any GCC internal prototype to avoid an error.
13397 Use char because int might match the return type of a GCC
13398 builtin and then its argument prototype would still apply. */
13399#ifdef __cplusplus
13400extern "C"
13401#endif
13402char opendir ();
13403int
13404main ()
13405{
13406return opendir ();
13407 ;
13408 return 0;
13409}
2ba49b59 13410_ACEOF
81ecdfbb
RW
13411for ac_lib in '' dir; do
13412 if test -z "$ac_lib"; then
13413 ac_res="none required"
2ba49b59 13414 else
81ecdfbb
RW
13415 ac_res=-l$ac_lib
13416 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2ba49b59 13417 fi
81ecdfbb
RW
13418 if ac_fn_c_try_link "$LINENO"; then :
13419 ac_cv_search_opendir=$ac_res
2ba49b59 13420fi
81ecdfbb
RW
13421rm -f core conftest.err conftest.$ac_objext \
13422 conftest$ac_exeext
13423 if test "${ac_cv_search_opendir+set}" = set; then :
13424 break
2ba49b59 13425fi
81ecdfbb
RW
13426done
13427if test "${ac_cv_search_opendir+set}" = set; then :
2ba49b59 13428
2ba49b59 13429else
81ecdfbb 13430 ac_cv_search_opendir=no
2ba49b59 13431fi
81ecdfbb
RW
13432rm conftest.$ac_ext
13433LIBS=$ac_func_search_save_LIBS
2ba49b59 13434fi
81ecdfbb
RW
13435{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
13436$as_echo "$ac_cv_search_opendir" >&6; }
13437ac_res=$ac_cv_search_opendir
13438if test "$ac_res" != no; then :
13439 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
2ba49b59
KC
13440
13441fi
13442
81ecdfbb
RW
13443else
13444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
13445$as_echo_n "checking for library containing opendir... " >&6; }
13446if test "${ac_cv_search_opendir+set}" = set; then :
13447 $as_echo_n "(cached) " >&6
13448else
13449 ac_func_search_save_LIBS=$LIBS
13450cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13451/* end confdefs.h. */
2ba49b59 13452
81ecdfbb
RW
13453/* Override any GCC internal prototype to avoid an error.
13454 Use char because int might match the return type of a GCC
13455 builtin and then its argument prototype would still apply. */
13456#ifdef __cplusplus
13457extern "C"
13458#endif
13459char opendir ();
13460int
13461main ()
13462{
13463return opendir ();
13464 ;
13465 return 0;
13466}
13467_ACEOF
13468for ac_lib in '' x; do
13469 if test -z "$ac_lib"; then
13470 ac_res="none required"
13471 else
13472 ac_res=-l$ac_lib
13473 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13474 fi
13475 if ac_fn_c_try_link "$LINENO"; then :
13476 ac_cv_search_opendir=$ac_res
13477fi
13478rm -f core conftest.err conftest.$ac_objext \
13479 conftest$ac_exeext
13480 if test "${ac_cv_search_opendir+set}" = set; then :
13481 break
13482fi
13483done
13484if test "${ac_cv_search_opendir+set}" = set; then :
2ba49b59 13485
81ecdfbb
RW
13486else
13487 ac_cv_search_opendir=no
13488fi
13489rm conftest.$ac_ext
13490LIBS=$ac_func_search_save_LIBS
13491fi
13492{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
13493$as_echo "$ac_cv_search_opendir" >&6; }
13494ac_res=$ac_cv_search_opendir
13495if test "$ac_res" != no; then :
13496 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
2ba49b59 13497
81ecdfbb 13498fi
efde2f2c 13499
2ba49b59 13500fi
81ecdfbb
RW
13501
13502{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
13503$as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
13504if test "${gcc_cv_header_string+set}" = set; then :
13505 $as_echo_n "(cached) " >&6
2ba49b59 13506else
81ecdfbb 13507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2ba49b59 13508/* end confdefs.h. */
81ecdfbb
RW
13509#include <string.h>
13510#include <strings.h>
13511int
13512main ()
13513{
13514
13515 ;
13516 return 0;
13517}
2ba49b59 13518_ACEOF
81ecdfbb
RW
13519if ac_fn_c_try_compile "$LINENO"; then :
13520 gcc_cv_header_string=yes
2ba49b59 13521else
81ecdfbb
RW
13522 gcc_cv_header_string=no
13523fi
13524rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13525fi
13526{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
13527$as_echo "$gcc_cv_header_string" >&6; }
13528if test $gcc_cv_header_string = yes; then
13529
13530$as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
2ba49b59 13531
2ba49b59 13532fi
2ba49b59 13533
81ecdfbb
RW
13534for ac_func in fcntl getpagesize setitimer sysconf fdopen getuid getgid fileno
13535do :
13536 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13537ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13538eval as_val=\$$as_ac_var
13539 if test "x$as_val" = x""yes; then :
13540 cat >>confdefs.h <<_ACEOF
13541#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
2ba49b59 13542_ACEOF
81ecdfbb
RW
13543
13544fi
13545done
13546
13547for ac_func in strtoull
13548do :
13549 ac_fn_c_check_func "$LINENO" "strtoull" "ac_cv_func_strtoull"
13550if test "x$ac_cv_func_strtoull" = x""yes; then :
13551 cat >>confdefs.h <<_ACEOF
13552#define HAVE_STRTOULL 1
2ba49b59 13553_ACEOF
81ecdfbb
RW
13554
13555fi
13556done
13557
13558
13559ac_fn_c_check_decl "$LINENO" "basename" "ac_cv_have_decl_basename" "$ac_includes_default"
13560if test "x$ac_cv_have_decl_basename" = x""yes; then :
13561 ac_have_decl=1
2ba49b59 13562else
81ecdfbb 13563 ac_have_decl=0
2ba49b59 13564fi
81ecdfbb
RW
13565
13566cat >>confdefs.h <<_ACEOF
13567#define HAVE_DECL_BASENAME $ac_have_decl
13568_ACEOF
13569
13570ac_fn_c_check_decl "$LINENO" "ftello" "ac_cv_have_decl_ftello" "$ac_includes_default"
13571if test "x$ac_cv_have_decl_ftello" = x""yes; then :
13572 ac_have_decl=1
2ba49b59 13573else
81ecdfbb
RW
13574 ac_have_decl=0
13575fi
2ba49b59 13576
81ecdfbb
RW
13577cat >>confdefs.h <<_ACEOF
13578#define HAVE_DECL_FTELLO $ac_have_decl
13579_ACEOF
13580
13581ac_fn_c_check_decl "$LINENO" "ftello64" "ac_cv_have_decl_ftello64" "$ac_includes_default"
13582if test "x$ac_cv_have_decl_ftello64" = x""yes; then :
13583 ac_have_decl=1
13584else
13585 ac_have_decl=0
2ba49b59 13586fi
2ba49b59 13587
81ecdfbb
RW
13588cat >>confdefs.h <<_ACEOF
13589#define HAVE_DECL_FTELLO64 $ac_have_decl
13590_ACEOF
13591
13592ac_fn_c_check_decl "$LINENO" "fseeko" "ac_cv_have_decl_fseeko" "$ac_includes_default"
13593if test "x$ac_cv_have_decl_fseeko" = x""yes; then :
13594 ac_have_decl=1
2ba49b59 13595else
81ecdfbb 13596 ac_have_decl=0
2ba49b59 13597fi
2ba49b59 13598
81ecdfbb
RW
13599cat >>confdefs.h <<_ACEOF
13600#define HAVE_DECL_FSEEKO $ac_have_decl
13601_ACEOF
13602
13603ac_fn_c_check_decl "$LINENO" "fseeko64" "ac_cv_have_decl_fseeko64" "$ac_includes_default"
13604if test "x$ac_cv_have_decl_fseeko64" = x""yes; then :
13605 ac_have_decl=1
13606else
13607 ac_have_decl=0
2ba49b59 13608fi
81ecdfbb
RW
13609
13610cat >>confdefs.h <<_ACEOF
13611#define HAVE_DECL_FSEEKO64 $ac_have_decl
2ba49b59
KC
13612_ACEOF
13613
81ecdfbb
RW
13614
13615
13616case "${host}" in
13617*-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
13618
13619$as_echo "#define USE_BINARY_FOPEN 1" >>confdefs.h
13620 ;;
13621esac
13622
13623ac_fn_c_check_decl "$LINENO" "ffs" "ac_cv_have_decl_ffs" "$ac_includes_default"
13624if test "x$ac_cv_have_decl_ffs" = x""yes; then :
13625 ac_have_decl=1
13626else
13627 ac_have_decl=0
2ba49b59
KC
13628fi
13629
81ecdfbb
RW
13630cat >>confdefs.h <<_ACEOF
13631#define HAVE_DECL_FFS $ac_have_decl
13632_ACEOF
2ba49b59 13633
81ecdfbb
RW
13634ac_fn_c_check_decl "$LINENO" "free" "ac_cv_have_decl_free" "$ac_includes_default"
13635if test "x$ac_cv_have_decl_free" = x""yes; then :
13636 ac_have_decl=1
13637else
13638 ac_have_decl=0
13639fi
d5efd9fc 13640
81ecdfbb
RW
13641cat >>confdefs.h <<_ACEOF
13642#define HAVE_DECL_FREE $ac_have_decl
13643_ACEOF
d5efd9fc 13644
81ecdfbb
RW
13645ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
13646if test "x$ac_cv_have_decl_getenv" = x""yes; then :
13647 ac_have_decl=1
13648else
13649 ac_have_decl=0
13650fi
d5efd9fc 13651
81ecdfbb
RW
13652cat >>confdefs.h <<_ACEOF
13653#define HAVE_DECL_GETENV $ac_have_decl
d5efd9fc 13654_ACEOF
d5efd9fc 13655
81ecdfbb
RW
13656ac_fn_c_check_decl "$LINENO" "malloc" "ac_cv_have_decl_malloc" "$ac_includes_default"
13657if test "x$ac_cv_have_decl_malloc" = x""yes; then :
13658 ac_have_decl=1
13659else
13660 ac_have_decl=0
13661fi
13662
13663cat >>confdefs.h <<_ACEOF
13664#define HAVE_DECL_MALLOC $ac_have_decl
d5efd9fc 13665_ACEOF
81ecdfbb
RW
13666
13667ac_fn_c_check_decl "$LINENO" "realloc" "ac_cv_have_decl_realloc" "$ac_includes_default"
13668if test "x$ac_cv_have_decl_realloc" = x""yes; then :
13669 ac_have_decl=1
d5efd9fc 13670else
81ecdfbb
RW
13671 ac_have_decl=0
13672fi
13673
13674cat >>confdefs.h <<_ACEOF
13675#define HAVE_DECL_REALLOC $ac_have_decl
13676_ACEOF
d5efd9fc 13677
81ecdfbb
RW
13678ac_fn_c_check_decl "$LINENO" "stpcpy" "ac_cv_have_decl_stpcpy" "$ac_includes_default"
13679if test "x$ac_cv_have_decl_stpcpy" = x""yes; then :
13680 ac_have_decl=1
13681else
13682 ac_have_decl=0
d5efd9fc 13683fi
81ecdfbb
RW
13684
13685cat >>confdefs.h <<_ACEOF
13686#define HAVE_DECL_STPCPY $ac_have_decl
13687_ACEOF
13688
13689ac_fn_c_check_decl "$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
13690if test "x$ac_cv_have_decl_strstr" = x""yes; then :
13691 ac_have_decl=1
13692else
13693 ac_have_decl=0
d5efd9fc 13694fi
81ecdfbb
RW
13695
13696cat >>confdefs.h <<_ACEOF
13697#define HAVE_DECL_STRSTR $ac_have_decl
13698_ACEOF
13699
13700ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
13701if test "x$ac_cv_have_decl_snprintf" = x""yes; then :
13702 ac_have_decl=1
d5efd9fc 13703else
81ecdfbb 13704 ac_have_decl=0
d5efd9fc
AM
13705fi
13706
81ecdfbb
RW
13707cat >>confdefs.h <<_ACEOF
13708#define HAVE_DECL_SNPRINTF $ac_have_decl
13709_ACEOF
13710
13711ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
13712if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then :
13713 ac_have_decl=1
d5efd9fc 13714else
81ecdfbb
RW
13715 ac_have_decl=0
13716fi
13717
13718cat >>confdefs.h <<_ACEOF
13719#define HAVE_DECL_VSNPRINTF $ac_have_decl
d5efd9fc 13720_ACEOF
81ecdfbb
RW
13721
13722
81ecdfbb
RW
13723# Link in zlib if we can. This allows us to read compressed debug sections.
13724# This is used only by compress.c.
bf993e3c
JB
13725
13726 # See if the user specified whether he wants zlib support or not.
13727
13728# Check whether --with-zlib was given.
13729if test "${with_zlib+set}" = set; then :
13730 withval=$with_zlib;
13731else
13732 with_zlib=auto
13733fi
13734
13735
13736 if test "$with_zlib" != "no"; then
13737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing zlibVersion" >&5
81ecdfbb
RW
13738$as_echo_n "checking for library containing zlibVersion... " >&6; }
13739if test "${ac_cv_search_zlibVersion+set}" = set; then :
13740 $as_echo_n "(cached) " >&6
d5efd9fc 13741else
81ecdfbb
RW
13742 ac_func_search_save_LIBS=$LIBS
13743cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d5efd9fc 13744/* end confdefs.h. */
d5efd9fc 13745
81ecdfbb
RW
13746/* Override any GCC internal prototype to avoid an error.
13747 Use char because int might match the return type of a GCC
13748 builtin and then its argument prototype would still apply. */
13749#ifdef __cplusplus
13750extern "C"
13751#endif
13752char zlibVersion ();
d5efd9fc
AM
13753int
13754main ()
13755{
81ecdfbb 13756return zlibVersion ();
d5efd9fc
AM
13757 ;
13758 return 0;
13759}
13760_ACEOF
81ecdfbb
RW
13761for ac_lib in '' z; do
13762 if test -z "$ac_lib"; then
13763 ac_res="none required"
13764 else
13765 ac_res=-l$ac_lib
13766 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13767 fi
13768 if ac_fn_c_try_link "$LINENO"; then :
13769 ac_cv_search_zlibVersion=$ac_res
d5efd9fc 13770fi
81ecdfbb
RW
13771rm -f core conftest.err conftest.$ac_objext \
13772 conftest$ac_exeext
13773 if test "${ac_cv_search_zlibVersion+set}" = set; then :
13774 break
d5efd9fc 13775fi
81ecdfbb
RW
13776done
13777if test "${ac_cv_search_zlibVersion+set}" = set; then :
13778
d5efd9fc 13779else
81ecdfbb
RW
13780 ac_cv_search_zlibVersion=no
13781fi
13782rm conftest.$ac_ext
13783LIBS=$ac_func_search_save_LIBS
13784fi
13785{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_zlibVersion" >&5
13786$as_echo "$ac_cv_search_zlibVersion" >&6; }
13787ac_res=$ac_cv_search_zlibVersion
13788if test "$ac_res" != no; then :
13789 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13790 for ac_header in zlib.h
13791do :
13792 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
13793if test "x$ac_cv_header_zlib_h" = x""yes; then :
13794 cat >>confdefs.h <<_ACEOF
13795#define HAVE_ZLIB_H 1
13796_ACEOF
13797
d5efd9fc
AM
13798fi
13799
d5efd9fc 13800done
d5efd9fc 13801
d5efd9fc
AM
13802fi
13803
bf993e3c
JB
13804 if test "$with_zlib" = "yes" -a "$ac_cv_header_zlib_h" != "yes"; then
13805 as_fn_error "zlib (libz) library was explicitly requested but not found" "$LINENO" 5
13806 fi
13807 fi
13808
d5efd9fc 13809
81ecdfbb
RW
13810# If we are configured native, pick a core file support file.
13811COREFILE=
13812COREFLAG=
13813TRAD_HEADER=
13814if test "${target}" = "${host}"; then
13815 case "${host}" in
13816 alpha*-*-freebsd* | alpha*-*-kfreebsd*-gnu)
13817 COREFILE=''
13818 ;;
13819 alpha*-*-linux-*)
13820 COREFILE=trad-core.lo
13821 TRAD_HEADER='"hosts/alphalinux.h"'
13822 ;;
13823 alpha*-*-netbsd* | alpha*-*-openbsd*)
13824 COREFILE=netbsd-core.lo
13825 ;;
13826 alpha*-*-*) COREFILE=osf-core.lo ;;
13827 arm-*-freebsd* | arm-*-kfreebsd*-gnu)
13828 COREFILE='' ;;
13829 arm-*-netbsd* | arm-*-openbsd*)
13830 COREFILE=netbsd-core.lo
13831 ;;
13832 arm-*-riscix) COREFILE=trad-core.lo ;;
13833 hppa*-*-hpux*) COREFILE=hpux-core.lo ;;
13834 hppa*-*-hiux*) COREFILE=hpux-core.lo ;;
13835 hppa*-*-mpeix*) COREFILE=hpux-core.lo ;;
13836 hppa*-*-bsd*) COREFILE="hpux-core.lo hppabsd-core.lo"
13837 COREFLAG="-DHPUX_CORE -DHPPABSD_CORE" ;;
13838 hppa*-*-netbsd* | hppa*-*-openbsd*)
13839 COREFILE=netbsd-core.lo
13840 ;;
d5efd9fc 13841
81ecdfbb
RW
13842 i370-*-*)
13843 COREFILE=trad-core.lo
13844 TRAD_HEADER='"hosts/i370linux.h"'
13845 ;;
d5efd9fc 13846
81ecdfbb
RW
13847 i[3-7]86-sequent-bsd*)
13848 COREFILE=trad-core.lo
13849 TRAD_HEADER='"hosts/symmetry.h"'
13850 ;;
13851 i[3-7]86-sequent-sysv4*) ;;
13852 i[3-7]86-sequent-sysv*)
13853 COREFILE=trad-core.lo
13854 TRAD_HEADER='"hosts/symmetry.h"'
13855 ;;
13856 i[3-7]86-*-bsdi)
13857 COREFILE=
13858 ;;
13859 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*)
13860 COREFILE=trad-core.lo
13861 TRAD_HEADER='"hosts/i386bsd.h"'
13862 ;;
13863 i[3-7]86-*-freebsd* | i[3-7]86-*-kfreebsd*-gnu | i[3-7]86-*-dragonfly*)
13864 COREFILE=''
13865 TRAD_HEADER='"hosts/i386bsd.h"'
13866 ;;
13867 i[3-7]86-*-netbsd* | i[3-7]86-*-knetbsd*-gnu | i[3-7]86-*-openbsd*)
13868 COREFILE=netbsd-core.lo
13869 ;;
13870 i[3-7]86-esix-sysv3*)
13871 COREFILE=trad-core.lo
13872 TRAD_HEADER='"hosts/esix.h"'
13873 ;;
13874 i[3-7]86-*-sco3.2v5*)
13875 COREFILE=sco5-core.lo
13876 ;;
13877 i[3-7]86-*-sco* | i[3-7]86-*-isc*)
13878 COREFILE=trad-core.lo
13879 TRAD_HEADER='"hosts/i386sco.h"'
13880 ;;
13881 i[3-7]86-*-mach3*)
13882 COREFILE=trad-core.lo
13883 TRAD_HEADER='"hosts/i386mach3.h"'
13884 ;;
13885 i[3-7]86-*-linux-*)
13886 COREFILE=trad-core.lo
13887 TRAD_HEADER='"hosts/i386linux.h"'
13888 ;;
13889 i[3-7]86-*-isc*) COREFILE=trad-core.lo ;;
13890 i[3-7]86-*-aix*) COREFILE=aix386-core.lo ;;
13891 i860-*-mach3* | i860-*-osf1*)
13892 COREFILE=trad-core.lo
13893 TRAD_HEADER='"hosts/i860mach3.h"'
13894 ;;
13895 mips-*-netbsd* | mips*-*-openbsd*)
13896 COREFILE=netbsd-core.lo
13897 ;;
13898 mips-dec-*)
13899 COREFILE=trad-core.lo
13900 TRAD_HEADER='"hosts/decstation.h"'
13901 ;;
13902 mips-sgi-irix4*) COREFILE=irix-core.lo ;;
13903 mips-sgi-irix5*) COREFILE=irix-core.lo ;;
13904 mips-sgi-irix6*) COREFILE=irix-core.lo ;;
13905 mips-*-sysv4*) ;;
13906 mips-*-sysv* | mips-*-riscos*)
13907 COREFILE=trad-core.lo
13908 TRAD_HEADER='"hosts/riscos.h"'
13909 ;;
13910 mips-sony-bsd*)
13911 COREFILE=trad-core.lo
13912 TRAD_HEADER='"hosts/news-mips.h"'
13913 ;;
13914 m68*-bull*-sysv*)
13915 COREFILE=trad-core.lo
13916 TRAD_HEADER='"hosts/dpx2.h"'
13917 ;;
13918 m68*-hp-hpux*) COREFILE=hpux-core.lo ;;
13919 m68*-hp-bsd*)
13920 COREFILE=trad-core.lo
13921 TRAD_HEADER='"hosts/hp300bsd.h"'
13922 ;;
13923 m68*-*-linux-*)
13924 COREFILE=trad-core.lo
13925 TRAD_HEADER='"hosts/m68klinux.h"'
13926 ;;
13927 m68*-motorola-sysv*)
13928 COREFILE=trad-core.lo
13929 TRAD_HEADER='"hosts/delta68.h"'
13930 ;;
13931 m68*-sony-*)
13932 COREFILE=trad-core.lo
13933 TRAD_HEADER='"hosts/news.h"'
13934 ;;
13935 m68*-*-netbsd* | m68*-*-openbsd*)
13936 COREFILE=netbsd-core.lo
13937 ;;
13938 m68*-apple-aux*)
13939 COREFILE=trad-core.lo
13940 TRAD_HEADER='"hosts/m68kaux.h"'
13941 ;;
13942 m88*-*-sysv4*)
13943 ;;
13944 m88*-motorola-sysv*)
13945 COREFILE=ptrace-core.lo
13946 ;;
13947 m88*-*-mach3*)
13948 COREFILE=trad-core.lo
13949 TRAD_HEADER='"hosts/m88kmach3.h"'
13950 ;;
13951 m88*-*-openbsd*)
13952 COREFILE=netbsd-core.lo
13953 ;;
13954 ns32k-pc532-mach)
13955 COREFILE=trad-core.lo
13956 TRAD_HEADER='"hosts/pc532mach.h"'
13957 ;;
13958 ns32k-*-netbsd* | ns32k-*-openbsd*)
13959 COREFILE=netbsd-core.lo
13960 ;;
13961 rs6000-*-lynx*)
13962 COREFILE=lynx-core.lo
13963 ;;
13964 rs6000-*-aix[5-9].* | powerpc-*-aix[5-9].*)
13965 COREFILE=rs6000-core.lo
13966 COREFLAG="$COREFLAG -DAIX_5_CORE -DAIX_CORE_DUMPX_CORE"
13967 ;;
13968 rs6000-*-aix4.[3-9]* | powerpc-*-aix4.[3-9]*)
13969 COREFILE=rs6000-core.lo
13970 COREFLAG="$COREFLAG -DAIX_CORE_DUMPX_CORE"
13971 # Not all versions of AIX with -DAIX_CORE_DUMPX_CORE
13972 # have c_impl as a member of struct core_dumpx
13973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c_impl in struct core_dumpx" >&5
13974$as_echo_n "checking for c_impl in struct core_dumpx... " >&6; }
13975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d5efd9fc 13976/* end confdefs.h. */
81ecdfbb 13977#include <core.h>
d5efd9fc
AM
13978int
13979main ()
13980{
81ecdfbb 13981struct core_dumpx c; c.c_impl = 0;
d5efd9fc
AM
13982 ;
13983 return 0;
13984}
13985_ACEOF
81ecdfbb 13986if ac_fn_c_try_compile "$LINENO"; then :
d5efd9fc 13987
81ecdfbb 13988$as_echo "#define HAVE_ST_C_IMPL 1" >>confdefs.h
d5efd9fc 13989
81ecdfbb
RW
13990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13991$as_echo "yes" >&6; }
d5efd9fc 13992else
81ecdfbb
RW
13993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13994$as_echo "no" >&6; }
d5efd9fc 13995fi
81ecdfbb
RW
13996rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13997 ;;
13998 rs6000-*-aix4*) COREFILE=rs6000-core.lo ;;
13999 rs6000-*-*) COREFILE=rs6000-core.lo ;;
14000 powerpc-*-aix4*) COREFILE=rs6000-core.lo ;;
14001 powerpc-*-aix*) COREFILE=rs6000-core.lo ;;
14002 powerpc-*-beos*) ;;
14003 powerpc-*-freebsd* | powerpc-*-kfreebsd*-gnu)
14004 COREFILE='' ;;
14005 powerpc-*-netbsd*) COREFILE=netbsd-core.lo ;;
14006 powerpc-*-*bsd*) COREFILE=netbsd-core.lo ;;
14007 s390*-*-*) COREFILE=trad-core.lo ;;
14008 sh*-*-netbsd* | sh*-*-openbsd*)
14009 COREFILE=netbsd-core.lo
14010 ;;
14011 sparc-*-netbsd* | sparc*-*-openbsd*)
14012 COREFILE=netbsd-core.lo
14013 ;;
14014 tahoe-*-*)
14015 COREFILE=trad-core.lo
14016 TRAD_HEADER='"hosts/tahoe.h"'
14017 ;;
14018 vax-*-netbsd* | vax-*-openbsd*)
14019 COREFILE=netbsd-core.lo
14020 ;;
14021 vax-*-ultrix2*)
14022 COREFILE=trad-core.lo
14023 TRAD_HEADER='"hosts/vaxult2.h"'
14024 ;;
14025 vax-*-ultrix*)
14026 COREFILE=trad-core.lo
14027 TRAD_HEADER='"hosts/vaxult2.h"'
14028 ;;
14029 vax-*-linux-*)
14030 COREFILE=trad-core.lo
14031 TRAD_HEADER='"hosts/vaxlinux.h"'
14032 ;;
14033 vax-*-*)
14034 COREFILE=trad-core.lo
14035 TRAD_HEADER='"hosts/vaxbsd.h"'
14036 ;;
14037 x86_64-*-netbsd* | x86_64-*-openbsd*)
14038 COREFILE=netbsd-core.lo
14039 ;;
14040 esac
14041
14042 case "$COREFILE" in
14043 aix386-core.lo) COREFLAG=-DAIX386_CORE ;;
14044 hppabsd-core.lo) COREFLAG=-DHPPABSD_CORE ;;
14045 hpux-core.lo) COREFLAG=-DHPUX_CORE ;;
14046 irix-core.lo) COREFLAG=-DIRIX_CORE ;;
14047 lynx-core.lo) COREFLAG=-DLYNX_CORE ;;
14048 netbsd-core.lo) COREFLAG=-DNETBSD_CORE ;;
14049 osf-core.lo) COREFLAG=-DOSF_CORE ;;
14050 ptrace-core.lo) COREFLAG=-DPTRACE_CORE ;;
14051 rs6000-core.lo) COREFLAG="$COREFLAG -DAIX_CORE" ;;
14052 sco5-core.lo) COREFLAG="$COREFLAG -DSCO5_CORE" ;;
14053 trad-core.lo) COREFLAG="$COREFLAG -DTRAD_CORE" ;;
14054 esac
14055
14056 # ELF corefile support has several flavors, but all of
14057 # them use something called <sys/procfs.h>
14058 for ac_header in sys/procfs.h
14059do :
14060 ac_fn_c_check_header_mongrel "$LINENO" "sys/procfs.h" "ac_cv_header_sys_procfs_h" "$ac_includes_default"
14061if test "x$ac_cv_header_sys_procfs_h" = x""yes; then :
14062 cat >>confdefs.h <<_ACEOF
14063#define HAVE_SYS_PROCFS_H 1
14064_ACEOF
14065
d5efd9fc
AM
14066fi
14067
81ecdfbb
RW
14068done
14069
14070 if test "$ac_cv_header_sys_procfs_h" = yes; then
14071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prstatus_t in sys/procfs.h" >&5
14072$as_echo_n "checking for prstatus_t in sys/procfs.h... " >&6; }
14073 if test "${bfd_cv_have_sys_procfs_type_prstatus_t+set}" = set; then :
14074 $as_echo_n "(cached) " >&6
d5efd9fc 14075else
81ecdfbb 14076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d5efd9fc 14077/* end confdefs.h. */
d5efd9fc 14078
81ecdfbb 14079#define _SYSCALL32
16231b7b
DG
14080/* Needed for new procfs interface on sparc-solaris. */
14081#define _STRUCTURED_PROC 1
81ecdfbb 14082#include <sys/procfs.h>
d5efd9fc
AM
14083int
14084main ()
14085{
81ecdfbb 14086prstatus_t avar
d5efd9fc
AM
14087 ;
14088 return 0;
14089}
14090_ACEOF
81ecdfbb
RW
14091if ac_fn_c_try_compile "$LINENO"; then :
14092 bfd_cv_have_sys_procfs_type_prstatus_t=yes
d5efd9fc 14093else
81ecdfbb 14094 bfd_cv_have_sys_procfs_type_prstatus_t=no
d5efd9fc 14095
d5efd9fc 14096fi
81ecdfbb 14097rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d5efd9fc
AM
14098fi
14099
81ecdfbb 14100 if test $bfd_cv_have_sys_procfs_type_prstatus_t = yes; then
d5efd9fc 14101
81ecdfbb 14102$as_echo "#define HAVE_PRSTATUS_T 1" >>confdefs.h
d5efd9fc 14103
81ecdfbb
RW
14104 fi
14105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prstatus_t" >&5
14106$as_echo "$bfd_cv_have_sys_procfs_type_prstatus_t" >&6; }
d5efd9fc 14107
81ecdfbb
RW
14108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prstatus32_t in sys/procfs.h" >&5
14109$as_echo_n "checking for prstatus32_t in sys/procfs.h... " >&6; }
14110 if test "${bfd_cv_have_sys_procfs_type_prstatus32_t+set}" = set; then :
14111 $as_echo_n "(cached) " >&6
d5efd9fc 14112else
81ecdfbb 14113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d5efd9fc 14114/* end confdefs.h. */
81ecdfbb
RW
14115
14116#define _SYSCALL32
16231b7b
DG
14117/* Needed for new procfs interface on sparc-solaris. */
14118#define _STRUCTURED_PROC 1
81ecdfbb 14119#include <sys/procfs.h>
d5efd9fc
AM
14120int
14121main ()
14122{
81ecdfbb 14123prstatus32_t avar
d5efd9fc
AM
14124 ;
14125 return 0;
14126}
14127_ACEOF
81ecdfbb
RW
14128if ac_fn_c_try_compile "$LINENO"; then :
14129 bfd_cv_have_sys_procfs_type_prstatus32_t=yes
d5efd9fc 14130else
81ecdfbb 14131 bfd_cv_have_sys_procfs_type_prstatus32_t=no
d5efd9fc 14132
d5efd9fc 14133fi
81ecdfbb 14134rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d5efd9fc 14135fi
d5efd9fc 14136
81ecdfbb
RW
14137 if test $bfd_cv_have_sys_procfs_type_prstatus32_t = yes; then
14138
14139$as_echo "#define HAVE_PRSTATUS32_T 1" >>confdefs.h
14140
14141 fi
14142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prstatus32_t" >&5
14143$as_echo "$bfd_cv_have_sys_procfs_type_prstatus32_t" >&6; }
14144
14145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prstatus_t.pr_who in sys/procfs.h" >&5
14146$as_echo_n "checking for prstatus_t.pr_who in sys/procfs.h... " >&6; }
14147 if test "${bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who+set}" = set; then :
14148 $as_echo_n "(cached) " >&6
d5efd9fc 14149else
81ecdfbb 14150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d5efd9fc 14151/* end confdefs.h. */
81ecdfbb
RW
14152
14153#define _SYSCALL32
16231b7b
DG
14154/* Needed for new procfs interface on sparc-solaris. */
14155#define _STRUCTURED_PROC 1
81ecdfbb 14156#include <sys/procfs.h>
d5efd9fc
AM
14157int
14158main ()
14159{
81ecdfbb 14160prstatus_t avar; void* aref = (void*) &avar.pr_who
d5efd9fc
AM
14161 ;
14162 return 0;
14163}
14164_ACEOF
81ecdfbb
RW
14165if ac_fn_c_try_compile "$LINENO"; then :
14166 bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=yes
14167else
14168 bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=no
14169
14170fi
14171rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14172fi
14173
14174 if test $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who = yes; then
14175
14176$as_echo "#define HAVE_PRSTATUS_T_PR_WHO 1" >>confdefs.h
14177
14178 fi
14179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" >&5
14180$as_echo "$bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" >&6; }
14181
14182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prstatus32_t.pr_who in sys/procfs.h" >&5
14183$as_echo_n "checking for prstatus32_t.pr_who in sys/procfs.h... " >&6; }
14184 if test "${bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who+set}" = set; then :
14185 $as_echo_n "(cached) " >&6
14186else
14187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d5efd9fc 14188/* end confdefs.h. */
81ecdfbb
RW
14189
14190#define _SYSCALL32
16231b7b
DG
14191/* Needed for new procfs interface on sparc-solaris. */
14192#define _STRUCTURED_PROC 1
81ecdfbb 14193#include <sys/procfs.h>
d5efd9fc
AM
14194int
14195main ()
14196{
81ecdfbb 14197prstatus32_t avar; void* aref = (void*) &avar.pr_who
d5efd9fc
AM
14198 ;
14199 return 0;
14200}
14201_ACEOF
81ecdfbb
RW
14202if ac_fn_c_try_compile "$LINENO"; then :
14203 bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=yes
d5efd9fc 14204else
81ecdfbb 14205 bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=no
d5efd9fc 14206
d5efd9fc 14207fi
81ecdfbb
RW
14208rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14209fi
d5efd9fc 14210
81ecdfbb
RW
14211 if test $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who = yes; then
14212
14213$as_echo "#define HAVE_PRSTATUS32_T_PR_WHO 1" >>confdefs.h
14214
14215 fi
14216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" >&5
14217$as_echo "$bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" >&6; }
14218
14219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pstatus_t in sys/procfs.h" >&5
14220$as_echo_n "checking for pstatus_t in sys/procfs.h... " >&6; }
14221 if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then :
14222 $as_echo_n "(cached) " >&6
14223else
14224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d5efd9fc 14225/* end confdefs.h. */
81ecdfbb
RW
14226
14227#define _SYSCALL32
16231b7b
DG
14228/* Needed for new procfs interface on sparc-solaris. */
14229#define _STRUCTURED_PROC 1
81ecdfbb 14230#include <sys/procfs.h>
d5efd9fc
AM
14231int
14232main ()
14233{
81ecdfbb 14234pstatus_t avar
d5efd9fc
AM
14235 ;
14236 return 0;
14237}
14238_ACEOF
81ecdfbb
RW
14239if ac_fn_c_try_compile "$LINENO"; then :
14240 bfd_cv_have_sys_procfs_type_pstatus_t=yes
14241else
14242 bfd_cv_have_sys_procfs_type_pstatus_t=no
14243
14244fi
14245rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14246fi
14247
14248 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
14249
14250$as_echo "#define HAVE_PSTATUS_T 1" >>confdefs.h
14251
14252 fi
14253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5
14254$as_echo "$bfd_cv_have_sys_procfs_type_pstatus_t" >&6; }
14255
14256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pxstatus_t in sys/procfs.h" >&5
14257$as_echo_n "checking for pxstatus_t in sys/procfs.h... " >&6; }
14258 if test "${bfd_cv_have_sys_procfs_type_pxstatus_t+set}" = set; then :
14259 $as_echo_n "(cached) " >&6
14260else
14261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d5efd9fc 14262/* end confdefs.h. */
81ecdfbb
RW
14263
14264#define _SYSCALL32
16231b7b
DG
14265/* Needed for new procfs interface on sparc-solaris. */
14266#define _STRUCTURED_PROC 1
81ecdfbb 14267#include <sys/procfs.h>
d5efd9fc
AM
14268int
14269main ()
14270{
81ecdfbb 14271pxstatus_t avar
d5efd9fc
AM
14272 ;
14273 return 0;
14274}
14275_ACEOF
81ecdfbb
RW
14276if ac_fn_c_try_compile "$LINENO"; then :
14277 bfd_cv_have_sys_procfs_type_pxstatus_t=yes
d5efd9fc 14278else
81ecdfbb 14279 bfd_cv_have_sys_procfs_type_pxstatus_t=no
d5efd9fc 14280
d5efd9fc 14281fi
81ecdfbb 14282rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d5efd9fc 14283fi
81ecdfbb
RW
14284
14285 if test $bfd_cv_have_sys_procfs_type_pxstatus_t = yes; then
14286
14287$as_echo "#define HAVE_PXSTATUS_T 1" >>confdefs.h
14288
14289 fi
14290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pxstatus_t" >&5
14291$as_echo "$bfd_cv_have_sys_procfs_type_pxstatus_t" >&6; }
14292
14293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pstatus32_t in sys/procfs.h" >&5
14294$as_echo_n "checking for pstatus32_t in sys/procfs.h... " >&6; }
14295 if test "${bfd_cv_have_sys_procfs_type_pstatus32_t+set}" = set; then :
14296 $as_echo_n "(cached) " >&6
14297else
14298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d5efd9fc 14299/* end confdefs.h. */
81ecdfbb
RW
14300
14301#define _SYSCALL32
16231b7b
DG
14302/* Needed for new procfs interface on sparc-solaris. */
14303#define _STRUCTURED_PROC 1
81ecdfbb 14304#include <sys/procfs.h>
d5efd9fc
AM
14305int
14306main ()
14307{
81ecdfbb 14308pstatus32_t avar
d5efd9fc
AM
14309 ;
14310 return 0;
14311}
14312_ACEOF
81ecdfbb
RW
14313if ac_fn_c_try_compile "$LINENO"; then :
14314 bfd_cv_have_sys_procfs_type_pstatus32_t=yes
d5efd9fc 14315else
81ecdfbb 14316 bfd_cv_have_sys_procfs_type_pstatus32_t=no
d5efd9fc 14317
d5efd9fc 14318fi
81ecdfbb
RW
14319rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14320fi
14321
14322 if test $bfd_cv_have_sys_procfs_type_pstatus32_t = yes; then
14323
14324$as_echo "#define HAVE_PSTATUS32_T 1" >>confdefs.h
14325
14326 fi
14327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pstatus32_t" >&5
14328$as_echo "$bfd_cv_have_sys_procfs_type_pstatus32_t" >&6; }
14329
14330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prpsinfo_t in sys/procfs.h" >&5
14331$as_echo_n "checking for prpsinfo_t in sys/procfs.h... " >&6; }
14332 if test "${bfd_cv_have_sys_procfs_type_prpsinfo_t+set}" = set; then :
14333 $as_echo_n "(cached) " >&6
14334else
14335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d5efd9fc 14336/* end confdefs.h. */
81ecdfbb
RW
14337
14338#define _SYSCALL32
16231b7b
DG
14339/* Needed for new procfs interface on sparc-solaris. */
14340#define _STRUCTURED_PROC 1
81ecdfbb 14341#include <sys/procfs.h>
d5efd9fc
AM
14342int
14343main ()
14344{
81ecdfbb 14345prpsinfo_t avar
d5efd9fc
AM
14346 ;
14347 return 0;
14348}
14349_ACEOF
81ecdfbb
RW
14350if ac_fn_c_try_compile "$LINENO"; then :
14351 bfd_cv_have_sys_procfs_type_prpsinfo_t=yes
d5efd9fc 14352else
81ecdfbb 14353 bfd_cv_have_sys_procfs_type_prpsinfo_t=no
d5efd9fc 14354
d5efd9fc 14355fi
81ecdfbb 14356rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d5efd9fc 14357fi
d5efd9fc 14358
81ecdfbb 14359 if test $bfd_cv_have_sys_procfs_type_prpsinfo_t = yes; then
d5efd9fc 14360
81ecdfbb
RW
14361$as_echo "#define HAVE_PRPSINFO_T 1" >>confdefs.h
14362
14363 fi
14364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prpsinfo_t" >&5
14365$as_echo "$bfd_cv_have_sys_procfs_type_prpsinfo_t" >&6; }
14366
14367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prpsinfo32_t in sys/procfs.h" >&5
14368$as_echo_n "checking for prpsinfo32_t in sys/procfs.h... " >&6; }
14369 if test "${bfd_cv_have_sys_procfs_type_prpsinfo32_t+set}" = set; then :
14370 $as_echo_n "(cached) " >&6
d5efd9fc 14371else
81ecdfbb 14372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d5efd9fc 14373/* end confdefs.h. */
81ecdfbb
RW
14374
14375#define _SYSCALL32
16231b7b
DG
14376/* Needed for new procfs interface on sparc-solaris. */
14377#define _STRUCTURED_PROC 1
81ecdfbb 14378#include <sys/procfs.h>
d5efd9fc
AM
14379int
14380main ()
14381{
81ecdfbb 14382prpsinfo32_t avar
d5efd9fc
AM
14383 ;
14384 return 0;
14385}
14386_ACEOF
81ecdfbb
RW
14387if ac_fn_c_try_compile "$LINENO"; then :
14388 bfd_cv_have_sys_procfs_type_prpsinfo32_t=yes
d5efd9fc 14389else
81ecdfbb 14390 bfd_cv_have_sys_procfs_type_prpsinfo32_t=no
d5efd9fc 14391
d5efd9fc 14392fi
81ecdfbb 14393rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d5efd9fc 14394fi
d5efd9fc 14395
81ecdfbb
RW
14396 if test $bfd_cv_have_sys_procfs_type_prpsinfo32_t = yes; then
14397
14398$as_echo "#define HAVE_PRPSINFO32_T 1" >>confdefs.h
14399
14400 fi
14401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prpsinfo32_t" >&5
14402$as_echo "$bfd_cv_have_sys_procfs_type_prpsinfo32_t" >&6; }
14403
14404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psinfo_t in sys/procfs.h" >&5
14405$as_echo_n "checking for psinfo_t in sys/procfs.h... " >&6; }
14406 if test "${bfd_cv_have_sys_procfs_type_psinfo_t+set}" = set; then :
14407 $as_echo_n "(cached) " >&6
d5efd9fc 14408else
81ecdfbb 14409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d5efd9fc 14410/* end confdefs.h. */
d5efd9fc 14411
81ecdfbb 14412#define _SYSCALL32
16231b7b
DG
14413/* Needed for new procfs interface on sparc-solaris. */
14414#define _STRUCTURED_PROC 1
81ecdfbb 14415#include <sys/procfs.h>
d5efd9fc
AM
14416int
14417main ()
14418{
81ecdfbb 14419psinfo_t avar
d5efd9fc
AM
14420 ;
14421 return 0;
14422}
14423_ACEOF
81ecdfbb
RW
14424if ac_fn_c_try_compile "$LINENO"; then :
14425 bfd_cv_have_sys_procfs_type_psinfo_t=yes
d5efd9fc 14426else
81ecdfbb 14427 bfd_cv_have_sys_procfs_type_psinfo_t=no
d5efd9fc 14428
d5efd9fc 14429fi
81ecdfbb
RW
14430rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14431fi
d5efd9fc 14432
81ecdfbb
RW
14433 if test $bfd_cv_have_sys_procfs_type_psinfo_t = yes; then
14434
14435$as_echo "#define HAVE_PSINFO_T 1" >>confdefs.h
14436
14437 fi
14438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_psinfo_t" >&5
14439$as_echo "$bfd_cv_have_sys_procfs_type_psinfo_t" >&6; }
14440
14441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psinfo32_t in sys/procfs.h" >&5
14442$as_echo_n "checking for psinfo32_t in sys/procfs.h... " >&6; }
14443 if test "${bfd_cv_have_sys_procfs_type_psinfo32_t+set}" = set; then :
14444 $as_echo_n "(cached) " >&6
14445else
14446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d5efd9fc 14447/* end confdefs.h. */
81ecdfbb
RW
14448
14449#define _SYSCALL32
16231b7b
DG
14450/* Needed for new procfs interface on sparc-solaris. */
14451#define _STRUCTURED_PROC 1
81ecdfbb 14452#include <sys/procfs.h>
d5efd9fc
AM
14453int
14454main ()
14455{
81ecdfbb 14456psinfo32_t avar
d5efd9fc
AM
14457 ;
14458 return 0;
14459}
14460_ACEOF
81ecdfbb
RW
14461if ac_fn_c_try_compile "$LINENO"; then :
14462 bfd_cv_have_sys_procfs_type_psinfo32_t=yes
14463else
14464 bfd_cv_have_sys_procfs_type_psinfo32_t=no
14465
14466fi
14467rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14468fi
14469
14470 if test $bfd_cv_have_sys_procfs_type_psinfo32_t = yes; then
14471
14472$as_echo "#define HAVE_PSINFO32_T 1" >>confdefs.h
14473
14474 fi
14475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_psinfo32_t" >&5
14476$as_echo "$bfd_cv_have_sys_procfs_type_psinfo32_t" >&6; }
14477
14478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpstatus_t in sys/procfs.h" >&5
14479$as_echo_n "checking for lwpstatus_t in sys/procfs.h... " >&6; }
14480 if test "${bfd_cv_have_sys_procfs_type_lwpstatus_t+set}" = set; then :
14481 $as_echo_n "(cached) " >&6
14482else
14483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d5efd9fc 14484/* end confdefs.h. */
81ecdfbb
RW
14485
14486#define _SYSCALL32
16231b7b
DG
14487/* Needed for new procfs interface on sparc-solaris. */
14488#define _STRUCTURED_PROC 1
81ecdfbb 14489#include <sys/procfs.h>
d5efd9fc
AM
14490int
14491main ()
14492{
81ecdfbb 14493lwpstatus_t avar
d5efd9fc
AM
14494 ;
14495 return 0;
14496}
14497_ACEOF
81ecdfbb
RW
14498if ac_fn_c_try_compile "$LINENO"; then :
14499 bfd_cv_have_sys_procfs_type_lwpstatus_t=yes
d5efd9fc 14500else
81ecdfbb 14501 bfd_cv_have_sys_procfs_type_lwpstatus_t=no
d5efd9fc 14502
d5efd9fc 14503fi
81ecdfbb 14504rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d5efd9fc 14505fi
81ecdfbb
RW
14506
14507 if test $bfd_cv_have_sys_procfs_type_lwpstatus_t = yes; then
14508
14509$as_echo "#define HAVE_LWPSTATUS_T 1" >>confdefs.h
14510
14511 fi
14512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_lwpstatus_t" >&5
14513$as_echo "$bfd_cv_have_sys_procfs_type_lwpstatus_t" >&6; }
14514
14515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpxstatus_t in sys/procfs.h" >&5
14516$as_echo_n "checking for lwpxstatus_t in sys/procfs.h... " >&6; }
14517 if test "${bfd_cv_have_sys_procfs_type_lwpxstatus_t+set}" = set; then :
14518 $as_echo_n "(cached) " >&6
14519else
14520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d5efd9fc 14521/* end confdefs.h. */
81ecdfbb
RW
14522
14523#define _SYSCALL32
16231b7b
DG
14524/* Needed for new procfs interface on sparc-solaris. */
14525#define _STRUCTURED_PROC 1
81ecdfbb 14526#include <sys/procfs.h>
d5efd9fc
AM
14527int
14528main ()
14529{
81ecdfbb 14530lwpxstatus_t avar
d5efd9fc
AM
14531 ;
14532 return 0;
14533}
14534_ACEOF
81ecdfbb
RW
14535if ac_fn_c_try_compile "$LINENO"; then :
14536 bfd_cv_have_sys_procfs_type_lwpxstatus_t=yes
d5efd9fc 14537else
81ecdfbb 14538 bfd_cv_have_sys_procfs_type_lwpxstatus_t=no
d5efd9fc 14539
d5efd9fc 14540fi
81ecdfbb
RW
14541rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14542fi
14543
14544 if test $bfd_cv_have_sys_procfs_type_lwpxstatus_t = yes; then
14545
14546$as_echo "#define HAVE_LWPXSTATUS_T 1" >>confdefs.h
14547
14548 fi
14549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_lwpxstatus_t" >&5
14550$as_echo "$bfd_cv_have_sys_procfs_type_lwpxstatus_t" >&6; }
14551
14552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpstatus_t.pr_context in sys/procfs.h" >&5
14553$as_echo_n "checking for lwpstatus_t.pr_context in sys/procfs.h... " >&6; }
14554 if test "${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context+set}" = set; then :
14555 $as_echo_n "(cached) " >&6
d5efd9fc 14556else
81ecdfbb 14557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d5efd9fc 14558/* end confdefs.h. */
81ecdfbb
RW
14559
14560#define _SYSCALL32
16231b7b
DG
14561/* Needed for new procfs interface on sparc-solaris. */
14562#define _STRUCTURED_PROC 1
81ecdfbb 14563#include <sys/procfs.h>
d5efd9fc
AM
14564int
14565main ()
14566{
81ecdfbb 14567lwpstatus_t avar; void* aref = (void*) &avar.pr_context
d5efd9fc
AM
14568 ;
14569 return 0;
14570}
14571_ACEOF
81ecdfbb
RW
14572if ac_fn_c_try_compile "$LINENO"; then :
14573 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=yes
d5efd9fc 14574else
81ecdfbb 14575 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=no
d5efd9fc 14576
d5efd9fc 14577fi
81ecdfbb 14578rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d5efd9fc 14579fi
d5efd9fc 14580
81ecdfbb 14581 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context = yes; then
d5efd9fc 14582
81ecdfbb
RW
14583$as_echo "#define HAVE_LWPSTATUS_T_PR_CONTEXT 1" >>confdefs.h
14584
14585 fi
14586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" >&5
14587$as_echo "$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" >&6; }
14588
14589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpstatus_t.pr_reg in sys/procfs.h" >&5
14590$as_echo_n "checking for lwpstatus_t.pr_reg in sys/procfs.h... " >&6; }
14591 if test "${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg+set}" = set; then :
14592 $as_echo_n "(cached) " >&6
d5efd9fc 14593else
81ecdfbb 14594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d5efd9fc 14595/* end confdefs.h. */
81ecdfbb
RW
14596
14597#define _SYSCALL32
16231b7b
DG
14598/* Needed for new procfs interface on sparc-solaris. */
14599#define _STRUCTURED_PROC 1
81ecdfbb 14600#include <sys/procfs.h>
d5efd9fc
AM
14601int
14602main ()
14603{
81ecdfbb 14604lwpstatus_t avar; void* aref = (void*) &avar.pr_reg
d5efd9fc
AM
14605 ;
14606 return 0;
14607}
14608_ACEOF
81ecdfbb
RW
14609if ac_fn_c_try_compile "$LINENO"; then :
14610 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=yes
d5efd9fc 14611else
81ecdfbb 14612 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=no
d5efd9fc 14613
d5efd9fc 14614fi
81ecdfbb 14615rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d5efd9fc 14616fi
d5efd9fc 14617
81ecdfbb
RW
14618 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg = yes; then
14619
14620$as_echo "#define HAVE_LWPSTATUS_T_PR_REG 1" >>confdefs.h
14621
14622 fi
14623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" >&5
14624$as_echo "$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" >&6; }
14625
16231b7b
DG
14626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpstatus_t.pr_fpreg in sys/procfs.h" >&5
14627$as_echo_n "checking for lwpstatus_t.pr_fpreg in sys/procfs.h... " >&6; }
14628 if test "${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_fpreg+set}" = set; then :
14629 $as_echo_n "(cached) " >&6
14630else
14631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14632/* end confdefs.h. */
14633
14634#define _SYSCALL32
14635/* Needed for new procfs interface on sparc-solaris. */
14636#define _STRUCTURED_PROC 1
14637#include <sys/procfs.h>
14638int
14639main ()
14640{
14641lwpstatus_t avar; void* aref = (void*) &avar.pr_fpreg
14642 ;
14643 return 0;
14644}
14645_ACEOF
14646if ac_fn_c_try_compile "$LINENO"; then :
14647 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_fpreg=yes
14648else
14649 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_fpreg=no
14650
14651fi
14652rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14653fi
14654
14655 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_fpreg = yes; then
14656
14657$as_echo "#define HAVE_LWPSTATUS_T_PR_FPREG 1" >>confdefs.h
14658
14659 fi
14660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_fpreg" >&5
14661$as_echo "$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_fpreg" >&6; }
14662
81ecdfbb
RW
14663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for win32_pstatus_t in sys/procfs.h" >&5
14664$as_echo_n "checking for win32_pstatus_t in sys/procfs.h... " >&6; }
14665 if test "${bfd_cv_have_sys_procfs_type_win32_pstatus_t+set}" = set; then :
14666 $as_echo_n "(cached) " >&6
d5efd9fc 14667else
81ecdfbb 14668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d5efd9fc 14669/* end confdefs.h. */
81ecdfbb
RW
14670
14671#define _SYSCALL32
16231b7b
DG
14672/* Needed for new procfs interface on sparc-solaris. */
14673#define _STRUCTURED_PROC 1
81ecdfbb 14674#include <sys/procfs.h>
d5efd9fc
AM
14675int
14676main ()
14677{
81ecdfbb 14678win32_pstatus_t avar
d5efd9fc
AM
14679 ;
14680 return 0;
14681}
14682_ACEOF
81ecdfbb
RW
14683if ac_fn_c_try_compile "$LINENO"; then :
14684 bfd_cv_have_sys_procfs_type_win32_pstatus_t=yes
d5efd9fc 14685else
81ecdfbb 14686 bfd_cv_have_sys_procfs_type_win32_pstatus_t=no
d5efd9fc 14687
d5efd9fc 14688fi
81ecdfbb
RW
14689rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14690fi
d5efd9fc 14691
81ecdfbb 14692 if test $bfd_cv_have_sys_procfs_type_win32_pstatus_t = yes; then
d5efd9fc 14693
81ecdfbb 14694$as_echo "#define HAVE_WIN32_PSTATUS_T 1" >>confdefs.h
d5efd9fc 14695
81ecdfbb
RW
14696 fi
14697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_win32_pstatus_t" >&5
14698$as_echo "$bfd_cv_have_sys_procfs_type_win32_pstatus_t" >&6; }
d5efd9fc 14699
81ecdfbb 14700 fi
d5efd9fc 14701fi
d5efd9fc 14702
d5efd9fc 14703
81ecdfbb 14704if test -n "$TRAD_HEADER"; then
d5efd9fc 14705
81ecdfbb
RW
14706cat >>confdefs.h <<_ACEOF
14707#define TRAD_HEADER $TRAD_HEADER
d5efd9fc 14708_ACEOF
d5efd9fc 14709
81ecdfbb 14710fi
d5efd9fc 14711
81ecdfbb
RW
14712# Check if linker supports --as-needed and --no-as-needed options
14713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
14714$as_echo_n "checking linker --as-needed support... " >&6; }
14715if test "${bfd_cv_ld_as_needed+set}" = set; then :
14716 $as_echo_n "(cached) " >&6
d5efd9fc 14717else
81ecdfbb
RW
14718 bfd_cv_ld_as_needed=no
14719 if $LD --help 2>/dev/null | grep as-needed > /dev/null; then
14720 bfd_cv_ld_as_needed=yes
14721 fi
d5efd9fc 14722
d5efd9fc 14723fi
81ecdfbb
RW
14724{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_ld_as_needed" >&5
14725$as_echo "$bfd_cv_ld_as_needed" >&6; }
d5efd9fc 14726
81ecdfbb
RW
14727LIBM=
14728case $host in
3725885a 14729*-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*)
81ecdfbb
RW
14730 # These system don't have libm, or don't need it
14731 ;;
14732*-ncr-sysv4.3*)
14733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _mwvalidcheckl in -lmw" >&5
14734$as_echo_n "checking for _mwvalidcheckl in -lmw... " >&6; }
14735if test "${ac_cv_lib_mw__mwvalidcheckl+set}" = set; then :
14736 $as_echo_n "(cached) " >&6
d5efd9fc 14737else
81ecdfbb
RW
14738 ac_check_lib_save_LIBS=$LIBS
14739LIBS="-lmw $LIBS"
14740cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d5efd9fc 14741/* end confdefs.h. */
81ecdfbb
RW
14742
14743/* Override any GCC internal prototype to avoid an error.
14744 Use char because int might match the return type of a GCC
14745 builtin and then its argument prototype would still apply. */
14746#ifdef __cplusplus
14747extern "C"
14748#endif
14749char _mwvalidcheckl ();
d5efd9fc
AM
14750int
14751main ()
14752{
81ecdfbb 14753return _mwvalidcheckl ();
d5efd9fc
AM
14754 ;
14755 return 0;
14756}
14757_ACEOF
81ecdfbb
RW
14758if ac_fn_c_try_link "$LINENO"; then :
14759 ac_cv_lib_mw__mwvalidcheckl=yes
d5efd9fc 14760else
81ecdfbb
RW
14761 ac_cv_lib_mw__mwvalidcheckl=no
14762fi
14763rm -f core conftest.err conftest.$ac_objext \
14764 conftest$ac_exeext conftest.$ac_ext
14765LIBS=$ac_check_lib_save_LIBS
d5efd9fc 14766fi
81ecdfbb
RW
14767{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mw__mwvalidcheckl" >&5
14768$as_echo "$ac_cv_lib_mw__mwvalidcheckl" >&6; }
14769if test "x$ac_cv_lib_mw__mwvalidcheckl" = x""yes; then :
14770 LIBM="-lmw"
d5efd9fc 14771fi
d5efd9fc 14772
81ecdfbb
RW
14773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
14774$as_echo_n "checking for cos in -lm... " >&6; }
14775if test "${ac_cv_lib_m_cos+set}" = set; then :
14776 $as_echo_n "(cached) " >&6
d5efd9fc 14777else
81ecdfbb
RW
14778 ac_check_lib_save_LIBS=$LIBS
14779LIBS="-lm $LIBS"
14780cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d5efd9fc 14781/* end confdefs.h. */
d5efd9fc 14782
81ecdfbb
RW
14783/* Override any GCC internal prototype to avoid an error.
14784 Use char because int might match the return type of a GCC
14785 builtin and then its argument prototype would still apply. */
14786#ifdef __cplusplus
14787extern "C"
14788#endif
14789char cos ();
d5efd9fc
AM
14790int
14791main ()
14792{
81ecdfbb 14793return cos ();
d5efd9fc
AM
14794 ;
14795 return 0;
14796}
14797_ACEOF
81ecdfbb
RW
14798if ac_fn_c_try_link "$LINENO"; then :
14799 ac_cv_lib_m_cos=yes
d5efd9fc 14800else
81ecdfbb
RW
14801 ac_cv_lib_m_cos=no
14802fi
14803rm -f core conftest.err conftest.$ac_objext \
14804 conftest$ac_exeext conftest.$ac_ext
14805LIBS=$ac_check_lib_save_LIBS
14806fi
14807{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
14808$as_echo "$ac_cv_lib_m_cos" >&6; }
14809if test "x$ac_cv_lib_m_cos" = x""yes; then :
14810 LIBM="$LIBM -lm"
d5efd9fc 14811fi
d5efd9fc 14812
81ecdfbb
RW
14813 ;;
14814*)
14815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
14816$as_echo_n "checking for cos in -lm... " >&6; }
14817if test "${ac_cv_lib_m_cos+set}" = set; then :
14818 $as_echo_n "(cached) " >&6
14819else
14820 ac_check_lib_save_LIBS=$LIBS
14821LIBS="-lm $LIBS"
14822cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d5efd9fc 14823/* end confdefs.h. */
d5efd9fc 14824
81ecdfbb
RW
14825/* Override any GCC internal prototype to avoid an error.
14826 Use char because int might match the return type of a GCC
14827 builtin and then its argument prototype would still apply. */
14828#ifdef __cplusplus
14829extern "C"
14830#endif
14831char cos ();
d5efd9fc
AM
14832int
14833main ()
14834{
81ecdfbb 14835return cos ();
d5efd9fc
AM
14836 ;
14837 return 0;
14838}
14839_ACEOF
81ecdfbb
RW
14840if ac_fn_c_try_link "$LINENO"; then :
14841 ac_cv_lib_m_cos=yes
d5efd9fc 14842else
81ecdfbb 14843 ac_cv_lib_m_cos=no
d5efd9fc 14844fi
81ecdfbb
RW
14845rm -f core conftest.err conftest.$ac_objext \
14846 conftest$ac_exeext conftest.$ac_ext
14847LIBS=$ac_check_lib_save_LIBS
d5efd9fc 14848fi
81ecdfbb
RW
14849{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
14850$as_echo "$ac_cv_lib_m_cos" >&6; }
14851if test "x$ac_cv_lib_m_cos" = x""yes; then :
14852 LIBM="-lm"
d5efd9fc 14853fi
d5efd9fc 14854
81ecdfbb 14855 ;;
d5efd9fc 14856esac
d5efd9fc 14857
d5efd9fc 14858
d5efd9fc 14859
81ecdfbb
RW
14860# When building a shared libbfd, link against the pic version of libiberty
14861# so that apps that use libbfd won't need libiberty just to satisfy any
14862# libbfd references.
14863# We can't do that if a pic libiberty is unavailable since including non-pic
14864# code would insert text relocations into libbfd.
14865SHARED_LIBADD=
14866SHARED_LDFLAGS=
14867if test "$enable_shared" = "yes"; then
14868 x=`sed -n -e 's/^[ ]*PICFLAG[ ]*=[ ]*//p' < ../libiberty/Makefile | sed -n '$p'`
14869 if test -n "$x"; then
14870 SHARED_LIBADD="-L`pwd`/../libiberty/pic -liberty"
14871 fi
d5efd9fc 14872
81ecdfbb
RW
14873# More hacks to build DLLs on Windows.
14874 case "${host}" in
14875 *-*-cygwin*)
14876 SHARED_LDFLAGS="-no-undefined"
14877 SHARED_LIBADD="-L`pwd`/../libiberty -liberty -L`pwd`/../intl -lintl -lcygwin -lkernel32"
14878 ;;
14879 esac
d5efd9fc 14880
81ecdfbb
RW
14881 if test -n "$SHARED_LIBADD"; then
14882 if test -n "$LIBM"; then
14883 if test x"$bfd_cv_ld_as_needed" = xyes; then
14884 # Link against libm only when needed. Put -lc, -lm inside -Wl
14885 # to stop libtool reordering these options.
14886 SHARED_LIBADD="$SHARED_LIBADD -Wl,-lc,--as-needed,`echo $LIBM | sed 's/ /,/g'`,--no-as-needed"
14887 else
14888 SHARED_LIBADD="$SHARED_LIBADD $LIBM"
14889 fi
14890 fi
14891 fi
d5efd9fc 14892fi
d5efd9fc 14893
d5efd9fc 14894
d5efd9fc 14895
81ecdfbb 14896# target stuff:
d5efd9fc 14897
81ecdfbb
RW
14898# Canonicalize the secondary target names.
14899if test -n "$enable_targets" ; then
14900 for targ in `echo $enable_targets | sed 's/,/ /g'`
14901 do
14902 result=`$ac_config_sub $targ 2>/dev/null`
14903 if test -n "$result" ; then
14904 canon_targets="$canon_targets $result"
14905 else
14906 # Allow targets that config.sub doesn't recognize, like "all".
14907 canon_targets="$canon_targets $targ"
14908 fi
14909 done
d5efd9fc 14910fi
d5efd9fc 14911
81ecdfbb
RW
14912all_targets=false
14913defvec=
14914selvecs=
14915assocvecs=
14916selarchs=
14917TDEFINES=
14918for targ in $target $canon_targets
14919do
14920 if test "x$targ" = "xall"; then
14921 all_targets=true
14922 assocvecs="$assocvecs $targ_defvec $targ_selvecs"
14923 else
14924 . $srcdir/config.bfd
14925 if test "x$targ" = "x$target"; then
14926 defvec=$targ_defvec
14927 fi
14928 selvecs="$selvecs $targ_defvec $targ_selvecs"
14929 selarchs="$selarchs $targ_archs"
14930 TDEFINES="$TDEFINES $targ_cflags"
14931 fi
14932done
d5efd9fc 14933
d5efd9fc 14934
81ecdfbb
RW
14935# This processing still needs to be done if we're to decide properly whether
14936# 64-bit support needs to be compiled in. Currently, it will be included if
14937# the default or any other explicitly requested target requires it; it
14938# will not be included on a 32-bit host if no 64-bit target is requested, and
14939# no "--with-64-bit-bfd" option is given, even if "--enable-targets=all" is
14940# used.
d5efd9fc 14941
81ecdfbb
RW
14942# uniq the default and selected vectors in all the configured targets.
14943f=""
14944for i in $selvecs ; do
14945 case " $f " in
14946 *" $i "*) ;;
14947 *) f="$f $i" ;;
14948 esac
14949done
14950selvecs="$f"
d5efd9fc 14951
d5efd9fc 14952
81ecdfbb
RW
14953# uniq the associated vectors in all the configured targets.
14954f=""
14955for i in $assocvecs ; do
14956 case " $f " in
14957 *" $i "*) ;;
14958 *) f="$f $i" ;;
14959 esac
d5efd9fc 14960done
81ecdfbb 14961assocvecs="$f"
2ba49b59 14962
2ba49b59 14963
81ecdfbb
RW
14964# uniq the architectures in all the configured targets.
14965f=""
14966for i in $selarchs ; do
14967 case " $f " in
14968 *" $i "*) ;;
14969 *) f="$f $i" ;;
14970 esac
2ba49b59 14971done
81ecdfbb 14972selarchs="$f"
2ba49b59 14973
81ecdfbb
RW
14974# Target backend .o files.
14975tb=
2ba49b59 14976
81ecdfbb
RW
14977elf="elf.lo elflink.lo elf-attrs.lo elf-strtab.lo
14978 elf-eh-frame.lo dwarf1.lo"
2ba49b59 14979
81ecdfbb 14980for vec in $selvecs
49c97a80 14981do
81ecdfbb
RW
14982 target_size=32
14983 case "$vec" in
14984 # This list is alphabetized to make it easy to compare
14985 # with the two vector lists in targets.c. For the same reason,
14986 # use one entry per line, even though this leads to long lines.
14987 a_out_adobe_vec) tb="$tb aout-adobe.lo aout32.lo" ;;
14988 aix5coff64_vec) tb="$tb coff64-rs6000.lo xcofflink.lo aix5ppc-core.lo"; target_size=64 ;;
14989 aout0_big_vec) tb="$tb aout0.lo aout32.lo" ;;
14990 aout_arm_big_vec) tb="$tb aout-arm.lo aout32.lo" ;;
14991 aout_arm_little_vec) tb="$tb aout-arm.lo aout32.lo" ;;
14992 apollocoff_vec) tb="$tb coff-apollo.lo" ;;
14993 arm_epoc_pe_big_vec) tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;;
14994 arm_epoc_pe_little_vec) tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;;
14995 arm_epoc_pei_big_vec) tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;;
14996 arm_epoc_pei_little_vec) tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;;
14997 arm_wince_pe_big_vec) tb="$tb pe-arm-wince.lo pe-arm.lo peigen.lo cofflink.lo " ;;
14998 arm_wince_pe_little_vec) tb="$tb pe-arm-wince.lo pe-arm.lo peigen.lo cofflink.lo " ;;
14999 arm_wince_pei_big_vec) tb="$tb pei-arm-wince.lo pei-arm.lo peigen.lo cofflink.lo " ;;
15000 arm_wince_pei_little_vec) tb="$tb pei-arm-wince.lo pei-arm.lo peigen.lo cofflink.lo " ;;
15001 armcoff_big_vec) tb="$tb coff-arm.lo cofflink.lo " ;;
15002 armcoff_little_vec) tb="$tb coff-arm.lo cofflink.lo " ;;
15003 armnetbsd_vec) tb="$tb armnetbsd.lo aout32.lo" ;;
15004 armpe_big_vec) tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;;
15005 armpe_little_vec) tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;;
15006 armpei_big_vec) tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;;
15007 armpei_little_vec) tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;;
15008 b_out_vec_big_host) tb="$tb bout.lo aout32.lo" ;;
15009 b_out_vec_little_host) tb="$tb bout.lo aout32.lo" ;;
15010 bfd_pei_ia64_vec) tb="$tb pei-ia64.lo pepigen.lo cofflink.lo"; target_size=64 ;;
15011 bfd_elf32_am33lin_vec) tb="$tb elf32-am33lin.lo elf32.lo $elf" ;;
15012 bfd_elf32_avr_vec) tb="$tb elf32-avr.lo elf32.lo $elf" ;;
15013 bfd_elf32_bfin_vec) tb="$tb elf32-bfin.lo elf32.lo $elf" ;;
15014 bfd_elf32_bfinfdpic_vec) tb="$tb elf32-bfin.lo elf32.lo $elf" ;;
15015 bfd_elf32_big_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
15016 bfd_elf32_bigarc_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;;
15017 bfd_elf32_bigarm_vec) tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
15018 bfd_elf32_bigarm_symbian_vec)
15019 tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
15020 bfd_elf32_bigarm_vxworks_vec)
15021 tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
15022 bfd_elf32_bigmips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
15023 bfd_elf32_bigmips_vxworks_vec)
15024 tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
15025 bfd_elf32_cr16_vec) tb="$tb elf32-cr16.lo elf32.lo $elf" ;;
15026 bfd_elf32_cr16c_vec) tb="$tb elf32-cr16c.lo elf32.lo $elf" ;;
15027 bfd_elf32_cris_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;;
15028 bfd_elf32_crx_vec) tb="$tb elf32-crx.lo elf32.lo $elf" ;;
15029 bfd_elf32_d10v_vec) tb="$tb elf32-d10v.lo elf32.lo $elf" ;;
15030 bfd_elf32_d30v_vec) tb="$tb elf32-d30v.lo elf32.lo $elf" ;;
15031 bfd_elf32_dlx_big_vec) tb="$tb elf32-dlx.lo elf32.lo $elf" ;;
15032 bfd_elf32_fr30_vec) tb="$tb elf32-fr30.lo elf32.lo $elf" ;;
15033 bfd_elf32_frv_vec) tb="$tb elf32-frv.lo elf32.lo $elf" ;;
15034 bfd_elf32_frvfdpic_vec) tb="$tb elf32-frv.lo elf32.lo $elf" ;;
15035 bfd_elf32_moxie_vec) tb="$tb elf32-moxie.lo elf32.lo $elf" ;;
15036 bfd_elf32_h8300_vec) tb="$tb elf32-h8300.lo elf32.lo $elf" ;;
15037 bfd_elf32_hppa_linux_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
15038 bfd_elf32_hppa_nbsd_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
15039 bfd_elf32_hppa_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
15040 bfd_elf32_i370_vec) tb="$tb elf32-i370.lo elf32.lo $elf" ;;
15041 bfd_elf32_i386_dragonfly_vec)
15042 tb="$tb elf32-i386.lo elf-ifunc.lo elf-vxworks.lo elf32.lo $elf" ;;
a6cc6b3b 15043 bfd_elf32_i386_sol2_vec) tb="$tb elf32-i386.lo elf-ifunc.lo elf-vxworks.lo elf32.lo $elf" ;;
81ecdfbb
RW
15044 bfd_elf32_i386_freebsd_vec) tb="$tb elf32-i386.lo elf-ifunc.lo elf-vxworks.lo elf32.lo $elf" ;;
15045 bfd_elf32_i386_vxworks_vec) tb="$tb elf32-i386.lo elf-ifunc.lo elf-vxworks.lo elf32.lo $elf" ;;
15046 bfd_elf32_i386_vec) tb="$tb elf32-i386.lo elf-ifunc.lo elf-vxworks.lo elf32.lo $elf" ;;
15047 bfd_elf32_i860_little_vec) tb="$tb elf32-i860.lo elf32.lo $elf" ;;
15048 bfd_elf32_i860_vec) tb="$tb elf32-i860.lo elf32.lo $elf" ;;
15049 bfd_elf32_i960_vec) tb="$tb elf32-i960.lo elf32.lo $elf" ;;
15050 bfd_elf32_ia64_big_vec) tb="$tb elf32-ia64.lo elf32.lo $elf" ;;
15051 bfd_elf32_ia64_hpux_big_vec) tb="$tb elf32-ia64.lo elf32.lo $elf";;
15052 bfd_elf32_ip2k_vec) tb="$tb elf32-ip2k.lo elf32.lo $elf" ;;
15053 bfd_elf32_iq2000_vec) tb="$tb elf32-iq2000.lo elf32.lo $elf" ;;
15054 bfd_elf32_lm32_vec) tb="$tb elf32-lm32.lo elf32.lo $elf" ;;
15055 bfd_elf32_lm32fdpic_vec) tb="$tb elf32-lm32.lo elf32.lo $elf" ;;
15056 bfd_elf32_little_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
15057 bfd_elf32_littlearc_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;;
15058 bfd_elf32_littlearm_symbian_vec)
15059 tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
15060 bfd_elf32_littlearm_vxworks_vec)
15061 tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
15062 bfd_elf32_littlearm_vec) tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
15063 bfd_elf32_littlemips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
15064 bfd_elf32_littlemips_vxworks_vec)
15065 tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
15066 bfd_elf32_m32c_vec) tb="$tb elf32-m32c.lo elf32.lo $elf" ;;
15067 bfd_elf32_m32r_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
15068 bfd_elf32_m32rle_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
15069 bfd_elf32_m32rlin_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
15070 bfd_elf32_m32rlelin_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
15071 bfd_elf32_m68hc11_vec) tb="$tb elf32-m68hc11.lo elf32-m68hc1x.lo elf32.lo $elf" ;;
15072 bfd_elf32_m68hc12_vec) tb="$tb elf32-m68hc12.lo elf32-m68hc1x.lo elf32.lo $elf" ;;
15073 bfd_elf32_m68k_vec) tb="$tb elf32-m68k.lo elf32.lo $elf" ;;
15074 bfd_elf32_m88k_vec) tb="$tb elf32-m88k.lo elf32.lo $elf" ;;
15075 bfd_elf32_mcore_big_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
15076 bfd_elf32_mcore_little_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
15077 bfd_elf32_mep_vec) tb="$tb elf32-mep.lo elf32.lo $elf" ;;
15078 bfd_elf32_mep_little_vec) tb="$tb elf32-mep.lo elf32.lo $elf" ;;
15079 bfd_elf32_microblaze_vec) tb="$tb elf32-microblaze.lo elf32.lo $elf" ;;
15080 bfd_elf32_mn10200_vec) tb="$tb elf-m10200.lo elf32.lo $elf" ;;
15081 bfd_elf32_mn10300_vec) tb="$tb elf-m10300.lo elf32.lo $elf" ;;
15082 bfd_elf32_mt_vec) tb="$tb elf32-mt.lo elf32.lo $elf" ;;
15083 bfd_elf32_msp430_vec) tb="$tb elf32-msp430.lo elf32.lo $elf" ;;
15084 bfd_elf32_nbigmips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
15085 bfd_elf32_nlittlemips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
15086 bfd_elf32_ntradbigmips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
15087 bfd_elf32_ntradlittlemips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
15088 bfd_elf32_openrisc_vec) tb="$tb elf32-openrisc.lo elf32.lo $elf" ;;
15089 bfd_elf32_or32_big_vec) tb="$tb elf32-or32.lo elf32.lo $elf" ;;
15090 bfd_elf32_pj_vec) tb="$tb elf32-pj.lo elf32.lo $elf";;
15091 bfd_elf32_pjl_vec) tb="$tb elf32-pj.lo elf32.lo $elf";;
15092 bfd_elf32_powerpc_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
15093 bfd_elf32_powerpcle_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
15094 bfd_elf32_powerpc_vxworks_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
c7927a3c
NC
15095 bfd_elf32_rx_le_vec) tb="$tb elf32-rx.lo elf32.lo $elf" ;;
15096 bfd_elf32_rx_be_vec) tb="$tb elf32-rx.lo elf32.lo $elf" ;;
81ecdfbb
RW
15097 bfd_elf32_s390_vec) tb="$tb elf32-s390.lo elf32.lo $elf" ;;
15098 bfd_elf32_bigscore_vec) tb="$tb elf32-score.lo elf32-score7.lo elf32.lo $elf"; want64=true; target_size=64;;
15099 bfd_elf32_littlescore_vec) tb="$tb elf32-score.lo elf32-score7.lo elf32.lo $elf"; want64=true; target_size=64;;
15100 # FIXME: We include cofflink.lo not because it's needed for
15101 # bfd_elf32_sh64[l]_vec, but because we include bfd_elf32_sh[l]_vec
15102 # which needs it but does not list it. Should be fixed in right place.
15103 bfd_elf32_sh64_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
15104 bfd_elf32_sh64l_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
15105 bfd_elf32_sh64lin_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
15106 bfd_elf32_sh64blin_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
15107 bfd_elf32_sh64lnbsd_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" ;;
15108 bfd_elf32_sh64nbsd_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" ;;
15109 bfd_elf32_sh_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
15110 bfd_elf32_shblin_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
15111 bfd_elf32_shl_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
15112 bfd_elf32_shl_symbian_vec) tb="$tb elf32-sh-symbian.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
15113 bfd_elf32_shlin_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
15114 bfd_elf32_shlnbsd_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
15115 bfd_elf32_shlvxworks_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
15116 bfd_elf32_shnbsd_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
15117 bfd_elf32_shvxworks_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
15118 bfd_elf32_sparc_vec) tb="$tb elf32-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf32.lo $elf" ;;
15119 bfd_elf32_sparc_vxworks_vec) tb="$tb elf32-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf32.lo $elf" ;;
15120 bfd_elf32_spu_vec) tb="$tb elf32-spu.lo elf32.lo $elf" ;;
40b36596
JM
15121 bfd_elf32_tic6x_be_vec) tb="$tb elf32-tic6x.lo elf32.lo $elf" ;;
15122 bfd_elf32_tic6x_le_vec) tb="$tb elf32-tic6x.lo elf32.lo $elf" ;;
81ecdfbb
RW
15123 bfd_elf32_tradbigmips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
15124 bfd_elf32_tradlittlemips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
15125 bfd_elf32_us_cris_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;;
15126 bfd_elf32_v850_vec) tb="$tb elf32-v850.lo elf32.lo $elf" ;;
15127 bfd_elf32_vax_vec) tb="$tb elf32-vax.lo elf32.lo $elf" ;;
15128 bfd_elf32_xstormy16_vec) tb="$tb elf32-xstormy16.lo elf32.lo $elf" ;;
15129 bfd_elf32_xc16x_vec) tb="$tb elf32-xc16x.lo elf32.lo $elf" ;;
15130 bfd_elf32_xtensa_le_vec) tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;;
15131 bfd_elf32_xtensa_be_vec) tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;;
15132 bfd_elf64_alpha_freebsd_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;;
15133 bfd_elf64_alpha_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;;
15134 bfd_elf64_big_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
15135 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 ;;
15136 bfd_elf64_hppa_linux_vec) tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;;
15137 bfd_elf64_hppa_vec) tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;;
15138 bfd_elf64_ia64_big_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
15139 bfd_elf64_ia64_hpux_big_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
15140 bfd_elf64_ia64_little_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
b11d79f2 15141 bfd_elf64_ia64_vms_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
81ecdfbb
RW
15142 bfd_elf64_little_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
15143 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 ;;
15144 bfd_elf64_mmix_vec) tb="$tb elf64-mmix.lo elf64.lo $elf" target_size=64 ;;
15145 bfd_elf64_powerpc_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
15146 bfd_elf64_powerpcle_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf" target_size=64 ;;
15147 bfd_elf64_s390_vec) tb="$tb elf64-s390.lo elf64.lo $elf"; target_size=64 ;;
15148 bfd_elf64_sh64_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
15149 bfd_elf64_sh64l_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
15150 bfd_elf64_sh64lin_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
15151 bfd_elf64_sh64blin_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
15152 bfd_elf64_sh64lnbsd_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
15153 bfd_elf64_sh64nbsd_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
15154 bfd_elf64_sparc_vec) tb="$tb elf64-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf64.lo $elf"; target_size=64 ;;
15155 bfd_elf64_sparc_freebsd_vec) tb="$tb elf64-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf64.lo $elf"; target_size=64 ;;
15156 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 ;;
15157 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 ;;
15158 bfd_elf64_x86_64_freebsd_vec) tb="$tb elf64-x86-64.lo elf-ifunc.lo elf64.lo $elf"; target_size=64 ;;
a6cc6b3b 15159 bfd_elf64_x86_64_sol2_vec) tb="$tb elf64-x86-64.lo elf-ifunc.lo elf64.lo $elf"; target_size=64 ;;
81ecdfbb
RW
15160 bfd_elf64_x86_64_vec) tb="$tb elf64-x86-64.lo elf-ifunc.lo elf64.lo $elf"; target_size=64 ;;
15161 bfd_elf64_l1om_vec) tb="$tb elf64-x86-64.lo elf-ifunc.lo elf64.lo $elf"; target_size=64 ;;
15162 bfd_elf64_l1om_freebsd_vec) tb="$tb elf64-x86-64.lo elf-ifunc.lo elf64.lo $elf"; target_size=64 ;;
15163 bfd_mmo_vec) tb="$tb mmo.lo" target_size=64 ;;
15164 bfd_powerpc_pe_vec) tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;;
15165 bfd_powerpc_pei_vec) tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;;
15166 bfd_powerpcle_pe_vec) tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;;
15167 bfd_powerpcle_pei_vec) tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;;
15168 cris_aout_vec) tb="$tb aout-cris.lo" ;;
15169 demo_64_vec) tb="$tb demo64.lo aout64.lo"; target_size=64 ;;
15170 ecoff_big_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
15171 ecoff_biglittle_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
15172 ecoff_little_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
15173 ecoffalpha_little_vec) tb="$tb coff-alpha.lo ecoff.lo ecofflink.lo"; target_size=64 ;;
15174 go32coff_vec) tb="$tb coff-go32.lo cofflink.lo" ;;
15175 go32stubbedcoff_vec) tb="$tb coff-stgo32.lo cofflink.lo" ;;
15176 h8300coff_vec) tb="$tb coff-h8300.lo reloc16.lo" ;;
15177 h8500coff_vec) tb="$tb coff-h8500.lo reloc16.lo" ;;
15178 host_aout_vec) tb="$tb host-aout.lo aout32.lo" ;;
15179 hp300bsd_vec) tb="$tb hp300bsd.lo aout32.lo" ;;
15180 hp300hpux_vec) tb="$tb hp300hpux.lo aout32.lo" ;;
15181 i386aout_vec) tb="$tb i386aout.lo aout32.lo" ;;
15182 i386bsd_vec) tb="$tb i386bsd.lo aout32.lo" ;;
15183 i386coff_vec) tb="$tb coff-i386.lo cofflink.lo" ;;
15184 x86_64coff_vec) tb="$tb coff-x86_64.lo cofflink.lo"; target_size=64 ;;
15185 i386dynix_vec) tb="$tb i386dynix.lo aout32.lo" ;;
15186 i386freebsd_vec) tb="$tb i386freebsd.lo aout32.lo" ;;
15187 i386linux_vec) tb="$tb i386linux.lo aout32.lo" ;;
15188 i386lynx_aout_vec) tb="$tb i386lynx.lo lynx-core.lo aout32.lo" ;;
15189 i386lynx_coff_vec) tb="$tb cf-i386lynx.lo cofflink.lo lynx-core.lo" ;;
15190 i386mach3_vec) tb="$tb i386mach3.lo aout32.lo" ;;
15191 i386msdos_vec) tb="$tb i386msdos.lo" ;;
15192 i386netbsd_vec) tb="$tb i386netbsd.lo aout32.lo" ;;
15193 i386os9k_vec) tb="$tb i386os9k.lo aout32.lo" ;;
15194 i386pe_vec) tb="$tb pe-i386.lo peigen.lo cofflink.lo" ;;
15195 i386pei_vec) tb="$tb pei-i386.lo peigen.lo cofflink.lo" ;;
15196 x86_64pe_vec) tb="$tb pe-x86_64.lo pex64igen.lo cofflink.lo"; target_size=64 ;;
15197 x86_64pei_vec) tb="$tb pei-x86_64.lo pex64igen.lo cofflink.lo"; target_size=64 ;;
15198 i860coff_vec) tb="$tb coff-i860.lo cofflink.lo" ;;
15199 icoff_big_vec) tb="$tb coff-i960.lo cofflink.lo" ;;
15200 icoff_little_vec) tb="$tb coff-i960.lo cofflink.lo" ;;
15201 ieee_vec) tb="$tb ieee.lo" ;;
15202 m68k4knetbsd_vec) tb="$tb m68k4knetbsd.lo aout32.lo" ;;
15203 m68kaux_coff_vec) tb="$tb coff-aux.lo coff-m68k.lo cofflink.lo" ;;
15204 m68kcoff_vec) tb="$tb coff-m68k.lo cofflink.lo" ;;
15205 m68kcoffun_vec) tb="$tb coff-u68k.lo coff-m68k.lo cofflink.lo" ;;
15206 m68klinux_vec) tb="$tb m68klinux.lo aout32.lo" ;;
15207 m68knetbsd_vec) tb="$tb m68knetbsd.lo aout32.lo" ;;
15208 m68ksysvcoff_vec) tb="$tb coff-svm68k.lo cofflink.lo" ;;
15209 m88kbcs_vec) tb="$tb coff-m88k.lo" ;;
15210 m88kmach3_vec) tb="$tb m88kmach3.lo aout32.lo" ;;
15211 m88kopenbsd_vec) tb="$tb m88kopenbsd.lo aout32.lo" ;;
15212 maxqcoff_vec) tb="$tb coff-maxq.lo" ;;
15213 mach_o_be_vec) tb="$tb mach-o.lo" ;;
15214 mach_o_le_vec) tb="$tb mach-o.lo" ;;
15215 mach_o_fat_vec) tb="$tb mach-o.lo" ;;
15216 mach_o_i386_vec) tb="$tb mach-o-i386.lo" ;;
618b7301 15217 mach_o_x86_64_vec) tb="$tb mach-o-x86-64.lo" ;;
81ecdfbb
RW
15218 mcore_pe_big_vec) tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
15219 mcore_pe_little_vec) tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
15220 mcore_pei_big_vec) tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;;
15221 mcore_pei_little_vec) tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;;
15222 mipslpe_vec) tb="$tb pe-mips.lo peigen.lo cofflink.lo" ;;
15223 mipslpei_vec) tb="$tb pei-mips.lo peigen.lo cofflink.lo" ;;
15224 newsos3_vec) tb="$tb newsos3.lo aout32.lo" ;;
15225 nlm32_alpha_vec) tb="$tb nlm32-alpha.lo nlm32.lo nlm.lo"; target_size=64 ;;
15226 nlm32_i386_vec) tb="$tb nlm32-i386.lo nlm32.lo nlm.lo" ;;
15227 nlm32_powerpc_vec) tb="$tb nlm32-ppc.lo nlm32.lo nlm.lo" ;;
15228 nlm32_sparc_vec) tb="$tb nlm32-sparc.lo nlm32.lo nlm.lo" ;;
15229 or32coff_big_vec) tb="$tb coff-or32.lo cofflink.lo" ;;
15230 pc532machaout_vec) tb="$tb pc532-mach.lo aout-ns32k.lo" ;;
15231 pc532netbsd_vec) tb="$tb ns32knetbsd.lo aout-ns32k.lo" ;;
15232 pef_vec) tb="$tb pef.lo" ;;
15233 pef_xlib_vec) tb="$tb pef.lo" ;;
15234 pdp11_aout_vec) tb="$tb pdp11.lo" ;;
15235 plugin_vec) tb="$tb plugin.lo" ;;
15236 pmac_xcoff_vec) tb="$tb coff-rs6000.lo xcofflink.lo" ;;
15237 ppcboot_vec) tb="$tb ppcboot.lo" ;;
15238 riscix_vec) tb="$tb aout32.lo riscix.lo" ;;
15239 rs6000coff64_vec) tb="$tb coff64-rs6000.lo xcofflink.lo aix5ppc-core.lo"; target_size=64 ;;
15240 rs6000coff_vec) tb="$tb coff-rs6000.lo xcofflink.lo" ;;
15241 shcoff_small_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
15242 shcoff_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
15243 shlcoff_small_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
15244 shlcoff_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
15245 shlpe_vec) tb="$tb pe-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;;
15246 shlpei_vec) tb="$tb pei-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;;
15247 som_vec) tb="$tb som.lo" ;;
15248 sparccoff_vec) tb="$tb coff-sparc.lo" ;;
15249 sparcle_aout_vec) tb="$tb aout-sparcle.lo aout32.lo" ;;
15250 sparclinux_vec) tb="$tb sparclinux.lo aout32.lo" ;;
15251 sparclynx_aout_vec) tb="$tb sparclynx.lo lynx-core.lo aout32.lo" ;;
15252 sparclynx_coff_vec) tb="$tb cf-sparclynx.lo lynx-core.lo" ;;
15253 sparcnetbsd_vec) tb="$tb sparcnetbsd.lo aout32.lo" ;;
15254 sunos_big_vec) tb="$tb sunos.lo aout32.lo" ;;
15255 sym_vec) tb="$tb xsym.lo" ;;
15256 tic30_aout_vec) tb="$tb aout-tic30.lo" ;;
15257 tic30_coff_vec) tb="$tb coff-tic30.lo" ;;
15258 tic4x_coff0_vec) tb="$tb coff-tic4x.lo" ;;
15259 tic4x_coff0_beh_vec) tb="$tb coff-tic4x.lo" ;;
15260 tic4x_coff1_vec) tb="$tb coff-tic4x.lo" ;;
15261 tic4x_coff1_beh_vec) tb="$tb coff-tic4x.lo" ;;
15262 tic4x_coff2_vec) tb="$tb coff-tic4x.lo" ;;
15263 tic4x_coff2_beh_vec) tb="$tb coff-tic4x.lo" ;;
15264 tic54x_coff0_beh_vec) tb="$tb coff-tic54x.lo" ;;
15265 tic54x_coff0_vec) tb="$tb coff-tic54x.lo" ;;
15266 tic54x_coff1_beh_vec) tb="$tb coff-tic54x.lo" ;;
15267 tic54x_coff1_vec) tb="$tb coff-tic54x.lo" ;;
15268 tic54x_coff2_beh_vec) tb="$tb coff-tic54x.lo" ;;
15269 tic54x_coff2_vec) tb="$tb coff-tic54x.lo" ;;
15270 tic80coff_vec) tb="$tb coff-tic80.lo cofflink.lo" ;;
15271 vaxnetbsd_vec) tb="$tb vaxnetbsd.lo aout32.lo" ;;
15272 vax1knetbsd_vec) tb="$tb vax1knetbsd.lo aout32.lo" ;;
15273 vaxbsd_vec) tb="$tb vaxbsd.lo aout32.lo" ;;
15274 versados_vec) tb="$tb versados.lo" ;;
4b544b64
TG
15275 vms_alpha_vec) tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo vms-lib.lo"; target_size=64 ;;
15276 vms_lib_txt_vec) tb="$tb vms-lib.lo vms-misc.lo" ;;
81ecdfbb
RW
15277 vms_vax_vec) tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo" ;;
15278 w65_vec) tb="$tb coff-w65.lo reloc16.lo" ;;
15279 we32kcoff_vec) tb="$tb coff-we32k.lo" ;;
15280 z80coff_vec) tb="$tb coff-z80.lo reloc16.lo" ;;
15281 z8kcoff_vec) tb="$tb coff-z8k.lo reloc16.lo cofflink.lo" ;;
2ba49b59 15282
81ecdfbb
RW
15283 # These appear out of order in targets.c
15284 srec_vec) tb="$tb srec.lo" ;;
15285 symbolsrec_vec) tb="$tb srec.lo" ;;
15286 tekhex_vec) tb="$tb tekhex.lo" ;;
15287 cisco_core_big_vec) tb="$tb cisco-core.lo" ;;
15288 cisco_core_little_vec) tb="$tb cisco-core.lo" ;;
5464f5a1 15289
81ecdfbb
RW
15290 "") ;;
15291 *) as_fn_error "*** unknown target vector $vec" "$LINENO" 5 ;;
15292 esac
1012372a 15293
81ecdfbb
RW
15294 if test ${target_size} = 64; then
15295 target64=true
15296 fi
15297 if test x"${vec}" = x"${defvec}"; then
15298 bfd_default_target_size=${target_size}
15299 fi
15300done
2ba49b59 15301
81ecdfbb
RW
15302# Target architecture .o files.
15303# A couple of CPUs use shorter file names to avoid problems on DOS
15304# filesystems.
15305ta=`echo $selarchs | sed -e s/bfd_/cpu-/g -e s/_arch/.lo/g -e s/mn10200/m10200/ -e s/mn10300/m10300/`
5464f5a1 15306
81ecdfbb
RW
15307# Weed out duplicate .o files.
15308f=""
15309for i in $tb ; do
15310 case " $f " in
15311 *" $i "*) ;;
15312 *) f="$f $i" ;;
15313 esac
1012372a 15314done
81ecdfbb 15315tb="$f"
1012372a 15316
81ecdfbb
RW
15317f=""
15318for i in $ta ; do
15319 case " $f " in
15320 *" $i "*) ;;
15321 *) f="$f $i" ;;
15322 esac
15323done
15324ta="$f"
2ba49b59 15325
81ecdfbb
RW
15326bfd_backends="$tb"
15327bfd_machines="$ta"
1012372a 15328
81ecdfbb
RW
15329if test x${all_targets} = xtrue ; then
15330 bfd_backends="${bfd_backends}"' $(ALL_BACKENDS)'
15331 bfd_machines="${bfd_machines}"' $(ALL_MACHINES)'
15332 selvecs=
15333 havevecs=
15334 selarchs=
15335 test -n "$assocvecs" &&
15336 assocvecs=`echo $assocvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
15337else # all_targets is true
15338 # Only set these if they will be nonempty, for the clever echo.
15339 havevecs=
15340 assocvecs=
15341 test -n "$selvecs" &&
15342 havevecs=`echo $selvecs | sed -e 's/^/-DHAVE_/' -e 's/ \(.\)/ -DHAVE_\1/g'`
15343 test -n "$selvecs" &&
15344 selvecs=`echo $selvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
15345 test -n "$selarchs" &&
15346 selarchs=`echo $selarchs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
15347fi # all_targets is true
15348
15349case ${host64}-${target64}-${want64} in
15350 *true*)
15351 wordsize=64
15352 bfd64_libs='$(BFD64_LIBS)'
15353 all_backends='$(BFD64_BACKENDS) $(BFD32_BACKENDS)'
15354 if test $BFD_HOST_64_BIT_DEFINED = 0; then
15355 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You have requested a 64 bit BFD configuration, but" >&5
15356$as_echo "$as_me: WARNING: You have requested a 64 bit BFD configuration, but" >&2;}
15357 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: your compiler may not have a 64 bit integral type" >&5
15358$as_echo "$as_me: WARNING: your compiler may not have a 64 bit integral type" >&2;}
15359 fi
15360 if test -n "$GCC" ; then
15361 bad_64bit_gcc=no;
15362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc version with buggy 64-bit support" >&5
15363$as_echo_n "checking for gcc version with buggy 64-bit support... " >&6; }
15364 # Add more tests for gcc versions with non-working 64-bit support here.
15365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15366/* end confdefs.h. */
15367:__GNUC__:__GNUC_MINOR__:__i386__:
15368_ACEOF
15369if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15370 $EGREP ": 2 : 91 : 1 :" >/dev/null 2>&1; then :
15371 bad_64bit_gcc=yes;
15372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes: egcs-1.1.2 on ix86 spotted" >&5
15373$as_echo "yes: egcs-1.1.2 on ix86 spotted" >&6; }
2ba49b59 15374else
81ecdfbb
RW
15375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15376$as_echo "no" >&6; }
2ba49b59 15377fi
81ecdfbb 15378rm -f conftest*
1012372a 15379
81ecdfbb
RW
15380 if test $bad_64bit_gcc = yes ; then
15381 as_fn_error "A newer version of gcc is needed for the requested 64-bit BFD configuration" "$LINENO" 5
15382 fi
15383 fi
15384 ;;
15385 false-false-false)
15386 wordsize=32
15387 all_backends='$(BFD32_BACKENDS)'
15388 ;;
15389esac
1012372a
AC
15390
15391
15392
15393
252b5132 15394
6be7c12c 15395
5464f5a1
NN
15396
15397
81ecdfbb
RW
15398if test "$plugins" = "yes"; then
15399 supports_plugins=1
5464f5a1 15400else
81ecdfbb 15401 supports_plugins=0
5464f5a1 15402fi
5464f5a1 15403
81ecdfbb
RW
15404
15405# Determine the host dependant file_ptr a.k.a. off_t type. In order
15406# prefer: off64_t - if ftello64 and fseeko64, off_t - if ftello and
15407# fseeko, long. This assumes that sizeof off_t is .ge. sizeof long.
15408# Hopefully a reasonable assumption since fseeko et.al. should be
15409# upward compatible.
15410for ac_func in ftello ftello64 fseeko fseeko64 fopen64
15411do :
15412 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15413ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15414eval as_val=\$$as_ac_var
15415 if test "x$as_val" = x""yes; then :
15416 cat >>confdefs.h <<_ACEOF
15417#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5464f5a1 15418_ACEOF
5464f5a1 15419
252b5132 15420fi
81ecdfbb 15421done
5464f5a1 15422
81ecdfbb
RW
15423if test x"$ac_cv_func_ftello" = xyes -a x"$ac_cv_func_fseeko" = xyes; then
15424 # The cast to long int works around a bug in the HP C Compiler
15425# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15426# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15427# This bug is HP SR number 8606223364.
15428{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
15429$as_echo_n "checking size of off_t... " >&6; }
15430if test "${ac_cv_sizeof_off_t+set}" = set; then :
15431 $as_echo_n "(cached) " >&6
6be7c12c 15432else
81ecdfbb 15433 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then :
5464f5a1 15434
81ecdfbb
RW
15435else
15436 if test "$ac_cv_type_off_t" = yes; then
15437 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15438$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15439{ as_fn_set_status 77
15440as_fn_error "cannot compute sizeof (off_t)
15441See \`config.log' for more details." "$LINENO" 5; }; }
15442 else
15443 ac_cv_sizeof_off_t=0
15444 fi
5464f5a1 15445fi
5464f5a1 15446
252b5132 15447fi
81ecdfbb
RW
15448{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
15449$as_echo "$ac_cv_sizeof_off_t" >&6; }
5464f5a1 15450
252b5132 15451
5464f5a1 15452
81ecdfbb
RW
15453cat >>confdefs.h <<_ACEOF
15454#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
5464f5a1 15455_ACEOF
5464f5a1 15456
5464f5a1 15457
81ecdfbb
RW
15458fi
15459{ $as_echo "$as_me:${as_lineno-$LINENO}: checking file_ptr type" >&5
15460$as_echo_n "checking file_ptr type... " >&6; }
15461bfd_file_ptr="long"
15462bfd_ufile_ptr="unsigned long"
15463if test x"$ac_cv_func_ftello64" = xyes -a x"$ac_cv_func_fseeko64" = xyes \
15464 -o x"${ac_cv_sizeof_off_t}" = x8; then
15465 bfd_file_ptr=BFD_HOST_64_BIT
15466 bfd_ufile_ptr=BFD_HOST_U_64_BIT
15467fi
15468{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_file_ptr" >&5
15469$as_echo "$bfd_file_ptr" >&6; }
15470
6be7c12c 15471
252b5132 15472
252b5132 15473
81ecdfbb
RW
15474tdefaults=""
15475test -n "${defvec}" && tdefaults="${tdefaults} -DDEFAULT_VECTOR=${defvec}"
15476test -n "${selvecs}" && tdefaults="${tdefaults} -DSELECT_VECS='${selvecs}'"
15477test -n "${assocvecs}" && tdefaults="${tdefaults} -DASSOCIATED_VECS='${assocvecs}'"
15478test -n "${selarchs}" && tdefaults="${tdefaults} -DSELECT_ARCHITECTURES='${selarchs}'"
15479test -n "${havevecs}" && tdefaults="${tdefaults} ${havevecs}"
15480
15481
15482for ac_header in stdlib.h unistd.h
15483do :
15484 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15485ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15486eval as_val=\$$as_ac_Header
15487 if test "x$as_val" = x""yes; then :
15488 cat >>confdefs.h <<_ACEOF
15489#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5464f5a1 15490_ACEOF
5464f5a1 15491
5464f5a1 15492fi
81ecdfbb
RW
15493
15494done
15495
15496for ac_func in getpagesize
15497do :
15498 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
15499if test "x$ac_cv_func_getpagesize" = x""yes; then :
5464f5a1 15500 cat >>confdefs.h <<_ACEOF
81ecdfbb 15501#define HAVE_GETPAGESIZE 1
5464f5a1 15502_ACEOF
252b5132 15503
252b5132
RH
15504fi
15505done
15506
81ecdfbb
RW
15507{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
15508$as_echo_n "checking for working mmap... " >&6; }
15509if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
15510 $as_echo_n "(cached) " >&6
252b5132 15511else
81ecdfbb 15512 if test "$cross_compiling" = yes; then :
252b5132
RH
15513 ac_cv_func_mmap_fixed_mapped=no
15514else
81ecdfbb 15515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5464f5a1
NN
15516/* end confdefs.h. */
15517$ac_includes_default
15518/* malloc might have been renamed as rpl_malloc. */
15519#undef malloc
6be7c12c 15520
252b5132
RH
15521/* Thanks to Mike Haertel and Jim Avera for this test.
15522 Here is a matrix of mmap possibilities:
15523 mmap private not fixed
15524 mmap private fixed at somewhere currently unmapped
15525 mmap private fixed at somewhere already mapped
15526 mmap shared not fixed
15527 mmap shared fixed at somewhere currently unmapped
15528 mmap shared fixed at somewhere already mapped
15529 For private mappings, we should verify that changes cannot be read()
15530 back from the file, nor mmap's back from the file at a different
15531 address. (There have been systems where private was not correctly
15532 implemented like the infamous i386 svr4.0, and systems where the
5464f5a1 15533 VM page cache was not coherent with the file system buffer cache
252b5132
RH
15534 like early versions of FreeBSD and possibly contemporary NetBSD.)
15535 For shared mappings, we should conversely verify that changes get
5464f5a1 15536 propagated back to all the places they're supposed to be.
252b5132
RH
15537
15538 Grep wants private fixed already mapped.
15539 The main things grep needs to know about mmap are:
15540 * does it exist and is it safe to write into the mmap'd area
15541 * how to use it (BSD variants) */
5464f5a1 15542
252b5132
RH
15543#include <fcntl.h>
15544#include <sys/mman.h>
15545
81ecdfbb 15546#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
5464f5a1
NN
15547char *malloc ();
15548#endif
6be7c12c 15549
5464f5a1 15550/* This mess was copied from the GNU getpagesize.h. */
81ecdfbb 15551#ifndef HAVE_GETPAGESIZE
252b5132 15552/* Assume that all systems that can run configure have sys/param.h. */
81ecdfbb 15553# ifndef HAVE_SYS_PARAM_H
252b5132
RH
15554# define HAVE_SYS_PARAM_H 1
15555# endif
15556
15557# ifdef _SC_PAGESIZE
15558# define getpagesize() sysconf(_SC_PAGESIZE)
15559# else /* no _SC_PAGESIZE */
81ecdfbb 15560# ifdef HAVE_SYS_PARAM_H
252b5132
RH
15561# include <sys/param.h>
15562# ifdef EXEC_PAGESIZE
15563# define getpagesize() EXEC_PAGESIZE
15564# else /* no EXEC_PAGESIZE */
15565# ifdef NBPG
15566# define getpagesize() NBPG * CLSIZE
15567# ifndef CLSIZE
15568# define CLSIZE 1
15569# endif /* no CLSIZE */
15570# else /* no NBPG */
15571# ifdef NBPC
15572# define getpagesize() NBPC
15573# else /* no NBPC */
15574# ifdef PAGESIZE
15575# define getpagesize() PAGESIZE
15576# endif /* PAGESIZE */
15577# endif /* no NBPC */
15578# endif /* no NBPG */
15579# endif /* no EXEC_PAGESIZE */
15580# else /* no HAVE_SYS_PARAM_H */
15581# define getpagesize() 8192 /* punt totally */
15582# endif /* no HAVE_SYS_PARAM_H */
15583# endif /* no _SC_PAGESIZE */
15584
5464f5a1
NN
15585#endif /* no HAVE_GETPAGESIZE */
15586
15587int
15588main ()
15589{
15590 char *data, *data2, *data3;
15591 int i, pagesize;
15592 int fd;
15593
15594 pagesize = getpagesize ();
15595
15596 /* First, make a file with some known garbage in it. */
15597 data = (char *) malloc (pagesize);
15598 if (!data)
81ecdfbb 15599 return 1;
5464f5a1
NN
15600 for (i = 0; i < pagesize; ++i)
15601 *(data + i) = rand ();
15602 umask (0);
15603 fd = creat ("conftest.mmap", 0600);
15604 if (fd < 0)
81ecdfbb 15605 return 1;
5464f5a1 15606 if (write (fd, data, pagesize) != pagesize)
81ecdfbb 15607 return 1;
5464f5a1
NN
15608 close (fd);
15609
15610 /* Next, try to mmap the file at a fixed address which already has
15611 something else allocated at it. If we can, also make sure that
15612 we see the same garbage. */
15613 fd = open ("conftest.mmap", O_RDWR);
15614 if (fd < 0)
81ecdfbb 15615 return 1;
5464f5a1
NN
15616 data2 = (char *) malloc (2 * pagesize);
15617 if (!data2)
81ecdfbb
RW
15618 return 1;
15619 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
5464f5a1
NN
15620 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
15621 MAP_PRIVATE | MAP_FIXED, fd, 0L))
81ecdfbb 15622 return 1;
5464f5a1
NN
15623 for (i = 0; i < pagesize; ++i)
15624 if (*(data + i) != *(data2 + i))
81ecdfbb 15625 return 1;
5464f5a1
NN
15626
15627 /* Finally, make sure that changes to the mapped area do not
15628 percolate back to the file as seen by read(). (This is a bug on
15629 some variants of i386 svr4.0.) */
15630 for (i = 0; i < pagesize; ++i)
15631 *(data2 + i) = *(data2 + i) + 1;
15632 data3 = (char *) malloc (pagesize);
15633 if (!data3)
81ecdfbb 15634 return 1;
5464f5a1 15635 if (read (fd, data3, pagesize) != pagesize)
81ecdfbb 15636 return 1;
5464f5a1
NN
15637 for (i = 0; i < pagesize; ++i)
15638 if (*(data + i) != *(data3 + i))
81ecdfbb 15639 return 1;
5464f5a1 15640 close (fd);
81ecdfbb 15641 return 0;
5464f5a1
NN
15642}
15643_ACEOF
81ecdfbb 15644if ac_fn_c_try_run "$LINENO"; then :
5464f5a1
NN
15645 ac_cv_func_mmap_fixed_mapped=yes
15646else
81ecdfbb 15647 ac_cv_func_mmap_fixed_mapped=no
5464f5a1 15648fi
81ecdfbb
RW
15649rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15650 conftest.$ac_objext conftest.beam conftest.$ac_ext
5464f5a1 15651fi
81ecdfbb 15652
5464f5a1 15653fi
81ecdfbb
RW
15654{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
15655$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
5464f5a1
NN
15656if test $ac_cv_func_mmap_fixed_mapped = yes; then
15657
81ecdfbb 15658$as_echo "#define HAVE_MMAP 1" >>confdefs.h
5464f5a1
NN
15659
15660fi
15661rm -f conftest.mmap
15662
5464f5a1 15663for ac_func in madvise mprotect
81ecdfbb
RW
15664do :
15665 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15666ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15667eval as_val=\$$as_ac_var
15668 if test "x$as_val" = x""yes; then :
5464f5a1 15669 cat >>confdefs.h <<_ACEOF
81ecdfbb 15670#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5464f5a1
NN
15671_ACEOF
15672
15673fi
15674done
15675
15676case ${want_mmap}+${ac_cv_func_mmap_fixed_mapped} in
15677 true+yes )
81ecdfbb 15678$as_echo "#define USE_MMAP 1" >>confdefs.h
5464f5a1
NN
15679 ;;
15680esac
15681
15682rm -f doc/config.status
81ecdfbb 15683ac_config_files="$ac_config_files Makefile doc/Makefile bfd-in3.h:bfd-in2.h po/Makefile.in:po/Make-in"
5464f5a1 15684
20e95c23 15685
81ecdfbb 15686ac_config_commands="$ac_config_commands default"
5464f5a1 15687
108a6f8e
CD
15688
15689
15690
15691
15692
31dd3154 15693
5464f5a1
NN
15694cat >confcache <<\_ACEOF
15695# This file is a shell script that caches the results of configure
15696# tests run on this system so they can be shared between configure
15697# scripts and configure runs, see configure's option --config-cache.
15698# It is not useful on other systems. If it contains results you don't
15699# want to keep, you may remove or edit it.
15700#
15701# config.status only pays attention to the cache file if you give it
15702# the --recheck option to rerun configure.
15703#
15704# `ac_cv_env_foo' variables (set or unset) will be overridden when
15705# loading this file, other *unset* `ac_cv_foo' will be assigned the
15706# following values.
15707
15708_ACEOF
15709
15710# The following way of writing the cache mishandles newlines in values,
15711# but we know of no workaround that is simple, portable, and efficient.
81ecdfbb 15712# So, we kill variables containing newlines.
5464f5a1
NN
15713# Ultrix sh set writes to stderr and can't be redirected directly,
15714# and sets the high bit in the cache file unless we assign to the vars.
81ecdfbb
RW
15715(
15716 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15717 eval ac_val=\$$ac_var
15718 case $ac_val in #(
15719 *${as_nl}*)
15720 case $ac_var in #(
15721 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15722$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15723 esac
15724 case $ac_var in #(
15725 _ | IFS | as_nl) ;; #(
15726 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15727 *) { eval $ac_var=; unset $ac_var;} ;;
15728 esac ;;
15729 esac
15730 done
15731
5464f5a1 15732 (set) 2>&1 |
81ecdfbb
RW
15733 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15734 *${as_nl}ac_space=\ *)
15735 # `set' does not quote correctly, so add quotes: double-quote
15736 # substitution turns \\\\ into \\, and sed turns \\ into \.
5464f5a1
NN
15737 sed -n \
15738 "s/'/'\\\\''/g;
15739 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
81ecdfbb 15740 ;; #(
5464f5a1
NN
15741 *)
15742 # `set' quotes correctly as required by POSIX, so do not add quotes.
81ecdfbb 15743 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
5464f5a1 15744 ;;
81ecdfbb
RW
15745 esac |
15746 sort
15747) |
5464f5a1 15748 sed '
81ecdfbb 15749 /^ac_cv_env_/b end
5464f5a1 15750 t clear
81ecdfbb 15751 :clear
5464f5a1
NN
15752 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15753 t end
81ecdfbb
RW
15754 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15755 :end' >>confcache
15756if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15757 if test -w "$cache_file"; then
15758 test "x$cache_file" != "x/dev/null" &&
15759 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15760$as_echo "$as_me: updating cache $cache_file" >&6;}
5464f5a1
NN
15761 cat confcache >$cache_file
15762 else
81ecdfbb
RW
15763 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15764$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
5464f5a1
NN
15765 fi
15766fi
15767rm -f confcache
15768
15769test "x$prefix" = xNONE && prefix=$ac_default_prefix
15770# Let make expand exec_prefix.
15771test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15772
5464f5a1
NN
15773DEFS=-DHAVE_CONFIG_H
15774
15775ac_libobjs=
15776ac_ltlibobjs=
15777for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15778 # 1. Remove the extension, and $U if already installed.
81ecdfbb
RW
15779 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15780 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15781 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15782 # will be set to the directory where LIBOBJS objects are built.
15783 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15784 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
5464f5a1
NN
15785done
15786LIBOBJS=$ac_libobjs
15787
15788LTLIBOBJS=$ac_ltlibobjs
15789
15790
f5385ebf 15791if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
81ecdfbb
RW
15792 as_fn_error "conditional \"AMDEP\" was never defined.
15793Usually this means the macro was only invoked conditionally." "$LINENO" 5
f5385ebf
AM
15794fi
15795if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
81ecdfbb
RW
15796 as_fn_error "conditional \"am__fastdepCC\" was never defined.
15797Usually this means the macro was only invoked conditionally." "$LINENO" 5
15798fi
15799 if test -n "$EXEEXT"; then
15800 am__EXEEXT_TRUE=
15801 am__EXEEXT_FALSE='#'
15802else
15803 am__EXEEXT_TRUE='#'
15804 am__EXEEXT_FALSE=
f5385ebf 15805fi
81ecdfbb 15806
ce3c775b 15807if test -z "${PLUGINS_TRUE}" && test -z "${PLUGINS_FALSE}"; then
81ecdfbb
RW
15808 as_fn_error "conditional \"PLUGINS\" was never defined.
15809Usually this means the macro was only invoked conditionally." "$LINENO" 5
ce3c775b 15810fi
f5385ebf 15811if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
81ecdfbb
RW
15812 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
15813Usually this means the macro was only invoked conditionally." "$LINENO" 5
f5385ebf 15814fi
d5fbea21 15815if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
81ecdfbb
RW
15816 as_fn_error "conditional \"GENINSRC_NEVER\" was never defined.
15817Usually this means the macro was only invoked conditionally." "$LINENO" 5
d5fbea21 15818fi
f5385ebf 15819if test -z "${INSTALL_LIBBFD_TRUE}" && test -z "${INSTALL_LIBBFD_FALSE}"; then
81ecdfbb
RW
15820 as_fn_error "conditional \"INSTALL_LIBBFD\" was never defined.
15821Usually this means the macro was only invoked conditionally." "$LINENO" 5
f5385ebf 15822fi
5464f5a1
NN
15823
15824: ${CONFIG_STATUS=./config.status}
81ecdfbb 15825ac_write_fail=0
5464f5a1
NN
15826ac_clean_files_save=$ac_clean_files
15827ac_clean_files="$ac_clean_files $CONFIG_STATUS"
81ecdfbb
RW
15828{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15829$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15830as_write_fail=0
15831cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
5464f5a1
NN
15832#! $SHELL
15833# Generated by $as_me.
15834# Run this file to recreate the current configuration.
15835# Compiler output produced by configure, useful for debugging
15836# configure, is in config.log if it exists.
15837
15838debug=false
15839ac_cs_recheck=false
15840ac_cs_silent=false
5464f5a1 15841
81ecdfbb
RW
15842SHELL=\${CONFIG_SHELL-$SHELL}
15843export SHELL
15844_ASEOF
15845cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15846## -------------------- ##
15847## M4sh Initialization. ##
15848## -------------------- ##
5464f5a1 15849
81ecdfbb
RW
15850# Be more Bourne compatible
15851DUALCASE=1; export DUALCASE # for MKS sh
15852if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
5464f5a1
NN
15853 emulate sh
15854 NULLCMD=:
81ecdfbb 15855 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
5464f5a1
NN
15856 # is contrary to our usage. Disable this feature.
15857 alias -g '${1+"$@"}'='"$@"'
81ecdfbb
RW
15858 setopt NO_GLOB_SUBST
15859else
15860 case `(set -o) 2>/dev/null` in #(
15861 *posix*) :
15862 set -o posix ;; #(
15863 *) :
15864 ;;
15865esac
5464f5a1 15866fi
5464f5a1 15867
81ecdfbb
RW
15868
15869as_nl='
15870'
15871export as_nl
15872# Printing a long string crashes Solaris 7 /usr/bin/printf.
15873as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15874as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15875as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15876# Prefer a ksh shell builtin over an external printf program on Solaris,
15877# but without wasting forks for bash or zsh.
15878if test -z "$BASH_VERSION$ZSH_VERSION" \
15879 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15880 as_echo='print -r --'
15881 as_echo_n='print -rn --'
15882elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15883 as_echo='printf %s\n'
15884 as_echo_n='printf %s'
15885else
15886 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15887 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15888 as_echo_n='/usr/ucb/echo -n'
15889 else
15890 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15891 as_echo_n_body='eval
15892 arg=$1;
15893 case $arg in #(
15894 *"$as_nl"*)
15895 expr "X$arg" : "X\\(.*\\)$as_nl";
15896 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15897 esac;
15898 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15899 '
15900 export as_echo_n_body
15901 as_echo_n='sh -c $as_echo_n_body as_echo'
15902 fi
15903 export as_echo_body
15904 as_echo='sh -c $as_echo_body as_echo'
15905fi
15906
15907# The user is always right.
15908if test "${PATH_SEPARATOR+set}" != set; then
15909 PATH_SEPARATOR=:
15910 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15911 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15912 PATH_SEPARATOR=';'
15913 }
5464f5a1
NN
15914fi
15915
15916
81ecdfbb
RW
15917# IFS
15918# We need space, tab and new line, in precisely that order. Quoting is
15919# there to prevent editors from complaining about space-tab.
15920# (If _AS_PATH_WALK were called with IFS unset, it would disable word
15921# splitting by setting IFS to empty value.)
15922IFS=" "" $as_nl"
15923
15924# Find who we are. Look in the path if we contain no directory separator.
15925case $0 in #((
15926 *[\\/]* ) as_myself=$0 ;;
15927 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15928for as_dir in $PATH
15929do
15930 IFS=$as_save_IFS
15931 test -z "$as_dir" && as_dir=.
15932 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15933 done
15934IFS=$as_save_IFS
15935
15936 ;;
15937esac
15938# We did not find ourselves, most probably we were run as `sh COMMAND'
15939# in which case we are not to be found in the path.
15940if test "x$as_myself" = x; then
15941 as_myself=$0
15942fi
15943if test ! -f "$as_myself"; then
15944 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15945 exit 1
15946fi
15947
15948# Unset variables that we do not need and which cause bugs (e.g. in
15949# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15950# suppresses any "Segmentation fault" message there. '((' could
15951# trigger a bug in pdksh 5.2.14.
15952for as_var in BASH_ENV ENV MAIL MAILPATH
15953do eval test x\${$as_var+set} = xset \
15954 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15955done
5464f5a1
NN
15956PS1='$ '
15957PS2='> '
15958PS4='+ '
15959
15960# NLS nuisances.
81ecdfbb
RW
15961LC_ALL=C
15962export LC_ALL
15963LANGUAGE=C
15964export LANGUAGE
15965
15966# CDPATH.
15967(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15968
15969
15970# as_fn_error ERROR [LINENO LOG_FD]
15971# ---------------------------------
15972# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15973# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15974# script with status $?, using 1 if that was 0.
15975as_fn_error ()
15976{
15977 as_status=$?; test $as_status -eq 0 && as_status=1
15978 if test "$3"; then
15979 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15980 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
5464f5a1 15981 fi
81ecdfbb
RW
15982 $as_echo "$as_me: error: $1" >&2
15983 as_fn_exit $as_status
15984} # as_fn_error
15985
15986
15987# as_fn_set_status STATUS
15988# -----------------------
15989# Set $? to STATUS, without forking.
15990as_fn_set_status ()
15991{
15992 return $1
15993} # as_fn_set_status
15994
15995# as_fn_exit STATUS
15996# -----------------
15997# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15998as_fn_exit ()
15999{
16000 set +e
16001 as_fn_set_status $1
16002 exit $1
16003} # as_fn_exit
16004
16005# as_fn_unset VAR
16006# ---------------
16007# Portably unset VAR.
16008as_fn_unset ()
16009{
16010 { eval $1=; unset $1;}
16011}
16012as_unset=as_fn_unset
16013# as_fn_append VAR VALUE
16014# ----------------------
16015# Append the text in VALUE to the end of the definition contained in VAR. Take
16016# advantage of any shell optimizations that allow amortized linear growth over
16017# repeated appends, instead of the typical quadratic growth present in naive
16018# implementations.
16019if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16020 eval 'as_fn_append ()
16021 {
16022 eval $1+=\$2
16023 }'
16024else
16025 as_fn_append ()
16026 {
16027 eval $1=\$$1\$2
16028 }
16029fi # as_fn_append
16030
16031# as_fn_arith ARG...
16032# ------------------
16033# Perform arithmetic evaluation on the ARGs, and store the result in the
16034# global $as_val. Take advantage of shells that can avoid forks. The arguments
16035# must be portable across $(()) and expr.
16036if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16037 eval 'as_fn_arith ()
16038 {
16039 as_val=$(( $* ))
16040 }'
16041else
16042 as_fn_arith ()
16043 {
16044 as_val=`expr "$@" || test $? -eq 1`
16045 }
16046fi # as_fn_arith
16047
5464f5a1 16048
81ecdfbb
RW
16049if expr a : '\(a\)' >/dev/null 2>&1 &&
16050 test "X`expr 00001 : '.*\(...\)'`" = X001; then
5464f5a1
NN
16051 as_expr=expr
16052else
16053 as_expr=false
16054fi
16055
81ecdfbb 16056if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
5464f5a1
NN
16057 as_basename=basename
16058else
16059 as_basename=false
16060fi
252b5132 16061
81ecdfbb
RW
16062if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16063 as_dirname=dirname
16064else
16065 as_dirname=false
16066fi
6be7c12c 16067
81ecdfbb 16068as_me=`$as_basename -- "$0" ||
5464f5a1
NN
16069$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16070 X"$0" : 'X\(//\)$' \| \
81ecdfbb
RW
16071 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16072$as_echo X/"$0" |
16073 sed '/^.*\/\([^/][^/]*\)\/*$/{
16074 s//\1/
16075 q
16076 }
16077 /^X\/\(\/\/\)$/{
16078 s//\1/
16079 q
16080 }
16081 /^X\/\(\/\).*/{
16082 s//\1/
16083 q
16084 }
16085 s/.*/./; q'`
5464f5a1 16086
5464f5a1
NN
16087# Avoid depending upon Character Ranges.
16088as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16089as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16090as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16091as_cr_digits='0123456789'
16092as_cr_alnum=$as_cr_Letters$as_cr_digits
16093
81ecdfbb
RW
16094ECHO_C= ECHO_N= ECHO_T=
16095case `echo -n x` in #(((((
16096-n*)
16097 case `echo 'xy\c'` in
16098 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16099 xy) ECHO_C='\c';;
16100 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16101 ECHO_T=' ';;
16102 esac;;
16103*)
16104 ECHO_N='-n';;
5464f5a1
NN
16105esac
16106
81ecdfbb
RW
16107rm -f conf$$ conf$$.exe conf$$.file
16108if test -d conf$$.dir; then
16109 rm -f conf$$.dir/conf$$.file
252b5132 16110else
81ecdfbb
RW
16111 rm -f conf$$.dir
16112 mkdir conf$$.dir 2>/dev/null
252b5132 16113fi
81ecdfbb
RW
16114if (echo >conf$$.file) 2>/dev/null; then
16115 if ln -s conf$$.file conf$$ 2>/dev/null; then
5464f5a1 16116 as_ln_s='ln -s'
81ecdfbb
RW
16117 # ... but there are two gotchas:
16118 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16119 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16120 # In both cases, we have to default to `cp -p'.
16121 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16122 as_ln_s='cp -p'
16123 elif ln conf$$.file conf$$ 2>/dev/null; then
16124 as_ln_s=ln
16125 else
16126 as_ln_s='cp -p'
5464f5a1 16127 fi
5464f5a1
NN
16128else
16129 as_ln_s='cp -p'
252b5132 16130fi
81ecdfbb
RW
16131rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16132rmdir conf$$.dir 2>/dev/null
16133
16134
16135# as_fn_mkdir_p
16136# -------------
16137# Create "$as_dir" as a directory, including parents if necessary.
16138as_fn_mkdir_p ()
16139{
16140
16141 case $as_dir in #(
16142 -*) as_dir=./$as_dir;;
16143 esac
16144 test -d "$as_dir" || eval $as_mkdir_p || {
16145 as_dirs=
16146 while :; do
16147 case $as_dir in #(
16148 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16149 *) as_qdir=$as_dir;;
16150 esac
16151 as_dirs="'$as_qdir' $as_dirs"
16152 as_dir=`$as_dirname -- "$as_dir" ||
16153$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16154 X"$as_dir" : 'X\(//\)[^/]' \| \
16155 X"$as_dir" : 'X\(//\)$' \| \
16156 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16157$as_echo X"$as_dir" |
16158 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16159 s//\1/
16160 q
16161 }
16162 /^X\(\/\/\)[^/].*/{
16163 s//\1/
16164 q
16165 }
16166 /^X\(\/\/\)$/{
16167 s//\1/
16168 q
16169 }
16170 /^X\(\/\).*/{
16171 s//\1/
16172 q
16173 }
16174 s/.*/./; q'`
16175 test -d "$as_dir" && break
16176 done
16177 test -z "$as_dirs" || eval "mkdir $as_dirs"
16178 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
16179
6be7c12c 16180
81ecdfbb 16181} # as_fn_mkdir_p
5464f5a1 16182if mkdir -p . 2>/dev/null; then
81ecdfbb 16183 as_mkdir_p='mkdir -p "$as_dir"'
5464f5a1
NN
16184else
16185 test -d ./-p && rmdir ./-p
16186 as_mkdir_p=false
252b5132 16187fi
81ecdfbb
RW
16188
16189if test -x / >/dev/null 2>&1; then
16190 as_test_x='test -x'
16191else
16192 if ls -dL / >/dev/null 2>&1; then
16193 as_ls_L_option=L
16194 else
16195 as_ls_L_option=
16196 fi
16197 as_test_x='
16198 eval sh -c '\''
16199 if test -d "$1"; then
16200 test -d "$1/.";
16201 else
16202 case $1 in #(
16203 -*)set "./$1";;
16204 esac;
16205 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
16206 ???[sx]*):;;*)false;;esac;fi
16207 '\'' sh
16208 '
16209fi
16210as_executable_p=$as_test_x
252b5132 16211
5464f5a1
NN
16212# Sed expression to map a string onto a valid CPP name.
16213as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
252b5132 16214
5464f5a1
NN
16215# Sed expression to map a string onto a valid variable name.
16216as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6be7c12c 16217
252b5132 16218
5464f5a1 16219exec 6>&1
81ecdfbb
RW
16220## ----------------------------------- ##
16221## Main body of $CONFIG_STATUS script. ##
16222## ----------------------------------- ##
16223_ASEOF
16224test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
5464f5a1 16225
81ecdfbb
RW
16226cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16227# Save the log message, to keep $0 and so on meaningful, and to
5464f5a1 16228# report actual input values of CONFIG_FILES etc. instead of their
81ecdfbb
RW
16229# values after options handling.
16230ac_log="
5464f5a1 16231This file was extended by $as_me, which was
81ecdfbb 16232generated by GNU Autoconf 2.64. Invocation command line was
5464f5a1
NN
16233
16234 CONFIG_FILES = $CONFIG_FILES
16235 CONFIG_HEADERS = $CONFIG_HEADERS
16236 CONFIG_LINKS = $CONFIG_LINKS
16237 CONFIG_COMMANDS = $CONFIG_COMMANDS
16238 $ $0 $@
16239
81ecdfbb
RW
16240on `(hostname || uname -n) 2>/dev/null | sed 1q`
16241"
16242
5464f5a1
NN
16243_ACEOF
16244
81ecdfbb
RW
16245case $ac_config_files in *"
16246"*) set x $ac_config_files; shift; ac_config_files=$*;;
16247esac
5464f5a1 16248
81ecdfbb
RW
16249case $ac_config_headers in *"
16250"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16251esac
252b5132 16252
252b5132 16253
81ecdfbb
RW
16254cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16255# Files that config.status was made for.
16256config_files="$ac_config_files"
16257config_headers="$ac_config_headers"
16258config_commands="$ac_config_commands"
252b5132 16259
81ecdfbb 16260_ACEOF
5464f5a1 16261
81ecdfbb 16262cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5464f5a1 16263ac_cs_usage="\
81ecdfbb
RW
16264\`$as_me' instantiates files and other configuration actions
16265from templates according to the current configuration. Unless the files
16266and actions are specified as TAGs, all are instantiated by default.
5464f5a1 16267
81ecdfbb 16268Usage: $0 [OPTION]... [TAG]...
5464f5a1
NN
16269
16270 -h, --help print this help, then exit
81ecdfbb
RW
16271 -V, --version print version number and configuration settings, then exit
16272 -q, --quiet, --silent
16273 do not print progress messages
5464f5a1
NN
16274 -d, --debug don't remove temporary files
16275 --recheck update $as_me by reconfiguring in the same conditions
81ecdfbb
RW
16276 --file=FILE[:TEMPLATE]
16277 instantiate the configuration file FILE
16278 --header=FILE[:TEMPLATE]
16279 instantiate the configuration header FILE
5464f5a1
NN
16280
16281Configuration files:
16282$config_files
16283
16284Configuration headers:
16285$config_headers
16286
16287Configuration commands:
16288$config_commands
16289
81ecdfbb 16290Report bugs to the package provider."
5464f5a1 16291
81ecdfbb
RW
16292_ACEOF
16293cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5464f5a1
NN
16294ac_cs_version="\\
16295config.status
81ecdfbb
RW
16296configured by $0, generated by GNU Autoconf 2.64,
16297 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
5464f5a1 16298
81ecdfbb 16299Copyright (C) 2009 Free Software Foundation, Inc.
5464f5a1
NN
16300This config.status script is free software; the Free Software Foundation
16301gives unlimited permission to copy, distribute and modify it."
81ecdfbb
RW
16302
16303ac_pwd='$ac_pwd'
16304srcdir='$srcdir'
16305INSTALL='$INSTALL'
16306MKDIR_P='$MKDIR_P'
16307AWK='$AWK'
16308test -n "\$AWK" || AWK=awk
5464f5a1
NN
16309_ACEOF
16310
81ecdfbb
RW
16311cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16312# The default lists apply if the user does not specify any file.
5464f5a1
NN
16313ac_need_defaults=:
16314while test $# != 0
16315do
16316 case $1 in
16317 --*=*)
81ecdfbb
RW
16318 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16319 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
5464f5a1 16320 ac_shift=:
6be7c12c 16321 ;;
81ecdfbb 16322 *)
5464f5a1
NN
16323 ac_option=$1
16324 ac_optarg=$2
16325 ac_shift=shift
6be7c12c 16326 ;;
5464f5a1 16327 esac
252b5132 16328
5464f5a1
NN
16329 case $ac_option in
16330 # Handling of the options.
5464f5a1
NN
16331 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16332 ac_cs_recheck=: ;;
81ecdfbb
RW
16333 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16334 $as_echo "$ac_cs_version"; exit ;;
16335 --debug | --debu | --deb | --de | --d | -d )
5464f5a1
NN
16336 debug=: ;;
16337 --file | --fil | --fi | --f )
16338 $ac_shift
81ecdfbb
RW
16339 case $ac_optarg in
16340 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16341 esac
16342 as_fn_append CONFIG_FILES " '$ac_optarg'"
5464f5a1
NN
16343 ac_need_defaults=false;;
16344 --header | --heade | --head | --hea )
16345 $ac_shift
81ecdfbb
RW
16346 case $ac_optarg in
16347 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16348 esac
16349 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
5464f5a1 16350 ac_need_defaults=false;;
81ecdfbb
RW
16351 --he | --h)
16352 # Conflict between --help and --header
16353 as_fn_error "ambiguous option: \`$1'
16354Try \`$0 --help' for more information.";;
16355 --help | --hel | -h )
16356 $as_echo "$ac_cs_usage"; exit ;;
5464f5a1
NN
16357 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16358 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16359 ac_cs_silent=: ;;
6be7c12c 16360
5464f5a1 16361 # This is an error.
81ecdfbb
RW
16362 -*) as_fn_error "unrecognized option: \`$1'
16363Try \`$0 --help' for more information." ;;
252b5132 16364
81ecdfbb
RW
16365 *) as_fn_append ac_config_targets " $1"
16366 ac_need_defaults=false ;;
252b5132 16367
5464f5a1
NN
16368 esac
16369 shift
16370done
6be7c12c 16371
5464f5a1 16372ac_configure_extra_args=
252b5132 16373
5464f5a1
NN
16374if $ac_cs_silent; then
16375 exec 6>/dev/null
16376 ac_configure_extra_args="$ac_configure_extra_args --silent"
16377fi
6be7c12c 16378
5464f5a1 16379_ACEOF
81ecdfbb 16380cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5464f5a1 16381if \$ac_cs_recheck; then
81ecdfbb
RW
16382 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16383 shift
16384 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16385 CONFIG_SHELL='$SHELL'
16386 export CONFIG_SHELL
16387 exec "\$@"
5464f5a1
NN
16388fi
16389
16390_ACEOF
81ecdfbb
RW
16391cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16392exec 5>>config.log
16393{
16394 echo
16395 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16396## Running $as_me. ##
16397_ASBOX
16398 $as_echo "$ac_log"
16399} >&5
5464f5a1 16400
81ecdfbb
RW
16401_ACEOF
16402cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6be7c12c 16403#
81ecdfbb 16404# INIT-COMMANDS
6be7c12c 16405#
f5385ebf 16406AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
d7040cdb
SE
16407
16408
16409# The HP-UX ksh and POSIX shell print the target directory to stdout
16410# if CDPATH is set.
16411(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16412
16413sed_quote_subst='$sed_quote_subst'
16414double_quote_subst='$double_quote_subst'
16415delay_variable_subst='$delay_variable_subst'
3725885a
RW
16416enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16417macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16418macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16419enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16420pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16421enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16422SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16423ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16424host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16425host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16426host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16427build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16428build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16429build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16430SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16431Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16432GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16433EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16434FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16435LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16436NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16437LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16438max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16439ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16440exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16441lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16442lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16443lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16444reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16445reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16446OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16447deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16448file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16449AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16450AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16451STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16452RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16453old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16454old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16455old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16456lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16457CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16458CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16459compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16460GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16461lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16462lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16463lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16464lt_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"`'
16465objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16466MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16467lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16468lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16469lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16470lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16471lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16472need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16473DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16474NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16475LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16476OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16477OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16478libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16479shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16480extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16481archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16482enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16483export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16484whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16485compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16486old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16487old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16488archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16489archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16490module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16491module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16492with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16493allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16494no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16495hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16496hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
16497hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16498hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16499hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16500hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16501hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16502hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16503inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16504link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16505fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
16506always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16507export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16508exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16509include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16510prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16511file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16512variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16513need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16514need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16515version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16516runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16517shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16518shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16519libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16520library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16521soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16522install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16523postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16524postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16525finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16526finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16527hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16528sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16529sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
16530hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16531enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16532enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16533enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16534old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16535striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
d7040cdb
SE
16536
16537LTCC='$LTCC'
16538LTCFLAGS='$LTCFLAGS'
16539compiler='$compiler_DEFAULT'
16540
3725885a
RW
16541# A function that is used when there is no print builtin or printf.
16542func_fallback_echo ()
16543{
16544 eval 'cat <<_LTECHO_EOF
16545\$1
16546_LTECHO_EOF'
16547}
16548
d7040cdb 16549# Quote evaled strings.
3725885a
RW
16550for var in SHELL \
16551ECHO \
16552SED \
d7040cdb
SE
16553GREP \
16554EGREP \
16555FGREP \
16556LD \
16557NM \
16558LN_S \
16559lt_SP2NL \
16560lt_NL2SP \
16561reload_flag \
718a6fd8 16562OBJDUMP \
d7040cdb
SE
16563deplibs_check_method \
16564file_magic_cmd \
16565AR \
16566AR_FLAGS \
16567STRIP \
16568RANLIB \
16569CC \
16570CFLAGS \
16571compiler \
16572lt_cv_sys_global_symbol_pipe \
16573lt_cv_sys_global_symbol_to_cdecl \
16574lt_cv_sys_global_symbol_to_c_name_address \
718a6fd8 16575lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
d7040cdb
SE
16576lt_prog_compiler_no_builtin_flag \
16577lt_prog_compiler_wl \
16578lt_prog_compiler_pic \
16579lt_prog_compiler_static \
16580lt_cv_prog_compiler_c_o \
16581need_locks \
718a6fd8
SE
16582DSYMUTIL \
16583NMEDIT \
16584LIPO \
16585OTOOL \
16586OTOOL64 \
d7040cdb
SE
16587shrext_cmds \
16588export_dynamic_flag_spec \
16589whole_archive_flag_spec \
16590compiler_needs_object \
16591with_gnu_ld \
16592allow_undefined_flag \
16593no_undefined_flag \
16594hardcode_libdir_flag_spec \
16595hardcode_libdir_flag_spec_ld \
16596hardcode_libdir_separator \
16597fix_srcfile_path \
16598exclude_expsyms \
16599include_expsyms \
16600file_list_spec \
16601variables_saved_for_relink \
16602libname_spec \
16603library_names_spec \
16604soname_spec \
3725885a 16605install_override_mode \
d7040cdb
SE
16606finish_eval \
16607old_striplib \
16608striplib; do
3725885a 16609 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
d7040cdb 16610 *[\\\\\\\`\\"\\\$]*)
3725885a 16611 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
d7040cdb
SE
16612 ;;
16613 *)
16614 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16615 ;;
16616 esac
16617done
16618
16619# Double-quote double-evaled strings.
16620for var in reload_cmds \
16621old_postinstall_cmds \
16622old_postuninstall_cmds \
16623old_archive_cmds \
16624extract_expsyms_cmds \
16625old_archive_from_new_cmds \
16626old_archive_from_expsyms_cmds \
16627archive_cmds \
16628archive_expsym_cmds \
16629module_cmds \
16630module_expsym_cmds \
16631export_symbols_cmds \
16632prelink_cmds \
16633postinstall_cmds \
16634postuninstall_cmds \
16635finish_cmds \
16636sys_lib_search_path_spec \
16637sys_lib_dlsearch_path_spec; do
3725885a 16638 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
d7040cdb 16639 *[\\\\\\\`\\"\\\$]*)
3725885a 16640 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
d7040cdb
SE
16641 ;;
16642 *)
16643 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16644 ;;
16645 esac
16646done
16647
d7040cdb
SE
16648ac_aux_dir='$ac_aux_dir'
16649xsi_shell='$xsi_shell'
16650lt_shell_append='$lt_shell_append'
16651
16652# See if we are running on zsh, and set the options which allow our
16653# commands through without removal of \ escapes INIT.
16654if test -n "\${ZSH_VERSION+set}" ; then
16655 setopt NO_GLOB_SUBST
16656fi
16657
16658
16659 PACKAGE='$PACKAGE'
16660 VERSION='$VERSION'
16661 TIMESTAMP='$TIMESTAMP'
16662 RM='$RM'
16663 ofile='$ofile'
16664
16665
16666
20e95c23
DJ
16667# Capture the value of obsolete ALL_LINGUAS because we need it to compute
16668 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
16669 # from automake.
16670 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
16671 # Capture the value of LINGUAS because we need it to compute CATALOGS.
16672 LINGUAS="${LINGUAS-%UNSET%}"
16673
5464f5a1 16674
f3b4f6d0
PB
16675GCC="$GCC"
16676CC="$CC"
16677acx_cv_header_stdint="$acx_cv_header_stdint"
16678acx_cv_type_int8_t="$acx_cv_type_int8_t"
16679acx_cv_type_int16_t="$acx_cv_type_int16_t"
16680acx_cv_type_int32_t="$acx_cv_type_int32_t"
16681acx_cv_type_int64_t="$acx_cv_type_int64_t"
16682acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
16683ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
16684ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
16685ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
16686ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
16687ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
d5efd9fc
AM
16688ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
16689ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
f3b4f6d0 16690ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
d5efd9fc
AM
16691
16692
5464f5a1
NN
16693
16694_ACEOF
16695
81ecdfbb 16696cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5464f5a1 16697
81ecdfbb 16698# Handling of arguments.
5464f5a1 16699for ac_config_target in $ac_config_targets
252b5132 16700do
81ecdfbb
RW
16701 case $ac_config_target in
16702 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16703 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16704 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
16705 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
16706 "bfd_stdint.h") CONFIG_COMMANDS="$CONFIG_COMMANDS bfd_stdint.h" ;;
16707 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16708 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
16709 "bfd-in3.h") CONFIG_FILES="$CONFIG_FILES bfd-in3.h:bfd-in2.h" ;;
16710 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
16711 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
16712
16713 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
252b5132
RH
16714 esac
16715done
16716
81ecdfbb 16717
5464f5a1
NN
16718# If the user did not use the arguments to specify the items to instantiate,
16719# then the envvar interface is used. Set only those that are not.
16720# We use the long form for the default assignment because of an extremely
16721# bizarre bug on SunOS 4.1.3.
16722if $ac_need_defaults; then
16723 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16724 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16725 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16726fi
16727
16728# Have a temporary directory for convenience. Make it in the build tree
81ecdfbb 16729# simply because there is no reason against having it here, and in addition,
5464f5a1 16730# creating and moving files from /tmp can sometimes cause problems.
81ecdfbb
RW
16731# Hook for its removal unless debugging.
16732# Note that there is a small window in which the directory will not be cleaned:
16733# after its creation but before its name has been assigned to `$tmp'.
5464f5a1
NN
16734$debug ||
16735{
81ecdfbb
RW
16736 tmp=
16737 trap 'exit_status=$?
16738 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
16739' 0
16740 trap 'as_fn_exit 1' 1 2 13 15
5464f5a1 16741}
5464f5a1 16742# Create a (secure) tmp directory for tmp files.
b3baf5d0 16743
5464f5a1 16744{
81ecdfbb 16745 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
5464f5a1
NN
16746 test -n "$tmp" && test -d "$tmp"
16747} ||
16748{
81ecdfbb
RW
16749 tmp=./conf$$-$RANDOM
16750 (umask 077 && mkdir "$tmp")
16751} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
16752
16753# Set up the scripts for CONFIG_FILES section.
16754# No need to generate them if there are no CONFIG_FILES.
16755# This happens for instance with `./config.status config.h'.
16756if test -n "$CONFIG_FILES"; then
16757
16758
16759ac_cr=`echo X | tr X '\015'`
16760# On cygwin, bash can eat \r inside `` if the user requested igncr.
16761# But we know of no other shell where ac_cr would be empty at this
16762# point, so we can use a bashism as a fallback.
16763if test "x$ac_cr" = x; then
16764 eval ac_cr=\$\'\\r\'
16765fi
16766ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16767if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16768 ac_cs_awk_cr='\r'
16769else
16770 ac_cs_awk_cr=$ac_cr
16771fi
16772
16773echo 'BEGIN {' >"$tmp/subs1.awk" &&
16774_ACEOF
16775
16776
16777{
16778 echo "cat >conf$$subs.awk <<_ACEOF" &&
16779 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16780 echo "_ACEOF"
16781} >conf$$subs.sh ||
16782 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16783ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
16784ac_delim='%!_!# '
16785for ac_last_try in false false false false false :; do
16786 . ./conf$$subs.sh ||
16787 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16788
16789 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16790 if test $ac_delim_n = $ac_delim_num; then
16791 break
16792 elif $ac_last_try; then
16793 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16794 else
16795 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16796 fi
16797done
16798rm -f conf$$subs.sh
16799
16800cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16801cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
16802_ACEOF
16803sed -n '
16804h
16805s/^/S["/; s/!.*/"]=/
16806p
16807g
16808s/^[^!]*!//
16809:repl
16810t repl
16811s/'"$ac_delim"'$//
16812t delim
16813:nl
16814h
16815s/\(.\{148\}\).*/\1/
16816t more1
16817s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16818p
16819n
16820b repl
16821:more1
16822s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16823p
16824g
16825s/.\{148\}//
16826t nl
16827:delim
16828h
16829s/\(.\{148\}\).*/\1/
16830t more2
16831s/["\\]/\\&/g; s/^/"/; s/$/"/
16832p
16833b
16834:more2
16835s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16836p
16837g
16838s/.\{148\}//
16839t delim
16840' <conf$$subs.awk | sed '
16841/^[^""]/{
16842 N
16843 s/\n//
16844}
16845' >>$CONFIG_STATUS || ac_write_fail=1
16846rm -f conf$$subs.awk
16847cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16848_ACAWK
16849cat >>"\$tmp/subs1.awk" <<_ACAWK &&
16850 for (key in S) S_is_set[key] = 1
16851 FS = "\a"
16852
16853}
5464f5a1 16854{
81ecdfbb
RW
16855 line = $ 0
16856 nfields = split(line, field, "@")
16857 substed = 0
16858 len = length(field[1])
16859 for (i = 2; i < nfields; i++) {
16860 key = field[i]
16861 keylen = length(key)
16862 if (S_is_set[key]) {
16863 value = S[key]
16864 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16865 len += length(value) + length(field[++i])
16866 substed = 1
16867 } else
16868 len += 1 + keylen
16869 }
16870
16871 print line
5464f5a1
NN
16872}
16873
81ecdfbb
RW
16874_ACAWK
16875_ACEOF
16876cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16877if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16878 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16879else
16880 cat
16881fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
16882 || as_fn_error "could not setup config files machinery" "$LINENO" 5
5464f5a1
NN
16883_ACEOF
16884
81ecdfbb
RW
16885# VPATH may cause trouble with some makes, so we remove $(srcdir),
16886# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16887# trailing colons and then remove the whole line if VPATH becomes empty
16888# (actually we leave an empty line to preserve line numbers).
16889if test "x$srcdir" = x.; then
16890 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16891s/:*\$(srcdir):*/:/
16892s/:*\${srcdir}:*/:/
16893s/:*@srcdir@:*/:/
16894s/^\([^=]*=[ ]*\):*/\1/
16895s/:*$//
16896s/^[^=]*=[ ]*$//
16897}'
16898fi
b3baf5d0 16899
81ecdfbb
RW
16900cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16901fi # test -n "$CONFIG_FILES"
252b5132 16902
81ecdfbb
RW
16903# Set up the scripts for CONFIG_HEADERS section.
16904# No need to generate them if there are no CONFIG_HEADERS.
16905# This happens for instance with `./config.status Makefile'.
16906if test -n "$CONFIG_HEADERS"; then
16907cat >"$tmp/defines.awk" <<\_ACAWK ||
16908BEGIN {
5464f5a1
NN
16909_ACEOF
16910
81ecdfbb
RW
16911# Transform confdefs.h into an awk script `defines.awk', embedded as
16912# here-document in config.status, that substitutes the proper values into
16913# config.h.in to produce config.h.
16914
16915# Create a delimiter string that does not exist in confdefs.h, to ease
16916# handling of long lines.
16917ac_delim='%!_!# '
16918for ac_last_try in false false :; do
16919 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
16920 if test -z "$ac_t"; then
16921 break
16922 elif $ac_last_try; then
16923 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
16924 else
16925 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
252b5132 16926 fi
81ecdfbb 16927done
6be7c12c 16928
81ecdfbb
RW
16929# For the awk script, D is an array of macro values keyed by name,
16930# likewise P contains macro parameters if any. Preserve backslash
16931# newline sequences.
16932
16933ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16934sed -n '
16935s/.\{148\}/&'"$ac_delim"'/g
16936t rset
16937:rset
16938s/^[ ]*#[ ]*define[ ][ ]*/ /
16939t def
16940d
16941:def
16942s/\\$//
16943t bsnl
16944s/["\\]/\\&/g
16945s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16946D["\1"]=" \3"/p
16947s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16948d
16949:bsnl
16950s/["\\]/\\&/g
16951s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16952D["\1"]=" \3\\\\\\n"\\/p
16953t cont
16954s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16955t cont
16956d
16957:cont
16958n
16959s/.\{148\}/&'"$ac_delim"'/g
16960t clear
16961:clear
16962s/\\$//
16963t bsnlc
16964s/["\\]/\\&/g; s/^/"/; s/$/"/p
16965d
16966:bsnlc
16967s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16968b cont
16969' <confdefs.h | sed '
16970s/'"$ac_delim"'/"\\\
16971"/g' >>$CONFIG_STATUS || ac_write_fail=1
16972
16973cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16974 for (key in D) D_is_set[key] = 1
16975 FS = "\a"
16976}
16977/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16978 line = \$ 0
16979 split(line, arg, " ")
16980 if (arg[1] == "#") {
16981 defundef = arg[2]
16982 mac1 = arg[3]
16983 } else {
16984 defundef = substr(arg[1], 2)
16985 mac1 = arg[2]
16986 }
16987 split(mac1, mac2, "(") #)
16988 macro = mac2[1]
16989 prefix = substr(line, 1, index(line, defundef) - 1)
16990 if (D_is_set[macro]) {
16991 # Preserve the white space surrounding the "#".
16992 print prefix "define", macro P[macro] D[macro]
16993 next
16994 } else {
16995 # Replace #undef with comments. This is necessary, for example,
16996 # in the case of _POSIX_SOURCE, which is predefined and required
16997 # on some systems where configure will not decide to define it.
16998 if (defundef == "undef") {
16999 print "/*", prefix defundef, macro, "*/"
17000 next
17001 }
17002 }
17003}
17004{ print }
17005_ACAWK
5464f5a1 17006_ACEOF
81ecdfbb
RW
17007cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17008 as_fn_error "could not setup config headers machinery" "$LINENO" 5
17009fi # test -n "$CONFIG_HEADERS"
17010
17011
17012eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
17013shift
17014for ac_tag
17015do
17016 case $ac_tag in
17017 :[FHLC]) ac_mode=$ac_tag; continue;;
17018 esac
17019 case $ac_mode$ac_tag in
17020 :[FHL]*:*);;
17021 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
17022 :[FH]-) ac_tag=-:-;;
17023 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17024 esac
17025 ac_save_IFS=$IFS
17026 IFS=:
17027 set x $ac_tag
17028 IFS=$ac_save_IFS
17029 shift
17030 ac_file=$1
17031 shift
17032
17033 case $ac_mode in
17034 :L) ac_source=$1;;
17035 :[FH])
17036 ac_file_inputs=
17037 for ac_f
17038 do
17039 case $ac_f in
17040 -) ac_f="$tmp/stdin";;
17041 *) # Look for the file first in the build tree, then in the source tree
17042 # (if the path is not absolute). The absolute path cannot be DOS-style,
17043 # because $ac_f cannot contain `:'.
17044 test -f "$ac_f" ||
17045 case $ac_f in
17046 [\\/$]*) false;;
17047 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17048 esac ||
17049 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17050 esac
17051 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17052 as_fn_append ac_file_inputs " '$ac_f'"
17053 done
17054
17055 # Let's still pretend it is `configure' which instantiates (i.e., don't
17056 # use $as_me), people would be surprised to read:
17057 # /* config.h. Generated by config.status. */
17058 configure_input='Generated from '`
17059 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17060 `' by configure.'
17061 if test x"$ac_file" != x-; then
17062 configure_input="$ac_file. $configure_input"
17063 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17064$as_echo "$as_me: creating $ac_file" >&6;}
17065 fi
17066 # Neutralize special characters interpreted by sed in replacement strings.
17067 case $configure_input in #(
17068 *\&* | *\|* | *\\* )
17069 ac_sed_conf_input=`$as_echo "$configure_input" |
17070 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17071 *) ac_sed_conf_input=$configure_input;;
17072 esac
17073
17074 case $ac_tag in
17075 *:-:* | *:-) cat >"$tmp/stdin" \
17076 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
17077 esac
17078 ;;
252b5132
RH
17079 esac
17080
81ecdfbb 17081 ac_dir=`$as_dirname -- "$ac_file" ||
5464f5a1
NN
17082$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17083 X"$ac_file" : 'X\(//\)[^/]' \| \
17084 X"$ac_file" : 'X\(//\)$' \| \
81ecdfbb
RW
17085 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17086$as_echo X"$ac_file" |
17087 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17088 s//\1/
17089 q
17090 }
17091 /^X\(\/\/\)[^/].*/{
17092 s//\1/
17093 q
17094 }
17095 /^X\(\/\/\)$/{
17096 s//\1/
17097 q
17098 }
17099 /^X\(\/\).*/{
17100 s//\1/
17101 q
17102 }
17103 s/.*/./; q'`
17104 as_dir="$ac_dir"; as_fn_mkdir_p
5464f5a1
NN
17105 ac_builddir=.
17106
81ecdfbb
RW
17107case "$ac_dir" in
17108.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17109*)
17110 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17111 # A ".." for each directory in $ac_dir_suffix.
17112 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17113 case $ac_top_builddir_sub in
17114 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17115 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17116 esac ;;
17117esac
17118ac_abs_top_builddir=$ac_pwd
17119ac_abs_builddir=$ac_pwd$ac_dir_suffix
17120# for backward compatibility:
17121ac_top_builddir=$ac_top_build_prefix
252b5132 17122
5464f5a1 17123case $srcdir in
81ecdfbb 17124 .) # We are building in place.
5464f5a1 17125 ac_srcdir=.
81ecdfbb
RW
17126 ac_top_srcdir=$ac_top_builddir_sub
17127 ac_abs_top_srcdir=$ac_pwd ;;
17128 [\\/]* | ?:[\\/]* ) # Absolute name.
5464f5a1 17129 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
17130 ac_top_srcdir=$srcdir
17131 ac_abs_top_srcdir=$srcdir ;;
17132 *) # Relative name.
17133 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17134 ac_top_srcdir=$ac_top_build_prefix$srcdir
17135 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
5464f5a1 17136esac
81ecdfbb 17137ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
252b5132 17138
252b5132 17139
81ecdfbb
RW
17140 case $ac_mode in
17141 :F)
17142 #
17143 # CONFIG_FILE
17144 #
5464f5a1
NN
17145
17146 case $INSTALL in
17147 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
81ecdfbb
RW
17148 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17149 esac
17150 ac_MKDIR_P=$MKDIR_P
17151 case $MKDIR_P in
17152 [\\/$]* | ?:[\\/]* ) ;;
17153 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
6be7c12c 17154 esac
81ecdfbb 17155_ACEOF
252b5132 17156
81ecdfbb
RW
17157cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17158# If the template does not know about datarootdir, expand it.
17159# FIXME: This hack should be removed a few years after 2.60.
17160ac_datarootdir_hack=; ac_datarootdir_seen=
17161ac_sed_dataroot='
17162/datarootdir/ {
17163 p
17164 q
17165}
17166/@datadir@/p
17167/@docdir@/p
17168/@infodir@/p
17169/@localedir@/p
17170/@mandir@/p'
17171case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17172*datarootdir*) ac_datarootdir_seen=yes;;
17173*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17174 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17175$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17176_ACEOF
17177cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17178 ac_datarootdir_hack='
17179 s&@datadir@&$datadir&g
17180 s&@docdir@&$docdir&g
17181 s&@infodir@&$infodir&g
17182 s&@localedir@&$localedir&g
17183 s&@mandir@&$mandir&g
17184 s&\\\${datarootdir}&$datarootdir&g' ;;
17185esac
5464f5a1 17186_ACEOF
81ecdfbb
RW
17187
17188# Neutralize VPATH when `$srcdir' = `.'.
17189# Shell code in configure.ac might set extrasub.
17190# FIXME: do we really want to maintain this feature?
17191cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17192ac_sed_extra="$ac_vpsub
5464f5a1
NN
17193$extrasub
17194_ACEOF
81ecdfbb 17195cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5464f5a1
NN
17196:t
17197/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
81ecdfbb
RW
17198s|@configure_input@|$ac_sed_conf_input|;t t
17199s&@top_builddir@&$ac_top_builddir_sub&;t t
17200s&@top_build_prefix@&$ac_top_build_prefix&;t t
17201s&@srcdir@&$ac_srcdir&;t t
17202s&@abs_srcdir@&$ac_abs_srcdir&;t t
17203s&@top_srcdir@&$ac_top_srcdir&;t t
17204s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17205s&@builddir@&$ac_builddir&;t t
17206s&@abs_builddir@&$ac_abs_builddir&;t t
17207s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17208s&@INSTALL@&$ac_INSTALL&;t t
17209s&@MKDIR_P@&$ac_MKDIR_P&;t t
17210$ac_datarootdir_hack
17211"
17212eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
17213 || as_fn_error "could not create $ac_file" "$LINENO" 5
17214
17215test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17216 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
17217 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
17218 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17219which seems to be undefined. Please make sure it is defined." >&5
17220$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17221which seems to be undefined. Please make sure it is defined." >&2;}
17222
17223 rm -f "$tmp/stdin"
5464f5a1 17224 case $ac_file in
81ecdfbb
RW
17225 -) cat "$tmp/out" && rm -f "$tmp/out";;
17226 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
17227 esac \
17228 || as_fn_error "could not create $ac_file" "$LINENO" 5
17229 ;;
17230 :H)
17231 #
17232 # CONFIG_HEADER
17233 #
5464f5a1 17234 if test x"$ac_file" != x-; then
81ecdfbb
RW
17235 {
17236 $as_echo "/* $configure_input */" \
17237 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
17238 } >"$tmp/config.h" \
17239 || as_fn_error "could not create $ac_file" "$LINENO" 5
17240 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
17241 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17242$as_echo "$as_me: $ac_file is unchanged" >&6;}
5464f5a1 17243 else
81ecdfbb
RW
17244 rm -f "$ac_file"
17245 mv "$tmp/config.h" "$ac_file" \
17246 || as_fn_error "could not create $ac_file" "$LINENO" 5
252b5132 17247 fi
5464f5a1 17248 else
81ecdfbb
RW
17249 $as_echo "/* $configure_input */" \
17250 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
17251 || as_fn_error "could not create -" "$LINENO" 5
252b5132 17252 fi
81ecdfbb
RW
17253# Compute "$ac_file"'s index in $config_headers.
17254_am_arg="$ac_file"
f5385ebf
AM
17255_am_stamp_count=1
17256for _am_header in $config_headers :; do
17257 case $_am_header in
81ecdfbb 17258 $_am_arg | $_am_arg:* )
f5385ebf
AM
17259 break ;;
17260 * )
17261 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17262 esac
17263done
81ecdfbb
RW
17264echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17265$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17266 X"$_am_arg" : 'X\(//\)[^/]' \| \
17267 X"$_am_arg" : 'X\(//\)$' \| \
17268 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17269$as_echo X"$_am_arg" |
17270 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17271 s//\1/
17272 q
17273 }
17274 /^X\(\/\/\)[^/].*/{
17275 s//\1/
17276 q
17277 }
17278 /^X\(\/\/\)$/{
17279 s//\1/
17280 q
17281 }
17282 /^X\(\/\).*/{
17283 s//\1/
17284 q
17285 }
17286 s/.*/./; q'`/stamp-h$_am_stamp_count
17287 ;;
5464f5a1 17288
81ecdfbb
RW
17289 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17290$as_echo "$as_me: executing $ac_file commands" >&6;}
17291 ;;
17292 esac
5464f5a1
NN
17293
17294
81ecdfbb
RW
17295 case $ac_file$ac_mode in
17296 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17297 # Autoconf 2.62 quotes --file arguments for eval, but not when files
17298 # are listed without --file. Let's play safe and only enable the eval
17299 # if we detect the quoting.
17300 case $CONFIG_FILES in
17301 *\'*) eval set x "$CONFIG_FILES" ;;
17302 *) set x $CONFIG_FILES ;;
17303 esac
17304 shift
17305 for mf
17306 do
17307 # Strip MF so we end up with the name of the file.
17308 mf=`echo "$mf" | sed -e 's/:.*$//'`
17309 # Check whether this is an Automake generated Makefile or not.
17310 # We used to match only the files named `Makefile.in', but
17311 # some people rename them; so instead we look at the file content.
17312 # Grep'ing the first line is not enough: some people post-process
17313 # each Makefile.in and add a new line on top of each file to say so.
17314 # Grep'ing the whole file is not good either: AIX grep has a line
17315 # limit of 2048, but all sed's we know have understand at least 4000.
17316 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17317 dirpart=`$as_dirname -- "$mf" ||
f5385ebf
AM
17318$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17319 X"$mf" : 'X\(//\)[^/]' \| \
17320 X"$mf" : 'X\(//\)$' \| \
81ecdfbb
RW
17321 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17322$as_echo X"$mf" |
17323 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17324 s//\1/
17325 q
17326 }
17327 /^X\(\/\/\)[^/].*/{
17328 s//\1/
17329 q
17330 }
17331 /^X\(\/\/\)$/{
17332 s//\1/
17333 q
17334 }
17335 /^X\(\/\).*/{
17336 s//\1/
17337 q
17338 }
17339 s/.*/./; q'`
17340 else
17341 continue
17342 fi
17343 # Extract the definition of DEPDIR, am__include, and am__quote
17344 # from the Makefile without running `make'.
17345 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17346 test -z "$DEPDIR" && continue
17347 am__include=`sed -n 's/^am__include = //p' < "$mf"`
17348 test -z "am__include" && continue
17349 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17350 # When using ansi2knr, U may be empty or an underscore; expand it
17351 U=`sed -n 's/^U = //p' < "$mf"`
17352 # Find all dependency output files, they are included files with
17353 # $(DEPDIR) in their names. We invoke sed twice because it is the
17354 # simplest approach to changing $(DEPDIR) to its actual value in the
17355 # expansion.
17356 for file in `sed -n "
17357 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17358 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17359 # Make sure the directory exists.
17360 test -f "$dirpart/$file" && continue
17361 fdir=`$as_dirname -- "$file" ||
f5385ebf
AM
17362$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17363 X"$file" : 'X\(//\)[^/]' \| \
17364 X"$file" : 'X\(//\)$' \| \
81ecdfbb
RW
17365 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17366$as_echo X"$file" |
17367 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17368 s//\1/
17369 q
17370 }
17371 /^X\(\/\/\)[^/].*/{
17372 s//\1/
17373 q
17374 }
17375 /^X\(\/\/\)$/{
17376 s//\1/
17377 q
17378 }
17379 /^X\(\/\).*/{
17380 s//\1/
17381 q
17382 }
17383 s/.*/./; q'`
17384 as_dir=$dirpart/$fdir; as_fn_mkdir_p
17385 # echo "creating $dirpart/$file"
17386 echo '# dummy' > "$dirpart/$file"
f5385ebf 17387 done
f5385ebf 17388 done
81ecdfbb 17389}
d7040cdb 17390 ;;
81ecdfbb 17391 "libtool":C)
d7040cdb
SE
17392
17393 # See if we are running on zsh, and set the options which allow our
17394 # commands through without removal of \ escapes.
17395 if test -n "${ZSH_VERSION+set}" ; then
17396 setopt NO_GLOB_SUBST
17397 fi
17398
17399 cfgfile="${ofile}T"
17400 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17401 $RM "$cfgfile"
17402
17403 cat <<_LT_EOF >> "$cfgfile"
17404#! $SHELL
17405
17406# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
718a6fd8 17407# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
d7040cdb
SE
17408# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17409# NOTE: Changes made to this file will be lost: look at ltmain.sh.
17410#
718a6fd8 17411# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
3725885a 17412# 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
718a6fd8 17413# Written by Gordon Matzigkeit, 1996
d7040cdb 17414#
718a6fd8 17415# This file is part of GNU Libtool.
d7040cdb 17416#
718a6fd8
SE
17417# GNU Libtool is free software; you can redistribute it and/or
17418# modify it under the terms of the GNU General Public License as
17419# published by the Free Software Foundation; either version 2 of
17420# the License, or (at your option) any later version.
d7040cdb 17421#
718a6fd8
SE
17422# As a special exception to the GNU General Public License,
17423# if you distribute this file as part of a program or library that
17424# is built using GNU Libtool, you may include this file under the
17425# same distribution terms that you use for the rest of that program.
d7040cdb 17426#
718a6fd8
SE
17427# GNU Libtool is distributed in the hope that it will be useful,
17428# but WITHOUT ANY WARRANTY; without even the implied warranty of
17429# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17430# GNU General Public License for more details.
d7040cdb 17431#
718a6fd8
SE
17432# You should have received a copy of the GNU General Public License
17433# along with GNU Libtool; see the file COPYING. If not, a copy
17434# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17435# obtained by writing to the Free Software Foundation, Inc.,
17436# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
d7040cdb
SE
17437
17438
17439# The names of the tagged configurations supported by this script.
17440available_tags=""
17441
17442# ### BEGIN LIBTOOL CONFIG
17443
17444# Whether or not to build shared libraries.
17445build_libtool_libs=$enable_shared
17446
17447# Which release of libtool.m4 was used?
17448macro_version=$macro_version
17449macro_revision=$macro_revision
17450
17451# Whether or not to build static libraries.
17452build_old_libs=$enable_static
17453
17454# What type of objects to build.
17455pic_mode=$pic_mode
17456
17457# Whether or not to optimize for fast installation.
17458fast_install=$enable_fast_install
17459
3725885a
RW
17460# Shell to use when invoking shell scripts.
17461SHELL=$lt_SHELL
17462
17463# An echo program that protects backslashes.
17464ECHO=$lt_ECHO
17465
d7040cdb
SE
17466# The host system.
17467host_alias=$host_alias
17468host=$host
17469host_os=$host_os
17470
17471# The build system.
17472build_alias=$build_alias
17473build=$build
17474build_os=$build_os
17475
17476# A sed program that does not truncate output.
17477SED=$lt_SED
17478
17479# Sed that helps us avoid accidentally triggering echo(1) options like -n.
17480Xsed="\$SED -e 1s/^X//"
17481
17482# A grep program that handles long lines.
17483GREP=$lt_GREP
17484
17485# An ERE matcher.
17486EGREP=$lt_EGREP
17487
17488# A literal string matcher.
17489FGREP=$lt_FGREP
17490
17491# A BSD- or MS-compatible name lister.
17492NM=$lt_NM
17493
17494# Whether we need soft or hard links.
17495LN_S=$lt_LN_S
17496
17497# What is the maximum length of a command?
17498max_cmd_len=$max_cmd_len
17499
17500# Object file suffix (normally "o").
17501objext=$ac_objext
17502
17503# Executable file suffix (normally "").
17504exeext=$exeext
17505
17506# whether the shell understands "unset".
17507lt_unset=$lt_unset
17508
17509# turn spaces into newlines.
17510SP2NL=$lt_lt_SP2NL
17511
17512# turn newlines into spaces.
17513NL2SP=$lt_lt_NL2SP
17514
718a6fd8
SE
17515# An object symbol dumper.
17516OBJDUMP=$lt_OBJDUMP
17517
d7040cdb
SE
17518# Method to check whether dependent libraries are shared objects.
17519deplibs_check_method=$lt_deplibs_check_method
17520
17521# Command to use when deplibs_check_method == "file_magic".
17522file_magic_cmd=$lt_file_magic_cmd
17523
17524# The archiver.
17525AR=$lt_AR
17526AR_FLAGS=$lt_AR_FLAGS
17527
17528# A symbol stripping program.
17529STRIP=$lt_STRIP
17530
17531# Commands used to install an old-style archive.
17532RANLIB=$lt_RANLIB
17533old_postinstall_cmds=$lt_old_postinstall_cmds
17534old_postuninstall_cmds=$lt_old_postuninstall_cmds
17535
3725885a
RW
17536# Whether to use a lock for old archive extraction.
17537lock_old_archive_extraction=$lock_old_archive_extraction
17538
d7040cdb
SE
17539# A C compiler.
17540LTCC=$lt_CC
17541
17542# LTCC compiler flags.
17543LTCFLAGS=$lt_CFLAGS
17544
17545# Take the output of nm and produce a listing of raw symbols and C names.
17546global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17547
17548# Transform the output of nm in a proper C declaration.
17549global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17550
17551# Transform the output of nm in a C name address pair.
17552global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17553
718a6fd8
SE
17554# Transform the output of nm in a C name address pair when lib prefix is needed.
17555global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17556
d7040cdb
SE
17557# The name of the directory that contains temporary libtool files.
17558objdir=$objdir
17559
d7040cdb
SE
17560# Used to examine libraries when file_magic_cmd begins with "file".
17561MAGIC_CMD=$MAGIC_CMD
17562
17563# Must we lock files when doing compilation?
17564need_locks=$lt_need_locks
17565
718a6fd8
SE
17566# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17567DSYMUTIL=$lt_DSYMUTIL
17568
17569# Tool to change global to local symbols on Mac OS X.
17570NMEDIT=$lt_NMEDIT
17571
17572# Tool to manipulate fat objects and archives on Mac OS X.
17573LIPO=$lt_LIPO
17574
17575# ldd/readelf like tool for Mach-O binaries on Mac OS X.
17576OTOOL=$lt_OTOOL
17577
17578# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17579OTOOL64=$lt_OTOOL64
17580
d7040cdb
SE
17581# Old archive suffix (normally "a").
17582libext=$libext
17583
17584# Shared library suffix (normally ".so").
17585shrext_cmds=$lt_shrext_cmds
17586
17587# The commands to extract the exported symbol list from a shared archive.
17588extract_expsyms_cmds=$lt_extract_expsyms_cmds
17589
17590# Variables whose values should be saved in libtool wrapper scripts and
17591# restored at link time.
17592variables_saved_for_relink=$lt_variables_saved_for_relink
17593
17594# Do we need the "lib" prefix for modules?
17595need_lib_prefix=$need_lib_prefix
17596
17597# Do we need a version for libraries?
17598need_version=$need_version
17599
17600# Library versioning type.
17601version_type=$version_type
17602
17603# Shared library runtime path variable.
17604runpath_var=$runpath_var
17605
17606# Shared library path variable.
17607shlibpath_var=$shlibpath_var
17608
17609# Is shlibpath searched before the hard-coded library search path?
17610shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17611
17612# Format of library name prefix.
17613libname_spec=$lt_libname_spec
17614
17615# List of archive names. First name is the real one, the rest are links.
17616# The last name is the one that the linker finds with -lNAME
17617library_names_spec=$lt_library_names_spec
17618
17619# The coded name of the library, if different from the real name.
17620soname_spec=$lt_soname_spec
17621
3725885a
RW
17622# Permission mode override for installation of shared libraries.
17623install_override_mode=$lt_install_override_mode
17624
d7040cdb
SE
17625# Command to use after installation of a shared archive.
17626postinstall_cmds=$lt_postinstall_cmds
17627
17628# Command to use after uninstallation of a shared archive.
17629postuninstall_cmds=$lt_postuninstall_cmds
17630
17631# Commands used to finish a libtool library installation in a directory.
17632finish_cmds=$lt_finish_cmds
17633
17634# As "finish_cmds", except a single script fragment to be evaled but
17635# not shown.
17636finish_eval=$lt_finish_eval
17637
17638# Whether we should hardcode library paths into libraries.
17639hardcode_into_libs=$hardcode_into_libs
17640
17641# Compile-time system search path for libraries.
17642sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17643
17644# Run-time system search path for libraries.
17645sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17646
17647# Whether dlopen is supported.
17648dlopen_support=$enable_dlopen
17649
17650# Whether dlopen of programs is supported.
17651dlopen_self=$enable_dlopen_self
17652
17653# Whether dlopen of statically linked programs is supported.
17654dlopen_self_static=$enable_dlopen_self_static
17655
17656# Commands to strip libraries.
17657old_striplib=$lt_old_striplib
17658striplib=$lt_striplib
17659
17660
17661# The linker used to build libraries.
17662LD=$lt_LD
17663
3725885a
RW
17664# How to create reloadable object files.
17665reload_flag=$lt_reload_flag
17666reload_cmds=$lt_reload_cmds
17667
d7040cdb
SE
17668# Commands used to build an old-style archive.
17669old_archive_cmds=$lt_old_archive_cmds
17670
17671# A language specific compiler.
17672CC=$lt_compiler
17673
17674# Is the compiler the GNU compiler?
17675with_gcc=$GCC
17676
17677# Compiler flag to turn off builtin functions.
17678no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17679
17680# How to pass a linker flag through the compiler.
17681wl=$lt_lt_prog_compiler_wl
17682
17683# Additional compiler flags for building library objects.
17684pic_flag=$lt_lt_prog_compiler_pic
17685
17686# Compiler flag to prevent dynamic linking.
17687link_static_flag=$lt_lt_prog_compiler_static
17688
17689# Does compiler simultaneously support -c and -o options?
17690compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17691
17692# Whether or not to add -lc for building shared libraries.
17693build_libtool_need_lc=$archive_cmds_need_lc
17694
17695# Whether or not to disallow shared libs when runtime libs are static.
17696allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17697
17698# Compiler flag to allow reflexive dlopens.
17699export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17700
17701# Compiler flag to generate shared objects directly from archives.
17702whole_archive_flag_spec=$lt_whole_archive_flag_spec
17703
17704# Whether the compiler copes with passing no objects directly.
17705compiler_needs_object=$lt_compiler_needs_object
17706
17707# Create an old-style archive from a shared archive.
17708old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17709
17710# Create a temporary old-style archive to link instead of a shared archive.
17711old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17712
17713# Commands used to build a shared archive.
17714archive_cmds=$lt_archive_cmds
17715archive_expsym_cmds=$lt_archive_expsym_cmds
17716
17717# Commands used to build a loadable module if different from building
17718# a shared archive.
17719module_cmds=$lt_module_cmds
17720module_expsym_cmds=$lt_module_expsym_cmds
17721
17722# Whether we are building with GNU ld or not.
17723with_gnu_ld=$lt_with_gnu_ld
17724
17725# Flag that allows shared libraries with undefined symbols to be built.
17726allow_undefined_flag=$lt_allow_undefined_flag
17727
17728# Flag that enforces no undefined symbols.
17729no_undefined_flag=$lt_no_undefined_flag
17730
17731# Flag to hardcode \$libdir into a binary during linking.
17732# This must work even if \$libdir does not exist
17733hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17734
17735# If ld is used when linking, flag to hardcode \$libdir into a binary
17736# during linking. This must work even if \$libdir does not exist.
17737hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17738
17739# Whether we need a single "-rpath" flag with a separated argument.
17740hardcode_libdir_separator=$lt_hardcode_libdir_separator
17741
17742# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17743# DIR into the resulting binary.
17744hardcode_direct=$hardcode_direct
17745
17746# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17747# DIR into the resulting binary and the resulting library dependency is
17748# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17749# library is relocated.
17750hardcode_direct_absolute=$hardcode_direct_absolute
17751
17752# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17753# into the resulting binary.
17754hardcode_minus_L=$hardcode_minus_L
17755
17756# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17757# into the resulting binary.
17758hardcode_shlibpath_var=$hardcode_shlibpath_var
17759
17760# Set to "yes" if building a shared library automatically hardcodes DIR
17761# into the library and all subsequent libraries and executables linked
17762# against it.
17763hardcode_automatic=$hardcode_automatic
17764
17765# Set to yes if linker adds runtime paths of dependent libraries
17766# to runtime path list.
17767inherit_rpath=$inherit_rpath
17768
17769# Whether libtool must link a program against all its dependency libraries.
17770link_all_deplibs=$link_all_deplibs
17771
17772# Fix the shell variable \$srcfile for the compiler.
17773fix_srcfile_path=$lt_fix_srcfile_path
17774
17775# Set to "yes" if exported symbols are required.
17776always_export_symbols=$always_export_symbols
17777
17778# The commands to list exported symbols.
17779export_symbols_cmds=$lt_export_symbols_cmds
17780
17781# Symbols that should not be listed in the preloaded symbols.
17782exclude_expsyms=$lt_exclude_expsyms
17783
17784# Symbols that must always be exported.
17785include_expsyms=$lt_include_expsyms
17786
17787# Commands necessary for linking programs (against libraries) with templates.
17788prelink_cmds=$lt_prelink_cmds
17789
17790# Specify filename containing input files.
17791file_list_spec=$lt_file_list_spec
17792
17793# How to hardcode a shared library path into an executable.
17794hardcode_action=$hardcode_action
17795
17796# ### END LIBTOOL CONFIG
17797
17798_LT_EOF
17799
17800 case $host_os in
17801 aix3*)
17802 cat <<\_LT_EOF >> "$cfgfile"
17803# AIX sometimes has problems with the GCC collect2 program. For some
17804# reason, if we set the COLLECT_NAMES environment variable, the problems
17805# vanish in a puff of smoke.
17806if test "X${COLLECT_NAMES+set}" != Xset; then
17807 COLLECT_NAMES=
17808 export COLLECT_NAMES
17809fi
17810_LT_EOF
17811 ;;
17812 esac
17813
17814
17815ltmain="$ac_aux_dir/ltmain.sh"
17816
17817
17818 # We use sed instead of cat because bash on DJGPP gets confused if
17819 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17820 # text mode, it properly converts lines to CR/LF. This bash problem
17821 # is reportedly fixed, but why not run on old versions too?
17822 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
17823 || (rm -f "$cfgfile"; exit 1)
17824
17825 case $xsi_shell in
17826 yes)
17827 cat << \_LT_EOF >> "$cfgfile"
718a6fd8 17828
d7040cdb
SE
17829# func_dirname file append nondir_replacement
17830# Compute the dirname of FILE. If nonempty, add APPEND to the result,
17831# otherwise set result to NONDIR_REPLACEMENT.
17832func_dirname ()
17833{
17834 case ${1} in
17835 */*) func_dirname_result="${1%/*}${2}" ;;
17836 * ) func_dirname_result="${3}" ;;
17837 esac
17838}
17839
17840# func_basename file
17841func_basename ()
17842{
17843 func_basename_result="${1##*/}"
17844}
17845
718a6fd8
SE
17846# func_dirname_and_basename file append nondir_replacement
17847# perform func_basename and func_dirname in a single function
17848# call:
17849# dirname: Compute the dirname of FILE. If nonempty,
17850# add APPEND to the result, otherwise set result
17851# to NONDIR_REPLACEMENT.
17852# value returned in "$func_dirname_result"
17853# basename: Compute filename of FILE.
17854# value retuned in "$func_basename_result"
17855# Implementation must be kept synchronized with func_dirname
17856# and func_basename. For efficiency, we do not delegate to
17857# those functions but instead duplicate the functionality here.
17858func_dirname_and_basename ()
17859{
17860 case ${1} in
17861 */*) func_dirname_result="${1%/*}${2}" ;;
17862 * ) func_dirname_result="${3}" ;;
17863 esac
17864 func_basename_result="${1##*/}"
17865}
17866
d7040cdb
SE
17867# func_stripname prefix suffix name
17868# strip PREFIX and SUFFIX off of NAME.
17869# PREFIX and SUFFIX must not contain globbing or regex special
17870# characters, hashes, percent signs, but SUFFIX may contain a leading
17871# dot (in which case that matches only a dot).
17872func_stripname ()
17873{
17874 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
17875 # positional parameters, so assign one to ordinary parameter first.
17876 func_stripname_result=${3}
17877 func_stripname_result=${func_stripname_result#"${1}"}
17878 func_stripname_result=${func_stripname_result%"${2}"}
17879}
17880
17881# func_opt_split
17882func_opt_split ()
17883{
17884 func_opt_split_opt=${1%%=*}
17885 func_opt_split_arg=${1#*=}
17886}
17887
17888# func_lo2o object
17889func_lo2o ()
17890{
17891 case ${1} in
17892 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
17893 *) func_lo2o_result=${1} ;;
17894 esac
17895}
718a6fd8
SE
17896
17897# func_xform libobj-or-source
17898func_xform ()
17899{
17900 func_xform_result=${1%.*}.lo
17901}
17902
17903# func_arith arithmetic-term...
17904func_arith ()
17905{
17906 func_arith_result=$(( $* ))
17907}
17908
17909# func_len string
17910# STRING may not start with a hyphen.
17911func_len ()
17912{
17913 func_len_result=${#1}
17914}
17915
d7040cdb
SE
17916_LT_EOF
17917 ;;
17918 *) # Bourne compatible functions.
17919 cat << \_LT_EOF >> "$cfgfile"
718a6fd8 17920
d7040cdb
SE
17921# func_dirname file append nondir_replacement
17922# Compute the dirname of FILE. If nonempty, add APPEND to the result,
17923# otherwise set result to NONDIR_REPLACEMENT.
17924func_dirname ()
17925{
17926 # Extract subdirectory from the argument.
3725885a 17927 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
d7040cdb
SE
17928 if test "X$func_dirname_result" = "X${1}"; then
17929 func_dirname_result="${3}"
17930 else
17931 func_dirname_result="$func_dirname_result${2}"
17932 fi
17933}
17934
17935# func_basename file
17936func_basename ()
17937{
3725885a 17938 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
d7040cdb
SE
17939}
17940
718a6fd8 17941
d7040cdb
SE
17942# func_stripname prefix suffix name
17943# strip PREFIX and SUFFIX off of NAME.
17944# PREFIX and SUFFIX must not contain globbing or regex special
17945# characters, hashes, percent signs, but SUFFIX may contain a leading
17946# dot (in which case that matches only a dot).
17947# func_strip_suffix prefix name
17948func_stripname ()
17949{
17950 case ${2} in
3725885a
RW
17951 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
17952 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
d7040cdb
SE
17953 esac
17954}
17955
17956# sed scripts:
17957my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
17958my_sed_long_arg='1s/^-[^=]*=//'
17959
17960# func_opt_split
17961func_opt_split ()
17962{
3725885a
RW
17963 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
17964 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
d7040cdb
SE
17965}
17966
17967# func_lo2o object
17968func_lo2o ()
17969{
3725885a 17970 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
d7040cdb 17971}
718a6fd8
SE
17972
17973# func_xform libobj-or-source
17974func_xform ()
17975{
3725885a 17976 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
718a6fd8
SE
17977}
17978
17979# func_arith arithmetic-term...
17980func_arith ()
17981{
17982 func_arith_result=`expr "$@"`
17983}
17984
17985# func_len string
17986# STRING may not start with a hyphen.
17987func_len ()
17988{
17989 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
17990}
17991
d7040cdb
SE
17992_LT_EOF
17993esac
17994
17995case $lt_shell_append in
17996 yes)
17997 cat << \_LT_EOF >> "$cfgfile"
17998
17999# func_append var value
18000# Append VALUE to the end of shell variable VAR.
18001func_append ()
18002{
18003 eval "$1+=\$2"
18004}
18005_LT_EOF
18006 ;;
18007 *)
18008 cat << \_LT_EOF >> "$cfgfile"
18009
18010# func_append var value
18011# Append VALUE to the end of shell variable VAR.
18012func_append ()
18013{
18014 eval "$1=\$$1\$2"
18015}
718a6fd8 18016
d7040cdb
SE
18017_LT_EOF
18018 ;;
18019 esac
18020
18021
18022 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
18023 || (rm -f "$cfgfile"; exit 1)
18024
18025 mv -f "$cfgfile" "$ofile" ||
18026 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18027 chmod +x "$ofile"
18028
f5385ebf 18029 ;;
81ecdfbb 18030 "default-1":C)
20e95c23
DJ
18031 for ac_file in $CONFIG_FILES; do
18032 # Support "outfile[:infile[:infile...]]"
18033 case "$ac_file" in
18034 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
18035 esac
18036 # PO directories have a Makefile.in generated from Makefile.in.in.
18037 case "$ac_file" in */Makefile.in)
18038 # Adjust a relative srcdir.
18039 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
18040 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
18041 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
18042 # In autoconf-2.13 it is called $ac_given_srcdir.
18043 # In autoconf-2.50 it is called $srcdir.
18044 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
18045 case "$ac_given_srcdir" in
18046 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
18047 /*) top_srcdir="$ac_given_srcdir" ;;
18048 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
18049 esac
18050 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
18051 rm -f "$ac_dir/POTFILES"
18052 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
18053 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
18054 POMAKEFILEDEPS="POTFILES.in"
18055 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
18056 # on $ac_dir but don't depend on user-specified configuration
18057 # parameters.
18058 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
18059 # The LINGUAS file contains the set of available languages.
18060 if test -n "$OBSOLETE_ALL_LINGUAS"; then
18061 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
18062 fi
18063 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
18064 # Hide the ALL_LINGUAS assigment from automake.
18065 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
18066 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
18067 else
18068 # The set of available languages was given in configure.in.
18069 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
18070 fi
18071 case "$ac_given_srcdir" in
18072 .) srcdirpre= ;;
18073 *) srcdirpre='$(srcdir)/' ;;
18074 esac
18075 POFILES=
18076 GMOFILES=
18077 UPDATEPOFILES=
18078 DUMMYPOFILES=
18079 for lang in $ALL_LINGUAS; do
18080 POFILES="$POFILES $srcdirpre$lang.po"
18081 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
18082 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
18083 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
18084 done
18085 # CATALOGS depends on both $ac_dir and the user's LINGUAS
18086 # environment variable.
18087 INST_LINGUAS=
18088 if test -n "$ALL_LINGUAS"; then
18089 for presentlang in $ALL_LINGUAS; do
18090 useit=no
18091 if test "%UNSET%" != "$LINGUAS"; then
18092 desiredlanguages="$LINGUAS"
18093 else
18094 desiredlanguages="$ALL_LINGUAS"
18095 fi
18096 for desiredlang in $desiredlanguages; do
18097 # Use the presentlang catalog if desiredlang is
18098 # a. equal to presentlang, or
18099 # b. a variant of presentlang (because in this case,
18100 # presentlang can be used as a fallback for messages
18101 # which are not translated in the desiredlang catalog).
18102 case "$desiredlang" in
18103 "$presentlang"*) useit=yes;;
18104 esac
18105 done
18106 if test $useit = yes; then
18107 INST_LINGUAS="$INST_LINGUAS $presentlang"
18108 fi
18109 done
18110 fi
18111 CATALOGS=
18112 if test -n "$INST_LINGUAS"; then
18113 for lang in $INST_LINGUAS; do
18114 CATALOGS="$CATALOGS $lang.gmo"
18115 done
18116 fi
18117 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
18118 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"
18119 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
18120 if test -f "$f"; then
18121 case "$f" in
18122 *.orig | *.bak | *~) ;;
18123 *) cat "$f" >> "$ac_dir/Makefile" ;;
18124 esac
18125 fi
18126 done
18127 fi
18128 ;;
18129 esac
18130 done ;;
81ecdfbb 18131 "bfd_stdint.h":C)
f3b4f6d0
PB
18132if test "$GCC" = yes; then
18133 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
18134else
18135 echo "/* generated for $CC */" > tmp-stdint.h
18136fi
d5efd9fc 18137
f3b4f6d0
PB
18138sed 's/^ *//' >> tmp-stdint.h <<EOF
18139
18140 #ifndef GCC_GENERATED_STDINT_H
18141 #define GCC_GENERATED_STDINT_H 1
18142
18143 #include <sys/types.h>
18144EOF
18145
18146if test "$acx_cv_header_stdint" != stdint.h; then
18147 echo "#include <stddef.h>" >> tmp-stdint.h
18148fi
18149if test "$acx_cv_header_stdint" != stddef.h; then
18150 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
18151fi
18152
18153sed 's/^ *//' >> tmp-stdint.h <<EOF
18154 /* glibc uses these symbols as guards to prevent redefinitions. */
18155 #ifdef __int8_t_defined
18156 #define _INT8_T
18157 #define _INT16_T
18158 #define _INT32_T
18159 #endif
18160 #ifdef __uint32_t_defined
18161 #define _UINT32_T
18162 #endif
18163
18164EOF
18165
18166# ----------------- done header, emit basic int types -------------
18167if test "$acx_cv_header_stdint" = stddef.h; then
18168 sed 's/^ *//' >> tmp-stdint.h <<EOF
18169
18170 #ifndef _UINT8_T
18171 #define _UINT8_T
18172 #ifndef __uint8_t_defined
18173 #define __uint8_t_defined
18174 typedef unsigned $acx_cv_type_int8_t uint8_t;
18175 #endif
18176 #endif
18177
18178 #ifndef _UINT16_T
18179 #define _UINT16_T
18180 #ifndef __uint16_t_defined
18181 #define __uint16_t_defined
18182 typedef unsigned $acx_cv_type_int16_t uint16_t;
18183 #endif
18184 #endif
18185
18186 #ifndef _UINT32_T
18187 #define _UINT32_T
18188 #ifndef __uint32_t_defined
18189 #define __uint32_t_defined
18190 typedef unsigned $acx_cv_type_int32_t uint32_t;
18191 #endif
18192 #endif
18193
18194 #ifndef _INT8_T
18195 #define _INT8_T
18196 #ifndef __int8_t_defined
18197 #define __int8_t_defined
18198 typedef $acx_cv_type_int8_t int8_t;
18199 #endif
18200 #endif
18201
18202 #ifndef _INT16_T
18203 #define _INT16_T
18204 #ifndef __int16_t_defined
18205 #define __int16_t_defined
18206 typedef $acx_cv_type_int16_t int16_t;
18207 #endif
18208 #endif
18209
18210 #ifndef _INT32_T
18211 #define _INT32_T
18212 #ifndef __int32_t_defined
18213 #define __int32_t_defined
18214 typedef $acx_cv_type_int32_t int32_t;
18215 #endif
18216 #endif
18217EOF
18218elif test "$ac_cv_type_u_int32_t" = yes; then
18219 sed 's/^ *//' >> tmp-stdint.h <<EOF
18220
18221 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
18222 #ifndef _INT8_T
18223 #define _INT8_T
18224 #endif
18225 #ifndef _INT16_T
18226 #define _INT16_T
18227 #endif
18228 #ifndef _INT32_T
18229 #define _INT32_T
18230 #endif
18231
18232 #ifndef _UINT8_T
18233 #define _UINT8_T
18234 #ifndef __uint8_t_defined
18235 #define __uint8_t_defined
18236 typedef u_int8_t uint8_t;
18237 #endif
18238 #endif
18239
18240 #ifndef _UINT16_T
18241 #define _UINT16_T
18242 #ifndef __uint16_t_defined
18243 #define __uint16_t_defined
18244 typedef u_int16_t uint16_t;
18245 #endif
18246 #endif
18247
18248 #ifndef _UINT32_T
18249 #define _UINT32_T
18250 #ifndef __uint32_t_defined
18251 #define __uint32_t_defined
18252 typedef u_int32_t uint32_t;
18253 #endif
18254 #endif
d5efd9fc 18255EOF
f3b4f6d0
PB
18256else
18257 sed 's/^ *//' >> tmp-stdint.h <<EOF
18258
18259 /* Some systems have guard macros to prevent redefinitions, define them. */
18260 #ifndef _INT8_T
18261 #define _INT8_T
18262 #endif
18263 #ifndef _INT16_T
18264 #define _INT16_T
18265 #endif
18266 #ifndef _INT32_T
18267 #define _INT32_T
18268 #endif
18269 #ifndef _UINT8_T
18270 #define _UINT8_T
18271 #endif
18272 #ifndef _UINT16_T
18273 #define _UINT16_T
18274 #endif
18275 #ifndef _UINT32_T
18276 #define _UINT32_T
18277 #endif
18278EOF
18279fi
18280
18281# ------------- done basic int types, emit int64_t types ------------
18282if test "$ac_cv_type_uint64_t" = yes; then
18283 sed 's/^ *//' >> tmp-stdint.h <<EOF
d5efd9fc 18284
f3b4f6d0
PB
18285 /* system headers have good uint64_t and int64_t */
18286 #ifndef _INT64_T
18287 #define _INT64_T
18288 #endif
18289 #ifndef _UINT64_T
18290 #define _UINT64_T
18291 #endif
18292EOF
18293elif test "$ac_cv_type_u_int64_t" = yes; then
18294 sed 's/^ *//' >> tmp-stdint.h <<EOF
18295
18296 /* system headers have an u_int64_t (and int64_t) */
18297 #ifndef _INT64_T
18298 #define _INT64_T
18299 #endif
18300 #ifndef _UINT64_T
18301 #define _UINT64_T
18302 #ifndef __uint64_t_defined
18303 #define __uint64_t_defined
18304 typedef u_int64_t uint64_t;
18305 #endif
18306 #endif
18307EOF
18308elif test -n "$acx_cv_type_int64_t"; then
18309 sed 's/^ *//' >> tmp-stdint.h <<EOF
18310
18311 /* architecture has a 64-bit type, $acx_cv_type_int64_t */
18312 #ifndef _INT64_T
18313 #define _INT64_T
18314 typedef $acx_cv_type_int64_t int64_t;
18315 #endif
18316 #ifndef _UINT64_T
18317 #define _UINT64_T
18318 #ifndef __uint64_t_defined
18319 #define __uint64_t_defined
18320 typedef unsigned $acx_cv_type_int64_t uint64_t;
18321 #endif
18322 #endif
18323EOF
18324else
18325 sed 's/^ *//' >> tmp-stdint.h <<EOF
18326
18327 /* some common heuristics for int64_t, using compiler-specific tests */
18328 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
18329 #ifndef _INT64_T
18330 #define _INT64_T
18331 #ifndef __int64_t_defined
18332 typedef long long int64_t;
18333 #endif
18334 #endif
18335 #ifndef _UINT64_T
18336 #define _UINT64_T
18337 typedef unsigned long long uint64_t;
18338 #endif
18339
18340 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
18341 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
18342 does not implement __extension__. But that compiler doesn't define
18343 __GNUC_MINOR__. */
18344 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
18345 # define __extension__
18346 # endif
18347
18348 # ifndef _INT64_T
18349 # define _INT64_T
18350 __extension__ typedef long long int64_t;
18351 # endif
18352 # ifndef _UINT64_T
18353 # define _UINT64_T
18354 __extension__ typedef unsigned long long uint64_t;
18355 # endif
18356
18357 #elif !defined __STRICT_ANSI__
18358 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
18359
18360 # ifndef _INT64_T
18361 # define _INT64_T
18362 typedef __int64 int64_t;
18363 # endif
18364 # ifndef _UINT64_T
18365 # define _UINT64_T
18366 typedef unsigned __int64 uint64_t;
18367 # endif
18368 # endif /* compiler */
18369
18370 #endif /* ANSI version */
18371EOF
18372fi
18373
18374# ------------- done int64_t types, emit intptr types ------------
18375if test "$ac_cv_type_uintptr_t" != yes; then
18376 sed 's/^ *//' >> tmp-stdint.h <<EOF
18377
18378 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
18379 #ifndef __uintptr_t_defined
18380 typedef u$acx_cv_type_intptr_t uintptr_t;
18381 #endif
18382 #ifndef __intptr_t_defined
18383 typedef $acx_cv_type_intptr_t intptr_t;
18384 #endif
18385EOF
18386fi
18387
18388# ------------- done intptr types, emit int_least types ------------
d5efd9fc 18389if test "$ac_cv_type_int_least32_t" != yes; then
f3b4f6d0 18390 sed 's/^ *//' >> tmp-stdint.h <<EOF
d5efd9fc
AM
18391
18392 /* Define int_least types */
18393 typedef int8_t int_least8_t;
18394 typedef int16_t int_least16_t;
18395 typedef int32_t int_least32_t;
f3b4f6d0 18396 #ifdef _INT64_T
d5efd9fc 18397 typedef int64_t int_least64_t;
f3b4f6d0 18398 #endif
d5efd9fc
AM
18399
18400 typedef uint8_t uint_least8_t;
18401 typedef uint16_t uint_least16_t;
18402 typedef uint32_t uint_least32_t;
f3b4f6d0 18403 #ifdef _UINT64_T
d5efd9fc 18404 typedef uint64_t uint_least64_t;
f3b4f6d0 18405 #endif
d5efd9fc
AM
18406EOF
18407fi
18408
f3b4f6d0 18409# ------------- done intptr types, emit int_fast types ------------
d5efd9fc 18410if test "$ac_cv_type_int_fast32_t" != yes; then
f3b4f6d0 18411 sed 's/^ *//' >> tmp-stdint.h <<EOF
d5efd9fc
AM
18412
18413 /* Define int_fast types. short is often slow */
18414 typedef int8_t int_fast8_t;
18415 typedef int int_fast16_t;
18416 typedef int32_t int_fast32_t;
f3b4f6d0 18417 #ifdef _INT64_T
d5efd9fc 18418 typedef int64_t int_fast64_t;
f3b4f6d0 18419 #endif
d5efd9fc
AM
18420
18421 typedef uint8_t uint_fast8_t;
18422 typedef unsigned int uint_fast16_t;
18423 typedef uint32_t uint_fast32_t;
f3b4f6d0 18424 #ifdef _UINT64_T
d5efd9fc 18425 typedef uint64_t uint_fast64_t;
f3b4f6d0
PB
18426 #endif
18427EOF
18428fi
18429
18430if test "$ac_cv_type_uintmax_t" != yes; then
18431 sed 's/^ *//' >> tmp-stdint.h <<EOF
18432
18433 /* Define intmax based on what we found */
18434 #ifdef _INT64_T
18435 typedef int64_t intmax_t;
18436 #else
18437 typedef long intmax_t;
18438 #endif
18439 #ifdef _UINT64_T
18440 typedef uint64_t uintmax_t;
18441 #else
18442 typedef unsigned long uintmax_t;
18443 #endif
d5efd9fc
AM
18444EOF
18445fi
18446
f3b4f6d0
PB
18447sed 's/^ *//' >> tmp-stdint.h <<EOF
18448
18449 #endif /* GCC_GENERATED_STDINT_H */
18450EOF
d5efd9fc 18451
f3b4f6d0
PB
18452if test -r bfd_stdint.h && cmp -s tmp-stdint.h bfd_stdint.h; then
18453 rm -f tmp-stdint.h
d5efd9fc 18454else
f3b4f6d0 18455 mv -f tmp-stdint.h bfd_stdint.h
d5efd9fc
AM
18456fi
18457
18458 ;;
81ecdfbb 18459 "default":C)
20e95c23
DJ
18460case "$srcdir" in
18461 .) srcdirpre= ;;
18462 *) srcdirpre='$(srcdir)/' ;;
18463esac
18464POFILES=
18465GMOFILES=
18466for lang in dummy $OBSOLETE_ALL_LINGUAS; do
18467 if test $lang != dummy; then
18468 POFILES="$POFILES $srcdirpre$lang.po"
18469 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
18470 fi
18471done
18472sed -e '/SRC-POTFILES =/r po/SRC-POTFILES' \
18473 -e '/BLD-POTFILES =/r po/BLD-POTFILES' \
18474 -e "s,@POFILES@,$POFILES," \
18475 -e "s,@GMOFILES@,$GMOFILES," \
18476 po/Makefile.in > po/Makefile ;;
81ecdfbb 18477
5464f5a1 18478 esac
81ecdfbb 18479done # for ac_tag
5464f5a1 18480
5464f5a1 18481
81ecdfbb 18482as_fn_exit 0
5464f5a1 18483_ACEOF
5464f5a1
NN
18484ac_clean_files=$ac_clean_files_save
18485
81ecdfbb
RW
18486test $ac_write_fail = 0 ||
18487 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
18488
5464f5a1
NN
18489
18490# configure is writing to config.log, and then calls config.status.
18491# config.status does its own redirection, appending to config.log.
18492# Unfortunately, on DOS this fails, as config.log is still kept open
18493# by configure, so config.status won't be able to write to it; its
18494# output is simply discarded. So we exec the FD to /dev/null,
18495# effectively closing config.log, so it can be properly (re)opened and
18496# appended to by config.status. When coming back to configure, we
18497# need to make the FD available again.
18498if test "$no_create" != yes; then
18499 ac_cs_success=:
18500 ac_config_status_args=
18501 test "$silent" = yes &&
18502 ac_config_status_args="$ac_config_status_args --quiet"
18503 exec 5>/dev/null
18504 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18505 exec 5>>config.log
18506 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18507 # would make configure fail if this is the last instruction.
81ecdfbb
RW
18508 $ac_cs_success || as_fn_exit $?
18509fi
18510if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18511 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18512$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
5464f5a1 18513fi
252b5132 18514
55c80943 18515
This page took 2.076354 seconds and 4 git commands to generate.