]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - bfd/configure
PR gas/11030
[thirdparty/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
172test \$(( 1 + 1 )) = 2 || exit 1"
173 if (eval "$as_required") 2>/dev/null; then :
174 as_have_required=yes
175else
176 as_have_required=no
177fi
178 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
179
180else
181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
182as_found=false
183for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
5464f5a1 184do
81ecdfbb
RW
185 IFS=$as_save_IFS
186 test -z "$as_dir" && as_dir=.
187 as_found=:
188 case $as_dir in #(
189 /*)
190 for as_base in sh bash ksh sh5; do
191 # Try only shells that exist, to save several forks.
192 as_shell=$as_dir/$as_base
193 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
194 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
195 CONFIG_SHELL=$as_shell as_have_required=yes
196 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 break 2
198fi
199fi
200 done;;
201 esac
202 as_found=false
203done
204$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
205 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
206 CONFIG_SHELL=$SHELL as_have_required=yes
207fi; }
208IFS=$as_save_IFS
209
210
211 if test "x$CONFIG_SHELL" != x; then :
212 # We cannot yet assume a decent shell, so we have to provide a
213 # neutralization value for shells without unset; and this also
214 # works around shells that cannot unset nonexistent variables.
215 BASH_ENV=/dev/null
216 ENV=/dev/null
217 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
218 export CONFIG_SHELL
219 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
220fi
221
222 if test x$as_have_required = xno; then :
223 $as_echo "$0: This script requires a shell more modern than all"
224 $as_echo "$0: the shells that I found on your system."
225 if test x${ZSH_VERSION+set} = xset ; then
226 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
227 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
5464f5a1 228 else
81ecdfbb
RW
229 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
230$0: including any error possibly output before this
231$0: message. Then install a modern shell, or manually run
232$0: the script under such a shell if you do have one."
5464f5a1 233 fi
81ecdfbb
RW
234 exit 1
235fi
236fi
237fi
238SHELL=${CONFIG_SHELL-/bin/sh}
239export SHELL
240# Unset more variables known to interfere with behavior of common tools.
241CLICOLOR_FORCE= GREP_OPTIONS=
242unset CLICOLOR_FORCE GREP_OPTIONS
243
244## --------------------- ##
245## M4sh Shell Functions. ##
246## --------------------- ##
247# as_fn_unset VAR
248# ---------------
249# Portably unset VAR.
250as_fn_unset ()
251{
252 { eval $1=; unset $1;}
253}
254as_unset=as_fn_unset
255
256# as_fn_set_status STATUS
257# -----------------------
258# Set $? to STATUS, without forking.
259as_fn_set_status ()
260{
261 return $1
262} # as_fn_set_status
263
264# as_fn_exit STATUS
265# -----------------
266# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
267as_fn_exit ()
268{
269 set +e
270 as_fn_set_status $1
271 exit $1
272} # as_fn_exit
273
274# as_fn_mkdir_p
275# -------------
276# Create "$as_dir" as a directory, including parents if necessary.
277as_fn_mkdir_p ()
278{
279
280 case $as_dir in #(
281 -*) as_dir=./$as_dir;;
282 esac
283 test -d "$as_dir" || eval $as_mkdir_p || {
284 as_dirs=
285 while :; do
286 case $as_dir in #(
287 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
288 *) as_qdir=$as_dir;;
289 esac
290 as_dirs="'$as_qdir' $as_dirs"
291 as_dir=`$as_dirname -- "$as_dir" ||
292$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
293 X"$as_dir" : 'X\(//\)[^/]' \| \
294 X"$as_dir" : 'X\(//\)$' \| \
295 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
296$as_echo X"$as_dir" |
297 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
298 s//\1/
299 q
300 }
301 /^X\(\/\/\)[^/].*/{
302 s//\1/
303 q
304 }
305 /^X\(\/\/\)$/{
306 s//\1/
307 q
308 }
309 /^X\(\/\).*/{
310 s//\1/
311 q
312 }
313 s/.*/./; q'`
314 test -d "$as_dir" && break
315 done
316 test -z "$as_dirs" || eval "mkdir $as_dirs"
317 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
318
319
320} # as_fn_mkdir_p
321# as_fn_append VAR VALUE
322# ----------------------
323# Append the text in VALUE to the end of the definition contained in VAR. Take
324# advantage of any shell optimizations that allow amortized linear growth over
325# repeated appends, instead of the typical quadratic growth present in naive
326# implementations.
327if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
328 eval 'as_fn_append ()
329 {
330 eval $1+=\$2
331 }'
332else
333 as_fn_append ()
334 {
335 eval $1=\$$1\$2
336 }
337fi # as_fn_append
338
339# as_fn_arith ARG...
340# ------------------
341# Perform arithmetic evaluation on the ARGs, and store the result in the
342# global $as_val. Take advantage of shells that can avoid forks. The arguments
343# must be portable across $(()) and expr.
344if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
345 eval 'as_fn_arith ()
346 {
347 as_val=$(( $* ))
348 }'
349else
350 as_fn_arith ()
351 {
352 as_val=`expr "$@" || test $? -eq 1`
353 }
354fi # as_fn_arith
355
5464f5a1 356
81ecdfbb
RW
357# as_fn_error ERROR [LINENO LOG_FD]
358# ---------------------------------
359# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
360# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
361# script with status $?, using 1 if that was 0.
362as_fn_error ()
363{
364 as_status=$?; test $as_status -eq 0 && as_status=1
365 if test "$3"; then
366 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
367 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
368 fi
369 $as_echo "$as_me: error: $1" >&2
370 as_fn_exit $as_status
371} # as_fn_error
372
373if expr a : '\(a\)' >/dev/null 2>&1 &&
374 test "X`expr 00001 : '.*\(...\)'`" = X001; then
5464f5a1
NN
375 as_expr=expr
376else
377 as_expr=false
378fi
379
81ecdfbb 380if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
5464f5a1
NN
381 as_basename=basename
382else
383 as_basename=false
384fi
385
81ecdfbb
RW
386if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
387 as_dirname=dirname
388else
389 as_dirname=false
390fi
5464f5a1 391
81ecdfbb 392as_me=`$as_basename -- "$0" ||
5464f5a1
NN
393$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
394 X"$0" : 'X\(//\)$' \| \
81ecdfbb
RW
395 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
396$as_echo X/"$0" |
397 sed '/^.*\/\([^/][^/]*\)\/*$/{
398 s//\1/
399 q
400 }
401 /^X\/\(\/\/\)$/{
402 s//\1/
403 q
404 }
405 /^X\/\(\/\).*/{
406 s//\1/
407 q
408 }
409 s/.*/./; q'`
5464f5a1 410
5464f5a1
NN
411# Avoid depending upon Character Ranges.
412as_cr_letters='abcdefghijklmnopqrstuvwxyz'
413as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
414as_cr_Letters=$as_cr_letters$as_cr_LETTERS
415as_cr_digits='0123456789'
416as_cr_alnum=$as_cr_Letters$as_cr_digits
417
5464f5a1 418
81ecdfbb
RW
419 as_lineno_1=$LINENO as_lineno_1a=$LINENO
420 as_lineno_2=$LINENO as_lineno_2a=$LINENO
421 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
422 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
423 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
424 sed -n '
425 p
426 /[$]LINENO/=
427 ' <$as_myself |
5464f5a1 428 sed '
81ecdfbb
RW
429 s/[$]LINENO.*/&-/
430 t lineno
431 b
432 :lineno
5464f5a1 433 N
81ecdfbb
RW
434 :loop
435 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
5464f5a1 436 t loop
81ecdfbb 437 s/-\n.*//
5464f5a1 438 ' >$as_me.lineno &&
81ecdfbb
RW
439 chmod +x "$as_me.lineno" ||
440 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
5464f5a1
NN
441
442 # Don't try to exec as it changes $[0], causing all sort of problems
443 # (the dirname of $[0] is not the place where we might find the
81ecdfbb
RW
444 # original and so on. Autoconf is especially sensitive to this).
445 . "./$as_me.lineno"
5464f5a1
NN
446 # Exit status is that of the last command.
447 exit
448}
449
81ecdfbb
RW
450ECHO_C= ECHO_N= ECHO_T=
451case `echo -n x` in #(((((
452-n*)
453 case `echo 'xy\c'` in
454 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
455 xy) ECHO_C='\c';;
456 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
457 ECHO_T=' ';;
458 esac;;
459*)
460 ECHO_N='-n';;
5464f5a1
NN
461esac
462
81ecdfbb
RW
463rm -f conf$$ conf$$.exe conf$$.file
464if test -d conf$$.dir; then
465 rm -f conf$$.dir/conf$$.file
5464f5a1 466else
81ecdfbb
RW
467 rm -f conf$$.dir
468 mkdir conf$$.dir 2>/dev/null
5464f5a1 469fi
81ecdfbb
RW
470if (echo >conf$$.file) 2>/dev/null; then
471 if ln -s conf$$.file conf$$ 2>/dev/null; then
5464f5a1 472 as_ln_s='ln -s'
81ecdfbb
RW
473 # ... but there are two gotchas:
474 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
475 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
476 # In both cases, we have to default to `cp -p'.
477 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
478 as_ln_s='cp -p'
479 elif ln conf$$.file conf$$ 2>/dev/null; then
480 as_ln_s=ln
481 else
482 as_ln_s='cp -p'
5464f5a1 483 fi
5464f5a1
NN
484else
485 as_ln_s='cp -p'
486fi
81ecdfbb
RW
487rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
488rmdir conf$$.dir 2>/dev/null
5464f5a1
NN
489
490if mkdir -p . 2>/dev/null; then
81ecdfbb 491 as_mkdir_p='mkdir -p "$as_dir"'
5464f5a1
NN
492else
493 test -d ./-p && rmdir ./-p
494 as_mkdir_p=false
495fi
496
81ecdfbb
RW
497if test -x / >/dev/null 2>&1; then
498 as_test_x='test -x'
499else
500 if ls -dL / >/dev/null 2>&1; then
501 as_ls_L_option=L
502 else
503 as_ls_L_option=
504 fi
505 as_test_x='
506 eval sh -c '\''
507 if test -d "$1"; then
508 test -d "$1/.";
509 else
510 case $1 in #(
511 -*)set "./$1";;
512 esac;
513 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
514 ???[sx]*):;;*)false;;esac;fi
515 '\'' sh
516 '
517fi
518as_executable_p=$as_test_x
5464f5a1
NN
519
520# Sed expression to map a string onto a valid CPP name.
521as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
522
523# Sed expression to map a string onto a valid variable name.
524as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
525
526
d7040cdb
SE
527
528# Check that we are running under the correct shell.
529SHELL=${CONFIG_SHELL-/bin/sh}
530
531case X$lt_ECHO in
532X*--fallback-echo)
533 # Remove one level of quotation (which was required for Make).
534 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
535 ;;
536esac
537
538ECHO=${lt_ECHO-echo}
539if test "X$1" = X--no-reexec; then
540 # Discard the --no-reexec flag, and continue.
541 shift
542elif test "X$1" = X--fallback-echo; then
543 # Avoid inline document here, it may be left over
544 :
545elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
546 # Yippee, $ECHO works!
547 :
548else
549 # Restart under the correct shell.
550 exec $SHELL "$0" --no-reexec ${1+"$@"}
551fi
552
553if test "X$1" = X--fallback-echo; then
554 # used as fallback echo
555 shift
556 cat <<_LT_EOF
557$*
558_LT_EOF
559 exit 0
560fi
561
562# The HP-UX ksh and POSIX shell print the target directory to stdout
563# if CDPATH is set.
564(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
565
566if test -z "$lt_ECHO"; then
567 if test "X${echo_test_string+set}" != Xset; then
568 # find a string as large as possible, as long as the shell can cope with it
569 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
570 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
571 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
572 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
573 then
574 break
575 fi
576 done
577 fi
578
579 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
580 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
581 test "X$echo_testing_string" = "X$echo_test_string"; then
582 :
583 else
584 # The Solaris, AIX, and Digital Unix default echo programs unquote
585 # backslashes. This makes it impossible to quote backslashes using
586 # echo "$something" | sed 's/\\/\\\\/g'
587 #
588 # So, first we look for a working echo in the user's PATH.
589
590 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
591 for dir in $PATH /usr/ucb; do
592 IFS="$lt_save_ifs"
593 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
594 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
595 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
596 test "X$echo_testing_string" = "X$echo_test_string"; then
597 ECHO="$dir/echo"
598 break
599 fi
600 done
601 IFS="$lt_save_ifs"
602
603 if test "X$ECHO" = Xecho; then
604 # We didn't find a better echo, so look for alternatives.
605 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
606 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
607 test "X$echo_testing_string" = "X$echo_test_string"; then
608 # This shell has a builtin print -r that does the trick.
609 ECHO='print -r'
610 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
611 test "X$CONFIG_SHELL" != X/bin/ksh; then
612 # If we have ksh, try running configure again with it.
613 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
614 export ORIGINAL_CONFIG_SHELL
615 CONFIG_SHELL=/bin/ksh
616 export CONFIG_SHELL
617 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
618 else
619 # Try using printf.
620 ECHO='printf %s\n'
621 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
622 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
623 test "X$echo_testing_string" = "X$echo_test_string"; then
624 # Cool, printf works
625 :
626 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
627 test "X$echo_testing_string" = 'X\t' &&
628 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
629 test "X$echo_testing_string" = "X$echo_test_string"; then
630 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
631 export CONFIG_SHELL
632 SHELL="$CONFIG_SHELL"
633 export SHELL
634 ECHO="$CONFIG_SHELL $0 --fallback-echo"
635 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
636 test "X$echo_testing_string" = 'X\t' &&
637 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
638 test "X$echo_testing_string" = "X$echo_test_string"; then
639 ECHO="$CONFIG_SHELL $0 --fallback-echo"
640 else
641 # maybe with a smaller string...
642 prev=:
643
644 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
645 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
646 then
647 break
648 fi
649 prev="$cmd"
650 done
651
652 if test "$prev" != 'sed 50q "$0"'; then
653 echo_test_string=`eval $prev`
654 export echo_test_string
655 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
656 else
657 # Oops. We lost completely, so just stick with echo.
658 ECHO=echo
659 fi
660 fi
661 fi
662 fi
663 fi
664fi
665
666# Copy echo and quote the copy suitably for passing to libtool from
667# the Makefile, instead of quoting the original, which is used later.
668lt_ECHO=$ECHO
669if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
670 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
671fi
672
673
674
675
81ecdfbb
RW
676exec 7<&0 </dev/null 6>&1
677
5464f5a1
NN
678# Name of the host.
679# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
680# so uname gets run too.
681ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
252b5132 682
5464f5a1
NN
683#
684# Initializations.
685#
252b5132 686ac_default_prefix=/usr/local
81ecdfbb 687ac_clean_files=
5464f5a1 688ac_config_libobj_dir=.
81ecdfbb 689LIBOBJS=
5464f5a1
NN
690cross_compiling=no
691subdirs=
692MFLAGS=
693MAKEFLAGS=
5464f5a1
NN
694
695# Identity of this package.
696PACKAGE_NAME=
697PACKAGE_TARNAME=
698PACKAGE_VERSION=
699PACKAGE_STRING=
700PACKAGE_BUGREPORT=
81ecdfbb 701PACKAGE_URL=
5464f5a1
NN
702
703ac_unique_file="libbfd.c"
704# Factoring default headers for most tests.
705ac_includes_default="\
706#include <stdio.h>
81ecdfbb 707#ifdef HAVE_SYS_TYPES_H
5464f5a1
NN
708# include <sys/types.h>
709#endif
81ecdfbb 710#ifdef HAVE_SYS_STAT_H
5464f5a1
NN
711# include <sys/stat.h>
712#endif
81ecdfbb 713#ifdef STDC_HEADERS
5464f5a1
NN
714# include <stdlib.h>
715# include <stddef.h>
716#else
81ecdfbb 717# ifdef HAVE_STDLIB_H
5464f5a1
NN
718# include <stdlib.h>
719# endif
720#endif
81ecdfbb
RW
721#ifdef HAVE_STRING_H
722# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
5464f5a1
NN
723# include <memory.h>
724# endif
725# include <string.h>
726#endif
81ecdfbb 727#ifdef HAVE_STRINGS_H
5464f5a1
NN
728# include <strings.h>
729#endif
81ecdfbb 730#ifdef HAVE_INTTYPES_H
5464f5a1 731# include <inttypes.h>
5464f5a1 732#endif
81ecdfbb
RW
733#ifdef HAVE_STDINT_H
734# include <stdint.h>
735#endif
736#ifdef HAVE_UNISTD_H
5464f5a1
NN
737# include <unistd.h>
738#endif"
739
81ecdfbb
RW
740ac_subst_vars='am__EXEEXT_FALSE
741am__EXEEXT_TRUE
742LTLIBOBJS
743LIBOBJS
744tdefaults
745bfd_ufile_ptr
746bfd_file_ptr
747supports_plugins
748bfd_default_target_size
749bfd_machines
750bfd_backends
751all_backends
752bfd64_libs
753wordsize
754TDEFINES
755SHARED_LIBADD
756SHARED_LDFLAGS
757LIBM
758COREFLAG
759COREFILE
760EXEEXT_FOR_BUILD
761CC_FOR_BUILD
762BFD_HOSTPTR_T
763BFD_HOST_U_64_BIT
764BFD_HOST_64_BIT
765BFD_HOST_64_BIT_DEFINED
766BFD_HOST_64BIT_LONG_LONG
767BFD_HOST_64BIT_LONG
768HDEFINES
769MSGMERGE
770MSGFMT
771MKINSTALLDIRS
772CATOBJEXT
773GENCAT
774INSTOBJEXT
775DATADIRNAME
776CATALOGS
777POSUB
778GMSGFMT
779XGETTEXT
780INCINTL
781LIBINTL_DEP
782LIBINTL
783USE_NLS
784bfdincludedir
785bfdlibdir
786target_noncanonical
787host_noncanonical
788INSTALL_LIBBFD_FALSE
789INSTALL_LIBBFD_TRUE
790GENINSRC_NEVER_FALSE
791GENINSRC_NEVER_TRUE
792MAINT
793MAINTAINER_MODE_FALSE
794MAINTAINER_MODE_TRUE
795NO_WERROR
796WARN_CFLAGS
797REPORT_BUGS_TEXI
798REPORT_BUGS_TO
799PKGVERSION
800DEBUGDIR
801PLUGINS_FALSE
802PLUGINS_TRUE
803OTOOL64
804OTOOL
805LIPO
806NMEDIT
807DSYMUTIL
808lt_ECHO
809OBJDUMP
810LN_S
811NM
812ac_ct_DUMPBIN
813DUMPBIN
814LD
815FGREP
816SED
817LIBTOOL
818EGREP
819GREP
820CPP
821RANLIB
822AR
823am__fastdepCC_FALSE
824am__fastdepCC_TRUE
825CCDEPMODE
826AMDEPBACKSLASH
827AMDEP_FALSE
828AMDEP_TRUE
829am__quote
830am__include
831DEPDIR
832am__untar
833am__tar
834AMTAR
835am__leading_dot
836SET_MAKE
837AWK
838mkdir_p
839MKDIR_P
840INSTALL_STRIP_PROGRAM
841STRIP
842install_sh
843MAKEINFO
844AUTOHEADER
845AUTOMAKE
846AUTOCONF
847ACLOCAL
848VERSION
849PACKAGE
850CYGPATH_W
851am__isrc
852INSTALL_DATA
853INSTALL_SCRIPT
854INSTALL_PROGRAM
855OBJEXT
856EXEEXT
857ac_ct_CC
858CPPFLAGS
859LDFLAGS
860CFLAGS
861CC
862target_os
863target_vendor
864target_cpu
865target
866host_os
867host_vendor
868host_cpu
869host
870build_os
871build_vendor
872build_cpu
873build
874target_alias
875host_alias
876build_alias
877LIBS
878ECHO_T
879ECHO_N
880ECHO_C
881DEFS
882mandir
883localedir
884libdir
885psdir
886pdfdir
887dvidir
888htmldir
889infodir
890docdir
891oldincludedir
892includedir
893localstatedir
894sharedstatedir
895sysconfdir
896datadir
897datarootdir
898libexecdir
899sbindir
900bindir
901program_transform_name
902prefix
903exec_prefix
904PACKAGE_URL
905PACKAGE_BUGREPORT
906PACKAGE_STRING
907PACKAGE_VERSION
908PACKAGE_TARNAME
909PACKAGE_NAME
910PATH_SEPARATOR
911SHELL'
5464f5a1 912ac_subst_files=''
81ecdfbb
RW
913ac_user_opts='
914enable_option_checking
915enable_dependency_tracking
916enable_shared
917enable_static
918with_pic
919enable_fast_install
920with_gnu_ld
921enable_libtool_lock
922enable_plugins
923enable_largefile
924enable_64_bit_bfd
925enable_targets
926with_mmap
927enable_secureplt
928with_separate_debug_dir
929enable_elf_stt_common
930with_pkgversion
931with_bugurl
932enable_werror
933enable_build_warnings
934enable_maintainer_mode
935enable_install_libbfd
936enable_nls
bf993e3c 937with_zlib
81ecdfbb
RW
938'
939 ac_precious_vars='build_alias
940host_alias
941target_alias
942CC
943CFLAGS
944LDFLAGS
945LIBS
946CPPFLAGS
947CPP'
948
252b5132
RH
949
950# Initialize some variables set by options.
5464f5a1
NN
951ac_init_help=
952ac_init_version=false
81ecdfbb
RW
953ac_unrecognized_opts=
954ac_unrecognized_sep=
252b5132
RH
955# The variables have the same names as the options, with
956# dashes changed to underlines.
5464f5a1 957cache_file=/dev/null
252b5132 958exec_prefix=NONE
252b5132 959no_create=
252b5132
RH
960no_recursion=
961prefix=NONE
962program_prefix=NONE
963program_suffix=NONE
964program_transform_name=s,x,x,
965silent=
966site=
967srcdir=
252b5132
RH
968verbose=
969x_includes=NONE
970x_libraries=NONE
5464f5a1
NN
971
972# Installation directory options.
973# These are left unexpanded so users can "make install exec_prefix=/foo"
974# and all the variables that are supposed to be based on exec_prefix
975# by default will actually change.
976# Use braces instead of parens because sh, perl, etc. also accept them.
81ecdfbb 977# (The list follows the same order as the GNU Coding Standards.)
252b5132
RH
978bindir='${exec_prefix}/bin'
979sbindir='${exec_prefix}/sbin'
980libexecdir='${exec_prefix}/libexec'
81ecdfbb
RW
981datarootdir='${prefix}/share'
982datadir='${datarootdir}'
252b5132
RH
983sysconfdir='${prefix}/etc'
984sharedstatedir='${prefix}/com'
985localstatedir='${prefix}/var'
252b5132
RH
986includedir='${prefix}/include'
987oldincludedir='/usr/include'
81ecdfbb
RW
988docdir='${datarootdir}/doc/${PACKAGE}'
989infodir='${datarootdir}/info'
990htmldir='${docdir}'
991dvidir='${docdir}'
992pdfdir='${docdir}'
993psdir='${docdir}'
994libdir='${exec_prefix}/lib'
995localedir='${datarootdir}/locale'
996mandir='${datarootdir}/man'
252b5132 997
252b5132 998ac_prev=
81ecdfbb 999ac_dashdash=
252b5132
RH
1000for ac_option
1001do
252b5132
RH
1002 # If the previous option needs an argument, assign it.
1003 if test -n "$ac_prev"; then
81ecdfbb 1004 eval $ac_prev=\$ac_option
252b5132
RH
1005 ac_prev=
1006 continue
1007 fi
1008
81ecdfbb
RW
1009 case $ac_option in
1010 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1011 *) ac_optarg=yes ;;
1012 esac
252b5132
RH
1013
1014 # Accept the important Cygnus configure options, so we can diagnose typos.
1015
81ecdfbb
RW
1016 case $ac_dashdash$ac_option in
1017 --)
1018 ac_dashdash=yes ;;
252b5132
RH
1019
1020 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1021 ac_prev=bindir ;;
1022 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
5464f5a1 1023 bindir=$ac_optarg ;;
252b5132
RH
1024
1025 -build | --build | --buil | --bui | --bu)
5464f5a1 1026 ac_prev=build_alias ;;
252b5132 1027 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
5464f5a1 1028 build_alias=$ac_optarg ;;
252b5132
RH
1029
1030 -cache-file | --cache-file | --cache-fil | --cache-fi \
1031 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1032 ac_prev=cache_file ;;
1033 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1034 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
5464f5a1
NN
1035 cache_file=$ac_optarg ;;
1036
1037 --config-cache | -C)
1038 cache_file=config.cache ;;
252b5132 1039
81ecdfbb 1040 -datadir | --datadir | --datadi | --datad)
252b5132 1041 ac_prev=datadir ;;
81ecdfbb 1042 -datadir=* | --datadir=* | --datadi=* | --datad=*)
5464f5a1 1043 datadir=$ac_optarg ;;
252b5132 1044
81ecdfbb
RW
1045 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1046 | --dataroo | --dataro | --datar)
1047 ac_prev=datarootdir ;;
1048 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1049 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1050 datarootdir=$ac_optarg ;;
1051
252b5132 1052 -disable-* | --disable-*)
81ecdfbb 1053 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
252b5132 1054 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1055 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1056 as_fn_error "invalid feature name: $ac_useropt"
1057 ac_useropt_orig=$ac_useropt
1058 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1059 case $ac_user_opts in
1060 *"
1061"enable_$ac_useropt"
1062"*) ;;
1063 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1064 ac_unrecognized_sep=', ';;
1065 esac
1066 eval enable_$ac_useropt=no ;;
1067
1068 -docdir | --docdir | --docdi | --doc | --do)
1069 ac_prev=docdir ;;
1070 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1071 docdir=$ac_optarg ;;
1072
1073 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1074 ac_prev=dvidir ;;
1075 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1076 dvidir=$ac_optarg ;;
252b5132
RH
1077
1078 -enable-* | --enable-*)
81ecdfbb 1079 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
252b5132 1080 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1081 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1082 as_fn_error "invalid feature name: $ac_useropt"
1083 ac_useropt_orig=$ac_useropt
1084 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1085 case $ac_user_opts in
1086 *"
1087"enable_$ac_useropt"
1088"*) ;;
1089 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1090 ac_unrecognized_sep=', ';;
252b5132 1091 esac
81ecdfbb 1092 eval enable_$ac_useropt=\$ac_optarg ;;
252b5132
RH
1093
1094 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1095 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1096 | --exec | --exe | --ex)
1097 ac_prev=exec_prefix ;;
1098 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1099 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1100 | --exec=* | --exe=* | --ex=*)
5464f5a1 1101 exec_prefix=$ac_optarg ;;
252b5132
RH
1102
1103 -gas | --gas | --ga | --g)
1104 # Obsolete; use --with-gas.
1105 with_gas=yes ;;
1106
5464f5a1
NN
1107 -help | --help | --hel | --he | -h)
1108 ac_init_help=long ;;
1109 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1110 ac_init_help=recursive ;;
1111 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1112 ac_init_help=short ;;
252b5132
RH
1113
1114 -host | --host | --hos | --ho)
5464f5a1 1115 ac_prev=host_alias ;;
252b5132 1116 -host=* | --host=* | --hos=* | --ho=*)
5464f5a1 1117 host_alias=$ac_optarg ;;
252b5132 1118
81ecdfbb
RW
1119 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1120 ac_prev=htmldir ;;
1121 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1122 | --ht=*)
1123 htmldir=$ac_optarg ;;
1124
252b5132
RH
1125 -includedir | --includedir | --includedi | --included | --include \
1126 | --includ | --inclu | --incl | --inc)
1127 ac_prev=includedir ;;
1128 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1129 | --includ=* | --inclu=* | --incl=* | --inc=*)
5464f5a1 1130 includedir=$ac_optarg ;;
252b5132
RH
1131
1132 -infodir | --infodir | --infodi | --infod | --info | --inf)
1133 ac_prev=infodir ;;
1134 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
5464f5a1 1135 infodir=$ac_optarg ;;
252b5132
RH
1136
1137 -libdir | --libdir | --libdi | --libd)
1138 ac_prev=libdir ;;
1139 -libdir=* | --libdir=* | --libdi=* | --libd=*)
5464f5a1 1140 libdir=$ac_optarg ;;
252b5132
RH
1141
1142 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1143 | --libexe | --libex | --libe)
1144 ac_prev=libexecdir ;;
1145 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1146 | --libexe=* | --libex=* | --libe=*)
5464f5a1 1147 libexecdir=$ac_optarg ;;
252b5132 1148
81ecdfbb
RW
1149 -localedir | --localedir | --localedi | --localed | --locale)
1150 ac_prev=localedir ;;
1151 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1152 localedir=$ac_optarg ;;
1153
252b5132 1154 -localstatedir | --localstatedir | --localstatedi | --localstated \
81ecdfbb 1155 | --localstate | --localstat | --localsta | --localst | --locals)
252b5132
RH
1156 ac_prev=localstatedir ;;
1157 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
81ecdfbb 1158 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
5464f5a1 1159 localstatedir=$ac_optarg ;;
252b5132
RH
1160
1161 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1162 ac_prev=mandir ;;
1163 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
5464f5a1 1164 mandir=$ac_optarg ;;
252b5132
RH
1165
1166 -nfp | --nfp | --nf)
1167 # Obsolete; use --without-fp.
1168 with_fp=no ;;
1169
1170 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
5464f5a1 1171 | --no-cr | --no-c | -n)
252b5132
RH
1172 no_create=yes ;;
1173
1174 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1175 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1176 no_recursion=yes ;;
1177
1178 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1179 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1180 | --oldin | --oldi | --old | --ol | --o)
1181 ac_prev=oldincludedir ;;
1182 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1183 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1184 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
5464f5a1 1185 oldincludedir=$ac_optarg ;;
252b5132
RH
1186
1187 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1188 ac_prev=prefix ;;
1189 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
5464f5a1 1190 prefix=$ac_optarg ;;
252b5132
RH
1191
1192 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1193 | --program-pre | --program-pr | --program-p)
1194 ac_prev=program_prefix ;;
1195 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1196 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
5464f5a1 1197 program_prefix=$ac_optarg ;;
252b5132
RH
1198
1199 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1200 | --program-suf | --program-su | --program-s)
1201 ac_prev=program_suffix ;;
1202 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1203 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
5464f5a1 1204 program_suffix=$ac_optarg ;;
252b5132
RH
1205
1206 -program-transform-name | --program-transform-name \
1207 | --program-transform-nam | --program-transform-na \
1208 | --program-transform-n | --program-transform- \
1209 | --program-transform | --program-transfor \
1210 | --program-transfo | --program-transf \
1211 | --program-trans | --program-tran \
1212 | --progr-tra | --program-tr | --program-t)
1213 ac_prev=program_transform_name ;;
1214 -program-transform-name=* | --program-transform-name=* \
1215 | --program-transform-nam=* | --program-transform-na=* \
1216 | --program-transform-n=* | --program-transform-=* \
1217 | --program-transform=* | --program-transfor=* \
1218 | --program-transfo=* | --program-transf=* \
1219 | --program-trans=* | --program-tran=* \
1220 | --progr-tra=* | --program-tr=* | --program-t=*)
5464f5a1 1221 program_transform_name=$ac_optarg ;;
252b5132 1222
81ecdfbb
RW
1223 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1224 ac_prev=pdfdir ;;
1225 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1226 pdfdir=$ac_optarg ;;
1227
1228 -psdir | --psdir | --psdi | --psd | --ps)
1229 ac_prev=psdir ;;
1230 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1231 psdir=$ac_optarg ;;
1232
252b5132
RH
1233 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1234 | -silent | --silent | --silen | --sile | --sil)
1235 silent=yes ;;
1236
1237 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1238 ac_prev=sbindir ;;
1239 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1240 | --sbi=* | --sb=*)
5464f5a1 1241 sbindir=$ac_optarg ;;
252b5132
RH
1242
1243 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1244 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1245 | --sharedst | --shareds | --shared | --share | --shar \
1246 | --sha | --sh)
1247 ac_prev=sharedstatedir ;;
1248 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1249 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1250 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1251 | --sha=* | --sh=*)
5464f5a1 1252 sharedstatedir=$ac_optarg ;;
252b5132
RH
1253
1254 -site | --site | --sit)
1255 ac_prev=site ;;
1256 -site=* | --site=* | --sit=*)
5464f5a1 1257 site=$ac_optarg ;;
6be7c12c 1258
252b5132
RH
1259 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1260 ac_prev=srcdir ;;
1261 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
5464f5a1 1262 srcdir=$ac_optarg ;;
252b5132
RH
1263
1264 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1265 | --syscon | --sysco | --sysc | --sys | --sy)
1266 ac_prev=sysconfdir ;;
1267 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1268 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
5464f5a1 1269 sysconfdir=$ac_optarg ;;
252b5132
RH
1270
1271 -target | --target | --targe | --targ | --tar | --ta | --t)
5464f5a1 1272 ac_prev=target_alias ;;
252b5132 1273 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
5464f5a1 1274 target_alias=$ac_optarg ;;
252b5132
RH
1275
1276 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1277 verbose=yes ;;
1278
5464f5a1
NN
1279 -version | --version | --versio | --versi | --vers | -V)
1280 ac_init_version=: ;;
252b5132
RH
1281
1282 -with-* | --with-*)
81ecdfbb 1283 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
252b5132 1284 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1285 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1286 as_fn_error "invalid package name: $ac_useropt"
1287 ac_useropt_orig=$ac_useropt
1288 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1289 case $ac_user_opts in
1290 *"
1291"with_$ac_useropt"
1292"*) ;;
1293 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1294 ac_unrecognized_sep=', ';;
252b5132 1295 esac
81ecdfbb 1296 eval with_$ac_useropt=\$ac_optarg ;;
252b5132
RH
1297
1298 -without-* | --without-*)
81ecdfbb 1299 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
252b5132 1300 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1301 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1302 as_fn_error "invalid package name: $ac_useropt"
1303 ac_useropt_orig=$ac_useropt
1304 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1305 case $ac_user_opts in
1306 *"
1307"with_$ac_useropt"
1308"*) ;;
1309 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1310 ac_unrecognized_sep=', ';;
1311 esac
1312 eval with_$ac_useropt=no ;;
252b5132
RH
1313
1314 --x)
1315 # Obsolete; use --with-x.
1316 with_x=yes ;;
1317
1318 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1319 | --x-incl | --x-inc | --x-in | --x-i)
1320 ac_prev=x_includes ;;
1321 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1322 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
5464f5a1 1323 x_includes=$ac_optarg ;;
252b5132
RH
1324
1325 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1326 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1327 ac_prev=x_libraries ;;
1328 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1329 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
5464f5a1 1330 x_libraries=$ac_optarg ;;
252b5132 1331
81ecdfbb
RW
1332 -*) as_fn_error "unrecognized option: \`$ac_option'
1333Try \`$0 --help' for more information."
252b5132
RH
1334 ;;
1335
5464f5a1
NN
1336 *=*)
1337 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1338 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1339 case $ac_envvar in #(
1340 '' | [0-9]* | *[!_$as_cr_alnum]* )
1341 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1342 esac
1343 eval $ac_envvar=\$ac_optarg
5464f5a1
NN
1344 export $ac_envvar ;;
1345
252b5132 1346 *)
5464f5a1 1347 # FIXME: should be removed in autoconf 3.0.
81ecdfbb 1348 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
5464f5a1 1349 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
81ecdfbb 1350 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
5464f5a1 1351 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
252b5132
RH
1352 ;;
1353
1354 esac
1355done
1356
1357if test -n "$ac_prev"; then
5464f5a1 1358 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
81ecdfbb 1359 as_fn_error "missing argument to $ac_option"
252b5132 1360fi
252b5132 1361
81ecdfbb
RW
1362if test -n "$ac_unrecognized_opts"; then
1363 case $enable_option_checking in
1364 no) ;;
1365 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1366 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
5464f5a1 1367 esac
81ecdfbb 1368fi
6be7c12c 1369
81ecdfbb
RW
1370# Check all directory arguments for consistency.
1371for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1372 datadir sysconfdir sharedstatedir localstatedir includedir \
1373 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1374 libdir localedir mandir
252b5132 1375do
81ecdfbb
RW
1376 eval ac_val=\$$ac_var
1377 # Remove trailing slashes.
5464f5a1 1378 case $ac_val in
81ecdfbb
RW
1379 */ )
1380 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1381 eval $ac_var=\$ac_val;;
252b5132 1382 esac
81ecdfbb
RW
1383 # Be sure to have absolute directory names.
1384 case $ac_val in
1385 [\\/$]* | ?:[\\/]* ) continue;;
1386 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1387 esac
1388 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
252b5132
RH
1389done
1390
5464f5a1
NN
1391# There might be people who depend on the old broken behavior: `$host'
1392# used to hold the argument of --host etc.
1393# FIXME: To remove some day.
1394build=$build_alias
1395host=$host_alias
1396target=$target_alias
1397
1398# FIXME: To remove some day.
1399if test "x$host_alias" != x; then
1400 if test "x$build_alias" = x; then
1401 cross_compiling=maybe
81ecdfbb 1402 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
5464f5a1
NN
1403 If a cross compiler is detected then cross compile mode will be used." >&2
1404 elif test "x$build_alias" != "x$host_alias"; then
1405 cross_compiling=yes
1406 fi
1407fi
252b5132 1408
5464f5a1
NN
1409ac_tool_prefix=
1410test -n "$host_alias" && ac_tool_prefix=$host_alias-
1411
1412test "$silent" = yes && exec 6>/dev/null
252b5132 1413
252b5132 1414
81ecdfbb
RW
1415ac_pwd=`pwd` && test -n "$ac_pwd" &&
1416ac_ls_di=`ls -di .` &&
1417ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1418 as_fn_error "working directory cannot be determined"
1419test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1420 as_fn_error "pwd does not report name of working directory"
1421
1422
252b5132
RH
1423# Find the source files, if location was not specified.
1424if test -z "$srcdir"; then
1425 ac_srcdir_defaulted=yes
81ecdfbb
RW
1426 # Try the directory containing this script, then the parent directory.
1427 ac_confdir=`$as_dirname -- "$as_myself" ||
1428$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1429 X"$as_myself" : 'X\(//\)[^/]' \| \
1430 X"$as_myself" : 'X\(//\)$' \| \
1431 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1432$as_echo X"$as_myself" |
1433 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1434 s//\1/
1435 q
1436 }
1437 /^X\(\/\/\)[^/].*/{
1438 s//\1/
1439 q
1440 }
1441 /^X\(\/\/\)$/{
1442 s//\1/
1443 q
1444 }
1445 /^X\(\/\).*/{
1446 s//\1/
1447 q
1448 }
1449 s/.*/./; q'`
252b5132 1450 srcdir=$ac_confdir
81ecdfbb 1451 if test ! -r "$srcdir/$ac_unique_file"; then
252b5132
RH
1452 srcdir=..
1453 fi
1454else
1455 ac_srcdir_defaulted=no
1456fi
81ecdfbb
RW
1457if test ! -r "$srcdir/$ac_unique_file"; then
1458 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1459 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1460fi
1461ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1462ac_abs_confdir=`(
1463 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1464 pwd)`
1465# When building in place, set srcdir=.
1466if test "$ac_abs_confdir" = "$ac_pwd"; then
1467 srcdir=.
1468fi
1469# Remove unnecessary trailing slashes from srcdir.
1470# Double slashes in file names in object file debugging info
1471# mess up M-x gdb in Emacs.
1472case $srcdir in
1473*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1474esac
1475for ac_var in $ac_precious_vars; do
1476 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1477 eval ac_env_${ac_var}_value=\$${ac_var}
1478 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1479 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1480done
b3baf5d0 1481
5464f5a1
NN
1482#
1483# Report the --help message.
1484#
1485if test "$ac_init_help" = "long"; then
1486 # Omit some internal or obsolete options to make the list less imposing.
1487 # This message is too long to be a string in the A/UX 3.1 sh.
1488 cat <<_ACEOF
1489\`configure' configures this package to adapt to many kinds of systems.
252b5132 1490
5464f5a1 1491Usage: $0 [OPTION]... [VAR=VALUE]...
252b5132 1492
5464f5a1
NN
1493To assign environment variables (e.g., CC, CFLAGS...), specify them as
1494VAR=VALUE. See below for descriptions of some of the useful variables.
6be7c12c 1495
5464f5a1 1496Defaults for the options are specified in brackets.
6be7c12c 1497
5464f5a1
NN
1498Configuration:
1499 -h, --help display this help and exit
1500 --help=short display options specific to this package
1501 --help=recursive display the short help of all the included packages
1502 -V, --version display version information and exit
1503 -q, --quiet, --silent do not print \`checking...' messages
1504 --cache-file=FILE cache test results in FILE [disabled]
1505 -C, --config-cache alias for \`--cache-file=config.cache'
1506 -n, --no-create do not create output files
1507 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1508
5464f5a1
NN
1509Installation directories:
1510 --prefix=PREFIX install architecture-independent files in PREFIX
81ecdfbb 1511 [$ac_default_prefix]
5464f5a1 1512 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
81ecdfbb 1513 [PREFIX]
6be7c12c 1514
5464f5a1
NN
1515By default, \`make install' will install all the files in
1516\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1517an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1518for instance \`--prefix=\$HOME'.
6be7c12c 1519
5464f5a1 1520For better control, use the options below.
6be7c12c 1521
5464f5a1 1522Fine tuning of the installation directories:
81ecdfbb
RW
1523 --bindir=DIR user executables [EPREFIX/bin]
1524 --sbindir=DIR system admin executables [EPREFIX/sbin]
1525 --libexecdir=DIR program executables [EPREFIX/libexec]
1526 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1527 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1528 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1529 --libdir=DIR object code libraries [EPREFIX/lib]
1530 --includedir=DIR C header files [PREFIX/include]
1531 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1532 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1533 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1534 --infodir=DIR info documentation [DATAROOTDIR/info]
1535 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1536 --mandir=DIR man documentation [DATAROOTDIR/man]
1537 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1538 --htmldir=DIR html documentation [DOCDIR]
1539 --dvidir=DIR dvi documentation [DOCDIR]
1540 --pdfdir=DIR pdf documentation [DOCDIR]
1541 --psdir=DIR ps documentation [DOCDIR]
5464f5a1 1542_ACEOF
6be7c12c 1543
5464f5a1 1544 cat <<\_ACEOF
6be7c12c 1545
5464f5a1
NN
1546Program names:
1547 --program-prefix=PREFIX prepend PREFIX to installed program names
1548 --program-suffix=SUFFIX append SUFFIX to installed program names
1549 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
252b5132 1550
5464f5a1
NN
1551System types:
1552 --build=BUILD configure for building on BUILD [guessed]
1553 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1554 --target=TARGET configure for building compilers for TARGET [HOST]
1555_ACEOF
252b5132 1556fi
252b5132 1557
5464f5a1 1558if test -n "$ac_init_help"; then
6be7c12c 1559
5464f5a1 1560 cat <<\_ACEOF
252b5132 1561
5464f5a1 1562Optional Features:
81ecdfbb 1563 --disable-option-checking ignore unrecognized --enable/--with options
5464f5a1
NN
1564 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1565 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
f5385ebf
AM
1566 --disable-dependency-tracking speeds up one-time build
1567 --enable-dependency-tracking do not reject slow dependency extractors
81ecdfbb
RW
1568 --enable-shared[=PKGS] build shared libraries [default=no]
1569 --enable-static[=PKGS] build static libraries [default=yes]
d7040cdb
SE
1570 --enable-fast-install[=PKGS]
1571 optimize for fast installation [default=yes]
5464f5a1 1572 --disable-libtool-lock avoid locking (might break parallel builds)
5691d22d 1573 --enable-plugins Enable support for plugins (defaults no)
ce3c775b 1574 --disable-largefile omit support for large files
5464f5a1
NN
1575 --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)
1576 --enable-targets alternative target configurations
6ec7057a 1577 --enable-secureplt Default to creating read-only plt entries
504b7d20 1578 --enable-elf-stt-common Allow the generation of ELF symbols with the STT_COMMON type
241a6c40
AM
1579 --enable-werror treat compile warnings as errors
1580 --enable-build-warnings enable build-time compiler warnings
f5385ebf
AM
1581 --enable-maintainer-mode enable make rules and dependencies not useful
1582 (and sometimes confusing) to the casual installer
5464f5a1
NN
1583 --enable-install-libbfd controls installation of libbfd and related headers
1584 --disable-nls do not use Native Language Support
1585
1586Optional Packages:
1587 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1588 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
d7040cdb
SE
1589 --with-pic try to use only PIC/non-PIC objects [default=use
1590 both]
1591 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
5464f5a1 1592 --with-mmap try using mmap for BFD input files if available
0d4a1476
AS
1593 --with-separate-debug-dir=DIR
1594 Look for global separate debug info in DIR
1595 [default=LIBDIR/debug]
a1ac8190
JM
1596 --with-pkgversion=PKG Use PKG in the version string in place of "GNU
1597 Binutils"
c428fa83 1598 --with-bugurl=URL Direct users to URL to report a bug
bf993e3c 1599 --with-zlib include zlib support (auto/yes/no) default=auto
5464f5a1
NN
1600
1601Some influential environment variables:
1602 CC C compiler command
1603 CFLAGS C compiler flags
1604 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1605 nonstandard directory <lib dir>
81ecdfbb
RW
1606 LIBS libraries to pass to the linker, e.g. -l<library>
1607 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1608 you have headers in a nonstandard directory <include dir>
5464f5a1
NN
1609 CPP C preprocessor
1610
1611Use these variables to override the choices made by `configure' or to help
1612it to find libraries and programs with nonstandard names/locations.
1613
81ecdfbb 1614Report bugs to the package provider.
5464f5a1 1615_ACEOF
81ecdfbb 1616ac_status=$?
5464f5a1
NN
1617fi
1618
1619if test "$ac_init_help" = "recursive"; then
1620 # If there are subdirs, report their specific --help.
5464f5a1 1621 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
81ecdfbb
RW
1622 test -d "$ac_dir" ||
1623 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1624 continue
5464f5a1
NN
1625 ac_builddir=.
1626
81ecdfbb
RW
1627case "$ac_dir" in
1628.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1629*)
1630 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1631 # A ".." for each directory in $ac_dir_suffix.
1632 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1633 case $ac_top_builddir_sub in
1634 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1635 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1636 esac ;;
1637esac
1638ac_abs_top_builddir=$ac_pwd
1639ac_abs_builddir=$ac_pwd$ac_dir_suffix
1640# for backward compatibility:
1641ac_top_builddir=$ac_top_build_prefix
5464f5a1
NN
1642
1643case $srcdir in
81ecdfbb 1644 .) # We are building in place.
5464f5a1 1645 ac_srcdir=.
81ecdfbb
RW
1646 ac_top_srcdir=$ac_top_builddir_sub
1647 ac_abs_top_srcdir=$ac_pwd ;;
1648 [\\/]* | ?:[\\/]* ) # Absolute name.
5464f5a1 1649 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
1650 ac_top_srcdir=$srcdir
1651 ac_abs_top_srcdir=$srcdir ;;
1652 *) # Relative name.
1653 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1654 ac_top_srcdir=$ac_top_build_prefix$srcdir
1655 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
5464f5a1 1656esac
81ecdfbb
RW
1657ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1658
1659 cd "$ac_dir" || { ac_status=$?; continue; }
1660 # Check for guested configure.
1661 if test -f "$ac_srcdir/configure.gnu"; then
1662 echo &&
1663 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1664 elif test -f "$ac_srcdir/configure"; then
1665 echo &&
1666 $SHELL "$ac_srcdir/configure" --help=recursive
5464f5a1 1667 else
81ecdfbb
RW
1668 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1669 fi || ac_status=$?
1670 cd "$ac_pwd" || { ac_status=$?; break; }
5464f5a1 1671 done
6be7c12c
AO
1672fi
1673
81ecdfbb 1674test -n "$ac_init_help" && exit $ac_status
5464f5a1
NN
1675if $ac_init_version; then
1676 cat <<\_ACEOF
81ecdfbb
RW
1677configure
1678generated by GNU Autoconf 2.64
6be7c12c 1679
81ecdfbb 1680Copyright (C) 2009 Free Software Foundation, Inc.
5464f5a1
NN
1681This configure script is free software; the Free Software Foundation
1682gives unlimited permission to copy, distribute and modify it.
1683_ACEOF
81ecdfbb 1684 exit
5464f5a1 1685fi
6be7c12c 1686
81ecdfbb
RW
1687## ------------------------ ##
1688## Autoconf initialization. ##
1689## ------------------------ ##
6be7c12c 1690
81ecdfbb
RW
1691# ac_fn_c_try_compile LINENO
1692# --------------------------
1693# Try to compile conftest.$ac_ext, and return whether this succeeded.
1694ac_fn_c_try_compile ()
5464f5a1 1695{
81ecdfbb
RW
1696 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1697 rm -f conftest.$ac_objext
1698 if { { ac_try="$ac_compile"
1699case "(($ac_try" in
1700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1701 *) ac_try_echo=$ac_try;;
1702esac
1703eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1704$as_echo "$ac_try_echo"; } >&5
1705 (eval "$ac_compile") 2>conftest.err
1706 ac_status=$?
1707 if test -s conftest.err; then
1708 grep -v '^ *+' conftest.err >conftest.er1
1709 cat conftest.er1 >&5
1710 mv -f conftest.er1 conftest.err
1711 fi
1712 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1713 test $ac_status = 0; } && {
1714 test -z "$ac_c_werror_flag" ||
1715 test ! -s conftest.err
1716 } && test -s conftest.$ac_objext; then :
1717 ac_retval=0
1718else
1719 $as_echo "$as_me: failed program was:" >&5
1720sed 's/^/| /' conftest.$ac_ext >&5
5464f5a1 1721
81ecdfbb
RW
1722 ac_retval=1
1723fi
1724 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1725 return $ac_retval
5464f5a1 1726
81ecdfbb 1727} # ac_fn_c_try_compile
5464f5a1 1728
81ecdfbb
RW
1729# ac_fn_c_try_link LINENO
1730# -----------------------
1731# Try to link conftest.$ac_ext, and return whether this succeeded.
1732ac_fn_c_try_link ()
1733{
1734 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1735 rm -f conftest.$ac_objext conftest$ac_exeext
1736 if { { ac_try="$ac_link"
1737case "(($ac_try" in
1738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1739 *) ac_try_echo=$ac_try;;
1740esac
1741eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1742$as_echo "$ac_try_echo"; } >&5
1743 (eval "$ac_link") 2>conftest.err
1744 ac_status=$?
1745 if test -s conftest.err; then
1746 grep -v '^ *+' conftest.err >conftest.er1
1747 cat conftest.er1 >&5
1748 mv -f conftest.er1 conftest.err
1749 fi
1750 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1751 test $ac_status = 0; } && {
1752 test -z "$ac_c_werror_flag" ||
1753 test ! -s conftest.err
1754 } && test -s conftest$ac_exeext && {
1755 test "$cross_compiling" = yes ||
1756 $as_test_x conftest$ac_exeext
1757 }; then :
1758 ac_retval=0
1759else
1760 $as_echo "$as_me: failed program was:" >&5
1761sed 's/^/| /' conftest.$ac_ext >&5
5464f5a1 1762
81ecdfbb
RW
1763 ac_retval=1
1764fi
1765 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1766 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1767 # interfere with the next link command; also delete a directory that is
1768 # left behind by Apple's compiler. We do this before executing the actions.
1769 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1770 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1771 return $ac_retval
6be7c12c 1772
81ecdfbb 1773} # ac_fn_c_try_link
66e25bab 1774
81ecdfbb
RW
1775# ac_fn_c_try_cpp LINENO
1776# ----------------------
1777# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1778ac_fn_c_try_cpp ()
1779{
1780 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1781 if { { ac_try="$ac_cpp conftest.$ac_ext"
1782case "(($ac_try" in
1783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1784 *) ac_try_echo=$ac_try;;
1785esac
1786eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1787$as_echo "$ac_try_echo"; } >&5
1788 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1789 ac_status=$?
1790 if test -s conftest.err; then
1791 grep -v '^ *+' conftest.err >conftest.er1
1792 cat conftest.er1 >&5
1793 mv -f conftest.er1 conftest.err
1794 fi
1795 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1796 test $ac_status = 0; } >/dev/null && {
1797 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1798 test ! -s conftest.err
1799 }; then :
1800 ac_retval=0
1801else
1802 $as_echo "$as_me: failed program was:" >&5
1803sed 's/^/| /' conftest.$ac_ext >&5
b3baf5d0 1804
81ecdfbb
RW
1805 ac_retval=1
1806fi
1807 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1808 return $ac_retval
6be7c12c 1809
81ecdfbb 1810} # ac_fn_c_try_cpp
252b5132 1811
81ecdfbb
RW
1812# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1813# -------------------------------------------------------
1814# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1815# the include files in INCLUDES and setting the cache variable VAR
1816# accordingly.
1817ac_fn_c_check_header_mongrel ()
1818{
1819 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1820 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1822$as_echo_n "checking for $2... " >&6; }
1823if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1824 $as_echo_n "(cached) " >&6
1825fi
1826eval ac_res=\$$3
1827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1828$as_echo "$ac_res" >&6; }
1829else
1830 # Is the header compilable?
1831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1832$as_echo_n "checking $2 usability... " >&6; }
1833cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1834/* end confdefs.h. */
1835$4
1836#include <$2>
5464f5a1 1837_ACEOF
81ecdfbb
RW
1838if ac_fn_c_try_compile "$LINENO"; then :
1839 ac_header_compiler=yes
1840else
1841 ac_header_compiler=no
1842fi
1843rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1844{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1845$as_echo "$ac_header_compiler" >&6; }
c5d1701e 1846
81ecdfbb
RW
1847# Is the header present?
1848{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1849$as_echo_n "checking $2 presence... " >&6; }
1850cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1851/* end confdefs.h. */
1852#include <$2>
1853_ACEOF
1854if ac_fn_c_try_cpp "$LINENO"; then :
1855 ac_header_preproc=yes
1856else
1857 ac_header_preproc=no
1858fi
1859rm -f conftest.err conftest.$ac_ext
1860{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1861$as_echo "$ac_header_preproc" >&6; }
6be7c12c 1862
81ecdfbb
RW
1863# So? What about this header?
1864case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1865 yes:no: )
1866 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1867$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1868 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1869$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1870 ;;
1871 no:yes:* )
1872 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1873$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1874 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1875$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1876 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1877$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1878 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1879$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1880 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1881$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1882 ;;
1883esac
1884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1885$as_echo_n "checking for $2... " >&6; }
1886if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1887 $as_echo_n "(cached) " >&6
1888else
1889 eval "$3=\$ac_header_compiler"
1890fi
1891eval ac_res=\$$3
1892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1893$as_echo "$ac_res" >&6; }
1894fi
1895 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
5464f5a1 1896
81ecdfbb 1897} # ac_fn_c_check_header_mongrel
5464f5a1 1898
81ecdfbb
RW
1899# ac_fn_c_try_run LINENO
1900# ----------------------
1901# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1902# that executables *can* be run.
1903ac_fn_c_try_run ()
5464f5a1 1904{
81ecdfbb
RW
1905 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1906 if { { ac_try="$ac_link"
1907case "(($ac_try" in
1908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1909 *) ac_try_echo=$ac_try;;
1910esac
1911eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1912$as_echo "$ac_try_echo"; } >&5
1913 (eval "$ac_link") 2>&5
1914 ac_status=$?
1915 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1916 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1917 { { case "(($ac_try" in
1918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1919 *) ac_try_echo=$ac_try;;
1920esac
1921eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1922$as_echo "$ac_try_echo"; } >&5
1923 (eval "$ac_try") 2>&5
1924 ac_status=$?
1925 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1926 test $ac_status = 0; }; }; then :
1927 ac_retval=0
1928else
1929 $as_echo "$as_me: program exited with status $ac_status" >&5
1930 $as_echo "$as_me: failed program was:" >&5
1931sed 's/^/| /' conftest.$ac_ext >&5
5464f5a1 1932
81ecdfbb
RW
1933 ac_retval=$ac_status
1934fi
1935 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1936 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1937 return $ac_retval
5464f5a1 1938
81ecdfbb 1939} # ac_fn_c_try_run
5464f5a1 1940
81ecdfbb
RW
1941# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1942# -------------------------------------------------------
1943# Tests whether HEADER exists and can be compiled using the include files in
1944# INCLUDES, setting the cache variable VAR accordingly.
1945ac_fn_c_check_header_compile ()
1946{
1947 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1949$as_echo_n "checking for $2... " >&6; }
1950if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1951 $as_echo_n "(cached) " >&6
1952else
1953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1954/* end confdefs.h. */
1955$4
1956#include <$2>
1957_ACEOF
1958if ac_fn_c_try_compile "$LINENO"; then :
1959 eval "$3=yes"
1960else
1961 eval "$3=no"
1962fi
1963rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1964fi
1965eval ac_res=\$$3
1966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1967$as_echo "$ac_res" >&6; }
1968 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
5464f5a1 1969
81ecdfbb 1970} # ac_fn_c_check_header_compile
5464f5a1 1971
81ecdfbb
RW
1972# ac_fn_c_check_func LINENO FUNC VAR
1973# ----------------------------------
1974# Tests whether FUNC exists, setting the cache variable VAR accordingly
1975ac_fn_c_check_func ()
1976{
1977 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1979$as_echo_n "checking for $2... " >&6; }
1980if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1981 $as_echo_n "(cached) " >&6
1982else
1983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1984/* end confdefs.h. */
1985/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1986 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1987#define $2 innocuous_$2
5464f5a1 1988
81ecdfbb
RW
1989/* System header to define __stub macros and hopefully few prototypes,
1990 which can conflict with char $2 (); below.
1991 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1992 <limits.h> exists even on freestanding compilers. */
5464f5a1 1993
81ecdfbb
RW
1994#ifdef __STDC__
1995# include <limits.h>
1996#else
1997# include <assert.h>
1998#endif
5464f5a1 1999
81ecdfbb 2000#undef $2
5464f5a1 2001
81ecdfbb
RW
2002/* Override any GCC internal prototype to avoid an error.
2003 Use char because int might match the return type of a GCC
2004 builtin and then its argument prototype would still apply. */
2005#ifdef __cplusplus
2006extern "C"
2007#endif
2008char $2 ();
2009/* The GNU C library defines this for functions which it implements
2010 to always fail with ENOSYS. Some functions are actually named
2011 something starting with __ and the normal name is an alias. */
2012#if defined __stub_$2 || defined __stub___$2
2013choke me
2014#endif
5464f5a1 2015
81ecdfbb
RW
2016int
2017main ()
2018{
2019return $2 ();
2020 ;
2021 return 0;
2022}
5464f5a1 2023_ACEOF
81ecdfbb
RW
2024if ac_fn_c_try_link "$LINENO"; then :
2025 eval "$3=yes"
2026else
2027 eval "$3=no"
2028fi
2029rm -f core conftest.err conftest.$ac_objext \
2030 conftest$ac_exeext conftest.$ac_ext
2031fi
2032eval ac_res=\$$3
2033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2034$as_echo "$ac_res" >&6; }
2035 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
5464f5a1 2036
81ecdfbb 2037} # ac_fn_c_check_func
5464f5a1 2038
81ecdfbb
RW
2039# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2040# --------------------------------------------
2041# Tries to find the compile-time value of EXPR in a program that includes
2042# INCLUDES, setting VAR accordingly. Returns whether the value could be
2043# computed
2044ac_fn_c_compute_int ()
2045{
2046 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2047 if test "$cross_compiling" = yes; then
2048 # Depending upon the size, compute the lo and hi bounds.
2049cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2050/* end confdefs.h. */
2051$4
2052int
2053main ()
2054{
2055static int test_array [1 - 2 * !(($2) >= 0)];
2056test_array [0] = 0
5464f5a1 2057
81ecdfbb
RW
2058 ;
2059 return 0;
2060}
5464f5a1 2061_ACEOF
81ecdfbb
RW
2062if ac_fn_c_try_compile "$LINENO"; then :
2063 ac_lo=0 ac_mid=0
2064 while :; do
2065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2066/* end confdefs.h. */
2067$4
2068int
2069main ()
2070{
2071static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2072test_array [0] = 0
5464f5a1 2073
81ecdfbb
RW
2074 ;
2075 return 0;
2076}
2077_ACEOF
2078if ac_fn_c_try_compile "$LINENO"; then :
2079 ac_hi=$ac_mid; break
5464f5a1 2080else
81ecdfbb
RW
2081 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2082 if test $ac_lo -le $ac_mid; then
2083 ac_lo= ac_hi=
2084 break
2085 fi
2086 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
5464f5a1 2087fi
81ecdfbb
RW
2088rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2089 done
2090else
2091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2092/* end confdefs.h. */
2093$4
2094int
2095main ()
2096{
2097static int test_array [1 - 2 * !(($2) < 0)];
2098test_array [0] = 0
5464f5a1 2099
81ecdfbb
RW
2100 ;
2101 return 0;
2102}
2103_ACEOF
2104if ac_fn_c_try_compile "$LINENO"; then :
2105 ac_hi=-1 ac_mid=-1
2106 while :; do
2107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2108/* end confdefs.h. */
2109$4
2110int
2111main ()
2112{
2113static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2114test_array [0] = 0
5464f5a1 2115
81ecdfbb
RW
2116 ;
2117 return 0;
2118}
2119_ACEOF
2120if ac_fn_c_try_compile "$LINENO"; then :
2121 ac_lo=$ac_mid; break
2122else
2123 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2124 if test $ac_mid -le $ac_hi; then
2125 ac_lo= ac_hi=
2126 break
2127 fi
2128 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2129fi
2130rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2131 done
2132else
2133 ac_lo= ac_hi=
2134fi
2135rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2136fi
2137rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2138# Binary search between lo and hi bounds.
2139while test "x$ac_lo" != "x$ac_hi"; do
2140 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2142/* end confdefs.h. */
2143$4
2144int
2145main ()
2146{
2147static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2148test_array [0] = 0
5464f5a1 2149
81ecdfbb
RW
2150 ;
2151 return 0;
2152}
2153_ACEOF
2154if ac_fn_c_try_compile "$LINENO"; then :
2155 ac_hi=$ac_mid
2156else
2157 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2158fi
2159rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2160done
2161case $ac_lo in #((
2162?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2163'') ac_retval=1 ;;
2164esac
2165 else
2166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2167/* end confdefs.h. */
2168$4
2169static long int longval () { return $2; }
2170static unsigned long int ulongval () { return $2; }
2171#include <stdio.h>
2172#include <stdlib.h>
2173int
2174main ()
2175{
5464f5a1 2176
81ecdfbb
RW
2177 FILE *f = fopen ("conftest.val", "w");
2178 if (! f)
2179 return 1;
2180 if (($2) < 0)
2181 {
2182 long int i = longval ();
2183 if (i != ($2))
2184 return 1;
2185 fprintf (f, "%ld", i);
2186 }
2187 else
2188 {
2189 unsigned long int i = ulongval ();
2190 if (i != ($2))
2191 return 1;
2192 fprintf (f, "%lu", i);
2193 }
2194 /* Do not output a trailing newline, as this causes \r\n confusion
2195 on some platforms. */
2196 return ferror (f) || fclose (f) != 0;
5464f5a1 2197
81ecdfbb
RW
2198 ;
2199 return 0;
2200}
2201_ACEOF
2202if ac_fn_c_try_run "$LINENO"; then :
2203 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2204else
2205 ac_retval=1
2206fi
2207rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2208 conftest.$ac_objext conftest.beam conftest.$ac_ext
2209rm -f conftest.val
7357c5b6 2210
81ecdfbb
RW
2211 fi
2212 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2213 return $ac_retval
7357c5b6 2214
81ecdfbb 2215} # ac_fn_c_compute_int
7357c5b6 2216
81ecdfbb
RW
2217# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2218# -------------------------------------------
2219# Tests whether TYPE exists after having included INCLUDES, setting cache
2220# variable VAR accordingly.
2221ac_fn_c_check_type ()
2222{
2223 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2225$as_echo_n "checking for $2... " >&6; }
2226if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2227 $as_echo_n "(cached) " >&6
2228else
2229 eval "$3=no"
2230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2231/* end confdefs.h. */
2232$4
2233int
2234main ()
2235{
2236if (sizeof ($2))
2237 return 0;
2238 ;
2239 return 0;
2240}
2241_ACEOF
2242if ac_fn_c_try_compile "$LINENO"; then :
2243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2244/* end confdefs.h. */
2245$4
2246int
2247main ()
2248{
2249if (sizeof (($2)))
2250 return 0;
2251 ;
2252 return 0;
2253}
2254_ACEOF
2255if ac_fn_c_try_compile "$LINENO"; then :
5464f5a1 2256
81ecdfbb
RW
2257else
2258 eval "$3=yes"
2259fi
2260rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2261fi
2262rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2263fi
2264eval ac_res=\$$3
2265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2266$as_echo "$ac_res" >&6; }
2267 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
5464f5a1 2268
81ecdfbb 2269} # ac_fn_c_check_type
5464f5a1 2270
81ecdfbb
RW
2271# ac_fn_c_check_decl LINENO SYMBOL VAR
2272# ------------------------------------
2273# Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2274ac_fn_c_check_decl ()
2275{
2276 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2278$as_echo_n "checking whether $2 is declared... " >&6; }
2279if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2280 $as_echo_n "(cached) " >&6
2281else
2282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2283/* end confdefs.h. */
2284$4
2285int
2286main ()
2287{
2288#ifndef $2
2289 (void) $2;
2290#endif
5464f5a1 2291
81ecdfbb
RW
2292 ;
2293 return 0;
2294}
2295_ACEOF
2296if ac_fn_c_try_compile "$LINENO"; then :
2297 eval "$3=yes"
2298else
2299 eval "$3=no"
5464f5a1 2300fi
81ecdfbb
RW
2301rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2302fi
2303eval ac_res=\$$3
2304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2305$as_echo "$ac_res" >&6; }
2306 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
5464f5a1 2307
81ecdfbb
RW
2308} # ac_fn_c_check_decl
2309cat >config.log <<_ACEOF
2310This file contains any messages produced by compilers while
2311running configure, to aid debugging if configure makes a mistake.
5464f5a1 2312
81ecdfbb
RW
2313It was created by $as_me, which was
2314generated by GNU Autoconf 2.64. Invocation command line was
5464f5a1 2315
81ecdfbb 2316 $ $0 $@
5464f5a1 2317
81ecdfbb
RW
2318_ACEOF
2319exec 5>>config.log
2320{
2321cat <<_ASUNAME
2322## --------- ##
2323## Platform. ##
2324## --------- ##
5464f5a1 2325
81ecdfbb
RW
2326hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2327uname -m = `(uname -m) 2>/dev/null || echo unknown`
2328uname -r = `(uname -r) 2>/dev/null || echo unknown`
2329uname -s = `(uname -s) 2>/dev/null || echo unknown`
2330uname -v = `(uname -v) 2>/dev/null || echo unknown`
5464f5a1 2331
81ecdfbb
RW
2332/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2333/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
5464f5a1 2334
81ecdfbb
RW
2335/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2336/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2337/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2338/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2339/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2340/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2341/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
5464f5a1 2342
81ecdfbb 2343_ASUNAME
5464f5a1 2344
5464f5a1
NN
2345as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2346for as_dir in $PATH
2347do
2348 IFS=$as_save_IFS
2349 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2350 $as_echo "PATH: $as_dir"
2351 done
2352IFS=$as_save_IFS
5464f5a1 2353
81ecdfbb 2354} >&5
5464f5a1 2355
81ecdfbb 2356cat >&5 <<_ACEOF
5464f5a1 2357
5464f5a1 2358
81ecdfbb
RW
2359## ----------- ##
2360## Core tests. ##
2361## ----------- ##
5464f5a1 2362
81ecdfbb
RW
2363_ACEOF
2364
2365
2366# Keep a trace of the command line.
2367# Strip out --no-create and --no-recursion so they do not pile up.
2368# Strip out --silent because we don't want to record it for future runs.
2369# Also quote any args containing shell meta-characters.
2370# Make two passes to allow for proper duplicate-argument suppression.
2371ac_configure_args=
2372ac_configure_args0=
2373ac_configure_args1=
2374ac_must_keep_next=false
2375for ac_pass in 1 2
2376do
2377 for ac_arg
2378 do
2379 case $ac_arg in
2380 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2381 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2382 | -silent | --silent | --silen | --sile | --sil)
2383 continue ;;
2384 *\'*)
2385 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2386 esac
2387 case $ac_pass in
2388 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2389 2)
2390 as_fn_append ac_configure_args1 " '$ac_arg'"
2391 if test $ac_must_keep_next = true; then
2392 ac_must_keep_next=false # Got value, back to normal.
2393 else
2394 case $ac_arg in
2395 *=* | --config-cache | -C | -disable-* | --disable-* \
2396 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2397 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2398 | -with-* | --with-* | -without-* | --without-* | --x)
2399 case "$ac_configure_args0 " in
2400 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2401 esac
2402 ;;
2403 -* ) ac_must_keep_next=true ;;
2404 esac
2405 fi
2406 as_fn_append ac_configure_args " '$ac_arg'"
2407 ;;
2408 esac
2409 done
2410done
2411{ ac_configure_args0=; unset ac_configure_args0;}
2412{ ac_configure_args1=; unset ac_configure_args1;}
2413
2414# When interrupted or exit'd, cleanup temporary files, and complete
2415# config.log. We remove comments because anyway the quotes in there
2416# would cause problems or look ugly.
2417# WARNING: Use '\'' to represent an apostrophe within the trap.
2418# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2419trap 'exit_status=$?
2420 # Save into config.log some information that might help in debugging.
2421 {
2422 echo
2423
2424 cat <<\_ASBOX
2425## ---------------- ##
2426## Cache variables. ##
2427## ---------------- ##
2428_ASBOX
2429 echo
2430 # The following way of writing the cache mishandles newlines in values,
2431(
2432 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2433 eval ac_val=\$$ac_var
2434 case $ac_val in #(
2435 *${as_nl}*)
2436 case $ac_var in #(
2437 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2438$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2439 esac
2440 case $ac_var in #(
2441 _ | IFS | as_nl) ;; #(
2442 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2443 *) { eval $ac_var=; unset $ac_var;} ;;
2444 esac ;;
2445 esac
2446 done
2447 (set) 2>&1 |
2448 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2449 *${as_nl}ac_space=\ *)
2450 sed -n \
2451 "s/'\''/'\''\\\\'\'''\''/g;
2452 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2453 ;; #(
2454 *)
2455 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2456 ;;
2457 esac |
2458 sort
2459)
2460 echo
2461
2462 cat <<\_ASBOX
2463## ----------------- ##
2464## Output variables. ##
2465## ----------------- ##
2466_ASBOX
2467 echo
2468 for ac_var in $ac_subst_vars
2469 do
2470 eval ac_val=\$$ac_var
2471 case $ac_val in
2472 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2473 esac
2474 $as_echo "$ac_var='\''$ac_val'\''"
2475 done | sort
2476 echo
2477
2478 if test -n "$ac_subst_files"; then
2479 cat <<\_ASBOX
2480## ------------------- ##
2481## File substitutions. ##
2482## ------------------- ##
2483_ASBOX
2484 echo
2485 for ac_var in $ac_subst_files
2486 do
2487 eval ac_val=\$$ac_var
2488 case $ac_val in
2489 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2490 esac
2491 $as_echo "$ac_var='\''$ac_val'\''"
2492 done | sort
2493 echo
2494 fi
2495
2496 if test -s confdefs.h; then
2497 cat <<\_ASBOX
2498## ----------- ##
2499## confdefs.h. ##
2500## ----------- ##
2501_ASBOX
2502 echo
2503 cat confdefs.h
2504 echo
2505 fi
2506 test "$ac_signal" != 0 &&
2507 $as_echo "$as_me: caught signal $ac_signal"
2508 $as_echo "$as_me: exit $exit_status"
2509 } >&5
2510 rm -f core *.core core.conftest.* &&
2511 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2512 exit $exit_status
2513' 0
2514for ac_signal in 1 2 13 15; do
2515 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2516done
2517ac_signal=0
2518
2519# confdefs.h avoids OS command line length limits that DEFS can exceed.
2520rm -f -r conftest* confdefs.h
2521
2522$as_echo "/* confdefs.h */" > confdefs.h
2523
2524# Predefined preprocessor variables.
2525
2526cat >>confdefs.h <<_ACEOF
2527#define PACKAGE_NAME "$PACKAGE_NAME"
2528_ACEOF
2529
2530cat >>confdefs.h <<_ACEOF
2531#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2532_ACEOF
2533
2534cat >>confdefs.h <<_ACEOF
2535#define PACKAGE_VERSION "$PACKAGE_VERSION"
2536_ACEOF
2537
2538cat >>confdefs.h <<_ACEOF
2539#define PACKAGE_STRING "$PACKAGE_STRING"
2540_ACEOF
2541
2542cat >>confdefs.h <<_ACEOF
2543#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2544_ACEOF
2545
2546cat >>confdefs.h <<_ACEOF
2547#define PACKAGE_URL "$PACKAGE_URL"
2548_ACEOF
2549
2550
2551# Let the site file select an alternate cache file if it wants to.
2552# Prefer an explicitly selected file to automatically selected ones.
2553ac_site_file1=NONE
2554ac_site_file2=NONE
2555if test -n "$CONFIG_SITE"; then
2556 ac_site_file1=$CONFIG_SITE
2557elif test "x$prefix" != xNONE; then
2558 ac_site_file1=$prefix/share/config.site
2559 ac_site_file2=$prefix/etc/config.site
2560else
2561 ac_site_file1=$ac_default_prefix/share/config.site
2562 ac_site_file2=$ac_default_prefix/etc/config.site
2563fi
2564for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2565do
2566 test "x$ac_site_file" = xNONE && continue
2567 if test -r "$ac_site_file"; then
2568 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2569$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2570 sed 's/^/| /' "$ac_site_file" >&5
2571 . "$ac_site_file"
2572 fi
2573done
2574
2575if test -r "$cache_file"; then
2576 # Some versions of bash will fail to source /dev/null (special
2577 # files actually), so we avoid doing that.
2578 if test -f "$cache_file"; then
2579 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2580$as_echo "$as_me: loading cache $cache_file" >&6;}
2581 case $cache_file in
2582 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2583 *) . "./$cache_file";;
2584 esac
2585 fi
2586else
2587 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2588$as_echo "$as_me: creating cache $cache_file" >&6;}
2589 >$cache_file
2590fi
2591
2592# Check that the precious variables saved in the cache have kept the same
2593# value.
2594ac_cache_corrupted=false
2595for ac_var in $ac_precious_vars; do
2596 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2597 eval ac_new_set=\$ac_env_${ac_var}_set
2598 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2599 eval ac_new_val=\$ac_env_${ac_var}_value
2600 case $ac_old_set,$ac_new_set in
2601 set,)
2602 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2603$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2604 ac_cache_corrupted=: ;;
2605 ,set)
2606 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2607$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2608 ac_cache_corrupted=: ;;
2609 ,);;
2610 *)
2611 if test "x$ac_old_val" != "x$ac_new_val"; then
2612 # differences in whitespace do not lead to failure.
2613 ac_old_val_w=`echo x $ac_old_val`
2614 ac_new_val_w=`echo x $ac_new_val`
2615 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2616 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2617$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2618 ac_cache_corrupted=:
2619 else
2620 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2621$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2622 eval $ac_var=\$ac_old_val
2623 fi
2624 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2625$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2626 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2627$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2628 fi;;
2629 esac
2630 # Pass precious variables to config.status.
2631 if test "$ac_new_set" = set; then
2632 case $ac_new_val in
2633 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2634 *) ac_arg=$ac_var=$ac_new_val ;;
2635 esac
2636 case " $ac_configure_args " in
2637 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2638 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2639 esac
5464f5a1
NN
2640 fi
2641done
81ecdfbb
RW
2642if $ac_cache_corrupted; then
2643 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2644$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2645 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2646$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2647 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2648fi
2649## -------------------- ##
2650## Main body of script. ##
2651## -------------------- ##
2652
2653ac_ext=c
2654ac_cpp='$CPP $CPPFLAGS'
2655ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2656ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2657ac_compiler_gnu=$ac_cv_c_compiler_gnu
2658
2659
2660
2661
2662
2663
2664
2665ac_aux_dir=
2666for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2667 for ac_t in install-sh install.sh shtool; do
2668 if test -f "$ac_dir/$ac_t"; then
2669 ac_aux_dir=$ac_dir
2670 ac_install_sh="$ac_aux_dir/$ac_t -c"
2671 break 2
2672 fi
2673 done
5464f5a1 2674done
81ecdfbb
RW
2675if test -z "$ac_aux_dir"; then
2676 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2677fi
2678
2679# These three variables are undocumented and unsupported,
2680# and are intended to be withdrawn in a future Autoconf release.
2681# They can cause serious problems if a builder's source tree is in a directory
2682# whose full name contains unusual characters.
2683ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2684ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2685ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2686
2687
2688# Make sure we can run config.sub.
2689$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2690 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2691
2692{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2693$as_echo_n "checking build system type... " >&6; }
2694if test "${ac_cv_build+set}" = set; then :
2695 $as_echo_n "(cached) " >&6
2696else
2697 ac_build_alias=$build_alias
2698test "x$ac_build_alias" = x &&
2699 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2700test "x$ac_build_alias" = x &&
2701 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2702ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2703 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2704
2705fi
2706{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2707$as_echo "$ac_cv_build" >&6; }
2708case $ac_cv_build in
2709*-*-*) ;;
2710*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2711esac
2712build=$ac_cv_build
2713ac_save_IFS=$IFS; IFS='-'
2714set x $ac_cv_build
2715shift
2716build_cpu=$1
2717build_vendor=$2
2718shift; shift
2719# Remember, the first character of IFS is used to create $*,
2720# except with old shells:
2721build_os=$*
2722IFS=$ac_save_IFS
2723case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5464f5a1 2724
81ecdfbb
RW
2725
2726{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2727$as_echo_n "checking host system type... " >&6; }
2728if test "${ac_cv_host+set}" = set; then :
2729 $as_echo_n "(cached) " >&6
2730else
2731 if test "x$host_alias" = x; then
2732 ac_cv_host=$ac_cv_build
2733else
2734 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2735 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5464f5a1 2736fi
81ecdfbb 2737
5464f5a1 2738fi
81ecdfbb
RW
2739{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2740$as_echo "$ac_cv_host" >&6; }
2741case $ac_cv_host in
2742*-*-*) ;;
2743*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2744esac
2745host=$ac_cv_host
2746ac_save_IFS=$IFS; IFS='-'
2747set x $ac_cv_host
2748shift
2749host_cpu=$1
2750host_vendor=$2
2751shift; shift
2752# Remember, the first character of IFS is used to create $*,
2753# except with old shells:
2754host_os=$*
2755IFS=$ac_save_IFS
2756case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2757
2758
2759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2760$as_echo_n "checking target system type... " >&6; }
2761if test "${ac_cv_target+set}" = set; then :
2762 $as_echo_n "(cached) " >&6
5464f5a1 2763else
81ecdfbb
RW
2764 if test "x$target_alias" = x; then
2765 ac_cv_target=$ac_cv_host
2766else
2767 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2768 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
5464f5a1
NN
2769fi
2770
2771fi
81ecdfbb
RW
2772{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2773$as_echo "$ac_cv_target" >&6; }
2774case $ac_cv_target in
2775*-*-*) ;;
2776*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2777esac
2778target=$ac_cv_target
2779ac_save_IFS=$IFS; IFS='-'
2780set x $ac_cv_target
2781shift
2782target_cpu=$1
2783target_vendor=$2
2784shift; shift
2785# Remember, the first character of IFS is used to create $*,
2786# except with old shells:
2787target_os=$*
2788IFS=$ac_save_IFS
2789case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2790
2791
2792# The aliases save the names the user supplied, while $host etc.
2793# will get canonicalized.
2794test -n "$target_alias" &&
2795 test "$program_prefix$program_suffix$program_transform_name" = \
2796 NONENONEs,x,x, &&
2797 program_prefix=${target_alias}-
2798ac_ext=c
2799ac_cpp='$CPP $CPPFLAGS'
2800ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2801ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2802ac_compiler_gnu=$ac_cv_c_compiler_gnu
2803if test -n "$ac_tool_prefix"; then
2804 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2805set dummy ${ac_tool_prefix}gcc; ac_word=$2
2806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2807$as_echo_n "checking for $ac_word... " >&6; }
2808if test "${ac_cv_prog_CC+set}" = set; then :
2809 $as_echo_n "(cached) " >&6
5464f5a1 2810else
81ecdfbb
RW
2811 if test -n "$CC"; then
2812 ac_cv_prog_CC="$CC" # Let the user override the test.
5464f5a1
NN
2813else
2814as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2815for as_dir in $PATH
2816do
2817 IFS=$as_save_IFS
2818 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2819 for ac_exec_ext in '' $ac_executable_extensions; do
2820 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2821 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2822 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5464f5a1
NN
2823 break 2
2824 fi
2825done
81ecdfbb
RW
2826 done
2827IFS=$as_save_IFS
5464f5a1
NN
2828
2829fi
2830fi
81ecdfbb
RW
2831CC=$ac_cv_prog_CC
2832if test -n "$CC"; then
2833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2834$as_echo "$CC" >&6; }
5464f5a1 2835else
81ecdfbb
RW
2836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2837$as_echo "no" >&6; }
5464f5a1
NN
2838fi
2839
81ecdfbb
RW
2840
2841fi
2842if test -z "$ac_cv_prog_CC"; then
2843 ac_ct_CC=$CC
2844 # Extract the first word of "gcc", so it can be a program name with args.
2845set dummy gcc; ac_word=$2
2846{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2847$as_echo_n "checking for $ac_word... " >&6; }
2848if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2849 $as_echo_n "(cached) " >&6
2850else
2851 if test -n "$ac_ct_CC"; then
2852 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2853else
2854as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2855for as_dir in $PATH
2856do
2857 IFS=$as_save_IFS
2858 test -z "$as_dir" && as_dir=.
2859 for ac_exec_ext in '' $ac_executable_extensions; do
2860 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2861 ac_cv_prog_ac_ct_CC="gcc"
2862 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2863 break 2
2864 fi
2865done
2866 done
2867IFS=$as_save_IFS
2868
2869fi
2870fi
2871ac_ct_CC=$ac_cv_prog_ac_ct_CC
2872if test -n "$ac_ct_CC"; then
2873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2874$as_echo "$ac_ct_CC" >&6; }
2875else
2876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2877$as_echo "no" >&6; }
2878fi
2879
2880 if test "x$ac_ct_CC" = x; then
2881 CC=""
2882 else
2883 case $cross_compiling:$ac_tool_warned in
2884yes:)
2885{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2886$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2887ac_tool_warned=yes ;;
2888esac
2889 CC=$ac_ct_CC
2890 fi
2891else
2892 CC="$ac_cv_prog_CC"
2893fi
2894
2895if test -z "$CC"; then
2896 if test -n "$ac_tool_prefix"; then
2897 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2898set dummy ${ac_tool_prefix}cc; ac_word=$2
2899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2900$as_echo_n "checking for $ac_word... " >&6; }
2901if test "${ac_cv_prog_CC+set}" = set; then :
2902 $as_echo_n "(cached) " >&6
2903else
2904 if test -n "$CC"; then
2905 ac_cv_prog_CC="$CC" # Let the user override the test.
2906else
2907as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2908for as_dir in $PATH
2909do
2910 IFS=$as_save_IFS
2911 test -z "$as_dir" && as_dir=.
2912 for ac_exec_ext in '' $ac_executable_extensions; do
2913 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2914 ac_cv_prog_CC="${ac_tool_prefix}cc"
2915 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2916 break 2
2917 fi
2918done
2919 done
2920IFS=$as_save_IFS
2921
5464f5a1 2922fi
81ecdfbb
RW
2923fi
2924CC=$ac_cv_prog_CC
2925if test -n "$CC"; then
2926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2927$as_echo "$CC" >&6; }
2928else
2929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2930$as_echo "no" >&6; }
2931fi
2932
5464f5a1 2933
81ecdfbb 2934 fi
5464f5a1
NN
2935fi
2936if test -z "$CC"; then
2937 # Extract the first word of "cc", so it can be a program name with args.
2938set dummy cc; ac_word=$2
81ecdfbb
RW
2939{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2940$as_echo_n "checking for $ac_word... " >&6; }
2941if test "${ac_cv_prog_CC+set}" = set; then :
2942 $as_echo_n "(cached) " >&6
5464f5a1
NN
2943else
2944 if test -n "$CC"; then
2945 ac_cv_prog_CC="$CC" # Let the user override the test.
2946else
2947 ac_prog_rejected=no
2948as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2949for as_dir in $PATH
2950do
2951 IFS=$as_save_IFS
2952 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2953 for ac_exec_ext in '' $ac_executable_extensions; do
2954 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5464f5a1
NN
2955 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2956 ac_prog_rejected=yes
2957 continue
2958 fi
2959 ac_cv_prog_CC="cc"
81ecdfbb 2960 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5464f5a1
NN
2961 break 2
2962 fi
2963done
81ecdfbb
RW
2964 done
2965IFS=$as_save_IFS
5464f5a1
NN
2966
2967if test $ac_prog_rejected = yes; then
2968 # We found a bogon in the path, so make sure we never use it.
2969 set dummy $ac_cv_prog_CC
2970 shift
2971 if test $# != 0; then
2972 # We chose a different compiler from the bogus one.
2973 # However, it has the same basename, so the bogon will be chosen
2974 # first if we set CC to just the basename; use the full file name.
2975 shift
2976 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2977 fi
2978fi
2979fi
2980fi
2981CC=$ac_cv_prog_CC
2982if test -n "$CC"; then
81ecdfbb
RW
2983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2984$as_echo "$CC" >&6; }
5464f5a1 2985else
81ecdfbb
RW
2986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2987$as_echo "no" >&6; }
5464f5a1
NN
2988fi
2989
81ecdfbb 2990
5464f5a1
NN
2991fi
2992if test -z "$CC"; then
2993 if test -n "$ac_tool_prefix"; then
81ecdfbb 2994 for ac_prog in cl.exe
5464f5a1
NN
2995 do
2996 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2997set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
2998{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2999$as_echo_n "checking for $ac_word... " >&6; }
3000if test "${ac_cv_prog_CC+set}" = set; then :
3001 $as_echo_n "(cached) " >&6
5464f5a1
NN
3002else
3003 if test -n "$CC"; then
3004 ac_cv_prog_CC="$CC" # Let the user override the test.
3005else
3006as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3007for as_dir in $PATH
3008do
3009 IFS=$as_save_IFS
3010 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3011 for ac_exec_ext in '' $ac_executable_extensions; do
3012 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5464f5a1 3013 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
81ecdfbb 3014 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5464f5a1
NN
3015 break 2
3016 fi
3017done
81ecdfbb
RW
3018 done
3019IFS=$as_save_IFS
5464f5a1
NN
3020
3021fi
3022fi
3023CC=$ac_cv_prog_CC
3024if test -n "$CC"; then
81ecdfbb
RW
3025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3026$as_echo "$CC" >&6; }
5464f5a1 3027else
81ecdfbb
RW
3028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3029$as_echo "no" >&6; }
5464f5a1
NN
3030fi
3031
81ecdfbb 3032
5464f5a1
NN
3033 test -n "$CC" && break
3034 done
3035fi
3036if test -z "$CC"; then
3037 ac_ct_CC=$CC
81ecdfbb 3038 for ac_prog in cl.exe
5464f5a1
NN
3039do
3040 # Extract the first word of "$ac_prog", so it can be a program name with args.
3041set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
3042{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3043$as_echo_n "checking for $ac_word... " >&6; }
3044if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3045 $as_echo_n "(cached) " >&6
5464f5a1
NN
3046else
3047 if test -n "$ac_ct_CC"; then
3048 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3049else
3050as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3051for as_dir in $PATH
3052do
3053 IFS=$as_save_IFS
3054 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3055 for ac_exec_ext in '' $ac_executable_extensions; do
3056 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5464f5a1 3057 ac_cv_prog_ac_ct_CC="$ac_prog"
81ecdfbb 3058 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5464f5a1
NN
3059 break 2
3060 fi
3061done
81ecdfbb
RW
3062 done
3063IFS=$as_save_IFS
5464f5a1
NN
3064
3065fi
3066fi
3067ac_ct_CC=$ac_cv_prog_ac_ct_CC
3068if test -n "$ac_ct_CC"; then
81ecdfbb
RW
3069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3070$as_echo "$ac_ct_CC" >&6; }
5464f5a1 3071else
81ecdfbb
RW
3072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3073$as_echo "no" >&6; }
5464f5a1
NN
3074fi
3075
81ecdfbb 3076
5464f5a1
NN
3077 test -n "$ac_ct_CC" && break
3078done
3079
81ecdfbb
RW
3080 if test "x$ac_ct_CC" = x; then
3081 CC=""
3082 else
3083 case $cross_compiling:$ac_tool_warned in
3084yes:)
3085{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3086$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3087ac_tool_warned=yes ;;
3088esac
3089 CC=$ac_ct_CC
3090 fi
5464f5a1
NN
3091fi
3092
3093fi
3094
3095
81ecdfbb
RW
3096test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3097$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3098as_fn_error "no acceptable C compiler found in \$PATH
3099See \`config.log' for more details." "$LINENO" 5; }
5464f5a1
NN
3100
3101# Provide some information about the compiler.
81ecdfbb
RW
3102$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3103set X $ac_compile
3104ac_compiler=$2
3105for ac_option in --version -v -V -qversion; do
3106 { { ac_try="$ac_compiler $ac_option >&5"
3107case "(($ac_try" in
3108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3109 *) ac_try_echo=$ac_try;;
3110esac
3111eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3112$as_echo "$ac_try_echo"; } >&5
3113 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5464f5a1 3114 ac_status=$?
81ecdfbb
RW
3115 if test -s conftest.err; then
3116 sed '10a\
3117... rest of stderr output deleted ...
3118 10q' conftest.err >conftest.er1
3119 cat conftest.er1 >&5
3120 rm -f conftest.er1 conftest.err
3121 fi
3122 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3123 test $ac_status = 0; }
3124done
5464f5a1 3125
81ecdfbb 3126cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5464f5a1
NN
3127/* end confdefs.h. */
3128
3129int
3130main ()
3131{
3132
3133 ;
3134 return 0;
3135}
3136_ACEOF
3137ac_clean_files_save=$ac_clean_files
81ecdfbb 3138ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
5464f5a1
NN
3139# Try to create an executable without -o first, disregard a.out.
3140# It will help us diagnose broken compilers, and finding out an intuition
3141# of exeext.
81ecdfbb
RW
3142{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3143$as_echo_n "checking for C compiler default output file name... " >&6; }
3144ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3145
3146# The possible output files:
3147ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3148
3149ac_rmfiles=
3150for ac_file in $ac_files
3151do
3152 case $ac_file in
3153 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3154 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3155 esac
3156done
3157rm -f $ac_rmfiles
3158
3159if { { ac_try="$ac_link_default"
3160case "(($ac_try" in
3161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3162 *) ac_try_echo=$ac_try;;
3163esac
3164eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3165$as_echo "$ac_try_echo"; } >&5
3166 (eval "$ac_link_default") 2>&5
3167 ac_status=$?
3168 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3169 test $ac_status = 0; }; then :
3170 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3171# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3172# in a Makefile. We should not override ac_cv_exeext if it was cached,
3173# so that the user can short-circuit this test for compilers unknown to
3174# Autoconf.
3175for ac_file in $ac_files ''
5464f5a1
NN
3176do
3177 test -f "$ac_file" || continue
3178 case $ac_file in
81ecdfbb 3179 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
5464f5a1
NN
3180 ;;
3181 [ab].out )
3182 # We found the default executable, but exeext='' is most
3183 # certainly right.
3184 break;;
3185 *.* )
81ecdfbb
RW
3186 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3187 then :; else
3188 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3189 fi
3190 # We set ac_cv_exeext here because the later test for it is not
3191 # safe: cross compilers may not add the suffix if given an `-o'
3192 # argument, so we may need to know it at that point already.
3193 # Even if this section looks crufty: it has the advantage of
3194 # actually working.
5464f5a1
NN
3195 break;;
3196 * )
3197 break;;
3198 esac
3199done
81ecdfbb
RW
3200test "$ac_cv_exeext" = no && ac_cv_exeext=
3201
5464f5a1 3202else
81ecdfbb
RW
3203 ac_file=''
3204fi
3205{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3206$as_echo "$ac_file" >&6; }
3207if test -z "$ac_file"; then :
3208 $as_echo "$as_me: failed program was:" >&5
5464f5a1
NN
3209sed 's/^/| /' conftest.$ac_ext >&5
3210
81ecdfbb
RW
3211{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3212$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3213{ as_fn_set_status 77
3214as_fn_error "C compiler cannot create executables
3215See \`config.log' for more details." "$LINENO" 5; }; }
5464f5a1 3216fi
5464f5a1 3217ac_exeext=$ac_cv_exeext
5464f5a1 3218
81ecdfbb 3219# Check that the compiler produces executables we can run. If not, either
5464f5a1 3220# the compiler is broken, or we cross compile.
81ecdfbb
RW
3221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3222$as_echo_n "checking whether the C compiler works... " >&6; }
5464f5a1
NN
3223# If not cross compiling, check that we can run a simple program.
3224if test "$cross_compiling" != yes; then
3225 if { ac_try='./$ac_file'
81ecdfbb
RW
3226 { { case "(($ac_try" in
3227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3228 *) ac_try_echo=$ac_try;;
3229esac
3230eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3231$as_echo "$ac_try_echo"; } >&5
3232 (eval "$ac_try") 2>&5
5464f5a1 3233 ac_status=$?
81ecdfbb
RW
3234 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3235 test $ac_status = 0; }; }; then
5464f5a1
NN
3236 cross_compiling=no
3237 else
3238 if test "$cross_compiling" = maybe; then
3239 cross_compiling=yes
3240 else
81ecdfbb
RW
3241 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3242$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3243as_fn_error "cannot run C compiled programs.
5464f5a1 3244If you meant to cross compile, use \`--host'.
81ecdfbb 3245See \`config.log' for more details." "$LINENO" 5; }
5464f5a1
NN
3246 fi
3247 fi
3248fi
81ecdfbb
RW
3249{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3250$as_echo "yes" >&6; }
5464f5a1 3251
81ecdfbb 3252rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
5464f5a1 3253ac_clean_files=$ac_clean_files_save
81ecdfbb 3254# Check that the compiler produces executables we can run. If not, either
5464f5a1 3255# the compiler is broken, or we cross compile.
81ecdfbb
RW
3256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3257$as_echo_n "checking whether we are cross compiling... " >&6; }
3258{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3259$as_echo "$cross_compiling" >&6; }
3260
3261{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3262$as_echo_n "checking for suffix of executables... " >&6; }
3263if { { ac_try="$ac_link"
3264case "(($ac_try" in
3265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3266 *) ac_try_echo=$ac_try;;
3267esac
3268eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3269$as_echo "$ac_try_echo"; } >&5
3270 (eval "$ac_link") 2>&5
5464f5a1 3271 ac_status=$?
81ecdfbb
RW
3272 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3273 test $ac_status = 0; }; then :
5464f5a1
NN
3274 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3275# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3276# work properly (i.e., refer to `conftest.exe'), while it won't with
3277# `rm'.
3278for ac_file in conftest.exe conftest conftest.*; do
3279 test -f "$ac_file" || continue
3280 case $ac_file in
81ecdfbb 3281 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5464f5a1 3282 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5464f5a1
NN
3283 break;;
3284 * ) break;;
3285 esac
3286done
3287else
81ecdfbb
RW
3288 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3289$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3290as_fn_error "cannot compute suffix of executables: cannot compile and link
3291See \`config.log' for more details." "$LINENO" 5; }
5464f5a1 3292fi
5464f5a1 3293rm -f conftest$ac_cv_exeext
81ecdfbb
RW
3294{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3295$as_echo "$ac_cv_exeext" >&6; }
5464f5a1
NN
3296
3297rm -f conftest.$ac_ext
3298EXEEXT=$ac_cv_exeext
3299ac_exeext=$EXEEXT
81ecdfbb
RW
3300{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3301$as_echo_n "checking for suffix of object files... " >&6; }
3302if test "${ac_cv_objext+set}" = set; then :
3303 $as_echo_n "(cached) " >&6
5464f5a1 3304else
81ecdfbb 3305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5464f5a1
NN
3306/* end confdefs.h. */
3307
3308int
3309main ()
3310{
3311
3312 ;
3313 return 0;
3314}
3315_ACEOF
3316rm -f conftest.o conftest.obj
81ecdfbb
RW
3317if { { ac_try="$ac_compile"
3318case "(($ac_try" in
3319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3320 *) ac_try_echo=$ac_try;;
3321esac
3322eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3323$as_echo "$ac_try_echo"; } >&5
3324 (eval "$ac_compile") 2>&5
3325 ac_status=$?
3326 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3327 test $ac_status = 0; }; then :
3328 for ac_file in conftest.o conftest.obj conftest.*; do
3329 test -f "$ac_file" || continue;
5464f5a1 3330 case $ac_file in
81ecdfbb 3331 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5464f5a1
NN
3332 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3333 break;;
3334 esac
3335done
3336else
81ecdfbb 3337 $as_echo "$as_me: failed program was:" >&5
5464f5a1
NN
3338sed 's/^/| /' conftest.$ac_ext >&5
3339
81ecdfbb
RW
3340{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3341$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3342as_fn_error "cannot compute suffix of object files: cannot compile
3343See \`config.log' for more details." "$LINENO" 5; }
5464f5a1 3344fi
5464f5a1
NN
3345rm -f conftest.$ac_cv_objext conftest.$ac_ext
3346fi
81ecdfbb
RW
3347{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3348$as_echo "$ac_cv_objext" >&6; }
5464f5a1
NN
3349OBJEXT=$ac_cv_objext
3350ac_objext=$OBJEXT
81ecdfbb
RW
3351{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3352$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3353if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3354 $as_echo_n "(cached) " >&6
5464f5a1 3355else
81ecdfbb 3356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5464f5a1
NN
3357/* end confdefs.h. */
3358
3359int
3360main ()
3361{
3362#ifndef __GNUC__
3363 choke me
3364#endif
3365
3366 ;
3367 return 0;
3368}
3369_ACEOF
81ecdfbb 3370if ac_fn_c_try_compile "$LINENO"; then :
5464f5a1
NN
3371 ac_compiler_gnu=yes
3372else
81ecdfbb 3373 ac_compiler_gnu=no
5464f5a1 3374fi
81ecdfbb 3375rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5464f5a1
NN
3376ac_cv_c_compiler_gnu=$ac_compiler_gnu
3377
3378fi
81ecdfbb
RW
3379{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3380$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3381if test $ac_compiler_gnu = yes; then
3382 GCC=yes
3383else
3384 GCC=
3385fi
5464f5a1
NN
3386ac_test_CFLAGS=${CFLAGS+set}
3387ac_save_CFLAGS=$CFLAGS
81ecdfbb
RW
3388{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3389$as_echo_n "checking whether $CC accepts -g... " >&6; }
3390if test "${ac_cv_prog_cc_g+set}" = set; then :
3391 $as_echo_n "(cached) " >&6
3392else
3393 ac_save_c_werror_flag=$ac_c_werror_flag
3394 ac_c_werror_flag=yes
3395 ac_cv_prog_cc_g=no
3396 CFLAGS="-g"
3397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5464f5a1
NN
3398/* end confdefs.h. */
3399
3400int
3401main ()
3402{
3403
3404 ;
3405 return 0;
3406}
3407_ACEOF
81ecdfbb 3408if ac_fn_c_try_compile "$LINENO"; then :
5464f5a1
NN
3409 ac_cv_prog_cc_g=yes
3410else
81ecdfbb
RW
3411 CFLAGS=""
3412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3413/* end confdefs.h. */
5464f5a1 3414
81ecdfbb
RW
3415int
3416main ()
3417{
3418
3419 ;
3420 return 0;
3421}
3422_ACEOF
3423if ac_fn_c_try_compile "$LINENO"; then :
3424
3425else
3426 ac_c_werror_flag=$ac_save_c_werror_flag
3427 CFLAGS="-g"
3428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3429/* end confdefs.h. */
3430
3431int
3432main ()
3433{
3434
3435 ;
3436 return 0;
3437}
3438_ACEOF
3439if ac_fn_c_try_compile "$LINENO"; then :
3440 ac_cv_prog_cc_g=yes
3441fi
3442rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5464f5a1 3443fi
81ecdfbb 3444rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5464f5a1 3445fi
81ecdfbb
RW
3446rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3447 ac_c_werror_flag=$ac_save_c_werror_flag
3448fi
3449{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3450$as_echo "$ac_cv_prog_cc_g" >&6; }
5464f5a1
NN
3451if test "$ac_test_CFLAGS" = set; then
3452 CFLAGS=$ac_save_CFLAGS
3453elif test $ac_cv_prog_cc_g = yes; then
3454 if test "$GCC" = yes; then
3455 CFLAGS="-g -O2"
3456 else
3457 CFLAGS="-g"
3458 fi
3459else
3460 if test "$GCC" = yes; then
3461 CFLAGS="-O2"
3462 else
3463 CFLAGS=
3464 fi
3465fi
81ecdfbb
RW
3466{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3467$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3468if test "${ac_cv_prog_cc_c89+set}" = set; then :
3469 $as_echo_n "(cached) " >&6
5464f5a1 3470else
81ecdfbb 3471 ac_cv_prog_cc_c89=no
5464f5a1 3472ac_save_CC=$CC
81ecdfbb 3473cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5464f5a1
NN
3474/* end confdefs.h. */
3475#include <stdarg.h>
3476#include <stdio.h>
3477#include <sys/types.h>
3478#include <sys/stat.h>
3479/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3480struct buf { int x; };
3481FILE * (*rcsopen) (struct buf *, struct stat *, int);
3482static char *e (p, i)
3483 char **p;
3484 int i;
3485{
3486 return p[i];
3487}
3488static char *f (char * (*g) (char **, int), char **p, ...)
3489{
3490 char *s;
3491 va_list v;
3492 va_start (v,p);
3493 s = g (p, va_arg (v,int));
3494 va_end (v);
3495 return s;
3496}
3497
3498/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3499 function prototypes and stuff, but not '\xHH' hex character constants.
3500 These don't provoke an error unfortunately, instead are silently treated
81ecdfbb 3501 as 'x'. The following induces an error, until -std is added to get
5464f5a1
NN
3502 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3503 array size at least. It's necessary to write '\x00'==0 to get something
81ecdfbb 3504 that's true only with -std. */
5464f5a1
NN
3505int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3506
81ecdfbb
RW
3507/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3508 inside strings and character constants. */
3509#define FOO(x) 'x'
3510int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3511
5464f5a1
NN
3512int test (int i, double x);
3513struct s1 {int (*f) (int a);};
3514struct s2 {int (*f) (double a);};
3515int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3516int argc;
3517char **argv;
3518int
3519main ()
3520{
3521return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3522 ;
3523 return 0;
3524}
3525_ACEOF
81ecdfbb
RW
3526for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3527 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5464f5a1
NN
3528do
3529 CC="$ac_save_CC $ac_arg"
81ecdfbb
RW
3530 if ac_fn_c_try_compile "$LINENO"; then :
3531 ac_cv_prog_cc_c89=$ac_arg
5464f5a1 3532fi
81ecdfbb
RW
3533rm -f core conftest.err conftest.$ac_objext
3534 test "x$ac_cv_prog_cc_c89" != "xno" && break
5464f5a1 3535done
81ecdfbb 3536rm -f conftest.$ac_ext
5464f5a1
NN
3537CC=$ac_save_CC
3538
3539fi
81ecdfbb
RW
3540# AC_CACHE_VAL
3541case "x$ac_cv_prog_cc_c89" in
3542 x)
3543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3544$as_echo "none needed" >&6; } ;;
3545 xno)
3546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3547$as_echo "unsupported" >&6; } ;;
5464f5a1 3548 *)
81ecdfbb
RW
3549 CC="$CC $ac_cv_prog_cc_c89"
3550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3551$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5464f5a1 3552esac
81ecdfbb 3553if test "x$ac_cv_prog_cc_c89" != xno; then :
5464f5a1
NN
3554
3555fi
5464f5a1 3556
5464f5a1
NN
3557ac_ext=c
3558ac_cpp='$CPP $CPPFLAGS'
3559ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3560ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3561ac_compiler_gnu=$ac_cv_c_compiler_gnu
3562
3563
81ecdfbb
RW
3564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
3565$as_echo_n "checking for library containing strerror... " >&6; }
3566if test "${ac_cv_search_strerror+set}" = set; then :
3567 $as_echo_n "(cached) " >&6
5464f5a1 3568else
f5385ebf 3569 ac_func_search_save_LIBS=$LIBS
81ecdfbb 3570cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5464f5a1
NN
3571/* end confdefs.h. */
3572
81ecdfbb
RW
3573/* Override any GCC internal prototype to avoid an error.
3574 Use char because int might match the return type of a GCC
3575 builtin and then its argument prototype would still apply. */
5464f5a1
NN
3576#ifdef __cplusplus
3577extern "C"
3578#endif
5464f5a1
NN
3579char strerror ();
3580int
3581main ()
3582{
81ecdfbb 3583return strerror ();
5464f5a1
NN
3584 ;
3585 return 0;
3586}
3587_ACEOF
81ecdfbb
RW
3588for ac_lib in '' cposix; do
3589 if test -z "$ac_lib"; then
3590 ac_res="none required"
3591 else
3592 ac_res=-l$ac_lib
f5385ebf 3593 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
81ecdfbb
RW
3594 fi
3595 if ac_fn_c_try_link "$LINENO"; then :
3596 ac_cv_search_strerror=$ac_res
3597fi
3598rm -f core conftest.err conftest.$ac_objext \
3599 conftest$ac_exeext
3600 if test "${ac_cv_search_strerror+set}" = set; then :
3601 break
3602fi
3603done
3604if test "${ac_cv_search_strerror+set}" = set; then :
f5385ebf 3605
f5385ebf 3606else
81ecdfbb 3607 ac_cv_search_strerror=no
5464f5a1 3608fi
81ecdfbb 3609rm conftest.$ac_ext
f5385ebf
AM
3610LIBS=$ac_func_search_save_LIBS
3611fi
81ecdfbb
RW
3612{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
3613$as_echo "$ac_cv_search_strerror" >&6; }
3614ac_res=$ac_cv_search_strerror
3615if test "$ac_res" != no; then :
3616 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5464f5a1 3617
f5385ebf 3618fi
5464f5a1
NN
3619
3620
81ecdfbb
RW
3621am__api_version='1.11'
3622
5464f5a1
NN
3623# Find a good install program. We prefer a C program (faster),
3624# so one script is as good as another. But avoid the broken or
3625# incompatible versions:
3626# SysV /etc/install, /usr/sbin/install
3627# SunOS /usr/etc/install
3628# IRIX /sbin/install
3629# AIX /bin/install
3630# AmigaOS /C/install, which installs bootblocks on floppy discs
252b5132
RH
3631# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3632# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3633# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5464f5a1 3634# OS/2's system install, which has a completely different semantic
252b5132 3635# ./install, which can be erroneously created by make from ./install.sh.
58c85be7 3636# Reject install programs that cannot install multiple files.
81ecdfbb
RW
3637{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3638$as_echo_n "checking for a BSD-compatible install... " >&6; }
252b5132 3639if test -z "$INSTALL"; then
81ecdfbb
RW
3640if test "${ac_cv_path_install+set}" = set; then :
3641 $as_echo_n "(cached) " >&6
252b5132 3642else
5464f5a1
NN
3643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3644for as_dir in $PATH
3645do
3646 IFS=$as_save_IFS
3647 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3648 # Account for people who put trailing slashes in PATH elements.
3649case $as_dir/ in #((
3650 ./ | .// | /[cC]/* | \
5464f5a1 3651 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
81ecdfbb 3652 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
5464f5a1
NN
3653 /usr/ucb/* ) ;;
3654 *)
3655 # OSF1 and SCO ODT 3.0 have their own names for install.
3656 # Don't use installbsd from OSF since it installs stuff as root
3657 # by default.
3658 for ac_prog in ginstall scoinst install; do
3659 for ac_exec_ext in '' $ac_executable_extensions; do
81ecdfbb 3660 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
252b5132 3661 if test $ac_prog = install &&
5464f5a1 3662 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
252b5132
RH
3663 # AIX install. It has an incompatible calling convention.
3664 :
5464f5a1
NN
3665 elif test $ac_prog = install &&
3666 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3667 # program-specific install script used by HP pwplus--don't use.
3668 :
252b5132 3669 else
58c85be7
RW
3670 rm -rf conftest.one conftest.two conftest.dir
3671 echo one > conftest.one
3672 echo two > conftest.two
3673 mkdir conftest.dir
3674 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3675 test -s conftest.one && test -s conftest.two &&
3676 test -s conftest.dir/conftest.one &&
3677 test -s conftest.dir/conftest.two
3678 then
3679 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3680 break 3
3681 fi
252b5132
RH
3682 fi
3683 fi
3684 done
5464f5a1
NN
3685 done
3686 ;;
3687esac
81ecdfbb
RW
3688
3689 done
3690IFS=$as_save_IFS
5464f5a1 3691
58c85be7 3692rm -rf conftest.one conftest.two conftest.dir
252b5132
RH
3693
3694fi
3695 if test "${ac_cv_path_install+set}" = set; then
5464f5a1 3696 INSTALL=$ac_cv_path_install
252b5132 3697 else
58c85be7
RW
3698 # As a last resort, use the slow shell script. Don't cache a
3699 # value for INSTALL within a source directory, because that will
252b5132 3700 # break other packages using the cache if that directory is
58c85be7 3701 # removed, or if the value is a relative name.
5464f5a1 3702 INSTALL=$ac_install_sh
252b5132
RH
3703 fi
3704fi
81ecdfbb
RW
3705{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3706$as_echo "$INSTALL" >&6; }
252b5132
RH
3707
3708# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3709# It thinks the first close brace ends the variable substitution.
3710test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3711
5464f5a1 3712test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
252b5132
RH
3713
3714test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3715
81ecdfbb
RW
3716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3717$as_echo_n "checking whether build environment is sane... " >&6; }
252b5132
RH
3718# Just in case
3719sleep 1
f5385ebf 3720echo timestamp > conftest.file
81ecdfbb
RW
3721# Reject unsafe characters in $srcdir or the absolute working directory
3722# name. Accept space and tab only in the latter.
3723am_lf='
3724'
3725case `pwd` in
3726 *[\\\"\#\$\&\'\`$am_lf]*)
3727 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3728esac
3729case $srcdir in
3730 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3731 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3732esac
3733
252b5132
RH
3734# Do `set' in a subshell so we don't clobber the current shell's
3735# arguments. Must try -L first in case configure is actually a
3736# symlink; some systems play weird games with the mod time of symlinks
3737# (eg FreeBSD returns the mod time of the symlink's containing
3738# directory).
3739if (
81ecdfbb 3740 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
252b5132
RH
3741 if test "$*" = "X"; then
3742 # -L didn't work.
81ecdfbb 3743 set X `ls -t "$srcdir/configure" conftest.file`
252b5132 3744 fi
f5385ebf
AM
3745 rm -f conftest.file
3746 if test "$*" != "X $srcdir/configure conftest.file" \
3747 && test "$*" != "X conftest.file $srcdir/configure"; then
252b5132
RH
3748
3749 # If neither matched, then we have a broken ls. This can happen
3750 # if, for instance, CONFIG_SHELL is bash and it inherits a
3751 # broken ls alias from the environment. This has actually
3752 # happened. Such a system could not be considered "sane".
81ecdfbb
RW
3753 as_fn_error "ls -t appears to fail. Make sure there is not a broken
3754alias in your environment" "$LINENO" 5
252b5132
RH
3755 fi
3756
f5385ebf 3757 test "$2" = conftest.file
252b5132
RH
3758 )
3759then
3760 # Ok.
3761 :
3762else
81ecdfbb
RW
3763 as_fn_error "newly created file is older than distributed files!
3764Check your system clock" "$LINENO" 5
252b5132 3765fi
81ecdfbb
RW
3766{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3767$as_echo "yes" >&6; }
252b5132 3768test "$program_prefix" != NONE &&
81ecdfbb 3769 program_transform_name="s&^&$program_prefix&;$program_transform_name"
252b5132
RH
3770# Use a double $ so make ignores it.
3771test "$program_suffix" != NONE &&
81ecdfbb
RW
3772 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3773# Double any \ or $.
5464f5a1 3774# By default was `s,x,x', remove it if useless.
81ecdfbb
RW
3775ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3776program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
5464f5a1 3777
f5385ebf
AM
3778# expand $ac_aux_dir to an absolute path
3779am_aux_dir=`cd $ac_aux_dir && pwd`
3780
81ecdfbb
RW
3781if test x"${MISSING+set}" != xset; then
3782 case $am_aux_dir in
3783 *\ * | *\ *)
3784 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3785 *)
3786 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3787 esac
3788fi
f5385ebf
AM
3789# Use eval to expand $SHELL
3790if eval "$MISSING --run true"; then
3791 am_missing_run="$MISSING --run "
3792else
3793 am_missing_run=
81ecdfbb
RW
3794 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3795$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3796fi
3797
3798if test x"${install_sh}" != xset; then
3799 case $am_aux_dir in
3800 *\ * | *\ *)
3801 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3802 *)
3803 install_sh="\${SHELL} $am_aux_dir/install-sh"
3804 esac
3805fi
3806
3807# Installed binaries are usually stripped using `strip' when the user
3808# run `make install-strip'. However `strip' might not be the right
3809# tool to use in cross-compilation environments, therefore Automake
3810# will honor the `STRIP' environment variable to overrule this program.
3811if test "$cross_compiling" != no; then
3812 if test -n "$ac_tool_prefix"; then
3813 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3814set dummy ${ac_tool_prefix}strip; ac_word=$2
3815{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3816$as_echo_n "checking for $ac_word... " >&6; }
3817if test "${ac_cv_prog_STRIP+set}" = set; then :
3818 $as_echo_n "(cached) " >&6
3819else
3820 if test -n "$STRIP"; then
3821 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3822else
3823as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3824for as_dir in $PATH
3825do
3826 IFS=$as_save_IFS
3827 test -z "$as_dir" && as_dir=.
3828 for ac_exec_ext in '' $ac_executable_extensions; do
3829 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3830 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3831 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3832 break 2
3833 fi
3834done
3835 done
3836IFS=$as_save_IFS
3837
3838fi
3839fi
3840STRIP=$ac_cv_prog_STRIP
3841if test -n "$STRIP"; then
3842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3843$as_echo "$STRIP" >&6; }
3844else
3845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3846$as_echo "no" >&6; }
3847fi
3848
3849
3850fi
3851if test -z "$ac_cv_prog_STRIP"; then
3852 ac_ct_STRIP=$STRIP
3853 # Extract the first word of "strip", so it can be a program name with args.
3854set dummy strip; ac_word=$2
3855{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3856$as_echo_n "checking for $ac_word... " >&6; }
3857if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3858 $as_echo_n "(cached) " >&6
3859else
3860 if test -n "$ac_ct_STRIP"; then
3861 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3862else
3863as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3864for as_dir in $PATH
3865do
3866 IFS=$as_save_IFS
3867 test -z "$as_dir" && as_dir=.
3868 for ac_exec_ext in '' $ac_executable_extensions; do
3869 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3870 ac_cv_prog_ac_ct_STRIP="strip"
3871 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3872 break 2
3873 fi
3874done
3875 done
3876IFS=$as_save_IFS
3877
3878fi
3879fi
3880ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3881if test -n "$ac_ct_STRIP"; then
3882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3883$as_echo "$ac_ct_STRIP" >&6; }
3884else
3885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3886$as_echo "no" >&6; }
3887fi
3888
3889 if test "x$ac_ct_STRIP" = x; then
3890 STRIP=":"
3891 else
3892 case $cross_compiling:$ac_tool_warned in
3893yes:)
3894{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3895$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3896ac_tool_warned=yes ;;
3897esac
3898 STRIP=$ac_ct_STRIP
3899 fi
3900else
3901 STRIP="$ac_cv_prog_STRIP"
3902fi
3903
3904fi
3905INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3906
3907{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3908$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3909if test -z "$MKDIR_P"; then
3910 if test "${ac_cv_path_mkdir+set}" = set; then :
3911 $as_echo_n "(cached) " >&6
3912else
3913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3914for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3915do
3916 IFS=$as_save_IFS
3917 test -z "$as_dir" && as_dir=.
3918 for ac_prog in mkdir gmkdir; do
3919 for ac_exec_ext in '' $ac_executable_extensions; do
3920 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3921 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3922 'mkdir (GNU coreutils) '* | \
3923 'mkdir (coreutils) '* | \
3924 'mkdir (fileutils) '4.1*)
3925 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3926 break 3;;
3927 esac
3928 done
3929 done
f5385ebf 3930 done
81ecdfbb
RW
3931IFS=$as_save_IFS
3932
3933fi
3934
3935 if test "${ac_cv_path_mkdir+set}" = set; then
3936 MKDIR_P="$ac_cv_path_mkdir -p"
f5385ebf 3937 else
81ecdfbb
RW
3938 # As a last resort, use the slow shell script. Don't cache a
3939 # value for MKDIR_P within a source directory, because that will
3940 # break other packages using the cache if that directory is
3941 # removed, or if the value is a relative name.
3942 test -d ./--version && rmdir ./--version
3943 MKDIR_P="$ac_install_sh -d"
f5385ebf
AM
3944 fi
3945fi
81ecdfbb
RW
3946{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3947$as_echo "$MKDIR_P" >&6; }
3948
3949mkdir_p="$MKDIR_P"
3950case $mkdir_p in
3951 [\\/$]* | ?:[\\/]*) ;;
3952 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3953esac
f5385ebf
AM
3954
3955for ac_prog in gawk mawk nawk awk
3956do
3957 # Extract the first word of "$ac_prog", so it can be a program name with args.
3958set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
3959{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3960$as_echo_n "checking for $ac_word... " >&6; }
3961if test "${ac_cv_prog_AWK+set}" = set; then :
3962 $as_echo_n "(cached) " >&6
f5385ebf
AM
3963else
3964 if test -n "$AWK"; then
3965 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3966else
3967as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3968for as_dir in $PATH
3969do
3970 IFS=$as_save_IFS
3971 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3972 for ac_exec_ext in '' $ac_executable_extensions; do
3973 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
f5385ebf 3974 ac_cv_prog_AWK="$ac_prog"
81ecdfbb 3975 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
f5385ebf
AM
3976 break 2
3977 fi
3978done
81ecdfbb
RW
3979 done
3980IFS=$as_save_IFS
f5385ebf
AM
3981
3982fi
3983fi
3984AWK=$ac_cv_prog_AWK
3985if test -n "$AWK"; then
81ecdfbb
RW
3986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3987$as_echo "$AWK" >&6; }
f5385ebf 3988else
81ecdfbb
RW
3989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3990$as_echo "no" >&6; }
f5385ebf
AM
3991fi
3992
81ecdfbb 3993
f5385ebf
AM
3994 test -n "$AWK" && break
3995done
3996
81ecdfbb
RW
3997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3998$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3999set x ${MAKE-make}
4000ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4001if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
4002 $as_echo_n "(cached) " >&6
5464f5a1
NN
4003else
4004 cat >conftest.make <<\_ACEOF
81ecdfbb 4005SHELL = /bin/sh
252b5132 4006all:
81ecdfbb 4007 @echo '@@@%%%=$(MAKE)=@@@%%%'
5464f5a1 4008_ACEOF
252b5132 4009# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
81ecdfbb
RW
4010case `${MAKE-make} -f conftest.make 2>/dev/null` in
4011 *@@@%%%=?*=@@@%%%*)
4012 eval ac_cv_prog_make_${ac_make}_set=yes;;
4013 *)
4014 eval ac_cv_prog_make_${ac_make}_set=no;;
4015esac
5464f5a1 4016rm -f conftest.make
252b5132 4017fi
81ecdfbb
RW
4018if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4020$as_echo "yes" >&6; }
252b5132
RH
4021 SET_MAKE=
4022else
81ecdfbb
RW
4023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4024$as_echo "no" >&6; }
252b5132
RH
4025 SET_MAKE="MAKE=${MAKE-make}"
4026fi
4027
f5385ebf
AM
4028rm -rf .tst 2>/dev/null
4029mkdir .tst 2>/dev/null
4030if test -d .tst; then
4031 am__leading_dot=.
4032else
4033 am__leading_dot=_
4034fi
4035rmdir .tst 2>/dev/null
4036
4037DEPDIR="${am__leading_dot}deps"
4038
81ecdfbb 4039ac_config_commands="$ac_config_commands depfiles"
f5385ebf
AM
4040
4041
4042am_make=${MAKE-make}
4043cat > confinc << 'END'
4044am__doit:
81ecdfbb 4045 @echo this is the am__doit target
f5385ebf
AM
4046.PHONY: am__doit
4047END
4048# If we don't find an include directive, just comment out the code.
81ecdfbb
RW
4049{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4050$as_echo_n "checking for style of include used by $am_make... " >&6; }
f5385ebf
AM
4051am__include="#"
4052am__quote=
4053_am_result=none
4054# First try GNU make style include.
4055echo "include confinc" > confmf
81ecdfbb
RW
4056# Ignore all kinds of additional output from `make'.
4057case `$am_make -s -f confmf 2> /dev/null` in #(
4058*the\ am__doit\ target*)
4059 am__include=include
4060 am__quote=
4061 _am_result=GNU
4062 ;;
4063esac
f5385ebf
AM
4064# Now try BSD make style include.
4065if test "$am__include" = "#"; then
4066 echo '.include "confinc"' > confmf
81ecdfbb
RW
4067 case `$am_make -s -f confmf 2> /dev/null` in #(
4068 *the\ am__doit\ target*)
4069 am__include=.include
4070 am__quote="\""
4071 _am_result=BSD
4072 ;;
4073 esac
f5385ebf
AM
4074fi
4075
4076
81ecdfbb
RW
4077{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4078$as_echo "$_am_result" >&6; }
f5385ebf
AM
4079rm -f confinc confmf
4080
81ecdfbb
RW
4081# Check whether --enable-dependency-tracking was given.
4082if test "${enable_dependency_tracking+set}" = set; then :
4083 enableval=$enable_dependency_tracking;
4084fi
f5385ebf 4085
f5385ebf
AM
4086if test "x$enable_dependency_tracking" != xno; then
4087 am_depcomp="$ac_aux_dir/depcomp"
4088 AMDEPBACKSLASH='\'
4089fi
81ecdfbb 4090 if test "x$enable_dependency_tracking" != xno; then
f5385ebf
AM
4091 AMDEP_TRUE=
4092 AMDEP_FALSE='#'
4093else
4094 AMDEP_TRUE='#'
4095 AMDEP_FALSE=
4096fi
6be7c12c 4097
252b5132 4098
81ecdfbb
RW
4099if test "`cd $srcdir && pwd`" != "`pwd`"; then
4100 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4101 # is not polluted with repeated "-I."
4102 am__isrc=' -I$(srcdir)'
4103 # test to see if srcdir already configured
4104 if test -f $srcdir/config.status; then
4105 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4106 fi
252b5132 4107fi
5464f5a1 4108
f5385ebf
AM
4109# test whether we have cygpath
4110if test -z "$CYGPATH_W"; then
4111 if (cygpath --version) >/dev/null 2>/dev/null; then
4112 CYGPATH_W='cygpath -w'
4113 else
4114 CYGPATH_W=echo
4115 fi
4116fi
4117
4118
4119# Define the identity of the package.
4120 PACKAGE=bfd
df7e4f42 4121 VERSION=2.20.51
f5385ebf
AM
4122
4123
5464f5a1 4124cat >>confdefs.h <<_ACEOF
252b5132 4125#define PACKAGE "$PACKAGE"
5464f5a1 4126_ACEOF
252b5132 4127
5464f5a1
NN
4128
4129cat >>confdefs.h <<_ACEOF
252b5132 4130#define VERSION "$VERSION"
5464f5a1 4131_ACEOF
252b5132 4132
f5385ebf
AM
4133# Some tools Automake needs.
4134
4135ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4136
4137
4138AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4139
4140
4141AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4142
4143
4144AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4145
4146
4147MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
6be7c12c 4148
f5385ebf
AM
4149# We need awk for the "check" target. The system "awk" is bad on
4150# some platforms.
4151# Always define AMTAR for backward compatibility.
4152
4153AMTAR=${AMTAR-"${am_missing_run}tar"}
4154
4155am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4156
252b5132 4157
f5385ebf
AM
4158
4159
4160depcc="$CC" am_compiler_list=
4161
81ecdfbb
RW
4162{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4163$as_echo_n "checking dependency style of $depcc... " >&6; }
4164if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4165 $as_echo_n "(cached) " >&6
252b5132 4166else
f5385ebf
AM
4167 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4168 # We make a subdir and do the tests there. Otherwise we can end up
4169 # making bogus files that we don't know about and never remove. For
4170 # instance it was reported that on HP-UX the gcc test will end up
4171 # making a dummy file named `D' -- because `-MD' means `put the output
4172 # in D'.
4173 mkdir conftest.dir
4174 # Copy depcomp to subdir because otherwise we won't find it if we're
4175 # using a relative directory.
4176 cp "$am_depcomp" conftest.dir
4177 cd conftest.dir
4178 # We will build objects and dependencies in a subdirectory because
4179 # it helps to detect inapplicable dependency modes. For instance
4180 # both Tru64's cc and ICC support -MD to output dependencies as a
4181 # side effect of compilation, but ICC will put the dependencies in
4182 # the current directory while Tru64 will put them in the object
4183 # directory.
4184 mkdir sub
4185
4186 am_cv_CC_dependencies_compiler_type=none
4187 if test "$am_compiler_list" = ""; then
4188 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4189 fi
81ecdfbb
RW
4190 am__universal=false
4191 case " $depcc " in #(
4192 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4193 esac
4194
f5385ebf
AM
4195 for depmode in $am_compiler_list; do
4196 # Setup a source with many dependencies, because some compilers
4197 # like to wrap large dependency lists on column 80 (with \), and
4198 # we should not choose a depcomp mode which is confused by this.
4199 #
4200 # We need to recreate these files for each test, as the compiler may
4201 # overwrite some of them when testing with obscure command lines.
4202 # This happens at least with the AIX C compiler.
4203 : > sub/conftest.c
4204 for i in 1 2 3 4 5 6; do
4205 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4206 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4207 # Solaris 8's {/usr,}/bin/sh.
4208 touch sub/conftst$i.h
4209 done
4210 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4211
81ecdfbb
RW
4212 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4213 # mode. It turns out that the SunPro C++ compiler does not properly
4214 # handle `-M -o', and we need to detect this. Also, some Intel
4215 # versions had trouble with output in subdirs
4216 am__obj=sub/conftest.${OBJEXT-o}
4217 am__minus_obj="-o $am__obj"
f5385ebf 4218 case $depmode in
81ecdfbb
RW
4219 gcc)
4220 # This depmode causes a compiler race in universal mode.
4221 test "$am__universal" = false || continue
4222 ;;
f5385ebf
AM
4223 nosideeffect)
4224 # after this tag, mechanisms are not by side-effect, so they'll
4225 # only be used when explicitly requested
4226 if test "x$enable_dependency_tracking" = xyes; then
4227 continue
4228 else
4229 break
4230 fi
4231 ;;
81ecdfbb
RW
4232 msvisualcpp | msvcmsys)
4233 # This compiler won't grok `-c -o', but also, the minuso test has
4234 # not run yet. These depmodes are late enough in the game, and
4235 # so weak that their functioning should not be impacted.
4236 am__obj=conftest.${OBJEXT-o}
4237 am__minus_obj=
4238 ;;
f5385ebf
AM
4239 none) break ;;
4240 esac
f5385ebf 4241 if depmode=$depmode \
81ecdfbb 4242 source=sub/conftest.c object=$am__obj \
f5385ebf 4243 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
81ecdfbb 4244 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
f5385ebf 4245 >/dev/null 2>conftest.err &&
81ecdfbb 4246 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
f5385ebf 4247 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
81ecdfbb 4248 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
f5385ebf
AM
4249 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4250 # icc doesn't choke on unknown options, it will just issue warnings
4251 # or remarks (even with -Werror). So we grep stderr for any message
4252 # that says an option was ignored or not supported.
4253 # When given -MP, icc 7.0 and 7.1 complain thusly:
4254 # icc: Command line warning: ignoring option '-M'; no argument required
4255 # The diagnosis changed in icc 8.0:
4256 # icc: Command line remark: option '-MP' not supported
4257 if (grep 'ignoring option' conftest.err ||
4258 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4259 am_cv_CC_dependencies_compiler_type=$depmode
4260 break
4261 fi
4262 fi
4263 done
4264
4265 cd ..
4266 rm -rf conftest.dir
4267else
4268 am_cv_CC_dependencies_compiler_type=none
4269fi
4270
252b5132 4271fi
81ecdfbb
RW
4272{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4273$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
f5385ebf 4274CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
252b5132 4275
81ecdfbb 4276 if
f5385ebf
AM
4277 test "x$enable_dependency_tracking" != xno \
4278 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4279 am__fastdepCC_TRUE=
4280 am__fastdepCC_FALSE='#'
252b5132 4281else
f5385ebf
AM
4282 am__fastdepCC_TRUE='#'
4283 am__fastdepCC_FALSE=
252b5132
RH
4284fi
4285
6be7c12c 4286
e43d48cc 4287
f5385ebf 4288
5464f5a1
NN
4289if test -n "$ac_tool_prefix"; then
4290 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
252b5132 4291set dummy ${ac_tool_prefix}ar; ac_word=$2
81ecdfbb
RW
4292{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4293$as_echo_n "checking for $ac_word... " >&6; }
4294if test "${ac_cv_prog_AR+set}" = set; then :
4295 $as_echo_n "(cached) " >&6
252b5132
RH
4296else
4297 if test -n "$AR"; then
4298 ac_cv_prog_AR="$AR" # Let the user override the test.
4299else
5464f5a1
NN
4300as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4301for as_dir in $PATH
4302do
4303 IFS=$as_save_IFS
4304 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4305 for ac_exec_ext in '' $ac_executable_extensions; do
4306 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5464f5a1 4307 ac_cv_prog_AR="${ac_tool_prefix}ar"
81ecdfbb 4308 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5464f5a1
NN
4309 break 2
4310 fi
4311done
81ecdfbb
RW
4312 done
4313IFS=$as_save_IFS
5464f5a1 4314
252b5132
RH
4315fi
4316fi
5464f5a1 4317AR=$ac_cv_prog_AR
252b5132 4318if test -n "$AR"; then
81ecdfbb
RW
4319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4320$as_echo "$AR" >&6; }
252b5132 4321else
81ecdfbb
RW
4322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4323$as_echo "no" >&6; }
5464f5a1
NN
4324fi
4325
81ecdfbb 4326
252b5132 4327fi
5464f5a1
NN
4328if test -z "$ac_cv_prog_AR"; then
4329 ac_ct_AR=$AR
4330 # Extract the first word of "ar", so it can be a program name with args.
4331set dummy ar; ac_word=$2
81ecdfbb
RW
4332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4333$as_echo_n "checking for $ac_word... " >&6; }
4334if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
4335 $as_echo_n "(cached) " >&6
5464f5a1
NN
4336else
4337 if test -n "$ac_ct_AR"; then
4338 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4339else
4340as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4341for as_dir in $PATH
4342do
4343 IFS=$as_save_IFS
4344 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4345 for ac_exec_ext in '' $ac_executable_extensions; do
4346 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5464f5a1 4347 ac_cv_prog_ac_ct_AR="ar"
81ecdfbb 4348 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5464f5a1
NN
4349 break 2
4350 fi
4351done
81ecdfbb
RW
4352 done
4353IFS=$as_save_IFS
252b5132 4354
5464f5a1
NN
4355fi
4356fi
4357ac_ct_AR=$ac_cv_prog_ac_ct_AR
4358if test -n "$ac_ct_AR"; then
81ecdfbb
RW
4359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4360$as_echo "$ac_ct_AR" >&6; }
5464f5a1 4361else
81ecdfbb
RW
4362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4363$as_echo "no" >&6; }
5464f5a1 4364fi
252b5132 4365
81ecdfbb
RW
4366 if test "x$ac_ct_AR" = x; then
4367 AR=""
4368 else
4369 case $cross_compiling:$ac_tool_warned in
4370yes:)
4371{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4372$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4373ac_tool_warned=yes ;;
4374esac
4375 AR=$ac_ct_AR
4376 fi
5464f5a1
NN
4377else
4378 AR="$ac_cv_prog_AR"
4379fi
6be7c12c 4380
5464f5a1
NN
4381if test -n "$ac_tool_prefix"; then
4382 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
252b5132 4383set dummy ${ac_tool_prefix}ranlib; ac_word=$2
81ecdfbb
RW
4384{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4385$as_echo_n "checking for $ac_word... " >&6; }
4386if test "${ac_cv_prog_RANLIB+set}" = set; then :
4387 $as_echo_n "(cached) " >&6
252b5132
RH
4388else
4389 if test -n "$RANLIB"; then
4390 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4391else
5464f5a1
NN
4392as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4393for as_dir in $PATH
4394do
4395 IFS=$as_save_IFS
4396 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4397 for ac_exec_ext in '' $ac_executable_extensions; do
4398 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5464f5a1 4399 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
81ecdfbb 4400 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5464f5a1
NN
4401 break 2
4402 fi
4403done
81ecdfbb
RW
4404 done
4405IFS=$as_save_IFS
5464f5a1 4406
252b5132
RH
4407fi
4408fi
5464f5a1 4409RANLIB=$ac_cv_prog_RANLIB
252b5132 4410if test -n "$RANLIB"; then
81ecdfbb
RW
4411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4412$as_echo "$RANLIB" >&6; }
252b5132 4413else
81ecdfbb
RW
4414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4415$as_echo "no" >&6; }
252b5132
RH
4416fi
4417
81ecdfbb 4418
5464f5a1 4419fi
252b5132 4420if test -z "$ac_cv_prog_RANLIB"; then
5464f5a1 4421 ac_ct_RANLIB=$RANLIB
252b5132
RH
4422 # Extract the first word of "ranlib", so it can be a program name with args.
4423set dummy ranlib; ac_word=$2
81ecdfbb
RW
4424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4425$as_echo_n "checking for $ac_word... " >&6; }
4426if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4427 $as_echo_n "(cached) " >&6
6be7c12c 4428else
5464f5a1
NN
4429 if test -n "$ac_ct_RANLIB"; then
4430 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6be7c12c 4431else
5464f5a1
NN
4432as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4433for as_dir in $PATH
4434do
4435 IFS=$as_save_IFS
4436 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4437 for ac_exec_ext in '' $ac_executable_extensions; do
4438 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5464f5a1 4439 ac_cv_prog_ac_ct_RANLIB="ranlib"
81ecdfbb 4440 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5464f5a1
NN
4441 break 2
4442 fi
4443done
81ecdfbb
RW
4444 done
4445IFS=$as_save_IFS
5464f5a1 4446
252b5132
RH
4447fi
4448fi
5464f5a1
NN
4449ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4450if test -n "$ac_ct_RANLIB"; then
81ecdfbb
RW
4451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4452$as_echo "$ac_ct_RANLIB" >&6; }
252b5132 4453else
81ecdfbb
RW
4454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4455$as_echo "no" >&6; }
252b5132
RH
4456fi
4457
81ecdfbb
RW
4458 if test "x$ac_ct_RANLIB" = x; then
4459 RANLIB=":"
4460 else
4461 case $cross_compiling:$ac_tool_warned in
4462yes:)
4463{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4464$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4465ac_tool_warned=yes ;;
4466esac
4467 RANLIB=$ac_ct_RANLIB
4468 fi
252b5132 4469else
5464f5a1 4470 RANLIB="$ac_cv_prog_RANLIB"
6be7c12c
AO
4471fi
4472
252b5132 4473
81ecdfbb
RW
4474# Check whether --enable-shared was given.
4475if test "${enable_shared+set}" = set; then :
4476 enableval=$enable_shared; p=${PACKAGE-default}
d7040cdb
SE
4477 case $enableval in
4478 yes) enable_shared=yes ;;
4479 no) enable_shared=no ;;
4480 *)
4481 enable_shared=no
4482 # Look at the argument we got. We use all the common list separators.
4483 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4484 for pkg in $enableval; do
4485 IFS="$lt_save_ifs"
4486 if test "X$pkg" = "X$p"; then
4487 enable_shared=yes
4488 fi
4489 done
4490 IFS="$lt_save_ifs"
4491 ;;
4492 esac
252b5132
RH
4493else
4494 enable_shared=no
81ecdfbb
RW
4495fi
4496
252b5132 4497
d7040cdb
SE
4498
4499
4500
4501
4502
4503
4504
4505
cfbc9945
SE
4506ac_ext=c
4507ac_cpp='$CPP $CPPFLAGS'
4508ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4509ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4510ac_compiler_gnu=$ac_cv_c_compiler_gnu
4511if test -n "$ac_tool_prefix"; then
4512 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4513set dummy ${ac_tool_prefix}gcc; ac_word=$2
81ecdfbb
RW
4514{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4515$as_echo_n "checking for $ac_word... " >&6; }
4516if test "${ac_cv_prog_CC+set}" = set; then :
4517 $as_echo_n "(cached) " >&6
252b5132 4518else
cfbc9945
SE
4519 if test -n "$CC"; then
4520 ac_cv_prog_CC="$CC" # Let the user override the test.
b2ef150d 4521else
cfbc9945
SE
4522as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4523for as_dir in $PATH
4524do
4525 IFS=$as_save_IFS
4526 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4527 for ac_exec_ext in '' $ac_executable_extensions; do
4528 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
cfbc9945 4529 ac_cv_prog_CC="${ac_tool_prefix}gcc"
81ecdfbb 4530 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cfbc9945
SE
4531 break 2
4532 fi
4533done
81ecdfbb
RW
4534 done
4535IFS=$as_save_IFS
c5d1701e 4536
cfbc9945
SE
4537fi
4538fi
4539CC=$ac_cv_prog_CC
4540if test -n "$CC"; then
81ecdfbb
RW
4541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4542$as_echo "$CC" >&6; }
252b5132 4543else
81ecdfbb
RW
4544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4545$as_echo "no" >&6; }
252b5132 4546fi
cfbc9945 4547
81ecdfbb 4548
cfbc9945
SE
4549fi
4550if test -z "$ac_cv_prog_CC"; then
4551 ac_ct_CC=$CC
4552 # Extract the first word of "gcc", so it can be a program name with args.
4553set dummy gcc; ac_word=$2
81ecdfbb
RW
4554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4555$as_echo_n "checking for $ac_word... " >&6; }
4556if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4557 $as_echo_n "(cached) " >&6
252b5132 4558else
cfbc9945
SE
4559 if test -n "$ac_ct_CC"; then
4560 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
252b5132 4561else
cfbc9945
SE
4562as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4563for as_dir in $PATH
4564do
4565 IFS=$as_save_IFS
4566 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4567 for ac_exec_ext in '' $ac_executable_extensions; do
4568 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
cfbc9945 4569 ac_cv_prog_ac_ct_CC="gcc"
81ecdfbb 4570 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cfbc9945
SE
4571 break 2
4572 fi
4573done
81ecdfbb
RW
4574 done
4575IFS=$as_save_IFS
cfbc9945 4576
252b5132
RH
4577fi
4578fi
cfbc9945
SE
4579ac_ct_CC=$ac_cv_prog_ac_ct_CC
4580if test -n "$ac_ct_CC"; then
81ecdfbb
RW
4581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4582$as_echo "$ac_ct_CC" >&6; }
252b5132 4583else
81ecdfbb
RW
4584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4585$as_echo "no" >&6; }
252b5132 4586fi
cfbc9945 4587
81ecdfbb
RW
4588 if test "x$ac_ct_CC" = x; then
4589 CC=""
4590 else
4591 case $cross_compiling:$ac_tool_warned in
4592yes:)
4593{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4594$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4595ac_tool_warned=yes ;;
4596esac
4597 CC=$ac_ct_CC
4598 fi
cfbc9945
SE
4599else
4600 CC="$ac_cv_prog_CC"
4601fi
4602
4603if test -z "$CC"; then
81ecdfbb
RW
4604 if test -n "$ac_tool_prefix"; then
4605 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
cfbc9945 4606set dummy ${ac_tool_prefix}cc; ac_word=$2
81ecdfbb
RW
4607{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4608$as_echo_n "checking for $ac_word... " >&6; }
4609if test "${ac_cv_prog_CC+set}" = set; then :
4610 $as_echo_n "(cached) " >&6
252b5132 4611else
cfbc9945
SE
4612 if test -n "$CC"; then
4613 ac_cv_prog_CC="$CC" # Let the user override the test.
252b5132 4614else
cfbc9945
SE
4615as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4616for as_dir in $PATH
4617do
4618 IFS=$as_save_IFS
4619 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4620 for ac_exec_ext in '' $ac_executable_extensions; do
4621 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
cfbc9945 4622 ac_cv_prog_CC="${ac_tool_prefix}cc"
81ecdfbb 4623 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cfbc9945
SE
4624 break 2
4625 fi
4626done
81ecdfbb
RW
4627 done
4628IFS=$as_save_IFS
cfbc9945 4629
252b5132
RH
4630fi
4631fi
cfbc9945
SE
4632CC=$ac_cv_prog_CC
4633if test -n "$CC"; then
81ecdfbb
RW
4634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4635$as_echo "$CC" >&6; }
ac48eca1 4636else
81ecdfbb
RW
4637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4638$as_echo "no" >&6; }
ac48eca1 4639fi
ac48eca1 4640
81ecdfbb
RW
4641
4642 fi
cfbc9945 4643fi
81ecdfbb 4644if test -z "$CC"; then
cfbc9945
SE
4645 # Extract the first word of "cc", so it can be a program name with args.
4646set dummy cc; ac_word=$2
81ecdfbb
RW
4647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4648$as_echo_n "checking for $ac_word... " >&6; }
4649if test "${ac_cv_prog_CC+set}" = set; then :
4650 $as_echo_n "(cached) " >&6
252b5132 4651else
81ecdfbb
RW
4652 if test -n "$CC"; then
4653 ac_cv_prog_CC="$CC" # Let the user override the test.
252b5132 4654else
81ecdfbb 4655 ac_prog_rejected=no
cfbc9945
SE
4656as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4657for as_dir in $PATH
4658do
4659 IFS=$as_save_IFS
4660 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4661 for ac_exec_ext in '' $ac_executable_extensions; do
4662 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
cfbc9945
SE
4663 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4664 ac_prog_rejected=yes
4665 continue
4666 fi
4667 ac_cv_prog_CC="cc"
81ecdfbb 4668 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cfbc9945
SE
4669 break 2
4670 fi
4671done
81ecdfbb
RW
4672 done
4673IFS=$as_save_IFS
cfbc9945
SE
4674
4675if test $ac_prog_rejected = yes; then
4676 # We found a bogon in the path, so make sure we never use it.
4677 set dummy $ac_cv_prog_CC
4678 shift
4679 if test $# != 0; then
4680 # We chose a different compiler from the bogus one.
4681 # However, it has the same basename, so the bogon will be chosen
4682 # first if we set CC to just the basename; use the full file name.
4683 shift
4684 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4685 fi
4686fi
4687fi
4688fi
4689CC=$ac_cv_prog_CC
4690if test -n "$CC"; then
81ecdfbb
RW
4691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4692$as_echo "$CC" >&6; }
cfbc9945 4693else
81ecdfbb
RW
4694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4695$as_echo "no" >&6; }
252b5132
RH
4696fi
4697
81ecdfbb 4698
cfbc9945
SE
4699fi
4700if test -z "$CC"; then
4701 if test -n "$ac_tool_prefix"; then
81ecdfbb 4702 for ac_prog in cl.exe
cfbc9945
SE
4703 do
4704 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4705set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
4706{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4707$as_echo_n "checking for $ac_word... " >&6; }
4708if test "${ac_cv_prog_CC+set}" = set; then :
4709 $as_echo_n "(cached) " >&6
ac48eca1 4710else
cfbc9945
SE
4711 if test -n "$CC"; then
4712 ac_cv_prog_CC="$CC" # Let the user override the test.
4713else
4714as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4715for as_dir in $PATH
4716do
4717 IFS=$as_save_IFS
4718 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4719 for ac_exec_ext in '' $ac_executable_extensions; do
4720 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
cfbc9945 4721 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
81ecdfbb 4722 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cfbc9945
SE
4723 break 2
4724 fi
4725done
81ecdfbb
RW
4726 done
4727IFS=$as_save_IFS
ac48eca1 4728
cfbc9945
SE
4729fi
4730fi
4731CC=$ac_cv_prog_CC
4732if test -n "$CC"; then
81ecdfbb
RW
4733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4734$as_echo "$CC" >&6; }
cfbc9945 4735else
81ecdfbb
RW
4736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4737$as_echo "no" >&6; }
cfbc9945 4738fi
ac48eca1 4739
81ecdfbb 4740
cfbc9945
SE
4741 test -n "$CC" && break
4742 done
4743fi
4744if test -z "$CC"; then
4745 ac_ct_CC=$CC
81ecdfbb 4746 for ac_prog in cl.exe
cfbc9945
SE
4747do
4748 # Extract the first word of "$ac_prog", so it can be a program name with args.
4749set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
4750{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4751$as_echo_n "checking for $ac_word... " >&6; }
4752if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4753 $as_echo_n "(cached) " >&6
cfbc9945
SE
4754else
4755 if test -n "$ac_ct_CC"; then
4756 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4757else
4758as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4759for as_dir in $PATH
4760do
4761 IFS=$as_save_IFS
4762 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4763 for ac_exec_ext in '' $ac_executable_extensions; do
4764 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
cfbc9945 4765 ac_cv_prog_ac_ct_CC="$ac_prog"
81ecdfbb 4766 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cfbc9945
SE
4767 break 2
4768 fi
4769done
81ecdfbb
RW
4770 done
4771IFS=$as_save_IFS
ac48eca1 4772
cfbc9945
SE
4773fi
4774fi
4775ac_ct_CC=$ac_cv_prog_ac_ct_CC
4776if test -n "$ac_ct_CC"; then
81ecdfbb
RW
4777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4778$as_echo "$ac_ct_CC" >&6; }
cfbc9945 4779else
81ecdfbb
RW
4780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4781$as_echo "no" >&6; }
cfbc9945 4782fi
ac48eca1 4783
81ecdfbb 4784
cfbc9945
SE
4785 test -n "$ac_ct_CC" && break
4786done
ac48eca1 4787
81ecdfbb
RW
4788 if test "x$ac_ct_CC" = x; then
4789 CC=""
4790 else
4791 case $cross_compiling:$ac_tool_warned in
4792yes:)
4793{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4794$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4795ac_tool_warned=yes ;;
4796esac
4797 CC=$ac_ct_CC
4798 fi
cfbc9945 4799fi
55c80943 4800
cfbc9945 4801fi
ac48eca1 4802
ac48eca1 4803
81ecdfbb
RW
4804test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4805$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4806as_fn_error "no acceptable C compiler found in \$PATH
4807See \`config.log' for more details." "$LINENO" 5; }
ac48eca1 4808
cfbc9945 4809# Provide some information about the compiler.
81ecdfbb
RW
4810$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4811set X $ac_compile
4812ac_compiler=$2
4813for ac_option in --version -v -V -qversion; do
4814 { { ac_try="$ac_compiler $ac_option >&5"
4815case "(($ac_try" in
4816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4817 *) ac_try_echo=$ac_try;;
4818esac
4819eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4820$as_echo "$ac_try_echo"; } >&5
4821 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cfbc9945 4822 ac_status=$?
81ecdfbb
RW
4823 if test -s conftest.err; then
4824 sed '10a\
4825... rest of stderr output deleted ...
4826 10q' conftest.err >conftest.er1
4827 cat conftest.er1 >&5
4828 rm -f conftest.er1 conftest.err
4829 fi
4830 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4831 test $ac_status = 0; }
4832done
ac48eca1 4833
81ecdfbb
RW
4834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4835$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4836if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4837 $as_echo_n "(cached) " >&6
ac48eca1 4838else
81ecdfbb 4839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cfbc9945 4840/* end confdefs.h. */
ac48eca1 4841
cfbc9945
SE
4842int
4843main ()
4844{
4845#ifndef __GNUC__
4846 choke me
4847#endif
5464f5a1 4848
cfbc9945
SE
4849 ;
4850 return 0;
4851}
4852_ACEOF
81ecdfbb 4853if ac_fn_c_try_compile "$LINENO"; then :
cfbc9945 4854 ac_compiler_gnu=yes
ac48eca1 4855else
81ecdfbb 4856 ac_compiler_gnu=no
ac48eca1 4857fi
81ecdfbb 4858rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cfbc9945 4859ac_cv_c_compiler_gnu=$ac_compiler_gnu
ac48eca1 4860
5464f5a1 4861fi
81ecdfbb
RW
4862{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4863$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4864if test $ac_compiler_gnu = yes; then
4865 GCC=yes
4866else
4867 GCC=
4868fi
cfbc9945
SE
4869ac_test_CFLAGS=${CFLAGS+set}
4870ac_save_CFLAGS=$CFLAGS
81ecdfbb
RW
4871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4872$as_echo_n "checking whether $CC accepts -g... " >&6; }
4873if test "${ac_cv_prog_cc_g+set}" = set; then :
4874 $as_echo_n "(cached) " >&6
4875else
4876 ac_save_c_werror_flag=$ac_c_werror_flag
4877 ac_c_werror_flag=yes
4878 ac_cv_prog_cc_g=no
4879 CFLAGS="-g"
4880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cfbc9945
SE
4881/* end confdefs.h. */
4882
4883int
4884main ()
4885{
4886
4887 ;
4888 return 0;
4889}
4890_ACEOF
81ecdfbb 4891if ac_fn_c_try_compile "$LINENO"; then :
cfbc9945 4892 ac_cv_prog_cc_g=yes
6be7c12c 4893else
81ecdfbb
RW
4894 CFLAGS=""
4895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4896/* end confdefs.h. */
4897
4898int
4899main ()
4900{
4901
4902 ;
4903 return 0;
4904}
4905_ACEOF
4906if ac_fn_c_try_compile "$LINENO"; then :
4907
4908else
4909 ac_c_werror_flag=$ac_save_c_werror_flag
4910 CFLAGS="-g"
4911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4912/* end confdefs.h. */
4913
4914int
4915main ()
4916{
5464f5a1 4917
81ecdfbb
RW
4918 ;
4919 return 0;
4920}
4921_ACEOF
4922if ac_fn_c_try_compile "$LINENO"; then :
4923 ac_cv_prog_cc_g=yes
4924fi
4925rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ac48eca1 4926fi
81ecdfbb 4927rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ac48eca1 4928fi
81ecdfbb
RW
4929rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4930 ac_c_werror_flag=$ac_save_c_werror_flag
4931fi
4932{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4933$as_echo "$ac_cv_prog_cc_g" >&6; }
cfbc9945
SE
4934if test "$ac_test_CFLAGS" = set; then
4935 CFLAGS=$ac_save_CFLAGS
4936elif test $ac_cv_prog_cc_g = yes; then
4937 if test "$GCC" = yes; then
4938 CFLAGS="-g -O2"
4939 else
4940 CFLAGS="-g"
4941 fi
ac48eca1 4942else
cfbc9945
SE
4943 if test "$GCC" = yes; then
4944 CFLAGS="-O2"
4945 else
4946 CFLAGS=
4947 fi
ac48eca1 4948fi
81ecdfbb
RW
4949{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4950$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4951if test "${ac_cv_prog_cc_c89+set}" = set; then :
4952 $as_echo_n "(cached) " >&6
ac48eca1 4953else
81ecdfbb 4954 ac_cv_prog_cc_c89=no
cfbc9945 4955ac_save_CC=$CC
81ecdfbb 4956cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cfbc9945
SE
4957/* end confdefs.h. */
4958#include <stdarg.h>
4959#include <stdio.h>
4960#include <sys/types.h>
4961#include <sys/stat.h>
4962/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4963struct buf { int x; };
4964FILE * (*rcsopen) (struct buf *, struct stat *, int);
4965static char *e (p, i)
4966 char **p;
4967 int i;
4968{
4969 return p[i];
4970}
4971static char *f (char * (*g) (char **, int), char **p, ...)
4972{
4973 char *s;
4974 va_list v;
4975 va_start (v,p);
4976 s = g (p, va_arg (v,int));
4977 va_end (v);
4978 return s;
4979}
5464f5a1 4980
cfbc9945
SE
4981/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4982 function prototypes and stuff, but not '\xHH' hex character constants.
4983 These don't provoke an error unfortunately, instead are silently treated
81ecdfbb 4984 as 'x'. The following induces an error, until -std is added to get
cfbc9945
SE
4985 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4986 array size at least. It's necessary to write '\x00'==0 to get something
81ecdfbb 4987 that's true only with -std. */
cfbc9945
SE
4988int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4989
81ecdfbb
RW
4990/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4991 inside strings and character constants. */
4992#define FOO(x) 'x'
4993int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4994
cfbc9945
SE
4995int test (int i, double x);
4996struct s1 {int (*f) (int a);};
4997struct s2 {int (*f) (double a);};
4998int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4999int argc;
5000char **argv;
5001int
5002main ()
5003{
5004return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5005 ;
5006 return 0;
5007}
5008_ACEOF
81ecdfbb
RW
5009for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5010 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
cfbc9945
SE
5011do
5012 CC="$ac_save_CC $ac_arg"
81ecdfbb
RW
5013 if ac_fn_c_try_compile "$LINENO"; then :
5014 ac_cv_prog_cc_c89=$ac_arg
5464f5a1 5015fi
81ecdfbb
RW
5016rm -f core conftest.err conftest.$ac_objext
5017 test "x$ac_cv_prog_cc_c89" != "xno" && break
5464f5a1 5018done
81ecdfbb 5019rm -f conftest.$ac_ext
cfbc9945 5020CC=$ac_save_CC
5464f5a1 5021
ac48eca1 5022fi
81ecdfbb
RW
5023# AC_CACHE_VAL
5024case "x$ac_cv_prog_cc_c89" in
5025 x)
5026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5027$as_echo "none needed" >&6; } ;;
5028 xno)
5029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5030$as_echo "unsupported" >&6; } ;;
cfbc9945 5031 *)
81ecdfbb
RW
5032 CC="$CC $ac_cv_prog_cc_c89"
5033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5034$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
cfbc9945 5035esac
81ecdfbb 5036if test "x$ac_cv_prog_cc_c89" != xno; then :
6be7c12c 5037
6ec7057a 5038fi
cfbc9945 5039
cfbc9945
SE
5040ac_ext=c
5041ac_cpp='$CPP $CPPFLAGS'
5042ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5043ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5044ac_compiler_gnu=$ac_cv_c_compiler_gnu
92f01d61 5045
7357c5b6
AM
5046ac_ext=c
5047ac_cpp='$CPP $CPPFLAGS'
5048ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5049ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5050ac_compiler_gnu=$ac_cv_c_compiler_gnu
81ecdfbb
RW
5051{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5052$as_echo_n "checking how to run the C preprocessor... " >&6; }
7357c5b6
AM
5053# On Suns, sometimes $CPP names a directory.
5054if test -n "$CPP" && test -d "$CPP"; then
5055 CPP=
5056fi
5057if test -z "$CPP"; then
81ecdfbb
RW
5058 if test "${ac_cv_prog_CPP+set}" = set; then :
5059 $as_echo_n "(cached) " >&6
7357c5b6
AM
5060else
5061 # Double quotes because CPP needs to be expanded
5062 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5063 do
5064 ac_preproc_ok=false
5065for ac_c_preproc_warn_flag in '' yes
5066do
5067 # Use a header file that comes with gcc, so configuring glibc
5068 # with a fresh cross-compiler works.
5069 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5070 # <limits.h> exists even on freestanding compilers.
5071 # On the NeXT, cc -E runs the code through the compiler's parser,
5072 # not just through cpp. "Syntax error" is here to catch this case.
81ecdfbb 5073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
5074/* end confdefs.h. */
5075#ifdef __STDC__
5076# include <limits.h>
5077#else
5078# include <assert.h>
5079#endif
5080 Syntax error
5081_ACEOF
81ecdfbb 5082if ac_fn_c_try_cpp "$LINENO"; then :
cfbc9945 5083
81ecdfbb 5084else
7357c5b6
AM
5085 # Broken: fails on valid input.
5086continue
5087fi
5088rm -f conftest.err conftest.$ac_ext
d7040cdb 5089
81ecdfbb 5090 # OK, works on sane cases. Now check whether nonexistent headers
7357c5b6 5091 # can be detected and how.
81ecdfbb 5092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
5093/* end confdefs.h. */
5094#include <ac_nonexistent.h>
5095_ACEOF
81ecdfbb 5096if ac_fn_c_try_cpp "$LINENO"; then :
7357c5b6
AM
5097 # Broken: success on invalid input.
5098continue
5099else
7357c5b6
AM
5100 # Passes both tests.
5101ac_preproc_ok=:
5102break
5103fi
5104rm -f conftest.err conftest.$ac_ext
d7040cdb 5105
7357c5b6
AM
5106done
5107# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5108rm -f conftest.err conftest.$ac_ext
81ecdfbb 5109if $ac_preproc_ok; then :
7357c5b6
AM
5110 break
5111fi
d7040cdb 5112
7357c5b6
AM
5113 done
5114 ac_cv_prog_CPP=$CPP
d7040cdb 5115
7357c5b6
AM
5116fi
5117 CPP=$ac_cv_prog_CPP
5118else
5119 ac_cv_prog_CPP=$CPP
5120fi
81ecdfbb
RW
5121{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5122$as_echo "$CPP" >&6; }
7357c5b6
AM
5123ac_preproc_ok=false
5124for ac_c_preproc_warn_flag in '' yes
5125do
5126 # Use a header file that comes with gcc, so configuring glibc
5127 # with a fresh cross-compiler works.
5128 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5129 # <limits.h> exists even on freestanding compilers.
5130 # On the NeXT, cc -E runs the code through the compiler's parser,
5131 # not just through cpp. "Syntax error" is here to catch this case.
81ecdfbb 5132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
5133/* end confdefs.h. */
5134#ifdef __STDC__
5135# include <limits.h>
5136#else
5137# include <assert.h>
5138#endif
5139 Syntax error
5140_ACEOF
81ecdfbb 5141if ac_fn_c_try_cpp "$LINENO"; then :
d7040cdb 5142
81ecdfbb 5143else
7357c5b6
AM
5144 # Broken: fails on valid input.
5145continue
5146fi
5147rm -f conftest.err conftest.$ac_ext
d7040cdb 5148
81ecdfbb 5149 # OK, works on sane cases. Now check whether nonexistent headers
7357c5b6 5150 # can be detected and how.
81ecdfbb 5151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
5152/* end confdefs.h. */
5153#include <ac_nonexistent.h>
5154_ACEOF
81ecdfbb 5155if ac_fn_c_try_cpp "$LINENO"; then :
7357c5b6
AM
5156 # Broken: success on invalid input.
5157continue
5158else
7357c5b6
AM
5159 # Passes both tests.
5160ac_preproc_ok=:
5161break
5162fi
5163rm -f conftest.err conftest.$ac_ext
d7040cdb 5164
7357c5b6
AM
5165done
5166# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5167rm -f conftest.err conftest.$ac_ext
81ecdfbb
RW
5168if $ac_preproc_ok; then :
5169
7357c5b6 5170else
81ecdfbb
RW
5171 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5172$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5173as_fn_error "C preprocessor \"$CPP\" fails sanity check
5174See \`config.log' for more details." "$LINENO" 5; }
7357c5b6 5175fi
d7040cdb 5176
7357c5b6
AM
5177ac_ext=c
5178ac_cpp='$CPP $CPPFLAGS'
5179ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5180ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5181ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7040cdb 5182
d7040cdb 5183
81ecdfbb
RW
5184{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5185$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5186if test "${ac_cv_path_GREP+set}" = set; then :
5187 $as_echo_n "(cached) " >&6
5188else
5189 if test -z "$GREP"; then
5190 ac_path_GREP_found=false
5191 # Loop through the user's path and test for each of PROGNAME-LIST
5192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5193for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5194do
5195 IFS=$as_save_IFS
5196 test -z "$as_dir" && as_dir=.
5197 for ac_prog in grep ggrep; do
5198 for ac_exec_ext in '' $ac_executable_extensions; do
5199 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5200 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5201# Check for GNU ac_path_GREP and select it if it is found.
5202 # Check for GNU $ac_path_GREP
5203case `"$ac_path_GREP" --version 2>&1` in
5204*GNU*)
5205 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5206*)
5207 ac_count=0
5208 $as_echo_n 0123456789 >"conftest.in"
5209 while :
5210 do
5211 cat "conftest.in" "conftest.in" >"conftest.tmp"
5212 mv "conftest.tmp" "conftest.in"
5213 cp "conftest.in" "conftest.nl"
5214 $as_echo 'GREP' >> "conftest.nl"
5215 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5216 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5217 as_fn_arith $ac_count + 1 && ac_count=$as_val
5218 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5219 # Best one so far, save it but keep looking for a better one
5220 ac_cv_path_GREP="$ac_path_GREP"
5221 ac_path_GREP_max=$ac_count
5222 fi
5223 # 10*(2^10) chars as input seems more than enough
5224 test $ac_count -gt 10 && break
5225 done
5226 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5227esac
5228
5229 $ac_path_GREP_found && break 3
5230 done
5231 done
5232 done
5233IFS=$as_save_IFS
5234 if test -z "$ac_cv_path_GREP"; then
5235 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5236 fi
5237else
5238 ac_cv_path_GREP=$GREP
5239fi
5240
5241fi
5242{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5243$as_echo "$ac_cv_path_GREP" >&6; }
5244 GREP="$ac_cv_path_GREP"
5245
5246
5247{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5248$as_echo_n "checking for egrep... " >&6; }
5249if test "${ac_cv_path_EGREP+set}" = set; then :
5250 $as_echo_n "(cached) " >&6
7357c5b6 5251else
81ecdfbb
RW
5252 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5253 then ac_cv_path_EGREP="$GREP -E"
5254 else
5255 if test -z "$EGREP"; then
5256 ac_path_EGREP_found=false
5257 # Loop through the user's path and test for each of PROGNAME-LIST
5258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5259for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5260do
5261 IFS=$as_save_IFS
5262 test -z "$as_dir" && as_dir=.
5263 for ac_prog in egrep; do
5264 for ac_exec_ext in '' $ac_executable_extensions; do
5265 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5266 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5267# Check for GNU ac_path_EGREP and select it if it is found.
5268 # Check for GNU $ac_path_EGREP
5269case `"$ac_path_EGREP" --version 2>&1` in
5270*GNU*)
5271 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5272*)
5273 ac_count=0
5274 $as_echo_n 0123456789 >"conftest.in"
5275 while :
5276 do
5277 cat "conftest.in" "conftest.in" >"conftest.tmp"
5278 mv "conftest.tmp" "conftest.in"
5279 cp "conftest.in" "conftest.nl"
5280 $as_echo 'EGREP' >> "conftest.nl"
5281 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5282 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5283 as_fn_arith $ac_count + 1 && ac_count=$as_val
5284 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5285 # Best one so far, save it but keep looking for a better one
5286 ac_cv_path_EGREP="$ac_path_EGREP"
5287 ac_path_EGREP_max=$ac_count
7357c5b6 5288 fi
81ecdfbb
RW
5289 # 10*(2^10) chars as input seems more than enough
5290 test $ac_count -gt 10 && break
5291 done
5292 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5293esac
5294
5295 $ac_path_EGREP_found && break 3
5296 done
5297 done
5298 done
5299IFS=$as_save_IFS
5300 if test -z "$ac_cv_path_EGREP"; then
5301 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5302 fi
5303else
5304 ac_cv_path_EGREP=$EGREP
5305fi
5306
5307 fi
7357c5b6 5308fi
81ecdfbb
RW
5309{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5310$as_echo "$ac_cv_path_EGREP" >&6; }
5311 EGREP="$ac_cv_path_EGREP"
d7040cdb
SE
5312
5313
81ecdfbb
RW
5314{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5315$as_echo_n "checking for ANSI C header files... " >&6; }
5316if test "${ac_cv_header_stdc+set}" = set; then :
5317 $as_echo_n "(cached) " >&6
7357c5b6 5318else
81ecdfbb 5319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
5320/* end confdefs.h. */
5321#include <stdlib.h>
5322#include <stdarg.h>
5323#include <string.h>
5324#include <float.h>
d7040cdb 5325
7357c5b6
AM
5326int
5327main ()
5328{
d7040cdb 5329
7357c5b6
AM
5330 ;
5331 return 0;
5332}
5333_ACEOF
81ecdfbb 5334if ac_fn_c_try_compile "$LINENO"; then :
7357c5b6 5335 ac_cv_header_stdc=yes
c428fa83 5336else
81ecdfbb 5337 ac_cv_header_stdc=no
7357c5b6 5338fi
81ecdfbb 5339rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d7040cdb 5340
7357c5b6
AM
5341if test $ac_cv_header_stdc = yes; then
5342 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
81ecdfbb 5343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
5344/* end confdefs.h. */
5345#include <string.h>
d7040cdb 5346
7357c5b6
AM
5347_ACEOF
5348if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
81ecdfbb
RW
5349 $EGREP "memchr" >/dev/null 2>&1; then :
5350
7357c5b6
AM
5351else
5352 ac_cv_header_stdc=no
5353fi
5354rm -f conftest*
d7040cdb 5355
7357c5b6 5356fi
d7040cdb 5357
7357c5b6
AM
5358if test $ac_cv_header_stdc = yes; then
5359 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
81ecdfbb 5360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
5361/* end confdefs.h. */
5362#include <stdlib.h>
d7040cdb 5363
7357c5b6
AM
5364_ACEOF
5365if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
81ecdfbb
RW
5366 $EGREP "free" >/dev/null 2>&1; then :
5367
7357c5b6
AM
5368else
5369 ac_cv_header_stdc=no
5370fi
5371rm -f conftest*
d7040cdb 5372
7357c5b6 5373fi
d7040cdb 5374
7357c5b6
AM
5375if test $ac_cv_header_stdc = yes; then
5376 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
81ecdfbb 5377 if test "$cross_compiling" = yes; then :
7357c5b6
AM
5378 :
5379else
81ecdfbb 5380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
5381/* end confdefs.h. */
5382#include <ctype.h>
81ecdfbb 5383#include <stdlib.h>
7357c5b6
AM
5384#if ((' ' & 0x0FF) == 0x020)
5385# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5386# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5387#else
5388# define ISLOWER(c) \
5389 (('a' <= (c) && (c) <= 'i') \
5390 || ('j' <= (c) && (c) <= 'r') \
5391 || ('s' <= (c) && (c) <= 'z'))
5392# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5393#endif
d7040cdb 5394
7357c5b6
AM
5395#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5396int
5397main ()
5398{
5399 int i;
5400 for (i = 0; i < 256; i++)
5401 if (XOR (islower (i), ISLOWER (i))
5402 || toupper (i) != TOUPPER (i))
81ecdfbb
RW
5403 return 2;
5404 return 0;
7357c5b6
AM
5405}
5406_ACEOF
81ecdfbb 5407if ac_fn_c_try_run "$LINENO"; then :
d7040cdb 5408
81ecdfbb
RW
5409else
5410 ac_cv_header_stdc=no
7357c5b6 5411fi
81ecdfbb
RW
5412rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5413 conftest.$ac_objext conftest.beam conftest.$ac_ext
7357c5b6 5414fi
81ecdfbb 5415
7357c5b6
AM
5416fi
5417fi
81ecdfbb
RW
5418{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5419$as_echo "$ac_cv_header_stdc" >&6; }
7357c5b6 5420if test $ac_cv_header_stdc = yes; then
d7040cdb 5421
81ecdfbb 5422$as_echo "#define STDC_HEADERS 1" >>confdefs.h
d7040cdb 5423
7357c5b6 5424fi
d7040cdb 5425
7357c5b6 5426# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7357c5b6
AM
5427for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5428 inttypes.h stdint.h unistd.h
81ecdfbb
RW
5429do :
5430 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5431ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5432"
5433eval as_val=\$$as_ac_Header
5434 if test "x$as_val" = x""yes; then :
7357c5b6 5435 cat >>confdefs.h <<_ACEOF
81ecdfbb 5436#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7357c5b6 5437_ACEOF
d7040cdb 5438
7357c5b6
AM
5439fi
5440
5441done
5442
5443
5444
81ecdfbb
RW
5445 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5446if test "x$ac_cv_header_minix_config_h" = x""yes; then :
7357c5b6
AM
5447 MINIX=yes
5448else
5449 MINIX=
5450fi
d7040cdb
SE
5451
5452
7357c5b6 5453 if test "$MINIX" = yes; then
d7040cdb 5454
81ecdfbb 5455$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
d7040cdb
SE
5456
5457
81ecdfbb 5458$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
d7040cdb
SE
5459
5460
81ecdfbb 5461$as_echo "#define _MINIX 1" >>confdefs.h
d7040cdb 5462
7357c5b6 5463 fi
d7040cdb
SE
5464
5465
81ecdfbb
RW
5466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5467$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5468if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5469 $as_echo_n "(cached) " >&6
d053aef8 5470else
81ecdfbb 5471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d053aef8 5472/* end confdefs.h. */
ce3c775b
NC
5473
5474# define __EXTENSIONS__ 1
5475 $ac_includes_default
d053aef8
JK
5476int
5477main ()
5478{
5479
5480 ;
5481 return 0;
5482}
5483_ACEOF
81ecdfbb 5484if ac_fn_c_try_compile "$LINENO"; then :
ce3c775b 5485 ac_cv_safe_to_define___extensions__=yes
d053aef8 5486else
81ecdfbb 5487 ac_cv_safe_to_define___extensions__=no
d053aef8 5488fi
81ecdfbb 5489rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ce3c775b 5490fi
81ecdfbb
RW
5491{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5492$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
ce3c775b 5493 test $ac_cv_safe_to_define___extensions__ = yes &&
81ecdfbb 5494 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
d053aef8 5495
81ecdfbb 5496 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
d053aef8 5497
81ecdfbb
RW
5498 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5499
5500 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5501
5502 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
d053aef8 5503
ce3c775b 5504
d053aef8 5505
d053aef8 5506
d7040cdb 5507
718a6fd8
SE
5508case `pwd` in
5509 *\ * | *\ *)
81ecdfbb
RW
5510 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5511$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
718a6fd8 5512esac
d7040cdb
SE
5513
5514
7357c5b6 5515
718a6fd8
SE
5516macro_version='2.2.6'
5517macro_revision='1.3012'
7357c5b6
AM
5518
5519
5520
5521
5522
5523
7357c5b6
AM
5524
5525
5526
5527
5528
5529
5530
718a6fd8 5531ltmain="$ac_aux_dir/ltmain.sh"
7357c5b6 5532
81ecdfbb
RW
5533{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5534$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5535if test "${ac_cv_path_SED+set}" = set; then :
5536 $as_echo_n "(cached) " >&6
7357c5b6 5537else
81ecdfbb
RW
5538 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5539 for ac_i in 1 2 3 4 5 6 7; do
5540 ac_script="$ac_script$as_nl$ac_script"
5541 done
5542 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5543 { ac_script=; unset ac_script;}
5544 if test -z "$SED"; then
5545 ac_path_SED_found=false
5546 # Loop through the user's path and test for each of PROGNAME-LIST
5547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7357c5b6
AM
5548for as_dir in $PATH
5549do
5550 IFS=$as_save_IFS
5551 test -z "$as_dir" && as_dir=.
81ecdfbb 5552 for ac_prog in sed gsed; do
7357c5b6 5553 for ac_exec_ext in '' $ac_executable_extensions; do
81ecdfbb
RW
5554 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5555 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5556# Check for GNU ac_path_SED and select it if it is found.
5557 # Check for GNU $ac_path_SED
5558case `"$ac_path_SED" --version 2>&1` in
5559*GNU*)
5560 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5561*)
5562 ac_count=0
5563 $as_echo_n 0123456789 >"conftest.in"
5564 while :
5565 do
5566 cat "conftest.in" "conftest.in" >"conftest.tmp"
5567 mv "conftest.tmp" "conftest.in"
5568 cp "conftest.in" "conftest.nl"
5569 $as_echo '' >> "conftest.nl"
5570 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5571 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5572 as_fn_arith $ac_count + 1 && ac_count=$as_val
5573 if test $ac_count -gt ${ac_path_SED_max-0}; then
5574 # Best one so far, save it but keep looking for a better one
5575 ac_cv_path_SED="$ac_path_SED"
5576 ac_path_SED_max=$ac_count
5577 fi
5578 # 10*(2^10) chars as input seems more than enough
5579 test $ac_count -gt 10 && break
5580 done
5581 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5582esac
5583
5584 $ac_path_SED_found && break 3
7357c5b6
AM
5585 done
5586 done
81ecdfbb 5587 done
7357c5b6 5588IFS=$as_save_IFS
81ecdfbb
RW
5589 if test -z "$ac_cv_path_SED"; then
5590 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
7357c5b6 5591 fi
81ecdfbb
RW
5592else
5593 ac_cv_path_SED=$SED
7357c5b6
AM
5594fi
5595
81ecdfbb
RW
5596fi
5597{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5598$as_echo "$ac_cv_path_SED" >&6; }
5599 SED="$ac_cv_path_SED"
5600 rm -f conftest.sed
7357c5b6
AM
5601
5602test -z "$SED" && SED=sed
5603Xsed="$SED -e 1s/^X//"
5604
5605
5606
5607
5608
5609
5610
5611
5612
5613
5614
81ecdfbb
RW
5615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5616$as_echo_n "checking for fgrep... " >&6; }
5617if test "${ac_cv_path_FGREP+set}" = set; then :
5618 $as_echo_n "(cached) " >&6
7357c5b6 5619else
81ecdfbb
RW
5620 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5621 then ac_cv_path_FGREP="$GREP -F"
5622 else
5623 if test -z "$FGREP"; then
5624 ac_path_FGREP_found=false
5625 # Loop through the user's path and test for each of PROGNAME-LIST
5626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5627for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5628do
5629 IFS=$as_save_IFS
5630 test -z "$as_dir" && as_dir=.
5631 for ac_prog in fgrep; do
5632 for ac_exec_ext in '' $ac_executable_extensions; do
5633 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5634 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5635# Check for GNU ac_path_FGREP and select it if it is found.
5636 # Check for GNU $ac_path_FGREP
5637case `"$ac_path_FGREP" --version 2>&1` in
5638*GNU*)
5639 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5640*)
5641 ac_count=0
5642 $as_echo_n 0123456789 >"conftest.in"
5643 while :
5644 do
5645 cat "conftest.in" "conftest.in" >"conftest.tmp"
5646 mv "conftest.tmp" "conftest.in"
5647 cp "conftest.in" "conftest.nl"
5648 $as_echo 'FGREP' >> "conftest.nl"
5649 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5650 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5651 as_fn_arith $ac_count + 1 && ac_count=$as_val
5652 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5653 # Best one so far, save it but keep looking for a better one
5654 ac_cv_path_FGREP="$ac_path_FGREP"
5655 ac_path_FGREP_max=$ac_count
7357c5b6 5656 fi
81ecdfbb
RW
5657 # 10*(2^10) chars as input seems more than enough
5658 test $ac_count -gt 10 && break
5659 done
5660 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5661esac
5662
5663 $ac_path_FGREP_found && break 3
5664 done
5665 done
5666 done
5667IFS=$as_save_IFS
5668 if test -z "$ac_cv_path_FGREP"; then
5669 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5670 fi
5671else
5672 ac_cv_path_FGREP=$FGREP
7357c5b6 5673fi
81ecdfbb
RW
5674
5675 fi
5676fi
5677{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5678$as_echo "$ac_cv_path_FGREP" >&6; }
5679 FGREP="$ac_cv_path_FGREP"
7357c5b6
AM
5680
5681
5682test -z "$GREP" && GREP=grep
5683
5684
5685
5686
5687
5688
5689
5690
5691
5692
5693
5694
5695
5696
5697
5698
5699
5700
5701
81ecdfbb
RW
5702# Check whether --with-gnu-ld was given.
5703if test "${with_gnu_ld+set}" = set; then :
5704 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7357c5b6
AM
5705else
5706 with_gnu_ld=no
81ecdfbb
RW
5707fi
5708
7357c5b6
AM
5709ac_prog=ld
5710if test "$GCC" = yes; then
5711 # Check if gcc -print-prog-name=ld gives a path.
81ecdfbb
RW
5712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5713$as_echo_n "checking for ld used by $CC... " >&6; }
7357c5b6
AM
5714 case $host in
5715 *-*-mingw*)
5716 # gcc leaves a trailing carriage return which upsets mingw
5717 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5718 *)
5719 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5720 esac
5721 case $ac_prog in
5722 # Accept absolute paths.
5723 [\\/]* | ?:[\\/]*)
5724 re_direlt='/[^/][^/]*/\.\./'
5725 # Canonicalize the pathname of ld
5726 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5727 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
d7040cdb 5728 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
cfbc9945
SE
5729 done
5730 test -z "$LD" && LD="$ac_prog"
5731 ;;
5bd8253d 5732 "")
cfbc9945
SE
5733 # If it fails, then pretend we aren't using GCC.
5734 ac_prog=ld
5bd8253d
L
5735 ;;
5736 *)
cfbc9945
SE
5737 # If it is relative, then search for the first ld in PATH.
5738 with_gnu_ld=unknown
5bd8253d 5739 ;;
cfbc9945
SE
5740 esac
5741elif test "$with_gnu_ld" = yes; then
81ecdfbb
RW
5742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5743$as_echo_n "checking for GNU ld... " >&6; }
cfbc9945 5744else
81ecdfbb
RW
5745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5746$as_echo_n "checking for non-GNU ld... " >&6; }
cfbc9945 5747fi
81ecdfbb
RW
5748if test "${lt_cv_path_LD+set}" = set; then :
5749 $as_echo_n "(cached) " >&6
cfbc9945
SE
5750else
5751 if test -z "$LD"; then
d7040cdb 5752 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
cfbc9945 5753 for ac_dir in $PATH; do
d7040cdb 5754 IFS="$lt_save_ifs"
cfbc9945
SE
5755 test -z "$ac_dir" && ac_dir=.
5756 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5757 lt_cv_path_LD="$ac_dir/$ac_prog"
5758 # Check to see if the program is GNU ld. I'd rather use --version,
d7040cdb 5759 # but apparently some variants of GNU ld only accept -v.
cfbc9945 5760 # Break only if it was the GNU/non-GNU ld that we prefer.
d7040cdb
SE
5761 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5762 *GNU* | *'with BFD'*)
cfbc9945 5763 test "$with_gnu_ld" != no && break
d7040cdb
SE
5764 ;;
5765 *)
cfbc9945 5766 test "$with_gnu_ld" != yes && break
d7040cdb
SE
5767 ;;
5768 esac
cfbc9945
SE
5769 fi
5770 done
d7040cdb 5771 IFS="$lt_save_ifs"
cfbc9945
SE
5772else
5773 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9e9b66a9 5774fi
1ad12f97
NC
5775fi
5776
cfbc9945
SE
5777LD="$lt_cv_path_LD"
5778if test -n "$LD"; then
81ecdfbb
RW
5779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5780$as_echo "$LD" >&6; }
cfbc9945 5781else
81ecdfbb
RW
5782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5783$as_echo "no" >&6; }
cfbc9945 5784fi
81ecdfbb
RW
5785test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5786{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5787$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5788if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5789 $as_echo_n "(cached) " >&6
cfbc9945 5790else
d7040cdb
SE
5791 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5792case `$LD -v 2>&1 </dev/null` in
5793*GNU* | *'with BFD'*)
cfbc9945 5794 lt_cv_prog_gnu_ld=yes
d7040cdb
SE
5795 ;;
5796*)
cfbc9945 5797 lt_cv_prog_gnu_ld=no
d7040cdb
SE
5798 ;;
5799esac
49c96104 5800fi
81ecdfbb
RW
5801{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5802$as_echo "$lt_cv_prog_gnu_ld" >&6; }
cfbc9945 5803with_gnu_ld=$lt_cv_prog_gnu_ld
49c96104 5804
9e9b66a9 5805
cfbc9945 5806
d7040cdb
SE
5807
5808
5809
5810
5811
5812
81ecdfbb
RW
5813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5814$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5815if test "${lt_cv_path_NM+set}" = set; then :
5816 $as_echo_n "(cached) " >&6
cfbc9945
SE
5817else
5818 if test -n "$NM"; then
5819 # Let the user override the test.
5820 lt_cv_path_NM="$NM"
5821else
d7040cdb
SE
5822 lt_nm_to_check="${ac_tool_prefix}nm"
5823 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5824 lt_nm_to_check="$lt_nm_to_check nm"
5825 fi
5826 for lt_tmp_nm in $lt_nm_to_check; do
5827 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5828 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5829 IFS="$lt_save_ifs"
5830 test -z "$ac_dir" && ac_dir=.
5831 tmp_nm="$ac_dir/$lt_tmp_nm"
5832 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5833 # Check to see if the nm accepts a BSD-compat flag.
5834 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5835 # nm: unknown option "B" ignored
5836 # Tru64's nm complains that /dev/null is an invalid object file
5837 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5838 */dev/null* | *'Invalid file or object type'*)
5839 lt_cv_path_NM="$tmp_nm -B"
5840 break
5841 ;;
5842 *)
5843 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5844 */dev/null*)
5845 lt_cv_path_NM="$tmp_nm -p"
5846 break
5847 ;;
5848 *)
5849 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5850 continue # so that we can try to find one that supports BSD flags
5851 ;;
5852 esac
5853 ;;
5854 esac
cfbc9945 5855 fi
d7040cdb
SE
5856 done
5857 IFS="$lt_save_ifs"
cfbc9945 5858 done
d7040cdb 5859 : ${lt_cv_path_NM=no}
cfbc9945 5860fi
a2d91340 5861fi
81ecdfbb
RW
5862{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5863$as_echo "$lt_cv_path_NM" >&6; }
d7040cdb
SE
5864if test "$lt_cv_path_NM" != "no"; then
5865 NM="$lt_cv_path_NM"
cfbc9945 5866else
d7040cdb
SE
5867 # Didn't find any BSD compatible name lister, look for dumpbin.
5868 if test -n "$ac_tool_prefix"; then
5869 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5870 do
5871 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5872set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
5873{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5874$as_echo_n "checking for $ac_word... " >&6; }
5875if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5876 $as_echo_n "(cached) " >&6
252b5132 5877else
d7040cdb
SE
5878 if test -n "$DUMPBIN"; then
5879 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5880else
5881as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5882for as_dir in $PATH
5883do
5884 IFS=$as_save_IFS
5885 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
5886 for ac_exec_ext in '' $ac_executable_extensions; do
5887 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d7040cdb 5888 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
81ecdfbb 5889 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d7040cdb
SE
5890 break 2
5891 fi
5892done
81ecdfbb
RW
5893 done
5894IFS=$as_save_IFS
5464f5a1 5895
d7040cdb
SE
5896fi
5897fi
5898DUMPBIN=$ac_cv_prog_DUMPBIN
5899if test -n "$DUMPBIN"; then
81ecdfbb
RW
5900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5901$as_echo "$DUMPBIN" >&6; }
d7040cdb 5902else
81ecdfbb
RW
5903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5904$as_echo "no" >&6; }
d7040cdb 5905fi
d5fbea21 5906
81ecdfbb 5907
d7040cdb
SE
5908 test -n "$DUMPBIN" && break
5909 done
5910fi
5911if test -z "$DUMPBIN"; then
5912 ac_ct_DUMPBIN=$DUMPBIN
5913 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5914do
5915 # Extract the first word of "$ac_prog", so it can be a program name with args.
5916set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
5917{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5918$as_echo_n "checking for $ac_word... " >&6; }
5919if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5920 $as_echo_n "(cached) " >&6
d7040cdb
SE
5921else
5922 if test -n "$ac_ct_DUMPBIN"; then
5923 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5924else
5925as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5926for as_dir in $PATH
5927do
5928 IFS=$as_save_IFS
5929 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
5930 for ac_exec_ext in '' $ac_executable_extensions; do
5931 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d7040cdb 5932 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
81ecdfbb 5933 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d7040cdb 5934 break 2
cfbc9945 5935 fi
d7040cdb 5936done
81ecdfbb
RW
5937 done
5938IFS=$as_save_IFS
d5fbea21 5939
d7040cdb
SE
5940fi
5941fi
5942ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5943if test -n "$ac_ct_DUMPBIN"; then
81ecdfbb
RW
5944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5945$as_echo "$ac_ct_DUMPBIN" >&6; }
d7040cdb 5946else
81ecdfbb
RW
5947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5948$as_echo "no" >&6; }
d7040cdb 5949fi
d5fbea21 5950
81ecdfbb 5951
d7040cdb
SE
5952 test -n "$ac_ct_DUMPBIN" && break
5953done
24443139 5954
81ecdfbb
RW
5955 if test "x$ac_ct_DUMPBIN" = x; then
5956 DUMPBIN=":"
5957 else
5958 case $cross_compiling:$ac_tool_warned in
5959yes:)
5960{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5961$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5962ac_tool_warned=yes ;;
5963esac
5964 DUMPBIN=$ac_ct_DUMPBIN
5965 fi
d7040cdb 5966fi
24443139 5967
24443139 5968
d7040cdb
SE
5969 if test "$DUMPBIN" != ":"; then
5970 NM="$DUMPBIN"
cfbc9945 5971 fi
d7040cdb
SE
5972fi
5973test -z "$NM" && NM=nm
a703a6ea 5974
f5385ebf 5975
cfbc9945 5976
24443139
AS
5977
5978
5979
81ecdfbb
RW
5980{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5981$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5982if test "${lt_cv_nm_interface+set}" = set; then :
5983 $as_echo_n "(cached) " >&6
d7040cdb
SE
5984else
5985 lt_cv_nm_interface="BSD nm"
5986 echo "int some_variable = 0;" > conftest.$ac_ext
bf993e3c 5987 (eval echo "\"\$as_me:5987: $ac_compile\"" >&5)
d7040cdb
SE
5988 (eval "$ac_compile" 2>conftest.err)
5989 cat conftest.err >&5
bf993e3c 5990 (eval echo "\"\$as_me:5990: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
d7040cdb
SE
5991 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5992 cat conftest.err >&5
bf993e3c 5993 (eval echo "\"\$as_me:5993: output\"" >&5)
d7040cdb
SE
5994 cat conftest.out >&5
5995 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5996 lt_cv_nm_interface="MS dumpbin"
5997 fi
5998 rm -f conftest*
cfbc9945 5999fi
81ecdfbb
RW
6000{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6001$as_echo "$lt_cv_nm_interface" >&6; }
a703a6ea 6002
81ecdfbb
RW
6003{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6004$as_echo_n "checking whether ln -s works... " >&6; }
d7040cdb
SE
6005LN_S=$as_ln_s
6006if test "$LN_S" = "ln -s"; then
81ecdfbb
RW
6007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6008$as_echo "yes" >&6; }
d7040cdb 6009else
81ecdfbb
RW
6010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6011$as_echo "no, using $LN_S" >&6; }
d7040cdb 6012fi
252b5132 6013
cfbc9945 6014# find the maximum length of command line arguments
81ecdfbb
RW
6015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6016$as_echo_n "checking the maximum length of command line arguments... " >&6; }
6017if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
6018 $as_echo_n "(cached) " >&6
cfbc9945
SE
6019else
6020 i=0
6021 teststring="ABCD"
5464f5a1 6022
cfbc9945
SE
6023 case $build_os in
6024 msdosdjgpp*)
6025 # On DJGPP, this test can blow up pretty badly due to problems in libc
6026 # (any single argument exceeding 2000 bytes causes a buffer overrun
6027 # during glob expansion). Even if it were fixed, the result of this
6028 # check would be larger than it should be.
6029 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6030 ;;
5464f5a1 6031
d7040cdb
SE
6032 gnu*)
6033 # Under GNU Hurd, this test is not required because there is
6034 # no limit to the length of command line arguments.
6035 # Libtool will interpret -1 as no limit whatsoever
6036 lt_cv_sys_max_cmd_len=-1;
6037 ;;
6038
718a6fd8 6039 cygwin* | mingw* | cegcc*)
cfbc9945
SE
6040 # On Win9x/ME, this test blows up -- it succeeds, but takes
6041 # about 5 minutes as the teststring grows exponentially.
6042 # Worse, since 9x/ME are not pre-emptively multitasking,
6043 # you end up with a "frozen" computer, even though with patience
6044 # the test eventually succeeds (with a max line length of 256k).
6045 # Instead, let's just punt: use the minimum linelength reported by
6046 # all of the supported platforms: 8192 (on NT/2K/XP).
6047 lt_cv_sys_max_cmd_len=8192;
6048 ;;
5464f5a1 6049
cfbc9945
SE
6050 amigaos*)
6051 # On AmigaOS with pdksh, this test takes hours, literally.
6052 # So we just punt and use a minimum line length of 8192.
6053 lt_cv_sys_max_cmd_len=8192;
6054 ;;
5464f5a1 6055
cfbc9945
SE
6056 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6057 # This has been around since 386BSD, at least. Likely further.
6058 if test -x /sbin/sysctl; then
6059 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6060 elif test -x /usr/sbin/sysctl; then
6061 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6062 else
d7040cdb 6063 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
cfbc9945
SE
6064 fi
6065 # And add a safety zone
6066 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6067 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6068 ;;
d7040cdb
SE
6069
6070 interix*)
6071 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6072 lt_cv_sys_max_cmd_len=196608
6073 ;;
6074
6075 osf*)
6076 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6077 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6078 # nice to cause kernel panics so lets avoid the loop below.
6079 # First set a reasonable default.
6080 lt_cv_sys_max_cmd_len=16384
6081 #
6082 if test -x /sbin/sysconfig; then
6083 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6084 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6085 esac
6086 fi
6087 ;;
6088 sco3.2v5*)
6089 lt_cv_sys_max_cmd_len=102400
6090 ;;
6091 sysv5* | sco5v6* | sysv4.2uw2*)
6092 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6093 if test -n "$kargmax"; then
6094 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6095 else
6096 lt_cv_sys_max_cmd_len=32768
6097 fi
6098 ;;
6099 *)
718a6fd8
SE
6100 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6101 if test -n "$lt_cv_sys_max_cmd_len"; then
79887925
L
6102 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6103 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6104 else
6105 # Make teststring a little bigger before we do anything with it.
6106 # a 1K string should be a reasonable start.
6107 for i in 1 2 3 4 5 6 7 8 ; do
6108 teststring=$teststring$teststring
6109 done
6110 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6111 # If test is not a shell built-in, we'll probably end up computing a
6112 # maximum length that is only half of the actual maximum length, but
6113 # we can't tell.
6114 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
6115 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
6116 test $i != 17 # 1/2 MB should be enough
6117 do
6118 i=`expr $i + 1`
6119 teststring=$teststring$teststring
6120 done
6121 # Only check the string length outside the loop.
6122 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6123 teststring=
6124 # Add a significant safety factor because C++ compilers can tack on
6125 # massive amounts of additional arguments before passing them to the
6126 # linker. It appears as though 1/2 is a usable value.
6127 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6128 fi
d7040cdb 6129 ;;
cfbc9945 6130 esac
5464f5a1 6131
252b5132 6132fi
cfbc9945 6133
d7040cdb 6134if test -n $lt_cv_sys_max_cmd_len ; then
81ecdfbb
RW
6135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6136$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5464f5a1 6137else
81ecdfbb
RW
6138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6139$as_echo "none" >&6; }
5464f5a1 6140fi
d7040cdb 6141max_cmd_len=$lt_cv_sys_max_cmd_len
252b5132 6142
cfbc9945 6143
252b5132 6144
cfbc9945 6145
cfbc9945 6146
d7040cdb 6147
d7040cdb
SE
6148: ${CP="cp -f"}
6149: ${MV="mv -f"}
6150: ${RM="rm -f"}
6151
81ecdfbb
RW
6152{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6153$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
d7040cdb
SE
6154# Try some XSI features
6155xsi_shell=no
6156( _lt_dummy="a/b/c"
6157 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
718a6fd8
SE
6158 = c,a/b,, \
6159 && eval 'test $(( 1 + 1 )) -eq 2 \
6160 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
d7040cdb 6161 && xsi_shell=yes
81ecdfbb
RW
6162{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6163$as_echo "$xsi_shell" >&6; }
d7040cdb
SE
6164
6165
81ecdfbb
RW
6166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6167$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
d7040cdb
SE
6168lt_shell_append=no
6169( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6170 >/dev/null 2>&1 \
6171 && lt_shell_append=yes
81ecdfbb
RW
6172{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6173$as_echo "$lt_shell_append" >&6; }
d7040cdb
SE
6174
6175
6176if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6177 lt_unset=unset
5464f5a1 6178else
d7040cdb 6179 lt_unset=false
5464f5a1 6180fi
252b5132 6181
d7040cdb
SE
6182
6183
6184
6185
6186# test EBCDIC or ASCII
6187case `echo X|tr X '\101'` in
6188 A) # ASCII based system
6189 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6190 lt_SP2NL='tr \040 \012'
6191 lt_NL2SP='tr \015\012 \040\040'
6192 ;;
6193 *) # EBCDIC based system
6194 lt_SP2NL='tr \100 \n'
6195 lt_NL2SP='tr \r\n \100\100'
6196 ;;
6197esac
6198
6199
6200
6201
6202
6203
6204
6205
6206
81ecdfbb
RW
6207{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6208$as_echo_n "checking for $LD option to reload object files... " >&6; }
6209if test "${lt_cv_ld_reload_flag+set}" = set; then :
6210 $as_echo_n "(cached) " >&6
5464f5a1 6211else
d7040cdb
SE
6212 lt_cv_ld_reload_flag='-r'
6213fi
81ecdfbb
RW
6214{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6215$as_echo "$lt_cv_ld_reload_flag" >&6; }
d7040cdb
SE
6216reload_flag=$lt_cv_ld_reload_flag
6217case $reload_flag in
6218"" | " "*) ;;
6219*) reload_flag=" $reload_flag" ;;
6220esac
6221reload_cmds='$LD$reload_flag -o $output$reload_objs'
6222case $host_os in
6223 darwin*)
6224 if test "$GCC" = yes; then
6225 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6226 else
6227 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6228 fi
6229 ;;
6230esac
6231
6232
6233
6234
6235
6236
6237
6238
6239
718a6fd8
SE
6240if test -n "$ac_tool_prefix"; then
6241 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6242set dummy ${ac_tool_prefix}objdump; ac_word=$2
81ecdfbb
RW
6243{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6244$as_echo_n "checking for $ac_word... " >&6; }
6245if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
6246 $as_echo_n "(cached) " >&6
718a6fd8
SE
6247else
6248 if test -n "$OBJDUMP"; then
6249 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6250else
6251as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6252for as_dir in $PATH
6253do
6254 IFS=$as_save_IFS
6255 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6256 for ac_exec_ext in '' $ac_executable_extensions; do
6257 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
718a6fd8 6258 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
81ecdfbb 6259 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
6260 break 2
6261 fi
6262done
81ecdfbb
RW
6263 done
6264IFS=$as_save_IFS
718a6fd8
SE
6265
6266fi
6267fi
6268OBJDUMP=$ac_cv_prog_OBJDUMP
6269if test -n "$OBJDUMP"; then
81ecdfbb
RW
6270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6271$as_echo "$OBJDUMP" >&6; }
718a6fd8 6272else
81ecdfbb
RW
6273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6274$as_echo "no" >&6; }
718a6fd8
SE
6275fi
6276
81ecdfbb 6277
718a6fd8
SE
6278fi
6279if test -z "$ac_cv_prog_OBJDUMP"; then
6280 ac_ct_OBJDUMP=$OBJDUMP
6281 # Extract the first word of "objdump", so it can be a program name with args.
6282set dummy objdump; ac_word=$2
81ecdfbb
RW
6283{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6284$as_echo_n "checking for $ac_word... " >&6; }
6285if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
6286 $as_echo_n "(cached) " >&6
718a6fd8
SE
6287else
6288 if test -n "$ac_ct_OBJDUMP"; then
6289 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6290else
6291as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6292for as_dir in $PATH
6293do
6294 IFS=$as_save_IFS
6295 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6296 for ac_exec_ext in '' $ac_executable_extensions; do
6297 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
718a6fd8 6298 ac_cv_prog_ac_ct_OBJDUMP="objdump"
81ecdfbb 6299 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
6300 break 2
6301 fi
6302done
81ecdfbb
RW
6303 done
6304IFS=$as_save_IFS
718a6fd8 6305
718a6fd8
SE
6306fi
6307fi
6308ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6309if test -n "$ac_ct_OBJDUMP"; then
81ecdfbb
RW
6310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6311$as_echo "$ac_ct_OBJDUMP" >&6; }
718a6fd8 6312else
81ecdfbb
RW
6313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6314$as_echo "no" >&6; }
718a6fd8
SE
6315fi
6316
81ecdfbb
RW
6317 if test "x$ac_ct_OBJDUMP" = x; then
6318 OBJDUMP="false"
6319 else
6320 case $cross_compiling:$ac_tool_warned in
6321yes:)
6322{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6323$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6324ac_tool_warned=yes ;;
6325esac
6326 OBJDUMP=$ac_ct_OBJDUMP
6327 fi
718a6fd8
SE
6328else
6329 OBJDUMP="$ac_cv_prog_OBJDUMP"
6330fi
6331
6332test -z "$OBJDUMP" && OBJDUMP=objdump
6333
6334
6335
6336
6337
6338
6339
6340
d7040cdb 6341
81ecdfbb
RW
6342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6343$as_echo_n "checking how to recognize dependent libraries... " >&6; }
6344if test "${lt_cv_deplibs_check_method+set}" = set; then :
6345 $as_echo_n "(cached) " >&6
d7040cdb
SE
6346else
6347 lt_cv_file_magic_cmd='$MAGIC_CMD'
6348lt_cv_file_magic_test_file=
6349lt_cv_deplibs_check_method='unknown'
6350# Need to set the preceding variable on all platforms that support
6351# interlibrary dependencies.
6352# 'none' -- dependencies not supported.
6353# `unknown' -- same as none, but documents that we really don't know.
6354# 'pass_all' -- all dependencies passed with no checks.
6355# 'test_compile' -- check by making test program.
6356# 'file_magic [[regex]]' -- check by looking for files in library path
6357# which responds to the $file_magic_cmd with a given extended regex.
6358# If you have `file' or equivalent on your system and you're not sure
6359# whether `pass_all' will *always* work, you probably want this one.
6360
6361case $host_os in
e81819a5 6362aix[4-9]*)
d7040cdb
SE
6363 lt_cv_deplibs_check_method=pass_all
6364 ;;
6365
6366beos*)
6367 lt_cv_deplibs_check_method=pass_all
6368 ;;
6369
6370bsdi[45]*)
6371 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6372 lt_cv_file_magic_cmd='/usr/bin/file -L'
6373 lt_cv_file_magic_test_file=/shlib/libc.so
6374 ;;
6375
6376cygwin*)
6377 # func_win32_libid is a shell function defined in ltmain.sh
6378 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6379 lt_cv_file_magic_cmd='func_win32_libid'
6380 ;;
6381
6382mingw* | pw32*)
6383 # Base MSYS/MinGW do not provide the 'file' command needed by
6384 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6385 # unless we find 'file', for example because we are cross-compiling.
6386 if ( file / ) >/dev/null 2>&1; then
6387 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6388 lt_cv_file_magic_cmd='func_win32_libid'
6389 else
6390 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6391 lt_cv_file_magic_cmd='$OBJDUMP -f'
6392 fi
6393 ;;
6394
718a6fd8
SE
6395cegcc)
6396 # use the weaker test based on 'objdump'. See mingw*.
6397 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6398 lt_cv_file_magic_cmd='$OBJDUMP -f'
6399 ;;
6400
d7040cdb
SE
6401darwin* | rhapsody*)
6402 lt_cv_deplibs_check_method=pass_all
cfbc9945 6403 ;;
d7040cdb
SE
6404
6405freebsd* | dragonfly*)
6406 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6407 case $host_cpu in
6408 i*86 )
6409 # Not sure whether the presence of OpenBSD here was a mistake.
6410 # Let's accept both of them until this is cleared up.
6411 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6412 lt_cv_file_magic_cmd=/usr/bin/file
6413 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6414 ;;
6415 esac
6416 else
6417 lt_cv_deplibs_check_method=pass_all
6418 fi
6419 ;;
6420
6421gnu*)
6422 lt_cv_deplibs_check_method=pass_all
cfbc9945 6423 ;;
d7040cdb
SE
6424
6425hpux10.20* | hpux11*)
6426 lt_cv_file_magic_cmd=/usr/bin/file
6427 case $host_cpu in
6428 ia64*)
6429 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6430 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6431 ;;
6432 hppa*64*)
6433 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
6434 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6435 ;;
cfbc9945 6436 *)
d7040cdb
SE
6437 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6438 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6439 ;;
6440 esac
6441 ;;
6be7c12c 6442
d7040cdb
SE
6443interix[3-9]*)
6444 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6445 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6446 ;;
cfbc9945 6447
d7040cdb
SE
6448irix5* | irix6* | nonstopux*)
6449 case $LD in
6450 *-32|*"-32 ") libmagic=32-bit;;
6451 *-n32|*"-n32 ") libmagic=N32;;
6452 *-64|*"-64 ") libmagic=64-bit;;
6453 *) libmagic=never-match;;
6454 esac
6455 lt_cv_deplibs_check_method=pass_all
cfbc9945 6456 ;;
cfbc9945 6457
d7040cdb 6458# This must be Linux ELF.
58e24671 6459linux* | k*bsd*-gnu | kopensolaris*-gnu)
d7040cdb
SE
6460 lt_cv_deplibs_check_method=pass_all
6461 ;;
5464f5a1 6462
d7040cdb
SE
6463netbsd*)
6464 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6465 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
cfbc9945 6466 else
d7040cdb 6467 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
cfbc9945 6468 fi
d7040cdb
SE
6469 ;;
6470
6471newos6*)
6472 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6473 lt_cv_file_magic_cmd=/usr/bin/file
6474 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6475 ;;
6476
6477*nto* | *qnx*)
6478 lt_cv_deplibs_check_method=pass_all
6479 ;;
cfbc9945 6480
d7040cdb
SE
6481openbsd*)
6482 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6483 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6484 else
6485 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
cfbc9945
SE
6486 fi
6487 ;;
d7040cdb
SE
6488
6489osf3* | osf4* | osf5*)
6490 lt_cv_deplibs_check_method=pass_all
6491 ;;
6492
6493rdos*)
6494 lt_cv_deplibs_check_method=pass_all
6495 ;;
6496
6497solaris*)
6498 lt_cv_deplibs_check_method=pass_all
6499 ;;
6500
6501sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6502 lt_cv_deplibs_check_method=pass_all
6503 ;;
6504
6505sysv4 | sysv4.3*)
6506 case $host_vendor in
6507 motorola)
6508 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]'
6509 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6510 ;;
6511 ncr)
6512 lt_cv_deplibs_check_method=pass_all
6513 ;;
6514 sequent)
6515 lt_cv_file_magic_cmd='/bin/file'
6516 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6517 ;;
6518 sni)
6519 lt_cv_file_magic_cmd='/bin/file'
6520 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6521 lt_cv_file_magic_test_file=/lib/libc.so
6522 ;;
6523 siemens)
6524 lt_cv_deplibs_check_method=pass_all
6525 ;;
6526 pc)
6527 lt_cv_deplibs_check_method=pass_all
6528 ;;
6529 esac
6530 ;;
6531
6532tpf*)
6533 lt_cv_deplibs_check_method=pass_all
6534 ;;
cfbc9945
SE
6535esac
6536
d7040cdb 6537fi
81ecdfbb
RW
6538{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6539$as_echo "$lt_cv_deplibs_check_method" >&6; }
d7040cdb
SE
6540file_magic_cmd=$lt_cv_file_magic_cmd
6541deplibs_check_method=$lt_cv_deplibs_check_method
6542test -z "$deplibs_check_method" && deplibs_check_method=unknown
6543
6544
6545
6546
6547
6548
6549
6550
6551
6552
6553
6554
cfbc9945 6555if test -n "$ac_tool_prefix"; then
d7040cdb
SE
6556 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6557set dummy ${ac_tool_prefix}ar; ac_word=$2
81ecdfbb
RW
6558{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6559$as_echo_n "checking for $ac_word... " >&6; }
6560if test "${ac_cv_prog_AR+set}" = set; then :
6561 $as_echo_n "(cached) " >&6
5464f5a1 6562else
d7040cdb
SE
6563 if test -n "$AR"; then
6564 ac_cv_prog_AR="$AR" # Let the user override the test.
5464f5a1
NN
6565else
6566as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6567for as_dir in $PATH
6568do
6569 IFS=$as_save_IFS
6570 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6571 for ac_exec_ext in '' $ac_executable_extensions; do
6572 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d7040cdb 6573 ac_cv_prog_AR="${ac_tool_prefix}ar"
81ecdfbb 6574 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5464f5a1
NN
6575 break 2
6576 fi
6577done
81ecdfbb
RW
6578 done
6579IFS=$as_save_IFS
5464f5a1
NN
6580
6581fi
6582fi
d7040cdb
SE
6583AR=$ac_cv_prog_AR
6584if test -n "$AR"; then
81ecdfbb
RW
6585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6586$as_echo "$AR" >&6; }
5464f5a1 6587else
81ecdfbb
RW
6588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6589$as_echo "no" >&6; }
5464f5a1
NN
6590fi
6591
81ecdfbb 6592
5464f5a1 6593fi
d7040cdb
SE
6594if test -z "$ac_cv_prog_AR"; then
6595 ac_ct_AR=$AR
6596 # Extract the first word of "ar", so it can be a program name with args.
6597set dummy ar; ac_word=$2
81ecdfbb
RW
6598{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6599$as_echo_n "checking for $ac_word... " >&6; }
6600if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6601 $as_echo_n "(cached) " >&6
252b5132 6602else
d7040cdb
SE
6603 if test -n "$ac_ct_AR"; then
6604 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
252b5132 6605else
5464f5a1
NN
6606as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6607for as_dir in $PATH
6608do
6609 IFS=$as_save_IFS
6610 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6611 for ac_exec_ext in '' $ac_executable_extensions; do
6612 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d7040cdb 6613 ac_cv_prog_ac_ct_AR="ar"
81ecdfbb 6614 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5464f5a1
NN
6615 break 2
6616 fi
6617done
81ecdfbb
RW
6618 done
6619IFS=$as_save_IFS
5464f5a1 6620
5464f5a1
NN
6621fi
6622fi
d7040cdb
SE
6623ac_ct_AR=$ac_cv_prog_ac_ct_AR
6624if test -n "$ac_ct_AR"; then
81ecdfbb
RW
6625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6626$as_echo "$ac_ct_AR" >&6; }
d7040cdb 6627else
81ecdfbb
RW
6628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6629$as_echo "no" >&6; }
5464f5a1
NN
6630fi
6631
81ecdfbb
RW
6632 if test "x$ac_ct_AR" = x; then
6633 AR="false"
6634 else
6635 case $cross_compiling:$ac_tool_warned in
6636yes:)
6637{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6638$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6639ac_tool_warned=yes ;;
6640esac
6641 AR=$ac_ct_AR
6642 fi
cfbc9945 6643else
d7040cdb 6644 AR="$ac_cv_prog_AR"
5464f5a1 6645fi
cfbc9945 6646
d7040cdb
SE
6647test -z "$AR" && AR=ar
6648test -z "$AR_FLAGS" && AR_FLAGS=cru
6649
6650
6651
6652
6653
6654
6655
6656
6657
6658
6659
cfbc9945
SE
6660if test -n "$ac_tool_prefix"; then
6661 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6662set dummy ${ac_tool_prefix}strip; ac_word=$2
81ecdfbb
RW
6663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6664$as_echo_n "checking for $ac_word... " >&6; }
6665if test "${ac_cv_prog_STRIP+set}" = set; then :
6666 $as_echo_n "(cached) " >&6
5464f5a1 6667else
cfbc9945
SE
6668 if test -n "$STRIP"; then
6669 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5464f5a1
NN
6670else
6671as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6672for as_dir in $PATH
6673do
6674 IFS=$as_save_IFS
6675 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6676 for ac_exec_ext in '' $ac_executable_extensions; do
6677 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
cfbc9945 6678 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
81ecdfbb 6679 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5464f5a1
NN
6680 break 2
6681 fi
6682done
81ecdfbb
RW
6683 done
6684IFS=$as_save_IFS
5464f5a1
NN
6685
6686fi
6687fi
cfbc9945
SE
6688STRIP=$ac_cv_prog_STRIP
6689if test -n "$STRIP"; then
81ecdfbb
RW
6690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6691$as_echo "$STRIP" >&6; }
5464f5a1 6692else
81ecdfbb
RW
6693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6694$as_echo "no" >&6; }
5464f5a1
NN
6695fi
6696
81ecdfbb 6697
252b5132 6698fi
cfbc9945
SE
6699if test -z "$ac_cv_prog_STRIP"; then
6700 ac_ct_STRIP=$STRIP
6701 # Extract the first word of "strip", so it can be a program name with args.
6702set dummy strip; ac_word=$2
81ecdfbb
RW
6703{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6704$as_echo_n "checking for $ac_word... " >&6; }
6705if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6706 $as_echo_n "(cached) " >&6
5464f5a1 6707else
cfbc9945
SE
6708 if test -n "$ac_ct_STRIP"; then
6709 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5464f5a1
NN
6710else
6711as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6712for as_dir in $PATH
6713do
6714 IFS=$as_save_IFS
6715 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6716 for ac_exec_ext in '' $ac_executable_extensions; do
6717 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
cfbc9945 6718 ac_cv_prog_ac_ct_STRIP="strip"
81ecdfbb 6719 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5464f5a1
NN
6720 break 2
6721 fi
6722done
81ecdfbb
RW
6723 done
6724IFS=$as_save_IFS
5464f5a1
NN
6725
6726fi
6727fi
cfbc9945
SE
6728ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6729if test -n "$ac_ct_STRIP"; then
81ecdfbb
RW
6730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6731$as_echo "$ac_ct_STRIP" >&6; }
5464f5a1 6732else
81ecdfbb
RW
6733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6734$as_echo "no" >&6; }
5464f5a1
NN
6735fi
6736
81ecdfbb
RW
6737 if test "x$ac_ct_STRIP" = x; then
6738 STRIP=":"
6739 else
6740 case $cross_compiling:$ac_tool_warned in
6741yes:)
6742{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6743$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6744ac_tool_warned=yes ;;
6745esac
6746 STRIP=$ac_ct_STRIP
6747 fi
cfbc9945
SE
6748else
6749 STRIP="$ac_cv_prog_STRIP"
5464f5a1
NN
6750fi
6751
d7040cdb 6752test -z "$STRIP" && STRIP=:
5464f5a1 6753
cfbc9945
SE
6754
6755
cfbc9945 6756
cfbc9945
SE
6757
6758
d7040cdb
SE
6759if test -n "$ac_tool_prefix"; then
6760 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6761set dummy ${ac_tool_prefix}ranlib; ac_word=$2
81ecdfbb
RW
6762{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6763$as_echo_n "checking for $ac_word... " >&6; }
6764if test "${ac_cv_prog_RANLIB+set}" = set; then :
6765 $as_echo_n "(cached) " >&6
cfbc9945 6766else
d7040cdb
SE
6767 if test -n "$RANLIB"; then
6768 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6769else
6770as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6771for as_dir in $PATH
6772do
6773 IFS=$as_save_IFS
6774 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6775 for ac_exec_ext in '' $ac_executable_extensions; do
6776 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d7040cdb 6777 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
81ecdfbb 6778 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d7040cdb 6779 break 2
cfbc9945 6780 fi
d7040cdb 6781done
81ecdfbb
RW
6782 done
6783IFS=$as_save_IFS
cfbc9945 6784
d7040cdb
SE
6785fi
6786fi
6787RANLIB=$ac_cv_prog_RANLIB
6788if test -n "$RANLIB"; then
81ecdfbb
RW
6789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6790$as_echo "$RANLIB" >&6; }
d7040cdb 6791else
81ecdfbb
RW
6792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6793$as_echo "no" >&6; }
d7040cdb 6794fi
cfbc9945 6795
81ecdfbb 6796
d7040cdb
SE
6797fi
6798if test -z "$ac_cv_prog_RANLIB"; then
6799 ac_ct_RANLIB=$RANLIB
6800 # Extract the first word of "ranlib", so it can be a program name with args.
6801set dummy ranlib; ac_word=$2
81ecdfbb
RW
6802{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6803$as_echo_n "checking for $ac_word... " >&6; }
6804if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6805 $as_echo_n "(cached) " >&6
d7040cdb
SE
6806else
6807 if test -n "$ac_ct_RANLIB"; then
6808 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6809else
6810as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6811for as_dir in $PATH
6812do
6813 IFS=$as_save_IFS
6814 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6815 for ac_exec_ext in '' $ac_executable_extensions; do
6816 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d7040cdb 6817 ac_cv_prog_ac_ct_RANLIB="ranlib"
81ecdfbb 6818 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d7040cdb 6819 break 2
cfbc9945 6820 fi
d7040cdb 6821done
81ecdfbb
RW
6822 done
6823IFS=$as_save_IFS
cfbc9945 6824
d7040cdb
SE
6825fi
6826fi
6827ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6828if test -n "$ac_ct_RANLIB"; then
81ecdfbb
RW
6829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6830$as_echo "$ac_ct_RANLIB" >&6; }
cfbc9945 6831else
81ecdfbb
RW
6832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6833$as_echo "no" >&6; }
d7040cdb 6834fi
5464f5a1 6835
81ecdfbb
RW
6836 if test "x$ac_ct_RANLIB" = x; then
6837 RANLIB=":"
6838 else
6839 case $cross_compiling:$ac_tool_warned in
6840yes:)
6841{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6842$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6843ac_tool_warned=yes ;;
6844esac
6845 RANLIB=$ac_ct_RANLIB
6846 fi
d7040cdb
SE
6847else
6848 RANLIB="$ac_cv_prog_RANLIB"
6849fi
5464f5a1 6850
d7040cdb 6851test -z "$RANLIB" && RANLIB=:
5464f5a1 6852
5464f5a1 6853
5464f5a1 6854
cfbc9945 6855
cfbc9945 6856
d7040cdb
SE
6857
6858# Determine commands to create old-style static archives.
718a6fd8 6859old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
d7040cdb
SE
6860old_postinstall_cmds='chmod 644 $oldlib'
6861old_postuninstall_cmds=
6862
6863if test -n "$RANLIB"; then
6864 case $host_os in
6865 openbsd*)
6866 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6867 ;;
6868 *)
6869 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6870 ;;
6871 esac
6872 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
cfbc9945 6873fi
cfbc9945
SE
6874
6875
cfbc9945
SE
6876
6877
cfbc9945 6878
cfbc9945 6879
cfbc9945 6880
cfbc9945 6881
cfbc9945
SE
6882
6883
cfbc9945 6884
cfbc9945 6885
cfbc9945
SE
6886
6887
6888
6889
6890
6891
6892
5464f5a1 6893
5464f5a1 6894
cfbc9945
SE
6895
6896
6897
5464f5a1 6898
5464f5a1 6899
cfbc9945
SE
6900
6901
6902
5464f5a1 6903
cfbc9945
SE
6904
6905
6906
6907
d7040cdb
SE
6908# If no C compiler was specified, use CC.
6909LTCC=${LTCC-"$CC"}
cfbc9945 6910
d7040cdb
SE
6911# If no C compiler flags were specified, use CFLAGS.
6912LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
cfbc9945 6913
d7040cdb
SE
6914# Allow CC to be a program name with arguments.
6915compiler=$CC
cfbc9945 6916
cfbc9945 6917
d7040cdb 6918# Check for command to grab the raw symbol name followed by C symbol from nm.
81ecdfbb
RW
6919{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6920$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6921if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6922 $as_echo_n "(cached) " >&6
d7040cdb 6923else
5464f5a1 6924
d7040cdb
SE
6925# These are sane defaults that work on at least a few old systems.
6926# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5464f5a1 6927
d7040cdb
SE
6928# Character class describing NM global symbol codes.
6929symcode='[BCDEGRST]'
6930
6931# Regexp to match symbols that can be accessed directly from C.
6932sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6933
6934# Define system-specific variables.
6935case $host_os in
6936aix*)
6937 symcode='[BCDT]'
6938 ;;
718a6fd8 6939cygwin* | mingw* | pw32* | cegcc*)
d7040cdb
SE
6940 symcode='[ABCDGISTW]'
6941 ;;
6942hpux*)
6943 if test "$host_cpu" = ia64; then
6944 symcode='[ABCDEGRST]'
6945 fi
6946 ;;
6947irix* | nonstopux*)
6948 symcode='[BCDEGRST]'
6949 ;;
6950osf*)
6951 symcode='[BCDEGQRST]'
6952 ;;
6953solaris*)
6954 symcode='[BDRT]'
6955 ;;
6956sco3.2v5*)
6957 symcode='[DT]'
6958 ;;
6959sysv4.2uw2*)
6960 symcode='[DT]'
6961 ;;
6962sysv5* | sco5v6* | unixware* | OpenUNIX*)
6963 symcode='[ABDT]'
6964 ;;
6965sysv4)
6966 symcode='[DFNSTU]'
6967 ;;
cfbc9945 6968esac
5464f5a1 6969
d7040cdb
SE
6970# If we're using GNU nm, then use its standard symbol codes.
6971case `$NM -V 2>&1` in
6972*GNU* | *'with BFD'*)
6973 symcode='[ABCDGIRSTW]' ;;
6974esac
5464f5a1 6975
d7040cdb
SE
6976# Transform an extracted symbol line into a proper C declaration.
6977# Some systems (esp. on ia64) link data and code symbols differently,
6978# so use this general approach.
6979lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5464f5a1 6980
d7040cdb
SE
6981# Transform an extracted symbol line into symbol name and symbol address
6982lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
718a6fd8 6983lt_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 6984
d7040cdb
SE
6985# Handle CRLF in mingw tool chain
6986opt_cr=
6987case $build_os in
6988mingw*)
6989 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6990 ;;
6991esac
5464f5a1 6992
d7040cdb
SE
6993# Try without a prefix underscore, then with it.
6994for ac_symprfx in "" "_"; do
6995
6996 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6997 symxfrm="\\1 $ac_symprfx\\2 \\2"
6998
6999 # Write the raw and C identifiers.
7000 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7001 # Fake it for dumpbin and say T for any non-static function
7002 # and D for any global variable.
7003 # Also find C++ and __fastcall symbols from MSVC++,
7004 # which start with @ or ?.
7005 lt_cv_sys_global_symbol_pipe="$AWK '"\
7006" {last_section=section; section=\$ 3};"\
7007" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7008" \$ 0!~/External *\|/{next};"\
7009" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7010" {if(hide[section]) next};"\
7011" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7012" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7013" s[1]~/^[@?]/{print s[1], s[1]; next};"\
7014" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7015" ' prfx=^$ac_symprfx"
7016 else
7017 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7018 fi
cfbc9945 7019
d7040cdb
SE
7020 # Check to see that the pipe works correctly.
7021 pipe_works=no
cfbc9945 7022
d7040cdb
SE
7023 rm -f conftest*
7024 cat > conftest.$ac_ext <<_LT_EOF
7025#ifdef __cplusplus
7026extern "C" {
7027#endif
7028char nm_test_var;
7029void nm_test_func(void);
7030void nm_test_func(void){}
7031#ifdef __cplusplus
7032}
7033#endif
7034int main(){nm_test_var='a';nm_test_func();return(0);}
7035_LT_EOF
cfbc9945 7036
81ecdfbb 7037 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
d7040cdb
SE
7038 (eval $ac_compile) 2>&5
7039 ac_status=$?
81ecdfbb
RW
7040 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7041 test $ac_status = 0; }; then
d7040cdb
SE
7042 # Now try to grab the symbols.
7043 nlist=conftest.nm
81ecdfbb 7044 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
d7040cdb
SE
7045 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7046 ac_status=$?
81ecdfbb
RW
7047 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7048 test $ac_status = 0; } && test -s "$nlist"; then
d7040cdb
SE
7049 # Try sorting and uniquifying the output.
7050 if sort "$nlist" | uniq > "$nlist"T; then
7051 mv -f "$nlist"T "$nlist"
7052 else
7053 rm -f "$nlist"T
7054 fi
cfbc9945 7055
d7040cdb
SE
7056 # Make sure that we snagged all the symbols we need.
7057 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7058 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7059 cat <<_LT_EOF > conftest.$ac_ext
7060#ifdef __cplusplus
7061extern "C" {
7062#endif
cfbc9945 7063
d7040cdb
SE
7064_LT_EOF
7065 # Now generate the symbol file.
7066 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5464f5a1 7067
d7040cdb 7068 cat <<_LT_EOF >> conftest.$ac_ext
cfbc9945 7069
d7040cdb
SE
7070/* The mapping between symbol names and symbols. */
7071const struct {
7072 const char *name;
7073 void *address;
7074}
7075lt__PROGRAM__LTX_preloaded_symbols[] =
7076{
7077 { "@PROGRAM@", (void *) 0 },
7078_LT_EOF
7079 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7080 cat <<\_LT_EOF >> conftest.$ac_ext
7081 {0, (void *) 0}
7082};
7083
7084/* This works around a problem in FreeBSD linker */
7085#ifdef FREEBSD_WORKAROUND
7086static const void *lt_preloaded_setup() {
7087 return lt__PROGRAM__LTX_preloaded_symbols;
7088}
7089#endif
cfbc9945 7090
d7040cdb
SE
7091#ifdef __cplusplus
7092}
7093#endif
7094_LT_EOF
7095 # Now try linking the two files.
7096 mv conftest.$ac_objext conftstm.$ac_objext
7097 lt_save_LIBS="$LIBS"
7098 lt_save_CFLAGS="$CFLAGS"
7099 LIBS="conftstm.$ac_objext"
7100 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
81ecdfbb 7101 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
d7040cdb
SE
7102 (eval $ac_link) 2>&5
7103 ac_status=$?
81ecdfbb
RW
7104 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7105 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
d7040cdb
SE
7106 pipe_works=yes
7107 fi
7108 LIBS="$lt_save_LIBS"
7109 CFLAGS="$lt_save_CFLAGS"
7110 else
7111 echo "cannot find nm_test_func in $nlist" >&5
7112 fi
7113 else
7114 echo "cannot find nm_test_var in $nlist" >&5
7115 fi
7116 else
7117 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7118 fi
7119 else
7120 echo "$progname: failed program was:" >&5
7121 cat conftest.$ac_ext >&5
7122 fi
718a6fd8 7123 rm -rf conftest* conftst*
cfbc9945 7124
d7040cdb
SE
7125 # Do not use the global_symbol_pipe unless it works.
7126 if test "$pipe_works" = yes; then
7127 break
7128 else
7129 lt_cv_sys_global_symbol_pipe=
7130 fi
7131done
cfbc9945 7132
252b5132 7133fi
5464f5a1 7134
d7040cdb
SE
7135if test -z "$lt_cv_sys_global_symbol_pipe"; then
7136 lt_cv_sys_global_symbol_to_cdecl=
7137fi
7138if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
81ecdfbb
RW
7139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7140$as_echo "failed" >&6; }
b3baf5d0 7141else
81ecdfbb
RW
7142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7143$as_echo "ok" >&6; }
d7040cdb 7144fi
5464f5a1 7145
cfbc9945 7146
b3baf5d0 7147
cfbc9945
SE
7148
7149
7150
7151
5464f5a1 7152
4a2a2686
HPN
7153
7154
7155
cfbc9945
SE
7156
7157
cfbc9945 7158
cfbc9945 7159
718a6fd8
SE
7160
7161
7162
7163
7164
9d7cbccd 7165
20e95c23 7166
81ecdfbb
RW
7167# Check whether --enable-libtool-lock was given.
7168if test "${enable_libtool_lock+set}" = set; then :
7169 enableval=$enable_libtool_lock;
7170fi
20e95c23 7171
d7040cdb 7172test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
20e95c23 7173
d7040cdb
SE
7174# Some flags need to be propagated to the compiler or linker for good
7175# libtool support.
7176case $host in
7177ia64-*-hpux*)
7178 # Find out which ABI we are using.
7179 echo 'int i;' > conftest.$ac_ext
81ecdfbb 7180 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
d7040cdb
SE
7181 (eval $ac_compile) 2>&5
7182 ac_status=$?
81ecdfbb
RW
7183 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7184 test $ac_status = 0; }; then
d7040cdb
SE
7185 case `/usr/bin/file conftest.$ac_objext` in
7186 *ELF-32*)
7187 HPUX_IA64_MODE="32"
7188 ;;
7189 *ELF-64*)
7190 HPUX_IA64_MODE="64"
7191 ;;
20e95c23 7192 esac
d7040cdb
SE
7193 fi
7194 rm -rf conftest*
7195 ;;
7196*-*-irix6*)
7197 # Find out which ABI we are using.
bf993e3c 7198 echo '#line 7198 "configure"' > conftest.$ac_ext
81ecdfbb 7199 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
d7040cdb
SE
7200 (eval $ac_compile) 2>&5
7201 ac_status=$?
81ecdfbb
RW
7202 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7203 test $ac_status = 0; }; then
d7040cdb
SE
7204 if test "$lt_cv_prog_gnu_ld" = yes; then
7205 case `/usr/bin/file conftest.$ac_objext` in
7206 *32-bit*)
7207 LD="${LD-ld} -melf32bsmip"
7208 ;;
7209 *N32*)
7210 LD="${LD-ld} -melf32bmipn32"
7211 ;;
7212 *64-bit*)
7213 LD="${LD-ld} -melf64bmip"
7214 ;;
7215 esac
20e95c23 7216 else
d7040cdb
SE
7217 case `/usr/bin/file conftest.$ac_objext` in
7218 *32-bit*)
7219 LD="${LD-ld} -32"
7220 ;;
7221 *N32*)
7222 LD="${LD-ld} -n32"
7223 ;;
7224 *64-bit*)
7225 LD="${LD-ld} -64"
7226 ;;
20e95c23
DJ
7227 esac
7228 fi
d7040cdb
SE
7229 fi
7230 rm -rf conftest*
7231 ;;
20e95c23 7232
d7040cdb
SE
7233x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7234s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7235 # Find out which ABI we are using.
7236 echo 'int i;' > conftest.$ac_ext
81ecdfbb 7237 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
d7040cdb
SE
7238 (eval $ac_compile) 2>&5
7239 ac_status=$?
81ecdfbb
RW
7240 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7241 test $ac_status = 0; }; then
d7040cdb
SE
7242 case `/usr/bin/file conftest.o` in
7243 *32-bit*)
7244 case $host in
7245 x86_64-*kfreebsd*-gnu)
7246 LD="${LD-ld} -m elf_i386_fbsd"
7247 ;;
7248 x86_64-*linux*)
7249 LD="${LD-ld} -m elf_i386"
7250 ;;
7251 ppc64-*linux*|powerpc64-*linux*)
7252 LD="${LD-ld} -m elf32ppclinux"
7253 ;;
7254 s390x-*linux*)
7255 LD="${LD-ld} -m elf_s390"
7256 ;;
7257 sparc64-*linux*)
7258 LD="${LD-ld} -m elf32_sparc"
7259 ;;
7260 esac
7261 ;;
7262 *64-bit*)
7263 case $host in
7264 x86_64-*kfreebsd*-gnu)
7265 LD="${LD-ld} -m elf_x86_64_fbsd"
7266 ;;
7267 x86_64-*linux*)
7268 LD="${LD-ld} -m elf_x86_64"
7269 ;;
7270 ppc*-*linux*|powerpc*-*linux*)
7271 LD="${LD-ld} -m elf64ppc"
7272 ;;
7273 s390*-*linux*|s390*-*tpf*)
7274 LD="${LD-ld} -m elf64_s390"
7275 ;;
7276 sparc*-*linux*)
7277 LD="${LD-ld} -m elf64_sparc"
7278 ;;
7279 esac
7280 ;;
20e95c23
DJ
7281 esac
7282 fi
d7040cdb 7283 rm -rf conftest*
7357c5b6 7284 ;;
d7040cdb 7285
7357c5b6
AM
7286*-*-sco3.2v5*)
7287 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7288 SAVE_CFLAGS="$CFLAGS"
7289 CFLAGS="$CFLAGS -belf"
81ecdfbb
RW
7290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7291$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7292if test "${lt_cv_cc_needs_belf+set}" = set; then :
7293 $as_echo_n "(cached) " >&6
d7040cdb 7294else
7357c5b6
AM
7295 ac_ext=c
7296ac_cpp='$CPP $CPPFLAGS'
7297ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7298ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7299ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7040cdb 7300
81ecdfbb 7301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7040cdb 7302/* end confdefs.h. */
d7040cdb 7303
d7040cdb
SE
7304int
7305main ()
7306{
7357c5b6
AM
7307
7308 ;
7309 return 0;
d7040cdb
SE
7310}
7311_ACEOF
81ecdfbb 7312if ac_fn_c_try_link "$LINENO"; then :
7357c5b6 7313 lt_cv_cc_needs_belf=yes
d7040cdb 7314else
81ecdfbb 7315 lt_cv_cc_needs_belf=no
d7040cdb 7316fi
81ecdfbb
RW
7317rm -f core conftest.err conftest.$ac_objext \
7318 conftest$ac_exeext conftest.$ac_ext
7357c5b6
AM
7319 ac_ext=c
7320ac_cpp='$CPP $CPPFLAGS'
7321ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7322ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7323ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7040cdb
SE
7324
7325fi
81ecdfbb
RW
7326{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7327$as_echo "$lt_cv_cc_needs_belf" >&6; }
7357c5b6
AM
7328 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7329 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7330 CFLAGS="$SAVE_CFLAGS"
7331 fi
7332 ;;
7333sparc*-*solaris*)
7334 # Find out which ABI we are using.
7335 echo 'int i;' > conftest.$ac_ext
81ecdfbb 7336 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7357c5b6
AM
7337 (eval $ac_compile) 2>&5
7338 ac_status=$?
81ecdfbb
RW
7339 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7340 test $ac_status = 0; }; then
7357c5b6
AM
7341 case `/usr/bin/file conftest.o` in
7342 *64-bit*)
7343 case $lt_cv_prog_gnu_ld in
7344 yes*) LD="${LD-ld} -m elf64_sparc" ;;
718a6fd8
SE
7345 *)
7346 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7347 LD="${LD-ld} -64"
7348 fi
7349 ;;
7357c5b6
AM
7350 esac
7351 ;;
7352 esac
7353 fi
7354 rm -rf conftest*
7355 ;;
7356esac
d7040cdb 7357
7357c5b6 7358need_locks="$enable_libtool_lock"
d7040cdb
SE
7359
7360
718a6fd8
SE
7361 case $host_os in
7362 rhapsody* | darwin*)
7363 if test -n "$ac_tool_prefix"; then
7364 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7365set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
81ecdfbb
RW
7366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7367$as_echo_n "checking for $ac_word... " >&6; }
7368if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
7369 $as_echo_n "(cached) " >&6
718a6fd8
SE
7370else
7371 if test -n "$DSYMUTIL"; then
7372 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7373else
7374as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7375for as_dir in $PATH
7376do
7377 IFS=$as_save_IFS
7378 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7379 for ac_exec_ext in '' $ac_executable_extensions; do
7380 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
718a6fd8 7381 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
81ecdfbb 7382 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
7383 break 2
7384 fi
7385done
81ecdfbb
RW
7386 done
7387IFS=$as_save_IFS
718a6fd8
SE
7388
7389fi
7390fi
7391DSYMUTIL=$ac_cv_prog_DSYMUTIL
7392if test -n "$DSYMUTIL"; then
81ecdfbb
RW
7393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7394$as_echo "$DSYMUTIL" >&6; }
718a6fd8 7395else
81ecdfbb
RW
7396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7397$as_echo "no" >&6; }
718a6fd8
SE
7398fi
7399
81ecdfbb 7400
718a6fd8
SE
7401fi
7402if test -z "$ac_cv_prog_DSYMUTIL"; then
7403 ac_ct_DSYMUTIL=$DSYMUTIL
7404 # Extract the first word of "dsymutil", so it can be a program name with args.
7405set dummy dsymutil; ac_word=$2
81ecdfbb
RW
7406{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7407$as_echo_n "checking for $ac_word... " >&6; }
7408if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
7409 $as_echo_n "(cached) " >&6
718a6fd8
SE
7410else
7411 if test -n "$ac_ct_DSYMUTIL"; then
7412 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7413else
7414as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7415for as_dir in $PATH
7416do
7417 IFS=$as_save_IFS
7418 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7419 for ac_exec_ext in '' $ac_executable_extensions; do
7420 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
718a6fd8 7421 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
81ecdfbb 7422 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
7423 break 2
7424 fi
7425done
81ecdfbb
RW
7426 done
7427IFS=$as_save_IFS
718a6fd8 7428
718a6fd8
SE
7429fi
7430fi
7431ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7432if test -n "$ac_ct_DSYMUTIL"; then
81ecdfbb
RW
7433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7434$as_echo "$ac_ct_DSYMUTIL" >&6; }
718a6fd8 7435else
81ecdfbb
RW
7436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7437$as_echo "no" >&6; }
718a6fd8
SE
7438fi
7439
81ecdfbb
RW
7440 if test "x$ac_ct_DSYMUTIL" = x; then
7441 DSYMUTIL=":"
7442 else
7443 case $cross_compiling:$ac_tool_warned in
7444yes:)
7445{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7446$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7447ac_tool_warned=yes ;;
7448esac
7449 DSYMUTIL=$ac_ct_DSYMUTIL
7450 fi
718a6fd8
SE
7451else
7452 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7453fi
7454
7455 if test -n "$ac_tool_prefix"; then
7456 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7457set dummy ${ac_tool_prefix}nmedit; ac_word=$2
81ecdfbb
RW
7458{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7459$as_echo_n "checking for $ac_word... " >&6; }
7460if test "${ac_cv_prog_NMEDIT+set}" = set; then :
7461 $as_echo_n "(cached) " >&6
718a6fd8
SE
7462else
7463 if test -n "$NMEDIT"; then
7464 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7465else
7466as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7467for as_dir in $PATH
7468do
7469 IFS=$as_save_IFS
7470 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7471 for ac_exec_ext in '' $ac_executable_extensions; do
7472 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
718a6fd8 7473 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
81ecdfbb 7474 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
7475 break 2
7476 fi
7477done
81ecdfbb
RW
7478 done
7479IFS=$as_save_IFS
718a6fd8
SE
7480
7481fi
7482fi
7483NMEDIT=$ac_cv_prog_NMEDIT
7484if test -n "$NMEDIT"; then
81ecdfbb
RW
7485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7486$as_echo "$NMEDIT" >&6; }
718a6fd8 7487else
81ecdfbb
RW
7488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7489$as_echo "no" >&6; }
718a6fd8
SE
7490fi
7491
81ecdfbb 7492
718a6fd8
SE
7493fi
7494if test -z "$ac_cv_prog_NMEDIT"; then
7495 ac_ct_NMEDIT=$NMEDIT
7496 # Extract the first word of "nmedit", so it can be a program name with args.
7497set dummy nmedit; ac_word=$2
81ecdfbb
RW
7498{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7499$as_echo_n "checking for $ac_word... " >&6; }
7500if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
7501 $as_echo_n "(cached) " >&6
718a6fd8
SE
7502else
7503 if test -n "$ac_ct_NMEDIT"; then
7504 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7505else
7506as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7507for as_dir in $PATH
7508do
7509 IFS=$as_save_IFS
7510 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7511 for ac_exec_ext in '' $ac_executable_extensions; do
7512 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
718a6fd8 7513 ac_cv_prog_ac_ct_NMEDIT="nmedit"
81ecdfbb 7514 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
7515 break 2
7516 fi
7517done
81ecdfbb
RW
7518 done
7519IFS=$as_save_IFS
718a6fd8 7520
718a6fd8
SE
7521fi
7522fi
7523ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7524if test -n "$ac_ct_NMEDIT"; then
81ecdfbb
RW
7525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7526$as_echo "$ac_ct_NMEDIT" >&6; }
718a6fd8 7527else
81ecdfbb
RW
7528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7529$as_echo "no" >&6; }
718a6fd8
SE
7530fi
7531
81ecdfbb
RW
7532 if test "x$ac_ct_NMEDIT" = x; then
7533 NMEDIT=":"
7534 else
7535 case $cross_compiling:$ac_tool_warned in
7536yes:)
7537{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7538$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7539ac_tool_warned=yes ;;
7540esac
7541 NMEDIT=$ac_ct_NMEDIT
7542 fi
718a6fd8
SE
7543else
7544 NMEDIT="$ac_cv_prog_NMEDIT"
7545fi
7546
7547 if test -n "$ac_tool_prefix"; then
7548 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7549set dummy ${ac_tool_prefix}lipo; ac_word=$2
81ecdfbb
RW
7550{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7551$as_echo_n "checking for $ac_word... " >&6; }
7552if test "${ac_cv_prog_LIPO+set}" = set; then :
7553 $as_echo_n "(cached) " >&6
718a6fd8
SE
7554else
7555 if test -n "$LIPO"; then
7556 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7557else
7558as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7559for as_dir in $PATH
7560do
7561 IFS=$as_save_IFS
7562 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7563 for ac_exec_ext in '' $ac_executable_extensions; do
7564 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
718a6fd8 7565 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
81ecdfbb 7566 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
7567 break 2
7568 fi
7569done
81ecdfbb
RW
7570 done
7571IFS=$as_save_IFS
718a6fd8
SE
7572
7573fi
7574fi
7575LIPO=$ac_cv_prog_LIPO
7576if test -n "$LIPO"; then
81ecdfbb
RW
7577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7578$as_echo "$LIPO" >&6; }
718a6fd8 7579else
81ecdfbb
RW
7580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7581$as_echo "no" >&6; }
718a6fd8
SE
7582fi
7583
81ecdfbb 7584
718a6fd8
SE
7585fi
7586if test -z "$ac_cv_prog_LIPO"; then
7587 ac_ct_LIPO=$LIPO
7588 # Extract the first word of "lipo", so it can be a program name with args.
7589set dummy lipo; ac_word=$2
81ecdfbb
RW
7590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7591$as_echo_n "checking for $ac_word... " >&6; }
7592if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7593 $as_echo_n "(cached) " >&6
718a6fd8
SE
7594else
7595 if test -n "$ac_ct_LIPO"; then
7596 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7597else
7598as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7599for as_dir in $PATH
7600do
7601 IFS=$as_save_IFS
7602 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7603 for ac_exec_ext in '' $ac_executable_extensions; do
7604 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
718a6fd8 7605 ac_cv_prog_ac_ct_LIPO="lipo"
81ecdfbb 7606 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
7607 break 2
7608 fi
7609done
81ecdfbb
RW
7610 done
7611IFS=$as_save_IFS
718a6fd8 7612
718a6fd8
SE
7613fi
7614fi
7615ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7616if test -n "$ac_ct_LIPO"; then
81ecdfbb
RW
7617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7618$as_echo "$ac_ct_LIPO" >&6; }
718a6fd8 7619else
81ecdfbb
RW
7620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7621$as_echo "no" >&6; }
718a6fd8
SE
7622fi
7623
81ecdfbb
RW
7624 if test "x$ac_ct_LIPO" = x; then
7625 LIPO=":"
7626 else
7627 case $cross_compiling:$ac_tool_warned in
7628yes:)
7629{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7630$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7631ac_tool_warned=yes ;;
7632esac
7633 LIPO=$ac_ct_LIPO
7634 fi
7635else
718a6fd8
SE
7636 LIPO="$ac_cv_prog_LIPO"
7637fi
7638
7639 if test -n "$ac_tool_prefix"; then
7640 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7641set dummy ${ac_tool_prefix}otool; ac_word=$2
81ecdfbb
RW
7642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7643$as_echo_n "checking for $ac_word... " >&6; }
7644if test "${ac_cv_prog_OTOOL+set}" = set; then :
7645 $as_echo_n "(cached) " >&6
718a6fd8
SE
7646else
7647 if test -n "$OTOOL"; then
7648 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7649else
7650as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7651for as_dir in $PATH
7652do
7653 IFS=$as_save_IFS
7654 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7655 for ac_exec_ext in '' $ac_executable_extensions; do
7656 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
718a6fd8 7657 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
81ecdfbb 7658 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
7659 break 2
7660 fi
7661done
81ecdfbb
RW
7662 done
7663IFS=$as_save_IFS
718a6fd8
SE
7664
7665fi
7666fi
7667OTOOL=$ac_cv_prog_OTOOL
7668if test -n "$OTOOL"; then
81ecdfbb
RW
7669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7670$as_echo "$OTOOL" >&6; }
718a6fd8 7671else
81ecdfbb
RW
7672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7673$as_echo "no" >&6; }
718a6fd8
SE
7674fi
7675
81ecdfbb 7676
718a6fd8
SE
7677fi
7678if test -z "$ac_cv_prog_OTOOL"; then
7679 ac_ct_OTOOL=$OTOOL
7680 # Extract the first word of "otool", so it can be a program name with args.
7681set dummy otool; ac_word=$2
81ecdfbb
RW
7682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7683$as_echo_n "checking for $ac_word... " >&6; }
7684if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7685 $as_echo_n "(cached) " >&6
718a6fd8
SE
7686else
7687 if test -n "$ac_ct_OTOOL"; then
7688 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7689else
7690as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7691for as_dir in $PATH
7692do
7693 IFS=$as_save_IFS
7694 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7695 for ac_exec_ext in '' $ac_executable_extensions; do
7696 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
718a6fd8 7697 ac_cv_prog_ac_ct_OTOOL="otool"
81ecdfbb 7698 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
7699 break 2
7700 fi
7701done
81ecdfbb
RW
7702 done
7703IFS=$as_save_IFS
718a6fd8 7704
718a6fd8
SE
7705fi
7706fi
7707ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7708if test -n "$ac_ct_OTOOL"; then
81ecdfbb
RW
7709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7710$as_echo "$ac_ct_OTOOL" >&6; }
718a6fd8 7711else
81ecdfbb
RW
7712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7713$as_echo "no" >&6; }
718a6fd8
SE
7714fi
7715
81ecdfbb
RW
7716 if test "x$ac_ct_OTOOL" = x; then
7717 OTOOL=":"
7718 else
7719 case $cross_compiling:$ac_tool_warned in
7720yes:)
7721{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7722$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7723ac_tool_warned=yes ;;
7724esac
7725 OTOOL=$ac_ct_OTOOL
7726 fi
718a6fd8
SE
7727else
7728 OTOOL="$ac_cv_prog_OTOOL"
7729fi
7730
7731 if test -n "$ac_tool_prefix"; then
7732 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7733set dummy ${ac_tool_prefix}otool64; ac_word=$2
81ecdfbb
RW
7734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7735$as_echo_n "checking for $ac_word... " >&6; }
7736if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7737 $as_echo_n "(cached) " >&6
718a6fd8
SE
7738else
7739 if test -n "$OTOOL64"; then
7740 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7741else
7742as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7743for as_dir in $PATH
7744do
7745 IFS=$as_save_IFS
7746 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7747 for ac_exec_ext in '' $ac_executable_extensions; do
7748 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
718a6fd8 7749 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
81ecdfbb 7750 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
7751 break 2
7752 fi
7753done
81ecdfbb
RW
7754 done
7755IFS=$as_save_IFS
718a6fd8
SE
7756
7757fi
7758fi
7759OTOOL64=$ac_cv_prog_OTOOL64
7760if test -n "$OTOOL64"; then
81ecdfbb
RW
7761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7762$as_echo "$OTOOL64" >&6; }
718a6fd8 7763else
81ecdfbb
RW
7764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7765$as_echo "no" >&6; }
718a6fd8
SE
7766fi
7767
81ecdfbb 7768
718a6fd8
SE
7769fi
7770if test -z "$ac_cv_prog_OTOOL64"; then
7771 ac_ct_OTOOL64=$OTOOL64
7772 # Extract the first word of "otool64", so it can be a program name with args.
7773set dummy otool64; ac_word=$2
81ecdfbb
RW
7774{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7775$as_echo_n "checking for $ac_word... " >&6; }
7776if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7777 $as_echo_n "(cached) " >&6
718a6fd8
SE
7778else
7779 if test -n "$ac_ct_OTOOL64"; then
7780 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7781else
7782as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7783for as_dir in $PATH
7784do
7785 IFS=$as_save_IFS
7786 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7787 for ac_exec_ext in '' $ac_executable_extensions; do
7788 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
718a6fd8 7789 ac_cv_prog_ac_ct_OTOOL64="otool64"
81ecdfbb 7790 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
7791 break 2
7792 fi
7793done
81ecdfbb
RW
7794 done
7795IFS=$as_save_IFS
718a6fd8 7796
718a6fd8
SE
7797fi
7798fi
7799ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7800if test -n "$ac_ct_OTOOL64"; then
81ecdfbb
RW
7801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7802$as_echo "$ac_ct_OTOOL64" >&6; }
718a6fd8 7803else
81ecdfbb
RW
7804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7805$as_echo "no" >&6; }
718a6fd8
SE
7806fi
7807
81ecdfbb
RW
7808 if test "x$ac_ct_OTOOL64" = x; then
7809 OTOOL64=":"
7810 else
7811 case $cross_compiling:$ac_tool_warned in
7812yes:)
7813{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7814$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7815ac_tool_warned=yes ;;
7816esac
7817 OTOOL64=$ac_ct_OTOOL64
7818 fi
718a6fd8
SE
7819else
7820 OTOOL64="$ac_cv_prog_OTOOL64"
7821fi
7822
7823
7824
7825
7826
7827
7828
7829
7830
7831
7832
7833
7834
7835
7836
7837
7838
7839
7840
7841
7842
7843
7844
7845
7846
7847
7848
81ecdfbb
RW
7849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7850$as_echo_n "checking for -single_module linker flag... " >&6; }
7851if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7852 $as_echo_n "(cached) " >&6
718a6fd8
SE
7853else
7854 lt_cv_apple_cc_single_mod=no
7855 if test -z "${LT_MULTI_MODULE}"; then
7856 # By default we will add the -single_module flag. You can override
7857 # by either setting the environment variable LT_MULTI_MODULE
7858 # non-empty at configure time, or by adding -multi_module to the
7859 # link flags.
7860 rm -rf libconftest.dylib*
7861 echo "int foo(void){return 1;}" > conftest.c
7862 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7863-dynamiclib -Wl,-single_module conftest.c" >&5
7864 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7865 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7866 _lt_result=$?
7867 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7868 lt_cv_apple_cc_single_mod=yes
7869 else
7870 cat conftest.err >&5
7871 fi
7872 rm -rf libconftest.dylib*
7873 rm -f conftest.*
7874 fi
7875fi
81ecdfbb
RW
7876{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7877$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7879$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7880if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7881 $as_echo_n "(cached) " >&6
718a6fd8
SE
7882else
7883 lt_cv_ld_exported_symbols_list=no
7884 save_LDFLAGS=$LDFLAGS
7885 echo "_main" > conftest.sym
7886 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
81ecdfbb 7887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
718a6fd8
SE
7888/* end confdefs.h. */
7889
7890int
7891main ()
7892{
7893
7894 ;
7895 return 0;
7896}
7897_ACEOF
81ecdfbb 7898if ac_fn_c_try_link "$LINENO"; then :
718a6fd8
SE
7899 lt_cv_ld_exported_symbols_list=yes
7900else
81ecdfbb 7901 lt_cv_ld_exported_symbols_list=no
718a6fd8 7902fi
81ecdfbb
RW
7903rm -f core conftest.err conftest.$ac_objext \
7904 conftest$ac_exeext conftest.$ac_ext
718a6fd8
SE
7905 LDFLAGS="$save_LDFLAGS"
7906
7907fi
81ecdfbb
RW
7908{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7909$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
718a6fd8
SE
7910 case $host_os in
7911 rhapsody* | darwin1.[012])
7912 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7913 darwin1.*)
7914 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7915 darwin*) # darwin 5.x on
7916 # if running on 10.5 or later, the deployment target defaults
7917 # to the OS version, if on x86, and 10.4, the deployment
7918 # target defaults to 10.4. Don't you love it?
7919 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7920 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7921 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7922 10.[012]*)
7923 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7924 10.*)
7925 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7926 esac
7927 ;;
7928 esac
7929 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7930 _lt_dar_single_mod='$single_module'
7931 fi
7932 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7933 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7934 else
7935 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7936 fi
7937 if test "$DSYMUTIL" != ":"; then
7938 _lt_dsymutil='~$DSYMUTIL $lib || :'
7939 else
7940 _lt_dsymutil=
7941 fi
7942 ;;
7943 esac
7944
d7040cdb 7945for ac_header in dlfcn.h
81ecdfbb
RW
7946do :
7947 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7948"
7949if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
d7040cdb 7950 cat >>confdefs.h <<_ACEOF
81ecdfbb 7951#define HAVE_DLFCN_H 1
d7040cdb
SE
7952_ACEOF
7953
7954fi
7955
7956done
7957
7958
7959
718a6fd8 7960# Set options
ce3c775b 7961enable_dlopen=yes
718a6fd8
SE
7962
7963
7964
718a6fd8
SE
7965
7966 enable_win32_dll=no
7967
7968
7969
81ecdfbb
RW
7970 # Check whether --enable-static was given.
7971if test "${enable_static+set}" = set; then :
7972 enableval=$enable_static; p=${PACKAGE-default}
718a6fd8
SE
7973 case $enableval in
7974 yes) enable_static=yes ;;
7975 no) enable_static=no ;;
7976 *)
7977 enable_static=no
7978 # Look at the argument we got. We use all the common list separators.
7979 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7980 for pkg in $enableval; do
7981 IFS="$lt_save_ifs"
7982 if test "X$pkg" = "X$p"; then
7983 enable_static=yes
7984 fi
7985 done
7986 IFS="$lt_save_ifs"
7987 ;;
7988 esac
7989else
7990 enable_static=yes
81ecdfbb 7991fi
718a6fd8
SE
7992
7993
7994
7995
7996
7997
7998
7999
8000
81ecdfbb
RW
8001
8002# Check whether --with-pic was given.
8003if test "${with_pic+set}" = set; then :
8004 withval=$with_pic; pic_mode="$withval"
718a6fd8
SE
8005else
8006 pic_mode=default
81ecdfbb
RW
8007fi
8008
718a6fd8
SE
8009
8010test -z "$pic_mode" && pic_mode=default
8011
8012
8013
8014
8015
8016
8017
81ecdfbb
RW
8018 # Check whether --enable-fast-install was given.
8019if test "${enable_fast_install+set}" = set; then :
8020 enableval=$enable_fast_install; p=${PACKAGE-default}
718a6fd8
SE
8021 case $enableval in
8022 yes) enable_fast_install=yes ;;
8023 no) enable_fast_install=no ;;
8024 *)
8025 enable_fast_install=no
8026 # Look at the argument we got. We use all the common list separators.
8027 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8028 for pkg in $enableval; do
8029 IFS="$lt_save_ifs"
8030 if test "X$pkg" = "X$p"; then
8031 enable_fast_install=yes
8032 fi
8033 done
8034 IFS="$lt_save_ifs"
8035 ;;
8036 esac
8037else
8038 enable_fast_install=yes
81ecdfbb
RW
8039fi
8040
718a6fd8
SE
8041
8042
8043
8044
8045
8046
8047
8048
8049
8050
d7040cdb
SE
8051# This can be used to rebuild libtool when needed
8052LIBTOOL_DEPS="$ltmain"
8053
8054# Always use our own libtool.
8055LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8056
8057
8058
8059
8060
8061
8062
8063
8064
8065
8066
8067
8068
8069
8070
8071
8072
8073
8074
8075
8076
8077
8078
8079
8080
8081test -z "$LN_S" && LN_S="ln -s"
8082
8083
8084
8085
8086
8087
8088
8089
8090
8091
8092
8093
8094
8095
8096if test -n "${ZSH_VERSION+set}" ; then
8097 setopt NO_GLOB_SUBST
8098fi
8099
81ecdfbb
RW
8100{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8101$as_echo_n "checking for objdir... " >&6; }
8102if test "${lt_cv_objdir+set}" = set; then :
8103 $as_echo_n "(cached) " >&6
d7040cdb
SE
8104else
8105 rm -f .libs 2>/dev/null
8106mkdir .libs 2>/dev/null
8107if test -d .libs; then
8108 lt_cv_objdir=.libs
8109else
8110 # MS-DOS does not allow filenames that begin with a dot.
8111 lt_cv_objdir=_libs
8112fi
8113rmdir .libs 2>/dev/null
8114fi
81ecdfbb
RW
8115{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8116$as_echo "$lt_cv_objdir" >&6; }
d7040cdb
SE
8117objdir=$lt_cv_objdir
8118
8119
8120
8121
8122
8123cat >>confdefs.h <<_ACEOF
8124#define LT_OBJDIR "$lt_cv_objdir/"
8125_ACEOF
8126
8127
8128
8129
8130
8131
8132
8133
8134
8135
8136
8137
8138
8139
8140
8141
8142
8143case $host_os in
8144aix3*)
8145 # AIX sometimes has problems with the GCC collect2 program. For some
8146 # reason, if we set the COLLECT_NAMES environment variable, the problems
8147 # vanish in a puff of smoke.
8148 if test "X${COLLECT_NAMES+set}" != Xset; then
8149 COLLECT_NAMES=
8150 export COLLECT_NAMES
8151 fi
8152 ;;
8153esac
8154
8155# Sed substitution that helps us do robust quoting. It backslashifies
8156# metacharacters that are still active within double-quoted strings.
8157sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
8158
8159# Same as above, but do not quote variable references.
8160double_quote_subst='s/\(["`\\]\)/\\\1/g'
8161
8162# Sed substitution to delay expansion of an escaped shell variable in a
8163# double_quote_subst'ed string.
8164delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8165
8166# Sed substitution to delay expansion of an escaped single quote.
8167delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
8168
8169# Sed substitution to avoid accidental globbing in evaled expressions
8170no_glob_subst='s/\*/\\\*/g'
8171
8172# Global variables:
8173ofile=libtool
8174can_build_shared=yes
8175
8176# All known linkers require a `.a' archive for static linking (except MSVC,
8177# which needs '.lib').
8178libext=a
8179
8180with_gnu_ld="$lt_cv_prog_gnu_ld"
8181
8182old_CC="$CC"
8183old_CFLAGS="$CFLAGS"
8184
8185# Set sane defaults for various variables
8186test -z "$CC" && CC=cc
8187test -z "$LTCC" && LTCC=$CC
8188test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8189test -z "$LD" && LD=ld
8190test -z "$ac_objext" && ac_objext=o
8191
8192for cc_temp in $compiler""; do
8193 case $cc_temp in
8194 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8195 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8196 \-*) ;;
8197 *) break;;
8198 esac
8199done
8200cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8201
8202
8203# Only perform the check for file, if the check method requires it
8204test -z "$MAGIC_CMD" && MAGIC_CMD=file
8205case $deplibs_check_method in
8206file_magic*)
8207 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
81ecdfbb
RW
8208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8209$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8210if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8211 $as_echo_n "(cached) " >&6
d7040cdb
SE
8212else
8213 case $MAGIC_CMD in
8214[\\/*] | ?:[\\/]*)
8215 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8216 ;;
8217*)
8218 lt_save_MAGIC_CMD="$MAGIC_CMD"
8219 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8220 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8221 for ac_dir in $ac_dummy; do
8222 IFS="$lt_save_ifs"
8223 test -z "$ac_dir" && ac_dir=.
8224 if test -f $ac_dir/${ac_tool_prefix}file; then
8225 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8226 if test -n "$file_magic_test_file"; then
8227 case $deplibs_check_method in
8228 "file_magic "*)
8229 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8230 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8231 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8232 $EGREP "$file_magic_regex" > /dev/null; then
8233 :
8234 else
8235 cat <<_LT_EOF 1>&2
8236
8237*** Warning: the command libtool uses to detect shared libraries,
8238*** $file_magic_cmd, produces output that libtool cannot recognize.
8239*** The result is that libtool may fail to recognize shared libraries
8240*** as such. This will affect the creation of libtool libraries that
8241*** depend on shared libraries, but programs linked with such libtool
8242*** libraries will work regardless of this problem. Nevertheless, you
8243*** may want to report the problem to your system manager and/or to
8244*** bug-libtool@gnu.org
8245
8246_LT_EOF
8247 fi ;;
8248 esac
8249 fi
8250 break
8251 fi
8252 done
8253 IFS="$lt_save_ifs"
8254 MAGIC_CMD="$lt_save_MAGIC_CMD"
8255 ;;
8256esac
8257fi
8258
8259MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8260if test -n "$MAGIC_CMD"; then
81ecdfbb
RW
8261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8262$as_echo "$MAGIC_CMD" >&6; }
d7040cdb 8263else
81ecdfbb
RW
8264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8265$as_echo "no" >&6; }
d7040cdb
SE
8266fi
8267
8268
8269
8270
8271
8272if test -z "$lt_cv_path_MAGIC_CMD"; then
8273 if test -n "$ac_tool_prefix"; then
81ecdfbb
RW
8274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8275$as_echo_n "checking for file... " >&6; }
8276if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8277 $as_echo_n "(cached) " >&6
d7040cdb
SE
8278else
8279 case $MAGIC_CMD in
8280[\\/*] | ?:[\\/]*)
8281 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8282 ;;
8283*)
8284 lt_save_MAGIC_CMD="$MAGIC_CMD"
8285 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8286 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8287 for ac_dir in $ac_dummy; do
8288 IFS="$lt_save_ifs"
8289 test -z "$ac_dir" && ac_dir=.
8290 if test -f $ac_dir/file; then
8291 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8292 if test -n "$file_magic_test_file"; then
8293 case $deplibs_check_method in
8294 "file_magic "*)
8295 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8296 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8297 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8298 $EGREP "$file_magic_regex" > /dev/null; then
8299 :
8300 else
8301 cat <<_LT_EOF 1>&2
8302
8303*** Warning: the command libtool uses to detect shared libraries,
8304*** $file_magic_cmd, produces output that libtool cannot recognize.
8305*** The result is that libtool may fail to recognize shared libraries
8306*** as such. This will affect the creation of libtool libraries that
8307*** depend on shared libraries, but programs linked with such libtool
8308*** libraries will work regardless of this problem. Nevertheless, you
8309*** may want to report the problem to your system manager and/or to
8310*** bug-libtool@gnu.org
8311
8312_LT_EOF
8313 fi ;;
8314 esac
8315 fi
8316 break
8317 fi
8318 done
8319 IFS="$lt_save_ifs"
8320 MAGIC_CMD="$lt_save_MAGIC_CMD"
8321 ;;
8322esac
8323fi
8324
8325MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8326if test -n "$MAGIC_CMD"; then
81ecdfbb
RW
8327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8328$as_echo "$MAGIC_CMD" >&6; }
d7040cdb 8329else
81ecdfbb
RW
8330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8331$as_echo "no" >&6; }
d7040cdb
SE
8332fi
8333
8334
8335 else
8336 MAGIC_CMD=:
8337 fi
8338fi
8339
8340 fi
8341 ;;
8342esac
8343
8344# Use C for the default configuration in the libtool script
8345
8346lt_save_CC="$CC"
8347ac_ext=c
8348ac_cpp='$CPP $CPPFLAGS'
8349ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8350ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8351ac_compiler_gnu=$ac_cv_c_compiler_gnu
8352
8353
8354# Source file extension for C test sources.
8355ac_ext=c
8356
8357# Object file extension for compiled C test sources.
8358objext=o
8359objext=$objext
8360
8361# Code to be used in simple compile tests
8362lt_simple_compile_test_code="int some_variable = 0;"
8363
8364# Code to be used in simple link tests
8365lt_simple_link_test_code='int main(){return(0);}'
8366
8367
8368
8369
8370
8371
8372
8373# If no C compiler was specified, use CC.
8374LTCC=${LTCC-"$CC"}
8375
8376# If no C compiler flags were specified, use CFLAGS.
8377LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8378
8379# Allow CC to be a program name with arguments.
8380compiler=$CC
8381
8382# Save the default compiler, since it gets overwritten when the other
8383# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8384compiler_DEFAULT=$CC
8385
8386# save warnings/boilerplate of simple test code
8387ac_outfile=conftest.$ac_objext
8388echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8389eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8390_lt_compiler_boilerplate=`cat conftest.err`
8391$RM conftest*
8392
8393ac_outfile=conftest.$ac_objext
8394echo "$lt_simple_link_test_code" >conftest.$ac_ext
8395eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8396_lt_linker_boilerplate=`cat conftest.err`
718a6fd8 8397$RM -r conftest*
d7040cdb
SE
8398
8399
8400## CAVEAT EMPTOR:
8401## There is no encapsulation within the following macros, do not change
8402## the running order or otherwise move them around unless you know exactly
8403## what you are doing...
8404if test -n "$compiler"; then
8405
8406lt_prog_compiler_no_builtin_flag=
8407
8408if test "$GCC" = yes; then
8409 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8410
81ecdfbb
RW
8411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8412$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8413if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8414 $as_echo_n "(cached) " >&6
d7040cdb
SE
8415else
8416 lt_cv_prog_compiler_rtti_exceptions=no
8417 ac_outfile=conftest.$ac_objext
8418 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8419 lt_compiler_flag="-fno-rtti -fno-exceptions"
8420 # Insert the option either (1) after the last *FLAGS variable, or
8421 # (2) before a word containing "conftest.", or (3) at the end.
8422 # Note that $ac_compile itself does not contain backslashes and begins
8423 # with a dollar sign (not a hyphen), so the echo should work correctly.
8424 # The option is referenced via a variable to avoid confusing sed.
8425 lt_compile=`echo "$ac_compile" | $SED \
8426 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8427 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8428 -e 's:$: $lt_compiler_flag:'`
bf993e3c 8429 (eval echo "\"\$as_me:8429: $lt_compile\"" >&5)
d7040cdb
SE
8430 (eval "$lt_compile" 2>conftest.err)
8431 ac_status=$?
8432 cat conftest.err >&5
bf993e3c 8433 echo "$as_me:8433: \$? = $ac_status" >&5
d7040cdb
SE
8434 if (exit $ac_status) && test -s "$ac_outfile"; then
8435 # The compiler can only warn and ignore the option if not recognized
8436 # So say no if there are warnings other than the usual output.
8437 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8438 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8439 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8440 lt_cv_prog_compiler_rtti_exceptions=yes
8441 fi
8442 fi
8443 $RM conftest*
8444
8445fi
81ecdfbb
RW
8446{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8447$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
d7040cdb
SE
8448
8449if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8450 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8451else
8452 :
8453fi
8454
8455fi
8456
8457
8458
8459
8460
8461
8462 lt_prog_compiler_wl=
8463lt_prog_compiler_pic=
8464lt_prog_compiler_static=
8465
81ecdfbb
RW
8466{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8467$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
d7040cdb
SE
8468
8469 if test "$GCC" = yes; then
8470 lt_prog_compiler_wl='-Wl,'
8471 lt_prog_compiler_static='-static'
8472
8473 case $host_os in
8474 aix*)
8475 # All AIX code is PIC.
8476 if test "$host_cpu" = ia64; then
8477 # AIX 5 now supports IA64 processor
8478 lt_prog_compiler_static='-Bstatic'
8479 fi
8480 ;;
8481
8482 amigaos*)
718a6fd8
SE
8483 case $host_cpu in
8484 powerpc)
8485 # see comment about AmigaOS4 .so support
8486 lt_prog_compiler_pic='-fPIC'
8487 ;;
8488 m68k)
8489 # FIXME: we need at least 68020 code to build shared libraries, but
8490 # adding the `-m68020' flag to GCC prevents building anything better,
8491 # like `-m68040'.
8492 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8493 ;;
8494 esac
d7040cdb
SE
8495 ;;
8496
8497 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8498 # PIC is the default for these OSes.
8499 ;;
8500
718a6fd8 8501 mingw* | cygwin* | pw32* | os2* | cegcc*)
d7040cdb
SE
8502 # This hack is so that the source file can tell whether it is being
8503 # built for inclusion in a dll (and should export symbols for example).
8504 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8505 # (--disable-auto-import) libraries
8506 lt_prog_compiler_pic='-DDLL_EXPORT'
8507 ;;
8508
8509 darwin* | rhapsody*)
8510 # PIC is the default on this platform
8511 # Common symbols not allowed in MH_DYLIB files
8512 lt_prog_compiler_pic='-fno-common'
8513 ;;
8514
8515 hpux*)
718a6fd8
SE
8516 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8517 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8518 # sets the default TLS model and affects inlining.
d7040cdb 8519 case $host_cpu in
718a6fd8 8520 hppa*64*)
d7040cdb
SE
8521 # +Z the default
8522 ;;
8523 *)
8524 lt_prog_compiler_pic='-fPIC'
8525 ;;
8526 esac
8527 ;;
8528
8529 interix[3-9]*)
8530 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8531 # Instead, we relocate shared libraries at runtime.
8532 ;;
8533
8534 msdosdjgpp*)
8535 # Just because we use GCC doesn't mean we suddenly get shared libraries
8536 # on systems that don't support them.
8537 lt_prog_compiler_can_build_shared=no
8538 enable_shared=no
8539 ;;
8540
8541 *nto* | *qnx*)
8542 # QNX uses GNU C++, but need to define -shared option too, otherwise
8543 # it will coredump.
8544 lt_prog_compiler_pic='-fPIC -shared'
8545 ;;
8546
8547 sysv4*MP*)
8548 if test -d /usr/nec; then
8549 lt_prog_compiler_pic=-Kconform_pic
8550 fi
8551 ;;
8552
8553 *)
8554 lt_prog_compiler_pic='-fPIC'
8555 ;;
8556 esac
8557 else
8558 # PORTME Check for flag to pass linker flags through the system compiler.
8559 case $host_os in
8560 aix*)
8561 lt_prog_compiler_wl='-Wl,'
8562 if test "$host_cpu" = ia64; then
8563 # AIX 5 now supports IA64 processor
8564 lt_prog_compiler_static='-Bstatic'
8565 else
8566 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8567 fi
8568 ;;
d7040cdb 8569
718a6fd8 8570 mingw* | cygwin* | pw32* | os2* | cegcc*)
d7040cdb
SE
8571 # This hack is so that the source file can tell whether it is being
8572 # built for inclusion in a dll (and should export symbols for example).
8573 lt_prog_compiler_pic='-DDLL_EXPORT'
8574 ;;
8575
8576 hpux9* | hpux10* | hpux11*)
8577 lt_prog_compiler_wl='-Wl,'
8578 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8579 # not for PA HP-UX.
8580 case $host_cpu in
8581 hppa*64*|ia64*)
8582 # +Z the default
8583 ;;
8584 *)
8585 lt_prog_compiler_pic='+Z'
8586 ;;
8587 esac
8588 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8589 lt_prog_compiler_static='${wl}-a ${wl}archive'
8590 ;;
8591
8592 irix5* | irix6* | nonstopux*)
8593 lt_prog_compiler_wl='-Wl,'
8594 # PIC (with -KPIC) is the default.
8595 lt_prog_compiler_static='-non_shared'
8596 ;;
8597
58e24671 8598 linux* | k*bsd*-gnu | kopensolaris*-gnu)
d7040cdb 8599 case $cc_basename in
718a6fd8
SE
8600 # old Intel for x86_64 which still supported -KPIC.
8601 ecc*)
d7040cdb
SE
8602 lt_prog_compiler_wl='-Wl,'
8603 lt_prog_compiler_pic='-KPIC'
8604 lt_prog_compiler_static='-static'
8605 ;;
718a6fd8
SE
8606 # icc used to be incompatible with GCC.
8607 # ICC 10 doesn't accept -KPIC any more.
8608 icc* | ifort*)
8609 lt_prog_compiler_wl='-Wl,'
8610 lt_prog_compiler_pic='-fPIC'
8611 lt_prog_compiler_static='-static'
8612 ;;
8613 # Lahey Fortran 8.1.
8614 lf95*)
8615 lt_prog_compiler_wl='-Wl,'
8616 lt_prog_compiler_pic='--shared'
8617 lt_prog_compiler_static='--static'
8618 ;;
d7040cdb
SE
8619 pgcc* | pgf77* | pgf90* | pgf95*)
8620 # Portland Group compilers (*not* the Pentium gcc compiler,
8621 # which looks to be a dead project)
8622 lt_prog_compiler_wl='-Wl,'
8623 lt_prog_compiler_pic='-fpic'
8624 lt_prog_compiler_static='-Bstatic'
8625 ;;
8626 ccc*)
8627 lt_prog_compiler_wl='-Wl,'
8628 # All Alpha code is PIC.
8629 lt_prog_compiler_static='-non_shared'
8630 ;;
718a6fd8
SE
8631 xl*)
8632 # IBM XL C 8.0/Fortran 10.1 on PPC
8633 lt_prog_compiler_wl='-Wl,'
8634 lt_prog_compiler_pic='-qpic'
8635 lt_prog_compiler_static='-qstaticlink'
8636 ;;
d7040cdb
SE
8637 *)
8638 case `$CC -V 2>&1 | sed 5q` in
8639 *Sun\ C*)
8640 # Sun C 5.9
8641 lt_prog_compiler_pic='-KPIC'
8642 lt_prog_compiler_static='-Bstatic'
8643 lt_prog_compiler_wl='-Wl,'
8644 ;;
8645 *Sun\ F*)
8646 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8647 lt_prog_compiler_pic='-KPIC'
8648 lt_prog_compiler_static='-Bstatic'
8649 lt_prog_compiler_wl=''
8650 ;;
8651 esac
8652 ;;
8653 esac
8654 ;;
8655
8656 newsos6)
8657 lt_prog_compiler_pic='-KPIC'
8658 lt_prog_compiler_static='-Bstatic'
8659 ;;
8660
8661 *nto* | *qnx*)
8662 # QNX uses GNU C++, but need to define -shared option too, otherwise
8663 # it will coredump.
8664 lt_prog_compiler_pic='-fPIC -shared'
8665 ;;
8666
8667 osf3* | osf4* | osf5*)
8668 lt_prog_compiler_wl='-Wl,'
8669 # All OSF/1 code is PIC.
8670 lt_prog_compiler_static='-non_shared'
8671 ;;
8672
8673 rdos*)
8674 lt_prog_compiler_static='-non_shared'
8675 ;;
8676
8677 solaris*)
8678 lt_prog_compiler_pic='-KPIC'
8679 lt_prog_compiler_static='-Bstatic'
8680 case $cc_basename in
8681 f77* | f90* | f95*)
8682 lt_prog_compiler_wl='-Qoption ld ';;
8683 *)
8684 lt_prog_compiler_wl='-Wl,';;
8685 esac
8686 ;;
8687
8688 sunos4*)
8689 lt_prog_compiler_wl='-Qoption ld '
8690 lt_prog_compiler_pic='-PIC'
8691 lt_prog_compiler_static='-Bstatic'
8692 ;;
8693
8694 sysv4 | sysv4.2uw2* | sysv4.3*)
8695 lt_prog_compiler_wl='-Wl,'
8696 lt_prog_compiler_pic='-KPIC'
8697 lt_prog_compiler_static='-Bstatic'
8698 ;;
8699
8700 sysv4*MP*)
8701 if test -d /usr/nec ;then
8702 lt_prog_compiler_pic='-Kconform_pic'
8703 lt_prog_compiler_static='-Bstatic'
8704 fi
8705 ;;
8706
8707 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8708 lt_prog_compiler_wl='-Wl,'
8709 lt_prog_compiler_pic='-KPIC'
8710 lt_prog_compiler_static='-Bstatic'
8711 ;;
8712
8713 unicos*)
8714 lt_prog_compiler_wl='-Wl,'
8715 lt_prog_compiler_can_build_shared=no
8716 ;;
8717
8718 uts4*)
8719 lt_prog_compiler_pic='-pic'
8720 lt_prog_compiler_static='-Bstatic'
8721 ;;
8722
8723 *)
8724 lt_prog_compiler_can_build_shared=no
8725 ;;
8726 esac
8727 fi
8728
8729case $host_os in
8730 # For platforms which do not support PIC, -DPIC is meaningless:
8731 *djgpp*)
8732 lt_prog_compiler_pic=
8733 ;;
8734 *)
8735 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8736 ;;
8737esac
81ecdfbb
RW
8738{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8739$as_echo "$lt_prog_compiler_pic" >&6; }
d7040cdb
SE
8740
8741
8742
8743
8744
8745
8746#
8747# Check to make sure the PIC flag actually works.
8748#
8749if test -n "$lt_prog_compiler_pic"; then
81ecdfbb
RW
8750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8751$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8752if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8753 $as_echo_n "(cached) " >&6
d7040cdb 8754else
718a6fd8 8755 lt_cv_prog_compiler_pic_works=no
d7040cdb
SE
8756 ac_outfile=conftest.$ac_objext
8757 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8758 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8759 # Insert the option either (1) after the last *FLAGS variable, or
8760 # (2) before a word containing "conftest.", or (3) at the end.
8761 # Note that $ac_compile itself does not contain backslashes and begins
8762 # with a dollar sign (not a hyphen), so the echo should work correctly.
8763 # The option is referenced via a variable to avoid confusing sed.
8764 lt_compile=`echo "$ac_compile" | $SED \
8765 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8766 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8767 -e 's:$: $lt_compiler_flag:'`
bf993e3c 8768 (eval echo "\"\$as_me:8768: $lt_compile\"" >&5)
d7040cdb
SE
8769 (eval "$lt_compile" 2>conftest.err)
8770 ac_status=$?
8771 cat conftest.err >&5
bf993e3c 8772 echo "$as_me:8772: \$? = $ac_status" >&5
d7040cdb
SE
8773 if (exit $ac_status) && test -s "$ac_outfile"; then
8774 # The compiler can only warn and ignore the option if not recognized
8775 # So say no if there are warnings other than the usual output.
8776 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8777 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8778 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
718a6fd8 8779 lt_cv_prog_compiler_pic_works=yes
d7040cdb
SE
8780 fi
8781 fi
8782 $RM conftest*
8783
8784fi
81ecdfbb
RW
8785{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8786$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
d7040cdb 8787
718a6fd8 8788if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
d7040cdb
SE
8789 case $lt_prog_compiler_pic in
8790 "" | " "*) ;;
8791 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8792 esac
8793else
8794 lt_prog_compiler_pic=
8795 lt_prog_compiler_can_build_shared=no
8796fi
8797
8798fi
8799
8800
8801
8802
8803
8804
8805#
8806# Check to make sure the static flag actually works.
8807#
8808wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
81ecdfbb
RW
8809{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8810$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8811if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8812 $as_echo_n "(cached) " >&6
d7040cdb 8813else
718a6fd8 8814 lt_cv_prog_compiler_static_works=no
d7040cdb
SE
8815 save_LDFLAGS="$LDFLAGS"
8816 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8817 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8818 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8819 # The linker can only warn and ignore the option if not recognized
8820 # So say no if there are warnings
8821 if test -s conftest.err; then
8822 # Append any errors to the config.log.
8823 cat conftest.err 1>&5
8824 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8825 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8826 if diff conftest.exp conftest.er2 >/dev/null; then
718a6fd8 8827 lt_cv_prog_compiler_static_works=yes
d7040cdb
SE
8828 fi
8829 else
718a6fd8 8830 lt_cv_prog_compiler_static_works=yes
d7040cdb
SE
8831 fi
8832 fi
718a6fd8 8833 $RM -r conftest*
d7040cdb
SE
8834 LDFLAGS="$save_LDFLAGS"
8835
8836fi
81ecdfbb
RW
8837{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8838$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
d7040cdb 8839
718a6fd8 8840if test x"$lt_cv_prog_compiler_static_works" = xyes; then
d7040cdb
SE
8841 :
8842else
8843 lt_prog_compiler_static=
8844fi
8845
8846
8847
8848
8849
8850
8851
81ecdfbb
RW
8852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8853$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8854if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8855 $as_echo_n "(cached) " >&6
d7040cdb
SE
8856else
8857 lt_cv_prog_compiler_c_o=no
8858 $RM -r conftest 2>/dev/null
8859 mkdir conftest
8860 cd conftest
8861 mkdir out
8862 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8863
8864 lt_compiler_flag="-o out/conftest2.$ac_objext"
8865 # Insert the option either (1) after the last *FLAGS variable, or
8866 # (2) before a word containing "conftest.", or (3) at the end.
8867 # Note that $ac_compile itself does not contain backslashes and begins
8868 # with a dollar sign (not a hyphen), so the echo should work correctly.
8869 lt_compile=`echo "$ac_compile" | $SED \
8870 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8871 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8872 -e 's:$: $lt_compiler_flag:'`
bf993e3c 8873 (eval echo "\"\$as_me:8873: $lt_compile\"" >&5)
d7040cdb
SE
8874 (eval "$lt_compile" 2>out/conftest.err)
8875 ac_status=$?
8876 cat out/conftest.err >&5
bf993e3c 8877 echo "$as_me:8877: \$? = $ac_status" >&5
d7040cdb
SE
8878 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8879 then
8880 # The compiler can only warn and ignore the option if not recognized
8881 # So say no if there are warnings
8882 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8883 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8884 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8885 lt_cv_prog_compiler_c_o=yes
8886 fi
8887 fi
8888 chmod u+w . 2>&5
8889 $RM conftest*
8890 # SGI C++ compiler will create directory out/ii_files/ for
8891 # template instantiation
8892 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8893 $RM out/* && rmdir out
8894 cd ..
8895 $RM -r conftest
8896 $RM conftest*
8897
8898fi
81ecdfbb
RW
8899{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8900$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
d7040cdb
SE
8901
8902
8903
8904
8905
8906
81ecdfbb
RW
8907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8908$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8909if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8910 $as_echo_n "(cached) " >&6
d7040cdb
SE
8911else
8912 lt_cv_prog_compiler_c_o=no
8913 $RM -r conftest 2>/dev/null
8914 mkdir conftest
8915 cd conftest
8916 mkdir out
8917 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8918
8919 lt_compiler_flag="-o out/conftest2.$ac_objext"
8920 # Insert the option either (1) after the last *FLAGS variable, or
8921 # (2) before a word containing "conftest.", or (3) at the end.
8922 # Note that $ac_compile itself does not contain backslashes and begins
8923 # with a dollar sign (not a hyphen), so the echo should work correctly.
8924 lt_compile=`echo "$ac_compile" | $SED \
8925 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8926 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8927 -e 's:$: $lt_compiler_flag:'`
bf993e3c 8928 (eval echo "\"\$as_me:8928: $lt_compile\"" >&5)
d7040cdb
SE
8929 (eval "$lt_compile" 2>out/conftest.err)
8930 ac_status=$?
8931 cat out/conftest.err >&5
bf993e3c 8932 echo "$as_me:8932: \$? = $ac_status" >&5
d7040cdb
SE
8933 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8934 then
8935 # The compiler can only warn and ignore the option if not recognized
8936 # So say no if there are warnings
8937 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8938 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8939 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8940 lt_cv_prog_compiler_c_o=yes
8941 fi
8942 fi
8943 chmod u+w . 2>&5
8944 $RM conftest*
8945 # SGI C++ compiler will create directory out/ii_files/ for
8946 # template instantiation
8947 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8948 $RM out/* && rmdir out
8949 cd ..
8950 $RM -r conftest
8951 $RM conftest*
8952
8953fi
81ecdfbb
RW
8954{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8955$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
d7040cdb
SE
8956
8957
8958
8959
8960hard_links="nottested"
8961if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8962 # do not overwrite the value of need_locks provided by the user
81ecdfbb
RW
8963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8964$as_echo_n "checking if we can lock with hard links... " >&6; }
d7040cdb
SE
8965 hard_links=yes
8966 $RM conftest*
8967 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8968 touch conftest.a
8969 ln conftest.a conftest.b 2>&5 || hard_links=no
8970 ln conftest.a conftest.b 2>/dev/null && hard_links=no
81ecdfbb
RW
8971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8972$as_echo "$hard_links" >&6; }
d7040cdb 8973 if test "$hard_links" = no; then
81ecdfbb
RW
8974 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8975$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
d7040cdb
SE
8976 need_locks=warn
8977 fi
8978else
8979 need_locks=no
8980fi
8981
8982
8983
8984
8985
8986
81ecdfbb
RW
8987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8988$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
d7040cdb
SE
8989
8990 runpath_var=
8991 allow_undefined_flag=
8992 always_export_symbols=no
8993 archive_cmds=
8994 archive_expsym_cmds=
8995 compiler_needs_object=no
8996 enable_shared_with_static_runtimes=no
8997 export_dynamic_flag_spec=
8998 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8999 hardcode_automatic=no
9000 hardcode_direct=no
9001 hardcode_direct_absolute=no
9002 hardcode_libdir_flag_spec=
9003 hardcode_libdir_flag_spec_ld=
9004 hardcode_libdir_separator=
9005 hardcode_minus_L=no
9006 hardcode_shlibpath_var=unsupported
9007 inherit_rpath=no
9008 link_all_deplibs=unknown
9009 module_cmds=
9010 module_expsym_cmds=
9011 old_archive_from_new_cmds=
9012 old_archive_from_expsyms_cmds=
9013 thread_safe_flag_spec=
9014 whole_archive_flag_spec=
9015 # include_expsyms should be a list of space-separated symbols to be *always*
9016 # included in the symbol list
9017 include_expsyms=
9018 # exclude_expsyms can be an extended regexp of symbols to exclude
9019 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9020 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9021 # as well as any symbol that contains `d'.
718a6fd8 9022 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
d7040cdb
SE
9023 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9024 # platforms (ab)use it in PIC code, but their linkers get confused if
9025 # the symbol is explicitly referenced. Since portable code cannot
9026 # rely on this symbol name, it's probably fine to never include it in
9027 # preloaded symbol tables.
718a6fd8 9028 # Exclude shared library initialization/finalization symbols.
d7040cdb
SE
9029 extract_expsyms_cmds=
9030
9031 case $host_os in
718a6fd8 9032 cygwin* | mingw* | pw32* | cegcc*)
d7040cdb
SE
9033 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9034 # When not using gcc, we currently assume that we are using
9035 # Microsoft Visual C++.
9036 if test "$GCC" != yes; then
9037 with_gnu_ld=no
9038 fi
9039 ;;
9040 interix*)
9041 # we just hope/assume this is gcc and not c89 (= MSVC++)
9042 with_gnu_ld=yes
9043 ;;
9044 openbsd*)
9045 with_gnu_ld=no
9046 ;;
9047 esac
9048
9049 ld_shlibs=yes
9050 if test "$with_gnu_ld" = yes; then
9051 # If archive_cmds runs LD, not CC, wlarc should be empty
9052 wlarc='${wl}'
9053
9054 # Set some defaults for GNU ld with shared library support. These
9055 # are reset later if shared libraries are not supported. Putting them
9056 # here allows them to be overridden if necessary.
9057 runpath_var=LD_RUN_PATH
9058 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9059 export_dynamic_flag_spec='${wl}--export-dynamic'
9060 # ancient GNU ld didn't support --whole-archive et. al.
9061 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9062 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9063 else
9064 whole_archive_flag_spec=
9065 fi
9066 supports_anon_versioning=no
9067 case `$LD -v 2>&1` in
9068 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9069 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9070 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9071 *\ 2.11.*) ;; # other 2.11 versions
9072 *) supports_anon_versioning=yes ;;
9073 esac
9074
9075 # See if GNU ld supports shared libraries.
9076 case $host_os in
e81819a5 9077 aix[3-9]*)
d7040cdb
SE
9078 # On AIX/PPC, the GNU linker is very broken
9079 if test "$host_cpu" != ia64; then
9080 ld_shlibs=no
9081 cat <<_LT_EOF 1>&2
9082
9083*** Warning: the GNU linker, at least up to release 2.9.1, is reported
9084*** to be unable to reliably create shared libraries on AIX.
9085*** Therefore, libtool is disabling shared libraries support. If you
9086*** really care for shared libraries, you may want to modify your PATH
9087*** so that a non-GNU linker is found, and then restart.
9088
9089_LT_EOF
9090 fi
9091 ;;
9092
9093 amigaos*)
718a6fd8
SE
9094 case $host_cpu in
9095 powerpc)
9096 # see comment about AmigaOS4 .so support
9097 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9098 archive_expsym_cmds=''
9099 ;;
9100 m68k)
9101 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)'
9102 hardcode_libdir_flag_spec='-L$libdir'
9103 hardcode_minus_L=yes
9104 ;;
9105 esac
d7040cdb
SE
9106 ;;
9107
9108 beos*)
9109 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9110 allow_undefined_flag=unsupported
9111 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9112 # support --undefined. This deserves some investigation. FIXME
9113 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9114 else
9115 ld_shlibs=no
9116 fi
9117 ;;
9118
718a6fd8 9119 cygwin* | mingw* | pw32* | cegcc*)
d7040cdb
SE
9120 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9121 # as there is no search path for DLLs.
9122 hardcode_libdir_flag_spec='-L$libdir'
9123 allow_undefined_flag=unsupported
9124 always_export_symbols=no
9125 enable_shared_with_static_runtimes=yes
9126 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9127
9128 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9129 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9130 # If the export-symbols file already is a .def file (1st line
9131 # is EXPORTS), use it as is; otherwise, prepend...
9132 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9133 cp $export_symbols $output_objdir/$soname.def;
9134 else
9135 echo EXPORTS > $output_objdir/$soname.def;
9136 cat $export_symbols >> $output_objdir/$soname.def;
9137 fi~
9138 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9139 else
9140 ld_shlibs=no
9141 fi
9142 ;;
9143
9144 interix[3-9]*)
9145 hardcode_direct=no
9146 hardcode_shlibpath_var=no
9147 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9148 export_dynamic_flag_spec='${wl}-E'
9149 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9150 # Instead, shared libraries are loaded at an image base (0x10000000 by
9151 # default) and relocated if they conflict, which is a slow very memory
9152 # consuming and fragmenting process. To avoid this, we pick a random,
9153 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9154 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9155 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9156 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'
9157 ;;
9158
58e24671 9159 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
d7040cdb
SE
9160 tmp_diet=no
9161 if test "$host_os" = linux-dietlibc; then
9162 case $cc_basename in
9163 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9164 esac
9165 fi
9166 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9167 && test "$tmp_diet" = no
9168 then
9169 tmp_addflag=
718a6fd8 9170 tmp_sharedflag='-shared'
d7040cdb
SE
9171 case $cc_basename,$host_cpu in
9172 pgcc*) # Portland Group C compiler
9173 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
9174 tmp_addflag=' $pic_flag'
9175 ;;
9176 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
9177 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
9178 tmp_addflag=' $pic_flag -Mnomain' ;;
9179 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9180 tmp_addflag=' -i_dynamic' ;;
9181 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9182 tmp_addflag=' -i_dynamic -nofor_main' ;;
9183 ifc* | ifort*) # Intel Fortran compiler
9184 tmp_addflag=' -nofor_main' ;;
718a6fd8
SE
9185 lf95*) # Lahey Fortran 8.1
9186 whole_archive_flag_spec=
9187 tmp_sharedflag='--shared' ;;
9188 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9189 tmp_sharedflag='-qmkshrobj'
9190 tmp_addflag= ;;
d7040cdb
SE
9191 esac
9192 case `$CC -V 2>&1 | sed 5q` in
9193 *Sun\ C*) # Sun C 5.9
9194 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
9195 compiler_needs_object=yes
9196 tmp_sharedflag='-G' ;;
9197 *Sun\ F*) # Sun Fortran 8.3
9198 tmp_sharedflag='-G' ;;
d7040cdb
SE
9199 esac
9200 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9201
9202 if test "x$supports_anon_versioning" = xyes; then
9203 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9204 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9205 echo "local: *; };" >> $output_objdir/$libname.ver~
9206 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9207 fi
718a6fd8
SE
9208
9209 case $cc_basename in
9210 xlf*)
9211 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9212 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9213 hardcode_libdir_flag_spec=
9214 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9215 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9216 if test "x$supports_anon_versioning" = xyes; then
9217 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9218 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9219 echo "local: *; };" >> $output_objdir/$libname.ver~
9220 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9221 fi
9222 ;;
9223 esac
d7040cdb
SE
9224 else
9225 ld_shlibs=no
9226 fi
9227 ;;
9228
9229 netbsd*)
9230 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9231 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9232 wlarc=
9233 else
9234 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9235 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9236 fi
9237 ;;
9238
9239 solaris*)
9240 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9241 ld_shlibs=no
9242 cat <<_LT_EOF 1>&2
9243
9244*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9245*** create shared libraries on Solaris systems. Therefore, libtool
9246*** is disabling shared libraries support. We urge you to upgrade GNU
9247*** binutils to release 2.9.1 or newer. Another option is to modify
9248*** your PATH or compiler configuration so that the native linker is
9249*** used, and then restart.
9250
9251_LT_EOF
9252 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9253 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9254 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9255 else
9256 ld_shlibs=no
9257 fi
9258 ;;
9259
9260 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9261 case `$LD -v 2>&1` in
9262 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9263 ld_shlibs=no
9264 cat <<_LT_EOF 1>&2
9265
9266*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9267*** reliably create shared libraries on SCO systems. Therefore, libtool
9268*** is disabling shared libraries support. We urge you to upgrade GNU
9269*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9270*** your PATH or compiler configuration so that the native linker is
9271*** used, and then restart.
9272
9273_LT_EOF
9274 ;;
9275 *)
9276 # For security reasons, it is highly recommended that you always
9277 # use absolute paths for naming shared libraries, and exclude the
9278 # DT_RUNPATH tag from executables and libraries. But doing so
9279 # requires that you compile everything twice, which is a pain.
9280 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9281 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9282 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9283 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9284 else
9285 ld_shlibs=no
9286 fi
9287 ;;
9288 esac
9289 ;;
9290
9291 sunos4*)
9292 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9293 wlarc=
9294 hardcode_direct=yes
9295 hardcode_shlibpath_var=no
9296 ;;
9297
9298 *)
9299 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9300 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9301 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9302 else
9303 ld_shlibs=no
9304 fi
9305 ;;
9306 esac
9307
9308 if test "$ld_shlibs" = no; then
9309 runpath_var=
9310 hardcode_libdir_flag_spec=
9311 export_dynamic_flag_spec=
9312 whole_archive_flag_spec=
9313 fi
9314 else
9315 # PORTME fill in a description of your system's linker (not GNU ld)
9316 case $host_os in
9317 aix3*)
9318 allow_undefined_flag=unsupported
9319 always_export_symbols=yes
9320 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'
9321 # Note: this linker hardcodes the directories in LIBPATH if there
9322 # are no directories specified by -L.
9323 hardcode_minus_L=yes
9324 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9325 # Neither direct hardcoding nor static linking is supported with a
9326 # broken collect2.
9327 hardcode_direct=unsupported
9328 fi
9329 ;;
9330
e81819a5 9331 aix[4-9]*)
d7040cdb
SE
9332 if test "$host_cpu" = ia64; then
9333 # On IA64, the linker does run time linking by default, so we don't
9334 # have to do anything special.
9335 aix_use_runtimelinking=no
9336 exp_sym_flag='-Bexport'
9337 no_entry_flag=""
9338 else
9339 # If we're using GNU nm, then we don't want the "-C" option.
9340 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9341 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9342 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9343 else
9344 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'
9345 fi
9346 aix_use_runtimelinking=no
9347
9348 # Test if we are trying to use run time linking or normal
9349 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9350 # need to do runtime linking.
e81819a5 9351 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
d7040cdb
SE
9352 for ld_flag in $LDFLAGS; do
9353 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9354 aix_use_runtimelinking=yes
9355 break
9356 fi
9357 done
9358 ;;
9359 esac
9360
9361 exp_sym_flag='-bexport'
9362 no_entry_flag='-bnoentry'
9363 fi
9364
9365 # When large executables or shared objects are built, AIX ld can
9366 # have problems creating the table of contents. If linking a library
9367 # or program results in "error TOC overflow" add -mminimal-toc to
9368 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9369 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9370
9371 archive_cmds=''
9372 hardcode_direct=yes
9373 hardcode_direct_absolute=yes
9374 hardcode_libdir_separator=':'
9375 link_all_deplibs=yes
9376 file_list_spec='${wl}-f,'
9377
9378 if test "$GCC" = yes; then
9379 case $host_os in aix4.[012]|aix4.[012].*)
9380 # We only want to do this on AIX 4.2 and lower, the check
9381 # below for broken collect2 doesn't work under 4.3+
9382 collect2name=`${CC} -print-prog-name=collect2`
9383 if test -f "$collect2name" &&
9384 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9385 then
9386 # We have reworked collect2
9387 :
9388 else
9389 # We have old collect2
9390 hardcode_direct=unsupported
9391 # It fails to find uninstalled libraries when the uninstalled
9392 # path is not listed in the libpath. Setting hardcode_minus_L
9393 # to unsupported forces relinking
9394 hardcode_minus_L=yes
9395 hardcode_libdir_flag_spec='-L$libdir'
9396 hardcode_libdir_separator=
9397 fi
9398 ;;
9399 esac
9400 shared_flag='-shared'
9401 if test "$aix_use_runtimelinking" = yes; then
9402 shared_flag="$shared_flag "'${wl}-G'
9403 fi
9404 else
9405 # not using gcc
9406 if test "$host_cpu" = ia64; then
9407 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9408 # chokes on -Wl,-G. The following line is correct:
9409 shared_flag='-G'
9410 else
9411 if test "$aix_use_runtimelinking" = yes; then
9412 shared_flag='${wl}-G'
9413 else
9414 shared_flag='${wl}-bM:SRE'
9415 fi
9416 fi
9417 fi
9418
718a6fd8 9419 export_dynamic_flag_spec='${wl}-bexpall'
d7040cdb
SE
9420 # It seems that -bexpall does not export symbols beginning with
9421 # underscore (_), so it is better to generate a list of symbols to export.
9422 always_export_symbols=yes
9423 if test "$aix_use_runtimelinking" = yes; then
9424 # Warning - without using the other runtime loading flags (-brtl),
9425 # -berok will link without error, but may produce a broken library.
9426 allow_undefined_flag='-berok'
9427 # Determine the default libpath from the value encoded in an
9428 # empty executable.
81ecdfbb 9429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7040cdb
SE
9430/* end confdefs.h. */
9431
9432int
9433main ()
9434{
9435
9436 ;
9437 return 0;
9438}
9439_ACEOF
81ecdfbb 9440if ac_fn_c_try_link "$LINENO"; then :
d7040cdb
SE
9441
9442lt_aix_libpath_sed='
9443 /Import File Strings/,/^$/ {
9444 /^0/ {
9445 s/^0 *\(.*\)$/\1/
9446 p
9447 }
9448 }'
9449aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9450# Check for a 64-bit object if we didn't find anything.
9451if test -z "$aix_libpath"; then
9452 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9453fi
d7040cdb 9454fi
81ecdfbb
RW
9455rm -f core conftest.err conftest.$ac_objext \
9456 conftest$ac_exeext conftest.$ac_ext
d7040cdb
SE
9457if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9458
9459 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9460 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9461 else
9462 if test "$host_cpu" = ia64; then
9463 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9464 allow_undefined_flag="-z nodefs"
9465 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"
9466 else
9467 # Determine the default libpath from the value encoded in an
9468 # empty executable.
81ecdfbb 9469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7040cdb
SE
9470/* end confdefs.h. */
9471
9472int
9473main ()
9474{
9475
9476 ;
9477 return 0;
9478}
9479_ACEOF
81ecdfbb 9480if ac_fn_c_try_link "$LINENO"; then :
d7040cdb
SE
9481
9482lt_aix_libpath_sed='
9483 /Import File Strings/,/^$/ {
9484 /^0/ {
9485 s/^0 *\(.*\)$/\1/
9486 p
9487 }
9488 }'
9489aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9490# Check for a 64-bit object if we didn't find anything.
9491if test -z "$aix_libpath"; then
9492 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9493fi
d7040cdb 9494fi
81ecdfbb
RW
9495rm -f core conftest.err conftest.$ac_objext \
9496 conftest$ac_exeext conftest.$ac_ext
d7040cdb
SE
9497if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9498
9499 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9500 # Warning - without using the other run time loading flags,
9501 # -berok will link without error, but may produce a broken library.
9502 no_undefined_flag=' ${wl}-bernotok'
9503 allow_undefined_flag=' ${wl}-berok'
9504 # Exported symbols can be pulled into shared objects from archives
9505 whole_archive_flag_spec='$convenience'
9506 archive_cmds_need_lc=yes
9507 # This is similar to how AIX traditionally builds its shared libraries.
9508 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'
9509 fi
9510 fi
9511 ;;
9512
9513 amigaos*)
718a6fd8
SE
9514 case $host_cpu in
9515 powerpc)
9516 # see comment about AmigaOS4 .so support
9517 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9518 archive_expsym_cmds=''
9519 ;;
9520 m68k)
9521 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)'
9522 hardcode_libdir_flag_spec='-L$libdir'
9523 hardcode_minus_L=yes
9524 ;;
9525 esac
d7040cdb
SE
9526 ;;
9527
9528 bsdi[45]*)
9529 export_dynamic_flag_spec=-rdynamic
9530 ;;
9531
718a6fd8 9532 cygwin* | mingw* | pw32* | cegcc*)
d7040cdb
SE
9533 # When not using gcc, we currently assume that we are using
9534 # Microsoft Visual C++.
9535 # hardcode_libdir_flag_spec is actually meaningless, as there is
9536 # no search path for DLLs.
9537 hardcode_libdir_flag_spec=' '
9538 allow_undefined_flag=unsupported
9539 # Tell ltmain to make .lib files, not .a files.
9540 libext=lib
9541 # Tell ltmain to make .dll files, not .so files.
9542 shrext_cmds=".dll"
9543 # FIXME: Setting linknames here is a bad hack.
9544 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
9545 # The linker will automatically build a .lib file if we build a DLL.
9546 old_archive_from_new_cmds='true'
9547 # FIXME: Should let the user specify the lib program.
9548 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9549 fix_srcfile_path='`cygpath -w "$srcfile"`'
9550 enable_shared_with_static_runtimes=yes
9551 ;;
9552
9553 darwin* | rhapsody*)
d7040cdb 9554
718a6fd8
SE
9555
9556 archive_cmds_need_lc=no
9557 hardcode_direct=no
9558 hardcode_automatic=yes
9559 hardcode_shlibpath_var=unsupported
9560 whole_archive_flag_spec=''
9561 link_all_deplibs=yes
9562 allow_undefined_flag="$_lt_dar_allow_undefined"
9563 case $cc_basename in
9564 ifort*) _lt_dar_can_shared=yes ;;
9565 *) _lt_dar_can_shared=$GCC ;;
9566 esac
9567 if test "$_lt_dar_can_shared" = "yes"; then
9568 output_verbose_link_cmd=echo
9569 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9570 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9571 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}"
9572 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}"
9573
9574 else
9575 ld_shlibs=no
9576 fi
9577
d7040cdb
SE
9578 ;;
9579
9580 dgux*)
9581 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9582 hardcode_libdir_flag_spec='-L$libdir'
9583 hardcode_shlibpath_var=no
9584 ;;
9585
9586 freebsd1*)
9587 ld_shlibs=no
9588 ;;
9589
9590 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9591 # support. Future versions do this automatically, but an explicit c++rt0.o
9592 # does not break anything, and helps significantly (at the cost of a little
9593 # extra space).
9594 freebsd2.2*)
9595 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9596 hardcode_libdir_flag_spec='-R$libdir'
9597 hardcode_direct=yes
9598 hardcode_shlibpath_var=no
9599 ;;
9600
9601 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9602 freebsd2*)
9603 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9604 hardcode_direct=yes
9605 hardcode_minus_L=yes
9606 hardcode_shlibpath_var=no
9607 ;;
9608
9609 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9610 freebsd* | dragonfly*)
9611 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9612 hardcode_libdir_flag_spec='-R$libdir'
9613 hardcode_direct=yes
9614 hardcode_shlibpath_var=no
9615 ;;
9616
9617 hpux9*)
9618 if test "$GCC" = yes; then
9619 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'
9620 else
9621 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'
9622 fi
9623 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9624 hardcode_libdir_separator=:
9625 hardcode_direct=yes
9626
9627 # hardcode_minus_L: Not really in the search PATH,
9628 # but as the default location of the library.
9629 hardcode_minus_L=yes
9630 export_dynamic_flag_spec='${wl}-E'
9631 ;;
9632
9633 hpux10*)
9634 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9635 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9636 else
9637 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9638 fi
9639 if test "$with_gnu_ld" = no; then
9640 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9641 hardcode_libdir_flag_spec_ld='+b $libdir'
9642 hardcode_libdir_separator=:
9643 hardcode_direct=yes
9644 hardcode_direct_absolute=yes
9645 export_dynamic_flag_spec='${wl}-E'
9646 # hardcode_minus_L: Not really in the search PATH,
9647 # but as the default location of the library.
9648 hardcode_minus_L=yes
9649 fi
9650 ;;
9651
9652 hpux11*)
9653 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9654 case $host_cpu in
9655 hppa*64*)
9656 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9657 ;;
9658 ia64*)
718a6fd8 9659 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
d7040cdb
SE
9660 ;;
9661 *)
9662 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9663 ;;
9664 esac
9665 else
9666 case $host_cpu in
9667 hppa*64*)
9668 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9669 ;;
9670 ia64*)
9671 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9672 ;;
9673 *)
9674 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9675 ;;
9676 esac
9677 fi
9678 if test "$with_gnu_ld" = no; then
9679 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9680 hardcode_libdir_separator=:
9681
9682 case $host_cpu in
9683 hppa*64*|ia64*)
9684 hardcode_direct=no
9685 hardcode_shlibpath_var=no
9686 ;;
9687 *)
9688 hardcode_direct=yes
9689 hardcode_direct_absolute=yes
9690 export_dynamic_flag_spec='${wl}-E'
9691
9692 # hardcode_minus_L: Not really in the search PATH,
9693 # but as the default location of the library.
9694 hardcode_minus_L=yes
9695 ;;
9696 esac
9697 fi
9698 ;;
9699
9700 irix5* | irix6* | nonstopux*)
9701 if test "$GCC" = yes; then
9702 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9703 # Try to use the -exported_symbol ld option, if it does not
9704 # work, assume that -exports_file does not work either and
9705 # implicitly export all symbols.
9706 save_LDFLAGS="$LDFLAGS"
9707 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
81ecdfbb
RW
9708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9709/* end confdefs.h. */
d7040cdb
SE
9710int foo(void) {}
9711_ACEOF
81ecdfbb 9712if ac_fn_c_try_link "$LINENO"; then :
d7040cdb
SE
9713 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9714
d7040cdb 9715fi
81ecdfbb
RW
9716rm -f core conftest.err conftest.$ac_objext \
9717 conftest$ac_exeext conftest.$ac_ext
d7040cdb
SE
9718 LDFLAGS="$save_LDFLAGS"
9719 else
9720 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9721 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
9722 fi
9723 archive_cmds_need_lc='no'
9724 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9725 hardcode_libdir_separator=:
9726 inherit_rpath=yes
9727 link_all_deplibs=yes
9728 ;;
9729
9730 netbsd*)
9731 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9732 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9733 else
9734 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9735 fi
9736 hardcode_libdir_flag_spec='-R$libdir'
9737 hardcode_direct=yes
9738 hardcode_shlibpath_var=no
9739 ;;
9740
9741 newsos6)
9742 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9743 hardcode_direct=yes
9744 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9745 hardcode_libdir_separator=:
9746 hardcode_shlibpath_var=no
9747 ;;
9748
9749 *nto* | *qnx*)
9750 ;;
9751
9752 openbsd*)
718a6fd8
SE
9753 if test -f /usr/libexec/ld.so; then
9754 hardcode_direct=yes
9755 hardcode_shlibpath_var=no
9756 hardcode_direct_absolute=yes
9757 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
d7040cdb 9758 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
718a6fd8 9759 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
d7040cdb 9760 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
718a6fd8
SE
9761 export_dynamic_flag_spec='${wl}-E'
9762 else
9763 case $host_os in
9764 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9765 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9766 hardcode_libdir_flag_spec='-R$libdir'
9767 ;;
9768 *)
9769 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9770 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9771 ;;
9772 esac
9773 fi
9774 else
9775 ld_shlibs=no
d7040cdb
SE
9776 fi
9777 ;;
9778
9779 os2*)
9780 hardcode_libdir_flag_spec='-L$libdir'
9781 hardcode_minus_L=yes
9782 allow_undefined_flag=unsupported
9783 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'
9784 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9785 ;;
9786
9787 osf3*)
9788 if test "$GCC" = yes; then
9789 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9790 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9791 else
9792 allow_undefined_flag=' -expect_unresolved \*'
9793 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9794 fi
9795 archive_cmds_need_lc='no'
9796 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9797 hardcode_libdir_separator=:
9798 ;;
9799
9800 osf4* | osf5*) # as osf3* with the addition of -msym flag
9801 if test "$GCC" = yes; then
9802 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9803 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9804 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9805 else
9806 allow_undefined_flag=' -expect_unresolved \*'
9807 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9808 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~
9809 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
9810
9811 # Both c and cxx compiler support -rpath directly
9812 hardcode_libdir_flag_spec='-rpath $libdir'
9813 fi
9814 archive_cmds_need_lc='no'
9815 hardcode_libdir_separator=:
9816 ;;
9817
9818 solaris*)
9819 no_undefined_flag=' -z defs'
9820 if test "$GCC" = yes; then
9821 wlarc='${wl}'
9822 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9823 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9824 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9825 else
9826 case `$CC -V 2>&1` in
9827 *"Compilers 5.0"*)
9828 wlarc=''
9829 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9830 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9831 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9832 ;;
9833 *)
9834 wlarc='${wl}'
9835 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9836 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9837 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9838 ;;
9839 esac
9840 fi
9841 hardcode_libdir_flag_spec='-R$libdir'
9842 hardcode_shlibpath_var=no
9843 case $host_os in
9844 solaris2.[0-5] | solaris2.[0-5].*) ;;
9845 *)
9846 # The compiler driver will combine and reorder linker options,
9847 # but understands `-z linker_flag'. GCC discards it without `$wl',
9848 # but is careful enough not to reorder.
9849 # Supported since Solaris 2.6 (maybe 2.5.1?)
9850 if test "$GCC" = yes; then
9851 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9852 else
9853 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9854 fi
9855 ;;
9856 esac
9857 link_all_deplibs=yes
9858 ;;
9859
9860 sunos4*)
9861 if test "x$host_vendor" = xsequent; then
9862 # Use $CC to link under sequent, because it throws in some extra .o
9863 # files that make .init and .fini sections work.
9864 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9865 else
9866 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9867 fi
9868 hardcode_libdir_flag_spec='-L$libdir'
9869 hardcode_direct=yes
9870 hardcode_minus_L=yes
9871 hardcode_shlibpath_var=no
9872 ;;
9873
9874 sysv4)
9875 case $host_vendor in
9876 sni)
9877 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9878 hardcode_direct=yes # is this really true???
9879 ;;
9880 siemens)
9881 ## LD is ld it makes a PLAMLIB
9882 ## CC just makes a GrossModule.
9883 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9884 reload_cmds='$CC -r -o $output$reload_objs'
9885 hardcode_direct=no
9886 ;;
9887 motorola)
9888 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9889 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9890 ;;
9891 esac
9892 runpath_var='LD_RUN_PATH'
9893 hardcode_shlibpath_var=no
9894 ;;
9895
9896 sysv4.3*)
9897 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9898 hardcode_shlibpath_var=no
9899 export_dynamic_flag_spec='-Bexport'
9900 ;;
9901
9902 sysv4*MP*)
9903 if test -d /usr/nec; then
9904 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9905 hardcode_shlibpath_var=no
9906 runpath_var=LD_RUN_PATH
9907 hardcode_runpath_var=yes
9908 ld_shlibs=yes
9909 fi
9910 ;;
9911
9912 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9913 no_undefined_flag='${wl}-z,text'
9914 archive_cmds_need_lc=no
9915 hardcode_shlibpath_var=no
9916 runpath_var='LD_RUN_PATH'
9917
9918 if test "$GCC" = yes; then
9919 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9920 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9921 else
9922 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9923 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9924 fi
9925 ;;
9926
9927 sysv5* | sco3.2v5* | sco5v6*)
9928 # Note: We can NOT use -z defs as we might desire, because we do not
9929 # link with -lc, and that would cause any symbols used from libc to
9930 # always be unresolved, which means just about no library would
9931 # ever link correctly. If we're not using GNU ld we use -z text
9932 # though, which does catch some bad symbols but isn't as heavy-handed
9933 # as -z defs.
9934 no_undefined_flag='${wl}-z,text'
9935 allow_undefined_flag='${wl}-z,nodefs'
9936 archive_cmds_need_lc=no
9937 hardcode_shlibpath_var=no
9938 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9939 hardcode_libdir_separator=':'
9940 link_all_deplibs=yes
9941 export_dynamic_flag_spec='${wl}-Bexport'
9942 runpath_var='LD_RUN_PATH'
9943
9944 if test "$GCC" = yes; then
9945 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9946 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9947 else
9948 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9949 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9950 fi
9951 ;;
9952
9953 uts4*)
9954 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9955 hardcode_libdir_flag_spec='-L$libdir'
9956 hardcode_shlibpath_var=no
9957 ;;
9958
9959 *)
9960 ld_shlibs=no
9961 ;;
9962 esac
9963
9964 if test x$host_vendor = xsni; then
9965 case $host in
9966 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9967 export_dynamic_flag_spec='${wl}-Blargedynsym'
9968 ;;
9969 esac
9970 fi
9971 fi
9972
81ecdfbb
RW
9973{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9974$as_echo "$ld_shlibs" >&6; }
d7040cdb
SE
9975test "$ld_shlibs" = no && can_build_shared=no
9976
9977with_gnu_ld=$with_gnu_ld
9978
9979
9980
9981
9982
9983
9984
9985
9986
9987
9988
9989
9990
9991
9992
9993#
9994# Do we need to explicitly link libc?
9995#
9996case "x$archive_cmds_need_lc" in
9997x|xyes)
9998 # Assume -lc should be added
9999 archive_cmds_need_lc=yes
10000
10001 if test "$enable_shared" = yes && test "$GCC" = yes; then
10002 case $archive_cmds in
10003 *'~'*)
10004 # FIXME: we may have to deal with multi-command sequences.
10005 ;;
10006 '$CC '*)
10007 # Test whether the compiler implicitly links with -lc since on some
10008 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10009 # to ld, don't add -lc before -lgcc.
81ecdfbb
RW
10010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10011$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10012if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
10013 $as_echo_n "(cached) " >&6
39144654
RW
10014else
10015 $RM conftest*
10016 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d7040cdb 10017
81ecdfbb 10018 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
d7040cdb
SE
10019 (eval $ac_compile) 2>&5
10020 ac_status=$?
81ecdfbb
RW
10021 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10022 test $ac_status = 0; } 2>conftest.err; then
39144654
RW
10023 soname=conftest
10024 lib=conftest
10025 libobjs=conftest.$ac_objext
10026 deplibs=
10027 wl=$lt_prog_compiler_wl
10028 pic_flag=$lt_prog_compiler_pic
10029 compiler_flags=-v
10030 linker_flags=-v
10031 verstring=
10032 output_objdir=.
10033 libname=conftest
10034 lt_save_allow_undefined_flag=$allow_undefined_flag
10035 allow_undefined_flag=
81ecdfbb 10036 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
d7040cdb
SE
10037 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10038 ac_status=$?
81ecdfbb
RW
10039 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10040 test $ac_status = 0; }
39144654
RW
10041 then
10042 lt_cv_archive_cmds_need_lc=no
10043 else
10044 lt_cv_archive_cmds_need_lc=yes
10045 fi
10046 allow_undefined_flag=$lt_save_allow_undefined_flag
10047 else
10048 cat conftest.err 1>&5
10049 fi
10050 $RM conftest*
10051
10052fi
81ecdfbb
RW
10053{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10054$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
39144654 10055 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
d7040cdb
SE
10056 ;;
10057 esac
10058 fi
10059 ;;
10060esac
10061
10062
10063
10064
10065
10066
10067
10068
10069
10070
10071
10072
10073
10074
10075
10076
10077
10078
10079
10080
10081
10082
10083
10084
10085
10086
10087
10088
10089
10090
10091
10092
10093
10094
10095
10096
10097
10098
10099
10100
10101
10102
10103
10104
10105
10106
10107
10108
10109
10110
10111
10112
10113
10114
10115
10116
10117
10118
10119
10120
10121
10122
10123
10124
10125
10126
10127
10128
10129
10130
10131
10132
10133
10134
10135
10136
10137
10138
10139
10140
10141
10142
10143
10144
10145
10146
10147
10148
10149
10150
10151
10152
10153
10154
10155
10156
10157
10158
10159
10160
10161
10162
10163
10164
10165
10166
10167
10168
10169
10170
10171
10172
10173
10174
10175
10176
10177
10178
10179
10180
10181
10182
10183
10184
10185
10186
10187
10188
10189
10190
10191
10192
10193
10194
10195
10196
10197
10198
10199
10200
10201
10202
10203
10204
10205
10206
10207
10208
10209
10210
10211
10212
10213
10214
10215
10216
10217
81ecdfbb
RW
10218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10219$as_echo_n "checking dynamic linker characteristics... " >&6; }
718a6fd8
SE
10220
10221if test "$GCC" = yes; then
d7040cdb
SE
10222 case $host_os in
10223 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10224 *) lt_awk_arg="/^libraries:/" ;;
10225 esac
10226 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10227 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
10228 # if the path contains ";" then we assume it to be the separator
10229 # otherwise default to the standard path separator (i.e. ":") - it is
10230 # assumed that no part of a normal pathname contains ";" but that should
10231 # okay in the real world where ";" in dirpaths is itself problematic.
10232 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
10233 else
10234 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10235 fi
10236 # Ok, now we have the path, separated by spaces, we can step through it
10237 # and add multilib dir if necessary.
10238 lt_tmp_lt_search_path_spec=
10239 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10240 for lt_sys_path in $lt_search_path_spec; do
10241 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10242 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10243 else
10244 test -d "$lt_sys_path" && \
10245 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10246 fi
10247 done
10248 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
10249BEGIN {RS=" "; FS="/|\n";} {
10250 lt_foo="";
10251 lt_count=0;
10252 for (lt_i = NF; lt_i > 0; lt_i--) {
10253 if ($lt_i != "" && $lt_i != ".") {
10254 if ($lt_i == "..") {
10255 lt_count++;
10256 } else {
10257 if (lt_count == 0) {
10258 lt_foo="/" $lt_i lt_foo;
10259 } else {
10260 lt_count--;
10261 }
10262 }
10263 }
10264 }
10265 if (lt_foo != "") { lt_freq[lt_foo]++; }
10266 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10267}'`
10268 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
10269else
10270 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10271fi
10272library_names_spec=
10273libname_spec='lib$name'
10274soname_spec=
10275shrext_cmds=".so"
10276postinstall_cmds=
10277postuninstall_cmds=
10278finish_cmds=
10279finish_eval=
10280shlibpath_var=
10281shlibpath_overrides_runpath=unknown
10282version_type=none
10283dynamic_linker="$host_os ld.so"
10284sys_lib_dlsearch_path_spec="/lib /usr/lib"
10285need_lib_prefix=unknown
10286hardcode_into_libs=no
10287
10288# when you set need_version to no, make sure it does not cause -set_version
10289# flags to be left without arguments
10290need_version=unknown
10291
10292case $host_os in
10293aix3*)
10294 version_type=linux
10295 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10296 shlibpath_var=LIBPATH
10297
10298 # AIX 3 has no versioning support, so we append a major version to the name.
10299 soname_spec='${libname}${release}${shared_ext}$major'
10300 ;;
10301
e81819a5 10302aix[4-9]*)
d7040cdb
SE
10303 version_type=linux
10304 need_lib_prefix=no
10305 need_version=no
10306 hardcode_into_libs=yes
10307 if test "$host_cpu" = ia64; then
10308 # AIX 5 supports IA64
10309 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10310 shlibpath_var=LD_LIBRARY_PATH
10311 else
10312 # With GCC up to 2.95.x, collect2 would create an import file
10313 # for dependence libraries. The import file would start with
10314 # the line `#! .'. This would cause the generated library to
10315 # depend on `.', always an invalid library. This was fixed in
10316 # development snapshots of GCC prior to 3.0.
10317 case $host_os in
10318 aix4 | aix4.[01] | aix4.[01].*)
10319 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10320 echo ' yes '
10321 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10322 :
10323 else
10324 can_build_shared=no
10325 fi
10326 ;;
10327 esac
10328 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10329 # soname into executable. Probably we can add versioning support to
10330 # collect2, so additional links can be useful in future.
10331 if test "$aix_use_runtimelinking" = yes; then
10332 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10333 # instead of lib<name>.a to let people know that these are not
10334 # typical AIX shared libraries.
10335 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10336 else
10337 # We preserve .a as extension for shared libraries through AIX4.2
10338 # and later when we are not doing run time linking.
10339 library_names_spec='${libname}${release}.a $libname.a'
10340 soname_spec='${libname}${release}${shared_ext}$major'
10341 fi
10342 shlibpath_var=LIBPATH
10343 fi
10344 ;;
10345
10346amigaos*)
718a6fd8
SE
10347 case $host_cpu in
10348 powerpc)
10349 # Since July 2007 AmigaOS4 officially supports .so libraries.
10350 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10351 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10352 ;;
10353 m68k)
d7040cdb
SE
10354 library_names_spec='$libname.ixlibrary $libname.a'
10355 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10356 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''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
10357 ;;
10358 esac
d7040cdb
SE
10359 ;;
10360
10361beos*)
10362 library_names_spec='${libname}${shared_ext}'
10363 dynamic_linker="$host_os ld.so"
10364 shlibpath_var=LIBRARY_PATH
10365 ;;
10366
10367bsdi[45]*)
10368 version_type=linux
10369 need_version=no
10370 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10371 soname_spec='${libname}${release}${shared_ext}$major'
10372 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10373 shlibpath_var=LD_LIBRARY_PATH
10374 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10375 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10376 # the default ld.so.conf also contains /usr/contrib/lib and
10377 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10378 # libtool to hard-code these into programs
10379 ;;
10380
718a6fd8 10381cygwin* | mingw* | pw32* | cegcc*)
d7040cdb
SE
10382 version_type=windows
10383 shrext_cmds=".dll"
10384 need_version=no
10385 need_lib_prefix=no
10386
718a6fd8
SE
10387 case $GCC,$host_os in
10388 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
d7040cdb
SE
10389 library_names_spec='$libname.dll.a'
10390 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10391 postinstall_cmds='base_file=`basename \${file}`~
10392 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10393 dldir=$destdir/`dirname \$dlpath`~
10394 test -d \$dldir || mkdir -p \$dldir~
10395 $install_prog $dir/$dlname \$dldir/$dlname~
10396 chmod a+x \$dldir/$dlname~
10397 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10398 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10399 fi'
10400 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10401 dlpath=$dir/\$dldll~
10402 $RM \$dlpath'
10403 shlibpath_overrides_runpath=yes
10404
10405 case $host_os in
10406 cygwin*)
10407 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10408 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10409 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10410 ;;
718a6fd8 10411 mingw* | cegcc*)
d7040cdb
SE
10412 # MinGW DLLs use traditional 'lib' prefix
10413 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10414 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10415 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10416 # It is most probably a Windows format PATH printed by
10417 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10418 # path with ; separators, and with drive letters. We can handle the
10419 # drive letters (cygwin fileutils understands them), so leave them,
10420 # especially as we might pass files found there to a mingw objdump,
10421 # which wouldn't understand a cygwinified path. Ahh.
10422 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10423 else
10424 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10425 fi
10426 ;;
10427 pw32*)
10428 # pw32 DLLs use 'pw' prefix rather than 'lib'
10429 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10430 ;;
10431 esac
10432 ;;
10433
10434 *)
10435 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10436 ;;
10437 esac
10438 dynamic_linker='Win32 ld.exe'
10439 # FIXME: first we should search . and the directory the executable is in
10440 shlibpath_var=PATH
10441 ;;
10442
10443darwin* | rhapsody*)
10444 dynamic_linker="$host_os dyld"
10445 version_type=darwin
10446 need_lib_prefix=no
10447 need_version=no
10448 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10449 soname_spec='${libname}${release}${major}$shared_ext'
10450 shlibpath_overrides_runpath=yes
10451 shlibpath_var=DYLD_LIBRARY_PATH
10452 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10453
10454 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10455 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10456 ;;
10457
10458dgux*)
10459 version_type=linux
10460 need_lib_prefix=no
10461 need_version=no
10462 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10463 soname_spec='${libname}${release}${shared_ext}$major'
10464 shlibpath_var=LD_LIBRARY_PATH
10465 ;;
10466
10467freebsd1*)
10468 dynamic_linker=no
10469 ;;
10470
10471freebsd* | dragonfly*)
10472 # DragonFly does not have aout. When/if they implement a new
10473 # versioning mechanism, adjust this.
10474 if test -x /usr/bin/objformat; then
10475 objformat=`/usr/bin/objformat`
10476 else
10477 case $host_os in
10478 freebsd[123]*) objformat=aout ;;
10479 *) objformat=elf ;;
10480 esac
10481 fi
10482 version_type=freebsd-$objformat
10483 case $version_type in
10484 freebsd-elf*)
10485 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10486 need_version=no
10487 need_lib_prefix=no
10488 ;;
10489 freebsd-*)
10490 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10491 need_version=yes
10492 ;;
10493 esac
10494 shlibpath_var=LD_LIBRARY_PATH
10495 case $host_os in
10496 freebsd2*)
10497 shlibpath_overrides_runpath=yes
10498 ;;
10499 freebsd3.[01]* | freebsdelf3.[01]*)
10500 shlibpath_overrides_runpath=yes
10501 hardcode_into_libs=yes
10502 ;;
10503 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10504 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10505 shlibpath_overrides_runpath=no
10506 hardcode_into_libs=yes
10507 ;;
10508 *) # from 4.6 on, and DragonFly
10509 shlibpath_overrides_runpath=yes
10510 hardcode_into_libs=yes
10511 ;;
10512 esac
10513 ;;
10514
10515gnu*)
10516 version_type=linux
10517 need_lib_prefix=no
10518 need_version=no
10519 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10520 soname_spec='${libname}${release}${shared_ext}$major'
10521 shlibpath_var=LD_LIBRARY_PATH
10522 hardcode_into_libs=yes
10523 ;;
10524
10525hpux9* | hpux10* | hpux11*)
10526 # Give a soname corresponding to the major version so that dld.sl refuses to
10527 # link against other versions.
10528 version_type=sunos
10529 need_lib_prefix=no
10530 need_version=no
10531 case $host_cpu in
10532 ia64*)
10533 shrext_cmds='.so'
10534 hardcode_into_libs=yes
10535 dynamic_linker="$host_os dld.so"
10536 shlibpath_var=LD_LIBRARY_PATH
10537 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10538 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10539 soname_spec='${libname}${release}${shared_ext}$major'
10540 if test "X$HPUX_IA64_MODE" = X32; then
10541 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10542 else
10543 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10544 fi
10545 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10546 ;;
10547 hppa*64*)
10548 shrext_cmds='.sl'
10549 hardcode_into_libs=yes
10550 dynamic_linker="$host_os dld.sl"
10551 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10552 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10553 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10554 soname_spec='${libname}${release}${shared_ext}$major'
10555 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10556 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10557 ;;
10558 *)
10559 shrext_cmds='.sl'
10560 dynamic_linker="$host_os dld.sl"
10561 shlibpath_var=SHLIB_PATH
10562 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10563 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10564 soname_spec='${libname}${release}${shared_ext}$major'
10565 ;;
10566 esac
10567 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10568 postinstall_cmds='chmod 555 $lib'
10569 ;;
10570
10571interix[3-9]*)
10572 version_type=linux
10573 need_lib_prefix=no
10574 need_version=no
10575 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10576 soname_spec='${libname}${release}${shared_ext}$major'
10577 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10578 shlibpath_var=LD_LIBRARY_PATH
10579 shlibpath_overrides_runpath=no
10580 hardcode_into_libs=yes
10581 ;;
10582
10583irix5* | irix6* | nonstopux*)
10584 case $host_os in
10585 nonstopux*) version_type=nonstopux ;;
10586 *)
10587 if test "$lt_cv_prog_gnu_ld" = yes; then
10588 version_type=linux
10589 else
10590 version_type=irix
10591 fi ;;
10592 esac
10593 need_lib_prefix=no
10594 need_version=no
10595 soname_spec='${libname}${release}${shared_ext}$major'
10596 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10597 case $host_os in
10598 irix5* | nonstopux*)
10599 libsuff= shlibsuff=
10600 ;;
10601 *)
10602 case $LD in # libtool.m4 will add one of these switches to LD
10603 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10604 libsuff= shlibsuff= libmagic=32-bit;;
10605 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10606 libsuff=32 shlibsuff=N32 libmagic=N32;;
10607 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10608 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10609 *) libsuff= shlibsuff= libmagic=never-match;;
10610 esac
10611 ;;
10612 esac
10613 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10614 shlibpath_overrides_runpath=no
10615 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10616 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10617 hardcode_into_libs=yes
10618 ;;
10619
10620# No shared lib support for Linux oldld, aout, or coff.
10621linux*oldld* | linux*aout* | linux*coff*)
10622 dynamic_linker=no
10623 ;;
10624
10625# This must be Linux ELF.
58e24671 10626linux* | k*bsd*-gnu | kopensolaris*-gnu)
d7040cdb
SE
10627 version_type=linux
10628 need_lib_prefix=no
10629 need_version=no
10630 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10631 soname_spec='${libname}${release}${shared_ext}$major'
10632 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10633 shlibpath_var=LD_LIBRARY_PATH
10634 shlibpath_overrides_runpath=no
39144654 10635
d7040cdb 10636 # Some binutils ld are patched to set DT_RUNPATH
81ecdfbb
RW
10637 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
10638 $as_echo_n "(cached) " >&6
39144654
RW
10639else
10640 lt_cv_shlibpath_overrides_runpath=no
10641 save_LDFLAGS=$LDFLAGS
10642 save_libdir=$libdir
10643 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10644 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
81ecdfbb 10645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7040cdb
SE
10646/* end confdefs.h. */
10647
10648int
10649main ()
10650{
10651
10652 ;
10653 return 0;
10654}
10655_ACEOF
81ecdfbb
RW
10656if ac_fn_c_try_link "$LINENO"; then :
10657 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
39144654 10658 lt_cv_shlibpath_overrides_runpath=yes
d7040cdb 10659fi
d7040cdb 10660fi
81ecdfbb
RW
10661rm -f core conftest.err conftest.$ac_objext \
10662 conftest$ac_exeext conftest.$ac_ext
39144654
RW
10663 LDFLAGS=$save_LDFLAGS
10664 libdir=$save_libdir
10665
10666fi
10667
10668 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
d7040cdb
SE
10669
10670 # This implies no fast_install, which is unacceptable.
10671 # Some rework will be needed to allow for fast_install
10672 # before this can be enabled.
10673 hardcode_into_libs=yes
10674
10675 # Append ld.so.conf contents to the search path
10676 if test -f /etc/ld.so.conf; then
718a6fd8 10677 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;/^$/d' | tr '\n' ' '`
d7040cdb
SE
10678 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10679 fi
10680
10681 # We used to test for /lib/ld.so.1 and disable shared libraries on
10682 # powerpc, because MkLinux only supported shared libraries with the
10683 # GNU dynamic linker. Since this was broken with cross compilers,
10684 # most powerpc-linux boxes support dynamic linking these days and
10685 # people can always --disable-shared, the test was removed, and we
10686 # assume the GNU/Linux dynamic linker is in use.
10687 dynamic_linker='GNU/Linux ld.so'
10688 ;;
10689
10690netbsd*)
10691 version_type=sunos
10692 need_lib_prefix=no
10693 need_version=no
10694 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10695 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10696 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10697 dynamic_linker='NetBSD (a.out) ld.so'
10698 else
10699 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10700 soname_spec='${libname}${release}${shared_ext}$major'
10701 dynamic_linker='NetBSD ld.elf_so'
10702 fi
10703 shlibpath_var=LD_LIBRARY_PATH
10704 shlibpath_overrides_runpath=yes
10705 hardcode_into_libs=yes
10706 ;;
10707
10708newsos6)
10709 version_type=linux
10710 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10711 shlibpath_var=LD_LIBRARY_PATH
10712 shlibpath_overrides_runpath=yes
10713 ;;
10714
10715*nto* | *qnx*)
10716 version_type=qnx
10717 need_lib_prefix=no
10718 need_version=no
10719 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10720 soname_spec='${libname}${release}${shared_ext}$major'
10721 shlibpath_var=LD_LIBRARY_PATH
10722 shlibpath_overrides_runpath=no
10723 hardcode_into_libs=yes
10724 dynamic_linker='ldqnx.so'
10725 ;;
10726
10727openbsd*)
10728 version_type=sunos
10729 sys_lib_dlsearch_path_spec="/usr/lib"
10730 need_lib_prefix=no
10731 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10732 case $host_os in
10733 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10734 *) need_version=no ;;
10735 esac
10736 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10737 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10738 shlibpath_var=LD_LIBRARY_PATH
10739 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10740 case $host_os in
10741 openbsd2.[89] | openbsd2.[89].*)
10742 shlibpath_overrides_runpath=no
10743 ;;
10744 *)
10745 shlibpath_overrides_runpath=yes
10746 ;;
10747 esac
10748 else
10749 shlibpath_overrides_runpath=yes
10750 fi
10751 ;;
10752
10753os2*)
10754 libname_spec='$name'
10755 shrext_cmds=".dll"
10756 need_lib_prefix=no
10757 library_names_spec='$libname${shared_ext} $libname.a'
10758 dynamic_linker='OS/2 ld.exe'
10759 shlibpath_var=LIBPATH
10760 ;;
10761
10762osf3* | osf4* | osf5*)
10763 version_type=osf
10764 need_lib_prefix=no
10765 need_version=no
10766 soname_spec='${libname}${release}${shared_ext}$major'
10767 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10768 shlibpath_var=LD_LIBRARY_PATH
10769 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10770 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10771 ;;
10772
10773rdos*)
10774 dynamic_linker=no
10775 ;;
10776
10777solaris*)
10778 version_type=linux
10779 need_lib_prefix=no
10780 need_version=no
10781 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10782 soname_spec='${libname}${release}${shared_ext}$major'
10783 shlibpath_var=LD_LIBRARY_PATH
10784 shlibpath_overrides_runpath=yes
10785 hardcode_into_libs=yes
10786 # ldd complains unless libraries are executable
10787 postinstall_cmds='chmod +x $lib'
10788 ;;
10789
10790sunos4*)
10791 version_type=sunos
10792 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10793 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10794 shlibpath_var=LD_LIBRARY_PATH
10795 shlibpath_overrides_runpath=yes
10796 if test "$with_gnu_ld" = yes; then
10797 need_lib_prefix=no
10798 fi
10799 need_version=yes
10800 ;;
10801
10802sysv4 | sysv4.3*)
10803 version_type=linux
10804 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10805 soname_spec='${libname}${release}${shared_ext}$major'
10806 shlibpath_var=LD_LIBRARY_PATH
10807 case $host_vendor in
10808 sni)
10809 shlibpath_overrides_runpath=no
10810 need_lib_prefix=no
10811 runpath_var=LD_RUN_PATH
10812 ;;
10813 siemens)
10814 need_lib_prefix=no
10815 ;;
10816 motorola)
10817 need_lib_prefix=no
10818 need_version=no
10819 shlibpath_overrides_runpath=no
10820 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10821 ;;
10822 esac
10823 ;;
10824
10825sysv4*MP*)
10826 if test -d /usr/nec ;then
10827 version_type=linux
10828 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10829 soname_spec='$libname${shared_ext}.$major'
10830 shlibpath_var=LD_LIBRARY_PATH
10831 fi
10832 ;;
10833
10834sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10835 version_type=freebsd-elf
10836 need_lib_prefix=no
10837 need_version=no
10838 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10839 soname_spec='${libname}${release}${shared_ext}$major'
10840 shlibpath_var=LD_LIBRARY_PATH
10841 shlibpath_overrides_runpath=yes
10842 hardcode_into_libs=yes
10843 if test "$with_gnu_ld" = yes; then
10844 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10845 else
10846 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10847 case $host_os in
10848 sco3.2v5*)
10849 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10850 ;;
10851 esac
10852 fi
10853 sys_lib_dlsearch_path_spec='/usr/lib'
10854 ;;
10855
10856tpf*)
10857 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10858 version_type=linux
10859 need_lib_prefix=no
10860 need_version=no
718a6fd8 10861 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
d7040cdb
SE
10862 shlibpath_var=LD_LIBRARY_PATH
10863 shlibpath_overrides_runpath=no
10864 hardcode_into_libs=yes
10865 ;;
10866
10867uts4*)
10868 version_type=linux
10869 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10870 soname_spec='${libname}${release}${shared_ext}$major'
10871 shlibpath_var=LD_LIBRARY_PATH
10872 ;;
10873
10874*)
10875 dynamic_linker=no
10876 ;;
10877esac
81ecdfbb
RW
10878{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10879$as_echo "$dynamic_linker" >&6; }
d7040cdb
SE
10880test "$dynamic_linker" = no && can_build_shared=no
10881
10882variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10883if test "$GCC" = yes; then
10884 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10885fi
10886
718a6fd8
SE
10887if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10888 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10889fi
10890if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10891 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10892fi
10893
d7040cdb
SE
10894
10895
10896
10897
10898
10899
10900
10901
10902
10903
10904
10905
10906
10907
10908
10909
10910
10911
10912
10913
10914
10915
10916
10917
10918
10919
10920
10921
10922
10923
10924
10925
10926
10927
10928
10929
10930
10931
10932
10933
10934
10935
10936
10937
10938
10939
10940
10941
10942
10943
10944
10945
10946
10947
10948
10949
10950
10951
10952
10953
10954
10955
10956
10957
10958
10959
10960
10961
10962
10963
10964
10965
10966
10967
10968
10969
10970
10971
10972
10973
10974
10975
10976
10977
10978
10979
81ecdfbb
RW
10980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10981$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
d7040cdb
SE
10982hardcode_action=
10983if test -n "$hardcode_libdir_flag_spec" ||
10984 test -n "$runpath_var" ||
10985 test "X$hardcode_automatic" = "Xyes" ; then
10986
10987 # We can hardcode non-existent directories.
10988 if test "$hardcode_direct" != no &&
10989 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10990 # have to relink, otherwise we might link with an installed library
10991 # when we should be linking with a yet-to-be-installed one
10992 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10993 test "$hardcode_minus_L" != no; then
10994 # Linking always hardcodes the temporary library directory.
10995 hardcode_action=relink
10996 else
10997 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10998 hardcode_action=immediate
10999 fi
11000else
11001 # We cannot hardcode anything, or else we can only hardcode existing
11002 # directories.
11003 hardcode_action=unsupported
11004fi
81ecdfbb
RW
11005{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11006$as_echo "$hardcode_action" >&6; }
d7040cdb
SE
11007
11008if test "$hardcode_action" = relink ||
11009 test "$inherit_rpath" = yes; then
11010 # Fast installation is not supported
11011 enable_fast_install=no
11012elif test "$shlibpath_overrides_runpath" = yes ||
11013 test "$enable_shared" = no; then
11014 # Fast installation is not necessary
11015 enable_fast_install=needless
11016fi
11017
11018
11019
11020
11021
11022
11023 if test "x$enable_dlopen" != xyes; then
11024 enable_dlopen=unknown
11025 enable_dlopen_self=unknown
11026 enable_dlopen_self_static=unknown
11027else
11028 lt_cv_dlopen=no
11029 lt_cv_dlopen_libs=
11030
11031 case $host_os in
11032 beos*)
11033 lt_cv_dlopen="load_add_on"
11034 lt_cv_dlopen_libs=
11035 lt_cv_dlopen_self=yes
11036 ;;
11037
718a6fd8 11038 mingw* | pw32* | cegcc*)
d7040cdb
SE
11039 lt_cv_dlopen="LoadLibrary"
11040 lt_cv_dlopen_libs=
11041 ;;
11042
11043 cygwin*)
11044 lt_cv_dlopen="dlopen"
11045 lt_cv_dlopen_libs=
11046 ;;
11047
11048 darwin*)
11049 # if libdl is installed we need to link against it
81ecdfbb
RW
11050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11051$as_echo_n "checking for dlopen in -ldl... " >&6; }
11052if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11053 $as_echo_n "(cached) " >&6
d7040cdb
SE
11054else
11055 ac_check_lib_save_LIBS=$LIBS
11056LIBS="-ldl $LIBS"
81ecdfbb 11057cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7040cdb
SE
11058/* end confdefs.h. */
11059
81ecdfbb
RW
11060/* Override any GCC internal prototype to avoid an error.
11061 Use char because int might match the return type of a GCC
11062 builtin and then its argument prototype would still apply. */
d7040cdb
SE
11063#ifdef __cplusplus
11064extern "C"
11065#endif
d7040cdb
SE
11066char dlopen ();
11067int
11068main ()
11069{
81ecdfbb 11070return dlopen ();
d7040cdb
SE
11071 ;
11072 return 0;
11073}
11074_ACEOF
81ecdfbb 11075if ac_fn_c_try_link "$LINENO"; then :
d7040cdb
SE
11076 ac_cv_lib_dl_dlopen=yes
11077else
81ecdfbb 11078 ac_cv_lib_dl_dlopen=no
d7040cdb 11079fi
81ecdfbb
RW
11080rm -f core conftest.err conftest.$ac_objext \
11081 conftest$ac_exeext conftest.$ac_ext
d7040cdb
SE
11082LIBS=$ac_check_lib_save_LIBS
11083fi
81ecdfbb
RW
11084{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11085$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11086if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
d7040cdb
SE
11087 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11088else
11089
11090 lt_cv_dlopen="dyld"
11091 lt_cv_dlopen_libs=
11092 lt_cv_dlopen_self=yes
11093
11094fi
11095
11096 ;;
11097
11098 *)
81ecdfbb
RW
11099 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11100if test "x$ac_cv_func_shl_load" = x""yes; then :
d7040cdb
SE
11101 lt_cv_dlopen="shl_load"
11102else
81ecdfbb
RW
11103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11104$as_echo_n "checking for shl_load in -ldld... " >&6; }
11105if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
11106 $as_echo_n "(cached) " >&6
d7040cdb
SE
11107else
11108 ac_check_lib_save_LIBS=$LIBS
11109LIBS="-ldld $LIBS"
81ecdfbb 11110cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7040cdb
SE
11111/* end confdefs.h. */
11112
81ecdfbb
RW
11113/* Override any GCC internal prototype to avoid an error.
11114 Use char because int might match the return type of a GCC
11115 builtin and then its argument prototype would still apply. */
d7040cdb
SE
11116#ifdef __cplusplus
11117extern "C"
11118#endif
d7040cdb
SE
11119char shl_load ();
11120int
11121main ()
11122{
81ecdfbb 11123return shl_load ();
d7040cdb
SE
11124 ;
11125 return 0;
11126}
11127_ACEOF
81ecdfbb 11128if ac_fn_c_try_link "$LINENO"; then :
d7040cdb
SE
11129 ac_cv_lib_dld_shl_load=yes
11130else
81ecdfbb 11131 ac_cv_lib_dld_shl_load=no
d7040cdb 11132fi
81ecdfbb
RW
11133rm -f core conftest.err conftest.$ac_objext \
11134 conftest$ac_exeext conftest.$ac_ext
d7040cdb
SE
11135LIBS=$ac_check_lib_save_LIBS
11136fi
81ecdfbb
RW
11137{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11138$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11139if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
718a6fd8 11140 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
d7040cdb 11141else
81ecdfbb
RW
11142 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11143if test "x$ac_cv_func_dlopen" = x""yes; then :
d7040cdb
SE
11144 lt_cv_dlopen="dlopen"
11145else
81ecdfbb
RW
11146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11147$as_echo_n "checking for dlopen in -ldl... " >&6; }
11148if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11149 $as_echo_n "(cached) " >&6
d7040cdb
SE
11150else
11151 ac_check_lib_save_LIBS=$LIBS
11152LIBS="-ldl $LIBS"
81ecdfbb 11153cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7040cdb
SE
11154/* end confdefs.h. */
11155
81ecdfbb
RW
11156/* Override any GCC internal prototype to avoid an error.
11157 Use char because int might match the return type of a GCC
11158 builtin and then its argument prototype would still apply. */
d7040cdb
SE
11159#ifdef __cplusplus
11160extern "C"
11161#endif
d7040cdb
SE
11162char dlopen ();
11163int
11164main ()
11165{
81ecdfbb 11166return dlopen ();
d7040cdb
SE
11167 ;
11168 return 0;
11169}
11170_ACEOF
81ecdfbb 11171if ac_fn_c_try_link "$LINENO"; then :
d7040cdb
SE
11172 ac_cv_lib_dl_dlopen=yes
11173else
81ecdfbb 11174 ac_cv_lib_dl_dlopen=no
d7040cdb 11175fi
81ecdfbb
RW
11176rm -f core conftest.err conftest.$ac_objext \
11177 conftest$ac_exeext conftest.$ac_ext
d7040cdb
SE
11178LIBS=$ac_check_lib_save_LIBS
11179fi
81ecdfbb
RW
11180{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11181$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11182if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
d7040cdb
SE
11183 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11184else
81ecdfbb
RW
11185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11186$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11187if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11188 $as_echo_n "(cached) " >&6
d7040cdb
SE
11189else
11190 ac_check_lib_save_LIBS=$LIBS
11191LIBS="-lsvld $LIBS"
81ecdfbb 11192cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7040cdb
SE
11193/* end confdefs.h. */
11194
81ecdfbb
RW
11195/* Override any GCC internal prototype to avoid an error.
11196 Use char because int might match the return type of a GCC
11197 builtin and then its argument prototype would still apply. */
d7040cdb
SE
11198#ifdef __cplusplus
11199extern "C"
11200#endif
d7040cdb
SE
11201char dlopen ();
11202int
11203main ()
11204{
81ecdfbb 11205return dlopen ();
d7040cdb
SE
11206 ;
11207 return 0;
11208}
11209_ACEOF
81ecdfbb 11210if ac_fn_c_try_link "$LINENO"; then :
d7040cdb
SE
11211 ac_cv_lib_svld_dlopen=yes
11212else
81ecdfbb 11213 ac_cv_lib_svld_dlopen=no
d7040cdb 11214fi
81ecdfbb
RW
11215rm -f core conftest.err conftest.$ac_objext \
11216 conftest$ac_exeext conftest.$ac_ext
d7040cdb
SE
11217LIBS=$ac_check_lib_save_LIBS
11218fi
81ecdfbb
RW
11219{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11220$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11221if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
d7040cdb
SE
11222 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11223else
81ecdfbb
RW
11224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11225$as_echo_n "checking for dld_link in -ldld... " >&6; }
11226if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11227 $as_echo_n "(cached) " >&6
d7040cdb
SE
11228else
11229 ac_check_lib_save_LIBS=$LIBS
11230LIBS="-ldld $LIBS"
81ecdfbb 11231cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7040cdb
SE
11232/* end confdefs.h. */
11233
81ecdfbb
RW
11234/* Override any GCC internal prototype to avoid an error.
11235 Use char because int might match the return type of a GCC
11236 builtin and then its argument prototype would still apply. */
d7040cdb
SE
11237#ifdef __cplusplus
11238extern "C"
11239#endif
d7040cdb
SE
11240char dld_link ();
11241int
11242main ()
11243{
81ecdfbb 11244return dld_link ();
d7040cdb
SE
11245 ;
11246 return 0;
11247}
11248_ACEOF
81ecdfbb 11249if ac_fn_c_try_link "$LINENO"; then :
d7040cdb
SE
11250 ac_cv_lib_dld_dld_link=yes
11251else
81ecdfbb 11252 ac_cv_lib_dld_dld_link=no
d7040cdb 11253fi
81ecdfbb
RW
11254rm -f core conftest.err conftest.$ac_objext \
11255 conftest$ac_exeext conftest.$ac_ext
d7040cdb
SE
11256LIBS=$ac_check_lib_save_LIBS
11257fi
81ecdfbb
RW
11258{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11259$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11260if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
718a6fd8 11261 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
d7040cdb
SE
11262fi
11263
11264
11265fi
11266
11267
11268fi
11269
11270
11271fi
11272
11273
11274fi
11275
11276
11277fi
11278
11279 ;;
11280 esac
11281
11282 if test "x$lt_cv_dlopen" != xno; then
11283 enable_dlopen=yes
20e95c23 11284 else
d7040cdb 11285 enable_dlopen=no
252b5132 11286 fi
5464f5a1 11287
d7040cdb
SE
11288 case $lt_cv_dlopen in
11289 dlopen)
11290 save_CPPFLAGS="$CPPFLAGS"
11291 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11292
11293 save_LDFLAGS="$LDFLAGS"
11294 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11295
11296 save_LIBS="$LIBS"
11297 LIBS="$lt_cv_dlopen_libs $LIBS"
11298
81ecdfbb
RW
11299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11300$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11301if test "${lt_cv_dlopen_self+set}" = set; then :
11302 $as_echo_n "(cached) " >&6
20e95c23 11303else
d7040cdb
SE
11304 if test "$cross_compiling" = yes; then :
11305 lt_cv_dlopen_self=cross
11306else
11307 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11308 lt_status=$lt_dlunknown
11309 cat > conftest.$ac_ext <<_LT_EOF
bf993e3c 11310#line 11310 "configure"
d7040cdb
SE
11311#include "confdefs.h"
11312
11313#if HAVE_DLFCN_H
11314#include <dlfcn.h>
11315#endif
11316
11317#include <stdio.h>
11318
11319#ifdef RTLD_GLOBAL
11320# define LT_DLGLOBAL RTLD_GLOBAL
11321#else
11322# ifdef DL_GLOBAL
11323# define LT_DLGLOBAL DL_GLOBAL
11324# else
11325# define LT_DLGLOBAL 0
11326# endif
11327#endif
11328
11329/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11330 find out it does not work in some platform. */
11331#ifndef LT_DLLAZY_OR_NOW
11332# ifdef RTLD_LAZY
11333# define LT_DLLAZY_OR_NOW RTLD_LAZY
11334# else
11335# ifdef DL_LAZY
11336# define LT_DLLAZY_OR_NOW DL_LAZY
11337# else
11338# ifdef RTLD_NOW
11339# define LT_DLLAZY_OR_NOW RTLD_NOW
11340# else
11341# ifdef DL_NOW
11342# define LT_DLLAZY_OR_NOW DL_NOW
11343# else
11344# define LT_DLLAZY_OR_NOW 0
11345# endif
11346# endif
11347# endif
11348# endif
11349#endif
11350
d7040cdb
SE
11351void fnord() { int i=42;}
11352int main ()
11353{
11354 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11355 int status = $lt_dlunknown;
11356
11357 if (self)
11358 {
11359 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11360 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11361 /* dlclose (self); */
11362 }
11363 else
11364 puts (dlerror ());
11365
718a6fd8 11366 return status;
d7040cdb
SE
11367}
11368_LT_EOF
81ecdfbb 11369 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
d7040cdb
SE
11370 (eval $ac_link) 2>&5
11371 ac_status=$?
81ecdfbb
RW
11372 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11373 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
d7040cdb
SE
11374 (./conftest; exit; ) >&5 2>/dev/null
11375 lt_status=$?
11376 case x$lt_status in
11377 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11378 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11379 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11380 esac
11381 else :
11382 # compilation failed
11383 lt_cv_dlopen_self=no
11384 fi
252b5132 11385fi
d7040cdb 11386rm -fr conftest*
20e95c23 11387
d7040cdb
SE
11388
11389fi
81ecdfbb
RW
11390{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11391$as_echo "$lt_cv_dlopen_self" >&6; }
d7040cdb
SE
11392
11393 if test "x$lt_cv_dlopen_self" = xyes; then
11394 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
81ecdfbb
RW
11395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11396$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11397if test "${lt_cv_dlopen_self_static+set}" = set; then :
11398 $as_echo_n "(cached) " >&6
20e95c23 11399else
d7040cdb
SE
11400 if test "$cross_compiling" = yes; then :
11401 lt_cv_dlopen_self_static=cross
11402else
11403 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11404 lt_status=$lt_dlunknown
11405 cat > conftest.$ac_ext <<_LT_EOF
bf993e3c 11406#line 11406 "configure"
d7040cdb
SE
11407#include "confdefs.h"
11408
11409#if HAVE_DLFCN_H
11410#include <dlfcn.h>
11411#endif
11412
11413#include <stdio.h>
11414
11415#ifdef RTLD_GLOBAL
11416# define LT_DLGLOBAL RTLD_GLOBAL
11417#else
11418# ifdef DL_GLOBAL
11419# define LT_DLGLOBAL DL_GLOBAL
11420# else
11421# define LT_DLGLOBAL 0
11422# endif
11423#endif
11424
11425/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11426 find out it does not work in some platform. */
11427#ifndef LT_DLLAZY_OR_NOW
11428# ifdef RTLD_LAZY
11429# define LT_DLLAZY_OR_NOW RTLD_LAZY
11430# else
11431# ifdef DL_LAZY
11432# define LT_DLLAZY_OR_NOW DL_LAZY
11433# else
11434# ifdef RTLD_NOW
11435# define LT_DLLAZY_OR_NOW RTLD_NOW
11436# else
11437# ifdef DL_NOW
11438# define LT_DLLAZY_OR_NOW DL_NOW
11439# else
11440# define LT_DLLAZY_OR_NOW 0
11441# endif
11442# endif
11443# endif
11444# endif
11445#endif
11446
d7040cdb
SE
11447void fnord() { int i=42;}
11448int main ()
11449{
11450 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11451 int status = $lt_dlunknown;
11452
11453 if (self)
11454 {
11455 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11456 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11457 /* dlclose (self); */
11458 }
11459 else
11460 puts (dlerror ());
11461
718a6fd8 11462 return status;
d7040cdb
SE
11463}
11464_LT_EOF
81ecdfbb 11465 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
d7040cdb
SE
11466 (eval $ac_link) 2>&5
11467 ac_status=$?
81ecdfbb
RW
11468 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11469 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
d7040cdb
SE
11470 (./conftest; exit; ) >&5 2>/dev/null
11471 lt_status=$?
11472 case x$lt_status in
11473 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11474 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11475 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11476 esac
11477 else :
11478 # compilation failed
11479 lt_cv_dlopen_self_static=no
11480 fi
11481fi
11482rm -fr conftest*
11483
11484
11485fi
81ecdfbb
RW
11486{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11487$as_echo "$lt_cv_dlopen_self_static" >&6; }
d7040cdb
SE
11488 fi
11489
11490 CPPFLAGS="$save_CPPFLAGS"
11491 LDFLAGS="$save_LDFLAGS"
11492 LIBS="$save_LIBS"
11493 ;;
11494 esac
11495
11496 case $lt_cv_dlopen_self in
11497 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11498 *) enable_dlopen_self=unknown ;;
11499 esac
11500
11501 case $lt_cv_dlopen_self_static in
11502 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11503 *) enable_dlopen_self_static=unknown ;;
11504 esac
11505fi
11506
11507
11508
11509
11510
11511
11512
11513
11514
11515
11516
11517
11518
11519
11520
11521
11522
11523striplib=
11524old_striplib=
81ecdfbb
RW
11525{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11526$as_echo_n "checking whether stripping libraries is possible... " >&6; }
d7040cdb
SE
11527if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11528 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11529 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
81ecdfbb
RW
11530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11531$as_echo "yes" >&6; }
d7040cdb
SE
11532else
11533# FIXME - insert some real tests, host_os isn't really good enough
11534 case $host_os in
11535 darwin*)
11536 if test -n "$STRIP" ; then
11537 striplib="$STRIP -x"
11538 old_striplib="$STRIP -S"
81ecdfbb
RW
11539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11540$as_echo "yes" >&6; }
d7040cdb 11541 else
81ecdfbb
RW
11542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11543$as_echo "no" >&6; }
d7040cdb 11544 fi
20e95c23
DJ
11545 ;;
11546 *)
81ecdfbb
RW
11547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11548$as_echo "no" >&6; }
d7040cdb
SE
11549 ;;
11550 esac
11551fi
11552
11553
11554
11555
11556
11557
11558
11559
11560
11561
11562
11563
11564 # Report which library types will actually be built
81ecdfbb
RW
11565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11566$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11568$as_echo "$can_build_shared" >&6; }
d7040cdb 11569
81ecdfbb
RW
11570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11571$as_echo_n "checking whether to build shared libraries... " >&6; }
d7040cdb
SE
11572 test "$can_build_shared" = "no" && enable_shared=no
11573
11574 # On AIX, shared libraries and static libraries use the same namespace, and
11575 # are all built from PIC.
11576 case $host_os in
11577 aix3*)
11578 test "$enable_shared" = yes && enable_static=no
11579 if test -n "$RANLIB"; then
11580 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11581 postinstall_cmds='$RANLIB $lib'
11582 fi
11583 ;;
11584
e81819a5 11585 aix[4-9]*)
d7040cdb
SE
11586 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11587 test "$enable_shared" = yes && enable_static=no
11588 fi
20e95c23 11589 ;;
d7040cdb 11590 esac
81ecdfbb
RW
11591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11592$as_echo "$enable_shared" >&6; }
d7040cdb 11593
81ecdfbb
RW
11594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11595$as_echo_n "checking whether to build static libraries... " >&6; }
d7040cdb
SE
11596 # Make sure either enable_shared or enable_static is yes.
11597 test "$enable_shared" = yes || enable_static=yes
81ecdfbb
RW
11598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11599$as_echo "$enable_static" >&6; }
d7040cdb
SE
11600
11601
11602
11603
11604fi
11605ac_ext=c
11606ac_cpp='$CPP $CPPFLAGS'
11607ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11608ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11609ac_compiler_gnu=$ac_cv_c_compiler_gnu
11610
11611CC="$lt_save_CC"
11612
11613
11614
11615
11616
11617
11618
11619
11620
11621
11622
11623
11624
81ecdfbb 11625 ac_config_commands="$ac_config_commands libtool"
ce3c775b
NC
11626
11627
11628
11629
11630# Only expand once:
11631
11632
11633
da2f07f1
JK
11634# AC_PLUGINS setting $plugins is called by ACX_LARGEFILE.
11635
11636# As the $enable_largefile decision depends on --enable-plugins we must set it
11637# even in directories otherwise not depending on the $plugins option.
11638
5691d22d 11639
81ecdfbb
RW
11640# Check whether --enable-plugins was given.
11641if test "${enable_plugins+set}" = set; then :
11642 enableval=$enable_plugins; case "${enableval}" in
ce3c775b
NC
11643 yes | "") plugins=yes ;;
11644 no) plugins=no ;;
11645 *) plugins=yes ;;
11646 esac
11647else
11648 plugins=no
81ecdfbb 11649fi
ce3c775b
NC
11650
11651
5691d22d 11652
da2f07f1 11653case "${host}" in
ce3c775b
NC
11654 sparc-*-solaris*|i[3-7]86-*-solaris*)
11655 # On native 32bit sparc and ia32 solaris, large-file and procfs support
da2f07f1 11656 # are mutually exclusive; and without procfs support, the bfd/ elf module
ce3c775b
NC
11657 # cannot provide certain routines such as elfcore_write_prpsinfo
11658 # or elfcore_write_prstatus. So unless the user explicitly requested
11659 # large-file support through the --enable-largefile switch, disable
11660 # large-file support in favor of procfs support.
da2f07f1
JK
11661 test "${target}" = "${host}" -a "x$plugins" = xno \
11662 && : ${enable_largefile="no"}
ce3c775b
NC
11663 ;;
11664esac
11665
81ecdfbb
RW
11666# Check whether --enable-largefile was given.
11667if test "${enable_largefile+set}" = set; then :
11668 enableval=$enable_largefile;
11669fi
ce3c775b 11670
ce3c775b
NC
11671if test "$enable_largefile" != no; then
11672
81ecdfbb
RW
11673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
11674$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
11675if test "${ac_cv_sys_largefile_CC+set}" = set; then :
11676 $as_echo_n "(cached) " >&6
ce3c775b
NC
11677else
11678 ac_cv_sys_largefile_CC=no
11679 if test "$GCC" != yes; then
11680 ac_save_CC=$CC
11681 while :; do
81ecdfbb
RW
11682 # IRIX 6.2 and later do not support large files by default,
11683 # so use the C compiler's -n32 option if that helps.
11684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce3c775b
NC
11685/* end confdefs.h. */
11686#include <sys/types.h>
11687 /* Check that off_t can represent 2**63 - 1 correctly.
11688 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11689 since some C++ compilers masquerading as C compilers
11690 incorrectly reject 9223372036854775807. */
11691#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11692 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11693 && LARGE_OFF_T % 2147483647 == 1)
11694 ? 1 : -1];
11695int
11696main ()
11697{
11698
11699 ;
11700 return 0;
11701}
11702_ACEOF
81ecdfbb 11703 if ac_fn_c_try_compile "$LINENO"; then :
ce3c775b 11704 break
ce3c775b 11705fi
81ecdfbb
RW
11706rm -f core conftest.err conftest.$ac_objext
11707 CC="$CC -n32"
11708 if ac_fn_c_try_compile "$LINENO"; then :
ce3c775b 11709 ac_cv_sys_largefile_CC=' -n32'; break
ce3c775b 11710fi
81ecdfbb 11711rm -f core conftest.err conftest.$ac_objext
ce3c775b
NC
11712 break
11713 done
11714 CC=$ac_save_CC
11715 rm -f conftest.$ac_ext
11716 fi
11717fi
81ecdfbb
RW
11718{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
11719$as_echo "$ac_cv_sys_largefile_CC" >&6; }
ce3c775b
NC
11720 if test "$ac_cv_sys_largefile_CC" != no; then
11721 CC=$CC$ac_cv_sys_largefile_CC
11722 fi
11723
81ecdfbb
RW
11724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
11725$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
11726if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
11727 $as_echo_n "(cached) " >&6
ce3c775b
NC
11728else
11729 while :; do
81ecdfbb 11730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce3c775b
NC
11731/* end confdefs.h. */
11732#include <sys/types.h>
11733 /* Check that off_t can represent 2**63 - 1 correctly.
11734 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11735 since some C++ compilers masquerading as C compilers
11736 incorrectly reject 9223372036854775807. */
11737#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11738 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11739 && LARGE_OFF_T % 2147483647 == 1)
11740 ? 1 : -1];
11741int
11742main ()
11743{
11744
11745 ;
11746 return 0;
11747}
11748_ACEOF
81ecdfbb
RW
11749if ac_fn_c_try_compile "$LINENO"; then :
11750 ac_cv_sys_file_offset_bits=no; break
ce3c775b 11751fi
81ecdfbb
RW
11752rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce3c775b
NC
11754/* end confdefs.h. */
11755#define _FILE_OFFSET_BITS 64
11756#include <sys/types.h>
11757 /* Check that off_t can represent 2**63 - 1 correctly.
11758 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11759 since some C++ compilers masquerading as C compilers
11760 incorrectly reject 9223372036854775807. */
11761#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11762 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11763 && LARGE_OFF_T % 2147483647 == 1)
11764 ? 1 : -1];
11765int
11766main ()
11767{
11768
11769 ;
11770 return 0;
11771}
11772_ACEOF
81ecdfbb 11773if ac_fn_c_try_compile "$LINENO"; then :
ce3c775b 11774 ac_cv_sys_file_offset_bits=64; break
ce3c775b 11775fi
81ecdfbb
RW
11776rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11777 ac_cv_sys_file_offset_bits=unknown
ce3c775b
NC
11778 break
11779done
11780fi
81ecdfbb
RW
11781{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
11782$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
11783case $ac_cv_sys_file_offset_bits in #(
11784 no | unknown) ;;
11785 *)
ce3c775b
NC
11786cat >>confdefs.h <<_ACEOF
11787#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
11788_ACEOF
81ecdfbb
RW
11789;;
11790esac
11791rm -rf conftest*
11792 if test $ac_cv_sys_file_offset_bits = unknown; then
11793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
11794$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
11795if test "${ac_cv_sys_large_files+set}" = set; then :
11796 $as_echo_n "(cached) " >&6
ce3c775b
NC
11797else
11798 while :; do
81ecdfbb 11799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce3c775b
NC
11800/* end confdefs.h. */
11801#include <sys/types.h>
11802 /* Check that off_t can represent 2**63 - 1 correctly.
11803 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11804 since some C++ compilers masquerading as C compilers
11805 incorrectly reject 9223372036854775807. */
11806#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11807 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11808 && LARGE_OFF_T % 2147483647 == 1)
11809 ? 1 : -1];
11810int
11811main ()
11812{
11813
11814 ;
11815 return 0;
11816}
11817_ACEOF
81ecdfbb
RW
11818if ac_fn_c_try_compile "$LINENO"; then :
11819 ac_cv_sys_large_files=no; break
ce3c775b 11820fi
81ecdfbb
RW
11821rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce3c775b
NC
11823/* end confdefs.h. */
11824#define _LARGE_FILES 1
11825#include <sys/types.h>
11826 /* Check that off_t can represent 2**63 - 1 correctly.
11827 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11828 since some C++ compilers masquerading as C compilers
11829 incorrectly reject 9223372036854775807. */
11830#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11831 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11832 && LARGE_OFF_T % 2147483647 == 1)
11833 ? 1 : -1];
11834int
11835main ()
11836{
d7040cdb 11837
ce3c775b
NC
11838 ;
11839 return 0;
11840}
11841_ACEOF
81ecdfbb 11842if ac_fn_c_try_compile "$LINENO"; then :
ce3c775b 11843 ac_cv_sys_large_files=1; break
ce3c775b 11844fi
81ecdfbb
RW
11845rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11846 ac_cv_sys_large_files=unknown
ce3c775b
NC
11847 break
11848done
11849fi
81ecdfbb
RW
11850{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
11851$as_echo "$ac_cv_sys_large_files" >&6; }
11852case $ac_cv_sys_large_files in #(
11853 no | unknown) ;;
11854 *)
ce3c775b
NC
11855cat >>confdefs.h <<_ACEOF
11856#define _LARGE_FILES $ac_cv_sys_large_files
11857_ACEOF
81ecdfbb
RW
11858;;
11859esac
11860rm -rf conftest*
11861 fi
ce3c775b 11862fi
d7040cdb
SE
11863
11864
da2f07f1
JK
11865
11866 if test "$plugins" = "yes"; then
11867 PLUGINS_TRUE=
11868 PLUGINS_FALSE='#'
11869else
11870 PLUGINS_TRUE='#'
11871 PLUGINS_FALSE=
11872fi
11873
11874
11875if test "$plugins" = "yes"; then
11876 if test "$enable_dlopen" != "yes" ; then
11877 as_fn_error "
11878 Building BFD with plugin support requires a host that supports -ldl." "$LINENO" 5
11879 fi
11880 enable_targets="$enable_targets plugin"
11881fi
11882
81ecdfbb
RW
11883# Check whether --enable-64-bit-bfd was given.
11884if test "${enable_64_bit_bfd+set}" = set; then :
11885 enableval=$enable_64_bit_bfd; case "${enableval}" in
d7040cdb
SE
11886 yes) want64=true ;;
11887 no) want64=false ;;
81ecdfbb 11888 *) as_fn_error "bad value ${enableval} for 64-bit-bfd option" "$LINENO" 5 ;;
d7040cdb
SE
11889esac
11890else
11891 want64=false
81ecdfbb
RW
11892fi
11893
11894# Check whether --enable-targets was given.
11895if test "${enable_targets+set}" = set; then :
11896 enableval=$enable_targets; case "${enableval}" in
11897 yes | "") as_fn_error "enable-targets option must specify target names or 'all'" "$LINENO" 5
d7040cdb
SE
11898 ;;
11899 no) enable_targets= ;;
11900 *) enable_targets=$enableval ;;
11901esac
81ecdfbb 11902fi
504b7d20 11903
81ecdfbb
RW
11904
11905# Check whether --with-mmap was given.
11906if test "${with_mmap+set}" = set; then :
11907 withval=$with_mmap; case "${withval}" in
d7040cdb
SE
11908 yes) want_mmap=true ;;
11909 no) want_mmap=false ;;
81ecdfbb 11910 *) as_fn_error "bad value ${withval} for BFD with-mmap option" "$LINENO" 5 ;;
20e95c23 11911esac
252b5132 11912else
d7040cdb 11913 want_mmap=false
81ecdfbb
RW
11914fi
11915
11916# Check whether --enable-secureplt was given.
11917if test "${enable_secureplt+set}" = set; then :
11918 enableval=$enable_secureplt; case "${enableval}" in
d7040cdb
SE
11919 yes) use_secureplt=true ;;
11920 no) use_secureplt=false ;;
81ecdfbb 11921 *) as_fn_error "bad value ${enableval} for secureplt option" "$LINENO" 5 ;;
d7040cdb 11922esac
252b5132 11923else
d7040cdb 11924 use_secureplt=false
81ecdfbb
RW
11925fi
11926if test $use_secureplt = true; then
d7040cdb 11927
81ecdfbb 11928$as_echo "#define USE_SECUREPLT 1" >>confdefs.h
5464f5a1 11929
252b5132 11930fi
20e95c23 11931
0d4a1476
AS
11932DEBUGDIR=${libdir}/debug
11933
81ecdfbb
RW
11934# Check whether --with-separate-debug-dir was given.
11935if test "${with_separate_debug_dir+set}" = set; then :
11936 withval=$with_separate_debug_dir; DEBUGDIR="${withval}"
11937fi
11938
0d4a1476
AS
11939
11940
504b7d20
NC
11941# Check to see if we should allow the generation of
11942# symbols with the ELF standard's STT_COMMON type.
81ecdfbb
RW
11943# Check whether --enable-elf-stt-common was given.
11944if test "${enable_elf_stt_common+set}" = set; then :
11945 enableval=$enable_elf_stt_common; case "${enableval}" in
504b7d20
NC
11946 yes) want_elf_stt_common=true ;;
11947 no) want_elf_stt_common=false ;;
81ecdfbb 11948 *) as_fn_error "bad value ${enableval} for ELF STT_COMMON option" "$LINENO" 5 ;;
504b7d20
NC
11949 esac
11950else
11951 # We have to choose a default behaviour. For native builds we could
8bc9c892
NC
11952# test whether the loader supports the STT_COMMON type, but that would
11953# mean that built binaries could not be exported to older systems where
11954# the loader does not support it. So by default we always choose to
11955# disable this feature.
504b7d20 11956 want_elf_stt_common=false
81ecdfbb
RW
11957fi
11958if test $want_elf_stt_common = true; then
504b7d20 11959
81ecdfbb 11960$as_echo "#define USE_STT_COMMON 1" >>confdefs.h
504b7d20
NC
11961
11962fi
11963
11964
d7040cdb 11965
81ecdfbb
RW
11966# Check whether --with-pkgversion was given.
11967if test "${with_pkgversion+set}" = set; then :
11968 withval=$with_pkgversion; case "$withval" in
11969 yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
d7040cdb
SE
11970 no) PKGVERSION= ;;
11971 *) PKGVERSION="($withval) " ;;
11972 esac
252b5132 11973else
d7040cdb 11974 PKGVERSION="(GNU Binutils) "
252b5132 11975
81ecdfbb
RW
11976fi
11977
20e95c23
DJ
11978
11979
5464f5a1 11980
20e95c23 11981
81ecdfbb
RW
11982# Check whether --with-bugurl was given.
11983if test "${with_bugurl+set}" = set; then :
11984 withval=$with_bugurl; case "$withval" in
11985 yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
d7040cdb
SE
11986 no) BUGURL=
11987 ;;
11988 *) BUGURL="$withval"
11989 ;;
11990 esac
252b5132 11991else
d7040cdb
SE
11992 BUGURL="http://www.sourceware.org/bugzilla/"
11993
81ecdfbb
RW
11994fi
11995
d7040cdb
SE
11996 case ${BUGURL} in
11997 "")
11998 REPORT_BUGS_TO=
11999 REPORT_BUGS_TEXI=
20e95c23
DJ
12000 ;;
12001 *)
d7040cdb
SE
12002 REPORT_BUGS_TO="<$BUGURL>"
12003 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
20e95c23 12004 ;;
d7040cdb
SE
12005 esac;
12006
12007
12008
12009
12010
12011GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
12012
81ecdfbb
RW
12013# Check whether --enable-werror was given.
12014if test "${enable_werror+set}" = set; then :
12015 enableval=$enable_werror; case "${enableval}" in
d7040cdb
SE
12016 yes | y) ERROR_ON_WARNING="yes" ;;
12017 no | n) ERROR_ON_WARNING="no" ;;
81ecdfbb 12018 *) as_fn_error "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
d7040cdb 12019 esac
81ecdfbb
RW
12020fi
12021
d7040cdb 12022
bb8541b9
L
12023# Enable -Wno-format by default when using gcc on mingw
12024case "${host}" in
12025 *-*-mingw32*)
12026 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
12027 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
12028 fi
12029 ;;
12030 *) ;;
12031esac
12032
d7040cdb
SE
12033# Enable -Werror by default when using gcc
12034if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
12035 ERROR_ON_WARNING=yes
12036fi
12037
12038NO_WERROR=
12039if test "${ERROR_ON_WARNING}" = yes ; then
12040 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
12041 NO_WERROR="-Wno-error"
12042fi
12043
12044if test "${GCC}" = yes ; then
12045 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
12046fi
12047
81ecdfbb
RW
12048# Check whether --enable-build-warnings was given.
12049if test "${enable_build_warnings+set}" = set; then :
12050 enableval=$enable_build_warnings; case "${enableval}" in
d7040cdb
SE
12051 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
12052 no) if test "${GCC}" = yes ; then
12053 WARN_CFLAGS="-w"
12054 fi;;
12055 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
12056 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
12057 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
12058 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
12059 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
20e95c23 12060esac
81ecdfbb
RW
12061fi
12062
d7040cdb
SE
12063
12064if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
12065 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
20e95c23 12066fi
d7040cdb
SE
12067
12068
12069
12070
12071
81ecdfbb 12072ac_config_headers="$ac_config_headers config.h:config.in"
d7040cdb
SE
12073
12074
12075if test -z "$target" ; then
81ecdfbb 12076 as_fn_error "Unrecognized target system type; please check config.sub." "$LINENO" 5
20e95c23
DJ
12077fi
12078
81ecdfbb
RW
12079
12080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
12081$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
12082 # Check whether --enable-maintainer-mode was given.
12083if test "${enable_maintainer_mode+set}" = set; then :
12084 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
d7040cdb
SE
12085else
12086 USE_MAINTAINER_MODE=no
81ecdfbb 12087fi
20e95c23 12088
81ecdfbb
RW
12089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
12090$as_echo "$USE_MAINTAINER_MODE" >&6; }
12091 if test $USE_MAINTAINER_MODE = yes; then
d7040cdb
SE
12092 MAINTAINER_MODE_TRUE=
12093 MAINTAINER_MODE_FALSE='#'
12094else
12095 MAINTAINER_MODE_TRUE='#'
12096 MAINTAINER_MODE_FALSE=
6be7c12c 12097fi
5464f5a1 12098
d7040cdb
SE
12099 MAINT=$MAINTAINER_MODE_TRUE
12100
12101
81ecdfbb 12102 if false; then
d7040cdb
SE
12103 GENINSRC_NEVER_TRUE=
12104 GENINSRC_NEVER_FALSE='#'
20e95c23 12105else
d7040cdb
SE
12106 GENINSRC_NEVER_TRUE='#'
12107 GENINSRC_NEVER_FALSE=
5464f5a1 12108fi
5464f5a1 12109
d7040cdb
SE
12110 case ${build_alias} in
12111 "") build_noncanonical=${build} ;;
12112 *) build_noncanonical=${build_alias} ;;
20e95c23 12113esac
d7040cdb
SE
12114
12115 case ${host_alias} in
12116 "") host_noncanonical=${build_noncanonical} ;;
12117 *) host_noncanonical=${host_alias} ;;
12118esac
12119
12120 case ${target_alias} in
12121 "") target_noncanonical=${host_noncanonical} ;;
12122 *) target_noncanonical=${target_alias} ;;
12123esac
12124
81ecdfbb
RW
12125{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to install libbfd" >&5
12126$as_echo_n "checking whether to install libbfd... " >&6; }
12127 # Check whether --enable-install-libbfd was given.
12128if test "${enable_install_libbfd+set}" = set; then :
12129 enableval=$enable_install_libbfd; install_libbfd_p=$enableval
252b5132 12130else
d7040cdb
SE
12131 if test "${host}" = "${target}" || test "$enable_shared" = "yes"; then
12132 install_libbfd_p=yes
12133 else
12134 install_libbfd_p=no
12135 fi
81ecdfbb 12136fi
d7040cdb 12137
81ecdfbb
RW
12138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $install_libbfd_p" >&5
12139$as_echo "$install_libbfd_p" >&6; }
12140 if test $install_libbfd_p = yes; then
d7040cdb
SE
12141 INSTALL_LIBBFD_TRUE=
12142 INSTALL_LIBBFD_FALSE='#'
12143else
12144 INSTALL_LIBBFD_TRUE='#'
12145 INSTALL_LIBBFD_FALSE=
5464f5a1 12146fi
5464f5a1 12147
d7040cdb 12148 # Need _noncanonical variables for this.
5464f5a1 12149
5464f5a1 12150
d7040cdb
SE
12151
12152
12153 # libbfd.a is a host library containing target dependent code
12154 bfdlibdir='$(libdir)'
12155 bfdincludedir='$(includedir)'
12156 if test "${host}" != "${target}"; then
12157 bfdlibdir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/lib'
12158 bfdincludedir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/include'
20e95c23 12159 fi
6be7c12c 12160
5464f5a1 12161
5464f5a1
NN
12162
12163
5464f5a1 12164
ac48eca1 12165
573e8a1c
RW
12166
12167
d7040cdb
SE
12168host64=false
12169target64=false
12170bfd_default_target_size=32
252b5132 12171
d7040cdb 12172# host stuff:
20e95c23 12173
ec68b083 12174ALL_LINGUAS="fr tr ja es sv da zh_CN ro rw vi fi id ru"
d7040cdb
SE
12175# If we haven't got the data from the intl directory,
12176# assume NLS is disabled.
12177USE_NLS=no
12178LIBINTL=
12179LIBINTL_DEP=
12180INCINTL=
12181XGETTEXT=
12182GMSGFMT=
12183POSUB=
12184
12185if test -f ../intl/config.intl; then
12186 . ../intl/config.intl
252b5132 12187fi
81ecdfbb
RW
12188{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
12189$as_echo_n "checking whether NLS is requested... " >&6; }
d7040cdb 12190if test x"$USE_NLS" != xyes; then
81ecdfbb
RW
12191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12192$as_echo "no" >&6; }
d7040cdb 12193else
81ecdfbb
RW
12194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12195$as_echo "yes" >&6; }
5464f5a1 12196
81ecdfbb 12197$as_echo "#define ENABLE_NLS 1" >>confdefs.h
252b5132 12198
6be7c12c 12199
81ecdfbb
RW
12200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
12201$as_echo_n "checking for catalogs to be installed... " >&6; }
d7040cdb
SE
12202 # Look for .po and .gmo files in the source directory.
12203 CATALOGS=
12204 XLINGUAS=
12205 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
12206 # If there aren't any .gmo files the shell will give us the
12207 # literal string "../path/to/srcdir/po/*.gmo" which has to be
12208 # weeded out.
12209 case "$cat" in *\**)
12210 continue;;
12211 esac
12212 # The quadruple backslash is collapsed to a double backslash
12213 # by the backticks, then collapsed again by the double quotes,
12214 # leaving us with one backslash in the sed expression (right
12215 # before the dot that mustn't act as a wildcard).
12216 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
12217 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
12218 # The user is allowed to set LINGUAS to a list of languages to
12219 # install catalogs for. If it's empty that means "all of them."
12220 if test "x$LINGUAS" = x; then
12221 CATALOGS="$CATALOGS $cat"
12222 XLINGUAS="$XLINGUAS $lang"
12223 else
12224 case "$LINGUAS" in *$lang*)
12225 CATALOGS="$CATALOGS $cat"
12226 XLINGUAS="$XLINGUAS $lang"
12227 ;;
12228 esac
12229 fi
12230 done
12231 LINGUAS="$XLINGUAS"
81ecdfbb
RW
12232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
12233$as_echo "$LINGUAS" >&6; }
d7040cdb 12234
252b5132 12235
d7040cdb 12236 DATADIRNAME=share
252b5132 12237
d7040cdb 12238 INSTOBJEXT=.mo
5464f5a1 12239
d7040cdb 12240 GENCAT=gencat
20e95c23 12241
d7040cdb 12242 CATOBJEXT=.gmo
5464f5a1 12243
20e95c23 12244fi
5464f5a1 12245
d7040cdb
SE
12246 MKINSTALLDIRS=
12247 if test -n "$ac_aux_dir"; then
12248 case "$ac_aux_dir" in
12249 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
12250 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
12251 esac
12252 fi
12253 if test -z "$MKINSTALLDIRS"; then
12254 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
5464f5a1 12255 fi
5464f5a1 12256
5464f5a1 12257
d7040cdb 12258
81ecdfbb
RW
12259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
12260$as_echo_n "checking whether NLS is requested... " >&6; }
12261 # Check whether --enable-nls was given.
12262if test "${enable_nls+set}" = set; then :
12263 enableval=$enable_nls; USE_NLS=$enableval
252b5132 12264else
d7040cdb 12265 USE_NLS=yes
81ecdfbb
RW
12266fi
12267
12268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
12269$as_echo "$USE_NLS" >&6; }
5464f5a1 12270
252b5132 12271
5464f5a1 12272
252b5132 12273
d7040cdb
SE
12274
12275
12276# Prepare PATH_SEPARATOR.
12277# The user is always right.
12278if test "${PATH_SEPARATOR+set}" != set; then
12279 echo "#! /bin/sh" >conf$$.sh
12280 echo "exit 0" >>conf$$.sh
12281 chmod +x conf$$.sh
12282 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12283 PATH_SEPARATOR=';'
20e95c23 12284 else
d7040cdb 12285 PATH_SEPARATOR=:
20e95c23 12286 fi
d7040cdb
SE
12287 rm -f conf$$.sh
12288fi
12289
12290# Find out how to test for executable files. Don't use a zero-byte file,
12291# as systems may use methods other than mode bits to determine executability.
12292cat >conf$$.file <<_ASEOF
12293#! /bin/sh
12294exit 0
12295_ASEOF
12296chmod +x conf$$.file
12297if test -x conf$$.file >/dev/null 2>&1; then
12298 ac_executable_p="test -x"
20e95c23 12299else
d7040cdb 12300 ac_executable_p="test -f"
20e95c23 12301fi
d7040cdb 12302rm -f conf$$.file
5464f5a1 12303
d7040cdb
SE
12304# Extract the first word of "msgfmt", so it can be a program name with args.
12305set dummy msgfmt; ac_word=$2
81ecdfbb
RW
12306{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12307$as_echo_n "checking for $ac_word... " >&6; }
12308if test "${ac_cv_path_MSGFMT+set}" = set; then :
12309 $as_echo_n "(cached) " >&6
d7040cdb
SE
12310else
12311 case "$MSGFMT" in
12312 [\\/]* | ?:[\\/]*)
12313 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
12314 ;;
12315 *)
12316 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12317 for ac_dir in $PATH; do
12318 IFS="$ac_save_IFS"
12319 test -z "$ac_dir" && ac_dir=.
12320 for ac_exec_ext in '' $ac_executable_extensions; do
12321 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12322 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
12323 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12324 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
12325 break 2
12326 fi
12327 fi
12328 done
12329 done
12330 IFS="$ac_save_IFS"
12331 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
12332 ;;
12333esac
5464f5a1 12334fi
d7040cdb
SE
12335MSGFMT="$ac_cv_path_MSGFMT"
12336if test "$MSGFMT" != ":"; then
81ecdfbb
RW
12337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
12338$as_echo "$MSGFMT" >&6; }
20e95c23 12339else
81ecdfbb
RW
12340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12341$as_echo "no" >&6; }
252b5132 12342fi
d7040cdb
SE
12343
12344 # Extract the first word of "gmsgfmt", so it can be a program name with args.
12345set dummy gmsgfmt; ac_word=$2
81ecdfbb
RW
12346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12347$as_echo_n "checking for $ac_word... " >&6; }
12348if test "${ac_cv_path_GMSGFMT+set}" = set; then :
12349 $as_echo_n "(cached) " >&6
252b5132 12350else
d7040cdb
SE
12351 case $GMSGFMT in
12352 [\\/]* | ?:[\\/]*)
12353 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
12354 ;;
12355 *)
12356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12357for as_dir in $PATH
12358do
12359 IFS=$as_save_IFS
12360 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12361 for ac_exec_ext in '' $ac_executable_extensions; do
12362 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d7040cdb 12363 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 12364 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d7040cdb
SE
12365 break 2
12366 fi
12367done
81ecdfbb
RW
12368 done
12369IFS=$as_save_IFS
5464f5a1 12370
d7040cdb
SE
12371 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
12372 ;;
12373esac
252b5132 12374fi
d7040cdb 12375GMSGFMT=$ac_cv_path_GMSGFMT
d7040cdb 12376if test -n "$GMSGFMT"; then
81ecdfbb
RW
12377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
12378$as_echo "$GMSGFMT" >&6; }
252b5132 12379else
81ecdfbb
RW
12380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12381$as_echo "no" >&6; }
252b5132
RH
12382fi
12383
20e95c23
DJ
12384
12385
81ecdfbb 12386
d7040cdb
SE
12387# Prepare PATH_SEPARATOR.
12388# The user is always right.
12389if test "${PATH_SEPARATOR+set}" != set; then
12390 echo "#! /bin/sh" >conf$$.sh
12391 echo "exit 0" >>conf$$.sh
12392 chmod +x conf$$.sh
12393 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12394 PATH_SEPARATOR=';'
12395 else
12396 PATH_SEPARATOR=:
12397 fi
12398 rm -f conf$$.sh
252b5132 12399fi
20e95c23 12400
d7040cdb
SE
12401# Find out how to test for executable files. Don't use a zero-byte file,
12402# as systems may use methods other than mode bits to determine executability.
12403cat >conf$$.file <<_ASEOF
12404#! /bin/sh
12405exit 0
12406_ASEOF
12407chmod +x conf$$.file
12408if test -x conf$$.file >/dev/null 2>&1; then
12409 ac_executable_p="test -x"
12410else
12411 ac_executable_p="test -f"
12412fi
12413rm -f conf$$.file
252b5132 12414
d7040cdb
SE
12415# Extract the first word of "xgettext", so it can be a program name with args.
12416set dummy xgettext; ac_word=$2
81ecdfbb
RW
12417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12418$as_echo_n "checking for $ac_word... " >&6; }
12419if test "${ac_cv_path_XGETTEXT+set}" = set; then :
12420 $as_echo_n "(cached) " >&6
20e95c23 12421else
d7040cdb
SE
12422 case "$XGETTEXT" in
12423 [\\/]* | ?:[\\/]*)
12424 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
12425 ;;
12426 *)
12427 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12428 for ac_dir in $PATH; do
12429 IFS="$ac_save_IFS"
12430 test -z "$ac_dir" && ac_dir=.
12431 for ac_exec_ext in '' $ac_executable_extensions; do
12432 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12433 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
12434 (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
12435 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
12436 break 2
12437 fi
12438 fi
12439 done
12440 done
12441 IFS="$ac_save_IFS"
12442 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
12443 ;;
12444esac
12445fi
12446XGETTEXT="$ac_cv_path_XGETTEXT"
12447if test "$XGETTEXT" != ":"; then
81ecdfbb
RW
12448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
12449$as_echo "$XGETTEXT" >&6; }
252b5132 12450else
81ecdfbb
RW
12451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12452$as_echo "no" >&6; }
252b5132
RH
12453fi
12454
d7040cdb 12455 rm -f messages.po
5464f5a1 12456
252b5132 12457
d7040cdb
SE
12458# Prepare PATH_SEPARATOR.
12459# The user is always right.
12460if test "${PATH_SEPARATOR+set}" != set; then
12461 echo "#! /bin/sh" >conf$$.sh
12462 echo "exit 0" >>conf$$.sh
12463 chmod +x conf$$.sh
12464 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12465 PATH_SEPARATOR=';'
12466 else
12467 PATH_SEPARATOR=:
12468 fi
12469 rm -f conf$$.sh
252b5132
RH
12470fi
12471
d7040cdb
SE
12472# Find out how to test for executable files. Don't use a zero-byte file,
12473# as systems may use methods other than mode bits to determine executability.
12474cat >conf$$.file <<_ASEOF
12475#! /bin/sh
12476exit 0
12477_ASEOF
12478chmod +x conf$$.file
12479if test -x conf$$.file >/dev/null 2>&1; then
12480 ac_executable_p="test -x"
5464f5a1 12481else
d7040cdb 12482 ac_executable_p="test -f"
20e95c23 12483fi
d7040cdb 12484rm -f conf$$.file
5464f5a1 12485
d7040cdb
SE
12486# Extract the first word of "msgmerge", so it can be a program name with args.
12487set dummy msgmerge; ac_word=$2
81ecdfbb
RW
12488{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12489$as_echo_n "checking for $ac_word... " >&6; }
12490if test "${ac_cv_path_MSGMERGE+set}" = set; then :
12491 $as_echo_n "(cached) " >&6
d7040cdb
SE
12492else
12493 case "$MSGMERGE" in
12494 [\\/]* | ?:[\\/]*)
12495 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
12496 ;;
12497 *)
12498 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12499 for ac_dir in $PATH; do
12500 IFS="$ac_save_IFS"
12501 test -z "$ac_dir" && ac_dir=.
12502 for ac_exec_ext in '' $ac_executable_extensions; do
12503 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12504 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
12505 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
12506 break 2
12507 fi
12508 fi
12509 done
12510 done
12511 IFS="$ac_save_IFS"
12512 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
12513 ;;
12514esac
5464f5a1 12515fi
d7040cdb
SE
12516MSGMERGE="$ac_cv_path_MSGMERGE"
12517if test "$MSGMERGE" != ":"; then
81ecdfbb
RW
12518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
12519$as_echo "$MSGMERGE" >&6; }
20e95c23 12520else
81ecdfbb
RW
12521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12522$as_echo "no" >&6; }
d7040cdb 12523fi
20e95c23 12524
5464f5a1 12525
d7040cdb
SE
12526 if test "$GMSGFMT" != ":"; then
12527 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
12528 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12529 : ;
12530 else
12531 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
81ecdfbb
RW
12532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
12533$as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
d7040cdb
SE
12534 GMSGFMT=":"
12535 fi
12536 fi
252b5132 12537
d7040cdb
SE
12538 if test "$XGETTEXT" != ":"; then
12539 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
12540 (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
12541 : ;
12542 else
81ecdfbb
RW
12543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
12544$as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
d7040cdb
SE
12545 XGETTEXT=":"
12546 fi
12547 rm -f messages.po
12548 fi
6be7c12c 12549
81ecdfbb 12550 ac_config_commands="$ac_config_commands default-1"
5464f5a1 12551
252b5132 12552
5464f5a1 12553
d7040cdb
SE
12554# Permit host specific settings.
12555. ${srcdir}/configure.host
12556
12557
252b5132 12558
252b5132 12559
d7040cdb 12560BFD_HOST_64BIT_LONG=0
d2df793a 12561BFD_HOST_64BIT_LONG_LONG=0
d7040cdb
SE
12562BFD_HOST_64_BIT_DEFINED=0
12563BFD_HOST_64_BIT=
12564BFD_HOST_U_64_BIT=
d2df793a 12565BFD_HOSTPTR_T="unsigned long"
6be7c12c 12566
81ecdfbb
RW
12567# The cast to long int works around a bug in the HP C Compiler
12568# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12569# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12570# This bug is HP SR number 8606223364.
12571{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
12572$as_echo_n "checking size of long long... " >&6; }
12573if test "${ac_cv_sizeof_long_long+set}" = set; then :
12574 $as_echo_n "(cached) " >&6
6726e1ea 12575else
81ecdfbb
RW
12576 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
12577
12578else
12579 if test "$ac_cv_type_long_long" = yes; then
12580 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12581$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12582{ as_fn_set_status 77
12583as_fn_error "cannot compute sizeof (long long)
12584See \`config.log' for more details." "$LINENO" 5; }; }
12585 else
12586 ac_cv_sizeof_long_long=0
12587 fi
12588fi
12589
12590fi
12591{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
12592$as_echo "$ac_cv_sizeof_long_long" >&6; }
12593
12594
12595
12596cat >>confdefs.h <<_ACEOF
12597#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5464f5a1 12598_ACEOF
81ecdfbb
RW
12599
12600
12601# The cast to long int works around a bug in the HP C Compiler
12602# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12603# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12604# This bug is HP SR number 8606223364.
12605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
12606$as_echo_n "checking size of void *... " >&6; }
12607if test "${ac_cv_sizeof_void_p+set}" = set; then :
12608 $as_echo_n "(cached) " >&6
6726e1ea 12609else
81ecdfbb 12610 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
5464f5a1 12611
81ecdfbb
RW
12612else
12613 if test "$ac_cv_type_void_p" = yes; then
12614 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12615$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12616{ as_fn_set_status 77
12617as_fn_error "cannot compute sizeof (void *)
12618See \`config.log' for more details." "$LINENO" 5; }; }
12619 else
12620 ac_cv_sizeof_void_p=0
12621 fi
6726e1ea 12622fi
81ecdfbb 12623
6726e1ea 12624fi
81ecdfbb
RW
12625{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
12626$as_echo "$ac_cv_sizeof_void_p" >&6; }
6726e1ea 12627
6726e1ea 12628
2ba49b59 12629
81ecdfbb
RW
12630cat >>confdefs.h <<_ACEOF
12631#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5464f5a1 12632_ACEOF
81ecdfbb
RW
12633
12634
12635# The cast to long int works around a bug in the HP C Compiler
12636# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12637# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12638# This bug is HP SR number 8606223364.
12639{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
12640$as_echo_n "checking size of long... " >&6; }
12641if test "${ac_cv_sizeof_long+set}" = set; then :
12642 $as_echo_n "(cached) " >&6
6726e1ea 12643else
81ecdfbb 12644 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
5464f5a1 12645
252b5132 12646else
81ecdfbb
RW
12647 if test "$ac_cv_type_long" = yes; then
12648 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12649$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12650{ as_fn_set_status 77
12651as_fn_error "cannot compute sizeof (long)
12652See \`config.log' for more details." "$LINENO" 5; }; }
12653 else
12654 ac_cv_sizeof_long=0
12655 fi
12656fi
5464f5a1 12657
81ecdfbb
RW
12658fi
12659{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
12660$as_echo "$ac_cv_sizeof_long" >&6; }
2ba49b59 12661
81ecdfbb
RW
12662
12663
12664cat >>confdefs.h <<_ACEOF
12665#define SIZEOF_LONG $ac_cv_sizeof_long
5464f5a1 12666_ACEOF
2ba49b59 12667
2ba49b59 12668
81ecdfbb
RW
12669
12670if test "x${ac_cv_sizeof_void_p}" = "x8"; then
12671 host64=true
252b5132 12672fi
5464f5a1 12673
81ecdfbb
RW
12674if test "x${ac_cv_sizeof_long}" = "x8"; then
12675 BFD_HOST_64BIT_LONG=1
12676 test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long"
12677 test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long"
12678elif test "x${ac_cv_sizeof_long_long}" = "x8"; then
12679 BFD_HOST_64BIT_LONG_LONG=1
12680 test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long long"
12681 test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long long"
12682 if test "x${ac_cv_sizeof_void_p}" = "x8"; then
12683 BFD_HOSTPTR_T="unsigned long long"
12684 fi
252b5132 12685fi
81ecdfbb
RW
12686
12687if test -n "${HOST_64BIT_TYPE}" -a -n "${HOST_U_64BIT_TYPE}"; then
12688 BFD_HOST_64_BIT_DEFINED=1
12689 BFD_HOST_64_BIT="${HOST_64BIT_TYPE}"
12690 BFD_HOST_U_64_BIT="${HOST_U_64BIT_TYPE}"
2ba49b59 12691fi
5464f5a1 12692
5464f5a1 12693
2ba49b59 12694
2ba49b59 12695
5464f5a1 12696
81ecdfbb
RW
12697
12698
12699
12700# Put a plausible default for CC_FOR_BUILD in Makefile.
12701if test -z "$CC_FOR_BUILD"; then
12702 if test "x$cross_compiling" = "xno"; then
12703 CC_FOR_BUILD='$(CC)'
12704 else
12705 CC_FOR_BUILD=gcc
12706 fi
2ba49b59 12707fi
81ecdfbb
RW
12708
12709# Also set EXEEXT_FOR_BUILD.
12710if test "x$cross_compiling" = "xno"; then
12711 EXEEXT_FOR_BUILD='$(EXEEXT)'
12712else
12713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for build system executable suffix" >&5
12714$as_echo_n "checking for build system executable suffix... " >&6; }
12715if test "${bfd_cv_build_exeext+set}" = set; then :
12716 $as_echo_n "(cached) " >&6
6be7c12c 12717else
81ecdfbb
RW
12718 rm -f conftest*
12719 echo 'int main () { return 0; }' > conftest.c
12720 bfd_cv_build_exeext=
12721 ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5
12722 for file in conftest.*; do
12723 case $file in
12724 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
12725 *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
12726 esac
12727 done
12728 rm -f conftest*
12729 test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
5464f5a1 12730fi
81ecdfbb
RW
12731{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_build_exeext" >&5
12732$as_echo "$bfd_cv_build_exeext" >&6; }
12733 EXEEXT_FOR_BUILD=""
12734 test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
5464f5a1 12735fi
5464f5a1 12736
5464f5a1 12737
81ecdfbb
RW
12738for ac_header in alloca.h stddef.h string.h strings.h stdlib.h time.h unistd.h
12739do :
12740 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12741ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12742eval as_val=\$$as_ac_Header
12743 if test "x$as_val" = x""yes; then :
12744 cat >>confdefs.h <<_ACEOF
12745#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
d2df793a 12746_ACEOF
d2df793a 12747
d2df793a 12748fi
d2df793a 12749
81ecdfbb 12750done
d2df793a 12751
81ecdfbb
RW
12752for ac_header in fcntl.h sys/file.h sys/time.h sys/stat.h
12753do :
12754 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12755ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12756eval as_val=\$$as_ac_Header
12757 if test "x$as_val" = x""yes; then :
12758 cat >>confdefs.h <<_ACEOF
12759#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
d2df793a 12760_ACEOF
d2df793a 12761
d2df793a 12762fi
d2df793a 12763
81ecdfbb 12764done
d2df793a 12765
81ecdfbb 12766
d2df793a 12767
f3b4f6d0 12768inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
81ecdfbb 12769
f3b4f6d0
PB
12770acx_cv_header_stdint=stddef.h
12771acx_cv_header_stdint_kind="(already complete)"
12772for i in stdint.h $inttype_headers; do
12773 unset ac_cv_type_uintptr_t
12774 unset ac_cv_type_uintmax_t
12775 unset ac_cv_type_int_least32_t
12776 unset ac_cv_type_int_fast32_t
12777 unset ac_cv_type_uint64_t
12778 $as_echo_n "looking for a compliant stdint.h in $i, " >&6
12779 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "#include <sys/types.h>
12780#include <$i>
12781"
12782if test "x$ac_cv_type_uintmax_t" = x""yes; then :
12783 acx_cv_header_stdint=$i
d2df793a 12784else
f3b4f6d0
PB
12785 continue
12786fi
81ecdfbb 12787
f3b4f6d0
PB
12788 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
12789#include <$i>
12790"
12791if test "x$ac_cv_type_uintptr_t" = x""yes; then :
d2df793a 12792
81ecdfbb 12793else
f3b4f6d0 12794 acx_cv_header_stdint_kind="(mostly complete)"
d2df793a 12795fi
81ecdfbb 12796
f3b4f6d0
PB
12797 ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <sys/types.h>
12798#include <$i>
12799"
12800if test "x$ac_cv_type_int_least32_t" = x""yes; then :
12801
d2df793a 12802else
f3b4f6d0 12803 acx_cv_header_stdint_kind="(mostly complete)"
81ecdfbb 12804fi
81ecdfbb 12805
f3b4f6d0
PB
12806 ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include <sys/types.h>
12807#include <$i>
12808"
12809if test "x$ac_cv_type_int_fast32_t" = x""yes; then :
81ecdfbb 12810
f3b4f6d0
PB
12811else
12812 acx_cv_header_stdint_kind="(mostly complete)"
12813fi
81ecdfbb 12814
f3b4f6d0
PB
12815 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
12816#include <$i>
12817"
12818if test "x$ac_cv_type_uint64_t" = x""yes; then :
d2df793a 12819
07c58694 12820else
f3b4f6d0
PB
12821 acx_cv_header_stdint_kind="(lacks uint64_t)"
12822fi
81ecdfbb 12823
f3b4f6d0
PB
12824 break
12825done
12826if test "$acx_cv_header_stdint" = stddef.h; then
12827 acx_cv_header_stdint_kind="(lacks uintmax_t)"
12828 for i in stdint.h $inttype_headers; do
12829 unset ac_cv_type_uintptr_t
12830 unset ac_cv_type_uint32_t
12831 unset ac_cv_type_uint64_t
12832 $as_echo_n "looking for an incomplete stdint.h in $i, " >&6
12833 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <sys/types.h>
12834#include <$i>
12835"
12836if test "x$ac_cv_type_uint32_t" = x""yes; then :
12837 acx_cv_header_stdint=$i
12838else
12839 continue
d2df793a 12840fi
81ecdfbb 12841
f3b4f6d0
PB
12842 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
12843#include <$i>
12844"
12845if test "x$ac_cv_type_uint64_t" = x""yes; then :
81ecdfbb 12846
f3b4f6d0 12847fi
81ecdfbb 12848
f3b4f6d0
PB
12849 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
12850#include <$i>
12851"
12852if test "x$ac_cv_type_uintptr_t" = x""yes; then :
81ecdfbb 12853
f3b4f6d0 12854fi
81ecdfbb 12855
f3b4f6d0
PB
12856 break
12857 done
12858fi
12859if test "$acx_cv_header_stdint" = stddef.h; then
12860 acx_cv_header_stdint_kind="(u_intXX_t style)"
12861 for i in sys/types.h $inttype_headers; do
12862 unset ac_cv_type_u_int32_t
12863 unset ac_cv_type_u_int64_t
12864 $as_echo_n "looking for u_intXX_t types in $i, " >&6
12865 ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <sys/types.h>
12866#include <$i>
12867"
12868if test "x$ac_cv_type_u_int32_t" = x""yes; then :
12869 acx_cv_header_stdint=$i
07c58694 12870else
f3b4f6d0
PB
12871 continue
12872fi
81ecdfbb 12873
f3b4f6d0
PB
12874 ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include <sys/types.h>
12875#include <$i>
12876"
12877if test "x$ac_cv_type_u_int64_t" = x""yes; then :
81ecdfbb 12878
f3b4f6d0 12879fi
81ecdfbb 12880
f3b4f6d0
PB
12881 break
12882 done
d2df793a 12883fi
f3b4f6d0
PB
12884if test "$acx_cv_header_stdint" = stddef.h; then
12885 acx_cv_header_stdint_kind="(using manual detection)"
d2df793a 12886fi
81ecdfbb 12887
f3b4f6d0
PB
12888test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
12889test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
12890test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
12891test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
12892test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
81ecdfbb 12893
f3b4f6d0 12894# ----------------- Summarize what we found so far
07c58694 12895
f3b4f6d0
PB
12896{ $as_echo "$as_me:${as_lineno-$LINENO}: checking what to include in bfd_stdint.h" >&5
12897$as_echo_n "checking what to include in bfd_stdint.h... " >&6; }
81ecdfbb 12898
f3b4f6d0
PB
12899case `$as_basename -- bfd_stdint.h ||
12900$as_expr X/bfd_stdint.h : '.*/\([^/][^/]*\)/*$' \| \
12901 Xbfd_stdint.h : 'X\(//\)$' \| \
12902 Xbfd_stdint.h : 'X\(/\)' \| . 2>/dev/null ||
12903$as_echo X/bfd_stdint.h |
12904 sed '/^.*\/\([^/][^/]*\)\/*$/{
12905 s//\1/
12906 q
12907 }
12908 /^X\/\(\/\/\)$/{
12909 s//\1/
12910 q
12911 }
12912 /^X\/\(\/\).*/{
12913 s//\1/
12914 q
12915 }
12916 s/.*/./; q'` in
12917 stdint.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
12918$as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
12919 inttypes.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
12920$as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
12921 *) ;;
12922esac
81ecdfbb 12923
f3b4f6d0
PB
12924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
12925$as_echo "$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6; }
5464f5a1 12926
f3b4f6d0 12927# ----------------- done included file, check C basic types --------
2ba49b59 12928
f3b4f6d0
PB
12929# Lacking an uintptr_t? Test size of void *
12930case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
12931 stddef.h:* | *:no) # The cast to long int works around a bug in the HP C Compiler
12932# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12933# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12934# This bug is HP SR number 8606223364.
12935{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
12936$as_echo_n "checking size of void *... " >&6; }
12937if test "${ac_cv_sizeof_void_p+set}" = set; then :
12938 $as_echo_n "(cached) " >&6
12939else
12940 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
2ba49b59 12941
f3b4f6d0
PB
12942else
12943 if test "$ac_cv_type_void_p" = yes; then
12944 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12945$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12946{ as_fn_set_status 77
12947as_fn_error "cannot compute sizeof (void *)
12948See \`config.log' for more details." "$LINENO" 5; }; }
12949 else
12950 ac_cv_sizeof_void_p=0
12951 fi
12952fi
81ecdfbb 12953
f3b4f6d0
PB
12954fi
12955{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
12956$as_echo "$ac_cv_sizeof_void_p" >&6; }
81ecdfbb 12957
07c58694
PB
12958
12959
12960cat >>confdefs.h <<_ACEOF
f3b4f6d0 12961#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
07c58694 12962_ACEOF
07c58694 12963
f3b4f6d0
PB
12964 ;;
12965esac
07c58694 12966
f3b4f6d0
PB
12967# Lacking an uint64_t? Test size of long
12968case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
12969 stddef.h:*:* | *:no:no) # The cast to long int works around a bug in the HP C Compiler
12970# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12971# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12972# This bug is HP SR number 8606223364.
12973{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
12974$as_echo_n "checking size of long... " >&6; }
12975if test "${ac_cv_sizeof_long+set}" = set; then :
81ecdfbb 12976 $as_echo_n "(cached) " >&6
5464f5a1 12977else
f3b4f6d0 12978 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
07c58694 12979
2ba49b59 12980else
f3b4f6d0
PB
12981 if test "$ac_cv_type_long" = yes; then
12982 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12983$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12984{ as_fn_set_status 77
12985as_fn_error "cannot compute sizeof (long)
12986See \`config.log' for more details." "$LINENO" 5; }; }
12987 else
12988 ac_cv_sizeof_long=0
12989 fi
81ecdfbb 12990fi
2ba49b59 12991
f3b4f6d0
PB
12992fi
12993{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
12994$as_echo "$ac_cv_sizeof_long" >&6; }
81ecdfbb 12995
5464f5a1 12996
81ecdfbb 12997
f3b4f6d0
PB
12998cat >>confdefs.h <<_ACEOF
12999#define SIZEOF_LONG $ac_cv_sizeof_long
13000_ACEOF
07c58694 13001
f3b4f6d0
PB
13002 ;;
13003esac
2ba49b59 13004
f3b4f6d0
PB
13005if test $acx_cv_header_stdint = stddef.h; then
13006 # Lacking a good header? Test size of everything and deduce all types.
13007 # The cast to long int works around a bug in the HP C Compiler
13008# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13009# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13010# This bug is HP SR number 8606223364.
13011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
13012$as_echo_n "checking size of int... " >&6; }
13013if test "${ac_cv_sizeof_int+set}" = set; then :
13014 $as_echo_n "(cached) " >&6
81ecdfbb 13015else
f3b4f6d0 13016 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
81ecdfbb 13017
f3b4f6d0
PB
13018else
13019 if test "$ac_cv_type_int" = yes; then
13020 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13021$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13022{ as_fn_set_status 77
13023as_fn_error "cannot compute sizeof (int)
13024See \`config.log' for more details." "$LINENO" 5; }; }
13025 else
13026 ac_cv_sizeof_int=0
13027 fi
2ba49b59 13028fi
81ecdfbb 13029
f3b4f6d0
PB
13030fi
13031{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
13032$as_echo "$ac_cv_sizeof_int" >&6; }
81ecdfbb
RW
13033
13034
07c58694
PB
13035
13036cat >>confdefs.h <<_ACEOF
f3b4f6d0 13037#define SIZEOF_INT $ac_cv_sizeof_int
07c58694 13038_ACEOF
81ecdfbb 13039
07c58694 13040
f3b4f6d0
PB
13041 # The cast to long int works around a bug in the HP C Compiler
13042# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13043# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13044# This bug is HP SR number 8606223364.
13045{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
13046$as_echo_n "checking size of short... " >&6; }
13047if test "${ac_cv_sizeof_short+set}" = set; then :
13048 $as_echo_n "(cached) " >&6
13049else
13050 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
07c58694 13051
f3b4f6d0
PB
13052else
13053 if test "$ac_cv_type_short" = yes; then
13054 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13055$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13056{ as_fn_set_status 77
13057as_fn_error "cannot compute sizeof (short)
13058See \`config.log' for more details." "$LINENO" 5; }; }
13059 else
13060 ac_cv_sizeof_short=0
13061 fi
13062fi
07c58694 13063
f3b4f6d0
PB
13064fi
13065{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
13066$as_echo "$ac_cv_sizeof_short" >&6; }
07c58694
PB
13067
13068
13069
f3b4f6d0
PB
13070cat >>confdefs.h <<_ACEOF
13071#define SIZEOF_SHORT $ac_cv_sizeof_short
13072_ACEOF
07c58694
PB
13073
13074
f3b4f6d0
PB
13075 # The cast to long int works around a bug in the HP C Compiler
13076# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13077# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13078# This bug is HP SR number 8606223364.
13079{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
13080$as_echo_n "checking size of char... " >&6; }
13081if test "${ac_cv_sizeof_char+set}" = set; then :
13082 $as_echo_n "(cached) " >&6
13083else
13084 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
07c58694 13085
f3b4f6d0
PB
13086else
13087 if test "$ac_cv_type_char" = yes; then
13088 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13089$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13090{ as_fn_set_status 77
13091as_fn_error "cannot compute sizeof (char)
13092See \`config.log' for more details." "$LINENO" 5; }; }
13093 else
13094 ac_cv_sizeof_char=0
13095 fi
13096fi
07c58694 13097
f3b4f6d0
PB
13098fi
13099{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
13100$as_echo "$ac_cv_sizeof_char" >&6; }
07c58694
PB
13101
13102
07c58694 13103
2ba49b59 13104cat >>confdefs.h <<_ACEOF
f3b4f6d0 13105#define SIZEOF_CHAR $ac_cv_sizeof_char
2ba49b59
KC
13106_ACEOF
13107
13108
2ba49b59 13109
f3b4f6d0
PB
13110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int8_t" >&5
13111$as_echo_n "checking for type equivalent to int8_t... " >&6; }
13112 case "$ac_cv_sizeof_char" in
13113 1) acx_cv_type_int8_t=char ;;
13114 *) { as_fn_set_status please report a bug
13115as_fn_error "no 8-bit type" "$LINENO" 5; }
13116 esac
13117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int8_t" >&5
13118$as_echo "$acx_cv_type_int8_t" >&6; }
13119
13120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int16_t" >&5
13121$as_echo_n "checking for type equivalent to int16_t... " >&6; }
13122 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
13123 2:*) acx_cv_type_int16_t=int ;;
13124 *:2) acx_cv_type_int16_t=short ;;
13125 *) { as_fn_set_status please report a bug
13126as_fn_error "no 16-bit type" "$LINENO" 5; }
13127 esac
13128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int16_t" >&5
13129$as_echo "$acx_cv_type_int16_t" >&6; }
13130
13131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int32_t" >&5
13132$as_echo_n "checking for type equivalent to int32_t... " >&6; }
13133 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
13134 4:*) acx_cv_type_int32_t=int ;;
13135 *:4) acx_cv_type_int32_t=long ;;
13136 *) { as_fn_set_status please report a bug
13137as_fn_error "no 32-bit type" "$LINENO" 5; }
13138 esac
13139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int32_t" >&5
13140$as_echo "$acx_cv_type_int32_t" >&6; }
81ecdfbb 13141fi
2ba49b59 13142
f3b4f6d0 13143# These tests are here to make the output prettier
07c58694 13144
f3b4f6d0
PB
13145if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
13146 case "$ac_cv_sizeof_long" in
13147 8) acx_cv_type_int64_t=long ;;
13148 esac
13149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int64_t" >&5
13150$as_echo_n "checking for type equivalent to int64_t... " >&6; }
13151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
13152$as_echo "${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6; }
13153fi
13154
13155# Now we can use the above types
13156
13157if test "$ac_cv_type_uintptr_t" != yes; then
13158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to intptr_t" >&5
13159$as_echo_n "checking for type equivalent to intptr_t... " >&6; }
13160 case $ac_cv_sizeof_void_p in
13161 2) acx_cv_type_intptr_t=int16_t ;;
13162 4) acx_cv_type_intptr_t=int32_t ;;
13163 8) acx_cv_type_intptr_t=int64_t ;;
13164 *) { as_fn_set_status please report a bug
13165as_fn_error "no equivalent for intptr_t" "$LINENO" 5; }
13166 esac
13167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_intptr_t" >&5
13168$as_echo "$acx_cv_type_intptr_t" >&6; }
13169fi
07c58694 13170
f3b4f6d0 13171# ----------------- done all checks, emit header -------------
81ecdfbb 13172ac_config_commands="$ac_config_commands bfd_stdint.h"
2ba49b59
KC
13173
13174
d2df793a 13175
81ecdfbb
RW
13176{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
13177$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
13178if test "${ac_cv_header_time+set}" = set; then :
13179 $as_echo_n "(cached) " >&6
2ba49b59 13180else
81ecdfbb
RW
13181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13182/* end confdefs.h. */
13183#include <sys/types.h>
13184#include <sys/time.h>
13185#include <time.h>
13186
13187int
13188main ()
13189{
13190if ((struct tm *) 0)
13191return 0;
13192 ;
13193 return 0;
13194}
13195_ACEOF
13196if ac_fn_c_try_compile "$LINENO"; then :
13197 ac_cv_header_time=yes
2ba49b59 13198else
81ecdfbb 13199 ac_cv_header_time=no
2ba49b59 13200fi
81ecdfbb 13201rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2ba49b59 13202fi
81ecdfbb
RW
13203{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
13204$as_echo "$ac_cv_header_time" >&6; }
13205if test $ac_cv_header_time = yes; then
2ba49b59 13206
81ecdfbb 13207$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
2ba49b59 13208
2ba49b59 13209fi
81ecdfbb
RW
13210
13211ac_header_dirent=no
13212for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13213 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13214{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
13215$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
13216if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
13217 $as_echo_n "(cached) " >&6
2ba49b59 13218else
81ecdfbb 13219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2ba49b59 13220/* end confdefs.h. */
81ecdfbb
RW
13221#include <sys/types.h>
13222#include <$ac_hdr>
13223
13224int
13225main ()
13226{
13227if ((DIR *) 0)
13228return 0;
13229 ;
13230 return 0;
13231}
2ba49b59 13232_ACEOF
81ecdfbb
RW
13233if ac_fn_c_try_compile "$LINENO"; then :
13234 eval "$as_ac_Header=yes"
2ba49b59 13235else
81ecdfbb
RW
13236 eval "$as_ac_Header=no"
13237fi
13238rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13239fi
13240eval ac_res=\$$as_ac_Header
13241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13242$as_echo "$ac_res" >&6; }
13243eval as_val=\$$as_ac_Header
13244 if test "x$as_val" = x""yes; then :
13245 cat >>confdefs.h <<_ACEOF
13246#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13247_ACEOF
2ba49b59 13248
81ecdfbb 13249ac_header_dirent=$ac_hdr; break
2ba49b59 13250fi
2ba49b59 13251
81ecdfbb
RW
13252done
13253# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13254if test $ac_header_dirent = dirent.h; then
13255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
13256$as_echo_n "checking for library containing opendir... " >&6; }
13257if test "${ac_cv_search_opendir+set}" = set; then :
13258 $as_echo_n "(cached) " >&6
13259else
13260 ac_func_search_save_LIBS=$LIBS
13261cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2ba49b59 13262/* end confdefs.h. */
81ecdfbb
RW
13263
13264/* Override any GCC internal prototype to avoid an error.
13265 Use char because int might match the return type of a GCC
13266 builtin and then its argument prototype would still apply. */
13267#ifdef __cplusplus
13268extern "C"
13269#endif
13270char opendir ();
13271int
13272main ()
13273{
13274return opendir ();
13275 ;
13276 return 0;
13277}
2ba49b59 13278_ACEOF
81ecdfbb
RW
13279for ac_lib in '' dir; do
13280 if test -z "$ac_lib"; then
13281 ac_res="none required"
2ba49b59 13282 else
81ecdfbb
RW
13283 ac_res=-l$ac_lib
13284 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2ba49b59 13285 fi
81ecdfbb
RW
13286 if ac_fn_c_try_link "$LINENO"; then :
13287 ac_cv_search_opendir=$ac_res
2ba49b59 13288fi
81ecdfbb
RW
13289rm -f core conftest.err conftest.$ac_objext \
13290 conftest$ac_exeext
13291 if test "${ac_cv_search_opendir+set}" = set; then :
13292 break
2ba49b59 13293fi
81ecdfbb
RW
13294done
13295if test "${ac_cv_search_opendir+set}" = set; then :
2ba49b59 13296
2ba49b59 13297else
81ecdfbb 13298 ac_cv_search_opendir=no
2ba49b59 13299fi
81ecdfbb
RW
13300rm conftest.$ac_ext
13301LIBS=$ac_func_search_save_LIBS
2ba49b59 13302fi
81ecdfbb
RW
13303{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
13304$as_echo "$ac_cv_search_opendir" >&6; }
13305ac_res=$ac_cv_search_opendir
13306if test "$ac_res" != no; then :
13307 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
2ba49b59
KC
13308
13309fi
13310
81ecdfbb
RW
13311else
13312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
13313$as_echo_n "checking for library containing opendir... " >&6; }
13314if test "${ac_cv_search_opendir+set}" = set; then :
13315 $as_echo_n "(cached) " >&6
13316else
13317 ac_func_search_save_LIBS=$LIBS
13318cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13319/* end confdefs.h. */
2ba49b59 13320
81ecdfbb
RW
13321/* Override any GCC internal prototype to avoid an error.
13322 Use char because int might match the return type of a GCC
13323 builtin and then its argument prototype would still apply. */
13324#ifdef __cplusplus
13325extern "C"
13326#endif
13327char opendir ();
13328int
13329main ()
13330{
13331return opendir ();
13332 ;
13333 return 0;
13334}
13335_ACEOF
13336for ac_lib in '' x; do
13337 if test -z "$ac_lib"; then
13338 ac_res="none required"
13339 else
13340 ac_res=-l$ac_lib
13341 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13342 fi
13343 if ac_fn_c_try_link "$LINENO"; then :
13344 ac_cv_search_opendir=$ac_res
13345fi
13346rm -f core conftest.err conftest.$ac_objext \
13347 conftest$ac_exeext
13348 if test "${ac_cv_search_opendir+set}" = set; then :
13349 break
13350fi
13351done
13352if test "${ac_cv_search_opendir+set}" = set; then :
2ba49b59 13353
81ecdfbb
RW
13354else
13355 ac_cv_search_opendir=no
13356fi
13357rm conftest.$ac_ext
13358LIBS=$ac_func_search_save_LIBS
13359fi
13360{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
13361$as_echo "$ac_cv_search_opendir" >&6; }
13362ac_res=$ac_cv_search_opendir
13363if test "$ac_res" != no; then :
13364 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
2ba49b59 13365
81ecdfbb 13366fi
efde2f2c 13367
2ba49b59 13368fi
81ecdfbb
RW
13369
13370{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
13371$as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
13372if test "${gcc_cv_header_string+set}" = set; then :
13373 $as_echo_n "(cached) " >&6
2ba49b59 13374else
81ecdfbb 13375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2ba49b59 13376/* end confdefs.h. */
81ecdfbb
RW
13377#include <string.h>
13378#include <strings.h>
13379int
13380main ()
13381{
13382
13383 ;
13384 return 0;
13385}
2ba49b59 13386_ACEOF
81ecdfbb
RW
13387if ac_fn_c_try_compile "$LINENO"; then :
13388 gcc_cv_header_string=yes
2ba49b59 13389else
81ecdfbb
RW
13390 gcc_cv_header_string=no
13391fi
13392rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13393fi
13394{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
13395$as_echo "$gcc_cv_header_string" >&6; }
13396if test $gcc_cv_header_string = yes; then
13397
13398$as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
2ba49b59 13399
2ba49b59 13400fi
2ba49b59 13401
81ecdfbb
RW
13402for ac_func in fcntl getpagesize setitimer sysconf fdopen getuid getgid fileno
13403do :
13404 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13405ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13406eval as_val=\$$as_ac_var
13407 if test "x$as_val" = x""yes; then :
13408 cat >>confdefs.h <<_ACEOF
13409#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
2ba49b59 13410_ACEOF
81ecdfbb
RW
13411
13412fi
13413done
13414
13415for ac_func in strtoull
13416do :
13417 ac_fn_c_check_func "$LINENO" "strtoull" "ac_cv_func_strtoull"
13418if test "x$ac_cv_func_strtoull" = x""yes; then :
13419 cat >>confdefs.h <<_ACEOF
13420#define HAVE_STRTOULL 1
2ba49b59 13421_ACEOF
81ecdfbb
RW
13422
13423fi
13424done
13425
13426
13427ac_fn_c_check_decl "$LINENO" "basename" "ac_cv_have_decl_basename" "$ac_includes_default"
13428if test "x$ac_cv_have_decl_basename" = x""yes; then :
13429 ac_have_decl=1
2ba49b59 13430else
81ecdfbb 13431 ac_have_decl=0
2ba49b59 13432fi
81ecdfbb
RW
13433
13434cat >>confdefs.h <<_ACEOF
13435#define HAVE_DECL_BASENAME $ac_have_decl
13436_ACEOF
13437
13438ac_fn_c_check_decl "$LINENO" "ftello" "ac_cv_have_decl_ftello" "$ac_includes_default"
13439if test "x$ac_cv_have_decl_ftello" = x""yes; then :
13440 ac_have_decl=1
2ba49b59 13441else
81ecdfbb
RW
13442 ac_have_decl=0
13443fi
2ba49b59 13444
81ecdfbb
RW
13445cat >>confdefs.h <<_ACEOF
13446#define HAVE_DECL_FTELLO $ac_have_decl
13447_ACEOF
13448
13449ac_fn_c_check_decl "$LINENO" "ftello64" "ac_cv_have_decl_ftello64" "$ac_includes_default"
13450if test "x$ac_cv_have_decl_ftello64" = x""yes; then :
13451 ac_have_decl=1
13452else
13453 ac_have_decl=0
2ba49b59 13454fi
2ba49b59 13455
81ecdfbb
RW
13456cat >>confdefs.h <<_ACEOF
13457#define HAVE_DECL_FTELLO64 $ac_have_decl
13458_ACEOF
13459
13460ac_fn_c_check_decl "$LINENO" "fseeko" "ac_cv_have_decl_fseeko" "$ac_includes_default"
13461if test "x$ac_cv_have_decl_fseeko" = x""yes; then :
13462 ac_have_decl=1
2ba49b59 13463else
81ecdfbb 13464 ac_have_decl=0
2ba49b59 13465fi
2ba49b59 13466
81ecdfbb
RW
13467cat >>confdefs.h <<_ACEOF
13468#define HAVE_DECL_FSEEKO $ac_have_decl
13469_ACEOF
13470
13471ac_fn_c_check_decl "$LINENO" "fseeko64" "ac_cv_have_decl_fseeko64" "$ac_includes_default"
13472if test "x$ac_cv_have_decl_fseeko64" = x""yes; then :
13473 ac_have_decl=1
13474else
13475 ac_have_decl=0
2ba49b59 13476fi
81ecdfbb
RW
13477
13478cat >>confdefs.h <<_ACEOF
13479#define HAVE_DECL_FSEEKO64 $ac_have_decl
2ba49b59
KC
13480_ACEOF
13481
81ecdfbb
RW
13482
13483
13484case "${host}" in
13485*-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
13486
13487$as_echo "#define USE_BINARY_FOPEN 1" >>confdefs.h
13488 ;;
13489esac
13490
13491ac_fn_c_check_decl "$LINENO" "ffs" "ac_cv_have_decl_ffs" "$ac_includes_default"
13492if test "x$ac_cv_have_decl_ffs" = x""yes; then :
13493 ac_have_decl=1
13494else
13495 ac_have_decl=0
2ba49b59
KC
13496fi
13497
81ecdfbb
RW
13498cat >>confdefs.h <<_ACEOF
13499#define HAVE_DECL_FFS $ac_have_decl
13500_ACEOF
2ba49b59 13501
81ecdfbb
RW
13502ac_fn_c_check_decl "$LINENO" "free" "ac_cv_have_decl_free" "$ac_includes_default"
13503if test "x$ac_cv_have_decl_free" = x""yes; then :
13504 ac_have_decl=1
13505else
13506 ac_have_decl=0
13507fi
d5efd9fc 13508
81ecdfbb
RW
13509cat >>confdefs.h <<_ACEOF
13510#define HAVE_DECL_FREE $ac_have_decl
13511_ACEOF
d5efd9fc 13512
81ecdfbb
RW
13513ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
13514if test "x$ac_cv_have_decl_getenv" = x""yes; then :
13515 ac_have_decl=1
13516else
13517 ac_have_decl=0
13518fi
d5efd9fc 13519
81ecdfbb
RW
13520cat >>confdefs.h <<_ACEOF
13521#define HAVE_DECL_GETENV $ac_have_decl
d5efd9fc 13522_ACEOF
d5efd9fc 13523
81ecdfbb
RW
13524ac_fn_c_check_decl "$LINENO" "malloc" "ac_cv_have_decl_malloc" "$ac_includes_default"
13525if test "x$ac_cv_have_decl_malloc" = x""yes; then :
13526 ac_have_decl=1
13527else
13528 ac_have_decl=0
13529fi
13530
13531cat >>confdefs.h <<_ACEOF
13532#define HAVE_DECL_MALLOC $ac_have_decl
d5efd9fc 13533_ACEOF
81ecdfbb
RW
13534
13535ac_fn_c_check_decl "$LINENO" "realloc" "ac_cv_have_decl_realloc" "$ac_includes_default"
13536if test "x$ac_cv_have_decl_realloc" = x""yes; then :
13537 ac_have_decl=1
d5efd9fc 13538else
81ecdfbb
RW
13539 ac_have_decl=0
13540fi
13541
13542cat >>confdefs.h <<_ACEOF
13543#define HAVE_DECL_REALLOC $ac_have_decl
13544_ACEOF
d5efd9fc 13545
81ecdfbb
RW
13546ac_fn_c_check_decl "$LINENO" "stpcpy" "ac_cv_have_decl_stpcpy" "$ac_includes_default"
13547if test "x$ac_cv_have_decl_stpcpy" = x""yes; then :
13548 ac_have_decl=1
13549else
13550 ac_have_decl=0
d5efd9fc 13551fi
81ecdfbb
RW
13552
13553cat >>confdefs.h <<_ACEOF
13554#define HAVE_DECL_STPCPY $ac_have_decl
13555_ACEOF
13556
13557ac_fn_c_check_decl "$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
13558if test "x$ac_cv_have_decl_strstr" = x""yes; then :
13559 ac_have_decl=1
13560else
13561 ac_have_decl=0
d5efd9fc 13562fi
81ecdfbb
RW
13563
13564cat >>confdefs.h <<_ACEOF
13565#define HAVE_DECL_STRSTR $ac_have_decl
13566_ACEOF
13567
13568ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
13569if test "x$ac_cv_have_decl_snprintf" = x""yes; then :
13570 ac_have_decl=1
d5efd9fc 13571else
81ecdfbb 13572 ac_have_decl=0
d5efd9fc
AM
13573fi
13574
81ecdfbb
RW
13575cat >>confdefs.h <<_ACEOF
13576#define HAVE_DECL_SNPRINTF $ac_have_decl
13577_ACEOF
13578
13579ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
13580if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then :
13581 ac_have_decl=1
d5efd9fc 13582else
81ecdfbb
RW
13583 ac_have_decl=0
13584fi
13585
13586cat >>confdefs.h <<_ACEOF
13587#define HAVE_DECL_VSNPRINTF $ac_have_decl
d5efd9fc 13588_ACEOF
81ecdfbb
RW
13589
13590
81ecdfbb
RW
13591# Link in zlib if we can. This allows us to read compressed debug sections.
13592# This is used only by compress.c.
bf993e3c
JB
13593
13594 # See if the user specified whether he wants zlib support or not.
13595
13596# Check whether --with-zlib was given.
13597if test "${with_zlib+set}" = set; then :
13598 withval=$with_zlib;
13599else
13600 with_zlib=auto
13601fi
13602
13603
13604 if test "$with_zlib" != "no"; then
13605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing zlibVersion" >&5
81ecdfbb
RW
13606$as_echo_n "checking for library containing zlibVersion... " >&6; }
13607if test "${ac_cv_search_zlibVersion+set}" = set; then :
13608 $as_echo_n "(cached) " >&6
d5efd9fc 13609else
81ecdfbb
RW
13610 ac_func_search_save_LIBS=$LIBS
13611cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d5efd9fc 13612/* end confdefs.h. */
d5efd9fc 13613
81ecdfbb
RW
13614/* Override any GCC internal prototype to avoid an error.
13615 Use char because int might match the return type of a GCC
13616 builtin and then its argument prototype would still apply. */
13617#ifdef __cplusplus
13618extern "C"
13619#endif
13620char zlibVersion ();
d5efd9fc
AM
13621int
13622main ()
13623{
81ecdfbb 13624return zlibVersion ();
d5efd9fc
AM
13625 ;
13626 return 0;
13627}
13628_ACEOF
81ecdfbb
RW
13629for ac_lib in '' z; do
13630 if test -z "$ac_lib"; then
13631 ac_res="none required"
13632 else
13633 ac_res=-l$ac_lib
13634 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13635 fi
13636 if ac_fn_c_try_link "$LINENO"; then :
13637 ac_cv_search_zlibVersion=$ac_res
d5efd9fc 13638fi
81ecdfbb
RW
13639rm -f core conftest.err conftest.$ac_objext \
13640 conftest$ac_exeext
13641 if test "${ac_cv_search_zlibVersion+set}" = set; then :
13642 break
d5efd9fc 13643fi
81ecdfbb
RW
13644done
13645if test "${ac_cv_search_zlibVersion+set}" = set; then :
13646
d5efd9fc 13647else
81ecdfbb
RW
13648 ac_cv_search_zlibVersion=no
13649fi
13650rm conftest.$ac_ext
13651LIBS=$ac_func_search_save_LIBS
13652fi
13653{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_zlibVersion" >&5
13654$as_echo "$ac_cv_search_zlibVersion" >&6; }
13655ac_res=$ac_cv_search_zlibVersion
13656if test "$ac_res" != no; then :
13657 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13658 for ac_header in zlib.h
13659do :
13660 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
13661if test "x$ac_cv_header_zlib_h" = x""yes; then :
13662 cat >>confdefs.h <<_ACEOF
13663#define HAVE_ZLIB_H 1
13664_ACEOF
13665
d5efd9fc
AM
13666fi
13667
d5efd9fc 13668done
d5efd9fc 13669
d5efd9fc
AM
13670fi
13671
bf993e3c
JB
13672 if test "$with_zlib" = "yes" -a "$ac_cv_header_zlib_h" != "yes"; then
13673 as_fn_error "zlib (libz) library was explicitly requested but not found" "$LINENO" 5
13674 fi
13675 fi
13676
d5efd9fc 13677
81ecdfbb
RW
13678# If we are configured native, pick a core file support file.
13679COREFILE=
13680COREFLAG=
13681TRAD_HEADER=
13682if test "${target}" = "${host}"; then
13683 case "${host}" in
13684 alpha*-*-freebsd* | alpha*-*-kfreebsd*-gnu)
13685 COREFILE=''
13686 ;;
13687 alpha*-*-linux-*)
13688 COREFILE=trad-core.lo
13689 TRAD_HEADER='"hosts/alphalinux.h"'
13690 ;;
13691 alpha*-*-netbsd* | alpha*-*-openbsd*)
13692 COREFILE=netbsd-core.lo
13693 ;;
13694 alpha*-*-*) COREFILE=osf-core.lo ;;
13695 arm-*-freebsd* | arm-*-kfreebsd*-gnu)
13696 COREFILE='' ;;
13697 arm-*-netbsd* | arm-*-openbsd*)
13698 COREFILE=netbsd-core.lo
13699 ;;
13700 arm-*-riscix) COREFILE=trad-core.lo ;;
13701 hppa*-*-hpux*) COREFILE=hpux-core.lo ;;
13702 hppa*-*-hiux*) COREFILE=hpux-core.lo ;;
13703 hppa*-*-mpeix*) COREFILE=hpux-core.lo ;;
13704 hppa*-*-bsd*) COREFILE="hpux-core.lo hppabsd-core.lo"
13705 COREFLAG="-DHPUX_CORE -DHPPABSD_CORE" ;;
13706 hppa*-*-netbsd* | hppa*-*-openbsd*)
13707 COREFILE=netbsd-core.lo
13708 ;;
d5efd9fc 13709
81ecdfbb
RW
13710 i370-*-*)
13711 COREFILE=trad-core.lo
13712 TRAD_HEADER='"hosts/i370linux.h"'
13713 ;;
d5efd9fc 13714
81ecdfbb
RW
13715 i[3-7]86-sequent-bsd*)
13716 COREFILE=trad-core.lo
13717 TRAD_HEADER='"hosts/symmetry.h"'
13718 ;;
13719 i[3-7]86-sequent-sysv4*) ;;
13720 i[3-7]86-sequent-sysv*)
13721 COREFILE=trad-core.lo
13722 TRAD_HEADER='"hosts/symmetry.h"'
13723 ;;
13724 i[3-7]86-*-bsdi)
13725 COREFILE=
13726 ;;
13727 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*)
13728 COREFILE=trad-core.lo
13729 TRAD_HEADER='"hosts/i386bsd.h"'
13730 ;;
13731 i[3-7]86-*-freebsd* | i[3-7]86-*-kfreebsd*-gnu | i[3-7]86-*-dragonfly*)
13732 COREFILE=''
13733 TRAD_HEADER='"hosts/i386bsd.h"'
13734 ;;
13735 i[3-7]86-*-netbsd* | i[3-7]86-*-knetbsd*-gnu | i[3-7]86-*-openbsd*)
13736 COREFILE=netbsd-core.lo
13737 ;;
13738 i[3-7]86-esix-sysv3*)
13739 COREFILE=trad-core.lo
13740 TRAD_HEADER='"hosts/esix.h"'
13741 ;;
13742 i[3-7]86-*-sco3.2v5*)
13743 COREFILE=sco5-core.lo
13744 ;;
13745 i[3-7]86-*-sco* | i[3-7]86-*-isc*)
13746 COREFILE=trad-core.lo
13747 TRAD_HEADER='"hosts/i386sco.h"'
13748 ;;
13749 i[3-7]86-*-mach3*)
13750 COREFILE=trad-core.lo
13751 TRAD_HEADER='"hosts/i386mach3.h"'
13752 ;;
13753 i[3-7]86-*-linux-*)
13754 COREFILE=trad-core.lo
13755 TRAD_HEADER='"hosts/i386linux.h"'
13756 ;;
13757 i[3-7]86-*-isc*) COREFILE=trad-core.lo ;;
13758 i[3-7]86-*-aix*) COREFILE=aix386-core.lo ;;
13759 i860-*-mach3* | i860-*-osf1*)
13760 COREFILE=trad-core.lo
13761 TRAD_HEADER='"hosts/i860mach3.h"'
13762 ;;
13763 mips-*-netbsd* | mips*-*-openbsd*)
13764 COREFILE=netbsd-core.lo
13765 ;;
13766 mips-dec-*)
13767 COREFILE=trad-core.lo
13768 TRAD_HEADER='"hosts/decstation.h"'
13769 ;;
13770 mips-sgi-irix4*) COREFILE=irix-core.lo ;;
13771 mips-sgi-irix5*) COREFILE=irix-core.lo ;;
13772 mips-sgi-irix6*) COREFILE=irix-core.lo ;;
13773 mips-*-sysv4*) ;;
13774 mips-*-sysv* | mips-*-riscos*)
13775 COREFILE=trad-core.lo
13776 TRAD_HEADER='"hosts/riscos.h"'
13777 ;;
13778 mips-sony-bsd*)
13779 COREFILE=trad-core.lo
13780 TRAD_HEADER='"hosts/news-mips.h"'
13781 ;;
13782 m68*-bull*-sysv*)
13783 COREFILE=trad-core.lo
13784 TRAD_HEADER='"hosts/dpx2.h"'
13785 ;;
13786 m68*-hp-hpux*) COREFILE=hpux-core.lo ;;
13787 m68*-hp-bsd*)
13788 COREFILE=trad-core.lo
13789 TRAD_HEADER='"hosts/hp300bsd.h"'
13790 ;;
13791 m68*-*-linux-*)
13792 COREFILE=trad-core.lo
13793 TRAD_HEADER='"hosts/m68klinux.h"'
13794 ;;
13795 m68*-motorola-sysv*)
13796 COREFILE=trad-core.lo
13797 TRAD_HEADER='"hosts/delta68.h"'
13798 ;;
13799 m68*-sony-*)
13800 COREFILE=trad-core.lo
13801 TRAD_HEADER='"hosts/news.h"'
13802 ;;
13803 m68*-*-netbsd* | m68*-*-openbsd*)
13804 COREFILE=netbsd-core.lo
13805 ;;
13806 m68*-apple-aux*)
13807 COREFILE=trad-core.lo
13808 TRAD_HEADER='"hosts/m68kaux.h"'
13809 ;;
13810 m88*-*-sysv4*)
13811 ;;
13812 m88*-motorola-sysv*)
13813 COREFILE=ptrace-core.lo
13814 ;;
13815 m88*-*-mach3*)
13816 COREFILE=trad-core.lo
13817 TRAD_HEADER='"hosts/m88kmach3.h"'
13818 ;;
13819 m88*-*-openbsd*)
13820 COREFILE=netbsd-core.lo
13821 ;;
13822 ns32k-pc532-mach)
13823 COREFILE=trad-core.lo
13824 TRAD_HEADER='"hosts/pc532mach.h"'
13825 ;;
13826 ns32k-*-netbsd* | ns32k-*-openbsd*)
13827 COREFILE=netbsd-core.lo
13828 ;;
13829 rs6000-*-lynx*)
13830 COREFILE=lynx-core.lo
13831 ;;
13832 rs6000-*-aix[5-9].* | powerpc-*-aix[5-9].*)
13833 COREFILE=rs6000-core.lo
13834 COREFLAG="$COREFLAG -DAIX_5_CORE -DAIX_CORE_DUMPX_CORE"
13835 ;;
13836 rs6000-*-aix4.[3-9]* | powerpc-*-aix4.[3-9]*)
13837 COREFILE=rs6000-core.lo
13838 COREFLAG="$COREFLAG -DAIX_CORE_DUMPX_CORE"
13839 # Not all versions of AIX with -DAIX_CORE_DUMPX_CORE
13840 # have c_impl as a member of struct core_dumpx
13841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c_impl in struct core_dumpx" >&5
13842$as_echo_n "checking for c_impl in struct core_dumpx... " >&6; }
13843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d5efd9fc 13844/* end confdefs.h. */
81ecdfbb 13845#include <core.h>
d5efd9fc
AM
13846int
13847main ()
13848{
81ecdfbb 13849struct core_dumpx c; c.c_impl = 0;
d5efd9fc
AM
13850 ;
13851 return 0;
13852}
13853_ACEOF
81ecdfbb 13854if ac_fn_c_try_compile "$LINENO"; then :
d5efd9fc 13855
81ecdfbb 13856$as_echo "#define HAVE_ST_C_IMPL 1" >>confdefs.h
d5efd9fc 13857
81ecdfbb
RW
13858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13859$as_echo "yes" >&6; }
d5efd9fc 13860else
81ecdfbb
RW
13861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13862$as_echo "no" >&6; }
d5efd9fc 13863fi
81ecdfbb
RW
13864rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13865 ;;
13866 rs6000-*-aix4*) COREFILE=rs6000-core.lo ;;
13867 rs6000-*-*) COREFILE=rs6000-core.lo ;;
13868 powerpc-*-aix4*) COREFILE=rs6000-core.lo ;;
13869 powerpc-*-aix*) COREFILE=rs6000-core.lo ;;
13870 powerpc-*-beos*) ;;
13871 powerpc-*-freebsd* | powerpc-*-kfreebsd*-gnu)
13872 COREFILE='' ;;
13873 powerpc-*-netbsd*) COREFILE=netbsd-core.lo ;;
13874 powerpc-*-*bsd*) COREFILE=netbsd-core.lo ;;
13875 s390*-*-*) COREFILE=trad-core.lo ;;
13876 sh*-*-netbsd* | sh*-*-openbsd*)
13877 COREFILE=netbsd-core.lo
13878 ;;
13879 sparc-*-netbsd* | sparc*-*-openbsd*)
13880 COREFILE=netbsd-core.lo
13881 ;;
13882 tahoe-*-*)
13883 COREFILE=trad-core.lo
13884 TRAD_HEADER='"hosts/tahoe.h"'
13885 ;;
13886 vax-*-netbsd* | vax-*-openbsd*)
13887 COREFILE=netbsd-core.lo
13888 ;;
13889 vax-*-ultrix2*)
13890 COREFILE=trad-core.lo
13891 TRAD_HEADER='"hosts/vaxult2.h"'
13892 ;;
13893 vax-*-ultrix*)
13894 COREFILE=trad-core.lo
13895 TRAD_HEADER='"hosts/vaxult2.h"'
13896 ;;
13897 vax-*-linux-*)
13898 COREFILE=trad-core.lo
13899 TRAD_HEADER='"hosts/vaxlinux.h"'
13900 ;;
13901 vax-*-*)
13902 COREFILE=trad-core.lo
13903 TRAD_HEADER='"hosts/vaxbsd.h"'
13904 ;;
13905 x86_64-*-netbsd* | x86_64-*-openbsd*)
13906 COREFILE=netbsd-core.lo
13907 ;;
13908 esac
13909
13910 case "$COREFILE" in
13911 aix386-core.lo) COREFLAG=-DAIX386_CORE ;;
13912 hppabsd-core.lo) COREFLAG=-DHPPABSD_CORE ;;
13913 hpux-core.lo) COREFLAG=-DHPUX_CORE ;;
13914 irix-core.lo) COREFLAG=-DIRIX_CORE ;;
13915 lynx-core.lo) COREFLAG=-DLYNX_CORE ;;
13916 netbsd-core.lo) COREFLAG=-DNETBSD_CORE ;;
13917 osf-core.lo) COREFLAG=-DOSF_CORE ;;
13918 ptrace-core.lo) COREFLAG=-DPTRACE_CORE ;;
13919 rs6000-core.lo) COREFLAG="$COREFLAG -DAIX_CORE" ;;
13920 sco5-core.lo) COREFLAG="$COREFLAG -DSCO5_CORE" ;;
13921 trad-core.lo) COREFLAG="$COREFLAG -DTRAD_CORE" ;;
13922 esac
13923
13924 # ELF corefile support has several flavors, but all of
13925 # them use something called <sys/procfs.h>
13926 for ac_header in sys/procfs.h
13927do :
13928 ac_fn_c_check_header_mongrel "$LINENO" "sys/procfs.h" "ac_cv_header_sys_procfs_h" "$ac_includes_default"
13929if test "x$ac_cv_header_sys_procfs_h" = x""yes; then :
13930 cat >>confdefs.h <<_ACEOF
13931#define HAVE_SYS_PROCFS_H 1
13932_ACEOF
13933
d5efd9fc
AM
13934fi
13935
81ecdfbb
RW
13936done
13937
13938 if test "$ac_cv_header_sys_procfs_h" = yes; then
13939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prstatus_t in sys/procfs.h" >&5
13940$as_echo_n "checking for prstatus_t in sys/procfs.h... " >&6; }
13941 if test "${bfd_cv_have_sys_procfs_type_prstatus_t+set}" = set; then :
13942 $as_echo_n "(cached) " >&6
d5efd9fc 13943else
81ecdfbb 13944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d5efd9fc 13945/* end confdefs.h. */
d5efd9fc 13946
81ecdfbb
RW
13947#define _SYSCALL32
13948#include <sys/procfs.h>
d5efd9fc
AM
13949int
13950main ()
13951{
81ecdfbb 13952prstatus_t avar
d5efd9fc
AM
13953 ;
13954 return 0;
13955}
13956_ACEOF
81ecdfbb
RW
13957if ac_fn_c_try_compile "$LINENO"; then :
13958 bfd_cv_have_sys_procfs_type_prstatus_t=yes
d5efd9fc 13959else
81ecdfbb 13960 bfd_cv_have_sys_procfs_type_prstatus_t=no
d5efd9fc 13961
d5efd9fc 13962fi
81ecdfbb 13963rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d5efd9fc
AM
13964fi
13965
81ecdfbb 13966 if test $bfd_cv_have_sys_procfs_type_prstatus_t = yes; then
d5efd9fc 13967
81ecdfbb 13968$as_echo "#define HAVE_PRSTATUS_T 1" >>confdefs.h
d5efd9fc 13969
81ecdfbb
RW
13970 fi
13971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prstatus_t" >&5
13972$as_echo "$bfd_cv_have_sys_procfs_type_prstatus_t" >&6; }
d5efd9fc 13973
81ecdfbb
RW
13974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prstatus32_t in sys/procfs.h" >&5
13975$as_echo_n "checking for prstatus32_t in sys/procfs.h... " >&6; }
13976 if test "${bfd_cv_have_sys_procfs_type_prstatus32_t+set}" = set; then :
13977 $as_echo_n "(cached) " >&6
d5efd9fc 13978else
81ecdfbb 13979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d5efd9fc 13980/* end confdefs.h. */
81ecdfbb
RW
13981
13982#define _SYSCALL32
13983#include <sys/procfs.h>
d5efd9fc
AM
13984int
13985main ()
13986{
81ecdfbb 13987prstatus32_t avar
d5efd9fc
AM
13988 ;
13989 return 0;
13990}
13991_ACEOF
81ecdfbb
RW
13992if ac_fn_c_try_compile "$LINENO"; then :
13993 bfd_cv_have_sys_procfs_type_prstatus32_t=yes
d5efd9fc 13994else
81ecdfbb 13995 bfd_cv_have_sys_procfs_type_prstatus32_t=no
d5efd9fc 13996
d5efd9fc 13997fi
81ecdfbb 13998rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d5efd9fc 13999fi
d5efd9fc 14000
81ecdfbb
RW
14001 if test $bfd_cv_have_sys_procfs_type_prstatus32_t = yes; then
14002
14003$as_echo "#define HAVE_PRSTATUS32_T 1" >>confdefs.h
14004
14005 fi
14006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prstatus32_t" >&5
14007$as_echo "$bfd_cv_have_sys_procfs_type_prstatus32_t" >&6; }
14008
14009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prstatus_t.pr_who in sys/procfs.h" >&5
14010$as_echo_n "checking for prstatus_t.pr_who in sys/procfs.h... " >&6; }
14011 if test "${bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who+set}" = set; then :
14012 $as_echo_n "(cached) " >&6
d5efd9fc 14013else
81ecdfbb 14014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d5efd9fc 14015/* end confdefs.h. */
81ecdfbb
RW
14016
14017#define _SYSCALL32
14018#include <sys/procfs.h>
d5efd9fc
AM
14019int
14020main ()
14021{
81ecdfbb 14022prstatus_t avar; void* aref = (void*) &avar.pr_who
d5efd9fc
AM
14023 ;
14024 return 0;
14025}
14026_ACEOF
81ecdfbb
RW
14027if ac_fn_c_try_compile "$LINENO"; then :
14028 bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=yes
14029else
14030 bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=no
14031
14032fi
14033rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14034fi
14035
14036 if test $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who = yes; then
14037
14038$as_echo "#define HAVE_PRSTATUS_T_PR_WHO 1" >>confdefs.h
14039
14040 fi
14041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" >&5
14042$as_echo "$bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" >&6; }
14043
14044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prstatus32_t.pr_who in sys/procfs.h" >&5
14045$as_echo_n "checking for prstatus32_t.pr_who in sys/procfs.h... " >&6; }
14046 if test "${bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who+set}" = set; then :
14047 $as_echo_n "(cached) " >&6
14048else
14049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d5efd9fc 14050/* end confdefs.h. */
81ecdfbb
RW
14051
14052#define _SYSCALL32
14053#include <sys/procfs.h>
d5efd9fc
AM
14054int
14055main ()
14056{
81ecdfbb 14057prstatus32_t avar; void* aref = (void*) &avar.pr_who
d5efd9fc
AM
14058 ;
14059 return 0;
14060}
14061_ACEOF
81ecdfbb
RW
14062if ac_fn_c_try_compile "$LINENO"; then :
14063 bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=yes
d5efd9fc 14064else
81ecdfbb 14065 bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=no
d5efd9fc 14066
d5efd9fc 14067fi
81ecdfbb
RW
14068rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14069fi
d5efd9fc 14070
81ecdfbb
RW
14071 if test $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who = yes; then
14072
14073$as_echo "#define HAVE_PRSTATUS32_T_PR_WHO 1" >>confdefs.h
14074
14075 fi
14076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" >&5
14077$as_echo "$bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" >&6; }
14078
14079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pstatus_t in sys/procfs.h" >&5
14080$as_echo_n "checking for pstatus_t in sys/procfs.h... " >&6; }
14081 if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then :
14082 $as_echo_n "(cached) " >&6
14083else
14084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d5efd9fc 14085/* end confdefs.h. */
81ecdfbb
RW
14086
14087#define _SYSCALL32
14088#include <sys/procfs.h>
d5efd9fc
AM
14089int
14090main ()
14091{
81ecdfbb 14092pstatus_t avar
d5efd9fc
AM
14093 ;
14094 return 0;
14095}
14096_ACEOF
81ecdfbb
RW
14097if ac_fn_c_try_compile "$LINENO"; then :
14098 bfd_cv_have_sys_procfs_type_pstatus_t=yes
14099else
14100 bfd_cv_have_sys_procfs_type_pstatus_t=no
14101
14102fi
14103rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14104fi
14105
14106 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
14107
14108$as_echo "#define HAVE_PSTATUS_T 1" >>confdefs.h
14109
14110 fi
14111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5
14112$as_echo "$bfd_cv_have_sys_procfs_type_pstatus_t" >&6; }
14113
14114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pxstatus_t in sys/procfs.h" >&5
14115$as_echo_n "checking for pxstatus_t in sys/procfs.h... " >&6; }
14116 if test "${bfd_cv_have_sys_procfs_type_pxstatus_t+set}" = set; then :
14117 $as_echo_n "(cached) " >&6
14118else
14119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d5efd9fc 14120/* end confdefs.h. */
81ecdfbb
RW
14121
14122#define _SYSCALL32
14123#include <sys/procfs.h>
d5efd9fc
AM
14124int
14125main ()
14126{
81ecdfbb 14127pxstatus_t avar
d5efd9fc
AM
14128 ;
14129 return 0;
14130}
14131_ACEOF
81ecdfbb
RW
14132if ac_fn_c_try_compile "$LINENO"; then :
14133 bfd_cv_have_sys_procfs_type_pxstatus_t=yes
d5efd9fc 14134else
81ecdfbb 14135 bfd_cv_have_sys_procfs_type_pxstatus_t=no
d5efd9fc 14136
d5efd9fc 14137fi
81ecdfbb 14138rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d5efd9fc 14139fi
81ecdfbb
RW
14140
14141 if test $bfd_cv_have_sys_procfs_type_pxstatus_t = yes; then
14142
14143$as_echo "#define HAVE_PXSTATUS_T 1" >>confdefs.h
14144
14145 fi
14146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pxstatus_t" >&5
14147$as_echo "$bfd_cv_have_sys_procfs_type_pxstatus_t" >&6; }
14148
14149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pstatus32_t in sys/procfs.h" >&5
14150$as_echo_n "checking for pstatus32_t in sys/procfs.h... " >&6; }
14151 if test "${bfd_cv_have_sys_procfs_type_pstatus32_t+set}" = set; then :
14152 $as_echo_n "(cached) " >&6
14153else
14154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d5efd9fc 14155/* end confdefs.h. */
81ecdfbb
RW
14156
14157#define _SYSCALL32
14158#include <sys/procfs.h>
d5efd9fc
AM
14159int
14160main ()
14161{
81ecdfbb 14162pstatus32_t avar
d5efd9fc
AM
14163 ;
14164 return 0;
14165}
14166_ACEOF
81ecdfbb
RW
14167if ac_fn_c_try_compile "$LINENO"; then :
14168 bfd_cv_have_sys_procfs_type_pstatus32_t=yes
d5efd9fc 14169else
81ecdfbb 14170 bfd_cv_have_sys_procfs_type_pstatus32_t=no
d5efd9fc 14171
d5efd9fc 14172fi
81ecdfbb
RW
14173rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14174fi
14175
14176 if test $bfd_cv_have_sys_procfs_type_pstatus32_t = yes; then
14177
14178$as_echo "#define HAVE_PSTATUS32_T 1" >>confdefs.h
14179
14180 fi
14181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pstatus32_t" >&5
14182$as_echo "$bfd_cv_have_sys_procfs_type_pstatus32_t" >&6; }
14183
14184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prpsinfo_t in sys/procfs.h" >&5
14185$as_echo_n "checking for prpsinfo_t in sys/procfs.h... " >&6; }
14186 if test "${bfd_cv_have_sys_procfs_type_prpsinfo_t+set}" = set; then :
14187 $as_echo_n "(cached) " >&6
14188else
14189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d5efd9fc 14190/* end confdefs.h. */
81ecdfbb
RW
14191
14192#define _SYSCALL32
14193#include <sys/procfs.h>
d5efd9fc
AM
14194int
14195main ()
14196{
81ecdfbb 14197prpsinfo_t avar
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_prpsinfo_t=yes
d5efd9fc 14204else
81ecdfbb 14205 bfd_cv_have_sys_procfs_type_prpsinfo_t=no
d5efd9fc 14206
d5efd9fc 14207fi
81ecdfbb 14208rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d5efd9fc 14209fi
d5efd9fc 14210
81ecdfbb 14211 if test $bfd_cv_have_sys_procfs_type_prpsinfo_t = yes; then
d5efd9fc 14212
81ecdfbb
RW
14213$as_echo "#define HAVE_PRPSINFO_T 1" >>confdefs.h
14214
14215 fi
14216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prpsinfo_t" >&5
14217$as_echo "$bfd_cv_have_sys_procfs_type_prpsinfo_t" >&6; }
14218
14219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prpsinfo32_t in sys/procfs.h" >&5
14220$as_echo_n "checking for prpsinfo32_t in sys/procfs.h... " >&6; }
14221 if test "${bfd_cv_have_sys_procfs_type_prpsinfo32_t+set}" = set; then :
14222 $as_echo_n "(cached) " >&6
d5efd9fc 14223else
81ecdfbb 14224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d5efd9fc 14225/* end confdefs.h. */
81ecdfbb
RW
14226
14227#define _SYSCALL32
14228#include <sys/procfs.h>
d5efd9fc
AM
14229int
14230main ()
14231{
81ecdfbb 14232prpsinfo32_t avar
d5efd9fc
AM
14233 ;
14234 return 0;
14235}
14236_ACEOF
81ecdfbb
RW
14237if ac_fn_c_try_compile "$LINENO"; then :
14238 bfd_cv_have_sys_procfs_type_prpsinfo32_t=yes
d5efd9fc 14239else
81ecdfbb 14240 bfd_cv_have_sys_procfs_type_prpsinfo32_t=no
d5efd9fc 14241
d5efd9fc 14242fi
81ecdfbb 14243rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d5efd9fc 14244fi
d5efd9fc 14245
81ecdfbb
RW
14246 if test $bfd_cv_have_sys_procfs_type_prpsinfo32_t = yes; then
14247
14248$as_echo "#define HAVE_PRPSINFO32_T 1" >>confdefs.h
14249
14250 fi
14251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prpsinfo32_t" >&5
14252$as_echo "$bfd_cv_have_sys_procfs_type_prpsinfo32_t" >&6; }
14253
14254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psinfo_t in sys/procfs.h" >&5
14255$as_echo_n "checking for psinfo_t in sys/procfs.h... " >&6; }
14256 if test "${bfd_cv_have_sys_procfs_type_psinfo_t+set}" = set; then :
14257 $as_echo_n "(cached) " >&6
d5efd9fc 14258else
81ecdfbb 14259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d5efd9fc 14260/* end confdefs.h. */
d5efd9fc 14261
81ecdfbb
RW
14262#define _SYSCALL32
14263#include <sys/procfs.h>
d5efd9fc
AM
14264int
14265main ()
14266{
81ecdfbb 14267psinfo_t avar
d5efd9fc
AM
14268 ;
14269 return 0;
14270}
14271_ACEOF
81ecdfbb
RW
14272if ac_fn_c_try_compile "$LINENO"; then :
14273 bfd_cv_have_sys_procfs_type_psinfo_t=yes
d5efd9fc 14274else
81ecdfbb 14275 bfd_cv_have_sys_procfs_type_psinfo_t=no
d5efd9fc 14276
d5efd9fc 14277fi
81ecdfbb
RW
14278rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14279fi
d5efd9fc 14280
81ecdfbb
RW
14281 if test $bfd_cv_have_sys_procfs_type_psinfo_t = yes; then
14282
14283$as_echo "#define HAVE_PSINFO_T 1" >>confdefs.h
14284
14285 fi
14286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_psinfo_t" >&5
14287$as_echo "$bfd_cv_have_sys_procfs_type_psinfo_t" >&6; }
14288
14289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psinfo32_t in sys/procfs.h" >&5
14290$as_echo_n "checking for psinfo32_t in sys/procfs.h... " >&6; }
14291 if test "${bfd_cv_have_sys_procfs_type_psinfo32_t+set}" = set; then :
14292 $as_echo_n "(cached) " >&6
14293else
14294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d5efd9fc 14295/* end confdefs.h. */
81ecdfbb
RW
14296
14297#define _SYSCALL32
14298#include <sys/procfs.h>
d5efd9fc
AM
14299int
14300main ()
14301{
81ecdfbb 14302psinfo32_t avar
d5efd9fc
AM
14303 ;
14304 return 0;
14305}
14306_ACEOF
81ecdfbb
RW
14307if ac_fn_c_try_compile "$LINENO"; then :
14308 bfd_cv_have_sys_procfs_type_psinfo32_t=yes
14309else
14310 bfd_cv_have_sys_procfs_type_psinfo32_t=no
14311
14312fi
14313rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14314fi
14315
14316 if test $bfd_cv_have_sys_procfs_type_psinfo32_t = yes; then
14317
14318$as_echo "#define HAVE_PSINFO32_T 1" >>confdefs.h
14319
14320 fi
14321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_psinfo32_t" >&5
14322$as_echo "$bfd_cv_have_sys_procfs_type_psinfo32_t" >&6; }
14323
14324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpstatus_t in sys/procfs.h" >&5
14325$as_echo_n "checking for lwpstatus_t in sys/procfs.h... " >&6; }
14326 if test "${bfd_cv_have_sys_procfs_type_lwpstatus_t+set}" = set; then :
14327 $as_echo_n "(cached) " >&6
14328else
14329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d5efd9fc 14330/* end confdefs.h. */
81ecdfbb
RW
14331
14332#define _SYSCALL32
14333#include <sys/procfs.h>
d5efd9fc
AM
14334int
14335main ()
14336{
81ecdfbb 14337lwpstatus_t avar
d5efd9fc
AM
14338 ;
14339 return 0;
14340}
14341_ACEOF
81ecdfbb
RW
14342if ac_fn_c_try_compile "$LINENO"; then :
14343 bfd_cv_have_sys_procfs_type_lwpstatus_t=yes
d5efd9fc 14344else
81ecdfbb 14345 bfd_cv_have_sys_procfs_type_lwpstatus_t=no
d5efd9fc 14346
d5efd9fc 14347fi
81ecdfbb 14348rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d5efd9fc 14349fi
81ecdfbb
RW
14350
14351 if test $bfd_cv_have_sys_procfs_type_lwpstatus_t = yes; then
14352
14353$as_echo "#define HAVE_LWPSTATUS_T 1" >>confdefs.h
14354
14355 fi
14356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_lwpstatus_t" >&5
14357$as_echo "$bfd_cv_have_sys_procfs_type_lwpstatus_t" >&6; }
14358
14359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpxstatus_t in sys/procfs.h" >&5
14360$as_echo_n "checking for lwpxstatus_t in sys/procfs.h... " >&6; }
14361 if test "${bfd_cv_have_sys_procfs_type_lwpxstatus_t+set}" = set; then :
14362 $as_echo_n "(cached) " >&6
14363else
14364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d5efd9fc 14365/* end confdefs.h. */
81ecdfbb
RW
14366
14367#define _SYSCALL32
14368#include <sys/procfs.h>
d5efd9fc
AM
14369int
14370main ()
14371{
81ecdfbb 14372lwpxstatus_t avar
d5efd9fc
AM
14373 ;
14374 return 0;
14375}
14376_ACEOF
81ecdfbb
RW
14377if ac_fn_c_try_compile "$LINENO"; then :
14378 bfd_cv_have_sys_procfs_type_lwpxstatus_t=yes
d5efd9fc 14379else
81ecdfbb 14380 bfd_cv_have_sys_procfs_type_lwpxstatus_t=no
d5efd9fc 14381
d5efd9fc 14382fi
81ecdfbb
RW
14383rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14384fi
14385
14386 if test $bfd_cv_have_sys_procfs_type_lwpxstatus_t = yes; then
14387
14388$as_echo "#define HAVE_LWPXSTATUS_T 1" >>confdefs.h
14389
14390 fi
14391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_lwpxstatus_t" >&5
14392$as_echo "$bfd_cv_have_sys_procfs_type_lwpxstatus_t" >&6; }
14393
14394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpstatus_t.pr_context in sys/procfs.h" >&5
14395$as_echo_n "checking for lwpstatus_t.pr_context in sys/procfs.h... " >&6; }
14396 if test "${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context+set}" = set; then :
14397 $as_echo_n "(cached) " >&6
d5efd9fc 14398else
81ecdfbb 14399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d5efd9fc 14400/* end confdefs.h. */
81ecdfbb
RW
14401
14402#define _SYSCALL32
14403#include <sys/procfs.h>
d5efd9fc
AM
14404int
14405main ()
14406{
81ecdfbb 14407lwpstatus_t avar; void* aref = (void*) &avar.pr_context
d5efd9fc
AM
14408 ;
14409 return 0;
14410}
14411_ACEOF
81ecdfbb
RW
14412if ac_fn_c_try_compile "$LINENO"; then :
14413 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=yes
d5efd9fc 14414else
81ecdfbb 14415 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=no
d5efd9fc 14416
d5efd9fc 14417fi
81ecdfbb 14418rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d5efd9fc 14419fi
d5efd9fc 14420
81ecdfbb 14421 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context = yes; then
d5efd9fc 14422
81ecdfbb
RW
14423$as_echo "#define HAVE_LWPSTATUS_T_PR_CONTEXT 1" >>confdefs.h
14424
14425 fi
14426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" >&5
14427$as_echo "$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" >&6; }
14428
14429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpstatus_t.pr_reg in sys/procfs.h" >&5
14430$as_echo_n "checking for lwpstatus_t.pr_reg in sys/procfs.h... " >&6; }
14431 if test "${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg+set}" = set; then :
14432 $as_echo_n "(cached) " >&6
d5efd9fc 14433else
81ecdfbb 14434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d5efd9fc 14435/* end confdefs.h. */
81ecdfbb
RW
14436
14437#define _SYSCALL32
14438#include <sys/procfs.h>
d5efd9fc
AM
14439int
14440main ()
14441{
81ecdfbb 14442lwpstatus_t avar; void* aref = (void*) &avar.pr_reg
d5efd9fc
AM
14443 ;
14444 return 0;
14445}
14446_ACEOF
81ecdfbb
RW
14447if ac_fn_c_try_compile "$LINENO"; then :
14448 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=yes
d5efd9fc 14449else
81ecdfbb 14450 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=no
d5efd9fc 14451
d5efd9fc 14452fi
81ecdfbb 14453rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d5efd9fc 14454fi
d5efd9fc 14455
81ecdfbb
RW
14456 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg = yes; then
14457
14458$as_echo "#define HAVE_LWPSTATUS_T_PR_REG 1" >>confdefs.h
14459
14460 fi
14461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" >&5
14462$as_echo "$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" >&6; }
14463
14464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for win32_pstatus_t in sys/procfs.h" >&5
14465$as_echo_n "checking for win32_pstatus_t in sys/procfs.h... " >&6; }
14466 if test "${bfd_cv_have_sys_procfs_type_win32_pstatus_t+set}" = set; then :
14467 $as_echo_n "(cached) " >&6
d5efd9fc 14468else
81ecdfbb 14469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d5efd9fc 14470/* end confdefs.h. */
81ecdfbb
RW
14471
14472#define _SYSCALL32
14473#include <sys/procfs.h>
d5efd9fc
AM
14474int
14475main ()
14476{
81ecdfbb 14477win32_pstatus_t avar
d5efd9fc
AM
14478 ;
14479 return 0;
14480}
14481_ACEOF
81ecdfbb
RW
14482if ac_fn_c_try_compile "$LINENO"; then :
14483 bfd_cv_have_sys_procfs_type_win32_pstatus_t=yes
d5efd9fc 14484else
81ecdfbb 14485 bfd_cv_have_sys_procfs_type_win32_pstatus_t=no
d5efd9fc 14486
d5efd9fc 14487fi
81ecdfbb
RW
14488rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14489fi
d5efd9fc 14490
81ecdfbb 14491 if test $bfd_cv_have_sys_procfs_type_win32_pstatus_t = yes; then
d5efd9fc 14492
81ecdfbb 14493$as_echo "#define HAVE_WIN32_PSTATUS_T 1" >>confdefs.h
d5efd9fc 14494
81ecdfbb
RW
14495 fi
14496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_win32_pstatus_t" >&5
14497$as_echo "$bfd_cv_have_sys_procfs_type_win32_pstatus_t" >&6; }
d5efd9fc 14498
81ecdfbb 14499 fi
d5efd9fc 14500fi
d5efd9fc 14501
d5efd9fc 14502
81ecdfbb 14503if test -n "$TRAD_HEADER"; then
d5efd9fc 14504
81ecdfbb
RW
14505cat >>confdefs.h <<_ACEOF
14506#define TRAD_HEADER $TRAD_HEADER
d5efd9fc 14507_ACEOF
d5efd9fc 14508
81ecdfbb 14509fi
d5efd9fc 14510
81ecdfbb
RW
14511# Check if linker supports --as-needed and --no-as-needed options
14512{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
14513$as_echo_n "checking linker --as-needed support... " >&6; }
14514if test "${bfd_cv_ld_as_needed+set}" = set; then :
14515 $as_echo_n "(cached) " >&6
d5efd9fc 14516else
81ecdfbb
RW
14517 bfd_cv_ld_as_needed=no
14518 if $LD --help 2>/dev/null | grep as-needed > /dev/null; then
14519 bfd_cv_ld_as_needed=yes
14520 fi
d5efd9fc 14521
d5efd9fc 14522fi
81ecdfbb
RW
14523{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_ld_as_needed" >&5
14524$as_echo "$bfd_cv_ld_as_needed" >&6; }
d5efd9fc 14525
81ecdfbb
RW
14526LIBM=
14527case $host in
14528*-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
14529 # These system don't have libm, or don't need it
14530 ;;
14531*-ncr-sysv4.3*)
14532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _mwvalidcheckl in -lmw" >&5
14533$as_echo_n "checking for _mwvalidcheckl in -lmw... " >&6; }
14534if test "${ac_cv_lib_mw__mwvalidcheckl+set}" = set; then :
14535 $as_echo_n "(cached) " >&6
d5efd9fc 14536else
81ecdfbb
RW
14537 ac_check_lib_save_LIBS=$LIBS
14538LIBS="-lmw $LIBS"
14539cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d5efd9fc 14540/* end confdefs.h. */
81ecdfbb
RW
14541
14542/* Override any GCC internal prototype to avoid an error.
14543 Use char because int might match the return type of a GCC
14544 builtin and then its argument prototype would still apply. */
14545#ifdef __cplusplus
14546extern "C"
14547#endif
14548char _mwvalidcheckl ();
d5efd9fc
AM
14549int
14550main ()
14551{
81ecdfbb 14552return _mwvalidcheckl ();
d5efd9fc
AM
14553 ;
14554 return 0;
14555}
14556_ACEOF
81ecdfbb
RW
14557if ac_fn_c_try_link "$LINENO"; then :
14558 ac_cv_lib_mw__mwvalidcheckl=yes
d5efd9fc 14559else
81ecdfbb
RW
14560 ac_cv_lib_mw__mwvalidcheckl=no
14561fi
14562rm -f core conftest.err conftest.$ac_objext \
14563 conftest$ac_exeext conftest.$ac_ext
14564LIBS=$ac_check_lib_save_LIBS
d5efd9fc 14565fi
81ecdfbb
RW
14566{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mw__mwvalidcheckl" >&5
14567$as_echo "$ac_cv_lib_mw__mwvalidcheckl" >&6; }
14568if test "x$ac_cv_lib_mw__mwvalidcheckl" = x""yes; then :
14569 LIBM="-lmw"
d5efd9fc 14570fi
d5efd9fc 14571
81ecdfbb
RW
14572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
14573$as_echo_n "checking for cos in -lm... " >&6; }
14574if test "${ac_cv_lib_m_cos+set}" = set; then :
14575 $as_echo_n "(cached) " >&6
d5efd9fc 14576else
81ecdfbb
RW
14577 ac_check_lib_save_LIBS=$LIBS
14578LIBS="-lm $LIBS"
14579cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d5efd9fc 14580/* end confdefs.h. */
d5efd9fc 14581
81ecdfbb
RW
14582/* Override any GCC internal prototype to avoid an error.
14583 Use char because int might match the return type of a GCC
14584 builtin and then its argument prototype would still apply. */
14585#ifdef __cplusplus
14586extern "C"
14587#endif
14588char cos ();
d5efd9fc
AM
14589int
14590main ()
14591{
81ecdfbb 14592return cos ();
d5efd9fc
AM
14593 ;
14594 return 0;
14595}
14596_ACEOF
81ecdfbb
RW
14597if ac_fn_c_try_link "$LINENO"; then :
14598 ac_cv_lib_m_cos=yes
d5efd9fc 14599else
81ecdfbb
RW
14600 ac_cv_lib_m_cos=no
14601fi
14602rm -f core conftest.err conftest.$ac_objext \
14603 conftest$ac_exeext conftest.$ac_ext
14604LIBS=$ac_check_lib_save_LIBS
14605fi
14606{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
14607$as_echo "$ac_cv_lib_m_cos" >&6; }
14608if test "x$ac_cv_lib_m_cos" = x""yes; then :
14609 LIBM="$LIBM -lm"
d5efd9fc 14610fi
d5efd9fc 14611
81ecdfbb
RW
14612 ;;
14613*)
14614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
14615$as_echo_n "checking for cos in -lm... " >&6; }
14616if test "${ac_cv_lib_m_cos+set}" = set; then :
14617 $as_echo_n "(cached) " >&6
14618else
14619 ac_check_lib_save_LIBS=$LIBS
14620LIBS="-lm $LIBS"
14621cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d5efd9fc 14622/* end confdefs.h. */
d5efd9fc 14623
81ecdfbb
RW
14624/* Override any GCC internal prototype to avoid an error.
14625 Use char because int might match the return type of a GCC
14626 builtin and then its argument prototype would still apply. */
14627#ifdef __cplusplus
14628extern "C"
14629#endif
14630char cos ();
d5efd9fc
AM
14631int
14632main ()
14633{
81ecdfbb 14634return cos ();
d5efd9fc
AM
14635 ;
14636 return 0;
14637}
14638_ACEOF
81ecdfbb
RW
14639if ac_fn_c_try_link "$LINENO"; then :
14640 ac_cv_lib_m_cos=yes
d5efd9fc 14641else
81ecdfbb 14642 ac_cv_lib_m_cos=no
d5efd9fc 14643fi
81ecdfbb
RW
14644rm -f core conftest.err conftest.$ac_objext \
14645 conftest$ac_exeext conftest.$ac_ext
14646LIBS=$ac_check_lib_save_LIBS
d5efd9fc 14647fi
81ecdfbb
RW
14648{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
14649$as_echo "$ac_cv_lib_m_cos" >&6; }
14650if test "x$ac_cv_lib_m_cos" = x""yes; then :
14651 LIBM="-lm"
d5efd9fc 14652fi
d5efd9fc 14653
81ecdfbb 14654 ;;
d5efd9fc 14655esac
d5efd9fc 14656
d5efd9fc 14657
d5efd9fc 14658
81ecdfbb
RW
14659# When building a shared libbfd, link against the pic version of libiberty
14660# so that apps that use libbfd won't need libiberty just to satisfy any
14661# libbfd references.
14662# We can't do that if a pic libiberty is unavailable since including non-pic
14663# code would insert text relocations into libbfd.
14664SHARED_LIBADD=
14665SHARED_LDFLAGS=
14666if test "$enable_shared" = "yes"; then
14667 x=`sed -n -e 's/^[ ]*PICFLAG[ ]*=[ ]*//p' < ../libiberty/Makefile | sed -n '$p'`
14668 if test -n "$x"; then
14669 SHARED_LIBADD="-L`pwd`/../libiberty/pic -liberty"
14670 fi
d5efd9fc 14671
81ecdfbb
RW
14672# More hacks to build DLLs on Windows.
14673 case "${host}" in
14674 *-*-cygwin*)
14675 SHARED_LDFLAGS="-no-undefined"
14676 SHARED_LIBADD="-L`pwd`/../libiberty -liberty -L`pwd`/../intl -lintl -lcygwin -lkernel32"
14677 ;;
14678 esac
d5efd9fc 14679
81ecdfbb
RW
14680 if test -n "$SHARED_LIBADD"; then
14681 if test -n "$LIBM"; then
14682 if test x"$bfd_cv_ld_as_needed" = xyes; then
14683 # Link against libm only when needed. Put -lc, -lm inside -Wl
14684 # to stop libtool reordering these options.
14685 SHARED_LIBADD="$SHARED_LIBADD -Wl,-lc,--as-needed,`echo $LIBM | sed 's/ /,/g'`,--no-as-needed"
14686 else
14687 SHARED_LIBADD="$SHARED_LIBADD $LIBM"
14688 fi
14689 fi
14690 fi
d5efd9fc 14691fi
d5efd9fc 14692
d5efd9fc 14693
d5efd9fc 14694
81ecdfbb 14695# target stuff:
d5efd9fc 14696
81ecdfbb
RW
14697# Canonicalize the secondary target names.
14698if test -n "$enable_targets" ; then
14699 for targ in `echo $enable_targets | sed 's/,/ /g'`
14700 do
14701 result=`$ac_config_sub $targ 2>/dev/null`
14702 if test -n "$result" ; then
14703 canon_targets="$canon_targets $result"
14704 else
14705 # Allow targets that config.sub doesn't recognize, like "all".
14706 canon_targets="$canon_targets $targ"
14707 fi
14708 done
d5efd9fc 14709fi
d5efd9fc 14710
81ecdfbb
RW
14711all_targets=false
14712defvec=
14713selvecs=
14714assocvecs=
14715selarchs=
14716TDEFINES=
14717for targ in $target $canon_targets
14718do
14719 if test "x$targ" = "xall"; then
14720 all_targets=true
14721 assocvecs="$assocvecs $targ_defvec $targ_selvecs"
14722 else
14723 . $srcdir/config.bfd
14724 if test "x$targ" = "x$target"; then
14725 defvec=$targ_defvec
14726 fi
14727 selvecs="$selvecs $targ_defvec $targ_selvecs"
14728 selarchs="$selarchs $targ_archs"
14729 TDEFINES="$TDEFINES $targ_cflags"
14730 fi
14731done
d5efd9fc 14732
d5efd9fc 14733
81ecdfbb
RW
14734# This processing still needs to be done if we're to decide properly whether
14735# 64-bit support needs to be compiled in. Currently, it will be included if
14736# the default or any other explicitly requested target requires it; it
14737# will not be included on a 32-bit host if no 64-bit target is requested, and
14738# no "--with-64-bit-bfd" option is given, even if "--enable-targets=all" is
14739# used.
d5efd9fc 14740
81ecdfbb
RW
14741# uniq the default and selected vectors in all the configured targets.
14742f=""
14743for i in $selvecs ; do
14744 case " $f " in
14745 *" $i "*) ;;
14746 *) f="$f $i" ;;
14747 esac
14748done
14749selvecs="$f"
d5efd9fc 14750
d5efd9fc 14751
81ecdfbb
RW
14752# uniq the associated vectors in all the configured targets.
14753f=""
14754for i in $assocvecs ; do
14755 case " $f " in
14756 *" $i "*) ;;
14757 *) f="$f $i" ;;
14758 esac
d5efd9fc 14759done
81ecdfbb 14760assocvecs="$f"
2ba49b59 14761
2ba49b59 14762
81ecdfbb
RW
14763# uniq the architectures in all the configured targets.
14764f=""
14765for i in $selarchs ; do
14766 case " $f " in
14767 *" $i "*) ;;
14768 *) f="$f $i" ;;
14769 esac
2ba49b59 14770done
81ecdfbb 14771selarchs="$f"
2ba49b59 14772
81ecdfbb
RW
14773# Target backend .o files.
14774tb=
2ba49b59 14775
81ecdfbb
RW
14776elf="elf.lo elflink.lo elf-attrs.lo elf-strtab.lo
14777 elf-eh-frame.lo dwarf1.lo"
2ba49b59 14778
81ecdfbb 14779for vec in $selvecs
49c97a80 14780do
81ecdfbb
RW
14781 target_size=32
14782 case "$vec" in
14783 # This list is alphabetized to make it easy to compare
14784 # with the two vector lists in targets.c. For the same reason,
14785 # use one entry per line, even though this leads to long lines.
14786 a_out_adobe_vec) tb="$tb aout-adobe.lo aout32.lo" ;;
14787 aix5coff64_vec) tb="$tb coff64-rs6000.lo xcofflink.lo aix5ppc-core.lo"; target_size=64 ;;
14788 aout0_big_vec) tb="$tb aout0.lo aout32.lo" ;;
14789 aout_arm_big_vec) tb="$tb aout-arm.lo aout32.lo" ;;
14790 aout_arm_little_vec) tb="$tb aout-arm.lo aout32.lo" ;;
14791 apollocoff_vec) tb="$tb coff-apollo.lo" ;;
14792 arm_epoc_pe_big_vec) tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;;
14793 arm_epoc_pe_little_vec) tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;;
14794 arm_epoc_pei_big_vec) tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;;
14795 arm_epoc_pei_little_vec) tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;;
14796 arm_wince_pe_big_vec) tb="$tb pe-arm-wince.lo pe-arm.lo peigen.lo cofflink.lo " ;;
14797 arm_wince_pe_little_vec) tb="$tb pe-arm-wince.lo pe-arm.lo peigen.lo cofflink.lo " ;;
14798 arm_wince_pei_big_vec) tb="$tb pei-arm-wince.lo pei-arm.lo peigen.lo cofflink.lo " ;;
14799 arm_wince_pei_little_vec) tb="$tb pei-arm-wince.lo pei-arm.lo peigen.lo cofflink.lo " ;;
14800 armcoff_big_vec) tb="$tb coff-arm.lo cofflink.lo " ;;
14801 armcoff_little_vec) tb="$tb coff-arm.lo cofflink.lo " ;;
14802 armnetbsd_vec) tb="$tb armnetbsd.lo aout32.lo" ;;
14803 armpe_big_vec) tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;;
14804 armpe_little_vec) tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;;
14805 armpei_big_vec) tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;;
14806 armpei_little_vec) tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;;
14807 b_out_vec_big_host) tb="$tb bout.lo aout32.lo" ;;
14808 b_out_vec_little_host) tb="$tb bout.lo aout32.lo" ;;
14809 bfd_pei_ia64_vec) tb="$tb pei-ia64.lo pepigen.lo cofflink.lo"; target_size=64 ;;
14810 bfd_elf32_am33lin_vec) tb="$tb elf32-am33lin.lo elf32.lo $elf" ;;
14811 bfd_elf32_avr_vec) tb="$tb elf32-avr.lo elf32.lo $elf" ;;
14812 bfd_elf32_bfin_vec) tb="$tb elf32-bfin.lo elf32.lo $elf" ;;
14813 bfd_elf32_bfinfdpic_vec) tb="$tb elf32-bfin.lo elf32.lo $elf" ;;
14814 bfd_elf32_big_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
14815 bfd_elf32_bigarc_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;;
14816 bfd_elf32_bigarm_vec) tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
14817 bfd_elf32_bigarm_symbian_vec)
14818 tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
14819 bfd_elf32_bigarm_vxworks_vec)
14820 tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
14821 bfd_elf32_bigmips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
14822 bfd_elf32_bigmips_vxworks_vec)
14823 tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
14824 bfd_elf32_cr16_vec) tb="$tb elf32-cr16.lo elf32.lo $elf" ;;
14825 bfd_elf32_cr16c_vec) tb="$tb elf32-cr16c.lo elf32.lo $elf" ;;
14826 bfd_elf32_cris_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;;
14827 bfd_elf32_crx_vec) tb="$tb elf32-crx.lo elf32.lo $elf" ;;
14828 bfd_elf32_d10v_vec) tb="$tb elf32-d10v.lo elf32.lo $elf" ;;
14829 bfd_elf32_d30v_vec) tb="$tb elf32-d30v.lo elf32.lo $elf" ;;
14830 bfd_elf32_dlx_big_vec) tb="$tb elf32-dlx.lo elf32.lo $elf" ;;
14831 bfd_elf32_fr30_vec) tb="$tb elf32-fr30.lo elf32.lo $elf" ;;
14832 bfd_elf32_frv_vec) tb="$tb elf32-frv.lo elf32.lo $elf" ;;
14833 bfd_elf32_frvfdpic_vec) tb="$tb elf32-frv.lo elf32.lo $elf" ;;
14834 bfd_elf32_moxie_vec) tb="$tb elf32-moxie.lo elf32.lo $elf" ;;
14835 bfd_elf32_h8300_vec) tb="$tb elf32-h8300.lo elf32.lo $elf" ;;
14836 bfd_elf32_hppa_linux_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
14837 bfd_elf32_hppa_nbsd_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
14838 bfd_elf32_hppa_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
14839 bfd_elf32_i370_vec) tb="$tb elf32-i370.lo elf32.lo $elf" ;;
14840 bfd_elf32_i386_dragonfly_vec)
14841 tb="$tb elf32-i386.lo elf-ifunc.lo elf-vxworks.lo elf32.lo $elf" ;;
14842 bfd_elf32_i386_freebsd_vec) tb="$tb elf32-i386.lo elf-ifunc.lo elf-vxworks.lo elf32.lo $elf" ;;
14843 bfd_elf32_i386_vxworks_vec) tb="$tb elf32-i386.lo elf-ifunc.lo elf-vxworks.lo elf32.lo $elf" ;;
14844 bfd_elf32_i386_vec) tb="$tb elf32-i386.lo elf-ifunc.lo elf-vxworks.lo elf32.lo $elf" ;;
14845 bfd_elf32_i860_little_vec) tb="$tb elf32-i860.lo elf32.lo $elf" ;;
14846 bfd_elf32_i860_vec) tb="$tb elf32-i860.lo elf32.lo $elf" ;;
14847 bfd_elf32_i960_vec) tb="$tb elf32-i960.lo elf32.lo $elf" ;;
14848 bfd_elf32_ia64_big_vec) tb="$tb elf32-ia64.lo elf32.lo $elf" ;;
14849 bfd_elf32_ia64_hpux_big_vec) tb="$tb elf32-ia64.lo elf32.lo $elf";;
14850 bfd_elf32_ip2k_vec) tb="$tb elf32-ip2k.lo elf32.lo $elf" ;;
14851 bfd_elf32_iq2000_vec) tb="$tb elf32-iq2000.lo elf32.lo $elf" ;;
14852 bfd_elf32_lm32_vec) tb="$tb elf32-lm32.lo elf32.lo $elf" ;;
14853 bfd_elf32_lm32fdpic_vec) tb="$tb elf32-lm32.lo elf32.lo $elf" ;;
14854 bfd_elf32_little_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
14855 bfd_elf32_littlearc_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;;
14856 bfd_elf32_littlearm_symbian_vec)
14857 tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
14858 bfd_elf32_littlearm_vxworks_vec)
14859 tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
14860 bfd_elf32_littlearm_vec) tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
14861 bfd_elf32_littlemips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
14862 bfd_elf32_littlemips_vxworks_vec)
14863 tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
14864 bfd_elf32_m32c_vec) tb="$tb elf32-m32c.lo elf32.lo $elf" ;;
14865 bfd_elf32_m32r_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
14866 bfd_elf32_m32rle_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
14867 bfd_elf32_m32rlin_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
14868 bfd_elf32_m32rlelin_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
14869 bfd_elf32_m68hc11_vec) tb="$tb elf32-m68hc11.lo elf32-m68hc1x.lo elf32.lo $elf" ;;
14870 bfd_elf32_m68hc12_vec) tb="$tb elf32-m68hc12.lo elf32-m68hc1x.lo elf32.lo $elf" ;;
14871 bfd_elf32_m68k_vec) tb="$tb elf32-m68k.lo elf32.lo $elf" ;;
14872 bfd_elf32_m88k_vec) tb="$tb elf32-m88k.lo elf32.lo $elf" ;;
14873 bfd_elf32_mcore_big_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
14874 bfd_elf32_mcore_little_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
14875 bfd_elf32_mep_vec) tb="$tb elf32-mep.lo elf32.lo $elf" ;;
14876 bfd_elf32_mep_little_vec) tb="$tb elf32-mep.lo elf32.lo $elf" ;;
14877 bfd_elf32_microblaze_vec) tb="$tb elf32-microblaze.lo elf32.lo $elf" ;;
14878 bfd_elf32_mn10200_vec) tb="$tb elf-m10200.lo elf32.lo $elf" ;;
14879 bfd_elf32_mn10300_vec) tb="$tb elf-m10300.lo elf32.lo $elf" ;;
14880 bfd_elf32_mt_vec) tb="$tb elf32-mt.lo elf32.lo $elf" ;;
14881 bfd_elf32_msp430_vec) tb="$tb elf32-msp430.lo elf32.lo $elf" ;;
14882 bfd_elf32_nbigmips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
14883 bfd_elf32_nlittlemips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
14884 bfd_elf32_ntradbigmips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
14885 bfd_elf32_ntradlittlemips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
14886 bfd_elf32_openrisc_vec) tb="$tb elf32-openrisc.lo elf32.lo $elf" ;;
14887 bfd_elf32_or32_big_vec) tb="$tb elf32-or32.lo elf32.lo $elf" ;;
14888 bfd_elf32_pj_vec) tb="$tb elf32-pj.lo elf32.lo $elf";;
14889 bfd_elf32_pjl_vec) tb="$tb elf32-pj.lo elf32.lo $elf";;
14890 bfd_elf32_powerpc_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
14891 bfd_elf32_powerpcle_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
14892 bfd_elf32_powerpc_vxworks_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
c7927a3c
NC
14893 bfd_elf32_rx_le_vec) tb="$tb elf32-rx.lo elf32.lo $elf" ;;
14894 bfd_elf32_rx_be_vec) tb="$tb elf32-rx.lo elf32.lo $elf" ;;
81ecdfbb
RW
14895 bfd_elf32_s390_vec) tb="$tb elf32-s390.lo elf32.lo $elf" ;;
14896 bfd_elf32_bigscore_vec) tb="$tb elf32-score.lo elf32-score7.lo elf32.lo $elf"; want64=true; target_size=64;;
14897 bfd_elf32_littlescore_vec) tb="$tb elf32-score.lo elf32-score7.lo elf32.lo $elf"; want64=true; target_size=64;;
14898 # FIXME: We include cofflink.lo not because it's needed for
14899 # bfd_elf32_sh64[l]_vec, but because we include bfd_elf32_sh[l]_vec
14900 # which needs it but does not list it. Should be fixed in right place.
14901 bfd_elf32_sh64_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
14902 bfd_elf32_sh64l_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
14903 bfd_elf32_sh64lin_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
14904 bfd_elf32_sh64blin_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
14905 bfd_elf32_sh64lnbsd_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" ;;
14906 bfd_elf32_sh64nbsd_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" ;;
14907 bfd_elf32_sh_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
14908 bfd_elf32_shblin_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
14909 bfd_elf32_shl_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
14910 bfd_elf32_shl_symbian_vec) tb="$tb elf32-sh-symbian.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
14911 bfd_elf32_shlin_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
14912 bfd_elf32_shlnbsd_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
14913 bfd_elf32_shlvxworks_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
14914 bfd_elf32_shnbsd_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
14915 bfd_elf32_shvxworks_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
14916 bfd_elf32_sparc_vec) tb="$tb elf32-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf32.lo $elf" ;;
14917 bfd_elf32_sparc_vxworks_vec) tb="$tb elf32-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf32.lo $elf" ;;
14918 bfd_elf32_spu_vec) tb="$tb elf32-spu.lo elf32.lo $elf" ;;
14919 bfd_elf32_tradbigmips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
14920 bfd_elf32_tradlittlemips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
14921 bfd_elf32_us_cris_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;;
14922 bfd_elf32_v850_vec) tb="$tb elf32-v850.lo elf32.lo $elf" ;;
14923 bfd_elf32_vax_vec) tb="$tb elf32-vax.lo elf32.lo $elf" ;;
14924 bfd_elf32_xstormy16_vec) tb="$tb elf32-xstormy16.lo elf32.lo $elf" ;;
14925 bfd_elf32_xc16x_vec) tb="$tb elf32-xc16x.lo elf32.lo $elf" ;;
14926 bfd_elf32_xtensa_le_vec) tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;;
14927 bfd_elf32_xtensa_be_vec) tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;;
14928 bfd_elf64_alpha_freebsd_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;;
14929 bfd_elf64_alpha_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;;
14930 bfd_elf64_big_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
14931 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 ;;
14932 bfd_elf64_hppa_linux_vec) tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;;
14933 bfd_elf64_hppa_vec) tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;;
14934 bfd_elf64_ia64_big_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
14935 bfd_elf64_ia64_hpux_big_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
14936 bfd_elf64_ia64_little_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
b11d79f2 14937 bfd_elf64_ia64_vms_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
81ecdfbb
RW
14938 bfd_elf64_little_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
14939 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 ;;
14940 bfd_elf64_mmix_vec) tb="$tb elf64-mmix.lo elf64.lo $elf" target_size=64 ;;
14941 bfd_elf64_powerpc_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
14942 bfd_elf64_powerpcle_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf" target_size=64 ;;
14943 bfd_elf64_s390_vec) tb="$tb elf64-s390.lo elf64.lo $elf"; target_size=64 ;;
14944 bfd_elf64_sh64_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
14945 bfd_elf64_sh64l_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
14946 bfd_elf64_sh64lin_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
14947 bfd_elf64_sh64blin_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
14948 bfd_elf64_sh64lnbsd_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
14949 bfd_elf64_sh64nbsd_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
14950 bfd_elf64_sparc_vec) tb="$tb elf64-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf64.lo $elf"; target_size=64 ;;
14951 bfd_elf64_sparc_freebsd_vec) tb="$tb elf64-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf64.lo $elf"; target_size=64 ;;
14952 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 ;;
14953 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 ;;
14954 bfd_elf64_x86_64_freebsd_vec) tb="$tb elf64-x86-64.lo elf-ifunc.lo elf64.lo $elf"; target_size=64 ;;
14955 bfd_elf64_x86_64_vec) tb="$tb elf64-x86-64.lo elf-ifunc.lo elf64.lo $elf"; target_size=64 ;;
14956 bfd_elf64_l1om_vec) tb="$tb elf64-x86-64.lo elf-ifunc.lo elf64.lo $elf"; target_size=64 ;;
14957 bfd_elf64_l1om_freebsd_vec) tb="$tb elf64-x86-64.lo elf-ifunc.lo elf64.lo $elf"; target_size=64 ;;
14958 bfd_mmo_vec) tb="$tb mmo.lo" target_size=64 ;;
14959 bfd_powerpc_pe_vec) tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;;
14960 bfd_powerpc_pei_vec) tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;;
14961 bfd_powerpcle_pe_vec) tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;;
14962 bfd_powerpcle_pei_vec) tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;;
14963 cris_aout_vec) tb="$tb aout-cris.lo" ;;
14964 demo_64_vec) tb="$tb demo64.lo aout64.lo"; target_size=64 ;;
14965 ecoff_big_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
14966 ecoff_biglittle_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
14967 ecoff_little_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
14968 ecoffalpha_little_vec) tb="$tb coff-alpha.lo ecoff.lo ecofflink.lo"; target_size=64 ;;
14969 go32coff_vec) tb="$tb coff-go32.lo cofflink.lo" ;;
14970 go32stubbedcoff_vec) tb="$tb coff-stgo32.lo cofflink.lo" ;;
14971 h8300coff_vec) tb="$tb coff-h8300.lo reloc16.lo" ;;
14972 h8500coff_vec) tb="$tb coff-h8500.lo reloc16.lo" ;;
14973 host_aout_vec) tb="$tb host-aout.lo aout32.lo" ;;
14974 hp300bsd_vec) tb="$tb hp300bsd.lo aout32.lo" ;;
14975 hp300hpux_vec) tb="$tb hp300hpux.lo aout32.lo" ;;
14976 i386aout_vec) tb="$tb i386aout.lo aout32.lo" ;;
14977 i386bsd_vec) tb="$tb i386bsd.lo aout32.lo" ;;
14978 i386coff_vec) tb="$tb coff-i386.lo cofflink.lo" ;;
14979 x86_64coff_vec) tb="$tb coff-x86_64.lo cofflink.lo"; target_size=64 ;;
14980 i386dynix_vec) tb="$tb i386dynix.lo aout32.lo" ;;
14981 i386freebsd_vec) tb="$tb i386freebsd.lo aout32.lo" ;;
14982 i386linux_vec) tb="$tb i386linux.lo aout32.lo" ;;
14983 i386lynx_aout_vec) tb="$tb i386lynx.lo lynx-core.lo aout32.lo" ;;
14984 i386lynx_coff_vec) tb="$tb cf-i386lynx.lo cofflink.lo lynx-core.lo" ;;
14985 i386mach3_vec) tb="$tb i386mach3.lo aout32.lo" ;;
14986 i386msdos_vec) tb="$tb i386msdos.lo" ;;
14987 i386netbsd_vec) tb="$tb i386netbsd.lo aout32.lo" ;;
14988 i386os9k_vec) tb="$tb i386os9k.lo aout32.lo" ;;
14989 i386pe_vec) tb="$tb pe-i386.lo peigen.lo cofflink.lo" ;;
14990 i386pei_vec) tb="$tb pei-i386.lo peigen.lo cofflink.lo" ;;
14991 x86_64pe_vec) tb="$tb pe-x86_64.lo pex64igen.lo cofflink.lo"; target_size=64 ;;
14992 x86_64pei_vec) tb="$tb pei-x86_64.lo pex64igen.lo cofflink.lo"; target_size=64 ;;
14993 i860coff_vec) tb="$tb coff-i860.lo cofflink.lo" ;;
14994 icoff_big_vec) tb="$tb coff-i960.lo cofflink.lo" ;;
14995 icoff_little_vec) tb="$tb coff-i960.lo cofflink.lo" ;;
14996 ieee_vec) tb="$tb ieee.lo" ;;
14997 m68k4knetbsd_vec) tb="$tb m68k4knetbsd.lo aout32.lo" ;;
14998 m68kaux_coff_vec) tb="$tb coff-aux.lo coff-m68k.lo cofflink.lo" ;;
14999 m68kcoff_vec) tb="$tb coff-m68k.lo cofflink.lo" ;;
15000 m68kcoffun_vec) tb="$tb coff-u68k.lo coff-m68k.lo cofflink.lo" ;;
15001 m68klinux_vec) tb="$tb m68klinux.lo aout32.lo" ;;
15002 m68knetbsd_vec) tb="$tb m68knetbsd.lo aout32.lo" ;;
15003 m68ksysvcoff_vec) tb="$tb coff-svm68k.lo cofflink.lo" ;;
15004 m88kbcs_vec) tb="$tb coff-m88k.lo" ;;
15005 m88kmach3_vec) tb="$tb m88kmach3.lo aout32.lo" ;;
15006 m88kopenbsd_vec) tb="$tb m88kopenbsd.lo aout32.lo" ;;
15007 maxqcoff_vec) tb="$tb coff-maxq.lo" ;;
15008 mach_o_be_vec) tb="$tb mach-o.lo" ;;
15009 mach_o_le_vec) tb="$tb mach-o.lo" ;;
15010 mach_o_fat_vec) tb="$tb mach-o.lo" ;;
15011 mach_o_i386_vec) tb="$tb mach-o-i386.lo" ;;
15012 mcore_pe_big_vec) tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
15013 mcore_pe_little_vec) tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
15014 mcore_pei_big_vec) tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;;
15015 mcore_pei_little_vec) tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;;
15016 mipslpe_vec) tb="$tb pe-mips.lo peigen.lo cofflink.lo" ;;
15017 mipslpei_vec) tb="$tb pei-mips.lo peigen.lo cofflink.lo" ;;
15018 newsos3_vec) tb="$tb newsos3.lo aout32.lo" ;;
15019 nlm32_alpha_vec) tb="$tb nlm32-alpha.lo nlm32.lo nlm.lo"; target_size=64 ;;
15020 nlm32_i386_vec) tb="$tb nlm32-i386.lo nlm32.lo nlm.lo" ;;
15021 nlm32_powerpc_vec) tb="$tb nlm32-ppc.lo nlm32.lo nlm.lo" ;;
15022 nlm32_sparc_vec) tb="$tb nlm32-sparc.lo nlm32.lo nlm.lo" ;;
15023 or32coff_big_vec) tb="$tb coff-or32.lo cofflink.lo" ;;
15024 pc532machaout_vec) tb="$tb pc532-mach.lo aout-ns32k.lo" ;;
15025 pc532netbsd_vec) tb="$tb ns32knetbsd.lo aout-ns32k.lo" ;;
15026 pef_vec) tb="$tb pef.lo" ;;
15027 pef_xlib_vec) tb="$tb pef.lo" ;;
15028 pdp11_aout_vec) tb="$tb pdp11.lo" ;;
15029 plugin_vec) tb="$tb plugin.lo" ;;
15030 pmac_xcoff_vec) tb="$tb coff-rs6000.lo xcofflink.lo" ;;
15031 ppcboot_vec) tb="$tb ppcboot.lo" ;;
15032 riscix_vec) tb="$tb aout32.lo riscix.lo" ;;
15033 rs6000coff64_vec) tb="$tb coff64-rs6000.lo xcofflink.lo aix5ppc-core.lo"; target_size=64 ;;
15034 rs6000coff_vec) tb="$tb coff-rs6000.lo xcofflink.lo" ;;
15035 shcoff_small_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
15036 shcoff_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
15037 shlcoff_small_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
15038 shlcoff_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
15039 shlpe_vec) tb="$tb pe-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;;
15040 shlpei_vec) tb="$tb pei-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;;
15041 som_vec) tb="$tb som.lo" ;;
15042 sparccoff_vec) tb="$tb coff-sparc.lo" ;;
15043 sparcle_aout_vec) tb="$tb aout-sparcle.lo aout32.lo" ;;
15044 sparclinux_vec) tb="$tb sparclinux.lo aout32.lo" ;;
15045 sparclynx_aout_vec) tb="$tb sparclynx.lo lynx-core.lo aout32.lo" ;;
15046 sparclynx_coff_vec) tb="$tb cf-sparclynx.lo lynx-core.lo" ;;
15047 sparcnetbsd_vec) tb="$tb sparcnetbsd.lo aout32.lo" ;;
15048 sunos_big_vec) tb="$tb sunos.lo aout32.lo" ;;
15049 sym_vec) tb="$tb xsym.lo" ;;
15050 tic30_aout_vec) tb="$tb aout-tic30.lo" ;;
15051 tic30_coff_vec) tb="$tb coff-tic30.lo" ;;
15052 tic4x_coff0_vec) tb="$tb coff-tic4x.lo" ;;
15053 tic4x_coff0_beh_vec) tb="$tb coff-tic4x.lo" ;;
15054 tic4x_coff1_vec) tb="$tb coff-tic4x.lo" ;;
15055 tic4x_coff1_beh_vec) tb="$tb coff-tic4x.lo" ;;
15056 tic4x_coff2_vec) tb="$tb coff-tic4x.lo" ;;
15057 tic4x_coff2_beh_vec) tb="$tb coff-tic4x.lo" ;;
15058 tic54x_coff0_beh_vec) tb="$tb coff-tic54x.lo" ;;
15059 tic54x_coff0_vec) tb="$tb coff-tic54x.lo" ;;
15060 tic54x_coff1_beh_vec) tb="$tb coff-tic54x.lo" ;;
15061 tic54x_coff1_vec) tb="$tb coff-tic54x.lo" ;;
15062 tic54x_coff2_beh_vec) tb="$tb coff-tic54x.lo" ;;
15063 tic54x_coff2_vec) tb="$tb coff-tic54x.lo" ;;
15064 tic80coff_vec) tb="$tb coff-tic80.lo cofflink.lo" ;;
15065 vaxnetbsd_vec) tb="$tb vaxnetbsd.lo aout32.lo" ;;
15066 vax1knetbsd_vec) tb="$tb vax1knetbsd.lo aout32.lo" ;;
15067 vaxbsd_vec) tb="$tb vaxbsd.lo aout32.lo" ;;
15068 versados_vec) tb="$tb versados.lo" ;;
15069 vms_alpha_vec) tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo"; target_size=64 ;;
15070 vms_vax_vec) tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo" ;;
15071 w65_vec) tb="$tb coff-w65.lo reloc16.lo" ;;
15072 we32kcoff_vec) tb="$tb coff-we32k.lo" ;;
15073 z80coff_vec) tb="$tb coff-z80.lo reloc16.lo" ;;
15074 z8kcoff_vec) tb="$tb coff-z8k.lo reloc16.lo cofflink.lo" ;;
2ba49b59 15075
81ecdfbb
RW
15076 # These appear out of order in targets.c
15077 srec_vec) tb="$tb srec.lo" ;;
15078 symbolsrec_vec) tb="$tb srec.lo" ;;
15079 tekhex_vec) tb="$tb tekhex.lo" ;;
15080 cisco_core_big_vec) tb="$tb cisco-core.lo" ;;
15081 cisco_core_little_vec) tb="$tb cisco-core.lo" ;;
5464f5a1 15082
81ecdfbb
RW
15083 "") ;;
15084 *) as_fn_error "*** unknown target vector $vec" "$LINENO" 5 ;;
15085 esac
1012372a 15086
81ecdfbb
RW
15087 if test ${target_size} = 64; then
15088 target64=true
15089 fi
15090 if test x"${vec}" = x"${defvec}"; then
15091 bfd_default_target_size=${target_size}
15092 fi
15093done
2ba49b59 15094
81ecdfbb
RW
15095# Target architecture .o files.
15096# A couple of CPUs use shorter file names to avoid problems on DOS
15097# filesystems.
15098ta=`echo $selarchs | sed -e s/bfd_/cpu-/g -e s/_arch/.lo/g -e s/mn10200/m10200/ -e s/mn10300/m10300/`
5464f5a1 15099
81ecdfbb
RW
15100# Weed out duplicate .o files.
15101f=""
15102for i in $tb ; do
15103 case " $f " in
15104 *" $i "*) ;;
15105 *) f="$f $i" ;;
15106 esac
1012372a 15107done
81ecdfbb 15108tb="$f"
1012372a 15109
81ecdfbb
RW
15110f=""
15111for i in $ta ; do
15112 case " $f " in
15113 *" $i "*) ;;
15114 *) f="$f $i" ;;
15115 esac
15116done
15117ta="$f"
2ba49b59 15118
81ecdfbb
RW
15119bfd_backends="$tb"
15120bfd_machines="$ta"
1012372a 15121
81ecdfbb
RW
15122if test x${all_targets} = xtrue ; then
15123 bfd_backends="${bfd_backends}"' $(ALL_BACKENDS)'
15124 bfd_machines="${bfd_machines}"' $(ALL_MACHINES)'
15125 selvecs=
15126 havevecs=
15127 selarchs=
15128 test -n "$assocvecs" &&
15129 assocvecs=`echo $assocvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
15130else # all_targets is true
15131 # Only set these if they will be nonempty, for the clever echo.
15132 havevecs=
15133 assocvecs=
15134 test -n "$selvecs" &&
15135 havevecs=`echo $selvecs | sed -e 's/^/-DHAVE_/' -e 's/ \(.\)/ -DHAVE_\1/g'`
15136 test -n "$selvecs" &&
15137 selvecs=`echo $selvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
15138 test -n "$selarchs" &&
15139 selarchs=`echo $selarchs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
15140fi # all_targets is true
15141
15142case ${host64}-${target64}-${want64} in
15143 *true*)
15144 wordsize=64
15145 bfd64_libs='$(BFD64_LIBS)'
15146 all_backends='$(BFD64_BACKENDS) $(BFD32_BACKENDS)'
15147 if test $BFD_HOST_64_BIT_DEFINED = 0; then
15148 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You have requested a 64 bit BFD configuration, but" >&5
15149$as_echo "$as_me: WARNING: You have requested a 64 bit BFD configuration, but" >&2;}
15150 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: your compiler may not have a 64 bit integral type" >&5
15151$as_echo "$as_me: WARNING: your compiler may not have a 64 bit integral type" >&2;}
15152 fi
15153 if test -n "$GCC" ; then
15154 bad_64bit_gcc=no;
15155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc version with buggy 64-bit support" >&5
15156$as_echo_n "checking for gcc version with buggy 64-bit support... " >&6; }
15157 # Add more tests for gcc versions with non-working 64-bit support here.
15158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15159/* end confdefs.h. */
15160:__GNUC__:__GNUC_MINOR__:__i386__:
15161_ACEOF
15162if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15163 $EGREP ": 2 : 91 : 1 :" >/dev/null 2>&1; then :
15164 bad_64bit_gcc=yes;
15165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes: egcs-1.1.2 on ix86 spotted" >&5
15166$as_echo "yes: egcs-1.1.2 on ix86 spotted" >&6; }
2ba49b59 15167else
81ecdfbb
RW
15168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15169$as_echo "no" >&6; }
2ba49b59 15170fi
81ecdfbb 15171rm -f conftest*
1012372a 15172
81ecdfbb
RW
15173 if test $bad_64bit_gcc = yes ; then
15174 as_fn_error "A newer version of gcc is needed for the requested 64-bit BFD configuration" "$LINENO" 5
15175 fi
15176 fi
15177 ;;
15178 false-false-false)
15179 wordsize=32
15180 all_backends='$(BFD32_BACKENDS)'
15181 ;;
15182esac
1012372a
AC
15183
15184
15185
15186
252b5132 15187
6be7c12c 15188
5464f5a1
NN
15189
15190
81ecdfbb
RW
15191if test "$plugins" = "yes"; then
15192 supports_plugins=1
5464f5a1 15193else
81ecdfbb 15194 supports_plugins=0
5464f5a1 15195fi
5464f5a1 15196
81ecdfbb
RW
15197
15198# Determine the host dependant file_ptr a.k.a. off_t type. In order
15199# prefer: off64_t - if ftello64 and fseeko64, off_t - if ftello and
15200# fseeko, long. This assumes that sizeof off_t is .ge. sizeof long.
15201# Hopefully a reasonable assumption since fseeko et.al. should be
15202# upward compatible.
15203for ac_func in ftello ftello64 fseeko fseeko64 fopen64
15204do :
15205 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15206ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15207eval as_val=\$$as_ac_var
15208 if test "x$as_val" = x""yes; then :
15209 cat >>confdefs.h <<_ACEOF
15210#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5464f5a1 15211_ACEOF
5464f5a1 15212
252b5132 15213fi
81ecdfbb 15214done
5464f5a1 15215
81ecdfbb
RW
15216if test x"$ac_cv_func_ftello" = xyes -a x"$ac_cv_func_fseeko" = xyes; then
15217 # The cast to long int works around a bug in the HP C Compiler
15218# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15219# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15220# This bug is HP SR number 8606223364.
15221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
15222$as_echo_n "checking size of off_t... " >&6; }
15223if test "${ac_cv_sizeof_off_t+set}" = set; then :
15224 $as_echo_n "(cached) " >&6
6be7c12c 15225else
81ecdfbb 15226 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then :
5464f5a1 15227
81ecdfbb
RW
15228else
15229 if test "$ac_cv_type_off_t" = yes; then
15230 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15231$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15232{ as_fn_set_status 77
15233as_fn_error "cannot compute sizeof (off_t)
15234See \`config.log' for more details." "$LINENO" 5; }; }
15235 else
15236 ac_cv_sizeof_off_t=0
15237 fi
5464f5a1 15238fi
5464f5a1 15239
252b5132 15240fi
81ecdfbb
RW
15241{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
15242$as_echo "$ac_cv_sizeof_off_t" >&6; }
5464f5a1 15243
252b5132 15244
5464f5a1 15245
81ecdfbb
RW
15246cat >>confdefs.h <<_ACEOF
15247#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
5464f5a1 15248_ACEOF
5464f5a1 15249
5464f5a1 15250
81ecdfbb
RW
15251fi
15252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking file_ptr type" >&5
15253$as_echo_n "checking file_ptr type... " >&6; }
15254bfd_file_ptr="long"
15255bfd_ufile_ptr="unsigned long"
15256if test x"$ac_cv_func_ftello64" = xyes -a x"$ac_cv_func_fseeko64" = xyes \
15257 -o x"${ac_cv_sizeof_off_t}" = x8; then
15258 bfd_file_ptr=BFD_HOST_64_BIT
15259 bfd_ufile_ptr=BFD_HOST_U_64_BIT
15260fi
15261{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_file_ptr" >&5
15262$as_echo "$bfd_file_ptr" >&6; }
15263
6be7c12c 15264
252b5132 15265
252b5132 15266
81ecdfbb
RW
15267tdefaults=""
15268test -n "${defvec}" && tdefaults="${tdefaults} -DDEFAULT_VECTOR=${defvec}"
15269test -n "${selvecs}" && tdefaults="${tdefaults} -DSELECT_VECS='${selvecs}'"
15270test -n "${assocvecs}" && tdefaults="${tdefaults} -DASSOCIATED_VECS='${assocvecs}'"
15271test -n "${selarchs}" && tdefaults="${tdefaults} -DSELECT_ARCHITECTURES='${selarchs}'"
15272test -n "${havevecs}" && tdefaults="${tdefaults} ${havevecs}"
15273
15274
15275for ac_header in stdlib.h unistd.h
15276do :
15277 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15278ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15279eval as_val=\$$as_ac_Header
15280 if test "x$as_val" = x""yes; then :
15281 cat >>confdefs.h <<_ACEOF
15282#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5464f5a1 15283_ACEOF
5464f5a1 15284
5464f5a1 15285fi
81ecdfbb
RW
15286
15287done
15288
15289for ac_func in getpagesize
15290do :
15291 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
15292if test "x$ac_cv_func_getpagesize" = x""yes; then :
5464f5a1 15293 cat >>confdefs.h <<_ACEOF
81ecdfbb 15294#define HAVE_GETPAGESIZE 1
5464f5a1 15295_ACEOF
252b5132 15296
252b5132
RH
15297fi
15298done
15299
81ecdfbb
RW
15300{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
15301$as_echo_n "checking for working mmap... " >&6; }
15302if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
15303 $as_echo_n "(cached) " >&6
252b5132 15304else
81ecdfbb 15305 if test "$cross_compiling" = yes; then :
252b5132
RH
15306 ac_cv_func_mmap_fixed_mapped=no
15307else
81ecdfbb 15308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5464f5a1
NN
15309/* end confdefs.h. */
15310$ac_includes_default
15311/* malloc might have been renamed as rpl_malloc. */
15312#undef malloc
6be7c12c 15313
252b5132
RH
15314/* Thanks to Mike Haertel and Jim Avera for this test.
15315 Here is a matrix of mmap possibilities:
15316 mmap private not fixed
15317 mmap private fixed at somewhere currently unmapped
15318 mmap private fixed at somewhere already mapped
15319 mmap shared not fixed
15320 mmap shared fixed at somewhere currently unmapped
15321 mmap shared fixed at somewhere already mapped
15322 For private mappings, we should verify that changes cannot be read()
15323 back from the file, nor mmap's back from the file at a different
15324 address. (There have been systems where private was not correctly
15325 implemented like the infamous i386 svr4.0, and systems where the
5464f5a1 15326 VM page cache was not coherent with the file system buffer cache
252b5132
RH
15327 like early versions of FreeBSD and possibly contemporary NetBSD.)
15328 For shared mappings, we should conversely verify that changes get
5464f5a1 15329 propagated back to all the places they're supposed to be.
252b5132
RH
15330
15331 Grep wants private fixed already mapped.
15332 The main things grep needs to know about mmap are:
15333 * does it exist and is it safe to write into the mmap'd area
15334 * how to use it (BSD variants) */
5464f5a1 15335
252b5132
RH
15336#include <fcntl.h>
15337#include <sys/mman.h>
15338
81ecdfbb 15339#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
5464f5a1
NN
15340char *malloc ();
15341#endif
6be7c12c 15342
5464f5a1 15343/* This mess was copied from the GNU getpagesize.h. */
81ecdfbb 15344#ifndef HAVE_GETPAGESIZE
252b5132 15345/* Assume that all systems that can run configure have sys/param.h. */
81ecdfbb 15346# ifndef HAVE_SYS_PARAM_H
252b5132
RH
15347# define HAVE_SYS_PARAM_H 1
15348# endif
15349
15350# ifdef _SC_PAGESIZE
15351# define getpagesize() sysconf(_SC_PAGESIZE)
15352# else /* no _SC_PAGESIZE */
81ecdfbb 15353# ifdef HAVE_SYS_PARAM_H
252b5132
RH
15354# include <sys/param.h>
15355# ifdef EXEC_PAGESIZE
15356# define getpagesize() EXEC_PAGESIZE
15357# else /* no EXEC_PAGESIZE */
15358# ifdef NBPG
15359# define getpagesize() NBPG * CLSIZE
15360# ifndef CLSIZE
15361# define CLSIZE 1
15362# endif /* no CLSIZE */
15363# else /* no NBPG */
15364# ifdef NBPC
15365# define getpagesize() NBPC
15366# else /* no NBPC */
15367# ifdef PAGESIZE
15368# define getpagesize() PAGESIZE
15369# endif /* PAGESIZE */
15370# endif /* no NBPC */
15371# endif /* no NBPG */
15372# endif /* no EXEC_PAGESIZE */
15373# else /* no HAVE_SYS_PARAM_H */
15374# define getpagesize() 8192 /* punt totally */
15375# endif /* no HAVE_SYS_PARAM_H */
15376# endif /* no _SC_PAGESIZE */
15377
5464f5a1
NN
15378#endif /* no HAVE_GETPAGESIZE */
15379
15380int
15381main ()
15382{
15383 char *data, *data2, *data3;
15384 int i, pagesize;
15385 int fd;
15386
15387 pagesize = getpagesize ();
15388
15389 /* First, make a file with some known garbage in it. */
15390 data = (char *) malloc (pagesize);
15391 if (!data)
81ecdfbb 15392 return 1;
5464f5a1
NN
15393 for (i = 0; i < pagesize; ++i)
15394 *(data + i) = rand ();
15395 umask (0);
15396 fd = creat ("conftest.mmap", 0600);
15397 if (fd < 0)
81ecdfbb 15398 return 1;
5464f5a1 15399 if (write (fd, data, pagesize) != pagesize)
81ecdfbb 15400 return 1;
5464f5a1
NN
15401 close (fd);
15402
15403 /* Next, try to mmap the file at a fixed address which already has
15404 something else allocated at it. If we can, also make sure that
15405 we see the same garbage. */
15406 fd = open ("conftest.mmap", O_RDWR);
15407 if (fd < 0)
81ecdfbb 15408 return 1;
5464f5a1
NN
15409 data2 = (char *) malloc (2 * pagesize);
15410 if (!data2)
81ecdfbb
RW
15411 return 1;
15412 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
5464f5a1
NN
15413 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
15414 MAP_PRIVATE | MAP_FIXED, fd, 0L))
81ecdfbb 15415 return 1;
5464f5a1
NN
15416 for (i = 0; i < pagesize; ++i)
15417 if (*(data + i) != *(data2 + i))
81ecdfbb 15418 return 1;
5464f5a1
NN
15419
15420 /* Finally, make sure that changes to the mapped area do not
15421 percolate back to the file as seen by read(). (This is a bug on
15422 some variants of i386 svr4.0.) */
15423 for (i = 0; i < pagesize; ++i)
15424 *(data2 + i) = *(data2 + i) + 1;
15425 data3 = (char *) malloc (pagesize);
15426 if (!data3)
81ecdfbb 15427 return 1;
5464f5a1 15428 if (read (fd, data3, pagesize) != pagesize)
81ecdfbb 15429 return 1;
5464f5a1
NN
15430 for (i = 0; i < pagesize; ++i)
15431 if (*(data + i) != *(data3 + i))
81ecdfbb 15432 return 1;
5464f5a1 15433 close (fd);
81ecdfbb 15434 return 0;
5464f5a1
NN
15435}
15436_ACEOF
81ecdfbb 15437if ac_fn_c_try_run "$LINENO"; then :
5464f5a1
NN
15438 ac_cv_func_mmap_fixed_mapped=yes
15439else
81ecdfbb 15440 ac_cv_func_mmap_fixed_mapped=no
5464f5a1 15441fi
81ecdfbb
RW
15442rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15443 conftest.$ac_objext conftest.beam conftest.$ac_ext
5464f5a1 15444fi
81ecdfbb 15445
5464f5a1 15446fi
81ecdfbb
RW
15447{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
15448$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
5464f5a1
NN
15449if test $ac_cv_func_mmap_fixed_mapped = yes; then
15450
81ecdfbb 15451$as_echo "#define HAVE_MMAP 1" >>confdefs.h
5464f5a1
NN
15452
15453fi
15454rm -f conftest.mmap
15455
5464f5a1 15456for ac_func in madvise mprotect
81ecdfbb
RW
15457do :
15458 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15459ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15460eval as_val=\$$as_ac_var
15461 if test "x$as_val" = x""yes; then :
5464f5a1 15462 cat >>confdefs.h <<_ACEOF
81ecdfbb 15463#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5464f5a1
NN
15464_ACEOF
15465
15466fi
15467done
15468
15469case ${want_mmap}+${ac_cv_func_mmap_fixed_mapped} in
15470 true+yes )
81ecdfbb 15471$as_echo "#define USE_MMAP 1" >>confdefs.h
5464f5a1
NN
15472 ;;
15473esac
15474
15475rm -f doc/config.status
81ecdfbb 15476ac_config_files="$ac_config_files Makefile doc/Makefile bfd-in3.h:bfd-in2.h po/Makefile.in:po/Make-in"
5464f5a1 15477
20e95c23 15478
81ecdfbb 15479ac_config_commands="$ac_config_commands default"
5464f5a1 15480
108a6f8e
CD
15481
15482
15483
15484
15485
31dd3154 15486
5464f5a1
NN
15487cat >confcache <<\_ACEOF
15488# This file is a shell script that caches the results of configure
15489# tests run on this system so they can be shared between configure
15490# scripts and configure runs, see configure's option --config-cache.
15491# It is not useful on other systems. If it contains results you don't
15492# want to keep, you may remove or edit it.
15493#
15494# config.status only pays attention to the cache file if you give it
15495# the --recheck option to rerun configure.
15496#
15497# `ac_cv_env_foo' variables (set or unset) will be overridden when
15498# loading this file, other *unset* `ac_cv_foo' will be assigned the
15499# following values.
15500
15501_ACEOF
15502
15503# The following way of writing the cache mishandles newlines in values,
15504# but we know of no workaround that is simple, portable, and efficient.
81ecdfbb 15505# So, we kill variables containing newlines.
5464f5a1
NN
15506# Ultrix sh set writes to stderr and can't be redirected directly,
15507# and sets the high bit in the cache file unless we assign to the vars.
81ecdfbb
RW
15508(
15509 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15510 eval ac_val=\$$ac_var
15511 case $ac_val in #(
15512 *${as_nl}*)
15513 case $ac_var in #(
15514 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15515$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15516 esac
15517 case $ac_var in #(
15518 _ | IFS | as_nl) ;; #(
15519 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15520 *) { eval $ac_var=; unset $ac_var;} ;;
15521 esac ;;
15522 esac
15523 done
15524
5464f5a1 15525 (set) 2>&1 |
81ecdfbb
RW
15526 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15527 *${as_nl}ac_space=\ *)
15528 # `set' does not quote correctly, so add quotes: double-quote
15529 # substitution turns \\\\ into \\, and sed turns \\ into \.
5464f5a1
NN
15530 sed -n \
15531 "s/'/'\\\\''/g;
15532 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
81ecdfbb 15533 ;; #(
5464f5a1
NN
15534 *)
15535 # `set' quotes correctly as required by POSIX, so do not add quotes.
81ecdfbb 15536 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
5464f5a1 15537 ;;
81ecdfbb
RW
15538 esac |
15539 sort
15540) |
5464f5a1 15541 sed '
81ecdfbb 15542 /^ac_cv_env_/b end
5464f5a1 15543 t clear
81ecdfbb 15544 :clear
5464f5a1
NN
15545 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15546 t end
81ecdfbb
RW
15547 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15548 :end' >>confcache
15549if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15550 if test -w "$cache_file"; then
15551 test "x$cache_file" != "x/dev/null" &&
15552 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15553$as_echo "$as_me: updating cache $cache_file" >&6;}
5464f5a1
NN
15554 cat confcache >$cache_file
15555 else
81ecdfbb
RW
15556 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15557$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
5464f5a1
NN
15558 fi
15559fi
15560rm -f confcache
15561
15562test "x$prefix" = xNONE && prefix=$ac_default_prefix
15563# Let make expand exec_prefix.
15564test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15565
5464f5a1
NN
15566DEFS=-DHAVE_CONFIG_H
15567
15568ac_libobjs=
15569ac_ltlibobjs=
15570for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15571 # 1. Remove the extension, and $U if already installed.
81ecdfbb
RW
15572 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15573 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15574 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15575 # will be set to the directory where LIBOBJS objects are built.
15576 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15577 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
5464f5a1
NN
15578done
15579LIBOBJS=$ac_libobjs
15580
15581LTLIBOBJS=$ac_ltlibobjs
15582
15583
f5385ebf 15584if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
81ecdfbb
RW
15585 as_fn_error "conditional \"AMDEP\" was never defined.
15586Usually this means the macro was only invoked conditionally." "$LINENO" 5
f5385ebf
AM
15587fi
15588if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
81ecdfbb
RW
15589 as_fn_error "conditional \"am__fastdepCC\" was never defined.
15590Usually this means the macro was only invoked conditionally." "$LINENO" 5
15591fi
15592 if test -n "$EXEEXT"; then
15593 am__EXEEXT_TRUE=
15594 am__EXEEXT_FALSE='#'
15595else
15596 am__EXEEXT_TRUE='#'
15597 am__EXEEXT_FALSE=
f5385ebf 15598fi
81ecdfbb 15599
ce3c775b 15600if test -z "${PLUGINS_TRUE}" && test -z "${PLUGINS_FALSE}"; then
81ecdfbb
RW
15601 as_fn_error "conditional \"PLUGINS\" was never defined.
15602Usually this means the macro was only invoked conditionally." "$LINENO" 5
ce3c775b 15603fi
f5385ebf 15604if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
81ecdfbb
RW
15605 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
15606Usually this means the macro was only invoked conditionally." "$LINENO" 5
f5385ebf 15607fi
d5fbea21 15608if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
81ecdfbb
RW
15609 as_fn_error "conditional \"GENINSRC_NEVER\" was never defined.
15610Usually this means the macro was only invoked conditionally." "$LINENO" 5
d5fbea21 15611fi
f5385ebf 15612if test -z "${INSTALL_LIBBFD_TRUE}" && test -z "${INSTALL_LIBBFD_FALSE}"; then
81ecdfbb
RW
15613 as_fn_error "conditional \"INSTALL_LIBBFD\" was never defined.
15614Usually this means the macro was only invoked conditionally." "$LINENO" 5
f5385ebf 15615fi
5464f5a1
NN
15616
15617: ${CONFIG_STATUS=./config.status}
81ecdfbb 15618ac_write_fail=0
5464f5a1
NN
15619ac_clean_files_save=$ac_clean_files
15620ac_clean_files="$ac_clean_files $CONFIG_STATUS"
81ecdfbb
RW
15621{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15622$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15623as_write_fail=0
15624cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
5464f5a1
NN
15625#! $SHELL
15626# Generated by $as_me.
15627# Run this file to recreate the current configuration.
15628# Compiler output produced by configure, useful for debugging
15629# configure, is in config.log if it exists.
15630
15631debug=false
15632ac_cs_recheck=false
15633ac_cs_silent=false
5464f5a1 15634
81ecdfbb
RW
15635SHELL=\${CONFIG_SHELL-$SHELL}
15636export SHELL
15637_ASEOF
15638cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15639## -------------------- ##
15640## M4sh Initialization. ##
15641## -------------------- ##
5464f5a1 15642
81ecdfbb
RW
15643# Be more Bourne compatible
15644DUALCASE=1; export DUALCASE # for MKS sh
15645if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
5464f5a1
NN
15646 emulate sh
15647 NULLCMD=:
81ecdfbb 15648 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
5464f5a1
NN
15649 # is contrary to our usage. Disable this feature.
15650 alias -g '${1+"$@"}'='"$@"'
81ecdfbb
RW
15651 setopt NO_GLOB_SUBST
15652else
15653 case `(set -o) 2>/dev/null` in #(
15654 *posix*) :
15655 set -o posix ;; #(
15656 *) :
15657 ;;
15658esac
5464f5a1 15659fi
5464f5a1 15660
81ecdfbb
RW
15661
15662as_nl='
15663'
15664export as_nl
15665# Printing a long string crashes Solaris 7 /usr/bin/printf.
15666as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15667as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15668as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15669# Prefer a ksh shell builtin over an external printf program on Solaris,
15670# but without wasting forks for bash or zsh.
15671if test -z "$BASH_VERSION$ZSH_VERSION" \
15672 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15673 as_echo='print -r --'
15674 as_echo_n='print -rn --'
15675elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15676 as_echo='printf %s\n'
15677 as_echo_n='printf %s'
15678else
15679 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15680 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15681 as_echo_n='/usr/ucb/echo -n'
15682 else
15683 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15684 as_echo_n_body='eval
15685 arg=$1;
15686 case $arg in #(
15687 *"$as_nl"*)
15688 expr "X$arg" : "X\\(.*\\)$as_nl";
15689 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15690 esac;
15691 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15692 '
15693 export as_echo_n_body
15694 as_echo_n='sh -c $as_echo_n_body as_echo'
15695 fi
15696 export as_echo_body
15697 as_echo='sh -c $as_echo_body as_echo'
15698fi
15699
15700# The user is always right.
15701if test "${PATH_SEPARATOR+set}" != set; then
15702 PATH_SEPARATOR=:
15703 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15704 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15705 PATH_SEPARATOR=';'
15706 }
5464f5a1
NN
15707fi
15708
15709
81ecdfbb
RW
15710# IFS
15711# We need space, tab and new line, in precisely that order. Quoting is
15712# there to prevent editors from complaining about space-tab.
15713# (If _AS_PATH_WALK were called with IFS unset, it would disable word
15714# splitting by setting IFS to empty value.)
15715IFS=" "" $as_nl"
15716
15717# Find who we are. Look in the path if we contain no directory separator.
15718case $0 in #((
15719 *[\\/]* ) as_myself=$0 ;;
15720 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15721for as_dir in $PATH
15722do
15723 IFS=$as_save_IFS
15724 test -z "$as_dir" && as_dir=.
15725 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15726 done
15727IFS=$as_save_IFS
15728
15729 ;;
15730esac
15731# We did not find ourselves, most probably we were run as `sh COMMAND'
15732# in which case we are not to be found in the path.
15733if test "x$as_myself" = x; then
15734 as_myself=$0
15735fi
15736if test ! -f "$as_myself"; then
15737 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15738 exit 1
15739fi
15740
15741# Unset variables that we do not need and which cause bugs (e.g. in
15742# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15743# suppresses any "Segmentation fault" message there. '((' could
15744# trigger a bug in pdksh 5.2.14.
15745for as_var in BASH_ENV ENV MAIL MAILPATH
15746do eval test x\${$as_var+set} = xset \
15747 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15748done
5464f5a1
NN
15749PS1='$ '
15750PS2='> '
15751PS4='+ '
15752
15753# NLS nuisances.
81ecdfbb
RW
15754LC_ALL=C
15755export LC_ALL
15756LANGUAGE=C
15757export LANGUAGE
15758
15759# CDPATH.
15760(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15761
15762
15763# as_fn_error ERROR [LINENO LOG_FD]
15764# ---------------------------------
15765# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15766# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15767# script with status $?, using 1 if that was 0.
15768as_fn_error ()
15769{
15770 as_status=$?; test $as_status -eq 0 && as_status=1
15771 if test "$3"; then
15772 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15773 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
5464f5a1 15774 fi
81ecdfbb
RW
15775 $as_echo "$as_me: error: $1" >&2
15776 as_fn_exit $as_status
15777} # as_fn_error
15778
15779
15780# as_fn_set_status STATUS
15781# -----------------------
15782# Set $? to STATUS, without forking.
15783as_fn_set_status ()
15784{
15785 return $1
15786} # as_fn_set_status
15787
15788# as_fn_exit STATUS
15789# -----------------
15790# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15791as_fn_exit ()
15792{
15793 set +e
15794 as_fn_set_status $1
15795 exit $1
15796} # as_fn_exit
15797
15798# as_fn_unset VAR
15799# ---------------
15800# Portably unset VAR.
15801as_fn_unset ()
15802{
15803 { eval $1=; unset $1;}
15804}
15805as_unset=as_fn_unset
15806# as_fn_append VAR VALUE
15807# ----------------------
15808# Append the text in VALUE to the end of the definition contained in VAR. Take
15809# advantage of any shell optimizations that allow amortized linear growth over
15810# repeated appends, instead of the typical quadratic growth present in naive
15811# implementations.
15812if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15813 eval 'as_fn_append ()
15814 {
15815 eval $1+=\$2
15816 }'
15817else
15818 as_fn_append ()
15819 {
15820 eval $1=\$$1\$2
15821 }
15822fi # as_fn_append
15823
15824# as_fn_arith ARG...
15825# ------------------
15826# Perform arithmetic evaluation on the ARGs, and store the result in the
15827# global $as_val. Take advantage of shells that can avoid forks. The arguments
15828# must be portable across $(()) and expr.
15829if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15830 eval 'as_fn_arith ()
15831 {
15832 as_val=$(( $* ))
15833 }'
15834else
15835 as_fn_arith ()
15836 {
15837 as_val=`expr "$@" || test $? -eq 1`
15838 }
15839fi # as_fn_arith
15840
5464f5a1 15841
81ecdfbb
RW
15842if expr a : '\(a\)' >/dev/null 2>&1 &&
15843 test "X`expr 00001 : '.*\(...\)'`" = X001; then
5464f5a1
NN
15844 as_expr=expr
15845else
15846 as_expr=false
15847fi
15848
81ecdfbb 15849if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
5464f5a1
NN
15850 as_basename=basename
15851else
15852 as_basename=false
15853fi
252b5132 15854
81ecdfbb
RW
15855if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15856 as_dirname=dirname
15857else
15858 as_dirname=false
15859fi
6be7c12c 15860
81ecdfbb 15861as_me=`$as_basename -- "$0" ||
5464f5a1
NN
15862$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15863 X"$0" : 'X\(//\)$' \| \
81ecdfbb
RW
15864 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15865$as_echo X/"$0" |
15866 sed '/^.*\/\([^/][^/]*\)\/*$/{
15867 s//\1/
15868 q
15869 }
15870 /^X\/\(\/\/\)$/{
15871 s//\1/
15872 q
15873 }
15874 /^X\/\(\/\).*/{
15875 s//\1/
15876 q
15877 }
15878 s/.*/./; q'`
5464f5a1 15879
5464f5a1
NN
15880# Avoid depending upon Character Ranges.
15881as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15882as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15883as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15884as_cr_digits='0123456789'
15885as_cr_alnum=$as_cr_Letters$as_cr_digits
15886
81ecdfbb
RW
15887ECHO_C= ECHO_N= ECHO_T=
15888case `echo -n x` in #(((((
15889-n*)
15890 case `echo 'xy\c'` in
15891 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15892 xy) ECHO_C='\c';;
15893 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15894 ECHO_T=' ';;
15895 esac;;
15896*)
15897 ECHO_N='-n';;
5464f5a1
NN
15898esac
15899
81ecdfbb
RW
15900rm -f conf$$ conf$$.exe conf$$.file
15901if test -d conf$$.dir; then
15902 rm -f conf$$.dir/conf$$.file
252b5132 15903else
81ecdfbb
RW
15904 rm -f conf$$.dir
15905 mkdir conf$$.dir 2>/dev/null
252b5132 15906fi
81ecdfbb
RW
15907if (echo >conf$$.file) 2>/dev/null; then
15908 if ln -s conf$$.file conf$$ 2>/dev/null; then
5464f5a1 15909 as_ln_s='ln -s'
81ecdfbb
RW
15910 # ... but there are two gotchas:
15911 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15912 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15913 # In both cases, we have to default to `cp -p'.
15914 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15915 as_ln_s='cp -p'
15916 elif ln conf$$.file conf$$ 2>/dev/null; then
15917 as_ln_s=ln
15918 else
15919 as_ln_s='cp -p'
5464f5a1 15920 fi
5464f5a1
NN
15921else
15922 as_ln_s='cp -p'
252b5132 15923fi
81ecdfbb
RW
15924rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15925rmdir conf$$.dir 2>/dev/null
15926
15927
15928# as_fn_mkdir_p
15929# -------------
15930# Create "$as_dir" as a directory, including parents if necessary.
15931as_fn_mkdir_p ()
15932{
15933
15934 case $as_dir in #(
15935 -*) as_dir=./$as_dir;;
15936 esac
15937 test -d "$as_dir" || eval $as_mkdir_p || {
15938 as_dirs=
15939 while :; do
15940 case $as_dir in #(
15941 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15942 *) as_qdir=$as_dir;;
15943 esac
15944 as_dirs="'$as_qdir' $as_dirs"
15945 as_dir=`$as_dirname -- "$as_dir" ||
15946$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15947 X"$as_dir" : 'X\(//\)[^/]' \| \
15948 X"$as_dir" : 'X\(//\)$' \| \
15949 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15950$as_echo X"$as_dir" |
15951 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15952 s//\1/
15953 q
15954 }
15955 /^X\(\/\/\)[^/].*/{
15956 s//\1/
15957 q
15958 }
15959 /^X\(\/\/\)$/{
15960 s//\1/
15961 q
15962 }
15963 /^X\(\/\).*/{
15964 s//\1/
15965 q
15966 }
15967 s/.*/./; q'`
15968 test -d "$as_dir" && break
15969 done
15970 test -z "$as_dirs" || eval "mkdir $as_dirs"
15971 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
15972
6be7c12c 15973
81ecdfbb 15974} # as_fn_mkdir_p
5464f5a1 15975if mkdir -p . 2>/dev/null; then
81ecdfbb 15976 as_mkdir_p='mkdir -p "$as_dir"'
5464f5a1
NN
15977else
15978 test -d ./-p && rmdir ./-p
15979 as_mkdir_p=false
252b5132 15980fi
81ecdfbb
RW
15981
15982if test -x / >/dev/null 2>&1; then
15983 as_test_x='test -x'
15984else
15985 if ls -dL / >/dev/null 2>&1; then
15986 as_ls_L_option=L
15987 else
15988 as_ls_L_option=
15989 fi
15990 as_test_x='
15991 eval sh -c '\''
15992 if test -d "$1"; then
15993 test -d "$1/.";
15994 else
15995 case $1 in #(
15996 -*)set "./$1";;
15997 esac;
15998 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15999 ???[sx]*):;;*)false;;esac;fi
16000 '\'' sh
16001 '
16002fi
16003as_executable_p=$as_test_x
252b5132 16004
5464f5a1
NN
16005# Sed expression to map a string onto a valid CPP name.
16006as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
252b5132 16007
5464f5a1
NN
16008# Sed expression to map a string onto a valid variable name.
16009as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6be7c12c 16010
252b5132 16011
5464f5a1 16012exec 6>&1
81ecdfbb
RW
16013## ----------------------------------- ##
16014## Main body of $CONFIG_STATUS script. ##
16015## ----------------------------------- ##
16016_ASEOF
16017test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
5464f5a1 16018
81ecdfbb
RW
16019cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16020# Save the log message, to keep $0 and so on meaningful, and to
5464f5a1 16021# report actual input values of CONFIG_FILES etc. instead of their
81ecdfbb
RW
16022# values after options handling.
16023ac_log="
5464f5a1 16024This file was extended by $as_me, which was
81ecdfbb 16025generated by GNU Autoconf 2.64. Invocation command line was
5464f5a1
NN
16026
16027 CONFIG_FILES = $CONFIG_FILES
16028 CONFIG_HEADERS = $CONFIG_HEADERS
16029 CONFIG_LINKS = $CONFIG_LINKS
16030 CONFIG_COMMANDS = $CONFIG_COMMANDS
16031 $ $0 $@
16032
81ecdfbb
RW
16033on `(hostname || uname -n) 2>/dev/null | sed 1q`
16034"
16035
5464f5a1
NN
16036_ACEOF
16037
81ecdfbb
RW
16038case $ac_config_files in *"
16039"*) set x $ac_config_files; shift; ac_config_files=$*;;
16040esac
5464f5a1 16041
81ecdfbb
RW
16042case $ac_config_headers in *"
16043"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16044esac
252b5132 16045
252b5132 16046
81ecdfbb
RW
16047cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16048# Files that config.status was made for.
16049config_files="$ac_config_files"
16050config_headers="$ac_config_headers"
16051config_commands="$ac_config_commands"
252b5132 16052
81ecdfbb 16053_ACEOF
5464f5a1 16054
81ecdfbb 16055cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5464f5a1 16056ac_cs_usage="\
81ecdfbb
RW
16057\`$as_me' instantiates files and other configuration actions
16058from templates according to the current configuration. Unless the files
16059and actions are specified as TAGs, all are instantiated by default.
5464f5a1 16060
81ecdfbb 16061Usage: $0 [OPTION]... [TAG]...
5464f5a1
NN
16062
16063 -h, --help print this help, then exit
81ecdfbb
RW
16064 -V, --version print version number and configuration settings, then exit
16065 -q, --quiet, --silent
16066 do not print progress messages
5464f5a1
NN
16067 -d, --debug don't remove temporary files
16068 --recheck update $as_me by reconfiguring in the same conditions
81ecdfbb
RW
16069 --file=FILE[:TEMPLATE]
16070 instantiate the configuration file FILE
16071 --header=FILE[:TEMPLATE]
16072 instantiate the configuration header FILE
5464f5a1
NN
16073
16074Configuration files:
16075$config_files
16076
16077Configuration headers:
16078$config_headers
16079
16080Configuration commands:
16081$config_commands
16082
81ecdfbb 16083Report bugs to the package provider."
5464f5a1 16084
81ecdfbb
RW
16085_ACEOF
16086cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5464f5a1
NN
16087ac_cs_version="\\
16088config.status
81ecdfbb
RW
16089configured by $0, generated by GNU Autoconf 2.64,
16090 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
5464f5a1 16091
81ecdfbb 16092Copyright (C) 2009 Free Software Foundation, Inc.
5464f5a1
NN
16093This config.status script is free software; the Free Software Foundation
16094gives unlimited permission to copy, distribute and modify it."
81ecdfbb
RW
16095
16096ac_pwd='$ac_pwd'
16097srcdir='$srcdir'
16098INSTALL='$INSTALL'
16099MKDIR_P='$MKDIR_P'
16100AWK='$AWK'
16101test -n "\$AWK" || AWK=awk
5464f5a1
NN
16102_ACEOF
16103
81ecdfbb
RW
16104cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16105# The default lists apply if the user does not specify any file.
5464f5a1
NN
16106ac_need_defaults=:
16107while test $# != 0
16108do
16109 case $1 in
16110 --*=*)
81ecdfbb
RW
16111 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16112 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
5464f5a1 16113 ac_shift=:
6be7c12c 16114 ;;
81ecdfbb 16115 *)
5464f5a1
NN
16116 ac_option=$1
16117 ac_optarg=$2
16118 ac_shift=shift
6be7c12c 16119 ;;
5464f5a1 16120 esac
252b5132 16121
5464f5a1
NN
16122 case $ac_option in
16123 # Handling of the options.
5464f5a1
NN
16124 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16125 ac_cs_recheck=: ;;
81ecdfbb
RW
16126 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16127 $as_echo "$ac_cs_version"; exit ;;
16128 --debug | --debu | --deb | --de | --d | -d )
5464f5a1
NN
16129 debug=: ;;
16130 --file | --fil | --fi | --f )
16131 $ac_shift
81ecdfbb
RW
16132 case $ac_optarg in
16133 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16134 esac
16135 as_fn_append CONFIG_FILES " '$ac_optarg'"
5464f5a1
NN
16136 ac_need_defaults=false;;
16137 --header | --heade | --head | --hea )
16138 $ac_shift
81ecdfbb
RW
16139 case $ac_optarg in
16140 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16141 esac
16142 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
5464f5a1 16143 ac_need_defaults=false;;
81ecdfbb
RW
16144 --he | --h)
16145 # Conflict between --help and --header
16146 as_fn_error "ambiguous option: \`$1'
16147Try \`$0 --help' for more information.";;
16148 --help | --hel | -h )
16149 $as_echo "$ac_cs_usage"; exit ;;
5464f5a1
NN
16150 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16151 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16152 ac_cs_silent=: ;;
6be7c12c 16153
5464f5a1 16154 # This is an error.
81ecdfbb
RW
16155 -*) as_fn_error "unrecognized option: \`$1'
16156Try \`$0 --help' for more information." ;;
252b5132 16157
81ecdfbb
RW
16158 *) as_fn_append ac_config_targets " $1"
16159 ac_need_defaults=false ;;
252b5132 16160
5464f5a1
NN
16161 esac
16162 shift
16163done
6be7c12c 16164
5464f5a1 16165ac_configure_extra_args=
252b5132 16166
5464f5a1
NN
16167if $ac_cs_silent; then
16168 exec 6>/dev/null
16169 ac_configure_extra_args="$ac_configure_extra_args --silent"
16170fi
6be7c12c 16171
5464f5a1 16172_ACEOF
81ecdfbb 16173cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5464f5a1 16174if \$ac_cs_recheck; then
81ecdfbb
RW
16175 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16176 shift
16177 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16178 CONFIG_SHELL='$SHELL'
16179 export CONFIG_SHELL
16180 exec "\$@"
5464f5a1
NN
16181fi
16182
16183_ACEOF
81ecdfbb
RW
16184cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16185exec 5>>config.log
16186{
16187 echo
16188 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16189## Running $as_me. ##
16190_ASBOX
16191 $as_echo "$ac_log"
16192} >&5
5464f5a1 16193
81ecdfbb
RW
16194_ACEOF
16195cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6be7c12c 16196#
81ecdfbb 16197# INIT-COMMANDS
6be7c12c 16198#
f5385ebf 16199AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
d7040cdb
SE
16200
16201
16202# The HP-UX ksh and POSIX shell print the target directory to stdout
16203# if CDPATH is set.
16204(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16205
16206sed_quote_subst='$sed_quote_subst'
16207double_quote_subst='$double_quote_subst'
16208delay_variable_subst='$delay_variable_subst'
16209enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
16210macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
16211macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
16212enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
16213pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
16214enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
16215host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
16216host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
16217host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
16218build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
16219build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
16220build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
16221SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
16222Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
16223GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
16224EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
16225FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
16226LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
16227NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
16228LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
16229max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
16230ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
16231exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
16232lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
16233lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
16234lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
16235reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
16236reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
718a6fd8 16237OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
d7040cdb
SE
16238deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
16239file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
16240AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
16241AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
16242STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
16243RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
16244old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16245old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16246old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16247CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
16248CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
16249compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
16250GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
16251lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
16252lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
16253lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
718a6fd8 16254lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
d7040cdb
SE
16255objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
16256SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
16257ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
16258MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
16259lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
16260lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
16261lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
16262lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
16263lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
16264need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
718a6fd8
SE
16265DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
16266NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
16267LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
16268OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
16269OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
d7040cdb
SE
16270libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
16271shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16272extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16273archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
16274enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
16275export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
16276whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
16277compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
16278old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16279old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16280archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16281archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16282module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16283module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16284with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
16285allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
16286no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
16287hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
16288hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
16289hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
16290hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
16291hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
16292hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
16293hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
16294hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
16295inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
16296link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
16297fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
16298always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
16299export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16300exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
16301include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
16302prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16303file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
16304variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
16305need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
16306need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
16307version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
16308runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
16309shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
16310shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
16311libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
16312library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
16313soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
16314postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16315postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16316finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16317finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
16318hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
16319sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
16320sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
16321hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
16322enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
16323enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
16324enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
16325old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
16326striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
16327
16328LTCC='$LTCC'
16329LTCFLAGS='$LTCFLAGS'
16330compiler='$compiler_DEFAULT'
16331
16332# Quote evaled strings.
16333for var in SED \
16334GREP \
16335EGREP \
16336FGREP \
16337LD \
16338NM \
16339LN_S \
16340lt_SP2NL \
16341lt_NL2SP \
16342reload_flag \
718a6fd8 16343OBJDUMP \
d7040cdb
SE
16344deplibs_check_method \
16345file_magic_cmd \
16346AR \
16347AR_FLAGS \
16348STRIP \
16349RANLIB \
16350CC \
16351CFLAGS \
16352compiler \
16353lt_cv_sys_global_symbol_pipe \
16354lt_cv_sys_global_symbol_to_cdecl \
16355lt_cv_sys_global_symbol_to_c_name_address \
718a6fd8 16356lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
d7040cdb
SE
16357SHELL \
16358ECHO \
16359lt_prog_compiler_no_builtin_flag \
16360lt_prog_compiler_wl \
16361lt_prog_compiler_pic \
16362lt_prog_compiler_static \
16363lt_cv_prog_compiler_c_o \
16364need_locks \
718a6fd8
SE
16365DSYMUTIL \
16366NMEDIT \
16367LIPO \
16368OTOOL \
16369OTOOL64 \
d7040cdb
SE
16370shrext_cmds \
16371export_dynamic_flag_spec \
16372whole_archive_flag_spec \
16373compiler_needs_object \
16374with_gnu_ld \
16375allow_undefined_flag \
16376no_undefined_flag \
16377hardcode_libdir_flag_spec \
16378hardcode_libdir_flag_spec_ld \
16379hardcode_libdir_separator \
16380fix_srcfile_path \
16381exclude_expsyms \
16382include_expsyms \
16383file_list_spec \
16384variables_saved_for_relink \
16385libname_spec \
16386library_names_spec \
16387soname_spec \
16388finish_eval \
16389old_striplib \
16390striplib; do
16391 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
16392 *[\\\\\\\`\\"\\\$]*)
16393 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16394 ;;
16395 *)
16396 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16397 ;;
16398 esac
16399done
16400
16401# Double-quote double-evaled strings.
16402for var in reload_cmds \
16403old_postinstall_cmds \
16404old_postuninstall_cmds \
16405old_archive_cmds \
16406extract_expsyms_cmds \
16407old_archive_from_new_cmds \
16408old_archive_from_expsyms_cmds \
16409archive_cmds \
16410archive_expsym_cmds \
16411module_cmds \
16412module_expsym_cmds \
16413export_symbols_cmds \
16414prelink_cmds \
16415postinstall_cmds \
16416postuninstall_cmds \
16417finish_cmds \
16418sys_lib_search_path_spec \
16419sys_lib_dlsearch_path_spec; do
16420 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
16421 *[\\\\\\\`\\"\\\$]*)
16422 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16423 ;;
16424 *)
16425 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16426 ;;
16427 esac
16428done
16429
16430# Fix-up fallback echo if it was mangled by the above quoting rules.
16431case \$lt_ECHO in
16432*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
16433 ;;
16434esac
16435
16436ac_aux_dir='$ac_aux_dir'
16437xsi_shell='$xsi_shell'
16438lt_shell_append='$lt_shell_append'
16439
16440# See if we are running on zsh, and set the options which allow our
16441# commands through without removal of \ escapes INIT.
16442if test -n "\${ZSH_VERSION+set}" ; then
16443 setopt NO_GLOB_SUBST
16444fi
16445
16446
16447 PACKAGE='$PACKAGE'
16448 VERSION='$VERSION'
16449 TIMESTAMP='$TIMESTAMP'
16450 RM='$RM'
16451 ofile='$ofile'
16452
16453
16454
20e95c23
DJ
16455# Capture the value of obsolete ALL_LINGUAS because we need it to compute
16456 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
16457 # from automake.
16458 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
16459 # Capture the value of LINGUAS because we need it to compute CATALOGS.
16460 LINGUAS="${LINGUAS-%UNSET%}"
16461
5464f5a1 16462
f3b4f6d0
PB
16463GCC="$GCC"
16464CC="$CC"
16465acx_cv_header_stdint="$acx_cv_header_stdint"
16466acx_cv_type_int8_t="$acx_cv_type_int8_t"
16467acx_cv_type_int16_t="$acx_cv_type_int16_t"
16468acx_cv_type_int32_t="$acx_cv_type_int32_t"
16469acx_cv_type_int64_t="$acx_cv_type_int64_t"
16470acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
16471ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
16472ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
16473ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
16474ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
16475ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
d5efd9fc
AM
16476ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
16477ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
f3b4f6d0 16478ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
d5efd9fc
AM
16479
16480
5464f5a1
NN
16481
16482_ACEOF
16483
81ecdfbb 16484cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5464f5a1 16485
81ecdfbb 16486# Handling of arguments.
5464f5a1 16487for ac_config_target in $ac_config_targets
252b5132 16488do
81ecdfbb
RW
16489 case $ac_config_target in
16490 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16491 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16492 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
16493 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
16494 "bfd_stdint.h") CONFIG_COMMANDS="$CONFIG_COMMANDS bfd_stdint.h" ;;
16495 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16496 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
16497 "bfd-in3.h") CONFIG_FILES="$CONFIG_FILES bfd-in3.h:bfd-in2.h" ;;
16498 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
16499 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
16500
16501 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
252b5132
RH
16502 esac
16503done
16504
81ecdfbb 16505
5464f5a1
NN
16506# If the user did not use the arguments to specify the items to instantiate,
16507# then the envvar interface is used. Set only those that are not.
16508# We use the long form for the default assignment because of an extremely
16509# bizarre bug on SunOS 4.1.3.
16510if $ac_need_defaults; then
16511 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16512 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16513 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16514fi
16515
16516# Have a temporary directory for convenience. Make it in the build tree
81ecdfbb 16517# simply because there is no reason against having it here, and in addition,
5464f5a1 16518# creating and moving files from /tmp can sometimes cause problems.
81ecdfbb
RW
16519# Hook for its removal unless debugging.
16520# Note that there is a small window in which the directory will not be cleaned:
16521# after its creation but before its name has been assigned to `$tmp'.
5464f5a1
NN
16522$debug ||
16523{
81ecdfbb
RW
16524 tmp=
16525 trap 'exit_status=$?
16526 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
16527' 0
16528 trap 'as_fn_exit 1' 1 2 13 15
5464f5a1 16529}
5464f5a1 16530# Create a (secure) tmp directory for tmp files.
b3baf5d0 16531
5464f5a1 16532{
81ecdfbb 16533 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
5464f5a1
NN
16534 test -n "$tmp" && test -d "$tmp"
16535} ||
16536{
81ecdfbb
RW
16537 tmp=./conf$$-$RANDOM
16538 (umask 077 && mkdir "$tmp")
16539} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
16540
16541# Set up the scripts for CONFIG_FILES section.
16542# No need to generate them if there are no CONFIG_FILES.
16543# This happens for instance with `./config.status config.h'.
16544if test -n "$CONFIG_FILES"; then
16545
16546
16547ac_cr=`echo X | tr X '\015'`
16548# On cygwin, bash can eat \r inside `` if the user requested igncr.
16549# But we know of no other shell where ac_cr would be empty at this
16550# point, so we can use a bashism as a fallback.
16551if test "x$ac_cr" = x; then
16552 eval ac_cr=\$\'\\r\'
16553fi
16554ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16555if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16556 ac_cs_awk_cr='\r'
16557else
16558 ac_cs_awk_cr=$ac_cr
16559fi
16560
16561echo 'BEGIN {' >"$tmp/subs1.awk" &&
16562_ACEOF
16563
16564
16565{
16566 echo "cat >conf$$subs.awk <<_ACEOF" &&
16567 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16568 echo "_ACEOF"
16569} >conf$$subs.sh ||
16570 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16571ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
16572ac_delim='%!_!# '
16573for ac_last_try in false false false false false :; do
16574 . ./conf$$subs.sh ||
16575 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16576
16577 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16578 if test $ac_delim_n = $ac_delim_num; then
16579 break
16580 elif $ac_last_try; then
16581 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16582 else
16583 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16584 fi
16585done
16586rm -f conf$$subs.sh
16587
16588cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16589cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
16590_ACEOF
16591sed -n '
16592h
16593s/^/S["/; s/!.*/"]=/
16594p
16595g
16596s/^[^!]*!//
16597:repl
16598t repl
16599s/'"$ac_delim"'$//
16600t delim
16601:nl
16602h
16603s/\(.\{148\}\).*/\1/
16604t more1
16605s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16606p
16607n
16608b repl
16609:more1
16610s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16611p
16612g
16613s/.\{148\}//
16614t nl
16615:delim
16616h
16617s/\(.\{148\}\).*/\1/
16618t more2
16619s/["\\]/\\&/g; s/^/"/; s/$/"/
16620p
16621b
16622:more2
16623s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16624p
16625g
16626s/.\{148\}//
16627t delim
16628' <conf$$subs.awk | sed '
16629/^[^""]/{
16630 N
16631 s/\n//
16632}
16633' >>$CONFIG_STATUS || ac_write_fail=1
16634rm -f conf$$subs.awk
16635cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16636_ACAWK
16637cat >>"\$tmp/subs1.awk" <<_ACAWK &&
16638 for (key in S) S_is_set[key] = 1
16639 FS = "\a"
16640
16641}
5464f5a1 16642{
81ecdfbb
RW
16643 line = $ 0
16644 nfields = split(line, field, "@")
16645 substed = 0
16646 len = length(field[1])
16647 for (i = 2; i < nfields; i++) {
16648 key = field[i]
16649 keylen = length(key)
16650 if (S_is_set[key]) {
16651 value = S[key]
16652 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16653 len += length(value) + length(field[++i])
16654 substed = 1
16655 } else
16656 len += 1 + keylen
16657 }
16658
16659 print line
5464f5a1
NN
16660}
16661
81ecdfbb
RW
16662_ACAWK
16663_ACEOF
16664cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16665if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16666 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16667else
16668 cat
16669fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
16670 || as_fn_error "could not setup config files machinery" "$LINENO" 5
5464f5a1
NN
16671_ACEOF
16672
81ecdfbb
RW
16673# VPATH may cause trouble with some makes, so we remove $(srcdir),
16674# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16675# trailing colons and then remove the whole line if VPATH becomes empty
16676# (actually we leave an empty line to preserve line numbers).
16677if test "x$srcdir" = x.; then
16678 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16679s/:*\$(srcdir):*/:/
16680s/:*\${srcdir}:*/:/
16681s/:*@srcdir@:*/:/
16682s/^\([^=]*=[ ]*\):*/\1/
16683s/:*$//
16684s/^[^=]*=[ ]*$//
16685}'
16686fi
b3baf5d0 16687
81ecdfbb
RW
16688cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16689fi # test -n "$CONFIG_FILES"
252b5132 16690
81ecdfbb
RW
16691# Set up the scripts for CONFIG_HEADERS section.
16692# No need to generate them if there are no CONFIG_HEADERS.
16693# This happens for instance with `./config.status Makefile'.
16694if test -n "$CONFIG_HEADERS"; then
16695cat >"$tmp/defines.awk" <<\_ACAWK ||
16696BEGIN {
5464f5a1
NN
16697_ACEOF
16698
81ecdfbb
RW
16699# Transform confdefs.h into an awk script `defines.awk', embedded as
16700# here-document in config.status, that substitutes the proper values into
16701# config.h.in to produce config.h.
16702
16703# Create a delimiter string that does not exist in confdefs.h, to ease
16704# handling of long lines.
16705ac_delim='%!_!# '
16706for ac_last_try in false false :; do
16707 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
16708 if test -z "$ac_t"; then
16709 break
16710 elif $ac_last_try; then
16711 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
16712 else
16713 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
252b5132 16714 fi
81ecdfbb 16715done
6be7c12c 16716
81ecdfbb
RW
16717# For the awk script, D is an array of macro values keyed by name,
16718# likewise P contains macro parameters if any. Preserve backslash
16719# newline sequences.
16720
16721ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16722sed -n '
16723s/.\{148\}/&'"$ac_delim"'/g
16724t rset
16725:rset
16726s/^[ ]*#[ ]*define[ ][ ]*/ /
16727t def
16728d
16729:def
16730s/\\$//
16731t bsnl
16732s/["\\]/\\&/g
16733s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16734D["\1"]=" \3"/p
16735s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16736d
16737:bsnl
16738s/["\\]/\\&/g
16739s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16740D["\1"]=" \3\\\\\\n"\\/p
16741t cont
16742s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16743t cont
16744d
16745:cont
16746n
16747s/.\{148\}/&'"$ac_delim"'/g
16748t clear
16749:clear
16750s/\\$//
16751t bsnlc
16752s/["\\]/\\&/g; s/^/"/; s/$/"/p
16753d
16754:bsnlc
16755s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16756b cont
16757' <confdefs.h | sed '
16758s/'"$ac_delim"'/"\\\
16759"/g' >>$CONFIG_STATUS || ac_write_fail=1
16760
16761cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16762 for (key in D) D_is_set[key] = 1
16763 FS = "\a"
16764}
16765/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16766 line = \$ 0
16767 split(line, arg, " ")
16768 if (arg[1] == "#") {
16769 defundef = arg[2]
16770 mac1 = arg[3]
16771 } else {
16772 defundef = substr(arg[1], 2)
16773 mac1 = arg[2]
16774 }
16775 split(mac1, mac2, "(") #)
16776 macro = mac2[1]
16777 prefix = substr(line, 1, index(line, defundef) - 1)
16778 if (D_is_set[macro]) {
16779 # Preserve the white space surrounding the "#".
16780 print prefix "define", macro P[macro] D[macro]
16781 next
16782 } else {
16783 # Replace #undef with comments. This is necessary, for example,
16784 # in the case of _POSIX_SOURCE, which is predefined and required
16785 # on some systems where configure will not decide to define it.
16786 if (defundef == "undef") {
16787 print "/*", prefix defundef, macro, "*/"
16788 next
16789 }
16790 }
16791}
16792{ print }
16793_ACAWK
5464f5a1 16794_ACEOF
81ecdfbb
RW
16795cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16796 as_fn_error "could not setup config headers machinery" "$LINENO" 5
16797fi # test -n "$CONFIG_HEADERS"
16798
16799
16800eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16801shift
16802for ac_tag
16803do
16804 case $ac_tag in
16805 :[FHLC]) ac_mode=$ac_tag; continue;;
16806 esac
16807 case $ac_mode$ac_tag in
16808 :[FHL]*:*);;
16809 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
16810 :[FH]-) ac_tag=-:-;;
16811 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16812 esac
16813 ac_save_IFS=$IFS
16814 IFS=:
16815 set x $ac_tag
16816 IFS=$ac_save_IFS
16817 shift
16818 ac_file=$1
16819 shift
16820
16821 case $ac_mode in
16822 :L) ac_source=$1;;
16823 :[FH])
16824 ac_file_inputs=
16825 for ac_f
16826 do
16827 case $ac_f in
16828 -) ac_f="$tmp/stdin";;
16829 *) # Look for the file first in the build tree, then in the source tree
16830 # (if the path is not absolute). The absolute path cannot be DOS-style,
16831 # because $ac_f cannot contain `:'.
16832 test -f "$ac_f" ||
16833 case $ac_f in
16834 [\\/$]*) false;;
16835 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16836 esac ||
16837 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16838 esac
16839 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16840 as_fn_append ac_file_inputs " '$ac_f'"
16841 done
16842
16843 # Let's still pretend it is `configure' which instantiates (i.e., don't
16844 # use $as_me), people would be surprised to read:
16845 # /* config.h. Generated by config.status. */
16846 configure_input='Generated from '`
16847 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16848 `' by configure.'
16849 if test x"$ac_file" != x-; then
16850 configure_input="$ac_file. $configure_input"
16851 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16852$as_echo "$as_me: creating $ac_file" >&6;}
16853 fi
16854 # Neutralize special characters interpreted by sed in replacement strings.
16855 case $configure_input in #(
16856 *\&* | *\|* | *\\* )
16857 ac_sed_conf_input=`$as_echo "$configure_input" |
16858 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16859 *) ac_sed_conf_input=$configure_input;;
16860 esac
16861
16862 case $ac_tag in
16863 *:-:* | *:-) cat >"$tmp/stdin" \
16864 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
16865 esac
16866 ;;
252b5132
RH
16867 esac
16868
81ecdfbb 16869 ac_dir=`$as_dirname -- "$ac_file" ||
5464f5a1
NN
16870$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16871 X"$ac_file" : 'X\(//\)[^/]' \| \
16872 X"$ac_file" : 'X\(//\)$' \| \
81ecdfbb
RW
16873 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16874$as_echo X"$ac_file" |
16875 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16876 s//\1/
16877 q
16878 }
16879 /^X\(\/\/\)[^/].*/{
16880 s//\1/
16881 q
16882 }
16883 /^X\(\/\/\)$/{
16884 s//\1/
16885 q
16886 }
16887 /^X\(\/\).*/{
16888 s//\1/
16889 q
16890 }
16891 s/.*/./; q'`
16892 as_dir="$ac_dir"; as_fn_mkdir_p
5464f5a1
NN
16893 ac_builddir=.
16894
81ecdfbb
RW
16895case "$ac_dir" in
16896.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16897*)
16898 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16899 # A ".." for each directory in $ac_dir_suffix.
16900 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16901 case $ac_top_builddir_sub in
16902 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16903 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16904 esac ;;
16905esac
16906ac_abs_top_builddir=$ac_pwd
16907ac_abs_builddir=$ac_pwd$ac_dir_suffix
16908# for backward compatibility:
16909ac_top_builddir=$ac_top_build_prefix
252b5132 16910
5464f5a1 16911case $srcdir in
81ecdfbb 16912 .) # We are building in place.
5464f5a1 16913 ac_srcdir=.
81ecdfbb
RW
16914 ac_top_srcdir=$ac_top_builddir_sub
16915 ac_abs_top_srcdir=$ac_pwd ;;
16916 [\\/]* | ?:[\\/]* ) # Absolute name.
5464f5a1 16917 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
16918 ac_top_srcdir=$srcdir
16919 ac_abs_top_srcdir=$srcdir ;;
16920 *) # Relative name.
16921 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16922 ac_top_srcdir=$ac_top_build_prefix$srcdir
16923 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
5464f5a1 16924esac
81ecdfbb 16925ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
252b5132 16926
252b5132 16927
81ecdfbb
RW
16928 case $ac_mode in
16929 :F)
16930 #
16931 # CONFIG_FILE
16932 #
5464f5a1
NN
16933
16934 case $INSTALL in
16935 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
81ecdfbb
RW
16936 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16937 esac
16938 ac_MKDIR_P=$MKDIR_P
16939 case $MKDIR_P in
16940 [\\/$]* | ?:[\\/]* ) ;;
16941 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
6be7c12c 16942 esac
81ecdfbb 16943_ACEOF
252b5132 16944
81ecdfbb
RW
16945cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16946# If the template does not know about datarootdir, expand it.
16947# FIXME: This hack should be removed a few years after 2.60.
16948ac_datarootdir_hack=; ac_datarootdir_seen=
16949ac_sed_dataroot='
16950/datarootdir/ {
16951 p
16952 q
16953}
16954/@datadir@/p
16955/@docdir@/p
16956/@infodir@/p
16957/@localedir@/p
16958/@mandir@/p'
16959case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16960*datarootdir*) ac_datarootdir_seen=yes;;
16961*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16962 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16963$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16964_ACEOF
16965cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16966 ac_datarootdir_hack='
16967 s&@datadir@&$datadir&g
16968 s&@docdir@&$docdir&g
16969 s&@infodir@&$infodir&g
16970 s&@localedir@&$localedir&g
16971 s&@mandir@&$mandir&g
16972 s&\\\${datarootdir}&$datarootdir&g' ;;
16973esac
5464f5a1 16974_ACEOF
81ecdfbb
RW
16975
16976# Neutralize VPATH when `$srcdir' = `.'.
16977# Shell code in configure.ac might set extrasub.
16978# FIXME: do we really want to maintain this feature?
16979cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16980ac_sed_extra="$ac_vpsub
5464f5a1
NN
16981$extrasub
16982_ACEOF
81ecdfbb 16983cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5464f5a1
NN
16984:t
16985/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
81ecdfbb
RW
16986s|@configure_input@|$ac_sed_conf_input|;t t
16987s&@top_builddir@&$ac_top_builddir_sub&;t t
16988s&@top_build_prefix@&$ac_top_build_prefix&;t t
16989s&@srcdir@&$ac_srcdir&;t t
16990s&@abs_srcdir@&$ac_abs_srcdir&;t t
16991s&@top_srcdir@&$ac_top_srcdir&;t t
16992s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16993s&@builddir@&$ac_builddir&;t t
16994s&@abs_builddir@&$ac_abs_builddir&;t t
16995s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16996s&@INSTALL@&$ac_INSTALL&;t t
16997s&@MKDIR_P@&$ac_MKDIR_P&;t t
16998$ac_datarootdir_hack
16999"
17000eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
17001 || as_fn_error "could not create $ac_file" "$LINENO" 5
17002
17003test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17004 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
17005 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
17006 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17007which seems to be undefined. Please make sure it is defined." >&5
17008$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17009which seems to be undefined. Please make sure it is defined." >&2;}
17010
17011 rm -f "$tmp/stdin"
5464f5a1 17012 case $ac_file in
81ecdfbb
RW
17013 -) cat "$tmp/out" && rm -f "$tmp/out";;
17014 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
17015 esac \
17016 || as_fn_error "could not create $ac_file" "$LINENO" 5
17017 ;;
17018 :H)
17019 #
17020 # CONFIG_HEADER
17021 #
5464f5a1 17022 if test x"$ac_file" != x-; then
81ecdfbb
RW
17023 {
17024 $as_echo "/* $configure_input */" \
17025 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
17026 } >"$tmp/config.h" \
17027 || as_fn_error "could not create $ac_file" "$LINENO" 5
17028 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
17029 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17030$as_echo "$as_me: $ac_file is unchanged" >&6;}
5464f5a1 17031 else
81ecdfbb
RW
17032 rm -f "$ac_file"
17033 mv "$tmp/config.h" "$ac_file" \
17034 || as_fn_error "could not create $ac_file" "$LINENO" 5
252b5132 17035 fi
5464f5a1 17036 else
81ecdfbb
RW
17037 $as_echo "/* $configure_input */" \
17038 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
17039 || as_fn_error "could not create -" "$LINENO" 5
252b5132 17040 fi
81ecdfbb
RW
17041# Compute "$ac_file"'s index in $config_headers.
17042_am_arg="$ac_file"
f5385ebf
AM
17043_am_stamp_count=1
17044for _am_header in $config_headers :; do
17045 case $_am_header in
81ecdfbb 17046 $_am_arg | $_am_arg:* )
f5385ebf
AM
17047 break ;;
17048 * )
17049 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17050 esac
17051done
81ecdfbb
RW
17052echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17053$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17054 X"$_am_arg" : 'X\(//\)[^/]' \| \
17055 X"$_am_arg" : 'X\(//\)$' \| \
17056 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17057$as_echo X"$_am_arg" |
17058 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17059 s//\1/
17060 q
17061 }
17062 /^X\(\/\/\)[^/].*/{
17063 s//\1/
17064 q
17065 }
17066 /^X\(\/\/\)$/{
17067 s//\1/
17068 q
17069 }
17070 /^X\(\/\).*/{
17071 s//\1/
17072 q
17073 }
17074 s/.*/./; q'`/stamp-h$_am_stamp_count
17075 ;;
5464f5a1 17076
81ecdfbb
RW
17077 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17078$as_echo "$as_me: executing $ac_file commands" >&6;}
17079 ;;
17080 esac
5464f5a1
NN
17081
17082
81ecdfbb
RW
17083 case $ac_file$ac_mode in
17084 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17085 # Autoconf 2.62 quotes --file arguments for eval, but not when files
17086 # are listed without --file. Let's play safe and only enable the eval
17087 # if we detect the quoting.
17088 case $CONFIG_FILES in
17089 *\'*) eval set x "$CONFIG_FILES" ;;
17090 *) set x $CONFIG_FILES ;;
17091 esac
17092 shift
17093 for mf
17094 do
17095 # Strip MF so we end up with the name of the file.
17096 mf=`echo "$mf" | sed -e 's/:.*$//'`
17097 # Check whether this is an Automake generated Makefile or not.
17098 # We used to match only the files named `Makefile.in', but
17099 # some people rename them; so instead we look at the file content.
17100 # Grep'ing the first line is not enough: some people post-process
17101 # each Makefile.in and add a new line on top of each file to say so.
17102 # Grep'ing the whole file is not good either: AIX grep has a line
17103 # limit of 2048, but all sed's we know have understand at least 4000.
17104 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17105 dirpart=`$as_dirname -- "$mf" ||
f5385ebf
AM
17106$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17107 X"$mf" : 'X\(//\)[^/]' \| \
17108 X"$mf" : 'X\(//\)$' \| \
81ecdfbb
RW
17109 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17110$as_echo X"$mf" |
17111 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17112 s//\1/
17113 q
17114 }
17115 /^X\(\/\/\)[^/].*/{
17116 s//\1/
17117 q
17118 }
17119 /^X\(\/\/\)$/{
17120 s//\1/
17121 q
17122 }
17123 /^X\(\/\).*/{
17124 s//\1/
17125 q
17126 }
17127 s/.*/./; q'`
17128 else
17129 continue
17130 fi
17131 # Extract the definition of DEPDIR, am__include, and am__quote
17132 # from the Makefile without running `make'.
17133 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17134 test -z "$DEPDIR" && continue
17135 am__include=`sed -n 's/^am__include = //p' < "$mf"`
17136 test -z "am__include" && continue
17137 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17138 # When using ansi2knr, U may be empty or an underscore; expand it
17139 U=`sed -n 's/^U = //p' < "$mf"`
17140 # Find all dependency output files, they are included files with
17141 # $(DEPDIR) in their names. We invoke sed twice because it is the
17142 # simplest approach to changing $(DEPDIR) to its actual value in the
17143 # expansion.
17144 for file in `sed -n "
17145 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17146 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17147 # Make sure the directory exists.
17148 test -f "$dirpart/$file" && continue
17149 fdir=`$as_dirname -- "$file" ||
f5385ebf
AM
17150$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17151 X"$file" : 'X\(//\)[^/]' \| \
17152 X"$file" : 'X\(//\)$' \| \
81ecdfbb
RW
17153 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17154$as_echo X"$file" |
17155 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17156 s//\1/
17157 q
17158 }
17159 /^X\(\/\/\)[^/].*/{
17160 s//\1/
17161 q
17162 }
17163 /^X\(\/\/\)$/{
17164 s//\1/
17165 q
17166 }
17167 /^X\(\/\).*/{
17168 s//\1/
17169 q
17170 }
17171 s/.*/./; q'`
17172 as_dir=$dirpart/$fdir; as_fn_mkdir_p
17173 # echo "creating $dirpart/$file"
17174 echo '# dummy' > "$dirpart/$file"
f5385ebf 17175 done
f5385ebf 17176 done
81ecdfbb 17177}
d7040cdb 17178 ;;
81ecdfbb 17179 "libtool":C)
d7040cdb
SE
17180
17181 # See if we are running on zsh, and set the options which allow our
17182 # commands through without removal of \ escapes.
17183 if test -n "${ZSH_VERSION+set}" ; then
17184 setopt NO_GLOB_SUBST
17185 fi
17186
17187 cfgfile="${ofile}T"
17188 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17189 $RM "$cfgfile"
17190
17191 cat <<_LT_EOF >> "$cfgfile"
17192#! $SHELL
17193
17194# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
718a6fd8 17195# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
d7040cdb
SE
17196# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17197# NOTE: Changes made to this file will be lost: look at ltmain.sh.
17198#
718a6fd8
SE
17199# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17200# 2006, 2007, 2008 Free Software Foundation, Inc.
17201# Written by Gordon Matzigkeit, 1996
d7040cdb 17202#
718a6fd8 17203# This file is part of GNU Libtool.
d7040cdb 17204#
718a6fd8
SE
17205# GNU Libtool is free software; you can redistribute it and/or
17206# modify it under the terms of the GNU General Public License as
17207# published by the Free Software Foundation; either version 2 of
17208# the License, or (at your option) any later version.
d7040cdb 17209#
718a6fd8
SE
17210# As a special exception to the GNU General Public License,
17211# if you distribute this file as part of a program or library that
17212# is built using GNU Libtool, you may include this file under the
17213# same distribution terms that you use for the rest of that program.
d7040cdb 17214#
718a6fd8
SE
17215# GNU Libtool is distributed in the hope that it will be useful,
17216# but WITHOUT ANY WARRANTY; without even the implied warranty of
17217# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17218# GNU General Public License for more details.
d7040cdb 17219#
718a6fd8
SE
17220# You should have received a copy of the GNU General Public License
17221# along with GNU Libtool; see the file COPYING. If not, a copy
17222# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17223# obtained by writing to the Free Software Foundation, Inc.,
17224# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
d7040cdb
SE
17225
17226
17227# The names of the tagged configurations supported by this script.
17228available_tags=""
17229
17230# ### BEGIN LIBTOOL CONFIG
17231
17232# Whether or not to build shared libraries.
17233build_libtool_libs=$enable_shared
17234
17235# Which release of libtool.m4 was used?
17236macro_version=$macro_version
17237macro_revision=$macro_revision
17238
17239# Whether or not to build static libraries.
17240build_old_libs=$enable_static
17241
17242# What type of objects to build.
17243pic_mode=$pic_mode
17244
17245# Whether or not to optimize for fast installation.
17246fast_install=$enable_fast_install
17247
17248# The host system.
17249host_alias=$host_alias
17250host=$host
17251host_os=$host_os
17252
17253# The build system.
17254build_alias=$build_alias
17255build=$build
17256build_os=$build_os
17257
17258# A sed program that does not truncate output.
17259SED=$lt_SED
17260
17261# Sed that helps us avoid accidentally triggering echo(1) options like -n.
17262Xsed="\$SED -e 1s/^X//"
17263
17264# A grep program that handles long lines.
17265GREP=$lt_GREP
17266
17267# An ERE matcher.
17268EGREP=$lt_EGREP
17269
17270# A literal string matcher.
17271FGREP=$lt_FGREP
17272
17273# A BSD- or MS-compatible name lister.
17274NM=$lt_NM
17275
17276# Whether we need soft or hard links.
17277LN_S=$lt_LN_S
17278
17279# What is the maximum length of a command?
17280max_cmd_len=$max_cmd_len
17281
17282# Object file suffix (normally "o").
17283objext=$ac_objext
17284
17285# Executable file suffix (normally "").
17286exeext=$exeext
17287
17288# whether the shell understands "unset".
17289lt_unset=$lt_unset
17290
17291# turn spaces into newlines.
17292SP2NL=$lt_lt_SP2NL
17293
17294# turn newlines into spaces.
17295NL2SP=$lt_lt_NL2SP
17296
17297# How to create reloadable object files.
17298reload_flag=$lt_reload_flag
17299reload_cmds=$lt_reload_cmds
17300
718a6fd8
SE
17301# An object symbol dumper.
17302OBJDUMP=$lt_OBJDUMP
17303
d7040cdb
SE
17304# Method to check whether dependent libraries are shared objects.
17305deplibs_check_method=$lt_deplibs_check_method
17306
17307# Command to use when deplibs_check_method == "file_magic".
17308file_magic_cmd=$lt_file_magic_cmd
17309
17310# The archiver.
17311AR=$lt_AR
17312AR_FLAGS=$lt_AR_FLAGS
17313
17314# A symbol stripping program.
17315STRIP=$lt_STRIP
17316
17317# Commands used to install an old-style archive.
17318RANLIB=$lt_RANLIB
17319old_postinstall_cmds=$lt_old_postinstall_cmds
17320old_postuninstall_cmds=$lt_old_postuninstall_cmds
17321
17322# A C compiler.
17323LTCC=$lt_CC
17324
17325# LTCC compiler flags.
17326LTCFLAGS=$lt_CFLAGS
17327
17328# Take the output of nm and produce a listing of raw symbols and C names.
17329global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17330
17331# Transform the output of nm in a proper C declaration.
17332global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17333
17334# Transform the output of nm in a C name address pair.
17335global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17336
718a6fd8
SE
17337# Transform the output of nm in a C name address pair when lib prefix is needed.
17338global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17339
d7040cdb
SE
17340# The name of the directory that contains temporary libtool files.
17341objdir=$objdir
17342
17343# Shell to use when invoking shell scripts.
17344SHELL=$lt_SHELL
17345
17346# An echo program that does not interpret backslashes.
17347ECHO=$lt_ECHO
17348
17349# Used to examine libraries when file_magic_cmd begins with "file".
17350MAGIC_CMD=$MAGIC_CMD
17351
17352# Must we lock files when doing compilation?
17353need_locks=$lt_need_locks
17354
718a6fd8
SE
17355# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17356DSYMUTIL=$lt_DSYMUTIL
17357
17358# Tool to change global to local symbols on Mac OS X.
17359NMEDIT=$lt_NMEDIT
17360
17361# Tool to manipulate fat objects and archives on Mac OS X.
17362LIPO=$lt_LIPO
17363
17364# ldd/readelf like tool for Mach-O binaries on Mac OS X.
17365OTOOL=$lt_OTOOL
17366
17367# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17368OTOOL64=$lt_OTOOL64
17369
d7040cdb
SE
17370# Old archive suffix (normally "a").
17371libext=$libext
17372
17373# Shared library suffix (normally ".so").
17374shrext_cmds=$lt_shrext_cmds
17375
17376# The commands to extract the exported symbol list from a shared archive.
17377extract_expsyms_cmds=$lt_extract_expsyms_cmds
17378
17379# Variables whose values should be saved in libtool wrapper scripts and
17380# restored at link time.
17381variables_saved_for_relink=$lt_variables_saved_for_relink
17382
17383# Do we need the "lib" prefix for modules?
17384need_lib_prefix=$need_lib_prefix
17385
17386# Do we need a version for libraries?
17387need_version=$need_version
17388
17389# Library versioning type.
17390version_type=$version_type
17391
17392# Shared library runtime path variable.
17393runpath_var=$runpath_var
17394
17395# Shared library path variable.
17396shlibpath_var=$shlibpath_var
17397
17398# Is shlibpath searched before the hard-coded library search path?
17399shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17400
17401# Format of library name prefix.
17402libname_spec=$lt_libname_spec
17403
17404# List of archive names. First name is the real one, the rest are links.
17405# The last name is the one that the linker finds with -lNAME
17406library_names_spec=$lt_library_names_spec
17407
17408# The coded name of the library, if different from the real name.
17409soname_spec=$lt_soname_spec
17410
17411# Command to use after installation of a shared archive.
17412postinstall_cmds=$lt_postinstall_cmds
17413
17414# Command to use after uninstallation of a shared archive.
17415postuninstall_cmds=$lt_postuninstall_cmds
17416
17417# Commands used to finish a libtool library installation in a directory.
17418finish_cmds=$lt_finish_cmds
17419
17420# As "finish_cmds", except a single script fragment to be evaled but
17421# not shown.
17422finish_eval=$lt_finish_eval
17423
17424# Whether we should hardcode library paths into libraries.
17425hardcode_into_libs=$hardcode_into_libs
17426
17427# Compile-time system search path for libraries.
17428sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17429
17430# Run-time system search path for libraries.
17431sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17432
17433# Whether dlopen is supported.
17434dlopen_support=$enable_dlopen
17435
17436# Whether dlopen of programs is supported.
17437dlopen_self=$enable_dlopen_self
17438
17439# Whether dlopen of statically linked programs is supported.
17440dlopen_self_static=$enable_dlopen_self_static
17441
17442# Commands to strip libraries.
17443old_striplib=$lt_old_striplib
17444striplib=$lt_striplib
17445
17446
17447# The linker used to build libraries.
17448LD=$lt_LD
17449
17450# Commands used to build an old-style archive.
17451old_archive_cmds=$lt_old_archive_cmds
17452
17453# A language specific compiler.
17454CC=$lt_compiler
17455
17456# Is the compiler the GNU compiler?
17457with_gcc=$GCC
17458
17459# Compiler flag to turn off builtin functions.
17460no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17461
17462# How to pass a linker flag through the compiler.
17463wl=$lt_lt_prog_compiler_wl
17464
17465# Additional compiler flags for building library objects.
17466pic_flag=$lt_lt_prog_compiler_pic
17467
17468# Compiler flag to prevent dynamic linking.
17469link_static_flag=$lt_lt_prog_compiler_static
17470
17471# Does compiler simultaneously support -c and -o options?
17472compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17473
17474# Whether or not to add -lc for building shared libraries.
17475build_libtool_need_lc=$archive_cmds_need_lc
17476
17477# Whether or not to disallow shared libs when runtime libs are static.
17478allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17479
17480# Compiler flag to allow reflexive dlopens.
17481export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17482
17483# Compiler flag to generate shared objects directly from archives.
17484whole_archive_flag_spec=$lt_whole_archive_flag_spec
17485
17486# Whether the compiler copes with passing no objects directly.
17487compiler_needs_object=$lt_compiler_needs_object
17488
17489# Create an old-style archive from a shared archive.
17490old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17491
17492# Create a temporary old-style archive to link instead of a shared archive.
17493old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17494
17495# Commands used to build a shared archive.
17496archive_cmds=$lt_archive_cmds
17497archive_expsym_cmds=$lt_archive_expsym_cmds
17498
17499# Commands used to build a loadable module if different from building
17500# a shared archive.
17501module_cmds=$lt_module_cmds
17502module_expsym_cmds=$lt_module_expsym_cmds
17503
17504# Whether we are building with GNU ld or not.
17505with_gnu_ld=$lt_with_gnu_ld
17506
17507# Flag that allows shared libraries with undefined symbols to be built.
17508allow_undefined_flag=$lt_allow_undefined_flag
17509
17510# Flag that enforces no undefined symbols.
17511no_undefined_flag=$lt_no_undefined_flag
17512
17513# Flag to hardcode \$libdir into a binary during linking.
17514# This must work even if \$libdir does not exist
17515hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17516
17517# If ld is used when linking, flag to hardcode \$libdir into a binary
17518# during linking. This must work even if \$libdir does not exist.
17519hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17520
17521# Whether we need a single "-rpath" flag with a separated argument.
17522hardcode_libdir_separator=$lt_hardcode_libdir_separator
17523
17524# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17525# DIR into the resulting binary.
17526hardcode_direct=$hardcode_direct
17527
17528# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17529# DIR into the resulting binary and the resulting library dependency is
17530# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17531# library is relocated.
17532hardcode_direct_absolute=$hardcode_direct_absolute
17533
17534# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17535# into the resulting binary.
17536hardcode_minus_L=$hardcode_minus_L
17537
17538# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17539# into the resulting binary.
17540hardcode_shlibpath_var=$hardcode_shlibpath_var
17541
17542# Set to "yes" if building a shared library automatically hardcodes DIR
17543# into the library and all subsequent libraries and executables linked
17544# against it.
17545hardcode_automatic=$hardcode_automatic
17546
17547# Set to yes if linker adds runtime paths of dependent libraries
17548# to runtime path list.
17549inherit_rpath=$inherit_rpath
17550
17551# Whether libtool must link a program against all its dependency libraries.
17552link_all_deplibs=$link_all_deplibs
17553
17554# Fix the shell variable \$srcfile for the compiler.
17555fix_srcfile_path=$lt_fix_srcfile_path
17556
17557# Set to "yes" if exported symbols are required.
17558always_export_symbols=$always_export_symbols
17559
17560# The commands to list exported symbols.
17561export_symbols_cmds=$lt_export_symbols_cmds
17562
17563# Symbols that should not be listed in the preloaded symbols.
17564exclude_expsyms=$lt_exclude_expsyms
17565
17566# Symbols that must always be exported.
17567include_expsyms=$lt_include_expsyms
17568
17569# Commands necessary for linking programs (against libraries) with templates.
17570prelink_cmds=$lt_prelink_cmds
17571
17572# Specify filename containing input files.
17573file_list_spec=$lt_file_list_spec
17574
17575# How to hardcode a shared library path into an executable.
17576hardcode_action=$hardcode_action
17577
17578# ### END LIBTOOL CONFIG
17579
17580_LT_EOF
17581
17582 case $host_os in
17583 aix3*)
17584 cat <<\_LT_EOF >> "$cfgfile"
17585# AIX sometimes has problems with the GCC collect2 program. For some
17586# reason, if we set the COLLECT_NAMES environment variable, the problems
17587# vanish in a puff of smoke.
17588if test "X${COLLECT_NAMES+set}" != Xset; then
17589 COLLECT_NAMES=
17590 export COLLECT_NAMES
17591fi
17592_LT_EOF
17593 ;;
17594 esac
17595
17596
17597ltmain="$ac_aux_dir/ltmain.sh"
17598
17599
17600 # We use sed instead of cat because bash on DJGPP gets confused if
17601 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17602 # text mode, it properly converts lines to CR/LF. This bash problem
17603 # is reportedly fixed, but why not run on old versions too?
17604 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
17605 || (rm -f "$cfgfile"; exit 1)
17606
17607 case $xsi_shell in
17608 yes)
17609 cat << \_LT_EOF >> "$cfgfile"
718a6fd8 17610
d7040cdb
SE
17611# func_dirname file append nondir_replacement
17612# Compute the dirname of FILE. If nonempty, add APPEND to the result,
17613# otherwise set result to NONDIR_REPLACEMENT.
17614func_dirname ()
17615{
17616 case ${1} in
17617 */*) func_dirname_result="${1%/*}${2}" ;;
17618 * ) func_dirname_result="${3}" ;;
17619 esac
17620}
17621
17622# func_basename file
17623func_basename ()
17624{
17625 func_basename_result="${1##*/}"
17626}
17627
718a6fd8
SE
17628# func_dirname_and_basename file append nondir_replacement
17629# perform func_basename and func_dirname in a single function
17630# call:
17631# dirname: Compute the dirname of FILE. If nonempty,
17632# add APPEND to the result, otherwise set result
17633# to NONDIR_REPLACEMENT.
17634# value returned in "$func_dirname_result"
17635# basename: Compute filename of FILE.
17636# value retuned in "$func_basename_result"
17637# Implementation must be kept synchronized with func_dirname
17638# and func_basename. For efficiency, we do not delegate to
17639# those functions but instead duplicate the functionality here.
17640func_dirname_and_basename ()
17641{
17642 case ${1} in
17643 */*) func_dirname_result="${1%/*}${2}" ;;
17644 * ) func_dirname_result="${3}" ;;
17645 esac
17646 func_basename_result="${1##*/}"
17647}
17648
d7040cdb
SE
17649# func_stripname prefix suffix name
17650# strip PREFIX and SUFFIX off of NAME.
17651# PREFIX and SUFFIX must not contain globbing or regex special
17652# characters, hashes, percent signs, but SUFFIX may contain a leading
17653# dot (in which case that matches only a dot).
17654func_stripname ()
17655{
17656 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
17657 # positional parameters, so assign one to ordinary parameter first.
17658 func_stripname_result=${3}
17659 func_stripname_result=${func_stripname_result#"${1}"}
17660 func_stripname_result=${func_stripname_result%"${2}"}
17661}
17662
17663# func_opt_split
17664func_opt_split ()
17665{
17666 func_opt_split_opt=${1%%=*}
17667 func_opt_split_arg=${1#*=}
17668}
17669
17670# func_lo2o object
17671func_lo2o ()
17672{
17673 case ${1} in
17674 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
17675 *) func_lo2o_result=${1} ;;
17676 esac
17677}
718a6fd8
SE
17678
17679# func_xform libobj-or-source
17680func_xform ()
17681{
17682 func_xform_result=${1%.*}.lo
17683}
17684
17685# func_arith arithmetic-term...
17686func_arith ()
17687{
17688 func_arith_result=$(( $* ))
17689}
17690
17691# func_len string
17692# STRING may not start with a hyphen.
17693func_len ()
17694{
17695 func_len_result=${#1}
17696}
17697
d7040cdb
SE
17698_LT_EOF
17699 ;;
17700 *) # Bourne compatible functions.
17701 cat << \_LT_EOF >> "$cfgfile"
718a6fd8 17702
d7040cdb
SE
17703# func_dirname file append nondir_replacement
17704# Compute the dirname of FILE. If nonempty, add APPEND to the result,
17705# otherwise set result to NONDIR_REPLACEMENT.
17706func_dirname ()
17707{
17708 # Extract subdirectory from the argument.
17709 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
17710 if test "X$func_dirname_result" = "X${1}"; then
17711 func_dirname_result="${3}"
17712 else
17713 func_dirname_result="$func_dirname_result${2}"
17714 fi
17715}
17716
17717# func_basename file
17718func_basename ()
17719{
17720 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
17721}
17722
718a6fd8 17723
d7040cdb
SE
17724# func_stripname prefix suffix name
17725# strip PREFIX and SUFFIX off of NAME.
17726# PREFIX and SUFFIX must not contain globbing or regex special
17727# characters, hashes, percent signs, but SUFFIX may contain a leading
17728# dot (in which case that matches only a dot).
17729# func_strip_suffix prefix name
17730func_stripname ()
17731{
17732 case ${2} in
17733 .*) func_stripname_result=`$ECHO "X${3}" \
17734 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
17735 *) func_stripname_result=`$ECHO "X${3}" \
17736 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
17737 esac
17738}
17739
17740# sed scripts:
17741my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
17742my_sed_long_arg='1s/^-[^=]*=//'
17743
17744# func_opt_split
17745func_opt_split ()
17746{
17747 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
17748 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
17749}
17750
17751# func_lo2o object
17752func_lo2o ()
17753{
17754 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
17755}
718a6fd8
SE
17756
17757# func_xform libobj-or-source
17758func_xform ()
17759{
17760 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
17761}
17762
17763# func_arith arithmetic-term...
17764func_arith ()
17765{
17766 func_arith_result=`expr "$@"`
17767}
17768
17769# func_len string
17770# STRING may not start with a hyphen.
17771func_len ()
17772{
17773 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
17774}
17775
d7040cdb
SE
17776_LT_EOF
17777esac
17778
17779case $lt_shell_append in
17780 yes)
17781 cat << \_LT_EOF >> "$cfgfile"
17782
17783# func_append var value
17784# Append VALUE to the end of shell variable VAR.
17785func_append ()
17786{
17787 eval "$1+=\$2"
17788}
17789_LT_EOF
17790 ;;
17791 *)
17792 cat << \_LT_EOF >> "$cfgfile"
17793
17794# func_append var value
17795# Append VALUE to the end of shell variable VAR.
17796func_append ()
17797{
17798 eval "$1=\$$1\$2"
17799}
718a6fd8 17800
d7040cdb
SE
17801_LT_EOF
17802 ;;
17803 esac
17804
17805
17806 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
17807 || (rm -f "$cfgfile"; exit 1)
17808
17809 mv -f "$cfgfile" "$ofile" ||
17810 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17811 chmod +x "$ofile"
17812
f5385ebf 17813 ;;
81ecdfbb 17814 "default-1":C)
20e95c23
DJ
17815 for ac_file in $CONFIG_FILES; do
17816 # Support "outfile[:infile[:infile...]]"
17817 case "$ac_file" in
17818 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
17819 esac
17820 # PO directories have a Makefile.in generated from Makefile.in.in.
17821 case "$ac_file" in */Makefile.in)
17822 # Adjust a relative srcdir.
17823 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
17824 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
17825 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
17826 # In autoconf-2.13 it is called $ac_given_srcdir.
17827 # In autoconf-2.50 it is called $srcdir.
17828 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
17829 case "$ac_given_srcdir" in
17830 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
17831 /*) top_srcdir="$ac_given_srcdir" ;;
17832 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
17833 esac
17834 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
17835 rm -f "$ac_dir/POTFILES"
17836 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
17837 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
17838 POMAKEFILEDEPS="POTFILES.in"
17839 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
17840 # on $ac_dir but don't depend on user-specified configuration
17841 # parameters.
17842 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
17843 # The LINGUAS file contains the set of available languages.
17844 if test -n "$OBSOLETE_ALL_LINGUAS"; then
17845 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
17846 fi
17847 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
17848 # Hide the ALL_LINGUAS assigment from automake.
17849 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
17850 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
17851 else
17852 # The set of available languages was given in configure.in.
17853 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
17854 fi
17855 case "$ac_given_srcdir" in
17856 .) srcdirpre= ;;
17857 *) srcdirpre='$(srcdir)/' ;;
17858 esac
17859 POFILES=
17860 GMOFILES=
17861 UPDATEPOFILES=
17862 DUMMYPOFILES=
17863 for lang in $ALL_LINGUAS; do
17864 POFILES="$POFILES $srcdirpre$lang.po"
17865 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
17866 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
17867 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
17868 done
17869 # CATALOGS depends on both $ac_dir and the user's LINGUAS
17870 # environment variable.
17871 INST_LINGUAS=
17872 if test -n "$ALL_LINGUAS"; then
17873 for presentlang in $ALL_LINGUAS; do
17874 useit=no
17875 if test "%UNSET%" != "$LINGUAS"; then
17876 desiredlanguages="$LINGUAS"
17877 else
17878 desiredlanguages="$ALL_LINGUAS"
17879 fi
17880 for desiredlang in $desiredlanguages; do
17881 # Use the presentlang catalog if desiredlang is
17882 # a. equal to presentlang, or
17883 # b. a variant of presentlang (because in this case,
17884 # presentlang can be used as a fallback for messages
17885 # which are not translated in the desiredlang catalog).
17886 case "$desiredlang" in
17887 "$presentlang"*) useit=yes;;
17888 esac
17889 done
17890 if test $useit = yes; then
17891 INST_LINGUAS="$INST_LINGUAS $presentlang"
17892 fi
17893 done
17894 fi
17895 CATALOGS=
17896 if test -n "$INST_LINGUAS"; then
17897 for lang in $INST_LINGUAS; do
17898 CATALOGS="$CATALOGS $lang.gmo"
17899 done
17900 fi
17901 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
17902 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"
17903 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
17904 if test -f "$f"; then
17905 case "$f" in
17906 *.orig | *.bak | *~) ;;
17907 *) cat "$f" >> "$ac_dir/Makefile" ;;
17908 esac
17909 fi
17910 done
17911 fi
17912 ;;
17913 esac
17914 done ;;
81ecdfbb 17915 "bfd_stdint.h":C)
f3b4f6d0
PB
17916if test "$GCC" = yes; then
17917 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
17918else
17919 echo "/* generated for $CC */" > tmp-stdint.h
17920fi
d5efd9fc 17921
f3b4f6d0
PB
17922sed 's/^ *//' >> tmp-stdint.h <<EOF
17923
17924 #ifndef GCC_GENERATED_STDINT_H
17925 #define GCC_GENERATED_STDINT_H 1
17926
17927 #include <sys/types.h>
17928EOF
17929
17930if test "$acx_cv_header_stdint" != stdint.h; then
17931 echo "#include <stddef.h>" >> tmp-stdint.h
17932fi
17933if test "$acx_cv_header_stdint" != stddef.h; then
17934 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
17935fi
17936
17937sed 's/^ *//' >> tmp-stdint.h <<EOF
17938 /* glibc uses these symbols as guards to prevent redefinitions. */
17939 #ifdef __int8_t_defined
17940 #define _INT8_T
17941 #define _INT16_T
17942 #define _INT32_T
17943 #endif
17944 #ifdef __uint32_t_defined
17945 #define _UINT32_T
17946 #endif
17947
17948EOF
17949
17950# ----------------- done header, emit basic int types -------------
17951if test "$acx_cv_header_stdint" = stddef.h; then
17952 sed 's/^ *//' >> tmp-stdint.h <<EOF
17953
17954 #ifndef _UINT8_T
17955 #define _UINT8_T
17956 #ifndef __uint8_t_defined
17957 #define __uint8_t_defined
17958 typedef unsigned $acx_cv_type_int8_t uint8_t;
17959 #endif
17960 #endif
17961
17962 #ifndef _UINT16_T
17963 #define _UINT16_T
17964 #ifndef __uint16_t_defined
17965 #define __uint16_t_defined
17966 typedef unsigned $acx_cv_type_int16_t uint16_t;
17967 #endif
17968 #endif
17969
17970 #ifndef _UINT32_T
17971 #define _UINT32_T
17972 #ifndef __uint32_t_defined
17973 #define __uint32_t_defined
17974 typedef unsigned $acx_cv_type_int32_t uint32_t;
17975 #endif
17976 #endif
17977
17978 #ifndef _INT8_T
17979 #define _INT8_T
17980 #ifndef __int8_t_defined
17981 #define __int8_t_defined
17982 typedef $acx_cv_type_int8_t int8_t;
17983 #endif
17984 #endif
17985
17986 #ifndef _INT16_T
17987 #define _INT16_T
17988 #ifndef __int16_t_defined
17989 #define __int16_t_defined
17990 typedef $acx_cv_type_int16_t int16_t;
17991 #endif
17992 #endif
17993
17994 #ifndef _INT32_T
17995 #define _INT32_T
17996 #ifndef __int32_t_defined
17997 #define __int32_t_defined
17998 typedef $acx_cv_type_int32_t int32_t;
17999 #endif
18000 #endif
18001EOF
18002elif test "$ac_cv_type_u_int32_t" = yes; then
18003 sed 's/^ *//' >> tmp-stdint.h <<EOF
18004
18005 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
18006 #ifndef _INT8_T
18007 #define _INT8_T
18008 #endif
18009 #ifndef _INT16_T
18010 #define _INT16_T
18011 #endif
18012 #ifndef _INT32_T
18013 #define _INT32_T
18014 #endif
18015
18016 #ifndef _UINT8_T
18017 #define _UINT8_T
18018 #ifndef __uint8_t_defined
18019 #define __uint8_t_defined
18020 typedef u_int8_t uint8_t;
18021 #endif
18022 #endif
18023
18024 #ifndef _UINT16_T
18025 #define _UINT16_T
18026 #ifndef __uint16_t_defined
18027 #define __uint16_t_defined
18028 typedef u_int16_t uint16_t;
18029 #endif
18030 #endif
18031
18032 #ifndef _UINT32_T
18033 #define _UINT32_T
18034 #ifndef __uint32_t_defined
18035 #define __uint32_t_defined
18036 typedef u_int32_t uint32_t;
18037 #endif
18038 #endif
d5efd9fc 18039EOF
f3b4f6d0
PB
18040else
18041 sed 's/^ *//' >> tmp-stdint.h <<EOF
18042
18043 /* Some systems have guard macros to prevent redefinitions, define them. */
18044 #ifndef _INT8_T
18045 #define _INT8_T
18046 #endif
18047 #ifndef _INT16_T
18048 #define _INT16_T
18049 #endif
18050 #ifndef _INT32_T
18051 #define _INT32_T
18052 #endif
18053 #ifndef _UINT8_T
18054 #define _UINT8_T
18055 #endif
18056 #ifndef _UINT16_T
18057 #define _UINT16_T
18058 #endif
18059 #ifndef _UINT32_T
18060 #define _UINT32_T
18061 #endif
18062EOF
18063fi
18064
18065# ------------- done basic int types, emit int64_t types ------------
18066if test "$ac_cv_type_uint64_t" = yes; then
18067 sed 's/^ *//' >> tmp-stdint.h <<EOF
d5efd9fc 18068
f3b4f6d0
PB
18069 /* system headers have good uint64_t and int64_t */
18070 #ifndef _INT64_T
18071 #define _INT64_T
18072 #endif
18073 #ifndef _UINT64_T
18074 #define _UINT64_T
18075 #endif
18076EOF
18077elif test "$ac_cv_type_u_int64_t" = yes; then
18078 sed 's/^ *//' >> tmp-stdint.h <<EOF
18079
18080 /* system headers have an u_int64_t (and int64_t) */
18081 #ifndef _INT64_T
18082 #define _INT64_T
18083 #endif
18084 #ifndef _UINT64_T
18085 #define _UINT64_T
18086 #ifndef __uint64_t_defined
18087 #define __uint64_t_defined
18088 typedef u_int64_t uint64_t;
18089 #endif
18090 #endif
18091EOF
18092elif test -n "$acx_cv_type_int64_t"; then
18093 sed 's/^ *//' >> tmp-stdint.h <<EOF
18094
18095 /* architecture has a 64-bit type, $acx_cv_type_int64_t */
18096 #ifndef _INT64_T
18097 #define _INT64_T
18098 typedef $acx_cv_type_int64_t int64_t;
18099 #endif
18100 #ifndef _UINT64_T
18101 #define _UINT64_T
18102 #ifndef __uint64_t_defined
18103 #define __uint64_t_defined
18104 typedef unsigned $acx_cv_type_int64_t uint64_t;
18105 #endif
18106 #endif
18107EOF
18108else
18109 sed 's/^ *//' >> tmp-stdint.h <<EOF
18110
18111 /* some common heuristics for int64_t, using compiler-specific tests */
18112 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
18113 #ifndef _INT64_T
18114 #define _INT64_T
18115 #ifndef __int64_t_defined
18116 typedef long long int64_t;
18117 #endif
18118 #endif
18119 #ifndef _UINT64_T
18120 #define _UINT64_T
18121 typedef unsigned long long uint64_t;
18122 #endif
18123
18124 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
18125 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
18126 does not implement __extension__. But that compiler doesn't define
18127 __GNUC_MINOR__. */
18128 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
18129 # define __extension__
18130 # endif
18131
18132 # ifndef _INT64_T
18133 # define _INT64_T
18134 __extension__ typedef long long int64_t;
18135 # endif
18136 # ifndef _UINT64_T
18137 # define _UINT64_T
18138 __extension__ typedef unsigned long long uint64_t;
18139 # endif
18140
18141 #elif !defined __STRICT_ANSI__
18142 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
18143
18144 # ifndef _INT64_T
18145 # define _INT64_T
18146 typedef __int64 int64_t;
18147 # endif
18148 # ifndef _UINT64_T
18149 # define _UINT64_T
18150 typedef unsigned __int64 uint64_t;
18151 # endif
18152 # endif /* compiler */
18153
18154 #endif /* ANSI version */
18155EOF
18156fi
18157
18158# ------------- done int64_t types, emit intptr types ------------
18159if test "$ac_cv_type_uintptr_t" != yes; then
18160 sed 's/^ *//' >> tmp-stdint.h <<EOF
18161
18162 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
18163 #ifndef __uintptr_t_defined
18164 typedef u$acx_cv_type_intptr_t uintptr_t;
18165 #endif
18166 #ifndef __intptr_t_defined
18167 typedef $acx_cv_type_intptr_t intptr_t;
18168 #endif
18169EOF
18170fi
18171
18172# ------------- done intptr types, emit int_least types ------------
d5efd9fc 18173if test "$ac_cv_type_int_least32_t" != yes; then
f3b4f6d0 18174 sed 's/^ *//' >> tmp-stdint.h <<EOF
d5efd9fc
AM
18175
18176 /* Define int_least types */
18177 typedef int8_t int_least8_t;
18178 typedef int16_t int_least16_t;
18179 typedef int32_t int_least32_t;
f3b4f6d0 18180 #ifdef _INT64_T
d5efd9fc 18181 typedef int64_t int_least64_t;
f3b4f6d0 18182 #endif
d5efd9fc
AM
18183
18184 typedef uint8_t uint_least8_t;
18185 typedef uint16_t uint_least16_t;
18186 typedef uint32_t uint_least32_t;
f3b4f6d0 18187 #ifdef _UINT64_T
d5efd9fc 18188 typedef uint64_t uint_least64_t;
f3b4f6d0 18189 #endif
d5efd9fc
AM
18190EOF
18191fi
18192
f3b4f6d0 18193# ------------- done intptr types, emit int_fast types ------------
d5efd9fc 18194if test "$ac_cv_type_int_fast32_t" != yes; then
f3b4f6d0 18195 sed 's/^ *//' >> tmp-stdint.h <<EOF
d5efd9fc
AM
18196
18197 /* Define int_fast types. short is often slow */
18198 typedef int8_t int_fast8_t;
18199 typedef int int_fast16_t;
18200 typedef int32_t int_fast32_t;
f3b4f6d0 18201 #ifdef _INT64_T
d5efd9fc 18202 typedef int64_t int_fast64_t;
f3b4f6d0 18203 #endif
d5efd9fc
AM
18204
18205 typedef uint8_t uint_fast8_t;
18206 typedef unsigned int uint_fast16_t;
18207 typedef uint32_t uint_fast32_t;
f3b4f6d0 18208 #ifdef _UINT64_T
d5efd9fc 18209 typedef uint64_t uint_fast64_t;
f3b4f6d0
PB
18210 #endif
18211EOF
18212fi
18213
18214if test "$ac_cv_type_uintmax_t" != yes; then
18215 sed 's/^ *//' >> tmp-stdint.h <<EOF
18216
18217 /* Define intmax based on what we found */
18218 #ifdef _INT64_T
18219 typedef int64_t intmax_t;
18220 #else
18221 typedef long intmax_t;
18222 #endif
18223 #ifdef _UINT64_T
18224 typedef uint64_t uintmax_t;
18225 #else
18226 typedef unsigned long uintmax_t;
18227 #endif
d5efd9fc
AM
18228EOF
18229fi
18230
f3b4f6d0
PB
18231sed 's/^ *//' >> tmp-stdint.h <<EOF
18232
18233 #endif /* GCC_GENERATED_STDINT_H */
18234EOF
d5efd9fc 18235
f3b4f6d0
PB
18236if test -r bfd_stdint.h && cmp -s tmp-stdint.h bfd_stdint.h; then
18237 rm -f tmp-stdint.h
d5efd9fc 18238else
f3b4f6d0 18239 mv -f tmp-stdint.h bfd_stdint.h
d5efd9fc
AM
18240fi
18241
18242 ;;
81ecdfbb 18243 "default":C)
20e95c23
DJ
18244case "$srcdir" in
18245 .) srcdirpre= ;;
18246 *) srcdirpre='$(srcdir)/' ;;
18247esac
18248POFILES=
18249GMOFILES=
18250for lang in dummy $OBSOLETE_ALL_LINGUAS; do
18251 if test $lang != dummy; then
18252 POFILES="$POFILES $srcdirpre$lang.po"
18253 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
18254 fi
18255done
18256sed -e '/SRC-POTFILES =/r po/SRC-POTFILES' \
18257 -e '/BLD-POTFILES =/r po/BLD-POTFILES' \
18258 -e "s,@POFILES@,$POFILES," \
18259 -e "s,@GMOFILES@,$GMOFILES," \
18260 po/Makefile.in > po/Makefile ;;
81ecdfbb 18261
5464f5a1 18262 esac
81ecdfbb 18263done # for ac_tag
5464f5a1 18264
5464f5a1 18265
81ecdfbb 18266as_fn_exit 0
5464f5a1 18267_ACEOF
5464f5a1
NN
18268ac_clean_files=$ac_clean_files_save
18269
81ecdfbb
RW
18270test $ac_write_fail = 0 ||
18271 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
18272
5464f5a1
NN
18273
18274# configure is writing to config.log, and then calls config.status.
18275# config.status does its own redirection, appending to config.log.
18276# Unfortunately, on DOS this fails, as config.log is still kept open
18277# by configure, so config.status won't be able to write to it; its
18278# output is simply discarded. So we exec the FD to /dev/null,
18279# effectively closing config.log, so it can be properly (re)opened and
18280# appended to by config.status. When coming back to configure, we
18281# need to make the FD available again.
18282if test "$no_create" != yes; then
18283 ac_cs_success=:
18284 ac_config_status_args=
18285 test "$silent" = yes &&
18286 ac_config_status_args="$ac_config_status_args --quiet"
18287 exec 5>/dev/null
18288 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18289 exec 5>>config.log
18290 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18291 # would make configure fail if this is the last instruction.
81ecdfbb
RW
18292 $ac_cs_success || as_fn_exit $?
18293fi
18294if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18295 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18296$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
5464f5a1 18297fi
252b5132 18298
55c80943 18299