clean up patch
[openwrt/openwrt.git] / toolchain / binutils / patches / 2.17 / 500-avr32.patch
1 diff -Nrup binutils-2.17/bfd/aclocal.m4 binutils-2.17.atmel.1.3.0/bfd/aclocal.m4
2 --- binutils-2.17/bfd/aclocal.m4 2005-09-30 20:38:50.000000000 +0200
3 +++ binutils-2.17.atmel.1.3.0/bfd/aclocal.m4 2007-03-26 10:30:51.000000000 +0200
4 @@ -1,4 +1,4 @@
5 -# generated automatically by aclocal 1.9.5 -*- Autoconf -*-
6 +# generated automatically by aclocal 1.9.6 -*- Autoconf -*-
7
8 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
9 # 2005 Free Software Foundation, Inc.
10 @@ -28,7 +28,7 @@ AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api
11 # Call AM_AUTOMAKE_VERSION so it can be traced.
12 # This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
13 AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
14 - [AM_AUTOMAKE_VERSION([1.9.5])])
15 + [AM_AUTOMAKE_VERSION([1.9.6])])
16
17 # AM_AUX_DIR_EXPAND -*- Autoconf -*-
18
19 diff -Nrup binutils-2.17/bfd/archures.c binutils-2.17.atmel.1.3.0/bfd/archures.c
20 --- binutils-2.17/bfd/archures.c 2006-03-06 14:42:03.000000000 +0100
21 +++ binutils-2.17.atmel.1.3.0/bfd/archures.c 2007-03-26 10:20:30.000000000 +0200
22 @@ -334,6 +334,9 @@ DESCRIPTION
23 .#define bfd_mach_avr3 3
24 .#define bfd_mach_avr4 4
25 .#define bfd_mach_avr5 5
26 +. bfd_arch_avr32, {* Atmel AVR32 *}
27 +.#define bfd_mach_avr32_ap 7000
28 +.#define bfd_mach_avr32_uc 3000
29 . bfd_arch_bfin, {* ADI Blackfin *}
30 .#define bfd_mach_bfin 1
31 . bfd_arch_cr16c, {* National Semiconductor CompactRISC. *}
32 @@ -423,6 +426,7 @@ extern const bfd_arch_info_type bfd_alph
33 extern const bfd_arch_info_type bfd_arc_arch;
34 extern const bfd_arch_info_type bfd_arm_arch;
35 extern const bfd_arch_info_type bfd_avr_arch;
36 +extern const bfd_arch_info_type bfd_avr32_arch;
37 extern const bfd_arch_info_type bfd_bfin_arch;
38 extern const bfd_arch_info_type bfd_cr16c_arch;
39 extern const bfd_arch_info_type bfd_cris_arch;
40 @@ -490,6 +494,7 @@ static const bfd_arch_info_type * const
41 &bfd_arc_arch,
42 &bfd_arm_arch,
43 &bfd_avr_arch,
44 + &bfd_avr32_arch,
45 &bfd_bfin_arch,
46 &bfd_cr16c_arch,
47 &bfd_cris_arch,
48 diff -Nrup binutils-2.17/bfd/bfd-in2.h binutils-2.17.atmel.1.3.0/bfd/bfd-in2.h
49 --- binutils-2.17/bfd/bfd-in2.h 2006-03-26 01:38:42.000000000 +0100
50 +++ binutils-2.17.atmel.1.3.0/bfd/bfd-in2.h 2007-03-26 10:33:41.000000000 +0200
51 @@ -1931,6 +1931,9 @@ enum bfd_architecture
52 #define bfd_mach_avr3 3
53 #define bfd_mach_avr4 4
54 #define bfd_mach_avr5 5
55 + bfd_arch_avr32, /* Atmel AVR32 */
56 +#define bfd_mach_avr32_ap 7000
57 +#define bfd_mach_avr32_uc 3000
58 bfd_arch_bfin, /* ADI Blackfin */
59 #define bfd_mach_bfin 1
60 bfd_arch_cr16c, /* National Semiconductor CompactRISC. */
61 @@ -3577,6 +3580,87 @@ instructions */
62 instructions */
63 BFD_RELOC_AVR_6_ADIW,
64
65 +/* Difference between two labels: L2 - L1. The value of L1 is encoded
66 +as sym + addend, while the initial difference after assembly is
67 +inserted into the object file by the assembler. */
68 + BFD_RELOC_AVR32_DIFF32,
69 + BFD_RELOC_AVR32_DIFF16,
70 + BFD_RELOC_AVR32_DIFF8,
71 +
72 +/* Reference to a symbol through the Global Offset Table. The linker
73 +will allocate an entry for symbol in the GOT and insert the offset
74 +of this entry as the relocation value. */
75 + BFD_RELOC_AVR32_GOT32,
76 + BFD_RELOC_AVR32_GOT16,
77 + BFD_RELOC_AVR32_GOT8,
78 +
79 +/* Normal (non-pc-relative) code relocations. Alignment and signedness
80 +is indicated by the suffixes. S means signed, U means unsigned. W
81 +means word-aligned, H means halfword-aligned, neither means
82 +byte-aligned (no alignment.) SUB5 is the same relocation as 16S. */
83 + BFD_RELOC_AVR32_21S,
84 + BFD_RELOC_AVR32_16U,
85 + BFD_RELOC_AVR32_16S,
86 + BFD_RELOC_AVR32_SUB5,
87 + BFD_RELOC_AVR32_8S_EXT,
88 + BFD_RELOC_AVR32_8S,
89 +
90 +/* PC-relative relocations are signed if neither 'U' nor 'S' is
91 +specified. However, we explicitly tack on a 'B' to indicate no
92 +alignment, to avoid confusion with data relocs. All of these resolve
93 +to sym + addend - offset, except the one with 'N' (negated) suffix.
94 +This particular one resolves to offset - sym - addend. */
95 + BFD_RELOC_AVR32_22H_PCREL,
96 + BFD_RELOC_AVR32_18W_PCREL,
97 + BFD_RELOC_AVR32_16B_PCREL,
98 + BFD_RELOC_AVR32_16N_PCREL,
99 + BFD_RELOC_AVR32_14UW_PCREL,
100 + BFD_RELOC_AVR32_11H_PCREL,
101 + BFD_RELOC_AVR32_10UW_PCREL,
102 + BFD_RELOC_AVR32_9H_PCREL,
103 + BFD_RELOC_AVR32_9UW_PCREL,
104 +
105 +/* Subtract the link-time address of the GOT from (symbol + addend)
106 +and insert the result. */
107 + BFD_RELOC_AVR32_GOTPC,
108 +
109 +/* Reference to a symbol through the GOT. The linker will allocate an
110 +entry for symbol in the GOT and insert the offset of this entry as
111 +the relocation value. addend must be zero. As usual, 'S' means
112 +signed, 'W' means word-aligned, etc. */
113 + BFD_RELOC_AVR32_GOTCALL,
114 + BFD_RELOC_AVR32_LDA_GOT,
115 + BFD_RELOC_AVR32_GOT21S,
116 + BFD_RELOC_AVR32_GOT18SW,
117 + BFD_RELOC_AVR32_GOT16S,
118 +
119 +/* 32-bit constant pool entry. I don't think 8- and 16-bit entries make
120 +a whole lot of sense. */
121 + BFD_RELOC_AVR32_32_CPENT,
122 +
123 +/* Constant pool references. Some of these relocations are signed,
124 +others are unsigned. It doesn't really matter, since the constant
125 +pool always comes after the code that references it. */
126 + BFD_RELOC_AVR32_CPCALL,
127 + BFD_RELOC_AVR32_16_CP,
128 + BFD_RELOC_AVR32_9W_CP,
129 +
130 +/* sym must be the absolute symbol. The addend specifies the alignment
131 +order, e.g. if addend is 2, the linker must add padding so that the
132 +next address is aligned to a 4-byte boundary. */
133 + BFD_RELOC_AVR32_ALIGN,
134 +
135 +/* Code relocations that will never make it to the output file. */
136 + BFD_RELOC_AVR32_14UW,
137 + BFD_RELOC_AVR32_10UW,
138 + BFD_RELOC_AVR32_10SW,
139 + BFD_RELOC_AVR32_STHH_W,
140 + BFD_RELOC_AVR32_7UW,
141 + BFD_RELOC_AVR32_6S,
142 + BFD_RELOC_AVR32_6UW,
143 + BFD_RELOC_AVR32_4UH,
144 + BFD_RELOC_AVR32_3U,
145 +
146 /* Direct 12 bit. */
147 BFD_RELOC_390_12,
148
149 diff -Nrup binutils-2.17/bfd/config.bfd binutils-2.17.atmel.1.3.0/bfd/config.bfd
150 --- binutils-2.17/bfd/config.bfd 2006-04-05 14:41:57.000000000 +0200
151 +++ binutils-2.17.atmel.1.3.0/bfd/config.bfd 2007-03-26 10:20:30.000000000 +0200
152 @@ -317,6 +317,10 @@ case "${targ}" in
153 targ_underscore=yes
154 ;;
155
156 + avr32-*-*)
157 + targ_defvec=bfd_elf32_avr32_vec
158 + ;;
159 +
160 c30-*-*aout* | tic30-*-*aout*)
161 targ_defvec=tic30_aout_vec
162 ;;
163 diff -Nrup binutils-2.17/bfd/config.in binutils-2.17.atmel.1.3.0/bfd/config.in
164 --- binutils-2.17/bfd/config.in 2005-11-03 17:06:10.000000000 +0100
165 +++ binutils-2.17.atmel.1.3.0/bfd/config.in 2007-03-26 10:30:55.000000000 +0200
166 @@ -313,18 +313,18 @@
167 /* Define to the version of this package. */
168 #undef PACKAGE_VERSION
169
170 -/* The size of a `long', as computed by sizeof. */
171 +/* The size of `long', as computed by sizeof. */
172 #undef SIZEOF_LONG
173
174 -/* The size of a `long long', as computed by sizeof. */
175 +/* The size of `long long', as computed by sizeof. */
176 #undef SIZEOF_LONG_LONG
177
178 -/* The size of a `off_t', as computed by sizeof. */
179 +/* The size of `off_t', as computed by sizeof. */
180 #undef SIZEOF_OFF_T
181
182 /* If using the C implementation of alloca, define if you know the
183 direction of stack growth for your system; otherwise it will be
184 - automatically deduced at run-time.
185 + automatically deduced at runtime.
186 STACK_DIRECTION > 0 => grows toward higher addresses
187 STACK_DIRECTION < 0 => grows toward lower addresses
188 STACK_DIRECTION = 0 => direction of growth unknown */
189 @@ -368,8 +368,8 @@
190 #undef inline
191 #endif
192
193 -/* Define to `long' if <sys/types.h> does not define. */
194 +/* Define to `long int' if <sys/types.h> does not define. */
195 #undef off_t
196
197 -/* Define to `unsigned' if <sys/types.h> does not define. */
198 +/* Define to `unsigned int' if <sys/types.h> does not define. */
199 #undef size_t
200 diff -Nrup binutils-2.17/bfd/configure binutils-2.17.atmel.1.3.0/bfd/configure
201 --- binutils-2.17/bfd/configure 2006-06-23 20:17:03.000000000 +0200
202 +++ binutils-2.17.atmel.1.3.0/bfd/configure 2007-03-26 10:30:54.000000000 +0200
203 @@ -1,25 +1,54 @@
204 #! /bin/sh
205 # Guess values for system-dependent variables and create Makefiles.
206 -# Generated by GNU Autoconf 2.59.
207 +# Generated by GNU Autoconf 2.61.
208 #
209 -# Copyright (C) 2003 Free Software Foundation, Inc.
210 +# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
211 +# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
212 # This configure script is free software; the Free Software Foundation
213 # gives unlimited permission to copy, distribute and modify it.
214 ## --------------------- ##
215 ## M4sh Initialization. ##
216 ## --------------------- ##
217
218 -# Be Bourne compatible
219 +# Be more Bourne compatible
220 +DUALCASE=1; export DUALCASE # for MKS sh
221 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
222 emulate sh
223 NULLCMD=:
224 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
225 # is contrary to our usage. Disable this feature.
226 alias -g '${1+"$@"}'='"$@"'
227 -elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
228 - set -o posix
229 + setopt NO_GLOB_SUBST
230 +else
231 + case `(set -o) 2>/dev/null` in
232 + *posix*) set -o posix ;;
233 +esac
234 +
235 +fi
236 +
237 +
238 +
239 +
240 +# PATH needs CR
241 +# Avoid depending upon Character Ranges.
242 +as_cr_letters='abcdefghijklmnopqrstuvwxyz'
243 +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
244 +as_cr_Letters=$as_cr_letters$as_cr_LETTERS
245 +as_cr_digits='0123456789'
246 +as_cr_alnum=$as_cr_Letters$as_cr_digits
247 +
248 +# The user is always right.
249 +if test "${PATH_SEPARATOR+set}" != set; then
250 + echo "#! /bin/sh" >conf$$.sh
251 + echo "exit 0" >>conf$$.sh
252 + chmod +x conf$$.sh
253 + if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
254 + PATH_SEPARATOR=';'
255 + else
256 + PATH_SEPARATOR=:
257 + fi
258 + rm -f conf$$.sh
259 fi
260 -DUALCASE=1; export DUALCASE # for MKS sh
261
262 # Support unset when possible.
263 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
264 @@ -29,8 +58,43 @@ else
265 fi
266
267
268 +# IFS
269 +# We need space, tab and new line, in precisely that order. Quoting is
270 +# there to prevent editors from complaining about space-tab.
271 +# (If _AS_PATH_WALK were called with IFS unset, it would disable word
272 +# splitting by setting IFS to empty value.)
273 +as_nl='
274 +'
275 +IFS=" "" $as_nl"
276 +
277 +# Find who we are. Look in the path if we contain no directory separator.
278 +case $0 in
279 + *[\\/]* ) as_myself=$0 ;;
280 + *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
281 +for as_dir in $PATH
282 +do
283 + IFS=$as_save_IFS
284 + test -z "$as_dir" && as_dir=.
285 + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
286 +done
287 +IFS=$as_save_IFS
288 +
289 + ;;
290 +esac
291 +# We did not find ourselves, most probably we were run as `sh COMMAND'
292 +# in which case we are not to be found in the path.
293 +if test "x$as_myself" = x; then
294 + as_myself=$0
295 +fi
296 +if test ! -f "$as_myself"; then
297 + echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
298 + { (exit 1); exit 1; }
299 +fi
300 +
301 # Work around bugs in pre-3.0 UWIN ksh.
302 -$as_unset ENV MAIL MAILPATH
303 +for as_var in ENV MAIL MAILPATH
304 +do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
305 +done
306 PS1='$ '
307 PS2='> '
308 PS4='+ '
309 @@ -44,18 +108,19 @@ do
310 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
311 eval $as_var=C; export $as_var
312 else
313 - $as_unset $as_var
314 + ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
315 fi
316 done
317
318 # Required to use basename.
319 -if expr a : '\(a\)' >/dev/null 2>&1; then
320 +if expr a : '\(a\)' >/dev/null 2>&1 &&
321 + test "X`expr 00001 : '.*\(...\)'`" = X001; then
322 as_expr=expr
323 else
324 as_expr=false
325 fi
326
327 -if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
328 +if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
329 as_basename=basename
330 else
331 as_basename=false
332 @@ -63,157 +128,388 @@ fi
333
334
335 # Name of the executable.
336 -as_me=`$as_basename "$0" ||
337 +as_me=`$as_basename -- "$0" ||
338 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
339 X"$0" : 'X\(//\)$' \| \
340 - X"$0" : 'X\(/\)$' \| \
341 - . : '\(.\)' 2>/dev/null ||
342 + X"$0" : 'X\(/\)' \| . 2>/dev/null ||
343 echo X/"$0" |
344 - sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
345 - /^X\/\(\/\/\)$/{ s//\1/; q; }
346 - /^X\/\(\/\).*/{ s//\1/; q; }
347 - s/.*/./; q'`
348 + sed '/^.*\/\([^/][^/]*\)\/*$/{
349 + s//\1/
350 + q
351 + }
352 + /^X\/\(\/\/\)$/{
353 + s//\1/
354 + q
355 + }
356 + /^X\/\(\/\).*/{
357 + s//\1/
358 + q
359 + }
360 + s/.*/./; q'`
361
362 +# CDPATH.
363 +$as_unset CDPATH
364
365 -# PATH needs CR, and LINENO needs CR and PATH.
366 -# Avoid depending upon Character Ranges.
367 -as_cr_letters='abcdefghijklmnopqrstuvwxyz'
368 -as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
369 -as_cr_Letters=$as_cr_letters$as_cr_LETTERS
370 -as_cr_digits='0123456789'
371 -as_cr_alnum=$as_cr_Letters$as_cr_digits
372
373 -# The user is always right.
374 -if test "${PATH_SEPARATOR+set}" != set; then
375 - echo "#! /bin/sh" >conf$$.sh
376 - echo "exit 0" >>conf$$.sh
377 - chmod +x conf$$.sh
378 - if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
379 - PATH_SEPARATOR=';'
380 - else
381 - PATH_SEPARATOR=:
382 - fi
383 - rm -f conf$$.sh
384 +if test "x$CONFIG_SHELL" = x; then
385 + if (eval ":") 2>/dev/null; then
386 + as_have_required=yes
387 +else
388 + as_have_required=no
389 +fi
390 +
391 + if test $as_have_required = yes && (eval ":
392 +(as_func_return () {
393 + (exit \$1)
394 +}
395 +as_func_success () {
396 + as_func_return 0
397 +}
398 +as_func_failure () {
399 + as_func_return 1
400 +}
401 +as_func_ret_success () {
402 + return 0
403 +}
404 +as_func_ret_failure () {
405 + return 1
406 +}
407 +
408 +exitcode=0
409 +if as_func_success; then
410 + :
411 +else
412 + exitcode=1
413 + echo as_func_success failed.
414 fi
415
416 +if as_func_failure; then
417 + exitcode=1
418 + echo as_func_failure succeeded.
419 +fi
420
421 - as_lineno_1=$LINENO
422 - as_lineno_2=$LINENO
423 - as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
424 - test "x$as_lineno_1" != "x$as_lineno_2" &&
425 - test "x$as_lineno_3" = "x$as_lineno_2" || {
426 - # Find who we are. Look in the path if we contain no path at all
427 - # relative or not.
428 - case $0 in
429 - *[\\/]* ) as_myself=$0 ;;
430 - *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
431 -for as_dir in $PATH
432 -do
433 - IFS=$as_save_IFS
434 - test -z "$as_dir" && as_dir=.
435 - test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
436 -done
437 +if as_func_ret_success; then
438 + :
439 +else
440 + exitcode=1
441 + echo as_func_ret_success failed.
442 +fi
443
444 - ;;
445 - esac
446 - # We did not find ourselves, most probably we were run as `sh COMMAND'
447 - # in which case we are not to be found in the path.
448 - if test "x$as_myself" = x; then
449 - as_myself=$0
450 - fi
451 - if test ! -f "$as_myself"; then
452 - { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
453 - { (exit 1); exit 1; }; }
454 - fi
455 - case $CONFIG_SHELL in
456 - '')
457 +if as_func_ret_failure; then
458 + exitcode=1
459 + echo as_func_ret_failure succeeded.
460 +fi
461 +
462 +if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
463 + :
464 +else
465 + exitcode=1
466 + echo positional parameters were not saved.
467 +fi
468 +
469 +test \$exitcode = 0) || { (exit 1); exit 1; }
470 +
471 +(
472 + as_lineno_1=\$LINENO
473 + as_lineno_2=\$LINENO
474 + test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
475 + test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
476 +") 2> /dev/null; then
477 + :
478 +else
479 + as_candidate_shells=
480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
481 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
482 do
483 IFS=$as_save_IFS
484 test -z "$as_dir" && as_dir=.
485 - for as_base in sh bash ksh sh5; do
486 - case $as_dir in
487 + case $as_dir in
488 /*)
489 - if ("$as_dir/$as_base" -c '
490 + for as_base in sh bash ksh sh5; do
491 + as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
492 + done;;
493 + esac
494 +done
495 +IFS=$as_save_IFS
496 +
497 +
498 + for as_shell in $as_candidate_shells $SHELL; do
499 + # Try only shells that exist, to save several forks.
500 + if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
501 + { ("$as_shell") 2> /dev/null <<\_ASEOF
502 +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
503 + emulate sh
504 + NULLCMD=:
505 + # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
506 + # is contrary to our usage. Disable this feature.
507 + alias -g '${1+"$@"}'='"$@"'
508 + setopt NO_GLOB_SUBST
509 +else
510 + case `(set -o) 2>/dev/null` in
511 + *posix*) set -o posix ;;
512 +esac
513 +
514 +fi
515 +
516 +
517 +:
518 +_ASEOF
519 +}; then
520 + CONFIG_SHELL=$as_shell
521 + as_have_required=yes
522 + if { "$as_shell" 2> /dev/null <<\_ASEOF
523 +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
524 + emulate sh
525 + NULLCMD=:
526 + # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
527 + # is contrary to our usage. Disable this feature.
528 + alias -g '${1+"$@"}'='"$@"'
529 + setopt NO_GLOB_SUBST
530 +else
531 + case `(set -o) 2>/dev/null` in
532 + *posix*) set -o posix ;;
533 +esac
534 +
535 +fi
536 +
537 +
538 +:
539 +(as_func_return () {
540 + (exit $1)
541 +}
542 +as_func_success () {
543 + as_func_return 0
544 +}
545 +as_func_failure () {
546 + as_func_return 1
547 +}
548 +as_func_ret_success () {
549 + return 0
550 +}
551 +as_func_ret_failure () {
552 + return 1
553 +}
554 +
555 +exitcode=0
556 +if as_func_success; then
557 + :
558 +else
559 + exitcode=1
560 + echo as_func_success failed.
561 +fi
562 +
563 +if as_func_failure; then
564 + exitcode=1
565 + echo as_func_failure succeeded.
566 +fi
567 +
568 +if as_func_ret_success; then
569 + :
570 +else
571 + exitcode=1
572 + echo as_func_ret_success failed.
573 +fi
574 +
575 +if as_func_ret_failure; then
576 + exitcode=1
577 + echo as_func_ret_failure succeeded.
578 +fi
579 +
580 +if ( set x; as_func_ret_success y && test x = "$1" ); then
581 + :
582 +else
583 + exitcode=1
584 + echo positional parameters were not saved.
585 +fi
586 +
587 +test $exitcode = 0) || { (exit 1); exit 1; }
588 +
589 +(
590 as_lineno_1=$LINENO
591 as_lineno_2=$LINENO
592 - as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
593 test "x$as_lineno_1" != "x$as_lineno_2" &&
594 - test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
595 - $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
596 - $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
597 - CONFIG_SHELL=$as_dir/$as_base
598 - export CONFIG_SHELL
599 - exec "$CONFIG_SHELL" "$0" ${1+"$@"}
600 - fi;;
601 - esac
602 - done
603 -done
604 -;;
605 - esac
606 + test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
607 +
608 +_ASEOF
609 +}; then
610 + break
611 +fi
612 +
613 +fi
614 +
615 + done
616 +
617 + if test "x$CONFIG_SHELL" != x; then
618 + for as_var in BASH_ENV ENV
619 + do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
620 + done
621 + export CONFIG_SHELL
622 + exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
623 +fi
624 +
625 +
626 + if test $as_have_required = no; then
627 + echo This script requires a shell more modern than all the
628 + echo shells that I found on your system. Please install a
629 + echo modern shell, or manually run the script under such a
630 + echo shell if you do have one.
631 + { (exit 1); exit 1; }
632 +fi
633 +
634 +
635 +fi
636 +
637 +fi
638 +
639 +
640 +
641 +(eval "as_func_return () {
642 + (exit \$1)
643 +}
644 +as_func_success () {
645 + as_func_return 0
646 +}
647 +as_func_failure () {
648 + as_func_return 1
649 +}
650 +as_func_ret_success () {
651 + return 0
652 +}
653 +as_func_ret_failure () {
654 + return 1
655 +}
656 +
657 +exitcode=0
658 +if as_func_success; then
659 + :
660 +else
661 + exitcode=1
662 + echo as_func_success failed.
663 +fi
664 +
665 +if as_func_failure; then
666 + exitcode=1
667 + echo as_func_failure succeeded.
668 +fi
669 +
670 +if as_func_ret_success; then
671 + :
672 +else
673 + exitcode=1
674 + echo as_func_ret_success failed.
675 +fi
676 +
677 +if as_func_ret_failure; then
678 + exitcode=1
679 + echo as_func_ret_failure succeeded.
680 +fi
681 +
682 +if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
683 + :
684 +else
685 + exitcode=1
686 + echo positional parameters were not saved.
687 +fi
688 +
689 +test \$exitcode = 0") || {
690 + echo No shell found that supports shell functions.
691 + echo Please tell autoconf@gnu.org about your system,
692 + echo including any error possibly output before this
693 + echo message
694 +}
695 +
696 +
697 +
698 + as_lineno_1=$LINENO
699 + as_lineno_2=$LINENO
700 + test "x$as_lineno_1" != "x$as_lineno_2" &&
701 + test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
702
703 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
704 # uniformly replaced by the line number. The first 'sed' inserts a
705 - # line-number line before each line; the second 'sed' does the real
706 - # work. The second script uses 'N' to pair each line-number line
707 - # with the numbered line, and appends trailing '-' during
708 - # substitution so that $LINENO is not a special case at line end.
709 + # line-number line after each line using $LINENO; the second 'sed'
710 + # does the real work. The second script uses 'N' to pair each
711 + # line-number line with the line containing $LINENO, and appends
712 + # trailing '-' during substitution so that $LINENO is not a special
713 + # case at line end.
714 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
715 - # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
716 - sed '=' <$as_myself |
717 + # scripts with optimization help from Paolo Bonzini. Blame Lee
718 + # E. McMahon (1931-1989) for sed's syntax. :-)
719 + sed -n '
720 + p
721 + /[$]LINENO/=
722 + ' <$as_myself |
723 sed '
724 + s/[$]LINENO.*/&-/
725 + t lineno
726 + b
727 + :lineno
728 N
729 - s,$,-,
730 - : loop
731 - s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
732 + :loop
733 + s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
734 t loop
735 - s,-$,,
736 - s,^['$as_cr_digits']*\n,,
737 + s/-\n.*//
738 ' >$as_me.lineno &&
739 - chmod +x $as_me.lineno ||
740 + chmod +x "$as_me.lineno" ||
741 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
742 { (exit 1); exit 1; }; }
743
744 # Don't try to exec as it changes $[0], causing all sort of problems
745 # (the dirname of $[0] is not the place where we might find the
746 - # original and so on. Autoconf is especially sensible to this).
747 - . ./$as_me.lineno
748 + # original and so on. Autoconf is especially sensitive to this).
749 + . "./$as_me.lineno"
750 # Exit status is that of the last command.
751 exit
752 }
753
754
755 -case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
756 - *c*,-n*) ECHO_N= ECHO_C='
757 -' ECHO_T=' ' ;;
758 - *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
759 - *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
760 +if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
761 + as_dirname=dirname
762 +else
763 + as_dirname=false
764 +fi
765 +
766 +ECHO_C= ECHO_N= ECHO_T=
767 +case `echo -n x` in
768 +-n*)
769 + case `echo 'x\c'` in
770 + *c*) ECHO_T=' ';; # ECHO_T is single tab character.
771 + *) ECHO_C='\c';;
772 + esac;;
773 +*)
774 + ECHO_N='-n';;
775 esac
776
777 -if expr a : '\(a\)' >/dev/null 2>&1; then
778 +if expr a : '\(a\)' >/dev/null 2>&1 &&
779 + test "X`expr 00001 : '.*\(...\)'`" = X001; then
780 as_expr=expr
781 else
782 as_expr=false
783 fi
784
785 rm -f conf$$ conf$$.exe conf$$.file
786 +if test -d conf$$.dir; then
787 + rm -f conf$$.dir/conf$$.file
788 +else
789 + rm -f conf$$.dir
790 + mkdir conf$$.dir
791 +fi
792 echo >conf$$.file
793 if ln -s conf$$.file conf$$ 2>/dev/null; then
794 - # We could just check for DJGPP; but this test a) works b) is more generic
795 - # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
796 - if test -f conf$$.exe; then
797 - # Don't use ln at all; we don't have any links
798 + as_ln_s='ln -s'
799 + # ... but there are two gotchas:
800 + # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
801 + # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
802 + # In both cases, we have to default to `cp -p'.
803 + ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
804 as_ln_s='cp -p'
805 - else
806 - as_ln_s='ln -s'
807 - fi
808 elif ln conf$$.file conf$$ 2>/dev/null; then
809 as_ln_s=ln
810 else
811 as_ln_s='cp -p'
812 fi
813 -rm -f conf$$ conf$$.exe conf$$.file
814 +rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
815 +rmdir conf$$.dir 2>/dev/null
816
817 if mkdir -p . 2>/dev/null; then
818 as_mkdir_p=:
819 @@ -222,7 +518,28 @@ else
820 as_mkdir_p=false
821 fi
822
823 -as_executable_p="test -f"
824 +if test -x / >/dev/null 2>&1; then
825 + as_test_x='test -x'
826 +else
827 + if ls -dL / >/dev/null 2>&1; then
828 + as_ls_L_option=L
829 + else
830 + as_ls_L_option=
831 + fi
832 + as_test_x='
833 + eval sh -c '\''
834 + if test -d "$1"; then
835 + test -d "$1/.";
836 + else
837 + case $1 in
838 + -*)set "./$1";;
839 + esac;
840 + case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
841 + ???[sx]*):;;*)false;;esac;fi
842 + '\'' sh
843 + '
844 +fi
845 +as_executable_p=$as_test_x
846
847 # Sed expression to map a string onto a valid CPP name.
848 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
849 @@ -231,39 +548,27 @@ as_tr_cpp="eval sed 'y%*$as_cr_letters%P
850 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
851
852
853 -# IFS
854 -# We need space, tab and new line, in precisely that order.
855 -as_nl='
856 -'
857 -IFS=" $as_nl"
858 -
859 -# CDPATH.
860 -$as_unset CDPATH
861
862 +exec 7<&0 </dev/null 6>&1
863
864 # Name of the host.
865 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
866 # so uname gets run too.
867 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
868
869 -exec 6>&1
870 -
871 #
872 # Initializations.
873 #
874 ac_default_prefix=/usr/local
875 +ac_clean_files=
876 ac_config_libobj_dir=.
877 +LIBOBJS=
878 cross_compiling=no
879 subdirs=
880 MFLAGS=
881 MAKEFLAGS=
882 SHELL=${CONFIG_SHELL-/bin/sh}
883
884 -# Maximum number of lines to put in a shell here document.
885 -# This variable seems obsolete. It should probably be removed, and
886 -# only ac_max_sed_lines should be used.
887 -: ${ac_max_here_lines=38}
888 -
889 # Identity of this package.
890 PACKAGE_NAME=
891 PACKAGE_TARNAME=
892 @@ -275,42 +580,199 @@ ac_unique_file="libbfd.c"
893 # Factoring default headers for most tests.
894 ac_includes_default="\
895 #include <stdio.h>
896 -#if HAVE_SYS_TYPES_H
897 +#ifdef HAVE_SYS_TYPES_H
898 # include <sys/types.h>
899 #endif
900 -#if HAVE_SYS_STAT_H
901 +#ifdef HAVE_SYS_STAT_H
902 # include <sys/stat.h>
903 #endif
904 -#if STDC_HEADERS
905 +#ifdef STDC_HEADERS
906 # include <stdlib.h>
907 # include <stddef.h>
908 #else
909 -# if HAVE_STDLIB_H
910 +# ifdef HAVE_STDLIB_H
911 # include <stdlib.h>
912 # endif
913 #endif
914 -#if HAVE_STRING_H
915 -# if !STDC_HEADERS && HAVE_MEMORY_H
916 +#ifdef HAVE_STRING_H
917 +# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
918 # include <memory.h>
919 # endif
920 # include <string.h>
921 #endif
922 -#if HAVE_STRINGS_H
923 +#ifdef HAVE_STRINGS_H
924 # include <strings.h>
925 #endif
926 -#if HAVE_INTTYPES_H
927 +#ifdef HAVE_INTTYPES_H
928 # include <inttypes.h>
929 -#else
930 -# if HAVE_STDINT_H
931 -# include <stdint.h>
932 -# endif
933 #endif
934 -#if HAVE_UNISTD_H
935 +#ifdef HAVE_STDINT_H
936 +# include <stdint.h>
937 +#endif
938 +#ifdef HAVE_UNISTD_H
939 # include <unistd.h>
940 #endif"
941
942 -ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE AR ac_ct_AR RANLIB ac_ct_RANLIB LN_S LIBTOOL WARN_CFLAGS NO_WERROR MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT INSTALL_LIBBFD_TRUE INSTALL_LIBBFD_FALSE host_noncanonical target_noncanonical bfdlibdir bfdincludedir CPP EGREP ALLOCA USE_NLS MSGFMT GMSGFMT XGETTEXT USE_INCLUDED_LIBINTL CATALOGS CATOBJEXT DATADIRNAME GMOFILES INSTOBJEXT INTLDEPS INTLLIBS INTLOBJS POFILES POSUB INCLUDE_LOCALE_H GT_NO GT_YES MKINSTALLDIRS l HDEFINES BFD_HOST_64BIT_LONG BFD_HOST_LONG_LONG BFD_HOST_64_BIT_DEFINED BFD_HOST_64_BIT BFD_HOST_U_64_BIT CC_FOR_BUILD EXEEXT_FOR_BUILD COREFILE COREFLAG WIN32LDFLAGS WIN32LIBADD TDEFINES wordsize bfd_libs all_backends bfd_backends bfd_machines bfd_default_target_size bfd_file_ptr bfd_ufile_ptr tdefaults datarootdir docdir htmldir LIBOBJS LTLIBOBJS'
943 +ac_subst_vars='SHELL
944 +PATH_SEPARATOR
945 +PACKAGE_NAME
946 +PACKAGE_TARNAME
947 +PACKAGE_VERSION
948 +PACKAGE_STRING
949 +PACKAGE_BUGREPORT
950 +exec_prefix
951 +prefix
952 +program_transform_name
953 +bindir
954 +sbindir
955 +libexecdir
956 +datarootdir
957 +datadir
958 +sysconfdir
959 +sharedstatedir
960 +localstatedir
961 +includedir
962 +oldincludedir
963 +docdir
964 +infodir
965 +htmldir
966 +dvidir
967 +pdfdir
968 +psdir
969 +libdir
970 +localedir
971 +mandir
972 +DEFS
973 +ECHO_C
974 +ECHO_N
975 +ECHO_T
976 +LIBS
977 +build_alias
978 +host_alias
979 +target_alias
980 +build
981 +build_cpu
982 +build_vendor
983 +build_os
984 +host
985 +host_cpu
986 +host_vendor
987 +host_os
988 +target
989 +target_cpu
990 +target_vendor
991 +target_os
992 +CC
993 +CFLAGS
994 +LDFLAGS
995 +CPPFLAGS
996 +ac_ct_CC
997 +EXEEXT
998 +OBJEXT
999 +INSTALL_PROGRAM
1000 +INSTALL_SCRIPT
1001 +INSTALL_DATA
1002 +CYGPATH_W
1003 +PACKAGE
1004 +VERSION
1005 +ACLOCAL
1006 +AUTOCONF
1007 +AUTOMAKE
1008 +AUTOHEADER
1009 +MAKEINFO
1010 +install_sh
1011 +STRIP
1012 +INSTALL_STRIP_PROGRAM
1013 +mkdir_p
1014 +AWK
1015 +SET_MAKE
1016 +am__leading_dot
1017 +AMTAR
1018 +am__tar
1019 +am__untar
1020 +DEPDIR
1021 +am__include
1022 +am__quote
1023 +AMDEP_TRUE
1024 +AMDEP_FALSE
1025 +AMDEPBACKSLASH
1026 +CCDEPMODE
1027 +am__fastdepCC_TRUE
1028 +am__fastdepCC_FALSE
1029 +AR
1030 +RANLIB
1031 +LN_S
1032 +LIBTOOL
1033 +WARN_CFLAGS
1034 +NO_WERROR
1035 +MAINTAINER_MODE_TRUE
1036 +MAINTAINER_MODE_FALSE
1037 +MAINT
1038 +INSTALL_LIBBFD_TRUE
1039 +INSTALL_LIBBFD_FALSE
1040 +host_noncanonical
1041 +target_noncanonical
1042 +bfdlibdir
1043 +bfdincludedir
1044 +CPP
1045 +GREP
1046 +EGREP
1047 +ALLOCA
1048 +USE_NLS
1049 +MSGFMT
1050 +GMSGFMT
1051 +XGETTEXT
1052 +USE_INCLUDED_LIBINTL
1053 +CATALOGS
1054 +CATOBJEXT
1055 +DATADIRNAME
1056 +GMOFILES
1057 +INSTOBJEXT
1058 +INTLDEPS
1059 +INTLLIBS
1060 +INTLOBJS
1061 +POFILES
1062 +POSUB
1063 +INCLUDE_LOCALE_H
1064 +GT_NO
1065 +GT_YES
1066 +MKINSTALLDIRS
1067 +l
1068 +HDEFINES
1069 +BFD_HOST_64BIT_LONG
1070 +BFD_HOST_LONG_LONG
1071 +BFD_HOST_64_BIT_DEFINED
1072 +BFD_HOST_64_BIT
1073 +BFD_HOST_U_64_BIT
1074 +CC_FOR_BUILD
1075 +EXEEXT_FOR_BUILD
1076 +COREFILE
1077 +COREFLAG
1078 +WIN32LDFLAGS
1079 +WIN32LIBADD
1080 +TDEFINES
1081 +wordsize
1082 +bfd_libs
1083 +all_backends
1084 +bfd_backends
1085 +bfd_machines
1086 +bfd_default_target_size
1087 +bfd_file_ptr
1088 +bfd_ufile_ptr
1089 +tdefaults
1090 +LIBOBJS
1091 +LTLIBOBJS'
1092 ac_subst_files=''
1093 + ac_precious_vars='build_alias
1094 +host_alias
1095 +target_alias
1096 +CC
1097 +CFLAGS
1098 +LDFLAGS
1099 +LIBS
1100 +CPPFLAGS
1101 +CPP'
1102 +
1103
1104 # Initialize some variables set by options.
1105 ac_init_help=
1106 @@ -337,34 +799,48 @@ x_libraries=NONE
1107 # and all the variables that are supposed to be based on exec_prefix
1108 # by default will actually change.
1109 # Use braces instead of parens because sh, perl, etc. also accept them.
1110 +# (The list follows the same order as the GNU Coding Standards.)
1111 bindir='${exec_prefix}/bin'
1112 sbindir='${exec_prefix}/sbin'
1113 libexecdir='${exec_prefix}/libexec'
1114 -datadir='${prefix}/share'
1115 +datarootdir='${prefix}/share'
1116 +datadir='${datarootdir}'
1117 sysconfdir='${prefix}/etc'
1118 sharedstatedir='${prefix}/com'
1119 localstatedir='${prefix}/var'
1120 -libdir='${exec_prefix}/lib'
1121 includedir='${prefix}/include'
1122 oldincludedir='/usr/include'
1123 -infodir='${prefix}/info'
1124 -mandir='${prefix}/man'
1125 +docdir='${datarootdir}/doc/${PACKAGE}'
1126 +infodir='${datarootdir}/info'
1127 +htmldir='${docdir}'
1128 +dvidir='${docdir}'
1129 +pdfdir='${docdir}'
1130 +psdir='${docdir}'
1131 +libdir='${exec_prefix}/lib'
1132 +localedir='${datarootdir}/locale'
1133 +mandir='${datarootdir}/man'
1134
1135 ac_prev=
1136 +ac_dashdash=
1137 for ac_option
1138 do
1139 # If the previous option needs an argument, assign it.
1140 if test -n "$ac_prev"; then
1141 - eval "$ac_prev=\$ac_option"
1142 + eval $ac_prev=\$ac_option
1143 ac_prev=
1144 continue
1145 fi
1146
1147 - ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
1148 + case $ac_option in
1149 + *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1150 + *) ac_optarg=yes ;;
1151 + esac
1152
1153 # Accept the important Cygnus configure options, so we can diagnose typos.
1154
1155 - case $ac_option in
1156 + case $ac_dashdash$ac_option in
1157 + --)
1158 + ac_dashdash=yes ;;
1159
1160 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1161 ac_prev=bindir ;;
1162 @@ -386,33 +862,45 @@ do
1163 --config-cache | -C)
1164 cache_file=config.cache ;;
1165
1166 - -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
1167 + -datadir | --datadir | --datadi | --datad)
1168 ac_prev=datadir ;;
1169 - -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
1170 - | --da=*)
1171 + -datadir=* | --datadir=* | --datadi=* | --datad=*)
1172 datadir=$ac_optarg ;;
1173
1174 + -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1175 + | --dataroo | --dataro | --datar)
1176 + ac_prev=datarootdir ;;
1177 + -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1178 + | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1179 + datarootdir=$ac_optarg ;;
1180 +
1181 -disable-* | --disable-*)
1182 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1183 # Reject names that are not valid shell variable names.
1184 - expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1185 + expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1186 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1187 { (exit 1); exit 1; }; }
1188 - ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1189 - eval "enable_$ac_feature=no" ;;
1190 + ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1191 + eval enable_$ac_feature=no ;;
1192 +
1193 + -docdir | --docdir | --docdi | --doc | --do)
1194 + ac_prev=docdir ;;
1195 + -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1196 + docdir=$ac_optarg ;;
1197 +
1198 + -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1199 + ac_prev=dvidir ;;
1200 + -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1201 + dvidir=$ac_optarg ;;
1202
1203 -enable-* | --enable-*)
1204 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1205 # Reject names that are not valid shell variable names.
1206 - expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1207 + expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1208 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1209 { (exit 1); exit 1; }; }
1210 - ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1211 - case $ac_option in
1212 - *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
1213 - *) ac_optarg=yes ;;
1214 - esac
1215 - eval "enable_$ac_feature='$ac_optarg'" ;;
1216 + ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1217 + eval enable_$ac_feature=\$ac_optarg ;;
1218
1219 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1220 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1221 @@ -439,6 +927,12 @@ do
1222 -host=* | --host=* | --hos=* | --ho=*)
1223 host_alias=$ac_optarg ;;
1224
1225 + -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1226 + ac_prev=htmldir ;;
1227 + -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1228 + | --ht=*)
1229 + htmldir=$ac_optarg ;;
1230 +
1231 -includedir | --includedir | --includedi | --included | --include \
1232 | --includ | --inclu | --incl | --inc)
1233 ac_prev=includedir ;;
1234 @@ -463,13 +957,16 @@ do
1235 | --libexe=* | --libex=* | --libe=*)
1236 libexecdir=$ac_optarg ;;
1237
1238 + -localedir | --localedir | --localedi | --localed | --locale)
1239 + ac_prev=localedir ;;
1240 + -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1241 + localedir=$ac_optarg ;;
1242 +
1243 -localstatedir | --localstatedir | --localstatedi | --localstated \
1244 - | --localstate | --localstat | --localsta | --localst \
1245 - | --locals | --local | --loca | --loc | --lo)
1246 + | --localstate | --localstat | --localsta | --localst | --locals)
1247 ac_prev=localstatedir ;;
1248 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1249 - | --localstate=* | --localstat=* | --localsta=* | --localst=* \
1250 - | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
1251 + | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1252 localstatedir=$ac_optarg ;;
1253
1254 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1255 @@ -534,6 +1031,16 @@ do
1256 | --progr-tra=* | --program-tr=* | --program-t=*)
1257 program_transform_name=$ac_optarg ;;
1258
1259 + -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1260 + ac_prev=pdfdir ;;
1261 + -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1262 + pdfdir=$ac_optarg ;;
1263 +
1264 + -psdir | --psdir | --psdi | --psd | --ps)
1265 + ac_prev=psdir ;;
1266 + -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1267 + psdir=$ac_optarg ;;
1268 +
1269 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1270 | -silent | --silent | --silen | --sile | --sil)
1271 silent=yes ;;
1272 @@ -586,24 +1093,20 @@ do
1273 -with-* | --with-*)
1274 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1275 # Reject names that are not valid shell variable names.
1276 - expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1277 + expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1278 { echo "$as_me: error: invalid package name: $ac_package" >&2
1279 { (exit 1); exit 1; }; }
1280 - ac_package=`echo $ac_package| sed 's/-/_/g'`
1281 - case $ac_option in
1282 - *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
1283 - *) ac_optarg=yes ;;
1284 - esac
1285 - eval "with_$ac_package='$ac_optarg'" ;;
1286 + ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1287 + eval with_$ac_package=\$ac_optarg ;;
1288
1289 -without-* | --without-*)
1290 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1291 # Reject names that are not valid shell variable names.
1292 - expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1293 + expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1294 { echo "$as_me: error: invalid package name: $ac_package" >&2
1295 { (exit 1); exit 1; }; }
1296 - ac_package=`echo $ac_package | sed 's/-/_/g'`
1297 - eval "with_$ac_package=no" ;;
1298 + ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1299 + eval with_$ac_package=no ;;
1300
1301 --x)
1302 # Obsolete; use --with-x.
1303 @@ -634,8 +1137,7 @@ Try \`$0 --help' for more information."
1304 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1305 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1306 { (exit 1); exit 1; }; }
1307 - ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
1308 - eval "$ac_envvar='$ac_optarg'"
1309 + eval $ac_envvar=\$ac_optarg
1310 export $ac_envvar ;;
1311
1312 *)
1313 @@ -655,27 +1157,19 @@ if test -n "$ac_prev"; then
1314 { (exit 1); exit 1; }; }
1315 fi
1316
1317 -# Be sure to have absolute paths.
1318 -for ac_var in exec_prefix prefix
1319 -do
1320 - eval ac_val=$`echo $ac_var`
1321 - case $ac_val in
1322 - [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
1323 - *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1324 - { (exit 1); exit 1; }; };;
1325 - esac
1326 -done
1327 -
1328 -# Be sure to have absolute paths.
1329 -for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
1330 - localstatedir libdir includedir oldincludedir infodir mandir
1331 +# Be sure to have absolute directory names.
1332 +for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1333 + datadir sysconfdir sharedstatedir localstatedir includedir \
1334 + oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1335 + libdir localedir mandir
1336 do
1337 - eval ac_val=$`echo $ac_var`
1338 + eval ac_val=\$$ac_var
1339 case $ac_val in
1340 - [\\/$]* | ?:[\\/]* ) ;;
1341 - *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1342 - { (exit 1); exit 1; }; };;
1343 + [\\/$]* | ?:[\\/]* ) continue;;
1344 + NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1345 esac
1346 + { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1347 + { (exit 1); exit 1; }; }
1348 done
1349
1350 # There might be people who depend on the old broken behavior: `$host'
1351 @@ -702,74 +1196,76 @@ test -n "$host_alias" && ac_tool_prefix=
1352 test "$silent" = yes && exec 6>/dev/null
1353
1354
1355 +ac_pwd=`pwd` && test -n "$ac_pwd" &&
1356 +ac_ls_di=`ls -di .` &&
1357 +ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1358 + { echo "$as_me: error: Working directory cannot be determined" >&2
1359 + { (exit 1); exit 1; }; }
1360 +test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1361 + { echo "$as_me: error: pwd does not report name of working directory" >&2
1362 + { (exit 1); exit 1; }; }
1363 +
1364 +
1365 # Find the source files, if location was not specified.
1366 if test -z "$srcdir"; then
1367 ac_srcdir_defaulted=yes
1368 - # Try the directory containing this script, then its parent.
1369 - ac_confdir=`(dirname "$0") 2>/dev/null ||
1370 + # Try the directory containing this script, then the parent directory.
1371 + ac_confdir=`$as_dirname -- "$0" ||
1372 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1373 X"$0" : 'X\(//\)[^/]' \| \
1374 X"$0" : 'X\(//\)$' \| \
1375 - X"$0" : 'X\(/\)' \| \
1376 - . : '\(.\)' 2>/dev/null ||
1377 + X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1378 echo X"$0" |
1379 - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
1380 - /^X\(\/\/\)[^/].*/{ s//\1/; q; }
1381 - /^X\(\/\/\)$/{ s//\1/; q; }
1382 - /^X\(\/\).*/{ s//\1/; q; }
1383 - s/.*/./; q'`
1384 + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1385 + s//\1/
1386 + q
1387 + }
1388 + /^X\(\/\/\)[^/].*/{
1389 + s//\1/
1390 + q
1391 + }
1392 + /^X\(\/\/\)$/{
1393 + s//\1/
1394 + q
1395 + }
1396 + /^X\(\/\).*/{
1397 + s//\1/
1398 + q
1399 + }
1400 + s/.*/./; q'`
1401 srcdir=$ac_confdir
1402 - if test ! -r $srcdir/$ac_unique_file; then
1403 + if test ! -r "$srcdir/$ac_unique_file"; then
1404 srcdir=..
1405 fi
1406 else
1407 ac_srcdir_defaulted=no
1408 fi
1409 -if test ! -r $srcdir/$ac_unique_file; then
1410 - if test "$ac_srcdir_defaulted" = yes; then
1411 - { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
1412 - { (exit 1); exit 1; }; }
1413 - else
1414 - { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1415 - { (exit 1); exit 1; }; }
1416 - fi
1417 -fi
1418 -(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
1419 - { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
1420 - { (exit 1); exit 1; }; }
1421 -srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
1422 -ac_env_build_alias_set=${build_alias+set}
1423 -ac_env_build_alias_value=$build_alias
1424 -ac_cv_env_build_alias_set=${build_alias+set}
1425 -ac_cv_env_build_alias_value=$build_alias
1426 -ac_env_host_alias_set=${host_alias+set}
1427 -ac_env_host_alias_value=$host_alias
1428 -ac_cv_env_host_alias_set=${host_alias+set}
1429 -ac_cv_env_host_alias_value=$host_alias
1430 -ac_env_target_alias_set=${target_alias+set}
1431 -ac_env_target_alias_value=$target_alias
1432 -ac_cv_env_target_alias_set=${target_alias+set}
1433 -ac_cv_env_target_alias_value=$target_alias
1434 -ac_env_CC_set=${CC+set}
1435 -ac_env_CC_value=$CC
1436 -ac_cv_env_CC_set=${CC+set}
1437 -ac_cv_env_CC_value=$CC
1438 -ac_env_CFLAGS_set=${CFLAGS+set}
1439 -ac_env_CFLAGS_value=$CFLAGS
1440 -ac_cv_env_CFLAGS_set=${CFLAGS+set}
1441 -ac_cv_env_CFLAGS_value=$CFLAGS
1442 -ac_env_LDFLAGS_set=${LDFLAGS+set}
1443 -ac_env_LDFLAGS_value=$LDFLAGS
1444 -ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
1445 -ac_cv_env_LDFLAGS_value=$LDFLAGS
1446 -ac_env_CPPFLAGS_set=${CPPFLAGS+set}
1447 -ac_env_CPPFLAGS_value=$CPPFLAGS
1448 -ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
1449 -ac_cv_env_CPPFLAGS_value=$CPPFLAGS
1450 -ac_env_CPP_set=${CPP+set}
1451 -ac_env_CPP_value=$CPP
1452 -ac_cv_env_CPP_set=${CPP+set}
1453 -ac_cv_env_CPP_value=$CPP
1454 +if test ! -r "$srcdir/$ac_unique_file"; then
1455 + test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1456 + { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1457 + { (exit 1); exit 1; }; }
1458 +fi
1459 +ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1460 +ac_abs_confdir=`(
1461 + cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1462 + { (exit 1); exit 1; }; }
1463 + pwd)`
1464 +# When building in place, set srcdir=.
1465 +if test "$ac_abs_confdir" = "$ac_pwd"; then
1466 + srcdir=.
1467 +fi
1468 +# Remove unnecessary trailing slashes from srcdir.
1469 +# Double slashes in file names in object file debugging info
1470 +# mess up M-x gdb in Emacs.
1471 +case $srcdir in
1472 +*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1473 +esac
1474 +for ac_var in $ac_precious_vars; do
1475 + eval ac_env_${ac_var}_set=\${${ac_var}+set}
1476 + eval ac_env_${ac_var}_value=\$${ac_var}
1477 + eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1478 + eval ac_cv_env_${ac_var}_value=\$${ac_var}
1479 +done
1480
1481 #
1482 # Report the --help message.
1483 @@ -798,9 +1294,6 @@ Configuration:
1484 -n, --no-create do not create output files
1485 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1486
1487 -_ACEOF
1488 -
1489 - cat <<_ACEOF
1490 Installation directories:
1491 --prefix=PREFIX install architecture-independent files in PREFIX
1492 [$ac_default_prefix]
1493 @@ -818,15 +1311,22 @@ Fine tuning of the installation director
1494 --bindir=DIR user executables [EPREFIX/bin]
1495 --sbindir=DIR system admin executables [EPREFIX/sbin]
1496 --libexecdir=DIR program executables [EPREFIX/libexec]
1497 - --datadir=DIR read-only architecture-independent data [PREFIX/share]
1498 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1499 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1500 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1501 --libdir=DIR object code libraries [EPREFIX/lib]
1502 --includedir=DIR C header files [PREFIX/include]
1503 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1504 - --infodir=DIR info documentation [PREFIX/info]
1505 - --mandir=DIR man documentation [PREFIX/man]
1506 + --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1507 + --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1508 + --infodir=DIR info documentation [DATAROOTDIR/info]
1509 + --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1510 + --mandir=DIR man documentation [DATAROOTDIR/man]
1511 + --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1512 + --htmldir=DIR html documentation [DOCDIR]
1513 + --dvidir=DIR dvi documentation [DOCDIR]
1514 + --pdfdir=DIR pdf documentation [DOCDIR]
1515 + --psdir=DIR ps documentation [DOCDIR]
1516 _ACEOF
1517
1518 cat <<\_ACEOF
1519 @@ -880,126 +1380,95 @@ Some influential environment variables:
1520 CFLAGS C compiler flags
1521 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1522 nonstandard directory <lib dir>
1523 - CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1524 - headers in a nonstandard directory <include dir>
1525 + LIBS libraries to pass to the linker, e.g. -l<library>
1526 + CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1527 + you have headers in a nonstandard directory <include dir>
1528 CPP C preprocessor
1529
1530 Use these variables to override the choices made by `configure' or to help
1531 it to find libraries and programs with nonstandard names/locations.
1532
1533 _ACEOF
1534 +ac_status=$?
1535 fi
1536
1537 if test "$ac_init_help" = "recursive"; then
1538 # If there are subdirs, report their specific --help.
1539 - ac_popdir=`pwd`
1540 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1541 - test -d $ac_dir || continue
1542 + test -d "$ac_dir" || continue
1543 ac_builddir=.
1544
1545 -if test "$ac_dir" != .; then
1546 +case "$ac_dir" in
1547 +.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1548 +*)
1549 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1550 - # A "../" for each directory in $ac_dir_suffix.
1551 - ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1552 -else
1553 - ac_dir_suffix= ac_top_builddir=
1554 -fi
1555 + # A ".." for each directory in $ac_dir_suffix.
1556 + ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1557 + case $ac_top_builddir_sub in
1558 + "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1559 + *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1560 + esac ;;
1561 +esac
1562 +ac_abs_top_builddir=$ac_pwd
1563 +ac_abs_builddir=$ac_pwd$ac_dir_suffix
1564 +# for backward compatibility:
1565 +ac_top_builddir=$ac_top_build_prefix
1566
1567 case $srcdir in
1568 - .) # No --srcdir option. We are building in place.
1569 + .) # We are building in place.
1570 ac_srcdir=.
1571 - if test -z "$ac_top_builddir"; then
1572 - ac_top_srcdir=.
1573 - else
1574 - ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1575 - fi ;;
1576 - [\\/]* | ?:[\\/]* ) # Absolute path.
1577 + ac_top_srcdir=$ac_top_builddir_sub
1578 + ac_abs_top_srcdir=$ac_pwd ;;
1579 + [\\/]* | ?:[\\/]* ) # Absolute name.
1580 ac_srcdir=$srcdir$ac_dir_suffix;
1581 - ac_top_srcdir=$srcdir ;;
1582 - *) # Relative path.
1583 - ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1584 - ac_top_srcdir=$ac_top_builddir$srcdir ;;
1585 -esac
1586 -
1587 -# Do not use `cd foo && pwd` to compute absolute paths, because
1588 -# the directories may not exist.
1589 -case `pwd` in
1590 -.) ac_abs_builddir="$ac_dir";;
1591 -*)
1592 - case "$ac_dir" in
1593 - .) ac_abs_builddir=`pwd`;;
1594 - [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1595 - *) ac_abs_builddir=`pwd`/"$ac_dir";;
1596 - esac;;
1597 -esac
1598 -case $ac_abs_builddir in
1599 -.) ac_abs_top_builddir=${ac_top_builddir}.;;
1600 -*)
1601 - case ${ac_top_builddir}. in
1602 - .) ac_abs_top_builddir=$ac_abs_builddir;;
1603 - [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1604 - *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1605 - esac;;
1606 -esac
1607 -case $ac_abs_builddir in
1608 -.) ac_abs_srcdir=$ac_srcdir;;
1609 -*)
1610 - case $ac_srcdir in
1611 - .) ac_abs_srcdir=$ac_abs_builddir;;
1612 - [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1613 - *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1614 - esac;;
1615 -esac
1616 -case $ac_abs_builddir in
1617 -.) ac_abs_top_srcdir=$ac_top_srcdir;;
1618 -*)
1619 - case $ac_top_srcdir in
1620 - .) ac_abs_top_srcdir=$ac_abs_builddir;;
1621 - [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1622 - *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1623 - esac;;
1624 -esac
1625 -
1626 - cd $ac_dir
1627 - # Check for guested configure; otherwise get Cygnus style configure.
1628 - if test -f $ac_srcdir/configure.gnu; then
1629 - echo
1630 - $SHELL $ac_srcdir/configure.gnu --help=recursive
1631 - elif test -f $ac_srcdir/configure; then
1632 - echo
1633 - $SHELL $ac_srcdir/configure --help=recursive
1634 - elif test -f $ac_srcdir/configure.ac ||
1635 - test -f $ac_srcdir/configure.in; then
1636 - echo
1637 - $ac_configure --help
1638 + ac_top_srcdir=$srcdir
1639 + ac_abs_top_srcdir=$srcdir ;;
1640 + *) # Relative name.
1641 + ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1642 + ac_top_srcdir=$ac_top_build_prefix$srcdir
1643 + ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1644 +esac
1645 +ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1646 +
1647 + cd "$ac_dir" || { ac_status=$?; continue; }
1648 + # Check for guested configure.
1649 + if test -f "$ac_srcdir/configure.gnu"; then
1650 + echo &&
1651 + $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1652 + elif test -f "$ac_srcdir/configure"; then
1653 + echo &&
1654 + $SHELL "$ac_srcdir/configure" --help=recursive
1655 else
1656 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1657 - fi
1658 - cd $ac_popdir
1659 + fi || ac_status=$?
1660 + cd "$ac_pwd" || { ac_status=$?; break; }
1661 done
1662 fi
1663
1664 -test -n "$ac_init_help" && exit 0
1665 +test -n "$ac_init_help" && exit $ac_status
1666 if $ac_init_version; then
1667 cat <<\_ACEOF
1668 +configure
1669 +generated by GNU Autoconf 2.61
1670
1671 -Copyright (C) 2003 Free Software Foundation, Inc.
1672 +Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1673 +2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1674 This configure script is free software; the Free Software Foundation
1675 gives unlimited permission to copy, distribute and modify it.
1676 _ACEOF
1677 - exit 0
1678 + exit
1679 fi
1680 -exec 5>config.log
1681 -cat >&5 <<_ACEOF
1682 +cat >config.log <<_ACEOF
1683 This file contains any messages produced by compilers while
1684 running configure, to aid debugging if configure makes a mistake.
1685
1686 It was created by $as_me, which was
1687 -generated by GNU Autoconf 2.59. Invocation command line was
1688 +generated by GNU Autoconf 2.61. Invocation command line was
1689
1690 $ $0 $@
1691
1692 _ACEOF
1693 +exec 5>>config.log
1694 {
1695 cat <<_ASUNAME
1696 ## --------- ##
1697 @@ -1018,7 +1487,7 @@ uname -v = `(uname -v) 2>/dev/null || ec
1698 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1699 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1700 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1701 -hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1702 +/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1703 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1704 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1705 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1706 @@ -1032,6 +1501,7 @@ do
1707 test -z "$as_dir" && as_dir=.
1708 echo "PATH: $as_dir"
1709 done
1710 +IFS=$as_save_IFS
1711
1712 } >&5
1713
1714 @@ -1053,7 +1523,6 @@ _ACEOF
1715 ac_configure_args=
1716 ac_configure_args0=
1717 ac_configure_args1=
1718 -ac_sep=
1719 ac_must_keep_next=false
1720 for ac_pass in 1 2
1721 do
1722 @@ -1064,7 +1533,7 @@ do
1723 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1724 | -silent | --silent | --silen | --sile | --sil)
1725 continue ;;
1726 - *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1727 + *\'*)
1728 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1729 esac
1730 case $ac_pass in
1731 @@ -1086,9 +1555,7 @@ do
1732 -* ) ac_must_keep_next=true ;;
1733 esac
1734 fi
1735 - ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1736 - # Get rid of the leading space.
1737 - ac_sep=" "
1738 + ac_configure_args="$ac_configure_args '$ac_arg'"
1739 ;;
1740 esac
1741 done
1742 @@ -1099,8 +1566,8 @@ $as_unset ac_configure_args1 || test "${
1743 # When interrupted or exit'd, cleanup temporary files, and complete
1744 # config.log. We remove comments because anyway the quotes in there
1745 # would cause problems or look ugly.
1746 -# WARNING: Be sure not to use single quotes in there, as some shells,
1747 -# such as our DU 5.0 friend, will then `close' the trap.
1748 +# WARNING: Use '\'' to represent an apostrophe within the trap.
1749 +# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1750 trap 'exit_status=$?
1751 # Save into config.log some information that might help in debugging.
1752 {
1753 @@ -1113,20 +1580,34 @@ trap 'exit_status=$?
1754 _ASBOX
1755 echo
1756 # The following way of writing the cache mishandles newlines in values,
1757 -{
1758 +(
1759 + for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1760 + eval ac_val=\$$ac_var
1761 + case $ac_val in #(
1762 + *${as_nl}*)
1763 + case $ac_var in #(
1764 + *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1765 +echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1766 + esac
1767 + case $ac_var in #(
1768 + _ | IFS | as_nl) ;; #(
1769 + *) $as_unset $ac_var ;;
1770 + esac ;;
1771 + esac
1772 + done
1773 (set) 2>&1 |
1774 - case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1775 - *ac_space=\ *)
1776 + case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1777 + *${as_nl}ac_space=\ *)
1778 sed -n \
1779 - "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1780 - s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1781 - ;;
1782 + "s/'\''/'\''\\\\'\'''\''/g;
1783 + s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1784 + ;; #(
1785 *)
1786 - sed -n \
1787 - "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1788 + sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1789 ;;
1790 - esac;
1791 -}
1792 + esac |
1793 + sort
1794 +)
1795 echo
1796
1797 cat <<\_ASBOX
1798 @@ -1137,22 +1618,28 @@ _ASBOX
1799 echo
1800 for ac_var in $ac_subst_vars
1801 do
1802 - eval ac_val=$`echo $ac_var`
1803 - echo "$ac_var='"'"'$ac_val'"'"'"
1804 + eval ac_val=\$$ac_var
1805 + case $ac_val in
1806 + *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1807 + esac
1808 + echo "$ac_var='\''$ac_val'\''"
1809 done | sort
1810 echo
1811
1812 if test -n "$ac_subst_files"; then
1813 cat <<\_ASBOX
1814 -## ------------- ##
1815 -## Output files. ##
1816 -## ------------- ##
1817 +## ------------------- ##
1818 +## File substitutions. ##
1819 +## ------------------- ##
1820 _ASBOX
1821 echo
1822 for ac_var in $ac_subst_files
1823 do
1824 - eval ac_val=$`echo $ac_var`
1825 - echo "$ac_var='"'"'$ac_val'"'"'"
1826 + eval ac_val=\$$ac_var
1827 + case $ac_val in
1828 + *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1829 + esac
1830 + echo "$ac_var='\''$ac_val'\''"
1831 done | sort
1832 echo
1833 fi
1834 @@ -1164,26 +1651,24 @@ _ASBOX
1835 ## ----------- ##
1836 _ASBOX
1837 echo
1838 - sed "/^$/d" confdefs.h | sort
1839 + cat confdefs.h
1840 echo
1841 fi
1842 test "$ac_signal" != 0 &&
1843 echo "$as_me: caught signal $ac_signal"
1844 echo "$as_me: exit $exit_status"
1845 } >&5
1846 - rm -f core *.core &&
1847 - rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1848 + rm -f core *.core core.conftest.* &&
1849 + rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1850 exit $exit_status
1851 - ' 0
1852 +' 0
1853 for ac_signal in 1 2 13 15; do
1854 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1855 done
1856 ac_signal=0
1857
1858 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1859 -rm -rf conftest* confdefs.h
1860 -# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1861 -echo >confdefs.h
1862 +rm -f -r conftest* confdefs.h
1863
1864 # Predefined preprocessor variables.
1865
1866 @@ -1214,14 +1699,17 @@ _ACEOF
1867
1868 # Let the site file select an alternate cache file if it wants to.
1869 # Prefer explicitly selected file to automatically selected ones.
1870 -if test -z "$CONFIG_SITE"; then
1871 - if test "x$prefix" != xNONE; then
1872 - CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1873 - else
1874 - CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1875 - fi
1876 +if test -n "$CONFIG_SITE"; then
1877 + set x "$CONFIG_SITE"
1878 +elif test "x$prefix" != xNONE; then
1879 + set x "$prefix/share/config.site" "$prefix/etc/config.site"
1880 +else
1881 + set x "$ac_default_prefix/share/config.site" \
1882 + "$ac_default_prefix/etc/config.site"
1883 fi
1884 -for ac_site_file in $CONFIG_SITE; do
1885 +shift
1886 +for ac_site_file
1887 +do
1888 if test -r "$ac_site_file"; then
1889 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1890 echo "$as_me: loading site script $ac_site_file" >&6;}
1891 @@ -1237,8 +1725,8 @@ if test -r "$cache_file"; then
1892 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1893 echo "$as_me: loading cache $cache_file" >&6;}
1894 case $cache_file in
1895 - [\\/]* | ?:[\\/]* ) . $cache_file;;
1896 - *) . ./$cache_file;;
1897 + [\\/]* | ?:[\\/]* ) . "$cache_file";;
1898 + *) . "./$cache_file";;
1899 esac
1900 fi
1901 else
1902 @@ -1250,12 +1738,11 @@ fi
1903 # Check that the precious variables saved in the cache have kept the same
1904 # value.
1905 ac_cache_corrupted=false
1906 -for ac_var in `(set) 2>&1 |
1907 - sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1908 +for ac_var in $ac_precious_vars; do
1909 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1910 eval ac_new_set=\$ac_env_${ac_var}_set
1911 - eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1912 - eval ac_new_val="\$ac_env_${ac_var}_value"
1913 + eval ac_old_val=\$ac_cv_env_${ac_var}_value
1914 + eval ac_new_val=\$ac_env_${ac_var}_value
1915 case $ac_old_set,$ac_new_set in
1916 set,)
1917 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1918 @@ -1280,8 +1767,7 @@ echo "$as_me: current value: $ac_new_v
1919 # Pass precious variables to config.status.
1920 if test "$ac_new_set" = set; then
1921 case $ac_new_val in
1922 - *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1923 - ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1924 + *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1925 *) ac_arg=$ac_var=$ac_new_val ;;
1926 esac
1927 case " $ac_configure_args " in
1928 @@ -1298,12 +1784,6 @@ echo "$as_me: error: run \`make distclea
1929 { (exit 1); exit 1; }; }
1930 fi
1931
1932 -ac_ext=c
1933 -ac_cpp='$CPP $CPPFLAGS'
1934 -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1935 -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1936 -ac_compiler_gnu=$ac_cv_c_compiler_gnu
1937 -
1938
1939
1940
1941 @@ -1320,109 +1800,164 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
1942
1943
1944
1945 +ac_ext=c
1946 +ac_cpp='$CPP $CPPFLAGS'
1947 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1948 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1949 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
1950
1951
1952
1953
1954 ac_aux_dir=
1955 -for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1956 - if test -f $ac_dir/install-sh; then
1957 +for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1958 + if test -f "$ac_dir/install-sh"; then
1959 ac_aux_dir=$ac_dir
1960 ac_install_sh="$ac_aux_dir/install-sh -c"
1961 break
1962 - elif test -f $ac_dir/install.sh; then
1963 + elif test -f "$ac_dir/install.sh"; then
1964 ac_aux_dir=$ac_dir
1965 ac_install_sh="$ac_aux_dir/install.sh -c"
1966 break
1967 - elif test -f $ac_dir/shtool; then
1968 + elif test -f "$ac_dir/shtool"; then
1969 ac_aux_dir=$ac_dir
1970 ac_install_sh="$ac_aux_dir/shtool install -c"
1971 break
1972 fi
1973 done
1974 if test -z "$ac_aux_dir"; then
1975 - { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1976 -echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1977 + { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1978 +echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1979 { (exit 1); exit 1; }; }
1980 fi
1981 -ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1982 -ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1983 -ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1984 +
1985 +# These three variables are undocumented and unsupported,
1986 +# and are intended to be withdrawn in a future Autoconf release.
1987 +# They can cause serious problems if a builder's source tree is in a directory
1988 +# whose full name contains unusual characters.
1989 +ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1990 +ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1991 +ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1992 +
1993
1994 # Make sure we can run config.sub.
1995 -$ac_config_sub sun4 >/dev/null 2>&1 ||
1996 - { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1997 -echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1998 +$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1999 + { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2000 +echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2001 { (exit 1); exit 1; }; }
2002
2003 -echo "$as_me:$LINENO: checking build system type" >&5
2004 -echo $ECHO_N "checking build system type... $ECHO_C" >&6
2005 +{ echo "$as_me:$LINENO: checking build system type" >&5
2006 +echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2007 if test "${ac_cv_build+set}" = set; then
2008 echo $ECHO_N "(cached) $ECHO_C" >&6
2009 else
2010 - ac_cv_build_alias=$build_alias
2011 -test -z "$ac_cv_build_alias" &&
2012 - ac_cv_build_alias=`$ac_config_guess`
2013 -test -z "$ac_cv_build_alias" &&
2014 + ac_build_alias=$build_alias
2015 +test "x$ac_build_alias" = x &&
2016 + ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2017 +test "x$ac_build_alias" = x &&
2018 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2019 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2020 { (exit 1); exit 1; }; }
2021 -ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2022 - { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2023 -echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2024 +ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2025 + { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2026 +echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2027 { (exit 1); exit 1; }; }
2028
2029 fi
2030 -echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2031 -echo "${ECHO_T}$ac_cv_build" >&6
2032 +{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2033 +echo "${ECHO_T}$ac_cv_build" >&6; }
2034 +case $ac_cv_build in
2035 +*-*-*) ;;
2036 +*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2037 +echo "$as_me: error: invalid value of canonical build" >&2;}
2038 + { (exit 1); exit 1; }; };;
2039 +esac
2040 build=$ac_cv_build
2041 -build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2042 -build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2043 -build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2044 +ac_save_IFS=$IFS; IFS='-'
2045 +set x $ac_cv_build
2046 +shift
2047 +build_cpu=$1
2048 +build_vendor=$2
2049 +shift; shift
2050 +# Remember, the first character of IFS is used to create $*,
2051 +# except with old shells:
2052 +build_os=$*
2053 +IFS=$ac_save_IFS
2054 +case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2055
2056
2057 -echo "$as_me:$LINENO: checking host system type" >&5
2058 -echo $ECHO_N "checking host system type... $ECHO_C" >&6
2059 +{ echo "$as_me:$LINENO: checking host system type" >&5
2060 +echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2061 if test "${ac_cv_host+set}" = set; then
2062 echo $ECHO_N "(cached) $ECHO_C" >&6
2063 else
2064 - ac_cv_host_alias=$host_alias
2065 -test -z "$ac_cv_host_alias" &&
2066 - ac_cv_host_alias=$ac_cv_build_alias
2067 -ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2068 - { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2069 -echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2070 + if test "x$host_alias" = x; then
2071 + ac_cv_host=$ac_cv_build
2072 +else
2073 + ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2074 + { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2075 +echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2076 { (exit 1); exit 1; }; }
2077 +fi
2078
2079 fi
2080 -echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2081 -echo "${ECHO_T}$ac_cv_host" >&6
2082 +{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2083 +echo "${ECHO_T}$ac_cv_host" >&6; }
2084 +case $ac_cv_host in
2085 +*-*-*) ;;
2086 +*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2087 +echo "$as_me: error: invalid value of canonical host" >&2;}
2088 + { (exit 1); exit 1; }; };;
2089 +esac
2090 host=$ac_cv_host
2091 -host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2092 -host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2093 -host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2094 +ac_save_IFS=$IFS; IFS='-'
2095 +set x $ac_cv_host
2096 +shift
2097 +host_cpu=$1
2098 +host_vendor=$2
2099 +shift; shift
2100 +# Remember, the first character of IFS is used to create $*,
2101 +# except with old shells:
2102 +host_os=$*
2103 +IFS=$ac_save_IFS
2104 +case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2105
2106
2107 -echo "$as_me:$LINENO: checking target system type" >&5
2108 -echo $ECHO_N "checking target system type... $ECHO_C" >&6
2109 +{ echo "$as_me:$LINENO: checking target system type" >&5
2110 +echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2111 if test "${ac_cv_target+set}" = set; then
2112 echo $ECHO_N "(cached) $ECHO_C" >&6
2113 else
2114 - ac_cv_target_alias=$target_alias
2115 -test "x$ac_cv_target_alias" = "x" &&
2116 - ac_cv_target_alias=$ac_cv_host_alias
2117 -ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
2118 - { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
2119 -echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
2120 + if test "x$target_alias" = x; then
2121 + ac_cv_target=$ac_cv_host
2122 +else
2123 + ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2124 + { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2125 +echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2126 { (exit 1); exit 1; }; }
2127 +fi
2128
2129 fi
2130 -echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2131 -echo "${ECHO_T}$ac_cv_target" >&6
2132 +{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2133 +echo "${ECHO_T}$ac_cv_target" >&6; }
2134 +case $ac_cv_target in
2135 +*-*-*) ;;
2136 +*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2137 +echo "$as_me: error: invalid value of canonical target" >&2;}
2138 + { (exit 1); exit 1; }; };;
2139 +esac
2140 target=$ac_cv_target
2141 -target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2142 -target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2143 -target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2144 +ac_save_IFS=$IFS; IFS='-'
2145 +set x $ac_cv_target
2146 +shift
2147 +target_cpu=$1
2148 +target_vendor=$2
2149 +shift; shift
2150 +# Remember, the first character of IFS is used to create $*,
2151 +# except with old shells:
2152 +target_os=$*
2153 +IFS=$ac_save_IFS
2154 +case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2155
2156
2157 # The aliases save the names the user supplied, while $host etc.
2158 @@ -1439,8 +1974,8 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
2159 if test -n "$ac_tool_prefix"; then
2160 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2161 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2162 -echo "$as_me:$LINENO: checking for $ac_word" >&5
2163 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2164 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2165 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2166 if test "${ac_cv_prog_CC+set}" = set; then
2167 echo $ECHO_N "(cached) $ECHO_C" >&6
2168 else
2169 @@ -1453,32 +1988,34 @@ do
2170 IFS=$as_save_IFS
2171 test -z "$as_dir" && as_dir=.
2172 for ac_exec_ext in '' $ac_executable_extensions; do
2173 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2174 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2175 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2176 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2177 break 2
2178 fi
2179 done
2180 done
2181 +IFS=$as_save_IFS
2182
2183 fi
2184 fi
2185 CC=$ac_cv_prog_CC
2186 if test -n "$CC"; then
2187 - echo "$as_me:$LINENO: result: $CC" >&5
2188 -echo "${ECHO_T}$CC" >&6
2189 + { echo "$as_me:$LINENO: result: $CC" >&5
2190 +echo "${ECHO_T}$CC" >&6; }
2191 else
2192 - echo "$as_me:$LINENO: result: no" >&5
2193 -echo "${ECHO_T}no" >&6
2194 + { echo "$as_me:$LINENO: result: no" >&5
2195 +echo "${ECHO_T}no" >&6; }
2196 fi
2197
2198 +
2199 fi
2200 if test -z "$ac_cv_prog_CC"; then
2201 ac_ct_CC=$CC
2202 # Extract the first word of "gcc", so it can be a program name with args.
2203 set dummy gcc; ac_word=$2
2204 -echo "$as_me:$LINENO: checking for $ac_word" >&5
2205 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2206 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2207 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2208 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2209 echo $ECHO_N "(cached) $ECHO_C" >&6
2210 else
2211 @@ -1491,36 +2028,51 @@ do
2212 IFS=$as_save_IFS
2213 test -z "$as_dir" && as_dir=.
2214 for ac_exec_ext in '' $ac_executable_extensions; do
2215 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2216 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2217 ac_cv_prog_ac_ct_CC="gcc"
2218 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2219 break 2
2220 fi
2221 done
2222 done
2223 +IFS=$as_save_IFS
2224
2225 fi
2226 fi
2227 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2228 if test -n "$ac_ct_CC"; then
2229 - echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2230 -echo "${ECHO_T}$ac_ct_CC" >&6
2231 + { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2232 +echo "${ECHO_T}$ac_ct_CC" >&6; }
2233 else
2234 - echo "$as_me:$LINENO: result: no" >&5
2235 -echo "${ECHO_T}no" >&6
2236 + { echo "$as_me:$LINENO: result: no" >&5
2237 +echo "${ECHO_T}no" >&6; }
2238 fi
2239
2240 - CC=$ac_ct_CC
2241 + if test "x$ac_ct_CC" = x; then
2242 + CC=""
2243 + else
2244 + case $cross_compiling:$ac_tool_warned in
2245 +yes:)
2246 +{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2247 +whose name does not start with the host triplet. If you think this
2248 +configuration is useful to you, please write to autoconf@gnu.org." >&5
2249 +echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2250 +whose name does not start with the host triplet. If you think this
2251 +configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2252 +ac_tool_warned=yes ;;
2253 +esac
2254 + CC=$ac_ct_CC
2255 + fi
2256 else
2257 CC="$ac_cv_prog_CC"
2258 fi
2259
2260 if test -z "$CC"; then
2261 - if test -n "$ac_tool_prefix"; then
2262 - # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2263 + if test -n "$ac_tool_prefix"; then
2264 + # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2265 set dummy ${ac_tool_prefix}cc; ac_word=$2
2266 -echo "$as_me:$LINENO: checking for $ac_word" >&5
2267 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2268 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2269 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2270 if test "${ac_cv_prog_CC+set}" = set; then
2271 echo $ECHO_N "(cached) $ECHO_C" >&6
2272 else
2273 @@ -1533,74 +2085,34 @@ do
2274 IFS=$as_save_IFS
2275 test -z "$as_dir" && as_dir=.
2276 for ac_exec_ext in '' $ac_executable_extensions; do
2277 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2278 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2279 ac_cv_prog_CC="${ac_tool_prefix}cc"
2280 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2281 break 2
2282 fi
2283 done
2284 done
2285 +IFS=$as_save_IFS
2286
2287 fi
2288 fi
2289 CC=$ac_cv_prog_CC
2290 if test -n "$CC"; then
2291 - echo "$as_me:$LINENO: result: $CC" >&5
2292 -echo "${ECHO_T}$CC" >&6
2293 -else
2294 - echo "$as_me:$LINENO: result: no" >&5
2295 -echo "${ECHO_T}no" >&6
2296 -fi
2297 -
2298 -fi
2299 -if test -z "$ac_cv_prog_CC"; then
2300 - ac_ct_CC=$CC
2301 - # Extract the first word of "cc", so it can be a program name with args.
2302 -set dummy cc; ac_word=$2
2303 -echo "$as_me:$LINENO: checking for $ac_word" >&5
2304 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2305 -if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2306 - echo $ECHO_N "(cached) $ECHO_C" >&6
2307 -else
2308 - if test -n "$ac_ct_CC"; then
2309 - ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2310 -else
2311 -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2312 -for as_dir in $PATH
2313 -do
2314 - IFS=$as_save_IFS
2315 - test -z "$as_dir" && as_dir=.
2316 - for ac_exec_ext in '' $ac_executable_extensions; do
2317 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2318 - ac_cv_prog_ac_ct_CC="cc"
2319 - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2320 - break 2
2321 - fi
2322 -done
2323 -done
2324 -
2325 -fi
2326 -fi
2327 -ac_ct_CC=$ac_cv_prog_ac_ct_CC
2328 -if test -n "$ac_ct_CC"; then
2329 - echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2330 -echo "${ECHO_T}$ac_ct_CC" >&6
2331 + { echo "$as_me:$LINENO: result: $CC" >&5
2332 +echo "${ECHO_T}$CC" >&6; }
2333 else
2334 - echo "$as_me:$LINENO: result: no" >&5
2335 -echo "${ECHO_T}no" >&6
2336 + { echo "$as_me:$LINENO: result: no" >&5
2337 +echo "${ECHO_T}no" >&6; }
2338 fi
2339
2340 - CC=$ac_ct_CC
2341 -else
2342 - CC="$ac_cv_prog_CC"
2343 -fi
2344
2345 + fi
2346 fi
2347 if test -z "$CC"; then
2348 # Extract the first word of "cc", so it can be a program name with args.
2349 set dummy cc; ac_word=$2
2350 -echo "$as_me:$LINENO: checking for $ac_word" >&5
2351 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2352 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2353 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2354 if test "${ac_cv_prog_CC+set}" = set; then
2355 echo $ECHO_N "(cached) $ECHO_C" >&6
2356 else
2357 @@ -1614,7 +2126,7 @@ do
2358 IFS=$as_save_IFS
2359 test -z "$as_dir" && as_dir=.
2360 for ac_exec_ext in '' $ac_executable_extensions; do
2361 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2362 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2363 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2364 ac_prog_rejected=yes
2365 continue
2366 @@ -1625,6 +2137,7 @@ do
2367 fi
2368 done
2369 done
2370 +IFS=$as_save_IFS
2371
2372 if test $ac_prog_rejected = yes; then
2373 # We found a bogon in the path, so make sure we never use it.
2374 @@ -1642,22 +2155,23 @@ fi
2375 fi
2376 CC=$ac_cv_prog_CC
2377 if test -n "$CC"; then
2378 - echo "$as_me:$LINENO: result: $CC" >&5
2379 -echo "${ECHO_T}$CC" >&6
2380 + { echo "$as_me:$LINENO: result: $CC" >&5
2381 +echo "${ECHO_T}$CC" >&6; }
2382 else
2383 - echo "$as_me:$LINENO: result: no" >&5
2384 -echo "${ECHO_T}no" >&6
2385 + { echo "$as_me:$LINENO: result: no" >&5
2386 +echo "${ECHO_T}no" >&6; }
2387 fi
2388
2389 +
2390 fi
2391 if test -z "$CC"; then
2392 if test -n "$ac_tool_prefix"; then
2393 - for ac_prog in cl
2394 + for ac_prog in cl.exe
2395 do
2396 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2397 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2398 -echo "$as_me:$LINENO: checking for $ac_word" >&5
2399 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2400 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2401 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2402 if test "${ac_cv_prog_CC+set}" = set; then
2403 echo $ECHO_N "(cached) $ECHO_C" >&6
2404 else
2405 @@ -1670,36 +2184,38 @@ do
2406 IFS=$as_save_IFS
2407 test -z "$as_dir" && as_dir=.
2408 for ac_exec_ext in '' $ac_executable_extensions; do
2409 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2410 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2411 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2412 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2413 break 2
2414 fi
2415 done
2416 done
2417 +IFS=$as_save_IFS
2418
2419 fi
2420 fi
2421 CC=$ac_cv_prog_CC
2422 if test -n "$CC"; then
2423 - echo "$as_me:$LINENO: result: $CC" >&5
2424 -echo "${ECHO_T}$CC" >&6
2425 + { echo "$as_me:$LINENO: result: $CC" >&5
2426 +echo "${ECHO_T}$CC" >&6; }
2427 else
2428 - echo "$as_me:$LINENO: result: no" >&5
2429 -echo "${ECHO_T}no" >&6
2430 + { echo "$as_me:$LINENO: result: no" >&5
2431 +echo "${ECHO_T}no" >&6; }
2432 fi
2433
2434 +
2435 test -n "$CC" && break
2436 done
2437 fi
2438 if test -z "$CC"; then
2439 ac_ct_CC=$CC
2440 - for ac_prog in cl
2441 + for ac_prog in cl.exe
2442 do
2443 # Extract the first word of "$ac_prog", so it can be a program name with args.
2444 set dummy $ac_prog; ac_word=$2
2445 -echo "$as_me:$LINENO: checking for $ac_word" >&5
2446 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2447 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2448 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2449 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2450 echo $ECHO_N "(cached) $ECHO_C" >&6
2451 else
2452 @@ -1712,29 +2228,45 @@ do
2453 IFS=$as_save_IFS
2454 test -z "$as_dir" && as_dir=.
2455 for ac_exec_ext in '' $ac_executable_extensions; do
2456 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2457 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2458 ac_cv_prog_ac_ct_CC="$ac_prog"
2459 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2460 break 2
2461 fi
2462 done
2463 done
2464 +IFS=$as_save_IFS
2465
2466 fi
2467 fi
2468 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2469 if test -n "$ac_ct_CC"; then
2470 - echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2471 -echo "${ECHO_T}$ac_ct_CC" >&6
2472 + { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2473 +echo "${ECHO_T}$ac_ct_CC" >&6; }
2474 else
2475 - echo "$as_me:$LINENO: result: no" >&5
2476 -echo "${ECHO_T}no" >&6
2477 + { echo "$as_me:$LINENO: result: no" >&5
2478 +echo "${ECHO_T}no" >&6; }
2479 fi
2480
2481 +
2482 test -n "$ac_ct_CC" && break
2483 done
2484
2485 - CC=$ac_ct_CC
2486 + if test "x$ac_ct_CC" = x; then
2487 + CC=""
2488 + else
2489 + case $cross_compiling:$ac_tool_warned in
2490 +yes:)
2491 +{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2492 +whose name does not start with the host triplet. If you think this
2493 +configuration is useful to you, please write to autoconf@gnu.org." >&5
2494 +echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2495 +whose name does not start with the host triplet. If you think this
2496 +configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2497 +ac_tool_warned=yes ;;
2498 +esac
2499 + CC=$ac_ct_CC
2500 + fi
2501 fi
2502
2503 fi
2504 @@ -1747,21 +2279,35 @@ See \`config.log' for more details." >&2
2505 { (exit 1); exit 1; }; }
2506
2507 # Provide some information about the compiler.
2508 -echo "$as_me:$LINENO:" \
2509 - "checking for C compiler version" >&5
2510 +echo "$as_me:$LINENO: checking for C compiler version" >&5
2511 ac_compiler=`set X $ac_compile; echo $2`
2512 -{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2513 - (eval $ac_compiler --version </dev/null >&5) 2>&5
2514 +{ (ac_try="$ac_compiler --version >&5"
2515 +case "(($ac_try" in
2516 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2517 + *) ac_try_echo=$ac_try;;
2518 +esac
2519 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2520 + (eval "$ac_compiler --version >&5") 2>&5
2521 ac_status=$?
2522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2523 (exit $ac_status); }
2524 -{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2525 - (eval $ac_compiler -v </dev/null >&5) 2>&5
2526 +{ (ac_try="$ac_compiler -v >&5"
2527 +case "(($ac_try" in
2528 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2529 + *) ac_try_echo=$ac_try;;
2530 +esac
2531 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2532 + (eval "$ac_compiler -v >&5") 2>&5
2533 ac_status=$?
2534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2535 (exit $ac_status); }
2536 -{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2537 - (eval $ac_compiler -V </dev/null >&5) 2>&5
2538 +{ (ac_try="$ac_compiler -V >&5"
2539 +case "(($ac_try" in
2540 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2541 + *) ac_try_echo=$ac_try;;
2542 +esac
2543 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2544 + (eval "$ac_compiler -V >&5") 2>&5
2545 ac_status=$?
2546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2547 (exit $ac_status); }
2548 @@ -1786,47 +2332,77 @@ ac_clean_files="$ac_clean_files a.out a.
2549 # Try to create an executable without -o first, disregard a.out.
2550 # It will help us diagnose broken compilers, and finding out an intuition
2551 # of exeext.
2552 -echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2553 -echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2554 +{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2555 +echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2556 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2557 -if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2558 - (eval $ac_link_default) 2>&5
2559 +#
2560 +# List of possible output files, starting from the most likely.
2561 +# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2562 +# only as a last resort. b.out is created by i960 compilers.
2563 +ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2564 +#
2565 +# The IRIX 6 linker writes into existing files which may not be
2566 +# executable, retaining their permissions. Remove them first so a
2567 +# subsequent execution test works.
2568 +ac_rmfiles=
2569 +for ac_file in $ac_files
2570 +do
2571 + case $ac_file in
2572 + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2573 + * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2574 + esac
2575 +done
2576 +rm -f $ac_rmfiles
2577 +
2578 +if { (ac_try="$ac_link_default"
2579 +case "(($ac_try" in
2580 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2581 + *) ac_try_echo=$ac_try;;
2582 +esac
2583 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2584 + (eval "$ac_link_default") 2>&5
2585 ac_status=$?
2586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2587 (exit $ac_status); }; then
2588 - # Find the output, starting from the most likely. This scheme is
2589 -# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2590 -# resort.
2591 -
2592 -# Be careful to initialize this variable, since it used to be cached.
2593 -# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2594 -ac_cv_exeext=
2595 -# b.out is created by i960 compilers.
2596 -for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2597 + # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2598 +# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2599 +# in a Makefile. We should not override ac_cv_exeext if it was cached,
2600 +# so that the user can short-circuit this test for compilers unknown to
2601 +# Autoconf.
2602 +for ac_file in $ac_files ''
2603 do
2604 test -f "$ac_file" || continue
2605 case $ac_file in
2606 - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2607 - ;;
2608 - conftest.$ac_ext )
2609 - # This is the source file.
2610 + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2611 ;;
2612 [ab].out )
2613 # We found the default executable, but exeext='' is most
2614 # certainly right.
2615 break;;
2616 *.* )
2617 - ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2618 - # FIXME: I believe we export ac_cv_exeext for Libtool,
2619 - # but it would be cool to find out if it's true. Does anybody
2620 - # maintain Libtool? --akim.
2621 - export ac_cv_exeext
2622 + if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2623 + then :; else
2624 + ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2625 + fi
2626 + # We set ac_cv_exeext here because the later test for it is not
2627 + # safe: cross compilers may not add the suffix if given an `-o'
2628 + # argument, so we may need to know it at that point already.
2629 + # Even if this section looks crufty: it has the advantage of
2630 + # actually working.
2631 break;;
2632 * )
2633 break;;
2634 esac
2635 done
2636 +test "$ac_cv_exeext" = no && ac_cv_exeext=
2637 +
2638 else
2639 + ac_file=''
2640 +fi
2641 +
2642 +{ echo "$as_me:$LINENO: result: $ac_file" >&5
2643 +echo "${ECHO_T}$ac_file" >&6; }
2644 +if test -z "$ac_file"; then
2645 echo "$as_me: failed program was:" >&5
2646 sed 's/^/| /' conftest.$ac_ext >&5
2647
2648 @@ -1838,19 +2414,21 @@ See \`config.log' for more details." >&2
2649 fi
2650
2651 ac_exeext=$ac_cv_exeext
2652 -echo "$as_me:$LINENO: result: $ac_file" >&5
2653 -echo "${ECHO_T}$ac_file" >&6
2654
2655 -# Check the compiler produces executables we can run. If not, either
2656 +# Check that the compiler produces executables we can run. If not, either
2657 # the compiler is broken, or we cross compile.
2658 -echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2659 -echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2660 +{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2661 +echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2662 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2663 # If not cross compiling, check that we can run a simple program.
2664 if test "$cross_compiling" != yes; then
2665 if { ac_try='./$ac_file'
2666 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2667 - (eval $ac_try) 2>&5
2668 + { (case "(($ac_try" in
2669 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2670 + *) ac_try_echo=$ac_try;;
2671 +esac
2672 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2673 + (eval "$ac_try") 2>&5
2674 ac_status=$?
2675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2676 (exit $ac_status); }; }; then
2677 @@ -1869,22 +2447,27 @@ See \`config.log' for more details." >&2
2678 fi
2679 fi
2680 fi
2681 -echo "$as_me:$LINENO: result: yes" >&5
2682 -echo "${ECHO_T}yes" >&6
2683 +{ echo "$as_me:$LINENO: result: yes" >&5
2684 +echo "${ECHO_T}yes" >&6; }
2685
2686 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2687 ac_clean_files=$ac_clean_files_save
2688 -# Check the compiler produces executables we can run. If not, either
2689 +# Check that the compiler produces executables we can run. If not, either
2690 # the compiler is broken, or we cross compile.
2691 -echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2692 -echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2693 -echo "$as_me:$LINENO: result: $cross_compiling" >&5
2694 -echo "${ECHO_T}$cross_compiling" >&6
2695 -
2696 -echo "$as_me:$LINENO: checking for suffix of executables" >&5
2697 -echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2698 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2699 - (eval $ac_link) 2>&5
2700 +{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2701 +echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2702 +{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2703 +echo "${ECHO_T}$cross_compiling" >&6; }
2704 +
2705 +{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2706 +echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2707 +if { (ac_try="$ac_link"
2708 +case "(($ac_try" in
2709 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2710 + *) ac_try_echo=$ac_try;;
2711 +esac
2712 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2713 + (eval "$ac_link") 2>&5
2714 ac_status=$?
2715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2716 (exit $ac_status); }; then
2717 @@ -1895,9 +2478,8 @@ if { (eval echo "$as_me:$LINENO: \"$ac_l
2718 for ac_file in conftest.exe conftest conftest.*; do
2719 test -f "$ac_file" || continue
2720 case $ac_file in
2721 - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2722 + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2723 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2724 - export ac_cv_exeext
2725 break;;
2726 * ) break;;
2727 esac
2728 @@ -1911,14 +2493,14 @@ See \`config.log' for more details." >&2
2729 fi
2730
2731 rm -f conftest$ac_cv_exeext
2732 -echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2733 -echo "${ECHO_T}$ac_cv_exeext" >&6
2734 +{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2735 +echo "${ECHO_T}$ac_cv_exeext" >&6; }
2736
2737 rm -f conftest.$ac_ext
2738 EXEEXT=$ac_cv_exeext
2739 ac_exeext=$EXEEXT
2740 -echo "$as_me:$LINENO: checking for suffix of object files" >&5
2741 -echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2742 +{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2743 +echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2744 if test "${ac_cv_objext+set}" = set; then
2745 echo $ECHO_N "(cached) $ECHO_C" >&6
2746 else
2747 @@ -1938,14 +2520,20 @@ main ()
2748 }
2749 _ACEOF
2750 rm -f conftest.o conftest.obj
2751 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2752 - (eval $ac_compile) 2>&5
2753 +if { (ac_try="$ac_compile"
2754 +case "(($ac_try" in
2755 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2756 + *) ac_try_echo=$ac_try;;
2757 +esac
2758 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2759 + (eval "$ac_compile") 2>&5
2760 ac_status=$?
2761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2762 (exit $ac_status); }; then
2763 - for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2764 + for ac_file in conftest.o conftest.obj conftest.*; do
2765 + test -f "$ac_file" || continue;
2766 case $ac_file in
2767 - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2768 + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2769 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2770 break;;
2771 esac
2772 @@ -1963,12 +2551,12 @@ fi
2773
2774 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2775 fi
2776 -echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2777 -echo "${ECHO_T}$ac_cv_objext" >&6
2778 +{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2779 +echo "${ECHO_T}$ac_cv_objext" >&6; }
2780 OBJEXT=$ac_cv_objext
2781 ac_objext=$OBJEXT
2782 -echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2783 -echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2784 +{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2785 +echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2786 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2787 echo $ECHO_N "(cached) $ECHO_C" >&6
2788 else
2789 @@ -1991,50 +2579,49 @@ main ()
2790 }
2791 _ACEOF
2792 rm -f conftest.$ac_objext
2793 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2794 - (eval $ac_compile) 2>conftest.er1
2795 +if { (ac_try="$ac_compile"
2796 +case "(($ac_try" in
2797 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2798 + *) ac_try_echo=$ac_try;;
2799 +esac
2800 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2801 + (eval "$ac_compile") 2>conftest.er1
2802 ac_status=$?
2803 grep -v '^ *+' conftest.er1 >conftest.err
2804 rm -f conftest.er1
2805 cat conftest.err >&5
2806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2807 - (exit $ac_status); } &&
2808 - { ac_try='test -z "$ac_c_werror_flag"
2809 - || test ! -s conftest.err'
2810 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2811 - (eval $ac_try) 2>&5
2812 - ac_status=$?
2813 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
2814 - (exit $ac_status); }; } &&
2815 - { ac_try='test -s conftest.$ac_objext'
2816 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2817 - (eval $ac_try) 2>&5
2818 - ac_status=$?
2819 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
2820 - (exit $ac_status); }; }; then
2821 + (exit $ac_status); } && {
2822 + test -z "$ac_c_werror_flag" ||
2823 + test ! -s conftest.err
2824 + } && test -s conftest.$ac_objext; then
2825 ac_compiler_gnu=yes
2826 else
2827 echo "$as_me: failed program was:" >&5
2828 sed 's/^/| /' conftest.$ac_ext >&5
2829
2830 -ac_compiler_gnu=no
2831 + ac_compiler_gnu=no
2832 fi
2833 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2834 +
2835 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2836 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2837
2838 fi
2839 -echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2840 -echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2841 +{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2842 +echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2843 GCC=`test $ac_compiler_gnu = yes && echo yes`
2844 ac_test_CFLAGS=${CFLAGS+set}
2845 ac_save_CFLAGS=$CFLAGS
2846 -CFLAGS="-g"
2847 -echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2848 -echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2849 +{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2850 +echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2851 if test "${ac_cv_prog_cc_g+set}" = set; then
2852 echo $ECHO_N "(cached) $ECHO_C" >&6
2853 else
2854 - cat >conftest.$ac_ext <<_ACEOF
2855 + ac_save_c_werror_flag=$ac_c_werror_flag
2856 + ac_c_werror_flag=yes
2857 + ac_cv_prog_cc_g=no
2858 + CFLAGS="-g"
2859 + cat >conftest.$ac_ext <<_ACEOF
2860 /* confdefs.h. */
2861 _ACEOF
2862 cat confdefs.h >>conftest.$ac_ext
2863 @@ -2050,38 +2637,118 @@ main ()
2864 }
2865 _ACEOF
2866 rm -f conftest.$ac_objext
2867 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2868 - (eval $ac_compile) 2>conftest.er1
2869 +if { (ac_try="$ac_compile"
2870 +case "(($ac_try" in
2871 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2872 + *) ac_try_echo=$ac_try;;
2873 +esac
2874 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2875 + (eval "$ac_compile") 2>conftest.er1
2876 ac_status=$?
2877 grep -v '^ *+' conftest.er1 >conftest.err
2878 rm -f conftest.er1
2879 cat conftest.err >&5
2880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2881 - (exit $ac_status); } &&
2882 - { ac_try='test -z "$ac_c_werror_flag"
2883 - || test ! -s conftest.err'
2884 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2885 - (eval $ac_try) 2>&5
2886 + (exit $ac_status); } && {
2887 + test -z "$ac_c_werror_flag" ||
2888 + test ! -s conftest.err
2889 + } && test -s conftest.$ac_objext; then
2890 + ac_cv_prog_cc_g=yes
2891 +else
2892 + echo "$as_me: failed program was:" >&5
2893 +sed 's/^/| /' conftest.$ac_ext >&5
2894 +
2895 + CFLAGS=""
2896 + cat >conftest.$ac_ext <<_ACEOF
2897 +/* confdefs.h. */
2898 +_ACEOF
2899 +cat confdefs.h >>conftest.$ac_ext
2900 +cat >>conftest.$ac_ext <<_ACEOF
2901 +/* end confdefs.h. */
2902 +
2903 +int
2904 +main ()
2905 +{
2906 +
2907 + ;
2908 + return 0;
2909 +}
2910 +_ACEOF
2911 +rm -f conftest.$ac_objext
2912 +if { (ac_try="$ac_compile"
2913 +case "(($ac_try" in
2914 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2915 + *) ac_try_echo=$ac_try;;
2916 +esac
2917 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2918 + (eval "$ac_compile") 2>conftest.er1
2919 ac_status=$?
2920 + grep -v '^ *+' conftest.er1 >conftest.err
2921 + rm -f conftest.er1
2922 + cat conftest.err >&5
2923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2924 - (exit $ac_status); }; } &&
2925 - { ac_try='test -s conftest.$ac_objext'
2926 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2927 - (eval $ac_try) 2>&5
2928 + (exit $ac_status); } && {
2929 + test -z "$ac_c_werror_flag" ||
2930 + test ! -s conftest.err
2931 + } && test -s conftest.$ac_objext; then
2932 + :
2933 +else
2934 + echo "$as_me: failed program was:" >&5
2935 +sed 's/^/| /' conftest.$ac_ext >&5
2936 +
2937 + ac_c_werror_flag=$ac_save_c_werror_flag
2938 + CFLAGS="-g"
2939 + cat >conftest.$ac_ext <<_ACEOF
2940 +/* confdefs.h. */
2941 +_ACEOF
2942 +cat confdefs.h >>conftest.$ac_ext
2943 +cat >>conftest.$ac_ext <<_ACEOF
2944 +/* end confdefs.h. */
2945 +
2946 +int
2947 +main ()
2948 +{
2949 +
2950 + ;
2951 + return 0;
2952 +}
2953 +_ACEOF
2954 +rm -f conftest.$ac_objext
2955 +if { (ac_try="$ac_compile"
2956 +case "(($ac_try" in
2957 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2958 + *) ac_try_echo=$ac_try;;
2959 +esac
2960 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2961 + (eval "$ac_compile") 2>conftest.er1
2962 ac_status=$?
2963 + grep -v '^ *+' conftest.er1 >conftest.err
2964 + rm -f conftest.er1
2965 + cat conftest.err >&5
2966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2967 - (exit $ac_status); }; }; then
2968 + (exit $ac_status); } && {
2969 + test -z "$ac_c_werror_flag" ||
2970 + test ! -s conftest.err
2971 + } && test -s conftest.$ac_objext; then
2972 ac_cv_prog_cc_g=yes
2973 else
2974 echo "$as_me: failed program was:" >&5
2975 sed 's/^/| /' conftest.$ac_ext >&5
2976
2977 -ac_cv_prog_cc_g=no
2978 +
2979 fi
2980 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2981 +
2982 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2983 +fi
2984 +
2985 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2986 +fi
2987 +
2988 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2989 + ac_c_werror_flag=$ac_save_c_werror_flag
2990 fi
2991 -echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2992 -echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2993 +{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2994 +echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2995 if test "$ac_test_CFLAGS" = set; then
2996 CFLAGS=$ac_save_CFLAGS
2997 elif test $ac_cv_prog_cc_g = yes; then
2998 @@ -2097,12 +2764,12 @@ else
2999 CFLAGS=
3000 fi
3001 fi
3002 -echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3003 -echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3004 -if test "${ac_cv_prog_cc_stdc+set}" = set; then
3005 +{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3006 +echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3007 +if test "${ac_cv_prog_cc_c89+set}" = set; then
3008 echo $ECHO_N "(cached) $ECHO_C" >&6
3009 else
3010 - ac_cv_prog_cc_stdc=no
3011 + ac_cv_prog_cc_c89=no
3012 ac_save_CC=$CC
3013 cat >conftest.$ac_ext <<_ACEOF
3014 /* confdefs.h. */
3015 @@ -2136,12 +2803,17 @@ static char *f (char * (*g) (char **, in
3016 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3017 function prototypes and stuff, but not '\xHH' hex character constants.
3018 These don't provoke an error unfortunately, instead are silently treated
3019 - as 'x'. The following induces an error, until -std1 is added to get
3020 + as 'x'. The following induces an error, until -std is added to get
3021 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3022 array size at least. It's necessary to write '\x00'==0 to get something
3023 - that's true only with -std1. */
3024 + that's true only with -std. */
3025 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3026
3027 +/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3028 + inside strings and character constants. */
3029 +#define FOO(x) 'x'
3030 +int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3031 +
3032 int test (int i, double x);
3033 struct s1 {int (*f) (int a);};
3034 struct s2 {int (*f) (double a);};
3035 @@ -2156,335 +2828,144 @@ return f (e, argv, 0) != argv[0] || f
3036 return 0;
3037 }
3038 _ACEOF
3039 -# Don't try gcc -ansi; that turns off useful extensions and
3040 -# breaks some systems' header files.
3041 -# AIX -qlanglvl=ansi
3042 -# Ultrix and OSF/1 -std1
3043 -# HP-UX 10.20 and later -Ae
3044 -# HP-UX older versions -Aa -D_HPUX_SOURCE
3045 -# SVR4 -Xc -D__EXTENSIONS__
3046 -for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3047 +for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3048 + -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3049 do
3050 CC="$ac_save_CC $ac_arg"
3051 rm -f conftest.$ac_objext
3052 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3053 - (eval $ac_compile) 2>conftest.er1
3054 +if { (ac_try="$ac_compile"
3055 +case "(($ac_try" in
3056 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3057 + *) ac_try_echo=$ac_try;;
3058 +esac
3059 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3060 + (eval "$ac_compile") 2>conftest.er1
3061 ac_status=$?
3062 grep -v '^ *+' conftest.er1 >conftest.err
3063 rm -f conftest.er1
3064 cat conftest.err >&5
3065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3066 - (exit $ac_status); } &&
3067 - { ac_try='test -z "$ac_c_werror_flag"
3068 - || test ! -s conftest.err'
3069 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3070 - (eval $ac_try) 2>&5
3071 - ac_status=$?
3072 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
3073 - (exit $ac_status); }; } &&
3074 - { ac_try='test -s conftest.$ac_objext'
3075 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3076 - (eval $ac_try) 2>&5
3077 - ac_status=$?
3078 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
3079 - (exit $ac_status); }; }; then
3080 - ac_cv_prog_cc_stdc=$ac_arg
3081 -break
3082 + (exit $ac_status); } && {
3083 + test -z "$ac_c_werror_flag" ||
3084 + test ! -s conftest.err
3085 + } && test -s conftest.$ac_objext; then
3086 + ac_cv_prog_cc_c89=$ac_arg
3087 else
3088 echo "$as_me: failed program was:" >&5
3089 sed 's/^/| /' conftest.$ac_ext >&5
3090
3091 +
3092 fi
3093 -rm -f conftest.err conftest.$ac_objext
3094 +
3095 +rm -f core conftest.err conftest.$ac_objext
3096 + test "x$ac_cv_prog_cc_c89" != "xno" && break
3097 done
3098 -rm -f conftest.$ac_ext conftest.$ac_objext
3099 +rm -f conftest.$ac_ext
3100 CC=$ac_save_CC
3101
3102 fi
3103 -
3104 -case "x$ac_cv_prog_cc_stdc" in
3105 - x|xno)
3106 - echo "$as_me:$LINENO: result: none needed" >&5
3107 -echo "${ECHO_T}none needed" >&6 ;;
3108 +# AC_CACHE_VAL
3109 +case "x$ac_cv_prog_cc_c89" in
3110 + x)
3111 + { echo "$as_me:$LINENO: result: none needed" >&5
3112 +echo "${ECHO_T}none needed" >&6; } ;;
3113 + xno)
3114 + { echo "$as_me:$LINENO: result: unsupported" >&5
3115 +echo "${ECHO_T}unsupported" >&6; } ;;
3116 *)
3117 - echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3118 -echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3119 - CC="$CC $ac_cv_prog_cc_stdc" ;;
3120 + CC="$CC $ac_cv_prog_cc_c89"
3121 + { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3122 +echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3123 esac
3124
3125 -# Some people use a C++ compiler to compile C. Since we use `exit',
3126 -# in C++ we need to declare it. In case someone uses the same compiler
3127 -# for both compiling C and C++ we need to have the C++ compiler decide
3128 -# the declaration of exit, since it's the most demanding environment.
3129 +
3130 +ac_ext=c
3131 +ac_cpp='$CPP $CPPFLAGS'
3132 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3133 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3134 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
3135 +
3136 +
3137 +{ echo "$as_me:$LINENO: checking for library containing strerror" >&5
3138 +echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; }
3139 +if test "${ac_cv_search_strerror+set}" = set; then
3140 + echo $ECHO_N "(cached) $ECHO_C" >&6
3141 +else
3142 + ac_func_search_save_LIBS=$LIBS
3143 cat >conftest.$ac_ext <<_ACEOF
3144 -#ifndef __cplusplus
3145 - choke me
3146 -#endif
3147 -_ACEOF
3148 -rm -f conftest.$ac_objext
3149 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3150 - (eval $ac_compile) 2>conftest.er1
3151 - ac_status=$?
3152 - grep -v '^ *+' conftest.er1 >conftest.err
3153 - rm -f conftest.er1
3154 - cat conftest.err >&5
3155 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
3156 - (exit $ac_status); } &&
3157 - { ac_try='test -z "$ac_c_werror_flag"
3158 - || test ! -s conftest.err'
3159 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3160 - (eval $ac_try) 2>&5
3161 - ac_status=$?
3162 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
3163 - (exit $ac_status); }; } &&
3164 - { ac_try='test -s conftest.$ac_objext'
3165 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3166 - (eval $ac_try) 2>&5
3167 - ac_status=$?
3168 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
3169 - (exit $ac_status); }; }; then
3170 - for ac_declaration in \
3171 - '' \
3172 - 'extern "C" void std::exit (int) throw (); using std::exit;' \
3173 - 'extern "C" void std::exit (int); using std::exit;' \
3174 - 'extern "C" void exit (int) throw ();' \
3175 - 'extern "C" void exit (int);' \
3176 - 'void exit (int);'
3177 -do
3178 - cat >conftest.$ac_ext <<_ACEOF
3179 /* confdefs.h. */
3180 _ACEOF
3181 cat confdefs.h >>conftest.$ac_ext
3182 cat >>conftest.$ac_ext <<_ACEOF
3183 /* end confdefs.h. */
3184 -$ac_declaration
3185 -#include <stdlib.h>
3186 +
3187 +/* Override any GCC internal prototype to avoid an error.
3188 + Use char because int might match the return type of a GCC
3189 + builtin and then its argument prototype would still apply. */
3190 +#ifdef __cplusplus
3191 +extern "C"
3192 +#endif
3193 +char strerror ();
3194 int
3195 main ()
3196 {
3197 -exit (42);
3198 +return strerror ();
3199 ;
3200 return 0;
3201 }
3202 _ACEOF
3203 -rm -f conftest.$ac_objext
3204 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3205 - (eval $ac_compile) 2>conftest.er1
3206 +for ac_lib in '' cposix; do
3207 + if test -z "$ac_lib"; then
3208 + ac_res="none required"
3209 + else
3210 + ac_res=-l$ac_lib
3211 + LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3212 + fi
3213 + rm -f conftest.$ac_objext conftest$ac_exeext
3214 +if { (ac_try="$ac_link"
3215 +case "(($ac_try" in
3216 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3217 + *) ac_try_echo=$ac_try;;
3218 +esac
3219 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3220 + (eval "$ac_link") 2>conftest.er1
3221 ac_status=$?
3222 grep -v '^ *+' conftest.er1 >conftest.err
3223 rm -f conftest.er1
3224 cat conftest.err >&5
3225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3226 - (exit $ac_status); } &&
3227 - { ac_try='test -z "$ac_c_werror_flag"
3228 - || test ! -s conftest.err'
3229 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3230 - (eval $ac_try) 2>&5
3231 - ac_status=$?
3232 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
3233 - (exit $ac_status); }; } &&
3234 - { ac_try='test -s conftest.$ac_objext'
3235 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3236 - (eval $ac_try) 2>&5
3237 - ac_status=$?
3238 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
3239 - (exit $ac_status); }; }; then
3240 - :
3241 + (exit $ac_status); } && {
3242 + test -z "$ac_c_werror_flag" ||
3243 + test ! -s conftest.err
3244 + } && test -s conftest$ac_exeext &&
3245 + $as_test_x conftest$ac_exeext; then
3246 + ac_cv_search_strerror=$ac_res
3247 else
3248 echo "$as_me: failed program was:" >&5
3249 sed 's/^/| /' conftest.$ac_ext >&5
3250
3251 -continue
3252 -fi
3253 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3254 - cat >conftest.$ac_ext <<_ACEOF
3255 -/* confdefs.h. */
3256 -_ACEOF
3257 -cat confdefs.h >>conftest.$ac_ext
3258 -cat >>conftest.$ac_ext <<_ACEOF
3259 -/* end confdefs.h. */
3260 -$ac_declaration
3261 -int
3262 -main ()
3263 -{
3264 -exit (42);
3265 - ;
3266 - return 0;
3267 -}
3268 -_ACEOF
3269 -rm -f conftest.$ac_objext
3270 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3271 - (eval $ac_compile) 2>conftest.er1
3272 - ac_status=$?
3273 - grep -v '^ *+' conftest.er1 >conftest.err
3274 - rm -f conftest.er1
3275 - cat conftest.err >&5
3276 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
3277 - (exit $ac_status); } &&
3278 - { ac_try='test -z "$ac_c_werror_flag"
3279 - || test ! -s conftest.err'
3280 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3281 - (eval $ac_try) 2>&5
3282 - ac_status=$?
3283 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
3284 - (exit $ac_status); }; } &&
3285 - { ac_try='test -s conftest.$ac_objext'
3286 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3287 - (eval $ac_try) 2>&5
3288 - ac_status=$?
3289 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
3290 - (exit $ac_status); }; }; then
3291 - break
3292 -else
3293 - echo "$as_me: failed program was:" >&5
3294 -sed 's/^/| /' conftest.$ac_ext >&5
3295
3296 fi
3297 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3298 -done
3299 -rm -f conftest*
3300 -if test -n "$ac_declaration"; then
3301 - echo '#ifdef __cplusplus' >>confdefs.h
3302 - echo $ac_declaration >>confdefs.h
3303 - echo '#endif' >>confdefs.h
3304 -fi
3305 -
3306 -else
3307 - echo "$as_me: failed program was:" >&5
3308 -sed 's/^/| /' conftest.$ac_ext >&5
3309
3310 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3311 + conftest$ac_exeext
3312 + if test "${ac_cv_search_strerror+set}" = set; then
3313 + break
3314 fi
3315 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3316 -ac_ext=c
3317 -ac_cpp='$CPP $CPPFLAGS'
3318 -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3319 -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3320 -ac_compiler_gnu=$ac_cv_c_compiler_gnu
3321 -
3322 -
3323 -echo "$as_me:$LINENO: checking for library containing strerror" >&5
3324 -echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
3325 +done
3326 if test "${ac_cv_search_strerror+set}" = set; then
3327 - echo $ECHO_N "(cached) $ECHO_C" >&6
3328 -else
3329 - ac_func_search_save_LIBS=$LIBS
3330 -ac_cv_search_strerror=no
3331 -cat >conftest.$ac_ext <<_ACEOF
3332 -/* confdefs.h. */
3333 -_ACEOF
3334 -cat confdefs.h >>conftest.$ac_ext
3335 -cat >>conftest.$ac_ext <<_ACEOF
3336 -/* end confdefs.h. */
3337 -
3338 -/* Override any gcc2 internal prototype to avoid an error. */
3339 -#ifdef __cplusplus
3340 -extern "C"
3341 -#endif
3342 -/* We use char because int might match the return type of a gcc2
3343 - builtin and then its argument prototype would still apply. */
3344 -char strerror ();
3345 -int
3346 -main ()
3347 -{
3348 -strerror ();
3349 - ;
3350 - return 0;
3351 -}
3352 -_ACEOF
3353 -rm -f conftest.$ac_objext conftest$ac_exeext
3354 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3355 - (eval $ac_link) 2>conftest.er1
3356 - ac_status=$?
3357 - grep -v '^ *+' conftest.er1 >conftest.err
3358 - rm -f conftest.er1
3359 - cat conftest.err >&5
3360 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
3361 - (exit $ac_status); } &&
3362 - { ac_try='test -z "$ac_c_werror_flag"
3363 - || test ! -s conftest.err'
3364 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3365 - (eval $ac_try) 2>&5
3366 - ac_status=$?
3367 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
3368 - (exit $ac_status); }; } &&
3369 - { ac_try='test -s conftest$ac_exeext'
3370 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3371 - (eval $ac_try) 2>&5
3372 - ac_status=$?
3373 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
3374 - (exit $ac_status); }; }; then
3375 - ac_cv_search_strerror="none required"
3376 -else
3377 - echo "$as_me: failed program was:" >&5
3378 -sed 's/^/| /' conftest.$ac_ext >&5
3379 -
3380 -fi
3381 -rm -f conftest.err conftest.$ac_objext \
3382 - conftest$ac_exeext conftest.$ac_ext
3383 -if test "$ac_cv_search_strerror" = no; then
3384 - for ac_lib in cposix; do
3385 - LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3386 - cat >conftest.$ac_ext <<_ACEOF
3387 -/* confdefs.h. */
3388 -_ACEOF
3389 -cat confdefs.h >>conftest.$ac_ext
3390 -cat >>conftest.$ac_ext <<_ACEOF
3391 -/* end confdefs.h. */
3392 -
3393 -/* Override any gcc2 internal prototype to avoid an error. */
3394 -#ifdef __cplusplus
3395 -extern "C"
3396 -#endif
3397 -/* We use char because int might match the return type of a gcc2
3398 - builtin and then its argument prototype would still apply. */
3399 -char strerror ();
3400 -int
3401 -main ()
3402 -{
3403 -strerror ();
3404 - ;
3405 - return 0;
3406 -}
3407 -_ACEOF
3408 -rm -f conftest.$ac_objext conftest$ac_exeext
3409 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3410 - (eval $ac_link) 2>conftest.er1
3411 - ac_status=$?
3412 - grep -v '^ *+' conftest.er1 >conftest.err
3413 - rm -f conftest.er1
3414 - cat conftest.err >&5
3415 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
3416 - (exit $ac_status); } &&
3417 - { ac_try='test -z "$ac_c_werror_flag"
3418 - || test ! -s conftest.err'
3419 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3420 - (eval $ac_try) 2>&5
3421 - ac_status=$?
3422 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
3423 - (exit $ac_status); }; } &&
3424 - { ac_try='test -s conftest$ac_exeext'
3425 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3426 - (eval $ac_try) 2>&5
3427 - ac_status=$?
3428 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
3429 - (exit $ac_status); }; }; then
3430 - ac_cv_search_strerror="-l$ac_lib"
3431 -break
3432 + :
3433 else
3434 - echo "$as_me: failed program was:" >&5
3435 -sed 's/^/| /' conftest.$ac_ext >&5
3436 -
3437 -fi
3438 -rm -f conftest.err conftest.$ac_objext \
3439 - conftest$ac_exeext conftest.$ac_ext
3440 - done
3441 + ac_cv_search_strerror=no
3442 fi
3443 +rm conftest.$ac_ext
3444 LIBS=$ac_func_search_save_LIBS
3445 fi
3446 -echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
3447 -echo "${ECHO_T}$ac_cv_search_strerror" >&6
3448 -if test "$ac_cv_search_strerror" != no; then
3449 - test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
3450 +{ echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
3451 +echo "${ECHO_T}$ac_cv_search_strerror" >&6; }
3452 +ac_res=$ac_cv_search_strerror
3453 +if test "$ac_res" != no; then
3454 + test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3455
3456 fi
3457
3458 @@ -2503,8 +2984,8 @@ am__api_version="1.9"
3459 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3460 # OS/2's system install, which has a completely different semantic
3461 # ./install, which can be erroneously created by make from ./install.sh.
3462 -echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3463 -echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3464 +{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3465 +echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
3466 if test -z "$INSTALL"; then
3467 if test "${ac_cv_path_install+set}" = set; then
3468 echo $ECHO_N "(cached) $ECHO_C" >&6
3469 @@ -2526,7 +3007,7 @@ case $as_dir/ in
3470 # by default.
3471 for ac_prog in ginstall scoinst install; do
3472 for ac_exec_ext in '' $ac_executable_extensions; do
3473 - if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3474 + if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3475 if test $ac_prog = install &&
3476 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3477 # AIX install. It has an incompatible calling convention.
3478 @@ -2545,21 +3026,22 @@ case $as_dir/ in
3479 ;;
3480 esac
3481 done
3482 +IFS=$as_save_IFS
3483
3484
3485 fi
3486 if test "${ac_cv_path_install+set}" = set; then
3487 INSTALL=$ac_cv_path_install
3488 else
3489 - # As a last resort, use the slow shell script. We don't cache a
3490 - # path for INSTALL within a source directory, because that will
3491 + # As a last resort, use the slow shell script. Don't cache a
3492 + # value for INSTALL within a source directory, because that will
3493 # break other packages using the cache if that directory is
3494 - # removed, or if the path is relative.
3495 + # removed, or if the value is a relative name.
3496 INSTALL=$ac_install_sh
3497 fi
3498 fi
3499 -echo "$as_me:$LINENO: result: $INSTALL" >&5
3500 -echo "${ECHO_T}$INSTALL" >&6
3501 +{ echo "$as_me:$LINENO: result: $INSTALL" >&5
3502 +echo "${ECHO_T}$INSTALL" >&6; }
3503
3504 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3505 # It thinks the first close brace ends the variable substitution.
3506 @@ -2569,8 +3051,8 @@ test -z "$INSTALL_SCRIPT" && INSTALL_SCR
3507
3508 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3509
3510 -echo "$as_me:$LINENO: checking whether build environment is sane" >&5
3511 -echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
3512 +{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5
3513 +echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
3514 # Just in case
3515 sleep 1
3516 echo timestamp > conftest.file
3517 @@ -2612,20 +3094,20 @@ echo "$as_me: error: newly created file
3518 Check your system clock" >&2;}
3519 { (exit 1); exit 1; }; }
3520 fi
3521 -echo "$as_me:$LINENO: result: yes" >&5
3522 -echo "${ECHO_T}yes" >&6
3523 +{ echo "$as_me:$LINENO: result: yes" >&5
3524 +echo "${ECHO_T}yes" >&6; }
3525 test "$program_prefix" != NONE &&
3526 - program_transform_name="s,^,$program_prefix,;$program_transform_name"
3527 + program_transform_name="s&^&$program_prefix&;$program_transform_name"
3528 # Use a double $ so make ignores it.
3529 test "$program_suffix" != NONE &&
3530 - program_transform_name="s,\$,$program_suffix,;$program_transform_name"
3531 + program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3532 # Double any \ or $. echo might interpret backslashes.
3533 # By default was `s,x,x', remove it if useless.
3534 cat <<\_ACEOF >conftest.sed
3535 s/[\\$]/&&/g;s/;s,x,x,$//
3536 _ACEOF
3537 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
3538 -rm conftest.sed
3539 +rm -f conftest.sed
3540
3541 # expand $ac_aux_dir to an absolute path
3542 am_aux_dir=`cd $ac_aux_dir && pwd`
3543 @@ -2677,8 +3159,8 @@ for ac_prog in gawk mawk nawk awk
3544 do
3545 # Extract the first word of "$ac_prog", so it can be a program name with args.
3546 set dummy $ac_prog; ac_word=$2
3547 -echo "$as_me:$LINENO: checking for $ac_word" >&5
3548 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3549 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3550 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3551 if test "${ac_cv_prog_AWK+set}" = set; then
3552 echo $ECHO_N "(cached) $ECHO_C" >&6
3553 else
3554 @@ -2691,54 +3173,57 @@ do
3555 IFS=$as_save_IFS
3556 test -z "$as_dir" && as_dir=.
3557 for ac_exec_ext in '' $ac_executable_extensions; do
3558 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3559 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3560 ac_cv_prog_AWK="$ac_prog"
3561 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3562 break 2
3563 fi
3564 done
3565 done
3566 +IFS=$as_save_IFS
3567
3568 fi
3569 fi
3570 AWK=$ac_cv_prog_AWK
3571 if test -n "$AWK"; then
3572 - echo "$as_me:$LINENO: result: $AWK" >&5
3573 -echo "${ECHO_T}$AWK" >&6
3574 + { echo "$as_me:$LINENO: result: $AWK" >&5
3575 +echo "${ECHO_T}$AWK" >&6; }
3576 else
3577 - echo "$as_me:$LINENO: result: no" >&5
3578 -echo "${ECHO_T}no" >&6
3579 + { echo "$as_me:$LINENO: result: no" >&5
3580 +echo "${ECHO_T}no" >&6; }
3581 fi
3582
3583 +
3584 test -n "$AWK" && break
3585 done
3586
3587 -echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3588 -echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3589 -set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3590 -if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3591 +{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3592 +echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
3593 +set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3594 +if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
3595 echo $ECHO_N "(cached) $ECHO_C" >&6
3596 else
3597 cat >conftest.make <<\_ACEOF
3598 +SHELL = /bin/sh
3599 all:
3600 - @echo 'ac_maketemp="$(MAKE)"'
3601 + @echo '@@@%%%=$(MAKE)=@@@%%%'
3602 _ACEOF
3603 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3604 -eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3605 -if test -n "$ac_maketemp"; then
3606 - eval ac_cv_prog_make_${ac_make}_set=yes
3607 -else
3608 - eval ac_cv_prog_make_${ac_make}_set=no
3609 -fi
3610 +case `${MAKE-make} -f conftest.make 2>/dev/null` in
3611 + *@@@%%%=?*=@@@%%%*)
3612 + eval ac_cv_prog_make_${ac_make}_set=yes;;
3613 + *)
3614 + eval ac_cv_prog_make_${ac_make}_set=no;;
3615 +esac
3616 rm -f conftest.make
3617 fi
3618 -if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3619 - echo "$as_me:$LINENO: result: yes" >&5
3620 -echo "${ECHO_T}yes" >&6
3621 +if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3622 + { echo "$as_me:$LINENO: result: yes" >&5
3623 +echo "${ECHO_T}yes" >&6; }
3624 SET_MAKE=
3625 else
3626 - echo "$as_me:$LINENO: result: no" >&5
3627 -echo "${ECHO_T}no" >&6
3628 + { echo "$as_me:$LINENO: result: no" >&5
3629 +echo "${ECHO_T}no" >&6; }
3630 SET_MAKE="MAKE=${MAKE-make}"
3631 fi
3632
3633 @@ -2753,7 +3238,7 @@ rmdir .tst 2>/dev/null
3634
3635 DEPDIR="${am__leading_dot}deps"
3636
3637 - ac_config_commands="$ac_config_commands depfiles"
3638 +ac_config_commands="$ac_config_commands depfiles"
3639
3640
3641 am_make=${MAKE-make}
3642 @@ -2763,8 +3248,8 @@ am__doit:
3643 .PHONY: am__doit
3644 END
3645 # If we don't find an include directive, just comment out the code.
3646 -echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3647 -echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3648 +{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3649 +echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3650 am__include="#"
3651 am__quote=
3652 _am_result=none
3653 @@ -2791,15 +3276,15 @@ if test "$am__include" = "#"; then
3654 fi
3655
3656
3657 -echo "$as_me:$LINENO: result: $_am_result" >&5
3658 -echo "${ECHO_T}$_am_result" >&6
3659 +{ echo "$as_me:$LINENO: result: $_am_result" >&5
3660 +echo "${ECHO_T}$_am_result" >&6; }
3661 rm -f confinc confmf
3662
3663 -# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3664 +# Check whether --enable-dependency-tracking was given.
3665 if test "${enable_dependency_tracking+set}" = set; then
3666 - enableval="$enable_dependency_tracking"
3667 + enableval=$enable_dependency_tracking;
3668 +fi
3669
3670 -fi;
3671 if test "x$enable_dependency_tracking" != xno; then
3672 am_depcomp="$ac_aux_dir/depcomp"
3673 AMDEPBACKSLASH='\'
3674 @@ -2874,8 +3359,8 @@ if test "$cross_compiling" != no; then
3675 if test -n "$ac_tool_prefix"; then
3676 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3677 set dummy ${ac_tool_prefix}strip; ac_word=$2
3678 -echo "$as_me:$LINENO: checking for $ac_word" >&5
3679 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3680 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3681 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3682 if test "${ac_cv_prog_STRIP+set}" = set; then
3683 echo $ECHO_N "(cached) $ECHO_C" >&6
3684 else
3685 @@ -2888,32 +3373,34 @@ do
3686 IFS=$as_save_IFS
3687 test -z "$as_dir" && as_dir=.
3688 for ac_exec_ext in '' $ac_executable_extensions; do
3689 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3690 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3691 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3692 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3693 break 2
3694 fi
3695 done
3696 done
3697 +IFS=$as_save_IFS
3698
3699 fi
3700 fi
3701 STRIP=$ac_cv_prog_STRIP
3702 if test -n "$STRIP"; then
3703 - echo "$as_me:$LINENO: result: $STRIP" >&5
3704 -echo "${ECHO_T}$STRIP" >&6
3705 + { echo "$as_me:$LINENO: result: $STRIP" >&5
3706 +echo "${ECHO_T}$STRIP" >&6; }
3707 else
3708 - echo "$as_me:$LINENO: result: no" >&5
3709 -echo "${ECHO_T}no" >&6
3710 + { echo "$as_me:$LINENO: result: no" >&5
3711 +echo "${ECHO_T}no" >&6; }
3712 fi
3713
3714 +
3715 fi
3716 if test -z "$ac_cv_prog_STRIP"; then
3717 ac_ct_STRIP=$STRIP
3718 # Extract the first word of "strip", so it can be a program name with args.
3719 set dummy strip; ac_word=$2
3720 -echo "$as_me:$LINENO: checking for $ac_word" >&5
3721 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3722 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3723 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3724 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3725 echo $ECHO_N "(cached) $ECHO_C" >&6
3726 else
3727 @@ -2926,27 +3413,41 @@ do
3728 IFS=$as_save_IFS
3729 test -z "$as_dir" && as_dir=.
3730 for ac_exec_ext in '' $ac_executable_extensions; do
3731 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3732 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3733 ac_cv_prog_ac_ct_STRIP="strip"
3734 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3735 break 2
3736 fi
3737 done
3738 done
3739 +IFS=$as_save_IFS
3740
3741 - test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3742 fi
3743 fi
3744 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3745 if test -n "$ac_ct_STRIP"; then
3746 - echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3747 -echo "${ECHO_T}$ac_ct_STRIP" >&6
3748 + { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3749 +echo "${ECHO_T}$ac_ct_STRIP" >&6; }
3750 else
3751 - echo "$as_me:$LINENO: result: no" >&5
3752 -echo "${ECHO_T}no" >&6
3753 + { echo "$as_me:$LINENO: result: no" >&5
3754 +echo "${ECHO_T}no" >&6; }
3755 fi
3756
3757 - STRIP=$ac_ct_STRIP
3758 + if test "x$ac_ct_STRIP" = x; then
3759 + STRIP=":"
3760 + else
3761 + case $cross_compiling:$ac_tool_warned in
3762 +yes:)
3763 +{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3764 +whose name does not start with the host triplet. If you think this
3765 +configuration is useful to you, please write to autoconf@gnu.org." >&5
3766 +echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3767 +whose name does not start with the host triplet. If you think this
3768 +configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3769 +ac_tool_warned=yes ;;
3770 +esac
3771 + STRIP=$ac_ct_STRIP
3772 + fi
3773 else
3774 STRIP="$ac_cv_prog_STRIP"
3775 fi
3776 @@ -2967,8 +3468,8 @@ am__tar='${AMTAR} chof - "$$tardir"'; am
3777
3778 depcc="$CC" am_compiler_list=
3779
3780 -echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3781 -echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3782 +{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3783 +echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3784 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3785 echo $ECHO_N "(cached) $ECHO_C" >&6
3786 else
3787 @@ -3057,8 +3558,8 @@ else
3788 fi
3789
3790 fi
3791 -echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3792 -echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3793 +{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3794 +echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3795 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3796
3797
3798 @@ -3079,8 +3580,8 @@ fi
3799 if test -n "$ac_tool_prefix"; then
3800 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3801 set dummy ${ac_tool_prefix}ar; ac_word=$2
3802 -echo "$as_me:$LINENO: checking for $ac_word" >&5
3803 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3804 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3805 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3806 if test "${ac_cv_prog_AR+set}" = set; then
3807 echo $ECHO_N "(cached) $ECHO_C" >&6
3808 else
3809 @@ -3093,32 +3594,34 @@ do
3810 IFS=$as_save_IFS
3811 test -z "$as_dir" && as_dir=.
3812 for ac_exec_ext in '' $ac_executable_extensions; do
3813 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3814 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3815 ac_cv_prog_AR="${ac_tool_prefix}ar"
3816 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3817 break 2
3818 fi
3819 done
3820 done
3821 +IFS=$as_save_IFS
3822
3823 fi
3824 fi
3825 AR=$ac_cv_prog_AR
3826 if test -n "$AR"; then
3827 - echo "$as_me:$LINENO: result: $AR" >&5
3828 -echo "${ECHO_T}$AR" >&6
3829 + { echo "$as_me:$LINENO: result: $AR" >&5
3830 +echo "${ECHO_T}$AR" >&6; }
3831 else
3832 - echo "$as_me:$LINENO: result: no" >&5
3833 -echo "${ECHO_T}no" >&6
3834 + { echo "$as_me:$LINENO: result: no" >&5
3835 +echo "${ECHO_T}no" >&6; }
3836 fi
3837
3838 +
3839 fi
3840 if test -z "$ac_cv_prog_AR"; then
3841 ac_ct_AR=$AR
3842 # Extract the first word of "ar", so it can be a program name with args.
3843 set dummy ar; ac_word=$2
3844 -echo "$as_me:$LINENO: checking for $ac_word" >&5
3845 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3846 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3847 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3848 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3849 echo $ECHO_N "(cached) $ECHO_C" >&6
3850 else
3851 @@ -3131,26 +3634,41 @@ do
3852 IFS=$as_save_IFS
3853 test -z "$as_dir" && as_dir=.
3854 for ac_exec_ext in '' $ac_executable_extensions; do
3855 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3856 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3857 ac_cv_prog_ac_ct_AR="ar"
3858 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3859 break 2
3860 fi
3861 done
3862 done
3863 +IFS=$as_save_IFS
3864
3865 fi
3866 fi
3867 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3868 if test -n "$ac_ct_AR"; then
3869 - echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3870 -echo "${ECHO_T}$ac_ct_AR" >&6
3871 + { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3872 +echo "${ECHO_T}$ac_ct_AR" >&6; }
3873 else
3874 - echo "$as_me:$LINENO: result: no" >&5
3875 -echo "${ECHO_T}no" >&6
3876 + { echo "$as_me:$LINENO: result: no" >&5
3877 +echo "${ECHO_T}no" >&6; }
3878 fi
3879
3880 - AR=$ac_ct_AR
3881 + if test "x$ac_ct_AR" = x; then
3882 + AR=""
3883 + else
3884 + case $cross_compiling:$ac_tool_warned in
3885 +yes:)
3886 +{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3887 +whose name does not start with the host triplet. If you think this
3888 +configuration is useful to you, please write to autoconf@gnu.org." >&5
3889 +echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3890 +whose name does not start with the host triplet. If you think this
3891 +configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3892 +ac_tool_warned=yes ;;
3893 +esac
3894 + AR=$ac_ct_AR
3895 + fi
3896 else
3897 AR="$ac_cv_prog_AR"
3898 fi
3899 @@ -3158,8 +3676,8 @@ fi
3900 if test -n "$ac_tool_prefix"; then
3901 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3902 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3903 -echo "$as_me:$LINENO: checking for $ac_word" >&5
3904 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3905 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3906 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3907 if test "${ac_cv_prog_RANLIB+set}" = set; then
3908 echo $ECHO_N "(cached) $ECHO_C" >&6
3909 else
3910 @@ -3172,32 +3690,34 @@ do
3911 IFS=$as_save_IFS
3912 test -z "$as_dir" && as_dir=.
3913 for ac_exec_ext in '' $ac_executable_extensions; do
3914 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3915 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3916 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3917 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3918 break 2
3919 fi
3920 done
3921 done
3922 +IFS=$as_save_IFS
3923
3924 fi
3925 fi
3926 RANLIB=$ac_cv_prog_RANLIB
3927 if test -n "$RANLIB"; then
3928 - echo "$as_me:$LINENO: result: $RANLIB" >&5
3929 -echo "${ECHO_T}$RANLIB" >&6
3930 + { echo "$as_me:$LINENO: result: $RANLIB" >&5
3931 +echo "${ECHO_T}$RANLIB" >&6; }
3932 else
3933 - echo "$as_me:$LINENO: result: no" >&5
3934 -echo "${ECHO_T}no" >&6
3935 + { echo "$as_me:$LINENO: result: no" >&5
3936 +echo "${ECHO_T}no" >&6; }
3937 fi
3938
3939 +
3940 fi
3941 if test -z "$ac_cv_prog_RANLIB"; then
3942 ac_ct_RANLIB=$RANLIB
3943 # Extract the first word of "ranlib", so it can be a program name with args.
3944 set dummy ranlib; ac_word=$2
3945 -echo "$as_me:$LINENO: checking for $ac_word" >&5
3946 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3947 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3948 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3949 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3950 echo $ECHO_N "(cached) $ECHO_C" >&6
3951 else
3952 @@ -3210,36 +3730,49 @@ do
3953 IFS=$as_save_IFS
3954 test -z "$as_dir" && as_dir=.
3955 for ac_exec_ext in '' $ac_executable_extensions; do
3956 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3957 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3958 ac_cv_prog_ac_ct_RANLIB="ranlib"
3959 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3960 break 2
3961 fi
3962 done
3963 done
3964 +IFS=$as_save_IFS
3965
3966 - test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3967 fi
3968 fi
3969 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3970 if test -n "$ac_ct_RANLIB"; then
3971 - echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3972 -echo "${ECHO_T}$ac_ct_RANLIB" >&6
3973 + { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3974 +echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
3975 else
3976 - echo "$as_me:$LINENO: result: no" >&5
3977 -echo "${ECHO_T}no" >&6
3978 + { echo "$as_me:$LINENO: result: no" >&5
3979 +echo "${ECHO_T}no" >&6; }
3980 fi
3981
3982 - RANLIB=$ac_ct_RANLIB
3983 + if test "x$ac_ct_RANLIB" = x; then
3984 + RANLIB=":"
3985 + else
3986 + case $cross_compiling:$ac_tool_warned in
3987 +yes:)
3988 +{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3989 +whose name does not start with the host triplet. If you think this
3990 +configuration is useful to you, please write to autoconf@gnu.org." >&5
3991 +echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3992 +whose name does not start with the host triplet. If you think this
3993 +configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3994 +ac_tool_warned=yes ;;
3995 +esac
3996 + RANLIB=$ac_ct_RANLIB
3997 + fi
3998 else
3999 RANLIB="$ac_cv_prog_RANLIB"
4000 fi
4001
4002
4003 -# Check whether --enable-shared or --disable-shared was given.
4004 +# Check whether --enable-shared was given.
4005 if test "${enable_shared+set}" = set; then
4006 - enableval="$enable_shared"
4007 - p=${PACKAGE-default}
4008 + enableval=$enable_shared; p=${PACKAGE-default}
4009 case $enableval in
4010 yes) enable_shared=yes ;;
4011 no) enable_shared=no ;;
4012 @@ -3257,12 +3790,12 @@ no) enable_shared=no ;;
4013 esac
4014 else
4015 enable_shared=no
4016 -fi;
4017 +fi
4018 +
4019
4020 -# Check whether --enable-static or --disable-static was given.
4021 +# Check whether --enable-static was given.
4022 if test "${enable_static+set}" = set; then
4023 - enableval="$enable_static"
4024 - p=${PACKAGE-default}
4025 + enableval=$enable_static; p=${PACKAGE-default}
4026 case $enableval in
4027 yes) enable_static=yes ;;
4028 no) enable_static=no ;;
4029 @@ -3280,11 +3813,11 @@ no) enable_static=no ;;
4030 esac
4031 else
4032 enable_static=yes
4033 -fi;
4034 -# Check whether --enable-fast-install or --disable-fast-install was given.
4035 +fi
4036 +
4037 +# Check whether --enable-fast-install was given.
4038 if test "${enable_fast_install+set}" = set; then
4039 - enableval="$enable_fast_install"
4040 - p=${PACKAGE-default}
4041 + enableval=$enable_fast_install; p=${PACKAGE-default}
4042 case $enableval in
4043 yes) enable_fast_install=yes ;;
4044 no) enable_fast_install=no ;;
4045 @@ -3302,20 +3835,21 @@ no) enable_fast_install=no ;;
4046 esac
4047 else
4048 enable_fast_install=yes
4049 -fi;
4050 +fi
4051 +
4052
4053 -# Check whether --with-gnu-ld or --without-gnu-ld was given.
4054 +# Check whether --with-gnu-ld was given.
4055 if test "${with_gnu_ld+set}" = set; then
4056 - withval="$with_gnu_ld"
4057 - test "$withval" = no || with_gnu_ld=yes
4058 + withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4059 else
4060 with_gnu_ld=no
4061 -fi;
4062 +fi
4063 +
4064 ac_prog=ld
4065 if test "$GCC" = yes; then
4066 # Check if gcc -print-prog-name=ld gives a path.
4067 - echo "$as_me:$LINENO: checking for ld used by GCC" >&5
4068 -echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
4069 + { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
4070 +echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
4071 case $host in
4072 *-*-mingw*)
4073 # gcc leaves a trailing carriage return which upsets mingw
4074 @@ -3344,11 +3878,11 @@ echo $ECHO_N "checking for ld used by GC
4075 ;;
4076 esac
4077 elif test "$with_gnu_ld" = yes; then
4078 - echo "$as_me:$LINENO: checking for GNU ld" >&5
4079 -echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4080 + { echo "$as_me:$LINENO: checking for GNU ld" >&5
4081 +echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4082 else
4083 - echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4084 -echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4085 + { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4086 +echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4087 fi
4088 if test "${lt_cv_path_LD+set}" = set; then
4089 echo $ECHO_N "(cached) $ECHO_C" >&6
4090 @@ -3377,17 +3911,17 @@ fi
4091
4092 LD="$lt_cv_path_LD"
4093 if test -n "$LD"; then
4094 - echo "$as_me:$LINENO: result: $LD" >&5
4095 -echo "${ECHO_T}$LD" >&6
4096 + { echo "$as_me:$LINENO: result: $LD" >&5
4097 +echo "${ECHO_T}$LD" >&6; }
4098 else
4099 - echo "$as_me:$LINENO: result: no" >&5
4100 -echo "${ECHO_T}no" >&6
4101 + { echo "$as_me:$LINENO: result: no" >&5
4102 +echo "${ECHO_T}no" >&6; }
4103 fi
4104 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4105 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4106 { (exit 1); exit 1; }; }
4107 -echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4108 -echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4109 +{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4110 +echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4111 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4112 echo $ECHO_N "(cached) $ECHO_C" >&6
4113 else
4114 @@ -3398,25 +3932,25 @@ else
4115 lt_cv_prog_gnu_ld=no
4116 fi
4117 fi
4118 -echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4119 -echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4120 +{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4121 +echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4122 with_gnu_ld=$lt_cv_prog_gnu_ld
4123
4124
4125 -echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4126 -echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4127 +{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4128 +echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4129 if test "${lt_cv_ld_reload_flag+set}" = set; then
4130 echo $ECHO_N "(cached) $ECHO_C" >&6
4131 else
4132 lt_cv_ld_reload_flag='-r'
4133 fi
4134 -echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4135 -echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4136 +{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4137 +echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4138 reload_flag=$lt_cv_ld_reload_flag
4139 test -n "$reload_flag" && reload_flag=" $reload_flag"
4140
4141 -echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4142 -echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4143 +{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4144 +echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4145 if test "${lt_cv_path_NM+set}" = set; then
4146 echo $ECHO_N "(cached) $ECHO_C" >&6
4147 else
4148 @@ -3451,22 +3985,22 @@ fi
4149 fi
4150
4151 NM="$lt_cv_path_NM"
4152 -echo "$as_me:$LINENO: result: $NM" >&5
4153 -echo "${ECHO_T}$NM" >&6
4154 +{ echo "$as_me:$LINENO: result: $NM" >&5
4155 +echo "${ECHO_T}$NM" >&6; }
4156
4157 -echo "$as_me:$LINENO: checking whether ln -s works" >&5
4158 -echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4159 +{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
4160 +echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4161 LN_S=$as_ln_s
4162 if test "$LN_S" = "ln -s"; then
4163 - echo "$as_me:$LINENO: result: yes" >&5
4164 -echo "${ECHO_T}yes" >&6
4165 + { echo "$as_me:$LINENO: result: yes" >&5
4166 +echo "${ECHO_T}yes" >&6; }
4167 else
4168 - echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4169 -echo "${ECHO_T}no, using $LN_S" >&6
4170 + { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4171 +echo "${ECHO_T}no, using $LN_S" >&6; }
4172 fi
4173
4174 -echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
4175 -echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
4176 +{ echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
4177 +echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6; }
4178 if test "${lt_cv_deplibs_check_method+set}" = set; then
4179 echo $ECHO_N "(cached) $ECHO_C" >&6
4180 else
4181 @@ -3628,8 +4162,8 @@ sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4182 esac
4183
4184 fi
4185 -echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4186 -echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4187 +{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4188 +echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4189 file_magic_cmd=$lt_cv_file_magic_cmd
4190 deplibs_check_method=$lt_cv_deplibs_check_method
4191
4192 @@ -3639,8 +4173,8 @@ deplibs_check_method=$lt_cv_deplibs_chec
4193 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
4194
4195 # find the maximum length of command line arguments
4196 -echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4197 -echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
4198 +{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4199 +echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
4200 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4201 echo $ECHO_N "(cached) $ECHO_C" >&6
4202 else
4203 @@ -3691,11 +4225,11 @@ else
4204 fi
4205
4206 if test -n "$lt_cv_sys_max_cmd_len" ; then
4207 - echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4208 -echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
4209 + { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4210 +echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
4211 else
4212 - echo "$as_me:$LINENO: result: none" >&5
4213 -echo "${ECHO_T}none" >&6
4214 + { echo "$as_me:$LINENO: result: none" >&5
4215 +echo "${ECHO_T}none" >&6; }
4216 fi
4217
4218
4219 @@ -3703,8 +4237,8 @@ fi
4220 case $deplibs_check_method in
4221 file_magic*)
4222 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
4223 - echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
4224 -echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
4225 + { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
4226 +echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
4227 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4228 echo $ECHO_N "(cached) $ECHO_C" >&6
4229 else
4230 @@ -3758,17 +4292,17 @@ fi
4231
4232 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4233 if test -n "$MAGIC_CMD"; then
4234 - echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4235 -echo "${ECHO_T}$MAGIC_CMD" >&6
4236 + { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4237 +echo "${ECHO_T}$MAGIC_CMD" >&6; }
4238 else
4239 - echo "$as_me:$LINENO: result: no" >&5
4240 -echo "${ECHO_T}no" >&6
4241 + { echo "$as_me:$LINENO: result: no" >&5
4242 +echo "${ECHO_T}no" >&6; }
4243 fi
4244
4245 if test -z "$lt_cv_path_MAGIC_CMD"; then
4246 if test -n "$ac_tool_prefix"; then
4247 - echo "$as_me:$LINENO: checking for file" >&5
4248 -echo $ECHO_N "checking for file... $ECHO_C" >&6
4249 + { echo "$as_me:$LINENO: checking for file" >&5
4250 +echo $ECHO_N "checking for file... $ECHO_C" >&6; }
4251 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4252 echo $ECHO_N "(cached) $ECHO_C" >&6
4253 else
4254 @@ -3822,11 +4356,11 @@ fi
4255
4256 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4257 if test -n "$MAGIC_CMD"; then
4258 - echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4259 -echo "${ECHO_T}$MAGIC_CMD" >&6
4260 + { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4261 +echo "${ECHO_T}$MAGIC_CMD" >&6; }
4262 else
4263 - echo "$as_me:$LINENO: result: no" >&5
4264 -echo "${ECHO_T}no" >&6
4265 + { echo "$as_me:$LINENO: result: no" >&5
4266 +echo "${ECHO_T}no" >&6; }
4267 fi
4268
4269 else
4270 @@ -3841,8 +4375,8 @@ esac
4271 if test -n "$ac_tool_prefix"; then
4272 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4273 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4274 -echo "$as_me:$LINENO: checking for $ac_word" >&5
4275 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4276 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4277 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4278 if test "${ac_cv_prog_RANLIB+set}" = set; then
4279 echo $ECHO_N "(cached) $ECHO_C" >&6
4280 else
4281 @@ -3855,32 +4389,34 @@ do
4282 IFS=$as_save_IFS
4283 test -z "$as_dir" && as_dir=.
4284 for ac_exec_ext in '' $ac_executable_extensions; do
4285 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4286 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4287 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4288 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4289 break 2
4290 fi
4291 done
4292 done
4293 +IFS=$as_save_IFS
4294
4295 fi
4296 fi
4297 RANLIB=$ac_cv_prog_RANLIB
4298 if test -n "$RANLIB"; then
4299 - echo "$as_me:$LINENO: result: $RANLIB" >&5
4300 -echo "${ECHO_T}$RANLIB" >&6
4301 + { echo "$as_me:$LINENO: result: $RANLIB" >&5
4302 +echo "${ECHO_T}$RANLIB" >&6; }
4303 else
4304 - echo "$as_me:$LINENO: result: no" >&5
4305 -echo "${ECHO_T}no" >&6
4306 + { echo "$as_me:$LINENO: result: no" >&5
4307 +echo "${ECHO_T}no" >&6; }
4308 fi
4309
4310 +
4311 fi
4312 if test -z "$ac_cv_prog_RANLIB"; then
4313 ac_ct_RANLIB=$RANLIB
4314 # Extract the first word of "ranlib", so it can be a program name with args.
4315 set dummy ranlib; ac_word=$2
4316 -echo "$as_me:$LINENO: checking for $ac_word" >&5
4317 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4318 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4319 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4320 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4321 echo $ECHO_N "(cached) $ECHO_C" >&6
4322 else
4323 @@ -3893,27 +4429,41 @@ do
4324 IFS=$as_save_IFS
4325 test -z "$as_dir" && as_dir=.
4326 for ac_exec_ext in '' $ac_executable_extensions; do
4327 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4328 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4329 ac_cv_prog_ac_ct_RANLIB="ranlib"
4330 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4331 break 2
4332 fi
4333 done
4334 done
4335 +IFS=$as_save_IFS
4336
4337 - test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4338 fi
4339 fi
4340 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4341 if test -n "$ac_ct_RANLIB"; then
4342 - echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4343 -echo "${ECHO_T}$ac_ct_RANLIB" >&6
4344 + { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4345 +echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4346 else
4347 - echo "$as_me:$LINENO: result: no" >&5
4348 -echo "${ECHO_T}no" >&6
4349 + { echo "$as_me:$LINENO: result: no" >&5
4350 +echo "${ECHO_T}no" >&6; }
4351 fi
4352
4353 - RANLIB=$ac_ct_RANLIB
4354 + if test "x$ac_ct_RANLIB" = x; then
4355 + RANLIB=":"
4356 + else
4357 + case $cross_compiling:$ac_tool_warned in
4358 +yes:)
4359 +{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4360 +whose name does not start with the host triplet. If you think this
4361 +configuration is useful to you, please write to autoconf@gnu.org." >&5
4362 +echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4363 +whose name does not start with the host triplet. If you think this
4364 +configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4365 +ac_tool_warned=yes ;;
4366 +esac
4367 + RANLIB=$ac_ct_RANLIB
4368 + fi
4369 else
4370 RANLIB="$ac_cv_prog_RANLIB"
4371 fi
4372 @@ -3921,8 +4471,8 @@ fi
4373 if test -n "$ac_tool_prefix"; then
4374 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4375 set dummy ${ac_tool_prefix}strip; ac_word=$2
4376 -echo "$as_me:$LINENO: checking for $ac_word" >&5
4377 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4378 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4379 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4380 if test "${ac_cv_prog_STRIP+set}" = set; then
4381 echo $ECHO_N "(cached) $ECHO_C" >&6
4382 else
4383 @@ -3935,32 +4485,34 @@ do
4384 IFS=$as_save_IFS
4385 test -z "$as_dir" && as_dir=.
4386 for ac_exec_ext in '' $ac_executable_extensions; do
4387 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4388 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4389 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4390 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4391 break 2
4392 fi
4393 done
4394 done
4395 +IFS=$as_save_IFS
4396
4397 fi
4398 fi
4399 STRIP=$ac_cv_prog_STRIP
4400 if test -n "$STRIP"; then
4401 - echo "$as_me:$LINENO: result: $STRIP" >&5
4402 -echo "${ECHO_T}$STRIP" >&6
4403 + { echo "$as_me:$LINENO: result: $STRIP" >&5
4404 +echo "${ECHO_T}$STRIP" >&6; }
4405 else
4406 - echo "$as_me:$LINENO: result: no" >&5
4407 -echo "${ECHO_T}no" >&6
4408 + { echo "$as_me:$LINENO: result: no" >&5
4409 +echo "${ECHO_T}no" >&6; }
4410 fi
4411
4412 +
4413 fi
4414 if test -z "$ac_cv_prog_STRIP"; then
4415 ac_ct_STRIP=$STRIP
4416 # Extract the first word of "strip", so it can be a program name with args.
4417 set dummy strip; ac_word=$2
4418 -echo "$as_me:$LINENO: checking for $ac_word" >&5
4419 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4420 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4421 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4422 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4423 echo $ECHO_N "(cached) $ECHO_C" >&6
4424 else
4425 @@ -3973,27 +4525,41 @@ do
4426 IFS=$as_save_IFS
4427 test -z "$as_dir" && as_dir=.
4428 for ac_exec_ext in '' $ac_executable_extensions; do
4429 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4430 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4431 ac_cv_prog_ac_ct_STRIP="strip"
4432 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4433 break 2
4434 fi
4435 done
4436 done
4437 +IFS=$as_save_IFS
4438
4439 - test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4440 fi
4441 fi
4442 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4443 if test -n "$ac_ct_STRIP"; then
4444 - echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4445 -echo "${ECHO_T}$ac_ct_STRIP" >&6
4446 + { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4447 +echo "${ECHO_T}$ac_ct_STRIP" >&6; }
4448 else
4449 - echo "$as_me:$LINENO: result: no" >&5
4450 -echo "${ECHO_T}no" >&6
4451 + { echo "$as_me:$LINENO: result: no" >&5
4452 +echo "${ECHO_T}no" >&6; }
4453 fi
4454
4455 - STRIP=$ac_ct_STRIP
4456 + if test "x$ac_ct_STRIP" = x; then
4457 + STRIP=":"
4458 + else
4459 + case $cross_compiling:$ac_tool_warned in
4460 +yes:)
4461 +{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4462 +whose name does not start with the host triplet. If you think this
4463 +configuration is useful to you, please write to autoconf@gnu.org." >&5
4464 +echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4465 +whose name does not start with the host triplet. If you think this
4466 +configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4467 +ac_tool_warned=yes ;;
4468 +esac
4469 + STRIP=$ac_ct_STRIP
4470 + fi
4471 else
4472 STRIP="$ac_cv_prog_STRIP"
4473 fi
4474 @@ -4008,22 +4574,22 @@ test "$GCC" = yes && libtool_flags="$lib
4475 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
4476
4477
4478 -# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4479 +# Check whether --enable-libtool-lock was given.
4480 if test "${enable_libtool_lock+set}" = set; then
4481 - enableval="$enable_libtool_lock"
4482 + enableval=$enable_libtool_lock;
4483 +fi
4484
4485 -fi;
4486 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
4487 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
4488
4489
4490 -# Check whether --with-pic or --without-pic was given.
4491 +# Check whether --with-pic was given.
4492 if test "${with_pic+set}" = set; then
4493 - withval="$with_pic"
4494 - pic_mode="$withval"
4495 + withval=$with_pic; pic_mode="$withval"
4496 else
4497 pic_mode=default
4498 -fi;
4499 +fi
4500 +
4501 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
4502 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
4503
4504 @@ -4032,7 +4598,7 @@ test x"$pic_mode" = xno && libtool_flags
4505 case $host in
4506 *-*-irix6*)
4507 # Find out which ABI we are using.
4508 - echo '#line 4035 "configure"' > conftest.$ac_ext
4509 + echo '#line 4601 "configure"' > conftest.$ac_ext
4510 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4511 (eval $ac_compile) 2>&5
4512 ac_status=$?
4513 @@ -4137,13 +4703,12 @@ x86_64-*linux*|ppc*-*linux*|powerpc*-*li
4514 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4515 SAVE_CFLAGS="$CFLAGS"
4516 CFLAGS="$CFLAGS -belf"
4517 - echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4518 -echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4519 + { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4520 +echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4521 if test "${lt_cv_cc_needs_belf+set}" = set; then
4522 echo $ECHO_N "(cached) $ECHO_C" >&6
4523 else
4524
4525 -
4526 ac_ext=c
4527 ac_cpp='$CPP $CPPFLAGS'
4528 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4529 @@ -4166,35 +4731,32 @@ main ()
4530 }
4531 _ACEOF
4532 rm -f conftest.$ac_objext conftest$ac_exeext
4533 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4534 - (eval $ac_link) 2>conftest.er1
4535 +if { (ac_try="$ac_link"
4536 +case "(($ac_try" in
4537 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4538 + *) ac_try_echo=$ac_try;;
4539 +esac
4540 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4541 + (eval "$ac_link") 2>conftest.er1
4542 ac_status=$?
4543 grep -v '^ *+' conftest.er1 >conftest.err
4544 rm -f conftest.er1
4545 cat conftest.err >&5
4546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4547 - (exit $ac_status); } &&
4548 - { ac_try='test -z "$ac_c_werror_flag"
4549 - || test ! -s conftest.err'
4550 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4551 - (eval $ac_try) 2>&5
4552 - ac_status=$?
4553 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
4554 - (exit $ac_status); }; } &&
4555 - { ac_try='test -s conftest$ac_exeext'
4556 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4557 - (eval $ac_try) 2>&5
4558 - ac_status=$?
4559 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
4560 - (exit $ac_status); }; }; then
4561 + (exit $ac_status); } && {
4562 + test -z "$ac_c_werror_flag" ||
4563 + test ! -s conftest.err
4564 + } && test -s conftest$ac_exeext &&
4565 + $as_test_x conftest$ac_exeext; then
4566 lt_cv_cc_needs_belf=yes
4567 else
4568 echo "$as_me: failed program was:" >&5
4569 sed 's/^/| /' conftest.$ac_ext >&5
4570
4571 -lt_cv_cc_needs_belf=no
4572 + lt_cv_cc_needs_belf=no
4573 fi
4574 -rm -f conftest.err conftest.$ac_objext \
4575 +
4576 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4577 conftest$ac_exeext conftest.$ac_ext
4578 ac_ext=c
4579 ac_cpp='$CPP $CPPFLAGS'
4580 @@ -4203,8 +4765,8 @@ ac_link='$CC -o conftest$ac_exeext $CFLA
4581 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4582
4583 fi
4584 -echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4585 -echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4586 +{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4587 +echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4588 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4589 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4590 CFLAGS="$SAVE_CFLAGS"
4591 @@ -4234,39 +4796,58 @@ _ACEOF
4592
4593 # The following way of writing the cache mishandles newlines in values,
4594 # but we know of no workaround that is simple, portable, and efficient.
4595 -# So, don't put newlines in cache variables' values.
4596 +# So, we kill variables containing newlines.
4597 # Ultrix sh set writes to stderr and can't be redirected directly,
4598 # and sets the high bit in the cache file unless we assign to the vars.
4599 -{
4600 +(
4601 + for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
4602 + eval ac_val=\$$ac_var
4603 + case $ac_val in #(
4604 + *${as_nl}*)
4605 + case $ac_var in #(
4606 + *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
4607 +echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
4608 + esac
4609 + case $ac_var in #(
4610 + _ | IFS | as_nl) ;; #(
4611 + *) $as_unset $ac_var ;;
4612 + esac ;;
4613 + esac
4614 + done
4615 +
4616 (set) 2>&1 |
4617 - case `(ac_space=' '; set | grep ac_space) 2>&1` in
4618 - *ac_space=\ *)
4619 + case $as_nl`(ac_space=' '; set) 2>&1` in #(
4620 + *${as_nl}ac_space=\ *)
4621 # `set' does not quote correctly, so add quotes (double-quote
4622 # substitution turns \\\\ into \\, and sed turns \\ into \).
4623 sed -n \
4624 "s/'/'\\\\''/g;
4625 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4626 - ;;
4627 + ;; #(
4628 *)
4629 # `set' quotes correctly as required by POSIX, so do not add quotes.
4630 - sed -n \
4631 - "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4632 + sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
4633 ;;
4634 - esac;
4635 -} |
4636 + esac |
4637 + sort
4638 +) |
4639 sed '
4640 + /^ac_cv_env_/b end
4641 t clear
4642 - : clear
4643 + :clear
4644 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4645 t end
4646 - /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4647 - : end' >>confcache
4648 -if diff $cache_file confcache >/dev/null 2>&1; then :; else
4649 - if test -w $cache_file; then
4650 - test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4651 + s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4652 + :end' >>confcache
4653 +if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
4654 + if test -w "$cache_file"; then
4655 + test "x$cache_file" != "x/dev/null" &&
4656 + { echo "$as_me:$LINENO: updating cache $cache_file" >&5
4657 +echo "$as_me: updating cache $cache_file" >&6;}
4658 cat confcache >$cache_file
4659 else
4660 - echo "not updating unwritable cache $cache_file"
4661 + { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
4662 +echo "$as_me: not updating unwritable cache $cache_file" >&6;}
4663 fi
4664 fi
4665 rm -f confcache
4666 @@ -4292,8 +4873,8 @@ if test -r "$cache_file"; then
4667 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
4668 echo "$as_me: loading cache $cache_file" >&6;}
4669 case $cache_file in
4670 - [\\/]* | ?:[\\/]* ) . $cache_file;;
4671 - *) . ./$cache_file;;
4672 + [\\/]* | ?:[\\/]* ) . "$cache_file";;
4673 + *) . "./$cache_file";;
4674 esac
4675 fi
4676 else
4677 @@ -4319,10 +4900,9 @@ exec 5>>./config.log
4678
4679
4680
4681 -# Check whether --enable-64-bit-bfd or --disable-64-bit-bfd was given.
4682 +# Check whether --enable-64-bit-bfd was given.
4683 if test "${enable_64_bit_bfd+set}" = set; then
4684 - enableval="$enable_64_bit_bfd"
4685 - case "${enableval}" in
4686 + enableval=$enable_64_bit_bfd; case "${enableval}" in
4687 yes) want64=true ;;
4688 no) want64=false ;;
4689 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for 64-bit-bfd option" >&5
4690 @@ -4331,10 +4911,10 @@ echo "$as_me: error: bad value ${enablev
4691 esac
4692 else
4693 want64=false
4694 -fi; # Check whether --enable-targets or --disable-targets was given.
4695 +fi
4696 +# Check whether --enable-targets was given.
4697 if test "${enable_targets+set}" = set; then
4698 - enableval="$enable_targets"
4699 - case "${enableval}" in
4700 + enableval=$enable_targets; case "${enableval}" in
4701 yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5
4702 echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;}
4703 { (exit 1); exit 1; }; }
4704 @@ -4342,21 +4922,21 @@ echo "$as_me: error: enable-targets opti
4705 no) enable_targets= ;;
4706 *) enable_targets=$enableval ;;
4707 esac
4708 -fi; # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
4709 +fi
4710 +# Check whether --enable-commonbfdlib was given.
4711 if test "${enable_commonbfdlib+set}" = set; then
4712 - enableval="$enable_commonbfdlib"
4713 - case "${enableval}" in
4714 + enableval=$enable_commonbfdlib; case "${enableval}" in
4715 yes) commonbfdlib=true ;;
4716 no) commonbfdlib=false ;;
4717 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for BFD commonbfdlib option" >&5
4718 echo "$as_me: error: bad value ${enableval} for BFD commonbfdlib option" >&2;}
4719 { (exit 1); exit 1; }; } ;;
4720 esac
4721 -fi;
4722 -# Check whether --with-mmap or --without-mmap was given.
4723 +fi
4724 +
4725 +# Check whether --with-mmap was given.
4726 if test "${with_mmap+set}" = set; then
4727 - withval="$with_mmap"
4728 - case "${withval}" in
4729 + withval=$with_mmap; case "${withval}" in
4730 yes) want_mmap=true ;;
4731 no) want_mmap=false ;;
4732 *) { { echo "$as_me:$LINENO: error: bad value ${withval} for BFD with-mmap option" >&5
4733 @@ -4365,11 +4945,11 @@ echo "$as_me: error: bad value ${withval
4734 esac
4735 else
4736 want_mmap=false
4737 -fi;
4738 -# Check whether --enable-secureplt or --disable-secureplt was given.
4739 +fi
4740 +
4741 +# Check whether --enable-secureplt was given.
4742 if test "${enable_secureplt+set}" = set; then
4743 - enableval="$enable_secureplt"
4744 - case "${enableval}" in
4745 + enableval=$enable_secureplt; case "${enableval}" in
4746 yes) use_secureplt=true ;;
4747 no) use_secureplt=false ;;
4748 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for secureplt option" >&5
4749 @@ -4378,7 +4958,8 @@ echo "$as_me: error: bad value ${enablev
4750 esac
4751 else
4752 use_secureplt=false
4753 -fi; if test $use_secureplt = true; then
4754 +fi
4755 +if test $use_secureplt = true; then
4756
4757 cat >>confdefs.h <<\_ACEOF
4758 #define USE_SECUREPLT 1
4759 @@ -4389,17 +4970,17 @@ fi
4760
4761 GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
4762
4763 -# Check whether --enable-werror or --disable-werror was given.
4764 +# Check whether --enable-werror was given.
4765 if test "${enable_werror+set}" = set; then
4766 - enableval="$enable_werror"
4767 - case "${enableval}" in
4768 + enableval=$enable_werror; case "${enableval}" in
4769 yes | y) ERROR_ON_WARNING="yes" ;;
4770 no | n) ERROR_ON_WARNING="no" ;;
4771 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
4772 echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
4773 { (exit 1); exit 1; }; } ;;
4774 esac
4775 -fi;
4776 +fi
4777 +
4778
4779 # Enable -Werror by default when using gcc
4780 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
4781 @@ -4416,10 +4997,9 @@ if test "${GCC}" = yes ; then
4782 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
4783 fi
4784
4785 -# Check whether --enable-build-warnings or --disable-build-warnings was given.
4786 +# Check whether --enable-build-warnings was given.
4787 if test "${enable_build_warnings+set}" = set; then
4788 - enableval="$enable_build_warnings"
4789 - case "${enableval}" in
4790 + enableval=$enable_build_warnings; case "${enableval}" in
4791 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
4792 no) if test "${GCC}" = yes ; then
4793 WARN_CFLAGS="-w"
4794 @@ -4430,7 +5010,8 @@ if test "${enable_build_warnings+set}" =
4795 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
4796 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
4797 esac
4798 -fi;
4799 +fi
4800 +
4801
4802 if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
4803 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
4804 @@ -4440,7 +5021,7 @@ fi
4805
4806
4807
4808 - ac_config_headers="$ac_config_headers config.h:config.in"
4809 +ac_config_headers="$ac_config_headers config.h:config.in"
4810
4811
4812 if test -z "$target" ; then
4813 @@ -4449,17 +5030,17 @@ echo "$as_me: error: Unrecognized target
4814 { (exit 1); exit 1; }; }
4815 fi
4816
4817 -echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
4818 -echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
4819 - # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4820 +{ echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
4821 +echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
4822 + # Check whether --enable-maintainer-mode was given.
4823 if test "${enable_maintainer_mode+set}" = set; then
4824 - enableval="$enable_maintainer_mode"
4825 - USE_MAINTAINER_MODE=$enableval
4826 + enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4827 else
4828 USE_MAINTAINER_MODE=no
4829 -fi;
4830 - echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
4831 -echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
4832 +fi
4833 +
4834 + { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
4835 +echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
4836
4837
4838 if test $USE_MAINTAINER_MODE = yes; then
4839 @@ -4488,21 +5069,21 @@ esac
4840 *) target_noncanonical=${target_alias} ;;
4841 esac
4842
4843 -echo "$as_me:$LINENO: checking whether to install libbfd" >&5
4844 -echo $ECHO_N "checking whether to install libbfd... $ECHO_C" >&6
4845 - # Check whether --enable-install-libbfd or --disable-install-libbfd was given.
4846 +{ echo "$as_me:$LINENO: checking whether to install libbfd" >&5
4847 +echo $ECHO_N "checking whether to install libbfd... $ECHO_C" >&6; }
4848 + # Check whether --enable-install-libbfd was given.
4849 if test "${enable_install_libbfd+set}" = set; then
4850 - enableval="$enable_install_libbfd"
4851 - install_libbfd_p=$enableval
4852 + enableval=$enable_install_libbfd; install_libbfd_p=$enableval
4853 else
4854 if test "${host}" = "${target}" || test "$enable_shared" = "yes"; then
4855 install_libbfd_p=yes
4856 else
4857 install_libbfd_p=no
4858 fi
4859 -fi;
4860 - echo "$as_me:$LINENO: result: $install_libbfd_p" >&5
4861 -echo "${ECHO_T}$install_libbfd_p" >&6
4862 +fi
4863 +
4864 + { echo "$as_me:$LINENO: result: $install_libbfd_p" >&5
4865 +echo "${ECHO_T}$install_libbfd_p" >&6; }
4866
4867
4868 if test $install_libbfd_p = yes; then
4869 @@ -4545,8 +5126,8 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
4870 if test -n "$ac_tool_prefix"; then
4871 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4872 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4873 -echo "$as_me:$LINENO: checking for $ac_word" >&5
4874 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4875 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4876 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4877 if test "${ac_cv_prog_CC+set}" = set; then
4878 echo $ECHO_N "(cached) $ECHO_C" >&6
4879 else
4880 @@ -4559,32 +5140,34 @@ do
4881 IFS=$as_save_IFS
4882 test -z "$as_dir" && as_dir=.
4883 for ac_exec_ext in '' $ac_executable_extensions; do
4884 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4885 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4886 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4887 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4888 break 2
4889 fi
4890 done
4891 done
4892 +IFS=$as_save_IFS
4893
4894 fi
4895 fi
4896 CC=$ac_cv_prog_CC
4897 if test -n "$CC"; then
4898 - echo "$as_me:$LINENO: result: $CC" >&5
4899 -echo "${ECHO_T}$CC" >&6
4900 + { echo "$as_me:$LINENO: result: $CC" >&5
4901 +echo "${ECHO_T}$CC" >&6; }
4902 else
4903 - echo "$as_me:$LINENO: result: no" >&5
4904 -echo "${ECHO_T}no" >&6
4905 + { echo "$as_me:$LINENO: result: no" >&5
4906 +echo "${ECHO_T}no" >&6; }
4907 fi
4908
4909 +
4910 fi
4911 if test -z "$ac_cv_prog_CC"; then
4912 ac_ct_CC=$CC
4913 # Extract the first word of "gcc", so it can be a program name with args.
4914 set dummy gcc; ac_word=$2
4915 -echo "$as_me:$LINENO: checking for $ac_word" >&5
4916 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4917 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4918 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4919 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4920 echo $ECHO_N "(cached) $ECHO_C" >&6
4921 else
4922 @@ -4597,36 +5180,51 @@ do
4923 IFS=$as_save_IFS
4924 test -z "$as_dir" && as_dir=.
4925 for ac_exec_ext in '' $ac_executable_extensions; do
4926 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4927 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4928 ac_cv_prog_ac_ct_CC="gcc"
4929 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4930 break 2
4931 fi
4932 done
4933 done
4934 +IFS=$as_save_IFS
4935
4936 fi
4937 fi
4938 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4939 if test -n "$ac_ct_CC"; then
4940 - echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4941 -echo "${ECHO_T}$ac_ct_CC" >&6
4942 + { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4943 +echo "${ECHO_T}$ac_ct_CC" >&6; }
4944 else
4945 - echo "$as_me:$LINENO: result: no" >&5
4946 -echo "${ECHO_T}no" >&6
4947 + { echo "$as_me:$LINENO: result: no" >&5
4948 +echo "${ECHO_T}no" >&6; }
4949 fi
4950
4951 - CC=$ac_ct_CC
4952 + if test "x$ac_ct_CC" = x; then
4953 + CC=""
4954 + else
4955 + case $cross_compiling:$ac_tool_warned in
4956 +yes:)
4957 +{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4958 +whose name does not start with the host triplet. If you think this
4959 +configuration is useful to you, please write to autoconf@gnu.org." >&5
4960 +echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4961 +whose name does not start with the host triplet. If you think this
4962 +configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4963 +ac_tool_warned=yes ;;
4964 +esac
4965 + CC=$ac_ct_CC
4966 + fi
4967 else
4968 CC="$ac_cv_prog_CC"
4969 fi
4970
4971 if test -z "$CC"; then
4972 - if test -n "$ac_tool_prefix"; then
4973 - # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4974 + if test -n "$ac_tool_prefix"; then
4975 + # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4976 set dummy ${ac_tool_prefix}cc; ac_word=$2
4977 -echo "$as_me:$LINENO: checking for $ac_word" >&5
4978 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4979 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4980 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4981 if test "${ac_cv_prog_CC+set}" = set; then
4982 echo $ECHO_N "(cached) $ECHO_C" >&6
4983 else
4984 @@ -4639,74 +5237,34 @@ do
4985 IFS=$as_save_IFS
4986 test -z "$as_dir" && as_dir=.
4987 for ac_exec_ext in '' $ac_executable_extensions; do
4988 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4989 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4990 ac_cv_prog_CC="${ac_tool_prefix}cc"
4991 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4992 break 2
4993 fi
4994 done
4995 done
4996 +IFS=$as_save_IFS
4997
4998 fi
4999 fi
5000 CC=$ac_cv_prog_CC
5001 if test -n "$CC"; then
5002 - echo "$as_me:$LINENO: result: $CC" >&5
5003 -echo "${ECHO_T}$CC" >&6
5004 -else
5005 - echo "$as_me:$LINENO: result: no" >&5
5006 -echo "${ECHO_T}no" >&6
5007 -fi
5008 -
5009 -fi
5010 -if test -z "$ac_cv_prog_CC"; then
5011 - ac_ct_CC=$CC
5012 - # Extract the first word of "cc", so it can be a program name with args.
5013 -set dummy cc; ac_word=$2
5014 -echo "$as_me:$LINENO: checking for $ac_word" >&5
5015 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5016 -if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5017 - echo $ECHO_N "(cached) $ECHO_C" >&6
5018 -else
5019 - if test -n "$ac_ct_CC"; then
5020 - ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5021 -else
5022 -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5023 -for as_dir in $PATH
5024 -do
5025 - IFS=$as_save_IFS
5026 - test -z "$as_dir" && as_dir=.
5027 - for ac_exec_ext in '' $ac_executable_extensions; do
5028 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5029 - ac_cv_prog_ac_ct_CC="cc"
5030 - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5031 - break 2
5032 - fi
5033 -done
5034 -done
5035 -
5036 -fi
5037 -fi
5038 -ac_ct_CC=$ac_cv_prog_ac_ct_CC
5039 -if test -n "$ac_ct_CC"; then
5040 - echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5041 -echo "${ECHO_T}$ac_ct_CC" >&6
5042 + { echo "$as_me:$LINENO: result: $CC" >&5
5043 +echo "${ECHO_T}$CC" >&6; }
5044 else
5045 - echo "$as_me:$LINENO: result: no" >&5
5046 -echo "${ECHO_T}no" >&6
5047 + { echo "$as_me:$LINENO: result: no" >&5
5048 +echo "${ECHO_T}no" >&6; }
5049 fi
5050
5051 - CC=$ac_ct_CC
5052 -else
5053 - CC="$ac_cv_prog_CC"
5054 -fi
5055
5056 + fi
5057 fi
5058 if test -z "$CC"; then
5059 # Extract the first word of "cc", so it can be a program name with args.
5060 set dummy cc; ac_word=$2
5061 -echo "$as_me:$LINENO: checking for $ac_word" >&5
5062 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5063 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5064 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5065 if test "${ac_cv_prog_CC+set}" = set; then
5066 echo $ECHO_N "(cached) $ECHO_C" >&6
5067 else
5068 @@ -4720,7 +5278,7 @@ do
5069 IFS=$as_save_IFS
5070 test -z "$as_dir" && as_dir=.
5071 for ac_exec_ext in '' $ac_executable_extensions; do
5072 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5073 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5074 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5075 ac_prog_rejected=yes
5076 continue
5077 @@ -4731,6 +5289,7 @@ do
5078 fi
5079 done
5080 done
5081 +IFS=$as_save_IFS
5082
5083 if test $ac_prog_rejected = yes; then
5084 # We found a bogon in the path, so make sure we never use it.
5085 @@ -4748,22 +5307,23 @@ fi
5086 fi
5087 CC=$ac_cv_prog_CC
5088 if test -n "$CC"; then
5089 - echo "$as_me:$LINENO: result: $CC" >&5
5090 -echo "${ECHO_T}$CC" >&6
5091 + { echo "$as_me:$LINENO: result: $CC" >&5
5092 +echo "${ECHO_T}$CC" >&6; }
5093 else
5094 - echo "$as_me:$LINENO: result: no" >&5
5095 -echo "${ECHO_T}no" >&6
5096 + { echo "$as_me:$LINENO: result: no" >&5
5097 +echo "${ECHO_T}no" >&6; }
5098 fi
5099
5100 +
5101 fi
5102 if test -z "$CC"; then
5103 if test -n "$ac_tool_prefix"; then
5104 - for ac_prog in cl
5105 + for ac_prog in cl.exe
5106 do
5107 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5108 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5109 -echo "$as_me:$LINENO: checking for $ac_word" >&5
5110 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5111 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5112 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5113 if test "${ac_cv_prog_CC+set}" = set; then
5114 echo $ECHO_N "(cached) $ECHO_C" >&6
5115 else
5116 @@ -4776,36 +5336,38 @@ do
5117 IFS=$as_save_IFS
5118 test -z "$as_dir" && as_dir=.
5119 for ac_exec_ext in '' $ac_executable_extensions; do
5120 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5121 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5122 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5123 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5124 break 2
5125 fi
5126 done
5127 done
5128 +IFS=$as_save_IFS
5129
5130 fi
5131 fi
5132 CC=$ac_cv_prog_CC
5133 if test -n "$CC"; then
5134 - echo "$as_me:$LINENO: result: $CC" >&5
5135 -echo "${ECHO_T}$CC" >&6
5136 + { echo "$as_me:$LINENO: result: $CC" >&5
5137 +echo "${ECHO_T}$CC" >&6; }
5138 else
5139 - echo "$as_me:$LINENO: result: no" >&5
5140 -echo "${ECHO_T}no" >&6
5141 + { echo "$as_me:$LINENO: result: no" >&5
5142 +echo "${ECHO_T}no" >&6; }
5143 fi
5144
5145 +
5146 test -n "$CC" && break
5147 done
5148 fi
5149 if test -z "$CC"; then
5150 ac_ct_CC=$CC
5151 - for ac_prog in cl
5152 + for ac_prog in cl.exe
5153 do
5154 # Extract the first word of "$ac_prog", so it can be a program name with args.
5155 set dummy $ac_prog; ac_word=$2
5156 -echo "$as_me:$LINENO: checking for $ac_word" >&5
5157 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5158 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5159 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5160 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5161 echo $ECHO_N "(cached) $ECHO_C" >&6
5162 else
5163 @@ -4818,29 +5380,45 @@ do
5164 IFS=$as_save_IFS
5165 test -z "$as_dir" && as_dir=.
5166 for ac_exec_ext in '' $ac_executable_extensions; do
5167 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5168 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5169 ac_cv_prog_ac_ct_CC="$ac_prog"
5170 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5171 break 2
5172 fi
5173 done
5174 done
5175 +IFS=$as_save_IFS
5176
5177 fi
5178 fi
5179 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5180 if test -n "$ac_ct_CC"; then
5181 - echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5182 -echo "${ECHO_T}$ac_ct_CC" >&6
5183 + { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5184 +echo "${ECHO_T}$ac_ct_CC" >&6; }
5185 else
5186 - echo "$as_me:$LINENO: result: no" >&5
5187 -echo "${ECHO_T}no" >&6
5188 + { echo "$as_me:$LINENO: result: no" >&5
5189 +echo "${ECHO_T}no" >&6; }
5190 fi
5191
5192 +
5193 test -n "$ac_ct_CC" && break
5194 done
5195
5196 - CC=$ac_ct_CC
5197 + if test "x$ac_ct_CC" = x; then
5198 + CC=""
5199 + else
5200 + case $cross_compiling:$ac_tool_warned in
5201 +yes:)
5202 +{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5203 +whose name does not start with the host triplet. If you think this
5204 +configuration is useful to you, please write to autoconf@gnu.org." >&5
5205 +echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5206 +whose name does not start with the host triplet. If you think this
5207 +configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5208 +ac_tool_warned=yes ;;
5209 +esac
5210 + CC=$ac_ct_CC
5211 + fi
5212 fi
5213
5214 fi
5215 @@ -4853,27 +5431,41 @@ See \`config.log' for more details." >&2
5216 { (exit 1); exit 1; }; }
5217
5218 # Provide some information about the compiler.
5219 -echo "$as_me:$LINENO:" \
5220 - "checking for C compiler version" >&5
5221 +echo "$as_me:$LINENO: checking for C compiler version" >&5
5222 ac_compiler=`set X $ac_compile; echo $2`
5223 -{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5224 - (eval $ac_compiler --version </dev/null >&5) 2>&5
5225 +{ (ac_try="$ac_compiler --version >&5"
5226 +case "(($ac_try" in
5227 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5228 + *) ac_try_echo=$ac_try;;
5229 +esac
5230 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5231 + (eval "$ac_compiler --version >&5") 2>&5
5232 ac_status=$?
5233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5234 (exit $ac_status); }
5235 -{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5236 - (eval $ac_compiler -v </dev/null >&5) 2>&5
5237 +{ (ac_try="$ac_compiler -v >&5"
5238 +case "(($ac_try" in
5239 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5240 + *) ac_try_echo=$ac_try;;
5241 +esac
5242 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5243 + (eval "$ac_compiler -v >&5") 2>&5
5244 ac_status=$?
5245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5246 (exit $ac_status); }
5247 -{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5248 - (eval $ac_compiler -V </dev/null >&5) 2>&5
5249 +{ (ac_try="$ac_compiler -V >&5"
5250 +case "(($ac_try" in
5251 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5252 + *) ac_try_echo=$ac_try;;
5253 +esac
5254 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5255 + (eval "$ac_compiler -V >&5") 2>&5
5256 ac_status=$?
5257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5258 (exit $ac_status); }
5259
5260 -echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5261 -echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
5262 +{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5263 +echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5264 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5265 echo $ECHO_N "(cached) $ECHO_C" >&6
5266 else
5267 @@ -4896,50 +5488,49 @@ main ()
5268 }
5269 _ACEOF
5270 rm -f conftest.$ac_objext
5271 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5272 - (eval $ac_compile) 2>conftest.er1
5273 +if { (ac_try="$ac_compile"
5274 +case "(($ac_try" in
5275 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5276 + *) ac_try_echo=$ac_try;;
5277 +esac
5278 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5279 + (eval "$ac_compile") 2>conftest.er1
5280 ac_status=$?
5281 grep -v '^ *+' conftest.er1 >conftest.err
5282 rm -f conftest.er1
5283 cat conftest.err >&5
5284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5285 - (exit $ac_status); } &&
5286 - { ac_try='test -z "$ac_c_werror_flag"
5287 - || test ! -s conftest.err'
5288 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5289 - (eval $ac_try) 2>&5
5290 - ac_status=$?
5291 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
5292 - (exit $ac_status); }; } &&
5293 - { ac_try='test -s conftest.$ac_objext'
5294 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5295 - (eval $ac_try) 2>&5
5296 - ac_status=$?
5297 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
5298 - (exit $ac_status); }; }; then
5299 + (exit $ac_status); } && {
5300 + test -z "$ac_c_werror_flag" ||
5301 + test ! -s conftest.err
5302 + } && test -s conftest.$ac_objext; then
5303 ac_compiler_gnu=yes
5304 else
5305 echo "$as_me: failed program was:" >&5
5306 sed 's/^/| /' conftest.$ac_ext >&5
5307
5308 -ac_compiler_gnu=no
5309 + ac_compiler_gnu=no
5310 fi
5311 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5312 +
5313 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5314 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5315
5316 fi
5317 -echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5318 -echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
5319 +{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5320 +echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5321 GCC=`test $ac_compiler_gnu = yes && echo yes`
5322 ac_test_CFLAGS=${CFLAGS+set}
5323 ac_save_CFLAGS=$CFLAGS
5324 -CFLAGS="-g"
5325 -echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5326 -echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
5327 +{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5328 +echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5329 if test "${ac_cv_prog_cc_g+set}" = set; then
5330 echo $ECHO_N "(cached) $ECHO_C" >&6
5331 else
5332 - cat >conftest.$ac_ext <<_ACEOF
5333 + ac_save_c_werror_flag=$ac_c_werror_flag
5334 + ac_c_werror_flag=yes
5335 + ac_cv_prog_cc_g=no
5336 + CFLAGS="-g"
5337 + cat >conftest.$ac_ext <<_ACEOF
5338 /* confdefs.h. */
5339 _ACEOF
5340 cat confdefs.h >>conftest.$ac_ext
5341 @@ -4955,46 +5546,126 @@ main ()
5342 }
5343 _ACEOF
5344 rm -f conftest.$ac_objext
5345 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5346 - (eval $ac_compile) 2>conftest.er1
5347 +if { (ac_try="$ac_compile"
5348 +case "(($ac_try" in
5349 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5350 + *) ac_try_echo=$ac_try;;
5351 +esac
5352 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5353 + (eval "$ac_compile") 2>conftest.er1
5354 ac_status=$?
5355 grep -v '^ *+' conftest.er1 >conftest.err
5356 rm -f conftest.er1
5357 cat conftest.err >&5
5358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5359 - (exit $ac_status); } &&
5360 - { ac_try='test -z "$ac_c_werror_flag"
5361 - || test ! -s conftest.err'
5362 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5363 - (eval $ac_try) 2>&5
5364 - ac_status=$?
5365 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
5366 - (exit $ac_status); }; } &&
5367 - { ac_try='test -s conftest.$ac_objext'
5368 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5369 - (eval $ac_try) 2>&5
5370 - ac_status=$?
5371 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
5372 - (exit $ac_status); }; }; then
5373 + (exit $ac_status); } && {
5374 + test -z "$ac_c_werror_flag" ||
5375 + test ! -s conftest.err
5376 + } && test -s conftest.$ac_objext; then
5377 ac_cv_prog_cc_g=yes
5378 else
5379 echo "$as_me: failed program was:" >&5
5380 sed 's/^/| /' conftest.$ac_ext >&5
5381
5382 -ac_cv_prog_cc_g=no
5383 -fi
5384 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5385 -fi
5386 -echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5387 -echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
5388 -if test "$ac_test_CFLAGS" = set; then
5389 - CFLAGS=$ac_save_CFLAGS
5390 -elif test $ac_cv_prog_cc_g = yes; then
5391 - if test "$GCC" = yes; then
5392 - CFLAGS="-g -O2"
5393 - else
5394 - CFLAGS="-g"
5395 - fi
5396 + CFLAGS=""
5397 + cat >conftest.$ac_ext <<_ACEOF
5398 +/* confdefs.h. */
5399 +_ACEOF
5400 +cat confdefs.h >>conftest.$ac_ext
5401 +cat >>conftest.$ac_ext <<_ACEOF
5402 +/* end confdefs.h. */
5403 +
5404 +int
5405 +main ()
5406 +{
5407 +
5408 + ;
5409 + return 0;
5410 +}
5411 +_ACEOF
5412 +rm -f conftest.$ac_objext
5413 +if { (ac_try="$ac_compile"
5414 +case "(($ac_try" in
5415 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5416 + *) ac_try_echo=$ac_try;;
5417 +esac
5418 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5419 + (eval "$ac_compile") 2>conftest.er1
5420 + ac_status=$?
5421 + grep -v '^ *+' conftest.er1 >conftest.err
5422 + rm -f conftest.er1
5423 + cat conftest.err >&5
5424 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
5425 + (exit $ac_status); } && {
5426 + test -z "$ac_c_werror_flag" ||
5427 + test ! -s conftest.err
5428 + } && test -s conftest.$ac_objext; then
5429 + :
5430 +else
5431 + echo "$as_me: failed program was:" >&5
5432 +sed 's/^/| /' conftest.$ac_ext >&5
5433 +
5434 + ac_c_werror_flag=$ac_save_c_werror_flag
5435 + CFLAGS="-g"
5436 + cat >conftest.$ac_ext <<_ACEOF
5437 +/* confdefs.h. */
5438 +_ACEOF
5439 +cat confdefs.h >>conftest.$ac_ext
5440 +cat >>conftest.$ac_ext <<_ACEOF
5441 +/* end confdefs.h. */
5442 +
5443 +int
5444 +main ()
5445 +{
5446 +
5447 + ;
5448 + return 0;
5449 +}
5450 +_ACEOF
5451 +rm -f conftest.$ac_objext
5452 +if { (ac_try="$ac_compile"
5453 +case "(($ac_try" in
5454 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5455 + *) ac_try_echo=$ac_try;;
5456 +esac
5457 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5458 + (eval "$ac_compile") 2>conftest.er1
5459 + ac_status=$?
5460 + grep -v '^ *+' conftest.er1 >conftest.err
5461 + rm -f conftest.er1
5462 + cat conftest.err >&5
5463 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
5464 + (exit $ac_status); } && {
5465 + test -z "$ac_c_werror_flag" ||
5466 + test ! -s conftest.err
5467 + } && test -s conftest.$ac_objext; then
5468 + ac_cv_prog_cc_g=yes
5469 +else
5470 + echo "$as_me: failed program was:" >&5
5471 +sed 's/^/| /' conftest.$ac_ext >&5
5472 +
5473 +
5474 +fi
5475 +
5476 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5477 +fi
5478 +
5479 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5480 +fi
5481 +
5482 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5483 + ac_c_werror_flag=$ac_save_c_werror_flag
5484 +fi
5485 +{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5486 +echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5487 +if test "$ac_test_CFLAGS" = set; then
5488 + CFLAGS=$ac_save_CFLAGS
5489 +elif test $ac_cv_prog_cc_g = yes; then
5490 + if test "$GCC" = yes; then
5491 + CFLAGS="-g -O2"
5492 + else
5493 + CFLAGS="-g"
5494 + fi
5495 else
5496 if test "$GCC" = yes; then
5497 CFLAGS="-O2"
5498 @@ -5002,12 +5673,12 @@ else
5499 CFLAGS=
5500 fi
5501 fi
5502 -echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
5503 -echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
5504 -if test "${ac_cv_prog_cc_stdc+set}" = set; then
5505 +{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5506 +echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5507 +if test "${ac_cv_prog_cc_c89+set}" = set; then
5508 echo $ECHO_N "(cached) $ECHO_C" >&6
5509 else
5510 - ac_cv_prog_cc_stdc=no
5511 + ac_cv_prog_cc_c89=no
5512 ac_save_CC=$CC
5513 cat >conftest.$ac_ext <<_ACEOF
5514 /* confdefs.h. */
5515 @@ -5041,12 +5712,17 @@ static char *f (char * (*g) (char **, in
5516 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5517 function prototypes and stuff, but not '\xHH' hex character constants.
5518 These don't provoke an error unfortunately, instead are silently treated
5519 - as 'x'. The following induces an error, until -std1 is added to get
5520 + as 'x'. The following induces an error, until -std is added to get
5521 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5522 array size at least. It's necessary to write '\x00'==0 to get something
5523 - that's true only with -std1. */
5524 + that's true only with -std. */
5525 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5526
5527 +/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5528 + inside strings and character constants. */
5529 +#define FOO(x) 'x'
5530 +int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5531 +
5532 int test (int i, double x);
5533 struct s1 {int (*f) (int a);};
5534 struct s2 {int (*f) (double a);};
5535 @@ -5061,205 +5737,57 @@ return f (e, argv, 0) != argv[0] || f
5536 return 0;
5537 }
5538 _ACEOF
5539 -# Don't try gcc -ansi; that turns off useful extensions and
5540 -# breaks some systems' header files.
5541 -# AIX -qlanglvl=ansi
5542 -# Ultrix and OSF/1 -std1
5543 -# HP-UX 10.20 and later -Ae
5544 -# HP-UX older versions -Aa -D_HPUX_SOURCE
5545 -# SVR4 -Xc -D__EXTENSIONS__
5546 -for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5547 +for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5548 + -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5549 do
5550 CC="$ac_save_CC $ac_arg"
5551 rm -f conftest.$ac_objext
5552 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5553 - (eval $ac_compile) 2>conftest.er1
5554 +if { (ac_try="$ac_compile"
5555 +case "(($ac_try" in
5556 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5557 + *) ac_try_echo=$ac_try;;
5558 +esac
5559 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5560 + (eval "$ac_compile") 2>conftest.er1
5561 ac_status=$?
5562 grep -v '^ *+' conftest.er1 >conftest.err
5563 rm -f conftest.er1
5564 cat conftest.err >&5
5565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5566 - (exit $ac_status); } &&
5567 - { ac_try='test -z "$ac_c_werror_flag"
5568 - || test ! -s conftest.err'
5569 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5570 - (eval $ac_try) 2>&5
5571 - ac_status=$?
5572 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
5573 - (exit $ac_status); }; } &&
5574 - { ac_try='test -s conftest.$ac_objext'
5575 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5576 - (eval $ac_try) 2>&5
5577 - ac_status=$?
5578 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
5579 - (exit $ac_status); }; }; then
5580 - ac_cv_prog_cc_stdc=$ac_arg
5581 -break
5582 + (exit $ac_status); } && {
5583 + test -z "$ac_c_werror_flag" ||
5584 + test ! -s conftest.err
5585 + } && test -s conftest.$ac_objext; then
5586 + ac_cv_prog_cc_c89=$ac_arg
5587 else
5588 echo "$as_me: failed program was:" >&5
5589 sed 's/^/| /' conftest.$ac_ext >&5
5590
5591 +
5592 fi
5593 -rm -f conftest.err conftest.$ac_objext
5594 +
5595 +rm -f core conftest.err conftest.$ac_objext
5596 + test "x$ac_cv_prog_cc_c89" != "xno" && break
5597 done
5598 -rm -f conftest.$ac_ext conftest.$ac_objext
5599 +rm -f conftest.$ac_ext
5600 CC=$ac_save_CC
5601
5602 fi
5603 -
5604 -case "x$ac_cv_prog_cc_stdc" in
5605 - x|xno)
5606 - echo "$as_me:$LINENO: result: none needed" >&5
5607 -echo "${ECHO_T}none needed" >&6 ;;
5608 +# AC_CACHE_VAL
5609 +case "x$ac_cv_prog_cc_c89" in
5610 + x)
5611 + { echo "$as_me:$LINENO: result: none needed" >&5
5612 +echo "${ECHO_T}none needed" >&6; } ;;
5613 + xno)
5614 + { echo "$as_me:$LINENO: result: unsupported" >&5
5615 +echo "${ECHO_T}unsupported" >&6; } ;;
5616 *)
5617 - echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
5618 -echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
5619 - CC="$CC $ac_cv_prog_cc_stdc" ;;
5620 + CC="$CC $ac_cv_prog_cc_c89"
5621 + { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5622 +echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5623 esac
5624
5625 -# Some people use a C++ compiler to compile C. Since we use `exit',
5626 -# in C++ we need to declare it. In case someone uses the same compiler
5627 -# for both compiling C and C++ we need to have the C++ compiler decide
5628 -# the declaration of exit, since it's the most demanding environment.
5629 -cat >conftest.$ac_ext <<_ACEOF
5630 -#ifndef __cplusplus
5631 - choke me
5632 -#endif
5633 -_ACEOF
5634 -rm -f conftest.$ac_objext
5635 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5636 - (eval $ac_compile) 2>conftest.er1
5637 - ac_status=$?
5638 - grep -v '^ *+' conftest.er1 >conftest.err
5639 - rm -f conftest.er1
5640 - cat conftest.err >&5
5641 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
5642 - (exit $ac_status); } &&
5643 - { ac_try='test -z "$ac_c_werror_flag"
5644 - || test ! -s conftest.err'
5645 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5646 - (eval $ac_try) 2>&5
5647 - ac_status=$?
5648 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
5649 - (exit $ac_status); }; } &&
5650 - { ac_try='test -s conftest.$ac_objext'
5651 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5652 - (eval $ac_try) 2>&5
5653 - ac_status=$?
5654 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
5655 - (exit $ac_status); }; }; then
5656 - for ac_declaration in \
5657 - '' \
5658 - 'extern "C" void std::exit (int) throw (); using std::exit;' \
5659 - 'extern "C" void std::exit (int); using std::exit;' \
5660 - 'extern "C" void exit (int) throw ();' \
5661 - 'extern "C" void exit (int);' \
5662 - 'void exit (int);'
5663 -do
5664 - cat >conftest.$ac_ext <<_ACEOF
5665 -/* confdefs.h. */
5666 -_ACEOF
5667 -cat confdefs.h >>conftest.$ac_ext
5668 -cat >>conftest.$ac_ext <<_ACEOF
5669 -/* end confdefs.h. */
5670 -$ac_declaration
5671 -#include <stdlib.h>
5672 -int
5673 -main ()
5674 -{
5675 -exit (42);
5676 - ;
5677 - return 0;
5678 -}
5679 -_ACEOF
5680 -rm -f conftest.$ac_objext
5681 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5682 - (eval $ac_compile) 2>conftest.er1
5683 - ac_status=$?
5684 - grep -v '^ *+' conftest.er1 >conftest.err
5685 - rm -f conftest.er1
5686 - cat conftest.err >&5
5687 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
5688 - (exit $ac_status); } &&
5689 - { ac_try='test -z "$ac_c_werror_flag"
5690 - || test ! -s conftest.err'
5691 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5692 - (eval $ac_try) 2>&5
5693 - ac_status=$?
5694 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
5695 - (exit $ac_status); }; } &&
5696 - { ac_try='test -s conftest.$ac_objext'
5697 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5698 - (eval $ac_try) 2>&5
5699 - ac_status=$?
5700 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
5701 - (exit $ac_status); }; }; then
5702 - :
5703 -else
5704 - echo "$as_me: failed program was:" >&5
5705 -sed 's/^/| /' conftest.$ac_ext >&5
5706 -
5707 -continue
5708 -fi
5709 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5710 - cat >conftest.$ac_ext <<_ACEOF
5711 -/* confdefs.h. */
5712 -_ACEOF
5713 -cat confdefs.h >>conftest.$ac_ext
5714 -cat >>conftest.$ac_ext <<_ACEOF
5715 -/* end confdefs.h. */
5716 -$ac_declaration
5717 -int
5718 -main ()
5719 -{
5720 -exit (42);
5721 - ;
5722 - return 0;
5723 -}
5724 -_ACEOF
5725 -rm -f conftest.$ac_objext
5726 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5727 - (eval $ac_compile) 2>conftest.er1
5728 - ac_status=$?
5729 - grep -v '^ *+' conftest.er1 >conftest.err
5730 - rm -f conftest.er1
5731 - cat conftest.err >&5
5732 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
5733 - (exit $ac_status); } &&
5734 - { ac_try='test -z "$ac_c_werror_flag"
5735 - || test ! -s conftest.err'
5736 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5737 - (eval $ac_try) 2>&5
5738 - ac_status=$?
5739 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
5740 - (exit $ac_status); }; } &&
5741 - { ac_try='test -s conftest.$ac_objext'
5742 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5743 - (eval $ac_try) 2>&5
5744 - ac_status=$?
5745 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
5746 - (exit $ac_status); }; }; then
5747 - break
5748 -else
5749 - echo "$as_me: failed program was:" >&5
5750 -sed 's/^/| /' conftest.$ac_ext >&5
5751 -
5752 -fi
5753 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5754 -done
5755 -rm -f conftest*
5756 -if test -n "$ac_declaration"; then
5757 - echo '#ifdef __cplusplus' >>confdefs.h
5758 - echo $ac_declaration >>confdefs.h
5759 - echo '#endif' >>confdefs.h
5760 -fi
5761 -
5762 -else
5763 - echo "$as_me: failed program was:" >&5
5764 -sed 's/^/| /' conftest.$ac_ext >&5
5765
5766 -fi
5767 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5768 ac_ext=c
5769 ac_cpp='$CPP $CPPFLAGS'
5770 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5771 @@ -5277,8 +5805,8 @@ ALL_LINGUAS="fr tr ja es sv da zh_CN ro
5772 if test -n "$ac_tool_prefix"; then
5773 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5774 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5775 -echo "$as_me:$LINENO: checking for $ac_word" >&5
5776 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5777 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5778 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5779 if test "${ac_cv_prog_RANLIB+set}" = set; then
5780 echo $ECHO_N "(cached) $ECHO_C" >&6
5781 else
5782 @@ -5291,32 +5819,34 @@ do
5783 IFS=$as_save_IFS
5784 test -z "$as_dir" && as_dir=.
5785 for ac_exec_ext in '' $ac_executable_extensions; do
5786 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5787 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5788 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5789 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5790 break 2
5791 fi
5792 done
5793 done
5794 +IFS=$as_save_IFS
5795
5796 fi
5797 fi
5798 RANLIB=$ac_cv_prog_RANLIB
5799 if test -n "$RANLIB"; then
5800 - echo "$as_me:$LINENO: result: $RANLIB" >&5
5801 -echo "${ECHO_T}$RANLIB" >&6
5802 + { echo "$as_me:$LINENO: result: $RANLIB" >&5
5803 +echo "${ECHO_T}$RANLIB" >&6; }
5804 else
5805 - echo "$as_me:$LINENO: result: no" >&5
5806 -echo "${ECHO_T}no" >&6
5807 + { echo "$as_me:$LINENO: result: no" >&5
5808 +echo "${ECHO_T}no" >&6; }
5809 fi
5810
5811 +
5812 fi
5813 if test -z "$ac_cv_prog_RANLIB"; then
5814 ac_ct_RANLIB=$RANLIB
5815 # Extract the first word of "ranlib", so it can be a program name with args.
5816 set dummy ranlib; ac_word=$2
5817 -echo "$as_me:$LINENO: checking for $ac_word" >&5
5818 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5819 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5820 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5821 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5822 echo $ECHO_N "(cached) $ECHO_C" >&6
5823 else
5824 @@ -5329,27 +5859,41 @@ do
5825 IFS=$as_save_IFS
5826 test -z "$as_dir" && as_dir=.
5827 for ac_exec_ext in '' $ac_executable_extensions; do
5828 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5829 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5830 ac_cv_prog_ac_ct_RANLIB="ranlib"
5831 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5832 break 2
5833 fi
5834 done
5835 done
5836 +IFS=$as_save_IFS
5837
5838 - test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5839 fi
5840 fi
5841 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5842 if test -n "$ac_ct_RANLIB"; then
5843 - echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5844 -echo "${ECHO_T}$ac_ct_RANLIB" >&6
5845 + { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5846 +echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5847 else
5848 - echo "$as_me:$LINENO: result: no" >&5
5849 -echo "${ECHO_T}no" >&6
5850 + { echo "$as_me:$LINENO: result: no" >&5
5851 +echo "${ECHO_T}no" >&6; }
5852 fi
5853
5854 - RANLIB=$ac_ct_RANLIB
5855 + if test "x$ac_ct_RANLIB" = x; then
5856 + RANLIB=":"
5857 + else
5858 + case $cross_compiling:$ac_tool_warned in
5859 +yes:)
5860 +{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5861 +whose name does not start with the host triplet. If you think this
5862 +configuration is useful to you, please write to autoconf@gnu.org." >&5
5863 +echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5864 +whose name does not start with the host triplet. If you think this
5865 +configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5866 +ac_tool_warned=yes ;;
5867 +esac
5868 + RANLIB=$ac_ct_RANLIB
5869 + fi
5870 else
5871 RANLIB="$ac_cv_prog_RANLIB"
5872 fi
5873 @@ -5359,8 +5903,8 @@ ac_cpp='$CPP $CPPFLAGS'
5874 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5875 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5876 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5877 -echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5878 -echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5879 +{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5880 +echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5881 # On Suns, sometimes $CPP names a directory.
5882 if test -n "$CPP" && test -d "$CPP"; then
5883 CPP=
5884 @@ -5394,24 +5938,22 @@ cat >>conftest.$ac_ext <<_ACEOF
5885 #endif
5886 Syntax error
5887 _ACEOF
5888 -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5889 - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5890 +if { (ac_try="$ac_cpp conftest.$ac_ext"
5891 +case "(($ac_try" in
5892 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5893 + *) ac_try_echo=$ac_try;;
5894 +esac
5895 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5896 + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5897 ac_status=$?
5898 grep -v '^ *+' conftest.er1 >conftest.err
5899 rm -f conftest.er1
5900 cat conftest.err >&5
5901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5902 - (exit $ac_status); } >/dev/null; then
5903 - if test -s conftest.err; then
5904 - ac_cpp_err=$ac_c_preproc_warn_flag
5905 - ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5906 - else
5907 - ac_cpp_err=
5908 - fi
5909 -else
5910 - ac_cpp_err=yes
5911 -fi
5912 -if test -z "$ac_cpp_err"; then
5913 + (exit $ac_status); } >/dev/null && {
5914 + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5915 + test ! -s conftest.err
5916 + }; then
5917 :
5918 else
5919 echo "$as_me: failed program was:" >&5
5920 @@ -5420,9 +5962,10 @@ sed 's/^/| /' conftest.$ac_ext >&5
5921 # Broken: fails on valid input.
5922 continue
5923 fi
5924 +
5925 rm -f conftest.err conftest.$ac_ext
5926
5927 - # OK, works on sane cases. Now check whether non-existent headers
5928 + # OK, works on sane cases. Now check whether nonexistent headers
5929 # can be detected and how.
5930 cat >conftest.$ac_ext <<_ACEOF
5931 /* confdefs.h. */
5932 @@ -5432,24 +5975,22 @@ cat >>conftest.$ac_ext <<_ACEOF
5933 /* end confdefs.h. */
5934 #include <ac_nonexistent.h>
5935 _ACEOF
5936 -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5937 - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5938 +if { (ac_try="$ac_cpp conftest.$ac_ext"
5939 +case "(($ac_try" in
5940 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5941 + *) ac_try_echo=$ac_try;;
5942 +esac
5943 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5944 + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5945 ac_status=$?
5946 grep -v '^ *+' conftest.er1 >conftest.err
5947 rm -f conftest.er1
5948 cat conftest.err >&5
5949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5950 - (exit $ac_status); } >/dev/null; then
5951 - if test -s conftest.err; then
5952 - ac_cpp_err=$ac_c_preproc_warn_flag
5953 - ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5954 - else
5955 - ac_cpp_err=
5956 - fi
5957 -else
5958 - ac_cpp_err=yes
5959 -fi
5960 -if test -z "$ac_cpp_err"; then
5961 + (exit $ac_status); } >/dev/null && {
5962 + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5963 + test ! -s conftest.err
5964 + }; then
5965 # Broken: success on invalid input.
5966 continue
5967 else
5968 @@ -5460,6 +6001,7 @@ sed 's/^/| /' conftest.$ac_ext >&5
5969 ac_preproc_ok=:
5970 break
5971 fi
5972 +
5973 rm -f conftest.err conftest.$ac_ext
5974
5975 done
5976 @@ -5477,8 +6019,8 @@ fi
5977 else
5978 ac_cv_prog_CPP=$CPP
5979 fi
5980 -echo "$as_me:$LINENO: result: $CPP" >&5
5981 -echo "${ECHO_T}$CPP" >&6
5982 +{ echo "$as_me:$LINENO: result: $CPP" >&5
5983 +echo "${ECHO_T}$CPP" >&6; }
5984 ac_preproc_ok=false
5985 for ac_c_preproc_warn_flag in '' yes
5986 do
5987 @@ -5501,24 +6043,22 @@ cat >>conftest.$ac_ext <<_ACEOF
5988 #endif
5989 Syntax error
5990 _ACEOF
5991 -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5992 - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5993 +if { (ac_try="$ac_cpp conftest.$ac_ext"
5994 +case "(($ac_try" in
5995 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5996 + *) ac_try_echo=$ac_try;;
5997 +esac
5998 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5999 + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6000 ac_status=$?
6001 grep -v '^ *+' conftest.er1 >conftest.err
6002 rm -f conftest.er1
6003 cat conftest.err >&5
6004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6005 - (exit $ac_status); } >/dev/null; then
6006 - if test -s conftest.err; then
6007 - ac_cpp_err=$ac_c_preproc_warn_flag
6008 - ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6009 - else
6010 - ac_cpp_err=
6011 - fi
6012 -else
6013 - ac_cpp_err=yes
6014 -fi
6015 -if test -z "$ac_cpp_err"; then
6016 + (exit $ac_status); } >/dev/null && {
6017 + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6018 + test ! -s conftest.err
6019 + }; then
6020 :
6021 else
6022 echo "$as_me: failed program was:" >&5
6023 @@ -5527,9 +6067,10 @@ sed 's/^/| /' conftest.$ac_ext >&5
6024 # Broken: fails on valid input.
6025 continue
6026 fi
6027 +
6028 rm -f conftest.err conftest.$ac_ext
6029
6030 - # OK, works on sane cases. Now check whether non-existent headers
6031 + # OK, works on sane cases. Now check whether nonexistent headers
6032 # can be detected and how.
6033 cat >conftest.$ac_ext <<_ACEOF
6034 /* confdefs.h. */
6035 @@ -5539,24 +6080,22 @@ cat >>conftest.$ac_ext <<_ACEOF
6036 /* end confdefs.h. */
6037 #include <ac_nonexistent.h>
6038 _ACEOF
6039 -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6040 - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6041 +if { (ac_try="$ac_cpp conftest.$ac_ext"
6042 +case "(($ac_try" in
6043 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6044 + *) ac_try_echo=$ac_try;;
6045 +esac
6046 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6047 + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6048 ac_status=$?
6049 grep -v '^ *+' conftest.er1 >conftest.err
6050 rm -f conftest.er1
6051 cat conftest.err >&5
6052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6053 - (exit $ac_status); } >/dev/null; then
6054 - if test -s conftest.err; then
6055 - ac_cpp_err=$ac_c_preproc_warn_flag
6056 - ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6057 - else
6058 - ac_cpp_err=
6059 - fi
6060 -else
6061 - ac_cpp_err=yes
6062 -fi
6063 -if test -z "$ac_cpp_err"; then
6064 + (exit $ac_status); } >/dev/null && {
6065 + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6066 + test ! -s conftest.err
6067 + }; then
6068 # Broken: success on invalid input.
6069 continue
6070 else
6071 @@ -5567,6 +6106,7 @@ sed 's/^/| /' conftest.$ac_ext >&5
6072 ac_preproc_ok=:
6073 break
6074 fi
6075 +
6076 rm -f conftest.err conftest.$ac_ext
6077
6078 done
6079 @@ -5589,87 +6129,230 @@ ac_link='$CC -o conftest$ac_exeext $CFLA
6080 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6081
6082
6083 -echo "$as_me:$LINENO: checking for egrep" >&5
6084 -echo $ECHO_N "checking for egrep... $ECHO_C" >&6
6085 -if test "${ac_cv_prog_egrep+set}" = set; then
6086 +{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
6087 +echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
6088 +if test "${ac_cv_path_GREP+set}" = set; then
6089 + echo $ECHO_N "(cached) $ECHO_C" >&6
6090 +else
6091 + # Extract the first word of "grep ggrep" to use in msg output
6092 +if test -z "$GREP"; then
6093 +set dummy grep ggrep; ac_prog_name=$2
6094 +if test "${ac_cv_path_GREP+set}" = set; then
6095 echo $ECHO_N "(cached) $ECHO_C" >&6
6096 else
6097 - if echo a | (grep -E '(a|b)') >/dev/null 2>&1
6098 - then ac_cv_prog_egrep='grep -E'
6099 - else ac_cv_prog_egrep='egrep'
6100 + ac_path_GREP_found=false
6101 +# Loop through the user's path and test for each of PROGNAME-LIST
6102 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6103 +for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6104 +do
6105 + IFS=$as_save_IFS
6106 + test -z "$as_dir" && as_dir=.
6107 + for ac_prog in grep ggrep; do
6108 + for ac_exec_ext in '' $ac_executable_extensions; do
6109 + ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6110 + { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
6111 + # Check for GNU ac_path_GREP and select it if it is found.
6112 + # Check for GNU $ac_path_GREP
6113 +case `"$ac_path_GREP" --version 2>&1` in
6114 +*GNU*)
6115 + ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6116 +*)
6117 + ac_count=0
6118 + echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
6119 + while :
6120 + do
6121 + cat "conftest.in" "conftest.in" >"conftest.tmp"
6122 + mv "conftest.tmp" "conftest.in"
6123 + cp "conftest.in" "conftest.nl"
6124 + echo 'GREP' >> "conftest.nl"
6125 + "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6126 + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6127 + ac_count=`expr $ac_count + 1`
6128 + if test $ac_count -gt ${ac_path_GREP_max-0}; then
6129 + # Best one so far, save it but keep looking for a better one
6130 + ac_cv_path_GREP="$ac_path_GREP"
6131 + ac_path_GREP_max=$ac_count
6132 fi
6133 -fi
6134 -echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
6135 -echo "${ECHO_T}$ac_cv_prog_egrep" >&6
6136 - EGREP=$ac_cv_prog_egrep
6137 + # 10*(2^10) chars as input seems more than enough
6138 + test $ac_count -gt 10 && break
6139 + done
6140 + rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6141 +esac
6142
6143
6144 -echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6145 -echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6146 -if test "${ac_cv_header_stdc+set}" = set; then
6147 - echo $ECHO_N "(cached) $ECHO_C" >&6
6148 -else
6149 - cat >conftest.$ac_ext <<_ACEOF
6150 -/* confdefs.h. */
6151 -_ACEOF
6152 -cat confdefs.h >>conftest.$ac_ext
6153 -cat >>conftest.$ac_ext <<_ACEOF
6154 -/* end confdefs.h. */
6155 -#include <stdlib.h>
6156 -#include <stdarg.h>
6157 -#include <string.h>
6158 -#include <float.h>
6159 + $ac_path_GREP_found && break 3
6160 + done
6161 +done
6162
6163 -int
6164 -main ()
6165 -{
6166 +done
6167 +IFS=$as_save_IFS
6168
6169 - ;
6170 - return 0;
6171 -}
6172 -_ACEOF
6173 -rm -f conftest.$ac_objext
6174 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6175 - (eval $ac_compile) 2>conftest.er1
6176 - ac_status=$?
6177 - grep -v '^ *+' conftest.er1 >conftest.err
6178 - rm -f conftest.er1
6179 - cat conftest.err >&5
6180 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
6181 - (exit $ac_status); } &&
6182 - { ac_try='test -z "$ac_c_werror_flag"
6183 - || test ! -s conftest.err'
6184 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6185 - (eval $ac_try) 2>&5
6186 - ac_status=$?
6187 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
6188 - (exit $ac_status); }; } &&
6189 - { ac_try='test -s conftest.$ac_objext'
6190 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6191 - (eval $ac_try) 2>&5
6192 - ac_status=$?
6193 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
6194 - (exit $ac_status); }; }; then
6195 - ac_cv_header_stdc=yes
6196 -else
6197 - echo "$as_me: failed program was:" >&5
6198 -sed 's/^/| /' conftest.$ac_ext >&5
6199
6200 -ac_cv_header_stdc=no
6201 fi
6202 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6203
6204 -if test $ac_cv_header_stdc = yes; then
6205 - # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6206 - cat >conftest.$ac_ext <<_ACEOF
6207 -/* confdefs.h. */
6208 -_ACEOF
6209 -cat confdefs.h >>conftest.$ac_ext
6210 -cat >>conftest.$ac_ext <<_ACEOF
6211 -/* end confdefs.h. */
6212 -#include <string.h>
6213 +GREP="$ac_cv_path_GREP"
6214 +if test -z "$GREP"; then
6215 + { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
6216 +echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
6217 + { (exit 1); exit 1; }; }
6218 +fi
6219
6220 -_ACEOF
6221 +else
6222 + ac_cv_path_GREP=$GREP
6223 +fi
6224 +
6225 +
6226 +fi
6227 +{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
6228 +echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
6229 + GREP="$ac_cv_path_GREP"
6230 +
6231 +
6232 +{ echo "$as_me:$LINENO: checking for egrep" >&5
6233 +echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
6234 +if test "${ac_cv_path_EGREP+set}" = set; then
6235 + echo $ECHO_N "(cached) $ECHO_C" >&6
6236 +else
6237 + if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6238 + then ac_cv_path_EGREP="$GREP -E"
6239 + else
6240 + # Extract the first word of "egrep" to use in msg output
6241 +if test -z "$EGREP"; then
6242 +set dummy egrep; ac_prog_name=$2
6243 +if test "${ac_cv_path_EGREP+set}" = set; then
6244 + echo $ECHO_N "(cached) $ECHO_C" >&6
6245 +else
6246 + ac_path_EGREP_found=false
6247 +# Loop through the user's path and test for each of PROGNAME-LIST
6248 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6249 +for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6250 +do
6251 + IFS=$as_save_IFS
6252 + test -z "$as_dir" && as_dir=.
6253 + for ac_prog in egrep; do
6254 + for ac_exec_ext in '' $ac_executable_extensions; do
6255 + ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6256 + { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
6257 + # Check for GNU ac_path_EGREP and select it if it is found.
6258 + # Check for GNU $ac_path_EGREP
6259 +case `"$ac_path_EGREP" --version 2>&1` in
6260 +*GNU*)
6261 + ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6262 +*)
6263 + ac_count=0
6264 + echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
6265 + while :
6266 + do
6267 + cat "conftest.in" "conftest.in" >"conftest.tmp"
6268 + mv "conftest.tmp" "conftest.in"
6269 + cp "conftest.in" "conftest.nl"
6270 + echo 'EGREP' >> "conftest.nl"
6271 + "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6272 + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6273 + ac_count=`expr $ac_count + 1`
6274 + if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6275 + # Best one so far, save it but keep looking for a better one
6276 + ac_cv_path_EGREP="$ac_path_EGREP"
6277 + ac_path_EGREP_max=$ac_count
6278 + fi
6279 + # 10*(2^10) chars as input seems more than enough
6280 + test $ac_count -gt 10 && break
6281 + done
6282 + rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6283 +esac
6284 +
6285 +
6286 + $ac_path_EGREP_found && break 3
6287 + done
6288 +done
6289 +
6290 +done
6291 +IFS=$as_save_IFS
6292 +
6293 +
6294 +fi
6295 +
6296 +EGREP="$ac_cv_path_EGREP"
6297 +if test -z "$EGREP"; then
6298 + { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
6299 +echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
6300 + { (exit 1); exit 1; }; }
6301 +fi
6302 +
6303 +else
6304 + ac_cv_path_EGREP=$EGREP
6305 +fi
6306 +
6307 +
6308 + fi
6309 +fi
6310 +{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
6311 +echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
6312 + EGREP="$ac_cv_path_EGREP"
6313 +
6314 +
6315 +{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6316 +echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6317 +if test "${ac_cv_header_stdc+set}" = set; then
6318 + echo $ECHO_N "(cached) $ECHO_C" >&6
6319 +else
6320 + cat >conftest.$ac_ext <<_ACEOF
6321 +/* confdefs.h. */
6322 +_ACEOF
6323 +cat confdefs.h >>conftest.$ac_ext
6324 +cat >>conftest.$ac_ext <<_ACEOF
6325 +/* end confdefs.h. */
6326 +#include <stdlib.h>
6327 +#include <stdarg.h>
6328 +#include <string.h>
6329 +#include <float.h>
6330 +
6331 +int
6332 +main ()
6333 +{
6334 +
6335 + ;
6336 + return 0;
6337 +}
6338 +_ACEOF
6339 +rm -f conftest.$ac_objext
6340 +if { (ac_try="$ac_compile"
6341 +case "(($ac_try" in
6342 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6343 + *) ac_try_echo=$ac_try;;
6344 +esac
6345 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6346 + (eval "$ac_compile") 2>conftest.er1
6347 + ac_status=$?
6348 + grep -v '^ *+' conftest.er1 >conftest.err
6349 + rm -f conftest.er1
6350 + cat conftest.err >&5
6351 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
6352 + (exit $ac_status); } && {
6353 + test -z "$ac_c_werror_flag" ||
6354 + test ! -s conftest.err
6355 + } && test -s conftest.$ac_objext; then
6356 + ac_cv_header_stdc=yes
6357 +else
6358 + echo "$as_me: failed program was:" >&5
6359 +sed 's/^/| /' conftest.$ac_ext >&5
6360 +
6361 + ac_cv_header_stdc=no
6362 +fi
6363 +
6364 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6365 +
6366 +if test $ac_cv_header_stdc = yes; then
6367 + # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6368 + cat >conftest.$ac_ext <<_ACEOF
6369 +/* confdefs.h. */
6370 +_ACEOF
6371 +cat confdefs.h >>conftest.$ac_ext
6372 +cat >>conftest.$ac_ext <<_ACEOF
6373 +/* end confdefs.h. */
6374 +#include <string.h>
6375 +
6376 +_ACEOF
6377 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6378 $EGREP "memchr" >/dev/null 2>&1; then
6379 :
6380 @@ -5713,6 +6396,7 @@ cat confdefs.h >>conftest.$ac_ext
6381 cat >>conftest.$ac_ext <<_ACEOF
6382 /* end confdefs.h. */
6383 #include <ctype.h>
6384 +#include <stdlib.h>
6385 #if ((' ' & 0x0FF) == 0x020)
6386 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6387 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6388 @@ -5732,18 +6416,27 @@ main ()
6389 for (i = 0; i < 256; i++)
6390 if (XOR (islower (i), ISLOWER (i))
6391 || toupper (i) != TOUPPER (i))
6392 - exit(2);
6393 - exit (0);
6394 + return 2;
6395 + return 0;
6396 }
6397 _ACEOF
6398 rm -f conftest$ac_exeext
6399 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6400 - (eval $ac_link) 2>&5
6401 +if { (ac_try="$ac_link"
6402 +case "(($ac_try" in
6403 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6404 + *) ac_try_echo=$ac_try;;
6405 +esac
6406 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6407 + (eval "$ac_link") 2>&5
6408 ac_status=$?
6409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6410 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6411 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6412 - (eval $ac_try) 2>&5
6413 + { (case "(($ac_try" in
6414 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6415 + *) ac_try_echo=$ac_try;;
6416 +esac
6417 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6418 + (eval "$ac_try") 2>&5
6419 ac_status=$?
6420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6421 (exit $ac_status); }; }; then
6422 @@ -5756,12 +6449,14 @@ sed 's/^/| /' conftest.$ac_ext >&5
6423 ( exit $ac_status )
6424 ac_cv_header_stdc=no
6425 fi
6426 -rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6427 +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6428 fi
6429 +
6430 +
6431 fi
6432 fi
6433 -echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6434 -echo "${ECHO_T}$ac_cv_header_stdc" >&6
6435 +{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6436 +echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6437 if test $ac_cv_header_stdc = yes; then
6438
6439 cat >>confdefs.h <<\_ACEOF
6440 @@ -5770,8 +6465,8 @@ _ACEOF
6441
6442 fi
6443
6444 -echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
6445 -echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
6446 +{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
6447 +echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
6448 if test "${ac_cv_c_const+set}" = set; then
6449 echo $ECHO_N "(cached) $ECHO_C" >&6
6450 else
6451 @@ -5789,10 +6484,10 @@ main ()
6452 #ifndef __cplusplus
6453 /* Ultrix mips cc rejects this. */
6454 typedef int charset[2];
6455 - const charset x;
6456 + const charset cs;
6457 /* SunOS 4.1.1 cc rejects this. */
6458 - char const *const *ccp;
6459 - char **p;
6460 + char const *const *pcpcc;
6461 + char **ppc;
6462 /* NEC SVR4.0.2 mips cc rejects this. */
6463 struct point {int x, y;};
6464 static struct point const zero = {0,0};
6465 @@ -5801,16 +6496,17 @@ main ()
6466 an arm of an if-expression whose if-part is not a constant
6467 expression */
6468 const char *g = "string";
6469 - ccp = &g + (g ? g-g : 0);
6470 + pcpcc = &g + (g ? g-g : 0);
6471 /* HPUX 7.0 cc rejects these. */
6472 - ++ccp;
6473 - p = (char**) ccp;
6474 - ccp = (char const *const *) p;
6475 + ++pcpcc;
6476 + ppc = (char**) pcpcc;
6477 + pcpcc = (char const *const *) ppc;
6478 { /* SCO 3.2v4 cc rejects this. */
6479 char *t;
6480 char const *s = 0 ? (char *) 0 : (char const *) 0;
6481
6482 *t++ = 0;
6483 + if (s) return 0;
6484 }
6485 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6486 int x[] = {25, 17};
6487 @@ -5829,7 +6525,9 @@ main ()
6488 }
6489 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6490 const int foo = 10;
6491 + if (!foo) return 0;
6492 }
6493 + return !cs[0] && !zero.x;
6494 #endif
6495
6496 ;
6497 @@ -5837,38 +6535,34 @@ main ()
6498 }
6499 _ACEOF
6500 rm -f conftest.$ac_objext
6501 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6502 - (eval $ac_compile) 2>conftest.er1
6503 +if { (ac_try="$ac_compile"
6504 +case "(($ac_try" in
6505 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6506 + *) ac_try_echo=$ac_try;;
6507 +esac
6508 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6509 + (eval "$ac_compile") 2>conftest.er1
6510 ac_status=$?
6511 grep -v '^ *+' conftest.er1 >conftest.err
6512 rm -f conftest.er1
6513 cat conftest.err >&5
6514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6515 - (exit $ac_status); } &&
6516 - { ac_try='test -z "$ac_c_werror_flag"
6517 - || test ! -s conftest.err'
6518 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6519 - (eval $ac_try) 2>&5
6520 - ac_status=$?
6521 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
6522 - (exit $ac_status); }; } &&
6523 - { ac_try='test -s conftest.$ac_objext'
6524 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6525 - (eval $ac_try) 2>&5
6526 - ac_status=$?
6527 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
6528 - (exit $ac_status); }; }; then
6529 + (exit $ac_status); } && {
6530 + test -z "$ac_c_werror_flag" ||
6531 + test ! -s conftest.err
6532 + } && test -s conftest.$ac_objext; then
6533 ac_cv_c_const=yes
6534 else
6535 echo "$as_me: failed program was:" >&5
6536 sed 's/^/| /' conftest.$ac_ext >&5
6537
6538 -ac_cv_c_const=no
6539 + ac_cv_c_const=no
6540 fi
6541 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6542 +
6543 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6544 fi
6545 -echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
6546 -echo "${ECHO_T}$ac_cv_c_const" >&6
6547 +{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
6548 +echo "${ECHO_T}$ac_cv_c_const" >&6; }
6549 if test $ac_cv_c_const = no; then
6550
6551 cat >>confdefs.h <<\_ACEOF
6552 @@ -5877,8 +6571,8 @@ _ACEOF
6553
6554 fi
6555
6556 -echo "$as_me:$LINENO: checking for inline" >&5
6557 -echo $ECHO_N "checking for inline... $ECHO_C" >&6
6558 +{ echo "$as_me:$LINENO: checking for inline" >&5
6559 +echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
6560 if test "${ac_cv_c_inline+set}" = set; then
6561 echo $ECHO_N "(cached) $ECHO_C" >&6
6562 else
6563 @@ -5898,39 +6592,37 @@ $ac_kw foo_t foo () {return 0; }
6564
6565 _ACEOF
6566 rm -f conftest.$ac_objext
6567 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6568 - (eval $ac_compile) 2>conftest.er1
6569 +if { (ac_try="$ac_compile"
6570 +case "(($ac_try" in
6571 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6572 + *) ac_try_echo=$ac_try;;
6573 +esac
6574 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6575 + (eval "$ac_compile") 2>conftest.er1
6576 ac_status=$?
6577 grep -v '^ *+' conftest.er1 >conftest.err
6578 rm -f conftest.er1
6579 cat conftest.err >&5
6580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6581 - (exit $ac_status); } &&
6582 - { ac_try='test -z "$ac_c_werror_flag"
6583 - || test ! -s conftest.err'
6584 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6585 - (eval $ac_try) 2>&5
6586 - ac_status=$?
6587 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
6588 - (exit $ac_status); }; } &&
6589 - { ac_try='test -s conftest.$ac_objext'
6590 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6591 - (eval $ac_try) 2>&5
6592 - ac_status=$?
6593 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
6594 - (exit $ac_status); }; }; then
6595 - ac_cv_c_inline=$ac_kw; break
6596 + (exit $ac_status); } && {
6597 + test -z "$ac_c_werror_flag" ||
6598 + test ! -s conftest.err
6599 + } && test -s conftest.$ac_objext; then
6600 + ac_cv_c_inline=$ac_kw
6601 else
6602 echo "$as_me: failed program was:" >&5
6603 sed 's/^/| /' conftest.$ac_ext >&5
6604
6605 +
6606 fi
6607 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6608 +
6609 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6610 + test "$ac_cv_c_inline" != no && break
6611 done
6612
6613 fi
6614 -echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
6615 -echo "${ECHO_T}$ac_cv_c_inline" >&6
6616 +{ echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
6617 +echo "${ECHO_T}$ac_cv_c_inline" >&6; }
6618
6619
6620 case $ac_cv_c_inline in
6621 @@ -5962,9 +6654,9 @@ for ac_header in sys/types.h sys/stat.h
6622 inttypes.h stdint.h unistd.h
6623 do
6624 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6625 -echo "$as_me:$LINENO: checking for $ac_header" >&5
6626 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6627 -if eval "test \"\${$as_ac_Header+set}\" = set"; then
6628 +{ echo "$as_me:$LINENO: checking for $ac_header" >&5
6629 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6630 +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6631 echo $ECHO_N "(cached) $ECHO_C" >&6
6632 else
6633 cat >conftest.$ac_ext <<_ACEOF
6634 @@ -5978,38 +6670,35 @@ $ac_includes_default
6635 #include <$ac_header>
6636 _ACEOF
6637 rm -f conftest.$ac_objext
6638 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6639 - (eval $ac_compile) 2>conftest.er1
6640 +if { (ac_try="$ac_compile"
6641 +case "(($ac_try" in
6642 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6643 + *) ac_try_echo=$ac_try;;
6644 +esac
6645 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6646 + (eval "$ac_compile") 2>conftest.er1
6647 ac_status=$?
6648 grep -v '^ *+' conftest.er1 >conftest.err
6649 rm -f conftest.er1
6650 cat conftest.err >&5
6651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6652 - (exit $ac_status); } &&
6653 - { ac_try='test -z "$ac_c_werror_flag"
6654 - || test ! -s conftest.err'
6655 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6656 - (eval $ac_try) 2>&5
6657 - ac_status=$?
6658 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
6659 - (exit $ac_status); }; } &&
6660 - { ac_try='test -s conftest.$ac_objext'
6661 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6662 - (eval $ac_try) 2>&5
6663 - ac_status=$?
6664 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
6665 - (exit $ac_status); }; }; then
6666 + (exit $ac_status); } && {
6667 + test -z "$ac_c_werror_flag" ||
6668 + test ! -s conftest.err
6669 + } && test -s conftest.$ac_objext; then
6670 eval "$as_ac_Header=yes"
6671 else
6672 echo "$as_me: failed program was:" >&5
6673 sed 's/^/| /' conftest.$ac_ext >&5
6674
6675 -eval "$as_ac_Header=no"
6676 + eval "$as_ac_Header=no"
6677 fi
6678 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6679 +
6680 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6681 fi
6682 -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6683 -echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6684 +ac_res=`eval echo '${'$as_ac_Header'}'`
6685 + { echo "$as_me:$LINENO: result: $ac_res" >&5
6686 +echo "${ECHO_T}$ac_res" >&6; }
6687 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6688 cat >>confdefs.h <<_ACEOF
6689 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6690 @@ -6020,8 +6709,8 @@ fi
6691 done
6692
6693
6694 -echo "$as_me:$LINENO: checking for off_t" >&5
6695 -echo $ECHO_N "checking for off_t... $ECHO_C" >&6
6696 +{ echo "$as_me:$LINENO: checking for off_t" >&5
6697 +echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
6698 if test "${ac_cv_type_off_t+set}" = set; then
6699 echo $ECHO_N "(cached) $ECHO_C" >&6
6700 else
6701 @@ -6032,62 +6721,59 @@ cat confdefs.h >>conftest.$ac_ext
6702 cat >>conftest.$ac_ext <<_ACEOF
6703 /* end confdefs.h. */
6704 $ac_includes_default
6705 +typedef off_t ac__type_new_;
6706 int
6707 main ()
6708 {
6709 -if ((off_t *) 0)
6710 +if ((ac__type_new_ *) 0)
6711 return 0;
6712 -if (sizeof (off_t))
6713 +if (sizeof (ac__type_new_))
6714 return 0;
6715 ;
6716 return 0;
6717 }
6718 _ACEOF
6719 rm -f conftest.$ac_objext
6720 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6721 - (eval $ac_compile) 2>conftest.er1
6722 +if { (ac_try="$ac_compile"
6723 +case "(($ac_try" in
6724 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6725 + *) ac_try_echo=$ac_try;;
6726 +esac
6727 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6728 + (eval "$ac_compile") 2>conftest.er1
6729 ac_status=$?
6730 grep -v '^ *+' conftest.er1 >conftest.err
6731 rm -f conftest.er1
6732 cat conftest.err >&5
6733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6734 - (exit $ac_status); } &&
6735 - { ac_try='test -z "$ac_c_werror_flag"
6736 - || test ! -s conftest.err'
6737 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6738 - (eval $ac_try) 2>&5
6739 - ac_status=$?
6740 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
6741 - (exit $ac_status); }; } &&
6742 - { ac_try='test -s conftest.$ac_objext'
6743 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6744 - (eval $ac_try) 2>&5
6745 - ac_status=$?
6746 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
6747 - (exit $ac_status); }; }; then
6748 + (exit $ac_status); } && {
6749 + test -z "$ac_c_werror_flag" ||
6750 + test ! -s conftest.err
6751 + } && test -s conftest.$ac_objext; then
6752 ac_cv_type_off_t=yes
6753 else
6754 echo "$as_me: failed program was:" >&5
6755 sed 's/^/| /' conftest.$ac_ext >&5
6756
6757 -ac_cv_type_off_t=no
6758 + ac_cv_type_off_t=no
6759 fi
6760 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6761 +
6762 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6763 fi
6764 -echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
6765 -echo "${ECHO_T}$ac_cv_type_off_t" >&6
6766 +{ echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
6767 +echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
6768 if test $ac_cv_type_off_t = yes; then
6769 :
6770 else
6771
6772 cat >>confdefs.h <<_ACEOF
6773 -#define off_t long
6774 +#define off_t long int
6775 _ACEOF
6776
6777 fi
6778
6779 -echo "$as_me:$LINENO: checking for size_t" >&5
6780 -echo $ECHO_N "checking for size_t... $ECHO_C" >&6
6781 +{ echo "$as_me:$LINENO: checking for size_t" >&5
6782 +echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
6783 if test "${ac_cv_type_size_t+set}" = set; then
6784 echo $ECHO_N "(cached) $ECHO_C" >&6
6785 else
6786 @@ -6098,64 +6784,61 @@ cat confdefs.h >>conftest.$ac_ext
6787 cat >>conftest.$ac_ext <<_ACEOF
6788 /* end confdefs.h. */
6789 $ac_includes_default
6790 +typedef size_t ac__type_new_;
6791 int
6792 main ()
6793 {
6794 -if ((size_t *) 0)
6795 +if ((ac__type_new_ *) 0)
6796 return 0;
6797 -if (sizeof (size_t))
6798 +if (sizeof (ac__type_new_))
6799 return 0;
6800 ;
6801 return 0;
6802 }
6803 _ACEOF
6804 rm -f conftest.$ac_objext
6805 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6806 - (eval $ac_compile) 2>conftest.er1
6807 +if { (ac_try="$ac_compile"
6808 +case "(($ac_try" in
6809 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6810 + *) ac_try_echo=$ac_try;;
6811 +esac
6812 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6813 + (eval "$ac_compile") 2>conftest.er1
6814 ac_status=$?
6815 grep -v '^ *+' conftest.er1 >conftest.err
6816 rm -f conftest.er1
6817 cat conftest.err >&5
6818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6819 - (exit $ac_status); } &&
6820 - { ac_try='test -z "$ac_c_werror_flag"
6821 - || test ! -s conftest.err'
6822 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6823 - (eval $ac_try) 2>&5
6824 - ac_status=$?
6825 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
6826 - (exit $ac_status); }; } &&
6827 - { ac_try='test -s conftest.$ac_objext'
6828 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6829 - (eval $ac_try) 2>&5
6830 - ac_status=$?
6831 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
6832 - (exit $ac_status); }; }; then
6833 + (exit $ac_status); } && {
6834 + test -z "$ac_c_werror_flag" ||
6835 + test ! -s conftest.err
6836 + } && test -s conftest.$ac_objext; then
6837 ac_cv_type_size_t=yes
6838 else
6839 echo "$as_me: failed program was:" >&5
6840 sed 's/^/| /' conftest.$ac_ext >&5
6841
6842 -ac_cv_type_size_t=no
6843 + ac_cv_type_size_t=no
6844 fi
6845 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6846 +
6847 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6848 fi
6849 -echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6850 -echo "${ECHO_T}$ac_cv_type_size_t" >&6
6851 +{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6852 +echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
6853 if test $ac_cv_type_size_t = yes; then
6854 :
6855 else
6856
6857 cat >>confdefs.h <<_ACEOF
6858 -#define size_t unsigned
6859 +#define size_t unsigned int
6860 _ACEOF
6861
6862 fi
6863
6864 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6865 # for constant arguments. Useless!
6866 -echo "$as_me:$LINENO: checking for working alloca.h" >&5
6867 -echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
6868 +{ echo "$as_me:$LINENO: checking for working alloca.h" >&5
6869 +echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
6870 if test "${ac_cv_working_alloca_h+set}" = set; then
6871 echo $ECHO_N "(cached) $ECHO_C" >&6
6872 else
6873 @@ -6170,44 +6853,42 @@ int
6874 main ()
6875 {
6876 char *p = (char *) alloca (2 * sizeof (int));
6877 + if (p) return 0;
6878 ;
6879 return 0;
6880 }
6881 _ACEOF
6882 rm -f conftest.$ac_objext conftest$ac_exeext
6883 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6884 - (eval $ac_link) 2>conftest.er1
6885 +if { (ac_try="$ac_link"
6886 +case "(($ac_try" in
6887 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6888 + *) ac_try_echo=$ac_try;;
6889 +esac
6890 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6891 + (eval "$ac_link") 2>conftest.er1
6892 ac_status=$?
6893 grep -v '^ *+' conftest.er1 >conftest.err
6894 rm -f conftest.er1
6895 cat conftest.err >&5
6896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6897 - (exit $ac_status); } &&
6898 - { ac_try='test -z "$ac_c_werror_flag"
6899 - || test ! -s conftest.err'
6900 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6901 - (eval $ac_try) 2>&5
6902 - ac_status=$?
6903 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
6904 - (exit $ac_status); }; } &&
6905 - { ac_try='test -s conftest$ac_exeext'
6906 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6907 - (eval $ac_try) 2>&5
6908 - ac_status=$?
6909 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
6910 - (exit $ac_status); }; }; then
6911 + (exit $ac_status); } && {
6912 + test -z "$ac_c_werror_flag" ||
6913 + test ! -s conftest.err
6914 + } && test -s conftest$ac_exeext &&
6915 + $as_test_x conftest$ac_exeext; then
6916 ac_cv_working_alloca_h=yes
6917 else
6918 echo "$as_me: failed program was:" >&5
6919 sed 's/^/| /' conftest.$ac_ext >&5
6920
6921 -ac_cv_working_alloca_h=no
6922 + ac_cv_working_alloca_h=no
6923 fi
6924 -rm -f conftest.err conftest.$ac_objext \
6925 +
6926 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6927 conftest$ac_exeext conftest.$ac_ext
6928 fi
6929 -echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
6930 -echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
6931 +{ echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
6932 +echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
6933 if test $ac_cv_working_alloca_h = yes; then
6934
6935 cat >>confdefs.h <<\_ACEOF
6936 @@ -6216,8 +6897,8 @@ _ACEOF
6937
6938 fi
6939
6940 -echo "$as_me:$LINENO: checking for alloca" >&5
6941 -echo $ECHO_N "checking for alloca... $ECHO_C" >&6
6942 +{ echo "$as_me:$LINENO: checking for alloca" >&5
6943 +echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
6944 if test "${ac_cv_func_alloca_works+set}" = set; then
6945 echo $ECHO_N "(cached) $ECHO_C" >&6
6946 else
6947 @@ -6234,7 +6915,7 @@ cat >>conftest.$ac_ext <<_ACEOF
6948 # include <malloc.h>
6949 # define alloca _alloca
6950 # else
6951 -# if HAVE_ALLOCA_H
6952 +# ifdef HAVE_ALLOCA_H
6953 # include <alloca.h>
6954 # else
6955 # ifdef _AIX
6956 @@ -6252,44 +6933,42 @@ int
6957 main ()
6958 {
6959 char *p = (char *) alloca (1);
6960 + if (p) return 0;
6961 ;
6962 return 0;
6963 }
6964 _ACEOF
6965 rm -f conftest.$ac_objext conftest$ac_exeext
6966 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6967 - (eval $ac_link) 2>conftest.er1
6968 +if { (ac_try="$ac_link"
6969 +case "(($ac_try" in
6970 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6971 + *) ac_try_echo=$ac_try;;
6972 +esac
6973 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6974 + (eval "$ac_link") 2>conftest.er1
6975 ac_status=$?
6976 grep -v '^ *+' conftest.er1 >conftest.err
6977 rm -f conftest.er1
6978 cat conftest.err >&5
6979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6980 - (exit $ac_status); } &&
6981 - { ac_try='test -z "$ac_c_werror_flag"
6982 - || test ! -s conftest.err'
6983 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6984 - (eval $ac_try) 2>&5
6985 - ac_status=$?
6986 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
6987 - (exit $ac_status); }; } &&
6988 - { ac_try='test -s conftest$ac_exeext'
6989 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6990 - (eval $ac_try) 2>&5
6991 - ac_status=$?
6992 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
6993 - (exit $ac_status); }; }; then
6994 + (exit $ac_status); } && {
6995 + test -z "$ac_c_werror_flag" ||
6996 + test ! -s conftest.err
6997 + } && test -s conftest$ac_exeext &&
6998 + $as_test_x conftest$ac_exeext; then
6999 ac_cv_func_alloca_works=yes
7000 else
7001 echo "$as_me: failed program was:" >&5
7002 sed 's/^/| /' conftest.$ac_ext >&5
7003
7004 -ac_cv_func_alloca_works=no
7005 + ac_cv_func_alloca_works=no
7006 fi
7007 -rm -f conftest.err conftest.$ac_objext \
7008 +
7009 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7010 conftest$ac_exeext conftest.$ac_ext
7011 fi
7012 -echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
7013 -echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
7014 +{ echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
7015 +echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
7016
7017 if test $ac_cv_func_alloca_works = yes; then
7018
7019 @@ -6303,15 +6982,15 @@ else
7020 # contain a buggy version. If you still want to use their alloca,
7021 # use ar to extract alloca.o from them instead of compiling alloca.c.
7022
7023 -ALLOCA=alloca.$ac_objext
7024 +ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
7025
7026 cat >>confdefs.h <<\_ACEOF
7027 #define C_ALLOCA 1
7028 _ACEOF
7029
7030
7031 -echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
7032 -echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
7033 +{ echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
7034 +echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
7035 if test "${ac_cv_os_cray+set}" = set; then
7036 echo $ECHO_N "(cached) $ECHO_C" >&6
7037 else
7038 @@ -6321,7 +7000,7 @@ _ACEOF
7039 cat confdefs.h >>conftest.$ac_ext
7040 cat >>conftest.$ac_ext <<_ACEOF
7041 /* end confdefs.h. */
7042 -#if defined(CRAY) && ! defined(CRAY2)
7043 +#if defined CRAY && ! defined CRAY2
7044 webecray
7045 #else
7046 wenotbecray
7047 @@ -6337,14 +7016,14 @@ fi
7048 rm -f conftest*
7049
7050 fi
7051 -echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
7052 -echo "${ECHO_T}$ac_cv_os_cray" >&6
7053 +{ echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
7054 +echo "${ECHO_T}$ac_cv_os_cray" >&6; }
7055 if test $ac_cv_os_cray = yes; then
7056 for ac_func in _getb67 GETB67 getb67; do
7057 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7058 -echo "$as_me:$LINENO: checking for $ac_func" >&5
7059 -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7060 -if eval "test \"\${$as_ac_var+set}\" = set"; then
7061 +{ echo "$as_me:$LINENO: checking for $ac_func" >&5
7062 +echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7063 +if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7064 echo $ECHO_N "(cached) $ECHO_C" >&6
7065 else
7066 cat >conftest.$ac_ext <<_ACEOF
7067 @@ -6370,68 +7049,60 @@ cat >>conftest.$ac_ext <<_ACEOF
7068
7069 #undef $ac_func
7070
7071 -/* Override any gcc2 internal prototype to avoid an error. */
7072 +/* Override any GCC internal prototype to avoid an error.
7073 + Use char because int might match the return type of a GCC
7074 + builtin and then its argument prototype would still apply. */
7075 #ifdef __cplusplus
7076 extern "C"
7077 -{
7078 #endif
7079 -/* We use char because int might match the return type of a gcc2
7080 - builtin and then its argument prototype would still apply. */
7081 char $ac_func ();
7082 /* The GNU C library defines this for functions which it implements
7083 to always fail with ENOSYS. Some functions are actually named
7084 something starting with __ and the normal name is an alias. */
7085 -#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7086 +#if defined __stub_$ac_func || defined __stub___$ac_func
7087 choke me
7088 -#else
7089 -char (*f) () = $ac_func;
7090 -#endif
7091 -#ifdef __cplusplus
7092 -}
7093 #endif
7094
7095 int
7096 main ()
7097 {
7098 -return f != $ac_func;
7099 +return $ac_func ();
7100 ;
7101 return 0;
7102 }
7103 _ACEOF
7104 rm -f conftest.$ac_objext conftest$ac_exeext
7105 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7106 - (eval $ac_link) 2>conftest.er1
7107 +if { (ac_try="$ac_link"
7108 +case "(($ac_try" in
7109 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7110 + *) ac_try_echo=$ac_try;;
7111 +esac
7112 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7113 + (eval "$ac_link") 2>conftest.er1
7114 ac_status=$?
7115 grep -v '^ *+' conftest.er1 >conftest.err
7116 rm -f conftest.er1
7117 cat conftest.err >&5
7118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7119 - (exit $ac_status); } &&
7120 - { ac_try='test -z "$ac_c_werror_flag"
7121 - || test ! -s conftest.err'
7122 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7123 - (eval $ac_try) 2>&5
7124 - ac_status=$?
7125 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
7126 - (exit $ac_status); }; } &&
7127 - { ac_try='test -s conftest$ac_exeext'
7128 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7129 - (eval $ac_try) 2>&5
7130 - ac_status=$?
7131 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
7132 - (exit $ac_status); }; }; then
7133 + (exit $ac_status); } && {
7134 + test -z "$ac_c_werror_flag" ||
7135 + test ! -s conftest.err
7136 + } && test -s conftest$ac_exeext &&
7137 + $as_test_x conftest$ac_exeext; then
7138 eval "$as_ac_var=yes"
7139 else
7140 echo "$as_me: failed program was:" >&5
7141 sed 's/^/| /' conftest.$ac_ext >&5
7142
7143 -eval "$as_ac_var=no"
7144 + eval "$as_ac_var=no"
7145 fi
7146 -rm -f conftest.err conftest.$ac_objext \
7147 +
7148 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7149 conftest$ac_exeext conftest.$ac_ext
7150 fi
7151 -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7152 -echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7153 +ac_res=`eval echo '${'$as_ac_var'}'`
7154 + { echo "$as_me:$LINENO: result: $ac_res" >&5
7155 +echo "${ECHO_T}$ac_res" >&6; }
7156 if test `eval echo '${'$as_ac_var'}'` = yes; then
7157
7158 cat >>confdefs.h <<_ACEOF
7159 @@ -6444,8 +7115,8 @@ fi
7160 done
7161 fi
7162
7163 -echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
7164 -echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
7165 +{ echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
7166 +echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
7167 if test "${ac_cv_c_stack_direction+set}" = set; then
7168 echo $ECHO_N "(cached) $ECHO_C" >&6
7169 else
7170 @@ -6458,6 +7129,7 @@ _ACEOF
7171 cat confdefs.h >>conftest.$ac_ext
7172 cat >>conftest.$ac_ext <<_ACEOF
7173 /* end confdefs.h. */
7174 +$ac_includes_default
7175 int
7176 find_stack_direction ()
7177 {
7178 @@ -6475,17 +7147,26 @@ find_stack_direction ()
7179 int
7180 main ()
7181 {
7182 - exit (find_stack_direction () < 0);
7183 + return find_stack_direction () < 0;
7184 }
7185 _ACEOF
7186 rm -f conftest$ac_exeext
7187 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7188 - (eval $ac_link) 2>&5
7189 +if { (ac_try="$ac_link"
7190 +case "(($ac_try" in
7191 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7192 + *) ac_try_echo=$ac_try;;
7193 +esac
7194 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7195 + (eval "$ac_link") 2>&5
7196 ac_status=$?
7197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7198 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7199 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7200 - (eval $ac_try) 2>&5
7201 + { (case "(($ac_try" in
7202 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7203 + *) ac_try_echo=$ac_try;;
7204 +esac
7205 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7206 + (eval "$ac_try") 2>&5
7207 ac_status=$?
7208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7209 (exit $ac_status); }; }; then
7210 @@ -6498,11 +7179,13 @@ sed 's/^/| /' conftest.$ac_ext >&5
7211 ( exit $ac_status )
7212 ac_cv_c_stack_direction=-1
7213 fi
7214 -rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7215 +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7216 fi
7217 +
7218 +
7219 fi
7220 -echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
7221 -echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
7222 +{ echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
7223 +echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
7224
7225 cat >>confdefs.h <<_ACEOF
7226 #define STACK_DIRECTION $ac_cv_c_stack_direction
7227 @@ -6516,18 +7199,19 @@ fi
7228 for ac_header in stdlib.h unistd.h
7229 do
7230 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7231 -if eval "test \"\${$as_ac_Header+set}\" = set"; then
7232 - echo "$as_me:$LINENO: checking for $ac_header" >&5
7233 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7234 -if eval "test \"\${$as_ac_Header+set}\" = set"; then
7235 +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7236 + { echo "$as_me:$LINENO: checking for $ac_header" >&5
7237 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7238 +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7239 echo $ECHO_N "(cached) $ECHO_C" >&6
7240 fi
7241 -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7242 -echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7243 +ac_res=`eval echo '${'$as_ac_Header'}'`
7244 + { echo "$as_me:$LINENO: result: $ac_res" >&5
7245 +echo "${ECHO_T}$ac_res" >&6; }
7246 else
7247 # Is the header compilable?
7248 -echo "$as_me:$LINENO: checking $ac_header usability" >&5
7249 -echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7250 +{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
7251 +echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7252 cat >conftest.$ac_ext <<_ACEOF
7253 /* confdefs.h. */
7254 _ACEOF
7255 @@ -6538,41 +7222,37 @@ $ac_includes_default
7256 #include <$ac_header>
7257 _ACEOF
7258 rm -f conftest.$ac_objext
7259 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7260 - (eval $ac_compile) 2>conftest.er1
7261 +if { (ac_try="$ac_compile"
7262 +case "(($ac_try" in
7263 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7264 + *) ac_try_echo=$ac_try;;
7265 +esac
7266 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7267 + (eval "$ac_compile") 2>conftest.er1
7268 ac_status=$?
7269 grep -v '^ *+' conftest.er1 >conftest.err
7270 rm -f conftest.er1
7271 cat conftest.err >&5
7272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7273 - (exit $ac_status); } &&
7274 - { ac_try='test -z "$ac_c_werror_flag"
7275 - || test ! -s conftest.err'
7276 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7277 - (eval $ac_try) 2>&5
7278 - ac_status=$?
7279 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
7280 - (exit $ac_status); }; } &&
7281 - { ac_try='test -s conftest.$ac_objext'
7282 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7283 - (eval $ac_try) 2>&5
7284 - ac_status=$?
7285 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
7286 - (exit $ac_status); }; }; then
7287 + (exit $ac_status); } && {
7288 + test -z "$ac_c_werror_flag" ||
7289 + test ! -s conftest.err
7290 + } && test -s conftest.$ac_objext; then
7291 ac_header_compiler=yes
7292 else
7293 echo "$as_me: failed program was:" >&5
7294 sed 's/^/| /' conftest.$ac_ext >&5
7295
7296 -ac_header_compiler=no
7297 + ac_header_compiler=no
7298 fi
7299 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7300 -echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7301 -echo "${ECHO_T}$ac_header_compiler" >&6
7302 +
7303 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7304 +{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7305 +echo "${ECHO_T}$ac_header_compiler" >&6; }
7306
7307 # Is the header present?
7308 -echo "$as_me:$LINENO: checking $ac_header presence" >&5
7309 -echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7310 +{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
7311 +echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7312 cat >conftest.$ac_ext <<_ACEOF
7313 /* confdefs.h. */
7314 _ACEOF
7315 @@ -6581,24 +7261,22 @@ cat >>conftest.$ac_ext <<_ACEOF
7316 /* end confdefs.h. */
7317 #include <$ac_header>
7318 _ACEOF
7319 -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7320 - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7321 +if { (ac_try="$ac_cpp conftest.$ac_ext"
7322 +case "(($ac_try" in
7323 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7324 + *) ac_try_echo=$ac_try;;
7325 +esac
7326 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7327 + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7328 ac_status=$?
7329 grep -v '^ *+' conftest.er1 >conftest.err
7330 rm -f conftest.er1
7331 cat conftest.err >&5
7332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7333 - (exit $ac_status); } >/dev/null; then
7334 - if test -s conftest.err; then
7335 - ac_cpp_err=$ac_c_preproc_warn_flag
7336 - ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7337 - else
7338 - ac_cpp_err=
7339 - fi
7340 -else
7341 - ac_cpp_err=yes
7342 -fi
7343 -if test -z "$ac_cpp_err"; then
7344 + (exit $ac_status); } >/dev/null && {
7345 + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7346 + test ! -s conftest.err
7347 + }; then
7348 ac_header_preproc=yes
7349 else
7350 echo "$as_me: failed program was:" >&5
7351 @@ -6606,9 +7284,10 @@ sed 's/^/| /' conftest.$ac_ext >&5
7352
7353 ac_header_preproc=no
7354 fi
7355 +
7356 rm -f conftest.err conftest.$ac_ext
7357 -echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7358 -echo "${ECHO_T}$ac_header_preproc" >&6
7359 +{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7360 +echo "${ECHO_T}$ac_header_preproc" >&6; }
7361
7362 # So? What about this header?
7363 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7364 @@ -6632,25 +7311,19 @@ echo "$as_me: WARNING: $ac_header: s
7365 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7366 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7367 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7368 - (
7369 - cat <<\_ASBOX
7370 -## ------------------------------------------ ##
7371 -## Report this to the AC_PACKAGE_NAME lists. ##
7372 -## ------------------------------------------ ##
7373 -_ASBOX
7374 - ) |
7375 - sed "s/^/$as_me: WARNING: /" >&2
7376 +
7377 ;;
7378 esac
7379 -echo "$as_me:$LINENO: checking for $ac_header" >&5
7380 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7381 -if eval "test \"\${$as_ac_Header+set}\" = set"; then
7382 +{ echo "$as_me:$LINENO: checking for $ac_header" >&5
7383 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7384 +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7385 echo $ECHO_N "(cached) $ECHO_C" >&6
7386 else
7387 eval "$as_ac_Header=\$ac_header_preproc"
7388 fi
7389 -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7390 -echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7391 +ac_res=`eval echo '${'$as_ac_Header'}'`
7392 + { echo "$as_me:$LINENO: result: $ac_res" >&5
7393 +echo "${ECHO_T}$ac_res" >&6; }
7394
7395 fi
7396 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7397 @@ -6666,9 +7339,9 @@ done
7398 for ac_func in getpagesize
7399 do
7400 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7401 -echo "$as_me:$LINENO: checking for $ac_func" >&5
7402 -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7403 -if eval "test \"\${$as_ac_var+set}\" = set"; then
7404 +{ echo "$as_me:$LINENO: checking for $ac_func" >&5
7405 +echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7406 +if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7407 echo $ECHO_N "(cached) $ECHO_C" >&6
7408 else
7409 cat >conftest.$ac_ext <<_ACEOF
7410 @@ -6694,68 +7367,60 @@ cat >>conftest.$ac_ext <<_ACEOF
7411
7412 #undef $ac_func
7413
7414 -/* Override any gcc2 internal prototype to avoid an error. */
7415 +/* Override any GCC internal prototype to avoid an error.
7416 + Use char because int might match the return type of a GCC
7417 + builtin and then its argument prototype would still apply. */
7418 #ifdef __cplusplus
7419 extern "C"
7420 -{
7421 #endif
7422 -/* We use char because int might match the return type of a gcc2
7423 - builtin and then its argument prototype would still apply. */
7424 char $ac_func ();
7425 /* The GNU C library defines this for functions which it implements
7426 to always fail with ENOSYS. Some functions are actually named
7427 something starting with __ and the normal name is an alias. */
7428 -#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7429 +#if defined __stub_$ac_func || defined __stub___$ac_func
7430 choke me
7431 -#else
7432 -char (*f) () = $ac_func;
7433 -#endif
7434 -#ifdef __cplusplus
7435 -}
7436 #endif
7437
7438 int
7439 main ()
7440 {
7441 -return f != $ac_func;
7442 +return $ac_func ();
7443 ;
7444 return 0;
7445 }
7446 _ACEOF
7447 rm -f conftest.$ac_objext conftest$ac_exeext
7448 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7449 - (eval $ac_link) 2>conftest.er1
7450 +if { (ac_try="$ac_link"
7451 +case "(($ac_try" in
7452 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7453 + *) ac_try_echo=$ac_try;;
7454 +esac
7455 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7456 + (eval "$ac_link") 2>conftest.er1
7457 ac_status=$?
7458 grep -v '^ *+' conftest.er1 >conftest.err
7459 rm -f conftest.er1
7460 cat conftest.err >&5
7461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7462 - (exit $ac_status); } &&
7463 - { ac_try='test -z "$ac_c_werror_flag"
7464 - || test ! -s conftest.err'
7465 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7466 - (eval $ac_try) 2>&5
7467 - ac_status=$?
7468 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
7469 - (exit $ac_status); }; } &&
7470 - { ac_try='test -s conftest$ac_exeext'
7471 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7472 - (eval $ac_try) 2>&5
7473 - ac_status=$?
7474 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
7475 - (exit $ac_status); }; }; then
7476 + (exit $ac_status); } && {
7477 + test -z "$ac_c_werror_flag" ||
7478 + test ! -s conftest.err
7479 + } && test -s conftest$ac_exeext &&
7480 + $as_test_x conftest$ac_exeext; then
7481 eval "$as_ac_var=yes"
7482 else
7483 echo "$as_me: failed program was:" >&5
7484 sed 's/^/| /' conftest.$ac_ext >&5
7485
7486 -eval "$as_ac_var=no"
7487 + eval "$as_ac_var=no"
7488 fi
7489 -rm -f conftest.err conftest.$ac_objext \
7490 +
7491 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7492 conftest$ac_exeext conftest.$ac_ext
7493 fi
7494 -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7495 -echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7496 +ac_res=`eval echo '${'$as_ac_var'}'`
7497 + { echo "$as_me:$LINENO: result: $ac_res" >&5
7498 +echo "${ECHO_T}$ac_res" >&6; }
7499 if test `eval echo '${'$as_ac_var'}'` = yes; then
7500 cat >>confdefs.h <<_ACEOF
7501 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7502 @@ -6764,8 +7429,8 @@ _ACEOF
7503 fi
7504 done
7505
7506 -echo "$as_me:$LINENO: checking for working mmap" >&5
7507 -echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
7508 +{ echo "$as_me:$LINENO: checking for working mmap" >&5
7509 +echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
7510 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
7511 echo $ECHO_N "(cached) $ECHO_C" >&6
7512 else
7513 @@ -6807,21 +7472,21 @@ $ac_includes_default
7514 #include <fcntl.h>
7515 #include <sys/mman.h>
7516
7517 -#if !STDC_HEADERS && !HAVE_STDLIB_H
7518 +#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
7519 char *malloc ();
7520 #endif
7521
7522 /* This mess was copied from the GNU getpagesize.h. */
7523 -#if !HAVE_GETPAGESIZE
7524 +#ifndef HAVE_GETPAGESIZE
7525 /* Assume that all systems that can run configure have sys/param.h. */
7526 -# if !HAVE_SYS_PARAM_H
7527 +# ifndef HAVE_SYS_PARAM_H
7528 # define HAVE_SYS_PARAM_H 1
7529 # endif
7530
7531 # ifdef _SC_PAGESIZE
7532 # define getpagesize() sysconf(_SC_PAGESIZE)
7533 # else /* no _SC_PAGESIZE */
7534 -# if HAVE_SYS_PARAM_H
7535 +# ifdef HAVE_SYS_PARAM_H
7536 # include <sys/param.h>
7537 # ifdef EXEC_PAGESIZE
7538 # define getpagesize() EXEC_PAGESIZE
7539 @@ -6860,15 +7525,15 @@ main ()
7540 /* First, make a file with some known garbage in it. */
7541 data = (char *) malloc (pagesize);
7542 if (!data)
7543 - exit (1);
7544 + return 1;
7545 for (i = 0; i < pagesize; ++i)
7546 *(data + i) = rand ();
7547 umask (0);
7548 fd = creat ("conftest.mmap", 0600);
7549 if (fd < 0)
7550 - exit (1);
7551 + return 1;
7552 if (write (fd, data, pagesize) != pagesize)
7553 - exit (1);
7554 + return 1;
7555 close (fd);
7556
7557 /* Next, try to mmap the file at a fixed address which already has
7558 @@ -6876,17 +7541,17 @@ main ()
7559 we see the same garbage. */
7560 fd = open ("conftest.mmap", O_RDWR);
7561 if (fd < 0)
7562 - exit (1);
7563 + return 1;
7564 data2 = (char *) malloc (2 * pagesize);
7565 if (!data2)
7566 - exit (1);
7567 - data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
7568 + return 1;
7569 + data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
7570 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7571 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7572 - exit (1);
7573 + return 1;
7574 for (i = 0; i < pagesize; ++i)
7575 if (*(data + i) != *(data2 + i))
7576 - exit (1);
7577 + return 1;
7578
7579 /* Finally, make sure that changes to the mapped area do not
7580 percolate back to the file as seen by read(). (This is a bug on
7581 @@ -6895,24 +7560,33 @@ main ()
7582 *(data2 + i) = *(data2 + i) + 1;
7583 data3 = (char *) malloc (pagesize);
7584 if (!data3)
7585 - exit (1);
7586 + return 1;
7587 if (read (fd, data3, pagesize) != pagesize)
7588 - exit (1);
7589 + return 1;
7590 for (i = 0; i < pagesize; ++i)
7591 if (*(data + i) != *(data3 + i))
7592 - exit (1);
7593 + return 1;
7594 close (fd);
7595 - exit (0);
7596 + return 0;
7597 }
7598 _ACEOF
7599 rm -f conftest$ac_exeext
7600 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7601 - (eval $ac_link) 2>&5
7602 +if { (ac_try="$ac_link"
7603 +case "(($ac_try" in
7604 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7605 + *) ac_try_echo=$ac_try;;
7606 +esac
7607 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7608 + (eval "$ac_link") 2>&5
7609 ac_status=$?
7610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7611 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7612 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7613 - (eval $ac_try) 2>&5
7614 + { (case "(($ac_try" in
7615 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7616 + *) ac_try_echo=$ac_try;;
7617 +esac
7618 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7619 + (eval "$ac_try") 2>&5
7620 ac_status=$?
7621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7622 (exit $ac_status); }; }; then
7623 @@ -6925,11 +7599,13 @@ sed 's/^/| /' conftest.$ac_ext >&5
7624 ( exit $ac_status )
7625 ac_cv_func_mmap_fixed_mapped=no
7626 fi
7627 -rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7628 +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7629 fi
7630 +
7631 +
7632 fi
7633 -echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
7634 -echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
7635 +{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
7636 +echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
7637 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7638
7639 cat >>confdefs.h <<\_ACEOF
7640 @@ -6953,18 +7629,19 @@ for ac_header in argz.h limits.h locale.
7641 unistd.h values.h sys/param.h
7642 do
7643 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7644 -if eval "test \"\${$as_ac_Header+set}\" = set"; then
7645 - echo "$as_me:$LINENO: checking for $ac_header" >&5
7646 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7647 -if eval "test \"\${$as_ac_Header+set}\" = set"; then
7648 +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7649 + { echo "$as_me:$LINENO: checking for $ac_header" >&5
7650 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7651 +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7652 echo $ECHO_N "(cached) $ECHO_C" >&6
7653 fi
7654 -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7655 -echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7656 +ac_res=`eval echo '${'$as_ac_Header'}'`
7657 + { echo "$as_me:$LINENO: result: $ac_res" >&5
7658 +echo "${ECHO_T}$ac_res" >&6; }
7659 else
7660 # Is the header compilable?
7661 -echo "$as_me:$LINENO: checking $ac_header usability" >&5
7662 -echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7663 +{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
7664 +echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7665 cat >conftest.$ac_ext <<_ACEOF
7666 /* confdefs.h. */
7667 _ACEOF
7668 @@ -6975,41 +7652,37 @@ $ac_includes_default
7669 #include <$ac_header>
7670 _ACEOF
7671 rm -f conftest.$ac_objext
7672 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7673 - (eval $ac_compile) 2>conftest.er1
7674 +if { (ac_try="$ac_compile"
7675 +case "(($ac_try" in
7676 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7677 + *) ac_try_echo=$ac_try;;
7678 +esac
7679 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7680 + (eval "$ac_compile") 2>conftest.er1
7681 ac_status=$?
7682 grep -v '^ *+' conftest.er1 >conftest.err
7683 rm -f conftest.er1
7684 cat conftest.err >&5
7685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7686 - (exit $ac_status); } &&
7687 - { ac_try='test -z "$ac_c_werror_flag"
7688 - || test ! -s conftest.err'
7689 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7690 - (eval $ac_try) 2>&5
7691 - ac_status=$?
7692 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
7693 - (exit $ac_status); }; } &&
7694 - { ac_try='test -s conftest.$ac_objext'
7695 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7696 - (eval $ac_try) 2>&5
7697 - ac_status=$?
7698 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
7699 - (exit $ac_status); }; }; then
7700 + (exit $ac_status); } && {
7701 + test -z "$ac_c_werror_flag" ||
7702 + test ! -s conftest.err
7703 + } && test -s conftest.$ac_objext; then
7704 ac_header_compiler=yes
7705 else
7706 echo "$as_me: failed program was:" >&5
7707 sed 's/^/| /' conftest.$ac_ext >&5
7708
7709 -ac_header_compiler=no
7710 + ac_header_compiler=no
7711 fi
7712 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7713 -echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7714 -echo "${ECHO_T}$ac_header_compiler" >&6
7715 +
7716 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7717 +{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7718 +echo "${ECHO_T}$ac_header_compiler" >&6; }
7719
7720 # Is the header present?
7721 -echo "$as_me:$LINENO: checking $ac_header presence" >&5
7722 -echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7723 +{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
7724 +echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7725 cat >conftest.$ac_ext <<_ACEOF
7726 /* confdefs.h. */
7727 _ACEOF
7728 @@ -7018,24 +7691,22 @@ cat >>conftest.$ac_ext <<_ACEOF
7729 /* end confdefs.h. */
7730 #include <$ac_header>
7731 _ACEOF
7732 -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7733 - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7734 +if { (ac_try="$ac_cpp conftest.$ac_ext"
7735 +case "(($ac_try" in
7736 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7737 + *) ac_try_echo=$ac_try;;
7738 +esac
7739 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7740 + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7741 ac_status=$?
7742 grep -v '^ *+' conftest.er1 >conftest.err
7743 rm -f conftest.er1
7744 cat conftest.err >&5
7745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7746 - (exit $ac_status); } >/dev/null; then
7747 - if test -s conftest.err; then
7748 - ac_cpp_err=$ac_c_preproc_warn_flag
7749 - ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7750 - else
7751 - ac_cpp_err=
7752 - fi
7753 -else
7754 - ac_cpp_err=yes
7755 -fi
7756 -if test -z "$ac_cpp_err"; then
7757 + (exit $ac_status); } >/dev/null && {
7758 + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7759 + test ! -s conftest.err
7760 + }; then
7761 ac_header_preproc=yes
7762 else
7763 echo "$as_me: failed program was:" >&5
7764 @@ -7043,9 +7714,10 @@ sed 's/^/| /' conftest.$ac_ext >&5
7765
7766 ac_header_preproc=no
7767 fi
7768 +
7769 rm -f conftest.err conftest.$ac_ext
7770 -echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7771 -echo "${ECHO_T}$ac_header_preproc" >&6
7772 +{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7773 +echo "${ECHO_T}$ac_header_preproc" >&6; }
7774
7775 # So? What about this header?
7776 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7777 @@ -7069,25 +7741,19 @@ echo "$as_me: WARNING: $ac_header: s
7778 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7779 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7780 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7781 - (
7782 - cat <<\_ASBOX
7783 -## ------------------------------------------ ##
7784 -## Report this to the AC_PACKAGE_NAME lists. ##
7785 -## ------------------------------------------ ##
7786 -_ASBOX
7787 - ) |
7788 - sed "s/^/$as_me: WARNING: /" >&2
7789 +
7790 ;;
7791 esac
7792 -echo "$as_me:$LINENO: checking for $ac_header" >&5
7793 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7794 -if eval "test \"\${$as_ac_Header+set}\" = set"; then
7795 +{ echo "$as_me:$LINENO: checking for $ac_header" >&5
7796 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7797 +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7798 echo $ECHO_N "(cached) $ECHO_C" >&6
7799 else
7800 eval "$as_ac_Header=\$ac_header_preproc"
7801 fi
7802 -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7803 -echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7804 +ac_res=`eval echo '${'$as_ac_Header'}'`
7805 + { echo "$as_me:$LINENO: result: $ac_res" >&5
7806 +echo "${ECHO_T}$ac_res" >&6; }
7807
7808 fi
7809 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7810 @@ -7113,9 +7779,9 @@ for ac_func in getcwd munmap putenv sete
7811 __argz_count __argz_stringify __argz_next
7812 do
7813 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7814 -echo "$as_me:$LINENO: checking for $ac_func" >&5
7815 -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7816 -if eval "test \"\${$as_ac_var+set}\" = set"; then
7817 +{ echo "$as_me:$LINENO: checking for $ac_func" >&5
7818 +echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7819 +if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7820 echo $ECHO_N "(cached) $ECHO_C" >&6
7821 else
7822 cat >conftest.$ac_ext <<_ACEOF
7823 @@ -7141,68 +7807,60 @@ cat >>conftest.$ac_ext <<_ACEOF
7824
7825 #undef $ac_func
7826
7827 -/* Override any gcc2 internal prototype to avoid an error. */
7828 +/* Override any GCC internal prototype to avoid an error.
7829 + Use char because int might match the return type of a GCC
7830 + builtin and then its argument prototype would still apply. */
7831 #ifdef __cplusplus
7832 extern "C"
7833 -{
7834 #endif
7835 -/* We use char because int might match the return type of a gcc2
7836 - builtin and then its argument prototype would still apply. */
7837 char $ac_func ();
7838 /* The GNU C library defines this for functions which it implements
7839 to always fail with ENOSYS. Some functions are actually named
7840 something starting with __ and the normal name is an alias. */
7841 -#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7842 +#if defined __stub_$ac_func || defined __stub___$ac_func
7843 choke me
7844 -#else
7845 -char (*f) () = $ac_func;
7846 -#endif
7847 -#ifdef __cplusplus
7848 -}
7849 #endif
7850
7851 int
7852 main ()
7853 {
7854 -return f != $ac_func;
7855 +return $ac_func ();
7856 ;
7857 return 0;
7858 }
7859 _ACEOF
7860 rm -f conftest.$ac_objext conftest$ac_exeext
7861 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7862 - (eval $ac_link) 2>conftest.er1
7863 +if { (ac_try="$ac_link"
7864 +case "(($ac_try" in
7865 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7866 + *) ac_try_echo=$ac_try;;
7867 +esac
7868 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7869 + (eval "$ac_link") 2>conftest.er1
7870 ac_status=$?
7871 grep -v '^ *+' conftest.er1 >conftest.err
7872 rm -f conftest.er1
7873 cat conftest.err >&5
7874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7875 - (exit $ac_status); } &&
7876 - { ac_try='test -z "$ac_c_werror_flag"
7877 - || test ! -s conftest.err'
7878 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7879 - (eval $ac_try) 2>&5
7880 - ac_status=$?
7881 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
7882 - (exit $ac_status); }; } &&
7883 - { ac_try='test -s conftest$ac_exeext'
7884 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7885 - (eval $ac_try) 2>&5
7886 - ac_status=$?
7887 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
7888 - (exit $ac_status); }; }; then
7889 + (exit $ac_status); } && {
7890 + test -z "$ac_c_werror_flag" ||
7891 + test ! -s conftest.err
7892 + } && test -s conftest$ac_exeext &&
7893 + $as_test_x conftest$ac_exeext; then
7894 eval "$as_ac_var=yes"
7895 else
7896 echo "$as_me: failed program was:" >&5
7897 sed 's/^/| /' conftest.$ac_ext >&5
7898
7899 -eval "$as_ac_var=no"
7900 + eval "$as_ac_var=no"
7901 fi
7902 -rm -f conftest.err conftest.$ac_objext \
7903 +
7904 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7905 conftest$ac_exeext conftest.$ac_ext
7906 fi
7907 -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7908 -echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7909 +ac_res=`eval echo '${'$as_ac_var'}'`
7910 + { echo "$as_me:$LINENO: result: $ac_res" >&5
7911 +echo "${ECHO_T}$ac_res" >&6; }
7912 if test `eval echo '${'$as_ac_var'}'` = yes; then
7913 cat >>confdefs.h <<_ACEOF
7914 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7915 @@ -7217,9 +7875,9 @@ done
7916 for ac_func in stpcpy
7917 do
7918 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7919 -echo "$as_me:$LINENO: checking for $ac_func" >&5
7920 -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7921 -if eval "test \"\${$as_ac_var+set}\" = set"; then
7922 +{ echo "$as_me:$LINENO: checking for $ac_func" >&5
7923 +echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7924 +if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7925 echo $ECHO_N "(cached) $ECHO_C" >&6
7926 else
7927 cat >conftest.$ac_ext <<_ACEOF
7928 @@ -7245,68 +7903,60 @@ cat >>conftest.$ac_ext <<_ACEOF
7929
7930 #undef $ac_func
7931
7932 -/* Override any gcc2 internal prototype to avoid an error. */
7933 +/* Override any GCC internal prototype to avoid an error.
7934 + Use char because int might match the return type of a GCC
7935 + builtin and then its argument prototype would still apply. */
7936 #ifdef __cplusplus
7937 extern "C"
7938 -{
7939 #endif
7940 -/* We use char because int might match the return type of a gcc2
7941 - builtin and then its argument prototype would still apply. */
7942 char $ac_func ();
7943 /* The GNU C library defines this for functions which it implements
7944 to always fail with ENOSYS. Some functions are actually named
7945 something starting with __ and the normal name is an alias. */
7946 -#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7947 +#if defined __stub_$ac_func || defined __stub___$ac_func
7948 choke me
7949 -#else
7950 -char (*f) () = $ac_func;
7951 -#endif
7952 -#ifdef __cplusplus
7953 -}
7954 #endif
7955
7956 int
7957 main ()
7958 {
7959 -return f != $ac_func;
7960 +return $ac_func ();
7961 ;
7962 return 0;
7963 }
7964 _ACEOF
7965 rm -f conftest.$ac_objext conftest$ac_exeext
7966 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7967 - (eval $ac_link) 2>conftest.er1
7968 +if { (ac_try="$ac_link"
7969 +case "(($ac_try" in
7970 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7971 + *) ac_try_echo=$ac_try;;
7972 +esac
7973 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7974 + (eval "$ac_link") 2>conftest.er1
7975 ac_status=$?
7976 grep -v '^ *+' conftest.er1 >conftest.err
7977 rm -f conftest.er1
7978 cat conftest.err >&5
7979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7980 - (exit $ac_status); } &&
7981 - { ac_try='test -z "$ac_c_werror_flag"
7982 - || test ! -s conftest.err'
7983 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7984 - (eval $ac_try) 2>&5
7985 - ac_status=$?
7986 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
7987 - (exit $ac_status); }; } &&
7988 - { ac_try='test -s conftest$ac_exeext'
7989 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7990 - (eval $ac_try) 2>&5
7991 - ac_status=$?
7992 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
7993 - (exit $ac_status); }; }; then
7994 + (exit $ac_status); } && {
7995 + test -z "$ac_c_werror_flag" ||
7996 + test ! -s conftest.err
7997 + } && test -s conftest$ac_exeext &&
7998 + $as_test_x conftest$ac_exeext; then
7999 eval "$as_ac_var=yes"
8000 else
8001 echo "$as_me: failed program was:" >&5
8002 sed 's/^/| /' conftest.$ac_ext >&5
8003
8004 -eval "$as_ac_var=no"
8005 + eval "$as_ac_var=no"
8006 fi
8007 -rm -f conftest.err conftest.$ac_objext \
8008 +
8009 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8010 conftest$ac_exeext conftest.$ac_ext
8011 fi
8012 -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8013 -echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8014 +ac_res=`eval echo '${'$as_ac_var'}'`
8015 + { echo "$as_me:$LINENO: result: $ac_res" >&5
8016 +echo "${ECHO_T}$ac_res" >&6; }
8017 if test `eval echo '${'$as_ac_var'}'` = yes; then
8018 cat >>confdefs.h <<_ACEOF
8019 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8020 @@ -7325,8 +7975,8 @@ _ACEOF
8021 fi
8022
8023 if test $ac_cv_header_locale_h = yes; then
8024 - echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
8025 -echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
8026 + { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
8027 +echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
8028 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
8029 echo $ECHO_N "(cached) $ECHO_C" >&6
8030 else
8031 @@ -7346,39 +7996,36 @@ return LC_MESSAGES
8032 }
8033 _ACEOF
8034 rm -f conftest.$ac_objext conftest$ac_exeext
8035 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8036 - (eval $ac_link) 2>conftest.er1
8037 +if { (ac_try="$ac_link"
8038 +case "(($ac_try" in
8039 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8040 + *) ac_try_echo=$ac_try;;
8041 +esac
8042 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8043 + (eval "$ac_link") 2>conftest.er1
8044 ac_status=$?
8045 grep -v '^ *+' conftest.er1 >conftest.err
8046 rm -f conftest.er1
8047 cat conftest.err >&5
8048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8049 - (exit $ac_status); } &&
8050 - { ac_try='test -z "$ac_c_werror_flag"
8051 - || test ! -s conftest.err'
8052 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8053 - (eval $ac_try) 2>&5
8054 - ac_status=$?
8055 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
8056 - (exit $ac_status); }; } &&
8057 - { ac_try='test -s conftest$ac_exeext'
8058 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8059 - (eval $ac_try) 2>&5
8060 - ac_status=$?
8061 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
8062 - (exit $ac_status); }; }; then
8063 + (exit $ac_status); } && {
8064 + test -z "$ac_c_werror_flag" ||
8065 + test ! -s conftest.err
8066 + } && test -s conftest$ac_exeext &&
8067 + $as_test_x conftest$ac_exeext; then
8068 am_cv_val_LC_MESSAGES=yes
8069 else
8070 echo "$as_me: failed program was:" >&5
8071 sed 's/^/| /' conftest.$ac_ext >&5
8072
8073 -am_cv_val_LC_MESSAGES=no
8074 + am_cv_val_LC_MESSAGES=no
8075 fi
8076 -rm -f conftest.err conftest.$ac_objext \
8077 +
8078 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8079 conftest$ac_exeext conftest.$ac_ext
8080 fi
8081 -echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
8082 -echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
8083 +{ echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
8084 +echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6; }
8085 if test $am_cv_val_LC_MESSAGES = yes; then
8086
8087 cat >>confdefs.h <<\_ACEOF
8088 @@ -7387,34 +8034,34 @@ _ACEOF
8089
8090 fi
8091 fi
8092 - echo "$as_me:$LINENO: checking whether NLS is requested" >&5
8093 -echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
8094 - # Check whether --enable-nls or --disable-nls was given.
8095 + { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
8096 +echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
8097 + # Check whether --enable-nls was given.
8098 if test "${enable_nls+set}" = set; then
8099 - enableval="$enable_nls"
8100 - USE_NLS=$enableval
8101 + enableval=$enable_nls; USE_NLS=$enableval
8102 else
8103 USE_NLS=yes
8104 -fi;
8105 - echo "$as_me:$LINENO: result: $USE_NLS" >&5
8106 -echo "${ECHO_T}$USE_NLS" >&6
8107 +fi
8108 +
8109 + { echo "$as_me:$LINENO: result: $USE_NLS" >&5
8110 +echo "${ECHO_T}$USE_NLS" >&6; }
8111
8112
8113 USE_INCLUDED_LIBINTL=no
8114
8115 if test "$USE_NLS" = "yes"; then
8116 - echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
8117 -echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
8118 + { echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
8119 +echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6; }
8120
8121 -# Check whether --with-included-gettext or --without-included-gettext was given.
8122 +# Check whether --with-included-gettext was given.
8123 if test "${with_included_gettext+set}" = set; then
8124 - withval="$with_included_gettext"
8125 - nls_cv_force_use_gnu_gettext=$withval
8126 + withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
8127 else
8128 nls_cv_force_use_gnu_gettext=no
8129 -fi;
8130 - echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
8131 -echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
8132 +fi
8133 +
8134 + { echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
8135 +echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6; }
8136
8137 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
8138 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
8139 @@ -7423,17 +8070,17 @@ echo "${ECHO_T}$nls_cv_force_use_gnu_get
8140 CATOBJEXT=
8141
8142 if test "${ac_cv_header_libintl_h+set}" = set; then
8143 - echo "$as_me:$LINENO: checking for libintl.h" >&5
8144 -echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
8145 + { echo "$as_me:$LINENO: checking for libintl.h" >&5
8146 +echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; }
8147 if test "${ac_cv_header_libintl_h+set}" = set; then
8148 echo $ECHO_N "(cached) $ECHO_C" >&6
8149 fi
8150 -echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
8151 -echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
8152 +{ echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
8153 +echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; }
8154 else
8155 # Is the header compilable?
8156 -echo "$as_me:$LINENO: checking libintl.h usability" >&5
8157 -echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
8158 +{ echo "$as_me:$LINENO: checking libintl.h usability" >&5
8159 +echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6; }
8160 cat >conftest.$ac_ext <<_ACEOF
8161 /* confdefs.h. */
8162 _ACEOF
8163 @@ -7444,41 +8091,37 @@ $ac_includes_default
8164 #include <libintl.h>
8165 _ACEOF
8166 rm -f conftest.$ac_objext
8167 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8168 - (eval $ac_compile) 2>conftest.er1
8169 +if { (ac_try="$ac_compile"
8170 +case "(($ac_try" in
8171 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8172 + *) ac_try_echo=$ac_try;;
8173 +esac
8174 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8175 + (eval "$ac_compile") 2>conftest.er1
8176 ac_status=$?
8177 grep -v '^ *+' conftest.er1 >conftest.err
8178 rm -f conftest.er1
8179 cat conftest.err >&5
8180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8181 - (exit $ac_status); } &&
8182 - { ac_try='test -z "$ac_c_werror_flag"
8183 - || test ! -s conftest.err'
8184 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8185 - (eval $ac_try) 2>&5
8186 - ac_status=$?
8187 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
8188 - (exit $ac_status); }; } &&
8189 - { ac_try='test -s conftest.$ac_objext'
8190 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8191 - (eval $ac_try) 2>&5
8192 - ac_status=$?
8193 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
8194 - (exit $ac_status); }; }; then
8195 + (exit $ac_status); } && {
8196 + test -z "$ac_c_werror_flag" ||
8197 + test ! -s conftest.err
8198 + } && test -s conftest.$ac_objext; then
8199 ac_header_compiler=yes
8200 else
8201 echo "$as_me: failed program was:" >&5
8202 sed 's/^/| /' conftest.$ac_ext >&5
8203
8204 -ac_header_compiler=no
8205 + ac_header_compiler=no
8206 fi
8207 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8208 -echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8209 -echo "${ECHO_T}$ac_header_compiler" >&6
8210 +
8211 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8212 +{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8213 +echo "${ECHO_T}$ac_header_compiler" >&6; }
8214
8215 # Is the header present?
8216 -echo "$as_me:$LINENO: checking libintl.h presence" >&5
8217 -echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
8218 +{ echo "$as_me:$LINENO: checking libintl.h presence" >&5
8219 +echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6; }
8220 cat >conftest.$ac_ext <<_ACEOF
8221 /* confdefs.h. */
8222 _ACEOF
8223 @@ -7487,24 +8130,22 @@ cat >>conftest.$ac_ext <<_ACEOF
8224 /* end confdefs.h. */
8225 #include <libintl.h>
8226 _ACEOF
8227 -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8228 - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8229 +if { (ac_try="$ac_cpp conftest.$ac_ext"
8230 +case "(($ac_try" in
8231 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8232 + *) ac_try_echo=$ac_try;;
8233 +esac
8234 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8235 + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8236 ac_status=$?
8237 grep -v '^ *+' conftest.er1 >conftest.err
8238 rm -f conftest.er1
8239 cat conftest.err >&5
8240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8241 - (exit $ac_status); } >/dev/null; then
8242 - if test -s conftest.err; then
8243 - ac_cpp_err=$ac_c_preproc_warn_flag
8244 - ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8245 - else
8246 - ac_cpp_err=
8247 - fi
8248 -else
8249 - ac_cpp_err=yes
8250 -fi
8251 -if test -z "$ac_cpp_err"; then
8252 + (exit $ac_status); } >/dev/null && {
8253 + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8254 + test ! -s conftest.err
8255 + }; then
8256 ac_header_preproc=yes
8257 else
8258 echo "$as_me: failed program was:" >&5
8259 @@ -7512,9 +8153,10 @@ sed 's/^/| /' conftest.$ac_ext >&5
8260
8261 ac_header_preproc=no
8262 fi
8263 +
8264 rm -f conftest.err conftest.$ac_ext
8265 -echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8266 -echo "${ECHO_T}$ac_header_preproc" >&6
8267 +{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8268 +echo "${ECHO_T}$ac_header_preproc" >&6; }
8269
8270 # So? What about this header?
8271 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8272 @@ -7538,30 +8180,23 @@ echo "$as_me: WARNING: libintl.h: se
8273 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
8274 { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
8275 echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
8276 - (
8277 - cat <<\_ASBOX
8278 -## ------------------------------------------ ##
8279 -## Report this to the AC_PACKAGE_NAME lists. ##
8280 -## ------------------------------------------ ##
8281 -_ASBOX
8282 - ) |
8283 - sed "s/^/$as_me: WARNING: /" >&2
8284 +
8285 ;;
8286 esac
8287 -echo "$as_me:$LINENO: checking for libintl.h" >&5
8288 -echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
8289 +{ echo "$as_me:$LINENO: checking for libintl.h" >&5
8290 +echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; }
8291 if test "${ac_cv_header_libintl_h+set}" = set; then
8292 echo $ECHO_N "(cached) $ECHO_C" >&6
8293 else
8294 ac_cv_header_libintl_h=$ac_header_preproc
8295 fi
8296 -echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
8297 -echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
8298 +{ echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
8299 +echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; }
8300
8301 fi
8302 if test $ac_cv_header_libintl_h = yes; then
8303 - echo "$as_me:$LINENO: checking for gettext in libc" >&5
8304 -echo $ECHO_N "checking for gettext in libc... $ECHO_C" >&6
8305 + { echo "$as_me:$LINENO: checking for gettext in libc" >&5
8306 +echo $ECHO_N "checking for gettext in libc... $ECHO_C" >&6; }
8307 if test "${gt_cv_func_gettext_libc+set}" = set; then
8308 echo $ECHO_N "(cached) $ECHO_C" >&6
8309 else
8310 @@ -7581,43 +8216,40 @@ return (int) gettext ("")
8311 }
8312 _ACEOF
8313 rm -f conftest.$ac_objext conftest$ac_exeext
8314 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8315 - (eval $ac_link) 2>conftest.er1
8316 +if { (ac_try="$ac_link"
8317 +case "(($ac_try" in
8318 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8319 + *) ac_try_echo=$ac_try;;
8320 +esac
8321 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8322 + (eval "$ac_link") 2>conftest.er1
8323 ac_status=$?
8324 grep -v '^ *+' conftest.er1 >conftest.err
8325 rm -f conftest.er1
8326 cat conftest.err >&5
8327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8328 - (exit $ac_status); } &&
8329 - { ac_try='test -z "$ac_c_werror_flag"
8330 - || test ! -s conftest.err'
8331 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8332 - (eval $ac_try) 2>&5
8333 - ac_status=$?
8334 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
8335 - (exit $ac_status); }; } &&
8336 - { ac_try='test -s conftest$ac_exeext'
8337 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8338 - (eval $ac_try) 2>&5
8339 - ac_status=$?
8340 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
8341 - (exit $ac_status); }; }; then
8342 + (exit $ac_status); } && {
8343 + test -z "$ac_c_werror_flag" ||
8344 + test ! -s conftest.err
8345 + } && test -s conftest$ac_exeext &&
8346 + $as_test_x conftest$ac_exeext; then
8347 gt_cv_func_gettext_libc=yes
8348 else
8349 echo "$as_me: failed program was:" >&5
8350 sed 's/^/| /' conftest.$ac_ext >&5
8351
8352 -gt_cv_func_gettext_libc=no
8353 + gt_cv_func_gettext_libc=no
8354 fi
8355 -rm -f conftest.err conftest.$ac_objext \
8356 +
8357 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8358 conftest$ac_exeext conftest.$ac_ext
8359 fi
8360 -echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libc" >&5
8361 -echo "${ECHO_T}$gt_cv_func_gettext_libc" >&6
8362 +{ echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libc" >&5
8363 +echo "${ECHO_T}$gt_cv_func_gettext_libc" >&6; }
8364
8365 if test "$gt_cv_func_gettext_libc" != "yes"; then
8366 - echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
8367 -echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6
8368 + { echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
8369 +echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6; }
8370 if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
8371 echo $ECHO_N "(cached) $ECHO_C" >&6
8372 else
8373 @@ -7630,59 +8262,56 @@ cat confdefs.h >>conftest.$ac_ext
8374 cat >>conftest.$ac_ext <<_ACEOF
8375 /* end confdefs.h. */
8376
8377 -/* Override any gcc2 internal prototype to avoid an error. */
8378 +/* Override any GCC internal prototype to avoid an error.
8379 + Use char because int might match the return type of a GCC
8380 + builtin and then its argument prototype would still apply. */
8381 #ifdef __cplusplus
8382 extern "C"
8383 #endif
8384 -/* We use char because int might match the return type of a gcc2
8385 - builtin and then its argument prototype would still apply. */
8386 char bindtextdomain ();
8387 int
8388 main ()
8389 {
8390 -bindtextdomain ();
8391 +return bindtextdomain ();
8392 ;
8393 return 0;
8394 }
8395 _ACEOF
8396 rm -f conftest.$ac_objext conftest$ac_exeext
8397 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8398 - (eval $ac_link) 2>conftest.er1
8399 +if { (ac_try="$ac_link"
8400 +case "(($ac_try" in
8401 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8402 + *) ac_try_echo=$ac_try;;
8403 +esac
8404 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8405 + (eval "$ac_link") 2>conftest.er1
8406 ac_status=$?
8407 grep -v '^ *+' conftest.er1 >conftest.err
8408 rm -f conftest.er1
8409 cat conftest.err >&5
8410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8411 - (exit $ac_status); } &&
8412 - { ac_try='test -z "$ac_c_werror_flag"
8413 - || test ! -s conftest.err'
8414 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8415 - (eval $ac_try) 2>&5
8416 - ac_status=$?
8417 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
8418 - (exit $ac_status); }; } &&
8419 - { ac_try='test -s conftest$ac_exeext'
8420 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8421 - (eval $ac_try) 2>&5
8422 - ac_status=$?
8423 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
8424 - (exit $ac_status); }; }; then
8425 + (exit $ac_status); } && {
8426 + test -z "$ac_c_werror_flag" ||
8427 + test ! -s conftest.err
8428 + } && test -s conftest$ac_exeext &&
8429 + $as_test_x conftest$ac_exeext; then
8430 ac_cv_lib_intl_bindtextdomain=yes
8431 else
8432 echo "$as_me: failed program was:" >&5
8433 sed 's/^/| /' conftest.$ac_ext >&5
8434
8435 -ac_cv_lib_intl_bindtextdomain=no
8436 + ac_cv_lib_intl_bindtextdomain=no
8437 fi
8438 -rm -f conftest.err conftest.$ac_objext \
8439 +
8440 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8441 conftest$ac_exeext conftest.$ac_ext
8442 LIBS=$ac_check_lib_save_LIBS
8443 fi
8444 -echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
8445 -echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6
8446 +{ echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
8447 +echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6; }
8448 if test $ac_cv_lib_intl_bindtextdomain = yes; then
8449 - echo "$as_me:$LINENO: checking for gettext in libintl" >&5
8450 -echo $ECHO_N "checking for gettext in libintl... $ECHO_C" >&6
8451 + { echo "$as_me:$LINENO: checking for gettext in libintl" >&5
8452 +echo $ECHO_N "checking for gettext in libintl... $ECHO_C" >&6; }
8453 if test "${gt_cv_func_gettext_libintl+set}" = set; then
8454 echo $ECHO_N "(cached) $ECHO_C" >&6
8455 else
8456 @@ -7702,39 +8331,36 @@ return (int) gettext ("")
8457 }
8458 _ACEOF
8459 rm -f conftest.$ac_objext conftest$ac_exeext
8460 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8461 - (eval $ac_link) 2>conftest.er1
8462 +if { (ac_try="$ac_link"
8463 +case "(($ac_try" in
8464 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8465 + *) ac_try_echo=$ac_try;;
8466 +esac
8467 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8468 + (eval "$ac_link") 2>conftest.er1
8469 ac_status=$?
8470 grep -v '^ *+' conftest.er1 >conftest.err
8471 rm -f conftest.er1
8472 cat conftest.err >&5
8473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8474 - (exit $ac_status); } &&
8475 - { ac_try='test -z "$ac_c_werror_flag"
8476 - || test ! -s conftest.err'
8477 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8478 - (eval $ac_try) 2>&5
8479 - ac_status=$?
8480 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
8481 - (exit $ac_status); }; } &&
8482 - { ac_try='test -s conftest$ac_exeext'
8483 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8484 - (eval $ac_try) 2>&5
8485 - ac_status=$?
8486 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
8487 - (exit $ac_status); }; }; then
8488 + (exit $ac_status); } && {
8489 + test -z "$ac_c_werror_flag" ||
8490 + test ! -s conftest.err
8491 + } && test -s conftest$ac_exeext &&
8492 + $as_test_x conftest$ac_exeext; then
8493 gt_cv_func_gettext_libintl=yes
8494 else
8495 echo "$as_me: failed program was:" >&5
8496 sed 's/^/| /' conftest.$ac_ext >&5
8497
8498 -gt_cv_func_gettext_libintl=no
8499 + gt_cv_func_gettext_libintl=no
8500 fi
8501 -rm -f conftest.err conftest.$ac_objext \
8502 +
8503 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8504 conftest$ac_exeext conftest.$ac_ext
8505 fi
8506 -echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libintl" >&5
8507 -echo "${ECHO_T}$gt_cv_func_gettext_libintl" >&6
8508 +{ echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libintl" >&5
8509 +echo "${ECHO_T}$gt_cv_func_gettext_libintl" >&6; }
8510 fi
8511
8512 fi
8513 @@ -7748,8 +8374,8 @@ _ACEOF
8514
8515 # Extract the first word of "msgfmt", so it can be a program name with args.
8516 set dummy msgfmt; ac_word=$2
8517 -echo "$as_me:$LINENO: checking for $ac_word" >&5
8518 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8519 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8520 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8521 if test "${ac_cv_path_MSGFMT+set}" = set; then
8522 echo $ECHO_N "(cached) $ECHO_C" >&6
8523 else
8524 @@ -7775,20 +8401,20 @@ esac
8525 fi
8526 MSGFMT="$ac_cv_path_MSGFMT"
8527 if test -n "$MSGFMT"; then
8528 - echo "$as_me:$LINENO: result: $MSGFMT" >&5
8529 -echo "${ECHO_T}$MSGFMT" >&6
8530 + { echo "$as_me:$LINENO: result: $MSGFMT" >&5
8531 +echo "${ECHO_T}$MSGFMT" >&6; }
8532 else
8533 - echo "$as_me:$LINENO: result: no" >&5
8534 -echo "${ECHO_T}no" >&6
8535 + { echo "$as_me:$LINENO: result: no" >&5
8536 +echo "${ECHO_T}no" >&6; }
8537 fi
8538 if test "$MSGFMT" != "no"; then
8539
8540 for ac_func in dcgettext
8541 do
8542 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8543 -echo "$as_me:$LINENO: checking for $ac_func" >&5
8544 -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8545 -if eval "test \"\${$as_ac_var+set}\" = set"; then
8546 +{ echo "$as_me:$LINENO: checking for $ac_func" >&5
8547 +echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8548 +if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8549 echo $ECHO_N "(cached) $ECHO_C" >&6
8550 else
8551 cat >conftest.$ac_ext <<_ACEOF
8552 @@ -7814,68 +8440,60 @@ cat >>conftest.$ac_ext <<_ACEOF
8553
8554 #undef $ac_func
8555
8556 -/* Override any gcc2 internal prototype to avoid an error. */
8557 +/* Override any GCC internal prototype to avoid an error.
8558 + Use char because int might match the return type of a GCC
8559 + builtin and then its argument prototype would still apply. */
8560 #ifdef __cplusplus
8561 extern "C"
8562 -{
8563 #endif
8564 -/* We use char because int might match the return type of a gcc2
8565 - builtin and then its argument prototype would still apply. */
8566 char $ac_func ();
8567 /* The GNU C library defines this for functions which it implements
8568 to always fail with ENOSYS. Some functions are actually named
8569 something starting with __ and the normal name is an alias. */
8570 -#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8571 +#if defined __stub_$ac_func || defined __stub___$ac_func
8572 choke me
8573 -#else
8574 -char (*f) () = $ac_func;
8575 -#endif
8576 -#ifdef __cplusplus
8577 -}
8578 #endif
8579
8580 int
8581 main ()
8582 {
8583 -return f != $ac_func;
8584 +return $ac_func ();
8585 ;
8586 return 0;
8587 }
8588 _ACEOF
8589 rm -f conftest.$ac_objext conftest$ac_exeext
8590 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8591 - (eval $ac_link) 2>conftest.er1
8592 +if { (ac_try="$ac_link"
8593 +case "(($ac_try" in
8594 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8595 + *) ac_try_echo=$ac_try;;
8596 +esac
8597 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8598 + (eval "$ac_link") 2>conftest.er1
8599 ac_status=$?
8600 grep -v '^ *+' conftest.er1 >conftest.err
8601 rm -f conftest.er1
8602 cat conftest.err >&5
8603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8604 - (exit $ac_status); } &&
8605 - { ac_try='test -z "$ac_c_werror_flag"
8606 - || test ! -s conftest.err'
8607 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8608 - (eval $ac_try) 2>&5
8609 - ac_status=$?
8610 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
8611 - (exit $ac_status); }; } &&
8612 - { ac_try='test -s conftest$ac_exeext'
8613 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8614 - (eval $ac_try) 2>&5
8615 - ac_status=$?
8616 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
8617 - (exit $ac_status); }; }; then
8618 + (exit $ac_status); } && {
8619 + test -z "$ac_c_werror_flag" ||
8620 + test ! -s conftest.err
8621 + } && test -s conftest$ac_exeext &&
8622 + $as_test_x conftest$ac_exeext; then
8623 eval "$as_ac_var=yes"
8624 else
8625 echo "$as_me: failed program was:" >&5
8626 sed 's/^/| /' conftest.$ac_ext >&5
8627
8628 -eval "$as_ac_var=no"
8629 + eval "$as_ac_var=no"
8630 fi
8631 -rm -f conftest.err conftest.$ac_objext \
8632 +
8633 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8634 conftest$ac_exeext conftest.$ac_ext
8635 fi
8636 -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8637 -echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8638 +ac_res=`eval echo '${'$as_ac_var'}'`
8639 + { echo "$as_me:$LINENO: result: $ac_res" >&5
8640 +echo "${ECHO_T}$ac_res" >&6; }
8641 if test `eval echo '${'$as_ac_var'}'` = yes; then
8642 cat >>confdefs.h <<_ACEOF
8643 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8644 @@ -7886,8 +8504,8 @@ done
8645
8646 # Extract the first word of "gmsgfmt", so it can be a program name with args.
8647 set dummy gmsgfmt; ac_word=$2
8648 -echo "$as_me:$LINENO: checking for $ac_word" >&5
8649 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8650 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8651 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8652 if test "${ac_cv_path_GMSGFMT+set}" = set; then
8653 echo $ECHO_N "(cached) $ECHO_C" >&6
8654 else
8655 @@ -7902,32 +8520,33 @@ do
8656 IFS=$as_save_IFS
8657 test -z "$as_dir" && as_dir=.
8658 for ac_exec_ext in '' $ac_executable_extensions; do
8659 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8660 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8661 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
8662 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8663 break 2
8664 fi
8665 done
8666 done
8667 +IFS=$as_save_IFS
8668
8669 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
8670 ;;
8671 esac
8672 fi
8673 GMSGFMT=$ac_cv_path_GMSGFMT
8674 -
8675 if test -n "$GMSGFMT"; then
8676 - echo "$as_me:$LINENO: result: $GMSGFMT" >&5
8677 -echo "${ECHO_T}$GMSGFMT" >&6
8678 + { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
8679 +echo "${ECHO_T}$GMSGFMT" >&6; }
8680 else
8681 - echo "$as_me:$LINENO: result: no" >&5
8682 -echo "${ECHO_T}no" >&6
8683 + { echo "$as_me:$LINENO: result: no" >&5
8684 +echo "${ECHO_T}no" >&6; }
8685 fi
8686
8687 +
8688 # Extract the first word of "xgettext", so it can be a program name with args.
8689 set dummy xgettext; ac_word=$2
8690 -echo "$as_me:$LINENO: checking for $ac_word" >&5
8691 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8692 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8693 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8694 if test "${ac_cv_path_XGETTEXT+set}" = set; then
8695 echo $ECHO_N "(cached) $ECHO_C" >&6
8696 else
8697 @@ -7953,11 +8572,11 @@ esac
8698 fi
8699 XGETTEXT="$ac_cv_path_XGETTEXT"
8700 if test -n "$XGETTEXT"; then
8701 - echo "$as_me:$LINENO: result: $XGETTEXT" >&5
8702 -echo "${ECHO_T}$XGETTEXT" >&6
8703 + { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
8704 +echo "${ECHO_T}$XGETTEXT" >&6; }
8705 else
8706 - echo "$as_me:$LINENO: result: no" >&5
8707 -echo "${ECHO_T}no" >&6
8708 + { echo "$as_me:$LINENO: result: no" >&5
8709 +echo "${ECHO_T}no" >&6; }
8710 fi
8711
8712 cat >conftest.$ac_ext <<_ACEOF
8713 @@ -7977,37 +8596,34 @@ extern int _nl_msg_cat_cntr;
8714 }
8715 _ACEOF
8716 rm -f conftest.$ac_objext conftest$ac_exeext
8717 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8718 - (eval $ac_link) 2>conftest.er1
8719 +if { (ac_try="$ac_link"
8720 +case "(($ac_try" in
8721 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8722 + *) ac_try_echo=$ac_try;;
8723 +esac
8724 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8725 + (eval "$ac_link") 2>conftest.er1
8726 ac_status=$?
8727 grep -v '^ *+' conftest.er1 >conftest.err
8728 rm -f conftest.er1
8729 cat conftest.err >&5
8730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8731 - (exit $ac_status); } &&
8732 - { ac_try='test -z "$ac_c_werror_flag"
8733 - || test ! -s conftest.err'
8734 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8735 - (eval $ac_try) 2>&5
8736 - ac_status=$?
8737 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
8738 - (exit $ac_status); }; } &&
8739 - { ac_try='test -s conftest$ac_exeext'
8740 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8741 - (eval $ac_try) 2>&5
8742 - ac_status=$?
8743 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
8744 - (exit $ac_status); }; }; then
8745 + (exit $ac_status); } && {
8746 + test -z "$ac_c_werror_flag" ||
8747 + test ! -s conftest.err
8748 + } && test -s conftest$ac_exeext &&
8749 + $as_test_x conftest$ac_exeext; then
8750 CATOBJEXT=.gmo
8751 DATADIRNAME=share
8752 else
8753 echo "$as_me: failed program was:" >&5
8754 sed 's/^/| /' conftest.$ac_ext >&5
8755
8756 -CATOBJEXT=.mo
8757 + CATOBJEXT=.mo
8758 DATADIRNAME=lib
8759 fi
8760 -rm -f conftest.err conftest.$ac_objext \
8761 +
8762 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8763 conftest$ac_exeext conftest.$ac_ext
8764 INSTOBJEXT=.mo
8765 fi
8766 @@ -8029,8 +8645,8 @@ fi
8767 INTLOBJS="\$(GETTOBJS)"
8768 # Extract the first word of "msgfmt", so it can be a program name with args.
8769 set dummy msgfmt; ac_word=$2
8770 -echo "$as_me:$LINENO: checking for $ac_word" >&5
8771 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8772 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8773 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8774 if test "${ac_cv_path_MSGFMT+set}" = set; then
8775 echo $ECHO_N "(cached) $ECHO_C" >&6
8776 else
8777 @@ -8056,17 +8672,17 @@ esac
8778 fi
8779 MSGFMT="$ac_cv_path_MSGFMT"
8780 if test -n "$MSGFMT"; then
8781 - echo "$as_me:$LINENO: result: $MSGFMT" >&5
8782 -echo "${ECHO_T}$MSGFMT" >&6
8783 + { echo "$as_me:$LINENO: result: $MSGFMT" >&5
8784 +echo "${ECHO_T}$MSGFMT" >&6; }
8785 else
8786 - echo "$as_me:$LINENO: result: no" >&5
8787 -echo "${ECHO_T}no" >&6
8788 + { echo "$as_me:$LINENO: result: no" >&5
8789 +echo "${ECHO_T}no" >&6; }
8790 fi
8791
8792 # Extract the first word of "gmsgfmt", so it can be a program name with args.
8793 set dummy gmsgfmt; ac_word=$2
8794 -echo "$as_me:$LINENO: checking for $ac_word" >&5
8795 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8796 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8797 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8798 if test "${ac_cv_path_GMSGFMT+set}" = set; then
8799 echo $ECHO_N "(cached) $ECHO_C" >&6
8800 else
8801 @@ -8081,32 +8697,33 @@ do
8802 IFS=$as_save_IFS
8803 test -z "$as_dir" && as_dir=.
8804 for ac_exec_ext in '' $ac_executable_extensions; do
8805 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8806 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8807 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
8808 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8809 break 2
8810 fi
8811 done
8812 done
8813 +IFS=$as_save_IFS
8814
8815 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
8816 ;;
8817 esac
8818 fi
8819 GMSGFMT=$ac_cv_path_GMSGFMT
8820 -
8821 if test -n "$GMSGFMT"; then
8822 - echo "$as_me:$LINENO: result: $GMSGFMT" >&5
8823 -echo "${ECHO_T}$GMSGFMT" >&6
8824 + { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
8825 +echo "${ECHO_T}$GMSGFMT" >&6; }
8826 else
8827 - echo "$as_me:$LINENO: result: no" >&5
8828 -echo "${ECHO_T}no" >&6
8829 + { echo "$as_me:$LINENO: result: no" >&5
8830 +echo "${ECHO_T}no" >&6; }
8831 fi
8832
8833 +
8834 # Extract the first word of "xgettext", so it can be a program name with args.
8835 set dummy xgettext; ac_word=$2
8836 -echo "$as_me:$LINENO: checking for $ac_word" >&5
8837 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8838 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8839 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8840 if test "${ac_cv_path_XGETTEXT+set}" = set; then
8841 echo $ECHO_N "(cached) $ECHO_C" >&6
8842 else
8843 @@ -8132,11 +8749,11 @@ esac
8844 fi
8845 XGETTEXT="$ac_cv_path_XGETTEXT"
8846 if test -n "$XGETTEXT"; then
8847 - echo "$as_me:$LINENO: result: $XGETTEXT" >&5
8848 -echo "${ECHO_T}$XGETTEXT" >&6
8849 + { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
8850 +echo "${ECHO_T}$XGETTEXT" >&6; }
8851 else
8852 - echo "$as_me:$LINENO: result: no" >&5
8853 -echo "${ECHO_T}no" >&6
8854 + { echo "$as_me:$LINENO: result: no" >&5
8855 +echo "${ECHO_T}no" >&6; }
8856 fi
8857
8858
8859 @@ -8155,8 +8772,8 @@ fi
8860 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
8861 : ;
8862 else
8863 - echo "$as_me:$LINENO: result: found xgettext programs is not GNU xgettext; ignore it" >&5
8864 -echo "${ECHO_T}found xgettext programs is not GNU xgettext; ignore it" >&6
8865 + { echo "$as_me:$LINENO: result: found xgettext programs is not GNU xgettext; ignore it" >&5
8866 +echo "${ECHO_T}found xgettext programs is not GNU xgettext; ignore it" >&6; }
8867 XGETTEXT=":"
8868 fi
8869 fi
8870 @@ -8205,8 +8822,8 @@ _ACEOF
8871 if test "x$ALL_LINGUAS" = "x"; then
8872 LINGUAS=
8873 else
8874 - echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
8875 -echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
8876 + { echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
8877 +echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6; }
8878 NEW_LINGUAS=
8879 for lang in ${LINGUAS=$ALL_LINGUAS}; do
8880 case "$ALL_LINGUAS" in
8881 @@ -8214,8 +8831,8 @@ echo $ECHO_N "checking for catalogs to b
8882 esac
8883 done
8884 LINGUAS=$NEW_LINGUAS
8885 - echo "$as_me:$LINENO: result: $LINGUAS" >&5
8886 -echo "${ECHO_T}$LINGUAS" >&6
8887 + { echo "$as_me:$LINENO: result: $LINGUAS" >&5
8888 +echo "${ECHO_T}$LINGUAS" >&6; }
8889 fi
8890
8891 if test -n "$LINGUAS"; then
8892 @@ -8234,17 +8851,17 @@ echo "${ECHO_T}$LINGUAS" >&6
8893 if test -f $srcdir/po2tbl.sed.in; then
8894 if test "$CATOBJEXT" = ".cat"; then
8895 if test "${ac_cv_header_linux_version_h+set}" = set; then
8896 - echo "$as_me:$LINENO: checking for linux/version.h" >&5
8897 -echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
8898 + { echo "$as_me:$LINENO: checking for linux/version.h" >&5
8899 +echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6; }
8900 if test "${ac_cv_header_linux_version_h+set}" = set; then
8901 echo $ECHO_N "(cached) $ECHO_C" >&6
8902 fi
8903 -echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
8904 -echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
8905 +{ echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
8906 +echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6; }
8907 else
8908 # Is the header compilable?
8909 -echo "$as_me:$LINENO: checking linux/version.h usability" >&5
8910 -echo $ECHO_N "checking linux/version.h usability... $ECHO_C" >&6
8911 +{ echo "$as_me:$LINENO: checking linux/version.h usability" >&5
8912 +echo $ECHO_N "checking linux/version.h usability... $ECHO_C" >&6; }
8913 cat >conftest.$ac_ext <<_ACEOF
8914 /* confdefs.h. */
8915 _ACEOF
8916 @@ -8255,41 +8872,37 @@ $ac_includes_default
8917 #include <linux/version.h>
8918 _ACEOF
8919 rm -f conftest.$ac_objext
8920 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8921 - (eval $ac_compile) 2>conftest.er1
8922 +if { (ac_try="$ac_compile"
8923 +case "(($ac_try" in
8924 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8925 + *) ac_try_echo=$ac_try;;
8926 +esac
8927 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8928 + (eval "$ac_compile") 2>conftest.er1
8929 ac_status=$?
8930 grep -v '^ *+' conftest.er1 >conftest.err
8931 rm -f conftest.er1
8932 cat conftest.err >&5
8933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8934 - (exit $ac_status); } &&
8935 - { ac_try='test -z "$ac_c_werror_flag"
8936 - || test ! -s conftest.err'
8937 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8938 - (eval $ac_try) 2>&5
8939 - ac_status=$?
8940 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
8941 - (exit $ac_status); }; } &&
8942 - { ac_try='test -s conftest.$ac_objext'
8943 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8944 - (eval $ac_try) 2>&5
8945 - ac_status=$?
8946 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
8947 - (exit $ac_status); }; }; then
8948 + (exit $ac_status); } && {
8949 + test -z "$ac_c_werror_flag" ||
8950 + test ! -s conftest.err
8951 + } && test -s conftest.$ac_objext; then
8952 ac_header_compiler=yes
8953 else
8954 echo "$as_me: failed program was:" >&5
8955 sed 's/^/| /' conftest.$ac_ext >&5
8956
8957 -ac_header_compiler=no
8958 + ac_header_compiler=no
8959 fi
8960 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8961 -echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8962 -echo "${ECHO_T}$ac_header_compiler" >&6
8963 +
8964 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8965 +{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8966 +echo "${ECHO_T}$ac_header_compiler" >&6; }
8967
8968 # Is the header present?
8969 -echo "$as_me:$LINENO: checking linux/version.h presence" >&5
8970 -echo $ECHO_N "checking linux/version.h presence... $ECHO_C" >&6
8971 +{ echo "$as_me:$LINENO: checking linux/version.h presence" >&5
8972 +echo $ECHO_N "checking linux/version.h presence... $ECHO_C" >&6; }
8973 cat >conftest.$ac_ext <<_ACEOF
8974 /* confdefs.h. */
8975 _ACEOF
8976 @@ -8298,24 +8911,22 @@ cat >>conftest.$ac_ext <<_ACEOF
8977 /* end confdefs.h. */
8978 #include <linux/version.h>
8979 _ACEOF
8980 -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8981 - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8982 +if { (ac_try="$ac_cpp conftest.$ac_ext"
8983 +case "(($ac_try" in
8984 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8985 + *) ac_try_echo=$ac_try;;
8986 +esac
8987 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8988 + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8989 ac_status=$?
8990 grep -v '^ *+' conftest.er1 >conftest.err
8991 rm -f conftest.er1
8992 cat conftest.err >&5
8993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8994 - (exit $ac_status); } >/dev/null; then
8995 - if test -s conftest.err; then
8996 - ac_cpp_err=$ac_c_preproc_warn_flag
8997 - ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8998 - else
8999 - ac_cpp_err=
9000 - fi
9001 -else
9002 - ac_cpp_err=yes
9003 -fi
9004 -if test -z "$ac_cpp_err"; then
9005 + (exit $ac_status); } >/dev/null && {
9006 + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9007 + test ! -s conftest.err
9008 + }; then
9009 ac_header_preproc=yes
9010 else
9011 echo "$as_me: failed program was:" >&5
9012 @@ -8323,9 +8934,10 @@ sed 's/^/| /' conftest.$ac_ext >&5
9013
9014 ac_header_preproc=no
9015 fi
9016 +
9017 rm -f conftest.err conftest.$ac_ext
9018 -echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9019 -echo "${ECHO_T}$ac_header_preproc" >&6
9020 +{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9021 +echo "${ECHO_T}$ac_header_preproc" >&6; }
9022
9023 # So? What about this header?
9024 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9025 @@ -8349,25 +8961,18 @@ echo "$as_me: WARNING: linux/version.h:
9026 echo "$as_me: WARNING: linux/version.h: proceeding with the preprocessor's result" >&2;}
9027 { echo "$as_me:$LINENO: WARNING: linux/version.h: in the future, the compiler will take precedence" >&5
9028 echo "$as_me: WARNING: linux/version.h: in the future, the compiler will take precedence" >&2;}
9029 - (
9030 - cat <<\_ASBOX
9031 -## ------------------------------------------ ##
9032 -## Report this to the AC_PACKAGE_NAME lists. ##
9033 -## ------------------------------------------ ##
9034 -_ASBOX
9035 - ) |
9036 - sed "s/^/$as_me: WARNING: /" >&2
9037 +
9038 ;;
9039 esac
9040 -echo "$as_me:$LINENO: checking for linux/version.h" >&5
9041 -echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
9042 +{ echo "$as_me:$LINENO: checking for linux/version.h" >&5
9043 +echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6; }
9044 if test "${ac_cv_header_linux_version_h+set}" = set; then
9045 echo $ECHO_N "(cached) $ECHO_C" >&6
9046 else
9047 ac_cv_header_linux_version_h=$ac_header_preproc
9048 fi
9049 -echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
9050 -echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
9051 +{ echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
9052 +echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6; }
9053
9054 fi
9055 if test $ac_cv_header_linux_version_h = yes; then
9056 @@ -8434,8 +9039,8 @@ fi
9057 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
9058 # OS/2's system install, which has a completely different semantic
9059 # ./install, which can be erroneously created by make from ./install.sh.
9060 -echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
9061 -echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
9062 +{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
9063 +echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
9064 if test -z "$INSTALL"; then
9065 if test "${ac_cv_path_install+set}" = set; then
9066 echo $ECHO_N "(cached) $ECHO_C" >&6
9067 @@ -8457,7 +9062,7 @@ case $as_dir/ in
9068 # by default.
9069 for ac_prog in ginstall scoinst install; do
9070 for ac_exec_ext in '' $ac_executable_extensions; do
9071 - if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
9072 + if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
9073 if test $ac_prog = install &&
9074 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
9075 # AIX install. It has an incompatible calling convention.
9076 @@ -8476,21 +9081,22 @@ case $as_dir/ in
9077 ;;
9078 esac
9079 done
9080 +IFS=$as_save_IFS
9081
9082
9083 fi
9084 if test "${ac_cv_path_install+set}" = set; then
9085 INSTALL=$ac_cv_path_install
9086 else
9087 - # As a last resort, use the slow shell script. We don't cache a
9088 - # path for INSTALL within a source directory, because that will
9089 + # As a last resort, use the slow shell script. Don't cache a
9090 + # value for INSTALL within a source directory, because that will
9091 # break other packages using the cache if that directory is
9092 - # removed, or if the path is relative.
9093 + # removed, or if the value is a relative name.
9094 INSTALL=$ac_install_sh
9095 fi
9096 fi
9097 -echo "$as_me:$LINENO: result: $INSTALL" >&5
9098 -echo "${ECHO_T}$INSTALL" >&6
9099 +{ echo "$as_me:$LINENO: result: $INSTALL" >&5
9100 +echo "${ECHO_T}$INSTALL" >&6; }
9101
9102 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
9103 # It thinks the first close brace ends the variable substitution.
9104 @@ -8507,8 +9113,8 @@ BFD_HOST_64_BIT_DEFINED=0
9105 BFD_HOST_64_BIT=
9106 BFD_HOST_U_64_BIT=
9107
9108 -echo "$as_me:$LINENO: checking for long long" >&5
9109 -echo $ECHO_N "checking for long long... $ECHO_C" >&6
9110 +{ echo "$as_me:$LINENO: checking for long long" >&5
9111 +echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
9112 if test "${bfd_cv_has_long_long+set}" = set; then
9113 echo $ECHO_N "(cached) $ECHO_C" >&6
9114 else
9115 @@ -8528,43 +9134,39 @@ unsigned long long ll = 1844674407370955
9116 }
9117 _ACEOF
9118 rm -f conftest.$ac_objext
9119 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9120 - (eval $ac_compile) 2>conftest.er1
9121 +if { (ac_try="$ac_compile"
9122 +case "(($ac_try" in
9123 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9124 + *) ac_try_echo=$ac_try;;
9125 +esac
9126 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9127 + (eval "$ac_compile") 2>conftest.er1
9128 ac_status=$?
9129 grep -v '^ *+' conftest.er1 >conftest.err
9130 rm -f conftest.er1
9131 cat conftest.err >&5
9132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9133 - (exit $ac_status); } &&
9134 - { ac_try='test -z "$ac_c_werror_flag"
9135 - || test ! -s conftest.err'
9136 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9137 - (eval $ac_try) 2>&5
9138 - ac_status=$?
9139 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
9140 - (exit $ac_status); }; } &&
9141 - { ac_try='test -s conftest.$ac_objext'
9142 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9143 - (eval $ac_try) 2>&5
9144 - ac_status=$?
9145 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
9146 - (exit $ac_status); }; }; then
9147 + (exit $ac_status); } && {
9148 + test -z "$ac_c_werror_flag" ||
9149 + test ! -s conftest.err
9150 + } && test -s conftest.$ac_objext; then
9151 bfd_cv_has_long_long=yes
9152 else
9153 echo "$as_me: failed program was:" >&5
9154 sed 's/^/| /' conftest.$ac_ext >&5
9155
9156 -bfd_cv_has_long_long=no
9157 + bfd_cv_has_long_long=no
9158 fi
9159 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9160 +
9161 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9162 fi
9163
9164 -echo "$as_me:$LINENO: result: $bfd_cv_has_long_long" >&5
9165 -echo "${ECHO_T}$bfd_cv_has_long_long" >&6
9166 +{ echo "$as_me:$LINENO: result: $bfd_cv_has_long_long" >&5
9167 +echo "${ECHO_T}$bfd_cv_has_long_long" >&6; }
9168 if test $bfd_cv_has_long_long = yes; then
9169 BFD_HOST_LONG_LONG=1
9170 - echo "$as_me:$LINENO: checking for long long" >&5
9171 -echo $ECHO_N "checking for long long... $ECHO_C" >&6
9172 + { echo "$as_me:$LINENO: checking for long long" >&5
9173 +echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
9174 if test "${ac_cv_type_long_long+set}" = set; then
9175 echo $ECHO_N "(cached) $ECHO_C" >&6
9176 else
9177 @@ -8575,61 +9177,57 @@ cat confdefs.h >>conftest.$ac_ext
9178 cat >>conftest.$ac_ext <<_ACEOF
9179 /* end confdefs.h. */
9180 $ac_includes_default
9181 +typedef long long ac__type_new_;
9182 int
9183 main ()
9184 {
9185 -if ((long long *) 0)
9186 +if ((ac__type_new_ *) 0)
9187 return 0;
9188 -if (sizeof (long long))
9189 +if (sizeof (ac__type_new_))
9190 return 0;
9191 ;
9192 return 0;
9193 }
9194 _ACEOF
9195 rm -f conftest.$ac_objext
9196 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9197 - (eval $ac_compile) 2>conftest.er1
9198 +if { (ac_try="$ac_compile"
9199 +case "(($ac_try" in
9200 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9201 + *) ac_try_echo=$ac_try;;
9202 +esac
9203 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9204 + (eval "$ac_compile") 2>conftest.er1
9205 ac_status=$?
9206 grep -v '^ *+' conftest.er1 >conftest.err
9207 rm -f conftest.er1
9208 cat conftest.err >&5
9209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9210 - (exit $ac_status); } &&
9211 - { ac_try='test -z "$ac_c_werror_flag"
9212 - || test ! -s conftest.err'
9213 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9214 - (eval $ac_try) 2>&5
9215 - ac_status=$?
9216 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
9217 - (exit $ac_status); }; } &&
9218 - { ac_try='test -s conftest.$ac_objext'
9219 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9220 - (eval $ac_try) 2>&5
9221 - ac_status=$?
9222 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
9223 - (exit $ac_status); }; }; then
9224 + (exit $ac_status); } && {
9225 + test -z "$ac_c_werror_flag" ||
9226 + test ! -s conftest.err
9227 + } && test -s conftest.$ac_objext; then
9228 ac_cv_type_long_long=yes
9229 else
9230 echo "$as_me: failed program was:" >&5
9231 sed 's/^/| /' conftest.$ac_ext >&5
9232
9233 -ac_cv_type_long_long=no
9234 + ac_cv_type_long_long=no
9235 fi
9236 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9237 +
9238 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9239 fi
9240 -echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
9241 -echo "${ECHO_T}$ac_cv_type_long_long" >&6
9242 +{ echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
9243 +echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
9244
9245 -echo "$as_me:$LINENO: checking size of long long" >&5
9246 -echo $ECHO_N "checking size of long long... $ECHO_C" >&6
9247 +# The cast to long int works around a bug in the HP C Compiler
9248 +# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9249 +# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9250 +# This bug is HP SR number 8606223364.
9251 +{ echo "$as_me:$LINENO: checking size of long long" >&5
9252 +echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
9253 if test "${ac_cv_sizeof_long_long+set}" = set; then
9254 echo $ECHO_N "(cached) $ECHO_C" >&6
9255 else
9256 - if test "$ac_cv_type_long_long" = yes; then
9257 - # The cast to unsigned long works around a bug in the HP C Compiler
9258 - # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9259 - # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9260 - # This bug is HP SR number 8606223364.
9261 if test "$cross_compiling" = yes; then
9262 # Depending upon the size, compute the lo and hi bounds.
9263 cat >conftest.$ac_ext <<_ACEOF
9264 @@ -8639,10 +9237,11 @@ cat confdefs.h >>conftest.$ac_ext
9265 cat >>conftest.$ac_ext <<_ACEOF
9266 /* end confdefs.h. */
9267 $ac_includes_default
9268 + typedef long long ac__type_sizeof_;
9269 int
9270 main ()
9271 {
9272 -static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
9273 +static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
9274 test_array [0] = 0
9275
9276 ;
9277 @@ -8650,27 +9249,22 @@ test_array [0] = 0
9278 }
9279 _ACEOF
9280 rm -f conftest.$ac_objext
9281 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9282 - (eval $ac_compile) 2>conftest.er1
9283 +if { (ac_try="$ac_compile"
9284 +case "(($ac_try" in
9285 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9286 + *) ac_try_echo=$ac_try;;
9287 +esac
9288 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9289 + (eval "$ac_compile") 2>conftest.er1
9290 ac_status=$?
9291 grep -v '^ *+' conftest.er1 >conftest.err
9292 rm -f conftest.er1
9293 cat conftest.err >&5
9294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9295 - (exit $ac_status); } &&
9296 - { ac_try='test -z "$ac_c_werror_flag"
9297 - || test ! -s conftest.err'
9298 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9299 - (eval $ac_try) 2>&5
9300 - ac_status=$?
9301 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
9302 - (exit $ac_status); }; } &&
9303 - { ac_try='test -s conftest.$ac_objext'
9304 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9305 - (eval $ac_try) 2>&5
9306 - ac_status=$?
9307 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
9308 - (exit $ac_status); }; }; then
9309 + (exit $ac_status); } && {
9310 + test -z "$ac_c_werror_flag" ||
9311 + test ! -s conftest.err
9312 + } && test -s conftest.$ac_objext; then
9313 ac_lo=0 ac_mid=0
9314 while :; do
9315 cat >conftest.$ac_ext <<_ACEOF
9316 @@ -8680,10 +9274,11 @@ cat confdefs.h >>conftest.$ac_ext
9317 cat >>conftest.$ac_ext <<_ACEOF
9318 /* end confdefs.h. */
9319 $ac_includes_default
9320 + typedef long long ac__type_sizeof_;
9321 int
9322 main ()
9323 {
9324 -static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
9325 +static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9326 test_array [0] = 0
9327
9328 ;
9329 @@ -8691,56 +9286,53 @@ test_array [0] = 0
9330 }
9331 _ACEOF
9332 rm -f conftest.$ac_objext
9333 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9334 - (eval $ac_compile) 2>conftest.er1
9335 +if { (ac_try="$ac_compile"
9336 +case "(($ac_try" in
9337 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9338 + *) ac_try_echo=$ac_try;;
9339 +esac
9340 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9341 + (eval "$ac_compile") 2>conftest.er1
9342 ac_status=$?
9343 grep -v '^ *+' conftest.er1 >conftest.err
9344 rm -f conftest.er1
9345 cat conftest.err >&5
9346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9347 - (exit $ac_status); } &&
9348 - { ac_try='test -z "$ac_c_werror_flag"
9349 - || test ! -s conftest.err'
9350 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9351 - (eval $ac_try) 2>&5
9352 - ac_status=$?
9353 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
9354 - (exit $ac_status); }; } &&
9355 - { ac_try='test -s conftest.$ac_objext'
9356 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9357 - (eval $ac_try) 2>&5
9358 - ac_status=$?
9359 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
9360 - (exit $ac_status); }; }; then
9361 + (exit $ac_status); } && {
9362 + test -z "$ac_c_werror_flag" ||
9363 + test ! -s conftest.err
9364 + } && test -s conftest.$ac_objext; then
9365 ac_hi=$ac_mid; break
9366 else
9367 echo "$as_me: failed program was:" >&5
9368 sed 's/^/| /' conftest.$ac_ext >&5
9369
9370 -ac_lo=`expr $ac_mid + 1`
9371 - if test $ac_lo -le $ac_mid; then
9372 - ac_lo= ac_hi=
9373 - break
9374 - fi
9375 - ac_mid=`expr 2 '*' $ac_mid + 1`
9376 + ac_lo=`expr $ac_mid + 1`
9377 + if test $ac_lo -le $ac_mid; then
9378 + ac_lo= ac_hi=
9379 + break
9380 + fi
9381 + ac_mid=`expr 2 '*' $ac_mid + 1`
9382 fi
9383 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9384 +
9385 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9386 done
9387 else
9388 echo "$as_me: failed program was:" >&5
9389 sed 's/^/| /' conftest.$ac_ext >&5
9390
9391 -cat >conftest.$ac_ext <<_ACEOF
9392 + cat >conftest.$ac_ext <<_ACEOF
9393 /* confdefs.h. */
9394 _ACEOF
9395 cat confdefs.h >>conftest.$ac_ext
9396 cat >>conftest.$ac_ext <<_ACEOF
9397 /* end confdefs.h. */
9398 $ac_includes_default
9399 + typedef long long ac__type_sizeof_;
9400 int
9401 main ()
9402 {
9403 -static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
9404 +static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
9405 test_array [0] = 0
9406
9407 ;
9408 @@ -8748,27 +9340,22 @@ test_array [0] = 0
9409 }
9410 _ACEOF
9411 rm -f conftest.$ac_objext
9412 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9413 - (eval $ac_compile) 2>conftest.er1
9414 +if { (ac_try="$ac_compile"
9415 +case "(($ac_try" in
9416 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9417 + *) ac_try_echo=$ac_try;;
9418 +esac
9419 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9420 + (eval "$ac_compile") 2>conftest.er1
9421 ac_status=$?
9422 grep -v '^ *+' conftest.er1 >conftest.err
9423 rm -f conftest.er1
9424 cat conftest.err >&5
9425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9426 - (exit $ac_status); } &&
9427 - { ac_try='test -z "$ac_c_werror_flag"
9428 - || test ! -s conftest.err'
9429 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9430 - (eval $ac_try) 2>&5
9431 - ac_status=$?
9432 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
9433 - (exit $ac_status); }; } &&
9434 - { ac_try='test -s conftest.$ac_objext'
9435 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9436 - (eval $ac_try) 2>&5
9437 - ac_status=$?
9438 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
9439 - (exit $ac_status); }; }; then
9440 + (exit $ac_status); } && {
9441 + test -z "$ac_c_werror_flag" ||
9442 + test ! -s conftest.err
9443 + } && test -s conftest.$ac_objext; then
9444 ac_hi=-1 ac_mid=-1
9445 while :; do
9446 cat >conftest.$ac_ext <<_ACEOF
9447 @@ -8778,10 +9365,11 @@ cat confdefs.h >>conftest.$ac_ext
9448 cat >>conftest.$ac_ext <<_ACEOF
9449 /* end confdefs.h. */
9450 $ac_includes_default
9451 + typedef long long ac__type_sizeof_;
9452 int
9453 main ()
9454 {
9455 -static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
9456 +static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
9457 test_array [0] = 0
9458
9459 ;
9460 @@ -8789,50 +9377,48 @@ test_array [0] = 0
9461 }
9462 _ACEOF
9463 rm -f conftest.$ac_objext
9464 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9465 - (eval $ac_compile) 2>conftest.er1
9466 +if { (ac_try="$ac_compile"
9467 +case "(($ac_try" in
9468 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9469 + *) ac_try_echo=$ac_try;;
9470 +esac
9471 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9472 + (eval "$ac_compile") 2>conftest.er1
9473 ac_status=$?
9474 grep -v '^ *+' conftest.er1 >conftest.err
9475 rm -f conftest.er1
9476 cat conftest.err >&5
9477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9478 - (exit $ac_status); } &&
9479 - { ac_try='test -z "$ac_c_werror_flag"
9480 - || test ! -s conftest.err'
9481 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9482 - (eval $ac_try) 2>&5
9483 - ac_status=$?
9484 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
9485 - (exit $ac_status); }; } &&
9486 - { ac_try='test -s conftest.$ac_objext'
9487 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9488 - (eval $ac_try) 2>&5
9489 - ac_status=$?
9490 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
9491 - (exit $ac_status); }; }; then
9492 + (exit $ac_status); } && {
9493 + test -z "$ac_c_werror_flag" ||
9494 + test ! -s conftest.err
9495 + } && test -s conftest.$ac_objext; then
9496 ac_lo=$ac_mid; break
9497 else
9498 echo "$as_me: failed program was:" >&5
9499 sed 's/^/| /' conftest.$ac_ext >&5
9500
9501 -ac_hi=`expr '(' $ac_mid ')' - 1`
9502 - if test $ac_mid -le $ac_hi; then
9503 - ac_lo= ac_hi=
9504 - break
9505 - fi
9506 - ac_mid=`expr 2 '*' $ac_mid`
9507 + ac_hi=`expr '(' $ac_mid ')' - 1`
9508 + if test $ac_mid -le $ac_hi; then
9509 + ac_lo= ac_hi=
9510 + break
9511 + fi
9512 + ac_mid=`expr 2 '*' $ac_mid`
9513 fi
9514 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9515 +
9516 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9517 done
9518 else
9519 echo "$as_me: failed program was:" >&5
9520 sed 's/^/| /' conftest.$ac_ext >&5
9521
9522 -ac_lo= ac_hi=
9523 + ac_lo= ac_hi=
9524 fi
9525 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9526 +
9527 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9528 fi
9529 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9530 +
9531 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9532 # Binary search between lo and hi bounds.
9533 while test "x$ac_lo" != "x$ac_hi"; do
9534 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9535 @@ -8843,10 +9429,11 @@ cat confdefs.h >>conftest.$ac_ext
9536 cat >>conftest.$ac_ext <<_ACEOF
9537 /* end confdefs.h. */
9538 $ac_includes_default
9539 + typedef long long ac__type_sizeof_;
9540 int
9541 main ()
9542 {
9543 -static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
9544 +static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9545 test_array [0] = 0
9546
9547 ;
9548 @@ -8854,52 +9441,45 @@ test_array [0] = 0
9549 }
9550 _ACEOF
9551 rm -f conftest.$ac_objext
9552 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9553 - (eval $ac_compile) 2>conftest.er1
9554 +if { (ac_try="$ac_compile"
9555 +case "(($ac_try" in
9556 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9557 + *) ac_try_echo=$ac_try;;
9558 +esac
9559 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9560 + (eval "$ac_compile") 2>conftest.er1
9561 ac_status=$?
9562 grep -v '^ *+' conftest.er1 >conftest.err
9563 rm -f conftest.er1
9564 cat conftest.err >&5
9565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9566 - (exit $ac_status); } &&
9567 - { ac_try='test -z "$ac_c_werror_flag"
9568 - || test ! -s conftest.err'
9569 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9570 - (eval $ac_try) 2>&5
9571 - ac_status=$?
9572 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
9573 - (exit $ac_status); }; } &&
9574 - { ac_try='test -s conftest.$ac_objext'
9575 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9576 - (eval $ac_try) 2>&5
9577 - ac_status=$?
9578 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
9579 - (exit $ac_status); }; }; then
9580 + (exit $ac_status); } && {
9581 + test -z "$ac_c_werror_flag" ||
9582 + test ! -s conftest.err
9583 + } && test -s conftest.$ac_objext; then
9584 ac_hi=$ac_mid
9585 else
9586 echo "$as_me: failed program was:" >&5
9587 sed 's/^/| /' conftest.$ac_ext >&5
9588
9589 -ac_lo=`expr '(' $ac_mid ')' + 1`
9590 + ac_lo=`expr '(' $ac_mid ')' + 1`
9591 fi
9592 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9593 +
9594 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9595 done
9596 case $ac_lo in
9597 ?*) ac_cv_sizeof_long_long=$ac_lo;;
9598 -'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
9599 +'') if test "$ac_cv_type_long_long" = yes; then
9600 + { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
9601 See \`config.log' for more details." >&5
9602 -echo "$as_me: error: cannot compute sizeof (long long), 77
9603 +echo "$as_me: error: cannot compute sizeof (long long)
9604 See \`config.log' for more details." >&2;}
9605 - { (exit 1); exit 1; }; } ;;
9606 + { (exit 77); exit 77; }; }
9607 + else
9608 + ac_cv_sizeof_long_long=0
9609 + fi ;;
9610 esac
9611 else
9612 - if test "$cross_compiling" = yes; then
9613 - { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9614 -See \`config.log' for more details." >&5
9615 -echo "$as_me: error: cannot run test program while cross compiling
9616 -See \`config.log' for more details." >&2;}
9617 - { (exit 1); exit 1; }; }
9618 -else
9619 cat >conftest.$ac_ext <<_ACEOF
9620 /* confdefs.h. */
9621 _ACEOF
9622 @@ -8907,8 +9487,9 @@ cat confdefs.h >>conftest.$ac_ext
9623 cat >>conftest.$ac_ext <<_ACEOF
9624 /* end confdefs.h. */
9625 $ac_includes_default
9626 -long longval () { return (long) (sizeof (long long)); }
9627 -unsigned long ulongval () { return (long) (sizeof (long long)); }
9628 + typedef long long ac__type_sizeof_;
9629 +static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
9630 +static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
9631 #include <stdio.h>
9632 #include <stdlib.h>
9633 int
9634 @@ -8917,35 +9498,44 @@ main ()
9635
9636 FILE *f = fopen ("conftest.val", "w");
9637 if (! f)
9638 - exit (1);
9639 - if (((long) (sizeof (long long))) < 0)
9640 + return 1;
9641 + if (((long int) (sizeof (ac__type_sizeof_))) < 0)
9642 {
9643 - long i = longval ();
9644 - if (i != ((long) (sizeof (long long))))
9645 - exit (1);
9646 + long int i = longval ();
9647 + if (i != ((long int) (sizeof (ac__type_sizeof_))))
9648 + return 1;
9649 fprintf (f, "%ld\n", i);
9650 }
9651 else
9652 {
9653 - unsigned long i = ulongval ();
9654 - if (i != ((long) (sizeof (long long))))
9655 - exit (1);
9656 + unsigned long int i = ulongval ();
9657 + if (i != ((long int) (sizeof (ac__type_sizeof_))))
9658 + return 1;
9659 fprintf (f, "%lu\n", i);
9660 }
9661 - exit (ferror (f) || fclose (f) != 0);
9662 + return ferror (f) || fclose (f) != 0;
9663
9664 ;
9665 return 0;
9666 }
9667 _ACEOF
9668 rm -f conftest$ac_exeext
9669 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9670 - (eval $ac_link) 2>&5
9671 +if { (ac_try="$ac_link"
9672 +case "(($ac_try" in
9673 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9674 + *) ac_try_echo=$ac_try;;
9675 +esac
9676 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9677 + (eval "$ac_link") 2>&5
9678 ac_status=$?
9679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9680 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9681 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9682 - (eval $ac_try) 2>&5
9683 + { (case "(($ac_try" in
9684 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9685 + *) ac_try_echo=$ac_try;;
9686 +esac
9687 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9688 + (eval "$ac_try") 2>&5
9689 ac_status=$?
9690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9691 (exit $ac_status); }; }; then
9692 @@ -8956,22 +9546,25 @@ echo "$as_me: failed program was:" >&5
9693 sed 's/^/| /' conftest.$ac_ext >&5
9694
9695 ( exit $ac_status )
9696 -{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
9697 +if test "$ac_cv_type_long_long" = yes; then
9698 + { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
9699 See \`config.log' for more details." >&5
9700 -echo "$as_me: error: cannot compute sizeof (long long), 77
9701 +echo "$as_me: error: cannot compute sizeof (long long)
9702 See \`config.log' for more details." >&2;}
9703 - { (exit 1); exit 1; }; }
9704 -fi
9705 -rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9706 + { (exit 77); exit 77; }; }
9707 + else
9708 + ac_cv_sizeof_long_long=0
9709 + fi
9710 fi
9711 +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9712 fi
9713 rm -f conftest.val
9714 -else
9715 - ac_cv_sizeof_long_long=0
9716 -fi
9717 fi
9718 -echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
9719 -echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
9720 +{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
9721 +echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
9722 +
9723 +
9724 +
9725 cat >>confdefs.h <<_ACEOF
9726 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
9727 _ACEOF
9728 @@ -8979,8 +9572,8 @@ _ACEOF
9729
9730 fi
9731
9732 -echo "$as_me:$LINENO: checking for long" >&5
9733 -echo $ECHO_N "checking for long... $ECHO_C" >&6
9734 +{ echo "$as_me:$LINENO: checking for long" >&5
9735 +echo $ECHO_N "checking for long... $ECHO_C" >&6; }
9736 if test "${ac_cv_type_long+set}" = set; then
9737 echo $ECHO_N "(cached) $ECHO_C" >&6
9738 else
9739 @@ -8991,61 +9584,57 @@ cat confdefs.h >>conftest.$ac_ext
9740 cat >>conftest.$ac_ext <<_ACEOF
9741 /* end confdefs.h. */
9742 $ac_includes_default
9743 +typedef long ac__type_new_;
9744 int
9745 main ()
9746 {
9747 -if ((long *) 0)
9748 +if ((ac__type_new_ *) 0)
9749 return 0;
9750 -if (sizeof (long))
9751 +if (sizeof (ac__type_new_))
9752 return 0;
9753 ;
9754 return 0;
9755 }
9756 _ACEOF
9757 rm -f conftest.$ac_objext
9758 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9759 - (eval $ac_compile) 2>conftest.er1
9760 +if { (ac_try="$ac_compile"
9761 +case "(($ac_try" in
9762 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9763 + *) ac_try_echo=$ac_try;;
9764 +esac
9765 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9766 + (eval "$ac_compile") 2>conftest.er1
9767 ac_status=$?
9768 grep -v '^ *+' conftest.er1 >conftest.err
9769 rm -f conftest.er1
9770 cat conftest.err >&5
9771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9772 - (exit $ac_status); } &&
9773 - { ac_try='test -z "$ac_c_werror_flag"
9774 - || test ! -s conftest.err'
9775 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9776 - (eval $ac_try) 2>&5
9777 - ac_status=$?
9778 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
9779 - (exit $ac_status); }; } &&
9780 - { ac_try='test -s conftest.$ac_objext'
9781 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9782 - (eval $ac_try) 2>&5
9783 - ac_status=$?
9784 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
9785 - (exit $ac_status); }; }; then
9786 + (exit $ac_status); } && {
9787 + test -z "$ac_c_werror_flag" ||
9788 + test ! -s conftest.err
9789 + } && test -s conftest.$ac_objext; then
9790 ac_cv_type_long=yes
9791 else
9792 echo "$as_me: failed program was:" >&5
9793 sed 's/^/| /' conftest.$ac_ext >&5
9794
9795 -ac_cv_type_long=no
9796 + ac_cv_type_long=no
9797 fi
9798 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9799 +
9800 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9801 fi
9802 -echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
9803 -echo "${ECHO_T}$ac_cv_type_long" >&6
9804 +{ echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
9805 +echo "${ECHO_T}$ac_cv_type_long" >&6; }
9806
9807 -echo "$as_me:$LINENO: checking size of long" >&5
9808 -echo $ECHO_N "checking size of long... $ECHO_C" >&6
9809 +# The cast to long int works around a bug in the HP C Compiler
9810 +# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9811 +# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9812 +# This bug is HP SR number 8606223364.
9813 +{ echo "$as_me:$LINENO: checking size of long" >&5
9814 +echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
9815 if test "${ac_cv_sizeof_long+set}" = set; then
9816 echo $ECHO_N "(cached) $ECHO_C" >&6
9817 else
9818 - if test "$ac_cv_type_long" = yes; then
9819 - # The cast to unsigned long works around a bug in the HP C Compiler
9820 - # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9821 - # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9822 - # This bug is HP SR number 8606223364.
9823 if test "$cross_compiling" = yes; then
9824 # Depending upon the size, compute the lo and hi bounds.
9825 cat >conftest.$ac_ext <<_ACEOF
9826 @@ -9055,10 +9644,11 @@ cat confdefs.h >>conftest.$ac_ext
9827 cat >>conftest.$ac_ext <<_ACEOF
9828 /* end confdefs.h. */
9829 $ac_includes_default
9830 + typedef long ac__type_sizeof_;
9831 int
9832 main ()
9833 {
9834 -static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
9835 +static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
9836 test_array [0] = 0
9837
9838 ;
9839 @@ -9066,27 +9656,22 @@ test_array [0] = 0
9840 }
9841 _ACEOF
9842 rm -f conftest.$ac_objext
9843 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9844 - (eval $ac_compile) 2>conftest.er1
9845 +if { (ac_try="$ac_compile"
9846 +case "(($ac_try" in
9847 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9848 + *) ac_try_echo=$ac_try;;
9849 +esac
9850 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9851 + (eval "$ac_compile") 2>conftest.er1
9852 ac_status=$?
9853 grep -v '^ *+' conftest.er1 >conftest.err
9854 rm -f conftest.er1
9855 cat conftest.err >&5
9856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9857 - (exit $ac_status); } &&
9858 - { ac_try='test -z "$ac_c_werror_flag"
9859 - || test ! -s conftest.err'
9860 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9861 - (eval $ac_try) 2>&5
9862 - ac_status=$?
9863 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
9864 - (exit $ac_status); }; } &&
9865 - { ac_try='test -s conftest.$ac_objext'
9866 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9867 - (eval $ac_try) 2>&5
9868 - ac_status=$?
9869 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
9870 - (exit $ac_status); }; }; then
9871 + (exit $ac_status); } && {
9872 + test -z "$ac_c_werror_flag" ||
9873 + test ! -s conftest.err
9874 + } && test -s conftest.$ac_objext; then
9875 ac_lo=0 ac_mid=0
9876 while :; do
9877 cat >conftest.$ac_ext <<_ACEOF
9878 @@ -9096,10 +9681,11 @@ cat confdefs.h >>conftest.$ac_ext
9879 cat >>conftest.$ac_ext <<_ACEOF
9880 /* end confdefs.h. */
9881 $ac_includes_default
9882 + typedef long ac__type_sizeof_;
9883 int
9884 main ()
9885 {
9886 -static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
9887 +static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9888 test_array [0] = 0
9889
9890 ;
9891 @@ -9107,56 +9693,53 @@ test_array [0] = 0
9892 }
9893 _ACEOF
9894 rm -f conftest.$ac_objext
9895 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9896 - (eval $ac_compile) 2>conftest.er1
9897 +if { (ac_try="$ac_compile"
9898 +case "(($ac_try" in
9899 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9900 + *) ac_try_echo=$ac_try;;
9901 +esac
9902 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9903 + (eval "$ac_compile") 2>conftest.er1
9904 ac_status=$?
9905 grep -v '^ *+' conftest.er1 >conftest.err
9906 rm -f conftest.er1
9907 cat conftest.err >&5
9908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9909 - (exit $ac_status); } &&
9910 - { ac_try='test -z "$ac_c_werror_flag"
9911 - || test ! -s conftest.err'
9912 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9913 - (eval $ac_try) 2>&5
9914 - ac_status=$?
9915 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
9916 - (exit $ac_status); }; } &&
9917 - { ac_try='test -s conftest.$ac_objext'
9918 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9919 - (eval $ac_try) 2>&5
9920 - ac_status=$?
9921 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
9922 - (exit $ac_status); }; }; then
9923 + (exit $ac_status); } && {
9924 + test -z "$ac_c_werror_flag" ||
9925 + test ! -s conftest.err
9926 + } && test -s conftest.$ac_objext; then
9927 ac_hi=$ac_mid; break
9928 else
9929 echo "$as_me: failed program was:" >&5
9930 sed 's/^/| /' conftest.$ac_ext >&5
9931
9932 -ac_lo=`expr $ac_mid + 1`
9933 - if test $ac_lo -le $ac_mid; then
9934 - ac_lo= ac_hi=
9935 - break
9936 - fi
9937 - ac_mid=`expr 2 '*' $ac_mid + 1`
9938 + ac_lo=`expr $ac_mid + 1`
9939 + if test $ac_lo -le $ac_mid; then
9940 + ac_lo= ac_hi=
9941 + break
9942 + fi
9943 + ac_mid=`expr 2 '*' $ac_mid + 1`
9944 fi
9945 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9946 +
9947 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9948 done
9949 else
9950 echo "$as_me: failed program was:" >&5
9951 sed 's/^/| /' conftest.$ac_ext >&5
9952
9953 -cat >conftest.$ac_ext <<_ACEOF
9954 + cat >conftest.$ac_ext <<_ACEOF
9955 /* confdefs.h. */
9956 _ACEOF
9957 cat confdefs.h >>conftest.$ac_ext
9958 cat >>conftest.$ac_ext <<_ACEOF
9959 /* end confdefs.h. */
9960 $ac_includes_default
9961 + typedef long ac__type_sizeof_;
9962 int
9963 main ()
9964 {
9965 -static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
9966 +static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
9967 test_array [0] = 0
9968
9969 ;
9970 @@ -9164,27 +9747,22 @@ test_array [0] = 0
9971 }
9972 _ACEOF
9973 rm -f conftest.$ac_objext
9974 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9975 - (eval $ac_compile) 2>conftest.er1
9976 +if { (ac_try="$ac_compile"
9977 +case "(($ac_try" in
9978 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9979 + *) ac_try_echo=$ac_try;;
9980 +esac
9981 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9982 + (eval "$ac_compile") 2>conftest.er1
9983 ac_status=$?
9984 grep -v '^ *+' conftest.er1 >conftest.err
9985 rm -f conftest.er1
9986 cat conftest.err >&5
9987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9988 - (exit $ac_status); } &&
9989 - { ac_try='test -z "$ac_c_werror_flag"
9990 - || test ! -s conftest.err'
9991 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9992 - (eval $ac_try) 2>&5
9993 - ac_status=$?
9994 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
9995 - (exit $ac_status); }; } &&
9996 - { ac_try='test -s conftest.$ac_objext'
9997 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9998 - (eval $ac_try) 2>&5
9999 - ac_status=$?
10000 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
10001 - (exit $ac_status); }; }; then
10002 + (exit $ac_status); } && {
10003 + test -z "$ac_c_werror_flag" ||
10004 + test ! -s conftest.err
10005 + } && test -s conftest.$ac_objext; then
10006 ac_hi=-1 ac_mid=-1
10007 while :; do
10008 cat >conftest.$ac_ext <<_ACEOF
10009 @@ -9194,10 +9772,11 @@ cat confdefs.h >>conftest.$ac_ext
10010 cat >>conftest.$ac_ext <<_ACEOF
10011 /* end confdefs.h. */
10012 $ac_includes_default
10013 + typedef long ac__type_sizeof_;
10014 int
10015 main ()
10016 {
10017 -static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
10018 +static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
10019 test_array [0] = 0
10020
10021 ;
10022 @@ -9205,50 +9784,48 @@ test_array [0] = 0
10023 }
10024 _ACEOF
10025 rm -f conftest.$ac_objext
10026 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10027 - (eval $ac_compile) 2>conftest.er1
10028 +if { (ac_try="$ac_compile"
10029 +case "(($ac_try" in
10030 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10031 + *) ac_try_echo=$ac_try;;
10032 +esac
10033 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10034 + (eval "$ac_compile") 2>conftest.er1
10035 ac_status=$?
10036 grep -v '^ *+' conftest.er1 >conftest.err
10037 rm -f conftest.er1
10038 cat conftest.err >&5
10039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10040 - (exit $ac_status); } &&
10041 - { ac_try='test -z "$ac_c_werror_flag"
10042 - || test ! -s conftest.err'
10043 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10044 - (eval $ac_try) 2>&5
10045 - ac_status=$?
10046 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
10047 - (exit $ac_status); }; } &&
10048 - { ac_try='test -s conftest.$ac_objext'
10049 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10050 - (eval $ac_try) 2>&5
10051 - ac_status=$?
10052 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
10053 - (exit $ac_status); }; }; then
10054 + (exit $ac_status); } && {
10055 + test -z "$ac_c_werror_flag" ||
10056 + test ! -s conftest.err
10057 + } && test -s conftest.$ac_objext; then
10058 ac_lo=$ac_mid; break
10059 else
10060 echo "$as_me: failed program was:" >&5
10061 sed 's/^/| /' conftest.$ac_ext >&5
10062
10063 -ac_hi=`expr '(' $ac_mid ')' - 1`
10064 - if test $ac_mid -le $ac_hi; then
10065 - ac_lo= ac_hi=
10066 - break
10067 - fi
10068 - ac_mid=`expr 2 '*' $ac_mid`
10069 + ac_hi=`expr '(' $ac_mid ')' - 1`
10070 + if test $ac_mid -le $ac_hi; then
10071 + ac_lo= ac_hi=
10072 + break
10073 + fi
10074 + ac_mid=`expr 2 '*' $ac_mid`
10075 fi
10076 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10077 +
10078 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10079 done
10080 else
10081 echo "$as_me: failed program was:" >&5
10082 sed 's/^/| /' conftest.$ac_ext >&5
10083
10084 -ac_lo= ac_hi=
10085 + ac_lo= ac_hi=
10086 fi
10087 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10088 +
10089 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10090 fi
10091 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10092 +
10093 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10094 # Binary search between lo and hi bounds.
10095 while test "x$ac_lo" != "x$ac_hi"; do
10096 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10097 @@ -9259,10 +9836,11 @@ cat confdefs.h >>conftest.$ac_ext
10098 cat >>conftest.$ac_ext <<_ACEOF
10099 /* end confdefs.h. */
10100 $ac_includes_default
10101 + typedef long ac__type_sizeof_;
10102 int
10103 main ()
10104 {
10105 -static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
10106 +static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10107 test_array [0] = 0
10108
10109 ;
10110 @@ -9270,52 +9848,45 @@ test_array [0] = 0
10111 }
10112 _ACEOF
10113 rm -f conftest.$ac_objext
10114 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10115 - (eval $ac_compile) 2>conftest.er1
10116 +if { (ac_try="$ac_compile"
10117 +case "(($ac_try" in
10118 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10119 + *) ac_try_echo=$ac_try;;
10120 +esac
10121 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10122 + (eval "$ac_compile") 2>conftest.er1
10123 ac_status=$?
10124 grep -v '^ *+' conftest.er1 >conftest.err
10125 rm -f conftest.er1
10126 cat conftest.err >&5
10127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10128 - (exit $ac_status); } &&
10129 - { ac_try='test -z "$ac_c_werror_flag"
10130 - || test ! -s conftest.err'
10131 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10132 - (eval $ac_try) 2>&5
10133 - ac_status=$?
10134 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
10135 - (exit $ac_status); }; } &&
10136 - { ac_try='test -s conftest.$ac_objext'
10137 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10138 - (eval $ac_try) 2>&5
10139 - ac_status=$?
10140 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
10141 - (exit $ac_status); }; }; then
10142 + (exit $ac_status); } && {
10143 + test -z "$ac_c_werror_flag" ||
10144 + test ! -s conftest.err
10145 + } && test -s conftest.$ac_objext; then
10146 ac_hi=$ac_mid
10147 else
10148 echo "$as_me: failed program was:" >&5
10149 sed 's/^/| /' conftest.$ac_ext >&5
10150
10151 -ac_lo=`expr '(' $ac_mid ')' + 1`
10152 + ac_lo=`expr '(' $ac_mid ')' + 1`
10153 fi
10154 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10155 +
10156 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10157 done
10158 case $ac_lo in
10159 ?*) ac_cv_sizeof_long=$ac_lo;;
10160 -'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
10161 +'') if test "$ac_cv_type_long" = yes; then
10162 + { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
10163 See \`config.log' for more details." >&5
10164 -echo "$as_me: error: cannot compute sizeof (long), 77
10165 +echo "$as_me: error: cannot compute sizeof (long)
10166 See \`config.log' for more details." >&2;}
10167 - { (exit 1); exit 1; }; } ;;
10168 + { (exit 77); exit 77; }; }
10169 + else
10170 + ac_cv_sizeof_long=0
10171 + fi ;;
10172 esac
10173 else
10174 - if test "$cross_compiling" = yes; then
10175 - { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10176 -See \`config.log' for more details." >&5
10177 -echo "$as_me: error: cannot run test program while cross compiling
10178 -See \`config.log' for more details." >&2;}
10179 - { (exit 1); exit 1; }; }
10180 -else
10181 cat >conftest.$ac_ext <<_ACEOF
10182 /* confdefs.h. */
10183 _ACEOF
10184 @@ -9323,8 +9894,9 @@ cat confdefs.h >>conftest.$ac_ext
10185 cat >>conftest.$ac_ext <<_ACEOF
10186 /* end confdefs.h. */
10187 $ac_includes_default
10188 -long longval () { return (long) (sizeof (long)); }
10189 -unsigned long ulongval () { return (long) (sizeof (long)); }
10190 + typedef long ac__type_sizeof_;
10191 +static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
10192 +static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
10193 #include <stdio.h>
10194 #include <stdlib.h>
10195 int
10196 @@ -9333,35 +9905,44 @@ main ()
10197
10198 FILE *f = fopen ("conftest.val", "w");
10199 if (! f)
10200 - exit (1);
10201 - if (((long) (sizeof (long))) < 0)
10202 + return 1;
10203 + if (((long int) (sizeof (ac__type_sizeof_))) < 0)
10204 {
10205 - long i = longval ();
10206 - if (i != ((long) (sizeof (long))))
10207 - exit (1);
10208 + long int i = longval ();
10209 + if (i != ((long int) (sizeof (ac__type_sizeof_))))
10210 + return 1;
10211 fprintf (f, "%ld\n", i);
10212 }
10213 else
10214 {
10215 - unsigned long i = ulongval ();
10216 - if (i != ((long) (sizeof (long))))
10217 - exit (1);
10218 + unsigned long int i = ulongval ();
10219 + if (i != ((long int) (sizeof (ac__type_sizeof_))))
10220 + return 1;
10221 fprintf (f, "%lu\n", i);
10222 }
10223 - exit (ferror (f) || fclose (f) != 0);
10224 + return ferror (f) || fclose (f) != 0;
10225
10226 ;
10227 return 0;
10228 }
10229 _ACEOF
10230 rm -f conftest$ac_exeext
10231 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10232 - (eval $ac_link) 2>&5
10233 +if { (ac_try="$ac_link"
10234 +case "(($ac_try" in
10235 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10236 + *) ac_try_echo=$ac_try;;
10237 +esac
10238 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10239 + (eval "$ac_link") 2>&5
10240 ac_status=$?
10241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10242 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10243 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10244 - (eval $ac_try) 2>&5
10245 + { (case "(($ac_try" in
10246 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10247 + *) ac_try_echo=$ac_try;;
10248 +esac
10249 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10250 + (eval "$ac_try") 2>&5
10251 ac_status=$?
10252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10253 (exit $ac_status); }; }; then
10254 @@ -9372,22 +9953,25 @@ echo "$as_me: failed program was:" >&5
10255 sed 's/^/| /' conftest.$ac_ext >&5
10256
10257 ( exit $ac_status )
10258 -{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
10259 +if test "$ac_cv_type_long" = yes; then
10260 + { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
10261 See \`config.log' for more details." >&5
10262 -echo "$as_me: error: cannot compute sizeof (long), 77
10263 +echo "$as_me: error: cannot compute sizeof (long)
10264 See \`config.log' for more details." >&2;}
10265 - { (exit 1); exit 1; }; }
10266 -fi
10267 -rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10268 + { (exit 77); exit 77; }; }
10269 + else
10270 + ac_cv_sizeof_long=0
10271 + fi
10272 fi
10273 +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10274 fi
10275 rm -f conftest.val
10276 -else
10277 - ac_cv_sizeof_long=0
10278 -fi
10279 fi
10280 -echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
10281 -echo "${ECHO_T}$ac_cv_sizeof_long" >&6
10282 +{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
10283 +echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
10284 +
10285 +
10286 +
10287 cat >>confdefs.h <<_ACEOF
10288 #define SIZEOF_LONG $ac_cv_sizeof_long
10289 _ACEOF
10290 @@ -9428,8 +10012,8 @@ fi
10291 if test "x$cross_compiling" = "xno"; then
10292 EXEEXT_FOR_BUILD='$(EXEEXT)'
10293 else
10294 - echo "$as_me:$LINENO: checking for build system executable suffix" >&5
10295 -echo $ECHO_N "checking for build system executable suffix... $ECHO_C" >&6
10296 + { echo "$as_me:$LINENO: checking for build system executable suffix" >&5
10297 +echo $ECHO_N "checking for build system executable suffix... $ECHO_C" >&6; }
10298 if test "${bfd_cv_build_exeext+set}" = set; then
10299 echo $ECHO_N "(cached) $ECHO_C" >&6
10300 else
10301 @@ -9446,8 +10030,8 @@ else
10302 rm -f conftest*
10303 test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
10304 fi
10305 -echo "$as_me:$LINENO: result: $bfd_cv_build_exeext" >&5
10306 -echo "${ECHO_T}$bfd_cv_build_exeext" >&6
10307 +{ echo "$as_me:$LINENO: result: $bfd_cv_build_exeext" >&5
10308 +echo "${ECHO_T}$bfd_cv_build_exeext" >&6; }
10309 EXEEXT_FOR_BUILD=""
10310 test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
10311 fi
10312 @@ -9462,18 +10046,19 @@ fi
10313 for ac_header in stddef.h string.h strings.h stdlib.h time.h unistd.h
10314 do
10315 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10316 -if eval "test \"\${$as_ac_Header+set}\" = set"; then
10317 - echo "$as_me:$LINENO: checking for $ac_header" >&5
10318 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10319 -if eval "test \"\${$as_ac_Header+set}\" = set"; then
10320 +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10321 + { echo "$as_me:$LINENO: checking for $ac_header" >&5
10322 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10323 +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10324 echo $ECHO_N "(cached) $ECHO_C" >&6
10325 fi
10326 -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10327 -echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10328 +ac_res=`eval echo '${'$as_ac_Header'}'`
10329 + { echo "$as_me:$LINENO: result: $ac_res" >&5
10330 +echo "${ECHO_T}$ac_res" >&6; }
10331 else
10332 # Is the header compilable?
10333 -echo "$as_me:$LINENO: checking $ac_header usability" >&5
10334 -echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10335 +{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10336 +echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10337 cat >conftest.$ac_ext <<_ACEOF
10338 /* confdefs.h. */
10339 _ACEOF
10340 @@ -9484,41 +10069,37 @@ $ac_includes_default
10341 #include <$ac_header>
10342 _ACEOF
10343 rm -f conftest.$ac_objext
10344 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10345 - (eval $ac_compile) 2>conftest.er1
10346 +if { (ac_try="$ac_compile"
10347 +case "(($ac_try" in
10348 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10349 + *) ac_try_echo=$ac_try;;
10350 +esac
10351 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10352 + (eval "$ac_compile") 2>conftest.er1
10353 ac_status=$?
10354 grep -v '^ *+' conftest.er1 >conftest.err
10355 rm -f conftest.er1
10356 cat conftest.err >&5
10357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10358 - (exit $ac_status); } &&
10359 - { ac_try='test -z "$ac_c_werror_flag"
10360 - || test ! -s conftest.err'
10361 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10362 - (eval $ac_try) 2>&5
10363 - ac_status=$?
10364 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
10365 - (exit $ac_status); }; } &&
10366 - { ac_try='test -s conftest.$ac_objext'
10367 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10368 - (eval $ac_try) 2>&5
10369 - ac_status=$?
10370 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
10371 - (exit $ac_status); }; }; then
10372 + (exit $ac_status); } && {
10373 + test -z "$ac_c_werror_flag" ||
10374 + test ! -s conftest.err
10375 + } && test -s conftest.$ac_objext; then
10376 ac_header_compiler=yes
10377 else
10378 echo "$as_me: failed program was:" >&5
10379 sed 's/^/| /' conftest.$ac_ext >&5
10380
10381 -ac_header_compiler=no
10382 + ac_header_compiler=no
10383 fi
10384 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10385 -echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10386 -echo "${ECHO_T}$ac_header_compiler" >&6
10387 +
10388 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10389 +{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10390 +echo "${ECHO_T}$ac_header_compiler" >&6; }
10391
10392 # Is the header present?
10393 -echo "$as_me:$LINENO: checking $ac_header presence" >&5
10394 -echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10395 +{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10396 +echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10397 cat >conftest.$ac_ext <<_ACEOF
10398 /* confdefs.h. */
10399 _ACEOF
10400 @@ -9527,24 +10108,22 @@ cat >>conftest.$ac_ext <<_ACEOF
10401 /* end confdefs.h. */
10402 #include <$ac_header>
10403 _ACEOF
10404 -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10405 - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10406 +if { (ac_try="$ac_cpp conftest.$ac_ext"
10407 +case "(($ac_try" in
10408 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10409 + *) ac_try_echo=$ac_try;;
10410 +esac
10411 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10412 + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10413 ac_status=$?
10414 grep -v '^ *+' conftest.er1 >conftest.err
10415 rm -f conftest.er1
10416 cat conftest.err >&5
10417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10418 - (exit $ac_status); } >/dev/null; then
10419 - if test -s conftest.err; then
10420 - ac_cpp_err=$ac_c_preproc_warn_flag
10421 - ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10422 - else
10423 - ac_cpp_err=
10424 - fi
10425 -else
10426 - ac_cpp_err=yes
10427 -fi
10428 -if test -z "$ac_cpp_err"; then
10429 + (exit $ac_status); } >/dev/null && {
10430 + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10431 + test ! -s conftest.err
10432 + }; then
10433 ac_header_preproc=yes
10434 else
10435 echo "$as_me: failed program was:" >&5
10436 @@ -9552,9 +10131,10 @@ sed 's/^/| /' conftest.$ac_ext >&5
10437
10438 ac_header_preproc=no
10439 fi
10440 +
10441 rm -f conftest.err conftest.$ac_ext
10442 -echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10443 -echo "${ECHO_T}$ac_header_preproc" >&6
10444 +{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10445 +echo "${ECHO_T}$ac_header_preproc" >&6; }
10446
10447 # So? What about this header?
10448 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10449 @@ -9578,25 +10158,19 @@ echo "$as_me: WARNING: $ac_header: s
10450 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10451 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10452 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10453 - (
10454 - cat <<\_ASBOX
10455 -## ------------------------------------------ ##
10456 -## Report this to the AC_PACKAGE_NAME lists. ##
10457 -## ------------------------------------------ ##
10458 -_ASBOX
10459 - ) |
10460 - sed "s/^/$as_me: WARNING: /" >&2
10461 +
10462 ;;
10463 esac
10464 -echo "$as_me:$LINENO: checking for $ac_header" >&5
10465 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10466 -if eval "test \"\${$as_ac_Header+set}\" = set"; then
10467 +{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10468 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10469 +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10470 echo $ECHO_N "(cached) $ECHO_C" >&6
10471 else
10472 eval "$as_ac_Header=\$ac_header_preproc"
10473 fi
10474 -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10475 -echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10476 +ac_res=`eval echo '${'$as_ac_Header'}'`
10477 + { echo "$as_me:$LINENO: result: $ac_res" >&5
10478 +echo "${ECHO_T}$ac_res" >&6; }
10479
10480 fi
10481 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10482 @@ -9614,18 +10188,19 @@ done
10483 for ac_header in fcntl.h sys/file.h sys/time.h
10484 do
10485 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10486 -if eval "test \"\${$as_ac_Header+set}\" = set"; then
10487 - echo "$as_me:$LINENO: checking for $ac_header" >&5
10488 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10489 -if eval "test \"\${$as_ac_Header+set}\" = set"; then
10490 +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10491 + { echo "$as_me:$LINENO: checking for $ac_header" >&5
10492 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10493 +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10494 echo $ECHO_N "(cached) $ECHO_C" >&6
10495 fi
10496 -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10497 -echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10498 +ac_res=`eval echo '${'$as_ac_Header'}'`
10499 + { echo "$as_me:$LINENO: result: $ac_res" >&5
10500 +echo "${ECHO_T}$ac_res" >&6; }
10501 else
10502 # Is the header compilable?
10503 -echo "$as_me:$LINENO: checking $ac_header usability" >&5
10504 -echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10505 +{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10506 +echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10507 cat >conftest.$ac_ext <<_ACEOF
10508 /* confdefs.h. */
10509 _ACEOF
10510 @@ -9636,41 +10211,37 @@ $ac_includes_default
10511 #include <$ac_header>
10512 _ACEOF
10513 rm -f conftest.$ac_objext
10514 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10515 - (eval $ac_compile) 2>conftest.er1
10516 +if { (ac_try="$ac_compile"
10517 +case "(($ac_try" in
10518 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10519 + *) ac_try_echo=$ac_try;;
10520 +esac
10521 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10522 + (eval "$ac_compile") 2>conftest.er1
10523 ac_status=$?
10524 grep -v '^ *+' conftest.er1 >conftest.err
10525 rm -f conftest.er1
10526 cat conftest.err >&5
10527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10528 - (exit $ac_status); } &&
10529 - { ac_try='test -z "$ac_c_werror_flag"
10530 - || test ! -s conftest.err'
10531 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10532 - (eval $ac_try) 2>&5
10533 - ac_status=$?
10534 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
10535 - (exit $ac_status); }; } &&
10536 - { ac_try='test -s conftest.$ac_objext'
10537 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10538 - (eval $ac_try) 2>&5
10539 - ac_status=$?
10540 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
10541 - (exit $ac_status); }; }; then
10542 + (exit $ac_status); } && {
10543 + test -z "$ac_c_werror_flag" ||
10544 + test ! -s conftest.err
10545 + } && test -s conftest.$ac_objext; then
10546 ac_header_compiler=yes
10547 else
10548 echo "$as_me: failed program was:" >&5
10549 sed 's/^/| /' conftest.$ac_ext >&5
10550
10551 -ac_header_compiler=no
10552 + ac_header_compiler=no
10553 fi
10554 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10555 -echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10556 -echo "${ECHO_T}$ac_header_compiler" >&6
10557 +
10558 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10559 +{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10560 +echo "${ECHO_T}$ac_header_compiler" >&6; }
10561
10562 # Is the header present?
10563 -echo "$as_me:$LINENO: checking $ac_header presence" >&5
10564 -echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10565 +{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10566 +echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10567 cat >conftest.$ac_ext <<_ACEOF
10568 /* confdefs.h. */
10569 _ACEOF
10570 @@ -9679,24 +10250,22 @@ cat >>conftest.$ac_ext <<_ACEOF
10571 /* end confdefs.h. */
10572 #include <$ac_header>
10573 _ACEOF
10574 -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10575 - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10576 +if { (ac_try="$ac_cpp conftest.$ac_ext"
10577 +case "(($ac_try" in
10578 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10579 + *) ac_try_echo=$ac_try;;
10580 +esac
10581 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10582 + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10583 ac_status=$?
10584 grep -v '^ *+' conftest.er1 >conftest.err
10585 rm -f conftest.er1
10586 cat conftest.err >&5
10587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10588 - (exit $ac_status); } >/dev/null; then
10589 - if test -s conftest.err; then
10590 - ac_cpp_err=$ac_c_preproc_warn_flag
10591 - ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10592 - else
10593 - ac_cpp_err=
10594 - fi
10595 -else
10596 - ac_cpp_err=yes
10597 -fi
10598 -if test -z "$ac_cpp_err"; then
10599 + (exit $ac_status); } >/dev/null && {
10600 + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10601 + test ! -s conftest.err
10602 + }; then
10603 ac_header_preproc=yes
10604 else
10605 echo "$as_me: failed program was:" >&5
10606 @@ -9704,9 +10273,10 @@ sed 's/^/| /' conftest.$ac_ext >&5
10607
10608 ac_header_preproc=no
10609 fi
10610 +
10611 rm -f conftest.err conftest.$ac_ext
10612 -echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10613 -echo "${ECHO_T}$ac_header_preproc" >&6
10614 +{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10615 +echo "${ECHO_T}$ac_header_preproc" >&6; }
10616
10617 # So? What about this header?
10618 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10619 @@ -9730,25 +10300,19 @@ echo "$as_me: WARNING: $ac_header: s
10620 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10621 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10622 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10623 - (
10624 - cat <<\_ASBOX
10625 -## ------------------------------------------ ##
10626 -## Report this to the AC_PACKAGE_NAME lists. ##
10627 -## ------------------------------------------ ##
10628 -_ASBOX
10629 - ) |
10630 - sed "s/^/$as_me: WARNING: /" >&2
10631 +
10632 ;;
10633 esac
10634 -echo "$as_me:$LINENO: checking for $ac_header" >&5
10635 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10636 -if eval "test \"\${$as_ac_Header+set}\" = set"; then
10637 +{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10638 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10639 +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10640 echo $ECHO_N "(cached) $ECHO_C" >&6
10641 else
10642 eval "$as_ac_Header=\$ac_header_preproc"
10643 fi
10644 -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10645 -echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10646 +ac_res=`eval echo '${'$as_ac_Header'}'`
10647 + { echo "$as_me:$LINENO: result: $ac_res" >&5
10648 +echo "${ECHO_T}$ac_res" >&6; }
10649
10650 fi
10651 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10652 @@ -9760,8 +10324,8 @@ fi
10653
10654 done
10655
10656 -echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
10657 -echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
10658 +{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
10659 +echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
10660 if test "${ac_cv_header_time+set}" = set; then
10661 echo $ECHO_N "(cached) $ECHO_C" >&6
10662 else
10663 @@ -9785,38 +10349,34 @@ return 0;
10664 }
10665 _ACEOF
10666 rm -f conftest.$ac_objext
10667 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10668 - (eval $ac_compile) 2>conftest.er1
10669 +if { (ac_try="$ac_compile"
10670 +case "(($ac_try" in
10671 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10672 + *) ac_try_echo=$ac_try;;
10673 +esac
10674 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10675 + (eval "$ac_compile") 2>conftest.er1
10676 ac_status=$?
10677 grep -v '^ *+' conftest.er1 >conftest.err
10678 rm -f conftest.er1
10679 cat conftest.err >&5
10680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10681 - (exit $ac_status); } &&
10682 - { ac_try='test -z "$ac_c_werror_flag"
10683 - || test ! -s conftest.err'
10684 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10685 - (eval $ac_try) 2>&5
10686 - ac_status=$?
10687 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
10688 - (exit $ac_status); }; } &&
10689 - { ac_try='test -s conftest.$ac_objext'
10690 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10691 - (eval $ac_try) 2>&5
10692 - ac_status=$?
10693 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
10694 - (exit $ac_status); }; }; then
10695 + (exit $ac_status); } && {
10696 + test -z "$ac_c_werror_flag" ||
10697 + test ! -s conftest.err
10698 + } && test -s conftest.$ac_objext; then
10699 ac_cv_header_time=yes
10700 else
10701 echo "$as_me: failed program was:" >&5
10702 sed 's/^/| /' conftest.$ac_ext >&5
10703
10704 -ac_cv_header_time=no
10705 + ac_cv_header_time=no
10706 fi
10707 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10708 +
10709 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10710 fi
10711 -echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
10712 -echo "${ECHO_T}$ac_cv_header_time" >&6
10713 +{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
10714 +echo "${ECHO_T}$ac_cv_header_time" >&6; }
10715 if test $ac_cv_header_time = yes; then
10716
10717 cat >>confdefs.h <<\_ACEOF
10718 @@ -9833,9 +10393,9 @@ fi
10719 ac_header_dirent=no
10720 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
10721 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
10722 -echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
10723 -echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
10724 -if eval "test \"\${$as_ac_Header+set}\" = set"; then
10725 +{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
10726 +echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
10727 +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10728 echo $ECHO_N "(cached) $ECHO_C" >&6
10729 else
10730 cat >conftest.$ac_ext <<_ACEOF
10731 @@ -9857,38 +10417,35 @@ return 0;
10732 }
10733 _ACEOF
10734 rm -f conftest.$ac_objext
10735 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10736 - (eval $ac_compile) 2>conftest.er1
10737 +if { (ac_try="$ac_compile"
10738 +case "(($ac_try" in
10739 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10740 + *) ac_try_echo=$ac_try;;
10741 +esac
10742 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10743 + (eval "$ac_compile") 2>conftest.er1
10744 ac_status=$?
10745 grep -v '^ *+' conftest.er1 >conftest.err
10746 rm -f conftest.er1
10747 cat conftest.err >&5
10748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10749 - (exit $ac_status); } &&
10750 - { ac_try='test -z "$ac_c_werror_flag"
10751 - || test ! -s conftest.err'
10752 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10753 - (eval $ac_try) 2>&5
10754 - ac_status=$?
10755 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
10756 - (exit $ac_status); }; } &&
10757 - { ac_try='test -s conftest.$ac_objext'
10758 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10759 - (eval $ac_try) 2>&5
10760 - ac_status=$?
10761 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
10762 - (exit $ac_status); }; }; then
10763 + (exit $ac_status); } && {
10764 + test -z "$ac_c_werror_flag" ||
10765 + test ! -s conftest.err
10766 + } && test -s conftest.$ac_objext; then
10767 eval "$as_ac_Header=yes"
10768 else
10769 echo "$as_me: failed program was:" >&5
10770 sed 's/^/| /' conftest.$ac_ext >&5
10771
10772 -eval "$as_ac_Header=no"
10773 + eval "$as_ac_Header=no"
10774 fi
10775 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10776 +
10777 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10778 fi
10779 -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10780 -echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10781 +ac_res=`eval echo '${'$as_ac_Header'}'`
10782 + { echo "$as_me:$LINENO: result: $ac_res" >&5
10783 +echo "${ECHO_T}$ac_res" >&6; }
10784 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10785 cat >>confdefs.h <<_ACEOF
10786 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
10787 @@ -9900,13 +10457,12 @@ fi
10788 done
10789 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
10790 if test $ac_header_dirent = dirent.h; then
10791 - echo "$as_me:$LINENO: checking for library containing opendir" >&5
10792 -echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
10793 + { echo "$as_me:$LINENO: checking for library containing opendir" >&5
10794 +echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
10795 if test "${ac_cv_search_opendir+set}" = set; then
10796 echo $ECHO_N "(cached) $ECHO_C" >&6
10797 else
10798 ac_func_search_save_LIBS=$LIBS
10799 -ac_cv_search_opendir=no
10800 cat >conftest.$ac_ext <<_ACEOF
10801 /* confdefs.h. */
10802 _ACEOF
10803 @@ -9914,126 +10470,83 @@ cat confdefs.h >>conftest.$ac_ext
10804 cat >>conftest.$ac_ext <<_ACEOF
10805 /* end confdefs.h. */
10806
10807 -/* Override any gcc2 internal prototype to avoid an error. */
10808 +/* Override any GCC internal prototype to avoid an error.
10809 + Use char because int might match the return type of a GCC
10810 + builtin and then its argument prototype would still apply. */
10811 #ifdef __cplusplus
10812 extern "C"
10813 #endif
10814 -/* We use char because int might match the return type of a gcc2
10815 - builtin and then its argument prototype would still apply. */
10816 char opendir ();
10817 int
10818 main ()
10819 {
10820 -opendir ();
10821 +return opendir ();
10822 ;
10823 return 0;
10824 }
10825 _ACEOF
10826 -rm -f conftest.$ac_objext conftest$ac_exeext
10827 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10828 - (eval $ac_link) 2>conftest.er1
10829 +for ac_lib in '' dir; do
10830 + if test -z "$ac_lib"; then
10831 + ac_res="none required"
10832 + else
10833 + ac_res=-l$ac_lib
10834 + LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10835 + fi
10836 + rm -f conftest.$ac_objext conftest$ac_exeext
10837 +if { (ac_try="$ac_link"
10838 +case "(($ac_try" in
10839 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10840 + *) ac_try_echo=$ac_try;;
10841 +esac
10842 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10843 + (eval "$ac_link") 2>conftest.er1
10844 ac_status=$?
10845 grep -v '^ *+' conftest.er1 >conftest.err
10846 rm -f conftest.er1
10847 cat conftest.err >&5
10848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10849 - (exit $ac_status); } &&
10850 - { ac_try='test -z "$ac_c_werror_flag"
10851 - || test ! -s conftest.err'
10852 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10853 - (eval $ac_try) 2>&5
10854 - ac_status=$?
10855 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
10856 - (exit $ac_status); }; } &&
10857 - { ac_try='test -s conftest$ac_exeext'
10858 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10859 - (eval $ac_try) 2>&5
10860 - ac_status=$?
10861 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
10862 - (exit $ac_status); }; }; then
10863 - ac_cv_search_opendir="none required"
10864 + (exit $ac_status); } && {
10865 + test -z "$ac_c_werror_flag" ||
10866 + test ! -s conftest.err
10867 + } && test -s conftest$ac_exeext &&
10868 + $as_test_x conftest$ac_exeext; then
10869 + ac_cv_search_opendir=$ac_res
10870 else
10871 echo "$as_me: failed program was:" >&5
10872 sed 's/^/| /' conftest.$ac_ext >&5
10873
10874 -fi
10875 -rm -f conftest.err conftest.$ac_objext \
10876 - conftest$ac_exeext conftest.$ac_ext
10877 -if test "$ac_cv_search_opendir" = no; then
10878 - for ac_lib in dir; do
10879 - LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10880 - cat >conftest.$ac_ext <<_ACEOF
10881 -/* confdefs.h. */
10882 -_ACEOF
10883 -cat confdefs.h >>conftest.$ac_ext
10884 -cat >>conftest.$ac_ext <<_ACEOF
10885 -/* end confdefs.h. */
10886
10887 -/* Override any gcc2 internal prototype to avoid an error. */
10888 -#ifdef __cplusplus
10889 -extern "C"
10890 -#endif
10891 -/* We use char because int might match the return type of a gcc2
10892 - builtin and then its argument prototype would still apply. */
10893 -char opendir ();
10894 -int
10895 -main ()
10896 -{
10897 -opendir ();
10898 - ;
10899 - return 0;
10900 -}
10901 -_ACEOF
10902 -rm -f conftest.$ac_objext conftest$ac_exeext
10903 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10904 - (eval $ac_link) 2>conftest.er1
10905 - ac_status=$?
10906 - grep -v '^ *+' conftest.er1 >conftest.err
10907 - rm -f conftest.er1
10908 - cat conftest.err >&5
10909 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
10910 - (exit $ac_status); } &&
10911 - { ac_try='test -z "$ac_c_werror_flag"
10912 - || test ! -s conftest.err'
10913 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10914 - (eval $ac_try) 2>&5
10915 - ac_status=$?
10916 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
10917 - (exit $ac_status); }; } &&
10918 - { ac_try='test -s conftest$ac_exeext'
10919 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10920 - (eval $ac_try) 2>&5
10921 - ac_status=$?
10922 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
10923 - (exit $ac_status); }; }; then
10924 - ac_cv_search_opendir="-l$ac_lib"
10925 -break
10926 -else
10927 - echo "$as_me: failed program was:" >&5
10928 -sed 's/^/| /' conftest.$ac_ext >&5
10929 +fi
10930
10931 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10932 + conftest$ac_exeext
10933 + if test "${ac_cv_search_opendir+set}" = set; then
10934 + break
10935 fi
10936 -rm -f conftest.err conftest.$ac_objext \
10937 - conftest$ac_exeext conftest.$ac_ext
10938 - done
10939 +done
10940 +if test "${ac_cv_search_opendir+set}" = set; then
10941 + :
10942 +else
10943 + ac_cv_search_opendir=no
10944 fi
10945 +rm conftest.$ac_ext
10946 LIBS=$ac_func_search_save_LIBS
10947 fi
10948 -echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10949 -echo "${ECHO_T}$ac_cv_search_opendir" >&6
10950 -if test "$ac_cv_search_opendir" != no; then
10951 - test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
10952 +{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10953 +echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
10954 +ac_res=$ac_cv_search_opendir
10955 +if test "$ac_res" != no; then
10956 + test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10957
10958 fi
10959
10960 else
10961 - echo "$as_me:$LINENO: checking for library containing opendir" >&5
10962 -echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
10963 + { echo "$as_me:$LINENO: checking for library containing opendir" >&5
10964 +echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
10965 if test "${ac_cv_search_opendir+set}" = set; then
10966 echo $ECHO_N "(cached) $ECHO_C" >&6
10967 else
10968 ac_func_search_save_LIBS=$LIBS
10969 -ac_cv_search_opendir=no
10970 cat >conftest.$ac_ext <<_ACEOF
10971 /* confdefs.h. */
10972 _ACEOF
10973 @@ -10041,122 +10554,80 @@ cat confdefs.h >>conftest.$ac_ext
10974 cat >>conftest.$ac_ext <<_ACEOF
10975 /* end confdefs.h. */
10976
10977 -/* Override any gcc2 internal prototype to avoid an error. */
10978 +/* Override any GCC internal prototype to avoid an error.
10979 + Use char because int might match the return type of a GCC
10980 + builtin and then its argument prototype would still apply. */
10981 #ifdef __cplusplus
10982 extern "C"
10983 #endif
10984 -/* We use char because int might match the return type of a gcc2
10985 - builtin and then its argument prototype would still apply. */
10986 char opendir ();
10987 int
10988 main ()
10989 {
10990 -opendir ();
10991 +return opendir ();
10992 ;
10993 return 0;
10994 }
10995 _ACEOF
10996 -rm -f conftest.$ac_objext conftest$ac_exeext
10997 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10998 - (eval $ac_link) 2>conftest.er1
10999 +for ac_lib in '' x; do
11000 + if test -z "$ac_lib"; then
11001 + ac_res="none required"
11002 + else
11003 + ac_res=-l$ac_lib
11004 + LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11005 + fi
11006 + rm -f conftest.$ac_objext conftest$ac_exeext
11007 +if { (ac_try="$ac_link"
11008 +case "(($ac_try" in
11009 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11010 + *) ac_try_echo=$ac_try;;
11011 +esac
11012 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11013 + (eval "$ac_link") 2>conftest.er1
11014 ac_status=$?
11015 grep -v '^ *+' conftest.er1 >conftest.err
11016 rm -f conftest.er1
11017 cat conftest.err >&5
11018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11019 - (exit $ac_status); } &&
11020 - { ac_try='test -z "$ac_c_werror_flag"
11021 - || test ! -s conftest.err'
11022 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11023 - (eval $ac_try) 2>&5
11024 - ac_status=$?
11025 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
11026 - (exit $ac_status); }; } &&
11027 - { ac_try='test -s conftest$ac_exeext'
11028 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11029 - (eval $ac_try) 2>&5
11030 - ac_status=$?
11031 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
11032 - (exit $ac_status); }; }; then
11033 - ac_cv_search_opendir="none required"
11034 + (exit $ac_status); } && {
11035 + test -z "$ac_c_werror_flag" ||
11036 + test ! -s conftest.err
11037 + } && test -s conftest$ac_exeext &&
11038 + $as_test_x conftest$ac_exeext; then
11039 + ac_cv_search_opendir=$ac_res
11040 else
11041 echo "$as_me: failed program was:" >&5
11042 sed 's/^/| /' conftest.$ac_ext >&5
11043
11044 -fi
11045 -rm -f conftest.err conftest.$ac_objext \
11046 - conftest$ac_exeext conftest.$ac_ext
11047 -if test "$ac_cv_search_opendir" = no; then
11048 - for ac_lib in x; do
11049 - LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11050 - cat >conftest.$ac_ext <<_ACEOF
11051 -/* confdefs.h. */
11052 -_ACEOF
11053 -cat confdefs.h >>conftest.$ac_ext
11054 -cat >>conftest.$ac_ext <<_ACEOF
11055 -/* end confdefs.h. */
11056
11057 -/* Override any gcc2 internal prototype to avoid an error. */
11058 -#ifdef __cplusplus
11059 -extern "C"
11060 -#endif
11061 -/* We use char because int might match the return type of a gcc2
11062 - builtin and then its argument prototype would still apply. */
11063 -char opendir ();
11064 -int
11065 -main ()
11066 -{
11067 -opendir ();
11068 - ;
11069 - return 0;
11070 -}
11071 -_ACEOF
11072 -rm -f conftest.$ac_objext conftest$ac_exeext
11073 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11074 - (eval $ac_link) 2>conftest.er1
11075 - ac_status=$?
11076 - grep -v '^ *+' conftest.er1 >conftest.err
11077 - rm -f conftest.er1
11078 - cat conftest.err >&5
11079 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
11080 - (exit $ac_status); } &&
11081 - { ac_try='test -z "$ac_c_werror_flag"
11082 - || test ! -s conftest.err'
11083 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11084 - (eval $ac_try) 2>&5
11085 - ac_status=$?
11086 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
11087 - (exit $ac_status); }; } &&
11088 - { ac_try='test -s conftest$ac_exeext'
11089 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11090 - (eval $ac_try) 2>&5
11091 - ac_status=$?
11092 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
11093 - (exit $ac_status); }; }; then
11094 - ac_cv_search_opendir="-l$ac_lib"
11095 -break
11096 -else
11097 - echo "$as_me: failed program was:" >&5
11098 -sed 's/^/| /' conftest.$ac_ext >&5
11099 +fi
11100
11101 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11102 + conftest$ac_exeext
11103 + if test "${ac_cv_search_opendir+set}" = set; then
11104 + break
11105 fi
11106 -rm -f conftest.err conftest.$ac_objext \
11107 - conftest$ac_exeext conftest.$ac_ext
11108 - done
11109 +done
11110 +if test "${ac_cv_search_opendir+set}" = set; then
11111 + :
11112 +else
11113 + ac_cv_search_opendir=no
11114 fi
11115 +rm conftest.$ac_ext
11116 LIBS=$ac_func_search_save_LIBS
11117 fi
11118 -echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
11119 -echo "${ECHO_T}$ac_cv_search_opendir" >&6
11120 -if test "$ac_cv_search_opendir" != no; then
11121 - test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
11122 +{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
11123 +echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
11124 +ac_res=$ac_cv_search_opendir
11125 +if test "$ac_res" != no; then
11126 + test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11127
11128 fi
11129
11130 fi
11131
11132 -echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
11133 -echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6
11134 +{ echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
11135 +echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6; }
11136 if test "${gcc_cv_header_string+set}" = set; then
11137 echo $ECHO_N "(cached) $ECHO_C" >&6
11138 else
11139 @@ -10177,38 +10648,34 @@ main ()
11140 }
11141 _ACEOF
11142 rm -f conftest.$ac_objext
11143 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11144 - (eval $ac_compile) 2>conftest.er1
11145 +if { (ac_try="$ac_compile"
11146 +case "(($ac_try" in
11147 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11148 + *) ac_try_echo=$ac_try;;
11149 +esac
11150 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11151 + (eval "$ac_compile") 2>conftest.er1
11152 ac_status=$?
11153 grep -v '^ *+' conftest.er1 >conftest.err
11154 rm -f conftest.er1
11155 cat conftest.err >&5
11156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11157 - (exit $ac_status); } &&
11158 - { ac_try='test -z "$ac_c_werror_flag"
11159 - || test ! -s conftest.err'
11160 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11161 - (eval $ac_try) 2>&5
11162 - ac_status=$?
11163 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
11164 - (exit $ac_status); }; } &&
11165 - { ac_try='test -s conftest.$ac_objext'
11166 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11167 - (eval $ac_try) 2>&5
11168 - ac_status=$?
11169 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
11170 - (exit $ac_status); }; }; then
11171 + (exit $ac_status); } && {
11172 + test -z "$ac_c_werror_flag" ||
11173 + test ! -s conftest.err
11174 + } && test -s conftest.$ac_objext; then
11175 gcc_cv_header_string=yes
11176 else
11177 echo "$as_me: failed program was:" >&5
11178 sed 's/^/| /' conftest.$ac_ext >&5
11179
11180 -gcc_cv_header_string=no
11181 + gcc_cv_header_string=no
11182 fi
11183 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11184 +
11185 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11186 fi
11187 -echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
11188 -echo "${ECHO_T}$gcc_cv_header_string" >&6
11189 +{ echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
11190 +echo "${ECHO_T}$gcc_cv_header_string" >&6; }
11191 if test $gcc_cv_header_string = yes; then
11192
11193 cat >>confdefs.h <<\_ACEOF
11194 @@ -10227,9 +10694,9 @@ fi
11195 for ac_func in fcntl getpagesize setitimer sysconf fdopen getuid getgid
11196 do
11197 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11198 -echo "$as_me:$LINENO: checking for $ac_func" >&5
11199 -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11200 -if eval "test \"\${$as_ac_var+set}\" = set"; then
11201 +{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11202 +echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11203 +if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11204 echo $ECHO_N "(cached) $ECHO_C" >&6
11205 else
11206 cat >conftest.$ac_ext <<_ACEOF
11207 @@ -10255,68 +10722,60 @@ cat >>conftest.$ac_ext <<_ACEOF
11208
11209 #undef $ac_func
11210
11211 -/* Override any gcc2 internal prototype to avoid an error. */
11212 +/* Override any GCC internal prototype to avoid an error.
11213 + Use char because int might match the return type of a GCC
11214 + builtin and then its argument prototype would still apply. */
11215 #ifdef __cplusplus
11216 extern "C"
11217 -{
11218 #endif
11219 -/* We use char because int might match the return type of a gcc2
11220 - builtin and then its argument prototype would still apply. */
11221 char $ac_func ();
11222 /* The GNU C library defines this for functions which it implements
11223 to always fail with ENOSYS. Some functions are actually named
11224 something starting with __ and the normal name is an alias. */
11225 -#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11226 +#if defined __stub_$ac_func || defined __stub___$ac_func
11227 choke me
11228 -#else
11229 -char (*f) () = $ac_func;
11230 -#endif
11231 -#ifdef __cplusplus
11232 -}
11233 #endif
11234
11235 int
11236 main ()
11237 {
11238 -return f != $ac_func;
11239 +return $ac_func ();
11240 ;
11241 return 0;
11242 }
11243 _ACEOF
11244 rm -f conftest.$ac_objext conftest$ac_exeext
11245 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11246 - (eval $ac_link) 2>conftest.er1
11247 +if { (ac_try="$ac_link"
11248 +case "(($ac_try" in
11249 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11250 + *) ac_try_echo=$ac_try;;
11251 +esac
11252 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11253 + (eval "$ac_link") 2>conftest.er1
11254 ac_status=$?
11255 grep -v '^ *+' conftest.er1 >conftest.err
11256 rm -f conftest.er1
11257 cat conftest.err >&5
11258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11259 - (exit $ac_status); } &&
11260 - { ac_try='test -z "$ac_c_werror_flag"
11261 - || test ! -s conftest.err'
11262 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11263 - (eval $ac_try) 2>&5
11264 - ac_status=$?
11265 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
11266 - (exit $ac_status); }; } &&
11267 - { ac_try='test -s conftest$ac_exeext'
11268 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11269 - (eval $ac_try) 2>&5
11270 - ac_status=$?
11271 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
11272 - (exit $ac_status); }; }; then
11273 + (exit $ac_status); } && {
11274 + test -z "$ac_c_werror_flag" ||
11275 + test ! -s conftest.err
11276 + } && test -s conftest$ac_exeext &&
11277 + $as_test_x conftest$ac_exeext; then
11278 eval "$as_ac_var=yes"
11279 else
11280 echo "$as_me: failed program was:" >&5
11281 sed 's/^/| /' conftest.$ac_ext >&5
11282
11283 -eval "$as_ac_var=no"
11284 + eval "$as_ac_var=no"
11285 fi
11286 -rm -f conftest.err conftest.$ac_objext \
11287 +
11288 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11289 conftest$ac_exeext conftest.$ac_ext
11290 fi
11291 -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11292 -echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11293 +ac_res=`eval echo '${'$as_ac_var'}'`
11294 + { echo "$as_me:$LINENO: result: $ac_res" >&5
11295 +echo "${ECHO_T}$ac_res" >&6; }
11296 if test `eval echo '${'$as_ac_var'}'` = yes; then
11297 cat >>confdefs.h <<_ACEOF
11298 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11299 @@ -10329,9 +10788,9 @@ done
11300 for ac_func in strtoull
11301 do
11302 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11303 -echo "$as_me:$LINENO: checking for $ac_func" >&5
11304 -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11305 -if eval "test \"\${$as_ac_var+set}\" = set"; then
11306 +{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11307 +echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11308 +if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11309 echo $ECHO_N "(cached) $ECHO_C" >&6
11310 else
11311 cat >conftest.$ac_ext <<_ACEOF
11312 @@ -10357,68 +10816,60 @@ cat >>conftest.$ac_ext <<_ACEOF
11313
11314 #undef $ac_func
11315
11316 -/* Override any gcc2 internal prototype to avoid an error. */
11317 +/* Override any GCC internal prototype to avoid an error.
11318 + Use char because int might match the return type of a GCC
11319 + builtin and then its argument prototype would still apply. */
11320 #ifdef __cplusplus
11321 extern "C"
11322 -{
11323 #endif
11324 -/* We use char because int might match the return type of a gcc2
11325 - builtin and then its argument prototype would still apply. */
11326 char $ac_func ();
11327 /* The GNU C library defines this for functions which it implements
11328 to always fail with ENOSYS. Some functions are actually named
11329 something starting with __ and the normal name is an alias. */
11330 -#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11331 +#if defined __stub_$ac_func || defined __stub___$ac_func
11332 choke me
11333 -#else
11334 -char (*f) () = $ac_func;
11335 -#endif
11336 -#ifdef __cplusplus
11337 -}
11338 #endif
11339
11340 int
11341 main ()
11342 {
11343 -return f != $ac_func;
11344 +return $ac_func ();
11345 ;
11346 return 0;
11347 }
11348 _ACEOF
11349 rm -f conftest.$ac_objext conftest$ac_exeext
11350 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11351 - (eval $ac_link) 2>conftest.er1
11352 +if { (ac_try="$ac_link"
11353 +case "(($ac_try" in
11354 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11355 + *) ac_try_echo=$ac_try;;
11356 +esac
11357 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11358 + (eval "$ac_link") 2>conftest.er1
11359 ac_status=$?
11360 grep -v '^ *+' conftest.er1 >conftest.err
11361 rm -f conftest.er1
11362 cat conftest.err >&5
11363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11364 - (exit $ac_status); } &&
11365 - { ac_try='test -z "$ac_c_werror_flag"
11366 - || test ! -s conftest.err'
11367 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11368 - (eval $ac_try) 2>&5
11369 - ac_status=$?
11370 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
11371 - (exit $ac_status); }; } &&
11372 - { ac_try='test -s conftest$ac_exeext'
11373 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11374 - (eval $ac_try) 2>&5
11375 - ac_status=$?
11376 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
11377 - (exit $ac_status); }; }; then
11378 + (exit $ac_status); } && {
11379 + test -z "$ac_c_werror_flag" ||
11380 + test ! -s conftest.err
11381 + } && test -s conftest$ac_exeext &&
11382 + $as_test_x conftest$ac_exeext; then
11383 eval "$as_ac_var=yes"
11384 else
11385 echo "$as_me: failed program was:" >&5
11386 sed 's/^/| /' conftest.$ac_ext >&5
11387
11388 -eval "$as_ac_var=no"
11389 + eval "$as_ac_var=no"
11390 fi
11391 -rm -f conftest.err conftest.$ac_objext \
11392 +
11393 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11394 conftest$ac_exeext conftest.$ac_ext
11395 fi
11396 -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11397 -echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11398 +ac_res=`eval echo '${'$as_ac_var'}'`
11399 + { echo "$as_me:$LINENO: result: $ac_res" >&5
11400 +echo "${ECHO_T}$ac_res" >&6; }
11401 if test `eval echo '${'$as_ac_var'}'` = yes; then
11402 cat >>confdefs.h <<_ACEOF
11403 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11404 @@ -10428,8 +10879,8 @@ fi
11405 done
11406
11407
11408 -echo "$as_me:$LINENO: checking whether basename is declared" >&5
11409 -echo $ECHO_N "checking whether basename is declared... $ECHO_C" >&6
11410 +{ echo "$as_me:$LINENO: checking whether basename is declared" >&5
11411 +echo $ECHO_N "checking whether basename is declared... $ECHO_C" >&6; }
11412 if test "${ac_cv_have_decl_basename+set}" = set; then
11413 echo $ECHO_N "(cached) $ECHO_C" >&6
11414 else
11415 @@ -10444,7 +10895,7 @@ int
11416 main ()
11417 {
11418 #ifndef basename
11419 - char *p = (char *) basename;
11420 + (void) basename;
11421 #endif
11422
11423 ;
11424 @@ -10452,38 +10903,34 @@ main ()
11425 }
11426 _ACEOF
11427 rm -f conftest.$ac_objext
11428 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11429 - (eval $ac_compile) 2>conftest.er1
11430 +if { (ac_try="$ac_compile"
11431 +case "(($ac_try" in
11432 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11433 + *) ac_try_echo=$ac_try;;
11434 +esac
11435 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11436 + (eval "$ac_compile") 2>conftest.er1
11437 ac_status=$?
11438 grep -v '^ *+' conftest.er1 >conftest.err
11439 rm -f conftest.er1
11440 cat conftest.err >&5
11441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11442 - (exit $ac_status); } &&
11443 - { ac_try='test -z "$ac_c_werror_flag"
11444 - || test ! -s conftest.err'
11445 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11446 - (eval $ac_try) 2>&5
11447 - ac_status=$?
11448 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
11449 - (exit $ac_status); }; } &&
11450 - { ac_try='test -s conftest.$ac_objext'
11451 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11452 - (eval $ac_try) 2>&5
11453 - ac_status=$?
11454 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
11455 - (exit $ac_status); }; }; then
11456 + (exit $ac_status); } && {
11457 + test -z "$ac_c_werror_flag" ||
11458 + test ! -s conftest.err
11459 + } && test -s conftest.$ac_objext; then
11460 ac_cv_have_decl_basename=yes
11461 else
11462 echo "$as_me: failed program was:" >&5
11463 sed 's/^/| /' conftest.$ac_ext >&5
11464
11465 -ac_cv_have_decl_basename=no
11466 + ac_cv_have_decl_basename=no
11467 fi
11468 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11469 +
11470 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11471 fi
11472 -echo "$as_me:$LINENO: result: $ac_cv_have_decl_basename" >&5
11473 -echo "${ECHO_T}$ac_cv_have_decl_basename" >&6
11474 +{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_basename" >&5
11475 +echo "${ECHO_T}$ac_cv_have_decl_basename" >&6; }
11476 if test $ac_cv_have_decl_basename = yes; then
11477
11478 cat >>confdefs.h <<_ACEOF
11479 @@ -10500,8 +10947,8 @@ _ACEOF
11480 fi
11481
11482
11483 -echo "$as_me:$LINENO: checking whether ftello is declared" >&5
11484 -echo $ECHO_N "checking whether ftello is declared... $ECHO_C" >&6
11485 +{ echo "$as_me:$LINENO: checking whether ftello is declared" >&5
11486 +echo $ECHO_N "checking whether ftello is declared... $ECHO_C" >&6; }
11487 if test "${ac_cv_have_decl_ftello+set}" = set; then
11488 echo $ECHO_N "(cached) $ECHO_C" >&6
11489 else
11490 @@ -10516,7 +10963,7 @@ int
11491 main ()
11492 {
11493 #ifndef ftello
11494 - char *p = (char *) ftello;
11495 + (void) ftello;
11496 #endif
11497
11498 ;
11499 @@ -10524,38 +10971,34 @@ main ()
11500 }
11501 _ACEOF
11502 rm -f conftest.$ac_objext
11503 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11504 - (eval $ac_compile) 2>conftest.er1
11505 +if { (ac_try="$ac_compile"
11506 +case "(($ac_try" in
11507 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11508 + *) ac_try_echo=$ac_try;;
11509 +esac
11510 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11511 + (eval "$ac_compile") 2>conftest.er1
11512 ac_status=$?
11513 grep -v '^ *+' conftest.er1 >conftest.err
11514 rm -f conftest.er1
11515 cat conftest.err >&5
11516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11517 - (exit $ac_status); } &&
11518 - { ac_try='test -z "$ac_c_werror_flag"
11519 - || test ! -s conftest.err'
11520 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11521 - (eval $ac_try) 2>&5
11522 - ac_status=$?
11523 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
11524 - (exit $ac_status); }; } &&
11525 - { ac_try='test -s conftest.$ac_objext'
11526 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11527 - (eval $ac_try) 2>&5
11528 - ac_status=$?
11529 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
11530 - (exit $ac_status); }; }; then
11531 + (exit $ac_status); } && {
11532 + test -z "$ac_c_werror_flag" ||
11533 + test ! -s conftest.err
11534 + } && test -s conftest.$ac_objext; then
11535 ac_cv_have_decl_ftello=yes
11536 else
11537 echo "$as_me: failed program was:" >&5
11538 sed 's/^/| /' conftest.$ac_ext >&5
11539
11540 -ac_cv_have_decl_ftello=no
11541 + ac_cv_have_decl_ftello=no
11542 fi
11543 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11544 +
11545 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11546 fi
11547 -echo "$as_me:$LINENO: result: $ac_cv_have_decl_ftello" >&5
11548 -echo "${ECHO_T}$ac_cv_have_decl_ftello" >&6
11549 +{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_ftello" >&5
11550 +echo "${ECHO_T}$ac_cv_have_decl_ftello" >&6; }
11551 if test $ac_cv_have_decl_ftello = yes; then
11552
11553 cat >>confdefs.h <<_ACEOF
11554 @@ -10572,8 +11015,8 @@ _ACEOF
11555 fi
11556
11557
11558 -echo "$as_me:$LINENO: checking whether ftello64 is declared" >&5
11559 -echo $ECHO_N "checking whether ftello64 is declared... $ECHO_C" >&6
11560 +{ echo "$as_me:$LINENO: checking whether ftello64 is declared" >&5
11561 +echo $ECHO_N "checking whether ftello64 is declared... $ECHO_C" >&6; }
11562 if test "${ac_cv_have_decl_ftello64+set}" = set; then
11563 echo $ECHO_N "(cached) $ECHO_C" >&6
11564 else
11565 @@ -10588,7 +11031,7 @@ int
11566 main ()
11567 {
11568 #ifndef ftello64
11569 - char *p = (char *) ftello64;
11570 + (void) ftello64;
11571 #endif
11572
11573 ;
11574 @@ -10596,38 +11039,34 @@ main ()
11575 }
11576 _ACEOF
11577 rm -f conftest.$ac_objext
11578 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11579 - (eval $ac_compile) 2>conftest.er1
11580 +if { (ac_try="$ac_compile"
11581 +case "(($ac_try" in
11582 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11583 + *) ac_try_echo=$ac_try;;
11584 +esac
11585 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11586 + (eval "$ac_compile") 2>conftest.er1
11587 ac_status=$?
11588 grep -v '^ *+' conftest.er1 >conftest.err
11589 rm -f conftest.er1
11590 cat conftest.err >&5
11591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11592 - (exit $ac_status); } &&
11593 - { ac_try='test -z "$ac_c_werror_flag"
11594 - || test ! -s conftest.err'
11595 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11596 - (eval $ac_try) 2>&5
11597 - ac_status=$?
11598 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
11599 - (exit $ac_status); }; } &&
11600 - { ac_try='test -s conftest.$ac_objext'
11601 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11602 - (eval $ac_try) 2>&5
11603 - ac_status=$?
11604 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
11605 - (exit $ac_status); }; }; then
11606 + (exit $ac_status); } && {
11607 + test -z "$ac_c_werror_flag" ||
11608 + test ! -s conftest.err
11609 + } && test -s conftest.$ac_objext; then
11610 ac_cv_have_decl_ftello64=yes
11611 else
11612 echo "$as_me: failed program was:" >&5
11613 sed 's/^/| /' conftest.$ac_ext >&5
11614
11615 -ac_cv_have_decl_ftello64=no
11616 + ac_cv_have_decl_ftello64=no
11617 fi
11618 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11619 +
11620 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11621 fi
11622 -echo "$as_me:$LINENO: result: $ac_cv_have_decl_ftello64" >&5
11623 -echo "${ECHO_T}$ac_cv_have_decl_ftello64" >&6
11624 +{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_ftello64" >&5
11625 +echo "${ECHO_T}$ac_cv_have_decl_ftello64" >&6; }
11626 if test $ac_cv_have_decl_ftello64 = yes; then
11627
11628 cat >>confdefs.h <<_ACEOF
11629 @@ -10644,8 +11083,8 @@ _ACEOF
11630 fi
11631
11632
11633 -echo "$as_me:$LINENO: checking whether fseeko is declared" >&5
11634 -echo $ECHO_N "checking whether fseeko is declared... $ECHO_C" >&6
11635 +{ echo "$as_me:$LINENO: checking whether fseeko is declared" >&5
11636 +echo $ECHO_N "checking whether fseeko is declared... $ECHO_C" >&6; }
11637 if test "${ac_cv_have_decl_fseeko+set}" = set; then
11638 echo $ECHO_N "(cached) $ECHO_C" >&6
11639 else
11640 @@ -10660,7 +11099,7 @@ int
11641 main ()
11642 {
11643 #ifndef fseeko
11644 - char *p = (char *) fseeko;
11645 + (void) fseeko;
11646 #endif
11647
11648 ;
11649 @@ -10668,38 +11107,34 @@ main ()
11650 }
11651 _ACEOF
11652 rm -f conftest.$ac_objext
11653 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11654 - (eval $ac_compile) 2>conftest.er1
11655 +if { (ac_try="$ac_compile"
11656 +case "(($ac_try" in
11657 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11658 + *) ac_try_echo=$ac_try;;
11659 +esac
11660 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11661 + (eval "$ac_compile") 2>conftest.er1
11662 ac_status=$?
11663 grep -v '^ *+' conftest.er1 >conftest.err
11664 rm -f conftest.er1
11665 cat conftest.err >&5
11666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11667 - (exit $ac_status); } &&
11668 - { ac_try='test -z "$ac_c_werror_flag"
11669 - || test ! -s conftest.err'
11670 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11671 - (eval $ac_try) 2>&5
11672 - ac_status=$?
11673 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
11674 - (exit $ac_status); }; } &&
11675 - { ac_try='test -s conftest.$ac_objext'
11676 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11677 - (eval $ac_try) 2>&5
11678 - ac_status=$?
11679 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
11680 - (exit $ac_status); }; }; then
11681 + (exit $ac_status); } && {
11682 + test -z "$ac_c_werror_flag" ||
11683 + test ! -s conftest.err
11684 + } && test -s conftest.$ac_objext; then
11685 ac_cv_have_decl_fseeko=yes
11686 else
11687 echo "$as_me: failed program was:" >&5
11688 sed 's/^/| /' conftest.$ac_ext >&5
11689
11690 -ac_cv_have_decl_fseeko=no
11691 + ac_cv_have_decl_fseeko=no
11692 fi
11693 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11694 +
11695 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11696 fi
11697 -echo "$as_me:$LINENO: result: $ac_cv_have_decl_fseeko" >&5
11698 -echo "${ECHO_T}$ac_cv_have_decl_fseeko" >&6
11699 +{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_fseeko" >&5
11700 +echo "${ECHO_T}$ac_cv_have_decl_fseeko" >&6; }
11701 if test $ac_cv_have_decl_fseeko = yes; then
11702
11703 cat >>confdefs.h <<_ACEOF
11704 @@ -10716,8 +11151,8 @@ _ACEOF
11705 fi
11706
11707
11708 -echo "$as_me:$LINENO: checking whether fseeko64 is declared" >&5
11709 -echo $ECHO_N "checking whether fseeko64 is declared... $ECHO_C" >&6
11710 +{ echo "$as_me:$LINENO: checking whether fseeko64 is declared" >&5
11711 +echo $ECHO_N "checking whether fseeko64 is declared... $ECHO_C" >&6; }
11712 if test "${ac_cv_have_decl_fseeko64+set}" = set; then
11713 echo $ECHO_N "(cached) $ECHO_C" >&6
11714 else
11715 @@ -10732,7 +11167,7 @@ int
11716 main ()
11717 {
11718 #ifndef fseeko64
11719 - char *p = (char *) fseeko64;
11720 + (void) fseeko64;
11721 #endif
11722
11723 ;
11724 @@ -10740,38 +11175,34 @@ main ()
11725 }
11726 _ACEOF
11727 rm -f conftest.$ac_objext
11728 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11729 - (eval $ac_compile) 2>conftest.er1
11730 +if { (ac_try="$ac_compile"
11731 +case "(($ac_try" in
11732 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11733 + *) ac_try_echo=$ac_try;;
11734 +esac
11735 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11736 + (eval "$ac_compile") 2>conftest.er1
11737 ac_status=$?
11738 grep -v '^ *+' conftest.er1 >conftest.err
11739 rm -f conftest.er1
11740 cat conftest.err >&5
11741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11742 - (exit $ac_status); } &&
11743 - { ac_try='test -z "$ac_c_werror_flag"
11744 - || test ! -s conftest.err'
11745 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11746 - (eval $ac_try) 2>&5
11747 - ac_status=$?
11748 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
11749 - (exit $ac_status); }; } &&
11750 - { ac_try='test -s conftest.$ac_objext'
11751 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11752 - (eval $ac_try) 2>&5
11753 - ac_status=$?
11754 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
11755 - (exit $ac_status); }; }; then
11756 + (exit $ac_status); } && {
11757 + test -z "$ac_c_werror_flag" ||
11758 + test ! -s conftest.err
11759 + } && test -s conftest.$ac_objext; then
11760 ac_cv_have_decl_fseeko64=yes
11761 else
11762 echo "$as_me: failed program was:" >&5
11763 sed 's/^/| /' conftest.$ac_ext >&5
11764
11765 -ac_cv_have_decl_fseeko64=no
11766 + ac_cv_have_decl_fseeko64=no
11767 fi
11768 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11769 +
11770 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11771 fi
11772 -echo "$as_me:$LINENO: result: $ac_cv_have_decl_fseeko64" >&5
11773 -echo "${ECHO_T}$ac_cv_have_decl_fseeko64" >&6
11774 +{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_fseeko64" >&5
11775 +echo "${ECHO_T}$ac_cv_have_decl_fseeko64" >&6; }
11776 if test $ac_cv_have_decl_fseeko64 = yes; then
11777
11778 cat >>confdefs.h <<_ACEOF
11779 @@ -10799,8 +11230,8 @@ _ACEOF
11780 ;;
11781 esac
11782
11783 -echo "$as_me:$LINENO: checking whether ffs is declared" >&5
11784 -echo $ECHO_N "checking whether ffs is declared... $ECHO_C" >&6
11785 +{ echo "$as_me:$LINENO: checking whether ffs is declared" >&5
11786 +echo $ECHO_N "checking whether ffs is declared... $ECHO_C" >&6; }
11787 if test "${ac_cv_have_decl_ffs+set}" = set; then
11788 echo $ECHO_N "(cached) $ECHO_C" >&6
11789 else
11790 @@ -10815,7 +11246,7 @@ int
11791 main ()
11792 {
11793 #ifndef ffs
11794 - char *p = (char *) ffs;
11795 + (void) ffs;
11796 #endif
11797
11798 ;
11799 @@ -10823,38 +11254,34 @@ main ()
11800 }
11801 _ACEOF
11802 rm -f conftest.$ac_objext
11803 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11804 - (eval $ac_compile) 2>conftest.er1
11805 +if { (ac_try="$ac_compile"
11806 +case "(($ac_try" in
11807 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11808 + *) ac_try_echo=$ac_try;;
11809 +esac
11810 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11811 + (eval "$ac_compile") 2>conftest.er1
11812 ac_status=$?
11813 grep -v '^ *+' conftest.er1 >conftest.err
11814 rm -f conftest.er1
11815 cat conftest.err >&5
11816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11817 - (exit $ac_status); } &&
11818 - { ac_try='test -z "$ac_c_werror_flag"
11819 - || test ! -s conftest.err'
11820 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11821 - (eval $ac_try) 2>&5
11822 - ac_status=$?
11823 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
11824 - (exit $ac_status); }; } &&
11825 - { ac_try='test -s conftest.$ac_objext'
11826 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11827 - (eval $ac_try) 2>&5
11828 - ac_status=$?
11829 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
11830 - (exit $ac_status); }; }; then
11831 + (exit $ac_status); } && {
11832 + test -z "$ac_c_werror_flag" ||
11833 + test ! -s conftest.err
11834 + } && test -s conftest.$ac_objext; then
11835 ac_cv_have_decl_ffs=yes
11836 else
11837 echo "$as_me: failed program was:" >&5
11838 sed 's/^/| /' conftest.$ac_ext >&5
11839
11840 -ac_cv_have_decl_ffs=no
11841 + ac_cv_have_decl_ffs=no
11842 fi
11843 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11844 +
11845 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11846 fi
11847 -echo "$as_me:$LINENO: result: $ac_cv_have_decl_ffs" >&5
11848 -echo "${ECHO_T}$ac_cv_have_decl_ffs" >&6
11849 +{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_ffs" >&5
11850 +echo "${ECHO_T}$ac_cv_have_decl_ffs" >&6; }
11851 if test $ac_cv_have_decl_ffs = yes; then
11852
11853 cat >>confdefs.h <<_ACEOF
11854 @@ -10871,8 +11298,8 @@ _ACEOF
11855 fi
11856
11857
11858 -echo "$as_me:$LINENO: checking whether free is declared" >&5
11859 -echo $ECHO_N "checking whether free is declared... $ECHO_C" >&6
11860 +{ echo "$as_me:$LINENO: checking whether free is declared" >&5
11861 +echo $ECHO_N "checking whether free is declared... $ECHO_C" >&6; }
11862 if test "${ac_cv_have_decl_free+set}" = set; then
11863 echo $ECHO_N "(cached) $ECHO_C" >&6
11864 else
11865 @@ -10887,7 +11314,7 @@ int
11866 main ()
11867 {
11868 #ifndef free
11869 - char *p = (char *) free;
11870 + (void) free;
11871 #endif
11872
11873 ;
11874 @@ -10895,38 +11322,34 @@ main ()
11875 }
11876 _ACEOF
11877 rm -f conftest.$ac_objext
11878 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11879 - (eval $ac_compile) 2>conftest.er1
11880 +if { (ac_try="$ac_compile"
11881 +case "(($ac_try" in
11882 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11883 + *) ac_try_echo=$ac_try;;
11884 +esac
11885 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11886 + (eval "$ac_compile") 2>conftest.er1
11887 ac_status=$?
11888 grep -v '^ *+' conftest.er1 >conftest.err
11889 rm -f conftest.er1
11890 cat conftest.err >&5
11891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11892 - (exit $ac_status); } &&
11893 - { ac_try='test -z "$ac_c_werror_flag"
11894 - || test ! -s conftest.err'
11895 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11896 - (eval $ac_try) 2>&5
11897 - ac_status=$?
11898 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
11899 - (exit $ac_status); }; } &&
11900 - { ac_try='test -s conftest.$ac_objext'
11901 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11902 - (eval $ac_try) 2>&5
11903 - ac_status=$?
11904 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
11905 - (exit $ac_status); }; }; then
11906 + (exit $ac_status); } && {
11907 + test -z "$ac_c_werror_flag" ||
11908 + test ! -s conftest.err
11909 + } && test -s conftest.$ac_objext; then
11910 ac_cv_have_decl_free=yes
11911 else
11912 echo "$as_me: failed program was:" >&5
11913 sed 's/^/| /' conftest.$ac_ext >&5
11914
11915 -ac_cv_have_decl_free=no
11916 + ac_cv_have_decl_free=no
11917 fi
11918 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11919 +
11920 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11921 fi
11922 -echo "$as_me:$LINENO: result: $ac_cv_have_decl_free" >&5
11923 -echo "${ECHO_T}$ac_cv_have_decl_free" >&6
11924 +{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_free" >&5
11925 +echo "${ECHO_T}$ac_cv_have_decl_free" >&6; }
11926 if test $ac_cv_have_decl_free = yes; then
11927
11928 cat >>confdefs.h <<_ACEOF
11929 @@ -10943,8 +11366,8 @@ _ACEOF
11930 fi
11931
11932
11933 -echo "$as_me:$LINENO: checking whether getenv is declared" >&5
11934 -echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6
11935 +{ echo "$as_me:$LINENO: checking whether getenv is declared" >&5
11936 +echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6; }
11937 if test "${ac_cv_have_decl_getenv+set}" = set; then
11938 echo $ECHO_N "(cached) $ECHO_C" >&6
11939 else
11940 @@ -10959,7 +11382,7 @@ int
11941 main ()
11942 {
11943 #ifndef getenv
11944 - char *p = (char *) getenv;
11945 + (void) getenv;
11946 #endif
11947
11948 ;
11949 @@ -10967,38 +11390,34 @@ main ()
11950 }
11951 _ACEOF
11952 rm -f conftest.$ac_objext
11953 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11954 - (eval $ac_compile) 2>conftest.er1
11955 +if { (ac_try="$ac_compile"
11956 +case "(($ac_try" in
11957 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11958 + *) ac_try_echo=$ac_try;;
11959 +esac
11960 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11961 + (eval "$ac_compile") 2>conftest.er1
11962 ac_status=$?
11963 grep -v '^ *+' conftest.er1 >conftest.err
11964 rm -f conftest.er1
11965 cat conftest.err >&5
11966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11967 - (exit $ac_status); } &&
11968 - { ac_try='test -z "$ac_c_werror_flag"
11969 - || test ! -s conftest.err'
11970 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11971 - (eval $ac_try) 2>&5
11972 - ac_status=$?
11973 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
11974 - (exit $ac_status); }; } &&
11975 - { ac_try='test -s conftest.$ac_objext'
11976 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11977 - (eval $ac_try) 2>&5
11978 - ac_status=$?
11979 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
11980 - (exit $ac_status); }; }; then
11981 + (exit $ac_status); } && {
11982 + test -z "$ac_c_werror_flag" ||
11983 + test ! -s conftest.err
11984 + } && test -s conftest.$ac_objext; then
11985 ac_cv_have_decl_getenv=yes
11986 else
11987 echo "$as_me: failed program was:" >&5
11988 sed 's/^/| /' conftest.$ac_ext >&5
11989
11990 -ac_cv_have_decl_getenv=no
11991 + ac_cv_have_decl_getenv=no
11992 fi
11993 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11994 +
11995 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11996 fi
11997 -echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
11998 -echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6
11999 +{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
12000 +echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6; }
12001 if test $ac_cv_have_decl_getenv = yes; then
12002
12003 cat >>confdefs.h <<_ACEOF
12004 @@ -11015,8 +11434,8 @@ _ACEOF
12005 fi
12006
12007
12008 -echo "$as_me:$LINENO: checking whether malloc is declared" >&5
12009 -echo $ECHO_N "checking whether malloc is declared... $ECHO_C" >&6
12010 +{ echo "$as_me:$LINENO: checking whether malloc is declared" >&5
12011 +echo $ECHO_N "checking whether malloc is declared... $ECHO_C" >&6; }
12012 if test "${ac_cv_have_decl_malloc+set}" = set; then
12013 echo $ECHO_N "(cached) $ECHO_C" >&6
12014 else
12015 @@ -11031,7 +11450,7 @@ int
12016 main ()
12017 {
12018 #ifndef malloc
12019 - char *p = (char *) malloc;
12020 + (void) malloc;
12021 #endif
12022
12023 ;
12024 @@ -11039,38 +11458,34 @@ main ()
12025 }
12026 _ACEOF
12027 rm -f conftest.$ac_objext
12028 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12029 - (eval $ac_compile) 2>conftest.er1
12030 +if { (ac_try="$ac_compile"
12031 +case "(($ac_try" in
12032 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12033 + *) ac_try_echo=$ac_try;;
12034 +esac
12035 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12036 + (eval "$ac_compile") 2>conftest.er1
12037 ac_status=$?
12038 grep -v '^ *+' conftest.er1 >conftest.err
12039 rm -f conftest.er1
12040 cat conftest.err >&5
12041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12042 - (exit $ac_status); } &&
12043 - { ac_try='test -z "$ac_c_werror_flag"
12044 - || test ! -s conftest.err'
12045 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12046 - (eval $ac_try) 2>&5
12047 - ac_status=$?
12048 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
12049 - (exit $ac_status); }; } &&
12050 - { ac_try='test -s conftest.$ac_objext'
12051 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12052 - (eval $ac_try) 2>&5
12053 - ac_status=$?
12054 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
12055 - (exit $ac_status); }; }; then
12056 + (exit $ac_status); } && {
12057 + test -z "$ac_c_werror_flag" ||
12058 + test ! -s conftest.err
12059 + } && test -s conftest.$ac_objext; then
12060 ac_cv_have_decl_malloc=yes
12061 else
12062 echo "$as_me: failed program was:" >&5
12063 sed 's/^/| /' conftest.$ac_ext >&5
12064
12065 -ac_cv_have_decl_malloc=no
12066 + ac_cv_have_decl_malloc=no
12067 fi
12068 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12069 +
12070 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12071 fi
12072 -echo "$as_me:$LINENO: result: $ac_cv_have_decl_malloc" >&5
12073 -echo "${ECHO_T}$ac_cv_have_decl_malloc" >&6
12074 +{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_malloc" >&5
12075 +echo "${ECHO_T}$ac_cv_have_decl_malloc" >&6; }
12076 if test $ac_cv_have_decl_malloc = yes; then
12077
12078 cat >>confdefs.h <<_ACEOF
12079 @@ -11087,8 +11502,8 @@ _ACEOF
12080 fi
12081
12082
12083 -echo "$as_me:$LINENO: checking whether realloc is declared" >&5
12084 -echo $ECHO_N "checking whether realloc is declared... $ECHO_C" >&6
12085 +{ echo "$as_me:$LINENO: checking whether realloc is declared" >&5
12086 +echo $ECHO_N "checking whether realloc is declared... $ECHO_C" >&6; }
12087 if test "${ac_cv_have_decl_realloc+set}" = set; then
12088 echo $ECHO_N "(cached) $ECHO_C" >&6
12089 else
12090 @@ -11103,7 +11518,7 @@ int
12091 main ()
12092 {
12093 #ifndef realloc
12094 - char *p = (char *) realloc;
12095 + (void) realloc;
12096 #endif
12097
12098 ;
12099 @@ -11111,38 +11526,34 @@ main ()
12100 }
12101 _ACEOF
12102 rm -f conftest.$ac_objext
12103 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12104 - (eval $ac_compile) 2>conftest.er1
12105 +if { (ac_try="$ac_compile"
12106 +case "(($ac_try" in
12107 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12108 + *) ac_try_echo=$ac_try;;
12109 +esac
12110 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12111 + (eval "$ac_compile") 2>conftest.er1
12112 ac_status=$?
12113 grep -v '^ *+' conftest.er1 >conftest.err
12114 rm -f conftest.er1
12115 cat conftest.err >&5
12116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12117 - (exit $ac_status); } &&
12118 - { ac_try='test -z "$ac_c_werror_flag"
12119 - || test ! -s conftest.err'
12120 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12121 - (eval $ac_try) 2>&5
12122 - ac_status=$?
12123 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
12124 - (exit $ac_status); }; } &&
12125 - { ac_try='test -s conftest.$ac_objext'
12126 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12127 - (eval $ac_try) 2>&5
12128 - ac_status=$?
12129 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
12130 - (exit $ac_status); }; }; then
12131 + (exit $ac_status); } && {
12132 + test -z "$ac_c_werror_flag" ||
12133 + test ! -s conftest.err
12134 + } && test -s conftest.$ac_objext; then
12135 ac_cv_have_decl_realloc=yes
12136 else
12137 echo "$as_me: failed program was:" >&5
12138 sed 's/^/| /' conftest.$ac_ext >&5
12139
12140 -ac_cv_have_decl_realloc=no
12141 + ac_cv_have_decl_realloc=no
12142 fi
12143 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12144 +
12145 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12146 fi
12147 -echo "$as_me:$LINENO: result: $ac_cv_have_decl_realloc" >&5
12148 -echo "${ECHO_T}$ac_cv_have_decl_realloc" >&6
12149 +{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_realloc" >&5
12150 +echo "${ECHO_T}$ac_cv_have_decl_realloc" >&6; }
12151 if test $ac_cv_have_decl_realloc = yes; then
12152
12153 cat >>confdefs.h <<_ACEOF
12154 @@ -11159,8 +11570,8 @@ _ACEOF
12155 fi
12156
12157
12158 -echo "$as_me:$LINENO: checking whether stpcpy is declared" >&5
12159 -echo $ECHO_N "checking whether stpcpy is declared... $ECHO_C" >&6
12160 +{ echo "$as_me:$LINENO: checking whether stpcpy is declared" >&5
12161 +echo $ECHO_N "checking whether stpcpy is declared... $ECHO_C" >&6; }
12162 if test "${ac_cv_have_decl_stpcpy+set}" = set; then
12163 echo $ECHO_N "(cached) $ECHO_C" >&6
12164 else
12165 @@ -11175,7 +11586,7 @@ int
12166 main ()
12167 {
12168 #ifndef stpcpy
12169 - char *p = (char *) stpcpy;
12170 + (void) stpcpy;
12171 #endif
12172
12173 ;
12174 @@ -11183,38 +11594,34 @@ main ()
12175 }
12176 _ACEOF
12177 rm -f conftest.$ac_objext
12178 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12179 - (eval $ac_compile) 2>conftest.er1
12180 +if { (ac_try="$ac_compile"
12181 +case "(($ac_try" in
12182 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12183 + *) ac_try_echo=$ac_try;;
12184 +esac
12185 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12186 + (eval "$ac_compile") 2>conftest.er1
12187 ac_status=$?
12188 grep -v '^ *+' conftest.er1 >conftest.err
12189 rm -f conftest.er1
12190 cat conftest.err >&5
12191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12192 - (exit $ac_status); } &&
12193 - { ac_try='test -z "$ac_c_werror_flag"
12194 - || test ! -s conftest.err'
12195 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12196 - (eval $ac_try) 2>&5
12197 - ac_status=$?
12198 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
12199 - (exit $ac_status); }; } &&
12200 - { ac_try='test -s conftest.$ac_objext'
12201 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12202 - (eval $ac_try) 2>&5
12203 - ac_status=$?
12204 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
12205 - (exit $ac_status); }; }; then
12206 + (exit $ac_status); } && {
12207 + test -z "$ac_c_werror_flag" ||
12208 + test ! -s conftest.err
12209 + } && test -s conftest.$ac_objext; then
12210 ac_cv_have_decl_stpcpy=yes
12211 else
12212 echo "$as_me: failed program was:" >&5
12213 sed 's/^/| /' conftest.$ac_ext >&5
12214
12215 -ac_cv_have_decl_stpcpy=no
12216 + ac_cv_have_decl_stpcpy=no
12217 fi
12218 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12219 +
12220 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12221 fi
12222 -echo "$as_me:$LINENO: result: $ac_cv_have_decl_stpcpy" >&5
12223 -echo "${ECHO_T}$ac_cv_have_decl_stpcpy" >&6
12224 +{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_stpcpy" >&5
12225 +echo "${ECHO_T}$ac_cv_have_decl_stpcpy" >&6; }
12226 if test $ac_cv_have_decl_stpcpy = yes; then
12227
12228 cat >>confdefs.h <<_ACEOF
12229 @@ -11231,8 +11638,8 @@ _ACEOF
12230 fi
12231
12232
12233 -echo "$as_me:$LINENO: checking whether strstr is declared" >&5
12234 -echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6
12235 +{ echo "$as_me:$LINENO: checking whether strstr is declared" >&5
12236 +echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6; }
12237 if test "${ac_cv_have_decl_strstr+set}" = set; then
12238 echo $ECHO_N "(cached) $ECHO_C" >&6
12239 else
12240 @@ -11247,7 +11654,7 @@ int
12241 main ()
12242 {
12243 #ifndef strstr
12244 - char *p = (char *) strstr;
12245 + (void) strstr;
12246 #endif
12247
12248 ;
12249 @@ -11255,38 +11662,34 @@ main ()
12250 }
12251 _ACEOF
12252 rm -f conftest.$ac_objext
12253 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12254 - (eval $ac_compile) 2>conftest.er1
12255 +if { (ac_try="$ac_compile"
12256 +case "(($ac_try" in
12257 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12258 + *) ac_try_echo=$ac_try;;
12259 +esac
12260 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12261 + (eval "$ac_compile") 2>conftest.er1
12262 ac_status=$?
12263 grep -v '^ *+' conftest.er1 >conftest.err
12264 rm -f conftest.er1
12265 cat conftest.err >&5
12266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12267 - (exit $ac_status); } &&
12268 - { ac_try='test -z "$ac_c_werror_flag"
12269 - || test ! -s conftest.err'
12270 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12271 - (eval $ac_try) 2>&5
12272 - ac_status=$?
12273 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
12274 - (exit $ac_status); }; } &&
12275 - { ac_try='test -s conftest.$ac_objext'
12276 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12277 - (eval $ac_try) 2>&5
12278 - ac_status=$?
12279 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
12280 - (exit $ac_status); }; }; then
12281 + (exit $ac_status); } && {
12282 + test -z "$ac_c_werror_flag" ||
12283 + test ! -s conftest.err
12284 + } && test -s conftest.$ac_objext; then
12285 ac_cv_have_decl_strstr=yes
12286 else
12287 echo "$as_me: failed program was:" >&5
12288 sed 's/^/| /' conftest.$ac_ext >&5
12289
12290 -ac_cv_have_decl_strstr=no
12291 + ac_cv_have_decl_strstr=no
12292 fi
12293 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12294 +
12295 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12296 fi
12297 -echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5
12298 -echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6
12299 +{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5
12300 +echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6; }
12301 if test $ac_cv_have_decl_strstr = yes; then
12302
12303 cat >>confdefs.h <<_ACEOF
12304 @@ -11303,8 +11706,8 @@ _ACEOF
12305 fi
12306
12307
12308 -echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
12309 -echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
12310 +{ echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
12311 +echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6; }
12312 if test "${ac_cv_have_decl_snprintf+set}" = set; then
12313 echo $ECHO_N "(cached) $ECHO_C" >&6
12314 else
12315 @@ -11319,7 +11722,7 @@ int
12316 main ()
12317 {
12318 #ifndef snprintf
12319 - char *p = (char *) snprintf;
12320 + (void) snprintf;
12321 #endif
12322
12323 ;
12324 @@ -11327,38 +11730,34 @@ main ()
12325 }
12326 _ACEOF
12327 rm -f conftest.$ac_objext
12328 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12329 - (eval $ac_compile) 2>conftest.er1
12330 +if { (ac_try="$ac_compile"
12331 +case "(($ac_try" in
12332 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12333 + *) ac_try_echo=$ac_try;;
12334 +esac
12335 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12336 + (eval "$ac_compile") 2>conftest.er1
12337 ac_status=$?
12338 grep -v '^ *+' conftest.er1 >conftest.err
12339 rm -f conftest.er1
12340 cat conftest.err >&5
12341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12342 - (exit $ac_status); } &&
12343 - { ac_try='test -z "$ac_c_werror_flag"
12344 - || test ! -s conftest.err'
12345 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12346 - (eval $ac_try) 2>&5
12347 - ac_status=$?
12348 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
12349 - (exit $ac_status); }; } &&
12350 - { ac_try='test -s conftest.$ac_objext'
12351 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12352 - (eval $ac_try) 2>&5
12353 - ac_status=$?
12354 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
12355 - (exit $ac_status); }; }; then
12356 + (exit $ac_status); } && {
12357 + test -z "$ac_c_werror_flag" ||
12358 + test ! -s conftest.err
12359 + } && test -s conftest.$ac_objext; then
12360 ac_cv_have_decl_snprintf=yes
12361 else
12362 echo "$as_me: failed program was:" >&5
12363 sed 's/^/| /' conftest.$ac_ext >&5
12364
12365 -ac_cv_have_decl_snprintf=no
12366 + ac_cv_have_decl_snprintf=no
12367 fi
12368 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12369 +
12370 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12371 fi
12372 -echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
12373 -echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
12374 +{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
12375 +echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6; }
12376 if test $ac_cv_have_decl_snprintf = yes; then
12377
12378 cat >>confdefs.h <<_ACEOF
12379 @@ -11375,8 +11774,8 @@ _ACEOF
12380 fi
12381
12382
12383 -echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
12384 -echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
12385 +{ echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
12386 +echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6; }
12387 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
12388 echo $ECHO_N "(cached) $ECHO_C" >&6
12389 else
12390 @@ -11391,7 +11790,7 @@ int
12391 main ()
12392 {
12393 #ifndef vsnprintf
12394 - char *p = (char *) vsnprintf;
12395 + (void) vsnprintf;
12396 #endif
12397
12398 ;
12399 @@ -11399,38 +11798,34 @@ main ()
12400 }
12401 _ACEOF
12402 rm -f conftest.$ac_objext
12403 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12404 - (eval $ac_compile) 2>conftest.er1
12405 +if { (ac_try="$ac_compile"
12406 +case "(($ac_try" in
12407 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12408 + *) ac_try_echo=$ac_try;;
12409 +esac
12410 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12411 + (eval "$ac_compile") 2>conftest.er1
12412 ac_status=$?
12413 grep -v '^ *+' conftest.er1 >conftest.err
12414 rm -f conftest.er1
12415 cat conftest.err >&5
12416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12417 - (exit $ac_status); } &&
12418 - { ac_try='test -z "$ac_c_werror_flag"
12419 - || test ! -s conftest.err'
12420 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12421 - (eval $ac_try) 2>&5
12422 - ac_status=$?
12423 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
12424 - (exit $ac_status); }; } &&
12425 - { ac_try='test -s conftest.$ac_objext'
12426 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12427 - (eval $ac_try) 2>&5
12428 - ac_status=$?
12429 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
12430 - (exit $ac_status); }; }; then
12431 + (exit $ac_status); } && {
12432 + test -z "$ac_c_werror_flag" ||
12433 + test ! -s conftest.err
12434 + } && test -s conftest.$ac_objext; then
12435 ac_cv_have_decl_vsnprintf=yes
12436 else
12437 echo "$as_me: failed program was:" >&5
12438 sed 's/^/| /' conftest.$ac_ext >&5
12439
12440 -ac_cv_have_decl_vsnprintf=no
12441 + ac_cv_have_decl_vsnprintf=no
12442 fi
12443 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12444 +
12445 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12446 fi
12447 -echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
12448 -echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
12449 +{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
12450 +echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6; }
12451 if test $ac_cv_have_decl_vsnprintf = yes; then
12452
12453 cat >>confdefs.h <<_ACEOF
12454 @@ -11609,8 +12004,8 @@ if test "${target}" = "${host}"; then
12455 COREFLAG="$COREFLAG -DAIX_CORE_DUMPX_CORE"
12456 # Not all versions of AIX with -DAIX_CORE_DUMPX_CORE
12457 # have c_impl as a member of struct core_dumpx
12458 - echo "$as_me:$LINENO: checking for c_impl in struct core_dumpx" >&5
12459 -echo $ECHO_N "checking for c_impl in struct core_dumpx... $ECHO_C" >&6
12460 + { echo "$as_me:$LINENO: checking for c_impl in struct core_dumpx" >&5
12461 +echo $ECHO_N "checking for c_impl in struct core_dumpx... $ECHO_C" >&6; }
12462 cat >conftest.$ac_ext <<_ACEOF
12463 /* confdefs.h. */
12464 _ACEOF
12465 @@ -11627,42 +12022,38 @@ struct core_dumpx c; c.c_impl = 0;
12466 }
12467 _ACEOF
12468 rm -f conftest.$ac_objext
12469 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12470 - (eval $ac_compile) 2>conftest.er1
12471 +if { (ac_try="$ac_compile"
12472 +case "(($ac_try" in
12473 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12474 + *) ac_try_echo=$ac_try;;
12475 +esac
12476 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12477 + (eval "$ac_compile") 2>conftest.er1
12478 ac_status=$?
12479 grep -v '^ *+' conftest.er1 >conftest.err
12480 rm -f conftest.er1
12481 cat conftest.err >&5
12482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12483 - (exit $ac_status); } &&
12484 - { ac_try='test -z "$ac_c_werror_flag"
12485 - || test ! -s conftest.err'
12486 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12487 - (eval $ac_try) 2>&5
12488 - ac_status=$?
12489 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
12490 - (exit $ac_status); }; } &&
12491 - { ac_try='test -s conftest.$ac_objext'
12492 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12493 - (eval $ac_try) 2>&5
12494 - ac_status=$?
12495 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
12496 - (exit $ac_status); }; }; then
12497 + (exit $ac_status); } && {
12498 + test -z "$ac_c_werror_flag" ||
12499 + test ! -s conftest.err
12500 + } && test -s conftest.$ac_objext; then
12501
12502 cat >>confdefs.h <<\_ACEOF
12503 #define HAVE_ST_C_IMPL 1
12504 _ACEOF
12505
12506 - echo "$as_me:$LINENO: result: yes" >&5
12507 -echo "${ECHO_T}yes" >&6
12508 + { echo "$as_me:$LINENO: result: yes" >&5
12509 +echo "${ECHO_T}yes" >&6; }
12510 else
12511 echo "$as_me: failed program was:" >&5
12512 sed 's/^/| /' conftest.$ac_ext >&5
12513
12514 -echo "$as_me:$LINENO: result: no" >&5
12515 -echo "${ECHO_T}no" >&6
12516 + { echo "$as_me:$LINENO: result: no" >&5
12517 +echo "${ECHO_T}no" >&6; }
12518 fi
12519 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12520 +
12521 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12522 ;;
12523 rs6000-*-aix4*) COREFILE=rs6000-core.lo ;;
12524 rs6000-*-*) COREFILE=rs6000-core.lo ;;
12525 @@ -11726,18 +12117,19 @@ rm -f conftest.err conftest.$ac_objext c
12526 for ac_header in sys/procfs.h
12527 do
12528 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12529 -if eval "test \"\${$as_ac_Header+set}\" = set"; then
12530 - echo "$as_me:$LINENO: checking for $ac_header" >&5
12531 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12532 -if eval "test \"\${$as_ac_Header+set}\" = set"; then
12533 +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12534 + { echo "$as_me:$LINENO: checking for $ac_header" >&5
12535 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12536 +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12537 echo $ECHO_N "(cached) $ECHO_C" >&6
12538 fi
12539 -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12540 -echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12541 +ac_res=`eval echo '${'$as_ac_Header'}'`
12542 + { echo "$as_me:$LINENO: result: $ac_res" >&5
12543 +echo "${ECHO_T}$ac_res" >&6; }
12544 else
12545 # Is the header compilable?
12546 -echo "$as_me:$LINENO: checking $ac_header usability" >&5
12547 -echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12548 +{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
12549 +echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12550 cat >conftest.$ac_ext <<_ACEOF
12551 /* confdefs.h. */
12552 _ACEOF
12553 @@ -11748,41 +12140,37 @@ $ac_includes_default
12554 #include <$ac_header>
12555 _ACEOF
12556 rm -f conftest.$ac_objext
12557 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12558 - (eval $ac_compile) 2>conftest.er1
12559 +if { (ac_try="$ac_compile"
12560 +case "(($ac_try" in
12561 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12562 + *) ac_try_echo=$ac_try;;
12563 +esac
12564 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12565 + (eval "$ac_compile") 2>conftest.er1
12566 ac_status=$?
12567 grep -v '^ *+' conftest.er1 >conftest.err
12568 rm -f conftest.er1
12569 cat conftest.err >&5
12570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12571 - (exit $ac_status); } &&
12572 - { ac_try='test -z "$ac_c_werror_flag"
12573 - || test ! -s conftest.err'
12574 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12575 - (eval $ac_try) 2>&5
12576 - ac_status=$?
12577 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
12578 - (exit $ac_status); }; } &&
12579 - { ac_try='test -s conftest.$ac_objext'
12580 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12581 - (eval $ac_try) 2>&5
12582 - ac_status=$?
12583 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
12584 - (exit $ac_status); }; }; then
12585 + (exit $ac_status); } && {
12586 + test -z "$ac_c_werror_flag" ||
12587 + test ! -s conftest.err
12588 + } && test -s conftest.$ac_objext; then
12589 ac_header_compiler=yes
12590 else
12591 echo "$as_me: failed program was:" >&5
12592 sed 's/^/| /' conftest.$ac_ext >&5
12593
12594 -ac_header_compiler=no
12595 + ac_header_compiler=no
12596 fi
12597 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12598 -echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12599 -echo "${ECHO_T}$ac_header_compiler" >&6
12600 +
12601 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12602 +{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12603 +echo "${ECHO_T}$ac_header_compiler" >&6; }
12604
12605 # Is the header present?
12606 -echo "$as_me:$LINENO: checking $ac_header presence" >&5
12607 -echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12608 +{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
12609 +echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12610 cat >conftest.$ac_ext <<_ACEOF
12611 /* confdefs.h. */
12612 _ACEOF
12613 @@ -11791,24 +12179,22 @@ cat >>conftest.$ac_ext <<_ACEOF
12614 /* end confdefs.h. */
12615 #include <$ac_header>
12616 _ACEOF
12617 -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12618 - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12619 +if { (ac_try="$ac_cpp conftest.$ac_ext"
12620 +case "(($ac_try" in
12621 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12622 + *) ac_try_echo=$ac_try;;
12623 +esac
12624 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12625 + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12626 ac_status=$?
12627 grep -v '^ *+' conftest.er1 >conftest.err
12628 rm -f conftest.er1
12629 cat conftest.err >&5
12630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12631 - (exit $ac_status); } >/dev/null; then
12632 - if test -s conftest.err; then
12633 - ac_cpp_err=$ac_c_preproc_warn_flag
12634 - ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12635 - else
12636 - ac_cpp_err=
12637 - fi
12638 -else
12639 - ac_cpp_err=yes
12640 -fi
12641 -if test -z "$ac_cpp_err"; then
12642 + (exit $ac_status); } >/dev/null && {
12643 + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12644 + test ! -s conftest.err
12645 + }; then
12646 ac_header_preproc=yes
12647 else
12648 echo "$as_me: failed program was:" >&5
12649 @@ -11816,9 +12202,10 @@ sed 's/^/| /' conftest.$ac_ext >&5
12650
12651 ac_header_preproc=no
12652 fi
12653 +
12654 rm -f conftest.err conftest.$ac_ext
12655 -echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12656 -echo "${ECHO_T}$ac_header_preproc" >&6
12657 +{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12658 +echo "${ECHO_T}$ac_header_preproc" >&6; }
12659
12660 # So? What about this header?
12661 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12662 @@ -11842,25 +12229,19 @@ echo "$as_me: WARNING: $ac_header: s
12663 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12664 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12665 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12666 - (
12667 - cat <<\_ASBOX
12668 -## ------------------------------------------ ##
12669 -## Report this to the AC_PACKAGE_NAME lists. ##
12670 -## ------------------------------------------ ##
12671 -_ASBOX
12672 - ) |
12673 - sed "s/^/$as_me: WARNING: /" >&2
12674 +
12675 ;;
12676 esac
12677 -echo "$as_me:$LINENO: checking for $ac_header" >&5
12678 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12679 -if eval "test \"\${$as_ac_Header+set}\" = set"; then
12680 +{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12681 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12682 +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12683 echo $ECHO_N "(cached) $ECHO_C" >&6
12684 else
12685 eval "$as_ac_Header=\$ac_header_preproc"
12686 fi
12687 -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12688 -echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12689 +ac_res=`eval echo '${'$as_ac_Header'}'`
12690 + { echo "$as_me:$LINENO: result: $ac_res" >&5
12691 +echo "${ECHO_T}$ac_res" >&6; }
12692
12693 fi
12694 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12695 @@ -11873,8 +12254,8 @@ fi
12696 done
12697
12698 if test "$ac_cv_header_sys_procfs_h" = yes; then
12699 - echo "$as_me:$LINENO: checking for prstatus_t in sys/procfs.h" >&5
12700 -echo $ECHO_N "checking for prstatus_t in sys/procfs.h... $ECHO_C" >&6
12701 + { echo "$as_me:$LINENO: checking for prstatus_t in sys/procfs.h" >&5
12702 +echo $ECHO_N "checking for prstatus_t in sys/procfs.h... $ECHO_C" >&6; }
12703 if test "${bfd_cv_have_sys_procfs_type_prstatus_t+set}" = set; then
12704 echo $ECHO_N "(cached) $ECHO_C" >&6
12705 else
12706 @@ -11896,36 +12277,32 @@ prstatus_t avar
12707 }
12708 _ACEOF
12709 rm -f conftest.$ac_objext
12710 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12711 - (eval $ac_compile) 2>conftest.er1
12712 +if { (ac_try="$ac_compile"
12713 +case "(($ac_try" in
12714 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12715 + *) ac_try_echo=$ac_try;;
12716 +esac
12717 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12718 + (eval "$ac_compile") 2>conftest.er1
12719 ac_status=$?
12720 grep -v '^ *+' conftest.er1 >conftest.err
12721 rm -f conftest.er1
12722 cat conftest.err >&5
12723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12724 - (exit $ac_status); } &&
12725 - { ac_try='test -z "$ac_c_werror_flag"
12726 - || test ! -s conftest.err'
12727 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12728 - (eval $ac_try) 2>&5
12729 - ac_status=$?
12730 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
12731 - (exit $ac_status); }; } &&
12732 - { ac_try='test -s conftest.$ac_objext'
12733 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12734 - (eval $ac_try) 2>&5
12735 - ac_status=$?
12736 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
12737 - (exit $ac_status); }; }; then
12738 + (exit $ac_status); } && {
12739 + test -z "$ac_c_werror_flag" ||
12740 + test ! -s conftest.err
12741 + } && test -s conftest.$ac_objext; then
12742 bfd_cv_have_sys_procfs_type_prstatus_t=yes
12743 else
12744 echo "$as_me: failed program was:" >&5
12745 sed 's/^/| /' conftest.$ac_ext >&5
12746
12747 -bfd_cv_have_sys_procfs_type_prstatus_t=no
12748 + bfd_cv_have_sys_procfs_type_prstatus_t=no
12749
12750 fi
12751 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12752 +
12753 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12754 fi
12755
12756 if test $bfd_cv_have_sys_procfs_type_prstatus_t = yes; then
12757 @@ -11935,11 +12312,11 @@ cat >>confdefs.h <<\_ACEOF
12758 _ACEOF
12759
12760 fi
12761 - echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prstatus_t" >&5
12762 -echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prstatus_t" >&6
12763 + { echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prstatus_t" >&5
12764 +echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prstatus_t" >&6; }
12765
12766 - echo "$as_me:$LINENO: checking for prstatus32_t in sys/procfs.h" >&5
12767 -echo $ECHO_N "checking for prstatus32_t in sys/procfs.h... $ECHO_C" >&6
12768 + { echo "$as_me:$LINENO: checking for prstatus32_t in sys/procfs.h" >&5
12769 +echo $ECHO_N "checking for prstatus32_t in sys/procfs.h... $ECHO_C" >&6; }
12770 if test "${bfd_cv_have_sys_procfs_type_prstatus32_t+set}" = set; then
12771 echo $ECHO_N "(cached) $ECHO_C" >&6
12772 else
12773 @@ -11961,36 +12338,32 @@ prstatus32_t avar
12774 }
12775 _ACEOF
12776 rm -f conftest.$ac_objext
12777 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12778 - (eval $ac_compile) 2>conftest.er1
12779 +if { (ac_try="$ac_compile"
12780 +case "(($ac_try" in
12781 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12782 + *) ac_try_echo=$ac_try;;
12783 +esac
12784 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12785 + (eval "$ac_compile") 2>conftest.er1
12786 ac_status=$?
12787 grep -v '^ *+' conftest.er1 >conftest.err
12788 rm -f conftest.er1
12789 cat conftest.err >&5
12790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12791 - (exit $ac_status); } &&
12792 - { ac_try='test -z "$ac_c_werror_flag"
12793 - || test ! -s conftest.err'
12794 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12795 - (eval $ac_try) 2>&5
12796 - ac_status=$?
12797 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
12798 - (exit $ac_status); }; } &&
12799 - { ac_try='test -s conftest.$ac_objext'
12800 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12801 - (eval $ac_try) 2>&5
12802 - ac_status=$?
12803 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
12804 - (exit $ac_status); }; }; then
12805 + (exit $ac_status); } && {
12806 + test -z "$ac_c_werror_flag" ||
12807 + test ! -s conftest.err
12808 + } && test -s conftest.$ac_objext; then
12809 bfd_cv_have_sys_procfs_type_prstatus32_t=yes
12810 else
12811 echo "$as_me: failed program was:" >&5
12812 sed 's/^/| /' conftest.$ac_ext >&5
12813
12814 -bfd_cv_have_sys_procfs_type_prstatus32_t=no
12815 + bfd_cv_have_sys_procfs_type_prstatus32_t=no
12816
12817 fi
12818 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12819 +
12820 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12821 fi
12822
12823 if test $bfd_cv_have_sys_procfs_type_prstatus32_t = yes; then
12824 @@ -12000,11 +12373,11 @@ cat >>confdefs.h <<\_ACEOF
12825 _ACEOF
12826
12827 fi
12828 - echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prstatus32_t" >&5
12829 -echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prstatus32_t" >&6
12830 + { echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prstatus32_t" >&5
12831 +echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prstatus32_t" >&6; }
12832
12833 - echo "$as_me:$LINENO: checking for prstatus_t.pr_who in sys/procfs.h" >&5
12834 -echo $ECHO_N "checking for prstatus_t.pr_who in sys/procfs.h... $ECHO_C" >&6
12835 + { echo "$as_me:$LINENO: checking for prstatus_t.pr_who in sys/procfs.h" >&5
12836 +echo $ECHO_N "checking for prstatus_t.pr_who in sys/procfs.h... $ECHO_C" >&6; }
12837 if test "${bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who+set}" = set; then
12838 echo $ECHO_N "(cached) $ECHO_C" >&6
12839 else
12840 @@ -12026,36 +12399,32 @@ prstatus_t avar; void* aref = (void*) &a
12841 }
12842 _ACEOF
12843 rm -f conftest.$ac_objext
12844 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12845 - (eval $ac_compile) 2>conftest.er1
12846 +if { (ac_try="$ac_compile"
12847 +case "(($ac_try" in
12848 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12849 + *) ac_try_echo=$ac_try;;
12850 +esac
12851 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12852 + (eval "$ac_compile") 2>conftest.er1
12853 ac_status=$?
12854 grep -v '^ *+' conftest.er1 >conftest.err
12855 rm -f conftest.er1
12856 cat conftest.err >&5
12857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12858 - (exit $ac_status); } &&
12859 - { ac_try='test -z "$ac_c_werror_flag"
12860 - || test ! -s conftest.err'
12861 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12862 - (eval $ac_try) 2>&5
12863 - ac_status=$?
12864 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
12865 - (exit $ac_status); }; } &&
12866 - { ac_try='test -s conftest.$ac_objext'
12867 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12868 - (eval $ac_try) 2>&5
12869 - ac_status=$?
12870 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
12871 - (exit $ac_status); }; }; then
12872 + (exit $ac_status); } && {
12873 + test -z "$ac_c_werror_flag" ||
12874 + test ! -s conftest.err
12875 + } && test -s conftest.$ac_objext; then
12876 bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=yes
12877 else
12878 echo "$as_me: failed program was:" >&5
12879 sed 's/^/| /' conftest.$ac_ext >&5
12880
12881 -bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=no
12882 + bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=no
12883
12884 fi
12885 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12886 +
12887 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12888 fi
12889
12890 if test $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who = yes; then
12891 @@ -12065,11 +12434,11 @@ cat >>confdefs.h <<\_ACEOF
12892 _ACEOF
12893
12894 fi
12895 - echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" >&5
12896 -echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" >&6
12897 + { echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" >&5
12898 +echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" >&6; }
12899
12900 - echo "$as_me:$LINENO: checking for prstatus32_t.pr_who in sys/procfs.h" >&5
12901 -echo $ECHO_N "checking for prstatus32_t.pr_who in sys/procfs.h... $ECHO_C" >&6
12902 + { echo "$as_me:$LINENO: checking for prstatus32_t.pr_who in sys/procfs.h" >&5
12903 +echo $ECHO_N "checking for prstatus32_t.pr_who in sys/procfs.h... $ECHO_C" >&6; }
12904 if test "${bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who+set}" = set; then
12905 echo $ECHO_N "(cached) $ECHO_C" >&6
12906 else
12907 @@ -12091,36 +12460,32 @@ prstatus32_t avar; void* aref = (void*)
12908 }
12909 _ACEOF
12910 rm -f conftest.$ac_objext
12911 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12912 - (eval $ac_compile) 2>conftest.er1
12913 +if { (ac_try="$ac_compile"
12914 +case "(($ac_try" in
12915 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12916 + *) ac_try_echo=$ac_try;;
12917 +esac
12918 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12919 + (eval "$ac_compile") 2>conftest.er1
12920 ac_status=$?
12921 grep -v '^ *+' conftest.er1 >conftest.err
12922 rm -f conftest.er1
12923 cat conftest.err >&5
12924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12925 - (exit $ac_status); } &&
12926 - { ac_try='test -z "$ac_c_werror_flag"
12927 - || test ! -s conftest.err'
12928 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12929 - (eval $ac_try) 2>&5
12930 - ac_status=$?
12931 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
12932 - (exit $ac_status); }; } &&
12933 - { ac_try='test -s conftest.$ac_objext'
12934 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12935 - (eval $ac_try) 2>&5
12936 - ac_status=$?
12937 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
12938 - (exit $ac_status); }; }; then
12939 + (exit $ac_status); } && {
12940 + test -z "$ac_c_werror_flag" ||
12941 + test ! -s conftest.err
12942 + } && test -s conftest.$ac_objext; then
12943 bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=yes
12944 else
12945 echo "$as_me: failed program was:" >&5
12946 sed 's/^/| /' conftest.$ac_ext >&5
12947
12948 -bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=no
12949 + bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=no
12950
12951 fi
12952 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12953 +
12954 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12955 fi
12956
12957 if test $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who = yes; then
12958 @@ -12130,11 +12495,11 @@ cat >>confdefs.h <<\_ACEOF
12959 _ACEOF
12960
12961 fi
12962 - echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" >&5
12963 -echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" >&6
12964 + { echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" >&5
12965 +echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" >&6; }
12966
12967 - echo "$as_me:$LINENO: checking for pstatus_t in sys/procfs.h" >&5
12968 -echo $ECHO_N "checking for pstatus_t in sys/procfs.h... $ECHO_C" >&6
12969 + { echo "$as_me:$LINENO: checking for pstatus_t in sys/procfs.h" >&5
12970 +echo $ECHO_N "checking for pstatus_t in sys/procfs.h... $ECHO_C" >&6; }
12971 if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then
12972 echo $ECHO_N "(cached) $ECHO_C" >&6
12973 else
12974 @@ -12156,36 +12521,32 @@ pstatus_t avar
12975 }
12976 _ACEOF
12977 rm -f conftest.$ac_objext
12978 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12979 - (eval $ac_compile) 2>conftest.er1
12980 +if { (ac_try="$ac_compile"
12981 +case "(($ac_try" in
12982 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12983 + *) ac_try_echo=$ac_try;;
12984 +esac
12985 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12986 + (eval "$ac_compile") 2>conftest.er1
12987 ac_status=$?
12988 grep -v '^ *+' conftest.er1 >conftest.err
12989 rm -f conftest.er1
12990 cat conftest.err >&5
12991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12992 - (exit $ac_status); } &&
12993 - { ac_try='test -z "$ac_c_werror_flag"
12994 - || test ! -s conftest.err'
12995 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12996 - (eval $ac_try) 2>&5
12997 - ac_status=$?
12998 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
12999 - (exit $ac_status); }; } &&
13000 - { ac_try='test -s conftest.$ac_objext'
13001 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13002 - (eval $ac_try) 2>&5
13003 - ac_status=$?
13004 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
13005 - (exit $ac_status); }; }; then
13006 + (exit $ac_status); } && {
13007 + test -z "$ac_c_werror_flag" ||
13008 + test ! -s conftest.err
13009 + } && test -s conftest.$ac_objext; then
13010 bfd_cv_have_sys_procfs_type_pstatus_t=yes
13011 else
13012 echo "$as_me: failed program was:" >&5
13013 sed 's/^/| /' conftest.$ac_ext >&5
13014
13015 -bfd_cv_have_sys_procfs_type_pstatus_t=no
13016 + bfd_cv_have_sys_procfs_type_pstatus_t=no
13017
13018 fi
13019 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13020 +
13021 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13022 fi
13023
13024 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
13025 @@ -12195,11 +12556,11 @@ cat >>confdefs.h <<\_ACEOF
13026 _ACEOF
13027
13028 fi
13029 - echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5
13030 -echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus_t" >&6
13031 + { echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5
13032 +echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus_t" >&6; }
13033
13034 - echo "$as_me:$LINENO: checking for pxstatus_t in sys/procfs.h" >&5
13035 -echo $ECHO_N "checking for pxstatus_t in sys/procfs.h... $ECHO_C" >&6
13036 + { echo "$as_me:$LINENO: checking for pxstatus_t in sys/procfs.h" >&5
13037 +echo $ECHO_N "checking for pxstatus_t in sys/procfs.h... $ECHO_C" >&6; }
13038 if test "${bfd_cv_have_sys_procfs_type_pxstatus_t+set}" = set; then
13039 echo $ECHO_N "(cached) $ECHO_C" >&6
13040 else
13041 @@ -12221,36 +12582,32 @@ pxstatus_t avar
13042 }
13043 _ACEOF
13044 rm -f conftest.$ac_objext
13045 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13046 - (eval $ac_compile) 2>conftest.er1
13047 +if { (ac_try="$ac_compile"
13048 +case "(($ac_try" in
13049 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13050 + *) ac_try_echo=$ac_try;;
13051 +esac
13052 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13053 + (eval "$ac_compile") 2>conftest.er1
13054 ac_status=$?
13055 grep -v '^ *+' conftest.er1 >conftest.err
13056 rm -f conftest.er1
13057 cat conftest.err >&5
13058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13059 - (exit $ac_status); } &&
13060 - { ac_try='test -z "$ac_c_werror_flag"
13061 - || test ! -s conftest.err'
13062 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13063 - (eval $ac_try) 2>&5
13064 - ac_status=$?
13065 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
13066 - (exit $ac_status); }; } &&
13067 - { ac_try='test -s conftest.$ac_objext'
13068 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13069 - (eval $ac_try) 2>&5
13070 - ac_status=$?
13071 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
13072 - (exit $ac_status); }; }; then
13073 + (exit $ac_status); } && {
13074 + test -z "$ac_c_werror_flag" ||
13075 + test ! -s conftest.err
13076 + } && test -s conftest.$ac_objext; then
13077 bfd_cv_have_sys_procfs_type_pxstatus_t=yes
13078 else
13079 echo "$as_me: failed program was:" >&5
13080 sed 's/^/| /' conftest.$ac_ext >&5
13081
13082 -bfd_cv_have_sys_procfs_type_pxstatus_t=no
13083 + bfd_cv_have_sys_procfs_type_pxstatus_t=no
13084
13085 fi
13086 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13087 +
13088 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13089 fi
13090
13091 if test $bfd_cv_have_sys_procfs_type_pxstatus_t = yes; then
13092 @@ -12260,11 +12617,11 @@ cat >>confdefs.h <<\_ACEOF
13093 _ACEOF
13094
13095 fi
13096 - echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pxstatus_t" >&5
13097 -echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pxstatus_t" >&6
13098 + { echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pxstatus_t" >&5
13099 +echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pxstatus_t" >&6; }
13100
13101 - echo "$as_me:$LINENO: checking for pstatus32_t in sys/procfs.h" >&5
13102 -echo $ECHO_N "checking for pstatus32_t in sys/procfs.h... $ECHO_C" >&6
13103 + { echo "$as_me:$LINENO: checking for pstatus32_t in sys/procfs.h" >&5
13104 +echo $ECHO_N "checking for pstatus32_t in sys/procfs.h... $ECHO_C" >&6; }
13105 if test "${bfd_cv_have_sys_procfs_type_pstatus32_t+set}" = set; then
13106 echo $ECHO_N "(cached) $ECHO_C" >&6
13107 else
13108 @@ -12286,36 +12643,32 @@ pstatus32_t avar
13109 }
13110 _ACEOF
13111 rm -f conftest.$ac_objext
13112 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13113 - (eval $ac_compile) 2>conftest.er1
13114 +if { (ac_try="$ac_compile"
13115 +case "(($ac_try" in
13116 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13117 + *) ac_try_echo=$ac_try;;
13118 +esac
13119 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13120 + (eval "$ac_compile") 2>conftest.er1
13121 ac_status=$?
13122 grep -v '^ *+' conftest.er1 >conftest.err
13123 rm -f conftest.er1
13124 cat conftest.err >&5
13125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13126 - (exit $ac_status); } &&
13127 - { ac_try='test -z "$ac_c_werror_flag"
13128 - || test ! -s conftest.err'
13129 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13130 - (eval $ac_try) 2>&5
13131 - ac_status=$?
13132 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
13133 - (exit $ac_status); }; } &&
13134 - { ac_try='test -s conftest.$ac_objext'
13135 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13136 - (eval $ac_try) 2>&5
13137 - ac_status=$?
13138 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
13139 - (exit $ac_status); }; }; then
13140 + (exit $ac_status); } && {
13141 + test -z "$ac_c_werror_flag" ||
13142 + test ! -s conftest.err
13143 + } && test -s conftest.$ac_objext; then
13144 bfd_cv_have_sys_procfs_type_pstatus32_t=yes
13145 else
13146 echo "$as_me: failed program was:" >&5
13147 sed 's/^/| /' conftest.$ac_ext >&5
13148
13149 -bfd_cv_have_sys_procfs_type_pstatus32_t=no
13150 + bfd_cv_have_sys_procfs_type_pstatus32_t=no
13151
13152 fi
13153 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13154 +
13155 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13156 fi
13157
13158 if test $bfd_cv_have_sys_procfs_type_pstatus32_t = yes; then
13159 @@ -12325,11 +12678,11 @@ cat >>confdefs.h <<\_ACEOF
13160 _ACEOF
13161
13162 fi
13163 - echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus32_t" >&5
13164 -echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus32_t" >&6
13165 + { echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus32_t" >&5
13166 +echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus32_t" >&6; }
13167
13168 - echo "$as_me:$LINENO: checking for prpsinfo_t in sys/procfs.h" >&5
13169 -echo $ECHO_N "checking for prpsinfo_t in sys/procfs.h... $ECHO_C" >&6
13170 + { echo "$as_me:$LINENO: checking for prpsinfo_t in sys/procfs.h" >&5
13171 +echo $ECHO_N "checking for prpsinfo_t in sys/procfs.h... $ECHO_C" >&6; }
13172 if test "${bfd_cv_have_sys_procfs_type_prpsinfo_t+set}" = set; then
13173 echo $ECHO_N "(cached) $ECHO_C" >&6
13174 else
13175 @@ -12351,36 +12704,32 @@ prpsinfo_t avar
13176 }
13177 _ACEOF
13178 rm -f conftest.$ac_objext
13179 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13180 - (eval $ac_compile) 2>conftest.er1
13181 +if { (ac_try="$ac_compile"
13182 +case "(($ac_try" in
13183 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13184 + *) ac_try_echo=$ac_try;;
13185 +esac
13186 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13187 + (eval "$ac_compile") 2>conftest.er1
13188 ac_status=$?
13189 grep -v '^ *+' conftest.er1 >conftest.err
13190 rm -f conftest.er1
13191 cat conftest.err >&5
13192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13193 - (exit $ac_status); } &&
13194 - { ac_try='test -z "$ac_c_werror_flag"
13195 - || test ! -s conftest.err'
13196 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13197 - (eval $ac_try) 2>&5
13198 - ac_status=$?
13199 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
13200 - (exit $ac_status); }; } &&
13201 - { ac_try='test -s conftest.$ac_objext'
13202 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13203 - (eval $ac_try) 2>&5
13204 - ac_status=$?
13205 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
13206 - (exit $ac_status); }; }; then
13207 + (exit $ac_status); } && {
13208 + test -z "$ac_c_werror_flag" ||
13209 + test ! -s conftest.err
13210 + } && test -s conftest.$ac_objext; then
13211 bfd_cv_have_sys_procfs_type_prpsinfo_t=yes
13212 else
13213 echo "$as_me: failed program was:" >&5
13214 sed 's/^/| /' conftest.$ac_ext >&5
13215
13216 -bfd_cv_have_sys_procfs_type_prpsinfo_t=no
13217 + bfd_cv_have_sys_procfs_type_prpsinfo_t=no
13218
13219 fi
13220 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13221 +
13222 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13223 fi
13224
13225 if test $bfd_cv_have_sys_procfs_type_prpsinfo_t = yes; then
13226 @@ -12390,11 +12739,11 @@ cat >>confdefs.h <<\_ACEOF
13227 _ACEOF
13228
13229 fi
13230 - echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prpsinfo_t" >&5
13231 -echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prpsinfo_t" >&6
13232 + { echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prpsinfo_t" >&5
13233 +echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prpsinfo_t" >&6; }
13234
13235 - echo "$as_me:$LINENO: checking for prpsinfo32_t in sys/procfs.h" >&5
13236 -echo $ECHO_N "checking for prpsinfo32_t in sys/procfs.h... $ECHO_C" >&6
13237 + { echo "$as_me:$LINENO: checking for prpsinfo32_t in sys/procfs.h" >&5
13238 +echo $ECHO_N "checking for prpsinfo32_t in sys/procfs.h... $ECHO_C" >&6; }
13239 if test "${bfd_cv_have_sys_procfs_type_prpsinfo32_t+set}" = set; then
13240 echo $ECHO_N "(cached) $ECHO_C" >&6
13241 else
13242 @@ -12416,36 +12765,32 @@ prpsinfo32_t avar
13243 }
13244 _ACEOF
13245 rm -f conftest.$ac_objext
13246 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13247 - (eval $ac_compile) 2>conftest.er1
13248 +if { (ac_try="$ac_compile"
13249 +case "(($ac_try" in
13250 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13251 + *) ac_try_echo=$ac_try;;
13252 +esac
13253 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13254 + (eval "$ac_compile") 2>conftest.er1
13255 ac_status=$?
13256 grep -v '^ *+' conftest.er1 >conftest.err
13257 rm -f conftest.er1
13258 cat conftest.err >&5
13259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13260 - (exit $ac_status); } &&
13261 - { ac_try='test -z "$ac_c_werror_flag"
13262 - || test ! -s conftest.err'
13263 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13264 - (eval $ac_try) 2>&5
13265 - ac_status=$?
13266 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
13267 - (exit $ac_status); }; } &&
13268 - { ac_try='test -s conftest.$ac_objext'
13269 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13270 - (eval $ac_try) 2>&5
13271 - ac_status=$?
13272 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
13273 - (exit $ac_status); }; }; then
13274 + (exit $ac_status); } && {
13275 + test -z "$ac_c_werror_flag" ||
13276 + test ! -s conftest.err
13277 + } && test -s conftest.$ac_objext; then
13278 bfd_cv_have_sys_procfs_type_prpsinfo32_t=yes
13279 else
13280 echo "$as_me: failed program was:" >&5
13281 sed 's/^/| /' conftest.$ac_ext >&5
13282
13283 -bfd_cv_have_sys_procfs_type_prpsinfo32_t=no
13284 + bfd_cv_have_sys_procfs_type_prpsinfo32_t=no
13285
13286 fi
13287 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13288 +
13289 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13290 fi
13291
13292 if test $bfd_cv_have_sys_procfs_type_prpsinfo32_t = yes; then
13293 @@ -12455,11 +12800,11 @@ cat >>confdefs.h <<\_ACEOF
13294 _ACEOF
13295
13296 fi
13297 - echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prpsinfo32_t" >&5
13298 -echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prpsinfo32_t" >&6
13299 + { echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prpsinfo32_t" >&5
13300 +echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prpsinfo32_t" >&6; }
13301
13302 - echo "$as_me:$LINENO: checking for psinfo_t in sys/procfs.h" >&5
13303 -echo $ECHO_N "checking for psinfo_t in sys/procfs.h... $ECHO_C" >&6
13304 + { echo "$as_me:$LINENO: checking for psinfo_t in sys/procfs.h" >&5
13305 +echo $ECHO_N "checking for psinfo_t in sys/procfs.h... $ECHO_C" >&6; }
13306 if test "${bfd_cv_have_sys_procfs_type_psinfo_t+set}" = set; then
13307 echo $ECHO_N "(cached) $ECHO_C" >&6
13308 else
13309 @@ -12481,36 +12826,32 @@ psinfo_t avar
13310 }
13311 _ACEOF
13312 rm -f conftest.$ac_objext
13313 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13314 - (eval $ac_compile) 2>conftest.er1
13315 +if { (ac_try="$ac_compile"
13316 +case "(($ac_try" in
13317 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13318 + *) ac_try_echo=$ac_try;;
13319 +esac
13320 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13321 + (eval "$ac_compile") 2>conftest.er1
13322 ac_status=$?
13323 grep -v '^ *+' conftest.er1 >conftest.err
13324 rm -f conftest.er1
13325 cat conftest.err >&5
13326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13327 - (exit $ac_status); } &&
13328 - { ac_try='test -z "$ac_c_werror_flag"
13329 - || test ! -s conftest.err'
13330 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13331 - (eval $ac_try) 2>&5
13332 - ac_status=$?
13333 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
13334 - (exit $ac_status); }; } &&
13335 - { ac_try='test -s conftest.$ac_objext'
13336 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13337 - (eval $ac_try) 2>&5
13338 - ac_status=$?
13339 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
13340 - (exit $ac_status); }; }; then
13341 + (exit $ac_status); } && {
13342 + test -z "$ac_c_werror_flag" ||
13343 + test ! -s conftest.err
13344 + } && test -s conftest.$ac_objext; then
13345 bfd_cv_have_sys_procfs_type_psinfo_t=yes
13346 else
13347 echo "$as_me: failed program was:" >&5
13348 sed 's/^/| /' conftest.$ac_ext >&5
13349
13350 -bfd_cv_have_sys_procfs_type_psinfo_t=no
13351 + bfd_cv_have_sys_procfs_type_psinfo_t=no
13352
13353 fi
13354 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13355 +
13356 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13357 fi
13358
13359 if test $bfd_cv_have_sys_procfs_type_psinfo_t = yes; then
13360 @@ -12520,11 +12861,11 @@ cat >>confdefs.h <<\_ACEOF
13361 _ACEOF
13362
13363 fi
13364 - echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psinfo_t" >&5
13365 -echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psinfo_t" >&6
13366 + { echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psinfo_t" >&5
13367 +echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psinfo_t" >&6; }
13368
13369 - echo "$as_me:$LINENO: checking for psinfo32_t in sys/procfs.h" >&5
13370 -echo $ECHO_N "checking for psinfo32_t in sys/procfs.h... $ECHO_C" >&6
13371 + { echo "$as_me:$LINENO: checking for psinfo32_t in sys/procfs.h" >&5
13372 +echo $ECHO_N "checking for psinfo32_t in sys/procfs.h... $ECHO_C" >&6; }
13373 if test "${bfd_cv_have_sys_procfs_type_psinfo32_t+set}" = set; then
13374 echo $ECHO_N "(cached) $ECHO_C" >&6
13375 else
13376 @@ -12546,36 +12887,32 @@ psinfo32_t avar
13377 }
13378 _ACEOF
13379 rm -f conftest.$ac_objext
13380 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13381 - (eval $ac_compile) 2>conftest.er1
13382 +if { (ac_try="$ac_compile"
13383 +case "(($ac_try" in
13384 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13385 + *) ac_try_echo=$ac_try;;
13386 +esac
13387 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13388 + (eval "$ac_compile") 2>conftest.er1
13389 ac_status=$?
13390 grep -v '^ *+' conftest.er1 >conftest.err
13391 rm -f conftest.er1
13392 cat conftest.err >&5
13393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13394 - (exit $ac_status); } &&
13395 - { ac_try='test -z "$ac_c_werror_flag"
13396 - || test ! -s conftest.err'
13397 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13398 - (eval $ac_try) 2>&5
13399 - ac_status=$?
13400 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
13401 - (exit $ac_status); }; } &&
13402 - { ac_try='test -s conftest.$ac_objext'
13403 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13404 - (eval $ac_try) 2>&5
13405 - ac_status=$?
13406 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
13407 - (exit $ac_status); }; }; then
13408 + (exit $ac_status); } && {
13409 + test -z "$ac_c_werror_flag" ||
13410 + test ! -s conftest.err
13411 + } && test -s conftest.$ac_objext; then
13412 bfd_cv_have_sys_procfs_type_psinfo32_t=yes
13413 else
13414 echo "$as_me: failed program was:" >&5
13415 sed 's/^/| /' conftest.$ac_ext >&5
13416
13417 -bfd_cv_have_sys_procfs_type_psinfo32_t=no
13418 + bfd_cv_have_sys_procfs_type_psinfo32_t=no
13419
13420 fi
13421 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13422 +
13423 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13424 fi
13425
13426 if test $bfd_cv_have_sys_procfs_type_psinfo32_t = yes; then
13427 @@ -12585,11 +12922,11 @@ cat >>confdefs.h <<\_ACEOF
13428 _ACEOF
13429
13430 fi
13431 - echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psinfo32_t" >&5
13432 -echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psinfo32_t" >&6
13433 + { echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psinfo32_t" >&5
13434 +echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psinfo32_t" >&6; }
13435
13436 - echo "$as_me:$LINENO: checking for lwpstatus_t in sys/procfs.h" >&5
13437 -echo $ECHO_N "checking for lwpstatus_t in sys/procfs.h... $ECHO_C" >&6
13438 + { echo "$as_me:$LINENO: checking for lwpstatus_t in sys/procfs.h" >&5
13439 +echo $ECHO_N "checking for lwpstatus_t in sys/procfs.h... $ECHO_C" >&6; }
13440 if test "${bfd_cv_have_sys_procfs_type_lwpstatus_t+set}" = set; then
13441 echo $ECHO_N "(cached) $ECHO_C" >&6
13442 else
13443 @@ -12611,36 +12948,32 @@ lwpstatus_t avar
13444 }
13445 _ACEOF
13446 rm -f conftest.$ac_objext
13447 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13448 - (eval $ac_compile) 2>conftest.er1
13449 +if { (ac_try="$ac_compile"
13450 +case "(($ac_try" in
13451 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13452 + *) ac_try_echo=$ac_try;;
13453 +esac
13454 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13455 + (eval "$ac_compile") 2>conftest.er1
13456 ac_status=$?
13457 grep -v '^ *+' conftest.er1 >conftest.err
13458 rm -f conftest.er1
13459 cat conftest.err >&5
13460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13461 - (exit $ac_status); } &&
13462 - { ac_try='test -z "$ac_c_werror_flag"
13463 - || test ! -s conftest.err'
13464 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13465 - (eval $ac_try) 2>&5
13466 - ac_status=$?
13467 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
13468 - (exit $ac_status); }; } &&
13469 - { ac_try='test -s conftest.$ac_objext'
13470 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13471 - (eval $ac_try) 2>&5
13472 - ac_status=$?
13473 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
13474 - (exit $ac_status); }; }; then
13475 + (exit $ac_status); } && {
13476 + test -z "$ac_c_werror_flag" ||
13477 + test ! -s conftest.err
13478 + } && test -s conftest.$ac_objext; then
13479 bfd_cv_have_sys_procfs_type_lwpstatus_t=yes
13480 else
13481 echo "$as_me: failed program was:" >&5
13482 sed 's/^/| /' conftest.$ac_ext >&5
13483
13484 -bfd_cv_have_sys_procfs_type_lwpstatus_t=no
13485 + bfd_cv_have_sys_procfs_type_lwpstatus_t=no
13486
13487 fi
13488 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13489 +
13490 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13491 fi
13492
13493 if test $bfd_cv_have_sys_procfs_type_lwpstatus_t = yes; then
13494 @@ -12650,11 +12983,11 @@ cat >>confdefs.h <<\_ACEOF
13495 _ACEOF
13496
13497 fi
13498 - echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpstatus_t" >&5
13499 -echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpstatus_t" >&6
13500 + { echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpstatus_t" >&5
13501 +echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpstatus_t" >&6; }
13502
13503 - echo "$as_me:$LINENO: checking for lwpxstatus_t in sys/procfs.h" >&5
13504 -echo $ECHO_N "checking for lwpxstatus_t in sys/procfs.h... $ECHO_C" >&6
13505 + { echo "$as_me:$LINENO: checking for lwpxstatus_t in sys/procfs.h" >&5
13506 +echo $ECHO_N "checking for lwpxstatus_t in sys/procfs.h... $ECHO_C" >&6; }
13507 if test "${bfd_cv_have_sys_procfs_type_lwpxstatus_t+set}" = set; then
13508 echo $ECHO_N "(cached) $ECHO_C" >&6
13509 else
13510 @@ -12676,36 +13009,32 @@ lwpxstatus_t avar
13511 }
13512 _ACEOF
13513 rm -f conftest.$ac_objext
13514 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13515 - (eval $ac_compile) 2>conftest.er1
13516 +if { (ac_try="$ac_compile"
13517 +case "(($ac_try" in
13518 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13519 + *) ac_try_echo=$ac_try;;
13520 +esac
13521 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13522 + (eval "$ac_compile") 2>conftest.er1
13523 ac_status=$?
13524 grep -v '^ *+' conftest.er1 >conftest.err
13525 rm -f conftest.er1
13526 cat conftest.err >&5
13527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13528 - (exit $ac_status); } &&
13529 - { ac_try='test -z "$ac_c_werror_flag"
13530 - || test ! -s conftest.err'
13531 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13532 - (eval $ac_try) 2>&5
13533 - ac_status=$?
13534 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
13535 - (exit $ac_status); }; } &&
13536 - { ac_try='test -s conftest.$ac_objext'
13537 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13538 - (eval $ac_try) 2>&5
13539 - ac_status=$?
13540 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
13541 - (exit $ac_status); }; }; then
13542 + (exit $ac_status); } && {
13543 + test -z "$ac_c_werror_flag" ||
13544 + test ! -s conftest.err
13545 + } && test -s conftest.$ac_objext; then
13546 bfd_cv_have_sys_procfs_type_lwpxstatus_t=yes
13547 else
13548 echo "$as_me: failed program was:" >&5
13549 sed 's/^/| /' conftest.$ac_ext >&5
13550
13551 -bfd_cv_have_sys_procfs_type_lwpxstatus_t=no
13552 + bfd_cv_have_sys_procfs_type_lwpxstatus_t=no
13553
13554 fi
13555 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13556 +
13557 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13558 fi
13559
13560 if test $bfd_cv_have_sys_procfs_type_lwpxstatus_t = yes; then
13561 @@ -12715,11 +13044,11 @@ cat >>confdefs.h <<\_ACEOF
13562 _ACEOF
13563
13564 fi
13565 - echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpxstatus_t" >&5
13566 -echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpxstatus_t" >&6
13567 + { echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpxstatus_t" >&5
13568 +echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpxstatus_t" >&6; }
13569
13570 - echo "$as_me:$LINENO: checking for lwpstatus_t.pr_context in sys/procfs.h" >&5
13571 -echo $ECHO_N "checking for lwpstatus_t.pr_context in sys/procfs.h... $ECHO_C" >&6
13572 + { echo "$as_me:$LINENO: checking for lwpstatus_t.pr_context in sys/procfs.h" >&5
13573 +echo $ECHO_N "checking for lwpstatus_t.pr_context in sys/procfs.h... $ECHO_C" >&6; }
13574 if test "${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context+set}" = set; then
13575 echo $ECHO_N "(cached) $ECHO_C" >&6
13576 else
13577 @@ -12741,36 +13070,32 @@ lwpstatus_t avar; void* aref = (void*) &
13578 }
13579 _ACEOF
13580 rm -f conftest.$ac_objext
13581 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13582 - (eval $ac_compile) 2>conftest.er1
13583 +if { (ac_try="$ac_compile"
13584 +case "(($ac_try" in
13585 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13586 + *) ac_try_echo=$ac_try;;
13587 +esac
13588 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13589 + (eval "$ac_compile") 2>conftest.er1
13590 ac_status=$?
13591 grep -v '^ *+' conftest.er1 >conftest.err
13592 rm -f conftest.er1
13593 cat conftest.err >&5
13594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13595 - (exit $ac_status); } &&
13596 - { ac_try='test -z "$ac_c_werror_flag"
13597 - || test ! -s conftest.err'
13598 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13599 - (eval $ac_try) 2>&5
13600 - ac_status=$?
13601 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
13602 - (exit $ac_status); }; } &&
13603 - { ac_try='test -s conftest.$ac_objext'
13604 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13605 - (eval $ac_try) 2>&5
13606 - ac_status=$?
13607 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
13608 - (exit $ac_status); }; }; then
13609 + (exit $ac_status); } && {
13610 + test -z "$ac_c_werror_flag" ||
13611 + test ! -s conftest.err
13612 + } && test -s conftest.$ac_objext; then
13613 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=yes
13614 else
13615 echo "$as_me: failed program was:" >&5
13616 sed 's/^/| /' conftest.$ac_ext >&5
13617
13618 -bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=no
13619 + bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=no
13620
13621 fi
13622 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13623 +
13624 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13625 fi
13626
13627 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context = yes; then
13628 @@ -12780,11 +13105,11 @@ cat >>confdefs.h <<\_ACEOF
13629 _ACEOF
13630
13631 fi
13632 - echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" >&5
13633 -echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" >&6
13634 + { echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" >&5
13635 +echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" >&6; }
13636
13637 - echo "$as_me:$LINENO: checking for lwpstatus_t.pr_reg in sys/procfs.h" >&5
13638 -echo $ECHO_N "checking for lwpstatus_t.pr_reg in sys/procfs.h... $ECHO_C" >&6
13639 + { echo "$as_me:$LINENO: checking for lwpstatus_t.pr_reg in sys/procfs.h" >&5
13640 +echo $ECHO_N "checking for lwpstatus_t.pr_reg in sys/procfs.h... $ECHO_C" >&6; }
13641 if test "${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg+set}" = set; then
13642 echo $ECHO_N "(cached) $ECHO_C" >&6
13643 else
13644 @@ -12806,36 +13131,32 @@ lwpstatus_t avar; void* aref = (void*) &
13645 }
13646 _ACEOF
13647 rm -f conftest.$ac_objext
13648 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13649 - (eval $ac_compile) 2>conftest.er1
13650 +if { (ac_try="$ac_compile"
13651 +case "(($ac_try" in
13652 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13653 + *) ac_try_echo=$ac_try;;
13654 +esac
13655 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13656 + (eval "$ac_compile") 2>conftest.er1
13657 ac_status=$?
13658 grep -v '^ *+' conftest.er1 >conftest.err
13659 rm -f conftest.er1
13660 cat conftest.err >&5
13661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13662 - (exit $ac_status); } &&
13663 - { ac_try='test -z "$ac_c_werror_flag"
13664 - || test ! -s conftest.err'
13665 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13666 - (eval $ac_try) 2>&5
13667 - ac_status=$?
13668 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
13669 - (exit $ac_status); }; } &&
13670 - { ac_try='test -s conftest.$ac_objext'
13671 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13672 - (eval $ac_try) 2>&5
13673 - ac_status=$?
13674 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
13675 - (exit $ac_status); }; }; then
13676 + (exit $ac_status); } && {
13677 + test -z "$ac_c_werror_flag" ||
13678 + test ! -s conftest.err
13679 + } && test -s conftest.$ac_objext; then
13680 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=yes
13681 else
13682 echo "$as_me: failed program was:" >&5
13683 sed 's/^/| /' conftest.$ac_ext >&5
13684
13685 -bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=no
13686 + bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=no
13687
13688 fi
13689 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13690 +
13691 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13692 fi
13693
13694 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg = yes; then
13695 @@ -12845,11 +13166,11 @@ cat >>confdefs.h <<\_ACEOF
13696 _ACEOF
13697
13698 fi
13699 - echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" >&5
13700 -echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" >&6
13701 + { echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" >&5
13702 +echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" >&6; }
13703
13704 - echo "$as_me:$LINENO: checking for win32_pstatus_t in sys/procfs.h" >&5
13705 -echo $ECHO_N "checking for win32_pstatus_t in sys/procfs.h... $ECHO_C" >&6
13706 + { echo "$as_me:$LINENO: checking for win32_pstatus_t in sys/procfs.h" >&5
13707 +echo $ECHO_N "checking for win32_pstatus_t in sys/procfs.h... $ECHO_C" >&6; }
13708 if test "${bfd_cv_have_sys_procfs_type_win32_pstatus_t+set}" = set; then
13709 echo $ECHO_N "(cached) $ECHO_C" >&6
13710 else
13711 @@ -12871,36 +13192,32 @@ win32_pstatus_t avar
13712 }
13713 _ACEOF
13714 rm -f conftest.$ac_objext
13715 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13716 - (eval $ac_compile) 2>conftest.er1
13717 +if { (ac_try="$ac_compile"
13718 +case "(($ac_try" in
13719 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13720 + *) ac_try_echo=$ac_try;;
13721 +esac
13722 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13723 + (eval "$ac_compile") 2>conftest.er1
13724 ac_status=$?
13725 grep -v '^ *+' conftest.er1 >conftest.err
13726 rm -f conftest.er1
13727 cat conftest.err >&5
13728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13729 - (exit $ac_status); } &&
13730 - { ac_try='test -z "$ac_c_werror_flag"
13731 - || test ! -s conftest.err'
13732 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13733 - (eval $ac_try) 2>&5
13734 - ac_status=$?
13735 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
13736 - (exit $ac_status); }; } &&
13737 - { ac_try='test -s conftest.$ac_objext'
13738 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13739 - (eval $ac_try) 2>&5
13740 - ac_status=$?
13741 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
13742 - (exit $ac_status); }; }; then
13743 + (exit $ac_status); } && {
13744 + test -z "$ac_c_werror_flag" ||
13745 + test ! -s conftest.err
13746 + } && test -s conftest.$ac_objext; then
13747 bfd_cv_have_sys_procfs_type_win32_pstatus_t=yes
13748 else
13749 echo "$as_me: failed program was:" >&5
13750 sed 's/^/| /' conftest.$ac_ext >&5
13751
13752 -bfd_cv_have_sys_procfs_type_win32_pstatus_t=no
13753 + bfd_cv_have_sys_procfs_type_win32_pstatus_t=no
13754
13755 fi
13756 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13757 +
13758 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13759 fi
13760
13761 if test $bfd_cv_have_sys_procfs_type_win32_pstatus_t = yes; then
13762 @@ -12910,8 +13227,8 @@ cat >>confdefs.h <<\_ACEOF
13763 _ACEOF
13764
13765 fi
13766 - echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_win32_pstatus_t" >&5
13767 -echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_win32_pstatus_t" >&6
13768 + { echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_win32_pstatus_t" >&5
13769 +echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_win32_pstatus_t" >&6; }
13770
13771 fi
13772 fi
13773 @@ -13070,6 +13387,7 @@ do
13774 bfd_efi_app_ia64_vec) tb="$tb efi-app-ia64.lo pepigen.lo cofflink.lo"; target_size=64 ;;
13775 bfd_elf32_am33lin_vec) tb="$tb elf32-am33lin.lo elf32.lo $elf" ;;
13776 bfd_elf32_avr_vec) tb="$tb elf32-avr.lo elf32.lo $elf" ;;
13777 + bfd_elf32_avr32_vec) tb="$tb elf32-avr32.lo elf32.lo $elf" ;;
13778 bfd_elf32_bfin_vec) tb="$tb elf32-bfin.lo elf32.lo $elf" ;;
13779 bfd_elf32_bfinfdpic_vec) tb="$tb elf32-bfin.lo elf32.lo $elf" ;;
13780 bfd_elf32_big_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
13781 @@ -13389,8 +13707,8 @@ echo "$as_me: WARNING: your compiler may
13782 fi
13783 if test -n "$GCC" ; then
13784 bad_64bit_gcc=no;
13785 - echo "$as_me:$LINENO: checking for gcc version with buggy 64-bit support" >&5
13786 -echo $ECHO_N "checking for gcc version with buggy 64-bit support... $ECHO_C" >&6
13787 + { echo "$as_me:$LINENO: checking for gcc version with buggy 64-bit support" >&5
13788 +echo $ECHO_N "checking for gcc version with buggy 64-bit support... $ECHO_C" >&6; }
13789 # Add more tests for gcc versions with non-working 64-bit support here.
13790 cat >conftest.$ac_ext <<_ACEOF
13791 /* confdefs.h. */
13792 @@ -13403,11 +13721,11 @@ _ACEOF
13793 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13794 $EGREP ": 2 : 91 : 1 :" >/dev/null 2>&1; then
13795 bad_64bit_gcc=yes;
13796 - echo "$as_me:$LINENO: result: yes: egcs-1.1.2 on ix86 spotted" >&5
13797 -echo "${ECHO_T}yes: egcs-1.1.2 on ix86 spotted" >&6
13798 + { echo "$as_me:$LINENO: result: yes: egcs-1.1.2 on ix86 spotted" >&5
13799 +echo "${ECHO_T}yes: egcs-1.1.2 on ix86 spotted" >&6; }
13800 else
13801 - echo "$as_me:$LINENO: result: no" >&5
13802 -echo "${ECHO_T}no" >&6
13803 + { echo "$as_me:$LINENO: result: no" >&5
13804 +echo "${ECHO_T}no" >&6; }
13805 fi
13806 rm -f conftest*
13807
13808 @@ -13445,9 +13763,9 @@ esac
13809 for ac_func in ftello ftello64 fseeko fseeko64 fopen64
13810 do
13811 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13812 -echo "$as_me:$LINENO: checking for $ac_func" >&5
13813 -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13814 -if eval "test \"\${$as_ac_var+set}\" = set"; then
13815 +{ echo "$as_me:$LINENO: checking for $ac_func" >&5
13816 +echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13817 +if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13818 echo $ECHO_N "(cached) $ECHO_C" >&6
13819 else
13820 cat >conftest.$ac_ext <<_ACEOF
13821 @@ -13473,68 +13791,60 @@ cat >>conftest.$ac_ext <<_ACEOF
13822
13823 #undef $ac_func
13824
13825 -/* Override any gcc2 internal prototype to avoid an error. */
13826 +/* Override any GCC internal prototype to avoid an error.
13827 + Use char because int might match the return type of a GCC
13828 + builtin and then its argument prototype would still apply. */
13829 #ifdef __cplusplus
13830 extern "C"
13831 -{
13832 #endif
13833 -/* We use char because int might match the return type of a gcc2
13834 - builtin and then its argument prototype would still apply. */
13835 char $ac_func ();
13836 /* The GNU C library defines this for functions which it implements
13837 to always fail with ENOSYS. Some functions are actually named
13838 something starting with __ and the normal name is an alias. */
13839 -#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13840 +#if defined __stub_$ac_func || defined __stub___$ac_func
13841 choke me
13842 -#else
13843 -char (*f) () = $ac_func;
13844 -#endif
13845 -#ifdef __cplusplus
13846 -}
13847 #endif
13848
13849 int
13850 main ()
13851 {
13852 -return f != $ac_func;
13853 +return $ac_func ();
13854 ;
13855 return 0;
13856 }
13857 _ACEOF
13858 rm -f conftest.$ac_objext conftest$ac_exeext
13859 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13860 - (eval $ac_link) 2>conftest.er1
13861 +if { (ac_try="$ac_link"
13862 +case "(($ac_try" in
13863 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13864 + *) ac_try_echo=$ac_try;;
13865 +esac
13866 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13867 + (eval "$ac_link") 2>conftest.er1
13868 ac_status=$?
13869 grep -v '^ *+' conftest.er1 >conftest.err
13870 rm -f conftest.er1
13871 cat conftest.err >&5
13872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13873 - (exit $ac_status); } &&
13874 - { ac_try='test -z "$ac_c_werror_flag"
13875 - || test ! -s conftest.err'
13876 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13877 - (eval $ac_try) 2>&5
13878 - ac_status=$?
13879 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
13880 - (exit $ac_status); }; } &&
13881 - { ac_try='test -s conftest$ac_exeext'
13882 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13883 - (eval $ac_try) 2>&5
13884 - ac_status=$?
13885 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
13886 - (exit $ac_status); }; }; then
13887 + (exit $ac_status); } && {
13888 + test -z "$ac_c_werror_flag" ||
13889 + test ! -s conftest.err
13890 + } && test -s conftest$ac_exeext &&
13891 + $as_test_x conftest$ac_exeext; then
13892 eval "$as_ac_var=yes"
13893 else
13894 echo "$as_me: failed program was:" >&5
13895 sed 's/^/| /' conftest.$ac_ext >&5
13896
13897 -eval "$as_ac_var=no"
13898 + eval "$as_ac_var=no"
13899 fi
13900 -rm -f conftest.err conftest.$ac_objext \
13901 +
13902 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13903 conftest$ac_exeext conftest.$ac_ext
13904 fi
13905 -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13906 -echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13907 +ac_res=`eval echo '${'$as_ac_var'}'`
13908 + { echo "$as_me:$LINENO: result: $ac_res" >&5
13909 +echo "${ECHO_T}$ac_res" >&6; }
13910 if test `eval echo '${'$as_ac_var'}'` = yes; then
13911 cat >>confdefs.h <<_ACEOF
13912 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13913 @@ -13544,8 +13854,8 @@ fi
13914 done
13915
13916 if test x"$ac_cv_func_ftello" = xyes -a x"$ac_cv_func_fseeko" = xyes; then
13917 - echo "$as_me:$LINENO: checking for off_t" >&5
13918 -echo $ECHO_N "checking for off_t... $ECHO_C" >&6
13919 + { echo "$as_me:$LINENO: checking for off_t" >&5
13920 +echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
13921 if test "${ac_cv_type_off_t+set}" = set; then
13922 echo $ECHO_N "(cached) $ECHO_C" >&6
13923 else
13924 @@ -13556,61 +13866,57 @@ cat confdefs.h >>conftest.$ac_ext
13925 cat >>conftest.$ac_ext <<_ACEOF
13926 /* end confdefs.h. */
13927 $ac_includes_default
13928 +typedef off_t ac__type_new_;
13929 int
13930 main ()
13931 {
13932 -if ((off_t *) 0)
13933 +if ((ac__type_new_ *) 0)
13934 return 0;
13935 -if (sizeof (off_t))
13936 +if (sizeof (ac__type_new_))
13937 return 0;
13938 ;
13939 return 0;
13940 }
13941 _ACEOF
13942 rm -f conftest.$ac_objext
13943 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13944 - (eval $ac_compile) 2>conftest.er1
13945 +if { (ac_try="$ac_compile"
13946 +case "(($ac_try" in
13947 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13948 + *) ac_try_echo=$ac_try;;
13949 +esac
13950 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13951 + (eval "$ac_compile") 2>conftest.er1
13952 ac_status=$?
13953 grep -v '^ *+' conftest.er1 >conftest.err
13954 rm -f conftest.er1
13955 cat conftest.err >&5
13956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13957 - (exit $ac_status); } &&
13958 - { ac_try='test -z "$ac_c_werror_flag"
13959 - || test ! -s conftest.err'
13960 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13961 - (eval $ac_try) 2>&5
13962 - ac_status=$?
13963 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
13964 - (exit $ac_status); }; } &&
13965 - { ac_try='test -s conftest.$ac_objext'
13966 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13967 - (eval $ac_try) 2>&5
13968 - ac_status=$?
13969 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
13970 - (exit $ac_status); }; }; then
13971 + (exit $ac_status); } && {
13972 + test -z "$ac_c_werror_flag" ||
13973 + test ! -s conftest.err
13974 + } && test -s conftest.$ac_objext; then
13975 ac_cv_type_off_t=yes
13976 else
13977 echo "$as_me: failed program was:" >&5
13978 sed 's/^/| /' conftest.$ac_ext >&5
13979
13980 -ac_cv_type_off_t=no
13981 + ac_cv_type_off_t=no
13982 fi
13983 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13984 +
13985 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13986 fi
13987 -echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
13988 -echo "${ECHO_T}$ac_cv_type_off_t" >&6
13989 +{ echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
13990 +echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
13991
13992 -echo "$as_me:$LINENO: checking size of off_t" >&5
13993 -echo $ECHO_N "checking size of off_t... $ECHO_C" >&6
13994 +# The cast to long int works around a bug in the HP C Compiler
13995 +# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13996 +# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13997 +# This bug is HP SR number 8606223364.
13998 +{ echo "$as_me:$LINENO: checking size of off_t" >&5
13999 +echo $ECHO_N "checking size of off_t... $ECHO_C" >&6; }
14000 if test "${ac_cv_sizeof_off_t+set}" = set; then
14001 echo $ECHO_N "(cached) $ECHO_C" >&6
14002 else
14003 - if test "$ac_cv_type_off_t" = yes; then
14004 - # The cast to unsigned long works around a bug in the HP C Compiler
14005 - # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14006 - # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14007 - # This bug is HP SR number 8606223364.
14008 if test "$cross_compiling" = yes; then
14009 # Depending upon the size, compute the lo and hi bounds.
14010 cat >conftest.$ac_ext <<_ACEOF
14011 @@ -13620,10 +13926,11 @@ cat confdefs.h >>conftest.$ac_ext
14012 cat >>conftest.$ac_ext <<_ACEOF
14013 /* end confdefs.h. */
14014 $ac_includes_default
14015 + typedef off_t ac__type_sizeof_;
14016 int
14017 main ()
14018 {
14019 -static int test_array [1 - 2 * !(((long) (sizeof (off_t))) >= 0)];
14020 +static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
14021 test_array [0] = 0
14022
14023 ;
14024 @@ -13631,27 +13938,22 @@ test_array [0] = 0
14025 }
14026 _ACEOF
14027 rm -f conftest.$ac_objext
14028 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14029 - (eval $ac_compile) 2>conftest.er1
14030 +if { (ac_try="$ac_compile"
14031 +case "(($ac_try" in
14032 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14033 + *) ac_try_echo=$ac_try;;
14034 +esac
14035 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14036 + (eval "$ac_compile") 2>conftest.er1
14037 ac_status=$?
14038 grep -v '^ *+' conftest.er1 >conftest.err
14039 rm -f conftest.er1
14040 cat conftest.err >&5
14041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14042 - (exit $ac_status); } &&
14043 - { ac_try='test -z "$ac_c_werror_flag"
14044 - || test ! -s conftest.err'
14045 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14046 - (eval $ac_try) 2>&5
14047 - ac_status=$?
14048 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
14049 - (exit $ac_status); }; } &&
14050 - { ac_try='test -s conftest.$ac_objext'
14051 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14052 - (eval $ac_try) 2>&5
14053 - ac_status=$?
14054 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
14055 - (exit $ac_status); }; }; then
14056 + (exit $ac_status); } && {
14057 + test -z "$ac_c_werror_flag" ||
14058 + test ! -s conftest.err
14059 + } && test -s conftest.$ac_objext; then
14060 ac_lo=0 ac_mid=0
14061 while :; do
14062 cat >conftest.$ac_ext <<_ACEOF
14063 @@ -13661,10 +13963,11 @@ cat confdefs.h >>conftest.$ac_ext
14064 cat >>conftest.$ac_ext <<_ACEOF
14065 /* end confdefs.h. */
14066 $ac_includes_default
14067 + typedef off_t ac__type_sizeof_;
14068 int
14069 main ()
14070 {
14071 -static int test_array [1 - 2 * !(((long) (sizeof (off_t))) <= $ac_mid)];
14072 +static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
14073 test_array [0] = 0
14074
14075 ;
14076 @@ -13672,56 +13975,53 @@ test_array [0] = 0
14077 }
14078 _ACEOF
14079 rm -f conftest.$ac_objext
14080 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14081 - (eval $ac_compile) 2>conftest.er1
14082 +if { (ac_try="$ac_compile"
14083 +case "(($ac_try" in
14084 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14085 + *) ac_try_echo=$ac_try;;
14086 +esac
14087 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14088 + (eval "$ac_compile") 2>conftest.er1
14089 ac_status=$?
14090 grep -v '^ *+' conftest.er1 >conftest.err
14091 rm -f conftest.er1
14092 cat conftest.err >&5
14093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14094 - (exit $ac_status); } &&
14095 - { ac_try='test -z "$ac_c_werror_flag"
14096 - || test ! -s conftest.err'
14097 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14098 - (eval $ac_try) 2>&5
14099 - ac_status=$?
14100 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
14101 - (exit $ac_status); }; } &&
14102 - { ac_try='test -s conftest.$ac_objext'
14103 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14104 - (eval $ac_try) 2>&5
14105 - ac_status=$?
14106 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
14107 - (exit $ac_status); }; }; then
14108 + (exit $ac_status); } && {
14109 + test -z "$ac_c_werror_flag" ||
14110 + test ! -s conftest.err
14111 + } && test -s conftest.$ac_objext; then
14112 ac_hi=$ac_mid; break
14113 else
14114 echo "$as_me: failed program was:" >&5
14115 sed 's/^/| /' conftest.$ac_ext >&5
14116
14117 -ac_lo=`expr $ac_mid + 1`
14118 - if test $ac_lo -le $ac_mid; then
14119 - ac_lo= ac_hi=
14120 - break
14121 - fi
14122 - ac_mid=`expr 2 '*' $ac_mid + 1`
14123 + ac_lo=`expr $ac_mid + 1`
14124 + if test $ac_lo -le $ac_mid; then
14125 + ac_lo= ac_hi=
14126 + break
14127 + fi
14128 + ac_mid=`expr 2 '*' $ac_mid + 1`
14129 fi
14130 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14131 +
14132 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14133 done
14134 else
14135 echo "$as_me: failed program was:" >&5
14136 sed 's/^/| /' conftest.$ac_ext >&5
14137
14138 -cat >conftest.$ac_ext <<_ACEOF
14139 + cat >conftest.$ac_ext <<_ACEOF
14140 /* confdefs.h. */
14141 _ACEOF
14142 cat confdefs.h >>conftest.$ac_ext
14143 cat >>conftest.$ac_ext <<_ACEOF
14144 /* end confdefs.h. */
14145 $ac_includes_default
14146 + typedef off_t ac__type_sizeof_;
14147 int
14148 main ()
14149 {
14150 -static int test_array [1 - 2 * !(((long) (sizeof (off_t))) < 0)];
14151 +static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
14152 test_array [0] = 0
14153
14154 ;
14155 @@ -13729,27 +14029,22 @@ test_array [0] = 0
14156 }
14157 _ACEOF
14158 rm -f conftest.$ac_objext
14159 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14160 - (eval $ac_compile) 2>conftest.er1
14161 +if { (ac_try="$ac_compile"
14162 +case "(($ac_try" in
14163 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14164 + *) ac_try_echo=$ac_try;;
14165 +esac
14166 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14167 + (eval "$ac_compile") 2>conftest.er1
14168 ac_status=$?
14169 grep -v '^ *+' conftest.er1 >conftest.err
14170 rm -f conftest.er1
14171 cat conftest.err >&5
14172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14173 - (exit $ac_status); } &&
14174 - { ac_try='test -z "$ac_c_werror_flag"
14175 - || test ! -s conftest.err'
14176 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14177 - (eval $ac_try) 2>&5
14178 - ac_status=$?
14179 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
14180 - (exit $ac_status); }; } &&
14181 - { ac_try='test -s conftest.$ac_objext'
14182 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14183 - (eval $ac_try) 2>&5
14184 - ac_status=$?
14185 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
14186 - (exit $ac_status); }; }; then
14187 + (exit $ac_status); } && {
14188 + test -z "$ac_c_werror_flag" ||
14189 + test ! -s conftest.err
14190 + } && test -s conftest.$ac_objext; then
14191 ac_hi=-1 ac_mid=-1
14192 while :; do
14193 cat >conftest.$ac_ext <<_ACEOF
14194 @@ -13759,10 +14054,11 @@ cat confdefs.h >>conftest.$ac_ext
14195 cat >>conftest.$ac_ext <<_ACEOF
14196 /* end confdefs.h. */
14197 $ac_includes_default
14198 + typedef off_t ac__type_sizeof_;
14199 int
14200 main ()
14201 {
14202 -static int test_array [1 - 2 * !(((long) (sizeof (off_t))) >= $ac_mid)];
14203 +static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
14204 test_array [0] = 0
14205
14206 ;
14207 @@ -13770,50 +14066,48 @@ test_array [0] = 0
14208 }
14209 _ACEOF
14210 rm -f conftest.$ac_objext
14211 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14212 - (eval $ac_compile) 2>conftest.er1
14213 +if { (ac_try="$ac_compile"
14214 +case "(($ac_try" in
14215 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14216 + *) ac_try_echo=$ac_try;;
14217 +esac
14218 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14219 + (eval "$ac_compile") 2>conftest.er1
14220 ac_status=$?
14221 grep -v '^ *+' conftest.er1 >conftest.err
14222 rm -f conftest.er1
14223 cat conftest.err >&5
14224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14225 - (exit $ac_status); } &&
14226 - { ac_try='test -z "$ac_c_werror_flag"
14227 - || test ! -s conftest.err'
14228 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14229 - (eval $ac_try) 2>&5
14230 - ac_status=$?
14231 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
14232 - (exit $ac_status); }; } &&
14233 - { ac_try='test -s conftest.$ac_objext'
14234 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14235 - (eval $ac_try) 2>&5
14236 - ac_status=$?
14237 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
14238 - (exit $ac_status); }; }; then
14239 + (exit $ac_status); } && {
14240 + test -z "$ac_c_werror_flag" ||
14241 + test ! -s conftest.err
14242 + } && test -s conftest.$ac_objext; then
14243 ac_lo=$ac_mid; break
14244 else
14245 echo "$as_me: failed program was:" >&5
14246 sed 's/^/| /' conftest.$ac_ext >&5
14247
14248 -ac_hi=`expr '(' $ac_mid ')' - 1`
14249 - if test $ac_mid -le $ac_hi; then
14250 - ac_lo= ac_hi=
14251 - break
14252 - fi
14253 - ac_mid=`expr 2 '*' $ac_mid`
14254 + ac_hi=`expr '(' $ac_mid ')' - 1`
14255 + if test $ac_mid -le $ac_hi; then
14256 + ac_lo= ac_hi=
14257 + break
14258 + fi
14259 + ac_mid=`expr 2 '*' $ac_mid`
14260 fi
14261 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14262 +
14263 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14264 done
14265 else
14266 echo "$as_me: failed program was:" >&5
14267 sed 's/^/| /' conftest.$ac_ext >&5
14268
14269 -ac_lo= ac_hi=
14270 + ac_lo= ac_hi=
14271 fi
14272 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14273 +
14274 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14275 fi
14276 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14277 +
14278 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14279 # Binary search between lo and hi bounds.
14280 while test "x$ac_lo" != "x$ac_hi"; do
14281 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14282 @@ -13824,10 +14118,11 @@ cat confdefs.h >>conftest.$ac_ext
14283 cat >>conftest.$ac_ext <<_ACEOF
14284 /* end confdefs.h. */
14285 $ac_includes_default
14286 + typedef off_t ac__type_sizeof_;
14287 int
14288 main ()
14289 {
14290 -static int test_array [1 - 2 * !(((long) (sizeof (off_t))) <= $ac_mid)];
14291 +static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
14292 test_array [0] = 0
14293
14294 ;
14295 @@ -13835,52 +14130,45 @@ test_array [0] = 0
14296 }
14297 _ACEOF
14298 rm -f conftest.$ac_objext
14299 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14300 - (eval $ac_compile) 2>conftest.er1
14301 +if { (ac_try="$ac_compile"
14302 +case "(($ac_try" in
14303 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14304 + *) ac_try_echo=$ac_try;;
14305 +esac
14306 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14307 + (eval "$ac_compile") 2>conftest.er1
14308 ac_status=$?
14309 grep -v '^ *+' conftest.er1 >conftest.err
14310 rm -f conftest.er1
14311 cat conftest.err >&5
14312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14313 - (exit $ac_status); } &&
14314 - { ac_try='test -z "$ac_c_werror_flag"
14315 - || test ! -s conftest.err'
14316 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14317 - (eval $ac_try) 2>&5
14318 - ac_status=$?
14319 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
14320 - (exit $ac_status); }; } &&
14321 - { ac_try='test -s conftest.$ac_objext'
14322 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14323 - (eval $ac_try) 2>&5
14324 - ac_status=$?
14325 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
14326 - (exit $ac_status); }; }; then
14327 + (exit $ac_status); } && {
14328 + test -z "$ac_c_werror_flag" ||
14329 + test ! -s conftest.err
14330 + } && test -s conftest.$ac_objext; then
14331 ac_hi=$ac_mid
14332 else
14333 echo "$as_me: failed program was:" >&5
14334 sed 's/^/| /' conftest.$ac_ext >&5
14335
14336 -ac_lo=`expr '(' $ac_mid ')' + 1`
14337 + ac_lo=`expr '(' $ac_mid ')' + 1`
14338 fi
14339 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14340 +
14341 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14342 done
14343 case $ac_lo in
14344 ?*) ac_cv_sizeof_off_t=$ac_lo;;
14345 -'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t), 77
14346 +'') if test "$ac_cv_type_off_t" = yes; then
14347 + { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
14348 See \`config.log' for more details." >&5
14349 -echo "$as_me: error: cannot compute sizeof (off_t), 77
14350 +echo "$as_me: error: cannot compute sizeof (off_t)
14351 See \`config.log' for more details." >&2;}
14352 - { (exit 1); exit 1; }; } ;;
14353 + { (exit 77); exit 77; }; }
14354 + else
14355 + ac_cv_sizeof_off_t=0
14356 + fi ;;
14357 esac
14358 else
14359 - if test "$cross_compiling" = yes; then
14360 - { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14361 -See \`config.log' for more details." >&5
14362 -echo "$as_me: error: cannot run test program while cross compiling
14363 -See \`config.log' for more details." >&2;}
14364 - { (exit 1); exit 1; }; }
14365 -else
14366 cat >conftest.$ac_ext <<_ACEOF
14367 /* confdefs.h. */
14368 _ACEOF
14369 @@ -13888,8 +14176,9 @@ cat confdefs.h >>conftest.$ac_ext
14370 cat >>conftest.$ac_ext <<_ACEOF
14371 /* end confdefs.h. */
14372 $ac_includes_default
14373 -long longval () { return (long) (sizeof (off_t)); }
14374 -unsigned long ulongval () { return (long) (sizeof (off_t)); }
14375 + typedef off_t ac__type_sizeof_;
14376 +static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
14377 +static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
14378 #include <stdio.h>
14379 #include <stdlib.h>
14380 int
14381 @@ -13898,35 +14187,44 @@ main ()
14382
14383 FILE *f = fopen ("conftest.val", "w");
14384 if (! f)
14385 - exit (1);
14386 - if (((long) (sizeof (off_t))) < 0)
14387 + return 1;
14388 + if (((long int) (sizeof (ac__type_sizeof_))) < 0)
14389 {
14390 - long i = longval ();
14391 - if (i != ((long) (sizeof (off_t))))
14392 - exit (1);
14393 + long int i = longval ();
14394 + if (i != ((long int) (sizeof (ac__type_sizeof_))))
14395 + return 1;
14396 fprintf (f, "%ld\n", i);
14397 }
14398 else
14399 {
14400 - unsigned long i = ulongval ();
14401 - if (i != ((long) (sizeof (off_t))))
14402 - exit (1);
14403 + unsigned long int i = ulongval ();
14404 + if (i != ((long int) (sizeof (ac__type_sizeof_))))
14405 + return 1;
14406 fprintf (f, "%lu\n", i);
14407 }
14408 - exit (ferror (f) || fclose (f) != 0);
14409 + return ferror (f) || fclose (f) != 0;
14410
14411 ;
14412 return 0;
14413 }
14414 _ACEOF
14415 rm -f conftest$ac_exeext
14416 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14417 - (eval $ac_link) 2>&5
14418 +if { (ac_try="$ac_link"
14419 +case "(($ac_try" in
14420 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14421 + *) ac_try_echo=$ac_try;;
14422 +esac
14423 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14424 + (eval "$ac_link") 2>&5
14425 ac_status=$?
14426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14427 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14428 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14429 - (eval $ac_try) 2>&5
14430 + { (case "(($ac_try" in
14431 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14432 + *) ac_try_echo=$ac_try;;
14433 +esac
14434 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14435 + (eval "$ac_try") 2>&5
14436 ac_status=$?
14437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14438 (exit $ac_status); }; }; then
14439 @@ -13937,30 +14235,33 @@ echo "$as_me: failed program was:" >&5
14440 sed 's/^/| /' conftest.$ac_ext >&5
14441
14442 ( exit $ac_status )
14443 -{ { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t), 77
14444 +if test "$ac_cv_type_off_t" = yes; then
14445 + { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
14446 See \`config.log' for more details." >&5
14447 -echo "$as_me: error: cannot compute sizeof (off_t), 77
14448 +echo "$as_me: error: cannot compute sizeof (off_t)
14449 See \`config.log' for more details." >&2;}
14450 - { (exit 1); exit 1; }; }
14451 -fi
14452 -rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14453 + { (exit 77); exit 77; }; }
14454 + else
14455 + ac_cv_sizeof_off_t=0
14456 + fi
14457 fi
14458 +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14459 fi
14460 rm -f conftest.val
14461 -else
14462 - ac_cv_sizeof_off_t=0
14463 -fi
14464 fi
14465 -echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
14466 -echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6
14467 +{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
14468 +echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6; }
14469 +
14470 +
14471 +
14472 cat >>confdefs.h <<_ACEOF
14473 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
14474 _ACEOF
14475
14476
14477 fi
14478 -echo "$as_me:$LINENO: checking file_ptr type" >&5
14479 -echo $ECHO_N "checking file_ptr type... $ECHO_C" >&6
14480 +{ echo "$as_me:$LINENO: checking file_ptr type" >&5
14481 +echo $ECHO_N "checking file_ptr type... $ECHO_C" >&6; }
14482 bfd_file_ptr="long"
14483 bfd_ufile_ptr="unsigned long"
14484 if test x"$ac_cv_func_ftello64" = xyes -a x"$ac_cv_func_fseeko64" = xyes \
14485 @@ -13968,8 +14269,8 @@ if test x"$ac_cv_func_ftello64" = xyes -
14486 bfd_file_ptr=BFD_HOST_64_BIT
14487 bfd_ufile_ptr=BFD_HOST_U_64_BIT
14488 fi
14489 -echo "$as_me:$LINENO: result: $bfd_file_ptr" >&5
14490 -echo "${ECHO_T}$bfd_file_ptr" >&6
14491 +{ echo "$as_me:$LINENO: result: $bfd_file_ptr" >&5
14492 +echo "${ECHO_T}$bfd_file_ptr" >&6; }
14493
14494
14495
14496 @@ -13987,18 +14288,19 @@ test -n "${havevecs}" && tdefaults="${td
14497 for ac_header in stdlib.h unistd.h
14498 do
14499 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14500 -if eval "test \"\${$as_ac_Header+set}\" = set"; then
14501 - echo "$as_me:$LINENO: checking for $ac_header" >&5
14502 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14503 -if eval "test \"\${$as_ac_Header+set}\" = set"; then
14504 +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14505 + { echo "$as_me:$LINENO: checking for $ac_header" >&5
14506 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14507 +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14508 echo $ECHO_N "(cached) $ECHO_C" >&6
14509 fi
14510 -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14511 -echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14512 +ac_res=`eval echo '${'$as_ac_Header'}'`
14513 + { echo "$as_me:$LINENO: result: $ac_res" >&5
14514 +echo "${ECHO_T}$ac_res" >&6; }
14515 else
14516 # Is the header compilable?
14517 -echo "$as_me:$LINENO: checking $ac_header usability" >&5
14518 -echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14519 +{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14520 +echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14521 cat >conftest.$ac_ext <<_ACEOF
14522 /* confdefs.h. */
14523 _ACEOF
14524 @@ -14009,41 +14311,37 @@ $ac_includes_default
14525 #include <$ac_header>
14526 _ACEOF
14527 rm -f conftest.$ac_objext
14528 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14529 - (eval $ac_compile) 2>conftest.er1
14530 +if { (ac_try="$ac_compile"
14531 +case "(($ac_try" in
14532 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14533 + *) ac_try_echo=$ac_try;;
14534 +esac
14535 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14536 + (eval "$ac_compile") 2>conftest.er1
14537 ac_status=$?
14538 grep -v '^ *+' conftest.er1 >conftest.err
14539 rm -f conftest.er1
14540 cat conftest.err >&5
14541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14542 - (exit $ac_status); } &&
14543 - { ac_try='test -z "$ac_c_werror_flag"
14544 - || test ! -s conftest.err'
14545 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14546 - (eval $ac_try) 2>&5
14547 - ac_status=$?
14548 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
14549 - (exit $ac_status); }; } &&
14550 - { ac_try='test -s conftest.$ac_objext'
14551 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14552 - (eval $ac_try) 2>&5
14553 - ac_status=$?
14554 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
14555 - (exit $ac_status); }; }; then
14556 + (exit $ac_status); } && {
14557 + test -z "$ac_c_werror_flag" ||
14558 + test ! -s conftest.err
14559 + } && test -s conftest.$ac_objext; then
14560 ac_header_compiler=yes
14561 else
14562 echo "$as_me: failed program was:" >&5
14563 sed 's/^/| /' conftest.$ac_ext >&5
14564
14565 -ac_header_compiler=no
14566 + ac_header_compiler=no
14567 fi
14568 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14569 -echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14570 -echo "${ECHO_T}$ac_header_compiler" >&6
14571 +
14572 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14573 +{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14574 +echo "${ECHO_T}$ac_header_compiler" >&6; }
14575
14576 # Is the header present?
14577 -echo "$as_me:$LINENO: checking $ac_header presence" >&5
14578 -echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14579 +{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14580 +echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14581 cat >conftest.$ac_ext <<_ACEOF
14582 /* confdefs.h. */
14583 _ACEOF
14584 @@ -14052,24 +14350,22 @@ cat >>conftest.$ac_ext <<_ACEOF
14585 /* end confdefs.h. */
14586 #include <$ac_header>
14587 _ACEOF
14588 -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14589 - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14590 +if { (ac_try="$ac_cpp conftest.$ac_ext"
14591 +case "(($ac_try" in
14592 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14593 + *) ac_try_echo=$ac_try;;
14594 +esac
14595 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14596 + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14597 ac_status=$?
14598 grep -v '^ *+' conftest.er1 >conftest.err
14599 rm -f conftest.er1
14600 cat conftest.err >&5
14601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14602 - (exit $ac_status); } >/dev/null; then
14603 - if test -s conftest.err; then
14604 - ac_cpp_err=$ac_c_preproc_warn_flag
14605 - ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14606 - else
14607 - ac_cpp_err=
14608 - fi
14609 -else
14610 - ac_cpp_err=yes
14611 -fi
14612 -if test -z "$ac_cpp_err"; then
14613 + (exit $ac_status); } >/dev/null && {
14614 + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14615 + test ! -s conftest.err
14616 + }; then
14617 ac_header_preproc=yes
14618 else
14619 echo "$as_me: failed program was:" >&5
14620 @@ -14077,9 +14373,10 @@ sed 's/^/| /' conftest.$ac_ext >&5
14621
14622 ac_header_preproc=no
14623 fi
14624 +
14625 rm -f conftest.err conftest.$ac_ext
14626 -echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14627 -echo "${ECHO_T}$ac_header_preproc" >&6
14628 +{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14629 +echo "${ECHO_T}$ac_header_preproc" >&6; }
14630
14631 # So? What about this header?
14632 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14633 @@ -14103,25 +14400,19 @@ echo "$as_me: WARNING: $ac_header: s
14634 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14635 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14636 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14637 - (
14638 - cat <<\_ASBOX
14639 -## ------------------------------------------ ##
14640 -## Report this to the AC_PACKAGE_NAME lists. ##
14641 -## ------------------------------------------ ##
14642 -_ASBOX
14643 - ) |
14644 - sed "s/^/$as_me: WARNING: /" >&2
14645 +
14646 ;;
14647 esac
14648 -echo "$as_me:$LINENO: checking for $ac_header" >&5
14649 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14650 -if eval "test \"\${$as_ac_Header+set}\" = set"; then
14651 +{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14652 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14653 +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14654 echo $ECHO_N "(cached) $ECHO_C" >&6
14655 else
14656 eval "$as_ac_Header=\$ac_header_preproc"
14657 fi
14658 -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14659 -echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14660 +ac_res=`eval echo '${'$as_ac_Header'}'`
14661 + { echo "$as_me:$LINENO: result: $ac_res" >&5
14662 +echo "${ECHO_T}$ac_res" >&6; }
14663
14664 fi
14665 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14666 @@ -14137,9 +14428,9 @@ done
14667 for ac_func in getpagesize
14668 do
14669 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14670 -echo "$as_me:$LINENO: checking for $ac_func" >&5
14671 -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14672 -if eval "test \"\${$as_ac_var+set}\" = set"; then
14673 +{ echo "$as_me:$LINENO: checking for $ac_func" >&5
14674 +echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14675 +if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14676 echo $ECHO_N "(cached) $ECHO_C" >&6
14677 else
14678 cat >conftest.$ac_ext <<_ACEOF
14679 @@ -14165,68 +14456,60 @@ cat >>conftest.$ac_ext <<_ACEOF
14680
14681 #undef $ac_func
14682
14683 -/* Override any gcc2 internal prototype to avoid an error. */
14684 +/* Override any GCC internal prototype to avoid an error.
14685 + Use char because int might match the return type of a GCC
14686 + builtin and then its argument prototype would still apply. */
14687 #ifdef __cplusplus
14688 extern "C"
14689 -{
14690 #endif
14691 -/* We use char because int might match the return type of a gcc2
14692 - builtin and then its argument prototype would still apply. */
14693 char $ac_func ();
14694 /* The GNU C library defines this for functions which it implements
14695 to always fail with ENOSYS. Some functions are actually named
14696 something starting with __ and the normal name is an alias. */
14697 -#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14698 +#if defined __stub_$ac_func || defined __stub___$ac_func
14699 choke me
14700 -#else
14701 -char (*f) () = $ac_func;
14702 -#endif
14703 -#ifdef __cplusplus
14704 -}
14705 #endif
14706
14707 int
14708 main ()
14709 {
14710 -return f != $ac_func;
14711 +return $ac_func ();
14712 ;
14713 return 0;
14714 }
14715 _ACEOF
14716 rm -f conftest.$ac_objext conftest$ac_exeext
14717 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14718 - (eval $ac_link) 2>conftest.er1
14719 +if { (ac_try="$ac_link"
14720 +case "(($ac_try" in
14721 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14722 + *) ac_try_echo=$ac_try;;
14723 +esac
14724 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14725 + (eval "$ac_link") 2>conftest.er1
14726 ac_status=$?
14727 grep -v '^ *+' conftest.er1 >conftest.err
14728 rm -f conftest.er1
14729 cat conftest.err >&5
14730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14731 - (exit $ac_status); } &&
14732 - { ac_try='test -z "$ac_c_werror_flag"
14733 - || test ! -s conftest.err'
14734 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14735 - (eval $ac_try) 2>&5
14736 - ac_status=$?
14737 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
14738 - (exit $ac_status); }; } &&
14739 - { ac_try='test -s conftest$ac_exeext'
14740 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14741 - (eval $ac_try) 2>&5
14742 - ac_status=$?
14743 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
14744 - (exit $ac_status); }; }; then
14745 + (exit $ac_status); } && {
14746 + test -z "$ac_c_werror_flag" ||
14747 + test ! -s conftest.err
14748 + } && test -s conftest$ac_exeext &&
14749 + $as_test_x conftest$ac_exeext; then
14750 eval "$as_ac_var=yes"
14751 else
14752 echo "$as_me: failed program was:" >&5
14753 sed 's/^/| /' conftest.$ac_ext >&5
14754
14755 -eval "$as_ac_var=no"
14756 + eval "$as_ac_var=no"
14757 fi
14758 -rm -f conftest.err conftest.$ac_objext \
14759 +
14760 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14761 conftest$ac_exeext conftest.$ac_ext
14762 fi
14763 -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14764 -echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14765 +ac_res=`eval echo '${'$as_ac_var'}'`
14766 + { echo "$as_me:$LINENO: result: $ac_res" >&5
14767 +echo "${ECHO_T}$ac_res" >&6; }
14768 if test `eval echo '${'$as_ac_var'}'` = yes; then
14769 cat >>confdefs.h <<_ACEOF
14770 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14771 @@ -14235,8 +14518,8 @@ _ACEOF
14772 fi
14773 done
14774
14775 -echo "$as_me:$LINENO: checking for working mmap" >&5
14776 -echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
14777 +{ echo "$as_me:$LINENO: checking for working mmap" >&5
14778 +echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
14779 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
14780 echo $ECHO_N "(cached) $ECHO_C" >&6
14781 else
14782 @@ -14278,21 +14561,21 @@ $ac_includes_default
14783 #include <fcntl.h>
14784 #include <sys/mman.h>
14785
14786 -#if !STDC_HEADERS && !HAVE_STDLIB_H
14787 +#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
14788 char *malloc ();
14789 #endif
14790
14791 /* This mess was copied from the GNU getpagesize.h. */
14792 -#if !HAVE_GETPAGESIZE
14793 +#ifndef HAVE_GETPAGESIZE
14794 /* Assume that all systems that can run configure have sys/param.h. */
14795 -# if !HAVE_SYS_PARAM_H
14796 +# ifndef HAVE_SYS_PARAM_H
14797 # define HAVE_SYS_PARAM_H 1
14798 # endif
14799
14800 # ifdef _SC_PAGESIZE
14801 # define getpagesize() sysconf(_SC_PAGESIZE)
14802 # else /* no _SC_PAGESIZE */
14803 -# if HAVE_SYS_PARAM_H
14804 +# ifdef HAVE_SYS_PARAM_H
14805 # include <sys/param.h>
14806 # ifdef EXEC_PAGESIZE
14807 # define getpagesize() EXEC_PAGESIZE
14808 @@ -14331,15 +14614,15 @@ main ()
14809 /* First, make a file with some known garbage in it. */
14810 data = (char *) malloc (pagesize);
14811 if (!data)
14812 - exit (1);
14813 + return 1;
14814 for (i = 0; i < pagesize; ++i)
14815 *(data + i) = rand ();
14816 umask (0);
14817 fd = creat ("conftest.mmap", 0600);
14818 if (fd < 0)
14819 - exit (1);
14820 + return 1;
14821 if (write (fd, data, pagesize) != pagesize)
14822 - exit (1);
14823 + return 1;
14824 close (fd);
14825
14826 /* Next, try to mmap the file at a fixed address which already has
14827 @@ -14347,17 +14630,17 @@ main ()
14828 we see the same garbage. */
14829 fd = open ("conftest.mmap", O_RDWR);
14830 if (fd < 0)
14831 - exit (1);
14832 + return 1;
14833 data2 = (char *) malloc (2 * pagesize);
14834 if (!data2)
14835 - exit (1);
14836 - data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
14837 + return 1;
14838 + data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
14839 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
14840 MAP_PRIVATE | MAP_FIXED, fd, 0L))
14841 - exit (1);
14842 + return 1;
14843 for (i = 0; i < pagesize; ++i)
14844 if (*(data + i) != *(data2 + i))
14845 - exit (1);
14846 + return 1;
14847
14848 /* Finally, make sure that changes to the mapped area do not
14849 percolate back to the file as seen by read(). (This is a bug on
14850 @@ -14366,24 +14649,33 @@ main ()
14851 *(data2 + i) = *(data2 + i) + 1;
14852 data3 = (char *) malloc (pagesize);
14853 if (!data3)
14854 - exit (1);
14855 + return 1;
14856 if (read (fd, data3, pagesize) != pagesize)
14857 - exit (1);
14858 + return 1;
14859 for (i = 0; i < pagesize; ++i)
14860 if (*(data + i) != *(data3 + i))
14861 - exit (1);
14862 + return 1;
14863 close (fd);
14864 - exit (0);
14865 + return 0;
14866 }
14867 _ACEOF
14868 rm -f conftest$ac_exeext
14869 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14870 - (eval $ac_link) 2>&5
14871 +if { (ac_try="$ac_link"
14872 +case "(($ac_try" in
14873 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14874 + *) ac_try_echo=$ac_try;;
14875 +esac
14876 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14877 + (eval "$ac_link") 2>&5
14878 ac_status=$?
14879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14880 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14881 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14882 - (eval $ac_try) 2>&5
14883 + { (case "(($ac_try" in
14884 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14885 + *) ac_try_echo=$ac_try;;
14886 +esac
14887 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14888 + (eval "$ac_try") 2>&5
14889 ac_status=$?
14890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14891 (exit $ac_status); }; }; then
14892 @@ -14396,11 +14688,13 @@ sed 's/^/| /' conftest.$ac_ext >&5
14893 ( exit $ac_status )
14894 ac_cv_func_mmap_fixed_mapped=no
14895 fi
14896 -rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14897 +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14898 fi
14899 +
14900 +
14901 fi
14902 -echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
14903 -echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
14904 +{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
14905 +echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
14906 if test $ac_cv_func_mmap_fixed_mapped = yes; then
14907
14908 cat >>confdefs.h <<\_ACEOF
14909 @@ -14415,9 +14709,9 @@ rm -f conftest.mmap
14910 for ac_func in madvise mprotect
14911 do
14912 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14913 -echo "$as_me:$LINENO: checking for $ac_func" >&5
14914 -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14915 -if eval "test \"\${$as_ac_var+set}\" = set"; then
14916 +{ echo "$as_me:$LINENO: checking for $ac_func" >&5
14917 +echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14918 +if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14919 echo $ECHO_N "(cached) $ECHO_C" >&6
14920 else
14921 cat >conftest.$ac_ext <<_ACEOF
14922 @@ -14443,68 +14737,60 @@ cat >>conftest.$ac_ext <<_ACEOF
14923
14924 #undef $ac_func
14925
14926 -/* Override any gcc2 internal prototype to avoid an error. */
14927 +/* Override any GCC internal prototype to avoid an error.
14928 + Use char because int might match the return type of a GCC
14929 + builtin and then its argument prototype would still apply. */
14930 #ifdef __cplusplus
14931 extern "C"
14932 -{
14933 #endif
14934 -/* We use char because int might match the return type of a gcc2
14935 - builtin and then its argument prototype would still apply. */
14936 char $ac_func ();
14937 /* The GNU C library defines this for functions which it implements
14938 to always fail with ENOSYS. Some functions are actually named
14939 something starting with __ and the normal name is an alias. */
14940 -#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14941 +#if defined __stub_$ac_func || defined __stub___$ac_func
14942 choke me
14943 -#else
14944 -char (*f) () = $ac_func;
14945 -#endif
14946 -#ifdef __cplusplus
14947 -}
14948 #endif
14949
14950 int
14951 main ()
14952 {
14953 -return f != $ac_func;
14954 +return $ac_func ();
14955 ;
14956 return 0;
14957 }
14958 _ACEOF
14959 rm -f conftest.$ac_objext conftest$ac_exeext
14960 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14961 - (eval $ac_link) 2>conftest.er1
14962 +if { (ac_try="$ac_link"
14963 +case "(($ac_try" in
14964 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14965 + *) ac_try_echo=$ac_try;;
14966 +esac
14967 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14968 + (eval "$ac_link") 2>conftest.er1
14969 ac_status=$?
14970 grep -v '^ *+' conftest.er1 >conftest.err
14971 rm -f conftest.er1
14972 cat conftest.err >&5
14973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14974 - (exit $ac_status); } &&
14975 - { ac_try='test -z "$ac_c_werror_flag"
14976 - || test ! -s conftest.err'
14977 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14978 - (eval $ac_try) 2>&5
14979 - ac_status=$?
14980 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
14981 - (exit $ac_status); }; } &&
14982 - { ac_try='test -s conftest$ac_exeext'
14983 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14984 - (eval $ac_try) 2>&5
14985 - ac_status=$?
14986 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
14987 - (exit $ac_status); }; }; then
14988 + (exit $ac_status); } && {
14989 + test -z "$ac_c_werror_flag" ||
14990 + test ! -s conftest.err
14991 + } && test -s conftest$ac_exeext &&
14992 + $as_test_x conftest$ac_exeext; then
14993 eval "$as_ac_var=yes"
14994 else
14995 echo "$as_me: failed program was:" >&5
14996 sed 's/^/| /' conftest.$ac_ext >&5
14997
14998 -eval "$as_ac_var=no"
14999 + eval "$as_ac_var=no"
15000 fi
15001 -rm -f conftest.err conftest.$ac_objext \
15002 +
15003 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15004 conftest$ac_exeext conftest.$ac_ext
15005 fi
15006 -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15007 -echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15008 +ac_res=`eval echo '${'$as_ac_var'}'`
15009 + { echo "$as_me:$LINENO: result: $ac_res" >&5
15010 +echo "${ECHO_T}$ac_res" >&6; }
15011 if test `eval echo '${'$as_ac_var'}'` = yes; then
15012 cat >>confdefs.h <<_ACEOF
15013 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15014 @@ -14522,9 +14808,9 @@ _ACEOF
15015 esac
15016
15017 rm -f doc/config.status
15018 - ac_config_files="$ac_config_files Makefile doc/Makefile bfd-in3.h:bfd-in2.h po/Makefile.in:po/Make-in"
15019 +ac_config_files="$ac_config_files Makefile doc/Makefile bfd-in3.h:bfd-in2.h po/Makefile.in:po/Make-in"
15020
15021 - ac_config_commands="$ac_config_commands default"
15022 +ac_config_commands="$ac_config_commands default"
15023
15024
15025
15026 @@ -14549,39 +14835,58 @@ _ACEOF
15027
15028 # The following way of writing the cache mishandles newlines in values,
15029 # but we know of no workaround that is simple, portable, and efficient.
15030 -# So, don't put newlines in cache variables' values.
15031 +# So, we kill variables containing newlines.
15032 # Ultrix sh set writes to stderr and can't be redirected directly,
15033 # and sets the high bit in the cache file unless we assign to the vars.
15034 -{
15035 +(
15036 + for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15037 + eval ac_val=\$$ac_var
15038 + case $ac_val in #(
15039 + *${as_nl}*)
15040 + case $ac_var in #(
15041 + *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
15042 +echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
15043 + esac
15044 + case $ac_var in #(
15045 + _ | IFS | as_nl) ;; #(
15046 + *) $as_unset $ac_var ;;
15047 + esac ;;
15048 + esac
15049 + done
15050 +
15051 (set) 2>&1 |
15052 - case `(ac_space=' '; set | grep ac_space) 2>&1` in
15053 - *ac_space=\ *)
15054 + case $as_nl`(ac_space=' '; set) 2>&1` in #(
15055 + *${as_nl}ac_space=\ *)
15056 # `set' does not quote correctly, so add quotes (double-quote
15057 # substitution turns \\\\ into \\, and sed turns \\ into \).
15058 sed -n \
15059 "s/'/'\\\\''/g;
15060 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15061 - ;;
15062 + ;; #(
15063 *)
15064 # `set' quotes correctly as required by POSIX, so do not add quotes.
15065 - sed -n \
15066 - "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
15067 + sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15068 ;;
15069 - esac;
15070 -} |
15071 + esac |
15072 + sort
15073 +) |
15074 sed '
15075 + /^ac_cv_env_/b end
15076 t clear
15077 - : clear
15078 + :clear
15079 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15080 t end
15081 - /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15082 - : end' >>confcache
15083 -if diff $cache_file confcache >/dev/null 2>&1; then :; else
15084 - if test -w $cache_file; then
15085 - test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
15086 + s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15087 + :end' >>confcache
15088 +if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15089 + if test -w "$cache_file"; then
15090 + test "x$cache_file" != "x/dev/null" &&
15091 + { echo "$as_me:$LINENO: updating cache $cache_file" >&5
15092 +echo "$as_me: updating cache $cache_file" >&6;}
15093 cat confcache >$cache_file
15094 else
15095 - echo "not updating unwritable cache $cache_file"
15096 + { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
15097 +echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15098 fi
15099 fi
15100 rm -f confcache
15101 @@ -14590,32 +14895,18 @@ test "x$prefix" = xNONE && prefix=$ac_de
15102 # Let make expand exec_prefix.
15103 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15104
15105 -# VPATH may cause trouble with some makes, so we remove $(srcdir),
15106 -# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15107 -# trailing colons and then remove the whole line if VPATH becomes empty
15108 -# (actually we leave an empty line to preserve line numbers).
15109 -if test "x$srcdir" = x.; then
15110 - ac_vpsub='/^[ ]*VPATH[ ]*=/{
15111 -s/:*\$(srcdir):*/:/;
15112 -s/:*\${srcdir}:*/:/;
15113 -s/:*@srcdir@:*/:/;
15114 -s/^\([^=]*=[ ]*\):*/\1/;
15115 -s/:*$//;
15116 -s/^[^=]*=[ ]*$//;
15117 -}'
15118 -fi
15119 -
15120 DEFS=-DHAVE_CONFIG_H
15121
15122 ac_libobjs=
15123 ac_ltlibobjs=
15124 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15125 # 1. Remove the extension, and $U if already installed.
15126 - ac_i=`echo "$ac_i" |
15127 - sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
15128 - # 2. Add them.
15129 - ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
15130 - ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
15131 + ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15132 + ac_i=`echo "$ac_i" | sed "$ac_script"`
15133 + # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15134 + # will be set to the directory where LIBOBJS objects are built.
15135 + ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15136 + ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
15137 done
15138 LIBOBJS=$ac_libobjs
15139
15140 @@ -14674,17 +14965,45 @@ cat >>$CONFIG_STATUS <<\_ACEOF
15141 ## M4sh Initialization. ##
15142 ## --------------------- ##
15143
15144 -# Be Bourne compatible
15145 +# Be more Bourne compatible
15146 +DUALCASE=1; export DUALCASE # for MKS sh
15147 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15148 emulate sh
15149 NULLCMD=:
15150 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
15151 # is contrary to our usage. Disable this feature.
15152 alias -g '${1+"$@"}'='"$@"'
15153 -elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
15154 - set -o posix
15155 + setopt NO_GLOB_SUBST
15156 +else
15157 + case `(set -o) 2>/dev/null` in
15158 + *posix*) set -o posix ;;
15159 +esac
15160 +
15161 +fi
15162 +
15163 +
15164 +
15165 +
15166 +# PATH needs CR
15167 +# Avoid depending upon Character Ranges.
15168 +as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15169 +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15170 +as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15171 +as_cr_digits='0123456789'
15172 +as_cr_alnum=$as_cr_Letters$as_cr_digits
15173 +
15174 +# The user is always right.
15175 +if test "${PATH_SEPARATOR+set}" != set; then
15176 + echo "#! /bin/sh" >conf$$.sh
15177 + echo "exit 0" >>conf$$.sh
15178 + chmod +x conf$$.sh
15179 + if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15180 + PATH_SEPARATOR=';'
15181 + else
15182 + PATH_SEPARATOR=:
15183 + fi
15184 + rm -f conf$$.sh
15185 fi
15186 -DUALCASE=1; export DUALCASE # for MKS sh
15187
15188 # Support unset when possible.
15189 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
15190 @@ -14694,8 +15013,43 @@ else
15191 fi
15192
15193
15194 +# IFS
15195 +# We need space, tab and new line, in precisely that order. Quoting is
15196 +# there to prevent editors from complaining about space-tab.
15197 +# (If _AS_PATH_WALK were called with IFS unset, it would disable word
15198 +# splitting by setting IFS to empty value.)
15199 +as_nl='
15200 +'
15201 +IFS=" "" $as_nl"
15202 +
15203 +# Find who we are. Look in the path if we contain no directory separator.
15204 +case $0 in
15205 + *[\\/]* ) as_myself=$0 ;;
15206 + *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15207 +for as_dir in $PATH
15208 +do
15209 + IFS=$as_save_IFS
15210 + test -z "$as_dir" && as_dir=.
15211 + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15212 +done
15213 +IFS=$as_save_IFS
15214 +
15215 + ;;
15216 +esac
15217 +# We did not find ourselves, most probably we were run as `sh COMMAND'
15218 +# in which case we are not to be found in the path.
15219 +if test "x$as_myself" = x; then
15220 + as_myself=$0
15221 +fi
15222 +if test ! -f "$as_myself"; then
15223 + echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15224 + { (exit 1); exit 1; }
15225 +fi
15226 +
15227 # Work around bugs in pre-3.0 UWIN ksh.
15228 -$as_unset ENV MAIL MAILPATH
15229 +for as_var in ENV MAIL MAILPATH
15230 +do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
15231 +done
15232 PS1='$ '
15233 PS2='> '
15234 PS4='+ '
15235 @@ -14709,18 +15063,19 @@ do
15236 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
15237 eval $as_var=C; export $as_var
15238 else
15239 - $as_unset $as_var
15240 + ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
15241 fi
15242 done
15243
15244 # Required to use basename.
15245 -if expr a : '\(a\)' >/dev/null 2>&1; then
15246 +if expr a : '\(a\)' >/dev/null 2>&1 &&
15247 + test "X`expr 00001 : '.*\(...\)'`" = X001; then
15248 as_expr=expr
15249 else
15250 as_expr=false
15251 fi
15252
15253 -if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
15254 +if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15255 as_basename=basename
15256 else
15257 as_basename=false
15258 @@ -14728,159 +15083,120 @@ fi
15259
15260
15261 # Name of the executable.
15262 -as_me=`$as_basename "$0" ||
15263 +as_me=`$as_basename -- "$0" ||
15264 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15265 X"$0" : 'X\(//\)$' \| \
15266 - X"$0" : 'X\(/\)$' \| \
15267 - . : '\(.\)' 2>/dev/null ||
15268 + X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15269 echo X/"$0" |
15270 - sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
15271 - /^X\/\(\/\/\)$/{ s//\1/; q; }
15272 - /^X\/\(\/\).*/{ s//\1/; q; }
15273 - s/.*/./; q'`
15274 + sed '/^.*\/\([^/][^/]*\)\/*$/{
15275 + s//\1/
15276 + q
15277 + }
15278 + /^X\/\(\/\/\)$/{
15279 + s//\1/
15280 + q
15281 + }
15282 + /^X\/\(\/\).*/{
15283 + s//\1/
15284 + q
15285 + }
15286 + s/.*/./; q'`
15287
15288 -
15289 -# PATH needs CR, and LINENO needs CR and PATH.
15290 -# Avoid depending upon Character Ranges.
15291 -as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15292 -as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15293 -as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15294 -as_cr_digits='0123456789'
15295 -as_cr_alnum=$as_cr_Letters$as_cr_digits
15296 -
15297 -# The user is always right.
15298 -if test "${PATH_SEPARATOR+set}" != set; then
15299 - echo "#! /bin/sh" >conf$$.sh
15300 - echo "exit 0" >>conf$$.sh
15301 - chmod +x conf$$.sh
15302 - if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15303 - PATH_SEPARATOR=';'
15304 - else
15305 - PATH_SEPARATOR=:
15306 - fi
15307 - rm -f conf$$.sh
15308 -fi
15309 +# CDPATH.
15310 +$as_unset CDPATH
15311
15312
15313 - as_lineno_1=$LINENO
15314 - as_lineno_2=$LINENO
15315 - as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
15316 - test "x$as_lineno_1" != "x$as_lineno_2" &&
15317 - test "x$as_lineno_3" = "x$as_lineno_2" || {
15318 - # Find who we are. Look in the path if we contain no path at all
15319 - # relative or not.
15320 - case $0 in
15321 - *[\\/]* ) as_myself=$0 ;;
15322 - *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15323 -for as_dir in $PATH
15324 -do
15325 - IFS=$as_save_IFS
15326 - test -z "$as_dir" && as_dir=.
15327 - test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15328 -done
15329
15330 - ;;
15331 - esac
15332 - # We did not find ourselves, most probably we were run as `sh COMMAND'
15333 - # in which case we are not to be found in the path.
15334 - if test "x$as_myself" = x; then
15335 - as_myself=$0
15336 - fi
15337 - if test ! -f "$as_myself"; then
15338 - { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
15339 -echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
15340 - { (exit 1); exit 1; }; }
15341 - fi
15342 - case $CONFIG_SHELL in
15343 - '')
15344 - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15345 -for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
15346 -do
15347 - IFS=$as_save_IFS
15348 - test -z "$as_dir" && as_dir=.
15349 - for as_base in sh bash ksh sh5; do
15350 - case $as_dir in
15351 - /*)
15352 - if ("$as_dir/$as_base" -c '
15353 as_lineno_1=$LINENO
15354 as_lineno_2=$LINENO
15355 - as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
15356 test "x$as_lineno_1" != "x$as_lineno_2" &&
15357 - test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
15358 - $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
15359 - $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
15360 - CONFIG_SHELL=$as_dir/$as_base
15361 - export CONFIG_SHELL
15362 - exec "$CONFIG_SHELL" "$0" ${1+"$@"}
15363 - fi;;
15364 - esac
15365 - done
15366 -done
15367 -;;
15368 - esac
15369 + test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
15370
15371 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
15372 # uniformly replaced by the line number. The first 'sed' inserts a
15373 - # line-number line before each line; the second 'sed' does the real
15374 - # work. The second script uses 'N' to pair each line-number line
15375 - # with the numbered line, and appends trailing '-' during
15376 - # substitution so that $LINENO is not a special case at line end.
15377 + # line-number line after each line using $LINENO; the second 'sed'
15378 + # does the real work. The second script uses 'N' to pair each
15379 + # line-number line with the line containing $LINENO, and appends
15380 + # trailing '-' during substitution so that $LINENO is not a special
15381 + # case at line end.
15382 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
15383 - # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
15384 - sed '=' <$as_myself |
15385 + # scripts with optimization help from Paolo Bonzini. Blame Lee
15386 + # E. McMahon (1931-1989) for sed's syntax. :-)
15387 + sed -n '
15388 + p
15389 + /[$]LINENO/=
15390 + ' <$as_myself |
15391 sed '
15392 + s/[$]LINENO.*/&-/
15393 + t lineno
15394 + b
15395 + :lineno
15396 N
15397 - s,$,-,
15398 - : loop
15399 - s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
15400 + :loop
15401 + s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
15402 t loop
15403 - s,-$,,
15404 - s,^['$as_cr_digits']*\n,,
15405 + s/-\n.*//
15406 ' >$as_me.lineno &&
15407 - chmod +x $as_me.lineno ||
15408 - { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
15409 -echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
15410 + chmod +x "$as_me.lineno" ||
15411 + { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
15412 { (exit 1); exit 1; }; }
15413
15414 # Don't try to exec as it changes $[0], causing all sort of problems
15415 # (the dirname of $[0] is not the place where we might find the
15416 - # original and so on. Autoconf is especially sensible to this).
15417 - . ./$as_me.lineno
15418 + # original and so on. Autoconf is especially sensitive to this).
15419 + . "./$as_me.lineno"
15420 # Exit status is that of the last command.
15421 exit
15422 }
15423
15424
15425 -case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
15426 - *c*,-n*) ECHO_N= ECHO_C='
15427 -' ECHO_T=' ' ;;
15428 - *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
15429 - *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
15430 +if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15431 + as_dirname=dirname
15432 +else
15433 + as_dirname=false
15434 +fi
15435 +
15436 +ECHO_C= ECHO_N= ECHO_T=
15437 +case `echo -n x` in
15438 +-n*)
15439 + case `echo 'x\c'` in
15440 + *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15441 + *) ECHO_C='\c';;
15442 + esac;;
15443 +*)
15444 + ECHO_N='-n';;
15445 esac
15446
15447 -if expr a : '\(a\)' >/dev/null 2>&1; then
15448 +if expr a : '\(a\)' >/dev/null 2>&1 &&
15449 + test "X`expr 00001 : '.*\(...\)'`" = X001; then
15450 as_expr=expr
15451 else
15452 as_expr=false
15453 fi
15454
15455 rm -f conf$$ conf$$.exe conf$$.file
15456 +if test -d conf$$.dir; then
15457 + rm -f conf$$.dir/conf$$.file
15458 +else
15459 + rm -f conf$$.dir
15460 + mkdir conf$$.dir
15461 +fi
15462 echo >conf$$.file
15463 if ln -s conf$$.file conf$$ 2>/dev/null; then
15464 - # We could just check for DJGPP; but this test a) works b) is more generic
15465 - # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
15466 - if test -f conf$$.exe; then
15467 - # Don't use ln at all; we don't have any links
15468 + as_ln_s='ln -s'
15469 + # ... but there are two gotchas:
15470 + # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15471 + # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15472 + # In both cases, we have to default to `cp -p'.
15473 + ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15474 as_ln_s='cp -p'
15475 - else
15476 - as_ln_s='ln -s'
15477 - fi
15478 elif ln conf$$.file conf$$ 2>/dev/null; then
15479 as_ln_s=ln
15480 else
15481 as_ln_s='cp -p'
15482 fi
15483 -rm -f conf$$ conf$$.exe conf$$.file
15484 +rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15485 +rmdir conf$$.dir 2>/dev/null
15486
15487 if mkdir -p . 2>/dev/null; then
15488 as_mkdir_p=:
15489 @@ -14889,7 +15205,28 @@ else
15490 as_mkdir_p=false
15491 fi
15492
15493 -as_executable_p="test -f"
15494 +if test -x / >/dev/null 2>&1; then
15495 + as_test_x='test -x'
15496 +else
15497 + if ls -dL / >/dev/null 2>&1; then
15498 + as_ls_L_option=L
15499 + else
15500 + as_ls_L_option=
15501 + fi
15502 + as_test_x='
15503 + eval sh -c '\''
15504 + if test -d "$1"; then
15505 + test -d "$1/.";
15506 + else
15507 + case $1 in
15508 + -*)set "./$1";;
15509 + esac;
15510 + case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
15511 + ???[sx]*):;;*)false;;esac;fi
15512 + '\'' sh
15513 + '
15514 +fi
15515 +as_executable_p=$as_test_x
15516
15517 # Sed expression to map a string onto a valid CPP name.
15518 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15519 @@ -14898,31 +15235,14 @@ as_tr_cpp="eval sed 'y%*$as_cr_letters%P
15520 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15521
15522
15523 -# IFS
15524 -# We need space, tab and new line, in precisely that order.
15525 -as_nl='
15526 -'
15527 -IFS=" $as_nl"
15528 -
15529 -# CDPATH.
15530 -$as_unset CDPATH
15531 -
15532 exec 6>&1
15533
15534 -# Open the log real soon, to keep \$[0] and so on meaningful, and to
15535 +# Save the log message, to keep $[0] and so on meaningful, and to
15536 # report actual input values of CONFIG_FILES etc. instead of their
15537 -# values after options handling. Logging --version etc. is OK.
15538 -exec 5>>config.log
15539 -{
15540 - echo
15541 - sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15542 -## Running $as_me. ##
15543 -_ASBOX
15544 -} >&5
15545 -cat >&5 <<_CSEOF
15546 -
15547 +# values after options handling.
15548 +ac_log="
15549 This file was extended by $as_me, which was
15550 -generated by GNU Autoconf 2.59. Invocation command line was
15551 +generated by GNU Autoconf 2.61. Invocation command line was
15552
15553 CONFIG_FILES = $CONFIG_FILES
15554 CONFIG_HEADERS = $CONFIG_HEADERS
15555 @@ -14930,30 +15250,20 @@ generated by GNU Autoconf 2.59. Invocat
15556 CONFIG_COMMANDS = $CONFIG_COMMANDS
15557 $ $0 $@
15558
15559 -_CSEOF
15560 -echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
15561 -echo >&5
15562 +on `(hostname || uname -n) 2>/dev/null | sed 1q`
15563 +"
15564 +
15565 _ACEOF
15566
15567 +cat >>$CONFIG_STATUS <<_ACEOF
15568 # Files that config.status was made for.
15569 -if test -n "$ac_config_files"; then
15570 - echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
15571 -fi
15572 +config_files="$ac_config_files"
15573 +config_headers="$ac_config_headers"
15574 +config_commands="$ac_config_commands"
15575
15576 -if test -n "$ac_config_headers"; then
15577 - echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
15578 -fi
15579 -
15580 -if test -n "$ac_config_links"; then
15581 - echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
15582 -fi
15583 -
15584 -if test -n "$ac_config_commands"; then
15585 - echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
15586 -fi
15587 +_ACEOF
15588
15589 cat >>$CONFIG_STATUS <<\_ACEOF
15590 -
15591 ac_cs_usage="\
15592 \`$as_me' instantiates files from templates according to the
15593 current configuration.
15594 @@ -14961,7 +15271,7 @@ current configuration.
15595 Usage: $0 [OPTIONS] [FILE]...
15596
15597 -h, --help print this help, then exit
15598 - -V, --version print version number, then exit
15599 + -V, --version print version number and configuration settings, then exit
15600 -q, --quiet do not print progress messages
15601 -d, --debug don't remove temporary files
15602 --recheck update $as_me by reconfiguring in the same conditions
15603 @@ -14980,19 +15290,21 @@ Configuration commands:
15604 $config_commands
15605
15606 Report bugs to <bug-autoconf@gnu.org>."
15607 -_ACEOF
15608
15609 +_ACEOF
15610 cat >>$CONFIG_STATUS <<_ACEOF
15611 ac_cs_version="\\
15612 config.status
15613 -configured by $0, generated by GNU Autoconf 2.59,
15614 - with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
15615 +configured by $0, generated by GNU Autoconf 2.61,
15616 + with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
15617
15618 -Copyright (C) 2003 Free Software Foundation, Inc.
15619 +Copyright (C) 2006 Free Software Foundation, Inc.
15620 This config.status script is free software; the Free Software Foundation
15621 gives unlimited permission to copy, distribute and modify it."
15622 -srcdir=$srcdir
15623 -INSTALL="$INSTALL"
15624 +
15625 +ac_pwd='$ac_pwd'
15626 +srcdir='$srcdir'
15627 +INSTALL='$INSTALL'
15628 _ACEOF
15629
15630 cat >>$CONFIG_STATUS <<\_ACEOF
15631 @@ -15003,39 +15315,24 @@ while test $# != 0
15632 do
15633 case $1 in
15634 --*=*)
15635 - ac_option=`expr "x$1" : 'x\([^=]*\)='`
15636 - ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
15637 + ac_option=`expr "X$1" : 'X\([^=]*\)='`
15638 + ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15639 ac_shift=:
15640 ;;
15641 - -*)
15642 + *)
15643 ac_option=$1
15644 ac_optarg=$2
15645 ac_shift=shift
15646 ;;
15647 - *) # This is not an option, so the user has probably given explicit
15648 - # arguments.
15649 - ac_option=$1
15650 - ac_need_defaults=false;;
15651 esac
15652
15653 case $ac_option in
15654 # Handling of the options.
15655 -_ACEOF
15656 -cat >>$CONFIG_STATUS <<\_ACEOF
15657 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15658 ac_cs_recheck=: ;;
15659 - --version | --vers* | -V )
15660 - echo "$ac_cs_version"; exit 0 ;;
15661 - --he | --h)
15662 - # Conflict between --help and --header
15663 - { { echo "$as_me:$LINENO: error: ambiguous option: $1
15664 -Try \`$0 --help' for more information." >&5
15665 -echo "$as_me: error: ambiguous option: $1
15666 -Try \`$0 --help' for more information." >&2;}
15667 - { (exit 1); exit 1; }; };;
15668 - --help | --hel | -h )
15669 - echo "$ac_cs_usage"; exit 0 ;;
15670 - --debug | --d* | -d )
15671 + --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15672 + echo "$ac_cs_version"; exit ;;
15673 + --debug | --debu | --deb | --de | --d | -d )
15674 debug=: ;;
15675 --file | --fil | --fi | --f )
15676 $ac_shift
15677 @@ -15045,18 +15342,24 @@ Try \`$0 --help' for more information."
15678 $ac_shift
15679 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
15680 ac_need_defaults=false;;
15681 + --he | --h)
15682 + # Conflict between --help and --header
15683 + { echo "$as_me: error: ambiguous option: $1
15684 +Try \`$0 --help' for more information." >&2
15685 + { (exit 1); exit 1; }; };;
15686 + --help | --hel | -h )
15687 + echo "$ac_cs_usage"; exit ;;
15688 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15689 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15690 ac_cs_silent=: ;;
15691
15692 # This is an error.
15693 - -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
15694 -Try \`$0 --help' for more information." >&5
15695 -echo "$as_me: error: unrecognized option: $1
15696 -Try \`$0 --help' for more information." >&2;}
15697 + -*) { echo "$as_me: error: unrecognized option: $1
15698 +Try \`$0 --help' for more information." >&2
15699 { (exit 1); exit 1; }; } ;;
15700
15701 - *) ac_config_targets="$ac_config_targets $1" ;;
15702 + *) ac_config_targets="$ac_config_targets $1"
15703 + ac_need_defaults=false ;;
15704
15705 esac
15706 shift
15707 @@ -15072,42 +15375,54 @@ fi
15708 _ACEOF
15709 cat >>$CONFIG_STATUS <<_ACEOF
15710 if \$ac_cs_recheck; then
15711 - echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
15712 - exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15713 + echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
15714 + CONFIG_SHELL=$SHELL
15715 + export CONFIG_SHELL
15716 + exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15717 fi
15718
15719 _ACEOF
15720 +cat >>$CONFIG_STATUS <<\_ACEOF
15721 +exec 5>>config.log
15722 +{
15723 + echo
15724 + sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15725 +## Running $as_me. ##
15726 +_ASBOX
15727 + echo "$ac_log"
15728 +} >&5
15729
15730 +_ACEOF
15731 cat >>$CONFIG_STATUS <<_ACEOF
15732 #
15733 -# INIT-COMMANDS section.
15734 +# INIT-COMMANDS
15735 #
15736 -
15737 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15738
15739
15740 _ACEOF
15741
15742 -
15743 -
15744 cat >>$CONFIG_STATUS <<\_ACEOF
15745 +
15746 +# Handling of arguments.
15747 for ac_config_target in $ac_config_targets
15748 do
15749 - case "$ac_config_target" in
15750 - # Handling of arguments.
15751 - "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15752 - "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
15753 - "bfd-in3.h" ) CONFIG_FILES="$CONFIG_FILES bfd-in3.h:bfd-in2.h" ;;
15754 - "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
15755 - "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15756 - "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
15757 - "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
15758 + case $ac_config_target in
15759 + "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15760 + "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
15761 + "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15762 + "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
15763 + "bfd-in3.h") CONFIG_FILES="$CONFIG_FILES bfd-in3.h:bfd-in2.h" ;;
15764 + "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
15765 + "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
15766 +
15767 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
15768 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
15769 { (exit 1); exit 1; }; };;
15770 esac
15771 done
15772
15773 +
15774 # If the user did not use the arguments to specify the items to instantiate,
15775 # then the envvar interface is used. Set only those that are not.
15776 # We use the long form for the default assignment because of an extremely
15777 @@ -15119,401 +15434,504 @@ if $ac_need_defaults; then
15778 fi
15779
15780 # Have a temporary directory for convenience. Make it in the build tree
15781 -# simply because there is no reason to put it here, and in addition,
15782 +# simply because there is no reason against having it here, and in addition,
15783 # creating and moving files from /tmp can sometimes cause problems.
15784 -# Create a temporary directory, and hook for its removal unless debugging.
15785 +# Hook for its removal unless debugging.
15786 +# Note that there is a small window in which the directory will not be cleaned:
15787 +# after its creation but before its name has been assigned to `$tmp'.
15788 $debug ||
15789 {
15790 - trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
15791 + tmp=
15792 + trap 'exit_status=$?
15793 + { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15794 +' 0
15795 trap '{ (exit 1); exit 1; }' 1 2 13 15
15796 }
15797 -
15798 # Create a (secure) tmp directory for tmp files.
15799
15800 {
15801 - tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
15802 + tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15803 test -n "$tmp" && test -d "$tmp"
15804 } ||
15805 {
15806 - tmp=./confstat$$-$RANDOM
15807 - (umask 077 && mkdir $tmp)
15808 + tmp=./conf$$-$RANDOM
15809 + (umask 077 && mkdir "$tmp")
15810 } ||
15811 {
15812 echo "$me: cannot create a temporary directory in ." >&2
15813 { (exit 1); exit 1; }
15814 }
15815
15816 -_ACEOF
15817 -
15818 -cat >>$CONFIG_STATUS <<_ACEOF
15819 -
15820 #
15821 -# CONFIG_FILES section.
15822 +# Set up the sed scripts for CONFIG_FILES section.
15823 #
15824
15825 # No need to generate the scripts if there are no CONFIG_FILES.
15826 # This happens for instance when ./config.status config.h
15827 -if test -n "\$CONFIG_FILES"; then
15828 - # Protect against being on the right side of a sed subst in config.status.
15829 - sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
15830 - s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
15831 -s,@SHELL@,$SHELL,;t t
15832 -s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
15833 -s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
15834 -s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
15835 -s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
15836 -s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
15837 -s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
15838 -s,@exec_prefix@,$exec_prefix,;t t
15839 -s,@prefix@,$prefix,;t t
15840 -s,@program_transform_name@,$program_transform_name,;t t
15841 -s,@bindir@,$bindir,;t t
15842 -s,@sbindir@,$sbindir,;t t
15843 -s,@libexecdir@,$libexecdir,;t t
15844 -s,@datadir@,$datadir,;t t
15845 -s,@sysconfdir@,$sysconfdir,;t t
15846 -s,@sharedstatedir@,$sharedstatedir,;t t
15847 -s,@localstatedir@,$localstatedir,;t t
15848 -s,@libdir@,$libdir,;t t
15849 -s,@includedir@,$includedir,;t t
15850 -s,@oldincludedir@,$oldincludedir,;t t
15851 -s,@infodir@,$infodir,;t t
15852 -s,@mandir@,$mandir,;t t
15853 -s,@build_alias@,$build_alias,;t t
15854 -s,@host_alias@,$host_alias,;t t
15855 -s,@target_alias@,$target_alias,;t t
15856 -s,@DEFS@,$DEFS,;t t
15857 -s,@ECHO_C@,$ECHO_C,;t t
15858 -s,@ECHO_N@,$ECHO_N,;t t
15859 -s,@ECHO_T@,$ECHO_T,;t t
15860 -s,@LIBS@,$LIBS,;t t
15861 -s,@build@,$build,;t t
15862 -s,@build_cpu@,$build_cpu,;t t
15863 -s,@build_vendor@,$build_vendor,;t t
15864 -s,@build_os@,$build_os,;t t
15865 -s,@host@,$host,;t t
15866 -s,@host_cpu@,$host_cpu,;t t
15867 -s,@host_vendor@,$host_vendor,;t t
15868 -s,@host_os@,$host_os,;t t
15869 -s,@target@,$target,;t t
15870 -s,@target_cpu@,$target_cpu,;t t
15871 -s,@target_vendor@,$target_vendor,;t t
15872 -s,@target_os@,$target_os,;t t
15873 -s,@CC@,$CC,;t t
15874 -s,@CFLAGS@,$CFLAGS,;t t
15875 -s,@LDFLAGS@,$LDFLAGS,;t t
15876 -s,@CPPFLAGS@,$CPPFLAGS,;t t
15877 -s,@ac_ct_CC@,$ac_ct_CC,;t t
15878 -s,@EXEEXT@,$EXEEXT,;t t
15879 -s,@OBJEXT@,$OBJEXT,;t t
15880 -s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
15881 -s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
15882 -s,@INSTALL_DATA@,$INSTALL_DATA,;t t
15883 -s,@CYGPATH_W@,$CYGPATH_W,;t t
15884 -s,@PACKAGE@,$PACKAGE,;t t
15885 -s,@VERSION@,$VERSION,;t t
15886 -s,@ACLOCAL@,$ACLOCAL,;t t
15887 -s,@AUTOCONF@,$AUTOCONF,;t t
15888 -s,@AUTOMAKE@,$AUTOMAKE,;t t
15889 -s,@AUTOHEADER@,$AUTOHEADER,;t t
15890 -s,@MAKEINFO@,$MAKEINFO,;t t
15891 -s,@install_sh@,$install_sh,;t t
15892 -s,@STRIP@,$STRIP,;t t
15893 -s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
15894 -s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
15895 -s,@mkdir_p@,$mkdir_p,;t t
15896 -s,@AWK@,$AWK,;t t
15897 -s,@SET_MAKE@,$SET_MAKE,;t t
15898 -s,@am__leading_dot@,$am__leading_dot,;t t
15899 -s,@AMTAR@,$AMTAR,;t t
15900 -s,@am__tar@,$am__tar,;t t
15901 -s,@am__untar@,$am__untar,;t t
15902 -s,@DEPDIR@,$DEPDIR,;t t
15903 -s,@am__include@,$am__include,;t t
15904 -s,@am__quote@,$am__quote,;t t
15905 -s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
15906 -s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
15907 -s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
15908 -s,@CCDEPMODE@,$CCDEPMODE,;t t
15909 -s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
15910 -s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
15911 -s,@AR@,$AR,;t t
15912 -s,@ac_ct_AR@,$ac_ct_AR,;t t
15913 -s,@RANLIB@,$RANLIB,;t t
15914 -s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
15915 -s,@LN_S@,$LN_S,;t t
15916 -s,@LIBTOOL@,$LIBTOOL,;t t
15917 -s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
15918 -s,@NO_WERROR@,$NO_WERROR,;t t
15919 -s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
15920 -s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
15921 -s,@MAINT@,$MAINT,;t t
15922 -s,@INSTALL_LIBBFD_TRUE@,$INSTALL_LIBBFD_TRUE,;t t
15923 -s,@INSTALL_LIBBFD_FALSE@,$INSTALL_LIBBFD_FALSE,;t t
15924 -s,@host_noncanonical@,$host_noncanonical,;t t
15925 -s,@target_noncanonical@,$target_noncanonical,;t t
15926 -s,@bfdlibdir@,$bfdlibdir,;t t
15927 -s,@bfdincludedir@,$bfdincludedir,;t t
15928 -s,@CPP@,$CPP,;t t
15929 -s,@EGREP@,$EGREP,;t t
15930 -s,@ALLOCA@,$ALLOCA,;t t
15931 -s,@USE_NLS@,$USE_NLS,;t t
15932 -s,@MSGFMT@,$MSGFMT,;t t
15933 -s,@GMSGFMT@,$GMSGFMT,;t t
15934 -s,@XGETTEXT@,$XGETTEXT,;t t
15935 -s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
15936 -s,@CATALOGS@,$CATALOGS,;t t
15937 -s,@CATOBJEXT@,$CATOBJEXT,;t t
15938 -s,@DATADIRNAME@,$DATADIRNAME,;t t
15939 -s,@GMOFILES@,$GMOFILES,;t t
15940 -s,@INSTOBJEXT@,$INSTOBJEXT,;t t
15941 -s,@INTLDEPS@,$INTLDEPS,;t t
15942 -s,@INTLLIBS@,$INTLLIBS,;t t
15943 -s,@INTLOBJS@,$INTLOBJS,;t t
15944 -s,@POFILES@,$POFILES,;t t
15945 -s,@POSUB@,$POSUB,;t t
15946 -s,@INCLUDE_LOCALE_H@,$INCLUDE_LOCALE_H,;t t
15947 -s,@GT_NO@,$GT_NO,;t t
15948 -s,@GT_YES@,$GT_YES,;t t
15949 -s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
15950 -s,@l@,$l,;t t
15951 -s,@HDEFINES@,$HDEFINES,;t t
15952 -s,@BFD_HOST_64BIT_LONG@,$BFD_HOST_64BIT_LONG,;t t
15953 -s,@BFD_HOST_LONG_LONG@,$BFD_HOST_LONG_LONG,;t t
15954 -s,@BFD_HOST_64_BIT_DEFINED@,$BFD_HOST_64_BIT_DEFINED,;t t
15955 -s,@BFD_HOST_64_BIT@,$BFD_HOST_64_BIT,;t t
15956 -s,@BFD_HOST_U_64_BIT@,$BFD_HOST_U_64_BIT,;t t
15957 -s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
15958 -s,@EXEEXT_FOR_BUILD@,$EXEEXT_FOR_BUILD,;t t
15959 -s,@COREFILE@,$COREFILE,;t t
15960 -s,@COREFLAG@,$COREFLAG,;t t
15961 -s,@WIN32LDFLAGS@,$WIN32LDFLAGS,;t t
15962 -s,@WIN32LIBADD@,$WIN32LIBADD,;t t
15963 -s,@TDEFINES@,$TDEFINES,;t t
15964 -s,@wordsize@,$wordsize,;t t
15965 -s,@bfd_libs@,$bfd_libs,;t t
15966 -s,@all_backends@,$all_backends,;t t
15967 -s,@bfd_backends@,$bfd_backends,;t t
15968 -s,@bfd_machines@,$bfd_machines,;t t
15969 -s,@bfd_default_target_size@,$bfd_default_target_size,;t t
15970 -s,@bfd_file_ptr@,$bfd_file_ptr,;t t
15971 -s,@bfd_ufile_ptr@,$bfd_ufile_ptr,;t t
15972 -s,@tdefaults@,$tdefaults,;t t
15973 -s,@datarootdir@,$datarootdir,;t t
15974 -s,@docdir@,$docdir,;t t
15975 -s,@htmldir@,$htmldir,;t t
15976 -s,@LIBOBJS@,$LIBOBJS,;t t
15977 -s,@LTLIBOBJS@,$LTLIBOBJS,;t t
15978 -CEOF
15979 -
15980 -_ACEOF
15981 -
15982 - cat >>$CONFIG_STATUS <<\_ACEOF
15983 - # Split the substitutions into bite-sized pieces for seds with
15984 - # small command number limits, like on Digital OSF/1 and HP-UX.
15985 - ac_max_sed_lines=48
15986 - ac_sed_frag=1 # Number of current file.
15987 - ac_beg=1 # First line for current file.
15988 - ac_end=$ac_max_sed_lines # Line after last line for current file.
15989 - ac_more_lines=:
15990 - ac_sed_cmds=
15991 - while $ac_more_lines; do
15992 - if test $ac_beg -gt 1; then
15993 - sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
15994 - else
15995 - sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
15996 - fi
15997 - if test ! -s $tmp/subs.frag; then
15998 - ac_more_lines=false
15999 - else
16000 - # The purpose of the label and of the branching condition is to
16001 - # speed up the sed processing (if there are no `@' at all, there
16002 - # is no need to browse any of the substitutions).
16003 - # These are the two extra sed commands mentioned above.
16004 - (echo ':t
16005 - /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
16006 - if test -z "$ac_sed_cmds"; then
16007 - ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
16008 - else
16009 - ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
16010 - fi
16011 - ac_sed_frag=`expr $ac_sed_frag + 1`
16012 - ac_beg=$ac_end
16013 - ac_end=`expr $ac_end + $ac_max_sed_lines`
16014 - fi
16015 - done
16016 - if test -z "$ac_sed_cmds"; then
16017 - ac_sed_cmds=cat
16018 +if test -n "$CONFIG_FILES"; then
16019 +
16020 +_ACEOF
16021 +
16022 +
16023 +
16024 +ac_delim='%!_!# '
16025 +for ac_last_try in false false false false false :; do
16026 + cat >conf$$subs.sed <<_ACEOF
16027 +SHELL!$SHELL$ac_delim
16028 +PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
16029 +PACKAGE_NAME!$PACKAGE_NAME$ac_delim
16030 +PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
16031 +PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
16032 +PACKAGE_STRING!$PACKAGE_STRING$ac_delim
16033 +PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
16034 +exec_prefix!$exec_prefix$ac_delim
16035 +prefix!$prefix$ac_delim
16036 +program_transform_name!$program_transform_name$ac_delim
16037 +bindir!$bindir$ac_delim
16038 +sbindir!$sbindir$ac_delim
16039 +libexecdir!$libexecdir$ac_delim
16040 +datarootdir!$datarootdir$ac_delim
16041 +datadir!$datadir$ac_delim
16042 +sysconfdir!$sysconfdir$ac_delim
16043 +sharedstatedir!$sharedstatedir$ac_delim
16044 +localstatedir!$localstatedir$ac_delim
16045 +includedir!$includedir$ac_delim
16046 +oldincludedir!$oldincludedir$ac_delim
16047 +docdir!$docdir$ac_delim
16048 +infodir!$infodir$ac_delim
16049 +htmldir!$htmldir$ac_delim
16050 +dvidir!$dvidir$ac_delim
16051 +pdfdir!$pdfdir$ac_delim
16052 +psdir!$psdir$ac_delim
16053 +libdir!$libdir$ac_delim
16054 +localedir!$localedir$ac_delim
16055 +mandir!$mandir$ac_delim
16056 +DEFS!$DEFS$ac_delim
16057 +ECHO_C!$ECHO_C$ac_delim
16058 +ECHO_N!$ECHO_N$ac_delim
16059 +ECHO_T!$ECHO_T$ac_delim
16060 +LIBS!$LIBS$ac_delim
16061 +build_alias!$build_alias$ac_delim
16062 +host_alias!$host_alias$ac_delim
16063 +target_alias!$target_alias$ac_delim
16064 +build!$build$ac_delim
16065 +build_cpu!$build_cpu$ac_delim
16066 +build_vendor!$build_vendor$ac_delim
16067 +build_os!$build_os$ac_delim
16068 +host!$host$ac_delim
16069 +host_cpu!$host_cpu$ac_delim
16070 +host_vendor!$host_vendor$ac_delim
16071 +host_os!$host_os$ac_delim
16072 +target!$target$ac_delim
16073 +target_cpu!$target_cpu$ac_delim
16074 +target_vendor!$target_vendor$ac_delim
16075 +target_os!$target_os$ac_delim
16076 +CC!$CC$ac_delim
16077 +CFLAGS!$CFLAGS$ac_delim
16078 +LDFLAGS!$LDFLAGS$ac_delim
16079 +CPPFLAGS!$CPPFLAGS$ac_delim
16080 +ac_ct_CC!$ac_ct_CC$ac_delim
16081 +EXEEXT!$EXEEXT$ac_delim
16082 +OBJEXT!$OBJEXT$ac_delim
16083 +INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
16084 +INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
16085 +INSTALL_DATA!$INSTALL_DATA$ac_delim
16086 +CYGPATH_W!$CYGPATH_W$ac_delim
16087 +PACKAGE!$PACKAGE$ac_delim
16088 +VERSION!$VERSION$ac_delim
16089 +ACLOCAL!$ACLOCAL$ac_delim
16090 +AUTOCONF!$AUTOCONF$ac_delim
16091 +AUTOMAKE!$AUTOMAKE$ac_delim
16092 +AUTOHEADER!$AUTOHEADER$ac_delim
16093 +MAKEINFO!$MAKEINFO$ac_delim
16094 +install_sh!$install_sh$ac_delim
16095 +STRIP!$STRIP$ac_delim
16096 +INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
16097 +mkdir_p!$mkdir_p$ac_delim
16098 +AWK!$AWK$ac_delim
16099 +SET_MAKE!$SET_MAKE$ac_delim
16100 +am__leading_dot!$am__leading_dot$ac_delim
16101 +AMTAR!$AMTAR$ac_delim
16102 +am__tar!$am__tar$ac_delim
16103 +am__untar!$am__untar$ac_delim
16104 +DEPDIR!$DEPDIR$ac_delim
16105 +am__include!$am__include$ac_delim
16106 +am__quote!$am__quote$ac_delim
16107 +AMDEP_TRUE!$AMDEP_TRUE$ac_delim
16108 +AMDEP_FALSE!$AMDEP_FALSE$ac_delim
16109 +AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
16110 +CCDEPMODE!$CCDEPMODE$ac_delim
16111 +am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
16112 +am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
16113 +AR!$AR$ac_delim
16114 +RANLIB!$RANLIB$ac_delim
16115 +LN_S!$LN_S$ac_delim
16116 +LIBTOOL!$LIBTOOL$ac_delim
16117 +WARN_CFLAGS!$WARN_CFLAGS$ac_delim
16118 +NO_WERROR!$NO_WERROR$ac_delim
16119 +MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
16120 +MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
16121 +MAINT!$MAINT$ac_delim
16122 +INSTALL_LIBBFD_TRUE!$INSTALL_LIBBFD_TRUE$ac_delim
16123 +INSTALL_LIBBFD_FALSE!$INSTALL_LIBBFD_FALSE$ac_delim
16124 +_ACEOF
16125 +
16126 + if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
16127 + break
16128 + elif $ac_last_try; then
16129 + { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
16130 +echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
16131 + { (exit 1); exit 1; }; }
16132 + else
16133 + ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16134 fi
16135 -fi # test -n "$CONFIG_FILES"
16136 +done
16137 +
16138 +ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
16139 +if test -n "$ac_eof"; then
16140 + ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
16141 + ac_eof=`expr $ac_eof + 1`
16142 +fi
16143
16144 +cat >>$CONFIG_STATUS <<_ACEOF
16145 +cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
16146 +/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16147 +_ACEOF
16148 +sed '
16149 +s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
16150 +s/^/s,@/; s/!/@,|#_!!_#|/
16151 +:n
16152 +t n
16153 +s/'"$ac_delim"'$/,g/; t
16154 +s/$/\\/; p
16155 +N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
16156 +' >>$CONFIG_STATUS <conf$$subs.sed
16157 +rm -f conf$$subs.sed
16158 +cat >>$CONFIG_STATUS <<_ACEOF
16159 +CEOF$ac_eof
16160 +_ACEOF
16161 +
16162 +
16163 +ac_delim='%!_!# '
16164 +for ac_last_try in false false false false false :; do
16165 + cat >conf$$subs.sed <<_ACEOF
16166 +host_noncanonical!$host_noncanonical$ac_delim
16167 +target_noncanonical!$target_noncanonical$ac_delim
16168 +bfdlibdir!$bfdlibdir$ac_delim
16169 +bfdincludedir!$bfdincludedir$ac_delim
16170 +CPP!$CPP$ac_delim
16171 +GREP!$GREP$ac_delim
16172 +EGREP!$EGREP$ac_delim
16173 +ALLOCA!$ALLOCA$ac_delim
16174 +USE_NLS!$USE_NLS$ac_delim
16175 +MSGFMT!$MSGFMT$ac_delim
16176 +GMSGFMT!$GMSGFMT$ac_delim
16177 +XGETTEXT!$XGETTEXT$ac_delim
16178 +USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim
16179 +CATALOGS!$CATALOGS$ac_delim
16180 +CATOBJEXT!$CATOBJEXT$ac_delim
16181 +DATADIRNAME!$DATADIRNAME$ac_delim
16182 +GMOFILES!$GMOFILES$ac_delim
16183 +INSTOBJEXT!$INSTOBJEXT$ac_delim
16184 +INTLDEPS!$INTLDEPS$ac_delim
16185 +INTLLIBS!$INTLLIBS$ac_delim
16186 +INTLOBJS!$INTLOBJS$ac_delim
16187 +POFILES!$POFILES$ac_delim
16188 +POSUB!$POSUB$ac_delim
16189 +INCLUDE_LOCALE_H!$INCLUDE_LOCALE_H$ac_delim
16190 +GT_NO!$GT_NO$ac_delim
16191 +GT_YES!$GT_YES$ac_delim
16192 +MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
16193 +l!$l$ac_delim
16194 +HDEFINES!$HDEFINES$ac_delim
16195 +BFD_HOST_64BIT_LONG!$BFD_HOST_64BIT_LONG$ac_delim
16196 +BFD_HOST_LONG_LONG!$BFD_HOST_LONG_LONG$ac_delim
16197 +BFD_HOST_64_BIT_DEFINED!$BFD_HOST_64_BIT_DEFINED$ac_delim
16198 +BFD_HOST_64_BIT!$BFD_HOST_64_BIT$ac_delim
16199 +BFD_HOST_U_64_BIT!$BFD_HOST_U_64_BIT$ac_delim
16200 +CC_FOR_BUILD!$CC_FOR_BUILD$ac_delim
16201 +EXEEXT_FOR_BUILD!$EXEEXT_FOR_BUILD$ac_delim
16202 +COREFILE!$COREFILE$ac_delim
16203 +COREFLAG!$COREFLAG$ac_delim
16204 +WIN32LDFLAGS!$WIN32LDFLAGS$ac_delim
16205 +WIN32LIBADD!$WIN32LIBADD$ac_delim
16206 +TDEFINES!$TDEFINES$ac_delim
16207 +wordsize!$wordsize$ac_delim
16208 +bfd_libs!$bfd_libs$ac_delim
16209 +all_backends!$all_backends$ac_delim
16210 +bfd_backends!$bfd_backends$ac_delim
16211 +bfd_machines!$bfd_machines$ac_delim
16212 +bfd_default_target_size!$bfd_default_target_size$ac_delim
16213 +bfd_file_ptr!$bfd_file_ptr$ac_delim
16214 +bfd_ufile_ptr!$bfd_ufile_ptr$ac_delim
16215 +tdefaults!$tdefaults$ac_delim
16216 +LIBOBJS!$LIBOBJS$ac_delim
16217 +LTLIBOBJS!$LTLIBOBJS$ac_delim
16218 _ACEOF
16219 +
16220 + if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 52; then
16221 + break
16222 + elif $ac_last_try; then
16223 + { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
16224 +echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
16225 + { (exit 1); exit 1; }; }
16226 + else
16227 + ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16228 + fi
16229 +done
16230 +
16231 +ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
16232 +if test -n "$ac_eof"; then
16233 + ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
16234 + ac_eof=`expr $ac_eof + 1`
16235 +fi
16236 +
16237 +cat >>$CONFIG_STATUS <<_ACEOF
16238 +cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
16239 +/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
16240 +_ACEOF
16241 +sed '
16242 +s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
16243 +s/^/s,@/; s/!/@,|#_!!_#|/
16244 +:n
16245 +t n
16246 +s/'"$ac_delim"'$/,g/; t
16247 +s/$/\\/; p
16248 +N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
16249 +' >>$CONFIG_STATUS <conf$$subs.sed
16250 +rm -f conf$$subs.sed
16251 +cat >>$CONFIG_STATUS <<_ACEOF
16252 +:end
16253 +s/|#_!!_#|//g
16254 +CEOF$ac_eof
16255 +_ACEOF
16256 +
16257 +
16258 +# VPATH may cause trouble with some makes, so we remove $(srcdir),
16259 +# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16260 +# trailing colons and then remove the whole line if VPATH becomes empty
16261 +# (actually we leave an empty line to preserve line numbers).
16262 +if test "x$srcdir" = x.; then
16263 + ac_vpsub='/^[ ]*VPATH[ ]*=/{
16264 +s/:*\$(srcdir):*/:/
16265 +s/:*\${srcdir}:*/:/
16266 +s/:*@srcdir@:*/:/
16267 +s/^\([^=]*=[ ]*\):*/\1/
16268 +s/:*$//
16269 +s/^[^=]*=[ ]*$//
16270 +}'
16271 +fi
16272 +
16273 cat >>$CONFIG_STATUS <<\_ACEOF
16274 -for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
16275 - # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16276 - case $ac_file in
16277 - - | *:- | *:-:* ) # input from stdin
16278 - cat >$tmp/stdin
16279 - ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16280 - ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16281 - *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16282 - ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16283 - * ) ac_file_in=$ac_file.in ;;
16284 +fi # test -n "$CONFIG_FILES"
16285 +
16286 +
16287 +for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
16288 +do
16289 + case $ac_tag in
16290 + :[FHLC]) ac_mode=$ac_tag; continue;;
16291 + esac
16292 + case $ac_mode$ac_tag in
16293 + :[FHL]*:*);;
16294 + :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
16295 +echo "$as_me: error: Invalid tag $ac_tag." >&2;}
16296 + { (exit 1); exit 1; }; };;
16297 + :[FH]-) ac_tag=-:-;;
16298 + :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16299 + esac
16300 + ac_save_IFS=$IFS
16301 + IFS=:
16302 + set x $ac_tag
16303 + IFS=$ac_save_IFS
16304 + shift
16305 + ac_file=$1
16306 + shift
16307 +
16308 + case $ac_mode in
16309 + :L) ac_source=$1;;
16310 + :[FH])
16311 + ac_file_inputs=
16312 + for ac_f
16313 + do
16314 + case $ac_f in
16315 + -) ac_f="$tmp/stdin";;
16316 + *) # Look for the file first in the build tree, then in the source tree
16317 + # (if the path is not absolute). The absolute path cannot be DOS-style,
16318 + # because $ac_f cannot contain `:'.
16319 + test -f "$ac_f" ||
16320 + case $ac_f in
16321 + [\\/$]*) false;;
16322 + *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16323 + esac ||
16324 + { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
16325 +echo "$as_me: error: cannot find input file: $ac_f" >&2;}
16326 + { (exit 1); exit 1; }; };;
16327 + esac
16328 + ac_file_inputs="$ac_file_inputs $ac_f"
16329 + done
16330 +
16331 + # Let's still pretend it is `configure' which instantiates (i.e., don't
16332 + # use $as_me), people would be surprised to read:
16333 + # /* config.h. Generated by config.status. */
16334 + configure_input="Generated from "`IFS=:
16335 + echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
16336 + if test x"$ac_file" != x-; then
16337 + configure_input="$ac_file. $configure_input"
16338 + { echo "$as_me:$LINENO: creating $ac_file" >&5
16339 +echo "$as_me: creating $ac_file" >&6;}
16340 + fi
16341 +
16342 + case $ac_tag in
16343 + *:-:* | *:-) cat >"$tmp/stdin";;
16344 + esac
16345 + ;;
16346 esac
16347
16348 - # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
16349 - ac_dir=`(dirname "$ac_file") 2>/dev/null ||
16350 + ac_dir=`$as_dirname -- "$ac_file" ||
16351 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16352 X"$ac_file" : 'X\(//\)[^/]' \| \
16353 X"$ac_file" : 'X\(//\)$' \| \
16354 - X"$ac_file" : 'X\(/\)' \| \
16355 - . : '\(.\)' 2>/dev/null ||
16356 + X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16357 echo X"$ac_file" |
16358 - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16359 - /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16360 - /^X\(\/\/\)$/{ s//\1/; q; }
16361 - /^X\(\/\).*/{ s//\1/; q; }
16362 - s/.*/./; q'`
16363 - { if $as_mkdir_p; then
16364 - mkdir -p "$ac_dir"
16365 - else
16366 - as_dir="$ac_dir"
16367 + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16368 + s//\1/
16369 + q
16370 + }
16371 + /^X\(\/\/\)[^/].*/{
16372 + s//\1/
16373 + q
16374 + }
16375 + /^X\(\/\/\)$/{
16376 + s//\1/
16377 + q
16378 + }
16379 + /^X\(\/\).*/{
16380 + s//\1/
16381 + q
16382 + }
16383 + s/.*/./; q'`
16384 + { as_dir="$ac_dir"
16385 + case $as_dir in #(
16386 + -*) as_dir=./$as_dir;;
16387 + esac
16388 + test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
16389 as_dirs=
16390 - while test ! -d "$as_dir"; do
16391 - as_dirs="$as_dir $as_dirs"
16392 - as_dir=`(dirname "$as_dir") 2>/dev/null ||
16393 + while :; do
16394 + case $as_dir in #(
16395 + *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
16396 + *) as_qdir=$as_dir;;
16397 + esac
16398 + as_dirs="'$as_qdir' $as_dirs"
16399 + as_dir=`$as_dirname -- "$as_dir" ||
16400 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16401 X"$as_dir" : 'X\(//\)[^/]' \| \
16402 X"$as_dir" : 'X\(//\)$' \| \
16403 - X"$as_dir" : 'X\(/\)' \| \
16404 - . : '\(.\)' 2>/dev/null ||
16405 + X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16406 echo X"$as_dir" |
16407 - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16408 - /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16409 - /^X\(\/\/\)$/{ s//\1/; q; }
16410 - /^X\(\/\).*/{ s//\1/; q; }
16411 - s/.*/./; q'`
16412 + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16413 + s//\1/
16414 + q
16415 + }
16416 + /^X\(\/\/\)[^/].*/{
16417 + s//\1/
16418 + q
16419 + }
16420 + /^X\(\/\/\)$/{
16421 + s//\1/
16422 + q
16423 + }
16424 + /^X\(\/\).*/{
16425 + s//\1/
16426 + q
16427 + }
16428 + s/.*/./; q'`
16429 + test -d "$as_dir" && break
16430 done
16431 - test ! -n "$as_dirs" || mkdir $as_dirs
16432 - fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16433 -echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16434 + test -z "$as_dirs" || eval "mkdir $as_dirs"
16435 + } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
16436 +echo "$as_me: error: cannot create directory $as_dir" >&2;}
16437 { (exit 1); exit 1; }; }; }
16438 -
16439 ac_builddir=.
16440
16441 -if test "$ac_dir" != .; then
16442 +case "$ac_dir" in
16443 +.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16444 +*)
16445 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16446 - # A "../" for each directory in $ac_dir_suffix.
16447 - ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
16448 -else
16449 - ac_dir_suffix= ac_top_builddir=
16450 -fi
16451 + # A ".." for each directory in $ac_dir_suffix.
16452 + ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
16453 + case $ac_top_builddir_sub in
16454 + "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16455 + *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16456 + esac ;;
16457 +esac
16458 +ac_abs_top_builddir=$ac_pwd
16459 +ac_abs_builddir=$ac_pwd$ac_dir_suffix
16460 +# for backward compatibility:
16461 +ac_top_builddir=$ac_top_build_prefix
16462
16463 case $srcdir in
16464 - .) # No --srcdir option. We are building in place.
16465 + .) # We are building in place.
16466 ac_srcdir=.
16467 - if test -z "$ac_top_builddir"; then
16468 - ac_top_srcdir=.
16469 - else
16470 - ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
16471 - fi ;;
16472 - [\\/]* | ?:[\\/]* ) # Absolute path.
16473 + ac_top_srcdir=$ac_top_builddir_sub
16474 + ac_abs_top_srcdir=$ac_pwd ;;
16475 + [\\/]* | ?:[\\/]* ) # Absolute name.
16476 ac_srcdir=$srcdir$ac_dir_suffix;
16477 - ac_top_srcdir=$srcdir ;;
16478 - *) # Relative path.
16479 - ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
16480 - ac_top_srcdir=$ac_top_builddir$srcdir ;;
16481 -esac
16482 + ac_top_srcdir=$srcdir
16483 + ac_abs_top_srcdir=$srcdir ;;
16484 + *) # Relative name.
16485 + ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16486 + ac_top_srcdir=$ac_top_build_prefix$srcdir
16487 + ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16488 +esac
16489 +ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16490
16491 -# Do not use `cd foo && pwd` to compute absolute paths, because
16492 -# the directories may not exist.
16493 -case `pwd` in
16494 -.) ac_abs_builddir="$ac_dir";;
16495 -*)
16496 - case "$ac_dir" in
16497 - .) ac_abs_builddir=`pwd`;;
16498 - [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
16499 - *) ac_abs_builddir=`pwd`/"$ac_dir";;
16500 - esac;;
16501 -esac
16502 -case $ac_abs_builddir in
16503 -.) ac_abs_top_builddir=${ac_top_builddir}.;;
16504 -*)
16505 - case ${ac_top_builddir}. in
16506 - .) ac_abs_top_builddir=$ac_abs_builddir;;
16507 - [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
16508 - *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
16509 - esac;;
16510 -esac
16511 -case $ac_abs_builddir in
16512 -.) ac_abs_srcdir=$ac_srcdir;;
16513 -*)
16514 - case $ac_srcdir in
16515 - .) ac_abs_srcdir=$ac_abs_builddir;;
16516 - [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
16517 - *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
16518 - esac;;
16519 -esac
16520 -case $ac_abs_builddir in
16521 -.) ac_abs_top_srcdir=$ac_top_srcdir;;
16522 -*)
16523 - case $ac_top_srcdir in
16524 - .) ac_abs_top_srcdir=$ac_abs_builddir;;
16525 - [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
16526 - *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
16527 - esac;;
16528 -esac
16529
16530 + case $ac_mode in
16531 + :F)
16532 + #
16533 + # CONFIG_FILE
16534 + #
16535
16536 case $INSTALL in
16537 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16538 - *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
16539 + *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16540 esac
16541 +_ACEOF
16542
16543 - if test x"$ac_file" != x-; then
16544 - { echo "$as_me:$LINENO: creating $ac_file" >&5
16545 -echo "$as_me: creating $ac_file" >&6;}
16546 - rm -f "$ac_file"
16547 - fi
16548 - # Let's still pretend it is `configure' which instantiates (i.e., don't
16549 - # use $as_me), people would be surprised to read:
16550 - # /* config.h. Generated by config.status. */
16551 - if test x"$ac_file" = x-; then
16552 - configure_input=
16553 - else
16554 - configure_input="$ac_file. "
16555 - fi
16556 - configure_input=$configure_input"Generated from `echo $ac_file_in |
16557 - sed 's,.*/,,'` by configure."
16558 -
16559 - # First look for the input files in the build tree, otherwise in the
16560 - # src tree.
16561 - ac_file_inputs=`IFS=:
16562 - for f in $ac_file_in; do
16563 - case $f in
16564 - -) echo $tmp/stdin ;;
16565 - [\\/$]*)
16566 - # Absolute (can't be DOS-style, as IFS=:)
16567 - test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16568 -echo "$as_me: error: cannot find input file: $f" >&2;}
16569 - { (exit 1); exit 1; }; }
16570 - echo "$f";;
16571 - *) # Relative
16572 - if test -f "$f"; then
16573 - # Build tree
16574 - echo "$f"
16575 - elif test -f "$srcdir/$f"; then
16576 - # Source tree
16577 - echo "$srcdir/$f"
16578 - else
16579 - # /dev/null tree
16580 - { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16581 -echo "$as_me: error: cannot find input file: $f" >&2;}
16582 - { (exit 1); exit 1; }; }
16583 - fi;;
16584 - esac
16585 - done` || { (exit 1); exit 1; }
16586 +cat >>$CONFIG_STATUS <<\_ACEOF
16587 +# If the template does not know about datarootdir, expand it.
16588 +# FIXME: This hack should be removed a few years after 2.60.
16589 +ac_datarootdir_hack=; ac_datarootdir_seen=
16590 +
16591 +case `sed -n '/datarootdir/ {
16592 + p
16593 + q
16594 +}
16595 +/@datadir@/p
16596 +/@docdir@/p
16597 +/@infodir@/p
16598 +/@localedir@/p
16599 +/@mandir@/p
16600 +' $ac_file_inputs` in
16601 +*datarootdir*) ac_datarootdir_seen=yes;;
16602 +*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16603 + { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16604 +echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16605 +_ACEOF
16606 +cat >>$CONFIG_STATUS <<_ACEOF
16607 + ac_datarootdir_hack='
16608 + s&@datadir@&$datadir&g
16609 + s&@docdir@&$docdir&g
16610 + s&@infodir@&$infodir&g
16611 + s&@localedir@&$localedir&g
16612 + s&@mandir@&$mandir&g
16613 + s&\\\${datarootdir}&$datarootdir&g' ;;
16614 +esac
16615 _ACEOF
16616 +
16617 +# Neutralize VPATH when `$srcdir' = `.'.
16618 +# Shell code in configure.ac might set extrasub.
16619 +# FIXME: do we really want to maintain this feature?
16620 cat >>$CONFIG_STATUS <<_ACEOF
16621 sed "$ac_vpsub
16622 $extrasub
16623 @@ -15521,248 +15939,130 @@ _ACEOF
16624 cat >>$CONFIG_STATUS <<\_ACEOF
16625 :t
16626 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16627 -s,@configure_input@,$configure_input,;t t
16628 -s,@srcdir@,$ac_srcdir,;t t
16629 -s,@abs_srcdir@,$ac_abs_srcdir,;t t
16630 -s,@top_srcdir@,$ac_top_srcdir,;t t
16631 -s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
16632 -s,@builddir@,$ac_builddir,;t t
16633 -s,@abs_builddir@,$ac_abs_builddir,;t t
16634 -s,@top_builddir@,$ac_top_builddir,;t t
16635 -s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
16636 -s,@INSTALL@,$ac_INSTALL,;t t
16637 -" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
16638 - rm -f $tmp/stdin
16639 - if test x"$ac_file" != x-; then
16640 - mv $tmp/out $ac_file
16641 - else
16642 - cat $tmp/out
16643 - rm -f $tmp/out
16644 - fi
16645 -
16646 -done
16647 -_ACEOF
16648 -cat >>$CONFIG_STATUS <<\_ACEOF
16649 -
16650 -#
16651 -# CONFIG_HEADER section.
16652 -#
16653 -
16654 -# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
16655 -# NAME is the cpp macro being defined and VALUE is the value it is being given.
16656 -#
16657 -# ac_d sets the value in "#define NAME VALUE" lines.
16658 -ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
16659 -ac_dB='[ ].*$,\1#\2'
16660 -ac_dC=' '
16661 -ac_dD=',;t'
16662 -# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
16663 -ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
16664 -ac_uB='$,\1#\2define\3'
16665 -ac_uC=' '
16666 -ac_uD=',;t'
16667 +s&@configure_input@&$configure_input&;t t
16668 +s&@top_builddir@&$ac_top_builddir_sub&;t t
16669 +s&@srcdir@&$ac_srcdir&;t t
16670 +s&@abs_srcdir@&$ac_abs_srcdir&;t t
16671 +s&@top_srcdir@&$ac_top_srcdir&;t t
16672 +s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16673 +s&@builddir@&$ac_builddir&;t t
16674 +s&@abs_builddir@&$ac_abs_builddir&;t t
16675 +s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16676 +s&@INSTALL@&$ac_INSTALL&;t t
16677 +$ac_datarootdir_hack
16678 +" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
16679 +
16680 +test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16681 + { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16682 + { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16683 + { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16684 +which seems to be undefined. Please make sure it is defined." >&5
16685 +echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16686 +which seems to be undefined. Please make sure it is defined." >&2;}
16687
16688 -for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
16689 - # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16690 + rm -f "$tmp/stdin"
16691 case $ac_file in
16692 - - | *:- | *:-:* ) # input from stdin
16693 - cat >$tmp/stdin
16694 - ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16695 - ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16696 - *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16697 - ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16698 - * ) ac_file_in=$ac_file.in ;;
16699 + -) cat "$tmp/out"; rm -f "$tmp/out";;
16700 + *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
16701 esac
16702 + ;;
16703 + :H)
16704 + #
16705 + # CONFIG_HEADER
16706 + #
16707 +_ACEOF
16708 +
16709 +# Transform confdefs.h into a sed script `conftest.defines', that
16710 +# substitutes the proper values into config.h.in to produce config.h.
16711 +rm -f conftest.defines conftest.tail
16712 +# First, append a space to every undef/define line, to ease matching.
16713 +echo 's/$/ /' >conftest.defines
16714 +# Then, protect against being on the right side of a sed subst, or in
16715 +# an unquoted here document, in config.status. If some macros were
16716 +# called several times there might be several #defines for the same
16717 +# symbol, which is useless. But do not sort them, since the last
16718 +# AC_DEFINE must be honored.
16719 +ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16720 +# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
16721 +# NAME is the cpp macro being defined, VALUE is the value it is being given.
16722 +# PARAMS is the parameter list in the macro definition--in most cases, it's
16723 +# just an empty string.
16724 +ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
16725 +ac_dB='\\)[ (].*,\\1define\\2'
16726 +ac_dC=' '
16727 +ac_dD=' ,'
16728
16729 - test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
16730 -echo "$as_me: creating $ac_file" >&6;}
16731 -
16732 - # First look for the input files in the build tree, otherwise in the
16733 - # src tree.
16734 - ac_file_inputs=`IFS=:
16735 - for f in $ac_file_in; do
16736 - case $f in
16737 - -) echo $tmp/stdin ;;
16738 - [\\/$]*)
16739 - # Absolute (can't be DOS-style, as IFS=:)
16740 - test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16741 -echo "$as_me: error: cannot find input file: $f" >&2;}
16742 - { (exit 1); exit 1; }; }
16743 - # Do quote $f, to prevent DOS paths from being IFS'd.
16744 - echo "$f";;
16745 - *) # Relative
16746 - if test -f "$f"; then
16747 - # Build tree
16748 - echo "$f"
16749 - elif test -f "$srcdir/$f"; then
16750 - # Source tree
16751 - echo "$srcdir/$f"
16752 - else
16753 - # /dev/null tree
16754 - { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16755 -echo "$as_me: error: cannot find input file: $f" >&2;}
16756 - { (exit 1); exit 1; }; }
16757 - fi;;
16758 - esac
16759 - done` || { (exit 1); exit 1; }
16760 - # Remove the trailing spaces.
16761 - sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
16762 -
16763 -_ACEOF
16764 -
16765 -# Transform confdefs.h into two sed scripts, `conftest.defines' and
16766 -# `conftest.undefs', that substitutes the proper values into
16767 -# config.h.in to produce config.h. The first handles `#define'
16768 -# templates, and the second `#undef' templates.
16769 -# And first: Protect against being on the right side of a sed subst in
16770 -# config.status. Protect against being in an unquoted here document
16771 -# in config.status.
16772 -rm -f conftest.defines conftest.undefs
16773 -# Using a here document instead of a string reduces the quoting nightmare.
16774 -# Putting comments in sed scripts is not portable.
16775 -#
16776 -# `end' is used to avoid that the second main sed command (meant for
16777 -# 0-ary CPP macros) applies to n-ary macro definitions.
16778 -# See the Autoconf documentation for `clear'.
16779 -cat >confdef2sed.sed <<\_ACEOF
16780 -s/[\\&,]/\\&/g
16781 -s,[\\$`],\\&,g
16782 -t clear
16783 -: clear
16784 -s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
16785 -t end
16786 -s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
16787 -: end
16788 -_ACEOF
16789 -# If some macros were called several times there might be several times
16790 -# the same #defines, which is useless. Nevertheless, we may not want to
16791 -# sort them, since we want the *last* AC-DEFINE to be honored.
16792 -uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
16793 -sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
16794 -rm -f confdef2sed.sed
16795 +uniq confdefs.h |
16796 + sed -n '
16797 + t rset
16798 + :rset
16799 + s/^[ ]*#[ ]*define[ ][ ]*//
16800 + t ok
16801 + d
16802 + :ok
16803 + s/[\\&,]/\\&/g
16804 + s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
16805 + s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
16806 + ' >>conftest.defines
16807
16808 -# This sed command replaces #undef with comments. This is necessary, for
16809 +# Remove the space that was appended to ease matching.
16810 +# Then replace #undef with comments. This is necessary, for
16811 # example, in the case of _POSIX_SOURCE, which is predefined and required
16812 # on some systems where configure will not decide to define it.
16813 -cat >>conftest.undefs <<\_ACEOF
16814 -s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
16815 +# (The regexp can be short, since the line contains either #define or #undef.)
16816 +echo 's/ $//
16817 +s,^[ #]*u.*,/* & */,' >>conftest.defines
16818 +
16819 +# Break up conftest.defines:
16820 +ac_max_sed_lines=50
16821 +
16822 +# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
16823 +# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
16824 +# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
16825 +# et cetera.
16826 +ac_in='$ac_file_inputs'
16827 +ac_out='"$tmp/out1"'
16828 +ac_nxt='"$tmp/out2"'
16829 +
16830 +while :
16831 +do
16832 + # Write a here document:
16833 + cat >>$CONFIG_STATUS <<_ACEOF
16834 + # First, check the format of the line:
16835 + cat >"\$tmp/defines.sed" <<\\CEOF
16836 +/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
16837 +/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
16838 +b
16839 +:def
16840 _ACEOF
16841 -
16842 -# Break up conftest.defines because some shells have a limit on the size
16843 -# of here documents, and old seds have small limits too (100 cmds).
16844 -echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
16845 -echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
16846 -echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
16847 -echo ' :' >>$CONFIG_STATUS
16848 -rm -f conftest.tail
16849 -while grep . conftest.defines >/dev/null
16850 -do
16851 - # Write a limited-size here document to $tmp/defines.sed.
16852 - echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
16853 - # Speed up: don't consider the non `#define' lines.
16854 - echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
16855 - # Work around the forget-to-reset-the-flag bug.
16856 - echo 't clr' >>$CONFIG_STATUS
16857 - echo ': clr' >>$CONFIG_STATUS
16858 - sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
16859 + sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
16860 echo 'CEOF
16861 - sed -f $tmp/defines.sed $tmp/in >$tmp/out
16862 - rm -f $tmp/in
16863 - mv $tmp/out $tmp/in
16864 -' >>$CONFIG_STATUS
16865 - sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
16866 + sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
16867 + ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
16868 + sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
16869 + grep . conftest.tail >/dev/null || break
16870 rm -f conftest.defines
16871 mv conftest.tail conftest.defines
16872 done
16873 -rm -f conftest.defines
16874 -echo ' fi # grep' >>$CONFIG_STATUS
16875 -echo >>$CONFIG_STATUS
16876 -
16877 -# Break up conftest.undefs because some shells have a limit on the size
16878 -# of here documents, and old seds have small limits too (100 cmds).
16879 -echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
16880 -rm -f conftest.tail
16881 -while grep . conftest.undefs >/dev/null
16882 -do
16883 - # Write a limited-size here document to $tmp/undefs.sed.
16884 - echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
16885 - # Speed up: don't consider the non `#undef'
16886 - echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
16887 - # Work around the forget-to-reset-the-flag bug.
16888 - echo 't clr' >>$CONFIG_STATUS
16889 - echo ': clr' >>$CONFIG_STATUS
16890 - sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
16891 - echo 'CEOF
16892 - sed -f $tmp/undefs.sed $tmp/in >$tmp/out
16893 - rm -f $tmp/in
16894 - mv $tmp/out $tmp/in
16895 -' >>$CONFIG_STATUS
16896 - sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
16897 - rm -f conftest.undefs
16898 - mv conftest.tail conftest.undefs
16899 -done
16900 -rm -f conftest.undefs
16901 +rm -f conftest.defines conftest.tail
16902
16903 +echo "ac_result=$ac_in" >>$CONFIG_STATUS
16904 cat >>$CONFIG_STATUS <<\_ACEOF
16905 - # Let's still pretend it is `configure' which instantiates (i.e., don't
16906 - # use $as_me), people would be surprised to read:
16907 - # /* config.h. Generated by config.status. */
16908 - if test x"$ac_file" = x-; then
16909 - echo "/* Generated by configure. */" >$tmp/config.h
16910 - else
16911 - echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
16912 - fi
16913 - cat $tmp/in >>$tmp/config.h
16914 - rm -f $tmp/in
16915 if test x"$ac_file" != x-; then
16916 - if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
16917 + echo "/* $configure_input */" >"$tmp/config.h"
16918 + cat "$ac_result" >>"$tmp/config.h"
16919 + if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
16920 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
16921 echo "$as_me: $ac_file is unchanged" >&6;}
16922 else
16923 - ac_dir=`(dirname "$ac_file") 2>/dev/null ||
16924 -$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16925 - X"$ac_file" : 'X\(//\)[^/]' \| \
16926 - X"$ac_file" : 'X\(//\)$' \| \
16927 - X"$ac_file" : 'X\(/\)' \| \
16928 - . : '\(.\)' 2>/dev/null ||
16929 -echo X"$ac_file" |
16930 - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16931 - /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16932 - /^X\(\/\/\)$/{ s//\1/; q; }
16933 - /^X\(\/\).*/{ s//\1/; q; }
16934 - s/.*/./; q'`
16935 - { if $as_mkdir_p; then
16936 - mkdir -p "$ac_dir"
16937 - else
16938 - as_dir="$ac_dir"
16939 - as_dirs=
16940 - while test ! -d "$as_dir"; do
16941 - as_dirs="$as_dir $as_dirs"
16942 - as_dir=`(dirname "$as_dir") 2>/dev/null ||
16943 -$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16944 - X"$as_dir" : 'X\(//\)[^/]' \| \
16945 - X"$as_dir" : 'X\(//\)$' \| \
16946 - X"$as_dir" : 'X\(/\)' \| \
16947 - . : '\(.\)' 2>/dev/null ||
16948 -echo X"$as_dir" |
16949 - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16950 - /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16951 - /^X\(\/\/\)$/{ s//\1/; q; }
16952 - /^X\(\/\).*/{ s//\1/; q; }
16953 - s/.*/./; q'`
16954 - done
16955 - test ! -n "$as_dirs" || mkdir $as_dirs
16956 - fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16957 -echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16958 - { (exit 1); exit 1; }; }; }
16959 -
16960 rm -f $ac_file
16961 - mv $tmp/config.h $ac_file
16962 + mv "$tmp/config.h" $ac_file
16963 fi
16964 else
16965 - cat $tmp/config.h
16966 - rm -f $tmp/config.h
16967 + echo "/* $configure_input */"
16968 + cat "$ac_result"
16969 fi
16970 + rm -f "$tmp/out12"
16971 # Compute $ac_file's index in $config_headers.
16972 _am_stamp_count=1
16973 for _am_header in $config_headers :; do
16974 @@ -15773,135 +16073,39 @@ for _am_header in $config_headers :; do
16975 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16976 esac
16977 done
16978 -echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
16979 +echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
16980 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16981 X$ac_file : 'X\(//\)[^/]' \| \
16982 X$ac_file : 'X\(//\)$' \| \
16983 - X$ac_file : 'X\(/\)' \| \
16984 - . : '\(.\)' 2>/dev/null ||
16985 + X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
16986 echo X$ac_file |
16987 - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16988 - /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16989 - /^X\(\/\/\)$/{ s//\1/; q; }
16990 - /^X\(\/\).*/{ s//\1/; q; }
16991 - s/.*/./; q'`/stamp-h$_am_stamp_count
16992 -done
16993 -_ACEOF
16994 -cat >>$CONFIG_STATUS <<\_ACEOF
16995 -
16996 -#
16997 -# CONFIG_COMMANDS section.
16998 -#
16999 -for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
17000 - ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
17001 - ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
17002 - ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
17003 -$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17004 - X"$ac_dest" : 'X\(//\)[^/]' \| \
17005 - X"$ac_dest" : 'X\(//\)$' \| \
17006 - X"$ac_dest" : 'X\(/\)' \| \
17007 - . : '\(.\)' 2>/dev/null ||
17008 -echo X"$ac_dest" |
17009 - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17010 - /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17011 - /^X\(\/\/\)$/{ s//\1/; q; }
17012 - /^X\(\/\).*/{ s//\1/; q; }
17013 - s/.*/./; q'`
17014 - { if $as_mkdir_p; then
17015 - mkdir -p "$ac_dir"
17016 - else
17017 - as_dir="$ac_dir"
17018 - as_dirs=
17019 - while test ! -d "$as_dir"; do
17020 - as_dirs="$as_dir $as_dirs"
17021 - as_dir=`(dirname "$as_dir") 2>/dev/null ||
17022 -$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17023 - X"$as_dir" : 'X\(//\)[^/]' \| \
17024 - X"$as_dir" : 'X\(//\)$' \| \
17025 - X"$as_dir" : 'X\(/\)' \| \
17026 - . : '\(.\)' 2>/dev/null ||
17027 -echo X"$as_dir" |
17028 - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17029 - /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17030 - /^X\(\/\/\)$/{ s//\1/; q; }
17031 - /^X\(\/\).*/{ s//\1/; q; }
17032 - s/.*/./; q'`
17033 - done
17034 - test ! -n "$as_dirs" || mkdir $as_dirs
17035 - fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17036 -echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17037 - { (exit 1); exit 1; }; }; }
17038 -
17039 - ac_builddir=.
17040 -
17041 -if test "$ac_dir" != .; then
17042 - ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17043 - # A "../" for each directory in $ac_dir_suffix.
17044 - ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17045 -else
17046 - ac_dir_suffix= ac_top_builddir=
17047 -fi
17048 -
17049 -case $srcdir in
17050 - .) # No --srcdir option. We are building in place.
17051 - ac_srcdir=.
17052 - if test -z "$ac_top_builddir"; then
17053 - ac_top_srcdir=.
17054 - else
17055 - ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17056 - fi ;;
17057 - [\\/]* | ?:[\\/]* ) # Absolute path.
17058 - ac_srcdir=$srcdir$ac_dir_suffix;
17059 - ac_top_srcdir=$srcdir ;;
17060 - *) # Relative path.
17061 - ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17062 - ac_top_srcdir=$ac_top_builddir$srcdir ;;
17063 -esac
17064 + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17065 + s//\1/
17066 + q
17067 + }
17068 + /^X\(\/\/\)[^/].*/{
17069 + s//\1/
17070 + q
17071 + }
17072 + /^X\(\/\/\)$/{
17073 + s//\1/
17074 + q
17075 + }
17076 + /^X\(\/\).*/{
17077 + s//\1/
17078 + q
17079 + }
17080 + s/.*/./; q'`/stamp-h$_am_stamp_count
17081 + ;;
17082
17083 -# Do not use `cd foo && pwd` to compute absolute paths, because
17084 -# the directories may not exist.
17085 -case `pwd` in
17086 -.) ac_abs_builddir="$ac_dir";;
17087 -*)
17088 - case "$ac_dir" in
17089 - .) ac_abs_builddir=`pwd`;;
17090 - [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
17091 - *) ac_abs_builddir=`pwd`/"$ac_dir";;
17092 - esac;;
17093 -esac
17094 -case $ac_abs_builddir in
17095 -.) ac_abs_top_builddir=${ac_top_builddir}.;;
17096 -*)
17097 - case ${ac_top_builddir}. in
17098 - .) ac_abs_top_builddir=$ac_abs_builddir;;
17099 - [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
17100 - *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
17101 - esac;;
17102 -esac
17103 -case $ac_abs_builddir in
17104 -.) ac_abs_srcdir=$ac_srcdir;;
17105 -*)
17106 - case $ac_srcdir in
17107 - .) ac_abs_srcdir=$ac_abs_builddir;;
17108 - [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
17109 - *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
17110 - esac;;
17111 -esac
17112 -case $ac_abs_builddir in
17113 -.) ac_abs_top_srcdir=$ac_top_srcdir;;
17114 -*)
17115 - case $ac_top_srcdir in
17116 - .) ac_abs_top_srcdir=$ac_abs_builddir;;
17117 - [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
17118 - *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
17119 - esac;;
17120 -esac
17121 + :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
17122 +echo "$as_me: executing $ac_file commands" >&6;}
17123 + ;;
17124 + esac
17125
17126
17127 - { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
17128 -echo "$as_me: executing $ac_dest commands" >&6;}
17129 - case $ac_dest in
17130 - depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
17131 + case $ac_file$ac_mode in
17132 + "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
17133 # Strip MF so we end up with the name of the file.
17134 mf=`echo "$mf" | sed -e 's/:.*$//'`
17135 # Check whether this is an Automake generated Makefile or not.
17136 @@ -15911,18 +16115,29 @@ echo "$as_me: executing $ac_dest command
17137 # each Makefile.in and add a new line on top of each file to say so.
17138 # So let's grep whole file.
17139 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
17140 - dirpart=`(dirname "$mf") 2>/dev/null ||
17141 + dirpart=`$as_dirname -- "$mf" ||
17142 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17143 X"$mf" : 'X\(//\)[^/]' \| \
17144 X"$mf" : 'X\(//\)$' \| \
17145 - X"$mf" : 'X\(/\)' \| \
17146 - . : '\(.\)' 2>/dev/null ||
17147 + X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17148 echo X"$mf" |
17149 - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17150 - /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17151 - /^X\(\/\/\)$/{ s//\1/; q; }
17152 - /^X\(\/\).*/{ s//\1/; q; }
17153 - s/.*/./; q'`
17154 + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17155 + s//\1/
17156 + q
17157 + }
17158 + /^X\(\/\/\)[^/].*/{
17159 + s//\1/
17160 + q
17161 + }
17162 + /^X\(\/\/\)$/{
17163 + s//\1/
17164 + q
17165 + }
17166 + /^X\(\/\).*/{
17167 + s//\1/
17168 + q
17169 + }
17170 + s/.*/./; q'`
17171 else
17172 continue
17173 fi
17174 @@ -15944,54 +16159,80 @@ echo X"$mf" |
17175 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17176 # Make sure the directory exists.
17177 test -f "$dirpart/$file" && continue
17178 - fdir=`(dirname "$file") 2>/dev/null ||
17179 + fdir=`$as_dirname -- "$file" ||
17180 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17181 X"$file" : 'X\(//\)[^/]' \| \
17182 X"$file" : 'X\(//\)$' \| \
17183 - X"$file" : 'X\(/\)' \| \
17184 - . : '\(.\)' 2>/dev/null ||
17185 + X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17186 echo X"$file" |
17187 - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17188 - /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17189 - /^X\(\/\/\)$/{ s//\1/; q; }
17190 - /^X\(\/\).*/{ s//\1/; q; }
17191 - s/.*/./; q'`
17192 - { if $as_mkdir_p; then
17193 - mkdir -p $dirpart/$fdir
17194 - else
17195 - as_dir=$dirpart/$fdir
17196 + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17197 + s//\1/
17198 + q
17199 + }
17200 + /^X\(\/\/\)[^/].*/{
17201 + s//\1/
17202 + q
17203 + }
17204 + /^X\(\/\/\)$/{
17205 + s//\1/
17206 + q
17207 + }
17208 + /^X\(\/\).*/{
17209 + s//\1/
17210 + q
17211 + }
17212 + s/.*/./; q'`
17213 + { as_dir=$dirpart/$fdir
17214 + case $as_dir in #(
17215 + -*) as_dir=./$as_dir;;
17216 + esac
17217 + test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
17218 as_dirs=
17219 - while test ! -d "$as_dir"; do
17220 - as_dirs="$as_dir $as_dirs"
17221 - as_dir=`(dirname "$as_dir") 2>/dev/null ||
17222 + while :; do
17223 + case $as_dir in #(
17224 + *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
17225 + *) as_qdir=$as_dir;;
17226 + esac
17227 + as_dirs="'$as_qdir' $as_dirs"
17228 + as_dir=`$as_dirname -- "$as_dir" ||
17229 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17230 X"$as_dir" : 'X\(//\)[^/]' \| \
17231 X"$as_dir" : 'X\(//\)$' \| \
17232 - X"$as_dir" : 'X\(/\)' \| \
17233 - . : '\(.\)' 2>/dev/null ||
17234 + X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17235 echo X"$as_dir" |
17236 - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17237 - /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17238 - /^X\(\/\/\)$/{ s//\1/; q; }
17239 - /^X\(\/\).*/{ s//\1/; q; }
17240 - s/.*/./; q'`
17241 + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17242 + s//\1/
17243 + q
17244 + }
17245 + /^X\(\/\/\)[^/].*/{
17246 + s//\1/
17247 + q
17248 + }
17249 + /^X\(\/\/\)$/{
17250 + s//\1/
17251 + q
17252 + }
17253 + /^X\(\/\).*/{
17254 + s//\1/
17255 + q
17256 + }
17257 + s/.*/./; q'`
17258 + test -d "$as_dir" && break
17259 done
17260 - test ! -n "$as_dirs" || mkdir $as_dirs
17261 - fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
17262 -echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
17263 + test -z "$as_dirs" || eval "mkdir $as_dirs"
17264 + } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
17265 +echo "$as_me: error: cannot create directory $as_dir" >&2;}
17266 { (exit 1); exit 1; }; }; }
17267 -
17268 # echo "creating $dirpart/$file"
17269 echo '# dummy' > "$dirpart/$file"
17270 done
17271 done
17272 ;;
17273 - default ) sed -e '/SRC-POTFILES =/r po/SRC-POTFILES' -e '/BLD-POTFILES =/r po/BLD-POTFILES' po/Makefile.in > po/Makefile ;;
17274 + "default":C) sed -e '/SRC-POTFILES =/r po/SRC-POTFILES' -e '/BLD-POTFILES =/r po/BLD-POTFILES' po/Makefile.in > po/Makefile ;;
17275 +
17276 esac
17277 -done
17278 -_ACEOF
17279 +done # for ac_tag
17280
17281 -cat >>$CONFIG_STATUS <<\_ACEOF
17282
17283 { (exit 0); exit 0; }
17284 _ACEOF
17285 diff -Nrup binutils-2.17/bfd/cpu-avr32.c binutils-2.17.atmel.1.3.0/bfd/cpu-avr32.c
17286 --- binutils-2.17/bfd/cpu-avr32.c 1970-01-01 01:00:00.000000000 +0100
17287 +++ binutils-2.17.atmel.1.3.0/bfd/cpu-avr32.c 2007-05-31 17:03:36.000000000 +0200
17288 @@ -0,0 +1,49 @@
17289 +/* BFD library support routines for AVR32.
17290 + Copyright 2003-2006 Atmel Corporation.
17291 +
17292 + Written by Haavard Skinnemoen, Atmel Norway, <hskinnemoen@atmel.com>
17293 +
17294 + This is part of BFD, the Binary File Descriptor library.
17295 +
17296 + This program is free software; you can redistribute it and/or modify
17297 + it under the terms of the GNU General Public License as published by
17298 + the Free Software Foundation; either version 2 of the License, or
17299 + (at your option) any later version.
17300 +
17301 + This program is distributed in the hope that it will be useful,
17302 + but WITHOUT ANY WARRANTY; without even the implied warranty of
17303 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17304 + GNU General Public License for more details.
17305 +
17306 + You should have received a copy of the GNU General Public License
17307 + along with this program; if not, write to the Free Software
17308 + Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
17309 +
17310 +#include "bfd.h"
17311 +#include "sysdep.h"
17312 +#include "libbfd.h"
17313 +
17314 +#define N(machine, print, default, next) \
17315 + { \
17316 + 32, /* 32 bits in a word */ \
17317 + 32, /* 32 bits in an address */ \
17318 + 8, /* 8 bits in a byte */ \
17319 + bfd_arch_avr32, /* architecture */ \
17320 + machine, /* machine */ \
17321 + "avr32", /* arch name */ \
17322 + print, /* printable name */ \
17323 + 1, /* section align power */ \
17324 + default, /* the default machine? */ \
17325 + bfd_default_compatible, \
17326 + bfd_default_scan, \
17327 + next, \
17328 + }
17329 +
17330 +static const bfd_arch_info_type cpu_info[] =
17331 +{
17332 + N(bfd_mach_avr32_ap, "avr32:ap", FALSE, &cpu_info[1]),
17333 + N(bfd_mach_avr32_uc, "avr32:uc", FALSE, NULL),
17334 +};
17335 +
17336 +const bfd_arch_info_type bfd_avr32_arch =
17337 + N(bfd_mach_avr32_ap, "avr32", TRUE, &cpu_info[0]);
17338 diff -Nrup binutils-2.17/bfd/doc/bfd.info binutils-2.17.atmel.1.3.0/bfd/doc/bfd.info
17339 --- binutils-2.17/bfd/doc/bfd.info 2006-06-12 15:37:32.000000000 +0200
17340 +++ binutils-2.17.atmel.1.3.0/bfd/doc/bfd.info 2007-03-26 10:34:02.000000000 +0200
17341 @@ -1,5 +1,7 @@
17342 -This is ../.././bfd/doc/bfd.info, produced by makeinfo version 4.8 from
17343 -../.././bfd/doc/bfd.texinfo.
17344 +This is
17345 +/home/hcegtvedt/svnwork/tools/T0243-GNU_Toolchain/50-Source/binutils/trunk/bfd/doc/bfd.info,
17346 +produced by makeinfo version 4.8 from
17347 +/home/hcegtvedt/svnwork/tools/T0243-GNU_Toolchain/50-Source/binutils/trunk/bfd/doc/bfd.texinfo.
17348
17349 START-INFO-DIR-ENTRY
17350 * Bfd: (bfd). The Binary File Descriptor library.
17351 @@ -10239,67 +10241,67 @@ Index
17352
17353 \1f
17354 Tag Table:
17355 -Node: Top\7f724
17356 -Node: Overview\7f1056
17357 -Node: History\7f2107
17358 -Node: How It Works\7f3053
17359 -Node: What BFD Version 2 Can Do\7f4595
17360 -Node: BFD information loss\7f5910
17361 -Node: Canonical format\7f8442
17362 -Node: BFD front end\7f12814
17363 -Node: Memory Usage\7f38428
17364 -Node: Initialization\7f39656
17365 -Node: Sections\7f40115
17366 -Node: Section Input\7f40598
17367 -Node: Section Output\7f41963
17368 -Node: typedef asection\7f44449
17369 -Node: section prototypes\7f69406
17370 -Node: Symbols\7f79086
17371 -Node: Reading Symbols\7f80681
17372 -Node: Writing Symbols\7f81788
17373 -Node: Mini Symbols\7f83497
17374 -Node: typedef asymbol\7f84471
17375 -Node: symbol handling functions\7f89389
17376 -Node: Archives\7f94731
17377 -Node: Formats\7f98457
17378 -Node: Relocations\7f101405
17379 -Node: typedef arelent\7f102132
17380 -Node: howto manager\7f117943
17381 -Node: Core Files\7f180223
17382 -Node: Targets\7f182040
17383 -Node: bfd_target\7f184010
17384 -Node: Architectures\7f204090
17385 -Node: Opening and Closing\7f225522
17386 -Node: Internal\7f236524
17387 -Node: File Caching\7f242857
17388 -Node: Linker Functions\7f244771
17389 -Node: Creating a Linker Hash Table\7f246444
17390 -Node: Adding Symbols to the Hash Table\7f248182
17391 -Node: Differing file formats\7f249082
17392 -Node: Adding symbols from an object file\7f250830
17393 -Node: Adding symbols from an archive\7f252981
17394 -Node: Performing the Final Link\7f255395
17395 -Node: Information provided by the linker\7f256637
17396 -Node: Relocating the section contents\7f257791
17397 -Node: Writing the symbol table\7f259542
17398 -Node: Hash Tables\7f262535
17399 -Node: Creating and Freeing a Hash Table\7f263733
17400 -Node: Looking Up or Entering a String\7f264983
17401 -Node: Traversing a Hash Table\7f266236
17402 -Node: Deriving a New Hash Table Type\7f267025
17403 -Node: Define the Derived Structures\7f268091
17404 -Node: Write the Derived Creation Routine\7f269172
17405 -Node: Write Other Derived Routines\7f271796
17406 -Node: BFD back ends\7f273111
17407 -Node: What to Put Where\7f273381
17408 -Node: aout\7f273519
17409 -Node: coff\7f279837
17410 -Node: elf\7f304314
17411 -Node: mmo\7f305177
17412 -Node: File layout\7f306105
17413 -Node: Symbol-table\7f311752
17414 -Node: mmo section mapping\7f315521
17415 -Node: GNU Free Documentation License\7f319173
17416 -Node: Index\7f338898
17417 +Node: Top\7f858
17418 +Node: Overview\7f1190
17419 +Node: History\7f2241
17420 +Node: How It Works\7f3187
17421 +Node: What BFD Version 2 Can Do\7f4729
17422 +Node: BFD information loss\7f6044
17423 +Node: Canonical format\7f8576
17424 +Node: BFD front end\7f12948
17425 +Node: Memory Usage\7f38562
17426 +Node: Initialization\7f39790
17427 +Node: Sections\7f40249
17428 +Node: Section Input\7f40732
17429 +Node: Section Output\7f42097
17430 +Node: typedef asection\7f44583
17431 +Node: section prototypes\7f69540
17432 +Node: Symbols\7f79220
17433 +Node: Reading Symbols\7f80815
17434 +Node: Writing Symbols\7f81922
17435 +Node: Mini Symbols\7f83631
17436 +Node: typedef asymbol\7f84605
17437 +Node: symbol handling functions\7f89523
17438 +Node: Archives\7f94865
17439 +Node: Formats\7f98591
17440 +Node: Relocations\7f101539
17441 +Node: typedef arelent\7f102266
17442 +Node: howto manager\7f118077
17443 +Node: Core Files\7f180357
17444 +Node: Targets\7f182174
17445 +Node: bfd_target\7f184144
17446 +Node: Architectures\7f204224
17447 +Node: Opening and Closing\7f225656
17448 +Node: Internal\7f236658
17449 +Node: File Caching\7f242991
17450 +Node: Linker Functions\7f244905
17451 +Node: Creating a Linker Hash Table\7f246578
17452 +Node: Adding Symbols to the Hash Table\7f248316
17453 +Node: Differing file formats\7f249216
17454 +Node: Adding symbols from an object file\7f250964
17455 +Node: Adding symbols from an archive\7f253115
17456 +Node: Performing the Final Link\7f255529
17457 +Node: Information provided by the linker\7f256771
17458 +Node: Relocating the section contents\7f257925
17459 +Node: Writing the symbol table\7f259676
17460 +Node: Hash Tables\7f262669
17461 +Node: Creating and Freeing a Hash Table\7f263867
17462 +Node: Looking Up or Entering a String\7f265117
17463 +Node: Traversing a Hash Table\7f266370
17464 +Node: Deriving a New Hash Table Type\7f267159
17465 +Node: Define the Derived Structures\7f268225
17466 +Node: Write the Derived Creation Routine\7f269306
17467 +Node: Write Other Derived Routines\7f271930
17468 +Node: BFD back ends\7f273245
17469 +Node: What to Put Where\7f273515
17470 +Node: aout\7f273653
17471 +Node: coff\7f279971
17472 +Node: elf\7f304448
17473 +Node: mmo\7f305311
17474 +Node: File layout\7f306239
17475 +Node: Symbol-table\7f311886
17476 +Node: mmo section mapping\7f315655
17477 +Node: GNU Free Documentation License\7f319307
17478 +Node: Index\7f339032
17479 \1f
17480 End Tag Table
17481 diff -Nrup binutils-2.17/bfd/doc/Makefile.in binutils-2.17.atmel.1.3.0/bfd/doc/Makefile.in
17482 --- binutils-2.17/bfd/doc/Makefile.in 2006-04-06 23:49:26.000000000 +0200
17483 +++ binutils-2.17.atmel.1.3.0/bfd/doc/Makefile.in 2007-03-26 10:30:55.000000000 +0200
17484 @@ -1,4 +1,4 @@
17485 -# Makefile.in generated by automake 1.9.5 from Makefile.am.
17486 +# Makefile.in generated by automake 1.9.6 from Makefile.am.
17487 # @configure_input@
17488
17489 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
17490 @@ -105,6 +105,7 @@ EXEEXT = @EXEEXT@
17491 EXEEXT_FOR_BUILD = @EXEEXT_FOR_BUILD@
17492 GMOFILES = @GMOFILES@
17493 GMSGFMT = @GMSGFMT@
17494 +GREP = @GREP@
17495 GT_NO = @GT_NO@
17496 GT_YES = @GT_YES@
17497 HDEFINES = @HDEFINES@
17498 @@ -154,10 +155,7 @@ WARN_CFLAGS = @WARN_CFLAGS@
17499 WIN32LDFLAGS = @WIN32LDFLAGS@
17500 WIN32LIBADD = @WIN32LIBADD@
17501 XGETTEXT = @XGETTEXT@
17502 -ac_ct_AR = @ac_ct_AR@
17503 ac_ct_CC = @ac_ct_CC@
17504 -ac_ct_RANLIB = @ac_ct_RANLIB@
17505 -ac_ct_STRIP = @ac_ct_STRIP@
17506 all_backends = @all_backends@
17507 am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
17508 am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
17509 @@ -183,6 +181,7 @@ build_vendor = @build_vendor@
17510 datadir = @datadir@
17511 datarootdir = @datarootdir@
17512 docdir = @docdir@
17513 +dvidir = @dvidir@
17514 exec_prefix = @exec_prefix@
17515 host = @host@
17516 host_alias = @host_alias@
17517 @@ -197,12 +196,15 @@ install_sh = @install_sh@
17518 l = @l@
17519 libdir = @libdir@
17520 libexecdir = @libexecdir@
17521 +localedir = @localedir@
17522 localstatedir = @localstatedir@
17523 mandir = @mandir@
17524 mkdir_p = @mkdir_p@
17525 oldincludedir = @oldincludedir@
17526 +pdfdir = @pdfdir@
17527 prefix = @prefix@
17528 program_transform_name = @program_transform_name@
17529 +psdir = @psdir@
17530 sbindir = @sbindir@
17531 sharedstatedir = @sharedstatedir@
17532 sysconfdir = @sysconfdir@
17533 @@ -364,9 +366,11 @@ distclean-libtool:
17534 restore=: && backupdir="$(am__leading_dot)am$$$$" && \
17535 am__cwd=`pwd` && cd $(srcdir) && \
17536 rm -rf $$backupdir && mkdir $$backupdir && \
17537 - for f in $@ $@-[0-9] $@-[0-9][0-9] $(@:.info=).i[0-9] $(@:.info=).i[0-9][0-9]; do \
17538 - if test -f $$f; then mv $$f $$backupdir; restore=mv; else :; fi; \
17539 - done; \
17540 + if ($(MAKEINFO) --version) >/dev/null 2>&1; then \
17541 + for f in $@ $@-[0-9] $@-[0-9][0-9] $(@:.info=).i[0-9] $(@:.info=).i[0-9][0-9]; do \
17542 + if test -f $$f; then mv $$f $$backupdir; restore=mv; else :; fi; \
17543 + done; \
17544 + else :; fi && \
17545 cd "$$am__cwd"; \
17546 if $(MAKEINFO) $(AM_MAKEINFOFLAGS) $(MAKEINFOFLAGS) -I $(srcdir) \
17547 -o $@ $<; \
17548 @@ -408,6 +412,7 @@ bfd.dvi: bfd.texinfo
17549 bfd.pdf: bfd.texinfo
17550 bfd.html: bfd.texinfo
17551 .dvi.ps:
17552 + TEXINPUTS="$(am__TEXINFO_TEX_DIR)$(PATH_SEPARATOR)$$TEXINPUTS" \
17553 $(DVIPS) -o $@ $<
17554
17555 uninstall-info-am:
17556 @@ -440,10 +445,13 @@ dist-info: $(INFO_DEPS)
17557 $(srcdir)/*) base=`echo "$$base" | sed "s|^$$srcdirstrip/||"`;; \
17558 esac; \
17559 if test -f $$base; then d=.; else d=$(srcdir); fi; \
17560 - for file in $$d/$$base*; do \
17561 - relfile=`expr "$$file" : "$$d/\(.*\)"`; \
17562 - test -f $(distdir)/$$relfile || \
17563 - cp -p $$file $(distdir)/$$relfile; \
17564 + base_i=`echo "$$base" | sed 's|\.info$$||;s|$$|.i|'`; \
17565 + for file in $$d/$$base $$d/$$base-[0-9] $$d/$$base-[0-9][0-9] $$d/$$base_i[0-9] $$d/$$base_i[0-9][0-9]; do \
17566 + if test -f $$file; then \
17567 + relfile=`expr "$$file" : "$$d/\(.*\)"`; \
17568 + test -f $(distdir)/$$relfile || \
17569 + cp -p $$file $(distdir)/$$relfile; \
17570 + else :; fi; \
17571 done; \
17572 done
17573
17574 diff -Nrup binutils-2.17/bfd/elf32-avr32.c binutils-2.17.atmel.1.3.0/bfd/elf32-avr32.c
17575 --- binutils-2.17/bfd/elf32-avr32.c 1970-01-01 01:00:00.000000000 +0100
17576 +++ binutils-2.17.atmel.1.3.0/bfd/elf32-avr32.c 2007-09-28 10:30:44.000000000 +0200
17577 @@ -0,0 +1,3881 @@
17578 +/* AVR32-specific support for 32-bit ELF.
17579 + Copyright 2003-2006 Atmel Corporation.
17580 +
17581 + Written by Haavard Skinnemoen, Atmel Norway, <hskinnemoen@atmel.com>
17582 +
17583 + This file is part of BFD, the Binary File Descriptor library.
17584 +
17585 + This program is free software; you can redistribute it and/or modify
17586 + it under the terms of the GNU General Public License as published by
17587 + the Free Software Foundation; either version 2 of the License, or
17588 + (at your option) any later version.
17589 +
17590 + This program is distributed in the hope that it will be useful,
17591 + but WITHOUT ANY WARRANTY; without even the implied warranty of
17592 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17593 + GNU General Public License for more details.
17594 +
17595 + You should have received a copy of the GNU General Public License
17596 + along with this program; if not, write to the Free Software
17597 + Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
17598 +
17599 +#include "bfd.h"
17600 +#include "sysdep.h"
17601 +#include "bfdlink.h"
17602 +#include "libbfd.h"
17603 +#include "elf-bfd.h"
17604 +#include "elf/avr32.h"
17605 +#include "elf32-avr32.h"
17606 +
17607 +#define xDEBUG
17608 +#define xRELAX_DEBUG
17609 +
17610 +#ifdef DEBUG
17611 +# define pr_debug(fmt, args...) fprintf(stderr, fmt, ##args)
17612 +#else
17613 +# define pr_debug(fmt, args...) do { } while (0)
17614 +#endif
17615 +
17616 +#ifdef RELAX_DEBUG
17617 +# define RDBG(fmt, args...) fprintf(stderr, fmt, ##args)
17618 +#else
17619 +# define RDBG(fmt, args...) do { } while (0)
17620 +#endif
17621 +
17622 +/* When things go wrong, we want it to blow up, damnit! */
17623 +#undef BFD_ASSERT
17624 +#undef abort
17625 +#define BFD_ASSERT(expr) \
17626 + do \
17627 + { \
17628 + if (!(expr)) \
17629 + { \
17630 + bfd_assert(__FILE__, __LINE__); \
17631 + abort(); \
17632 + } \
17633 + } \
17634 + while (0)
17635 +
17636 +/* The name of the dynamic interpreter. This is put in the .interp section. */
17637 +#define ELF_DYNAMIC_INTERPRETER "/lib/ld.so.1"
17638 +
17639 +#define AVR32_GOT_HEADER_SIZE 8
17640 +#define AVR32_FUNCTION_STUB_SIZE 8
17641 +
17642 +#define ELF_R_INFO(x, y) ELF32_R_INFO(x, y)
17643 +#define ELF_R_TYPE(x) ELF32_R_TYPE(x)
17644 +#define ELF_R_SYM(x) ELF32_R_SYM(x)
17645 +
17646 +#define NOP_OPCODE 0xd703
17647 +
17648 +\f
17649 +/* Mapping between BFD relocations and ELF relocations */
17650 +
17651 +static reloc_howto_type *
17652 +bfd_elf32_bfd_reloc_type_lookup(bfd *abfd, bfd_reloc_code_real_type code);
17653 +static void
17654 +avr32_info_to_howto (bfd *abfd, arelent *cache_ptr, Elf_Internal_Rela *dst);
17655 +
17656 +/* Generic HOWTO */
17657 +#define GENH(name, align, size, bitsize, pcrel, bitpos, complain, mask) \
17658 + HOWTO(name, align, size, bitsize, pcrel, bitpos, \
17659 + complain_overflow_##complain, bfd_elf_generic_reloc, #name, \
17660 + FALSE, 0, mask, pcrel)
17661 +
17662 +static reloc_howto_type elf_avr32_howto_table[] = {
17663 + /* NAME ALN SZ BSZ PCREL BP COMPLAIN MASK */
17664 + GENH(R_AVR32_NONE, 0, 0, 0, FALSE, 0, dont, 0x00000000),
17665 +
17666 + GENH(R_AVR32_32, 0, 2, 32, FALSE, 0, dont, 0xffffffff),
17667 + GENH(R_AVR32_16, 0, 1, 16, FALSE, 0, bitfield, 0x0000ffff),
17668 + GENH(R_AVR32_8, 0, 0, 8, FALSE, 0, bitfield, 0x000000ff),
17669 + GENH(R_AVR32_32_PCREL, 0, 2, 32, TRUE, 0, signed, 0xffffffff),
17670 + GENH(R_AVR32_16_PCREL, 0, 1, 16, TRUE, 0, signed, 0x0000ffff),
17671 + GENH(R_AVR32_8_PCREL, 0, 0, 8, TRUE, 0, signed, 0x000000ff),
17672 +
17673 + /* Difference between two symbol (sym2 - sym1). The reloc encodes
17674 + the value of sym1. The field contains the difference before any
17675 + relaxing is done. */
17676 + GENH(R_AVR32_DIFF32, 0, 2, 32, FALSE, 0, dont, 0xffffffff),
17677 + GENH(R_AVR32_DIFF16, 0, 1, 16, FALSE, 0, signed, 0x0000ffff),
17678 + GENH(R_AVR32_DIFF8, 0, 0, 8, FALSE, 0, signed, 0x000000ff),
17679 +
17680 + GENH(R_AVR32_GOT32, 0, 2, 32, FALSE, 0, signed, 0xffffffff),
17681 + GENH(R_AVR32_GOT16, 0, 1, 16, FALSE, 0, signed, 0x0000ffff),
17682 + GENH(R_AVR32_GOT8, 0, 0, 8, FALSE, 0, signed, 0x000000ff),
17683 +
17684 + GENH(R_AVR32_21S, 0, 2, 21, FALSE, 0, signed, 0x1e10ffff),
17685 + GENH(R_AVR32_16U, 0, 2, 16, FALSE, 0, unsigned, 0x0000ffff),
17686 + GENH(R_AVR32_16S, 0, 2, 16, FALSE, 0, signed, 0x0000ffff),
17687 + GENH(R_AVR32_8S, 0, 1, 8, FALSE, 4, signed, 0x00000ff0),
17688 + GENH(R_AVR32_8S_EXT, 0, 2, 8, FALSE, 0, signed, 0x000000ff),
17689 +
17690 + GENH(R_AVR32_22H_PCREL, 1, 2, 21, TRUE, 0, signed, 0x1e10ffff),
17691 + GENH(R_AVR32_18W_PCREL, 2, 2, 16, TRUE, 0, signed, 0x0000ffff),
17692 + GENH(R_AVR32_16B_PCREL, 0, 2, 16, TRUE, 0, signed, 0x0000ffff),
17693 + GENH(R_AVR32_16N_PCREL, 0, 2, 16, TRUE, 0, signed, 0x0000ffff),
17694 + GENH(R_AVR32_14UW_PCREL, 2, 2, 12, TRUE, 0, unsigned, 0x0000f0ff),
17695 + GENH(R_AVR32_11H_PCREL, 1, 1, 10, TRUE, 4, signed, 0x00000ff3),
17696 + GENH(R_AVR32_10UW_PCREL, 2, 2, 8, TRUE, 0, unsigned, 0x000000ff),
17697 + GENH(R_AVR32_9H_PCREL, 1, 1, 8, TRUE, 4, signed, 0x00000ff0),
17698 + GENH(R_AVR32_9UW_PCREL, 2, 1, 7, TRUE, 4, unsigned, 0x000007f0),
17699 +
17700 + GENH(R_AVR32_HI16, 16, 2, 16, FALSE, 0, dont, 0x0000ffff),
17701 + GENH(R_AVR32_LO16, 0, 2, 16, FALSE, 0, dont, 0x0000ffff),
17702 +
17703 + GENH(R_AVR32_GOTPC, 0, 2, 32, FALSE, 0, dont, 0xffffffff),
17704 + GENH(R_AVR32_GOTCALL, 2, 2, 21, FALSE, 0, signed, 0x1e10ffff),
17705 + GENH(R_AVR32_LDA_GOT, 2, 2, 21, FALSE, 0, signed, 0x1e10ffff),
17706 + GENH(R_AVR32_GOT21S, 0, 2, 21, FALSE, 0, signed, 0x1e10ffff),
17707 + GENH(R_AVR32_GOT18SW, 2, 2, 16, FALSE, 0, signed, 0x0000ffff),
17708 + GENH(R_AVR32_GOT16S, 0, 2, 16, FALSE, 0, signed, 0x0000ffff),
17709 + GENH(R_AVR32_GOT7UW, 2, 1, 5, FALSE, 4, unsigned, 0x000001f0),
17710 +
17711 + GENH(R_AVR32_32_CPENT, 0, 2, 32, FALSE, 0, dont, 0xffffffff),
17712 + GENH(R_AVR32_CPCALL, 2, 2, 16, TRUE, 0, signed, 0x0000ffff),
17713 + GENH(R_AVR32_16_CP, 0, 2, 16, TRUE, 0, signed, 0x0000ffff),
17714 + GENH(R_AVR32_9W_CP, 2, 1, 7, TRUE, 4, unsigned, 0x000007f0),
17715 +
17716 + GENH(R_AVR32_RELATIVE, 0, 2, 32, FALSE, 0, signed, 0xffffffff),
17717 + GENH(R_AVR32_GLOB_DAT, 0, 2, 32, FALSE, 0, dont, 0xffffffff),
17718 + GENH(R_AVR32_JMP_SLOT, 0, 2, 32, FALSE, 0, dont, 0xffffffff),
17719 +
17720 + GENH(R_AVR32_ALIGN, 0, 1, 0, FALSE, 0, unsigned, 0x00000000),
17721 +};
17722 +
17723 +struct elf_reloc_map
17724 +{
17725 + bfd_reloc_code_real_type bfd_reloc_val;
17726 + unsigned char elf_reloc_val;
17727 +};
17728 +
17729 +static const struct elf_reloc_map avr32_reloc_map[] =
17730 +{
17731 + { BFD_RELOC_NONE, R_AVR32_NONE },
17732 +
17733 + { BFD_RELOC_32, R_AVR32_32 },
17734 + { BFD_RELOC_16, R_AVR32_16 },
17735 + { BFD_RELOC_8, R_AVR32_8 },
17736 + { BFD_RELOC_32_PCREL, R_AVR32_32_PCREL },
17737 + { BFD_RELOC_16_PCREL, R_AVR32_16_PCREL },
17738 + { BFD_RELOC_8_PCREL, R_AVR32_8_PCREL },
17739 + { BFD_RELOC_AVR32_DIFF32, R_AVR32_DIFF32 },
17740 + { BFD_RELOC_AVR32_DIFF16, R_AVR32_DIFF16 },
17741 + { BFD_RELOC_AVR32_DIFF8, R_AVR32_DIFF8 },
17742 + { BFD_RELOC_AVR32_GOT32, R_AVR32_GOT32 },
17743 + { BFD_RELOC_AVR32_GOT16, R_AVR32_GOT16 },
17744 + { BFD_RELOC_AVR32_GOT8, R_AVR32_GOT8 },
17745 +
17746 + { BFD_RELOC_AVR32_21S, R_AVR32_21S },
17747 + { BFD_RELOC_AVR32_16U, R_AVR32_16U },
17748 + { BFD_RELOC_AVR32_16S, R_AVR32_16S },
17749 + { BFD_RELOC_AVR32_SUB5, R_AVR32_16S },
17750 + { BFD_RELOC_AVR32_8S_EXT, R_AVR32_8S_EXT },
17751 + { BFD_RELOC_AVR32_8S, R_AVR32_8S },
17752 +
17753 + { BFD_RELOC_AVR32_22H_PCREL, R_AVR32_22H_PCREL },
17754 + { BFD_RELOC_AVR32_18W_PCREL, R_AVR32_18W_PCREL },
17755 + { BFD_RELOC_AVR32_16B_PCREL, R_AVR32_16B_PCREL },
17756 + { BFD_RELOC_AVR32_16N_PCREL, R_AVR32_16N_PCREL },
17757 + { BFD_RELOC_AVR32_11H_PCREL, R_AVR32_11H_PCREL },
17758 + { BFD_RELOC_AVR32_10UW_PCREL, R_AVR32_10UW_PCREL },
17759 + { BFD_RELOC_AVR32_9H_PCREL, R_AVR32_9H_PCREL },
17760 + { BFD_RELOC_AVR32_9UW_PCREL, R_AVR32_9UW_PCREL },
17761 +
17762 + { BFD_RELOC_HI16, R_AVR32_HI16 },
17763 + { BFD_RELOC_LO16, R_AVR32_LO16 },
17764 +
17765 + { BFD_RELOC_AVR32_GOTPC, R_AVR32_GOTPC },
17766 + { BFD_RELOC_AVR32_GOTCALL, R_AVR32_GOTCALL },
17767 + { BFD_RELOC_AVR32_LDA_GOT, R_AVR32_LDA_GOT },
17768 + { BFD_RELOC_AVR32_GOT21S, R_AVR32_GOT21S },
17769 + { BFD_RELOC_AVR32_GOT18SW, R_AVR32_GOT18SW },
17770 + { BFD_RELOC_AVR32_GOT16S, R_AVR32_GOT16S },
17771 + /* GOT7UW should never be generated by the assembler */
17772 +
17773 + { BFD_RELOC_AVR32_32_CPENT, R_AVR32_32_CPENT },
17774 + { BFD_RELOC_AVR32_CPCALL, R_AVR32_CPCALL },
17775 + { BFD_RELOC_AVR32_16_CP, R_AVR32_16_CP },
17776 + { BFD_RELOC_AVR32_9W_CP, R_AVR32_9W_CP },
17777 +
17778 + { BFD_RELOC_AVR32_ALIGN, R_AVR32_ALIGN },
17779 +};
17780 +
17781 +static reloc_howto_type *
17782 +bfd_elf32_bfd_reloc_type_lookup (bfd *abfd ATTRIBUTE_UNUSED,
17783 + bfd_reloc_code_real_type code)
17784 +{
17785 + unsigned int i;
17786 +
17787 + for (i = 0; i < sizeof(avr32_reloc_map) / sizeof(struct elf_reloc_map); i++)
17788 + {
17789 + if (avr32_reloc_map[i].bfd_reloc_val == code)
17790 + return &elf_avr32_howto_table[avr32_reloc_map[i].elf_reloc_val];
17791 + }
17792 +
17793 + return NULL;
17794 +}
17795 +
17796 +static void
17797 +avr32_info_to_howto (bfd *abfd ATTRIBUTE_UNUSED,
17798 + arelent *cache_ptr,
17799 + Elf_Internal_Rela *dst)
17800 +{
17801 + unsigned int r_type;
17802 +
17803 + r_type = ELF32_R_TYPE (dst->r_info);
17804 + BFD_ASSERT (r_type < (unsigned int) R_AVR32_max);
17805 + cache_ptr->howto = &elf_avr32_howto_table[r_type];
17806 +}
17807 +
17808 +\f
17809 +/* AVR32 ELF linker hash table and associated hash entries. */
17810 +
17811 +static struct bfd_hash_entry *
17812 +avr32_elf_link_hash_newfunc(struct bfd_hash_entry *entry,
17813 + struct bfd_hash_table *table,
17814 + const char *string);
17815 +static void
17816 +avr32_elf_copy_indirect_symbol(struct bfd_link_info *info,
17817 + struct elf_link_hash_entry *dir,
17818 + struct elf_link_hash_entry *ind);
17819 +static struct bfd_link_hash_table *
17820 +avr32_elf_link_hash_table_create(bfd *abfd);
17821 +
17822 +/*
17823 + Try to limit memory usage to something reasonable when sorting the
17824 + GOT. If we ever get more than this many references to the same
17825 + symbol, we may need to do something special.
17826 +*/
17827 +#define MAX_NR_GOT_HOLES 8192
17828 +
17829 +/*
17830 + AVR32 GOT entry. We need to keep track of refcounts and offsets
17831 + simultaneously, since we need the offsets during relaxation, and we
17832 + also want to be able to drop GOT entries during relaxation. In
17833 + addition to this, we want to keep the list of GOT entries sorted so
17834 + that we can keep the most-used entries at the lowest offsets.
17835 +*/
17836 +struct got_entry
17837 +{
17838 + struct got_entry *next;
17839 + struct got_entry **pprev;
17840 + int refcount;
17841 + bfd_signed_vma offset;
17842 +};
17843 +
17844 +struct elf_avr32_link_hash_entry
17845 +{
17846 + struct elf_link_hash_entry root;
17847 +
17848 + /* Number of runtime relocations against this symbol. */
17849 + unsigned int possibly_dynamic_relocs;
17850 +
17851 + /* If there are anything but R_AVR32_GOT18 relocations against this
17852 + symbol, it means that someone may be taking the address of the
17853 + function, and we should therefore not create a stub. */
17854 + bfd_boolean no_fn_stub;
17855 +
17856 + /* If there is a R_AVR32_32 relocation in a read-only section
17857 + against this symbol, we could be in trouble. If we're linking a
17858 + shared library or this symbol is defined in one, it means we must
17859 + emit a run-time reloc for it and that's not allowed in read-only
17860 + sections. */
17861 + asection *readonly_reloc_sec;
17862 + bfd_vma readonly_reloc_offset;
17863 +
17864 + /* Record which frag (if any) contains the symbol. This is used
17865 + during relaxation in order to avoid having to update all symbols
17866 + whenever we move something. For local symbols, this information
17867 + is in the local_sym_frag member of struct elf_obj_tdata. */
17868 + struct fragment *sym_frag;
17869 +};
17870 +#define avr32_elf_hash_entry(ent) ((struct elf_avr32_link_hash_entry *)(ent))
17871 +
17872 +struct elf_avr32_link_hash_table
17873 +{
17874 + struct elf_link_hash_table root;
17875 +
17876 + /* Shortcuts to get to dynamic linker sections. */
17877 + asection *sgot;
17878 + asection *srelgot;
17879 + asection *sstub;
17880 +
17881 + /* We use a variation of Pigeonhole Sort to sort the GOT. After the
17882 + initial refcounts have been determined, we initialize
17883 + nr_got_holes to the highest refcount ever seen and allocate an
17884 + array of nr_got_holes entries for got_hole. Each GOT entry is
17885 + then stored in this array at the index given by its refcount.
17886 +
17887 + When a GOT entry has its refcount decremented during relaxation,
17888 + it is moved to a lower index in the got_hole array.
17889 + */
17890 + struct got_entry **got_hole;
17891 + int nr_got_holes;
17892 +
17893 + /* Dynamic relocations to local symbols. Only used when linking a
17894 + shared library and -Bsymbolic is not given. */
17895 + unsigned int local_dynamic_relocs;
17896 +
17897 + bfd_boolean relocations_analyzed;
17898 + bfd_boolean symbols_adjusted;
17899 + bfd_boolean repeat_pass;
17900 + bfd_boolean direct_data_refs;
17901 + unsigned int relax_iteration;
17902 + unsigned int relax_pass;
17903 +};
17904 +#define avr32_elf_hash_table(p) \
17905 + ((struct elf_avr32_link_hash_table *)((p)->hash))
17906 +
17907 +static struct bfd_hash_entry *
17908 +avr32_elf_link_hash_newfunc(struct bfd_hash_entry *entry,
17909 + struct bfd_hash_table *table,
17910 + const char *string)
17911 +{
17912 + struct elf_avr32_link_hash_entry *ret = avr32_elf_hash_entry(entry);
17913 +
17914 + /* Allocate the structure if it hasn't already been allocated by a
17915 + subclass */
17916 + if (ret == NULL)
17917 + ret = (struct elf_avr32_link_hash_entry *)
17918 + bfd_hash_allocate(table, sizeof(struct elf_avr32_link_hash_entry));
17919 +
17920 + if (ret == NULL)
17921 + return NULL;
17922 +
17923 + memset(ret, 0, sizeof(struct elf_avr32_link_hash_entry));
17924 +
17925 + /* Give the superclass a chance */
17926 + ret = (struct elf_avr32_link_hash_entry *)
17927 + _bfd_elf_link_hash_newfunc((struct bfd_hash_entry *)ret, table, string);
17928 +
17929 + return (struct bfd_hash_entry *)ret;
17930 +}
17931 +
17932 +/* Copy data from an indirect symbol to its direct symbol, hiding the
17933 + old indirect symbol. Process additional relocation information.
17934 + Also called for weakdefs, in which case we just let
17935 + _bfd_elf_link_hash_copy_indirect copy the flags for us. */
17936 +
17937 +static void
17938 +avr32_elf_copy_indirect_symbol(struct bfd_link_info *info,
17939 + struct elf_link_hash_entry *dir,
17940 + struct elf_link_hash_entry *ind)
17941 +{
17942 + struct elf_avr32_link_hash_entry *edir, *eind;
17943 +
17944 + _bfd_elf_link_hash_copy_indirect (info, dir, ind);
17945 +
17946 + if (ind->root.type != bfd_link_hash_indirect)
17947 + return;
17948 +
17949 + edir = (struct elf_avr32_link_hash_entry *)dir;
17950 + eind = (struct elf_avr32_link_hash_entry *)ind;
17951 +
17952 + edir->possibly_dynamic_relocs += eind->possibly_dynamic_relocs;
17953 + edir->no_fn_stub = edir->no_fn_stub || eind->no_fn_stub;
17954 +}
17955 +
17956 +static struct bfd_link_hash_table *
17957 +avr32_elf_link_hash_table_create(bfd *abfd)
17958 +{
17959 + struct elf_avr32_link_hash_table *ret;
17960 +
17961 + ret = bfd_zmalloc(sizeof(*ret));
17962 + if (ret == NULL)
17963 + return NULL;
17964 +
17965 + if (! _bfd_elf_link_hash_table_init(&ret->root, abfd,
17966 + avr32_elf_link_hash_newfunc,
17967 + sizeof (struct elf_avr32_link_hash_entry)))
17968 + {
17969 + free(ret);
17970 + return NULL;
17971 + }
17972 +
17973 + /* Prevent the BFD core from creating bogus got_entry pointers */
17974 + ret->root.init_got_refcount.glist = NULL;
17975 + ret->root.init_plt_refcount.glist = NULL;
17976 + ret->root.init_got_offset.glist = NULL;
17977 + ret->root.init_plt_offset.glist = NULL;
17978 +
17979 + return &ret->root.root;
17980 +}
17981 +
17982 +\f
17983 +/* Initial analysis and creation of dynamic sections and symbols */
17984 +
17985 +static asection *
17986 +create_dynamic_section(bfd *dynobj, const char *name, flagword flags,
17987 + unsigned int align_power);
17988 +static struct elf_link_hash_entry *
17989 +create_dynamic_symbol(bfd *dynobj, struct bfd_link_info *info,
17990 + const char *name, asection *sec,
17991 + bfd_vma offset);
17992 +static bfd_boolean
17993 +avr32_elf_create_got_section (bfd *dynobj, struct bfd_link_info *info);
17994 +static bfd_boolean
17995 +avr32_elf_create_dynamic_sections (bfd *dynobj, struct bfd_link_info *info);
17996 +static bfd_boolean
17997 +avr32_check_relocs (bfd *abfd, struct bfd_link_info *info, asection *sec,
17998 + const Elf_Internal_Rela *relocs);
17999 +static bfd_boolean
18000 +avr32_elf_adjust_dynamic_symbol(struct bfd_link_info *info,
18001 + struct elf_link_hash_entry *h);
18002 +
18003 +static asection *
18004 +create_dynamic_section(bfd *dynobj, const char *name, flagword flags,
18005 + unsigned int align_power)
18006 +{
18007 + asection *sec;
18008 +
18009 + sec = bfd_make_section(dynobj, name);
18010 + if (!sec
18011 + || !bfd_set_section_flags(dynobj, sec, flags)
18012 + || !bfd_set_section_alignment(dynobj, sec, align_power))
18013 + return NULL;
18014 +
18015 + return sec;
18016 +}
18017 +
18018 +static struct elf_link_hash_entry *
18019 +create_dynamic_symbol(bfd *dynobj, struct bfd_link_info *info,
18020 + const char *name, asection *sec,
18021 + bfd_vma offset)
18022 +{
18023 + struct bfd_link_hash_entry *bh = NULL;
18024 + struct elf_link_hash_entry *h;
18025 + const struct elf_backend_data *bed = get_elf_backend_data (dynobj);
18026 +
18027 + if (!(_bfd_generic_link_add_one_symbol
18028 + (info, dynobj, name, BSF_GLOBAL, sec, offset, NULL, FALSE,
18029 + bed->collect, &bh)))
18030 + return NULL;
18031 +
18032 + h = (struct elf_link_hash_entry *)bh;
18033 + h->def_regular = 1;
18034 + h->type = STT_OBJECT;
18035 + h->other = STV_HIDDEN;
18036 +
18037 + return h;
18038 +}
18039 +
18040 +static bfd_boolean
18041 +avr32_elf_create_got_section (bfd *dynobj, struct bfd_link_info *info)
18042 +{
18043 + struct elf_avr32_link_hash_table *htab;
18044 + flagword flags;
18045 + const struct elf_backend_data *bed = get_elf_backend_data (dynobj);
18046 +
18047 + htab = avr32_elf_hash_table(info);
18048 + flags = bed->dynamic_sec_flags;
18049 +
18050 + if (htab->sgot)
18051 + return TRUE;
18052 +
18053 + htab->sgot = create_dynamic_section(dynobj, ".got", flags, 2);
18054 + if (!htab->srelgot)
18055 + htab->srelgot = create_dynamic_section(dynobj, ".rela.got",
18056 + flags | SEC_READONLY, 2);
18057 +
18058 + if (!htab->sgot || !htab->srelgot)
18059 + return FALSE;
18060 +
18061 + htab->root.hgot = create_dynamic_symbol(dynobj, info, "_GLOBAL_OFFSET_TABLE_",
18062 + htab->sgot, 0);
18063 + if (!htab->root.hgot)
18064 + return FALSE;
18065 +
18066 + /* Make room for the GOT header */
18067 + htab->sgot->size += bed->got_header_size;
18068 +
18069 + return TRUE;
18070 +}
18071 +
18072 +/* (1) Create all dynamic (i.e. linker generated) sections that we may
18073 + need during the link */
18074 +
18075 +static bfd_boolean
18076 +avr32_elf_create_dynamic_sections (bfd *dynobj, struct bfd_link_info *info)
18077 +{
18078 + struct elf_avr32_link_hash_table *htab;
18079 + flagword flags;
18080 + const struct elf_backend_data *bed = get_elf_backend_data (dynobj);
18081 +
18082 + pr_debug("(1) create dynamic sections\n");
18083 +
18084 + htab = avr32_elf_hash_table(info);
18085 + flags = bed->dynamic_sec_flags;
18086 +
18087 + if (!avr32_elf_create_got_section (dynobj, info))
18088 + return FALSE;
18089 +
18090 + if (!htab->sstub)
18091 + htab->sstub = create_dynamic_section(dynobj, ".stub",
18092 + flags | SEC_READONLY | SEC_CODE, 2);
18093 +
18094 + if (!htab->sstub)
18095 + return FALSE;
18096 +
18097 + return TRUE;
18098 +}
18099 +
18100 +/* (2) Go through all the relocs and count any potential GOT- or
18101 + PLT-references to each symbol */
18102 +
18103 +static bfd_boolean
18104 +avr32_check_relocs (bfd *abfd, struct bfd_link_info *info, asection *sec,
18105 + const Elf_Internal_Rela *relocs)
18106 +{
18107 + Elf_Internal_Shdr *symtab_hdr;
18108 + struct elf_avr32_link_hash_table *htab;
18109 + struct elf_link_hash_entry **sym_hashes;
18110 + const Elf_Internal_Rela *rel, *rel_end;
18111 + struct got_entry **local_got_ents;
18112 + struct got_entry *got;
18113 + const struct elf_backend_data *bed = get_elf_backend_data (abfd);
18114 + asection *sgot;
18115 + bfd *dynobj;
18116 +
18117 + pr_debug("(2) check relocs for %s:<%s> (size 0x%lx)\n",
18118 + abfd->filename, sec->name, sec->size);
18119 +
18120 + if (info->relocatable)
18121 + return TRUE;
18122 +
18123 + dynobj = elf_hash_table(info)->dynobj;
18124 + symtab_hdr = &elf_tdata(abfd)->symtab_hdr;
18125 + sym_hashes = elf_sym_hashes(abfd);
18126 + htab = avr32_elf_hash_table(info);
18127 + local_got_ents = elf_local_got_ents(abfd);
18128 + sgot = htab->sgot;
18129 +
18130 + rel_end = relocs + sec->reloc_count;
18131 + for (rel = relocs; rel < rel_end; rel++)
18132 + {
18133 + unsigned long r_symndx, r_type;
18134 + struct elf_avr32_link_hash_entry *h;
18135 +
18136 + r_symndx = ELF32_R_SYM(rel->r_info);
18137 + r_type = ELF32_R_TYPE(rel->r_info);
18138 +
18139 + /* Local symbols use local_got_ents, while others store the same
18140 + information in the hash entry */
18141 + if (r_symndx < symtab_hdr->sh_info)
18142 + {
18143 + pr_debug(" (2a) processing local symbol %lu\n", r_symndx);
18144 + h = NULL;
18145 + }
18146 + else
18147 + {
18148 + h = (struct elf_avr32_link_hash_entry *)
18149 + sym_hashes[r_symndx - symtab_hdr->sh_info];
18150 + while (h->root.type == bfd_link_hash_indirect
18151 + || h->root.type == bfd_link_hash_warning)
18152 + h = (struct elf_avr32_link_hash_entry *)h->root.root.u.i.link;
18153 + pr_debug(" (2a) processing symbol %s\n", h->root.root.root.string);
18154 + }
18155 +
18156 + /* Some relocs require special sections to be created. */
18157 + switch (r_type)
18158 + {
18159 + case R_AVR32_GOT32:
18160 + case R_AVR32_GOT16:
18161 + case R_AVR32_GOT8:
18162 + case R_AVR32_GOT21S:
18163 + case R_AVR32_GOT18SW:
18164 + case R_AVR32_GOT16S:
18165 + case R_AVR32_GOT7UW:
18166 + case R_AVR32_LDA_GOT:
18167 + case R_AVR32_GOTCALL:
18168 + if (rel->r_addend)
18169 + {
18170 + if (info->callbacks->reloc_dangerous
18171 + (info, _("Non-zero addend on GOT-relative relocation"),
18172 + abfd, sec, rel->r_offset) == FALSE)
18173 + return FALSE;
18174 + }
18175 + /* fall through */
18176 + case R_AVR32_GOTPC:
18177 + if (dynobj == NULL)
18178 + elf_hash_table(info)->dynobj = dynobj = abfd;
18179 + if (sgot == NULL && !avr32_elf_create_got_section(dynobj, info))
18180 + return FALSE;
18181 + break;
18182 + case R_AVR32_32:
18183 + /* We may need to create .rela.dyn later on. */
18184 + if (dynobj == NULL
18185 + && (info->shared || h != NULL)
18186 + && (sec->flags & SEC_ALLOC))
18187 + elf_hash_table(info)->dynobj = dynobj = abfd;
18188 + break;
18189 + }
18190 +
18191 + if (h != NULL && r_type != R_AVR32_GOT18SW)
18192 + h->no_fn_stub = TRUE;
18193 +
18194 + switch (r_type)
18195 + {
18196 + case R_AVR32_GOT32:
18197 + case R_AVR32_GOT16:
18198 + case R_AVR32_GOT8:
18199 + case R_AVR32_GOT21S:
18200 + case R_AVR32_GOT18SW:
18201 + case R_AVR32_GOT16S:
18202 + case R_AVR32_GOT7UW:
18203 + case R_AVR32_LDA_GOT:
18204 + case R_AVR32_GOTCALL:
18205 + if (h != NULL)
18206 + {
18207 + got = h->root.got.glist;
18208 + if (!got)
18209 + {
18210 + got = bfd_zalloc(abfd, sizeof(struct got_entry));
18211 + if (!got)
18212 + return FALSE;
18213 + h->root.got.glist = got;
18214 + }
18215 + }
18216 + else
18217 + {
18218 + if (!local_got_ents)
18219 + {
18220 + bfd_size_type size;
18221 + bfd_size_type i;
18222 + struct got_entry *tmp_entry;
18223 +
18224 + size = symtab_hdr->sh_info;
18225 + size *= sizeof(struct got_entry *) + sizeof(struct got_entry);
18226 + local_got_ents = bfd_zalloc(abfd, size);
18227 + if (!local_got_ents)
18228 + return FALSE;
18229 +
18230 + elf_local_got_ents(abfd) = local_got_ents;
18231 +
18232 + tmp_entry = (struct got_entry *)(local_got_ents
18233 + + symtab_hdr->sh_info);
18234 + for (i = 0; i < symtab_hdr->sh_info; i++)
18235 + local_got_ents[i] = &tmp_entry[i];
18236 + }
18237 +
18238 + got = local_got_ents[r_symndx];
18239 + }
18240 +
18241 + got->refcount++;
18242 + if (got->refcount > htab->nr_got_holes)
18243 + htab->nr_got_holes = got->refcount;
18244 + break;
18245 +
18246 + case R_AVR32_32:
18247 + if ((info->shared || h != NULL)
18248 + && (sec->flags & SEC_ALLOC))
18249 + {
18250 + if (htab->srelgot == NULL)
18251 + {
18252 + htab->srelgot = create_dynamic_section(dynobj, ".rela.got",
18253 + bed->dynamic_sec_flags
18254 + | SEC_READONLY, 2);
18255 + if (htab->srelgot == NULL)
18256 + return FALSE;
18257 + }
18258 +
18259 + if (sec->flags & SEC_READONLY
18260 + && !h->readonly_reloc_sec)
18261 + {
18262 + h->readonly_reloc_sec = sec;
18263 + h->readonly_reloc_offset = rel->r_offset;
18264 + }
18265 +
18266 + if (h != NULL)
18267 + {
18268 + pr_debug("Non-GOT reference to symbol %s\n",
18269 + h->root.root.root.string);
18270 + h->possibly_dynamic_relocs++;
18271 + }
18272 + else
18273 + {
18274 + pr_debug("Non-GOT reference to local symbol %lu\n",
18275 + r_symndx);
18276 + htab->local_dynamic_relocs++;
18277 + }
18278 + }
18279 +
18280 + break;
18281 +
18282 + /* TODO: GNU_VTINHERIT and GNU_VTENTRY */
18283 + }
18284 + }
18285 +
18286 + return TRUE;
18287 +}
18288 +
18289 +/* (3) Adjust a symbol defined by a dynamic object and referenced by a
18290 + regular object. The current definition is in some section of the
18291 + dynamic object, but we're not including those sections. We have to
18292 + change the definition to something the rest of the link can
18293 + understand. */
18294 +
18295 +static bfd_boolean
18296 +avr32_elf_adjust_dynamic_symbol(struct bfd_link_info *info,
18297 + struct elf_link_hash_entry *h)
18298 +{
18299 + struct elf_avr32_link_hash_table *htab;
18300 + struct elf_avr32_link_hash_entry *havr;
18301 + bfd *dynobj;
18302 +
18303 + pr_debug("(3) adjust dynamic symbol %s\n", h->root.root.string);
18304 +
18305 + htab = avr32_elf_hash_table(info);
18306 + havr = (struct elf_avr32_link_hash_entry *)h;
18307 + dynobj = elf_hash_table(info)->dynobj;
18308 +
18309 + /* Make sure we know what is going on here. */
18310 + BFD_ASSERT (dynobj != NULL
18311 + && (h->u.weakdef != NULL
18312 + || (h->def_dynamic
18313 + && h->ref_regular
18314 + && !h->def_regular)));
18315 +
18316 + /* We don't want dynamic relocations in read-only sections. */
18317 + if (havr->readonly_reloc_sec)
18318 + {
18319 + if (info->callbacks->reloc_dangerous
18320 + (info, _("dynamic relocation in read-only section"),
18321 + havr->readonly_reloc_sec->owner, havr->readonly_reloc_sec,
18322 + havr->readonly_reloc_offset) == FALSE)
18323 + return FALSE;
18324 + }
18325 +
18326 + /* If this is a function, create a stub if possible and set the
18327 + symbol to the stub location. */
18328 + if (0 && !havr->no_fn_stub)
18329 + {
18330 + if (!h->def_regular)
18331 + {
18332 + asection *s = htab->sstub;
18333 +
18334 + BFD_ASSERT(s != NULL);
18335 +
18336 + h->root.u.def.section = s;
18337 + h->root.u.def.value = s->size;
18338 + h->plt.offset = s->size;
18339 + s->size += AVR32_FUNCTION_STUB_SIZE;
18340 +
18341 + return TRUE;
18342 + }
18343 + }
18344 + else if (h->type == STT_FUNC)
18345 + {
18346 + /* This will set the entry for this symbol in the GOT to 0, and
18347 + the dynamic linker will take care of this. */
18348 + h->root.u.def.value = 0;
18349 + return TRUE;
18350 + }
18351 +
18352 + /* If this is a weak symbol, and there is a real definition, the
18353 + processor independent code will have arranged for us to see the
18354 + real definition first, and we can just use the same value. */
18355 + if (h->u.weakdef != NULL)
18356 + {
18357 + BFD_ASSERT(h->u.weakdef->root.type == bfd_link_hash_defined
18358 + || h->u.weakdef->root.type == bfd_link_hash_defweak);
18359 + h->root.u.def.section = h->u.weakdef->root.u.def.section;
18360 + h->root.u.def.value = h->u.weakdef->root.u.def.value;
18361 + return TRUE;
18362 + }
18363 +
18364 + /* This is a reference to a symbol defined by a dynamic object which
18365 + is not a function. */
18366 +
18367 + return TRUE;
18368 +}
18369 +
18370 +\f
18371 +/* Garbage-collection of unused sections */
18372 +
18373 +static asection *
18374 +avr32_elf_gc_mark_hook(asection *sec,
18375 + struct bfd_link_info *info ATTRIBUTE_UNUSED,
18376 + Elf_Internal_Rela *rel,
18377 + struct elf_link_hash_entry *h,
18378 + Elf_Internal_Sym *sym)
18379 +{
18380 + if (h)
18381 + {
18382 + switch (ELF32_R_TYPE(rel->r_info))
18383 + {
18384 + /* TODO: VTINHERIT/VTENTRY */
18385 + default:
18386 + switch (h->root.type)
18387 + {
18388 + case bfd_link_hash_defined:
18389 + case bfd_link_hash_defweak:
18390 + return h->root.u.def.section;
18391 +
18392 + case bfd_link_hash_common:
18393 + return h->root.u.c.p->section;
18394 +
18395 + default:
18396 + break;
18397 + }
18398 + }
18399 + }
18400 + else
18401 + return bfd_section_from_elf_index(sec->owner, sym->st_shndx);
18402 +
18403 + return NULL;
18404 +}
18405 +
18406 +/* Update the GOT entry reference counts for the section being removed. */
18407 +static bfd_boolean
18408 +avr32_elf_gc_sweep_hook(bfd *abfd,
18409 + struct bfd_link_info *info ATTRIBUTE_UNUSED,
18410 + asection *sec,
18411 + const Elf_Internal_Rela *relocs)
18412 +{
18413 + Elf_Internal_Shdr *symtab_hdr;
18414 + struct elf_avr32_link_hash_entry **sym_hashes;
18415 + struct got_entry **local_got_ents;
18416 + const Elf_Internal_Rela *rel, *relend;
18417 +
18418 + if (!(sec->flags & SEC_ALLOC))
18419 + return TRUE;
18420 +
18421 + symtab_hdr = &elf_tdata(abfd)->symtab_hdr;
18422 + sym_hashes = (struct elf_avr32_link_hash_entry **)elf_sym_hashes(abfd);
18423 + local_got_ents = elf_local_got_ents(abfd);
18424 +
18425 + relend = relocs + sec->reloc_count;
18426 + for (rel = relocs; rel < relend; rel++)
18427 + {
18428 + unsigned long r_symndx;
18429 + unsigned int r_type;
18430 + struct elf_avr32_link_hash_entry *h = NULL;
18431 +
18432 + r_symndx = ELF32_R_SYM(rel->r_info);
18433 + if (r_symndx >= symtab_hdr->sh_info)
18434 + {
18435 + h = sym_hashes[r_symndx - symtab_hdr->sh_info];
18436 + while (h->root.root.type == bfd_link_hash_indirect
18437 + || h->root.root.type == bfd_link_hash_warning)
18438 + h = (struct elf_avr32_link_hash_entry *)h->root.root.u.i.link;
18439 + }
18440 +
18441 + r_type = ELF32_R_TYPE(rel->r_info);
18442 +
18443 + switch (r_type)
18444 + {
18445 + case R_AVR32_GOT32:
18446 + case R_AVR32_GOT16:
18447 + case R_AVR32_GOT8:
18448 + case R_AVR32_GOT21S:
18449 + case R_AVR32_GOT18SW:
18450 + case R_AVR32_GOT16S:
18451 + case R_AVR32_GOT7UW:
18452 + case R_AVR32_LDA_GOT:
18453 + case R_AVR32_GOTCALL:
18454 + if (h)
18455 + h->root.got.glist->refcount--;
18456 + else
18457 + local_got_ents[r_symndx]->refcount--;
18458 + break;
18459 +
18460 + case R_AVR32_32:
18461 + if (info->shared || h)
18462 + {
18463 + if (h)
18464 + h->possibly_dynamic_relocs--;
18465 + else
18466 + avr32_elf_hash_table(info)->local_dynamic_relocs--;
18467 + }
18468 +
18469 + default:
18470 + break;
18471 + }
18472 + }
18473 +
18474 + return TRUE;
18475 +}
18476 +\f
18477 +/* Sizing and refcounting of dynamic sections */
18478 +
18479 +static void
18480 +insert_got_entry(struct elf_avr32_link_hash_table *htab, struct got_entry *got);
18481 +static void
18482 +unref_got_entry(struct elf_avr32_link_hash_table *htab, struct got_entry *got);
18483 +static void
18484 +ref_got_entry(struct elf_avr32_link_hash_table *htab, struct got_entry *got);
18485 +static bfd_boolean
18486 +assign_got_offsets(struct elf_avr32_link_hash_table *htab);
18487 +static bfd_boolean
18488 +allocate_dynrelocs(struct elf_link_hash_entry *h, void *_info);
18489 +static bfd_boolean
18490 +avr32_elf_size_dynamic_sections (bfd *output_bfd,
18491 + struct bfd_link_info *info);
18492 +
18493 +static void
18494 +insert_got_entry(struct elf_avr32_link_hash_table *htab, struct got_entry *got)
18495 +{
18496 + /* TODO: Support got_refcount > htab->nr_got_holes by using a
18497 + different sort algorithm for those. */
18498 + BFD_ASSERT(got->refcount <= htab->nr_got_holes);
18499 +
18500 + got->pprev = &htab->got_hole[got->refcount];
18501 + got->next = htab->got_hole[got->refcount];
18502 + if (got->next)
18503 + got->next->pprev = &got->next;
18504 +
18505 + htab->got_hole[got->refcount] = got;
18506 +}
18507 +
18508 +/* Decrement the refcount of a GOT entry and update its position in
18509 + the pigeonhole array. */
18510 +static void
18511 +unref_got_entry(struct elf_avr32_link_hash_table *htab, struct got_entry *got)
18512 +{
18513 + BFD_ASSERT(got->refcount <= htab->nr_got_holes);
18514 + BFD_ASSERT(got->refcount > 0);
18515 +
18516 + if (got->next)
18517 + got->next->pprev = got->pprev;
18518 +
18519 + *(got->pprev) = got->next;
18520 + got->refcount--;
18521 + insert_got_entry(htab, got);
18522 +}
18523 +
18524 +static void
18525 +ref_got_entry(struct elf_avr32_link_hash_table *htab, struct got_entry *got)
18526 +{
18527 + if (got->next)
18528 + got->next->pprev = got->pprev;
18529 +
18530 + *(got->pprev) = got->next;
18531 + got->refcount++;
18532 + insert_got_entry(htab, got);
18533 +
18534 + BFD_ASSERT(got->refcount > 0);
18535 + BFD_ASSERT(got->refcount <= htab->nr_got_holes);
18536 +}
18537 +
18538 +/* Assign offsets to all GOT entries we intend to keep. The entries
18539 + that are referenced most often are placed at low offsets so that we
18540 + can use compact instructions as much as possible.
18541 +
18542 + Returns TRUE if any offsets or the total size of the GOT changed. */
18543 +
18544 +static bfd_boolean
18545 +assign_got_offsets(struct elf_avr32_link_hash_table *htab)
18546 +{
18547 + struct got_entry *got;
18548 + bfd_size_type got_size = 0;
18549 + bfd_boolean changed = FALSE;
18550 + bfd_signed_vma offset;
18551 + int i;
18552 +
18553 + /* The GOT header provides the address of the DYNAMIC segment, so
18554 + we need that even if the GOT is otherwise empty. */
18555 + if (htab->root.dynamic_sections_created)
18556 + got_size = AVR32_GOT_HEADER_SIZE;
18557 +
18558 + for (i = htab->nr_got_holes; i > 0; i--)
18559 + {
18560 + got = htab->got_hole[i];
18561 + while (got)
18562 + {
18563 + if (got->refcount > 0)
18564 + {
18565 + offset = got_size;
18566 + if (got->offset != offset)
18567 + {
18568 + RDBG("GOT offset changed: %ld -> %ld\n",
18569 + got->offset, offset);
18570 + changed = TRUE;
18571 + }
18572 + got->offset = offset;
18573 + got_size += 4;
18574 + }
18575 + got = got->next;
18576 + }
18577 + }
18578 +
18579 + if (htab->sgot->size != got_size)
18580 + {
18581 + RDBG("GOT size changed: %lu -> %lu\n", htab->sgot->size,
18582 + got_size);
18583 + changed = TRUE;
18584 + }
18585 + htab->sgot->size = got_size;
18586 +
18587 + RDBG("assign_got_offsets: total size %lu (%s)\n",
18588 + got_size, changed ? "changed" : "no change");
18589 +
18590 + return changed;
18591 +}
18592 +
18593 +static bfd_boolean
18594 +allocate_dynrelocs(struct elf_link_hash_entry *h, void *_info)
18595 +{
18596 + struct bfd_link_info *info = _info;
18597 + struct elf_avr32_link_hash_table *htab;
18598 + struct elf_avr32_link_hash_entry *havr;
18599 + struct got_entry *got;
18600 +
18601 + pr_debug(" (4b) allocate_dynrelocs: %s\n", h->root.root.string);
18602 +
18603 + if (h->root.type == bfd_link_hash_indirect)
18604 + return TRUE;
18605 +
18606 + if (h->root.type == bfd_link_hash_warning)
18607 + /* When warning symbols are created, they **replace** the "real"
18608 + entry in the hash table, thus we never get to see the real
18609 + symbol in a hash traversal. So look at it now. */
18610 + h = (struct elf_link_hash_entry *) h->root.u.i.link;
18611 +
18612 + htab = avr32_elf_hash_table(info);
18613 + havr = (struct elf_avr32_link_hash_entry *)h;
18614 +
18615 + got = h->got.glist;
18616 +
18617 + /* If got is NULL, the symbol is never referenced through the GOT */
18618 + if (got && got->refcount > 0)
18619 + {
18620 + insert_got_entry(htab, got);
18621 +
18622 + /* Shared libraries need relocs for all GOT entries unless the
18623 + symbol is forced local or -Bsymbolic is used. Others need
18624 + relocs for everything that is not guaranteed to be defined in
18625 + a regular object. */
18626 + if ((info->shared
18627 + && !info->symbolic
18628 + && h->dynindx != -1)
18629 + || (htab->root.dynamic_sections_created
18630 + && h->def_dynamic
18631 + && !h->def_regular))
18632 + htab->srelgot->size += sizeof(Elf32_External_Rela);
18633 + }
18634 +
18635 + if (havr->possibly_dynamic_relocs
18636 + && (info->shared
18637 + || (elf_hash_table(info)->dynamic_sections_created
18638 + && h->def_dynamic
18639 + && !h->def_regular)))
18640 + {
18641 + pr_debug("Allocating %d dynamic reloc against symbol %s...\n",
18642 + havr->possibly_dynamic_relocs, h->root.root.string);
18643 + htab->srelgot->size += (havr->possibly_dynamic_relocs
18644 + * sizeof(Elf32_External_Rela));
18645 + }
18646 +
18647 + return TRUE;
18648 +}
18649 +
18650 +/* (4) Calculate the sizes of the linker-generated sections and
18651 + allocate memory for them. */
18652 +
18653 +static bfd_boolean
18654 +avr32_elf_size_dynamic_sections (bfd *output_bfd,
18655 + struct bfd_link_info *info)
18656 +{
18657 + struct elf_avr32_link_hash_table *htab;
18658 + bfd *dynobj;
18659 + asection *s;
18660 + bfd *ibfd;
18661 + bfd_boolean relocs;
18662 +
18663 + pr_debug("(4) size dynamic sections\n");
18664 +
18665 + htab = avr32_elf_hash_table(info);
18666 + dynobj = htab->root.dynobj;
18667 + BFD_ASSERT(dynobj != NULL);
18668 +
18669 + if (htab->root.dynamic_sections_created)
18670 + {
18671 + /* Initialize the contents of the .interp section to the name of
18672 + the dynamic loader */
18673 + if (info->executable)
18674 + {
18675 + s = bfd_get_section_by_name(dynobj, ".interp");
18676 + BFD_ASSERT(s != NULL);
18677 + s->size = sizeof(ELF_DYNAMIC_INTERPRETER);
18678 + s->contents = (unsigned char *)ELF_DYNAMIC_INTERPRETER;
18679 + }
18680 + }
18681 +
18682 + if (htab->nr_got_holes > 0)
18683 + {
18684 + /* Allocate holes for the pigeonhole sort algorithm */
18685 + pr_debug("Highest GOT refcount: %d\n", htab->nr_got_holes);
18686 + if (htab->nr_got_holes >= MAX_NR_GOT_HOLES)
18687 + {
18688 + /* TODO: Do something clever (different sorting algorithm) */
18689 + _bfd_error_handler(_("Highest refcount %d too high (max %d)\n"),
18690 + htab->nr_got_holes, MAX_NR_GOT_HOLES);
18691 + bfd_set_error(bfd_error_no_memory);
18692 + return FALSE;
18693 + }
18694 + htab->got_hole = bfd_zalloc(output_bfd,
18695 + sizeof(struct got_entry *)
18696 + * (htab->nr_got_holes + 1));
18697 + if (!htab->got_hole)
18698 + return FALSE;
18699 +
18700 + /* Set up .got offsets for local syms. */
18701 + for (ibfd = info->input_bfds; ibfd != NULL; ibfd = ibfd->link_next)
18702 + {
18703 + struct got_entry **local_got;
18704 + struct got_entry **end_local_got;
18705 + Elf_Internal_Shdr *symtab_hdr;
18706 + bfd_size_type locsymcount;
18707 +
18708 + pr_debug(" (4a) processing file %s...\n", ibfd->filename);
18709 +
18710 + BFD_ASSERT(bfd_get_flavour(ibfd) == bfd_target_elf_flavour);
18711 +
18712 + local_got = elf_local_got_ents(ibfd);
18713 + if (!local_got)
18714 + continue;
18715 +
18716 + symtab_hdr = &elf_tdata(ibfd)->symtab_hdr;
18717 + locsymcount = symtab_hdr->sh_info;
18718 + end_local_got = local_got + locsymcount;
18719 +
18720 + for (; local_got < end_local_got; ++local_got)
18721 + insert_got_entry(htab, *local_got);
18722 + }
18723 + }
18724 +
18725 + /* Allocate global sym .got entries and space for global sym
18726 + dynamic relocs */
18727 + elf_link_hash_traverse(&htab->root, allocate_dynrelocs, info);
18728 +
18729 + /* Now that we have sorted the GOT entries, we are ready to
18730 + assign offsets and determine the initial size of the GOT. */
18731 + if (htab->sgot)
18732 + assign_got_offsets(htab);
18733 +
18734 + /* Allocate space for local sym dynamic relocs */
18735 + BFD_ASSERT(htab->local_dynamic_relocs == 0 || info->shared);
18736 + if (htab->local_dynamic_relocs)
18737 + htab->srelgot->size += (htab->local_dynamic_relocs
18738 + * sizeof(Elf32_External_Rela));
18739 +
18740 + /* We now have determined the sizes of the various dynamic
18741 + sections. Allocate memory for them. */
18742 + relocs = FALSE;
18743 + for (s = dynobj->sections; s; s = s->next)
18744 + {
18745 + if ((s->flags & SEC_LINKER_CREATED) == 0)
18746 + continue;
18747 +
18748 + if (s == htab->sgot
18749 + || s == htab->sstub)
18750 + {
18751 + /* Strip this section if we don't need it */
18752 + }
18753 + else if (strncmp (bfd_get_section_name(dynobj, s), ".rela", 5) == 0)
18754 + {
18755 + if (s->size != 0)
18756 + relocs = TRUE;
18757 +
18758 + s->reloc_count = 0;
18759 + }
18760 + else
18761 + {
18762 + /* It's not one of our sections */
18763 + continue;
18764 + }
18765 +
18766 + if (s->size == 0)
18767 + {
18768 + /* Strip unneeded sections */
18769 + pr_debug("Stripping section %s from output...\n", s->name);
18770 + /* deleted function in 2.17
18771 + _bfd_strip_section_from_output(info, s);
18772 + */
18773 + continue;
18774 + }
18775 +
18776 + s->contents = bfd_zalloc(dynobj, s->size);
18777 + if (s->contents == NULL)
18778 + return FALSE;
18779 + }
18780 +
18781 + if (htab->root.dynamic_sections_created)
18782 + {
18783 + /* Add some entries to the .dynamic section. We fill in the
18784 + values later, in sh_elf_finish_dynamic_sections, but we
18785 + must add the entries now so that we get the correct size for
18786 + the .dynamic section. The DT_DEBUG entry is filled in by the
18787 + dynamic linker and used by the debugger. */
18788 +#define add_dynamic_entry(TAG, VAL) _bfd_elf_add_dynamic_entry(info, TAG, VAL)
18789 +
18790 + if (!add_dynamic_entry(DT_PLTGOT, 0))
18791 + return FALSE;
18792 + if (!add_dynamic_entry(DT_AVR32_GOTSZ, 0))
18793 + return FALSE;
18794 +
18795 + if (info->executable)
18796 + {
18797 + if (!add_dynamic_entry(DT_DEBUG, 0))
18798 + return FALSE;
18799 + }
18800 + if (relocs)
18801 + {
18802 + if (!add_dynamic_entry(DT_RELA, 0)
18803 + || !add_dynamic_entry(DT_RELASZ, 0)
18804 + || !add_dynamic_entry(DT_RELAENT,
18805 + sizeof(Elf32_External_Rela)))
18806 + return FALSE;
18807 + }
18808 + }
18809 +#undef add_dynamic_entry
18810 +
18811 + return TRUE;
18812 +}
18813 +
18814 +\f
18815 +/* Access to internal relocations, section contents and symbols.
18816 + (stolen from the xtensa port) */
18817 +
18818 +static Elf_Internal_Rela *
18819 +retrieve_internal_relocs (bfd *abfd, asection *sec, bfd_boolean keep_memory);
18820 +static void
18821 +pin_internal_relocs (asection *sec, Elf_Internal_Rela *internal_relocs);
18822 +static void
18823 +release_internal_relocs (asection *sec, Elf_Internal_Rela *internal_relocs);
18824 +static bfd_byte *
18825 +retrieve_contents (bfd *abfd, asection *sec, bfd_boolean keep_memory);
18826 +/*
18827 +static void
18828 +pin_contents (asection *sec, bfd_byte *contents);
18829 +*/
18830 +static void
18831 +release_contents (asection *sec, bfd_byte *contents);
18832 +static Elf_Internal_Sym *
18833 +retrieve_local_syms (bfd *input_bfd, bfd_boolean keep_memory);
18834 +/*
18835 +static void
18836 +pin_local_syms (bfd *input_bfd, Elf_Internal_Sym *isymbuf);
18837 +*/
18838 +static void
18839 +release_local_syms (bfd *input_bfd, Elf_Internal_Sym *isymbuf);
18840 +
18841 +/* During relaxation, we need to modify relocations, section contents,
18842 + and symbol definitions, and we need to keep the original values from
18843 + being reloaded from the input files, i.e., we need to "pin" the
18844 + modified values in memory. We also want to continue to observe the
18845 + setting of the "keep-memory" flag. The following functions wrap the
18846 + standard BFD functions to take care of this for us. */
18847 +
18848 +static Elf_Internal_Rela *
18849 +retrieve_internal_relocs (bfd *abfd, asection *sec, bfd_boolean keep_memory)
18850 +{
18851 + /* _bfd_elf_link_read_relocs knows about caching, so no need for us
18852 + to be clever here. */
18853 + return _bfd_elf_link_read_relocs(abfd, sec, NULL, NULL, keep_memory);
18854 +}
18855 +
18856 +static void
18857 +pin_internal_relocs (asection *sec, Elf_Internal_Rela *internal_relocs)
18858 +{
18859 + elf_section_data (sec)->relocs = internal_relocs;
18860 +}
18861 +
18862 +static void
18863 +release_internal_relocs (asection *sec, Elf_Internal_Rela *internal_relocs)
18864 +{
18865 + if (internal_relocs
18866 + && elf_section_data (sec)->relocs != internal_relocs)
18867 + free (internal_relocs);
18868 +}
18869 +
18870 +static bfd_byte *
18871 +retrieve_contents (bfd *abfd, asection *sec, bfd_boolean keep_memory)
18872 +{
18873 + bfd_byte *contents;
18874 + bfd_size_type sec_size;
18875 +
18876 + sec_size = bfd_get_section_limit (abfd, sec);
18877 + contents = elf_section_data (sec)->this_hdr.contents;
18878 +
18879 + if (contents == NULL && sec_size != 0)
18880 + {
18881 + if (!bfd_malloc_and_get_section (abfd, sec, &contents))
18882 + {
18883 + if (contents)
18884 + free (contents);
18885 + return NULL;
18886 + }
18887 + if (keep_memory)
18888 + elf_section_data (sec)->this_hdr.contents = contents;
18889 + }
18890 + return contents;
18891 +}
18892 +
18893 +/*
18894 +static void
18895 +pin_contents (asection *sec, bfd_byte *contents)
18896 +{
18897 + elf_section_data (sec)->this_hdr.contents = contents;
18898 +}
18899 +*/
18900 +static void
18901 +release_contents (asection *sec, bfd_byte *contents)
18902 +{
18903 + if (contents && elf_section_data (sec)->this_hdr.contents != contents)
18904 + free (contents);
18905 +}
18906 +
18907 +static Elf_Internal_Sym *
18908 +retrieve_local_syms (bfd *input_bfd, bfd_boolean keep_memory)
18909 +{
18910 + Elf_Internal_Shdr *symtab_hdr;
18911 + Elf_Internal_Sym *isymbuf;
18912 + size_t locsymcount;
18913 +
18914 + symtab_hdr = &elf_tdata (input_bfd)->symtab_hdr;
18915 + locsymcount = symtab_hdr->sh_info;
18916 +
18917 + isymbuf = (Elf_Internal_Sym *) symtab_hdr->contents;
18918 + if (isymbuf == NULL && locsymcount != 0)
18919 + {
18920 + isymbuf = bfd_elf_get_elf_syms (input_bfd, symtab_hdr, locsymcount, 0,
18921 + NULL, NULL, NULL);
18922 + if (isymbuf && keep_memory)
18923 + symtab_hdr->contents = (unsigned char *) isymbuf;
18924 + }
18925 +
18926 + return isymbuf;
18927 +}
18928 +
18929 +/*
18930 +static void
18931 +pin_local_syms (bfd *input_bfd, Elf_Internal_Sym *isymbuf)
18932 +{
18933 + elf_tdata (input_bfd)->symtab_hdr.contents = (unsigned char *)isymbuf;
18934 +}
18935 +
18936 +*/
18937 +static void
18938 +release_local_syms (bfd *input_bfd, Elf_Internal_Sym *isymbuf)
18939 +{
18940 + if (isymbuf && (elf_tdata (input_bfd)->symtab_hdr.contents
18941 + != (unsigned char *)isymbuf))
18942 + free (isymbuf);
18943 +}
18944 +
18945 +\f/* Data structures used during relaxation. */
18946 +
18947 +enum relax_state_id {
18948 + RS_ERROR = -1,
18949 + RS_NONE = 0,
18950 + RS_ALIGN,
18951 + RS_CPENT,
18952 + RS_PIC_CALL,
18953 + RS_PIC_MCALL,
18954 + RS_PIC_RCALL2,
18955 + RS_PIC_RCALL1,
18956 + RS_PIC_LDA,
18957 + RS_PIC_LDW4,
18958 + RS_PIC_LDW3,
18959 + RS_PIC_SUB5,
18960 + RS_NOPIC_MCALL,
18961 + RS_NOPIC_RCALL2,
18962 + RS_NOPIC_RCALL1,
18963 + RS_NOPIC_LDW4,
18964 + RS_NOPIC_LDDPC,
18965 + RS_NOPIC_SUB5,
18966 + RS_NOPIC_MOV2,
18967 + RS_NOPIC_MOV1,
18968 + RS_RCALL2,
18969 + RS_RCALL1,
18970 + RS_BRC2,
18971 + RS_BRC1,
18972 + RS_BRAL,
18973 + RS_RJMP,
18974 + RS_MAX,
18975 +};
18976 +
18977 +enum reference_type {
18978 + REF_ABSOLUTE,
18979 + REF_PCREL,
18980 + REF_CPOOL,
18981 + REF_GOT,
18982 +};
18983 +
18984 +struct relax_state
18985 +{
18986 + const char *name;
18987 + enum relax_state_id id;
18988 + enum relax_state_id direct;
18989 + enum relax_state_id next;
18990 + enum relax_state_id prev;
18991 +
18992 + enum reference_type reftype;
18993 +
18994 + unsigned int r_type;
18995 +
18996 + bfd_vma opcode;
18997 + bfd_vma opcode_mask;
18998 +
18999 + bfd_signed_vma range_min;
19000 + bfd_signed_vma range_max;
19001 +
19002 + bfd_size_type size;
19003 +};
19004 +
19005 +/*
19006 + * This is for relocs that
19007 + * a) has an addend or is of type R_AVR32_DIFF32, and
19008 + * b) references a different section than it's in, and
19009 + * c) references a section that is relaxable
19010 + *
19011 + * as well as relocs that references the constant pool, in which case
19012 + * the add_frag member points to the frag containing the constant pool
19013 + * entry.
19014 + *
19015 + * Such relocs must be fixed up whenever we delete any code. Sections
19016 + * that don't have any relocs with all of the above properties don't
19017 + * have any additional reloc data, but sections that do will have
19018 + * additional data for all its relocs.
19019 + */
19020 +struct avr32_reloc_data
19021 +{
19022 + struct fragment *add_frag;
19023 + struct fragment *sub_frag;
19024 +};
19025 +
19026 +/*
19027 + * A 'fragment' is a relaxable entity, that is, code may be added or
19028 + * deleted at the end of a fragment. When this happens, all subsequent
19029 + * fragments in the list will have their offsets updated.
19030 + */
19031 +struct fragment
19032 +{
19033 + enum relax_state_id state;
19034 + enum relax_state_id initial_state;
19035 +
19036 + Elf_Internal_Rela *rela;
19037 + bfd_size_type size;
19038 + bfd_vma offset;
19039 + int size_adjust;
19040 + int offset_adjust;
19041 + bfd_boolean has_grown;
19042 +
19043 + /* Only used by constant pool entries. When this drops to zero, the
19044 + frag is discarded (i.e. size_adjust is set to -4.) */
19045 + int refcount;
19046 +};
19047 +
19048 +struct avr32_relax_data
19049 +{
19050 + unsigned int frag_count;
19051 + struct fragment *frag;
19052 + struct avr32_reloc_data *reloc_data;
19053 +
19054 + /* TRUE if this section has one or more relaxable relocations */
19055 + bfd_boolean is_relaxable;
19056 + unsigned int iteration;
19057 +};
19058 +
19059 +struct avr32_section_data
19060 +{
19061 + struct bfd_elf_section_data elf;
19062 + struct avr32_relax_data relax_data;
19063 +};
19064 +
19065 +\f/* Relax state definitions */
19066 +
19067 +#define PIC_MOV2_OPCODE 0xe0600000
19068 +#define PIC_MOV2_MASK 0xe1e00000
19069 +#define PIC_MOV2_RANGE_MIN (-1048576 * 4)
19070 +#define PIC_MOV2_RANGE_MAX (1048575 * 4)
19071 +#define PIC_MCALL_OPCODE 0xf0160000
19072 +#define PIC_MCALL_MASK 0xffff0000
19073 +#define PIC_MCALL_RANGE_MIN (-131072)
19074 +#define PIC_MCALL_RANGE_MAX (131068)
19075 +#define RCALL2_OPCODE 0xe0a00000
19076 +#define RCALL2_MASK 0xe1ef0000
19077 +#define RCALL2_RANGE_MIN (-2097152)
19078 +#define RCALL2_RANGE_MAX (2097150)
19079 +#define RCALL1_OPCODE 0xc00c0000
19080 +#define RCALL1_MASK 0xf00c0000
19081 +#define RCALL1_RANGE_MIN (-1024)
19082 +#define RCALL1_RANGE_MAX (1022)
19083 +#define PIC_LDW4_OPCODE 0xecf00000
19084 +#define PIC_LDW4_MASK 0xfff00000
19085 +#define PIC_LDW4_RANGE_MIN (-32768)
19086 +#define PIC_LDW4_RANGE_MAX (32767)
19087 +#define PIC_LDW3_OPCODE 0x6c000000
19088 +#define PIC_LDW3_MASK 0xfe000000
19089 +#define PIC_LDW3_RANGE_MIN (0)
19090 +#define PIC_LDW3_RANGE_MAX (124)
19091 +#define SUB5_PC_OPCODE 0xfec00000
19092 +#define SUB5_PC_MASK 0xfff00000
19093 +#define SUB5_PC_RANGE_MIN (-32768)
19094 +#define SUB5_PC_RANGE_MAX (32767)
19095 +#define NOPIC_MCALL_OPCODE 0xf01f0000
19096 +#define NOPIC_MCALL_MASK 0xffff0000
19097 +#define NOPIC_MCALL_RANGE_MIN PIC_MCALL_RANGE_MIN
19098 +#define NOPIC_MCALL_RANGE_MAX PIC_MCALL_RANGE_MAX
19099 +#define NOPIC_LDW4_OPCODE 0xfef00000
19100 +#define NOPIC_LDW4_MASK 0xfff00000
19101 +#define NOPIC_LDW4_RANGE_MIN PIC_LDW4_RANGE_MIN
19102 +#define NOPIC_LDW4_RANGE_MAX PIC_LDW4_RANGE_MAX
19103 +#define LDDPC_OPCODE 0x48000000
19104 +#define LDDPC_MASK 0xf8000000
19105 +#define LDDPC_RANGE_MIN 0
19106 +#define LDDPC_RANGE_MAX 508
19107 +
19108 +#define NOPIC_MOV2_OPCODE 0xe0600000
19109 +#define NOPIC_MOV2_MASK 0xe1e00000
19110 +#define NOPIC_MOV2_RANGE_MIN (-1048576)
19111 +#define NOPIC_MOV2_RANGE_MAX (1048575)
19112 +#define NOPIC_MOV1_OPCODE 0x30000000
19113 +#define NOPIC_MOV1_MASK 0xf0000000
19114 +#define NOPIC_MOV1_RANGE_MIN (-128)
19115 +#define NOPIC_MOV1_RANGE_MAX (127)
19116 +
19117 +/* Only brc2 variants with cond[3] == 0 is considered, since the
19118 + others are not relaxable. bral is a special case and is handled
19119 + separately. */
19120 +#define BRC2_OPCODE 0xe0800000
19121 +#define BRC2_MASK 0xe1e80000
19122 +#define BRC2_RANGE_MIN (-2097152)
19123 +#define BRC2_RANGE_MAX (2097150)
19124 +#define BRC1_OPCODE 0xc0000000
19125 +#define BRC1_MASK 0xf0080000
19126 +#define BRC1_RANGE_MIN (-256)
19127 +#define BRC1_RANGE_MAX (254)
19128 +#define BRAL_OPCODE 0xe08f0000
19129 +#define BRAL_MASK 0xe1ef0000
19130 +#define BRAL_RANGE_MIN BRC2_RANGE_MIN
19131 +#define BRAL_RANGE_MAX BRC2_RANGE_MAX
19132 +#define RJMP_OPCODE 0xc0080000
19133 +#define RJMP_MASK 0xf00c0000
19134 +#define RJMP_RANGE_MIN (-1024)
19135 +#define RJMP_RANGE_MAX (1022)
19136 +
19137 +/* Define a relax state using the GOT */
19138 +#define RG(id, dir, next, prev, r_type, opc, size) \
19139 + { "RS_"#id, RS_##id, RS_##dir, RS_##next, RS_##prev, REF_GOT, \
19140 + R_AVR32_##r_type, opc##_OPCODE, opc##_MASK, \
19141 + opc##_RANGE_MIN, opc##_RANGE_MAX, size }
19142 +/* Define a relax state using the Constant Pool */
19143 +#define RC(id, dir, next, prev, r_type, opc, size) \
19144 + { "RS_"#id, RS_##id, RS_##dir, RS_##next, RS_##prev, REF_CPOOL, \
19145 + R_AVR32_##r_type, opc##_OPCODE, opc##_MASK, \
19146 + opc##_RANGE_MIN, opc##_RANGE_MAX, size }
19147 +
19148 +/* Define a relax state using pc-relative direct reference */
19149 +#define RP(id, dir, next, prev, r_type, opc, size) \
19150 + { "RS_"#id, RS_##id, RS_##dir, RS_##next, RS_##prev, REF_PCREL, \
19151 + R_AVR32_##r_type, opc##_OPCODE, opc##_MASK, \
19152 + opc##_RANGE_MIN, opc##_RANGE_MAX, size }
19153 +
19154 +/* Define a relax state using non-pc-relative direct reference */
19155 +#define RD(id, dir, next, prev, r_type, opc, size) \
19156 + { "RS_"#id, RS_##id, RS_##dir, RS_##next, RS_##prev, REF_ABSOLUTE, \
19157 + R_AVR32_##r_type, opc##_OPCODE, opc##_MASK, \
19158 + opc##_RANGE_MIN, opc##_RANGE_MAX, size }
19159 +
19160 +/* Define a relax state that will be handled specially */
19161 +#define RS(id, r_type, size) \
19162 + { "RS_"#id, RS_##id, RS_NONE, RS_NONE, RS_NONE, REF_ABSOLUTE, \
19163 + R_AVR32_##r_type, 0, 0, 0, 0, size }
19164 +
19165 +const struct relax_state relax_state[RS_MAX] = {
19166 + RS(NONE, NONE, 0),
19167 + RS(ALIGN, ALIGN, 0),
19168 + RS(CPENT, 32_CPENT, 4),
19169 +
19170 + RG(PIC_CALL, PIC_RCALL1, PIC_MCALL, NONE, GOTCALL, PIC_MOV2, 10),
19171 + RG(PIC_MCALL, PIC_RCALL1, NONE, PIC_CALL, GOT18SW, PIC_MCALL, 4),
19172 + RP(PIC_RCALL2, NONE, PIC_RCALL1, PIC_MCALL, 22H_PCREL, RCALL2, 4),
19173 + RP(PIC_RCALL1, NONE, NONE, PIC_RCALL2, 11H_PCREL, RCALL1, 2),
19174 +
19175 + RG(PIC_LDA, PIC_SUB5, PIC_LDW4, NONE, LDA_GOT, PIC_MOV2, 8),
19176 + RG(PIC_LDW4, PIC_SUB5, PIC_LDW3, PIC_LDA, GOT16S, PIC_LDW4, 4),
19177 + RG(PIC_LDW3, PIC_SUB5, NONE, PIC_LDW4, GOT7UW, PIC_LDW3, 2),
19178 + RP(PIC_SUB5, NONE, NONE, PIC_LDW3, 16N_PCREL, SUB5_PC, 4),
19179 +
19180 + RC(NOPIC_MCALL, NOPIC_RCALL1, NONE, NONE, CPCALL, NOPIC_MCALL, 4),
19181 + RP(NOPIC_RCALL2, NONE, NOPIC_RCALL1, NOPIC_MCALL, 22H_PCREL, RCALL2, 4),
19182 + RP(NOPIC_RCALL1, NONE, NONE, NOPIC_RCALL2, 11H_PCREL, RCALL1, 2),
19183 +
19184 + RC(NOPIC_LDW4, NOPIC_MOV1, NOPIC_LDDPC, NONE, 16_CP, NOPIC_LDW4, 4),
19185 + RC(NOPIC_LDDPC, NOPIC_MOV1, NONE, NOPIC_LDW4, 9W_CP, LDDPC, 2),
19186 + RP(NOPIC_SUB5, NOPIC_MOV1, NONE, NOPIC_LDDPC, 16N_PCREL, SUB5_PC, 4),
19187 + RD(NOPIC_MOV2, NONE, NOPIC_MOV1, NOPIC_SUB5, 21S, NOPIC_MOV2, 4),
19188 + RD(NOPIC_MOV1, NONE, NONE, NOPIC_MOV2, 8S, NOPIC_MOV1, 2),
19189 +
19190 + RP(RCALL2, NONE, RCALL1, NONE, 22H_PCREL, RCALL2, 4),
19191 + RP(RCALL1, NONE, NONE, RCALL2, 11H_PCREL, RCALL1, 2),
19192 + RP(BRC2, NONE, BRC1, NONE, 22H_PCREL, BRC2, 4),
19193 + RP(BRC1, NONE, NONE, BRC2, 9H_PCREL, BRC1, 2),
19194 + RP(BRAL, NONE, RJMP, NONE, 22H_PCREL, BRAL, 4),
19195 + RP(RJMP, NONE, NONE, BRAL, 11H_PCREL, RJMP, 2),
19196 +};
19197 +
19198 +static bfd_boolean
19199 +avr32_elf_new_section_hook(bfd *abfd, asection *sec)
19200 +{
19201 + struct avr32_section_data *sdata;
19202 +
19203 + sdata = bfd_zalloc(abfd, sizeof(struct avr32_section_data));
19204 + if (!sdata)
19205 + return FALSE;
19206 +
19207 + sec->used_by_bfd = sdata;
19208 + return _bfd_elf_new_section_hook(abfd, sec);
19209 +}
19210 +
19211 +static struct avr32_relax_data *
19212 +avr32_relax_data(asection *sec)
19213 +{
19214 + struct avr32_section_data *sdata;
19215 +
19216 + BFD_ASSERT(sec->used_by_bfd);
19217 +
19218 + sdata = (struct avr32_section_data *)elf_section_data(sec);
19219 + return &sdata->relax_data;
19220 +}
19221 +
19222 +\f/* Link-time relaxation */
19223 +
19224 +static bfd_boolean
19225 +avr32_elf_relax_section(bfd *abfd, asection *sec,
19226 + struct bfd_link_info *info, bfd_boolean *again);
19227 +
19228 +enum relax_pass_id {
19229 + RELAX_PASS_SIZE_FRAGS,
19230 + RELAX_PASS_MOVE_DATA,
19231 +};
19232 +
19233 +/* Stolen from the xtensa port */
19234 +static int
19235 +internal_reloc_compare (const void *ap, const void *bp)
19236 +{
19237 + const Elf_Internal_Rela *a = (const Elf_Internal_Rela *) ap;
19238 + const Elf_Internal_Rela *b = (const Elf_Internal_Rela *) bp;
19239 +
19240 + if (a->r_offset != b->r_offset)
19241 + return (a->r_offset - b->r_offset);
19242 +
19243 + /* We don't need to sort on these criteria for correctness,
19244 + but enforcing a more strict ordering prevents unstable qsort
19245 + from behaving differently with different implementations.
19246 + Without the code below we get correct but different results
19247 + on Solaris 2.7 and 2.8. We would like to always produce the
19248 + same results no matter the host. */
19249 +
19250 + if (a->r_info != b->r_info)
19251 + return (a->r_info - b->r_info);
19252 +
19253 + return (a->r_addend - b->r_addend);
19254 +}
19255 +
19256 +static enum relax_state_id
19257 +get_pcrel22_relax_state(bfd *abfd, asection *sec, struct bfd_link_info *info,
19258 + const Elf_Internal_Rela *rela)
19259 +{
19260 + bfd_byte *contents;
19261 + bfd_vma insn;
19262 + enum relax_state_id rs = RS_NONE;
19263 +
19264 + contents = retrieve_contents(abfd, sec, info->keep_memory);
19265 + if (!contents)
19266 + return RS_ERROR;
19267 +
19268 + insn = bfd_get_32(abfd, contents + rela->r_offset);
19269 + if ((insn & RCALL2_MASK) == RCALL2_OPCODE)
19270 + rs = RS_RCALL2;
19271 + else if ((insn & BRAL_MASK) == BRAL_OPCODE)
19272 + /* Optimizing bral -> rjmp gets us into all kinds of
19273 + trouble with jump tables. Better not do it. */
19274 + rs = RS_NONE;
19275 + else if ((insn & BRC2_MASK) == BRC2_OPCODE)
19276 + rs = RS_BRC2;
19277 +
19278 + release_contents(sec, contents);
19279 +
19280 + return rs;
19281 +}
19282 +
19283 +static enum relax_state_id
19284 +get_initial_relax_state(bfd *abfd, asection *sec, struct bfd_link_info *info,
19285 + const Elf_Internal_Rela *rela)
19286 +{
19287 + switch (ELF_R_TYPE(rela->r_info))
19288 + {
19289 + case R_AVR32_GOTCALL:
19290 + return RS_PIC_CALL;
19291 + case R_AVR32_GOT18SW:
19292 + return RS_PIC_MCALL;
19293 + case R_AVR32_LDA_GOT:
19294 + return RS_PIC_LDA;
19295 + case R_AVR32_GOT16S:
19296 + return RS_PIC_LDW4;
19297 + case R_AVR32_CPCALL:
19298 + return RS_NOPIC_MCALL;
19299 + case R_AVR32_16_CP:
19300 + return RS_NOPIC_LDW4;
19301 + case R_AVR32_9W_CP:
19302 + return RS_NOPIC_LDDPC;
19303 + case R_AVR32_ALIGN:
19304 + return RS_ALIGN;
19305 + case R_AVR32_32_CPENT:
19306 + return RS_CPENT;
19307 + case R_AVR32_22H_PCREL:
19308 + return get_pcrel22_relax_state(abfd, sec, info, rela);
19309 + case R_AVR32_9H_PCREL:
19310 + return RS_BRC1;
19311 + default:
19312 + return RS_NONE;
19313 + }
19314 +}
19315 +
19316 +static bfd_boolean
19317 +reloc_is_cpool_ref(const Elf_Internal_Rela *rela)
19318 +{
19319 + switch (ELF_R_TYPE(rela->r_info))
19320 + {
19321 + case R_AVR32_CPCALL:
19322 + case R_AVR32_16_CP:
19323 + case R_AVR32_9W_CP:
19324 + return TRUE;
19325 + default:
19326 + return FALSE;
19327 + }
19328 +}
19329 +
19330 +static struct fragment *
19331 +new_frag(bfd *abfd ATTRIBUTE_UNUSED, asection *sec,
19332 + struct avr32_relax_data *rd, enum relax_state_id state,
19333 + Elf_Internal_Rela *rela)
19334 +{
19335 + struct fragment *frag;
19336 + bfd_size_type r_size;
19337 + bfd_vma r_offset;
19338 + unsigned int i = rd->frag_count;
19339 +
19340 + BFD_ASSERT(state >= RS_NONE && state < RS_MAX);
19341 +
19342 + rd->frag_count++;
19343 + frag = bfd_realloc(rd->frag, sizeof(struct fragment) * rd->frag_count);
19344 + if (!frag)
19345 + return NULL;
19346 + rd->frag = frag;
19347 +
19348 + frag += i;
19349 + memset(frag, 0, sizeof(struct fragment));
19350 +
19351 + if (state == RS_ALIGN)
19352 + r_size = (((rela->r_offset + (1 << rela->r_addend) - 1)
19353 + & ~((1 << rela->r_addend) - 1)) - rela->r_offset);
19354 + else
19355 + r_size = relax_state[state].size;
19356 +
19357 + if (rela)
19358 + r_offset = rela->r_offset;
19359 + else
19360 + r_offset = sec->size;
19361 +
19362 + if (i == 0)
19363 + {
19364 + frag->offset = 0;
19365 + frag->size = r_offset + r_size;
19366 + }
19367 + else
19368 + {
19369 + frag->offset = rd->frag[i - 1].offset + rd->frag[i - 1].size;
19370 + frag->size = r_offset + r_size - frag->offset;
19371 + }
19372 +
19373 + if (state != RS_CPENT)
19374 + /* Make sure we don't discard this frag */
19375 + frag->refcount = 1;
19376 +
19377 + frag->initial_state = frag->state = state;
19378 + frag->rela = rela;
19379 +
19380 + return frag;
19381 +}
19382 +
19383 +static struct fragment *
19384 +find_frag(asection *sec, bfd_vma offset)
19385 +{
19386 + struct fragment *first, *last;
19387 + struct avr32_relax_data *rd = avr32_relax_data(sec);
19388 +
19389 + if (rd->frag_count == 0)
19390 + return NULL;
19391 +
19392 + first = &rd->frag[0];
19393 + last = &rd->frag[rd->frag_count - 1];
19394 +
19395 + /* This may be a reloc referencing the end of a section. The last
19396 + frag will never have a reloc associated with it, so its size will
19397 + never change, thus the offset adjustment of the last frag will
19398 + always be the same as the offset adjustment of the end of the
19399 + section. */
19400 + if (offset == sec->size)
19401 + {
19402 + BFD_ASSERT(last->offset + last->size == sec->size);
19403 + BFD_ASSERT(!last->rela);
19404 + return last;
19405 + }
19406 +
19407 + while (first <= last)
19408 + {
19409 + struct fragment *mid;
19410 +
19411 + mid = (last - first) / 2 + first;
19412 + if ((mid->offset + mid->size) <= offset)
19413 + first = mid + 1;
19414 + else if (mid->offset > offset)
19415 + last = mid - 1;
19416 + else
19417 + return mid;
19418 + }
19419 +
19420 + return NULL;
19421 +}
19422 +
19423 +/* Look through all relocs in a section and determine if any relocs
19424 + may be affected by relaxation in other sections. If so, allocate
19425 + an array of additional relocation data which links the affected
19426 + relocations to the frag(s) where the relaxation may occur.
19427 +
19428 + This function also links cpool references to cpool entries and
19429 + increments the refcount of the latter when this happens. */
19430 +
19431 +static bfd_boolean
19432 +allocate_reloc_data(bfd *abfd, asection *sec, Elf_Internal_Rela *relocs,
19433 + struct bfd_link_info *info)
19434 +{
19435 + Elf_Internal_Shdr *symtab_hdr;
19436 + Elf_Internal_Sym *isymbuf = NULL;
19437 + struct avr32_relax_data *rd;
19438 + unsigned int i;
19439 + bfd_boolean ret = FALSE;
19440 +
19441 + symtab_hdr = &elf_tdata(abfd)->symtab_hdr;
19442 + rd = avr32_relax_data(sec);
19443 +
19444 + RDBG("%s<%s>: allocate_reloc_data\n", abfd->filename, sec->name);
19445 +
19446 + for (i = 0; i < sec->reloc_count; i++)
19447 + {
19448 + Elf_Internal_Rela *rel = &relocs[i];
19449 + asection *sym_sec;
19450 + unsigned long r_symndx;
19451 + bfd_vma sym_value;
19452 +
19453 + if (!rel->r_addend && ELF_R_TYPE(rel->r_info) != R_AVR32_DIFF32
19454 + && !reloc_is_cpool_ref(rel))
19455 + continue;
19456 +
19457 + r_symndx = ELF_R_SYM(rel->r_info);
19458 +
19459 + if (r_symndx < symtab_hdr->sh_info)
19460 + {
19461 + Elf_Internal_Sym *isym;
19462 +
19463 + if (!isymbuf)
19464 + isymbuf = retrieve_local_syms(abfd, info->keep_memory);
19465 + if (!isymbuf)
19466 + return FALSE;
19467 +
19468 + isym = &isymbuf[r_symndx];
19469 + sym_sec = bfd_section_from_elf_index(abfd, isym->st_shndx);
19470 + sym_value = isym->st_value;
19471 + }
19472 + else
19473 + {
19474 + struct elf_link_hash_entry *h;
19475 +
19476 + h = elf_sym_hashes(abfd)[r_symndx - symtab_hdr->sh_info];
19477 +
19478 + while (h->root.type == bfd_link_hash_indirect
19479 + || h->root.type == bfd_link_hash_warning)
19480 + h = (struct elf_link_hash_entry *)h->root.u.i.link;
19481 +
19482 + if (h->root.type != bfd_link_hash_defined
19483 + && h->root.type != bfd_link_hash_defweak)
19484 + continue;
19485 +
19486 + sym_sec = h->root.u.def.section;
19487 + sym_value = h->root.u.def.value;
19488 + }
19489 +
19490 + if (sym_sec && avr32_relax_data(sym_sec)->is_relaxable)
19491 + {
19492 + bfd_size_type size;
19493 + struct fragment *frag;
19494 +
19495 + if (!rd->reloc_data)
19496 + {
19497 + size = sizeof(struct avr32_reloc_data) * sec->reloc_count;
19498 + rd->reloc_data = bfd_zalloc(abfd, size);
19499 + if (!rd->reloc_data)
19500 + goto out;
19501 + }
19502 +
19503 + RDBG("[%3d] 0x%04lx: target: 0x%lx + 0x%lx",
19504 + i, rel->r_offset, sym_value, rel->r_addend);
19505 +
19506 + frag = find_frag(sym_sec, sym_value + rel->r_addend);
19507 + BFD_ASSERT(frag);
19508 + rd->reloc_data[i].add_frag = frag;
19509 +
19510 + RDBG(" -> %s<%s>:%04lx\n", sym_sec->owner->filename, sym_sec->name,
19511 + frag->rela ? frag->rela->r_offset : sym_sec->size);
19512 +
19513 + if (reloc_is_cpool_ref(rel))
19514 + {
19515 + BFD_ASSERT(ELF_R_TYPE(frag->rela->r_info) == R_AVR32_32_CPENT);
19516 + frag->refcount++;
19517 + }
19518 +
19519 + if (ELF_R_TYPE(rel->r_info) == R_AVR32_DIFF32)
19520 + {
19521 + bfd_byte *contents;
19522 + bfd_signed_vma diff;
19523 +
19524 + contents = retrieve_contents(abfd, sec, info->keep_memory);
19525 + if (!contents)
19526 + goto out;
19527 +
19528 + diff = bfd_get_signed_32(abfd, contents + rel->r_offset);
19529 + frag = find_frag(sym_sec, sym_value + rel->r_addend + diff);
19530 + BFD_ASSERT(frag);
19531 + rd->reloc_data[i].sub_frag = frag;
19532 +
19533 + release_contents(sec, contents);
19534 + }
19535 + }
19536 + }
19537 +
19538 + ret = TRUE;
19539 +
19540 + out:
19541 + release_local_syms(abfd, isymbuf);
19542 + return ret;
19543 +}
19544 +
19545 +static bfd_boolean
19546 +global_sym_set_frag(struct elf_avr32_link_hash_entry *havr,
19547 + struct bfd_link_info *info ATTRIBUTE_UNUSED)
19548 +{
19549 + struct fragment *frag;
19550 + asection *sec;
19551 +
19552 + if (havr->root.root.type != bfd_link_hash_defined
19553 + && havr->root.root.type != bfd_link_hash_defweak)
19554 + return TRUE;
19555 +
19556 + sec = havr->root.root.u.def.section;
19557 + if (bfd_is_const_section(sec)
19558 + || !avr32_relax_data(sec)->is_relaxable)
19559 + return TRUE;
19560 +
19561 + frag = find_frag(sec, havr->root.root.u.def.value);
19562 + if (!frag)
19563 + {
19564 + unsigned int i;
19565 + struct avr32_relax_data *rd = avr32_relax_data(sec);
19566 +
19567 + RDBG("In %s: No frag for %s <%s+%lu> (limit %lu)\n",
19568 + sec->owner->filename, havr->root.root.root.string,
19569 + sec->name, havr->root.root.u.def.value, sec->size);
19570 + for (i = 0; i < rd->frag_count; i++)
19571 + RDBG(" %8lu - %8lu\n", rd->frag[i].offset,
19572 + rd->frag[i].offset + rd->frag[i].size);
19573 + }
19574 + BFD_ASSERT(frag);
19575 +
19576 + havr->sym_frag = frag;
19577 + return TRUE;
19578 +}
19579 +
19580 +static bfd_boolean
19581 +analyze_relocations(struct bfd_link_info *info)
19582 +{
19583 + bfd *abfd;
19584 + asection *sec;
19585 +
19586 + /* Divide all relaxable sections into fragments */
19587 + for (abfd = info->input_bfds; abfd; abfd = abfd->link_next)
19588 + {
19589 + if (!(elf_elfheader(abfd)->e_flags & EF_AVR32_LINKRELAX))
19590 + {
19591 + if (!(*info->callbacks->warning)
19592 + (info, _("input is not relaxable"), NULL, abfd, NULL, 0))
19593 + return FALSE;
19594 + continue;
19595 + }
19596 +
19597 + for (sec = abfd->sections; sec; sec = sec->next)
19598 + {
19599 + struct avr32_relax_data *rd;
19600 + struct fragment *frag;
19601 + Elf_Internal_Rela *relocs;
19602 + unsigned int i;
19603 + bfd_boolean ret = TRUE;
19604 +
19605 + if (!(sec->flags & SEC_RELOC) || sec->reloc_count == 0)
19606 + continue;
19607 +
19608 + rd = avr32_relax_data(sec);
19609 +
19610 + relocs = retrieve_internal_relocs(abfd, sec, info->keep_memory);
19611 + if (!relocs)
19612 + return FALSE;
19613 +
19614 + qsort(relocs, sec->reloc_count, sizeof(Elf_Internal_Rela),
19615 + internal_reloc_compare);
19616 +
19617 + for (i = 0; i < sec->reloc_count; i++)
19618 + {
19619 + enum relax_state_id state;
19620 +
19621 + ret = FALSE;
19622 + state = get_initial_relax_state(abfd, sec, info, &relocs[i]);
19623 + if (state == RS_ERROR)
19624 + break;
19625 +
19626 + if (state)
19627 + {
19628 + frag = new_frag(abfd, sec, rd, state, &relocs[i]);
19629 + if (!frag)
19630 + break;
19631 +
19632 + pin_internal_relocs(sec, relocs);
19633 + rd->is_relaxable = TRUE;
19634 + }
19635 +
19636 + ret = TRUE;
19637 + }
19638 +
19639 + release_internal_relocs(sec, relocs);
19640 + if (!ret)
19641 + return ret;
19642 +
19643 + if (rd->is_relaxable)
19644 + {
19645 + frag = new_frag(abfd, sec, rd, RS_NONE, NULL);
19646 + if (!frag)
19647 + return FALSE;
19648 + }
19649 + }
19650 + }
19651 +
19652 + /* Link each global symbol to the fragment where it's defined. */
19653 + elf_link_hash_traverse(elf_hash_table(info), global_sym_set_frag, info);
19654 +
19655 + /* Do the same for local symbols. */
19656 + for (abfd = info->input_bfds; abfd; abfd = abfd->link_next)
19657 + {
19658 + Elf_Internal_Sym *isymbuf, *isym;
19659 + struct fragment **local_sym_frag;
19660 + unsigned int i, sym_count;
19661 +
19662 + sym_count = elf_tdata(abfd)->symtab_hdr.sh_info;
19663 + if (sym_count == 0)
19664 + continue;
19665 +
19666 + local_sym_frag = bfd_zalloc(abfd, sym_count * sizeof(struct fragment *));
19667 + if (!local_sym_frag)
19668 + return FALSE;
19669 + elf_tdata(abfd)->local_sym_frag = local_sym_frag;
19670 +
19671 + isymbuf = retrieve_local_syms(abfd, info->keep_memory);
19672 + if (!isymbuf)
19673 + return FALSE;
19674 +
19675 + for (i = 0; i < sym_count; i++)
19676 + {
19677 + struct avr32_relax_data *rd;
19678 + struct fragment *frag;
19679 + asection *sec;
19680 +
19681 + isym = &isymbuf[i];
19682 +
19683 + sec = bfd_section_from_elf_index(abfd, isym->st_shndx);
19684 + if (!sec)
19685 + continue;
19686 +
19687 + rd = avr32_relax_data(sec);
19688 + if (!rd->is_relaxable)
19689 + continue;
19690 +
19691 + frag = find_frag(sec, isym->st_value);
19692 + BFD_ASSERT(frag);
19693 +
19694 + local_sym_frag[i] = frag;
19695 + }
19696 +
19697 + release_local_syms(abfd, isymbuf);
19698 + }
19699 +
19700 + /* And again for relocs with addends and constant pool references */
19701 + for (abfd = info->input_bfds; abfd; abfd = abfd->link_next)
19702 + for (sec = abfd->sections; sec; sec = sec->next)
19703 + {
19704 + Elf_Internal_Rela *relocs;
19705 + bfd_boolean ret;
19706 +
19707 + if (!(sec->flags & SEC_RELOC) || sec->reloc_count == 0)
19708 + continue;
19709 +
19710 + relocs = retrieve_internal_relocs(abfd, sec, info->keep_memory);
19711 + if (!relocs)
19712 + return FALSE;
19713 +
19714 + ret = allocate_reloc_data(abfd, sec, relocs, info);
19715 +
19716 + release_internal_relocs(sec, relocs);
19717 + if (ret == FALSE)
19718 + return ret;
19719 + }
19720 +
19721 + return TRUE;
19722 +}
19723 +
19724 +static bfd_boolean
19725 +rs_is_good_enough(const struct relax_state *rs, struct fragment *frag,
19726 + bfd_vma symval, bfd_vma addr, struct got_entry *got,
19727 + struct avr32_reloc_data *ind_data,
19728 + bfd_signed_vma offset_adjust)
19729 +{
19730 + bfd_signed_vma target = 0;
19731 +
19732 + switch (rs->reftype)
19733 + {
19734 + case REF_ABSOLUTE:
19735 + target = symval;
19736 + break;
19737 + case REF_PCREL:
19738 + target = symval - addr;
19739 + break;
19740 + case REF_CPOOL:
19741 + /* cpool frags are always in the same section and always after
19742 + all frags referring to it. So it's always correct to add in
19743 + offset_adjust here. */
19744 + target = (ind_data->add_frag->offset + ind_data->add_frag->offset_adjust
19745 + + offset_adjust - frag->offset - frag->offset_adjust);
19746 + break;
19747 + case REF_GOT:
19748 + target = got->offset;
19749 + break;
19750 + default:
19751 + abort();
19752 + }
19753 +
19754 + if (target >= rs->range_min && target <= rs->range_max)
19755 + return TRUE;
19756 + else
19757 + return FALSE;
19758 +}
19759 +
19760 +static bfd_boolean
19761 +avr32_size_frags(bfd *abfd, asection *sec, struct bfd_link_info *info)
19762 +{
19763 + struct elf_avr32_link_hash_table *htab;
19764 + struct avr32_relax_data *rd;
19765 + Elf_Internal_Shdr *symtab_hdr;
19766 + Elf_Internal_Rela *relocs = NULL;
19767 + Elf_Internal_Sym *isymbuf = NULL;
19768 + struct got_entry **local_got_ents;
19769 + struct fragment **local_sym_frag;
19770 + bfd_boolean ret = FALSE;
19771 + bfd_signed_vma delta = 0;
19772 + unsigned int i;
19773 +
19774 + htab = avr32_elf_hash_table(info);
19775 + rd = avr32_relax_data(sec);
19776 +
19777 + if (sec == htab->sgot)
19778 + {
19779 + RDBG("Relaxing GOT section (vma: 0x%lx)\n",
19780 + sec->output_section->vma + sec->output_offset);
19781 + if (assign_got_offsets(htab))
19782 + htab->repeat_pass = TRUE;
19783 + return TRUE;
19784 + }
19785 +
19786 + if (!rd->is_relaxable)
19787 + return TRUE;
19788 +
19789 + if (!sec->rawsize)
19790 + sec->rawsize = sec->size;
19791 +
19792 + symtab_hdr = &elf_tdata(abfd)->symtab_hdr;
19793 + relocs = retrieve_internal_relocs(abfd, sec, info->keep_memory);
19794 + if (!relocs)
19795 + goto out;
19796 +
19797 + isymbuf = retrieve_local_syms(abfd, info->keep_memory);
19798 + if (!isymbuf)
19799 + goto out;
19800 +
19801 + local_got_ents = elf_local_got_ents(abfd);
19802 + local_sym_frag = elf_tdata(abfd)->local_sym_frag;
19803 +
19804 + RDBG("size_frags: %s<%s>\n vma: 0x%08lx, size: 0x%08lx\n",
19805 + abfd->filename, sec->name,
19806 + sec->output_section->vma + sec->output_offset, sec->size);
19807 +
19808 + for (i = 0; i < rd->frag_count; i++)
19809 + {
19810 + struct fragment *frag = &rd->frag[i];
19811 + struct avr32_reloc_data *r_data = NULL, *ind_data = NULL;
19812 + const struct relax_state *state, *next_state;
19813 + struct fragment *target_frag = NULL;
19814 + asection *sym_sec = NULL;
19815 + Elf_Internal_Rela *rela;
19816 + struct got_entry *got;
19817 + bfd_vma symval, r_offset, addend, addr;
19818 + bfd_signed_vma size_adjust = 0, distance;
19819 + unsigned long r_symndx;
19820 + bfd_boolean defined = TRUE, dynamic = FALSE;
19821 + unsigned char sym_type;
19822 +
19823 + frag->offset_adjust += delta;
19824 + state = next_state = &relax_state[frag->state];
19825 + rela = frag->rela;
19826 +
19827 + BFD_ASSERT(state->id == frag->state);
19828 +
19829 + RDBG(" 0x%04lx%c%d: %s [size %ld]", rela ? rela->r_offset : sec->rawsize,
19830 + (frag->offset_adjust < 0)?'-':'+',
19831 + abs(frag->offset_adjust), state->name, state->size);
19832 +
19833 + if (!rela)
19834 + {
19835 + RDBG(": no reloc, ignoring\n");
19836 + continue;
19837 + }
19838 +
19839 + BFD_ASSERT((unsigned int)(rela - relocs) < sec->reloc_count);
19840 + BFD_ASSERT(state != RS_NONE);
19841 +
19842 + r_offset = rela->r_offset + frag->offset_adjust;
19843 + addr = sec->output_section->vma + sec->output_offset + r_offset;
19844 +
19845 + switch (frag->state)
19846 + {
19847 + case RS_ALIGN:
19848 + size_adjust = ((addr + (1 << rela->r_addend) - 1)
19849 + & ~((1 << rela->r_addend) - 1));
19850 + size_adjust -= (sec->output_section->vma + sec->output_offset
19851 + + frag->offset + frag->offset_adjust
19852 + + frag->size + frag->size_adjust);
19853 +
19854 + RDBG(": adjusting size %lu -> %lu\n", frag->size + frag->size_adjust,
19855 + frag->size + frag->size_adjust + size_adjust);
19856 + break;
19857 +
19858 + case RS_CPENT:
19859 + if (frag->refcount == 0 && frag->size_adjust == 0)
19860 + {
19861 + RDBG(": discarding frag\n");
19862 + size_adjust = -4;
19863 + }
19864 + else if (frag->refcount > 0 && frag->size_adjust < 0)
19865 + {
19866 + RDBG(": un-discarding frag\n");
19867 + size_adjust = 4;
19868 + }
19869 + break;
19870 +
19871 + default:
19872 + if (rd->reloc_data)
19873 + r_data = &rd->reloc_data[frag->rela - relocs];
19874 +
19875 + /* If this is a cpool reference, we want the symbol that the
19876 + cpool entry refers to, not the symbol for the cpool entry
19877 + itself, as we already know what frag it's in. */
19878 + if (relax_state[frag->initial_state].reftype == REF_CPOOL)
19879 + {
19880 + Elf_Internal_Rela *irela = r_data->add_frag->rela;
19881 +
19882 + r_symndx = ELF_R_SYM(irela->r_info);
19883 + addend = irela->r_addend;
19884 +
19885 + /* The constant pool must be in the same section as the
19886 + reloc referring to it. */
19887 + BFD_ASSERT((unsigned long)(irela - relocs) < sec->reloc_count);
19888 +
19889 + ind_data = r_data;
19890 + r_data = &rd->reloc_data[irela - relocs];
19891 + }
19892 + else
19893 + {
19894 + r_symndx = ELF_R_SYM(rela->r_info);
19895 + addend = rela->r_addend;
19896 + }
19897 +
19898 + /* Get the value of the symbol referred to by the reloc. */
19899 + if (r_symndx < symtab_hdr->sh_info)
19900 + {
19901 + Elf_Internal_Sym *isym;
19902 +
19903 + isym = isymbuf + r_symndx;
19904 + symval = 0;
19905 +
19906 + RDBG(" local sym %lu: ", r_symndx);
19907 +
19908 + if (isym->st_shndx == SHN_UNDEF)
19909 + defined = FALSE;
19910 + else if (isym->st_shndx == SHN_ABS)
19911 + sym_sec = bfd_abs_section_ptr;
19912 + else if (isym->st_shndx == SHN_COMMON)
19913 + sym_sec = bfd_com_section_ptr;
19914 + else
19915 + sym_sec = bfd_section_from_elf_index(abfd, isym->st_shndx);
19916 +
19917 + symval = isym->st_value;
19918 + sym_type = ELF_ST_TYPE(isym->st_info);
19919 + target_frag = local_sym_frag[r_symndx];
19920 +
19921 + if (local_got_ents)
19922 + got = local_got_ents[r_symndx];
19923 + else
19924 + got = NULL;
19925 + }
19926 + else
19927 + {
19928 + /* Global symbol */
19929 + unsigned long index;
19930 + struct elf_link_hash_entry *h;
19931 + struct elf_avr32_link_hash_entry *havr;
19932 +
19933 + index = r_symndx - symtab_hdr->sh_info;
19934 + h = elf_sym_hashes(abfd)[index];
19935 + BFD_ASSERT(h != NULL);
19936 +
19937 + while (h->root.type == bfd_link_hash_indirect
19938 + || h->root.type == bfd_link_hash_warning)
19939 + h = (struct elf_link_hash_entry *)h->root.u.i.link;
19940 +
19941 + havr = (struct elf_avr32_link_hash_entry *)h;
19942 + got = h->got.glist;
19943 +
19944 + symval = 0;
19945 +
19946 + RDBG(" %s: ", h->root.root.string);
19947 +
19948 + if (h->root.type != bfd_link_hash_defined
19949 + && h->root.type != bfd_link_hash_defweak)
19950 + {
19951 + RDBG("(undef)");
19952 + defined = FALSE;
19953 + }
19954 + else if ((info->shared && !info->symbolic && h->dynindx != -1)
19955 + || (htab->root.dynamic_sections_created
19956 + && h->def_dynamic && !h->def_regular))
19957 + {
19958 + RDBG("(dynamic)");
19959 + dynamic = TRUE;
19960 + sym_sec = h->root.u.def.section;
19961 + }
19962 + else
19963 + {
19964 + sym_sec = h->root.u.def.section;
19965 + symval = h->root.u.def.value;
19966 + target_frag = havr->sym_frag;
19967 + }
19968 +
19969 + sym_type = h->type;
19970 + }
19971 +
19972 + /* Thanks to elf32-ppc for this one. */
19973 + if (sym_sec && sym_sec->sec_info_type == ELF_INFO_TYPE_MERGE)
19974 + {
19975 + /* At this stage in linking, no SEC_MERGE symbol has been
19976 + adjusted, so all references to such symbols need to be
19977 + passed through _bfd_merged_section_offset. (Later, in
19978 + relocate_section, all SEC_MERGE symbols *except* for
19979 + section symbols have been adjusted.)
19980 +
19981 + SEC_MERGE sections are not relaxed by us, as they
19982 + shouldn't contain any code. */
19983 +
19984 + BFD_ASSERT(!target_frag && !(r_data && r_data->add_frag));
19985 +
19986 + /* gas may reduce relocations against symbols in SEC_MERGE
19987 + sections to a relocation against the section symbol when
19988 + the original addend was zero. When the reloc is against
19989 + a section symbol we should include the addend in the
19990 + offset passed to _bfd_merged_section_offset, since the
19991 + location of interest is the original symbol. On the
19992 + other hand, an access to "sym+addend" where "sym" is not
19993 + a section symbol should not include the addend; Such an
19994 + access is presumed to be an offset from "sym"; The
19995 + location of interest is just "sym". */
19996 + RDBG("\n MERGE: %s: 0x%lx+0x%lx+0x%lx -> ",
19997 + (sym_type == STT_SECTION)?"section":"not section",
19998 + sym_sec->output_section->vma + sym_sec->output_offset,
19999 + symval, addend);
20000 +
20001 + if (sym_type == STT_SECTION)
20002 + symval += addend;
20003 +
20004 + symval = (_bfd_merged_section_offset
20005 + (abfd, &sym_sec,
20006 + elf_section_data(sym_sec)->sec_info, symval));
20007 +
20008 + if (sym_type != STT_SECTION)
20009 + symval += addend;
20010 + }
20011 + else
20012 + symval += addend;
20013 +
20014 + if (defined && !dynamic)
20015 + {
20016 + RDBG("0x%lx+0x%lx",
20017 + sym_sec->output_section->vma + sym_sec->output_offset,
20018 + symval);
20019 + symval += sym_sec->output_section->vma + sym_sec->output_offset;
20020 + }
20021 +
20022 + if (r_data && r_data->add_frag)
20023 + /* If the add_frag pointer is set, it means that this reloc
20024 + has an addend that may be affected by relaxation. */
20025 + target_frag = r_data->add_frag;
20026 +
20027 + if (target_frag)
20028 + {
20029 + symval += target_frag->offset_adjust;
20030 +
20031 + /* If target_frag comes after this frag in the same
20032 + section, we should assume that it will be moved by
20033 + the same amount we are. */
20034 + if ((target_frag - rd->frag) < (int)rd->frag_count
20035 + && target_frag > frag)
20036 + symval += delta;
20037 + }
20038 +
20039 + distance = symval - addr;
20040 +
20041 + /* First, try to make a direct reference. If the symbol is
20042 + dynamic or undefined, we must take care not to change its
20043 + reference type, that is, we can't make it direct.
20044 +
20045 + Also, it seems like some sections may actually be resized
20046 + after the relaxation code is done, so we can't really
20047 + trust that our "distance" is correct. There's really no
20048 + easy solution to this problem, so we'll just disallow
20049 + direct references to SEC_DATA sections.
20050 +
20051 + Oh, and .bss isn't actually SEC_DATA, so we disallow
20052 + !SEC_HAS_CONTENTS as well. */
20053 + if (!dynamic && defined
20054 + && (htab->direct_data_refs
20055 + || (!(sym_sec->flags & SEC_DATA)
20056 + && (sym_sec->flags & SEC_HAS_CONTENTS)))
20057 + && next_state->direct)
20058 + {
20059 + next_state = &relax_state[next_state->direct];
20060 + RDBG(" D-> %s", next_state->name);
20061 + }
20062 +
20063 + /* Iterate backwards until we find a state that fits. */
20064 + while (next_state->prev
20065 + && !rs_is_good_enough(next_state, frag, symval, addr,
20066 + got, ind_data, delta))
20067 + {
20068 + next_state = &relax_state[next_state->prev];
20069 + RDBG(" P-> %s", next_state->name);
20070 + }
20071 +
20072 + /* Then try to find the best possible state. */
20073 + while (next_state->next)
20074 + {
20075 + const struct relax_state *candidate;
20076 +
20077 + candidate = &relax_state[next_state->next];
20078 + if (!rs_is_good_enough(candidate, frag, symval, addr, got,
20079 + ind_data, delta))
20080 + break;
20081 +
20082 + next_state = candidate;
20083 + RDBG(" N-> %s", next_state->name);
20084 + }
20085 +
20086 + RDBG(" [size %ld]\n", next_state->size);
20087 +
20088 + BFD_ASSERT(next_state->id);
20089 + BFD_ASSERT(!dynamic || next_state->reftype == REF_GOT);
20090 +
20091 + size_adjust = next_state->size - state->size;
20092 +
20093 + /* There's a theoretical possibility that shrinking one frag
20094 + may cause another to grow, which may cause the first one to
20095 + grow as well, and we're back where we started. Avoid this
20096 + scenario by disallowing a frag that has grown to ever
20097 + shrink again. */
20098 + if (state->reftype == REF_GOT && next_state->reftype != REF_GOT)
20099 + {
20100 + if (frag->has_grown)
20101 + next_state = state;
20102 + else
20103 + unref_got_entry(htab, got);
20104 + }
20105 + else if (state->reftype != REF_GOT && next_state->reftype == REF_GOT)
20106 + {
20107 + ref_got_entry(htab, got);
20108 + frag->has_grown = TRUE;
20109 + }
20110 + else if (state->reftype == REF_CPOOL
20111 + && next_state->reftype != REF_CPOOL)
20112 + {
20113 + if (frag->has_grown)
20114 + next_state = state;
20115 + else
20116 + ind_data->add_frag->refcount--;
20117 + }
20118 + else if (state->reftype != REF_CPOOL
20119 + && next_state->reftype == REF_CPOOL)
20120 + {
20121 + ind_data->add_frag->refcount++;
20122 + frag->has_grown = TRUE;
20123 + }
20124 + else
20125 + {
20126 + if (frag->has_grown && size_adjust < 0)
20127 + next_state = state;
20128 + else if (size_adjust > 0)
20129 + frag->has_grown = TRUE;
20130 + }
20131 +
20132 + size_adjust = next_state->size - state->size;
20133 + frag->state = next_state->id;
20134 +
20135 + break;
20136 + }
20137 +
20138 + if (size_adjust)
20139 + htab->repeat_pass = TRUE;
20140 +
20141 + frag->size_adjust += size_adjust;
20142 + sec->size += size_adjust;
20143 + delta += size_adjust;
20144 +
20145 + BFD_ASSERT((frag->offset + frag->offset_adjust
20146 + + frag->size + frag->size_adjust)
20147 + == (frag[1].offset + frag[1].offset_adjust + delta));
20148 + }
20149 +
20150 + ret = TRUE;
20151 +
20152 + out:
20153 + release_local_syms(abfd, isymbuf);
20154 + release_internal_relocs(sec, relocs);
20155 + return ret;
20156 +}
20157 +
20158 +static bfd_boolean
20159 +adjust_global_symbol(struct elf_avr32_link_hash_entry *havr,
20160 + struct bfd_link_info *info ATTRIBUTE_UNUSED)
20161 +{
20162 + struct elf_link_hash_entry *h = &havr->root;
20163 +
20164 + if (havr->sym_frag && (h->root.type == bfd_link_hash_defined
20165 + || h->root.type == bfd_link_hash_defweak))
20166 + {
20167 + RDBG("adjust_global_symbol: %s 0x%08lx -> 0x%08lx\n",
20168 + h->root.root.string, h->root.u.def.value,
20169 + h->root.u.def.value + havr->sym_frag->offset_adjust);
20170 + h->root.u.def.value += havr->sym_frag->offset_adjust;
20171 + }
20172 + return TRUE;
20173 +}
20174 +
20175 +static bfd_boolean
20176 +adjust_syms(struct bfd_link_info *info)
20177 +{
20178 + struct elf_avr32_link_hash_table *htab;
20179 + bfd *abfd;
20180 +
20181 + htab = avr32_elf_hash_table(info);
20182 + elf_link_hash_traverse(&htab->root, adjust_global_symbol, info);
20183 +
20184 + for (abfd = info->input_bfds; abfd; abfd = abfd->link_next)
20185 + {
20186 + Elf_Internal_Sym *isymbuf;
20187 + struct fragment **local_sym_frag, *frag;
20188 + unsigned int i, sym_count;
20189 +
20190 + sym_count = elf_tdata(abfd)->symtab_hdr.sh_info;
20191 + if (sym_count == 0)
20192 + continue;
20193 +
20194 + isymbuf = retrieve_local_syms(abfd, info->keep_memory);
20195 + if (!isymbuf)
20196 + return FALSE;
20197 +
20198 + local_sym_frag = elf_tdata(abfd)->local_sym_frag;
20199 +
20200 + for (i = 0; i < sym_count; i++)
20201 + {
20202 + frag = local_sym_frag[i];
20203 + if (frag)
20204 + {
20205 + RDBG("adjust_local_symbol: %s[%u] 0x%08lx -> 0x%08lx\n",
20206 + abfd->filename, i, isymbuf[i].st_value,
20207 + isymbuf[i].st_value + frag->offset_adjust);
20208 + isymbuf[i].st_value += frag->offset_adjust;
20209 + }
20210 + }
20211 +
20212 + release_local_syms(abfd, isymbuf);
20213 + }
20214 +
20215 + htab->symbols_adjusted = TRUE;
20216 + return TRUE;
20217 +}
20218 +
20219 +static bfd_boolean
20220 +adjust_relocs(bfd *abfd, asection *sec, struct bfd_link_info *info)
20221 +{
20222 + struct avr32_relax_data *rd;
20223 + Elf_Internal_Rela *relocs;
20224 + Elf_Internal_Shdr *symtab_hdr;
20225 + unsigned int i;
20226 + bfd_boolean ret = FALSE;
20227 +
20228 + rd = avr32_relax_data(sec);
20229 + if (!rd->reloc_data)
20230 + return TRUE;
20231 +
20232 + RDBG("adjust_relocs: %s<%s> (count: %u)\n", abfd->filename, sec->name,
20233 + sec->reloc_count);
20234 +
20235 + relocs = retrieve_internal_relocs(abfd, sec, info->keep_memory);
20236 + if (!relocs)
20237 + return FALSE;
20238 +
20239 + symtab_hdr = &elf_tdata(abfd)->symtab_hdr;
20240 +
20241 + for (i = 0; i < sec->reloc_count; i++)
20242 + {
20243 + Elf_Internal_Rela *rela = &relocs[i];
20244 + struct avr32_reloc_data *r_data = &rd->reloc_data[i];
20245 + struct fragment *sym_frag;
20246 + unsigned long r_symndx;
20247 +
20248 + if (r_data->add_frag)
20249 + {
20250 + r_symndx = ELF_R_SYM(rela->r_info);
20251 +
20252 + if (r_symndx < symtab_hdr->sh_info)
20253 + sym_frag = elf_tdata(abfd)->local_sym_frag[r_symndx];
20254 + else
20255 + {
20256 + struct elf_link_hash_entry *h;
20257 +
20258 + h = elf_sym_hashes(abfd)[r_symndx - symtab_hdr->sh_info];
20259 +
20260 + while (h->root.type == bfd_link_hash_indirect
20261 + || h->root.type == bfd_link_hash_warning)
20262 + h = (struct elf_link_hash_entry *)h->root.u.i.link;
20263 +
20264 + BFD_ASSERT(h->root.type == bfd_link_hash_defined
20265 + || h->root.type == bfd_link_hash_defweak);
20266 +
20267 + sym_frag = ((struct elf_avr32_link_hash_entry *)h)->sym_frag;
20268 + }
20269 +
20270 + RDBG(" addend: 0x%08lx -> 0x%08lx\n",
20271 + rela->r_addend,
20272 + rela->r_addend + r_data->add_frag->offset_adjust
20273 + - (sym_frag ? sym_frag->offset_adjust : 0));
20274 +
20275 + /* If this is against a section symbol, we won't find any
20276 + sym_frag, so we'll just adjust the addend. */
20277 + rela->r_addend += r_data->add_frag->offset_adjust;
20278 + if (sym_frag)
20279 + rela->r_addend -= sym_frag->offset_adjust;
20280 +
20281 + if (r_data->sub_frag)
20282 + {
20283 + bfd_byte *contents;
20284 + bfd_signed_vma diff;
20285 +
20286 + contents = retrieve_contents(abfd, sec, info->keep_memory);
20287 + if (!contents)
20288 + goto out;
20289 +
20290 + /* I realize now that sub_frag is misnamed. It's
20291 + actually add_frag which is subtracted in this
20292 + case... */
20293 + diff = bfd_get_signed_32(abfd, contents + rela->r_offset);
20294 + diff += (r_data->sub_frag->offset_adjust
20295 + - r_data->add_frag->offset_adjust);
20296 + bfd_put_32(abfd, diff, contents + rela->r_offset);
20297 +
20298 + RDBG(" 0x%lx: DIFF32 updated: 0x%lx\n", rela->r_offset, diff);
20299 +
20300 + release_contents(sec, contents);
20301 + }
20302 + }
20303 + else
20304 + BFD_ASSERT(!r_data->sub_frag);
20305 + }
20306 +
20307 + ret = TRUE;
20308 +
20309 + out:
20310 + release_internal_relocs(sec, relocs);
20311 + return ret;
20312 +}
20313 +
20314 +static bfd_boolean
20315 +avr32_move_data(bfd *abfd, asection *sec, struct bfd_link_info *info)
20316 +{
20317 + struct elf_avr32_link_hash_table *htab;
20318 + struct avr32_relax_data *rd;
20319 + struct fragment *frag, *fragend;
20320 + Elf_Internal_Rela *relocs = NULL;
20321 + bfd_byte *contents = NULL;
20322 + unsigned int i;
20323 + bfd_boolean ret = FALSE;
20324 +
20325 + htab = avr32_elf_hash_table(info);
20326 + rd = avr32_relax_data(sec);
20327 +
20328 + if (!htab->symbols_adjusted)
20329 + if (!adjust_syms(info))
20330 + return FALSE;
20331 +
20332 + if (rd->is_relaxable)
20333 + {
20334 + /* Resize the section first, so that we can be sure that enough
20335 + memory is allocated in case the section has grown. */
20336 + if (sec->size > sec->rawsize
20337 + && elf_section_data(sec)->this_hdr.contents)
20338 + {
20339 + /* We must not use cached data if the section has grown. */
20340 + free(elf_section_data(sec)->this_hdr.contents);
20341 + elf_section_data(sec)->this_hdr.contents = NULL;
20342 + }
20343 +
20344 + relocs = retrieve_internal_relocs(abfd, sec, info->keep_memory);
20345 + if (!relocs)
20346 + goto out;
20347 + contents = retrieve_contents(abfd, sec, info->keep_memory);
20348 + if (!contents)
20349 + goto out;
20350 +
20351 + fragend = rd->frag + rd->frag_count;
20352 +
20353 + RDBG("move_data: %s<%s>: relocs=%p, contents=%p\n",
20354 + abfd->filename, sec->name, relocs, contents);
20355 +
20356 + /* First, move the data into place. We must take care to move
20357 + frags in the right order so that we don't accidentally
20358 + overwrite parts of the next frag. */
20359 + for (frag = rd->frag; frag < fragend; frag++)
20360 + {
20361 + RDBG(" 0x%08lx%c0x%x: size 0x%lx%c0x%x\n",
20362 + frag->offset, frag->offset_adjust >= 0 ? '+' : '-',
20363 + abs(frag->offset_adjust),
20364 + frag->size, frag->size_adjust >= 0 ? '+' : '-',
20365 + abs(frag->size_adjust));
20366 + if (frag->offset_adjust > 0)
20367 + {
20368 + struct fragment *prev = frag - 1;
20369 + struct fragment *last;
20370 +
20371 + for (last = frag; last < fragend && last->offset_adjust > 0;
20372 + last++) ;
20373 +
20374 + if (last == fragend)
20375 + last--;
20376 +
20377 + for (frag = last; frag != prev; frag--)
20378 + {
20379 + if (frag->offset_adjust
20380 + && frag->size + frag->size_adjust > 0)
20381 + {
20382 + RDBG("memmove 0x%lx -> 0x%lx (size %lu)\n",
20383 + frag->offset, frag->offset + frag->offset_adjust,
20384 + frag->size + frag->size_adjust);
20385 + memmove(contents + frag->offset + frag->offset_adjust,
20386 + contents + frag->offset,
20387 + frag->size + frag->size_adjust);
20388 + }
20389 + }
20390 + frag = last;
20391 + }
20392 + else if (frag->offset_adjust && frag->size + frag->size_adjust > 0)
20393 + {
20394 + RDBG("memmove 0x%lx -> 0x%lx (size %lu)\n",
20395 + frag->offset, frag->offset + frag->offset_adjust,
20396 + frag->size + frag->size_adjust);
20397 + memmove(contents + frag->offset + frag->offset_adjust,
20398 + contents + frag->offset,
20399 + frag->size + frag->size_adjust);
20400 + }
20401 + }
20402 +
20403 + i = 0;
20404 +
20405 + for (frag = rd->frag; frag < fragend; frag++)
20406 + {
20407 + const struct relax_state *state, *istate;
20408 + struct avr32_reloc_data *r_data = NULL;
20409 +
20410 + istate = &relax_state[frag->initial_state];
20411 + state = &relax_state[frag->state];
20412 +
20413 + if (rd->reloc_data)
20414 + r_data = &rd->reloc_data[frag->rela - relocs];
20415 +
20416 + BFD_ASSERT((long)(frag->size + frag->size_adjust) >= 0);
20417 + BFD_ASSERT(state->reftype != REF_CPOOL
20418 + || r_data->add_frag->refcount > 0);
20419 +
20420 + if (istate->reftype == REF_CPOOL && state->reftype != REF_CPOOL)
20421 + {
20422 + struct fragment *ifrag;
20423 +
20424 + /* An indirect reference through the cpool has been
20425 + converted to a direct reference. We must update the
20426 + reloc to point to the symbol itself instead of the
20427 + constant pool entry. The reloc type will be updated
20428 + later. */
20429 + ifrag = r_data->add_frag;
20430 + frag->rela->r_info = ifrag->rela->r_info;
20431 + frag->rela->r_addend = ifrag->rela->r_addend;
20432 +
20433 + /* Copy the reloc data so the addend will be adjusted
20434 + correctly later. */
20435 + *r_data = rd->reloc_data[ifrag->rela - relocs];
20436 + }
20437 +
20438 + /* Move all relocs covered by this frag. */
20439 + if (frag->rela)
20440 + BFD_ASSERT(&relocs[i] <= frag->rela);
20441 + else
20442 + BFD_ASSERT((frag + 1) == fragend && frag->state == RS_NONE);
20443 +
20444 + if (frag == rd->frag)
20445 + BFD_ASSERT(i == 0);
20446 + else
20447 + BFD_ASSERT(&relocs[i] > frag[-1].rela);
20448 +
20449 + /* If non-null, frag->rela is the last relocation in the
20450 + fragment. frag->rela can only be null in the last
20451 + fragment, so in that case, we'll just do the rest. */
20452 + for (; (i < sec->reloc_count
20453 + && (!frag->rela || &relocs[i] <= frag->rela)); i++)
20454 + {
20455 + RDBG("[%4u] r_offset 0x%08lx -> 0x%08lx\n", i, relocs[i].r_offset,
20456 + relocs[i].r_offset + frag->offset_adjust);
20457 + relocs[i].r_offset += frag->offset_adjust;
20458 + }
20459 +
20460 + if (frag->refcount == 0)
20461 + {
20462 + /* If this frag is to be discarded, make sure we won't
20463 + relocate it later on. */
20464 + BFD_ASSERT(frag->state == RS_CPENT);
20465 + frag->rela->r_info = ELF_R_INFO(ELF_R_SYM(frag->rela->r_info),
20466 + R_AVR32_NONE);
20467 + }
20468 + else if (frag->state == RS_ALIGN)
20469 + {
20470 + bfd_vma addr, addr_end;
20471 +
20472 + addr = frag->rela->r_offset;
20473 + addr_end = (frag->offset + frag->offset_adjust
20474 + + frag->size + frag->size_adjust);
20475 +
20476 + /* If the section is executable, insert NOPs.
20477 + Otherwise, insert zeroes. */
20478 + if (sec->flags & SEC_CODE)
20479 + {
20480 + if (addr & 1)
20481 + {
20482 + bfd_put_8(abfd, 0, contents + addr);
20483 + addr++;
20484 + }
20485 +
20486 + BFD_ASSERT(!((addr_end - addr) & 1));
20487 +
20488 + while (addr < addr_end)
20489 + {
20490 + bfd_put_16(abfd, NOP_OPCODE, contents + addr);
20491 + addr += 2;
20492 + }
20493 + }
20494 + else
20495 + memset(contents + addr, 0, addr_end - addr);
20496 + }
20497 + else if (state->opcode_mask)
20498 + {
20499 + bfd_vma insn;
20500 +
20501 + /* Update the opcode and the relocation type unless it's a
20502 + "special" relax state (i.e. RS_NONE, RS_ALIGN or
20503 + RS_CPENT.), in which case the opcode mask is zero. */
20504 + insn = bfd_get_32(abfd, contents + frag->rela->r_offset);
20505 + insn &= ~state->opcode_mask;
20506 + insn |= state->opcode;
20507 + RDBG(" 0x%lx: inserting insn %08lx\n",
20508 + frag->rela->r_offset, insn);
20509 + bfd_put_32(abfd, insn, contents + frag->rela->r_offset);
20510 +
20511 + frag->rela->r_info = ELF_R_INFO(ELF_R_SYM(frag->rela->r_info),
20512 + state->r_type);
20513 + }
20514 +
20515 + if ((frag + 1) == fragend)
20516 + BFD_ASSERT((frag->offset + frag->size + frag->offset_adjust
20517 + + frag->size_adjust) == sec->size);
20518 + else
20519 + BFD_ASSERT((frag->offset + frag->size + frag->offset_adjust
20520 + + frag->size_adjust)
20521 + == (frag[1].offset + frag[1].offset_adjust));
20522 + }
20523 + }
20524 +
20525 + /* Adjust reloc addends and DIFF32 differences */
20526 + if (!adjust_relocs(abfd, sec, info))
20527 + return FALSE;
20528 +
20529 + ret = TRUE;
20530 +
20531 + out:
20532 + release_contents(sec, contents);
20533 + release_internal_relocs(sec, relocs);
20534 + return ret;
20535 +}
20536 +
20537 +static bfd_boolean
20538 +avr32_elf_relax_section(bfd *abfd, asection *sec,
20539 + struct bfd_link_info *info, bfd_boolean *again)
20540 +{
20541 + struct elf_avr32_link_hash_table *htab;
20542 + struct avr32_relax_data *rd;
20543 +
20544 + *again = FALSE;
20545 + if (info->relocatable)
20546 + return TRUE;
20547 +
20548 + htab = avr32_elf_hash_table(info);
20549 + if ((!(sec->flags & SEC_RELOC) || sec->reloc_count == 0)
20550 + && sec != htab->sgot)
20551 + return TRUE;
20552 +
20553 + if (!htab->relocations_analyzed)
20554 + {
20555 + if (!analyze_relocations(info))
20556 + return FALSE;
20557 + htab->relocations_analyzed = TRUE;
20558 + }
20559 +
20560 + rd = avr32_relax_data(sec);
20561 +
20562 + if (rd->iteration != htab->relax_iteration)
20563 + {
20564 + if (!htab->repeat_pass)
20565 + htab->relax_pass++;
20566 + htab->relax_iteration++;
20567 + htab->repeat_pass = FALSE;
20568 + }
20569 +
20570 + rd->iteration++;
20571 +
20572 + switch (htab->relax_pass)
20573 + {
20574 + case RELAX_PASS_SIZE_FRAGS:
20575 + if (!avr32_size_frags(abfd, sec, info))
20576 + return FALSE;
20577 + *again = TRUE;
20578 + break;
20579 + case RELAX_PASS_MOVE_DATA:
20580 + if (!avr32_move_data(abfd, sec, info))
20581 + return FALSE;
20582 + break;
20583 + }
20584 +
20585 + return TRUE;
20586 +}
20587 +
20588 +\f
20589 +/* Relocation */
20590 +
20591 +static bfd_reloc_status_type
20592 +avr32_check_reloc_value(asection *sec, Elf_Internal_Rela *rela,
20593 + bfd_signed_vma relocation, reloc_howto_type *howto);
20594 +static bfd_reloc_status_type
20595 +avr32_final_link_relocate(reloc_howto_type *howto, bfd *input_bfd,
20596 + asection *input_section, bfd_byte *contents,
20597 + Elf_Internal_Rela *rel, bfd_vma value);
20598 +static bfd_boolean
20599 +avr32_elf_relocate_section(bfd *output_bfd, struct bfd_link_info *info,
20600 + bfd *input_bfd, asection *input_section,
20601 + bfd_byte *contents, Elf_Internal_Rela *relocs,
20602 + Elf_Internal_Sym *local_syms,
20603 + asection **local_sections);
20604 +
20605 +
20606 +#define symbol_address(symbol) \
20607 + symbol->value + symbol->section->output_section->vma \
20608 + + symbol->section->output_offset
20609 +
20610 +#define avr32_elf_insert_field(size, field, abfd, reloc_entry, data) \
20611 + do \
20612 + { \
20613 + unsigned long x; \
20614 + x = bfd_get_##size (abfd, data + reloc_entry->address); \
20615 + x &= ~reloc_entry->howto->dst_mask; \
20616 + x |= field & reloc_entry->howto->dst_mask; \
20617 + bfd_put_##size (abfd, (bfd_vma) x, data + reloc_entry->address); \
20618 + } \
20619 + while(0)
20620 +
20621 +static bfd_reloc_status_type
20622 +avr32_check_reloc_value(asection *sec ATTRIBUTE_UNUSED,
20623 + Elf_Internal_Rela *rela ATTRIBUTE_UNUSED,
20624 + bfd_signed_vma relocation,
20625 + reloc_howto_type *howto)
20626 +{
20627 + bfd_vma reloc_u;
20628 +
20629 + /* We take "complain_overflow_dont" to mean "don't complain on
20630 + alignment either". This way, we don't have to special-case
20631 + R_AVR32_HI16 */
20632 + if (howto->complain_on_overflow == complain_overflow_dont)
20633 + return bfd_reloc_ok;
20634 +
20635 + /* Check if the value is correctly aligned */
20636 + if (relocation & ((1 << howto->rightshift) - 1))
20637 + {
20638 + RDBG("misaligned: %s<%s+%lx>: %s: 0x%lx (align %u)\n",
20639 + sec->owner->filename, sec->name, rela->r_offset,
20640 + howto->name, relocation, howto->rightshift);
20641 + return bfd_reloc_overflow;
20642 + }
20643 +
20644 + /* Now, get rid of the unnecessary bits */
20645 + relocation >>= howto->rightshift;
20646 + reloc_u = (bfd_vma)relocation;
20647 +
20648 + switch (howto->complain_on_overflow)
20649 + {
20650 + case complain_overflow_unsigned:
20651 + case complain_overflow_bitfield:
20652 + if (reloc_u > (unsigned long)((1 << howto->bitsize) - 1))
20653 + {
20654 + RDBG("unsigned overflow: %s<%s+%lx>: %s: 0x%lx (size %u)\n",
20655 + sec->owner->filename, sec->name, rela->r_offset,
20656 + howto->name, reloc_u, howto->bitsize);
20657 + RDBG("reloc vma: 0x%lx\n",
20658 + sec->output_section->vma + sec->output_offset + rela->r_offset);
20659 +
20660 + return bfd_reloc_overflow;
20661 + }
20662 + break;
20663 + case complain_overflow_signed:
20664 + if (relocation > (1 << (howto->bitsize - 1)) - 1)
20665 + {
20666 + RDBG("signed overflow: %s<%s+%lx>: %s: 0x%lx (size %u)\n",
20667 + sec->owner->filename, sec->name, rela->r_offset,
20668 + howto->name, reloc_u, howto->bitsize);
20669 + RDBG("reloc vma: 0x%lx\n",
20670 + sec->output_section->vma + sec->output_offset + rela->r_offset);
20671 +
20672 + return bfd_reloc_overflow;
20673 + }
20674 + if (relocation < -(1 << (howto->bitsize - 1)))
20675 + {
20676 + RDBG("signed overflow: %s<%s+%lx>: %s: -0x%lx (size %u)\n",
20677 + sec->owner->filename, sec->name, rela->r_offset,
20678 + howto->name, -relocation, howto->bitsize);
20679 + RDBG("reloc vma: 0x%lx\n",
20680 + sec->output_section->vma + sec->output_offset + rela->r_offset);
20681 +
20682 + return bfd_reloc_overflow;
20683 + }
20684 + break;
20685 + default:
20686 + abort();
20687 + }
20688 +
20689 + return bfd_reloc_ok;
20690 +}
20691 +
20692 +
20693 +static bfd_reloc_status_type
20694 +avr32_final_link_relocate(reloc_howto_type *howto,
20695 + bfd *input_bfd,
20696 + asection *input_section,
20697 + bfd_byte *contents,
20698 + Elf_Internal_Rela *rel,
20699 + bfd_vma value)
20700 +{
20701 + bfd_vma field;
20702 + bfd_vma relocation;
20703 + bfd_reloc_status_type status;
20704 + bfd_byte *p = contents + rel->r_offset;
20705 + unsigned long x;
20706 +
20707 + pr_debug(" (6b) final link relocate\n");
20708 +
20709 + /* Sanity check the address */
20710 + if (rel->r_offset > input_section->size)
20711 + {
20712 + (*_bfd_error_handler)
20713 + ("%B: %A+0x%lx: offset out of range (section size: 0x%lx)",
20714 + input_bfd, input_section, rel->r_offset, input_section->size);
20715 + return bfd_reloc_outofrange;
20716 + }
20717 +
20718 + relocation = value + rel->r_addend;
20719 +
20720 + if (howto->pc_relative)
20721 + {
20722 + bfd_vma addr;
20723 +
20724 + addr = input_section->output_section->vma
20725 + + input_section->output_offset + rel->r_offset;
20726 + addr &= ~0UL << howto->rightshift;
20727 + relocation -= addr;
20728 + }
20729 +
20730 + switch (ELF32_R_TYPE(rel->r_info))
20731 + {
20732 + case R_AVR32_16N_PCREL:
20733 + /* sub reg, pc, . - (sym + addend) */
20734 + relocation = -relocation;
20735 + break;
20736 + }
20737 +
20738 + status = avr32_check_reloc_value(input_section, rel, relocation, howto);
20739 +
20740 + relocation >>= howto->rightshift;
20741 + if (howto->bitsize == 21)
20742 + field = (relocation & 0xffff)
20743 + | ((relocation & 0x10000) << 4)
20744 + | ((relocation & 0x1e0000) << 8);
20745 + else if (howto->bitsize == 12)
20746 + field = (relocation & 0xff) | ((relocation & 0xf00) << 4);
20747 + else if (howto->bitsize == 10)
20748 + field = ((relocation & 0xff) << 4)
20749 + | ((relocation & 0x300) >> 8);
20750 + else
20751 + field = relocation << howto->bitpos;
20752 +
20753 + switch (howto->size)
20754 + {
20755 + case 0:
20756 + x = bfd_get_8 (input_bfd, p);
20757 + x &= ~howto->dst_mask;
20758 + x |= field & howto->dst_mask;
20759 + bfd_put_8 (input_bfd, (bfd_vma) x, p);
20760 + break;
20761 + case 1:
20762 + x = bfd_get_16 (input_bfd, p);
20763 + x &= ~howto->dst_mask;
20764 + x |= field & howto->dst_mask;
20765 + bfd_put_16 (input_bfd, (bfd_vma) x, p);
20766 + break;
20767 + case 2:
20768 + x = bfd_get_32 (input_bfd, p);
20769 + x &= ~howto->dst_mask;
20770 + x |= field & howto->dst_mask;
20771 + bfd_put_32 (input_bfd, (bfd_vma) x, p);
20772 + break;
20773 + default:
20774 + abort();
20775 + }
20776 +
20777 + return status;
20778 +}
20779 +
20780 +/* (6) Apply relocations to the normal (non-dynamic) sections */
20781 +
20782 +static bfd_boolean
20783 +avr32_elf_relocate_section(bfd *output_bfd, struct bfd_link_info *info,
20784 + bfd *input_bfd, asection *input_section,
20785 + bfd_byte *contents, Elf_Internal_Rela *relocs,
20786 + Elf_Internal_Sym *local_syms,
20787 + asection **local_sections)
20788 +{
20789 + struct elf_avr32_link_hash_table *htab;
20790 + Elf_Internal_Shdr *symtab_hdr;
20791 + Elf_Internal_Rela *rel, *relend;
20792 + struct elf_link_hash_entry **sym_hashes;
20793 + struct got_entry **local_got_ents;
20794 + asection *sgot;
20795 + asection *srelgot;
20796 +
20797 + pr_debug("(6) relocate section %s:<%s> (size 0x%lx)\n",
20798 + input_bfd->filename, input_section->name, input_section->size);
20799 +
20800 + /* If we're doing a partial link, we don't have to do anything since
20801 + we're using RELA relocations */
20802 + if (info->relocatable)
20803 + return TRUE;
20804 +
20805 + htab = avr32_elf_hash_table(info);
20806 + symtab_hdr = &elf_tdata(input_bfd)->symtab_hdr;
20807 + sym_hashes = elf_sym_hashes(input_bfd);
20808 + local_got_ents = elf_local_got_ents(input_bfd);
20809 + sgot = htab->sgot;
20810 + srelgot = htab->srelgot;
20811 +
20812 + relend = relocs + input_section->reloc_count;
20813 + for (rel = relocs; rel < relend; rel++)
20814 + {
20815 + unsigned long r_type, r_symndx;
20816 + reloc_howto_type *howto;
20817 + Elf_Internal_Sym *sym = NULL;
20818 + struct elf_link_hash_entry *h = NULL;
20819 + asection *sec = NULL;
20820 + bfd_vma value;
20821 + bfd_vma offset;
20822 + bfd_reloc_status_type status;
20823 +
20824 + r_type = ELF32_R_TYPE(rel->r_info);
20825 + r_symndx = ELF32_R_SYM(rel->r_info);
20826 +
20827 + if (r_type == R_AVR32_NONE
20828 + || r_type == R_AVR32_ALIGN
20829 + || r_type == R_AVR32_DIFF32
20830 + || r_type == R_AVR32_DIFF16
20831 + || r_type == R_AVR32_DIFF8)
20832 + continue;
20833 +
20834 + /* Sanity check */
20835 + if (r_type > R_AVR32_max)
20836 + {
20837 + bfd_set_error(bfd_error_bad_value);
20838 + return FALSE;
20839 + }
20840 +
20841 + howto = &elf_avr32_howto_table[r_type];
20842 +
20843 + if (r_symndx < symtab_hdr->sh_info)
20844 + {
20845 + sym = local_syms + r_symndx;
20846 + sec = local_sections[r_symndx];
20847 +
20848 + pr_debug(" (6a) processing %s against local symbol %lu\n",
20849 + howto->name, r_symndx);
20850 +
20851 + /* The following function changes rel->r_addend behind our back. */
20852 + value = _bfd_elf_rela_local_sym(output_bfd, sym, &sec, rel);
20853 + pr_debug(" => value: %lx, addend: %lx\n", value, rel->r_addend);
20854 + }
20855 + else
20856 + {
20857 + if (sym_hashes == NULL)
20858 + return FALSE;
20859 +
20860 + h = sym_hashes[r_symndx - symtab_hdr->sh_info];
20861 + while (h->root.type == bfd_link_hash_indirect
20862 + || h->root.type == bfd_link_hash_warning)
20863 + h = (struct elf_link_hash_entry *)h->root.u.i.link;
20864 +
20865 + pr_debug(" (6a) processing %s against symbol %s\n",
20866 + howto->name, h->root.root.string);
20867 +
20868 + if (h->root.type == bfd_link_hash_defined
20869 + || h->root.type == bfd_link_hash_defweak)
20870 + {
20871 + bfd_boolean dyn;
20872 +
20873 + dyn = htab->root.dynamic_sections_created;
20874 + sec = h->root.u.def.section;
20875 +
20876 + if (sec->output_section)
20877 + value = (h->root.u.def.value
20878 + + sec->output_section->vma
20879 + + sec->output_offset);
20880 + else
20881 + value = h->root.u.def.value;
20882 + }
20883 + else if (h->root.type == bfd_link_hash_undefweak)
20884 + value = 0;
20885 + else if (info->unresolved_syms_in_objects == RM_IGNORE
20886 + && ELF_ST_VISIBILITY(h->other) == STV_DEFAULT)
20887 + value = 0;
20888 + else
20889 + {
20890 + bfd_boolean err;
20891 + err = (info->unresolved_syms_in_objects == RM_GENERATE_ERROR
20892 + || ELF_ST_VISIBILITY(h->other) != STV_DEFAULT);
20893 + if (!info->callbacks->undefined_symbol
20894 + (info, h->root.root.string, input_bfd,
20895 + input_section, rel->r_offset, err))
20896 + return FALSE;
20897 + value = 0;
20898 + }
20899 +
20900 + pr_debug(" => value: %lx, addend: %lx\n", value, rel->r_addend);
20901 + }
20902 +
20903 + switch (r_type)
20904 + {
20905 + case R_AVR32_GOT32:
20906 + case R_AVR32_GOT16:
20907 + case R_AVR32_GOT8:
20908 + case R_AVR32_GOT21S:
20909 + case R_AVR32_GOT18SW:
20910 + case R_AVR32_GOT16S:
20911 + case R_AVR32_GOT7UW:
20912 + case R_AVR32_LDA_GOT:
20913 + case R_AVR32_GOTCALL:
20914 + BFD_ASSERT(sgot != NULL);
20915 +
20916 + if (h != NULL)
20917 + {
20918 + BFD_ASSERT(h->got.glist->refcount > 0);
20919 + offset = h->got.glist->offset;
20920 +
20921 + BFD_ASSERT(offset < sgot->size);
20922 + if (!elf_hash_table(info)->dynamic_sections_created
20923 + || (h->def_regular
20924 + && (!info->shared
20925 + || info->symbolic
20926 + || h->dynindx == -1)))
20927 + {
20928 + /* This is actually a static link, or it is a
20929 + -Bsymbolic link and the symbol is defined
20930 + locally, or the symbol was forced to be local. */
20931 + bfd_put_32(output_bfd, value, sgot->contents + offset);
20932 + }
20933 + }
20934 + else
20935 + {
20936 + BFD_ASSERT(local_got_ents &&
20937 + local_got_ents[r_symndx]->refcount > 0);
20938 + offset = local_got_ents[r_symndx]->offset;
20939 +
20940 + /* Local GOT entries don't have relocs. If this is a
20941 + shared library, the dynamic linker will add the load
20942 + address to the initial value at startup. */
20943 + BFD_ASSERT(offset < sgot->size);
20944 + pr_debug("Initializing GOT entry at offset %lu: 0x%lx\n",
20945 + offset, value);
20946 + bfd_put_32 (output_bfd, value, sgot->contents + offset);
20947 + }
20948 +
20949 + value = sgot->output_offset + offset;
20950 + pr_debug("GOT reference: New value %lx\n", value);
20951 + break;
20952 +
20953 + case R_AVR32_GOTPC:
20954 + /* This relocation type is for constant pool entries used in
20955 + the calculation "Rd = PC - (PC - GOT)", where the
20956 + constant pool supplies the constant (PC - GOT)
20957 + offset. The symbol value + addend indicates where the
20958 + value of PC is taken. */
20959 + value -= sgot->output_section->vma;
20960 + break;
20961 +
20962 + case R_AVR32_32_PCREL:
20963 + /* We must adjust r_offset to account for discarded data in
20964 + the .eh_frame section. This is probably not the right
20965 + way to do this, since AFAICS all other architectures do
20966 + it some other way. I just can't figure out how... */
20967 + {
20968 + bfd_vma r_offset;
20969 +
20970 + r_offset = _bfd_elf_section_offset(output_bfd, info,
20971 + input_section,
20972 + rel->r_offset);
20973 + if (r_offset == (bfd_vma)-1
20974 + || r_offset == (bfd_vma)-2)
20975 + continue;
20976 + rel->r_offset = r_offset;
20977 + }
20978 + break;
20979 +
20980 + case R_AVR32_32:
20981 + /* We need to emit a run-time relocation in the following cases:
20982 + - we're creating a shared library
20983 + - the symbol is not defined in any regular objects
20984 +
20985 + Of course, sections that aren't going to be part of the
20986 + run-time image will not get any relocs, and undefined
20987 + symbols won't have any either (only weak undefined
20988 + symbols should get this far). */
20989 + if ((info->shared
20990 + || (elf_hash_table(info)->dynamic_sections_created
20991 + && h != NULL
20992 + && h->def_dynamic
20993 + && !h->def_regular))
20994 + && r_symndx != 0
20995 + && (input_section->flags & SEC_ALLOC))
20996 + {
20997 + Elf_Internal_Rela outrel;
20998 + bfd_byte *loc;
20999 + bfd_boolean skip, relocate;
21000 + struct elf_avr32_link_hash_entry *avrh;
21001 +
21002 + pr_debug("Going to generate dynamic reloc...\n");
21003 +
21004 + skip = FALSE;
21005 + relocate = FALSE;
21006 +
21007 + outrel.r_offset = _bfd_elf_section_offset(output_bfd, info,
21008 + input_section,
21009 + rel->r_offset);
21010 + if (outrel.r_offset == (bfd_vma)-1)
21011 + skip = TRUE;
21012 + else if (outrel.r_offset == (bfd_vma)-2)
21013 + skip = TRUE, relocate = TRUE;
21014 +
21015 + outrel.r_offset += (input_section->output_section->vma
21016 + + input_section->output_offset);
21017 +
21018 + pr_debug(" ... offset %lx, dynindx %ld\n",
21019 + outrel.r_offset, h ? h->dynindx : -1);
21020 +
21021 + if (skip)
21022 + memset(&outrel, 0, sizeof(outrel));
21023 + else
21024 + {
21025 + avrh = (struct elf_avr32_link_hash_entry *)h;
21026 + /* h->dynindx may be -1 if this symbol was marked to
21027 + become local. */
21028 + if (h == NULL
21029 + || ((info->symbolic || h->dynindx == -1)
21030 + && h->def_regular))
21031 + {
21032 + relocate = TRUE;
21033 + outrel.r_info = ELF32_R_INFO(0, R_AVR32_RELATIVE);
21034 + outrel.r_addend = value + rel->r_addend;
21035 + pr_debug(" ... R_AVR32_RELATIVE\n");
21036 + }
21037 + else
21038 + {
21039 + BFD_ASSERT(h->dynindx != -1);
21040 + relocate = TRUE;
21041 + outrel.r_info = ELF32_R_INFO(h->dynindx, R_AVR32_GLOB_DAT);
21042 + outrel.r_addend = rel->r_addend;
21043 + pr_debug(" ... R_AVR32_GLOB_DAT\n");
21044 + }
21045 + }
21046 +
21047 + pr_debug("srelgot reloc_count: %d, size %lu\n",
21048 + srelgot->reloc_count, srelgot->size);
21049 +
21050 + loc = srelgot->contents;
21051 + loc += srelgot->reloc_count++ * sizeof(Elf32_External_Rela);
21052 + bfd_elf32_swap_reloca_out(output_bfd, &outrel, loc);
21053 +
21054 + BFD_ASSERT(srelgot->reloc_count * sizeof(Elf32_External_Rela)
21055 + <= srelgot->size);
21056 +
21057 + if (!relocate)
21058 + continue;
21059 + }
21060 + break;
21061 + }
21062 +
21063 + status = avr32_final_link_relocate(howto, input_bfd, input_section,
21064 + contents, rel, value);
21065 +
21066 + switch (status)
21067 + {
21068 + case bfd_reloc_ok:
21069 + break;
21070 +
21071 + case bfd_reloc_overflow:
21072 + {
21073 + const char *name;
21074 +
21075 + if (h != NULL)
21076 + name = h->root.root.string;
21077 + else
21078 + {
21079 + name = bfd_elf_string_from_elf_section(input_bfd,
21080 + symtab_hdr->sh_link,
21081 + sym->st_name);
21082 + if (name == NULL)
21083 + return FALSE;
21084 + if (*name == '\0')
21085 + name = bfd_section_name(input_bfd, sec);
21086 + }
21087 + if (!((*info->callbacks->reloc_overflow)
21088 + (info, (h ? &h->root : NULL), name, howto->name,
21089 + rel->r_addend, input_bfd, input_section, rel->r_offset)))
21090 + return FALSE;
21091 + }
21092 + break;
21093 +
21094 + case bfd_reloc_outofrange:
21095 + default:
21096 + abort();
21097 + }
21098 + }
21099 +
21100 + return TRUE;
21101 +}
21102 +
21103 +\f
21104 +/* Additional processing of dynamic sections after relocation */
21105 +
21106 +static bfd_boolean
21107 +avr32_elf_finish_dynamic_symbol(bfd *output_bfd, struct bfd_link_info *info,
21108 + struct elf_link_hash_entry *h,
21109 + Elf_Internal_Sym *sym);
21110 +static bfd_boolean
21111 +avr32_elf_finish_dynamic_sections(bfd *output_bfd, struct bfd_link_info *info);
21112 +
21113 +
21114 +/* (7) Initialize the contents of a dynamic symbol and/or emit
21115 + relocations for it */
21116 +
21117 +static bfd_boolean
21118 +avr32_elf_finish_dynamic_symbol(bfd *output_bfd, struct bfd_link_info *info,
21119 + struct elf_link_hash_entry *h,
21120 + Elf_Internal_Sym *sym)
21121 +{
21122 + struct elf_avr32_link_hash_table *htab;
21123 + struct got_entry *got;
21124 +
21125 + pr_debug("(7) finish dynamic symbol: %s\n", h->root.root.string);
21126 +
21127 + htab = avr32_elf_hash_table(info);
21128 + got = h->got.glist;
21129 +
21130 + if (got && got->refcount > 0)
21131 + {
21132 + asection *sgot;
21133 + asection *srelgot;
21134 + Elf_Internal_Rela rel;
21135 + bfd_byte *loc;
21136 +
21137 + /* This symbol has an entry in the GOT. Set it up. */
21138 + sgot = htab->sgot;
21139 + srelgot = htab->srelgot;
21140 + BFD_ASSERT(sgot && srelgot);
21141 +
21142 + rel.r_offset = (sgot->output_section->vma
21143 + + sgot->output_offset
21144 + + got->offset);
21145 +
21146 + /* If this is a static link, or it is a -Bsymbolic link and the
21147 + symbol is defined locally or was forced to be local because
21148 + of a version file, we just want to emit a RELATIVE reloc. The
21149 + entry in the global offset table will already have been
21150 + initialized in the relocate_section function. */
21151 + if ((info->shared
21152 + && !info->symbolic
21153 + && h->dynindx != -1)
21154 + || (htab->root.dynamic_sections_created
21155 + && h->def_dynamic
21156 + && !h->def_regular))
21157 + {
21158 + bfd_put_32(output_bfd, 0, sgot->contents + got->offset);
21159 + rel.r_info = ELF32_R_INFO(h->dynindx, R_AVR32_GLOB_DAT);
21160 + rel.r_addend = 0;
21161 +
21162 + pr_debug("GOT reloc R_AVR32_GLOB_DAT, dynindx: %ld\n", h->dynindx);
21163 + pr_debug(" srelgot reloc_count: %d, size: %lu\n",
21164 + srelgot->reloc_count, srelgot->size);
21165 +
21166 + loc = (srelgot->contents
21167 + + srelgot->reloc_count++ * sizeof(Elf32_External_Rela));
21168 + bfd_elf32_swap_reloca_out(output_bfd, &rel, loc);
21169 +
21170 + BFD_ASSERT(srelgot->reloc_count * sizeof(Elf32_External_Rela)
21171 + <= srelgot->size);
21172 + }
21173 + }
21174 +
21175 + /* Mark _DYNAMIC and _GLOBAL_OFFSET_TABLE_ as absolute */
21176 + if (strcmp(h->root.root.string, "_DYNAMIC") == 0
21177 + || strcmp(h->root.root.string, "_GLOBAL_OFFSET_TABLE_") == 0)
21178 + sym->st_shndx = SHN_ABS;
21179 +
21180 + return TRUE;
21181 +}
21182 +
21183 +/* (8) Do any remaining initialization of the dynamic sections */
21184 +
21185 +static bfd_boolean
21186 +avr32_elf_finish_dynamic_sections(bfd *output_bfd, struct bfd_link_info *info)
21187 +{
21188 + struct elf_avr32_link_hash_table *htab;
21189 + asection *sgot, *sdyn;
21190 +
21191 + pr_debug("(8) finish dynamic sections\n");
21192 +
21193 + htab = avr32_elf_hash_table(info);
21194 + sgot = htab->sgot;
21195 + sdyn = bfd_get_section_by_name(htab->root.dynobj, ".dynamic");
21196 +
21197 + if (htab->root.dynamic_sections_created)
21198 + {
21199 + Elf32_External_Dyn *dyncon, *dynconend;
21200 +
21201 + BFD_ASSERT(sdyn && sgot && sgot->size >= AVR32_GOT_HEADER_SIZE);
21202 +
21203 + dyncon = (Elf32_External_Dyn *)sdyn->contents;
21204 + dynconend = (Elf32_External_Dyn *)(sdyn->contents + sdyn->size);
21205 + for (; dyncon < dynconend; dyncon++)
21206 + {
21207 + Elf_Internal_Dyn dyn;
21208 + asection *s;
21209 +
21210 + bfd_elf32_swap_dyn_in(htab->root.dynobj, dyncon, &dyn);
21211 +
21212 + switch (dyn.d_tag)
21213 + {
21214 + default:
21215 + break;
21216 +
21217 + case DT_PLTGOT:
21218 + s = sgot->output_section;
21219 + BFD_ASSERT(s != NULL);
21220 + dyn.d_un.d_ptr = s->vma;
21221 + bfd_elf32_swap_dyn_out(output_bfd, &dyn, dyncon);
21222 + break;
21223 +
21224 + case DT_AVR32_GOTSZ:
21225 + s = sgot->output_section;
21226 + BFD_ASSERT(s != NULL);
21227 + dyn.d_un.d_val = s->size;
21228 + bfd_elf32_swap_dyn_out(output_bfd, &dyn, dyncon);
21229 + break;
21230 + }
21231 + }
21232 +
21233 + /* Fill in the first two entries in the global offset table */
21234 + bfd_put_32(output_bfd,
21235 + sdyn->output_section->vma + sdyn->output_offset,
21236 + sgot->contents);
21237 +
21238 + /* The runtime linker will fill this one in with the address of
21239 + the run-time link map */
21240 + bfd_put_32(output_bfd, 0, sgot->contents + 4);
21241 + }
21242 +
21243 + if (sgot)
21244 + elf_section_data(sgot->output_section)->this_hdr.sh_entsize = 4;
21245 +
21246 + return TRUE;
21247 +}
21248 +
21249 +\f
21250 +/* AVR32-specific private ELF data */
21251 +
21252 +static bfd_boolean
21253 +avr32_elf_set_private_flags(bfd *abfd, flagword flags);
21254 +static bfd_boolean
21255 +avr32_elf_copy_private_bfd_data(bfd *ibfd, bfd *obfd);
21256 +static bfd_boolean
21257 +avr32_elf_merge_private_bfd_data(bfd *ibfd, bfd *obfd);
21258 +static bfd_boolean
21259 +avr32_elf_print_private_bfd_data(bfd *abfd, void *ptr);
21260 +
21261 +static bfd_boolean
21262 +avr32_elf_set_private_flags(bfd *abfd, flagword flags)
21263 +{
21264 + elf_elfheader(abfd)->e_flags = flags;
21265 + elf_flags_init(abfd) = TRUE;
21266 +
21267 + return TRUE;
21268 +}
21269 +
21270 +/* Copy backend specific data from one object module to another. */
21271 +
21272 +static bfd_boolean
21273 +avr32_elf_copy_private_bfd_data(bfd *ibfd, bfd *obfd)
21274 +{
21275 + elf_elfheader(obfd)->e_flags = elf_elfheader(ibfd)->e_flags;
21276 + return TRUE;
21277 +}
21278 +
21279 +/* Merge backend specific data from an object file to the output
21280 + object file when linking. */
21281 +
21282 +static bfd_boolean
21283 +avr32_elf_merge_private_bfd_data(bfd *ibfd, bfd *obfd)
21284 +{
21285 + flagword out_flags, in_flags;
21286 +
21287 + pr_debug("(0) merge_private_bfd_data: %s -> %s\n",
21288 + ibfd->filename, obfd->filename);
21289 +
21290 + in_flags = elf_elfheader(ibfd)->e_flags;
21291 + out_flags = elf_elfheader(obfd)->e_flags;
21292 +
21293 + if (elf_flags_init(obfd))
21294 + {
21295 + /* If one of the inputs are non-PIC, the output must be
21296 + considered non-PIC. The same applies to linkrelax. */
21297 + if (!(in_flags & EF_AVR32_PIC))
21298 + out_flags &= ~EF_AVR32_PIC;
21299 + if (!(in_flags & EF_AVR32_LINKRELAX))
21300 + out_flags &= ~EF_AVR32_LINKRELAX;
21301 + }
21302 + else
21303 + {
21304 + elf_flags_init(obfd) = TRUE;
21305 + out_flags = in_flags;
21306 + }
21307 +
21308 + elf_elfheader(obfd)->e_flags = out_flags;
21309 +
21310 + return TRUE;
21311 +}
21312 +
21313 +static bfd_boolean
21314 +avr32_elf_print_private_bfd_data(bfd *abfd, void *ptr)
21315 +{
21316 + FILE *file = (FILE *)ptr;
21317 + unsigned long flags;
21318 +
21319 + BFD_ASSERT(abfd != NULL && ptr != NULL);
21320 +
21321 + _bfd_elf_print_private_bfd_data(abfd, ptr);
21322 +
21323 + flags = elf_elfheader(abfd)->e_flags;
21324 +
21325 + fprintf(file, _("private flags = %lx:"), elf_elfheader(abfd)->e_flags);
21326 +
21327 + if (flags & EF_AVR32_PIC)
21328 + fprintf(file, " [PIC]");
21329 + if (flags & EF_AVR32_LINKRELAX)
21330 + fprintf(file, " [linker relaxable]");
21331 +
21332 + flags &= ~(EF_AVR32_PIC | EF_AVR32_LINKRELAX);
21333 +
21334 + if (flags)
21335 + fprintf(file, _("<Unrecognized flag bits set>"));
21336 +
21337 + fputc('\n', file);
21338 +
21339 + return TRUE;
21340 +}
21341 +
21342 +/* Set avr32-specific linker options. */
21343 +void bfd_elf32_avr32_set_options(struct bfd_link_info *info,
21344 + int direct_data_refs)
21345 +{
21346 + struct elf_avr32_link_hash_table *htab;
21347 +
21348 + htab = avr32_elf_hash_table (info);
21349 + htab->direct_data_refs = !!direct_data_refs;
21350 +}
21351 +
21352 +
21353 +\f
21354 +/* Understanding core dumps */
21355 +
21356 +static bfd_boolean
21357 +avr32_elf_grok_prstatus(bfd *abfd, Elf_Internal_Note *note);
21358 +static bfd_boolean
21359 +avr32_elf_grok_psinfo(bfd *abfd, Elf_Internal_Note *note);
21360 +
21361 +static bfd_boolean
21362 +avr32_elf_grok_prstatus(bfd *abfd, Elf_Internal_Note *note)
21363 +{
21364 + /* Linux/AVR32B elf_prstatus */
21365 + if (note->descsz != 148)
21366 + return FALSE;
21367 +
21368 + /* pr_cursig */
21369 + elf_tdata(abfd)->core_signal = bfd_get_16(abfd, note->descdata + 12);
21370 +
21371 + /* pr_pid */
21372 + elf_tdata(abfd)->core_pid = bfd_get_32(abfd, note->descdata + 24);
21373 +
21374 + /* Make a ".reg/999" section for pr_reg. The size is for 16
21375 + general-purpose registers, SR and r12_orig (18 * 4 = 72). */
21376 + return _bfd_elfcore_make_pseudosection(abfd, ".reg", 72,
21377 + note->descpos + 72);
21378 +}
21379 +
21380 +static bfd_boolean
21381 +avr32_elf_grok_psinfo(bfd *abfd, Elf_Internal_Note *note)
21382 +{
21383 + /* Linux/AVR32B elf_prpsinfo */
21384 + if (note->descsz != 128)
21385 + return FALSE;
21386 +
21387 + elf_tdata(abfd)->core_program
21388 + = _bfd_elfcore_strndup(abfd, note->descdata + 32, 16);
21389 + elf_tdata(abfd)->core_command
21390 + = _bfd_elfcore_strndup(abfd, note->descdata + 48, 80);
21391 +
21392 + /* Note that for some reason, a spurious space is tacked
21393 + onto the end of the args in some (at least one anyway)
21394 + implementations, so strip it off if it exists. */
21395 +
21396 + {
21397 + char *command = elf_tdata (abfd)->core_command;
21398 + int n = strlen (command);
21399 +
21400 + if (0 < n && command[n - 1] == ' ')
21401 + command[n - 1] = '\0';
21402 + }
21403 +
21404 + return TRUE;
21405 +}
21406 +
21407 +\f
21408 +#define ELF_ARCH bfd_arch_avr32
21409 +#define ELF_MACHINE_CODE EM_AVR32
21410 +#define ELF_MAXPAGESIZE 0x1000
21411 +
21412 +#define TARGET_BIG_SYM bfd_elf32_avr32_vec
21413 +#define TARGET_BIG_NAME "elf32-avr32"
21414 +
21415 +#define elf_backend_grok_prstatus avr32_elf_grok_prstatus
21416 +#define elf_backend_grok_psinfo avr32_elf_grok_psinfo
21417 +
21418 +/* Only RELA relocations are used */
21419 +#define elf_backend_may_use_rel_p 0
21420 +#define elf_backend_may_use_rela_p 1
21421 +#define elf_backend_default_use_rela_p 1
21422 +#define elf_backend_rela_normal 1
21423 +#define elf_info_to_howto_rel NULL
21424 +#define elf_info_to_howto avr32_info_to_howto
21425 +
21426 +#define bfd_elf32_bfd_copy_private_bfd_data avr32_elf_copy_private_bfd_data
21427 +#define bfd_elf32_bfd_merge_private_bfd_data avr32_elf_merge_private_bfd_data
21428 +#define bfd_elf32_bfd_set_private_flags avr32_elf_set_private_flags
21429 +#define bfd_elf32_bfd_print_private_bfd_data avr32_elf_print_private_bfd_data
21430 +#define bfd_elf32_new_section_hook avr32_elf_new_section_hook
21431 +
21432 +#define elf_backend_gc_mark_hook avr32_elf_gc_mark_hook
21433 +#define elf_backend_gc_sweep_hook avr32_elf_gc_sweep_hook
21434 +#define elf_backend_relocate_section avr32_elf_relocate_section
21435 +#define elf_backend_copy_indirect_symbol avr32_elf_copy_indirect_symbol
21436 +#define elf_backend_create_dynamic_sections avr32_elf_create_dynamic_sections
21437 +#define bfd_elf32_bfd_link_hash_table_create avr32_elf_link_hash_table_create
21438 +#define elf_backend_adjust_dynamic_symbol avr32_elf_adjust_dynamic_symbol
21439 +#define elf_backend_size_dynamic_sections avr32_elf_size_dynamic_sections
21440 +#define elf_backend_finish_dynamic_symbol avr32_elf_finish_dynamic_symbol
21441 +#define elf_backend_finish_dynamic_sections avr32_elf_finish_dynamic_sections
21442 +
21443 +#define bfd_elf32_bfd_relax_section avr32_elf_relax_section
21444 +
21445 +/* Find out which symbols need an entry in .got. */
21446 +#define elf_backend_check_relocs avr32_check_relocs
21447 +#define elf_backend_can_refcount 1
21448 +#define elf_backend_can_gc_sections 1
21449 +#define elf_backend_plt_readonly 1
21450 +#define elf_backend_plt_not_loaded 1
21451 +#define elf_backend_want_plt_sym 0
21452 +#define elf_backend_plt_alignment 2
21453 +#define elf_backend_want_dynbss 0
21454 +#define elf_backend_want_got_plt 0
21455 +#define elf_backend_want_got_sym 1
21456 +#define elf_backend_got_header_size AVR32_GOT_HEADER_SIZE
21457 +
21458 +#include "elf32-target.h"
21459 diff -Nrup binutils-2.17/bfd/elf32-avr32.c.orig binutils-2.17.atmel.1.3.0/bfd/elf32-avr32.c.orig
21460 --- binutils-2.17/bfd/elf32-avr32.c.orig 1970-01-01 01:00:00.000000000 +0100
21461 +++ binutils-2.17.atmel.1.3.0/bfd/elf32-avr32.c.orig 2007-05-31 17:03:36.000000000 +0200
21462 @@ -0,0 +1,3880 @@
21463 +/* AVR32-specific support for 32-bit ELF.
21464 + Copyright 2003-2006 Atmel Corporation.
21465 +
21466 + Written by Haavard Skinnemoen, Atmel Norway, <hskinnemoen@atmel.com>
21467 +
21468 + This file is part of BFD, the Binary File Descriptor library.
21469 +
21470 + This program is free software; you can redistribute it and/or modify
21471 + it under the terms of the GNU General Public License as published by
21472 + the Free Software Foundation; either version 2 of the License, or
21473 + (at your option) any later version.
21474 +
21475 + This program is distributed in the hope that it will be useful,
21476 + but WITHOUT ANY WARRANTY; without even the implied warranty of
21477 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21478 + GNU General Public License for more details.
21479 +
21480 + You should have received a copy of the GNU General Public License
21481 + along with this program; if not, write to the Free Software
21482 + Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
21483 +
21484 +#include "bfd.h"
21485 +#include "sysdep.h"
21486 +#include "bfdlink.h"
21487 +#include "libbfd.h"
21488 +#include "elf-bfd.h"
21489 +#include "elf/avr32.h"
21490 +
21491 +#define xDEBUG
21492 +#define xRELAX_DEBUG
21493 +
21494 +#ifdef DEBUG
21495 +# define pr_debug(fmt, args...) fprintf(stderr, fmt, ##args)
21496 +#else
21497 +# define pr_debug(fmt, args...) do { } while (0)
21498 +#endif
21499 +
21500 +#ifdef RELAX_DEBUG
21501 +# define RDBG(fmt, args...) fprintf(stderr, fmt, ##args)
21502 +#else
21503 +# define RDBG(fmt, args...) do { } while (0)
21504 +#endif
21505 +
21506 +/* When things go wrong, we want it to blow up, damnit! */
21507 +#undef BFD_ASSERT
21508 +#undef abort
21509 +#define BFD_ASSERT(expr) \
21510 + do \
21511 + { \
21512 + if (!(expr)) \
21513 + { \
21514 + bfd_assert(__FILE__, __LINE__); \
21515 + abort(); \
21516 + } \
21517 + } \
21518 + while (0)
21519 +
21520 +/* The name of the dynamic interpreter. This is put in the .interp section. */
21521 +#define ELF_DYNAMIC_INTERPRETER "/lib/ld.so.1"
21522 +
21523 +#define AVR32_GOT_HEADER_SIZE 8
21524 +#define AVR32_FUNCTION_STUB_SIZE 8
21525 +
21526 +#define ELF_R_INFO(x, y) ELF32_R_INFO(x, y)
21527 +#define ELF_R_TYPE(x) ELF32_R_TYPE(x)
21528 +#define ELF_R_SYM(x) ELF32_R_SYM(x)
21529 +
21530 +#define NOP_OPCODE 0xd703
21531 +
21532 +\f
21533 +/* Mapping between BFD relocations and ELF relocations */
21534 +
21535 +static reloc_howto_type *
21536 +bfd_elf32_bfd_reloc_type_lookup(bfd *abfd, bfd_reloc_code_real_type code);
21537 +static void
21538 +avr32_info_to_howto (bfd *abfd, arelent *cache_ptr, Elf_Internal_Rela *dst);
21539 +
21540 +/* Generic HOWTO */
21541 +#define GENH(name, align, size, bitsize, pcrel, bitpos, complain, mask) \
21542 + HOWTO(name, align, size, bitsize, pcrel, bitpos, \
21543 + complain_overflow_##complain, bfd_elf_generic_reloc, #name, \
21544 + FALSE, 0, mask, pcrel)
21545 +
21546 +static reloc_howto_type elf_avr32_howto_table[] = {
21547 + /* NAME ALN SZ BSZ PCREL BP COMPLAIN MASK */
21548 + GENH(R_AVR32_NONE, 0, 0, 0, FALSE, 0, dont, 0x00000000),
21549 +
21550 + GENH(R_AVR32_32, 0, 2, 32, FALSE, 0, dont, 0xffffffff),
21551 + GENH(R_AVR32_16, 0, 1, 16, FALSE, 0, bitfield, 0x0000ffff),
21552 + GENH(R_AVR32_8, 0, 0, 8, FALSE, 0, bitfield, 0x000000ff),
21553 + GENH(R_AVR32_32_PCREL, 0, 2, 32, TRUE, 0, signed, 0xffffffff),
21554 + GENH(R_AVR32_16_PCREL, 0, 1, 16, TRUE, 0, signed, 0x0000ffff),
21555 + GENH(R_AVR32_8_PCREL, 0, 0, 8, TRUE, 0, signed, 0x000000ff),
21556 +
21557 + /* Difference between two symbol (sym2 - sym1). The reloc encodes
21558 + the value of sym1. The field contains the difference before any
21559 + relaxing is done. */
21560 + GENH(R_AVR32_DIFF32, 0, 2, 32, FALSE, 0, dont, 0xffffffff),
21561 + GENH(R_AVR32_DIFF16, 0, 1, 16, FALSE, 0, signed, 0x0000ffff),
21562 + GENH(R_AVR32_DIFF8, 0, 0, 8, FALSE, 0, signed, 0x000000ff),
21563 +
21564 + GENH(R_AVR32_GOT32, 0, 2, 32, FALSE, 0, signed, 0xffffffff),
21565 + GENH(R_AVR32_GOT16, 0, 1, 16, FALSE, 0, signed, 0x0000ffff),
21566 + GENH(R_AVR32_GOT8, 0, 0, 8, FALSE, 0, signed, 0x000000ff),
21567 +
21568 + GENH(R_AVR32_21S, 0, 2, 21, FALSE, 0, signed, 0x1e10ffff),
21569 + GENH(R_AVR32_16U, 0, 2, 16, FALSE, 0, unsigned, 0x0000ffff),
21570 + GENH(R_AVR32_16S, 0, 2, 16, FALSE, 0, signed, 0x0000ffff),
21571 + GENH(R_AVR32_8S, 0, 1, 8, FALSE, 4, signed, 0x00000ff0),
21572 + GENH(R_AVR32_8S_EXT, 0, 2, 8, FALSE, 0, signed, 0x000000ff),
21573 +
21574 + GENH(R_AVR32_22H_PCREL, 1, 2, 21, TRUE, 0, signed, 0x1e10ffff),
21575 + GENH(R_AVR32_18W_PCREL, 2, 2, 16, TRUE, 0, signed, 0x0000ffff),
21576 + GENH(R_AVR32_16B_PCREL, 0, 2, 16, TRUE, 0, signed, 0x0000ffff),
21577 + GENH(R_AVR32_16N_PCREL, 0, 2, 16, TRUE, 0, signed, 0x0000ffff),
21578 + GENH(R_AVR32_14UW_PCREL, 2, 2, 12, TRUE, 0, unsigned, 0x0000f0ff),
21579 + GENH(R_AVR32_11H_PCREL, 1, 1, 10, TRUE, 4, signed, 0x00000ff3),
21580 + GENH(R_AVR32_10UW_PCREL, 2, 2, 8, TRUE, 0, unsigned, 0x000000ff),
21581 + GENH(R_AVR32_9H_PCREL, 1, 1, 8, TRUE, 4, signed, 0x00000ff0),
21582 + GENH(R_AVR32_9UW_PCREL, 2, 1, 7, TRUE, 4, unsigned, 0x000007f0),
21583 +
21584 + GENH(R_AVR32_HI16, 16, 2, 16, FALSE, 0, dont, 0x0000ffff),
21585 + GENH(R_AVR32_LO16, 0, 2, 16, FALSE, 0, dont, 0x0000ffff),
21586 +
21587 + GENH(R_AVR32_GOTPC, 0, 2, 32, FALSE, 0, dont, 0xffffffff),
21588 + GENH(R_AVR32_GOTCALL, 2, 2, 21, FALSE, 0, signed, 0x1e10ffff),
21589 + GENH(R_AVR32_LDA_GOT, 2, 2, 21, FALSE, 0, signed, 0x1e10ffff),
21590 + GENH(R_AVR32_GOT21S, 0, 2, 21, FALSE, 0, signed, 0x1e10ffff),
21591 + GENH(R_AVR32_GOT18SW, 2, 2, 16, FALSE, 0, signed, 0x0000ffff),
21592 + GENH(R_AVR32_GOT16S, 0, 2, 16, FALSE, 0, signed, 0x0000ffff),
21593 + GENH(R_AVR32_GOT7UW, 2, 1, 5, FALSE, 4, unsigned, 0x000001f0),
21594 +
21595 + GENH(R_AVR32_32_CPENT, 0, 2, 32, FALSE, 0, dont, 0xffffffff),
21596 + GENH(R_AVR32_CPCALL, 2, 2, 16, TRUE, 0, signed, 0x0000ffff),
21597 + GENH(R_AVR32_16_CP, 0, 2, 16, TRUE, 0, signed, 0x0000ffff),
21598 + GENH(R_AVR32_9W_CP, 2, 1, 7, TRUE, 4, unsigned, 0x000007f0),
21599 +
21600 + GENH(R_AVR32_RELATIVE, 0, 2, 32, FALSE, 0, signed, 0xffffffff),
21601 + GENH(R_AVR32_GLOB_DAT, 0, 2, 32, FALSE, 0, dont, 0xffffffff),
21602 + GENH(R_AVR32_JMP_SLOT, 0, 2, 32, FALSE, 0, dont, 0xffffffff),
21603 +
21604 + GENH(R_AVR32_ALIGN, 0, 1, 0, FALSE, 0, unsigned, 0x00000000),
21605 +};
21606 +
21607 +struct elf_reloc_map
21608 +{
21609 + bfd_reloc_code_real_type bfd_reloc_val;
21610 + unsigned char elf_reloc_val;
21611 +};
21612 +
21613 +static const struct elf_reloc_map avr32_reloc_map[] =
21614 +{
21615 + { BFD_RELOC_NONE, R_AVR32_NONE },
21616 +
21617 + { BFD_RELOC_32, R_AVR32_32 },
21618 + { BFD_RELOC_16, R_AVR32_16 },
21619 + { BFD_RELOC_8, R_AVR32_8 },
21620 + { BFD_RELOC_32_PCREL, R_AVR32_32_PCREL },
21621 + { BFD_RELOC_16_PCREL, R_AVR32_16_PCREL },
21622 + { BFD_RELOC_8_PCREL, R_AVR32_8_PCREL },
21623 + { BFD_RELOC_AVR32_DIFF32, R_AVR32_DIFF32 },
21624 + { BFD_RELOC_AVR32_DIFF16, R_AVR32_DIFF16 },
21625 + { BFD_RELOC_AVR32_DIFF8, R_AVR32_DIFF8 },
21626 + { BFD_RELOC_AVR32_GOT32, R_AVR32_GOT32 },
21627 + { BFD_RELOC_AVR32_GOT16, R_AVR32_GOT16 },
21628 + { BFD_RELOC_AVR32_GOT8, R_AVR32_GOT8 },
21629 +
21630 + { BFD_RELOC_AVR32_21S, R_AVR32_21S },
21631 + { BFD_RELOC_AVR32_16U, R_AVR32_16U },
21632 + { BFD_RELOC_AVR32_16S, R_AVR32_16S },
21633 + { BFD_RELOC_AVR32_SUB5, R_AVR32_16S },
21634 + { BFD_RELOC_AVR32_8S_EXT, R_AVR32_8S_EXT },
21635 + { BFD_RELOC_AVR32_8S, R_AVR32_8S },
21636 +
21637 + { BFD_RELOC_AVR32_22H_PCREL, R_AVR32_22H_PCREL },
21638 + { BFD_RELOC_AVR32_18W_PCREL, R_AVR32_18W_PCREL },
21639 + { BFD_RELOC_AVR32_16B_PCREL, R_AVR32_16B_PCREL },
21640 + { BFD_RELOC_AVR32_16N_PCREL, R_AVR32_16N_PCREL },
21641 + { BFD_RELOC_AVR32_11H_PCREL, R_AVR32_11H_PCREL },
21642 + { BFD_RELOC_AVR32_10UW_PCREL, R_AVR32_10UW_PCREL },
21643 + { BFD_RELOC_AVR32_9H_PCREL, R_AVR32_9H_PCREL },
21644 + { BFD_RELOC_AVR32_9UW_PCREL, R_AVR32_9UW_PCREL },
21645 +
21646 + { BFD_RELOC_HI16, R_AVR32_HI16 },
21647 + { BFD_RELOC_LO16, R_AVR32_LO16 },
21648 +
21649 + { BFD_RELOC_AVR32_GOTPC, R_AVR32_GOTPC },
21650 + { BFD_RELOC_AVR32_GOTCALL, R_AVR32_GOTCALL },
21651 + { BFD_RELOC_AVR32_LDA_GOT, R_AVR32_LDA_GOT },
21652 + { BFD_RELOC_AVR32_GOT21S, R_AVR32_GOT21S },
21653 + { BFD_RELOC_AVR32_GOT18SW, R_AVR32_GOT18SW },
21654 + { BFD_RELOC_AVR32_GOT16S, R_AVR32_GOT16S },
21655 + /* GOT7UW should never be generated by the assembler */
21656 +
21657 + { BFD_RELOC_AVR32_32_CPENT, R_AVR32_32_CPENT },
21658 + { BFD_RELOC_AVR32_CPCALL, R_AVR32_CPCALL },
21659 + { BFD_RELOC_AVR32_16_CP, R_AVR32_16_CP },
21660 + { BFD_RELOC_AVR32_9W_CP, R_AVR32_9W_CP },
21661 +
21662 + { BFD_RELOC_AVR32_ALIGN, R_AVR32_ALIGN },
21663 +};
21664 +
21665 +static reloc_howto_type *
21666 +bfd_elf32_bfd_reloc_type_lookup (bfd *abfd ATTRIBUTE_UNUSED,
21667 + bfd_reloc_code_real_type code)
21668 +{
21669 + unsigned int i;
21670 +
21671 + for (i = 0; i < sizeof(avr32_reloc_map) / sizeof(struct elf_reloc_map); i++)
21672 + {
21673 + if (avr32_reloc_map[i].bfd_reloc_val == code)
21674 + return &elf_avr32_howto_table[avr32_reloc_map[i].elf_reloc_val];
21675 + }
21676 +
21677 + return NULL;
21678 +}
21679 +
21680 +static void
21681 +avr32_info_to_howto (bfd *abfd ATTRIBUTE_UNUSED,
21682 + arelent *cache_ptr,
21683 + Elf_Internal_Rela *dst)
21684 +{
21685 + unsigned int r_type;
21686 +
21687 + r_type = ELF32_R_TYPE (dst->r_info);
21688 + BFD_ASSERT (r_type < (unsigned int) R_AVR32_max);
21689 + cache_ptr->howto = &elf_avr32_howto_table[r_type];
21690 +}
21691 +
21692 +\f
21693 +/* AVR32 ELF linker hash table and associated hash entries. */
21694 +
21695 +static struct bfd_hash_entry *
21696 +avr32_elf_link_hash_newfunc(struct bfd_hash_entry *entry,
21697 + struct bfd_hash_table *table,
21698 + const char *string);
21699 +static void
21700 +avr32_elf_copy_indirect_symbol(struct bfd_link_info *info,
21701 + struct elf_link_hash_entry *dir,
21702 + struct elf_link_hash_entry *ind);
21703 +static struct bfd_link_hash_table *
21704 +avr32_elf_link_hash_table_create(bfd *abfd);
21705 +
21706 +/*
21707 + Try to limit memory usage to something reasonable when sorting the
21708 + GOT. If we ever get more than this many references to the same
21709 + symbol, we may need to do something special.
21710 +*/
21711 +#define MAX_NR_GOT_HOLES 8192
21712 +
21713 +/*
21714 + AVR32 GOT entry. We need to keep track of refcounts and offsets
21715 + simultaneously, since we need the offsets during relaxation, and we
21716 + also want to be able to drop GOT entries during relaxation. In
21717 + addition to this, we want to keep the list of GOT entries sorted so
21718 + that we can keep the most-used entries at the lowest offsets.
21719 +*/
21720 +struct got_entry
21721 +{
21722 + struct got_entry *next;
21723 + struct got_entry **pprev;
21724 + int refcount;
21725 + bfd_signed_vma offset;
21726 +};
21727 +
21728 +struct elf_avr32_link_hash_entry
21729 +{
21730 + struct elf_link_hash_entry root;
21731 +
21732 + /* Number of runtime relocations against this symbol. */
21733 + unsigned int possibly_dynamic_relocs;
21734 +
21735 + /* If there are anything but R_AVR32_GOT18 relocations against this
21736 + symbol, it means that someone may be taking the address of the
21737 + function, and we should therefore not create a stub. */
21738 + bfd_boolean no_fn_stub;
21739 +
21740 + /* If there is a R_AVR32_32 relocation in a read-only section
21741 + against this symbol, we could be in trouble. If we're linking a
21742 + shared library or this symbol is defined in one, it means we must
21743 + emit a run-time reloc for it and that's not allowed in read-only
21744 + sections. */
21745 + asection *readonly_reloc_sec;
21746 + bfd_vma readonly_reloc_offset;
21747 +
21748 + /* Record which frag (if any) contains the symbol. This is used
21749 + during relaxation in order to avoid having to update all symbols
21750 + whenever we move something. For local symbols, this information
21751 + is in the local_sym_frag member of struct elf_obj_tdata. */
21752 + struct fragment *sym_frag;
21753 +};
21754 +#define avr32_elf_hash_entry(ent) ((struct elf_avr32_link_hash_entry *)(ent))
21755 +
21756 +struct elf_avr32_link_hash_table
21757 +{
21758 + struct elf_link_hash_table root;
21759 +
21760 + /* Shortcuts to get to dynamic linker sections. */
21761 + asection *sgot;
21762 + asection *srelgot;
21763 + asection *sstub;
21764 +
21765 + /* We use a variation of Pigeonhole Sort to sort the GOT. After the
21766 + initial refcounts have been determined, we initialize
21767 + nr_got_holes to the highest refcount ever seen and allocate an
21768 + array of nr_got_holes entries for got_hole. Each GOT entry is
21769 + then stored in this array at the index given by its refcount.
21770 +
21771 + When a GOT entry has its refcount decremented during relaxation,
21772 + it is moved to a lower index in the got_hole array.
21773 + */
21774 + struct got_entry **got_hole;
21775 + int nr_got_holes;
21776 +
21777 + /* Dynamic relocations to local symbols. Only used when linking a
21778 + shared library and -Bsymbolic is not given. */
21779 + unsigned int local_dynamic_relocs;
21780 +
21781 + bfd_boolean relocations_analyzed;
21782 + bfd_boolean symbols_adjusted;
21783 + bfd_boolean repeat_pass;
21784 + unsigned int relax_iteration;
21785 + unsigned int relax_pass;
21786 +};
21787 +#define avr32_elf_hash_table(p) \
21788 + ((struct elf_avr32_link_hash_table *)((p)->hash))
21789 +
21790 +static struct bfd_hash_entry *
21791 +avr32_elf_link_hash_newfunc(struct bfd_hash_entry *entry,
21792 + struct bfd_hash_table *table,
21793 + const char *string)
21794 +{
21795 + struct elf_avr32_link_hash_entry *ret = avr32_elf_hash_entry(entry);
21796 +
21797 + /* Allocate the structure if it hasn't already been allocated by a
21798 + subclass */
21799 + if (ret == NULL)
21800 + ret = (struct elf_avr32_link_hash_entry *)
21801 + bfd_hash_allocate(table, sizeof(struct elf_avr32_link_hash_entry));
21802 +
21803 + if (ret == NULL)
21804 + return NULL;
21805 +
21806 + memset(ret, 0, sizeof(struct elf_avr32_link_hash_entry));
21807 +
21808 + /* Give the superclass a chance */
21809 + ret = (struct elf_avr32_link_hash_entry *)
21810 + _bfd_elf_link_hash_newfunc((struct bfd_hash_entry *)ret, table, string);
21811 +
21812 + return (struct bfd_hash_entry *)ret;
21813 +}
21814 +
21815 +/* Copy data from an indirect symbol to its direct symbol, hiding the
21816 + old indirect symbol. Process additional relocation information.
21817 + Also called for weakdefs, in which case we just let
21818 + _bfd_elf_link_hash_copy_indirect copy the flags for us. */
21819 +
21820 +static void
21821 +avr32_elf_copy_indirect_symbol(struct bfd_link_info *info,
21822 + struct elf_link_hash_entry *dir,
21823 + struct elf_link_hash_entry *ind)
21824 +{
21825 + struct elf_avr32_link_hash_entry *edir, *eind;
21826 +
21827 + _bfd_elf_link_hash_copy_indirect (info, dir, ind);
21828 +
21829 + if (ind->root.type != bfd_link_hash_indirect)
21830 + return;
21831 +
21832 + edir = (struct elf_avr32_link_hash_entry *)dir;
21833 + eind = (struct elf_avr32_link_hash_entry *)ind;
21834 +
21835 + edir->possibly_dynamic_relocs += eind->possibly_dynamic_relocs;
21836 + edir->no_fn_stub = edir->no_fn_stub || eind->no_fn_stub;
21837 +}
21838 +
21839 +static struct bfd_link_hash_table *
21840 +avr32_elf_link_hash_table_create(bfd *abfd)
21841 +{
21842 + struct elf_avr32_link_hash_table *ret;
21843 +
21844 + ret = bfd_zmalloc(sizeof(*ret));
21845 + if (ret == NULL)
21846 + return NULL;
21847 +
21848 + if (! _bfd_elf_link_hash_table_init(&ret->root, abfd,
21849 + avr32_elf_link_hash_newfunc,
21850 + sizeof (struct elf_avr32_link_hash_entry)))
21851 + {
21852 + free(ret);
21853 + return NULL;
21854 + }
21855 +
21856 + /* Prevent the BFD core from creating bogus got_entry pointers */
21857 + ret->root.init_got_refcount.glist = NULL;
21858 + ret->root.init_plt_refcount.glist = NULL;
21859 +
21860 + return &ret->root.root;
21861 +}
21862 +
21863 +\f
21864 +/* Initial analysis and creation of dynamic sections and symbols */
21865 +
21866 +static asection *
21867 +create_dynamic_section(bfd *dynobj, const char *name, flagword flags,
21868 + unsigned int align_power);
21869 +static struct elf_link_hash_entry *
21870 +create_dynamic_symbol(bfd *dynobj, struct bfd_link_info *info,
21871 + const char *name, asection *sec,
21872 + bfd_vma offset);
21873 +static bfd_boolean
21874 +avr32_elf_create_got_section (bfd *dynobj, struct bfd_link_info *info);
21875 +static bfd_boolean
21876 +avr32_elf_create_dynamic_sections (bfd *dynobj, struct bfd_link_info *info);
21877 +static bfd_boolean
21878 +avr32_check_relocs (bfd *abfd, struct bfd_link_info *info, asection *sec,
21879 + const Elf_Internal_Rela *relocs);
21880 +static bfd_boolean
21881 +avr32_elf_adjust_dynamic_symbol(struct bfd_link_info *info,
21882 + struct elf_link_hash_entry *h);
21883 +
21884 +static asection *
21885 +create_dynamic_section(bfd *dynobj, const char *name, flagword flags,
21886 + unsigned int align_power)
21887 +{
21888 + asection *sec;
21889 +
21890 + sec = bfd_make_section(dynobj, name);
21891 + if (!sec
21892 + || !bfd_set_section_flags(dynobj, sec, flags)
21893 + || !bfd_set_section_alignment(dynobj, sec, align_power))
21894 + return NULL;
21895 +
21896 + return sec;
21897 +}
21898 +
21899 +static struct elf_link_hash_entry *
21900 +create_dynamic_symbol(bfd *dynobj, struct bfd_link_info *info,
21901 + const char *name, asection *sec,
21902 + bfd_vma offset)
21903 +{
21904 + struct bfd_link_hash_entry *bh = NULL;
21905 + struct elf_link_hash_entry *h;
21906 + const struct elf_backend_data *bed = get_elf_backend_data (dynobj);
21907 +
21908 + if (!(_bfd_generic_link_add_one_symbol
21909 + (info, dynobj, name, BSF_GLOBAL, sec, offset, NULL, FALSE,
21910 + bed->collect, &bh)))
21911 + return NULL;
21912 +
21913 + h = (struct elf_link_hash_entry *)bh;
21914 + h->def_regular = 1;
21915 + h->type = STT_OBJECT;
21916 + h->other = STV_HIDDEN;
21917 +
21918 + return h;
21919 +}
21920 +
21921 +static bfd_boolean
21922 +avr32_elf_create_got_section (bfd *dynobj, struct bfd_link_info *info)
21923 +{
21924 + struct elf_avr32_link_hash_table *htab;
21925 + flagword flags;
21926 + const struct elf_backend_data *bed = get_elf_backend_data (dynobj);
21927 +
21928 + htab = avr32_elf_hash_table(info);
21929 + flags = bed->dynamic_sec_flags;
21930 +
21931 + if (htab->sgot)
21932 + return TRUE;
21933 +
21934 + htab->sgot = create_dynamic_section(dynobj, ".got", flags, 2);
21935 + if (!htab->srelgot)
21936 + htab->srelgot = create_dynamic_section(dynobj, ".rela.got",
21937 + flags | SEC_READONLY, 2);
21938 +
21939 + if (!htab->sgot || !htab->srelgot)
21940 + return FALSE;
21941 +
21942 + htab->root.hgot = create_dynamic_symbol(dynobj, info, "_GLOBAL_OFFSET_TABLE_",
21943 + htab->sgot, 0);
21944 + if (!htab->root.hgot)
21945 + return FALSE;
21946 +
21947 + /* Make room for the GOT header */
21948 + htab->sgot->size += bed->got_header_size;
21949 +
21950 + return TRUE;
21951 +}
21952 +
21953 +/* (1) Create all dynamic (i.e. linker generated) sections that we may
21954 + need during the link */
21955 +
21956 +static bfd_boolean
21957 +avr32_elf_create_dynamic_sections (bfd *dynobj, struct bfd_link_info *info)
21958 +{
21959 + struct elf_avr32_link_hash_table *htab;
21960 + flagword flags;
21961 + const struct elf_backend_data *bed = get_elf_backend_data (dynobj);
21962 +
21963 + pr_debug("(1) create dynamic sections\n");
21964 +
21965 + htab = avr32_elf_hash_table(info);
21966 + flags = bed->dynamic_sec_flags;
21967 +
21968 + if (!avr32_elf_create_got_section (dynobj, info))
21969 + return FALSE;
21970 +
21971 + if (!htab->sstub)
21972 + htab->sstub = create_dynamic_section(dynobj, ".stub",
21973 + flags | SEC_READONLY | SEC_CODE, 2);
21974 +
21975 + if (!htab->sstub)
21976 + return FALSE;
21977 +
21978 + return TRUE;
21979 +}
21980 +
21981 +/* (2) Go through all the relocs and count any potential GOT- or
21982 + PLT-references to each symbol */
21983 +
21984 +static bfd_boolean
21985 +avr32_check_relocs (bfd *abfd, struct bfd_link_info *info, asection *sec,
21986 + const Elf_Internal_Rela *relocs)
21987 +{
21988 + Elf_Internal_Shdr *symtab_hdr;
21989 + struct elf_avr32_link_hash_table *htab;
21990 + struct elf_link_hash_entry **sym_hashes;
21991 + const Elf_Internal_Rela *rel, *rel_end;
21992 + struct got_entry **local_got_ents;
21993 + struct got_entry *got;
21994 + const struct elf_backend_data *bed = get_elf_backend_data (abfd);
21995 + asection *sgot;
21996 + bfd *dynobj;
21997 +
21998 + pr_debug("(2) check relocs for %s:<%s> (size 0x%lx)\n",
21999 + abfd->filename, sec->name, sec->size);
22000 +
22001 + if (info->relocatable)
22002 + return TRUE;
22003 +
22004 + dynobj = elf_hash_table(info)->dynobj;
22005 + symtab_hdr = &elf_tdata(abfd)->symtab_hdr;
22006 + sym_hashes = elf_sym_hashes(abfd);
22007 + htab = avr32_elf_hash_table(info);
22008 + local_got_ents = elf_local_got_ents(abfd);
22009 + sgot = htab->sgot;
22010 +
22011 + rel_end = relocs + sec->reloc_count;
22012 + for (rel = relocs; rel < rel_end; rel++)
22013 + {
22014 + unsigned long r_symndx, r_type;
22015 + struct elf_avr32_link_hash_entry *h;
22016 +
22017 + r_symndx = ELF32_R_SYM(rel->r_info);
22018 + r_type = ELF32_R_TYPE(rel->r_info);
22019 +
22020 + /* Local symbols use local_got_ents, while others store the same
22021 + information in the hash entry */
22022 + if (r_symndx < symtab_hdr->sh_info)
22023 + {
22024 + pr_debug(" (2a) processing local symbol %lu\n", r_symndx);
22025 + h = NULL;
22026 + }
22027 + else
22028 + {
22029 + h = (struct elf_avr32_link_hash_entry *)
22030 + sym_hashes[r_symndx - symtab_hdr->sh_info];
22031 + while (h->root.type == bfd_link_hash_indirect
22032 + || h->root.type == bfd_link_hash_warning)
22033 + h = (struct elf_avr32_link_hash_entry *)h->root.root.u.i.link;
22034 + pr_debug(" (2a) processing symbol %s\n", h->root.root.root.string);
22035 + }
22036 +
22037 + /* Some relocs require special sections to be created. */
22038 + switch (r_type)
22039 + {
22040 + case R_AVR32_GOT32:
22041 + case R_AVR32_GOT16:
22042 + case R_AVR32_GOT8:
22043 + case R_AVR32_GOT21S:
22044 + case R_AVR32_GOT18SW:
22045 + case R_AVR32_GOT16S:
22046 + case R_AVR32_GOT7UW:
22047 + case R_AVR32_LDA_GOT:
22048 + case R_AVR32_GOTCALL:
22049 + if (rel->r_addend)
22050 + {
22051 + if (info->callbacks->reloc_dangerous
22052 + (info, _("Non-zero addend on GOT-relative relocation"),
22053 + abfd, sec, rel->r_offset) == FALSE)
22054 + return FALSE;
22055 + }
22056 + /* fall through */
22057 + case R_AVR32_GOTPC:
22058 + if (dynobj == NULL)
22059 + elf_hash_table(info)->dynobj = dynobj = abfd;
22060 + if (sgot == NULL && !avr32_elf_create_got_section(dynobj, info))
22061 + return FALSE;
22062 + break;
22063 + case R_AVR32_32:
22064 + /* We may need to create .rela.dyn later on. */
22065 + if (dynobj == NULL
22066 + && (info->shared || h != NULL)
22067 + && (sec->flags & SEC_ALLOC))
22068 + elf_hash_table(info)->dynobj = dynobj = abfd;
22069 + break;
22070 + }
22071 +
22072 + if (h != NULL && r_type != R_AVR32_GOT18SW)
22073 + h->no_fn_stub = TRUE;
22074 +
22075 + switch (r_type)
22076 + {
22077 + case R_AVR32_GOT32:
22078 + case R_AVR32_GOT16:
22079 + case R_AVR32_GOT8:
22080 + case R_AVR32_GOT21S:
22081 + case R_AVR32_GOT18SW:
22082 + case R_AVR32_GOT16S:
22083 + case R_AVR32_GOT7UW:
22084 + case R_AVR32_LDA_GOT:
22085 + case R_AVR32_GOTCALL:
22086 + if (h != NULL)
22087 + {
22088 + got = h->root.got.glist;
22089 + if (!got)
22090 + {
22091 + got = bfd_zalloc(abfd, sizeof(struct got_entry));
22092 + if (!got)
22093 + return FALSE;
22094 + h->root.got.glist = got;
22095 + }
22096 + }
22097 + else
22098 + {
22099 + if (!local_got_ents)
22100 + {
22101 + bfd_size_type size;
22102 + bfd_size_type i;
22103 + struct got_entry *tmp_entry;
22104 +
22105 + size = symtab_hdr->sh_info;
22106 + size *= sizeof(struct got_entry *) + sizeof(struct got_entry);
22107 + local_got_ents = bfd_zalloc(abfd, size);
22108 + if (!local_got_ents)
22109 + return FALSE;
22110 +
22111 + elf_local_got_ents(abfd) = local_got_ents;
22112 +
22113 + tmp_entry = (struct got_entry *)(local_got_ents
22114 + + symtab_hdr->sh_info);
22115 + for (i = 0; i < symtab_hdr->sh_info; i++)
22116 + local_got_ents[i] = &tmp_entry[i];
22117 + }
22118 +
22119 + got = local_got_ents[r_symndx];
22120 + }
22121 +
22122 + got->refcount++;
22123 + if (got->refcount > htab->nr_got_holes)
22124 + htab->nr_got_holes = got->refcount;
22125 + break;
22126 +
22127 + case R_AVR32_32:
22128 + if ((info->shared || h != NULL)
22129 + && (sec->flags & SEC_ALLOC))
22130 + {
22131 + if (htab->srelgot == NULL)
22132 + {
22133 + htab->srelgot = create_dynamic_section(dynobj, ".rela.got",
22134 + bed->dynamic_sec_flags
22135 + | SEC_READONLY, 2);
22136 + if (htab->srelgot == NULL)
22137 + return FALSE;
22138 + }
22139 +
22140 + if (sec->flags & SEC_READONLY
22141 + && !h->readonly_reloc_sec)
22142 + {
22143 + h->readonly_reloc_sec = sec;
22144 + h->readonly_reloc_offset = rel->r_offset;
22145 + }
22146 +
22147 + if (h != NULL)
22148 + {
22149 + pr_debug("Non-GOT reference to symbol %s\n",
22150 + h->root.root.root.string);
22151 + h->possibly_dynamic_relocs++;
22152 + }
22153 + else
22154 + {
22155 + pr_debug("Non-GOT reference to local symbol %lu\n",
22156 + r_symndx);
22157 + htab->local_dynamic_relocs++;
22158 + }
22159 + }
22160 +
22161 + break;
22162 +
22163 + /* TODO: GNU_VTINHERIT and GNU_VTENTRY */
22164 + }
22165 + }
22166 +
22167 + return TRUE;
22168 +}
22169 +
22170 +/* (3) Adjust a symbol defined by a dynamic object and referenced by a
22171 + regular object. The current definition is in some section of the
22172 + dynamic object, but we're not including those sections. We have to
22173 + change the definition to something the rest of the link can
22174 + understand. */
22175 +
22176 +static bfd_boolean
22177 +avr32_elf_adjust_dynamic_symbol(struct bfd_link_info *info,
22178 + struct elf_link_hash_entry *h)
22179 +{
22180 + struct elf_avr32_link_hash_table *htab;
22181 + struct elf_avr32_link_hash_entry *havr;
22182 + bfd *dynobj;
22183 +
22184 + pr_debug("(3) adjust dynamic symbol %s\n", h->root.root.string);
22185 +
22186 + htab = avr32_elf_hash_table(info);
22187 + havr = (struct elf_avr32_link_hash_entry *)h;
22188 + dynobj = elf_hash_table(info)->dynobj;
22189 +
22190 + /* Make sure we know what is going on here. */
22191 + BFD_ASSERT (dynobj != NULL
22192 + && (h->u.weakdef != NULL
22193 + || (h->def_dynamic
22194 + && h->ref_regular
22195 + && !h->def_regular)));
22196 +
22197 + /* We don't want dynamic relocations in read-only sections. */
22198 + if (havr->readonly_reloc_sec)
22199 + {
22200 + if (info->callbacks->reloc_dangerous
22201 + (info, _("dynamic relocation in read-only section"),
22202 + havr->readonly_reloc_sec->owner, havr->readonly_reloc_sec,
22203 + havr->readonly_reloc_offset) == FALSE)
22204 + return FALSE;
22205 + }
22206 +
22207 + /* If this is a function, create a stub if possible and set the
22208 + symbol to the stub location. */
22209 + if (0 && !havr->no_fn_stub)
22210 + {
22211 + if (!h->def_regular)
22212 + {
22213 + asection *s = htab->sstub;
22214 +
22215 + BFD_ASSERT(s != NULL);
22216 +
22217 + h->root.u.def.section = s;
22218 + h->root.u.def.value = s->size;
22219 + h->plt.offset = s->size;
22220 + s->size += AVR32_FUNCTION_STUB_SIZE;
22221 +
22222 + return TRUE;
22223 + }
22224 + }
22225 + else if (h->type == STT_FUNC)
22226 + {
22227 + /* This will set the entry for this symbol in the GOT to 0, and
22228 + the dynamic linker will take care of this. */
22229 + h->root.u.def.value = 0;
22230 + return TRUE;
22231 + }
22232 +
22233 + /* If this is a weak symbol, and there is a real definition, the
22234 + processor independent code will have arranged for us to see the
22235 + real definition first, and we can just use the same value. */
22236 + if (h->u.weakdef != NULL)
22237 + {
22238 + BFD_ASSERT(h->u.weakdef->root.type == bfd_link_hash_defined
22239 + || h->u.weakdef->root.type == bfd_link_hash_defweak);
22240 + h->root.u.def.section = h->u.weakdef->root.u.def.section;
22241 + h->root.u.def.value = h->u.weakdef->root.u.def.value;
22242 + return TRUE;
22243 + }
22244 +
22245 + /* This is a reference to a symbol defined by a dynamic object which
22246 + is not a function. */
22247 +
22248 + return TRUE;
22249 +}
22250 +
22251 +\f
22252 +/* Garbage-collection of unused sections */
22253 +
22254 +static asection *
22255 +avr32_elf_gc_mark_hook(asection *sec,
22256 + struct bfd_link_info *info ATTRIBUTE_UNUSED,
22257 + Elf_Internal_Rela *rel,
22258 + struct elf_link_hash_entry *h,
22259 + Elf_Internal_Sym *sym)
22260 +{
22261 + if (h)
22262 + {
22263 + switch (ELF32_R_TYPE(rel->r_info))
22264 + {
22265 + /* TODO: VTINHERIT/VTENTRY */
22266 + default:
22267 + switch (h->root.type)
22268 + {
22269 + case bfd_link_hash_defined:
22270 + case bfd_link_hash_defweak:
22271 + return h->root.u.def.section;
22272 +
22273 + case bfd_link_hash_common:
22274 + return h->root.u.c.p->section;
22275 +
22276 + default:
22277 + break;
22278 + }
22279 + }
22280 + }
22281 + else
22282 + return bfd_section_from_elf_index(sec->owner, sym->st_shndx);
22283 +
22284 + return NULL;
22285 +}
22286 +
22287 +/* Update the GOT entry reference counts for the section being removed. */
22288 +static bfd_boolean
22289 +avr32_elf_gc_sweep_hook(bfd *abfd,
22290 + struct bfd_link_info *info ATTRIBUTE_UNUSED,
22291 + asection *sec,
22292 + const Elf_Internal_Rela *relocs)
22293 +{
22294 + Elf_Internal_Shdr *symtab_hdr;
22295 + struct elf_avr32_link_hash_entry **sym_hashes;
22296 + struct got_entry **local_got_ents;
22297 + const Elf_Internal_Rela *rel, *relend;
22298 +
22299 + if (!(sec->flags & SEC_ALLOC))
22300 + return TRUE;
22301 +
22302 + symtab_hdr = &elf_tdata(abfd)->symtab_hdr;
22303 + sym_hashes = (struct elf_avr32_link_hash_entry **)elf_sym_hashes(abfd);
22304 + local_got_ents = elf_local_got_ents(abfd);
22305 +
22306 + relend = relocs + sec->reloc_count;
22307 + for (rel = relocs; rel < relend; rel++)
22308 + {
22309 + unsigned long r_symndx;
22310 + unsigned int r_type;
22311 + struct elf_avr32_link_hash_entry *h = NULL;
22312 +
22313 + r_symndx = ELF32_R_SYM(rel->r_info);
22314 + if (r_symndx >= symtab_hdr->sh_info)
22315 + {
22316 + h = sym_hashes[r_symndx - symtab_hdr->sh_info];
22317 + while (h->root.root.type == bfd_link_hash_indirect
22318 + || h->root.root.type == bfd_link_hash_warning)
22319 + h = (struct elf_avr32_link_hash_entry *)h->root.root.u.i.link;
22320 + }
22321 +
22322 + r_type = ELF32_R_TYPE(rel->r_info);
22323 +
22324 + switch (r_type)
22325 + {
22326 + case R_AVR32_GOT32:
22327 + case R_AVR32_GOT16:
22328 + case R_AVR32_GOT8:
22329 + case R_AVR32_GOT21S:
22330 + case R_AVR32_GOT18SW:
22331 + case R_AVR32_GOT16S:
22332 + case R_AVR32_GOT7UW:
22333 + case R_AVR32_LDA_GOT:
22334 + case R_AVR32_GOTCALL:
22335 + if (h)
22336 + h->root.got.glist->refcount--;
22337 + else
22338 + local_got_ents[r_symndx]->refcount--;
22339 + break;
22340 +
22341 + case R_AVR32_32:
22342 + if (info->shared || h)
22343 + {
22344 + if (h)
22345 + h->possibly_dynamic_relocs--;
22346 + else
22347 + avr32_elf_hash_table(info)->local_dynamic_relocs--;
22348 + }
22349 +
22350 + default:
22351 + break;
22352 + }
22353 + }
22354 +
22355 + return TRUE;
22356 +}
22357 +\f
22358 +/* Sizing and refcounting of dynamic sections */
22359 +
22360 +static void
22361 +insert_got_entry(struct elf_avr32_link_hash_table *htab, struct got_entry *got);
22362 +static void
22363 +unref_got_entry(struct elf_avr32_link_hash_table *htab, struct got_entry *got);
22364 +static void
22365 +ref_got_entry(struct elf_avr32_link_hash_table *htab, struct got_entry *got);
22366 +static bfd_boolean
22367 +assign_got_offsets(struct elf_avr32_link_hash_table *htab);
22368 +static bfd_boolean
22369 +allocate_dynrelocs(struct elf_link_hash_entry *h, void *_info);
22370 +static bfd_boolean
22371 +avr32_elf_size_dynamic_sections (bfd *output_bfd,
22372 + struct bfd_link_info *info);
22373 +
22374 +static void
22375 +insert_got_entry(struct elf_avr32_link_hash_table *htab, struct got_entry *got)
22376 +{
22377 + /* TODO: Support got_refcount > htab->nr_got_holes by using a
22378 + different sort algorithm for those. */
22379 + BFD_ASSERT(got->refcount <= htab->nr_got_holes);
22380 +
22381 + got->pprev = &htab->got_hole[got->refcount];
22382 + got->next = htab->got_hole[got->refcount];
22383 + if (got->next)
22384 + got->next->pprev = &got->next;
22385 +
22386 + htab->got_hole[got->refcount] = got;
22387 +}
22388 +
22389 +/* Decrement the refcount of a GOT entry and update its position in
22390 + the pigeonhole array. */
22391 +static void
22392 +unref_got_entry(struct elf_avr32_link_hash_table *htab, struct got_entry *got)
22393 +{
22394 + BFD_ASSERT(got->refcount <= htab->nr_got_holes);
22395 + BFD_ASSERT(got->refcount > 0);
22396 +
22397 + if (got->next)
22398 + got->next->pprev = got->pprev;
22399 +
22400 + *(got->pprev) = got->next;
22401 + got->refcount--;
22402 + insert_got_entry(htab, got);
22403 +}
22404 +
22405 +static void
22406 +ref_got_entry(struct elf_avr32_link_hash_table *htab, struct got_entry *got)
22407 +{
22408 + if (got->next)
22409 + got->next->pprev = got->pprev;
22410 +
22411 + *(got->pprev) = got->next;
22412 + got->refcount++;
22413 + insert_got_entry(htab, got);
22414 +
22415 + BFD_ASSERT(got->refcount > 0);
22416 + BFD_ASSERT(got->refcount <= htab->nr_got_holes);
22417 +}
22418 +
22419 +/* Assign offsets to all GOT entries we intend to keep. The entries
22420 + that are referenced most often are placed at low offsets so that we
22421 + can use compact instructions as much as possible.
22422 +
22423 + Returns TRUE if any offsets or the total size of the GOT changed. */
22424 +
22425 +static bfd_boolean
22426 +assign_got_offsets(struct elf_avr32_link_hash_table *htab)
22427 +{
22428 + struct got_entry *got;
22429 + bfd_size_type got_size = 0;
22430 + bfd_boolean changed = FALSE;
22431 + bfd_signed_vma offset;
22432 + int i;
22433 +
22434 + /* The GOT header provides the address of the DYNAMIC segment, so
22435 + we need that even if the GOT is otherwise empty. */
22436 + if (htab->root.dynamic_sections_created)
22437 + got_size = AVR32_GOT_HEADER_SIZE;
22438 +
22439 + for (i = htab->nr_got_holes; i > 0; i--)
22440 + {
22441 + got = htab->got_hole[i];
22442 + while (got)
22443 + {
22444 + if (got->refcount > 0)
22445 + {
22446 + offset = got_size;
22447 + if (got->offset != offset)
22448 + {
22449 + RDBG("GOT offset changed: %ld -> %ld\n",
22450 + got->offset, offset);
22451 + changed = TRUE;
22452 + }
22453 + got->offset = offset;
22454 + got_size += 4;
22455 + }
22456 + got = got->next;
22457 + }
22458 + }
22459 +
22460 + if (htab->sgot->size != got_size)
22461 + {
22462 + RDBG("GOT size changed: %lu -> %lu\n", htab->sgot->size,
22463 + got_size);
22464 + changed = TRUE;
22465 + }
22466 + htab->sgot->size = got_size;
22467 +
22468 + RDBG("assign_got_offsets: total size %lu (%s)\n",
22469 + got_size, changed ? "changed" : "no change");
22470 +
22471 + return changed;
22472 +}
22473 +
22474 +static bfd_boolean
22475 +allocate_dynrelocs(struct elf_link_hash_entry *h, void *_info)
22476 +{
22477 + struct bfd_link_info *info = _info;
22478 + struct elf_avr32_link_hash_table *htab;
22479 + struct elf_avr32_link_hash_entry *havr;
22480 + struct got_entry *got;
22481 +
22482 + pr_debug(" (4b) allocate_dynrelocs: %s\n", h->root.root.string);
22483 +
22484 + if (h->root.type == bfd_link_hash_indirect)
22485 + return TRUE;
22486 +
22487 + if (h->root.type == bfd_link_hash_warning)
22488 + /* When warning symbols are created, they **replace** the "real"
22489 + entry in the hash table, thus we never get to see the real
22490 + symbol in a hash traversal. So look at it now. */
22491 + h = (struct elf_link_hash_entry *) h->root.u.i.link;
22492 +
22493 + htab = avr32_elf_hash_table(info);
22494 + havr = (struct elf_avr32_link_hash_entry *)h;
22495 +
22496 + got = h->got.glist;
22497 +
22498 + /* If got is NULL, the symbol is never referenced through the GOT */
22499 + if (got && got->refcount > 0)
22500 + {
22501 + insert_got_entry(htab, got);
22502 +
22503 + /* Shared libraries need relocs for all GOT entries unless the
22504 + symbol is forced local or -Bsymbolic is used. Others need
22505 + relocs for everything that is not guaranteed to be defined in
22506 + a regular object. */
22507 + if ((info->shared
22508 + && !info->symbolic
22509 + && h->dynindx != -1)
22510 + || (htab->root.dynamic_sections_created
22511 + && h->def_dynamic
22512 + && !h->def_regular))
22513 + htab->srelgot->size += sizeof(Elf32_External_Rela);
22514 + }
22515 +
22516 + if (havr->possibly_dynamic_relocs
22517 + && (info->shared
22518 + || (elf_hash_table(info)->dynamic_sections_created
22519 + && h->def_dynamic
22520 + && !h->def_regular)))
22521 + {
22522 + pr_debug("Allocating %d dynamic reloc against symbol %s...\n",
22523 + havr->possibly_dynamic_relocs, h->root.root.string);
22524 + htab->srelgot->size += (havr->possibly_dynamic_relocs
22525 + * sizeof(Elf32_External_Rela));
22526 + }
22527 +
22528 + return TRUE;
22529 +}
22530 +
22531 +/* (4) Calculate the sizes of the linker-generated sections and
22532 + allocate memory for them. */
22533 +
22534 +static bfd_boolean
22535 +avr32_elf_size_dynamic_sections (bfd *output_bfd,
22536 + struct bfd_link_info *info)
22537 +{
22538 + struct elf_avr32_link_hash_table *htab;
22539 + bfd *dynobj;
22540 + asection *s;
22541 + bfd *ibfd;
22542 + bfd_boolean relocs;
22543 +
22544 + pr_debug("(4) size dynamic sections\n");
22545 +
22546 + htab = avr32_elf_hash_table(info);
22547 + dynobj = htab->root.dynobj;
22548 + BFD_ASSERT(dynobj != NULL);
22549 +
22550 + if (htab->root.dynamic_sections_created)
22551 + {
22552 + /* Initialize the contents of the .interp section to the name of
22553 + the dynamic loader */
22554 + if (info->executable)
22555 + {
22556 + s = bfd_get_section_by_name(dynobj, ".interp");
22557 + BFD_ASSERT(s != NULL);
22558 + s->size = sizeof(ELF_DYNAMIC_INTERPRETER);
22559 + s->contents = (unsigned char *)ELF_DYNAMIC_INTERPRETER;
22560 + }
22561 + }
22562 +
22563 + if (htab->nr_got_holes > 0)
22564 + {
22565 + /* Allocate holes for the pigeonhole sort algorithm */
22566 + pr_debug("Highest GOT refcount: %d\n", htab->nr_got_holes);
22567 + if (htab->nr_got_holes >= MAX_NR_GOT_HOLES)
22568 + {
22569 + /* TODO: Do something clever (different sorting algorithm) */
22570 + _bfd_error_handler(_("Highest refcount %d too high (max %d)\n"),
22571 + htab->nr_got_holes, MAX_NR_GOT_HOLES);
22572 + bfd_set_error(bfd_error_no_memory);
22573 + return FALSE;
22574 + }
22575 + htab->got_hole = bfd_zalloc(output_bfd,
22576 + sizeof(struct got_entry *)
22577 + * (htab->nr_got_holes + 1));
22578 + if (!htab->got_hole)
22579 + return FALSE;
22580 +
22581 + /* Set up .got offsets for local syms. */
22582 + for (ibfd = info->input_bfds; ibfd != NULL; ibfd = ibfd->link_next)
22583 + {
22584 + struct got_entry **local_got;
22585 + struct got_entry **end_local_got;
22586 + Elf_Internal_Shdr *symtab_hdr;
22587 + bfd_size_type locsymcount;
22588 +
22589 + pr_debug(" (4a) processing file %s...\n", ibfd->filename);
22590 +
22591 + BFD_ASSERT(bfd_get_flavour(ibfd) == bfd_target_elf_flavour);
22592 +
22593 + local_got = elf_local_got_ents(ibfd);
22594 + if (!local_got)
22595 + continue;
22596 +
22597 + symtab_hdr = &elf_tdata(ibfd)->symtab_hdr;
22598 + locsymcount = symtab_hdr->sh_info;
22599 + end_local_got = local_got + locsymcount;
22600 +
22601 + for (; local_got < end_local_got; ++local_got)
22602 + insert_got_entry(htab, *local_got);
22603 + }
22604 + }
22605 +
22606 + /* Allocate global sym .got entries and space for global sym
22607 + dynamic relocs */
22608 + elf_link_hash_traverse(&htab->root, allocate_dynrelocs, info);
22609 +
22610 + /* Now that we have sorted the GOT entries, we are ready to
22611 + assign offsets and determine the initial size of the GOT. */
22612 + if (htab->sgot)
22613 + assign_got_offsets(htab);
22614 +
22615 + /* Allocate space for local sym dynamic relocs */
22616 + BFD_ASSERT(htab->local_dynamic_relocs == 0 || info->shared);
22617 + if (htab->local_dynamic_relocs)
22618 + htab->srelgot->size += (htab->local_dynamic_relocs
22619 + * sizeof(Elf32_External_Rela));
22620 +
22621 + /* We now have determined the sizes of the various dynamic
22622 + sections. Allocate memory for them. */
22623 + relocs = FALSE;
22624 + for (s = dynobj->sections; s; s = s->next)
22625 + {
22626 + if ((s->flags & SEC_LINKER_CREATED) == 0)
22627 + continue;
22628 +
22629 + if (s == htab->sgot
22630 + || s == htab->sstub)
22631 + {
22632 + /* Strip this section if we don't need it */
22633 + }
22634 + else if (strncmp (bfd_get_section_name(dynobj, s), ".rela", 5) == 0)
22635 + {
22636 + if (s->size != 0)
22637 + relocs = TRUE;
22638 +
22639 + s->reloc_count = 0;
22640 + }
22641 + else
22642 + {
22643 + /* It's not one of our sections */
22644 + continue;
22645 + }
22646 +
22647 + if (s->size == 0)
22648 + {
22649 + /* Strip unneeded sections */
22650 + pr_debug("Stripping section %s from output...\n", s->name);
22651 + /* deleted function in 2.17
22652 + _bfd_strip_section_from_output(info, s);
22653 + */
22654 + continue;
22655 + }
22656 +
22657 + s->contents = bfd_zalloc(dynobj, s->size);
22658 + if (s->contents == NULL)
22659 + return FALSE;
22660 + }
22661 +
22662 + if (htab->root.dynamic_sections_created)
22663 + {
22664 + /* Add some entries to the .dynamic section. We fill in the
22665 + values later, in sh_elf_finish_dynamic_sections, but we
22666 + must add the entries now so that we get the correct size for
22667 + the .dynamic section. The DT_DEBUG entry is filled in by the
22668 + dynamic linker and used by the debugger. */
22669 +#define add_dynamic_entry(TAG, VAL) _bfd_elf_add_dynamic_entry(info, TAG, VAL)
22670 +
22671 + if (!add_dynamic_entry(DT_PLTGOT, 0))
22672 + return FALSE;
22673 + if (!add_dynamic_entry(DT_AVR32_GOTSZ, 0))
22674 + return FALSE;
22675 +
22676 + if (info->executable)
22677 + {
22678 + if (!add_dynamic_entry(DT_DEBUG, 0))
22679 + return FALSE;
22680 + }
22681 + if (relocs)
22682 + {
22683 + if (!add_dynamic_entry(DT_RELA, 0)
22684 + || !add_dynamic_entry(DT_RELASZ, 0)
22685 + || !add_dynamic_entry(DT_RELAENT,
22686 + sizeof(Elf32_External_Rela)))
22687 + return FALSE;
22688 + }
22689 + }
22690 +#undef add_dynamic_entry
22691 +
22692 + return TRUE;
22693 +}
22694 +
22695 +\f
22696 +/* Access to internal relocations, section contents and symbols.
22697 + (stolen from the xtensa port) */
22698 +
22699 +static Elf_Internal_Rela *
22700 +retrieve_internal_relocs (bfd *abfd, asection *sec, bfd_boolean keep_memory);
22701 +static void
22702 +pin_internal_relocs (asection *sec, Elf_Internal_Rela *internal_relocs);
22703 +static void
22704 +release_internal_relocs (asection *sec, Elf_Internal_Rela *internal_relocs);
22705 +static bfd_byte *
22706 +retrieve_contents (bfd *abfd, asection *sec, bfd_boolean keep_memory);
22707 +/*
22708 +static void
22709 +pin_contents (asection *sec, bfd_byte *contents);
22710 +*/
22711 +static void
22712 +release_contents (asection *sec, bfd_byte *contents);
22713 +static Elf_Internal_Sym *
22714 +retrieve_local_syms (bfd *input_bfd, bfd_boolean keep_memory);
22715 +/*
22716 +static void
22717 +pin_local_syms (bfd *input_bfd, Elf_Internal_Sym *isymbuf);
22718 +*/
22719 +static void
22720 +release_local_syms (bfd *input_bfd, Elf_Internal_Sym *isymbuf);
22721 +
22722 +/* During relaxation, we need to modify relocations, section contents,
22723 + and symbol definitions, and we need to keep the original values from
22724 + being reloaded from the input files, i.e., we need to "pin" the
22725 + modified values in memory. We also want to continue to observe the
22726 + setting of the "keep-memory" flag. The following functions wrap the
22727 + standard BFD functions to take care of this for us. */
22728 +
22729 +static Elf_Internal_Rela *
22730 +retrieve_internal_relocs (bfd *abfd, asection *sec, bfd_boolean keep_memory)
22731 +{
22732 + /* _bfd_elf_link_read_relocs knows about caching, so no need for us
22733 + to be clever here. */
22734 + return _bfd_elf_link_read_relocs(abfd, sec, NULL, NULL, keep_memory);
22735 +}
22736 +
22737 +static void
22738 +pin_internal_relocs (asection *sec, Elf_Internal_Rela *internal_relocs)
22739 +{
22740 + elf_section_data (sec)->relocs = internal_relocs;
22741 +}
22742 +
22743 +static void
22744 +release_internal_relocs (asection *sec, Elf_Internal_Rela *internal_relocs)
22745 +{
22746 + if (internal_relocs
22747 + && elf_section_data (sec)->relocs != internal_relocs)
22748 + free (internal_relocs);
22749 +}
22750 +
22751 +static bfd_byte *
22752 +retrieve_contents (bfd *abfd, asection *sec, bfd_boolean keep_memory)
22753 +{
22754 + bfd_byte *contents;
22755 + bfd_size_type sec_size;
22756 +
22757 + sec_size = bfd_get_section_limit (abfd, sec);
22758 + contents = elf_section_data (sec)->this_hdr.contents;
22759 +
22760 + if (contents == NULL && sec_size != 0)
22761 + {
22762 + if (!bfd_malloc_and_get_section (abfd, sec, &contents))
22763 + {
22764 + if (contents)
22765 + free (contents);
22766 + return NULL;
22767 + }
22768 + if (keep_memory)
22769 + elf_section_data (sec)->this_hdr.contents = contents;
22770 + }
22771 + return contents;
22772 +}
22773 +
22774 +/*
22775 +static void
22776 +pin_contents (asection *sec, bfd_byte *contents)
22777 +{
22778 + elf_section_data (sec)->this_hdr.contents = contents;
22779 +}
22780 +*/
22781 +static void
22782 +release_contents (asection *sec, bfd_byte *contents)
22783 +{
22784 + if (contents && elf_section_data (sec)->this_hdr.contents != contents)
22785 + free (contents);
22786 +}
22787 +
22788 +static Elf_Internal_Sym *
22789 +retrieve_local_syms (bfd *input_bfd, bfd_boolean keep_memory)
22790 +{
22791 + Elf_Internal_Shdr *symtab_hdr;
22792 + Elf_Internal_Sym *isymbuf;
22793 + size_t locsymcount;
22794 +
22795 + symtab_hdr = &elf_tdata (input_bfd)->symtab_hdr;
22796 + locsymcount = symtab_hdr->sh_info;
22797 +
22798 + isymbuf = (Elf_Internal_Sym *) symtab_hdr->contents;
22799 + if (isymbuf == NULL && locsymcount != 0)
22800 + {
22801 + isymbuf = bfd_elf_get_elf_syms (input_bfd, symtab_hdr, locsymcount, 0,
22802 + NULL, NULL, NULL);
22803 + if (isymbuf && keep_memory)
22804 + symtab_hdr->contents = (unsigned char *) isymbuf;
22805 + }
22806 +
22807 + return isymbuf;
22808 +}
22809 +
22810 +/*
22811 +static void
22812 +pin_local_syms (bfd *input_bfd, Elf_Internal_Sym *isymbuf)
22813 +{
22814 + elf_tdata (input_bfd)->symtab_hdr.contents = (unsigned char *)isymbuf;
22815 +}
22816 +
22817 +*/
22818 +static void
22819 +release_local_syms (bfd *input_bfd, Elf_Internal_Sym *isymbuf)
22820 +{
22821 + if (isymbuf && (elf_tdata (input_bfd)->symtab_hdr.contents
22822 + != (unsigned char *)isymbuf))
22823 + free (isymbuf);
22824 +}
22825 +
22826 +\f/* Data structures used during relaxation. */
22827 +
22828 +enum relax_state_id {
22829 + RS_ERROR = -1,
22830 + RS_NONE = 0,
22831 + RS_ALIGN,
22832 + RS_CPENT,
22833 + RS_PIC_CALL,
22834 + RS_PIC_MCALL,
22835 + RS_PIC_RCALL2,
22836 + RS_PIC_RCALL1,
22837 + RS_PIC_LDA,
22838 + RS_PIC_LDW4,
22839 + RS_PIC_LDW3,
22840 + RS_PIC_SUB5,
22841 + RS_NOPIC_MCALL,
22842 + RS_NOPIC_RCALL2,
22843 + RS_NOPIC_RCALL1,
22844 + RS_NOPIC_LDW4,
22845 + RS_NOPIC_LDDPC,
22846 + RS_NOPIC_SUB5,
22847 +#ifdef DHRYSTONE_FIX
22848 + RS_NOPIC_MOV2,
22849 + RS_NOPIC_MOV1,
22850 +#endif
22851 + RS_RCALL2,
22852 + RS_RCALL1,
22853 + RS_BRC2,
22854 + RS_BRC1,
22855 + RS_BRAL,
22856 + RS_RJMP,
22857 + RS_MAX,
22858 +};
22859 +
22860 +enum reference_type {
22861 + REF_ABSOLUTE,
22862 + REF_PCREL,
22863 + REF_CPOOL,
22864 + REF_GOT,
22865 +};
22866 +
22867 +struct relax_state
22868 +{
22869 + const char *name;
22870 + enum relax_state_id id;
22871 + enum relax_state_id direct;
22872 + enum relax_state_id next;
22873 + enum relax_state_id prev;
22874 +
22875 + enum reference_type reftype;
22876 +
22877 + unsigned int r_type;
22878 +
22879 + bfd_vma opcode;
22880 + bfd_vma opcode_mask;
22881 +
22882 + bfd_signed_vma range_min;
22883 + bfd_signed_vma range_max;
22884 +
22885 + bfd_size_type size;
22886 +};
22887 +
22888 +/*
22889 + * This is for relocs that
22890 + * a) has an addend or is of type R_AVR32_DIFF32, and
22891 + * b) references a different section than it's in, and
22892 + * c) references a section that is relaxable
22893 + *
22894 + * as well as relocs that references the constant pool, in which case
22895 + * the add_frag member points to the frag containing the constant pool
22896 + * entry.
22897 + *
22898 + * Such relocs must be fixed up whenever we delete any code. Sections
22899 + * that don't have any relocs with all of the above properties don't
22900 + * have any additional reloc data, but sections that do will have
22901 + * additional data for all its relocs.
22902 + */
22903 +struct avr32_reloc_data
22904 +{
22905 + struct fragment *add_frag;
22906 + struct fragment *sub_frag;
22907 +};
22908 +
22909 +/*
22910 + * A 'fragment' is a relaxable entity, that is, code may be added or
22911 + * deleted at the end of a fragment. When this happens, all subsequent
22912 + * fragments in the list will have their offsets updated.
22913 + */
22914 +struct fragment
22915 +{
22916 + enum relax_state_id state;
22917 + enum relax_state_id initial_state;
22918 +
22919 + Elf_Internal_Rela *rela;
22920 + bfd_size_type size;
22921 + bfd_vma offset;
22922 + int size_adjust;
22923 + int offset_adjust;
22924 + bfd_boolean has_grown;
22925 +
22926 + /* Only used by constant pool entries. When this drops to zero, the
22927 + frag is discarded (i.e. size_adjust is set to -4.) */
22928 + int refcount;
22929 +};
22930 +
22931 +struct avr32_relax_data
22932 +{
22933 + unsigned int frag_count;
22934 + struct fragment *frag;
22935 + struct avr32_reloc_data *reloc_data;
22936 +
22937 + /* TRUE if this section has one or more relaxable relocations */
22938 + bfd_boolean is_relaxable;
22939 + unsigned int iteration;
22940 +};
22941 +
22942 +struct avr32_section_data
22943 +{
22944 + struct bfd_elf_section_data elf;
22945 + struct avr32_relax_data relax_data;
22946 +};
22947 +
22948 +\f/* Relax state definitions */
22949 +
22950 +#define PIC_MOV2_OPCODE 0xe0600000
22951 +#define PIC_MOV2_MASK 0xe1e00000
22952 +#define PIC_MOV2_RANGE_MIN (-1048576 * 4)
22953 +#define PIC_MOV2_RANGE_MAX (1048575 * 4)
22954 +#define PIC_MCALL_OPCODE 0xf0160000
22955 +#define PIC_MCALL_MASK 0xffff0000
22956 +#define PIC_MCALL_RANGE_MIN (-131072)
22957 +#define PIC_MCALL_RANGE_MAX (131068)
22958 +#define RCALL2_OPCODE 0xe0a00000
22959 +#define RCALL2_MASK 0xe1ef0000
22960 +#define RCALL2_RANGE_MIN (-2097152)
22961 +#define RCALL2_RANGE_MAX (2097150)
22962 +#define RCALL1_OPCODE 0xc00c0000
22963 +#define RCALL1_MASK 0xf00c0000
22964 +#define RCALL1_RANGE_MIN (-1024)
22965 +#define RCALL1_RANGE_MAX (1022)
22966 +#define PIC_LDW4_OPCODE 0xecf00000
22967 +#define PIC_LDW4_MASK 0xfff00000
22968 +#define PIC_LDW4_RANGE_MIN (-32768)
22969 +#define PIC_LDW4_RANGE_MAX (32767)
22970 +#define PIC_LDW3_OPCODE 0x6c000000
22971 +#define PIC_LDW3_MASK 0xfe000000
22972 +#define PIC_LDW3_RANGE_MIN (0)
22973 +#define PIC_LDW3_RANGE_MAX (124)
22974 +#define SUB5_PC_OPCODE 0xfec00000
22975 +#define SUB5_PC_MASK 0xfff00000
22976 +#define SUB5_PC_RANGE_MIN (-32768)
22977 +#define SUB5_PC_RANGE_MAX (32767)
22978 +#define NOPIC_MCALL_OPCODE 0xf01f0000
22979 +#define NOPIC_MCALL_MASK 0xffff0000
22980 +#define NOPIC_MCALL_RANGE_MIN PIC_MCALL_RANGE_MIN
22981 +#define NOPIC_MCALL_RANGE_MAX PIC_MCALL_RANGE_MAX
22982 +#define NOPIC_LDW4_OPCODE 0xfef00000
22983 +#define NOPIC_LDW4_MASK 0xfff00000
22984 +#define NOPIC_LDW4_RANGE_MIN PIC_LDW4_RANGE_MIN
22985 +#define NOPIC_LDW4_RANGE_MAX PIC_LDW4_RANGE_MAX
22986 +#define LDDPC_OPCODE 0x48000000
22987 +#define LDDPC_MASK 0xf8000000
22988 +#define LDDPC_RANGE_MIN 0
22989 +#define LDDPC_RANGE_MAX 508
22990 +
22991 +#ifdef DHRYSTONE_FIX
22992 +#define NOPIC_MOV2_OPCODE 0xe0600000
22993 +#define NOPIC_MOV2_MASK 0xe1e00000
22994 +#define NOPIC_MOV2_RANGE_MIN (-1048576)
22995 +#define NOPIC_MOV2_RANGE_MAX (1048575)
22996 +#define NOPIC_MOV1_OPCODE 0x30000000
22997 +#define NOPIC_MOV1_MASK 0xf0000000
22998 +#define NOPIC_MOV1_RANGE_MIN (-128)
22999 +#define NOPIC_MOV1_RANGE_MAX (127)
23000 +#endif
23001 +
23002 +/* Only brc2 variants with cond[3] == 0 is considered, since the
23003 + others are not relaxable. bral is a special case and is handled
23004 + separately. */
23005 +#define BRC2_OPCODE 0xe0800000
23006 +#define BRC2_MASK 0xe1e80000
23007 +#define BRC2_RANGE_MIN (-2097152)
23008 +#define BRC2_RANGE_MAX (2097150)
23009 +#define BRC1_OPCODE 0xc0000000
23010 +#define BRC1_MASK 0xf0080000
23011 +#define BRC1_RANGE_MIN (-256)
23012 +#define BRC1_RANGE_MAX (254)
23013 +#define BRAL_OPCODE 0xe08f0000
23014 +#define BRAL_MASK 0xe1ef0000
23015 +#define BRAL_RANGE_MIN BRC2_RANGE_MIN
23016 +#define BRAL_RANGE_MAX BRC2_RANGE_MAX
23017 +#define RJMP_OPCODE 0xc0080000
23018 +#define RJMP_MASK 0xf00c0000
23019 +#define RJMP_RANGE_MIN (-1024)
23020 +#define RJMP_RANGE_MAX (1022)
23021 +
23022 +/* Define a relax state using the GOT */
23023 +#define RG(id, dir, next, prev, r_type, opc, size) \
23024 + { "RS_"#id, RS_##id, RS_##dir, RS_##next, RS_##prev, REF_GOT, \
23025 + R_AVR32_##r_type, opc##_OPCODE, opc##_MASK, \
23026 + opc##_RANGE_MIN, opc##_RANGE_MAX, size }
23027 +/* Define a relax state using the Constant Pool */
23028 +#define RC(id, dir, next, prev, r_type, opc, size) \
23029 + { "RS_"#id, RS_##id, RS_##dir, RS_##next, RS_##prev, REF_CPOOL, \
23030 + R_AVR32_##r_type, opc##_OPCODE, opc##_MASK, \
23031 + opc##_RANGE_MIN, opc##_RANGE_MAX, size }
23032 +
23033 +/* Define a relax state using pc-relative direct reference */
23034 +#define RP(id, dir, next, prev, r_type, opc, size) \
23035 + { "RS_"#id, RS_##id, RS_##dir, RS_##next, RS_##prev, REF_PCREL, \
23036 + R_AVR32_##r_type, opc##_OPCODE, opc##_MASK, \
23037 + opc##_RANGE_MIN, opc##_RANGE_MAX, size }
23038 +
23039 +#ifdef DHRYSTONE_FIX
23040 +/* Define a relax state using non-pc-relative direct reference */
23041 +#define RD(id, dir, next, prev, r_type, opc, size) \
23042 + { "RS_"#id, RS_##id, RS_##dir, RS_##next, RS_##prev, REF_ABSOLUTE, \
23043 + R_AVR32_##r_type, opc##_OPCODE, opc##_MASK, \
23044 + opc##_RANGE_MIN, opc##_RANGE_MAX, size }
23045 +
23046 +#endif
23047 +
23048 +/* Define a relax state that will be handled specially */
23049 +#define RS(id, r_type, size) \
23050 + { "RS_"#id, RS_##id, RS_NONE, RS_NONE, RS_NONE, REF_ABSOLUTE, \
23051 + R_AVR32_##r_type, 0, 0, 0, 0, size }
23052 +
23053 +const struct relax_state relax_state[RS_MAX] = {
23054 + RS(NONE, NONE, 0),
23055 + RS(ALIGN, ALIGN, 0),
23056 + RS(CPENT, 32_CPENT, 4),
23057 +
23058 + RG(PIC_CALL, PIC_RCALL1, PIC_MCALL, NONE, GOTCALL, PIC_MOV2, 10),
23059 + RG(PIC_MCALL, PIC_RCALL1, NONE, PIC_CALL, GOT18SW, PIC_MCALL, 4),
23060 + RP(PIC_RCALL2, NONE, PIC_RCALL1, PIC_MCALL, 22H_PCREL, RCALL2, 4),
23061 + RP(PIC_RCALL1, NONE, NONE, PIC_RCALL2, 11H_PCREL, RCALL1, 2),
23062 +
23063 + RG(PIC_LDA, PIC_SUB5, PIC_LDW4, NONE, LDA_GOT, PIC_MOV2, 8),
23064 + RG(PIC_LDW4, PIC_SUB5, PIC_LDW3, PIC_LDA, GOT16S, PIC_LDW4, 4),
23065 + RG(PIC_LDW3, PIC_SUB5, NONE, PIC_LDW4, GOT7UW, PIC_LDW3, 2),
23066 + RP(PIC_SUB5, NONE, NONE, PIC_LDW3, 16N_PCREL, SUB5_PC, 4),
23067 +
23068 + RC(NOPIC_MCALL, NOPIC_RCALL1, NONE, NONE, CPCALL, NOPIC_MCALL, 4),
23069 + RP(NOPIC_RCALL2, NONE, NOPIC_RCALL1, NOPIC_MCALL, 22H_PCREL, RCALL2, 4),
23070 + RP(NOPIC_RCALL1, NONE, NONE, NOPIC_RCALL2, 11H_PCREL, RCALL1, 2),
23071 +
23072 +#ifdef DHRYSTONE_FIX
23073 + RC(NOPIC_LDW4, NOPIC_MOV1, NOPIC_LDDPC, NONE, 16_CP, NOPIC_LDW4, 4),
23074 + RC(NOPIC_LDDPC, NOPIC_MOV1, NONE, NOPIC_LDW4, 9W_CP, LDDPC, 2),
23075 + RP(NOPIC_SUB5, NOPIC_MOV1, NONE, NOPIC_LDDPC, 16N_PCREL, SUB5_PC, 4),
23076 + RD(NOPIC_MOV2, NONE, NOPIC_MOV1, NOPIC_SUB5, 21S, NOPIC_MOV2, 4),
23077 + RD(NOPIC_MOV1, NONE, NONE, NOPIC_MOV2, 8S, NOPIC_MOV1, 2),
23078 +#else
23079 + RC(NOPIC_LDW4, NOPIC_SUB5, NOPIC_LDDPC, NONE, 16_CP, NOPIC_LDW4, 4),
23080 + RC(NOPIC_LDDPC, NOPIC_SUB5, NONE, NOPIC_LDW4, 9W_CP, LDDPC, 2),
23081 + RP(NOPIC_SUB5, NONE, NONE, NOPIC_LDDPC, 16N_PCREL, SUB5_PC, 4),
23082 +#endif
23083 +
23084 + RP(RCALL2, NONE, RCALL1, NONE, 22H_PCREL, RCALL2, 4),
23085 + RP(RCALL1, NONE, NONE, RCALL2, 11H_PCREL, RCALL1, 2),
23086 + RP(BRC2, NONE, BRC1, NONE, 22H_PCREL, BRC2, 4),
23087 + RP(BRC1, NONE, NONE, BRC2, 9H_PCREL, BRC1, 2),
23088 + RP(BRAL, NONE, RJMP, NONE, 22H_PCREL, BRAL, 4),
23089 + RP(RJMP, NONE, NONE, BRAL, 11H_PCREL, RJMP, 2),
23090 +};
23091 +
23092 +static bfd_boolean
23093 +avr32_elf_new_section_hook(bfd *abfd, asection *sec)
23094 +{
23095 + struct avr32_section_data *sdata;
23096 +
23097 + sdata = bfd_zalloc(abfd, sizeof(struct avr32_section_data));
23098 + if (!sdata)
23099 + return FALSE;
23100 +
23101 + sec->used_by_bfd = sdata;
23102 + return _bfd_elf_new_section_hook(abfd, sec);
23103 +}
23104 +
23105 +static struct avr32_relax_data *
23106 +avr32_relax_data(asection *sec)
23107 +{
23108 + struct avr32_section_data *sdata;
23109 +
23110 + BFD_ASSERT(sec->used_by_bfd);
23111 +
23112 + sdata = (struct avr32_section_data *)elf_section_data(sec);
23113 + return &sdata->relax_data;
23114 +}
23115 +
23116 +\f/* Link-time relaxation */
23117 +
23118 +static bfd_boolean
23119 +avr32_elf_relax_section(bfd *abfd, asection *sec,
23120 + struct bfd_link_info *info, bfd_boolean *again);
23121 +
23122 +enum relax_pass_id {
23123 + RELAX_PASS_SIZE_FRAGS,
23124 + RELAX_PASS_MOVE_DATA,
23125 +};
23126 +
23127 +/* Stolen from the xtensa port */
23128 +static int
23129 +internal_reloc_compare (const void *ap, const void *bp)
23130 +{
23131 + const Elf_Internal_Rela *a = (const Elf_Internal_Rela *) ap;
23132 + const Elf_Internal_Rela *b = (const Elf_Internal_Rela *) bp;
23133 +
23134 + if (a->r_offset != b->r_offset)
23135 + return (a->r_offset - b->r_offset);
23136 +
23137 + /* We don't need to sort on these criteria for correctness,
23138 + but enforcing a more strict ordering prevents unstable qsort
23139 + from behaving differently with different implementations.
23140 + Without the code below we get correct but different results
23141 + on Solaris 2.7 and 2.8. We would like to always produce the
23142 + same results no matter the host. */
23143 +
23144 + if (a->r_info != b->r_info)
23145 + return (a->r_info - b->r_info);
23146 +
23147 + return (a->r_addend - b->r_addend);
23148 +}
23149 +
23150 +static enum relax_state_id
23151 +get_pcrel22_relax_state(bfd *abfd, asection *sec, struct bfd_link_info *info,
23152 + const Elf_Internal_Rela *rela)
23153 +{
23154 + bfd_byte *contents;
23155 + bfd_vma insn;
23156 + enum relax_state_id rs = RS_NONE;
23157 +
23158 + contents = retrieve_contents(abfd, sec, info->keep_memory);
23159 + if (!contents)
23160 + return RS_ERROR;
23161 +
23162 + insn = bfd_get_32(abfd, contents + rela->r_offset);
23163 + if ((insn & RCALL2_MASK) == RCALL2_OPCODE)
23164 + rs = RS_RCALL2;
23165 + else if ((insn & BRAL_MASK) == BRAL_OPCODE)
23166 + /* Optimizing bral -> rjmp gets us into all kinds of
23167 + trouble with jump tables. Better not do it. */
23168 + rs = RS_NONE;
23169 + else if ((insn & BRC2_MASK) == BRC2_OPCODE)
23170 + rs = RS_BRC2;
23171 +
23172 + release_contents(sec, contents);
23173 +
23174 + return rs;
23175 +}
23176 +
23177 +static enum relax_state_id
23178 +get_initial_relax_state(bfd *abfd, asection *sec, struct bfd_link_info *info,
23179 + const Elf_Internal_Rela *rela)
23180 +{
23181 + switch (ELF_R_TYPE(rela->r_info))
23182 + {
23183 + case R_AVR32_GOTCALL:
23184 + return RS_PIC_CALL;
23185 + case R_AVR32_GOT18SW:
23186 + return RS_PIC_MCALL;
23187 + case R_AVR32_LDA_GOT:
23188 + return RS_PIC_LDA;
23189 + case R_AVR32_GOT16S:
23190 + return RS_PIC_LDW4;
23191 + case R_AVR32_CPCALL:
23192 + return RS_NOPIC_MCALL;
23193 + case R_AVR32_16_CP:
23194 + return RS_NOPIC_LDW4;
23195 + case R_AVR32_9W_CP:
23196 + return RS_NOPIC_LDDPC;
23197 + case R_AVR32_ALIGN:
23198 + return RS_ALIGN;
23199 + case R_AVR32_32_CPENT:
23200 + return RS_CPENT;
23201 + case R_AVR32_22H_PCREL:
23202 + return get_pcrel22_relax_state(abfd, sec, info, rela);
23203 + case R_AVR32_9H_PCREL:
23204 + return RS_BRC1;
23205 + default:
23206 + return RS_NONE;
23207 + }
23208 +}
23209 +
23210 +static bfd_boolean
23211 +reloc_is_cpool_ref(const Elf_Internal_Rela *rela)
23212 +{
23213 + switch (ELF_R_TYPE(rela->r_info))
23214 + {
23215 + case R_AVR32_CPCALL:
23216 + case R_AVR32_16_CP:
23217 + case R_AVR32_9W_CP:
23218 + return TRUE;
23219 + default:
23220 + return FALSE;
23221 + }
23222 +}
23223 +
23224 +static struct fragment *
23225 +new_frag(bfd *abfd ATTRIBUTE_UNUSED, asection *sec,
23226 + struct avr32_relax_data *rd, enum relax_state_id state,
23227 + Elf_Internal_Rela *rela)
23228 +{
23229 + struct fragment *frag;
23230 + bfd_size_type r_size;
23231 + bfd_vma r_offset;
23232 + unsigned int i = rd->frag_count;
23233 +
23234 + BFD_ASSERT(state >= RS_NONE && state < RS_MAX);
23235 +
23236 + rd->frag_count++;
23237 + frag = bfd_realloc(rd->frag, sizeof(struct fragment) * rd->frag_count);
23238 + if (!frag)
23239 + return NULL;
23240 + rd->frag = frag;
23241 +
23242 + frag += i;
23243 + memset(frag, 0, sizeof(struct fragment));
23244 +
23245 + if (state == RS_ALIGN)
23246 + r_size = (((rela->r_offset + (1 << rela->r_addend) - 1)
23247 + & ~((1 << rela->r_addend) - 1)) - rela->r_offset);
23248 + else
23249 + r_size = relax_state[state].size;
23250 +
23251 + if (rela)
23252 + r_offset = rela->r_offset;
23253 + else
23254 + r_offset = sec->size;
23255 +
23256 + if (i == 0)
23257 + {
23258 + frag->offset = 0;
23259 + frag->size = r_offset + r_size;
23260 + }
23261 + else
23262 + {
23263 + frag->offset = rd->frag[i - 1].offset + rd->frag[i - 1].size;
23264 + frag->size = r_offset + r_size - frag->offset;
23265 + }
23266 +
23267 + if (state != RS_CPENT)
23268 + /* Make sure we don't discard this frag */
23269 + frag->refcount = 1;
23270 +
23271 + frag->initial_state = frag->state = state;
23272 + frag->rela = rela;
23273 +
23274 + return frag;
23275 +}
23276 +
23277 +static struct fragment *
23278 +find_frag(asection *sec, bfd_vma offset)
23279 +{
23280 + struct fragment *first, *last;
23281 + struct avr32_relax_data *rd = avr32_relax_data(sec);
23282 +
23283 + if (rd->frag_count == 0)
23284 + return NULL;
23285 +
23286 + first = &rd->frag[0];
23287 + last = &rd->frag[rd->frag_count - 1];
23288 +
23289 + /* This may be a reloc referencing the end of a section. The last
23290 + frag will never have a reloc associated with it, so its size will
23291 + never change, thus the offset adjustment of the last frag will
23292 + always be the same as the offset adjustment of the end of the
23293 + section. */
23294 + if (offset == sec->size)
23295 + {
23296 + BFD_ASSERT(last->offset + last->size == sec->size);
23297 + BFD_ASSERT(!last->rela);
23298 + return last;
23299 + }
23300 +
23301 + while (first <= last)
23302 + {
23303 + struct fragment *mid;
23304 +
23305 + mid = (last - first) / 2 + first;
23306 + if ((mid->offset + mid->size) <= offset)
23307 + first = mid + 1;
23308 + else if (mid->offset > offset)
23309 + last = mid - 1;
23310 + else
23311 + return mid;
23312 + }
23313 +
23314 + return NULL;
23315 +}
23316 +
23317 +/* Look through all relocs in a section and determine if any relocs
23318 + may be affected by relaxation in other sections. If so, allocate
23319 + an array of additional relocation data which links the affected
23320 + relocations to the frag(s) where the relaxation may occur.
23321 +
23322 + This function also links cpool references to cpool entries and
23323 + increments the refcount of the latter when this happens. */
23324 +
23325 +static bfd_boolean
23326 +allocate_reloc_data(bfd *abfd, asection *sec, Elf_Internal_Rela *relocs,
23327 + struct bfd_link_info *info)
23328 +{
23329 + Elf_Internal_Shdr *symtab_hdr;
23330 + Elf_Internal_Sym *isymbuf = NULL;
23331 + struct avr32_relax_data *rd;
23332 + unsigned int i;
23333 + bfd_boolean ret = FALSE;
23334 +
23335 + symtab_hdr = &elf_tdata(abfd)->symtab_hdr;
23336 + rd = avr32_relax_data(sec);
23337 +
23338 + RDBG("%s<%s>: allocate_reloc_data\n", abfd->filename, sec->name);
23339 +
23340 + for (i = 0; i < sec->reloc_count; i++)
23341 + {
23342 + Elf_Internal_Rela *rel = &relocs[i];
23343 + asection *sym_sec;
23344 + unsigned long r_symndx;
23345 + bfd_vma sym_value;
23346 +
23347 + if (!rel->r_addend && ELF_R_TYPE(rel->r_info) != R_AVR32_DIFF32
23348 + && !reloc_is_cpool_ref(rel))
23349 + continue;
23350 +
23351 + r_symndx = ELF_R_SYM(rel->r_info);
23352 +
23353 + if (r_symndx < symtab_hdr->sh_info)
23354 + {
23355 + Elf_Internal_Sym *isym;
23356 +
23357 + if (!isymbuf)
23358 + isymbuf = retrieve_local_syms(abfd, info->keep_memory);
23359 + if (!isymbuf)
23360 + return FALSE;
23361 +
23362 + isym = &isymbuf[r_symndx];
23363 + sym_sec = bfd_section_from_elf_index(abfd, isym->st_shndx);
23364 + sym_value = isym->st_value;
23365 + }
23366 + else
23367 + {
23368 + struct elf_link_hash_entry *h;
23369 +
23370 + h = elf_sym_hashes(abfd)[r_symndx - symtab_hdr->sh_info];
23371 +
23372 + while (h->root.type == bfd_link_hash_indirect
23373 + || h->root.type == bfd_link_hash_warning)
23374 + h = (struct elf_link_hash_entry *)h->root.u.i.link;
23375 +
23376 + if (h->root.type != bfd_link_hash_defined
23377 + && h->root.type != bfd_link_hash_defweak)
23378 + continue;
23379 +
23380 + sym_sec = h->root.u.def.section;
23381 + sym_value = h->root.u.def.value;
23382 + }
23383 +
23384 + if (sym_sec && avr32_relax_data(sym_sec)->is_relaxable)
23385 + {
23386 + bfd_size_type size;
23387 + struct fragment *frag;
23388 +
23389 + if (!rd->reloc_data)
23390 + {
23391 + size = sizeof(struct avr32_reloc_data) * sec->reloc_count;
23392 + rd->reloc_data = bfd_zalloc(abfd, size);
23393 + if (!rd->reloc_data)
23394 + goto out;
23395 + }
23396 +
23397 + RDBG("[%3d] 0x%04lx: target: 0x%lx + 0x%lx",
23398 + i, rel->r_offset, sym_value, rel->r_addend);
23399 +
23400 + frag = find_frag(sym_sec, sym_value + rel->r_addend);
23401 + BFD_ASSERT(frag);
23402 + rd->reloc_data[i].add_frag = frag;
23403 +
23404 + RDBG(" -> %s<%s>:%04lx\n", sym_sec->owner->filename, sym_sec->name,
23405 + frag->rela ? frag->rela->r_offset : sym_sec->size);
23406 +
23407 + if (reloc_is_cpool_ref(rel))
23408 + {
23409 + BFD_ASSERT(ELF_R_TYPE(frag->rela->r_info) == R_AVR32_32_CPENT);
23410 + frag->refcount++;
23411 + }
23412 +
23413 + if (ELF_R_TYPE(rel->r_info) == R_AVR32_DIFF32)
23414 + {
23415 + bfd_byte *contents;
23416 + bfd_signed_vma diff;
23417 +
23418 + contents = retrieve_contents(abfd, sec, info->keep_memory);
23419 + if (!contents)
23420 + goto out;
23421 +
23422 + diff = bfd_get_signed_32(abfd, contents + rel->r_offset);
23423 + frag = find_frag(sym_sec, sym_value + rel->r_addend + diff);
23424 + BFD_ASSERT(frag);
23425 + rd->reloc_data[i].sub_frag = frag;
23426 +
23427 + release_contents(sec, contents);
23428 + }
23429 + }
23430 + }
23431 +
23432 + ret = TRUE;
23433 +
23434 + out:
23435 + release_local_syms(abfd, isymbuf);
23436 + return ret;
23437 +}
23438 +
23439 +static bfd_boolean
23440 +global_sym_set_frag(struct elf_avr32_link_hash_entry *havr,
23441 + struct bfd_link_info *info ATTRIBUTE_UNUSED)
23442 +{
23443 + struct fragment *frag;
23444 + asection *sec;
23445 +
23446 + if (havr->root.root.type != bfd_link_hash_defined
23447 + && havr->root.root.type != bfd_link_hash_defweak)
23448 + return TRUE;
23449 +
23450 + sec = havr->root.root.u.def.section;
23451 + if (bfd_is_const_section(sec)
23452 + || !avr32_relax_data(sec)->is_relaxable)
23453 + return TRUE;
23454 +
23455 + frag = find_frag(sec, havr->root.root.u.def.value);
23456 + if (!frag)
23457 + {
23458 + unsigned int i;
23459 + struct avr32_relax_data *rd = avr32_relax_data(sec);
23460 +
23461 + RDBG("In %s: No frag for %s <%s+%lu> (limit %lu)\n",
23462 + sec->owner->filename, havr->root.root.root.string,
23463 + sec->name, havr->root.root.u.def.value, sec->size);
23464 + for (i = 0; i < rd->frag_count; i++)
23465 + RDBG(" %8lu - %8lu\n", rd->frag[i].offset,
23466 + rd->frag[i].offset + rd->frag[i].size);
23467 + }
23468 + BFD_ASSERT(frag);
23469 +
23470 + havr->sym_frag = frag;
23471 + return TRUE;
23472 +}
23473 +
23474 +static bfd_boolean
23475 +analyze_relocations(struct bfd_link_info *info)
23476 +{
23477 + bfd *abfd;
23478 + asection *sec;
23479 +
23480 + /* Divide all relaxable sections into fragments */
23481 + for (abfd = info->input_bfds; abfd; abfd = abfd->link_next)
23482 + {
23483 + if (!(elf_elfheader(abfd)->e_flags & EF_AVR32_LINKRELAX))
23484 + {
23485 + if (!(*info->callbacks->warning)
23486 + (info, _("input is not relaxable"), NULL, abfd, NULL, 0))
23487 + return FALSE;
23488 + continue;
23489 + }
23490 +
23491 + for (sec = abfd->sections; sec; sec = sec->next)
23492 + {
23493 + struct avr32_relax_data *rd;
23494 + struct fragment *frag;
23495 + Elf_Internal_Rela *relocs;
23496 + unsigned int i;
23497 + bfd_boolean ret = TRUE;
23498 +
23499 + if (!(sec->flags & SEC_RELOC) || sec->reloc_count == 0)
23500 + continue;
23501 +
23502 + rd = avr32_relax_data(sec);
23503 +
23504 + relocs = retrieve_internal_relocs(abfd, sec, info->keep_memory);
23505 + if (!relocs)
23506 + return FALSE;
23507 +
23508 + qsort(relocs, sec->reloc_count, sizeof(Elf_Internal_Rela),
23509 + internal_reloc_compare);
23510 +
23511 + for (i = 0; i < sec->reloc_count; i++)
23512 + {
23513 + enum relax_state_id state;
23514 +
23515 + ret = FALSE;
23516 + state = get_initial_relax_state(abfd, sec, info, &relocs[i]);
23517 + if (state == RS_ERROR)
23518 + break;
23519 +
23520 + if (state)
23521 + {
23522 + frag = new_frag(abfd, sec, rd, state, &relocs[i]);
23523 + if (!frag)
23524 + break;
23525 +
23526 + pin_internal_relocs(sec, relocs);
23527 + rd->is_relaxable = TRUE;
23528 + }
23529 +
23530 + ret = TRUE;
23531 + }
23532 +
23533 + release_internal_relocs(sec, relocs);
23534 + if (!ret)
23535 + return ret;
23536 +
23537 + if (rd->is_relaxable)
23538 + {
23539 + frag = new_frag(abfd, sec, rd, RS_NONE, NULL);
23540 + if (!frag)
23541 + return FALSE;
23542 + }
23543 + }
23544 + }
23545 +
23546 + /* Link each global symbol to the fragment where it's defined. */
23547 + elf_link_hash_traverse(elf_hash_table(info), global_sym_set_frag, info);
23548 +
23549 + /* Do the same for local symbols. */
23550 + for (abfd = info->input_bfds; abfd; abfd = abfd->link_next)
23551 + {
23552 + Elf_Internal_Sym *isymbuf, *isym;
23553 + struct fragment **local_sym_frag;
23554 + unsigned int i, sym_count;
23555 +
23556 + sym_count = elf_tdata(abfd)->symtab_hdr.sh_info;
23557 + if (sym_count == 0)
23558 + continue;
23559 +
23560 + local_sym_frag = bfd_zalloc(abfd, sym_count * sizeof(struct fragment *));
23561 + if (!local_sym_frag)
23562 + return FALSE;
23563 + elf_tdata(abfd)->local_sym_frag = local_sym_frag;
23564 +
23565 + isymbuf = retrieve_local_syms(abfd, info->keep_memory);
23566 + if (!isymbuf)
23567 + return FALSE;
23568 +
23569 + for (i = 0; i < sym_count; i++)
23570 + {
23571 + struct avr32_relax_data *rd;
23572 + struct fragment *frag;
23573 + asection *sec;
23574 +
23575 + isym = &isymbuf[i];
23576 +
23577 + sec = bfd_section_from_elf_index(abfd, isym->st_shndx);
23578 + if (!sec)
23579 + continue;
23580 +
23581 + rd = avr32_relax_data(sec);
23582 + if (!rd->is_relaxable)
23583 + continue;
23584 +
23585 + frag = find_frag(sec, isym->st_value);
23586 + BFD_ASSERT(frag);
23587 +
23588 + local_sym_frag[i] = frag;
23589 + }
23590 +
23591 + release_local_syms(abfd, isymbuf);
23592 + }
23593 +
23594 + /* And again for relocs with addends and constant pool references */
23595 + for (abfd = info->input_bfds; abfd; abfd = abfd->link_next)
23596 + for (sec = abfd->sections; sec; sec = sec->next)
23597 + {
23598 + Elf_Internal_Rela *relocs;
23599 + bfd_boolean ret;
23600 +
23601 + if (!(sec->flags & SEC_RELOC) || sec->reloc_count == 0)
23602 + continue;
23603 +
23604 + relocs = retrieve_internal_relocs(abfd, sec, info->keep_memory);
23605 + if (!relocs)
23606 + return FALSE;
23607 +
23608 + ret = allocate_reloc_data(abfd, sec, relocs, info);
23609 +
23610 + release_internal_relocs(sec, relocs);
23611 + if (ret == FALSE)
23612 + return ret;
23613 + }
23614 +
23615 + return TRUE;
23616 +}
23617 +
23618 +static bfd_boolean
23619 +rs_is_good_enough(const struct relax_state *rs, struct fragment *frag,
23620 + bfd_vma symval, bfd_vma addr, struct got_entry *got,
23621 + struct avr32_reloc_data *ind_data,
23622 + bfd_signed_vma offset_adjust)
23623 +{
23624 + bfd_signed_vma target = 0;
23625 +
23626 + switch (rs->reftype)
23627 + {
23628 + case REF_ABSOLUTE:
23629 + target = symval;
23630 + break;
23631 + case REF_PCREL:
23632 + target = symval - addr;
23633 + break;
23634 + case REF_CPOOL:
23635 + /* cpool frags are always in the same section and always after
23636 + all frags referring to it. So it's always correct to add in
23637 + offset_adjust here. */
23638 + target = (ind_data->add_frag->offset + ind_data->add_frag->offset_adjust
23639 + + offset_adjust - frag->offset - frag->offset_adjust);
23640 + break;
23641 + case REF_GOT:
23642 + target = got->offset;
23643 + break;
23644 + default:
23645 + abort();
23646 + }
23647 +
23648 + if (target >= rs->range_min && target <= rs->range_max)
23649 + return TRUE;
23650 + else
23651 + return FALSE;
23652 +}
23653 +
23654 +static bfd_boolean
23655 +avr32_size_frags(bfd *abfd, asection *sec, struct bfd_link_info *info)
23656 +{
23657 + struct elf_avr32_link_hash_table *htab;
23658 + struct avr32_relax_data *rd;
23659 + Elf_Internal_Shdr *symtab_hdr;
23660 + Elf_Internal_Rela *relocs = NULL;
23661 + Elf_Internal_Sym *isymbuf = NULL;
23662 + struct got_entry **local_got_ents;
23663 + struct fragment **local_sym_frag;
23664 + bfd_boolean ret = FALSE;
23665 + bfd_signed_vma delta = 0;
23666 + unsigned int i;
23667 +
23668 + htab = avr32_elf_hash_table(info);
23669 + rd = avr32_relax_data(sec);
23670 +
23671 + if (sec == htab->sgot)
23672 + {
23673 + RDBG("Relaxing GOT section (vma: 0x%lx)\n",
23674 + sec->output_section->vma + sec->output_offset);
23675 + if (assign_got_offsets(htab))
23676 + htab->repeat_pass = TRUE;
23677 + return TRUE;
23678 + }
23679 +
23680 + if (!rd->is_relaxable)
23681 + return TRUE;
23682 +
23683 + if (!sec->rawsize)
23684 + sec->rawsize = sec->size;
23685 +
23686 + symtab_hdr = &elf_tdata(abfd)->symtab_hdr;
23687 + relocs = retrieve_internal_relocs(abfd, sec, info->keep_memory);
23688 + if (!relocs)
23689 + goto out;
23690 +
23691 + isymbuf = retrieve_local_syms(abfd, info->keep_memory);
23692 + if (!isymbuf)
23693 + goto out;
23694 +
23695 + local_got_ents = elf_local_got_ents(abfd);
23696 + local_sym_frag = elf_tdata(abfd)->local_sym_frag;
23697 +
23698 + RDBG("size_frags: %s<%s>\n vma: 0x%08lx, size: 0x%08lx\n",
23699 + abfd->filename, sec->name,
23700 + sec->output_section->vma + sec->output_offset, sec->size);
23701 +
23702 + for (i = 0; i < rd->frag_count; i++)
23703 + {
23704 + struct fragment *frag = &rd->frag[i];
23705 + struct avr32_reloc_data *r_data = NULL, *ind_data = NULL;
23706 + const struct relax_state *state, *next_state;
23707 + struct fragment *target_frag = NULL;
23708 + asection *sym_sec = NULL;
23709 + Elf_Internal_Rela *rela;
23710 + struct got_entry *got;
23711 + bfd_vma symval, r_offset, addend, addr;
23712 + bfd_signed_vma size_adjust = 0, distance;
23713 + unsigned long r_symndx;
23714 + bfd_boolean defined = TRUE, dynamic = FALSE;
23715 + unsigned char sym_type;
23716 +
23717 + frag->offset_adjust += delta;
23718 + state = next_state = &relax_state[frag->state];
23719 + rela = frag->rela;
23720 +
23721 + BFD_ASSERT(state->id == frag->state);
23722 +
23723 + RDBG(" 0x%04lx%c%d: %s [size %ld]", rela ? rela->r_offset : sec->rawsize,
23724 + (frag->offset_adjust < 0)?'-':'+',
23725 + abs(frag->offset_adjust), state->name, state->size);
23726 +
23727 + if (!rela)
23728 + {
23729 + RDBG(": no reloc, ignoring\n");
23730 + continue;
23731 + }
23732 +
23733 + BFD_ASSERT((unsigned int)(rela - relocs) < sec->reloc_count);
23734 + BFD_ASSERT(state != RS_NONE);
23735 +
23736 + r_offset = rela->r_offset + frag->offset_adjust;
23737 + addr = sec->output_section->vma + sec->output_offset + r_offset;
23738 +
23739 + switch (frag->state)
23740 + {
23741 + case RS_ALIGN:
23742 + size_adjust = ((addr + (1 << rela->r_addend) - 1)
23743 + & ~((1 << rela->r_addend) - 1));
23744 + size_adjust -= (sec->output_section->vma + sec->output_offset
23745 + + frag->offset + frag->offset_adjust
23746 + + frag->size + frag->size_adjust);
23747 +
23748 + RDBG(": adjusting size %lu -> %lu\n", frag->size + frag->size_adjust,
23749 + frag->size + frag->size_adjust + size_adjust);
23750 + break;
23751 +
23752 + case RS_CPENT:
23753 + if (frag->refcount == 0 && frag->size_adjust == 0)
23754 + {
23755 + RDBG(": discarding frag\n");
23756 + size_adjust = -4;
23757 + }
23758 + else if (frag->refcount > 0 && frag->size_adjust < 0)
23759 + {
23760 + RDBG(": un-discarding frag\n");
23761 + size_adjust = 4;
23762 + }
23763 + break;
23764 +
23765 + default:
23766 + if (rd->reloc_data)
23767 + r_data = &rd->reloc_data[frag->rela - relocs];
23768 +
23769 + /* If this is a cpool reference, we want the symbol that the
23770 + cpool entry refers to, not the symbol for the cpool entry
23771 + itself, as we already know what frag it's in. */
23772 + if (relax_state[frag->initial_state].reftype == REF_CPOOL)
23773 + {
23774 + Elf_Internal_Rela *irela = r_data->add_frag->rela;
23775 +
23776 + r_symndx = ELF_R_SYM(irela->r_info);
23777 + addend = irela->r_addend;
23778 +
23779 + /* The constant pool must be in the same section as the
23780 + reloc referring to it. */
23781 + BFD_ASSERT((unsigned long)(irela - relocs) < sec->reloc_count);
23782 +
23783 + ind_data = r_data;
23784 + r_data = &rd->reloc_data[irela - relocs];
23785 + }
23786 + else
23787 + {
23788 + r_symndx = ELF_R_SYM(rela->r_info);
23789 + addend = rela->r_addend;
23790 + }
23791 +
23792 + /* Get the value of the symbol referred to by the reloc. */
23793 + if (r_symndx < symtab_hdr->sh_info)
23794 + {
23795 + Elf_Internal_Sym *isym;
23796 +
23797 + isym = isymbuf + r_symndx;
23798 + symval = 0;
23799 +
23800 + RDBG(" local sym %lu: ", r_symndx);
23801 +
23802 + if (isym->st_shndx == SHN_UNDEF)
23803 + defined = FALSE;
23804 + else if (isym->st_shndx == SHN_ABS)
23805 + sym_sec = bfd_abs_section_ptr;
23806 + else if (isym->st_shndx == SHN_COMMON)
23807 + sym_sec = bfd_com_section_ptr;
23808 + else
23809 + sym_sec = bfd_section_from_elf_index(abfd, isym->st_shndx);
23810 +
23811 + symval = isym->st_value;
23812 + sym_type = ELF_ST_TYPE(isym->st_info);
23813 + target_frag = local_sym_frag[r_symndx];
23814 +
23815 + if (local_got_ents)
23816 + got = local_got_ents[r_symndx];
23817 + else
23818 + got = NULL;
23819 + }
23820 + else
23821 + {
23822 + /* Global symbol */
23823 + unsigned long index;
23824 + struct elf_link_hash_entry *h;
23825 + struct elf_avr32_link_hash_entry *havr;
23826 +
23827 + index = r_symndx - symtab_hdr->sh_info;
23828 + h = elf_sym_hashes(abfd)[index];
23829 + BFD_ASSERT(h != NULL);
23830 +
23831 + while (h->root.type == bfd_link_hash_indirect
23832 + || h->root.type == bfd_link_hash_warning)
23833 + h = (struct elf_link_hash_entry *)h->root.u.i.link;
23834 +
23835 + havr = (struct elf_avr32_link_hash_entry *)h;
23836 + got = h->got.glist;
23837 +
23838 + symval = 0;
23839 +
23840 + RDBG(" %s: ", h->root.root.string);
23841 +
23842 + if (h->root.type != bfd_link_hash_defined
23843 + && h->root.type != bfd_link_hash_defweak)
23844 + {
23845 + RDBG("(undef)");
23846 + defined = FALSE;
23847 + }
23848 + else if ((info->shared && !info->symbolic && h->dynindx != -1)
23849 + || (htab->root.dynamic_sections_created
23850 + && h->def_dynamic && !h->def_regular))
23851 + {
23852 + RDBG("(dynamic)");
23853 + dynamic = TRUE;
23854 + sym_sec = h->root.u.def.section;
23855 + }
23856 + else
23857 + {
23858 + sym_sec = h->root.u.def.section;
23859 + symval = h->root.u.def.value;
23860 + target_frag = havr->sym_frag;
23861 + }
23862 +
23863 + sym_type = h->type;
23864 + }
23865 +
23866 + /* Thanks to elf32-ppc for this one. */
23867 + if (sym_sec && sym_sec->sec_info_type == ELF_INFO_TYPE_MERGE)
23868 + {
23869 + /* At this stage in linking, no SEC_MERGE symbol has been
23870 + adjusted, so all references to such symbols need to be
23871 + passed through _bfd_merged_section_offset. (Later, in
23872 + relocate_section, all SEC_MERGE symbols *except* for
23873 + section symbols have been adjusted.)
23874 +
23875 + SEC_MERGE sections are not relaxed by us, as they
23876 + shouldn't contain any code. */
23877 +
23878 + BFD_ASSERT(!target_frag && !(r_data && r_data->add_frag));
23879 +
23880 + /* gas may reduce relocations against symbols in SEC_MERGE
23881 + sections to a relocation against the section symbol when
23882 + the original addend was zero. When the reloc is against
23883 + a section symbol we should include the addend in the
23884 + offset passed to _bfd_merged_section_offset, since the
23885 + location of interest is the original symbol. On the
23886 + other hand, an access to "sym+addend" where "sym" is not
23887 + a section symbol should not include the addend; Such an
23888 + access is presumed to be an offset from "sym"; The
23889 + location of interest is just "sym". */
23890 + RDBG("\n MERGE: %s: 0x%lx+0x%lx+0x%lx -> ",
23891 + (sym_type == STT_SECTION)?"section":"not section",
23892 + sym_sec->output_section->vma + sym_sec->output_offset,
23893 + symval, addend);
23894 +
23895 + if (sym_type == STT_SECTION)
23896 + symval += addend;
23897 +
23898 + symval = (_bfd_merged_section_offset
23899 + (abfd, &sym_sec,
23900 + elf_section_data(sym_sec)->sec_info, symval));
23901 +
23902 + if (sym_type != STT_SECTION)
23903 + symval += addend;
23904 + }
23905 + else
23906 + symval += addend;
23907 +
23908 + if (defined && !dynamic)
23909 + {
23910 + RDBG("0x%lx+0x%lx",
23911 + sym_sec->output_section->vma + sym_sec->output_offset,
23912 + symval);
23913 + symval += sym_sec->output_section->vma + sym_sec->output_offset;
23914 + }
23915 +
23916 + if (r_data && r_data->add_frag)
23917 + /* If the add_frag pointer is set, it means that this reloc
23918 + has an addend that may be affected by relaxation. */
23919 + target_frag = r_data->add_frag;
23920 +
23921 + if (target_frag)
23922 + {
23923 + symval += target_frag->offset_adjust;
23924 +
23925 + /* If target_frag comes after this frag in the same
23926 + section, we should assume that it will be moved by
23927 + the same amount we are. */
23928 + if ((target_frag - rd->frag) < (int)rd->frag_count
23929 + && target_frag > frag)
23930 + symval += delta;
23931 + }
23932 +
23933 + distance = symval - addr;
23934 +
23935 + /* First, try to make a direct reference. If the symbol is
23936 + dynamic or undefined, we must take care not to change its
23937 + reference type, that is, we can't make it direct.
23938 +
23939 + Also, it seems like some sections may actually be resized
23940 + after the relaxation code is done, so we can't really
23941 + trust that our "distance" is correct. There's really no
23942 + easy solution to this problem, so we'll just disallow
23943 + direct references to SEC_DATA sections.
23944 +
23945 + Oh, and .bss isn't actually SEC_DATA, so we disallow
23946 + !SEC_HAS_CONTENTS as well. */
23947 + if (!dynamic && defined
23948 +#ifndef DHRYSTONE_FIX
23949 + && !(sym_sec->flags & SEC_DATA)
23950 +#endif
23951 + && (sym_sec->flags & SEC_HAS_CONTENTS)
23952 + && next_state->direct)
23953 + {
23954 + next_state = &relax_state[next_state->direct];
23955 + RDBG(" D-> %s", next_state->name);
23956 + }
23957 +
23958 + /* Iterate backwards until we find a state that fits. */
23959 + while (next_state->prev
23960 + && !rs_is_good_enough(next_state, frag, symval, addr,
23961 + got, ind_data, delta))
23962 + {
23963 + next_state = &relax_state[next_state->prev];
23964 + RDBG(" P-> %s", next_state->name);
23965 + }
23966 +
23967 + /* Then try to find the best possible state. */
23968 + while (next_state->next)
23969 + {
23970 + const struct relax_state *candidate;
23971 +
23972 + candidate = &relax_state[next_state->next];
23973 + if (!rs_is_good_enough(candidate, frag, symval, addr, got,
23974 + ind_data, delta))
23975 + break;
23976 +
23977 + next_state = candidate;
23978 + RDBG(" N-> %s", next_state->name);
23979 + }
23980 +
23981 + RDBG(" [size %ld]\n", next_state->size);
23982 +
23983 + BFD_ASSERT(next_state->id);
23984 + BFD_ASSERT(!dynamic || next_state->reftype == REF_GOT);
23985 +
23986 + size_adjust = next_state->size - state->size;
23987 +
23988 + /* There's a theoretical possibility that shrinking one frag
23989 + may cause another to grow, which may cause the first one to
23990 + grow as well, and we're back where we started. Avoid this
23991 + scenario by disallowing a frag that has grown to ever
23992 + shrink again. */
23993 + if (state->reftype == REF_GOT && next_state->reftype != REF_GOT)
23994 + {
23995 + if (frag->has_grown)
23996 + next_state = state;
23997 + else
23998 + unref_got_entry(htab, got);
23999 + }
24000 + else if (state->reftype != REF_GOT && next_state->reftype == REF_GOT)
24001 + {
24002 + ref_got_entry(htab, got);
24003 + frag->has_grown = TRUE;
24004 + }
24005 + else if (state->reftype == REF_CPOOL
24006 + && next_state->reftype != REF_CPOOL)
24007 + {
24008 + if (frag->has_grown)
24009 + next_state = state;
24010 + else
24011 + ind_data->add_frag->refcount--;
24012 + }
24013 + else if (state->reftype != REF_CPOOL
24014 + && next_state->reftype == REF_CPOOL)
24015 + {
24016 + ind_data->add_frag->refcount++;
24017 + frag->has_grown = TRUE;
24018 + }
24019 + else
24020 + {
24021 + if (frag->has_grown && size_adjust < 0)
24022 + next_state = state;
24023 + else if (size_adjust > 0)
24024 + frag->has_grown = TRUE;
24025 + }
24026 +
24027 + size_adjust = next_state->size - state->size;
24028 + frag->state = next_state->id;
24029 +
24030 + break;
24031 + }
24032 +
24033 + if (size_adjust)
24034 + htab->repeat_pass = TRUE;
24035 +
24036 + frag->size_adjust += size_adjust;
24037 + sec->size += size_adjust;
24038 + delta += size_adjust;
24039 +
24040 + BFD_ASSERT((frag->offset + frag->offset_adjust
24041 + + frag->size + frag->size_adjust)
24042 + == (frag[1].offset + frag[1].offset_adjust + delta));
24043 + }
24044 +
24045 + ret = TRUE;
24046 +
24047 + out:
24048 + release_local_syms(abfd, isymbuf);
24049 + release_internal_relocs(sec, relocs);
24050 + return ret;
24051 +}
24052 +
24053 +static bfd_boolean
24054 +adjust_global_symbol(struct elf_avr32_link_hash_entry *havr,
24055 + struct bfd_link_info *info ATTRIBUTE_UNUSED)
24056 +{
24057 + struct elf_link_hash_entry *h = &havr->root;
24058 +
24059 + if (havr->sym_frag && (h->root.type == bfd_link_hash_defined
24060 + || h->root.type == bfd_link_hash_defweak))
24061 + {
24062 + RDBG("adjust_global_symbol: %s 0x%08lx -> 0x%08lx\n",
24063 + h->root.root.string, h->root.u.def.value,
24064 + h->root.u.def.value + havr->sym_frag->offset_adjust);
24065 + h->root.u.def.value += havr->sym_frag->offset_adjust;
24066 + }
24067 + return TRUE;
24068 +}
24069 +
24070 +static bfd_boolean
24071 +adjust_syms(struct bfd_link_info *info)
24072 +{
24073 + struct elf_avr32_link_hash_table *htab;
24074 + bfd *abfd;
24075 +
24076 + htab = avr32_elf_hash_table(info);
24077 + elf_link_hash_traverse(&htab->root, adjust_global_symbol, info);
24078 +
24079 + for (abfd = info->input_bfds; abfd; abfd = abfd->link_next)
24080 + {
24081 + Elf_Internal_Sym *isymbuf;
24082 + struct fragment **local_sym_frag, *frag;
24083 + unsigned int i, sym_count;
24084 +
24085 + sym_count = elf_tdata(abfd)->symtab_hdr.sh_info;
24086 + if (sym_count == 0)
24087 + continue;
24088 +
24089 + isymbuf = retrieve_local_syms(abfd, info->keep_memory);
24090 + if (!isymbuf)
24091 + return FALSE;
24092 +
24093 + local_sym_frag = elf_tdata(abfd)->local_sym_frag;
24094 +
24095 + for (i = 0; i < sym_count; i++)
24096 + {
24097 + frag = local_sym_frag[i];
24098 + if (frag)
24099 + {
24100 + RDBG("adjust_local_symbol: %s[%u] 0x%08lx -> 0x%08lx\n",
24101 + abfd->filename, i, isymbuf[i].st_value,
24102 + isymbuf[i].st_value + frag->offset_adjust);
24103 + isymbuf[i].st_value += frag->offset_adjust;
24104 + }
24105 + }
24106 +
24107 + release_local_syms(abfd, isymbuf);
24108 + }
24109 +
24110 + htab->symbols_adjusted = TRUE;
24111 + return TRUE;
24112 +}
24113 +
24114 +static bfd_boolean
24115 +adjust_relocs(bfd *abfd, asection *sec, struct bfd_link_info *info)
24116 +{
24117 + struct avr32_relax_data *rd;
24118 + Elf_Internal_Rela *relocs;
24119 + Elf_Internal_Shdr *symtab_hdr;
24120 + unsigned int i;
24121 + bfd_boolean ret = FALSE;
24122 +
24123 + rd = avr32_relax_data(sec);
24124 + if (!rd->reloc_data)
24125 + return TRUE;
24126 +
24127 + RDBG("adjust_relocs: %s<%s> (count: %u)\n", abfd->filename, sec->name,
24128 + sec->reloc_count);
24129 +
24130 + relocs = retrieve_internal_relocs(abfd, sec, info->keep_memory);
24131 + if (!relocs)
24132 + return FALSE;
24133 +
24134 + symtab_hdr = &elf_tdata(abfd)->symtab_hdr;
24135 +
24136 + for (i = 0; i < sec->reloc_count; i++)
24137 + {
24138 + Elf_Internal_Rela *rela = &relocs[i];
24139 + struct avr32_reloc_data *r_data = &rd->reloc_data[i];
24140 + struct fragment *sym_frag;
24141 + unsigned long r_symndx;
24142 +
24143 + if (r_data->add_frag)
24144 + {
24145 + r_symndx = ELF_R_SYM(rela->r_info);
24146 +
24147 + if (r_symndx < symtab_hdr->sh_info)
24148 + sym_frag = elf_tdata(abfd)->local_sym_frag[r_symndx];
24149 + else
24150 + {
24151 + struct elf_link_hash_entry *h;
24152 +
24153 + h = elf_sym_hashes(abfd)[r_symndx - symtab_hdr->sh_info];
24154 +
24155 + while (h->root.type == bfd_link_hash_indirect
24156 + || h->root.type == bfd_link_hash_warning)
24157 + h = (struct elf_link_hash_entry *)h->root.u.i.link;
24158 +
24159 + BFD_ASSERT(h->root.type == bfd_link_hash_defined
24160 + || h->root.type == bfd_link_hash_defweak);
24161 +
24162 + sym_frag = ((struct elf_avr32_link_hash_entry *)h)->sym_frag;
24163 + }
24164 +
24165 + RDBG(" addend: 0x%08lx -> 0x%08lx\n",
24166 + rela->r_addend,
24167 + rela->r_addend + r_data->add_frag->offset_adjust
24168 + - (sym_frag ? sym_frag->offset_adjust : 0));
24169 +
24170 + /* If this is against a section symbol, we won't find any
24171 + sym_frag, so we'll just adjust the addend. */
24172 + rela->r_addend += r_data->add_frag->offset_adjust;
24173 + if (sym_frag)
24174 + rela->r_addend -= sym_frag->offset_adjust;
24175 +
24176 + if (r_data->sub_frag)
24177 + {
24178 + bfd_byte *contents;
24179 + bfd_signed_vma diff;
24180 +
24181 + contents = retrieve_contents(abfd, sec, info->keep_memory);
24182 + if (!contents)
24183 + goto out;
24184 +
24185 + /* I realize now that sub_frag is misnamed. It's
24186 + actually add_frag which is subtracted in this
24187 + case... */
24188 + diff = bfd_get_signed_32(abfd, contents + rela->r_offset);
24189 + diff += (r_data->sub_frag->offset_adjust
24190 + - r_data->add_frag->offset_adjust);
24191 + bfd_put_32(abfd, diff, contents + rela->r_offset);
24192 +
24193 + RDBG(" 0x%lx: DIFF32 updated: 0x%lx\n", rela->r_offset, diff);
24194 +
24195 + release_contents(sec, contents);
24196 + }
24197 + }
24198 + else
24199 + BFD_ASSERT(!r_data->sub_frag);
24200 + }
24201 +
24202 + ret = TRUE;
24203 +
24204 + out:
24205 + release_internal_relocs(sec, relocs);
24206 + return ret;
24207 +}
24208 +
24209 +static bfd_boolean
24210 +avr32_move_data(bfd *abfd, asection *sec, struct bfd_link_info *info)
24211 +{
24212 + struct elf_avr32_link_hash_table *htab;
24213 + struct avr32_relax_data *rd;
24214 + struct fragment *frag, *fragend;
24215 + Elf_Internal_Rela *relocs = NULL;
24216 + bfd_byte *contents = NULL;
24217 + unsigned int i;
24218 + bfd_boolean ret = FALSE;
24219 +
24220 + htab = avr32_elf_hash_table(info);
24221 + rd = avr32_relax_data(sec);
24222 +
24223 + if (!htab->symbols_adjusted)
24224 + if (!adjust_syms(info))
24225 + return FALSE;
24226 +
24227 + if (rd->is_relaxable)
24228 + {
24229 + /* Resize the section first, so that we can be sure that enough
24230 + memory is allocated in case the section has grown. */
24231 + if (sec->size > sec->rawsize
24232 + && elf_section_data(sec)->this_hdr.contents)
24233 + {
24234 + /* We must not use cached data if the section has grown. */
24235 + free(elf_section_data(sec)->this_hdr.contents);
24236 + elf_section_data(sec)->this_hdr.contents = NULL;
24237 + }
24238 +
24239 + relocs = retrieve_internal_relocs(abfd, sec, info->keep_memory);
24240 + if (!relocs)
24241 + goto out;
24242 + contents = retrieve_contents(abfd, sec, info->keep_memory);
24243 + if (!contents)
24244 + goto out;
24245 +
24246 + fragend = rd->frag + rd->frag_count;
24247 +
24248 + RDBG("move_data: %s<%s>: relocs=%p, contents=%p\n",
24249 + abfd->filename, sec->name, relocs, contents);
24250 +
24251 + /* First, move the data into place. We must take care to move
24252 + frags in the right order so that we don't accidentally
24253 + overwrite parts of the next frag. */
24254 + for (frag = rd->frag; frag < fragend; frag++)
24255 + {
24256 + RDBG(" 0x%08lx%c0x%x: size 0x%lx%c0x%x\n",
24257 + frag->offset, frag->offset_adjust >= 0 ? '+' : '-',
24258 + abs(frag->offset_adjust),
24259 + frag->size, frag->size_adjust >= 0 ? '+' : '-',
24260 + abs(frag->size_adjust));
24261 + if (frag->offset_adjust > 0)
24262 + {
24263 + struct fragment *prev = frag - 1;
24264 + struct fragment *last;
24265 +
24266 + for (last = frag; last < fragend && last->offset_adjust > 0;
24267 + last++) ;
24268 +
24269 + if (last == fragend)
24270 + last--;
24271 +
24272 + for (frag = last; frag != prev; frag--)
24273 + {
24274 + if (frag->offset_adjust
24275 + && frag->size + frag->size_adjust > 0)
24276 + {
24277 + RDBG("memmove 0x%lx -> 0x%lx (size %lu)\n",
24278 + frag->offset, frag->offset + frag->offset_adjust,
24279 + frag->size + frag->size_adjust);
24280 + memmove(contents + frag->offset + frag->offset_adjust,
24281 + contents + frag->offset,
24282 + frag->size + frag->size_adjust);
24283 + }
24284 + }
24285 + frag = last;
24286 + }
24287 + else if (frag->offset_adjust && frag->size + frag->size_adjust > 0)
24288 + {
24289 + RDBG("memmove 0x%lx -> 0x%lx (size %lu)\n",
24290 + frag->offset, frag->offset + frag->offset_adjust,
24291 + frag->size + frag->size_adjust);
24292 + memmove(contents + frag->offset + frag->offset_adjust,
24293 + contents + frag->offset,
24294 + frag->size + frag->size_adjust);
24295 + }
24296 + }
24297 +
24298 + i = 0;
24299 +
24300 + for (frag = rd->frag; frag < fragend; frag++)
24301 + {
24302 + const struct relax_state *state, *istate;
24303 + struct avr32_reloc_data *r_data = NULL;
24304 +
24305 + istate = &relax_state[frag->initial_state];
24306 + state = &relax_state[frag->state];
24307 +
24308 + if (rd->reloc_data)
24309 + r_data = &rd->reloc_data[frag->rela - relocs];
24310 +
24311 + BFD_ASSERT((long)(frag->size + frag->size_adjust) >= 0);
24312 + BFD_ASSERT(state->reftype != REF_CPOOL
24313 + || r_data->add_frag->refcount > 0);
24314 +
24315 + if (istate->reftype == REF_CPOOL && state->reftype != REF_CPOOL)
24316 + {
24317 + struct fragment *ifrag;
24318 +
24319 + /* An indirect reference through the cpool has been
24320 + converted to a direct reference. We must update the
24321 + reloc to point to the symbol itself instead of the
24322 + constant pool entry. The reloc type will be updated
24323 + later. */
24324 + ifrag = r_data->add_frag;
24325 + frag->rela->r_info = ifrag->rela->r_info;
24326 + frag->rela->r_addend = ifrag->rela->r_addend;
24327 +
24328 + /* Copy the reloc data so the addend will be adjusted
24329 + correctly later. */
24330 + *r_data = rd->reloc_data[ifrag->rela - relocs];
24331 + }
24332 +
24333 + /* Move all relocs covered by this frag. */
24334 + if (frag->rela)
24335 + BFD_ASSERT(&relocs[i] <= frag->rela);
24336 + else
24337 + BFD_ASSERT((frag + 1) == fragend && frag->state == RS_NONE);
24338 +
24339 + if (frag == rd->frag)
24340 + BFD_ASSERT(i == 0);
24341 + else
24342 + BFD_ASSERT(&relocs[i] > frag[-1].rela);
24343 +
24344 + /* If non-null, frag->rela is the last relocation in the
24345 + fragment. frag->rela can only be null in the last
24346 + fragment, so in that case, we'll just do the rest. */
24347 + for (; (i < sec->reloc_count
24348 + && (!frag->rela || &relocs[i] <= frag->rela)); i++)
24349 + {
24350 + RDBG("[%4u] r_offset 0x%08lx -> 0x%08lx\n", i, relocs[i].r_offset,
24351 + relocs[i].r_offset + frag->offset_adjust);
24352 + relocs[i].r_offset += frag->offset_adjust;
24353 + }
24354 +
24355 + if (frag->refcount == 0)
24356 + {
24357 + /* If this frag is to be discarded, make sure we won't
24358 + relocate it later on. */
24359 + BFD_ASSERT(frag->state == RS_CPENT);
24360 + frag->rela->r_info = ELF_R_INFO(ELF_R_SYM(frag->rela->r_info),
24361 + R_AVR32_NONE);
24362 + }
24363 + else if (frag->state == RS_ALIGN)
24364 + {
24365 + bfd_vma addr, addr_end;
24366 +
24367 + addr = frag->rela->r_offset;
24368 + addr_end = (frag->offset + frag->offset_adjust
24369 + + frag->size + frag->size_adjust);
24370 +
24371 + /* If the section is executable, insert NOPs.
24372 + Otherwise, insert zeroes. */
24373 + if (sec->flags & SEC_CODE)
24374 + {
24375 + if (addr & 1)
24376 + {
24377 + bfd_put_8(abfd, 0, contents + addr);
24378 + addr++;
24379 + }
24380 +
24381 + BFD_ASSERT(!((addr_end - addr) & 1));
24382 +
24383 + while (addr < addr_end)
24384 + {
24385 + bfd_put_16(abfd, NOP_OPCODE, contents + addr);
24386 + addr += 2;
24387 + }
24388 + }
24389 + else
24390 + memset(contents + addr, 0, addr_end - addr);
24391 + }
24392 + else if (state->opcode_mask)
24393 + {
24394 + bfd_vma insn;
24395 +
24396 + /* Update the opcode and the relocation type unless it's a
24397 + "special" relax state (i.e. RS_NONE, RS_ALIGN or
24398 + RS_CPENT.), in which case the opcode mask is zero. */
24399 + insn = bfd_get_32(abfd, contents + frag->rela->r_offset);
24400 + insn &= ~state->opcode_mask;
24401 + insn |= state->opcode;
24402 + RDBG(" 0x%lx: inserting insn %08lx\n",
24403 + frag->rela->r_offset, insn);
24404 + bfd_put_32(abfd, insn, contents + frag->rela->r_offset);
24405 +
24406 + frag->rela->r_info = ELF_R_INFO(ELF_R_SYM(frag->rela->r_info),
24407 + state->r_type);
24408 + }
24409 +
24410 + if ((frag + 1) == fragend)
24411 + BFD_ASSERT((frag->offset + frag->size + frag->offset_adjust
24412 + + frag->size_adjust) == sec->size);
24413 + else
24414 + BFD_ASSERT((frag->offset + frag->size + frag->offset_adjust
24415 + + frag->size_adjust)
24416 + == (frag[1].offset + frag[1].offset_adjust));
24417 + }
24418 + }
24419 +
24420 + /* Adjust reloc addends and DIFF32 differences */
24421 + if (!adjust_relocs(abfd, sec, info))
24422 + return FALSE;
24423 +
24424 + ret = TRUE;
24425 +
24426 + out:
24427 + release_contents(sec, contents);
24428 + release_internal_relocs(sec, relocs);
24429 + return ret;
24430 +}
24431 +
24432 +static bfd_boolean
24433 +avr32_elf_relax_section(bfd *abfd, asection *sec,
24434 + struct bfd_link_info *info, bfd_boolean *again)
24435 +{
24436 + struct elf_avr32_link_hash_table *htab;
24437 + struct avr32_relax_data *rd;
24438 +
24439 + *again = FALSE;
24440 + if (info->relocatable)
24441 + return TRUE;
24442 +
24443 + htab = avr32_elf_hash_table(info);
24444 + if ((!(sec->flags & SEC_RELOC) || sec->reloc_count == 0)
24445 + && sec != htab->sgot)
24446 + return TRUE;
24447 +
24448 + if (!htab->relocations_analyzed)
24449 + {
24450 + if (!analyze_relocations(info))
24451 + return FALSE;
24452 + htab->relocations_analyzed = TRUE;
24453 + }
24454 +
24455 + rd = avr32_relax_data(sec);
24456 +
24457 + if (rd->iteration != htab->relax_iteration)
24458 + {
24459 + if (!htab->repeat_pass)
24460 + htab->relax_pass++;
24461 + htab->relax_iteration++;
24462 + htab->repeat_pass = FALSE;
24463 + }
24464 +
24465 + rd->iteration++;
24466 +
24467 + switch (htab->relax_pass)
24468 + {
24469 + case RELAX_PASS_SIZE_FRAGS:
24470 + if (!avr32_size_frags(abfd, sec, info))
24471 + return FALSE;
24472 + *again = TRUE;
24473 + break;
24474 + case RELAX_PASS_MOVE_DATA:
24475 + if (!avr32_move_data(abfd, sec, info))
24476 + return FALSE;
24477 + break;
24478 + }
24479 +
24480 + return TRUE;
24481 +}
24482 +
24483 +\f
24484 +/* Relocation */
24485 +
24486 +static bfd_reloc_status_type
24487 +avr32_check_reloc_value(asection *sec, Elf_Internal_Rela *rela,
24488 + bfd_signed_vma relocation, reloc_howto_type *howto);
24489 +static bfd_reloc_status_type
24490 +avr32_final_link_relocate(reloc_howto_type *howto, bfd *input_bfd,
24491 + asection *input_section, bfd_byte *contents,
24492 + Elf_Internal_Rela *rel, bfd_vma value);
24493 +static bfd_boolean
24494 +avr32_elf_relocate_section(bfd *output_bfd, struct bfd_link_info *info,
24495 + bfd *input_bfd, asection *input_section,
24496 + bfd_byte *contents, Elf_Internal_Rela *relocs,
24497 + Elf_Internal_Sym *local_syms,
24498 + asection **local_sections);
24499 +
24500 +
24501 +#define symbol_address(symbol) \
24502 + symbol->value + symbol->section->output_section->vma \
24503 + + symbol->section->output_offset
24504 +
24505 +#define avr32_elf_insert_field(size, field, abfd, reloc_entry, data) \
24506 + do \
24507 + { \
24508 + unsigned long x; \
24509 + x = bfd_get_##size (abfd, data + reloc_entry->address); \
24510 + x &= ~reloc_entry->howto->dst_mask; \
24511 + x |= field & reloc_entry->howto->dst_mask; \
24512 + bfd_put_##size (abfd, (bfd_vma) x, data + reloc_entry->address); \
24513 + } \
24514 + while(0)
24515 +
24516 +static bfd_reloc_status_type
24517 +avr32_check_reloc_value(asection *sec ATTRIBUTE_UNUSED,
24518 + Elf_Internal_Rela *rela ATTRIBUTE_UNUSED,
24519 + bfd_signed_vma relocation,
24520 + reloc_howto_type *howto)
24521 +{
24522 + bfd_vma reloc_u;
24523 +
24524 + /* We take "complain_overflow_dont" to mean "don't complain on
24525 + alignment either". This way, we don't have to special-case
24526 + R_AVR32_HI16 */
24527 + if (howto->complain_on_overflow == complain_overflow_dont)
24528 + return bfd_reloc_ok;
24529 +
24530 + /* Check if the value is correctly aligned */
24531 + if (relocation & ((1 << howto->rightshift) - 1))
24532 + {
24533 + RDBG("misaligned: %s<%s+%lx>: %s: 0x%lx (align %u)\n",
24534 + sec->owner->filename, sec->name, rela->r_offset,
24535 + howto->name, relocation, howto->rightshift);
24536 + return bfd_reloc_overflow;
24537 + }
24538 +
24539 + /* Now, get rid of the unnecessary bits */
24540 + relocation >>= howto->rightshift;
24541 + reloc_u = (bfd_vma)relocation;
24542 +
24543 + switch (howto->complain_on_overflow)
24544 + {
24545 + case complain_overflow_unsigned:
24546 + case complain_overflow_bitfield:
24547 + if (reloc_u > (unsigned long)((1 << howto->bitsize) - 1))
24548 + {
24549 + RDBG("unsigned overflow: %s<%s+%lx>: %s: 0x%lx (size %u)\n",
24550 + sec->owner->filename, sec->name, rela->r_offset,
24551 + howto->name, reloc_u, howto->bitsize);
24552 + RDBG("reloc vma: 0x%lx\n",
24553 + sec->output_section->vma + sec->output_offset + rela->r_offset);
24554 +
24555 + return bfd_reloc_overflow;
24556 + }
24557 + break;
24558 + case complain_overflow_signed:
24559 + if (relocation > (1 << (howto->bitsize - 1)) - 1)
24560 + {
24561 + RDBG("signed overflow: %s<%s+%lx>: %s: 0x%lx (size %u)\n",
24562 + sec->owner->filename, sec->name, rela->r_offset,
24563 + howto->name, reloc_u, howto->bitsize);
24564 + RDBG("reloc vma: 0x%lx\n",
24565 + sec->output_section->vma + sec->output_offset + rela->r_offset);
24566 +
24567 + return bfd_reloc_overflow;
24568 + }
24569 + if (relocation < -(1 << (howto->bitsize - 1)))
24570 + {
24571 + RDBG("signed overflow: %s<%s+%lx>: %s: -0x%lx (size %u)\n",
24572 + sec->owner->filename, sec->name, rela->r_offset,
24573 + howto->name, -relocation, howto->bitsize);
24574 + RDBG("reloc vma: 0x%lx\n",
24575 + sec->output_section->vma + sec->output_offset + rela->r_offset);
24576 +
24577 + return bfd_reloc_overflow;
24578 + }
24579 + break;
24580 + default:
24581 + abort();
24582 + }
24583 +
24584 + return bfd_reloc_ok;
24585 +}
24586 +
24587 +
24588 +static bfd_reloc_status_type
24589 +avr32_final_link_relocate(reloc_howto_type *howto,
24590 + bfd *input_bfd,
24591 + asection *input_section,
24592 + bfd_byte *contents,
24593 + Elf_Internal_Rela *rel,
24594 + bfd_vma value)
24595 +{
24596 + bfd_vma field;
24597 + bfd_vma relocation;
24598 + bfd_reloc_status_type status;
24599 + bfd_byte *p = contents + rel->r_offset;
24600 + unsigned long x;
24601 +
24602 + pr_debug(" (6b) final link relocate\n");
24603 +
24604 + /* Sanity check the address */
24605 + if (rel->r_offset > input_section->size)
24606 + {
24607 + (*_bfd_error_handler)
24608 + ("%B: %A+0x%lx: offset out of range (section size: 0x%lx)",
24609 + input_bfd, input_section, rel->r_offset, input_section->size);
24610 + return bfd_reloc_outofrange;
24611 + }
24612 +
24613 + relocation = value + rel->r_addend;
24614 +
24615 + if (howto->pc_relative)
24616 + {
24617 + bfd_vma addr;
24618 +
24619 + addr = input_section->output_section->vma
24620 + + input_section->output_offset + rel->r_offset;
24621 + addr &= ~0UL << howto->rightshift;
24622 + relocation -= addr;
24623 + }
24624 +
24625 + switch (ELF32_R_TYPE(rel->r_info))
24626 + {
24627 + case R_AVR32_16N_PCREL:
24628 + /* sub reg, pc, . - (sym + addend) */
24629 + relocation = -relocation;
24630 + break;
24631 + }
24632 +
24633 + status = avr32_check_reloc_value(input_section, rel, relocation, howto);
24634 +
24635 + relocation >>= howto->rightshift;
24636 + if (howto->bitsize == 21)
24637 + field = (relocation & 0xffff)
24638 + | ((relocation & 0x10000) << 4)
24639 + | ((relocation & 0x1e0000) << 8);
24640 + else if (howto->bitsize == 12)
24641 + field = (relocation & 0xff) | ((relocation & 0xf00) << 4);
24642 + else if (howto->bitsize == 10)
24643 + field = ((relocation & 0xff) << 4)
24644 + | ((relocation & 0x300) >> 8);
24645 + else
24646 + field = relocation << howto->bitpos;
24647 +
24648 + switch (howto->size)
24649 + {
24650 + case 0:
24651 + x = bfd_get_8 (input_bfd, p);
24652 + x &= ~howto->dst_mask;
24653 + x |= field & howto->dst_mask;
24654 + bfd_put_8 (input_bfd, (bfd_vma) x, p);
24655 + break;
24656 + case 1:
24657 + x = bfd_get_16 (input_bfd, p);
24658 + x &= ~howto->dst_mask;
24659 + x |= field & howto->dst_mask;
24660 + bfd_put_16 (input_bfd, (bfd_vma) x, p);
24661 + break;
24662 + case 2:
24663 + x = bfd_get_32 (input_bfd, p);
24664 + x &= ~howto->dst_mask;
24665 + x |= field & howto->dst_mask;
24666 + bfd_put_32 (input_bfd, (bfd_vma) x, p);
24667 + break;
24668 + default:
24669 + abort();
24670 + }
24671 +
24672 + return status;
24673 +}
24674 +
24675 +/* (6) Apply relocations to the normal (non-dynamic) sections */
24676 +
24677 +static bfd_boolean
24678 +avr32_elf_relocate_section(bfd *output_bfd, struct bfd_link_info *info,
24679 + bfd *input_bfd, asection *input_section,
24680 + bfd_byte *contents, Elf_Internal_Rela *relocs,
24681 + Elf_Internal_Sym *local_syms,
24682 + asection **local_sections)
24683 +{
24684 + struct elf_avr32_link_hash_table *htab;
24685 + Elf_Internal_Shdr *symtab_hdr;
24686 + Elf_Internal_Rela *rel, *relend;
24687 + struct elf_link_hash_entry **sym_hashes;
24688 + struct got_entry **local_got_ents;
24689 + asection *sgot;
24690 + asection *srelgot;
24691 +
24692 + pr_debug("(6) relocate section %s:<%s> (size 0x%lx)\n",
24693 + input_bfd->filename, input_section->name, input_section->size);
24694 +
24695 + /* If we're doing a partial link, we don't have to do anything since
24696 + we're using RELA relocations */
24697 + if (info->relocatable)
24698 + return TRUE;
24699 +
24700 + htab = avr32_elf_hash_table(info);
24701 + symtab_hdr = &elf_tdata(input_bfd)->symtab_hdr;
24702 + sym_hashes = elf_sym_hashes(input_bfd);
24703 + local_got_ents = elf_local_got_ents(input_bfd);
24704 + sgot = htab->sgot;
24705 + srelgot = htab->srelgot;
24706 +
24707 + relend = relocs + input_section->reloc_count;
24708 + for (rel = relocs; rel < relend; rel++)
24709 + {
24710 + unsigned long r_type, r_symndx;
24711 + reloc_howto_type *howto;
24712 + Elf_Internal_Sym *sym = NULL;
24713 + struct elf_link_hash_entry *h = NULL;
24714 + asection *sec = NULL;
24715 + bfd_vma value;
24716 + bfd_vma offset;
24717 + bfd_reloc_status_type status;
24718 +
24719 + r_type = ELF32_R_TYPE(rel->r_info);
24720 + r_symndx = ELF32_R_SYM(rel->r_info);
24721 +
24722 + if (r_type == R_AVR32_NONE
24723 + || r_type == R_AVR32_ALIGN
24724 + || r_type == R_AVR32_DIFF32
24725 + || r_type == R_AVR32_DIFF16
24726 + || r_type == R_AVR32_DIFF8)
24727 + continue;
24728 +
24729 + /* Sanity check */
24730 + if (r_type > R_AVR32_max)
24731 + {
24732 + bfd_set_error(bfd_error_bad_value);
24733 + return FALSE;
24734 + }
24735 +
24736 + howto = &elf_avr32_howto_table[r_type];
24737 +
24738 + if (r_symndx < symtab_hdr->sh_info)
24739 + {
24740 + sym = local_syms + r_symndx;
24741 + sec = local_sections[r_symndx];
24742 +
24743 + pr_debug(" (6a) processing %s against local symbol %lu\n",
24744 + howto->name, r_symndx);
24745 +
24746 + /* The following function changes rel->r_addend behind our back. */
24747 + value = _bfd_elf_rela_local_sym(output_bfd, sym, &sec, rel);
24748 + pr_debug(" => value: %lx, addend: %lx\n", value, rel->r_addend);
24749 + }
24750 + else
24751 + {
24752 + if (sym_hashes == NULL)
24753 + return FALSE;
24754 +
24755 + h = sym_hashes[r_symndx - symtab_hdr->sh_info];
24756 + while (h->root.type == bfd_link_hash_indirect
24757 + || h->root.type == bfd_link_hash_warning)
24758 + h = (struct elf_link_hash_entry *)h->root.u.i.link;
24759 +
24760 + pr_debug(" (6a) processing %s against symbol %s\n",
24761 + howto->name, h->root.root.string);
24762 +
24763 + if (h->root.type == bfd_link_hash_defined
24764 + || h->root.type == bfd_link_hash_defweak)
24765 + {
24766 + bfd_boolean dyn;
24767 +
24768 + dyn = htab->root.dynamic_sections_created;
24769 + sec = h->root.u.def.section;
24770 +
24771 + if (sec->output_section)
24772 + value = (h->root.u.def.value
24773 + + sec->output_section->vma
24774 + + sec->output_offset);
24775 + else
24776 + value = h->root.u.def.value;
24777 + }
24778 + else if (h->root.type == bfd_link_hash_undefweak)
24779 + value = 0;
24780 + else if (info->unresolved_syms_in_objects == RM_IGNORE
24781 + && ELF_ST_VISIBILITY(h->other) == STV_DEFAULT)
24782 + value = 0;
24783 + else
24784 + {
24785 + bfd_boolean err;
24786 + err = (info->unresolved_syms_in_objects == RM_GENERATE_ERROR
24787 + || ELF_ST_VISIBILITY(h->other) != STV_DEFAULT);
24788 + if (!info->callbacks->undefined_symbol
24789 + (info, h->root.root.string, input_bfd,
24790 + input_section, rel->r_offset, err))
24791 + return FALSE;
24792 + value = 0;
24793 + }
24794 +
24795 + pr_debug(" => value: %lx, addend: %lx\n", value, rel->r_addend);
24796 + }
24797 +
24798 + switch (r_type)
24799 + {
24800 + case R_AVR32_GOT32:
24801 + case R_AVR32_GOT16:
24802 + case R_AVR32_GOT8:
24803 + case R_AVR32_GOT21S:
24804 + case R_AVR32_GOT18SW:
24805 + case R_AVR32_GOT16S:
24806 + case R_AVR32_GOT7UW:
24807 + case R_AVR32_LDA_GOT:
24808 + case R_AVR32_GOTCALL:
24809 + BFD_ASSERT(sgot != NULL);
24810 +
24811 + if (h != NULL)
24812 + {
24813 + BFD_ASSERT(h->got.glist->refcount > 0);
24814 + offset = h->got.glist->offset;
24815 +
24816 + BFD_ASSERT(offset < sgot->size);
24817 + if (!elf_hash_table(info)->dynamic_sections_created
24818 + || (h->def_regular
24819 + && (!info->shared
24820 + || info->symbolic
24821 + || h->dynindx == -1)))
24822 + {
24823 + /* This is actually a static link, or it is a
24824 + -Bsymbolic link and the symbol is defined
24825 + locally, or the symbol was forced to be local. */
24826 + bfd_put_32(output_bfd, value, sgot->contents + offset);
24827 + }
24828 + }
24829 + else
24830 + {
24831 + BFD_ASSERT(local_got_ents &&
24832 + local_got_ents[r_symndx]->refcount > 0);
24833 + offset = local_got_ents[r_symndx]->offset;
24834 +
24835 + /* Local GOT entries don't have relocs. If this is a
24836 + shared library, the dynamic linker will add the load
24837 + address to the initial value at startup. */
24838 + BFD_ASSERT(offset < sgot->size);
24839 + pr_debug("Initializing GOT entry at offset %lu: 0x%lx\n",
24840 + offset, value);
24841 + bfd_put_32 (output_bfd, value, sgot->contents + offset);
24842 + }
24843 +
24844 + value = sgot->output_offset + offset;
24845 + pr_debug("GOT reference: New value %lx\n", value);
24846 + break;
24847 +
24848 + case R_AVR32_GOTPC:
24849 + /* This relocation type is for constant pool entries used in
24850 + the calculation "Rd = PC - (PC - GOT)", where the
24851 + constant pool supplies the constant (PC - GOT)
24852 + offset. The symbol value + addend indicates where the
24853 + value of PC is taken. */
24854 + value -= sgot->output_section->vma;
24855 + break;
24856 +
24857 + case R_AVR32_32_PCREL:
24858 + /* We must adjust r_offset to account for discarded data in
24859 + the .eh_frame section. This is probably not the right
24860 + way to do this, since AFAICS all other architectures do
24861 + it some other way. I just can't figure out how... */
24862 + {
24863 + bfd_vma r_offset;
24864 +
24865 + r_offset = _bfd_elf_section_offset(output_bfd, info,
24866 + input_section,
24867 + rel->r_offset);
24868 + if (r_offset == (bfd_vma)-1
24869 + || r_offset == (bfd_vma)-2)
24870 + continue;
24871 + rel->r_offset = r_offset;
24872 + }
24873 + break;
24874 +
24875 + case R_AVR32_32:
24876 + /* We need to emit a run-time relocation in the following cases:
24877 + - we're creating a shared library
24878 + - the symbol is not defined in any regular objects
24879 +
24880 + Of course, sections that aren't going to be part of the
24881 + run-time image will not get any relocs, and undefined
24882 + symbols won't have any either (only weak undefined
24883 + symbols should get this far). */
24884 + if ((info->shared
24885 + || (elf_hash_table(info)->dynamic_sections_created
24886 + && h != NULL
24887 + && h->def_dynamic
24888 + && !h->def_regular))
24889 + && r_symndx != 0
24890 + && (input_section->flags & SEC_ALLOC))
24891 + {
24892 + Elf_Internal_Rela outrel;
24893 + bfd_byte *loc;
24894 + bfd_boolean skip, relocate;
24895 + struct elf_avr32_link_hash_entry *avrh;
24896 +
24897 + pr_debug("Going to generate dynamic reloc...\n");
24898 +
24899 + skip = FALSE;
24900 + relocate = FALSE;
24901 +
24902 + outrel.r_offset = _bfd_elf_section_offset(output_bfd, info,
24903 + input_section,
24904 + rel->r_offset);
24905 + if (outrel.r_offset == (bfd_vma)-1)
24906 + skip = TRUE;
24907 + else if (outrel.r_offset == (bfd_vma)-2)
24908 + skip = TRUE, relocate = TRUE;
24909 +
24910 + outrel.r_offset += (input_section->output_section->vma
24911 + + input_section->output_offset);
24912 +
24913 + pr_debug(" ... offset %lx, dynindx %ld\n",
24914 + outrel.r_offset, h ? h->dynindx : -1);
24915 +
24916 + if (skip)
24917 + memset(&outrel, 0, sizeof(outrel));
24918 + else
24919 + {
24920 + avrh = (struct elf_avr32_link_hash_entry *)h;
24921 + /* h->dynindx may be -1 if this symbol was marked to
24922 + become local. */
24923 + if (h == NULL
24924 + || ((info->symbolic || h->dynindx == -1)
24925 + && h->def_regular))
24926 + {
24927 + relocate = TRUE;
24928 + outrel.r_info = ELF32_R_INFO(0, R_AVR32_RELATIVE);
24929 + outrel.r_addend = value + rel->r_addend;
24930 + pr_debug(" ... R_AVR32_RELATIVE\n");
24931 + }
24932 + else
24933 + {
24934 + BFD_ASSERT(h->dynindx != -1);
24935 + relocate = TRUE;
24936 + outrel.r_info = ELF32_R_INFO(h->dynindx, R_AVR32_GLOB_DAT);
24937 + outrel.r_addend = rel->r_addend;
24938 + pr_debug(" ... R_AVR32_GLOB_DAT\n");
24939 + }
24940 + }
24941 +
24942 + pr_debug("srelgot reloc_count: %d, size %lu\n",
24943 + srelgot->reloc_count, srelgot->size);
24944 +
24945 + loc = srelgot->contents;
24946 + loc += srelgot->reloc_count++ * sizeof(Elf32_External_Rela);
24947 + bfd_elf32_swap_reloca_out(output_bfd, &outrel, loc);
24948 +
24949 + BFD_ASSERT(srelgot->reloc_count * sizeof(Elf32_External_Rela)
24950 + <= srelgot->size);
24951 +
24952 + if (!relocate)
24953 + continue;
24954 + }
24955 + break;
24956 + }
24957 +
24958 + status = avr32_final_link_relocate(howto, input_bfd, input_section,
24959 + contents, rel, value);
24960 +
24961 + switch (status)
24962 + {
24963 + case bfd_reloc_ok:
24964 + break;
24965 +
24966 + case bfd_reloc_overflow:
24967 + {
24968 + const char *name;
24969 +
24970 + if (h != NULL)
24971 + name = h->root.root.string;
24972 + else
24973 + {
24974 + name = bfd_elf_string_from_elf_section(input_bfd,
24975 + symtab_hdr->sh_link,
24976 + sym->st_name);
24977 + if (name == NULL)
24978 + return FALSE;
24979 + if (*name == '\0')
24980 + name = bfd_section_name(input_bfd, sec);
24981 + }
24982 + if (!((*info->callbacks->reloc_overflow)
24983 + (info, (h ? &h->root : NULL), name, howto->name,
24984 + rel->r_addend, input_bfd, input_section, rel->r_offset)))
24985 + return FALSE;
24986 + }
24987 + break;
24988 +
24989 + case bfd_reloc_outofrange:
24990 + default:
24991 + abort();
24992 + }
24993 + }
24994 +
24995 + return TRUE;
24996 +}
24997 +
24998 +\f
24999 +/* Additional processing of dynamic sections after relocation */
25000 +
25001 +static bfd_boolean
25002 +avr32_elf_finish_dynamic_symbol(bfd *output_bfd, struct bfd_link_info *info,
25003 + struct elf_link_hash_entry *h,
25004 + Elf_Internal_Sym *sym);
25005 +static bfd_boolean
25006 +avr32_elf_finish_dynamic_sections(bfd *output_bfd, struct bfd_link_info *info);
25007 +
25008 +
25009 +/* (7) Initialize the contents of a dynamic symbol and/or emit
25010 + relocations for it */
25011 +
25012 +static bfd_boolean
25013 +avr32_elf_finish_dynamic_symbol(bfd *output_bfd, struct bfd_link_info *info,
25014 + struct elf_link_hash_entry *h,
25015 + Elf_Internal_Sym *sym)
25016 +{
25017 + struct elf_avr32_link_hash_table *htab;
25018 + struct got_entry *got;
25019 +
25020 + pr_debug("(7) finish dynamic symbol: %s\n", h->root.root.string);
25021 +
25022 + htab = avr32_elf_hash_table(info);
25023 + got = h->got.glist;
25024 +
25025 + if (got && got->refcount > 0)
25026 + {
25027 + asection *sgot;
25028 + asection *srelgot;
25029 + Elf_Internal_Rela rel;
25030 + bfd_byte *loc;
25031 +
25032 + /* This symbol has an entry in the GOT. Set it up. */
25033 + sgot = htab->sgot;
25034 + srelgot = htab->srelgot;
25035 + BFD_ASSERT(sgot && srelgot);
25036 +
25037 + rel.r_offset = (sgot->output_section->vma
25038 + + sgot->output_offset
25039 + + got->offset);
25040 +
25041 + /* If this is a static link, or it is a -Bsymbolic link and the
25042 + symbol is defined locally or was forced to be local because
25043 + of a version file, we just want to emit a RELATIVE reloc. The
25044 + entry in the global offset table will already have been
25045 + initialized in the relocate_section function. */
25046 + if ((info->shared
25047 + && !info->symbolic
25048 + && h->dynindx != -1)
25049 + || (htab->root.dynamic_sections_created
25050 + && h->def_dynamic
25051 + && !h->def_regular))
25052 + {
25053 + bfd_put_32(output_bfd, 0, sgot->contents + got->offset);
25054 + rel.r_info = ELF32_R_INFO(h->dynindx, R_AVR32_GLOB_DAT);
25055 + rel.r_addend = 0;
25056 +
25057 + pr_debug("GOT reloc R_AVR32_GLOB_DAT, dynindx: %ld\n", h->dynindx);
25058 + pr_debug(" srelgot reloc_count: %d, size: %lu\n",
25059 + srelgot->reloc_count, srelgot->size);
25060 +
25061 + loc = (srelgot->contents
25062 + + srelgot->reloc_count++ * sizeof(Elf32_External_Rela));
25063 + bfd_elf32_swap_reloca_out(output_bfd, &rel, loc);
25064 +
25065 + BFD_ASSERT(srelgot->reloc_count * sizeof(Elf32_External_Rela)
25066 + <= srelgot->size);
25067 + }
25068 + }
25069 +
25070 + /* Mark _DYNAMIC and _GLOBAL_OFFSET_TABLE_ as absolute */
25071 + if (strcmp(h->root.root.string, "_DYNAMIC") == 0
25072 + || strcmp(h->root.root.string, "_GLOBAL_OFFSET_TABLE_") == 0)
25073 + sym->st_shndx = SHN_ABS;
25074 +
25075 + return TRUE;
25076 +}
25077 +
25078 +/* (8) Do any remaining initialization of the dynamic sections */
25079 +
25080 +static bfd_boolean
25081 +avr32_elf_finish_dynamic_sections(bfd *output_bfd, struct bfd_link_info *info)
25082 +{
25083 + struct elf_avr32_link_hash_table *htab;
25084 + asection *sgot, *sdyn;
25085 +
25086 + pr_debug("(8) finish dynamic sections\n");
25087 +
25088 + htab = avr32_elf_hash_table(info);
25089 + sgot = htab->sgot;
25090 + sdyn = bfd_get_section_by_name(htab->root.dynobj, ".dynamic");
25091 +
25092 + if (htab->root.dynamic_sections_created)
25093 + {
25094 + Elf32_External_Dyn *dyncon, *dynconend;
25095 +
25096 + BFD_ASSERT(sdyn && sgot && sgot->size >= AVR32_GOT_HEADER_SIZE);
25097 +
25098 + dyncon = (Elf32_External_Dyn *)sdyn->contents;
25099 + dynconend = (Elf32_External_Dyn *)(sdyn->contents + sdyn->size);
25100 + for (; dyncon < dynconend; dyncon++)
25101 + {
25102 + Elf_Internal_Dyn dyn;
25103 + asection *s;
25104 +
25105 + bfd_elf32_swap_dyn_in(htab->root.dynobj, dyncon, &dyn);
25106 +
25107 + switch (dyn.d_tag)
25108 + {
25109 + default:
25110 + break;
25111 +
25112 + case DT_PLTGOT:
25113 + s = sgot->output_section;
25114 + BFD_ASSERT(s != NULL);
25115 + dyn.d_un.d_ptr = s->vma;
25116 + bfd_elf32_swap_dyn_out(output_bfd, &dyn, dyncon);
25117 + break;
25118 +
25119 + case DT_AVR32_GOTSZ:
25120 + s = sgot->output_section;
25121 + BFD_ASSERT(s != NULL);
25122 + dyn.d_un.d_val = s->size;
25123 + bfd_elf32_swap_dyn_out(output_bfd, &dyn, dyncon);
25124 + break;
25125 + }
25126 + }
25127 +
25128 + /* Fill in the first two entries in the global offset table */
25129 + bfd_put_32(output_bfd,
25130 + sdyn->output_section->vma + sdyn->output_offset,
25131 + sgot->contents);
25132 +
25133 + /* The runtime linker will fill this one in with the address of
25134 + the run-time link map */
25135 + bfd_put_32(output_bfd, 0, sgot->contents + 4);
25136 + }
25137 +
25138 + if (sgot)
25139 + elf_section_data(sgot->output_section)->this_hdr.sh_entsize = 4;
25140 +
25141 + return TRUE;
25142 +}
25143 +
25144 +\f
25145 +/* AVR32-specific private ELF data */
25146 +
25147 +static bfd_boolean
25148 +avr32_elf_set_private_flags(bfd *abfd, flagword flags);
25149 +static bfd_boolean
25150 +avr32_elf_copy_private_bfd_data(bfd *ibfd, bfd *obfd);
25151 +static bfd_boolean
25152 +avr32_elf_merge_private_bfd_data(bfd *ibfd, bfd *obfd);
25153 +static bfd_boolean
25154 +avr32_elf_print_private_bfd_data(bfd *abfd, void *ptr);
25155 +
25156 +static bfd_boolean
25157 +avr32_elf_set_private_flags(bfd *abfd, flagword flags)
25158 +{
25159 + elf_elfheader(abfd)->e_flags = flags;
25160 + elf_flags_init(abfd) = TRUE;
25161 +
25162 + return TRUE;
25163 +}
25164 +
25165 +/* Copy backend specific data from one object module to another. */
25166 +
25167 +static bfd_boolean
25168 +avr32_elf_copy_private_bfd_data(bfd *ibfd, bfd *obfd)
25169 +{
25170 + elf_elfheader(obfd)->e_flags = elf_elfheader(ibfd)->e_flags;
25171 + return TRUE;
25172 +}
25173 +
25174 +/* Merge backend specific data from an object file to the output
25175 + object file when linking. */
25176 +
25177 +static bfd_boolean
25178 +avr32_elf_merge_private_bfd_data(bfd *ibfd, bfd *obfd)
25179 +{
25180 + flagword out_flags, in_flags;
25181 +
25182 + pr_debug("(0) merge_private_bfd_data: %s -> %s\n",
25183 + ibfd->filename, obfd->filename);
25184 +
25185 + in_flags = elf_elfheader(ibfd)->e_flags;
25186 + out_flags = elf_elfheader(obfd)->e_flags;
25187 +
25188 + if (elf_flags_init(obfd))
25189 + {
25190 + /* If one of the inputs are non-PIC, the output must be
25191 + considered non-PIC. The same applies to linkrelax. */
25192 + if (!(in_flags & EF_AVR32_PIC))
25193 + out_flags &= ~EF_AVR32_PIC;
25194 + if (!(in_flags & EF_AVR32_LINKRELAX))
25195 + out_flags &= ~EF_AVR32_LINKRELAX;
25196 + }
25197 + else
25198 + {
25199 + elf_flags_init(obfd) = TRUE;
25200 + out_flags = in_flags;
25201 + }
25202 +
25203 + elf_elfheader(obfd)->e_flags = out_flags;
25204 +
25205 + return TRUE;
25206 +}
25207 +
25208 +static bfd_boolean
25209 +avr32_elf_print_private_bfd_data(bfd *abfd, void *ptr)
25210 +{
25211 + FILE *file = (FILE *)ptr;
25212 + unsigned long flags;
25213 +
25214 + BFD_ASSERT(abfd != NULL && ptr != NULL);
25215 +
25216 + _bfd_elf_print_private_bfd_data(abfd, ptr);
25217 +
25218 + flags = elf_elfheader(abfd)->e_flags;
25219 +
25220 + fprintf(file, _("private flags = %lx:"), elf_elfheader(abfd)->e_flags);
25221 +
25222 + if (flags & EF_AVR32_PIC)
25223 + fprintf(file, " [PIC]");
25224 + if (flags & EF_AVR32_LINKRELAX)
25225 + fprintf(file, " [linker relaxable]");
25226 +
25227 + flags &= ~(EF_AVR32_PIC | EF_AVR32_LINKRELAX);
25228 +
25229 + if (flags)
25230 + fprintf(file, _("<Unrecognized flag bits set>"));
25231 +
25232 + fputc('\n', file);
25233 +
25234 + return TRUE;
25235 +}
25236 +
25237 +\f
25238 +/* Understanding core dumps */
25239 +
25240 +static bfd_boolean
25241 +avr32_elf_grok_prstatus(bfd *abfd, Elf_Internal_Note *note);
25242 +static bfd_boolean
25243 +avr32_elf_grok_psinfo(bfd *abfd, Elf_Internal_Note *note);
25244 +
25245 +static bfd_boolean
25246 +avr32_elf_grok_prstatus(bfd *abfd, Elf_Internal_Note *note)
25247 +{
25248 + /* Linux/AVR32B elf_prstatus */
25249 + if (note->descsz != 148)
25250 + return FALSE;
25251 +
25252 + /* pr_cursig */
25253 + elf_tdata(abfd)->core_signal = bfd_get_16(abfd, note->descdata + 12);
25254 +
25255 + /* pr_pid */
25256 + elf_tdata(abfd)->core_pid = bfd_get_32(abfd, note->descdata + 24);
25257 +
25258 + /* Make a ".reg/999" section for pr_reg. The size is for 16
25259 + general-purpose registers, SR and r12_orig (18 * 4 = 72). */
25260 + return _bfd_elfcore_make_pseudosection(abfd, ".reg", 72,
25261 + note->descpos + 72);
25262 +}
25263 +
25264 +static bfd_boolean
25265 +avr32_elf_grok_psinfo(bfd *abfd, Elf_Internal_Note *note)
25266 +{
25267 + /* Linux/AVR32B elf_prpsinfo */
25268 + if (note->descsz != 128)
25269 + return FALSE;
25270 +
25271 + elf_tdata(abfd)->core_program
25272 + = _bfd_elfcore_strndup(abfd, note->descdata + 32, 16);
25273 + elf_tdata(abfd)->core_command
25274 + = _bfd_elfcore_strndup(abfd, note->descdata + 48, 80);
25275 +
25276 + /* Note that for some reason, a spurious space is tacked
25277 + onto the end of the args in some (at least one anyway)
25278 + implementations, so strip it off if it exists. */
25279 +
25280 + {
25281 + char *command = elf_tdata (abfd)->core_command;
25282 + int n = strlen (command);
25283 +
25284 + if (0 < n && command[n - 1] == ' ')
25285 + command[n - 1] = '\0';
25286 + }
25287 +
25288 + return TRUE;
25289 +}
25290 +
25291 +\f
25292 +#define ELF_ARCH bfd_arch_avr32
25293 +#define ELF_MACHINE_CODE EM_AVR32
25294 +#define ELF_MAXPAGESIZE 0x1000
25295 +
25296 +#define TARGET_BIG_SYM bfd_elf32_avr32_vec
25297 +#define TARGET_BIG_NAME "elf32-avr32"
25298 +
25299 +#define elf_backend_grok_prstatus avr32_elf_grok_prstatus
25300 +#define elf_backend_grok_psinfo avr32_elf_grok_psinfo
25301 +
25302 +/* Only RELA relocations are used */
25303 +#define elf_backend_may_use_rel_p 0
25304 +#define elf_backend_may_use_rela_p 1
25305 +#define elf_backend_default_use_rela_p 1
25306 +#define elf_backend_rela_normal 1
25307 +#define elf_info_to_howto_rel NULL
25308 +#define elf_info_to_howto avr32_info_to_howto
25309 +
25310 +#define bfd_elf32_bfd_copy_private_bfd_data avr32_elf_copy_private_bfd_data
25311 +#define bfd_elf32_bfd_merge_private_bfd_data avr32_elf_merge_private_bfd_data
25312 +#define bfd_elf32_bfd_set_private_flags avr32_elf_set_private_flags
25313 +#define bfd_elf32_bfd_print_private_bfd_data avr32_elf_print_private_bfd_data
25314 +#define bfd_elf32_new_section_hook avr32_elf_new_section_hook
25315 +
25316 +#define elf_backend_gc_mark_hook avr32_elf_gc_mark_hook
25317 +#define elf_backend_gc_sweep_hook avr32_elf_gc_sweep_hook
25318 +#define elf_backend_relocate_section avr32_elf_relocate_section
25319 +#define elf_backend_copy_indirect_symbol avr32_elf_copy_indirect_symbol
25320 +#define elf_backend_create_dynamic_sections avr32_elf_create_dynamic_sections
25321 +#define bfd_elf32_bfd_link_hash_table_create avr32_elf_link_hash_table_create
25322 +#define elf_backend_adjust_dynamic_symbol avr32_elf_adjust_dynamic_symbol
25323 +#define elf_backend_size_dynamic_sections avr32_elf_size_dynamic_sections
25324 +#define elf_backend_finish_dynamic_symbol avr32_elf_finish_dynamic_symbol
25325 +#define elf_backend_finish_dynamic_sections avr32_elf_finish_dynamic_sections
25326 +
25327 +#define bfd_elf32_bfd_relax_section avr32_elf_relax_section
25328 +
25329 +/* Find out which symbols need an entry in .got. */
25330 +#define elf_backend_check_relocs avr32_check_relocs
25331 +#define elf_backend_can_refcount 1
25332 +#define elf_backend_can_gc_sections 1
25333 +#define elf_backend_plt_readonly 1
25334 +#define elf_backend_plt_not_loaded 1
25335 +#define elf_backend_want_plt_sym 0
25336 +#define elf_backend_plt_alignment 2
25337 +#define elf_backend_want_dynbss 0
25338 +#define elf_backend_want_got_plt 0
25339 +#define elf_backend_want_got_sym 1
25340 +#define elf_backend_got_header_size AVR32_GOT_HEADER_SIZE
25341 +
25342 +#include "elf32-target.h"
25343 diff -Nrup binutils-2.17/bfd/elf32-avr32.h binutils-2.17.atmel.1.3.0/bfd/elf32-avr32.h
25344 --- binutils-2.17/bfd/elf32-avr32.h 1970-01-01 01:00:00.000000000 +0100
25345 +++ binutils-2.17.atmel.1.3.0/bfd/elf32-avr32.h 2007-09-28 10:30:44.000000000 +0200
25346 @@ -0,0 +1,23 @@
25347 +/* AVR32-specific support for 32-bit ELF.
25348 + Copyright 2007 Atmel Corporation.
25349 +
25350 + Written by Haavard Skinnemoen, Atmel Norway, <hskinnemoen@atmel.com>
25351 +
25352 + This file is part of BFD, the Binary File Descriptor library.
25353 +
25354 + This program is free software; you can redistribute it and/or modify
25355 + it under the terms of the GNU General Public License as published by
25356 + the Free Software Foundation; either version 2 of the License, or
25357 + (at your option) any later version.
25358 +
25359 + This program is distributed in the hope that it will be useful,
25360 + but WITHOUT ANY WARRANTY; without even the implied warranty of
25361 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
25362 + GNU General Public License for more details.
25363 +
25364 + You should have received a copy of the GNU General Public License
25365 + along with this program; if not, write to the Free Software
25366 + Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
25367 +
25368 +void bfd_elf32_avr32_set_options(struct bfd_link_info *info,
25369 + int direct_data_refs);
25370 diff -Nrup binutils-2.17/bfd/elf-bfd.h binutils-2.17.atmel.1.3.0/bfd/elf-bfd.h
25371 --- binutils-2.17/bfd/elf-bfd.h 2006-03-16 13:20:15.000000000 +0100
25372 +++ binutils-2.17.atmel.1.3.0/bfd/elf-bfd.h 2007-03-26 10:20:30.000000000 +0200
25373 @@ -1307,6 +1307,10 @@ struct elf_obj_tdata
25374 find_nearest_line. */
25375 struct mips_elf_find_line *find_line_info;
25376
25377 + /* Used by AVR32 ELF relaxation code. Contains an array of pointers
25378 + for each local symbol to the fragment where it is defined. */
25379 + struct fragment **local_sym_frag;
25380 +
25381 /* A place to stash dwarf1 info for this bfd. */
25382 struct dwarf1_debug *dwarf1_find_line_info;
25383
25384 diff -Nrup binutils-2.17/bfd/libbfd.h binutils-2.17.atmel.1.3.0/bfd/libbfd.h
25385 --- binutils-2.17/bfd/libbfd.h 2006-03-26 01:38:42.000000000 +0100
25386 +++ binutils-2.17.atmel.1.3.0/bfd/libbfd.h 2007-03-26 10:33:41.000000000 +0200
25387 @@ -1518,6 +1518,47 @@ static const char *const bfd_reloc_code_
25388 "BFD_RELOC_AVR_LDI",
25389 "BFD_RELOC_AVR_6",
25390 "BFD_RELOC_AVR_6_ADIW",
25391 + "BFD_RELOC_AVR32_DIFF32",
25392 + "BFD_RELOC_AVR32_DIFF16",
25393 + "BFD_RELOC_AVR32_DIFF8",
25394 + "BFD_RELOC_AVR32_GOT32",
25395 + "BFD_RELOC_AVR32_GOT16",
25396 + "BFD_RELOC_AVR32_GOT8",
25397 + "BFD_RELOC_AVR32_21S",
25398 + "BFD_RELOC_AVR32_16U",
25399 + "BFD_RELOC_AVR32_16S",
25400 + "BFD_RELOC_AVR32_SUB5",
25401 + "BFD_RELOC_AVR32_8S_EXT",
25402 + "BFD_RELOC_AVR32_8S",
25403 + "BFD_RELOC_AVR32_22H_PCREL",
25404 + "BFD_RELOC_AVR32_18W_PCREL",
25405 + "BFD_RELOC_AVR32_16B_PCREL",
25406 + "BFD_RELOC_AVR32_16N_PCREL",
25407 + "BFD_RELOC_AVR32_14UW_PCREL",
25408 + "BFD_RELOC_AVR32_11H_PCREL",
25409 + "BFD_RELOC_AVR32_10UW_PCREL",
25410 + "BFD_RELOC_AVR32_9H_PCREL",
25411 + "BFD_RELOC_AVR32_9UW_PCREL",
25412 + "BFD_RELOC_AVR32_GOTPC",
25413 + "BFD_RELOC_AVR32_GOTCALL",
25414 + "BFD_RELOC_AVR32_LDA_GOT",
25415 + "BFD_RELOC_AVR32_GOT21S",
25416 + "BFD_RELOC_AVR32_GOT18SW",
25417 + "BFD_RELOC_AVR32_GOT16S",
25418 + "BFD_RELOC_AVR32_32_CPENT",
25419 + "BFD_RELOC_AVR32_CPCALL",
25420 + "BFD_RELOC_AVR32_16_CP",
25421 + "BFD_RELOC_AVR32_9W_CP",
25422 + "BFD_RELOC_AVR32_ALIGN",
25423 + "BFD_RELOC_AVR32_14UW",
25424 + "BFD_RELOC_AVR32_10UW",
25425 + "BFD_RELOC_AVR32_10SW",
25426 + "BFD_RELOC_AVR32_STHH_W",
25427 + "BFD_RELOC_AVR32_7UW",
25428 + "BFD_RELOC_AVR32_6S",
25429 + "BFD_RELOC_AVR32_6UW",
25430 + "BFD_RELOC_AVR32_4UH",
25431 + "BFD_RELOC_AVR32_3U",
25432 "BFD_RELOC_390_12",
25433 "BFD_RELOC_390_GOT12",
25434 "BFD_RELOC_390_PLT32",
25435 diff -Nrup binutils-2.17/bfd/Makefile.am binutils-2.17.atmel.1.3.0/bfd/Makefile.am
25436 --- binutils-2.17/bfd/Makefile.am 2006-06-23 20:17:17.000000000 +0200
25437 +++ binutils-2.17.atmel.1.3.0/bfd/Makefile.am 2007-03-26 10:20:30.000000000 +0200
25438 @@ -3,7 +3,7 @@
25439 AUTOMAKE_OPTIONS = 1.9 cygnus
25440
25441 # Uncomment the following line when doing a release.
25442 -RELEASE=y
25443 +# RELEASE=y
25444
25445 INCDIR = $(srcdir)/../include
25446 CSEARCH = -I. -I$(srcdir) -I$(INCDIR)
25447 @@ -62,6 +62,7 @@ ALL_MACHINES = \
25448 cpu-arc.lo \
25449 cpu-arm.lo \
25450 cpu-avr.lo \
25451 + cpu-avr32.lo \
25452 cpu-bfin.lo \
25453 cpu-cr16c.lo \
25454 cpu-cris.lo \
25455 @@ -234,6 +235,7 @@ BFD32_BACKENDS = \
25456 elf32-arc.lo \
25457 elf32-arm.lo \
25458 elf32-avr.lo \
25459 + elf32-avr32.lo \
25460 elf32-bfin.lo \
25461 elf32-cr16c.lo \
25462 elf32-cris.lo \
25463 @@ -1265,6 +1267,10 @@ elf32-bfin.lo: elf32-bfin.c $(INCDIR)/fi
25464 elf-bfd.h $(INCDIR)/elf/common.h $(INCDIR)/elf/internal.h \
25465 $(INCDIR)/elf/external.h $(INCDIR)/bfdlink.h $(INCDIR)/elf/bfin.h \
25466 $(INCDIR)/elf/reloc-macros.h elf32-target.h
25467 +elf32-avr32.lo: elf32-avr32.c $(INCDIR)/filenames.h elf-bfd.h \
25468 + $(INCDIR)/elf/common.h $(INCDIR)/elf/internal.h $(INCDIR)/elf/external.h \
25469 + $(INCDIR)/bfdlink.h $(INCDIR)/elf/avr32.h $(INCDIR)/elf/reloc-macros.h \
25470 + elf32-target.h
25471 elf32-cr16c.lo: elf32-cr16c.c $(INCDIR)/filenames.h \
25472 $(INCDIR)/hashtab.h $(INCDIR)/bfdlink.h $(INCDIR)/elf/cr16c.h \
25473 $(INCDIR)/elf/reloc-macros.h elf-bfd.h $(INCDIR)/elf/common.h \
25474 diff -Nrup binutils-2.17/bfd/Makefile.in binutils-2.17.atmel.1.3.0/bfd/Makefile.in
25475 --- binutils-2.17/bfd/Makefile.in 2006-06-23 20:17:19.000000000 +0200
25476 +++ binutils-2.17.atmel.1.3.0/bfd/Makefile.in 2007-03-26 10:30:55.000000000 +0200
25477 @@ -1,4 +1,4 @@
25478 -# Makefile.in generated by automake 1.9.5 from Makefile.am.
25479 +# Makefile.in generated by automake 1.9.6 from Makefile.am.
25480 # @configure_input@
25481
25482 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
25483 @@ -15,8 +15,6 @@
25484 @SET_MAKE@
25485
25486
25487 -SOURCES = $(libbfd_a_SOURCES) $(libbfd_la_SOURCES)
25488 -
25489 srcdir = @srcdir@
25490 top_srcdir = @top_srcdir@
25491 VPATH = @srcdir@
25492 @@ -141,6 +139,7 @@ EXEEXT = @EXEEXT@
25493 EXEEXT_FOR_BUILD = @EXEEXT_FOR_BUILD@
25494 GMOFILES = @GMOFILES@
25495 GMSGFMT = @GMSGFMT@
25496 +GREP = @GREP@
25497 GT_NO = @GT_NO@
25498 GT_YES = @GT_YES@
25499 HDEFINES = @HDEFINES@
25500 @@ -190,10 +189,7 @@ WARN_CFLAGS = @WARN_CFLAGS@
25501 WIN32LDFLAGS = @WIN32LDFLAGS@
25502 WIN32LIBADD = @WIN32LIBADD@
25503 XGETTEXT = @XGETTEXT@
25504 -ac_ct_AR = @ac_ct_AR@
25505 ac_ct_CC = @ac_ct_CC@
25506 -ac_ct_RANLIB = @ac_ct_RANLIB@
25507 -ac_ct_STRIP = @ac_ct_STRIP@
25508 all_backends = @all_backends@
25509 am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
25510 am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
25511 @@ -219,6 +215,7 @@ build_vendor = @build_vendor@
25512 datadir = @datadir@
25513 datarootdir = @datarootdir@
25514 docdir = @docdir@
25515 +dvidir = @dvidir@
25516 exec_prefix = @exec_prefix@
25517 host = @host@
25518 host_alias = @host_alias@
25519 @@ -233,12 +230,15 @@ install_sh = @install_sh@
25520 l = @l@
25521 libdir = @libdir@
25522 libexecdir = @libexecdir@
25523 +localedir = @localedir@
25524 localstatedir = @localstatedir@
25525 mandir = @mandir@
25526 mkdir_p = @mkdir_p@
25527 oldincludedir = @oldincludedir@
25528 +pdfdir = @pdfdir@
25529 prefix = @prefix@
25530 program_transform_name = @program_transform_name@
25531 +psdir = @psdir@
25532 sbindir = @sbindir@
25533 sharedstatedir = @sharedstatedir@
25534 sysconfdir = @sysconfdir@
25535 @@ -253,7 +253,7 @@ wordsize = @wordsize@
25536 AUTOMAKE_OPTIONS = 1.9 cygnus
25537
25538 # Uncomment the following line when doing a release.
25539 -RELEASE=y
25540 +# RELEASE=y
25541 INCDIR = $(srcdir)/../include
25542 CSEARCH = -I. -I$(srcdir) -I$(INCDIR)
25543 MKDEP = gcc -MM
25544 @@ -298,6 +298,7 @@ ALL_MACHINES = \
25545 cpu-arc.lo \
25546 cpu-arm.lo \
25547 cpu-avr.lo \
25548 + cpu-avr32.lo \
25549 cpu-bfin.lo \
25550 cpu-cr16c.lo \
25551 cpu-cris.lo \
25552 @@ -471,6 +472,7 @@ BFD32_BACKENDS = \
25553 elf32-arc.lo \
25554 elf32-arm.lo \
25555 elf32-avr.lo \
25556 + elf32-avr32.lo \
25557 elf32-bfin.lo \
25558 elf32-cr16c.lo \
25559 elf32-cris.lo \
25560 @@ -1831,6 +1833,10 @@ elf32-bfin.lo: elf32-bfin.c $(INCDIR)/fi
25561 elf-bfd.h $(INCDIR)/elf/common.h $(INCDIR)/elf/internal.h \
25562 $(INCDIR)/elf/external.h $(INCDIR)/bfdlink.h $(INCDIR)/elf/bfin.h \
25563 $(INCDIR)/elf/reloc-macros.h elf32-target.h
25564 +elf32-avr32.lo: elf32-avr32.c $(INCDIR)/filenames.h elf-bfd.h \
25565 + $(INCDIR)/elf/common.h $(INCDIR)/elf/internal.h $(INCDIR)/elf/external.h \
25566 + $(INCDIR)/bfdlink.h $(INCDIR)/elf/avr32.h $(INCDIR)/elf/reloc-macros.h \
25567 + elf32-target.h
25568 elf32-cr16c.lo: elf32-cr16c.c $(INCDIR)/filenames.h \
25569 $(INCDIR)/hashtab.h $(INCDIR)/bfdlink.h $(INCDIR)/elf/cr16c.h \
25570 $(INCDIR)/elf/reloc-macros.h elf-bfd.h $(INCDIR)/elf/common.h \
25571 diff -Nrup binutils-2.17/bfd/reloc.c binutils-2.17.atmel.1.3.0/bfd/reloc.c
25572 --- binutils-2.17/bfd/reloc.c 2006-03-26 01:38:42.000000000 +0100
25573 +++ binutils-2.17.atmel.1.3.0/bfd/reloc.c 2007-03-26 10:20:30.000000000 +0200
25574 @@ -3714,6 +3714,129 @@ ENUMDOC
25575 instructions
25576
25577 ENUM
25578 + BFD_RELOC_AVR32_DIFF32
25579 +ENUMX
25580 + BFD_RELOC_AVR32_DIFF16
25581 +ENUMX
25582 + BFD_RELOC_AVR32_DIFF8
25583 +ENUMDOC
25584 + Difference between two labels: L2 - L1. The value of L1 is encoded
25585 + as sym + addend, while the initial difference after assembly is
25586 + inserted into the object file by the assembler.
25587 +ENUM
25588 + BFD_RELOC_AVR32_GOT32
25589 +ENUMX
25590 + BFD_RELOC_AVR32_GOT16
25591 +ENUMX
25592 + BFD_RELOC_AVR32_GOT8
25593 +ENUMDOC
25594 + Reference to a symbol through the Global Offset Table. The linker
25595 + will allocate an entry for symbol in the GOT and insert the offset
25596 + of this entry as the relocation value.
25597 +ENUM
25598 + BFD_RELOC_AVR32_21S
25599 +ENUMX
25600 + BFD_RELOC_AVR32_16U
25601 +ENUMX
25602 + BFD_RELOC_AVR32_16S
25603 +ENUMX
25604 + BFD_RELOC_AVR32_SUB5
25605 +ENUMX
25606 + BFD_RELOC_AVR32_8S_EXT
25607 +ENUMX
25608 + BFD_RELOC_AVR32_8S
25609 +ENUMDOC
25610 + Normal (non-pc-relative) code relocations. Alignment and signedness
25611 + is indicated by the suffixes. S means signed, U means unsigned. W
25612 + means word-aligned, H means halfword-aligned, neither means
25613 + byte-aligned (no alignment.) SUB5 is the same relocation as 16S.
25614 +ENUM
25615 + BFD_RELOC_AVR32_22H_PCREL
25616 +ENUMX
25617 + BFD_RELOC_AVR32_18W_PCREL
25618 +ENUMX
25619 + BFD_RELOC_AVR32_16B_PCREL
25620 +ENUMX
25621 + BFD_RELOC_AVR32_16N_PCREL
25622 +ENUMX
25623 + BFD_RELOC_AVR32_14UW_PCREL
25624 +ENUMX
25625 + BFD_RELOC_AVR32_11H_PCREL
25626 +ENUMX
25627 + BFD_RELOC_AVR32_10UW_PCREL
25628 +ENUMX
25629 + BFD_RELOC_AVR32_9H_PCREL
25630 +ENUMX
25631 + BFD_RELOC_AVR32_9UW_PCREL
25632 +ENUMDOC
25633 + PC-relative relocations are signed if neither 'U' nor 'S' is
25634 + specified. However, we explicitly tack on a 'B' to indicate no
25635 + alignment, to avoid confusion with data relocs. All of these resolve
25636 + to sym + addend - offset, except the one with 'N' (negated) suffix.
25637 + This particular one resolves to offset - sym - addend.
25638 +ENUM
25639 + BFD_RELOC_AVR32_GOTPC
25640 +ENUMDOC
25641 + Subtract the link-time address of the GOT from (symbol + addend)
25642 + and insert the result.
25643 +ENUM
25644 + BFD_RELOC_AVR32_GOTCALL
25645 +ENUMX
25646 + BFD_RELOC_AVR32_LDA_GOT
25647 +ENUMX
25648 + BFD_RELOC_AVR32_GOT21S
25649 +ENUMX
25650 + BFD_RELOC_AVR32_GOT18SW
25651 +ENUMX
25652 + BFD_RELOC_AVR32_GOT16S
25653 +ENUMDOC
25654 + Reference to a symbol through the GOT. The linker will allocate an
25655 + entry for symbol in the GOT and insert the offset of this entry as
25656 + the relocation value. addend must be zero. As usual, 'S' means
25657 + signed, 'W' means word-aligned, etc.
25658 +ENUM
25659 + BFD_RELOC_AVR32_32_CPENT
25660 +ENUMDOC
25661 + 32-bit constant pool entry. I don't think 8- and 16-bit entries make
25662 + a whole lot of sense.
25663 +ENUM
25664 + BFD_RELOC_AVR32_CPCALL
25665 +ENUMX
25666 + BFD_RELOC_AVR32_16_CP
25667 +ENUMX
25668 + BFD_RELOC_AVR32_9W_CP
25669 +ENUMDOC
25670 + Constant pool references. Some of these relocations are signed,
25671 + others are unsigned. It doesn't really matter, since the constant
25672 + pool always comes after the code that references it.
25673 +ENUM
25674 + BFD_RELOC_AVR32_ALIGN
25675 +ENUMDOC
25676 + sym must be the absolute symbol. The addend specifies the alignment
25677 + order, e.g. if addend is 2, the linker must add padding so that the
25678 + next address is aligned to a 4-byte boundary.
25679 +ENUM
25680 + BFD_RELOC_AVR32_14UW
25681 +ENUMX
25682 + BFD_RELOC_AVR32_10UW
25683 +ENUMX
25684 + BFD_RELOC_AVR32_10SW
25685 +ENUMX
25686 + BFD_RELOC_AVR32_STHH_W
25687 +ENUMX
25688 + BFD_RELOC_AVR32_7UW
25689 +ENUMX
25690 + BFD_RELOC_AVR32_6S
25691 +ENUMX
25692 + BFD_RELOC_AVR32_6UW
25693 +ENUMX
25694 + BFD_RELOC_AVR32_4UH
25695 +ENUMX
25696 + BFD_RELOC_AVR32_3U
25697 +ENUMDOC
25698 + Code relocations that will never make it to the output file.
25699 +
25700 +ENUM
25701 BFD_RELOC_390_12
25702 ENUMDOC
25703 Direct 12 bit.
25704 diff -Nrup binutils-2.17/bfd/targets.c binutils-2.17.atmel.1.3.0/bfd/targets.c
25705 --- binutils-2.17/bfd/targets.c 2006-04-05 14:41:57.000000000 +0200
25706 +++ binutils-2.17.atmel.1.3.0/bfd/targets.c 2007-03-26 10:20:30.000000000 +0200
25707 @@ -553,6 +553,7 @@ extern const bfd_target b_out_vec_little
25708 extern const bfd_target bfd_efi_app_ia32_vec;
25709 extern const bfd_target bfd_efi_app_ia64_vec;
25710 extern const bfd_target bfd_elf32_avr_vec;
25711 +extern const bfd_target bfd_elf32_avr32_vec;
25712 extern const bfd_target bfd_elf32_bfin_vec;
25713 extern const bfd_target bfd_elf32_bfinfdpic_vec;
25714 extern const bfd_target bfd_elf32_big_generic_vec;
25715 @@ -855,6 +856,7 @@ static const bfd_target * const _bfd_tar
25716 &bfd_efi_app_ia64_vec,
25717 #endif
25718 &bfd_elf32_avr_vec,
25719 + &bfd_elf32_avr32_vec,
25720 &bfd_elf32_bfin_vec,
25721 &bfd_elf32_bfinfdpic_vec,
25722
25723 diff -Nrup binutils-2.17/binutils/config.in binutils-2.17.atmel.1.3.0/binutils/config.in
25724 --- binutils-2.17/binutils/config.in 2006-02-14 09:59:10.000000000 +0100
25725 +++ binutils-2.17.atmel.1.3.0/binutils/config.in 2007-03-26 10:32:11.000000000 +0200
25726 @@ -218,7 +218,7 @@
25727
25728 /* If using the C implementation of alloca, define if you know the
25729 direction of stack growth for your system; otherwise it will be
25730 - automatically deduced at run-time.
25731 + automatically deduced at runtime.
25732 STACK_DIRECTION > 0 => grows toward higher addresses
25733 STACK_DIRECTION < 0 => grows toward lower addresses
25734 STACK_DIRECTION = 0 => direction of growth unknown */
25735 @@ -260,8 +260,8 @@
25736 #undef inline
25737 #endif
25738
25739 -/* Define to `long' if <sys/types.h> does not define. */
25740 +/* Define to `long int' if <sys/types.h> does not define. */
25741 #undef off_t
25742
25743 -/* Define to `unsigned' if <sys/types.h> does not define. */
25744 +/* Define to `unsigned int' if <sys/types.h> does not define. */
25745 #undef size_t
25746 diff -Nrup binutils-2.17/binutils/configure binutils-2.17.atmel.1.3.0/binutils/configure
25747 --- binutils-2.17/binutils/configure 2006-04-06 23:49:29.000000000 +0200
25748 +++ binutils-2.17.atmel.1.3.0/binutils/configure 2007-03-26 10:32:09.000000000 +0200
25749 @@ -1,25 +1,54 @@
25750 #! /bin/sh
25751 # Guess values for system-dependent variables and create Makefiles.
25752 -# Generated by GNU Autoconf 2.59.
25753 +# Generated by GNU Autoconf 2.61.
25754 #
25755 -# Copyright (C) 2003 Free Software Foundation, Inc.
25756 +# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
25757 +# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
25758 # This configure script is free software; the Free Software Foundation
25759 # gives unlimited permission to copy, distribute and modify it.
25760 ## --------------------- ##
25761 ## M4sh Initialization. ##
25762 ## --------------------- ##
25763
25764 -# Be Bourne compatible
25765 +# Be more Bourne compatible
25766 +DUALCASE=1; export DUALCASE # for MKS sh
25767 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
25768 emulate sh
25769 NULLCMD=:
25770 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25771 # is contrary to our usage. Disable this feature.
25772 alias -g '${1+"$@"}'='"$@"'
25773 -elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
25774 - set -o posix
25775 + setopt NO_GLOB_SUBST
25776 +else
25777 + case `(set -o) 2>/dev/null` in
25778 + *posix*) set -o posix ;;
25779 +esac
25780 +
25781 +fi
25782 +
25783 +
25784 +
25785 +
25786 +# PATH needs CR
25787 +# Avoid depending upon Character Ranges.
25788 +as_cr_letters='abcdefghijklmnopqrstuvwxyz'
25789 +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25790 +as_cr_Letters=$as_cr_letters$as_cr_LETTERS
25791 +as_cr_digits='0123456789'
25792 +as_cr_alnum=$as_cr_Letters$as_cr_digits
25793 +
25794 +# The user is always right.
25795 +if test "${PATH_SEPARATOR+set}" != set; then
25796 + echo "#! /bin/sh" >conf$$.sh
25797 + echo "exit 0" >>conf$$.sh
25798 + chmod +x conf$$.sh
25799 + if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
25800 + PATH_SEPARATOR=';'
25801 + else
25802 + PATH_SEPARATOR=:
25803 + fi
25804 + rm -f conf$$.sh
25805 fi
25806 -DUALCASE=1; export DUALCASE # for MKS sh
25807
25808 # Support unset when possible.
25809 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
25810 @@ -29,8 +58,43 @@ else
25811 fi
25812
25813
25814 +# IFS
25815 +# We need space, tab and new line, in precisely that order. Quoting is
25816 +# there to prevent editors from complaining about space-tab.
25817 +# (If _AS_PATH_WALK were called with IFS unset, it would disable word
25818 +# splitting by setting IFS to empty value.)
25819 +as_nl='
25820 +'
25821 +IFS=" "" $as_nl"
25822 +
25823 +# Find who we are. Look in the path if we contain no directory separator.
25824 +case $0 in
25825 + *[\\/]* ) as_myself=$0 ;;
25826 + *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25827 +for as_dir in $PATH
25828 +do
25829 + IFS=$as_save_IFS
25830 + test -z "$as_dir" && as_dir=.
25831 + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
25832 +done
25833 +IFS=$as_save_IFS
25834 +
25835 + ;;
25836 +esac
25837 +# We did not find ourselves, most probably we were run as `sh COMMAND'
25838 +# in which case we are not to be found in the path.
25839 +if test "x$as_myself" = x; then
25840 + as_myself=$0
25841 +fi
25842 +if test ! -f "$as_myself"; then
25843 + echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
25844 + { (exit 1); exit 1; }
25845 +fi
25846 +
25847 # Work around bugs in pre-3.0 UWIN ksh.
25848 -$as_unset ENV MAIL MAILPATH
25849 +for as_var in ENV MAIL MAILPATH
25850 +do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
25851 +done
25852 PS1='$ '
25853 PS2='> '
25854 PS4='+ '
25855 @@ -44,18 +108,19 @@ do
25856 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
25857 eval $as_var=C; export $as_var
25858 else
25859 - $as_unset $as_var
25860 + ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
25861 fi
25862 done
25863
25864 # Required to use basename.
25865 -if expr a : '\(a\)' >/dev/null 2>&1; then
25866 +if expr a : '\(a\)' >/dev/null 2>&1 &&
25867 + test "X`expr 00001 : '.*\(...\)'`" = X001; then
25868 as_expr=expr
25869 else
25870 as_expr=false
25871 fi
25872
25873 -if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
25874 +if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
25875 as_basename=basename
25876 else
25877 as_basename=false
25878 @@ -63,157 +128,388 @@ fi
25879
25880
25881 # Name of the executable.
25882 -as_me=`$as_basename "$0" ||
25883 +as_me=`$as_basename -- "$0" ||
25884 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25885 X"$0" : 'X\(//\)$' \| \
25886 - X"$0" : 'X\(/\)$' \| \
25887 - . : '\(.\)' 2>/dev/null ||
25888 + X"$0" : 'X\(/\)' \| . 2>/dev/null ||
25889 echo X/"$0" |
25890 - sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
25891 - /^X\/\(\/\/\)$/{ s//\1/; q; }
25892 - /^X\/\(\/\).*/{ s//\1/; q; }
25893 - s/.*/./; q'`
25894 + sed '/^.*\/\([^/][^/]*\)\/*$/{
25895 + s//\1/
25896 + q
25897 + }
25898 + /^X\/\(\/\/\)$/{
25899 + s//\1/
25900 + q
25901 + }
25902 + /^X\/\(\/\).*/{
25903 + s//\1/
25904 + q
25905 + }
25906 + s/.*/./; q'`
25907
25908 +# CDPATH.
25909 +$as_unset CDPATH
25910
25911 -# PATH needs CR, and LINENO needs CR and PATH.
25912 -# Avoid depending upon Character Ranges.
25913 -as_cr_letters='abcdefghijklmnopqrstuvwxyz'
25914 -as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25915 -as_cr_Letters=$as_cr_letters$as_cr_LETTERS
25916 -as_cr_digits='0123456789'
25917 -as_cr_alnum=$as_cr_Letters$as_cr_digits
25918
25919 -# The user is always right.
25920 -if test "${PATH_SEPARATOR+set}" != set; then
25921 - echo "#! /bin/sh" >conf$$.sh
25922 - echo "exit 0" >>conf$$.sh
25923 - chmod +x conf$$.sh
25924 - if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
25925 - PATH_SEPARATOR=';'
25926 - else
25927 - PATH_SEPARATOR=:
25928 - fi
25929 - rm -f conf$$.sh
25930 +if test "x$CONFIG_SHELL" = x; then
25931 + if (eval ":") 2>/dev/null; then
25932 + as_have_required=yes
25933 +else
25934 + as_have_required=no
25935 +fi
25936 +
25937 + if test $as_have_required = yes && (eval ":
25938 +(as_func_return () {
25939 + (exit \$1)
25940 +}
25941 +as_func_success () {
25942 + as_func_return 0
25943 +}
25944 +as_func_failure () {
25945 + as_func_return 1
25946 +}
25947 +as_func_ret_success () {
25948 + return 0
25949 +}
25950 +as_func_ret_failure () {
25951 + return 1
25952 +}
25953 +
25954 +exitcode=0
25955 +if as_func_success; then
25956 + :
25957 +else
25958 + exitcode=1
25959 + echo as_func_success failed.
25960 fi
25961
25962 +if as_func_failure; then
25963 + exitcode=1
25964 + echo as_func_failure succeeded.
25965 +fi
25966
25967 - as_lineno_1=$LINENO
25968 - as_lineno_2=$LINENO
25969 - as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
25970 - test "x$as_lineno_1" != "x$as_lineno_2" &&
25971 - test "x$as_lineno_3" = "x$as_lineno_2" || {
25972 - # Find who we are. Look in the path if we contain no path at all
25973 - # relative or not.
25974 - case $0 in
25975 - *[\\/]* ) as_myself=$0 ;;
25976 - *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25977 -for as_dir in $PATH
25978 -do
25979 - IFS=$as_save_IFS
25980 - test -z "$as_dir" && as_dir=.
25981 - test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
25982 -done
25983 +if as_func_ret_success; then
25984 + :
25985 +else
25986 + exitcode=1
25987 + echo as_func_ret_success failed.
25988 +fi
25989
25990 - ;;
25991 - esac
25992 - # We did not find ourselves, most probably we were run as `sh COMMAND'
25993 - # in which case we are not to be found in the path.
25994 - if test "x$as_myself" = x; then
25995 - as_myself=$0
25996 - fi
25997 - if test ! -f "$as_myself"; then
25998 - { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
25999 - { (exit 1); exit 1; }; }
26000 - fi
26001 - case $CONFIG_SHELL in
26002 - '')
26003 +if as_func_ret_failure; then
26004 + exitcode=1
26005 + echo as_func_ret_failure succeeded.
26006 +fi
26007 +
26008 +if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
26009 + :
26010 +else
26011 + exitcode=1
26012 + echo positional parameters were not saved.
26013 +fi
26014 +
26015 +test \$exitcode = 0) || { (exit 1); exit 1; }
26016 +
26017 +(
26018 + as_lineno_1=\$LINENO
26019 + as_lineno_2=\$LINENO
26020 + test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
26021 + test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
26022 +") 2> /dev/null; then
26023 + :
26024 +else
26025 + as_candidate_shells=
26026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26027 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
26028 do
26029 IFS=$as_save_IFS
26030 test -z "$as_dir" && as_dir=.
26031 - for as_base in sh bash ksh sh5; do
26032 - case $as_dir in
26033 + case $as_dir in
26034 /*)
26035 - if ("$as_dir/$as_base" -c '
26036 + for as_base in sh bash ksh sh5; do
26037 + as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
26038 + done;;
26039 + esac
26040 +done
26041 +IFS=$as_save_IFS
26042 +
26043 +
26044 + for as_shell in $as_candidate_shells $SHELL; do
26045 + # Try only shells that exist, to save several forks.
26046 + if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
26047 + { ("$as_shell") 2> /dev/null <<\_ASEOF
26048 +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
26049 + emulate sh
26050 + NULLCMD=:
26051 + # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
26052 + # is contrary to our usage. Disable this feature.
26053 + alias -g '${1+"$@"}'='"$@"'
26054 + setopt NO_GLOB_SUBST
26055 +else
26056 + case `(set -o) 2>/dev/null` in
26057 + *posix*) set -o posix ;;
26058 +esac
26059 +
26060 +fi
26061 +
26062 +
26063 +:
26064 +_ASEOF
26065 +}; then
26066 + CONFIG_SHELL=$as_shell
26067 + as_have_required=yes
26068 + if { "$as_shell" 2> /dev/null <<\_ASEOF
26069 +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
26070 + emulate sh
26071 + NULLCMD=:
26072 + # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
26073 + # is contrary to our usage. Disable this feature.
26074 + alias -g '${1+"$@"}'='"$@"'
26075 + setopt NO_GLOB_SUBST
26076 +else
26077 + case `(set -o) 2>/dev/null` in
26078 + *posix*) set -o posix ;;
26079 +esac
26080 +
26081 +fi
26082 +
26083 +
26084 +:
26085 +(as_func_return () {
26086 + (exit $1)
26087 +}
26088 +as_func_success () {
26089 + as_func_return 0
26090 +}
26091 +as_func_failure () {
26092 + as_func_return 1
26093 +}
26094 +as_func_ret_success () {
26095 + return 0
26096 +}
26097 +as_func_ret_failure () {
26098 + return 1
26099 +}
26100 +
26101 +exitcode=0
26102 +if as_func_success; then
26103 + :
26104 +else
26105 + exitcode=1
26106 + echo as_func_success failed.
26107 +fi
26108 +
26109 +if as_func_failure; then
26110 + exitcode=1
26111 + echo as_func_failure succeeded.
26112 +fi
26113 +
26114 +if as_func_ret_success; then
26115 + :
26116 +else
26117 + exitcode=1
26118 + echo as_func_ret_success failed.
26119 +fi
26120 +
26121 +if as_func_ret_failure; then
26122 + exitcode=1
26123 + echo as_func_ret_failure succeeded.
26124 +fi
26125 +
26126 +if ( set x; as_func_ret_success y && test x = "$1" ); then
26127 + :
26128 +else
26129 + exitcode=1
26130 + echo positional parameters were not saved.
26131 +fi
26132 +
26133 +test $exitcode = 0) || { (exit 1); exit 1; }
26134 +
26135 +(
26136 as_lineno_1=$LINENO
26137 as_lineno_2=$LINENO
26138 - as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
26139 test "x$as_lineno_1" != "x$as_lineno_2" &&
26140 - test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
26141 - $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
26142 - $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
26143 - CONFIG_SHELL=$as_dir/$as_base
26144 - export CONFIG_SHELL
26145 - exec "$CONFIG_SHELL" "$0" ${1+"$@"}
26146 - fi;;
26147 - esac
26148 - done
26149 -done
26150 -;;
26151 - esac
26152 + test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
26153 +
26154 +_ASEOF
26155 +}; then
26156 + break
26157 +fi
26158 +
26159 +fi
26160 +
26161 + done
26162 +
26163 + if test "x$CONFIG_SHELL" != x; then
26164 + for as_var in BASH_ENV ENV
26165 + do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
26166 + done
26167 + export CONFIG_SHELL
26168 + exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
26169 +fi
26170 +
26171 +
26172 + if test $as_have_required = no; then
26173 + echo This script requires a shell more modern than all the
26174 + echo shells that I found on your system. Please install a
26175 + echo modern shell, or manually run the script under such a
26176 + echo shell if you do have one.
26177 + { (exit 1); exit 1; }
26178 +fi
26179 +
26180 +
26181 +fi
26182 +
26183 +fi
26184 +
26185 +
26186 +
26187 +(eval "as_func_return () {
26188 + (exit \$1)
26189 +}
26190 +as_func_success () {
26191 + as_func_return 0
26192 +}
26193 +as_func_failure () {
26194 + as_func_return 1
26195 +}
26196 +as_func_ret_success () {
26197 + return 0
26198 +}
26199 +as_func_ret_failure () {
26200 + return 1
26201 +}
26202 +
26203 +exitcode=0
26204 +if as_func_success; then
26205 + :
26206 +else
26207 + exitcode=1
26208 + echo as_func_success failed.
26209 +fi
26210 +
26211 +if as_func_failure; then
26212 + exitcode=1
26213 + echo as_func_failure succeeded.
26214 +fi
26215 +
26216 +if as_func_ret_success; then
26217 + :
26218 +else
26219 + exitcode=1
26220 + echo as_func_ret_success failed.
26221 +fi
26222 +
26223 +if as_func_ret_failure; then
26224 + exitcode=1
26225 + echo as_func_ret_failure succeeded.
26226 +fi
26227 +
26228 +if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
26229 + :
26230 +else
26231 + exitcode=1
26232 + echo positional parameters were not saved.
26233 +fi
26234 +
26235 +test \$exitcode = 0") || {
26236 + echo No shell found that supports shell functions.
26237 + echo Please tell autoconf@gnu.org about your system,
26238 + echo including any error possibly output before this
26239 + echo message
26240 +}
26241 +
26242 +
26243 +
26244 + as_lineno_1=$LINENO
26245 + as_lineno_2=$LINENO
26246 + test "x$as_lineno_1" != "x$as_lineno_2" &&
26247 + test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
26248
26249 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
26250 # uniformly replaced by the line number. The first 'sed' inserts a
26251 - # line-number line before each line; the second 'sed' does the real
26252 - # work. The second script uses 'N' to pair each line-number line
26253 - # with the numbered line, and appends trailing '-' during
26254 - # substitution so that $LINENO is not a special case at line end.
26255 + # line-number line after each line using $LINENO; the second 'sed'
26256 + # does the real work. The second script uses 'N' to pair each
26257 + # line-number line with the line containing $LINENO, and appends
26258 + # trailing '-' during substitution so that $LINENO is not a special
26259 + # case at line end.
26260 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
26261 - # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
26262 - sed '=' <$as_myself |
26263 + # scripts with optimization help from Paolo Bonzini. Blame Lee
26264 + # E. McMahon (1931-1989) for sed's syntax. :-)
26265 + sed -n '
26266 + p
26267 + /[$]LINENO/=
26268 + ' <$as_myself |
26269 sed '
26270 + s/[$]LINENO.*/&-/
26271 + t lineno
26272 + b
26273 + :lineno
26274 N
26275 - s,$,-,
26276 - : loop
26277 - s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
26278 + :loop
26279 + s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
26280 t loop
26281 - s,-$,,
26282 - s,^['$as_cr_digits']*\n,,
26283 + s/-\n.*//
26284 ' >$as_me.lineno &&
26285 - chmod +x $as_me.lineno ||
26286 + chmod +x "$as_me.lineno" ||
26287 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
26288 { (exit 1); exit 1; }; }
26289
26290 # Don't try to exec as it changes $[0], causing all sort of problems
26291 # (the dirname of $[0] is not the place where we might find the
26292 - # original and so on. Autoconf is especially sensible to this).
26293 - . ./$as_me.lineno
26294 + # original and so on. Autoconf is especially sensitive to this).
26295 + . "./$as_me.lineno"
26296 # Exit status is that of the last command.
26297 exit
26298 }
26299
26300
26301 -case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
26302 - *c*,-n*) ECHO_N= ECHO_C='
26303 -' ECHO_T=' ' ;;
26304 - *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
26305 - *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
26306 +if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
26307 + as_dirname=dirname
26308 +else
26309 + as_dirname=false
26310 +fi
26311 +
26312 +ECHO_C= ECHO_N= ECHO_T=
26313 +case `echo -n x` in
26314 +-n*)
26315 + case `echo 'x\c'` in
26316 + *c*) ECHO_T=' ';; # ECHO_T is single tab character.
26317 + *) ECHO_C='\c';;
26318 + esac;;
26319 +*)
26320 + ECHO_N='-n';;
26321 esac
26322
26323 -if expr a : '\(a\)' >/dev/null 2>&1; then
26324 +if expr a : '\(a\)' >/dev/null 2>&1 &&
26325 + test "X`expr 00001 : '.*\(...\)'`" = X001; then
26326 as_expr=expr
26327 else
26328 as_expr=false
26329 fi
26330
26331 rm -f conf$$ conf$$.exe conf$$.file
26332 +if test -d conf$$.dir; then
26333 + rm -f conf$$.dir/conf$$.file
26334 +else
26335 + rm -f conf$$.dir
26336 + mkdir conf$$.dir
26337 +fi
26338 echo >conf$$.file
26339 if ln -s conf$$.file conf$$ 2>/dev/null; then
26340 - # We could just check for DJGPP; but this test a) works b) is more generic
26341 - # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
26342 - if test -f conf$$.exe; then
26343 - # Don't use ln at all; we don't have any links
26344 + as_ln_s='ln -s'
26345 + # ... but there are two gotchas:
26346 + # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
26347 + # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
26348 + # In both cases, we have to default to `cp -p'.
26349 + ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
26350 as_ln_s='cp -p'
26351 - else
26352 - as_ln_s='ln -s'
26353 - fi
26354 elif ln conf$$.file conf$$ 2>/dev/null; then
26355 as_ln_s=ln
26356 else
26357 as_ln_s='cp -p'
26358 fi
26359 -rm -f conf$$ conf$$.exe conf$$.file
26360 +rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
26361 +rmdir conf$$.dir 2>/dev/null
26362
26363 if mkdir -p . 2>/dev/null; then
26364 as_mkdir_p=:
26365 @@ -222,7 +518,28 @@ else
26366 as_mkdir_p=false
26367 fi
26368
26369 -as_executable_p="test -f"
26370 +if test -x / >/dev/null 2>&1; then
26371 + as_test_x='test -x'
26372 +else
26373 + if ls -dL / >/dev/null 2>&1; then
26374 + as_ls_L_option=L
26375 + else
26376 + as_ls_L_option=
26377 + fi
26378 + as_test_x='
26379 + eval sh -c '\''
26380 + if test -d "$1"; then
26381 + test -d "$1/.";
26382 + else
26383 + case $1 in
26384 + -*)set "./$1";;
26385 + esac;
26386 + case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
26387 + ???[sx]*):;;*)false;;esac;fi
26388 + '\'' sh
26389 + '
26390 +fi
26391 +as_executable_p=$as_test_x
26392
26393 # Sed expression to map a string onto a valid CPP name.
26394 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
26395 @@ -231,39 +548,27 @@ as_tr_cpp="eval sed 'y%*$as_cr_letters%P
26396 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26397
26398
26399 -# IFS
26400 -# We need space, tab and new line, in precisely that order.
26401 -as_nl='
26402 -'
26403 -IFS=" $as_nl"
26404 -
26405 -# CDPATH.
26406 -$as_unset CDPATH
26407
26408 +exec 7<&0 </dev/null 6>&1
26409
26410 # Name of the host.
26411 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
26412 # so uname gets run too.
26413 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
26414
26415 -exec 6>&1
26416 -
26417 #
26418 # Initializations.
26419 #
26420 ac_default_prefix=/usr/local
26421 +ac_clean_files=
26422 ac_config_libobj_dir=.
26423 +LIBOBJS=
26424 cross_compiling=no
26425 subdirs=
26426 MFLAGS=
26427 MAKEFLAGS=
26428 SHELL=${CONFIG_SHELL-/bin/sh}
26429
26430 -# Maximum number of lines to put in a shell here document.
26431 -# This variable seems obsolete. It should probably be removed, and
26432 -# only ac_max_sed_lines should be used.
26433 -: ${ac_max_here_lines=38}
26434 -
26435 # Identity of this package.
26436 PACKAGE_NAME=
26437 PACKAGE_TARNAME=
26438 @@ -275,42 +580,193 @@ ac_unique_file="ar.c"
26439 # Factoring default headers for most tests.
26440 ac_includes_default="\
26441 #include <stdio.h>
26442 -#if HAVE_SYS_TYPES_H
26443 +#ifdef HAVE_SYS_TYPES_H
26444 # include <sys/types.h>
26445 #endif
26446 -#if HAVE_SYS_STAT_H
26447 +#ifdef HAVE_SYS_STAT_H
26448 # include <sys/stat.h>
26449 #endif
26450 -#if STDC_HEADERS
26451 +#ifdef STDC_HEADERS
26452 # include <stdlib.h>
26453 # include <stddef.h>
26454 #else
26455 -# if HAVE_STDLIB_H
26456 +# ifdef HAVE_STDLIB_H
26457 # include <stdlib.h>
26458 # endif
26459 #endif
26460 -#if HAVE_STRING_H
26461 -# if !STDC_HEADERS && HAVE_MEMORY_H
26462 +#ifdef HAVE_STRING_H
26463 +# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
26464 # include <memory.h>
26465 # endif
26466 # include <string.h>
26467 #endif
26468 -#if HAVE_STRINGS_H
26469 +#ifdef HAVE_STRINGS_H
26470 # include <strings.h>
26471 #endif
26472 -#if HAVE_INTTYPES_H
26473 +#ifdef HAVE_INTTYPES_H
26474 # include <inttypes.h>
26475 -#else
26476 -# if HAVE_STDINT_H
26477 -# include <stdint.h>
26478 -# endif
26479 #endif
26480 -#if HAVE_UNISTD_H
26481 +#ifdef HAVE_STDINT_H
26482 +# include <stdint.h>
26483 +#endif
26484 +#ifdef HAVE_UNISTD_H
26485 # include <unistd.h>
26486 #endif"
26487
26488 -ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE LN_S RANLIB ac_ct_RANLIB LIBTOOL WARN_CFLAGS NO_WERROR YACC LEX LEXLIB LEX_OUTPUT_ROOT CPP EGREP ALLOCA USE_NLS MSGFMT GMSGFMT XGETTEXT USE_INCLUDED_LIBINTL CATALOGS CATOBJEXT DATADIRNAME GMOFILES INSTOBJEXT INTLDEPS INTLLIBS INTLOBJS POFILES POSUB INCLUDE_LOCALE_H GT_NO GT_YES MKINSTALLDIRS l MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT HDEFINES AR CC_FOR_BUILD EXEEXT_FOR_BUILD DEMANGLER_NAME NLMCONV_DEFS BUILD_NLMCONV BUILD_SRCONV BUILD_DLLTOOL DLLTOOL_DEFS BUILD_WINDRES BUILD_DLLWRAP BUILD_MISC OBJDUMP_DEFS EMULATION EMULATION_VECTOR datarootdir docdir htmldir LIBOBJS LTLIBOBJS'
26489 +ac_subst_vars='SHELL
26490 +PATH_SEPARATOR
26491 +PACKAGE_NAME
26492 +PACKAGE_TARNAME
26493 +PACKAGE_VERSION
26494 +PACKAGE_STRING
26495 +PACKAGE_BUGREPORT
26496 +exec_prefix
26497 +prefix
26498 +program_transform_name
26499 +bindir
26500 +sbindir
26501 +libexecdir
26502 +datarootdir
26503 +datadir
26504 +sysconfdir
26505 +sharedstatedir
26506 +localstatedir
26507 +includedir
26508 +oldincludedir
26509 +docdir
26510 +infodir
26511 +htmldir
26512 +dvidir
26513 +pdfdir
26514 +psdir
26515 +libdir
26516 +localedir
26517 +mandir
26518 +DEFS
26519 +ECHO_C
26520 +ECHO_N
26521 +ECHO_T
26522 +LIBS
26523 +build_alias
26524 +host_alias
26525 +target_alias
26526 +build
26527 +build_cpu
26528 +build_vendor
26529 +build_os
26530 +host
26531 +host_cpu
26532 +host_vendor
26533 +host_os
26534 +target
26535 +target_cpu
26536 +target_vendor
26537 +target_os
26538 +CC
26539 +CFLAGS
26540 +LDFLAGS
26541 +CPPFLAGS
26542 +ac_ct_CC
26543 +EXEEXT
26544 +OBJEXT
26545 +INSTALL_PROGRAM
26546 +INSTALL_SCRIPT
26547 +INSTALL_DATA
26548 +CYGPATH_W
26549 +PACKAGE
26550 +VERSION
26551 +ACLOCAL
26552 +AUTOCONF
26553 +AUTOMAKE
26554 +AUTOHEADER
26555 +MAKEINFO
26556 +install_sh
26557 +STRIP
26558 +INSTALL_STRIP_PROGRAM
26559 +mkdir_p
26560 +AWK
26561 +SET_MAKE
26562 +am__leading_dot
26563 +AMTAR
26564 +am__tar
26565 +am__untar
26566 +DEPDIR
26567 +am__include
26568 +am__quote
26569 +AMDEP_TRUE
26570 +AMDEP_FALSE
26571 +AMDEPBACKSLASH
26572 +CCDEPMODE
26573 +am__fastdepCC_TRUE
26574 +am__fastdepCC_FALSE
26575 +LN_S
26576 +RANLIB
26577 +LIBTOOL
26578 +WARN_CFLAGS
26579 +NO_WERROR
26580 +YACC
26581 +YFLAGS
26582 +LEX
26583 +LEX_OUTPUT_ROOT
26584 +LEXLIB
26585 +CPP
26586 +GREP
26587 +EGREP
26588 +ALLOCA
26589 +USE_NLS
26590 +MSGFMT
26591 +GMSGFMT
26592 +XGETTEXT
26593 +USE_INCLUDED_LIBINTL
26594 +CATALOGS
26595 +CATOBJEXT
26596 +DATADIRNAME
26597 +GMOFILES
26598 +INSTOBJEXT
26599 +INTLDEPS
26600 +INTLLIBS
26601 +INTLOBJS
26602 +POFILES
26603 +POSUB
26604 +INCLUDE_LOCALE_H
26605 +GT_NO
26606 +GT_YES
26607 +MKINSTALLDIRS
26608 +l
26609 +MAINTAINER_MODE_TRUE
26610 +MAINTAINER_MODE_FALSE
26611 +MAINT
26612 +HDEFINES
26613 +AR
26614 +CC_FOR_BUILD
26615 +EXEEXT_FOR_BUILD
26616 +DEMANGLER_NAME
26617 +NLMCONV_DEFS
26618 +BUILD_NLMCONV
26619 +BUILD_SRCONV
26620 +BUILD_DLLTOOL
26621 +DLLTOOL_DEFS
26622 +BUILD_WINDRES
26623 +BUILD_DLLWRAP
26624 +BUILD_MISC
26625 +OBJDUMP_DEFS
26626 +EMULATION
26627 +EMULATION_VECTOR
26628 +LIBOBJS
26629 +LTLIBOBJS'
26630 ac_subst_files=''
26631 + ac_precious_vars='build_alias
26632 +host_alias
26633 +target_alias
26634 +CC
26635 +CFLAGS
26636 +LDFLAGS
26637 +LIBS
26638 +CPPFLAGS
26639 +YACC
26640 +YFLAGS
26641 +CPP'
26642 +
26643
26644 # Initialize some variables set by options.
26645 ac_init_help=
26646 @@ -337,34 +793,48 @@ x_libraries=NONE
26647 # and all the variables that are supposed to be based on exec_prefix
26648 # by default will actually change.
26649 # Use braces instead of parens because sh, perl, etc. also accept them.
26650 +# (The list follows the same order as the GNU Coding Standards.)
26651 bindir='${exec_prefix}/bin'
26652 sbindir='${exec_prefix}/sbin'
26653 libexecdir='${exec_prefix}/libexec'
26654 -datadir='${prefix}/share'
26655 +datarootdir='${prefix}/share'
26656 +datadir='${datarootdir}'
26657 sysconfdir='${prefix}/etc'
26658 sharedstatedir='${prefix}/com'
26659 localstatedir='${prefix}/var'
26660 -libdir='${exec_prefix}/lib'
26661 includedir='${prefix}/include'
26662 oldincludedir='/usr/include'
26663 -infodir='${prefix}/info'
26664 -mandir='${prefix}/man'
26665 +docdir='${datarootdir}/doc/${PACKAGE}'
26666 +infodir='${datarootdir}/info'
26667 +htmldir='${docdir}'
26668 +dvidir='${docdir}'
26669 +pdfdir='${docdir}'
26670 +psdir='${docdir}'
26671 +libdir='${exec_prefix}/lib'
26672 +localedir='${datarootdir}/locale'
26673 +mandir='${datarootdir}/man'
26674
26675 ac_prev=
26676 +ac_dashdash=
26677 for ac_option
26678 do
26679 # If the previous option needs an argument, assign it.
26680 if test -n "$ac_prev"; then
26681 - eval "$ac_prev=\$ac_option"
26682 + eval $ac_prev=\$ac_option
26683 ac_prev=
26684 continue
26685 fi
26686
26687 - ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
26688 + case $ac_option in
26689 + *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
26690 + *) ac_optarg=yes ;;
26691 + esac
26692
26693 # Accept the important Cygnus configure options, so we can diagnose typos.
26694
26695 - case $ac_option in
26696 + case $ac_dashdash$ac_option in
26697 + --)
26698 + ac_dashdash=yes ;;
26699
26700 -bindir | --bindir | --bindi | --bind | --bin | --bi)
26701 ac_prev=bindir ;;
26702 @@ -386,33 +856,45 @@ do
26703 --config-cache | -C)
26704 cache_file=config.cache ;;
26705
26706 - -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
26707 + -datadir | --datadir | --datadi | --datad)
26708 ac_prev=datadir ;;
26709 - -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
26710 - | --da=*)
26711 + -datadir=* | --datadir=* | --datadi=* | --datad=*)
26712 datadir=$ac_optarg ;;
26713
26714 + -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
26715 + | --dataroo | --dataro | --datar)
26716 + ac_prev=datarootdir ;;
26717 + -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
26718 + | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
26719 + datarootdir=$ac_optarg ;;
26720 +
26721 -disable-* | --disable-*)
26722 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
26723 # Reject names that are not valid shell variable names.
26724 - expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
26725 + expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
26726 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
26727 { (exit 1); exit 1; }; }
26728 - ac_feature=`echo $ac_feature | sed 's/-/_/g'`
26729 - eval "enable_$ac_feature=no" ;;
26730 + ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
26731 + eval enable_$ac_feature=no ;;
26732 +
26733 + -docdir | --docdir | --docdi | --doc | --do)
26734 + ac_prev=docdir ;;
26735 + -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
26736 + docdir=$ac_optarg ;;
26737 +
26738 + -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
26739 + ac_prev=dvidir ;;
26740 + -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
26741 + dvidir=$ac_optarg ;;
26742
26743 -enable-* | --enable-*)
26744 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
26745 # Reject names that are not valid shell variable names.
26746 - expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
26747 + expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
26748 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
26749 { (exit 1); exit 1; }; }
26750 - ac_feature=`echo $ac_feature | sed 's/-/_/g'`
26751 - case $ac_option in
26752 - *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
26753 - *) ac_optarg=yes ;;
26754 - esac
26755 - eval "enable_$ac_feature='$ac_optarg'" ;;
26756 + ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
26757 + eval enable_$ac_feature=\$ac_optarg ;;
26758
26759 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
26760 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
26761 @@ -439,6 +921,12 @@ do
26762 -host=* | --host=* | --hos=* | --ho=*)
26763 host_alias=$ac_optarg ;;
26764
26765 + -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
26766 + ac_prev=htmldir ;;
26767 + -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
26768 + | --ht=*)
26769 + htmldir=$ac_optarg ;;
26770 +
26771 -includedir | --includedir | --includedi | --included | --include \
26772 | --includ | --inclu | --incl | --inc)
26773 ac_prev=includedir ;;
26774 @@ -463,13 +951,16 @@ do
26775 | --libexe=* | --libex=* | --libe=*)
26776 libexecdir=$ac_optarg ;;
26777
26778 + -localedir | --localedir | --localedi | --localed | --locale)
26779 + ac_prev=localedir ;;
26780 + -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
26781 + localedir=$ac_optarg ;;
26782 +
26783 -localstatedir | --localstatedir | --localstatedi | --localstated \
26784 - | --localstate | --localstat | --localsta | --localst \
26785 - | --locals | --local | --loca | --loc | --lo)
26786 + | --localstate | --localstat | --localsta | --localst | --locals)
26787 ac_prev=localstatedir ;;
26788 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
26789 - | --localstate=* | --localstat=* | --localsta=* | --localst=* \
26790 - | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
26791 + | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
26792 localstatedir=$ac_optarg ;;
26793
26794 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
26795 @@ -534,6 +1025,16 @@ do
26796 | --progr-tra=* | --program-tr=* | --program-t=*)
26797 program_transform_name=$ac_optarg ;;
26798
26799 + -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
26800 + ac_prev=pdfdir ;;
26801 + -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
26802 + pdfdir=$ac_optarg ;;
26803 +
26804 + -psdir | --psdir | --psdi | --psd | --ps)
26805 + ac_prev=psdir ;;
26806 + -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
26807 + psdir=$ac_optarg ;;
26808 +
26809 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
26810 | -silent | --silent | --silen | --sile | --sil)
26811 silent=yes ;;
26812 @@ -586,24 +1087,20 @@ do
26813 -with-* | --with-*)
26814 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
26815 # Reject names that are not valid shell variable names.
26816 - expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
26817 + expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
26818 { echo "$as_me: error: invalid package name: $ac_package" >&2
26819 { (exit 1); exit 1; }; }
26820 - ac_package=`echo $ac_package| sed 's/-/_/g'`
26821 - case $ac_option in
26822 - *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
26823 - *) ac_optarg=yes ;;
26824 - esac
26825 - eval "with_$ac_package='$ac_optarg'" ;;
26826 + ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
26827 + eval with_$ac_package=\$ac_optarg ;;
26828
26829 -without-* | --without-*)
26830 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
26831 # Reject names that are not valid shell variable names.
26832 - expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
26833 + expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
26834 { echo "$as_me: error: invalid package name: $ac_package" >&2
26835 { (exit 1); exit 1; }; }
26836 - ac_package=`echo $ac_package | sed 's/-/_/g'`
26837 - eval "with_$ac_package=no" ;;
26838 + ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
26839 + eval with_$ac_package=no ;;
26840
26841 --x)
26842 # Obsolete; use --with-x.
26843 @@ -634,8 +1131,7 @@ Try \`$0 --help' for more information."
26844 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
26845 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
26846 { (exit 1); exit 1; }; }
26847 - ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
26848 - eval "$ac_envvar='$ac_optarg'"
26849 + eval $ac_envvar=\$ac_optarg
26850 export $ac_envvar ;;
26851
26852 *)
26853 @@ -655,27 +1151,19 @@ if test -n "$ac_prev"; then
26854 { (exit 1); exit 1; }; }
26855 fi
26856
26857 -# Be sure to have absolute paths.
26858 -for ac_var in exec_prefix prefix
26859 -do
26860 - eval ac_val=$`echo $ac_var`
26861 - case $ac_val in
26862 - [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
26863 - *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
26864 - { (exit 1); exit 1; }; };;
26865 - esac
26866 -done
26867 -
26868 -# Be sure to have absolute paths.
26869 -for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
26870 - localstatedir libdir includedir oldincludedir infodir mandir
26871 +# Be sure to have absolute directory names.
26872 +for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
26873 + datadir sysconfdir sharedstatedir localstatedir includedir \
26874 + oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
26875 + libdir localedir mandir
26876 do
26877 - eval ac_val=$`echo $ac_var`
26878 + eval ac_val=\$$ac_var
26879 case $ac_val in
26880 - [\\/$]* | ?:[\\/]* ) ;;
26881 - *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
26882 - { (exit 1); exit 1; }; };;
26883 + [\\/$]* | ?:[\\/]* ) continue;;
26884 + NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
26885 esac
26886 + { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
26887 + { (exit 1); exit 1; }; }
26888 done
26889
26890 # There might be people who depend on the old broken behavior: `$host'
26891 @@ -702,74 +1190,76 @@ test -n "$host_alias" && ac_tool_prefix=
26892 test "$silent" = yes && exec 6>/dev/null
26893
26894
26895 +ac_pwd=`pwd` && test -n "$ac_pwd" &&
26896 +ac_ls_di=`ls -di .` &&
26897 +ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
26898 + { echo "$as_me: error: Working directory cannot be determined" >&2
26899 + { (exit 1); exit 1; }; }
26900 +test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
26901 + { echo "$as_me: error: pwd does not report name of working directory" >&2
26902 + { (exit 1); exit 1; }; }
26903 +
26904 +
26905 # Find the source files, if location was not specified.
26906 if test -z "$srcdir"; then
26907 ac_srcdir_defaulted=yes
26908 - # Try the directory containing this script, then its parent.
26909 - ac_confdir=`(dirname "$0") 2>/dev/null ||
26910 + # Try the directory containing this script, then the parent directory.
26911 + ac_confdir=`$as_dirname -- "$0" ||
26912 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26913 X"$0" : 'X\(//\)[^/]' \| \
26914 X"$0" : 'X\(//\)$' \| \
26915 - X"$0" : 'X\(/\)' \| \
26916 - . : '\(.\)' 2>/dev/null ||
26917 + X"$0" : 'X\(/\)' \| . 2>/dev/null ||
26918 echo X"$0" |
26919 - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26920 - /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26921 - /^X\(\/\/\)$/{ s//\1/; q; }
26922 - /^X\(\/\).*/{ s//\1/; q; }
26923 - s/.*/./; q'`
26924 + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26925 + s//\1/
26926 + q
26927 + }
26928 + /^X\(\/\/\)[^/].*/{
26929 + s//\1/
26930 + q
26931 + }
26932 + /^X\(\/\/\)$/{
26933 + s//\1/
26934 + q
26935 + }
26936 + /^X\(\/\).*/{
26937 + s//\1/
26938 + q
26939 + }
26940 + s/.*/./; q'`
26941 srcdir=$ac_confdir
26942 - if test ! -r $srcdir/$ac_unique_file; then
26943 + if test ! -r "$srcdir/$ac_unique_file"; then
26944 srcdir=..
26945 fi
26946 else
26947 ac_srcdir_defaulted=no
26948 fi
26949 -if test ! -r $srcdir/$ac_unique_file; then
26950 - if test "$ac_srcdir_defaulted" = yes; then
26951 - { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
26952 - { (exit 1); exit 1; }; }
26953 - else
26954 - { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
26955 - { (exit 1); exit 1; }; }
26956 - fi
26957 -fi
26958 -(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
26959 - { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
26960 - { (exit 1); exit 1; }; }
26961 -srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
26962 -ac_env_build_alias_set=${build_alias+set}
26963 -ac_env_build_alias_value=$build_alias
26964 -ac_cv_env_build_alias_set=${build_alias+set}
26965 -ac_cv_env_build_alias_value=$build_alias
26966 -ac_env_host_alias_set=${host_alias+set}
26967 -ac_env_host_alias_value=$host_alias
26968 -ac_cv_env_host_alias_set=${host_alias+set}
26969 -ac_cv_env_host_alias_value=$host_alias
26970 -ac_env_target_alias_set=${target_alias+set}
26971 -ac_env_target_alias_value=$target_alias
26972 -ac_cv_env_target_alias_set=${target_alias+set}
26973 -ac_cv_env_target_alias_value=$target_alias
26974 -ac_env_CC_set=${CC+set}
26975 -ac_env_CC_value=$CC
26976 -ac_cv_env_CC_set=${CC+set}
26977 -ac_cv_env_CC_value=$CC
26978 -ac_env_CFLAGS_set=${CFLAGS+set}
26979 -ac_env_CFLAGS_value=$CFLAGS
26980 -ac_cv_env_CFLAGS_set=${CFLAGS+set}
26981 -ac_cv_env_CFLAGS_value=$CFLAGS
26982 -ac_env_LDFLAGS_set=${LDFLAGS+set}
26983 -ac_env_LDFLAGS_value=$LDFLAGS
26984 -ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
26985 -ac_cv_env_LDFLAGS_value=$LDFLAGS
26986 -ac_env_CPPFLAGS_set=${CPPFLAGS+set}
26987 -ac_env_CPPFLAGS_value=$CPPFLAGS
26988 -ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
26989 -ac_cv_env_CPPFLAGS_value=$CPPFLAGS
26990 -ac_env_CPP_set=${CPP+set}
26991 -ac_env_CPP_value=$CPP
26992 -ac_cv_env_CPP_set=${CPP+set}
26993 -ac_cv_env_CPP_value=$CPP
26994 +if test ! -r "$srcdir/$ac_unique_file"; then
26995 + test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
26996 + { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
26997 + { (exit 1); exit 1; }; }
26998 +fi
26999 +ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
27000 +ac_abs_confdir=`(
27001 + cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
27002 + { (exit 1); exit 1; }; }
27003 + pwd)`
27004 +# When building in place, set srcdir=.
27005 +if test "$ac_abs_confdir" = "$ac_pwd"; then
27006 + srcdir=.
27007 +fi
27008 +# Remove unnecessary trailing slashes from srcdir.
27009 +# Double slashes in file names in object file debugging info
27010 +# mess up M-x gdb in Emacs.
27011 +case $srcdir in
27012 +*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
27013 +esac
27014 +for ac_var in $ac_precious_vars; do
27015 + eval ac_env_${ac_var}_set=\${${ac_var}+set}
27016 + eval ac_env_${ac_var}_value=\$${ac_var}
27017 + eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
27018 + eval ac_cv_env_${ac_var}_value=\$${ac_var}
27019 +done
27020
27021 #
27022 # Report the --help message.
27023 @@ -798,9 +1288,6 @@ Configuration:
27024 -n, --no-create do not create output files
27025 --srcdir=DIR find the sources in DIR [configure dir or \`..']
27026
27027 -_ACEOF
27028 -
27029 - cat <<_ACEOF
27030 Installation directories:
27031 --prefix=PREFIX install architecture-independent files in PREFIX
27032 [$ac_default_prefix]
27033 @@ -818,15 +1305,22 @@ Fine tuning of the installation director
27034 --bindir=DIR user executables [EPREFIX/bin]
27035 --sbindir=DIR system admin executables [EPREFIX/sbin]
27036 --libexecdir=DIR program executables [EPREFIX/libexec]
27037 - --datadir=DIR read-only architecture-independent data [PREFIX/share]
27038 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
27039 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
27040 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
27041 --libdir=DIR object code libraries [EPREFIX/lib]
27042 --includedir=DIR C header files [PREFIX/include]
27043 --oldincludedir=DIR C header files for non-gcc [/usr/include]
27044 - --infodir=DIR info documentation [PREFIX/info]
27045 - --mandir=DIR man documentation [PREFIX/man]
27046 + --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
27047 + --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
27048 + --infodir=DIR info documentation [DATAROOTDIR/info]
27049 + --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
27050 + --mandir=DIR man documentation [DATAROOTDIR/man]
27051 + --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
27052 + --htmldir=DIR html documentation [DOCDIR]
27053 + --dvidir=DIR dvi documentation [DOCDIR]
27054 + --pdfdir=DIR pdf documentation [DOCDIR]
27055 + --psdir=DIR ps documentation [DOCDIR]
27056 _ACEOF
27057
27058 cat <<\_ACEOF
27059 @@ -876,126 +1370,100 @@ Some influential environment variables:
27060 CFLAGS C compiler flags
27061 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
27062 nonstandard directory <lib dir>
27063 - CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
27064 - headers in a nonstandard directory <include dir>
27065 + LIBS libraries to pass to the linker, e.g. -l<library>
27066 + CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
27067 + you have headers in a nonstandard directory <include dir>
27068 + YACC The `Yet Another C Compiler' implementation to use. Defaults to
27069 + the first program found out of: `bison -y', `byacc', `yacc'.
27070 + YFLAGS The list of arguments that will be passed by default to $YACC.
27071 + This script will default YFLAGS to the empty string to avoid a
27072 + default value of `-d' given by some make applications.
27073 CPP C preprocessor
27074
27075 Use these variables to override the choices made by `configure' or to help
27076 it to find libraries and programs with nonstandard names/locations.
27077
27078 _ACEOF
27079 +ac_status=$?
27080 fi
27081
27082 if test "$ac_init_help" = "recursive"; then
27083 # If there are subdirs, report their specific --help.
27084 - ac_popdir=`pwd`
27085 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
27086 - test -d $ac_dir || continue
27087 + test -d "$ac_dir" || continue
27088 ac_builddir=.
27089
27090 -if test "$ac_dir" != .; then
27091 +case "$ac_dir" in
27092 +.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
27093 +*)
27094 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
27095 - # A "../" for each directory in $ac_dir_suffix.
27096 - ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
27097 -else
27098 - ac_dir_suffix= ac_top_builddir=
27099 -fi
27100 + # A ".." for each directory in $ac_dir_suffix.
27101 + ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
27102 + case $ac_top_builddir_sub in
27103 + "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
27104 + *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
27105 + esac ;;
27106 +esac
27107 +ac_abs_top_builddir=$ac_pwd
27108 +ac_abs_builddir=$ac_pwd$ac_dir_suffix
27109 +# for backward compatibility:
27110 +ac_top_builddir=$ac_top_build_prefix
27111
27112 case $srcdir in
27113 - .) # No --srcdir option. We are building in place.
27114 + .) # We are building in place.
27115 ac_srcdir=.
27116 - if test -z "$ac_top_builddir"; then
27117 - ac_top_srcdir=.
27118 - else
27119 - ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
27120 - fi ;;
27121 - [\\/]* | ?:[\\/]* ) # Absolute path.
27122 + ac_top_srcdir=$ac_top_builddir_sub
27123 + ac_abs_top_srcdir=$ac_pwd ;;
27124 + [\\/]* | ?:[\\/]* ) # Absolute name.
27125 ac_srcdir=$srcdir$ac_dir_suffix;
27126 - ac_top_srcdir=$srcdir ;;
27127 - *) # Relative path.
27128 - ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
27129 - ac_top_srcdir=$ac_top_builddir$srcdir ;;
27130 -esac
27131 -
27132 -# Do not use `cd foo && pwd` to compute absolute paths, because
27133 -# the directories may not exist.
27134 -case `pwd` in
27135 -.) ac_abs_builddir="$ac_dir";;
27136 -*)
27137 - case "$ac_dir" in
27138 - .) ac_abs_builddir=`pwd`;;
27139 - [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
27140 - *) ac_abs_builddir=`pwd`/"$ac_dir";;
27141 - esac;;
27142 -esac
27143 -case $ac_abs_builddir in
27144 -.) ac_abs_top_builddir=${ac_top_builddir}.;;
27145 -*)
27146 - case ${ac_top_builddir}. in
27147 - .) ac_abs_top_builddir=$ac_abs_builddir;;
27148 - [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
27149 - *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
27150 - esac;;
27151 -esac
27152 -case $ac_abs_builddir in
27153 -.) ac_abs_srcdir=$ac_srcdir;;
27154 -*)
27155 - case $ac_srcdir in
27156 - .) ac_abs_srcdir=$ac_abs_builddir;;
27157 - [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
27158 - *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
27159 - esac;;
27160 -esac
27161 -case $ac_abs_builddir in
27162 -.) ac_abs_top_srcdir=$ac_top_srcdir;;
27163 -*)
27164 - case $ac_top_srcdir in
27165 - .) ac_abs_top_srcdir=$ac_abs_builddir;;
27166 - [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
27167 - *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
27168 - esac;;
27169 -esac
27170 -
27171 - cd $ac_dir
27172 - # Check for guested configure; otherwise get Cygnus style configure.
27173 - if test -f $ac_srcdir/configure.gnu; then
27174 - echo
27175 - $SHELL $ac_srcdir/configure.gnu --help=recursive
27176 - elif test -f $ac_srcdir/configure; then
27177 - echo
27178 - $SHELL $ac_srcdir/configure --help=recursive
27179 - elif test -f $ac_srcdir/configure.ac ||
27180 - test -f $ac_srcdir/configure.in; then
27181 - echo
27182 - $ac_configure --help
27183 + ac_top_srcdir=$srcdir
27184 + ac_abs_top_srcdir=$srcdir ;;
27185 + *) # Relative name.
27186 + ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
27187 + ac_top_srcdir=$ac_top_build_prefix$srcdir
27188 + ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
27189 +esac
27190 +ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
27191 +
27192 + cd "$ac_dir" || { ac_status=$?; continue; }
27193 + # Check for guested configure.
27194 + if test -f "$ac_srcdir/configure.gnu"; then
27195 + echo &&
27196 + $SHELL "$ac_srcdir/configure.gnu" --help=recursive
27197 + elif test -f "$ac_srcdir/configure"; then
27198 + echo &&
27199 + $SHELL "$ac_srcdir/configure" --help=recursive
27200 else
27201 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
27202 - fi
27203 - cd $ac_popdir
27204 + fi || ac_status=$?
27205 + cd "$ac_pwd" || { ac_status=$?; break; }
27206 done
27207 fi
27208
27209 -test -n "$ac_init_help" && exit 0
27210 +test -n "$ac_init_help" && exit $ac_status
27211 if $ac_init_version; then
27212 cat <<\_ACEOF
27213 +configure
27214 +generated by GNU Autoconf 2.61
27215
27216 -Copyright (C) 2003 Free Software Foundation, Inc.
27217 +Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
27218 +2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
27219 This configure script is free software; the Free Software Foundation
27220 gives unlimited permission to copy, distribute and modify it.
27221 _ACEOF
27222 - exit 0
27223 + exit
27224 fi
27225 -exec 5>config.log
27226 -cat >&5 <<_ACEOF
27227 +cat >config.log <<_ACEOF
27228 This file contains any messages produced by compilers while
27229 running configure, to aid debugging if configure makes a mistake.
27230
27231 It was created by $as_me, which was
27232 -generated by GNU Autoconf 2.59. Invocation command line was
27233 +generated by GNU Autoconf 2.61. Invocation command line was
27234
27235 $ $0 $@
27236
27237 _ACEOF
27238 +exec 5>>config.log
27239 {
27240 cat <<_ASUNAME
27241 ## --------- ##
27242 @@ -1014,7 +1482,7 @@ uname -v = `(uname -v) 2>/dev/null || ec
27243 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
27244 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
27245 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
27246 -hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
27247 +/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
27248 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
27249 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
27250 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
27251 @@ -1028,6 +1496,7 @@ do
27252 test -z "$as_dir" && as_dir=.
27253 echo "PATH: $as_dir"
27254 done
27255 +IFS=$as_save_IFS
27256
27257 } >&5
27258
27259 @@ -1049,7 +1518,6 @@ _ACEOF
27260 ac_configure_args=
27261 ac_configure_args0=
27262 ac_configure_args1=
27263 -ac_sep=
27264 ac_must_keep_next=false
27265 for ac_pass in 1 2
27266 do
27267 @@ -1060,7 +1528,7 @@ do
27268 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
27269 | -silent | --silent | --silen | --sile | --sil)
27270 continue ;;
27271 - *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
27272 + *\'*)
27273 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
27274 esac
27275 case $ac_pass in
27276 @@ -1082,9 +1550,7 @@ do
27277 -* ) ac_must_keep_next=true ;;
27278 esac
27279 fi
27280 - ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
27281 - # Get rid of the leading space.
27282 - ac_sep=" "
27283 + ac_configure_args="$ac_configure_args '$ac_arg'"
27284 ;;
27285 esac
27286 done
27287 @@ -1095,8 +1561,8 @@ $as_unset ac_configure_args1 || test "${
27288 # When interrupted or exit'd, cleanup temporary files, and complete
27289 # config.log. We remove comments because anyway the quotes in there
27290 # would cause problems or look ugly.
27291 -# WARNING: Be sure not to use single quotes in there, as some shells,
27292 -# such as our DU 5.0 friend, will then `close' the trap.
27293 +# WARNING: Use '\'' to represent an apostrophe within the trap.
27294 +# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
27295 trap 'exit_status=$?
27296 # Save into config.log some information that might help in debugging.
27297 {
27298 @@ -1109,20 +1575,34 @@ trap 'exit_status=$?
27299 _ASBOX
27300 echo
27301 # The following way of writing the cache mishandles newlines in values,
27302 -{
27303 +(
27304 + for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
27305 + eval ac_val=\$$ac_var
27306 + case $ac_val in #(
27307 + *${as_nl}*)
27308 + case $ac_var in #(
27309 + *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
27310 +echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
27311 + esac
27312 + case $ac_var in #(
27313 + _ | IFS | as_nl) ;; #(
27314 + *) $as_unset $ac_var ;;
27315 + esac ;;
27316 + esac
27317 + done
27318 (set) 2>&1 |
27319 - case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
27320 - *ac_space=\ *)
27321 + case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
27322 + *${as_nl}ac_space=\ *)
27323 sed -n \
27324 - "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
27325 - s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
27326 - ;;
27327 + "s/'\''/'\''\\\\'\'''\''/g;
27328 + s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
27329 + ;; #(
27330 *)
27331 - sed -n \
27332 - "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
27333 + sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
27334 ;;
27335 - esac;
27336 -}
27337 + esac |
27338 + sort
27339 +)
27340 echo
27341
27342 cat <<\_ASBOX
27343 @@ -1133,22 +1613,28 @@ _ASBOX
27344 echo
27345 for ac_var in $ac_subst_vars
27346 do
27347 - eval ac_val=$`echo $ac_var`
27348 - echo "$ac_var='"'"'$ac_val'"'"'"
27349 + eval ac_val=\$$ac_var
27350 + case $ac_val in
27351 + *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
27352 + esac
27353 + echo "$ac_var='\''$ac_val'\''"
27354 done | sort
27355 echo
27356
27357 if test -n "$ac_subst_files"; then
27358 cat <<\_ASBOX
27359 -## ------------- ##
27360 -## Output files. ##
27361 -## ------------- ##
27362 +## ------------------- ##
27363 +## File substitutions. ##
27364 +## ------------------- ##
27365 _ASBOX
27366 echo
27367 for ac_var in $ac_subst_files
27368 do
27369 - eval ac_val=$`echo $ac_var`
27370 - echo "$ac_var='"'"'$ac_val'"'"'"
27371 + eval ac_val=\$$ac_var
27372 + case $ac_val in
27373 + *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
27374 + esac
27375 + echo "$ac_var='\''$ac_val'\''"
27376 done | sort
27377 echo
27378 fi
27379 @@ -1160,26 +1646,24 @@ _ASBOX
27380 ## ----------- ##
27381 _ASBOX
27382 echo
27383 - sed "/^$/d" confdefs.h | sort
27384 + cat confdefs.h
27385 echo
27386 fi
27387 test "$ac_signal" != 0 &&
27388 echo "$as_me: caught signal $ac_signal"
27389 echo "$as_me: exit $exit_status"
27390 } >&5
27391 - rm -f core *.core &&
27392 - rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
27393 + rm -f core *.core core.conftest.* &&
27394 + rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
27395 exit $exit_status
27396 - ' 0
27397 +' 0
27398 for ac_signal in 1 2 13 15; do
27399 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
27400 done
27401 ac_signal=0
27402
27403 # confdefs.h avoids OS command line length limits that DEFS can exceed.
27404 -rm -rf conftest* confdefs.h
27405 -# AIX cpp loses on an empty file, so make sure it contains at least a newline.
27406 -echo >confdefs.h
27407 +rm -f -r conftest* confdefs.h
27408
27409 # Predefined preprocessor variables.
27410
27411 @@ -1210,14 +1694,17 @@ _ACEOF
27412
27413 # Let the site file select an alternate cache file if it wants to.
27414 # Prefer explicitly selected file to automatically selected ones.
27415 -if test -z "$CONFIG_SITE"; then
27416 - if test "x$prefix" != xNONE; then
27417 - CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
27418 - else
27419 - CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
27420 - fi
27421 +if test -n "$CONFIG_SITE"; then
27422 + set x "$CONFIG_SITE"
27423 +elif test "x$prefix" != xNONE; then
27424 + set x "$prefix/share/config.site" "$prefix/etc/config.site"
27425 +else
27426 + set x "$ac_default_prefix/share/config.site" \
27427 + "$ac_default_prefix/etc/config.site"
27428 fi
27429 -for ac_site_file in $CONFIG_SITE; do
27430 +shift
27431 +for ac_site_file
27432 +do
27433 if test -r "$ac_site_file"; then
27434 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
27435 echo "$as_me: loading site script $ac_site_file" >&6;}
27436 @@ -1233,8 +1720,8 @@ if test -r "$cache_file"; then
27437 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
27438 echo "$as_me: loading cache $cache_file" >&6;}
27439 case $cache_file in
27440 - [\\/]* | ?:[\\/]* ) . $cache_file;;
27441 - *) . ./$cache_file;;
27442 + [\\/]* | ?:[\\/]* ) . "$cache_file";;
27443 + *) . "./$cache_file";;
27444 esac
27445 fi
27446 else
27447 @@ -1246,12 +1733,11 @@ fi
27448 # Check that the precious variables saved in the cache have kept the same
27449 # value.
27450 ac_cache_corrupted=false
27451 -for ac_var in `(set) 2>&1 |
27452 - sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
27453 +for ac_var in $ac_precious_vars; do
27454 eval ac_old_set=\$ac_cv_env_${ac_var}_set
27455 eval ac_new_set=\$ac_env_${ac_var}_set
27456 - eval ac_old_val="\$ac_cv_env_${ac_var}_value"
27457 - eval ac_new_val="\$ac_env_${ac_var}_value"
27458 + eval ac_old_val=\$ac_cv_env_${ac_var}_value
27459 + eval ac_new_val=\$ac_env_${ac_var}_value
27460 case $ac_old_set,$ac_new_set in
27461 set,)
27462 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
27463 @@ -1276,8 +1762,7 @@ echo "$as_me: current value: $ac_new_v
27464 # Pass precious variables to config.status.
27465 if test "$ac_new_set" = set; then
27466 case $ac_new_val in
27467 - *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
27468 - ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
27469 + *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
27470 *) ac_arg=$ac_var=$ac_new_val ;;
27471 esac
27472 case " $ac_configure_args " in
27473 @@ -1294,12 +1779,6 @@ echo "$as_me: error: run \`make distclea
27474 { (exit 1); exit 1; }; }
27475 fi
27476
27477 -ac_ext=c
27478 -ac_cpp='$CPP $CPPFLAGS'
27479 -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27480 -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27481 -ac_compiler_gnu=$ac_cv_c_compiler_gnu
27482 -
27483
27484
27485
27486 @@ -1316,108 +1795,163 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
27487
27488
27489
27490 +ac_ext=c
27491 +ac_cpp='$CPP $CPPFLAGS'
27492 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27493 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27494 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
27495
27496
27497
27498 ac_aux_dir=
27499 -for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
27500 - if test -f $ac_dir/install-sh; then
27501 +for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
27502 + if test -f "$ac_dir/install-sh"; then
27503 ac_aux_dir=$ac_dir
27504 ac_install_sh="$ac_aux_dir/install-sh -c"
27505 break
27506 - elif test -f $ac_dir/install.sh; then
27507 + elif test -f "$ac_dir/install.sh"; then
27508 ac_aux_dir=$ac_dir
27509 ac_install_sh="$ac_aux_dir/install.sh -c"
27510 break
27511 - elif test -f $ac_dir/shtool; then
27512 + elif test -f "$ac_dir/shtool"; then
27513 ac_aux_dir=$ac_dir
27514 ac_install_sh="$ac_aux_dir/shtool install -c"
27515 break
27516 fi
27517 done
27518 if test -z "$ac_aux_dir"; then
27519 - { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
27520 -echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
27521 + { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
27522 +echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
27523 { (exit 1); exit 1; }; }
27524 fi
27525 -ac_config_guess="$SHELL $ac_aux_dir/config.guess"
27526 -ac_config_sub="$SHELL $ac_aux_dir/config.sub"
27527 -ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
27528 +
27529 +# These three variables are undocumented and unsupported,
27530 +# and are intended to be withdrawn in a future Autoconf release.
27531 +# They can cause serious problems if a builder's source tree is in a directory
27532 +# whose full name contains unusual characters.
27533 +ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
27534 +ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
27535 +ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
27536 +
27537
27538 # Make sure we can run config.sub.
27539 -$ac_config_sub sun4 >/dev/null 2>&1 ||
27540 - { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
27541 -echo "$as_me: error: cannot run $ac_config_sub" >&2;}
27542 +$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
27543 + { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
27544 +echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
27545 { (exit 1); exit 1; }; }
27546
27547 -echo "$as_me:$LINENO: checking build system type" >&5
27548 -echo $ECHO_N "checking build system type... $ECHO_C" >&6
27549 +{ echo "$as_me:$LINENO: checking build system type" >&5
27550 +echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
27551 if test "${ac_cv_build+set}" = set; then
27552 echo $ECHO_N "(cached) $ECHO_C" >&6
27553 else
27554 - ac_cv_build_alias=$build_alias
27555 -test -z "$ac_cv_build_alias" &&
27556 - ac_cv_build_alias=`$ac_config_guess`
27557 -test -z "$ac_cv_build_alias" &&
27558 + ac_build_alias=$build_alias
27559 +test "x$ac_build_alias" = x &&
27560 + ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
27561 +test "x$ac_build_alias" = x &&
27562 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
27563 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
27564 { (exit 1); exit 1; }; }
27565 -ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
27566 - { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
27567 -echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
27568 +ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
27569 + { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
27570 +echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
27571 { (exit 1); exit 1; }; }
27572
27573 fi
27574 -echo "$as_me:$LINENO: result: $ac_cv_build" >&5
27575 -echo "${ECHO_T}$ac_cv_build" >&6
27576 +{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
27577 +echo "${ECHO_T}$ac_cv_build" >&6; }
27578 +case $ac_cv_build in
27579 +*-*-*) ;;
27580 +*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
27581 +echo "$as_me: error: invalid value of canonical build" >&2;}
27582 + { (exit 1); exit 1; }; };;
27583 +esac
27584 build=$ac_cv_build
27585 -build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
27586 -build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
27587 -build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
27588 +ac_save_IFS=$IFS; IFS='-'
27589 +set x $ac_cv_build
27590 +shift
27591 +build_cpu=$1
27592 +build_vendor=$2
27593 +shift; shift
27594 +# Remember, the first character of IFS is used to create $*,
27595 +# except with old shells:
27596 +build_os=$*
27597 +IFS=$ac_save_IFS
27598 +case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
27599
27600
27601 -echo "$as_me:$LINENO: checking host system type" >&5
27602 -echo $ECHO_N "checking host system type... $ECHO_C" >&6
27603 +{ echo "$as_me:$LINENO: checking host system type" >&5
27604 +echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
27605 if test "${ac_cv_host+set}" = set; then
27606 echo $ECHO_N "(cached) $ECHO_C" >&6
27607 else
27608 - ac_cv_host_alias=$host_alias
27609 -test -z "$ac_cv_host_alias" &&
27610 - ac_cv_host_alias=$ac_cv_build_alias
27611 -ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
27612 - { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
27613 -echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
27614 + if test "x$host_alias" = x; then
27615 + ac_cv_host=$ac_cv_build
27616 +else
27617 + ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
27618 + { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
27619 +echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
27620 { (exit 1); exit 1; }; }
27621 +fi
27622
27623 fi
27624 -echo "$as_me:$LINENO: result: $ac_cv_host" >&5
27625 -echo "${ECHO_T}$ac_cv_host" >&6
27626 +{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
27627 +echo "${ECHO_T}$ac_cv_host" >&6; }
27628 +case $ac_cv_host in
27629 +*-*-*) ;;
27630 +*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
27631 +echo "$as_me: error: invalid value of canonical host" >&2;}
27632 + { (exit 1); exit 1; }; };;
27633 +esac
27634 host=$ac_cv_host
27635 -host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
27636 -host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
27637 -host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
27638 +ac_save_IFS=$IFS; IFS='-'
27639 +set x $ac_cv_host
27640 +shift
27641 +host_cpu=$1
27642 +host_vendor=$2
27643 +shift; shift
27644 +# Remember, the first character of IFS is used to create $*,
27645 +# except with old shells:
27646 +host_os=$*
27647 +IFS=$ac_save_IFS
27648 +case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
27649
27650
27651 -echo "$as_me:$LINENO: checking target system type" >&5
27652 -echo $ECHO_N "checking target system type... $ECHO_C" >&6
27653 +{ echo "$as_me:$LINENO: checking target system type" >&5
27654 +echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
27655 if test "${ac_cv_target+set}" = set; then
27656 echo $ECHO_N "(cached) $ECHO_C" >&6
27657 else
27658 - ac_cv_target_alias=$target_alias
27659 -test "x$ac_cv_target_alias" = "x" &&
27660 - ac_cv_target_alias=$ac_cv_host_alias
27661 -ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
27662 - { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
27663 -echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
27664 + if test "x$target_alias" = x; then
27665 + ac_cv_target=$ac_cv_host
27666 +else
27667 + ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
27668 + { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
27669 +echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
27670 { (exit 1); exit 1; }; }
27671 +fi
27672
27673 fi
27674 -echo "$as_me:$LINENO: result: $ac_cv_target" >&5
27675 -echo "${ECHO_T}$ac_cv_target" >&6
27676 +{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
27677 +echo "${ECHO_T}$ac_cv_target" >&6; }
27678 +case $ac_cv_target in
27679 +*-*-*) ;;
27680 +*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
27681 +echo "$as_me: error: invalid value of canonical target" >&2;}
27682 + { (exit 1); exit 1; }; };;
27683 +esac
27684 target=$ac_cv_target
27685 -target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
27686 -target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
27687 -target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
27688 +ac_save_IFS=$IFS; IFS='-'
27689 +set x $ac_cv_target
27690 +shift
27691 +target_cpu=$1
27692 +target_vendor=$2
27693 +shift; shift
27694 +# Remember, the first character of IFS is used to create $*,
27695 +# except with old shells:
27696 +target_os=$*
27697 +IFS=$ac_save_IFS
27698 +case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
27699
27700
27701 # The aliases save the names the user supplied, while $host etc.
27702 @@ -1434,8 +1968,8 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
27703 if test -n "$ac_tool_prefix"; then
27704 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
27705 set dummy ${ac_tool_prefix}gcc; ac_word=$2
27706 -echo "$as_me:$LINENO: checking for $ac_word" >&5
27707 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27708 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
27709 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27710 if test "${ac_cv_prog_CC+set}" = set; then
27711 echo $ECHO_N "(cached) $ECHO_C" >&6
27712 else
27713 @@ -1448,32 +1982,34 @@ do
27714 IFS=$as_save_IFS
27715 test -z "$as_dir" && as_dir=.
27716 for ac_exec_ext in '' $ac_executable_extensions; do
27717 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27718 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27719 ac_cv_prog_CC="${ac_tool_prefix}gcc"
27720 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27721 break 2
27722 fi
27723 done
27724 done
27725 +IFS=$as_save_IFS
27726
27727 fi
27728 fi
27729 CC=$ac_cv_prog_CC
27730 if test -n "$CC"; then
27731 - echo "$as_me:$LINENO: result: $CC" >&5
27732 -echo "${ECHO_T}$CC" >&6
27733 + { echo "$as_me:$LINENO: result: $CC" >&5
27734 +echo "${ECHO_T}$CC" >&6; }
27735 else
27736 - echo "$as_me:$LINENO: result: no" >&5
27737 -echo "${ECHO_T}no" >&6
27738 + { echo "$as_me:$LINENO: result: no" >&5
27739 +echo "${ECHO_T}no" >&6; }
27740 fi
27741
27742 +
27743 fi
27744 if test -z "$ac_cv_prog_CC"; then
27745 ac_ct_CC=$CC
27746 # Extract the first word of "gcc", so it can be a program name with args.
27747 set dummy gcc; ac_word=$2
27748 -echo "$as_me:$LINENO: checking for $ac_word" >&5
27749 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27750 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
27751 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27752 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
27753 echo $ECHO_N "(cached) $ECHO_C" >&6
27754 else
27755 @@ -1486,36 +2022,51 @@ do
27756 IFS=$as_save_IFS
27757 test -z "$as_dir" && as_dir=.
27758 for ac_exec_ext in '' $ac_executable_extensions; do
27759 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27760 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27761 ac_cv_prog_ac_ct_CC="gcc"
27762 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27763 break 2
27764 fi
27765 done
27766 done
27767 +IFS=$as_save_IFS
27768
27769 fi
27770 fi
27771 ac_ct_CC=$ac_cv_prog_ac_ct_CC
27772 if test -n "$ac_ct_CC"; then
27773 - echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
27774 -echo "${ECHO_T}$ac_ct_CC" >&6
27775 + { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
27776 +echo "${ECHO_T}$ac_ct_CC" >&6; }
27777 else
27778 - echo "$as_me:$LINENO: result: no" >&5
27779 -echo "${ECHO_T}no" >&6
27780 + { echo "$as_me:$LINENO: result: no" >&5
27781 +echo "${ECHO_T}no" >&6; }
27782 fi
27783
27784 - CC=$ac_ct_CC
27785 + if test "x$ac_ct_CC" = x; then
27786 + CC=""
27787 + else
27788 + case $cross_compiling:$ac_tool_warned in
27789 +yes:)
27790 +{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
27791 +whose name does not start with the host triplet. If you think this
27792 +configuration is useful to you, please write to autoconf@gnu.org." >&5
27793 +echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
27794 +whose name does not start with the host triplet. If you think this
27795 +configuration is useful to you, please write to autoconf@gnu.org." >&2;}
27796 +ac_tool_warned=yes ;;
27797 +esac
27798 + CC=$ac_ct_CC
27799 + fi
27800 else
27801 CC="$ac_cv_prog_CC"
27802 fi
27803
27804 if test -z "$CC"; then
27805 - if test -n "$ac_tool_prefix"; then
27806 - # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
27807 + if test -n "$ac_tool_prefix"; then
27808 + # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
27809 set dummy ${ac_tool_prefix}cc; ac_word=$2
27810 -echo "$as_me:$LINENO: checking for $ac_word" >&5
27811 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27812 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
27813 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27814 if test "${ac_cv_prog_CC+set}" = set; then
27815 echo $ECHO_N "(cached) $ECHO_C" >&6
27816 else
27817 @@ -1528,74 +2079,34 @@ do
27818 IFS=$as_save_IFS
27819 test -z "$as_dir" && as_dir=.
27820 for ac_exec_ext in '' $ac_executable_extensions; do
27821 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27822 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27823 ac_cv_prog_CC="${ac_tool_prefix}cc"
27824 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27825 break 2
27826 fi
27827 done
27828 done
27829 +IFS=$as_save_IFS
27830
27831 fi
27832 fi
27833 CC=$ac_cv_prog_CC
27834 if test -n "$CC"; then
27835 - echo "$as_me:$LINENO: result: $CC" >&5
27836 -echo "${ECHO_T}$CC" >&6
27837 -else
27838 - echo "$as_me:$LINENO: result: no" >&5
27839 -echo "${ECHO_T}no" >&6
27840 -fi
27841 -
27842 -fi
27843 -if test -z "$ac_cv_prog_CC"; then
27844 - ac_ct_CC=$CC
27845 - # Extract the first word of "cc", so it can be a program name with args.
27846 -set dummy cc; ac_word=$2
27847 -echo "$as_me:$LINENO: checking for $ac_word" >&5
27848 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27849 -if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
27850 - echo $ECHO_N "(cached) $ECHO_C" >&6
27851 -else
27852 - if test -n "$ac_ct_CC"; then
27853 - ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
27854 -else
27855 -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27856 -for as_dir in $PATH
27857 -do
27858 - IFS=$as_save_IFS
27859 - test -z "$as_dir" && as_dir=.
27860 - for ac_exec_ext in '' $ac_executable_extensions; do
27861 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27862 - ac_cv_prog_ac_ct_CC="cc"
27863 - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27864 - break 2
27865 - fi
27866 -done
27867 -done
27868 -
27869 -fi
27870 -fi
27871 -ac_ct_CC=$ac_cv_prog_ac_ct_CC
27872 -if test -n "$ac_ct_CC"; then
27873 - echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
27874 -echo "${ECHO_T}$ac_ct_CC" >&6
27875 + { echo "$as_me:$LINENO: result: $CC" >&5
27876 +echo "${ECHO_T}$CC" >&6; }
27877 else
27878 - echo "$as_me:$LINENO: result: no" >&5
27879 -echo "${ECHO_T}no" >&6
27880 + { echo "$as_me:$LINENO: result: no" >&5
27881 +echo "${ECHO_T}no" >&6; }
27882 fi
27883
27884 - CC=$ac_ct_CC
27885 -else
27886 - CC="$ac_cv_prog_CC"
27887 -fi
27888
27889 + fi
27890 fi
27891 if test -z "$CC"; then
27892 # Extract the first word of "cc", so it can be a program name with args.
27893 set dummy cc; ac_word=$2
27894 -echo "$as_me:$LINENO: checking for $ac_word" >&5
27895 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27896 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
27897 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27898 if test "${ac_cv_prog_CC+set}" = set; then
27899 echo $ECHO_N "(cached) $ECHO_C" >&6
27900 else
27901 @@ -1609,7 +2120,7 @@ do
27902 IFS=$as_save_IFS
27903 test -z "$as_dir" && as_dir=.
27904 for ac_exec_ext in '' $ac_executable_extensions; do
27905 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27906 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27907 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
27908 ac_prog_rejected=yes
27909 continue
27910 @@ -1620,6 +2131,7 @@ do
27911 fi
27912 done
27913 done
27914 +IFS=$as_save_IFS
27915
27916 if test $ac_prog_rejected = yes; then
27917 # We found a bogon in the path, so make sure we never use it.
27918 @@ -1637,22 +2149,23 @@ fi
27919 fi
27920 CC=$ac_cv_prog_CC
27921 if test -n "$CC"; then
27922 - echo "$as_me:$LINENO: result: $CC" >&5
27923 -echo "${ECHO_T}$CC" >&6
27924 + { echo "$as_me:$LINENO: result: $CC" >&5
27925 +echo "${ECHO_T}$CC" >&6; }
27926 else
27927 - echo "$as_me:$LINENO: result: no" >&5
27928 -echo "${ECHO_T}no" >&6
27929 + { echo "$as_me:$LINENO: result: no" >&5
27930 +echo "${ECHO_T}no" >&6; }
27931 fi
27932
27933 +
27934 fi
27935 if test -z "$CC"; then
27936 if test -n "$ac_tool_prefix"; then
27937 - for ac_prog in cl
27938 + for ac_prog in cl.exe
27939 do
27940 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
27941 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
27942 -echo "$as_me:$LINENO: checking for $ac_word" >&5
27943 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27944 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
27945 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27946 if test "${ac_cv_prog_CC+set}" = set; then
27947 echo $ECHO_N "(cached) $ECHO_C" >&6
27948 else
27949 @@ -1665,36 +2178,38 @@ do
27950 IFS=$as_save_IFS
27951 test -z "$as_dir" && as_dir=.
27952 for ac_exec_ext in '' $ac_executable_extensions; do
27953 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27954 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27955 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
27956 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27957 break 2
27958 fi
27959 done
27960 done
27961 +IFS=$as_save_IFS
27962
27963 fi
27964 fi
27965 CC=$ac_cv_prog_CC
27966 if test -n "$CC"; then
27967 - echo "$as_me:$LINENO: result: $CC" >&5
27968 -echo "${ECHO_T}$CC" >&6
27969 + { echo "$as_me:$LINENO: result: $CC" >&5
27970 +echo "${ECHO_T}$CC" >&6; }
27971 else
27972 - echo "$as_me:$LINENO: result: no" >&5
27973 -echo "${ECHO_T}no" >&6
27974 + { echo "$as_me:$LINENO: result: no" >&5
27975 +echo "${ECHO_T}no" >&6; }
27976 fi
27977
27978 +
27979 test -n "$CC" && break
27980 done
27981 fi
27982 if test -z "$CC"; then
27983 ac_ct_CC=$CC
27984 - for ac_prog in cl
27985 + for ac_prog in cl.exe
27986 do
27987 # Extract the first word of "$ac_prog", so it can be a program name with args.
27988 set dummy $ac_prog; ac_word=$2
27989 -echo "$as_me:$LINENO: checking for $ac_word" >&5
27990 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27991 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
27992 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27993 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
27994 echo $ECHO_N "(cached) $ECHO_C" >&6
27995 else
27996 @@ -1707,29 +2222,45 @@ do
27997 IFS=$as_save_IFS
27998 test -z "$as_dir" && as_dir=.
27999 for ac_exec_ext in '' $ac_executable_extensions; do
28000 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28001 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28002 ac_cv_prog_ac_ct_CC="$ac_prog"
28003 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28004 break 2
28005 fi
28006 done
28007 done
28008 +IFS=$as_save_IFS
28009
28010 fi
28011 fi
28012 ac_ct_CC=$ac_cv_prog_ac_ct_CC
28013 if test -n "$ac_ct_CC"; then
28014 - echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
28015 -echo "${ECHO_T}$ac_ct_CC" >&6
28016 + { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
28017 +echo "${ECHO_T}$ac_ct_CC" >&6; }
28018 else
28019 - echo "$as_me:$LINENO: result: no" >&5
28020 -echo "${ECHO_T}no" >&6
28021 + { echo "$as_me:$LINENO: result: no" >&5
28022 +echo "${ECHO_T}no" >&6; }
28023 fi
28024
28025 +
28026 test -n "$ac_ct_CC" && break
28027 done
28028
28029 - CC=$ac_ct_CC
28030 + if test "x$ac_ct_CC" = x; then
28031 + CC=""
28032 + else
28033 + case $cross_compiling:$ac_tool_warned in
28034 +yes:)
28035 +{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
28036 +whose name does not start with the host triplet. If you think this
28037 +configuration is useful to you, please write to autoconf@gnu.org." >&5
28038 +echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
28039 +whose name does not start with the host triplet. If you think this
28040 +configuration is useful to you, please write to autoconf@gnu.org." >&2;}
28041 +ac_tool_warned=yes ;;
28042 +esac
28043 + CC=$ac_ct_CC
28044 + fi
28045 fi
28046
28047 fi
28048 @@ -1742,21 +2273,35 @@ See \`config.log' for more details." >&2
28049 { (exit 1); exit 1; }; }
28050
28051 # Provide some information about the compiler.
28052 -echo "$as_me:$LINENO:" \
28053 - "checking for C compiler version" >&5
28054 +echo "$as_me:$LINENO: checking for C compiler version" >&5
28055 ac_compiler=`set X $ac_compile; echo $2`
28056 -{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
28057 - (eval $ac_compiler --version </dev/null >&5) 2>&5
28058 +{ (ac_try="$ac_compiler --version >&5"
28059 +case "(($ac_try" in
28060 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28061 + *) ac_try_echo=$ac_try;;
28062 +esac
28063 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28064 + (eval "$ac_compiler --version >&5") 2>&5
28065 ac_status=$?
28066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28067 (exit $ac_status); }
28068 -{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
28069 - (eval $ac_compiler -v </dev/null >&5) 2>&5
28070 +{ (ac_try="$ac_compiler -v >&5"
28071 +case "(($ac_try" in
28072 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28073 + *) ac_try_echo=$ac_try;;
28074 +esac
28075 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28076 + (eval "$ac_compiler -v >&5") 2>&5
28077 ac_status=$?
28078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28079 (exit $ac_status); }
28080 -{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
28081 - (eval $ac_compiler -V </dev/null >&5) 2>&5
28082 +{ (ac_try="$ac_compiler -V >&5"
28083 +case "(($ac_try" in
28084 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28085 + *) ac_try_echo=$ac_try;;
28086 +esac
28087 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28088 + (eval "$ac_compiler -V >&5") 2>&5
28089 ac_status=$?
28090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28091 (exit $ac_status); }
28092 @@ -1781,47 +2326,77 @@ ac_clean_files="$ac_clean_files a.out a.
28093 # Try to create an executable without -o first, disregard a.out.
28094 # It will help us diagnose broken compilers, and finding out an intuition
28095 # of exeext.
28096 -echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
28097 -echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
28098 +{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
28099 +echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
28100 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
28101 -if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
28102 - (eval $ac_link_default) 2>&5
28103 +#
28104 +# List of possible output files, starting from the most likely.
28105 +# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
28106 +# only as a last resort. b.out is created by i960 compilers.
28107 +ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
28108 +#
28109 +# The IRIX 6 linker writes into existing files which may not be
28110 +# executable, retaining their permissions. Remove them first so a
28111 +# subsequent execution test works.
28112 +ac_rmfiles=
28113 +for ac_file in $ac_files
28114 +do
28115 + case $ac_file in
28116 + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
28117 + * ) ac_rmfiles="$ac_rmfiles $ac_file";;
28118 + esac
28119 +done
28120 +rm -f $ac_rmfiles
28121 +
28122 +if { (ac_try="$ac_link_default"
28123 +case "(($ac_try" in
28124 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28125 + *) ac_try_echo=$ac_try;;
28126 +esac
28127 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28128 + (eval "$ac_link_default") 2>&5
28129 ac_status=$?
28130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28131 (exit $ac_status); }; then
28132 - # Find the output, starting from the most likely. This scheme is
28133 -# not robust to junk in `.', hence go to wildcards (a.*) only as a last
28134 -# resort.
28135 -
28136 -# Be careful to initialize this variable, since it used to be cached.
28137 -# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
28138 -ac_cv_exeext=
28139 -# b.out is created by i960 compilers.
28140 -for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
28141 + # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
28142 +# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
28143 +# in a Makefile. We should not override ac_cv_exeext if it was cached,
28144 +# so that the user can short-circuit this test for compilers unknown to
28145 +# Autoconf.
28146 +for ac_file in $ac_files ''
28147 do
28148 test -f "$ac_file" || continue
28149 case $ac_file in
28150 - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
28151 - ;;
28152 - conftest.$ac_ext )
28153 - # This is the source file.
28154 + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
28155 ;;
28156 [ab].out )
28157 # We found the default executable, but exeext='' is most
28158 # certainly right.
28159 break;;
28160 *.* )
28161 - ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
28162 - # FIXME: I believe we export ac_cv_exeext for Libtool,
28163 - # but it would be cool to find out if it's true. Does anybody
28164 - # maintain Libtool? --akim.
28165 - export ac_cv_exeext
28166 + if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
28167 + then :; else
28168 + ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
28169 + fi
28170 + # We set ac_cv_exeext here because the later test for it is not
28171 + # safe: cross compilers may not add the suffix if given an `-o'
28172 + # argument, so we may need to know it at that point already.
28173 + # Even if this section looks crufty: it has the advantage of
28174 + # actually working.
28175 break;;
28176 * )
28177 break;;
28178 esac
28179 done
28180 +test "$ac_cv_exeext" = no && ac_cv_exeext=
28181 +
28182 else
28183 + ac_file=''
28184 +fi
28185 +
28186 +{ echo "$as_me:$LINENO: result: $ac_file" >&5
28187 +echo "${ECHO_T}$ac_file" >&6; }
28188 +if test -z "$ac_file"; then
28189 echo "$as_me: failed program was:" >&5
28190 sed 's/^/| /' conftest.$ac_ext >&5
28191
28192 @@ -1833,19 +2408,21 @@ See \`config.log' for more details." >&2
28193 fi
28194
28195 ac_exeext=$ac_cv_exeext
28196 -echo "$as_me:$LINENO: result: $ac_file" >&5
28197 -echo "${ECHO_T}$ac_file" >&6
28198
28199 -# Check the compiler produces executables we can run. If not, either
28200 +# Check that the compiler produces executables we can run. If not, either
28201 # the compiler is broken, or we cross compile.
28202 -echo "$as_me:$LINENO: checking whether the C compiler works" >&5
28203 -echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
28204 +{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
28205 +echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
28206 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
28207 # If not cross compiling, check that we can run a simple program.
28208 if test "$cross_compiling" != yes; then
28209 if { ac_try='./$ac_file'
28210 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28211 - (eval $ac_try) 2>&5
28212 + { (case "(($ac_try" in
28213 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28214 + *) ac_try_echo=$ac_try;;
28215 +esac
28216 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28217 + (eval "$ac_try") 2>&5
28218 ac_status=$?
28219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28220 (exit $ac_status); }; }; then
28221 @@ -1864,22 +2441,27 @@ See \`config.log' for more details." >&2
28222 fi
28223 fi
28224 fi
28225 -echo "$as_me:$LINENO: result: yes" >&5
28226 -echo "${ECHO_T}yes" >&6
28227 +{ echo "$as_me:$LINENO: result: yes" >&5
28228 +echo "${ECHO_T}yes" >&6; }
28229
28230 rm -f a.out a.exe conftest$ac_cv_exeext b.out
28231 ac_clean_files=$ac_clean_files_save
28232 -# Check the compiler produces executables we can run. If not, either
28233 +# Check that the compiler produces executables we can run. If not, either
28234 # the compiler is broken, or we cross compile.
28235 -echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
28236 -echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
28237 -echo "$as_me:$LINENO: result: $cross_compiling" >&5
28238 -echo "${ECHO_T}$cross_compiling" >&6
28239 -
28240 -echo "$as_me:$LINENO: checking for suffix of executables" >&5
28241 -echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
28242 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28243 - (eval $ac_link) 2>&5
28244 +{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
28245 +echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
28246 +{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
28247 +echo "${ECHO_T}$cross_compiling" >&6; }
28248 +
28249 +{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
28250 +echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
28251 +if { (ac_try="$ac_link"
28252 +case "(($ac_try" in
28253 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28254 + *) ac_try_echo=$ac_try;;
28255 +esac
28256 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28257 + (eval "$ac_link") 2>&5
28258 ac_status=$?
28259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28260 (exit $ac_status); }; then
28261 @@ -1890,9 +2472,8 @@ if { (eval echo "$as_me:$LINENO: \"$ac_l
28262 for ac_file in conftest.exe conftest conftest.*; do
28263 test -f "$ac_file" || continue
28264 case $ac_file in
28265 - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
28266 + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
28267 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
28268 - export ac_cv_exeext
28269 break;;
28270 * ) break;;
28271 esac
28272 @@ -1906,14 +2487,14 @@ See \`config.log' for more details." >&2
28273 fi
28274
28275 rm -f conftest$ac_cv_exeext
28276 -echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
28277 -echo "${ECHO_T}$ac_cv_exeext" >&6
28278 +{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
28279 +echo "${ECHO_T}$ac_cv_exeext" >&6; }
28280
28281 rm -f conftest.$ac_ext
28282 EXEEXT=$ac_cv_exeext
28283 ac_exeext=$EXEEXT
28284 -echo "$as_me:$LINENO: checking for suffix of object files" >&5
28285 -echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
28286 +{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
28287 +echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
28288 if test "${ac_cv_objext+set}" = set; then
28289 echo $ECHO_N "(cached) $ECHO_C" >&6
28290 else
28291 @@ -1933,14 +2514,20 @@ main ()
28292 }
28293 _ACEOF
28294 rm -f conftest.o conftest.obj
28295 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28296 - (eval $ac_compile) 2>&5
28297 +if { (ac_try="$ac_compile"
28298 +case "(($ac_try" in
28299 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28300 + *) ac_try_echo=$ac_try;;
28301 +esac
28302 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28303 + (eval "$ac_compile") 2>&5
28304 ac_status=$?
28305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28306 (exit $ac_status); }; then
28307 - for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
28308 + for ac_file in conftest.o conftest.obj conftest.*; do
28309 + test -f "$ac_file" || continue;
28310 case $ac_file in
28311 - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
28312 + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
28313 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
28314 break;;
28315 esac
28316 @@ -1958,12 +2545,12 @@ fi
28317
28318 rm -f conftest.$ac_cv_objext conftest.$ac_ext
28319 fi
28320 -echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
28321 -echo "${ECHO_T}$ac_cv_objext" >&6
28322 +{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
28323 +echo "${ECHO_T}$ac_cv_objext" >&6; }
28324 OBJEXT=$ac_cv_objext
28325 ac_objext=$OBJEXT
28326 -echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
28327 -echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
28328 +{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
28329 +echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
28330 if test "${ac_cv_c_compiler_gnu+set}" = set; then
28331 echo $ECHO_N "(cached) $ECHO_C" >&6
28332 else
28333 @@ -1986,50 +2573,49 @@ main ()
28334 }
28335 _ACEOF
28336 rm -f conftest.$ac_objext
28337 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28338 - (eval $ac_compile) 2>conftest.er1
28339 +if { (ac_try="$ac_compile"
28340 +case "(($ac_try" in
28341 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28342 + *) ac_try_echo=$ac_try;;
28343 +esac
28344 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28345 + (eval "$ac_compile") 2>conftest.er1
28346 ac_status=$?
28347 grep -v '^ *+' conftest.er1 >conftest.err
28348 rm -f conftest.er1
28349 cat conftest.err >&5
28350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28351 - (exit $ac_status); } &&
28352 - { ac_try='test -z "$ac_c_werror_flag"
28353 - || test ! -s conftest.err'
28354 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28355 - (eval $ac_try) 2>&5
28356 - ac_status=$?
28357 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
28358 - (exit $ac_status); }; } &&
28359 - { ac_try='test -s conftest.$ac_objext'
28360 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28361 - (eval $ac_try) 2>&5
28362 - ac_status=$?
28363 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
28364 - (exit $ac_status); }; }; then
28365 + (exit $ac_status); } && {
28366 + test -z "$ac_c_werror_flag" ||
28367 + test ! -s conftest.err
28368 + } && test -s conftest.$ac_objext; then
28369 ac_compiler_gnu=yes
28370 else
28371 echo "$as_me: failed program was:" >&5
28372 sed 's/^/| /' conftest.$ac_ext >&5
28373
28374 -ac_compiler_gnu=no
28375 + ac_compiler_gnu=no
28376 fi
28377 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28378 +
28379 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28380 ac_cv_c_compiler_gnu=$ac_compiler_gnu
28381
28382 fi
28383 -echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
28384 -echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
28385 +{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
28386 +echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
28387 GCC=`test $ac_compiler_gnu = yes && echo yes`
28388 ac_test_CFLAGS=${CFLAGS+set}
28389 ac_save_CFLAGS=$CFLAGS
28390 -CFLAGS="-g"
28391 -echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
28392 -echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
28393 +{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
28394 +echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
28395 if test "${ac_cv_prog_cc_g+set}" = set; then
28396 echo $ECHO_N "(cached) $ECHO_C" >&6
28397 else
28398 - cat >conftest.$ac_ext <<_ACEOF
28399 + ac_save_c_werror_flag=$ac_c_werror_flag
28400 + ac_c_werror_flag=yes
28401 + ac_cv_prog_cc_g=no
28402 + CFLAGS="-g"
28403 + cat >conftest.$ac_ext <<_ACEOF
28404 /* confdefs.h. */
28405 _ACEOF
28406 cat confdefs.h >>conftest.$ac_ext
28407 @@ -2045,38 +2631,118 @@ main ()
28408 }
28409 _ACEOF
28410 rm -f conftest.$ac_objext
28411 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28412 - (eval $ac_compile) 2>conftest.er1
28413 +if { (ac_try="$ac_compile"
28414 +case "(($ac_try" in
28415 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28416 + *) ac_try_echo=$ac_try;;
28417 +esac
28418 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28419 + (eval "$ac_compile") 2>conftest.er1
28420 ac_status=$?
28421 grep -v '^ *+' conftest.er1 >conftest.err
28422 rm -f conftest.er1
28423 cat conftest.err >&5
28424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28425 - (exit $ac_status); } &&
28426 - { ac_try='test -z "$ac_c_werror_flag"
28427 - || test ! -s conftest.err'
28428 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28429 - (eval $ac_try) 2>&5
28430 + (exit $ac_status); } && {
28431 + test -z "$ac_c_werror_flag" ||
28432 + test ! -s conftest.err
28433 + } && test -s conftest.$ac_objext; then
28434 + ac_cv_prog_cc_g=yes
28435 +else
28436 + echo "$as_me: failed program was:" >&5
28437 +sed 's/^/| /' conftest.$ac_ext >&5
28438 +
28439 + CFLAGS=""
28440 + cat >conftest.$ac_ext <<_ACEOF
28441 +/* confdefs.h. */
28442 +_ACEOF
28443 +cat confdefs.h >>conftest.$ac_ext
28444 +cat >>conftest.$ac_ext <<_ACEOF
28445 +/* end confdefs.h. */
28446 +
28447 +int
28448 +main ()
28449 +{
28450 +
28451 + ;
28452 + return 0;
28453 +}
28454 +_ACEOF
28455 +rm -f conftest.$ac_objext
28456 +if { (ac_try="$ac_compile"
28457 +case "(($ac_try" in
28458 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28459 + *) ac_try_echo=$ac_try;;
28460 +esac
28461 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28462 + (eval "$ac_compile") 2>conftest.er1
28463 ac_status=$?
28464 + grep -v '^ *+' conftest.er1 >conftest.err
28465 + rm -f conftest.er1
28466 + cat conftest.err >&5
28467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28468 - (exit $ac_status); }; } &&
28469 - { ac_try='test -s conftest.$ac_objext'
28470 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28471 - (eval $ac_try) 2>&5
28472 + (exit $ac_status); } && {
28473 + test -z "$ac_c_werror_flag" ||
28474 + test ! -s conftest.err
28475 + } && test -s conftest.$ac_objext; then
28476 + :
28477 +else
28478 + echo "$as_me: failed program was:" >&5
28479 +sed 's/^/| /' conftest.$ac_ext >&5
28480 +
28481 + ac_c_werror_flag=$ac_save_c_werror_flag
28482 + CFLAGS="-g"
28483 + cat >conftest.$ac_ext <<_ACEOF
28484 +/* confdefs.h. */
28485 +_ACEOF
28486 +cat confdefs.h >>conftest.$ac_ext
28487 +cat >>conftest.$ac_ext <<_ACEOF
28488 +/* end confdefs.h. */
28489 +
28490 +int
28491 +main ()
28492 +{
28493 +
28494 + ;
28495 + return 0;
28496 +}
28497 +_ACEOF
28498 +rm -f conftest.$ac_objext
28499 +if { (ac_try="$ac_compile"
28500 +case "(($ac_try" in
28501 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28502 + *) ac_try_echo=$ac_try;;
28503 +esac
28504 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28505 + (eval "$ac_compile") 2>conftest.er1
28506 ac_status=$?
28507 + grep -v '^ *+' conftest.er1 >conftest.err
28508 + rm -f conftest.er1
28509 + cat conftest.err >&5
28510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28511 - (exit $ac_status); }; }; then
28512 + (exit $ac_status); } && {
28513 + test -z "$ac_c_werror_flag" ||
28514 + test ! -s conftest.err
28515 + } && test -s conftest.$ac_objext; then
28516 ac_cv_prog_cc_g=yes
28517 else
28518 echo "$as_me: failed program was:" >&5
28519 sed 's/^/| /' conftest.$ac_ext >&5
28520
28521 -ac_cv_prog_cc_g=no
28522 +
28523 +fi
28524 +
28525 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28526 +fi
28527 +
28528 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28529 fi
28530 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28531 +
28532 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28533 + ac_c_werror_flag=$ac_save_c_werror_flag
28534 fi
28535 -echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
28536 -echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
28537 +{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
28538 +echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
28539 if test "$ac_test_CFLAGS" = set; then
28540 CFLAGS=$ac_save_CFLAGS
28541 elif test $ac_cv_prog_cc_g = yes; then
28542 @@ -2092,12 +2758,12 @@ else
28543 CFLAGS=
28544 fi
28545 fi
28546 -echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
28547 -echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
28548 -if test "${ac_cv_prog_cc_stdc+set}" = set; then
28549 +{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
28550 +echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
28551 +if test "${ac_cv_prog_cc_c89+set}" = set; then
28552 echo $ECHO_N "(cached) $ECHO_C" >&6
28553 else
28554 - ac_cv_prog_cc_stdc=no
28555 + ac_cv_prog_cc_c89=no
28556 ac_save_CC=$CC
28557 cat >conftest.$ac_ext <<_ACEOF
28558 /* confdefs.h. */
28559 @@ -2131,12 +2797,17 @@ static char *f (char * (*g) (char **, in
28560 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
28561 function prototypes and stuff, but not '\xHH' hex character constants.
28562 These don't provoke an error unfortunately, instead are silently treated
28563 - as 'x'. The following induces an error, until -std1 is added to get
28564 + as 'x'. The following induces an error, until -std is added to get
28565 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
28566 array size at least. It's necessary to write '\x00'==0 to get something
28567 - that's true only with -std1. */
28568 + that's true only with -std. */
28569 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
28570
28571 +/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
28572 + inside strings and character constants. */
28573 +#define FOO(x) 'x'
28574 +int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
28575 +
28576 int test (int i, double x);
28577 struct s1 {int (*f) (int a);};
28578 struct s2 {int (*f) (double a);};
28579 @@ -2151,335 +2822,144 @@ return f (e, argv, 0) != argv[0] || f
28580 return 0;
28581 }
28582 _ACEOF
28583 -# Don't try gcc -ansi; that turns off useful extensions and
28584 -# breaks some systems' header files.
28585 -# AIX -qlanglvl=ansi
28586 -# Ultrix and OSF/1 -std1
28587 -# HP-UX 10.20 and later -Ae
28588 -# HP-UX older versions -Aa -D_HPUX_SOURCE
28589 -# SVR4 -Xc -D__EXTENSIONS__
28590 -for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
28591 +for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
28592 + -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
28593 do
28594 CC="$ac_save_CC $ac_arg"
28595 rm -f conftest.$ac_objext
28596 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28597 - (eval $ac_compile) 2>conftest.er1
28598 +if { (ac_try="$ac_compile"
28599 +case "(($ac_try" in
28600 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28601 + *) ac_try_echo=$ac_try;;
28602 +esac
28603 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28604 + (eval "$ac_compile") 2>conftest.er1
28605 ac_status=$?
28606 grep -v '^ *+' conftest.er1 >conftest.err
28607 rm -f conftest.er1
28608 cat conftest.err >&5
28609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28610 - (exit $ac_status); } &&
28611 - { ac_try='test -z "$ac_c_werror_flag"
28612 - || test ! -s conftest.err'
28613 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28614 - (eval $ac_try) 2>&5
28615 - ac_status=$?
28616 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
28617 - (exit $ac_status); }; } &&
28618 - { ac_try='test -s conftest.$ac_objext'
28619 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28620 - (eval $ac_try) 2>&5
28621 - ac_status=$?
28622 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
28623 - (exit $ac_status); }; }; then
28624 - ac_cv_prog_cc_stdc=$ac_arg
28625 -break
28626 + (exit $ac_status); } && {
28627 + test -z "$ac_c_werror_flag" ||
28628 + test ! -s conftest.err
28629 + } && test -s conftest.$ac_objext; then
28630 + ac_cv_prog_cc_c89=$ac_arg
28631 else
28632 echo "$as_me: failed program was:" >&5
28633 sed 's/^/| /' conftest.$ac_ext >&5
28634
28635 +
28636 fi
28637 -rm -f conftest.err conftest.$ac_objext
28638 +
28639 +rm -f core conftest.err conftest.$ac_objext
28640 + test "x$ac_cv_prog_cc_c89" != "xno" && break
28641 done
28642 -rm -f conftest.$ac_ext conftest.$ac_objext
28643 +rm -f conftest.$ac_ext
28644 CC=$ac_save_CC
28645
28646 fi
28647 -
28648 -case "x$ac_cv_prog_cc_stdc" in
28649 - x|xno)
28650 - echo "$as_me:$LINENO: result: none needed" >&5
28651 -echo "${ECHO_T}none needed" >&6 ;;
28652 +# AC_CACHE_VAL
28653 +case "x$ac_cv_prog_cc_c89" in
28654 + x)
28655 + { echo "$as_me:$LINENO: result: none needed" >&5
28656 +echo "${ECHO_T}none needed" >&6; } ;;
28657 + xno)
28658 + { echo "$as_me:$LINENO: result: unsupported" >&5
28659 +echo "${ECHO_T}unsupported" >&6; } ;;
28660 *)
28661 - echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
28662 -echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
28663 - CC="$CC $ac_cv_prog_cc_stdc" ;;
28664 + CC="$CC $ac_cv_prog_cc_c89"
28665 + { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
28666 +echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
28667 esac
28668
28669 -# Some people use a C++ compiler to compile C. Since we use `exit',
28670 -# in C++ we need to declare it. In case someone uses the same compiler
28671 -# for both compiling C and C++ we need to have the C++ compiler decide
28672 -# the declaration of exit, since it's the most demanding environment.
28673 +
28674 +ac_ext=c
28675 +ac_cpp='$CPP $CPPFLAGS'
28676 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28677 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28678 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
28679 +
28680 +
28681 +{ echo "$as_me:$LINENO: checking for library containing strerror" >&5
28682 +echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; }
28683 +if test "${ac_cv_search_strerror+set}" = set; then
28684 + echo $ECHO_N "(cached) $ECHO_C" >&6
28685 +else
28686 + ac_func_search_save_LIBS=$LIBS
28687 cat >conftest.$ac_ext <<_ACEOF
28688 -#ifndef __cplusplus
28689 - choke me
28690 -#endif
28691 -_ACEOF
28692 -rm -f conftest.$ac_objext
28693 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28694 - (eval $ac_compile) 2>conftest.er1
28695 - ac_status=$?
28696 - grep -v '^ *+' conftest.er1 >conftest.err
28697 - rm -f conftest.er1
28698 - cat conftest.err >&5
28699 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
28700 - (exit $ac_status); } &&
28701 - { ac_try='test -z "$ac_c_werror_flag"
28702 - || test ! -s conftest.err'
28703 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28704 - (eval $ac_try) 2>&5
28705 - ac_status=$?
28706 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
28707 - (exit $ac_status); }; } &&
28708 - { ac_try='test -s conftest.$ac_objext'
28709 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28710 - (eval $ac_try) 2>&5
28711 - ac_status=$?
28712 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
28713 - (exit $ac_status); }; }; then
28714 - for ac_declaration in \
28715 - '' \
28716 - 'extern "C" void std::exit (int) throw (); using std::exit;' \
28717 - 'extern "C" void std::exit (int); using std::exit;' \
28718 - 'extern "C" void exit (int) throw ();' \
28719 - 'extern "C" void exit (int);' \
28720 - 'void exit (int);'
28721 -do
28722 - cat >conftest.$ac_ext <<_ACEOF
28723 /* confdefs.h. */
28724 _ACEOF
28725 cat confdefs.h >>conftest.$ac_ext
28726 cat >>conftest.$ac_ext <<_ACEOF
28727 /* end confdefs.h. */
28728 -$ac_declaration
28729 -#include <stdlib.h>
28730 +
28731 +/* Override any GCC internal prototype to avoid an error.
28732 + Use char because int might match the return type of a GCC
28733 + builtin and then its argument prototype would still apply. */
28734 +#ifdef __cplusplus
28735 +extern "C"
28736 +#endif
28737 +char strerror ();
28738 int
28739 main ()
28740 {
28741 -exit (42);
28742 +return strerror ();
28743 ;
28744 return 0;
28745 }
28746 _ACEOF
28747 -rm -f conftest.$ac_objext
28748 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28749 - (eval $ac_compile) 2>conftest.er1
28750 +for ac_lib in '' cposix; do
28751 + if test -z "$ac_lib"; then
28752 + ac_res="none required"
28753 + else
28754 + ac_res=-l$ac_lib
28755 + LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28756 + fi
28757 + rm -f conftest.$ac_objext conftest$ac_exeext
28758 +if { (ac_try="$ac_link"
28759 +case "(($ac_try" in
28760 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28761 + *) ac_try_echo=$ac_try;;
28762 +esac
28763 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28764 + (eval "$ac_link") 2>conftest.er1
28765 ac_status=$?
28766 grep -v '^ *+' conftest.er1 >conftest.err
28767 rm -f conftest.er1
28768 cat conftest.err >&5
28769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28770 - (exit $ac_status); } &&
28771 - { ac_try='test -z "$ac_c_werror_flag"
28772 - || test ! -s conftest.err'
28773 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28774 - (eval $ac_try) 2>&5
28775 - ac_status=$?
28776 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
28777 - (exit $ac_status); }; } &&
28778 - { ac_try='test -s conftest.$ac_objext'
28779 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28780 - (eval $ac_try) 2>&5
28781 - ac_status=$?
28782 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
28783 - (exit $ac_status); }; }; then
28784 - :
28785 + (exit $ac_status); } && {
28786 + test -z "$ac_c_werror_flag" ||
28787 + test ! -s conftest.err
28788 + } && test -s conftest$ac_exeext &&
28789 + $as_test_x conftest$ac_exeext; then
28790 + ac_cv_search_strerror=$ac_res
28791 else
28792 echo "$as_me: failed program was:" >&5
28793 sed 's/^/| /' conftest.$ac_ext >&5
28794
28795 -continue
28796 -fi
28797 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28798 - cat >conftest.$ac_ext <<_ACEOF
28799 -/* confdefs.h. */
28800 -_ACEOF
28801 -cat confdefs.h >>conftest.$ac_ext
28802 -cat >>conftest.$ac_ext <<_ACEOF
28803 -/* end confdefs.h. */
28804 -$ac_declaration
28805 -int
28806 -main ()
28807 -{
28808 -exit (42);
28809 - ;
28810 - return 0;
28811 -}
28812 -_ACEOF
28813 -rm -f conftest.$ac_objext
28814 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28815 - (eval $ac_compile) 2>conftest.er1
28816 - ac_status=$?
28817 - grep -v '^ *+' conftest.er1 >conftest.err
28818 - rm -f conftest.er1
28819 - cat conftest.err >&5
28820 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
28821 - (exit $ac_status); } &&
28822 - { ac_try='test -z "$ac_c_werror_flag"
28823 - || test ! -s conftest.err'
28824 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28825 - (eval $ac_try) 2>&5
28826 - ac_status=$?
28827 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
28828 - (exit $ac_status); }; } &&
28829 - { ac_try='test -s conftest.$ac_objext'
28830 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28831 - (eval $ac_try) 2>&5
28832 - ac_status=$?
28833 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
28834 - (exit $ac_status); }; }; then
28835 - break
28836 -else
28837 - echo "$as_me: failed program was:" >&5
28838 -sed 's/^/| /' conftest.$ac_ext >&5
28839
28840 fi
28841 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28842 -done
28843 -rm -f conftest*
28844 -if test -n "$ac_declaration"; then
28845 - echo '#ifdef __cplusplus' >>confdefs.h
28846 - echo $ac_declaration >>confdefs.h
28847 - echo '#endif' >>confdefs.h
28848 -fi
28849 -
28850 -else
28851 - echo "$as_me: failed program was:" >&5
28852 -sed 's/^/| /' conftest.$ac_ext >&5
28853
28854 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28855 + conftest$ac_exeext
28856 + if test "${ac_cv_search_strerror+set}" = set; then
28857 + break
28858 fi
28859 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28860 -ac_ext=c
28861 -ac_cpp='$CPP $CPPFLAGS'
28862 -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28863 -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28864 -ac_compiler_gnu=$ac_cv_c_compiler_gnu
28865 -
28866 -
28867 -echo "$as_me:$LINENO: checking for library containing strerror" >&5
28868 -echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
28869 +done
28870 if test "${ac_cv_search_strerror+set}" = set; then
28871 - echo $ECHO_N "(cached) $ECHO_C" >&6
28872 -else
28873 - ac_func_search_save_LIBS=$LIBS
28874 -ac_cv_search_strerror=no
28875 -cat >conftest.$ac_ext <<_ACEOF
28876 -/* confdefs.h. */
28877 -_ACEOF
28878 -cat confdefs.h >>conftest.$ac_ext
28879 -cat >>conftest.$ac_ext <<_ACEOF
28880 -/* end confdefs.h. */
28881 -
28882 -/* Override any gcc2 internal prototype to avoid an error. */
28883 -#ifdef __cplusplus
28884 -extern "C"
28885 -#endif
28886 -/* We use char because int might match the return type of a gcc2
28887 - builtin and then its argument prototype would still apply. */
28888 -char strerror ();
28889 -int
28890 -main ()
28891 -{
28892 -strerror ();
28893 - ;
28894 - return 0;
28895 -}
28896 -_ACEOF
28897 -rm -f conftest.$ac_objext conftest$ac_exeext
28898 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28899 - (eval $ac_link) 2>conftest.er1
28900 - ac_status=$?
28901 - grep -v '^ *+' conftest.er1 >conftest.err
28902 - rm -f conftest.er1
28903 - cat conftest.err >&5
28904 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
28905 - (exit $ac_status); } &&
28906 - { ac_try='test -z "$ac_c_werror_flag"
28907 - || test ! -s conftest.err'
28908 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28909 - (eval $ac_try) 2>&5
28910 - ac_status=$?
28911 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
28912 - (exit $ac_status); }; } &&
28913 - { ac_try='test -s conftest$ac_exeext'
28914 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28915 - (eval $ac_try) 2>&5
28916 - ac_status=$?
28917 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
28918 - (exit $ac_status); }; }; then
28919 - ac_cv_search_strerror="none required"
28920 -else
28921 - echo "$as_me: failed program was:" >&5
28922 -sed 's/^/| /' conftest.$ac_ext >&5
28923 -
28924 -fi
28925 -rm -f conftest.err conftest.$ac_objext \
28926 - conftest$ac_exeext conftest.$ac_ext
28927 -if test "$ac_cv_search_strerror" = no; then
28928 - for ac_lib in cposix; do
28929 - LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28930 - cat >conftest.$ac_ext <<_ACEOF
28931 -/* confdefs.h. */
28932 -_ACEOF
28933 -cat confdefs.h >>conftest.$ac_ext
28934 -cat >>conftest.$ac_ext <<_ACEOF
28935 -/* end confdefs.h. */
28936 -
28937 -/* Override any gcc2 internal prototype to avoid an error. */
28938 -#ifdef __cplusplus
28939 -extern "C"
28940 -#endif
28941 -/* We use char because int might match the return type of a gcc2
28942 - builtin and then its argument prototype would still apply. */
28943 -char strerror ();
28944 -int
28945 -main ()
28946 -{
28947 -strerror ();
28948 - ;
28949 - return 0;
28950 -}
28951 -_ACEOF
28952 -rm -f conftest.$ac_objext conftest$ac_exeext
28953 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28954 - (eval $ac_link) 2>conftest.er1
28955 - ac_status=$?
28956 - grep -v '^ *+' conftest.er1 >conftest.err
28957 - rm -f conftest.er1
28958 - cat conftest.err >&5
28959 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
28960 - (exit $ac_status); } &&
28961 - { ac_try='test -z "$ac_c_werror_flag"
28962 - || test ! -s conftest.err'
28963 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28964 - (eval $ac_try) 2>&5
28965 - ac_status=$?
28966 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
28967 - (exit $ac_status); }; } &&
28968 - { ac_try='test -s conftest$ac_exeext'
28969 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28970 - (eval $ac_try) 2>&5
28971 - ac_status=$?
28972 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
28973 - (exit $ac_status); }; }; then
28974 - ac_cv_search_strerror="-l$ac_lib"
28975 -break
28976 + :
28977 else
28978 - echo "$as_me: failed program was:" >&5
28979 -sed 's/^/| /' conftest.$ac_ext >&5
28980 -
28981 -fi
28982 -rm -f conftest.err conftest.$ac_objext \
28983 - conftest$ac_exeext conftest.$ac_ext
28984 - done
28985 + ac_cv_search_strerror=no
28986 fi
28987 +rm conftest.$ac_ext
28988 LIBS=$ac_func_search_save_LIBS
28989 fi
28990 -echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
28991 -echo "${ECHO_T}$ac_cv_search_strerror" >&6
28992 -if test "$ac_cv_search_strerror" != no; then
28993 - test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
28994 +{ echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
28995 +echo "${ECHO_T}$ac_cv_search_strerror" >&6; }
28996 +ac_res=$ac_cv_search_strerror
28997 +if test "$ac_res" != no; then
28998 + test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28999
29000 fi
29001
29002 @@ -2499,8 +2979,8 @@ am__api_version="1.9"
29003 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
29004 # OS/2's system install, which has a completely different semantic
29005 # ./install, which can be erroneously created by make from ./install.sh.
29006 -echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
29007 -echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
29008 +{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
29009 +echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
29010 if test -z "$INSTALL"; then
29011 if test "${ac_cv_path_install+set}" = set; then
29012 echo $ECHO_N "(cached) $ECHO_C" >&6
29013 @@ -2522,7 +3002,7 @@ case $as_dir/ in
29014 # by default.
29015 for ac_prog in ginstall scoinst install; do
29016 for ac_exec_ext in '' $ac_executable_extensions; do
29017 - if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
29018 + if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
29019 if test $ac_prog = install &&
29020 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
29021 # AIX install. It has an incompatible calling convention.
29022 @@ -2541,21 +3021,22 @@ case $as_dir/ in
29023 ;;
29024 esac
29025 done
29026 +IFS=$as_save_IFS
29027
29028
29029 fi
29030 if test "${ac_cv_path_install+set}" = set; then
29031 INSTALL=$ac_cv_path_install
29032 else
29033 - # As a last resort, use the slow shell script. We don't cache a
29034 - # path for INSTALL within a source directory, because that will
29035 + # As a last resort, use the slow shell script. Don't cache a
29036 + # value for INSTALL within a source directory, because that will
29037 # break other packages using the cache if that directory is
29038 - # removed, or if the path is relative.
29039 + # removed, or if the value is a relative name.
29040 INSTALL=$ac_install_sh
29041 fi
29042 fi
29043 -echo "$as_me:$LINENO: result: $INSTALL" >&5
29044 -echo "${ECHO_T}$INSTALL" >&6
29045 +{ echo "$as_me:$LINENO: result: $INSTALL" >&5
29046 +echo "${ECHO_T}$INSTALL" >&6; }
29047
29048 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
29049 # It thinks the first close brace ends the variable substitution.
29050 @@ -2565,8 +3046,8 @@ test -z "$INSTALL_SCRIPT" && INSTALL_SCR
29051
29052 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
29053
29054 -echo "$as_me:$LINENO: checking whether build environment is sane" >&5
29055 -echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
29056 +{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5
29057 +echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
29058 # Just in case
29059 sleep 1
29060 echo timestamp > conftest.file
29061 @@ -2608,20 +3089,20 @@ echo "$as_me: error: newly created file
29062 Check your system clock" >&2;}
29063 { (exit 1); exit 1; }; }
29064 fi
29065 -echo "$as_me:$LINENO: result: yes" >&5
29066 -echo "${ECHO_T}yes" >&6
29067 +{ echo "$as_me:$LINENO: result: yes" >&5
29068 +echo "${ECHO_T}yes" >&6; }
29069 test "$program_prefix" != NONE &&
29070 - program_transform_name="s,^,$program_prefix,;$program_transform_name"
29071 + program_transform_name="s&^&$program_prefix&;$program_transform_name"
29072 # Use a double $ so make ignores it.
29073 test "$program_suffix" != NONE &&
29074 - program_transform_name="s,\$,$program_suffix,;$program_transform_name"
29075 + program_transform_name="s&\$&$program_suffix&;$program_transform_name"
29076 # Double any \ or $. echo might interpret backslashes.
29077 # By default was `s,x,x', remove it if useless.
29078 cat <<\_ACEOF >conftest.sed
29079 s/[\\$]/&&/g;s/;s,x,x,$//
29080 _ACEOF
29081 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
29082 -rm conftest.sed
29083 +rm -f conftest.sed
29084
29085 # expand $ac_aux_dir to an absolute path
29086 am_aux_dir=`cd $ac_aux_dir && pwd`
29087 @@ -2673,8 +3154,8 @@ for ac_prog in gawk mawk nawk awk
29088 do
29089 # Extract the first word of "$ac_prog", so it can be a program name with args.
29090 set dummy $ac_prog; ac_word=$2
29091 -echo "$as_me:$LINENO: checking for $ac_word" >&5
29092 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
29093 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
29094 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
29095 if test "${ac_cv_prog_AWK+set}" = set; then
29096 echo $ECHO_N "(cached) $ECHO_C" >&6
29097 else
29098 @@ -2687,54 +3168,57 @@ do
29099 IFS=$as_save_IFS
29100 test -z "$as_dir" && as_dir=.
29101 for ac_exec_ext in '' $ac_executable_extensions; do
29102 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29103 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29104 ac_cv_prog_AWK="$ac_prog"
29105 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29106 break 2
29107 fi
29108 done
29109 done
29110 +IFS=$as_save_IFS
29111
29112 fi
29113 fi
29114 AWK=$ac_cv_prog_AWK
29115 if test -n "$AWK"; then
29116 - echo "$as_me:$LINENO: result: $AWK" >&5
29117 -echo "${ECHO_T}$AWK" >&6
29118 + { echo "$as_me:$LINENO: result: $AWK" >&5
29119 +echo "${ECHO_T}$AWK" >&6; }
29120 else
29121 - echo "$as_me:$LINENO: result: no" >&5
29122 -echo "${ECHO_T}no" >&6
29123 + { echo "$as_me:$LINENO: result: no" >&5
29124 +echo "${ECHO_T}no" >&6; }
29125 fi
29126
29127 +
29128 test -n "$AWK" && break
29129 done
29130
29131 -echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
29132 -echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
29133 -set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
29134 -if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
29135 +{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
29136 +echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
29137 +set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
29138 +if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
29139 echo $ECHO_N "(cached) $ECHO_C" >&6
29140 else
29141 cat >conftest.make <<\_ACEOF
29142 +SHELL = /bin/sh
29143 all:
29144 - @echo 'ac_maketemp="$(MAKE)"'
29145 + @echo '@@@%%%=$(MAKE)=@@@%%%'
29146 _ACEOF
29147 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
29148 -eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
29149 -if test -n "$ac_maketemp"; then
29150 - eval ac_cv_prog_make_${ac_make}_set=yes
29151 -else
29152 - eval ac_cv_prog_make_${ac_make}_set=no
29153 -fi
29154 +case `${MAKE-make} -f conftest.make 2>/dev/null` in
29155 + *@@@%%%=?*=@@@%%%*)
29156 + eval ac_cv_prog_make_${ac_make}_set=yes;;
29157 + *)
29158 + eval ac_cv_prog_make_${ac_make}_set=no;;
29159 +esac
29160 rm -f conftest.make
29161 fi
29162 -if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
29163 - echo "$as_me:$LINENO: result: yes" >&5
29164 -echo "${ECHO_T}yes" >&6
29165 +if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
29166 + { echo "$as_me:$LINENO: result: yes" >&5
29167 +echo "${ECHO_T}yes" >&6; }
29168 SET_MAKE=
29169 else
29170 - echo "$as_me:$LINENO: result: no" >&5
29171 -echo "${ECHO_T}no" >&6
29172 + { echo "$as_me:$LINENO: result: no" >&5
29173 +echo "${ECHO_T}no" >&6; }
29174 SET_MAKE="MAKE=${MAKE-make}"
29175 fi
29176
29177 @@ -2749,7 +3233,7 @@ rmdir .tst 2>/dev/null
29178
29179 DEPDIR="${am__leading_dot}deps"
29180
29181 - ac_config_commands="$ac_config_commands depfiles"
29182 +ac_config_commands="$ac_config_commands depfiles"
29183
29184
29185 am_make=${MAKE-make}
29186 @@ -2759,8 +3243,8 @@ am__doit:
29187 .PHONY: am__doit
29188 END
29189 # If we don't find an include directive, just comment out the code.
29190 -echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
29191 -echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
29192 +{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
29193 +echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
29194 am__include="#"
29195 am__quote=
29196 _am_result=none
29197 @@ -2787,15 +3271,15 @@ if test "$am__include" = "#"; then
29198 fi
29199
29200
29201 -echo "$as_me:$LINENO: result: $_am_result" >&5
29202 -echo "${ECHO_T}$_am_result" >&6
29203 +{ echo "$as_me:$LINENO: result: $_am_result" >&5
29204 +echo "${ECHO_T}$_am_result" >&6; }
29205 rm -f confinc confmf
29206
29207 -# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
29208 +# Check whether --enable-dependency-tracking was given.
29209 if test "${enable_dependency_tracking+set}" = set; then
29210 - enableval="$enable_dependency_tracking"
29211 + enableval=$enable_dependency_tracking;
29212 +fi
29213
29214 -fi;
29215 if test "x$enable_dependency_tracking" != xno; then
29216 am_depcomp="$ac_aux_dir/depcomp"
29217 AMDEPBACKSLASH='\'
29218 @@ -2870,8 +3354,8 @@ if test "$cross_compiling" != no; then
29219 if test -n "$ac_tool_prefix"; then
29220 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
29221 set dummy ${ac_tool_prefix}strip; ac_word=$2
29222 -echo "$as_me:$LINENO: checking for $ac_word" >&5
29223 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
29224 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
29225 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
29226 if test "${ac_cv_prog_STRIP+set}" = set; then
29227 echo $ECHO_N "(cached) $ECHO_C" >&6
29228 else
29229 @@ -2884,32 +3368,34 @@ do
29230 IFS=$as_save_IFS
29231 test -z "$as_dir" && as_dir=.
29232 for ac_exec_ext in '' $ac_executable_extensions; do
29233 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29234 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29235 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
29236 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29237 break 2
29238 fi
29239 done
29240 done
29241 +IFS=$as_save_IFS
29242
29243 fi
29244 fi
29245 STRIP=$ac_cv_prog_STRIP
29246 if test -n "$STRIP"; then
29247 - echo "$as_me:$LINENO: result: $STRIP" >&5
29248 -echo "${ECHO_T}$STRIP" >&6
29249 + { echo "$as_me:$LINENO: result: $STRIP" >&5
29250 +echo "${ECHO_T}$STRIP" >&6; }
29251 else
29252 - echo "$as_me:$LINENO: result: no" >&5
29253 -echo "${ECHO_T}no" >&6
29254 + { echo "$as_me:$LINENO: result: no" >&5
29255 +echo "${ECHO_T}no" >&6; }
29256 fi
29257
29258 +
29259 fi
29260 if test -z "$ac_cv_prog_STRIP"; then
29261 ac_ct_STRIP=$STRIP
29262 # Extract the first word of "strip", so it can be a program name with args.
29263 set dummy strip; ac_word=$2
29264 -echo "$as_me:$LINENO: checking for $ac_word" >&5
29265 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
29266 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
29267 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
29268 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
29269 echo $ECHO_N "(cached) $ECHO_C" >&6
29270 else
29271 @@ -2922,27 +3408,41 @@ do
29272 IFS=$as_save_IFS
29273 test -z "$as_dir" && as_dir=.
29274 for ac_exec_ext in '' $ac_executable_extensions; do
29275 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29276 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29277 ac_cv_prog_ac_ct_STRIP="strip"
29278 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29279 break 2
29280 fi
29281 done
29282 done
29283 +IFS=$as_save_IFS
29284
29285 - test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
29286 fi
29287 fi
29288 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
29289 if test -n "$ac_ct_STRIP"; then
29290 - echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
29291 -echo "${ECHO_T}$ac_ct_STRIP" >&6
29292 + { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
29293 +echo "${ECHO_T}$ac_ct_STRIP" >&6; }
29294 else
29295 - echo "$as_me:$LINENO: result: no" >&5
29296 -echo "${ECHO_T}no" >&6
29297 + { echo "$as_me:$LINENO: result: no" >&5
29298 +echo "${ECHO_T}no" >&6; }
29299 fi
29300
29301 - STRIP=$ac_ct_STRIP
29302 + if test "x$ac_ct_STRIP" = x; then
29303 + STRIP=":"
29304 + else
29305 + case $cross_compiling:$ac_tool_warned in
29306 +yes:)
29307 +{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
29308 +whose name does not start with the host triplet. If you think this
29309 +configuration is useful to you, please write to autoconf@gnu.org." >&5
29310 +echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
29311 +whose name does not start with the host triplet. If you think this
29312 +configuration is useful to you, please write to autoconf@gnu.org." >&2;}
29313 +ac_tool_warned=yes ;;
29314 +esac
29315 + STRIP=$ac_ct_STRIP
29316 + fi
29317 else
29318 STRIP="$ac_cv_prog_STRIP"
29319 fi
29320 @@ -2963,8 +3463,8 @@ am__tar='${AMTAR} chof - "$$tardir"'; am
29321
29322 depcc="$CC" am_compiler_list=
29323
29324 -echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
29325 -echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
29326 +{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
29327 +echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
29328 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
29329 echo $ECHO_N "(cached) $ECHO_C" >&6
29330 else
29331 @@ -3053,8 +3553,8 @@ else
29332 fi
29333
29334 fi
29335 -echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
29336 -echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
29337 +{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
29338 +echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
29339 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
29340
29341
29342 @@ -3072,10 +3572,9 @@ fi
29343
29344
29345
29346 -# Check whether --enable-shared or --disable-shared was given.
29347 +# Check whether --enable-shared was given.
29348 if test "${enable_shared+set}" = set; then
29349 - enableval="$enable_shared"
29350 - p=${PACKAGE-default}
29351 + enableval=$enable_shared; p=${PACKAGE-default}
29352 case $enableval in
29353 yes) enable_shared=yes ;;
29354 no) enable_shared=no ;;
29355 @@ -3093,11 +3592,11 @@ no) enable_shared=no ;;
29356 esac
29357 else
29358 enable_shared=yes
29359 -fi;
29360 -# Check whether --enable-static or --disable-static was given.
29361 +fi
29362 +
29363 +# Check whether --enable-static was given.
29364 if test "${enable_static+set}" = set; then
29365 - enableval="$enable_static"
29366 - p=${PACKAGE-default}
29367 + enableval=$enable_static; p=${PACKAGE-default}
29368 case $enableval in
29369 yes) enable_static=yes ;;
29370 no) enable_static=no ;;
29371 @@ -3115,11 +3614,11 @@ no) enable_static=no ;;
29372 esac
29373 else
29374 enable_static=yes
29375 -fi;
29376 -# Check whether --enable-fast-install or --disable-fast-install was given.
29377 +fi
29378 +
29379 +# Check whether --enable-fast-install was given.
29380 if test "${enable_fast_install+set}" = set; then
29381 - enableval="$enable_fast_install"
29382 - p=${PACKAGE-default}
29383 + enableval=$enable_fast_install; p=${PACKAGE-default}
29384 case $enableval in
29385 yes) enable_fast_install=yes ;;
29386 no) enable_fast_install=no ;;
29387 @@ -3137,20 +3636,21 @@ no) enable_fast_install=no ;;
29388 esac
29389 else
29390 enable_fast_install=yes
29391 -fi;
29392 +fi
29393 +
29394
29395 -# Check whether --with-gnu-ld or --without-gnu-ld was given.
29396 +# Check whether --with-gnu-ld was given.
29397 if test "${with_gnu_ld+set}" = set; then
29398 - withval="$with_gnu_ld"
29399 - test "$withval" = no || with_gnu_ld=yes
29400 + withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
29401 else
29402 with_gnu_ld=no
29403 -fi;
29404 +fi
29405 +
29406 ac_prog=ld
29407 if test "$GCC" = yes; then
29408 # Check if gcc -print-prog-name=ld gives a path.
29409 - echo "$as_me:$LINENO: checking for ld used by GCC" >&5
29410 -echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
29411 + { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
29412 +echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
29413 case $host in
29414 *-*-mingw*)
29415 # gcc leaves a trailing carriage return which upsets mingw
29416 @@ -3179,11 +3679,11 @@ echo $ECHO_N "checking for ld used by GC
29417 ;;
29418 esac
29419 elif test "$with_gnu_ld" = yes; then
29420 - echo "$as_me:$LINENO: checking for GNU ld" >&5
29421 -echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
29422 + { echo "$as_me:$LINENO: checking for GNU ld" >&5
29423 +echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
29424 else
29425 - echo "$as_me:$LINENO: checking for non-GNU ld" >&5
29426 -echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
29427 + { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
29428 +echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
29429 fi
29430 if test "${lt_cv_path_LD+set}" = set; then
29431 echo $ECHO_N "(cached) $ECHO_C" >&6
29432 @@ -3212,17 +3712,17 @@ fi
29433
29434 LD="$lt_cv_path_LD"
29435 if test -n "$LD"; then
29436 - echo "$as_me:$LINENO: result: $LD" >&5
29437 -echo "${ECHO_T}$LD" >&6
29438 + { echo "$as_me:$LINENO: result: $LD" >&5
29439 +echo "${ECHO_T}$LD" >&6; }
29440 else
29441 - echo "$as_me:$LINENO: result: no" >&5
29442 -echo "${ECHO_T}no" >&6
29443 + { echo "$as_me:$LINENO: result: no" >&5
29444 +echo "${ECHO_T}no" >&6; }
29445 fi
29446 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
29447 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
29448 { (exit 1); exit 1; }; }
29449 -echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
29450 -echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
29451 +{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
29452 +echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
29453 if test "${lt_cv_prog_gnu_ld+set}" = set; then
29454 echo $ECHO_N "(cached) $ECHO_C" >&6
29455 else
29456 @@ -3233,25 +3733,25 @@ else
29457 lt_cv_prog_gnu_ld=no
29458 fi
29459 fi
29460 -echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
29461 -echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
29462 +{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
29463 +echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
29464 with_gnu_ld=$lt_cv_prog_gnu_ld
29465
29466
29467 -echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
29468 -echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
29469 +{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
29470 +echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
29471 if test "${lt_cv_ld_reload_flag+set}" = set; then
29472 echo $ECHO_N "(cached) $ECHO_C" >&6
29473 else
29474 lt_cv_ld_reload_flag='-r'
29475 fi
29476 -echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
29477 -echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
29478 +{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
29479 +echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
29480 reload_flag=$lt_cv_ld_reload_flag
29481 test -n "$reload_flag" && reload_flag=" $reload_flag"
29482
29483 -echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
29484 -echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
29485 +{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
29486 +echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
29487 if test "${lt_cv_path_NM+set}" = set; then
29488 echo $ECHO_N "(cached) $ECHO_C" >&6
29489 else
29490 @@ -3286,22 +3786,22 @@ fi
29491 fi
29492
29493 NM="$lt_cv_path_NM"
29494 -echo "$as_me:$LINENO: result: $NM" >&5
29495 -echo "${ECHO_T}$NM" >&6
29496 +{ echo "$as_me:$LINENO: result: $NM" >&5
29497 +echo "${ECHO_T}$NM" >&6; }
29498
29499 -echo "$as_me:$LINENO: checking whether ln -s works" >&5
29500 -echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
29501 +{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
29502 +echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
29503 LN_S=$as_ln_s
29504 if test "$LN_S" = "ln -s"; then
29505 - echo "$as_me:$LINENO: result: yes" >&5
29506 -echo "${ECHO_T}yes" >&6
29507 + { echo "$as_me:$LINENO: result: yes" >&5
29508 +echo "${ECHO_T}yes" >&6; }
29509 else
29510 - echo "$as_me:$LINENO: result: no, using $LN_S" >&5
29511 -echo "${ECHO_T}no, using $LN_S" >&6
29512 + { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
29513 +echo "${ECHO_T}no, using $LN_S" >&6; }
29514 fi
29515
29516 -echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
29517 -echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
29518 +{ echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
29519 +echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6; }
29520 if test "${lt_cv_deplibs_check_method+set}" = set; then
29521 echo $ECHO_N "(cached) $ECHO_C" >&6
29522 else
29523 @@ -3463,8 +3963,8 @@ sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
29524 esac
29525
29526 fi
29527 -echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
29528 -echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
29529 +{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
29530 +echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
29531 file_magic_cmd=$lt_cv_file_magic_cmd
29532 deplibs_check_method=$lt_cv_deplibs_check_method
29533
29534 @@ -3474,8 +3974,8 @@ deplibs_check_method=$lt_cv_deplibs_chec
29535 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
29536
29537 # find the maximum length of command line arguments
29538 -echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
29539 -echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
29540 +{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
29541 +echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
29542 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
29543 echo $ECHO_N "(cached) $ECHO_C" >&6
29544 else
29545 @@ -3526,11 +4026,11 @@ else
29546 fi
29547
29548 if test -n "$lt_cv_sys_max_cmd_len" ; then
29549 - echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
29550 -echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
29551 + { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
29552 +echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
29553 else
29554 - echo "$as_me:$LINENO: result: none" >&5
29555 -echo "${ECHO_T}none" >&6
29556 + { echo "$as_me:$LINENO: result: none" >&5
29557 +echo "${ECHO_T}none" >&6; }
29558 fi
29559
29560
29561 @@ -3538,8 +4038,8 @@ fi
29562 case $deplibs_check_method in
29563 file_magic*)
29564 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
29565 - echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
29566 -echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
29567 + { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
29568 +echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
29569 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
29570 echo $ECHO_N "(cached) $ECHO_C" >&6
29571 else
29572 @@ -3593,17 +4093,17 @@ fi
29573
29574 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
29575 if test -n "$MAGIC_CMD"; then
29576 - echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
29577 -echo "${ECHO_T}$MAGIC_CMD" >&6
29578 + { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
29579 +echo "${ECHO_T}$MAGIC_CMD" >&6; }
29580 else
29581 - echo "$as_me:$LINENO: result: no" >&5
29582 -echo "${ECHO_T}no" >&6
29583 + { echo "$as_me:$LINENO: result: no" >&5
29584 +echo "${ECHO_T}no" >&6; }
29585 fi
29586
29587 if test -z "$lt_cv_path_MAGIC_CMD"; then
29588 if test -n "$ac_tool_prefix"; then
29589 - echo "$as_me:$LINENO: checking for file" >&5
29590 -echo $ECHO_N "checking for file... $ECHO_C" >&6
29591 + { echo "$as_me:$LINENO: checking for file" >&5
29592 +echo $ECHO_N "checking for file... $ECHO_C" >&6; }
29593 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
29594 echo $ECHO_N "(cached) $ECHO_C" >&6
29595 else
29596 @@ -3657,11 +4157,11 @@ fi
29597
29598 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
29599 if test -n "$MAGIC_CMD"; then
29600 - echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
29601 -echo "${ECHO_T}$MAGIC_CMD" >&6
29602 + { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
29603 +echo "${ECHO_T}$MAGIC_CMD" >&6; }
29604 else
29605 - echo "$as_me:$LINENO: result: no" >&5
29606 -echo "${ECHO_T}no" >&6
29607 + { echo "$as_me:$LINENO: result: no" >&5
29608 +echo "${ECHO_T}no" >&6; }
29609 fi
29610
29611 else
29612 @@ -3676,8 +4176,8 @@ esac
29613 if test -n "$ac_tool_prefix"; then
29614 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
29615 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
29616 -echo "$as_me:$LINENO: checking for $ac_word" >&5
29617 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
29618 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
29619 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
29620 if test "${ac_cv_prog_RANLIB+set}" = set; then
29621 echo $ECHO_N "(cached) $ECHO_C" >&6
29622 else
29623 @@ -3690,32 +4190,34 @@ do
29624 IFS=$as_save_IFS
29625 test -z "$as_dir" && as_dir=.
29626 for ac_exec_ext in '' $ac_executable_extensions; do
29627 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29628 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29629 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
29630 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29631 break 2
29632 fi
29633 done
29634 done
29635 +IFS=$as_save_IFS
29636
29637 fi
29638 fi
29639 RANLIB=$ac_cv_prog_RANLIB
29640 if test -n "$RANLIB"; then
29641 - echo "$as_me:$LINENO: result: $RANLIB" >&5
29642 -echo "${ECHO_T}$RANLIB" >&6
29643 + { echo "$as_me:$LINENO: result: $RANLIB" >&5
29644 +echo "${ECHO_T}$RANLIB" >&6; }
29645 else
29646 - echo "$as_me:$LINENO: result: no" >&5
29647 -echo "${ECHO_T}no" >&6
29648 + { echo "$as_me:$LINENO: result: no" >&5
29649 +echo "${ECHO_T}no" >&6; }
29650 fi
29651
29652 +
29653 fi
29654 if test -z "$ac_cv_prog_RANLIB"; then
29655 ac_ct_RANLIB=$RANLIB
29656 # Extract the first word of "ranlib", so it can be a program name with args.
29657 set dummy ranlib; ac_word=$2
29658 -echo "$as_me:$LINENO: checking for $ac_word" >&5
29659 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
29660 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
29661 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
29662 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
29663 echo $ECHO_N "(cached) $ECHO_C" >&6
29664 else
29665 @@ -3728,27 +4230,41 @@ do
29666 IFS=$as_save_IFS
29667 test -z "$as_dir" && as_dir=.
29668 for ac_exec_ext in '' $ac_executable_extensions; do
29669 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29670 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29671 ac_cv_prog_ac_ct_RANLIB="ranlib"
29672 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29673 break 2
29674 fi
29675 done
29676 done
29677 +IFS=$as_save_IFS
29678
29679 - test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
29680 fi
29681 fi
29682 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
29683 if test -n "$ac_ct_RANLIB"; then
29684 - echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
29685 -echo "${ECHO_T}$ac_ct_RANLIB" >&6
29686 + { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
29687 +echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
29688 else
29689 - echo "$as_me:$LINENO: result: no" >&5
29690 -echo "${ECHO_T}no" >&6
29691 + { echo "$as_me:$LINENO: result: no" >&5
29692 +echo "${ECHO_T}no" >&6; }
29693 fi
29694
29695 - RANLIB=$ac_ct_RANLIB
29696 + if test "x$ac_ct_RANLIB" = x; then
29697 + RANLIB=":"
29698 + else
29699 + case $cross_compiling:$ac_tool_warned in
29700 +yes:)
29701 +{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
29702 +whose name does not start with the host triplet. If you think this
29703 +configuration is useful to you, please write to autoconf@gnu.org." >&5
29704 +echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
29705 +whose name does not start with the host triplet. If you think this
29706 +configuration is useful to you, please write to autoconf@gnu.org." >&2;}
29707 +ac_tool_warned=yes ;;
29708 +esac
29709 + RANLIB=$ac_ct_RANLIB
29710 + fi
29711 else
29712 RANLIB="$ac_cv_prog_RANLIB"
29713 fi
29714 @@ -3756,8 +4272,8 @@ fi
29715 if test -n "$ac_tool_prefix"; then
29716 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
29717 set dummy ${ac_tool_prefix}strip; ac_word=$2
29718 -echo "$as_me:$LINENO: checking for $ac_word" >&5
29719 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
29720 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
29721 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
29722 if test "${ac_cv_prog_STRIP+set}" = set; then
29723 echo $ECHO_N "(cached) $ECHO_C" >&6
29724 else
29725 @@ -3770,32 +4286,34 @@ do
29726 IFS=$as_save_IFS
29727 test -z "$as_dir" && as_dir=.
29728 for ac_exec_ext in '' $ac_executable_extensions; do
29729 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29730 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29731 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
29732 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29733 break 2
29734 fi
29735 done
29736 done
29737 +IFS=$as_save_IFS
29738
29739 fi
29740 fi
29741 STRIP=$ac_cv_prog_STRIP
29742 if test -n "$STRIP"; then
29743 - echo "$as_me:$LINENO: result: $STRIP" >&5
29744 -echo "${ECHO_T}$STRIP" >&6
29745 + { echo "$as_me:$LINENO: result: $STRIP" >&5
29746 +echo "${ECHO_T}$STRIP" >&6; }
29747 else
29748 - echo "$as_me:$LINENO: result: no" >&5
29749 -echo "${ECHO_T}no" >&6
29750 + { echo "$as_me:$LINENO: result: no" >&5
29751 +echo "${ECHO_T}no" >&6; }
29752 fi
29753
29754 +
29755 fi
29756 if test -z "$ac_cv_prog_STRIP"; then
29757 ac_ct_STRIP=$STRIP
29758 # Extract the first word of "strip", so it can be a program name with args.
29759 set dummy strip; ac_word=$2
29760 -echo "$as_me:$LINENO: checking for $ac_word" >&5
29761 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
29762 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
29763 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
29764 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
29765 echo $ECHO_N "(cached) $ECHO_C" >&6
29766 else
29767 @@ -3808,27 +4326,41 @@ do
29768 IFS=$as_save_IFS
29769 test -z "$as_dir" && as_dir=.
29770 for ac_exec_ext in '' $ac_executable_extensions; do
29771 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29772 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29773 ac_cv_prog_ac_ct_STRIP="strip"
29774 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29775 break 2
29776 fi
29777 done
29778 done
29779 +IFS=$as_save_IFS
29780
29781 - test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
29782 fi
29783 fi
29784 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
29785 if test -n "$ac_ct_STRIP"; then
29786 - echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
29787 -echo "${ECHO_T}$ac_ct_STRIP" >&6
29788 + { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
29789 +echo "${ECHO_T}$ac_ct_STRIP" >&6; }
29790 else
29791 - echo "$as_me:$LINENO: result: no" >&5
29792 -echo "${ECHO_T}no" >&6
29793 + { echo "$as_me:$LINENO: result: no" >&5
29794 +echo "${ECHO_T}no" >&6; }
29795 fi
29796
29797 - STRIP=$ac_ct_STRIP
29798 + if test "x$ac_ct_STRIP" = x; then
29799 + STRIP=":"
29800 + else
29801 + case $cross_compiling:$ac_tool_warned in
29802 +yes:)
29803 +{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
29804 +whose name does not start with the host triplet. If you think this
29805 +configuration is useful to you, please write to autoconf@gnu.org." >&5
29806 +echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
29807 +whose name does not start with the host triplet. If you think this
29808 +configuration is useful to you, please write to autoconf@gnu.org." >&2;}
29809 +ac_tool_warned=yes ;;
29810 +esac
29811 + STRIP=$ac_ct_STRIP
29812 + fi
29813 else
29814 STRIP="$ac_cv_prog_STRIP"
29815 fi
29816 @@ -3843,22 +4375,22 @@ test "$GCC" = yes && libtool_flags="$lib
29817 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
29818
29819
29820 -# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
29821 +# Check whether --enable-libtool-lock was given.
29822 if test "${enable_libtool_lock+set}" = set; then
29823 - enableval="$enable_libtool_lock"
29824 + enableval=$enable_libtool_lock;
29825 +fi
29826
29827 -fi;
29828 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
29829 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
29830
29831
29832 -# Check whether --with-pic or --without-pic was given.
29833 +# Check whether --with-pic was given.
29834 if test "${with_pic+set}" = set; then
29835 - withval="$with_pic"
29836 - pic_mode="$withval"
29837 + withval=$with_pic; pic_mode="$withval"
29838 else
29839 pic_mode=default
29840 -fi;
29841 +fi
29842 +
29843 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
29844 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
29845
29846 @@ -3867,7 +4399,7 @@ test x"$pic_mode" = xno && libtool_flags
29847 case $host in
29848 *-*-irix6*)
29849 # Find out which ABI we are using.
29850 - echo '#line 3870 "configure"' > conftest.$ac_ext
29851 + echo '#line 4402 "configure"' > conftest.$ac_ext
29852 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29853 (eval $ac_compile) 2>&5
29854 ac_status=$?
29855 @@ -3972,13 +4504,12 @@ x86_64-*linux*|ppc*-*linux*|powerpc*-*li
29856 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
29857 SAVE_CFLAGS="$CFLAGS"
29858 CFLAGS="$CFLAGS -belf"
29859 - echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
29860 -echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
29861 + { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
29862 +echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
29863 if test "${lt_cv_cc_needs_belf+set}" = set; then
29864 echo $ECHO_N "(cached) $ECHO_C" >&6
29865 else
29866
29867 -
29868 ac_ext=c
29869 ac_cpp='$CPP $CPPFLAGS'
29870 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29871 @@ -4001,35 +4532,32 @@ main ()
29872 }
29873 _ACEOF
29874 rm -f conftest.$ac_objext conftest$ac_exeext
29875 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29876 - (eval $ac_link) 2>conftest.er1
29877 +if { (ac_try="$ac_link"
29878 +case "(($ac_try" in
29879 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29880 + *) ac_try_echo=$ac_try;;
29881 +esac
29882 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29883 + (eval "$ac_link") 2>conftest.er1
29884 ac_status=$?
29885 grep -v '^ *+' conftest.er1 >conftest.err
29886 rm -f conftest.er1
29887 cat conftest.err >&5
29888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29889 - (exit $ac_status); } &&
29890 - { ac_try='test -z "$ac_c_werror_flag"
29891 - || test ! -s conftest.err'
29892 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29893 - (eval $ac_try) 2>&5
29894 - ac_status=$?
29895 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
29896 - (exit $ac_status); }; } &&
29897 - { ac_try='test -s conftest$ac_exeext'
29898 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29899 - (eval $ac_try) 2>&5
29900 - ac_status=$?
29901 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
29902 - (exit $ac_status); }; }; then
29903 + (exit $ac_status); } && {
29904 + test -z "$ac_c_werror_flag" ||
29905 + test ! -s conftest.err
29906 + } && test -s conftest$ac_exeext &&
29907 + $as_test_x conftest$ac_exeext; then
29908 lt_cv_cc_needs_belf=yes
29909 else
29910 echo "$as_me: failed program was:" >&5
29911 sed 's/^/| /' conftest.$ac_ext >&5
29912
29913 -lt_cv_cc_needs_belf=no
29914 + lt_cv_cc_needs_belf=no
29915 fi
29916 -rm -f conftest.err conftest.$ac_objext \
29917 +
29918 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29919 conftest$ac_exeext conftest.$ac_ext
29920 ac_ext=c
29921 ac_cpp='$CPP $CPPFLAGS'
29922 @@ -4038,8 +4566,8 @@ ac_link='$CC -o conftest$ac_exeext $CFLA
29923 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29924
29925 fi
29926 -echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
29927 -echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
29928 +{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
29929 +echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
29930 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
29931 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
29932 CFLAGS="$SAVE_CFLAGS"
29933 @@ -4069,39 +4597,58 @@ _ACEOF
29934
29935 # The following way of writing the cache mishandles newlines in values,
29936 # but we know of no workaround that is simple, portable, and efficient.
29937 -# So, don't put newlines in cache variables' values.
29938 +# So, we kill variables containing newlines.
29939 # Ultrix sh set writes to stderr and can't be redirected directly,
29940 # and sets the high bit in the cache file unless we assign to the vars.
29941 -{
29942 +(
29943 + for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
29944 + eval ac_val=\$$ac_var
29945 + case $ac_val in #(
29946 + *${as_nl}*)
29947 + case $ac_var in #(
29948 + *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
29949 +echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
29950 + esac
29951 + case $ac_var in #(
29952 + _ | IFS | as_nl) ;; #(
29953 + *) $as_unset $ac_var ;;
29954 + esac ;;
29955 + esac
29956 + done
29957 +
29958 (set) 2>&1 |
29959 - case `(ac_space=' '; set | grep ac_space) 2>&1` in
29960 - *ac_space=\ *)
29961 + case $as_nl`(ac_space=' '; set) 2>&1` in #(
29962 + *${as_nl}ac_space=\ *)
29963 # `set' does not quote correctly, so add quotes (double-quote
29964 # substitution turns \\\\ into \\, and sed turns \\ into \).
29965 sed -n \
29966 "s/'/'\\\\''/g;
29967 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
29968 - ;;
29969 + ;; #(
29970 *)
29971 # `set' quotes correctly as required by POSIX, so do not add quotes.
29972 - sed -n \
29973 - "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
29974 + sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
29975 ;;
29976 - esac;
29977 -} |
29978 + esac |
29979 + sort
29980 +) |
29981 sed '
29982 + /^ac_cv_env_/b end
29983 t clear
29984 - : clear
29985 + :clear
29986 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
29987 t end
29988 - /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
29989 - : end' >>confcache
29990 -if diff $cache_file confcache >/dev/null 2>&1; then :; else
29991 - if test -w $cache_file; then
29992 - test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
29993 + s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
29994 + :end' >>confcache
29995 +if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
29996 + if test -w "$cache_file"; then
29997 + test "x$cache_file" != "x/dev/null" &&
29998 + { echo "$as_me:$LINENO: updating cache $cache_file" >&5
29999 +echo "$as_me: updating cache $cache_file" >&6;}
30000 cat confcache >$cache_file
30001 else
30002 - echo "not updating unwritable cache $cache_file"
30003 + { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
30004 +echo "$as_me: not updating unwritable cache $cache_file" >&6;}
30005 fi
30006 fi
30007 rm -f confcache
30008 @@ -4127,8 +4674,8 @@ if test -r "$cache_file"; then
30009 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
30010 echo "$as_me: loading cache $cache_file" >&6;}
30011 case $cache_file in
30012 - [\\/]* | ?:[\\/]* ) . $cache_file;;
30013 - *) . ./$cache_file;;
30014 + [\\/]* | ?:[\\/]* ) . "$cache_file";;
30015 + *) . "./$cache_file";;
30016 esac
30017 fi
30018 else
30019 @@ -4154,10 +4701,9 @@ exec 5>>./config.log
30020
30021
30022
30023 -# Check whether --enable-targets or --disable-targets was given.
30024 +# Check whether --enable-targets was given.
30025 if test "${enable_targets+set}" = set; then
30026 - enableval="$enable_targets"
30027 - case "${enableval}" in
30028 + enableval=$enable_targets; case "${enableval}" in
30029 yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5
30030 echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;}
30031 { (exit 1); exit 1; }; }
30032 @@ -4165,31 +4711,32 @@ echo "$as_me: error: enable-targets opti
30033 no) enable_targets= ;;
30034 *) enable_targets=$enableval ;;
30035 esac
30036 -fi; # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
30037 +fi
30038 +# Check whether --enable-commonbfdlib was given.
30039 if test "${enable_commonbfdlib+set}" = set; then
30040 - enableval="$enable_commonbfdlib"
30041 - case "${enableval}" in
30042 + enableval=$enable_commonbfdlib; case "${enableval}" in
30043 yes) commonbfdlib=true ;;
30044 no) commonbfdlib=false ;;
30045 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for BFD commonbfdlib option" >&5
30046 echo "$as_me: error: bad value ${enableval} for BFD commonbfdlib option" >&2;}
30047 { (exit 1); exit 1; }; } ;;
30048 esac
30049 -fi;
30050 +fi
30051 +
30052
30053 GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
30054
30055 -# Check whether --enable-werror or --disable-werror was given.
30056 +# Check whether --enable-werror was given.
30057 if test "${enable_werror+set}" = set; then
30058 - enableval="$enable_werror"
30059 - case "${enableval}" in
30060 + enableval=$enable_werror; case "${enableval}" in
30061 yes | y) ERROR_ON_WARNING="yes" ;;
30062 no | n) ERROR_ON_WARNING="no" ;;
30063 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
30064 echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
30065 { (exit 1); exit 1; }; } ;;
30066 esac
30067 -fi;
30068 +fi
30069 +
30070
30071 # Enable -Werror by default when using gcc
30072 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
30073 @@ -4206,10 +4753,9 @@ if test "${GCC}" = yes ; then
30074 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
30075 fi
30076
30077 -# Check whether --enable-build-warnings or --disable-build-warnings was given.
30078 +# Check whether --enable-build-warnings was given.
30079 if test "${enable_build_warnings+set}" = set; then
30080 - enableval="$enable_build_warnings"
30081 - case "${enableval}" in
30082 + enableval=$enable_build_warnings; case "${enableval}" in
30083 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
30084 no) if test "${GCC}" = yes ; then
30085 WARN_CFLAGS="-w"
30086 @@ -4220,7 +4766,8 @@ if test "${enable_build_warnings+set}" =
30087 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
30088 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
30089 esac
30090 -fi;
30091 +fi
30092 +
30093
30094 if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
30095 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
30096 @@ -4230,7 +4777,7 @@ fi
30097
30098
30099
30100 - ac_config_headers="$ac_config_headers config.h:config.in"
30101 +ac_config_headers="$ac_config_headers config.h:config.in"
30102
30103
30104 if test -z "$target" ; then
30105 @@ -4252,8 +4799,8 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
30106 if test -n "$ac_tool_prefix"; then
30107 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
30108 set dummy ${ac_tool_prefix}gcc; ac_word=$2
30109 -echo "$as_me:$LINENO: checking for $ac_word" >&5
30110 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
30111 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
30112 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
30113 if test "${ac_cv_prog_CC+set}" = set; then
30114 echo $ECHO_N "(cached) $ECHO_C" >&6
30115 else
30116 @@ -4266,32 +4813,34 @@ do
30117 IFS=$as_save_IFS
30118 test -z "$as_dir" && as_dir=.
30119 for ac_exec_ext in '' $ac_executable_extensions; do
30120 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
30121 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30122 ac_cv_prog_CC="${ac_tool_prefix}gcc"
30123 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30124 break 2
30125 fi
30126 done
30127 done
30128 +IFS=$as_save_IFS
30129
30130 fi
30131 fi
30132 CC=$ac_cv_prog_CC
30133 if test -n "$CC"; then
30134 - echo "$as_me:$LINENO: result: $CC" >&5
30135 -echo "${ECHO_T}$CC" >&6
30136 + { echo "$as_me:$LINENO: result: $CC" >&5
30137 +echo "${ECHO_T}$CC" >&6; }
30138 else
30139 - echo "$as_me:$LINENO: result: no" >&5
30140 -echo "${ECHO_T}no" >&6
30141 + { echo "$as_me:$LINENO: result: no" >&5
30142 +echo "${ECHO_T}no" >&6; }
30143 fi
30144
30145 +
30146 fi
30147 if test -z "$ac_cv_prog_CC"; then
30148 ac_ct_CC=$CC
30149 # Extract the first word of "gcc", so it can be a program name with args.
30150 set dummy gcc; ac_word=$2
30151 -echo "$as_me:$LINENO: checking for $ac_word" >&5
30152 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
30153 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
30154 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
30155 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
30156 echo $ECHO_N "(cached) $ECHO_C" >&6
30157 else
30158 @@ -4304,36 +4853,51 @@ do
30159 IFS=$as_save_IFS
30160 test -z "$as_dir" && as_dir=.
30161 for ac_exec_ext in '' $ac_executable_extensions; do
30162 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
30163 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30164 ac_cv_prog_ac_ct_CC="gcc"
30165 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30166 break 2
30167 fi
30168 done
30169 done
30170 +IFS=$as_save_IFS
30171
30172 fi
30173 fi
30174 ac_ct_CC=$ac_cv_prog_ac_ct_CC
30175 if test -n "$ac_ct_CC"; then
30176 - echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
30177 -echo "${ECHO_T}$ac_ct_CC" >&6
30178 + { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
30179 +echo "${ECHO_T}$ac_ct_CC" >&6; }
30180 else
30181 - echo "$as_me:$LINENO: result: no" >&5
30182 -echo "${ECHO_T}no" >&6
30183 + { echo "$as_me:$LINENO: result: no" >&5
30184 +echo "${ECHO_T}no" >&6; }
30185 fi
30186
30187 - CC=$ac_ct_CC
30188 + if test "x$ac_ct_CC" = x; then
30189 + CC=""
30190 + else
30191 + case $cross_compiling:$ac_tool_warned in
30192 +yes:)
30193 +{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
30194 +whose name does not start with the host triplet. If you think this
30195 +configuration is useful to you, please write to autoconf@gnu.org." >&5
30196 +echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
30197 +whose name does not start with the host triplet. If you think this
30198 +configuration is useful to you, please write to autoconf@gnu.org." >&2;}
30199 +ac_tool_warned=yes ;;
30200 +esac
30201 + CC=$ac_ct_CC
30202 + fi
30203 else
30204 CC="$ac_cv_prog_CC"
30205 fi
30206
30207 if test -z "$CC"; then
30208 - if test -n "$ac_tool_prefix"; then
30209 - # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
30210 + if test -n "$ac_tool_prefix"; then
30211 + # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
30212 set dummy ${ac_tool_prefix}cc; ac_word=$2
30213 -echo "$as_me:$LINENO: checking for $ac_word" >&5
30214 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
30215 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
30216 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
30217 if test "${ac_cv_prog_CC+set}" = set; then
30218 echo $ECHO_N "(cached) $ECHO_C" >&6
30219 else
30220 @@ -4346,74 +4910,34 @@ do
30221 IFS=$as_save_IFS
30222 test -z "$as_dir" && as_dir=.
30223 for ac_exec_ext in '' $ac_executable_extensions; do
30224 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
30225 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30226 ac_cv_prog_CC="${ac_tool_prefix}cc"
30227 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30228 break 2
30229 fi
30230 done
30231 done
30232 +IFS=$as_save_IFS
30233
30234 fi
30235 fi
30236 CC=$ac_cv_prog_CC
30237 if test -n "$CC"; then
30238 - echo "$as_me:$LINENO: result: $CC" >&5
30239 -echo "${ECHO_T}$CC" >&6
30240 -else
30241 - echo "$as_me:$LINENO: result: no" >&5
30242 -echo "${ECHO_T}no" >&6
30243 -fi
30244 -
30245 -fi
30246 -if test -z "$ac_cv_prog_CC"; then
30247 - ac_ct_CC=$CC
30248 - # Extract the first word of "cc", so it can be a program name with args.
30249 -set dummy cc; ac_word=$2
30250 -echo "$as_me:$LINENO: checking for $ac_word" >&5
30251 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
30252 -if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
30253 - echo $ECHO_N "(cached) $ECHO_C" >&6
30254 -else
30255 - if test -n "$ac_ct_CC"; then
30256 - ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
30257 -else
30258 -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30259 -for as_dir in $PATH
30260 -do
30261 - IFS=$as_save_IFS
30262 - test -z "$as_dir" && as_dir=.
30263 - for ac_exec_ext in '' $ac_executable_extensions; do
30264 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
30265 - ac_cv_prog_ac_ct_CC="cc"
30266 - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30267 - break 2
30268 - fi
30269 -done
30270 -done
30271 -
30272 -fi
30273 -fi
30274 -ac_ct_CC=$ac_cv_prog_ac_ct_CC
30275 -if test -n "$ac_ct_CC"; then
30276 - echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
30277 -echo "${ECHO_T}$ac_ct_CC" >&6
30278 + { echo "$as_me:$LINENO: result: $CC" >&5
30279 +echo "${ECHO_T}$CC" >&6; }
30280 else
30281 - echo "$as_me:$LINENO: result: no" >&5
30282 -echo "${ECHO_T}no" >&6
30283 + { echo "$as_me:$LINENO: result: no" >&5
30284 +echo "${ECHO_T}no" >&6; }
30285 fi
30286
30287 - CC=$ac_ct_CC
30288 -else
30289 - CC="$ac_cv_prog_CC"
30290 -fi
30291
30292 + fi
30293 fi
30294 if test -z "$CC"; then
30295 # Extract the first word of "cc", so it can be a program name with args.
30296 set dummy cc; ac_word=$2
30297 -echo "$as_me:$LINENO: checking for $ac_word" >&5
30298 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
30299 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
30300 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
30301 if test "${ac_cv_prog_CC+set}" = set; then
30302 echo $ECHO_N "(cached) $ECHO_C" >&6
30303 else
30304 @@ -4427,7 +4951,7 @@ do
30305 IFS=$as_save_IFS
30306 test -z "$as_dir" && as_dir=.
30307 for ac_exec_ext in '' $ac_executable_extensions; do
30308 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
30309 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30310 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
30311 ac_prog_rejected=yes
30312 continue
30313 @@ -4438,6 +4962,7 @@ do
30314 fi
30315 done
30316 done
30317 +IFS=$as_save_IFS
30318
30319 if test $ac_prog_rejected = yes; then
30320 # We found a bogon in the path, so make sure we never use it.
30321 @@ -4455,22 +4980,23 @@ fi
30322 fi
30323 CC=$ac_cv_prog_CC
30324 if test -n "$CC"; then
30325 - echo "$as_me:$LINENO: result: $CC" >&5
30326 -echo "${ECHO_T}$CC" >&6
30327 + { echo "$as_me:$LINENO: result: $CC" >&5
30328 +echo "${ECHO_T}$CC" >&6; }
30329 else
30330 - echo "$as_me:$LINENO: result: no" >&5
30331 -echo "${ECHO_T}no" >&6
30332 + { echo "$as_me:$LINENO: result: no" >&5
30333 +echo "${ECHO_T}no" >&6; }
30334 fi
30335
30336 +
30337 fi
30338 if test -z "$CC"; then
30339 if test -n "$ac_tool_prefix"; then
30340 - for ac_prog in cl
30341 + for ac_prog in cl.exe
30342 do
30343 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
30344 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
30345 -echo "$as_me:$LINENO: checking for $ac_word" >&5
30346 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
30347 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
30348 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
30349 if test "${ac_cv_prog_CC+set}" = set; then
30350 echo $ECHO_N "(cached) $ECHO_C" >&6
30351 else
30352 @@ -4483,36 +5009,38 @@ do
30353 IFS=$as_save_IFS
30354 test -z "$as_dir" && as_dir=.
30355 for ac_exec_ext in '' $ac_executable_extensions; do
30356 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
30357 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30358 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
30359 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30360 break 2
30361 fi
30362 done
30363 done
30364 +IFS=$as_save_IFS
30365
30366 fi
30367 fi
30368 CC=$ac_cv_prog_CC
30369 if test -n "$CC"; then
30370 - echo "$as_me:$LINENO: result: $CC" >&5
30371 -echo "${ECHO_T}$CC" >&6
30372 + { echo "$as_me:$LINENO: result: $CC" >&5
30373 +echo "${ECHO_T}$CC" >&6; }
30374 else
30375 - echo "$as_me:$LINENO: result: no" >&5
30376 -echo "${ECHO_T}no" >&6
30377 + { echo "$as_me:$LINENO: result: no" >&5
30378 +echo "${ECHO_T}no" >&6; }
30379 fi
30380
30381 +
30382 test -n "$CC" && break
30383 done
30384 fi
30385 if test -z "$CC"; then
30386 ac_ct_CC=$CC
30387 - for ac_prog in cl
30388 + for ac_prog in cl.exe
30389 do
30390 # Extract the first word of "$ac_prog", so it can be a program name with args.
30391 set dummy $ac_prog; ac_word=$2
30392 -echo "$as_me:$LINENO: checking for $ac_word" >&5
30393 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
30394 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
30395 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
30396 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
30397 echo $ECHO_N "(cached) $ECHO_C" >&6
30398 else
30399 @@ -4525,29 +5053,45 @@ do
30400 IFS=$as_save_IFS
30401 test -z "$as_dir" && as_dir=.
30402 for ac_exec_ext in '' $ac_executable_extensions; do
30403 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
30404 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30405 ac_cv_prog_ac_ct_CC="$ac_prog"
30406 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30407 break 2
30408 fi
30409 done
30410 done
30411 +IFS=$as_save_IFS
30412
30413 fi
30414 fi
30415 ac_ct_CC=$ac_cv_prog_ac_ct_CC
30416 if test -n "$ac_ct_CC"; then
30417 - echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
30418 -echo "${ECHO_T}$ac_ct_CC" >&6
30419 + { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
30420 +echo "${ECHO_T}$ac_ct_CC" >&6; }
30421 else
30422 - echo "$as_me:$LINENO: result: no" >&5
30423 -echo "${ECHO_T}no" >&6
30424 + { echo "$as_me:$LINENO: result: no" >&5
30425 +echo "${ECHO_T}no" >&6; }
30426 fi
30427
30428 +
30429 test -n "$ac_ct_CC" && break
30430 done
30431
30432 - CC=$ac_ct_CC
30433 + if test "x$ac_ct_CC" = x; then
30434 + CC=""
30435 + else
30436 + case $cross_compiling:$ac_tool_warned in
30437 +yes:)
30438 +{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
30439 +whose name does not start with the host triplet. If you think this
30440 +configuration is useful to you, please write to autoconf@gnu.org." >&5
30441 +echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
30442 +whose name does not start with the host triplet. If you think this
30443 +configuration is useful to you, please write to autoconf@gnu.org." >&2;}
30444 +ac_tool_warned=yes ;;
30445 +esac
30446 + CC=$ac_ct_CC
30447 + fi
30448 fi
30449
30450 fi
30451 @@ -4560,27 +5104,41 @@ See \`config.log' for more details." >&2
30452 { (exit 1); exit 1; }; }
30453
30454 # Provide some information about the compiler.
30455 -echo "$as_me:$LINENO:" \
30456 - "checking for C compiler version" >&5
30457 +echo "$as_me:$LINENO: checking for C compiler version" >&5
30458 ac_compiler=`set X $ac_compile; echo $2`
30459 -{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
30460 - (eval $ac_compiler --version </dev/null >&5) 2>&5
30461 +{ (ac_try="$ac_compiler --version >&5"
30462 +case "(($ac_try" in
30463 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30464 + *) ac_try_echo=$ac_try;;
30465 +esac
30466 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30467 + (eval "$ac_compiler --version >&5") 2>&5
30468 ac_status=$?
30469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30470 (exit $ac_status); }
30471 -{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
30472 - (eval $ac_compiler -v </dev/null >&5) 2>&5
30473 +{ (ac_try="$ac_compiler -v >&5"
30474 +case "(($ac_try" in
30475 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30476 + *) ac_try_echo=$ac_try;;
30477 +esac
30478 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30479 + (eval "$ac_compiler -v >&5") 2>&5
30480 ac_status=$?
30481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30482 (exit $ac_status); }
30483 -{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
30484 - (eval $ac_compiler -V </dev/null >&5) 2>&5
30485 +{ (ac_try="$ac_compiler -V >&5"
30486 +case "(($ac_try" in
30487 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30488 + *) ac_try_echo=$ac_try;;
30489 +esac
30490 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30491 + (eval "$ac_compiler -V >&5") 2>&5
30492 ac_status=$?
30493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30494 (exit $ac_status); }
30495
30496 -echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
30497 -echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
30498 +{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
30499 +echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
30500 if test "${ac_cv_c_compiler_gnu+set}" = set; then
30501 echo $ECHO_N "(cached) $ECHO_C" >&6
30502 else
30503 @@ -4603,50 +5161,49 @@ main ()
30504 }
30505 _ACEOF
30506 rm -f conftest.$ac_objext
30507 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30508 - (eval $ac_compile) 2>conftest.er1
30509 +if { (ac_try="$ac_compile"
30510 +case "(($ac_try" in
30511 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30512 + *) ac_try_echo=$ac_try;;
30513 +esac
30514 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30515 + (eval "$ac_compile") 2>conftest.er1
30516 ac_status=$?
30517 grep -v '^ *+' conftest.er1 >conftest.err
30518 rm -f conftest.er1
30519 cat conftest.err >&5
30520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30521 - (exit $ac_status); } &&
30522 - { ac_try='test -z "$ac_c_werror_flag"
30523 - || test ! -s conftest.err'
30524 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30525 - (eval $ac_try) 2>&5
30526 - ac_status=$?
30527 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
30528 - (exit $ac_status); }; } &&
30529 - { ac_try='test -s conftest.$ac_objext'
30530 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30531 - (eval $ac_try) 2>&5
30532 - ac_status=$?
30533 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
30534 - (exit $ac_status); }; }; then
30535 + (exit $ac_status); } && {
30536 + test -z "$ac_c_werror_flag" ||
30537 + test ! -s conftest.err
30538 + } && test -s conftest.$ac_objext; then
30539 ac_compiler_gnu=yes
30540 else
30541 echo "$as_me: failed program was:" >&5
30542 sed 's/^/| /' conftest.$ac_ext >&5
30543
30544 -ac_compiler_gnu=no
30545 + ac_compiler_gnu=no
30546 fi
30547 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30548 +
30549 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30550 ac_cv_c_compiler_gnu=$ac_compiler_gnu
30551
30552 fi
30553 -echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
30554 -echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
30555 +{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
30556 +echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
30557 GCC=`test $ac_compiler_gnu = yes && echo yes`
30558 ac_test_CFLAGS=${CFLAGS+set}
30559 ac_save_CFLAGS=$CFLAGS
30560 -CFLAGS="-g"
30561 -echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
30562 -echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
30563 +{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
30564 +echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
30565 if test "${ac_cv_prog_cc_g+set}" = set; then
30566 echo $ECHO_N "(cached) $ECHO_C" >&6
30567 else
30568 - cat >conftest.$ac_ext <<_ACEOF
30569 + ac_save_c_werror_flag=$ac_c_werror_flag
30570 + ac_c_werror_flag=yes
30571 + ac_cv_prog_cc_g=no
30572 + CFLAGS="-g"
30573 + cat >conftest.$ac_ext <<_ACEOF
30574 /* confdefs.h. */
30575 _ACEOF
30576 cat confdefs.h >>conftest.$ac_ext
30577 @@ -4662,311 +5219,248 @@ main ()
30578 }
30579 _ACEOF
30580 rm -f conftest.$ac_objext
30581 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30582 - (eval $ac_compile) 2>conftest.er1
30583 +if { (ac_try="$ac_compile"
30584 +case "(($ac_try" in
30585 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30586 + *) ac_try_echo=$ac_try;;
30587 +esac
30588 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30589 + (eval "$ac_compile") 2>conftest.er1
30590 ac_status=$?
30591 grep -v '^ *+' conftest.er1 >conftest.err
30592 rm -f conftest.er1
30593 cat conftest.err >&5
30594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30595 - (exit $ac_status); } &&
30596 - { ac_try='test -z "$ac_c_werror_flag"
30597 - || test ! -s conftest.err'
30598 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30599 - (eval $ac_try) 2>&5
30600 - ac_status=$?
30601 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
30602 - (exit $ac_status); }; } &&
30603 - { ac_try='test -s conftest.$ac_objext'
30604 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30605 - (eval $ac_try) 2>&5
30606 - ac_status=$?
30607 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
30608 - (exit $ac_status); }; }; then
30609 + (exit $ac_status); } && {
30610 + test -z "$ac_c_werror_flag" ||
30611 + test ! -s conftest.err
30612 + } && test -s conftest.$ac_objext; then
30613 ac_cv_prog_cc_g=yes
30614 else
30615 echo "$as_me: failed program was:" >&5
30616 sed 's/^/| /' conftest.$ac_ext >&5
30617
30618 -ac_cv_prog_cc_g=no
30619 -fi
30620 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30621 -fi
30622 -echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
30623 -echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
30624 -if test "$ac_test_CFLAGS" = set; then
30625 - CFLAGS=$ac_save_CFLAGS
30626 -elif test $ac_cv_prog_cc_g = yes; then
30627 - if test "$GCC" = yes; then
30628 - CFLAGS="-g -O2"
30629 - else
30630 - CFLAGS="-g"
30631 - fi
30632 -else
30633 - if test "$GCC" = yes; then
30634 - CFLAGS="-O2"
30635 - else
30636 - CFLAGS=
30637 - fi
30638 -fi
30639 -echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
30640 -echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
30641 -if test "${ac_cv_prog_cc_stdc+set}" = set; then
30642 - echo $ECHO_N "(cached) $ECHO_C" >&6
30643 -else
30644 - ac_cv_prog_cc_stdc=no
30645 -ac_save_CC=$CC
30646 -cat >conftest.$ac_ext <<_ACEOF
30647 + CFLAGS=""
30648 + cat >conftest.$ac_ext <<_ACEOF
30649 /* confdefs.h. */
30650 _ACEOF
30651 cat confdefs.h >>conftest.$ac_ext
30652 cat >>conftest.$ac_ext <<_ACEOF
30653 /* end confdefs.h. */
30654 -#include <stdarg.h>
30655 -#include <stdio.h>
30656 -#include <sys/types.h>
30657 -#include <sys/stat.h>
30658 -/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
30659 -struct buf { int x; };
30660 -FILE * (*rcsopen) (struct buf *, struct stat *, int);
30661 -static char *e (p, i)
30662 - char **p;
30663 - int i;
30664 -{
30665 - return p[i];
30666 -}
30667 -static char *f (char * (*g) (char **, int), char **p, ...)
30668 -{
30669 - char *s;
30670 - va_list v;
30671 - va_start (v,p);
30672 - s = g (p, va_arg (v,int));
30673 - va_end (v);
30674 - return s;
30675 -}
30676
30677 -/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
30678 - function prototypes and stuff, but not '\xHH' hex character constants.
30679 - These don't provoke an error unfortunately, instead are silently treated
30680 - as 'x'. The following induces an error, until -std1 is added to get
30681 - proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
30682 - array size at least. It's necessary to write '\x00'==0 to get something
30683 - that's true only with -std1. */
30684 -int osf4_cc_array ['\x00' == 0 ? 1 : -1];
30685 -
30686 -int test (int i, double x);
30687 -struct s1 {int (*f) (int a);};
30688 -struct s2 {int (*f) (double a);};
30689 -int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
30690 -int argc;
30691 -char **argv;
30692 int
30693 main ()
30694 {
30695 -return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
30696 +
30697 ;
30698 return 0;
30699 }
30700 _ACEOF
30701 -# Don't try gcc -ansi; that turns off useful extensions and
30702 -# breaks some systems' header files.
30703 -# AIX -qlanglvl=ansi
30704 -# Ultrix and OSF/1 -std1
30705 -# HP-UX 10.20 and later -Ae
30706 -# HP-UX older versions -Aa -D_HPUX_SOURCE
30707 -# SVR4 -Xc -D__EXTENSIONS__
30708 -for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
30709 -do
30710 - CC="$ac_save_CC $ac_arg"
30711 - rm -f conftest.$ac_objext
30712 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30713 - (eval $ac_compile) 2>conftest.er1
30714 +rm -f conftest.$ac_objext
30715 +if { (ac_try="$ac_compile"
30716 +case "(($ac_try" in
30717 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30718 + *) ac_try_echo=$ac_try;;
30719 +esac
30720 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30721 + (eval "$ac_compile") 2>conftest.er1
30722 ac_status=$?
30723 grep -v '^ *+' conftest.er1 >conftest.err
30724 rm -f conftest.er1
30725 cat conftest.err >&5
30726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30727 - (exit $ac_status); } &&
30728 - { ac_try='test -z "$ac_c_werror_flag"
30729 - || test ! -s conftest.err'
30730 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30731 - (eval $ac_try) 2>&5
30732 - ac_status=$?
30733 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
30734 - (exit $ac_status); }; } &&
30735 - { ac_try='test -s conftest.$ac_objext'
30736 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30737 - (eval $ac_try) 2>&5
30738 - ac_status=$?
30739 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
30740 - (exit $ac_status); }; }; then
30741 - ac_cv_prog_cc_stdc=$ac_arg
30742 -break
30743 + (exit $ac_status); } && {
30744 + test -z "$ac_c_werror_flag" ||
30745 + test ! -s conftest.err
30746 + } && test -s conftest.$ac_objext; then
30747 + :
30748 else
30749 echo "$as_me: failed program was:" >&5
30750 sed 's/^/| /' conftest.$ac_ext >&5
30751
30752 -fi
30753 -rm -f conftest.err conftest.$ac_objext
30754 -done
30755 -rm -f conftest.$ac_ext conftest.$ac_objext
30756 -CC=$ac_save_CC
30757 -
30758 -fi
30759 -
30760 -case "x$ac_cv_prog_cc_stdc" in
30761 - x|xno)
30762 - echo "$as_me:$LINENO: result: none needed" >&5
30763 -echo "${ECHO_T}none needed" >&6 ;;
30764 - *)
30765 - echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
30766 -echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
30767 - CC="$CC $ac_cv_prog_cc_stdc" ;;
30768 -esac
30769 -
30770 -# Some people use a C++ compiler to compile C. Since we use `exit',
30771 -# in C++ we need to declare it. In case someone uses the same compiler
30772 -# for both compiling C and C++ we need to have the C++ compiler decide
30773 -# the declaration of exit, since it's the most demanding environment.
30774 -cat >conftest.$ac_ext <<_ACEOF
30775 -#ifndef __cplusplus
30776 - choke me
30777 -#endif
30778 -_ACEOF
30779 -rm -f conftest.$ac_objext
30780 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30781 - (eval $ac_compile) 2>conftest.er1
30782 - ac_status=$?
30783 - grep -v '^ *+' conftest.er1 >conftest.err
30784 - rm -f conftest.er1
30785 - cat conftest.err >&5
30786 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
30787 - (exit $ac_status); } &&
30788 - { ac_try='test -z "$ac_c_werror_flag"
30789 - || test ! -s conftest.err'
30790 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30791 - (eval $ac_try) 2>&5
30792 - ac_status=$?
30793 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
30794 - (exit $ac_status); }; } &&
30795 - { ac_try='test -s conftest.$ac_objext'
30796 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30797 - (eval $ac_try) 2>&5
30798 - ac_status=$?
30799 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
30800 - (exit $ac_status); }; }; then
30801 - for ac_declaration in \
30802 - '' \
30803 - 'extern "C" void std::exit (int) throw (); using std::exit;' \
30804 - 'extern "C" void std::exit (int); using std::exit;' \
30805 - 'extern "C" void exit (int) throw ();' \
30806 - 'extern "C" void exit (int);' \
30807 - 'void exit (int);'
30808 -do
30809 - cat >conftest.$ac_ext <<_ACEOF
30810 + ac_c_werror_flag=$ac_save_c_werror_flag
30811 + CFLAGS="-g"
30812 + cat >conftest.$ac_ext <<_ACEOF
30813 /* confdefs.h. */
30814 _ACEOF
30815 cat confdefs.h >>conftest.$ac_ext
30816 cat >>conftest.$ac_ext <<_ACEOF
30817 /* end confdefs.h. */
30818 -$ac_declaration
30819 -#include <stdlib.h>
30820 +
30821 int
30822 main ()
30823 {
30824 -exit (42);
30825 +
30826 ;
30827 return 0;
30828 }
30829 _ACEOF
30830 rm -f conftest.$ac_objext
30831 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30832 - (eval $ac_compile) 2>conftest.er1
30833 +if { (ac_try="$ac_compile"
30834 +case "(($ac_try" in
30835 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30836 + *) ac_try_echo=$ac_try;;
30837 +esac
30838 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30839 + (eval "$ac_compile") 2>conftest.er1
30840 ac_status=$?
30841 grep -v '^ *+' conftest.er1 >conftest.err
30842 rm -f conftest.er1
30843 cat conftest.err >&5
30844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30845 - (exit $ac_status); } &&
30846 - { ac_try='test -z "$ac_c_werror_flag"
30847 - || test ! -s conftest.err'
30848 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30849 - (eval $ac_try) 2>&5
30850 - ac_status=$?
30851 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
30852 - (exit $ac_status); }; } &&
30853 - { ac_try='test -s conftest.$ac_objext'
30854 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30855 - (eval $ac_try) 2>&5
30856 - ac_status=$?
30857 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
30858 - (exit $ac_status); }; }; then
30859 - :
30860 + (exit $ac_status); } && {
30861 + test -z "$ac_c_werror_flag" ||
30862 + test ! -s conftest.err
30863 + } && test -s conftest.$ac_objext; then
30864 + ac_cv_prog_cc_g=yes
30865 else
30866 echo "$as_me: failed program was:" >&5
30867 sed 's/^/| /' conftest.$ac_ext >&5
30868
30869 -continue
30870 +
30871 fi
30872 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30873 - cat >conftest.$ac_ext <<_ACEOF
30874 +
30875 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30876 +fi
30877 +
30878 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30879 +fi
30880 +
30881 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30882 + ac_c_werror_flag=$ac_save_c_werror_flag
30883 +fi
30884 +{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
30885 +echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
30886 +if test "$ac_test_CFLAGS" = set; then
30887 + CFLAGS=$ac_save_CFLAGS
30888 +elif test $ac_cv_prog_cc_g = yes; then
30889 + if test "$GCC" = yes; then
30890 + CFLAGS="-g -O2"
30891 + else
30892 + CFLAGS="-g"
30893 + fi
30894 +else
30895 + if test "$GCC" = yes; then
30896 + CFLAGS="-O2"
30897 + else
30898 + CFLAGS=
30899 + fi
30900 +fi
30901 +{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
30902 +echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
30903 +if test "${ac_cv_prog_cc_c89+set}" = set; then
30904 + echo $ECHO_N "(cached) $ECHO_C" >&6
30905 +else
30906 + ac_cv_prog_cc_c89=no
30907 +ac_save_CC=$CC
30908 +cat >conftest.$ac_ext <<_ACEOF
30909 /* confdefs.h. */
30910 _ACEOF
30911 cat confdefs.h >>conftest.$ac_ext
30912 cat >>conftest.$ac_ext <<_ACEOF
30913 /* end confdefs.h. */
30914 -$ac_declaration
30915 +#include <stdarg.h>
30916 +#include <stdio.h>
30917 +#include <sys/types.h>
30918 +#include <sys/stat.h>
30919 +/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
30920 +struct buf { int x; };
30921 +FILE * (*rcsopen) (struct buf *, struct stat *, int);
30922 +static char *e (p, i)
30923 + char **p;
30924 + int i;
30925 +{
30926 + return p[i];
30927 +}
30928 +static char *f (char * (*g) (char **, int), char **p, ...)
30929 +{
30930 + char *s;
30931 + va_list v;
30932 + va_start (v,p);
30933 + s = g (p, va_arg (v,int));
30934 + va_end (v);
30935 + return s;
30936 +}
30937 +
30938 +/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
30939 + function prototypes and stuff, but not '\xHH' hex character constants.
30940 + These don't provoke an error unfortunately, instead are silently treated
30941 + as 'x'. The following induces an error, until -std is added to get
30942 + proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
30943 + array size at least. It's necessary to write '\x00'==0 to get something
30944 + that's true only with -std. */
30945 +int osf4_cc_array ['\x00' == 0 ? 1 : -1];
30946 +
30947 +/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
30948 + inside strings and character constants. */
30949 +#define FOO(x) 'x'
30950 +int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
30951 +
30952 +int test (int i, double x);
30953 +struct s1 {int (*f) (int a);};
30954 +struct s2 {int (*f) (double a);};
30955 +int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
30956 +int argc;
30957 +char **argv;
30958 int
30959 main ()
30960 {
30961 -exit (42);
30962 +return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
30963 ;
30964 return 0;
30965 }
30966 _ACEOF
30967 -rm -f conftest.$ac_objext
30968 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30969 - (eval $ac_compile) 2>conftest.er1
30970 +for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
30971 + -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
30972 +do
30973 + CC="$ac_save_CC $ac_arg"
30974 + rm -f conftest.$ac_objext
30975 +if { (ac_try="$ac_compile"
30976 +case "(($ac_try" in
30977 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30978 + *) ac_try_echo=$ac_try;;
30979 +esac
30980 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30981 + (eval "$ac_compile") 2>conftest.er1
30982 ac_status=$?
30983 grep -v '^ *+' conftest.er1 >conftest.err
30984 rm -f conftest.er1
30985 cat conftest.err >&5
30986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30987 - (exit $ac_status); } &&
30988 - { ac_try='test -z "$ac_c_werror_flag"
30989 - || test ! -s conftest.err'
30990 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30991 - (eval $ac_try) 2>&5
30992 - ac_status=$?
30993 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
30994 - (exit $ac_status); }; } &&
30995 - { ac_try='test -s conftest.$ac_objext'
30996 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30997 - (eval $ac_try) 2>&5
30998 - ac_status=$?
30999 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
31000 - (exit $ac_status); }; }; then
31001 - break
31002 + (exit $ac_status); } && {
31003 + test -z "$ac_c_werror_flag" ||
31004 + test ! -s conftest.err
31005 + } && test -s conftest.$ac_objext; then
31006 + ac_cv_prog_cc_c89=$ac_arg
31007 else
31008 echo "$as_me: failed program was:" >&5
31009 sed 's/^/| /' conftest.$ac_ext >&5
31010
31011 +
31012 fi
31013 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31014 +
31015 +rm -f core conftest.err conftest.$ac_objext
31016 + test "x$ac_cv_prog_cc_c89" != "xno" && break
31017 done
31018 -rm -f conftest*
31019 -if test -n "$ac_declaration"; then
31020 - echo '#ifdef __cplusplus' >>confdefs.h
31021 - echo $ac_declaration >>confdefs.h
31022 - echo '#endif' >>confdefs.h
31023 +rm -f conftest.$ac_ext
31024 +CC=$ac_save_CC
31025 +
31026 fi
31027 +# AC_CACHE_VAL
31028 +case "x$ac_cv_prog_cc_c89" in
31029 + x)
31030 + { echo "$as_me:$LINENO: result: none needed" >&5
31031 +echo "${ECHO_T}none needed" >&6; } ;;
31032 + xno)
31033 + { echo "$as_me:$LINENO: result: unsupported" >&5
31034 +echo "${ECHO_T}unsupported" >&6; } ;;
31035 + *)
31036 + CC="$CC $ac_cv_prog_cc_c89"
31037 + { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
31038 +echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
31039 +esac
31040
31041 -else
31042 - echo "$as_me: failed program was:" >&5
31043 -sed 's/^/| /' conftest.$ac_ext >&5
31044
31045 -fi
31046 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31047 ac_ext=c
31048 ac_cpp='$CPP $CPPFLAGS'
31049 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31050 @@ -4984,8 +5478,8 @@ for ac_prog in 'bison -y' byacc
31051 do
31052 # Extract the first word of "$ac_prog", so it can be a program name with args.
31053 set dummy $ac_prog; ac_word=$2
31054 -echo "$as_me:$LINENO: checking for $ac_word" >&5
31055 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
31056 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
31057 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
31058 if test "${ac_cv_prog_YACC+set}" = set; then
31059 echo $ECHO_N "(cached) $ECHO_C" >&6
31060 else
31061 @@ -4998,25 +5492,27 @@ do
31062 IFS=$as_save_IFS
31063 test -z "$as_dir" && as_dir=.
31064 for ac_exec_ext in '' $ac_executable_extensions; do
31065 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
31066 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31067 ac_cv_prog_YACC="$ac_prog"
31068 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31069 break 2
31070 fi
31071 done
31072 done
31073 +IFS=$as_save_IFS
31074
31075 fi
31076 fi
31077 YACC=$ac_cv_prog_YACC
31078 if test -n "$YACC"; then
31079 - echo "$as_me:$LINENO: result: $YACC" >&5
31080 -echo "${ECHO_T}$YACC" >&6
31081 + { echo "$as_me:$LINENO: result: $YACC" >&5
31082 +echo "${ECHO_T}$YACC" >&6; }
31083 else
31084 - echo "$as_me:$LINENO: result: no" >&5
31085 -echo "${ECHO_T}no" >&6
31086 + { echo "$as_me:$LINENO: result: no" >&5
31087 +echo "${ECHO_T}no" >&6; }
31088 fi
31089
31090 +
31091 test -n "$YACC" && break
31092 done
31093 test -n "$YACC" || YACC="yacc"
31094 @@ -5025,8 +5521,8 @@ for ac_prog in flex lex
31095 do
31096 # Extract the first word of "$ac_prog", so it can be a program name with args.
31097 set dummy $ac_prog; ac_word=$2
31098 -echo "$as_me:$LINENO: checking for $ac_word" >&5
31099 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
31100 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
31101 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
31102 if test "${ac_cv_prog_LEX+set}" = set; then
31103 echo $ECHO_N "(cached) $ECHO_C" >&6
31104 else
31105 @@ -5039,253 +5535,182 @@ do
31106 IFS=$as_save_IFS
31107 test -z "$as_dir" && as_dir=.
31108 for ac_exec_ext in '' $ac_executable_extensions; do
31109 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
31110 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31111 ac_cv_prog_LEX="$ac_prog"
31112 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31113 break 2
31114 fi
31115 done
31116 done
31117 +IFS=$as_save_IFS
31118
31119 fi
31120 fi
31121 LEX=$ac_cv_prog_LEX
31122 if test -n "$LEX"; then
31123 - echo "$as_me:$LINENO: result: $LEX" >&5
31124 -echo "${ECHO_T}$LEX" >&6
31125 + { echo "$as_me:$LINENO: result: $LEX" >&5
31126 +echo "${ECHO_T}$LEX" >&6; }
31127 else
31128 - echo "$as_me:$LINENO: result: no" >&5
31129 -echo "${ECHO_T}no" >&6
31130 + { echo "$as_me:$LINENO: result: no" >&5
31131 +echo "${ECHO_T}no" >&6; }
31132 fi
31133
31134 +
31135 test -n "$LEX" && break
31136 done
31137 test -n "$LEX" || LEX=":"
31138
31139 -if test -z "$LEXLIB"
31140 -then
31141 - echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
31142 -echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
31143 -if test "${ac_cv_lib_fl_yywrap+set}" = set; then
31144 - echo $ECHO_N "(cached) $ECHO_C" >&6
31145 -else
31146 - ac_check_lib_save_LIBS=$LIBS
31147 -LIBS="-lfl $LIBS"
31148 -cat >conftest.$ac_ext <<_ACEOF
31149 -/* confdefs.h. */
31150 -_ACEOF
31151 -cat confdefs.h >>conftest.$ac_ext
31152 -cat >>conftest.$ac_ext <<_ACEOF
31153 -/* end confdefs.h. */
31154 -
31155 -/* Override any gcc2 internal prototype to avoid an error. */
31156 -#ifdef __cplusplus
31157 -extern "C"
31158 +if test "x$LEX" != "x:"; then
31159 + cat >conftest.l <<_ACEOF
31160 +%%
31161 +a { ECHO; }
31162 +b { REJECT; }
31163 +c { yymore (); }
31164 +d { yyless (1); }
31165 +e { yyless (input () != 0); }
31166 +f { unput (yytext[0]); }
31167 +. { BEGIN INITIAL; }
31168 +%%
31169 +#ifdef YYTEXT_POINTER
31170 +extern char *yytext;
31171 #endif
31172 -/* We use char because int might match the return type of a gcc2
31173 - builtin and then its argument prototype would still apply. */
31174 -char yywrap ();
31175 int
31176 -main ()
31177 +main (void)
31178 {
31179 -yywrap ();
31180 - ;
31181 - return 0;
31182 + return ! yylex () + ! yywrap ();
31183 }
31184 _ACEOF
31185 -rm -f conftest.$ac_objext conftest$ac_exeext
31186 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31187 - (eval $ac_link) 2>conftest.er1
31188 - ac_status=$?
31189 - grep -v '^ *+' conftest.er1 >conftest.err
31190 - rm -f conftest.er1
31191 - cat conftest.err >&5
31192 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
31193 - (exit $ac_status); } &&
31194 - { ac_try='test -z "$ac_c_werror_flag"
31195 - || test ! -s conftest.err'
31196 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31197 - (eval $ac_try) 2>&5
31198 - ac_status=$?
31199 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
31200 - (exit $ac_status); }; } &&
31201 - { ac_try='test -s conftest$ac_exeext'
31202 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31203 - (eval $ac_try) 2>&5
31204 +{ (ac_try="$LEX conftest.l"
31205 +case "(($ac_try" in
31206 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31207 + *) ac_try_echo=$ac_try;;
31208 +esac
31209 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31210 + (eval "$LEX conftest.l") 2>&5
31211 ac_status=$?
31212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31213 - (exit $ac_status); }; }; then
31214 - ac_cv_lib_fl_yywrap=yes
31215 + (exit $ac_status); }
31216 +{ echo "$as_me:$LINENO: checking lex output file root" >&5
31217 +echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; }
31218 +if test "${ac_cv_prog_lex_root+set}" = set; then
31219 + echo $ECHO_N "(cached) $ECHO_C" >&6
31220 else
31221 - echo "$as_me: failed program was:" >&5
31222 -sed 's/^/| /' conftest.$ac_ext >&5
31223
31224 -ac_cv_lib_fl_yywrap=no
31225 +if test -f lex.yy.c; then
31226 + ac_cv_prog_lex_root=lex.yy
31227 +elif test -f lexyy.c; then
31228 + ac_cv_prog_lex_root=lexyy
31229 +else
31230 + { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
31231 +echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
31232 + { (exit 1); exit 1; }; }
31233 fi
31234 -rm -f conftest.err conftest.$ac_objext \
31235 - conftest$ac_exeext conftest.$ac_ext
31236 -LIBS=$ac_check_lib_save_LIBS
31237 fi
31238 -echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
31239 -echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
31240 -if test $ac_cv_lib_fl_yywrap = yes; then
31241 - LEXLIB="-lfl"
31242 -else
31243 - echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
31244 -echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
31245 -if test "${ac_cv_lib_l_yywrap+set}" = set; then
31246 +{ echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
31247 +echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; }
31248 +LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
31249 +
31250 +if test -z "${LEXLIB+set}"; then
31251 + { echo "$as_me:$LINENO: checking lex library" >&5
31252 +echo $ECHO_N "checking lex library... $ECHO_C" >&6; }
31253 +if test "${ac_cv_lib_lex+set}" = set; then
31254 echo $ECHO_N "(cached) $ECHO_C" >&6
31255 else
31256 - ac_check_lib_save_LIBS=$LIBS
31257 -LIBS="-ll $LIBS"
31258 -cat >conftest.$ac_ext <<_ACEOF
31259 -/* confdefs.h. */
31260 -_ACEOF
31261 -cat confdefs.h >>conftest.$ac_ext
31262 -cat >>conftest.$ac_ext <<_ACEOF
31263 -/* end confdefs.h. */
31264
31265 -/* Override any gcc2 internal prototype to avoid an error. */
31266 -#ifdef __cplusplus
31267 -extern "C"
31268 -#endif
31269 -/* We use char because int might match the return type of a gcc2
31270 - builtin and then its argument prototype would still apply. */
31271 -char yywrap ();
31272 -int
31273 -main ()
31274 -{
31275 -yywrap ();
31276 - ;
31277 - return 0;
31278 -}
31279 + ac_save_LIBS=$LIBS
31280 + ac_cv_lib_lex='none needed'
31281 + for ac_lib in '' -lfl -ll; do
31282 + LIBS="$ac_lib $ac_save_LIBS"
31283 + cat >conftest.$ac_ext <<_ACEOF
31284 +`cat $LEX_OUTPUT_ROOT.c`
31285 _ACEOF
31286 rm -f conftest.$ac_objext conftest$ac_exeext
31287 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31288 - (eval $ac_link) 2>conftest.er1
31289 +if { (ac_try="$ac_link"
31290 +case "(($ac_try" in
31291 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31292 + *) ac_try_echo=$ac_try;;
31293 +esac
31294 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31295 + (eval "$ac_link") 2>conftest.er1
31296 ac_status=$?
31297 grep -v '^ *+' conftest.er1 >conftest.err
31298 rm -f conftest.er1
31299 cat conftest.err >&5
31300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31301 - (exit $ac_status); } &&
31302 - { ac_try='test -z "$ac_c_werror_flag"
31303 - || test ! -s conftest.err'
31304 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31305 - (eval $ac_try) 2>&5
31306 - ac_status=$?
31307 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
31308 - (exit $ac_status); }; } &&
31309 - { ac_try='test -s conftest$ac_exeext'
31310 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31311 - (eval $ac_try) 2>&5
31312 - ac_status=$?
31313 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
31314 - (exit $ac_status); }; }; then
31315 - ac_cv_lib_l_yywrap=yes
31316 + (exit $ac_status); } && {
31317 + test -z "$ac_c_werror_flag" ||
31318 + test ! -s conftest.err
31319 + } && test -s conftest$ac_exeext &&
31320 + $as_test_x conftest$ac_exeext; then
31321 + ac_cv_lib_lex=$ac_lib
31322 else
31323 echo "$as_me: failed program was:" >&5
31324 sed 's/^/| /' conftest.$ac_ext >&5
31325
31326 -ac_cv_lib_l_yywrap=no
31327 -fi
31328 -rm -f conftest.err conftest.$ac_objext \
31329 - conftest$ac_exeext conftest.$ac_ext
31330 -LIBS=$ac_check_lib_save_LIBS
31331 -fi
31332 -echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
31333 -echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
31334 -if test $ac_cv_lib_l_yywrap = yes; then
31335 - LEXLIB="-ll"
31336 -fi
31337 -
31338 -fi
31339 -
31340 -fi
31341
31342 -if test "x$LEX" != "x:"; then
31343 - echo "$as_me:$LINENO: checking lex output file root" >&5
31344 -echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
31345 -if test "${ac_cv_prog_lex_root+set}" = set; then
31346 - echo $ECHO_N "(cached) $ECHO_C" >&6
31347 -else
31348 - # The minimal lex program is just a single line: %%. But some broken lexes
31349 -# (Solaris, I think it was) want two %% lines, so accommodate them.
31350 -cat >conftest.l <<_ACEOF
31351 -%%
31352 -%%
31353 -_ACEOF
31354 -{ (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
31355 - (eval $LEX conftest.l) 2>&5
31356 - ac_status=$?
31357 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
31358 - (exit $ac_status); }
31359 -if test -f lex.yy.c; then
31360 - ac_cv_prog_lex_root=lex.yy
31361 -elif test -f lexyy.c; then
31362 - ac_cv_prog_lex_root=lexyy
31363 -else
31364 - { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
31365 -echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
31366 - { (exit 1); exit 1; }; }
31367 fi
31368 +
31369 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31370 + conftest$ac_exeext conftest.$ac_ext
31371 + test "$ac_cv_lib_lex" != 'none needed' && break
31372 + done
31373 + LIBS=$ac_save_LIBS
31374 +
31375 +fi
31376 +{ echo "$as_me:$LINENO: result: $ac_cv_lib_lex" >&5
31377 +echo "${ECHO_T}$ac_cv_lib_lex" >&6; }
31378 + test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
31379 fi
31380 -echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
31381 -echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
31382 -rm -f conftest.l
31383 -LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
31384
31385 -echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
31386 -echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
31387 +
31388 +{ echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
31389 +echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; }
31390 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
31391 echo $ECHO_N "(cached) $ECHO_C" >&6
31392 else
31393 # POSIX says lex can declare yytext either as a pointer or an array; the
31394 -# default is implementation-dependent. Figure out which it is, since
31395 +# default is implementation-dependent. Figure out which it is, since
31396 # not all implementations provide the %pointer and %array declarations.
31397 ac_cv_prog_lex_yytext_pointer=no
31398 -echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
31399 ac_save_LIBS=$LIBS
31400 -LIBS="$LIBS $LEXLIB"
31401 +LIBS="$LEXLIB $ac_save_LIBS"
31402 cat >conftest.$ac_ext <<_ACEOF
31403 +#define YYTEXT_POINTER 1
31404 `cat $LEX_OUTPUT_ROOT.c`
31405 _ACEOF
31406 rm -f conftest.$ac_objext conftest$ac_exeext
31407 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31408 - (eval $ac_link) 2>conftest.er1
31409 +if { (ac_try="$ac_link"
31410 +case "(($ac_try" in
31411 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31412 + *) ac_try_echo=$ac_try;;
31413 +esac
31414 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31415 + (eval "$ac_link") 2>conftest.er1
31416 ac_status=$?
31417 grep -v '^ *+' conftest.er1 >conftest.err
31418 rm -f conftest.er1
31419 cat conftest.err >&5
31420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31421 - (exit $ac_status); } &&
31422 - { ac_try='test -z "$ac_c_werror_flag"
31423 - || test ! -s conftest.err'
31424 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31425 - (eval $ac_try) 2>&5
31426 - ac_status=$?
31427 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
31428 - (exit $ac_status); }; } &&
31429 - { ac_try='test -s conftest$ac_exeext'
31430 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31431 - (eval $ac_try) 2>&5
31432 - ac_status=$?
31433 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
31434 - (exit $ac_status); }; }; then
31435 + (exit $ac_status); } && {
31436 + test -z "$ac_c_werror_flag" ||
31437 + test ! -s conftest.err
31438 + } && test -s conftest$ac_exeext &&
31439 + $as_test_x conftest$ac_exeext; then
31440 ac_cv_prog_lex_yytext_pointer=yes
31441 else
31442 echo "$as_me: failed program was:" >&5
31443 sed 's/^/| /' conftest.$ac_ext >&5
31444
31445 +
31446 fi
31447 -rm -f conftest.err conftest.$ac_objext \
31448 +
31449 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31450 conftest$ac_exeext conftest.$ac_ext
31451 LIBS=$ac_save_LIBS
31452 -rm -f "${LEX_OUTPUT_ROOT}.c"
31453
31454 fi
31455 -echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
31456 -echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
31457 +{ echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
31458 +echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; }
31459 if test $ac_cv_prog_lex_yytext_pointer = yes; then
31460
31461 cat >>confdefs.h <<\_ACEOF
31462 @@ -5293,6 +5718,7 @@ cat >>confdefs.h <<\_ACEOF
31463 _ACEOF
31464
31465 fi
31466 +rm -f conftest.l $LEX_OUTPUT_ROOT.c
31467
31468 fi
31469 if test "$LEX" = :; then
31470 @@ -5303,8 +5729,8 @@ ALL_LINGUAS="fr tr ja es sv da zh_CN ru
31471 if test -n "$ac_tool_prefix"; then
31472 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
31473 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
31474 -echo "$as_me:$LINENO: checking for $ac_word" >&5
31475 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
31476 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
31477 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
31478 if test "${ac_cv_prog_RANLIB+set}" = set; then
31479 echo $ECHO_N "(cached) $ECHO_C" >&6
31480 else
31481 @@ -5317,32 +5743,34 @@ do
31482 IFS=$as_save_IFS
31483 test -z "$as_dir" && as_dir=.
31484 for ac_exec_ext in '' $ac_executable_extensions; do
31485 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
31486 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31487 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
31488 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31489 break 2
31490 fi
31491 done
31492 done
31493 +IFS=$as_save_IFS
31494
31495 fi
31496 fi
31497 RANLIB=$ac_cv_prog_RANLIB
31498 if test -n "$RANLIB"; then
31499 - echo "$as_me:$LINENO: result: $RANLIB" >&5
31500 -echo "${ECHO_T}$RANLIB" >&6
31501 + { echo "$as_me:$LINENO: result: $RANLIB" >&5
31502 +echo "${ECHO_T}$RANLIB" >&6; }
31503 else
31504 - echo "$as_me:$LINENO: result: no" >&5
31505 -echo "${ECHO_T}no" >&6
31506 + { echo "$as_me:$LINENO: result: no" >&5
31507 +echo "${ECHO_T}no" >&6; }
31508 fi
31509
31510 +
31511 fi
31512 if test -z "$ac_cv_prog_RANLIB"; then
31513 ac_ct_RANLIB=$RANLIB
31514 # Extract the first word of "ranlib", so it can be a program name with args.
31515 set dummy ranlib; ac_word=$2
31516 -echo "$as_me:$LINENO: checking for $ac_word" >&5
31517 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
31518 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
31519 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
31520 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
31521 echo $ECHO_N "(cached) $ECHO_C" >&6
31522 else
31523 @@ -5355,27 +5783,41 @@ do
31524 IFS=$as_save_IFS
31525 test -z "$as_dir" && as_dir=.
31526 for ac_exec_ext in '' $ac_executable_extensions; do
31527 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
31528 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31529 ac_cv_prog_ac_ct_RANLIB="ranlib"
31530 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31531 break 2
31532 fi
31533 done
31534 done
31535 +IFS=$as_save_IFS
31536
31537 - test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
31538 fi
31539 fi
31540 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
31541 if test -n "$ac_ct_RANLIB"; then
31542 - echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
31543 -echo "${ECHO_T}$ac_ct_RANLIB" >&6
31544 + { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
31545 +echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
31546 else
31547 - echo "$as_me:$LINENO: result: no" >&5
31548 -echo "${ECHO_T}no" >&6
31549 + { echo "$as_me:$LINENO: result: no" >&5
31550 +echo "${ECHO_T}no" >&6; }
31551 fi
31552
31553 - RANLIB=$ac_ct_RANLIB
31554 + if test "x$ac_ct_RANLIB" = x; then
31555 + RANLIB=":"
31556 + else
31557 + case $cross_compiling:$ac_tool_warned in
31558 +yes:)
31559 +{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
31560 +whose name does not start with the host triplet. If you think this
31561 +configuration is useful to you, please write to autoconf@gnu.org." >&5
31562 +echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
31563 +whose name does not start with the host triplet. If you think this
31564 +configuration is useful to you, please write to autoconf@gnu.org." >&2;}
31565 +ac_tool_warned=yes ;;
31566 +esac
31567 + RANLIB=$ac_ct_RANLIB
31568 + fi
31569 else
31570 RANLIB="$ac_cv_prog_RANLIB"
31571 fi
31572 @@ -5385,8 +5827,8 @@ ac_cpp='$CPP $CPPFLAGS'
31573 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31574 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31575 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31576 -echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
31577 -echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
31578 +{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
31579 +echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
31580 # On Suns, sometimes $CPP names a directory.
31581 if test -n "$CPP" && test -d "$CPP"; then
31582 CPP=
31583 @@ -5420,24 +5862,22 @@ cat >>conftest.$ac_ext <<_ACEOF
31584 #endif
31585 Syntax error
31586 _ACEOF
31587 -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31588 - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31589 +if { (ac_try="$ac_cpp conftest.$ac_ext"
31590 +case "(($ac_try" in
31591 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31592 + *) ac_try_echo=$ac_try;;
31593 +esac
31594 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31595 + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31596 ac_status=$?
31597 grep -v '^ *+' conftest.er1 >conftest.err
31598 rm -f conftest.er1
31599 cat conftest.err >&5
31600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31601 - (exit $ac_status); } >/dev/null; then
31602 - if test -s conftest.err; then
31603 - ac_cpp_err=$ac_c_preproc_warn_flag
31604 - ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
31605 - else
31606 - ac_cpp_err=
31607 - fi
31608 -else
31609 - ac_cpp_err=yes
31610 -fi
31611 -if test -z "$ac_cpp_err"; then
31612 + (exit $ac_status); } >/dev/null && {
31613 + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31614 + test ! -s conftest.err
31615 + }; then
31616 :
31617 else
31618 echo "$as_me: failed program was:" >&5
31619 @@ -5446,9 +5886,10 @@ sed 's/^/| /' conftest.$ac_ext >&5
31620 # Broken: fails on valid input.
31621 continue
31622 fi
31623 +
31624 rm -f conftest.err conftest.$ac_ext
31625
31626 - # OK, works on sane cases. Now check whether non-existent headers
31627 + # OK, works on sane cases. Now check whether nonexistent headers
31628 # can be detected and how.
31629 cat >conftest.$ac_ext <<_ACEOF
31630 /* confdefs.h. */
31631 @@ -5458,24 +5899,22 @@ cat >>conftest.$ac_ext <<_ACEOF
31632 /* end confdefs.h. */
31633 #include <ac_nonexistent.h>
31634 _ACEOF
31635 -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31636 - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31637 +if { (ac_try="$ac_cpp conftest.$ac_ext"
31638 +case "(($ac_try" in
31639 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31640 + *) ac_try_echo=$ac_try;;
31641 +esac
31642 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31643 + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31644 ac_status=$?
31645 grep -v '^ *+' conftest.er1 >conftest.err
31646 rm -f conftest.er1
31647 cat conftest.err >&5
31648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31649 - (exit $ac_status); } >/dev/null; then
31650 - if test -s conftest.err; then
31651 - ac_cpp_err=$ac_c_preproc_warn_flag
31652 - ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
31653 - else
31654 - ac_cpp_err=
31655 - fi
31656 -else
31657 - ac_cpp_err=yes
31658 -fi
31659 -if test -z "$ac_cpp_err"; then
31660 + (exit $ac_status); } >/dev/null && {
31661 + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31662 + test ! -s conftest.err
31663 + }; then
31664 # Broken: success on invalid input.
31665 continue
31666 else
31667 @@ -5486,6 +5925,7 @@ sed 's/^/| /' conftest.$ac_ext >&5
31668 ac_preproc_ok=:
31669 break
31670 fi
31671 +
31672 rm -f conftest.err conftest.$ac_ext
31673
31674 done
31675 @@ -5503,8 +5943,8 @@ fi
31676 else
31677 ac_cv_prog_CPP=$CPP
31678 fi
31679 -echo "$as_me:$LINENO: result: $CPP" >&5
31680 -echo "${ECHO_T}$CPP" >&6
31681 +{ echo "$as_me:$LINENO: result: $CPP" >&5
31682 +echo "${ECHO_T}$CPP" >&6; }
31683 ac_preproc_ok=false
31684 for ac_c_preproc_warn_flag in '' yes
31685 do
31686 @@ -5527,24 +5967,22 @@ cat >>conftest.$ac_ext <<_ACEOF
31687 #endif
31688 Syntax error
31689 _ACEOF
31690 -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31691 - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31692 +if { (ac_try="$ac_cpp conftest.$ac_ext"
31693 +case "(($ac_try" in
31694 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31695 + *) ac_try_echo=$ac_try;;
31696 +esac
31697 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31698 + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31699 ac_status=$?
31700 grep -v '^ *+' conftest.er1 >conftest.err
31701 rm -f conftest.er1
31702 cat conftest.err >&5
31703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31704 - (exit $ac_status); } >/dev/null; then
31705 - if test -s conftest.err; then
31706 - ac_cpp_err=$ac_c_preproc_warn_flag
31707 - ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
31708 - else
31709 - ac_cpp_err=
31710 - fi
31711 -else
31712 - ac_cpp_err=yes
31713 -fi
31714 -if test -z "$ac_cpp_err"; then
31715 + (exit $ac_status); } >/dev/null && {
31716 + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31717 + test ! -s conftest.err
31718 + }; then
31719 :
31720 else
31721 echo "$as_me: failed program was:" >&5
31722 @@ -5553,9 +5991,10 @@ sed 's/^/| /' conftest.$ac_ext >&5
31723 # Broken: fails on valid input.
31724 continue
31725 fi
31726 +
31727 rm -f conftest.err conftest.$ac_ext
31728
31729 - # OK, works on sane cases. Now check whether non-existent headers
31730 + # OK, works on sane cases. Now check whether nonexistent headers
31731 # can be detected and how.
31732 cat >conftest.$ac_ext <<_ACEOF
31733 /* confdefs.h. */
31734 @@ -5565,24 +6004,22 @@ cat >>conftest.$ac_ext <<_ACEOF
31735 /* end confdefs.h. */
31736 #include <ac_nonexistent.h>
31737 _ACEOF
31738 -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31739 - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31740 +if { (ac_try="$ac_cpp conftest.$ac_ext"
31741 +case "(($ac_try" in
31742 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31743 + *) ac_try_echo=$ac_try;;
31744 +esac
31745 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31746 + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31747 ac_status=$?
31748 grep -v '^ *+' conftest.er1 >conftest.err
31749 rm -f conftest.er1
31750 cat conftest.err >&5
31751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31752 - (exit $ac_status); } >/dev/null; then
31753 - if test -s conftest.err; then
31754 - ac_cpp_err=$ac_c_preproc_warn_flag
31755 - ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
31756 - else
31757 - ac_cpp_err=
31758 - fi
31759 -else
31760 - ac_cpp_err=yes
31761 -fi
31762 -if test -z "$ac_cpp_err"; then
31763 + (exit $ac_status); } >/dev/null && {
31764 + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31765 + test ! -s conftest.err
31766 + }; then
31767 # Broken: success on invalid input.
31768 continue
31769 else
31770 @@ -5593,6 +6030,7 @@ sed 's/^/| /' conftest.$ac_ext >&5
31771 ac_preproc_ok=:
31772 break
31773 fi
31774 +
31775 rm -f conftest.err conftest.$ac_ext
31776
31777 done
31778 @@ -5615,23 +6053,170 @@ ac_link='$CC -o conftest$ac_exeext $CFLA
31779 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31780
31781
31782 -echo "$as_me:$LINENO: checking for egrep" >&5
31783 -echo $ECHO_N "checking for egrep... $ECHO_C" >&6
31784 -if test "${ac_cv_prog_egrep+set}" = set; then
31785 +{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
31786 +echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
31787 +if test "${ac_cv_path_GREP+set}" = set; then
31788 + echo $ECHO_N "(cached) $ECHO_C" >&6
31789 +else
31790 + # Extract the first word of "grep ggrep" to use in msg output
31791 +if test -z "$GREP"; then
31792 +set dummy grep ggrep; ac_prog_name=$2
31793 +if test "${ac_cv_path_GREP+set}" = set; then
31794 + echo $ECHO_N "(cached) $ECHO_C" >&6
31795 +else
31796 + ac_path_GREP_found=false
31797 +# Loop through the user's path and test for each of PROGNAME-LIST
31798 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31799 +for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
31800 +do
31801 + IFS=$as_save_IFS
31802 + test -z "$as_dir" && as_dir=.
31803 + for ac_prog in grep ggrep; do
31804 + for ac_exec_ext in '' $ac_executable_extensions; do
31805 + ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
31806 + { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
31807 + # Check for GNU ac_path_GREP and select it if it is found.
31808 + # Check for GNU $ac_path_GREP
31809 +case `"$ac_path_GREP" --version 2>&1` in
31810 +*GNU*)
31811 + ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
31812 +*)
31813 + ac_count=0
31814 + echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
31815 + while :
31816 + do
31817 + cat "conftest.in" "conftest.in" >"conftest.tmp"
31818 + mv "conftest.tmp" "conftest.in"
31819 + cp "conftest.in" "conftest.nl"
31820 + echo 'GREP' >> "conftest.nl"
31821 + "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
31822 + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
31823 + ac_count=`expr $ac_count + 1`
31824 + if test $ac_count -gt ${ac_path_GREP_max-0}; then
31825 + # Best one so far, save it but keep looking for a better one
31826 + ac_cv_path_GREP="$ac_path_GREP"
31827 + ac_path_GREP_max=$ac_count
31828 + fi
31829 + # 10*(2^10) chars as input seems more than enough
31830 + test $ac_count -gt 10 && break
31831 + done
31832 + rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
31833 +esac
31834 +
31835 +
31836 + $ac_path_GREP_found && break 3
31837 + done
31838 +done
31839 +
31840 +done
31841 +IFS=$as_save_IFS
31842 +
31843 +
31844 +fi
31845 +
31846 +GREP="$ac_cv_path_GREP"
31847 +if test -z "$GREP"; then
31848 + { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
31849 +echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
31850 + { (exit 1); exit 1; }; }
31851 +fi
31852 +
31853 +else
31854 + ac_cv_path_GREP=$GREP
31855 +fi
31856 +
31857 +
31858 +fi
31859 +{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
31860 +echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
31861 + GREP="$ac_cv_path_GREP"
31862 +
31863 +
31864 +{ echo "$as_me:$LINENO: checking for egrep" >&5
31865 +echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
31866 +if test "${ac_cv_path_EGREP+set}" = set; then
31867 + echo $ECHO_N "(cached) $ECHO_C" >&6
31868 +else
31869 + if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
31870 + then ac_cv_path_EGREP="$GREP -E"
31871 + else
31872 + # Extract the first word of "egrep" to use in msg output
31873 +if test -z "$EGREP"; then
31874 +set dummy egrep; ac_prog_name=$2
31875 +if test "${ac_cv_path_EGREP+set}" = set; then
31876 echo $ECHO_N "(cached) $ECHO_C" >&6
31877 else
31878 - if echo a | (grep -E '(a|b)') >/dev/null 2>&1
31879 - then ac_cv_prog_egrep='grep -E'
31880 - else ac_cv_prog_egrep='egrep'
31881 + ac_path_EGREP_found=false
31882 +# Loop through the user's path and test for each of PROGNAME-LIST
31883 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31884 +for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
31885 +do
31886 + IFS=$as_save_IFS
31887 + test -z "$as_dir" && as_dir=.
31888 + for ac_prog in egrep; do
31889 + for ac_exec_ext in '' $ac_executable_extensions; do
31890 + ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
31891 + { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
31892 + # Check for GNU ac_path_EGREP and select it if it is found.
31893 + # Check for GNU $ac_path_EGREP
31894 +case `"$ac_path_EGREP" --version 2>&1` in
31895 +*GNU*)
31896 + ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
31897 +*)
31898 + ac_count=0
31899 + echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
31900 + while :
31901 + do
31902 + cat "conftest.in" "conftest.in" >"conftest.tmp"
31903 + mv "conftest.tmp" "conftest.in"
31904 + cp "conftest.in" "conftest.nl"
31905 + echo 'EGREP' >> "conftest.nl"
31906 + "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
31907 + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
31908 + ac_count=`expr $ac_count + 1`
31909 + if test $ac_count -gt ${ac_path_EGREP_max-0}; then
31910 + # Best one so far, save it but keep looking for a better one
31911 + ac_cv_path_EGREP="$ac_path_EGREP"
31912 + ac_path_EGREP_max=$ac_count
31913 fi
31914 + # 10*(2^10) chars as input seems more than enough
31915 + test $ac_count -gt 10 && break
31916 + done
31917 + rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
31918 +esac
31919 +
31920 +
31921 + $ac_path_EGREP_found && break 3
31922 + done
31923 +done
31924 +
31925 +done
31926 +IFS=$as_save_IFS
31927 +
31928 +
31929 +fi
31930 +
31931 +EGREP="$ac_cv_path_EGREP"
31932 +if test -z "$EGREP"; then
31933 + { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
31934 +echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
31935 + { (exit 1); exit 1; }; }
31936 +fi
31937 +
31938 +else
31939 + ac_cv_path_EGREP=$EGREP
31940 +fi
31941 +
31942 +
31943 + fi
31944 fi
31945 -echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
31946 -echo "${ECHO_T}$ac_cv_prog_egrep" >&6
31947 - EGREP=$ac_cv_prog_egrep
31948 +{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
31949 +echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
31950 + EGREP="$ac_cv_path_EGREP"
31951
31952
31953 -echo "$as_me:$LINENO: checking for ANSI C header files" >&5
31954 -echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
31955 +{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
31956 +echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
31957 if test "${ac_cv_header_stdc+set}" = set; then
31958 echo $ECHO_N "(cached) $ECHO_C" >&6
31959 else
31960 @@ -5655,35 +6240,31 @@ main ()
31961 }
31962 _ACEOF
31963 rm -f conftest.$ac_objext
31964 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31965 - (eval $ac_compile) 2>conftest.er1
31966 +if { (ac_try="$ac_compile"
31967 +case "(($ac_try" in
31968 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31969 + *) ac_try_echo=$ac_try;;
31970 +esac
31971 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31972 + (eval "$ac_compile") 2>conftest.er1
31973 ac_status=$?
31974 grep -v '^ *+' conftest.er1 >conftest.err
31975 rm -f conftest.er1
31976 cat conftest.err >&5
31977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31978 - (exit $ac_status); } &&
31979 - { ac_try='test -z "$ac_c_werror_flag"
31980 - || test ! -s conftest.err'
31981 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31982 - (eval $ac_try) 2>&5
31983 - ac_status=$?
31984 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
31985 - (exit $ac_status); }; } &&
31986 - { ac_try='test -s conftest.$ac_objext'
31987 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31988 - (eval $ac_try) 2>&5
31989 - ac_status=$?
31990 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
31991 - (exit $ac_status); }; }; then
31992 + (exit $ac_status); } && {
31993 + test -z "$ac_c_werror_flag" ||
31994 + test ! -s conftest.err
31995 + } && test -s conftest.$ac_objext; then
31996 ac_cv_header_stdc=yes
31997 else
31998 echo "$as_me: failed program was:" >&5
31999 sed 's/^/| /' conftest.$ac_ext >&5
32000
32001 -ac_cv_header_stdc=no
32002 + ac_cv_header_stdc=no
32003 fi
32004 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32005 +
32006 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32007
32008 if test $ac_cv_header_stdc = yes; then
32009 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
32010 @@ -5739,6 +6320,7 @@ cat confdefs.h >>conftest.$ac_ext
32011 cat >>conftest.$ac_ext <<_ACEOF
32012 /* end confdefs.h. */
32013 #include <ctype.h>
32014 +#include <stdlib.h>
32015 #if ((' ' & 0x0FF) == 0x020)
32016 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
32017 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
32018 @@ -5758,18 +6340,27 @@ main ()
32019 for (i = 0; i < 256; i++)
32020 if (XOR (islower (i), ISLOWER (i))
32021 || toupper (i) != TOUPPER (i))
32022 - exit(2);
32023 - exit (0);
32024 + return 2;
32025 + return 0;
32026 }
32027 _ACEOF
32028 rm -f conftest$ac_exeext
32029 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32030 - (eval $ac_link) 2>&5
32031 +if { (ac_try="$ac_link"
32032 +case "(($ac_try" in
32033 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32034 + *) ac_try_echo=$ac_try;;
32035 +esac
32036 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32037 + (eval "$ac_link") 2>&5
32038 ac_status=$?
32039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32040 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32041 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32042 - (eval $ac_try) 2>&5
32043 + { (case "(($ac_try" in
32044 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32045 + *) ac_try_echo=$ac_try;;
32046 +esac
32047 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32048 + (eval "$ac_try") 2>&5
32049 ac_status=$?
32050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32051 (exit $ac_status); }; }; then
32052 @@ -5782,12 +6373,14 @@ sed 's/^/| /' conftest.$ac_ext >&5
32053 ( exit $ac_status )
32054 ac_cv_header_stdc=no
32055 fi
32056 -rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32057 +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32058 fi
32059 +
32060 +
32061 fi
32062 fi
32063 -echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
32064 -echo "${ECHO_T}$ac_cv_header_stdc" >&6
32065 +{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
32066 +echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
32067 if test $ac_cv_header_stdc = yes; then
32068
32069 cat >>confdefs.h <<\_ACEOF
32070 @@ -5796,8 +6389,8 @@ _ACEOF
32071
32072 fi
32073
32074 -echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
32075 -echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
32076 +{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
32077 +echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
32078 if test "${ac_cv_c_const+set}" = set; then
32079 echo $ECHO_N "(cached) $ECHO_C" >&6
32080 else
32081 @@ -5815,10 +6408,10 @@ main ()
32082 #ifndef __cplusplus
32083 /* Ultrix mips cc rejects this. */
32084 typedef int charset[2];
32085 - const charset x;
32086 + const charset cs;
32087 /* SunOS 4.1.1 cc rejects this. */
32088 - char const *const *ccp;
32089 - char **p;
32090 + char const *const *pcpcc;
32091 + char **ppc;
32092 /* NEC SVR4.0.2 mips cc rejects this. */
32093 struct point {int x, y;};
32094 static struct point const zero = {0,0};
32095 @@ -5827,16 +6420,17 @@ main ()
32096 an arm of an if-expression whose if-part is not a constant
32097 expression */
32098 const char *g = "string";
32099 - ccp = &g + (g ? g-g : 0);
32100 + pcpcc = &g + (g ? g-g : 0);
32101 /* HPUX 7.0 cc rejects these. */
32102 - ++ccp;
32103 - p = (char**) ccp;
32104 - ccp = (char const *const *) p;
32105 + ++pcpcc;
32106 + ppc = (char**) pcpcc;
32107 + pcpcc = (char const *const *) ppc;
32108 { /* SCO 3.2v4 cc rejects this. */
32109 char *t;
32110 char const *s = 0 ? (char *) 0 : (char const *) 0;
32111
32112 *t++ = 0;
32113 + if (s) return 0;
32114 }
32115 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
32116 int x[] = {25, 17};
32117 @@ -5855,7 +6449,9 @@ main ()
32118 }
32119 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
32120 const int foo = 10;
32121 + if (!foo) return 0;
32122 }
32123 + return !cs[0] && !zero.x;
32124 #endif
32125
32126 ;
32127 @@ -5863,38 +6459,34 @@ main ()
32128 }
32129 _ACEOF
32130 rm -f conftest.$ac_objext
32131 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32132 - (eval $ac_compile) 2>conftest.er1
32133 +if { (ac_try="$ac_compile"
32134 +case "(($ac_try" in
32135 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32136 + *) ac_try_echo=$ac_try;;
32137 +esac
32138 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32139 + (eval "$ac_compile") 2>conftest.er1
32140 ac_status=$?
32141 grep -v '^ *+' conftest.er1 >conftest.err
32142 rm -f conftest.er1
32143 cat conftest.err >&5
32144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32145 - (exit $ac_status); } &&
32146 - { ac_try='test -z "$ac_c_werror_flag"
32147 - || test ! -s conftest.err'
32148 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32149 - (eval $ac_try) 2>&5
32150 - ac_status=$?
32151 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
32152 - (exit $ac_status); }; } &&
32153 - { ac_try='test -s conftest.$ac_objext'
32154 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32155 - (eval $ac_try) 2>&5
32156 - ac_status=$?
32157 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
32158 - (exit $ac_status); }; }; then
32159 + (exit $ac_status); } && {
32160 + test -z "$ac_c_werror_flag" ||
32161 + test ! -s conftest.err
32162 + } && test -s conftest.$ac_objext; then
32163 ac_cv_c_const=yes
32164 else
32165 echo "$as_me: failed program was:" >&5
32166 sed 's/^/| /' conftest.$ac_ext >&5
32167
32168 -ac_cv_c_const=no
32169 + ac_cv_c_const=no
32170 fi
32171 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32172 +
32173 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32174 fi
32175 -echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
32176 -echo "${ECHO_T}$ac_cv_c_const" >&6
32177 +{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
32178 +echo "${ECHO_T}$ac_cv_c_const" >&6; }
32179 if test $ac_cv_c_const = no; then
32180
32181 cat >>confdefs.h <<\_ACEOF
32182 @@ -5903,8 +6495,8 @@ _ACEOF
32183
32184 fi
32185
32186 -echo "$as_me:$LINENO: checking for inline" >&5
32187 -echo $ECHO_N "checking for inline... $ECHO_C" >&6
32188 +{ echo "$as_me:$LINENO: checking for inline" >&5
32189 +echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
32190 if test "${ac_cv_c_inline+set}" = set; then
32191 echo $ECHO_N "(cached) $ECHO_C" >&6
32192 else
32193 @@ -5924,39 +6516,37 @@ $ac_kw foo_t foo () {return 0; }
32194
32195 _ACEOF
32196 rm -f conftest.$ac_objext
32197 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32198 - (eval $ac_compile) 2>conftest.er1
32199 +if { (ac_try="$ac_compile"
32200 +case "(($ac_try" in
32201 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32202 + *) ac_try_echo=$ac_try;;
32203 +esac
32204 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32205 + (eval "$ac_compile") 2>conftest.er1
32206 ac_status=$?
32207 grep -v '^ *+' conftest.er1 >conftest.err
32208 rm -f conftest.er1
32209 cat conftest.err >&5
32210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32211 - (exit $ac_status); } &&
32212 - { ac_try='test -z "$ac_c_werror_flag"
32213 - || test ! -s conftest.err'
32214 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32215 - (eval $ac_try) 2>&5
32216 - ac_status=$?
32217 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
32218 - (exit $ac_status); }; } &&
32219 - { ac_try='test -s conftest.$ac_objext'
32220 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32221 - (eval $ac_try) 2>&5
32222 - ac_status=$?
32223 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
32224 - (exit $ac_status); }; }; then
32225 - ac_cv_c_inline=$ac_kw; break
32226 + (exit $ac_status); } && {
32227 + test -z "$ac_c_werror_flag" ||
32228 + test ! -s conftest.err
32229 + } && test -s conftest.$ac_objext; then
32230 + ac_cv_c_inline=$ac_kw
32231 else
32232 echo "$as_me: failed program was:" >&5
32233 sed 's/^/| /' conftest.$ac_ext >&5
32234
32235 +
32236 fi
32237 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32238 +
32239 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32240 + test "$ac_cv_c_inline" != no && break
32241 done
32242
32243 fi
32244 -echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
32245 -echo "${ECHO_T}$ac_cv_c_inline" >&6
32246 +{ echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
32247 +echo "${ECHO_T}$ac_cv_c_inline" >&6; }
32248
32249
32250 case $ac_cv_c_inline in
32251 @@ -5988,9 +6578,9 @@ for ac_header in sys/types.h sys/stat.h
32252 inttypes.h stdint.h unistd.h
32253 do
32254 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32255 -echo "$as_me:$LINENO: checking for $ac_header" >&5
32256 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32257 -if eval "test \"\${$as_ac_Header+set}\" = set"; then
32258 +{ echo "$as_me:$LINENO: checking for $ac_header" >&5
32259 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
32260 +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32261 echo $ECHO_N "(cached) $ECHO_C" >&6
32262 else
32263 cat >conftest.$ac_ext <<_ACEOF
32264 @@ -6004,38 +6594,35 @@ $ac_includes_default
32265 #include <$ac_header>
32266 _ACEOF
32267 rm -f conftest.$ac_objext
32268 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32269 - (eval $ac_compile) 2>conftest.er1
32270 +if { (ac_try="$ac_compile"
32271 +case "(($ac_try" in
32272 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32273 + *) ac_try_echo=$ac_try;;
32274 +esac
32275 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32276 + (eval "$ac_compile") 2>conftest.er1
32277 ac_status=$?
32278 grep -v '^ *+' conftest.er1 >conftest.err
32279 rm -f conftest.er1
32280 cat conftest.err >&5
32281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32282 - (exit $ac_status); } &&
32283 - { ac_try='test -z "$ac_c_werror_flag"
32284 - || test ! -s conftest.err'
32285 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32286 - (eval $ac_try) 2>&5
32287 - ac_status=$?
32288 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
32289 - (exit $ac_status); }; } &&
32290 - { ac_try='test -s conftest.$ac_objext'
32291 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32292 - (eval $ac_try) 2>&5
32293 - ac_status=$?
32294 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
32295 - (exit $ac_status); }; }; then
32296 + (exit $ac_status); } && {
32297 + test -z "$ac_c_werror_flag" ||
32298 + test ! -s conftest.err
32299 + } && test -s conftest.$ac_objext; then
32300 eval "$as_ac_Header=yes"
32301 else
32302 echo "$as_me: failed program was:" >&5
32303 sed 's/^/| /' conftest.$ac_ext >&5
32304
32305 -eval "$as_ac_Header=no"
32306 + eval "$as_ac_Header=no"
32307 fi
32308 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32309 +
32310 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32311 fi
32312 -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32313 -echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32314 +ac_res=`eval echo '${'$as_ac_Header'}'`
32315 + { echo "$as_me:$LINENO: result: $ac_res" >&5
32316 +echo "${ECHO_T}$ac_res" >&6; }
32317 if test `eval echo '${'$as_ac_Header'}'` = yes; then
32318 cat >>confdefs.h <<_ACEOF
32319 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32320 @@ -6046,8 +6633,8 @@ fi
32321 done
32322
32323
32324 -echo "$as_me:$LINENO: checking for off_t" >&5
32325 -echo $ECHO_N "checking for off_t... $ECHO_C" >&6
32326 +{ echo "$as_me:$LINENO: checking for off_t" >&5
32327 +echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
32328 if test "${ac_cv_type_off_t+set}" = set; then
32329 echo $ECHO_N "(cached) $ECHO_C" >&6
32330 else
32331 @@ -6058,62 +6645,59 @@ cat confdefs.h >>conftest.$ac_ext
32332 cat >>conftest.$ac_ext <<_ACEOF
32333 /* end confdefs.h. */
32334 $ac_includes_default
32335 +typedef off_t ac__type_new_;
32336 int
32337 main ()
32338 {
32339 -if ((off_t *) 0)
32340 +if ((ac__type_new_ *) 0)
32341 return 0;
32342 -if (sizeof (off_t))
32343 +if (sizeof (ac__type_new_))
32344 return 0;
32345 ;
32346 return 0;
32347 }
32348 _ACEOF
32349 rm -f conftest.$ac_objext
32350 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32351 - (eval $ac_compile) 2>conftest.er1
32352 +if { (ac_try="$ac_compile"
32353 +case "(($ac_try" in
32354 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32355 + *) ac_try_echo=$ac_try;;
32356 +esac
32357 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32358 + (eval "$ac_compile") 2>conftest.er1
32359 ac_status=$?
32360 grep -v '^ *+' conftest.er1 >conftest.err
32361 rm -f conftest.er1
32362 cat conftest.err >&5
32363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32364 - (exit $ac_status); } &&
32365 - { ac_try='test -z "$ac_c_werror_flag"
32366 - || test ! -s conftest.err'
32367 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32368 - (eval $ac_try) 2>&5
32369 - ac_status=$?
32370 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
32371 - (exit $ac_status); }; } &&
32372 - { ac_try='test -s conftest.$ac_objext'
32373 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32374 - (eval $ac_try) 2>&5
32375 - ac_status=$?
32376 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
32377 - (exit $ac_status); }; }; then
32378 + (exit $ac_status); } && {
32379 + test -z "$ac_c_werror_flag" ||
32380 + test ! -s conftest.err
32381 + } && test -s conftest.$ac_objext; then
32382 ac_cv_type_off_t=yes
32383 else
32384 echo "$as_me: failed program was:" >&5
32385 sed 's/^/| /' conftest.$ac_ext >&5
32386
32387 -ac_cv_type_off_t=no
32388 + ac_cv_type_off_t=no
32389 fi
32390 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32391 +
32392 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32393 fi
32394 -echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
32395 -echo "${ECHO_T}$ac_cv_type_off_t" >&6
32396 +{ echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
32397 +echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
32398 if test $ac_cv_type_off_t = yes; then
32399 :
32400 else
32401
32402 cat >>confdefs.h <<_ACEOF
32403 -#define off_t long
32404 +#define off_t long int
32405 _ACEOF
32406
32407 fi
32408
32409 -echo "$as_me:$LINENO: checking for size_t" >&5
32410 -echo $ECHO_N "checking for size_t... $ECHO_C" >&6
32411 +{ echo "$as_me:$LINENO: checking for size_t" >&5
32412 +echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
32413 if test "${ac_cv_type_size_t+set}" = set; then
32414 echo $ECHO_N "(cached) $ECHO_C" >&6
32415 else
32416 @@ -6124,64 +6708,61 @@ cat confdefs.h >>conftest.$ac_ext
32417 cat >>conftest.$ac_ext <<_ACEOF
32418 /* end confdefs.h. */
32419 $ac_includes_default
32420 +typedef size_t ac__type_new_;
32421 int
32422 main ()
32423 {
32424 -if ((size_t *) 0)
32425 +if ((ac__type_new_ *) 0)
32426 return 0;
32427 -if (sizeof (size_t))
32428 +if (sizeof (ac__type_new_))
32429 return 0;
32430 ;
32431 return 0;
32432 }
32433 _ACEOF
32434 rm -f conftest.$ac_objext
32435 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32436 - (eval $ac_compile) 2>conftest.er1
32437 +if { (ac_try="$ac_compile"
32438 +case "(($ac_try" in
32439 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32440 + *) ac_try_echo=$ac_try;;
32441 +esac
32442 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32443 + (eval "$ac_compile") 2>conftest.er1
32444 ac_status=$?
32445 grep -v '^ *+' conftest.er1 >conftest.err
32446 rm -f conftest.er1
32447 cat conftest.err >&5
32448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32449 - (exit $ac_status); } &&
32450 - { ac_try='test -z "$ac_c_werror_flag"
32451 - || test ! -s conftest.err'
32452 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32453 - (eval $ac_try) 2>&5
32454 - ac_status=$?
32455 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
32456 - (exit $ac_status); }; } &&
32457 - { ac_try='test -s conftest.$ac_objext'
32458 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32459 - (eval $ac_try) 2>&5
32460 - ac_status=$?
32461 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
32462 - (exit $ac_status); }; }; then
32463 + (exit $ac_status); } && {
32464 + test -z "$ac_c_werror_flag" ||
32465 + test ! -s conftest.err
32466 + } && test -s conftest.$ac_objext; then
32467 ac_cv_type_size_t=yes
32468 else
32469 echo "$as_me: failed program was:" >&5
32470 sed 's/^/| /' conftest.$ac_ext >&5
32471
32472 -ac_cv_type_size_t=no
32473 + ac_cv_type_size_t=no
32474 fi
32475 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32476 +
32477 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32478 fi
32479 -echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
32480 -echo "${ECHO_T}$ac_cv_type_size_t" >&6
32481 +{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
32482 +echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
32483 if test $ac_cv_type_size_t = yes; then
32484 :
32485 else
32486
32487 cat >>confdefs.h <<_ACEOF
32488 -#define size_t unsigned
32489 +#define size_t unsigned int
32490 _ACEOF
32491
32492 fi
32493
32494 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
32495 # for constant arguments. Useless!
32496 -echo "$as_me:$LINENO: checking for working alloca.h" >&5
32497 -echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
32498 +{ echo "$as_me:$LINENO: checking for working alloca.h" >&5
32499 +echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
32500 if test "${ac_cv_working_alloca_h+set}" = set; then
32501 echo $ECHO_N "(cached) $ECHO_C" >&6
32502 else
32503 @@ -6196,44 +6777,42 @@ int
32504 main ()
32505 {
32506 char *p = (char *) alloca (2 * sizeof (int));
32507 + if (p) return 0;
32508 ;
32509 return 0;
32510 }
32511 _ACEOF
32512 rm -f conftest.$ac_objext conftest$ac_exeext
32513 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32514 - (eval $ac_link) 2>conftest.er1
32515 +if { (ac_try="$ac_link"
32516 +case "(($ac_try" in
32517 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32518 + *) ac_try_echo=$ac_try;;
32519 +esac
32520 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32521 + (eval "$ac_link") 2>conftest.er1
32522 ac_status=$?
32523 grep -v '^ *+' conftest.er1 >conftest.err
32524 rm -f conftest.er1
32525 cat conftest.err >&5
32526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32527 - (exit $ac_status); } &&
32528 - { ac_try='test -z "$ac_c_werror_flag"
32529 - || test ! -s conftest.err'
32530 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32531 - (eval $ac_try) 2>&5
32532 - ac_status=$?
32533 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
32534 - (exit $ac_status); }; } &&
32535 - { ac_try='test -s conftest$ac_exeext'
32536 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32537 - (eval $ac_try) 2>&5
32538 - ac_status=$?
32539 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
32540 - (exit $ac_status); }; }; then
32541 + (exit $ac_status); } && {
32542 + test -z "$ac_c_werror_flag" ||
32543 + test ! -s conftest.err
32544 + } && test -s conftest$ac_exeext &&
32545 + $as_test_x conftest$ac_exeext; then
32546 ac_cv_working_alloca_h=yes
32547 else
32548 echo "$as_me: failed program was:" >&5
32549 sed 's/^/| /' conftest.$ac_ext >&5
32550
32551 -ac_cv_working_alloca_h=no
32552 + ac_cv_working_alloca_h=no
32553 fi
32554 -rm -f conftest.err conftest.$ac_objext \
32555 +
32556 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32557 conftest$ac_exeext conftest.$ac_ext
32558 fi
32559 -echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
32560 -echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
32561 +{ echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
32562 +echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
32563 if test $ac_cv_working_alloca_h = yes; then
32564
32565 cat >>confdefs.h <<\_ACEOF
32566 @@ -6242,8 +6821,8 @@ _ACEOF
32567
32568 fi
32569
32570 -echo "$as_me:$LINENO: checking for alloca" >&5
32571 -echo $ECHO_N "checking for alloca... $ECHO_C" >&6
32572 +{ echo "$as_me:$LINENO: checking for alloca" >&5
32573 +echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
32574 if test "${ac_cv_func_alloca_works+set}" = set; then
32575 echo $ECHO_N "(cached) $ECHO_C" >&6
32576 else
32577 @@ -6260,7 +6839,7 @@ cat >>conftest.$ac_ext <<_ACEOF
32578 # include <malloc.h>
32579 # define alloca _alloca
32580 # else
32581 -# if HAVE_ALLOCA_H
32582 +# ifdef HAVE_ALLOCA_H
32583 # include <alloca.h>
32584 # else
32585 # ifdef _AIX
32586 @@ -6278,44 +6857,42 @@ int
32587 main ()
32588 {
32589 char *p = (char *) alloca (1);
32590 + if (p) return 0;
32591 ;
32592 return 0;
32593 }
32594 _ACEOF
32595 rm -f conftest.$ac_objext conftest$ac_exeext
32596 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32597 - (eval $ac_link) 2>conftest.er1
32598 +if { (ac_try="$ac_link"
32599 +case "(($ac_try" in
32600 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32601 + *) ac_try_echo=$ac_try;;
32602 +esac
32603 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32604 + (eval "$ac_link") 2>conftest.er1
32605 ac_status=$?
32606 grep -v '^ *+' conftest.er1 >conftest.err
32607 rm -f conftest.er1
32608 cat conftest.err >&5
32609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32610 - (exit $ac_status); } &&
32611 - { ac_try='test -z "$ac_c_werror_flag"
32612 - || test ! -s conftest.err'
32613 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32614 - (eval $ac_try) 2>&5
32615 - ac_status=$?
32616 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
32617 - (exit $ac_status); }; } &&
32618 - { ac_try='test -s conftest$ac_exeext'
32619 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32620 - (eval $ac_try) 2>&5
32621 - ac_status=$?
32622 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
32623 - (exit $ac_status); }; }; then
32624 + (exit $ac_status); } && {
32625 + test -z "$ac_c_werror_flag" ||
32626 + test ! -s conftest.err
32627 + } && test -s conftest$ac_exeext &&
32628 + $as_test_x conftest$ac_exeext; then
32629 ac_cv_func_alloca_works=yes
32630 else
32631 echo "$as_me: failed program was:" >&5
32632 sed 's/^/| /' conftest.$ac_ext >&5
32633
32634 -ac_cv_func_alloca_works=no
32635 + ac_cv_func_alloca_works=no
32636 fi
32637 -rm -f conftest.err conftest.$ac_objext \
32638 +
32639 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32640 conftest$ac_exeext conftest.$ac_ext
32641 fi
32642 -echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
32643 -echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
32644 +{ echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
32645 +echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
32646
32647 if test $ac_cv_func_alloca_works = yes; then
32648
32649 @@ -6329,15 +6906,15 @@ else
32650 # contain a buggy version. If you still want to use their alloca,
32651 # use ar to extract alloca.o from them instead of compiling alloca.c.
32652
32653 -ALLOCA=alloca.$ac_objext
32654 +ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
32655
32656 cat >>confdefs.h <<\_ACEOF
32657 #define C_ALLOCA 1
32658 _ACEOF
32659
32660
32661 -echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
32662 -echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
32663 +{ echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
32664 +echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
32665 if test "${ac_cv_os_cray+set}" = set; then
32666 echo $ECHO_N "(cached) $ECHO_C" >&6
32667 else
32668 @@ -6347,7 +6924,7 @@ _ACEOF
32669 cat confdefs.h >>conftest.$ac_ext
32670 cat >>conftest.$ac_ext <<_ACEOF
32671 /* end confdefs.h. */
32672 -#if defined(CRAY) && ! defined(CRAY2)
32673 +#if defined CRAY && ! defined CRAY2
32674 webecray
32675 #else
32676 wenotbecray
32677 @@ -6363,14 +6940,14 @@ fi
32678 rm -f conftest*
32679
32680 fi
32681 -echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
32682 -echo "${ECHO_T}$ac_cv_os_cray" >&6
32683 +{ echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
32684 +echo "${ECHO_T}$ac_cv_os_cray" >&6; }
32685 if test $ac_cv_os_cray = yes; then
32686 for ac_func in _getb67 GETB67 getb67; do
32687 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32688 -echo "$as_me:$LINENO: checking for $ac_func" >&5
32689 -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32690 -if eval "test \"\${$as_ac_var+set}\" = set"; then
32691 +{ echo "$as_me:$LINENO: checking for $ac_func" >&5
32692 +echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32693 +if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32694 echo $ECHO_N "(cached) $ECHO_C" >&6
32695 else
32696 cat >conftest.$ac_ext <<_ACEOF
32697 @@ -6396,68 +6973,60 @@ cat >>conftest.$ac_ext <<_ACEOF
32698
32699 #undef $ac_func
32700
32701 -/* Override any gcc2 internal prototype to avoid an error. */
32702 +/* Override any GCC internal prototype to avoid an error.
32703 + Use char because int might match the return type of a GCC
32704 + builtin and then its argument prototype would still apply. */
32705 #ifdef __cplusplus
32706 extern "C"
32707 -{
32708 #endif
32709 -/* We use char because int might match the return type of a gcc2
32710 - builtin and then its argument prototype would still apply. */
32711 char $ac_func ();
32712 /* The GNU C library defines this for functions which it implements
32713 to always fail with ENOSYS. Some functions are actually named
32714 something starting with __ and the normal name is an alias. */
32715 -#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32716 +#if defined __stub_$ac_func || defined __stub___$ac_func
32717 choke me
32718 -#else
32719 -char (*f) () = $ac_func;
32720 -#endif
32721 -#ifdef __cplusplus
32722 -}
32723 #endif
32724
32725 int
32726 main ()
32727 {
32728 -return f != $ac_func;
32729 +return $ac_func ();
32730 ;
32731 return 0;
32732 }
32733 _ACEOF
32734 rm -f conftest.$ac_objext conftest$ac_exeext
32735 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32736 - (eval $ac_link) 2>conftest.er1
32737 +if { (ac_try="$ac_link"
32738 +case "(($ac_try" in
32739 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32740 + *) ac_try_echo=$ac_try;;
32741 +esac
32742 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32743 + (eval "$ac_link") 2>conftest.er1
32744 ac_status=$?
32745 grep -v '^ *+' conftest.er1 >conftest.err
32746 rm -f conftest.er1
32747 cat conftest.err >&5
32748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32749 - (exit $ac_status); } &&
32750 - { ac_try='test -z "$ac_c_werror_flag"
32751 - || test ! -s conftest.err'
32752 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32753 - (eval $ac_try) 2>&5
32754 - ac_status=$?
32755 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
32756 - (exit $ac_status); }; } &&
32757 - { ac_try='test -s conftest$ac_exeext'
32758 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32759 - (eval $ac_try) 2>&5
32760 - ac_status=$?
32761 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
32762 - (exit $ac_status); }; }; then
32763 + (exit $ac_status); } && {
32764 + test -z "$ac_c_werror_flag" ||
32765 + test ! -s conftest.err
32766 + } && test -s conftest$ac_exeext &&
32767 + $as_test_x conftest$ac_exeext; then
32768 eval "$as_ac_var=yes"
32769 else
32770 echo "$as_me: failed program was:" >&5
32771 sed 's/^/| /' conftest.$ac_ext >&5
32772
32773 -eval "$as_ac_var=no"
32774 + eval "$as_ac_var=no"
32775 fi
32776 -rm -f conftest.err conftest.$ac_objext \
32777 +
32778 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32779 conftest$ac_exeext conftest.$ac_ext
32780 fi
32781 -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32782 -echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32783 +ac_res=`eval echo '${'$as_ac_var'}'`
32784 + { echo "$as_me:$LINENO: result: $ac_res" >&5
32785 +echo "${ECHO_T}$ac_res" >&6; }
32786 if test `eval echo '${'$as_ac_var'}'` = yes; then
32787
32788 cat >>confdefs.h <<_ACEOF
32789 @@ -6470,8 +7039,8 @@ fi
32790 done
32791 fi
32792
32793 -echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
32794 -echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
32795 +{ echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
32796 +echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
32797 if test "${ac_cv_c_stack_direction+set}" = set; then
32798 echo $ECHO_N "(cached) $ECHO_C" >&6
32799 else
32800 @@ -6484,6 +7053,7 @@ _ACEOF
32801 cat confdefs.h >>conftest.$ac_ext
32802 cat >>conftest.$ac_ext <<_ACEOF
32803 /* end confdefs.h. */
32804 +$ac_includes_default
32805 int
32806 find_stack_direction ()
32807 {
32808 @@ -6501,17 +7071,26 @@ find_stack_direction ()
32809 int
32810 main ()
32811 {
32812 - exit (find_stack_direction () < 0);
32813 + return find_stack_direction () < 0;
32814 }
32815 _ACEOF
32816 rm -f conftest$ac_exeext
32817 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32818 - (eval $ac_link) 2>&5
32819 +if { (ac_try="$ac_link"
32820 +case "(($ac_try" in
32821 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32822 + *) ac_try_echo=$ac_try;;
32823 +esac
32824 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32825 + (eval "$ac_link") 2>&5
32826 ac_status=$?
32827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32828 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32829 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32830 - (eval $ac_try) 2>&5
32831 + { (case "(($ac_try" in
32832 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32833 + *) ac_try_echo=$ac_try;;
32834 +esac
32835 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32836 + (eval "$ac_try") 2>&5
32837 ac_status=$?
32838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32839 (exit $ac_status); }; }; then
32840 @@ -6524,11 +7103,13 @@ sed 's/^/| /' conftest.$ac_ext >&5
32841 ( exit $ac_status )
32842 ac_cv_c_stack_direction=-1
32843 fi
32844 -rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32845 +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32846 fi
32847 +
32848 +
32849 fi
32850 -echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
32851 -echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
32852 +{ echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
32853 +echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
32854
32855 cat >>confdefs.h <<_ACEOF
32856 #define STACK_DIRECTION $ac_cv_c_stack_direction
32857 @@ -6542,18 +7123,19 @@ fi
32858 for ac_header in stdlib.h unistd.h
32859 do
32860 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32861 -if eval "test \"\${$as_ac_Header+set}\" = set"; then
32862 - echo "$as_me:$LINENO: checking for $ac_header" >&5
32863 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32864 -if eval "test \"\${$as_ac_Header+set}\" = set"; then
32865 +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32866 + { echo "$as_me:$LINENO: checking for $ac_header" >&5
32867 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
32868 +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32869 echo $ECHO_N "(cached) $ECHO_C" >&6
32870 fi
32871 -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32872 -echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32873 +ac_res=`eval echo '${'$as_ac_Header'}'`
32874 + { echo "$as_me:$LINENO: result: $ac_res" >&5
32875 +echo "${ECHO_T}$ac_res" >&6; }
32876 else
32877 # Is the header compilable?
32878 -echo "$as_me:$LINENO: checking $ac_header usability" >&5
32879 -echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
32880 +{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
32881 +echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
32882 cat >conftest.$ac_ext <<_ACEOF
32883 /* confdefs.h. */
32884 _ACEOF
32885 @@ -6564,41 +7146,37 @@ $ac_includes_default
32886 #include <$ac_header>
32887 _ACEOF
32888 rm -f conftest.$ac_objext
32889 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32890 - (eval $ac_compile) 2>conftest.er1
32891 +if { (ac_try="$ac_compile"
32892 +case "(($ac_try" in
32893 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32894 + *) ac_try_echo=$ac_try;;
32895 +esac
32896 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32897 + (eval "$ac_compile") 2>conftest.er1
32898 ac_status=$?
32899 grep -v '^ *+' conftest.er1 >conftest.err
32900 rm -f conftest.er1
32901 cat conftest.err >&5
32902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32903 - (exit $ac_status); } &&
32904 - { ac_try='test -z "$ac_c_werror_flag"
32905 - || test ! -s conftest.err'
32906 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32907 - (eval $ac_try) 2>&5
32908 - ac_status=$?
32909 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
32910 - (exit $ac_status); }; } &&
32911 - { ac_try='test -s conftest.$ac_objext'
32912 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32913 - (eval $ac_try) 2>&5
32914 - ac_status=$?
32915 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
32916 - (exit $ac_status); }; }; then
32917 + (exit $ac_status); } && {
32918 + test -z "$ac_c_werror_flag" ||
32919 + test ! -s conftest.err
32920 + } && test -s conftest.$ac_objext; then
32921 ac_header_compiler=yes
32922 else
32923 echo "$as_me: failed program was:" >&5
32924 sed 's/^/| /' conftest.$ac_ext >&5
32925
32926 -ac_header_compiler=no
32927 + ac_header_compiler=no
32928 fi
32929 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32930 -echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32931 -echo "${ECHO_T}$ac_header_compiler" >&6
32932 +
32933 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32934 +{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32935 +echo "${ECHO_T}$ac_header_compiler" >&6; }
32936
32937 # Is the header present?
32938 -echo "$as_me:$LINENO: checking $ac_header presence" >&5
32939 -echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
32940 +{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
32941 +echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
32942 cat >conftest.$ac_ext <<_ACEOF
32943 /* confdefs.h. */
32944 _ACEOF
32945 @@ -6607,24 +7185,22 @@ cat >>conftest.$ac_ext <<_ACEOF
32946 /* end confdefs.h. */
32947 #include <$ac_header>
32948 _ACEOF
32949 -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32950 - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
32951 +if { (ac_try="$ac_cpp conftest.$ac_ext"
32952 +case "(($ac_try" in
32953 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32954 + *) ac_try_echo=$ac_try;;
32955 +esac
32956 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32957 + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32958 ac_status=$?
32959 grep -v '^ *+' conftest.er1 >conftest.err
32960 rm -f conftest.er1
32961 cat conftest.err >&5
32962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32963 - (exit $ac_status); } >/dev/null; then
32964 - if test -s conftest.err; then
32965 - ac_cpp_err=$ac_c_preproc_warn_flag
32966 - ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
32967 - else
32968 - ac_cpp_err=
32969 - fi
32970 -else
32971 - ac_cpp_err=yes
32972 -fi
32973 -if test -z "$ac_cpp_err"; then
32974 + (exit $ac_status); } >/dev/null && {
32975 + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32976 + test ! -s conftest.err
32977 + }; then
32978 ac_header_preproc=yes
32979 else
32980 echo "$as_me: failed program was:" >&5
32981 @@ -6632,9 +7208,10 @@ sed 's/^/| /' conftest.$ac_ext >&5
32982
32983 ac_header_preproc=no
32984 fi
32985 +
32986 rm -f conftest.err conftest.$ac_ext
32987 -echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32988 -echo "${ECHO_T}$ac_header_preproc" >&6
32989 +{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32990 +echo "${ECHO_T}$ac_header_preproc" >&6; }
32991
32992 # So? What about this header?
32993 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32994 @@ -6658,25 +7235,19 @@ echo "$as_me: WARNING: $ac_header: s
32995 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32996 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
32997 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
32998 - (
32999 - cat <<\_ASBOX
33000 -## ------------------------------------------ ##
33001 -## Report this to the AC_PACKAGE_NAME lists. ##
33002 -## ------------------------------------------ ##
33003 -_ASBOX
33004 - ) |
33005 - sed "s/^/$as_me: WARNING: /" >&2
33006 +
33007 ;;
33008 esac
33009 -echo "$as_me:$LINENO: checking for $ac_header" >&5
33010 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33011 -if eval "test \"\${$as_ac_Header+set}\" = set"; then
33012 +{ echo "$as_me:$LINENO: checking for $ac_header" >&5
33013 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33014 +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33015 echo $ECHO_N "(cached) $ECHO_C" >&6
33016 else
33017 eval "$as_ac_Header=\$ac_header_preproc"
33018 fi
33019 -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33020 -echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33021 +ac_res=`eval echo '${'$as_ac_Header'}'`
33022 + { echo "$as_me:$LINENO: result: $ac_res" >&5
33023 +echo "${ECHO_T}$ac_res" >&6; }
33024
33025 fi
33026 if test `eval echo '${'$as_ac_Header'}'` = yes; then
33027 @@ -6692,9 +7263,9 @@ done
33028 for ac_func in getpagesize
33029 do
33030 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33031 -echo "$as_me:$LINENO: checking for $ac_func" >&5
33032 -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33033 -if eval "test \"\${$as_ac_var+set}\" = set"; then
33034 +{ echo "$as_me:$LINENO: checking for $ac_func" >&5
33035 +echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33036 +if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33037 echo $ECHO_N "(cached) $ECHO_C" >&6
33038 else
33039 cat >conftest.$ac_ext <<_ACEOF
33040 @@ -6720,68 +7291,60 @@ cat >>conftest.$ac_ext <<_ACEOF
33041
33042 #undef $ac_func
33043
33044 -/* Override any gcc2 internal prototype to avoid an error. */
33045 +/* Override any GCC internal prototype to avoid an error.
33046 + Use char because int might match the return type of a GCC
33047 + builtin and then its argument prototype would still apply. */
33048 #ifdef __cplusplus
33049 extern "C"
33050 -{
33051 #endif
33052 -/* We use char because int might match the return type of a gcc2
33053 - builtin and then its argument prototype would still apply. */
33054 char $ac_func ();
33055 /* The GNU C library defines this for functions which it implements
33056 to always fail with ENOSYS. Some functions are actually named
33057 something starting with __ and the normal name is an alias. */
33058 -#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33059 +#if defined __stub_$ac_func || defined __stub___$ac_func
33060 choke me
33061 -#else
33062 -char (*f) () = $ac_func;
33063 -#endif
33064 -#ifdef __cplusplus
33065 -}
33066 #endif
33067
33068 int
33069 main ()
33070 {
33071 -return f != $ac_func;
33072 +return $ac_func ();
33073 ;
33074 return 0;
33075 }
33076 _ACEOF
33077 rm -f conftest.$ac_objext conftest$ac_exeext
33078 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33079 - (eval $ac_link) 2>conftest.er1
33080 +if { (ac_try="$ac_link"
33081 +case "(($ac_try" in
33082 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33083 + *) ac_try_echo=$ac_try;;
33084 +esac
33085 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33086 + (eval "$ac_link") 2>conftest.er1
33087 ac_status=$?
33088 grep -v '^ *+' conftest.er1 >conftest.err
33089 rm -f conftest.er1
33090 cat conftest.err >&5
33091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33092 - (exit $ac_status); } &&
33093 - { ac_try='test -z "$ac_c_werror_flag"
33094 - || test ! -s conftest.err'
33095 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33096 - (eval $ac_try) 2>&5
33097 - ac_status=$?
33098 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
33099 - (exit $ac_status); }; } &&
33100 - { ac_try='test -s conftest$ac_exeext'
33101 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33102 - (eval $ac_try) 2>&5
33103 - ac_status=$?
33104 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
33105 - (exit $ac_status); }; }; then
33106 + (exit $ac_status); } && {
33107 + test -z "$ac_c_werror_flag" ||
33108 + test ! -s conftest.err
33109 + } && test -s conftest$ac_exeext &&
33110 + $as_test_x conftest$ac_exeext; then
33111 eval "$as_ac_var=yes"
33112 else
33113 echo "$as_me: failed program was:" >&5
33114 sed 's/^/| /' conftest.$ac_ext >&5
33115
33116 -eval "$as_ac_var=no"
33117 + eval "$as_ac_var=no"
33118 fi
33119 -rm -f conftest.err conftest.$ac_objext \
33120 +
33121 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33122 conftest$ac_exeext conftest.$ac_ext
33123 fi
33124 -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33125 -echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33126 +ac_res=`eval echo '${'$as_ac_var'}'`
33127 + { echo "$as_me:$LINENO: result: $ac_res" >&5
33128 +echo "${ECHO_T}$ac_res" >&6; }
33129 if test `eval echo '${'$as_ac_var'}'` = yes; then
33130 cat >>confdefs.h <<_ACEOF
33131 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33132 @@ -6790,8 +7353,8 @@ _ACEOF
33133 fi
33134 done
33135
33136 -echo "$as_me:$LINENO: checking for working mmap" >&5
33137 -echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
33138 +{ echo "$as_me:$LINENO: checking for working mmap" >&5
33139 +echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
33140 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
33141 echo $ECHO_N "(cached) $ECHO_C" >&6
33142 else
33143 @@ -6833,21 +7396,21 @@ $ac_includes_default
33144 #include <fcntl.h>
33145 #include <sys/mman.h>
33146
33147 -#if !STDC_HEADERS && !HAVE_STDLIB_H
33148 +#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
33149 char *malloc ();
33150 #endif
33151
33152 /* This mess was copied from the GNU getpagesize.h. */
33153 -#if !HAVE_GETPAGESIZE
33154 +#ifndef HAVE_GETPAGESIZE
33155 /* Assume that all systems that can run configure have sys/param.h. */
33156 -# if !HAVE_SYS_PARAM_H
33157 +# ifndef HAVE_SYS_PARAM_H
33158 # define HAVE_SYS_PARAM_H 1
33159 # endif
33160
33161 # ifdef _SC_PAGESIZE
33162 # define getpagesize() sysconf(_SC_PAGESIZE)
33163 # else /* no _SC_PAGESIZE */
33164 -# if HAVE_SYS_PARAM_H
33165 +# ifdef HAVE_SYS_PARAM_H
33166 # include <sys/param.h>
33167 # ifdef EXEC_PAGESIZE
33168 # define getpagesize() EXEC_PAGESIZE
33169 @@ -6886,15 +7449,15 @@ main ()
33170 /* First, make a file with some known garbage in it. */
33171 data = (char *) malloc (pagesize);
33172 if (!data)
33173 - exit (1);
33174 + return 1;
33175 for (i = 0; i < pagesize; ++i)
33176 *(data + i) = rand ();
33177 umask (0);
33178 fd = creat ("conftest.mmap", 0600);
33179 if (fd < 0)
33180 - exit (1);
33181 + return 1;
33182 if (write (fd, data, pagesize) != pagesize)
33183 - exit (1);
33184 + return 1;
33185 close (fd);
33186
33187 /* Next, try to mmap the file at a fixed address which already has
33188 @@ -6902,17 +7465,17 @@ main ()
33189 we see the same garbage. */
33190 fd = open ("conftest.mmap", O_RDWR);
33191 if (fd < 0)
33192 - exit (1);
33193 + return 1;
33194 data2 = (char *) malloc (2 * pagesize);
33195 if (!data2)
33196 - exit (1);
33197 - data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
33198 + return 1;
33199 + data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
33200 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
33201 MAP_PRIVATE | MAP_FIXED, fd, 0L))
33202 - exit (1);
33203 + return 1;
33204 for (i = 0; i < pagesize; ++i)
33205 if (*(data + i) != *(data2 + i))
33206 - exit (1);
33207 + return 1;
33208
33209 /* Finally, make sure that changes to the mapped area do not
33210 percolate back to the file as seen by read(). (This is a bug on
33211 @@ -6921,24 +7484,33 @@ main ()
33212 *(data2 + i) = *(data2 + i) + 1;
33213 data3 = (char *) malloc (pagesize);
33214 if (!data3)
33215 - exit (1);
33216 + return 1;
33217 if (read (fd, data3, pagesize) != pagesize)
33218 - exit (1);
33219 + return 1;
33220 for (i = 0; i < pagesize; ++i)
33221 if (*(data + i) != *(data3 + i))
33222 - exit (1);
33223 + return 1;
33224 close (fd);
33225 - exit (0);
33226 + return 0;
33227 }
33228 _ACEOF
33229 rm -f conftest$ac_exeext
33230 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33231 - (eval $ac_link) 2>&5
33232 +if { (ac_try="$ac_link"
33233 +case "(($ac_try" in
33234 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33235 + *) ac_try_echo=$ac_try;;
33236 +esac
33237 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33238 + (eval "$ac_link") 2>&5
33239 ac_status=$?
33240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33241 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33242 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33243 - (eval $ac_try) 2>&5
33244 + { (case "(($ac_try" in
33245 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33246 + *) ac_try_echo=$ac_try;;
33247 +esac
33248 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33249 + (eval "$ac_try") 2>&5
33250 ac_status=$?
33251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33252 (exit $ac_status); }; }; then
33253 @@ -6951,11 +7523,13 @@ sed 's/^/| /' conftest.$ac_ext >&5
33254 ( exit $ac_status )
33255 ac_cv_func_mmap_fixed_mapped=no
33256 fi
33257 -rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33258 +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33259 fi
33260 +
33261 +
33262 fi
33263 -echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
33264 -echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
33265 +{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
33266 +echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
33267 if test $ac_cv_func_mmap_fixed_mapped = yes; then
33268
33269 cat >>confdefs.h <<\_ACEOF
33270 @@ -6979,18 +7553,19 @@ for ac_header in argz.h limits.h locale.
33271 unistd.h values.h sys/param.h
33272 do
33273 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33274 -if eval "test \"\${$as_ac_Header+set}\" = set"; then
33275 - echo "$as_me:$LINENO: checking for $ac_header" >&5
33276 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33277 -if eval "test \"\${$as_ac_Header+set}\" = set"; then
33278 +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33279 + { echo "$as_me:$LINENO: checking for $ac_header" >&5
33280 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33281 +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33282 echo $ECHO_N "(cached) $ECHO_C" >&6
33283 fi
33284 -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33285 -echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33286 +ac_res=`eval echo '${'$as_ac_Header'}'`
33287 + { echo "$as_me:$LINENO: result: $ac_res" >&5
33288 +echo "${ECHO_T}$ac_res" >&6; }
33289 else
33290 # Is the header compilable?
33291 -echo "$as_me:$LINENO: checking $ac_header usability" >&5
33292 -echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
33293 +{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
33294 +echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
33295 cat >conftest.$ac_ext <<_ACEOF
33296 /* confdefs.h. */
33297 _ACEOF
33298 @@ -7001,41 +7576,37 @@ $ac_includes_default
33299 #include <$ac_header>
33300 _ACEOF
33301 rm -f conftest.$ac_objext
33302 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33303 - (eval $ac_compile) 2>conftest.er1
33304 +if { (ac_try="$ac_compile"
33305 +case "(($ac_try" in
33306 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33307 + *) ac_try_echo=$ac_try;;
33308 +esac
33309 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33310 + (eval "$ac_compile") 2>conftest.er1
33311 ac_status=$?
33312 grep -v '^ *+' conftest.er1 >conftest.err
33313 rm -f conftest.er1
33314 cat conftest.err >&5
33315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33316 - (exit $ac_status); } &&
33317 - { ac_try='test -z "$ac_c_werror_flag"
33318 - || test ! -s conftest.err'
33319 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33320 - (eval $ac_try) 2>&5
33321 - ac_status=$?
33322 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
33323 - (exit $ac_status); }; } &&
33324 - { ac_try='test -s conftest.$ac_objext'
33325 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33326 - (eval $ac_try) 2>&5
33327 - ac_status=$?
33328 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
33329 - (exit $ac_status); }; }; then
33330 + (exit $ac_status); } && {
33331 + test -z "$ac_c_werror_flag" ||
33332 + test ! -s conftest.err
33333 + } && test -s conftest.$ac_objext; then
33334 ac_header_compiler=yes
33335 else
33336 echo "$as_me: failed program was:" >&5
33337 sed 's/^/| /' conftest.$ac_ext >&5
33338
33339 -ac_header_compiler=no
33340 + ac_header_compiler=no
33341 fi
33342 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33343 -echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33344 -echo "${ECHO_T}$ac_header_compiler" >&6
33345 +
33346 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33347 +{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33348 +echo "${ECHO_T}$ac_header_compiler" >&6; }
33349
33350 # Is the header present?
33351 -echo "$as_me:$LINENO: checking $ac_header presence" >&5
33352 -echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
33353 +{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
33354 +echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
33355 cat >conftest.$ac_ext <<_ACEOF
33356 /* confdefs.h. */
33357 _ACEOF
33358 @@ -7044,24 +7615,22 @@ cat >>conftest.$ac_ext <<_ACEOF
33359 /* end confdefs.h. */
33360 #include <$ac_header>
33361 _ACEOF
33362 -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
33363 - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
33364 +if { (ac_try="$ac_cpp conftest.$ac_ext"
33365 +case "(($ac_try" in
33366 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33367 + *) ac_try_echo=$ac_try;;
33368 +esac
33369 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33370 + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33371 ac_status=$?
33372 grep -v '^ *+' conftest.er1 >conftest.err
33373 rm -f conftest.er1
33374 cat conftest.err >&5
33375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33376 - (exit $ac_status); } >/dev/null; then
33377 - if test -s conftest.err; then
33378 - ac_cpp_err=$ac_c_preproc_warn_flag
33379 - ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
33380 - else
33381 - ac_cpp_err=
33382 - fi
33383 -else
33384 - ac_cpp_err=yes
33385 -fi
33386 -if test -z "$ac_cpp_err"; then
33387 + (exit $ac_status); } >/dev/null && {
33388 + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33389 + test ! -s conftest.err
33390 + }; then
33391 ac_header_preproc=yes
33392 else
33393 echo "$as_me: failed program was:" >&5
33394 @@ -7069,9 +7638,10 @@ sed 's/^/| /' conftest.$ac_ext >&5
33395
33396 ac_header_preproc=no
33397 fi
33398 +
33399 rm -f conftest.err conftest.$ac_ext
33400 -echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33401 -echo "${ECHO_T}$ac_header_preproc" >&6
33402 +{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33403 +echo "${ECHO_T}$ac_header_preproc" >&6; }
33404
33405 # So? What about this header?
33406 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33407 @@ -7095,25 +7665,19 @@ echo "$as_me: WARNING: $ac_header: s
33408 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33409 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33410 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
33411 - (
33412 - cat <<\_ASBOX
33413 -## ------------------------------------------ ##
33414 -## Report this to the AC_PACKAGE_NAME lists. ##
33415 -## ------------------------------------------ ##
33416 -_ASBOX
33417 - ) |
33418 - sed "s/^/$as_me: WARNING: /" >&2
33419 +
33420 ;;
33421 esac
33422 -echo "$as_me:$LINENO: checking for $ac_header" >&5
33423 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33424 -if eval "test \"\${$as_ac_Header+set}\" = set"; then
33425 +{ echo "$as_me:$LINENO: checking for $ac_header" >&5
33426 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33427 +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33428 echo $ECHO_N "(cached) $ECHO_C" >&6
33429 else
33430 eval "$as_ac_Header=\$ac_header_preproc"
33431 fi
33432 -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33433 -echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33434 +ac_res=`eval echo '${'$as_ac_Header'}'`
33435 + { echo "$as_me:$LINENO: result: $ac_res" >&5
33436 +echo "${ECHO_T}$ac_res" >&6; }
33437
33438 fi
33439 if test `eval echo '${'$as_ac_Header'}'` = yes; then
33440 @@ -7139,9 +7703,9 @@ for ac_func in getcwd munmap putenv sete
33441 __argz_count __argz_stringify __argz_next
33442 do
33443 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33444 -echo "$as_me:$LINENO: checking for $ac_func" >&5
33445 -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33446 -if eval "test \"\${$as_ac_var+set}\" = set"; then
33447 +{ echo "$as_me:$LINENO: checking for $ac_func" >&5
33448 +echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33449 +if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33450 echo $ECHO_N "(cached) $ECHO_C" >&6
33451 else
33452 cat >conftest.$ac_ext <<_ACEOF
33453 @@ -7167,68 +7731,60 @@ cat >>conftest.$ac_ext <<_ACEOF
33454
33455 #undef $ac_func
33456
33457 -/* Override any gcc2 internal prototype to avoid an error. */
33458 +/* Override any GCC internal prototype to avoid an error.
33459 + Use char because int might match the return type of a GCC
33460 + builtin and then its argument prototype would still apply. */
33461 #ifdef __cplusplus
33462 extern "C"
33463 -{
33464 #endif
33465 -/* We use char because int might match the return type of a gcc2
33466 - builtin and then its argument prototype would still apply. */
33467 char $ac_func ();
33468 /* The GNU C library defines this for functions which it implements
33469 to always fail with ENOSYS. Some functions are actually named
33470 something starting with __ and the normal name is an alias. */
33471 -#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33472 +#if defined __stub_$ac_func || defined __stub___$ac_func
33473 choke me
33474 -#else
33475 -char (*f) () = $ac_func;
33476 -#endif
33477 -#ifdef __cplusplus
33478 -}
33479 #endif
33480
33481 int
33482 main ()
33483 {
33484 -return f != $ac_func;
33485 +return $ac_func ();
33486 ;
33487 return 0;
33488 }
33489 _ACEOF
33490 rm -f conftest.$ac_objext conftest$ac_exeext
33491 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33492 - (eval $ac_link) 2>conftest.er1
33493 +if { (ac_try="$ac_link"
33494 +case "(($ac_try" in
33495 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33496 + *) ac_try_echo=$ac_try;;
33497 +esac
33498 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33499 + (eval "$ac_link") 2>conftest.er1
33500 ac_status=$?
33501 grep -v '^ *+' conftest.er1 >conftest.err
33502 rm -f conftest.er1
33503 cat conftest.err >&5
33504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33505 - (exit $ac_status); } &&
33506 - { ac_try='test -z "$ac_c_werror_flag"
33507 - || test ! -s conftest.err'
33508 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33509 - (eval $ac_try) 2>&5
33510 - ac_status=$?
33511 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
33512 - (exit $ac_status); }; } &&
33513 - { ac_try='test -s conftest$ac_exeext'
33514 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33515 - (eval $ac_try) 2>&5
33516 - ac_status=$?
33517 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
33518 - (exit $ac_status); }; }; then
33519 + (exit $ac_status); } && {
33520 + test -z "$ac_c_werror_flag" ||
33521 + test ! -s conftest.err
33522 + } && test -s conftest$ac_exeext &&
33523 + $as_test_x conftest$ac_exeext; then
33524 eval "$as_ac_var=yes"
33525 else
33526 echo "$as_me: failed program was:" >&5
33527 sed 's/^/| /' conftest.$ac_ext >&5
33528
33529 -eval "$as_ac_var=no"
33530 + eval "$as_ac_var=no"
33531 fi
33532 -rm -f conftest.err conftest.$ac_objext \
33533 +
33534 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33535 conftest$ac_exeext conftest.$ac_ext
33536 fi
33537 -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33538 -echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33539 +ac_res=`eval echo '${'$as_ac_var'}'`
33540 + { echo "$as_me:$LINENO: result: $ac_res" >&5
33541 +echo "${ECHO_T}$ac_res" >&6; }
33542 if test `eval echo '${'$as_ac_var'}'` = yes; then
33543 cat >>confdefs.h <<_ACEOF
33544 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33545 @@ -7243,9 +7799,9 @@ done
33546 for ac_func in stpcpy
33547 do
33548 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33549 -echo "$as_me:$LINENO: checking for $ac_func" >&5
33550 -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33551 -if eval "test \"\${$as_ac_var+set}\" = set"; then
33552 +{ echo "$as_me:$LINENO: checking for $ac_func" >&5
33553 +echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33554 +if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33555 echo $ECHO_N "(cached) $ECHO_C" >&6
33556 else
33557 cat >conftest.$ac_ext <<_ACEOF
33558 @@ -7271,68 +7827,60 @@ cat >>conftest.$ac_ext <<_ACEOF
33559
33560 #undef $ac_func
33561
33562 -/* Override any gcc2 internal prototype to avoid an error. */
33563 +/* Override any GCC internal prototype to avoid an error.
33564 + Use char because int might match the return type of a GCC
33565 + builtin and then its argument prototype would still apply. */
33566 #ifdef __cplusplus
33567 extern "C"
33568 -{
33569 #endif
33570 -/* We use char because int might match the return type of a gcc2
33571 - builtin and then its argument prototype would still apply. */
33572 char $ac_func ();
33573 /* The GNU C library defines this for functions which it implements
33574 to always fail with ENOSYS. Some functions are actually named
33575 something starting with __ and the normal name is an alias. */
33576 -#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33577 +#if defined __stub_$ac_func || defined __stub___$ac_func
33578 choke me
33579 -#else
33580 -char (*f) () = $ac_func;
33581 -#endif
33582 -#ifdef __cplusplus
33583 -}
33584 #endif
33585
33586 int
33587 main ()
33588 {
33589 -return f != $ac_func;
33590 +return $ac_func ();
33591 ;
33592 return 0;
33593 }
33594 _ACEOF
33595 rm -f conftest.$ac_objext conftest$ac_exeext
33596 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33597 - (eval $ac_link) 2>conftest.er1
33598 +if { (ac_try="$ac_link"
33599 +case "(($ac_try" in
33600 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33601 + *) ac_try_echo=$ac_try;;
33602 +esac
33603 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33604 + (eval "$ac_link") 2>conftest.er1
33605 ac_status=$?
33606 grep -v '^ *+' conftest.er1 >conftest.err
33607 rm -f conftest.er1
33608 cat conftest.err >&5
33609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33610 - (exit $ac_status); } &&
33611 - { ac_try='test -z "$ac_c_werror_flag"
33612 - || test ! -s conftest.err'
33613 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33614 - (eval $ac_try) 2>&5
33615 - ac_status=$?
33616 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
33617 - (exit $ac_status); }; } &&
33618 - { ac_try='test -s conftest$ac_exeext'
33619 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33620 - (eval $ac_try) 2>&5
33621 - ac_status=$?
33622 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
33623 - (exit $ac_status); }; }; then
33624 + (exit $ac_status); } && {
33625 + test -z "$ac_c_werror_flag" ||
33626 + test ! -s conftest.err
33627 + } && test -s conftest$ac_exeext &&
33628 + $as_test_x conftest$ac_exeext; then
33629 eval "$as_ac_var=yes"
33630 else
33631 echo "$as_me: failed program was:" >&5
33632 sed 's/^/| /' conftest.$ac_ext >&5
33633
33634 -eval "$as_ac_var=no"
33635 + eval "$as_ac_var=no"
33636 fi
33637 -rm -f conftest.err conftest.$ac_objext \
33638 +
33639 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33640 conftest$ac_exeext conftest.$ac_ext
33641 fi
33642 -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33643 -echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33644 +ac_res=`eval echo '${'$as_ac_var'}'`
33645 + { echo "$as_me:$LINENO: result: $ac_res" >&5
33646 +echo "${ECHO_T}$ac_res" >&6; }
33647 if test `eval echo '${'$as_ac_var'}'` = yes; then
33648 cat >>confdefs.h <<_ACEOF
33649 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33650 @@ -7351,8 +7899,8 @@ _ACEOF
33651 fi
33652
33653 if test $ac_cv_header_locale_h = yes; then
33654 - echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
33655 -echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
33656 + { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
33657 +echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
33658 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
33659 echo $ECHO_N "(cached) $ECHO_C" >&6
33660 else
33661 @@ -7372,39 +7920,36 @@ return LC_MESSAGES
33662 }
33663 _ACEOF
33664 rm -f conftest.$ac_objext conftest$ac_exeext
33665 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33666 - (eval $ac_link) 2>conftest.er1
33667 +if { (ac_try="$ac_link"
33668 +case "(($ac_try" in
33669 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33670 + *) ac_try_echo=$ac_try;;
33671 +esac
33672 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33673 + (eval "$ac_link") 2>conftest.er1
33674 ac_status=$?
33675 grep -v '^ *+' conftest.er1 >conftest.err
33676 rm -f conftest.er1
33677 cat conftest.err >&5
33678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33679 - (exit $ac_status); } &&
33680 - { ac_try='test -z "$ac_c_werror_flag"
33681 - || test ! -s conftest.err'
33682 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33683 - (eval $ac_try) 2>&5
33684 - ac_status=$?
33685 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
33686 - (exit $ac_status); }; } &&
33687 - { ac_try='test -s conftest$ac_exeext'
33688 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33689 - (eval $ac_try) 2>&5
33690 - ac_status=$?
33691 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
33692 - (exit $ac_status); }; }; then
33693 + (exit $ac_status); } && {
33694 + test -z "$ac_c_werror_flag" ||
33695 + test ! -s conftest.err
33696 + } && test -s conftest$ac_exeext &&
33697 + $as_test_x conftest$ac_exeext; then
33698 am_cv_val_LC_MESSAGES=yes
33699 else
33700 echo "$as_me: failed program was:" >&5
33701 sed 's/^/| /' conftest.$ac_ext >&5
33702
33703 -am_cv_val_LC_MESSAGES=no
33704 + am_cv_val_LC_MESSAGES=no
33705 fi
33706 -rm -f conftest.err conftest.$ac_objext \
33707 +
33708 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33709 conftest$ac_exeext conftest.$ac_ext
33710 fi
33711 -echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
33712 -echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
33713 +{ echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
33714 +echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6; }
33715 if test $am_cv_val_LC_MESSAGES = yes; then
33716
33717 cat >>confdefs.h <<\_ACEOF
33718 @@ -7413,34 +7958,34 @@ _ACEOF
33719
33720 fi
33721 fi
33722 - echo "$as_me:$LINENO: checking whether NLS is requested" >&5
33723 -echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
33724 - # Check whether --enable-nls or --disable-nls was given.
33725 + { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
33726 +echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
33727 + # Check whether --enable-nls was given.
33728 if test "${enable_nls+set}" = set; then
33729 - enableval="$enable_nls"
33730 - USE_NLS=$enableval
33731 + enableval=$enable_nls; USE_NLS=$enableval
33732 else
33733 USE_NLS=yes
33734 -fi;
33735 - echo "$as_me:$LINENO: result: $USE_NLS" >&5
33736 -echo "${ECHO_T}$USE_NLS" >&6
33737 +fi
33738 +
33739 + { echo "$as_me:$LINENO: result: $USE_NLS" >&5
33740 +echo "${ECHO_T}$USE_NLS" >&6; }
33741
33742
33743 USE_INCLUDED_LIBINTL=no
33744
33745 if test "$USE_NLS" = "yes"; then
33746 - echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
33747 -echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
33748 + { echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
33749 +echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6; }
33750
33751 -# Check whether --with-included-gettext or --without-included-gettext was given.
33752 +# Check whether --with-included-gettext was given.
33753 if test "${with_included_gettext+set}" = set; then
33754 - withval="$with_included_gettext"
33755 - nls_cv_force_use_gnu_gettext=$withval
33756 + withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
33757 else
33758 nls_cv_force_use_gnu_gettext=no
33759 -fi;
33760 - echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
33761 -echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
33762 +fi
33763 +
33764 + { echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
33765 +echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6; }
33766
33767 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
33768 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
33769 @@ -7449,17 +7994,17 @@ echo "${ECHO_T}$nls_cv_force_use_gnu_get
33770 CATOBJEXT=
33771
33772 if test "${ac_cv_header_libintl_h+set}" = set; then
33773 - echo "$as_me:$LINENO: checking for libintl.h" >&5
33774 -echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
33775 + { echo "$as_me:$LINENO: checking for libintl.h" >&5
33776 +echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; }
33777 if test "${ac_cv_header_libintl_h+set}" = set; then
33778 echo $ECHO_N "(cached) $ECHO_C" >&6
33779 fi
33780 -echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
33781 -echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
33782 +{ echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
33783 +echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; }
33784 else
33785 # Is the header compilable?
33786 -echo "$as_me:$LINENO: checking libintl.h usability" >&5
33787 -echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
33788 +{ echo "$as_me:$LINENO: checking libintl.h usability" >&5
33789 +echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6; }
33790 cat >conftest.$ac_ext <<_ACEOF
33791 /* confdefs.h. */
33792 _ACEOF
33793 @@ -7470,41 +8015,37 @@ $ac_includes_default
33794 #include <libintl.h>
33795 _ACEOF
33796 rm -f conftest.$ac_objext
33797 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33798 - (eval $ac_compile) 2>conftest.er1
33799 +if { (ac_try="$ac_compile"
33800 +case "(($ac_try" in
33801 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33802 + *) ac_try_echo=$ac_try;;
33803 +esac
33804 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33805 + (eval "$ac_compile") 2>conftest.er1
33806 ac_status=$?
33807 grep -v '^ *+' conftest.er1 >conftest.err
33808 rm -f conftest.er1
33809 cat conftest.err >&5
33810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33811 - (exit $ac_status); } &&
33812 - { ac_try='test -z "$ac_c_werror_flag"
33813 - || test ! -s conftest.err'
33814 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33815 - (eval $ac_try) 2>&5
33816 - ac_status=$?
33817 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
33818 - (exit $ac_status); }; } &&
33819 - { ac_try='test -s conftest.$ac_objext'
33820 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33821 - (eval $ac_try) 2>&5
33822 - ac_status=$?
33823 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
33824 - (exit $ac_status); }; }; then
33825 + (exit $ac_status); } && {
33826 + test -z "$ac_c_werror_flag" ||
33827 + test ! -s conftest.err
33828 + } && test -s conftest.$ac_objext; then
33829 ac_header_compiler=yes
33830 else
33831 echo "$as_me: failed program was:" >&5
33832 sed 's/^/| /' conftest.$ac_ext >&5
33833
33834 -ac_header_compiler=no
33835 + ac_header_compiler=no
33836 fi
33837 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33838 -echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33839 -echo "${ECHO_T}$ac_header_compiler" >&6
33840 +
33841 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33842 +{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33843 +echo "${ECHO_T}$ac_header_compiler" >&6; }
33844
33845 # Is the header present?
33846 -echo "$as_me:$LINENO: checking libintl.h presence" >&5
33847 -echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
33848 +{ echo "$as_me:$LINENO: checking libintl.h presence" >&5
33849 +echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6; }
33850 cat >conftest.$ac_ext <<_ACEOF
33851 /* confdefs.h. */
33852 _ACEOF
33853 @@ -7513,24 +8054,22 @@ cat >>conftest.$ac_ext <<_ACEOF
33854 /* end confdefs.h. */
33855 #include <libintl.h>
33856 _ACEOF
33857 -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
33858 - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
33859 +if { (ac_try="$ac_cpp conftest.$ac_ext"
33860 +case "(($ac_try" in
33861 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33862 + *) ac_try_echo=$ac_try;;
33863 +esac
33864 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33865 + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33866 ac_status=$?
33867 grep -v '^ *+' conftest.er1 >conftest.err
33868 rm -f conftest.er1
33869 cat conftest.err >&5
33870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33871 - (exit $ac_status); } >/dev/null; then
33872 - if test -s conftest.err; then
33873 - ac_cpp_err=$ac_c_preproc_warn_flag
33874 - ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
33875 - else
33876 - ac_cpp_err=
33877 - fi
33878 -else
33879 - ac_cpp_err=yes
33880 -fi
33881 -if test -z "$ac_cpp_err"; then
33882 + (exit $ac_status); } >/dev/null && {
33883 + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33884 + test ! -s conftest.err
33885 + }; then
33886 ac_header_preproc=yes
33887 else
33888 echo "$as_me: failed program was:" >&5
33889 @@ -7538,9 +8077,10 @@ sed 's/^/| /' conftest.$ac_ext >&5
33890
33891 ac_header_preproc=no
33892 fi
33893 +
33894 rm -f conftest.err conftest.$ac_ext
33895 -echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33896 -echo "${ECHO_T}$ac_header_preproc" >&6
33897 +{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33898 +echo "${ECHO_T}$ac_header_preproc" >&6; }
33899
33900 # So? What about this header?
33901 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33902 @@ -7564,30 +8104,23 @@ echo "$as_me: WARNING: libintl.h: se
33903 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
33904 { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
33905 echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
33906 - (
33907 - cat <<\_ASBOX
33908 -## ------------------------------------------ ##
33909 -## Report this to the AC_PACKAGE_NAME lists. ##
33910 -## ------------------------------------------ ##
33911 -_ASBOX
33912 - ) |
33913 - sed "s/^/$as_me: WARNING: /" >&2
33914 +
33915 ;;
33916 esac
33917 -echo "$as_me:$LINENO: checking for libintl.h" >&5
33918 -echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
33919 +{ echo "$as_me:$LINENO: checking for libintl.h" >&5
33920 +echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; }
33921 if test "${ac_cv_header_libintl_h+set}" = set; then
33922 echo $ECHO_N "(cached) $ECHO_C" >&6
33923 else
33924 ac_cv_header_libintl_h=$ac_header_preproc
33925 fi
33926 -echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
33927 -echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
33928 +{ echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
33929 +echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; }
33930
33931 fi
33932 if test $ac_cv_header_libintl_h = yes; then
33933 - echo "$as_me:$LINENO: checking for gettext in libc" >&5
33934 -echo $ECHO_N "checking for gettext in libc... $ECHO_C" >&6
33935 + { echo "$as_me:$LINENO: checking for gettext in libc" >&5
33936 +echo $ECHO_N "checking for gettext in libc... $ECHO_C" >&6; }
33937 if test "${gt_cv_func_gettext_libc+set}" = set; then
33938 echo $ECHO_N "(cached) $ECHO_C" >&6
33939 else
33940 @@ -7607,43 +8140,40 @@ return (int) gettext ("")
33941 }
33942 _ACEOF
33943 rm -f conftest.$ac_objext conftest$ac_exeext
33944 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33945 - (eval $ac_link) 2>conftest.er1
33946 +if { (ac_try="$ac_link"
33947 +case "(($ac_try" in
33948 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33949 + *) ac_try_echo=$ac_try;;
33950 +esac
33951 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33952 + (eval "$ac_link") 2>conftest.er1
33953 ac_status=$?
33954 grep -v '^ *+' conftest.er1 >conftest.err
33955 rm -f conftest.er1
33956 cat conftest.err >&5
33957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33958 - (exit $ac_status); } &&
33959 - { ac_try='test -z "$ac_c_werror_flag"
33960 - || test ! -s conftest.err'
33961 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33962 - (eval $ac_try) 2>&5
33963 - ac_status=$?
33964 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
33965 - (exit $ac_status); }; } &&
33966 - { ac_try='test -s conftest$ac_exeext'
33967 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33968 - (eval $ac_try) 2>&5
33969 - ac_status=$?
33970 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
33971 - (exit $ac_status); }; }; then
33972 + (exit $ac_status); } && {
33973 + test -z "$ac_c_werror_flag" ||
33974 + test ! -s conftest.err
33975 + } && test -s conftest$ac_exeext &&
33976 + $as_test_x conftest$ac_exeext; then
33977 gt_cv_func_gettext_libc=yes
33978 else
33979 echo "$as_me: failed program was:" >&5
33980 sed 's/^/| /' conftest.$ac_ext >&5
33981
33982 -gt_cv_func_gettext_libc=no
33983 + gt_cv_func_gettext_libc=no
33984 fi
33985 -rm -f conftest.err conftest.$ac_objext \
33986 +
33987 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33988 conftest$ac_exeext conftest.$ac_ext
33989 fi
33990 -echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libc" >&5
33991 -echo "${ECHO_T}$gt_cv_func_gettext_libc" >&6
33992 +{ echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libc" >&5
33993 +echo "${ECHO_T}$gt_cv_func_gettext_libc" >&6; }
33994
33995 if test "$gt_cv_func_gettext_libc" != "yes"; then
33996 - echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
33997 -echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6
33998 + { echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
33999 +echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6; }
34000 if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
34001 echo $ECHO_N "(cached) $ECHO_C" >&6
34002 else
34003 @@ -7656,59 +8186,56 @@ cat confdefs.h >>conftest.$ac_ext
34004 cat >>conftest.$ac_ext <<_ACEOF
34005 /* end confdefs.h. */
34006
34007 -/* Override any gcc2 internal prototype to avoid an error. */
34008 +/* Override any GCC internal prototype to avoid an error.
34009 + Use char because int might match the return type of a GCC
34010 + builtin and then its argument prototype would still apply. */
34011 #ifdef __cplusplus
34012 extern "C"
34013 #endif
34014 -/* We use char because int might match the return type of a gcc2
34015 - builtin and then its argument prototype would still apply. */
34016 char bindtextdomain ();
34017 int
34018 main ()
34019 {
34020 -bindtextdomain ();
34021 +return bindtextdomain ();
34022 ;
34023 return 0;
34024 }
34025 _ACEOF
34026 rm -f conftest.$ac_objext conftest$ac_exeext
34027 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34028 - (eval $ac_link) 2>conftest.er1
34029 +if { (ac_try="$ac_link"
34030 +case "(($ac_try" in
34031 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34032 + *) ac_try_echo=$ac_try;;
34033 +esac
34034 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34035 + (eval "$ac_link") 2>conftest.er1
34036 ac_status=$?
34037 grep -v '^ *+' conftest.er1 >conftest.err
34038 rm -f conftest.er1
34039 cat conftest.err >&5
34040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34041 - (exit $ac_status); } &&
34042 - { ac_try='test -z "$ac_c_werror_flag"
34043 - || test ! -s conftest.err'
34044 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34045 - (eval $ac_try) 2>&5
34046 - ac_status=$?
34047 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
34048 - (exit $ac_status); }; } &&
34049 - { ac_try='test -s conftest$ac_exeext'
34050 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34051 - (eval $ac_try) 2>&5
34052 - ac_status=$?
34053 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
34054 - (exit $ac_status); }; }; then
34055 + (exit $ac_status); } && {
34056 + test -z "$ac_c_werror_flag" ||
34057 + test ! -s conftest.err
34058 + } && test -s conftest$ac_exeext &&
34059 + $as_test_x conftest$ac_exeext; then
34060 ac_cv_lib_intl_bindtextdomain=yes
34061 else
34062 echo "$as_me: failed program was:" >&5
34063 sed 's/^/| /' conftest.$ac_ext >&5
34064
34065 -ac_cv_lib_intl_bindtextdomain=no
34066 + ac_cv_lib_intl_bindtextdomain=no
34067 fi
34068 -rm -f conftest.err conftest.$ac_objext \
34069 +
34070 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34071 conftest$ac_exeext conftest.$ac_ext
34072 LIBS=$ac_check_lib_save_LIBS
34073 fi
34074 -echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
34075 -echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6
34076 +{ echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
34077 +echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6; }
34078 if test $ac_cv_lib_intl_bindtextdomain = yes; then
34079 - echo "$as_me:$LINENO: checking for gettext in libintl" >&5
34080 -echo $ECHO_N "checking for gettext in libintl... $ECHO_C" >&6
34081 + { echo "$as_me:$LINENO: checking for gettext in libintl" >&5
34082 +echo $ECHO_N "checking for gettext in libintl... $ECHO_C" >&6; }
34083 if test "${gt_cv_func_gettext_libintl+set}" = set; then
34084 echo $ECHO_N "(cached) $ECHO_C" >&6
34085 else
34086 @@ -7728,39 +8255,36 @@ return (int) gettext ("")
34087 }
34088 _ACEOF
34089 rm -f conftest.$ac_objext conftest$ac_exeext
34090 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34091 - (eval $ac_link) 2>conftest.er1
34092 +if { (ac_try="$ac_link"
34093 +case "(($ac_try" in
34094 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34095 + *) ac_try_echo=$ac_try;;
34096 +esac
34097 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34098 + (eval "$ac_link") 2>conftest.er1
34099 ac_status=$?
34100 grep -v '^ *+' conftest.er1 >conftest.err
34101 rm -f conftest.er1
34102 cat conftest.err >&5
34103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34104 - (exit $ac_status); } &&
34105 - { ac_try='test -z "$ac_c_werror_flag"
34106 - || test ! -s conftest.err'
34107 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34108 - (eval $ac_try) 2>&5
34109 - ac_status=$?
34110 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
34111 - (exit $ac_status); }; } &&
34112 - { ac_try='test -s conftest$ac_exeext'
34113 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34114 - (eval $ac_try) 2>&5
34115 - ac_status=$?
34116 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
34117 - (exit $ac_status); }; }; then
34118 + (exit $ac_status); } && {
34119 + test -z "$ac_c_werror_flag" ||
34120 + test ! -s conftest.err
34121 + } && test -s conftest$ac_exeext &&
34122 + $as_test_x conftest$ac_exeext; then
34123 gt_cv_func_gettext_libintl=yes
34124 else
34125 echo "$as_me: failed program was:" >&5
34126 sed 's/^/| /' conftest.$ac_ext >&5
34127
34128 -gt_cv_func_gettext_libintl=no
34129 + gt_cv_func_gettext_libintl=no
34130 fi
34131 -rm -f conftest.err conftest.$ac_objext \
34132 +
34133 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34134 conftest$ac_exeext conftest.$ac_ext
34135 fi
34136 -echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libintl" >&5
34137 -echo "${ECHO_T}$gt_cv_func_gettext_libintl" >&6
34138 +{ echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libintl" >&5
34139 +echo "${ECHO_T}$gt_cv_func_gettext_libintl" >&6; }
34140 fi
34141
34142 fi
34143 @@ -7774,8 +8298,8 @@ _ACEOF
34144
34145 # Extract the first word of "msgfmt", so it can be a program name with args.
34146 set dummy msgfmt; ac_word=$2
34147 -echo "$as_me:$LINENO: checking for $ac_word" >&5
34148 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
34149 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
34150 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
34151 if test "${ac_cv_path_MSGFMT+set}" = set; then
34152 echo $ECHO_N "(cached) $ECHO_C" >&6
34153 else
34154 @@ -7801,20 +8325,20 @@ esac
34155 fi
34156 MSGFMT="$ac_cv_path_MSGFMT"
34157 if test -n "$MSGFMT"; then
34158 - echo "$as_me:$LINENO: result: $MSGFMT" >&5
34159 -echo "${ECHO_T}$MSGFMT" >&6
34160 + { echo "$as_me:$LINENO: result: $MSGFMT" >&5
34161 +echo "${ECHO_T}$MSGFMT" >&6; }
34162 else
34163 - echo "$as_me:$LINENO: result: no" >&5
34164 -echo "${ECHO_T}no" >&6
34165 + { echo "$as_me:$LINENO: result: no" >&5
34166 +echo "${ECHO_T}no" >&6; }
34167 fi
34168 if test "$MSGFMT" != "no"; then
34169
34170 for ac_func in dcgettext
34171 do
34172 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34173 -echo "$as_me:$LINENO: checking for $ac_func" >&5
34174 -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34175 -if eval "test \"\${$as_ac_var+set}\" = set"; then
34176 +{ echo "$as_me:$LINENO: checking for $ac_func" >&5
34177 +echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
34178 +if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
34179 echo $ECHO_N "(cached) $ECHO_C" >&6
34180 else
34181 cat >conftest.$ac_ext <<_ACEOF
34182 @@ -7840,68 +8364,60 @@ cat >>conftest.$ac_ext <<_ACEOF
34183
34184 #undef $ac_func
34185
34186 -/* Override any gcc2 internal prototype to avoid an error. */
34187 +/* Override any GCC internal prototype to avoid an error.
34188 + Use char because int might match the return type of a GCC
34189 + builtin and then its argument prototype would still apply. */
34190 #ifdef __cplusplus
34191 extern "C"
34192 -{
34193 #endif
34194 -/* We use char because int might match the return type of a gcc2
34195 - builtin and then its argument prototype would still apply. */
34196 char $ac_func ();
34197 /* The GNU C library defines this for functions which it implements
34198 to always fail with ENOSYS. Some functions are actually named
34199 something starting with __ and the normal name is an alias. */
34200 -#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34201 +#if defined __stub_$ac_func || defined __stub___$ac_func
34202 choke me
34203 -#else
34204 -char (*f) () = $ac_func;
34205 -#endif
34206 -#ifdef __cplusplus
34207 -}
34208 #endif
34209
34210 int
34211 main ()
34212 {
34213 -return f != $ac_func;
34214 +return $ac_func ();
34215 ;
34216 return 0;
34217 }
34218 _ACEOF
34219 rm -f conftest.$ac_objext conftest$ac_exeext
34220 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34221 - (eval $ac_link) 2>conftest.er1
34222 +if { (ac_try="$ac_link"
34223 +case "(($ac_try" in
34224 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34225 + *) ac_try_echo=$ac_try;;
34226 +esac
34227 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34228 + (eval "$ac_link") 2>conftest.er1
34229 ac_status=$?
34230 grep -v '^ *+' conftest.er1 >conftest.err
34231 rm -f conftest.er1
34232 cat conftest.err >&5
34233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34234 - (exit $ac_status); } &&
34235 - { ac_try='test -z "$ac_c_werror_flag"
34236 - || test ! -s conftest.err'
34237 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34238 - (eval $ac_try) 2>&5
34239 - ac_status=$?
34240 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
34241 - (exit $ac_status); }; } &&
34242 - { ac_try='test -s conftest$ac_exeext'
34243 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34244 - (eval $ac_try) 2>&5
34245 - ac_status=$?
34246 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
34247 - (exit $ac_status); }; }; then
34248 + (exit $ac_status); } && {
34249 + test -z "$ac_c_werror_flag" ||
34250 + test ! -s conftest.err
34251 + } && test -s conftest$ac_exeext &&
34252 + $as_test_x conftest$ac_exeext; then
34253 eval "$as_ac_var=yes"
34254 else
34255 echo "$as_me: failed program was:" >&5
34256 sed 's/^/| /' conftest.$ac_ext >&5
34257
34258 -eval "$as_ac_var=no"
34259 + eval "$as_ac_var=no"
34260 fi
34261 -rm -f conftest.err conftest.$ac_objext \
34262 +
34263 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34264 conftest$ac_exeext conftest.$ac_ext
34265 fi
34266 -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34267 -echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34268 +ac_res=`eval echo '${'$as_ac_var'}'`
34269 + { echo "$as_me:$LINENO: result: $ac_res" >&5
34270 +echo "${ECHO_T}$ac_res" >&6; }
34271 if test `eval echo '${'$as_ac_var'}'` = yes; then
34272 cat >>confdefs.h <<_ACEOF
34273 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34274 @@ -7912,8 +8428,8 @@ done
34275
34276 # Extract the first word of "gmsgfmt", so it can be a program name with args.
34277 set dummy gmsgfmt; ac_word=$2
34278 -echo "$as_me:$LINENO: checking for $ac_word" >&5
34279 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
34280 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
34281 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
34282 if test "${ac_cv_path_GMSGFMT+set}" = set; then
34283 echo $ECHO_N "(cached) $ECHO_C" >&6
34284 else
34285 @@ -7928,32 +8444,33 @@ do
34286 IFS=$as_save_IFS
34287 test -z "$as_dir" && as_dir=.
34288 for ac_exec_ext in '' $ac_executable_extensions; do
34289 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34290 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34291 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
34292 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34293 break 2
34294 fi
34295 done
34296 done
34297 +IFS=$as_save_IFS
34298
34299 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
34300 ;;
34301 esac
34302 fi
34303 GMSGFMT=$ac_cv_path_GMSGFMT
34304 -
34305 if test -n "$GMSGFMT"; then
34306 - echo "$as_me:$LINENO: result: $GMSGFMT" >&5
34307 -echo "${ECHO_T}$GMSGFMT" >&6
34308 + { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
34309 +echo "${ECHO_T}$GMSGFMT" >&6; }
34310 else
34311 - echo "$as_me:$LINENO: result: no" >&5
34312 -echo "${ECHO_T}no" >&6
34313 + { echo "$as_me:$LINENO: result: no" >&5
34314 +echo "${ECHO_T}no" >&6; }
34315 fi
34316
34317 +
34318 # Extract the first word of "xgettext", so it can be a program name with args.
34319 set dummy xgettext; ac_word=$2
34320 -echo "$as_me:$LINENO: checking for $ac_word" >&5
34321 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
34322 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
34323 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
34324 if test "${ac_cv_path_XGETTEXT+set}" = set; then
34325 echo $ECHO_N "(cached) $ECHO_C" >&6
34326 else
34327 @@ -7979,11 +8496,11 @@ esac
34328 fi
34329 XGETTEXT="$ac_cv_path_XGETTEXT"
34330 if test -n "$XGETTEXT"; then
34331 - echo "$as_me:$LINENO: result: $XGETTEXT" >&5
34332 -echo "${ECHO_T}$XGETTEXT" >&6
34333 + { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
34334 +echo "${ECHO_T}$XGETTEXT" >&6; }
34335 else
34336 - echo "$as_me:$LINENO: result: no" >&5
34337 -echo "${ECHO_T}no" >&6
34338 + { echo "$as_me:$LINENO: result: no" >&5
34339 +echo "${ECHO_T}no" >&6; }
34340 fi
34341
34342 cat >conftest.$ac_ext <<_ACEOF
34343 @@ -8003,37 +8520,34 @@ extern int _nl_msg_cat_cntr;
34344 }
34345 _ACEOF
34346 rm -f conftest.$ac_objext conftest$ac_exeext
34347 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34348 - (eval $ac_link) 2>conftest.er1
34349 +if { (ac_try="$ac_link"
34350 +case "(($ac_try" in
34351 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34352 + *) ac_try_echo=$ac_try;;
34353 +esac
34354 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34355 + (eval "$ac_link") 2>conftest.er1
34356 ac_status=$?
34357 grep -v '^ *+' conftest.er1 >conftest.err
34358 rm -f conftest.er1
34359 cat conftest.err >&5
34360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34361 - (exit $ac_status); } &&
34362 - { ac_try='test -z "$ac_c_werror_flag"
34363 - || test ! -s conftest.err'
34364 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34365 - (eval $ac_try) 2>&5
34366 - ac_status=$?
34367 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
34368 - (exit $ac_status); }; } &&
34369 - { ac_try='test -s conftest$ac_exeext'
34370 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34371 - (eval $ac_try) 2>&5
34372 - ac_status=$?
34373 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
34374 - (exit $ac_status); }; }; then
34375 + (exit $ac_status); } && {
34376 + test -z "$ac_c_werror_flag" ||
34377 + test ! -s conftest.err
34378 + } && test -s conftest$ac_exeext &&
34379 + $as_test_x conftest$ac_exeext; then
34380 CATOBJEXT=.gmo
34381 DATADIRNAME=share
34382 else
34383 echo "$as_me: failed program was:" >&5
34384 sed 's/^/| /' conftest.$ac_ext >&5
34385
34386 -CATOBJEXT=.mo
34387 + CATOBJEXT=.mo
34388 DATADIRNAME=lib
34389 fi
34390 -rm -f conftest.err conftest.$ac_objext \
34391 +
34392 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34393 conftest$ac_exeext conftest.$ac_ext
34394 INSTOBJEXT=.mo
34395 fi
34396 @@ -8055,8 +8569,8 @@ fi
34397 INTLOBJS="\$(GETTOBJS)"
34398 # Extract the first word of "msgfmt", so it can be a program name with args.
34399 set dummy msgfmt; ac_word=$2
34400 -echo "$as_me:$LINENO: checking for $ac_word" >&5
34401 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
34402 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
34403 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
34404 if test "${ac_cv_path_MSGFMT+set}" = set; then
34405 echo $ECHO_N "(cached) $ECHO_C" >&6
34406 else
34407 @@ -8082,17 +8596,17 @@ esac
34408 fi
34409 MSGFMT="$ac_cv_path_MSGFMT"
34410 if test -n "$MSGFMT"; then
34411 - echo "$as_me:$LINENO: result: $MSGFMT" >&5
34412 -echo "${ECHO_T}$MSGFMT" >&6
34413 + { echo "$as_me:$LINENO: result: $MSGFMT" >&5
34414 +echo "${ECHO_T}$MSGFMT" >&6; }
34415 else
34416 - echo "$as_me:$LINENO: result: no" >&5
34417 -echo "${ECHO_T}no" >&6
34418 + { echo "$as_me:$LINENO: result: no" >&5
34419 +echo "${ECHO_T}no" >&6; }
34420 fi
34421
34422 # Extract the first word of "gmsgfmt", so it can be a program name with args.
34423 set dummy gmsgfmt; ac_word=$2
34424 -echo "$as_me:$LINENO: checking for $ac_word" >&5
34425 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
34426 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
34427 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
34428 if test "${ac_cv_path_GMSGFMT+set}" = set; then
34429 echo $ECHO_N "(cached) $ECHO_C" >&6
34430 else
34431 @@ -8107,32 +8621,33 @@ do
34432 IFS=$as_save_IFS
34433 test -z "$as_dir" && as_dir=.
34434 for ac_exec_ext in '' $ac_executable_extensions; do
34435 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34436 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34437 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
34438 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34439 break 2
34440 fi
34441 done
34442 done
34443 +IFS=$as_save_IFS
34444
34445 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
34446 ;;
34447 esac
34448 fi
34449 GMSGFMT=$ac_cv_path_GMSGFMT
34450 -
34451 if test -n "$GMSGFMT"; then
34452 - echo "$as_me:$LINENO: result: $GMSGFMT" >&5
34453 -echo "${ECHO_T}$GMSGFMT" >&6
34454 + { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
34455 +echo "${ECHO_T}$GMSGFMT" >&6; }
34456 else
34457 - echo "$as_me:$LINENO: result: no" >&5
34458 -echo "${ECHO_T}no" >&6
34459 + { echo "$as_me:$LINENO: result: no" >&5
34460 +echo "${ECHO_T}no" >&6; }
34461 fi
34462
34463 +
34464 # Extract the first word of "xgettext", so it can be a program name with args.
34465 set dummy xgettext; ac_word=$2
34466 -echo "$as_me:$LINENO: checking for $ac_word" >&5
34467 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
34468 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
34469 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
34470 if test "${ac_cv_path_XGETTEXT+set}" = set; then
34471 echo $ECHO_N "(cached) $ECHO_C" >&6
34472 else
34473 @@ -8158,11 +8673,11 @@ esac
34474 fi
34475 XGETTEXT="$ac_cv_path_XGETTEXT"
34476 if test -n "$XGETTEXT"; then
34477 - echo "$as_me:$LINENO: result: $XGETTEXT" >&5
34478 -echo "${ECHO_T}$XGETTEXT" >&6
34479 + { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
34480 +echo "${ECHO_T}$XGETTEXT" >&6; }
34481 else
34482 - echo "$as_me:$LINENO: result: no" >&5
34483 -echo "${ECHO_T}no" >&6
34484 + { echo "$as_me:$LINENO: result: no" >&5
34485 +echo "${ECHO_T}no" >&6; }
34486 fi
34487
34488
34489 @@ -8181,8 +8696,8 @@ fi
34490 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
34491 : ;
34492 else
34493 - echo "$as_me:$LINENO: result: found xgettext programs is not GNU xgettext; ignore it" >&5
34494 -echo "${ECHO_T}found xgettext programs is not GNU xgettext; ignore it" >&6
34495 + { echo "$as_me:$LINENO: result: found xgettext programs is not GNU xgettext; ignore it" >&5
34496 +echo "${ECHO_T}found xgettext programs is not GNU xgettext; ignore it" >&6; }
34497 XGETTEXT=":"
34498 fi
34499 fi
34500 @@ -8231,8 +8746,8 @@ _ACEOF
34501 if test "x$ALL_LINGUAS" = "x"; then
34502 LINGUAS=
34503 else
34504 - echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
34505 -echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
34506 + { echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
34507 +echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6; }
34508 NEW_LINGUAS=
34509 for lang in ${LINGUAS=$ALL_LINGUAS}; do
34510 case "$ALL_LINGUAS" in
34511 @@ -8240,8 +8755,8 @@ echo $ECHO_N "checking for catalogs to b
34512 esac
34513 done
34514 LINGUAS=$NEW_LINGUAS
34515 - echo "$as_me:$LINENO: result: $LINGUAS" >&5
34516 -echo "${ECHO_T}$LINGUAS" >&6
34517 + { echo "$as_me:$LINENO: result: $LINGUAS" >&5
34518 +echo "${ECHO_T}$LINGUAS" >&6; }
34519 fi
34520
34521 if test -n "$LINGUAS"; then
34522 @@ -8260,17 +8775,17 @@ echo "${ECHO_T}$LINGUAS" >&6
34523 if test -f $srcdir/po2tbl.sed.in; then
34524 if test "$CATOBJEXT" = ".cat"; then
34525 if test "${ac_cv_header_linux_version_h+set}" = set; then
34526 - echo "$as_me:$LINENO: checking for linux/version.h" >&5
34527 -echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
34528 + { echo "$as_me:$LINENO: checking for linux/version.h" >&5
34529 +echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6; }
34530 if test "${ac_cv_header_linux_version_h+set}" = set; then
34531 echo $ECHO_N "(cached) $ECHO_C" >&6
34532 fi
34533 -echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
34534 -echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
34535 +{ echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
34536 +echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6; }
34537 else
34538 # Is the header compilable?
34539 -echo "$as_me:$LINENO: checking linux/version.h usability" >&5
34540 -echo $ECHO_N "checking linux/version.h usability... $ECHO_C" >&6
34541 +{ echo "$as_me:$LINENO: checking linux/version.h usability" >&5
34542 +echo $ECHO_N "checking linux/version.h usability... $ECHO_C" >&6; }
34543 cat >conftest.$ac_ext <<_ACEOF
34544 /* confdefs.h. */
34545 _ACEOF
34546 @@ -8281,41 +8796,37 @@ $ac_includes_default
34547 #include <linux/version.h>
34548 _ACEOF
34549 rm -f conftest.$ac_objext
34550 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34551 - (eval $ac_compile) 2>conftest.er1
34552 +if { (ac_try="$ac_compile"
34553 +case "(($ac_try" in
34554 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34555 + *) ac_try_echo=$ac_try;;
34556 +esac
34557 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34558 + (eval "$ac_compile") 2>conftest.er1
34559 ac_status=$?
34560 grep -v '^ *+' conftest.er1 >conftest.err
34561 rm -f conftest.er1
34562 cat conftest.err >&5
34563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34564 - (exit $ac_status); } &&
34565 - { ac_try='test -z "$ac_c_werror_flag"
34566 - || test ! -s conftest.err'
34567 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34568 - (eval $ac_try) 2>&5
34569 - ac_status=$?
34570 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
34571 - (exit $ac_status); }; } &&
34572 - { ac_try='test -s conftest.$ac_objext'
34573 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34574 - (eval $ac_try) 2>&5
34575 - ac_status=$?
34576 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
34577 - (exit $ac_status); }; }; then
34578 + (exit $ac_status); } && {
34579 + test -z "$ac_c_werror_flag" ||
34580 + test ! -s conftest.err
34581 + } && test -s conftest.$ac_objext; then
34582 ac_header_compiler=yes
34583 else
34584 echo "$as_me: failed program was:" >&5
34585 sed 's/^/| /' conftest.$ac_ext >&5
34586
34587 -ac_header_compiler=no
34588 + ac_header_compiler=no
34589 fi
34590 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34591 -echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34592 -echo "${ECHO_T}$ac_header_compiler" >&6
34593 +
34594 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34595 +{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34596 +echo "${ECHO_T}$ac_header_compiler" >&6; }
34597
34598 # Is the header present?
34599 -echo "$as_me:$LINENO: checking linux/version.h presence" >&5
34600 -echo $ECHO_N "checking linux/version.h presence... $ECHO_C" >&6
34601 +{ echo "$as_me:$LINENO: checking linux/version.h presence" >&5
34602 +echo $ECHO_N "checking linux/version.h presence... $ECHO_C" >&6; }
34603 cat >conftest.$ac_ext <<_ACEOF
34604 /* confdefs.h. */
34605 _ACEOF
34606 @@ -8324,24 +8835,22 @@ cat >>conftest.$ac_ext <<_ACEOF
34607 /* end confdefs.h. */
34608 #include <linux/version.h>
34609 _ACEOF
34610 -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
34611 - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
34612 +if { (ac_try="$ac_cpp conftest.$ac_ext"
34613 +case "(($ac_try" in
34614 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34615 + *) ac_try_echo=$ac_try;;
34616 +esac
34617 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34618 + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
34619 ac_status=$?
34620 grep -v '^ *+' conftest.er1 >conftest.err
34621 rm -f conftest.er1
34622 cat conftest.err >&5
34623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34624 - (exit $ac_status); } >/dev/null; then
34625 - if test -s conftest.err; then
34626 - ac_cpp_err=$ac_c_preproc_warn_flag
34627 - ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
34628 - else
34629 - ac_cpp_err=
34630 - fi
34631 -else
34632 - ac_cpp_err=yes
34633 -fi
34634 -if test -z "$ac_cpp_err"; then
34635 + (exit $ac_status); } >/dev/null && {
34636 + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
34637 + test ! -s conftest.err
34638 + }; then
34639 ac_header_preproc=yes
34640 else
34641 echo "$as_me: failed program was:" >&5
34642 @@ -8349,9 +8858,10 @@ sed 's/^/| /' conftest.$ac_ext >&5
34643
34644 ac_header_preproc=no
34645 fi
34646 +
34647 rm -f conftest.err conftest.$ac_ext
34648 -echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34649 -echo "${ECHO_T}$ac_header_preproc" >&6
34650 +{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34651 +echo "${ECHO_T}$ac_header_preproc" >&6; }
34652
34653 # So? What about this header?
34654 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34655 @@ -8375,25 +8885,18 @@ echo "$as_me: WARNING: linux/version.h:
34656 echo "$as_me: WARNING: linux/version.h: proceeding with the preprocessor's result" >&2;}
34657 { echo "$as_me:$LINENO: WARNING: linux/version.h: in the future, the compiler will take precedence" >&5
34658 echo "$as_me: WARNING: linux/version.h: in the future, the compiler will take precedence" >&2;}
34659 - (
34660 - cat <<\_ASBOX
34661 -## ------------------------------------------ ##
34662 -## Report this to the AC_PACKAGE_NAME lists. ##
34663 -## ------------------------------------------ ##
34664 -_ASBOX
34665 - ) |
34666 - sed "s/^/$as_me: WARNING: /" >&2
34667 +
34668 ;;
34669 esac
34670 -echo "$as_me:$LINENO: checking for linux/version.h" >&5
34671 -echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
34672 +{ echo "$as_me:$LINENO: checking for linux/version.h" >&5
34673 +echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6; }
34674 if test "${ac_cv_header_linux_version_h+set}" = set; then
34675 echo $ECHO_N "(cached) $ECHO_C" >&6
34676 else
34677 ac_cv_header_linux_version_h=$ac_header_preproc
34678 fi
34679 -echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
34680 -echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
34681 +{ echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
34682 +echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6; }
34683
34684 fi
34685 if test $ac_cv_header_linux_version_h = yes; then
34686 @@ -8443,17 +8946,17 @@ fi
34687 fi
34688
34689
34690 -echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
34691 -echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
34692 - # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
34693 +{ echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
34694 +echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
34695 + # Check whether --enable-maintainer-mode was given.
34696 if test "${enable_maintainer_mode+set}" = set; then
34697 - enableval="$enable_maintainer_mode"
34698 - USE_MAINTAINER_MODE=$enableval
34699 + enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
34700 else
34701 USE_MAINTAINER_MODE=no
34702 -fi;
34703 - echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
34704 -echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
34705 +fi
34706 +
34707 + { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
34708 +echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
34709
34710
34711 if test $USE_MAINTAINER_MODE = yes; then
34712 @@ -8493,8 +8996,8 @@ AR=${AR-ar}
34713 if test -n "$ac_tool_prefix"; then
34714 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
34715 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
34716 -echo "$as_me:$LINENO: checking for $ac_word" >&5
34717 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
34718 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
34719 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
34720 if test "${ac_cv_prog_RANLIB+set}" = set; then
34721 echo $ECHO_N "(cached) $ECHO_C" >&6
34722 else
34723 @@ -8507,32 +9010,34 @@ do
34724 IFS=$as_save_IFS
34725 test -z "$as_dir" && as_dir=.
34726 for ac_exec_ext in '' $ac_executable_extensions; do
34727 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34728 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34729 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
34730 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34731 break 2
34732 fi
34733 done
34734 done
34735 +IFS=$as_save_IFS
34736
34737 fi
34738 fi
34739 RANLIB=$ac_cv_prog_RANLIB
34740 if test -n "$RANLIB"; then
34741 - echo "$as_me:$LINENO: result: $RANLIB" >&5
34742 -echo "${ECHO_T}$RANLIB" >&6
34743 + { echo "$as_me:$LINENO: result: $RANLIB" >&5
34744 +echo "${ECHO_T}$RANLIB" >&6; }
34745 else
34746 - echo "$as_me:$LINENO: result: no" >&5
34747 -echo "${ECHO_T}no" >&6
34748 + { echo "$as_me:$LINENO: result: no" >&5
34749 +echo "${ECHO_T}no" >&6; }
34750 fi
34751
34752 +
34753 fi
34754 if test -z "$ac_cv_prog_RANLIB"; then
34755 ac_ct_RANLIB=$RANLIB
34756 # Extract the first word of "ranlib", so it can be a program name with args.
34757 set dummy ranlib; ac_word=$2
34758 -echo "$as_me:$LINENO: checking for $ac_word" >&5
34759 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
34760 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
34761 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
34762 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
34763 echo $ECHO_N "(cached) $ECHO_C" >&6
34764 else
34765 @@ -8545,27 +9050,41 @@ do
34766 IFS=$as_save_IFS
34767 test -z "$as_dir" && as_dir=.
34768 for ac_exec_ext in '' $ac_executable_extensions; do
34769 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34770 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34771 ac_cv_prog_ac_ct_RANLIB="ranlib"
34772 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34773 break 2
34774 fi
34775 done
34776 done
34777 +IFS=$as_save_IFS
34778
34779 - test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
34780 fi
34781 fi
34782 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
34783 if test -n "$ac_ct_RANLIB"; then
34784 - echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
34785 -echo "${ECHO_T}$ac_ct_RANLIB" >&6
34786 + { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
34787 +echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
34788 else
34789 - echo "$as_me:$LINENO: result: no" >&5
34790 -echo "${ECHO_T}no" >&6
34791 + { echo "$as_me:$LINENO: result: no" >&5
34792 +echo "${ECHO_T}no" >&6; }
34793 fi
34794
34795 - RANLIB=$ac_ct_RANLIB
34796 + if test "x$ac_ct_RANLIB" = x; then
34797 + RANLIB=":"
34798 + else
34799 + case $cross_compiling:$ac_tool_warned in
34800 +yes:)
34801 +{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
34802 +whose name does not start with the host triplet. If you think this
34803 +configuration is useful to you, please write to autoconf@gnu.org." >&5
34804 +echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
34805 +whose name does not start with the host triplet. If you think this
34806 +configuration is useful to you, please write to autoconf@gnu.org." >&2;}
34807 +ac_tool_warned=yes ;;
34808 +esac
34809 + RANLIB=$ac_ct_RANLIB
34810 + fi
34811 else
34812 RANLIB="$ac_cv_prog_RANLIB"
34813 fi
34814 @@ -8583,8 +9102,8 @@ fi
34815 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
34816 # OS/2's system install, which has a completely different semantic
34817 # ./install, which can be erroneously created by make from ./install.sh.
34818 -echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
34819 -echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
34820 +{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
34821 +echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
34822 if test -z "$INSTALL"; then
34823 if test "${ac_cv_path_install+set}" = set; then
34824 echo $ECHO_N "(cached) $ECHO_C" >&6
34825 @@ -8606,7 +9125,7 @@ case $as_dir/ in
34826 # by default.
34827 for ac_prog in ginstall scoinst install; do
34828 for ac_exec_ext in '' $ac_executable_extensions; do
34829 - if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
34830 + if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
34831 if test $ac_prog = install &&
34832 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
34833 # AIX install. It has an incompatible calling convention.
34834 @@ -8625,21 +9144,22 @@ case $as_dir/ in
34835 ;;
34836 esac
34837 done
34838 +IFS=$as_save_IFS
34839
34840
34841 fi
34842 if test "${ac_cv_path_install+set}" = set; then
34843 INSTALL=$ac_cv_path_install
34844 else
34845 - # As a last resort, use the slow shell script. We don't cache a
34846 - # path for INSTALL within a source directory, because that will
34847 + # As a last resort, use the slow shell script. Don't cache a
34848 + # value for INSTALL within a source directory, because that will
34849 # break other packages using the cache if that directory is
34850 - # removed, or if the path is relative.
34851 + # removed, or if the value is a relative name.
34852 INSTALL=$ac_install_sh
34853 fi
34854 fi
34855 -echo "$as_me:$LINENO: result: $INSTALL" >&5
34856 -echo "${ECHO_T}$INSTALL" >&6
34857 +{ echo "$as_me:$LINENO: result: $INSTALL" >&5
34858 +echo "${ECHO_T}$INSTALL" >&6; }
34859
34860 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
34861 # It thinks the first close brace ends the variable substitution.
34862 @@ -8663,8 +9183,8 @@ fi
34863 if test "x$cross_compiling" = "xno"; then
34864 EXEEXT_FOR_BUILD='$(EXEEXT)'
34865 else
34866 - echo "$as_me:$LINENO: checking for build system executable suffix" >&5
34867 -echo $ECHO_N "checking for build system executable suffix... $ECHO_C" >&6
34868 + { echo "$as_me:$LINENO: checking for build system executable suffix" >&5
34869 +echo $ECHO_N "checking for build system executable suffix... $ECHO_C" >&6; }
34870 if test "${bfd_cv_build_exeext+set}" = set; then
34871 echo $ECHO_N "(cached) $ECHO_C" >&6
34872 else
34873 @@ -8681,8 +9201,8 @@ else
34874 rm -f conftest*
34875 test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
34876 fi
34877 -echo "$as_me:$LINENO: result: $bfd_cv_build_exeext" >&5
34878 -echo "${ECHO_T}$bfd_cv_build_exeext" >&6
34879 +{ echo "$as_me:$LINENO: result: $bfd_cv_build_exeext" >&5
34880 +echo "${ECHO_T}$bfd_cv_build_exeext" >&6; }
34881 EXEEXT_FOR_BUILD=""
34882 test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
34883 fi
34884 @@ -8704,18 +9224,19 @@ esac
34885 for ac_header in string.h strings.h stdlib.h unistd.h fcntl.h sys/file.h
34886 do
34887 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34888 -if eval "test \"\${$as_ac_Header+set}\" = set"; then
34889 - echo "$as_me:$LINENO: checking for $ac_header" >&5
34890 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34891 -if eval "test \"\${$as_ac_Header+set}\" = set"; then
34892 +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34893 + { echo "$as_me:$LINENO: checking for $ac_header" >&5
34894 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
34895 +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34896 echo $ECHO_N "(cached) $ECHO_C" >&6
34897 fi
34898 -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34899 -echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34900 +ac_res=`eval echo '${'$as_ac_Header'}'`
34901 + { echo "$as_me:$LINENO: result: $ac_res" >&5
34902 +echo "${ECHO_T}$ac_res" >&6; }
34903 else
34904 # Is the header compilable?
34905 -echo "$as_me:$LINENO: checking $ac_header usability" >&5
34906 -echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
34907 +{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
34908 +echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
34909 cat >conftest.$ac_ext <<_ACEOF
34910 /* confdefs.h. */
34911 _ACEOF
34912 @@ -8726,41 +9247,37 @@ $ac_includes_default
34913 #include <$ac_header>
34914 _ACEOF
34915 rm -f conftest.$ac_objext
34916 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34917 - (eval $ac_compile) 2>conftest.er1
34918 +if { (ac_try="$ac_compile"
34919 +case "(($ac_try" in
34920 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34921 + *) ac_try_echo=$ac_try;;
34922 +esac
34923 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34924 + (eval "$ac_compile") 2>conftest.er1
34925 ac_status=$?
34926 grep -v '^ *+' conftest.er1 >conftest.err
34927 rm -f conftest.er1
34928 cat conftest.err >&5
34929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34930 - (exit $ac_status); } &&
34931 - { ac_try='test -z "$ac_c_werror_flag"
34932 - || test ! -s conftest.err'
34933 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34934 - (eval $ac_try) 2>&5
34935 - ac_status=$?
34936 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
34937 - (exit $ac_status); }; } &&
34938 - { ac_try='test -s conftest.$ac_objext'
34939 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34940 - (eval $ac_try) 2>&5
34941 - ac_status=$?
34942 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
34943 - (exit $ac_status); }; }; then
34944 + (exit $ac_status); } && {
34945 + test -z "$ac_c_werror_flag" ||
34946 + test ! -s conftest.err
34947 + } && test -s conftest.$ac_objext; then
34948 ac_header_compiler=yes
34949 else
34950 echo "$as_me: failed program was:" >&5
34951 sed 's/^/| /' conftest.$ac_ext >&5
34952
34953 -ac_header_compiler=no
34954 + ac_header_compiler=no
34955 fi
34956 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34957 -echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34958 -echo "${ECHO_T}$ac_header_compiler" >&6
34959 +
34960 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34961 +{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34962 +echo "${ECHO_T}$ac_header_compiler" >&6; }
34963
34964 # Is the header present?
34965 -echo "$as_me:$LINENO: checking $ac_header presence" >&5
34966 -echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
34967 +{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
34968 +echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
34969 cat >conftest.$ac_ext <<_ACEOF
34970 /* confdefs.h. */
34971 _ACEOF
34972 @@ -8769,24 +9286,22 @@ cat >>conftest.$ac_ext <<_ACEOF
34973 /* end confdefs.h. */
34974 #include <$ac_header>
34975 _ACEOF
34976 -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
34977 - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
34978 +if { (ac_try="$ac_cpp conftest.$ac_ext"
34979 +case "(($ac_try" in
34980 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34981 + *) ac_try_echo=$ac_try;;
34982 +esac
34983 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34984 + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
34985 ac_status=$?
34986 grep -v '^ *+' conftest.er1 >conftest.err
34987 rm -f conftest.er1
34988 cat conftest.err >&5
34989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34990 - (exit $ac_status); } >/dev/null; then
34991 - if test -s conftest.err; then
34992 - ac_cpp_err=$ac_c_preproc_warn_flag
34993 - ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
34994 - else
34995 - ac_cpp_err=
34996 - fi
34997 -else
34998 - ac_cpp_err=yes
34999 -fi
35000 -if test -z "$ac_cpp_err"; then
35001 + (exit $ac_status); } >/dev/null && {
35002 + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
35003 + test ! -s conftest.err
35004 + }; then
35005 ac_header_preproc=yes
35006 else
35007 echo "$as_me: failed program was:" >&5
35008 @@ -8794,9 +9309,10 @@ sed 's/^/| /' conftest.$ac_ext >&5
35009
35010 ac_header_preproc=no
35011 fi
35012 +
35013 rm -f conftest.err conftest.$ac_ext
35014 -echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35015 -echo "${ECHO_T}$ac_header_preproc" >&6
35016 +{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35017 +echo "${ECHO_T}$ac_header_preproc" >&6; }
35018
35019 # So? What about this header?
35020 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35021 @@ -8820,25 +9336,19 @@ echo "$as_me: WARNING: $ac_header: s
35022 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35023 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35024 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35025 - (
35026 - cat <<\_ASBOX
35027 -## ------------------------------------------ ##
35028 -## Report this to the AC_PACKAGE_NAME lists. ##
35029 -## ------------------------------------------ ##
35030 -_ASBOX
35031 - ) |
35032 - sed "s/^/$as_me: WARNING: /" >&2
35033 +
35034 ;;
35035 esac
35036 -echo "$as_me:$LINENO: checking for $ac_header" >&5
35037 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35038 -if eval "test \"\${$as_ac_Header+set}\" = set"; then
35039 +{ echo "$as_me:$LINENO: checking for $ac_header" >&5
35040 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
35041 +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35042 echo $ECHO_N "(cached) $ECHO_C" >&6
35043 else
35044 eval "$as_ac_Header=\$ac_header_preproc"
35045 fi
35046 -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35047 -echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35048 +ac_res=`eval echo '${'$as_ac_Header'}'`
35049 + { echo "$as_me:$LINENO: result: $ac_res" >&5
35050 +echo "${ECHO_T}$ac_res" >&6; }
35051
35052 fi
35053 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35054 @@ -8850,8 +9360,8 @@ fi
35055
35056 done
35057
35058 -echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
35059 -echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
35060 +{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
35061 +echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
35062 if test "${ac_cv_header_sys_wait_h+set}" = set; then
35063 echo $ECHO_N "(cached) $ECHO_C" >&6
35064 else
35065 @@ -8864,7 +9374,7 @@ cat >>conftest.$ac_ext <<_ACEOF
35066 #include <sys/types.h>
35067 #include <sys/wait.h>
35068 #ifndef WEXITSTATUS
35069 -# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
35070 +# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
35071 #endif
35072 #ifndef WIFEXITED
35073 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
35074 @@ -8881,38 +9391,34 @@ main ()
35075 }
35076 _ACEOF
35077 rm -f conftest.$ac_objext
35078 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35079 - (eval $ac_compile) 2>conftest.er1
35080 +if { (ac_try="$ac_compile"
35081 +case "(($ac_try" in
35082 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35083 + *) ac_try_echo=$ac_try;;
35084 +esac
35085 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35086 + (eval "$ac_compile") 2>conftest.er1
35087 ac_status=$?
35088 grep -v '^ *+' conftest.er1 >conftest.err
35089 rm -f conftest.er1
35090 cat conftest.err >&5
35091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35092 - (exit $ac_status); } &&
35093 - { ac_try='test -z "$ac_c_werror_flag"
35094 - || test ! -s conftest.err'
35095 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35096 - (eval $ac_try) 2>&5
35097 - ac_status=$?
35098 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
35099 - (exit $ac_status); }; } &&
35100 - { ac_try='test -s conftest.$ac_objext'
35101 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35102 - (eval $ac_try) 2>&5
35103 - ac_status=$?
35104 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
35105 - (exit $ac_status); }; }; then
35106 + (exit $ac_status); } && {
35107 + test -z "$ac_c_werror_flag" ||
35108 + test ! -s conftest.err
35109 + } && test -s conftest.$ac_objext; then
35110 ac_cv_header_sys_wait_h=yes
35111 else
35112 echo "$as_me: failed program was:" >&5
35113 sed 's/^/| /' conftest.$ac_ext >&5
35114
35115 -ac_cv_header_sys_wait_h=no
35116 + ac_cv_header_sys_wait_h=no
35117 fi
35118 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35119 +
35120 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35121 fi
35122 -echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
35123 -echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
35124 +{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
35125 +echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
35126 if test $ac_cv_header_sys_wait_h = yes; then
35127
35128 cat >>confdefs.h <<\_ACEOF
35129 @@ -8923,8 +9429,8 @@ fi
35130
35131 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
35132 # for constant arguments. Useless!
35133 -echo "$as_me:$LINENO: checking for working alloca.h" >&5
35134 -echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
35135 +{ echo "$as_me:$LINENO: checking for working alloca.h" >&5
35136 +echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
35137 if test "${ac_cv_working_alloca_h+set}" = set; then
35138 echo $ECHO_N "(cached) $ECHO_C" >&6
35139 else
35140 @@ -8939,44 +9445,42 @@ int
35141 main ()
35142 {
35143 char *p = (char *) alloca (2 * sizeof (int));
35144 + if (p) return 0;
35145 ;
35146 return 0;
35147 }
35148 _ACEOF
35149 rm -f conftest.$ac_objext conftest$ac_exeext
35150 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35151 - (eval $ac_link) 2>conftest.er1
35152 +if { (ac_try="$ac_link"
35153 +case "(($ac_try" in
35154 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35155 + *) ac_try_echo=$ac_try;;
35156 +esac
35157 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35158 + (eval "$ac_link") 2>conftest.er1
35159 ac_status=$?
35160 grep -v '^ *+' conftest.er1 >conftest.err
35161 rm -f conftest.er1
35162 cat conftest.err >&5
35163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35164 - (exit $ac_status); } &&
35165 - { ac_try='test -z "$ac_c_werror_flag"
35166 - || test ! -s conftest.err'
35167 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35168 - (eval $ac_try) 2>&5
35169 - ac_status=$?
35170 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
35171 - (exit $ac_status); }; } &&
35172 - { ac_try='test -s conftest$ac_exeext'
35173 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35174 - (eval $ac_try) 2>&5
35175 - ac_status=$?
35176 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
35177 - (exit $ac_status); }; }; then
35178 + (exit $ac_status); } && {
35179 + test -z "$ac_c_werror_flag" ||
35180 + test ! -s conftest.err
35181 + } && test -s conftest$ac_exeext &&
35182 + $as_test_x conftest$ac_exeext; then
35183 ac_cv_working_alloca_h=yes
35184 else
35185 echo "$as_me: failed program was:" >&5
35186 sed 's/^/| /' conftest.$ac_ext >&5
35187
35188 -ac_cv_working_alloca_h=no
35189 + ac_cv_working_alloca_h=no
35190 fi
35191 -rm -f conftest.err conftest.$ac_objext \
35192 +
35193 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35194 conftest$ac_exeext conftest.$ac_ext
35195 fi
35196 -echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
35197 -echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
35198 +{ echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
35199 +echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
35200 if test $ac_cv_working_alloca_h = yes; then
35201
35202 cat >>confdefs.h <<\_ACEOF
35203 @@ -8985,8 +9489,8 @@ _ACEOF
35204
35205 fi
35206
35207 -echo "$as_me:$LINENO: checking for alloca" >&5
35208 -echo $ECHO_N "checking for alloca... $ECHO_C" >&6
35209 +{ echo "$as_me:$LINENO: checking for alloca" >&5
35210 +echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
35211 if test "${ac_cv_func_alloca_works+set}" = set; then
35212 echo $ECHO_N "(cached) $ECHO_C" >&6
35213 else
35214 @@ -9003,7 +9507,7 @@ cat >>conftest.$ac_ext <<_ACEOF
35215 # include <malloc.h>
35216 # define alloca _alloca
35217 # else
35218 -# if HAVE_ALLOCA_H
35219 +# ifdef HAVE_ALLOCA_H
35220 # include <alloca.h>
35221 # else
35222 # ifdef _AIX
35223 @@ -9021,44 +9525,42 @@ int
35224 main ()
35225 {
35226 char *p = (char *) alloca (1);
35227 + if (p) return 0;
35228 ;
35229 return 0;
35230 }
35231 _ACEOF
35232 rm -f conftest.$ac_objext conftest$ac_exeext
35233 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35234 - (eval $ac_link) 2>conftest.er1
35235 +if { (ac_try="$ac_link"
35236 +case "(($ac_try" in
35237 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35238 + *) ac_try_echo=$ac_try;;
35239 +esac
35240 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35241 + (eval "$ac_link") 2>conftest.er1
35242 ac_status=$?
35243 grep -v '^ *+' conftest.er1 >conftest.err
35244 rm -f conftest.er1
35245 cat conftest.err >&5
35246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35247 - (exit $ac_status); } &&
35248 - { ac_try='test -z "$ac_c_werror_flag"
35249 - || test ! -s conftest.err'
35250 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35251 - (eval $ac_try) 2>&5
35252 - ac_status=$?
35253 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
35254 - (exit $ac_status); }; } &&
35255 - { ac_try='test -s conftest$ac_exeext'
35256 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35257 - (eval $ac_try) 2>&5
35258 - ac_status=$?
35259 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
35260 - (exit $ac_status); }; }; then
35261 + (exit $ac_status); } && {
35262 + test -z "$ac_c_werror_flag" ||
35263 + test ! -s conftest.err
35264 + } && test -s conftest$ac_exeext &&
35265 + $as_test_x conftest$ac_exeext; then
35266 ac_cv_func_alloca_works=yes
35267 else
35268 echo "$as_me: failed program was:" >&5
35269 sed 's/^/| /' conftest.$ac_ext >&5
35270
35271 -ac_cv_func_alloca_works=no
35272 + ac_cv_func_alloca_works=no
35273 fi
35274 -rm -f conftest.err conftest.$ac_objext \
35275 +
35276 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35277 conftest$ac_exeext conftest.$ac_ext
35278 fi
35279 -echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
35280 -echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
35281 +{ echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
35282 +echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
35283
35284 if test $ac_cv_func_alloca_works = yes; then
35285
35286 @@ -9072,15 +9574,15 @@ else
35287 # contain a buggy version. If you still want to use their alloca,
35288 # use ar to extract alloca.o from them instead of compiling alloca.c.
35289
35290 -ALLOCA=alloca.$ac_objext
35291 +ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
35292
35293 cat >>confdefs.h <<\_ACEOF
35294 #define C_ALLOCA 1
35295 _ACEOF
35296
35297
35298 -echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
35299 -echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
35300 +{ echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
35301 +echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
35302 if test "${ac_cv_os_cray+set}" = set; then
35303 echo $ECHO_N "(cached) $ECHO_C" >&6
35304 else
35305 @@ -9090,7 +9592,7 @@ _ACEOF
35306 cat confdefs.h >>conftest.$ac_ext
35307 cat >>conftest.$ac_ext <<_ACEOF
35308 /* end confdefs.h. */
35309 -#if defined(CRAY) && ! defined(CRAY2)
35310 +#if defined CRAY && ! defined CRAY2
35311 webecray
35312 #else
35313 wenotbecray
35314 @@ -9106,14 +9608,14 @@ fi
35315 rm -f conftest*
35316
35317 fi
35318 -echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
35319 -echo "${ECHO_T}$ac_cv_os_cray" >&6
35320 +{ echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
35321 +echo "${ECHO_T}$ac_cv_os_cray" >&6; }
35322 if test $ac_cv_os_cray = yes; then
35323 for ac_func in _getb67 GETB67 getb67; do
35324 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35325 -echo "$as_me:$LINENO: checking for $ac_func" >&5
35326 -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35327 -if eval "test \"\${$as_ac_var+set}\" = set"; then
35328 +{ echo "$as_me:$LINENO: checking for $ac_func" >&5
35329 +echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
35330 +if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
35331 echo $ECHO_N "(cached) $ECHO_C" >&6
35332 else
35333 cat >conftest.$ac_ext <<_ACEOF
35334 @@ -9139,68 +9641,60 @@ cat >>conftest.$ac_ext <<_ACEOF
35335
35336 #undef $ac_func
35337
35338 -/* Override any gcc2 internal prototype to avoid an error. */
35339 +/* Override any GCC internal prototype to avoid an error.
35340 + Use char because int might match the return type of a GCC
35341 + builtin and then its argument prototype would still apply. */
35342 #ifdef __cplusplus
35343 extern "C"
35344 -{
35345 #endif
35346 -/* We use char because int might match the return type of a gcc2
35347 - builtin and then its argument prototype would still apply. */
35348 char $ac_func ();
35349 /* The GNU C library defines this for functions which it implements
35350 to always fail with ENOSYS. Some functions are actually named
35351 something starting with __ and the normal name is an alias. */
35352 -#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35353 +#if defined __stub_$ac_func || defined __stub___$ac_func
35354 choke me
35355 -#else
35356 -char (*f) () = $ac_func;
35357 -#endif
35358 -#ifdef __cplusplus
35359 -}
35360 #endif
35361
35362 int
35363 main ()
35364 {
35365 -return f != $ac_func;
35366 +return $ac_func ();
35367 ;
35368 return 0;
35369 }
35370 _ACEOF
35371 rm -f conftest.$ac_objext conftest$ac_exeext
35372 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35373 - (eval $ac_link) 2>conftest.er1
35374 +if { (ac_try="$ac_link"
35375 +case "(($ac_try" in
35376 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35377 + *) ac_try_echo=$ac_try;;
35378 +esac
35379 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35380 + (eval "$ac_link") 2>conftest.er1
35381 ac_status=$?
35382 grep -v '^ *+' conftest.er1 >conftest.err
35383 rm -f conftest.er1
35384 cat conftest.err >&5
35385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35386 - (exit $ac_status); } &&
35387 - { ac_try='test -z "$ac_c_werror_flag"
35388 - || test ! -s conftest.err'
35389 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35390 - (eval $ac_try) 2>&5
35391 - ac_status=$?
35392 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
35393 - (exit $ac_status); }; } &&
35394 - { ac_try='test -s conftest$ac_exeext'
35395 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35396 - (eval $ac_try) 2>&5
35397 - ac_status=$?
35398 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
35399 - (exit $ac_status); }; }; then
35400 + (exit $ac_status); } && {
35401 + test -z "$ac_c_werror_flag" ||
35402 + test ! -s conftest.err
35403 + } && test -s conftest$ac_exeext &&
35404 + $as_test_x conftest$ac_exeext; then
35405 eval "$as_ac_var=yes"
35406 else
35407 echo "$as_me: failed program was:" >&5
35408 sed 's/^/| /' conftest.$ac_ext >&5
35409
35410 -eval "$as_ac_var=no"
35411 + eval "$as_ac_var=no"
35412 fi
35413 -rm -f conftest.err conftest.$ac_objext \
35414 +
35415 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35416 conftest$ac_exeext conftest.$ac_ext
35417 fi
35418 -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35419 -echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35420 +ac_res=`eval echo '${'$as_ac_var'}'`
35421 + { echo "$as_me:$LINENO: result: $ac_res" >&5
35422 +echo "${ECHO_T}$ac_res" >&6; }
35423 if test `eval echo '${'$as_ac_var'}'` = yes; then
35424
35425 cat >>confdefs.h <<_ACEOF
35426 @@ -9213,8 +9707,8 @@ fi
35427 done
35428 fi
35429
35430 -echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
35431 -echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
35432 +{ echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
35433 +echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
35434 if test "${ac_cv_c_stack_direction+set}" = set; then
35435 echo $ECHO_N "(cached) $ECHO_C" >&6
35436 else
35437 @@ -9227,6 +9721,7 @@ _ACEOF
35438 cat confdefs.h >>conftest.$ac_ext
35439 cat >>conftest.$ac_ext <<_ACEOF
35440 /* end confdefs.h. */
35441 +$ac_includes_default
35442 int
35443 find_stack_direction ()
35444 {
35445 @@ -9244,17 +9739,26 @@ find_stack_direction ()
35446 int
35447 main ()
35448 {
35449 - exit (find_stack_direction () < 0);
35450 + return find_stack_direction () < 0;
35451 }
35452 _ACEOF
35453 rm -f conftest$ac_exeext
35454 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35455 - (eval $ac_link) 2>&5
35456 +if { (ac_try="$ac_link"
35457 +case "(($ac_try" in
35458 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35459 + *) ac_try_echo=$ac_try;;
35460 +esac
35461 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35462 + (eval "$ac_link") 2>&5
35463 ac_status=$?
35464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35465 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35466 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35467 - (eval $ac_try) 2>&5
35468 + { (case "(($ac_try" in
35469 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35470 + *) ac_try_echo=$ac_try;;
35471 +esac
35472 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35473 + (eval "$ac_try") 2>&5
35474 ac_status=$?
35475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35476 (exit $ac_status); }; }; then
35477 @@ -9267,11 +9771,13 @@ sed 's/^/| /' conftest.$ac_ext >&5
35478 ( exit $ac_status )
35479 ac_cv_c_stack_direction=-1
35480 fi
35481 -rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35482 +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35483 fi
35484 +
35485 +
35486 fi
35487 -echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
35488 -echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
35489 +{ echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
35490 +echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
35491
35492 cat >>confdefs.h <<_ACEOF
35493 #define STACK_DIRECTION $ac_cv_c_stack_direction
35494 @@ -9288,9 +9794,9 @@ fi
35495 for ac_func in sbrk utimes setmode getc_unlocked strcoll
35496 do
35497 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35498 -echo "$as_me:$LINENO: checking for $ac_func" >&5
35499 -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35500 -if eval "test \"\${$as_ac_var+set}\" = set"; then
35501 +{ echo "$as_me:$LINENO: checking for $ac_func" >&5
35502 +echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
35503 +if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
35504 echo $ECHO_N "(cached) $ECHO_C" >&6
35505 else
35506 cat >conftest.$ac_ext <<_ACEOF
35507 @@ -9316,68 +9822,60 @@ cat >>conftest.$ac_ext <<_ACEOF
35508
35509 #undef $ac_func
35510
35511 -/* Override any gcc2 internal prototype to avoid an error. */
35512 +/* Override any GCC internal prototype to avoid an error.
35513 + Use char because int might match the return type of a GCC
35514 + builtin and then its argument prototype would still apply. */
35515 #ifdef __cplusplus
35516 extern "C"
35517 -{
35518 #endif
35519 -/* We use char because int might match the return type of a gcc2
35520 - builtin and then its argument prototype would still apply. */
35521 char $ac_func ();
35522 /* The GNU C library defines this for functions which it implements
35523 to always fail with ENOSYS. Some functions are actually named
35524 something starting with __ and the normal name is an alias. */
35525 -#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35526 +#if defined __stub_$ac_func || defined __stub___$ac_func
35527 choke me
35528 -#else
35529 -char (*f) () = $ac_func;
35530 -#endif
35531 -#ifdef __cplusplus
35532 -}
35533 #endif
35534
35535 int
35536 main ()
35537 {
35538 -return f != $ac_func;
35539 +return $ac_func ();
35540 ;
35541 return 0;
35542 }
35543 _ACEOF
35544 rm -f conftest.$ac_objext conftest$ac_exeext
35545 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35546 - (eval $ac_link) 2>conftest.er1
35547 +if { (ac_try="$ac_link"
35548 +case "(($ac_try" in
35549 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35550 + *) ac_try_echo=$ac_try;;
35551 +esac
35552 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35553 + (eval "$ac_link") 2>conftest.er1
35554 ac_status=$?
35555 grep -v '^ *+' conftest.er1 >conftest.err
35556 rm -f conftest.er1
35557 cat conftest.err >&5
35558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35559 - (exit $ac_status); } &&
35560 - { ac_try='test -z "$ac_c_werror_flag"
35561 - || test ! -s conftest.err'
35562 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35563 - (eval $ac_try) 2>&5
35564 - ac_status=$?
35565 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
35566 - (exit $ac_status); }; } &&
35567 - { ac_try='test -s conftest$ac_exeext'
35568 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35569 - (eval $ac_try) 2>&5
35570 - ac_status=$?
35571 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
35572 - (exit $ac_status); }; }; then
35573 + (exit $ac_status); } && {
35574 + test -z "$ac_c_werror_flag" ||
35575 + test ! -s conftest.err
35576 + } && test -s conftest$ac_exeext &&
35577 + $as_test_x conftest$ac_exeext; then
35578 eval "$as_ac_var=yes"
35579 else
35580 echo "$as_me: failed program was:" >&5
35581 sed 's/^/| /' conftest.$ac_ext >&5
35582
35583 -eval "$as_ac_var=no"
35584 + eval "$as_ac_var=no"
35585 fi
35586 -rm -f conftest.err conftest.$ac_objext \
35587 +
35588 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35589 conftest$ac_exeext conftest.$ac_ext
35590 fi
35591 -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35592 -echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35593 +ac_res=`eval echo '${'$as_ac_var'}'`
35594 + { echo "$as_me:$LINENO: result: $ac_res" >&5
35595 +echo "${ECHO_T}$ac_res" >&6; }
35596 if test `eval echo '${'$as_ac_var'}'` = yes; then
35597 cat >>confdefs.h <<_ACEOF
35598 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35599 @@ -9389,8 +9887,8 @@ done
35600
35601 # Check whether fopen64 is available and whether _LARGEFILE64_SOURCE
35602 # needs to be defined for it
35603 -echo "$as_me:$LINENO: checking for fopen64" >&5
35604 -echo $ECHO_N "checking for fopen64... $ECHO_C" >&6
35605 +{ echo "$as_me:$LINENO: checking for fopen64" >&5
35606 +echo $ECHO_N "checking for fopen64... $ECHO_C" >&6; }
35607 if test "${bu_cv_have_fopen64+set}" = set; then
35608 echo $ECHO_N "(cached) $ECHO_C" >&6
35609 else
35610 @@ -9410,33 +9908,29 @@ FILE *f = fopen64 ("/tmp/foo","r");
35611 }
35612 _ACEOF
35613 rm -f conftest.$ac_objext conftest$ac_exeext
35614 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35615 - (eval $ac_link) 2>conftest.er1
35616 +if { (ac_try="$ac_link"
35617 +case "(($ac_try" in
35618 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35619 + *) ac_try_echo=$ac_try;;
35620 +esac
35621 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35622 + (eval "$ac_link") 2>conftest.er1
35623 ac_status=$?
35624 grep -v '^ *+' conftest.er1 >conftest.err
35625 rm -f conftest.er1
35626 cat conftest.err >&5
35627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35628 - (exit $ac_status); } &&
35629 - { ac_try='test -z "$ac_c_werror_flag"
35630 - || test ! -s conftest.err'
35631 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35632 - (eval $ac_try) 2>&5
35633 - ac_status=$?
35634 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
35635 - (exit $ac_status); }; } &&
35636 - { ac_try='test -s conftest$ac_exeext'
35637 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35638 - (eval $ac_try) 2>&5
35639 - ac_status=$?
35640 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
35641 - (exit $ac_status); }; }; then
35642 + (exit $ac_status); } && {
35643 + test -z "$ac_c_werror_flag" ||
35644 + test ! -s conftest.err
35645 + } && test -s conftest$ac_exeext &&
35646 + $as_test_x conftest$ac_exeext; then
35647 bu_cv_have_fopen64=yes
35648 else
35649 echo "$as_me: failed program was:" >&5
35650 sed 's/^/| /' conftest.$ac_ext >&5
35651
35652 -saved_CPPFLAGS=$CPPFLAGS
35653 + saved_CPPFLAGS=$CPPFLAGS
35654 CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE"
35655 cat >conftest.$ac_ext <<_ACEOF
35656 /* confdefs.h. */
35657 @@ -9454,44 +9948,42 @@ FILE *f = fopen64 ("/tmp/foo","r");
35658 }
35659 _ACEOF
35660 rm -f conftest.$ac_objext conftest$ac_exeext
35661 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35662 - (eval $ac_link) 2>conftest.er1
35663 +if { (ac_try="$ac_link"
35664 +case "(($ac_try" in
35665 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35666 + *) ac_try_echo=$ac_try;;
35667 +esac
35668 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35669 + (eval "$ac_link") 2>conftest.er1
35670 ac_status=$?
35671 grep -v '^ *+' conftest.er1 >conftest.err
35672 rm -f conftest.er1
35673 cat conftest.err >&5
35674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35675 - (exit $ac_status); } &&
35676 - { ac_try='test -z "$ac_c_werror_flag"
35677 - || test ! -s conftest.err'
35678 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35679 - (eval $ac_try) 2>&5
35680 - ac_status=$?
35681 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
35682 - (exit $ac_status); }; } &&
35683 - { ac_try='test -s conftest$ac_exeext'
35684 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35685 - (eval $ac_try) 2>&5
35686 - ac_status=$?
35687 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
35688 - (exit $ac_status); }; }; then
35689 + (exit $ac_status); } && {
35690 + test -z "$ac_c_werror_flag" ||
35691 + test ! -s conftest.err
35692 + } && test -s conftest$ac_exeext &&
35693 + $as_test_x conftest$ac_exeext; then
35694 bu_cv_have_fopen64="need -D_LARGEFILE64_SOURCE"
35695 else
35696 echo "$as_me: failed program was:" >&5
35697 sed 's/^/| /' conftest.$ac_ext >&5
35698
35699 -bu_cv_have_fopen64=no
35700 + bu_cv_have_fopen64=no
35701 fi
35702 -rm -f conftest.err conftest.$ac_objext \
35703 +
35704 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35705 conftest$ac_exeext conftest.$ac_ext
35706 CPPFLAGS=$saved_CPPFLAGS
35707 fi
35708 -rm -f conftest.err conftest.$ac_objext \
35709 +
35710 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35711 conftest$ac_exeext conftest.$ac_ext
35712 fi
35713
35714 -echo "$as_me:$LINENO: result: $bu_cv_have_fopen64" >&5
35715 -echo "${ECHO_T}$bu_cv_have_fopen64" >&6
35716 +{ echo "$as_me:$LINENO: result: $bu_cv_have_fopen64" >&5
35717 +echo "${ECHO_T}$bu_cv_have_fopen64" >&6; }
35718 if test "$bu_cv_have_fopen64" != no; then
35719
35720 cat >>confdefs.h <<\_ACEOF
35721 @@ -9499,8 +9991,8 @@ cat >>confdefs.h <<\_ACEOF
35722 _ACEOF
35723
35724 fi
35725 -echo "$as_me:$LINENO: checking for stat64" >&5
35726 -echo $ECHO_N "checking for stat64... $ECHO_C" >&6
35727 +{ echo "$as_me:$LINENO: checking for stat64" >&5
35728 +echo $ECHO_N "checking for stat64... $ECHO_C" >&6; }
35729 if test "${bu_cv_have_stat64+set}" = set; then
35730 echo $ECHO_N "(cached) $ECHO_C" >&6
35731 else
35732 @@ -9520,33 +10012,29 @@ struct stat64 st; stat64 ("/tmp/foo", &s
35733 }
35734 _ACEOF
35735 rm -f conftest.$ac_objext conftest$ac_exeext
35736 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35737 - (eval $ac_link) 2>conftest.er1
35738 +if { (ac_try="$ac_link"
35739 +case "(($ac_try" in
35740 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35741 + *) ac_try_echo=$ac_try;;
35742 +esac
35743 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35744 + (eval "$ac_link") 2>conftest.er1
35745 ac_status=$?
35746 grep -v '^ *+' conftest.er1 >conftest.err
35747 rm -f conftest.er1
35748 cat conftest.err >&5
35749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35750 - (exit $ac_status); } &&
35751 - { ac_try='test -z "$ac_c_werror_flag"
35752 - || test ! -s conftest.err'
35753 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35754 - (eval $ac_try) 2>&5
35755 - ac_status=$?
35756 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
35757 - (exit $ac_status); }; } &&
35758 - { ac_try='test -s conftest$ac_exeext'
35759 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35760 - (eval $ac_try) 2>&5
35761 - ac_status=$?
35762 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
35763 - (exit $ac_status); }; }; then
35764 + (exit $ac_status); } && {
35765 + test -z "$ac_c_werror_flag" ||
35766 + test ! -s conftest.err
35767 + } && test -s conftest$ac_exeext &&
35768 + $as_test_x conftest$ac_exeext; then
35769 bu_cv_have_stat64=yes
35770 else
35771 echo "$as_me: failed program was:" >&5
35772 sed 's/^/| /' conftest.$ac_ext >&5
35773
35774 -saved_CPPFLAGS=$CPPFLAGS
35775 + saved_CPPFLAGS=$CPPFLAGS
35776 CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE"
35777 cat >conftest.$ac_ext <<_ACEOF
35778 /* confdefs.h. */
35779 @@ -9564,191 +10052,146 @@ struct stat64 st; stat64 ("/tmp/foo", &s
35780 }
35781 _ACEOF
35782 rm -f conftest.$ac_objext conftest$ac_exeext
35783 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35784 - (eval $ac_link) 2>conftest.er1
35785 +if { (ac_try="$ac_link"
35786 +case "(($ac_try" in
35787 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35788 + *) ac_try_echo=$ac_try;;
35789 +esac
35790 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35791 + (eval "$ac_link") 2>conftest.er1
35792 ac_status=$?
35793 grep -v '^ *+' conftest.er1 >conftest.err
35794 rm -f conftest.er1
35795 cat conftest.err >&5
35796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35797 - (exit $ac_status); } &&
35798 - { ac_try='test -z "$ac_c_werror_flag"
35799 - || test ! -s conftest.err'
35800 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35801 - (eval $ac_try) 2>&5
35802 - ac_status=$?
35803 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
35804 - (exit $ac_status); }; } &&
35805 - { ac_try='test -s conftest$ac_exeext'
35806 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35807 - (eval $ac_try) 2>&5
35808 - ac_status=$?
35809 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
35810 - (exit $ac_status); }; }; then
35811 + (exit $ac_status); } && {
35812 + test -z "$ac_c_werror_flag" ||
35813 + test ! -s conftest.err
35814 + } && test -s conftest$ac_exeext &&
35815 + $as_test_x conftest$ac_exeext; then
35816 bu_cv_have_stat64="need -D_LARGEFILE64_SOURCE"
35817 else
35818 echo "$as_me: failed program was:" >&5
35819 sed 's/^/| /' conftest.$ac_ext >&5
35820
35821 -bu_cv_have_stat64=no
35822 + bu_cv_have_stat64=no
35823 fi
35824 -rm -f conftest.err conftest.$ac_objext \
35825 +
35826 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35827 conftest$ac_exeext conftest.$ac_ext
35828 CPPFLAGS=$saved_CPPFLAGS
35829 fi
35830 -rm -f conftest.err conftest.$ac_objext \
35831 +
35832 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35833 conftest$ac_exeext conftest.$ac_ext
35834 fi
35835
35836 -echo "$as_me:$LINENO: result: $bu_cv_have_stat64" >&5
35837 -echo "${ECHO_T}$bu_cv_have_stat64" >&6
35838 +{ echo "$as_me:$LINENO: result: $bu_cv_have_stat64" >&5
35839 +echo "${ECHO_T}$bu_cv_have_stat64" >&6; }
35840 if test "$bu_cv_have_stat64" != no; then
35841
35842 cat >>confdefs.h <<\_ACEOF
35843 #define HAVE_STAT64 1
35844 _ACEOF
35845
35846 -fi
35847 -if test "$bu_cv_have_fopen64" = "need -D_LARGEFILE64_SOURCE" \
35848 - || test "$bu_cv_have_stat64" = "need -D_LARGEFILE64_SOURCE"; then
35849 -
35850 -cat >>confdefs.h <<\_ACEOF
35851 -#define _LARGEFILE64_SOURCE 1
35852 -_ACEOF
35853 -
35854 - CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE"
35855 -fi
35856 -
35857 -# Some systems have frexp only in -lm, not in -lc.
35858 -echo "$as_me:$LINENO: checking for library containing frexp" >&5
35859 -echo $ECHO_N "checking for library containing frexp... $ECHO_C" >&6
35860 -if test "${ac_cv_search_frexp+set}" = set; then
35861 - echo $ECHO_N "(cached) $ECHO_C" >&6
35862 -else
35863 - ac_func_search_save_LIBS=$LIBS
35864 -ac_cv_search_frexp=no
35865 -cat >conftest.$ac_ext <<_ACEOF
35866 -/* confdefs.h. */
35867 -_ACEOF
35868 -cat confdefs.h >>conftest.$ac_ext
35869 -cat >>conftest.$ac_ext <<_ACEOF
35870 -/* end confdefs.h. */
35871 -
35872 -/* Override any gcc2 internal prototype to avoid an error. */
35873 -#ifdef __cplusplus
35874 -extern "C"
35875 -#endif
35876 -/* We use char because int might match the return type of a gcc2
35877 - builtin and then its argument prototype would still apply. */
35878 -char frexp ();
35879 -int
35880 -main ()
35881 -{
35882 -frexp ();
35883 - ;
35884 - return 0;
35885 -}
35886 -_ACEOF
35887 -rm -f conftest.$ac_objext conftest$ac_exeext
35888 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35889 - (eval $ac_link) 2>conftest.er1
35890 - ac_status=$?
35891 - grep -v '^ *+' conftest.er1 >conftest.err
35892 - rm -f conftest.er1
35893 - cat conftest.err >&5
35894 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
35895 - (exit $ac_status); } &&
35896 - { ac_try='test -z "$ac_c_werror_flag"
35897 - || test ! -s conftest.err'
35898 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35899 - (eval $ac_try) 2>&5
35900 - ac_status=$?
35901 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
35902 - (exit $ac_status); }; } &&
35903 - { ac_try='test -s conftest$ac_exeext'
35904 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35905 - (eval $ac_try) 2>&5
35906 - ac_status=$?
35907 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
35908 - (exit $ac_status); }; }; then
35909 - ac_cv_search_frexp="none required"
35910 -else
35911 - echo "$as_me: failed program was:" >&5
35912 -sed 's/^/| /' conftest.$ac_ext >&5
35913 +fi
35914 +if test "$bu_cv_have_fopen64" = "need -D_LARGEFILE64_SOURCE" \
35915 + || test "$bu_cv_have_stat64" = "need -D_LARGEFILE64_SOURCE"; then
35916 +
35917 +cat >>confdefs.h <<\_ACEOF
35918 +#define _LARGEFILE64_SOURCE 1
35919 +_ACEOF
35920
35921 + CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE"
35922 fi
35923 -rm -f conftest.err conftest.$ac_objext \
35924 - conftest$ac_exeext conftest.$ac_ext
35925 -if test "$ac_cv_search_frexp" = no; then
35926 - for ac_lib in m; do
35927 - LIBS="-l$ac_lib $ac_func_search_save_LIBS"
35928 - cat >conftest.$ac_ext <<_ACEOF
35929 +
35930 +# Some systems have frexp only in -lm, not in -lc.
35931 +{ echo "$as_me:$LINENO: checking for library containing frexp" >&5
35932 +echo $ECHO_N "checking for library containing frexp... $ECHO_C" >&6; }
35933 +if test "${ac_cv_search_frexp+set}" = set; then
35934 + echo $ECHO_N "(cached) $ECHO_C" >&6
35935 +else
35936 + ac_func_search_save_LIBS=$LIBS
35937 +cat >conftest.$ac_ext <<_ACEOF
35938 /* confdefs.h. */
35939 _ACEOF
35940 cat confdefs.h >>conftest.$ac_ext
35941 cat >>conftest.$ac_ext <<_ACEOF
35942 /* end confdefs.h. */
35943
35944 -/* Override any gcc2 internal prototype to avoid an error. */
35945 +/* Override any GCC internal prototype to avoid an error.
35946 + Use char because int might match the return type of a GCC
35947 + builtin and then its argument prototype would still apply. */
35948 #ifdef __cplusplus
35949 extern "C"
35950 #endif
35951 -/* We use char because int might match the return type of a gcc2
35952 - builtin and then its argument prototype would still apply. */
35953 char frexp ();
35954 int
35955 main ()
35956 {
35957 -frexp ();
35958 +return frexp ();
35959 ;
35960 return 0;
35961 }
35962 _ACEOF
35963 -rm -f conftest.$ac_objext conftest$ac_exeext
35964 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35965 - (eval $ac_link) 2>conftest.er1
35966 +for ac_lib in '' m; do
35967 + if test -z "$ac_lib"; then
35968 + ac_res="none required"
35969 + else
35970 + ac_res=-l$ac_lib
35971 + LIBS="-l$ac_lib $ac_func_search_save_LIBS"
35972 + fi
35973 + rm -f conftest.$ac_objext conftest$ac_exeext
35974 +if { (ac_try="$ac_link"
35975 +case "(($ac_try" in
35976 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35977 + *) ac_try_echo=$ac_try;;
35978 +esac
35979 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35980 + (eval "$ac_link") 2>conftest.er1
35981 ac_status=$?
35982 grep -v '^ *+' conftest.er1 >conftest.err
35983 rm -f conftest.er1
35984 cat conftest.err >&5
35985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35986 - (exit $ac_status); } &&
35987 - { ac_try='test -z "$ac_c_werror_flag"
35988 - || test ! -s conftest.err'
35989 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35990 - (eval $ac_try) 2>&5
35991 - ac_status=$?
35992 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
35993 - (exit $ac_status); }; } &&
35994 - { ac_try='test -s conftest$ac_exeext'
35995 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35996 - (eval $ac_try) 2>&5
35997 - ac_status=$?
35998 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
35999 - (exit $ac_status); }; }; then
36000 - ac_cv_search_frexp="-l$ac_lib"
36001 -break
36002 + (exit $ac_status); } && {
36003 + test -z "$ac_c_werror_flag" ||
36004 + test ! -s conftest.err
36005 + } && test -s conftest$ac_exeext &&
36006 + $as_test_x conftest$ac_exeext; then
36007 + ac_cv_search_frexp=$ac_res
36008 else
36009 echo "$as_me: failed program was:" >&5
36010 sed 's/^/| /' conftest.$ac_ext >&5
36011
36012 +
36013 fi
36014 -rm -f conftest.err conftest.$ac_objext \
36015 - conftest$ac_exeext conftest.$ac_ext
36016 - done
36017 +
36018 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36019 + conftest$ac_exeext
36020 + if test "${ac_cv_search_frexp+set}" = set; then
36021 + break
36022 +fi
36023 +done
36024 +if test "${ac_cv_search_frexp+set}" = set; then
36025 + :
36026 +else
36027 + ac_cv_search_frexp=no
36028 fi
36029 +rm conftest.$ac_ext
36030 LIBS=$ac_func_search_save_LIBS
36031 fi
36032 -echo "$as_me:$LINENO: result: $ac_cv_search_frexp" >&5
36033 -echo "${ECHO_T}$ac_cv_search_frexp" >&6
36034 -if test "$ac_cv_search_frexp" != no; then
36035 - test "$ac_cv_search_frexp" = "none required" || LIBS="$ac_cv_search_frexp $LIBS"
36036 +{ echo "$as_me:$LINENO: result: $ac_cv_search_frexp" >&5
36037 +echo "${ECHO_T}$ac_cv_search_frexp" >&6; }
36038 +ac_res=$ac_cv_search_frexp
36039 +if test "$ac_res" != no; then
36040 + test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
36041
36042 fi
36043
36044
36045 -echo "$as_me:$LINENO: checking for time_t in time.h" >&5
36046 -echo $ECHO_N "checking for time_t in time.h... $ECHO_C" >&6
36047 +{ echo "$as_me:$LINENO: checking for time_t in time.h" >&5
36048 +echo $ECHO_N "checking for time_t in time.h... $ECHO_C" >&6; }
36049 if test "${bu_cv_decl_time_t_time_h+set}" = set; then
36050 echo $ECHO_N "(cached) $ECHO_C" >&6
36051 else
36052 @@ -9768,39 +10211,35 @@ time_t i;
36053 }
36054 _ACEOF
36055 rm -f conftest.$ac_objext
36056 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36057 - (eval $ac_compile) 2>conftest.er1
36058 +if { (ac_try="$ac_compile"
36059 +case "(($ac_try" in
36060 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36061 + *) ac_try_echo=$ac_try;;
36062 +esac
36063 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36064 + (eval "$ac_compile") 2>conftest.er1
36065 ac_status=$?
36066 grep -v '^ *+' conftest.er1 >conftest.err
36067 rm -f conftest.er1
36068 cat conftest.err >&5
36069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36070 - (exit $ac_status); } &&
36071 - { ac_try='test -z "$ac_c_werror_flag"
36072 - || test ! -s conftest.err'
36073 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36074 - (eval $ac_try) 2>&5
36075 - ac_status=$?
36076 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
36077 - (exit $ac_status); }; } &&
36078 - { ac_try='test -s conftest.$ac_objext'
36079 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36080 - (eval $ac_try) 2>&5
36081 - ac_status=$?
36082 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
36083 - (exit $ac_status); }; }; then
36084 + (exit $ac_status); } && {
36085 + test -z "$ac_c_werror_flag" ||
36086 + test ! -s conftest.err
36087 + } && test -s conftest.$ac_objext; then
36088 bu_cv_decl_time_t_time_h=yes
36089 else
36090 echo "$as_me: failed program was:" >&5
36091 sed 's/^/| /' conftest.$ac_ext >&5
36092
36093 -bu_cv_decl_time_t_time_h=no
36094 + bu_cv_decl_time_t_time_h=no
36095 fi
36096 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36097 +
36098 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36099 fi
36100
36101 -echo "$as_me:$LINENO: result: $bu_cv_decl_time_t_time_h" >&5
36102 -echo "${ECHO_T}$bu_cv_decl_time_t_time_h" >&6
36103 +{ echo "$as_me:$LINENO: result: $bu_cv_decl_time_t_time_h" >&5
36104 +echo "${ECHO_T}$bu_cv_decl_time_t_time_h" >&6; }
36105 if test $bu_cv_decl_time_t_time_h = yes; then
36106
36107 cat >>confdefs.h <<\_ACEOF
36108 @@ -9809,8 +10248,8 @@ _ACEOF
36109
36110 fi
36111
36112 -echo "$as_me:$LINENO: checking for time_t in sys/types.h" >&5
36113 -echo $ECHO_N "checking for time_t in sys/types.h... $ECHO_C" >&6
36114 +{ echo "$as_me:$LINENO: checking for time_t in sys/types.h" >&5
36115 +echo $ECHO_N "checking for time_t in sys/types.h... $ECHO_C" >&6; }
36116 if test "${bu_cv_decl_time_t_types_h+set}" = set; then
36117 echo $ECHO_N "(cached) $ECHO_C" >&6
36118 else
36119 @@ -9830,39 +10269,35 @@ time_t i;
36120 }
36121 _ACEOF
36122 rm -f conftest.$ac_objext
36123 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36124 - (eval $ac_compile) 2>conftest.er1
36125 +if { (ac_try="$ac_compile"
36126 +case "(($ac_try" in
36127 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36128 + *) ac_try_echo=$ac_try;;
36129 +esac
36130 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36131 + (eval "$ac_compile") 2>conftest.er1
36132 ac_status=$?
36133 grep -v '^ *+' conftest.er1 >conftest.err
36134 rm -f conftest.er1
36135 cat conftest.err >&5
36136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36137 - (exit $ac_status); } &&
36138 - { ac_try='test -z "$ac_c_werror_flag"
36139 - || test ! -s conftest.err'
36140 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36141 - (eval $ac_try) 2>&5
36142 - ac_status=$?
36143 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
36144 - (exit $ac_status); }; } &&
36145 - { ac_try='test -s conftest.$ac_objext'
36146 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36147 - (eval $ac_try) 2>&5
36148 - ac_status=$?
36149 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
36150 - (exit $ac_status); }; }; then
36151 + (exit $ac_status); } && {
36152 + test -z "$ac_c_werror_flag" ||
36153 + test ! -s conftest.err
36154 + } && test -s conftest.$ac_objext; then
36155 bu_cv_decl_time_t_types_h=yes
36156 else
36157 echo "$as_me: failed program was:" >&5
36158 sed 's/^/| /' conftest.$ac_ext >&5
36159
36160 -bu_cv_decl_time_t_types_h=no
36161 + bu_cv_decl_time_t_types_h=no
36162 fi
36163 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36164 +
36165 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36166 fi
36167
36168 -echo "$as_me:$LINENO: result: $bu_cv_decl_time_t_types_h" >&5
36169 -echo "${ECHO_T}$bu_cv_decl_time_t_types_h" >&6
36170 +{ echo "$as_me:$LINENO: result: $bu_cv_decl_time_t_types_h" >&5
36171 +echo "${ECHO_T}$bu_cv_decl_time_t_types_h" >&6; }
36172 if test $bu_cv_decl_time_t_types_h = yes; then
36173
36174 cat >>confdefs.h <<\_ACEOF
36175 @@ -9871,8 +10306,8 @@ _ACEOF
36176
36177 fi
36178
36179 -echo "$as_me:$LINENO: checking for a known getopt prototype in unistd.h" >&5
36180 -echo $ECHO_N "checking for a known getopt prototype in unistd.h... $ECHO_C" >&6
36181 +{ echo "$as_me:$LINENO: checking for a known getopt prototype in unistd.h" >&5
36182 +echo $ECHO_N "checking for a known getopt prototype in unistd.h... $ECHO_C" >&6; }
36183 if test "${bu_cv_decl_getopt_unistd_h+set}" = set; then
36184 echo $ECHO_N "(cached) $ECHO_C" >&6
36185 else
36186 @@ -9892,39 +10327,35 @@ extern int getopt (int, char *const*, co
36187 }
36188 _ACEOF
36189 rm -f conftest.$ac_objext
36190 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36191 - (eval $ac_compile) 2>conftest.er1
36192 +if { (ac_try="$ac_compile"
36193 +case "(($ac_try" in
36194 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36195 + *) ac_try_echo=$ac_try;;
36196 +esac
36197 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36198 + (eval "$ac_compile") 2>conftest.er1
36199 ac_status=$?
36200 grep -v '^ *+' conftest.er1 >conftest.err
36201 rm -f conftest.er1
36202 cat conftest.err >&5
36203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36204 - (exit $ac_status); } &&
36205 - { ac_try='test -z "$ac_c_werror_flag"
36206 - || test ! -s conftest.err'
36207 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36208 - (eval $ac_try) 2>&5
36209 - ac_status=$?
36210 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
36211 - (exit $ac_status); }; } &&
36212 - { ac_try='test -s conftest.$ac_objext'
36213 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36214 - (eval $ac_try) 2>&5
36215 - ac_status=$?
36216 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
36217 - (exit $ac_status); }; }; then
36218 + (exit $ac_status); } && {
36219 + test -z "$ac_c_werror_flag" ||
36220 + test ! -s conftest.err
36221 + } && test -s conftest.$ac_objext; then
36222 bu_cv_decl_getopt_unistd_h=yes
36223 else
36224 echo "$as_me: failed program was:" >&5
36225 sed 's/^/| /' conftest.$ac_ext >&5
36226
36227 -bu_cv_decl_getopt_unistd_h=no
36228 + bu_cv_decl_getopt_unistd_h=no
36229 fi
36230 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36231 +
36232 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36233 fi
36234
36235 -echo "$as_me:$LINENO: result: $bu_cv_decl_getopt_unistd_h" >&5
36236 -echo "${ECHO_T}$bu_cv_decl_getopt_unistd_h" >&6
36237 +{ echo "$as_me:$LINENO: result: $bu_cv_decl_getopt_unistd_h" >&5
36238 +echo "${ECHO_T}$bu_cv_decl_getopt_unistd_h" >&6; }
36239 if test $bu_cv_decl_getopt_unistd_h = yes; then
36240
36241 cat >>confdefs.h <<\_ACEOF
36242 @@ -9935,8 +10366,8 @@ fi
36243
36244 # Under Next 3.2 <utime.h> apparently does not define struct utimbuf
36245 # by default.
36246 -echo "$as_me:$LINENO: checking for utime.h" >&5
36247 -echo $ECHO_N "checking for utime.h... $ECHO_C" >&6
36248 +{ echo "$as_me:$LINENO: checking for utime.h" >&5
36249 +echo $ECHO_N "checking for utime.h... $ECHO_C" >&6; }
36250 if test "${bu_cv_header_utime_h+set}" = set; then
36251 echo $ECHO_N "(cached) $ECHO_C" >&6
36252 else
36253 @@ -9960,39 +10391,35 @@ struct utimbuf s;
36254 }
36255 _ACEOF
36256 rm -f conftest.$ac_objext
36257 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36258 - (eval $ac_compile) 2>conftest.er1
36259 +if { (ac_try="$ac_compile"
36260 +case "(($ac_try" in
36261 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36262 + *) ac_try_echo=$ac_try;;
36263 +esac
36264 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36265 + (eval "$ac_compile") 2>conftest.er1
36266 ac_status=$?
36267 grep -v '^ *+' conftest.er1 >conftest.err
36268 rm -f conftest.er1
36269 cat conftest.err >&5
36270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36271 - (exit $ac_status); } &&
36272 - { ac_try='test -z "$ac_c_werror_flag"
36273 - || test ! -s conftest.err'
36274 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36275 - (eval $ac_try) 2>&5
36276 - ac_status=$?
36277 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
36278 - (exit $ac_status); }; } &&
36279 - { ac_try='test -s conftest.$ac_objext'
36280 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36281 - (eval $ac_try) 2>&5
36282 - ac_status=$?
36283 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
36284 - (exit $ac_status); }; }; then
36285 + (exit $ac_status); } && {
36286 + test -z "$ac_c_werror_flag" ||
36287 + test ! -s conftest.err
36288 + } && test -s conftest.$ac_objext; then
36289 bu_cv_header_utime_h=yes
36290 else
36291 echo "$as_me: failed program was:" >&5
36292 sed 's/^/| /' conftest.$ac_ext >&5
36293
36294 -bu_cv_header_utime_h=no
36295 + bu_cv_header_utime_h=no
36296 fi
36297 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36298 +
36299 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36300 fi
36301
36302 -echo "$as_me:$LINENO: result: $bu_cv_header_utime_h" >&5
36303 -echo "${ECHO_T}$bu_cv_header_utime_h" >&6
36304 +{ echo "$as_me:$LINENO: result: $bu_cv_header_utime_h" >&5
36305 +echo "${ECHO_T}$bu_cv_header_utime_h" >&6; }
36306 if test $bu_cv_header_utime_h = yes; then
36307
36308 cat >>confdefs.h <<\_ACEOF
36309 @@ -10001,8 +10428,8 @@ _ACEOF
36310
36311 fi
36312
36313 -echo "$as_me:$LINENO: checking whether fprintf is declared" >&5
36314 -echo $ECHO_N "checking whether fprintf is declared... $ECHO_C" >&6
36315 +{ echo "$as_me:$LINENO: checking whether fprintf is declared" >&5
36316 +echo $ECHO_N "checking whether fprintf is declared... $ECHO_C" >&6; }
36317 if test "${ac_cv_have_decl_fprintf+set}" = set; then
36318 echo $ECHO_N "(cached) $ECHO_C" >&6
36319 else
36320 @@ -10017,7 +10444,7 @@ int
36321 main ()
36322 {
36323 #ifndef fprintf
36324 - char *p = (char *) fprintf;
36325 + (void) fprintf;
36326 #endif
36327
36328 ;
36329 @@ -10025,38 +10452,34 @@ main ()
36330 }
36331 _ACEOF
36332 rm -f conftest.$ac_objext
36333 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36334 - (eval $ac_compile) 2>conftest.er1
36335 +if { (ac_try="$ac_compile"
36336 +case "(($ac_try" in
36337 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36338 + *) ac_try_echo=$ac_try;;
36339 +esac
36340 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36341 + (eval "$ac_compile") 2>conftest.er1
36342 ac_status=$?
36343 grep -v '^ *+' conftest.er1 >conftest.err
36344 rm -f conftest.er1
36345 cat conftest.err >&5
36346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36347 - (exit $ac_status); } &&
36348 - { ac_try='test -z "$ac_c_werror_flag"
36349 - || test ! -s conftest.err'
36350 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36351 - (eval $ac_try) 2>&5
36352 - ac_status=$?
36353 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
36354 - (exit $ac_status); }; } &&
36355 - { ac_try='test -s conftest.$ac_objext'
36356 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36357 - (eval $ac_try) 2>&5
36358 - ac_status=$?
36359 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
36360 - (exit $ac_status); }; }; then
36361 + (exit $ac_status); } && {
36362 + test -z "$ac_c_werror_flag" ||
36363 + test ! -s conftest.err
36364 + } && test -s conftest.$ac_objext; then
36365 ac_cv_have_decl_fprintf=yes
36366 else
36367 echo "$as_me: failed program was:" >&5
36368 sed 's/^/| /' conftest.$ac_ext >&5
36369
36370 -ac_cv_have_decl_fprintf=no
36371 + ac_cv_have_decl_fprintf=no
36372 fi
36373 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36374 +
36375 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36376 fi
36377 -echo "$as_me:$LINENO: result: $ac_cv_have_decl_fprintf" >&5
36378 -echo "${ECHO_T}$ac_cv_have_decl_fprintf" >&6
36379 +{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_fprintf" >&5
36380 +echo "${ECHO_T}$ac_cv_have_decl_fprintf" >&6; }
36381 if test $ac_cv_have_decl_fprintf = yes; then
36382
36383 cat >>confdefs.h <<_ACEOF
36384 @@ -10071,8 +10494,8 @@ _ACEOF
36385
36386
36387 fi
36388 -echo "$as_me:$LINENO: checking whether stpcpy is declared" >&5
36389 -echo $ECHO_N "checking whether stpcpy is declared... $ECHO_C" >&6
36390 +{ echo "$as_me:$LINENO: checking whether stpcpy is declared" >&5
36391 +echo $ECHO_N "checking whether stpcpy is declared... $ECHO_C" >&6; }
36392 if test "${ac_cv_have_decl_stpcpy+set}" = set; then
36393 echo $ECHO_N "(cached) $ECHO_C" >&6
36394 else
36395 @@ -10087,7 +10510,7 @@ int
36396 main ()
36397 {
36398 #ifndef stpcpy
36399 - char *p = (char *) stpcpy;
36400 + (void) stpcpy;
36401 #endif
36402
36403 ;
36404 @@ -10095,38 +10518,34 @@ main ()
36405 }
36406 _ACEOF
36407 rm -f conftest.$ac_objext
36408 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36409 - (eval $ac_compile) 2>conftest.er1
36410 +if { (ac_try="$ac_compile"
36411 +case "(($ac_try" in
36412 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36413 + *) ac_try_echo=$ac_try;;
36414 +esac
36415 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36416 + (eval "$ac_compile") 2>conftest.er1
36417 ac_status=$?
36418 grep -v '^ *+' conftest.er1 >conftest.err
36419 rm -f conftest.er1
36420 cat conftest.err >&5
36421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36422 - (exit $ac_status); } &&
36423 - { ac_try='test -z "$ac_c_werror_flag"
36424 - || test ! -s conftest.err'
36425 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36426 - (eval $ac_try) 2>&5
36427 - ac_status=$?
36428 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
36429 - (exit $ac_status); }; } &&
36430 - { ac_try='test -s conftest.$ac_objext'
36431 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36432 - (eval $ac_try) 2>&5
36433 - ac_status=$?
36434 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
36435 - (exit $ac_status); }; }; then
36436 + (exit $ac_status); } && {
36437 + test -z "$ac_c_werror_flag" ||
36438 + test ! -s conftest.err
36439 + } && test -s conftest.$ac_objext; then
36440 ac_cv_have_decl_stpcpy=yes
36441 else
36442 echo "$as_me: failed program was:" >&5
36443 sed 's/^/| /' conftest.$ac_ext >&5
36444
36445 -ac_cv_have_decl_stpcpy=no
36446 + ac_cv_have_decl_stpcpy=no
36447 fi
36448 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36449 +
36450 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36451 fi
36452 -echo "$as_me:$LINENO: result: $ac_cv_have_decl_stpcpy" >&5
36453 -echo "${ECHO_T}$ac_cv_have_decl_stpcpy" >&6
36454 +{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_stpcpy" >&5
36455 +echo "${ECHO_T}$ac_cv_have_decl_stpcpy" >&6; }
36456 if test $ac_cv_have_decl_stpcpy = yes; then
36457
36458 cat >>confdefs.h <<_ACEOF
36459 @@ -10141,8 +10560,8 @@ _ACEOF
36460
36461
36462 fi
36463 -echo "$as_me:$LINENO: checking whether strstr is declared" >&5
36464 -echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6
36465 +{ echo "$as_me:$LINENO: checking whether strstr is declared" >&5
36466 +echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6; }
36467 if test "${ac_cv_have_decl_strstr+set}" = set; then
36468 echo $ECHO_N "(cached) $ECHO_C" >&6
36469 else
36470 @@ -10157,7 +10576,7 @@ int
36471 main ()
36472 {
36473 #ifndef strstr
36474 - char *p = (char *) strstr;
36475 + (void) strstr;
36476 #endif
36477
36478 ;
36479 @@ -10165,38 +10584,34 @@ main ()
36480 }
36481 _ACEOF
36482 rm -f conftest.$ac_objext
36483 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36484 - (eval $ac_compile) 2>conftest.er1
36485 +if { (ac_try="$ac_compile"
36486 +case "(($ac_try" in
36487 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36488 + *) ac_try_echo=$ac_try;;
36489 +esac
36490 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36491 + (eval "$ac_compile") 2>conftest.er1
36492 ac_status=$?
36493 grep -v '^ *+' conftest.er1 >conftest.err
36494 rm -f conftest.er1
36495 cat conftest.err >&5
36496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36497 - (exit $ac_status); } &&
36498 - { ac_try='test -z "$ac_c_werror_flag"
36499 - || test ! -s conftest.err'
36500 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36501 - (eval $ac_try) 2>&5
36502 - ac_status=$?
36503 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
36504 - (exit $ac_status); }; } &&
36505 - { ac_try='test -s conftest.$ac_objext'
36506 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36507 - (eval $ac_try) 2>&5
36508 - ac_status=$?
36509 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
36510 - (exit $ac_status); }; }; then
36511 + (exit $ac_status); } && {
36512 + test -z "$ac_c_werror_flag" ||
36513 + test ! -s conftest.err
36514 + } && test -s conftest.$ac_objext; then
36515 ac_cv_have_decl_strstr=yes
36516 else
36517 echo "$as_me: failed program was:" >&5
36518 sed 's/^/| /' conftest.$ac_ext >&5
36519
36520 -ac_cv_have_decl_strstr=no
36521 + ac_cv_have_decl_strstr=no
36522 fi
36523 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36524 +
36525 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36526 fi
36527 -echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5
36528 -echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6
36529 +{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5
36530 +echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6; }
36531 if test $ac_cv_have_decl_strstr = yes; then
36532
36533 cat >>confdefs.h <<_ACEOF
36534 @@ -10211,8 +10626,8 @@ _ACEOF
36535
36536
36537 fi
36538 -echo "$as_me:$LINENO: checking whether sbrk is declared" >&5
36539 -echo $ECHO_N "checking whether sbrk is declared... $ECHO_C" >&6
36540 +{ echo "$as_me:$LINENO: checking whether sbrk is declared" >&5
36541 +echo $ECHO_N "checking whether sbrk is declared... $ECHO_C" >&6; }
36542 if test "${ac_cv_have_decl_sbrk+set}" = set; then
36543 echo $ECHO_N "(cached) $ECHO_C" >&6
36544 else
36545 @@ -10227,7 +10642,7 @@ int
36546 main ()
36547 {
36548 #ifndef sbrk
36549 - char *p = (char *) sbrk;
36550 + (void) sbrk;
36551 #endif
36552
36553 ;
36554 @@ -10235,38 +10650,34 @@ main ()
36555 }
36556 _ACEOF
36557 rm -f conftest.$ac_objext
36558 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36559 - (eval $ac_compile) 2>conftest.er1
36560 +if { (ac_try="$ac_compile"
36561 +case "(($ac_try" in
36562 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36563 + *) ac_try_echo=$ac_try;;
36564 +esac
36565 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36566 + (eval "$ac_compile") 2>conftest.er1
36567 ac_status=$?
36568 grep -v '^ *+' conftest.er1 >conftest.err
36569 rm -f conftest.er1
36570 cat conftest.err >&5
36571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36572 - (exit $ac_status); } &&
36573 - { ac_try='test -z "$ac_c_werror_flag"
36574 - || test ! -s conftest.err'
36575 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36576 - (eval $ac_try) 2>&5
36577 - ac_status=$?
36578 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
36579 - (exit $ac_status); }; } &&
36580 - { ac_try='test -s conftest.$ac_objext'
36581 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36582 - (eval $ac_try) 2>&5
36583 - ac_status=$?
36584 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
36585 - (exit $ac_status); }; }; then
36586 + (exit $ac_status); } && {
36587 + test -z "$ac_c_werror_flag" ||
36588 + test ! -s conftest.err
36589 + } && test -s conftest.$ac_objext; then
36590 ac_cv_have_decl_sbrk=yes
36591 else
36592 echo "$as_me: failed program was:" >&5
36593 sed 's/^/| /' conftest.$ac_ext >&5
36594
36595 -ac_cv_have_decl_sbrk=no
36596 + ac_cv_have_decl_sbrk=no
36597 fi
36598 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36599 +
36600 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36601 fi
36602 -echo "$as_me:$LINENO: result: $ac_cv_have_decl_sbrk" >&5
36603 -echo "${ECHO_T}$ac_cv_have_decl_sbrk" >&6
36604 +{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_sbrk" >&5
36605 +echo "${ECHO_T}$ac_cv_have_decl_sbrk" >&6; }
36606 if test $ac_cv_have_decl_sbrk = yes; then
36607
36608 cat >>confdefs.h <<_ACEOF
36609 @@ -10281,8 +10692,8 @@ _ACEOF
36610
36611
36612 fi
36613 -echo "$as_me:$LINENO: checking whether getenv is declared" >&5
36614 -echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6
36615 +{ echo "$as_me:$LINENO: checking whether getenv is declared" >&5
36616 +echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6; }
36617 if test "${ac_cv_have_decl_getenv+set}" = set; then
36618 echo $ECHO_N "(cached) $ECHO_C" >&6
36619 else
36620 @@ -10297,7 +10708,7 @@ int
36621 main ()
36622 {
36623 #ifndef getenv
36624 - char *p = (char *) getenv;
36625 + (void) getenv;
36626 #endif
36627
36628 ;
36629 @@ -10305,38 +10716,34 @@ main ()
36630 }
36631 _ACEOF
36632 rm -f conftest.$ac_objext
36633 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36634 - (eval $ac_compile) 2>conftest.er1
36635 +if { (ac_try="$ac_compile"
36636 +case "(($ac_try" in
36637 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36638 + *) ac_try_echo=$ac_try;;
36639 +esac
36640 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36641 + (eval "$ac_compile") 2>conftest.er1
36642 ac_status=$?
36643 grep -v '^ *+' conftest.er1 >conftest.err
36644 rm -f conftest.er1
36645 cat conftest.err >&5
36646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36647 - (exit $ac_status); } &&
36648 - { ac_try='test -z "$ac_c_werror_flag"
36649 - || test ! -s conftest.err'
36650 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36651 - (eval $ac_try) 2>&5
36652 - ac_status=$?
36653 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
36654 - (exit $ac_status); }; } &&
36655 - { ac_try='test -s conftest.$ac_objext'
36656 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36657 - (eval $ac_try) 2>&5
36658 - ac_status=$?
36659 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
36660 - (exit $ac_status); }; }; then
36661 + (exit $ac_status); } && {
36662 + test -z "$ac_c_werror_flag" ||
36663 + test ! -s conftest.err
36664 + } && test -s conftest.$ac_objext; then
36665 ac_cv_have_decl_getenv=yes
36666 else
36667 echo "$as_me: failed program was:" >&5
36668 sed 's/^/| /' conftest.$ac_ext >&5
36669
36670 -ac_cv_have_decl_getenv=no
36671 + ac_cv_have_decl_getenv=no
36672 fi
36673 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36674 +
36675 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36676 fi
36677 -echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
36678 -echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6
36679 +{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
36680 +echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6; }
36681 if test $ac_cv_have_decl_getenv = yes; then
36682
36683 cat >>confdefs.h <<_ACEOF
36684 @@ -10351,8 +10758,8 @@ _ACEOF
36685
36686
36687 fi
36688 -echo "$as_me:$LINENO: checking whether environ is declared" >&5
36689 -echo $ECHO_N "checking whether environ is declared... $ECHO_C" >&6
36690 +{ echo "$as_me:$LINENO: checking whether environ is declared" >&5
36691 +echo $ECHO_N "checking whether environ is declared... $ECHO_C" >&6; }
36692 if test "${ac_cv_have_decl_environ+set}" = set; then
36693 echo $ECHO_N "(cached) $ECHO_C" >&6
36694 else
36695 @@ -10367,7 +10774,7 @@ int
36696 main ()
36697 {
36698 #ifndef environ
36699 - char *p = (char *) environ;
36700 + (void) environ;
36701 #endif
36702
36703 ;
36704 @@ -10375,38 +10782,34 @@ main ()
36705 }
36706 _ACEOF
36707 rm -f conftest.$ac_objext
36708 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36709 - (eval $ac_compile) 2>conftest.er1
36710 +if { (ac_try="$ac_compile"
36711 +case "(($ac_try" in
36712 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36713 + *) ac_try_echo=$ac_try;;
36714 +esac
36715 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36716 + (eval "$ac_compile") 2>conftest.er1
36717 ac_status=$?
36718 grep -v '^ *+' conftest.er1 >conftest.err
36719 rm -f conftest.er1
36720 cat conftest.err >&5
36721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36722 - (exit $ac_status); } &&
36723 - { ac_try='test -z "$ac_c_werror_flag"
36724 - || test ! -s conftest.err'
36725 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36726 - (eval $ac_try) 2>&5
36727 - ac_status=$?
36728 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
36729 - (exit $ac_status); }; } &&
36730 - { ac_try='test -s conftest.$ac_objext'
36731 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36732 - (eval $ac_try) 2>&5
36733 - ac_status=$?
36734 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
36735 - (exit $ac_status); }; }; then
36736 + (exit $ac_status); } && {
36737 + test -z "$ac_c_werror_flag" ||
36738 + test ! -s conftest.err
36739 + } && test -s conftest.$ac_objext; then
36740 ac_cv_have_decl_environ=yes
36741 else
36742 echo "$as_me: failed program was:" >&5
36743 sed 's/^/| /' conftest.$ac_ext >&5
36744
36745 -ac_cv_have_decl_environ=no
36746 + ac_cv_have_decl_environ=no
36747 fi
36748 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36749 +
36750 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36751 fi
36752 -echo "$as_me:$LINENO: result: $ac_cv_have_decl_environ" >&5
36753 -echo "${ECHO_T}$ac_cv_have_decl_environ" >&6
36754 +{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_environ" >&5
36755 +echo "${ECHO_T}$ac_cv_have_decl_environ" >&6; }
36756 if test $ac_cv_have_decl_environ = yes; then
36757
36758 cat >>confdefs.h <<_ACEOF
36759 @@ -10421,8 +10824,8 @@ _ACEOF
36760
36761
36762 fi
36763 -echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
36764 -echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6
36765 +{ echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
36766 +echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6; }
36767 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
36768 echo $ECHO_N "(cached) $ECHO_C" >&6
36769 else
36770 @@ -10437,7 +10840,7 @@ int
36771 main ()
36772 {
36773 #ifndef getc_unlocked
36774 - char *p = (char *) getc_unlocked;
36775 + (void) getc_unlocked;
36776 #endif
36777
36778 ;
36779 @@ -10445,38 +10848,34 @@ main ()
36780 }
36781 _ACEOF
36782 rm -f conftest.$ac_objext
36783 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36784 - (eval $ac_compile) 2>conftest.er1
36785 +if { (ac_try="$ac_compile"
36786 +case "(($ac_try" in
36787 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36788 + *) ac_try_echo=$ac_try;;
36789 +esac
36790 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36791 + (eval "$ac_compile") 2>conftest.er1
36792 ac_status=$?
36793 grep -v '^ *+' conftest.er1 >conftest.err
36794 rm -f conftest.er1
36795 cat conftest.err >&5
36796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36797 - (exit $ac_status); } &&
36798 - { ac_try='test -z "$ac_c_werror_flag"
36799 - || test ! -s conftest.err'
36800 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36801 - (eval $ac_try) 2>&5
36802 - ac_status=$?
36803 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
36804 - (exit $ac_status); }; } &&
36805 - { ac_try='test -s conftest.$ac_objext'
36806 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36807 - (eval $ac_try) 2>&5
36808 - ac_status=$?
36809 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
36810 - (exit $ac_status); }; }; then
36811 + (exit $ac_status); } && {
36812 + test -z "$ac_c_werror_flag" ||
36813 + test ! -s conftest.err
36814 + } && test -s conftest.$ac_objext; then
36815 ac_cv_have_decl_getc_unlocked=yes
36816 else
36817 echo "$as_me: failed program was:" >&5
36818 sed 's/^/| /' conftest.$ac_ext >&5
36819
36820 -ac_cv_have_decl_getc_unlocked=no
36821 + ac_cv_have_decl_getc_unlocked=no
36822 fi
36823 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36824 +
36825 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36826 fi
36827 -echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
36828 -echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6
36829 +{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
36830 +echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6; }
36831 if test $ac_cv_have_decl_getc_unlocked = yes; then
36832
36833 cat >>confdefs.h <<_ACEOF
36834 @@ -10491,8 +10890,8 @@ _ACEOF
36835
36836
36837 fi
36838 -echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
36839 -echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
36840 +{ echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
36841 +echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6; }
36842 if test "${ac_cv_have_decl_snprintf+set}" = set; then
36843 echo $ECHO_N "(cached) $ECHO_C" >&6
36844 else
36845 @@ -10507,7 +10906,7 @@ int
36846 main ()
36847 {
36848 #ifndef snprintf
36849 - char *p = (char *) snprintf;
36850 + (void) snprintf;
36851 #endif
36852
36853 ;
36854 @@ -10515,38 +10914,34 @@ main ()
36855 }
36856 _ACEOF
36857 rm -f conftest.$ac_objext
36858 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36859 - (eval $ac_compile) 2>conftest.er1
36860 +if { (ac_try="$ac_compile"
36861 +case "(($ac_try" in
36862 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36863 + *) ac_try_echo=$ac_try;;
36864 +esac
36865 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36866 + (eval "$ac_compile") 2>conftest.er1
36867 ac_status=$?
36868 grep -v '^ *+' conftest.er1 >conftest.err
36869 rm -f conftest.er1
36870 cat conftest.err >&5
36871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36872 - (exit $ac_status); } &&
36873 - { ac_try='test -z "$ac_c_werror_flag"
36874 - || test ! -s conftest.err'
36875 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36876 - (eval $ac_try) 2>&5
36877 - ac_status=$?
36878 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
36879 - (exit $ac_status); }; } &&
36880 - { ac_try='test -s conftest.$ac_objext'
36881 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36882 - (eval $ac_try) 2>&5
36883 - ac_status=$?
36884 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
36885 - (exit $ac_status); }; }; then
36886 + (exit $ac_status); } && {
36887 + test -z "$ac_c_werror_flag" ||
36888 + test ! -s conftest.err
36889 + } && test -s conftest.$ac_objext; then
36890 ac_cv_have_decl_snprintf=yes
36891 else
36892 echo "$as_me: failed program was:" >&5
36893 sed 's/^/| /' conftest.$ac_ext >&5
36894
36895 -ac_cv_have_decl_snprintf=no
36896 + ac_cv_have_decl_snprintf=no
36897 fi
36898 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36899 +
36900 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36901 fi
36902 -echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
36903 -echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
36904 +{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
36905 +echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6; }
36906 if test $ac_cv_have_decl_snprintf = yes; then
36907
36908 cat >>confdefs.h <<_ACEOF
36909 @@ -10561,8 +10956,8 @@ _ACEOF
36910
36911
36912 fi
36913 -echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
36914 -echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
36915 +{ echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
36916 +echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6; }
36917 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
36918 echo $ECHO_N "(cached) $ECHO_C" >&6
36919 else
36920 @@ -10577,7 +10972,7 @@ int
36921 main ()
36922 {
36923 #ifndef vsnprintf
36924 - char *p = (char *) vsnprintf;
36925 + (void) vsnprintf;
36926 #endif
36927
36928 ;
36929 @@ -10585,38 +10980,34 @@ main ()
36930 }
36931 _ACEOF
36932 rm -f conftest.$ac_objext
36933 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36934 - (eval $ac_compile) 2>conftest.er1
36935 +if { (ac_try="$ac_compile"
36936 +case "(($ac_try" in
36937 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36938 + *) ac_try_echo=$ac_try;;
36939 +esac
36940 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36941 + (eval "$ac_compile") 2>conftest.er1
36942 ac_status=$?
36943 grep -v '^ *+' conftest.er1 >conftest.err
36944 rm -f conftest.er1
36945 cat conftest.err >&5
36946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36947 - (exit $ac_status); } &&
36948 - { ac_try='test -z "$ac_c_werror_flag"
36949 - || test ! -s conftest.err'
36950 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36951 - (eval $ac_try) 2>&5
36952 - ac_status=$?
36953 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
36954 - (exit $ac_status); }; } &&
36955 - { ac_try='test -s conftest.$ac_objext'
36956 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36957 - (eval $ac_try) 2>&5
36958 - ac_status=$?
36959 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
36960 - (exit $ac_status); }; }; then
36961 + (exit $ac_status); } && {
36962 + test -z "$ac_c_werror_flag" ||
36963 + test ! -s conftest.err
36964 + } && test -s conftest.$ac_objext; then
36965 ac_cv_have_decl_vsnprintf=yes
36966 else
36967 echo "$as_me: failed program was:" >&5
36968 sed 's/^/| /' conftest.$ac_ext >&5
36969
36970 -ac_cv_have_decl_vsnprintf=no
36971 + ac_cv_have_decl_vsnprintf=no
36972 fi
36973 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36974 +
36975 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36976 fi
36977 -echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
36978 -echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
36979 +{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
36980 +echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6; }
36981 if test $ac_cv_have_decl_vsnprintf = yes; then
36982
36983 cat >>confdefs.h <<_ACEOF
36984 @@ -10817,8 +11208,10 @@ done
36985
36986
36987
36988 - ac_config_files="$ac_config_files Makefile doc/Makefile po/Makefile.in:po/Make-in"
36989 - ac_config_commands="$ac_config_commands default"
36990 +ac_config_files="$ac_config_files Makefile doc/Makefile po/Makefile.in:po/Make-in"
36991 +
36992 +ac_config_commands="$ac_config_commands default"
36993 +
36994 cat >confcache <<\_ACEOF
36995 # This file is a shell script that caches the results of configure
36996 # tests run on this system so they can be shared between configure
36997 @@ -10837,39 +11230,58 @@ _ACEOF
36998
36999 # The following way of writing the cache mishandles newlines in values,
37000 # but we know of no workaround that is simple, portable, and efficient.
37001 -# So, don't put newlines in cache variables' values.
37002 +# So, we kill variables containing newlines.
37003 # Ultrix sh set writes to stderr and can't be redirected directly,
37004 # and sets the high bit in the cache file unless we assign to the vars.
37005 -{
37006 +(
37007 + for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
37008 + eval ac_val=\$$ac_var
37009 + case $ac_val in #(
37010 + *${as_nl}*)
37011 + case $ac_var in #(
37012 + *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
37013 +echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
37014 + esac
37015 + case $ac_var in #(
37016 + _ | IFS | as_nl) ;; #(
37017 + *) $as_unset $ac_var ;;
37018 + esac ;;
37019 + esac
37020 + done
37021 +
37022 (set) 2>&1 |
37023 - case `(ac_space=' '; set | grep ac_space) 2>&1` in
37024 - *ac_space=\ *)
37025 + case $as_nl`(ac_space=' '; set) 2>&1` in #(
37026 + *${as_nl}ac_space=\ *)
37027 # `set' does not quote correctly, so add quotes (double-quote
37028 # substitution turns \\\\ into \\, and sed turns \\ into \).
37029 sed -n \
37030 "s/'/'\\\\''/g;
37031 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
37032 - ;;
37033 + ;; #(
37034 *)
37035 # `set' quotes correctly as required by POSIX, so do not add quotes.
37036 - sed -n \
37037 - "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
37038 + sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
37039 ;;
37040 - esac;
37041 -} |
37042 + esac |
37043 + sort
37044 +) |
37045 sed '
37046 + /^ac_cv_env_/b end
37047 t clear
37048 - : clear
37049 + :clear
37050 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
37051 t end
37052 - /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
37053 - : end' >>confcache
37054 -if diff $cache_file confcache >/dev/null 2>&1; then :; else
37055 - if test -w $cache_file; then
37056 - test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
37057 + s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
37058 + :end' >>confcache
37059 +if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
37060 + if test -w "$cache_file"; then
37061 + test "x$cache_file" != "x/dev/null" &&
37062 + { echo "$as_me:$LINENO: updating cache $cache_file" >&5
37063 +echo "$as_me: updating cache $cache_file" >&6;}
37064 cat confcache >$cache_file
37065 else
37066 - echo "not updating unwritable cache $cache_file"
37067 + { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
37068 +echo "$as_me: not updating unwritable cache $cache_file" >&6;}
37069 fi
37070 fi
37071 rm -f confcache
37072 @@ -10878,32 +11290,18 @@ test "x$prefix" = xNONE && prefix=$ac_de
37073 # Let make expand exec_prefix.
37074 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
37075
37076 -# VPATH may cause trouble with some makes, so we remove $(srcdir),
37077 -# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
37078 -# trailing colons and then remove the whole line if VPATH becomes empty
37079 -# (actually we leave an empty line to preserve line numbers).
37080 -if test "x$srcdir" = x.; then
37081 - ac_vpsub='/^[ ]*VPATH[ ]*=/{
37082 -s/:*\$(srcdir):*/:/;
37083 -s/:*\${srcdir}:*/:/;
37084 -s/:*@srcdir@:*/:/;
37085 -s/^\([^=]*=[ ]*\):*/\1/;
37086 -s/:*$//;
37087 -s/^[^=]*=[ ]*$//;
37088 -}'
37089 -fi
37090 -
37091 DEFS=-DHAVE_CONFIG_H
37092
37093 ac_libobjs=
37094 ac_ltlibobjs=
37095 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
37096 # 1. Remove the extension, and $U if already installed.
37097 - ac_i=`echo "$ac_i" |
37098 - sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
37099 - # 2. Add them.
37100 - ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
37101 - ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
37102 + ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
37103 + ac_i=`echo "$ac_i" | sed "$ac_script"`
37104 + # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
37105 + # will be set to the directory where LIBOBJS objects are built.
37106 + ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
37107 + ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
37108 done
37109 LIBOBJS=$ac_libobjs
37110
37111 @@ -10955,17 +11353,45 @@ cat >>$CONFIG_STATUS <<\_ACEOF
37112 ## M4sh Initialization. ##
37113 ## --------------------- ##
37114
37115 -# Be Bourne compatible
37116 +# Be more Bourne compatible
37117 +DUALCASE=1; export DUALCASE # for MKS sh
37118 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
37119 emulate sh
37120 NULLCMD=:
37121 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
37122 # is contrary to our usage. Disable this feature.
37123 alias -g '${1+"$@"}'='"$@"'
37124 -elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
37125 - set -o posix
37126 + setopt NO_GLOB_SUBST
37127 +else
37128 + case `(set -o) 2>/dev/null` in
37129 + *posix*) set -o posix ;;
37130 +esac
37131 +
37132 +fi
37133 +
37134 +
37135 +
37136 +
37137 +# PATH needs CR
37138 +# Avoid depending upon Character Ranges.
37139 +as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37140 +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
37141 +as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37142 +as_cr_digits='0123456789'
37143 +as_cr_alnum=$as_cr_Letters$as_cr_digits
37144 +
37145 +# The user is always right.
37146 +if test "${PATH_SEPARATOR+set}" != set; then
37147 + echo "#! /bin/sh" >conf$$.sh
37148 + echo "exit 0" >>conf$$.sh
37149 + chmod +x conf$$.sh
37150 + if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
37151 + PATH_SEPARATOR=';'
37152 + else
37153 + PATH_SEPARATOR=:
37154 + fi
37155 + rm -f conf$$.sh
37156 fi
37157 -DUALCASE=1; export DUALCASE # for MKS sh
37158
37159 # Support unset when possible.
37160 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
37161 @@ -10975,8 +11401,43 @@ else
37162 fi
37163
37164
37165 +# IFS
37166 +# We need space, tab and new line, in precisely that order. Quoting is
37167 +# there to prevent editors from complaining about space-tab.
37168 +# (If _AS_PATH_WALK were called with IFS unset, it would disable word
37169 +# splitting by setting IFS to empty value.)
37170 +as_nl='
37171 +'
37172 +IFS=" "" $as_nl"
37173 +
37174 +# Find who we are. Look in the path if we contain no directory separator.
37175 +case $0 in
37176 + *[\\/]* ) as_myself=$0 ;;
37177 + *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37178 +for as_dir in $PATH
37179 +do
37180 + IFS=$as_save_IFS
37181 + test -z "$as_dir" && as_dir=.
37182 + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
37183 +done
37184 +IFS=$as_save_IFS
37185 +
37186 + ;;
37187 +esac
37188 +# We did not find ourselves, most probably we were run as `sh COMMAND'
37189 +# in which case we are not to be found in the path.
37190 +if test "x$as_myself" = x; then
37191 + as_myself=$0
37192 +fi
37193 +if test ! -f "$as_myself"; then
37194 + echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
37195 + { (exit 1); exit 1; }
37196 +fi
37197 +
37198 # Work around bugs in pre-3.0 UWIN ksh.
37199 -$as_unset ENV MAIL MAILPATH
37200 +for as_var in ENV MAIL MAILPATH
37201 +do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
37202 +done
37203 PS1='$ '
37204 PS2='> '
37205 PS4='+ '
37206 @@ -10990,18 +11451,19 @@ do
37207 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
37208 eval $as_var=C; export $as_var
37209 else
37210 - $as_unset $as_var
37211 + ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
37212 fi
37213 done
37214
37215 # Required to use basename.
37216 -if expr a : '\(a\)' >/dev/null 2>&1; then
37217 +if expr a : '\(a\)' >/dev/null 2>&1 &&
37218 + test "X`expr 00001 : '.*\(...\)'`" = X001; then
37219 as_expr=expr
37220 else
37221 as_expr=false
37222 fi
37223
37224 -if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
37225 +if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
37226 as_basename=basename
37227 else
37228 as_basename=false
37229 @@ -11009,159 +11471,120 @@ fi
37230
37231
37232 # Name of the executable.
37233 -as_me=`$as_basename "$0" ||
37234 +as_me=`$as_basename -- "$0" ||
37235 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
37236 X"$0" : 'X\(//\)$' \| \
37237 - X"$0" : 'X\(/\)$' \| \
37238 - . : '\(.\)' 2>/dev/null ||
37239 + X"$0" : 'X\(/\)' \| . 2>/dev/null ||
37240 echo X/"$0" |
37241 - sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
37242 - /^X\/\(\/\/\)$/{ s//\1/; q; }
37243 - /^X\/\(\/\).*/{ s//\1/; q; }
37244 - s/.*/./; q'`
37245 + sed '/^.*\/\([^/][^/]*\)\/*$/{
37246 + s//\1/
37247 + q
37248 + }
37249 + /^X\/\(\/\/\)$/{
37250 + s//\1/
37251 + q
37252 + }
37253 + /^X\/\(\/\).*/{
37254 + s//\1/
37255 + q
37256 + }
37257 + s/.*/./; q'`
37258
37259 -
37260 -# PATH needs CR, and LINENO needs CR and PATH.
37261 -# Avoid depending upon Character Ranges.
37262 -as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37263 -as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
37264 -as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37265 -as_cr_digits='0123456789'
37266 -as_cr_alnum=$as_cr_Letters$as_cr_digits
37267 -
37268 -# The user is always right.
37269 -if test "${PATH_SEPARATOR+set}" != set; then
37270 - echo "#! /bin/sh" >conf$$.sh
37271 - echo "exit 0" >>conf$$.sh
37272 - chmod +x conf$$.sh
37273 - if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
37274 - PATH_SEPARATOR=';'
37275 - else
37276 - PATH_SEPARATOR=:
37277 - fi
37278 - rm -f conf$$.sh
37279 -fi
37280 +# CDPATH.
37281 +$as_unset CDPATH
37282
37283
37284 - as_lineno_1=$LINENO
37285 - as_lineno_2=$LINENO
37286 - as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
37287 - test "x$as_lineno_1" != "x$as_lineno_2" &&
37288 - test "x$as_lineno_3" = "x$as_lineno_2" || {
37289 - # Find who we are. Look in the path if we contain no path at all
37290 - # relative or not.
37291 - case $0 in
37292 - *[\\/]* ) as_myself=$0 ;;
37293 - *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37294 -for as_dir in $PATH
37295 -do
37296 - IFS=$as_save_IFS
37297 - test -z "$as_dir" && as_dir=.
37298 - test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
37299 -done
37300
37301 - ;;
37302 - esac
37303 - # We did not find ourselves, most probably we were run as `sh COMMAND'
37304 - # in which case we are not to be found in the path.
37305 - if test "x$as_myself" = x; then
37306 - as_myself=$0
37307 - fi
37308 - if test ! -f "$as_myself"; then
37309 - { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
37310 -echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
37311 - { (exit 1); exit 1; }; }
37312 - fi
37313 - case $CONFIG_SHELL in
37314 - '')
37315 - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37316 -for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
37317 -do
37318 - IFS=$as_save_IFS
37319 - test -z "$as_dir" && as_dir=.
37320 - for as_base in sh bash ksh sh5; do
37321 - case $as_dir in
37322 - /*)
37323 - if ("$as_dir/$as_base" -c '
37324 as_lineno_1=$LINENO
37325 as_lineno_2=$LINENO
37326 - as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
37327 test "x$as_lineno_1" != "x$as_lineno_2" &&
37328 - test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
37329 - $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
37330 - $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
37331 - CONFIG_SHELL=$as_dir/$as_base
37332 - export CONFIG_SHELL
37333 - exec "$CONFIG_SHELL" "$0" ${1+"$@"}
37334 - fi;;
37335 - esac
37336 - done
37337 -done
37338 -;;
37339 - esac
37340 + test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
37341
37342 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
37343 # uniformly replaced by the line number. The first 'sed' inserts a
37344 - # line-number line before each line; the second 'sed' does the real
37345 - # work. The second script uses 'N' to pair each line-number line
37346 - # with the numbered line, and appends trailing '-' during
37347 - # substitution so that $LINENO is not a special case at line end.
37348 + # line-number line after each line using $LINENO; the second 'sed'
37349 + # does the real work. The second script uses 'N' to pair each
37350 + # line-number line with the line containing $LINENO, and appends
37351 + # trailing '-' during substitution so that $LINENO is not a special
37352 + # case at line end.
37353 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
37354 - # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
37355 - sed '=' <$as_myself |
37356 + # scripts with optimization help from Paolo Bonzini. Blame Lee
37357 + # E. McMahon (1931-1989) for sed's syntax. :-)
37358 + sed -n '
37359 + p
37360 + /[$]LINENO/=
37361 + ' <$as_myself |
37362 sed '
37363 + s/[$]LINENO.*/&-/
37364 + t lineno
37365 + b
37366 + :lineno
37367 N
37368 - s,$,-,
37369 - : loop
37370 - s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
37371 + :loop
37372 + s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
37373 t loop
37374 - s,-$,,
37375 - s,^['$as_cr_digits']*\n,,
37376 + s/-\n.*//
37377 ' >$as_me.lineno &&
37378 - chmod +x $as_me.lineno ||
37379 - { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
37380 -echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
37381 + chmod +x "$as_me.lineno" ||
37382 + { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
37383 { (exit 1); exit 1; }; }
37384
37385 # Don't try to exec as it changes $[0], causing all sort of problems
37386 # (the dirname of $[0] is not the place where we might find the
37387 - # original and so on. Autoconf is especially sensible to this).
37388 - . ./$as_me.lineno
37389 + # original and so on. Autoconf is especially sensitive to this).
37390 + . "./$as_me.lineno"
37391 # Exit status is that of the last command.
37392 exit
37393 }
37394
37395
37396 -case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
37397 - *c*,-n*) ECHO_N= ECHO_C='
37398 -' ECHO_T=' ' ;;
37399 - *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
37400 - *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
37401 +if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
37402 + as_dirname=dirname
37403 +else
37404 + as_dirname=false
37405 +fi
37406 +
37407 +ECHO_C= ECHO_N= ECHO_T=
37408 +case `echo -n x` in
37409 +-n*)
37410 + case `echo 'x\c'` in
37411 + *c*) ECHO_T=' ';; # ECHO_T is single tab character.
37412 + *) ECHO_C='\c';;
37413 + esac;;
37414 +*)
37415 + ECHO_N='-n';;
37416 esac
37417
37418 -if expr a : '\(a\)' >/dev/null 2>&1; then
37419 +if expr a : '\(a\)' >/dev/null 2>&1 &&
37420 + test "X`expr 00001 : '.*\(...\)'`" = X001; then
37421 as_expr=expr
37422 else
37423 as_expr=false
37424 fi
37425
37426 rm -f conf$$ conf$$.exe conf$$.file
37427 +if test -d conf$$.dir; then
37428 + rm -f conf$$.dir/conf$$.file
37429 +else
37430 + rm -f conf$$.dir
37431 + mkdir conf$$.dir
37432 +fi
37433 echo >conf$$.file
37434 if ln -s conf$$.file conf$$ 2>/dev/null; then
37435 - # We could just check for DJGPP; but this test a) works b) is more generic
37436 - # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
37437 - if test -f conf$$.exe; then
37438 - # Don't use ln at all; we don't have any links
37439 + as_ln_s='ln -s'
37440 + # ... but there are two gotchas:
37441 + # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
37442 + # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
37443 + # In both cases, we have to default to `cp -p'.
37444 + ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
37445 as_ln_s='cp -p'
37446 - else
37447 - as_ln_s='ln -s'
37448 - fi
37449 elif ln conf$$.file conf$$ 2>/dev/null; then
37450 as_ln_s=ln
37451 else
37452 as_ln_s='cp -p'
37453 fi
37454 -rm -f conf$$ conf$$.exe conf$$.file
37455 +rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
37456 +rmdir conf$$.dir 2>/dev/null
37457
37458 if mkdir -p . 2>/dev/null; then
37459 as_mkdir_p=:
37460 @@ -11170,7 +11593,28 @@ else
37461 as_mkdir_p=false
37462 fi
37463
37464 -as_executable_p="test -f"
37465 +if test -x / >/dev/null 2>&1; then
37466 + as_test_x='test -x'
37467 +else
37468 + if ls -dL / >/dev/null 2>&1; then
37469 + as_ls_L_option=L
37470 + else
37471 + as_ls_L_option=
37472 + fi
37473 + as_test_x='
37474 + eval sh -c '\''
37475 + if test -d "$1"; then
37476 + test -d "$1/.";
37477 + else
37478 + case $1 in
37479 + -*)set "./$1";;
37480 + esac;
37481 + case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
37482 + ???[sx]*):;;*)false;;esac;fi
37483 + '\'' sh
37484 + '
37485 +fi
37486 +as_executable_p=$as_test_x
37487
37488 # Sed expression to map a string onto a valid CPP name.
37489 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
37490 @@ -11179,31 +11623,14 @@ as_tr_cpp="eval sed 'y%*$as_cr_letters%P
37491 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
37492
37493
37494 -# IFS
37495 -# We need space, tab and new line, in precisely that order.
37496 -as_nl='
37497 -'
37498 -IFS=" $as_nl"
37499 -
37500 -# CDPATH.
37501 -$as_unset CDPATH
37502 -
37503 exec 6>&1
37504
37505 -# Open the log real soon, to keep \$[0] and so on meaningful, and to
37506 +# Save the log message, to keep $[0] and so on meaningful, and to
37507 # report actual input values of CONFIG_FILES etc. instead of their
37508 -# values after options handling. Logging --version etc. is OK.
37509 -exec 5>>config.log
37510 -{
37511 - echo
37512 - sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
37513 -## Running $as_me. ##
37514 -_ASBOX
37515 -} >&5
37516 -cat >&5 <<_CSEOF
37517 -
37518 +# values after options handling.
37519 +ac_log="
37520 This file was extended by $as_me, which was
37521 -generated by GNU Autoconf 2.59. Invocation command line was
37522 +generated by GNU Autoconf 2.61. Invocation command line was
37523
37524 CONFIG_FILES = $CONFIG_FILES
37525 CONFIG_HEADERS = $CONFIG_HEADERS
37526 @@ -11211,30 +11638,20 @@ generated by GNU Autoconf 2.59. Invocat
37527 CONFIG_COMMANDS = $CONFIG_COMMANDS
37528 $ $0 $@
37529
37530 -_CSEOF
37531 -echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
37532 -echo >&5
37533 +on `(hostname || uname -n) 2>/dev/null | sed 1q`
37534 +"
37535 +
37536 _ACEOF
37537
37538 +cat >>$CONFIG_STATUS <<_ACEOF
37539 # Files that config.status was made for.
37540 -if test -n "$ac_config_files"; then
37541 - echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
37542 -fi
37543 -
37544 -if test -n "$ac_config_headers"; then
37545 - echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
37546 -fi
37547 -
37548 -if test -n "$ac_config_links"; then
37549 - echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
37550 -fi
37551 +config_files="$ac_config_files"
37552 +config_headers="$ac_config_headers"
37553 +config_commands="$ac_config_commands"
37554
37555 -if test -n "$ac_config_commands"; then
37556 - echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
37557 -fi
37558 +_ACEOF
37559
37560 cat >>$CONFIG_STATUS <<\_ACEOF
37561 -
37562 ac_cs_usage="\
37563 \`$as_me' instantiates files from templates according to the
37564 current configuration.
37565 @@ -11242,7 +11659,7 @@ current configuration.
37566 Usage: $0 [OPTIONS] [FILE]...
37567
37568 -h, --help print this help, then exit
37569 - -V, --version print version number, then exit
37570 + -V, --version print version number and configuration settings, then exit
37571 -q, --quiet do not print progress messages
37572 -d, --debug don't remove temporary files
37573 --recheck update $as_me by reconfiguring in the same conditions
37574 @@ -11261,19 +11678,21 @@ Configuration commands:
37575 $config_commands
37576
37577 Report bugs to <bug-autoconf@gnu.org>."
37578 -_ACEOF
37579
37580 +_ACEOF
37581 cat >>$CONFIG_STATUS <<_ACEOF
37582 ac_cs_version="\\
37583 config.status
37584 -configured by $0, generated by GNU Autoconf 2.59,
37585 - with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
37586 +configured by $0, generated by GNU Autoconf 2.61,
37587 + with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
37588
37589 -Copyright (C) 2003 Free Software Foundation, Inc.
37590 +Copyright (C) 2006 Free Software Foundation, Inc.
37591 This config.status script is free software; the Free Software Foundation
37592 gives unlimited permission to copy, distribute and modify it."
37593 -srcdir=$srcdir
37594 -INSTALL="$INSTALL"
37595 +
37596 +ac_pwd='$ac_pwd'
37597 +srcdir='$srcdir'
37598 +INSTALL='$INSTALL'
37599 _ACEOF
37600
37601 cat >>$CONFIG_STATUS <<\_ACEOF
37602 @@ -11284,39 +11703,24 @@ while test $# != 0
37603 do
37604 case $1 in
37605 --*=*)
37606 - ac_option=`expr "x$1" : 'x\([^=]*\)='`
37607 - ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
37608 + ac_option=`expr "X$1" : 'X\([^=]*\)='`
37609 + ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
37610 ac_shift=:
37611 ;;
37612 - -*)
37613 + *)
37614 ac_option=$1
37615 ac_optarg=$2
37616 ac_shift=shift
37617 ;;
37618 - *) # This is not an option, so the user has probably given explicit
37619 - # arguments.
37620 - ac_option=$1
37621 - ac_need_defaults=false;;
37622 esac
37623
37624 case $ac_option in
37625 # Handling of the options.
37626 -_ACEOF
37627 -cat >>$CONFIG_STATUS <<\_ACEOF
37628 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
37629 ac_cs_recheck=: ;;
37630 - --version | --vers* | -V )
37631 - echo "$ac_cs_version"; exit 0 ;;
37632 - --he | --h)
37633 - # Conflict between --help and --header
37634 - { { echo "$as_me:$LINENO: error: ambiguous option: $1
37635 -Try \`$0 --help' for more information." >&5
37636 -echo "$as_me: error: ambiguous option: $1
37637 -Try \`$0 --help' for more information." >&2;}
37638 - { (exit 1); exit 1; }; };;
37639 - --help | --hel | -h )
37640 - echo "$ac_cs_usage"; exit 0 ;;
37641 - --debug | --d* | -d )
37642 + --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
37643 + echo "$ac_cs_version"; exit ;;
37644 + --debug | --debu | --deb | --de | --d | -d )
37645 debug=: ;;
37646 --file | --fil | --fi | --f )
37647 $ac_shift
37648 @@ -11326,18 +11730,24 @@ Try \`$0 --help' for more information."
37649 $ac_shift
37650 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
37651 ac_need_defaults=false;;
37652 + --he | --h)
37653 + # Conflict between --help and --header
37654 + { echo "$as_me: error: ambiguous option: $1
37655 +Try \`$0 --help' for more information." >&2
37656 + { (exit 1); exit 1; }; };;
37657 + --help | --hel | -h )
37658 + echo "$ac_cs_usage"; exit ;;
37659 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
37660 | -silent | --silent | --silen | --sile | --sil | --si | --s)
37661 ac_cs_silent=: ;;
37662
37663 # This is an error.
37664 - -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
37665 -Try \`$0 --help' for more information." >&5
37666 -echo "$as_me: error: unrecognized option: $1
37667 -Try \`$0 --help' for more information." >&2;}
37668 + -*) { echo "$as_me: error: unrecognized option: $1
37669 +Try \`$0 --help' for more information." >&2
37670 { (exit 1); exit 1; }; } ;;
37671
37672 - *) ac_config_targets="$ac_config_targets $1" ;;
37673 + *) ac_config_targets="$ac_config_targets $1"
37674 + ac_need_defaults=false ;;
37675
37676 esac
37677 shift
37678 @@ -11353,40 +11763,52 @@ fi
37679 _ACEOF
37680 cat >>$CONFIG_STATUS <<_ACEOF
37681 if \$ac_cs_recheck; then
37682 - echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
37683 - exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
37684 + echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
37685 + CONFIG_SHELL=$SHELL
37686 + export CONFIG_SHELL
37687 + exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
37688 fi
37689
37690 _ACEOF
37691 +cat >>$CONFIG_STATUS <<\_ACEOF
37692 +exec 5>>config.log
37693 +{
37694 + echo
37695 + sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
37696 +## Running $as_me. ##
37697 +_ASBOX
37698 + echo "$ac_log"
37699 +} >&5
37700
37701 +_ACEOF
37702 cat >>$CONFIG_STATUS <<_ACEOF
37703 #
37704 -# INIT-COMMANDS section.
37705 +# INIT-COMMANDS
37706 #
37707 -
37708 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
37709
37710 _ACEOF
37711
37712 -
37713 -
37714 cat >>$CONFIG_STATUS <<\_ACEOF
37715 +
37716 +# Handling of arguments.
37717 for ac_config_target in $ac_config_targets
37718 do
37719 - case "$ac_config_target" in
37720 - # Handling of arguments.
37721 - "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
37722 - "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
37723 - "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
37724 - "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
37725 - "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
37726 - "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
37727 + case $ac_config_target in
37728 + "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
37729 + "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
37730 + "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
37731 + "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
37732 + "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
37733 + "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
37734 +
37735 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
37736 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
37737 { (exit 1); exit 1; }; };;
37738 esac
37739 done
37740
37741 +
37742 # If the user did not use the arguments to specify the items to instantiate,
37743 # then the envvar interface is used. Set only those that are not.
37744 # We use the long form for the default assignment because of an extremely
37745 @@ -11398,391 +11820,496 @@ if $ac_need_defaults; then
37746 fi
37747
37748 # Have a temporary directory for convenience. Make it in the build tree
37749 -# simply because there is no reason to put it here, and in addition,
37750 +# simply because there is no reason against having it here, and in addition,
37751 # creating and moving files from /tmp can sometimes cause problems.
37752 -# Create a temporary directory, and hook for its removal unless debugging.
37753 +# Hook for its removal unless debugging.
37754 +# Note that there is a small window in which the directory will not be cleaned:
37755 +# after its creation but before its name has been assigned to `$tmp'.
37756 $debug ||
37757 {
37758 - trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
37759 + tmp=
37760 + trap 'exit_status=$?
37761 + { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
37762 +' 0
37763 trap '{ (exit 1); exit 1; }' 1 2 13 15
37764 }
37765 -
37766 # Create a (secure) tmp directory for tmp files.
37767
37768 {
37769 - tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
37770 + tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
37771 test -n "$tmp" && test -d "$tmp"
37772 } ||
37773 {
37774 - tmp=./confstat$$-$RANDOM
37775 - (umask 077 && mkdir $tmp)
37776 + tmp=./conf$$-$RANDOM
37777 + (umask 077 && mkdir "$tmp")
37778 } ||
37779 {
37780 echo "$me: cannot create a temporary directory in ." >&2
37781 { (exit 1); exit 1; }
37782 }
37783
37784 -_ACEOF
37785 -
37786 -cat >>$CONFIG_STATUS <<_ACEOF
37787 -
37788 #
37789 -# CONFIG_FILES section.
37790 +# Set up the sed scripts for CONFIG_FILES section.
37791 #
37792
37793 # No need to generate the scripts if there are no CONFIG_FILES.
37794 # This happens for instance when ./config.status config.h
37795 -if test -n "\$CONFIG_FILES"; then
37796 - # Protect against being on the right side of a sed subst in config.status.
37797 - sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
37798 - s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
37799 -s,@SHELL@,$SHELL,;t t
37800 -s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
37801 -s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
37802 -s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
37803 -s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
37804 -s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
37805 -s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
37806 -s,@exec_prefix@,$exec_prefix,;t t
37807 -s,@prefix@,$prefix,;t t
37808 -s,@program_transform_name@,$program_transform_name,;t t
37809 -s,@bindir@,$bindir,;t t
37810 -s,@sbindir@,$sbindir,;t t
37811 -s,@libexecdir@,$libexecdir,;t t
37812 -s,@datadir@,$datadir,;t t
37813 -s,@sysconfdir@,$sysconfdir,;t t
37814 -s,@sharedstatedir@,$sharedstatedir,;t t
37815 -s,@localstatedir@,$localstatedir,;t t
37816 -s,@libdir@,$libdir,;t t
37817 -s,@includedir@,$includedir,;t t
37818 -s,@oldincludedir@,$oldincludedir,;t t
37819 -s,@infodir@,$infodir,;t t
37820 -s,@mandir@,$mandir,;t t
37821 -s,@build_alias@,$build_alias,;t t
37822 -s,@host_alias@,$host_alias,;t t
37823 -s,@target_alias@,$target_alias,;t t
37824 -s,@DEFS@,$DEFS,;t t
37825 -s,@ECHO_C@,$ECHO_C,;t t
37826 -s,@ECHO_N@,$ECHO_N,;t t
37827 -s,@ECHO_T@,$ECHO_T,;t t
37828 -s,@LIBS@,$LIBS,;t t
37829 -s,@build@,$build,;t t
37830 -s,@build_cpu@,$build_cpu,;t t
37831 -s,@build_vendor@,$build_vendor,;t t
37832 -s,@build_os@,$build_os,;t t
37833 -s,@host@,$host,;t t
37834 -s,@host_cpu@,$host_cpu,;t t
37835 -s,@host_vendor@,$host_vendor,;t t
37836 -s,@host_os@,$host_os,;t t
37837 -s,@target@,$target,;t t
37838 -s,@target_cpu@,$target_cpu,;t t
37839 -s,@target_vendor@,$target_vendor,;t t
37840 -s,@target_os@,$target_os,;t t
37841 -s,@CC@,$CC,;t t
37842 -s,@CFLAGS@,$CFLAGS,;t t
37843 -s,@LDFLAGS@,$LDFLAGS,;t t
37844 -s,@CPPFLAGS@,$CPPFLAGS,;t t
37845 -s,@ac_ct_CC@,$ac_ct_CC,;t t
37846 -s,@EXEEXT@,$EXEEXT,;t t
37847 -s,@OBJEXT@,$OBJEXT,;t t
37848 -s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
37849 -s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
37850 -s,@INSTALL_DATA@,$INSTALL_DATA,;t t
37851 -s,@CYGPATH_W@,$CYGPATH_W,;t t
37852 -s,@PACKAGE@,$PACKAGE,;t t
37853 -s,@VERSION@,$VERSION,;t t
37854 -s,@ACLOCAL@,$ACLOCAL,;t t
37855 -s,@AUTOCONF@,$AUTOCONF,;t t
37856 -s,@AUTOMAKE@,$AUTOMAKE,;t t
37857 -s,@AUTOHEADER@,$AUTOHEADER,;t t
37858 -s,@MAKEINFO@,$MAKEINFO,;t t
37859 -s,@install_sh@,$install_sh,;t t
37860 -s,@STRIP@,$STRIP,;t t
37861 -s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
37862 -s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
37863 -s,@mkdir_p@,$mkdir_p,;t t
37864 -s,@AWK@,$AWK,;t t
37865 -s,@SET_MAKE@,$SET_MAKE,;t t
37866 -s,@am__leading_dot@,$am__leading_dot,;t t
37867 -s,@AMTAR@,$AMTAR,;t t
37868 -s,@am__tar@,$am__tar,;t t
37869 -s,@am__untar@,$am__untar,;t t
37870 -s,@DEPDIR@,$DEPDIR,;t t
37871 -s,@am__include@,$am__include,;t t
37872 -s,@am__quote@,$am__quote,;t t
37873 -s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
37874 -s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
37875 -s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
37876 -s,@CCDEPMODE@,$CCDEPMODE,;t t
37877 -s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
37878 -s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
37879 -s,@LN_S@,$LN_S,;t t
37880 -s,@RANLIB@,$RANLIB,;t t
37881 -s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
37882 -s,@LIBTOOL@,$LIBTOOL,;t t
37883 -s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
37884 -s,@NO_WERROR@,$NO_WERROR,;t t
37885 -s,@YACC@,$YACC,;t t
37886 -s,@LEX@,$LEX,;t t
37887 -s,@LEXLIB@,$LEXLIB,;t t
37888 -s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
37889 -s,@CPP@,$CPP,;t t
37890 -s,@EGREP@,$EGREP,;t t
37891 -s,@ALLOCA@,$ALLOCA,;t t
37892 -s,@USE_NLS@,$USE_NLS,;t t
37893 -s,@MSGFMT@,$MSGFMT,;t t
37894 -s,@GMSGFMT@,$GMSGFMT,;t t
37895 -s,@XGETTEXT@,$XGETTEXT,;t t
37896 -s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
37897 -s,@CATALOGS@,$CATALOGS,;t t
37898 -s,@CATOBJEXT@,$CATOBJEXT,;t t
37899 -s,@DATADIRNAME@,$DATADIRNAME,;t t
37900 -s,@GMOFILES@,$GMOFILES,;t t
37901 -s,@INSTOBJEXT@,$INSTOBJEXT,;t t
37902 -s,@INTLDEPS@,$INTLDEPS,;t t
37903 -s,@INTLLIBS@,$INTLLIBS,;t t
37904 -s,@INTLOBJS@,$INTLOBJS,;t t
37905 -s,@POFILES@,$POFILES,;t t
37906 -s,@POSUB@,$POSUB,;t t
37907 -s,@INCLUDE_LOCALE_H@,$INCLUDE_LOCALE_H,;t t
37908 -s,@GT_NO@,$GT_NO,;t t
37909 -s,@GT_YES@,$GT_YES,;t t
37910 -s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
37911 -s,@l@,$l,;t t
37912 -s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
37913 -s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
37914 -s,@MAINT@,$MAINT,;t t
37915 -s,@HDEFINES@,$HDEFINES,;t t
37916 -s,@AR@,$AR,;t t
37917 -s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
37918 -s,@EXEEXT_FOR_BUILD@,$EXEEXT_FOR_BUILD,;t t
37919 -s,@DEMANGLER_NAME@,$DEMANGLER_NAME,;t t
37920 -s,@NLMCONV_DEFS@,$NLMCONV_DEFS,;t t
37921 -s,@BUILD_NLMCONV@,$BUILD_NLMCONV,;t t
37922 -s,@BUILD_SRCONV@,$BUILD_SRCONV,;t t
37923 -s,@BUILD_DLLTOOL@,$BUILD_DLLTOOL,;t t
37924 -s,@DLLTOOL_DEFS@,$DLLTOOL_DEFS,;t t
37925 -s,@BUILD_WINDRES@,$BUILD_WINDRES,;t t
37926 -s,@BUILD_DLLWRAP@,$BUILD_DLLWRAP,;t t
37927 -s,@BUILD_MISC@,$BUILD_MISC,;t t
37928 -s,@OBJDUMP_DEFS@,$OBJDUMP_DEFS,;t t
37929 -s,@EMULATION@,$EMULATION,;t t
37930 -s,@EMULATION_VECTOR@,$EMULATION_VECTOR,;t t
37931 -s,@datarootdir@,$datarootdir,;t t
37932 -s,@docdir@,$docdir,;t t
37933 -s,@htmldir@,$htmldir,;t t
37934 -s,@LIBOBJS@,$LIBOBJS,;t t
37935 -s,@LTLIBOBJS@,$LTLIBOBJS,;t t
37936 -CEOF
37937 -
37938 -_ACEOF
37939 -
37940 - cat >>$CONFIG_STATUS <<\_ACEOF
37941 - # Split the substitutions into bite-sized pieces for seds with
37942 - # small command number limits, like on Digital OSF/1 and HP-UX.
37943 - ac_max_sed_lines=48
37944 - ac_sed_frag=1 # Number of current file.
37945 - ac_beg=1 # First line for current file.
37946 - ac_end=$ac_max_sed_lines # Line after last line for current file.
37947 - ac_more_lines=:
37948 - ac_sed_cmds=
37949 - while $ac_more_lines; do
37950 - if test $ac_beg -gt 1; then
37951 - sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
37952 - else
37953 - sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
37954 - fi
37955 - if test ! -s $tmp/subs.frag; then
37956 - ac_more_lines=false
37957 - else
37958 - # The purpose of the label and of the branching condition is to
37959 - # speed up the sed processing (if there are no `@' at all, there
37960 - # is no need to browse any of the substitutions).
37961 - # These are the two extra sed commands mentioned above.
37962 - (echo ':t
37963 - /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
37964 - if test -z "$ac_sed_cmds"; then
37965 - ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
37966 - else
37967 - ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
37968 - fi
37969 - ac_sed_frag=`expr $ac_sed_frag + 1`
37970 - ac_beg=$ac_end
37971 - ac_end=`expr $ac_end + $ac_max_sed_lines`
37972 - fi
37973 - done
37974 - if test -z "$ac_sed_cmds"; then
37975 - ac_sed_cmds=cat
37976 +if test -n "$CONFIG_FILES"; then
37977 +
37978 +_ACEOF
37979 +
37980 +
37981 +
37982 +ac_delim='%!_!# '
37983 +for ac_last_try in false false false false false :; do
37984 + cat >conf$$subs.sed <<_ACEOF
37985 +SHELL!$SHELL$ac_delim
37986 +PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
37987 +PACKAGE_NAME!$PACKAGE_NAME$ac_delim
37988 +PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
37989 +PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
37990 +PACKAGE_STRING!$PACKAGE_STRING$ac_delim
37991 +PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
37992 +exec_prefix!$exec_prefix$ac_delim
37993 +prefix!$prefix$ac_delim
37994 +program_transform_name!$program_transform_name$ac_delim
37995 +bindir!$bindir$ac_delim
37996 +sbindir!$sbindir$ac_delim
37997 +libexecdir!$libexecdir$ac_delim
37998 +datarootdir!$datarootdir$ac_delim
37999 +datadir!$datadir$ac_delim
38000 +sysconfdir!$sysconfdir$ac_delim
38001 +sharedstatedir!$sharedstatedir$ac_delim
38002 +localstatedir!$localstatedir$ac_delim
38003 +includedir!$includedir$ac_delim
38004 +oldincludedir!$oldincludedir$ac_delim
38005 +docdir!$docdir$ac_delim
38006 +infodir!$infodir$ac_delim
38007 +htmldir!$htmldir$ac_delim
38008 +dvidir!$dvidir$ac_delim
38009 +pdfdir!$pdfdir$ac_delim
38010 +psdir!$psdir$ac_delim
38011 +libdir!$libdir$ac_delim
38012 +localedir!$localedir$ac_delim
38013 +mandir!$mandir$ac_delim
38014 +DEFS!$DEFS$ac_delim
38015 +ECHO_C!$ECHO_C$ac_delim
38016 +ECHO_N!$ECHO_N$ac_delim
38017 +ECHO_T!$ECHO_T$ac_delim
38018 +LIBS!$LIBS$ac_delim
38019 +build_alias!$build_alias$ac_delim
38020 +host_alias!$host_alias$ac_delim
38021 +target_alias!$target_alias$ac_delim
38022 +build!$build$ac_delim
38023 +build_cpu!$build_cpu$ac_delim
38024 +build_vendor!$build_vendor$ac_delim
38025 +build_os!$build_os$ac_delim
38026 +host!$host$ac_delim
38027 +host_cpu!$host_cpu$ac_delim
38028 +host_vendor!$host_vendor$ac_delim
38029 +host_os!$host_os$ac_delim
38030 +target!$target$ac_delim
38031 +target_cpu!$target_cpu$ac_delim
38032 +target_vendor!$target_vendor$ac_delim
38033 +target_os!$target_os$ac_delim
38034 +CC!$CC$ac_delim
38035 +CFLAGS!$CFLAGS$ac_delim
38036 +LDFLAGS!$LDFLAGS$ac_delim
38037 +CPPFLAGS!$CPPFLAGS$ac_delim
38038 +ac_ct_CC!$ac_ct_CC$ac_delim
38039 +EXEEXT!$EXEEXT$ac_delim
38040 +OBJEXT!$OBJEXT$ac_delim
38041 +INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
38042 +INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
38043 +INSTALL_DATA!$INSTALL_DATA$ac_delim
38044 +CYGPATH_W!$CYGPATH_W$ac_delim
38045 +PACKAGE!$PACKAGE$ac_delim
38046 +VERSION!$VERSION$ac_delim
38047 +ACLOCAL!$ACLOCAL$ac_delim
38048 +AUTOCONF!$AUTOCONF$ac_delim
38049 +AUTOMAKE!$AUTOMAKE$ac_delim
38050 +AUTOHEADER!$AUTOHEADER$ac_delim
38051 +MAKEINFO!$MAKEINFO$ac_delim
38052 +install_sh!$install_sh$ac_delim
38053 +STRIP!$STRIP$ac_delim
38054 +INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
38055 +mkdir_p!$mkdir_p$ac_delim
38056 +AWK!$AWK$ac_delim
38057 +SET_MAKE!$SET_MAKE$ac_delim
38058 +am__leading_dot!$am__leading_dot$ac_delim
38059 +AMTAR!$AMTAR$ac_delim
38060 +am__tar!$am__tar$ac_delim
38061 +am__untar!$am__untar$ac_delim
38062 +DEPDIR!$DEPDIR$ac_delim
38063 +am__include!$am__include$ac_delim
38064 +am__quote!$am__quote$ac_delim
38065 +AMDEP_TRUE!$AMDEP_TRUE$ac_delim
38066 +AMDEP_FALSE!$AMDEP_FALSE$ac_delim
38067 +AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
38068 +CCDEPMODE!$CCDEPMODE$ac_delim
38069 +am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
38070 +am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
38071 +LN_S!$LN_S$ac_delim
38072 +RANLIB!$RANLIB$ac_delim
38073 +LIBTOOL!$LIBTOOL$ac_delim
38074 +WARN_CFLAGS!$WARN_CFLAGS$ac_delim
38075 +NO_WERROR!$NO_WERROR$ac_delim
38076 +YACC!$YACC$ac_delim
38077 +YFLAGS!$YFLAGS$ac_delim
38078 +LEX!$LEX$ac_delim
38079 +LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
38080 +LEXLIB!$LEXLIB$ac_delim
38081 +CPP!$CPP$ac_delim
38082 +_ACEOF
38083 +
38084 + if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
38085 + break
38086 + elif $ac_last_try; then
38087 + { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
38088 +echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
38089 + { (exit 1); exit 1; }; }
38090 + else
38091 + ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
38092 fi
38093 -fi # test -n "$CONFIG_FILES"
38094 +done
38095 +
38096 +ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
38097 +if test -n "$ac_eof"; then
38098 + ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
38099 + ac_eof=`expr $ac_eof + 1`
38100 +fi
38101 +
38102 +cat >>$CONFIG_STATUS <<_ACEOF
38103 +cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
38104 +/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
38105 +_ACEOF
38106 +sed '
38107 +s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
38108 +s/^/s,@/; s/!/@,|#_!!_#|/
38109 +:n
38110 +t n
38111 +s/'"$ac_delim"'$/,g/; t
38112 +s/$/\\/; p
38113 +N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
38114 +' >>$CONFIG_STATUS <conf$$subs.sed
38115 +rm -f conf$$subs.sed
38116 +cat >>$CONFIG_STATUS <<_ACEOF
38117 +CEOF$ac_eof
38118 +_ACEOF
38119 +
38120 +
38121 +ac_delim='%!_!# '
38122 +for ac_last_try in false false false false false :; do
38123 + cat >conf$$subs.sed <<_ACEOF
38124 +GREP!$GREP$ac_delim
38125 +EGREP!$EGREP$ac_delim
38126 +ALLOCA!$ALLOCA$ac_delim
38127 +USE_NLS!$USE_NLS$ac_delim
38128 +MSGFMT!$MSGFMT$ac_delim
38129 +GMSGFMT!$GMSGFMT$ac_delim
38130 +XGETTEXT!$XGETTEXT$ac_delim
38131 +USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim
38132 +CATALOGS!$CATALOGS$ac_delim
38133 +CATOBJEXT!$CATOBJEXT$ac_delim
38134 +DATADIRNAME!$DATADIRNAME$ac_delim
38135 +GMOFILES!$GMOFILES$ac_delim
38136 +INSTOBJEXT!$INSTOBJEXT$ac_delim
38137 +INTLDEPS!$INTLDEPS$ac_delim
38138 +INTLLIBS!$INTLLIBS$ac_delim
38139 +INTLOBJS!$INTLOBJS$ac_delim
38140 +POFILES!$POFILES$ac_delim
38141 +POSUB!$POSUB$ac_delim
38142 +INCLUDE_LOCALE_H!$INCLUDE_LOCALE_H$ac_delim
38143 +GT_NO!$GT_NO$ac_delim
38144 +GT_YES!$GT_YES$ac_delim
38145 +MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
38146 +l!$l$ac_delim
38147 +MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
38148 +MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
38149 +MAINT!$MAINT$ac_delim
38150 +HDEFINES!$HDEFINES$ac_delim
38151 +AR!$AR$ac_delim
38152 +CC_FOR_BUILD!$CC_FOR_BUILD$ac_delim
38153 +EXEEXT_FOR_BUILD!$EXEEXT_FOR_BUILD$ac_delim
38154 +DEMANGLER_NAME!$DEMANGLER_NAME$ac_delim
38155 +NLMCONV_DEFS!$NLMCONV_DEFS$ac_delim
38156 +BUILD_NLMCONV!$BUILD_NLMCONV$ac_delim
38157 +BUILD_SRCONV!$BUILD_SRCONV$ac_delim
38158 +BUILD_DLLTOOL!$BUILD_DLLTOOL$ac_delim
38159 +DLLTOOL_DEFS!$DLLTOOL_DEFS$ac_delim
38160 +BUILD_WINDRES!$BUILD_WINDRES$ac_delim
38161 +BUILD_DLLWRAP!$BUILD_DLLWRAP$ac_delim
38162 +BUILD_MISC!$BUILD_MISC$ac_delim
38163 +OBJDUMP_DEFS!$OBJDUMP_DEFS$ac_delim
38164 +EMULATION!$EMULATION$ac_delim
38165 +EMULATION_VECTOR!$EMULATION_VECTOR$ac_delim
38166 +LIBOBJS!$LIBOBJS$ac_delim
38167 +LTLIBOBJS!$LTLIBOBJS$ac_delim
38168 +_ACEOF
38169 +
38170 + if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 44; then
38171 + break
38172 + elif $ac_last_try; then
38173 + { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
38174 +echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
38175 + { (exit 1); exit 1; }; }
38176 + else
38177 + ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
38178 + fi
38179 +done
38180
38181 +ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
38182 +if test -n "$ac_eof"; then
38183 + ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
38184 + ac_eof=`expr $ac_eof + 1`
38185 +fi
38186 +
38187 +cat >>$CONFIG_STATUS <<_ACEOF
38188 +cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
38189 +/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
38190 +_ACEOF
38191 +sed '
38192 +s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
38193 +s/^/s,@/; s/!/@,|#_!!_#|/
38194 +:n
38195 +t n
38196 +s/'"$ac_delim"'$/,g/; t
38197 +s/$/\\/; p
38198 +N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
38199 +' >>$CONFIG_STATUS <conf$$subs.sed
38200 +rm -f conf$$subs.sed
38201 +cat >>$CONFIG_STATUS <<_ACEOF
38202 +:end
38203 +s/|#_!!_#|//g
38204 +CEOF$ac_eof
38205 _ACEOF
38206 +
38207 +
38208 +# VPATH may cause trouble with some makes, so we remove $(srcdir),
38209 +# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
38210 +# trailing colons and then remove the whole line if VPATH becomes empty
38211 +# (actually we leave an empty line to preserve line numbers).
38212 +if test "x$srcdir" = x.; then
38213 + ac_vpsub='/^[ ]*VPATH[ ]*=/{
38214 +s/:*\$(srcdir):*/:/
38215 +s/:*\${srcdir}:*/:/
38216 +s/:*@srcdir@:*/:/
38217 +s/^\([^=]*=[ ]*\):*/\1/
38218 +s/:*$//
38219 +s/^[^=]*=[ ]*$//
38220 +}'
38221 +fi
38222 +
38223 cat >>$CONFIG_STATUS <<\_ACEOF
38224 -for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
38225 - # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
38226 - case $ac_file in
38227 - - | *:- | *:-:* ) # input from stdin
38228 - cat >$tmp/stdin
38229 - ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
38230 - ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
38231 - *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
38232 - ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
38233 - * ) ac_file_in=$ac_file.in ;;
38234 +fi # test -n "$CONFIG_FILES"
38235 +
38236 +
38237 +for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
38238 +do
38239 + case $ac_tag in
38240 + :[FHLC]) ac_mode=$ac_tag; continue;;
38241 + esac
38242 + case $ac_mode$ac_tag in
38243 + :[FHL]*:*);;
38244 + :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
38245 +echo "$as_me: error: Invalid tag $ac_tag." >&2;}
38246 + { (exit 1); exit 1; }; };;
38247 + :[FH]-) ac_tag=-:-;;
38248 + :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
38249 + esac
38250 + ac_save_IFS=$IFS
38251 + IFS=:
38252 + set x $ac_tag
38253 + IFS=$ac_save_IFS
38254 + shift
38255 + ac_file=$1
38256 + shift
38257 +
38258 + case $ac_mode in
38259 + :L) ac_source=$1;;
38260 + :[FH])
38261 + ac_file_inputs=
38262 + for ac_f
38263 + do
38264 + case $ac_f in
38265 + -) ac_f="$tmp/stdin";;
38266 + *) # Look for the file first in the build tree, then in the source tree
38267 + # (if the path is not absolute). The absolute path cannot be DOS-style,
38268 + # because $ac_f cannot contain `:'.
38269 + test -f "$ac_f" ||
38270 + case $ac_f in
38271 + [\\/$]*) false;;
38272 + *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
38273 + esac ||
38274 + { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
38275 +echo "$as_me: error: cannot find input file: $ac_f" >&2;}
38276 + { (exit 1); exit 1; }; };;
38277 + esac
38278 + ac_file_inputs="$ac_file_inputs $ac_f"
38279 + done
38280 +
38281 + # Let's still pretend it is `configure' which instantiates (i.e., don't
38282 + # use $as_me), people would be surprised to read:
38283 + # /* config.h. Generated by config.status. */
38284 + configure_input="Generated from "`IFS=:
38285 + echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
38286 + if test x"$ac_file" != x-; then
38287 + configure_input="$ac_file. $configure_input"
38288 + { echo "$as_me:$LINENO: creating $ac_file" >&5
38289 +echo "$as_me: creating $ac_file" >&6;}
38290 + fi
38291 +
38292 + case $ac_tag in
38293 + *:-:* | *:-) cat >"$tmp/stdin";;
38294 + esac
38295 + ;;
38296 esac
38297
38298 - # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
38299 - ac_dir=`(dirname "$ac_file") 2>/dev/null ||
38300 + ac_dir=`$as_dirname -- "$ac_file" ||
38301 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
38302 X"$ac_file" : 'X\(//\)[^/]' \| \
38303 X"$ac_file" : 'X\(//\)$' \| \
38304 - X"$ac_file" : 'X\(/\)' \| \
38305 - . : '\(.\)' 2>/dev/null ||
38306 + X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
38307 echo X"$ac_file" |
38308 - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
38309 - /^X\(\/\/\)[^/].*/{ s//\1/; q; }
38310 - /^X\(\/\/\)$/{ s//\1/; q; }
38311 - /^X\(\/\).*/{ s//\1/; q; }
38312 - s/.*/./; q'`
38313 - { if $as_mkdir_p; then
38314 - mkdir -p "$ac_dir"
38315 - else
38316 - as_dir="$ac_dir"
38317 + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
38318 + s//\1/
38319 + q
38320 + }
38321 + /^X\(\/\/\)[^/].*/{
38322 + s//\1/
38323 + q
38324 + }
38325 + /^X\(\/\/\)$/{
38326 + s//\1/
38327 + q
38328 + }
38329 + /^X\(\/\).*/{
38330 + s//\1/
38331 + q
38332 + }
38333 + s/.*/./; q'`
38334 + { as_dir="$ac_dir"
38335 + case $as_dir in #(
38336 + -*) as_dir=./$as_dir;;
38337 + esac
38338 + test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
38339 as_dirs=
38340 - while test ! -d "$as_dir"; do
38341 - as_dirs="$as_dir $as_dirs"
38342 - as_dir=`(dirname "$as_dir") 2>/dev/null ||
38343 + while :; do
38344 + case $as_dir in #(
38345 + *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
38346 + *) as_qdir=$as_dir;;
38347 + esac
38348 + as_dirs="'$as_qdir' $as_dirs"
38349 + as_dir=`$as_dirname -- "$as_dir" ||
38350 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
38351 X"$as_dir" : 'X\(//\)[^/]' \| \
38352 X"$as_dir" : 'X\(//\)$' \| \
38353 - X"$as_dir" : 'X\(/\)' \| \
38354 - . : '\(.\)' 2>/dev/null ||
38355 + X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
38356 echo X"$as_dir" |
38357 - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
38358 - /^X\(\/\/\)[^/].*/{ s//\1/; q; }
38359 - /^X\(\/\/\)$/{ s//\1/; q; }
38360 - /^X\(\/\).*/{ s//\1/; q; }
38361 - s/.*/./; q'`
38362 + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
38363 + s//\1/
38364 + q
38365 + }
38366 + /^X\(\/\/\)[^/].*/{
38367 + s//\1/
38368 + q
38369 + }
38370 + /^X\(\/\/\)$/{
38371 + s//\1/
38372 + q
38373 + }
38374 + /^X\(\/\).*/{
38375 + s//\1/
38376 + q
38377 + }
38378 + s/.*/./; q'`
38379 + test -d "$as_dir" && break
38380 done
38381 - test ! -n "$as_dirs" || mkdir $as_dirs
38382 - fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
38383 -echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
38384 + test -z "$as_dirs" || eval "mkdir $as_dirs"
38385 + } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
38386 +echo "$as_me: error: cannot create directory $as_dir" >&2;}
38387 { (exit 1); exit 1; }; }; }
38388 -
38389 ac_builddir=.
38390
38391 -if test "$ac_dir" != .; then
38392 +case "$ac_dir" in
38393 +.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
38394 +*)
38395 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
38396 - # A "../" for each directory in $ac_dir_suffix.
38397 - ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
38398 -else
38399 - ac_dir_suffix= ac_top_builddir=
38400 -fi
38401 + # A ".." for each directory in $ac_dir_suffix.
38402 + ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
38403 + case $ac_top_builddir_sub in
38404 + "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
38405 + *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
38406 + esac ;;
38407 +esac
38408 +ac_abs_top_builddir=$ac_pwd
38409 +ac_abs_builddir=$ac_pwd$ac_dir_suffix
38410 +# for backward compatibility:
38411 +ac_top_builddir=$ac_top_build_prefix
38412
38413 case $srcdir in
38414 - .) # No --srcdir option. We are building in place.
38415 + .) # We are building in place.
38416 ac_srcdir=.
38417 - if test -z "$ac_top_builddir"; then
38418 - ac_top_srcdir=.
38419 - else
38420 - ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
38421 - fi ;;
38422 - [\\/]* | ?:[\\/]* ) # Absolute path.
38423 + ac_top_srcdir=$ac_top_builddir_sub
38424 + ac_abs_top_srcdir=$ac_pwd ;;
38425 + [\\/]* | ?:[\\/]* ) # Absolute name.
38426 ac_srcdir=$srcdir$ac_dir_suffix;
38427 - ac_top_srcdir=$srcdir ;;
38428 - *) # Relative path.
38429 - ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
38430 - ac_top_srcdir=$ac_top_builddir$srcdir ;;
38431 -esac
38432 + ac_top_srcdir=$srcdir
38433 + ac_abs_top_srcdir=$srcdir ;;
38434 + *) # Relative name.
38435 + ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
38436 + ac_top_srcdir=$ac_top_build_prefix$srcdir
38437 + ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
38438 +esac
38439 +ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
38440
38441 -# Do not use `cd foo && pwd` to compute absolute paths, because
38442 -# the directories may not exist.
38443 -case `pwd` in
38444 -.) ac_abs_builddir="$ac_dir";;
38445 -*)
38446 - case "$ac_dir" in
38447 - .) ac_abs_builddir=`pwd`;;
38448 - [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
38449 - *) ac_abs_builddir=`pwd`/"$ac_dir";;
38450 - esac;;
38451 -esac
38452 -case $ac_abs_builddir in
38453 -.) ac_abs_top_builddir=${ac_top_builddir}.;;
38454 -*)
38455 - case ${ac_top_builddir}. in
38456 - .) ac_abs_top_builddir=$ac_abs_builddir;;
38457 - [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
38458 - *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
38459 - esac;;
38460 -esac
38461 -case $ac_abs_builddir in
38462 -.) ac_abs_srcdir=$ac_srcdir;;
38463 -*)
38464 - case $ac_srcdir in
38465 - .) ac_abs_srcdir=$ac_abs_builddir;;
38466 - [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
38467 - *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
38468 - esac;;
38469 -esac
38470 -case $ac_abs_builddir in
38471 -.) ac_abs_top_srcdir=$ac_top_srcdir;;
38472 -*)
38473 - case $ac_top_srcdir in
38474 - .) ac_abs_top_srcdir=$ac_abs_builddir;;
38475 - [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
38476 - *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
38477 - esac;;
38478 -esac
38479
38480 + case $ac_mode in
38481 + :F)
38482 + #
38483 + # CONFIG_FILE
38484 + #
38485
38486 case $INSTALL in
38487 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
38488 - *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
38489 + *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
38490 esac
38491 +_ACEOF
38492
38493 - if test x"$ac_file" != x-; then
38494 - { echo "$as_me:$LINENO: creating $ac_file" >&5
38495 -echo "$as_me: creating $ac_file" >&6;}
38496 - rm -f "$ac_file"
38497 - fi
38498 - # Let's still pretend it is `configure' which instantiates (i.e., don't
38499 - # use $as_me), people would be surprised to read:
38500 - # /* config.h. Generated by config.status. */
38501 - if test x"$ac_file" = x-; then
38502 - configure_input=
38503 - else
38504 - configure_input="$ac_file. "
38505 - fi
38506 - configure_input=$configure_input"Generated from `echo $ac_file_in |
38507 - sed 's,.*/,,'` by configure."
38508 -
38509 - # First look for the input files in the build tree, otherwise in the
38510 - # src tree.
38511 - ac_file_inputs=`IFS=:
38512 - for f in $ac_file_in; do
38513 - case $f in
38514 - -) echo $tmp/stdin ;;
38515 - [\\/$]*)
38516 - # Absolute (can't be DOS-style, as IFS=:)
38517 - test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
38518 -echo "$as_me: error: cannot find input file: $f" >&2;}
38519 - { (exit 1); exit 1; }; }
38520 - echo "$f";;
38521 - *) # Relative
38522 - if test -f "$f"; then
38523 - # Build tree
38524 - echo "$f"
38525 - elif test -f "$srcdir/$f"; then
38526 - # Source tree
38527 - echo "$srcdir/$f"
38528 - else
38529 - # /dev/null tree
38530 - { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
38531 -echo "$as_me: error: cannot find input file: $f" >&2;}
38532 - { (exit 1); exit 1; }; }
38533 - fi;;
38534 - esac
38535 - done` || { (exit 1); exit 1; }
38536 +cat >>$CONFIG_STATUS <<\_ACEOF
38537 +# If the template does not know about datarootdir, expand it.
38538 +# FIXME: This hack should be removed a few years after 2.60.
38539 +ac_datarootdir_hack=; ac_datarootdir_seen=
38540 +
38541 +case `sed -n '/datarootdir/ {
38542 + p
38543 + q
38544 +}
38545 +/@datadir@/p
38546 +/@docdir@/p
38547 +/@infodir@/p
38548 +/@localedir@/p
38549 +/@mandir@/p
38550 +' $ac_file_inputs` in
38551 +*datarootdir*) ac_datarootdir_seen=yes;;
38552 +*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
38553 + { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
38554 +echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
38555 +_ACEOF
38556 +cat >>$CONFIG_STATUS <<_ACEOF
38557 + ac_datarootdir_hack='
38558 + s&@datadir@&$datadir&g
38559 + s&@docdir@&$docdir&g
38560 + s&@infodir@&$infodir&g
38561 + s&@localedir@&$localedir&g
38562 + s&@mandir@&$mandir&g
38563 + s&\\\${datarootdir}&$datarootdir&g' ;;
38564 +esac
38565 _ACEOF
38566 +
38567 +# Neutralize VPATH when `$srcdir' = `.'.
38568 +# Shell code in configure.ac might set extrasub.
38569 +# FIXME: do we really want to maintain this feature?
38570 cat >>$CONFIG_STATUS <<_ACEOF
38571 sed "$ac_vpsub
38572 $extrasub
38573 @@ -11790,248 +12317,130 @@ _ACEOF
38574 cat >>$CONFIG_STATUS <<\_ACEOF
38575 :t
38576 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
38577 -s,@configure_input@,$configure_input,;t t
38578 -s,@srcdir@,$ac_srcdir,;t t
38579 -s,@abs_srcdir@,$ac_abs_srcdir,;t t
38580 -s,@top_srcdir@,$ac_top_srcdir,;t t
38581 -s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
38582 -s,@builddir@,$ac_builddir,;t t
38583 -s,@abs_builddir@,$ac_abs_builddir,;t t
38584 -s,@top_builddir@,$ac_top_builddir,;t t
38585 -s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
38586 -s,@INSTALL@,$ac_INSTALL,;t t
38587 -" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
38588 - rm -f $tmp/stdin
38589 - if test x"$ac_file" != x-; then
38590 - mv $tmp/out $ac_file
38591 - else
38592 - cat $tmp/out
38593 - rm -f $tmp/out
38594 - fi
38595 -
38596 -done
38597 -_ACEOF
38598 -cat >>$CONFIG_STATUS <<\_ACEOF
38599 -
38600 -#
38601 -# CONFIG_HEADER section.
38602 -#
38603 -
38604 -# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
38605 -# NAME is the cpp macro being defined and VALUE is the value it is being given.
38606 -#
38607 -# ac_d sets the value in "#define NAME VALUE" lines.
38608 -ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
38609 -ac_dB='[ ].*$,\1#\2'
38610 -ac_dC=' '
38611 -ac_dD=',;t'
38612 -# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
38613 -ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
38614 -ac_uB='$,\1#\2define\3'
38615 -ac_uC=' '
38616 -ac_uD=',;t'
38617 +s&@configure_input@&$configure_input&;t t
38618 +s&@top_builddir@&$ac_top_builddir_sub&;t t
38619 +s&@srcdir@&$ac_srcdir&;t t
38620 +s&@abs_srcdir@&$ac_abs_srcdir&;t t
38621 +s&@top_srcdir@&$ac_top_srcdir&;t t
38622 +s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
38623 +s&@builddir@&$ac_builddir&;t t
38624 +s&@abs_builddir@&$ac_abs_builddir&;t t
38625 +s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
38626 +s&@INSTALL@&$ac_INSTALL&;t t
38627 +$ac_datarootdir_hack
38628 +" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
38629 +
38630 +test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
38631 + { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
38632 + { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
38633 + { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
38634 +which seems to be undefined. Please make sure it is defined." >&5
38635 +echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
38636 +which seems to be undefined. Please make sure it is defined." >&2;}
38637
38638 -for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
38639 - # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
38640 + rm -f "$tmp/stdin"
38641 case $ac_file in
38642 - - | *:- | *:-:* ) # input from stdin
38643 - cat >$tmp/stdin
38644 - ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
38645 - ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
38646 - *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
38647 - ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
38648 - * ) ac_file_in=$ac_file.in ;;
38649 + -) cat "$tmp/out"; rm -f "$tmp/out";;
38650 + *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
38651 esac
38652 + ;;
38653 + :H)
38654 + #
38655 + # CONFIG_HEADER
38656 + #
38657 +_ACEOF
38658 +
38659 +# Transform confdefs.h into a sed script `conftest.defines', that
38660 +# substitutes the proper values into config.h.in to produce config.h.
38661 +rm -f conftest.defines conftest.tail
38662 +# First, append a space to every undef/define line, to ease matching.
38663 +echo 's/$/ /' >conftest.defines
38664 +# Then, protect against being on the right side of a sed subst, or in
38665 +# an unquoted here document, in config.status. If some macros were
38666 +# called several times there might be several #defines for the same
38667 +# symbol, which is useless. But do not sort them, since the last
38668 +# AC_DEFINE must be honored.
38669 +ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
38670 +# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
38671 +# NAME is the cpp macro being defined, VALUE is the value it is being given.
38672 +# PARAMS is the parameter list in the macro definition--in most cases, it's
38673 +# just an empty string.
38674 +ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
38675 +ac_dB='\\)[ (].*,\\1define\\2'
38676 +ac_dC=' '
38677 +ac_dD=' ,'
38678
38679 - test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
38680 -echo "$as_me: creating $ac_file" >&6;}
38681 -
38682 - # First look for the input files in the build tree, otherwise in the
38683 - # src tree.
38684 - ac_file_inputs=`IFS=:
38685 - for f in $ac_file_in; do
38686 - case $f in
38687 - -) echo $tmp/stdin ;;
38688 - [\\/$]*)
38689 - # Absolute (can't be DOS-style, as IFS=:)
38690 - test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
38691 -echo "$as_me: error: cannot find input file: $f" >&2;}
38692 - { (exit 1); exit 1; }; }
38693 - # Do quote $f, to prevent DOS paths from being IFS'd.
38694 - echo "$f";;
38695 - *) # Relative
38696 - if test -f "$f"; then
38697 - # Build tree
38698 - echo "$f"
38699 - elif test -f "$srcdir/$f"; then
38700 - # Source tree
38701 - echo "$srcdir/$f"
38702 - else
38703 - # /dev/null tree
38704 - { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
38705 -echo "$as_me: error: cannot find input file: $f" >&2;}
38706 - { (exit 1); exit 1; }; }
38707 - fi;;
38708 - esac
38709 - done` || { (exit 1); exit 1; }
38710 - # Remove the trailing spaces.
38711 - sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
38712 -
38713 -_ACEOF
38714 -
38715 -# Transform confdefs.h into two sed scripts, `conftest.defines' and
38716 -# `conftest.undefs', that substitutes the proper values into
38717 -# config.h.in to produce config.h. The first handles `#define'
38718 -# templates, and the second `#undef' templates.
38719 -# And first: Protect against being on the right side of a sed subst in
38720 -# config.status. Protect against being in an unquoted here document
38721 -# in config.status.
38722 -rm -f conftest.defines conftest.undefs
38723 -# Using a here document instead of a string reduces the quoting nightmare.
38724 -# Putting comments in sed scripts is not portable.
38725 -#
38726 -# `end' is used to avoid that the second main sed command (meant for
38727 -# 0-ary CPP macros) applies to n-ary macro definitions.
38728 -# See the Autoconf documentation for `clear'.
38729 -cat >confdef2sed.sed <<\_ACEOF
38730 -s/[\\&,]/\\&/g
38731 -s,[\\$`],\\&,g
38732 -t clear
38733 -: clear
38734 -s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
38735 -t end
38736 -s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
38737 -: end
38738 -_ACEOF
38739 -# If some macros were called several times there might be several times
38740 -# the same #defines, which is useless. Nevertheless, we may not want to
38741 -# sort them, since we want the *last* AC-DEFINE to be honored.
38742 -uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
38743 -sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
38744 -rm -f confdef2sed.sed
38745 +uniq confdefs.h |
38746 + sed -n '
38747 + t rset
38748 + :rset
38749 + s/^[ ]*#[ ]*define[ ][ ]*//
38750 + t ok
38751 + d
38752 + :ok
38753 + s/[\\&,]/\\&/g
38754 + s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
38755 + s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
38756 + ' >>conftest.defines
38757
38758 -# This sed command replaces #undef with comments. This is necessary, for
38759 +# Remove the space that was appended to ease matching.
38760 +# Then replace #undef with comments. This is necessary, for
38761 # example, in the case of _POSIX_SOURCE, which is predefined and required
38762 # on some systems where configure will not decide to define it.
38763 -cat >>conftest.undefs <<\_ACEOF
38764 -s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
38765 +# (The regexp can be short, since the line contains either #define or #undef.)
38766 +echo 's/ $//
38767 +s,^[ #]*u.*,/* & */,' >>conftest.defines
38768 +
38769 +# Break up conftest.defines:
38770 +ac_max_sed_lines=50
38771 +
38772 +# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
38773 +# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
38774 +# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
38775 +# et cetera.
38776 +ac_in='$ac_file_inputs'
38777 +ac_out='"$tmp/out1"'
38778 +ac_nxt='"$tmp/out2"'
38779 +
38780 +while :
38781 +do
38782 + # Write a here document:
38783 + cat >>$CONFIG_STATUS <<_ACEOF
38784 + # First, check the format of the line:
38785 + cat >"\$tmp/defines.sed" <<\\CEOF
38786 +/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
38787 +/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
38788 +b
38789 +:def
38790 _ACEOF
38791 -
38792 -# Break up conftest.defines because some shells have a limit on the size
38793 -# of here documents, and old seds have small limits too (100 cmds).
38794 -echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
38795 -echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
38796 -echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
38797 -echo ' :' >>$CONFIG_STATUS
38798 -rm -f conftest.tail
38799 -while grep . conftest.defines >/dev/null
38800 -do
38801 - # Write a limited-size here document to $tmp/defines.sed.
38802 - echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
38803 - # Speed up: don't consider the non `#define' lines.
38804 - echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
38805 - # Work around the forget-to-reset-the-flag bug.
38806 - echo 't clr' >>$CONFIG_STATUS
38807 - echo ': clr' >>$CONFIG_STATUS
38808 - sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
38809 + sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
38810 echo 'CEOF
38811 - sed -f $tmp/defines.sed $tmp/in >$tmp/out
38812 - rm -f $tmp/in
38813 - mv $tmp/out $tmp/in
38814 -' >>$CONFIG_STATUS
38815 - sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
38816 + sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
38817 + ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
38818 + sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
38819 + grep . conftest.tail >/dev/null || break
38820 rm -f conftest.defines
38821 mv conftest.tail conftest.defines
38822 done
38823 -rm -f conftest.defines
38824 -echo ' fi # grep' >>$CONFIG_STATUS
38825 -echo >>$CONFIG_STATUS
38826 -
38827 -# Break up conftest.undefs because some shells have a limit on the size
38828 -# of here documents, and old seds have small limits too (100 cmds).
38829 -echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
38830 -rm -f conftest.tail
38831 -while grep . conftest.undefs >/dev/null
38832 -do
38833 - # Write a limited-size here document to $tmp/undefs.sed.
38834 - echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
38835 - # Speed up: don't consider the non `#undef'
38836 - echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
38837 - # Work around the forget-to-reset-the-flag bug.
38838 - echo 't clr' >>$CONFIG_STATUS
38839 - echo ': clr' >>$CONFIG_STATUS
38840 - sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
38841 - echo 'CEOF
38842 - sed -f $tmp/undefs.sed $tmp/in >$tmp/out
38843 - rm -f $tmp/in
38844 - mv $tmp/out $tmp/in
38845 -' >>$CONFIG_STATUS
38846 - sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
38847 - rm -f conftest.undefs
38848 - mv conftest.tail conftest.undefs
38849 -done
38850 -rm -f conftest.undefs
38851 +rm -f conftest.defines conftest.tail
38852
38853 +echo "ac_result=$ac_in" >>$CONFIG_STATUS
38854 cat >>$CONFIG_STATUS <<\_ACEOF
38855 - # Let's still pretend it is `configure' which instantiates (i.e., don't
38856 - # use $as_me), people would be surprised to read:
38857 - # /* config.h. Generated by config.status. */
38858 - if test x"$ac_file" = x-; then
38859 - echo "/* Generated by configure. */" >$tmp/config.h
38860 - else
38861 - echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
38862 - fi
38863 - cat $tmp/in >>$tmp/config.h
38864 - rm -f $tmp/in
38865 if test x"$ac_file" != x-; then
38866 - if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
38867 + echo "/* $configure_input */" >"$tmp/config.h"
38868 + cat "$ac_result" >>"$tmp/config.h"
38869 + if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
38870 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
38871 echo "$as_me: $ac_file is unchanged" >&6;}
38872 else
38873 - ac_dir=`(dirname "$ac_file") 2>/dev/null ||
38874 -$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
38875 - X"$ac_file" : 'X\(//\)[^/]' \| \
38876 - X"$ac_file" : 'X\(//\)$' \| \
38877 - X"$ac_file" : 'X\(/\)' \| \
38878 - . : '\(.\)' 2>/dev/null ||
38879 -echo X"$ac_file" |
38880 - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
38881 - /^X\(\/\/\)[^/].*/{ s//\1/; q; }
38882 - /^X\(\/\/\)$/{ s//\1/; q; }
38883 - /^X\(\/\).*/{ s//\1/; q; }
38884 - s/.*/./; q'`
38885 - { if $as_mkdir_p; then
38886 - mkdir -p "$ac_dir"
38887 - else
38888 - as_dir="$ac_dir"
38889 - as_dirs=
38890 - while test ! -d "$as_dir"; do
38891 - as_dirs="$as_dir $as_dirs"
38892 - as_dir=`(dirname "$as_dir") 2>/dev/null ||
38893 -$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
38894 - X"$as_dir" : 'X\(//\)[^/]' \| \
38895 - X"$as_dir" : 'X\(//\)$' \| \
38896 - X"$as_dir" : 'X\(/\)' \| \
38897 - . : '\(.\)' 2>/dev/null ||
38898 -echo X"$as_dir" |
38899 - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
38900 - /^X\(\/\/\)[^/].*/{ s//\1/; q; }
38901 - /^X\(\/\/\)$/{ s//\1/; q; }
38902 - /^X\(\/\).*/{ s//\1/; q; }
38903 - s/.*/./; q'`
38904 - done
38905 - test ! -n "$as_dirs" || mkdir $as_dirs
38906 - fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
38907 -echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
38908 - { (exit 1); exit 1; }; }; }
38909 -
38910 rm -f $ac_file
38911 - mv $tmp/config.h $ac_file
38912 + mv "$tmp/config.h" $ac_file
38913 fi
38914 else
38915 - cat $tmp/config.h
38916 - rm -f $tmp/config.h
38917 + echo "/* $configure_input */"
38918 + cat "$ac_result"
38919 fi
38920 + rm -f "$tmp/out12"
38921 # Compute $ac_file's index in $config_headers.
38922 _am_stamp_count=1
38923 for _am_header in $config_headers :; do
38924 @@ -12042,135 +12451,39 @@ for _am_header in $config_headers :; do
38925 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
38926 esac
38927 done
38928 -echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
38929 +echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
38930 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
38931 X$ac_file : 'X\(//\)[^/]' \| \
38932 X$ac_file : 'X\(//\)$' \| \
38933 - X$ac_file : 'X\(/\)' \| \
38934 - . : '\(.\)' 2>/dev/null ||
38935 + X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
38936 echo X$ac_file |
38937 - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
38938 - /^X\(\/\/\)[^/].*/{ s//\1/; q; }
38939 - /^X\(\/\/\)$/{ s//\1/; q; }
38940 - /^X\(\/\).*/{ s//\1/; q; }
38941 - s/.*/./; q'`/stamp-h$_am_stamp_count
38942 -done
38943 -_ACEOF
38944 -cat >>$CONFIG_STATUS <<\_ACEOF
38945 -
38946 -#
38947 -# CONFIG_COMMANDS section.
38948 -#
38949 -for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
38950 - ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
38951 - ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
38952 - ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
38953 -$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
38954 - X"$ac_dest" : 'X\(//\)[^/]' \| \
38955 - X"$ac_dest" : 'X\(//\)$' \| \
38956 - X"$ac_dest" : 'X\(/\)' \| \
38957 - . : '\(.\)' 2>/dev/null ||
38958 -echo X"$ac_dest" |
38959 - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
38960 - /^X\(\/\/\)[^/].*/{ s//\1/; q; }
38961 - /^X\(\/\/\)$/{ s//\1/; q; }
38962 - /^X\(\/\).*/{ s//\1/; q; }
38963 - s/.*/./; q'`
38964 - { if $as_mkdir_p; then
38965 - mkdir -p "$ac_dir"
38966 - else
38967 - as_dir="$ac_dir"
38968 - as_dirs=
38969 - while test ! -d "$as_dir"; do
38970 - as_dirs="$as_dir $as_dirs"
38971 - as_dir=`(dirname "$as_dir") 2>/dev/null ||
38972 -$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
38973 - X"$as_dir" : 'X\(//\)[^/]' \| \
38974 - X"$as_dir" : 'X\(//\)$' \| \
38975 - X"$as_dir" : 'X\(/\)' \| \
38976 - . : '\(.\)' 2>/dev/null ||
38977 -echo X"$as_dir" |
38978 - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
38979 - /^X\(\/\/\)[^/].*/{ s//\1/; q; }
38980 - /^X\(\/\/\)$/{ s//\1/; q; }
38981 - /^X\(\/\).*/{ s//\1/; q; }
38982 - s/.*/./; q'`
38983 - done
38984 - test ! -n "$as_dirs" || mkdir $as_dirs
38985 - fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
38986 -echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
38987 - { (exit 1); exit 1; }; }; }
38988 -
38989 - ac_builddir=.
38990 -
38991 -if test "$ac_dir" != .; then
38992 - ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
38993 - # A "../" for each directory in $ac_dir_suffix.
38994 - ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
38995 -else
38996 - ac_dir_suffix= ac_top_builddir=
38997 -fi
38998 -
38999 -case $srcdir in
39000 - .) # No --srcdir option. We are building in place.
39001 - ac_srcdir=.
39002 - if test -z "$ac_top_builddir"; then
39003 - ac_top_srcdir=.
39004 - else
39005 - ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
39006 - fi ;;
39007 - [\\/]* | ?:[\\/]* ) # Absolute path.
39008 - ac_srcdir=$srcdir$ac_dir_suffix;
39009 - ac_top_srcdir=$srcdir ;;
39010 - *) # Relative path.
39011 - ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
39012 - ac_top_srcdir=$ac_top_builddir$srcdir ;;
39013 -esac
39014 + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
39015 + s//\1/
39016 + q
39017 + }
39018 + /^X\(\/\/\)[^/].*/{
39019 + s//\1/
39020 + q
39021 + }
39022 + /^X\(\/\/\)$/{
39023 + s//\1/
39024 + q
39025 + }
39026 + /^X\(\/\).*/{
39027 + s//\1/
39028 + q
39029 + }
39030 + s/.*/./; q'`/stamp-h$_am_stamp_count
39031 + ;;
39032
39033 -# Do not use `cd foo && pwd` to compute absolute paths, because
39034 -# the directories may not exist.
39035 -case `pwd` in
39036 -.) ac_abs_builddir="$ac_dir";;
39037 -*)
39038 - case "$ac_dir" in
39039 - .) ac_abs_builddir=`pwd`;;
39040 - [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
39041 - *) ac_abs_builddir=`pwd`/"$ac_dir";;
39042 - esac;;
39043 -esac
39044 -case $ac_abs_builddir in
39045 -.) ac_abs_top_builddir=${ac_top_builddir}.;;
39046 -*)
39047 - case ${ac_top_builddir}. in
39048 - .) ac_abs_top_builddir=$ac_abs_builddir;;
39049 - [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
39050 - *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
39051 - esac;;
39052 -esac
39053 -case $ac_abs_builddir in
39054 -.) ac_abs_srcdir=$ac_srcdir;;
39055 -*)
39056 - case $ac_srcdir in
39057 - .) ac_abs_srcdir=$ac_abs_builddir;;
39058 - [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
39059 - *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
39060 - esac;;
39061 -esac
39062 -case $ac_abs_builddir in
39063 -.) ac_abs_top_srcdir=$ac_top_srcdir;;
39064 -*)
39065 - case $ac_top_srcdir in
39066 - .) ac_abs_top_srcdir=$ac_abs_builddir;;
39067 - [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
39068 - *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
39069 - esac;;
39070 -esac
39071 + :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
39072 +echo "$as_me: executing $ac_file commands" >&6;}
39073 + ;;
39074 + esac
39075
39076
39077 - { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
39078 -echo "$as_me: executing $ac_dest commands" >&6;}
39079 - case $ac_dest in
39080 - depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
39081 + case $ac_file$ac_mode in
39082 + "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
39083 # Strip MF so we end up with the name of the file.
39084 mf=`echo "$mf" | sed -e 's/:.*$//'`
39085 # Check whether this is an Automake generated Makefile or not.
39086 @@ -12180,18 +12493,29 @@ echo "$as_me: executing $ac_dest command
39087 # each Makefile.in and add a new line on top of each file to say so.
39088 # So let's grep whole file.
39089 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
39090 - dirpart=`(dirname "$mf") 2>/dev/null ||
39091 + dirpart=`$as_dirname -- "$mf" ||
39092 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
39093 X"$mf" : 'X\(//\)[^/]' \| \
39094 X"$mf" : 'X\(//\)$' \| \
39095 - X"$mf" : 'X\(/\)' \| \
39096 - . : '\(.\)' 2>/dev/null ||
39097 + X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
39098 echo X"$mf" |
39099 - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
39100 - /^X\(\/\/\)[^/].*/{ s//\1/; q; }
39101 - /^X\(\/\/\)$/{ s//\1/; q; }
39102 - /^X\(\/\).*/{ s//\1/; q; }
39103 - s/.*/./; q'`
39104 + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
39105 + s//\1/
39106 + q
39107 + }
39108 + /^X\(\/\/\)[^/].*/{
39109 + s//\1/
39110 + q
39111 + }
39112 + /^X\(\/\/\)$/{
39113 + s//\1/
39114 + q
39115 + }
39116 + /^X\(\/\).*/{
39117 + s//\1/
39118 + q
39119 + }
39120 + s/.*/./; q'`
39121 else
39122 continue
39123 fi
39124 @@ -12213,58 +12537,84 @@ echo X"$mf" |
39125 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
39126 # Make sure the directory exists.
39127 test -f "$dirpart/$file" && continue
39128 - fdir=`(dirname "$file") 2>/dev/null ||
39129 + fdir=`$as_dirname -- "$file" ||
39130 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
39131 X"$file" : 'X\(//\)[^/]' \| \
39132 X"$file" : 'X\(//\)$' \| \
39133 - X"$file" : 'X\(/\)' \| \
39134 - . : '\(.\)' 2>/dev/null ||
39135 + X"$file" : 'X\(/\)' \| . 2>/dev/null ||
39136 echo X"$file" |
39137 - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
39138 - /^X\(\/\/\)[^/].*/{ s//\1/; q; }
39139 - /^X\(\/\/\)$/{ s//\1/; q; }
39140 - /^X\(\/\).*/{ s//\1/; q; }
39141 - s/.*/./; q'`
39142 - { if $as_mkdir_p; then
39143 - mkdir -p $dirpart/$fdir
39144 - else
39145 - as_dir=$dirpart/$fdir
39146 + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
39147 + s//\1/
39148 + q
39149 + }
39150 + /^X\(\/\/\)[^/].*/{
39151 + s//\1/
39152 + q
39153 + }
39154 + /^X\(\/\/\)$/{
39155 + s//\1/
39156 + q
39157 + }
39158 + /^X\(\/\).*/{
39159 + s//\1/
39160 + q
39161 + }
39162 + s/.*/./; q'`
39163 + { as_dir=$dirpart/$fdir
39164 + case $as_dir in #(
39165 + -*) as_dir=./$as_dir;;
39166 + esac
39167 + test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
39168 as_dirs=
39169 - while test ! -d "$as_dir"; do
39170 - as_dirs="$as_dir $as_dirs"
39171 - as_dir=`(dirname "$as_dir") 2>/dev/null ||
39172 + while :; do
39173 + case $as_dir in #(
39174 + *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
39175 + *) as_qdir=$as_dir;;
39176 + esac
39177 + as_dirs="'$as_qdir' $as_dirs"
39178 + as_dir=`$as_dirname -- "$as_dir" ||
39179 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
39180 X"$as_dir" : 'X\(//\)[^/]' \| \
39181 X"$as_dir" : 'X\(//\)$' \| \
39182 - X"$as_dir" : 'X\(/\)' \| \
39183 - . : '\(.\)' 2>/dev/null ||
39184 + X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
39185 echo X"$as_dir" |
39186 - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
39187 - /^X\(\/\/\)[^/].*/{ s//\1/; q; }
39188 - /^X\(\/\/\)$/{ s//\1/; q; }
39189 - /^X\(\/\).*/{ s//\1/; q; }
39190 - s/.*/./; q'`
39191 + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
39192 + s//\1/
39193 + q
39194 + }
39195 + /^X\(\/\/\)[^/].*/{
39196 + s//\1/
39197 + q
39198 + }
39199 + /^X\(\/\/\)$/{
39200 + s//\1/
39201 + q
39202 + }
39203 + /^X\(\/\).*/{
39204 + s//\1/
39205 + q
39206 + }
39207 + s/.*/./; q'`
39208 + test -d "$as_dir" && break
39209 done
39210 - test ! -n "$as_dirs" || mkdir $as_dirs
39211 - fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
39212 -echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
39213 + test -z "$as_dirs" || eval "mkdir $as_dirs"
39214 + } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
39215 +echo "$as_me: error: cannot create directory $as_dir" >&2;}
39216 { (exit 1); exit 1; }; }; }
39217 -
39218 # echo "creating $dirpart/$file"
39219 echo '# dummy' > "$dirpart/$file"
39220 done
39221 done
39222 ;;
39223 - default )
39224 + "default":C)
39225 case "x$CONFIG_FILES" in
39226 *) sed -e '/POTFILES =/r po/POTFILES' po/Makefile.in > po/Makefile ;;
39227 esac
39228 ;;
39229 +
39230 esac
39231 -done
39232 -_ACEOF
39233 +done # for ac_tag
39234
39235 -cat >>$CONFIG_STATUS <<\_ACEOF
39236
39237 { (exit 0); exit 0; }
39238 _ACEOF
39239 diff -Nrup binutils-2.17/binutils/doc/binutils.info binutils-2.17.atmel.1.3.0/binutils/doc/binutils.info
39240 --- binutils-2.17/binutils/doc/binutils.info 2006-06-23 20:19:48.000000000 +0200
39241 +++ binutils-2.17.atmel.1.3.0/binutils/doc/binutils.info 2007-03-26 10:34:44.000000000 +0200
39242 @@ -1,5 +1,7 @@
39243 -This is ../.././binutils/doc/binutils.info, produced by makeinfo
39244 -version 4.8 from ../.././binutils/doc/binutils.texi.
39245 +This is
39246 +/home/hcegtvedt/svnwork/tools/T0243-GNU_Toolchain/50-Source/binutils/trunk/binutils/doc/binutils.info,
39247 +produced by makeinfo version 4.8 from
39248 +/home/hcegtvedt/svnwork/tools/T0243-GNU_Toolchain/50-Source/binutils/trunk/binutils/doc/binutils.texi.
39249
39250 START-INFO-DIR-ENTRY
39251 * Binutils: (binutils). The GNU binary utilities.
39252 @@ -3803,33 +3805,33 @@ Index
39253
39254 \1f
39255 Tag Table:
39256 -Node: Top\7f1751
39257 -Node: ar\7f3304
39258 -Node: ar cmdline\7f5482
39259 -Node: ar scripts\7f13625
39260 -Node: nm\7f19313
39261 -Node: objcopy\7f27509
39262 -Node: objdump\7f50561
39263 -Node: ranlib\7f65474
39264 -Node: size\7f66229
39265 -Node: strings\7f69076
39266 -Node: strip\7f71426
39267 -Node: c++filt\7f76905
39268 -Ref: c++filt-Footnote-1\7f81833
39269 -Node: addr2line\7f81939
39270 -Node: nlmconv\7f85210
39271 -Node: windres\7f87816
39272 -Node: dlltool\7f93549
39273 -Node: def file format\7f104387
39274 -Node: readelf\7f106125
39275 -Node: Common Options\7f110833
39276 -Node: Selecting The Target System\7f111873
39277 -Node: Target Selection\7f112805
39278 -Node: Architecture Selection\7f114787
39279 -Node: Reporting Bugs\7f115615
39280 -Node: Bug Criteria\7f116394
39281 -Node: Bug Reporting\7f116947
39282 -Node: GNU Free Documentation License\7f124041
39283 -Node: Index\7f143773
39284 +Node: Top\7f1885
39285 +Node: ar\7f3438
39286 +Node: ar cmdline\7f5616
39287 +Node: ar scripts\7f13759
39288 +Node: nm\7f19447
39289 +Node: objcopy\7f27643
39290 +Node: objdump\7f50695
39291 +Node: ranlib\7f65608
39292 +Node: size\7f66363
39293 +Node: strings\7f69210
39294 +Node: strip\7f71560
39295 +Node: c++filt\7f77039
39296 +Ref: c++filt-Footnote-1\7f81967
39297 +Node: addr2line\7f82073
39298 +Node: nlmconv\7f85344
39299 +Node: windres\7f87950
39300 +Node: dlltool\7f93683
39301 +Node: def file format\7f104521
39302 +Node: readelf\7f106259
39303 +Node: Common Options\7f110967
39304 +Node: Selecting The Target System\7f112007
39305 +Node: Target Selection\7f112939
39306 +Node: Architecture Selection\7f114921
39307 +Node: Reporting Bugs\7f115749
39308 +Node: Bug Criteria\7f116528
39309 +Node: Bug Reporting\7f117081
39310 +Node: GNU Free Documentation License\7f124175
39311 +Node: Index\7f143907
39312 \1f
39313 End Tag Table
39314 diff -Nrup binutils-2.17/binutils/doc/Makefile.in binutils-2.17.atmel.1.3.0/binutils/doc/Makefile.in
39315 --- binutils-2.17/binutils/doc/Makefile.in 2006-06-03 06:45:50.000000000 +0200
39316 +++ binutils-2.17.atmel.1.3.0/binutils/doc/Makefile.in 2007-03-26 10:32:10.000000000 +0200
39317 @@ -109,6 +109,7 @@ EXEEXT = @EXEEXT@
39318 EXEEXT_FOR_BUILD = @EXEEXT_FOR_BUILD@
39319 GMOFILES = @GMOFILES@
39320 GMSGFMT = @GMSGFMT@
39321 +GREP = @GREP@
39322 GT_NO = @GT_NO@
39323 GT_YES = @GT_YES@
39324 HDEFINES = @HDEFINES@
39325 @@ -159,9 +160,8 @@ VERSION = @VERSION@
39326 WARN_CFLAGS = @WARN_CFLAGS@
39327 XGETTEXT = @XGETTEXT@
39328 YACC = @YACC@
39329 +YFLAGS = @YFLAGS@
39330 ac_ct_CC = @ac_ct_CC@
39331 -ac_ct_RANLIB = @ac_ct_RANLIB@
39332 -ac_ct_STRIP = @ac_ct_STRIP@
39333 am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
39334 am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
39335 am__include = @am__include@
39336 @@ -178,6 +178,7 @@ build_vendor = @build_vendor@
39337 datadir = @datadir@
39338 datarootdir = @datarootdir@
39339 docdir = @docdir@
39340 +dvidir = @dvidir@
39341 exec_prefix = @exec_prefix@
39342 host = @host@
39343 host_alias = @host_alias@
39344 @@ -191,12 +192,15 @@ install_sh = @install_sh@
39345 l = @l@
39346 libdir = @libdir@
39347 libexecdir = @libexecdir@
39348 +localedir = @localedir@
39349 localstatedir = @localstatedir@
39350 mandir = @mandir@
39351 mkdir_p = @mkdir_p@
39352 oldincludedir = @oldincludedir@
39353 +pdfdir = @pdfdir@
39354 prefix = @prefix@
39355 program_transform_name = @program_transform_name@
39356 +psdir = @psdir@
39357 sbindir = @sbindir@
39358 sharedstatedir = @sharedstatedir@
39359 sysconfdir = @sysconfdir@
39360 @@ -368,10 +372,13 @@ dist-info: $(INFO_DEPS)
39361 $(srcdir)/*) base=`echo "$$base" | sed "s|^$$srcdirstrip/||"`;; \
39362 esac; \
39363 if test -f $$base; then d=.; else d=$(srcdir); fi; \
39364 - for file in $$d/$$base*; do \
39365 - relfile=`expr "$$file" : "$$d/\(.*\)"`; \
39366 - test -f $(distdir)/$$relfile || \
39367 - cp -p $$file $(distdir)/$$relfile; \
39368 + base_i=`echo "$$base" | sed 's|\.info$$||;s|$$|.i|'`; \
39369 + for file in $$d/$$base $$d/$$base-[0-9] $$d/$$base-[0-9][0-9] $$d/$$base_i[0-9] $$d/$$base_i[0-9][0-9]; do \
39370 + if test -f $$file; then \
39371 + relfile=`expr "$$file" : "$$d/\(.*\)"`; \
39372 + test -f $(distdir)/$$relfile || \
39373 + cp -p $$file $(distdir)/$$relfile; \
39374 + else :; fi; \
39375 done; \
39376 done
39377
39378 diff -Nrup binutils-2.17/binutils/Makefile.am binutils-2.17.atmel.1.3.0/binutils/Makefile.am
39379 --- binutils-2.17/binutils/Makefile.am 2006-04-06 23:49:26.000000000 +0200
39380 +++ binutils-2.17.atmel.1.3.0/binutils/Makefile.am 2007-03-26 10:20:22.000000000 +0200
39381 @@ -511,7 +511,7 @@ readelf.o: readelf.c dwarf.h ../bfd/bfd.
39382 $(INCDIR)/symcat.h $(INCDIR)/elf/dwarf2.h $(INCDIR)/elf/common.h \
39383 $(INCDIR)/elf/external.h $(INCDIR)/elf/internal.h $(INCDIR)/elf/alpha.h \
39384 $(INCDIR)/elf/reloc-macros.h $(INCDIR)/elf/arc.h $(INCDIR)/elf/arm.h \
39385 - $(INCDIR)/elf/avr.h $(INCDIR)/elf/bfin.h $(INCDIR)/elf/cris.h \
39386 + $(INCDIR)/elf/avr.h $(INCDIR)/elf/avr32.h $(INCDIR)/elf/bfin.h $(INCDIR)/elf/cris.h \
39387 $(INCDIR)/elf/d10v.h $(INCDIR)/elf/d30v.h $(INCDIR)/elf/dlx.h \
39388 $(INCDIR)/elf/fr30.h $(INCDIR)/elf/frv.h $(INCDIR)/elf/h8.h \
39389 $(INCDIR)/elf/hppa.h $(INCDIR)/elf/i386.h $(INCDIR)/elf/i370.h \
39390 diff -Nrup binutils-2.17/binutils/Makefile.in binutils-2.17.atmel.1.3.0/binutils/Makefile.in
39391 --- binutils-2.17/binutils/Makefile.in 2006-06-02 04:21:08.000000000 +0200
39392 +++ binutils-2.17.atmel.1.3.0/binutils/Makefile.in 2007-03-26 10:32:10.000000000 +0200
39393 @@ -266,6 +266,7 @@ EXEEXT = @EXEEXT@
39394 EXEEXT_FOR_BUILD = @EXEEXT_FOR_BUILD@
39395 GMOFILES = @GMOFILES@
39396 GMSGFMT = @GMSGFMT@
39397 +GREP = @GREP@
39398 GT_NO = @GT_NO@
39399 GT_YES = @GT_YES@
39400 HDEFINES = @HDEFINES@
39401 @@ -316,9 +317,8 @@ VERSION = @VERSION@
39402 WARN_CFLAGS = @WARN_CFLAGS@
39403 XGETTEXT = @XGETTEXT@
39404 YACC = `if [ -f ../bison/bison ]; then echo ../bison/bison -y -L$(srcdir)/../bison/; else echo @YACC@; fi`
39405 +YFLAGS = -d
39406 ac_ct_CC = @ac_ct_CC@
39407 -ac_ct_RANLIB = @ac_ct_RANLIB@
39408 -ac_ct_STRIP = @ac_ct_STRIP@
39409 am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
39410 am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
39411 am__include = @am__include@
39412 @@ -335,6 +335,7 @@ build_vendor = @build_vendor@
39413 datadir = @datadir@
39414 datarootdir = @datarootdir@
39415 docdir = @docdir@
39416 +dvidir = @dvidir@
39417 exec_prefix = @exec_prefix@
39418 host = @host@
39419 host_alias = @host_alias@
39420 @@ -348,12 +349,15 @@ install_sh = @install_sh@
39421 l = @l@
39422 libdir = @libdir@
39423 libexecdir = @libexecdir@
39424 +localedir = @localedir@
39425 localstatedir = @localstatedir@
39426 mandir = @mandir@
39427 mkdir_p = @mkdir_p@
39428 oldincludedir = @oldincludedir@
39429 +pdfdir = @pdfdir@
39430 prefix = @prefix@
39431 program_transform_name = @program_transform_name@
39432 +psdir = @psdir@
39433 sbindir = @sbindir@
39434 sharedstatedir = @sharedstatedir@
39435 sysconfdir = @sysconfdir@
39436 @@ -365,7 +369,6 @@ target_vendor = @target_vendor@
39437 AUTOMAKE_OPTIONS = cygnus dejagnu
39438 SUBDIRS = doc po
39439 tooldir = $(exec_prefix)/$(target_alias)
39440 -YFLAGS = -d
39441 AM_CFLAGS = $(WARN_CFLAGS)
39442
39443 # these two are almost the same program
39444 @@ -1264,7 +1267,7 @@ readelf.o: readelf.c dwarf.h ../bfd/bfd.
39445 $(INCDIR)/symcat.h $(INCDIR)/elf/dwarf2.h $(INCDIR)/elf/common.h \
39446 $(INCDIR)/elf/external.h $(INCDIR)/elf/internal.h $(INCDIR)/elf/alpha.h \
39447 $(INCDIR)/elf/reloc-macros.h $(INCDIR)/elf/arc.h $(INCDIR)/elf/arm.h \
39448 - $(INCDIR)/elf/avr.h $(INCDIR)/elf/bfin.h $(INCDIR)/elf/cris.h \
39449 + $(INCDIR)/elf/avr.h $(INCDIR)/elf/avr32.h $(INCDIR)/elf/bfin.h $(INCDIR)/elf/cris.h \
39450 $(INCDIR)/elf/d10v.h $(INCDIR)/elf/d30v.h $(INCDIR)/elf/dlx.h \
39451 $(INCDIR)/elf/fr30.h $(INCDIR)/elf/frv.h $(INCDIR)/elf/h8.h \
39452 $(INCDIR)/elf/hppa.h $(INCDIR)/elf/i386.h $(INCDIR)/elf/i370.h \
39453 diff -Nrup binutils-2.17/binutils/readelf.c binutils-2.17.atmel.1.3.0/binutils/readelf.c
39454 --- binutils-2.17/binutils/readelf.c 2006-03-10 18:20:28.000000000 +0100
39455 +++ binutils-2.17.atmel.1.3.0/binutils/readelf.c 2007-03-26 10:20:22.000000000 +0200
39456 @@ -71,6 +71,7 @@
39457 #include "elf/arc.h"
39458 #include "elf/arm.h"
39459 #include "elf/avr.h"
39460 +#include "elf/avr32.h"
39461 #include "elf/bfin.h"
39462 #include "elf/cris.h"
39463 #include "elf/d10v.h"
39464 @@ -590,6 +591,7 @@ guess_is_rela (unsigned long e_machine)
39465 case EM_MCORE:
39466 case EM_IA_64:
39467 case EM_AVR:
39468 + case EM_AVR32:
39469 case EM_AVR_OLD:
39470 case EM_CRIS:
39471 case EM_860:
39472 @@ -959,6 +961,10 @@ dump_relocations (FILE *file,
39473 rtype = elf_avr_reloc_type (type);
39474 break;
39475
39476 + case EM_AVR32:
39477 + rtype = elf_avr32_reloc_type (type);
39478 + break;
39479 +
39480 case EM_OLD_SPARCV9:
39481 case EM_SPARC32PLUS:
39482 case EM_SPARCV9:
39483 @@ -1670,6 +1676,7 @@ get_machine_name (unsigned e_machine)
39484 case EM_VAX: return "Digital VAX";
39485 case EM_AVR_OLD:
39486 case EM_AVR: return "Atmel AVR 8-bit microcontroller";
39487 + case EM_AVR32: return "Atmel AVR32";
39488 case EM_CRIS: return "Axis Communications 32-bit embedded processor";
39489 case EM_JAVELIN: return "Infineon Technologies 32-bit embedded cpu";
39490 case EM_FIREPATH: return "Element 14 64-bit DSP processor";
39491 diff -Nrup binutils-2.17/configure binutils-2.17.atmel.1.3.0/configure
39492 --- binutils-2.17/configure 2006-04-06 23:49:25.000000000 +0200
39493 +++ binutils-2.17.atmel.1.3.0/configure 2007-03-26 10:30:30.000000000 +0200
39494 @@ -899,7 +899,7 @@ host_libs="intl mmalloc libiberty opcode
39495 # know that we are building the simulator.
39496 # binutils, gas and ld appear in that order because it makes sense to run
39497 # "make check" in that particular order.
39498 -host_tools="texinfo byacc flex bison binutils gas ld fixincludes gcc sid sim gdb make patch prms send-pr gprof etc expect dejagnu ash bash bzip2 m4 autoconf automake libtool diff rcs fileutils shellutils time textutils wdiff find uudecode hello tar gzip indent recode release sed utils guile perl gawk findutils gettext zip fastjar gnattools"
39499 +host_tools="byacc flex bison binutils gas ld fixincludes gcc sid sim gdb make patch prms send-pr gprof etc expect dejagnu ash bash bzip2 m4 autoconf automake libtool diff rcs fileutils shellutils time textutils wdiff find uudecode hello tar gzip indent recode release sed utils guile perl gawk findutils gettext zip fastjar gnattools"
39500
39501 # libgcj represents the runtime libraries only used by gcj.
39502 libgcj="target-libffi \
39503 @@ -1064,6 +1064,9 @@ unsupported_languages=
39504 # exist yet.
39505
39506 case "${host}" in
39507 + avr32*-*-*)
39508 + noconfigdirs="$noconfigdirs readline gdb"
39509 + ;;
39510 hppa*64*-*-*)
39511 noconfigdirs="$noconfigdirs byacc"
39512 ;;
39513 @@ -1863,7 +1866,7 @@ else
39514 # Extract the first word of "gcc", so it can be a program name with args.
39515 set dummy gcc; ac_word=$2
39516 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
39517 -echo "configure:1867: checking for $ac_word" >&5
39518 +echo "configure:1870: checking for $ac_word" >&5
39519 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
39520 echo $ac_n "(cached) $ac_c" 1>&6
39521 else
39522 @@ -1893,7 +1896,7 @@ if test -z "$CC"; then
39523 # Extract the first word of "cc", so it can be a program name with args.
39524 set dummy cc; ac_word=$2
39525 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
39526 -echo "configure:1897: checking for $ac_word" >&5
39527 +echo "configure:1900: checking for $ac_word" >&5
39528 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
39529 echo $ac_n "(cached) $ac_c" 1>&6
39530 else
39531 @@ -1944,7 +1947,7 @@ fi
39532 # Extract the first word of "cl", so it can be a program name with args.
39533 set dummy cl; ac_word=$2
39534 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
39535 -echo "configure:1948: checking for $ac_word" >&5
39536 +echo "configure:1951: checking for $ac_word" >&5
39537 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
39538 echo $ac_n "(cached) $ac_c" 1>&6
39539 else
39540 @@ -1976,7 +1979,7 @@ fi
39541 fi
39542
39543 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
39544 -echo "configure:1980: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
39545 +echo "configure:1983: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
39546
39547 ac_ext=c
39548 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
39549 @@ -1987,12 +1990,12 @@ cross_compiling=$ac_cv_prog_cc_cross
39550
39551 cat > conftest.$ac_ext << EOF
39552
39553 -#line 1991 "configure"
39554 +#line 1994 "configure"
39555 #include "confdefs.h"
39556
39557 main(){return(0);}
39558 EOF
39559 -if { (eval echo configure:1996: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
39560 +if { (eval echo configure:1999: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
39561 ac_cv_prog_cc_works=yes
39562 # If we can't run a trivial program, we are probably using a cross compiler.
39563 if (./conftest; exit) 2>/dev/null; then
39564 @@ -2018,12 +2021,12 @@ if test $ac_cv_prog_cc_works = no; then
39565 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
39566 fi
39567 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
39568 -echo "configure:2022: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
39569 +echo "configure:2025: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
39570 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
39571 cross_compiling=$ac_cv_prog_cc_cross
39572
39573 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
39574 -echo "configure:2027: checking whether we are using GNU C" >&5
39575 +echo "configure:2030: checking whether we are using GNU C" >&5
39576 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
39577 echo $ac_n "(cached) $ac_c" 1>&6
39578 else
39579 @@ -2032,7 +2035,7 @@ else
39580 yes;
39581 #endif
39582 EOF
39583 -if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2036: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
39584 +if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2039: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
39585 ac_cv_prog_gcc=yes
39586 else
39587 ac_cv_prog_gcc=no
39588 @@ -2051,7 +2054,7 @@ ac_test_CFLAGS="${CFLAGS+set}"
39589 ac_save_CFLAGS="$CFLAGS"
39590 CFLAGS=
39591 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
39592 -echo "configure:2055: checking whether ${CC-cc} accepts -g" >&5
39593 +echo "configure:2058: checking whether ${CC-cc} accepts -g" >&5
39594 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
39595 echo $ac_n "(cached) $ac_c" 1>&6
39596 else
39597 @@ -2118,7 +2121,7 @@ fi
39598 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
39599 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
39600 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
39601 -echo "configure:2122: checking for $ac_word" >&5
39602 +echo "configure:2125: checking for $ac_word" >&5
39603 if eval "test \"`echo '$''{'ac_cv_prog_GNATBIND'+set}'`\" = set"; then
39604 echo $ac_n "(cached) $ac_c" 1>&6
39605 else
39606 @@ -2150,7 +2153,7 @@ if test -n "$ac_tool_prefix"; then
39607 # Extract the first word of "gnatbind", so it can be a program name with args.
39608 set dummy gnatbind; ac_word=$2
39609 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
39610 -echo "configure:2154: checking for $ac_word" >&5
39611 +echo "configure:2157: checking for $ac_word" >&5
39612 if eval "test \"`echo '$''{'ac_cv_prog_GNATBIND'+set}'`\" = set"; then
39613 echo $ac_n "(cached) $ac_c" 1>&6
39614 else
39615 @@ -2183,7 +2186,7 @@ fi
39616 fi
39617
39618 echo $ac_n "checking whether compiler driver understands Ada""... $ac_c" 1>&6
39619 -echo "configure:2187: checking whether compiler driver understands Ada" >&5
39620 +echo "configure:2190: checking whether compiler driver understands Ada" >&5
39621 if eval "test \"`echo '$''{'acx_cv_cc_gcc_supports_ada'+set}'`\" = set"; then
39622 echo $ac_n "(cached) $ac_c" 1>&6
39623 else
39624 @@ -2215,7 +2218,7 @@ else
39625 fi
39626
39627 echo $ac_n "checking how to compare bootstrapped objects""... $ac_c" 1>&6
39628 -echo "configure:2219: checking how to compare bootstrapped objects" >&5
39629 +echo "configure:2222: checking how to compare bootstrapped objects" >&5
39630 if eval "test \"`echo '$''{'gcc_cv_prog_cmp_skip'+set}'`\" = set"; then
39631 echo $ac_n "(cached) $ac_c" 1>&6
39632 else
39633 @@ -2313,9 +2316,9 @@ saved_CFLAGS="$CFLAGS"
39634 CFLAGS="$CFLAGS $gmpinc"
39635 # Check GMP actually works
39636 echo $ac_n "checking for correct version of gmp.h""... $ac_c" 1>&6
39637 -echo "configure:2317: checking for correct version of gmp.h" >&5
39638 +echo "configure:2320: checking for correct version of gmp.h" >&5
39639 cat > conftest.$ac_ext <<EOF
39640 -#line 2319 "configure"
39641 +#line 2322 "configure"
39642 #include "confdefs.h"
39643 #include "gmp.h"
39644 int main() {
39645 @@ -2326,7 +2329,7 @@ choke me
39646
39647 ; return 0; }
39648 EOF
39649 -if { (eval echo configure:2330: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
39650 +if { (eval echo configure:2333: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
39651 rm -rf conftest*
39652 echo "$ac_t""yes" 1>&6
39653 else
39654 @@ -2339,12 +2342,12 @@ rm -f conftest*
39655
39656 if test x"$have_gmp" = xyes; then
39657 echo $ac_n "checking for MPFR""... $ac_c" 1>&6
39658 -echo "configure:2343: checking for MPFR" >&5
39659 +echo "configure:2346: checking for MPFR" >&5
39660
39661 saved_LIBS="$LIBS"
39662 LIBS="$LIBS $gmplibs"
39663 cat > conftest.$ac_ext <<EOF
39664 -#line 2348 "configure"
39665 +#line 2351 "configure"
39666 #include "confdefs.h"
39667 #include <gmp.h>
39668 #include <mpfr.h>
39669 @@ -2352,7 +2355,7 @@ int main() {
39670 mpfr_t n; mpfr_init(n);
39671 ; return 0; }
39672 EOF
39673 -if { (eval echo configure:2356: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
39674 +if { (eval echo configure:2359: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
39675 rm -rf conftest*
39676 echo "$ac_t""yes" 1>&6
39677 else
39678 @@ -3403,7 +3406,7 @@ do
39679 # Extract the first word of "$ac_prog", so it can be a program name with args.
39680 set dummy $ac_prog; ac_word=$2
39681 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
39682 -echo "configure:3407: checking for $ac_word" >&5
39683 +echo "configure:3410: checking for $ac_word" >&5
39684 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
39685 echo $ac_n "(cached) $ac_c" 1>&6
39686 else
39687 @@ -3443,7 +3446,7 @@ do
39688 # Extract the first word of "$ac_prog", so it can be a program name with args.
39689 set dummy $ac_prog; ac_word=$2
39690 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
39691 -echo "configure:3447: checking for $ac_word" >&5
39692 +echo "configure:3450: checking for $ac_word" >&5
39693 if eval "test \"`echo '$''{'ac_cv_prog_BISON'+set}'`\" = set"; then
39694 echo $ac_n "(cached) $ac_c" 1>&6
39695 else
39696 @@ -3482,7 +3485,7 @@ do
39697 # Extract the first word of "$ac_prog", so it can be a program name with args.
39698 set dummy $ac_prog; ac_word=$2
39699 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
39700 -echo "configure:3486: checking for $ac_word" >&5
39701 +echo "configure:3489: checking for $ac_word" >&5
39702 if eval "test \"`echo '$''{'ac_cv_prog_M4'+set}'`\" = set"; then
39703 echo $ac_n "(cached) $ac_c" 1>&6
39704 else
39705 @@ -3521,7 +3524,7 @@ do
39706 # Extract the first word of "$ac_prog", so it can be a program name with args.
39707 set dummy $ac_prog; ac_word=$2
39708 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
39709 -echo "configure:3525: checking for $ac_word" >&5
39710 +echo "configure:3528: checking for $ac_word" >&5
39711 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
39712 echo $ac_n "(cached) $ac_c" 1>&6
39713 else
39714 @@ -3561,7 +3564,7 @@ do
39715 # Extract the first word of "$ac_prog", so it can be a program name with args.
39716 set dummy $ac_prog; ac_word=$2
39717 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
39718 -echo "configure:3565: checking for $ac_word" >&5
39719 +echo "configure:3568: checking for $ac_word" >&5
39720 if eval "test \"`echo '$''{'ac_cv_prog_FLEX'+set}'`\" = set"; then
39721 echo $ac_n "(cached) $ac_c" 1>&6
39722 else
39723 @@ -3600,7 +3603,7 @@ do
39724 # Extract the first word of "$ac_prog", so it can be a program name with args.
39725 set dummy $ac_prog; ac_word=$2
39726 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
39727 -echo "configure:3604: checking for $ac_word" >&5
39728 +echo "configure:3607: checking for $ac_word" >&5
39729 if eval "test \"`echo '$''{'ac_cv_prog_MAKEINFO'+set}'`\" = set"; then
39730 echo $ac_n "(cached) $ac_c" 1>&6
39731 else
39732 @@ -3653,7 +3656,7 @@ do
39733 # Extract the first word of "$ac_prog", so it can be a program name with args.
39734 set dummy $ac_prog; ac_word=$2
39735 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
39736 -echo "configure:3657: checking for $ac_word" >&5
39737 +echo "configure:3660: checking for $ac_word" >&5
39738 if eval "test \"`echo '$''{'ac_cv_prog_EXPECT'+set}'`\" = set"; then
39739 echo $ac_n "(cached) $ac_c" 1>&6
39740 else
39741 @@ -3694,7 +3697,7 @@ do
39742 # Extract the first word of "$ac_prog", so it can be a program name with args.
39743 set dummy $ac_prog; ac_word=$2
39744 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
39745 -echo "configure:3698: checking for $ac_word" >&5
39746 +echo "configure:3701: checking for $ac_word" >&5
39747 if eval "test \"`echo '$''{'ac_cv_prog_RUNTEST'+set}'`\" = set"; then
39748 echo $ac_n "(cached) $ac_c" 1>&6
39749 else
39750 @@ -3742,7 +3745,7 @@ test -n "$target_alias" && ncn_target_to
39751 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
39752 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
39753 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
39754 -echo "configure:3746: checking for $ac_word" >&5
39755 +echo "configure:3749: checking for $ac_word" >&5
39756 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
39757 echo $ac_n "(cached) $ac_c" 1>&6
39758 else
39759 @@ -3773,7 +3776,7 @@ fi
39760 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
39761 set dummy ${ncn_progname}; ac_word=$2
39762 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
39763 -echo "configure:3777: checking for $ac_word" >&5
39764 +echo "configure:3780: checking for $ac_word" >&5
39765 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
39766 echo $ac_n "(cached) $ac_c" 1>&6
39767 else
39768 @@ -3817,7 +3820,7 @@ fi
39769 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
39770 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
39771 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
39772 -echo "configure:3821: checking for $ac_word" >&5
39773 +echo "configure:3824: checking for $ac_word" >&5
39774 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
39775 echo $ac_n "(cached) $ac_c" 1>&6
39776 else
39777 @@ -3848,7 +3851,7 @@ fi
39778 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
39779 set dummy ${ncn_progname}; ac_word=$2
39780 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
39781 -echo "configure:3852: checking for $ac_word" >&5
39782 +echo "configure:3855: checking for $ac_word" >&5
39783 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
39784 echo $ac_n "(cached) $ac_c" 1>&6
39785 else
39786 @@ -3892,7 +3895,7 @@ fi
39787 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
39788 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
39789 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
39790 -echo "configure:3896: checking for $ac_word" >&5
39791 +echo "configure:3899: checking for $ac_word" >&5
39792 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
39793 echo $ac_n "(cached) $ac_c" 1>&6
39794 else
39795 @@ -3923,7 +3926,7 @@ fi
39796 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
39797 set dummy ${ncn_progname}; ac_word=$2
39798 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
39799 -echo "configure:3927: checking for $ac_word" >&5
39800 +echo "configure:3930: checking for $ac_word" >&5
39801 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
39802 echo $ac_n "(cached) $ac_c" 1>&6
39803 else
39804 @@ -3967,7 +3970,7 @@ fi
39805 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
39806 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
39807 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
39808 -echo "configure:3971: checking for $ac_word" >&5
39809 +echo "configure:3974: checking for $ac_word" >&5
39810 if eval "test \"`echo '$''{'ac_cv_prog_LD'+set}'`\" = set"; then
39811 echo $ac_n "(cached) $ac_c" 1>&6
39812 else
39813 @@ -3998,7 +4001,7 @@ fi
39814 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
39815 set dummy ${ncn_progname}; ac_word=$2
39816 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
39817 -echo "configure:4002: checking for $ac_word" >&5
39818 +echo "configure:4005: checking for $ac_word" >&5
39819 if eval "test \"`echo '$''{'ac_cv_prog_LD'+set}'`\" = set"; then
39820 echo $ac_n "(cached) $ac_c" 1>&6
39821 else
39822 @@ -4042,7 +4045,7 @@ fi
39823 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
39824 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
39825 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
39826 -echo "configure:4046: checking for $ac_word" >&5
39827 +echo "configure:4049: checking for $ac_word" >&5
39828 if eval "test \"`echo '$''{'ac_cv_prog_LIPO'+set}'`\" = set"; then
39829 echo $ac_n "(cached) $ac_c" 1>&6
39830 else
39831 @@ -4073,7 +4076,7 @@ fi
39832 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
39833 set dummy ${ncn_progname}; ac_word=$2
39834 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
39835 -echo "configure:4077: checking for $ac_word" >&5
39836 +echo "configure:4080: checking for $ac_word" >&5
39837 if eval "test \"`echo '$''{'ac_cv_prog_LIPO'+set}'`\" = set"; then
39838 echo $ac_n "(cached) $ac_c" 1>&6
39839 else
39840 @@ -4117,7 +4120,7 @@ fi
39841 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
39842 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
39843 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
39844 -echo "configure:4121: checking for $ac_word" >&5
39845 +echo "configure:4124: checking for $ac_word" >&5
39846 if eval "test \"`echo '$''{'ac_cv_prog_NM'+set}'`\" = set"; then
39847 echo $ac_n "(cached) $ac_c" 1>&6
39848 else
39849 @@ -4148,7 +4151,7 @@ fi
39850 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
39851 set dummy ${ncn_progname}; ac_word=$2
39852 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
39853 -echo "configure:4152: checking for $ac_word" >&5
39854 +echo "configure:4155: checking for $ac_word" >&5
39855 if eval "test \"`echo '$''{'ac_cv_prog_NM'+set}'`\" = set"; then
39856 echo $ac_n "(cached) $ac_c" 1>&6
39857 else
39858 @@ -4192,7 +4195,7 @@ fi
39859 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
39860 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
39861 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
39862 -echo "configure:4196: checking for $ac_word" >&5
39863 +echo "configure:4199: checking for $ac_word" >&5
39864 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
39865 echo $ac_n "(cached) $ac_c" 1>&6
39866 else
39867 @@ -4223,7 +4226,7 @@ fi
39868 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
39869 set dummy ${ncn_progname}; ac_word=$2
39870 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
39871 -echo "configure:4227: checking for $ac_word" >&5
39872 +echo "configure:4230: checking for $ac_word" >&5
39873 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
39874 echo $ac_n "(cached) $ac_c" 1>&6
39875 else
39876 @@ -4262,7 +4265,7 @@ fi
39877 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
39878 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
39879 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
39880 -echo "configure:4266: checking for $ac_word" >&5
39881 +echo "configure:4269: checking for $ac_word" >&5
39882 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
39883 echo $ac_n "(cached) $ac_c" 1>&6
39884 else
39885 @@ -4293,7 +4296,7 @@ fi
39886 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
39887 set dummy ${ncn_progname}; ac_word=$2
39888 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
39889 -echo "configure:4297: checking for $ac_word" >&5
39890 +echo "configure:4300: checking for $ac_word" >&5
39891 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
39892 echo $ac_n "(cached) $ac_c" 1>&6
39893 else
39894 @@ -4332,7 +4335,7 @@ fi
39895 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
39896 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
39897 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
39898 -echo "configure:4336: checking for $ac_word" >&5
39899 +echo "configure:4339: checking for $ac_word" >&5
39900 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
39901 echo $ac_n "(cached) $ac_c" 1>&6
39902 else
39903 @@ -4363,7 +4366,7 @@ fi
39904 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
39905 set dummy ${ncn_progname}; ac_word=$2
39906 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
39907 -echo "configure:4367: checking for $ac_word" >&5
39908 +echo "configure:4370: checking for $ac_word" >&5
39909 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
39910 echo $ac_n "(cached) $ac_c" 1>&6
39911 else
39912 @@ -4407,7 +4410,7 @@ fi
39913 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
39914 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
39915 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
39916 -echo "configure:4411: checking for $ac_word" >&5
39917 +echo "configure:4414: checking for $ac_word" >&5
39918 if eval "test \"`echo '$''{'ac_cv_prog_OBJCOPY'+set}'`\" = set"; then
39919 echo $ac_n "(cached) $ac_c" 1>&6
39920 else
39921 @@ -4438,7 +4441,7 @@ fi
39922 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
39923 set dummy ${ncn_progname}; ac_word=$2
39924 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
39925 -echo "configure:4442: checking for $ac_word" >&5
39926 +echo "configure:4445: checking for $ac_word" >&5
39927 if eval "test \"`echo '$''{'ac_cv_prog_OBJCOPY'+set}'`\" = set"; then
39928 echo $ac_n "(cached) $ac_c" 1>&6
39929 else
39930 @@ -4482,7 +4485,7 @@ fi
39931 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
39932 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
39933 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
39934 -echo "configure:4486: checking for $ac_word" >&5
39935 +echo "configure:4489: checking for $ac_word" >&5
39936 if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP'+set}'`\" = set"; then
39937 echo $ac_n "(cached) $ac_c" 1>&6
39938 else
39939 @@ -4513,7 +4516,7 @@ fi
39940 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
39941 set dummy ${ncn_progname}; ac_word=$2
39942 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
39943 -echo "configure:4517: checking for $ac_word" >&5
39944 +echo "configure:4520: checking for $ac_word" >&5
39945 if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP'+set}'`\" = set"; then
39946 echo $ac_n "(cached) $ac_c" 1>&6
39947 else
39948 @@ -4577,7 +4580,7 @@ fi
39949 if test -n "$with_build_time_tools"; then
39950 for ncn_progname in cc gcc; do
39951 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
39952 -echo "configure:4581: checking for ${ncn_progname} in $with_build_time_tools" >&5
39953 +echo "configure:4584: checking for ${ncn_progname} in $with_build_time_tools" >&5
39954 if test -x $with_build_time_tools/${ncn_progname}; then
39955 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
39956 echo "$ac_t""yes" 1>&6
39957 @@ -4594,7 +4597,7 @@ if test -z "$ac_cv_prog_CC_FOR_TARGET";
39958 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
39959 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
39960 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
39961 -echo "configure:4598: checking for $ac_word" >&5
39962 +echo "configure:4601: checking for $ac_word" >&5
39963 if eval "test \"`echo '$''{'ac_cv_prog_CC_FOR_TARGET'+set}'`\" = set"; then
39964 echo $ac_n "(cached) $ac_c" 1>&6
39965 else
39966 @@ -4625,7 +4628,7 @@ fi
39967 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
39968 set dummy ${ncn_progname}; ac_word=$2
39969 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
39970 -echo "configure:4629: checking for $ac_word" >&5
39971 +echo "configure:4632: checking for $ac_word" >&5
39972 if eval "test \"`echo '$''{'ac_cv_prog_CC_FOR_TARGET'+set}'`\" = set"; then
39973 echo $ac_n "(cached) $ac_c" 1>&6
39974 else
39975 @@ -4668,7 +4671,7 @@ fi
39976 if test -n "$with_build_time_tools"; then
39977 for ncn_progname in c++ g++ cxx gxx; do
39978 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
39979 -echo "configure:4672: checking for ${ncn_progname} in $with_build_time_tools" >&5
39980 +echo "configure:4675: checking for ${ncn_progname} in $with_build_time_tools" >&5
39981 if test -x $with_build_time_tools/${ncn_progname}; then
39982 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
39983 echo "$ac_t""yes" 1>&6
39984 @@ -4685,7 +4688,7 @@ if test -z "$ac_cv_prog_CXX_FOR_TARGET";
39985 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
39986 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
39987 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
39988 -echo "configure:4689: checking for $ac_word" >&5
39989 +echo "configure:4692: checking for $ac_word" >&5
39990 if eval "test \"`echo '$''{'ac_cv_prog_CXX_FOR_TARGET'+set}'`\" = set"; then
39991 echo $ac_n "(cached) $ac_c" 1>&6
39992 else
39993 @@ -4716,7 +4719,7 @@ fi
39994 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
39995 set dummy ${ncn_progname}; ac_word=$2
39996 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
39997 -echo "configure:4720: checking for $ac_word" >&5
39998 +echo "configure:4723: checking for $ac_word" >&5
39999 if eval "test \"`echo '$''{'ac_cv_prog_CXX_FOR_TARGET'+set}'`\" = set"; then
40000 echo $ac_n "(cached) $ac_c" 1>&6
40001 else
40002 @@ -4759,7 +4762,7 @@ fi
40003 if test -n "$with_build_time_tools"; then
40004 for ncn_progname in gcc; do
40005 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
40006 -echo "configure:4763: checking for ${ncn_progname} in $with_build_time_tools" >&5
40007 +echo "configure:4766: checking for ${ncn_progname} in $with_build_time_tools" >&5
40008 if test -x $with_build_time_tools/${ncn_progname}; then
40009 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
40010 echo "$ac_t""yes" 1>&6
40011 @@ -4776,7 +4779,7 @@ if test -z "$ac_cv_prog_GCC_FOR_TARGET";
40012 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
40013 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
40014 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
40015 -echo "configure:4780: checking for $ac_word" >&5
40016 +echo "configure:4783: checking for $ac_word" >&5
40017 if eval "test \"`echo '$''{'ac_cv_prog_GCC_FOR_TARGET'+set}'`\" = set"; then
40018 echo $ac_n "(cached) $ac_c" 1>&6
40019 else
40020 @@ -4807,7 +4810,7 @@ fi
40021 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
40022 set dummy ${ncn_progname}; ac_word=$2
40023 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
40024 -echo "configure:4811: checking for $ac_word" >&5
40025 +echo "configure:4814: checking for $ac_word" >&5
40026 if eval "test \"`echo '$''{'ac_cv_prog_GCC_FOR_TARGET'+set}'`\" = set"; then
40027 echo $ac_n "(cached) $ac_c" 1>&6
40028 else
40029 @@ -4845,7 +4848,7 @@ fi
40030 if test -n "$with_build_time_tools"; then
40031 for ncn_progname in gcj; do
40032 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
40033 -echo "configure:4849: checking for ${ncn_progname} in $with_build_time_tools" >&5
40034 +echo "configure:4852: checking for ${ncn_progname} in $with_build_time_tools" >&5
40035 if test -x $with_build_time_tools/${ncn_progname}; then
40036 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
40037 echo "$ac_t""yes" 1>&6
40038 @@ -4862,7 +4865,7 @@ if test -z "$ac_cv_prog_GCJ_FOR_TARGET";
40039 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
40040 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
40041 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
40042 -echo "configure:4866: checking for $ac_word" >&5
40043 +echo "configure:4869: checking for $ac_word" >&5
40044 if eval "test \"`echo '$''{'ac_cv_prog_GCJ_FOR_TARGET'+set}'`\" = set"; then
40045 echo $ac_n "(cached) $ac_c" 1>&6
40046 else
40047 @@ -4893,7 +4896,7 @@ fi
40048 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
40049 set dummy ${ncn_progname}; ac_word=$2
40050 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
40051 -echo "configure:4897: checking for $ac_word" >&5
40052 +echo "configure:4900: checking for $ac_word" >&5
40053 if eval "test \"`echo '$''{'ac_cv_prog_GCJ_FOR_TARGET'+set}'`\" = set"; then
40054 echo $ac_n "(cached) $ac_c" 1>&6
40055 else
40056 @@ -4936,7 +4939,7 @@ fi
40057 if test -n "$with_build_time_tools"; then
40058 for ncn_progname in gfortran; do
40059 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
40060 -echo "configure:4940: checking for ${ncn_progname} in $with_build_time_tools" >&5
40061 +echo "configure:4943: checking for ${ncn_progname} in $with_build_time_tools" >&5
40062 if test -x $with_build_time_tools/${ncn_progname}; then
40063 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
40064 echo "$ac_t""yes" 1>&6
40065 @@ -4953,7 +4956,7 @@ if test -z "$ac_cv_prog_GFORTRAN_FOR_TAR
40066 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
40067 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
40068 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
40069 -echo "configure:4957: checking for $ac_word" >&5
40070 +echo "configure:4960: checking for $ac_word" >&5
40071 if eval "test \"`echo '$''{'ac_cv_prog_GFORTRAN_FOR_TARGET'+set}'`\" = set"; then
40072 echo $ac_n "(cached) $ac_c" 1>&6
40073 else
40074 @@ -4984,7 +4987,7 @@ fi
40075 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
40076 set dummy ${ncn_progname}; ac_word=$2
40077 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
40078 -echo "configure:4988: checking for $ac_word" >&5
40079 +echo "configure:4991: checking for $ac_word" >&5
40080 if eval "test \"`echo '$''{'ac_cv_prog_GFORTRAN_FOR_TARGET'+set}'`\" = set"; then
40081 echo $ac_n "(cached) $ac_c" 1>&6
40082 else
40083 @@ -5091,7 +5094,7 @@ rm conftest.c
40084 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
40085 if test -n "$with_build_time_tools"; then
40086 echo $ac_n "checking for ar in $with_build_time_tools""... $ac_c" 1>&6
40087 -echo "configure:5095: checking for ar in $with_build_time_tools" >&5
40088 +echo "configure:5098: checking for ar in $with_build_time_tools" >&5
40089 if test -x $with_build_time_tools/ar; then
40090 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
40091 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
40092 @@ -5109,7 +5112,7 @@ if test -z "$ac_cv_path_AR_FOR_TARGET" ;
40093 # Extract the first word of "ar", so it can be a program name with args.
40094 set dummy ar; ac_word=$2
40095 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
40096 -echo "configure:5113: checking for $ac_word" >&5
40097 +echo "configure:5116: checking for $ac_word" >&5
40098 if eval "test \"`echo '$''{'ac_cv_path_AR_FOR_TARGET'+set}'`\" = set"; then
40099 echo $ac_n "(cached) $ac_c" 1>&6
40100 else
40101 @@ -5146,7 +5149,7 @@ if test -z "$ac_cv_path_AR_FOR_TARGET" ;
40102 if test -n "$with_build_time_tools"; then
40103 for ncn_progname in ar; do
40104 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
40105 -echo "configure:5150: checking for ${ncn_progname} in $with_build_time_tools" >&5
40106 +echo "configure:5153: checking for ${ncn_progname} in $with_build_time_tools" >&5
40107 if test -x $with_build_time_tools/${ncn_progname}; then
40108 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
40109 echo "$ac_t""yes" 1>&6
40110 @@ -5163,7 +5166,7 @@ if test -z "$ac_cv_prog_AR_FOR_TARGET";
40111 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
40112 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
40113 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
40114 -echo "configure:5167: checking for $ac_word" >&5
40115 +echo "configure:5170: checking for $ac_word" >&5
40116 if eval "test \"`echo '$''{'ac_cv_prog_AR_FOR_TARGET'+set}'`\" = set"; then
40117 echo $ac_n "(cached) $ac_c" 1>&6
40118 else
40119 @@ -5194,7 +5197,7 @@ fi
40120 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
40121 set dummy ${ncn_progname}; ac_word=$2
40122 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
40123 -echo "configure:5198: checking for $ac_word" >&5
40124 +echo "configure:5201: checking for $ac_word" >&5
40125 if eval "test \"`echo '$''{'ac_cv_prog_AR_FOR_TARGET'+set}'`\" = set"; then
40126 echo $ac_n "(cached) $ac_c" 1>&6
40127 else
40128 @@ -5244,7 +5247,7 @@ fi
40129 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
40130 if test -n "$with_build_time_tools"; then
40131 echo $ac_n "checking for as in $with_build_time_tools""... $ac_c" 1>&6
40132 -echo "configure:5248: checking for as in $with_build_time_tools" >&5
40133 +echo "configure:5251: checking for as in $with_build_time_tools" >&5
40134 if test -x $with_build_time_tools/as; then
40135 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
40136 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
40137 @@ -5262,7 +5265,7 @@ if test -z "$ac_cv_path_AS_FOR_TARGET" ;
40138 # Extract the first word of "as", so it can be a program name with args.
40139 set dummy as; ac_word=$2
40140 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
40141 -echo "configure:5266: checking for $ac_word" >&5
40142 +echo "configure:5269: checking for $ac_word" >&5
40143 if eval "test \"`echo '$''{'ac_cv_path_AS_FOR_TARGET'+set}'`\" = set"; then
40144 echo $ac_n "(cached) $ac_c" 1>&6
40145 else
40146 @@ -5299,7 +5302,7 @@ if test -z "$ac_cv_path_AS_FOR_TARGET" ;
40147 if test -n "$with_build_time_tools"; then
40148 for ncn_progname in as; do
40149 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
40150 -echo "configure:5303: checking for ${ncn_progname} in $with_build_time_tools" >&5
40151 +echo "configure:5306: checking for ${ncn_progname} in $with_build_time_tools" >&5
40152 if test -x $with_build_time_tools/${ncn_progname}; then
40153 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
40154 echo "$ac_t""yes" 1>&6
40155 @@ -5316,7 +5319,7 @@ if test -z "$ac_cv_prog_AS_FOR_TARGET";
40156 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
40157 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
40158 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
40159 -echo "configure:5320: checking for $ac_word" >&5
40160 +echo "configure:5323: checking for $ac_word" >&5
40161 if eval "test \"`echo '$''{'ac_cv_prog_AS_FOR_TARGET'+set}'`\" = set"; then
40162 echo $ac_n "(cached) $ac_c" 1>&6
40163 else
40164 @@ -5347,7 +5350,7 @@ fi
40165 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
40166 set dummy ${ncn_progname}; ac_word=$2
40167 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
40168 -echo "configure:5351: checking for $ac_word" >&5
40169 +echo "configure:5354: checking for $ac_word" >&5
40170 if eval "test \"`echo '$''{'ac_cv_prog_AS_FOR_TARGET'+set}'`\" = set"; then
40171 echo $ac_n "(cached) $ac_c" 1>&6
40172 else
40173 @@ -5397,7 +5400,7 @@ fi
40174 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
40175 if test -n "$with_build_time_tools"; then
40176 echo $ac_n "checking for dlltool in $with_build_time_tools""... $ac_c" 1>&6
40177 -echo "configure:5401: checking for dlltool in $with_build_time_tools" >&5
40178 +echo "configure:5404: checking for dlltool in $with_build_time_tools" >&5
40179 if test -x $with_build_time_tools/dlltool; then
40180 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
40181 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
40182 @@ -5415,7 +5418,7 @@ if test -z "$ac_cv_path_DLLTOOL_FOR_TARG
40183 # Extract the first word of "dlltool", so it can be a program name with args.
40184 set dummy dlltool; ac_word=$2
40185 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
40186 -echo "configure:5419: checking for $ac_word" >&5
40187 +echo "configure:5422: checking for $ac_word" >&5
40188 if eval "test \"`echo '$''{'ac_cv_path_DLLTOOL_FOR_TARGET'+set}'`\" = set"; then
40189 echo $ac_n "(cached) $ac_c" 1>&6
40190 else
40191 @@ -5452,7 +5455,7 @@ if test -z "$ac_cv_path_DLLTOOL_FOR_TARG
40192 if test -n "$with_build_time_tools"; then
40193 for ncn_progname in dlltool; do
40194 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
40195 -echo "configure:5456: checking for ${ncn_progname} in $with_build_time_tools" >&5
40196 +echo "configure:5459: checking for ${ncn_progname} in $with_build_time_tools" >&5
40197 if test -x $with_build_time_tools/${ncn_progname}; then
40198 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
40199 echo "$ac_t""yes" 1>&6
40200 @@ -5469,7 +5472,7 @@ if test -z "$ac_cv_prog_DLLTOOL_FOR_TARG
40201 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
40202 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
40203 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
40204 -echo "configure:5473: checking for $ac_word" >&5
40205 +echo "configure:5476: checking for $ac_word" >&5
40206 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL_FOR_TARGET'+set}'`\" = set"; then
40207 echo $ac_n "(cached) $ac_c" 1>&6
40208 else
40209 @@ -5500,7 +5503,7 @@ fi
40210 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
40211 set dummy ${ncn_progname}; ac_word=$2
40212 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
40213 -echo "configure:5504: checking for $ac_word" >&5
40214 +echo "configure:5507: checking for $ac_word" >&5
40215 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL_FOR_TARGET'+set}'`\" = set"; then
40216 echo $ac_n "(cached) $ac_c" 1>&6
40217 else
40218 @@ -5550,7 +5553,7 @@ fi
40219 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
40220 if test -n "$with_build_time_tools"; then
40221 echo $ac_n "checking for ld in $with_build_time_tools""... $ac_c" 1>&6
40222 -echo "configure:5554: checking for ld in $with_build_time_tools" >&5
40223 +echo "configure:5557: checking for ld in $with_build_time_tools" >&5
40224 if test -x $with_build_time_tools/ld; then
40225 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
40226 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
40227 @@ -5568,7 +5571,7 @@ if test -z "$ac_cv_path_LD_FOR_TARGET" ;
40228 # Extract the first word of "ld", so it can be a program name with args.
40229 set dummy ld; ac_word=$2
40230 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
40231 -echo "configure:5572: checking for $ac_word" >&5
40232 +echo "configure:5575: checking for $ac_word" >&5
40233 if eval "test \"`echo '$''{'ac_cv_path_LD_FOR_TARGET'+set}'`\" = set"; then
40234 echo $ac_n "(cached) $ac_c" 1>&6
40235 else
40236 @@ -5605,7 +5608,7 @@ if test -z "$ac_cv_path_LD_FOR_TARGET" ;
40237 if test -n "$with_build_time_tools"; then
40238 for ncn_progname in ld; do
40239 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
40240 -echo "configure:5609: checking for ${ncn_progname} in $with_build_time_tools" >&5
40241 +echo "configure:5612: checking for ${ncn_progname} in $with_build_time_tools" >&5
40242 if test -x $with_build_time_tools/${ncn_progname}; then
40243 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
40244 echo "$ac_t""yes" 1>&6
40245 @@ -5622,7 +5625,7 @@ if test -z "$ac_cv_prog_LD_FOR_TARGET";
40246 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
40247 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
40248 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
40249 -echo "configure:5626: checking for $ac_word" >&5
40250 +echo "configure:5629: checking for $ac_word" >&5
40251 if eval "test \"`echo '$''{'ac_cv_prog_LD_FOR_TARGET'+set}'`\" = set"; then
40252 echo $ac_n "(cached) $ac_c" 1>&6
40253 else
40254 @@ -5653,7 +5656,7 @@ fi
40255 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
40256 set dummy ${ncn_progname}; ac_word=$2
40257 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
40258 -echo "configure:5657: checking for $ac_word" >&5
40259 +echo "configure:5660: checking for $ac_word" >&5
40260 if eval "test \"`echo '$''{'ac_cv_prog_LD_FOR_TARGET'+set}'`\" = set"; then
40261 echo $ac_n "(cached) $ac_c" 1>&6
40262 else
40263 @@ -5703,7 +5706,7 @@ fi
40264 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
40265 if test -n "$with_build_time_tools"; then
40266 echo $ac_n "checking for lipo in $with_build_time_tools""... $ac_c" 1>&6
40267 -echo "configure:5707: checking for lipo in $with_build_time_tools" >&5
40268 +echo "configure:5710: checking for lipo in $with_build_time_tools" >&5
40269 if test -x $with_build_time_tools/lipo; then
40270 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
40271 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
40272 @@ -5721,7 +5724,7 @@ if test -z "$ac_cv_path_LIPO_FOR_TARGET"
40273 # Extract the first word of "lipo", so it can be a program name with args.
40274 set dummy lipo; ac_word=$2
40275 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
40276 -echo "configure:5725: checking for $ac_word" >&5
40277 +echo "configure:5728: checking for $ac_word" >&5
40278 if eval "test \"`echo '$''{'ac_cv_path_LIPO_FOR_TARGET'+set}'`\" = set"; then
40279 echo $ac_n "(cached) $ac_c" 1>&6
40280 else
40281 @@ -5758,7 +5761,7 @@ if test -z "$ac_cv_path_LIPO_FOR_TARGET"
40282 if test -n "$with_build_time_tools"; then
40283 for ncn_progname in lipo; do
40284 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
40285 -echo "configure:5762: checking for ${ncn_progname} in $with_build_time_tools" >&5
40286 +echo "configure:5765: checking for ${ncn_progname} in $with_build_time_tools" >&5
40287 if test -x $with_build_time_tools/${ncn_progname}; then
40288 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
40289 echo "$ac_t""yes" 1>&6
40290 @@ -5775,7 +5778,7 @@ if test -z "$ac_cv_prog_LIPO_FOR_TARGET"
40291 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
40292 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
40293 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
40294 -echo "configure:5779: checking for $ac_word" >&5
40295 +echo "configure:5782: checking for $ac_word" >&5
40296 if eval "test \"`echo '$''{'ac_cv_prog_LIPO_FOR_TARGET'+set}'`\" = set"; then
40297 echo $ac_n "(cached) $ac_c" 1>&6
40298 else
40299 @@ -5806,7 +5809,7 @@ fi
40300 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
40301 set dummy ${ncn_progname}; ac_word=$2
40302 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
40303 -echo "configure:5810: checking for $ac_word" >&5
40304 +echo "configure:5813: checking for $ac_word" >&5
40305 if eval "test \"`echo '$''{'ac_cv_prog_LIPO_FOR_TARGET'+set}'`\" = set"; then
40306 echo $ac_n "(cached) $ac_c" 1>&6
40307 else
40308 @@ -5856,7 +5859,7 @@ fi
40309 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
40310 if test -n "$with_build_time_tools"; then
40311 echo $ac_n "checking for nm in $with_build_time_tools""... $ac_c" 1>&6
40312 -echo "configure:5860: checking for nm in $with_build_time_tools" >&5
40313 +echo "configure:5863: checking for nm in $with_build_time_tools" >&5
40314 if test -x $with_build_time_tools/nm; then
40315 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
40316 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
40317 @@ -5874,7 +5877,7 @@ if test -z "$ac_cv_path_NM_FOR_TARGET" ;
40318 # Extract the first word of "nm", so it can be a program name with args.
40319 set dummy nm; ac_word=$2
40320 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
40321 -echo "configure:5878: checking for $ac_word" >&5
40322 +echo "configure:5881: checking for $ac_word" >&5
40323 if eval "test \"`echo '$''{'ac_cv_path_NM_FOR_TARGET'+set}'`\" = set"; then
40324 echo $ac_n "(cached) $ac_c" 1>&6
40325 else
40326 @@ -5911,7 +5914,7 @@ if test -z "$ac_cv_path_NM_FOR_TARGET" ;
40327 if test -n "$with_build_time_tools"; then
40328 for ncn_progname in nm; do
40329 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
40330 -echo "configure:5915: checking for ${ncn_progname} in $with_build_time_tools" >&5
40331 +echo "configure:5918: checking for ${ncn_progname} in $with_build_time_tools" >&5
40332 if test -x $with_build_time_tools/${ncn_progname}; then
40333 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
40334 echo "$ac_t""yes" 1>&6
40335 @@ -5928,7 +5931,7 @@ if test -z "$ac_cv_prog_NM_FOR_TARGET";
40336 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
40337 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
40338 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
40339 -echo "configure:5932: checking for $ac_word" >&5
40340 +echo "configure:5935: checking for $ac_word" >&5
40341 if eval "test \"`echo '$''{'ac_cv_prog_NM_FOR_TARGET'+set}'`\" = set"; then
40342 echo $ac_n "(cached) $ac_c" 1>&6
40343 else
40344 @@ -5959,7 +5962,7 @@ fi
40345 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
40346 set dummy ${ncn_progname}; ac_word=$2
40347 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
40348 -echo "configure:5963: checking for $ac_word" >&5
40349 +echo "configure:5966: checking for $ac_word" >&5
40350 if eval "test \"`echo '$''{'ac_cv_prog_NM_FOR_TARGET'+set}'`\" = set"; then
40351 echo $ac_n "(cached) $ac_c" 1>&6
40352 else
40353 @@ -6009,7 +6012,7 @@ fi
40354 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
40355 if test -n "$with_build_time_tools"; then
40356 echo $ac_n "checking for objdump in $with_build_time_tools""... $ac_c" 1>&6
40357 -echo "configure:6013: checking for objdump in $with_build_time_tools" >&5
40358 +echo "configure:6016: checking for objdump in $with_build_time_tools" >&5
40359 if test -x $with_build_time_tools/objdump; then
40360 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
40361 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
40362 @@ -6027,7 +6030,7 @@ if test -z "$ac_cv_path_OBJDUMP_FOR_TARG
40363 # Extract the first word of "objdump", so it can be a program name with args.
40364 set dummy objdump; ac_word=$2
40365 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
40366 -echo "configure:6031: checking for $ac_word" >&5
40367 +echo "configure:6034: checking for $ac_word" >&5
40368 if eval "test \"`echo '$''{'ac_cv_path_OBJDUMP_FOR_TARGET'+set}'`\" = set"; then
40369 echo $ac_n "(cached) $ac_c" 1>&6
40370 else
40371 @@ -6064,7 +6067,7 @@ if test -z "$ac_cv_path_OBJDUMP_FOR_TARG
40372 if test -n "$with_build_time_tools"; then
40373 for ncn_progname in objdump; do
40374 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
40375 -echo "configure:6068: checking for ${ncn_progname} in $with_build_time_tools" >&5
40376 +echo "configure:6071: checking for ${ncn_progname} in $with_build_time_tools" >&5
40377 if test -x $with_build_time_tools/${ncn_progname}; then
40378 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
40379 echo "$ac_t""yes" 1>&6
40380 @@ -6081,7 +6084,7 @@ if test -z "$ac_cv_prog_OBJDUMP_FOR_TARG
40381 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
40382 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
40383 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
40384 -echo "configure:6085: checking for $ac_word" >&5
40385 +echo "configure:6088: checking for $ac_word" >&5
40386 if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP_FOR_TARGET'+set}'`\" = set"; then
40387 echo $ac_n "(cached) $ac_c" 1>&6
40388 else
40389 @@ -6112,7 +6115,7 @@ fi
40390 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
40391 set dummy ${ncn_progname}; ac_word=$2
40392 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
40393 -echo "configure:6116: checking for $ac_word" >&5
40394 +echo "configure:6119: checking for $ac_word" >&5
40395 if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP_FOR_TARGET'+set}'`\" = set"; then
40396 echo $ac_n "(cached) $ac_c" 1>&6
40397 else
40398 @@ -6162,7 +6165,7 @@ fi
40399 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
40400 if test -n "$with_build_time_tools"; then
40401 echo $ac_n "checking for ranlib in $with_build_time_tools""... $ac_c" 1>&6
40402 -echo "configure:6166: checking for ranlib in $with_build_time_tools" >&5
40403 +echo "configure:6169: checking for ranlib in $with_build_time_tools" >&5
40404 if test -x $with_build_time_tools/ranlib; then
40405 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
40406 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
40407 @@ -6180,7 +6183,7 @@ if test -z "$ac_cv_path_RANLIB_FOR_TARGE
40408 # Extract the first word of "ranlib", so it can be a program name with args.
40409 set dummy ranlib; ac_word=$2
40410 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
40411 -echo "configure:6184: checking for $ac_word" >&5
40412 +echo "configure:6187: checking for $ac_word" >&5
40413 if eval "test \"`echo '$''{'ac_cv_path_RANLIB_FOR_TARGET'+set}'`\" = set"; then
40414 echo $ac_n "(cached) $ac_c" 1>&6
40415 else
40416 @@ -6217,7 +6220,7 @@ if test -z "$ac_cv_path_RANLIB_FOR_TARGE
40417 if test -n "$with_build_time_tools"; then
40418 for ncn_progname in ranlib; do
40419 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
40420 -echo "configure:6221: checking for ${ncn_progname} in $with_build_time_tools" >&5
40421 +echo "configure:6224: checking for ${ncn_progname} in $with_build_time_tools" >&5
40422 if test -x $with_build_time_tools/${ncn_progname}; then
40423 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
40424 echo "$ac_t""yes" 1>&6
40425 @@ -6234,7 +6237,7 @@ if test -z "$ac_cv_prog_RANLIB_FOR_TARGE
40426 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
40427 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
40428 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
40429 -echo "configure:6238: checking for $ac_word" >&5
40430 +echo "configure:6241: checking for $ac_word" >&5
40431 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB_FOR_TARGET'+set}'`\" = set"; then
40432 echo $ac_n "(cached) $ac_c" 1>&6
40433 else
40434 @@ -6265,7 +6268,7 @@ fi
40435 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
40436 set dummy ${ncn_progname}; ac_word=$2
40437 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
40438 -echo "configure:6269: checking for $ac_word" >&5
40439 +echo "configure:6272: checking for $ac_word" >&5
40440 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB_FOR_TARGET'+set}'`\" = set"; then
40441 echo $ac_n "(cached) $ac_c" 1>&6
40442 else
40443 @@ -6315,7 +6318,7 @@ fi
40444 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
40445 if test -n "$with_build_time_tools"; then
40446 echo $ac_n "checking for strip in $with_build_time_tools""... $ac_c" 1>&6
40447 -echo "configure:6319: checking for strip in $with_build_time_tools" >&5
40448 +echo "configure:6322: checking for strip in $with_build_time_tools" >&5
40449 if test -x $with_build_time_tools/strip; then
40450 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
40451 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
40452 @@ -6333,7 +6336,7 @@ if test -z "$ac_cv_path_STRIP_FOR_TARGET
40453 # Extract the first word of "strip", so it can be a program name with args.
40454 set dummy strip; ac_word=$2
40455 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
40456 -echo "configure:6337: checking for $ac_word" >&5
40457 +echo "configure:6340: checking for $ac_word" >&5
40458 if eval "test \"`echo '$''{'ac_cv_path_STRIP_FOR_TARGET'+set}'`\" = set"; then
40459 echo $ac_n "(cached) $ac_c" 1>&6
40460 else
40461 @@ -6370,7 +6373,7 @@ if test -z "$ac_cv_path_STRIP_FOR_TARGET
40462 if test -n "$with_build_time_tools"; then
40463 for ncn_progname in strip; do
40464 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
40465 -echo "configure:6374: checking for ${ncn_progname} in $with_build_time_tools" >&5
40466 +echo "configure:6377: checking for ${ncn_progname} in $with_build_time_tools" >&5
40467 if test -x $with_build_time_tools/${ncn_progname}; then
40468 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
40469 echo "$ac_t""yes" 1>&6
40470 @@ -6387,7 +6390,7 @@ if test -z "$ac_cv_prog_STRIP_FOR_TARGET
40471 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
40472 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
40473 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
40474 -echo "configure:6391: checking for $ac_word" >&5
40475 +echo "configure:6394: checking for $ac_word" >&5
40476 if eval "test \"`echo '$''{'ac_cv_prog_STRIP_FOR_TARGET'+set}'`\" = set"; then
40477 echo $ac_n "(cached) $ac_c" 1>&6
40478 else
40479 @@ -6418,7 +6421,7 @@ fi
40480 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
40481 set dummy ${ncn_progname}; ac_word=$2
40482 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
40483 -echo "configure:6422: checking for $ac_word" >&5
40484 +echo "configure:6425: checking for $ac_word" >&5
40485 if eval "test \"`echo '$''{'ac_cv_prog_STRIP_FOR_TARGET'+set}'`\" = set"; then
40486 echo $ac_n "(cached) $ac_c" 1>&6
40487 else
40488 @@ -6468,7 +6471,7 @@ fi
40489 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
40490 if test -n "$with_build_time_tools"; then
40491 echo $ac_n "checking for windres in $with_build_time_tools""... $ac_c" 1>&6
40492 -echo "configure:6472: checking for windres in $with_build_time_tools" >&5
40493 +echo "configure:6475: checking for windres in $with_build_time_tools" >&5
40494 if test -x $with_build_time_tools/windres; then
40495 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
40496 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
40497 @@ -6486,7 +6489,7 @@ if test -z "$ac_cv_path_WINDRES_FOR_TARG
40498 # Extract the first word of "windres", so it can be a program name with args.
40499 set dummy windres; ac_word=$2
40500 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
40501 -echo "configure:6490: checking for $ac_word" >&5
40502 +echo "configure:6493: checking for $ac_word" >&5
40503 if eval "test \"`echo '$''{'ac_cv_path_WINDRES_FOR_TARGET'+set}'`\" = set"; then
40504 echo $ac_n "(cached) $ac_c" 1>&6
40505 else
40506 @@ -6523,7 +6526,7 @@ if test -z "$ac_cv_path_WINDRES_FOR_TARG
40507 if test -n "$with_build_time_tools"; then
40508 for ncn_progname in windres; do
40509 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
40510 -echo "configure:6527: checking for ${ncn_progname} in $with_build_time_tools" >&5
40511 +echo "configure:6530: checking for ${ncn_progname} in $with_build_time_tools" >&5
40512 if test -x $with_build_time_tools/${ncn_progname}; then
40513 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
40514 echo "$ac_t""yes" 1>&6
40515 @@ -6540,7 +6543,7 @@ if test -z "$ac_cv_prog_WINDRES_FOR_TARG
40516 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
40517 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
40518 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
40519 -echo "configure:6544: checking for $ac_word" >&5
40520 +echo "configure:6547: checking for $ac_word" >&5
40521 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES_FOR_TARGET'+set}'`\" = set"; then
40522 echo $ac_n "(cached) $ac_c" 1>&6
40523 else
40524 @@ -6571,7 +6574,7 @@ fi
40525 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
40526 set dummy ${ncn_progname}; ac_word=$2
40527 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
40528 -echo "configure:6575: checking for $ac_word" >&5
40529 +echo "configure:6578: checking for $ac_word" >&5
40530 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES_FOR_TARGET'+set}'`\" = set"; then
40531 echo $ac_n "(cached) $ac_c" 1>&6
40532 else
40533 @@ -6619,7 +6622,7 @@ fi
40534 RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
40535
40536 echo $ac_n "checking where to find the target ar""... $ac_c" 1>&6
40537 -echo "configure:6623: checking where to find the target ar" >&5
40538 +echo "configure:6626: checking where to find the target ar" >&5
40539 if test "x${build}" != "x${host}" ; then
40540 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
40541 # We already found the complete path
40542 @@ -6652,7 +6655,7 @@ else
40543 fi
40544 fi
40545 echo $ac_n "checking where to find the target as""... $ac_c" 1>&6
40546 -echo "configure:6656: checking where to find the target as" >&5
40547 +echo "configure:6659: checking where to find the target as" >&5
40548 if test "x${build}" != "x${host}" ; then
40549 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
40550 # We already found the complete path
40551 @@ -6685,7 +6688,7 @@ else
40552 fi
40553 fi
40554 echo $ac_n "checking where to find the target cc""... $ac_c" 1>&6
40555 -echo "configure:6689: checking where to find the target cc" >&5
40556 +echo "configure:6692: checking where to find the target cc" >&5
40557 if test "x${build}" != "x${host}" ; then
40558 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
40559 # We already found the complete path
40560 @@ -6718,7 +6721,7 @@ else
40561 fi
40562 fi
40563 echo $ac_n "checking where to find the target c++""... $ac_c" 1>&6
40564 -echo "configure:6722: checking where to find the target c++" >&5
40565 +echo "configure:6725: checking where to find the target c++" >&5
40566 if test "x${build}" != "x${host}" ; then
40567 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
40568 # We already found the complete path
40569 @@ -6754,7 +6757,7 @@ else
40570 fi
40571 fi
40572 echo $ac_n "checking where to find the target c++ for libstdc++""... $ac_c" 1>&6
40573 -echo "configure:6758: checking where to find the target c++ for libstdc++" >&5
40574 +echo "configure:6761: checking where to find the target c++ for libstdc++" >&5
40575 if test "x${build}" != "x${host}" ; then
40576 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
40577 # We already found the complete path
40578 @@ -6790,7 +6793,7 @@ else
40579 fi
40580 fi
40581 echo $ac_n "checking where to find the target dlltool""... $ac_c" 1>&6
40582 -echo "configure:6794: checking where to find the target dlltool" >&5
40583 +echo "configure:6797: checking where to find the target dlltool" >&5
40584 if test "x${build}" != "x${host}" ; then
40585 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
40586 # We already found the complete path
40587 @@ -6823,7 +6826,7 @@ else
40588 fi
40589 fi
40590 echo $ac_n "checking where to find the target gcc""... $ac_c" 1>&6
40591 -echo "configure:6827: checking where to find the target gcc" >&5
40592 +echo "configure:6830: checking where to find the target gcc" >&5
40593 if test "x${build}" != "x${host}" ; then
40594 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
40595 # We already found the complete path
40596 @@ -6856,7 +6859,7 @@ else
40597 fi
40598 fi
40599 echo $ac_n "checking where to find the target gcj""... $ac_c" 1>&6
40600 -echo "configure:6860: checking where to find the target gcj" >&5
40601 +echo "configure:6863: checking where to find the target gcj" >&5
40602 if test "x${build}" != "x${host}" ; then
40603 if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
40604 # We already found the complete path
40605 @@ -6892,7 +6895,7 @@ else
40606 fi
40607 fi
40608 echo $ac_n "checking where to find the target gfortran""... $ac_c" 1>&6
40609 -echo "configure:6896: checking where to find the target gfortran" >&5
40610 +echo "configure:6899: checking where to find the target gfortran" >&5
40611 if test "x${build}" != "x${host}" ; then
40612 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
40613 # We already found the complete path
40614 @@ -6928,7 +6931,7 @@ else
40615 fi
40616 fi
40617 echo $ac_n "checking where to find the target ld""... $ac_c" 1>&6
40618 -echo "configure:6932: checking where to find the target ld" >&5
40619 +echo "configure:6935: checking where to find the target ld" >&5
40620 if test "x${build}" != "x${host}" ; then
40621 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
40622 # We already found the complete path
40623 @@ -6961,7 +6964,7 @@ else
40624 fi
40625 fi
40626 echo $ac_n "checking where to find the target lipo""... $ac_c" 1>&6
40627 -echo "configure:6965: checking where to find the target lipo" >&5
40628 +echo "configure:6968: checking where to find the target lipo" >&5
40629 if test "x${build}" != "x${host}" ; then
40630 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
40631 # We already found the complete path
40632 @@ -6984,7 +6987,7 @@ else
40633 fi
40634 fi
40635 echo $ac_n "checking where to find the target nm""... $ac_c" 1>&6
40636 -echo "configure:6988: checking where to find the target nm" >&5
40637 +echo "configure:6991: checking where to find the target nm" >&5
40638 if test "x${build}" != "x${host}" ; then
40639 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
40640 # We already found the complete path
40641 @@ -7017,7 +7020,7 @@ else
40642 fi
40643 fi
40644 echo $ac_n "checking where to find the target objdump""... $ac_c" 1>&6
40645 -echo "configure:7021: checking where to find the target objdump" >&5
40646 +echo "configure:7024: checking where to find the target objdump" >&5
40647 if test "x${build}" != "x${host}" ; then
40648 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
40649 # We already found the complete path
40650 @@ -7050,7 +7053,7 @@ else
40651 fi
40652 fi
40653 echo $ac_n "checking where to find the target ranlib""... $ac_c" 1>&6
40654 -echo "configure:7054: checking where to find the target ranlib" >&5
40655 +echo "configure:7057: checking where to find the target ranlib" >&5
40656 if test "x${build}" != "x${host}" ; then
40657 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
40658 # We already found the complete path
40659 @@ -7083,7 +7086,7 @@ else
40660 fi
40661 fi
40662 echo $ac_n "checking where to find the target strip""... $ac_c" 1>&6
40663 -echo "configure:7087: checking where to find the target strip" >&5
40664 +echo "configure:7090: checking where to find the target strip" >&5
40665 if test "x${build}" != "x${host}" ; then
40666 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
40667 # We already found the complete path
40668 @@ -7116,7 +7119,7 @@ else
40669 fi
40670 fi
40671 echo $ac_n "checking where to find the target windres""... $ac_c" 1>&6
40672 -echo "configure:7120: checking where to find the target windres" >&5
40673 +echo "configure:7123: checking where to find the target windres" >&5
40674 if test "x${build}" != "x${host}" ; then
40675 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
40676 # We already found the complete path
40677 @@ -7177,7 +7180,7 @@ fi
40678
40679
40680 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
40681 -echo "configure:7181: checking whether to enable maintainer-specific portions of Makefiles" >&5
40682 +echo "configure:7184: checking whether to enable maintainer-specific portions of Makefiles" >&5
40683 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
40684 if test "${enable_maintainer_mode+set}" = set; then
40685 enableval="$enable_maintainer_mode"
40686 @@ -7334,34 +7337,15 @@ trap 'rm -f $CONFIG_STATUS conftest*; ex
40687 # Transform confdefs.h into DEFS.
40688 # Protect against shell expansion while executing Makefile rules.
40689 # Protect against Makefile macro expansion.
40690 -#
40691 -# If the first sed substitution is executed (which looks for macros that
40692 -# take arguments), then we branch to the quote section. Otherwise,
40693 -# look for a macro that doesn't take arguments.
40694 -cat >confdef2opt.sed <<\_ACEOF
40695 -t clear
40696 -: clear
40697 -s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
40698 -t quote
40699 -s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
40700 -t quote
40701 -d
40702 -: quote
40703 -s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
40704 -s,\[,\\&,g
40705 -s,\],\\&,g
40706 -s,\$,$$,g
40707 -p
40708 -_ACEOF
40709 -# We use echo to avoid assuming a particular line-breaking character.
40710 -# The extra dot is to prevent the shell from consuming trailing
40711 -# line-breaks from the sub-command output. A line-break within
40712 -# single-quotes doesn't work because, if this script is created in a
40713 -# platform that uses two characters for line-breaks (e.g., DOS), tr
40714 -# would break.
40715 -ac_LF_and_DOT=`echo; echo .`
40716 -DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
40717 -rm -f confdef2opt.sed
40718 +cat > conftest.defs <<\EOF
40719 +s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
40720 +s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
40721 +s%\[%\\&%g
40722 +s%\]%\\&%g
40723 +s%\$%$$%g
40724 +EOF
40725 +DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
40726 +rm -f conftest.defs
40727
40728
40729 # Without the "./", some shells look in PATH for config.status.
40730 diff -Nrup binutils-2.17/configure.in binutils-2.17.atmel.1.3.0/configure.in
40731 --- binutils-2.17/configure.in 2006-06-23 20:19:53.000000000 +0200
40732 +++ binutils-2.17.atmel.1.3.0/configure.in 2007-03-26 10:20:35.000000000 +0200
40733 @@ -269,6 +269,9 @@ unsupported_languages=
40734 # exist yet.
40735
40736 case "${host}" in
40737 + avr32*-*-*)
40738 + noconfigdirs="$noconfigdirs readline gdb"
40739 + ;;
40740 hppa*64*-*-*)
40741 noconfigdirs="$noconfigdirs byacc"
40742 ;;
40743 diff -Nrup binutils-2.17/gas/as.c binutils-2.17.atmel.1.3.0/gas/as.c
40744 --- binutils-2.17/gas/as.c 2006-02-09 01:07:41.000000000 +0100
40745 +++ binutils-2.17.atmel.1.3.0/gas/as.c 2007-03-26 10:20:16.000000000 +0200
40746 @@ -439,10 +439,10 @@ parse_args (int * pargc, char *** pargv)
40747 the end of the preceeding line so that it is simpler to
40748 selectively add and remove lines from this list. */
40749 {"alternate", no_argument, NULL, OPTION_ALTERNATE}
40750 - /* The entry for "a" is here to prevent getopt_long_only() from
40751 - considering that -a is an abbreviation for --alternate. This is
40752 - necessary because -a=<FILE> is a valid switch but getopt would
40753 - normally reject it since --alternate does not take an argument. */
40754 + /* The next two entries are here to prevent getopt_long_only() from
40755 + considering that -a or -al is an abbreviation for --alternate.
40756 + This is necessary because -a=<FILE> is a valid switch but getopt
40757 + would normally reject it since --alternate does not take an argument. */
40758 ,{"a", optional_argument, NULL, 'a'}
40759 /* Handle -al=<FILE>. */
40760 ,{"al", optional_argument, NULL, OPTION_AL}
40761 @@ -795,8 +795,15 @@ the GNU General Public License. This pr
40762 case 'a':
40763 if (optarg)
40764 {
40765 - if (optarg != old_argv[optind] && optarg[-1] == '=')
40766 - --optarg;
40767 + /* If optarg is part of the -a switch and not a separate argument
40768 + in its own right, then scan backwards to the just after the -a.
40769 + This means skipping over both '=' and 'l' which might have been
40770 + taken to be part of the -a switch itself. */
40771 + if (optarg != old_argv[optind])
40772 + {
40773 + while (optarg[-1] == '=' || optarg[-1] == 'l')
40774 + --optarg;
40775 + }
40776
40777 if (md_parse_option (optc, optarg) != 0)
40778 break;
40779 @@ -1189,7 +1196,7 @@ main (int argc, char ** argv)
40780 keep_it = 0;
40781
40782 if (!keep_it)
40783 - unlink_if_ordinary (out_file_name);
40784 + unlink (out_file_name);
40785
40786 input_scrub_end ();
40787
40788 diff -Nrup binutils-2.17/gas/config/bfin-aux.h binutils-2.17.atmel.1.3.0/gas/config/bfin-aux.h
40789 --- binutils-2.17/gas/config/bfin-aux.h 2005-09-30 17:05:06.000000000 +0200
40790 +++ binutils-2.17.atmel.1.3.0/gas/config/bfin-aux.h 2007-03-26 10:20:14.000000000 +0200
40791 @@ -1,151 +1,151 @@
40792 -/* bfin-aux.h ADI Blackfin Header file for gas
40793 - Copyright 2005
40794 - Free Software Foundation, Inc.
40795 -
40796 - This file is part of GAS, the GNU Assembler.
40797 -
40798 - GAS is free software; you can redistribute it and/or modify
40799 - it under the terms of the GNU General Public License as published by
40800 - the Free Software Foundation; either version 2, or (at your option)
40801 - any later version.
40802 -
40803 - GAS is distributed in the hope that it will be useful,
40804 - but WITHOUT ANY WARRANTY; without even the implied warranty of
40805 - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
40806 - GNU General Public License for more details.
40807 -
40808 - You should have received a copy of the GNU General Public License
40809 - along with GAS; see the file COPYING. If not, write to the Free
40810 - Software Foundation, 51 Franklin Street - Fifth Floor, Boston, MA
40811 - 02110-1301, USA. */
40812 -
40813 -#include "bfin-defs.h"
40814 -
40815 -#define REG_T Register *
40816 -
40817 -INSTR_T
40818 -bfin_gen_dsp32mac (int op1, int mm, int mmod, int w1, int p,
40819 - int h01, int h11, int h00, int h10,
40820 - int op0, REG_T dst, REG_T src0, REG_T src1, int w0);
40821 -
40822 -INSTR_T
40823 -bfin_gen_dsp32mult (int op1, int mm, int mmod, int w1, int p,
40824 - int h01, int h11, int h00, int h10,
40825 - int op0, REG_T dst, REG_T src0, REG_T src1, int w0);
40826 -
40827 -INSTR_T
40828 -bfin_gen_dsp32alu (int HL, int aopcde, int aop, int s, int x,
40829 - REG_T dst0, REG_T dst1, REG_T src0, REG_T src1);
40830 -
40831 -INSTR_T
40832 -bfin_gen_dsp32shift (int sopcde, REG_T dst0, REG_T src0, REG_T src1,
40833 - int sop, int hls);
40834 -
40835 -INSTR_T
40836 -bfin_gen_dsp32shiftimm (int sopcde, REG_T dst0, int immag, REG_T src1,
40837 - int sop, int hls);
40838 -
40839 -INSTR_T
40840 -bfin_gen_ldimmhalf (REG_T reg, int h, int s, int z, Expr_Node *hword,
40841 - int reloc);
40842 -
40843 -INSTR_T
40844 -bfin_gen_ldstidxi (REG_T ptr, REG_T reg, int w, int sz, int z,
40845 - Expr_Node *offset);
40846 -
40847 -INSTR_T
40848 -bfin_gen_ldst (REG_T ptr, REG_T reg, int aop, int sz, int z, int w);
40849 -
40850 -INSTR_T
40851 -bfin_gen_ldstii (REG_T ptr, REG_T reg, Expr_Node *offset, int w, int op);
40852 -
40853 -INSTR_T
40854 -bfin_gen_ldstiifp (REG_T reg, Expr_Node *offset, int w);
40855 -
40856 -INSTR_T
40857 -bfin_gen_ldstpmod (REG_T ptr, REG_T reg, int aop, int w, REG_T idx);
40858 -
40859 -INSTR_T
40860 -bfin_gen_dspldst (REG_T i, REG_T reg, int aop, int w, int m);
40861 -
40862 -INSTR_T
40863 -bfin_gen_alu2op (REG_T dst, REG_T src, int opc);
40864 -
40865 -INSTR_T
40866 -bfin_gen_compi2opd (REG_T dst, int src, int op);
40867 -
40868 -INSTR_T
40869 -bfin_gen_compi2opp (REG_T dst, int src, int op);
40870 -
40871 -INSTR_T
40872 -bfin_gen_dagmodik (REG_T i, int op);
40873 -
40874 -INSTR_T
40875 -bfin_gen_dagmodim (REG_T i, REG_T m, int op, int br);
40876 -
40877 -INSTR_T
40878 -bfin_gen_ptr2op (REG_T dst, REG_T src, int opc);
40879 -
40880 -INSTR_T
40881 -bfin_gen_logi2op (int dst, int src, int opc);
40882 -
40883 -INSTR_T
40884 -bfin_gen_comp3op (REG_T src0, REG_T src1, REG_T dst, int opc);
40885 -
40886 -INSTR_T
40887 -bfin_gen_ccmv (REG_T src, REG_T dst, int t);
40888 -
40889 -INSTR_T
40890 -bfin_gen_ccflag (REG_T x, int y, int opc, int i, int g);
40891 -
40892 -INSTR_T
40893 -bfin_gen_cc2stat (int cbit, int op, int d);
40894 -
40895 -INSTR_T
40896 -bfin_gen_regmv (REG_T src, REG_T dst);
40897 -
40898 -INSTR_T
40899 -bfin_gen_cc2dreg (int op, REG_T reg);
40900 -
40901 -INSTR_T
40902 -bfin_gen_brcc (int t, int b, Expr_Node *offset);
40903 -
40904 -INSTR_T
40905 -bfin_gen_ujump (Expr_Node *offset);
40906 -
40907 -INSTR_T
40908 -bfin_gen_cactrl (REG_T reg, int a, int op);
40909 -
40910 -INSTR_T
40911 -bfin_gen_progctrl (int prgfunc, int poprnd);
40912 -
40913 -INSTR_T
40914 -bfin_gen_loopsetup (Expr_Node *soffset, REG_T c, int rop,
40915 - Expr_Node *eoffset, REG_T reg);
40916 -
40917 -INSTR_T
40918 -bfin_gen_loop (Expr_Node *expr, REG_T reg, int rop, REG_T preg);
40919 -
40920 -INSTR_T
40921 -bfin_gen_pushpopmultiple (int dr, int pr, int d, int p, int w);
40922 -
40923 -INSTR_T
40924 -bfin_gen_pushpopreg (REG_T reg, int w);
40925 -
40926 -INSTR_T
40927 -bfin_gen_calla (Expr_Node *addr, int s);
40928 -
40929 -INSTR_T
40930 -bfin_gen_linkage (int r, int framesize);
40931 -
40932 -INSTR_T
40933 -bfin_gen_pseudodbg (int fn, int reg, int grp);
40934 -
40935 -INSTR_T
40936 -bfin_gen_pseudodbg_assert (int dbgop, REG_T regtest, int expected);
40937 -
40938 -bfd_boolean
40939 -bfin_resource_conflict (INSTR_T dsp32, INSTR_T dsp16_grp1, INSTR_T dsp16_grp2);
40940 -
40941 -INSTR_T
40942 -bfin_gen_multi_instr (INSTR_T dsp32, INSTR_T dsp16_grp1, INSTR_T dsp16_grp2);
40943 +/* bfin-aux.h ADI Blackfin Header file for gas
40944 + Copyright 2005
40945 + Free Software Foundation, Inc.
40946 +
40947 + This file is part of GAS, the GNU Assembler.
40948 +
40949 + GAS is free software; you can redistribute it and/or modify
40950 + it under the terms of the GNU General Public License as published by
40951 + the Free Software Foundation; either version 2, or (at your option)
40952 + any later version.
40953 +
40954 + GAS is distributed in the hope that it will be useful,
40955 + but WITHOUT ANY WARRANTY; without even the implied warranty of
40956 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
40957 + GNU General Public License for more details.
40958 +
40959 + You should have received a copy of the GNU General Public License
40960 + along with GAS; see the file COPYING. If not, write to the Free
40961 + Software Foundation, 51 Franklin Street - Fifth Floor, Boston, MA
40962 + 02110-1301, USA. */
40963 +
40964 +#include "bfin-defs.h"
40965 +
40966 +#define REG_T Register *
40967 +
40968 +INSTR_T
40969 +bfin_gen_dsp32mac (int op1, int mm, int mmod, int w1, int p,
40970 + int h01, int h11, int h00, int h10,
40971 + int op0, REG_T dst, REG_T src0, REG_T src1, int w0);
40972 +
40973 +INSTR_T
40974 +bfin_gen_dsp32mult (int op1, int mm, int mmod, int w1, int p,
40975 + int h01, int h11, int h00, int h10,
40976 + int op0, REG_T dst, REG_T src0, REG_T src1, int w0);
40977 +
40978 +INSTR_T
40979 +bfin_gen_dsp32alu (int HL, int aopcde, int aop, int s, int x,
40980 + REG_T dst0, REG_T dst1, REG_T src0, REG_T src1);
40981 +
40982 +INSTR_T
40983 +bfin_gen_dsp32shift (int sopcde, REG_T dst0, REG_T src0, REG_T src1,
40984 + int sop, int hls);
40985 +
40986 +INSTR_T
40987 +bfin_gen_dsp32shiftimm (int sopcde, REG_T dst0, int immag, REG_T src1,
40988 + int sop, int hls);
40989 +
40990 +INSTR_T
40991 +bfin_gen_ldimmhalf (REG_T reg, int h, int s, int z, Expr_Node *hword,
40992 + int reloc);
40993 +
40994 +INSTR_T
40995 +bfin_gen_ldstidxi (REG_T ptr, REG_T reg, int w, int sz, int z,
40996 + Expr_Node *offset);
40997 +
40998 +INSTR_T
40999 +bfin_gen_ldst (REG_T ptr, REG_T reg, int aop, int sz, int z, int w);
41000 +
41001 +INSTR_T
41002 +bfin_gen_ldstii (REG_T ptr, REG_T reg, Expr_Node *offset, int w, int op);
41003 +
41004 +INSTR_T
41005 +bfin_gen_ldstiifp (REG_T reg, Expr_Node *offset, int w);
41006 +
41007 +INSTR_T
41008 +bfin_gen_ldstpmod (REG_T ptr, REG_T reg, int aop, int w, REG_T idx);
41009 +
41010 +INSTR_T
41011 +bfin_gen_dspldst (REG_T i, REG_T reg, int aop, int w, int m);
41012 +
41013 +INSTR_T
41014 +bfin_gen_alu2op (REG_T dst, REG_T src, int opc);
41015 +
41016 +INSTR_T
41017 +bfin_gen_compi2opd (REG_T dst, int src, int op);
41018 +
41019 +INSTR_T
41020 +bfin_gen_compi2opp (REG_T dst, int src, int op);
41021 +
41022 +INSTR_T
41023 +bfin_gen_dagmodik (REG_T i, int op);
41024 +
41025 +INSTR_T
41026 +bfin_gen_dagmodim (REG_T i, REG_T m, int op, int br);
41027 +
41028 +INSTR_T
41029 +bfin_gen_ptr2op (REG_T dst, REG_T src, int opc);
41030 +
41031 +INSTR_T
41032 +bfin_gen_logi2op (int dst, int src, int opc);
41033 +
41034 +INSTR_T
41035 +bfin_gen_comp3op (REG_T src0, REG_T src1, REG_T dst, int opc);
41036 +
41037 +INSTR_T
41038 +bfin_gen_ccmv (REG_T src, REG_T dst, int t);
41039 +
41040 +INSTR_T
41041 +bfin_gen_ccflag (REG_T x, int y, int opc, int i, int g);
41042 +
41043 +INSTR_T
41044 +bfin_gen_cc2stat (int cbit, int op, int d);
41045 +
41046 +INSTR_T
41047 +bfin_gen_regmv (REG_T src, REG_T dst);
41048 +
41049 +INSTR_T
41050 +bfin_gen_cc2dreg (int op, REG_T reg);
41051 +
41052 +INSTR_T
41053 +bfin_gen_brcc (int t, int b, Expr_Node *offset);
41054 +
41055 +INSTR_T
41056 +bfin_gen_ujump (Expr_Node *offset);
41057 +
41058 +INSTR_T
41059 +bfin_gen_cactrl (REG_T reg, int a, int op);
41060 +
41061 +INSTR_T
41062 +bfin_gen_progctrl (int prgfunc, int poprnd);
41063 +
41064 +INSTR_T
41065 +bfin_gen_loopsetup (Expr_Node *soffset, REG_T c, int rop,
41066 + Expr_Node *eoffset, REG_T reg);
41067 +
41068 +INSTR_T
41069 +bfin_gen_loop (Expr_Node *expr, REG_T reg, int rop, REG_T preg);
41070 +
41071 +INSTR_T
41072 +bfin_gen_pushpopmultiple (int dr, int pr, int d, int p, int w);
41073 +
41074 +INSTR_T
41075 +bfin_gen_pushpopreg (REG_T reg, int w);
41076 +
41077 +INSTR_T
41078 +bfin_gen_calla (Expr_Node *addr, int s);
41079 +
41080 +INSTR_T
41081 +bfin_gen_linkage (int r, int framesize);
41082 +
41083 +INSTR_T
41084 +bfin_gen_pseudodbg (int fn, int reg, int grp);
41085 +
41086 +INSTR_T
41087 +bfin_gen_pseudodbg_assert (int dbgop, REG_T regtest, int expected);
41088 +
41089 +bfd_boolean
41090 +bfin_resource_conflict (INSTR_T dsp32, INSTR_T dsp16_grp1, INSTR_T dsp16_grp2);
41091 +
41092 +INSTR_T
41093 +bfin_gen_multi_instr (INSTR_T dsp32, INSTR_T dsp16_grp1, INSTR_T dsp16_grp2);
41094 diff -Nrup binutils-2.17/gas/config/tc-avr32.c binutils-2.17.atmel.1.3.0/gas/config/tc-avr32.c
41095 --- binutils-2.17/gas/config/tc-avr32.c 1970-01-01 01:00:00.000000000 +0100
41096 +++ binutils-2.17.atmel.1.3.0/gas/config/tc-avr32.c 2007-09-28 10:30:46.000000000 +0200
41097 @@ -0,0 +1,4726 @@
41098 +/* Assembler implementation for AVR32.
41099 + Copyright 2003-2006 Atmel Corporation.
41100 +
41101 + Written by Haavard Skinnemoen, Atmel Norway, <hskinnemoen@atmel.com>
41102 +
41103 + This file is part of GAS, the GNU Assembler.
41104 +
41105 + GAS is free software; you can redistribute it and/or modify it
41106 + under the terms of the GNU General Public License as published by
41107 + the Free Software Foundation; either version 2, or (at your option)
41108 + any later version.
41109 +
41110 + GAS is distributed in the hope that it will be useful, but WITHOUT
41111 + ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
41112 + or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
41113 + License for more details.
41114 +
41115 + You should have received a copy of the GNU General Public License
41116 + along with GAS; see the file COPYING. If not, write to the Free
41117 + Software Foundation, 59 Temple Place - Suite 330, Boston, MA
41118 + 02111-1307, USA. */
41119 +
41120 +#include <stdio.h>
41121 +#include "as.h"
41122 +#include "safe-ctype.h"
41123 +#include "subsegs.h"
41124 +#include "symcat.h"
41125 +#include "opcodes/avr32-opc.h"
41126 +#include "opcodes/avr32-asm.h"
41127 +#include "elf/avr32.h"
41128 +#include "dwarf2dbg.h"
41129 +
41130 +#define xDEBUG
41131 +#define xOPC_CONSISTENCY_CHECK
41132 +
41133 +#ifdef DEBUG
41134 +# define pr_debug(fmt, args...) fprintf(stderr, fmt, ##args)
41135 +#else
41136 +# define pr_debug(fmt, args...)
41137 +#endif
41138 +
41139 +/* 3 MSB of instruction word indicate group. Group 7 -> extended */
41140 +#define AVR32_COMPACT_P(opcode) ((opcode[0] & 0xe0) != 0xe0)
41141 +
41142 +#define streq(a, b) (strcmp(a, b) == 0)
41143 +#define skip_whitespace(str) do { while(*(str) == ' ') ++(str); } while(0)
41144 +
41145 +/* Flags given on the command line */
41146 +static int avr32_pic = FALSE;
41147 +int linkrelax = FALSE;
41148 +int avr32_iarcompat = FALSE;
41149 +int allow_direct_data_refs = FALSE;
41150 +
41151 +/* This array holds the chars that always start a comment. */
41152 +const char comment_chars[] = "#";
41153 +
41154 +/* This array holds the chars that only start a comment at the
41155 + beginning of a line. We must include '#' here because the compiler
41156 + may produce #APP and #NO_APP in its output. */
41157 +const char line_comment_chars[] = "#";
41158 +
41159 +/* These may be used instead of newline (same as ';' in C). */
41160 +const char line_separator_chars[] = ";";
41161 +
41162 +/* Chars that can be used to separate mantissa from exponent in
41163 + floating point numbers. */
41164 +const char EXP_CHARS[] = "eE";
41165 +
41166 +/* Chars that mean this number is a floating point constant. */
41167 +const char FLT_CHARS[] = "dD";
41168 +
41169 +/* Pre-defined "_GLOBAL_OFFSET_TABLE_" */
41170 +symbolS *GOT_symbol;
41171 +
41172 +static struct hash_control *avr32_mnemonic_htab;
41173 +
41174 +struct avr32_ifield_data
41175 +{
41176 + bfd_vma value;
41177 + /* FIXME: Get rid of align_order and complain. complain is never
41178 + used, align_order is used in one place. Try to use the relax
41179 + table instead. */
41180 + unsigned int align_order;
41181 +};
41182 +
41183 +struct avr32_insn
41184 +{
41185 + const struct avr32_syntax *syntax;
41186 + expressionS immediate;
41187 + int pcrel;
41188 + int force_extended;
41189 + unsigned int next_slot;
41190 + bfd_reloc_code_real_type r_type;
41191 + struct avr32_ifield_data field_value[AVR32_MAX_FIELDS];
41192 +};
41193 +
41194 +static struct avr32_insn current_insn;
41195 +
41196 +/* The target specific pseudo-ops we support. */
41197 +static void s_rseg (int);
41198 +static void s_cpool(int);
41199 +
41200 +const pseudo_typeS md_pseudo_table[] =
41201 +{
41202 + /* Make sure that .word is 32 bits */
41203 + { "word", cons, 4 },
41204 + { "file", (void (*) PARAMS ((int))) dwarf2_directive_file, 0 },
41205 + { "loc", dwarf2_directive_loc, 0 },
41206 +
41207 + /* .lcomm requires an explicit alignment parameter */
41208 + { "lcomm", s_lcomm, 1 },
41209 +
41210 + /* AVR32-specific pseudo-ops */
41211 + { "cpool", s_cpool, 0},
41212 +
41213 + /* IAR compatible pseudo-ops */
41214 + { "program", s_ignore, 0 },
41215 + { "public", s_globl, 0 },
41216 + { "extern", s_ignore, 0 },
41217 + { "module", s_ignore, 0 },
41218 + { "rseg", s_rseg, 0 },
41219 + { "dc8", cons, 1 },
41220 + { "dc16", cons, 2 },
41221 + { "dc32", cons, 4 },
41222 +
41223 + { NULL, NULL, 0 }
41224 +};
41225 +
41226 +/* Questionable stuff starts here */
41227 +
41228 +enum avr32_opinfo {
41229 + AVR32_OPINFO_NONE = BFD_RELOC_NONE,
41230 + AVR32_OPINFO_GOT,
41231 + AVR32_OPINFO_TLSGD,
41232 + AVR32_OPINFO_HI,
41233 + AVR32_OPINFO_LO,
41234 +};
41235 +
41236 +enum avr32_arch {
41237 + ARCH_TYPE_AP,
41238 + ARCH_TYPE_UC
41239 +};
41240 +
41241 +struct arch_type_s
41242 +{
41243 + /* Architecture name */
41244 + char *name;
41245 + /* Instruction Set Architecture Flags */
41246 + unsigned long isa_flags;
41247 +};
41248 +
41249 +struct part_type_s
41250 +{
41251 + /* Part name */
41252 + char *name;
41253 + /* Architecture type */
41254 + unsigned int arch;
41255 +};
41256 +
41257 +static struct arch_type_s arch_types[] =
41258 +{
41259 + {"ap", AVR32_V1 | AVR32_SIMD | AVR32_DSP | AVR32_PICO},
41260 + {"uc", AVR32_V1 | AVR32_DSP | AVR32_RMW},
41261 + {"all-insn", AVR32_V1 | AVR32_SIMD | AVR32_DSP | AVR32_RMW | AVR32_FP | AVR32_PICO},
41262 + {NULL, 0}
41263 +};
41264 +
41265 +static struct part_type_s part_types[] = {
41266 + {"ap7000", ARCH_TYPE_AP},
41267 + {"ap7010", ARCH_TYPE_AP},
41268 + {"ap7020", ARCH_TYPE_AP},
41269 + {"uc3a0256", ARCH_TYPE_UC},
41270 + {"uc3a0512", ARCH_TYPE_UC},
41271 + {"uc3a1128", ARCH_TYPE_UC},
41272 + {"uc3a1256", ARCH_TYPE_UC},
41273 + {"uc3a1512", ARCH_TYPE_UC},
41274 + {"uc3b064", ARCH_TYPE_UC},
41275 + {"uc3b0128", ARCH_TYPE_UC},
41276 + {"uc3b0256", ARCH_TYPE_UC},
41277 + {"uc3b164", ARCH_TYPE_UC},
41278 + {"uc3b1128", ARCH_TYPE_UC},
41279 + {"uc3b1256", ARCH_TYPE_UC},
41280 + {NULL, 0}
41281 +};
41282 +
41283 +/* Current architecture type. */
41284 +static struct arch_type_s default_arch = {"all-insn", AVR32_V1 | AVR32_SIMD | AVR32_DSP | AVR32_RMW | AVR32_FP | AVR32_PICO };
41285 +static struct arch_type_s *avr32_arch = &default_arch;
41286 +
41287 +/* Display nicely formatted list of known part- and architecture names. */
41288 +
41289 +static void
41290 +show_arch_list (FILE *stream)
41291 +{
41292 + int i, x;
41293 +
41294 + fprintf (stream, _("Known architecture names:"));
41295 + x = 1000;
41296 +
41297 + for (i = 0; arch_types[i].name; i++)
41298 + {
41299 + int len = strlen (arch_types[i].name);
41300 +
41301 + x += len + 1;
41302 +
41303 + if (x < 75)
41304 + fprintf (stream, " %s", arch_types[i].name);
41305 + else
41306 + {
41307 + fprintf (stream, "\n %s", arch_types[i].name);
41308 + x = len + 2;
41309 + }
41310 + }
41311 +
41312 + fprintf (stream, "\n");
41313 +}
41314 +
41315 +static void
41316 +show_part_list (FILE *stream)
41317 +{
41318 + int i, x;
41319 +
41320 + fprintf (stream, _("Known part names:"));
41321 + x = 1000;
41322 +
41323 + for (i = 0; part_types[i].name; i++)
41324 + {
41325 + int len = strlen(part_types[i].name);
41326 +
41327 + x += len + 1;
41328 +
41329 + if (x < 75)
41330 + fprintf (stream, " %s", part_types[i].name);
41331 + else
41332 + {
41333 + fprintf(stream, "\n %s", part_types[i].name);
41334 + x = len + 2;
41335 + }
41336 + }
41337 +
41338 + fprintf (stream, "\n");
41339 +}
41340 +
41341 +const char *md_shortopts = "";
41342 +struct option md_longopts[] =
41343 +{
41344 +#define OPTION_ARCH (OPTION_MD_BASE)
41345 +#define OPTION_PART (OPTION_ARCH + 1)
41346 +#define OPTION_IAR (OPTION_PART + 1)
41347 +#define OPTION_PIC (OPTION_IAR + 1)
41348 +#define OPTION_NOPIC (OPTION_PIC + 1)
41349 +#define OPTION_LINKRELAX (OPTION_NOPIC + 1)
41350 +#define OPTION_NOLINKRELAX (OPTION_LINKRELAX + 1)
41351 +#define OPTION_DIRECT_DATA_REFS (OPTION_NOLINKRELAX + 1)
41352 + {"march", required_argument, NULL, OPTION_ARCH},
41353 + {"mpart", required_argument, NULL, OPTION_PART},
41354 + {"iar", no_argument, NULL, OPTION_IAR},
41355 + {"pic", no_argument, NULL, OPTION_PIC},
41356 + {"no-pic", no_argument, NULL, OPTION_NOPIC},
41357 + {"linkrelax", no_argument, NULL, OPTION_LINKRELAX},
41358 + {"no-linkrelax", no_argument, NULL, OPTION_NOLINKRELAX},
41359 + {"direct-data-refs", no_argument, NULL, OPTION_DIRECT_DATA_REFS},
41360 + /* deprecated alias for -mpart=xxx */
41361 + {"mcpu", required_argument, NULL, OPTION_PART},
41362 + {NULL, no_argument, NULL, 0}
41363 +};
41364 +
41365 +size_t md_longopts_size = sizeof (md_longopts);
41366 +
41367 +void
41368 +md_show_usage (FILE *stream)
41369 +{
41370 + fprintf (stream, _("\
41371 +AVR32 options:\n\
41372 + -march=[arch-name] Select cpu architecture. [Default `all-insn']\n\
41373 + -mpart=[part-name] Select specific part. [Default `none']\n\
41374 + --pic Produce Position-Independent Code\n\
41375 + --no-pic Don't produce Position-Independent Code\n\
41376 + --linkrelax Produce output suitable for linker relaxing\n\
41377 + --no-linkrelax Don't produce output suitable for linker relaxing\n\
41378 + --direct-data-refs Allows direct references (i.e. mov or sub) to the data section\n"));
41379 + show_arch_list(stream);
41380 +}
41381 +
41382 +int
41383 +md_parse_option (int c, char *arg ATTRIBUTE_UNUSED)
41384 +{
41385 + switch (c)
41386 + {
41387 + case OPTION_ARCH:
41388 + {
41389 + int i;
41390 + char *s = alloca (strlen (arg) + 1);
41391 +
41392 + {
41393 + char *t = s;
41394 + char *arg1 = arg;
41395 +
41396 + do
41397 + *t = TOLOWER (*arg1++);
41398 + while (*t++);
41399 + }
41400 +
41401 + for (i = 0; arch_types[i].name; ++i)
41402 + if (strcmp (arch_types[i].name, s) == 0)
41403 + break;
41404 +
41405 + if (!arch_types[i].name)
41406 + {
41407 + show_arch_list (stderr);
41408 + as_fatal (_("unknown architecture: %s\n"), arg);
41409 + }
41410 +
41411 + avr32_arch = &arch_types[i];
41412 + break;
41413 + }
41414 + case OPTION_PART:
41415 + {
41416 + int i;
41417 + char *s = alloca (strlen (arg) + 1);
41418 + char *t = s;
41419 + char *p = arg;
41420 +
41421 + /* If arch type has already been set, don't bother.
41422 + -march= always overrides -mpart= */
41423 + if (avr32_arch != &default_arch)
41424 + break;
41425 +
41426 + do
41427 + *t = TOLOWER (*p++);
41428 + while (*t++);
41429 +
41430 + for (i = 0; part_types[i].name; ++i)
41431 + if (strcmp (part_types[i].name, s) == 0)
41432 + break;
41433 +
41434 + if (!part_types[i].name)
41435 + {
41436 + show_part_list (stderr);
41437 + as_fatal (_("unknown part: %s\n"), arg);
41438 + }
41439 +
41440 + avr32_arch = &arch_types[part_types[i].arch];
41441 + break;
41442 + }
41443 + case OPTION_IAR:
41444 + avr32_iarcompat = 1;
41445 + break;
41446 + case OPTION_PIC:
41447 + avr32_pic = 1;
41448 + break;
41449 + case OPTION_NOPIC:
41450 + avr32_pic = 0;
41451 + break;
41452 + case OPTION_LINKRELAX:
41453 + linkrelax = 1;
41454 + break;
41455 + case OPTION_NOLINKRELAX:
41456 + linkrelax = 0;
41457 + break;
41458 + case OPTION_DIRECT_DATA_REFS:
41459 + allow_direct_data_refs = 1;
41460 + break;
41461 + default:
41462 + return 0;
41463 + }
41464 + return 1;
41465 +}
41466 +
41467 +/* Can't use symbol_new here, so have to create a symbol and then at
41468 + a later date assign it a value. Thats what these functions do.
41469 +
41470 + Shamelessly stolen from ARM. */
41471 +
41472 +static void
41473 +symbol_locate (symbolS * symbolP,
41474 + const char * name, /* It is copied, the caller can modify. */
41475 + segT segment, /* Segment identifier (SEG_<something>). */
41476 + valueT valu, /* Symbol value. */
41477 + fragS * frag) /* Associated fragment. */
41478 +{
41479 + unsigned int name_length;
41480 + char * preserved_copy_of_name;
41481 +
41482 + name_length = strlen (name) + 1; /* +1 for \0. */
41483 + obstack_grow (&notes, name, name_length);
41484 + preserved_copy_of_name = obstack_finish (&notes);
41485 +#ifdef STRIP_UNDERSCORE
41486 + if (preserved_copy_of_name[0] == '_')
41487 + preserved_copy_of_name++;
41488 +#endif
41489 +
41490 +#ifdef tc_canonicalize_symbol_name
41491 + preserved_copy_of_name =
41492 + tc_canonicalize_symbol_name (preserved_copy_of_name);
41493 +#endif
41494 +
41495 + S_SET_NAME (symbolP, preserved_copy_of_name);
41496 +
41497 + S_SET_SEGMENT (symbolP, segment);
41498 + S_SET_VALUE (symbolP, valu);
41499 + symbol_clear_list_pointers (symbolP);
41500 +
41501 + symbol_set_frag (symbolP, frag);
41502 +
41503 + /* Link to end of symbol chain. */
41504 + {
41505 + extern int symbol_table_frozen;
41506 +
41507 + if (symbol_table_frozen)
41508 + abort ();
41509 + }
41510 +
41511 + symbol_append (symbolP, symbol_lastP, & symbol_rootP, & symbol_lastP);
41512 +
41513 + obj_symbol_new_hook (symbolP);
41514 +
41515 +#ifdef tc_symbol_new_hook
41516 + tc_symbol_new_hook (symbolP);
41517 +#endif
41518 +
41519 +#ifdef DEBUG_SYMS
41520 + verify_symbol_chain (symbol_rootP, symbol_lastP);
41521 +#endif /* DEBUG_SYMS */
41522 +}
41523 +
41524 +struct cpool_entry
41525 +{
41526 + int refcount;
41527 + offsetT offset;
41528 + expressionS exp;
41529 +};
41530 +
41531 +struct cpool
41532 +{
41533 + struct cpool *next;
41534 + int used;
41535 + struct cpool_entry *literals;
41536 + unsigned int padding;
41537 + unsigned int next_free_entry;
41538 + unsigned int id;
41539 + symbolS *symbol;
41540 + segT section;
41541 + subsegT sub_section;
41542 +};
41543 +
41544 +struct cpool *cpool_list = NULL;
41545 +
41546 +static struct cpool *
41547 +find_cpool(segT section, subsegT sub_section)
41548 +{
41549 + struct cpool *pool;
41550 +
41551 + for (pool = cpool_list; pool != NULL; pool = pool->next)
41552 + {
41553 + if (!pool->used
41554 + && pool->section == section
41555 + && pool->sub_section == sub_section)
41556 + break;
41557 + }
41558 +
41559 + return pool;
41560 +}
41561 +
41562 +static struct cpool *
41563 +find_or_make_cpool(segT section, subsegT sub_section)
41564 +{
41565 + static unsigned int next_cpool_id = 0;
41566 + struct cpool *pool;
41567 +
41568 + pool = find_cpool(section, sub_section);
41569 +
41570 + if (!pool)
41571 + {
41572 + pool = xmalloc(sizeof(*pool));
41573 + if (!pool)
41574 + return NULL;
41575 +
41576 + pool->used = 0;
41577 + pool->literals = NULL;
41578 + pool->padding = 0;
41579 + pool->next_free_entry = 0;
41580 + pool->section = section;
41581 + pool->sub_section = sub_section;
41582 + pool->next = cpool_list;
41583 + pool->symbol = NULL;
41584 +
41585 + cpool_list = pool;
41586 + }
41587 +
41588 + /* NULL symbol means that the pool is new or has just been emptied. */
41589 + if (!pool->symbol)
41590 + {
41591 + pool->symbol = symbol_create(FAKE_LABEL_NAME, undefined_section,
41592 + 0, &zero_address_frag);
41593 + pool->id = next_cpool_id++;
41594 + }
41595 +
41596 + return pool;
41597 +}
41598 +
41599 +static struct cpool *
41600 +add_to_cpool(expressionS *exp, unsigned int *index, int ref)
41601 +{
41602 + struct cpool *pool;
41603 + unsigned int entry;
41604 +
41605 + pool = find_or_make_cpool(now_seg, now_subseg);
41606 +
41607 + /* Check if this constant is already in the pool. */
41608 + for (entry = 0; entry < pool->next_free_entry; entry++)
41609 + {
41610 + if ((pool->literals[entry].exp.X_op == exp->X_op)
41611 + && (exp->X_op == O_constant)
41612 + && (pool->literals[entry].exp.X_add_number
41613 + == exp->X_add_number)
41614 + && (pool->literals[entry].exp.X_unsigned
41615 + == exp->X_unsigned))
41616 + break;
41617 +
41618 + if ((pool->literals[entry].exp.X_op == exp->X_op)
41619 + && (exp->X_op == O_symbol)
41620 + && (pool->literals[entry].exp.X_add_number
41621 + == exp->X_add_number)
41622 + && (pool->literals[entry].exp.X_add_symbol
41623 + == exp->X_add_symbol)
41624 + && (pool->literals[entry].exp.X_op_symbol
41625 + == exp->X_op_symbol))
41626 + break;
41627 + }
41628 +
41629 + /* Create an entry if we didn't find a match */
41630 + if (entry == pool->next_free_entry)
41631 + {
41632 + pool->literals = xrealloc(pool->literals,
41633 + sizeof(struct cpool_entry) * (entry + 1));
41634 + pool->literals[entry].exp = *exp;
41635 + pool->literals[entry].refcount = 0;
41636 + pool->next_free_entry++;
41637 + }
41638 +
41639 + if (index)
41640 + *index = entry;
41641 + if (ref)
41642 + pool->literals[entry].refcount++;
41643 +
41644 + return pool;
41645 +}
41646 +
41647 +struct avr32_operand
41648 +{
41649 + int id;
41650 + int is_signed;
41651 + int is_pcrel;
41652 + int align_order;
41653 + int (*match)(char *str);
41654 + void (*parse)(const struct avr32_operand *op, char *str, int opindex);
41655 +};
41656 +
41657 +static int
41658 +match_anything(char *str ATTRIBUTE_UNUSED)
41659 +{
41660 + return 1;
41661 +}
41662 +
41663 +static int
41664 +match_intreg(char *str)
41665 +{
41666 + int regid, ret = 1;
41667 +
41668 + regid = avr32_parse_intreg(str);
41669 + if (regid < 0)
41670 + ret = 0;
41671 +
41672 + pr_debug("match_intreg: `%s': %d\n", str, ret);
41673 +
41674 + return ret;
41675 +}
41676 +
41677 +static int
41678 +match_intreg_predec(char *str)
41679 +{
41680 + int regid;
41681 +
41682 + if (str[0] != '-' || str[1] != '-')
41683 + return 0;
41684 +
41685 + regid = avr32_parse_intreg(str + 2);
41686 + if (regid < 0)
41687 + return 0;
41688 +
41689 + return 1;
41690 +}
41691 +
41692 +static int
41693 +match_intreg_postinc(char *str)
41694 +{
41695 + int regid, ret = 1;
41696 + char *p, c;
41697 +
41698 + for (p = str; *p; p++)
41699 + if (*p == '+')
41700 + break;
41701 +
41702 + if (p[0] != '+' || p[1] != '+')
41703 + return 0;
41704 +
41705 + c = *p, *p = 0;
41706 + regid = avr32_parse_intreg(str);
41707 + if (regid < 0)
41708 + ret = 0;
41709 +
41710 + *p = c;
41711 + return ret;
41712 +}
41713 +
41714 +static int
41715 +match_intreg_lsl(char *str)
41716 +{
41717 + int regid, ret = 1;
41718 + char *p, c;
41719 +
41720 + for (p = str; *p; p++)
41721 + if (*p == '<')
41722 + break;
41723 +
41724 + if (p[0] && p[1] != '<')
41725 + return 0;
41726 +
41727 + c = *p, *p = 0;
41728 + regid = avr32_parse_intreg(str);
41729 + if (regid < 0)
41730 + ret = 0;
41731 +
41732 + *p = c;
41733 + return ret;
41734 +}
41735 +
41736 +static int
41737 +match_intreg_lsr(char *str)
41738 +{
41739 + int regid, ret = 1;
41740 + char *p, c;
41741 +
41742 + for (p = str; *p; p++)
41743 + if (*p == '>')
41744 + break;
41745 +
41746 + if (p[0] && p[1] != '>')
41747 + return 0;
41748 +
41749 + c = *p, *p = 0;
41750 +
41751 + regid = avr32_parse_intreg(str);
41752 + if (regid < 0)
41753 + ret = 0;
41754 +
41755 + *p = c;
41756 + return ret;
41757 +}
41758 +
41759 +static int
41760 +match_intreg_part(char *str)
41761 +{
41762 + int regid, ret = 1;
41763 + char *p, c;
41764 +
41765 + for (p = str; *p; p++)
41766 + if (*p == ':')
41767 + break;
41768 +
41769 + if (p[0] != ':' || !ISPRINT(p[1]) || p[2] != '\0')
41770 + return 0;
41771 +
41772 + c = *p, *p = 0;
41773 + regid = avr32_parse_intreg(str);
41774 + if (regid < 0)
41775 + ret = 0;
41776 +
41777 + *p = c;
41778 +
41779 + return ret;
41780 +}
41781 +
41782 +#define match_intreg_disp match_anything
41783 +
41784 +static int
41785 +match_intreg_index(char *str)
41786 +{
41787 + int regid, ret = 1;
41788 + char *p, *end, c;
41789 +
41790 + for (p = str; *p; p++)
41791 + if (*p == '[')
41792 + break;
41793 +
41794 + /* don't allow empty displacement here (it makes no sense) */
41795 + if (p[0] != '[')
41796 + return 0;
41797 +
41798 + for (end = p + 1; *end; end++) ;
41799 + if (*(--end) != ']')
41800 + return 0;
41801 +
41802 + c = *end, *end = 0;
41803 + if (!match_intreg_lsl(p + 1))
41804 + ret = 0;
41805 + *end = c;
41806 +
41807 + if (ret)
41808 + {
41809 + c = *p, *p = 0;
41810 + regid = avr32_parse_intreg(str);
41811 + if (regid < 0)
41812 + ret = 0;
41813 + *p = c;
41814 + }
41815 +
41816 + return ret;
41817 +}
41818 +
41819 +static int
41820 +match_intreg_xindex(char *str)
41821 +{
41822 + int regid, ret = 1;
41823 + char *p, *end, c;
41824 +
41825 + for (p = str; *p; p++)
41826 + if (*p == '[')
41827 + break;
41828 +
41829 + /* empty displacement makes no sense here either */
41830 + if (p[0] != '[')
41831 + return 0;
41832 +
41833 + for (end = p + 1; *end; end++)
41834 + if (*end == '<')
41835 + break;
41836 +
41837 + if (!streq(end, "<<2]"))
41838 + return 0;
41839 +
41840 + c = *end, *end = 0;
41841 + if (!match_intreg_part(p + 1))
41842 + ret = 0;
41843 + *end = c;
41844 +
41845 + if (ret)
41846 + {
41847 + c = *p, *p = 0;
41848 + regid = avr32_parse_intreg(str);
41849 + if (regid < 0)
41850 + ret = 0;
41851 + *p = c;
41852 + }
41853 +
41854 + return ret;
41855 +}
41856 +
41857 +/* The PC_UDISP_W operator may show up as a label or as a pc[disp]
41858 + expression. So there's no point in attempting to match this... */
41859 +#define match_pc_disp match_anything
41860 +
41861 +static int
41862 +match_sp(char *str)
41863 +{
41864 + /* SP in any form will do */
41865 + return avr32_parse_intreg(str) == AVR32_REG_SP;
41866 +}
41867 +
41868 +static int
41869 +match_sp_disp(char *str)
41870 +{
41871 + int regid, ret = 1;
41872 + char *p, c;
41873 +
41874 + for (p = str; *p; p++)
41875 + if (*p == '[')
41876 + break;
41877 +
41878 + /* allow empty displacement, meaning zero */
41879 + if (p[0] == '[')
41880 + {
41881 + char *end;
41882 + for (end = p + 1; *end; end++) ;
41883 + if (end[-1] != ']')
41884 + return 0;
41885 + }
41886 +
41887 + c = *p, *p = 0;
41888 + regid = avr32_parse_intreg(str);
41889 + if (regid != AVR32_REG_SP)
41890 + ret = 0;
41891 +
41892 + *p = c;
41893 + return ret;
41894 +}
41895 +
41896 +static int
41897 +match_cpno(char *str)
41898 +{
41899 + if (strncasecmp(str, "cp", 2) != 0)
41900 + return 0;
41901 + return 1;
41902 +}
41903 +
41904 +static int
41905 +match_cpreg(char *str)
41906 +{
41907 + if (strncasecmp(str, "cr", 2) != 0)
41908 + return 0;
41909 + return 1;
41910 +}
41911 +
41912 +/* We allow complex expressions, and register names may show up as
41913 + symbols. Just make sure immediate expressions are always matched
41914 + last. */
41915 +#define match_const match_anything
41916 +#define match_jmplabel match_anything
41917 +#define match_number match_anything
41918 +
41919 +/* Mnemonics that take reglists never accept anything else */
41920 +#define match_reglist8 match_anything
41921 +#define match_reglist9 match_anything
41922 +#define match_reglist16 match_anything
41923 +#define match_reglist_ldm match_anything
41924 +#define match_reglist_cp8 match_anything
41925 +#define match_reglist_cpd8 match_anything
41926 +
41927 +/* Ditto for retval, jospinc and mcall */
41928 +#define match_retval match_anything
41929 +#define match_jospinc match_anything
41930 +#define match_mcall match_anything
41931 +
41932 +/* COH is used to select between two different syntaxes */
41933 +static int
41934 +match_coh(char *str)
41935 +{
41936 + return strcasecmp(str, "coh") == 0;
41937 +}
41938 +
41939 +static int
41940 +match_fpreg(char *str)
41941 +{
41942 + unsigned long regid;
41943 + char *endptr;
41944 +
41945 + if ((str[0] != 'f' && str[0] != 'F')
41946 + || (str[1] != 'r' && str[1] != 'R'))
41947 + return 0;
41948 +
41949 + str += 2;
41950 + regid = strtoul(str, &endptr, 10);
41951 + if (!*str || *endptr)
41952 + return 0;
41953 +
41954 + return 1;
41955 +}
41956 +
41957 +static int
41958 +match_picoreg(char *str)
41959 +{
41960 + int regid;
41961 +
41962 + regid = avr32_parse_picoreg(str);
41963 + if (regid < 0)
41964 + return 0;
41965 + return 1;
41966 +}
41967 +
41968 +#define match_pico_reglist_w match_anything
41969 +#define match_pico_reglist_d match_anything
41970 +
41971 +static int
41972 +match_pico_in(char *str)
41973 +{
41974 + unsigned long regid;
41975 + char *end;
41976 +
41977 + if (strncasecmp(str, "in", 2) != 0)
41978 + return 0;
41979 +
41980 + str += 2;
41981 + regid = strtoul(str, &end, 10);
41982 + if (!*str || *end)
41983 + return 0;
41984 +
41985 + return 1;
41986 +}
41987 +
41988 +static int
41989 +match_pico_out0(char *str)
41990 +{
41991 + if (strcasecmp(str, "out0") != 0)
41992 + return 0;
41993 + return 1;
41994 +}
41995 +
41996 +static int
41997 +match_pico_out1(char *str)
41998 +{
41999 + if (strcasecmp(str, "out1") != 0)
42000 + return 0;
42001 + return 1;
42002 +}
42003 +
42004 +static int
42005 +match_pico_out2(char *str)
42006 +{
42007 + if (strcasecmp(str, "out2") != 0)
42008 + return 0;
42009 + return 1;
42010 +}
42011 +
42012 +static int
42013 +match_pico_out3(char *str)
42014 +{
42015 + if (strcasecmp(str, "out3") != 0)
42016 + return 0;
42017 + return 1;
42018 +}
42019 +
42020 +static void parse_nothing(const struct avr32_operand *op ATTRIBUTE_UNUSED,
42021 + char *str ATTRIBUTE_UNUSED,
42022 + int opindex ATTRIBUTE_UNUSED)
42023 +{
42024 + /* Do nothing (this is used for "match-only" operands like COH) */
42025 +}
42026 +
42027 +static void
42028 +parse_const(const struct avr32_operand *op, char *str,
42029 + int opindex ATTRIBUTE_UNUSED)
42030 +{
42031 + expressionS *exp = &current_insn.immediate;
42032 + expressionS *sym_exp;
42033 + int slot;
42034 + char *save;
42035 +
42036 + pr_debug("parse_const: `%s' (signed: %d, pcrel: %d, align: %d)\n",
42037 + str, op->is_signed, op->is_pcrel, op->align_order);
42038 +
42039 + save = input_line_pointer;
42040 + input_line_pointer = str;
42041 +
42042 + expression(exp);
42043 +
42044 + slot = current_insn.next_slot++;
42045 + current_insn.field_value[slot].align_order = op->align_order;
42046 + current_insn.pcrel = op->is_pcrel;
42047 +
42048 + switch (exp->X_op)
42049 + {
42050 + case O_illegal:
42051 + as_bad(_("illegal operand"));
42052 + break;
42053 + case O_absent:
42054 + as_bad(_("missing operand"));
42055 + break;
42056 + case O_constant:
42057 + pr_debug(" -> constant: %ld\n", (long)exp->X_add_number);
42058 + current_insn.field_value[slot].value = exp->X_add_number;
42059 + break;
42060 + case O_uminus:
42061 + pr_debug(" -> uminus\n");
42062 + sym_exp = symbol_get_value_expression(exp->X_add_symbol);
42063 + switch (sym_exp->X_op) {
42064 + case O_subtract:
42065 + pr_debug(" -> subtract: switching operands\n");
42066 + exp->X_op_symbol = sym_exp->X_add_symbol;
42067 + exp->X_add_symbol = sym_exp->X_op_symbol;
42068 + exp->X_op = O_subtract;
42069 + /* TODO: Remove the old X_add_symbol */
42070 + break;
42071 + default:
42072 + as_bad(_("Expression too complex\n"));
42073 + break;
42074 + }
42075 + break;
42076 +#if 0
42077 + case O_subtract:
42078 + /* Any expression subtracting a symbol from the current section
42079 + can be made PC-relative by adding the right offset. */
42080 + if (S_GET_SEGMENT(exp->X_op_symbol) == now_seg)
42081 + current_insn.pcrel = TRUE;
42082 + pr_debug(" -> subtract: pcrel? %s\n",
42083 + current_insn.pcrel ? "yes" : "no");
42084 + /* fall through */
42085 +#endif
42086 + default:
42087 + pr_debug(" -> (%p <%d> %p + %d)\n",
42088 + exp->X_add_symbol, exp->X_op, exp->X_op_symbol,
42089 + exp->X_add_number);
42090 + current_insn.field_value[slot].value = 0;
42091 + break;
42092 + }
42093 +
42094 + input_line_pointer = save;
42095 +}
42096 +
42097 +static void
42098 +parse_jmplabel(const struct avr32_operand *op, char *str,
42099 + int opindex ATTRIBUTE_UNUSED)
42100 +{
42101 + expressionS *exp = &current_insn.immediate;
42102 + int slot;
42103 + char *save;
42104 +
42105 + pr_debug("parse_jmplabel: `%s' (signed: %d, pcrel: %d, align: %d)\n",
42106 + str, op->is_signed, op->is_pcrel, op->align_order);
42107 +
42108 + save = input_line_pointer;
42109 + input_line_pointer = str;
42110 +
42111 + expression(exp);
42112 +
42113 + slot = current_insn.next_slot++;
42114 + current_insn.field_value[slot].align_order = op->align_order;
42115 + current_insn.pcrel = TRUE;
42116 +
42117 + switch (exp->X_op)
42118 + {
42119 + case O_illegal:
42120 + as_bad(_("illegal operand"));
42121 + break;
42122 + case O_absent:
42123 + as_bad(_("missing operand"));
42124 + break;
42125 + case O_constant:
42126 + pr_debug(" -> constant: %ld\n", (long)exp->X_add_number);
42127 + current_insn.field_value[slot].value = exp->X_add_number;
42128 + current_insn.pcrel = 0;
42129 + break;
42130 + default:
42131 + pr_debug(" -> (%p <%d> %p + %d)\n",
42132 + exp->X_add_symbol, exp->X_op, exp->X_op_symbol,
42133 + exp->X_add_number);
42134 + current_insn.field_value[slot].value = 0;
42135 + break;
42136 + }
42137 +
42138 + input_line_pointer = save;
42139 +}
42140 +
42141 +static void
42142 +parse_intreg(const struct avr32_operand *op ATTRIBUTE_UNUSED,
42143 + char *str, int opindex ATTRIBUTE_UNUSED)
42144 +{
42145 + int regid, slot;
42146 +
42147 + pr_debug("parse_intreg: `%s'\n", str);
42148 +
42149 + regid = avr32_parse_intreg(str);
42150 + assert(regid >= 0);
42151 +
42152 + slot = current_insn.next_slot++;
42153 + current_insn.field_value[slot].value = regid;
42154 + current_insn.field_value[slot].align_order = op->align_order;
42155 +}
42156 +
42157 +static void
42158 +parse_intreg_predec(const struct avr32_operand *op, char *str, int opindex)
42159 +{
42160 + parse_intreg(op, str + 2, opindex);
42161 +}
42162 +
42163 +static void
42164 +parse_intreg_postinc(const struct avr32_operand *op, char *str, int opindex)
42165 +{
42166 + char *p, c;
42167 +
42168 + pr_debug("parse_intreg_postinc: `%s'\n", str);
42169 +
42170 + for (p = str; *p != '+'; p++) ;
42171 +
42172 + c = *p, *p = 0;
42173 + parse_intreg(op, str, opindex);
42174 + *p = c;
42175 +}
42176 +
42177 +static void
42178 +parse_intreg_shift(const struct avr32_operand *op ATTRIBUTE_UNUSED,
42179 + char *str, int opindex ATTRIBUTE_UNUSED)
42180 +{
42181 + int regid, slot, shift = 0;
42182 + char *p, c;
42183 + char shiftop;
42184 +
42185 + pr_debug("parse Ry<<sa: `%s'\n", str);
42186 +
42187 + for (p = str; *p; p++)
42188 + if (*p == '<' || *p == '>')
42189 + break;
42190 +
42191 + shiftop = *p;
42192 +
42193 + c = *p, *p = 0;
42194 + regid = avr32_parse_intreg(str);
42195 + assert(regid >= 0);
42196 + *p = c;
42197 +
42198 + if (c)
42199 + {
42200 + if (p[0] != shiftop || p[1] != shiftop)
42201 + as_bad(_("expected shift operator in `%s'"), p);
42202 + else
42203 + {
42204 + expressionS exp;
42205 + char *saved;
42206 +
42207 + saved = input_line_pointer;
42208 + input_line_pointer = p + 2;
42209 + expression(&exp);
42210 + input_line_pointer = saved;
42211 +
42212 + if (exp.X_op != O_constant)
42213 + as_bad(_("shift amount must be a numeric constant"));
42214 + else
42215 + shift = exp.X_add_number;
42216 + }
42217 + }
42218 +
42219 + slot = current_insn.next_slot++;
42220 + current_insn.field_value[slot].value = regid;
42221 + slot = current_insn.next_slot++;
42222 + current_insn.field_value[slot].value = shift;
42223 +}
42224 +
42225 +/* The match() function selected the right opcode, so it doesn't
42226 + matter which way we shift any more. */
42227 +#define parse_intreg_lsl parse_intreg_shift
42228 +#define parse_intreg_lsr parse_intreg_shift
42229 +
42230 +static void
42231 +parse_intreg_part(const struct avr32_operand *op, char *str,
42232 + int opindex ATTRIBUTE_UNUSED)
42233 +{
42234 + static const char bparts[] = { 'b', 'l', 'u', 't' };
42235 + static const char hparts[] = { 'b', 't' };
42236 + unsigned int slot, sel;
42237 + int regid;
42238 + char *p, c;
42239 +
42240 + pr_debug("parse reg:part `%s'\n", str);
42241 +
42242 + for (p = str; *p; p++)
42243 + if (*p == ':')
42244 + break;
42245 +
42246 + c = *p, *p = 0;
42247 + regid = avr32_parse_intreg(str);
42248 + assert(regid >= 0);
42249 + *p = c;
42250 +
42251 + assert(c == ':');
42252 +
42253 + if (op->align_order)
42254 + {
42255 + for (sel = 0; sel < sizeof(hparts); sel++)
42256 + if (TOLOWER(p[1]) == hparts[sel])
42257 + break;
42258 +
42259 + if (sel >= sizeof(hparts))
42260 + {
42261 + as_bad(_("invalid halfword selector `%c' (must be either b or t)"),
42262 + p[1]);
42263 + sel = 0;
42264 + }
42265 + }
42266 + else
42267 + {
42268 + for (sel = 0; sel < sizeof(bparts); sel++)
42269 + if (TOLOWER(p[1]) == bparts[sel])
42270 + break;
42271 +
42272 + if (sel >= sizeof(bparts))
42273 + {
42274 + as_bad(_("invalid byte selector `%c' (must be one of b,l,u,t)"),
42275 + p[1]);
42276 + sel = 0;
42277 + }
42278 + }
42279 +
42280 + slot = current_insn.next_slot++;
42281 + current_insn.field_value[slot].value = regid;
42282 + slot = current_insn.next_slot++;
42283 + current_insn.field_value[slot].value = sel;
42284 +}
42285 +
42286 +/* This is the parser for "Rp[displacement]" expressions. In addition
42287 + to the "official" syntax, we accept a label as a replacement for
42288 + the register expression. This syntax implies Rp=PC and the
42289 + displacement is the pc-relative distance to the label. */
42290 +static void
42291 +parse_intreg_disp(const struct avr32_operand *op, char *str, int opindex)
42292 +{
42293 + expressionS *exp = &current_insn.immediate;
42294 + int slot, regid;
42295 + char *save, *p, c;
42296 +
42297 + pr_debug("parse_intreg_disp: `%s' (signed: %d, pcrel: %d, align: %d)\n",
42298 + str, op->is_signed, op->is_pcrel, op->align_order);
42299 +
42300 + for (p = str; *p; p++)
42301 + if (*p == '[')
42302 + break;
42303 +
42304 + slot = current_insn.next_slot++;
42305 +
42306 + /* First, check if we have a valid register either before '[' or as
42307 + the sole expression. If so, we use the Rp[disp] syntax. */
42308 + c = *p, *p = 0;
42309 + regid = avr32_parse_intreg(str);
42310 + *p = c;
42311 +
42312 + if (regid >= 0)
42313 + {
42314 + current_insn.field_value[slot].value = regid;
42315 +
42316 + slot = current_insn.next_slot++;
42317 + current_insn.field_value[slot].align_order = op->align_order;
42318 +
42319 + if (c == '[')
42320 + {
42321 + save = input_line_pointer;
42322 + input_line_pointer = p + 1;
42323 +
42324 + expression(exp);
42325 +
42326 + if (*input_line_pointer != ']')
42327 + as_bad(_("junk after displacement expression"));
42328 +
42329 + input_line_pointer = save;
42330 +
42331 + switch (exp->X_op)
42332 + {
42333 + case O_illegal:
42334 + as_bad(_("illegal displacement expression"));
42335 + break;
42336 + case O_absent:
42337 + as_bad(_("missing displacement expression"));
42338 + break;
42339 + case O_constant:
42340 + pr_debug(" -> constant: %ld\n", exp->X_add_number);
42341 + current_insn.field_value[slot].value = exp->X_add_number;
42342 + break;
42343 +#if 0
42344 + case O_subtract:
42345 + if (S_GET_SEGMENT(exp->X_op_symbol) == now_seg)
42346 + current_insn.pcrel = TRUE;
42347 + pr_debug(" -> subtract: pcrel? %s\n",
42348 + current_insn.pcrel ? "yes" : "no");
42349 + /* fall through */
42350 +#endif
42351 + default:
42352 + pr_debug(" -> (%p <%d> %p + %d)\n",
42353 + exp->X_add_symbol, exp->X_op, exp->X_op_symbol,
42354 + exp->X_add_number);
42355 + current_insn.field_value[slot].value = 0;
42356 + }
42357 + }
42358 + else
42359 + {
42360 + exp->X_op = O_constant;
42361 + exp->X_add_number = 0;
42362 + current_insn.field_value[slot].value = 0;
42363 + }
42364 + }
42365 + else
42366 + {
42367 + /* Didn't find a valid register. Try parsing it as a label. */
42368 + current_insn.field_value[slot].value = AVR32_REG_PC;
42369 + parse_jmplabel(op, str, opindex);
42370 + }
42371 +}
42372 +
42373 +static void
42374 +parse_intreg_index(const struct avr32_operand *op ATTRIBUTE_UNUSED,
42375 + char *str, int opindex ATTRIBUTE_UNUSED)
42376 +{
42377 + int slot, regid;
42378 + char *p, *end, c;
42379 +
42380 + for (p = str; *p; p++)
42381 + if (*p == '[')
42382 + break;
42383 +
42384 + assert(*p);
42385 +
42386 + c = *p, *p = 0;
42387 + regid = avr32_parse_intreg(str);
42388 + assert(regid >= 0);
42389 + *p = c;
42390 +
42391 + slot = current_insn.next_slot++;
42392 + current_insn.field_value[slot].value = regid;
42393 +
42394 + p++;
42395 + for (end = p; *end; end++)
42396 + if (*end == ']' || *end == '<')
42397 + break;
42398 +
42399 + assert(*end);
42400 +
42401 + c = *end, *end = 0;
42402 + regid = avr32_parse_intreg(p);
42403 + assert(regid >= 0);
42404 + *end = c;
42405 +
42406 + slot = current_insn.next_slot++;
42407 + current_insn.field_value[slot].value = regid;
42408 +
42409 + slot = current_insn.next_slot++;
42410 + current_insn.field_value[slot].value = 0;
42411 +
42412 + if (*end == '<')
42413 + {
42414 + expressionS exp;
42415 + char *save;
42416 +
42417 + p = end + 2;
42418 + for (end = p; *end; end++)
42419 + if (*end == ']')
42420 + break;
42421 +
42422 + assert(*end == ']');
42423 +
42424 + c = *end, *end = 0;
42425 + save = input_line_pointer;
42426 + input_line_pointer = p;
42427 + expression(&exp);
42428 +
42429 + if (*input_line_pointer)
42430 + as_bad(_("junk after shift expression"));
42431 +
42432 + *end = c;
42433 + input_line_pointer = save;
42434 +
42435 + if (exp.X_op == O_constant)
42436 + current_insn.field_value[slot].value = exp.X_add_number;
42437 + else
42438 + as_bad(_("shift expression too complex"));
42439 + }
42440 +}
42441 +
42442 +static void
42443 +parse_intreg_xindex(const struct avr32_operand *op, char *str, int opindex)
42444 +{
42445 + int slot, regid;
42446 + char *p, *end, c;
42447 +
42448 + for (p = str; *p; p++)
42449 + if (*p == '[')
42450 + break;
42451 +
42452 + assert(*p);
42453 +
42454 + c = *p, *p = 0;
42455 + regid = avr32_parse_intreg(str);
42456 + assert(regid >= 0);
42457 + *p = c;
42458 +
42459 + slot = current_insn.next_slot++;
42460 + current_insn.field_value[slot].value = regid;
42461 +
42462 + p++;
42463 + for (end = p; *end; end++)
42464 + if (*end == '<')
42465 + break;
42466 +
42467 + assert(*end);
42468 +
42469 + c = *end, *end = 0;
42470 + parse_intreg_part(op, p, opindex);
42471 + *end = c;
42472 +}
42473 +
42474 +static void
42475 +parse_pc_disp(const struct avr32_operand *op, char *str, int opindex)
42476 +{
42477 + char *p, c;
42478 +
42479 + for (p = str; *p; p++)
42480 + if (*p == '[')
42481 + break;
42482 +
42483 + /* The lddpc instruction comes in two different syntax variants:
42484 + lddpc reg, expression
42485 + lddpc reg, pc[disp]
42486 + If the operand contains a '[', we use the second form. */
42487 + if (*p)
42488 + {
42489 + int regid;
42490 +
42491 + c = *p, *p = 0;
42492 + regid = avr32_parse_intreg(str);
42493 + *p = c;
42494 + if (regid == AVR32_REG_PC)
42495 + {
42496 + char *end;
42497 +
42498 + for (end = ++p; *end; end++) ;
42499 + if (*(--end) != ']')
42500 + as_bad(_("unrecognized form of instruction: `%s'"), str);
42501 + else
42502 + {
42503 + c = *end, *end = 0;
42504 + parse_const(op, p, opindex);
42505 + *end = c;
42506 + current_insn.pcrel = 0;
42507 + }
42508 + }
42509 + else
42510 + as_bad(_("unrecognized form of instruction: `%s'"), str);
42511 + }
42512 + else
42513 + {
42514 + parse_jmplabel(op, str, opindex);
42515 + }
42516 +}
42517 +
42518 +static void parse_sp(const struct avr32_operand *op ATTRIBUTE_UNUSED,
42519 + char *str ATTRIBUTE_UNUSED,
42520 + int opindex ATTRIBUTE_UNUSED)
42521 +{
42522 + int slot;
42523 +
42524 + slot = current_insn.next_slot++;
42525 + current_insn.field_value[slot].value = AVR32_REG_SP;
42526 +}
42527 +
42528 +static void
42529 +parse_sp_disp(const struct avr32_operand *op, char *str, int opindex)
42530 +{
42531 + char *p, c;
42532 +
42533 + for (; *str; str++)
42534 + if (*str == '[')
42535 + break;
42536 +
42537 + assert(*str);
42538 +
42539 + for (p = ++str; *p; p++)
42540 + if (*p == ']')
42541 + break;
42542 +
42543 + c = *p, *p = 0;
42544 + parse_const(op, str, opindex);
42545 + *p = c;
42546 +}
42547 +
42548 +static void
42549 +parse_cpno(const struct avr32_operand *op ATTRIBUTE_UNUSED, char *str,
42550 + int opindex ATTRIBUTE_UNUSED)
42551 +{
42552 + int slot;
42553 +
42554 + str += 2;
42555 + if (*str == '#')
42556 + str++;
42557 + if (*str < '0' || *str > '7' || str[1])
42558 + as_bad(_("invalid coprocessor `%s'"), str);
42559 +
42560 + slot = current_insn.next_slot++;
42561 + current_insn.field_value[slot].value = *str - '0';
42562 +}
42563 +
42564 +static void
42565 +parse_cpreg(const struct avr32_operand *op, char *str,
42566 + int opindex ATTRIBUTE_UNUSED)
42567 +{
42568 + unsigned int crid;
42569 + int slot;
42570 + char *endptr;
42571 +
42572 + str += 2;
42573 + crid = strtoul(str, &endptr, 10);
42574 + if (*endptr || crid > 15 || crid & ((1 << op->align_order) - 1))
42575 + as_bad(_("invalid coprocessor register `%s'"), str);
42576 +
42577 + crid >>= op->align_order;
42578 +
42579 + slot = current_insn.next_slot++;
42580 + current_insn.field_value[slot].value = crid;
42581 +}
42582 +
42583 +static void
42584 +parse_number(const struct avr32_operand *op, char *str,
42585 + int opindex ATTRIBUTE_UNUSED)
42586 +{
42587 + expressionS exp;
42588 + int slot;
42589 + char *save;
42590 +
42591 + save = input_line_pointer;
42592 + input_line_pointer = str;
42593 + expression(&exp);
42594 + input_line_pointer = save;
42595 +
42596 + slot = current_insn.next_slot++;
42597 + current_insn.field_value[slot].align_order = op->align_order;
42598 +
42599 + if (exp.X_op == O_constant)
42600 + current_insn.field_value[slot].value = exp.X_add_number;
42601 + else
42602 + as_bad(_("invalid numeric expression `%s'"), str);
42603 +}
42604 +
42605 +static void
42606 +parse_reglist8(const struct avr32_operand *op ATTRIBUTE_UNUSED,
42607 + char *str, int opindex ATTRIBUTE_UNUSED)
42608 +{
42609 + unsigned long regmask;
42610 + unsigned long value = 0;
42611 + int slot;
42612 + char *tail;
42613 +
42614 + regmask = avr32_parse_reglist(str, &tail);
42615 + if (*tail)
42616 + as_bad(_("invalid register list `%s'"), str);
42617 + else
42618 + {
42619 + if (avr32_make_regmask8(regmask, &value))
42620 + as_bad(_("register list `%s' doesn't fit"), str);
42621 + }
42622 +
42623 + slot = current_insn.next_slot++;
42624 + current_insn.field_value[slot].value = value;
42625 +}
42626 +
42627 +static int
42628 +parse_reglist_tail(char *str, unsigned long regmask)
42629 +{
42630 + expressionS exp;
42631 + char *save, *p, c;
42632 + int regid;
42633 +
42634 + for (p = str + 1; *p; p++)
42635 + if (*p == '=')
42636 + break;
42637 +
42638 + if (!*p)
42639 + {
42640 + as_bad(_("invalid register list `%s'"), str);
42641 + return -2;
42642 + }
42643 +
42644 + c = *p, *p = 0;
42645 + regid = avr32_parse_intreg(str);
42646 + *p = c;
42647 +
42648 + if (regid != 12)
42649 + {
42650 + as_bad(_("invalid register list `%s'"), str);
42651 + return -2;
42652 + }
42653 +
42654 + /* If we have an assignment, we must pop PC and we must _not_
42655 + pop LR or R12 */
42656 + if (!(regmask & (1 << AVR32_REG_PC)))
42657 + {
42658 + as_bad(_("return value specified for non-return instruction"));
42659 + return -2;
42660 + }
42661 + else if (regmask & ((1 << AVR32_REG_R12) | (1 << AVR32_REG_LR)))
42662 + {
42663 + as_bad(_("can't pop LR or R12 when specifying return value"));
42664 + return -2;
42665 + }
42666 +
42667 + save = input_line_pointer;
42668 + input_line_pointer = p + 1;
42669 + expression(&exp);
42670 + input_line_pointer = save;
42671 +
42672 + if (exp.X_op != O_constant
42673 + || exp.X_add_number < -1
42674 + || exp.X_add_number > 1)
42675 + {
42676 + as_bad(_("invalid return value `%s'"), str);
42677 + return -2;
42678 + }
42679 +
42680 + return exp.X_add_number;
42681 +}
42682 +
42683 +static void
42684 +parse_reglist9(const struct avr32_operand *op ATTRIBUTE_UNUSED,
42685 + char *str, int opindex ATTRIBUTE_UNUSED)
42686 +{
42687 + unsigned long regmask;
42688 + unsigned long value = 0, kbit = 0;
42689 + int slot;
42690 + char *tail;
42691 +
42692 + regmask = avr32_parse_reglist(str, &tail);
42693 + /* printf("parsed reglist16: %04lx, tail: `%s'\n", regmask, tail); */
42694 + if (*tail)
42695 + {
42696 + int retval;
42697 +
42698 + retval = parse_reglist_tail(tail, regmask);
42699 +
42700 + switch (retval)
42701 + {
42702 + case -1:
42703 + regmask |= 1 << AVR32_REG_LR;
42704 + break;
42705 + case 0:
42706 + break;
42707 + case 1:
42708 + regmask |= 1 << AVR32_REG_R12;
42709 + break;
42710 + default:
42711 + break;
42712 + }
42713 +
42714 + kbit = 1;
42715 + }
42716 +
42717 + if (avr32_make_regmask8(regmask, &value))
42718 + as_bad(_("register list `%s' doesn't fit"), str);
42719 +
42720 +
42721 + slot = current_insn.next_slot++;
42722 + current_insn.field_value[slot].value = (value << 1) | kbit;
42723 +}
42724 +
42725 +static void
42726 +parse_reglist16(const struct avr32_operand *op ATTRIBUTE_UNUSED,
42727 + char *str, int opindex ATTRIBUTE_UNUSED)
42728 +{
42729 + unsigned long regmask;
42730 + int slot;
42731 + char *tail;
42732 +
42733 + regmask = avr32_parse_reglist(str, &tail);
42734 + if (*tail)
42735 + as_bad(_("invalid register list `%s'"), str);
42736 +
42737 + slot = current_insn.next_slot++;
42738 + current_insn.field_value[slot].value = regmask;
42739 +}
42740 +
42741 +static void
42742 +parse_reglist_ldm(const struct avr32_operand *op ATTRIBUTE_UNUSED,
42743 + char *str, int opindex ATTRIBUTE_UNUSED)
42744 +{
42745 + unsigned long regmask;
42746 + int slot, rp, w_bit = 0;
42747 + char *tail, *p, c;
42748 +
42749 + for (p = str; *p && *p != ','; p++)
42750 + if (*p == '+')
42751 + break;
42752 +
42753 + c = *p, *p = 0;
42754 + rp = avr32_parse_intreg(str);
42755 + *p = c;
42756 + if (rp < 0)
42757 + {
42758 + as_bad(_("invalid destination register in `%s'"), str);
42759 + return;
42760 + }
42761 +
42762 + if (p[0] == '+' && p[1] == '+')
42763 + {
42764 + w_bit = 1;
42765 + p += 2;
42766 + }
42767 +
42768 + if (*p != ',')
42769 + {
42770 + as_bad(_("expected `,' after destination register in `%s'"), str);
42771 + return;
42772 + }
42773 +
42774 + str = p + 1;
42775 + regmask = avr32_parse_reglist(str, &tail);
42776 + if (*tail)
42777 + {
42778 + int retval;
42779 +
42780 + if (rp != AVR32_REG_SP)
42781 + {
42782 + as_bad(_("junk at end of line: `%s'"), tail);
42783 + return;
42784 + }
42785 +
42786 + rp = AVR32_REG_PC;
42787 +
42788 + retval = parse_reglist_tail(tail, regmask);
42789 +
42790 + switch (retval)
42791 + {
42792 + case -1:
42793 + regmask |= 1 << AVR32_REG_LR;
42794 + break;
42795 + case 0:
42796 + break;
42797 + case 1:
42798 + regmask |= 1 << AVR32_REG_R12;
42799 + break;
42800 + default:
42801 + return;
42802 + }
42803 + }
42804 +
42805 + slot = current_insn.next_slot++;
42806 + current_insn.field_value[slot].value = rp;
42807 + slot = current_insn.next_slot++;
42808 + current_insn.field_value[slot].value = w_bit;
42809 + slot = current_insn.next_slot++;
42810 + current_insn.field_value[slot].value = regmask;
42811 +}
42812 +
42813 +static void
42814 +parse_reglist_cp8(const struct avr32_operand *op ATTRIBUTE_UNUSED,
42815 + char *str, int opindex ATTRIBUTE_UNUSED)
42816 +{
42817 + unsigned long regmask;
42818 + int slot, h_bit = 0;
42819 + char *tail;
42820 +
42821 + regmask = avr32_parse_cpreglist(str, &tail);
42822 + if (*tail)
42823 + as_bad(_("junk at end of line: `%s'"), tail);
42824 + else if (regmask & 0xffUL)
42825 + {
42826 + if (regmask & 0xff00UL)
42827 + as_bad(_("register list `%s' doesn't fit"), str);
42828 + regmask &= 0xff;
42829 + }
42830 + else if (regmask & 0xff00UL)
42831 + {
42832 + regmask >>= 8;
42833 + h_bit = 1;
42834 + }
42835 + else
42836 + as_warn(_("register list is empty"));
42837 +
42838 + slot = current_insn.next_slot++;
42839 + current_insn.field_value[slot].value = regmask;
42840 + slot = current_insn.next_slot++;
42841 + current_insn.field_value[slot].value = h_bit;
42842 +}
42843 +
42844 +static void
42845 +parse_reglist_cpd8(const struct avr32_operand *op ATTRIBUTE_UNUSED,
42846 + char *str, int opindex ATTRIBUTE_UNUSED)
42847 +{
42848 + unsigned long regmask, regmask_d = 0;
42849 + int slot, i;
42850 + char *tail;
42851 +
42852 + regmask = avr32_parse_cpreglist(str, &tail);
42853 + if (*tail)
42854 + as_bad(_("junk at end of line: `%s'"), tail);
42855 +
42856 + for (i = 0; i < 8; i++)
42857 + {
42858 + if (regmask & 1)
42859 + {
42860 + if (!(regmask & 2))
42861 + {
42862 + as_bad(_("register list `%s' doesn't fit"), str);
42863 + break;
42864 + }
42865 + regmask_d |= 1 << i;
42866 + }
42867 + else if (regmask & 2)
42868 + {
42869 + as_bad(_("register list `%s' doesn't fit"), str);
42870 + break;
42871 + }
42872 +
42873 + regmask >>= 2;
42874 + }
42875 +
42876 + slot = current_insn.next_slot++;
42877 + current_insn.field_value[slot].value = regmask_d;
42878 +}
42879 +
42880 +static void
42881 +parse_retval(const struct avr32_operand *op ATTRIBUTE_UNUSED,
42882 + char *str, int opindex ATTRIBUTE_UNUSED)
42883 +{
42884 + int regid, slot;
42885 +
42886 + regid = avr32_parse_intreg(str);
42887 + if (regid < 0)
42888 + {
42889 + expressionS exp;
42890 + char *save;
42891 +
42892 + regid = 0;
42893 +
42894 + save = input_line_pointer;
42895 + input_line_pointer = str;
42896 + expression(&exp);
42897 + input_line_pointer = save;
42898 +
42899 + if (exp.X_op != O_constant)
42900 + as_bad(_("invalid return value `%s'"), str);
42901 + else
42902 + switch (exp.X_add_number)
42903 + {
42904 + case -1:
42905 + regid = AVR32_REG_LR;
42906 + break;
42907 + case 0:
42908 + regid = AVR32_REG_SP;
42909 + break;
42910 + case 1:
42911 + regid = AVR32_REG_PC;
42912 + break;
42913 + default:
42914 + as_bad(_("invalid return value `%s'"), str);
42915 + break;
42916 + }
42917 + }
42918 +
42919 + slot = current_insn.next_slot++;
42920 + current_insn.field_value[slot].value = regid;
42921 +}
42922 +
42923 +#define parse_mcall parse_intreg_disp
42924 +
42925 +static void
42926 +parse_jospinc(const struct avr32_operand *op ATTRIBUTE_UNUSED,
42927 + char *str, int opindex ATTRIBUTE_UNUSED)
42928 +{
42929 + expressionS exp;
42930 + int slot;
42931 + char *save;
42932 +
42933 + save = input_line_pointer;
42934 + input_line_pointer = str;
42935 + expression(&exp);
42936 + input_line_pointer = save;
42937 +
42938 + slot = current_insn.next_slot++;
42939 +
42940 + if (exp.X_op == O_constant)
42941 + {
42942 + if (exp.X_add_number > 0)
42943 + exp.X_add_number--;
42944 + current_insn.field_value[slot].value = exp.X_add_number;
42945 + }
42946 + else
42947 + as_bad(_("invalid numeric expression `%s'"), str);
42948 +}
42949 +
42950 +#define parse_coh parse_nothing
42951 +
42952 +static void
42953 +parse_fpreg(const struct avr32_operand *op,
42954 + char *str, int opindex ATTRIBUTE_UNUSED)
42955 +{
42956 + unsigned long regid;
42957 + int slot;
42958 +
42959 + regid = strtoul(str + 2, NULL, 10);
42960 +
42961 + if ((regid >= 16) || (regid & ((1 << op->align_order) - 1)))
42962 + as_bad(_("invalid floating-point register `%s'"), str);
42963 +
42964 + slot = current_insn.next_slot++;
42965 + current_insn.field_value[slot].value = regid;
42966 + current_insn.field_value[slot].align_order = op->align_order;
42967 +}
42968 +
42969 +static void
42970 +parse_picoreg(const struct avr32_operand *op,
42971 + char *str, int opindex ATTRIBUTE_UNUSED)
42972 +{
42973 + unsigned long regid;
42974 + int slot;
42975 +
42976 + regid = avr32_parse_picoreg(str);
42977 + if (regid & ((1 << op->align_order) - 1))
42978 + as_bad(_("invalid double-word PiCo register `%s'"), str);
42979 +
42980 + slot = current_insn.next_slot++;
42981 + current_insn.field_value[slot].value = regid;
42982 + current_insn.field_value[slot].align_order = op->align_order;
42983 +}
42984 +
42985 +static void
42986 +parse_pico_reglist_w(const struct avr32_operand *op ATTRIBUTE_UNUSED,
42987 + char *str, int opindex ATTRIBUTE_UNUSED)
42988 +{
42989 + unsigned long regmask;
42990 + int slot, h_bit = 0;
42991 + char *tail;
42992 +
42993 + regmask = avr32_parse_pico_reglist(str, &tail);
42994 + if (*tail)
42995 + as_bad(_("junk at end of line: `%s'"), tail);
42996 +
42997 + if (regmask & 0x00ffUL)
42998 + {
42999 + if (regmask & 0xff00UL)
43000 + as_bad(_("register list `%s' doesn't fit"), str);
43001 + regmask &= 0x00ffUL;
43002 + }
43003 + else if (regmask & 0xff00UL)
43004 + {
43005 + regmask >>= 8;
43006 + h_bit = 1;
43007 + }
43008 + else
43009 + as_warn(_("register list is empty"));
43010 +
43011 + slot = current_insn.next_slot++;
43012 + current_insn.field_value[slot].value = regmask;
43013 + slot = current_insn.next_slot++;
43014 + current_insn.field_value[slot].value = h_bit;
43015 +}
43016 +
43017 +static void
43018 +parse_pico_reglist_d(const struct avr32_operand *op ATTRIBUTE_UNUSED,
43019 + char *str, int opindex ATTRIBUTE_UNUSED)
43020 +{
43021 + unsigned long regmask, regmask_d = 0;
43022 + int slot, i;
43023 + char *tail;
43024 +
43025 + regmask = avr32_parse_pico_reglist(str, &tail);
43026 + if (*tail)
43027 + as_bad(_("junk at end of line: `%s'"), tail);
43028 +
43029 + for (i = 0; i < 8; i++)
43030 + {
43031 + if (regmask & 1)
43032 + {
43033 + if (!(regmask & 2))
43034 + {
43035 + as_bad(_("register list `%s' doesn't fit"), str);
43036 + break;
43037 + }
43038 + regmask_d |= 1 << i;
43039 + }
43040 + else if (regmask & 2)
43041 + {
43042 + as_bad(_("register list `%s' doesn't fit"), str);
43043 + break;
43044 + }
43045 +
43046 + regmask >>= 2;
43047 + }
43048 +
43049 + slot = current_insn.next_slot++;
43050 + current_insn.field_value[slot].value = regmask_d;
43051 +}
43052 +
43053 +static void
43054 +parse_pico_in(const struct avr32_operand *op ATTRIBUTE_UNUSED,
43055 + char *str, int opindex ATTRIBUTE_UNUSED)
43056 +{
43057 + unsigned long regid;
43058 + int slot;
43059 +
43060 + regid = strtoul(str + 2, NULL, 10);
43061 +
43062 + if (regid >= 12)
43063 + as_bad(_("invalid PiCo IN register `%s'"), str);
43064 +
43065 + slot = current_insn.next_slot++;
43066 + current_insn.field_value[slot].value = regid;
43067 + current_insn.field_value[slot].align_order = 0;
43068 +}
43069 +
43070 +#define parse_pico_out0 parse_nothing
43071 +#define parse_pico_out1 parse_nothing
43072 +#define parse_pico_out2 parse_nothing
43073 +#define parse_pico_out3 parse_nothing
43074 +
43075 +#define OP(name, sgn, pcrel, align, func) \
43076 + { AVR32_OPERAND_##name, sgn, pcrel, align, match_##func, parse_##func }
43077 +
43078 +struct avr32_operand avr32_operand_table[] = {
43079 + OP(INTREG, 0, 0, 0, intreg),
43080 + OP(INTREG_PREDEC, 0, 0, 0, intreg_predec),
43081 + OP(INTREG_POSTINC, 0, 0, 0, intreg_postinc),
43082 + OP(INTREG_LSL, 0, 0, 0, intreg_lsl),
43083 + OP(INTREG_LSR, 0, 0, 0, intreg_lsr),
43084 + OP(INTREG_BSEL, 0, 0, 0, intreg_part),
43085 + OP(INTREG_HSEL, 0, 0, 1, intreg_part),
43086 + OP(INTREG_SDISP, 1, 0, 0, intreg_disp),
43087 + OP(INTREG_SDISP_H, 1, 0, 1, intreg_disp),
43088 + OP(INTREG_SDISP_W, 1, 0, 2, intreg_disp),
43089 + OP(INTREG_UDISP, 0, 0, 0, intreg_disp),
43090 + OP(INTREG_UDISP_H, 0, 0, 1, intreg_disp),
43091 + OP(INTREG_UDISP_W, 0, 0, 2, intreg_disp),
43092 + OP(INTREG_INDEX, 0, 0, 0, intreg_index),
43093 + OP(INTREG_XINDEX, 0, 0, 0, intreg_xindex),
43094 + OP(DWREG, 0, 0, 1, intreg),
43095 + OP(PC_UDISP_W, 0, 1, 2, pc_disp),
43096 + OP(SP, 0, 0, 0, sp),
43097 + OP(SP_UDISP_W, 0, 0, 2, sp_disp),
43098 + OP(CPNO, 0, 0, 0, cpno),
43099 + OP(CPREG, 0, 0, 0, cpreg),
43100 + OP(CPREG_D, 0, 0, 1, cpreg),
43101 + OP(UNSIGNED_CONST, 0, 0, 0, const),
43102 + OP(UNSIGNED_CONST_W, 0, 0, 2, const),
43103 + OP(SIGNED_CONST, 1, 0, 0, const),
43104 + OP(SIGNED_CONST_W, 1, 0, 2, const),
43105 + OP(JMPLABEL, 1, 1, 1, jmplabel),
43106 + OP(UNSIGNED_NUMBER, 0, 0, 0, number),
43107 + OP(UNSIGNED_NUMBER_W, 0, 0, 2, number),
43108 + OP(REGLIST8, 0, 0, 0, reglist8),
43109 + OP(REGLIST9, 0, 0, 0, reglist9),
43110 + OP(REGLIST16, 0, 0, 0, reglist16),
43111 + OP(REGLIST_LDM, 0, 0, 0, reglist_ldm),
43112 + OP(REGLIST_CP8, 0, 0, 0, reglist_cp8),
43113 + OP(REGLIST_CPD8, 0, 0, 0, reglist_cpd8),
43114 + OP(RETVAL, 0, 0, 0, retval),
43115 + OP(MCALL, 1, 0, 2, mcall),
43116 + OP(JOSPINC, 0, 0, 0, jospinc),
43117 + OP(COH, 0, 0, 0, coh),
43118 + OP(FPREG_S, 0, 0, 0, fpreg),
43119 + OP(FPREG_D, 0, 0, 1, fpreg),
43120 + OP(PICO_REG_W, 0, 0, 0, picoreg),
43121 + OP(PICO_REG_D, 0, 0, 1, picoreg),
43122 + OP(PICO_REGLIST_W, 0, 0, 0, pico_reglist_w),
43123 + OP(PICO_REGLIST_D, 0, 0, 0, pico_reglist_d),
43124 + OP(PICO_IN, 0, 0, 0, pico_in),
43125 + OP(PICO_OUT0, 0, 0, 0, pico_out0),
43126 + OP(PICO_OUT1, 0, 0, 0, pico_out1),
43127 + OP(PICO_OUT2, 0, 0, 0, pico_out2),
43128 + OP(PICO_OUT3, 0, 0, 0, pico_out3),
43129 +};
43130 +
43131 +symbolS *
43132 +md_undefined_symbol (char *name ATTRIBUTE_UNUSED)
43133 +{
43134 + pr_debug("md_undefined_symbol: %s\n", name);
43135 + return 0;
43136 +}
43137 +
43138 +struct avr32_relax_type
43139 +{
43140 + long lower_bound;
43141 + long upper_bound;
43142 + unsigned char align;
43143 + unsigned char length;
43144 + signed short next;
43145 +};
43146 +
43147 +#define EMPTY { 0, 0, 0, 0, -1 }
43148 +#define C(lower, upper, align, next) \
43149 + { (lower), (upper), (align), 2, AVR32_OPC_##next }
43150 +#define E(lower, upper, align) \
43151 + { (lower), (upper), (align), 4, -1 }
43152 +
43153 +static const struct avr32_relax_type avr32_relax_table[] =
43154 + {
43155 + /* 0 */
43156 + EMPTY, EMPTY, EMPTY, EMPTY, EMPTY, EMPTY, EMPTY, EMPTY,
43157 + EMPTY, EMPTY, EMPTY,
43158 + E(0, 65535, 0), E(0, 65535, 0), E(0, 65535, 0), E(0, 65535, 0),
43159 + EMPTY,
43160 + /* 16 */
43161 + EMPTY, EMPTY, EMPTY, EMPTY,
43162 +
43163 + C(-256, 254, 1, BREQ2), C(-256, 254, 1, BRNE2),
43164 + C(-256, 254, 1, BRCC2), C(-256, 254, 1, BRCS2),
43165 + C(-256, 254, 1, BRGE2), C(-256, 254, 1, BRLT2),
43166 + C(-256, 254, 1, BRMI2), C(-256, 254, 1, BRPL2),
43167 + E(-2097152, 2097150, 1), E(-2097152, 2097150, 1),
43168 + E(-2097152, 2097150, 1), E(-2097152, 2097150, 1),
43169 + /* 32 */
43170 + E(-2097152, 2097150, 1), E(-2097152, 2097150, 1),
43171 + E(-2097152, 2097150, 1), E(-2097152, 2097150, 1),
43172 + E(-2097152, 2097150, 1), E(-2097152, 2097150, 1),
43173 + E(-2097152, 2097150, 1), E(-2097152, 2097150, 1),
43174 + E(-2097152, 2097150, 1), E(-2097152, 2097150, 1),
43175 + E(-2097152, 2097150, 1), E(-2097152, 2097150, 1),
43176 +
43177 + EMPTY, EMPTY, EMPTY, EMPTY,
43178 + /* 48 */
43179 + EMPTY, EMPTY, EMPTY, EMPTY, EMPTY, EMPTY, EMPTY, EMPTY,
43180 + EMPTY, EMPTY, EMPTY,
43181 +
43182 + C(-32, 31, 0, CP_W3), E(-1048576, 1048575, 0),
43183 +
43184 + EMPTY, EMPTY, EMPTY,
43185 + /* 64: csrfcz */
43186 + EMPTY, EMPTY, EMPTY, EMPTY, EMPTY, EMPTY,
43187 + E(0, 65535, 0), E(0, 65535, 0),
43188 + EMPTY, EMPTY, EMPTY, EMPTY, EMPTY, EMPTY, EMPTY,
43189 + E(-32768, 32767, 0),
43190 + /* 80: LD_SB2 */
43191 + EMPTY, EMPTY, EMPTY, EMPTY, EMPTY,
43192 +
43193 + C(0, 7, 0, LD_UB4), E(-32768, 32767, 0),
43194 +
43195 + EMPTY,
43196 + EMPTY, EMPTY,
43197 +
43198 + C(0, 14, 1, LD_SH4), E(-32768, 32767, 0),
43199 +
43200 + EMPTY, EMPTY, EMPTY,
43201 +
43202 + C(0, 14, 1, LD_UH4), E(-32768, 32767, 0),
43203 +
43204 + EMPTY, EMPTY, EMPTY, EMPTY,
43205 +
43206 + C(0, 124, 2, LD_W4), E(-32768, 32767, 0),
43207 +
43208 + E(0, 1020, 2), /* LDC_D1 */
43209 + EMPTY, EMPTY,
43210 + E(0, 1020, 2), /* LDC_W1 */
43211 + EMPTY, EMPTY,
43212 + E(0, 16380, 2), /* LDC0_D */
43213 + E(0, 16380, 2), /* LDC0_W */
43214 + EMPTY, EMPTY, EMPTY, EMPTY,
43215 +
43216 + C(0, 508, 2, LDDPC_EXT), E(-32768, 32767, 0),
43217 +
43218 + EMPTY,
43219 + EMPTY, EMPTY, EMPTY, EMPTY, EMPTY, EMPTY, EMPTY, EMPTY,
43220 + EMPTY, EMPTY, EMPTY, EMPTY, EMPTY, EMPTY, EMPTY, EMPTY,
43221 + /* 128: MACHH_W */
43222 + EMPTY, EMPTY, EMPTY, EMPTY, EMPTY, EMPTY,
43223 + E(-131072, 131068, 2), /* MCALL */
43224 + E(0, 1020, 2), /* MFDR */
43225 + E(0, 1020, 2), /* MFSR */
43226 + EMPTY, EMPTY,
43227 +
43228 + C(-128, 127, 0, MOV2), E(-1048576, 1048575, 0),
43229 +
43230 + EMPTY, EMPTY, EMPTY,
43231 + EMPTY, EMPTY, EMPTY, EMPTY, EMPTY, EMPTY, EMPTY, EMPTY,
43232 + EMPTY, EMPTY, EMPTY, EMPTY, EMPTY,
43233 +
43234 + E(-128, 127, 0), /* MOVEQ2 */
43235 + E(-128, 127, 0), /* MOVNE2 */
43236 + E(-128, 127, 0), /* MOVCC2 */
43237 + E(-128, 127, 0), /* 160: MOVCS2 */
43238 + E(-128, 127, 0), /* MOVGE2 */
43239 + E(-128, 127, 0), /* MOVLT2 */
43240 + E(-128, 127, 0), /* MOVMI2 */
43241 + E(-128, 127, 0), /* MOVPL2 */
43242 + E(-128, 127, 0), /* MOVLS2 */
43243 + E(-128, 127, 0), /* MOVGT2 */
43244 + E(-128, 127, 0), /* MOVLE2 */
43245 + E(-128, 127, 0), /* MOVHI2 */
43246 + E(-128, 127, 0), /* MOVVS2 */
43247 + E(-128, 127, 0), /* MOVVC2 */
43248 + E(-128, 127, 0), /* MOVQS2 */
43249 + E(-128, 127, 0), /* MOVAL2 */
43250 +
43251 + E(0, 1020, 2), /* MTDR */
43252 + E(0, 1020, 2), /* MTSR */
43253 + EMPTY,
43254 + EMPTY,
43255 + E(-128, 127, 0), /* MUL3 */
43256 + EMPTY, EMPTY, EMPTY, EMPTY, EMPTY, EMPTY,
43257 + EMPTY, EMPTY, EMPTY, EMPTY, EMPTY, EMPTY, EMPTY, EMPTY,
43258 + /* 192: MVCR_W */
43259 + EMPTY, EMPTY, EMPTY, EMPTY, EMPTY, EMPTY, EMPTY, EMPTY,
43260 + E(0, 65535, 0), E(0, 65535, 0),
43261 + EMPTY, EMPTY, EMPTY, EMPTY, EMPTY, EMPTY,
43262 + EMPTY, EMPTY, EMPTY, EMPTY, EMPTY, EMPTY, EMPTY, EMPTY,
43263 + EMPTY, EMPTY, EMPTY, EMPTY, EMPTY, EMPTY, EMPTY, EMPTY,
43264 + /* 224: PASR_H */
43265 + EMPTY, EMPTY, EMPTY, EMPTY, EMPTY, EMPTY, EMPTY, EMPTY,
43266 + EMPTY, EMPTY, EMPTY, EMPTY, EMPTY, EMPTY, EMPTY, EMPTY,
43267 + EMPTY, EMPTY, EMPTY, EMPTY, EMPTY, EMPTY, EMPTY, EMPTY,
43268 + EMPTY, EMPTY, EMPTY, EMPTY, EMPTY, EMPTY, EMPTY, EMPTY,
43269 + /* 256: PUNPCKSB_H */
43270 + EMPTY, EMPTY, EMPTY, EMPTY, EMPTY,
43271 +
43272 + C(-1024, 1022, 1, RCALL2), E(-2097152, 2097150, 1),
43273 +
43274 + EMPTY,
43275 + EMPTY, EMPTY, EMPTY, EMPTY, EMPTY, EMPTY, EMPTY, EMPTY,
43276 + EMPTY, EMPTY, EMPTY, EMPTY, EMPTY, EMPTY, EMPTY, EMPTY,
43277 + EMPTY, EMPTY, EMPTY,
43278 +
43279 + C(-1024, 1022, 1, BRAL),
43280 +
43281 + EMPTY, EMPTY, EMPTY,
43282 + E(-128, 127, 0), /* RSUB2 */
43283 + /* 288: SATADD_H */
43284 + EMPTY, EMPTY, EMPTY, EMPTY, EMPTY, EMPTY, EMPTY, EMPTY,
43285 + EMPTY, EMPTY, EMPTY, EMPTY, EMPTY,
43286 + E(0, 255, 0), /* SLEEP */
43287 + EMPTY, EMPTY,
43288 + EMPTY, EMPTY, EMPTY, EMPTY, EMPTY, EMPTY, EMPTY, EMPTY,
43289 + EMPTY, EMPTY, EMPTY, EMPTY, EMPTY, EMPTY, EMPTY, EMPTY,
43290 + /* 320: ST_B2 */
43291 + EMPTY, EMPTY,
43292 + C(0, 7, 0, ST_B4), E(-32768, 32767, 0),
43293 + EMPTY, EMPTY, EMPTY, EMPTY,
43294 + E(-32768, 32767, 0),
43295 + EMPTY, EMPTY, EMPTY,
43296 + C(0, 14, 1, ST_H4), E(-32768, 32767, 0),
43297 + EMPTY, EMPTY,
43298 + EMPTY,
43299 + C(0, 60, 2, ST_W4), E(-32768, 32767, 0),
43300 + E(0, 1020, 2), /* STC_D1 */
43301 + EMPTY, EMPTY,
43302 + E(0, 1020, 2), /* STC_W1 */
43303 + EMPTY, EMPTY,
43304 + E(0, 16380, 2), /* STC0_D */
43305 + E(0, 16380, 2), /* STC0_W */
43306 +
43307 + EMPTY, EMPTY, EMPTY, EMPTY, EMPTY,
43308 + /* 352: STDSP */
43309 + EMPTY, EMPTY,
43310 + E(0, 1020, 2), /* STHH_W1 */
43311 + EMPTY, EMPTY, EMPTY, EMPTY, EMPTY,
43312 + EMPTY, EMPTY, EMPTY,
43313 + E(-32768, 32767, 0),
43314 + C(-512, 508, 2, SUB4),
43315 + C(-128, 127, 0, SUB4), E(-1048576, 1048576, 0),
43316 + /* SUB{cond} */
43317 + E(-128, 127, 0), E(-128, 127, 0), E(-128, 127, 0), E(-128, 127, 0),
43318 + E(-128, 127, 0), E(-128, 127, 0), E(-128, 127, 0), E(-128, 127, 0),
43319 + E(-128, 127, 0), E(-128, 127, 0), E(-128, 127, 0), E(-128, 127, 0),
43320 + E(-128, 127, 0), E(-128, 127, 0), E(-128, 127, 0), E(-128, 127, 0),
43321 + /* SUBF{cond} */
43322 + E(-128, 127, 0), E(-128, 127, 0), E(-128, 127, 0), E(-128, 127, 0),
43323 + E(-128, 127, 0), E(-128, 127, 0), E(-128, 127, 0), E(-128, 127, 0),
43324 + E(-128, 127, 0), E(-128, 127, 0), E(-128, 127, 0), E(-128, 127, 0),
43325 + E(-128, 127, 0), E(-128, 127, 0), E(-128, 127, 0), E(-128, 127, 0),
43326 + EMPTY,
43327 +
43328 + /* 400: SWAP_B */
43329 + EMPTY, EMPTY, EMPTY,
43330 + E(0, 255, 0), /* SYNC */
43331 + EMPTY, EMPTY, EMPTY, EMPTY,
43332 + /* 408: TST */
43333 + EMPTY, EMPTY, EMPTY, EMPTY, EMPTY, EMPTY, EMPTY, EMPTY,
43334 + /* 416: EXTRACT_B */
43335 + EMPTY, EMPTY, EMPTY, EMPTY,
43336 + };
43337 +
43338 +#undef E
43339 +#undef C
43340 +#undef EMPTY
43341 +
43342 +#define AVR32_RS_NONE (-1)
43343 +
43344 +#define avr32_rs_size(state) (avr32_relax_table[(state)].length)
43345 +#define avr32_rs_align(state) (avr32_relax_table[(state)].align)
43346 +#define relax_more(state) (avr32_relax_table[(state)].next)
43347 +
43348 +#define opc_initial_substate(opc) ((opc)->id)
43349 +
43350 +static int need_relax(int subtype, offsetT distance)
43351 +{
43352 + offsetT upper_bound, lower_bound;
43353 +
43354 + upper_bound = avr32_relax_table[subtype].upper_bound;
43355 + lower_bound = avr32_relax_table[subtype].lower_bound;
43356 +
43357 + if (distance & ((1 << avr32_rs_align(subtype)) - 1))
43358 + return 1;
43359 + if ((distance > upper_bound) || (distance < lower_bound))
43360 + return 1;
43361 +
43362 + return 0;
43363 +}
43364 +
43365 +enum {
43366 + LDA_SUBTYPE_MOV1,
43367 + LDA_SUBTYPE_MOV2,
43368 + LDA_SUBTYPE_SUB,
43369 + LDA_SUBTYPE_LDDPC,
43370 + LDA_SUBTYPE_LDW,
43371 + LDA_SUBTYPE_GOTLOAD,
43372 + LDA_SUBTYPE_GOTLOAD_LARGE,
43373 +};
43374 +
43375 +enum {
43376 + CALL_SUBTYPE_RCALL1,
43377 + CALL_SUBTYPE_RCALL2,
43378 + CALL_SUBTYPE_MCALL_CP,
43379 + CALL_SUBTYPE_MCALL_GOT,
43380 + CALL_SUBTYPE_MCALL_LARGE,
43381 +};
43382 +
43383 +#define LDA_INITIAL_SIZE (avr32_pic ? 4 : 2)
43384 +#define CALL_INITIAL_SIZE 2
43385 +
43386 +#define need_reloc(sym, seg, pcrel) \
43387 + (!(S_IS_DEFINED(sym) \
43388 + && ((pcrel && S_GET_SEGMENT(sym) == seg) \
43389 + || (!pcrel && S_GET_SEGMENT(sym) == absolute_section))) \
43390 + || S_FORCE_RELOC(sym, 1))
43391 +
43392 +/* Return an initial guess of the length by which a fragment must grow to
43393 + hold a branch to reach its destination.
43394 + Also updates fr_type/fr_subtype as necessary.
43395 +
43396 + Called just before doing relaxation.
43397 + Any symbol that is now undefined will not become defined.
43398 + The guess for fr_var is ACTUALLY the growth beyond fr_fix.
43399 + Whatever we do to grow fr_fix or fr_var contributes to our returned value.
43400 + Although it may not be explicit in the frag, pretend fr_var starts with a
43401 + 0 value. */
43402 +
43403 +static int
43404 +avr32_default_estimate_size_before_relax (fragS *fragP, segT segment)
43405 +{
43406 + int growth = 0;
43407 +
43408 + assert(fragP);
43409 + assert(fragP->fr_symbol);
43410 +
43411 + if (fragP->tc_frag_data.force_extended
43412 + || need_reloc(fragP->fr_symbol, segment, fragP->tc_frag_data.pcrel))
43413 + {
43414 + int largest_state = fragP->fr_subtype;
43415 + while (relax_more(largest_state) != AVR32_RS_NONE)
43416 + largest_state = relax_more(largest_state);
43417 + growth = avr32_rs_size(largest_state) - fragP->fr_var;
43418 + }
43419 + else
43420 + {
43421 + growth = avr32_rs_size(fragP->fr_subtype) - fragP->fr_var;
43422 + }
43423 +
43424 + pr_debug("%s:%d: md_estimate_size_before_relax: %d\n",
43425 + fragP->fr_file, fragP->fr_line, growth);
43426 +
43427 + return growth;
43428 +}
43429 +
43430 +static int
43431 +avr32_lda_estimate_size_before_relax(fragS *fragP, segT segment ATTRIBUTE_UNUSED)
43432 +{
43433 + return fragP->fr_var - LDA_INITIAL_SIZE;
43434 +}
43435 +
43436 +static int
43437 +avr32_call_estimate_size_before_relax(fragS *fragP, segT segment ATTRIBUTE_UNUSED)
43438 +{
43439 + return fragP->fr_var - CALL_INITIAL_SIZE;
43440 +}
43441 +
43442 +static int
43443 +avr32_cpool_estimate_size_before_relax(fragS *fragP,
43444 + segT segment ATTRIBUTE_UNUSED)
43445 +{
43446 + return fragP->fr_var;
43447 +}
43448 +
43449 +/* This macro may be defined to relax a frag. GAS will call this with the
43450 + * segment, the frag, and the change in size of all previous frags;
43451 + * md_relax_frag should return the change in size of the frag. */
43452 +static long
43453 +avr32_default_relax_frag (segT segment, fragS *fragP, long stretch)
43454 +{
43455 + int state, next_state;
43456 + symbolS *symbolP; /* The target symbol */
43457 + long growth = 0;
43458 +
43459 + state = next_state = fragP->fr_subtype;
43460 +
43461 + symbolP = fragP->fr_symbol;
43462 +
43463 + if (fragP->tc_frag_data.force_extended
43464 + || need_reloc(symbolP, segment, fragP->tc_frag_data.pcrel))
43465 + {
43466 + /* Symbol must be resolved by the linker. Emit the largest
43467 + possible opcode. */
43468 + while (relax_more(next_state) != AVR32_RS_NONE)
43469 + next_state = relax_more(next_state);
43470 + }
43471 + else
43472 + {
43473 + addressT address; /* The address of fragP */
43474 + addressT target; /* The address of the target symbol */
43475 + offsetT distance; /* The distance between the insn and the symbol */
43476 + fragS *sym_frag;
43477 +
43478 + address = fragP->fr_address;
43479 + target = fragP->fr_offset;
43480 + symbolP = fragP->fr_symbol;
43481 + sym_frag = symbol_get_frag(symbolP);
43482 +
43483 + address += fragP->fr_fix - fragP->fr_var;
43484 + target += S_GET_VALUE(symbolP);
43485 +
43486 + if (stretch != 0
43487 + && sym_frag->relax_marker != fragP->relax_marker
43488 + && S_GET_SEGMENT(symbolP) == segment)
43489 + /* if it was correctly aligned before, make sure it stays aligned */
43490 + target += stretch & (~0UL << avr32_rs_align(state));
43491 +
43492 + if (fragP->tc_frag_data.pcrel)
43493 + distance = target - (address & (~0UL << avr32_rs_align(state)));
43494 + else
43495 + distance = target;
43496 +
43497 + pr_debug("%s:%d: relax more? 0x%x - 0x%x = 0x%x (%d), align %d\n",
43498 + fragP->fr_file, fragP->fr_line, target, address,
43499 + distance, distance, avr32_rs_align(state));
43500 +
43501 + if (need_relax(state, distance))
43502 + {
43503 + if (relax_more(state) != AVR32_RS_NONE)
43504 + next_state = relax_more(state);
43505 + pr_debug("%s:%d: relax more %d -> %d (%d - %d, align %d)\n",
43506 + fragP->fr_file, fragP->fr_line, state, next_state,
43507 + target, address, avr32_rs_align(state));
43508 + }
43509 + }
43510 +
43511 + growth = avr32_rs_size(next_state) - avr32_rs_size(state);
43512 + fragP->fr_subtype = next_state;
43513 +
43514 + pr_debug("%s:%d: md_relax_frag: growth=%d, subtype=%d, opc=0x%08lx\n",
43515 + fragP->fr_file, fragP->fr_line, growth, fragP->fr_subtype,
43516 + avr32_opc_table[next_state].value);
43517 +
43518 + return growth;
43519 +}
43520 +
43521 +static long
43522 +avr32_lda_relax_frag(segT segment, fragS *fragP, long stretch)
43523 +{
43524 + struct cpool *pool= NULL;
43525 + unsigned int entry = 0;
43526 + addressT address, target;
43527 + offsetT distance;
43528 + symbolS *symbolP;
43529 + fragS *sym_frag;
43530 + long old_size, new_size;
43531 +
43532 + symbolP = fragP->fr_symbol;
43533 + old_size = fragP->fr_var;
43534 + if (!avr32_pic)
43535 + {
43536 + pool = fragP->tc_frag_data.pool;
43537 + entry = fragP->tc_frag_data.pool_entry;
43538 + }
43539 +
43540 + address = fragP->fr_address;
43541 + address += fragP->fr_fix - LDA_INITIAL_SIZE;
43542 +
43543 + if (!S_IS_DEFINED(symbolP) || S_FORCE_RELOC(symbolP, 1))
43544 + goto relax_max;
43545 +
43546 + target = fragP->fr_offset;
43547 + sym_frag = symbol_get_frag(symbolP);
43548 + target += S_GET_VALUE(symbolP);
43549 +
43550 + if (sym_frag->relax_marker != fragP->relax_marker
43551 + && S_GET_SEGMENT(symbolP) == segment)
43552 + target += stretch;
43553 +
43554 + distance = target - address;
43555 +
43556 + pr_debug("lda_relax_frag: target: %d, address: %d, var: %d\n",
43557 + target, address, fragP->fr_var);
43558 +
43559 + if (!avr32_pic && S_GET_SEGMENT(symbolP) == absolute_section
43560 + && target <= 127 && (offsetT)target >= -128)
43561 + {
43562 + if (fragP->fr_subtype == LDA_SUBTYPE_LDDPC
43563 + || fragP->fr_subtype == LDA_SUBTYPE_LDW)
43564 + pool->literals[entry].refcount--;
43565 + new_size = 2;
43566 + fragP->fr_subtype = LDA_SUBTYPE_MOV1;
43567 + }
43568 + else if (!avr32_pic && S_GET_SEGMENT(symbolP) == absolute_section
43569 + && target <= 1048575 && (offsetT)target >= -1048576)
43570 + {
43571 + if (fragP->fr_subtype == LDA_SUBTYPE_LDDPC
43572 + || fragP->fr_subtype == LDA_SUBTYPE_LDW)
43573 + pool->literals[entry].refcount--;
43574 + new_size = 4;
43575 + fragP->fr_subtype = LDA_SUBTYPE_MOV2;
43576 + }
43577 + else if (!linkrelax && S_GET_SEGMENT(symbolP) == segment
43578 + /* the field will be negated, so this is really -(-32768)
43579 + and -(32767) */
43580 + && distance <= 32768 && distance >= -32767)
43581 + {
43582 + if (!avr32_pic
43583 + && (fragP->fr_subtype == LDA_SUBTYPE_LDDPC
43584 + || fragP->fr_subtype == LDA_SUBTYPE_LDW))
43585 + pool->literals[entry].refcount--;
43586 + new_size = 4;
43587 + fragP->fr_subtype = LDA_SUBTYPE_SUB;
43588 + }
43589 + else
43590 + {
43591 + relax_max:
43592 + if (avr32_pic)
43593 + {
43594 + if (linkrelax)
43595 + {
43596 + new_size = 8;
43597 + fragP->fr_subtype = LDA_SUBTYPE_GOTLOAD_LARGE;
43598 + }
43599 + else
43600 + {
43601 + new_size = 4;
43602 + fragP->fr_subtype = LDA_SUBTYPE_GOTLOAD;
43603 + }
43604 + }
43605 + else
43606 + {
43607 + if (fragP->fr_subtype != LDA_SUBTYPE_LDDPC
43608 + && fragP->fr_subtype != LDA_SUBTYPE_LDW)
43609 + pool->literals[entry].refcount++;
43610 +
43611 + sym_frag = symbol_get_frag(pool->symbol);
43612 + target = (sym_frag->fr_address + sym_frag->fr_fix
43613 + + pool->padding + pool->literals[entry].offset);
43614 +
43615 + pr_debug("cpool sym address: 0x%lx\n",
43616 + sym_frag->fr_address + sym_frag->fr_fix);
43617 +
43618 + know(pool->section == segment);
43619 +
43620 + if (sym_frag->relax_marker != fragP->relax_marker)
43621 + target += stretch;
43622 +
43623 + distance = target - address;
43624 + if (distance <= 508 && distance >= 0)
43625 + {
43626 + new_size = 2;
43627 + fragP->fr_subtype = LDA_SUBTYPE_LDDPC;
43628 + }
43629 + else
43630 + {
43631 + new_size = 4;
43632 + fragP->fr_subtype = LDA_SUBTYPE_LDW;
43633 + }
43634 +
43635 + pr_debug("lda_relax_frag (cpool): target=0x%lx, address=0x%lx, refcount=%d\n",
43636 + target, address, pool->literals[entry].refcount);
43637 + }
43638 + }
43639 +
43640 + fragP->fr_var = new_size;
43641 +
43642 + pr_debug("%s:%d: lda: relax pass done. subtype: %d, growth: %ld\n",
43643 + fragP->fr_file, fragP->fr_line,
43644 + fragP->fr_subtype, new_size - old_size);
43645 +
43646 + return new_size - old_size;
43647 +}
43648 +
43649 +static long
43650 +avr32_call_relax_frag(segT segment, fragS *fragP, long stretch)
43651 +{
43652 + struct cpool *pool = NULL;
43653 + unsigned int entry = 0;
43654 + addressT address, target;
43655 + offsetT distance;
43656 + symbolS *symbolP;
43657 + fragS *sym_frag;
43658 + long old_size, new_size;
43659 +
43660 + symbolP = fragP->fr_symbol;
43661 + old_size = fragP->fr_var;
43662 + if (!avr32_pic)
43663 + {
43664 + pool = fragP->tc_frag_data.pool;
43665 + entry = fragP->tc_frag_data.pool_entry;
43666 + }
43667 +
43668 + address = fragP->fr_address;
43669 + address += fragP->fr_fix - CALL_INITIAL_SIZE;
43670 +
43671 + if (need_reloc(symbolP, segment, 1))
43672 + {
43673 + pr_debug("call: must emit reloc\n");
43674 + goto relax_max;
43675 + }
43676 +
43677 + target = fragP->fr_offset;
43678 + sym_frag = symbol_get_frag(symbolP);
43679 + target += S_GET_VALUE(symbolP);
43680 +
43681 + if (sym_frag->relax_marker != fragP->relax_marker
43682 + && S_GET_SEGMENT(symbolP) == segment)
43683 + target += stretch;
43684 +
43685 + distance = target - address;
43686 +
43687 + if (distance <= 1022 && distance >= -1024)
43688 + {
43689 + pr_debug("call: distance is %d, emitting short rcall\n", distance);
43690 + if (!avr32_pic && fragP->fr_subtype == CALL_SUBTYPE_MCALL_CP)
43691 + pool->literals[entry].refcount--;
43692 + new_size = 2;
43693 + fragP->fr_subtype = CALL_SUBTYPE_RCALL1;
43694 + }
43695 + else if (distance <= 2097150 && distance >= -2097152)
43696 + {
43697 + pr_debug("call: distance is %d, emitting long rcall\n", distance);
43698 + if (!avr32_pic && fragP->fr_subtype == CALL_SUBTYPE_MCALL_CP)
43699 + pool->literals[entry].refcount--;
43700 + new_size = 4;
43701 + fragP->fr_subtype = CALL_SUBTYPE_RCALL2;
43702 + }
43703 + else
43704 + {
43705 + pr_debug("call: distance %d too far, emitting something big\n", distance);
43706 +
43707 + relax_max:
43708 + if (avr32_pic)
43709 + {
43710 + if (linkrelax)
43711 + {
43712 + new_size = 10;
43713 + fragP->fr_subtype = CALL_SUBTYPE_MCALL_LARGE;
43714 + }
43715 + else
43716 + {
43717 + new_size = 4;
43718 + fragP->fr_subtype = CALL_SUBTYPE_MCALL_GOT;
43719 + }
43720 + }
43721 + else
43722 + {
43723 + if (fragP->fr_subtype != CALL_SUBTYPE_MCALL_CP)
43724 + pool->literals[entry].refcount++;
43725 +
43726 + new_size = 4;
43727 + fragP->fr_subtype = CALL_SUBTYPE_MCALL_CP;
43728 + }
43729 + }
43730 +
43731 + fragP->fr_var = new_size;
43732 +
43733 + pr_debug("%s:%d: call: relax pass done, growth: %d, fr_var: %d\n",
43734 + fragP->fr_file, fragP->fr_line,
43735 + new_size - old_size, fragP->fr_var);
43736 +
43737 + return new_size - old_size;
43738 +}
43739 +
43740 +static long
43741 +avr32_cpool_relax_frag(segT segment ATTRIBUTE_UNUSED,
43742 + fragS *fragP,
43743 + long stretch ATTRIBUTE_UNUSED)
43744 +{
43745 + struct cpool *pool;
43746 + addressT address;
43747 + long old_size, new_size;
43748 + unsigned int entry;
43749 +
43750 + pool = fragP->tc_frag_data.pool;
43751 + address = fragP->fr_address + fragP->fr_fix;
43752 + old_size = fragP->fr_var;
43753 + new_size = 0;
43754 +
43755 + for (entry = 0; entry < pool->next_free_entry; entry++)
43756 + {
43757 + if (pool->literals[entry].refcount > 0)
43758 + {
43759 + pool->literals[entry].offset = new_size;
43760 + new_size += 4;
43761 + }
43762 + }
43763 +
43764 + fragP->fr_var = new_size;
43765 +
43766 + return new_size - old_size;
43767 +}
43768 +
43769 +/* *fragP has been relaxed to its final size, and now needs to have
43770 + the bytes inside it modified to conform to the new size.
43771 +
43772 + Called after relaxation is finished.
43773 + fragP->fr_type == rs_machine_dependent.
43774 + fragP->fr_subtype is the subtype of what the address relaxed to. */
43775 +
43776 +static void
43777 +avr32_default_convert_frag (bfd *abfd ATTRIBUTE_UNUSED,
43778 + segT segment ATTRIBUTE_UNUSED,
43779 + fragS *fragP)
43780 +{
43781 + const struct avr32_opcode *opc;
43782 + const struct avr32_ifield *ifield;
43783 + bfd_reloc_code_real_type r_type;
43784 + symbolS *symbolP;
43785 + fixS *fixP;
43786 + bfd_vma value;
43787 + int subtype;
43788 +
43789 + opc = &avr32_opc_table[fragP->fr_subtype];
43790 + ifield = opc->fields[opc->var_field];
43791 + symbolP = fragP->fr_symbol;
43792 + subtype = fragP->fr_subtype;
43793 + r_type = opc->reloc_type;
43794 +
43795 + /* Clear the opcode bits and the bits belonging to the relaxed
43796 + field. We assume all other fields stay the same. */
43797 + value = bfd_getb32(fragP->fr_opcode);
43798 + value &= ~(opc->mask | ifield->mask);
43799 +
43800 + /* Insert the new opcode */
43801 + value |= opc->value;
43802 + bfd_putb32(value, fragP->fr_opcode);
43803 +
43804 + fragP->fr_fix += opc->size - fragP->fr_var;
43805 +
43806 + if (fragP->tc_frag_data.reloc_info != AVR32_OPINFO_NONE)
43807 + {
43808 + switch (fragP->tc_frag_data.reloc_info)
43809 + {
43810 + case AVR32_OPINFO_HI:
43811 + r_type = BFD_RELOC_HI16;
43812 + break;
43813 + case AVR32_OPINFO_LO:
43814 + r_type = BFD_RELOC_LO16;
43815 + break;
43816 + case AVR32_OPINFO_GOT:
43817 + switch (r_type)
43818 + {
43819 + case BFD_RELOC_AVR32_18W_PCREL:
43820 + r_type = BFD_RELOC_AVR32_GOT18SW;
43821 + break;
43822 + case BFD_RELOC_AVR32_16S:
43823 + r_type = BFD_RELOC_AVR32_GOT16S;
43824 + break;
43825 + default:
43826 + BAD_CASE(r_type);
43827 + break;
43828 + }
43829 + break;
43830 + default:
43831 + BAD_CASE(fragP->tc_frag_data.reloc_info);
43832 + break;
43833 + }
43834 + }
43835 +
43836 + pr_debug("%s:%d: convert_frag: new %s fixup\n",
43837 + fragP->fr_file, fragP->fr_line,
43838 + bfd_get_reloc_code_name(r_type));
43839 +
43840 +#if 1
43841 + fixP = fix_new_exp(fragP, fragP->fr_fix - opc->size, opc->size,
43842 + &fragP->tc_frag_data.exp,
43843 + fragP->tc_frag_data.pcrel, r_type);
43844 +#else
43845 + fixP = fix_new(fragP, fragP->fr_fix - opc->size, opc->size, symbolP,
43846 + fragP->fr_offset, fragP->tc_frag_data.pcrel, r_type);
43847 +#endif
43848 +
43849 + /* Revert fix_new brain damage. "dot_value" is the value of PC at
43850 + the point of the fixup, relative to the frag address. fix_new()
43851 + and friends think they are only being called during the assembly
43852 + pass, not during relaxation or similar, so fx_dot_value, fx_file
43853 + and fx_line are all initialized to the wrong value. But we don't
43854 + know the size of the fixup until now, so we really can't live up
43855 + to the assumptions these functions make about the target. What
43856 + do these functions think the "where" and "frag" argument mean
43857 + anyway? */
43858 + fixP->fx_dot_value = fragP->fr_fix - opc->size;
43859 + fixP->fx_file = fragP->fr_file;
43860 + fixP->fx_line = fragP->fr_line;
43861 +
43862 + fixP->tc_fix_data.ifield = ifield;
43863 + fixP->tc_fix_data.align = avr32_rs_align(subtype);
43864 + fixP->tc_fix_data.min = avr32_relax_table[subtype].lower_bound;
43865 + fixP->tc_fix_data.max = avr32_relax_table[subtype].upper_bound;
43866 +}
43867 +
43868 +static void
43869 +avr32_lda_convert_frag(bfd *abfd ATTRIBUTE_UNUSED,
43870 + segT segment ATTRIBUTE_UNUSED,
43871 + fragS *fragP)
43872 +{
43873 + const struct avr32_opcode *opc;
43874 + const struct avr32_ifield *ifield;
43875 + bfd_reloc_code_real_type r_type;
43876 + expressionS exp;
43877 + struct cpool *pool;
43878 + fixS *fixP;
43879 + bfd_vma value;
43880 + int regid, pcrel = 0, align = 0;
43881 + char *p;
43882 +
43883 + r_type = BFD_RELOC_NONE;
43884 + regid = fragP->tc_frag_data.reloc_info;
43885 + p = fragP->fr_opcode;
43886 + exp.X_add_symbol = fragP->fr_symbol;
43887 + exp.X_add_number = fragP->fr_offset;
43888 + exp.X_op = O_symbol;
43889 +
43890 + pr_debug("%s:%d: lda_convert_frag, subtype: %d, fix: %d, var: %d, regid: %d\n",
43891 + fragP->fr_file, fragP->fr_line,
43892 + fragP->fr_subtype, fragP->fr_fix, fragP->fr_var, regid);
43893 +
43894 + switch (fragP->fr_subtype)
43895 + {
43896 + case LDA_SUBTYPE_MOV1:
43897 + opc = &avr32_opc_table[AVR32_OPC_MOV1];
43898 + opc->fields[0]->insert(opc->fields[0], p, regid);
43899 + ifield = opc->fields[1];
43900 + r_type = opc->reloc_type;
43901 + break;
43902 + case LDA_SUBTYPE_MOV2:
43903 + opc = &avr32_opc_table[AVR32_OPC_MOV2];
43904 + opc->fields[0]->insert(opc->fields[0], p, regid);
43905 + ifield = opc->fields[1];
43906 + r_type = opc->reloc_type;
43907 + break;
43908 + case LDA_SUBTYPE_SUB:
43909 + opc = &avr32_opc_table[AVR32_OPC_SUB5];
43910 + opc->fields[0]->insert(opc->fields[0], p, regid);
43911 + opc->fields[1]->insert(opc->fields[1], p, AVR32_REG_PC);
43912 + ifield = opc->fields[2];
43913 + r_type = BFD_RELOC_AVR32_16N_PCREL;
43914 +
43915 + /* Pretend that SUB5 isn't a "negated" pcrel expression for now.
43916 + We'll have to fix it up later when we know whether to
43917 + generate a reloc for it (in which case the linker will negate
43918 + it, so we shouldn't). */
43919 + pcrel = 1;
43920 + break;
43921 + case LDA_SUBTYPE_LDDPC:
43922 + opc = &avr32_opc_table[AVR32_OPC_LDDPC];
43923 + align = 2;
43924 + r_type = BFD_RELOC_AVR32_9W_CP;
43925 + goto cpool_common;
43926 + case LDA_SUBTYPE_LDW:
43927 + opc = &avr32_opc_table[AVR32_OPC_LDDPC_EXT];
43928 + r_type = BFD_RELOC_AVR32_16_CP;
43929 + cpool_common:
43930 + opc->fields[0]->insert(opc->fields[0], p, regid);
43931 + ifield = opc->fields[1];
43932 + pool = fragP->tc_frag_data.pool;
43933 + exp.X_add_symbol = pool->symbol;
43934 + exp.X_add_number = pool->literals[fragP->tc_frag_data.pool_entry].offset;
43935 + pcrel = 1;
43936 + break;
43937 + case LDA_SUBTYPE_GOTLOAD_LARGE:
43938 + /* ld.w Rd, r6[Rd << 2] (last) */
43939 + opc = &avr32_opc_table[AVR32_OPC_LD_W5];
43940 + bfd_putb32(opc->value, p + 4);
43941 + opc->fields[0]->insert(opc->fields[0], p + 4, regid);
43942 + opc->fields[1]->insert(opc->fields[1], p + 4, 6);
43943 + opc->fields[2]->insert(opc->fields[2], p + 4, regid);
43944 + opc->fields[3]->insert(opc->fields[3], p + 4, 2);
43945 +
43946 + /* mov Rd, (got_offset / 4) */
43947 + opc = &avr32_opc_table[AVR32_OPC_MOV2];
43948 + opc->fields[0]->insert(opc->fields[0], p, regid);
43949 + ifield = opc->fields[1];
43950 + r_type = BFD_RELOC_AVR32_LDA_GOT;
43951 + break;
43952 + case LDA_SUBTYPE_GOTLOAD:
43953 + opc = &avr32_opc_table[AVR32_OPC_LD_W4];
43954 + opc->fields[0]->insert(opc->fields[0], p, regid);
43955 + opc->fields[1]->insert(opc->fields[1], p, 6);
43956 + ifield = opc->fields[2];
43957 + if (r_type == BFD_RELOC_NONE)
43958 + r_type = BFD_RELOC_AVR32_GOT16S;
43959 + break;
43960 + default:
43961 + BAD_CASE(fragP->fr_subtype);
43962 + }
43963 +
43964 + value = bfd_getb32(p);
43965 + value &= ~(opc->mask | ifield->mask);
43966 + value |= opc->value;
43967 + bfd_putb32(value, p);
43968 +
43969 + fragP->fr_fix += fragP->fr_var - LDA_INITIAL_SIZE;
43970 +
43971 + if (fragP->fr_next
43972 + && ((offsetT)(fragP->fr_next->fr_address - fragP->fr_address)
43973 + != fragP->fr_fix))
43974 + {
43975 + fprintf(stderr, "LDA frag: fr_fix is wrong! fragP->fr_var = %ld, r_type = %s\n",
43976 + fragP->fr_var, bfd_get_reloc_code_name(r_type));
43977 + abort();
43978 + }
43979 +
43980 + fixP = fix_new_exp(fragP, fragP->fr_fix - fragP->fr_var, fragP->fr_var,
43981 + &exp, pcrel, r_type);
43982 +
43983 + /* Revert fix_new brain damage. "dot_value" is the value of PC at
43984 + the point of the fixup, relative to the frag address. fix_new()
43985 + and friends think they are only being called during the assembly
43986 + pass, not during relaxation or similar, so fx_dot_value, fx_file
43987 + and fx_line are all initialized to the wrong value. But we don't
43988 + know the size of the fixup until now, so we really can't live up
43989 + to the assumptions these functions make about the target. What
43990 + do these functions think the "where" and "frag" argument mean
43991 + anyway? */
43992 + fixP->fx_dot_value = fragP->fr_fix - opc->size;
43993 + fixP->fx_file = fragP->fr_file;
43994 + fixP->fx_line = fragP->fr_line;
43995 +
43996 + fixP->tc_fix_data.ifield = ifield;
43997 + fixP->tc_fix_data.align = align;
43998 + /* these are only used if the fixup can actually be resolved */
43999 + fixP->tc_fix_data.min = -32768;
44000 + fixP->tc_fix_data.max = 32767;
44001 +}
44002 +
44003 +static void
44004 +avr32_call_convert_frag(bfd *abfd ATTRIBUTE_UNUSED,
44005 + segT segment ATTRIBUTE_UNUSED,
44006 + fragS *fragP)
44007 +{
44008 + const struct avr32_opcode *opc = NULL;
44009 + const struct avr32_ifield *ifield;
44010 + bfd_reloc_code_real_type r_type;
44011 + symbolS *symbol;
44012 + offsetT offset;
44013 + fixS *fixP;
44014 + bfd_vma value;
44015 + int pcrel = 0, align = 0;
44016 + char *p;
44017 +
44018 + symbol = fragP->fr_symbol;
44019 + offset = fragP->fr_offset;
44020 + r_type = BFD_RELOC_NONE;
44021 + p = fragP->fr_opcode;
44022 +
44023 + pr_debug("%s:%d: call_convert_frag, subtype: %d, fix: %d, var: %d\n",
44024 + fragP->fr_file, fragP->fr_line,
44025 + fragP->fr_subtype, fragP->fr_fix, fragP->fr_var);
44026 +
44027 + switch (fragP->fr_subtype)
44028 + {
44029 + case CALL_SUBTYPE_RCALL1:
44030 + opc = &avr32_opc_table[AVR32_OPC_RCALL1];
44031 + /* fall through */
44032 + case CALL_SUBTYPE_RCALL2:
44033 + if (!opc)
44034 + opc = &avr32_opc_table[AVR32_OPC_RCALL2];
44035 + ifield = opc->fields[0];
44036 + r_type = opc->reloc_type;
44037 + pcrel = 1;
44038 + align = 1;
44039 + break;
44040 + case CALL_SUBTYPE_MCALL_CP:
44041 + opc = &avr32_opc_table[AVR32_OPC_MCALL];
44042 + opc->fields[0]->insert(opc->fields[0], p, AVR32_REG_PC);
44043 + ifield = opc->fields[1];
44044 + r_type = BFD_RELOC_AVR32_CPCALL;
44045 + symbol = fragP->tc_frag_data.pool->symbol;
44046 + offset = fragP->tc_frag_data.pool->literals[fragP->tc_frag_data.pool_entry].offset;
44047 + assert(fragP->tc_frag_data.pool->literals[fragP->tc_frag_data.pool_entry].refcount > 0);
44048 + pcrel = 1;
44049 + align = 2;
44050 + break;
44051 + case CALL_SUBTYPE_MCALL_GOT:
44052 + opc = &avr32_opc_table[AVR32_OPC_MCALL];
44053 + opc->fields[0]->insert(opc->fields[0], p, 6);
44054 + ifield = opc->fields[1];
44055 + r_type = BFD_RELOC_AVR32_GOT18SW;
44056 + break;
44057 + case CALL_SUBTYPE_MCALL_LARGE:
44058 + assert(fragP->fr_var == 10);
44059 + /* ld.w lr, r6[lr << 2] */
44060 + opc = &avr32_opc_table[AVR32_OPC_LD_W5];
44061 + bfd_putb32(opc->value, p + 4);
44062 + opc->fields[0]->insert(opc->fields[0], p + 4, AVR32_REG_LR);
44063 + opc->fields[1]->insert(opc->fields[1], p + 4, 6);
44064 + opc->fields[2]->insert(opc->fields[2], p + 4, AVR32_REG_LR);
44065 + opc->fields[3]->insert(opc->fields[3], p + 4, 2);
44066 +
44067 + /* icall lr */
44068 + opc = &avr32_opc_table[AVR32_OPC_ICALL];
44069 + bfd_putb16(opc->value >> 16, p + 8);
44070 + opc->fields[0]->insert(opc->fields[0], p + 8, AVR32_REG_LR);
44071 +
44072 + /* mov lr, (got_offset / 4) */
44073 + opc = &avr32_opc_table[AVR32_OPC_MOV2];
44074 + opc->fields[0]->insert(opc->fields[0], p, AVR32_REG_LR);
44075 + ifield = opc->fields[1];
44076 + r_type = BFD_RELOC_AVR32_GOTCALL;
44077 + break;
44078 + default:
44079 + BAD_CASE(fragP->fr_subtype);
44080 + }
44081 +
44082 + /* Insert the opcode and clear the variable ifield */
44083 + value = bfd_getb32(p);
44084 + value &= ~(opc->mask | ifield->mask);
44085 + value |= opc->value;
44086 + bfd_putb32(value, p);
44087 +
44088 + fragP->fr_fix += fragP->fr_var - CALL_INITIAL_SIZE;
44089 +
44090 + if (fragP->fr_next
44091 + && ((offsetT)(fragP->fr_next->fr_address - fragP->fr_address)
44092 + != fragP->fr_fix))
44093 + {
44094 + fprintf(stderr, "%s:%d: fr_fix %lu is wrong! fr_var=%lu, r_type=%s\n",
44095 + fragP->fr_file, fragP->fr_line,
44096 + fragP->fr_fix, fragP->fr_var, bfd_get_reloc_code_name(r_type));
44097 + fprintf(stderr, "fr_fix should be %ld. next frag is %s:%d\n",
44098 + (offsetT)(fragP->fr_next->fr_address - fragP->fr_address),
44099 + fragP->fr_next->fr_file, fragP->fr_next->fr_line);
44100 + }
44101 +
44102 + fixP = fix_new(fragP, fragP->fr_fix - fragP->fr_var, fragP->fr_var,
44103 + symbol, offset, pcrel, r_type);
44104 +
44105 + /* Revert fix_new brain damage. "dot_value" is the value of PC at
44106 + the point of the fixup, relative to the frag address. fix_new()
44107 + and friends think they are only being called during the assembly
44108 + pass, not during relaxation or similar, so fx_dot_value, fx_file
44109 + and fx_line are all initialized to the wrong value. But we don't
44110 + know the size of the fixup until now, so we really can't live up
44111 + to the assumptions these functions make about the target. What
44112 + do these functions think the "where" and "frag" argument mean
44113 + anyway? */
44114 + fixP->fx_dot_value = fragP->fr_fix - opc->size;
44115 + fixP->fx_file = fragP->fr_file;
44116 + fixP->fx_line = fragP->fr_line;
44117 +
44118 + fixP->tc_fix_data.ifield = ifield;
44119 + fixP->tc_fix_data.align = align;
44120 + /* these are only used if the fixup can actually be resolved */
44121 + fixP->tc_fix_data.min = -2097152;
44122 + fixP->tc_fix_data.max = 2097150;
44123 +}
44124 +
44125 +static void
44126 +avr32_cpool_convert_frag(bfd *abfd ATTRIBUTE_UNUSED,
44127 + segT segment ATTRIBUTE_UNUSED,
44128 + fragS *fragP)
44129 +{
44130 + struct cpool *pool;
44131 + addressT address;
44132 + unsigned int entry;
44133 + char *p;
44134 + char sym_name[20];
44135 +
44136 + /* Did we get rid of the frag altogether? */
44137 + if (!fragP->fr_var)
44138 + return;
44139 +
44140 + pool = fragP->tc_frag_data.pool;
44141 + address = fragP->fr_address + fragP->fr_fix;
44142 + p = fragP->fr_literal + fragP->fr_fix;
44143 +
44144 + sprintf(sym_name, "$$cp_\002%x", pool->id);
44145 + symbol_locate(pool->symbol, sym_name, pool->section, fragP->fr_fix, fragP);
44146 + symbol_table_insert(pool->symbol);
44147 +
44148 + for (entry = 0; entry < pool->next_free_entry; entry++)
44149 + {
44150 + if (pool->literals[entry].refcount > 0)
44151 + {
44152 + fix_new_exp(fragP, fragP->fr_fix, 4, &pool->literals[entry].exp,
44153 + FALSE, BFD_RELOC_AVR32_32_CPENT);
44154 + fragP->fr_fix += 4;
44155 + }
44156 + }
44157 +}
44158 +
44159 +static struct avr32_relaxer avr32_default_relaxer = {
44160 + .estimate_size = avr32_default_estimate_size_before_relax,
44161 + .relax_frag = avr32_default_relax_frag,
44162 + .convert_frag = avr32_default_convert_frag,
44163 +};
44164 +static struct avr32_relaxer avr32_lda_relaxer = {
44165 + .estimate_size = avr32_lda_estimate_size_before_relax,
44166 + .relax_frag = avr32_lda_relax_frag,
44167 + .convert_frag = avr32_lda_convert_frag,
44168 +};
44169 +static struct avr32_relaxer avr32_call_relaxer = {
44170 + .estimate_size = avr32_call_estimate_size_before_relax,
44171 + .relax_frag = avr32_call_relax_frag,
44172 + .convert_frag = avr32_call_convert_frag,
44173 +};
44174 +static struct avr32_relaxer avr32_cpool_relaxer = {
44175 + .estimate_size = avr32_cpool_estimate_size_before_relax,
44176 + .relax_frag = avr32_cpool_relax_frag,
44177 + .convert_frag = avr32_cpool_convert_frag,
44178 +};
44179 +
44180 +static void s_cpool(int arg ATTRIBUTE_UNUSED)
44181 +{
44182 + struct cpool *pool;
44183 + unsigned int max_size;
44184 + char *buf;
44185 +
44186 + pool = find_cpool(now_seg, now_subseg);
44187 + if (!pool || !pool->symbol || pool->next_free_entry == 0)
44188 + return;
44189 +
44190 + /* Make sure the constant pool is properly aligned */
44191 + frag_align_code(2, 0);
44192 +
44193 + /* Assume none of the entries are discarded, and that we need the
44194 + maximum amount of alignment. But we're not going to allocate
44195 + anything up front. */
44196 + max_size = pool->next_free_entry * 4 + 2;
44197 + frag_grow(max_size);
44198 + buf = frag_more(0);
44199 +
44200 + frag_now->tc_frag_data.relaxer = &avr32_cpool_relaxer;
44201 + frag_now->tc_frag_data.pool = pool;
44202 +
44203 + symbol_set_frag(pool->symbol, frag_now);
44204 +
44205 + /* Assume zero initial size, allowing other relaxers to be
44206 + optimistic about things. */
44207 + frag_var(rs_machine_dependent, max_size, 0,
44208 + 0, pool->symbol, 0, NULL);
44209 +
44210 + /* Mark the pool as empty. */
44211 + pool->used = 1;
44212 +}
44213 +
44214 +/* The location from which a PC relative jump should be calculated,
44215 + given a PC relative reloc. */
44216 +
44217 +long
44218 +md_pcrel_from_section (fixS *fixP, segT sec)
44219 +{
44220 + pr_debug("pcrel_from_section, fx_offset = %d\n", fixP->fx_offset);
44221 +
44222 + if (fixP->fx_addsy != NULL
44223 + && (! S_IS_DEFINED (fixP->fx_addsy)
44224 + || S_GET_SEGMENT (fixP->fx_addsy) != sec
44225 + || S_FORCE_RELOC(fixP->fx_addsy, 1)))
44226 + {
44227 + pr_debug("Unknown pcrel symbol: %s\n", S_GET_NAME(fixP->fx_addsy));
44228 +
44229 + /* The symbol is undefined (or is defined but not in this section).
44230 + Let the linker figure it out. */
44231 + return 0;
44232 + }
44233 +
44234 + pr_debug("pcrel from %x + %x, symbol: %s (%x)\n",
44235 + fixP->fx_frag->fr_address, fixP->fx_where,
44236 + fixP->fx_addsy?S_GET_NAME(fixP->fx_addsy):"(null)",
44237 + fixP->fx_addsy?S_GET_VALUE(fixP->fx_addsy):0);
44238 +
44239 + return ((fixP->fx_frag->fr_address + fixP->fx_where)
44240 + & (~0UL << fixP->tc_fix_data.align));
44241 +}
44242 +
44243 +valueT
44244 +md_section_align (segT segment, valueT size)
44245 +{
44246 + int align = bfd_get_section_alignment (stdoutput, segment);
44247 + return ((size + (1 << align) - 1) & (-1 << align));
44248 +}
44249 +
44250 +static int syntax_matches(const struct avr32_syntax *syntax,
44251 + char *str)
44252 +{
44253 + int i;
44254 +
44255 + pr_debug("syntax %d matches `%s'?\n", syntax->id, str);
44256 +
44257 + if (syntax->nr_operands < 0)
44258 + {
44259 + struct avr32_operand *op;
44260 + int optype;
44261 +
44262 + for (i = 0; i < (-syntax->nr_operands - 1); i++)
44263 + {
44264 + char *p;
44265 + char c;
44266 +
44267 + optype = syntax->operand[i];
44268 + assert(optype < AVR32_NR_OPERANDS);
44269 + op = &avr32_operand_table[optype];
44270 +
44271 + for (p = str; *p; p++)
44272 + if (*p == ',')
44273 + break;
44274 +
44275 + if (p == str)
44276 + return 0;
44277 +
44278 + c = *p;
44279 + *p = 0;
44280 +
44281 + if (!op->match(str))
44282 + {
44283 + *p = c;
44284 + return 0;
44285 + }
44286 +
44287 + str = p;
44288 + *p = c;
44289 + if (c)
44290 + str++;
44291 + }
44292 +
44293 + optype = syntax->operand[i];
44294 + assert(optype < AVR32_NR_OPERANDS);
44295 + op = &avr32_operand_table[optype];
44296 +
44297 + if (!op->match(str))
44298 + return 0;
44299 + return 1;
44300 + }
44301 +
44302 + for (i = 0; i < syntax->nr_operands; i++)
44303 + {
44304 + struct avr32_operand *op;
44305 + int optype = syntax->operand[i];
44306 + char *p;
44307 + char c;
44308 +
44309 + assert(optype < AVR32_NR_OPERANDS);
44310 + op = &avr32_operand_table[optype];
44311 +
44312 + for (p = str; *p; p++)
44313 + if (*p == ',')
44314 + break;
44315 +
44316 + if (p == str)
44317 + return 0;
44318 +
44319 + c = *p;
44320 + *p = 0;
44321 +
44322 + if (!op->match(str))
44323 + {
44324 + *p = c;
44325 + return 0;
44326 + }
44327 +
44328 + str = p;
44329 + *p = c;
44330 + if (c)
44331 + str++;
44332 + }
44333 +
44334 + if (*str == '\0')
44335 + return 1;
44336 +
44337 + if ((*str == 'e' || *str == 'E') && !str[1])
44338 + return 1;
44339 +
44340 + return 0;
44341 +}
44342 +
44343 +static int parse_operands(char *str)
44344 +{
44345 + int i;
44346 +
44347 + if (current_insn.syntax->nr_operands < 0)
44348 + {
44349 + int optype;
44350 + struct avr32_operand *op;
44351 +
44352 + for (i = 0; i < (-current_insn.syntax->nr_operands - 1); i++)
44353 + {
44354 + char *p;
44355 + char c;
44356 +
44357 + optype = current_insn.syntax->operand[i];
44358 + op = &avr32_operand_table[optype];
44359 +
44360 + for (p = str; *p; p++)
44361 + if (*p == ',')
44362 + break;
44363 +
44364 + assert(p != str);
44365 +
44366 + c = *p, *p = 0;
44367 + op->parse(op, str, i);
44368 + *p = c;
44369 +
44370 + str = p;
44371 + if (c) str++;
44372 + }
44373 +
44374 + /* give the rest of the line to the last operand */
44375 + optype = current_insn.syntax->operand[i];
44376 + op = &avr32_operand_table[optype];
44377 + op->parse(op, str, i);
44378 + }
44379 + else
44380 + {
44381 + for (i = 0; i < current_insn.syntax->nr_operands; i++)
44382 + {
44383 + int optype = current_insn.syntax->operand[i];
44384 + struct avr32_operand *op = &avr32_operand_table[optype];
44385 + char *p;
44386 + char c;
44387 +
44388 + skip_whitespace(str);
44389 +
44390 + for (p = str; *p; p++)
44391 + if (*p == ',')
44392 + break;
44393 +
44394 + assert(p != str);
44395 +
44396 + c = *p, *p = 0;
44397 + op->parse(op, str, i);
44398 + *p = c;
44399 +
44400 + str = p;
44401 + if (c) str++;
44402 + }
44403 +
44404 + if (*str == 'E' || *str == 'e')
44405 + current_insn.force_extended = 1;
44406 + }
44407 +
44408 + return 0;
44409 +}
44410 +
44411 +static const char *
44412 +finish_insn(const struct avr32_opcode *opc)
44413 +{
44414 + expressionS *exp = &current_insn.immediate;
44415 + unsigned int i;
44416 + int will_relax = 0;
44417 + char *buf;
44418 +
44419 + assert(current_insn.next_slot == opc->nr_fields);
44420 +
44421 + pr_debug("%s:%d: finish_insn: trying opcode %d\n",
44422 + frag_now->fr_file, frag_now->fr_line, opc->id);
44423 +
44424 + /* Go through the relaxation stage for all instructions that can
44425 + possibly take a symbolic immediate. The relax code will take
44426 + care of range checking and alignment. */
44427 + if (opc->var_field != -1)
44428 + {
44429 + int substate, largest_substate;
44430 + symbolS *sym;
44431 + offsetT off;
44432 +
44433 + will_relax = 1;
44434 + substate = largest_substate = opc_initial_substate(opc);
44435 +
44436 + while (relax_more(largest_substate) != AVR32_RS_NONE)
44437 + largest_substate = relax_more(largest_substate);
44438 +
44439 + pr_debug("will relax. initial substate: %d (size %d), largest substate: %d (size %d)\n",
44440 + substate, avr32_rs_size(substate),
44441 + largest_substate, avr32_rs_size(largest_substate));
44442 +
44443 + /* make sure we have enough room for the largest possible opcode */
44444 + frag_grow(avr32_rs_size(largest_substate));
44445 + buf = frag_more(opc->size);
44446 +
44447 + dwarf2_emit_insn(opc->size);
44448 +
44449 + frag_now->tc_frag_data.reloc_info = AVR32_OPINFO_NONE;
44450 + frag_now->tc_frag_data.pcrel = current_insn.pcrel;
44451 + frag_now->tc_frag_data.force_extended = current_insn.force_extended;
44452 + frag_now->tc_frag_data.relaxer = &avr32_default_relaxer;
44453 +
44454 + if (exp->X_op == O_hi)
44455 + {
44456 + frag_now->tc_frag_data.reloc_info = AVR32_OPINFO_HI;
44457 + exp->X_op = exp->X_md;
44458 + }
44459 + else if (exp->X_op == O_lo)
44460 + {
44461 + frag_now->tc_frag_data.reloc_info = AVR32_OPINFO_LO;
44462 + exp->X_op = exp->X_md;
44463 + }
44464 + else if (exp->X_op == O_got)
44465 + {
44466 + frag_now->tc_frag_data.reloc_info = AVR32_OPINFO_GOT;
44467 + exp->X_op = O_symbol;
44468 + }
44469 +
44470 +#if 0
44471 + if ((opc->reloc_type == BFD_RELOC_AVR32_SUB5)
44472 + && exp->X_op == O_subtract)
44473 + {
44474 + symbolS *tmp;
44475 + tmp = exp->X_add_symbol;
44476 + exp->X_add_symbol = exp->X_op_symbol;
44477 + exp->X_op_symbol = tmp;
44478 + }
44479 +#endif
44480 +
44481 + frag_now->tc_frag_data.exp = current_insn.immediate;
44482 +
44483 + sym = exp->X_add_symbol;
44484 + off = exp->X_add_number;
44485 + if (exp->X_op != O_symbol)
44486 + {
44487 + sym = make_expr_symbol(exp);
44488 + off = 0;
44489 + }
44490 +
44491 + frag_var(rs_machine_dependent,
44492 + avr32_rs_size(largest_substate) - opc->size,
44493 + opc->size,
44494 + substate, sym, off, buf);
44495 + }
44496 + else
44497 + {
44498 + assert(avr32_rs_size(opc_initial_substate(opc)) == 0);
44499 +
44500 + /* Make sure we always have room for another whole word, as the ifield
44501 + inserters can only write words. */
44502 + frag_grow(4);
44503 + buf = frag_more(opc->size);
44504 + dwarf2_emit_insn(opc->size);
44505 + }
44506 +
44507 + assert(!(opc->value & ~opc->mask));
44508 +
44509 + pr_debug("inserting opcode: 0x%lx\n", opc->value);
44510 + bfd_putb32(opc->value, buf);
44511 +
44512 + for (i = 0; i < opc->nr_fields; i++)
44513 + {
44514 + const struct avr32_ifield *f = opc->fields[i];
44515 + const struct avr32_ifield_data *fd = &current_insn.field_value[i];
44516 +
44517 + pr_debug("inserting field: 0x%lx & 0x%lx\n",
44518 + fd->value >> fd->align_order, f->mask);
44519 +
44520 + f->insert(f, buf, fd->value >> fd->align_order);
44521 + }
44522 +
44523 + assert(will_relax || !current_insn.immediate.X_add_symbol);
44524 + return NULL;
44525 +}
44526 +
44527 +static const char *
44528 +finish_alias(const struct avr32_alias *alias)
44529 +{
44530 + const struct avr32_opcode *opc;
44531 + struct {
44532 + unsigned long value;
44533 + unsigned long align;
44534 + } mapped_operand[AVR32_MAX_OPERANDS];
44535 + unsigned int i;
44536 +
44537 + opc = alias->opc;
44538 +
44539 + /* Remap the operands from the alias to the real opcode */
44540 + for (i = 0; i < opc->nr_fields; i++)
44541 + {
44542 + if (alias->operand_map[i].is_opindex)
44543 + {
44544 + struct avr32_ifield_data *fd;
44545 + fd = &current_insn.field_value[alias->operand_map[i].value];
44546 + mapped_operand[i].value = fd->value;
44547 + mapped_operand[i].align = fd->align_order;
44548 + }
44549 + else
44550 + {
44551 + mapped_operand[i].value = alias->operand_map[i].value;
44552 + mapped_operand[i].align = 0;
44553 + }
44554 + }
44555 +
44556 + for (i = 0; i < opc->nr_fields; i++)
44557 + {
44558 + current_insn.field_value[i].value = mapped_operand[i].value;
44559 + if (opc->id == AVR32_OPC_COP)
44560 + current_insn.field_value[i].align_order = 0;
44561 + else
44562 + current_insn.field_value[i].align_order
44563 + = mapped_operand[i].align;
44564 + }
44565 +
44566 + current_insn.next_slot = opc->nr_fields;
44567 +
44568 + return finish_insn(opc);
44569 +}
44570 +
44571 +static const char *
44572 +finish_lda(const struct avr32_syntax *syntax ATTRIBUTE_UNUSED)
44573 +{
44574 + expressionS *exp = &current_insn.immediate;
44575 + relax_substateT initial_subtype;
44576 + symbolS *sym;
44577 + offsetT off;
44578 + int initial_size, max_size;
44579 + char *buf;
44580 +
44581 + initial_size = LDA_INITIAL_SIZE;
44582 +
44583 + if (avr32_pic)
44584 + {
44585 + initial_subtype = LDA_SUBTYPE_SUB;
44586 + if (linkrelax)
44587 + max_size = 8;
44588 + else
44589 + max_size = 4;
44590 + }
44591 + else
44592 + {
44593 + initial_subtype = LDA_SUBTYPE_MOV1;
44594 + max_size = 4;
44595 + }
44596 +
44597 + frag_grow(max_size);
44598 + buf = frag_more(initial_size);
44599 + dwarf2_emit_insn(initial_size);
44600 +
44601 + if (exp->X_op == O_symbol)
44602 + {
44603 + sym = exp->X_add_symbol;
44604 + off = exp->X_add_number;
44605 + }
44606 + else
44607 + {
44608 + sym = make_expr_symbol(exp);
44609 + off = 0;
44610 + }
44611 +
44612 + frag_now->tc_frag_data.reloc_info = current_insn.field_value[0].value;
44613 + frag_now->tc_frag_data.relaxer = &avr32_lda_relaxer;
44614 +
44615 + if (!avr32_pic)
44616 + {
44617 + /* The relaxer will bump the refcount if necessary */
44618 + frag_now->tc_frag_data.pool
44619 + = add_to_cpool(exp, &frag_now->tc_frag_data.pool_entry, 0);
44620 + }
44621 +
44622 + frag_var(rs_machine_dependent, max_size - initial_size,
44623 + initial_size, initial_subtype, sym, off, buf);
44624 +
44625 + return NULL;
44626 +}
44627 +
44628 +static const char *
44629 +finish_call(const struct avr32_syntax *syntax ATTRIBUTE_UNUSED)
44630 +{
44631 + expressionS *exp = &current_insn.immediate;
44632 + symbolS *sym;
44633 + offsetT off;
44634 + int initial_size, max_size;
44635 + char *buf;
44636 +
44637 + initial_size = CALL_INITIAL_SIZE;
44638 +
44639 + if (avr32_pic)
44640 + {
44641 + if (linkrelax)
44642 + max_size = 10;
44643 + else
44644 + max_size = 4;
44645 + }
44646 + else
44647 + max_size = 4;
44648 +
44649 + frag_grow(max_size);
44650 + buf = frag_more(initial_size);
44651 + dwarf2_emit_insn(initial_size);
44652 +
44653 + frag_now->tc_frag_data.relaxer = &avr32_call_relaxer;
44654 +
44655 + if (exp->X_op == O_symbol)
44656 + {
44657 + sym = exp->X_add_symbol;
44658 + off = exp->X_add_number;
44659 + }
44660 + else
44661 + {
44662 + sym = make_expr_symbol(exp);
44663 + off = 0;
44664 + }
44665 +
44666 + if (!avr32_pic)
44667 + {
44668 + /* The relaxer will bump the refcount if necessary */
44669 + frag_now->tc_frag_data.pool
44670 + = add_to_cpool(exp, &frag_now->tc_frag_data.pool_entry, 0);
44671 + }
44672 +
44673 + frag_var(rs_machine_dependent, max_size - initial_size,
44674 + initial_size, CALL_SUBTYPE_RCALL1, sym, off, buf);
44675 +
44676 + return NULL;
44677 +}
44678 +
44679 +void
44680 +md_begin (void)
44681 +{
44682 + unsigned long flags = 0;
44683 + int i;
44684 +
44685 + avr32_mnemonic_htab = hash_new();
44686 +
44687 + if (!avr32_mnemonic_htab)
44688 + as_fatal(_("virtual memory exhausted"));
44689 +
44690 + for (i = 0; i < AVR32_NR_MNEMONICS; i++)
44691 + {
44692 + hash_insert(avr32_mnemonic_htab, avr32_mnemonic_table[i].name,
44693 + (void *)&avr32_mnemonic_table[i]);
44694 + }
44695 +
44696 + if (linkrelax)
44697 + flags |= EF_AVR32_LINKRELAX;
44698 + if (avr32_pic)
44699 + flags |= EF_AVR32_PIC;
44700 +
44701 + bfd_set_private_flags(stdoutput, flags);
44702 +
44703 +#ifdef OPC_CONSISTENCY_CHECK
44704 + if (sizeof(avr32_operand_table)/sizeof(avr32_operand_table[0])
44705 + < AVR32_NR_OPERANDS)
44706 + as_fatal(_("operand table is incomplete"));
44707 +
44708 + for (i = 0; i < AVR32_NR_OPERANDS; i++)
44709 + if (avr32_operand_table[i].id != i)
44710 + as_fatal(_("operand table inconsistency found at index %d\n"), i);
44711 + pr_debug("%d operands verified\n", AVR32_NR_OPERANDS);
44712 +
44713 + for (i = 0; i < AVR32_NR_IFIELDS; i++)
44714 + if (avr32_ifield_table[i].id != i)
44715 + as_fatal(_("ifield table inconsistency found at index %d\n"), i);
44716 + pr_debug("%d instruction fields verified\n", AVR32_NR_IFIELDS);
44717 +
44718 + for (i = 0; i < AVR32_NR_OPCODES; i++)
44719 + {
44720 + if (avr32_opc_table[i].id != i)
44721 + as_fatal(_("opcode table inconsistency found at index %d\n"), i);
44722 + if ((avr32_opc_table[i].var_field == -1
44723 + && avr32_relax_table[i].length != 0)
44724 + || (avr32_opc_table[i].var_field != -1
44725 + && avr32_relax_table[i].length == 0))
44726 + as_fatal(_("relax table inconsistency found at index %d\n"), i);
44727 + }
44728 + pr_debug("%d opcodes verified\n", AVR32_NR_OPCODES);
44729 +
44730 + for (i = 0; i < AVR32_NR_SYNTAX; i++)
44731 + if (avr32_syntax_table[i].id != i)
44732 + as_fatal(_("syntax table inconsistency found at index %d\n"), i);
44733 + pr_debug("%d syntax variants verified\n", AVR32_NR_SYNTAX);
44734 +
44735 + for (i = 0; i < AVR32_NR_ALIAS; i++)
44736 + if (avr32_alias_table[i].id != i)
44737 + as_fatal(_("alias table inconsistency found at index %d\n"), i);
44738 + pr_debug("%d aliases verified\n", AVR32_NR_ALIAS);
44739 +
44740 + for (i = 0; i < AVR32_NR_MNEMONICS; i++)
44741 + if (avr32_mnemonic_table[i].id != i)
44742 + as_fatal(_("mnemonic table inconsistency found at index %d\n"), i);
44743 + pr_debug("%d mnemonics verified\n", AVR32_NR_MNEMONICS);
44744 +#endif
44745 +}
44746 +
44747 +void
44748 +md_assemble (char *str)
44749 +{
44750 + struct avr32_mnemonic *mnemonic;
44751 + char *p, c;
44752 +
44753 + memset(&current_insn, 0, sizeof(current_insn));
44754 + current_insn.immediate.X_op = O_constant;
44755 +
44756 + skip_whitespace(str);
44757 + for (p = str; *p; p++)
44758 + if (*p == ' ')
44759 + break;
44760 + c = *p;
44761 + *p = 0;
44762 +
44763 + mnemonic = hash_find(avr32_mnemonic_htab, str);
44764 + *p = c;
44765 + if (c) p++;
44766 +
44767 + if (mnemonic)
44768 + {
44769 + const struct avr32_syntax *syntax;
44770 +
44771 + for (syntax = mnemonic->syntax; syntax; syntax = syntax->next)
44772 + {
44773 + const char *errmsg = NULL;
44774 +
44775 + if (syntax_matches(syntax, p))
44776 + {
44777 + if (!(syntax->isa_flags & avr32_arch->isa_flags))
44778 + {
44779 + as_bad(_("Selected architecture `%s' does not support `%s'"),
44780 + avr32_arch->name, str);
44781 + return;
44782 + }
44783 +
44784 + current_insn.syntax = syntax;
44785 + parse_operands(p);
44786 +
44787 + switch (syntax->type)
44788 + {
44789 + case AVR32_PARSER_NORMAL:
44790 + errmsg = finish_insn(syntax->u.opc);
44791 + break;
44792 + case AVR32_PARSER_ALIAS:
44793 + errmsg = finish_alias(syntax->u.alias);
44794 + break;
44795 + case AVR32_PARSER_LDA:
44796 + errmsg = finish_lda(syntax);
44797 + break;
44798 + case AVR32_PARSER_CALL:
44799 + errmsg = finish_call(syntax);
44800 + break;
44801 + default:
44802 + BAD_CASE(syntax->type);
44803 + break;
44804 + }
44805 +
44806 + if (errmsg)
44807 + as_bad("%s in `%s'", errmsg, str);
44808 +
44809 + return;
44810 + }
44811 + }
44812 +
44813 + as_bad(_("unrecognized form of instruction: `%s'"), str);
44814 + }
44815 + else
44816 + as_bad(_("unrecognized instruction `%s'"), str);
44817 +}
44818 +
44819 +void avr32_cleanup(void)
44820 +{
44821 + struct cpool *pool;
44822 +
44823 + /* Emit any constant pools that haven't been explicitly flushed with
44824 + a .cpool directive. */
44825 + for (pool = cpool_list; pool; pool = pool->next)
44826 + {
44827 + subseg_set(pool->section, pool->sub_section);
44828 + s_cpool(0);
44829 + }
44830 +}
44831 +
44832 +/* Handle any PIC-related operands in data allocation pseudo-ops */
44833 +void
44834 +avr32_cons_fix_new (fragS *frag, int off, int size, expressionS *exp)
44835 +{
44836 + bfd_reloc_code_real_type r_type = BFD_RELOC_UNUSED;
44837 + int pcrel = 0;
44838 +
44839 + pr_debug("%s:%u: cons_fix_new, add_sym: %s, op_sym: %s, op: %d, add_num: %d\n",
44840 + frag->fr_file, frag->fr_line,
44841 + exp->X_add_symbol?S_GET_NAME(exp->X_add_symbol):"(none)",
44842 + exp->X_op_symbol?S_GET_NAME(exp->X_op_symbol):"(none)",
44843 + exp->X_op, exp->X_add_number);
44844 +
44845 + if (exp->X_op == O_subtract && exp->X_op_symbol)
44846 + {
44847 + if (exp->X_op_symbol == GOT_symbol)
44848 + {
44849 + if (size != 4)
44850 + goto bad_size;
44851 + r_type = BFD_RELOC_AVR32_GOTPC;
44852 + exp->X_op = O_symbol;
44853 + exp->X_op_symbol = NULL;
44854 + }
44855 + }
44856 + else if (exp->X_op == O_got)
44857 + {
44858 + switch (size)
44859 + {
44860 + case 1:
44861 + r_type = BFD_RELOC_AVR32_GOT8;
44862 + break;
44863 + case 2:
44864 + r_type = BFD_RELOC_AVR32_GOT16;
44865 + break;
44866 + case 4:
44867 + r_type = BFD_RELOC_AVR32_GOT32;
44868 + break;
44869 + default:
44870 + goto bad_size;
44871 + }
44872 +
44873 + exp->X_op = O_symbol;
44874 + }
44875 +
44876 + if (r_type == BFD_RELOC_UNUSED)
44877 + switch (size)
44878 + {
44879 + case 1:
44880 + r_type = BFD_RELOC_8;
44881 + break;
44882 + case 2:
44883 + r_type = BFD_RELOC_16;
44884 + break;
44885 + case 4:
44886 + r_type = BFD_RELOC_32;
44887 + break;
44888 + default:
44889 + goto bad_size;
44890 + }
44891 + else if (size != 4)
44892 + {
44893 + bad_size:
44894 + as_bad(_("unsupported BFD relocation size %u"), size);
44895 + r_type = BFD_RELOC_UNUSED;
44896 + }
44897 +
44898 + fix_new_exp (frag, off, size, exp, pcrel, r_type);
44899 +}
44900 +
44901 +static void
44902 +avr32_frob_section(bfd *abfd ATTRIBUTE_UNUSED, segT sec,
44903 + void *ignore ATTRIBUTE_UNUSED)
44904 +{
44905 + segment_info_type *seginfo;
44906 + fixS *fix;
44907 +
44908 + seginfo = seg_info(sec);
44909 + if (!seginfo)
44910 + return;
44911 +
44912 + for (fix = seginfo->fix_root; fix; fix = fix->fx_next)
44913 + {
44914 + if (fix->fx_done)
44915 + continue;
44916 +
44917 + if (fix->fx_r_type == BFD_RELOC_AVR32_SUB5
44918 + && fix->fx_addsy && fix->fx_subsy)
44919 + {
44920 + if (S_GET_SEGMENT(fix->fx_addsy) != S_GET_SEGMENT(fix->fx_subsy)
44921 + || linkrelax)
44922 + {
44923 + symbolS *tmp;
44924 +#ifdef DEBUG
44925 + fprintf(stderr, "Swapping symbols in fixup:\n");
44926 + print_fixup(fix);
44927 +#endif
44928 + tmp = fix->fx_addsy;
44929 + fix->fx_addsy = fix->fx_subsy;
44930 + fix->fx_subsy = tmp;
44931 + fix->fx_offset = -fix->fx_offset;
44932 + }
44933 + }
44934 + }
44935 +}
44936 +
44937 +/* We need to look for SUB5 instructions with expressions that will be
44938 + made PC-relative and switch fx_addsy with fx_subsy. This has to be
44939 + done before adjustment or the wrong symbol might be adjusted.
44940 +
44941 + This applies to fixups that are a result of expressions like -(sym
44942 + - .) and that will make it all the way to md_apply_fix3(). LDA
44943 + does the right thing in convert_frag, so we must not convert
44944 + those. */
44945 +void
44946 +avr32_frob_file(void)
44947 +{
44948 + /* if (1 || !linkrelax)
44949 + return; */
44950 +
44951 + bfd_map_over_sections(stdoutput, avr32_frob_section, NULL);
44952 +}
44953 +
44954 +static bfd_boolean
44955 +convert_to_diff_reloc(fixS *fixP)
44956 +{
44957 + switch (fixP->fx_r_type)
44958 + {
44959 + case BFD_RELOC_32:
44960 + fixP->fx_r_type = BFD_RELOC_AVR32_DIFF32;
44961 + break;
44962 + case BFD_RELOC_16:
44963 + fixP->fx_r_type = BFD_RELOC_AVR32_DIFF16;
44964 + break;
44965 + case BFD_RELOC_8:
44966 + fixP->fx_r_type = BFD_RELOC_AVR32_DIFF8;
44967 + break;
44968 + default:
44969 + return FALSE;
44970 + }
44971 +
44972 + return TRUE;
44973 +}
44974 +
44975 +/* Simplify a fixup. If possible, the fixup is reduced to a single
44976 + constant which is written to the output file. Otherwise, a
44977 + relocation is generated so that the linker can take care of the
44978 + rest.
44979 +
44980 + ELF relocations have certain constraints: They can only take a
44981 + single symbol and a single addend. This means that for difference
44982 + expressions, we _must_ get rid of the fx_subsy symbol somehow.
44983 +
44984 + The difference between two labels in the same section can be
44985 + calculated directly unless 'linkrelax' is set, or a relocation is
44986 + forced. If so, we must emit a R_AVR32_DIFFxx relocation. If there
44987 + are addends involved at this point, we must be especially careful
44988 + as the relocation must point exactly to the symbol being
44989 + subtracted.
44990 +
44991 + When subtracting a symbol defined in the same section as the fixup,
44992 + we might be able to convert it to a PC-relative expression, unless
44993 + linkrelax is set. If this is the case, there's no way we can make
44994 + sure that the difference between the fixup and fx_subsy stays
44995 + constant. So for now, we're just going to disallow that.
44996 + */
44997 +void
44998 +avr32_process_fixup(fixS *fixP, segT this_segment)
44999 +{
45000 + segT add_symbol_segment = absolute_section;
45001 + segT sub_symbol_segment = absolute_section;
45002 + symbolS *fx_addsy, *fx_subsy;
45003 + offsetT value = 0, fx_offset;
45004 + bfd_boolean apply = FALSE;
45005 +
45006 + assert(this_segment != absolute_section);
45007 +
45008 + if (fixP->fx_r_type >= BFD_RELOC_UNUSED)
45009 + {
45010 + as_bad_where(fixP->fx_file, fixP->fx_line,
45011 + _("Bad relocation type %d\n"), fixP->fx_r_type);
45012 + return;
45013 + }
45014 +
45015 + /* BFD_RELOC_AVR32_SUB5 fixups have been swapped by avr32_frob_section() */
45016 + fx_addsy = fixP->fx_addsy;
45017 + fx_subsy = fixP->fx_subsy;
45018 + fx_offset = fixP->fx_offset;
45019 +
45020 + if (fx_addsy)
45021 + add_symbol_segment = S_GET_SEGMENT(fx_addsy);
45022 +
45023 + if (fx_subsy)
45024 + {
45025 + resolve_symbol_value(fx_subsy);
45026 + sub_symbol_segment = S_GET_SEGMENT(fx_subsy);
45027 +
45028 + if (sub_symbol_segment == this_segment
45029 + && (!linkrelax
45030 + || S_GET_VALUE(fx_subsy) == (fixP->fx_frag->fr_address
45031 + + fixP->fx_where)))
45032 + {
45033 + fixP->fx_pcrel = TRUE;
45034 + fx_offset += (fixP->fx_frag->fr_address + fixP->fx_where
45035 + - S_GET_VALUE(fx_subsy));
45036 + fx_subsy = NULL;
45037 + }
45038 + else if (sub_symbol_segment == absolute_section)
45039 + {
45040 + /* The symbol is really a constant. */
45041 + fx_offset -= S_GET_VALUE(fx_subsy);
45042 + fx_subsy = NULL;
45043 + }
45044 + else if (SEG_NORMAL(add_symbol_segment)
45045 + && sub_symbol_segment == add_symbol_segment
45046 + && (!linkrelax || convert_to_diff_reloc(fixP)))
45047 + {
45048 + /* Difference between two labels in the same section. */
45049 + if (linkrelax)
45050 + {
45051 + /* convert_to_diff() has ensured that the reloc type is
45052 + either DIFF32, DIFF16 or DIFF8. */
45053 + value = (S_GET_VALUE(fx_addsy) + fixP->fx_offset
45054 + - S_GET_VALUE(fx_subsy));
45055 +
45056 + /* Try to convert it to a section symbol if possible */
45057 + if (!S_FORCE_RELOC(fx_addsy, 1)
45058 + && !(sub_symbol_segment->flags & SEC_THREAD_LOCAL))
45059 + {
45060 + fx_offset = S_GET_VALUE(fx_subsy);
45061 + fx_addsy = section_symbol(sub_symbol_segment);
45062 + }
45063 + else
45064 + {
45065 + fx_addsy = fx_subsy;
45066 + fx_offset = 0;
45067 + }
45068 +
45069 + fx_subsy = NULL;
45070 + apply = TRUE;
45071 + }
45072 + else
45073 + {
45074 + fx_offset += S_GET_VALUE(fx_addsy);
45075 + fx_offset -= S_GET_VALUE(fx_subsy);
45076 + fx_addsy = NULL;
45077 + fx_subsy = NULL;
45078 + }
45079 + }
45080 + else
45081 + {
45082 + as_bad_where(fixP->fx_file, fixP->fx_line,
45083 + _("can't resolve `%s' {%s section} - `%s' {%s section}"),
45084 + fx_addsy ? S_GET_NAME (fx_addsy) : "0",
45085 + segment_name (add_symbol_segment),
45086 + S_GET_NAME (fx_subsy),
45087 + segment_name (sub_symbol_segment));
45088 + return;
45089 + }
45090 + }
45091 +
45092 + if (fx_addsy && !TC_FORCE_RELOCATION(fixP))
45093 + {
45094 + if (add_symbol_segment == this_segment
45095 + && fixP->fx_pcrel)
45096 + {
45097 + value += S_GET_VALUE(fx_addsy);
45098 + value -= md_pcrel_from_section(fixP, this_segment);
45099 + fx_addsy = NULL;
45100 + fixP->fx_pcrel = FALSE;
45101 + }
45102 + else if (add_symbol_segment == absolute_section)
45103 + {
45104 + fx_offset += S_GET_VALUE(fixP->fx_addsy);
45105 + fx_addsy = NULL;
45106 + }
45107 + }
45108 +
45109 + if (!fx_addsy)
45110 + fixP->fx_done = TRUE;
45111 +
45112 + if (fixP->fx_pcrel)
45113 + {
45114 + if (fx_addsy != NULL
45115 + && S_IS_DEFINED(fx_addsy)
45116 + && S_GET_SEGMENT(fx_addsy) != this_segment)
45117 + value += md_pcrel_from_section(fixP, this_segment);
45118 +
45119 + switch (fixP->fx_r_type)
45120 + {
45121 + case BFD_RELOC_32:
45122 + fixP->fx_r_type = BFD_RELOC_32_PCREL;
45123 + break;
45124 + case BFD_RELOC_16:
45125 + fixP->fx_r_type = BFD_RELOC_16_PCREL;
45126 + break;
45127 + case BFD_RELOC_8:
45128 + fixP->fx_r_type = BFD_RELOC_8_PCREL;
45129 + break;
45130 + case BFD_RELOC_AVR32_SUB5:
45131 + fixP->fx_r_type = BFD_RELOC_AVR32_16N_PCREL;
45132 + break;
45133 + case BFD_RELOC_AVR32_16S:
45134 + fixP->fx_r_type = BFD_RELOC_AVR32_16B_PCREL;
45135 + break;
45136 + case BFD_RELOC_AVR32_14UW:
45137 + fixP->fx_r_type = BFD_RELOC_AVR32_14UW_PCREL;
45138 + break;
45139 + case BFD_RELOC_AVR32_10UW:
45140 + fixP->fx_r_type = BFD_RELOC_AVR32_10UW_PCREL;
45141 + break;
45142 + default:
45143 + /* Should have been taken care of already */
45144 + break;
45145 + }
45146 + }
45147 +
45148 + if (fixP->fx_done || apply)
45149 + {
45150 + const struct avr32_ifield *ifield;
45151 + char *buf = fixP->fx_where + fixP->fx_frag->fr_literal;
45152 +
45153 + if (fixP->fx_done)
45154 + value += fx_offset;
45155 +
45156 + switch (fixP->fx_r_type)
45157 + {
45158 + case BFD_RELOC_32:
45159 + case BFD_RELOC_16:
45160 + case BFD_RELOC_8:
45161 + case BFD_RELOC_AVR32_DIFF32:
45162 + case BFD_RELOC_AVR32_DIFF16:
45163 + case BFD_RELOC_AVR32_DIFF8:
45164 + md_number_to_chars(buf, value, fixP->fx_size);
45165 + break;
45166 + case BFD_RELOC_HI16:
45167 + value >>= 16;
45168 + case BFD_RELOC_LO16:
45169 + value &= 0xffff;
45170 + md_number_to_chars(buf + 2, value, 2);
45171 + break;
45172 + case BFD_RELOC_AVR32_16N_PCREL:
45173 + value = -value;
45174 + /* fall through */
45175 + case BFD_RELOC_AVR32_22H_PCREL:
45176 + case BFD_RELOC_AVR32_18W_PCREL:
45177 + case BFD_RELOC_AVR32_16B_PCREL:
45178 + case BFD_RELOC_AVR32_11H_PCREL:
45179 + case BFD_RELOC_AVR32_9H_PCREL:
45180 + case BFD_RELOC_AVR32_9UW_PCREL:
45181 + case BFD_RELOC_AVR32_3U:
45182 + case BFD_RELOC_AVR32_4UH:
45183 + case BFD_RELOC_AVR32_6UW:
45184 + case BFD_RELOC_AVR32_6S:
45185 + case BFD_RELOC_AVR32_7UW:
45186 + case BFD_RELOC_AVR32_8S_EXT:
45187 + case BFD_RELOC_AVR32_8S:
45188 + case BFD_RELOC_AVR32_10UW:
45189 + case BFD_RELOC_AVR32_10SW:
45190 + case BFD_RELOC_AVR32_STHH_W:
45191 + case BFD_RELOC_AVR32_14UW:
45192 + case BFD_RELOC_AVR32_16S:
45193 + case BFD_RELOC_AVR32_16U:
45194 + case BFD_RELOC_AVR32_21S:
45195 + case BFD_RELOC_AVR32_SUB5:
45196 + case BFD_RELOC_AVR32_CPCALL:
45197 + case BFD_RELOC_AVR32_16_CP:
45198 + case BFD_RELOC_AVR32_9W_CP:
45199 + ifield = fixP->tc_fix_data.ifield;
45200 + pr_debug("insert field: %ld <= %ld <= %ld (align %u)\n",
45201 + fixP->tc_fix_data.min, value, fixP->tc_fix_data.max,
45202 + fixP->tc_fix_data.align);
45203 + if (value < fixP->tc_fix_data.min || value > fixP->tc_fix_data.max)
45204 + as_bad_where(fixP->fx_file, fixP->fx_line,
45205 + _("operand out of range (%ld not between %ld and %ld)"),
45206 + value, fixP->tc_fix_data.min, fixP->tc_fix_data.max);
45207 + if (value & ((1 << fixP->tc_fix_data.align) - 1))
45208 + as_bad_where(fixP->fx_file, fixP->fx_line,
45209 + _("misaligned operand (required alignment: %d)"),
45210 + 1 << fixP->tc_fix_data.align);
45211 + ifield->insert(ifield, buf, value >> fixP->tc_fix_data.align);
45212 + break;
45213 + case BFD_RELOC_AVR32_ALIGN:
45214 + /* Nothing to do */
45215 + fixP->fx_done = FALSE;
45216 + break;
45217 + default:
45218 + as_fatal("reloc type %s not handled\n",
45219 + bfd_get_reloc_code_name(fixP->fx_r_type));
45220 + }
45221 + }
45222 +
45223 + fixP->fx_addsy = fx_addsy;
45224 + fixP->fx_subsy = fx_subsy;
45225 + fixP->fx_offset = fx_offset;
45226 +
45227 + if (!fixP->fx_done)
45228 + {
45229 + if (!fixP->fx_addsy)
45230 + fixP->fx_addsy = abs_section_sym;
45231 +
45232 + symbol_mark_used_in_reloc(fixP->fx_addsy);
45233 + if (fixP->fx_subsy)
45234 + abort();
45235 + }
45236 +}
45237 +
45238 +#if 0
45239 +void
45240 +md_apply_fix3 (fixS *fixP, valueT *valP, segT seg)
45241 +{
45242 + const struct avr32_ifield *ifield;
45243 + offsetT value = *valP;
45244 + char *buf = fixP->fx_where + fixP->fx_frag->fr_literal;
45245 + bfd_boolean apply;
45246 +
45247 + pr_debug("%s:%u: apply_fix3: r_type=%d value=%lx offset=%lx\n",
45248 + fixP->fx_file, fixP->fx_line, fixP->fx_r_type, *valP,
45249 + fixP->fx_offset);
45250 +
45251 + if (fixP->fx_r_type >= BFD_RELOC_UNUSED)
45252 + {
45253 + as_bad_where(fixP->fx_file, fixP->fx_line,
45254 + _("Bad relocation type %d\n"), fixP->fx_r_type);
45255 + return;
45256 + }
45257 +
45258 + if (!fixP->fx_addsy && !fixP->fx_subsy)
45259 + fixP->fx_done = 1;
45260 +
45261 + if (fixP->fx_pcrel)
45262 + {
45263 + if (fixP->fx_addsy != NULL
45264 + && S_IS_DEFINED(fixP->fx_addsy)
45265 + && S_GET_SEGMENT(fixP->fx_addsy) != seg)
45266 + value += md_pcrel_from_section(fixP, seg);
45267 +
45268 + switch (fixP->fx_r_type)
45269 + {
45270 + case BFD_RELOC_32:
45271 + fixP->fx_r_type = BFD_RELOC_32_PCREL;
45272 + break;
45273 + case BFD_RELOC_16:
45274 + case BFD_RELOC_8:
45275 + as_bad_where (fixP->fx_file, fixP->fx_line,
45276 + _("8- and 16-bit PC-relative relocations not supported"));
45277 + break;
45278 + case BFD_RELOC_AVR32_SUB5:
45279 + fixP->fx_r_type = BFD_RELOC_AVR32_PCREL_SUB5;
45280 + break;
45281 + case BFD_RELOC_AVR32_16S:
45282 + fixP->fx_r_type = BFD_RELOC_AVR32_16_PCREL;
45283 + break;
45284 + default:
45285 + /* Should have been taken care of already */
45286 + break;
45287 + }
45288 + }
45289 +
45290 + if (fixP->fx_r_type == BFD_RELOC_32
45291 + && fixP->fx_subsy)
45292 + {
45293 + fixP->fx_r_type = BFD_RELOC_AVR32_DIFF32;
45294 +
45295 + /* Offsets are only allowed if it's a result of adjusting a
45296 + local symbol into a section-relative offset.
45297 + tc_fix_adjustable() should prevent any adjustment if there
45298 + was an offset involved before. */
45299 + if (fixP->fx_offset && !symbol_section_p(fixP->fx_addsy))
45300 + as_bad_where(fixP->fx_file, fixP->fx_line,
45301 + _("cannot represent symbol difference with an offset"));
45302 +
45303 + value = (S_GET_VALUE(fixP->fx_addsy) + fixP->fx_offset
45304 + - S_GET_VALUE(fixP->fx_subsy));
45305 +
45306 + /* The difference before any relaxing takes place is written
45307 + out, and the DIFF32 reloc identifies the address of the first
45308 + symbol (i.e. the on that's subtracted.) */
45309 + *valP = value;
45310 + fixP->fx_offset -= value;
45311 + fixP->fx_subsy = NULL;
45312 +
45313 + md_number_to_chars(buf, value, fixP->fx_size);
45314 + }
45315 +
45316 + if (fixP->fx_done)
45317 + {
45318 + switch (fixP->fx_r_type)
45319 + {
45320 + case BFD_RELOC_8:
45321 + case BFD_RELOC_16:
45322 + case BFD_RELOC_32:
45323 + md_number_to_chars(buf, value, fixP->fx_size);
45324 + break;
45325 + case BFD_RELOC_HI16:
45326 + value >>= 16;
45327 + case BFD_RELOC_LO16:
45328 + value &= 0xffff;
45329 + *valP = value;
45330 + md_number_to_chars(buf + 2, value, 2);
45331 + break;
45332 + case BFD_RELOC_AVR32_PCREL_SUB5:
45333 + value = -value;
45334 + /* fall through */
45335 + case BFD_RELOC_AVR32_9_PCREL:
45336 + case BFD_RELOC_AVR32_11_PCREL:
45337 + case BFD_RELOC_AVR32_16_PCREL:
45338 + case BFD_RELOC_AVR32_18_PCREL:
45339 + case BFD_RELOC_AVR32_22_PCREL:
45340 + case BFD_RELOC_AVR32_3U:
45341 + case BFD_RELOC_AVR32_4UH:
45342 + case BFD_RELOC_AVR32_6UW:
45343 + case BFD_RELOC_AVR32_6S:
45344 + case BFD_RELOC_AVR32_7UW:
45345 + case BFD_RELOC_AVR32_8S:
45346 + case BFD_RELOC_AVR32_10UW:
45347 + case BFD_RELOC_AVR32_10SW:
45348 + case BFD_RELOC_AVR32_14UW:
45349 + case BFD_RELOC_AVR32_16S:
45350 + case BFD_RELOC_AVR32_16U:
45351 + case BFD_RELOC_AVR32_21S:
45352 + case BFD_RELOC_AVR32_BRC1:
45353 + case BFD_RELOC_AVR32_SUB5:
45354 + case BFD_RELOC_AVR32_CPCALL:
45355 + case BFD_RELOC_AVR32_16_CP:
45356 + case BFD_RELOC_AVR32_9_CP:
45357 + ifield = fixP->tc_fix_data.ifield;
45358 + pr_debug("insert field: %ld <= %ld <= %ld (align %u)\n",
45359 + fixP->tc_fix_data.min, value, fixP->tc_fix_data.max,
45360 + fixP->tc_fix_data.align);
45361 + if (value < fixP->tc_fix_data.min || value > fixP->tc_fix_data.max)
45362 + as_bad_where(fixP->fx_file, fixP->fx_line,
45363 + _("operand out of range (%ld not between %ld and %ld)"),
45364 + value, fixP->tc_fix_data.min, fixP->tc_fix_data.max);
45365 + if (value & ((1 << fixP->tc_fix_data.align) - 1))
45366 + as_bad_where(fixP->fx_file, fixP->fx_line,
45367 + _("misaligned operand (required alignment: %d)"),
45368 + 1 << fixP->tc_fix_data.align);
45369 + ifield->insert(ifield, buf, value >> fixP->tc_fix_data.align);
45370 + break;
45371 + case BFD_RELOC_AVR32_ALIGN:
45372 + /* Nothing to do */
45373 + fixP->fx_done = FALSE;
45374 + break;
45375 + default:
45376 + as_fatal("reloc type %s not handled\n",
45377 + bfd_get_reloc_code_name(fixP->fx_r_type));
45378 + }
45379 + }
45380 +}
45381 +#endif
45382 +
45383 +arelent *
45384 +tc_gen_reloc (asection *section ATTRIBUTE_UNUSED,
45385 + fixS *fixp)
45386 +{
45387 + arelent *reloc;
45388 + bfd_reloc_code_real_type code;
45389 +
45390 + reloc = xmalloc (sizeof (arelent));
45391 +
45392 + reloc->sym_ptr_ptr = xmalloc (sizeof (asymbol *));
45393 + *reloc->sym_ptr_ptr = symbol_get_bfdsym (fixp->fx_addsy);
45394 + reloc->address = fixp->fx_frag->fr_address + fixp->fx_where;
45395 + reloc->addend = fixp->fx_offset;
45396 + code = fixp->fx_r_type;
45397 +
45398 + reloc->howto = bfd_reloc_type_lookup (stdoutput, code);
45399 +
45400 + if (reloc->howto == NULL)
45401 + {
45402 + as_bad_where (fixp->fx_file, fixp->fx_line,
45403 + _("cannot represent relocation %s in this object file format"),
45404 + bfd_get_reloc_code_name (code));
45405 + return NULL;
45406 + }
45407 +
45408 + return reloc;
45409 +}
45410 +
45411 +bfd_boolean
45412 +avr32_force_reloc(fixS *fixP)
45413 +{
45414 + if (linkrelax && fixP->fx_addsy
45415 + && !(S_GET_SEGMENT(fixP->fx_addsy)->flags & SEC_DEBUGGING)
45416 + && S_GET_SEGMENT(fixP->fx_addsy) != absolute_section)
45417 + {
45418 + pr_debug(stderr, "force reloc: addsy=%p, r_type=%d, sec=%s\n",
45419 + fixP->fx_addsy, fixP->fx_r_type, S_GET_SEGMENT(fixP->fx_addsy)->name);
45420 + return 1;
45421 + }
45422 +
45423 + return generic_force_reloc(fixP);
45424 +}
45425 +
45426 +bfd_boolean
45427 +avr32_fix_adjustable(fixS *fixP)
45428 +{
45429 + switch (fixP->fx_r_type)
45430 + {
45431 + /* GOT relocations can't have addends since BFD treats all
45432 + references to a given symbol the same. This means that we
45433 + must avoid section-relative references to local symbols when
45434 + dealing with these kinds of relocs */
45435 + case BFD_RELOC_AVR32_GOT32:
45436 + case BFD_RELOC_AVR32_GOT16:
45437 + case BFD_RELOC_AVR32_GOT8:
45438 + case BFD_RELOC_AVR32_GOT21S:
45439 + case BFD_RELOC_AVR32_GOT18SW:
45440 + case BFD_RELOC_AVR32_GOT16S:
45441 + case BFD_RELOC_AVR32_LDA_GOT:
45442 + case BFD_RELOC_AVR32_GOTCALL:
45443 + pr_debug("fix not adjustable\n");
45444 + return 0;
45445 +
45446 + default:
45447 + break;
45448 + }
45449 +
45450 + return 1;
45451 +}
45452 +
45453 +/* When we want the linker to be able to relax the code, we need to
45454 + output a reloc for every .align directive requesting an alignment
45455 + to a four byte boundary or larger. If we don't do this, the linker
45456 + can't guarantee that the alignment is actually maintained in the
45457 + linker output.
45458 +
45459 + TODO: Might as well insert proper NOPs while we're at it... */
45460 +void
45461 +avr32_handle_align(fragS *frag)
45462 +{
45463 + if (linkrelax
45464 + && frag->fr_type == rs_align_code
45465 + && frag->fr_address + frag->fr_fix > 0
45466 + && frag->fr_offset > 0)
45467 + {
45468 + /* The alignment order (fr_offset) is stored in the addend. */
45469 + fix_new(frag, frag->fr_fix, 2, &abs_symbol, frag->fr_offset,
45470 + FALSE, BFD_RELOC_AVR32_ALIGN);
45471 + }
45472 +}
45473 +
45474 +/* Relax_align. Advance location counter to next address that has 'alignment'
45475 + lowest order bits all 0s, return size of adjustment made. */
45476 +relax_addressT
45477 +avr32_relax_align(segT segment ATTRIBUTE_UNUSED,
45478 + fragS *fragP,
45479 + relax_addressT address)
45480 +{
45481 + relax_addressT mask;
45482 + relax_addressT new_address;
45483 + int alignment;
45484 +
45485 + alignment = fragP->fr_offset;
45486 + mask = ~((~0) << alignment);
45487 + new_address = (address + mask) & (~mask);
45488 +
45489 + return new_address - address;
45490 +}
45491 +
45492 +/* Turn a string in input_line_pointer into a floating point constant
45493 + of type type, and store the appropriate bytes in *litP. The number
45494 + of LITTLENUMS emitted is stored in *sizeP . An error message is
45495 + returned, or NULL on OK. */
45496 +
45497 +/* Equal to MAX_PRECISION in atof-ieee.c */
45498 +#define MAX_LITTLENUMS 6
45499 +
45500 +char *
45501 +md_atof (type, litP, sizeP)
45502 +char type;
45503 +char * litP;
45504 +int * sizeP;
45505 +{
45506 + int i;
45507 + int prec;
45508 + LITTLENUM_TYPE words [MAX_LITTLENUMS];
45509 + char * t;
45510 +
45511 + switch (type)
45512 + {
45513 + case 'f':
45514 + case 'F':
45515 + case 's':
45516 + case 'S':
45517 + prec = 2;
45518 + break;
45519 +
45520 + case 'd':
45521 + case 'D':
45522 + case 'r':
45523 + case 'R':
45524 + prec = 4;
45525 + break;
45526 +
45527 + /* FIXME: Some targets allow other format chars for bigger sizes here. */
45528 +
45529 + default:
45530 + * sizeP = 0;
45531 + return _("Bad call to md_atof()");
45532 + }
45533 +
45534 + t = atof_ieee (input_line_pointer, type, words);
45535 + if (t)
45536 + input_line_pointer = t;
45537 + * sizeP = prec * sizeof (LITTLENUM_TYPE);
45538 +
45539 + for (i = 0; i < prec; i++)
45540 + {
45541 + md_number_to_chars (litP, (valueT) words[i],
45542 + sizeof (LITTLENUM_TYPE));
45543 + litP += sizeof (LITTLENUM_TYPE);
45544 + }
45545 +
45546 + return 0;
45547 +}
45548 +
45549 +static char *avr32_end_of_match(char *cont, char *what)
45550 +{
45551 + int len = strlen (what);
45552 +
45553 + if (! is_part_of_name (cont[len])
45554 + && strncasecmp (cont, what, len) == 0)
45555 + return cont + len;
45556 +
45557 + return NULL;
45558 +}
45559 +
45560 +int
45561 +avr32_parse_name (char const *name, expressionS *exp, char *nextchar)
45562 +{
45563 + char *next = input_line_pointer;
45564 + char *next_end;
45565 +
45566 + pr_debug("parse_name: %s, nextchar=%c (%02x)\n", name, *nextchar, *nextchar);
45567 +
45568 + if (*nextchar == '(')
45569 + {
45570 + if (strcasecmp(name, "hi") == 0)
45571 + {
45572 + *next = *nextchar;
45573 +
45574 + expression(exp);
45575 +
45576 + if (exp->X_op == O_constant)
45577 + {
45578 + pr_debug(" -> constant hi(0x%08lx) -> 0x%04lx\n",
45579 + exp->X_add_number, exp->X_add_number >> 16);
45580 + exp->X_add_number = (exp->X_add_number >> 16) & 0xffff;
45581 + }
45582 + else
45583 + {
45584 + exp->X_md = exp->X_op;
45585 + exp->X_op = O_hi;
45586 + }
45587 +
45588 + return 1;
45589 + }
45590 + else if (strcasecmp(name, "lo") == 0)
45591 + {
45592 + *next = *nextchar;
45593 +
45594 + expression(exp);
45595 +
45596 + if (exp->X_op == O_constant)
45597 + exp->X_add_number &= 0xffff;
45598 + else
45599 + {
45600 + exp->X_md = exp->X_op;
45601 + exp->X_op = O_lo;
45602 + }
45603 +
45604 + return 1;
45605 + }
45606 + }
45607 + else if (*nextchar == '@')
45608 + {
45609 + exp->X_md = exp->X_op;
45610 +
45611 + if ((next_end = avr32_end_of_match (next + 1, "got")))
45612 + exp->X_op = O_got;
45613 + else if ((next_end = avr32_end_of_match (next + 1, "tlsgd")))
45614 + exp->X_op = O_tlsgd;
45615 + /* Add more as needed */
45616 + else
45617 + {
45618 + char c;
45619 + input_line_pointer++;
45620 + c = get_symbol_end();
45621 + as_bad (_("unknown relocation override `%s'"), next + 1);
45622 + *input_line_pointer = c;
45623 + input_line_pointer = next;
45624 + return 0;
45625 + }
45626 +
45627 + exp->X_op_symbol = NULL;
45628 + exp->X_add_symbol = symbol_find_or_make (name);
45629 + exp->X_add_number = 0;
45630 +
45631 + *input_line_pointer = *nextchar;
45632 + input_line_pointer = next_end;
45633 + *nextchar = *input_line_pointer;
45634 + *input_line_pointer = '\0';
45635 + return 1;
45636 + }
45637 + else if (strcmp (name, "_GLOBAL_OFFSET_TABLE_") == 0)
45638 + {
45639 + if (!GOT_symbol)
45640 + GOT_symbol = symbol_find_or_make(name);
45641 +
45642 + exp->X_add_symbol = GOT_symbol;
45643 + exp->X_op = O_symbol;
45644 + exp->X_add_number = 0;
45645 + return 1;
45646 + }
45647 +
45648 + return 0;
45649 +}
45650 +
45651 +static void
45652 +s_rseg (int value ATTRIBUTE_UNUSED)
45653 +{
45654 + /* Syntax: RSEG segment_name [:type] [NOROOT|ROOT] [(align)]
45655 + * Defaults:
45656 + * - type: undocumented ("typically CODE or DATA")
45657 + * - ROOT
45658 + * - align: 1 for code, 0 for others
45659 + *
45660 + * TODO: NOROOT is ignored. If gas supports discardable segments, it should
45661 + * be implemented.
45662 + */
45663 + char *name, *end;
45664 + int length, type, attr;
45665 + int align = 0;
45666 +
45667 + SKIP_WHITESPACE();
45668 +
45669 + end = input_line_pointer;
45670 + while (0 == strchr ("\n\t;:( ", *end))
45671 + end++;
45672 + if (end == input_line_pointer)
45673 + {
45674 + as_warn (_("missing name"));
45675 + ignore_rest_of_line();
45676 + return;
45677 + }
45678 +
45679 + name = xmalloc (end - input_line_pointer + 1);
45680 + memcpy (name, input_line_pointer, end - input_line_pointer);
45681 + name[end - input_line_pointer] = '\0';
45682 + input_line_pointer = end;
45683 +
45684 + SKIP_WHITESPACE();
45685 +
45686 + type = SHT_NULL;
45687 + attr = 0;
45688 +
45689 + if (*input_line_pointer == ':')
45690 + {
45691 + /* Skip the colon */
45692 + ++input_line_pointer;
45693 + SKIP_WHITESPACE();
45694 +
45695 + /* Possible options at this point:
45696 + * - flag (ROOT or NOROOT)
45697 + * - a segment type
45698 + */
45699 + end = input_line_pointer;
45700 + while (0 == strchr ("\n\t;:( ", *end))
45701 + end++;
45702 + length = end - input_line_pointer;
45703 + if (((length == 4) && (0 == strncasecmp( input_line_pointer, "ROOT", 4))) ||
45704 + ((length == 6) && (0 == strncasecmp( input_line_pointer, "NOROOT", 6))))
45705 + {
45706 + /* Ignore ROOT/NOROOT */
45707 + input_line_pointer = end;
45708 + }
45709 + else
45710 + {
45711 + /* Must be a segment type */
45712 + switch (*input_line_pointer)
45713 + {
45714 + case 'C':
45715 + case 'c':
45716 + if ((length == 4) &&
45717 + (0 == strncasecmp (input_line_pointer, "CODE", 4)))
45718 + {
45719 + attr |= SHF_ALLOC | SHF_EXECINSTR;
45720 + type = SHT_PROGBITS;
45721 + align = 1;
45722 + break;
45723 + }
45724 + if ((length == 5) &&
45725 + (0 == strncasecmp (input_line_pointer, "CONST", 5)))
45726 + {
45727 + attr |= SHF_ALLOC;
45728 + type = SHT_PROGBITS;
45729 + break;
45730 + }
45731 + goto de_fault;
45732 +
45733 + case 'D':
45734 + case 'd':
45735 + if ((length == 4) &&
45736 + (0 == strncasecmp (input_line_pointer, "DATA", 4)))
45737 + {
45738 + attr |= SHF_ALLOC | SHF_WRITE;
45739 + type = SHT_PROGBITS;
45740 + break;
45741 + }
45742 + goto de_fault;
45743 +
45744 + /* TODO: Add FAR*, HUGE*, IDATA and NEAR* if necessary */
45745 +
45746 + case 'U':
45747 + case 'u':
45748 + if ((length == 7) &&
45749 + (0 == strncasecmp (input_line_pointer, "UNTYPED", 7)))
45750 + break;
45751 + goto de_fault;
45752 +
45753 + /* TODO: Add XDATA and ZPAGE if necessary */
45754 +
45755 + de_fault:
45756 + default:
45757 + as_warn (_("unrecognized segment type"));
45758 + }
45759 +
45760 + input_line_pointer = end;
45761 + SKIP_WHITESPACE();
45762 +
45763 + if (*input_line_pointer == ':')
45764 + {
45765 + /* ROOT/NOROOT */
45766 + ++input_line_pointer;
45767 + SKIP_WHITESPACE();
45768 +
45769 + end = input_line_pointer;
45770 + while (0 == strchr ("\n\t;:( ", *end))
45771 + end++;
45772 + length = end - input_line_pointer;
45773 + if (! ((length == 4) &&
45774 + (0 == strncasecmp( input_line_pointer, "ROOT", 4))) &&
45775 + ! ((length == 6) &&
45776 + (0 == strncasecmp( input_line_pointer, "NOROOT", 6))))
45777 + {
45778 + as_warn (_("unrecognized segment flag"));
45779 + }
45780 +
45781 + input_line_pointer = end;
45782 + SKIP_WHITESPACE();
45783 + }
45784 + }
45785 + }
45786 +
45787 + if (*input_line_pointer == '(')
45788 + {
45789 + align = get_absolute_expression ();
45790 + }
45791 +
45792 + demand_empty_rest_of_line();
45793 +
45794 + obj_elf_change_section (name, type, attr, 0, NULL, 0, 0);
45795 +#ifdef AVR32_DEBUG
45796 + fprintf( stderr, "RSEG: Changed section to %s, type: 0x%x, attr: 0x%x\n",
45797 + name, type, attr );
45798 + fprintf( stderr, "RSEG: Aligning to 2**%d\n", align );
45799 +#endif
45800 +
45801 + if (align > 15)
45802 + {
45803 + align = 15;
45804 + as_warn (_("alignment too large: %u assumed"), align);
45805 + }
45806 +
45807 + /* Hope not, that is */
45808 + assert (now_seg != absolute_section);
45809 +
45810 + /* Only make a frag if we HAVE to... */
45811 + if (align != 0 && !need_pass_2)
45812 + {
45813 + if (subseg_text_p (now_seg))
45814 + frag_align_code (align, 0);
45815 + else
45816 + frag_align (align, 0, 0);
45817 + }
45818 +
45819 + record_alignment (now_seg, align - OCTETS_PER_BYTE_POWER);
45820 +}
45821 +
45822 +/* vim: syntax=c sw=2
45823 + */
45824 diff -Nrup binutils-2.17/gas/config/tc-avr32.h binutils-2.17.atmel.1.3.0/gas/config/tc-avr32.h
45825 --- binutils-2.17/gas/config/tc-avr32.h 1970-01-01 01:00:00.000000000 +0100
45826 +++ binutils-2.17.atmel.1.3.0/gas/config/tc-avr32.h 2007-03-26 10:20:14.000000000 +0200
45827 @@ -0,0 +1,313 @@
45828 +/* Assembler definitions for AVR32.
45829 + Copyright 2003-2006 Atmel Corporation.
45830 +
45831 + Written by Haavard Skinnemoen, Atmel Norway, <hskinnemoen@atmel.com>
45832 +
45833 + This file is part of GAS, the GNU Assembler.
45834 +
45835 + GAS is free software; you can redistribute it and/or modify it
45836 + under the terms of the GNU General Public License as published by
45837 + the Free Software Foundation; either version 2, or (at your option)
45838 + any later version.
45839 +
45840 + GAS is distributed in the hope that it will be useful, but WITHOUT
45841 + ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
45842 + or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
45843 + License for more details.
45844 +
45845 + You should have received a copy of the GNU General Public License
45846 + along with GAS; see the file COPYING. If not, write to the Free
45847 + Software Foundation, 59 Temple Place - Suite 330, Boston, MA
45848 + 02111-1307, USA. */
45849 +
45850 +#if 0
45851 +#define DEBUG
45852 +#define DEBUG1
45853 +#define DEBUG2
45854 +#define DEBUG3
45855 +#define DEBUG4
45856 +#define DEBUG5
45857 +#endif
45858 +
45859 +/* Are we trying to be compatible with the IAR assembler? (--iar) */
45860 +extern int avr32_iarcompat;
45861 +
45862 +/* By convention, you should define this macro in the `.h' file. For
45863 + example, `tc-m68k.h' defines `TC_M68K'. You might have to use this
45864 + if it is necessary to add CPU specific code to the object format
45865 + file. */
45866 +#define TC_AVR32
45867 +
45868 +/* This macro is the BFD target name to use when creating the output
45869 + file. This will normally depend upon the `OBJ_FMT' macro. */
45870 +#define TARGET_FORMAT "elf32-avr32"
45871 +
45872 +/* This macro is the BFD architecture to pass to `bfd_set_arch_mach'. */
45873 +#define TARGET_ARCH bfd_arch_avr32
45874 +
45875 +/* This macro is the BFD machine number to pass to
45876 + `bfd_set_arch_mach'. If it is not defined, GAS will use 0. */
45877 +#define TARGET_MACH 0
45878 +
45879 +/* UNDOCUMENTED: Allow //-style comments */
45880 +#define DOUBLESLASH_LINE_COMMENTS
45881 +
45882 +/* You should define this macro to be non-zero if the target is big
45883 + endian, and zero if the target is little endian. */
45884 +#define TARGET_BYTES_BIG_ENDIAN 1
45885 +
45886 +/* FIXME: It seems that GAS only expects a one-byte opcode...
45887 + #define NOP_OPCODE 0xd703 */
45888 +
45889 +/* If you define this macro, GAS will warn about the use of
45890 + nonstandard escape sequences in a string. */
45891 +#undef ONLY_STANDARD_ESCAPES
45892 +
45893 +#define DWARF2_FORMAT() dwarf2_format_32bit
45894 +
45895 +/* Instructions are either 2 or 4 bytes long */
45896 +/* #define DWARF2_LINE_MIN_INSN_LENGTH 2 */
45897 +
45898 +/* GAS will call this function for any expression that can not be
45899 + recognized. When the function is called, `input_line_pointer'
45900 + will point to the start of the expression. */
45901 +#define md_operand(x)
45902 +
45903 +#define md_parse_name(name, expr, mode, c) avr32_parse_name(name, expr, c)
45904 +extern int avr32_parse_name(const char *, struct expressionS *, char *);
45905 +
45906 +/* You may define this macro to generate a fixup for a data
45907 + allocation pseudo-op. */
45908 +#define TC_CONS_FIX_NEW(FRAG, OFF, LEN, EXP) \
45909 + avr32_cons_fix_new(FRAG, OFF, LEN, EXP)
45910 +void avr32_cons_fix_new (fragS *, int, int, expressionS *);
45911 +
45912 +/* `extsym - .' expressions can be emitted using PC-relative relocs */
45913 +#define DIFF_EXPR_OK
45914 +
45915 +/* This is used to construct expressions out of @gotoff, etc. The
45916 + relocation type is stored in X_md */
45917 +#define O_got O_md1
45918 +#define O_hi O_md2
45919 +#define O_lo O_md3
45920 +#define O_tlsgd O_md4
45921 +
45922 +/* You may define this macro to parse an expression used in a data
45923 + allocation pseudo-op such as `.word'. You can use this to
45924 + recognize relocation directives that may appear in such directives. */
45925 +/* #define TC_PARSE_CONS_EXPRESSION(EXPR,N) avr_parse_cons_expression (EXPR,N)
45926 + void avr_parse_cons_expression (expressionS *exp, int nbytes); */
45927 +
45928 +/* This should just call either `number_to_chars_bigendian' or
45929 + `number_to_chars_littleendian', whichever is appropriate. On
45930 + targets like the MIPS which support options to change the
45931 + endianness, which function to call is a runtime decision. On
45932 + other targets, `md_number_to_chars' can be a simple macro. */
45933 +#define md_number_to_chars number_to_chars_bigendian
45934 +
45935 +/* `md_short_jump_size'
45936 + `md_long_jump_size'
45937 + `md_create_short_jump'
45938 + `md_create_long_jump'
45939 + If `WORKING_DOT_WORD' is defined, GAS will not do broken word
45940 + processing (*note Broken words::.). Otherwise, you should set
45941 + `md_short_jump_size' to the size of a short jump (a jump that is
45942 + just long enough to jump around a long jmp) and
45943 + `md_long_jump_size' to the size of a long jump (a jump that can go
45944 + anywhere in the function), You should define
45945 + `md_create_short_jump' to create a short jump around a long jump,
45946 + and define `md_create_long_jump' to create a long jump. */
45947 +#define WORKING_DOT_WORD
45948 +
45949 +/* If you define this macro, it means that `tc_gen_reloc' may return
45950 + multiple relocation entries for a single fixup. In this case, the
45951 + return value of `tc_gen_reloc' is a pointer to a null terminated
45952 + array. */
45953 +#undef RELOC_EXPANSION_POSSIBLE
45954 +
45955 +/* If you define this macro, GAS will not require pseudo-ops to start with a .
45956 + character. */
45957 +#define NO_PSEUDO_DOT (avr32_iarcompat)
45958 +
45959 +/* The IAR assembler uses $ as the location counter. Unfortunately, we
45960 + can't make this dependent on avr32_iarcompat... */
45961 +#define DOLLAR_DOT
45962 +
45963 +/* Values passed to md_apply_fix3 don't include the symbol value. */
45964 +#define MD_APPLY_SYM_VALUE(FIX) 0
45965 +
45966 +/* The number of bytes to put into a word in a listing. This affects
45967 + the way the bytes are clumped together in the listing. For
45968 + example, a value of 2 might print `1234 5678' where a value of 1
45969 + would print `12 34 56 78'. The default value is 4. */
45970 +#define LISTING_WORD_SIZE 4
45971 +
45972 +/* extern const struct relax_type md_relax_table[];
45973 +#define TC_GENERIC_RELAX_TABLE md_relax_table */
45974 +
45975 +/*
45976 + An `.lcomm' directive with no explicit alignment parameter will use
45977 + this macro to set P2VAR to the alignment that a request for SIZE
45978 + bytes will have. The alignment is expressed as a power of two. If
45979 + no alignment should take place, the macro definition should do
45980 + nothing. Some targets define a `.bss' directive that is also
45981 + affected by this macro. The default definition will set P2VAR to
45982 + the truncated power of two of sizes up to eight bytes.
45983 +
45984 + We want doublewords to be word-aligned, so we're going to modify the
45985 + default definition a tiny bit.
45986 +*/
45987 +#define TC_IMPLICIT_LCOMM_ALIGNMENT(SIZE, P2VAR) \
45988 + do \
45989 + { \
45990 + if ((SIZE) >= 4) \
45991 + (P2VAR) = 2; \
45992 + else if ((SIZE) >= 2) \
45993 + (P2VAR) = 1; \
45994 + else \
45995 + (P2VAR) = 0; \
45996 + } \
45997 + while (0)
45998 +
45999 +/* When relaxing, we need to generate relocations for alignment
46000 + directives. */
46001 +#define HANDLE_ALIGN(frag) avr32_handle_align(frag)
46002 +extern void avr32_handle_align(fragS *);
46003 +
46004 +/* See internals doc for explanation. Oh wait...
46005 + Now, can you guess where "alignment" comes from? ;-) */
46006 +#define MAX_MEM_FOR_RS_ALIGN_CODE ((1 << alignment) - 1)
46007 +
46008 +/* We need to stop gas from reducing certain expressions (e.g. GOT
46009 + references) */
46010 +#define tc_fix_adjustable(fix) avr32_fix_adjustable(fix)
46011 +extern bfd_boolean avr32_fix_adjustable(struct fix *);
46012 +
46013 +/* The linker needs to be passed a little more information when relaxing. */
46014 +#define TC_FORCE_RELOCATION(fix) avr32_force_reloc(fix)
46015 +extern bfd_boolean avr32_force_reloc(struct fix *);
46016 +
46017 +/* I'm tired of working around all the madness in fixup_segment().
46018 + This hook will do basically the same things as the generic code,
46019 + and then it will "goto" right past it. */
46020 +#define TC_VALIDATE_FIX(FIX, SEG, SKIP) \
46021 + do \
46022 + { \
46023 + avr32_process_fixup(FIX, SEG); \
46024 + if (!(FIX)->fx_done) \
46025 + ++seg_reloc_count; \
46026 + goto SKIP; \
46027 + } \
46028 + while (0)
46029 +extern void avr32_process_fixup(struct fix *fixP, segT this_segment);
46030 +
46031 +/* We don't want the gas core to make any assumptions about our way of
46032 + doing linkrelaxing. */
46033 +#define TC_LINKRELAX_FIXUP(SEG) 0
46034 +
46035 +/* ... but we do want it to insert lots of padding. */
46036 +#define LINKER_RELAXING_SHRINKS_ONLY
46037 +
46038 +/* Better do it ourselves, really... */
46039 +#define TC_RELAX_ALIGN(SEG, FRAG, ADDR) avr32_relax_align(SEG, FRAG, ADDR)
46040 +extern relax_addressT
46041 +avr32_relax_align(segT segment, fragS *fragP, relax_addressT address);
46042 +
46043 +/* This is called by write_object_file() just before symbols are
46044 + attempted converted into section symbols. */
46045 +#define tc_frob_file_before_adjust() avr32_frob_file()
46046 +extern void avr32_frob_file(void);
46047 +
46048 +/* If you define this macro, GAS will call it at the end of each input
46049 + file. */
46050 +#define md_cleanup() avr32_cleanup()
46051 +extern void avr32_cleanup(void);
46052 +
46053 +/* There's an AVR32-specific hack in operand() which creates O_md
46054 + expressions when encountering HWRD or LWRD. We need to generate
46055 + proper relocs for them */
46056 +/* #define md_cgen_record_fixup_exp avr32_cgen_record_fixup_exp */
46057 +
46058 +/* I needed to add an extra hook in gas_cgen_finish_insn() for
46059 + conversion of O_md* operands because md_cgen_record_fixup_exp()
46060 + isn't called for relaxable insns */
46061 +/* #define md_cgen_convert_expr(exp, opinfo) avr32_cgen_convert_expr(exp, opinfo)
46062 + int avr32_cgen_convert_expr(expressionS *, int); */
46063 +
46064 +/* #define tc_gen_reloc gas_cgen_tc_gen_reloc */
46065 +
46066 +/* If you define this macro, it should return the position from which
46067 + the PC relative adjustment for a PC relative fixup should be
46068 + made. On many processors, the base of a PC relative instruction is
46069 + the next instruction, so this macro would return the length of an
46070 + instruction, plus the address of the PC relative fixup. The latter
46071 + can be calculated as fixp->fx_where + fixp->fx_frag->fr_address. */
46072 +extern long md_pcrel_from_section (struct fix *, segT);
46073 +#define MD_PCREL_FROM_SECTION(FIX, SEC) md_pcrel_from_section (FIX, SEC)
46074 +
46075 +#define LOCAL_LABEL(name) (name[0] == '.' && (name[1] == 'L'))
46076 +#define LOCAL_LABELS_FB 1
46077 +
46078 +struct avr32_relaxer
46079 +{
46080 + int (*estimate_size)(fragS *, segT);
46081 + long (*relax_frag)(segT, fragS *, long);
46082 + void (*convert_frag)(bfd *, segT, fragS *);
46083 +};
46084 +
46085 +/* AVR32 has quite complex instruction coding, which means we need
46086 + * lots of information in order to do the right thing during relaxing
46087 + * (basically, we need to be able to reconstruct a whole new opcode if
46088 + * necessary) */
46089 +#define TC_FRAG_TYPE struct avr32_frag_data
46090 +
46091 +struct cpool;
46092 +
46093 +struct avr32_frag_data
46094 +{
46095 + /* TODO: Maybe add an expression object here so that we can use
46096 + fix_new_exp() in md_convert_frag? We may have to decide
46097 + pcrel-ness in md_estimate_size_before_relax() as well...or we
46098 + might do it when parsing. Doing it while parsing may fail
46099 + because the sub_symbol is undefined then... */
46100 + int pcrel;
46101 + int force_extended;
46102 + int reloc_info;
46103 + struct avr32_relaxer *relaxer;
46104 + expressionS exp;
46105 +
46106 + /* Points to associated constant pool, for use by LDA and CALL in
46107 + non-pic mode, and when relaxing the .cpool directive */
46108 + struct cpool *pool;
46109 + unsigned int pool_entry;
46110 +};
46111 +
46112 +/* We will have to initialize the fields explicitly when needed */
46113 +#define TC_FRAG_INIT(fragP)
46114 +
46115 +#define md_estimate_size_before_relax(fragP, segT) \
46116 + ((fragP)->tc_frag_data.relaxer->estimate_size(fragP, segT))
46117 +#define md_relax_frag(segment, fragP, stretch) \
46118 + ((fragP)->tc_frag_data.relaxer->relax_frag(segment, fragP, stretch))
46119 +#define md_convert_frag(abfd, segment, fragP) \
46120 + ((fragP)->tc_frag_data.relaxer->convert_frag(abfd, segment, fragP))
46121 +
46122 +#define TC_FIX_TYPE struct avr32_fix_data
46123 +
46124 +struct avr32_fix_data
46125 +{
46126 + const struct avr32_ifield *ifield;
46127 + unsigned int align;
46128 + long min;
46129 + long max;
46130 +};
46131 +
46132 +#define TC_INIT_FIX_DATA(fixP) \
46133 + do \
46134 + { \
46135 + (fixP)->tc_fix_data.ifield = NULL; \
46136 + (fixP)->tc_fix_data.align = 0; \
46137 + (fixP)->tc_fix_data.min = 0; \
46138 + (fixP)->tc_fix_data.max = 0; \
46139 + } \
46140 + while (0)
46141 diff -Nrup binutils-2.17/gas/configure.tgt binutils-2.17.atmel.1.3.0/gas/configure.tgt
46142 --- binutils-2.17/gas/configure.tgt 2006-04-05 14:41:57.000000000 +0200
46143 +++ binutils-2.17.atmel.1.3.0/gas/configure.tgt 2007-03-26 10:20:16.000000000 +0200
46144 @@ -33,6 +33,7 @@ case ${cpu} in
46145 am33_2.0) cpu_type=mn10300 endian=little ;;
46146 arm*be|arm*b) cpu_type=arm endian=big ;;
46147 arm*) cpu_type=arm endian=little ;;
46148 + avr32*) cpu_type=avr32 endian=big ;;
46149 bfin*) cpu_type=bfin endian=little ;;
46150 c4x*) cpu_type=tic4x ;;
46151 crisv32) cpu_type=cris arch=crisv32 ;;
46152 @@ -122,6 +123,9 @@ case ${generic_target} in
46153 bfin-*-*) fmt=elf bfd_gas=yes ;;
46154 bfin-*elf) fmt=elf ;;
46155
46156 + avr32-*-linux*) fmt=elf em=linux bfd_gas=yes ;;
46157 + avr32*) fmt=elf bfd_gas=yes ;;
46158 +
46159 cris-*-linux-* | crisv32-*-linux-*)
46160 fmt=multi em=linux ;;
46161 cris-*-* | crisv32-*-*) fmt=multi ;;
46162 diff -Nrup binutils-2.17/gas/doc/all.texi binutils-2.17.atmel.1.3.0/gas/doc/all.texi
46163 --- binutils-2.17/gas/doc/all.texi 2006-02-17 15:36:25.000000000 +0100
46164 +++ binutils-2.17.atmel.1.3.0/gas/doc/all.texi 2007-03-26 10:19:41.000000000 +0200
46165 @@ -29,6 +29,7 @@
46166 @set ALPHA
46167 @set ARC
46168 @set ARM
46169 +@set AVR32
46170 @set BFIN
46171 @set CRIS
46172 @set D10V
46173 diff -Nrup binutils-2.17/gas/doc/as.info binutils-2.17.atmel.1.3.0/gas/doc/as.info
46174 --- binutils-2.17/gas/doc/as.info 2006-06-23 20:19:50.000000000 +0200
46175 +++ binutils-2.17.atmel.1.3.0/gas/doc/as.info 2007-03-26 10:35:18.000000000 +0200
46176 @@ -1,5 +1,7 @@
46177 -This is ../.././gas/doc/as.info, produced by makeinfo version 4.8 from
46178 -../.././gas/doc/as.texinfo.
46179 +This is
46180 +/home/hcegtvedt/svnwork/tools/T0243-GNU_Toolchain/50-Source/binutils/trunk/gas/doc/as.info,
46181 +produced by makeinfo version 4.8 from
46182 +/home/hcegtvedt/svnwork/tools/T0243-GNU_Toolchain/50-Source/binutils/trunk/gas/doc/as.texinfo.
46183
46184 START-INFO-DIR-ENTRY
46185 * As: (as). The GNU assembler.
46186 @@ -17890,463 +17892,463 @@ Index
46187
46188 \1f
46189 Tag Table:
46190 -Node: Top\7f778
46191 -Node: Overview\7f1695
46192 -Node: Manual\7f28187
46193 -Node: GNU Assembler\7f29131
46194 -Node: Object Formats\7f30302
46195 -Node: Command Line\7f30754
46196 -Node: Input Files\7f31841
46197 -Node: Object\7f33822
46198 -Node: Errors\7f34718
46199 -Node: Invoking\7f35913
46200 -Node: a\7f37862
46201 -Node: alternate\7f39634
46202 -Node: D\7f39806
46203 -Node: f\7f40039
46204 -Node: I\7f40547
46205 -Node: K\7f41091
46206 -Node: L\7f41394
46207 -Node: listing\7f42231
46208 -Node: M\7f43823
46209 -Node: MD\7f48224
46210 -Node: o\7f48650
46211 -Node: R\7f49105
46212 -Node: statistics\7f50135
46213 -Node: traditional-format\7f50542
46214 -Node: v\7f51015
46215 -Node: W\7f51290
46216 -Node: Z\7f52197
46217 -Node: Syntax\7f52719
46218 -Node: Preprocessing\7f53310
46219 -Node: Whitespace\7f54873
46220 -Node: Comments\7f55269
46221 -Node: Symbol Intro\7f57422
46222 -Node: Statements\7f58112
46223 -Node: Constants\7f60028
46224 -Node: Characters\7f60659
46225 -Node: Strings\7f61161
46226 -Node: Chars\7f63327
46227 -Node: Numbers\7f64081
46228 -Node: Integers\7f64621
46229 -Node: Bignums\7f65277
46230 -Node: Flonums\7f65633
46231 -Node: Sections\7f67380
46232 -Node: Secs Background\7f67758
46233 -Node: Ld Sections\7f72797
46234 -Node: As Sections\7f75181
46235 -Node: Sub-Sections\7f76091
46236 -Node: bss\7f79238
46237 -Node: Symbols\7f80188
46238 -Node: Labels\7f80836
46239 -Node: Setting Symbols\7f81567
46240 -Node: Symbol Names\7f82063
46241 -Node: Dot\7f86428
46242 -Node: Symbol Attributes\7f86875
46243 -Node: Symbol Value\7f87612
46244 -Node: Symbol Type\7f88657
46245 -Node: a.out Symbols\7f89045
46246 -Node: Symbol Desc\7f89307
46247 -Node: Symbol Other\7f89602
46248 -Node: COFF Symbols\7f89771
46249 -Node: SOM Symbols\7f90444
46250 -Node: Expressions\7f90886
46251 -Node: Empty Exprs\7f91635
46252 -Node: Integer Exprs\7f91982
46253 -Node: Arguments\7f92377
46254 -Node: Operators\7f93483
46255 -Node: Prefix Ops\7f93818
46256 -Node: Infix Ops\7f94146
46257 -Node: Pseudo Ops\7f96536
46258 -Node: Abort\7f101731
46259 -Node: ABORT\7f102136
46260 -Node: Align\7f102323
46261 -Node: Ascii\7f104605
46262 -Node: Asciz\7f104914
46263 -Node: Balign\7f105159
46264 -Node: Byte\7f107022
46265 -Node: Comm\7f107260
46266 -Node: CFI directives\7f108634
46267 -Node: LNS directives\7f110986
46268 -Node: Data\7f113063
46269 -Node: Def\7f113390
46270 -Node: Desc\7f113622
46271 -Node: Dim\7f114122
46272 -Node: Double\7f114379
46273 -Node: Eject\7f114717
46274 -Node: Else\7f114892
46275 -Node: Elseif\7f115188
46276 -Node: End\7f115478
46277 -Node: Endef\7f115693
46278 -Node: Endfunc\7f115870
46279 -Node: Endif\7f116045
46280 -Node: Equ\7f116306
46281 -Node: Equiv\7f116815
46282 -Node: Eqv\7f117371
46283 -Node: Err\7f117735
46284 -Node: Error\7f118046
46285 -Node: Exitm\7f118491
46286 -Node: Extern\7f118660
46287 -Node: Fail\7f118921
46288 -Node: File\7f119366
46289 -Node: Fill\7f119843
46290 -Node: Float\7f120807
46291 -Node: Func\7f121149
46292 -Node: Global\7f121739
46293 -Node: Hidden\7f122489
46294 -Node: hword\7f123068
46295 -Node: Ident\7f123396
46296 -Node: If\7f123970
46297 -Node: Incbin\7f127029
46298 -Node: Include\7f127724
46299 -Node: Int\7f128275
46300 -Node: Internal\7f128656
46301 -Node: Irp\7f129304
46302 -Node: Irpc\7f130201
46303 -Node: Lcomm\7f131118
46304 -Node: Lflags\7f131866
46305 -Node: Line\7f132060
46306 -Node: Linkonce\7f132979
46307 -Node: Ln\7f134208
46308 -Node: MRI\7f134369
46309 -Node: List\7f134707
46310 -Node: Long\7f135315
46311 -Node: Macro\7f135501
46312 -Node: Altmacro\7f140064
46313 -Node: Noaltmacro\7f141394
46314 -Node: Nolist\7f141562
46315 -Node: Octa\7f141992
46316 -Node: Org\7f142326
46317 -Node: P2align\7f143609
46318 -Node: Previous\7f145537
46319 -Node: PopSection\7f146231
46320 -Node: Print\7f146739
46321 -Node: Protected\7f146968
46322 -Node: Psize\7f147615
46323 -Node: Purgem\7f148299
46324 -Node: PushSection\7f148520
46325 -Node: Quad\7f149077
46326 -Node: Rept\7f149532
46327 -Node: Sbttl\7f149945
46328 -Node: Scl\7f150310
46329 -Node: Section\7f150651
46330 -Node: Set\7f155791
46331 -Node: Short\7f156428
46332 -Node: Single\7f156748
46333 -Node: Size\7f157093
46334 -Node: Sleb128\7f157765
46335 -Node: Skip\7f158087
46336 -Node: Space\7f158409
46337 -Node: Stab\7f159048
46338 -Node: String\7f161050
46339 -Node: Struct\7f161476
46340 -Node: SubSection\7f162199
46341 -Node: Symver\7f162760
46342 -Node: Tag\7f165151
46343 -Node: Text\7f165531
46344 -Node: Title\7f165850
46345 -Node: Type\7f166229
46346 -Node: Uleb128\7f167306
46347 -Node: Val\7f167630
46348 -Node: Version\7f167880
46349 -Node: VTableEntry\7f168155
46350 -Node: VTableInherit\7f168445
46351 -Node: Warning\7f168891
46352 -Node: Weak\7f169125
46353 -Node: Weakref\7f169794
46354 -Node: Word\7f170759
46355 -Node: Deprecated\7f172605
46356 -Node: Machine Dependencies\7f172840
46357 -Node: Alpha-Dependent\7f175604
46358 -Node: Alpha Notes\7f176018
46359 -Node: Alpha Options\7f176299
46360 -Node: Alpha Syntax\7f178497
46361 -Node: Alpha-Chars\7f178966
46362 -Node: Alpha-Regs\7f179197
46363 -Node: Alpha-Relocs\7f179584
46364 -Node: Alpha Floating Point\7f185842
46365 -Node: Alpha Directives\7f186064
46366 -Node: Alpha Opcodes\7f191587
46367 -Node: ARC-Dependent\7f191882
46368 -Node: ARC Options\7f192265
46369 -Node: ARC Syntax\7f193334
46370 -Node: ARC-Chars\7f193566
46371 -Node: ARC-Regs\7f193698
46372 -Node: ARC Floating Point\7f193822
46373 -Node: ARC Directives\7f194133
46374 -Node: ARC Opcodes\7f200104
46375 -Node: ARM-Dependent\7f200330
46376 -Node: ARM Options\7f200757
46377 -Node: ARM Syntax\7f206551
46378 -Node: ARM-Chars\7f206783
46379 -Node: ARM-Regs\7f207307
46380 -Node: ARM Floating Point\7f207492
46381 -Node: ARM Directives\7f207691
46382 -Node: ARM Opcodes\7f214055
46383 -Node: ARM Mapping Symbols\7f216143
46384 -Node: BFIN-Dependent\7f216922
46385 -Node: BFIN Syntax\7f217176
46386 -Node: BFIN Directives\7f222873
46387 -Node: CRIS-Dependent\7f223280
46388 -Node: CRIS-Opts\7f223626
46389 -Ref: march-option\7f225244
46390 -Node: CRIS-Expand\7f227061
46391 -Node: CRIS-Symbols\7f228244
46392 -Node: CRIS-Syntax\7f229413
46393 -Node: CRIS-Chars\7f229749
46394 -Node: CRIS-Pic\7f230300
46395 -Ref: crispic\7f230496
46396 -Node: CRIS-Regs\7f234036
46397 -Node: CRIS-Pseudos\7f234453
46398 -Ref: crisnous\7f235229
46399 -Node: D10V-Dependent\7f236511
46400 -Node: D10V-Opts\7f236862
46401 -Node: D10V-Syntax\7f237825
46402 -Node: D10V-Size\7f238354
46403 -Node: D10V-Subs\7f239327
46404 -Node: D10V-Chars\7f240362
46405 -Node: D10V-Regs\7f241966
46406 -Node: D10V-Addressing\7f243011
46407 -Node: D10V-Word\7f243697
46408 -Node: D10V-Float\7f244212
46409 -Node: D10V-Opcodes\7f244523
46410 -Node: D30V-Dependent\7f244916
46411 -Node: D30V-Opts\7f245269
46412 -Node: D30V-Syntax\7f245944
46413 -Node: D30V-Size\7f246476
46414 -Node: D30V-Subs\7f247447
46415 -Node: D30V-Chars\7f248482
46416 -Node: D30V-Guarded\7f250780
46417 -Node: D30V-Regs\7f251460
46418 -Node: D30V-Addressing\7f252599
46419 -Node: D30V-Float\7f253267
46420 -Node: D30V-Opcodes\7f253578
46421 -Node: H8/300-Dependent\7f253971
46422 -Node: H8/300 Options\7f254381
46423 -Node: H8/300 Syntax\7f254590
46424 -Node: H8/300-Chars\7f254889
46425 -Node: H8/300-Regs\7f255186
46426 -Node: H8/300-Addressing\7f256103
46427 -Node: H8/300 Floating Point\7f257142
46428 -Node: H8/300 Directives\7f257467
46429 -Node: H8/300 Opcodes\7f258593
46430 -Node: HPPA-Dependent\7f266913
46431 -Node: HPPA Notes\7f267346
46432 -Node: HPPA Options\7f268102
46433 -Node: HPPA Syntax\7f268295
46434 -Node: HPPA Floating Point\7f269563
46435 -Node: HPPA Directives\7f269767
46436 -Node: HPPA Opcodes\7f278451
46437 -Node: ESA/390-Dependent\7f278708
46438 -Node: ESA/390 Notes\7f279168
46439 -Node: ESA/390 Options\7f279959
46440 -Node: ESA/390 Syntax\7f280169
46441 -Node: ESA/390 Floating Point\7f282342
46442 -Node: ESA/390 Directives\7f282621
46443 -Node: ESA/390 Opcodes\7f285910
46444 -Node: i386-Dependent\7f286172
46445 -Node: i386-Options\7f287240
46446 -Node: i386-Syntax\7f288430
46447 -Node: i386-Mnemonics\7f290844
46448 -Node: i386-Regs\7f293309
46449 -Node: i386-Prefixes\7f295354
46450 -Node: i386-Memory\7f298114
46451 -Node: i386-Jumps\7f301051
46452 -Node: i386-Float\7f302172
46453 -Node: i386-SIMD\7f304001
46454 -Node: i386-16bit\7f305110
46455 -Node: i386-Bugs\7f307148
46456 -Node: i386-Arch\7f307902
46457 -Node: i386-Notes\7f310083
46458 -Node: i860-Dependent\7f310941
46459 -Node: Notes-i860\7f311337
46460 -Node: Options-i860\7f312242
46461 -Node: Directives-i860\7f313605
46462 -Node: Opcodes for i860\7f314674
46463 -Node: i960-Dependent\7f316841
46464 -Node: Options-i960\7f317244
46465 -Node: Floating Point-i960\7f321128
46466 -Node: Directives-i960\7f321396
46467 -Node: Opcodes for i960\7f323430
46468 -Node: callj-i960\7f324047
46469 -Node: Compare-and-branch-i960\7f324536
46470 -Node: IA-64-Dependent\7f326440
46471 -Node: IA-64 Options\7f326741
46472 -Node: IA-64 Syntax\7f329901
46473 -Node: IA-64-Chars\7f330264
46474 -Node: IA-64-Regs\7f330494
46475 -Node: IA-64-Bits\7f331420
46476 -Node: IA-64 Opcodes\7f331929
46477 -Node: IP2K-Dependent\7f332201
46478 -Node: IP2K-Opts\7f332429
46479 -Node: M32C-Dependent\7f332909
46480 -Node: M32C-Opts\7f333433
46481 -Node: M32C-Modifiers\7f333717
46482 -Node: M32R-Dependent\7f335504
46483 -Node: M32R-Opts\7f335825
46484 -Node: M32R-Directives\7f339991
46485 -Node: M32R-Warnings\7f343966
46486 -Node: M68K-Dependent\7f346972
46487 -Node: M68K-Opts\7f347439
46488 -Node: M68K-Syntax\7f354818
46489 -Node: M68K-Moto-Syntax\7f356657
46490 -Node: M68K-Float\7f359246
46491 -Node: M68K-Directives\7f359766
46492 -Node: M68K-opcodes\7f361092
46493 -Node: M68K-Branch\7f361318
46494 -Node: M68K-Chars\7f365516
46495 -Node: M68HC11-Dependent\7f365929
46496 -Node: M68HC11-Opts\7f366460
46497 -Node: M68HC11-Syntax\7f370276
46498 -Node: M68HC11-Modifiers\7f372490
46499 -Node: M68HC11-Directives\7f374318
46500 -Node: M68HC11-Float\7f375694
46501 -Node: M68HC11-opcodes\7f376222
46502 -Node: M68HC11-Branch\7f376404
46503 -Node: MIPS-Dependent\7f378851
46504 -Node: MIPS Opts\7f379941
46505 -Node: MIPS Object\7f387268
46506 -Node: MIPS Stabs\7f388834
46507 -Node: MIPS symbol sizes\7f389556
46508 -Node: MIPS ISA\7f391225
46509 -Node: MIPS autoextend\7f392374
46510 -Node: MIPS insn\7f393104
46511 -Node: MIPS option stack\7f393601
46512 -Node: MIPS ASE instruction generation overrides\7f394375
46513 -Node: MMIX-Dependent\7f395592
46514 -Node: MMIX-Opts\7f395972
46515 -Node: MMIX-Expand\7f399576
46516 -Node: MMIX-Syntax\7f400891
46517 -Ref: mmixsite\7f401248
46518 -Node: MMIX-Chars\7f402089
46519 -Node: MMIX-Symbols\7f402743
46520 -Node: MMIX-Regs\7f404811
46521 -Node: MMIX-Pseudos\7f405836
46522 -Ref: MMIX-loc\7f405977
46523 -Ref: MMIX-local\7f407057
46524 -Ref: MMIX-is\7f407589
46525 -Ref: MMIX-greg\7f407860
46526 -Ref: GREG-base\7f408779
46527 -Ref: MMIX-byte\7f410096
46528 -Ref: MMIX-constants\7f410567
46529 -Ref: MMIX-prefix\7f411213
46530 -Ref: MMIX-spec\7f411587
46531 -Node: MMIX-mmixal\7f411921
46532 -Node: MSP430-Dependent\7f415418
46533 -Node: MSP430 Options\7f415884
46534 -Node: MSP430 Syntax\7f416170
46535 -Node: MSP430-Macros\7f416486
46536 -Node: MSP430-Chars\7f417217
46537 -Node: MSP430-Regs\7f417530
46538 -Node: MSP430-Ext\7f418090
46539 -Node: MSP430 Floating Point\7f419911
46540 -Node: MSP430 Directives\7f420135
46541 -Node: MSP430 Opcodes\7f420926
46542 -Node: MSP430 Profiling Capability\7f421321
46543 -Node: PDP-11-Dependent\7f423650
46544 -Node: PDP-11-Options\7f424039
46545 -Node: PDP-11-Pseudos\7f429110
46546 -Node: PDP-11-Syntax\7f429455
46547 -Node: PDP-11-Mnemonics\7f430206
46548 -Node: PDP-11-Synthetic\7f430508
46549 -Node: PJ-Dependent\7f430726
46550 -Node: PJ Options\7f430951
46551 -Node: PPC-Dependent\7f431228
46552 -Node: PowerPC-Opts\7f431515
46553 -Node: PowerPC-Pseudo\7f433590
46554 -Node: SH-Dependent\7f434189
46555 -Node: SH Options\7f434601
46556 -Node: SH Syntax\7f435529
46557 -Node: SH-Chars\7f435802
46558 -Node: SH-Regs\7f436096
46559 -Node: SH-Addressing\7f436710
46560 -Node: SH Floating Point\7f437619
46561 -Node: SH Directives\7f438713
46562 -Node: SH Opcodes\7f439083
46563 -Node: SH64-Dependent\7f443405
46564 -Node: SH64 Options\7f443768
46565 -Node: SH64 Syntax\7f445485
46566 -Node: SH64-Chars\7f445768
46567 -Node: SH64-Regs\7f446068
46568 -Node: SH64-Addressing\7f447164
46569 -Node: SH64 Directives\7f448347
46570 -Node: SH64 Opcodes\7f449457
46571 -Node: Sparc-Dependent\7f450173
46572 -Node: Sparc-Opts\7f450558
46573 -Node: Sparc-Aligned-Data\7f452815
46574 -Node: Sparc-Float\7f453670
46575 -Node: Sparc-Directives\7f453871
46576 -Node: TIC54X-Dependent\7f455831
46577 -Node: TIC54X-Opts\7f456557
46578 -Node: TIC54X-Block\7f457600
46579 -Node: TIC54X-Env\7f457960
46580 -Node: TIC54X-Constants\7f458308
46581 -Node: TIC54X-Subsyms\7f458710
46582 -Node: TIC54X-Locals\7f460619
46583 -Node: TIC54X-Builtins\7f461363
46584 -Node: TIC54X-Ext\7f463834
46585 -Node: TIC54X-Directives\7f464405
46586 -Node: TIC54X-Macros\7f475307
46587 -Node: TIC54X-MMRegs\7f477417
46588 -Node: Z80-Dependent\7f477633
46589 -Node: Z80 Options\7f478021
46590 -Node: Z80 Syntax\7f479444
46591 -Node: Z80-Chars\7f480116
46592 -Node: Z80-Regs\7f480649
46593 -Node: Z80-Case\7f481001
46594 -Node: Z80 Floating Point\7f481446
46595 -Node: Z80 Directives\7f481640
46596 -Node: Z80 Opcodes\7f483265
46597 -Node: Z8000-Dependent\7f484607
46598 -Node: Z8000 Options\7f485568
46599 -Node: Z8000 Syntax\7f485785
46600 -Node: Z8000-Chars\7f486075
46601 -Node: Z8000-Regs\7f486308
46602 -Node: Z8000-Addressing\7f487098
46603 -Node: Z8000 Directives\7f488215
46604 -Node: Z8000 Opcodes\7f489824
46605 -Node: Vax-Dependent\7f499766
46606 -Node: VAX-Opts\7f500283
46607 -Node: VAX-float\7f504018
46608 -Node: VAX-directives\7f504650
46609 -Node: VAX-opcodes\7f505511
46610 -Node: VAX-branch\7f505900
46611 -Node: VAX-operands\7f508407
46612 -Node: VAX-no\7f509170
46613 -Node: V850-Dependent\7f509407
46614 -Node: V850 Options\7f509805
46615 -Node: V850 Syntax\7f512194
46616 -Node: V850-Chars\7f512434
46617 -Node: V850-Regs\7f512599
46618 -Node: V850 Floating Point\7f514167
46619 -Node: V850 Directives\7f514373
46620 -Node: V850 Opcodes\7f515516
46621 -Node: Xtensa-Dependent\7f521408
46622 -Node: Xtensa Options\7f522137
46623 -Node: Xtensa Syntax\7f524908
46624 -Node: Xtensa Opcodes\7f526797
46625 -Node: Xtensa Registers\7f528591
46626 -Node: Xtensa Optimizations\7f529224
46627 -Node: Density Instructions\7f529676
46628 -Node: Xtensa Automatic Alignment\7f530778
46629 -Node: Xtensa Relaxation\7f533524
46630 -Node: Xtensa Branch Relaxation\7f534432
46631 -Node: Xtensa Call Relaxation\7f535804
46632 -Node: Xtensa Immediate Relaxation\7f537590
46633 -Node: Xtensa Directives\7f540164
46634 -Node: Schedule Directive\7f541872
46635 -Node: Longcalls Directive\7f542212
46636 -Node: Transform Directive\7f542756
46637 -Node: Literal Directive\7f543498
46638 -Node: Literal Position Directive\7f545283
46639 -Node: Literal Prefix Directive\7f546982
46640 -Node: Absolute Literals Directive\7f549145
46641 -Node: Reporting Bugs\7f550452
46642 -Node: Bug Criteria\7f551176
46643 -Node: Bug Reporting\7f551941
46644 -Node: Acknowledgements\7f558574
46645 -Ref: Acknowledgements-Footnote-1\7f563472
46646 -Node: GNU Free Documentation License\7f563498
46647 -Node: Index\7f583225
46648 +Node: Top\7f912
46649 +Node: Overview\7f1829
46650 +Node: Manual\7f28321
46651 +Node: GNU Assembler\7f29265
46652 +Node: Object Formats\7f30436
46653 +Node: Command Line\7f30888
46654 +Node: Input Files\7f31975
46655 +Node: Object\7f33956
46656 +Node: Errors\7f34852
46657 +Node: Invoking\7f36047
46658 +Node: a\7f37996
46659 +Node: alternate\7f39768
46660 +Node: D\7f39940
46661 +Node: f\7f40173
46662 +Node: I\7f40681
46663 +Node: K\7f41225
46664 +Node: L\7f41528
46665 +Node: listing\7f42365
46666 +Node: M\7f43957
46667 +Node: MD\7f48358
46668 +Node: o\7f48784
46669 +Node: R\7f49239
46670 +Node: statistics\7f50269
46671 +Node: traditional-format\7f50676
46672 +Node: v\7f51149
46673 +Node: W\7f51424
46674 +Node: Z\7f52331
46675 +Node: Syntax\7f52853
46676 +Node: Preprocessing\7f53444
46677 +Node: Whitespace\7f55007
46678 +Node: Comments\7f55403
46679 +Node: Symbol Intro\7f57556
46680 +Node: Statements\7f58246
46681 +Node: Constants\7f60162
46682 +Node: Characters\7f60793
46683 +Node: Strings\7f61295
46684 +Node: Chars\7f63461
46685 +Node: Numbers\7f64215
46686 +Node: Integers\7f64755
46687 +Node: Bignums\7f65411
46688 +Node: Flonums\7f65767
46689 +Node: Sections\7f67514
46690 +Node: Secs Background\7f67892
46691 +Node: Ld Sections\7f72931
46692 +Node: As Sections\7f75315
46693 +Node: Sub-Sections\7f76225
46694 +Node: bss\7f79372
46695 +Node: Symbols\7f80322
46696 +Node: Labels\7f80970
46697 +Node: Setting Symbols\7f81701
46698 +Node: Symbol Names\7f82197
46699 +Node: Dot\7f86562
46700 +Node: Symbol Attributes\7f87009
46701 +Node: Symbol Value\7f87746
46702 +Node: Symbol Type\7f88791
46703 +Node: a.out Symbols\7f89179
46704 +Node: Symbol Desc\7f89441
46705 +Node: Symbol Other\7f89736
46706 +Node: COFF Symbols\7f89905
46707 +Node: SOM Symbols\7f90578
46708 +Node: Expressions\7f91020
46709 +Node: Empty Exprs\7f91769
46710 +Node: Integer Exprs\7f92116
46711 +Node: Arguments\7f92511
46712 +Node: Operators\7f93617
46713 +Node: Prefix Ops\7f93952
46714 +Node: Infix Ops\7f94280
46715 +Node: Pseudo Ops\7f96670
46716 +Node: Abort\7f101865
46717 +Node: ABORT\7f102270
46718 +Node: Align\7f102457
46719 +Node: Ascii\7f104739
46720 +Node: Asciz\7f105048
46721 +Node: Balign\7f105293
46722 +Node: Byte\7f107156
46723 +Node: Comm\7f107394
46724 +Node: CFI directives\7f108768
46725 +Node: LNS directives\7f111120
46726 +Node: Data\7f113197
46727 +Node: Def\7f113524
46728 +Node: Desc\7f113756
46729 +Node: Dim\7f114256
46730 +Node: Double\7f114513
46731 +Node: Eject\7f114851
46732 +Node: Else\7f115026
46733 +Node: Elseif\7f115322
46734 +Node: End\7f115612
46735 +Node: Endef\7f115827
46736 +Node: Endfunc\7f116004
46737 +Node: Endif\7f116179
46738 +Node: Equ\7f116440
46739 +Node: Equiv\7f116949
46740 +Node: Eqv\7f117505
46741 +Node: Err\7f117869
46742 +Node: Error\7f118180
46743 +Node: Exitm\7f118625
46744 +Node: Extern\7f118794
46745 +Node: Fail\7f119055
46746 +Node: File\7f119500
46747 +Node: Fill\7f119977
46748 +Node: Float\7f120941
46749 +Node: Func\7f121283
46750 +Node: Global\7f121873
46751 +Node: Hidden\7f122623
46752 +Node: hword\7f123202
46753 +Node: Ident\7f123530
46754 +Node: If\7f124104
46755 +Node: Incbin\7f127163
46756 +Node: Include\7f127858
46757 +Node: Int\7f128409
46758 +Node: Internal\7f128790
46759 +Node: Irp\7f129438
46760 +Node: Irpc\7f130335
46761 +Node: Lcomm\7f131252
46762 +Node: Lflags\7f132000
46763 +Node: Line\7f132194
46764 +Node: Linkonce\7f133113
46765 +Node: Ln\7f134342
46766 +Node: MRI\7f134503
46767 +Node: List\7f134841
46768 +Node: Long\7f135449
46769 +Node: Macro\7f135635
46770 +Node: Altmacro\7f140198
46771 +Node: Noaltmacro\7f141528
46772 +Node: Nolist\7f141696
46773 +Node: Octa\7f142126
46774 +Node: Org\7f142460
46775 +Node: P2align\7f143743
46776 +Node: Previous\7f145671
46777 +Node: PopSection\7f146365
46778 +Node: Print\7f146873
46779 +Node: Protected\7f147102
46780 +Node: Psize\7f147749
46781 +Node: Purgem\7f148433
46782 +Node: PushSection\7f148654
46783 +Node: Quad\7f149211
46784 +Node: Rept\7f149666
46785 +Node: Sbttl\7f150079
46786 +Node: Scl\7f150444
46787 +Node: Section\7f150785
46788 +Node: Set\7f155925
46789 +Node: Short\7f156562
46790 +Node: Single\7f156882
46791 +Node: Size\7f157227
46792 +Node: Sleb128\7f157899
46793 +Node: Skip\7f158221
46794 +Node: Space\7f158543
46795 +Node: Stab\7f159182
46796 +Node: String\7f161184
46797 +Node: Struct\7f161610
46798 +Node: SubSection\7f162333
46799 +Node: Symver\7f162894
46800 +Node: Tag\7f165285
46801 +Node: Text\7f165665
46802 +Node: Title\7f165984
46803 +Node: Type\7f166363
46804 +Node: Uleb128\7f167440
46805 +Node: Val\7f167764
46806 +Node: Version\7f168014
46807 +Node: VTableEntry\7f168289
46808 +Node: VTableInherit\7f168579
46809 +Node: Warning\7f169025
46810 +Node: Weak\7f169259
46811 +Node: Weakref\7f169928
46812 +Node: Word\7f170893
46813 +Node: Deprecated\7f172739
46814 +Node: Machine Dependencies\7f172974
46815 +Node: Alpha-Dependent\7f175738
46816 +Node: Alpha Notes\7f176152
46817 +Node: Alpha Options\7f176433
46818 +Node: Alpha Syntax\7f178631
46819 +Node: Alpha-Chars\7f179100
46820 +Node: Alpha-Regs\7f179331
46821 +Node: Alpha-Relocs\7f179718
46822 +Node: Alpha Floating Point\7f185976
46823 +Node: Alpha Directives\7f186198
46824 +Node: Alpha Opcodes\7f191721
46825 +Node: ARC-Dependent\7f192016
46826 +Node: ARC Options\7f192399
46827 +Node: ARC Syntax\7f193468
46828 +Node: ARC-Chars\7f193700
46829 +Node: ARC-Regs\7f193832
46830 +Node: ARC Floating Point\7f193956
46831 +Node: ARC Directives\7f194267
46832 +Node: ARC Opcodes\7f200238
46833 +Node: ARM-Dependent\7f200464
46834 +Node: ARM Options\7f200891
46835 +Node: ARM Syntax\7f206685
46836 +Node: ARM-Chars\7f206917
46837 +Node: ARM-Regs\7f207441
46838 +Node: ARM Floating Point\7f207626
46839 +Node: ARM Directives\7f207825
46840 +Node: ARM Opcodes\7f214189
46841 +Node: ARM Mapping Symbols\7f216277
46842 +Node: BFIN-Dependent\7f217056
46843 +Node: BFIN Syntax\7f217310
46844 +Node: BFIN Directives\7f223007
46845 +Node: CRIS-Dependent\7f223414
46846 +Node: CRIS-Opts\7f223760
46847 +Ref: march-option\7f225378
46848 +Node: CRIS-Expand\7f227195
46849 +Node: CRIS-Symbols\7f228378
46850 +Node: CRIS-Syntax\7f229547
46851 +Node: CRIS-Chars\7f229883
46852 +Node: CRIS-Pic\7f230434
46853 +Ref: crispic\7f230630
46854 +Node: CRIS-Regs\7f234170
46855 +Node: CRIS-Pseudos\7f234587
46856 +Ref: crisnous\7f235363
46857 +Node: D10V-Dependent\7f236645
46858 +Node: D10V-Opts\7f236996
46859 +Node: D10V-Syntax\7f237959
46860 +Node: D10V-Size\7f238488
46861 +Node: D10V-Subs\7f239461
46862 +Node: D10V-Chars\7f240496
46863 +Node: D10V-Regs\7f242100
46864 +Node: D10V-Addressing\7f243145
46865 +Node: D10V-Word\7f243831
46866 +Node: D10V-Float\7f244346
46867 +Node: D10V-Opcodes\7f244657
46868 +Node: D30V-Dependent\7f245050
46869 +Node: D30V-Opts\7f245403
46870 +Node: D30V-Syntax\7f246078
46871 +Node: D30V-Size\7f246610
46872 +Node: D30V-Subs\7f247581
46873 +Node: D30V-Chars\7f248616
46874 +Node: D30V-Guarded\7f250914
46875 +Node: D30V-Regs\7f251594
46876 +Node: D30V-Addressing\7f252733
46877 +Node: D30V-Float\7f253401
46878 +Node: D30V-Opcodes\7f253712
46879 +Node: H8/300-Dependent\7f254105
46880 +Node: H8/300 Options\7f254515
46881 +Node: H8/300 Syntax\7f254724
46882 +Node: H8/300-Chars\7f255023
46883 +Node: H8/300-Regs\7f255320
46884 +Node: H8/300-Addressing\7f256237
46885 +Node: H8/300 Floating Point\7f257276
46886 +Node: H8/300 Directives\7f257601
46887 +Node: H8/300 Opcodes\7f258727
46888 +Node: HPPA-Dependent\7f267047
46889 +Node: HPPA Notes\7f267480
46890 +Node: HPPA Options\7f268236
46891 +Node: HPPA Syntax\7f268429
46892 +Node: HPPA Floating Point\7f269697
46893 +Node: HPPA Directives\7f269901
46894 +Node: HPPA Opcodes\7f278585
46895 +Node: ESA/390-Dependent\7f278842
46896 +Node: ESA/390 Notes\7f279302
46897 +Node: ESA/390 Options\7f280093
46898 +Node: ESA/390 Syntax\7f280303
46899 +Node: ESA/390 Floating Point\7f282476
46900 +Node: ESA/390 Directives\7f282755
46901 +Node: ESA/390 Opcodes\7f286044
46902 +Node: i386-Dependent\7f286306
46903 +Node: i386-Options\7f287374
46904 +Node: i386-Syntax\7f288564
46905 +Node: i386-Mnemonics\7f290978
46906 +Node: i386-Regs\7f293443
46907 +Node: i386-Prefixes\7f295488
46908 +Node: i386-Memory\7f298248
46909 +Node: i386-Jumps\7f301185
46910 +Node: i386-Float\7f302306
46911 +Node: i386-SIMD\7f304135
46912 +Node: i386-16bit\7f305244
46913 +Node: i386-Bugs\7f307282
46914 +Node: i386-Arch\7f308036
46915 +Node: i386-Notes\7f310217
46916 +Node: i860-Dependent\7f311075
46917 +Node: Notes-i860\7f311471
46918 +Node: Options-i860\7f312376
46919 +Node: Directives-i860\7f313739
46920 +Node: Opcodes for i860\7f314808
46921 +Node: i960-Dependent\7f316975
46922 +Node: Options-i960\7f317378
46923 +Node: Floating Point-i960\7f321262
46924 +Node: Directives-i960\7f321530
46925 +Node: Opcodes for i960\7f323564
46926 +Node: callj-i960\7f324181
46927 +Node: Compare-and-branch-i960\7f324670
46928 +Node: IA-64-Dependent\7f326574
46929 +Node: IA-64 Options\7f326875
46930 +Node: IA-64 Syntax\7f330035
46931 +Node: IA-64-Chars\7f330398
46932 +Node: IA-64-Regs\7f330628
46933 +Node: IA-64-Bits\7f331554
46934 +Node: IA-64 Opcodes\7f332063
46935 +Node: IP2K-Dependent\7f332335
46936 +Node: IP2K-Opts\7f332563
46937 +Node: M32C-Dependent\7f333043
46938 +Node: M32C-Opts\7f333567
46939 +Node: M32C-Modifiers\7f333851
46940 +Node: M32R-Dependent\7f335638
46941 +Node: M32R-Opts\7f335959
46942 +Node: M32R-Directives\7f340125
46943 +Node: M32R-Warnings\7f344100
46944 +Node: M68K-Dependent\7f347106
46945 +Node: M68K-Opts\7f347573
46946 +Node: M68K-Syntax\7f354952
46947 +Node: M68K-Moto-Syntax\7f356791
46948 +Node: M68K-Float\7f359380
46949 +Node: M68K-Directives\7f359900
46950 +Node: M68K-opcodes\7f361226
46951 +Node: M68K-Branch\7f361452
46952 +Node: M68K-Chars\7f365650
46953 +Node: M68HC11-Dependent\7f366063
46954 +Node: M68HC11-Opts\7f366594
46955 +Node: M68HC11-Syntax\7f370410
46956 +Node: M68HC11-Modifiers\7f372624
46957 +Node: M68HC11-Directives\7f374452
46958 +Node: M68HC11-Float\7f375828
46959 +Node: M68HC11-opcodes\7f376356
46960 +Node: M68HC11-Branch\7f376538
46961 +Node: MIPS-Dependent\7f378985
46962 +Node: MIPS Opts\7f380075
46963 +Node: MIPS Object\7f387402
46964 +Node: MIPS Stabs\7f388968
46965 +Node: MIPS symbol sizes\7f389690
46966 +Node: MIPS ISA\7f391359
46967 +Node: MIPS autoextend\7f392508
46968 +Node: MIPS insn\7f393238
46969 +Node: MIPS option stack\7f393735
46970 +Node: MIPS ASE instruction generation overrides\7f394509
46971 +Node: MMIX-Dependent\7f395726
46972 +Node: MMIX-Opts\7f396106
46973 +Node: MMIX-Expand\7f399710
46974 +Node: MMIX-Syntax\7f401025
46975 +Ref: mmixsite\7f401382
46976 +Node: MMIX-Chars\7f402223
46977 +Node: MMIX-Symbols\7f402877
46978 +Node: MMIX-Regs\7f404945
46979 +Node: MMIX-Pseudos\7f405970
46980 +Ref: MMIX-loc\7f406111
46981 +Ref: MMIX-local\7f407191
46982 +Ref: MMIX-is\7f407723
46983 +Ref: MMIX-greg\7f407994
46984 +Ref: GREG-base\7f408913
46985 +Ref: MMIX-byte\7f410230
46986 +Ref: MMIX-constants\7f410701
46987 +Ref: MMIX-prefix\7f411347
46988 +Ref: MMIX-spec\7f411721
46989 +Node: MMIX-mmixal\7f412055
46990 +Node: MSP430-Dependent\7f415552
46991 +Node: MSP430 Options\7f416018
46992 +Node: MSP430 Syntax\7f416304
46993 +Node: MSP430-Macros\7f416620
46994 +Node: MSP430-Chars\7f417351
46995 +Node: MSP430-Regs\7f417664
46996 +Node: MSP430-Ext\7f418224
46997 +Node: MSP430 Floating Point\7f420045
46998 +Node: MSP430 Directives\7f420269
46999 +Node: MSP430 Opcodes\7f421060
47000 +Node: MSP430 Profiling Capability\7f421455
47001 +Node: PDP-11-Dependent\7f423784
47002 +Node: PDP-11-Options\7f424173
47003 +Node: PDP-11-Pseudos\7f429244
47004 +Node: PDP-11-Syntax\7f429589
47005 +Node: PDP-11-Mnemonics\7f430340
47006 +Node: PDP-11-Synthetic\7f430642
47007 +Node: PJ-Dependent\7f430860
47008 +Node: PJ Options\7f431085
47009 +Node: PPC-Dependent\7f431362
47010 +Node: PowerPC-Opts\7f431649
47011 +Node: PowerPC-Pseudo\7f433724
47012 +Node: SH-Dependent\7f434323
47013 +Node: SH Options\7f434735
47014 +Node: SH Syntax\7f435663
47015 +Node: SH-Chars\7f435936
47016 +Node: SH-Regs\7f436230
47017 +Node: SH-Addressing\7f436844
47018 +Node: SH Floating Point\7f437753
47019 +Node: SH Directives\7f438847
47020 +Node: SH Opcodes\7f439217
47021 +Node: SH64-Dependent\7f443539
47022 +Node: SH64 Options\7f443902
47023 +Node: SH64 Syntax\7f445619
47024 +Node: SH64-Chars\7f445902
47025 +Node: SH64-Regs\7f446202
47026 +Node: SH64-Addressing\7f447298
47027 +Node: SH64 Directives\7f448481
47028 +Node: SH64 Opcodes\7f449591
47029 +Node: Sparc-Dependent\7f450307
47030 +Node: Sparc-Opts\7f450692
47031 +Node: Sparc-Aligned-Data\7f452949
47032 +Node: Sparc-Float\7f453804
47033 +Node: Sparc-Directives\7f454005
47034 +Node: TIC54X-Dependent\7f455965
47035 +Node: TIC54X-Opts\7f456691
47036 +Node: TIC54X-Block\7f457734
47037 +Node: TIC54X-Env\7f458094
47038 +Node: TIC54X-Constants\7f458442
47039 +Node: TIC54X-Subsyms\7f458844
47040 +Node: TIC54X-Locals\7f460753
47041 +Node: TIC54X-Builtins\7f461497
47042 +Node: TIC54X-Ext\7f463968
47043 +Node: TIC54X-Directives\7f464539
47044 +Node: TIC54X-Macros\7f475441
47045 +Node: TIC54X-MMRegs\7f477551
47046 +Node: Z80-Dependent\7f477767
47047 +Node: Z80 Options\7f478155
47048 +Node: Z80 Syntax\7f479578
47049 +Node: Z80-Chars\7f480250
47050 +Node: Z80-Regs\7f480783
47051 +Node: Z80-Case\7f481135
47052 +Node: Z80 Floating Point\7f481580
47053 +Node: Z80 Directives\7f481774
47054 +Node: Z80 Opcodes\7f483399
47055 +Node: Z8000-Dependent\7f484741
47056 +Node: Z8000 Options\7f485702
47057 +Node: Z8000 Syntax\7f485919
47058 +Node: Z8000-Chars\7f486209
47059 +Node: Z8000-Regs\7f486442
47060 +Node: Z8000-Addressing\7f487232
47061 +Node: Z8000 Directives\7f488349
47062 +Node: Z8000 Opcodes\7f489958
47063 +Node: Vax-Dependent\7f499900
47064 +Node: VAX-Opts\7f500417
47065 +Node: VAX-float\7f504152
47066 +Node: VAX-directives\7f504784
47067 +Node: VAX-opcodes\7f505645
47068 +Node: VAX-branch\7f506034
47069 +Node: VAX-operands\7f508541
47070 +Node: VAX-no\7f509304
47071 +Node: V850-Dependent\7f509541
47072 +Node: V850 Options\7f509939
47073 +Node: V850 Syntax\7f512328
47074 +Node: V850-Chars\7f512568
47075 +Node: V850-Regs\7f512733
47076 +Node: V850 Floating Point\7f514301
47077 +Node: V850 Directives\7f514507
47078 +Node: V850 Opcodes\7f515650
47079 +Node: Xtensa-Dependent\7f521542
47080 +Node: Xtensa Options\7f522271
47081 +Node: Xtensa Syntax\7f525042
47082 +Node: Xtensa Opcodes\7f526931
47083 +Node: Xtensa Registers\7f528725
47084 +Node: Xtensa Optimizations\7f529358
47085 +Node: Density Instructions\7f529810
47086 +Node: Xtensa Automatic Alignment\7f530912
47087 +Node: Xtensa Relaxation\7f533658
47088 +Node: Xtensa Branch Relaxation\7f534566
47089 +Node: Xtensa Call Relaxation\7f535938
47090 +Node: Xtensa Immediate Relaxation\7f537724
47091 +Node: Xtensa Directives\7f540298
47092 +Node: Schedule Directive\7f542006
47093 +Node: Longcalls Directive\7f542346
47094 +Node: Transform Directive\7f542890
47095 +Node: Literal Directive\7f543632
47096 +Node: Literal Position Directive\7f545417
47097 +Node: Literal Prefix Directive\7f547116
47098 +Node: Absolute Literals Directive\7f549279
47099 +Node: Reporting Bugs\7f550586
47100 +Node: Bug Criteria\7f551310
47101 +Node: Bug Reporting\7f552075
47102 +Node: Acknowledgements\7f558708
47103 +Ref: Acknowledgements-Footnote-1\7f563606
47104 +Node: GNU Free Documentation License\7f563632
47105 +Node: Index\7f583359
47106 \1f
47107 End Tag Table
47108 diff -Nrup binutils-2.17/gas/doc/as.texinfo binutils-2.17.atmel.1.3.0/gas/doc/as.texinfo
47109 --- binutils-2.17/gas/doc/as.texinfo 2006-04-17 17:16:27.000000000 +0200
47110 +++ binutils-2.17.atmel.1.3.0/gas/doc/as.texinfo 2007-03-26 10:19:41.000000000 +0200
47111 @@ -6182,6 +6182,9 @@ subject, see the hardware manufacturer's
47112 @ifset ARM
47113 * ARM-Dependent:: ARM Dependent Features
47114 @end ifset
47115 +@ifset AVR32
47116 +* AVR32-Dependent:: AVR32 Dependent Features
47117 +@end ifset
47118 @ifset BFIN
47119 * BFIN-Dependent:: BFIN Dependent Features
47120 @end ifset
47121 @@ -6298,6 +6301,10 @@ subject, see the hardware manufacturer's
47122 @include c-arm.texi
47123 @end ifset
47124
47125 +@ifset AVR32
47126 +@include c-avr32.texi
47127 +@end ifset
47128 +
47129 @ifset BFIN
47130 @include c-bfin.texi
47131 @end ifset
47132 diff -Nrup binutils-2.17/gas/doc/c-avr32.texi binutils-2.17.atmel.1.3.0/gas/doc/c-avr32.texi
47133 --- binutils-2.17/gas/doc/c-avr32.texi 1970-01-01 01:00:00.000000000 +0100
47134 +++ binutils-2.17.atmel.1.3.0/gas/doc/c-avr32.texi 2007-09-28 10:30:46.000000000 +0200
47135 @@ -0,0 +1,254 @@
47136 +@c Copyright 2005, 2006
47137 +@c Atmel Corporation
47138 +@c This is part of the GAS manual.
47139 +@c For copying conditions, see the file as.texinfo.
47140 +
47141 +@ifset GENERIC
47142 +@page
47143 +@node AVR32-Dependent
47144 +@chapter AVR32 Dependent Features
47145 +@end ifset
47146 +
47147 +@ifclear GENERIC
47148 +@node Machine Dependencies
47149 +@chapter AVR32 Dependent Features
47150 +@end ifclear
47151 +
47152 +@cindex AVR32 support
47153 +@menu
47154 +* AVR32 Options:: Options
47155 +* AVR32 Syntax:: Syntax
47156 +* AVR32 Directives:: Directives
47157 +* AVR32 Opcodes:: Opcodes
47158 +@end menu
47159 +
47160 +@node AVR32 Options
47161 +@section Options
47162 +@cindex AVR32 options
47163 +@cindex options for AVR32
47164 +
47165 +There are currently no AVR32-specific options. However, the following
47166 +options are planned:
47167 +
47168 +@table @code
47169 +
47170 +@cindex @code{--pic} command line option, AVR32
47171 +@cindex PIC code generation for AVR32
47172 +@item --pic
47173 +This option specifies that the output of the assembler should be marked
47174 +as position-independent code (PIC). It will also ensure that
47175 +pseudo-instructions that deal with address calculation are output as
47176 +PIC, and that all absolute address references in the code are marked as
47177 +such.
47178 +
47179 +@cindex @code{--linkrelax} command line option, AVR32
47180 +@item --linkrelax
47181 +This option specifies that the output of the assembler should be marked
47182 +as linker-relaxable. It will also ensure that all PC-relative operands
47183 +that may change during linker relaxation get appropriate relocations.
47184 +
47185 +@cindex @code{--direct-data-refs} command line option, AVR32
47186 +@item --direct-data-refs
47187 +This option allows direct references (i.e. mov or sub) to the
47188 +data section. This is default not allowed because the actual distance may
47189 +change after the optimization passes are complete and the address and
47190 +size of all sections are considered known.
47191 +
47192 +@end table
47193 +
47194 +
47195 +@node AVR32 Syntax
47196 +@section Syntax
47197 +@menu
47198 +* AVR32-Chars:: Special Characters
47199 +* AVR32-Symrefs:: Symbol references
47200 +@end menu
47201 +
47202 +@node AVR32-Chars
47203 +@subsection Special Characters
47204 +
47205 +@cindex line comment character, AVR32
47206 +@cindex AVR32 line comment character
47207 +The presence of a @samp{//} on a line indicates the start of a comment
47208 +that extends to the end of the current line. If a @samp{#} appears as
47209 +the first character of a line, the whole line is treated as a comment.
47210 +
47211 +@cindex line separator, AVR32
47212 +@cindex statement separator, AVR32
47213 +@cindex AVR32 line separator
47214 +The @samp{;} character can be used instead of a newline to separate
47215 +statements.
47216 +
47217 +@node AVR32-Symrefs
47218 +@subsection Symbol references
47219 +
47220 +The absolute value of a symbol can be obtained by simply naming the
47221 +symbol. However, as AVR32 symbols have 32-bit values, most symbols have
47222 +values that are outside the range of any instructions.
47223 +
47224 +Instructions that take a PC-relative offset, e.g. @code{lddpc} or
47225 +@code{rcall}, can also reference a symbol by simply naming the symbol
47226 +(no explicit calculations necessary). In this case, the assembler or
47227 +linker subtracts the address of the instruction from the symbol's value
47228 +and inserts the result into the instruction. Note that even though an
47229 +overflow is less likely to happen for a relative reference than for an
47230 +absolute reference, the assembler or linker will generate an error if
47231 +the referenced symbol is too far away from the current location.
47232 +
47233 +Relative references can be used for data as well. For example:
47234 +
47235 +@smallexample
47236 + lddpc r0, 2f
47237 +1: add r0, pc
47238 + ...
47239 + .align 2
47240 +2: .int @var{some_symbol} - 1b
47241 +@end smallexample
47242 +
47243 +Here, r0 will end up with the run-time address of @var{some_symbol} even
47244 +if the program was loaded at a different address than it was linked
47245 +(position-independent code).
47246 +
47247 +@subsubsection Symbol modifiers
47248 +
47249 +@table @code
47250 +
47251 +@item @code{hi(@var{symbol})}
47252 +Evaluates to the value of the symbol shifted right 16 bits. This will
47253 +work even if @var{symbol} is defined in a different module.
47254 +
47255 +@item @code{lo(@var{symbol})}
47256 +Evaluates to the low 16 bits of the symbol's value. This will work even
47257 +if @var{symbol} is defined in a different module.
47258 +
47259 +@item @code{@var{symbol}@@got}
47260 +Create a GOT entry for @var{symbol} and return the offset of that entry
47261 +relative to the GOT base.
47262 +
47263 +@end table
47264 +
47265 +
47266 +@node AVR32 Directives
47267 +@section Directives
47268 +@cindex machine directives, AVR32
47269 +@cindex AVR32 directives
47270 +
47271 +@table @code
47272 +
47273 +@cindex @code{.cpool} directive, AVR32
47274 +@item .cpool
47275 +This directive causes the current contents of the constant pool to be
47276 +dumped into the current section at the current location (aligned to a
47277 +word boundary). @code{GAS} maintains a separate constant pool for each
47278 +section and each sub-section. The @code{.cpool} directive will only
47279 +affect the constant pool of the current section and sub-section. At the
47280 +end of assembly, all remaining, non-empty constant pools will
47281 +automatically be dumped.
47282 +
47283 +@end table
47284 +
47285 +
47286 +@node AVR32 Opcodes
47287 +@section Opcodes
47288 +@cindex AVR32 opcodes
47289 +@cindex opcodes for AVR32
47290 +
47291 +@code{@value{AS}} implements all the standard AVR32 opcodes. It also
47292 +implements several pseudo-opcodes, which are recommended to use wherever
47293 +possible because they give the tool chain better freedom to generate
47294 +optimal code.
47295 +
47296 +@table @code
47297 +
47298 +@cindex @code{LDA.W reg, symbol} pseudo op, AVR32
47299 +@item LDA.W
47300 +@smallexample
47301 + lda.w @var{reg}, @var{symbol}
47302 +@end smallexample
47303 +
47304 +This instruction will load the address of @var{symbol} into
47305 +@var{reg}. The instruction will evaluate to one of the following,
47306 +depending on the relative distance to the symbol, the relative distance
47307 +to the constant pool and whether the @code{--pic} option has been
47308 +specified. If the @code{--pic} option has not been specified, the
47309 +alternatives are as follows:
47310 +@smallexample
47311 + /* @var{symbol} evaluates to a small enough value */
47312 + mov @var{reg}, @var{symbol}
47313 +
47314 + /* (. - @var{symbol}) evaluates to a small enough value */
47315 + sub @var{reg}, pc, . - @var{symbol}
47316 +
47317 + /* Constant pool is close enough */
47318 + lddpc @var{reg}, @var{cpent}
47319 + ...
47320 +@var{cpent}:
47321 + .long @var{symbol}
47322 +
47323 + /* Otherwise (not implemented yet, probably not necessary) */
47324 + mov @var{reg}, lo(@var{symbol})
47325 + orh @var{reg}, hi(@var{symbol})
47326 +@end smallexample
47327 +
47328 +If the @code{--pic} option has been specified, the alternatives are as
47329 +follows:
47330 +@smallexample
47331 + /* (. - @var{symbol}) evaluates to a small enough value */
47332 + sub @var{reg}, pc, . - @var{symbol}
47333 +
47334 + /* If @code{--linkrelax} not specified */
47335 + ld.w @var{reg}, r6[@var{symbol}@@got]
47336 +
47337 + /* Otherwise */
47338 + mov @var{reg}, @var{symbol}@@got / 4
47339 + ld.w @var{reg}, r6[@var{reg} << 2]
47340 +@end smallexample
47341 +
47342 +If @var{symbol} is not defined in the same file and section as the
47343 +@code{LDA.W} instruction, the most pessimistic alternative of the
47344 +above is selected. The linker may convert it back into the most
47345 +optimal alternative when the final value of all symbols is known.
47346 +
47347 +@cindex @code{CALL symbol} pseudo op, AVR32
47348 +@item CALL
47349 +@smallexample
47350 + call @var{symbol}
47351 +@end smallexample
47352 +
47353 +This instruction will insert code to call the subroutine identified by
47354 +@var{symbol}. It will evaluate to one of the following, depending on
47355 +the relative distance to the symbol as well as the @code{--linkrelax}
47356 +and @code{--pic} command-line options.
47357 +
47358 +If @var{symbol} is defined in the same section and input file, and the
47359 +distance is small enough, an @code{rcall} instruction is inserted:
47360 +@smallexample
47361 + rcall @var{symbol}
47362 +@end smallexample
47363 +
47364 +Otherwise, if the @code{--pic} option has not been specified:
47365 +@smallexample
47366 + mcall @var{cpent}
47367 + ...
47368 +@var{cpent}:
47369 + .long @var{symbol}
47370 +@end smallexample
47371 +
47372 +Finally, if nothing else fits and the @code{--pic} option has been
47373 +specified, the assembler will indirect the call through the Global
47374 +Offset Table:
47375 +@smallexample
47376 + /* If @code{--linkrelax} not specified */
47377 + mcall r6[@var{symbol}@@got]
47378 +
47379 + /* If @code{--linkrelax} specified */
47380 + mov lr, @var{symbol}@@got / 4
47381 + ld.w lr, r6[lr << 2]
47382 + icall lr
47383 +@end smallexample
47384 +
47385 +The linker, after determining the final value of @var{symbol}, may
47386 +convert any of these into more optimal alternatives. This includes
47387 +deleting any superfluous constant pool- and GOT-entries.
47388 +
47389 +@end table
47390 diff -Nrup binutils-2.17/gas/doc/Makefile.am binutils-2.17.atmel.1.3.0/gas/doc/Makefile.am
47391 --- binutils-2.17/gas/doc/Makefile.am 2006-06-03 06:45:50.000000000 +0200
47392 +++ binutils-2.17.atmel.1.3.0/gas/doc/Makefile.am 2007-03-26 10:19:41.000000000 +0200
47393 @@ -29,6 +29,7 @@ CPU_DOCS = \
47394 c-alpha.texi \
47395 c-arc.texi \
47396 c-arm.texi \
47397 + c-avr32.texi \
47398 c-bfin.texi \
47399 c-d10v.texi \
47400 c-cris.texi \
47401 diff -Nrup binutils-2.17/gas/Makefile.am binutils-2.17.atmel.1.3.0/gas/Makefile.am
47402 --- binutils-2.17/gas/Makefile.am 2006-04-06 23:49:30.000000000 +0200
47403 +++ binutils-2.17.atmel.1.3.0/gas/Makefile.am 2007-03-26 10:20:16.000000000 +0200
47404 @@ -45,6 +45,7 @@ CPU_TYPES = \
47405 arc \
47406 arm \
47407 avr \
47408 + avr32 \
47409 bfin \
47410 cris \
47411 crx \
47412 @@ -229,6 +230,7 @@ TARGET_CPU_CFILES = \
47413 config/tc-arc.c \
47414 config/tc-arm.c \
47415 config/tc-avr.c \
47416 + config/tc-avr32.c \
47417 config/tc-bfin.c \
47418 config/tc-cris.c \
47419 config/tc-crx.c \
47420 @@ -280,6 +282,7 @@ TARGET_CPU_HFILES = \
47421 config/tc-arc.h \
47422 config/tc-arm.h \
47423 config/tc-avr.h \
47424 + config/tc-avr32.h \
47425 config/tc-bfin.h \
47426 config/tc-cris.h \
47427 config/tc-crx.h \
47428 @@ -1046,6 +1049,11 @@ DEPTC_avr_elf = $(INCDIR)/symcat.h $(src
47429 $(INCDIR)/elf/external.h $(INCDIR)/bfdlink.h $(srcdir)/config/tc-avr.h \
47430 dwarf2dbg.h $(INCDIR)/safe-ctype.h subsegs.h $(INCDIR)/obstack.h \
47431 $(INCDIR)/opcode/avr.h
47432 +DEPTC_avr32_elf = $(INCDIR)/symcat.h $(srcdir)/config/obj-elf.h \
47433 + $(BFDDIR)/elf-bfd.h $(INCDIR)/elf/common.h $(INCDIR)/elf/internal.h \
47434 + $(INCDIR)/elf/external.h $(INCDIR)/bfdlink.h $(srcdir)/config/tc-avr32.h \
47435 + $(INCDIR)/safe-ctype.h subsegs.h $(INCDIR)/obstack.h \
47436 + $(srcdir)/../opcodes/avr32-opc.h $(srcdir)/../opcodes/avr32-asm.h
47437 DEPTC_bfin_coff = $(INCDIR)/symcat.h $(srcdir)/config/obj-coff.h \
47438 $(srcdir)/config/tc-bfin.h $(INCDIR)/coff/internal.h \
47439 $(BFDDIR)/libcoff.h $(INCDIR)/bfdlink.h struc-symbol.h \
47440 @@ -1628,6 +1636,11 @@ DEPOBJ_bfin_elf = $(INCDIR)/symcat.h $(s
47441 $(INCDIR)/elf/external.h $(INCDIR)/bfdlink.h $(srcdir)/config/tc-bfin.h \
47442 dwarf2dbg.h $(INCDIR)/safe-ctype.h subsegs.h $(INCDIR)/obstack.h \
47443 struc-symbol.h $(INCDIR)/aout/aout64.h
47444 +DEPOBJ_avr32_elf = $(INCDIR)/symcat.h $(srcdir)/config/obj-elf.h \
47445 + $(BFDDIR)/elf-bfd.h $(INCDIR)/elf/common.h $(INCDIR)/elf/internal.h \
47446 + $(INCDIR)/elf/external.h $(INCDIR)/bfdlink.h $(srcdir)/config/tc-avr32.h \
47447 + $(INCDIR)/safe-ctype.h subsegs.h $(INCDIR)/obstack.h \
47448 + struc-symbol.h dwarf2dbg.h
47449 DEPOBJ_cris_aout = $(INCDIR)/symcat.h $(srcdir)/config/obj-aout.h \
47450 $(srcdir)/config/tc-cris.h $(BFDDIR)/libaout.h $(INCDIR)/bfdlink.h \
47451 $(INCDIR)/aout/aout64.h $(INCDIR)/obstack.h
47452 @@ -2095,6 +2108,9 @@ DEP_bfin_elf = $(srcdir)/config/obj-elf.
47453 $(BFDDIR)/elf-bfd.h $(INCDIR)/elf/common.h $(INCDIR)/elf/internal.h \
47454 $(INCDIR)/elf/external.h $(INCDIR)/bfdlink.h $(srcdir)/config/tc-bfin.h \
47455 dwarf2dbg.h
47456 +DEP_avr32_elf = $(srcdir)/config/obj-elf.h $(INCDIR)/symcat.h \
47457 + $(BFDDIR)/elf-bfd.h $(INCDIR)/elf/common.h $(INCDIR)/elf/internal.h \
47458 + $(INCDIR)/elf/external.h $(INCDIR)/bfdlink.h $(srcdir)/config/tc-avr32.h
47459 DEP_cris_aout = $(srcdir)/config/obj-aout.h $(srcdir)/config/tc-cris.h \
47460 $(BFDDIR)/libaout.h $(INCDIR)/bfdlink.h
47461 DEP_cris_elf = $(srcdir)/config/obj-elf.h $(INCDIR)/symcat.h \
47462 diff -Nrup binutils-2.17/gas/testsuite/gas/avr32/aliases.d binutils-2.17.atmel.1.3.0/gas/testsuite/gas/avr32/aliases.d
47463 --- binutils-2.17/gas/testsuite/gas/avr32/aliases.d 1970-01-01 01:00:00.000000000 +0100
47464 +++ binutils-2.17.atmel.1.3.0/gas/testsuite/gas/avr32/aliases.d 2007-03-26 10:19:48.000000000 +0200
47465 @@ -0,0 +1,19 @@
47466 +#as:
47467 +#objdump: -dr
47468 +#name: aliases
47469 +
47470 +.*: +file format .*
47471 +
47472 +Disassembly of section \.text:
47473 +
47474 +00000000 <ld_nodisp>:
47475 + 0: 19 80 [ \t]+ld\.ub r0,r12\[0x0\]
47476 + 2: f9 20 00 00[ \t]+ld\.sb r0,r12\[0\]
47477 + 6: 98 80 [ \t]+ld\.uh r0,r12\[0x0\]
47478 + 8: 98 00 [ \t]+ld\.sh r0,r12\[0x0\]
47479 + a: 78 00 [ \t]+ld\.w r0,r12\[0x0\]
47480 +
47481 +0000000c <st_nodisp>:
47482 + c: b8 80 [ \t]+st\.b r12\[0x0\],r0
47483 + e: b8 00 [ \t]+st\.h r12\[0x0\],r0
47484 + 10: 99 00 [ \t]+st\.w r12\[0x0\],r0
47485 diff -Nrup binutils-2.17/gas/testsuite/gas/avr32/aliases.s binutils-2.17.atmel.1.3.0/gas/testsuite/gas/avr32/aliases.s
47486 --- binutils-2.17/gas/testsuite/gas/avr32/aliases.s 1970-01-01 01:00:00.000000000 +0100
47487 +++ binutils-2.17.atmel.1.3.0/gas/testsuite/gas/avr32/aliases.s 2007-03-26 10:19:48.000000000 +0200
47488 @@ -0,0 +1,14 @@
47489 + .text
47490 + .global ld_nodisp
47491 +ld_nodisp:
47492 + ld.ub r0, r12
47493 + ld.sb r0, r12
47494 + ld.uh r0, r12
47495 + ld.sh r0, r12
47496 + ld.w r0, r12
47497 +
47498 + .global st_nodisp
47499 +st_nodisp:
47500 + st.b r12, r0
47501 + st.h r12, r0
47502 + st.w r12, r0
47503 diff -Nrup binutils-2.17/gas/testsuite/gas/avr32/allinsn.d binutils-2.17.atmel.1.3.0/gas/testsuite/gas/avr32/allinsn.d
47504 --- binutils-2.17/gas/testsuite/gas/avr32/allinsn.d 1970-01-01 01:00:00.000000000 +0100
47505 +++ binutils-2.17.atmel.1.3.0/gas/testsuite/gas/avr32/allinsn.d 2007-03-26 10:19:48.000000000 +0200
47506 @@ -0,0 +1,2900 @@
47507 +#as:
47508 +#objdump: -dr
47509 +#name: allinsn
47510 +
47511 +.*: +file format .*
47512 +
47513 +Disassembly of section \.text:
47514 +
47515 +[0-9a-f]* <ld_d5>:
47516 + *[0-9a-f]*: fe 0f 02 3e ld\.d lr,pc\[pc<<0x3\]
47517 + *[0-9a-f]*: e0 00 02 00 ld\.d r0,r0\[r0\]
47518 + *[0-9a-f]*: ea 05 02 26 ld\.d r6,r5\[r5<<0x2\]
47519 + *[0-9a-f]*: e8 04 02 14 ld\.d r4,r4\[r4<<0x1\]
47520 + *[0-9a-f]*: fc 0e 02 1e ld\.d lr,lr\[lr<<0x1\]
47521 + *[0-9a-f]*: e6 0d 02 2a ld\.d r10,r3\[sp<<0x2\]
47522 + *[0-9a-f]*: f4 06 02 28 ld\.d r8,r10\[r6<<0x2\]
47523 + *[0-9a-f]*: ee 09 02 02 ld\.d r2,r7\[r9\]
47524 +
47525 +[0-9a-f]* <ld_w5>:
47526 + *[0-9a-f]*: fe 0f 03 0f ld\.w pc,pc\[pc\]
47527 + *[0-9a-f]*: f8 0c 03 3c ld\.w r12,r12\[r12<<0x3\]
47528 + *[0-9a-f]*: ea 05 03 25 ld\.w r5,r5\[r5<<0x2\]
47529 + *[0-9a-f]*: e8 04 03 14 ld\.w r4,r4\[r4<<0x1\]
47530 + *[0-9a-f]*: fc 0e 03 1e ld\.w lr,lr\[lr<<0x1\]
47531 + *[0-9a-f]*: f2 09 03 02 ld\.w r2,r9\[r9\]
47532 + *[0-9a-f]*: e4 06 03 0b ld\.w r11,r2\[r6\]
47533 + *[0-9a-f]*: e4 0d 03 30 ld\.w r0,r2\[sp<<0x3\]
47534 +
47535 +[0-9a-f]* <ld_sh5>:
47536 + *[0-9a-f]*: fe 0f 04 0f ld\.sh pc,pc\[pc\]
47537 + *[0-9a-f]*: f8 0c 04 3c ld\.sh r12,r12\[r12<<0x3\]
47538 + *[0-9a-f]*: ea 05 04 25 ld\.sh r5,r5\[r5<<0x2\]
47539 + *[0-9a-f]*: e8 04 04 14 ld\.sh r4,r4\[r4<<0x1\]
47540 + *[0-9a-f]*: fc 0e 04 1e ld\.sh lr,lr\[lr<<0x1\]
47541 + *[0-9a-f]*: e0 0f 04 2b ld\.sh r11,r0\[pc<<0x2\]
47542 + *[0-9a-f]*: fa 06 04 2a ld\.sh r10,sp\[r6<<0x2\]
47543 + *[0-9a-f]*: e4 02 04 0c ld\.sh r12,r2\[r2\]
47544 +
47545 +[0-9a-f]* <ld_uh5>:
47546 + *[0-9a-f]*: fe 0f 05 0f ld\.uh pc,pc\[pc\]
47547 + *[0-9a-f]*: f8 0c 05 3c ld\.uh r12,r12\[r12<<0x3\]
47548 + *[0-9a-f]*: ea 05 05 25 ld\.uh r5,r5\[r5<<0x2\]
47549 + *[0-9a-f]*: e8 04 05 14 ld\.uh r4,r4\[r4<<0x1\]
47550 + *[0-9a-f]*: fc 0e 05 1e ld\.uh lr,lr\[lr<<0x1\]
47551 + *[0-9a-f]*: fe 0e 05 38 ld\.uh r8,pc\[lr<<0x3\]
47552 + *[0-9a-f]*: e2 0f 05 16 ld\.uh r6,r1\[pc<<0x1\]
47553 + *[0-9a-f]*: fc 0d 05 16 ld\.uh r6,lr\[sp<<0x1\]
47554 +
47555 +[0-9a-f]* <ld_sb2>:
47556 + *[0-9a-f]*: fe 0f 06 0f ld\.sb pc,pc\[pc\]
47557 + *[0-9a-f]*: f8 0c 06 3c ld\.sb r12,r12\[r12<<0x3\]
47558 + *[0-9a-f]*: ea 05 06 25 ld\.sb r5,r5\[r5<<0x2\]
47559 + *[0-9a-f]*: e8 04 06 14 ld\.sb r4,r4\[r4<<0x1\]
47560 + *[0-9a-f]*: fc 0e 06 1e ld\.sb lr,lr\[lr<<0x1\]
47561 + *[0-9a-f]*: e2 0f 06 39 ld\.sb r9,r1\[pc<<0x3\]
47562 + *[0-9a-f]*: e6 0b 06 10 ld\.sb r0,r3\[r11<<0x1\]
47563 + *[0-9a-f]*: ea 05 06 1a ld\.sb r10,r5\[r5<<0x1\]
47564 +
47565 +[0-9a-f]* <ld_ub5>:
47566 + *[0-9a-f]*: fe 0f 07 0f ld\.ub pc,pc\[pc\]
47567 + *[0-9a-f]*: f8 0c 07 3c ld\.ub r12,r12\[r12<<0x3\]
47568 + *[0-9a-f]*: ea 05 07 25 ld\.ub r5,r5\[r5<<0x2\]
47569 + *[0-9a-f]*: e8 04 07 14 ld\.ub r4,r4\[r4<<0x1\]
47570 + *[0-9a-f]*: fc 0e 07 1e ld\.ub lr,lr\[lr<<0x1\]
47571 + *[0-9a-f]*: f8 07 07 36 ld\.ub r6,r12\[r7<<0x3\]
47572 + *[0-9a-f]*: ec 0c 07 02 ld\.ub r2,r6\[r12\]
47573 + *[0-9a-f]*: ee 0b 07 10 ld\.ub r0,r7\[r11<<0x1\]
47574 +
47575 +[0-9a-f]* <st_d5>:
47576 + *[0-9a-f]*: fe 0f 08 0e st\.d pc\[pc\],lr
47577 + *[0-9a-f]*: f8 0c 08 3c st\.d r12\[r12<<0x3\],r12
47578 + *[0-9a-f]*: ea 05 08 26 st\.d r5\[r5<<0x2\],r6
47579 + *[0-9a-f]*: e8 04 08 14 st\.d r4\[r4<<0x1\],r4
47580 + *[0-9a-f]*: fc 0e 08 1e st\.d lr\[lr<<0x1\],lr
47581 + *[0-9a-f]*: e2 09 08 14 st\.d r1\[r9<<0x1\],r4
47582 + *[0-9a-f]*: f4 02 08 14 st\.d r10\[r2<<0x1\],r4
47583 + *[0-9a-f]*: f8 06 08 0e st\.d r12\[r6\],lr
47584 +
47585 +[0-9a-f]* <st_w5>:
47586 + *[0-9a-f]*: fe 0f 09 0f st\.w pc\[pc\],pc
47587 + *[0-9a-f]*: f8 0c 09 3c st\.w r12\[r12<<0x3\],r12
47588 + *[0-9a-f]*: ea 05 09 25 st\.w r5\[r5<<0x2\],r5
47589 + *[0-9a-f]*: e8 04 09 14 st\.w r4\[r4<<0x1\],r4
47590 + *[0-9a-f]*: fc 0e 09 1e st\.w lr\[lr<<0x1\],lr
47591 + *[0-9a-f]*: e2 0a 09 03 st\.w r1\[r10\],r3
47592 + *[0-9a-f]*: e0 0a 09 19 st\.w r0\[r10<<0x1\],r9
47593 + *[0-9a-f]*: e8 05 09 3f st\.w r4\[r5<<0x3\],pc
47594 +
47595 +[0-9a-f]* <st_h5>:
47596 + *[0-9a-f]*: fe 0f 0a 0f st\.h pc\[pc\],pc
47597 + *[0-9a-f]*: f8 0c 0a 3c st\.h r12\[r12<<0x3\],r12
47598 + *[0-9a-f]*: ea 05 0a 25 st\.h r5\[r5<<0x2\],r5
47599 + *[0-9a-f]*: e8 04 0a 14 st\.h r4\[r4<<0x1\],r4
47600 + *[0-9a-f]*: fc 0e 0a 1e st\.h lr\[lr<<0x1\],lr
47601 + *[0-9a-f]*: e4 09 0a 0b st\.h r2\[r9\],r11
47602 + *[0-9a-f]*: ea 01 0a 2c st\.h r5\[r1<<0x2\],r12
47603 + *[0-9a-f]*: fe 08 0a 23 st\.h pc\[r8<<0x2\],r3
47604 +
47605 +[0-9a-f]* <st_b5>:
47606 + *[0-9a-f]*: fe 0f 0b 0f st\.b pc\[pc\],pc
47607 + *[0-9a-f]*: f8 0c 0b 3c st\.b r12\[r12<<0x3\],r12
47608 + *[0-9a-f]*: ea 05 0b 25 st\.b r5\[r5<<0x2\],r5
47609 + *[0-9a-f]*: e8 04 0b 14 st\.b r4\[r4<<0x1\],r4
47610 + *[0-9a-f]*: fc 0e 0b 1e st\.b lr\[lr<<0x1\],lr
47611 + *[0-9a-f]*: e2 08 0b 16 st\.b r1\[r8<<0x1\],r6
47612 + *[0-9a-f]*: fc 0e 0b 31 st\.b lr\[lr<<0x3\],r1
47613 + *[0-9a-f]*: ea 00 0b 2f st\.b r5\[r0<<0x2\],pc
47614 +
47615 +[0-9a-f]* <divs>:
47616 + *[0-9a-f]*: fe 0f 0c 0f divs pc,pc,pc
47617 + *[0-9a-f]*: f8 0c 0c 0c divs r12,r12,r12
47618 + *[0-9a-f]*: ea 05 0c 05 divs r5,r5,r5
47619 + *[0-9a-f]*: e8 04 0c 04 divs r4,r4,r4
47620 + *[0-9a-f]*: fc 0e 0c 0e divs lr,lr,lr
47621 + *[0-9a-f]*: fe 0f 0c 03 divs r3,pc,pc
47622 + *[0-9a-f]*: f8 02 0c 09 divs r9,r12,r2
47623 + *[0-9a-f]*: e8 01 0c 07 divs r7,r4,r1
47624 +
47625 +[0-9a-f]* <add1>:
47626 + *[0-9a-f]*: 1e 0f add pc,pc
47627 + *[0-9a-f]*: 18 0c add r12,r12
47628 + *[0-9a-f]*: 0a 05 add r5,r5
47629 + *[0-9a-f]*: 08 04 add r4,r4
47630 + *[0-9a-f]*: 1c 0e add lr,lr
47631 + *[0-9a-f]*: 12 0c add r12,r9
47632 + *[0-9a-f]*: 06 06 add r6,r3
47633 + *[0-9a-f]*: 18 0a add r10,r12
47634 +
47635 +[0-9a-f]* <sub1>:
47636 + *[0-9a-f]*: 1e 1f sub pc,pc
47637 + *[0-9a-f]*: 18 1c sub r12,r12
47638 + *[0-9a-f]*: 0a 15 sub r5,r5
47639 + *[0-9a-f]*: 08 14 sub r4,r4
47640 + *[0-9a-f]*: 1c 1e sub lr,lr
47641 + *[0-9a-f]*: 0c 1e sub lr,r6
47642 + *[0-9a-f]*: 1a 10 sub r0,sp
47643 + *[0-9a-f]*: 18 16 sub r6,r12
47644 +
47645 +[0-9a-f]* <rsub1>:
47646 + *[0-9a-f]*: 1e 2f rsub pc,pc
47647 + *[0-9a-f]*: 18 2c rsub r12,r12
47648 + *[0-9a-f]*: 0a 25 rsub r5,r5
47649 + *[0-9a-f]*: 08 24 rsub r4,r4
47650 + *[0-9a-f]*: 1c 2e rsub lr,lr
47651 + *[0-9a-f]*: 1a 2b rsub r11,sp
47652 + *[0-9a-f]*: 08 27 rsub r7,r4
47653 + *[0-9a-f]*: 02 29 rsub r9,r1
47654 +
47655 +[0-9a-f]* <cp1>:
47656 + *[0-9a-f]*: 1e 3f cp\.w pc,pc
47657 + *[0-9a-f]*: 18 3c cp\.w r12,r12
47658 + *[0-9a-f]*: 0a 35 cp\.w r5,r5
47659 + *[0-9a-f]*: 08 34 cp\.w r4,r4
47660 + *[0-9a-f]*: 1c 3e cp\.w lr,lr
47661 + *[0-9a-f]*: 04 36 cp\.w r6,r2
47662 + *[0-9a-f]*: 12 30 cp\.w r0,r9
47663 + *[0-9a-f]*: 1a 33 cp\.w r3,sp
47664 +
47665 +[0-9a-f]* <or1>:
47666 + *[0-9a-f]*: 1e 4f or pc,pc
47667 + *[0-9a-f]*: 18 4c or r12,r12
47668 + *[0-9a-f]*: 0a 45 or r5,r5
47669 + *[0-9a-f]*: 08 44 or r4,r4
47670 + *[0-9a-f]*: 1c 4e or lr,lr
47671 + *[0-9a-f]*: 12 44 or r4,r9
47672 + *[0-9a-f]*: 08 4b or r11,r4
47673 + *[0-9a-f]*: 00 44 or r4,r0
47674 +
47675 +[0-9a-f]* <eor1>:
47676 + *[0-9a-f]*: 1e 5f eor pc,pc
47677 + *[0-9a-f]*: 18 5c eor r12,r12
47678 + *[0-9a-f]*: 0a 55 eor r5,r5
47679 + *[0-9a-f]*: 08 54 eor r4,r4
47680 + *[0-9a-f]*: 1c 5e eor lr,lr
47681 + *[0-9a-f]*: 16 5c eor r12,r11
47682 + *[0-9a-f]*: 02 50 eor r0,r1
47683 + *[0-9a-f]*: 1e 55 eor r5,pc
47684 +
47685 +[0-9a-f]* <and1>:
47686 + *[0-9a-f]*: 1e 6f and pc,pc
47687 + *[0-9a-f]*: 18 6c and r12,r12
47688 + *[0-9a-f]*: 0a 65 and r5,r5
47689 + *[0-9a-f]*: 08 64 and r4,r4
47690 + *[0-9a-f]*: 1c 6e and lr,lr
47691 + *[0-9a-f]*: 02 68 and r8,r1
47692 + *[0-9a-f]*: 1a 60 and r0,sp
47693 + *[0-9a-f]*: 0a 6a and r10,r5
47694 +
47695 +[0-9a-f]* <tst>:
47696 + *[0-9a-f]*: 1e 7f tst pc,pc
47697 + *[0-9a-f]*: 18 7c tst r12,r12
47698 + *[0-9a-f]*: 0a 75 tst r5,r5
47699 + *[0-9a-f]*: 08 74 tst r4,r4
47700 + *[0-9a-f]*: 1c 7e tst lr,lr
47701 + *[0-9a-f]*: 18 70 tst r0,r12
47702 + *[0-9a-f]*: 0c 7a tst r10,r6
47703 + *[0-9a-f]*: 08 7d tst sp,r4
47704 +
47705 +[0-9a-f]* <andn>:
47706 + *[0-9a-f]*: 1e 8f andn pc,pc
47707 + *[0-9a-f]*: 18 8c andn r12,r12
47708 + *[0-9a-f]*: 0a 85 andn r5,r5
47709 + *[0-9a-f]*: 08 84 andn r4,r4
47710 + *[0-9a-f]*: 1c 8e andn lr,lr
47711 + *[0-9a-f]*: 18 89 andn r9,r12
47712 + *[0-9a-f]*: 1a 8b andn r11,sp
47713 + *[0-9a-f]*: 0a 8c andn r12,r5
47714 +
47715 +[0-9a-f]* <mov3>:
47716 + *[0-9a-f]*: 1e 9f mov pc,pc
47717 + *[0-9a-f]*: 18 9c mov r12,r12
47718 + *[0-9a-f]*: 0a 95 mov r5,r5
47719 + *[0-9a-f]*: 08 94 mov r4,r4
47720 + *[0-9a-f]*: 1c 9e mov lr,lr
47721 + *[0-9a-f]*: 12 95 mov r5,r9
47722 + *[0-9a-f]*: 16 9b mov r11,r11
47723 + *[0-9a-f]*: 1c 92 mov r2,lr
47724 +
47725 +[0-9a-f]* <st_w1>:
47726 + *[0-9a-f]*: 1e af st\.w pc\+\+,pc
47727 + *[0-9a-f]*: 18 ac st\.w r12\+\+,r12
47728 + *[0-9a-f]*: 0a a5 st\.w r5\+\+,r5
47729 + *[0-9a-f]*: 08 a4 st\.w r4\+\+,r4
47730 + *[0-9a-f]*: 1c ae st\.w lr\+\+,lr
47731 + *[0-9a-f]*: 02 ab st\.w r1\+\+,r11
47732 + *[0-9a-f]*: 1a a0 st\.w sp\+\+,r0
47733 + *[0-9a-f]*: 1a a1 st\.w sp\+\+,r1
47734 +
47735 +[0-9a-f]* <st_h1>:
47736 + *[0-9a-f]*: 1e bf st\.h pc\+\+,pc
47737 + *[0-9a-f]*: 18 bc st\.h r12\+\+,r12
47738 + *[0-9a-f]*: 0a b5 st\.h r5\+\+,r5
47739 + *[0-9a-f]*: 08 b4 st\.h r4\+\+,r4
47740 + *[0-9a-f]*: 1c be st\.h lr\+\+,lr
47741 + *[0-9a-f]*: 18 bd st\.h r12\+\+,sp
47742 + *[0-9a-f]*: 0e be st\.h r7\+\+,lr
47743 + *[0-9a-f]*: 0e b4 st\.h r7\+\+,r4
47744 +
47745 +[0-9a-f]* <st_b1>:
47746 + *[0-9a-f]*: 1e cf st\.b pc\+\+,pc
47747 + *[0-9a-f]*: 18 cc st\.b r12\+\+,r12
47748 + *[0-9a-f]*: 0a c5 st\.b r5\+\+,r5
47749 + *[0-9a-f]*: 08 c4 st\.b r4\+\+,r4
47750 + *[0-9a-f]*: 1c ce st\.b lr\+\+,lr
47751 + *[0-9a-f]*: 12 cd st\.b r9\+\+,sp
47752 + *[0-9a-f]*: 02 cd st\.b r1\+\+,sp
47753 + *[0-9a-f]*: 00 c4 st\.b r0\+\+,r4
47754 +
47755 +[0-9a-f]* <st_w2>:
47756 + *[0-9a-f]*: 1e df st\.w --pc,pc
47757 + *[0-9a-f]*: 18 dc st\.w --r12,r12
47758 + *[0-9a-f]*: 0a d5 st\.w --r5,r5
47759 + *[0-9a-f]*: 08 d4 st\.w --r4,r4
47760 + *[0-9a-f]*: 1c de st\.w --lr,lr
47761 + *[0-9a-f]*: 02 d7 st\.w --r1,r7
47762 + *[0-9a-f]*: 06 d9 st\.w --r3,r9
47763 + *[0-9a-f]*: 0a d5 st\.w --r5,r5
47764 +
47765 +[0-9a-f]* <st_h2>:
47766 + *[0-9a-f]*: 1e ef st\.h --pc,pc
47767 + *[0-9a-f]*: 18 ec st\.h --r12,r12
47768 + *[0-9a-f]*: 0a e5 st\.h --r5,r5
47769 + *[0-9a-f]*: 08 e4 st\.h --r4,r4
47770 + *[0-9a-f]*: 1c ee st\.h --lr,lr
47771 + *[0-9a-f]*: 0a e7 st\.h --r5,r7
47772 + *[0-9a-f]*: 10 e8 st\.h --r8,r8
47773 + *[0-9a-f]*: 0e e2 st\.h --r7,r2
47774 +
47775 +[0-9a-f]* <st_b2>:
47776 + *[0-9a-f]*: 1e ff st\.b --pc,pc
47777 + *[0-9a-f]*: 18 fc st\.b --r12,r12
47778 + *[0-9a-f]*: 0a f5 st\.b --r5,r5
47779 + *[0-9a-f]*: 08 f4 st\.b --r4,r4
47780 + *[0-9a-f]*: 1c fe st\.b --lr,lr
47781 + *[0-9a-f]*: 1a fd st\.b --sp,sp
47782 + *[0-9a-f]*: 1a fb st\.b --sp,r11
47783 + *[0-9a-f]*: 08 f5 st\.b --r4,r5
47784 +
47785 +[0-9a-f]* <ld_w1>:
47786 + *[0-9a-f]*: 1f 0f ld\.w pc,pc\+\+
47787 + *[0-9a-f]*: 19 0c ld\.w r12,r12\+\+
47788 + *[0-9a-f]*: 0b 05 ld\.w r5,r5\+\+
47789 + *[0-9a-f]*: 09 04 ld\.w r4,r4\+\+
47790 + *[0-9a-f]*: 1d 0e ld\.w lr,lr\+\+
47791 + *[0-9a-f]*: 0f 03 ld\.w r3,r7\+\+
47792 + *[0-9a-f]*: 1d 03 ld\.w r3,lr\+\+
47793 + *[0-9a-f]*: 0b 0c ld\.w r12,r5\+\+
47794 +
47795 +[0-9a-f]* <ld_sh1>:
47796 + *[0-9a-f]*: 1f 1f ld\.sh pc,pc\+\+
47797 + *[0-9a-f]*: 19 1c ld\.sh r12,r12\+\+
47798 + *[0-9a-f]*: 0b 15 ld\.sh r5,r5\+\+
47799 + *[0-9a-f]*: 09 14 ld\.sh r4,r4\+\+
47800 + *[0-9a-f]*: 1d 1e ld\.sh lr,lr\+\+
47801 + *[0-9a-f]*: 05 1b ld\.sh r11,r2\+\+
47802 + *[0-9a-f]*: 11 12 ld\.sh r2,r8\+\+
47803 + *[0-9a-f]*: 0d 17 ld\.sh r7,r6\+\+
47804 +
47805 +[0-9a-f]* <ld_uh1>:
47806 + *[0-9a-f]*: 1f 2f ld\.uh pc,pc\+\+
47807 + *[0-9a-f]*: 19 2c ld\.uh r12,r12\+\+
47808 + *[0-9a-f]*: 0b 25 ld\.uh r5,r5\+\+
47809 + *[0-9a-f]*: 09 24 ld\.uh r4,r4\+\+
47810 + *[0-9a-f]*: 1d 2e ld\.uh lr,lr\+\+
47811 + *[0-9a-f]*: 0f 26 ld\.uh r6,r7\+\+
47812 + *[0-9a-f]*: 17 2a ld\.uh r10,r11\+\+
47813 + *[0-9a-f]*: 09 2e ld\.uh lr,r4\+\+
47814 +
47815 +[0-9a-f]* <ld_ub1>:
47816 + *[0-9a-f]*: 1f 3f ld\.ub pc,pc\+\+
47817 + *[0-9a-f]*: 19 3c ld\.ub r12,r12\+\+
47818 + *[0-9a-f]*: 0b 35 ld\.ub r5,r5\+\+
47819 + *[0-9a-f]*: 09 34 ld\.ub r4,r4\+\+
47820 + *[0-9a-f]*: 1d 3e ld\.ub lr,lr\+\+
47821 + *[0-9a-f]*: 1d 38 ld\.ub r8,lr\+\+
47822 + *[0-9a-f]*: 19 3c ld\.ub r12,r12\+\+
47823 + *[0-9a-f]*: 15 3b ld\.ub r11,r10\+\+
47824 +
47825 +[0-9a-f]* <ld_w2>:
47826 + *[0-9a-f]*: 1f 4f ld\.w pc,--pc
47827 + *[0-9a-f]*: 19 4c ld\.w r12,--r12
47828 + *[0-9a-f]*: 0b 45 ld\.w r5,--r5
47829 + *[0-9a-f]*: 09 44 ld\.w r4,--r4
47830 + *[0-9a-f]*: 1d 4e ld\.w lr,--lr
47831 + *[0-9a-f]*: 1d 4a ld\.w r10,--lr
47832 + *[0-9a-f]*: 13 4c ld\.w r12,--r9
47833 + *[0-9a-f]*: 0b 46 ld\.w r6,--r5
47834 +
47835 +[0-9a-f]* <ld_sh2>:
47836 + *[0-9a-f]*: 1f 5f ld\.sh pc,--pc
47837 + *[0-9a-f]*: 19 5c ld\.sh r12,--r12
47838 + *[0-9a-f]*: 0b 55 ld\.sh r5,--r5
47839 + *[0-9a-f]*: 09 54 ld\.sh r4,--r4
47840 + *[0-9a-f]*: 1d 5e ld\.sh lr,--lr
47841 + *[0-9a-f]*: 15 5f ld\.sh pc,--r10
47842 + *[0-9a-f]*: 07 56 ld\.sh r6,--r3
47843 + *[0-9a-f]*: 0d 54 ld\.sh r4,--r6
47844 +
47845 +[0-9a-f]* <ld_uh2>:
47846 + *[0-9a-f]*: 1f 6f ld\.uh pc,--pc
47847 + *[0-9a-f]*: 19 6c ld\.uh r12,--r12
47848 + *[0-9a-f]*: 0b 65 ld\.uh r5,--r5
47849 + *[0-9a-f]*: 09 64 ld\.uh r4,--r4
47850 + *[0-9a-f]*: 1d 6e ld\.uh lr,--lr
47851 + *[0-9a-f]*: 05 63 ld\.uh r3,--r2
47852 + *[0-9a-f]*: 01 61 ld\.uh r1,--r0
47853 + *[0-9a-f]*: 13 62 ld\.uh r2,--r9
47854 +
47855 +[0-9a-f]* <ld_ub2>:
47856 + *[0-9a-f]*: 1f 7f ld\.ub pc,--pc
47857 + *[0-9a-f]*: 19 7c ld\.ub r12,--r12
47858 + *[0-9a-f]*: 0b 75 ld\.ub r5,--r5
47859 + *[0-9a-f]*: 09 74 ld\.ub r4,--r4
47860 + *[0-9a-f]*: 1d 7e ld\.ub lr,--lr
47861 + *[0-9a-f]*: 03 71 ld\.ub r1,--r1
47862 + *[0-9a-f]*: 0d 70 ld\.ub r0,--r6
47863 + *[0-9a-f]*: 0f 72 ld\.ub r2,--r7
47864 +
47865 +[0-9a-f]* <ld_ub3>:
47866 + *[0-9a-f]*: 1f 8f ld\.ub pc,pc\[0x0\]
47867 + *[0-9a-f]*: 19 fc ld\.ub r12,r12\[0x7\]
47868 + *[0-9a-f]*: 0b c5 ld\.ub r5,r5\[0x4\]
47869 + *[0-9a-f]*: 09 b4 ld\.ub r4,r4\[0x3\]
47870 + *[0-9a-f]*: 1d 9e ld\.ub lr,lr\[0x1\]
47871 + *[0-9a-f]*: 13 e6 ld\.ub r6,r9\[0x6\]
47872 + *[0-9a-f]*: 1d c2 ld\.ub r2,lr\[0x4\]
47873 + *[0-9a-f]*: 11 81 ld\.ub r1,r8\[0x0\]
47874 +
47875 +[0-9a-f]* <sub3_sp>:
47876 + *[0-9a-f]*: 20 0d sub sp,0
47877 + *[0-9a-f]*: 2f fd sub sp,-4
47878 + *[0-9a-f]*: 28 0d sub sp,-512
47879 + *[0-9a-f]*: 27 fd sub sp,508
47880 + *[0-9a-f]*: 20 1d sub sp,4
47881 + *[0-9a-f]*: 20 bd sub sp,44
47882 + *[0-9a-f]*: 20 2d sub sp,8
47883 + *[0-9a-f]*: 25 7d sub sp,348
47884 +
47885 +[0-9a-f]* <sub3>:
47886 + *[0-9a-f]*: 20 0f sub pc,0
47887 + *[0-9a-f]*: 2f fc sub r12,-1
47888 + *[0-9a-f]*: 28 05 sub r5,-128
47889 + *[0-9a-f]*: 27 f4 sub r4,127
47890 + *[0-9a-f]*: 20 1e sub lr,1
47891 + *[0-9a-f]*: 2d 76 sub r6,-41
47892 + *[0-9a-f]*: 22 54 sub r4,37
47893 + *[0-9a-f]*: 23 8c sub r12,56
47894 +
47895 +[0-9a-f]* <mov1>:
47896 + *[0-9a-f]*: 30 0f mov pc,0
47897 + *[0-9a-f]*: 3f fc mov r12,-1
47898 + *[0-9a-f]*: 38 05 mov r5,-128
47899 + *[0-9a-f]*: 37 f4 mov r4,127
47900 + *[0-9a-f]*: 30 1e mov lr,1
47901 + *[0-9a-f]*: 30 ef mov pc,14
47902 + *[0-9a-f]*: 39 c6 mov r6,-100
47903 + *[0-9a-f]*: 38 6e mov lr,-122
47904 +
47905 +[0-9a-f]* <lddsp>:
47906 + *[0-9a-f]*: 40 0f lddsp pc,sp\[0x0\]
47907 + *[0-9a-f]*: 47 fc lddsp r12,sp\[0x1fc\]
47908 + *[0-9a-f]*: 44 05 lddsp r5,sp\[0x100\]
47909 + *[0-9a-f]*: 43 f4 lddsp r4,sp\[0xfc\]
47910 + *[0-9a-f]*: 40 1e lddsp lr,sp\[0x4\]
47911 + *[0-9a-f]*: 44 0e lddsp lr,sp\[0x100\]
47912 + *[0-9a-f]*: 40 5c lddsp r12,sp\[0x14\]
47913 + *[0-9a-f]*: 47 69 lddsp r9,sp\[0x1d8\]
47914 +
47915 +[0-9a-f]* <lddpc>:
47916 + *[0-9a-f]*: 48 0f lddpc pc,[0-9a-f]* <.*>
47917 + *[0-9a-f]*: 4f f0 lddpc r0,[0-9a-f]* <.*>
47918 + *[0-9a-f]*: 4c 08 lddpc r8,[0-9a-f]* <.*>
47919 + *[0-9a-f]*: 4b f7 lddpc r7,[0-9a-f]* <.*>
47920 + *[0-9a-f]*: 48 1e lddpc lr,[0-9a-f]* <.*>
47921 + *[0-9a-f]*: 4f 6d lddpc sp,[0-9a-f]* <.*>
47922 + *[0-9a-f]*: 49 e6 lddpc r6,[0-9a-f]* <.*>
47923 + *[0-9a-f]*: 48 7b lddpc r11,[0-9a-f]* <.*>
47924 +
47925 +[0-9a-f]* <stdsp>:
47926 + *[0-9a-f]*: 50 0f stdsp sp\[0x0\],pc
47927 + *[0-9a-f]*: 57 fc stdsp sp\[0x1fc\],r12
47928 + *[0-9a-f]*: 54 05 stdsp sp\[0x100\],r5
47929 + *[0-9a-f]*: 53 f4 stdsp sp\[0xfc\],r4
47930 + *[0-9a-f]*: 50 1e stdsp sp\[0x4\],lr
47931 + *[0-9a-f]*: 54 cf stdsp sp\[0x130\],pc
47932 + *[0-9a-f]*: 54 00 stdsp sp\[0x100\],r0
47933 + *[0-9a-f]*: 55 45 stdsp sp\[0x150\],r5
47934 +
47935 +[0-9a-f]* <cp2>:
47936 + *[0-9a-f]*: 58 0f cp.w pc,0
47937 + *[0-9a-f]*: 5b fc cp.w r12,-1
47938 + *[0-9a-f]*: 5a 05 cp.w r5,-32
47939 + *[0-9a-f]*: 59 f4 cp.w r4,31
47940 + *[0-9a-f]*: 58 1e cp.w lr,1
47941 + *[0-9a-f]*: 58 38 cp.w r8,3
47942 + *[0-9a-f]*: 59 0e cp.w lr,16
47943 + *[0-9a-f]*: 5a 67 cp.w r7,-26
47944 +
47945 +[0-9a-f]* <acr>:
47946 + *[0-9a-f]*: 5c 0f acr pc
47947 + *[0-9a-f]*: 5c 0c acr r12
47948 + *[0-9a-f]*: 5c 05 acr r5
47949 + *[0-9a-f]*: 5c 04 acr r4
47950 + *[0-9a-f]*: 5c 0e acr lr
47951 + *[0-9a-f]*: 5c 02 acr r2
47952 + *[0-9a-f]*: 5c 0c acr r12
47953 + *[0-9a-f]*: 5c 0f acr pc
47954 +
47955 +[0-9a-f]* <scr>:
47956 + *[0-9a-f]*: 5c 1f scr pc
47957 + *[0-9a-f]*: 5c 1c scr r12
47958 + *[0-9a-f]*: 5c 15 scr r5
47959 + *[0-9a-f]*: 5c 14 scr r4
47960 + *[0-9a-f]*: 5c 1e scr lr
47961 + *[0-9a-f]*: 5c 1f scr pc
47962 + *[0-9a-f]*: 5c 16 scr r6
47963 + *[0-9a-f]*: 5c 11 scr r1
47964 +
47965 +[0-9a-f]* <cpc0>:
47966 + *[0-9a-f]*: 5c 2f cpc pc
47967 + *[0-9a-f]*: 5c 2c cpc r12
47968 + *[0-9a-f]*: 5c 25 cpc r5
47969 + *[0-9a-f]*: 5c 24 cpc r4
47970 + *[0-9a-f]*: 5c 2e cpc lr
47971 + *[0-9a-f]*: 5c 2f cpc pc
47972 + *[0-9a-f]*: 5c 24 cpc r4
47973 + *[0-9a-f]*: 5c 29 cpc r9
47974 +
47975 +[0-9a-f]* <neg>:
47976 + *[0-9a-f]*: 5c 3f neg pc
47977 + *[0-9a-f]*: 5c 3c neg r12
47978 + *[0-9a-f]*: 5c 35 neg r5
47979 + *[0-9a-f]*: 5c 34 neg r4
47980 + *[0-9a-f]*: 5c 3e neg lr
47981 + *[0-9a-f]*: 5c 37 neg r7
47982 + *[0-9a-f]*: 5c 31 neg r1
47983 + *[0-9a-f]*: 5c 39 neg r9
47984 +
47985 +[0-9a-f]* <abs>:
47986 + *[0-9a-f]*: 5c 4f abs pc
47987 + *[0-9a-f]*: 5c 4c abs r12
47988 + *[0-9a-f]*: 5c 45 abs r5
47989 + *[0-9a-f]*: 5c 44 abs r4
47990 + *[0-9a-f]*: 5c 4e abs lr
47991 + *[0-9a-f]*: 5c 46 abs r6
47992 + *[0-9a-f]*: 5c 46 abs r6
47993 + *[0-9a-f]*: 5c 44 abs r4
47994 +
47995 +[0-9a-f]* <castu_b>:
47996 + *[0-9a-f]*: 5c 5f castu\.b pc
47997 + *[0-9a-f]*: 5c 5c castu\.b r12
47998 + *[0-9a-f]*: 5c 55 castu\.b r5
47999 + *[0-9a-f]*: 5c 54 castu\.b r4
48000 + *[0-9a-f]*: 5c 5e castu\.b lr
48001 + *[0-9a-f]*: 5c 57 castu\.b r7
48002 + *[0-9a-f]*: 5c 5d castu\.b sp
48003 + *[0-9a-f]*: 5c 59 castu\.b r9
48004 +
48005 +[0-9a-f]* <casts_b>:
48006 + *[0-9a-f]*: 5c 6f casts\.b pc
48007 + *[0-9a-f]*: 5c 6c casts\.b r12
48008 + *[0-9a-f]*: 5c 65 casts\.b r5
48009 + *[0-9a-f]*: 5c 64 casts\.b r4
48010 + *[0-9a-f]*: 5c 6e casts\.b lr
48011 + *[0-9a-f]*: 5c 6b casts\.b r11
48012 + *[0-9a-f]*: 5c 61 casts\.b r1
48013 + *[0-9a-f]*: 5c 6a casts\.b r10
48014 +
48015 +[0-9a-f]* <castu_h>:
48016 + *[0-9a-f]*: 5c 7f castu\.h pc
48017 + *[0-9a-f]*: 5c 7c castu\.h r12
48018 + *[0-9a-f]*: 5c 75 castu\.h r5
48019 + *[0-9a-f]*: 5c 74 castu\.h r4
48020 + *[0-9a-f]*: 5c 7e castu\.h lr
48021 + *[0-9a-f]*: 5c 7a castu\.h r10
48022 + *[0-9a-f]*: 5c 7b castu\.h r11
48023 + *[0-9a-f]*: 5c 71 castu\.h r1
48024 +
48025 +[0-9a-f]* <casts_h>:
48026 + *[0-9a-f]*: 5c 8f casts\.h pc
48027 + *[0-9a-f]*: 5c 8c casts\.h r12
48028 + *[0-9a-f]*: 5c 85 casts\.h r5
48029 + *[0-9a-f]*: 5c 84 casts\.h r4
48030 + *[0-9a-f]*: 5c 8e casts\.h lr
48031 + *[0-9a-f]*: 5c 80 casts\.h r0
48032 + *[0-9a-f]*: 5c 85 casts\.h r5
48033 + *[0-9a-f]*: 5c 89 casts\.h r9
48034 +
48035 +[0-9a-f]* <brev>:
48036 + *[0-9a-f]*: 5c 9f brev pc
48037 + *[0-9a-f]*: 5c 9c brev r12
48038 + *[0-9a-f]*: 5c 95 brev r5
48039 + *[0-9a-f]*: 5c 94 brev r4
48040 + *[0-9a-f]*: 5c 9e brev lr
48041 + *[0-9a-f]*: 5c 95 brev r5
48042 + *[0-9a-f]*: 5c 9a brev r10
48043 + *[0-9a-f]*: 5c 98 brev r8
48044 +
48045 +[0-9a-f]* <swap_h>:
48046 + *[0-9a-f]*: 5c af swap\.h pc
48047 + *[0-9a-f]*: 5c ac swap\.h r12
48048 + *[0-9a-f]*: 5c a5 swap\.h r5
48049 + *[0-9a-f]*: 5c a4 swap\.h r4
48050 + *[0-9a-f]*: 5c ae swap\.h lr
48051 + *[0-9a-f]*: 5c a7 swap\.h r7
48052 + *[0-9a-f]*: 5c a0 swap\.h r0
48053 + *[0-9a-f]*: 5c a8 swap\.h r8
48054 +
48055 +[0-9a-f]* <swap_b>:
48056 + *[0-9a-f]*: 5c bf swap\.b pc
48057 + *[0-9a-f]*: 5c bc swap\.b r12
48058 + *[0-9a-f]*: 5c b5 swap\.b r5
48059 + *[0-9a-f]*: 5c b4 swap\.b r4
48060 + *[0-9a-f]*: 5c be swap\.b lr
48061 + *[0-9a-f]*: 5c ba swap\.b r10
48062 + *[0-9a-f]*: 5c bc swap\.b r12
48063 + *[0-9a-f]*: 5c b1 swap\.b r1
48064 +
48065 +[0-9a-f]* <swap_bh>:
48066 + *[0-9a-f]*: 5c cf swap\.bh pc
48067 + *[0-9a-f]*: 5c cc swap\.bh r12
48068 + *[0-9a-f]*: 5c c5 swap\.bh r5
48069 + *[0-9a-f]*: 5c c4 swap\.bh r4
48070 + *[0-9a-f]*: 5c ce swap\.bh lr
48071 + *[0-9a-f]*: 5c c9 swap\.bh r9
48072 + *[0-9a-f]*: 5c c4 swap\.bh r4
48073 + *[0-9a-f]*: 5c c1 swap\.bh r1
48074 +
48075 +[0-9a-f]* <One_s_compliment>:
48076 + *[0-9a-f]*: 5c df com pc
48077 + *[0-9a-f]*: 5c dc com r12
48078 + *[0-9a-f]*: 5c d5 com r5
48079 + *[0-9a-f]*: 5c d4 com r4
48080 + *[0-9a-f]*: 5c de com lr
48081 + *[0-9a-f]*: 5c d2 com r2
48082 + *[0-9a-f]*: 5c d2 com r2
48083 + *[0-9a-f]*: 5c d7 com r7
48084 +
48085 +[0-9a-f]* <tnbz>:
48086 + *[0-9a-f]*: 5c ef tnbz pc
48087 + *[0-9a-f]*: 5c ec tnbz r12
48088 + *[0-9a-f]*: 5c e5 tnbz r5
48089 + *[0-9a-f]*: 5c e4 tnbz r4
48090 + *[0-9a-f]*: 5c ee tnbz lr
48091 + *[0-9a-f]*: 5c e8 tnbz r8
48092 + *[0-9a-f]*: 5c ec tnbz r12
48093 + *[0-9a-f]*: 5c ef tnbz pc
48094 +
48095 +[0-9a-f]* <rol>:
48096 + *[0-9a-f]*: 5c ff rol pc
48097 + *[0-9a-f]*: 5c fc rol r12
48098 + *[0-9a-f]*: 5c f5 rol r5
48099 + *[0-9a-f]*: 5c f4 rol r4
48100 + *[0-9a-f]*: 5c fe rol lr
48101 + *[0-9a-f]*: 5c fa rol r10
48102 + *[0-9a-f]*: 5c f9 rol r9
48103 + *[0-9a-f]*: 5c f5 rol r5
48104 +
48105 +[0-9a-f]* <ror>:
48106 + *[0-9a-f]*: 5d 0f ror pc
48107 + *[0-9a-f]*: 5d 0c ror r12
48108 + *[0-9a-f]*: 5d 05 ror r5
48109 + *[0-9a-f]*: 5d 04 ror r4
48110 + *[0-9a-f]*: 5d 0e ror lr
48111 + *[0-9a-f]*: 5d 08 ror r8
48112 + *[0-9a-f]*: 5d 04 ror r4
48113 + *[0-9a-f]*: 5d 07 ror r7
48114 +
48115 +[0-9a-f]* <icall>:
48116 + *[0-9a-f]*: 5d 1f icall pc
48117 + *[0-9a-f]*: 5d 1c icall r12
48118 + *[0-9a-f]*: 5d 15 icall r5
48119 + *[0-9a-f]*: 5d 14 icall r4
48120 + *[0-9a-f]*: 5d 1e icall lr
48121 + *[0-9a-f]*: 5d 13 icall r3
48122 + *[0-9a-f]*: 5d 11 icall r1
48123 + *[0-9a-f]*: 5d 13 icall r3
48124 +
48125 +[0-9a-f]* <mustr>:
48126 + *[0-9a-f]*: 5d 2f mustr pc
48127 + *[0-9a-f]*: 5d 2c mustr r12
48128 + *[0-9a-f]*: 5d 25 mustr r5
48129 + *[0-9a-f]*: 5d 24 mustr r4
48130 + *[0-9a-f]*: 5d 2e mustr lr
48131 + *[0-9a-f]*: 5d 21 mustr r1
48132 + *[0-9a-f]*: 5d 24 mustr r4
48133 + *[0-9a-f]*: 5d 2c mustr r12
48134 +
48135 +[0-9a-f]* <musfr>:
48136 + *[0-9a-f]*: 5d 3f musfr pc
48137 + *[0-9a-f]*: 5d 3c musfr r12
48138 + *[0-9a-f]*: 5d 35 musfr r5
48139 + *[0-9a-f]*: 5d 34 musfr r4
48140 + *[0-9a-f]*: 5d 3e musfr lr
48141 + *[0-9a-f]*: 5d 3b musfr r11
48142 + *[0-9a-f]*: 5d 3c musfr r12
48143 + *[0-9a-f]*: 5d 32 musfr r2
48144 +
48145 +[0-9a-f]* <ret_cond>:
48146 + *[0-9a-f]*: 5e 0f reteq 1
48147 + *[0-9a-f]*: 5e fc retal r12
48148 + *[0-9a-f]*: 5e 85 retls r5
48149 + *[0-9a-f]*: 5e 74 retpl r4
48150 + *[0-9a-f]*: 5e 1e retne -1
48151 + *[0-9a-f]*: 5e 90 retgt r0
48152 + *[0-9a-f]*: 5e 9c retgt r12
48153 + *[0-9a-f]*: 5e 4a retge r10
48154 +
48155 +[0-9a-f]* <sr_cond>:
48156 + *[0-9a-f]*: 5f 0f sreq pc
48157 + *[0-9a-f]*: 5f fc sral r12
48158 + *[0-9a-f]*: 5f 85 srls r5
48159 + *[0-9a-f]*: 5f 74 srpl r4
48160 + *[0-9a-f]*: 5f 1e srne lr
48161 + *[0-9a-f]*: 5f 50 srlt r0
48162 + *[0-9a-f]*: 5f fd sral sp
48163 + *[0-9a-f]*: 5f 49 srge r9
48164 +
48165 +[0-9a-f]* <ld_w3>:
48166 + *[0-9a-f]*: 7e 0f ld\.w pc,pc\[0x0\]
48167 + *[0-9a-f]*: 79 fc ld\.w r12,r12\[0x7c\]
48168 + *[0-9a-f]*: 6b 05 ld\.w r5,r5\[0x40\]
48169 + *[0-9a-f]*: 68 f4 ld\.w r4,r4\[0x3c\]
48170 + *[0-9a-f]*: 7c 1e ld\.w lr,lr\[0x4\]
48171 + *[0-9a-f]*: 64 dd ld\.w sp,r2\[0x34\]
48172 + *[0-9a-f]*: 62 29 ld\.w r9,r1\[0x8\]
48173 + *[0-9a-f]*: 7a f5 ld\.w r5,sp\[0x3c\]
48174 +
48175 +[0-9a-f]* <ld_sh3>:
48176 + *[0-9a-f]*: 9e 0f ld\.sh pc,pc\[0x0\]
48177 + *[0-9a-f]*: 98 7c ld\.sh r12,r12\[0xe\]
48178 + *[0-9a-f]*: 8a 45 ld\.sh r5,r5\[0x8\]
48179 + *[0-9a-f]*: 88 34 ld\.sh r4,r4\[0x6\]
48180 + *[0-9a-f]*: 9c 1e ld\.sh lr,lr\[0x2\]
48181 + *[0-9a-f]*: 84 44 ld\.sh r4,r2\[0x8\]
48182 + *[0-9a-f]*: 9c 5d ld\.sh sp,lr\[0xa\]
48183 + *[0-9a-f]*: 96 12 ld\.sh r2,r11\[0x2\]
48184 +
48185 +[0-9a-f]* <ld_uh3>:
48186 + *[0-9a-f]*: 9e 8f ld\.uh pc,pc\[0x0\]
48187 + *[0-9a-f]*: 98 fc ld\.uh r12,r12\[0xe\]
48188 + *[0-9a-f]*: 8a c5 ld\.uh r5,r5\[0x8\]
48189 + *[0-9a-f]*: 88 b4 ld\.uh r4,r4\[0x6\]
48190 + *[0-9a-f]*: 9c 9e ld\.uh lr,lr\[0x2\]
48191 + *[0-9a-f]*: 80 da ld\.uh r10,r0\[0xa\]
48192 + *[0-9a-f]*: 96 c8 ld\.uh r8,r11\[0x8\]
48193 + *[0-9a-f]*: 84 ea ld\.uh r10,r2\[0xc\]
48194 +
48195 +[0-9a-f]* <st_w3>:
48196 + *[0-9a-f]*: 9f 0f st\.w pc\[0x0\],pc
48197 + *[0-9a-f]*: 99 fc st\.w r12\[0x3c\],r12
48198 + *[0-9a-f]*: 8b 85 st\.w r5\[0x20\],r5
48199 + *[0-9a-f]*: 89 74 st\.w r4\[0x1c\],r4
48200 + *[0-9a-f]*: 9d 1e st\.w lr\[0x4\],lr
48201 + *[0-9a-f]*: 8f bb st\.w r7\[0x2c\],r11
48202 + *[0-9a-f]*: 85 66 st\.w r2\[0x18\],r6
48203 + *[0-9a-f]*: 89 39 st\.w r4\[0xc\],r9
48204 +
48205 +[0-9a-f]* <st_h3>:
48206 + *[0-9a-f]*: be 0f st\.h pc\[0x0\],pc
48207 + *[0-9a-f]*: b8 7c st\.h r12\[0xe\],r12
48208 + *[0-9a-f]*: aa 45 st\.h r5\[0x8\],r5
48209 + *[0-9a-f]*: a8 34 st\.h r4\[0x6\],r4
48210 + *[0-9a-f]*: bc 1e st\.h lr\[0x2\],lr
48211 + *[0-9a-f]*: bc 5c st\.h lr\[0xa\],r12
48212 + *[0-9a-f]*: ac 20 st\.h r6\[0x4\],r0
48213 + *[0-9a-f]*: aa 6d st\.h r5\[0xc\],sp
48214 +
48215 +[0-9a-f]* <st_b3>:
48216 + *[0-9a-f]*: be 8f st\.b pc\[0x0\],pc
48217 + *[0-9a-f]*: b8 fc st\.b r12\[0x7\],r12
48218 + *[0-9a-f]*: aa c5 st\.b r5\[0x4\],r5
48219 + *[0-9a-f]*: a8 b4 st\.b r4\[0x3\],r4
48220 + *[0-9a-f]*: bc 9e st\.b lr\[0x1\],lr
48221 + *[0-9a-f]*: b8 e9 st\.b r12\[0x6\],r9
48222 + *[0-9a-f]*: a4 be st\.b r2\[0x3\],lr
48223 + *[0-9a-f]*: a2 bb st\.b r1\[0x3\],r11
48224 +
48225 +[0-9a-f]* <ldd>:
48226 + *[0-9a-f]*: bf 00 ld\.d r0,pc
48227 + *[0-9a-f]*: b9 0e ld\.d lr,r12
48228 + *[0-9a-f]*: ab 08 ld\.d r8,r5
48229 + *[0-9a-f]*: a9 06 ld\.d r6,r4
48230 + *[0-9a-f]*: bd 02 ld\.d r2,lr
48231 + *[0-9a-f]*: af 0e ld\.d lr,r7
48232 + *[0-9a-f]*: a9 04 ld\.d r4,r4
48233 + *[0-9a-f]*: bf 0e ld\.d lr,pc
48234 +
48235 +[0-9a-f]* <ldd_postinc>:
48236 + *[0-9a-f]*: bf 01 ld\.d r0,pc\+\+
48237 + *[0-9a-f]*: b9 0f ld\.d lr,r12\+\+
48238 + *[0-9a-f]*: ab 09 ld\.d r8,r5\+\+
48239 + *[0-9a-f]*: a9 07 ld\.d r6,r4\+\+
48240 + *[0-9a-f]*: bd 03 ld\.d r2,lr\+\+
48241 + *[0-9a-f]*: ab 0f ld\.d lr,r5\+\+
48242 + *[0-9a-f]*: b7 0d ld\.d r12,r11\+\+
48243 + *[0-9a-f]*: b9 03 ld\.d r2,r12\+\+
48244 +
48245 +[0-9a-f]* <ldd_predec>:
48246 + *[0-9a-f]*: bf 10 ld\.d r0,--pc
48247 + *[0-9a-f]*: b9 1e ld\.d lr,--r12
48248 + *[0-9a-f]*: ab 18 ld\.d r8,--r5
48249 + *[0-9a-f]*: a9 16 ld\.d r6,--r4
48250 + *[0-9a-f]*: bd 12 ld\.d r2,--lr
48251 + *[0-9a-f]*: a1 18 ld\.d r8,--r0
48252 + *[0-9a-f]*: bf 1a ld\.d r10,--pc
48253 + *[0-9a-f]*: a9 12 ld\.d r2,--r4
48254 +
48255 +[0-9a-f]* <std>:
48256 + *[0-9a-f]*: bf 11 st\.d pc,r0
48257 + *[0-9a-f]*: b9 1f st\.d r12,lr
48258 + *[0-9a-f]*: ab 19 st\.d r5,r8
48259 + *[0-9a-f]*: a9 17 st\.d r4,r6
48260 + *[0-9a-f]*: bd 13 st\.d lr,r2
48261 + *[0-9a-f]*: a1 1d st\.d r0,r12
48262 + *[0-9a-f]*: bb 15 st\.d sp,r4
48263 + *[0-9a-f]*: b9 1d st\.d r12,r12
48264 +
48265 +[0-9a-f]* <std_postinc>:
48266 + *[0-9a-f]*: bf 20 st\.d pc\+\+,r0
48267 + *[0-9a-f]*: b9 2e st\.d r12\+\+,lr
48268 + *[0-9a-f]*: ab 28 st\.d r5\+\+,r8
48269 + *[0-9a-f]*: a9 26 st\.d r4\+\+,r6
48270 + *[0-9a-f]*: bd 22 st\.d lr\+\+,r2
48271 + *[0-9a-f]*: bb 26 st\.d sp\+\+,r6
48272 + *[0-9a-f]*: b5 26 st\.d r10\+\+,r6
48273 + *[0-9a-f]*: af 22 st\.d r7\+\+,r2
48274 +
48275 +[0-9a-f]* <std_predec>:
48276 + *[0-9a-f]*: bf 21 st\.d --pc,r0
48277 + *[0-9a-f]*: b9 2f st\.d --r12,lr
48278 + *[0-9a-f]*: ab 29 st\.d --r5,r8
48279 + *[0-9a-f]*: a9 27 st\.d --r4,r6
48280 + *[0-9a-f]*: bd 23 st\.d --lr,r2
48281 + *[0-9a-f]*: a7 27 st\.d --r3,r6
48282 + *[0-9a-f]*: bd 23 st\.d --lr,r2
48283 + *[0-9a-f]*: a1 25 st\.d --r0,r4
48284 +
48285 +[0-9a-f]* <mul>:
48286 + *[0-9a-f]*: bf 3f mul pc,pc
48287 + *[0-9a-f]*: b9 3c mul r12,r12
48288 + *[0-9a-f]*: ab 35 mul r5,r5
48289 + *[0-9a-f]*: a9 34 mul r4,r4
48290 + *[0-9a-f]*: bd 3e mul lr,lr
48291 + *[0-9a-f]*: bd 3a mul r10,lr
48292 + *[0-9a-f]*: b1 30 mul r0,r8
48293 + *[0-9a-f]*: ab 38 mul r8,r5
48294 +
48295 +[0-9a-f]* <asr_imm5>:
48296 + *[0-9a-f]*: a1 4f asr pc,0x0
48297 + *[0-9a-f]*: bf 5c asr r12,0x1f
48298 + *[0-9a-f]*: b1 45 asr r5,0x10
48299 + *[0-9a-f]*: af 54 asr r4,0xf
48300 + *[0-9a-f]*: a1 5e asr lr,0x1
48301 + *[0-9a-f]*: b7 56 asr r6,0x17
48302 + *[0-9a-f]*: b3 46 asr r6,0x12
48303 + *[0-9a-f]*: a9 45 asr r5,0x8
48304 +
48305 +[0-9a-f]* <lsl_imm5>:
48306 + *[0-9a-f]*: a1 6f lsl pc,0x0
48307 + *[0-9a-f]*: bf 7c lsl r12,0x1f
48308 + *[0-9a-f]*: b1 65 lsl r5,0x10
48309 + *[0-9a-f]*: af 74 lsl r4,0xf
48310 + *[0-9a-f]*: a1 7e lsl lr,0x1
48311 + *[0-9a-f]*: ad 7c lsl r12,0xd
48312 + *[0-9a-f]*: b1 66 lsl r6,0x10
48313 + *[0-9a-f]*: b9 71 lsl r1,0x19
48314 +
48315 +[0-9a-f]* <lsr_imm5>:
48316 + *[0-9a-f]*: a1 8f lsr pc,0x0
48317 + *[0-9a-f]*: bf 9c lsr r12,0x1f
48318 + *[0-9a-f]*: b1 85 lsr r5,0x10
48319 + *[0-9a-f]*: af 94 lsr r4,0xf
48320 + *[0-9a-f]*: a1 9e lsr lr,0x1
48321 + *[0-9a-f]*: a1 90 lsr r0,0x1
48322 + *[0-9a-f]*: ab 88 lsr r8,0xa
48323 + *[0-9a-f]*: bb 87 lsr r7,0x1a
48324 +
48325 +[0-9a-f]* <sbr>:
48326 + *[0-9a-f]*: a1 af sbr pc,0x0
48327 + *[0-9a-f]*: bf bc sbr r12,0x1f
48328 + *[0-9a-f]*: b1 a5 sbr r5,0x10
48329 + *[0-9a-f]*: af b4 sbr r4,0xf
48330 + *[0-9a-f]*: a1 be sbr lr,0x1
48331 + *[0-9a-f]*: bf b8 sbr r8,0x1f
48332 + *[0-9a-f]*: b7 a6 sbr r6,0x16
48333 + *[0-9a-f]*: b7 b1 sbr r1,0x17
48334 +
48335 +[0-9a-f]* <cbr>:
48336 + *[0-9a-f]*: a1 cf cbr pc,0x0
48337 + *[0-9a-f]*: bf dc cbr r12,0x1f
48338 + *[0-9a-f]*: b1 c5 cbr r5,0x10
48339 + *[0-9a-f]*: af d4 cbr r4,0xf
48340 + *[0-9a-f]*: a1 de cbr lr,0x1
48341 + *[0-9a-f]*: ab cc cbr r12,0xa
48342 + *[0-9a-f]*: b7 c7 cbr r7,0x16
48343 + *[0-9a-f]*: a9 d8 cbr r8,0x9
48344 +
48345 +[0-9a-f]* <brc1>:
48346 + *[0-9a-f]*: c0 00 breq [0-9a-f]* <.*>
48347 + *[0-9a-f]*: cf f7 brpl [0-9a-f]* <.*>
48348 + *[0-9a-f]*: c8 04 brge [0-9a-f]* <.*>
48349 + *[0-9a-f]*: c7 f3 brcs [0-9a-f]* <.*>
48350 + *[0-9a-f]*: c0 11 brne [0-9a-f]* <.*>
48351 + *[0-9a-f]*: c7 33 brcs [0-9a-f]* <.*>
48352 + *[0-9a-f]*: cf 70 breq [0-9a-f]* <.*>
48353 + *[0-9a-f]*: c0 60 breq [0-9a-f]* <.*>
48354 +
48355 +[0-9a-f]* <rjmp>:
48356 + *[0-9a-f]*: c0 08 rjmp [0-9a-f]* <.*>
48357 + *[0-9a-f]*: cf fb rjmp [0-9a-f]* <.*>
48358 + *[0-9a-f]*: c0 0a rjmp [0-9a-f]* <.*>
48359 + *[0-9a-f]*: cf f9 rjmp [0-9a-f]* <.*>
48360 + *[0-9a-f]*: c0 18 rjmp [0-9a-f]* <.*>
48361 + *[0-9a-f]*: c1 fa rjmp [0-9a-f]* <.*>
48362 + *[0-9a-f]*: c0 78 rjmp [0-9a-f]* <.*>
48363 + *[0-9a-f]*: cf ea rjmp [0-9a-f]* <.*>
48364 +
48365 +[0-9a-f]* <rcall1>:
48366 + *[0-9a-f]*: c0 0c rcall [0-9a-f]* <.*>
48367 + *[0-9a-f]*: cf ff rcall [0-9a-f]* <.*>
48368 + *[0-9a-f]*: c0 0e rcall [0-9a-f]* <.*>
48369 + *[0-9a-f]*: cf fd rcall [0-9a-f]* <.*>
48370 + *[0-9a-f]*: c0 1c rcall [0-9a-f]* <.*>
48371 + *[0-9a-f]*: c6 cc rcall [0-9a-f]* <.*>
48372 + *[0-9a-f]*: cf 7e rcall [0-9a-f]* <.*>
48373 + *[0-9a-f]*: c1 ae rcall [0-9a-f]* <.*>
48374 +
48375 +[0-9a-f]* <acall>:
48376 + *[0-9a-f]*: d0 00 acall 0x0
48377 + *[0-9a-f]*: df f0 acall 0x3fc
48378 + *[0-9a-f]*: d8 00 acall 0x200
48379 + *[0-9a-f]*: d7 f0 acall 0x1fc
48380 + *[0-9a-f]*: d0 10 acall 0x4
48381 + *[0-9a-f]*: d5 90 acall 0x164
48382 + *[0-9a-f]*: d4 c0 acall 0x130
48383 + *[0-9a-f]*: d2 b0 acall 0xac
48384 +
48385 +[0-9a-f]* <scall>:
48386 + *[0-9a-f]*: d7 33 scall
48387 + *[0-9a-f]*: d7 33 scall
48388 + *[0-9a-f]*: d7 33 scall
48389 + *[0-9a-f]*: d7 33 scall
48390 + *[0-9a-f]*: d7 33 scall
48391 + *[0-9a-f]*: d7 33 scall
48392 + *[0-9a-f]*: d7 33 scall
48393 + *[0-9a-f]*: d7 33 scall
48394 +
48395 +[0-9a-f]* <popm>:
48396 + *[0-9a-f]*: d8 02 popm pc
48397 + *[0-9a-f]*: dd fa popm r0-r11,pc,r12=-1
48398 + *[0-9a-f]*: d4 02 popm lr
48399 + *[0-9a-f]*: db fa popm r0-r11,pc,r12=1
48400 + *[0-9a-f]*: d0 12 popm r0-r3
48401 + *[0-9a-f]*: d8 e2 popm r4-r10,pc
48402 + *[0-9a-f]*: d9 1a popm r0-r3,r11,pc,r12=0
48403 + *[0-9a-f]*: d7 b2 popm r0-r7,r10-r12,lr
48404 +
48405 +[0-9a-f]* <pushm>:
48406 + *[0-9a-f]*: d8 01 pushm pc
48407 + *[0-9a-f]*: df f1 pushm r0-r12,lr-pc
48408 + *[0-9a-f]*: d8 01 pushm pc
48409 + *[0-9a-f]*: d7 f1 pushm r0-r12,lr
48410 + *[0-9a-f]*: d0 11 pushm r0-r3
48411 + *[0-9a-f]*: dc c1 pushm r8-r10,lr-pc
48412 + *[0-9a-f]*: d0 91 pushm r0-r3,r10
48413 + *[0-9a-f]*: d2 41 pushm r8-r9,r12
48414 +
48415 +[0-9a-f]* <popm_n>:
48416 +.*
48417 +.*
48418 +.*
48419 +.*
48420 +.*
48421 +.*
48422 +.*
48423 +.*
48424 +
48425 +[0-9a-f]* <pushm_n>:
48426 +.*
48427 +.*
48428 +.*
48429 +.*
48430 +.*
48431 +.*
48432 +.*
48433 +.*
48434 +
48435 +[0-9a-f]* <csrfcz>:
48436 + *[0-9a-f]*: d0 03 csrfcz 0x0
48437 + *[0-9a-f]*: d1 f3 csrfcz 0x1f
48438 + *[0-9a-f]*: d1 03 csrfcz 0x10
48439 + *[0-9a-f]*: d0 f3 csrfcz 0xf
48440 + *[0-9a-f]*: d0 13 csrfcz 0x1
48441 + *[0-9a-f]*: d0 53 csrfcz 0x5
48442 + *[0-9a-f]*: d0 d3 csrfcz 0xd
48443 + *[0-9a-f]*: d1 73 csrfcz 0x17
48444 +
48445 +[0-9a-f]* <ssrf>:
48446 + *[0-9a-f]*: d2 03 ssrf 0x0
48447 + *[0-9a-f]*: d3 f3 ssrf 0x1f
48448 + *[0-9a-f]*: d3 03 ssrf 0x10
48449 + *[0-9a-f]*: d2 f3 ssrf 0xf
48450 + *[0-9a-f]*: d2 13 ssrf 0x1
48451 + *[0-9a-f]*: d3 d3 ssrf 0x1d
48452 + *[0-9a-f]*: d2 d3 ssrf 0xd
48453 + *[0-9a-f]*: d2 d3 ssrf 0xd
48454 +
48455 +[0-9a-f]* <csrf>:
48456 + *[0-9a-f]*: d4 03 csrf 0x0
48457 + *[0-9a-f]*: d5 f3 csrf 0x1f
48458 + *[0-9a-f]*: d5 03 csrf 0x10
48459 + *[0-9a-f]*: d4 f3 csrf 0xf
48460 + *[0-9a-f]*: d4 13 csrf 0x1
48461 + *[0-9a-f]*: d4 a3 csrf 0xa
48462 + *[0-9a-f]*: d4 f3 csrf 0xf
48463 + *[0-9a-f]*: d4 b3 csrf 0xb
48464 +
48465 +[0-9a-f]* <rete>:
48466 + *[0-9a-f]*: d6 03 rete
48467 +
48468 +[0-9a-f]* <rets>:
48469 + *[0-9a-f]*: d6 13 rets
48470 +
48471 +[0-9a-f]* <retd>:
48472 + *[0-9a-f]*: d6 23 retd
48473 +
48474 +[0-9a-f]* <retj>:
48475 + *[0-9a-f]*: d6 33 retj
48476 +
48477 +[0-9a-f]* <tlbr>:
48478 + *[0-9a-f]*: d6 43 tlbr
48479 +
48480 +[0-9a-f]* <tlbs>:
48481 + *[0-9a-f]*: d6 53 tlbs
48482 +
48483 +[0-9a-f]* <tlbw>:
48484 + *[0-9a-f]*: d6 63 tlbw
48485 +
48486 +[0-9a-f]* <breakpoint>:
48487 + *[0-9a-f]*: d6 73 breakpoint
48488 +
48489 +[0-9a-f]* <incjosp>:
48490 + *[0-9a-f]*: d6 83 incjosp 1
48491 + *[0-9a-f]*: d6 93 incjosp 2
48492 + *[0-9a-f]*: d6 a3 incjosp 3
48493 + *[0-9a-f]*: d6 b3 incjosp 4
48494 + *[0-9a-f]*: d6 c3 incjosp -4
48495 + *[0-9a-f]*: d6 d3 incjosp -3
48496 + *[0-9a-f]*: d6 e3 incjosp -2
48497 + *[0-9a-f]*: d6 f3 incjosp -1
48498 +
48499 +[0-9a-f]* <nop>:
48500 + *[0-9a-f]*: d7 03 nop
48501 +
48502 +[0-9a-f]* <popjc>:
48503 + *[0-9a-f]*: d7 13 popjc
48504 +
48505 +[0-9a-f]* <pushjc>:
48506 + *[0-9a-f]*: d7 23 pushjc
48507 +
48508 +[0-9a-f]* <add2>:
48509 + *[0-9a-f]*: fe 0f 00 0f add pc,pc,pc
48510 + *[0-9a-f]*: f8 0c 00 3c add r12,r12,r12<<0x3
48511 + *[0-9a-f]*: ea 05 00 25 add r5,r5,r5<<0x2
48512 + *[0-9a-f]*: e8 04 00 14 add r4,r4,r4<<0x1
48513 + *[0-9a-f]*: fc 0e 00 1e add lr,lr,lr<<0x1
48514 + *[0-9a-f]*: f8 00 00 10 add r0,r12,r0<<0x1
48515 + *[0-9a-f]*: f8 04 00 09 add r9,r12,r4
48516 + *[0-9a-f]*: f8 07 00 2c add r12,r12,r7<<0x2
48517 +
48518 +[0-9a-f]* <sub2>:
48519 + *[0-9a-f]*: fe 0f 01 0f sub pc,pc,pc
48520 + *[0-9a-f]*: f8 0c 01 3c sub r12,r12,r12<<0x3
48521 + *[0-9a-f]*: ea 05 01 25 sub r5,r5,r5<<0x2
48522 + *[0-9a-f]*: e8 04 01 14 sub r4,r4,r4<<0x1
48523 + *[0-9a-f]*: fc 0e 01 1e sub lr,lr,lr<<0x1
48524 + *[0-9a-f]*: e6 04 01 0d sub sp,r3,r4
48525 + *[0-9a-f]*: ee 03 01 03 sub r3,r7,r3
48526 + *[0-9a-f]*: f4 0d 01 1d sub sp,r10,sp<<0x1
48527 +
48528 +[0-9a-f]* <divu>:
48529 + *[0-9a-f]*: fe 0f 0d 0f divu pc,pc,pc
48530 + *[0-9a-f]*: f8 0c 0d 0c divu r12,r12,r12
48531 + *[0-9a-f]*: ea 05 0d 05 divu r5,r5,r5
48532 + *[0-9a-f]*: e8 04 0d 04 divu r4,r4,r4
48533 + *[0-9a-f]*: fc 0e 0d 0e divu lr,lr,lr
48534 + *[0-9a-f]*: e8 0f 0d 0d divu sp,r4,pc
48535 + *[0-9a-f]*: ea 0d 0d 05 divu r5,r5,sp
48536 + *[0-9a-f]*: fa 00 0d 0a divu r10,sp,r0
48537 +
48538 +[0-9a-f]* <addhh_w>:
48539 + *[0-9a-f]*: fe 0f 0e 0f addhh\.w pc,pc:b,pc:b
48540 + *[0-9a-f]*: f8 0c 0e 3c addhh\.w r12,r12:t,r12:t
48541 + *[0-9a-f]*: ea 05 0e 35 addhh\.w r5,r5:t,r5:t
48542 + *[0-9a-f]*: e8 04 0e 04 addhh\.w r4,r4:b,r4:b
48543 + *[0-9a-f]*: fc 0e 0e 3e addhh\.w lr,lr:t,lr:t
48544 + *[0-9a-f]*: e0 03 0e 00 addhh\.w r0,r0:b,r3:b
48545 + *[0-9a-f]*: f8 07 0e 2e addhh\.w lr,r12:t,r7:b
48546 + *[0-9a-f]*: f4 02 0e 23 addhh\.w r3,r10:t,r2:b
48547 +
48548 +[0-9a-f]* <subhh_w>:
48549 + *[0-9a-f]*: fe 0f 0f 0f subhh\.w pc,pc:b,pc:b
48550 + *[0-9a-f]*: f8 0c 0f 3c subhh\.w r12,r12:t,r12:t
48551 + *[0-9a-f]*: ea 05 0f 35 subhh\.w r5,r5:t,r5:t
48552 + *[0-9a-f]*: e8 04 0f 04 subhh\.w r4,r4:b,r4:b
48553 + *[0-9a-f]*: fc 0e 0f 3e subhh\.w lr,lr:t,lr:t
48554 + *[0-9a-f]*: e2 07 0f 2a subhh\.w r10,r1:t,r7:b
48555 + *[0-9a-f]*: f4 0e 0f 3f subhh\.w pc,r10:t,lr:t
48556 + *[0-9a-f]*: e0 0c 0f 23 subhh\.w r3,r0:t,r12:b
48557 +
48558 +[0-9a-f]* <adc>:
48559 + *[0-9a-f]*: fe 0f 00 4f adc pc,pc,pc
48560 + *[0-9a-f]*: f8 0c 00 4c adc r12,r12,r12
48561 + *[0-9a-f]*: ea 05 00 45 adc r5,r5,r5
48562 + *[0-9a-f]*: e8 04 00 44 adc r4,r4,r4
48563 + *[0-9a-f]*: fc 0e 00 4e adc lr,lr,lr
48564 + *[0-9a-f]*: e0 07 00 44 adc r4,r0,r7
48565 + *[0-9a-f]*: e8 03 00 4d adc sp,r4,r3
48566 + *[0-9a-f]*: f8 00 00 42 adc r2,r12,r0
48567 +
48568 +[0-9a-f]* <sbc>:
48569 + *[0-9a-f]*: fe 0f 01 4f sbc pc,pc,pc
48570 + *[0-9a-f]*: f8 0c 01 4c sbc r12,r12,r12
48571 + *[0-9a-f]*: ea 05 01 45 sbc r5,r5,r5
48572 + *[0-9a-f]*: e8 04 01 44 sbc r4,r4,r4
48573 + *[0-9a-f]*: fc 0e 01 4e sbc lr,lr,lr
48574 + *[0-9a-f]*: ee 09 01 46 sbc r6,r7,r9
48575 + *[0-9a-f]*: f0 05 01 40 sbc r0,r8,r5
48576 + *[0-9a-f]*: e0 04 01 41 sbc r1,r0,r4
48577 +
48578 +[0-9a-f]* <mul_2>:
48579 + *[0-9a-f]*: fe 0f 02 4f mul pc,pc,pc
48580 + *[0-9a-f]*: f8 0c 02 4c mul r12,r12,r12
48581 + *[0-9a-f]*: ea 05 02 45 mul r5,r5,r5
48582 + *[0-9a-f]*: e8 04 02 44 mul r4,r4,r4
48583 + *[0-9a-f]*: fc 0e 02 4e mul lr,lr,lr
48584 + *[0-9a-f]*: e0 00 02 4f mul pc,r0,r0
48585 + *[0-9a-f]*: fe 0e 02 48 mul r8,pc,lr
48586 + *[0-9a-f]*: f8 0f 02 44 mul r4,r12,pc
48587 +
48588 +[0-9a-f]* <mac>:
48589 + *[0-9a-f]*: fe 0f 03 4f mac pc,pc,pc
48590 + *[0-9a-f]*: f8 0c 03 4c mac r12,r12,r12
48591 + *[0-9a-f]*: ea 05 03 45 mac r5,r5,r5
48592 + *[0-9a-f]*: e8 04 03 44 mac r4,r4,r4
48593 + *[0-9a-f]*: fc 0e 03 4e mac lr,lr,lr
48594 + *[0-9a-f]*: e8 00 03 4a mac r10,r4,r0
48595 + *[0-9a-f]*: fc 00 03 47 mac r7,lr,r0
48596 + *[0-9a-f]*: f2 0c 03 42 mac r2,r9,r12
48597 +
48598 +[0-9a-f]* <mulsd>:
48599 + *[0-9a-f]*: fe 0f 04 4f muls\.d pc,pc,pc
48600 + *[0-9a-f]*: f8 0c 04 4c muls\.d r12,r12,r12
48601 + *[0-9a-f]*: ea 05 04 45 muls\.d r5,r5,r5
48602 + *[0-9a-f]*: e8 04 04 44 muls\.d r4,r4,r4
48603 + *[0-9a-f]*: fc 0e 04 4e muls\.d lr,lr,lr
48604 + *[0-9a-f]*: f0 0e 04 42 muls\.d r2,r8,lr
48605 + *[0-9a-f]*: e0 0b 04 44 muls\.d r4,r0,r11
48606 + *[0-9a-f]*: fc 06 04 45 muls\.d r5,lr,r6
48607 +
48608 +[0-9a-f]* <macsd>:
48609 + *[0-9a-f]*: fe 0f 05 40 macs\.d r0,pc,pc
48610 + *[0-9a-f]*: f8 0c 05 4e macs\.d lr,r12,r12
48611 + *[0-9a-f]*: ea 05 05 48 macs\.d r8,r5,r5
48612 + *[0-9a-f]*: e8 04 05 46 macs\.d r6,r4,r4
48613 + *[0-9a-f]*: fc 0e 05 42 macs\.d r2,lr,lr
48614 + *[0-9a-f]*: e2 09 05 48 macs\.d r8,r1,r9
48615 + *[0-9a-f]*: f0 08 05 4e macs\.d lr,r8,r8
48616 + *[0-9a-f]*: e6 0c 05 44 macs\.d r4,r3,r12
48617 +
48618 +[0-9a-f]* <mulud>:
48619 + *[0-9a-f]*: fe 0f 06 40 mulu\.d r0,pc,pc
48620 + *[0-9a-f]*: f8 0c 06 4e mulu\.d lr,r12,r12
48621 + *[0-9a-f]*: ea 05 06 48 mulu\.d r8,r5,r5
48622 + *[0-9a-f]*: e8 04 06 46 mulu\.d r6,r4,r4
48623 + *[0-9a-f]*: fc 0e 06 42 mulu\.d r2,lr,lr
48624 + *[0-9a-f]*: ea 00 06 46 mulu\.d r6,r5,r0
48625 + *[0-9a-f]*: ec 01 06 44 mulu\.d r4,r6,r1
48626 + *[0-9a-f]*: f0 02 06 48 mulu\.d r8,r8,r2
48627 +
48628 +[0-9a-f]* <macud>:
48629 + *[0-9a-f]*: fe 0f 07 40 macu\.d r0,pc,pc
48630 + *[0-9a-f]*: f8 0c 07 4e macu\.d lr,r12,r12
48631 + *[0-9a-f]*: ea 05 07 48 macu\.d r8,r5,r5
48632 + *[0-9a-f]*: e8 04 07 46 macu\.d r6,r4,r4
48633 + *[0-9a-f]*: fc 0e 07 42 macu\.d r2,lr,lr
48634 + *[0-9a-f]*: fa 0b 07 46 macu\.d r6,sp,r11
48635 + *[0-9a-f]*: e8 08 07 42 macu\.d r2,r4,r8
48636 + *[0-9a-f]*: f4 09 07 46 macu\.d r6,r10,r9
48637 +
48638 +[0-9a-f]* <asr_1>:
48639 + *[0-9a-f]*: fe 0f 08 4f asr pc,pc,pc
48640 + *[0-9a-f]*: f8 0c 08 4c asr r12,r12,r12
48641 + *[0-9a-f]*: ea 05 08 45 asr r5,r5,r5
48642 + *[0-9a-f]*: e8 04 08 44 asr r4,r4,r4
48643 + *[0-9a-f]*: fc 0e 08 4e asr lr,lr,lr
48644 + *[0-9a-f]*: ec 0f 08 4f asr pc,r6,pc
48645 + *[0-9a-f]*: ec 0c 08 40 asr r0,r6,r12
48646 + *[0-9a-f]*: fa 00 08 44 asr r4,sp,r0
48647 +
48648 +[0-9a-f]* <lsl_1>:
48649 + *[0-9a-f]*: fe 0f 09 4f lsl pc,pc,pc
48650 + *[0-9a-f]*: f8 0c 09 4c lsl r12,r12,r12
48651 + *[0-9a-f]*: ea 05 09 45 lsl r5,r5,r5
48652 + *[0-9a-f]*: e8 04 09 44 lsl r4,r4,r4
48653 + *[0-9a-f]*: fc 0e 09 4e lsl lr,lr,lr
48654 + *[0-9a-f]*: ea 0e 09 4e lsl lr,r5,lr
48655 + *[0-9a-f]*: fe 03 09 45 lsl r5,pc,r3
48656 + *[0-9a-f]*: fe 09 09 41 lsl r1,pc,r9
48657 +
48658 +[0-9a-f]* <lsr_1>:
48659 + *[0-9a-f]*: fe 0f 0a 4f lsr pc,pc,pc
48660 + *[0-9a-f]*: f8 0c 0a 4c lsr r12,r12,r12
48661 + *[0-9a-f]*: ea 05 0a 45 lsr r5,r5,r5
48662 + *[0-9a-f]*: e8 04 0a 44 lsr r4,r4,r4
48663 + *[0-9a-f]*: fc 0e 0a 4e lsr lr,lr,lr
48664 + *[0-9a-f]*: e8 01 0a 42 lsr r2,r4,r1
48665 + *[0-9a-f]*: e2 06 0a 45 lsr r5,r1,r6
48666 + *[0-9a-f]*: ec 07 0a 4d lsr sp,r6,r7
48667 +
48668 +[0-9a-f]* <xchg>:
48669 + *[0-9a-f]*: fe 0f 0b 4f xchg pc,pc,pc
48670 + *[0-9a-f]*: f8 0c 0b 4c xchg r12,r12,r12
48671 + *[0-9a-f]*: ea 05 0b 45 xchg r5,r5,r5
48672 + *[0-9a-f]*: e8 04 0b 44 xchg r4,r4,r4
48673 + *[0-9a-f]*: fc 0e 0b 4e xchg lr,lr,lr
48674 + *[0-9a-f]*: e8 0d 0b 4e xchg lr,r4,sp
48675 + *[0-9a-f]*: ea 0c 0b 41 xchg r1,r5,r12
48676 + *[0-9a-f]*: f8 00 0b 4e xchg lr,r12,r0
48677 +
48678 +[0-9a-f]* <max>:
48679 + *[0-9a-f]*: fe 0f 0c 4f max pc,pc,pc
48680 + *[0-9a-f]*: f8 0c 0c 4c max r12,r12,r12
48681 + *[0-9a-f]*: ea 05 0c 45 max r5,r5,r5
48682 + *[0-9a-f]*: e8 04 0c 44 max r4,r4,r4
48683 + *[0-9a-f]*: fc 0e 0c 4e max lr,lr,lr
48684 + *[0-9a-f]*: e4 0d 0c 4e max lr,r2,sp
48685 + *[0-9a-f]*: f4 09 0c 44 max r4,r10,r9
48686 + *[0-9a-f]*: f2 0e 0c 4e max lr,r9,lr
48687 +
48688 +[0-9a-f]* <min>:
48689 + *[0-9a-f]*: fe 0f 0d 4f min pc,pc,pc
48690 + *[0-9a-f]*: f8 0c 0d 4c min r12,r12,r12
48691 + *[0-9a-f]*: ea 05 0d 45 min r5,r5,r5
48692 + *[0-9a-f]*: e8 04 0d 44 min r4,r4,r4
48693 + *[0-9a-f]*: fc 0e 0d 4e min lr,lr,lr
48694 + *[0-9a-f]*: ee 08 0d 49 min r9,r7,r8
48695 + *[0-9a-f]*: ea 05 0d 4d min sp,r5,r5
48696 + *[0-9a-f]*: e2 04 0d 44 min r4,r1,r4
48697 +
48698 +[0-9a-f]* <addabs>:
48699 + *[0-9a-f]*: fe 0f 0e 4f addabs pc,pc,pc
48700 + *[0-9a-f]*: f8 0c 0e 4c addabs r12,r12,r12
48701 + *[0-9a-f]*: ea 05 0e 45 addabs r5,r5,r5
48702 + *[0-9a-f]*: e8 04 0e 44 addabs r4,r4,r4
48703 + *[0-9a-f]*: fc 0e 0e 4e addabs lr,lr,lr
48704 + *[0-9a-f]*: f4 00 0e 47 addabs r7,r10,r0
48705 + *[0-9a-f]*: f2 07 0e 49 addabs r9,r9,r7
48706 + *[0-9a-f]*: f0 0c 0e 42 addabs r2,r8,r12
48707 +
48708 +[0-9a-f]* <mulnhh_w>:
48709 + *[0-9a-f]*: fe 0f 01 8f mulnhh\.w pc,pc:b,pc:b
48710 + *[0-9a-f]*: f8 0c 01 bc mulnhh\.w r12,r12:t,r12:t
48711 + *[0-9a-f]*: ea 05 01 b5 mulnhh\.w r5,r5:t,r5:t
48712 + *[0-9a-f]*: e8 04 01 84 mulnhh\.w r4,r4:b,r4:b
48713 + *[0-9a-f]*: fc 0e 01 be mulnhh\.w lr,lr:t,lr:t
48714 + *[0-9a-f]*: fa 09 01 ab mulnhh\.w r11,sp:t,r9:b
48715 + *[0-9a-f]*: e8 0e 01 9d mulnhh\.w sp,r4:b,lr:t
48716 + *[0-9a-f]*: e4 0b 01 ac mulnhh\.w r12,r2:t,r11:b
48717 +
48718 +[0-9a-f]* <mulnwh_d>:
48719 + *[0-9a-f]*: fe 0f 02 80 mulnwh\.d r0,pc,pc:b
48720 + *[0-9a-f]*: f8 0c 02 9e mulnwh\.d lr,r12,r12:t
48721 + *[0-9a-f]*: ea 05 02 98 mulnwh\.d r8,r5,r5:t
48722 + *[0-9a-f]*: e8 04 02 86 mulnwh\.d r6,r4,r4:b
48723 + *[0-9a-f]*: fc 0e 02 92 mulnwh\.d r2,lr,lr:t
48724 + *[0-9a-f]*: e6 02 02 9e mulnwh\.d lr,r3,r2:t
48725 + *[0-9a-f]*: ea 09 02 84 mulnwh\.d r4,r5,r9:b
48726 + *[0-9a-f]*: e8 04 02 9c mulnwh\.d r12,r4,r4:t
48727 +
48728 +[0-9a-f]* <machh_w>:
48729 + *[0-9a-f]*: fe 0f 04 8f machh\.w pc,pc:b,pc:b
48730 + *[0-9a-f]*: f8 0c 04 bc machh\.w r12,r12:t,r12:t
48731 + *[0-9a-f]*: ea 05 04 b5 machh\.w r5,r5:t,r5:t
48732 + *[0-9a-f]*: e8 04 04 84 machh\.w r4,r4:b,r4:b
48733 + *[0-9a-f]*: fc 0e 04 be machh\.w lr,lr:t,lr:t
48734 + *[0-9a-f]*: ea 01 04 9e machh\.w lr,r5:b,r1:t
48735 + *[0-9a-f]*: ec 07 04 89 machh\.w r9,r6:b,r7:b
48736 + *[0-9a-f]*: fc 0c 04 a5 machh\.w r5,lr:t,r12:b
48737 +
48738 +[0-9a-f]* <machh_d>:
48739 + *[0-9a-f]*: fe 0f 05 80 machh\.d r0,pc:b,pc:b
48740 + *[0-9a-f]*: f8 0c 05 be machh\.d lr,r12:t,r12:t
48741 + *[0-9a-f]*: ea 05 05 b8 machh\.d r8,r5:t,r5:t
48742 + *[0-9a-f]*: e8 04 05 86 machh\.d r6,r4:b,r4:b
48743 + *[0-9a-f]*: fc 0e 05 b2 machh\.d r2,lr:t,lr:t
48744 + *[0-9a-f]*: e0 08 05 8a machh\.d r10,r0:b,r8:b
48745 + *[0-9a-f]*: e8 05 05 9e machh\.d lr,r4:b,r5:t
48746 + *[0-9a-f]*: e0 04 05 98 machh\.d r8,r0:b,r4:t
48747 +
48748 +[0-9a-f]* <macsathh_w>:
48749 + *[0-9a-f]*: fe 0f 06 8f macsathh\.w pc,pc:b,pc:b
48750 + *[0-9a-f]*: f8 0c 06 bc macsathh\.w r12,r12:t,r12:t
48751 + *[0-9a-f]*: ea 05 06 b5 macsathh\.w r5,r5:t,r5:t
48752 + *[0-9a-f]*: e8 04 06 84 macsathh\.w r4,r4:b,r4:b
48753 + *[0-9a-f]*: fc 0e 06 be macsathh\.w lr,lr:t,lr:t
48754 + *[0-9a-f]*: ee 0f 06 b7 macsathh\.w r7,r7:t,pc:t
48755 + *[0-9a-f]*: e4 04 06 a4 macsathh\.w r4,r2:t,r4:b
48756 + *[0-9a-f]*: f0 03 06 b4 macsathh\.w r4,r8:t,r3:t
48757 +
48758 +[0-9a-f]* <mulhh_w>:
48759 + *[0-9a-f]*: fe 0f 07 8f mulhh\.w pc,pc:b,pc:b
48760 + *[0-9a-f]*: f8 0c 07 bc mulhh\.w r12,r12:t,r12:t
48761 + *[0-9a-f]*: ea 05 07 b5 mulhh\.w r5,r5:t,r5:t
48762 + *[0-9a-f]*: e8 04 07 84 mulhh\.w r4,r4:b,r4:b
48763 + *[0-9a-f]*: fc 0e 07 be mulhh\.w lr,lr:t,lr:t
48764 + *[0-9a-f]*: e8 09 07 a7 mulhh\.w r7,r4:t,r9:b
48765 + *[0-9a-f]*: e6 07 07 bf mulhh\.w pc,r3:t,r7:t
48766 + *[0-9a-f]*: e8 09 07 9f mulhh\.w pc,r4:b,r9:t
48767 +
48768 +[0-9a-f]* <mulsathh_h>:
48769 + *[0-9a-f]*: fe 0f 08 8f mulsathh\.h pc,pc:b,pc:b
48770 + *[0-9a-f]*: f8 0c 08 bc mulsathh\.h r12,r12:t,r12:t
48771 + *[0-9a-f]*: ea 05 08 b5 mulsathh\.h r5,r5:t,r5:t
48772 + *[0-9a-f]*: e8 04 08 84 mulsathh\.h r4,r4:b,r4:b
48773 + *[0-9a-f]*: fc 0e 08 be mulsathh\.h lr,lr:t,lr:t
48774 + *[0-9a-f]*: e2 0d 08 83 mulsathh\.h r3,r1:b,sp:b
48775 + *[0-9a-f]*: fc 0b 08 ab mulsathh\.h r11,lr:t,r11:b
48776 + *[0-9a-f]*: f0 0b 08 98 mulsathh\.h r8,r8:b,r11:t
48777 +
48778 +[0-9a-f]* <mulsathh_w>:
48779 + *[0-9a-f]*: fe 0f 09 8f mulsathh\.w pc,pc:b,pc:b
48780 + *[0-9a-f]*: f8 0c 09 bc mulsathh\.w r12,r12:t,r12:t
48781 + *[0-9a-f]*: ea 05 09 b5 mulsathh\.w r5,r5:t,r5:t
48782 + *[0-9a-f]*: e8 04 09 84 mulsathh\.w r4,r4:b,r4:b
48783 + *[0-9a-f]*: fc 0e 09 be mulsathh\.w lr,lr:t,lr:t
48784 + *[0-9a-f]*: f6 06 09 ae mulsathh\.w lr,r11:t,r6:b
48785 + *[0-9a-f]*: ec 07 09 96 mulsathh\.w r6,r6:b,r7:t
48786 + *[0-9a-f]*: e4 03 09 8a mulsathh\.w r10,r2:b,r3:b
48787 +
48788 +[0-9a-f]* <mulsatrndhh_h>:
48789 + *[0-9a-f]*: fe 0f 0a 8f mulsatrndhh\.h pc,pc:b,pc:b
48790 + *[0-9a-f]*: f8 0c 0a bc mulsatrndhh\.h r12,r12:t,r12:t
48791 + *[0-9a-f]*: ea 05 0a b5 mulsatrndhh\.h r5,r5:t,r5:t
48792 + *[0-9a-f]*: e8 04 0a 84 mulsatrndhh\.h r4,r4:b,r4:b
48793 + *[0-9a-f]*: fc 0e 0a be mulsatrndhh\.h lr,lr:t,lr:t
48794 + *[0-9a-f]*: ec 09 0a 8b mulsatrndhh\.h r11,r6:b,r9:b
48795 + *[0-9a-f]*: e6 08 0a 9b mulsatrndhh\.h r11,r3:b,r8:t
48796 + *[0-9a-f]*: fa 07 0a b5 mulsatrndhh\.h r5,sp:t,r7:t
48797 +
48798 +[0-9a-f]* <mulsatrndwh_w>:
48799 + *[0-9a-f]*: fe 0f 0b 8f mulsatrndwh\.w pc,pc,pc:b
48800 + *[0-9a-f]*: f8 0c 0b 9c mulsatrndwh\.w r12,r12,r12:t
48801 + *[0-9a-f]*: ea 05 0b 95 mulsatrndwh\.w r5,r5,r5:t
48802 + *[0-9a-f]*: e8 04 0b 84 mulsatrndwh\.w r4,r4,r4:b
48803 + *[0-9a-f]*: fc 0e 0b 9e mulsatrndwh\.w lr,lr,lr:t
48804 + *[0-9a-f]*: f8 00 0b 85 mulsatrndwh\.w r5,r12,r0:b
48805 + *[0-9a-f]*: f4 0f 0b 87 mulsatrndwh\.w r7,r10,pc:b
48806 + *[0-9a-f]*: f0 05 0b 9a mulsatrndwh\.w r10,r8,r5:t
48807 +
48808 +[0-9a-f]* <macwh_d>:
48809 + *[0-9a-f]*: fe 0f 0c 80 macwh\.d r0,pc,pc:b
48810 + *[0-9a-f]*: f8 0c 0c 9e macwh\.d lr,r12,r12:t
48811 + *[0-9a-f]*: ea 05 0c 98 macwh\.d r8,r5,r5:t
48812 + *[0-9a-f]*: e8 04 0c 86 macwh\.d r6,r4,r4:b
48813 + *[0-9a-f]*: fc 0e 0c 92 macwh\.d r2,lr,lr:t
48814 + *[0-9a-f]*: f4 0c 0c 94 macwh\.d r4,r10,r12:t
48815 + *[0-9a-f]*: ee 0d 0c 84 macwh\.d r4,r7,sp:b
48816 + *[0-9a-f]*: f2 0b 0c 8e macwh\.d lr,r9,r11:b
48817 +
48818 +[0-9a-f]* <mulwh_d>:
48819 + *[0-9a-f]*: fe 0f 0d 80 mulwh\.d r0,pc,pc:b
48820 + *[0-9a-f]*: f8 0c 0d 9e mulwh\.d lr,r12,r12:t
48821 + *[0-9a-f]*: ea 05 0d 98 mulwh\.d r8,r5,r5:t
48822 + *[0-9a-f]*: e8 04 0d 86 mulwh\.d r6,r4,r4:b
48823 + *[0-9a-f]*: fc 0e 0d 92 mulwh\.d r2,lr,lr:t
48824 + *[0-9a-f]*: ea 01 0d 8c mulwh\.d r12,r5,r1:b
48825 + *[0-9a-f]*: e2 03 0d 90 mulwh\.d r0,r1,r3:t
48826 + *[0-9a-f]*: f2 02 0d 80 mulwh\.d r0,r9,r2:b
48827 +
48828 +[0-9a-f]* <mulsatwh_w>:
48829 + *[0-9a-f]*: fe 0f 0e 8f mulsatwh\.w pc,pc,pc:b
48830 + *[0-9a-f]*: f8 0c 0e 9c mulsatwh\.w r12,r12,r12:t
48831 + *[0-9a-f]*: ea 05 0e 95 mulsatwh\.w r5,r5,r5:t
48832 + *[0-9a-f]*: e8 04 0e 84 mulsatwh\.w r4,r4,r4:b
48833 + *[0-9a-f]*: fc 0e 0e 9e mulsatwh\.w lr,lr,lr:t
48834 + *[0-9a-f]*: fe 0a 0e 9b mulsatwh\.w r11,pc,r10:t
48835 + *[0-9a-f]*: f8 09 0e 9d mulsatwh\.w sp,r12,r9:t
48836 + *[0-9a-f]*: e6 02 0e 90 mulsatwh\.w r0,r3,r2:t
48837 +
48838 +[0-9a-f]* <ldw7>:
48839 + *[0-9a-f]*: fe 0f 0f 8f ld\.w pc,pc\[pc:b<<2\]
48840 + *[0-9a-f]*: f8 0c 0f bc ld\.w r12,r12\[r12:t<<2\]
48841 + *[0-9a-f]*: ea 05 0f a5 ld\.w r5,r5\[r5:u<<2\]
48842 + *[0-9a-f]*: e8 04 0f 94 ld\.w r4,r4\[r4:l<<2\]
48843 + *[0-9a-f]*: fc 0e 0f 9e ld\.w lr,lr\[lr:l<<2\]
48844 + *[0-9a-f]*: f4 06 0f 99 ld\.w r9,r10\[r6:l<<2\]
48845 + *[0-9a-f]*: f4 0a 0f 82 ld\.w r2,r10\[r10:b<<2\]
48846 + *[0-9a-f]*: ea 0f 0f 8b ld\.w r11,r5\[pc:b<<2\]
48847 +
48848 +[0-9a-f]* <satadd_w>:
48849 + *[0-9a-f]*: fe 0f 00 cf satadd\.w pc,pc,pc
48850 + *[0-9a-f]*: f8 0c 00 cc satadd\.w r12,r12,r12
48851 + *[0-9a-f]*: ea 05 00 c5 satadd\.w r5,r5,r5
48852 + *[0-9a-f]*: e8 04 00 c4 satadd\.w r4,r4,r4
48853 + *[0-9a-f]*: fc 0e 00 ce satadd\.w lr,lr,lr
48854 + *[0-9a-f]*: f0 0b 00 c4 satadd\.w r4,r8,r11
48855 + *[0-9a-f]*: f8 06 00 c3 satadd\.w r3,r12,r6
48856 + *[0-9a-f]*: fc 09 00 c3 satadd\.w r3,lr,r9
48857 +
48858 +[0-9a-f]* <satsub_w1>:
48859 + *[0-9a-f]*: fe 0f 01 cf satsub\.w pc,pc,pc
48860 + *[0-9a-f]*: f8 0c 01 cc satsub\.w r12,r12,r12
48861 + *[0-9a-f]*: ea 05 01 c5 satsub\.w r5,r5,r5
48862 + *[0-9a-f]*: e8 04 01 c4 satsub\.w r4,r4,r4
48863 + *[0-9a-f]*: fc 0e 01 ce satsub\.w lr,lr,lr
48864 + *[0-9a-f]*: fa 00 01 c8 satsub\.w r8,sp,r0
48865 + *[0-9a-f]*: f0 04 01 c9 satsub\.w r9,r8,r4
48866 + *[0-9a-f]*: fc 02 01 cf satsub\.w pc,lr,r2
48867 +
48868 +[0-9a-f]* <satadd_h>:
48869 + *[0-9a-f]*: fe 0f 02 cf satadd\.h pc,pc,pc
48870 + *[0-9a-f]*: f8 0c 02 cc satadd\.h r12,r12,r12
48871 + *[0-9a-f]*: ea 05 02 c5 satadd\.h r5,r5,r5
48872 + *[0-9a-f]*: e8 04 02 c4 satadd\.h r4,r4,r4
48873 + *[0-9a-f]*: fc 0e 02 ce satadd\.h lr,lr,lr
48874 + *[0-9a-f]*: e6 09 02 c7 satadd\.h r7,r3,r9
48875 + *[0-9a-f]*: e0 02 02 c1 satadd\.h r1,r0,r2
48876 + *[0-9a-f]*: e8 0e 02 c1 satadd\.h r1,r4,lr
48877 +
48878 +[0-9a-f]* <satsub_h>:
48879 + *[0-9a-f]*: fe 0f 03 cf satsub\.h pc,pc,pc
48880 + *[0-9a-f]*: f8 0c 03 cc satsub\.h r12,r12,r12
48881 + *[0-9a-f]*: ea 05 03 c5 satsub\.h r5,r5,r5
48882 + *[0-9a-f]*: e8 04 03 c4 satsub\.h r4,r4,r4
48883 + *[0-9a-f]*: fc 0e 03 ce satsub\.h lr,lr,lr
48884 + *[0-9a-f]*: fc 03 03 ce satsub\.h lr,lr,r3
48885 + *[0-9a-f]*: ec 05 03 cb satsub\.h r11,r6,r5
48886 + *[0-9a-f]*: fa 00 03 c3 satsub\.h r3,sp,r0
48887 +
48888 +[0-9a-f]* <mul3>:
48889 + *[0-9a-f]*: fe 0f 10 00 mul pc,pc,0
48890 + *[0-9a-f]*: f8 0c 10 ff mul r12,r12,-1
48891 + *[0-9a-f]*: ea 05 10 80 mul r5,r5,-128
48892 + *[0-9a-f]*: e8 04 10 7f mul r4,r4,127
48893 + *[0-9a-f]*: fc 0e 10 01 mul lr,lr,1
48894 + *[0-9a-f]*: e4 0c 10 f9 mul r12,r2,-7
48895 + *[0-9a-f]*: fe 01 10 5f mul r1,pc,95
48896 + *[0-9a-f]*: ec 04 10 13 mul r4,r6,19
48897 +
48898 +[0-9a-f]* <rsub2>:
48899 + *[0-9a-f]*: fe 0f 11 00 rsub pc,pc,0
48900 + *[0-9a-f]*: f8 0c 11 ff rsub r12,r12,-1
48901 + *[0-9a-f]*: ea 05 11 80 rsub r5,r5,-128
48902 + *[0-9a-f]*: e8 04 11 7f rsub r4,r4,127
48903 + *[0-9a-f]*: fc 0e 11 01 rsub lr,lr,1
48904 + *[0-9a-f]*: fc 09 11 60 rsub r9,lr,96
48905 + *[0-9a-f]*: e2 0b 11 38 rsub r11,r1,56
48906 + *[0-9a-f]*: ee 00 11 a9 rsub r0,r7,-87
48907 +
48908 +[0-9a-f]* <clz>:
48909 + *[0-9a-f]*: fe 0f 12 00 clz pc,pc
48910 + *[0-9a-f]*: f8 0c 12 00 clz r12,r12
48911 + *[0-9a-f]*: ea 05 12 00 clz r5,r5
48912 + *[0-9a-f]*: e8 04 12 00 clz r4,r4
48913 + *[0-9a-f]*: fc 0e 12 00 clz lr,lr
48914 + *[0-9a-f]*: e6 02 12 00 clz r2,r3
48915 + *[0-9a-f]*: f6 05 12 00 clz r5,r11
48916 + *[0-9a-f]*: e6 0f 12 00 clz pc,r3
48917 +
48918 +[0-9a-f]* <cpc1>:
48919 + *[0-9a-f]*: fe 0f 13 00 cpc pc,pc
48920 + *[0-9a-f]*: f8 0c 13 00 cpc r12,r12
48921 + *[0-9a-f]*: ea 05 13 00 cpc r5,r5
48922 + *[0-9a-f]*: e8 04 13 00 cpc r4,r4
48923 + *[0-9a-f]*: fc 0e 13 00 cpc lr,lr
48924 + *[0-9a-f]*: e8 0f 13 00 cpc pc,r4
48925 + *[0-9a-f]*: f2 05 13 00 cpc r5,r9
48926 + *[0-9a-f]*: ee 06 13 00 cpc r6,r7
48927 +
48928 +[0-9a-f]* <asr3>:
48929 + *[0-9a-f]*: fe 0f 14 00 asr pc,pc,0x0
48930 + *[0-9a-f]*: f8 0c 14 1f asr r12,r12,0x1f
48931 + *[0-9a-f]*: ea 05 14 10 asr r5,r5,0x10
48932 + *[0-9a-f]*: e8 04 14 0f asr r4,r4,0xf
48933 + *[0-9a-f]*: fc 0e 14 01 asr lr,lr,0x1
48934 + *[0-9a-f]*: f6 04 14 13 asr r4,r11,0x13
48935 + *[0-9a-f]*: fe 0d 14 1a asr sp,pc,0x1a
48936 + *[0-9a-f]*: fa 0b 14 08 asr r11,sp,0x8
48937 +
48938 +[0-9a-f]* <lsl3>:
48939 + *[0-9a-f]*: fe 0f 15 00 lsl pc,pc,0x0
48940 + *[0-9a-f]*: f8 0c 15 1f lsl r12,r12,0x1f
48941 + *[0-9a-f]*: ea 05 15 10 lsl r5,r5,0x10
48942 + *[0-9a-f]*: e8 04 15 0f lsl r4,r4,0xf
48943 + *[0-9a-f]*: fc 0e 15 01 lsl lr,lr,0x1
48944 + *[0-9a-f]*: f4 08 15 11 lsl r8,r10,0x11
48945 + *[0-9a-f]*: fc 02 15 03 lsl r2,lr,0x3
48946 + *[0-9a-f]*: f6 0e 15 0e lsl lr,r11,0xe
48947 +
48948 +[0-9a-f]* <lsr3>:
48949 + *[0-9a-f]*: fe 0f 16 00 lsr pc,pc,0x0
48950 + *[0-9a-f]*: f8 0c 16 1f lsr r12,r12,0x1f
48951 + *[0-9a-f]*: ea 05 16 10 lsr r5,r5,0x10
48952 + *[0-9a-f]*: e8 04 16 0f lsr r4,r4,0xf
48953 + *[0-9a-f]*: fc 0e 16 01 lsr lr,lr,0x1
48954 + *[0-9a-f]*: e6 04 16 1f lsr r4,r3,0x1f
48955 + *[0-9a-f]*: f2 0f 16 0e lsr pc,r9,0xe
48956 + *[0-9a-f]*: e0 03 16 06 lsr r3,r0,0x6
48957 +
48958 +[0-9a-f]* <movc1>:
48959 + *[0-9a-f]*: fe 0f 17 00 moveq pc,pc
48960 + *[0-9a-f]*: f8 0c 17 f0 moval r12,r12
48961 + *[0-9a-f]*: ea 05 17 80 movls r5,r5
48962 + *[0-9a-f]*: e8 04 17 70 movpl r4,r4
48963 + *[0-9a-f]*: fc 0e 17 10 movne lr,lr
48964 + *[0-9a-f]*: f6 0f 17 10 movne pc,r11
48965 + *[0-9a-f]*: e4 0a 17 60 movmi r10,r2
48966 + *[0-9a-f]*: f8 08 17 80 movls r8,r12
48967 +
48968 +[0-9a-f]* <padd_h>:
48969 + *[0-9a-f]*: fe 0f 20 0f padd\.h pc,pc,pc
48970 + *[0-9a-f]*: f8 0c 20 0c padd\.h r12,r12,r12
48971 + *[0-9a-f]*: ea 05 20 05 padd\.h r5,r5,r5
48972 + *[0-9a-f]*: e8 04 20 04 padd\.h r4,r4,r4
48973 + *[0-9a-f]*: fc 0e 20 0e padd\.h lr,lr,lr
48974 + *[0-9a-f]*: e4 07 20 08 padd\.h r8,r2,r7
48975 + *[0-9a-f]*: e0 03 20 00 padd\.h r0,r0,r3
48976 + *[0-9a-f]*: f6 06 20 0d padd\.h sp,r11,r6
48977 +
48978 +[0-9a-f]* <psub_h>:
48979 + *[0-9a-f]*: fe 0f 20 1f psub\.h pc,pc,pc
48980 + *[0-9a-f]*: f8 0c 20 1c psub\.h r12,r12,r12
48981 + *[0-9a-f]*: ea 05 20 15 psub\.h r5,r5,r5
48982 + *[0-9a-f]*: e8 04 20 14 psub\.h r4,r4,r4
48983 + *[0-9a-f]*: fc 0e 20 1e psub\.h lr,lr,lr
48984 + *[0-9a-f]*: ec 08 20 1e psub\.h lr,r6,r8
48985 + *[0-9a-f]*: e2 0d 20 10 psub\.h r0,r1,sp
48986 + *[0-9a-f]*: fe 0d 20 1f psub\.h pc,pc,sp
48987 +
48988 +[0-9a-f]* <paddx_h>:
48989 + *[0-9a-f]*: fe 0f 20 2f paddx\.h pc,pc,pc
48990 + *[0-9a-f]*: f8 0c 20 2c paddx\.h r12,r12,r12
48991 + *[0-9a-f]*: ea 05 20 25 paddx\.h r5,r5,r5
48992 + *[0-9a-f]*: e8 04 20 24 paddx\.h r4,r4,r4
48993 + *[0-9a-f]*: fc 0e 20 2e paddx\.h lr,lr,lr
48994 + *[0-9a-f]*: fe 01 20 2f paddx\.h pc,pc,r1
48995 + *[0-9a-f]*: e8 05 20 2a paddx\.h r10,r4,r5
48996 + *[0-9a-f]*: fe 02 20 25 paddx\.h r5,pc,r2
48997 +
48998 +[0-9a-f]* <psubx_h>:
48999 + *[0-9a-f]*: fe 0f 20 3f psubx\.h pc,pc,pc
49000 + *[0-9a-f]*: f8 0c 20 3c psubx\.h r12,r12,r12
49001 + *[0-9a-f]*: ea 05 20 35 psubx\.h r5,r5,r5
49002 + *[0-9a-f]*: e8 04 20 34 psubx\.h r4,r4,r4
49003 + *[0-9a-f]*: fc 0e 20 3e psubx\.h lr,lr,lr
49004 + *[0-9a-f]*: f8 05 20 35 psubx\.h r5,r12,r5
49005 + *[0-9a-f]*: f0 03 20 33 psubx\.h r3,r8,r3
49006 + *[0-9a-f]*: e4 03 20 35 psubx\.h r5,r2,r3
49007 +
49008 +[0-9a-f]* <padds_sh>:
49009 + *[0-9a-f]*: fe 0f 20 4f padds\.sh pc,pc,pc
49010 + *[0-9a-f]*: f8 0c 20 4c padds\.sh r12,r12,r12
49011 + *[0-9a-f]*: ea 05 20 45 padds\.sh r5,r5,r5
49012 + *[0-9a-f]*: e8 04 20 44 padds\.sh r4,r4,r4
49013 + *[0-9a-f]*: fc 0e 20 4e padds\.sh lr,lr,lr
49014 + *[0-9a-f]*: fc 02 20 49 padds\.sh r9,lr,r2
49015 + *[0-9a-f]*: f0 01 20 46 padds\.sh r6,r8,r1
49016 + *[0-9a-f]*: e8 0a 20 46 padds\.sh r6,r4,r10
49017 +
49018 +[0-9a-f]* <psubs_sh>:
49019 + *[0-9a-f]*: fe 0f 20 5f psubs\.sh pc,pc,pc
49020 + *[0-9a-f]*: f8 0c 20 5c psubs\.sh r12,r12,r12
49021 + *[0-9a-f]*: ea 05 20 55 psubs\.sh r5,r5,r5
49022 + *[0-9a-f]*: e8 04 20 54 psubs\.sh r4,r4,r4
49023 + *[0-9a-f]*: fc 0e 20 5e psubs\.sh lr,lr,lr
49024 + *[0-9a-f]*: fc 0b 20 56 psubs\.sh r6,lr,r11
49025 + *[0-9a-f]*: f8 04 20 52 psubs\.sh r2,r12,r4
49026 + *[0-9a-f]*: f2 00 20 50 psubs\.sh r0,r9,r0
49027 +
49028 +[0-9a-f]* <paddxs_sh>:
49029 + *[0-9a-f]*: fe 0f 20 6f paddxs\.sh pc,pc,pc
49030 + *[0-9a-f]*: f8 0c 20 6c paddxs\.sh r12,r12,r12
49031 + *[0-9a-f]*: ea 05 20 65 paddxs\.sh r5,r5,r5
49032 + *[0-9a-f]*: e8 04 20 64 paddxs\.sh r4,r4,r4
49033 + *[0-9a-f]*: fc 0e 20 6e paddxs\.sh lr,lr,lr
49034 + *[0-9a-f]*: e6 09 20 60 paddxs\.sh r0,r3,r9
49035 + *[0-9a-f]*: f4 0b 20 6f paddxs\.sh pc,r10,r11
49036 + *[0-9a-f]*: f4 0f 20 6f paddxs\.sh pc,r10,pc
49037 +
49038 +[0-9a-f]* <psubxs_sh>:
49039 + *[0-9a-f]*: fe 0f 20 7f psubxs\.sh pc,pc,pc
49040 + *[0-9a-f]*: f8 0c 20 7c psubxs\.sh r12,r12,r12
49041 + *[0-9a-f]*: ea 05 20 75 psubxs\.sh r5,r5,r5
49042 + *[0-9a-f]*: e8 04 20 74 psubxs\.sh r4,r4,r4
49043 + *[0-9a-f]*: fc 0e 20 7e psubxs\.sh lr,lr,lr
49044 + *[0-9a-f]*: e8 04 20 77 psubxs\.sh r7,r4,r4
49045 + *[0-9a-f]*: f0 03 20 77 psubxs\.sh r7,r8,r3
49046 + *[0-9a-f]*: ec 05 20 7f psubxs\.sh pc,r6,r5
49047 +
49048 +[0-9a-f]* <padds_uh>:
49049 + *[0-9a-f]*: fe 0f 20 8f padds\.uh pc,pc,pc
49050 + *[0-9a-f]*: f8 0c 20 8c padds\.uh r12,r12,r12
49051 + *[0-9a-f]*: ea 05 20 85 padds\.uh r5,r5,r5
49052 + *[0-9a-f]*: e8 04 20 84 padds\.uh r4,r4,r4
49053 + *[0-9a-f]*: fc 0e 20 8e padds\.uh lr,lr,lr
49054 + *[0-9a-f]*: f6 07 20 8c padds\.uh r12,r11,r7
49055 + *[0-9a-f]*: f0 0e 20 87 padds\.uh r7,r8,lr
49056 + *[0-9a-f]*: f2 07 20 86 padds\.uh r6,r9,r7
49057 +
49058 +[0-9a-f]* <psubs_uh>:
49059 + *[0-9a-f]*: fe 0f 20 9f psubs\.uh pc,pc,pc
49060 + *[0-9a-f]*: f8 0c 20 9c psubs\.uh r12,r12,r12
49061 + *[0-9a-f]*: ea 05 20 95 psubs\.uh r5,r5,r5
49062 + *[0-9a-f]*: e8 04 20 94 psubs\.uh r4,r4,r4
49063 + *[0-9a-f]*: fc 0e 20 9e psubs\.uh lr,lr,lr
49064 + *[0-9a-f]*: f4 06 20 9e psubs\.uh lr,r10,r6
49065 + *[0-9a-f]*: e4 0f 20 9d psubs\.uh sp,r2,pc
49066 + *[0-9a-f]*: f2 02 20 92 psubs\.uh r2,r9,r2
49067 +
49068 +[0-9a-f]* <paddxs_uh>:
49069 + *[0-9a-f]*: fe 0f 20 af paddxs\.uh pc,pc,pc
49070 + *[0-9a-f]*: f8 0c 20 ac paddxs\.uh r12,r12,r12
49071 + *[0-9a-f]*: ea 05 20 a5 paddxs\.uh r5,r5,r5
49072 + *[0-9a-f]*: e8 04 20 a4 paddxs\.uh r4,r4,r4
49073 + *[0-9a-f]*: fc 0e 20 ae paddxs\.uh lr,lr,lr
49074 + *[0-9a-f]*: f2 05 20 a7 paddxs\.uh r7,r9,r5
49075 + *[0-9a-f]*: e2 04 20 a9 paddxs\.uh r9,r1,r4
49076 + *[0-9a-f]*: e4 03 20 a5 paddxs\.uh r5,r2,r3
49077 +
49078 +[0-9a-f]* <psubxs_uh>:
49079 + *[0-9a-f]*: fe 0f 20 bf psubxs\.uh pc,pc,pc
49080 + *[0-9a-f]*: f8 0c 20 bc psubxs\.uh r12,r12,r12
49081 + *[0-9a-f]*: ea 05 20 b5 psubxs\.uh r5,r5,r5
49082 + *[0-9a-f]*: e8 04 20 b4 psubxs\.uh r4,r4,r4
49083 + *[0-9a-f]*: fc 0e 20 be psubxs\.uh lr,lr,lr
49084 + *[0-9a-f]*: ea 0d 20 bd psubxs\.uh sp,r5,sp
49085 + *[0-9a-f]*: ec 06 20 bd psubxs\.uh sp,r6,r6
49086 + *[0-9a-f]*: f6 08 20 b3 psubxs\.uh r3,r11,r8
49087 +
49088 +[0-9a-f]* <paddh_sh>:
49089 + *[0-9a-f]*: fe 0f 20 cf paddh\.sh pc,pc,pc
49090 + *[0-9a-f]*: f8 0c 20 cc paddh\.sh r12,r12,r12
49091 + *[0-9a-f]*: ea 05 20 c5 paddh\.sh r5,r5,r5
49092 + *[0-9a-f]*: e8 04 20 c4 paddh\.sh r4,r4,r4
49093 + *[0-9a-f]*: fc 0e 20 ce paddh\.sh lr,lr,lr
49094 + *[0-9a-f]*: fa 03 20 cc paddh\.sh r12,sp,r3
49095 + *[0-9a-f]*: ea 03 20 cf paddh\.sh pc,r5,r3
49096 + *[0-9a-f]*: f0 0d 20 c8 paddh\.sh r8,r8,sp
49097 +
49098 +[0-9a-f]* <psubh_sh>:
49099 + *[0-9a-f]*: fe 0f 20 df psubh\.sh pc,pc,pc
49100 + *[0-9a-f]*: f8 0c 20 dc psubh\.sh r12,r12,r12
49101 + *[0-9a-f]*: ea 05 20 d5 psubh\.sh r5,r5,r5
49102 + *[0-9a-f]*: e8 04 20 d4 psubh\.sh r4,r4,r4
49103 + *[0-9a-f]*: fc 0e 20 de psubh\.sh lr,lr,lr
49104 + *[0-9a-f]*: ea 08 20 d1 psubh\.sh r1,r5,r8
49105 + *[0-9a-f]*: e6 06 20 d7 psubh\.sh r7,r3,r6
49106 + *[0-9a-f]*: e6 03 20 d4 psubh\.sh r4,r3,r3
49107 +
49108 +[0-9a-f]* <paddxh_sh>:
49109 + *[0-9a-f]*: fe 0f 20 ef paddxh\.sh pc,pc,pc
49110 + *[0-9a-f]*: f8 0c 20 ec paddxh\.sh r12,r12,r12
49111 + *[0-9a-f]*: ea 05 20 e5 paddxh\.sh r5,r5,r5
49112 + *[0-9a-f]*: e8 04 20 e4 paddxh\.sh r4,r4,r4
49113 + *[0-9a-f]*: fc 0e 20 ee paddxh\.sh lr,lr,lr
49114 + *[0-9a-f]*: e0 04 20 e6 paddxh\.sh r6,r0,r4
49115 + *[0-9a-f]*: f0 09 20 e9 paddxh\.sh r9,r8,r9
49116 + *[0-9a-f]*: e0 0d 20 e3 paddxh\.sh r3,r0,sp
49117 +
49118 +[0-9a-f]* <psubxh_sh>:
49119 + *[0-9a-f]*: fe 0f 20 ff psubxh\.sh pc,pc,pc
49120 + *[0-9a-f]*: f8 0c 20 fc psubxh\.sh r12,r12,r12
49121 + *[0-9a-f]*: ea 05 20 f5 psubxh\.sh r5,r5,r5
49122 + *[0-9a-f]*: e8 04 20 f4 psubxh\.sh r4,r4,r4
49123 + *[0-9a-f]*: fc 0e 20 fe psubxh\.sh lr,lr,lr
49124 + *[0-9a-f]*: fe 0c 20 f4 psubxh\.sh r4,pc,r12
49125 + *[0-9a-f]*: e8 06 20 f8 psubxh\.sh r8,r4,r6
49126 + *[0-9a-f]*: f2 04 20 fc psubxh\.sh r12,r9,r4
49127 +
49128 +[0-9a-f]* <paddsub_h>:
49129 + *[0-9a-f]*: fe 0f 21 0f paddsub\.h pc,pc:b,pc:b
49130 + *[0-9a-f]*: f8 0c 21 3c paddsub\.h r12,r12:t,r12:t
49131 + *[0-9a-f]*: ea 05 21 35 paddsub\.h r5,r5:t,r5:t
49132 + *[0-9a-f]*: e8 04 21 04 paddsub\.h r4,r4:b,r4:b
49133 + *[0-9a-f]*: fc 0e 21 3e paddsub\.h lr,lr:t,lr:t
49134 + *[0-9a-f]*: e4 0e 21 25 paddsub\.h r5,r2:t,lr:b
49135 + *[0-9a-f]*: e2 08 21 07 paddsub\.h r7,r1:b,r8:b
49136 + *[0-9a-f]*: f4 05 21 36 paddsub\.h r6,r10:t,r5:t
49137 +
49138 +[0-9a-f]* <psubadd_h>:
49139 + *[0-9a-f]*: fe 0f 21 4f psubadd\.h pc,pc:b,pc:b
49140 + *[0-9a-f]*: f8 0c 21 7c psubadd\.h r12,r12:t,r12:t
49141 + *[0-9a-f]*: ea 05 21 75 psubadd\.h r5,r5:t,r5:t
49142 + *[0-9a-f]*: e8 04 21 44 psubadd\.h r4,r4:b,r4:b
49143 + *[0-9a-f]*: fc 0e 21 7e psubadd\.h lr,lr:t,lr:t
49144 + *[0-9a-f]*: f6 08 21 79 psubadd\.h r9,r11:t,r8:t
49145 + *[0-9a-f]*: ee 0e 21 7a psubadd\.h r10,r7:t,lr:t
49146 + *[0-9a-f]*: fe 0f 21 66 psubadd\.h r6,pc:t,pc:b
49147 +
49148 +[0-9a-f]* <paddsubs_sh>:
49149 + *[0-9a-f]*: fe 0f 21 8f paddsubs\.sh pc,pc:b,pc:b
49150 + *[0-9a-f]*: f8 0c 21 bc paddsubs\.sh r12,r12:t,r12:t
49151 + *[0-9a-f]*: ea 05 21 b5 paddsubs\.sh r5,r5:t,r5:t
49152 + *[0-9a-f]*: e8 04 21 84 paddsubs\.sh r4,r4:b,r4:b
49153 + *[0-9a-f]*: fc 0e 21 be paddsubs\.sh lr,lr:t,lr:t
49154 + *[0-9a-f]*: fc 00 21 a0 paddsubs\.sh r0,lr:t,r0:b
49155 + *[0-9a-f]*: e4 04 21 b9 paddsubs\.sh r9,r2:t,r4:t
49156 + *[0-9a-f]*: f2 0d 21 bc paddsubs\.sh r12,r9:t,sp:t
49157 +
49158 +[0-9a-f]* <psubadds_sh>:
49159 + *[0-9a-f]*: fe 0f 21 cf psubadds\.sh pc,pc:b,pc:b
49160 + *[0-9a-f]*: f8 0c 21 fc psubadds\.sh r12,r12:t,r12:t
49161 + *[0-9a-f]*: ea 05 21 f5 psubadds\.sh r5,r5:t,r5:t
49162 + *[0-9a-f]*: e8 04 21 c4 psubadds\.sh r4,r4:b,r4:b
49163 + *[0-9a-f]*: fc 0e 21 fe psubadds\.sh lr,lr:t,lr:t
49164 + *[0-9a-f]*: fc 01 21 df psubadds\.sh pc,lr:b,r1:t
49165 + *[0-9a-f]*: e6 0c 21 cb psubadds\.sh r11,r3:b,r12:b
49166 + *[0-9a-f]*: e4 08 21 fa psubadds\.sh r10,r2:t,r8:t
49167 +
49168 +[0-9a-f]* <paddsubs_uh>:
49169 + *[0-9a-f]*: fe 0f 22 0f paddsubs\.uh pc,pc:b,pc:b
49170 + *[0-9a-f]*: f8 0c 22 3c paddsubs\.uh r12,r12:t,r12:t
49171 + *[0-9a-f]*: ea 05 22 35 paddsubs\.uh r5,r5:t,r5:t
49172 + *[0-9a-f]*: e8 04 22 04 paddsubs\.uh r4,r4:b,r4:b
49173 + *[0-9a-f]*: fc 0e 22 3e paddsubs\.uh lr,lr:t,lr:t
49174 + *[0-9a-f]*: e4 03 22 09 paddsubs\.uh r9,r2:b,r3:b
49175 + *[0-9a-f]*: fa 07 22 1d paddsubs\.uh sp,sp:b,r7:t
49176 + *[0-9a-f]*: e0 0a 22 1e paddsubs\.uh lr,r0:b,r10:t
49177 +
49178 +[0-9a-f]* <psubadds_uh>:
49179 + *[0-9a-f]*: fe 0f 22 4f psubadds\.uh pc,pc:b,pc:b
49180 + *[0-9a-f]*: f8 0c 22 7c psubadds\.uh r12,r12:t,r12:t
49181 + *[0-9a-f]*: ea 05 22 75 psubadds\.uh r5,r5:t,r5:t
49182 + *[0-9a-f]*: e8 04 22 44 psubadds\.uh r4,r4:b,r4:b
49183 + *[0-9a-f]*: fc 0e 22 7e psubadds\.uh lr,lr:t,lr:t
49184 + *[0-9a-f]*: f2 0f 22 7c psubadds\.uh r12,r9:t,pc:t
49185 + *[0-9a-f]*: ec 08 22 48 psubadds\.uh r8,r6:b,r8:b
49186 + *[0-9a-f]*: f0 04 22 48 psubadds\.uh r8,r8:b,r4:b
49187 +
49188 +[0-9a-f]* <paddsubh_sh>:
49189 + *[0-9a-f]*: fe 0f 22 8f paddsubh\.sh pc,pc:b,pc:b
49190 + *[0-9a-f]*: f8 0c 22 bc paddsubh\.sh r12,r12:t,r12:t
49191 + *[0-9a-f]*: ea 05 22 b5 paddsubh\.sh r5,r5:t,r5:t
49192 + *[0-9a-f]*: e8 04 22 84 paddsubh\.sh r4,r4:b,r4:b
49193 + *[0-9a-f]*: fc 0e 22 be paddsubh\.sh lr,lr:t,lr:t
49194 + *[0-9a-f]*: f2 09 22 a8 paddsubh\.sh r8,r9:t,r9:b
49195 + *[0-9a-f]*: fa 01 22 b0 paddsubh\.sh r0,sp:t,r1:t
49196 + *[0-9a-f]*: e2 00 22 93 paddsubh\.sh r3,r1:b,r0:t
49197 +
49198 +[0-9a-f]* <psubaddh_sh>:
49199 + *[0-9a-f]*: fe 0f 22 cf psubaddh\.sh pc,pc:b,pc:b
49200 + *[0-9a-f]*: f8 0c 22 fc psubaddh\.sh r12,r12:t,r12:t
49201 + *[0-9a-f]*: ea 05 22 f5 psubaddh\.sh r5,r5:t,r5:t
49202 + *[0-9a-f]*: e8 04 22 c4 psubaddh\.sh r4,r4:b,r4:b
49203 + *[0-9a-f]*: fc 0e 22 fe psubaddh\.sh lr,lr:t,lr:t
49204 + *[0-9a-f]*: e6 0a 22 e7 psubaddh\.sh r7,r3:t,r10:b
49205 + *[0-9a-f]*: e4 01 22 f7 psubaddh\.sh r7,r2:t,r1:t
49206 + *[0-9a-f]*: e6 06 22 cb psubaddh\.sh r11,r3:b,r6:b
49207 +
49208 +[0-9a-f]* <padd_b>:
49209 + *[0-9a-f]*: fe 0f 23 0f padd\.b pc,pc,pc
49210 + *[0-9a-f]*: f8 0c 23 0c padd\.b r12,r12,r12
49211 + *[0-9a-f]*: ea 05 23 05 padd\.b r5,r5,r5
49212 + *[0-9a-f]*: e8 04 23 04 padd\.b r4,r4,r4
49213 + *[0-9a-f]*: fc 0e 23 0e padd\.b lr,lr,lr
49214 + *[0-9a-f]*: ec 0f 23 02 padd\.b r2,r6,pc
49215 + *[0-9a-f]*: f2 0c 23 08 padd\.b r8,r9,r12
49216 + *[0-9a-f]*: f8 03 23 05 padd\.b r5,r12,r3
49217 +
49218 +[0-9a-f]* <psub_b>:
49219 + *[0-9a-f]*: fe 0f 23 1f psub\.b pc,pc,pc
49220 + *[0-9a-f]*: f8 0c 23 1c psub\.b r12,r12,r12
49221 + *[0-9a-f]*: ea 05 23 15 psub\.b r5,r5,r5
49222 + *[0-9a-f]*: e8 04 23 14 psub\.b r4,r4,r4
49223 + *[0-9a-f]*: fc 0e 23 1e psub\.b lr,lr,lr
49224 + *[0-9a-f]*: f8 0f 23 10 psub\.b r0,r12,pc
49225 + *[0-9a-f]*: fa 0a 23 17 psub\.b r7,sp,r10
49226 + *[0-9a-f]*: fa 0c 23 15 psub\.b r5,sp,r12
49227 +
49228 +[0-9a-f]* <padds_sb>:
49229 + *[0-9a-f]*: fe 0f 23 2f padds\.sb pc,pc,pc
49230 + *[0-9a-f]*: f8 0c 23 2c padds\.sb r12,r12,r12
49231 + *[0-9a-f]*: ea 05 23 25 padds\.sb r5,r5,r5
49232 + *[0-9a-f]*: e8 04 23 24 padds\.sb r4,r4,r4
49233 + *[0-9a-f]*: fc 0e 23 2e padds\.sb lr,lr,lr
49234 + *[0-9a-f]*: f6 04 23 2d padds\.sb sp,r11,r4
49235 + *[0-9a-f]*: f4 0b 23 2b padds\.sb r11,r10,r11
49236 + *[0-9a-f]*: f8 06 23 25 padds\.sb r5,r12,r6
49237 +
49238 +[0-9a-f]* <psubs_sb>:
49239 + *[0-9a-f]*: fe 0f 23 3f psubs\.sb pc,pc,pc
49240 + *[0-9a-f]*: f8 0c 23 3c psubs\.sb r12,r12,r12
49241 + *[0-9a-f]*: ea 05 23 35 psubs\.sb r5,r5,r5
49242 + *[0-9a-f]*: e8 04 23 34 psubs\.sb r4,r4,r4
49243 + *[0-9a-f]*: fc 0e 23 3e psubs\.sb lr,lr,lr
49244 + *[0-9a-f]*: ec 08 23 37 psubs\.sb r7,r6,r8
49245 + *[0-9a-f]*: f4 09 23 3c psubs\.sb r12,r10,r9
49246 + *[0-9a-f]*: f6 00 23 3f psubs\.sb pc,r11,r0
49247 +
49248 +[0-9a-f]* <padds_ub>:
49249 + *[0-9a-f]*: fe 0f 23 4f padds\.ub pc,pc,pc
49250 + *[0-9a-f]*: f8 0c 23 4c padds\.ub r12,r12,r12
49251 + *[0-9a-f]*: ea 05 23 45 padds\.ub r5,r5,r5
49252 + *[0-9a-f]*: e8 04 23 44 padds\.ub r4,r4,r4
49253 + *[0-9a-f]*: fc 0e 23 4e padds\.ub lr,lr,lr
49254 + *[0-9a-f]*: e4 0b 23 43 padds\.ub r3,r2,r11
49255 + *[0-9a-f]*: f0 01 23 4a padds\.ub r10,r8,r1
49256 + *[0-9a-f]*: f0 0a 23 4b padds\.ub r11,r8,r10
49257 +
49258 +[0-9a-f]* <psubs_ub>:
49259 + *[0-9a-f]*: fe 0f 23 5f psubs\.ub pc,pc,pc
49260 + *[0-9a-f]*: f8 0c 23 5c psubs\.ub r12,r12,r12
49261 + *[0-9a-f]*: ea 05 23 55 psubs\.ub r5,r5,r5
49262 + *[0-9a-f]*: e8 04 23 54 psubs\.ub r4,r4,r4
49263 + *[0-9a-f]*: fc 0e 23 5e psubs\.ub lr,lr,lr
49264 + *[0-9a-f]*: e4 07 23 50 psubs\.ub r0,r2,r7
49265 + *[0-9a-f]*: ea 03 23 5e psubs\.ub lr,r5,r3
49266 + *[0-9a-f]*: ee 09 23 56 psubs\.ub r6,r7,r9
49267 +
49268 +[0-9a-f]* <paddh_ub>:
49269 + *[0-9a-f]*: fe 0f 23 6f paddh\.ub pc,pc,pc
49270 + *[0-9a-f]*: f8 0c 23 6c paddh\.ub r12,r12,r12
49271 + *[0-9a-f]*: ea 05 23 65 paddh\.ub r5,r5,r5
49272 + *[0-9a-f]*: e8 04 23 64 paddh\.ub r4,r4,r4
49273 + *[0-9a-f]*: fc 0e 23 6e paddh\.ub lr,lr,lr
49274 + *[0-9a-f]*: e2 00 23 6e paddh\.ub lr,r1,r0
49275 + *[0-9a-f]*: ee 07 23 62 paddh\.ub r2,r7,r7
49276 + *[0-9a-f]*: e2 02 23 62 paddh\.ub r2,r1,r2
49277 +
49278 +[0-9a-f]* <psubh_ub>:
49279 + *[0-9a-f]*: fe 0f 23 7f psubh\.ub pc,pc,pc
49280 + *[0-9a-f]*: f8 0c 23 7c psubh\.ub r12,r12,r12
49281 + *[0-9a-f]*: ea 05 23 75 psubh\.ub r5,r5,r5
49282 + *[0-9a-f]*: e8 04 23 74 psubh\.ub r4,r4,r4
49283 + *[0-9a-f]*: fc 0e 23 7e psubh\.ub lr,lr,lr
49284 + *[0-9a-f]*: e2 06 23 70 psubh\.ub r0,r1,r6
49285 + *[0-9a-f]*: fc 0a 23 74 psubh\.ub r4,lr,r10
49286 + *[0-9a-f]*: f0 01 23 79 psubh\.ub r9,r8,r1
49287 +
49288 +[0-9a-f]* <pmax_ub>:
49289 + *[0-9a-f]*: fe 0f 23 8f pmax\.ub pc,pc,pc
49290 + *[0-9a-f]*: f8 0c 23 8c pmax\.ub r12,r12,r12
49291 + *[0-9a-f]*: ea 05 23 85 pmax\.ub r5,r5,r5
49292 + *[0-9a-f]*: e8 04 23 84 pmax\.ub r4,r4,r4
49293 + *[0-9a-f]*: fc 0e 23 8e pmax\.ub lr,lr,lr
49294 + *[0-9a-f]*: e4 0b 23 8f pmax\.ub pc,r2,r11
49295 + *[0-9a-f]*: e2 01 23 8c pmax\.ub r12,r1,r1
49296 + *[0-9a-f]*: e4 00 23 85 pmax\.ub r5,r2,r0
49297 +
49298 +[0-9a-f]* <pmax_sh>:
49299 + *[0-9a-f]*: fe 0f 23 9f pmax\.sh pc,pc,pc
49300 + *[0-9a-f]*: f8 0c 23 9c pmax\.sh r12,r12,r12
49301 + *[0-9a-f]*: ea 05 23 95 pmax\.sh r5,r5,r5
49302 + *[0-9a-f]*: e8 04 23 94 pmax\.sh r4,r4,r4
49303 + *[0-9a-f]*: fc 0e 23 9e pmax\.sh lr,lr,lr
49304 + *[0-9a-f]*: ec 0c 23 9e pmax\.sh lr,r6,r12
49305 + *[0-9a-f]*: fe 05 23 92 pmax\.sh r2,pc,r5
49306 + *[0-9a-f]*: e4 07 23 9f pmax\.sh pc,r2,r7
49307 +
49308 +[0-9a-f]* <pmin_ub>:
49309 + *[0-9a-f]*: fe 0f 23 af pmin\.ub pc,pc,pc
49310 + *[0-9a-f]*: f8 0c 23 ac pmin\.ub r12,r12,r12
49311 + *[0-9a-f]*: ea 05 23 a5 pmin\.ub r5,r5,r5
49312 + *[0-9a-f]*: e8 04 23 a4 pmin\.ub r4,r4,r4
49313 + *[0-9a-f]*: fc 0e 23 ae pmin\.ub lr,lr,lr
49314 + *[0-9a-f]*: e2 05 23 a8 pmin\.ub r8,r1,r5
49315 + *[0-9a-f]*: f0 03 23 a1 pmin\.ub r1,r8,r3
49316 + *[0-9a-f]*: e4 07 23 a0 pmin\.ub r0,r2,r7
49317 +
49318 +[0-9a-f]* <pmin_sh>:
49319 + *[0-9a-f]*: fe 0f 23 bf pmin\.sh pc,pc,pc
49320 + *[0-9a-f]*: f8 0c 23 bc pmin\.sh r12,r12,r12
49321 + *[0-9a-f]*: ea 05 23 b5 pmin\.sh r5,r5,r5
49322 + *[0-9a-f]*: e8 04 23 b4 pmin\.sh r4,r4,r4
49323 + *[0-9a-f]*: fc 0e 23 be pmin\.sh lr,lr,lr
49324 + *[0-9a-f]*: e8 0a 23 b8 pmin\.sh r8,r4,r10
49325 + *[0-9a-f]*: f4 0c 23 be pmin\.sh lr,r10,r12
49326 + *[0-9a-f]*: ec 02 23 b2 pmin\.sh r2,r6,r2
49327 +
49328 +[0-9a-f]* <pavg_ub>:
49329 + *[0-9a-f]*: fe 0f 23 cf pavg\.ub pc,pc,pc
49330 + *[0-9a-f]*: f8 0c 23 cc pavg\.ub r12,r12,r12
49331 + *[0-9a-f]*: ea 05 23 c5 pavg\.ub r5,r5,r5
49332 + *[0-9a-f]*: e8 04 23 c4 pavg\.ub r4,r4,r4
49333 + *[0-9a-f]*: fc 0e 23 ce pavg\.ub lr,lr,lr
49334 + *[0-9a-f]*: e2 06 23 c0 pavg\.ub r0,r1,r6
49335 + *[0-9a-f]*: e6 06 23 c8 pavg\.ub r8,r3,r6
49336 + *[0-9a-f]*: f8 0a 23 cf pavg\.ub pc,r12,r10
49337 +
49338 +[0-9a-f]* <pavg_sh>:
49339 + *[0-9a-f]*: fe 0f 23 df pavg\.sh pc,pc,pc
49340 + *[0-9a-f]*: f8 0c 23 dc pavg\.sh r12,r12,r12
49341 + *[0-9a-f]*: ea 05 23 d5 pavg\.sh r5,r5,r5
49342 + *[0-9a-f]*: e8 04 23 d4 pavg\.sh r4,r4,r4
49343 + *[0-9a-f]*: fc 0e 23 de pavg\.sh lr,lr,lr
49344 + *[0-9a-f]*: fe 0d 23 d9 pavg\.sh r9,pc,sp
49345 + *[0-9a-f]*: fa 03 23 df pavg\.sh pc,sp,r3
49346 + *[0-9a-f]*: e2 09 23 d6 pavg\.sh r6,r1,r9
49347 +
49348 +[0-9a-f]* <pabs_sb>:
49349 + *[0-9a-f]*: e0 0f 23 ef pabs\.sb pc,pc
49350 + *[0-9a-f]*: e0 0c 23 ec pabs\.sb r12,r12
49351 + *[0-9a-f]*: e0 05 23 e5 pabs\.sb r5,r5
49352 + *[0-9a-f]*: e0 04 23 e4 pabs\.sb r4,r4
49353 + *[0-9a-f]*: e0 0e 23 ee pabs\.sb lr,lr
49354 + *[0-9a-f]*: e0 06 23 eb pabs\.sb r11,r6
49355 + *[0-9a-f]*: e0 09 23 ee pabs\.sb lr,r9
49356 + *[0-9a-f]*: e0 07 23 ed pabs\.sb sp,r7
49357 +
49358 +[0-9a-f]* <pabs_sh>:
49359 + *[0-9a-f]*: e0 0f 23 ff pabs\.sh pc,pc
49360 + *[0-9a-f]*: e0 0c 23 fc pabs\.sh r12,r12
49361 + *[0-9a-f]*: e0 05 23 f5 pabs\.sh r5,r5
49362 + *[0-9a-f]*: e0 04 23 f4 pabs\.sh r4,r4
49363 + *[0-9a-f]*: e0 0e 23 fe pabs\.sh lr,lr
49364 + *[0-9a-f]*: e0 03 23 ff pabs\.sh pc,r3
49365 + *[0-9a-f]*: e0 07 23 f5 pabs\.sh r5,r7
49366 + *[0-9a-f]*: e0 00 23 f4 pabs\.sh r4,r0
49367 +
49368 +[0-9a-f]* <psad>:
49369 + *[0-9a-f]*: fe 0f 24 0f psad pc,pc,pc
49370 + *[0-9a-f]*: f8 0c 24 0c psad r12,r12,r12
49371 + *[0-9a-f]*: ea 05 24 05 psad r5,r5,r5
49372 + *[0-9a-f]*: e8 04 24 04 psad r4,r4,r4
49373 + *[0-9a-f]*: fc 0e 24 0e psad lr,lr,lr
49374 + *[0-9a-f]*: f6 0b 24 09 psad r9,r11,r11
49375 + *[0-9a-f]*: e8 0d 24 0e psad lr,r4,sp
49376 + *[0-9a-f]*: e8 05 24 0e psad lr,r4,r5
49377 +
49378 +[0-9a-f]* <pasr_b>:
49379 + *[0-9a-f]*: fe 00 24 1f pasr\.b pc,pc,0x0
49380 + *[0-9a-f]*: f8 07 24 1c pasr\.b r12,r12,0x7
49381 + *[0-9a-f]*: ea 04 24 15 pasr\.b r5,r5,0x4
49382 + *[0-9a-f]*: e8 03 24 14 pasr\.b r4,r4,0x3
49383 + *[0-9a-f]*: fc 01 24 1e pasr\.b lr,lr,0x1
49384 + *[0-9a-f]*: ee 01 24 1f pasr\.b pc,r7,0x1
49385 + *[0-9a-f]*: fc 06 24 1d pasr\.b sp,lr,0x6
49386 + *[0-9a-f]*: e6 02 24 1d pasr\.b sp,r3,0x2
49387 +
49388 +[0-9a-f]* <plsl_b>:
49389 + *[0-9a-f]*: fe 00 24 2f plsl\.b pc,pc,0x0
49390 + *[0-9a-f]*: f8 07 24 2c plsl\.b r12,r12,0x7
49391 + *[0-9a-f]*: ea 04 24 25 plsl\.b r5,r5,0x4
49392 + *[0-9a-f]*: e8 03 24 24 plsl\.b r4,r4,0x3
49393 + *[0-9a-f]*: fc 01 24 2e plsl\.b lr,lr,0x1
49394 + *[0-9a-f]*: f6 04 24 22 plsl\.b r2,r11,0x4
49395 + *[0-9a-f]*: ea 07 24 28 plsl\.b r8,r5,0x7
49396 + *[0-9a-f]*: e0 02 24 2f plsl\.b pc,r0,0x2
49397 +
49398 +[0-9a-f]* <plsr_b>:
49399 + *[0-9a-f]*: fe 00 24 3f plsr\.b pc,pc,0x0
49400 + *[0-9a-f]*: f8 07 24 3c plsr\.b r12,r12,0x7
49401 + *[0-9a-f]*: ea 04 24 35 plsr\.b r5,r5,0x4
49402 + *[0-9a-f]*: e8 03 24 34 plsr\.b r4,r4,0x3
49403 + *[0-9a-f]*: fc 01 24 3e plsr\.b lr,lr,0x1
49404 + *[0-9a-f]*: e2 02 24 3c plsr\.b r12,r1,0x2
49405 + *[0-9a-f]*: fe 07 24 36 plsr\.b r6,pc,0x7
49406 + *[0-9a-f]*: f6 02 24 3c plsr\.b r12,r11,0x2
49407 +
49408 +[0-9a-f]* <pasr_h>:
49409 + *[0-9a-f]*: fe 00 24 4f pasr\.h pc,pc,0x0
49410 + *[0-9a-f]*: f8 0f 24 4c pasr\.h r12,r12,0xf
49411 + *[0-9a-f]*: ea 08 24 45 pasr\.h r5,r5,0x8
49412 + *[0-9a-f]*: e8 07 24 44 pasr\.h r4,r4,0x7
49413 + *[0-9a-f]*: fc 01 24 4e pasr\.h lr,lr,0x1
49414 + *[0-9a-f]*: f6 0a 24 40 pasr\.h r0,r11,0xa
49415 + *[0-9a-f]*: ec 08 24 44 pasr\.h r4,r6,0x8
49416 + *[0-9a-f]*: e4 04 24 46 pasr\.h r6,r2,0x4
49417 +
49418 +[0-9a-f]* <plsl_h>:
49419 + *[0-9a-f]*: fe 00 24 5f plsl\.h pc,pc,0x0
49420 + *[0-9a-f]*: f8 0f 24 5c plsl\.h r12,r12,0xf
49421 + *[0-9a-f]*: ea 08 24 55 plsl\.h r5,r5,0x8
49422 + *[0-9a-f]*: e8 07 24 54 plsl\.h r4,r4,0x7
49423 + *[0-9a-f]*: fc 01 24 5e plsl\.h lr,lr,0x1
49424 + *[0-9a-f]*: f4 09 24 55 plsl\.h r5,r10,0x9
49425 + *[0-9a-f]*: fc 08 24 5d plsl\.h sp,lr,0x8
49426 + *[0-9a-f]*: fc 07 24 50 plsl\.h r0,lr,0x7
49427 +
49428 +[0-9a-f]* <plsr_h>:
49429 + *[0-9a-f]*: fe 00 24 6f plsr\.h pc,pc,0x0
49430 + *[0-9a-f]*: f8 0f 24 6c plsr\.h r12,r12,0xf
49431 + *[0-9a-f]*: ea 08 24 65 plsr\.h r5,r5,0x8
49432 + *[0-9a-f]*: e8 07 24 64 plsr\.h r4,r4,0x7
49433 + *[0-9a-f]*: fc 01 24 6e plsr\.h lr,lr,0x1
49434 + *[0-9a-f]*: e0 0f 24 6b plsr\.h r11,r0,0xf
49435 + *[0-9a-f]*: e6 03 24 6e plsr\.h lr,r3,0x3
49436 + *[0-9a-f]*: fc 0a 24 68 plsr\.h r8,lr,0xa
49437 +
49438 +[0-9a-f]* <packw_sh>:
49439 + *[0-9a-f]*: fe 0f 24 7f packw\.sh pc,pc,pc
49440 + *[0-9a-f]*: f8 0c 24 7c packw\.sh r12,r12,r12
49441 + *[0-9a-f]*: ea 05 24 75 packw\.sh r5,r5,r5
49442 + *[0-9a-f]*: e8 04 24 74 packw\.sh r4,r4,r4
49443 + *[0-9a-f]*: fc 0e 24 7e packw\.sh lr,lr,lr
49444 + *[0-9a-f]*: f6 0a 24 7d packw\.sh sp,r11,r10
49445 + *[0-9a-f]*: e4 0c 24 78 packw\.sh r8,r2,r12
49446 + *[0-9a-f]*: e2 05 24 78 packw\.sh r8,r1,r5
49447 +
49448 +[0-9a-f]* <punpckub_h>:
49449 + *[0-9a-f]*: fe 00 24 8f punpckub\.h pc,pc:b
49450 + *[0-9a-f]*: f8 00 24 9c punpckub\.h r12,r12:t
49451 + *[0-9a-f]*: ea 00 24 95 punpckub\.h r5,r5:t
49452 + *[0-9a-f]*: e8 00 24 84 punpckub\.h r4,r4:b
49453 + *[0-9a-f]*: fc 00 24 9e punpckub\.h lr,lr:t
49454 + *[0-9a-f]*: e2 00 24 96 punpckub\.h r6,r1:t
49455 + *[0-9a-f]*: ea 00 24 8e punpckub\.h lr,r5:b
49456 + *[0-9a-f]*: e4 00 24 9e punpckub\.h lr,r2:t
49457 +
49458 +[0-9a-f]* <punpcksb_h>:
49459 + *[0-9a-f]*: fe 00 24 af punpcksb\.h pc,pc:b
49460 + *[0-9a-f]*: f8 00 24 bc punpcksb\.h r12,r12:t
49461 + *[0-9a-f]*: ea 00 24 b5 punpcksb\.h r5,r5:t
49462 + *[0-9a-f]*: e8 00 24 a4 punpcksb\.h r4,r4:b
49463 + *[0-9a-f]*: fc 00 24 be punpcksb\.h lr,lr:t
49464 + *[0-9a-f]*: ee 00 24 b4 punpcksb\.h r4,r7:t
49465 + *[0-9a-f]*: fc 00 24 a6 punpcksb\.h r6,lr:b
49466 + *[0-9a-f]*: f8 00 24 bc punpcksb\.h r12,r12:t
49467 +
49468 +[0-9a-f]* <packsh_ub>:
49469 + *[0-9a-f]*: fe 0f 24 cf packsh\.ub pc,pc,pc
49470 + *[0-9a-f]*: f8 0c 24 cc packsh\.ub r12,r12,r12
49471 + *[0-9a-f]*: ea 05 24 c5 packsh\.ub r5,r5,r5
49472 + *[0-9a-f]*: e8 04 24 c4 packsh\.ub r4,r4,r4
49473 + *[0-9a-f]*: fc 0e 24 ce packsh\.ub lr,lr,lr
49474 + *[0-9a-f]*: ec 03 24 c3 packsh\.ub r3,r6,r3
49475 + *[0-9a-f]*: e0 03 24 c8 packsh\.ub r8,r0,r3
49476 + *[0-9a-f]*: e6 0e 24 c9 packsh\.ub r9,r3,lr
49477 +
49478 +[0-9a-f]* <packsh_sb>:
49479 + *[0-9a-f]*: fe 0f 24 df packsh\.sb pc,pc,pc
49480 + *[0-9a-f]*: f8 0c 24 dc packsh\.sb r12,r12,r12
49481 + *[0-9a-f]*: ea 05 24 d5 packsh\.sb r5,r5,r5
49482 + *[0-9a-f]*: e8 04 24 d4 packsh\.sb r4,r4,r4
49483 + *[0-9a-f]*: fc 0e 24 de packsh\.sb lr,lr,lr
49484 + *[0-9a-f]*: f0 01 24 d6 packsh\.sb r6,r8,r1
49485 + *[0-9a-f]*: f2 08 24 de packsh\.sb lr,r9,r8
49486 + *[0-9a-f]*: ec 06 24 dd packsh\.sb sp,r6,r6
49487 +
49488 +[0-9a-f]* <andl>:
49489 + *[0-9a-f]*: e0 1f 00 00 andl pc,0x0
49490 + *[0-9a-f]*: e0 1c ff ff andl r12,0xffff
49491 + *[0-9a-f]*: e0 15 80 00 andl r5,0x8000
49492 + *[0-9a-f]*: e0 14 7f ff andl r4,0x7fff
49493 + *[0-9a-f]*: e0 1e 00 01 andl lr,0x1
49494 + *[0-9a-f]*: e0 1f 5a 58 andl pc,0x5a58
49495 + *[0-9a-f]*: e0 18 b8 9e andl r8,0xb89e
49496 + *[0-9a-f]*: e0 17 35 97 andl r7,0x3597
49497 +
49498 +[0-9a-f]* <andl_coh>:
49499 + *[0-9a-f]*: e2 1f 00 00 andl pc,0x0,COH
49500 + *[0-9a-f]*: e2 1c ff ff andl r12,0xffff,COH
49501 + *[0-9a-f]*: e2 15 80 00 andl r5,0x8000,COH
49502 + *[0-9a-f]*: e2 14 7f ff andl r4,0x7fff,COH
49503 + *[0-9a-f]*: e2 1e 00 01 andl lr,0x1,COH
49504 + *[0-9a-f]*: e2 16 58 e1 andl r6,0x58e1,COH
49505 + *[0-9a-f]*: e2 10 9e cd andl r0,0x9ecd,COH
49506 + *[0-9a-f]*: e2 14 bd c4 andl r4,0xbdc4,COH
49507 +
49508 +[0-9a-f]* <andh>:
49509 + *[0-9a-f]*: e4 1f 00 00 andh pc,0x0
49510 + *[0-9a-f]*: e4 1c ff ff andh r12,0xffff
49511 + *[0-9a-f]*: e4 15 80 00 andh r5,0x8000
49512 + *[0-9a-f]*: e4 14 7f ff andh r4,0x7fff
49513 + *[0-9a-f]*: e4 1e 00 01 andh lr,0x1
49514 + *[0-9a-f]*: e4 1c cc 58 andh r12,0xcc58
49515 + *[0-9a-f]*: e4 13 21 e3 andh r3,0x21e3
49516 + *[0-9a-f]*: e4 12 a7 eb andh r2,0xa7eb
49517 +
49518 +[0-9a-f]* <andh_coh>:
49519 + *[0-9a-f]*: e6 1f 00 00 andh pc,0x0,COH
49520 + *[0-9a-f]*: e6 1c ff ff andh r12,0xffff,COH
49521 + *[0-9a-f]*: e6 15 80 00 andh r5,0x8000,COH
49522 + *[0-9a-f]*: e6 14 7f ff andh r4,0x7fff,COH
49523 + *[0-9a-f]*: e6 1e 00 01 andh lr,0x1,COH
49524 + *[0-9a-f]*: e6 1b 86 0d andh r11,0x860d,COH
49525 + *[0-9a-f]*: e6 18 ce f6 andh r8,0xcef6,COH
49526 + *[0-9a-f]*: e6 1a 5c 83 andh r10,0x5c83,COH
49527 +
49528 +[0-9a-f]* <orl>:
49529 + *[0-9a-f]*: e8 1f 00 00 orl pc,0x0
49530 + *[0-9a-f]*: e8 1c ff ff orl r12,0xffff
49531 + *[0-9a-f]*: e8 15 80 00 orl r5,0x8000
49532 + *[0-9a-f]*: e8 14 7f ff orl r4,0x7fff
49533 + *[0-9a-f]*: e8 1e 00 01 orl lr,0x1
49534 + *[0-9a-f]*: e8 1d 41 7e orl sp,0x417e
49535 + *[0-9a-f]*: e8 10 52 bd orl r0,0x52bd
49536 + *[0-9a-f]*: e8 1f ac 47 orl pc,0xac47
49537 +
49538 +[0-9a-f]* <orh>:
49539 + *[0-9a-f]*: ea 1f 00 00 orh pc,0x0
49540 + *[0-9a-f]*: ea 1c ff ff orh r12,0xffff
49541 + *[0-9a-f]*: ea 15 80 00 orh r5,0x8000
49542 + *[0-9a-f]*: ea 14 7f ff orh r4,0x7fff
49543 + *[0-9a-f]*: ea 1e 00 01 orh lr,0x1
49544 + *[0-9a-f]*: ea 18 6e 7d orh r8,0x6e7d
49545 + *[0-9a-f]*: ea 1c 77 1c orh r12,0x771c
49546 + *[0-9a-f]*: ea 11 ea 1a orh r1,0xea1a
49547 +
49548 +[0-9a-f]* <eorl>:
49549 + *[0-9a-f]*: ec 1f 00 00 eorl pc,0x0
49550 + *[0-9a-f]*: ec 1c ff ff eorl r12,0xffff
49551 + *[0-9a-f]*: ec 15 80 00 eorl r5,0x8000
49552 + *[0-9a-f]*: ec 14 7f ff eorl r4,0x7fff
49553 + *[0-9a-f]*: ec 1e 00 01 eorl lr,0x1
49554 + *[0-9a-f]*: ec 14 c7 b9 eorl r4,0xc7b9
49555 + *[0-9a-f]*: ec 16 fb dd eorl r6,0xfbdd
49556 + *[0-9a-f]*: ec 11 51 b1 eorl r1,0x51b1
49557 +
49558 +[0-9a-f]* <eorh>:
49559 + *[0-9a-f]*: ee 1f 00 00 eorh pc,0x0
49560 + *[0-9a-f]*: ee 1c ff ff eorh r12,0xffff
49561 + *[0-9a-f]*: ee 15 80 00 eorh r5,0x8000
49562 + *[0-9a-f]*: ee 14 7f ff eorh r4,0x7fff
49563 + *[0-9a-f]*: ee 1e 00 01 eorh lr,0x1
49564 + *[0-9a-f]*: ee 10 2d d4 eorh r0,0x2dd4
49565 + *[0-9a-f]*: ee 1a 94 b5 eorh r10,0x94b5
49566 + *[0-9a-f]*: ee 19 df 2a eorh r9,0xdf2a
49567 +
49568 +[0-9a-f]* <mcall>:
49569 + *[0-9a-f]*: f0 1f 00 00 mcall [0-9a-f]* <.*>
49570 + *[0-9a-f]*: f0 1c ff ff mcall r12\[-4\]
49571 + *[0-9a-f]*: f0 15 80 00 mcall r5\[-131072\]
49572 + *[0-9a-f]*: f0 14 7f ff mcall r4\[131068\]
49573 + *[0-9a-f]*: f0 1e 00 01 mcall lr\[4\]
49574 + *[0-9a-f]*: f0 1d 3b bf mcall sp\[61180\]
49575 + *[0-9a-f]*: f0 14 dd d2 mcall r4\[-35000\]
49576 + *[0-9a-f]*: f0 10 09 b1 mcall r0\[9924\]
49577 +
49578 +[0-9a-f]* <pref>:
49579 + *[0-9a-f]*: f2 1f 00 00 pref pc\[0\]
49580 + *[0-9a-f]*: f2 1c ff ff pref r12\[-1\]
49581 + *[0-9a-f]*: f2 15 80 00 pref r5\[-32768\]
49582 + *[0-9a-f]*: f2 14 7f ff pref r4\[32767\]
49583 + *[0-9a-f]*: f2 1e 00 01 pref lr\[1\]
49584 + *[0-9a-f]*: f2 17 1e 44 pref r7\[7748\]
49585 + *[0-9a-f]*: f2 17 e1 ed pref r7\[-7699\]
49586 + *[0-9a-f]*: f2 12 9a dc pref r2\[-25892\]
49587 +
49588 +[0-9a-f]* <cache>:
49589 + *[0-9a-f]*: f4 1f 00 00 cache pc\[0\],0x0
49590 + *[0-9a-f]*: f4 1c ff ff cache r12\[-1\],0x1f
49591 + *[0-9a-f]*: f4 15 84 00 cache r5\[-1024\],0x10
49592 + *[0-9a-f]*: f4 14 7b ff cache r4\[1023\],0xf
49593 + *[0-9a-f]*: f4 1e 08 01 cache lr\[1\],0x1
49594 + *[0-9a-f]*: f4 13 8c 3c cache r3\[-964\],0x11
49595 + *[0-9a-f]*: f4 14 b6 89 cache r4\[-375\],0x16
49596 + *[0-9a-f]*: f4 13 8c 88 cache r3\[-888\],0x11
49597 +
49598 +[0-9a-f]* <sub4>:
49599 + *[0-9a-f]*: 20 0f sub pc,0
49600 + *[0-9a-f]*: 2f fc sub r12,-1
49601 + *[0-9a-f]*: f0 25 00 00 sub r5,-1048576
49602 + *[0-9a-f]*: ee 34 ff ff sub r4,1048575
49603 + *[0-9a-f]*: 20 1e sub lr,1
49604 + *[0-9a-f]*: f6 22 8d 6c sub r2,-619156
49605 + *[0-9a-f]*: e6 3e 0a cd sub lr,461517
49606 + *[0-9a-f]*: fc 38 2d 25 sub r8,-185051
49607 +
49608 +[0-9a-f]* <cp3>:
49609 + *[0-9a-f]*: 58 0f cp.w pc,0
49610 + *[0-9a-f]*: 5b fc cp.w r12,-1
49611 + *[0-9a-f]*: f0 45 00 00 cp.w r5,-1048576
49612 + *[0-9a-f]*: ee 54 ff ff cp.w r4,1048575
49613 + *[0-9a-f]*: 58 1e cp.w lr,1
49614 + *[0-9a-f]*: e0 51 e4 ae cp.w r1,124078
49615 + *[0-9a-f]*: fa 40 37 e3 cp.w r0,-378909
49616 + *[0-9a-f]*: fc 44 4a 14 cp.w r4,-243180
49617 +
49618 +[0-9a-f]* <mov2>:
49619 + *[0-9a-f]*: 30 0f mov pc,0
49620 + *[0-9a-f]*: 3f fc mov r12,-1
49621 + *[0-9a-f]*: f0 65 00 00 mov r5,-1048576
49622 + *[0-9a-f]*: ee 74 ff ff mov r4,1048575
49623 + *[0-9a-f]*: 30 1e mov lr,1
49624 + *[0-9a-f]*: fa 75 29 a3 mov r5,-317021
49625 + *[0-9a-f]*: f4 6d 91 94 mov sp,-749164
49626 + *[0-9a-f]*: ee 65 58 93 mov r5,940179
49627 +
49628 +[0-9a-f]* <brc2>:
49629 + *[0-9a-f]*: c0 00 breq [0-9a-f]* <.*>
49630 + *[0-9a-f]*: fe 9f ff ff bral [0-9a-f]* <.*>
49631 + *[0-9a-f]*: f0 88 00 00 brls [0-9a-f]* <.*>
49632 + *[0-9a-f]*: ee 97 ff ff brpl [0-9a-f]* <.*>
49633 + *[0-9a-f]*: c0 11 brne [0-9a-f]* <.*>
49634 + *[0-9a-f]*: f2 8b 4a 4d brhi [0-9a-f]* <.*>
49635 + *[0-9a-f]*: ea 8e 14 cc brqs [0-9a-f]* <.*>
49636 + *[0-9a-f]*: fa 98 98 33 brls [0-9a-f]* <.*>
49637 +
49638 +[0-9a-f]* <rcall2>:
49639 + *[0-9a-f]*: c0 0c rcall [0-9a-f]* <.*>
49640 + *[0-9a-f]*: cf ff rcall [0-9a-f]* <.*>
49641 + *[0-9a-f]*: f0 a0 00 00 rcall [0-9a-f]* <.*>
49642 + *[0-9a-f]*: ee b0 ff ff rcall [0-9a-f]* <.*>
49643 + *[0-9a-f]*: c0 1c rcall [0-9a-f]* <.*>
49644 + *[0-9a-f]*: e2 b0 ca 5a rcall [0-9a-f]* <.*>
49645 + *[0-9a-f]*: e8 a0 47 52 rcall [0-9a-f]* <.*>
49646 + *[0-9a-f]*: fe b0 fd ef rcall [0-9a-f]* <.*>
49647 +
49648 +[0-9a-f]* <sub5>:
49649 + *[0-9a-f]*: fe cf 00 00 sub pc,pc,0
49650 + *[0-9a-f]*: f8 cc ff ff sub r12,r12,-1
49651 + *[0-9a-f]*: ea c5 80 00 sub r5,r5,-32768
49652 + *[0-9a-f]*: e8 c4 7f ff sub r4,r4,32767
49653 + *[0-9a-f]*: fc ce 00 01 sub lr,lr,1
49654 + *[0-9a-f]*: fe cf ce 38 sub pc,pc,-12744
49655 + *[0-9a-f]*: ee c7 95 1b sub r7,r7,-27365
49656 + *[0-9a-f]*: f2 c2 bc 32 sub r2,r9,-17358
49657 +
49658 +[0-9a-f]* <satsub_w2>:
49659 + *[0-9a-f]*: fe df 00 00 satsub\.w pc,pc,0
49660 + *[0-9a-f]*: f8 dc ff ff satsub\.w r12,r12,-1
49661 + *[0-9a-f]*: ea d5 80 00 satsub\.w r5,r5,-32768
49662 + *[0-9a-f]*: e8 d4 7f ff satsub\.w r4,r4,32767
49663 + *[0-9a-f]*: fc de 00 01 satsub\.w lr,lr,1
49664 + *[0-9a-f]*: fc d2 f8 29 satsub\.w r2,lr,-2007
49665 + *[0-9a-f]*: f8 d7 fc f0 satsub\.w r7,r12,-784
49666 + *[0-9a-f]*: ee d4 5a 8c satsub\.w r4,r7,23180
49667 +
49668 +[0-9a-f]* <ld_d4>:
49669 + *[0-9a-f]*: fe e0 00 00 ld\.d r0,pc\[0\]
49670 + *[0-9a-f]*: f8 ee ff ff ld\.d lr,r12\[-1\]
49671 + *[0-9a-f]*: ea e8 80 00 ld\.d r8,r5\[-32768\]
49672 + *[0-9a-f]*: e8 e6 7f ff ld\.d r6,r4\[32767\]
49673 + *[0-9a-f]*: fc e2 00 01 ld\.d r2,lr\[1\]
49674 + *[0-9a-f]*: f6 ee 39 c0 ld\.d lr,r11\[14784\]
49675 + *[0-9a-f]*: f2 e6 b6 27 ld\.d r6,r9\[-18905\]
49676 + *[0-9a-f]*: e6 e2 e7 2d ld\.d r2,r3\[-6355\]
49677 +
49678 +[0-9a-f]* <ld_w4>:
49679 + *[0-9a-f]*: 7e 0f ld\.w pc,pc\[0x0\]
49680 + *[0-9a-f]*: f8 fc ff ff ld\.w r12,r12\[-1\]
49681 + *[0-9a-f]*: ea f5 80 00 ld\.w r5,r5\[-32768\]
49682 + *[0-9a-f]*: e8 f4 7f ff ld\.w r4,r4\[32767\]
49683 + *[0-9a-f]*: fc fe 00 01 ld\.w lr,lr\[1\]
49684 + *[0-9a-f]*: f8 f0 a9 8b ld\.w r0,r12\[-22133\]
49685 + *[0-9a-f]*: fe fd af d7 ld\.w sp,pc\[-20521\]
49686 + *[0-9a-f]*: d7 03 nop
49687 +
49688 +[0-9a-f]* <ld_sh4>:
49689 + *[0-9a-f]*: 9e 0f ld\.sh pc,pc\[0x0\]
49690 + *[0-9a-f]*: f9 0c ff ff ld\.sh r12,r12\[-1\]
49691 + *[0-9a-f]*: eb 05 80 00 ld\.sh r5,r5\[-32768\]
49692 + *[0-9a-f]*: e9 04 7f ff ld\.sh r4,r4\[32767\]
49693 + *[0-9a-f]*: fd 0e 00 01 ld\.sh lr,lr\[1\]
49694 + *[0-9a-f]*: f5 06 78 d2 ld\.sh r6,r10\[30930\]
49695 + *[0-9a-f]*: f5 06 55 d5 ld\.sh r6,r10\[21973\]
49696 + *[0-9a-f]*: d7 03 nop
49697 +
49698 +[0-9a-f]* <ld_uh4>:
49699 + *[0-9a-f]*: 9e 8f ld\.uh pc,pc\[0x0\]
49700 + *[0-9a-f]*: f9 1c ff ff ld\.uh r12,r12\[-1\]
49701 + *[0-9a-f]*: eb 15 80 00 ld\.uh r5,r5\[-32768\]
49702 + *[0-9a-f]*: e9 14 7f ff ld\.uh r4,r4\[32767\]
49703 + *[0-9a-f]*: fd 1e 00 01 ld\.uh lr,lr\[1\]
49704 + *[0-9a-f]*: f3 11 cb d6 ld\.uh r1,r9\[-13354\]
49705 + *[0-9a-f]*: f7 1e 53 59 ld\.uh lr,r11\[21337\]
49706 + *[0-9a-f]*: d7 03 nop
49707 +
49708 +[0-9a-f]* <ld_sb1>:
49709 + *[0-9a-f]*: ff 2f 00 00 ld\.sb pc,pc\[0\]
49710 + *[0-9a-f]*: f9 2c ff ff ld\.sb r12,r12\[-1\]
49711 + *[0-9a-f]*: eb 25 80 00 ld\.sb r5,r5\[-32768\]
49712 + *[0-9a-f]*: e9 24 7f ff ld\.sb r4,r4\[32767\]
49713 + *[0-9a-f]*: fd 2e 00 01 ld\.sb lr,lr\[1\]
49714 + *[0-9a-f]*: fb 27 90 09 ld\.sb r7,sp\[-28663\]
49715 + *[0-9a-f]*: e3 22 e9 09 ld\.sb r2,r1\[-5879\]
49716 + *[0-9a-f]*: e7 2c 49 2e ld\.sb r12,r3\[18734\]
49717 +
49718 +[0-9a-f]* <ld_ub4>:
49719 + *[0-9a-f]*: 1f 8f ld\.ub pc,pc\[0x0\]
49720 + *[0-9a-f]*: f9 3c ff ff ld\.ub r12,r12\[-1\]
49721 + *[0-9a-f]*: eb 35 80 00 ld\.ub r5,r5\[-32768\]
49722 + *[0-9a-f]*: e9 34 7f ff ld\.ub r4,r4\[32767\]
49723 + *[0-9a-f]*: 1d 9e ld\.ub lr,lr\[0x1\]
49724 + *[0-9a-f]*: e9 3f 20 55 ld\.ub pc,r4\[8277\]
49725 + *[0-9a-f]*: f9 35 4a e4 ld\.ub r5,r12\[19172\]
49726 + *[0-9a-f]*: fd 3a 66 eb ld\.ub r10,lr\[26347\]
49727 +
49728 +[0-9a-f]* <st_d4>:
49729 + *[0-9a-f]*: fe e1 00 00 st\.d pc\[0\],r0
49730 + *[0-9a-f]*: f8 ef ff ff st\.d r12\[-1\],lr
49731 + *[0-9a-f]*: ea e9 80 00 st\.d r5\[-32768\],r8
49732 + *[0-9a-f]*: e8 e7 7f ff st\.d r4\[32767\],r6
49733 + *[0-9a-f]*: fc e3 00 01 st\.d lr\[1\],r2
49734 + *[0-9a-f]*: ea eb 33 90 st\.d r5\[13200\],r10
49735 + *[0-9a-f]*: ea eb 24 88 st\.d r5\[9352\],r10
49736 + *[0-9a-f]*: ea e5 7e 75 st\.d r5\[32373\],r4
49737 +
49738 +[0-9a-f]* <st_w4>:
49739 + *[0-9a-f]*: 9f 0f st\.w pc\[0x0\],pc
49740 + *[0-9a-f]*: f9 4c ff ff st\.w r12\[-1\],r12
49741 + *[0-9a-f]*: eb 45 80 00 st\.w r5\[-32768\],r5
49742 + *[0-9a-f]*: e9 44 7f ff st\.w r4\[32767\],r4
49743 + *[0-9a-f]*: fd 4e 00 01 st\.w lr\[1\],lr
49744 + *[0-9a-f]*: fb 47 17 f8 st\.w sp\[6136\],r7
49745 + *[0-9a-f]*: ed 4c 69 cf st\.w r6\[27087\],r12
49746 + *[0-9a-f]*: d7 03 nop
49747 +
49748 +[0-9a-f]* <st_h4>:
49749 + *[0-9a-f]*: be 0f st\.h pc\[0x0\],pc
49750 + *[0-9a-f]*: f9 5c ff ff st\.h r12\[-1\],r12
49751 + *[0-9a-f]*: eb 55 80 00 st\.h r5\[-32768\],r5
49752 + *[0-9a-f]*: e9 54 7f ff st\.h r4\[32767\],r4
49753 + *[0-9a-f]*: fd 5e 00 01 st\.h lr\[1\],lr
49754 + *[0-9a-f]*: e9 57 d9 16 st\.h r4\[-9962\],r7
49755 + *[0-9a-f]*: f3 53 c0 86 st\.h r9\[-16250\],r3
49756 + *[0-9a-f]*: d7 03 nop
49757 +
49758 +[0-9a-f]* <st_b4>:
49759 + *[0-9a-f]*: be 8f st\.b pc\[0x0\],pc
49760 + *[0-9a-f]*: f9 6c ff ff st\.b r12\[-1\],r12
49761 + *[0-9a-f]*: eb 65 80 00 st\.b r5\[-32768\],r5
49762 + *[0-9a-f]*: e9 64 7f ff st\.b r4\[32767\],r4
49763 + *[0-9a-f]*: bc 9e st\.b lr\[0x1\],lr
49764 + *[0-9a-f]*: f9 66 75 96 st\.b r12\[30102\],r6
49765 + *[0-9a-f]*: eb 61 71 31 st\.b r5\[28977\],r1
49766 + *[0-9a-f]*: e1 61 15 5e st\.b r0\[5470\],r1
49767 +
49768 +[0-9a-f]* <mfsr>:
49769 + *[0-9a-f]*: e1 bf 00 00 mfsr pc,0x0
49770 + *[0-9a-f]*: e1 bc 00 ff mfsr r12,0x3fc
49771 + *[0-9a-f]*: e1 b5 00 80 mfsr r5,0x200
49772 + *[0-9a-f]*: e1 b4 00 7f mfsr r4,0x1fc
49773 + *[0-9a-f]*: e1 be 00 01 mfsr lr,0x4
49774 + *[0-9a-f]*: e1 b2 00 ae mfsr r2,0x2b8
49775 + *[0-9a-f]*: e1 b4 00 41 mfsr r4,0x104
49776 + *[0-9a-f]*: e1 ba 00 fe mfsr r10,0x3f8
49777 +
49778 +[0-9a-f]* <mtsr>:
49779 + *[0-9a-f]*: e3 bf 00 00 mtsr 0x0,pc
49780 + *[0-9a-f]*: e3 bc 00 ff mtsr 0x3fc,r12
49781 + *[0-9a-f]*: e3 b5 00 80 mtsr 0x200,r5
49782 + *[0-9a-f]*: e3 b4 00 7f mtsr 0x1fc,r4
49783 + *[0-9a-f]*: e3 be 00 01 mtsr 0x4,lr
49784 + *[0-9a-f]*: e3 ba 00 38 mtsr 0xe0,r10
49785 + *[0-9a-f]*: e3 bc 00 d1 mtsr 0x344,r12
49786 + *[0-9a-f]*: e3 b9 00 4c mtsr 0x130,r9
49787 +
49788 +[0-9a-f]* <mfdr>:
49789 + *[0-9a-f]*: e5 bf 00 00 mfdr pc,0x0
49790 + *[0-9a-f]*: e5 bc 00 ff mfdr r12,0x3fc
49791 + *[0-9a-f]*: e5 b5 00 80 mfdr r5,0x200
49792 + *[0-9a-f]*: e5 b4 00 7f mfdr r4,0x1fc
49793 + *[0-9a-f]*: e5 be 00 01 mfdr lr,0x4
49794 + *[0-9a-f]*: e5 b6 00 e9 mfdr r6,0x3a4
49795 + *[0-9a-f]*: e5 b5 00 09 mfdr r5,0x24
49796 + *[0-9a-f]*: e5 b9 00 4b mfdr r9,0x12c
49797 +
49798 +[0-9a-f]* <mtdr>:
49799 + *[0-9a-f]*: e7 bf 00 00 mtdr 0x0,pc
49800 + *[0-9a-f]*: e7 bc 00 ff mtdr 0x3fc,r12
49801 + *[0-9a-f]*: e7 b5 00 80 mtdr 0x200,r5
49802 + *[0-9a-f]*: e7 b4 00 7f mtdr 0x1fc,r4
49803 + *[0-9a-f]*: e7 be 00 01 mtdr 0x4,lr
49804 + *[0-9a-f]*: e7 b8 00 2d mtdr 0xb4,r8
49805 + *[0-9a-f]*: e7 ba 00 b4 mtdr 0x2d0,r10
49806 + *[0-9a-f]*: e7 be 00 66 mtdr 0x198,lr
49807 +
49808 +[0-9a-f]* <sleep>:
49809 + *[0-9a-f]*: e9 b0 00 00 sleep 0x0
49810 + *[0-9a-f]*: e9 b0 00 ff sleep 0xff
49811 + *[0-9a-f]*: e9 b0 00 80 sleep 0x80
49812 + *[0-9a-f]*: e9 b0 00 7f sleep 0x7f
49813 + *[0-9a-f]*: e9 b0 00 01 sleep 0x1
49814 + *[0-9a-f]*: e9 b0 00 fe sleep 0xfe
49815 + *[0-9a-f]*: e9 b0 00 0f sleep 0xf
49816 + *[0-9a-f]*: e9 b0 00 2b sleep 0x2b
49817 +
49818 +[0-9a-f]* <sync>:
49819 + *[0-9a-f]*: eb b0 00 00 sync 0x0
49820 + *[0-9a-f]*: eb b0 00 ff sync 0xff
49821 + *[0-9a-f]*: eb b0 00 80 sync 0x80
49822 + *[0-9a-f]*: eb b0 00 7f sync 0x7f
49823 + *[0-9a-f]*: eb b0 00 01 sync 0x1
49824 + *[0-9a-f]*: eb b0 00 a6 sync 0xa6
49825 + *[0-9a-f]*: eb b0 00 e6 sync 0xe6
49826 + *[0-9a-f]*: eb b0 00 b4 sync 0xb4
49827 +
49828 +[0-9a-f]* <bld>:
49829 + *[0-9a-f]*: ed bf 00 00 bld pc,0x0
49830 + *[0-9a-f]*: ed bc 00 1f bld r12,0x1f
49831 + *[0-9a-f]*: ed b5 00 10 bld r5,0x10
49832 + *[0-9a-f]*: ed b4 00 0f bld r4,0xf
49833 + *[0-9a-f]*: ed be 00 01 bld lr,0x1
49834 + *[0-9a-f]*: ed b9 00 0f bld r9,0xf
49835 + *[0-9a-f]*: ed b0 00 04 bld r0,0x4
49836 + *[0-9a-f]*: ed be 00 1a bld lr,0x1a
49837 +
49838 +[0-9a-f]* <bst>:
49839 + *[0-9a-f]*: ef bf 00 00 bst pc,0x0
49840 + *[0-9a-f]*: ef bc 00 1f bst r12,0x1f
49841 + *[0-9a-f]*: ef b5 00 10 bst r5,0x10
49842 + *[0-9a-f]*: ef b4 00 0f bst r4,0xf
49843 + *[0-9a-f]*: ef be 00 01 bst lr,0x1
49844 + *[0-9a-f]*: ef ba 00 1c bst r10,0x1c
49845 + *[0-9a-f]*: ef b0 00 03 bst r0,0x3
49846 + *[0-9a-f]*: ef bd 00 02 bst sp,0x2
49847 +
49848 +[0-9a-f]* <sats>:
49849 + *[0-9a-f]*: f1 bf 00 00 sats pc,0x0
49850 + *[0-9a-f]*: f1 bc 03 ff sats r12>>0x1f,0x1f
49851 + *[0-9a-f]*: f1 b5 02 10 sats r5>>0x10,0x10
49852 + *[0-9a-f]*: f1 b4 01 ef sats r4>>0xf,0xf
49853 + *[0-9a-f]*: f1 be 00 21 sats lr>>0x1,0x1
49854 + *[0-9a-f]*: f1 ba 02 63 sats r10>>0x3,0x13
49855 + *[0-9a-f]*: f1 ba 03 42 sats r10>>0x2,0x1a
49856 + *[0-9a-f]*: f1 b1 00 34 sats r1>>0x14,0x1
49857 +
49858 +[0-9a-f]* <satu>:
49859 + *[0-9a-f]*: f1 bf 04 00 satu pc,0x0
49860 + *[0-9a-f]*: f1 bc 07 ff satu r12>>0x1f,0x1f
49861 + *[0-9a-f]*: f1 b5 06 10 satu r5>>0x10,0x10
49862 + *[0-9a-f]*: f1 b4 05 ef satu r4>>0xf,0xf
49863 + *[0-9a-f]*: f1 be 04 21 satu lr>>0x1,0x1
49864 + *[0-9a-f]*: f1 bf 04 e5 satu pc>>0x5,0x7
49865 + *[0-9a-f]*: f1 b7 04 a5 satu r7>>0x5,0x5
49866 + *[0-9a-f]*: f1 b2 06 7a satu r2>>0x1a,0x13
49867 +
49868 +[0-9a-f]* <satrnds>:
49869 + *[0-9a-f]*: f3 bf 00 00 satrnds pc,0x0
49870 + *[0-9a-f]*: f3 bc 03 ff satrnds r12>>0x1f,0x1f
49871 + *[0-9a-f]*: f3 b5 02 10 satrnds r5>>0x10,0x10
49872 + *[0-9a-f]*: f3 b4 01 ef satrnds r4>>0xf,0xf
49873 + *[0-9a-f]*: f3 be 00 21 satrnds lr>>0x1,0x1
49874 + *[0-9a-f]*: f3 b0 02 75 satrnds r0>>0x15,0x13
49875 + *[0-9a-f]*: f3 bd 00 40 satrnds sp,0x2
49876 + *[0-9a-f]*: f3 b7 03 a6 satrnds r7>>0x6,0x1d
49877 +
49878 +[0-9a-f]* <satrndu>:
49879 + *[0-9a-f]*: f3 bf 04 00 satrndu pc,0x0
49880 + *[0-9a-f]*: f3 bc 07 ff satrndu r12>>0x1f,0x1f
49881 + *[0-9a-f]*: f3 b5 06 10 satrndu r5>>0x10,0x10
49882 + *[0-9a-f]*: f3 b4 05 ef satrndu r4>>0xf,0xf
49883 + *[0-9a-f]*: f3 be 04 21 satrndu lr>>0x1,0x1
49884 + *[0-9a-f]*: f3 bc 07 40 satrndu r12,0x1a
49885 + *[0-9a-f]*: f3 b4 04 75 satrndu r4>>0x15,0x3
49886 + *[0-9a-f]*: f3 ba 06 03 satrndu r10>>0x3,0x10
49887 +
49888 +[0-9a-f]* <subfc>:
49889 + *[0-9a-f]*: f5 bf 00 00 subfeq pc,0
49890 + *[0-9a-f]*: f5 bc 0f ff subfal r12,-1
49891 + *[0-9a-f]*: f5 b5 08 80 subfls r5,-128
49892 + *[0-9a-f]*: f5 b4 07 7f subfpl r4,127
49893 + *[0-9a-f]*: f5 be 01 01 subfne lr,1
49894 + *[0-9a-f]*: f5 ba 08 08 subfls r10,8
49895 + *[0-9a-f]*: f5 bb 0d 63 subfvc r11,99
49896 + *[0-9a-f]*: f5 b2 0c 49 subfvs r2,73
49897 +
49898 +[0-9a-f]* <subc>:
49899 + *[0-9a-f]*: f7 bf 00 00 subeq pc,0
49900 + *[0-9a-f]*: f7 bc 0f ff subal r12,-1
49901 + *[0-9a-f]*: f7 b5 08 80 subls r5,-128
49902 + *[0-9a-f]*: f7 b4 07 7f subpl r4,127
49903 + *[0-9a-f]*: f7 be 01 01 subne lr,1
49904 + *[0-9a-f]*: f7 bc 08 76 subls r12,118
49905 + *[0-9a-f]*: f7 be 0d f4 subvc lr,-12
49906 + *[0-9a-f]*: f7 b4 06 f3 submi r4,-13
49907 +
49908 +[0-9a-f]* <movc2>:
49909 + *[0-9a-f]*: f9 bf 00 00 moveq pc,0
49910 + *[0-9a-f]*: f9 bc 0f ff moval r12,-1
49911 + *[0-9a-f]*: f9 b5 08 80 movls r5,-128
49912 + *[0-9a-f]*: f9 b4 07 7f movpl r4,127
49913 + *[0-9a-f]*: f9 be 01 01 movne lr,1
49914 + *[0-9a-f]*: f9 b3 05 86 movlt r3,-122
49915 + *[0-9a-f]*: f9 b8 0d 02 movvc r8,2
49916 + *[0-9a-f]*: f9 b7 01 91 movne r7,-111
49917 +
49918 +[0-9a-f]* <cp_b>:
49919 + *[0-9a-f]*: e0 0f 18 00 cp\.b pc,r0
49920 + *[0-9a-f]*: fe 00 18 00 cp\.b r0,pc
49921 + *[0-9a-f]*: f0 07 18 00 cp\.b r7,r8
49922 + *[0-9a-f]*: ee 08 18 00 cp\.b r8,r7
49923 +
49924 +[0-9a-f]* <cp_h>:
49925 + *[0-9a-f]*: e0 0f 19 00 cp\.h pc,r0
49926 + *[0-9a-f]*: fe 00 19 00 cp\.h r0,pc
49927 + *[0-9a-f]*: f0 07 19 00 cp\.h r7,r8
49928 + *[0-9a-f]*: ee 08 19 00 cp\.h r8,r7
49929 +
49930 +[0-9a-f]* <ldm>:
49931 + *[0-9a-f]*: e1 cf 00 7e ldm pc,r1-r6
49932 + *[0-9a-f]*: e1 cc ff ff ldm r12,r0-pc
49933 + *[0-9a-f]*: e1 c5 80 00 ldm r5,pc
49934 + *[0-9a-f]*: e1 c4 7f ff ldm r4,r0-lr
49935 + *[0-9a-f]*: e1 ce 00 01 ldm lr,r0
49936 + *[0-9a-f]*: e1 c9 40 22 ldm r9,r1,r5,lr
49937 + *[0-9a-f]*: e1 cb 81 ec ldm r11,r2-r3,r5-r8,pc
49938 + *[0-9a-f]*: e1 c6 a2 09 ldm r6,r0,r3,r9,sp,pc
49939 +
49940 +[0-9a-f]* <ldm_pu>:
49941 + *[0-9a-f]*: e3 cf 03 c0 ldm pc\+\+,r6-r9
49942 + *[0-9a-f]*: e3 cc ff ff ldm r12\+\+,r0-pc
49943 + *[0-9a-f]*: e3 c5 80 00 ldm r5\+\+,pc
49944 + *[0-9a-f]*: e3 c4 7f ff ldm r4\+\+,r0-lr
49945 + *[0-9a-f]*: e3 ce 00 01 ldm lr\+\+,r0
49946 + *[0-9a-f]*: e3 cc d5 38 ldm r12\+\+,r3-r5,r8,r10,r12,lr-pc
49947 + *[0-9a-f]*: e3 ca c0 74 ldm r10\+\+,r2,r4-r6,lr-pc
49948 + *[0-9a-f]*: e3 c6 7e 1a ldm r6\+\+,r1,r3-r4,r9-lr
49949 +
49950 +[0-9a-f]* <ldmts>:
49951 + *[0-9a-f]*: e5 cf 01 80 ldmts pc,r7-r8
49952 + *[0-9a-f]*: e5 cc ff ff ldmts r12,r0-pc
49953 + *[0-9a-f]*: e5 c5 80 00 ldmts r5,pc
49954 + *[0-9a-f]*: e5 c4 7f ff ldmts r4,r0-lr
49955 + *[0-9a-f]*: e5 ce 00 01 ldmts lr,r0
49956 + *[0-9a-f]*: e5 c0 18 06 ldmts r0,r1-r2,r11-r12
49957 + *[0-9a-f]*: e5 ce 61 97 ldmts lr,r0-r2,r4,r7-r8,sp-lr
49958 + *[0-9a-f]*: e5 cc c2 3b ldmts r12,r0-r1,r3-r5,r9,lr-pc
49959 +
49960 +[0-9a-f]* <ldmts_pu>:
49961 + *[0-9a-f]*: e7 cf 02 00 ldmts pc\+\+,r9
49962 + *[0-9a-f]*: e7 cc ff ff ldmts r12\+\+,r0-pc
49963 + *[0-9a-f]*: e7 c5 80 00 ldmts r5\+\+,pc
49964 + *[0-9a-f]*: e7 c4 7f ff ldmts r4\+\+,r0-lr
49965 + *[0-9a-f]*: e7 ce 00 01 ldmts lr\+\+,r0
49966 + *[0-9a-f]*: e7 cd 0a bd ldmts sp\+\+,r0,r2-r5,r7,r9,r11
49967 + *[0-9a-f]*: e7 c5 0c 8e ldmts r5\+\+,r1-r3,r7,r10-r11
49968 + *[0-9a-f]*: e7 c8 a1 9c ldmts r8\+\+,r2-r4,r7-r8,sp,pc
49969 +
49970 +[0-9a-f]* <stm>:
49971 + *[0-9a-f]*: e9 cf 00 80 stm pc,r7
49972 + *[0-9a-f]*: e9 cc ff ff stm r12,r0-pc
49973 + *[0-9a-f]*: e9 c5 80 00 stm r5,pc
49974 + *[0-9a-f]*: e9 c4 7f ff stm r4,r0-lr
49975 + *[0-9a-f]*: e9 ce 00 01 stm lr,r0
49976 + *[0-9a-f]*: e9 cd 49 2c stm sp,r2-r3,r5,r8,r11,lr
49977 + *[0-9a-f]*: e9 c4 4c 5f stm r4,r0-r4,r6,r10-r11,lr
49978 + *[0-9a-f]*: e9 c9 f2 22 stm r9,r1,r5,r9,r12-pc
49979 +
49980 +[0-9a-f]* <stm_pu>:
49981 + *[0-9a-f]*: eb cf 00 70 stm --pc,r4-r6
49982 + *[0-9a-f]*: eb cc ff ff stm --r12,r0-pc
49983 + *[0-9a-f]*: eb c5 80 00 stm --r5,pc
49984 + *[0-9a-f]*: eb c4 7f ff stm --r4,r0-lr
49985 + *[0-9a-f]*: eb ce 00 01 stm --lr,r0
49986 + *[0-9a-f]*: eb cb fb f1 stm --r11,r0,r4-r9,r11-pc
49987 + *[0-9a-f]*: eb cb 56 09 stm --r11,r0,r3,r9-r10,r12,lr
49988 + *[0-9a-f]*: eb c6 63 04 stm --r6,r2,r8-r9,sp-lr
49989 +
49990 +[0-9a-f]* <stmts>:
49991 + *[0-9a-f]*: ed cf 01 00 stmts pc,r8
49992 + *[0-9a-f]*: ed cc ff ff stmts r12,r0-pc
49993 + *[0-9a-f]*: ed c5 80 00 stmts r5,pc
49994 + *[0-9a-f]*: ed c4 7f ff stmts r4,r0-lr
49995 + *[0-9a-f]*: ed ce 00 01 stmts lr,r0
49996 + *[0-9a-f]*: ed c1 c6 5b stmts r1,r0-r1,r3-r4,r6,r9-r10,lr-pc
49997 + *[0-9a-f]*: ed c3 1d c1 stmts r3,r0,r6-r8,r10-r12
49998 + *[0-9a-f]*: ed cb d6 d1 stmts r11,r0,r4,r6-r7,r9-r10,r12,lr-pc
49999 +
50000 +[0-9a-f]* <stmts_pu>:
50001 + *[0-9a-f]*: ef cf 01 c0 stmts --pc,r6-r8
50002 + *[0-9a-f]*: ef cc ff ff stmts --r12,r0-pc
50003 + *[0-9a-f]*: ef c5 80 00 stmts --r5,pc
50004 + *[0-9a-f]*: ef c4 7f ff stmts --r4,r0-lr
50005 + *[0-9a-f]*: ef ce 00 01 stmts --lr,r0
50006 + *[0-9a-f]*: ef c2 36 19 stmts --r2,r0,r3-r4,r9-r10,r12-sp
50007 + *[0-9a-f]*: ef c3 c0 03 stmts --r3,r0-r1,lr-pc
50008 + *[0-9a-f]*: ef c0 44 7d stmts --r0,r0,r2-r6,r10,lr
50009 +
50010 +[0-9a-f]* <ldins_h>:
50011 + *[0-9a-f]*: ff df 00 00 ldins\.h pc:b,pc\[0\]
50012 + *[0-9a-f]*: f9 dc 1f ff ldins\.h r12:t,r12\[-2\]
50013 + *[0-9a-f]*: eb d5 18 00 ldins\.h r5:t,r5\[-4096\]
50014 + *[0-9a-f]*: e9 d4 07 ff ldins\.h r4:b,r4\[4094\]
50015 + *[0-9a-f]*: fd de 10 01 ldins\.h lr:t,lr\[2\]
50016 + *[0-9a-f]*: fd d0 13 c5 ldins\.h r0:t,lr\[1930\]
50017 + *[0-9a-f]*: ef d3 0e f5 ldins\.h r3:b,r7\[-534\]
50018 + *[0-9a-f]*: f9 d2 0b 9a ldins\.h r2:b,r12\[-2252\]
50019 +
50020 +[0-9a-f]* <ldins_b>:
50021 + *[0-9a-f]*: ff df 40 00 ldins\.b pc:b,pc\[0\]
50022 + *[0-9a-f]*: f9 dc 7f ff ldins\.b r12:t,r12\[-1\]
50023 + *[0-9a-f]*: eb d5 68 00 ldins\.b r5:u,r5\[-2048\]
50024 + *[0-9a-f]*: e9 d4 57 ff ldins\.b r4:l,r4\[2047\]
50025 + *[0-9a-f]*: fd de 50 01 ldins\.b lr:l,lr\[1\]
50026 + *[0-9a-f]*: e9 d6 7d 6a ldins\.b r6:t,r4\[-662\]
50027 + *[0-9a-f]*: e3 d5 4f 69 ldins\.b r5:b,r1\[-151\]
50028 + *[0-9a-f]*: f7 da 78 7d ldins\.b r10:t,r11\[-1923\]
50029 +
50030 +[0-9a-f]* <ldswp_sh>:
50031 + *[0-9a-f]*: ff df 20 00 ldswp\.sh pc,pc\[0\]
50032 + *[0-9a-f]*: f9 dc 2f ff ldswp\.sh r12,r12\[-2\]
50033 + *[0-9a-f]*: eb d5 28 00 ldswp\.sh r5,r5\[-4096\]
50034 + *[0-9a-f]*: e9 d4 27 ff ldswp\.sh r4,r4\[4094\]
50035 + *[0-9a-f]*: fd de 20 01 ldswp\.sh lr,lr\[2\]
50036 + *[0-9a-f]*: f5 d9 27 84 ldswp\.sh r9,r10\[3848\]
50037 + *[0-9a-f]*: f9 d4 2c 04 ldswp\.sh r4,r12\[-2040\]
50038 + *[0-9a-f]*: e5 da 26 08 ldswp\.sh r10,r2\[3088\]
50039 +
50040 +[0-9a-f]* <ldswp_uh>:
50041 + *[0-9a-f]*: ff df 30 00 ldswp\.uh pc,pc\[0\]
50042 + *[0-9a-f]*: f9 dc 3f ff ldswp\.uh r12,r12\[-2\]
50043 + *[0-9a-f]*: eb d5 38 00 ldswp\.uh r5,r5\[-4096\]
50044 + *[0-9a-f]*: e9 d4 37 ff ldswp\.uh r4,r4\[4094\]
50045 + *[0-9a-f]*: fd de 30 01 ldswp\.uh lr,lr\[2\]
50046 + *[0-9a-f]*: f3 d4 37 46 ldswp\.uh r4,r9\[3724\]
50047 + *[0-9a-f]*: fb de 3c bc ldswp\.uh lr,sp\[-1672\]
50048 + *[0-9a-f]*: f9 d8 38 7d ldswp\.uh r8,r12\[-3846\]
50049 +
50050 +[0-9a-f]* <ldswp_w>:
50051 + *[0-9a-f]*: ff df 80 00 ldswp\.w pc,pc\[0\]
50052 + *[0-9a-f]*: f9 dc 8f ff ldswp\.w r12,r12\[-4\]
50053 + *[0-9a-f]*: eb d5 88 00 ldswp\.w r5,r5\[-8192\]
50054 + *[0-9a-f]*: e9 d4 87 ff ldswp\.w r4,r4\[8188\]
50055 + *[0-9a-f]*: fd de 80 01 ldswp\.w lr,lr\[4\]
50056 + *[0-9a-f]*: ef dd 81 d1 ldswp\.w sp,r7\[1860\]
50057 + *[0-9a-f]*: eb df 8c c1 ldswp\.w pc,r5\[-3324\]
50058 + *[0-9a-f]*: f5 dc 8c c8 ldswp\.w r12,r10\[-3296\]
50059 +
50060 +[0-9a-f]* <stswp_h>:
50061 + *[0-9a-f]*: ff df 90 00 stswp\.h pc\[0\],pc
50062 + *[0-9a-f]*: f9 dc 9f ff stswp\.h r12\[-2\],r12
50063 + *[0-9a-f]*: eb d5 98 00 stswp\.h r5\[-4096\],r5
50064 + *[0-9a-f]*: e9 d4 97 ff stswp\.h r4\[4094\],r4
50065 + *[0-9a-f]*: fd de 90 01 stswp\.h lr\[2\],lr
50066 + *[0-9a-f]*: ef da 90 20 stswp\.h r7\[64\],r10
50067 + *[0-9a-f]*: f5 d2 95 e8 stswp\.h r10\[3024\],r2
50068 + *[0-9a-f]*: e1 da 9b 74 stswp\.h r0\[-2328\],r10
50069 +
50070 +[0-9a-f]* <stswp_w>:
50071 + *[0-9a-f]*: ff df a0 00 stswp\.w pc\[0\],pc
50072 + *[0-9a-f]*: f9 dc af ff stswp\.w r12\[-4\],r12
50073 + *[0-9a-f]*: eb d5 a8 00 stswp\.w r5\[-8192\],r5
50074 + *[0-9a-f]*: e9 d4 a7 ff stswp\.w r4\[8188\],r4
50075 + *[0-9a-f]*: fd de a0 01 stswp\.w lr\[4\],lr
50076 + *[0-9a-f]*: ff d8 a1 21 stswp\.w pc\[1156\],r8
50077 + *[0-9a-f]*: fb da a7 ce stswp\.w sp\[7992\],r10
50078 + *[0-9a-f]*: f1 d5 ae db stswp\.w r8\[-1172\],r5
50079 +
50080 +[0-9a-f]* <and2>:
50081 + *[0-9a-f]*: ff ef 00 0f and pc,pc,pc
50082 + *[0-9a-f]*: f9 ec 01 fc and r12,r12,r12<<0x1f
50083 + *[0-9a-f]*: eb e5 01 05 and r5,r5,r5<<0x10
50084 + *[0-9a-f]*: e9 e4 00 f4 and r4,r4,r4<<0xf
50085 + *[0-9a-f]*: fd ee 00 1e and lr,lr,lr<<0x1
50086 + *[0-9a-f]*: e5 e1 00 1a and r10,r2,r1<<0x1
50087 + *[0-9a-f]*: f1 eb 01 bc and r12,r8,r11<<0x1b
50088 + *[0-9a-f]*: ef e0 00 3a and r10,r7,r0<<0x3
50089 +
50090 +[0-9a-f]* <and3>:
50091 + *[0-9a-f]*: ff ef 02 0f and pc,pc,pc
50092 + *[0-9a-f]*: f9 ec 03 fc and r12,r12,r12>>0x1f
50093 + *[0-9a-f]*: eb e5 03 05 and r5,r5,r5>>0x10
50094 + *[0-9a-f]*: e9 e4 02 f4 and r4,r4,r4>>0xf
50095 + *[0-9a-f]*: fd ee 02 1e and lr,lr,lr>>0x1
50096 + *[0-9a-f]*: f1 e7 03 1c and r12,r8,r7>>0x11
50097 + *[0-9a-f]*: e9 e9 03 4f and pc,r4,r9>>0x14
50098 + *[0-9a-f]*: f3 ea 02 ca and r10,r9,r10>>0xc
50099 +
50100 +[0-9a-f]* <or2>:
50101 + *[0-9a-f]*: ff ef 10 0f or pc,pc,pc
50102 + *[0-9a-f]*: f9 ec 11 fc or r12,r12,r12<<0x1f
50103 + *[0-9a-f]*: eb e5 11 05 or r5,r5,r5<<0x10
50104 + *[0-9a-f]*: e9 e4 10 f4 or r4,r4,r4<<0xf
50105 + *[0-9a-f]*: fd ee 10 1e or lr,lr,lr<<0x1
50106 + *[0-9a-f]*: fb eb 11 d8 or r8,sp,r11<<0x1d
50107 + *[0-9a-f]*: f3 e2 11 cf or pc,r9,r2<<0x1c
50108 + *[0-9a-f]*: e3 e2 10 35 or r5,r1,r2<<0x3
50109 +
50110 +[0-9a-f]* <or3>:
50111 + *[0-9a-f]*: ff ef 12 0f or pc,pc,pc
50112 + *[0-9a-f]*: f9 ec 13 fc or r12,r12,r12>>0x1f
50113 + *[0-9a-f]*: eb e5 13 05 or r5,r5,r5>>0x10
50114 + *[0-9a-f]*: e9 e4 12 f4 or r4,r4,r4>>0xf
50115 + *[0-9a-f]*: fd ee 12 1e or lr,lr,lr>>0x1
50116 + *[0-9a-f]*: fb ed 12 21 or r1,sp,sp>>0x2
50117 + *[0-9a-f]*: e3 e1 13 d0 or r0,r1,r1>>0x1d
50118 + *[0-9a-f]*: f9 e8 12 84 or r4,r12,r8>>0x8
50119 +
50120 +[0-9a-f]* <eor2>:
50121 + *[0-9a-f]*: ff ef 20 0f eor pc,pc,pc
50122 + *[0-9a-f]*: f9 ec 21 fc eor r12,r12,r12<<0x1f
50123 + *[0-9a-f]*: eb e5 21 05 eor r5,r5,r5<<0x10
50124 + *[0-9a-f]*: e9 e4 20 f4 eor r4,r4,r4<<0xf
50125 + *[0-9a-f]*: fd ee 20 1e eor lr,lr,lr<<0x1
50126 + *[0-9a-f]*: f3 e4 20 ba eor r10,r9,r4<<0xb
50127 + *[0-9a-f]*: e1 e1 21 f4 eor r4,r0,r1<<0x1f
50128 + *[0-9a-f]*: e5 ec 20 d6 eor r6,r2,r12<<0xd
50129 +
50130 +[0-9a-f]* <eor3>:
50131 + *[0-9a-f]*: ff ef 22 0f eor pc,pc,pc
50132 + *[0-9a-f]*: f9 ec 23 fc eor r12,r12,r12>>0x1f
50133 + *[0-9a-f]*: eb e5 23 05 eor r5,r5,r5>>0x10
50134 + *[0-9a-f]*: e9 e4 22 f4 eor r4,r4,r4>>0xf
50135 + *[0-9a-f]*: fd ee 22 1e eor lr,lr,lr>>0x1
50136 + *[0-9a-f]*: eb e5 23 65 eor r5,r5,r5>>0x16
50137 + *[0-9a-f]*: e3 ee 22 3a eor r10,r1,lr>>0x3
50138 + *[0-9a-f]*: fd ed 23 a7 eor r7,lr,sp>>0x1a
50139 +
50140 +[0-9a-f]* <sthh_w2>:
50141 + *[0-9a-f]*: ff ef 8f 0f sthh\.w pc\[pc\],pc:b,pc:b
50142 + *[0-9a-f]*: f9 ec bc 3c sthh\.w r12\[r12<<0x3\],r12:t,r12:t
50143 + *[0-9a-f]*: eb e5 b5 25 sthh\.w r5\[r5<<0x2\],r5:t,r5:t
50144 + *[0-9a-f]*: e9 e4 84 14 sthh\.w r4\[r4<<0x1\],r4:b,r4:b
50145 + *[0-9a-f]*: fd ee be 1e sthh\.w lr\[lr<<0x1\],lr:t,lr:t
50146 + *[0-9a-f]*: e3 ec b6 3d sthh\.w sp\[r6<<0x3\],r1:t,r12:t
50147 + *[0-9a-f]*: f3 e9 b6 06 sthh\.w r6\[r6\],r9:t,r9:t
50148 + *[0-9a-f]*: e1 eb 93 0a sthh\.w r10\[r3\],r0:b,r11:t
50149 +
50150 +[0-9a-f]* <sthh_w1>:
50151 + *[0-9a-f]*: ff ef c0 0f sthh\.w pc\[0x0\],pc:b,pc:b
50152 + *[0-9a-f]*: f9 ec ff fc sthh\.w r12\[0x3fc\],r12:t,r12:t
50153 + *[0-9a-f]*: eb e5 f8 05 sthh\.w r5\[0x200\],r5:t,r5:t
50154 + *[0-9a-f]*: e9 e4 c7 f4 sthh\.w r4\[0x1fc\],r4:b,r4:b
50155 + *[0-9a-f]*: fd ee f0 1e sthh\.w lr\[0x4\],lr:t,lr:t
50156 + *[0-9a-f]*: f3 e0 e6 54 sthh\.w r4\[0x194\],r9:t,r0:b
50157 + *[0-9a-f]*: e5 ea e5 78 sthh\.w r8\[0x15c\],r2:t,r10:b
50158 + *[0-9a-f]*: f3 e2 c2 bd sthh\.w sp\[0xac\],r9:b,r2:b
50159 +
50160 +[0-9a-f]* <cop>:
50161 + *[0-9a-f]*: e1 a0 00 00 cop cp0,cr0,cr0,cr0,0x0
50162 + *[0-9a-f]*: e7 af ff ff cop cp7,cr15,cr15,cr15,0x7f
50163 + *[0-9a-f]*: e3 a8 75 55 cop cp3,cr5,cr5,cr5,0x31
50164 + *[0-9a-f]*: e3 a8 44 44 cop cp2,cr4,cr4,cr4,0x30
50165 + *[0-9a-f]*: e5 ad a8 37 cop cp5,cr8,cr3,cr7,0x5a
50166 +
50167 +[0-9a-f]* <ldc_w1>:
50168 + *[0-9a-f]*: e9 a0 00 00 ldc\.w cp0,cr0,r0\[0x0\]
50169 + *[0-9a-f]*: e9 af ef ff ldc\.w cp7,cr15,pc\[0x3fc\]
50170 + *[0-9a-f]*: e9 a5 65 80 ldc\.w cp3,cr5,r5\[0x200\]
50171 + *[0-9a-f]*: e9 a4 44 7f ldc\.w cp2,cr4,r4\[0x1fc\]
50172 + *[0-9a-f]*: e9 ad 89 24 ldc\.w cp4,cr9,sp\[0x90\]
50173 +
50174 +[0-9a-f]* <ldc_w2>:
50175 + *[0-9a-f]*: ef a0 00 40 ldc\.w cp0,cr0,--r0
50176 + *[0-9a-f]*: ef af ef 40 ldc\.w cp7,cr15,--pc
50177 + *[0-9a-f]*: ef a5 65 40 ldc\.w cp3,cr5,--r5
50178 + *[0-9a-f]*: ef a4 44 40 ldc\.w cp2,cr4,--r4
50179 + *[0-9a-f]*: ef ad 89 40 ldc\.w cp4,cr9,--sp
50180 +
50181 +[0-9a-f]* <ldc_w3>:
50182 + *[0-9a-f]*: ef a0 10 00 ldc\.w cp0,cr0,r0\[r0\]
50183 + *[0-9a-f]*: ef af ff 3f ldc\.w cp7,cr15,pc\[pc<<0x3\]
50184 + *[0-9a-f]*: ef a5 75 24 ldc\.w cp3,cr5,r5\[r4<<0x2\]
50185 + *[0-9a-f]*: ef a4 54 13 ldc\.w cp2,cr4,r4\[r3<<0x1\]
50186 + *[0-9a-f]*: ef ad 99 0c ldc\.w cp4,cr9,sp\[r12\]
50187 +
50188 +[0-9a-f]* <ldc_d1>:
50189 + *[0-9a-f]*: e9 a0 10 00 ldc\.d cp0,cr0,r0\[0x0\]
50190 + *[0-9a-f]*: e9 af fe ff ldc\.d cp7,cr14,pc\[0x3fc\]
50191 + *[0-9a-f]*: e9 a5 76 80 ldc\.d cp3,cr6,r5\[0x200\]
50192 + *[0-9a-f]*: e9 a4 54 7f ldc\.d cp2,cr4,r4\[0x1fc\]
50193 + *[0-9a-f]*: e9 ad 98 24 ldc\.d cp4,cr8,sp\[0x90\]
50194 +
50195 +[0-9a-f]* <ldc_d2>:
50196 + *[0-9a-f]*: ef a0 00 50 ldc\.d cp0,cr0,--r0
50197 + *[0-9a-f]*: ef af ee 50 ldc\.d cp7,cr14,--pc
50198 + *[0-9a-f]*: ef a5 66 50 ldc\.d cp3,cr6,--r5
50199 + *[0-9a-f]*: ef a4 44 50 ldc\.d cp2,cr4,--r4
50200 + *[0-9a-f]*: ef ad 88 50 ldc\.d cp4,cr8,--sp
50201 +
50202 +[0-9a-f]* <ldc_d3>:
50203 + *[0-9a-f]*: ef a0 10 40 ldc\.d cp0,cr0,r0\[r0\]
50204 + *[0-9a-f]*: ef af fe 7f ldc\.d cp7,cr14,pc\[pc<<0x3\]
50205 + *[0-9a-f]*: ef a5 76 64 ldc\.d cp3,cr6,r5\[r4<<0x2\]
50206 + *[0-9a-f]*: ef a4 54 53 ldc\.d cp2,cr4,r4\[r3<<0x1\]
50207 + *[0-9a-f]*: ef ad 98 4c ldc\.d cp4,cr8,sp\[r12\]
50208 +
50209 +[0-9a-f]* <stc_w1>:
50210 + *[0-9a-f]*: eb a0 00 00 stc\.w cp0,r0\[0x0\],cr0
50211 + *[0-9a-f]*: eb af ef ff stc\.w cp7,pc\[0x3fc\],cr15
50212 + *[0-9a-f]*: eb a5 65 80 stc\.w cp3,r5\[0x200\],cr5
50213 + *[0-9a-f]*: eb a4 44 7f stc\.w cp2,r4\[0x1fc\],cr4
50214 + *[0-9a-f]*: eb ad 89 24 stc\.w cp4,sp\[0x90\],cr9
50215 +
50216 +[0-9a-f]* <stc_w2>:
50217 + *[0-9a-f]*: ef a0 00 60 stc\.w cp0,r0\+\+,cr0
50218 + *[0-9a-f]*: ef af ef 60 stc\.w cp7,pc\+\+,cr15
50219 + *[0-9a-f]*: ef a5 65 60 stc\.w cp3,r5\+\+,cr5
50220 + *[0-9a-f]*: ef a4 44 60 stc\.w cp2,r4\+\+,cr4
50221 + *[0-9a-f]*: ef ad 89 60 stc\.w cp4,sp\+\+,cr9
50222 +
50223 +[0-9a-f]* <stc_w3>:
50224 + *[0-9a-f]*: ef a0 10 80 stc\.w cp0,r0\[r0\],cr0
50225 + *[0-9a-f]*: ef af ff bf stc\.w cp7,pc\[pc<<0x3\],cr15
50226 + *[0-9a-f]*: ef a5 75 a4 stc\.w cp3,r5\[r4<<0x2\],cr5
50227 + *[0-9a-f]*: ef a4 54 93 stc\.w cp2,r4\[r3<<0x1\],cr4
50228 + *[0-9a-f]*: ef ad 99 8c stc\.w cp4,sp\[r12\],cr9
50229 +
50230 +[0-9a-f]* <stc_d1>:
50231 + *[0-9a-f]*: eb a0 10 00 stc\.d cp0,r0\[0x0\],cr0
50232 + *[0-9a-f]*: eb af fe ff stc\.d cp7,pc\[0x3fc\],cr14
50233 + *[0-9a-f]*: eb a5 76 80 stc\.d cp3,r5\[0x200\],cr6
50234 + *[0-9a-f]*: eb a4 54 7f stc\.d cp2,r4\[0x1fc\],cr4
50235 + *[0-9a-f]*: eb ad 98 24 stc\.d cp4,sp\[0x90\],cr8
50236 +
50237 +[0-9a-f]* <stc_d2>:
50238 + *[0-9a-f]*: ef a0 00 70 stc\.d cp0,r0\+\+,cr0
50239 + *[0-9a-f]*: ef af ee 70 stc\.d cp7,pc\+\+,cr14
50240 + *[0-9a-f]*: ef a5 66 70 stc\.d cp3,r5\+\+,cr6
50241 + *[0-9a-f]*: ef a4 44 70 stc\.d cp2,r4\+\+,cr4
50242 + *[0-9a-f]*: ef ad 88 70 stc\.d cp4,sp\+\+,cr8
50243 +
50244 +[0-9a-f]* <stc_d3>:
50245 + *[0-9a-f]*: ef a0 10 c0 stc\.d cp0,r0\[r0\],cr0
50246 + *[0-9a-f]*: ef af fe ff stc\.d cp7,pc\[pc<<0x3\],cr14
50247 + *[0-9a-f]*: ef a5 76 e4 stc\.d cp3,r5\[r4<<0x2\],cr6
50248 + *[0-9a-f]*: ef a4 54 d3 stc\.d cp2,r4\[r3<<0x1\],cr4
50249 + *[0-9a-f]*: ef ad 98 cc stc\.d cp4,sp\[r12\],cr8
50250 +
50251 +[0-9a-f]* <ldc0_w>:
50252 + *[0-9a-f]*: f1 a0 00 00 ldc0\.w cr0,r0\[0x0\]
50253 + *[0-9a-f]*: f1 af ff ff ldc0\.w cr15,pc\[0x3ffc\]
50254 + *[0-9a-f]*: f1 a5 85 00 ldc0\.w cr5,r5\[0x2000\]
50255 + *[0-9a-f]*: f1 a4 74 ff ldc0\.w cr4,r4\[0x1ffc\]
50256 + *[0-9a-f]*: f1 ad 09 93 ldc0\.w cr9,sp\[0x24c\]
50257 +
50258 +[0-9a-f]* <ldc0_d>:
50259 + *[0-9a-f]*: f3 a0 00 00 ldc0\.d cr0,r0\[0x0\]
50260 + *[0-9a-f]*: f3 af fe ff ldc0\.d cr14,pc\[0x3ffc\]
50261 + *[0-9a-f]*: f3 a5 86 00 ldc0\.d cr6,r5\[0x2000\]
50262 + *[0-9a-f]*: f3 a4 74 ff ldc0\.d cr4,r4\[0x1ffc\]
50263 + *[0-9a-f]*: f3 ad 08 93 ldc0\.d cr8,sp\[0x24c\]
50264 +
50265 +[0-9a-f]* <stc0_w>:
50266 + *[0-9a-f]*: f5 a0 00 00 stc0\.w r0\[0x0\],cr0
50267 + *[0-9a-f]*: f5 af ff ff stc0\.w pc\[0x3ffc\],cr15
50268 + *[0-9a-f]*: f5 a5 85 00 stc0\.w r5\[0x2000\],cr5
50269 + *[0-9a-f]*: f5 a4 74 ff stc0\.w r4\[0x1ffc\],cr4
50270 + *[0-9a-f]*: f5 ad 09 93 stc0\.w sp\[0x24c\],cr9
50271 +
50272 +[0-9a-f]* <stc0_d>:
50273 + *[0-9a-f]*: f7 a0 00 00 stc0\.d r0\[0x0\],cr0
50274 + *[0-9a-f]*: f7 af fe ff stc0\.d pc\[0x3ffc\],cr14
50275 + *[0-9a-f]*: f7 a5 86 00 stc0\.d r5\[0x2000\],cr6
50276 + *[0-9a-f]*: f7 a4 74 ff stc0\.d r4\[0x1ffc\],cr4
50277 + *[0-9a-f]*: f7 ad 08 93 stc0\.d sp\[0x24c\],cr8
50278 +
50279 +[0-9a-f]* <memc>:
50280 + *[0-9a-f]*: f6 10 00 00 memc 0,0x0
50281 + *[0-9a-f]*: f6 1f ff ff memc -4,0x1f
50282 + *[0-9a-f]*: f6 18 40 00 memc -65536,0x10
50283 + *[0-9a-f]*: f6 17 bf ff memc 65532,0xf
50284 +
50285 +[0-9a-f]* <mems>:
50286 + *[0-9a-f]*: f8 10 00 00 mems 0,0x0
50287 + *[0-9a-f]*: f8 1f ff ff mems -4,0x1f
50288 + *[0-9a-f]*: f8 18 40 00 mems -65536,0x10
50289 + *[0-9a-f]*: f8 17 bf ff mems 65532,0xf
50290 +
50291 +[0-9a-f]* <memt>:
50292 + *[0-9a-f]*: fa 10 00 00 memt 0,0x0
50293 + *[0-9a-f]*: fa 1f ff ff memt -4,0x1f
50294 + *[0-9a-f]*: fa 18 40 00 memt -65536,0x10
50295 + *[0-9a-f]*: fa 17 bf ff memt 65532,0xf
50296 +
50297 +[0-9a-f]* <stcond>:
50298 + *[0-9a-f]*: e1 70 00 00 stcond r0\[0\],r0
50299 + *[0-9a-f]*: ff 7f ff ff stcond pc\[-1\],pc
50300 + *[0-9a-f]*: f1 77 80 00 stcond r8\[-32768\],r7
50301 + *[0-9a-f]*: ef 78 7f ff stcond r7\[32767\],r8
50302 + *[0-9a-f]*: eb 7a 12 34 stcond r5\[4660\],r10
50303 +
50304 +[0-9a-f]* <ldcm_w>:
50305 + *[0-9a-f]*: ed af 00 ff ldcm\.w cp0,pc,cr0-cr7
50306 + *[0-9a-f]*: ed a0 e0 01 ldcm\.w cp7,r0,cr0
50307 + *[0-9a-f]*: ed a4 90 7f ldcm\.w cp4,r4\+\+,cr0-cr6
50308 + *[0-9a-f]*: ed a7 60 80 ldcm\.w cp3,r7,cr7
50309 + *[0-9a-f]*: ed ac 30 72 ldcm\.w cp1,r12\+\+,cr1,cr4-cr6
50310 + *[0-9a-f]*: ed af 01 ff ldcm\.w cp0,pc,cr8-cr15
50311 + *[0-9a-f]*: ed a0 e1 01 ldcm\.w cp7,r0,cr8
50312 + *[0-9a-f]*: ed a4 91 7f ldcm\.w cp4,r4\+\+,cr8-cr14
50313 + *[0-9a-f]*: ed a7 61 80 ldcm\.w cp3,r7,cr15
50314 + *[0-9a-f]*: ed ac 31 72 ldcm\.w cp1,r12\+\+,cr9,cr12-cr14
50315 +
50316 +[0-9a-f]* <ldcm_d>:
50317 + *[0-9a-f]*: ed af 04 ff ldcm\.d cp0,pc,cr0-cr15
50318 + *[0-9a-f]*: ed a0 e4 01 ldcm\.d cp7,r0,cr0-cr1
50319 + *[0-9a-f]*: ed a4 94 7f ldcm\.d cp4,r4\+\+,cr0-cr13
50320 + *[0-9a-f]*: ed a7 64 80 ldcm\.d cp3,r7,cr14-cr15
50321 + *[0-9a-f]*: ed ac 54 93 ldcm\.d cp2,r12\+\+,cr0-cr3,cr8-cr9,cr14-cr15
50322 +
50323 +[0-9a-f]* <stcm_w>:
50324 + *[0-9a-f]*: ed af 02 ff stcm\.w cp0,pc,cr0-cr7
50325 + *[0-9a-f]*: ed a0 e2 01 stcm\.w cp7,r0,cr0
50326 + *[0-9a-f]*: ed a4 92 7f stcm\.w cp4,--r4,cr0-cr6
50327 + *[0-9a-f]*: ed a7 62 80 stcm\.w cp3,r7,cr7
50328 + *[0-9a-f]*: ed ac 32 72 stcm\.w cp1,--r12,cr1,cr4-cr6
50329 + *[0-9a-f]*: ed af 03 ff stcm\.w cp0,pc,cr8-cr15
50330 + *[0-9a-f]*: ed a0 e3 01 stcm\.w cp7,r0,cr8
50331 + *[0-9a-f]*: ed a4 93 7f stcm\.w cp4,--r4,cr8-cr14
50332 + *[0-9a-f]*: ed a7 63 80 stcm\.w cp3,r7,cr15
50333 + *[0-9a-f]*: ed ac 33 72 stcm\.w cp1,--r12,cr9,cr12-cr14
50334 +
50335 +[0-9a-f]* <stcm_d>:
50336 + *[0-9a-f]*: ed af 05 ff stcm\.d cp0,pc,cr0-cr15
50337 + *[0-9a-f]*: ed a0 e5 01 stcm\.d cp7,r0,cr0-cr1
50338 + *[0-9a-f]*: ed a4 95 7f stcm\.d cp4,--r4,cr0-cr13
50339 + *[0-9a-f]*: ed a7 65 80 stcm\.d cp3,r7,cr14-cr15
50340 + *[0-9a-f]*: ed ac 55 93 stcm\.d cp2,--r12,cr0-cr3,cr8-cr9,cr14-cr15
50341 +
50342 +[0-9a-f]* <mvcr_w>:
50343 + *[0-9a-f]*: ef af ef 00 mvcr\.w cp7,pc,cr15
50344 + *[0-9a-f]*: ef a0 00 00 mvcr\.w cp0,r0,cr0
50345 + *[0-9a-f]*: ef af 0f 00 mvcr\.w cp0,pc,cr15
50346 + *[0-9a-f]*: ef a0 ef 00 mvcr\.w cp7,r0,cr15
50347 + *[0-9a-f]*: ef af e0 00 mvcr\.w cp7,pc,cr0
50348 + *[0-9a-f]*: ef a7 88 00 mvcr\.w cp4,r7,cr8
50349 + *[0-9a-f]*: ef a8 67 00 mvcr\.w cp3,r8,cr7
50350 +
50351 +[0-9a-f]* <mvcr_d>:
50352 + *[0-9a-f]*: ef ae ee 10 mvcr\.d cp7,lr,cr14
50353 + *[0-9a-f]*: ef a0 00 10 mvcr\.d cp0,r0,cr0
50354 + *[0-9a-f]*: ef ae 0e 10 mvcr\.d cp0,lr,cr14
50355 + *[0-9a-f]*: ef a0 ee 10 mvcr\.d cp7,r0,cr14
50356 + *[0-9a-f]*: ef ae e0 10 mvcr\.d cp7,lr,cr0
50357 + *[0-9a-f]*: ef a6 88 10 mvcr\.d cp4,r6,cr8
50358 + *[0-9a-f]*: ef a8 66 10 mvcr\.d cp3,r8,cr6
50359 +
50360 +[0-9a-f]* <mvrc_w>:
50361 + *[0-9a-f]*: ef af ef 20 mvrc\.w cp7,cr15,pc
50362 + *[0-9a-f]*: ef a0 00 20 mvrc\.w cp0,cr0,r0
50363 + *[0-9a-f]*: ef af 0f 20 mvrc\.w cp0,cr15,pc
50364 + *[0-9a-f]*: ef a0 ef 20 mvrc\.w cp7,cr15,r0
50365 + *[0-9a-f]*: ef af e0 20 mvrc\.w cp7,cr0,pc
50366 + *[0-9a-f]*: ef a7 88 20 mvrc\.w cp4,cr8,r7
50367 + *[0-9a-f]*: ef a8 67 20 mvrc\.w cp3,cr7,r8
50368 +
50369 +[0-9a-f]* <mvrc_d>:
50370 + *[0-9a-f]*: ef ae ee 30 mvrc\.d cp7,cr14,lr
50371 + *[0-9a-f]*: ef a0 00 30 mvrc\.d cp0,cr0,r0
50372 + *[0-9a-f]*: ef ae 0e 30 mvrc\.d cp0,cr14,lr
50373 + *[0-9a-f]*: ef a0 ee 30 mvrc\.d cp7,cr14,r0
50374 + *[0-9a-f]*: ef ae e0 30 mvrc\.d cp7,cr0,lr
50375 + *[0-9a-f]*: ef a6 88 30 mvrc\.d cp4,cr8,r6
50376 + *[0-9a-f]*: ef a8 66 30 mvrc\.d cp3,cr6,r8
50377 +
50378 +[0-9a-f]* <bfexts>:
50379 + *[0-9a-f]*: ff df b3 ff bfexts pc,pc,0x1f,0x1f
50380 + *[0-9a-f]*: e1 d0 b0 00 bfexts r0,r0,0x0,0x0
50381 + *[0-9a-f]*: e1 df b3 ff bfexts r0,pc,0x1f,0x1f
50382 + *[0-9a-f]*: ff d0 b3 ff bfexts pc,r0,0x1f,0x1f
50383 + *[0-9a-f]*: ff df b0 1f bfexts pc,pc,0x0,0x1f
50384 + *[0-9a-f]*: ff df b3 e0 bfexts pc,pc,0x1f,0x0
50385 + *[0-9a-f]*: ef d8 b1 f0 bfexts r7,r8,0xf,0x10
50386 + *[0-9a-f]*: f1 d7 b2 0f bfexts r8,r7,0x10,0xf
50387 +
50388 +[0-9a-f]* <bfextu>:
50389 + *[0-9a-f]*: ff df c3 ff bfextu pc,pc,0x1f,0x1f
50390 + *[0-9a-f]*: e1 d0 c0 00 bfextu r0,r0,0x0,0x0
50391 + *[0-9a-f]*: e1 df c3 ff bfextu r0,pc,0x1f,0x1f
50392 + *[0-9a-f]*: ff d0 c3 ff bfextu pc,r0,0x1f,0x1f
50393 + *[0-9a-f]*: ff df c0 1f bfextu pc,pc,0x0,0x1f
50394 + *[0-9a-f]*: ff df c3 e0 bfextu pc,pc,0x1f,0x0
50395 + *[0-9a-f]*: ef d8 c1 f0 bfextu r7,r8,0xf,0x10
50396 + *[0-9a-f]*: f1 d7 c2 0f bfextu r8,r7,0x10,0xf
50397 +
50398 +[0-9a-f]* <bfins>:
50399 + *[0-9a-f]*: ff df d3 ff bfins pc,pc,0x1f,0x1f
50400 + *[0-9a-f]*: e1 d0 d0 00 bfins r0,r0,0x0,0x0
50401 + *[0-9a-f]*: e1 df d3 ff bfins r0,pc,0x1f,0x1f
50402 + *[0-9a-f]*: ff d0 d3 ff bfins pc,r0,0x1f,0x1f
50403 + *[0-9a-f]*: ff df d0 1f bfins pc,pc,0x0,0x1f
50404 + *[0-9a-f]*: ff df d3 e0 bfins pc,pc,0x1f,0x0
50405 + *[0-9a-f]*: ef d8 d1 f0 bfins r7,r8,0xf,0x10
50406 + *[0-9a-f]*: f1 d7 d2 0f bfins r8,r7,0x10,0xf
50407 diff -Nrup binutils-2.17/gas/testsuite/gas/avr32/allinsn.exp binutils-2.17.atmel.1.3.0/gas/testsuite/gas/avr32/allinsn.exp
50408 --- binutils-2.17/gas/testsuite/gas/avr32/allinsn.exp 1970-01-01 01:00:00.000000000 +0100
50409 +++ binutils-2.17.atmel.1.3.0/gas/testsuite/gas/avr32/allinsn.exp 2007-03-26 10:19:48.000000000 +0200
50410 @@ -0,0 +1,5 @@
50411 +# AVR32 assembler testsuite. -*- Tcl -*-
50412 +
50413 +if [istarget avr32-*-*] {
50414 + run_dump_test "allinsn"
50415 +}
50416 diff -Nrup binutils-2.17/gas/testsuite/gas/avr32/allinsn.s binutils-2.17.atmel.1.3.0/gas/testsuite/gas/avr32/allinsn.s
50417 --- binutils-2.17/gas/testsuite/gas/avr32/allinsn.s 1970-01-01 01:00:00.000000000 +0100
50418 +++ binutils-2.17.atmel.1.3.0/gas/testsuite/gas/avr32/allinsn.s 2007-03-26 10:19:48.000000000 +0200
50419 @@ -0,0 +1,3242 @@
50420 + .data
50421 +foodata: .word 42
50422 + .text
50423 +footext:
50424 + .text
50425 + .global ld_d5
50426 +ld_d5:
50427 + ld.d lr,pc[pc<<3]
50428 + ld.d r0,r0[r0<<0]
50429 + ld.d r6,r5[r5<<2]
50430 + ld.d r4,r4[r4<<1]
50431 + ld.d lr,lr[lr<<1]
50432 + ld.d r10,r3[sp<<2]
50433 + ld.d r8,r10[r6<<2]
50434 + ld.d r2,r7[r9<<0]
50435 + .text
50436 + .global ld_w5
50437 +ld_w5:
50438 + ld.w pc,pc[pc<<0]
50439 + ld.w r12,r12[r12<<3]
50440 + ld.w r5,r5[r5<<2]
50441 + ld.w r4,r4[r4<<1]
50442 + ld.w lr,lr[lr<<1]
50443 + ld.w r2,r9[r9<<0]
50444 + ld.w r11,r2[r6<<0]
50445 + ld.w r0,r2[sp<<3]
50446 + .text
50447 + .global ld_sh5
50448 +ld_sh5:
50449 + ld.sh pc,pc[pc<<0]
50450 + ld.sh r12,r12[r12<<3]
50451 + ld.sh r5,r5[r5<<2]
50452 + ld.sh r4,r4[r4<<1]
50453 + ld.sh lr,lr[lr<<1]
50454 + ld.sh r11,r0[pc<<2]
50455 + ld.sh r10,sp[r6<<2]
50456 + ld.sh r12,r2[r2<<0]
50457 + .text
50458 + .global ld_uh5
50459 +ld_uh5:
50460 + ld.uh pc,pc[pc<<0]
50461 + ld.uh r12,r12[r12<<3]
50462 + ld.uh r5,r5[r5<<2]
50463 + ld.uh r4,r4[r4<<1]
50464 + ld.uh lr,lr[lr<<1]
50465 + ld.uh r8,pc[lr<<3]
50466 + ld.uh r6,r1[pc<<1]
50467 + ld.uh r6,lr[sp<<1]
50468 + .text
50469 + .global ld_sb2
50470 +ld_sb2:
50471 + ld.sb pc,pc[pc<<0]
50472 + ld.sb r12,r12[r12<<3]
50473 + ld.sb r5,r5[r5<<2]
50474 + ld.sb r4,r4[r4<<1]
50475 + ld.sb lr,lr[lr<<1]
50476 + ld.sb r9,r1[pc<<3]
50477 + ld.sb r0,r3[r11<<1]
50478 + ld.sb r10,r5[r5<<1]
50479 + .text
50480 + .global ld_ub5
50481 +ld_ub5:
50482 + ld.ub pc,pc[pc<<0]
50483 + ld.ub r12,r12[r12<<3]
50484 + ld.ub r5,r5[r5<<2]
50485 + ld.ub r4,r4[r4<<1]
50486 + ld.ub lr,lr[lr<<1]
50487 + ld.ub r6,r12[r7<<3]
50488 + ld.ub r2,r6[r12<<0]
50489 + ld.ub r0,r7[r11<<1]
50490 + .text
50491 + .global st_d5
50492 +st_d5:
50493 + st.d pc[pc<<0],r14
50494 + st.d r12[r12<<3],r12
50495 + st.d r5[r5<<2],r6
50496 + st.d r4[r4<<1],r4
50497 + st.d lr[lr<<1],lr
50498 + st.d r1[r9<<1],r4
50499 + st.d r10[r2<<1],r4
50500 + st.d r12[r6<<0],lr
50501 + .text
50502 + .global st_w5
50503 +st_w5:
50504 + st.w pc[pc<<0],pc
50505 + st.w r12[r12<<3],r12
50506 + st.w r5[r5<<2],r5
50507 + st.w r4[r4<<1],r4
50508 + st.w lr[lr<<1],lr
50509 + st.w r1[r10<<0],r3
50510 + st.w r0[r10<<1],r9
50511 + st.w r4[r5<<3],pc
50512 + .text
50513 + .global st_h5
50514 +st_h5:
50515 + st.h pc[pc<<0],pc
50516 + st.h r12[r12<<3],r12
50517 + st.h r5[r5<<2],r5
50518 + st.h r4[r4<<1],r4
50519 + st.h lr[lr<<1],lr
50520 + st.h r2[r9<<0],r11
50521 + st.h r5[r1<<2],r12
50522 + st.h pc[r8<<2],r3
50523 + .text
50524 + .global st_b5
50525 +st_b5:
50526 + st.b pc[pc<<0],pc
50527 + st.b r12[r12<<3],r12
50528 + st.b r5[r5<<2],r5
50529 + st.b r4[r4<<1],r4
50530 + st.b lr[lr<<1],lr
50531 + st.b r1[r8<<1],r6
50532 + st.b lr[lr<<3],r1
50533 + st.b r5[r0<<2],pc
50534 + .text
50535 + .global divs
50536 +divs:
50537 + divs pc,pc,pc
50538 + divs r12,r12,r12
50539 + divs r5,r5,r5
50540 + divs r4,r4,r4
50541 + divs lr,lr,lr
50542 + divs r3,pc,pc
50543 + divs r9,r12,r2
50544 + divs r7,r4,r1
50545 + .text
50546 + .global add1
50547 +add1:
50548 + add pc,pc
50549 + add r12,r12
50550 + add r5,r5
50551 + add r4,r4
50552 + add lr,lr
50553 + add r12,r9
50554 + add r6,r3
50555 + add r10,r12
50556 + .text
50557 + .global sub1
50558 +sub1:
50559 + sub pc,pc
50560 + sub r12,r12
50561 + sub r5,r5
50562 + sub r4,r4
50563 + sub lr,lr
50564 + sub lr,r6
50565 + sub r0,sp
50566 + sub r6,r12
50567 + .text
50568 + .global rsub1
50569 +rsub1:
50570 + rsub pc,pc
50571 + rsub r12,r12
50572 + rsub r5,r5
50573 + rsub r4,r4
50574 + rsub lr,lr
50575 + rsub r11,sp
50576 + rsub r7,r4
50577 + rsub r9,r1
50578 + .text
50579 + .global cp1
50580 +cp1:
50581 + cp pc,pc
50582 + cp r12,r12
50583 + cp r5,r5
50584 + cp r4,r4
50585 + cp lr,lr
50586 + cp r6,r2
50587 + cp r0,r9
50588 + cp r3,sp
50589 + .text
50590 + .global or1
50591 +or1:
50592 + or pc,pc
50593 + or r12,r12
50594 + or r5,r5
50595 + or r4,r4
50596 + or lr,lr
50597 + or r4,r9
50598 + or r11,r4
50599 + or r4,r0
50600 + .text
50601 + .global eor1
50602 +eor1:
50603 + eor pc,pc
50604 + eor r12,r12
50605 + eor r5,r5
50606 + eor r4,r4
50607 + eor lr,lr
50608 + eor r12,r11
50609 + eor r0,r1
50610 + eor r5,pc
50611 + .text
50612 + .global and1
50613 +and1:
50614 + and pc,pc
50615 + and r12,r12
50616 + and r5,r5
50617 + and r4,r4
50618 + and lr,lr
50619 + and r8,r1
50620 + and r0,sp
50621 + and r10,r5
50622 + .text
50623 + .global tst
50624 +tst:
50625 + tst pc,pc
50626 + tst r12,r12
50627 + tst r5,r5
50628 + tst r4,r4
50629 + tst lr,lr
50630 + tst r0,r12
50631 + tst r10,r6
50632 + tst sp,r4
50633 + .text
50634 + .global andn
50635 +andn:
50636 + andn pc,pc
50637 + andn r12,r12
50638 + andn r5,r5
50639 + andn r4,r4
50640 + andn lr,lr
50641 + andn r9,r12
50642 + andn r11,sp
50643 + andn r12,r5
50644 + .text
50645 + .global mov3
50646 +mov3:
50647 + mov pc,pc
50648 + mov r12,r12
50649 + mov r5,r5
50650 + mov r4,r4
50651 + mov lr,lr
50652 + mov r5,r9
50653 + mov r11,r11
50654 + mov r2,lr
50655 + .text
50656 + .global st_w1
50657 +st_w1:
50658 + st.w pc++,pc
50659 + st.w r12++,r12
50660 + st.w r5++,r5
50661 + st.w r4++,r4
50662 + st.w lr++,lr
50663 + st.w r1++,r11
50664 + st.w sp++,r0
50665 + st.w sp++,r1
50666 + .text
50667 + .global st_h1
50668 +st_h1:
50669 + st.h pc++,pc
50670 + st.h r12++,r12
50671 + st.h r5++,r5
50672 + st.h r4++,r4
50673 + st.h lr++,lr
50674 + st.h r12++,sp
50675 + st.h r7++,lr
50676 + st.h r7++,r4
50677 + .text
50678 + .global st_b1
50679 +st_b1:
50680 + st.b pc++,pc
50681 + st.b r12++,r12
50682 + st.b r5++,r5
50683 + st.b r4++,r4
50684 + st.b lr++,lr
50685 + st.b r9++,sp
50686 + st.b r1++,sp
50687 + st.b r0++,r4
50688 + .text
50689 + .global st_w2
50690 +st_w2:
50691 + st.w --pc,pc
50692 + st.w --r12,r12
50693 + st.w --r5,r5
50694 + st.w --r4,r4
50695 + st.w --lr,lr
50696 + st.w --r1,r7
50697 + st.w --r3,r9
50698 + st.w --r5,r5
50699 + .text
50700 + .global st_h2
50701 +st_h2:
50702 + st.h --pc,pc
50703 + st.h --r12,r12
50704 + st.h --r5,r5
50705 + st.h --r4,r4
50706 + st.h --lr,lr
50707 + st.h --r5,r7
50708 + st.h --r8,r8
50709 + st.h --r7,r2
50710 + .text
50711 + .global st_b2
50712 +st_b2:
50713 + st.b --pc,pc
50714 + st.b --r12,r12
50715 + st.b --r5,r5
50716 + st.b --r4,r4
50717 + st.b --lr,lr
50718 + st.b --sp,sp
50719 + st.b --sp,r11
50720 + st.b --r4,r5
50721 + .text
50722 + .global ld_w1
50723 +ld_w1:
50724 + ld.w pc,pc++
50725 + ld.w r12,r12++
50726 + ld.w r5,r5++
50727 + ld.w r4,r4++
50728 + ld.w lr,lr++
50729 + ld.w r3,r7++
50730 + ld.w r3,lr++
50731 + ld.w r12,r5++
50732 + .text
50733 + .global ld_sh1
50734 +ld_sh1:
50735 + ld.sh pc,pc++
50736 + ld.sh r12,r12++
50737 + ld.sh r5,r5++
50738 + ld.sh r4,r4++
50739 + ld.sh lr,lr++
50740 + ld.sh r11,r2++
50741 + ld.sh r2,r8++
50742 + ld.sh r7,r6++
50743 + .text
50744 + .global ld_uh1
50745 +ld_uh1:
50746 + ld.uh pc,pc++
50747 + ld.uh r12,r12++
50748 + ld.uh r5,r5++
50749 + ld.uh r4,r4++
50750 + ld.uh lr,lr++
50751 + ld.uh r6,r7++
50752 + ld.uh r10,r11++
50753 + ld.uh lr,r4++
50754 + .text
50755 + .global ld_ub1
50756 +ld_ub1:
50757 + ld.ub pc,pc++
50758 + ld.ub r12,r12++
50759 + ld.ub r5,r5++
50760 + ld.ub r4,r4++
50761 + ld.ub lr,lr++
50762 + ld.ub r8,lr++
50763 + ld.ub r12,r12++
50764 + ld.ub r11,r10++
50765 + .text
50766 + .global ld_w2
50767 +ld_w2:
50768 + ld.w pc,--pc
50769 + ld.w r12,--r12
50770 + ld.w r5,--r5
50771 + ld.w r4,--r4
50772 + ld.w lr,--lr
50773 + ld.w r10,--lr
50774 + ld.w r12,--r9
50775 + ld.w r6,--r5
50776 + .text
50777 + .global ld_sh2
50778 +ld_sh2:
50779 + ld.sh pc,--pc
50780 + ld.sh r12,--r12
50781 + ld.sh r5,--r5
50782 + ld.sh r4,--r4
50783 + ld.sh lr,--lr
50784 + ld.sh pc,--r10
50785 + ld.sh r6,--r3
50786 + ld.sh r4,--r6
50787 + .text
50788 + .global ld_uh2
50789 +ld_uh2:
50790 + ld.uh pc,--pc
50791 + ld.uh r12,--r12
50792 + ld.uh r5,--r5
50793 + ld.uh r4,--r4
50794 + ld.uh lr,--lr
50795 + ld.uh r3,--r2
50796 + ld.uh r1,--r0
50797 + ld.uh r2,--r9
50798 + .text
50799 + .global ld_ub2
50800 +ld_ub2:
50801 + ld.ub pc,--pc
50802 + ld.ub r12,--r12
50803 + ld.ub r5,--r5
50804 + ld.ub r4,--r4
50805 + ld.ub lr,--lr
50806 + ld.ub r1,--r1
50807 + ld.ub r0,--r6
50808 + ld.ub r2,--r7
50809 + .text
50810 + .global ld_ub3
50811 +ld_ub3:
50812 + ld.ub pc,pc[0]
50813 + ld.ub r12,r12[7]
50814 + ld.ub r5,r5[4]
50815 + ld.ub r4,r4[3]
50816 + ld.ub lr,lr[1]
50817 + ld.ub r6,r9[6]
50818 + ld.ub r2,lr[4]
50819 + ld.ub r1,r8[0]
50820 + .text
50821 + .global sub3_sp
50822 +sub3_sp:
50823 + sub sp,0
50824 + sub sp,-4
50825 + sub sp,-512
50826 + sub sp,508
50827 + sub sp,4
50828 + sub sp,44
50829 + sub sp,8
50830 + sub sp,348
50831 + .text
50832 + .global sub3
50833 +sub3:
50834 + sub pc,0
50835 + sub r12,-1
50836 + sub r5,-128
50837 + sub r4,127
50838 + sub lr,1
50839 + sub r6,-41
50840 + sub r4,37
50841 + sub r12,56
50842 + .text
50843 + .global mov1
50844 +mov1:
50845 + mov pc,0
50846 + mov r12,-1
50847 + mov r5,-128
50848 + mov r4,127
50849 + mov lr,1
50850 + mov pc,14
50851 + mov r6,-100
50852 + mov lr,-122
50853 + .text
50854 + .global lddsp
50855 +lddsp:
50856 + lddsp pc,sp[0]
50857 + lddsp r12,sp[508]
50858 + lddsp r5,sp[256]
50859 + lddsp r4,sp[252]
50860 + lddsp lr,sp[4]
50861 + lddsp lr,sp[256]
50862 + lddsp r12,sp[20]
50863 + lddsp r9,sp[472]
50864 + .text
50865 + .global lddpc
50866 +lddpc:
50867 + lddpc pc,pc[0]
50868 + lddpc r0,pc[508]
50869 + lddpc r8,pc[256]
50870 + lddpc r7,pc[252]
50871 + lddpc lr,pc[4]
50872 + lddpc sp,pc[472]
50873 + lddpc r6,pc[120]
50874 + lddpc r11,pc[28]
50875 + .text
50876 + .global stdsp
50877 +stdsp:
50878 + stdsp sp[0],pc
50879 + stdsp sp[508],r12
50880 + stdsp sp[256],r5
50881 + stdsp sp[252],r4
50882 + stdsp sp[4],lr
50883 + stdsp sp[304],pc
50884 + stdsp sp[256],r0
50885 + stdsp sp[336],r5
50886 + .text
50887 + .global cp2
50888 +cp2:
50889 + cp pc,0
50890 + cp r12,-1
50891 + cp r5,-32
50892 + cp r4,31
50893 + cp lr,1
50894 + cp r8,3
50895 + cp lr,16
50896 + cp r7,-26
50897 + .text
50898 + .global acr
50899 +acr:
50900 + acr pc
50901 + acr r12
50902 + acr r5
50903 + acr r4
50904 + acr lr
50905 + acr r2
50906 + acr r12
50907 + acr pc
50908 + .text
50909 + .global scr
50910 +scr:
50911 + scr pc
50912 + scr r12
50913 + scr r5
50914 + scr r4
50915 + scr lr
50916 + scr pc
50917 + scr r6
50918 + scr r1
50919 + .text
50920 + .global cpc0
50921 +cpc0:
50922 + cpc pc
50923 + cpc r12
50924 + cpc r5
50925 + cpc r4
50926 + cpc lr
50927 + cpc pc
50928 + cpc r4
50929 + cpc r9
50930 + .text
50931 + .global neg
50932 +neg:
50933 + neg pc
50934 + neg r12
50935 + neg r5
50936 + neg r4
50937 + neg lr
50938 + neg r7
50939 + neg r1
50940 + neg r9
50941 + .text
50942 + .global abs
50943 +abs:
50944 + abs pc
50945 + abs r12
50946 + abs r5
50947 + abs r4
50948 + abs lr
50949 + abs r6
50950 + abs r6
50951 + abs r4
50952 + .text
50953 + .global castu_b
50954 +castu_b:
50955 + castu.b pc
50956 + castu.b r12
50957 + castu.b r5
50958 + castu.b r4
50959 + castu.b lr
50960 + castu.b r7
50961 + castu.b sp
50962 + castu.b r9
50963 + .text
50964 + .global casts_b
50965 +casts_b:
50966 + casts.b pc
50967 + casts.b r12
50968 + casts.b r5
50969 + casts.b r4
50970 + casts.b lr
50971 + casts.b r11
50972 + casts.b r1
50973 + casts.b r10
50974 + .text
50975 + .global castu_h
50976 +castu_h:
50977 + castu.h pc
50978 + castu.h r12
50979 + castu.h r5
50980 + castu.h r4
50981 + castu.h lr
50982 + castu.h r10
50983 + castu.h r11
50984 + castu.h r1
50985 + .text
50986 + .global casts_h
50987 +casts_h:
50988 + casts.h pc
50989 + casts.h r12
50990 + casts.h r5
50991 + casts.h r4
50992 + casts.h lr
50993 + casts.h r0
50994 + casts.h r5
50995 + casts.h r9
50996 + .text
50997 + .global brev
50998 +brev:
50999 + brev pc
51000 + brev r12
51001 + brev r5
51002 + brev r4
51003 + brev lr
51004 + brev r5
51005 + brev r10
51006 + brev r8
51007 + .text
51008 + .global swap_h
51009 +swap_h:
51010 + swap.h pc
51011 + swap.h r12
51012 + swap.h r5
51013 + swap.h r4
51014 + swap.h lr
51015 + swap.h r7
51016 + swap.h r0
51017 + swap.h r8
51018 + .text
51019 + .global swap_b
51020 +swap_b:
51021 + swap.b pc
51022 + swap.b r12
51023 + swap.b r5
51024 + swap.b r4
51025 + swap.b lr
51026 + swap.b r10
51027 + swap.b r12
51028 + swap.b r1
51029 + .text
51030 + .global swap_bh
51031 +swap_bh:
51032 + swap.bh pc
51033 + swap.bh r12
51034 + swap.bh r5
51035 + swap.bh r4
51036 + swap.bh lr
51037 + swap.bh r9
51038 + swap.bh r4
51039 + swap.bh r1
51040 + .text
51041 + .global One_s_compliment
51042 +One_s_compliment:
51043 + com pc
51044 + com r12
51045 + com r5
51046 + com r4
51047 + com lr
51048 + com r2
51049 + com r2
51050 + com r7
51051 + .text
51052 + .global tnbz
51053 +tnbz:
51054 + tnbz pc
51055 + tnbz r12
51056 + tnbz r5
51057 + tnbz r4
51058 + tnbz lr
51059 + tnbz r8
51060 + tnbz r12
51061 + tnbz pc
51062 + .text
51063 + .global rol
51064 +rol:
51065 + rol pc
51066 + rol r12
51067 + rol r5
51068 + rol r4
51069 + rol lr
51070 + rol r10
51071 + rol r9
51072 + rol r5
51073 + .text
51074 + .global ror
51075 +ror:
51076 + ror pc
51077 + ror r12
51078 + ror r5
51079 + ror r4
51080 + ror lr
51081 + ror r8
51082 + ror r4
51083 + ror r7
51084 + .text
51085 + .global icall
51086 +icall:
51087 + icall pc
51088 + icall r12
51089 + icall r5
51090 + icall r4
51091 + icall lr
51092 + icall r3
51093 + icall r1
51094 + icall r3
51095 + .text
51096 + .global mustr
51097 +mustr:
51098 + mustr pc
51099 + mustr r12
51100 + mustr r5
51101 + mustr r4
51102 + mustr lr
51103 + mustr r1
51104 + mustr r4
51105 + mustr r12
51106 + .text
51107 + .global musfr
51108 +musfr:
51109 + musfr pc
51110 + musfr r12
51111 + musfr r5
51112 + musfr r4
51113 + musfr lr
51114 + musfr r11
51115 + musfr r12
51116 + musfr r2
51117 + .text
51118 + .global ret_cond
51119 +ret_cond:
51120 + reteq pc
51121 + retal r12
51122 + retls r5
51123 + retpl r4
51124 + retne lr
51125 + retgt r0
51126 + retgt r12
51127 + retge r10
51128 + .text
51129 + .global sr_cond
51130 +sr_cond:
51131 + sreq pc
51132 + sral r12
51133 + srls r5
51134 + srpl r4
51135 + srne lr
51136 + srlt r0
51137 + sral sp
51138 + srge r9
51139 + .text
51140 + .global ld_w3
51141 +ld_w3:
51142 + ld.w pc,pc[0]
51143 + ld.w r12,r12[124]
51144 + ld.w r5,r5[64]
51145 + ld.w r4,r4[60]
51146 + ld.w lr,lr[4]
51147 + ld.w sp,r2[52]
51148 + ld.w r9,r1[8]
51149 + ld.w r5,sp[60]
51150 + .text
51151 + .global ld_sh3
51152 +ld_sh3:
51153 + ld.sh pc,pc[0]
51154 + ld.sh r12,r12[14]
51155 + ld.sh r5,r5[8]
51156 + ld.sh r4,r4[6]
51157 + ld.sh lr,lr[2]
51158 + ld.sh r4,r2[8]
51159 + ld.sh sp,lr[10]
51160 + ld.sh r2,r11[2]
51161 + .text
51162 + .global ld_uh3
51163 +ld_uh3:
51164 + ld.uh pc,pc[0]
51165 + ld.uh r12,r12[14]
51166 + ld.uh r5,r5[8]
51167 + ld.uh r4,r4[6]
51168 + ld.uh lr,lr[2]
51169 + ld.uh r10,r0[10]
51170 + ld.uh r8,r11[8]
51171 + ld.uh r10,r2[12]
51172 + .text
51173 + .global st_w3
51174 +st_w3:
51175 + st.w pc[0],pc
51176 + st.w r12[60],r12
51177 + st.w r5[32],r5
51178 + st.w r4[28],r4
51179 + st.w lr[4],lr
51180 + st.w r7[44],r11
51181 + st.w r2[24],r6
51182 + st.w r4[12],r9
51183 + .text
51184 + .global st_h3
51185 +st_h3:
51186 + st.h pc[0],pc
51187 + st.h r12[14],r12
51188 + st.h r5[8],r5
51189 + st.h r4[6],r4
51190 + st.h lr[2],lr
51191 + st.h lr[10],r12
51192 + st.h r6[4],r0
51193 + st.h r5[12],sp
51194 + .text
51195 + .global st_b3
51196 +st_b3:
51197 + st.b pc[0],pc
51198 + st.b r12[7],r12
51199 + st.b r5[4],r5
51200 + st.b r4[3],r4
51201 + st.b lr[1],lr
51202 + st.b r12[6],r9
51203 + st.b r2[3],lr
51204 + st.b r1[3],r11
51205 + .text
51206 + .global ldd
51207 +ldd:
51208 + ld.d r0,pc
51209 + ld.d r14,r12
51210 + ld.d r8,r5
51211 + ld.d r6,r4
51212 + ld.d r2,lr
51213 + ld.d r14,r7
51214 + ld.d r4,r4
51215 + ld.d r14,pc
51216 + .text
51217 + .global ldd_postinc
51218 +ldd_postinc:
51219 + ld.d r0,pc++
51220 + ld.d r14,r12++
51221 + ld.d r8,r5++
51222 + ld.d r6,r4++
51223 + ld.d r2,lr++
51224 + ld.d r14,r5++
51225 + ld.d r12,r11++
51226 + ld.d r2,r12++
51227 + .text
51228 + .global ldd_predec
51229 +ldd_predec:
51230 + ld.d r0,--pc
51231 + ld.d r14,--r12
51232 + ld.d r8,--r5
51233 + ld.d r6,--r4
51234 + ld.d r2,--lr
51235 + ld.d r8,--r0
51236 + ld.d r10,--pc
51237 + ld.d r2,--r4
51238 + .text
51239 + .global std
51240 +std:
51241 + st.d pc,r0
51242 + st.d r12,r14
51243 + st.d r5,r8
51244 + st.d r4,r6
51245 + st.d lr,r2
51246 + st.d r0,r12
51247 + st.d sp,r4
51248 + st.d r12,r12
51249 + .text
51250 + .global std_postinc
51251 +std_postinc:
51252 + st.d pc++,r0
51253 + st.d r12++,r14
51254 + st.d r5++,r8
51255 + st.d r4++,r6
51256 + st.d lr++,r2
51257 + st.d sp++,r6
51258 + st.d r10++,r6
51259 + st.d r7++,r2
51260 + .text
51261 + .global std_predec
51262 +std_predec:
51263 + st.d --pc,r0
51264 + st.d --r12,r14
51265 + st.d --r5,r8
51266 + st.d --r4,r6
51267 + st.d --lr,r2
51268 + st.d --r3,r6
51269 + st.d --lr,r2
51270 + st.d --r0,r4
51271 + .text
51272 + .global mul
51273 +mul:
51274 + mul pc,pc
51275 + mul r12,r12
51276 + mul r5,r5
51277 + mul r4,r4
51278 + mul lr,lr
51279 + mul r10,lr
51280 + mul r0,r8
51281 + mul r8,r5
51282 + .text
51283 + .global asr_imm5
51284 +asr_imm5:
51285 + asr pc,0
51286 + asr r12,31
51287 + asr r5,16
51288 + asr r4,15
51289 + asr lr,1
51290 + asr r6,23
51291 + asr r6,18
51292 + asr r5,8
51293 + .text
51294 + .global lsl_imm5
51295 +lsl_imm5:
51296 + lsl pc,0
51297 + lsl r12,31
51298 + lsl r5,16
51299 + lsl r4,15
51300 + lsl lr,1
51301 + lsl r12,13
51302 + lsl r6,16
51303 + lsl r1,25
51304 + .text
51305 + .global lsr_imm5
51306 +lsr_imm5:
51307 + lsr pc,0
51308 + lsr r12,31
51309 + lsr r5,16
51310 + lsr r4,15
51311 + lsr lr,1
51312 + lsr r0,1
51313 + lsr r8,10
51314 + lsr r7,26
51315 + .text
51316 + .global sbr
51317 +sbr:
51318 + sbr pc,0
51319 + sbr r12,31
51320 + sbr r5,16
51321 + sbr r4,15
51322 + sbr lr,1
51323 + sbr r8,31
51324 + sbr r6,22
51325 + sbr r1,23
51326 + .text
51327 + .global cbr
51328 +cbr:
51329 + cbr pc,0
51330 + cbr r12,31
51331 + cbr r5,16
51332 + cbr r4,15
51333 + cbr lr,1
51334 + cbr r12,10
51335 + cbr r7,22
51336 + cbr r8,9
51337 + .text
51338 + .global brc1
51339 +brc1:
51340 + breq 0
51341 + brpl -2
51342 + brge -256
51343 + brcs 254
51344 + brne 2
51345 + brcs 230
51346 + breq -18
51347 + breq 12
51348 + .text
51349 + .global rjmp
51350 +rjmp:
51351 + rjmp 0
51352 + rjmp -2
51353 + rjmp -1024
51354 + rjmp 1022
51355 + rjmp 2
51356 + rjmp -962
51357 + rjmp 14
51358 + rjmp -516
51359 + .text
51360 + .global rcall1
51361 +rcall1:
51362 + rcall 0
51363 + rcall -2
51364 + rcall -1024
51365 + rcall 1022
51366 + rcall 2
51367 + rcall 216
51368 + rcall -530
51369 + rcall -972
51370 + .text
51371 + .global acall
51372 +acall:
51373 + acall 0
51374 + acall 1020
51375 + acall 512
51376 + acall 508
51377 + acall 4
51378 + acall 356
51379 + acall 304
51380 + acall 172
51381 + .text
51382 + .global scall
51383 +scall:
51384 + scall
51385 + scall
51386 + scall
51387 + scall
51388 + scall
51389 + scall
51390 + scall
51391 + scall
51392 + .text
51393 + .global popm
51394 +popm:
51395 + /* popm with no argument fails currently */
51396 + popm pc
51397 + popm r0-r11,pc,r12=-1
51398 + popm lr
51399 + popm r0-r11,pc,r12=1
51400 + popm r0-r3
51401 + popm r4-r10,pc
51402 + popm r0-r3,r11,pc,r12=0
51403 + popm r0-r7,r10-r12,lr
51404 + .text
51405 + .global pushm
51406 +pushm:
51407 + pushm pc
51408 + pushm r0-r12,lr,pc
51409 + pushm pc
51410 + pushm r0-r12,lr
51411 + pushm r0-r3
51412 + pushm r8-r10,lr,pc
51413 + pushm r0-r3,r10
51414 + pushm r8-r9,r12
51415 + .text
51416 + .global popm_n
51417 +popm_n:
51418 + popm pc
51419 + popm r0-r11,pc,r12=-1
51420 + popm lr
51421 + popm r0-r11,pc,r12=1
51422 + popm r0-r3
51423 + popm r4-r10,pc
51424 + popm r0-r3,r11,pc,r12=0
51425 + popm r0-r7,r10-r12,lr
51426 + .text
51427 + .global pushm_n
51428 +pushm_n:
51429 + pushm pc
51430 + pushm r0-r12,lr,pc
51431 + pushm pc
51432 + pushm r0-r12,lr
51433 + pushm r0-r3
51434 + pushm r8-r10,lr,pc
51435 + pushm r0-r3,r10
51436 + pushm r8-r9,r12
51437 + .text
51438 + .global csrfcz
51439 +csrfcz:
51440 + csrfcz 0
51441 + csrfcz 31
51442 + csrfcz 16
51443 + csrfcz 15
51444 + csrfcz 1
51445 + csrfcz 5
51446 + csrfcz 13
51447 + csrfcz 23
51448 + .text
51449 + .global ssrf
51450 +ssrf:
51451 + ssrf 0
51452 + ssrf 31
51453 + ssrf 16
51454 + ssrf 15
51455 + ssrf 1
51456 + ssrf 29
51457 + ssrf 13
51458 + ssrf 13
51459 + .text
51460 + .global csrf
51461 +csrf:
51462 + csrf 0
51463 + csrf 31
51464 + csrf 16
51465 + csrf 15
51466 + csrf 1
51467 + csrf 10
51468 + csrf 15
51469 + csrf 11
51470 + .text
51471 + .global rete
51472 +rete:
51473 + rete
51474 + .text
51475 + .global rets
51476 +rets:
51477 + rets
51478 + .text
51479 + .global retd
51480 +retd:
51481 + retd
51482 + .text
51483 + .global retj
51484 +retj:
51485 + retj
51486 + .text
51487 + .global tlbr
51488 +tlbr:
51489 + tlbr
51490 + .text
51491 + .global tlbs
51492 +tlbs:
51493 + tlbs
51494 + .text
51495 + .global tlbw
51496 +tlbw:
51497 + tlbw
51498 + .text
51499 + .global breakpoint
51500 +breakpoint:
51501 + breakpoint
51502 + .text
51503 + .global incjosp
51504 +incjosp:
51505 + incjosp 1
51506 + incjosp 2
51507 + incjosp 3
51508 + incjosp 4
51509 + incjosp -4
51510 + incjosp -3
51511 + incjosp -2
51512 + incjosp -1
51513 + .text
51514 + .global nop
51515 +nop:
51516 + nop
51517 + .text
51518 + .global popjc
51519 +popjc:
51520 + popjc
51521 + .text
51522 + .global pushjc
51523 +pushjc:
51524 + pushjc
51525 + .text
51526 + .global add2
51527 +add2:
51528 + add pc,pc,pc<<0
51529 + add r12,r12,r12<<3
51530 + add r5,r5,r5<<2
51531 + add r4,r4,r4<<1
51532 + add lr,lr,lr<<1
51533 + add r0,r12,r0<<1
51534 + add r9,r12,r4<<0
51535 + add r12,r12,r7<<2
51536 + .text
51537 + .global sub2
51538 +sub2:
51539 + sub pc,pc,pc<<0
51540 + sub r12,r12,r12<<3
51541 + sub r5,r5,r5<<2
51542 + sub r4,r4,r4<<1
51543 + sub lr,lr,lr<<1
51544 + sub sp,r3,r4<<0
51545 + sub r3,r7,r3<<0
51546 + sub sp,r10,sp<<1
51547 + .text
51548 + .global divu
51549 +divu:
51550 + divu pc,pc,pc
51551 + divu r12,r12,r12
51552 + divu r5,r5,r5
51553 + divu r4,r4,r4
51554 + divu lr,lr,lr
51555 + divu sp,r4,pc
51556 + divu r5,r5,sp
51557 + divu r10,sp,r0
51558 + .text
51559 + .global addhh_w
51560 +addhh_w:
51561 + addhh.w pc,pc:b,pc:b
51562 + addhh.w r12,r12:t,r12:t
51563 + addhh.w r5,r5:t,r5:t
51564 + addhh.w r4,r4:b,r4:b
51565 + addhh.w lr,lr:t,lr:t
51566 + addhh.w r0,r0:b,r3:b
51567 + addhh.w lr,r12:t,r7:b
51568 + addhh.w r3,r10:t,r2:b
51569 + .text
51570 + .global subhh_w
51571 +subhh_w:
51572 + subhh.w pc,pc:b,pc:b
51573 + subhh.w r12,r12:t,r12:t
51574 + subhh.w r5,r5:t,r5:t
51575 + subhh.w r4,r4:b,r4:b
51576 + subhh.w lr,lr:t,lr:t
51577 + subhh.w r10,r1:t,r7:b
51578 + subhh.w pc,r10:t,lr:t
51579 + subhh.w r3,r0:t,r12:b
51580 + .text
51581 + .global adc
51582 +adc:
51583 + adc pc,pc,pc
51584 + adc r12,r12,r12
51585 + adc r5,r5,r5
51586 + adc r4,r4,r4
51587 + adc lr,lr,lr
51588 + adc r4,r0,r7
51589 + adc sp,r4,r3
51590 + adc r2,r12,r0
51591 + .text
51592 + .global sbc
51593 +sbc:
51594 + sbc pc,pc,pc
51595 + sbc r12,r12,r12
51596 + sbc r5,r5,r5
51597 + sbc r4,r4,r4
51598 + sbc lr,lr,lr
51599 + sbc r6,r7,r9
51600 + sbc r0,r8,r5
51601 + sbc r1,r0,r4
51602 + .text
51603 + .global mul_2
51604 +mul_2:
51605 + mul pc,pc,pc
51606 + mul r12,r12,r12
51607 + mul r5,r5,r5
51608 + mul r4,r4,r4
51609 + mul lr,lr,lr
51610 + mul pc,r0,r0
51611 + mul r8,pc,lr
51612 + mul r4,r12,pc
51613 + .text
51614 + .global mac
51615 +mac:
51616 + mac pc,pc,pc
51617 + mac r12,r12,r12
51618 + mac r5,r5,r5
51619 + mac r4,r4,r4
51620 + mac lr,lr,lr
51621 + mac r10,r4,r0
51622 + mac r7,lr,r0
51623 + mac r2,r9,r12
51624 + .text
51625 + .global mulsd
51626 +mulsd:
51627 + muls.d pc,pc,pc
51628 + muls.d r12,r12,r12
51629 + muls.d r5,r5,r5
51630 + muls.d r4,r4,r4
51631 + muls.d lr,lr,lr
51632 + muls.d r2,r8,lr
51633 + muls.d r4,r0,r11
51634 + muls.d r5,lr,r6
51635 + .text
51636 + .global macsd
51637 +macsd:
51638 + macs.d r0,pc,pc
51639 + macs.d r14,r12,r12
51640 + macs.d r8,r5,r5
51641 + macs.d r6,r4,r4
51642 + macs.d r2,lr,lr
51643 + macs.d r8,r1,r9
51644 + macs.d r14,r8,r8
51645 + macs.d r4,r3,r12
51646 + .text
51647 + .global mulud
51648 +mulud:
51649 + mulu.d r0,pc,pc
51650 + mulu.d r14,r12,r12
51651 + mulu.d r8,r5,r5
51652 + mulu.d r6,r4,r4
51653 + mulu.d r2,lr,lr
51654 + mulu.d r6,r5,r0
51655 + mulu.d r4,r6,r1
51656 + mulu.d r8,r8,r2
51657 + .text
51658 + .global macud
51659 +macud:
51660 + macu.d r0,pc,pc
51661 + macu.d r14,r12,r12
51662 + macu.d r8,r5,r5
51663 + macu.d r6,r4,r4
51664 + macu.d r2,lr,lr
51665 + macu.d r6,sp,r11
51666 + macu.d r2,r4,r8
51667 + macu.d r6,r10,r9
51668 + .text
51669 + .global asr_1
51670 +asr_1:
51671 + asr pc,pc,pc
51672 + asr r12,r12,r12
51673 + asr r5,r5,r5
51674 + asr r4,r4,r4
51675 + asr lr,lr,lr
51676 + asr pc,r6,pc
51677 + asr r0,r6,r12
51678 + asr r4,sp,r0
51679 + .text
51680 + .global lsl_1
51681 +lsl_1:
51682 + lsl pc,pc,pc
51683 + lsl r12,r12,r12
51684 + lsl r5,r5,r5
51685 + lsl r4,r4,r4
51686 + lsl lr,lr,lr
51687 + lsl lr,r5,lr
51688 + lsl r5,pc,r3
51689 + lsl r1,pc,r9
51690 + .text
51691 + .global lsr_1
51692 +lsr_1:
51693 + lsr pc,pc,pc
51694 + lsr r12,r12,r12
51695 + lsr r5,r5,r5
51696 + lsr r4,r4,r4
51697 + lsr lr,lr,lr
51698 + lsr r2,r4,r1
51699 + lsr r5,r1,r6
51700 + lsr sp,r6,r7
51701 + .text
51702 + .global xchg
51703 +xchg:
51704 + xchg pc,pc,pc
51705 + xchg r12,r12,r12
51706 + xchg r5,r5,r5
51707 + xchg r4,r4,r4
51708 + xchg lr,lr,lr
51709 + xchg lr,r4,sp
51710 + xchg r1,r5,r12
51711 + xchg lr,r12,r0
51712 + .text
51713 + .global max
51714 +max:
51715 + max pc,pc,pc
51716 + max r12,r12,r12
51717 + max r5,r5,r5
51718 + max r4,r4,r4
51719 + max lr,lr,lr
51720 + max lr,r2,sp
51721 + max r4,r10,r9
51722 + max lr,r9,lr
51723 + .text
51724 + .global min
51725 +min:
51726 + min pc,pc,pc
51727 + min r12,r12,r12
51728 + min r5,r5,r5
51729 + min r4,r4,r4
51730 + min lr,lr,lr
51731 + min r9,r7,r8
51732 + min sp,r5,r5
51733 + min r4,r1,r4
51734 + .text
51735 + .global addabs
51736 +addabs:
51737 + addabs pc,pc,pc
51738 + addabs r12,r12,r12
51739 + addabs r5,r5,r5
51740 + addabs r4,r4,r4
51741 + addabs lr,lr,lr
51742 + addabs r7,r10,r0
51743 + addabs r9,r9,r7
51744 + addabs r2,r8,r12
51745 + .text
51746 + .global mulnhh_w
51747 +mulnhh_w:
51748 + mulnhh.w pc,pc:b,pc:b
51749 + mulnhh.w r12,r12:t,r12:t
51750 + mulnhh.w r5,r5:t,r5:t
51751 + mulnhh.w r4,r4:b,r4:b
51752 + mulnhh.w lr,lr:t,lr:t
51753 + mulnhh.w r11,sp:t,r9:b
51754 + mulnhh.w sp,r4:b,lr:t
51755 + mulnhh.w r12,r2:t,r11:b
51756 + .text
51757 + .global mulnwh_d
51758 +mulnwh_d:
51759 + mulnwh.d r0,pc,pc:b
51760 + mulnwh.d r14,r12,r12:t
51761 + mulnwh.d r8,r5,r5:t
51762 + mulnwh.d r6,r4,r4:b
51763 + mulnwh.d r2,lr,lr:t
51764 + mulnwh.d r14,r3,r2:t
51765 + mulnwh.d r4,r5,r9:b
51766 + mulnwh.d r12,r4,r4:t
51767 + .text
51768 + .global machh_w
51769 +machh_w:
51770 + machh.w pc,pc:b,pc:b
51771 + machh.w r12,r12:t,r12:t
51772 + machh.w r5,r5:t,r5:t
51773 + machh.w r4,r4:b,r4:b
51774 + machh.w lr,lr:t,lr:t
51775 + machh.w lr,r5:b,r1:t
51776 + machh.w r9,r6:b,r7:b
51777 + machh.w r5,lr:t,r12:b
51778 + .text
51779 + .global machh_d
51780 +machh_d:
51781 + machh.d r0,pc:b,pc:b
51782 + machh.d r14,r12:t,r12:t
51783 + machh.d r8,r5:t,r5:t
51784 + machh.d r6,r4:b,r4:b
51785 + machh.d r2,lr:t,lr:t
51786 + machh.d r10,r0:b,r8:b
51787 + machh.d r14,r4:b,r5:t
51788 + machh.d r8,r0:b,r4:t
51789 + .text
51790 + .global macsathh_w
51791 +macsathh_w:
51792 + macsathh.w pc,pc:b,pc:b
51793 + macsathh.w r12,r12:t,r12:t
51794 + macsathh.w r5,r5:t,r5:t
51795 + macsathh.w r4,r4:b,r4:b
51796 + macsathh.w lr,lr:t,lr:t
51797 + macsathh.w r7,r7:t,pc:t
51798 + macsathh.w r4,r2:t,r4:b
51799 + macsathh.w r4,r8:t,r3:t
51800 + .text
51801 + .global mulhh_w
51802 +mulhh_w:
51803 + mulhh.w pc,pc:b,pc:b
51804 + mulhh.w r12,r12:t,r12:t
51805 + mulhh.w r5,r5:t,r5:t
51806 + mulhh.w r4,r4:b,r4:b
51807 + mulhh.w lr,lr:t,lr:t
51808 + mulhh.w r7,r4:t,r9:b
51809 + mulhh.w pc,r3:t,r7:t
51810 + mulhh.w pc,r4:b,r9:t
51811 + .text
51812 + .global mulsathh_h
51813 +mulsathh_h:
51814 + mulsathh.h pc,pc:b,pc:b
51815 + mulsathh.h r12,r12:t,r12:t
51816 + mulsathh.h r5,r5:t,r5:t
51817 + mulsathh.h r4,r4:b,r4:b
51818 + mulsathh.h lr,lr:t,lr:t
51819 + mulsathh.h r3,r1:b,sp:b
51820 + mulsathh.h r11,lr:t,r11:b
51821 + mulsathh.h r8,r8:b,r11:t
51822 + .text
51823 + .global mulsathh_w
51824 +mulsathh_w:
51825 + mulsathh.w pc,pc:b,pc:b
51826 + mulsathh.w r12,r12:t,r12:t
51827 + mulsathh.w r5,r5:t,r5:t
51828 + mulsathh.w r4,r4:b,r4:b
51829 + mulsathh.w lr,lr:t,lr:t
51830 + mulsathh.w lr,r11:t,r6:b
51831 + mulsathh.w r6,r6:b,r7:t
51832 + mulsathh.w r10,r2:b,r3:b
51833 + .text
51834 + .global mulsatrndhh_h
51835 +mulsatrndhh_h:
51836 + mulsatrndhh.h pc,pc:b,pc:b
51837 + mulsatrndhh.h r12,r12:t,r12:t
51838 + mulsatrndhh.h r5,r5:t,r5:t
51839 + mulsatrndhh.h r4,r4:b,r4:b
51840 + mulsatrndhh.h lr,lr:t,lr:t
51841 + mulsatrndhh.h r11,r6:b,r9:b
51842 + mulsatrndhh.h r11,r3:b,r8:t
51843 + mulsatrndhh.h r5,sp:t,r7:t
51844 + .text
51845 + .global mulsatrndwh_w
51846 +mulsatrndwh_w:
51847 + mulsatrndwh.w pc,pc,pc:b
51848 + mulsatrndwh.w r12,r12,r12:t
51849 + mulsatrndwh.w r5,r5,r5:t
51850 + mulsatrndwh.w r4,r4,r4:b
51851 + mulsatrndwh.w lr,lr,lr:t
51852 + mulsatrndwh.w r5,r12,r0:b
51853 + mulsatrndwh.w r7,r10,pc:b
51854 + mulsatrndwh.w r10,r8,r5:t
51855 + .text
51856 + .global macwh_d
51857 +macwh_d:
51858 + macwh.d r0,pc,pc:b
51859 + macwh.d r14,r12,r12:t
51860 + macwh.d r8,r5,r5:t
51861 + macwh.d r6,r4,r4:b
51862 + macwh.d r2,lr,lr:t
51863 + macwh.d r4,r10,r12:t
51864 + macwh.d r4,r7,sp:b
51865 + macwh.d r14,r9,r11:b
51866 + .text
51867 + .global mulwh_d
51868 +mulwh_d:
51869 + mulwh.d r0,pc,pc:b
51870 + mulwh.d r14,r12,r12:t
51871 + mulwh.d r8,r5,r5:t
51872 + mulwh.d r6,r4,r4:b
51873 + mulwh.d r2,lr,lr:t
51874 + mulwh.d r12,r5,r1:b
51875 + mulwh.d r0,r1,r3:t
51876 + mulwh.d r0,r9,r2:b
51877 + .text
51878 + .global mulsatwh_w
51879 +mulsatwh_w:
51880 + mulsatwh.w pc,pc,pc:b
51881 + mulsatwh.w r12,r12,r12:t
51882 + mulsatwh.w r5,r5,r5:t
51883 + mulsatwh.w r4,r4,r4:b
51884 + mulsatwh.w lr,lr,lr:t
51885 + mulsatwh.w r11,pc,r10:t
51886 + mulsatwh.w sp,r12,r9:t
51887 + mulsatwh.w r0,r3,r2:t
51888 + .text
51889 + .global ldw7
51890 +ldw7:
51891 + ld.w pc,pc[pc:b<<2]
51892 + ld.w r12,r12[r12:t<<2]
51893 + ld.w r5,r5[r5:u<<2]
51894 + ld.w r4,r4[r4:l<<2]
51895 + ld.w lr,lr[lr:l<<2]
51896 + ld.w r9,r10[r6:l<<2]
51897 + ld.w r2,r10[r10:b<<2]
51898 + ld.w r11,r5[pc:b<<2]
51899 + .text
51900 + .global satadd_w
51901 +satadd_w:
51902 + satadd.w pc,pc,pc
51903 + satadd.w r12,r12,r12
51904 + satadd.w r5,r5,r5
51905 + satadd.w r4,r4,r4
51906 + satadd.w lr,lr,lr
51907 + satadd.w r4,r8,r11
51908 + satadd.w r3,r12,r6
51909 + satadd.w r3,lr,r9
51910 + .text
51911 + .global satsub_w1
51912 +satsub_w1:
51913 + satsub.w pc,pc,pc
51914 + satsub.w r12,r12,r12
51915 + satsub.w r5,r5,r5
51916 + satsub.w r4,r4,r4
51917 + satsub.w lr,lr,lr
51918 + satsub.w r8,sp,r0
51919 + satsub.w r9,r8,r4
51920 + satsub.w pc,lr,r2
51921 + .text
51922 + .global satadd_h
51923 +satadd_h:
51924 + satadd.h pc,pc,pc
51925 + satadd.h r12,r12,r12
51926 + satadd.h r5,r5,r5
51927 + satadd.h r4,r4,r4
51928 + satadd.h lr,lr,lr
51929 + satadd.h r7,r3,r9
51930 + satadd.h r1,r0,r2
51931 + satadd.h r1,r4,lr
51932 + .text
51933 + .global satsub_h
51934 +satsub_h:
51935 + satsub.h pc,pc,pc
51936 + satsub.h r12,r12,r12
51937 + satsub.h r5,r5,r5
51938 + satsub.h r4,r4,r4
51939 + satsub.h lr,lr,lr
51940 + satsub.h lr,lr,r3
51941 + satsub.h r11,r6,r5
51942 + satsub.h r3,sp,r0
51943 + .text
51944 + .global mul3
51945 +mul3:
51946 + mul pc,pc,0
51947 + mul r12,r12,-1
51948 + mul r5,r5,-128
51949 + mul r4,r4,127
51950 + mul lr,lr,1
51951 + mul r12,r2,-7
51952 + mul r1,pc,95
51953 + mul r4,r6,19
51954 + .text
51955 + .global rsub2
51956 +rsub2:
51957 + rsub pc,pc,0
51958 + rsub r12,r12,-1
51959 + rsub r5,r5,-128
51960 + rsub r4,r4,127
51961 + rsub lr,lr,1
51962 + rsub r9,lr,96
51963 + rsub r11,r1,56
51964 + rsub r0,r7,-87
51965 + .text
51966 + .global clz
51967 +clz:
51968 + clz pc,pc
51969 + clz r12,r12
51970 + clz r5,r5
51971 + clz r4,r4
51972 + clz lr,lr
51973 + clz r2,r3
51974 + clz r5,r11
51975 + clz pc,r3
51976 + .text
51977 + .global cpc1
51978 +cpc1:
51979 + cpc pc,pc
51980 + cpc r12,r12
51981 + cpc r5,r5
51982 + cpc r4,r4
51983 + cpc lr,lr
51984 + cpc pc,r4
51985 + cpc r5,r9
51986 + cpc r6,r7
51987 + .text
51988 + .global asr3
51989 +asr3:
51990 + asr pc,pc,0
51991 + asr r12,r12,31
51992 + asr r5,r5,16
51993 + asr r4,r4,15
51994 + asr lr,lr,1
51995 + asr r4,r11,19
51996 + asr sp,pc,26
51997 + asr r11,sp,8
51998 + .text
51999 + .global lsl3
52000 +lsl3:
52001 + lsl pc,pc,0
52002 + lsl r12,r12,31
52003 + lsl r5,r5,16
52004 + lsl r4,r4,15
52005 + lsl lr,lr,1
52006 + lsl r8,r10,17
52007 + lsl r2,lr,3
52008 + lsl lr,r11,14
52009 + .text
52010 + .global lsr3
52011 +lsr3:
52012 + lsr pc,pc,0
52013 + lsr r12,r12,31
52014 + lsr r5,r5,16
52015 + lsr r4,r4,15
52016 + lsr lr,lr,1
52017 + lsr r4,r3,31
52018 + lsr pc,r9,14
52019 + lsr r3,r0,6
52020 +/* .text
52021 + .global extract_b
52022 +extract_b:
52023 + extract.b pc,pc:b
52024 + extract.b r12,r12:t
52025 + extract.b r5,r5:u
52026 + extract.b r4,r4:l
52027 + extract.b lr,lr:l
52028 + extract.b r2,r5:l
52029 + extract.b r12,r3:l
52030 + extract.b sp,r3:l
52031 + .text
52032 + .global insert_b
52033 +insert_b:
52034 + insert.b pc:b,pc
52035 + insert.b r12:t,r12
52036 + insert.b r5:u,r5
52037 + insert.b r4:l,r4
52038 + insert.b lr:l,lr
52039 + insert.b r12:u,r3
52040 + insert.b r10:l,lr
52041 + insert.b r11:l,r12
52042 + .text
52043 + .global extract_h
52044 +extract_h:
52045 + extract.h pc,pc:b
52046 + extract.h r12,r12:t
52047 + extract.h r5,r5:t
52048 + extract.h r4,r4:b
52049 + extract.h lr,lr:t
52050 + extract.h r11,lr:b
52051 + extract.h r10,r0:b
52052 + extract.h r11,r12:b
52053 + .text
52054 + .global insert_h
52055 +insert_h:
52056 + insert.h pc:b,pc
52057 + insert.h r12:t,r12
52058 + insert.h r5:t,r5
52059 + insert.h r4:b,r4
52060 + insert.h lr:t,lr
52061 + insert.h r12:t,r11
52062 + insert.h r7:b,r6
52063 + insert.h r1:t,r11 */
52064 + .text
52065 + .global movc1
52066 +movc1:
52067 + moveq pc,pc
52068 + moval r12,r12
52069 + movls r5,r5
52070 + movpl r4,r4
52071 + movne lr,lr
52072 + movne pc,r11
52073 + movmi r10,r2
52074 + movls r8,r12
52075 + .text
52076 + .global padd_h
52077 +padd_h:
52078 + padd.h pc,pc,pc
52079 + padd.h r12,r12,r12
52080 + padd.h r5,r5,r5
52081 + padd.h r4,r4,r4
52082 + padd.h lr,lr,lr
52083 + padd.h r8,r2,r7
52084 + padd.h r0,r0,r3
52085 + padd.h sp,r11,r6
52086 + .text
52087 + .global psub_h
52088 +psub_h:
52089 + psub.h pc,pc,pc
52090 + psub.h r12,r12,r12
52091 + psub.h r5,r5,r5
52092 + psub.h r4,r4,r4
52093 + psub.h lr,lr,lr
52094 + psub.h lr,r6,r8
52095 + psub.h r0,r1,sp
52096 + psub.h pc,pc,sp
52097 + .text
52098 + .global paddx_h
52099 +paddx_h:
52100 + paddx.h pc,pc,pc
52101 + paddx.h r12,r12,r12
52102 + paddx.h r5,r5,r5
52103 + paddx.h r4,r4,r4
52104 + paddx.h lr,lr,lr
52105 + paddx.h pc,pc,r1
52106 + paddx.h r10,r4,r5
52107 + paddx.h r5,pc,r2
52108 + .text
52109 + .global psubx_h
52110 +psubx_h:
52111 + psubx.h pc,pc,pc
52112 + psubx.h r12,r12,r12
52113 + psubx.h r5,r5,r5
52114 + psubx.h r4,r4,r4
52115 + psubx.h lr,lr,lr
52116 + psubx.h r5,r12,r5
52117 + psubx.h r3,r8,r3
52118 + psubx.h r5,r2,r3
52119 + .text
52120 + .global padds_sh
52121 +padds_sh:
52122 + padds.sh pc,pc,pc
52123 + padds.sh r12,r12,r12
52124 + padds.sh r5,r5,r5
52125 + padds.sh r4,r4,r4
52126 + padds.sh lr,lr,lr
52127 + padds.sh r9,lr,r2
52128 + padds.sh r6,r8,r1
52129 + padds.sh r6,r4,r10
52130 + .text
52131 + .global psubs_sh
52132 +psubs_sh:
52133 + psubs.sh pc,pc,pc
52134 + psubs.sh r12,r12,r12
52135 + psubs.sh r5,r5,r5
52136 + psubs.sh r4,r4,r4
52137 + psubs.sh lr,lr,lr
52138 + psubs.sh r6,lr,r11
52139 + psubs.sh r2,r12,r4
52140 + psubs.sh r0,r9,r0
52141 + .text
52142 + .global paddxs_sh
52143 +paddxs_sh:
52144 + paddxs.sh pc,pc,pc
52145 + paddxs.sh r12,r12,r12
52146 + paddxs.sh r5,r5,r5
52147 + paddxs.sh r4,r4,r4
52148 + paddxs.sh lr,lr,lr
52149 + paddxs.sh r0,r3,r9
52150 + paddxs.sh pc,r10,r11
52151 + paddxs.sh pc,r10,pc
52152 + .text
52153 + .global psubxs_sh
52154 +psubxs_sh:
52155 + psubxs.sh pc,pc,pc
52156 + psubxs.sh r12,r12,r12
52157 + psubxs.sh r5,r5,r5
52158 + psubxs.sh r4,r4,r4
52159 + psubxs.sh lr,lr,lr
52160 + psubxs.sh r7,r4,r4
52161 + psubxs.sh r7,r8,r3
52162 + psubxs.sh pc,r6,r5
52163 + .text
52164 + .global padds_uh
52165 +padds_uh:
52166 + padds.uh pc,pc,pc
52167 + padds.uh r12,r12,r12
52168 + padds.uh r5,r5,r5
52169 + padds.uh r4,r4,r4
52170 + padds.uh lr,lr,lr
52171 + padds.uh r12,r11,r7
52172 + padds.uh r7,r8,lr
52173 + padds.uh r6,r9,r7
52174 + .text
52175 + .global psubs_uh
52176 +psubs_uh:
52177 + psubs.uh pc,pc,pc
52178 + psubs.uh r12,r12,r12
52179 + psubs.uh r5,r5,r5
52180 + psubs.uh r4,r4,r4
52181 + psubs.uh lr,lr,lr
52182 + psubs.uh lr,r10,r6
52183 + psubs.uh sp,r2,pc
52184 + psubs.uh r2,r9,r2
52185 + .text
52186 + .global paddxs_uh
52187 +paddxs_uh:
52188 + paddxs.uh pc,pc,pc
52189 + paddxs.uh r12,r12,r12
52190 + paddxs.uh r5,r5,r5
52191 + paddxs.uh r4,r4,r4
52192 + paddxs.uh lr,lr,lr
52193 + paddxs.uh r7,r9,r5
52194 + paddxs.uh r9,r1,r4
52195 + paddxs.uh r5,r2,r3
52196 + .text
52197 + .global psubxs_uh
52198 +psubxs_uh:
52199 + psubxs.uh pc,pc,pc
52200 + psubxs.uh r12,r12,r12
52201 + psubxs.uh r5,r5,r5
52202 + psubxs.uh r4,r4,r4
52203 + psubxs.uh lr,lr,lr
52204 + psubxs.uh sp,r5,sp
52205 + psubxs.uh sp,r6,r6
52206 + psubxs.uh r3,r11,r8
52207 + .text
52208 + .global paddh_sh
52209 +paddh_sh:
52210 + paddh.sh pc,pc,pc
52211 + paddh.sh r12,r12,r12
52212 + paddh.sh r5,r5,r5
52213 + paddh.sh r4,r4,r4
52214 + paddh.sh lr,lr,lr
52215 + paddh.sh r12,sp,r3
52216 + paddh.sh pc,r5,r3
52217 + paddh.sh r8,r8,sp
52218 + .text
52219 + .global psubh_sh
52220 +psubh_sh:
52221 + psubh.sh pc,pc,pc
52222 + psubh.sh r12,r12,r12
52223 + psubh.sh r5,r5,r5
52224 + psubh.sh r4,r4,r4
52225 + psubh.sh lr,lr,lr
52226 + psubh.sh r1,r5,r8
52227 + psubh.sh r7,r3,r6
52228 + psubh.sh r4,r3,r3
52229 + .text
52230 + .global paddxh_sh
52231 +paddxh_sh:
52232 + paddxh.sh pc,pc,pc
52233 + paddxh.sh r12,r12,r12
52234 + paddxh.sh r5,r5,r5
52235 + paddxh.sh r4,r4,r4
52236 + paddxh.sh lr,lr,lr
52237 + paddxh.sh r6,r0,r4
52238 + paddxh.sh r9,r8,r9
52239 + paddxh.sh r3,r0,sp
52240 + .text
52241 + .global psubxh_sh
52242 +psubxh_sh:
52243 + psubxh.sh pc,pc,pc
52244 + psubxh.sh r12,r12,r12
52245 + psubxh.sh r5,r5,r5
52246 + psubxh.sh r4,r4,r4
52247 + psubxh.sh lr,lr,lr
52248 + psubxh.sh r4,pc,r12
52249 + psubxh.sh r8,r4,r6
52250 + psubxh.sh r12,r9,r4
52251 + .text
52252 + .global paddsub_h
52253 +paddsub_h:
52254 + paddsub.h pc,pc:b,pc:b
52255 + paddsub.h r12,r12:t,r12:t
52256 + paddsub.h r5,r5:t,r5:t
52257 + paddsub.h r4,r4:b,r4:b
52258 + paddsub.h lr,lr:t,lr:t
52259 + paddsub.h r5,r2:t,lr:b
52260 + paddsub.h r7,r1:b,r8:b
52261 + paddsub.h r6,r10:t,r5:t
52262 + .text
52263 + .global psubadd_h
52264 +psubadd_h:
52265 + psubadd.h pc,pc:b,pc:b
52266 + psubadd.h r12,r12:t,r12:t
52267 + psubadd.h r5,r5:t,r5:t
52268 + psubadd.h r4,r4:b,r4:b
52269 + psubadd.h lr,lr:t,lr:t
52270 + psubadd.h r9,r11:t,r8:t
52271 + psubadd.h r10,r7:t,lr:t
52272 + psubadd.h r6,pc:t,pc:b
52273 + .text
52274 + .global paddsubs_sh
52275 +paddsubs_sh:
52276 + paddsubs.sh pc,pc:b,pc:b
52277 + paddsubs.sh r12,r12:t,r12:t
52278 + paddsubs.sh r5,r5:t,r5:t
52279 + paddsubs.sh r4,r4:b,r4:b
52280 + paddsubs.sh lr,lr:t,lr:t
52281 + paddsubs.sh r0,lr:t,r0:b
52282 + paddsubs.sh r9,r2:t,r4:t
52283 + paddsubs.sh r12,r9:t,sp:t
52284 + .text
52285 + .global psubadds_sh
52286 +psubadds_sh:
52287 + psubadds.sh pc,pc:b,pc:b
52288 + psubadds.sh r12,r12:t,r12:t
52289 + psubadds.sh r5,r5:t,r5:t
52290 + psubadds.sh r4,r4:b,r4:b
52291 + psubadds.sh lr,lr:t,lr:t
52292 + psubadds.sh pc,lr:b,r1:t
52293 + psubadds.sh r11,r3:b,r12:b
52294 + psubadds.sh r10,r2:t,r8:t
52295 + .text
52296 + .global paddsubs_uh
52297 +paddsubs_uh:
52298 + paddsubs.uh pc,pc:b,pc:b
52299 + paddsubs.uh r12,r12:t,r12:t
52300 + paddsubs.uh r5,r5:t,r5:t
52301 + paddsubs.uh r4,r4:b,r4:b
52302 + paddsubs.uh lr,lr:t,lr:t
52303 + paddsubs.uh r9,r2:b,r3:b
52304 + paddsubs.uh sp,sp:b,r7:t
52305 + paddsubs.uh lr,r0:b,r10:t
52306 + .text
52307 + .global psubadds_uh
52308 +psubadds_uh:
52309 + psubadds.uh pc,pc:b,pc:b
52310 + psubadds.uh r12,r12:t,r12:t
52311 + psubadds.uh r5,r5:t,r5:t
52312 + psubadds.uh r4,r4:b,r4:b
52313 + psubadds.uh lr,lr:t,lr:t
52314 + psubadds.uh r12,r9:t,pc:t
52315 + psubadds.uh r8,r6:b,r8:b
52316 + psubadds.uh r8,r8:b,r4:b
52317 + .text
52318 + .global paddsubh_sh
52319 +paddsubh_sh:
52320 + paddsubh.sh pc,pc:b,pc:b
52321 + paddsubh.sh r12,r12:t,r12:t
52322 + paddsubh.sh r5,r5:t,r5:t
52323 + paddsubh.sh r4,r4:b,r4:b
52324 + paddsubh.sh lr,lr:t,lr:t
52325 + paddsubh.sh r8,r9:t,r9:b
52326 + paddsubh.sh r0,sp:t,r1:t
52327 + paddsubh.sh r3,r1:b,r0:t
52328 + .text
52329 + .global psubaddh_sh
52330 +psubaddh_sh:
52331 + psubaddh.sh pc,pc:b,pc:b
52332 + psubaddh.sh r12,r12:t,r12:t
52333 + psubaddh.sh r5,r5:t,r5:t
52334 + psubaddh.sh r4,r4:b,r4:b
52335 + psubaddh.sh lr,lr:t,lr:t
52336 + psubaddh.sh r7,r3:t,r10:b
52337 + psubaddh.sh r7,r2:t,r1:t
52338 + psubaddh.sh r11,r3:b,r6:b
52339 + .text
52340 + .global padd_b
52341 +padd_b:
52342 + padd.b pc,pc,pc
52343 + padd.b r12,r12,r12
52344 + padd.b r5,r5,r5
52345 + padd.b r4,r4,r4
52346 + padd.b lr,lr,lr
52347 + padd.b r2,r6,pc
52348 + padd.b r8,r9,r12
52349 + padd.b r5,r12,r3
52350 + .text
52351 + .global psub_b
52352 +psub_b:
52353 + psub.b pc,pc,pc
52354 + psub.b r12,r12,r12
52355 + psub.b r5,r5,r5
52356 + psub.b r4,r4,r4
52357 + psub.b lr,lr,lr
52358 + psub.b r0,r12,pc
52359 + psub.b r7,sp,r10
52360 + psub.b r5,sp,r12
52361 + .text
52362 + .global padds_sb
52363 +padds_sb:
52364 + padds.sb pc,pc,pc
52365 + padds.sb r12,r12,r12
52366 + padds.sb r5,r5,r5
52367 + padds.sb r4,r4,r4
52368 + padds.sb lr,lr,lr
52369 + padds.sb sp,r11,r4
52370 + padds.sb r11,r10,r11
52371 + padds.sb r5,r12,r6
52372 + .text
52373 + .global psubs_sb
52374 +psubs_sb:
52375 + psubs.sb pc,pc,pc
52376 + psubs.sb r12,r12,r12
52377 + psubs.sb r5,r5,r5
52378 + psubs.sb r4,r4,r4
52379 + psubs.sb lr,lr,lr
52380 + psubs.sb r7,r6,r8
52381 + psubs.sb r12,r10,r9
52382 + psubs.sb pc,r11,r0
52383 + .text
52384 + .global padds_ub
52385 +padds_ub:
52386 + padds.ub pc,pc,pc
52387 + padds.ub r12,r12,r12
52388 + padds.ub r5,r5,r5
52389 + padds.ub r4,r4,r4
52390 + padds.ub lr,lr,lr
52391 + padds.ub r3,r2,r11
52392 + padds.ub r10,r8,r1
52393 + padds.ub r11,r8,r10
52394 + .text
52395 + .global psubs_ub
52396 +psubs_ub:
52397 + psubs.ub pc,pc,pc
52398 + psubs.ub r12,r12,r12
52399 + psubs.ub r5,r5,r5
52400 + psubs.ub r4,r4,r4
52401 + psubs.ub lr,lr,lr
52402 + psubs.ub r0,r2,r7
52403 + psubs.ub lr,r5,r3
52404 + psubs.ub r6,r7,r9
52405 + .text
52406 + .global paddh_ub
52407 +paddh_ub:
52408 + paddh.ub pc,pc,pc
52409 + paddh.ub r12,r12,r12
52410 + paddh.ub r5,r5,r5
52411 + paddh.ub r4,r4,r4
52412 + paddh.ub lr,lr,lr
52413 + paddh.ub lr,r1,r0
52414 + paddh.ub r2,r7,r7
52415 + paddh.ub r2,r1,r2
52416 + .text
52417 + .global psubh_ub
52418 +psubh_ub:
52419 + psubh.ub pc,pc,pc
52420 + psubh.ub r12,r12,r12
52421 + psubh.ub r5,r5,r5
52422 + psubh.ub r4,r4,r4
52423 + psubh.ub lr,lr,lr
52424 + psubh.ub r0,r1,r6
52425 + psubh.ub r4,lr,r10
52426 + psubh.ub r9,r8,r1
52427 + .text
52428 + .global pmax_ub
52429 +pmax_ub:
52430 + pmax.ub pc,pc,pc
52431 + pmax.ub r12,r12,r12
52432 + pmax.ub r5,r5,r5
52433 + pmax.ub r4,r4,r4
52434 + pmax.ub lr,lr,lr
52435 + pmax.ub pc,r2,r11
52436 + pmax.ub r12,r1,r1
52437 + pmax.ub r5,r2,r0
52438 + .text
52439 + .global pmax_sh
52440 +pmax_sh:
52441 + pmax.sh pc,pc,pc
52442 + pmax.sh r12,r12,r12
52443 + pmax.sh r5,r5,r5
52444 + pmax.sh r4,r4,r4
52445 + pmax.sh lr,lr,lr
52446 + pmax.sh lr,r6,r12
52447 + pmax.sh r2,pc,r5
52448 + pmax.sh pc,r2,r7
52449 + .text
52450 + .global pmin_ub
52451 +pmin_ub:
52452 + pmin.ub pc,pc,pc
52453 + pmin.ub r12,r12,r12
52454 + pmin.ub r5,r5,r5
52455 + pmin.ub r4,r4,r4
52456 + pmin.ub lr,lr,lr
52457 + pmin.ub r8,r1,r5
52458 + pmin.ub r1,r8,r3
52459 + pmin.ub r0,r2,r7
52460 + .text
52461 + .global pmin_sh
52462 +pmin_sh:
52463 + pmin.sh pc,pc,pc
52464 + pmin.sh r12,r12,r12
52465 + pmin.sh r5,r5,r5
52466 + pmin.sh r4,r4,r4
52467 + pmin.sh lr,lr,lr
52468 + pmin.sh r8,r4,r10
52469 + pmin.sh lr,r10,r12
52470 + pmin.sh r2,r6,r2
52471 + .text
52472 + .global pavg_ub
52473 +pavg_ub:
52474 + pavg.ub pc,pc,pc
52475 + pavg.ub r12,r12,r12
52476 + pavg.ub r5,r5,r5
52477 + pavg.ub r4,r4,r4
52478 + pavg.ub lr,lr,lr
52479 + pavg.ub r0,r1,r6
52480 + pavg.ub r8,r3,r6
52481 + pavg.ub pc,r12,r10
52482 + .text
52483 + .global pavg_sh
52484 +pavg_sh:
52485 + pavg.sh pc,pc,pc
52486 + pavg.sh r12,r12,r12
52487 + pavg.sh r5,r5,r5
52488 + pavg.sh r4,r4,r4
52489 + pavg.sh lr,lr,lr
52490 + pavg.sh r9,pc,sp
52491 + pavg.sh pc,sp,r3
52492 + pavg.sh r6,r1,r9
52493 + .text
52494 + .global pabs_sb
52495 +pabs_sb:
52496 + pabs.sb pc,pc
52497 + pabs.sb r12,r12
52498 + pabs.sb r5,r5
52499 + pabs.sb r4,r4
52500 + pabs.sb lr,lr
52501 + pabs.sb r11,r6
52502 + pabs.sb lr,r9
52503 + pabs.sb sp,r7
52504 + .text
52505 + .global pabs_sh
52506 +pabs_sh:
52507 + pabs.sh pc,pc
52508 + pabs.sh r12,r12
52509 + pabs.sh r5,r5
52510 + pabs.sh r4,r4
52511 + pabs.sh lr,lr
52512 + pabs.sh pc,r3
52513 + pabs.sh r5,r7
52514 + pabs.sh r4,r0
52515 + .text
52516 + .global psad
52517 +psad:
52518 + psad pc,pc,pc
52519 + psad r12,r12,r12
52520 + psad r5,r5,r5
52521 + psad r4,r4,r4
52522 + psad lr,lr,lr
52523 + psad r9,r11,r11
52524 + psad lr,r4,sp
52525 + psad lr,r4,r5
52526 + .text
52527 + .global pasr_b
52528 +pasr_b:
52529 + pasr.b pc,pc,0
52530 + pasr.b r12,r12,7
52531 + pasr.b r5,r5,4
52532 + pasr.b r4,r4,3
52533 + pasr.b lr,lr,1
52534 + pasr.b pc,r7,1
52535 + pasr.b sp,lr,6
52536 + pasr.b sp,r3,2
52537 + .text
52538 + .global plsl_b
52539 +plsl_b:
52540 + plsl.b pc,pc,0
52541 + plsl.b r12,r12,7
52542 + plsl.b r5,r5,4
52543 + plsl.b r4,r4,3
52544 + plsl.b lr,lr,1
52545 + plsl.b r2,r11,4
52546 + plsl.b r8,r5,7
52547 + plsl.b pc,r0,2
52548 + .text
52549 + .global plsr_b
52550 +plsr_b:
52551 + plsr.b pc,pc,0
52552 + plsr.b r12,r12,7
52553 + plsr.b r5,r5,4
52554 + plsr.b r4,r4,3
52555 + plsr.b lr,lr,1
52556 + plsr.b r12,r1,2
52557 + plsr.b r6,pc,7
52558 + plsr.b r12,r11,2
52559 + .text
52560 + .global pasr_h
52561 +pasr_h:
52562 + pasr.h pc,pc,0
52563 + pasr.h r12,r12,15
52564 + pasr.h r5,r5,8
52565 + pasr.h r4,r4,7
52566 + pasr.h lr,lr,1
52567 + pasr.h r0,r11,10
52568 + pasr.h r4,r6,8
52569 + pasr.h r6,r2,4
52570 + .text
52571 + .global plsl_h
52572 +plsl_h:
52573 + plsl.h pc,pc,0
52574 + plsl.h r12,r12,15
52575 + plsl.h r5,r5,8
52576 + plsl.h r4,r4,7
52577 + plsl.h lr,lr,1
52578 + plsl.h r5,r10,9
52579 + plsl.h sp,lr,8
52580 + plsl.h r0,lr,7
52581 + .text
52582 + .global plsr_h
52583 +plsr_h:
52584 + plsr.h pc,pc,0
52585 + plsr.h r12,r12,15
52586 + plsr.h r5,r5,8
52587 + plsr.h r4,r4,7
52588 + plsr.h lr,lr,1
52589 + plsr.h r11,r0,15
52590 + plsr.h lr,r3,3
52591 + plsr.h r8,lr,10
52592 + .text
52593 + .global packw_sh
52594 +packw_sh:
52595 + packw.sh pc,pc,pc
52596 + packw.sh r12,r12,r12
52597 + packw.sh r5,r5,r5
52598 + packw.sh r4,r4,r4
52599 + packw.sh lr,lr,lr
52600 + packw.sh sp,r11,r10
52601 + packw.sh r8,r2,r12
52602 + packw.sh r8,r1,r5
52603 + .text
52604 + .global punpckub_h
52605 +punpckub_h:
52606 + punpckub.h pc,pc:b
52607 + punpckub.h r12,r12:t
52608 + punpckub.h r5,r5:t
52609 + punpckub.h r4,r4:b
52610 + punpckub.h lr,lr:t
52611 + punpckub.h r6,r1:t
52612 + punpckub.h lr,r5:b
52613 + punpckub.h lr,r2:t
52614 + .text
52615 + .global punpcksb_h
52616 +punpcksb_h:
52617 + punpcksb.h pc,pc:b
52618 + punpcksb.h r12,r12:t
52619 + punpcksb.h r5,r5:t
52620 + punpcksb.h r4,r4:b
52621 + punpcksb.h lr,lr:t
52622 + punpcksb.h r4,r7:t
52623 + punpcksb.h r6,lr:b
52624 + punpcksb.h r12,r12:t
52625 + .text
52626 + .global packsh_ub
52627 +packsh_ub:
52628 + packsh.ub pc,pc,pc
52629 + packsh.ub r12,r12,r12
52630 + packsh.ub r5,r5,r5
52631 + packsh.ub r4,r4,r4
52632 + packsh.ub lr,lr,lr
52633 + packsh.ub r3,r6,r3
52634 + packsh.ub r8,r0,r3
52635 + packsh.ub r9,r3,lr
52636 + .text
52637 + .global packsh_sb
52638 +packsh_sb:
52639 + packsh.sb pc,pc,pc
52640 + packsh.sb r12,r12,r12
52641 + packsh.sb r5,r5,r5
52642 + packsh.sb r4,r4,r4
52643 + packsh.sb lr,lr,lr
52644 + packsh.sb r6,r8,r1
52645 + packsh.sb lr,r9,r8
52646 + packsh.sb sp,r6,r6
52647 + .text
52648 + .global andl
52649 +andl:
52650 + andl pc,0
52651 + andl r12,65535
52652 + andl r5,32768
52653 + andl r4,32767
52654 + andl lr,1
52655 + andl pc,23128
52656 + andl r8,47262
52657 + andl r7,13719
52658 + .text
52659 + .global andl_coh
52660 +andl_coh:
52661 + andl pc,0,COH
52662 + andl r12,65535,COH
52663 + andl r5,32768,COH
52664 + andl r4,32767,COH
52665 + andl lr,1,COH
52666 + andl r6,22753,COH
52667 + andl r0,40653,COH
52668 + andl r4,48580,COH
52669 + .text
52670 + .global andh
52671 +andh:
52672 + andh pc,0
52673 + andh r12,65535
52674 + andh r5,32768
52675 + andh r4,32767
52676 + andh lr,1
52677 + andh r12,52312
52678 + andh r3,8675
52679 + andh r2,42987
52680 + .text
52681 + .global andh_coh
52682 +andh_coh:
52683 + andh pc,0,COH
52684 + andh r12,65535,COH
52685 + andh r5,32768,COH
52686 + andh r4,32767,COH
52687 + andh lr,1,COH
52688 + andh r11,34317,COH
52689 + andh r8,52982,COH
52690 + andh r10,23683,COH
52691 + .text
52692 + .global orl
52693 +orl:
52694 + orl pc,0
52695 + orl r12,65535
52696 + orl r5,32768
52697 + orl r4,32767
52698 + orl lr,1
52699 + orl sp,16766
52700 + orl r0,21181
52701 + orl pc,44103
52702 + .text
52703 + .global orh
52704 +orh:
52705 + orh pc,0
52706 + orh r12,65535
52707 + orh r5,32768
52708 + orh r4,32767
52709 + orh lr,1
52710 + orh r8,28285
52711 + orh r12,30492
52712 + orh r1,59930
52713 + .text
52714 + .global eorl
52715 +eorl:
52716 + eorl pc,0
52717 + eorl r12,65535
52718 + eorl r5,32768
52719 + eorl r4,32767
52720 + eorl lr,1
52721 + eorl r4,51129
52722 + eorl r6,64477
52723 + eorl r1,20913
52724 + .text
52725 + .global eorh
52726 +eorh:
52727 + eorh pc,0
52728 + eorh r12,65535
52729 + eorh r5,32768
52730 + eorh r4,32767
52731 + eorh lr,1
52732 + eorh r0,11732
52733 + eorh r10,38069
52734 + eorh r9,57130
52735 + .text
52736 + .global mcall
52737 +mcall:
52738 + mcall pc[0]
52739 + mcall r12[-4]
52740 + mcall r5[-131072]
52741 + mcall r4[131068]
52742 + mcall lr[4]
52743 + mcall sp[61180]
52744 + mcall r4[-35000]
52745 + mcall r0[9924]
52746 + .text
52747 + .global pref
52748 +pref:
52749 + pref pc[0]
52750 + pref r12[-1]
52751 + pref r5[-32768]
52752 + pref r4[32767]
52753 + pref lr[1]
52754 + pref r7[7748]
52755 + pref r7[-7699]
52756 + pref r2[-25892]
52757 + .text
52758 + .global cache
52759 +cache:
52760 + cache pc[0],0
52761 + cache r12[-1],31
52762 + cache r5[-1024],16
52763 + cache r4[1023],15
52764 + cache lr[1],1
52765 + cache r3[-964],17
52766 + cache r4[-375],22
52767 + cache r3[-888],17
52768 + .text
52769 + .global sub4
52770 +sub4:
52771 + sub pc,0
52772 + sub r12,-1
52773 + sub r5,-1048576
52774 + sub r4,1048575
52775 + sub lr,1
52776 + sub r2,-619156
52777 + sub lr,461517
52778 + sub r8,-185051
52779 + .text
52780 + .global cp3
52781 +cp3:
52782 + cp pc,0
52783 + cp r12,-1
52784 + cp r5,-1048576
52785 + cp r4,1048575
52786 + cp lr,1
52787 + cp r1,124078
52788 + cp r0,-378909
52789 + cp r4,-243180
52790 + .text
52791 + .global mov2
52792 +mov2:
52793 + mov pc,0
52794 + mov r12,-1
52795 + mov r5,-1048576
52796 + mov r4,1048575
52797 + mov lr,1
52798 + mov r5,-317021
52799 + mov sp,-749164
52800 + mov r5,940179
52801 + .text
52802 + .global brc2
52803 +brc2:
52804 + breq 0
52805 + bral -2
52806 + brls -2097152
52807 + brpl 2097150
52808 + brne 2
52809 + brhi -1796966
52810 + brqs 1321368
52811 + brls -577434
52812 + .text
52813 + .global rcall2
52814 +rcall2:
52815 + rcall 0
52816 + rcall -2
52817 + rcall -2097152
52818 + rcall 2097150
52819 + rcall 2
52820 + rcall 496820
52821 + rcall 1085092
52822 + rcall -1058
52823 + .text
52824 + .global sub5
52825 +sub5:
52826 + sub pc,pc,0
52827 + sub r12,r12,-1
52828 + sub r5,r5,-32768
52829 + sub r4,r4,32767
52830 + sub lr,lr,1
52831 + sub pc,pc,-12744
52832 + sub r7,r7,-27365
52833 + sub r2,r9,-17358
52834 + .text
52835 + .global satsub_w2
52836 +satsub_w2:
52837 + satsub.w pc,pc,0
52838 + satsub.w r12,r12,-1
52839 + satsub.w r5,r5,-32768
52840 + satsub.w r4,r4,32767
52841 + satsub.w lr,lr,1
52842 + satsub.w r2,lr,-2007
52843 + satsub.w r7,r12,-784
52844 + satsub.w r4,r7,23180
52845 + .text
52846 + .global ld_d4
52847 +ld_d4:
52848 + ld.d r0,pc[0]
52849 + ld.d r14,r12[-1]
52850 + ld.d r8,r5[-32768]
52851 + ld.d r6,r4[32767]
52852 + ld.d r2,lr[1]
52853 + ld.d r14,r11[14784]
52854 + ld.d r6,r9[-18905]
52855 + ld.d r2,r3[-6355]
52856 + .text
52857 + .global ld_w4
52858 +ld_w4:
52859 + ld.w pc,pc[0]
52860 + ld.w r12,r12[-1]
52861 + ld.w r5,r5[-32768]
52862 + ld.w r4,r4[32767]
52863 + ld.w lr,lr[1]
52864 + ld.w r0,r12[-22133]
52865 + ld.w sp,pc[-20521]
52866 + /* ld.w r3,r5[29035] */
52867 + nop
52868 + .text
52869 + .global ld_sh4
52870 +ld_sh4:
52871 + ld.sh pc,pc[0]
52872 + ld.sh r12,r12[-1]
52873 + ld.sh r5,r5[-32768]
52874 + ld.sh r4,r4[32767]
52875 + ld.sh lr,lr[1]
52876 + ld.sh r6,r10[30930]
52877 + ld.sh r6,r10[21973]
52878 + /* ld.sh r11,r10[-2058] */
52879 + nop
52880 + .text
52881 + .global ld_uh4
52882 +ld_uh4:
52883 + ld.uh pc,pc[0]
52884 + ld.uh r12,r12[-1]
52885 + ld.uh r5,r5[-32768]
52886 + ld.uh r4,r4[32767]
52887 + ld.uh lr,lr[1]
52888 + ld.uh r1,r9[-13354]
52889 + ld.uh lr,r11[21337]
52890 + /* ld.uh r2,lr[-25370] */
52891 + nop
52892 + .text
52893 + .global ld_sb1
52894 +ld_sb1:
52895 + ld.sb pc,pc[0]
52896 + ld.sb r12,r12[-1]
52897 + ld.sb r5,r5[-32768]
52898 + ld.sb r4,r4[32767]
52899 + ld.sb lr,lr[1]
52900 + ld.sb r7,sp[-28663]
52901 + ld.sb r2,r1[-5879]
52902 + ld.sb r12,r3[18734]
52903 + .text
52904 + .global ld_ub4
52905 +ld_ub4:
52906 + ld.ub pc,pc[0]
52907 + ld.ub r12,r12[-1]
52908 + ld.ub r5,r5[-32768]
52909 + ld.ub r4,r4[32767]
52910 + ld.ub lr,lr[1]
52911 + ld.ub pc,r4[8277]
52912 + ld.ub r5,r12[19172]
52913 + ld.ub r10,lr[26347]
52914 + .text
52915 + .global st_d4
52916 +st_d4:
52917 + st.d pc[0],r0
52918 + st.d r12[-1],r14
52919 + st.d r5[-32768],r8
52920 + st.d r4[32767],r6
52921 + st.d lr[1],r2
52922 + st.d r5[13200],r10
52923 + st.d r5[9352],r10
52924 + st.d r5[32373],r4
52925 + .text
52926 + .global st_w4
52927 +st_w4:
52928 + st.w pc[0],pc
52929 + st.w r12[-1],r12
52930 + st.w r5[-32768],r5
52931 + st.w r4[32767],r4
52932 + st.w lr[1],lr
52933 + st.w sp[6136],r7
52934 + st.w r6[27087],r12
52935 + /* st.w r3[20143],r7 */
52936 + nop
52937 + .text
52938 + .global st_h4
52939 +st_h4:
52940 + st.h pc[0],pc
52941 + st.h r12[-1],r12
52942 + st.h r5[-32768],r5
52943 + st.h r4[32767],r4
52944 + st.h lr[1],lr
52945 + st.h r4[-9962],r7
52946 + st.h r9[-16250],r3
52947 + /* st.h r8[-28810],r7 */
52948 + nop
52949 + .text
52950 + .global st_b4
52951 +st_b4:
52952 + st.b pc[0],pc
52953 + st.b r12[-1],r12
52954 + st.b r5[-32768],r5
52955 + st.b r4[32767],r4
52956 + st.b lr[1],lr
52957 + st.b r12[30102],r6
52958 + st.b r5[28977],r1
52959 + st.b r0[5470],r1
52960 + .text
52961 + .global mfsr
52962 +mfsr:
52963 + mfsr pc,0
52964 + mfsr r12,1020
52965 + mfsr r5,512
52966 + mfsr r4,508
52967 + mfsr lr,4
52968 + mfsr r2,696
52969 + mfsr r4,260
52970 + mfsr r10,1016
52971 + .text
52972 + .global mtsr
52973 +mtsr:
52974 + mtsr 0,pc
52975 + mtsr 1020,r12
52976 + mtsr 512,r5
52977 + mtsr 508,r4
52978 + mtsr 4,lr
52979 + mtsr 224,r10
52980 + mtsr 836,r12
52981 + mtsr 304,r9
52982 + .text
52983 + .global mfdr
52984 +mfdr:
52985 + mfdr pc,0
52986 + mfdr r12,1020
52987 + mfdr r5,512
52988 + mfdr r4,508
52989 + mfdr lr,4
52990 + mfdr r6,932
52991 + mfdr r5,36
52992 + mfdr r9,300
52993 + .text
52994 + .global mtdr
52995 +mtdr:
52996 + mtdr 0,pc
52997 + mtdr 1020,r12
52998 + mtdr 512,r5
52999 + mtdr 508,r4
53000 + mtdr 4,lr
53001 + mtdr 180,r8
53002 + mtdr 720,r10
53003 + mtdr 408,lr
53004 + .text
53005 + .global sleep
53006 +sleep:
53007 + sleep 0
53008 + sleep 255
53009 + sleep 128
53010 + sleep 127
53011 + sleep 1
53012 + sleep 254
53013 + sleep 15
53014 + sleep 43
53015 + .text
53016 + .global sync
53017 +sync:
53018 + sync 0
53019 + sync 255
53020 + sync 128
53021 + sync 127
53022 + sync 1
53023 + sync 166
53024 + sync 230
53025 + sync 180
53026 + .text
53027 + .global bld
53028 +bld:
53029 + bld pc,0
53030 + bld r12,31
53031 + bld r5,16
53032 + bld r4,15
53033 + bld lr,1
53034 + bld r9,15
53035 + bld r0,4
53036 + bld lr,26
53037 + .text
53038 + .global bst
53039 +bst:
53040 + bst pc,0
53041 + bst r12,31
53042 + bst r5,16
53043 + bst r4,15
53044 + bst lr,1
53045 + bst r10,28
53046 + bst r0,3
53047 + bst sp,2
53048 + .text
53049 + .global sats
53050 +sats:
53051 + sats pc>>0,0
53052 + sats r12>>31,31
53053 + sats r5>>16,16
53054 + sats r4>>15,15
53055 + sats lr>>1,1
53056 + sats r10>>3,19
53057 + sats r10>>2,26
53058 + sats r1>>20,1
53059 + .text
53060 + .global satu
53061 +satu:
53062 + satu pc>>0,0
53063 + satu r12>>31,31
53064 + satu r5>>16,16
53065 + satu r4>>15,15
53066 + satu lr>>1,1
53067 + satu pc>>5,7
53068 + satu r7>>5,5
53069 + satu r2>>26,19
53070 + .text
53071 + .global satrnds
53072 +satrnds:
53073 + satrnds pc>>0,0
53074 + satrnds r12>>31,31
53075 + satrnds r5>>16,16
53076 + satrnds r4>>15,15
53077 + satrnds lr>>1,1
53078 + satrnds r0>>21,19
53079 + satrnds sp>>0,2
53080 + satrnds r7>>6,29
53081 + .text
53082 + .global satrndu
53083 +satrndu:
53084 + satrndu pc>>0,0
53085 + satrndu r12>>31,31
53086 + satrndu r5>>16,16
53087 + satrndu r4>>15,15
53088 + satrndu lr>>1,1
53089 + satrndu r12>>0,26
53090 + satrndu r4>>21,3
53091 + satrndu r10>>3,16
53092 + .text
53093 + .global subfc
53094 +subfc:
53095 + subfeq pc,0
53096 + subfal r12,-1
53097 + subfls r5,-128
53098 + subfpl r4,127
53099 + subfne lr,1
53100 + subfls r10,8
53101 + subfvc r11,99
53102 + subfvs r2,73
53103 + .text
53104 + .global subc
53105 +subc:
53106 + subeq pc,0
53107 + subal r12,-1
53108 + subls r5,-128
53109 + subpl r4,127
53110 + subne lr,1
53111 + subls r12,118
53112 + subvc lr,-12
53113 + submi r4,-13
53114 + .text
53115 + .global movc2
53116 +movc2:
53117 + moveq pc,0
53118 + moval r12,-1
53119 + movls r5,-128
53120 + movpl r4,127
53121 + movne lr,1
53122 + movlt r3,-122
53123 + movvc r8,2
53124 + movne r7,-111
53125 + .text
53126 + .global cp_b
53127 +cp_b:
53128 + cp.b pc,r0
53129 + cp.b r0,pc
53130 + cp.b r7,r8
53131 + cp.b r8,r7
53132 + .text
53133 + .global cp_h
53134 +cp_h:
53135 + cp.h pc,r0
53136 + cp.h r0,pc
53137 + cp.h r7,r8
53138 + cp.h r8,r7
53139 + .text
53140 + .global ldm
53141 +ldm:
53142 + ldm pc,r1-r6
53143 + ldm r12,r0-r15
53144 + ldm r5,r15
53145 + ldm r4,r0-r14
53146 + ldm lr,r0
53147 + ldm r9,r1,r5,r14
53148 + ldm r11,r2-r3,r5-r8,r15
53149 + ldm r6,r0,r3,r9,r13,r15
53150 + .text
53151 + .global ldm_pu
53152 +ldm_pu:
53153 + ldm pc++,r6-r9
53154 + ldm r12++,r0-r15
53155 + ldm r5++,r15
53156 + ldm r4++,r0-r14
53157 + ldm lr++,r0
53158 + ldm r12++,r3-r5,r8,r10,r12,r14-r15
53159 + ldm r10++,r2,r4-r6,r14-r15
53160 + ldm r6++,r1,r3-r4,r9-r14
53161 + .text
53162 + .global ldmts
53163 +ldmts:
53164 + ldmts pc,r7-r8
53165 + ldmts r12,r0-r15
53166 + ldmts r5,r15
53167 + ldmts r4,r0-r14
53168 + ldmts lr,r0
53169 + ldmts r0,r1-r2,r11-r12
53170 + ldmts lr,r0-r2,r4,r7-r8,r13-r14
53171 + ldmts r12,r0-r1,r3-r5,r9,r14-r15
53172 + .text
53173 + .global ldmts_pu
53174 +ldmts_pu:
53175 + ldmts pc++,r9
53176 + ldmts r12++,r0-r15
53177 + ldmts r5++,r15
53178 + ldmts r4++,r0-r14
53179 + ldmts lr++,r0
53180 + ldmts sp++,r0,r2-r5,r7,r9,r11
53181 + ldmts r5++,r1-r3,r7,r10-r11
53182 + ldmts r8++,r2-r4,r7-r8,r13,r15
53183 + .text
53184 + .global stm
53185 +stm:
53186 + stm pc,r7
53187 + stm r12,r0-r15
53188 + stm r5,r15
53189 + stm r4,r0-r14
53190 + stm lr,r0
53191 + stm sp,r2-r3,r5,r8,r11,r14
53192 + stm r4,r0-r4,r6,r10-r11,r14
53193 + stm r9,r1,r5,r9,r12-r15
53194 + .text
53195 + .global stm_pu
53196 +stm_pu:
53197 + stm --pc,r4-r6
53198 + stm --r12,r0-r15
53199 + stm --r5,r15
53200 + stm --r4,r0-r14
53201 + stm --lr,r0
53202 + stm --r11,r0,r4-r9,r11-r15
53203 + stm --r11,r0,r3,r9-r10,r12,r14
53204 + stm --r6,r2,r8-r9,r13-r14
53205 + .text
53206 + .global stmts
53207 +stmts:
53208 + stmts pc,r8
53209 + stmts r12,r0-r15
53210 + stmts r5,r15
53211 + stmts r4,r0-r14
53212 + stmts lr,r0
53213 + stmts r1,r0-r1,r3-r4,r6,r9-r10,r14-r15
53214 + stmts r3,r0,r6-r8,r10-r12
53215 + stmts r11,r0,r4,r6-r7,r9-r10,r12,r14-r15
53216 + .text
53217 + .global stmts_pu
53218 +stmts_pu:
53219 + stmts --pc,r6-r8
53220 + stmts --r12,r0-r15
53221 + stmts --r5,r15
53222 + stmts --r4,r0-r14
53223 + stmts --lr,r0
53224 + stmts --r2,r0,r3-r4,r9-r10,r12-r13
53225 + stmts --r3,r0-r1,r14-r15
53226 + stmts --r0,r0,r2-r6,r10,r14
53227 + .text
53228 + .global ldins_h
53229 +ldins_h:
53230 + ldins.h pc:b,pc[0]
53231 + ldins.h r12:t,r12[-2]
53232 + ldins.h r5:t,r5[-4096]
53233 + ldins.h r4:b,r4[4094]
53234 + ldins.h lr:t,lr[2]
53235 + ldins.h r0:t,lr[1930]
53236 + ldins.h r3:b,r7[-534]
53237 + ldins.h r2:b,r12[-2252]
53238 + .text
53239 + .global ldins_b
53240 +ldins_b:
53241 + ldins.b pc:b,pc[0]
53242 + ldins.b r12:t,r12[-1]
53243 + ldins.b r5:u,r5[-2048]
53244 + ldins.b r4:l,r4[2047]
53245 + ldins.b lr:l,lr[1]
53246 + ldins.b r6:t,r4[-662]
53247 + ldins.b r5:b,r1[-151]
53248 + ldins.b r10:t,r11[-1923]
53249 + .text
53250 + .global ldswp_sh
53251 +ldswp_sh:
53252 + ldswp.sh pc,pc[0]
53253 + ldswp.sh r12,r12[-2]
53254 + ldswp.sh r5,r5[-4096]
53255 + ldswp.sh r4,r4[4094]
53256 + ldswp.sh lr,lr[2]
53257 + ldswp.sh r9,r10[3848]
53258 + ldswp.sh r4,r12[-2040]
53259 + ldswp.sh r10,r2[3088]
53260 + .text
53261 + .global ldswp_uh
53262 +ldswp_uh:
53263 + ldswp.uh pc,pc[0]
53264 + ldswp.uh r12,r12[-2]
53265 + ldswp.uh r5,r5[-4096]
53266 + ldswp.uh r4,r4[4094]
53267 + ldswp.uh lr,lr[2]
53268 + ldswp.uh r4,r9[3724]
53269 + ldswp.uh lr,sp[-1672]
53270 + ldswp.uh r8,r12[-3846]
53271 + .text
53272 + .global ldswp_w
53273 +ldswp_w:
53274 + ldswp.w pc,pc[0]
53275 + ldswp.w r12,r12[-4]
53276 + ldswp.w r5,r5[-8192]
53277 + ldswp.w r4,r4[8188]
53278 + ldswp.w lr,lr[4]
53279 + ldswp.w sp,r7[1860]
53280 + ldswp.w pc,r5[-3324]
53281 + ldswp.w r12,r10[-3296]
53282 + .text
53283 + .global stswp_h
53284 +stswp_h:
53285 + stswp.h pc[0],pc
53286 + stswp.h r12[-2],r12
53287 + stswp.h r5[-4096],r5
53288 + stswp.h r4[4094],r4
53289 + stswp.h lr[2],lr
53290 + stswp.h r7[64],r10
53291 + stswp.h r10[3024],r2
53292 + stswp.h r0[-2328],r10
53293 + .text
53294 + .global stswp_w
53295 +stswp_w:
53296 + stswp.w pc[0],pc
53297 + stswp.w r12[-4],r12
53298 + stswp.w r5[-8192],r5
53299 + stswp.w r4[8188],r4
53300 + stswp.w lr[4],lr
53301 + stswp.w pc[1156],r8
53302 + stswp.w sp[7992],r10
53303 + stswp.w r8[-1172],r5
53304 + .text
53305 + .global and2
53306 +and2:
53307 + and pc,pc,pc<<0
53308 + and r12,r12,r12<<31
53309 + and r5,r5,r5<<16
53310 + and r4,r4,r4<<15
53311 + and lr,lr,lr<<1
53312 + and r10,r2,r1<<1
53313 + and r12,r8,r11<<27
53314 + and r10,r7,r0<<3
53315 + .text
53316 + .global and3
53317 +and3:
53318 + and pc,pc,pc>>0
53319 + and r12,r12,r12>>31
53320 + and r5,r5,r5>>16
53321 + and r4,r4,r4>>15
53322 + and lr,lr,lr>>1
53323 + and r12,r8,r7>>17
53324 + and pc,r4,r9>>20
53325 + and r10,r9,r10>>12
53326 + .text
53327 + .global or2
53328 +or2:
53329 + or pc,pc,pc<<0
53330 + or r12,r12,r12<<31
53331 + or r5,r5,r5<<16
53332 + or r4,r4,r4<<15
53333 + or lr,lr,lr<<1
53334 + or r8,sp,r11<<29
53335 + or pc,r9,r2<<28
53336 + or r5,r1,r2<<3
53337 + .text
53338 + .global or3
53339 +or3:
53340 + or pc,pc,pc>>0
53341 + or r12,r12,r12>>31
53342 + or r5,r5,r5>>16
53343 + or r4,r4,r4>>15
53344 + or lr,lr,lr>>1
53345 + or r1,sp,sp>>2
53346 + or r0,r1,r1>>29
53347 + or r4,r12,r8>>8
53348 + .text
53349 + .global eor2
53350 +eor2:
53351 + eor pc,pc,pc<<0
53352 + eor r12,r12,r12<<31
53353 + eor r5,r5,r5<<16
53354 + eor r4,r4,r4<<15
53355 + eor lr,lr,lr<<1
53356 + eor r10,r9,r4<<11
53357 + eor r4,r0,r1<<31
53358 + eor r6,r2,r12<<13
53359 + .text
53360 + .global eor3
53361 +eor3:
53362 + eor pc,pc,pc>>0
53363 + eor r12,r12,r12>>31
53364 + eor r5,r5,r5>>16
53365 + eor r4,r4,r4>>15
53366 + eor lr,lr,lr>>1
53367 + eor r5,r5,r5>>22
53368 + eor r10,r1,lr>>3
53369 + eor r7,lr,sp>>26
53370 + .text
53371 + .global sthh_w2
53372 +sthh_w2:
53373 + sthh.w pc[pc<<0],pc:b,pc:b
53374 + sthh.w r12[r12<<3],r12:t,r12:t
53375 + sthh.w r5[r5<<2],r5:t,r5:t
53376 + sthh.w r4[r4<<1],r4:b,r4:b
53377 + sthh.w lr[lr<<1],lr:t,lr:t
53378 + sthh.w sp[r6<<3],r1:t,r12:t
53379 + sthh.w r6[r6<<0],r9:t,r9:t
53380 + sthh.w r10[r3<<0],r0:b,r11:t
53381 + .text
53382 + .global sthh_w1
53383 +sthh_w1:
53384 + sthh.w pc[0],pc:b,pc:b
53385 + sthh.w r12[1020],r12:t,r12:t
53386 + sthh.w r5[512],r5:t,r5:t
53387 + sthh.w r4[508],r4:b,r4:b
53388 + sthh.w lr[4],lr:t,lr:t
53389 + sthh.w r4[404],r9:t,r0:b
53390 + sthh.w r8[348],r2:t,r10:b
53391 + sthh.w sp[172],r9:b,r2:b
53392 + .text
53393 + .global cop
53394 +cop:
53395 + cop cp0,cr0,cr0,cr0,0
53396 + cop cp7,cr15,cr15,cr15,0x7f
53397 + cop cp3,cr5,cr5,cr5,0x31
53398 + cop cp2,cr4,cr4,cr4,0x30
53399 + cop cp5,cr8,cr3,cr7,0x5a
53400 + .text
53401 + .global ldc_w1
53402 +ldc_w1:
53403 + ldc.w cp0,cr0,r0[0]
53404 + ldc.w cp7,cr15,pc[255<<2]
53405 + ldc.w cp3,cr5,r5[128<<2]
53406 + ldc.w cp2,cr4,r4[127<<2]
53407 + ldc.w cp4,cr9,r13[36<<2]
53408 + .text
53409 + .global ldc_w2
53410 +ldc_w2:
53411 + ldc.w cp0,cr0,--r0
53412 + ldc.w cp7,cr15,--pc
53413 + ldc.w cp3,cr5,--r5
53414 + ldc.w cp2,cr4,--r4
53415 + ldc.w cp4,cr9,--r13
53416 + .text
53417 + .global ldc_w3
53418 +ldc_w3:
53419 + ldc.w cp0,cr0,r0[r0]
53420 + ldc.w cp7,cr15,pc[pc<<3]
53421 + ldc.w cp3,cr5,r5[r4<<2]
53422 + ldc.w cp2,cr4,r4[r3<<1]
53423 + ldc.w cp4,cr9,r13[r12<<0]
53424 + .text
53425 + .global ldc_d1
53426 +ldc_d1:
53427 + ldc.d cp0,cr0,r0[0]
53428 + ldc.d cp7,cr14,pc[255<<2]
53429 + ldc.d cp3,cr6,r5[128<<2]
53430 + ldc.d cp2,cr4,r4[127<<2]
53431 + ldc.d cp4,cr8,r13[36<<2]
53432 + .text
53433 + .global ldc_d2
53434 +ldc_d2:
53435 + ldc.d cp0,cr0,--r0
53436 + ldc.d cp7,cr14,--pc
53437 + ldc.d cp3,cr6,--r5
53438 + ldc.d cp2,cr4,--r4
53439 + ldc.d cp4,cr8,--r13
53440 + .text
53441 + .global ldc_d3
53442 +ldc_d3:
53443 + ldc.d cp0,cr0,r0[r0]
53444 + ldc.d cp7,cr14,pc[pc<<3]
53445 + ldc.d cp3,cr6,r5[r4<<2]
53446 + ldc.d cp2,cr4,r4[r3<<1]
53447 + ldc.d cp4,cr8,r13[r12<<0]
53448 + .text
53449 + .global stc_w1
53450 +stc_w1:
53451 + stc.w cp0,r0[0],cr0
53452 + stc.w cp7,pc[255<<2],cr15
53453 + stc.w cp3,r5[128<<2],cr5
53454 + stc.w cp2,r4[127<<2],cr4
53455 + stc.w cp4,r13[36<<2],cr9
53456 + .text
53457 + .global stc_w2
53458 +stc_w2:
53459 + stc.w cp0,r0++,cr0
53460 + stc.w cp7,pc++,cr15
53461 + stc.w cp3,r5++,cr5
53462 + stc.w cp2,r4++,cr4
53463 + stc.w cp4,r13++,cr9
53464 + .text
53465 + .global stc_w3
53466 +stc_w3:
53467 + stc.w cp0,r0[r0],cr0
53468 + stc.w cp7,pc[pc<<3],cr15
53469 + stc.w cp3,r5[r4<<2],cr5
53470 + stc.w cp2,r4[r3<<1],cr4
53471 + stc.w cp4,r13[r12<<0],cr9
53472 + .text
53473 + .global stc_d1
53474 +stc_d1:
53475 + stc.d cp0,r0[0],cr0
53476 + stc.d cp7,pc[255<<2],cr14
53477 + stc.d cp3,r5[128<<2],cr6
53478 + stc.d cp2,r4[127<<2],cr4
53479 + stc.d cp4,r13[36<<2],cr8
53480 + .text
53481 + .global stc_d2
53482 +stc_d2:
53483 + stc.d cp0,r0++,cr0
53484 + stc.d cp7,pc++,cr14
53485 + stc.d cp3,r5++,cr6
53486 + stc.d cp2,r4++,cr4
53487 + stc.d cp4,r13++,cr8
53488 + .text
53489 + .global stc_d3
53490 +stc_d3:
53491 + stc.d cp0,r0[r0],cr0
53492 + stc.d cp7,pc[pc<<3],cr14
53493 + stc.d cp3,r5[r4<<2],cr6
53494 + stc.d cp2,r4[r3<<1],cr4
53495 + stc.d cp4,r13[r12<<0],cr8
53496 + .text
53497 + .global ldc0_w
53498 +ldc0_w:
53499 + ldc0.w cr0,r0[0]
53500 + ldc0.w cr15,pc[4095<<2]
53501 + ldc0.w cr5,r5[2048<<2]
53502 + ldc0.w cr4,r4[2047<<2]
53503 + ldc0.w cr9,r13[147<<2]
53504 + .text
53505 + .global ldc0_d
53506 +ldc0_d:
53507 + ldc0.d cr0,r0[0]
53508 + ldc0.d cr14,pc[4095<<2]
53509 + ldc0.d cr6,r5[2048<<2]
53510 + ldc0.d cr4,r4[2047<<2]
53511 + ldc0.d cr8,r13[147<<2]
53512 + .text
53513 + .global stc0_w
53514 +stc0_w:
53515 + stc0.w r0[0],cr0
53516 + stc0.w pc[4095<<2],cr15
53517 + stc0.w r5[2048<<2],cr5
53518 + stc0.w r4[2047<<2],cr4
53519 + stc0.w r13[147<<2],cr9
53520 + .text
53521 + .global stc0_d
53522 +stc0_d:
53523 + stc0.d r0[0],cr0
53524 + stc0.d pc[4095<<2],cr14
53525 + stc0.d r5[2048<<2],cr6
53526 + stc0.d r4[2047<<2],cr4
53527 + stc0.d r13[147<<2],cr8
53528 + .text
53529 + .global memc
53530 +memc:
53531 + memc 0, 0
53532 + memc -4, 31
53533 + memc -65536, 16
53534 + memc 65532, 15
53535 + .text
53536 + .global mems
53537 +mems:
53538 + mems 0, 0
53539 + mems -4, 31
53540 + mems -65536, 16
53541 + mems 65532, 15
53542 + .text
53543 + .global memt
53544 +memt:
53545 + memt 0, 0
53546 + memt -4, 31
53547 + memt -65536, 16
53548 + memt 65532, 15
53549 +
53550 + .text
53551 + .global stcond
53552 +stcond:
53553 + stcond r0[0], r0
53554 + stcond pc[-1], pc
53555 + stcond r8[-32768], r7
53556 + stcond r7[32767], r8
53557 + stcond r5[0x1234], r10
53558 +
53559 +ldcm_w:
53560 + ldcm.w cp0,pc,cr0-cr7
53561 + ldcm.w cp7,r0,cr0
53562 + ldcm.w cp4,r4++,cr0-cr6
53563 + ldcm.w cp3,r7,cr7
53564 + ldcm.w cp1,r12++,cr1,cr4-cr6
53565 + ldcm.w cp0,pc,cr8-cr15
53566 + ldcm.w cp7,r0,cr8
53567 + ldcm.w cp4,r4++,cr8-cr14
53568 + ldcm.w cp3,r7,cr15
53569 + ldcm.w cp1,r12++,cr9,cr12-cr14
53570 +
53571 +ldcm_d:
53572 + ldcm.d cp0,pc,cr0-cr15
53573 + ldcm.d cp7,r0,cr0,cr1
53574 + ldcm.d cp4,r4++,cr0-cr13
53575 + ldcm.d cp3,r7,cr14-cr15
53576 + ldcm.d cp2,r12++,cr0-cr3,cr8-cr9,cr14-cr15
53577 +
53578 +stcm_w:
53579 + stcm.w cp0,pc,cr0-cr7
53580 + stcm.w cp7,r0,cr0
53581 + stcm.w cp4,--r4,cr0-cr6
53582 + stcm.w cp3,r7,cr7
53583 + stcm.w cp1,--r12,cr1,cr4-cr6
53584 + stcm.w cp0,pc,cr8-cr15
53585 + stcm.w cp7,r0,cr8
53586 + stcm.w cp4,--r4,cr8-cr14
53587 + stcm.w cp3,r7,cr15
53588 + stcm.w cp1,--r12,cr9,cr12-cr14
53589 +
53590 +stcm_d:
53591 + stcm.d cp0,pc,cr0-cr15
53592 + stcm.d cp7,r0,cr0,cr1
53593 + stcm.d cp4,--r4,cr0-cr13
53594 + stcm.d cp3,r7,cr14-cr15
53595 + stcm.d cp2,--r12,cr0-cr3,cr8-cr9,cr14-cr15
53596 +
53597 +mvcr_w:
53598 + mvcr.w cp7,pc,cr15
53599 + mvcr.w cp0,r0,cr0
53600 + mvcr.w cp0,pc,cr15
53601 + mvcr.w cp7,r0,cr15
53602 + mvcr.w cp7,pc,cr0
53603 + mvcr.w cp4,r7,cr8
53604 + mvcr.w cp3,r8,cr7
53605 +
53606 +mvcr_d:
53607 + mvcr.d cp7,lr,cr14
53608 + mvcr.d cp0,r0,cr0
53609 + mvcr.d cp0,lr,cr14
53610 + mvcr.d cp7,r0,cr14
53611 + mvcr.d cp7,lr,cr0
53612 + mvcr.d cp4,r6,cr8
53613 + mvcr.d cp3,r8,cr6
53614 +
53615 +mvrc_w:
53616 + mvrc.w cp7,cr15,pc
53617 + mvrc.w cp0,cr0,r0
53618 + mvrc.w cp0,cr15,pc
53619 + mvrc.w cp7,cr15,r0
53620 + mvrc.w cp7,cr0,pc
53621 + mvrc.w cp4,cr8,r7
53622 + mvrc.w cp3,cr7,r8
53623 +
53624 +mvrc_d:
53625 + mvrc.d cp7,cr14,lr
53626 + mvrc.d cp0,cr0,r0
53627 + mvrc.d cp0,cr14,lr
53628 + mvrc.d cp7,cr14,r0
53629 + mvrc.d cp7,cr0,lr
53630 + mvrc.d cp4,cr8,r6
53631 + mvrc.d cp3,cr6,r8
53632 +
53633 +bfexts:
53634 + bfexts pc,pc,31,31
53635 + bfexts r0,r0,0,0
53636 + bfexts r0,pc,31,31
53637 + bfexts pc,r0,31,31
53638 + bfexts pc,pc,0,31
53639 + bfexts pc,pc,31,0
53640 + bfexts r7,r8,15,16
53641 + bfexts r8,r7,16,15
53642 +
53643 +bfextu:
53644 + bfextu pc,pc,31,31
53645 + bfextu r0,r0,0,0
53646 + bfextu r0,pc,31,31
53647 + bfextu pc,r0,31,31
53648 + bfextu pc,pc,0,31
53649 + bfextu pc,pc,31,0
53650 + bfextu r7,r8,15,16
53651 + bfextu r8,r7,16,15
53652 +
53653 +bfins:
53654 + bfins pc,pc,31,31
53655 + bfins r0,r0,0,0
53656 + bfins r0,pc,31,31
53657 + bfins pc,r0,31,31
53658 + bfins pc,pc,0,31
53659 + bfins pc,pc,31,0
53660 + bfins r7,r8,15,16
53661 + bfins r8,r7,16,15
53662 diff -Nrup binutils-2.17/gas/testsuite/gas/avr32/avr32.exp binutils-2.17.atmel.1.3.0/gas/testsuite/gas/avr32/avr32.exp
53663 --- binutils-2.17/gas/testsuite/gas/avr32/avr32.exp 1970-01-01 01:00:00.000000000 +0100
53664 +++ binutils-2.17.atmel.1.3.0/gas/testsuite/gas/avr32/avr32.exp 2007-03-26 10:19:48.000000000 +0200
53665 @@ -0,0 +1,23 @@
53666 +# AVR32 assembler testsuite. -*- Tcl -*-
53667 +
53668 +if [istarget avr32-*-*] {
53669 + run_dump_test "hwrd-lwrd"
53670 + run_dump_test "pcrel"
53671 + run_dump_test "aliases"
53672 + run_dump_test "dwarf2"
53673 + run_dump_test "pic_reloc"
53674 + run_dump_test "fpinsn"
53675 + run_dump_test "pico"
53676 + run_dump_test "lda_pic"
53677 + run_dump_test "lda_pic_linkrelax"
53678 + run_dump_test "lda_nopic"
53679 + run_dump_test "lda_nopic_linkrelax"
53680 + run_dump_test "call_pic"
53681 + run_dump_test "call_pic_linkrelax"
53682 + run_dump_test "call_nopic"
53683 + run_dump_test "call_nopic_linkrelax"
53684 + run_dump_test "jmptable"
53685 + run_dump_test "jmptable_linkrelax"
53686 + run_dump_test "symdiff"
53687 + run_dump_test "symdiff_linkrelax"
53688 +}
53689 diff -Nrup binutils-2.17/gas/testsuite/gas/avr32/call_nopic.d binutils-2.17.atmel.1.3.0/gas/testsuite/gas/avr32/call_nopic.d
53690 --- binutils-2.17/gas/testsuite/gas/avr32/call_nopic.d 1970-01-01 01:00:00.000000000 +0100
53691 +++ binutils-2.17.atmel.1.3.0/gas/testsuite/gas/avr32/call_nopic.d 2007-03-26 10:19:48.000000000 +0200
53692 @@ -0,0 +1,36 @@
53693 +#source: call.s
53694 +#as:
53695 +#objdump: -dr
53696 +#name: call_nopic
53697 +
53698 +.*: +file format .*
53699 +
53700 +Disassembly of section \.text:
53701 +
53702 +00000000 <call_test>:
53703 + 0: d7 03 nop
53704 +
53705 +00000002 <toofar_negative>:
53706 + \.\.\.
53707 + 1ffffe: 00 00 add r0,r0
53708 + 200000: f0 a0 00 00 rcall 0 <call_test>
53709 + 200004: f0 1f 00 0c mcall 200034 <toofar_negative\+0x200032>
53710 + 200008: f0 1f 00 0c mcall 200038 <toofar_negative\+0x200036>
53711 + 20000c: f0 1f 00 0c mcall 20003c <toofar_negative\+0x20003a>
53712 + 200010: f0 1f 00 0c mcall 200040 <toofar_negative\+0x20003e>
53713 + \.\.\.
53714 + 200030: ee b0 ff ff rcall 40002e <far_positive>
53715 + \.\.\.
53716 + 200034: R_AVR32_32_CPENT \.text\+0x2
53717 + 200038: R_AVR32_32_CPENT \.text\.init
53718 + 20003c: R_AVR32_32_CPENT undefined
53719 + 200040: R_AVR32_32_CPENT \.text\+0x40002c
53720 +
53721 +0040002c <toofar_positive>:
53722 + 40002c: d7 03 nop
53723 +0040002e <far_positive>:
53724 + 40002e: d7 03 nop
53725 +Disassembly of section \.text\.init:
53726 +
53727 +00000000 <different_section>:
53728 + 0: e2 c0 00 00 sub r0,r1,0
53729 diff -Nrup binutils-2.17/gas/testsuite/gas/avr32/call_nopic_linkrelax.d binutils-2.17.atmel.1.3.0/gas/testsuite/gas/avr32/call_nopic_linkrelax.d
53730 --- binutils-2.17/gas/testsuite/gas/avr32/call_nopic_linkrelax.d 1970-01-01 01:00:00.000000000 +0100
53731 +++ binutils-2.17.atmel.1.3.0/gas/testsuite/gas/avr32/call_nopic_linkrelax.d 2007-03-26 10:19:48.000000000 +0200
53732 @@ -0,0 +1,43 @@
53733 +#source: call.s
53734 +#as: --linkrelax
53735 +#objdump: -dr
53736 +#name: call_nopic_linkrelax
53737 +
53738 +.*: +file format .*
53739 +
53740 +Disassembly of section \.text:
53741 +
53742 +00000000 <call_test>:
53743 + 0: d7 03 nop
53744 +
53745 +00000002 <toofar_negative>:
53746 + \.\.\.
53747 + 1ffffe: 00 00 add r0,r0
53748 + 200000: e0 a0 00 00 rcall 200000 <toofar_negative\+0x1ffffe>
53749 + 200000: R_AVR32_22H_PCREL \.text
53750 + 200004: f0 1f 00 00 mcall 200004 <toofar_negative\+0x200002>
53751 + 200004: R_AVR32_CPCALL \.text\+0x200034
53752 + 200008: f0 1f 00 00 mcall 200008 <toofar_negative\+0x200006>
53753 + 200008: R_AVR32_CPCALL \.text\+0x200038
53754 + 20000c: f0 1f 00 00 mcall 20000c <toofar_negative\+0x20000a>
53755 + 20000c: R_AVR32_CPCALL \.text\+0x20003c
53756 + 200010: f0 1f 00 00 mcall 200010 <toofar_negative\+0x20000e>
53757 + 200010: R_AVR32_CPCALL \.text\+0x200040
53758 + \.\.\.
53759 + 200030: e0 a0 00 00 rcall 200030 <toofar_negative\+0x20002e>
53760 + 200030: R_AVR32_22H_PCREL \.text\+0x40002e
53761 + \.\.\.
53762 + 200034: R_AVR32_ALIGN \*ABS\*\+0x2
53763 + 200034: R_AVR32_32_CPENT \.text\+0x2
53764 + 200038: R_AVR32_32_CPENT \.text\.init
53765 + 20003c: R_AVR32_32_CPENT undefined
53766 + 200040: R_AVR32_32_CPENT \.text\+0x40002c
53767 +
53768 +0040002c <toofar_positive>:
53769 + 40002c: d7 03 nop
53770 +0040002e <far_positive>:
53771 + 40002e: d7 03 nop
53772 +Disassembly of section \.text\.init:
53773 +
53774 +00000000 <different_section>:
53775 + 0: e2 c0 00 00 sub r0,r1,0
53776 diff -Nrup binutils-2.17/gas/testsuite/gas/avr32/call_pic.d binutils-2.17.atmel.1.3.0/gas/testsuite/gas/avr32/call_pic.d
53777 --- binutils-2.17/gas/testsuite/gas/avr32/call_pic.d 1970-01-01 01:00:00.000000000 +0100
53778 +++ binutils-2.17.atmel.1.3.0/gas/testsuite/gas/avr32/call_pic.d 2007-03-26 10:19:48.000000000 +0200
53779 @@ -0,0 +1,36 @@
53780 +#source: call.s
53781 +#as: --pic
53782 +#objdump: -dr
53783 +#name: call_pic
53784 +
53785 +.*: +file format .*
53786 +
53787 +Disassembly of section \.text:
53788 +
53789 +00000000 <call_test>:
53790 + 0: d7 03 nop
53791 +
53792 +00000002 <toofar_negative>:
53793 + \.\.\.
53794 + 1ffffe: 00 00 add r0,r0
53795 + 200000: f0 a0 00 00 rcall 0 <call_test>
53796 + 200004: f0 16 00 00 mcall r6\[0\]
53797 + 200004: R_AVR32_GOT18SW toofar_negative
53798 + 200008: f0 16 00 00 mcall r6\[0\]
53799 + 200008: R_AVR32_GOT18SW different_section
53800 + 20000c: f0 16 00 00 mcall r6\[0\]
53801 + 20000c: R_AVR32_GOT18SW undefined
53802 + 200010: f0 16 00 00 mcall r6\[0\]
53803 + 200010: R_AVR32_GOT18SW toofar_positive
53804 + \.\.\.
53805 + 200030: ee b0 ff ff rcall 40002e <far_positive>
53806 + \.\.\.
53807 +
53808 +0040002c <toofar_positive>:
53809 + 40002c: d7 03 nop
53810 +0040002e <far_positive>:
53811 + 40002e: d7 03 nop
53812 +Disassembly of section \.text\.init:
53813 +
53814 +00000000 <different_section>:
53815 + 0: e2 c0 00 00 sub r0,r1,0
53816 diff -Nrup binutils-2.17/gas/testsuite/gas/avr32/call_pic_linkrelax.d binutils-2.17.atmel.1.3.0/gas/testsuite/gas/avr32/call_pic_linkrelax.d
53817 --- binutils-2.17/gas/testsuite/gas/avr32/call_pic_linkrelax.d 1970-01-01 01:00:00.000000000 +0100
53818 +++ binutils-2.17.atmel.1.3.0/gas/testsuite/gas/avr32/call_pic_linkrelax.d 2007-03-26 10:19:48.000000000 +0200
53819 @@ -0,0 +1,47 @@
53820 +#source: call.s
53821 +#as: --pic --linkrelax
53822 +#objdump: -dr
53823 +#name: call_pic_linkrelax
53824 +
53825 +.*: +file format .*
53826 +
53827 +Disassembly of section \.text:
53828 +
53829 +00000000 <call_test>:
53830 + 0: d7 03 nop
53831 +
53832 +00000002 <toofar_negative>:
53833 + \.\.\.
53834 + 1ffffe: 00 00 add r0,r0
53835 + 200000: e0 a0 00 00 rcall 200000 <toofar_negative\+0x1ffffe>
53836 + 200000: R_AVR32_22H_PCREL \.text
53837 + 200004: e0 6e 00 00 mov lr,0
53838 + 200004: R_AVR32_GOTCALL toofar_negative
53839 + 200008: ec 0e 03 2e ld\.w lr,r6\[lr<<0x2\]
53840 + 20000c: 5d 1e icall lr
53841 + 20000e: e0 6e 00 00 mov lr,0
53842 + 20000e: R_AVR32_GOTCALL different_section
53843 + 200012: ec 0e 03 2e ld\.w lr,r6\[lr<<0x2\]
53844 + 200016: 5d 1e icall lr
53845 + 200018: e0 6e 00 00 mov lr,0
53846 + 200018: R_AVR32_GOTCALL undefined
53847 + 20001c: ec 0e 03 2e ld\.w lr,r6\[lr<<0x2\]
53848 + 200020: 5d 1e icall lr
53849 + 200022: e0 6e 00 00 mov lr,0
53850 + 200022: R_AVR32_GOTCALL toofar_positive
53851 + 200026: ec 0e 03 2e ld\.w lr,r6\[lr<<0x2\]
53852 + 20002a: 5d 1e icall lr
53853 + 20002c: 00 00 add r0,r0
53854 + 20002e: 00 00 add r0,r0
53855 + 200030: e0 a0 00 00 rcall 200030 <toofar_negative\+0x20002e>
53856 + 200030: R_AVR32_22H_PCREL \.text\+0x40002e
53857 + \.\.\.
53858 +
53859 +0040002c <toofar_positive>:
53860 + 40002c: d7 03 nop
53861 +0040002e <far_positive>:
53862 + 40002e: d7 03 nop
53863 +Disassembly of section \.text\.init:
53864 +
53865 +00000000 <different_section>:
53866 + 0: e2 c0 00 00 sub r0,r1,0
53867 diff -Nrup binutils-2.17/gas/testsuite/gas/avr32/call.s binutils-2.17.atmel.1.3.0/gas/testsuite/gas/avr32/call.s
53868 --- binutils-2.17/gas/testsuite/gas/avr32/call.s 1970-01-01 01:00:00.000000000 +0100
53869 +++ binutils-2.17.atmel.1.3.0/gas/testsuite/gas/avr32/call.s 2007-03-26 10:19:48.000000000 +0200
53870 @@ -0,0 +1,30 @@
53871 +
53872 + .text
53873 + .global call_test
53874 +call_test:
53875 +far_negative:
53876 + nop
53877 +toofar_negative:
53878 +
53879 + .org 0x200000
53880 +
53881 + call far_negative
53882 + call toofar_negative
53883 + call different_section
53884 + call undefined
53885 + call toofar_positive
53886 + .org 0x200030
53887 + call far_positive
53888 +
53889 + .cpool
53890 +
53891 + .org 0x40002c
53892 +
53893 +toofar_positive:
53894 + nop
53895 +far_positive:
53896 + nop
53897 +
53898 + .section .text.init,"ax",@progbits
53899 +different_section:
53900 + sub r0, r1, 0
53901 diff -Nrup binutils-2.17/gas/testsuite/gas/avr32/dwarf2.d binutils-2.17.atmel.1.3.0/gas/testsuite/gas/avr32/dwarf2.d
53902 --- binutils-2.17/gas/testsuite/gas/avr32/dwarf2.d 1970-01-01 01:00:00.000000000 +0100
53903 +++ binutils-2.17.atmel.1.3.0/gas/testsuite/gas/avr32/dwarf2.d 2007-03-26 10:19:48.000000000 +0200
53904 @@ -0,0 +1,42 @@
53905 +#readelf: -wl
53906 +#name: dwarf2
53907 +#source: dwarf2.s
53908 +
53909 +Dump of debug contents of section \.debug_line:
53910 +
53911 + Length: 53
53912 + DWARF Version: 2
53913 + Prologue Length: 26
53914 + Minimum Instruction Length: 1
53915 + Initial value of 'is_stmt': 1
53916 + Line Base: -5
53917 + Line Range: 14
53918 + Opcode Base: 10
53919 + \(Pointer size: 4\)
53920 +
53921 + Opcodes:
53922 + Opcode 1 has 0 args
53923 + Opcode 2 has 1 args
53924 + Opcode 3 has 1 args
53925 + Opcode 4 has 1 args
53926 + Opcode 5 has 1 args
53927 + Opcode 6 has 0 args
53928 + Opcode 7 has 0 args
53929 + Opcode 8 has 0 args
53930 + Opcode 9 has 1 args
53931 +
53932 + The Directory Table is empty\.
53933 +
53934 + The File Name Table:
53935 + Entry Dir Time Size Name
53936 + 1 0 0 0 main\.c
53937 +
53938 + Line Number Statements:
53939 + Extended opcode 2: set Address to 0x0
53940 + Advance Line by 87 to 88
53941 + Copy
53942 + Advance Line by 23 to 111
53943 + Special opcode .*: advance Address by 4 to 0x4 and Line by 0 to 111
53944 + Special opcode .*: advance Address by 10 to 0xe and Line by 1 to 112
53945 + Advance PC by 530 to 220
53946 + Extended opcode 1: End of Sequence
53947 diff -Nrup binutils-2.17/gas/testsuite/gas/avr32/dwarf2.s binutils-2.17.atmel.1.3.0/gas/testsuite/gas/avr32/dwarf2.s
53948 --- binutils-2.17/gas/testsuite/gas/avr32/dwarf2.s 1970-01-01 01:00:00.000000000 +0100
53949 +++ binutils-2.17.atmel.1.3.0/gas/testsuite/gas/avr32/dwarf2.s 2007-03-26 10:19:48.000000000 +0200
53950 @@ -0,0 +1,67 @@
53951 +# Source file used to test DWARF2 information for AVR32.
53952 +
53953 + .file "main.c"
53954 +
53955 + .section .debug_abbrev,"",@progbits
53956 +.Ldebug_abbrev0:
53957 + .section .debug_info,"",@progbits
53958 +.Ldebug_info0:
53959 + .section .debug_line,"",@progbits
53960 +.Ldebug_line0:
53961 +
53962 + .text
53963 + .align 1
53964 + .globl main
53965 + .type main, @function
53966 +.Ltext0:
53967 +main:
53968 + .file 1 "main.c"
53969 + .loc 1 88 0
53970 + pushm r0-r7,lr
53971 + sub sp, 4
53972 + .loc 1 111 0
53973 + lddpc r12, .LC1
53974 + lddpc r7, .LC1
53975 + icall r7
53976 + .loc 1 112 0
53977 + lddpc r6, .LC4
53978 +
53979 + .align 2
53980 +.LC4: .int 0
53981 +
53982 + .fill 256, 2, 0
53983 +
53984 + .align 2
53985 +.LC1:
53986 + .int 0
53987 +.LC2:
53988 + .int 0
53989 +.LC3:
53990 + .int 0
53991 + .size main, . - main
53992 +
53993 +.Letext0:
53994 +
53995 + .section .debug_info
53996 + .int .Ledebug_info0 - .Ldebug_info0 // size
53997 + .short 2 // version
53998 + .int .Ldebug_abbrev0 // abbrev offset
53999 + .byte 4 // bytes per addr
54000 +
54001 + .uleb128 1 // abbrev 1
54002 + .int .Ldebug_line0 // DW_AT_stmt_list
54003 + .int .Letext0 // DW_AT_high_pc
54004 + .int .Ltext0 // DW_AT_low_pc
54005 +
54006 +.Ledebug_info0:
54007 +
54008 + .section .debug_abbrev
54009 + .uleb128 0x01
54010 + .uleb128 0x11 // DW_TAG_compile_unit
54011 + .byte 0 // DW_CHILDREN_no
54012 + .uleb128 0x10, 0x6 // DW_AT_stmt_list
54013 + .uleb128 0x12, 0x1 // DW_AT_high_pc
54014 + .uleb128 0x11, 0x1 // DW_AT_low_pc
54015 + .uleb128 0, 0
54016 +
54017 + .byte 0
54018 diff -Nrup binutils-2.17/gas/testsuite/gas/avr32/fpinsn.d binutils-2.17.atmel.1.3.0/gas/testsuite/gas/avr32/fpinsn.d
54019 --- binutils-2.17/gas/testsuite/gas/avr32/fpinsn.d 1970-01-01 01:00:00.000000000 +0100
54020 +++ binutils-2.17.atmel.1.3.0/gas/testsuite/gas/avr32/fpinsn.d 2007-03-26 10:19:48.000000000 +0200
54021 @@ -0,0 +1,271 @@
54022 +#as:
54023 +#objdump: -dr
54024 +#name: fpinsn
54025 +
54026 +.*: +file format .*
54027 +
54028 +Disassembly of section \.text:
54029 +
54030 +[0-9a-f]* <fadd_s>:
54031 + *[0-9a-f]*: e1 a2 0f ff cop cp0,cr15,cr15,cr15,0x4
54032 + *[0-9a-f]*: e1 a2 00 00 cop cp0,cr0,cr0,cr0,0x4
54033 + *[0-9a-f]*: e1 a2 00 ff cop cp0,cr0,cr15,cr15,0x4
54034 + *[0-9a-f]*: e1 a2 0f 0f cop cp0,cr15,cr0,cr15,0x4
54035 + *[0-9a-f]*: e1 a2 0f f0 cop cp0,cr15,cr15,cr0,0x4
54036 + *[0-9a-f]*: e1 a2 07 88 cop cp0,cr7,cr8,cr8,0x4
54037 + *[0-9a-f]*: e1 a2 08 78 cop cp0,cr8,cr7,cr8,0x4
54038 + *[0-9a-f]*: e1 a2 08 87 cop cp0,cr8,cr8,cr7,0x4
54039 +
54040 +[0-9a-f]* <fsub_s>:
54041 + *[0-9a-f]*: e1 a2 1f ff cop cp0,cr15,cr15,cr15,0x5
54042 + *[0-9a-f]*: e1 a2 10 00 cop cp0,cr0,cr0,cr0,0x5
54043 + *[0-9a-f]*: e1 a2 10 ff cop cp0,cr0,cr15,cr15,0x5
54044 + *[0-9a-f]*: e1 a2 1f 0f cop cp0,cr15,cr0,cr15,0x5
54045 + *[0-9a-f]*: e1 a2 1f f0 cop cp0,cr15,cr15,cr0,0x5
54046 + *[0-9a-f]*: e1 a2 17 88 cop cp0,cr7,cr8,cr8,0x5
54047 + *[0-9a-f]*: e1 a2 18 78 cop cp0,cr8,cr7,cr8,0x5
54048 + *[0-9a-f]*: e1 a2 18 87 cop cp0,cr8,cr8,cr7,0x5
54049 +
54050 +[0-9a-f]* <fmac_s>:
54051 + *[0-9a-f]*: e1 a0 0f ff cop cp0,cr15,cr15,cr15,0x0
54052 + *[0-9a-f]*: e1 a0 00 00 cop cp0,cr0,cr0,cr0,0x0
54053 + *[0-9a-f]*: e1 a0 00 ff cop cp0,cr0,cr15,cr15,0x0
54054 + *[0-9a-f]*: e1 a0 0f 0f cop cp0,cr15,cr0,cr15,0x0
54055 + *[0-9a-f]*: e1 a0 0f f0 cop cp0,cr15,cr15,cr0,0x0
54056 + *[0-9a-f]*: e1 a0 07 88 cop cp0,cr7,cr8,cr8,0x0
54057 + *[0-9a-f]*: e1 a0 08 78 cop cp0,cr8,cr7,cr8,0x0
54058 + *[0-9a-f]*: e1 a0 08 87 cop cp0,cr8,cr8,cr7,0x0
54059 +
54060 +[0-9a-f]* <fnmac_s>:
54061 + *[0-9a-f]*: e1 a0 1f ff cop cp0,cr15,cr15,cr15,0x1
54062 + *[0-9a-f]*: e1 a0 10 00 cop cp0,cr0,cr0,cr0,0x1
54063 + *[0-9a-f]*: e1 a0 10 ff cop cp0,cr0,cr15,cr15,0x1
54064 + *[0-9a-f]*: e1 a0 1f 0f cop cp0,cr15,cr0,cr15,0x1
54065 + *[0-9a-f]*: e1 a0 1f f0 cop cp0,cr15,cr15,cr0,0x1
54066 + *[0-9a-f]*: e1 a0 17 88 cop cp0,cr7,cr8,cr8,0x1
54067 + *[0-9a-f]*: e1 a0 18 78 cop cp0,cr8,cr7,cr8,0x1
54068 + *[0-9a-f]*: e1 a0 18 87 cop cp0,cr8,cr8,cr7,0x1
54069 +
54070 +[0-9a-f]* <fmsc_s>:
54071 + *[0-9a-f]*: e1 a1 0f ff cop cp0,cr15,cr15,cr15,0x2
54072 + *[0-9a-f]*: e1 a1 00 00 cop cp0,cr0,cr0,cr0,0x2
54073 + *[0-9a-f]*: e1 a1 00 ff cop cp0,cr0,cr15,cr15,0x2
54074 + *[0-9a-f]*: e1 a1 0f 0f cop cp0,cr15,cr0,cr15,0x2
54075 + *[0-9a-f]*: e1 a1 0f f0 cop cp0,cr15,cr15,cr0,0x2
54076 + *[0-9a-f]*: e1 a1 07 88 cop cp0,cr7,cr8,cr8,0x2
54077 + *[0-9a-f]*: e1 a1 08 78 cop cp0,cr8,cr7,cr8,0x2
54078 + *[0-9a-f]*: e1 a1 08 87 cop cp0,cr8,cr8,cr7,0x2
54079 +
54080 +[0-9a-f]* <fnmsc_s>:
54081 + *[0-9a-f]*: e1 a1 1f ff cop cp0,cr15,cr15,cr15,0x3
54082 + *[0-9a-f]*: e1 a1 10 00 cop cp0,cr0,cr0,cr0,0x3
54083 + *[0-9a-f]*: e1 a1 10 ff cop cp0,cr0,cr15,cr15,0x3
54084 + *[0-9a-f]*: e1 a1 1f 0f cop cp0,cr15,cr0,cr15,0x3
54085 + *[0-9a-f]*: e1 a1 1f f0 cop cp0,cr15,cr15,cr0,0x3
54086 + *[0-9a-f]*: e1 a1 17 88 cop cp0,cr7,cr8,cr8,0x3
54087 + *[0-9a-f]*: e1 a1 18 78 cop cp0,cr8,cr7,cr8,0x3
54088 + *[0-9a-f]*: e1 a1 18 87 cop cp0,cr8,cr8,cr7,0x3
54089 +
54090 +[0-9a-f]* <fmul_s>:
54091 + *[0-9a-f]*: e1 a3 0f ff cop cp0,cr15,cr15,cr15,0x6
54092 + *[0-9a-f]*: e1 a3 00 00 cop cp0,cr0,cr0,cr0,0x6
54093 + *[0-9a-f]*: e1 a3 00 ff cop cp0,cr0,cr15,cr15,0x6
54094 + *[0-9a-f]*: e1 a3 0f 0f cop cp0,cr15,cr0,cr15,0x6
54095 + *[0-9a-f]*: e1 a3 0f f0 cop cp0,cr15,cr15,cr0,0x6
54096 + *[0-9a-f]*: e1 a3 07 88 cop cp0,cr7,cr8,cr8,0x6
54097 + *[0-9a-f]*: e1 a3 08 78 cop cp0,cr8,cr7,cr8,0x6
54098 + *[0-9a-f]*: e1 a3 08 87 cop cp0,cr8,cr8,cr7,0x6
54099 +
54100 +[0-9a-f]* <fnmul_s>:
54101 + *[0-9a-f]*: e1 a3 1f ff cop cp0,cr15,cr15,cr15,0x7
54102 + *[0-9a-f]*: e1 a3 10 00 cop cp0,cr0,cr0,cr0,0x7
54103 + *[0-9a-f]*: e1 a3 10 ff cop cp0,cr0,cr15,cr15,0x7
54104 + *[0-9a-f]*: e1 a3 1f 0f cop cp0,cr15,cr0,cr15,0x7
54105 + *[0-9a-f]*: e1 a3 1f f0 cop cp0,cr15,cr15,cr0,0x7
54106 + *[0-9a-f]*: e1 a3 17 88 cop cp0,cr7,cr8,cr8,0x7
54107 + *[0-9a-f]*: e1 a3 18 78 cop cp0,cr8,cr7,cr8,0x7
54108 + *[0-9a-f]*: e1 a3 18 87 cop cp0,cr8,cr8,cr7,0x7
54109 +
54110 +[0-9a-f]* <fneg_s>:
54111 + *[0-9a-f]*: e1 a4 0f f0 cop cp0,cr15,cr15,cr0,0x8
54112 + *[0-9a-f]*: e1 a4 00 00 cop cp0,cr0,cr0,cr0,0x8
54113 + *[0-9a-f]*: e1 a4 00 f0 cop cp0,cr0,cr15,cr0,0x8
54114 + *[0-9a-f]*: e1 a4 0f 00 cop cp0,cr15,cr0,cr0,0x8
54115 + *[0-9a-f]*: e1 a4 07 80 cop cp0,cr7,cr8,cr0,0x8
54116 + *[0-9a-f]*: e1 a4 08 70 cop cp0,cr8,cr7,cr0,0x8
54117 +
54118 +[0-9a-f]* <fabs_s>:
54119 + *[0-9a-f]*: e1 a4 1f f0 cop cp0,cr15,cr15,cr0,0x9
54120 + *[0-9a-f]*: e1 a4 10 00 cop cp0,cr0,cr0,cr0,0x9
54121 + *[0-9a-f]*: e1 a4 10 f0 cop cp0,cr0,cr15,cr0,0x9
54122 + *[0-9a-f]*: e1 a4 1f 00 cop cp0,cr15,cr0,cr0,0x9
54123 + *[0-9a-f]*: e1 a4 17 80 cop cp0,cr7,cr8,cr0,0x9
54124 + *[0-9a-f]*: e1 a4 18 70 cop cp0,cr8,cr7,cr0,0x9
54125 +
54126 +[0-9a-f]* <fcmp_s>:
54127 + *[0-9a-f]*: e1 a6 10 ff cop cp0,cr0,cr15,cr15,0xd
54128 + *[0-9a-f]*: e1 a6 10 00 cop cp0,cr0,cr0,cr0,0xd
54129 + *[0-9a-f]*: e1 a6 10 0f cop cp0,cr0,cr0,cr15,0xd
54130 + *[0-9a-f]*: e1 a6 10 f0 cop cp0,cr0,cr15,cr0,0xd
54131 + *[0-9a-f]*: e1 a6 10 78 cop cp0,cr0,cr7,cr8,0xd
54132 + *[0-9a-f]*: e1 a6 10 87 cop cp0,cr0,cr8,cr7,0xd
54133 +
54134 +[0-9a-f]* <fadd_d>:
54135 + *[0-9a-f]*: e5 a2 0e ee cop cp0,cr14,cr14,cr14,0x44
54136 + *[0-9a-f]*: e5 a2 00 00 cop cp0,cr0,cr0,cr0,0x44
54137 + *[0-9a-f]*: e5 a2 00 ee cop cp0,cr0,cr14,cr14,0x44
54138 + *[0-9a-f]*: e5 a2 0e 0e cop cp0,cr14,cr0,cr14,0x44
54139 + *[0-9a-f]*: e5 a2 0e e0 cop cp0,cr14,cr14,cr0,0x44
54140 + *[0-9a-f]*: e5 a2 06 88 cop cp0,cr6,cr8,cr8,0x44
54141 + *[0-9a-f]*: e5 a2 08 68 cop cp0,cr8,cr6,cr8,0x44
54142 + *[0-9a-f]*: e5 a2 08 86 cop cp0,cr8,cr8,cr6,0x44
54143 +
54144 +[0-9a-f]* <fsub_d>:
54145 + *[0-9a-f]*: e5 a2 1e ee cop cp0,cr14,cr14,cr14,0x45
54146 + *[0-9a-f]*: e5 a2 10 00 cop cp0,cr0,cr0,cr0,0x45
54147 + *[0-9a-f]*: e5 a2 10 ee cop cp0,cr0,cr14,cr14,0x45
54148 + *[0-9a-f]*: e5 a2 1e 0e cop cp0,cr14,cr0,cr14,0x45
54149 + *[0-9a-f]*: e5 a2 1e e0 cop cp0,cr14,cr14,cr0,0x45
54150 + *[0-9a-f]*: e5 a2 16 88 cop cp0,cr6,cr8,cr8,0x45
54151 + *[0-9a-f]*: e5 a2 18 68 cop cp0,cr8,cr6,cr8,0x45
54152 + *[0-9a-f]*: e5 a2 18 86 cop cp0,cr8,cr8,cr6,0x45
54153 +
54154 +[0-9a-f]* <fmac_d>:
54155 + *[0-9a-f]*: e5 a0 0e ee cop cp0,cr14,cr14,cr14,0x40
54156 + *[0-9a-f]*: e5 a0 00 00 cop cp0,cr0,cr0,cr0,0x40
54157 + *[0-9a-f]*: e5 a0 00 ee cop cp0,cr0,cr14,cr14,0x40
54158 + *[0-9a-f]*: e5 a0 0e 0e cop cp0,cr14,cr0,cr14,0x40
54159 + *[0-9a-f]*: e5 a0 0e e0 cop cp0,cr14,cr14,cr0,0x40
54160 + *[0-9a-f]*: e5 a0 06 88 cop cp0,cr6,cr8,cr8,0x40
54161 + *[0-9a-f]*: e5 a0 08 68 cop cp0,cr8,cr6,cr8,0x40
54162 + *[0-9a-f]*: e5 a0 08 86 cop cp0,cr8,cr8,cr6,0x40
54163 +
54164 +[0-9a-f]* <fnmac_d>:
54165 + *[0-9a-f]*: e5 a0 1e ee cop cp0,cr14,cr14,cr14,0x41
54166 + *[0-9a-f]*: e5 a0 10 00 cop cp0,cr0,cr0,cr0,0x41
54167 + *[0-9a-f]*: e5 a0 10 ee cop cp0,cr0,cr14,cr14,0x41
54168 + *[0-9a-f]*: e5 a0 1e 0e cop cp0,cr14,cr0,cr14,0x41
54169 + *[0-9a-f]*: e5 a0 1e e0 cop cp0,cr14,cr14,cr0,0x41
54170 + *[0-9a-f]*: e5 a0 16 88 cop cp0,cr6,cr8,cr8,0x41
54171 + *[0-9a-f]*: e5 a0 18 68 cop cp0,cr8,cr6,cr8,0x41
54172 + *[0-9a-f]*: e5 a0 18 86 cop cp0,cr8,cr8,cr6,0x41
54173 +
54174 +[0-9a-f]* <fmsc_d>:
54175 + *[0-9a-f]*: e5 a1 0e ee cop cp0,cr14,cr14,cr14,0x42
54176 + *[0-9a-f]*: e5 a1 00 00 cop cp0,cr0,cr0,cr0,0x42
54177 + *[0-9a-f]*: e5 a1 00 ee cop cp0,cr0,cr14,cr14,0x42
54178 + *[0-9a-f]*: e5 a1 0e 0e cop cp0,cr14,cr0,cr14,0x42
54179 + *[0-9a-f]*: e5 a1 0e e0 cop cp0,cr14,cr14,cr0,0x42
54180 + *[0-9a-f]*: e5 a1 06 88 cop cp0,cr6,cr8,cr8,0x42
54181 + *[0-9a-f]*: e5 a1 08 68 cop cp0,cr8,cr6,cr8,0x42
54182 + *[0-9a-f]*: e5 a1 08 86 cop cp0,cr8,cr8,cr6,0x42
54183 +
54184 +[0-9a-f]* <fnmsc_d>:
54185 + *[0-9a-f]*: e5 a1 1e ee cop cp0,cr14,cr14,cr14,0x43
54186 + *[0-9a-f]*: e5 a1 10 00 cop cp0,cr0,cr0,cr0,0x43
54187 + *[0-9a-f]*: e5 a1 10 ee cop cp0,cr0,cr14,cr14,0x43
54188 + *[0-9a-f]*: e5 a1 1e 0e cop cp0,cr14,cr0,cr14,0x43
54189 + *[0-9a-f]*: e5 a1 1e e0 cop cp0,cr14,cr14,cr0,0x43
54190 + *[0-9a-f]*: e5 a1 16 88 cop cp0,cr6,cr8,cr8,0x43
54191 + *[0-9a-f]*: e5 a1 18 68 cop cp0,cr8,cr6,cr8,0x43
54192 + *[0-9a-f]*: e5 a1 18 86 cop cp0,cr8,cr8,cr6,0x43
54193 +
54194 +[0-9a-f]* <fmul_d>:
54195 + *[0-9a-f]*: e5 a3 0e ee cop cp0,cr14,cr14,cr14,0x46
54196 + *[0-9a-f]*: e5 a3 00 00 cop cp0,cr0,cr0,cr0,0x46
54197 + *[0-9a-f]*: e5 a3 00 ee cop cp0,cr0,cr14,cr14,0x46
54198 + *[0-9a-f]*: e5 a3 0e 0e cop cp0,cr14,cr0,cr14,0x46
54199 + *[0-9a-f]*: e5 a3 0e e0 cop cp0,cr14,cr14,cr0,0x46
54200 + *[0-9a-f]*: e5 a3 06 88 cop cp0,cr6,cr8,cr8,0x46
54201 + *[0-9a-f]*: e5 a3 08 68 cop cp0,cr8,cr6,cr8,0x46
54202 + *[0-9a-f]*: e5 a3 08 86 cop cp0,cr8,cr8,cr6,0x46
54203 +
54204 +[0-9a-f]* <fnmul_d>:
54205 + *[0-9a-f]*: e5 a3 1e ee cop cp0,cr14,cr14,cr14,0x47
54206 + *[0-9a-f]*: e5 a3 10 00 cop cp0,cr0,cr0,cr0,0x47
54207 + *[0-9a-f]*: e5 a3 10 ee cop cp0,cr0,cr14,cr14,0x47
54208 + *[0-9a-f]*: e5 a3 1e 0e cop cp0,cr14,cr0,cr14,0x47
54209 + *[0-9a-f]*: e5 a3 1e e0 cop cp0,cr14,cr14,cr0,0x47
54210 + *[0-9a-f]*: e5 a3 16 88 cop cp0,cr6,cr8,cr8,0x47
54211 + *[0-9a-f]*: e5 a3 18 68 cop cp0,cr8,cr6,cr8,0x47
54212 + *[0-9a-f]*: e5 a3 18 86 cop cp0,cr8,cr8,cr6,0x47
54213 +
54214 +[0-9a-f]* <fneg_d>:
54215 + *[0-9a-f]*: e5 a4 0e e0 cop cp0,cr14,cr14,cr0,0x48
54216 + *[0-9a-f]*: e5 a4 00 00 cop cp0,cr0,cr0,cr0,0x48
54217 + *[0-9a-f]*: e5 a4 00 e0 cop cp0,cr0,cr14,cr0,0x48
54218 + *[0-9a-f]*: e5 a4 0e 00 cop cp0,cr14,cr0,cr0,0x48
54219 + *[0-9a-f]*: e5 a4 06 80 cop cp0,cr6,cr8,cr0,0x48
54220 + *[0-9a-f]*: e5 a4 08 60 cop cp0,cr8,cr6,cr0,0x48
54221 +
54222 +[0-9a-f]* <fabs_d>:
54223 + *[0-9a-f]*: e5 a4 1e e0 cop cp0,cr14,cr14,cr0,0x49
54224 + *[0-9a-f]*: e5 a4 10 00 cop cp0,cr0,cr0,cr0,0x49
54225 + *[0-9a-f]*: e5 a4 10 e0 cop cp0,cr0,cr14,cr0,0x49
54226 + *[0-9a-f]*: e5 a4 1e 00 cop cp0,cr14,cr0,cr0,0x49
54227 + *[0-9a-f]*: e5 a4 16 80 cop cp0,cr6,cr8,cr0,0x49
54228 + *[0-9a-f]*: e5 a4 18 60 cop cp0,cr8,cr6,cr0,0x49
54229 +
54230 +[0-9a-f]* <fcmp_d>:
54231 + *[0-9a-f]*: e5 a6 10 ee cop cp0,cr0,cr14,cr14,0x4d
54232 + *[0-9a-f]*: e5 a6 10 00 cop cp0,cr0,cr0,cr0,0x4d
54233 + *[0-9a-f]*: e5 a6 10 0e cop cp0,cr0,cr0,cr14,0x4d
54234 + *[0-9a-f]*: e5 a6 10 e0 cop cp0,cr0,cr14,cr0,0x4d
54235 + *[0-9a-f]*: e5 a6 10 68 cop cp0,cr0,cr6,cr8,0x4d
54236 + *[0-9a-f]*: e5 a6 10 86 cop cp0,cr0,cr8,cr6,0x4d
54237 +
54238 +[0-9a-f]* <fmov_s>:
54239 + *[0-9a-f]*: e1 a5 0f f0 cop cp0,cr15,cr15,cr0,0xa
54240 + *[0-9a-f]*: e1 a5 00 00 cop cp0,cr0,cr0,cr0,0xa
54241 + *[0-9a-f]*: e1 a5 0f 00 cop cp0,cr15,cr0,cr0,0xa
54242 + *[0-9a-f]*: e1 a5 00 f0 cop cp0,cr0,cr15,cr0,0xa
54243 + *[0-9a-f]*: e1 a5 08 70 cop cp0,cr8,cr7,cr0,0xa
54244 + *[0-9a-f]*: e1 a5 07 80 cop cp0,cr7,cr8,cr0,0xa
54245 + *[0-9a-f]*: ef af 0f 00 mvcr.w cp0,pc,cr15
54246 + *[0-9a-f]*: ef a0 00 00 mvcr.w cp0,r0,cr0
54247 + *[0-9a-f]*: ef af 00 00 mvcr.w cp0,pc,cr0
54248 + *[0-9a-f]*: ef a0 0f 00 mvcr.w cp0,r0,cr15
54249 + *[0-9a-f]*: ef a8 07 00 mvcr.w cp0,r8,cr7
54250 + *[0-9a-f]*: ef a7 08 00 mvcr.w cp0,r7,cr8
54251 + *[0-9a-f]*: ef af 0f 20 mvrc.w cp0,cr15,pc
54252 + *[0-9a-f]*: ef a0 00 20 mvrc.w cp0,cr0,r0
54253 + *[0-9a-f]*: ef a0 0f 20 mvrc.w cp0,cr15,r0
54254 + *[0-9a-f]*: ef af 00 20 mvrc.w cp0,cr0,pc
54255 + *[0-9a-f]*: ef a7 08 20 mvrc.w cp0,cr8,r7
54256 + *[0-9a-f]*: ef a8 07 20 mvrc.w cp0,cr7,r8
54257 +
54258 +[0-9a-f]* <fmov_d>:
54259 + *[0-9a-f]*: e5 a5 0e e0 cop cp0,cr14,cr14,cr0,0x4a
54260 + *[0-9a-f]*: e5 a5 00 00 cop cp0,cr0,cr0,cr0,0x4a
54261 + *[0-9a-f]*: e5 a5 0e 00 cop cp0,cr14,cr0,cr0,0x4a
54262 + *[0-9a-f]*: e5 a5 00 e0 cop cp0,cr0,cr14,cr0,0x4a
54263 + *[0-9a-f]*: e5 a5 08 60 cop cp0,cr8,cr6,cr0,0x4a
54264 + *[0-9a-f]*: e5 a5 06 80 cop cp0,cr6,cr8,cr0,0x4a
54265 + *[0-9a-f]*: ef ae 0e 10 mvcr.d cp0,lr,cr14
54266 + *[0-9a-f]*: ef a0 00 10 mvcr.d cp0,r0,cr0
54267 + *[0-9a-f]*: ef ae 00 10 mvcr.d cp0,lr,cr0
54268 + *[0-9a-f]*: ef a0 0e 10 mvcr.d cp0,r0,cr14
54269 + *[0-9a-f]*: ef a8 06 10 mvcr.d cp0,r8,cr6
54270 + *[0-9a-f]*: ef a6 08 10 mvcr.d cp0,r6,cr8
54271 + *[0-9a-f]*: ef ae 0e 30 mvrc.d cp0,cr14,lr
54272 + *[0-9a-f]*: ef a0 00 30 mvrc.d cp0,cr0,r0
54273 + *[0-9a-f]*: ef a0 0e 30 mvrc.d cp0,cr14,r0
54274 + *[0-9a-f]*: ef ae 00 30 mvrc.d cp0,cr0,lr
54275 + *[0-9a-f]*: ef a6 08 30 mvrc.d cp0,cr8,r6
54276 + *[0-9a-f]*: ef a8 06 30 mvrc.d cp0,cr6,r8
54277 +
54278 +[0-9a-f]* <fcasts_d>:
54279 + *[0-9a-f]*: e1 a7 1f e0 cop cp0,cr15,cr14,cr0,0xf
54280 + *[0-9a-f]*: e1 a7 10 00 cop cp0,cr0,cr0,cr0,0xf
54281 + *[0-9a-f]*: e1 a7 1f 00 cop cp0,cr15,cr0,cr0,0xf
54282 + *[0-9a-f]*: e1 a7 10 e0 cop cp0,cr0,cr14,cr0,0xf
54283 + *[0-9a-f]*: e1 a7 18 60 cop cp0,cr8,cr6,cr0,0xf
54284 + *[0-9a-f]*: e1 a7 17 80 cop cp0,cr7,cr8,cr0,0xf
54285 +
54286 +[0-9a-f]* <fcastd_s>:
54287 + *[0-9a-f]*: e1 a8 0e f0 cop cp0,cr14,cr15,cr0,0x10
54288 + *[0-9a-f]*: e1 a8 00 00 cop cp0,cr0,cr0,cr0,0x10
54289 + *[0-9a-f]*: e1 a8 0e 00 cop cp0,cr14,cr0,cr0,0x10
54290 + *[0-9a-f]*: e1 a8 00 f0 cop cp0,cr0,cr15,cr0,0x10
54291 + *[0-9a-f]*: e1 a8 08 70 cop cp0,cr8,cr7,cr0,0x10
54292 + *[0-9a-f]*: e1 a8 06 80 cop cp0,cr6,cr8,cr0,0x10
54293 diff -Nrup binutils-2.17/gas/testsuite/gas/avr32/fpinsn.s binutils-2.17.atmel.1.3.0/gas/testsuite/gas/avr32/fpinsn.s
54294 --- binutils-2.17/gas/testsuite/gas/avr32/fpinsn.s 1970-01-01 01:00:00.000000000 +0100
54295 +++ binutils-2.17.atmel.1.3.0/gas/testsuite/gas/avr32/fpinsn.s 2007-03-26 10:19:48.000000000 +0200
54296 @@ -0,0 +1,266 @@
54297 +
54298 + .text
54299 + .global fadd_s
54300 +fadd_s:
54301 + fadd.s fr15, fr15, fr15
54302 + fadd.s fr0, fr0, fr0
54303 + fadd.s fr0, fr15, fr15
54304 + fadd.s fr15, fr0, fr15
54305 + fadd.s fr15, fr15, fr0
54306 + fadd.s fr7, fr8, fr8
54307 + fadd.s fr8, fr7, fr8
54308 + fadd.s fr8, fr8, fr7
54309 + .global fsub_s
54310 +fsub_s:
54311 + fsub.s fr15, fr15, fr15
54312 + fsub.s fr0, fr0, fr0
54313 + fsub.s fr0, fr15, fr15
54314 + fsub.s fr15, fr0, fr15
54315 + fsub.s fr15, fr15, fr0
54316 + fsub.s fr7, fr8, fr8
54317 + fsub.s fr8, fr7, fr8
54318 + fsub.s fr8, fr8, fr7
54319 + .global fmac_s
54320 +fmac_s:
54321 + fmac.s fr15, fr15, fr15
54322 + fmac.s fr0, fr0, fr0
54323 + fmac.s fr0, fr15, fr15
54324 + fmac.s fr15, fr0, fr15
54325 + fmac.s fr15, fr15, fr0
54326 + fmac.s fr7, fr8, fr8
54327 + fmac.s fr8, fr7, fr8
54328 + fmac.s fr8, fr8, fr7
54329 + .global fnmac_s
54330 +fnmac_s:
54331 + fnmac.s fr15, fr15, fr15
54332 + fnmac.s fr0, fr0, fr0
54333 + fnmac.s fr0, fr15, fr15
54334 + fnmac.s fr15, fr0, fr15
54335 + fnmac.s fr15, fr15, fr0
54336 + fnmac.s fr7, fr8, fr8
54337 + fnmac.s fr8, fr7, fr8
54338 + fnmac.s fr8, fr8, fr7
54339 + .global fmsc_s
54340 +fmsc_s:
54341 + fmsc.s fr15, fr15, fr15
54342 + fmsc.s fr0, fr0, fr0
54343 + fmsc.s fr0, fr15, fr15
54344 + fmsc.s fr15, fr0, fr15
54345 + fmsc.s fr15, fr15, fr0
54346 + fmsc.s fr7, fr8, fr8
54347 + fmsc.s fr8, fr7, fr8
54348 + fmsc.s fr8, fr8, fr7
54349 + .global fnmsc_s
54350 +fnmsc_s:
54351 + fnmsc.s fr15, fr15, fr15
54352 + fnmsc.s fr0, fr0, fr0
54353 + fnmsc.s fr0, fr15, fr15
54354 + fnmsc.s fr15, fr0, fr15
54355 + fnmsc.s fr15, fr15, fr0
54356 + fnmsc.s fr7, fr8, fr8
54357 + fnmsc.s fr8, fr7, fr8
54358 + fnmsc.s fr8, fr8, fr7
54359 + .global fmul_s
54360 +fmul_s:
54361 + fmul.s fr15, fr15, fr15
54362 + fmul.s fr0, fr0, fr0
54363 + fmul.s fr0, fr15, fr15
54364 + fmul.s fr15, fr0, fr15
54365 + fmul.s fr15, fr15, fr0
54366 + fmul.s fr7, fr8, fr8
54367 + fmul.s fr8, fr7, fr8
54368 + fmul.s fr8, fr8, fr7
54369 + .global fnmul_s
54370 +fnmul_s:
54371 + fnmul.s fr15, fr15, fr15
54372 + fnmul.s fr0, fr0, fr0
54373 + fnmul.s fr0, fr15, fr15
54374 + fnmul.s fr15, fr0, fr15
54375 + fnmul.s fr15, fr15, fr0
54376 + fnmul.s fr7, fr8, fr8
54377 + fnmul.s fr8, fr7, fr8
54378 + fnmul.s fr8, fr8, fr7
54379 + .global fneg_s
54380 +fneg_s:
54381 + fneg.s fr15, fr15
54382 + fneg.s fr0, fr0
54383 + fneg.s fr0, fr15
54384 + fneg.s fr15, fr0
54385 + fneg.s fr7, fr8
54386 + fneg.s fr8, fr7
54387 + .global fabs_s
54388 +fabs_s:
54389 + fabs.s fr15, fr15
54390 + fabs.s fr0, fr0
54391 + fabs.s fr0, fr15
54392 + fabs.s fr15, fr0
54393 + fabs.s fr7, fr8
54394 + fabs.s fr8, fr7
54395 + .global fcmp_s
54396 +fcmp_s:
54397 + fcmp.s fr15, fr15
54398 + fcmp.s fr0, fr0
54399 + fcmp.s fr0, fr15
54400 + fcmp.s fr15, fr0
54401 + fcmp.s fr7, fr8
54402 + fcmp.s fr8, fr7
54403 + .global fadd_d
54404 +fadd_d:
54405 + fadd.d fr14, fr14, fr14
54406 + fadd.d fr0, fr0, fr0
54407 + fadd.d fr0, fr14, fr14
54408 + fadd.d fr14, fr0, fr14
54409 + fadd.d fr14, fr14, fr0
54410 + fadd.d fr6, fr8, fr8
54411 + fadd.d fr8, fr6, fr8
54412 + fadd.d fr8, fr8, fr6
54413 + .global fsub_d
54414 +fsub_d:
54415 + fsub.d fr14, fr14, fr14
54416 + fsub.d fr0, fr0, fr0
54417 + fsub.d fr0, fr14, fr14
54418 + fsub.d fr14, fr0, fr14
54419 + fsub.d fr14, fr14, fr0
54420 + fsub.d fr6, fr8, fr8
54421 + fsub.d fr8, fr6, fr8
54422 + fsub.d fr8, fr8, fr6
54423 + .global fmac_d
54424 +fmac_d:
54425 + fmac.d fr14, fr14, fr14
54426 + fmac.d fr0, fr0, fr0
54427 + fmac.d fr0, fr14, fr14
54428 + fmac.d fr14, fr0, fr14
54429 + fmac.d fr14, fr14, fr0
54430 + fmac.d fr6, fr8, fr8
54431 + fmac.d fr8, fr6, fr8
54432 + fmac.d fr8, fr8, fr6
54433 + .global fnmac_d
54434 +fnmac_d:
54435 + fnmac.d fr14, fr14, fr14
54436 + fnmac.d fr0, fr0, fr0
54437 + fnmac.d fr0, fr14, fr14
54438 + fnmac.d fr14, fr0, fr14
54439 + fnmac.d fr14, fr14, fr0
54440 + fnmac.d fr6, fr8, fr8
54441 + fnmac.d fr8, fr6, fr8
54442 + fnmac.d fr8, fr8, fr6
54443 + .global fmsc_d
54444 +fmsc_d:
54445 + fmsc.d fr14, fr14, fr14
54446 + fmsc.d fr0, fr0, fr0
54447 + fmsc.d fr0, fr14, fr14
54448 + fmsc.d fr14, fr0, fr14
54449 + fmsc.d fr14, fr14, fr0
54450 + fmsc.d fr6, fr8, fr8
54451 + fmsc.d fr8, fr6, fr8
54452 + fmsc.d fr8, fr8, fr6
54453 + .global fnmsc_d
54454 +fnmsc_d:
54455 + fnmsc.d fr14, fr14, fr14
54456 + fnmsc.d fr0, fr0, fr0
54457 + fnmsc.d fr0, fr14, fr14
54458 + fnmsc.d fr14, fr0, fr14
54459 + fnmsc.d fr14, fr14, fr0
54460 + fnmsc.d fr6, fr8, fr8
54461 + fnmsc.d fr8, fr6, fr8
54462 + fnmsc.d fr8, fr8, fr6
54463 + .global fmul_d
54464 +fmul_d:
54465 + fmul.d fr14, fr14, fr14
54466 + fmul.d fr0, fr0, fr0
54467 + fmul.d fr0, fr14, fr14
54468 + fmul.d fr14, fr0, fr14
54469 + fmul.d fr14, fr14, fr0
54470 + fmul.d fr6, fr8, fr8
54471 + fmul.d fr8, fr6, fr8
54472 + fmul.d fr8, fr8, fr6
54473 + .global fnmul_d
54474 +fnmul_d:
54475 + fnmul.d fr14, fr14, fr14
54476 + fnmul.d fr0, fr0, fr0
54477 + fnmul.d fr0, fr14, fr14
54478 + fnmul.d fr14, fr0, fr14
54479 + fnmul.d fr14, fr14, fr0
54480 + fnmul.d fr6, fr8, fr8
54481 + fnmul.d fr8, fr6, fr8
54482 + fnmul.d fr8, fr8, fr6
54483 + .global fneg_d
54484 +fneg_d:
54485 + fneg.d fr14, fr14
54486 + fneg.d fr0, fr0
54487 + fneg.d fr0, fr14
54488 + fneg.d fr14, fr0
54489 + fneg.d fr6, fr8
54490 + fneg.d fr8, fr6
54491 + .global fabs_d
54492 +fabs_d:
54493 + fabs.d fr14, fr14
54494 + fabs.d fr0, fr0
54495 + fabs.d fr0, fr14
54496 + fabs.d fr14, fr0
54497 + fabs.d fr6, fr8
54498 + fabs.d fr8, fr6
54499 + .global fcmp_d
54500 +fcmp_d:
54501 + fcmp.d fr14, fr14
54502 + fcmp.d fr0, fr0
54503 + fcmp.d fr0, fr14
54504 + fcmp.d fr14, fr0
54505 + fcmp.d fr6, fr8
54506 + fcmp.d fr8, fr6
54507 + .global fmov_s
54508 +fmov_s:
54509 + fmov.s fr15, fr15
54510 + fmov.s fr0, fr0
54511 + fmov.s fr15, fr0
54512 + fmov.s fr0, fr15
54513 + fmov.s fr8, fr7
54514 + fmov.s fr7, fr8
54515 + fmov.s pc, fr15
54516 + fmov.s r0, fr0
54517 + fmov.s pc, fr0
54518 + fmov.s r0, fr15
54519 + fmov.s r8, fr7
54520 + fmov.s r7, fr8
54521 + fmov.s fr15, pc
54522 + fmov.s fr0, r0
54523 + fmov.s fr15, r0
54524 + fmov.s fr0, pc
54525 + fmov.s fr8, r7
54526 + fmov.s fr7, r8
54527 + .global fmov_d
54528 +fmov_d:
54529 + fmov.d fr14, fr14
54530 + fmov.d fr0, fr0
54531 + fmov.d fr14, fr0
54532 + fmov.d fr0, fr14
54533 + fmov.d fr8, fr6
54534 + fmov.d fr6, fr8
54535 + fmov.d lr, fr14
54536 + fmov.d r0, fr0
54537 + fmov.d lr, fr0
54538 + fmov.d r0, fr14
54539 + fmov.d r8, fr6
54540 + fmov.d r6, fr8
54541 + fmov.d fr14, lr
54542 + fmov.d fr0, r0
54543 + fmov.d fr14, r0
54544 + fmov.d fr0, lr
54545 + fmov.d fr8, r6
54546 + fmov.d fr6, r8
54547 + .global fcasts_d
54548 +fcasts_d:
54549 + fcasts.d fr15, fr14
54550 + fcasts.d fr0, fr0
54551 + fcasts.d fr15, fr0
54552 + fcasts.d fr0, fr14
54553 + fcasts.d fr8, fr6
54554 + fcasts.d fr7, fr8
54555 + .global fcastd_s
54556 +fcastd_s:
54557 + fcastd.s fr14, fr15
54558 + fcastd.s fr0, fr0
54559 + fcastd.s fr14, fr0
54560 + fcastd.s fr0, fr15
54561 + fcastd.s fr8, fr7
54562 + fcastd.s fr6, fr8
54563 diff -Nrup binutils-2.17/gas/testsuite/gas/avr32/hwrd-lwrd.d binutils-2.17.atmel.1.3.0/gas/testsuite/gas/avr32/hwrd-lwrd.d
54564 --- binutils-2.17/gas/testsuite/gas/avr32/hwrd-lwrd.d 1970-01-01 01:00:00.000000000 +0100
54565 +++ binutils-2.17.atmel.1.3.0/gas/testsuite/gas/avr32/hwrd-lwrd.d 2007-03-26 10:19:48.000000000 +0200
54566 @@ -0,0 +1,47 @@
54567 +#as:
54568 +#objdump: -dr
54569 +#name: hwrd-lwrd
54570 +
54571 +.*: +file format .*
54572 +
54573 +Disassembly of section \.text:
54574 +
54575 +00000000 <test_hwrd>:
54576 + 0: e0 60 87 65 mov r0,34661
54577 + 4: e0 60 12 34 mov r0,4660
54578 + 8: e0 60 00 00 mov r0,0
54579 + 8: R_AVR32_HI16 \.text\+0x60
54580 + c: e0 60 00 00 mov r0,0
54581 + c: R_AVR32_HI16 extsym1
54582 + 10: ea 10 87 65 orh r0,0x8765
54583 + 14: ea 10 12 34 orh r0,0x1234
54584 + 18: ea 10 00 00 orh r0,0x0
54585 + 18: R_AVR32_HI16 \.text\+0x60
54586 + 1c: ea 10 00 00 orh r0,0x0
54587 + 1c: R_AVR32_HI16 extsym1
54588 + 20: e4 10 87 65 andh r0,0x8765
54589 + 24: e4 10 12 34 andh r0,0x1234
54590 + 28: e4 10 00 00 andh r0,0x0
54591 + 28: R_AVR32_HI16 \.text\+0x60
54592 + 2c: e4 10 00 00 andh r0,0x0
54593 + 2c: R_AVR32_HI16 extsym1
54594 +
54595 +00000030 <test_lwrd>:
54596 + 30: e0 60 43 21 mov r0,17185
54597 + 34: e0 60 56 78 mov r0,22136
54598 + 38: e0 60 00 00 mov r0,0
54599 + 38: R_AVR32_LO16 \.text\+0x60
54600 + 3c: e0 60 00 00 mov r0,0
54601 + 3c: R_AVR32_LO16 extsym1
54602 + 40: e8 10 43 21 orl r0,0x4321
54603 + 44: e8 10 56 78 orl r0,0x5678
54604 + 48: e8 10 00 00 orl r0,0x0
54605 + 48: R_AVR32_LO16 \.text\+0x60
54606 + 4c: e8 10 00 00 orl r0,0x0
54607 + 4c: R_AVR32_LO16 extsym1
54608 + 50: e0 10 43 21 andl r0,0x4321
54609 + 54: e0 10 56 78 andl r0,0x5678
54610 + 58: e0 10 00 00 andl r0,0x0
54611 + 58: R_AVR32_LO16 \.text\+0x60
54612 + 5c: e0 10 00 00 andl r0,0x0
54613 + 5c: R_AVR32_LO16 extsym1
54614 diff -Nrup binutils-2.17/gas/testsuite/gas/avr32/hwrd-lwrd.s binutils-2.17.atmel.1.3.0/gas/testsuite/gas/avr32/hwrd-lwrd.s
54615 --- binutils-2.17/gas/testsuite/gas/avr32/hwrd-lwrd.s 1970-01-01 01:00:00.000000000 +0100
54616 +++ binutils-2.17.atmel.1.3.0/gas/testsuite/gas/avr32/hwrd-lwrd.s 2007-03-26 10:19:48.000000000 +0200
54617 @@ -0,0 +1,39 @@
54618 +
54619 + .equ sym1, 0x12345678
54620 +
54621 + .text
54622 + .global test_hwrd
54623 +test_hwrd:
54624 + mov r0, hi(0x87654321)
54625 + mov r0, hi(sym1)
54626 + mov r0, hi(sym2)
54627 + mov r0, hi(extsym1)
54628 +
54629 + orh r0, hi(0x87654321)
54630 + orh r0, hi(sym1)
54631 + orh r0, hi(sym2)
54632 + orh r0, hi(extsym1)
54633 +
54634 + andh r0, hi(0x87654321)
54635 + andh r0, hi(sym1)
54636 + andh r0, hi(sym2)
54637 + andh r0, hi(extsym1)
54638 +
54639 + .global test_lwrd
54640 +test_lwrd:
54641 + mov r0, lo(0x87654321)
54642 + mov r0, lo(sym1)
54643 + mov r0, lo(sym2)
54644 + mov r0, lo(extsym1)
54645 +
54646 + orl r0, lo(0x87654321)
54647 + orl r0, lo(sym1)
54648 + orl r0, lo(sym2)
54649 + orl r0, lo(extsym1)
54650 +
54651 + andl r0, lo(0x87654321)
54652 + andl r0, lo(sym1)
54653 + andl r0, lo(sym2)
54654 + andl r0, lo(extsym1)
54655 +
54656 +sym2:
54657 diff -Nrup binutils-2.17/gas/testsuite/gas/avr32/jmptable.d binutils-2.17.atmel.1.3.0/gas/testsuite/gas/avr32/jmptable.d
54658 --- binutils-2.17/gas/testsuite/gas/avr32/jmptable.d 1970-01-01 01:00:00.000000000 +0100
54659 +++ binutils-2.17.atmel.1.3.0/gas/testsuite/gas/avr32/jmptable.d 2007-03-26 10:19:48.000000000 +0200
54660 @@ -0,0 +1,20 @@
54661 +#source: jmptable.s
54662 +#as:
54663 +#objdump: -dr
54664 +#name: jmptable
54665 +
54666 +.*: +file format .*
54667 +
54668 +Disassembly of section \.text:
54669 +
54670 +00000000 <jmptable_test>:
54671 + 0: fe c8 ff f4 sub r8,pc,-12
54672 + 4: f0 00 00 2f add pc,r8,r0<<0x2
54673 + 8: d7 03 nop
54674 + a: 00 00 add r0,r0
54675 + c: c0 38 rjmp 12 <jmptable_test\+0x12>
54676 + e: c0 38 rjmp 14 <jmptable_test\+0x14>
54677 + 10: c0 38 rjmp 16 <jmptable_test\+0x16>
54678 + 12: d7 03 nop
54679 + 14: d7 03 nop
54680 + 16: d7 03 nop
54681 diff -Nrup binutils-2.17/gas/testsuite/gas/avr32/jmptable_linkrelax.d binutils-2.17.atmel.1.3.0/gas/testsuite/gas/avr32/jmptable_linkrelax.d
54682 --- binutils-2.17/gas/testsuite/gas/avr32/jmptable_linkrelax.d 1970-01-01 01:00:00.000000000 +0100
54683 +++ binutils-2.17.atmel.1.3.0/gas/testsuite/gas/avr32/jmptable_linkrelax.d 2007-03-26 10:19:48.000000000 +0200
54684 @@ -0,0 +1,25 @@
54685 +#source: jmptable.s
54686 +#as: --linkrelax
54687 +#objdump: -dr
54688 +#name: jmptable_linkrelax
54689 +
54690 +.*: +file format .*
54691 +
54692 +Disassembly of section \.text:
54693 +
54694 +00000000 <jmptable_test>:
54695 + 0: fe c8 00 00 sub r8,pc,0
54696 + 0: R_AVR32_16N_PCREL \.text\+0xc
54697 + 4: f0 00 00 2f add pc,r8,r0<<0x2
54698 + 8: d7 03 nop
54699 + a: 00 00 add r0,r0
54700 + a: R_AVR32_ALIGN \*ABS\*\+0x2
54701 + c: c0 08 rjmp c <jmptable_test\+0xc>
54702 + c: R_AVR32_11H_PCREL \.text\+0x12
54703 + e: c0 08 rjmp e <jmptable_test\+0xe>
54704 + e: R_AVR32_11H_PCREL \.text\+0x14
54705 + 10: c0 08 rjmp 10 <jmptable_test\+0x10>
54706 + 10: R_AVR32_11H_PCREL \.text\+0x16
54707 + 12: d7 03 nop
54708 + 14: d7 03 nop
54709 + 16: d7 03 nop
54710 diff -Nrup binutils-2.17/gas/testsuite/gas/avr32/jmptable.s binutils-2.17.atmel.1.3.0/gas/testsuite/gas/avr32/jmptable.s
54711 --- binutils-2.17/gas/testsuite/gas/avr32/jmptable.s 1970-01-01 01:00:00.000000000 +0100
54712 +++ binutils-2.17.atmel.1.3.0/gas/testsuite/gas/avr32/jmptable.s 2007-03-26 10:19:48.000000000 +0200
54713 @@ -0,0 +1,14 @@
54714 +
54715 + .text
54716 + .global jmptable_test
54717 +jmptable_test:
54718 + sub r8, pc, -(.L1 - .)
54719 + add pc, r8, r0 << 2
54720 + nop
54721 + .align 2
54722 +.L1: rjmp 1f
54723 + rjmp 2f
54724 + rjmp 3f
54725 +1: nop
54726 +2: nop
54727 +3: nop
54728 diff -Nrup binutils-2.17/gas/testsuite/gas/avr32/lda_nopic.d binutils-2.17.atmel.1.3.0/gas/testsuite/gas/avr32/lda_nopic.d
54729 --- binutils-2.17/gas/testsuite/gas/avr32/lda_nopic.d 1970-01-01 01:00:00.000000000 +0100
54730 +++ binutils-2.17.atmel.1.3.0/gas/testsuite/gas/avr32/lda_nopic.d 2007-03-26 10:19:48.000000000 +0200
54731 @@ -0,0 +1,32 @@
54732 +#source: lda.s
54733 +#as:
54734 +#objdump: -dr
54735 +#name: lda_nopic
54736 +
54737 +.*: +file format .*
54738 +
54739 +Disassembly of section \.text:
54740 +
54741 +00000000 <lda_test>:
54742 + 0: f2 c8 00 00 sub r8,r9,0
54743 +
54744 +00000004 <far_negative>:
54745 + 4: f6 ca 00 00 sub r10,r11,0
54746 + ...
54747 + 8000: fe c0 7f fc sub r0,pc,32764
54748 + 8004: 48 31 lddpc r1,8010 <far_negative\+0x800c>
54749 + 8006: 48 42 lddpc r2,8014 <far_negative\+0x8010>
54750 + 8008: 48 43 lddpc r3,8018 <far_negative\+0x8014>
54751 + 800a: 48 54 lddpc r4,801c <far_negative\+0x8018>
54752 + 800c: fe c5 80 04 sub r5,pc,-32764
54753 + ...
54754 + 8010: R_AVR32_32_CPENT \.text
54755 + 8014: R_AVR32_32_CPENT \.data
54756 + 8018: R_AVR32_32_CPENT undefined
54757 + 801c: R_AVR32_32_CPENT \.text\+0x1001c
54758 +
54759 +00010008 <far_positive>:
54760 + 10008: fa cc 00 00 sub r12,sp,0
54761 + ...
54762 +0001001c <toofar_positive>:
54763 + 1001c: fe ce 00 00 sub lr,pc,0
54764 diff -Nrup binutils-2.17/gas/testsuite/gas/avr32/lda_nopic_linkrelax.d binutils-2.17.atmel.1.3.0/gas/testsuite/gas/avr32/lda_nopic_linkrelax.d
54765 --- binutils-2.17/gas/testsuite/gas/avr32/lda_nopic_linkrelax.d 1970-01-01 01:00:00.000000000 +0100
54766 +++ binutils-2.17.atmel.1.3.0/gas/testsuite/gas/avr32/lda_nopic_linkrelax.d 2007-03-26 10:19:48.000000000 +0200
54767 @@ -0,0 +1,41 @@
54768 +#source: lda.s
54769 +#as: --linkrelax
54770 +#objdump: -dr
54771 +#name: lda_nopic_linkrelax
54772 +
54773 +.*: +file format .*
54774 +
54775 +Disassembly of section \.text:
54776 +
54777 +00000000 <lda_test>:
54778 + 0: f2 c8 00 00 sub r8,r9,0
54779 +
54780 +00000004 <far_negative>:
54781 + 4: f6 ca 00 00 sub r10,r11,0
54782 + \.\.\.
54783 + 8000: 48 00 lddpc r0,8000 <far_negative\+0x7ffc>
54784 + 8000: R_AVR32_9W_CP \.text\+0x800c
54785 + 8002: 48 01 lddpc r1,8000 <far_negative\+0x7ffc>
54786 + 8002: R_AVR32_9W_CP \.text\+0x8010
54787 + 8004: 48 02 lddpc r2,8004 <far_negative\+0x8000>
54788 + 8004: R_AVR32_9W_CP \.text\+0x8014
54789 + 8006: 48 03 lddpc r3,8004 <far_negative\+0x8000>
54790 + 8006: R_AVR32_9W_CP \.text\+0x8018
54791 + 8008: 48 04 lddpc r4,8008 <far_negative\+0x8004>
54792 + 8008: R_AVR32_9W_CP \.text\+0x801c
54793 + 800a: 48 05 lddpc r5,8008 <far_negative\+0x8004>
54794 + 800a: R_AVR32_9W_CP \.text\+0x8020
54795 + \.\.\.
54796 + 800c: R_AVR32_ALIGN \*ABS\*\+0x2
54797 + 800c: R_AVR32_32_CPENT \.text\+0x4
54798 + 8010: R_AVR32_32_CPENT \.text
54799 + 8014: R_AVR32_32_CPENT \.data
54800 + 8018: R_AVR32_32_CPENT undefined
54801 + 801c: R_AVR32_32_CPENT \.text\+0x10020
54802 + 8020: R_AVR32_32_CPENT \.text\+0x1000c
54803 +
54804 +0001000c <far_positive>:
54805 + 1000c: fa cc 00 00 sub r12,sp,0
54806 + \.\.\.
54807 +00010020 <toofar_positive>:
54808 + 10020: fe ce 00 00 sub lr,pc,0
54809 diff -Nrup binutils-2.17/gas/testsuite/gas/avr32/lda_pic.d binutils-2.17.atmel.1.3.0/gas/testsuite/gas/avr32/lda_pic.d
54810 --- binutils-2.17/gas/testsuite/gas/avr32/lda_pic.d 1970-01-01 01:00:00.000000000 +0100
54811 +++ binutils-2.17.atmel.1.3.0/gas/testsuite/gas/avr32/lda_pic.d 2007-03-26 10:19:48.000000000 +0200
54812 @@ -0,0 +1,32 @@
54813 +#source: lda.s
54814 +#as: --pic
54815 +#objdump: -dr
54816 +#name: lda_pic
54817 +
54818 +.*: +file format .*
54819 +
54820 +Disassembly of section \.text:
54821 +
54822 +00000000 <lda_test>:
54823 + 0: f2 c8 00 00 sub r8,r9,0
54824 +
54825 +00000004 <far_negative>:
54826 + 4: f6 ca 00 00 sub r10,r11,0
54827 + ...
54828 + 8000: fe c0 7f fc sub r0,pc,32764
54829 + 8004: ec f1 00 00 ld.w r1,r6\[0\]
54830 + 8004: R_AVR32_GOT16S toofar_negative
54831 + 8008: ec f2 00 00 ld.w r2,r6\[0\]
54832 + 8008: R_AVR32_GOT16S different_section
54833 + 800c: ec f3 00 00 ld.w r3,r6\[0\]
54834 + 800c: R_AVR32_GOT16S undefined
54835 + 8010: ec f4 00 00 ld.w r4,r6\[0\]
54836 + 8010: R_AVR32_GOT16S toofar_positive
54837 + 8014: fe c5 80 14 sub r5,pc,-32748
54838 + ...
54839 +
54840 +00010000 <far_positive>:
54841 + 10000: fa cc 00 00 sub r12,sp,0
54842 + ...
54843 +00010014 <toofar_positive>:
54844 + 10014: fe ce 00 00 sub lr,pc,0
54845 diff -Nrup binutils-2.17/gas/testsuite/gas/avr32/lda_pic_linkrelax.d binutils-2.17.atmel.1.3.0/gas/testsuite/gas/avr32/lda_pic_linkrelax.d
54846 --- binutils-2.17/gas/testsuite/gas/avr32/lda_pic_linkrelax.d 1970-01-01 01:00:00.000000000 +0100
54847 +++ binutils-2.17.atmel.1.3.0/gas/testsuite/gas/avr32/lda_pic_linkrelax.d 2007-03-26 10:19:48.000000000 +0200
54848 @@ -0,0 +1,40 @@
54849 +#source: lda.s
54850 +#as: --pic --linkrelax
54851 +#objdump: -dr
54852 +#name: lda_pic_linkrelax
54853 +
54854 +.*: +file format .*
54855 +
54856 +Disassembly of section \.text:
54857 +
54858 +00000000 <lda_test>:
54859 + 0: f2 c8 00 00 sub r8,r9,0
54860 +
54861 +00000004 <far_negative>:
54862 + 4: f6 ca 00 00 sub r10,r11,0
54863 + ...
54864 + 8000: e0 60 00 00 mov r0,0
54865 + 8000: R_AVR32_LDA_GOT far_negative
54866 + 8004: ec 00 03 20 ld\.w r0,r6\[r0<<0x2\]
54867 + 8008: e0 61 00 00 mov r1,0
54868 + 8008: R_AVR32_LDA_GOT toofar_negative
54869 + 800c: ec 01 03 21 ld\.w r1,r6\[r1<<0x2\]
54870 + 8010: e0 62 00 00 mov r2,0
54871 + 8010: R_AVR32_LDA_GOT different_section
54872 + 8014: ec 02 03 22 ld\.w r2,r6\[r2<<0x2\]
54873 + 8018: e0 63 00 00 mov r3,0
54874 + 8018: R_AVR32_LDA_GOT undefined
54875 + 801c: ec 03 03 23 ld\.w r3,r6\[r3<<0x2\]
54876 + 8020: e0 64 00 00 mov r4,0
54877 + 8020: R_AVR32_LDA_GOT toofar_positive
54878 + 8024: ec 04 03 24 ld\.w r4,r6\[r4<<0x2\]
54879 + 8028: e0 65 00 00 mov r5,0
54880 + 8028: R_AVR32_LDA_GOT far_positive
54881 + 802c: ec 05 03 25 ld\.w r5,r6\[r5<<0x2\]
54882 + ...
54883 +
54884 +00010018 <far_positive>:
54885 + 10018: fa cc 00 00 sub r12,sp,0
54886 + ...
54887 +0001002c <toofar_positive>:
54888 + 1002c: fe ce 00 00 sub lr,pc,0
54889 diff -Nrup binutils-2.17/gas/testsuite/gas/avr32/lda.s binutils-2.17.atmel.1.3.0/gas/testsuite/gas/avr32/lda.s
54890 --- binutils-2.17/gas/testsuite/gas/avr32/lda.s 1970-01-01 01:00:00.000000000 +0100
54891 +++ binutils-2.17.atmel.1.3.0/gas/testsuite/gas/avr32/lda.s 2007-03-26 10:19:48.000000000 +0200
54892 @@ -0,0 +1,30 @@
54893 +
54894 + .text
54895 + .global lda_test
54896 +lda_test:
54897 +toofar_negative:
54898 + sub r8, r9, 0
54899 +far_negative:
54900 + sub r10, r11, 0
54901 +
54902 + .fill 32760, 1, 0x00
54903 +
54904 + lda.w r0, far_negative
54905 + lda.w r1, toofar_negative
54906 + lda.w r2, different_section
54907 + lda.w r3, undefined
54908 + lda.w r4, toofar_positive
54909 + lda.w r5, far_positive
54910 +
54911 + .cpool
54912 +
54913 + .fill 32744, 1, 0x00
54914 +far_positive:
54915 + sub r12, sp, 0
54916 + .fill 16, 1, 0x00
54917 +toofar_positive:
54918 + sub lr, pc, 0
54919 +
54920 + .data
54921 +different_section:
54922 + .long 0x12345678
54923 diff -Nrup binutils-2.17/gas/testsuite/gas/avr32/pcrel.d binutils-2.17.atmel.1.3.0/gas/testsuite/gas/avr32/pcrel.d
54924 --- binutils-2.17/gas/testsuite/gas/avr32/pcrel.d 1970-01-01 01:00:00.000000000 +0100
54925 +++ binutils-2.17.atmel.1.3.0/gas/testsuite/gas/avr32/pcrel.d 2007-03-26 10:19:48.000000000 +0200
54926 @@ -0,0 +1,64 @@
54927 +#as:
54928 +#objdump: -dr
54929 +#name: pcrel
54930 +
54931 +.*: +file format .*
54932 +
54933 +Disassembly of section \.text:
54934 +
54935 +00000000 <test_rjmp>:
54936 + 0: d7 03 nop
54937 + 2: c0 28 rjmp 6 <test_rjmp\+0x6>
54938 + 4: d7 03 nop
54939 + 6: e0 8f 00 00 bral 6 <test_rjmp\+0x6>
54940 + 6: R_AVR32_22H_PCREL extsym10
54941 +
54942 +0000000a <test_rcall>:
54943 + a: d7 03 nop
54944 +0000000c <test_rcall2>:
54945 + c: c0 2c rcall 10 <test_rcall2\+0x4>
54946 + e: d7 03 nop
54947 + 10: e0 a0 00 00 rcall 10 <test_rcall2\+0x4>
54948 + 10: R_AVR32_22H_PCREL extsym21
54949 +
54950 +00000014 <test_branch>:
54951 + 14: c0 31 brne 1a <test_branch\+0x6>
54952 + 16: e0 8f 00 00 bral 16 <test_branch\+0x2>
54953 + 16: R_AVR32_22H_PCREL test_branch
54954 + 1a: e0 80 00 00 breq 1a <test_branch\+0x6>
54955 + 1a: R_AVR32_22H_PCREL extsym21
54956 +
54957 +0000001e <test_lddpc>:
54958 + 1e: 48 30 lddpc r0,28 <sym1>
54959 + 20: 48 20 lddpc r0,28 <sym1>
54960 + 22: fe f0 00 00 ld.w r0,pc\[0\]
54961 + 22: R_AVR32_16B_PCREL extsym16
54962 + \.\.\.
54963 +
54964 +00000028 <sym1>:
54965 + 28: d7 03 nop
54966 + 2a: d7 03 nop
54967 +
54968 +0000002c <test_local>:
54969 + 2c: 48 20 lddpc r0,34 <test_local\+0x8>
54970 + 2e: 48 30 lddpc r0,38 <test_local\+0xc>
54971 + 30: 48 20 lddpc r0,38 <test_local\+0xc>
54972 + 32: 00 00 add r0,r0
54973 + 34: d7 03 nop
54974 + 36: d7 03 nop
54975 + 38: d7 03 nop
54976 + 3a: d7 03 nop
54977 +
54978 +Disassembly of section \.text\.init:
54979 +
54980 +00000000 <test_inter_section>:
54981 + 0: e0 a0 .. .. rcall [0-9a-f]+ <.*>
54982 + 0: R_AVR32_22H_PCREL test_rcall
54983 + 4: d7 03 nop
54984 + 6: e0 a0 .. .. rcall [0-9a-f]+ <.*>
54985 + 6: R_AVR32_22H_PCREL test_rcall
54986 + a: e0 a0 .. .. rcall [0-9a-z]+ <.*>
54987 + a: R_AVR32_22H_PCREL \.text\+0xc
54988 + e: d7 03 nop
54989 + 10: e0 a0 .. .. rcall [0-9a-f]+ <.*>
54990 + 10: R_AVR32_22H_PCREL \.text\+0xc
54991 diff -Nrup binutils-2.17/gas/testsuite/gas/avr32/pcrel.s binutils-2.17.atmel.1.3.0/gas/testsuite/gas/avr32/pcrel.s
54992 --- binutils-2.17/gas/testsuite/gas/avr32/pcrel.s 1970-01-01 01:00:00.000000000 +0100
54993 +++ binutils-2.17.atmel.1.3.0/gas/testsuite/gas/avr32/pcrel.s 2007-03-26 10:19:48.000000000 +0200
54994 @@ -0,0 +1,57 @@
54995 +
54996 + .text
54997 + .global test_rjmp
54998 +test_rjmp:
54999 + nop
55000 + rjmp 0f
55001 + nop
55002 +0: rjmp extsym10
55003 +
55004 + .global test_rcall
55005 +test_rcall:
55006 + nop
55007 +test_rcall2:
55008 + rcall 0f
55009 + nop
55010 +0: rcall extsym21
55011 +
55012 + .global test_branch
55013 +test_branch:
55014 + brne 0f
55015 + /* This will generate a reloc since test_branch is global */
55016 + bral test_branch
55017 +0: breq extsym21
55018 +
55019 + .global test_lddpc
55020 +test_lddpc:
55021 + lddpc r0,sym1
55022 + lddpc r0,sym1
55023 + lddpc r0,extsym16
55024 +
55025 + .align 2
55026 +sym1: nop
55027 + nop
55028 +
55029 + .global test_local
55030 +test_local:
55031 + lddpc r0, .LC1
55032 + lddpc r0, .LC2
55033 + lddpc r0, .LC1 + 0x4
55034 +
55035 + .align 2
55036 +.LC1:
55037 + nop
55038 + nop
55039 +.LC2:
55040 + nop
55041 + nop
55042 +
55043 + .section .text.init,"ax"
55044 + .global test_inter_section
55045 +test_inter_section:
55046 + rcall test_rcall
55047 + nop
55048 + rcall test_rcall
55049 + rcall test_rcall2
55050 + nop
55051 + rcall test_rcall2
55052 diff -Nrup binutils-2.17/gas/testsuite/gas/avr32/pico.d binutils-2.17.atmel.1.3.0/gas/testsuite/gas/avr32/pico.d
55053 --- binutils-2.17/gas/testsuite/gas/avr32/pico.d 1970-01-01 01:00:00.000000000 +0100
55054 +++ binutils-2.17.atmel.1.3.0/gas/testsuite/gas/avr32/pico.d 2007-03-26 10:19:48.000000000 +0200
55055 @@ -0,0 +1,149 @@
55056 +#as:
55057 +#objdump: -dr
55058 +#name: pico
55059 +
55060 +.*: +file format .*
55061 +
55062 +Disassembly of section \.text:
55063 +
55064 +[0-9a-f]* <picosvmac>:
55065 + *[0-9a-f]*: e1 a6 20 00 cop cp1,cr0,cr0,cr0,0xc
55066 + *[0-9a-f]*: e1 a7 2b bb cop cp1,cr11,cr11,cr11,0xe
55067 + *[0-9a-f]*: e1 a6 3a 05 cop cp1,cr10,cr0,cr5,0xd
55068 + *[0-9a-f]*: e1 a7 36 90 cop cp1,cr6,cr9,cr0,0xf
55069 +
55070 +[0-9a-f]* <picosvmul>:
55071 + *[0-9a-f]*: e1 a4 20 00 cop cp1,cr0,cr0,cr0,0x8
55072 + *[0-9a-f]*: e1 a5 2b bb cop cp1,cr11,cr11,cr11,0xa
55073 + *[0-9a-f]*: e1 a4 3a 05 cop cp1,cr10,cr0,cr5,0x9
55074 + *[0-9a-f]*: e1 a5 36 90 cop cp1,cr6,cr9,cr0,0xb
55075 +
55076 +[0-9a-f]* <picovmac>:
55077 + *[0-9a-f]*: e1 a2 20 00 cop cp1,cr0,cr0,cr0,0x4
55078 + *[0-9a-f]*: e1 a3 2b bb cop cp1,cr11,cr11,cr11,0x6
55079 + *[0-9a-f]*: e1 a2 3a 05 cop cp1,cr10,cr0,cr5,0x5
55080 + *[0-9a-f]*: e1 a3 36 90 cop cp1,cr6,cr9,cr0,0x7
55081 +
55082 +[0-9a-f]* <picovmul>:
55083 + *[0-9a-f]*: e1 a0 20 00 cop cp1,cr0,cr0,cr0,0x0
55084 + *[0-9a-f]*: e1 a1 2b bb cop cp1,cr11,cr11,cr11,0x2
55085 + *[0-9a-f]*: e1 a0 3a 05 cop cp1,cr10,cr0,cr5,0x1
55086 + *[0-9a-f]*: e1 a1 36 90 cop cp1,cr6,cr9,cr0,0x3
55087 +
55088 +[0-9a-f]* <picold_d>:
55089 + *[0-9a-f]*: e9 af 3e ff ldc\.d cp1,cr14,pc\[0x3fc\]
55090 + *[0-9a-f]*: e9 a0 30 ff ldc\.d cp1,cr0,r0\[0x3fc\]
55091 + *[0-9a-f]*: e9 a0 30 00 ldc\.d cp1,cr0,r0\[0x0\]
55092 + *[0-9a-f]*: ef a8 26 50 ldc\.d cp1,cr6,--r8
55093 + *[0-9a-f]*: ef a7 28 50 ldc\.d cp1,cr8,--r7
55094 + *[0-9a-f]*: ef aa 32 65 ldc\.d cp1,cr2,r10\[r5<<0x2\]
55095 + *[0-9a-f]*: ef a3 3c 46 ldc\.d cp1,cr12,r3\[r6\]
55096 +
55097 +[0-9a-f]* <picold_w>:
55098 + *[0-9a-f]*: e9 af 2f ff ldc\.w cp1,cr15,pc\[0x3fc\]
55099 + *[0-9a-f]*: e9 a0 20 ff ldc\.w cp1,cr0,r0\[0x3fc\]
55100 + *[0-9a-f]*: e9 a0 20 00 ldc\.w cp1,cr0,r0\[0x0\]
55101 + *[0-9a-f]*: ef a8 27 40 ldc\.w cp1,cr7,--r8
55102 + *[0-9a-f]*: ef a7 28 40 ldc\.w cp1,cr8,--r7
55103 + *[0-9a-f]*: ef aa 31 25 ldc\.w cp1,cr1,r10\[r5<<0x2\]
55104 + *[0-9a-f]*: ef a3 3d 06 ldc\.w cp1,cr13,r3\[r6\]
55105 +
55106 +[0-9a-f]* <picoldm_d>:
55107 + *[0-9a-f]*: ed af 24 ff ldcm\.d cp1,pc,cr0-cr15
55108 + *[0-9a-f]*: ed a0 24 01 ldcm\.d cp1,r0,cr0-cr1
55109 + *[0-9a-f]*: ed a7 24 80 ldcm\.d cp1,r7,cr14-cr15
55110 + *[0-9a-f]*: ed a8 24 7f ldcm\.d cp1,r8,cr0-cr13
55111 +
55112 +[0-9a-f]* <picoldm_d_pu>:
55113 + *[0-9a-f]*: ed af 34 ff ldcm\.d cp1,pc\+\+,cr0-cr15
55114 + *[0-9a-f]*: ed a0 34 01 ldcm\.d cp1,r0\+\+,cr0-cr1
55115 + *[0-9a-f]*: ed a7 34 80 ldcm\.d cp1,r7\+\+,cr14-cr15
55116 + *[0-9a-f]*: ed a8 34 7f ldcm\.d cp1,r8\+\+,cr0-cr13
55117 +
55118 +[0-9a-f]* <picoldm_w>:
55119 + *[0-9a-f]*: ed af 20 ff ldcm\.w cp1,pc,cr0-cr7
55120 + *[0-9a-f]*: ed a0 20 01 ldcm\.w cp1,r0,cr0
55121 + *[0-9a-f]*: ed a7 20 80 ldcm\.w cp1,r7,cr7
55122 + *[0-9a-f]*: ed a8 20 7f ldcm\.w cp1,r8,cr0-cr6
55123 + *[0-9a-f]*: ed af 21 ff ldcm\.w cp1,pc,cr8-cr15
55124 + *[0-9a-f]*: ed a0 21 01 ldcm\.w cp1,r0,cr8
55125 + *[0-9a-f]*: ed a7 21 80 ldcm\.w cp1,r7,cr15
55126 + *[0-9a-f]*: ed a8 21 7f ldcm\.w cp1,r8,cr8-cr14
55127 +
55128 +[0-9a-f]* <picoldm_w_pu>:
55129 + *[0-9a-f]*: ed af 30 ff ldcm\.w cp1,pc\+\+,cr0-cr7
55130 + *[0-9a-f]*: ed a0 30 01 ldcm\.w cp1,r0\+\+,cr0
55131 + *[0-9a-f]*: ed a7 30 80 ldcm\.w cp1,r7\+\+,cr7
55132 + *[0-9a-f]*: ed a8 30 7f ldcm\.w cp1,r8\+\+,cr0-cr6
55133 + *[0-9a-f]*: ed af 31 ff ldcm\.w cp1,pc\+\+,cr8-cr15
55134 + *[0-9a-f]*: ed a0 31 01 ldcm\.w cp1,r0\+\+,cr8
55135 + *[0-9a-f]*: ed a7 31 80 ldcm\.w cp1,r7\+\+,cr15
55136 + *[0-9a-f]*: ed a8 31 7f ldcm\.w cp1,r8\+\+,cr8-cr14
55137 +
55138 +[0-9a-f]* <picomv_d>:
55139 + *[0-9a-f]*: ef ae 2e 30 mvrc\.d cp1,cr14,lr
55140 + *[0-9a-f]*: ef a0 20 30 mvrc\.d cp1,cr0,r0
55141 + *[0-9a-f]*: ef a8 26 30 mvrc\.d cp1,cr6,r8
55142 + *[0-9a-f]*: ef a6 28 30 mvrc\.d cp1,cr8,r6
55143 + *[0-9a-f]*: ef ae 2e 10 mvcr\.d cp1,lr,cr14
55144 + *[0-9a-f]*: ef a0 20 10 mvcr\.d cp1,r0,cr0
55145 + *[0-9a-f]*: ef a8 26 10 mvcr\.d cp1,r8,cr6
55146 + *[0-9a-f]*: ef a6 28 10 mvcr\.d cp1,r6,cr8
55147 +
55148 +[0-9a-f]* <picomv_w>:
55149 + *[0-9a-f]*: ef af 2f 20 mvrc\.w cp1,cr15,pc
55150 + *[0-9a-f]*: ef a0 20 20 mvrc\.w cp1,cr0,r0
55151 + *[0-9a-f]*: ef a8 27 20 mvrc\.w cp1,cr7,r8
55152 + *[0-9a-f]*: ef a7 28 20 mvrc\.w cp1,cr8,r7
55153 + *[0-9a-f]*: ef af 2f 00 mvcr\.w cp1,pc,cr15
55154 + *[0-9a-f]*: ef a0 20 00 mvcr\.w cp1,r0,cr0
55155 + *[0-9a-f]*: ef a8 27 00 mvcr\.w cp1,r8,cr7
55156 + *[0-9a-f]*: ef a7 28 00 mvcr\.w cp1,r7,cr8
55157 +
55158 +[0-9a-f]* <picost_d>:
55159 + *[0-9a-f]*: eb af 3e ff stc\.d cp1,pc\[0x3fc\],cr14
55160 + *[0-9a-f]*: eb a0 30 00 stc\.d cp1,r0\[0x0\],cr0
55161 + *[0-9a-f]*: ef a8 26 70 stc\.d cp1,r8\+\+,cr6
55162 + *[0-9a-f]*: ef a7 28 70 stc\.d cp1,r7\+\+,cr8
55163 + *[0-9a-f]*: ef aa 32 e5 stc\.d cp1,r10\[r5<<0x2\],cr2
55164 + *[0-9a-f]*: ef a3 3c c6 stc\.d cp1,r3\[r6\],cr12
55165 +
55166 +[0-9a-f]* <picost_w>:
55167 + *[0-9a-f]*: eb af 2f ff stc\.w cp1,pc\[0x3fc\],cr15
55168 + *[0-9a-f]*: eb a0 20 00 stc\.w cp1,r0\[0x0\],cr0
55169 + *[0-9a-f]*: ef a8 27 60 stc\.w cp1,r8\+\+,cr7
55170 + *[0-9a-f]*: ef a7 28 60 stc\.w cp1,r7\+\+,cr8
55171 + *[0-9a-f]*: ef aa 31 a5 stc\.w cp1,r10\[r5<<0x2\],cr1
55172 + *[0-9a-f]*: ef a3 3d 86 stc\.w cp1,r3\[r6\],cr13
55173 +
55174 +[0-9a-f]* <picostm_d>:
55175 + *[0-9a-f]*: ed af 25 ff stcm\.d cp1,pc,cr0-cr15
55176 + *[0-9a-f]*: ed a0 25 01 stcm\.d cp1,r0,cr0-cr1
55177 + *[0-9a-f]*: ed a7 25 80 stcm\.d cp1,r7,cr14-cr15
55178 + *[0-9a-f]*: ed a8 25 7f stcm\.d cp1,r8,cr0-cr13
55179 +
55180 +[0-9a-f]* <picostm_d_pu>:
55181 + *[0-9a-f]*: ed af 35 ff stcm\.d cp1,--pc,cr0-cr15
55182 + *[0-9a-f]*: ed a0 35 01 stcm\.d cp1,--r0,cr0-cr1
55183 + *[0-9a-f]*: ed a7 35 80 stcm\.d cp1,--r7,cr14-cr15
55184 + *[0-9a-f]*: ed a8 35 7f stcm\.d cp1,--r8,cr0-cr13
55185 +
55186 +[0-9a-f]* <picostm_w>:
55187 + *[0-9a-f]*: ed af 22 ff stcm\.w cp1,pc,cr0-cr7
55188 + *[0-9a-f]*: ed a0 22 01 stcm\.w cp1,r0,cr0
55189 + *[0-9a-f]*: ed a7 22 80 stcm\.w cp1,r7,cr7
55190 + *[0-9a-f]*: ed a8 22 7f stcm\.w cp1,r8,cr0-cr6
55191 + *[0-9a-f]*: ed af 23 ff stcm\.w cp1,pc,cr8-cr15
55192 + *[0-9a-f]*: ed a0 23 01 stcm\.w cp1,r0,cr8
55193 + *[0-9a-f]*: ed a7 23 80 stcm\.w cp1,r7,cr15
55194 + *[0-9a-f]*: ed a8 23 7f stcm\.w cp1,r8,cr8-cr14
55195 +
55196 +[0-9a-f]* <picostm_w_pu>:
55197 + *[0-9a-f]*: ed af 32 ff stcm\.w cp1,--pc,cr0-cr7
55198 + *[0-9a-f]*: ed a0 32 01 stcm\.w cp1,--r0,cr0
55199 + *[0-9a-f]*: ed a7 32 80 stcm\.w cp1,--r7,cr7
55200 + *[0-9a-f]*: ed a8 32 7f stcm\.w cp1,--r8,cr0-cr6
55201 + *[0-9a-f]*: ed af 33 ff stcm\.w cp1,--pc,cr8-cr15
55202 + *[0-9a-f]*: ed a0 33 01 stcm\.w cp1,--r0,cr8
55203 + *[0-9a-f]*: ed a7 33 80 stcm\.w cp1,--r7,cr15
55204 + *[0-9a-f]*: ed a8 33 7f stcm\.w cp1,--r8,cr8-cr14
55205 diff -Nrup binutils-2.17/gas/testsuite/gas/avr32/pico.s binutils-2.17.atmel.1.3.0/gas/testsuite/gas/avr32/pico.s
55206 --- binutils-2.17/gas/testsuite/gas/avr32/pico.s 1970-01-01 01:00:00.000000000 +0100
55207 +++ binutils-2.17.atmel.1.3.0/gas/testsuite/gas/avr32/pico.s 2007-03-26 10:19:48.000000000 +0200
55208 @@ -0,0 +1,144 @@
55209 +
55210 + .text
55211 + .global picosvmac
55212 +picosvmac:
55213 + picosvmac out0, in0, in0, in0
55214 + picosvmac out2, in11, in11, in11
55215 + picosvmac out1, in10, in0, in5
55216 + picosvmac out3, in6, in9, in0
55217 + .global picosvmul
55218 +picosvmul:
55219 + picosvmul out0, in0, in0, in0
55220 + picosvmul out2, in11, in11, in11
55221 + picosvmul out1, in10, in0, in5
55222 + picosvmul out3, in6, in9, in0
55223 + .global picovmac
55224 +picovmac:
55225 + picovmac out0, in0, in0, in0
55226 + picovmac out2, in11, in11, in11
55227 + picovmac out1, in10, in0, in5
55228 + picovmac out3, in6, in9, in0
55229 + .global picovmul
55230 +picovmul:
55231 + picovmul out0, in0, in0, in0
55232 + picovmul out2, in11, in11, in11
55233 + picovmul out1, in10, in0, in5
55234 + picovmul out3, in6, in9, in0
55235 + .global picold_d
55236 +picold_d:
55237 + picold.d vmu2_out, pc[1020]
55238 + picold.d inpix2, r0[1020]
55239 + picold.d inpix2, r0[0]
55240 + picold.d coeff0_a, --r8
55241 + picold.d coeff1_a, --r7
55242 + picold.d inpix0, r10[r5 << 2]
55243 + picold.d vmu0_out, r3[r6 << 0]
55244 + .global picold_w
55245 +picold_w:
55246 + picold.w config, pc[1020]
55247 + picold.w inpix2, r0[1020]
55248 + picold.w inpix2, r0[0]
55249 + picold.w coeff0_b, --r8
55250 + picold.w coeff1_a, --r7
55251 + picold.w inpix1, r10[r5 << 2]
55252 + picold.w vmu1_out, r3[r6 << 0]
55253 + .global picoldm_d
55254 +picoldm_d:
55255 + picoldm.d pc, inpix2-config
55256 + picoldm.d r0, inpix2, inpix1
55257 + picoldm.d r7, vmu2_out, config
55258 + picoldm.d r8, inpix2-vmu1_out
55259 + .global picoldm_d_pu
55260 +picoldm_d_pu:
55261 + picoldm.d pc++, inpix2, inpix1, inpix0, outpix2, outpix1, outpix0, coeff0_a, coeff0_b, coeff1_a, coeff1_b, coeff2_a, coeff2_b, vmu0_out, vmu1_out, vmu2_out, config
55262 + picoldm.d r0++, inpix2, inpix1
55263 + picoldm.d r7++, vmu2_out, config
55264 + picoldm.d r8++, inpix2, inpix1, inpix0, outpix2, outpix1, outpix0, coeff0_a, coeff0_b, coeff1_a, coeff1_b, coeff2_a, coeff2_b, vmu0_out, vmu1_out
55265 + .global picoldm_w
55266 +picoldm_w:
55267 + picoldm.w pc, inpix2-coeff0_b
55268 + picoldm.w r0, inpix2
55269 + picoldm.w r7, coeff0_b
55270 + picoldm.w r8, inpix2-coeff0_a
55271 + picoldm.w pc, coeff1_a-config
55272 + picoldm.w r0, coeff1_a
55273 + picoldm.w r7, config
55274 + picoldm.w r8, coeff1_a-vmu2_out
55275 + .global picoldm_w_pu
55276 +picoldm_w_pu:
55277 + picoldm.w pc++, inpix2-coeff0_b
55278 + picoldm.w r0++, inpix2
55279 + picoldm.w r7++, coeff0_b
55280 + picoldm.w r8++, inpix2-coeff0_a
55281 + picoldm.w pc++, coeff1_a-config
55282 + picoldm.w r0++, coeff1_a
55283 + picoldm.w r7++, config
55284 + picoldm.w r8++, coeff1_a-vmu2_out
55285 + .global picomv_d
55286 +picomv_d:
55287 + picomv.d vmu2_out, lr
55288 + picomv.d inpix2, r0
55289 + picomv.d coeff0_a, r8
55290 + picomv.d coeff1_a, r6
55291 + picomv.d pc, vmu2_out
55292 + picomv.d r0, inpix2
55293 + picomv.d r8, coeff0_a
55294 + picomv.d r6, coeff1_a
55295 + .global picomv_w
55296 +picomv_w:
55297 + picomv.w config, pc
55298 + picomv.w inpix2, r0
55299 + picomv.w coeff0_b, r8
55300 + picomv.w coeff1_a, r7
55301 + picomv.w pc, config
55302 + picomv.w r0, inpix2
55303 + picomv.w r8, coeff0_b
55304 + picomv.w r7, coeff1_a
55305 + .global picost_d
55306 +picost_d:
55307 + picost.d pc[1020], vmu2_out
55308 + picost.d r0[0], inpix2
55309 + picost.d r8++, coeff0_a
55310 + picost.d r7++, coeff1_a
55311 + picost.d r10[r5 << 2], inpix0
55312 + picost.d r3[r6 << 0], vmu0_out
55313 + .global picost_w
55314 +picost_w:
55315 + picost.w pc[1020], config
55316 + picost.w r0[0], inpix2
55317 + picost.w r8++, coeff0_b
55318 + picost.w r7++, coeff1_a
55319 + picost.w r10[r5 << 2], inpix1
55320 + picost.w r3[r6 << 0], vmu1_out
55321 + .global picostm_d
55322 +picostm_d:
55323 + picostm.d pc, inpix2-config
55324 + picostm.d r0, inpix2, inpix1
55325 + picostm.d r7, vmu2_out, config
55326 + picostm.d r8, inpix2-vmu1_out
55327 + .global picostm_d_pu
55328 +picostm_d_pu:
55329 + picostm.d --pc, inpix2, inpix1, inpix0, outpix2, outpix1, outpix0, coeff0_a, coeff0_b, coeff1_a, coeff1_b, coeff2_a, coeff2_b, vmu0_out, vmu1_out, vmu2_out, config
55330 + picostm.d --r0, inpix2, inpix1
55331 + picostm.d --r7, vmu2_out, config
55332 + picostm.d --r8, inpix2, inpix1, inpix0, outpix2, outpix1, outpix0, coeff0_a, coeff0_b, coeff1_a, coeff1_b, coeff2_a, coeff2_b, vmu0_out, vmu1_out
55333 + .global picostm_w
55334 +picostm_w:
55335 + picostm.w pc, inpix2-coeff0_b
55336 + picostm.w r0, inpix2
55337 + picostm.w r7, coeff0_b
55338 + picostm.w r8, inpix2-coeff0_a
55339 + picostm.w pc, coeff1_a-config
55340 + picostm.w r0, coeff1_a
55341 + picostm.w r7, config
55342 + picostm.w r8, coeff1_a-vmu2_out
55343 + .global picostm_w_pu
55344 +picostm_w_pu:
55345 + picostm.w --pc, inpix2-coeff0_b
55346 + picostm.w --r0, inpix2
55347 + picostm.w --r7, coeff0_b
55348 + picostm.w --r8, inpix2-coeff0_a
55349 + picostm.w --pc, coeff1_a-config
55350 + picostm.w --r0, coeff1_a
55351 + picostm.w --r7, config
55352 + picostm.w --r8, coeff1_a-vmu2_out
55353 diff -Nrup binutils-2.17/gas/testsuite/gas/avr32/pic_reloc.d binutils-2.17.atmel.1.3.0/gas/testsuite/gas/avr32/pic_reloc.d
55354 --- binutils-2.17/gas/testsuite/gas/avr32/pic_reloc.d 1970-01-01 01:00:00.000000000 +0100
55355 +++ binutils-2.17.atmel.1.3.0/gas/testsuite/gas/avr32/pic_reloc.d 2007-03-26 10:19:48.000000000 +0200
55356 @@ -0,0 +1,27 @@
55357 +#as:
55358 +#objdump: -dr
55359 +#name: pic_reloc
55360 +
55361 +.*: +file format .*
55362 +
55363 +Disassembly of section \.text:
55364 +
55365 +00000000 <mcall_got>:
55366 + 0: f0 16 00 00 mcall r6\[0\]
55367 + 0: R_AVR32_GOT18SW extfunc
55368 + 4: f0 16 00 00 mcall r6\[0\]
55369 + 4: R_AVR32_GOT18SW \.L1
55370 + 8: f0 16 00 00 mcall r6\[0\]
55371 + 8: R_AVR32_GOT18SW \.L2
55372 + c: f0 16 00 00 mcall r6\[0\]
55373 + c: R_AVR32_GOT18SW mcall_got
55374 +
55375 +00000010 <ldw_got>:
55376 + 10: ec f0 00 00 ld.w r0,r6\[0\]
55377 + 10: R_AVR32_GOT16S extvar
55378 + 14: ec f0 00 00 ld.w r0,r6\[0\]
55379 + 14: R_AVR32_GOT16S \.L3
55380 + 18: ec f0 00 00 ld.w r0,r6\[0\]
55381 + 18: R_AVR32_GOT16S \.L4
55382 + 1c: ec f0 00 00 ld.w r0,r6\[0\]
55383 + 1c: R_AVR32_GOT16S ldw_got
55384 diff -Nrup binutils-2.17/gas/testsuite/gas/avr32/pic_reloc.s binutils-2.17.atmel.1.3.0/gas/testsuite/gas/avr32/pic_reloc.s
55385 --- binutils-2.17/gas/testsuite/gas/avr32/pic_reloc.s 1970-01-01 01:00:00.000000000 +0100
55386 +++ binutils-2.17.atmel.1.3.0/gas/testsuite/gas/avr32/pic_reloc.s 2007-03-26 10:19:48.000000000 +0200
55387 @@ -0,0 +1,18 @@
55388 +
55389 + .text
55390 + .global mcall_got
55391 +mcall_got:
55392 +.L1:
55393 + mcall r6[extfunc@got]
55394 + mcall r6[.L1@got]
55395 + mcall r6[.L2@got]
55396 + mcall r6[mcall_got@got]
55397 +.L2:
55398 +
55399 + .global ldw_got
55400 +ldw_got:
55401 +.L3: ld.w r0,r6[extvar@got]
55402 + ld.w r0,r6[.L3@got]
55403 + ld.w r0,r6[.L4@got]
55404 + ld.w r0,r6[ldw_got@got]
55405 +.L4:
55406 diff -Nrup binutils-2.17/gas/testsuite/gas/avr32/symdiff.d binutils-2.17.atmel.1.3.0/gas/testsuite/gas/avr32/symdiff.d
55407 --- binutils-2.17/gas/testsuite/gas/avr32/symdiff.d 1970-01-01 01:00:00.000000000 +0100
55408 +++ binutils-2.17.atmel.1.3.0/gas/testsuite/gas/avr32/symdiff.d 2007-03-26 10:19:48.000000000 +0200
55409 @@ -0,0 +1,24 @@
55410 +#source: symdiff.s
55411 +#as:
55412 +#objdump: -dr
55413 +#name: symdiff
55414 +
55415 +.*: +file format .*
55416 +
55417 +Disassembly of section \.text:
55418 +
55419 +00000000 <diff32>:
55420 + 0: 00 00 add r0,r0
55421 + 2: 00 04 add r4,r0
55422 +
55423 +00000004 <diff16>:
55424 + 4: 00 04 add r4,r0
55425 +
55426 +00000006 <diff8>:
55427 + 6: 04 00 add r0,r2
55428 +
55429 +00000008 <symdiff_test>:
55430 + 8: d7 03 nop
55431 + a: d7 03 nop
55432 + c: d7 03 nop
55433 + e: d7 03 nop
55434 diff -Nrup binutils-2.17/gas/testsuite/gas/avr32/symdiff_linkrelax.d binutils-2.17.atmel.1.3.0/gas/testsuite/gas/avr32/symdiff_linkrelax.d
55435 --- binutils-2.17/gas/testsuite/gas/avr32/symdiff_linkrelax.d 1970-01-01 01:00:00.000000000 +0100
55436 +++ binutils-2.17.atmel.1.3.0/gas/testsuite/gas/avr32/symdiff_linkrelax.d 2007-03-26 10:19:48.000000000 +0200
55437 @@ -0,0 +1,28 @@
55438 +#source: symdiff.s
55439 +#as: --linkrelax
55440 +#objdump: -dr
55441 +#name: symdiff_linkrelax
55442 +
55443 +.*: +file format .*
55444 +
55445 +Disassembly of section \.text:
55446 +
55447 +00000000 <diff32>:
55448 + 0: 00 00 add r0,r0
55449 + 0: R_AVR32_DIFF32 \.text\+0xa
55450 + 2: 00 04 add r4,r0
55451 +
55452 +00000004 <diff16>:
55453 + 4: 00 04 add r4,r0
55454 + 4: R_AVR32_DIFF16 \.text\+0xa
55455 +
55456 +00000006 <diff8>:
55457 + 6: 04 00 add r0,r2
55458 + 6: R_AVR32_DIFF8 \.text\+0xa
55459 + 7: R_AVR32_ALIGN \*ABS\*\+0x1
55460 +
55461 +00000008 <symdiff_test>:
55462 + 8: d7 03 nop
55463 + a: d7 03 nop
55464 + c: d7 03 nop
55465 + e: d7 03 nop
55466 diff -Nrup binutils-2.17/gas/testsuite/gas/avr32/symdiff.s binutils-2.17.atmel.1.3.0/gas/testsuite/gas/avr32/symdiff.s
55467 --- binutils-2.17/gas/testsuite/gas/avr32/symdiff.s 1970-01-01 01:00:00.000000000 +0100
55468 +++ binutils-2.17.atmel.1.3.0/gas/testsuite/gas/avr32/symdiff.s 2007-03-26 10:19:48.000000000 +0200
55469 @@ -0,0 +1,19 @@
55470 +
55471 + .text
55472 + .global diff32
55473 +diff32:
55474 + .long .L2 - .L1
55475 + .global diff16
55476 +diff16:
55477 + .short .L2 - .L1
55478 + .global diff8
55479 +diff8:
55480 + .byte .L2 - .L1
55481 +
55482 + .global symdiff_test
55483 + .align 1
55484 +symdiff_test:
55485 + nop
55486 +.L1: nop
55487 + nop
55488 +.L2: nop
55489 diff -Nrup binutils-2.17/gas/write.c binutils-2.17.atmel.1.3.0/gas/write.c
55490 --- binutils-2.17/gas/write.c 2006-05-10 15:43:37.000000000 +0200
55491 +++ binutils-2.17.atmel.1.3.0/gas/write.c 2007-03-26 10:20:16.000000000 +0200
55492 @@ -126,7 +126,9 @@ static fixS *fix_new_internal (fragS *,
55493 offsetT offset, int pcrel,
55494 RELOC_ENUM r_type);
55495 static long fixup_segment (fixS *, segT);
55496 +#if !defined (TC_RELAX_ALIGN)
55497 static relax_addressT relax_align (relax_addressT addr, int align);
55498 +#endif
55499 static fragS *chain_frchains_together_1 (segT, struct frchain *);
55500 static void chain_frchains_together (bfd *, segT, PTR);
55501 static void cvt_frag_to_fill (segT, fragS *);
55502 @@ -1684,6 +1686,10 @@ relax_frag (segT segment, fragS *fragP,
55503
55504 #endif /* defined (TC_GENERIC_RELAX_TABLE) */
55505
55506 +#ifdef TC_RELAX_ALIGN
55507 +#define RELAX_ALIGN(SEG, FRAG, ADDR) TC_RELAX_ALIGN(SEG, FRAG, ADDR)
55508 +#else
55509 +#define RELAX_ALIGN(SEG, FRAG, ADDR) relax_align(ADDR, (FRAG)->fr_offset)
55510 /* Relax_align. Advance location counter to next address that has 'alignment'
55511 lowest order bits all 0s, return size of adjustment made. */
55512 static relax_addressT
55513 @@ -1703,6 +1709,7 @@ relax_align (register relax_addressT add
55514 #endif
55515 return (new_address - address);
55516 }
55517 +#endif
55518
55519 /* Now we have a segment, not a crowd of sub-segments, we can make
55520 fr_address values.
55521 @@ -1746,7 +1753,7 @@ relax_segment (struct frag *segment_frag
55522 case rs_align_code:
55523 case rs_align_test:
55524 {
55525 - addressT offset = relax_align (address, (int) fragP->fr_offset);
55526 + addressT offset = RELAX_ALIGN(segment, fragP, address);
55527
55528 if (fragP->fr_subtype != 0 && offset > fragP->fr_subtype)
55529 offset = 0;
55530 @@ -1922,10 +1929,10 @@ relax_segment (struct frag *segment_frag
55531 {
55532 addressT oldoff, newoff;
55533
55534 - oldoff = relax_align (was_address + fragP->fr_fix,
55535 - (int) offset);
55536 - newoff = relax_align (address + fragP->fr_fix,
55537 - (int) offset);
55538 + oldoff = RELAX_ALIGN (segment, fragP,
55539 + was_address + fragP->fr_fix);
55540 + newoff = RELAX_ALIGN (segment, fragP,
55541 + address + fragP->fr_fix);
55542
55543 if (fragP->fr_subtype != 0)
55544 {
55545 diff -Nrup binutils-2.17/include/dis-asm.h binutils-2.17.atmel.1.3.0/include/dis-asm.h
55546 --- binutils-2.17/include/dis-asm.h 2006-02-17 15:36:26.000000000 +0100
55547 +++ binutils-2.17.atmel.1.3.0/include/dis-asm.h 2007-03-26 10:20:18.000000000 +0200
55548 @@ -223,6 +223,7 @@ extern int print_insn_big_arm (bfd_vma,
55549 extern int print_insn_little_arm (bfd_vma, disassemble_info *);
55550 extern int print_insn_sparc (bfd_vma, disassemble_info *);
55551 extern int print_insn_avr (bfd_vma, disassemble_info *);
55552 +extern int print_insn_avr32 (bfd_vma, disassemble_info *);
55553 extern int print_insn_bfin (bfd_vma, disassemble_info *);
55554 extern int print_insn_d10v (bfd_vma, disassemble_info *);
55555 extern int print_insn_d30v (bfd_vma, disassemble_info *);
55556 @@ -276,7 +277,9 @@ extern disassembler_ftype cris_get_disas
55557 extern void print_mips_disassembler_options (FILE *);
55558 extern void print_ppc_disassembler_options (FILE *);
55559 extern void print_arm_disassembler_options (FILE *);
55560 +extern void print_avr32_disassembler_options (FILE *);
55561 extern void parse_arm_disassembler_option (char *);
55562 +extern void parse_avr32_disassembler_option (char *);
55563 extern int get_arm_regname_num_options (void);
55564 extern int set_arm_regname_option (int);
55565 extern int get_arm_regnames (int, const char **, const char **, const char *const **);
55566 diff -Nrup binutils-2.17/include/elf/avr32.h binutils-2.17.atmel.1.3.0/include/elf/avr32.h
55567 --- binutils-2.17/include/elf/avr32.h 1970-01-01 01:00:00.000000000 +0100
55568 +++ binutils-2.17.atmel.1.3.0/include/elf/avr32.h 2007-03-26 10:20:17.000000000 +0200
55569 @@ -0,0 +1,95 @@
55570 +/* AVR32 ELF support for BFD.
55571 + Copyright 2003-2006 Atmel Corporation.
55572 +
55573 + Written by Haavard Skinnemoen, Atmel Norway, <hskinnemoen@atmel.com>
55574 +
55575 + This file is part of BFD, the Binary File Descriptor library.
55576 +
55577 + This program is free software; you can redistribute it and/or
55578 + modify it under the terms of the GNU General Public License as
55579 + published by the Free Software Foundation; either version 2 of the
55580 + License, or (at your option) any later version.
55581 +
55582 + This program is distributed in the hope that it will be useful, but
55583 + WITHOUT ANY WARRANTY; without even the implied warranty of
55584 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
55585 + General Public License for more details.
55586 +
55587 + You should have received a copy of the GNU General Public License
55588 + along with this program; if not, write to the Free Software
55589 + Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
55590 + 02111-1307, USA. */
55591 +
55592 +#include "elf/reloc-macros.h"
55593 +
55594 +/* CPU-specific flags for the ELF header e_flags field */
55595 +#define EF_AVR32_LINKRELAX 0x01
55596 +#define EF_AVR32_PIC 0x02
55597 +
55598 +START_RELOC_NUMBERS (elf_avr32_reloc_type)
55599 + RELOC_NUMBER (R_AVR32_NONE, 0)
55600 +
55601 + /* Data Relocations */
55602 + RELOC_NUMBER (R_AVR32_32, 1)
55603 + RELOC_NUMBER (R_AVR32_16, 2)
55604 + RELOC_NUMBER (R_AVR32_8, 3)
55605 + RELOC_NUMBER (R_AVR32_32_PCREL, 4)
55606 + RELOC_NUMBER (R_AVR32_16_PCREL, 5)
55607 + RELOC_NUMBER (R_AVR32_8_PCREL, 6)
55608 + RELOC_NUMBER (R_AVR32_DIFF32, 7)
55609 + RELOC_NUMBER (R_AVR32_DIFF16, 8)
55610 + RELOC_NUMBER (R_AVR32_DIFF8, 9)
55611 + RELOC_NUMBER (R_AVR32_GOT32, 10)
55612 + RELOC_NUMBER (R_AVR32_GOT16, 11)
55613 + RELOC_NUMBER (R_AVR32_GOT8, 12)
55614 +
55615 + /* Normal Code Relocations */
55616 + RELOC_NUMBER (R_AVR32_21S, 13)
55617 + RELOC_NUMBER (R_AVR32_16U, 14)
55618 + RELOC_NUMBER (R_AVR32_16S, 15)
55619 + RELOC_NUMBER (R_AVR32_8S, 16)
55620 + RELOC_NUMBER (R_AVR32_8S_EXT, 17)
55621 +
55622 + /* PC-Relative Code Relocations */
55623 + RELOC_NUMBER (R_AVR32_22H_PCREL, 18)
55624 + RELOC_NUMBER (R_AVR32_18W_PCREL, 19)
55625 + RELOC_NUMBER (R_AVR32_16B_PCREL, 20)
55626 + RELOC_NUMBER (R_AVR32_16N_PCREL, 21)
55627 + RELOC_NUMBER (R_AVR32_14UW_PCREL, 22)
55628 + RELOC_NUMBER (R_AVR32_11H_PCREL, 23)
55629 + RELOC_NUMBER (R_AVR32_10UW_PCREL, 24)
55630 + RELOC_NUMBER (R_AVR32_9H_PCREL, 25)
55631 + RELOC_NUMBER (R_AVR32_9UW_PCREL, 26)
55632 +
55633 + /* Special Code Relocations */
55634 + RELOC_NUMBER (R_AVR32_HI16, 27)
55635 + RELOC_NUMBER (R_AVR32_LO16, 28)
55636 +
55637 + /* PIC Relocations */
55638 + RELOC_NUMBER (R_AVR32_GOTPC, 29)
55639 + RELOC_NUMBER (R_AVR32_GOTCALL, 30)
55640 + RELOC_NUMBER (R_AVR32_LDA_GOT, 31)
55641 + RELOC_NUMBER (R_AVR32_GOT21S, 32)
55642 + RELOC_NUMBER (R_AVR32_GOT18SW, 33)
55643 + RELOC_NUMBER (R_AVR32_GOT16S, 34)
55644 + RELOC_NUMBER (R_AVR32_GOT7UW, 35)
55645 +
55646 + /* Constant Pool Relocations */
55647 + RELOC_NUMBER (R_AVR32_32_CPENT, 36)
55648 + RELOC_NUMBER (R_AVR32_CPCALL, 37)
55649 + RELOC_NUMBER (R_AVR32_16_CP, 38)
55650 + RELOC_NUMBER (R_AVR32_9W_CP, 39)
55651 +
55652 + /* Dynamic Relocations */
55653 + RELOC_NUMBER (R_AVR32_RELATIVE, 40)
55654 + RELOC_NUMBER (R_AVR32_GLOB_DAT, 41)
55655 + RELOC_NUMBER (R_AVR32_JMP_SLOT, 42)
55656 +
55657 + /* Linkrelax Information */
55658 + RELOC_NUMBER (R_AVR32_ALIGN, 43)
55659 +END_RELOC_NUMBERS (R_AVR32_max)
55660 +
55661 +/* Processor specific dynamic array tags. */
55662 +
55663 +/* The total size in bytes of the Global Offset Table */
55664 +#define DT_AVR32_GOTSZ 0x70000001
55665 diff -Nrup binutils-2.17/include/elf/common.h binutils-2.17.atmel.1.3.0/include/elf/common.h
55666 --- binutils-2.17/include/elf/common.h 2006-02-17 15:36:26.000000000 +0100
55667 +++ binutils-2.17.atmel.1.3.0/include/elf/common.h 2007-03-26 10:20:17.000000000 +0200
55668 @@ -256,6 +256,9 @@
55669 /* V850 backend magic number. Written in the absense of an ABI. */
55670 #define EM_CYGNUS_V850 0x9080
55671
55672 +/* AVR32 magic number, picked by IAR Systems. */
55673 +#define EM_AVR32 0x18ad
55674 +
55675 /* old S/390 backend magic number. Written in the absence of an ABI. */
55676 #define EM_S390_OLD 0xa390
55677
55678 diff -Nrup binutils-2.17/ld/configdoc.texi binutils-2.17.atmel.1.3.0/ld/configdoc.texi
55679 --- binutils-2.17/ld/configdoc.texi 2006-05-10 15:43:46.000000000 +0200
55680 +++ binutils-2.17.atmel.1.3.0/ld/configdoc.texi 2007-09-28 10:30:45.000000000 +0200
55681 @@ -6,6 +6,7 @@
55682 @set H8300
55683 @set I960
55684 @set ARM
55685 +@set AVR32
55686 @set HPPA
55687 @set MMIX
55688 @set MSP430
55689 diff -Nrup binutils-2.17/ld/config.in binutils-2.17.atmel.1.3.0/ld/config.in
55690 --- binutils-2.17/ld/config.in 2006-04-16 20:20:30.000000000 +0200
55691 +++ binutils-2.17.atmel.1.3.0/ld/config.in 2007-03-26 10:32:23.000000000 +0200
55692 @@ -187,7 +187,7 @@
55693
55694 /* If using the C implementation of alloca, define if you know the
55695 direction of stack growth for your system; otherwise it will be
55696 - automatically deduced at run-time.
55697 + automatically deduced at runtime.
55698 STACK_DIRECTION > 0 => grows toward higher addresses
55699 STACK_DIRECTION < 0 => grows toward lower addresses
55700 STACK_DIRECTION = 0 => direction of growth unknown */
55701 @@ -215,8 +215,8 @@
55702 #undef inline
55703 #endif
55704
55705 -/* Define to `long' if <sys/types.h> does not define. */
55706 +/* Define to `long int' if <sys/types.h> does not define. */
55707 #undef off_t
55708
55709 -/* Define to `unsigned' if <sys/types.h> does not define. */
55710 +/* Define to `unsigned int' if <sys/types.h> does not define. */
55711 #undef size_t
55712 diff -Nrup binutils-2.17/ld/configure binutils-2.17.atmel.1.3.0/ld/configure
55713 --- binutils-2.17/ld/configure 2006-04-11 12:36:26.000000000 +0200
55714 +++ binutils-2.17.atmel.1.3.0/ld/configure 2007-03-26 10:32:22.000000000 +0200
55715 @@ -1,25 +1,54 @@
55716 #! /bin/sh
55717 # Guess values for system-dependent variables and create Makefiles.
55718 -# Generated by GNU Autoconf 2.59.
55719 +# Generated by GNU Autoconf 2.61.
55720 #
55721 -# Copyright (C) 2003 Free Software Foundation, Inc.
55722 +# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
55723 +# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
55724 # This configure script is free software; the Free Software Foundation
55725 # gives unlimited permission to copy, distribute and modify it.
55726 ## --------------------- ##
55727 ## M4sh Initialization. ##
55728 ## --------------------- ##
55729
55730 -# Be Bourne compatible
55731 +# Be more Bourne compatible
55732 +DUALCASE=1; export DUALCASE # for MKS sh
55733 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
55734 emulate sh
55735 NULLCMD=:
55736 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
55737 # is contrary to our usage. Disable this feature.
55738 alias -g '${1+"$@"}'='"$@"'
55739 -elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
55740 - set -o posix
55741 + setopt NO_GLOB_SUBST
55742 +else
55743 + case `(set -o) 2>/dev/null` in
55744 + *posix*) set -o posix ;;
55745 +esac
55746 +
55747 +fi
55748 +
55749 +
55750 +
55751 +
55752 +# PATH needs CR
55753 +# Avoid depending upon Character Ranges.
55754 +as_cr_letters='abcdefghijklmnopqrstuvwxyz'
55755 +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
55756 +as_cr_Letters=$as_cr_letters$as_cr_LETTERS
55757 +as_cr_digits='0123456789'
55758 +as_cr_alnum=$as_cr_Letters$as_cr_digits
55759 +
55760 +# The user is always right.
55761 +if test "${PATH_SEPARATOR+set}" != set; then
55762 + echo "#! /bin/sh" >conf$$.sh
55763 + echo "exit 0" >>conf$$.sh
55764 + chmod +x conf$$.sh
55765 + if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
55766 + PATH_SEPARATOR=';'
55767 + else
55768 + PATH_SEPARATOR=:
55769 + fi
55770 + rm -f conf$$.sh
55771 fi
55772 -DUALCASE=1; export DUALCASE # for MKS sh
55773
55774 # Support unset when possible.
55775 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55776 @@ -29,8 +58,43 @@ else
55777 fi
55778
55779
55780 +# IFS
55781 +# We need space, tab and new line, in precisely that order. Quoting is
55782 +# there to prevent editors from complaining about space-tab.
55783 +# (If _AS_PATH_WALK were called with IFS unset, it would disable word
55784 +# splitting by setting IFS to empty value.)
55785 +as_nl='
55786 +'
55787 +IFS=" "" $as_nl"
55788 +
55789 +# Find who we are. Look in the path if we contain no directory separator.
55790 +case $0 in
55791 + *[\\/]* ) as_myself=$0 ;;
55792 + *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
55793 +for as_dir in $PATH
55794 +do
55795 + IFS=$as_save_IFS
55796 + test -z "$as_dir" && as_dir=.
55797 + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
55798 +done
55799 +IFS=$as_save_IFS
55800 +
55801 + ;;
55802 +esac
55803 +# We did not find ourselves, most probably we were run as `sh COMMAND'
55804 +# in which case we are not to be found in the path.
55805 +if test "x$as_myself" = x; then
55806 + as_myself=$0
55807 +fi
55808 +if test ! -f "$as_myself"; then
55809 + echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
55810 + { (exit 1); exit 1; }
55811 +fi
55812 +
55813 # Work around bugs in pre-3.0 UWIN ksh.
55814 -$as_unset ENV MAIL MAILPATH
55815 +for as_var in ENV MAIL MAILPATH
55816 +do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
55817 +done
55818 PS1='$ '
55819 PS2='> '
55820 PS4='+ '
55821 @@ -44,18 +108,19 @@ do
55822 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
55823 eval $as_var=C; export $as_var
55824 else
55825 - $as_unset $as_var
55826 + ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
55827 fi
55828 done
55829
55830 # Required to use basename.
55831 -if expr a : '\(a\)' >/dev/null 2>&1; then
55832 +if expr a : '\(a\)' >/dev/null 2>&1 &&
55833 + test "X`expr 00001 : '.*\(...\)'`" = X001; then
55834 as_expr=expr
55835 else
55836 as_expr=false
55837 fi
55838
55839 -if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
55840 +if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
55841 as_basename=basename
55842 else
55843 as_basename=false
55844 @@ -63,157 +128,388 @@ fi
55845
55846
55847 # Name of the executable.
55848 -as_me=`$as_basename "$0" ||
55849 +as_me=`$as_basename -- "$0" ||
55850 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
55851 X"$0" : 'X\(//\)$' \| \
55852 - X"$0" : 'X\(/\)$' \| \
55853 - . : '\(.\)' 2>/dev/null ||
55854 + X"$0" : 'X\(/\)' \| . 2>/dev/null ||
55855 echo X/"$0" |
55856 - sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
55857 - /^X\/\(\/\/\)$/{ s//\1/; q; }
55858 - /^X\/\(\/\).*/{ s//\1/; q; }
55859 - s/.*/./; q'`
55860 + sed '/^.*\/\([^/][^/]*\)\/*$/{
55861 + s//\1/
55862 + q
55863 + }
55864 + /^X\/\(\/\/\)$/{
55865 + s//\1/
55866 + q
55867 + }
55868 + /^X\/\(\/\).*/{
55869 + s//\1/
55870 + q
55871 + }
55872 + s/.*/./; q'`
55873
55874 +# CDPATH.
55875 +$as_unset CDPATH
55876
55877 -# PATH needs CR, and LINENO needs CR and PATH.
55878 -# Avoid depending upon Character Ranges.
55879 -as_cr_letters='abcdefghijklmnopqrstuvwxyz'
55880 -as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
55881 -as_cr_Letters=$as_cr_letters$as_cr_LETTERS
55882 -as_cr_digits='0123456789'
55883 -as_cr_alnum=$as_cr_Letters$as_cr_digits
55884
55885 -# The user is always right.
55886 -if test "${PATH_SEPARATOR+set}" != set; then
55887 - echo "#! /bin/sh" >conf$$.sh
55888 - echo "exit 0" >>conf$$.sh
55889 - chmod +x conf$$.sh
55890 - if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
55891 - PATH_SEPARATOR=';'
55892 - else
55893 - PATH_SEPARATOR=:
55894 - fi
55895 - rm -f conf$$.sh
55896 +if test "x$CONFIG_SHELL" = x; then
55897 + if (eval ":") 2>/dev/null; then
55898 + as_have_required=yes
55899 +else
55900 + as_have_required=no
55901 +fi
55902 +
55903 + if test $as_have_required = yes && (eval ":
55904 +(as_func_return () {
55905 + (exit \$1)
55906 +}
55907 +as_func_success () {
55908 + as_func_return 0
55909 +}
55910 +as_func_failure () {
55911 + as_func_return 1
55912 +}
55913 +as_func_ret_success () {
55914 + return 0
55915 +}
55916 +as_func_ret_failure () {
55917 + return 1
55918 +}
55919 +
55920 +exitcode=0
55921 +if as_func_success; then
55922 + :
55923 +else
55924 + exitcode=1
55925 + echo as_func_success failed.
55926 fi
55927
55928 +if as_func_failure; then
55929 + exitcode=1
55930 + echo as_func_failure succeeded.
55931 +fi
55932
55933 - as_lineno_1=$LINENO
55934 - as_lineno_2=$LINENO
55935 - as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
55936 - test "x$as_lineno_1" != "x$as_lineno_2" &&
55937 - test "x$as_lineno_3" = "x$as_lineno_2" || {
55938 - # Find who we are. Look in the path if we contain no path at all
55939 - # relative or not.
55940 - case $0 in
55941 - *[\\/]* ) as_myself=$0 ;;
55942 - *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
55943 -for as_dir in $PATH
55944 -do
55945 - IFS=$as_save_IFS
55946 - test -z "$as_dir" && as_dir=.
55947 - test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
55948 -done
55949 +if as_func_ret_success; then
55950 + :
55951 +else
55952 + exitcode=1
55953 + echo as_func_ret_success failed.
55954 +fi
55955
55956 - ;;
55957 - esac
55958 - # We did not find ourselves, most probably we were run as `sh COMMAND'
55959 - # in which case we are not to be found in the path.
55960 - if test "x$as_myself" = x; then
55961 - as_myself=$0
55962 - fi
55963 - if test ! -f "$as_myself"; then
55964 - { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
55965 - { (exit 1); exit 1; }; }
55966 - fi
55967 - case $CONFIG_SHELL in
55968 - '')
55969 +if as_func_ret_failure; then
55970 + exitcode=1
55971 + echo as_func_ret_failure succeeded.
55972 +fi
55973 +
55974 +if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
55975 + :
55976 +else
55977 + exitcode=1
55978 + echo positional parameters were not saved.
55979 +fi
55980 +
55981 +test \$exitcode = 0) || { (exit 1); exit 1; }
55982 +
55983 +(
55984 + as_lineno_1=\$LINENO
55985 + as_lineno_2=\$LINENO
55986 + test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
55987 + test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
55988 +") 2> /dev/null; then
55989 + :
55990 +else
55991 + as_candidate_shells=
55992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
55993 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
55994 do
55995 IFS=$as_save_IFS
55996 test -z "$as_dir" && as_dir=.
55997 - for as_base in sh bash ksh sh5; do
55998 - case $as_dir in
55999 + case $as_dir in
56000 /*)
56001 - if ("$as_dir/$as_base" -c '
56002 + for as_base in sh bash ksh sh5; do
56003 + as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
56004 + done;;
56005 + esac
56006 +done
56007 +IFS=$as_save_IFS
56008 +
56009 +
56010 + for as_shell in $as_candidate_shells $SHELL; do
56011 + # Try only shells that exist, to save several forks.
56012 + if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
56013 + { ("$as_shell") 2> /dev/null <<\_ASEOF
56014 +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
56015 + emulate sh
56016 + NULLCMD=:
56017 + # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
56018 + # is contrary to our usage. Disable this feature.
56019 + alias -g '${1+"$@"}'='"$@"'
56020 + setopt NO_GLOB_SUBST
56021 +else
56022 + case `(set -o) 2>/dev/null` in
56023 + *posix*) set -o posix ;;
56024 +esac
56025 +
56026 +fi
56027 +
56028 +
56029 +:
56030 +_ASEOF
56031 +}; then
56032 + CONFIG_SHELL=$as_shell
56033 + as_have_required=yes
56034 + if { "$as_shell" 2> /dev/null <<\_ASEOF
56035 +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
56036 + emulate sh
56037 + NULLCMD=:
56038 + # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
56039 + # is contrary to our usage. Disable this feature.
56040 + alias -g '${1+"$@"}'='"$@"'
56041 + setopt NO_GLOB_SUBST
56042 +else
56043 + case `(set -o) 2>/dev/null` in
56044 + *posix*) set -o posix ;;
56045 +esac
56046 +
56047 +fi
56048 +
56049 +
56050 +:
56051 +(as_func_return () {
56052 + (exit $1)
56053 +}
56054 +as_func_success () {
56055 + as_func_return 0
56056 +}
56057 +as_func_failure () {
56058 + as_func_return 1
56059 +}
56060 +as_func_ret_success () {
56061 + return 0
56062 +}
56063 +as_func_ret_failure () {
56064 + return 1
56065 +}
56066 +
56067 +exitcode=0
56068 +if as_func_success; then
56069 + :
56070 +else
56071 + exitcode=1
56072 + echo as_func_success failed.
56073 +fi
56074 +
56075 +if as_func_failure; then
56076 + exitcode=1
56077 + echo as_func_failure succeeded.
56078 +fi
56079 +
56080 +if as_func_ret_success; then
56081 + :
56082 +else
56083 + exitcode=1
56084 + echo as_func_ret_success failed.
56085 +fi
56086 +
56087 +if as_func_ret_failure; then
56088 + exitcode=1
56089 + echo as_func_ret_failure succeeded.
56090 +fi
56091 +
56092 +if ( set x; as_func_ret_success y && test x = "$1" ); then
56093 + :
56094 +else
56095 + exitcode=1
56096 + echo positional parameters were not saved.
56097 +fi
56098 +
56099 +test $exitcode = 0) || { (exit 1); exit 1; }
56100 +
56101 +(
56102 as_lineno_1=$LINENO
56103 as_lineno_2=$LINENO
56104 - as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
56105 test "x$as_lineno_1" != "x$as_lineno_2" &&
56106 - test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
56107 - $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
56108 - $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
56109 - CONFIG_SHELL=$as_dir/$as_base
56110 - export CONFIG_SHELL
56111 - exec "$CONFIG_SHELL" "$0" ${1+"$@"}
56112 - fi;;
56113 - esac
56114 - done
56115 -done
56116 -;;
56117 - esac
56118 + test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
56119 +
56120 +_ASEOF
56121 +}; then
56122 + break
56123 +fi
56124 +
56125 +fi
56126 +
56127 + done
56128 +
56129 + if test "x$CONFIG_SHELL" != x; then
56130 + for as_var in BASH_ENV ENV
56131 + do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
56132 + done
56133 + export CONFIG_SHELL
56134 + exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
56135 +fi
56136 +
56137 +
56138 + if test $as_have_required = no; then
56139 + echo This script requires a shell more modern than all the
56140 + echo shells that I found on your system. Please install a
56141 + echo modern shell, or manually run the script under such a
56142 + echo shell if you do have one.
56143 + { (exit 1); exit 1; }
56144 +fi
56145 +
56146 +
56147 +fi
56148 +
56149 +fi
56150 +
56151 +
56152 +
56153 +(eval "as_func_return () {
56154 + (exit \$1)
56155 +}
56156 +as_func_success () {
56157 + as_func_return 0
56158 +}
56159 +as_func_failure () {
56160 + as_func_return 1
56161 +}
56162 +as_func_ret_success () {
56163 + return 0
56164 +}
56165 +as_func_ret_failure () {
56166 + return 1
56167 +}
56168 +
56169 +exitcode=0
56170 +if as_func_success; then
56171 + :
56172 +else
56173 + exitcode=1
56174 + echo as_func_success failed.
56175 +fi
56176 +
56177 +if as_func_failure; then
56178 + exitcode=1
56179 + echo as_func_failure succeeded.
56180 +fi
56181 +
56182 +if as_func_ret_success; then
56183 + :
56184 +else
56185 + exitcode=1
56186 + echo as_func_ret_success failed.
56187 +fi
56188 +
56189 +if as_func_ret_failure; then
56190 + exitcode=1
56191 + echo as_func_ret_failure succeeded.
56192 +fi
56193 +
56194 +if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
56195 + :
56196 +else
56197 + exitcode=1
56198 + echo positional parameters were not saved.
56199 +fi
56200 +
56201 +test \$exitcode = 0") || {
56202 + echo No shell found that supports shell functions.
56203 + echo Please tell autoconf@gnu.org about your system,
56204 + echo including any error possibly output before this
56205 + echo message
56206 +}
56207 +
56208 +
56209 +
56210 + as_lineno_1=$LINENO
56211 + as_lineno_2=$LINENO
56212 + test "x$as_lineno_1" != "x$as_lineno_2" &&
56213 + test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
56214
56215 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
56216 # uniformly replaced by the line number. The first 'sed' inserts a
56217 - # line-number line before each line; the second 'sed' does the real
56218 - # work. The second script uses 'N' to pair each line-number line
56219 - # with the numbered line, and appends trailing '-' during
56220 - # substitution so that $LINENO is not a special case at line end.
56221 + # line-number line after each line using $LINENO; the second 'sed'
56222 + # does the real work. The second script uses 'N' to pair each
56223 + # line-number line with the line containing $LINENO, and appends
56224 + # trailing '-' during substitution so that $LINENO is not a special
56225 + # case at line end.
56226 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
56227 - # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
56228 - sed '=' <$as_myself |
56229 + # scripts with optimization help from Paolo Bonzini. Blame Lee
56230 + # E. McMahon (1931-1989) for sed's syntax. :-)
56231 + sed -n '
56232 + p
56233 + /[$]LINENO/=
56234 + ' <$as_myself |
56235 sed '
56236 + s/[$]LINENO.*/&-/
56237 + t lineno
56238 + b
56239 + :lineno
56240 N
56241 - s,$,-,
56242 - : loop
56243 - s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
56244 + :loop
56245 + s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
56246 t loop
56247 - s,-$,,
56248 - s,^['$as_cr_digits']*\n,,
56249 + s/-\n.*//
56250 ' >$as_me.lineno &&
56251 - chmod +x $as_me.lineno ||
56252 + chmod +x "$as_me.lineno" ||
56253 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
56254 { (exit 1); exit 1; }; }
56255
56256 # Don't try to exec as it changes $[0], causing all sort of problems
56257 # (the dirname of $[0] is not the place where we might find the
56258 - # original and so on. Autoconf is especially sensible to this).
56259 - . ./$as_me.lineno
56260 + # original and so on. Autoconf is especially sensitive to this).
56261 + . "./$as_me.lineno"
56262 # Exit status is that of the last command.
56263 exit
56264 }
56265
56266
56267 -case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
56268 - *c*,-n*) ECHO_N= ECHO_C='
56269 -' ECHO_T=' ' ;;
56270 - *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
56271 - *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
56272 +if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
56273 + as_dirname=dirname
56274 +else
56275 + as_dirname=false
56276 +fi
56277 +
56278 +ECHO_C= ECHO_N= ECHO_T=
56279 +case `echo -n x` in
56280 +-n*)
56281 + case `echo 'x\c'` in
56282 + *c*) ECHO_T=' ';; # ECHO_T is single tab character.
56283 + *) ECHO_C='\c';;
56284 + esac;;
56285 +*)
56286 + ECHO_N='-n';;
56287 esac
56288
56289 -if expr a : '\(a\)' >/dev/null 2>&1; then
56290 +if expr a : '\(a\)' >/dev/null 2>&1 &&
56291 + test "X`expr 00001 : '.*\(...\)'`" = X001; then
56292 as_expr=expr
56293 else
56294 as_expr=false
56295 fi
56296
56297 rm -f conf$$ conf$$.exe conf$$.file
56298 +if test -d conf$$.dir; then
56299 + rm -f conf$$.dir/conf$$.file
56300 +else
56301 + rm -f conf$$.dir
56302 + mkdir conf$$.dir
56303 +fi
56304 echo >conf$$.file
56305 if ln -s conf$$.file conf$$ 2>/dev/null; then
56306 - # We could just check for DJGPP; but this test a) works b) is more generic
56307 - # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
56308 - if test -f conf$$.exe; then
56309 - # Don't use ln at all; we don't have any links
56310 + as_ln_s='ln -s'
56311 + # ... but there are two gotchas:
56312 + # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
56313 + # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
56314 + # In both cases, we have to default to `cp -p'.
56315 + ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
56316 as_ln_s='cp -p'
56317 - else
56318 - as_ln_s='ln -s'
56319 - fi
56320 elif ln conf$$.file conf$$ 2>/dev/null; then
56321 as_ln_s=ln
56322 else
56323 as_ln_s='cp -p'
56324 fi
56325 -rm -f conf$$ conf$$.exe conf$$.file
56326 +rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
56327 +rmdir conf$$.dir 2>/dev/null
56328
56329 if mkdir -p . 2>/dev/null; then
56330 as_mkdir_p=:
56331 @@ -222,7 +518,28 @@ else
56332 as_mkdir_p=false
56333 fi
56334
56335 -as_executable_p="test -f"
56336 +if test -x / >/dev/null 2>&1; then
56337 + as_test_x='test -x'
56338 +else
56339 + if ls -dL / >/dev/null 2>&1; then
56340 + as_ls_L_option=L
56341 + else
56342 + as_ls_L_option=
56343 + fi
56344 + as_test_x='
56345 + eval sh -c '\''
56346 + if test -d "$1"; then
56347 + test -d "$1/.";
56348 + else
56349 + case $1 in
56350 + -*)set "./$1";;
56351 + esac;
56352 + case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
56353 + ???[sx]*):;;*)false;;esac;fi
56354 + '\'' sh
56355 + '
56356 +fi
56357 +as_executable_p=$as_test_x
56358
56359 # Sed expression to map a string onto a valid CPP name.
56360 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
56361 @@ -231,39 +548,27 @@ as_tr_cpp="eval sed 'y%*$as_cr_letters%P
56362 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
56363
56364
56365 -# IFS
56366 -# We need space, tab and new line, in precisely that order.
56367 -as_nl='
56368 -'
56369 -IFS=" $as_nl"
56370 -
56371 -# CDPATH.
56372 -$as_unset CDPATH
56373
56374 +exec 7<&0 </dev/null 6>&1
56375
56376 # Name of the host.
56377 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
56378 # so uname gets run too.
56379 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
56380
56381 -exec 6>&1
56382 -
56383 #
56384 # Initializations.
56385 #
56386 ac_default_prefix=/usr/local
56387 +ac_clean_files=
56388 ac_config_libobj_dir=.
56389 +LIBOBJS=
56390 cross_compiling=no
56391 subdirs=
56392 MFLAGS=
56393 MAKEFLAGS=
56394 SHELL=${CONFIG_SHELL-/bin/sh}
56395
56396 -# Maximum number of lines to put in a shell here document.
56397 -# This variable seems obsolete. It should probably be removed, and
56398 -# only ac_max_sed_lines should be used.
56399 -: ${ac_max_here_lines=38}
56400 -
56401 # Identity of this package.
56402 PACKAGE_NAME=
56403 PACKAGE_TARNAME=
56404 @@ -275,42 +580,191 @@ ac_unique_file="ldmain.c"
56405 # Factoring default headers for most tests.
56406 ac_includes_default="\
56407 #include <stdio.h>
56408 -#if HAVE_SYS_TYPES_H
56409 +#ifdef HAVE_SYS_TYPES_H
56410 # include <sys/types.h>
56411 #endif
56412 -#if HAVE_SYS_STAT_H
56413 +#ifdef HAVE_SYS_STAT_H
56414 # include <sys/stat.h>
56415 #endif
56416 -#if STDC_HEADERS
56417 +#ifdef STDC_HEADERS
56418 # include <stdlib.h>
56419 # include <stddef.h>
56420 #else
56421 -# if HAVE_STDLIB_H
56422 +# ifdef HAVE_STDLIB_H
56423 # include <stdlib.h>
56424 # endif
56425 #endif
56426 -#if HAVE_STRING_H
56427 -# if !STDC_HEADERS && HAVE_MEMORY_H
56428 +#ifdef HAVE_STRING_H
56429 +# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
56430 # include <memory.h>
56431 # endif
56432 # include <string.h>
56433 #endif
56434 -#if HAVE_STRINGS_H
56435 +#ifdef HAVE_STRINGS_H
56436 # include <strings.h>
56437 #endif
56438 -#if HAVE_INTTYPES_H
56439 +#ifdef HAVE_INTTYPES_H
56440 # include <inttypes.h>
56441 -#else
56442 -# if HAVE_STDINT_H
56443 -# include <stdint.h>
56444 -# endif
56445 #endif
56446 -#if HAVE_UNISTD_H
56447 +#ifdef HAVE_STDINT_H
56448 +# include <stdint.h>
56449 +#endif
56450 +#ifdef HAVE_UNISTD_H
56451 # include <unistd.h>
56452 #endif"
56453
56454 -ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE LN_S RANLIB ac_ct_RANLIB LIBTOOL use_sysroot TARGET_SYSTEM_ROOT TARGET_SYSTEM_ROOT_DEFINE WARN_CFLAGS NO_WERROR CPP EGREP ALLOCA USE_NLS MSGFMT GMSGFMT XGETTEXT USE_INCLUDED_LIBINTL CATALOGS CATOBJEXT DATADIRNAME GMOFILES INSTOBJEXT INTLDEPS INTLLIBS INTLOBJS POFILES POSUB INCLUDE_LOCALE_H GT_NO GT_YES MKINSTALLDIRS l YACC LEX LEXLIB LEX_OUTPUT_ROOT MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT HDEFINES HOSTING_CRT0 HOSTING_LIBS NATIVE_LIB_DIRS STRINGIFY EMUL EMULATION_OFILES EMUL_EXTRA_OFILES LIB_PATH EMULATION_LIBPATH TESTBFDLIB datarootdir docdir htmldir LIBOBJS LTLIBOBJS'
56455 +ac_subst_vars='SHELL
56456 +PATH_SEPARATOR
56457 +PACKAGE_NAME
56458 +PACKAGE_TARNAME
56459 +PACKAGE_VERSION
56460 +PACKAGE_STRING
56461 +PACKAGE_BUGREPORT
56462 +exec_prefix
56463 +prefix
56464 +program_transform_name
56465 +bindir
56466 +sbindir
56467 +libexecdir
56468 +datarootdir
56469 +datadir
56470 +sysconfdir
56471 +sharedstatedir
56472 +localstatedir
56473 +includedir
56474 +oldincludedir
56475 +docdir
56476 +infodir
56477 +htmldir
56478 +dvidir
56479 +pdfdir
56480 +psdir
56481 +libdir
56482 +localedir
56483 +mandir
56484 +DEFS
56485 +ECHO_C
56486 +ECHO_N
56487 +ECHO_T
56488 +LIBS
56489 +build_alias
56490 +host_alias
56491 +target_alias
56492 +build
56493 +build_cpu
56494 +build_vendor
56495 +build_os
56496 +host
56497 +host_cpu
56498 +host_vendor
56499 +host_os
56500 +target
56501 +target_cpu
56502 +target_vendor
56503 +target_os
56504 +CC
56505 +CFLAGS
56506 +LDFLAGS
56507 +CPPFLAGS
56508 +ac_ct_CC
56509 +EXEEXT
56510 +OBJEXT
56511 +INSTALL_PROGRAM
56512 +INSTALL_SCRIPT
56513 +INSTALL_DATA
56514 +CYGPATH_W
56515 +PACKAGE
56516 +VERSION
56517 +ACLOCAL
56518 +AUTOCONF
56519 +AUTOMAKE
56520 +AUTOHEADER
56521 +MAKEINFO
56522 +install_sh
56523 +STRIP
56524 +INSTALL_STRIP_PROGRAM
56525 +mkdir_p
56526 +AWK
56527 +SET_MAKE
56528 +am__leading_dot
56529 +AMTAR
56530 +am__tar
56531 +am__untar
56532 +DEPDIR
56533 +am__include
56534 +am__quote
56535 +AMDEP_TRUE
56536 +AMDEP_FALSE
56537 +AMDEPBACKSLASH
56538 +CCDEPMODE
56539 +am__fastdepCC_TRUE
56540 +am__fastdepCC_FALSE
56541 +LN_S
56542 +RANLIB
56543 +LIBTOOL
56544 +use_sysroot
56545 +TARGET_SYSTEM_ROOT
56546 +TARGET_SYSTEM_ROOT_DEFINE
56547 +WARN_CFLAGS
56548 +NO_WERROR
56549 +CPP
56550 +GREP
56551 +EGREP
56552 +ALLOCA
56553 +USE_NLS
56554 +MSGFMT
56555 +GMSGFMT
56556 +XGETTEXT
56557 +USE_INCLUDED_LIBINTL
56558 +CATALOGS
56559 +CATOBJEXT
56560 +DATADIRNAME
56561 +GMOFILES
56562 +INSTOBJEXT
56563 +INTLDEPS
56564 +INTLLIBS
56565 +INTLOBJS
56566 +POFILES
56567 +POSUB
56568 +INCLUDE_LOCALE_H
56569 +GT_NO
56570 +GT_YES
56571 +MKINSTALLDIRS
56572 +l
56573 +YACC
56574 +YFLAGS
56575 +LEX
56576 +LEX_OUTPUT_ROOT
56577 +LEXLIB
56578 +MAINTAINER_MODE_TRUE
56579 +MAINTAINER_MODE_FALSE
56580 +MAINT
56581 +HDEFINES
56582 +HOSTING_CRT0
56583 +HOSTING_LIBS
56584 +NATIVE_LIB_DIRS
56585 +STRINGIFY
56586 +EMUL
56587 +EMULATION_OFILES
56588 +EMUL_EXTRA_OFILES
56589 +LIB_PATH
56590 +EMULATION_LIBPATH
56591 +TESTBFDLIB
56592 +LIBOBJS
56593 +LTLIBOBJS'
56594 ac_subst_files='TDIRS'
56595 + ac_precious_vars='build_alias
56596 +host_alias
56597 +target_alias
56598 +CC
56599 +CFLAGS
56600 +LDFLAGS
56601 +LIBS
56602 +CPPFLAGS
56603 +CPP
56604 +YACC
56605 +YFLAGS'
56606 +
56607
56608 # Initialize some variables set by options.
56609 ac_init_help=
56610 @@ -337,34 +791,48 @@ x_libraries=NONE
56611 # and all the variables that are supposed to be based on exec_prefix
56612 # by default will actually change.
56613 # Use braces instead of parens because sh, perl, etc. also accept them.
56614 +# (The list follows the same order as the GNU Coding Standards.)
56615 bindir='${exec_prefix}/bin'
56616 sbindir='${exec_prefix}/sbin'
56617 libexecdir='${exec_prefix}/libexec'
56618 -datadir='${prefix}/share'
56619 +datarootdir='${prefix}/share'
56620 +datadir='${datarootdir}'
56621 sysconfdir='${prefix}/etc'
56622 sharedstatedir='${prefix}/com'
56623 localstatedir='${prefix}/var'
56624 -libdir='${exec_prefix}/lib'
56625 includedir='${prefix}/include'
56626 oldincludedir='/usr/include'
56627 -infodir='${prefix}/info'
56628 -mandir='${prefix}/man'
56629 +docdir='${datarootdir}/doc/${PACKAGE}'
56630 +infodir='${datarootdir}/info'
56631 +htmldir='${docdir}'
56632 +dvidir='${docdir}'
56633 +pdfdir='${docdir}'
56634 +psdir='${docdir}'
56635 +libdir='${exec_prefix}/lib'
56636 +localedir='${datarootdir}/locale'
56637 +mandir='${datarootdir}/man'
56638
56639 ac_prev=
56640 +ac_dashdash=
56641 for ac_option
56642 do
56643 # If the previous option needs an argument, assign it.
56644 if test -n "$ac_prev"; then
56645 - eval "$ac_prev=\$ac_option"
56646 + eval $ac_prev=\$ac_option
56647 ac_prev=
56648 continue
56649 fi
56650
56651 - ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
56652 + case $ac_option in
56653 + *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
56654 + *) ac_optarg=yes ;;
56655 + esac
56656
56657 # Accept the important Cygnus configure options, so we can diagnose typos.
56658
56659 - case $ac_option in
56660 + case $ac_dashdash$ac_option in
56661 + --)
56662 + ac_dashdash=yes ;;
56663
56664 -bindir | --bindir | --bindi | --bind | --bin | --bi)
56665 ac_prev=bindir ;;
56666 @@ -386,33 +854,45 @@ do
56667 --config-cache | -C)
56668 cache_file=config.cache ;;
56669
56670 - -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
56671 + -datadir | --datadir | --datadi | --datad)
56672 ac_prev=datadir ;;
56673 - -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
56674 - | --da=*)
56675 + -datadir=* | --datadir=* | --datadi=* | --datad=*)
56676 datadir=$ac_optarg ;;
56677
56678 + -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
56679 + | --dataroo | --dataro | --datar)
56680 + ac_prev=datarootdir ;;
56681 + -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
56682 + | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
56683 + datarootdir=$ac_optarg ;;
56684 +
56685 -disable-* | --disable-*)
56686 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
56687 # Reject names that are not valid shell variable names.
56688 - expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
56689 + expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
56690 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
56691 { (exit 1); exit 1; }; }
56692 - ac_feature=`echo $ac_feature | sed 's/-/_/g'`
56693 - eval "enable_$ac_feature=no" ;;
56694 + ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
56695 + eval enable_$ac_feature=no ;;
56696 +
56697 + -docdir | --docdir | --docdi | --doc | --do)
56698 + ac_prev=docdir ;;
56699 + -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
56700 + docdir=$ac_optarg ;;
56701 +
56702 + -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
56703 + ac_prev=dvidir ;;
56704 + -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
56705 + dvidir=$ac_optarg ;;
56706
56707 -enable-* | --enable-*)
56708 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
56709 # Reject names that are not valid shell variable names.
56710 - expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
56711 + expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
56712 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
56713 { (exit 1); exit 1; }; }
56714 - ac_feature=`echo $ac_feature | sed 's/-/_/g'`
56715 - case $ac_option in
56716 - *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
56717 - *) ac_optarg=yes ;;
56718 - esac
56719 - eval "enable_$ac_feature='$ac_optarg'" ;;
56720 + ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
56721 + eval enable_$ac_feature=\$ac_optarg ;;
56722
56723 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
56724 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
56725 @@ -439,6 +919,12 @@ do
56726 -host=* | --host=* | --hos=* | --ho=*)
56727 host_alias=$ac_optarg ;;
56728
56729 + -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
56730 + ac_prev=htmldir ;;
56731 + -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
56732 + | --ht=*)
56733 + htmldir=$ac_optarg ;;
56734 +
56735 -includedir | --includedir | --includedi | --included | --include \
56736 | --includ | --inclu | --incl | --inc)
56737 ac_prev=includedir ;;
56738 @@ -463,13 +949,16 @@ do
56739 | --libexe=* | --libex=* | --libe=*)
56740 libexecdir=$ac_optarg ;;
56741
56742 + -localedir | --localedir | --localedi | --localed | --locale)
56743 + ac_prev=localedir ;;
56744 + -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
56745 + localedir=$ac_optarg ;;
56746 +
56747 -localstatedir | --localstatedir | --localstatedi | --localstated \
56748 - | --localstate | --localstat | --localsta | --localst \
56749 - | --locals | --local | --loca | --loc | --lo)
56750 + | --localstate | --localstat | --localsta | --localst | --locals)
56751 ac_prev=localstatedir ;;
56752 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
56753 - | --localstate=* | --localstat=* | --localsta=* | --localst=* \
56754 - | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
56755 + | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
56756 localstatedir=$ac_optarg ;;
56757
56758 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
56759 @@ -534,6 +1023,16 @@ do
56760 | --progr-tra=* | --program-tr=* | --program-t=*)
56761 program_transform_name=$ac_optarg ;;
56762
56763 + -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
56764 + ac_prev=pdfdir ;;
56765 + -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
56766 + pdfdir=$ac_optarg ;;
56767 +
56768 + -psdir | --psdir | --psdi | --psd | --ps)
56769 + ac_prev=psdir ;;
56770 + -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
56771 + psdir=$ac_optarg ;;
56772 +
56773 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
56774 | -silent | --silent | --silen | --sile | --sil)
56775 silent=yes ;;
56776 @@ -586,24 +1085,20 @@ do
56777 -with-* | --with-*)
56778 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
56779 # Reject names that are not valid shell variable names.
56780 - expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
56781 + expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
56782 { echo "$as_me: error: invalid package name: $ac_package" >&2
56783 { (exit 1); exit 1; }; }
56784 - ac_package=`echo $ac_package| sed 's/-/_/g'`
56785 - case $ac_option in
56786 - *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
56787 - *) ac_optarg=yes ;;
56788 - esac
56789 - eval "with_$ac_package='$ac_optarg'" ;;
56790 + ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
56791 + eval with_$ac_package=\$ac_optarg ;;
56792
56793 -without-* | --without-*)
56794 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
56795 # Reject names that are not valid shell variable names.
56796 - expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
56797 + expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
56798 { echo "$as_me: error: invalid package name: $ac_package" >&2
56799 { (exit 1); exit 1; }; }
56800 - ac_package=`echo $ac_package | sed 's/-/_/g'`
56801 - eval "with_$ac_package=no" ;;
56802 + ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
56803 + eval with_$ac_package=no ;;
56804
56805 --x)
56806 # Obsolete; use --with-x.
56807 @@ -634,8 +1129,7 @@ Try \`$0 --help' for more information."
56808 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
56809 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
56810 { (exit 1); exit 1; }; }
56811 - ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
56812 - eval "$ac_envvar='$ac_optarg'"
56813 + eval $ac_envvar=\$ac_optarg
56814 export $ac_envvar ;;
56815
56816 *)
56817 @@ -655,27 +1149,19 @@ if test -n "$ac_prev"; then
56818 { (exit 1); exit 1; }; }
56819 fi
56820
56821 -# Be sure to have absolute paths.
56822 -for ac_var in exec_prefix prefix
56823 +# Be sure to have absolute directory names.
56824 +for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
56825 + datadir sysconfdir sharedstatedir localstatedir includedir \
56826 + oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
56827 + libdir localedir mandir
56828 do
56829 - eval ac_val=$`echo $ac_var`
56830 + eval ac_val=\$$ac_var
56831 case $ac_val in
56832 - [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
56833 - *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
56834 - { (exit 1); exit 1; }; };;
56835 - esac
56836 -done
56837 -
56838 -# Be sure to have absolute paths.
56839 -for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
56840 - localstatedir libdir includedir oldincludedir infodir mandir
56841 -do
56842 - eval ac_val=$`echo $ac_var`
56843 - case $ac_val in
56844 - [\\/$]* | ?:[\\/]* ) ;;
56845 - *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
56846 - { (exit 1); exit 1; }; };;
56847 + [\\/$]* | ?:[\\/]* ) continue;;
56848 + NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
56849 esac
56850 + { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
56851 + { (exit 1); exit 1; }; }
56852 done
56853
56854 # There might be people who depend on the old broken behavior: `$host'
56855 @@ -702,74 +1188,76 @@ test -n "$host_alias" && ac_tool_prefix=
56856 test "$silent" = yes && exec 6>/dev/null
56857
56858
56859 +ac_pwd=`pwd` && test -n "$ac_pwd" &&
56860 +ac_ls_di=`ls -di .` &&
56861 +ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
56862 + { echo "$as_me: error: Working directory cannot be determined" >&2
56863 + { (exit 1); exit 1; }; }
56864 +test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
56865 + { echo "$as_me: error: pwd does not report name of working directory" >&2
56866 + { (exit 1); exit 1; }; }
56867 +
56868 +
56869 # Find the source files, if location was not specified.
56870 if test -z "$srcdir"; then
56871 ac_srcdir_defaulted=yes
56872 - # Try the directory containing this script, then its parent.
56873 - ac_confdir=`(dirname "$0") 2>/dev/null ||
56874 + # Try the directory containing this script, then the parent directory.
56875 + ac_confdir=`$as_dirname -- "$0" ||
56876 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
56877 X"$0" : 'X\(//\)[^/]' \| \
56878 X"$0" : 'X\(//\)$' \| \
56879 - X"$0" : 'X\(/\)' \| \
56880 - . : '\(.\)' 2>/dev/null ||
56881 + X"$0" : 'X\(/\)' \| . 2>/dev/null ||
56882 echo X"$0" |
56883 - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
56884 - /^X\(\/\/\)[^/].*/{ s//\1/; q; }
56885 - /^X\(\/\/\)$/{ s//\1/; q; }
56886 - /^X\(\/\).*/{ s//\1/; q; }
56887 - s/.*/./; q'`
56888 + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
56889 + s//\1/
56890 + q
56891 + }
56892 + /^X\(\/\/\)[^/].*/{
56893 + s//\1/
56894 + q
56895 + }
56896 + /^X\(\/\/\)$/{
56897 + s//\1/
56898 + q
56899 + }
56900 + /^X\(\/\).*/{
56901 + s//\1/
56902 + q
56903 + }
56904 + s/.*/./; q'`
56905 srcdir=$ac_confdir
56906 - if test ! -r $srcdir/$ac_unique_file; then
56907 + if test ! -r "$srcdir/$ac_unique_file"; then
56908 srcdir=..
56909 fi
56910 else
56911 ac_srcdir_defaulted=no
56912 fi
56913 -if test ! -r $srcdir/$ac_unique_file; then
56914 - if test "$ac_srcdir_defaulted" = yes; then
56915 - { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
56916 - { (exit 1); exit 1; }; }
56917 - else
56918 - { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
56919 - { (exit 1); exit 1; }; }
56920 - fi
56921 -fi
56922 -(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
56923 - { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
56924 - { (exit 1); exit 1; }; }
56925 -srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
56926 -ac_env_build_alias_set=${build_alias+set}
56927 -ac_env_build_alias_value=$build_alias
56928 -ac_cv_env_build_alias_set=${build_alias+set}
56929 -ac_cv_env_build_alias_value=$build_alias
56930 -ac_env_host_alias_set=${host_alias+set}
56931 -ac_env_host_alias_value=$host_alias
56932 -ac_cv_env_host_alias_set=${host_alias+set}
56933 -ac_cv_env_host_alias_value=$host_alias
56934 -ac_env_target_alias_set=${target_alias+set}
56935 -ac_env_target_alias_value=$target_alias
56936 -ac_cv_env_target_alias_set=${target_alias+set}
56937 -ac_cv_env_target_alias_value=$target_alias
56938 -ac_env_CC_set=${CC+set}
56939 -ac_env_CC_value=$CC
56940 -ac_cv_env_CC_set=${CC+set}
56941 -ac_cv_env_CC_value=$CC
56942 -ac_env_CFLAGS_set=${CFLAGS+set}
56943 -ac_env_CFLAGS_value=$CFLAGS
56944 -ac_cv_env_CFLAGS_set=${CFLAGS+set}
56945 -ac_cv_env_CFLAGS_value=$CFLAGS
56946 -ac_env_LDFLAGS_set=${LDFLAGS+set}
56947 -ac_env_LDFLAGS_value=$LDFLAGS
56948 -ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
56949 -ac_cv_env_LDFLAGS_value=$LDFLAGS
56950 -ac_env_CPPFLAGS_set=${CPPFLAGS+set}
56951 -ac_env_CPPFLAGS_value=$CPPFLAGS
56952 -ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
56953 -ac_cv_env_CPPFLAGS_value=$CPPFLAGS
56954 -ac_env_CPP_set=${CPP+set}
56955 -ac_env_CPP_value=$CPP
56956 -ac_cv_env_CPP_set=${CPP+set}
56957 -ac_cv_env_CPP_value=$CPP
56958 +if test ! -r "$srcdir/$ac_unique_file"; then
56959 + test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
56960 + { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
56961 + { (exit 1); exit 1; }; }
56962 +fi
56963 +ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
56964 +ac_abs_confdir=`(
56965 + cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
56966 + { (exit 1); exit 1; }; }
56967 + pwd)`
56968 +# When building in place, set srcdir=.
56969 +if test "$ac_abs_confdir" = "$ac_pwd"; then
56970 + srcdir=.
56971 +fi
56972 +# Remove unnecessary trailing slashes from srcdir.
56973 +# Double slashes in file names in object file debugging info
56974 +# mess up M-x gdb in Emacs.
56975 +case $srcdir in
56976 +*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
56977 +esac
56978 +for ac_var in $ac_precious_vars; do
56979 + eval ac_env_${ac_var}_set=\${${ac_var}+set}
56980 + eval ac_env_${ac_var}_value=\$${ac_var}
56981 + eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
56982 + eval ac_cv_env_${ac_var}_value=\$${ac_var}
56983 +done
56984
56985 #
56986 # Report the --help message.
56987 @@ -798,9 +1286,6 @@ Configuration:
56988 -n, --no-create do not create output files
56989 --srcdir=DIR find the sources in DIR [configure dir or \`..']
56990
56991 -_ACEOF
56992 -
56993 - cat <<_ACEOF
56994 Installation directories:
56995 --prefix=PREFIX install architecture-independent files in PREFIX
56996 [$ac_default_prefix]
56997 @@ -818,15 +1303,22 @@ Fine tuning of the installation director
56998 --bindir=DIR user executables [EPREFIX/bin]
56999 --sbindir=DIR system admin executables [EPREFIX/sbin]
57000 --libexecdir=DIR program executables [EPREFIX/libexec]
57001 - --datadir=DIR read-only architecture-independent data [PREFIX/share]
57002 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
57003 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
57004 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
57005 --libdir=DIR object code libraries [EPREFIX/lib]
57006 --includedir=DIR C header files [PREFIX/include]
57007 --oldincludedir=DIR C header files for non-gcc [/usr/include]
57008 - --infodir=DIR info documentation [PREFIX/info]
57009 - --mandir=DIR man documentation [PREFIX/man]
57010 + --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
57011 + --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
57012 + --infodir=DIR info documentation [DATAROOTDIR/info]
57013 + --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
57014 + --mandir=DIR man documentation [DATAROOTDIR/man]
57015 + --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
57016 + --htmldir=DIR html documentation [DOCDIR]
57017 + --dvidir=DIR dvi documentation [DOCDIR]
57018 + --pdfdir=DIR pdf documentation [DOCDIR]
57019 + --psdir=DIR ps documentation [DOCDIR]
57020 _ACEOF
57021
57022 cat <<\_ACEOF
57023 @@ -878,126 +1370,100 @@ Some influential environment variables:
57024 CFLAGS C compiler flags
57025 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
57026 nonstandard directory <lib dir>
57027 - CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
57028 - headers in a nonstandard directory <include dir>
57029 + LIBS libraries to pass to the linker, e.g. -l<library>
57030 + CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
57031 + you have headers in a nonstandard directory <include dir>
57032 CPP C preprocessor
57033 + YACC The `Yet Another C Compiler' implementation to use. Defaults to
57034 + the first program found out of: `bison -y', `byacc', `yacc'.
57035 + YFLAGS The list of arguments that will be passed by default to $YACC.
57036 + This script will default YFLAGS to the empty string to avoid a
57037 + default value of `-d' given by some make applications.
57038
57039 Use these variables to override the choices made by `configure' or to help
57040 it to find libraries and programs with nonstandard names/locations.
57041
57042 _ACEOF
57043 +ac_status=$?
57044 fi
57045
57046 if test "$ac_init_help" = "recursive"; then
57047 # If there are subdirs, report their specific --help.
57048 - ac_popdir=`pwd`
57049 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
57050 - test -d $ac_dir || continue
57051 + test -d "$ac_dir" || continue
57052 ac_builddir=.
57053
57054 -if test "$ac_dir" != .; then
57055 +case "$ac_dir" in
57056 +.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
57057 +*)
57058 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
57059 - # A "../" for each directory in $ac_dir_suffix.
57060 - ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
57061 -else
57062 - ac_dir_suffix= ac_top_builddir=
57063 -fi
57064 + # A ".." for each directory in $ac_dir_suffix.
57065 + ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
57066 + case $ac_top_builddir_sub in
57067 + "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
57068 + *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
57069 + esac ;;
57070 +esac
57071 +ac_abs_top_builddir=$ac_pwd
57072 +ac_abs_builddir=$ac_pwd$ac_dir_suffix
57073 +# for backward compatibility:
57074 +ac_top_builddir=$ac_top_build_prefix
57075
57076 case $srcdir in
57077 - .) # No --srcdir option. We are building in place.
57078 + .) # We are building in place.
57079 ac_srcdir=.
57080 - if test -z "$ac_top_builddir"; then
57081 - ac_top_srcdir=.
57082 - else
57083 - ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
57084 - fi ;;
57085 - [\\/]* | ?:[\\/]* ) # Absolute path.
57086 + ac_top_srcdir=$ac_top_builddir_sub
57087 + ac_abs_top_srcdir=$ac_pwd ;;
57088 + [\\/]* | ?:[\\/]* ) # Absolute name.
57089 ac_srcdir=$srcdir$ac_dir_suffix;
57090 - ac_top_srcdir=$srcdir ;;
57091 - *) # Relative path.
57092 - ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
57093 - ac_top_srcdir=$ac_top_builddir$srcdir ;;
57094 -esac
57095 -
57096 -# Do not use `cd foo && pwd` to compute absolute paths, because
57097 -# the directories may not exist.
57098 -case `pwd` in
57099 -.) ac_abs_builddir="$ac_dir";;
57100 -*)
57101 - case "$ac_dir" in
57102 - .) ac_abs_builddir=`pwd`;;
57103 - [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
57104 - *) ac_abs_builddir=`pwd`/"$ac_dir";;
57105 - esac;;
57106 -esac
57107 -case $ac_abs_builddir in
57108 -.) ac_abs_top_builddir=${ac_top_builddir}.;;
57109 -*)
57110 - case ${ac_top_builddir}. in
57111 - .) ac_abs_top_builddir=$ac_abs_builddir;;
57112 - [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
57113 - *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
57114 - esac;;
57115 -esac
57116 -case $ac_abs_builddir in
57117 -.) ac_abs_srcdir=$ac_srcdir;;
57118 -*)
57119 - case $ac_srcdir in
57120 - .) ac_abs_srcdir=$ac_abs_builddir;;
57121 - [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
57122 - *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
57123 - esac;;
57124 -esac
57125 -case $ac_abs_builddir in
57126 -.) ac_abs_top_srcdir=$ac_top_srcdir;;
57127 -*)
57128 - case $ac_top_srcdir in
57129 - .) ac_abs_top_srcdir=$ac_abs_builddir;;
57130 - [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
57131 - *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
57132 - esac;;
57133 -esac
57134 -
57135 - cd $ac_dir
57136 - # Check for guested configure; otherwise get Cygnus style configure.
57137 - if test -f $ac_srcdir/configure.gnu; then
57138 - echo
57139 - $SHELL $ac_srcdir/configure.gnu --help=recursive
57140 - elif test -f $ac_srcdir/configure; then
57141 - echo
57142 - $SHELL $ac_srcdir/configure --help=recursive
57143 - elif test -f $ac_srcdir/configure.ac ||
57144 - test -f $ac_srcdir/configure.in; then
57145 - echo
57146 - $ac_configure --help
57147 + ac_top_srcdir=$srcdir
57148 + ac_abs_top_srcdir=$srcdir ;;
57149 + *) # Relative name.
57150 + ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
57151 + ac_top_srcdir=$ac_top_build_prefix$srcdir
57152 + ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
57153 +esac
57154 +ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
57155 +
57156 + cd "$ac_dir" || { ac_status=$?; continue; }
57157 + # Check for guested configure.
57158 + if test -f "$ac_srcdir/configure.gnu"; then
57159 + echo &&
57160 + $SHELL "$ac_srcdir/configure.gnu" --help=recursive
57161 + elif test -f "$ac_srcdir/configure"; then
57162 + echo &&
57163 + $SHELL "$ac_srcdir/configure" --help=recursive
57164 else
57165 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
57166 - fi
57167 - cd $ac_popdir
57168 + fi || ac_status=$?
57169 + cd "$ac_pwd" || { ac_status=$?; break; }
57170 done
57171 fi
57172
57173 -test -n "$ac_init_help" && exit 0
57174 +test -n "$ac_init_help" && exit $ac_status
57175 if $ac_init_version; then
57176 cat <<\_ACEOF
57177 +configure
57178 +generated by GNU Autoconf 2.61
57179
57180 -Copyright (C) 2003 Free Software Foundation, Inc.
57181 +Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
57182 +2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
57183 This configure script is free software; the Free Software Foundation
57184 gives unlimited permission to copy, distribute and modify it.
57185 _ACEOF
57186 - exit 0
57187 + exit
57188 fi
57189 -exec 5>config.log
57190 -cat >&5 <<_ACEOF
57191 +cat >config.log <<_ACEOF
57192 This file contains any messages produced by compilers while
57193 running configure, to aid debugging if configure makes a mistake.
57194
57195 It was created by $as_me, which was
57196 -generated by GNU Autoconf 2.59. Invocation command line was
57197 +generated by GNU Autoconf 2.61. Invocation command line was
57198
57199 $ $0 $@
57200
57201 _ACEOF
57202 +exec 5>>config.log
57203 {
57204 cat <<_ASUNAME
57205 ## --------- ##
57206 @@ -1016,7 +1482,7 @@ uname -v = `(uname -v) 2>/dev/null || ec
57207 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
57208 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
57209 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
57210 -hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
57211 +/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
57212 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
57213 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
57214 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
57215 @@ -1030,6 +1496,7 @@ do
57216 test -z "$as_dir" && as_dir=.
57217 echo "PATH: $as_dir"
57218 done
57219 +IFS=$as_save_IFS
57220
57221 } >&5
57222
57223 @@ -1051,7 +1518,6 @@ _ACEOF
57224 ac_configure_args=
57225 ac_configure_args0=
57226 ac_configure_args1=
57227 -ac_sep=
57228 ac_must_keep_next=false
57229 for ac_pass in 1 2
57230 do
57231 @@ -1062,7 +1528,7 @@ do
57232 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
57233 | -silent | --silent | --silen | --sile | --sil)
57234 continue ;;
57235 - *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
57236 + *\'*)
57237 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
57238 esac
57239 case $ac_pass in
57240 @@ -1084,9 +1550,7 @@ do
57241 -* ) ac_must_keep_next=true ;;
57242 esac
57243 fi
57244 - ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
57245 - # Get rid of the leading space.
57246 - ac_sep=" "
57247 + ac_configure_args="$ac_configure_args '$ac_arg'"
57248 ;;
57249 esac
57250 done
57251 @@ -1097,8 +1561,8 @@ $as_unset ac_configure_args1 || test "${
57252 # When interrupted or exit'd, cleanup temporary files, and complete
57253 # config.log. We remove comments because anyway the quotes in there
57254 # would cause problems or look ugly.
57255 -# WARNING: Be sure not to use single quotes in there, as some shells,
57256 -# such as our DU 5.0 friend, will then `close' the trap.
57257 +# WARNING: Use '\'' to represent an apostrophe within the trap.
57258 +# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
57259 trap 'exit_status=$?
57260 # Save into config.log some information that might help in debugging.
57261 {
57262 @@ -1111,20 +1575,34 @@ trap 'exit_status=$?
57263 _ASBOX
57264 echo
57265 # The following way of writing the cache mishandles newlines in values,
57266 -{
57267 +(
57268 + for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
57269 + eval ac_val=\$$ac_var
57270 + case $ac_val in #(
57271 + *${as_nl}*)
57272 + case $ac_var in #(
57273 + *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
57274 +echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
57275 + esac
57276 + case $ac_var in #(
57277 + _ | IFS | as_nl) ;; #(
57278 + *) $as_unset $ac_var ;;
57279 + esac ;;
57280 + esac
57281 + done
57282 (set) 2>&1 |
57283 - case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
57284 - *ac_space=\ *)
57285 + case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
57286 + *${as_nl}ac_space=\ *)
57287 sed -n \
57288 - "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
57289 - s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
57290 - ;;
57291 + "s/'\''/'\''\\\\'\'''\''/g;
57292 + s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
57293 + ;; #(
57294 *)
57295 - sed -n \
57296 - "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
57297 + sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
57298 ;;
57299 - esac;
57300 -}
57301 + esac |
57302 + sort
57303 +)
57304 echo
57305
57306 cat <<\_ASBOX
57307 @@ -1135,22 +1613,28 @@ _ASBOX
57308 echo
57309 for ac_var in $ac_subst_vars
57310 do
57311 - eval ac_val=$`echo $ac_var`
57312 - echo "$ac_var='"'"'$ac_val'"'"'"
57313 + eval ac_val=\$$ac_var
57314 + case $ac_val in
57315 + *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
57316 + esac
57317 + echo "$ac_var='\''$ac_val'\''"
57318 done | sort
57319 echo
57320
57321 if test -n "$ac_subst_files"; then
57322 cat <<\_ASBOX
57323 -## ------------- ##
57324 -## Output files. ##
57325 -## ------------- ##
57326 +## ------------------- ##
57327 +## File substitutions. ##
57328 +## ------------------- ##
57329 _ASBOX
57330 echo
57331 for ac_var in $ac_subst_files
57332 do
57333 - eval ac_val=$`echo $ac_var`
57334 - echo "$ac_var='"'"'$ac_val'"'"'"
57335 + eval ac_val=\$$ac_var
57336 + case $ac_val in
57337 + *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
57338 + esac
57339 + echo "$ac_var='\''$ac_val'\''"
57340 done | sort
57341 echo
57342 fi
57343 @@ -1162,26 +1646,24 @@ _ASBOX
57344 ## ----------- ##
57345 _ASBOX
57346 echo
57347 - sed "/^$/d" confdefs.h | sort
57348 + cat confdefs.h
57349 echo
57350 fi
57351 test "$ac_signal" != 0 &&
57352 echo "$as_me: caught signal $ac_signal"
57353 echo "$as_me: exit $exit_status"
57354 } >&5
57355 - rm -f core *.core &&
57356 - rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
57357 + rm -f core *.core core.conftest.* &&
57358 + rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
57359 exit $exit_status
57360 - ' 0
57361 +' 0
57362 for ac_signal in 1 2 13 15; do
57363 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
57364 done
57365 ac_signal=0
57366
57367 # confdefs.h avoids OS command line length limits that DEFS can exceed.
57368 -rm -rf conftest* confdefs.h
57369 -# AIX cpp loses on an empty file, so make sure it contains at least a newline.
57370 -echo >confdefs.h
57371 +rm -f -r conftest* confdefs.h
57372
57373 # Predefined preprocessor variables.
57374
57375 @@ -1212,14 +1694,17 @@ _ACEOF
57376
57377 # Let the site file select an alternate cache file if it wants to.
57378 # Prefer explicitly selected file to automatically selected ones.
57379 -if test -z "$CONFIG_SITE"; then
57380 - if test "x$prefix" != xNONE; then
57381 - CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
57382 - else
57383 - CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
57384 - fi
57385 +if test -n "$CONFIG_SITE"; then
57386 + set x "$CONFIG_SITE"
57387 +elif test "x$prefix" != xNONE; then
57388 + set x "$prefix/share/config.site" "$prefix/etc/config.site"
57389 +else
57390 + set x "$ac_default_prefix/share/config.site" \
57391 + "$ac_default_prefix/etc/config.site"
57392 fi
57393 -for ac_site_file in $CONFIG_SITE; do
57394 +shift
57395 +for ac_site_file
57396 +do
57397 if test -r "$ac_site_file"; then
57398 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
57399 echo "$as_me: loading site script $ac_site_file" >&6;}
57400 @@ -1235,8 +1720,8 @@ if test -r "$cache_file"; then
57401 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
57402 echo "$as_me: loading cache $cache_file" >&6;}
57403 case $cache_file in
57404 - [\\/]* | ?:[\\/]* ) . $cache_file;;
57405 - *) . ./$cache_file;;
57406 + [\\/]* | ?:[\\/]* ) . "$cache_file";;
57407 + *) . "./$cache_file";;
57408 esac
57409 fi
57410 else
57411 @@ -1248,12 +1733,11 @@ fi
57412 # Check that the precious variables saved in the cache have kept the same
57413 # value.
57414 ac_cache_corrupted=false
57415 -for ac_var in `(set) 2>&1 |
57416 - sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
57417 +for ac_var in $ac_precious_vars; do
57418 eval ac_old_set=\$ac_cv_env_${ac_var}_set
57419 eval ac_new_set=\$ac_env_${ac_var}_set
57420 - eval ac_old_val="\$ac_cv_env_${ac_var}_value"
57421 - eval ac_new_val="\$ac_env_${ac_var}_value"
57422 + eval ac_old_val=\$ac_cv_env_${ac_var}_value
57423 + eval ac_new_val=\$ac_env_${ac_var}_value
57424 case $ac_old_set,$ac_new_set in
57425 set,)
57426 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
57427 @@ -1278,8 +1762,7 @@ echo "$as_me: current value: $ac_new_v
57428 # Pass precious variables to config.status.
57429 if test "$ac_new_set" = set; then
57430 case $ac_new_val in
57431 - *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
57432 - ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
57433 + *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
57434 *) ac_arg=$ac_var=$ac_new_val ;;
57435 esac
57436 case " $ac_configure_args " in
57437 @@ -1296,12 +1779,6 @@ echo "$as_me: error: run \`make distclea
57438 { (exit 1); exit 1; }; }
57439 fi
57440
57441 -ac_ext=c
57442 -ac_cpp='$CPP $CPPFLAGS'
57443 -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
57444 -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
57445 -ac_compiler_gnu=$ac_cv_c_compiler_gnu
57446 -
57447
57448
57449
57450 @@ -1318,108 +1795,163 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
57451
57452
57453
57454 +ac_ext=c
57455 +ac_cpp='$CPP $CPPFLAGS'
57456 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
57457 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
57458 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
57459
57460
57461
57462 ac_aux_dir=
57463 -for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
57464 - if test -f $ac_dir/install-sh; then
57465 +for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
57466 + if test -f "$ac_dir/install-sh"; then
57467 ac_aux_dir=$ac_dir
57468 ac_install_sh="$ac_aux_dir/install-sh -c"
57469 break
57470 - elif test -f $ac_dir/install.sh; then
57471 + elif test -f "$ac_dir/install.sh"; then
57472 ac_aux_dir=$ac_dir
57473 ac_install_sh="$ac_aux_dir/install.sh -c"
57474 break
57475 - elif test -f $ac_dir/shtool; then
57476 + elif test -f "$ac_dir/shtool"; then
57477 ac_aux_dir=$ac_dir
57478 ac_install_sh="$ac_aux_dir/shtool install -c"
57479 break
57480 fi
57481 done
57482 if test -z "$ac_aux_dir"; then
57483 - { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
57484 -echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
57485 + { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
57486 +echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
57487 { (exit 1); exit 1; }; }
57488 fi
57489 -ac_config_guess="$SHELL $ac_aux_dir/config.guess"
57490 -ac_config_sub="$SHELL $ac_aux_dir/config.sub"
57491 -ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
57492 +
57493 +# These three variables are undocumented and unsupported,
57494 +# and are intended to be withdrawn in a future Autoconf release.
57495 +# They can cause serious problems if a builder's source tree is in a directory
57496 +# whose full name contains unusual characters.
57497 +ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
57498 +ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
57499 +ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
57500 +
57501
57502 # Make sure we can run config.sub.
57503 -$ac_config_sub sun4 >/dev/null 2>&1 ||
57504 - { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
57505 -echo "$as_me: error: cannot run $ac_config_sub" >&2;}
57506 +$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
57507 + { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
57508 +echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
57509 { (exit 1); exit 1; }; }
57510
57511 -echo "$as_me:$LINENO: checking build system type" >&5
57512 -echo $ECHO_N "checking build system type... $ECHO_C" >&6
57513 +{ echo "$as_me:$LINENO: checking build system type" >&5
57514 +echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
57515 if test "${ac_cv_build+set}" = set; then
57516 echo $ECHO_N "(cached) $ECHO_C" >&6
57517 else
57518 - ac_cv_build_alias=$build_alias
57519 -test -z "$ac_cv_build_alias" &&
57520 - ac_cv_build_alias=`$ac_config_guess`
57521 -test -z "$ac_cv_build_alias" &&
57522 + ac_build_alias=$build_alias
57523 +test "x$ac_build_alias" = x &&
57524 + ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
57525 +test "x$ac_build_alias" = x &&
57526 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
57527 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
57528 { (exit 1); exit 1; }; }
57529 -ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
57530 - { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
57531 -echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
57532 +ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
57533 + { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
57534 +echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
57535 { (exit 1); exit 1; }; }
57536
57537 fi
57538 -echo "$as_me:$LINENO: result: $ac_cv_build" >&5
57539 -echo "${ECHO_T}$ac_cv_build" >&6
57540 +{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
57541 +echo "${ECHO_T}$ac_cv_build" >&6; }
57542 +case $ac_cv_build in
57543 +*-*-*) ;;
57544 +*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
57545 +echo "$as_me: error: invalid value of canonical build" >&2;}
57546 + { (exit 1); exit 1; }; };;
57547 +esac
57548 build=$ac_cv_build
57549 -build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
57550 -build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
57551 -build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
57552 +ac_save_IFS=$IFS; IFS='-'
57553 +set x $ac_cv_build
57554 +shift
57555 +build_cpu=$1
57556 +build_vendor=$2
57557 +shift; shift
57558 +# Remember, the first character of IFS is used to create $*,
57559 +# except with old shells:
57560 +build_os=$*
57561 +IFS=$ac_save_IFS
57562 +case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
57563
57564
57565 -echo "$as_me:$LINENO: checking host system type" >&5
57566 -echo $ECHO_N "checking host system type... $ECHO_C" >&6
57567 +{ echo "$as_me:$LINENO: checking host system type" >&5
57568 +echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
57569 if test "${ac_cv_host+set}" = set; then
57570 echo $ECHO_N "(cached) $ECHO_C" >&6
57571 else
57572 - ac_cv_host_alias=$host_alias
57573 -test -z "$ac_cv_host_alias" &&
57574 - ac_cv_host_alias=$ac_cv_build_alias
57575 -ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
57576 - { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
57577 -echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
57578 + if test "x$host_alias" = x; then
57579 + ac_cv_host=$ac_cv_build
57580 +else
57581 + ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
57582 + { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
57583 +echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
57584 { (exit 1); exit 1; }; }
57585 +fi
57586
57587 fi
57588 -echo "$as_me:$LINENO: result: $ac_cv_host" >&5
57589 -echo "${ECHO_T}$ac_cv_host" >&6
57590 +{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
57591 +echo "${ECHO_T}$ac_cv_host" >&6; }
57592 +case $ac_cv_host in
57593 +*-*-*) ;;
57594 +*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
57595 +echo "$as_me: error: invalid value of canonical host" >&2;}
57596 + { (exit 1); exit 1; }; };;
57597 +esac
57598 host=$ac_cv_host
57599 -host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
57600 -host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
57601 -host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
57602 +ac_save_IFS=$IFS; IFS='-'
57603 +set x $ac_cv_host
57604 +shift
57605 +host_cpu=$1
57606 +host_vendor=$2
57607 +shift; shift
57608 +# Remember, the first character of IFS is used to create $*,
57609 +# except with old shells:
57610 +host_os=$*
57611 +IFS=$ac_save_IFS
57612 +case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
57613
57614
57615 -echo "$as_me:$LINENO: checking target system type" >&5
57616 -echo $ECHO_N "checking target system type... $ECHO_C" >&6
57617 +{ echo "$as_me:$LINENO: checking target system type" >&5
57618 +echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
57619 if test "${ac_cv_target+set}" = set; then
57620 echo $ECHO_N "(cached) $ECHO_C" >&6
57621 else
57622 - ac_cv_target_alias=$target_alias
57623 -test "x$ac_cv_target_alias" = "x" &&
57624 - ac_cv_target_alias=$ac_cv_host_alias
57625 -ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
57626 - { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
57627 -echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
57628 + if test "x$target_alias" = x; then
57629 + ac_cv_target=$ac_cv_host
57630 +else
57631 + ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
57632 + { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
57633 +echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
57634 { (exit 1); exit 1; }; }
57635 +fi
57636
57637 fi
57638 -echo "$as_me:$LINENO: result: $ac_cv_target" >&5
57639 -echo "${ECHO_T}$ac_cv_target" >&6
57640 +{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
57641 +echo "${ECHO_T}$ac_cv_target" >&6; }
57642 +case $ac_cv_target in
57643 +*-*-*) ;;
57644 +*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
57645 +echo "$as_me: error: invalid value of canonical target" >&2;}
57646 + { (exit 1); exit 1; }; };;
57647 +esac
57648 target=$ac_cv_target
57649 -target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
57650 -target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
57651 -target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
57652 +ac_save_IFS=$IFS; IFS='-'
57653 +set x $ac_cv_target
57654 +shift
57655 +target_cpu=$1
57656 +target_vendor=$2
57657 +shift; shift
57658 +# Remember, the first character of IFS is used to create $*,
57659 +# except with old shells:
57660 +target_os=$*
57661 +IFS=$ac_save_IFS
57662 +case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
57663
57664
57665 # The aliases save the names the user supplied, while $host etc.
57666 @@ -1436,8 +1968,8 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
57667 if test -n "$ac_tool_prefix"; then
57668 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
57669 set dummy ${ac_tool_prefix}gcc; ac_word=$2
57670 -echo "$as_me:$LINENO: checking for $ac_word" >&5
57671 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
57672 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
57673 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
57674 if test "${ac_cv_prog_CC+set}" = set; then
57675 echo $ECHO_N "(cached) $ECHO_C" >&6
57676 else
57677 @@ -1450,32 +1982,34 @@ do
57678 IFS=$as_save_IFS
57679 test -z "$as_dir" && as_dir=.
57680 for ac_exec_ext in '' $ac_executable_extensions; do
57681 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57682 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
57683 ac_cv_prog_CC="${ac_tool_prefix}gcc"
57684 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
57685 break 2
57686 fi
57687 done
57688 done
57689 +IFS=$as_save_IFS
57690
57691 fi
57692 fi
57693 CC=$ac_cv_prog_CC
57694 if test -n "$CC"; then
57695 - echo "$as_me:$LINENO: result: $CC" >&5
57696 -echo "${ECHO_T}$CC" >&6
57697 + { echo "$as_me:$LINENO: result: $CC" >&5
57698 +echo "${ECHO_T}$CC" >&6; }
57699 else
57700 - echo "$as_me:$LINENO: result: no" >&5
57701 -echo "${ECHO_T}no" >&6
57702 + { echo "$as_me:$LINENO: result: no" >&5
57703 +echo "${ECHO_T}no" >&6; }
57704 fi
57705
57706 +
57707 fi
57708 if test -z "$ac_cv_prog_CC"; then
57709 ac_ct_CC=$CC
57710 # Extract the first word of "gcc", so it can be a program name with args.
57711 set dummy gcc; ac_word=$2
57712 -echo "$as_me:$LINENO: checking for $ac_word" >&5
57713 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
57714 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
57715 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
57716 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
57717 echo $ECHO_N "(cached) $ECHO_C" >&6
57718 else
57719 @@ -1488,36 +2022,51 @@ do
57720 IFS=$as_save_IFS
57721 test -z "$as_dir" && as_dir=.
57722 for ac_exec_ext in '' $ac_executable_extensions; do
57723 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57724 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
57725 ac_cv_prog_ac_ct_CC="gcc"
57726 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
57727 break 2
57728 fi
57729 done
57730 done
57731 +IFS=$as_save_IFS
57732
57733 fi
57734 fi
57735 ac_ct_CC=$ac_cv_prog_ac_ct_CC
57736 if test -n "$ac_ct_CC"; then
57737 - echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
57738 -echo "${ECHO_T}$ac_ct_CC" >&6
57739 + { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
57740 +echo "${ECHO_T}$ac_ct_CC" >&6; }
57741 else
57742 - echo "$as_me:$LINENO: result: no" >&5
57743 -echo "${ECHO_T}no" >&6
57744 + { echo "$as_me:$LINENO: result: no" >&5
57745 +echo "${ECHO_T}no" >&6; }
57746 fi
57747
57748 - CC=$ac_ct_CC
57749 + if test "x$ac_ct_CC" = x; then
57750 + CC=""
57751 + else
57752 + case $cross_compiling:$ac_tool_warned in
57753 +yes:)
57754 +{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
57755 +whose name does not start with the host triplet. If you think this
57756 +configuration is useful to you, please write to autoconf@gnu.org." >&5
57757 +echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
57758 +whose name does not start with the host triplet. If you think this
57759 +configuration is useful to you, please write to autoconf@gnu.org." >&2;}
57760 +ac_tool_warned=yes ;;
57761 +esac
57762 + CC=$ac_ct_CC
57763 + fi
57764 else
57765 CC="$ac_cv_prog_CC"
57766 fi
57767
57768 if test -z "$CC"; then
57769 - if test -n "$ac_tool_prefix"; then
57770 - # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
57771 + if test -n "$ac_tool_prefix"; then
57772 + # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
57773 set dummy ${ac_tool_prefix}cc; ac_word=$2
57774 -echo "$as_me:$LINENO: checking for $ac_word" >&5
57775 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
57776 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
57777 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
57778 if test "${ac_cv_prog_CC+set}" = set; then
57779 echo $ECHO_N "(cached) $ECHO_C" >&6
57780 else
57781 @@ -1530,74 +2079,34 @@ do
57782 IFS=$as_save_IFS
57783 test -z "$as_dir" && as_dir=.
57784 for ac_exec_ext in '' $ac_executable_extensions; do
57785 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57786 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
57787 ac_cv_prog_CC="${ac_tool_prefix}cc"
57788 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
57789 break 2
57790 fi
57791 done
57792 done
57793 +IFS=$as_save_IFS
57794
57795 fi
57796 fi
57797 CC=$ac_cv_prog_CC
57798 if test -n "$CC"; then
57799 - echo "$as_me:$LINENO: result: $CC" >&5
57800 -echo "${ECHO_T}$CC" >&6
57801 -else
57802 - echo "$as_me:$LINENO: result: no" >&5
57803 -echo "${ECHO_T}no" >&6
57804 -fi
57805 -
57806 -fi
57807 -if test -z "$ac_cv_prog_CC"; then
57808 - ac_ct_CC=$CC
57809 - # Extract the first word of "cc", so it can be a program name with args.
57810 -set dummy cc; ac_word=$2
57811 -echo "$as_me:$LINENO: checking for $ac_word" >&5
57812 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
57813 -if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
57814 - echo $ECHO_N "(cached) $ECHO_C" >&6
57815 -else
57816 - if test -n "$ac_ct_CC"; then
57817 - ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
57818 -else
57819 -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
57820 -for as_dir in $PATH
57821 -do
57822 - IFS=$as_save_IFS
57823 - test -z "$as_dir" && as_dir=.
57824 - for ac_exec_ext in '' $ac_executable_extensions; do
57825 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57826 - ac_cv_prog_ac_ct_CC="cc"
57827 - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
57828 - break 2
57829 - fi
57830 -done
57831 -done
57832 -
57833 -fi
57834 -fi
57835 -ac_ct_CC=$ac_cv_prog_ac_ct_CC
57836 -if test -n "$ac_ct_CC"; then
57837 - echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
57838 -echo "${ECHO_T}$ac_ct_CC" >&6
57839 + { echo "$as_me:$LINENO: result: $CC" >&5
57840 +echo "${ECHO_T}$CC" >&6; }
57841 else
57842 - echo "$as_me:$LINENO: result: no" >&5
57843 -echo "${ECHO_T}no" >&6
57844 + { echo "$as_me:$LINENO: result: no" >&5
57845 +echo "${ECHO_T}no" >&6; }
57846 fi
57847
57848 - CC=$ac_ct_CC
57849 -else
57850 - CC="$ac_cv_prog_CC"
57851 -fi
57852
57853 + fi
57854 fi
57855 if test -z "$CC"; then
57856 # Extract the first word of "cc", so it can be a program name with args.
57857 set dummy cc; ac_word=$2
57858 -echo "$as_me:$LINENO: checking for $ac_word" >&5
57859 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
57860 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
57861 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
57862 if test "${ac_cv_prog_CC+set}" = set; then
57863 echo $ECHO_N "(cached) $ECHO_C" >&6
57864 else
57865 @@ -1611,7 +2120,7 @@ do
57866 IFS=$as_save_IFS
57867 test -z "$as_dir" && as_dir=.
57868 for ac_exec_ext in '' $ac_executable_extensions; do
57869 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57870 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
57871 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
57872 ac_prog_rejected=yes
57873 continue
57874 @@ -1622,6 +2131,7 @@ do
57875 fi
57876 done
57877 done
57878 +IFS=$as_save_IFS
57879
57880 if test $ac_prog_rejected = yes; then
57881 # We found a bogon in the path, so make sure we never use it.
57882 @@ -1639,22 +2149,23 @@ fi
57883 fi
57884 CC=$ac_cv_prog_CC
57885 if test -n "$CC"; then
57886 - echo "$as_me:$LINENO: result: $CC" >&5
57887 -echo "${ECHO_T}$CC" >&6
57888 + { echo "$as_me:$LINENO: result: $CC" >&5
57889 +echo "${ECHO_T}$CC" >&6; }
57890 else
57891 - echo "$as_me:$LINENO: result: no" >&5
57892 -echo "${ECHO_T}no" >&6
57893 + { echo "$as_me:$LINENO: result: no" >&5
57894 +echo "${ECHO_T}no" >&6; }
57895 fi
57896
57897 +
57898 fi
57899 if test -z "$CC"; then
57900 if test -n "$ac_tool_prefix"; then
57901 - for ac_prog in cl
57902 + for ac_prog in cl.exe
57903 do
57904 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
57905 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
57906 -echo "$as_me:$LINENO: checking for $ac_word" >&5
57907 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
57908 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
57909 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
57910 if test "${ac_cv_prog_CC+set}" = set; then
57911 echo $ECHO_N "(cached) $ECHO_C" >&6
57912 else
57913 @@ -1667,36 +2178,38 @@ do
57914 IFS=$as_save_IFS
57915 test -z "$as_dir" && as_dir=.
57916 for ac_exec_ext in '' $ac_executable_extensions; do
57917 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57918 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
57919 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
57920 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
57921 break 2
57922 fi
57923 done
57924 done
57925 +IFS=$as_save_IFS
57926
57927 fi
57928 fi
57929 CC=$ac_cv_prog_CC
57930 if test -n "$CC"; then
57931 - echo "$as_me:$LINENO: result: $CC" >&5
57932 -echo "${ECHO_T}$CC" >&6
57933 + { echo "$as_me:$LINENO: result: $CC" >&5
57934 +echo "${ECHO_T}$CC" >&6; }
57935 else
57936 - echo "$as_me:$LINENO: result: no" >&5
57937 -echo "${ECHO_T}no" >&6
57938 + { echo "$as_me:$LINENO: result: no" >&5
57939 +echo "${ECHO_T}no" >&6; }
57940 fi
57941
57942 +
57943 test -n "$CC" && break
57944 done
57945 fi
57946 if test -z "$CC"; then
57947 ac_ct_CC=$CC
57948 - for ac_prog in cl
57949 + for ac_prog in cl.exe
57950 do
57951 # Extract the first word of "$ac_prog", so it can be a program name with args.
57952 set dummy $ac_prog; ac_word=$2
57953 -echo "$as_me:$LINENO: checking for $ac_word" >&5
57954 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
57955 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
57956 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
57957 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
57958 echo $ECHO_N "(cached) $ECHO_C" >&6
57959 else
57960 @@ -1709,29 +2222,45 @@ do
57961 IFS=$as_save_IFS
57962 test -z "$as_dir" && as_dir=.
57963 for ac_exec_ext in '' $ac_executable_extensions; do
57964 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57965 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
57966 ac_cv_prog_ac_ct_CC="$ac_prog"
57967 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
57968 break 2
57969 fi
57970 done
57971 done
57972 +IFS=$as_save_IFS
57973
57974 fi
57975 fi
57976 ac_ct_CC=$ac_cv_prog_ac_ct_CC
57977 if test -n "$ac_ct_CC"; then
57978 - echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
57979 -echo "${ECHO_T}$ac_ct_CC" >&6
57980 + { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
57981 +echo "${ECHO_T}$ac_ct_CC" >&6; }
57982 else
57983 - echo "$as_me:$LINENO: result: no" >&5
57984 -echo "${ECHO_T}no" >&6
57985 + { echo "$as_me:$LINENO: result: no" >&5
57986 +echo "${ECHO_T}no" >&6; }
57987 fi
57988
57989 +
57990 test -n "$ac_ct_CC" && break
57991 done
57992
57993 - CC=$ac_ct_CC
57994 + if test "x$ac_ct_CC" = x; then
57995 + CC=""
57996 + else
57997 + case $cross_compiling:$ac_tool_warned in
57998 +yes:)
57999 +{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
58000 +whose name does not start with the host triplet. If you think this
58001 +configuration is useful to you, please write to autoconf@gnu.org." >&5
58002 +echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
58003 +whose name does not start with the host triplet. If you think this
58004 +configuration is useful to you, please write to autoconf@gnu.org." >&2;}
58005 +ac_tool_warned=yes ;;
58006 +esac
58007 + CC=$ac_ct_CC
58008 + fi
58009 fi
58010
58011 fi
58012 @@ -1744,21 +2273,35 @@ See \`config.log' for more details." >&2
58013 { (exit 1); exit 1; }; }
58014
58015 # Provide some information about the compiler.
58016 -echo "$as_me:$LINENO:" \
58017 - "checking for C compiler version" >&5
58018 +echo "$as_me:$LINENO: checking for C compiler version" >&5
58019 ac_compiler=`set X $ac_compile; echo $2`
58020 -{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
58021 - (eval $ac_compiler --version </dev/null >&5) 2>&5
58022 +{ (ac_try="$ac_compiler --version >&5"
58023 +case "(($ac_try" in
58024 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58025 + *) ac_try_echo=$ac_try;;
58026 +esac
58027 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
58028 + (eval "$ac_compiler --version >&5") 2>&5
58029 ac_status=$?
58030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58031 (exit $ac_status); }
58032 -{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
58033 - (eval $ac_compiler -v </dev/null >&5) 2>&5
58034 +{ (ac_try="$ac_compiler -v >&5"
58035 +case "(($ac_try" in
58036 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58037 + *) ac_try_echo=$ac_try;;
58038 +esac
58039 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
58040 + (eval "$ac_compiler -v >&5") 2>&5
58041 ac_status=$?
58042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58043 (exit $ac_status); }
58044 -{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
58045 - (eval $ac_compiler -V </dev/null >&5) 2>&5
58046 +{ (ac_try="$ac_compiler -V >&5"
58047 +case "(($ac_try" in
58048 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58049 + *) ac_try_echo=$ac_try;;
58050 +esac
58051 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
58052 + (eval "$ac_compiler -V >&5") 2>&5
58053 ac_status=$?
58054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58055 (exit $ac_status); }
58056 @@ -1783,47 +2326,77 @@ ac_clean_files="$ac_clean_files a.out a.
58057 # Try to create an executable without -o first, disregard a.out.
58058 # It will help us diagnose broken compilers, and finding out an intuition
58059 # of exeext.
58060 -echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
58061 -echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
58062 +{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
58063 +echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
58064 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
58065 -if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
58066 - (eval $ac_link_default) 2>&5
58067 +#
58068 +# List of possible output files, starting from the most likely.
58069 +# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
58070 +# only as a last resort. b.out is created by i960 compilers.
58071 +ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
58072 +#
58073 +# The IRIX 6 linker writes into existing files which may not be
58074 +# executable, retaining their permissions. Remove them first so a
58075 +# subsequent execution test works.
58076 +ac_rmfiles=
58077 +for ac_file in $ac_files
58078 +do
58079 + case $ac_file in
58080 + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
58081 + * ) ac_rmfiles="$ac_rmfiles $ac_file";;
58082 + esac
58083 +done
58084 +rm -f $ac_rmfiles
58085 +
58086 +if { (ac_try="$ac_link_default"
58087 +case "(($ac_try" in
58088 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58089 + *) ac_try_echo=$ac_try;;
58090 +esac
58091 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
58092 + (eval "$ac_link_default") 2>&5
58093 ac_status=$?
58094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58095 (exit $ac_status); }; then
58096 - # Find the output, starting from the most likely. This scheme is
58097 -# not robust to junk in `.', hence go to wildcards (a.*) only as a last
58098 -# resort.
58099 -
58100 -# Be careful to initialize this variable, since it used to be cached.
58101 -# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
58102 -ac_cv_exeext=
58103 -# b.out is created by i960 compilers.
58104 -for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
58105 + # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
58106 +# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
58107 +# in a Makefile. We should not override ac_cv_exeext if it was cached,
58108 +# so that the user can short-circuit this test for compilers unknown to
58109 +# Autoconf.
58110 +for ac_file in $ac_files ''
58111 do
58112 test -f "$ac_file" || continue
58113 case $ac_file in
58114 - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
58115 - ;;
58116 - conftest.$ac_ext )
58117 - # This is the source file.
58118 + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
58119 ;;
58120 [ab].out )
58121 # We found the default executable, but exeext='' is most
58122 # certainly right.
58123 break;;
58124 *.* )
58125 - ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
58126 - # FIXME: I believe we export ac_cv_exeext for Libtool,
58127 - # but it would be cool to find out if it's true. Does anybody
58128 - # maintain Libtool? --akim.
58129 - export ac_cv_exeext
58130 + if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
58131 + then :; else
58132 + ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
58133 + fi
58134 + # We set ac_cv_exeext here because the later test for it is not
58135 + # safe: cross compilers may not add the suffix if given an `-o'
58136 + # argument, so we may need to know it at that point already.
58137 + # Even if this section looks crufty: it has the advantage of
58138 + # actually working.
58139 break;;
58140 * )
58141 break;;
58142 esac
58143 done
58144 +test "$ac_cv_exeext" = no && ac_cv_exeext=
58145 +
58146 else
58147 + ac_file=''
58148 +fi
58149 +
58150 +{ echo "$as_me:$LINENO: result: $ac_file" >&5
58151 +echo "${ECHO_T}$ac_file" >&6; }
58152 +if test -z "$ac_file"; then
58153 echo "$as_me: failed program was:" >&5
58154 sed 's/^/| /' conftest.$ac_ext >&5
58155
58156 @@ -1835,19 +2408,21 @@ See \`config.log' for more details." >&2
58157 fi
58158
58159 ac_exeext=$ac_cv_exeext
58160 -echo "$as_me:$LINENO: result: $ac_file" >&5
58161 -echo "${ECHO_T}$ac_file" >&6
58162
58163 -# Check the compiler produces executables we can run. If not, either
58164 +# Check that the compiler produces executables we can run. If not, either
58165 # the compiler is broken, or we cross compile.
58166 -echo "$as_me:$LINENO: checking whether the C compiler works" >&5
58167 -echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
58168 +{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
58169 +echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
58170 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
58171 # If not cross compiling, check that we can run a simple program.
58172 if test "$cross_compiling" != yes; then
58173 if { ac_try='./$ac_file'
58174 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58175 - (eval $ac_try) 2>&5
58176 + { (case "(($ac_try" in
58177 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58178 + *) ac_try_echo=$ac_try;;
58179 +esac
58180 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
58181 + (eval "$ac_try") 2>&5
58182 ac_status=$?
58183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58184 (exit $ac_status); }; }; then
58185 @@ -1866,22 +2441,27 @@ See \`config.log' for more details." >&2
58186 fi
58187 fi
58188 fi
58189 -echo "$as_me:$LINENO: result: yes" >&5
58190 -echo "${ECHO_T}yes" >&6
58191 +{ echo "$as_me:$LINENO: result: yes" >&5
58192 +echo "${ECHO_T}yes" >&6; }
58193
58194 rm -f a.out a.exe conftest$ac_cv_exeext b.out
58195 ac_clean_files=$ac_clean_files_save
58196 -# Check the compiler produces executables we can run. If not, either
58197 +# Check that the compiler produces executables we can run. If not, either
58198 # the compiler is broken, or we cross compile.
58199 -echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
58200 -echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
58201 -echo "$as_me:$LINENO: result: $cross_compiling" >&5
58202 -echo "${ECHO_T}$cross_compiling" >&6
58203 -
58204 -echo "$as_me:$LINENO: checking for suffix of executables" >&5
58205 -echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
58206 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
58207 - (eval $ac_link) 2>&5
58208 +{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
58209 +echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
58210 +{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
58211 +echo "${ECHO_T}$cross_compiling" >&6; }
58212 +
58213 +{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
58214 +echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
58215 +if { (ac_try="$ac_link"
58216 +case "(($ac_try" in
58217 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58218 + *) ac_try_echo=$ac_try;;
58219 +esac
58220 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
58221 + (eval "$ac_link") 2>&5
58222 ac_status=$?
58223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58224 (exit $ac_status); }; then
58225 @@ -1892,9 +2472,8 @@ if { (eval echo "$as_me:$LINENO: \"$ac_l
58226 for ac_file in conftest.exe conftest conftest.*; do
58227 test -f "$ac_file" || continue
58228 case $ac_file in
58229 - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
58230 + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
58231 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
58232 - export ac_cv_exeext
58233 break;;
58234 * ) break;;
58235 esac
58236 @@ -1908,14 +2487,14 @@ See \`config.log' for more details." >&2
58237 fi
58238
58239 rm -f conftest$ac_cv_exeext
58240 -echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
58241 -echo "${ECHO_T}$ac_cv_exeext" >&6
58242 +{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
58243 +echo "${ECHO_T}$ac_cv_exeext" >&6; }
58244
58245 rm -f conftest.$ac_ext
58246 EXEEXT=$ac_cv_exeext
58247 ac_exeext=$EXEEXT
58248 -echo "$as_me:$LINENO: checking for suffix of object files" >&5
58249 -echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
58250 +{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
58251 +echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
58252 if test "${ac_cv_objext+set}" = set; then
58253 echo $ECHO_N "(cached) $ECHO_C" >&6
58254 else
58255 @@ -1935,14 +2514,20 @@ main ()
58256 }
58257 _ACEOF
58258 rm -f conftest.o conftest.obj
58259 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
58260 - (eval $ac_compile) 2>&5
58261 +if { (ac_try="$ac_compile"
58262 +case "(($ac_try" in
58263 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58264 + *) ac_try_echo=$ac_try;;
58265 +esac
58266 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
58267 + (eval "$ac_compile") 2>&5
58268 ac_status=$?
58269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58270 (exit $ac_status); }; then
58271 - for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
58272 + for ac_file in conftest.o conftest.obj conftest.*; do
58273 + test -f "$ac_file" || continue;
58274 case $ac_file in
58275 - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
58276 + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
58277 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
58278 break;;
58279 esac
58280 @@ -1960,12 +2545,12 @@ fi
58281
58282 rm -f conftest.$ac_cv_objext conftest.$ac_ext
58283 fi
58284 -echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
58285 -echo "${ECHO_T}$ac_cv_objext" >&6
58286 +{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
58287 +echo "${ECHO_T}$ac_cv_objext" >&6; }
58288 OBJEXT=$ac_cv_objext
58289 ac_objext=$OBJEXT
58290 -echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
58291 -echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
58292 +{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
58293 +echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
58294 if test "${ac_cv_c_compiler_gnu+set}" = set; then
58295 echo $ECHO_N "(cached) $ECHO_C" >&6
58296 else
58297 @@ -1988,50 +2573,49 @@ main ()
58298 }
58299 _ACEOF
58300 rm -f conftest.$ac_objext
58301 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
58302 - (eval $ac_compile) 2>conftest.er1
58303 +if { (ac_try="$ac_compile"
58304 +case "(($ac_try" in
58305 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58306 + *) ac_try_echo=$ac_try;;
58307 +esac
58308 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
58309 + (eval "$ac_compile") 2>conftest.er1
58310 ac_status=$?
58311 grep -v '^ *+' conftest.er1 >conftest.err
58312 rm -f conftest.er1
58313 cat conftest.err >&5
58314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58315 - (exit $ac_status); } &&
58316 - { ac_try='test -z "$ac_c_werror_flag"
58317 - || test ! -s conftest.err'
58318 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58319 - (eval $ac_try) 2>&5
58320 - ac_status=$?
58321 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
58322 - (exit $ac_status); }; } &&
58323 - { ac_try='test -s conftest.$ac_objext'
58324 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58325 - (eval $ac_try) 2>&5
58326 - ac_status=$?
58327 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
58328 - (exit $ac_status); }; }; then
58329 + (exit $ac_status); } && {
58330 + test -z "$ac_c_werror_flag" ||
58331 + test ! -s conftest.err
58332 + } && test -s conftest.$ac_objext; then
58333 ac_compiler_gnu=yes
58334 else
58335 echo "$as_me: failed program was:" >&5
58336 sed 's/^/| /' conftest.$ac_ext >&5
58337
58338 -ac_compiler_gnu=no
58339 + ac_compiler_gnu=no
58340 fi
58341 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
58342 +
58343 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
58344 ac_cv_c_compiler_gnu=$ac_compiler_gnu
58345
58346 fi
58347 -echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
58348 -echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
58349 +{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
58350 +echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
58351 GCC=`test $ac_compiler_gnu = yes && echo yes`
58352 ac_test_CFLAGS=${CFLAGS+set}
58353 ac_save_CFLAGS=$CFLAGS
58354 -CFLAGS="-g"
58355 -echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
58356 -echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
58357 +{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
58358 +echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
58359 if test "${ac_cv_prog_cc_g+set}" = set; then
58360 echo $ECHO_N "(cached) $ECHO_C" >&6
58361 else
58362 - cat >conftest.$ac_ext <<_ACEOF
58363 + ac_save_c_werror_flag=$ac_c_werror_flag
58364 + ac_c_werror_flag=yes
58365 + ac_cv_prog_cc_g=no
58366 + CFLAGS="-g"
58367 + cat >conftest.$ac_ext <<_ACEOF
58368 /* confdefs.h. */
58369 _ACEOF
58370 cat confdefs.h >>conftest.$ac_ext
58371 @@ -2047,38 +2631,118 @@ main ()
58372 }
58373 _ACEOF
58374 rm -f conftest.$ac_objext
58375 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
58376 - (eval $ac_compile) 2>conftest.er1
58377 +if { (ac_try="$ac_compile"
58378 +case "(($ac_try" in
58379 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58380 + *) ac_try_echo=$ac_try;;
58381 +esac
58382 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
58383 + (eval "$ac_compile") 2>conftest.er1
58384 ac_status=$?
58385 grep -v '^ *+' conftest.er1 >conftest.err
58386 rm -f conftest.er1
58387 cat conftest.err >&5
58388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58389 - (exit $ac_status); } &&
58390 - { ac_try='test -z "$ac_c_werror_flag"
58391 - || test ! -s conftest.err'
58392 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58393 - (eval $ac_try) 2>&5
58394 + (exit $ac_status); } && {
58395 + test -z "$ac_c_werror_flag" ||
58396 + test ! -s conftest.err
58397 + } && test -s conftest.$ac_objext; then
58398 + ac_cv_prog_cc_g=yes
58399 +else
58400 + echo "$as_me: failed program was:" >&5
58401 +sed 's/^/| /' conftest.$ac_ext >&5
58402 +
58403 + CFLAGS=""
58404 + cat >conftest.$ac_ext <<_ACEOF
58405 +/* confdefs.h. */
58406 +_ACEOF
58407 +cat confdefs.h >>conftest.$ac_ext
58408 +cat >>conftest.$ac_ext <<_ACEOF
58409 +/* end confdefs.h. */
58410 +
58411 +int
58412 +main ()
58413 +{
58414 +
58415 + ;
58416 + return 0;
58417 +}
58418 +_ACEOF
58419 +rm -f conftest.$ac_objext
58420 +if { (ac_try="$ac_compile"
58421 +case "(($ac_try" in
58422 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58423 + *) ac_try_echo=$ac_try;;
58424 +esac
58425 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
58426 + (eval "$ac_compile") 2>conftest.er1
58427 ac_status=$?
58428 + grep -v '^ *+' conftest.er1 >conftest.err
58429 + rm -f conftest.er1
58430 + cat conftest.err >&5
58431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58432 - (exit $ac_status); }; } &&
58433 - { ac_try='test -s conftest.$ac_objext'
58434 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58435 - (eval $ac_try) 2>&5
58436 + (exit $ac_status); } && {
58437 + test -z "$ac_c_werror_flag" ||
58438 + test ! -s conftest.err
58439 + } && test -s conftest.$ac_objext; then
58440 + :
58441 +else
58442 + echo "$as_me: failed program was:" >&5
58443 +sed 's/^/| /' conftest.$ac_ext >&5
58444 +
58445 + ac_c_werror_flag=$ac_save_c_werror_flag
58446 + CFLAGS="-g"
58447 + cat >conftest.$ac_ext <<_ACEOF
58448 +/* confdefs.h. */
58449 +_ACEOF
58450 +cat confdefs.h >>conftest.$ac_ext
58451 +cat >>conftest.$ac_ext <<_ACEOF
58452 +/* end confdefs.h. */
58453 +
58454 +int
58455 +main ()
58456 +{
58457 +
58458 + ;
58459 + return 0;
58460 +}
58461 +_ACEOF
58462 +rm -f conftest.$ac_objext
58463 +if { (ac_try="$ac_compile"
58464 +case "(($ac_try" in
58465 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58466 + *) ac_try_echo=$ac_try;;
58467 +esac
58468 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
58469 + (eval "$ac_compile") 2>conftest.er1
58470 ac_status=$?
58471 + grep -v '^ *+' conftest.er1 >conftest.err
58472 + rm -f conftest.er1
58473 + cat conftest.err >&5
58474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58475 - (exit $ac_status); }; }; then
58476 + (exit $ac_status); } && {
58477 + test -z "$ac_c_werror_flag" ||
58478 + test ! -s conftest.err
58479 + } && test -s conftest.$ac_objext; then
58480 ac_cv_prog_cc_g=yes
58481 else
58482 echo "$as_me: failed program was:" >&5
58483 sed 's/^/| /' conftest.$ac_ext >&5
58484
58485 -ac_cv_prog_cc_g=no
58486 +
58487 +fi
58488 +
58489 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
58490 +fi
58491 +
58492 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
58493 fi
58494 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
58495 +
58496 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
58497 + ac_c_werror_flag=$ac_save_c_werror_flag
58498 fi
58499 -echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
58500 -echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
58501 +{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
58502 +echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
58503 if test "$ac_test_CFLAGS" = set; then
58504 CFLAGS=$ac_save_CFLAGS
58505 elif test $ac_cv_prog_cc_g = yes; then
58506 @@ -2094,12 +2758,12 @@ else
58507 CFLAGS=
58508 fi
58509 fi
58510 -echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
58511 -echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
58512 -if test "${ac_cv_prog_cc_stdc+set}" = set; then
58513 +{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
58514 +echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
58515 +if test "${ac_cv_prog_cc_c89+set}" = set; then
58516 echo $ECHO_N "(cached) $ECHO_C" >&6
58517 else
58518 - ac_cv_prog_cc_stdc=no
58519 + ac_cv_prog_cc_c89=no
58520 ac_save_CC=$CC
58521 cat >conftest.$ac_ext <<_ACEOF
58522 /* confdefs.h. */
58523 @@ -2133,12 +2797,17 @@ static char *f (char * (*g) (char **, in
58524 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
58525 function prototypes and stuff, but not '\xHH' hex character constants.
58526 These don't provoke an error unfortunately, instead are silently treated
58527 - as 'x'. The following induces an error, until -std1 is added to get
58528 + as 'x'. The following induces an error, until -std is added to get
58529 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
58530 array size at least. It's necessary to write '\x00'==0 to get something
58531 - that's true only with -std1. */
58532 + that's true only with -std. */
58533 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
58534
58535 +/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
58536 + inside strings and character constants. */
58537 +#define FOO(x) 'x'
58538 +int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
58539 +
58540 int test (int i, double x);
58541 struct s1 {int (*f) (int a);};
58542 struct s2 {int (*f) (double a);};
58543 @@ -2153,335 +2822,144 @@ return f (e, argv, 0) != argv[0] || f
58544 return 0;
58545 }
58546 _ACEOF
58547 -# Don't try gcc -ansi; that turns off useful extensions and
58548 -# breaks some systems' header files.
58549 -# AIX -qlanglvl=ansi
58550 -# Ultrix and OSF/1 -std1
58551 -# HP-UX 10.20 and later -Ae
58552 -# HP-UX older versions -Aa -D_HPUX_SOURCE
58553 -# SVR4 -Xc -D__EXTENSIONS__
58554 -for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
58555 +for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
58556 + -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
58557 do
58558 CC="$ac_save_CC $ac_arg"
58559 rm -f conftest.$ac_objext
58560 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
58561 - (eval $ac_compile) 2>conftest.er1
58562 +if { (ac_try="$ac_compile"
58563 +case "(($ac_try" in
58564 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58565 + *) ac_try_echo=$ac_try;;
58566 +esac
58567 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
58568 + (eval "$ac_compile") 2>conftest.er1
58569 ac_status=$?
58570 grep -v '^ *+' conftest.er1 >conftest.err
58571 rm -f conftest.er1
58572 cat conftest.err >&5
58573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58574 - (exit $ac_status); } &&
58575 - { ac_try='test -z "$ac_c_werror_flag"
58576 - || test ! -s conftest.err'
58577 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58578 - (eval $ac_try) 2>&5
58579 - ac_status=$?
58580 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
58581 - (exit $ac_status); }; } &&
58582 - { ac_try='test -s conftest.$ac_objext'
58583 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58584 - (eval $ac_try) 2>&5
58585 - ac_status=$?
58586 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
58587 - (exit $ac_status); }; }; then
58588 - ac_cv_prog_cc_stdc=$ac_arg
58589 -break
58590 + (exit $ac_status); } && {
58591 + test -z "$ac_c_werror_flag" ||
58592 + test ! -s conftest.err
58593 + } && test -s conftest.$ac_objext; then
58594 + ac_cv_prog_cc_c89=$ac_arg
58595 else
58596 echo "$as_me: failed program was:" >&5
58597 sed 's/^/| /' conftest.$ac_ext >&5
58598
58599 +
58600 fi
58601 -rm -f conftest.err conftest.$ac_objext
58602 +
58603 +rm -f core conftest.err conftest.$ac_objext
58604 + test "x$ac_cv_prog_cc_c89" != "xno" && break
58605 done
58606 -rm -f conftest.$ac_ext conftest.$ac_objext
58607 +rm -f conftest.$ac_ext
58608 CC=$ac_save_CC
58609
58610 fi
58611 -
58612 -case "x$ac_cv_prog_cc_stdc" in
58613 - x|xno)
58614 - echo "$as_me:$LINENO: result: none needed" >&5
58615 -echo "${ECHO_T}none needed" >&6 ;;
58616 +# AC_CACHE_VAL
58617 +case "x$ac_cv_prog_cc_c89" in
58618 + x)
58619 + { echo "$as_me:$LINENO: result: none needed" >&5
58620 +echo "${ECHO_T}none needed" >&6; } ;;
58621 + xno)
58622 + { echo "$as_me:$LINENO: result: unsupported" >&5
58623 +echo "${ECHO_T}unsupported" >&6; } ;;
58624 *)
58625 - echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
58626 -echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
58627 - CC="$CC $ac_cv_prog_cc_stdc" ;;
58628 + CC="$CC $ac_cv_prog_cc_c89"
58629 + { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
58630 +echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
58631 esac
58632
58633 -# Some people use a C++ compiler to compile C. Since we use `exit',
58634 -# in C++ we need to declare it. In case someone uses the same compiler
58635 -# for both compiling C and C++ we need to have the C++ compiler decide
58636 -# the declaration of exit, since it's the most demanding environment.
58637 +
58638 +ac_ext=c
58639 +ac_cpp='$CPP $CPPFLAGS'
58640 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
58641 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
58642 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
58643 +
58644 +
58645 +{ echo "$as_me:$LINENO: checking for library containing strerror" >&5
58646 +echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; }
58647 +if test "${ac_cv_search_strerror+set}" = set; then
58648 + echo $ECHO_N "(cached) $ECHO_C" >&6
58649 +else
58650 + ac_func_search_save_LIBS=$LIBS
58651 cat >conftest.$ac_ext <<_ACEOF
58652 -#ifndef __cplusplus
58653 - choke me
58654 -#endif
58655 -_ACEOF
58656 -rm -f conftest.$ac_objext
58657 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
58658 - (eval $ac_compile) 2>conftest.er1
58659 - ac_status=$?
58660 - grep -v '^ *+' conftest.er1 >conftest.err
58661 - rm -f conftest.er1
58662 - cat conftest.err >&5
58663 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
58664 - (exit $ac_status); } &&
58665 - { ac_try='test -z "$ac_c_werror_flag"
58666 - || test ! -s conftest.err'
58667 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58668 - (eval $ac_try) 2>&5
58669 - ac_status=$?
58670 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
58671 - (exit $ac_status); }; } &&
58672 - { ac_try='test -s conftest.$ac_objext'
58673 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58674 - (eval $ac_try) 2>&5
58675 - ac_status=$?
58676 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
58677 - (exit $ac_status); }; }; then
58678 - for ac_declaration in \
58679 - '' \
58680 - 'extern "C" void std::exit (int) throw (); using std::exit;' \
58681 - 'extern "C" void std::exit (int); using std::exit;' \
58682 - 'extern "C" void exit (int) throw ();' \
58683 - 'extern "C" void exit (int);' \
58684 - 'void exit (int);'
58685 -do
58686 - cat >conftest.$ac_ext <<_ACEOF
58687 /* confdefs.h. */
58688 _ACEOF
58689 cat confdefs.h >>conftest.$ac_ext
58690 cat >>conftest.$ac_ext <<_ACEOF
58691 /* end confdefs.h. */
58692 -$ac_declaration
58693 -#include <stdlib.h>
58694 +
58695 +/* Override any GCC internal prototype to avoid an error.
58696 + Use char because int might match the return type of a GCC
58697 + builtin and then its argument prototype would still apply. */
58698 +#ifdef __cplusplus
58699 +extern "C"
58700 +#endif
58701 +char strerror ();
58702 int
58703 main ()
58704 {
58705 -exit (42);
58706 +return strerror ();
58707 ;
58708 return 0;
58709 }
58710 _ACEOF
58711 -rm -f conftest.$ac_objext
58712 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
58713 - (eval $ac_compile) 2>conftest.er1
58714 +for ac_lib in '' cposix; do
58715 + if test -z "$ac_lib"; then
58716 + ac_res="none required"
58717 + else
58718 + ac_res=-l$ac_lib
58719 + LIBS="-l$ac_lib $ac_func_search_save_LIBS"
58720 + fi
58721 + rm -f conftest.$ac_objext conftest$ac_exeext
58722 +if { (ac_try="$ac_link"
58723 +case "(($ac_try" in
58724 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58725 + *) ac_try_echo=$ac_try;;
58726 +esac
58727 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
58728 + (eval "$ac_link") 2>conftest.er1
58729 ac_status=$?
58730 grep -v '^ *+' conftest.er1 >conftest.err
58731 rm -f conftest.er1
58732 cat conftest.err >&5
58733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58734 - (exit $ac_status); } &&
58735 - { ac_try='test -z "$ac_c_werror_flag"
58736 - || test ! -s conftest.err'
58737 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58738 - (eval $ac_try) 2>&5
58739 - ac_status=$?
58740 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
58741 - (exit $ac_status); }; } &&
58742 - { ac_try='test -s conftest.$ac_objext'
58743 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58744 - (eval $ac_try) 2>&5
58745 - ac_status=$?
58746 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
58747 - (exit $ac_status); }; }; then
58748 - :
58749 + (exit $ac_status); } && {
58750 + test -z "$ac_c_werror_flag" ||
58751 + test ! -s conftest.err
58752 + } && test -s conftest$ac_exeext &&
58753 + $as_test_x conftest$ac_exeext; then
58754 + ac_cv_search_strerror=$ac_res
58755 else
58756 echo "$as_me: failed program was:" >&5
58757 sed 's/^/| /' conftest.$ac_ext >&5
58758
58759 -continue
58760 -fi
58761 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
58762 - cat >conftest.$ac_ext <<_ACEOF
58763 -/* confdefs.h. */
58764 -_ACEOF
58765 -cat confdefs.h >>conftest.$ac_ext
58766 -cat >>conftest.$ac_ext <<_ACEOF
58767 -/* end confdefs.h. */
58768 -$ac_declaration
58769 -int
58770 -main ()
58771 -{
58772 -exit (42);
58773 - ;
58774 - return 0;
58775 -}
58776 -_ACEOF
58777 -rm -f conftest.$ac_objext
58778 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
58779 - (eval $ac_compile) 2>conftest.er1
58780 - ac_status=$?
58781 - grep -v '^ *+' conftest.er1 >conftest.err
58782 - rm -f conftest.er1
58783 - cat conftest.err >&5
58784 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
58785 - (exit $ac_status); } &&
58786 - { ac_try='test -z "$ac_c_werror_flag"
58787 - || test ! -s conftest.err'
58788 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58789 - (eval $ac_try) 2>&5
58790 - ac_status=$?
58791 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
58792 - (exit $ac_status); }; } &&
58793 - { ac_try='test -s conftest.$ac_objext'
58794 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58795 - (eval $ac_try) 2>&5
58796 - ac_status=$?
58797 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
58798 - (exit $ac_status); }; }; then
58799 - break
58800 -else
58801 - echo "$as_me: failed program was:" >&5
58802 -sed 's/^/| /' conftest.$ac_ext >&5
58803
58804 fi
58805 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
58806 -done
58807 -rm -f conftest*
58808 -if test -n "$ac_declaration"; then
58809 - echo '#ifdef __cplusplus' >>confdefs.h
58810 - echo $ac_declaration >>confdefs.h
58811 - echo '#endif' >>confdefs.h
58812 -fi
58813 -
58814 -else
58815 - echo "$as_me: failed program was:" >&5
58816 -sed 's/^/| /' conftest.$ac_ext >&5
58817
58818 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
58819 + conftest$ac_exeext
58820 + if test "${ac_cv_search_strerror+set}" = set; then
58821 + break
58822 fi
58823 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
58824 -ac_ext=c
58825 -ac_cpp='$CPP $CPPFLAGS'
58826 -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
58827 -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
58828 -ac_compiler_gnu=$ac_cv_c_compiler_gnu
58829 -
58830 -
58831 -echo "$as_me:$LINENO: checking for library containing strerror" >&5
58832 -echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
58833 +done
58834 if test "${ac_cv_search_strerror+set}" = set; then
58835 - echo $ECHO_N "(cached) $ECHO_C" >&6
58836 -else
58837 - ac_func_search_save_LIBS=$LIBS
58838 -ac_cv_search_strerror=no
58839 -cat >conftest.$ac_ext <<_ACEOF
58840 -/* confdefs.h. */
58841 -_ACEOF
58842 -cat confdefs.h >>conftest.$ac_ext
58843 -cat >>conftest.$ac_ext <<_ACEOF
58844 -/* end confdefs.h. */
58845 -
58846 -/* Override any gcc2 internal prototype to avoid an error. */
58847 -#ifdef __cplusplus
58848 -extern "C"
58849 -#endif
58850 -/* We use char because int might match the return type of a gcc2
58851 - builtin and then its argument prototype would still apply. */
58852 -char strerror ();
58853 -int
58854 -main ()
58855 -{
58856 -strerror ();
58857 - ;
58858 - return 0;
58859 -}
58860 -_ACEOF
58861 -rm -f conftest.$ac_objext conftest$ac_exeext
58862 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
58863 - (eval $ac_link) 2>conftest.er1
58864 - ac_status=$?
58865 - grep -v '^ *+' conftest.er1 >conftest.err
58866 - rm -f conftest.er1
58867 - cat conftest.err >&5
58868 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
58869 - (exit $ac_status); } &&
58870 - { ac_try='test -z "$ac_c_werror_flag"
58871 - || test ! -s conftest.err'
58872 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58873 - (eval $ac_try) 2>&5
58874 - ac_status=$?
58875 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
58876 - (exit $ac_status); }; } &&
58877 - { ac_try='test -s conftest$ac_exeext'
58878 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58879 - (eval $ac_try) 2>&5
58880 - ac_status=$?
58881 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
58882 - (exit $ac_status); }; }; then
58883 - ac_cv_search_strerror="none required"
58884 -else
58885 - echo "$as_me: failed program was:" >&5
58886 -sed 's/^/| /' conftest.$ac_ext >&5
58887 -
58888 -fi
58889 -rm -f conftest.err conftest.$ac_objext \
58890 - conftest$ac_exeext conftest.$ac_ext
58891 -if test "$ac_cv_search_strerror" = no; then
58892 - for ac_lib in cposix; do
58893 - LIBS="-l$ac_lib $ac_func_search_save_LIBS"
58894 - cat >conftest.$ac_ext <<_ACEOF
58895 -/* confdefs.h. */
58896 -_ACEOF
58897 -cat confdefs.h >>conftest.$ac_ext
58898 -cat >>conftest.$ac_ext <<_ACEOF
58899 -/* end confdefs.h. */
58900 -
58901 -/* Override any gcc2 internal prototype to avoid an error. */
58902 -#ifdef __cplusplus
58903 -extern "C"
58904 -#endif
58905 -/* We use char because int might match the return type of a gcc2
58906 - builtin and then its argument prototype would still apply. */
58907 -char strerror ();
58908 -int
58909 -main ()
58910 -{
58911 -strerror ();
58912 - ;
58913 - return 0;
58914 -}
58915 -_ACEOF
58916 -rm -f conftest.$ac_objext conftest$ac_exeext
58917 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
58918 - (eval $ac_link) 2>conftest.er1
58919 - ac_status=$?
58920 - grep -v '^ *+' conftest.er1 >conftest.err
58921 - rm -f conftest.er1
58922 - cat conftest.err >&5
58923 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
58924 - (exit $ac_status); } &&
58925 - { ac_try='test -z "$ac_c_werror_flag"
58926 - || test ! -s conftest.err'
58927 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58928 - (eval $ac_try) 2>&5
58929 - ac_status=$?
58930 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
58931 - (exit $ac_status); }; } &&
58932 - { ac_try='test -s conftest$ac_exeext'
58933 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58934 - (eval $ac_try) 2>&5
58935 - ac_status=$?
58936 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
58937 - (exit $ac_status); }; }; then
58938 - ac_cv_search_strerror="-l$ac_lib"
58939 -break
58940 + :
58941 else
58942 - echo "$as_me: failed program was:" >&5
58943 -sed 's/^/| /' conftest.$ac_ext >&5
58944 -
58945 -fi
58946 -rm -f conftest.err conftest.$ac_objext \
58947 - conftest$ac_exeext conftest.$ac_ext
58948 - done
58949 + ac_cv_search_strerror=no
58950 fi
58951 +rm conftest.$ac_ext
58952 LIBS=$ac_func_search_save_LIBS
58953 fi
58954 -echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
58955 -echo "${ECHO_T}$ac_cv_search_strerror" >&6
58956 -if test "$ac_cv_search_strerror" != no; then
58957 - test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
58958 +{ echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
58959 +echo "${ECHO_T}$ac_cv_search_strerror" >&6; }
58960 +ac_res=$ac_cv_search_strerror
58961 +if test "$ac_res" != no; then
58962 + test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
58963
58964 fi
58965
58966 @@ -2501,8 +2979,8 @@ am__api_version="1.9"
58967 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
58968 # OS/2's system install, which has a completely different semantic
58969 # ./install, which can be erroneously created by make from ./install.sh.
58970 -echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
58971 -echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
58972 +{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
58973 +echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
58974 if test -z "$INSTALL"; then
58975 if test "${ac_cv_path_install+set}" = set; then
58976 echo $ECHO_N "(cached) $ECHO_C" >&6
58977 @@ -2524,7 +3002,7 @@ case $as_dir/ in
58978 # by default.
58979 for ac_prog in ginstall scoinst install; do
58980 for ac_exec_ext in '' $ac_executable_extensions; do
58981 - if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
58982 + if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
58983 if test $ac_prog = install &&
58984 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
58985 # AIX install. It has an incompatible calling convention.
58986 @@ -2543,21 +3021,22 @@ case $as_dir/ in
58987 ;;
58988 esac
58989 done
58990 +IFS=$as_save_IFS
58991
58992
58993 fi
58994 if test "${ac_cv_path_install+set}" = set; then
58995 INSTALL=$ac_cv_path_install
58996 else
58997 - # As a last resort, use the slow shell script. We don't cache a
58998 - # path for INSTALL within a source directory, because that will
58999 + # As a last resort, use the slow shell script. Don't cache a
59000 + # value for INSTALL within a source directory, because that will
59001 # break other packages using the cache if that directory is
59002 - # removed, or if the path is relative.
59003 + # removed, or if the value is a relative name.
59004 INSTALL=$ac_install_sh
59005 fi
59006 fi
59007 -echo "$as_me:$LINENO: result: $INSTALL" >&5
59008 -echo "${ECHO_T}$INSTALL" >&6
59009 +{ echo "$as_me:$LINENO: result: $INSTALL" >&5
59010 +echo "${ECHO_T}$INSTALL" >&6; }
59011
59012 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
59013 # It thinks the first close brace ends the variable substitution.
59014 @@ -2567,8 +3046,8 @@ test -z "$INSTALL_SCRIPT" && INSTALL_SCR
59015
59016 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
59017
59018 -echo "$as_me:$LINENO: checking whether build environment is sane" >&5
59019 -echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
59020 +{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5
59021 +echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
59022 # Just in case
59023 sleep 1
59024 echo timestamp > conftest.file
59025 @@ -2610,20 +3089,20 @@ echo "$as_me: error: newly created file
59026 Check your system clock" >&2;}
59027 { (exit 1); exit 1; }; }
59028 fi
59029 -echo "$as_me:$LINENO: result: yes" >&5
59030 -echo "${ECHO_T}yes" >&6
59031 +{ echo "$as_me:$LINENO: result: yes" >&5
59032 +echo "${ECHO_T}yes" >&6; }
59033 test "$program_prefix" != NONE &&
59034 - program_transform_name="s,^,$program_prefix,;$program_transform_name"
59035 + program_transform_name="s&^&$program_prefix&;$program_transform_name"
59036 # Use a double $ so make ignores it.
59037 test "$program_suffix" != NONE &&
59038 - program_transform_name="s,\$,$program_suffix,;$program_transform_name"
59039 + program_transform_name="s&\$&$program_suffix&;$program_transform_name"
59040 # Double any \ or $. echo might interpret backslashes.
59041 # By default was `s,x,x', remove it if useless.
59042 cat <<\_ACEOF >conftest.sed
59043 s/[\\$]/&&/g;s/;s,x,x,$//
59044 _ACEOF
59045 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
59046 -rm conftest.sed
59047 +rm -f conftest.sed
59048
59049 # expand $ac_aux_dir to an absolute path
59050 am_aux_dir=`cd $ac_aux_dir && pwd`
59051 @@ -2675,8 +3154,8 @@ for ac_prog in gawk mawk nawk awk
59052 do
59053 # Extract the first word of "$ac_prog", so it can be a program name with args.
59054 set dummy $ac_prog; ac_word=$2
59055 -echo "$as_me:$LINENO: checking for $ac_word" >&5
59056 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
59057 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
59058 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
59059 if test "${ac_cv_prog_AWK+set}" = set; then
59060 echo $ECHO_N "(cached) $ECHO_C" >&6
59061 else
59062 @@ -2689,54 +3168,57 @@ do
59063 IFS=$as_save_IFS
59064 test -z "$as_dir" && as_dir=.
59065 for ac_exec_ext in '' $ac_executable_extensions; do
59066 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
59067 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
59068 ac_cv_prog_AWK="$ac_prog"
59069 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
59070 break 2
59071 fi
59072 done
59073 done
59074 +IFS=$as_save_IFS
59075
59076 fi
59077 fi
59078 AWK=$ac_cv_prog_AWK
59079 if test -n "$AWK"; then
59080 - echo "$as_me:$LINENO: result: $AWK" >&5
59081 -echo "${ECHO_T}$AWK" >&6
59082 + { echo "$as_me:$LINENO: result: $AWK" >&5
59083 +echo "${ECHO_T}$AWK" >&6; }
59084 else
59085 - echo "$as_me:$LINENO: result: no" >&5
59086 -echo "${ECHO_T}no" >&6
59087 + { echo "$as_me:$LINENO: result: no" >&5
59088 +echo "${ECHO_T}no" >&6; }
59089 fi
59090
59091 +
59092 test -n "$AWK" && break
59093 done
59094
59095 -echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
59096 -echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
59097 -set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
59098 -if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
59099 +{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
59100 +echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
59101 +set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
59102 +if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
59103 echo $ECHO_N "(cached) $ECHO_C" >&6
59104 else
59105 cat >conftest.make <<\_ACEOF
59106 +SHELL = /bin/sh
59107 all:
59108 - @echo 'ac_maketemp="$(MAKE)"'
59109 + @echo '@@@%%%=$(MAKE)=@@@%%%'
59110 _ACEOF
59111 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
59112 -eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
59113 -if test -n "$ac_maketemp"; then
59114 - eval ac_cv_prog_make_${ac_make}_set=yes
59115 -else
59116 - eval ac_cv_prog_make_${ac_make}_set=no
59117 -fi
59118 +case `${MAKE-make} -f conftest.make 2>/dev/null` in
59119 + *@@@%%%=?*=@@@%%%*)
59120 + eval ac_cv_prog_make_${ac_make}_set=yes;;
59121 + *)
59122 + eval ac_cv_prog_make_${ac_make}_set=no;;
59123 +esac
59124 rm -f conftest.make
59125 fi
59126 -if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
59127 - echo "$as_me:$LINENO: result: yes" >&5
59128 -echo "${ECHO_T}yes" >&6
59129 +if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
59130 + { echo "$as_me:$LINENO: result: yes" >&5
59131 +echo "${ECHO_T}yes" >&6; }
59132 SET_MAKE=
59133 else
59134 - echo "$as_me:$LINENO: result: no" >&5
59135 -echo "${ECHO_T}no" >&6
59136 + { echo "$as_me:$LINENO: result: no" >&5
59137 +echo "${ECHO_T}no" >&6; }
59138 SET_MAKE="MAKE=${MAKE-make}"
59139 fi
59140
59141 @@ -2751,7 +3233,7 @@ rmdir .tst 2>/dev/null
59142
59143 DEPDIR="${am__leading_dot}deps"
59144
59145 - ac_config_commands="$ac_config_commands depfiles"
59146 +ac_config_commands="$ac_config_commands depfiles"
59147
59148
59149 am_make=${MAKE-make}
59150 @@ -2761,8 +3243,8 @@ am__doit:
59151 .PHONY: am__doit
59152 END
59153 # If we don't find an include directive, just comment out the code.
59154 -echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
59155 -echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
59156 +{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
59157 +echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
59158 am__include="#"
59159 am__quote=
59160 _am_result=none
59161 @@ -2789,15 +3271,15 @@ if test "$am__include" = "#"; then
59162 fi
59163
59164
59165 -echo "$as_me:$LINENO: result: $_am_result" >&5
59166 -echo "${ECHO_T}$_am_result" >&6
59167 +{ echo "$as_me:$LINENO: result: $_am_result" >&5
59168 +echo "${ECHO_T}$_am_result" >&6; }
59169 rm -f confinc confmf
59170
59171 -# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
59172 +# Check whether --enable-dependency-tracking was given.
59173 if test "${enable_dependency_tracking+set}" = set; then
59174 - enableval="$enable_dependency_tracking"
59175 + enableval=$enable_dependency_tracking;
59176 +fi
59177
59178 -fi;
59179 if test "x$enable_dependency_tracking" != xno; then
59180 am_depcomp="$ac_aux_dir/depcomp"
59181 AMDEPBACKSLASH='\'
59182 @@ -2872,8 +3354,8 @@ if test "$cross_compiling" != no; then
59183 if test -n "$ac_tool_prefix"; then
59184 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
59185 set dummy ${ac_tool_prefix}strip; ac_word=$2
59186 -echo "$as_me:$LINENO: checking for $ac_word" >&5
59187 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
59188 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
59189 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
59190 if test "${ac_cv_prog_STRIP+set}" = set; then
59191 echo $ECHO_N "(cached) $ECHO_C" >&6
59192 else
59193 @@ -2886,32 +3368,34 @@ do
59194 IFS=$as_save_IFS
59195 test -z "$as_dir" && as_dir=.
59196 for ac_exec_ext in '' $ac_executable_extensions; do
59197 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
59198 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
59199 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
59200 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
59201 break 2
59202 fi
59203 done
59204 done
59205 +IFS=$as_save_IFS
59206
59207 fi
59208 fi
59209 STRIP=$ac_cv_prog_STRIP
59210 if test -n "$STRIP"; then
59211 - echo "$as_me:$LINENO: result: $STRIP" >&5
59212 -echo "${ECHO_T}$STRIP" >&6
59213 + { echo "$as_me:$LINENO: result: $STRIP" >&5
59214 +echo "${ECHO_T}$STRIP" >&6; }
59215 else
59216 - echo "$as_me:$LINENO: result: no" >&5
59217 -echo "${ECHO_T}no" >&6
59218 + { echo "$as_me:$LINENO: result: no" >&5
59219 +echo "${ECHO_T}no" >&6; }
59220 fi
59221
59222 +
59223 fi
59224 if test -z "$ac_cv_prog_STRIP"; then
59225 ac_ct_STRIP=$STRIP
59226 # Extract the first word of "strip", so it can be a program name with args.
59227 set dummy strip; ac_word=$2
59228 -echo "$as_me:$LINENO: checking for $ac_word" >&5
59229 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
59230 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
59231 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
59232 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
59233 echo $ECHO_N "(cached) $ECHO_C" >&6
59234 else
59235 @@ -2924,27 +3408,41 @@ do
59236 IFS=$as_save_IFS
59237 test -z "$as_dir" && as_dir=.
59238 for ac_exec_ext in '' $ac_executable_extensions; do
59239 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
59240 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
59241 ac_cv_prog_ac_ct_STRIP="strip"
59242 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
59243 break 2
59244 fi
59245 done
59246 done
59247 +IFS=$as_save_IFS
59248
59249 - test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
59250 fi
59251 fi
59252 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
59253 if test -n "$ac_ct_STRIP"; then
59254 - echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
59255 -echo "${ECHO_T}$ac_ct_STRIP" >&6
59256 + { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
59257 +echo "${ECHO_T}$ac_ct_STRIP" >&6; }
59258 else
59259 - echo "$as_me:$LINENO: result: no" >&5
59260 -echo "${ECHO_T}no" >&6
59261 + { echo "$as_me:$LINENO: result: no" >&5
59262 +echo "${ECHO_T}no" >&6; }
59263 fi
59264
59265 - STRIP=$ac_ct_STRIP
59266 + if test "x$ac_ct_STRIP" = x; then
59267 + STRIP=":"
59268 + else
59269 + case $cross_compiling:$ac_tool_warned in
59270 +yes:)
59271 +{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
59272 +whose name does not start with the host triplet. If you think this
59273 +configuration is useful to you, please write to autoconf@gnu.org." >&5
59274 +echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
59275 +whose name does not start with the host triplet. If you think this
59276 +configuration is useful to you, please write to autoconf@gnu.org." >&2;}
59277 +ac_tool_warned=yes ;;
59278 +esac
59279 + STRIP=$ac_ct_STRIP
59280 + fi
59281 else
59282 STRIP="$ac_cv_prog_STRIP"
59283 fi
59284 @@ -2965,8 +3463,8 @@ am__tar='${AMTAR} chof - "$$tardir"'; am
59285
59286 depcc="$CC" am_compiler_list=
59287
59288 -echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
59289 -echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
59290 +{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
59291 +echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
59292 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
59293 echo $ECHO_N "(cached) $ECHO_C" >&6
59294 else
59295 @@ -3055,8 +3553,8 @@ else
59296 fi
59297
59298 fi
59299 -echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
59300 -echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
59301 +{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
59302 +echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
59303 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
59304
59305
59306 @@ -3074,10 +3572,9 @@ fi
59307
59308
59309
59310 -# Check whether --enable-shared or --disable-shared was given.
59311 +# Check whether --enable-shared was given.
59312 if test "${enable_shared+set}" = set; then
59313 - enableval="$enable_shared"
59314 - p=${PACKAGE-default}
59315 + enableval=$enable_shared; p=${PACKAGE-default}
59316 case $enableval in
59317 yes) enable_shared=yes ;;
59318 no) enable_shared=no ;;
59319 @@ -3095,11 +3592,11 @@ no) enable_shared=no ;;
59320 esac
59321 else
59322 enable_shared=yes
59323 -fi;
59324 -# Check whether --enable-static or --disable-static was given.
59325 +fi
59326 +
59327 +# Check whether --enable-static was given.
59328 if test "${enable_static+set}" = set; then
59329 - enableval="$enable_static"
59330 - p=${PACKAGE-default}
59331 + enableval=$enable_static; p=${PACKAGE-default}
59332 case $enableval in
59333 yes) enable_static=yes ;;
59334 no) enable_static=no ;;
59335 @@ -3117,11 +3614,11 @@ no) enable_static=no ;;
59336 esac
59337 else
59338 enable_static=yes
59339 -fi;
59340 -# Check whether --enable-fast-install or --disable-fast-install was given.
59341 +fi
59342 +
59343 +# Check whether --enable-fast-install was given.
59344 if test "${enable_fast_install+set}" = set; then
59345 - enableval="$enable_fast_install"
59346 - p=${PACKAGE-default}
59347 + enableval=$enable_fast_install; p=${PACKAGE-default}
59348 case $enableval in
59349 yes) enable_fast_install=yes ;;
59350 no) enable_fast_install=no ;;
59351 @@ -3139,20 +3636,21 @@ no) enable_fast_install=no ;;
59352 esac
59353 else
59354 enable_fast_install=yes
59355 -fi;
59356 +fi
59357 +
59358
59359 -# Check whether --with-gnu-ld or --without-gnu-ld was given.
59360 +# Check whether --with-gnu-ld was given.
59361 if test "${with_gnu_ld+set}" = set; then
59362 - withval="$with_gnu_ld"
59363 - test "$withval" = no || with_gnu_ld=yes
59364 + withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
59365 else
59366 with_gnu_ld=no
59367 -fi;
59368 +fi
59369 +
59370 ac_prog=ld
59371 if test "$GCC" = yes; then
59372 # Check if gcc -print-prog-name=ld gives a path.
59373 - echo "$as_me:$LINENO: checking for ld used by GCC" >&5
59374 -echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
59375 + { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
59376 +echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
59377 case $host in
59378 *-*-mingw*)
59379 # gcc leaves a trailing carriage return which upsets mingw
59380 @@ -3181,11 +3679,11 @@ echo $ECHO_N "checking for ld used by GC
59381 ;;
59382 esac
59383 elif test "$with_gnu_ld" = yes; then
59384 - echo "$as_me:$LINENO: checking for GNU ld" >&5
59385 -echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
59386 + { echo "$as_me:$LINENO: checking for GNU ld" >&5
59387 +echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
59388 else
59389 - echo "$as_me:$LINENO: checking for non-GNU ld" >&5
59390 -echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
59391 + { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
59392 +echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
59393 fi
59394 if test "${lt_cv_path_LD+set}" = set; then
59395 echo $ECHO_N "(cached) $ECHO_C" >&6
59396 @@ -3214,17 +3712,17 @@ fi
59397
59398 LD="$lt_cv_path_LD"
59399 if test -n "$LD"; then
59400 - echo "$as_me:$LINENO: result: $LD" >&5
59401 -echo "${ECHO_T}$LD" >&6
59402 + { echo "$as_me:$LINENO: result: $LD" >&5
59403 +echo "${ECHO_T}$LD" >&6; }
59404 else
59405 - echo "$as_me:$LINENO: result: no" >&5
59406 -echo "${ECHO_T}no" >&6
59407 + { echo "$as_me:$LINENO: result: no" >&5
59408 +echo "${ECHO_T}no" >&6; }
59409 fi
59410 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
59411 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
59412 { (exit 1); exit 1; }; }
59413 -echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
59414 -echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
59415 +{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
59416 +echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
59417 if test "${lt_cv_prog_gnu_ld+set}" = set; then
59418 echo $ECHO_N "(cached) $ECHO_C" >&6
59419 else
59420 @@ -3235,25 +3733,25 @@ else
59421 lt_cv_prog_gnu_ld=no
59422 fi
59423 fi
59424 -echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
59425 -echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
59426 +{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
59427 +echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
59428 with_gnu_ld=$lt_cv_prog_gnu_ld
59429
59430
59431 -echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
59432 -echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
59433 +{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
59434 +echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
59435 if test "${lt_cv_ld_reload_flag+set}" = set; then
59436 echo $ECHO_N "(cached) $ECHO_C" >&6
59437 else
59438 lt_cv_ld_reload_flag='-r'
59439 fi
59440 -echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
59441 -echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
59442 +{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
59443 +echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
59444 reload_flag=$lt_cv_ld_reload_flag
59445 test -n "$reload_flag" && reload_flag=" $reload_flag"
59446
59447 -echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
59448 -echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
59449 +{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
59450 +echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
59451 if test "${lt_cv_path_NM+set}" = set; then
59452 echo $ECHO_N "(cached) $ECHO_C" >&6
59453 else
59454 @@ -3288,22 +3786,22 @@ fi
59455 fi
59456
59457 NM="$lt_cv_path_NM"
59458 -echo "$as_me:$LINENO: result: $NM" >&5
59459 -echo "${ECHO_T}$NM" >&6
59460 +{ echo "$as_me:$LINENO: result: $NM" >&5
59461 +echo "${ECHO_T}$NM" >&6; }
59462
59463 -echo "$as_me:$LINENO: checking whether ln -s works" >&5
59464 -echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
59465 +{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
59466 +echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
59467 LN_S=$as_ln_s
59468 if test "$LN_S" = "ln -s"; then
59469 - echo "$as_me:$LINENO: result: yes" >&5
59470 -echo "${ECHO_T}yes" >&6
59471 + { echo "$as_me:$LINENO: result: yes" >&5
59472 +echo "${ECHO_T}yes" >&6; }
59473 else
59474 - echo "$as_me:$LINENO: result: no, using $LN_S" >&5
59475 -echo "${ECHO_T}no, using $LN_S" >&6
59476 + { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
59477 +echo "${ECHO_T}no, using $LN_S" >&6; }
59478 fi
59479
59480 -echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
59481 -echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
59482 +{ echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
59483 +echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6; }
59484 if test "${lt_cv_deplibs_check_method+set}" = set; then
59485 echo $ECHO_N "(cached) $ECHO_C" >&6
59486 else
59487 @@ -3465,8 +3963,8 @@ sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
59488 esac
59489
59490 fi
59491 -echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
59492 -echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
59493 +{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
59494 +echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
59495 file_magic_cmd=$lt_cv_file_magic_cmd
59496 deplibs_check_method=$lt_cv_deplibs_check_method
59497
59498 @@ -3476,8 +3974,8 @@ deplibs_check_method=$lt_cv_deplibs_chec
59499 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
59500
59501 # find the maximum length of command line arguments
59502 -echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
59503 -echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
59504 +{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
59505 +echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
59506 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
59507 echo $ECHO_N "(cached) $ECHO_C" >&6
59508 else
59509 @@ -3528,11 +4026,11 @@ else
59510 fi
59511
59512 if test -n "$lt_cv_sys_max_cmd_len" ; then
59513 - echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
59514 -echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
59515 + { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
59516 +echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
59517 else
59518 - echo "$as_me:$LINENO: result: none" >&5
59519 -echo "${ECHO_T}none" >&6
59520 + { echo "$as_me:$LINENO: result: none" >&5
59521 +echo "${ECHO_T}none" >&6; }
59522 fi
59523
59524
59525 @@ -3540,8 +4038,8 @@ fi
59526 case $deplibs_check_method in
59527 file_magic*)
59528 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
59529 - echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
59530 -echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
59531 + { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
59532 +echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
59533 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
59534 echo $ECHO_N "(cached) $ECHO_C" >&6
59535 else
59536 @@ -3595,17 +4093,17 @@ fi
59537
59538 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
59539 if test -n "$MAGIC_CMD"; then
59540 - echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
59541 -echo "${ECHO_T}$MAGIC_CMD" >&6
59542 + { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
59543 +echo "${ECHO_T}$MAGIC_CMD" >&6; }
59544 else
59545 - echo "$as_me:$LINENO: result: no" >&5
59546 -echo "${ECHO_T}no" >&6
59547 + { echo "$as_me:$LINENO: result: no" >&5
59548 +echo "${ECHO_T}no" >&6; }
59549 fi
59550
59551 if test -z "$lt_cv_path_MAGIC_CMD"; then
59552 if test -n "$ac_tool_prefix"; then
59553 - echo "$as_me:$LINENO: checking for file" >&5
59554 -echo $ECHO_N "checking for file... $ECHO_C" >&6
59555 + { echo "$as_me:$LINENO: checking for file" >&5
59556 +echo $ECHO_N "checking for file... $ECHO_C" >&6; }
59557 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
59558 echo $ECHO_N "(cached) $ECHO_C" >&6
59559 else
59560 @@ -3659,11 +4157,11 @@ fi
59561
59562 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
59563 if test -n "$MAGIC_CMD"; then
59564 - echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
59565 -echo "${ECHO_T}$MAGIC_CMD" >&6
59566 + { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
59567 +echo "${ECHO_T}$MAGIC_CMD" >&6; }
59568 else
59569 - echo "$as_me:$LINENO: result: no" >&5
59570 -echo "${ECHO_T}no" >&6
59571 + { echo "$as_me:$LINENO: result: no" >&5
59572 +echo "${ECHO_T}no" >&6; }
59573 fi
59574
59575 else
59576 @@ -3678,8 +4176,8 @@ esac
59577 if test -n "$ac_tool_prefix"; then
59578 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
59579 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
59580 -echo "$as_me:$LINENO: checking for $ac_word" >&5
59581 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
59582 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
59583 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
59584 if test "${ac_cv_prog_RANLIB+set}" = set; then
59585 echo $ECHO_N "(cached) $ECHO_C" >&6
59586 else
59587 @@ -3692,32 +4190,34 @@ do
59588 IFS=$as_save_IFS
59589 test -z "$as_dir" && as_dir=.
59590 for ac_exec_ext in '' $ac_executable_extensions; do
59591 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
59592 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
59593 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
59594 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
59595 break 2
59596 fi
59597 done
59598 done
59599 +IFS=$as_save_IFS
59600
59601 fi
59602 fi
59603 RANLIB=$ac_cv_prog_RANLIB
59604 if test -n "$RANLIB"; then
59605 - echo "$as_me:$LINENO: result: $RANLIB" >&5
59606 -echo "${ECHO_T}$RANLIB" >&6
59607 + { echo "$as_me:$LINENO: result: $RANLIB" >&5
59608 +echo "${ECHO_T}$RANLIB" >&6; }
59609 else
59610 - echo "$as_me:$LINENO: result: no" >&5
59611 -echo "${ECHO_T}no" >&6
59612 + { echo "$as_me:$LINENO: result: no" >&5
59613 +echo "${ECHO_T}no" >&6; }
59614 fi
59615
59616 +
59617 fi
59618 if test -z "$ac_cv_prog_RANLIB"; then
59619 ac_ct_RANLIB=$RANLIB
59620 # Extract the first word of "ranlib", so it can be a program name with args.
59621 set dummy ranlib; ac_word=$2
59622 -echo "$as_me:$LINENO: checking for $ac_word" >&5
59623 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
59624 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
59625 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
59626 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
59627 echo $ECHO_N "(cached) $ECHO_C" >&6
59628 else
59629 @@ -3730,27 +4230,41 @@ do
59630 IFS=$as_save_IFS
59631 test -z "$as_dir" && as_dir=.
59632 for ac_exec_ext in '' $ac_executable_extensions; do
59633 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
59634 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
59635 ac_cv_prog_ac_ct_RANLIB="ranlib"
59636 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
59637 break 2
59638 fi
59639 done
59640 done
59641 +IFS=$as_save_IFS
59642
59643 - test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
59644 fi
59645 fi
59646 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
59647 if test -n "$ac_ct_RANLIB"; then
59648 - echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
59649 -echo "${ECHO_T}$ac_ct_RANLIB" >&6
59650 + { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
59651 +echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
59652 else
59653 - echo "$as_me:$LINENO: result: no" >&5
59654 -echo "${ECHO_T}no" >&6
59655 + { echo "$as_me:$LINENO: result: no" >&5
59656 +echo "${ECHO_T}no" >&6; }
59657 fi
59658
59659 - RANLIB=$ac_ct_RANLIB
59660 + if test "x$ac_ct_RANLIB" = x; then
59661 + RANLIB=":"
59662 + else
59663 + case $cross_compiling:$ac_tool_warned in
59664 +yes:)
59665 +{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
59666 +whose name does not start with the host triplet. If you think this
59667 +configuration is useful to you, please write to autoconf@gnu.org." >&5
59668 +echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
59669 +whose name does not start with the host triplet. If you think this
59670 +configuration is useful to you, please write to autoconf@gnu.org." >&2;}
59671 +ac_tool_warned=yes ;;
59672 +esac
59673 + RANLIB=$ac_ct_RANLIB
59674 + fi
59675 else
59676 RANLIB="$ac_cv_prog_RANLIB"
59677 fi
59678 @@ -3758,8 +4272,8 @@ fi
59679 if test -n "$ac_tool_prefix"; then
59680 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
59681 set dummy ${ac_tool_prefix}strip; ac_word=$2
59682 -echo "$as_me:$LINENO: checking for $ac_word" >&5
59683 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
59684 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
59685 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
59686 if test "${ac_cv_prog_STRIP+set}" = set; then
59687 echo $ECHO_N "(cached) $ECHO_C" >&6
59688 else
59689 @@ -3772,32 +4286,34 @@ do
59690 IFS=$as_save_IFS
59691 test -z "$as_dir" && as_dir=.
59692 for ac_exec_ext in '' $ac_executable_extensions; do
59693 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
59694 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
59695 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
59696 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
59697 break 2
59698 fi
59699 done
59700 done
59701 +IFS=$as_save_IFS
59702
59703 fi
59704 fi
59705 STRIP=$ac_cv_prog_STRIP
59706 if test -n "$STRIP"; then
59707 - echo "$as_me:$LINENO: result: $STRIP" >&5
59708 -echo "${ECHO_T}$STRIP" >&6
59709 + { echo "$as_me:$LINENO: result: $STRIP" >&5
59710 +echo "${ECHO_T}$STRIP" >&6; }
59711 else
59712 - echo "$as_me:$LINENO: result: no" >&5
59713 -echo "${ECHO_T}no" >&6
59714 + { echo "$as_me:$LINENO: result: no" >&5
59715 +echo "${ECHO_T}no" >&6; }
59716 fi
59717
59718 +
59719 fi
59720 if test -z "$ac_cv_prog_STRIP"; then
59721 ac_ct_STRIP=$STRIP
59722 # Extract the first word of "strip", so it can be a program name with args.
59723 set dummy strip; ac_word=$2
59724 -echo "$as_me:$LINENO: checking for $ac_word" >&5
59725 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
59726 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
59727 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
59728 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
59729 echo $ECHO_N "(cached) $ECHO_C" >&6
59730 else
59731 @@ -3810,27 +4326,41 @@ do
59732 IFS=$as_save_IFS
59733 test -z "$as_dir" && as_dir=.
59734 for ac_exec_ext in '' $ac_executable_extensions; do
59735 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
59736 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
59737 ac_cv_prog_ac_ct_STRIP="strip"
59738 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
59739 break 2
59740 fi
59741 done
59742 done
59743 +IFS=$as_save_IFS
59744
59745 - test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
59746 fi
59747 fi
59748 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
59749 if test -n "$ac_ct_STRIP"; then
59750 - echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
59751 -echo "${ECHO_T}$ac_ct_STRIP" >&6
59752 + { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
59753 +echo "${ECHO_T}$ac_ct_STRIP" >&6; }
59754 else
59755 - echo "$as_me:$LINENO: result: no" >&5
59756 -echo "${ECHO_T}no" >&6
59757 + { echo "$as_me:$LINENO: result: no" >&5
59758 +echo "${ECHO_T}no" >&6; }
59759 fi
59760
59761 - STRIP=$ac_ct_STRIP
59762 + if test "x$ac_ct_STRIP" = x; then
59763 + STRIP=":"
59764 + else
59765 + case $cross_compiling:$ac_tool_warned in
59766 +yes:)
59767 +{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
59768 +whose name does not start with the host triplet. If you think this
59769 +configuration is useful to you, please write to autoconf@gnu.org." >&5
59770 +echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
59771 +whose name does not start with the host triplet. If you think this
59772 +configuration is useful to you, please write to autoconf@gnu.org." >&2;}
59773 +ac_tool_warned=yes ;;
59774 +esac
59775 + STRIP=$ac_ct_STRIP
59776 + fi
59777 else
59778 STRIP="$ac_cv_prog_STRIP"
59779 fi
59780 @@ -3845,22 +4375,22 @@ test "$GCC" = yes && libtool_flags="$lib
59781 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
59782
59783
59784 -# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
59785 +# Check whether --enable-libtool-lock was given.
59786 if test "${enable_libtool_lock+set}" = set; then
59787 - enableval="$enable_libtool_lock"
59788 + enableval=$enable_libtool_lock;
59789 +fi
59790
59791 -fi;
59792 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
59793 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
59794
59795
59796 -# Check whether --with-pic or --without-pic was given.
59797 +# Check whether --with-pic was given.
59798 if test "${with_pic+set}" = set; then
59799 - withval="$with_pic"
59800 - pic_mode="$withval"
59801 + withval=$with_pic; pic_mode="$withval"
59802 else
59803 pic_mode=default
59804 -fi;
59805 +fi
59806 +
59807 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
59808 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
59809
59810 @@ -3869,7 +4399,7 @@ test x"$pic_mode" = xno && libtool_flags
59811 case $host in
59812 *-*-irix6*)
59813 # Find out which ABI we are using.
59814 - echo '#line 3872 "configure"' > conftest.$ac_ext
59815 + echo '#line 4402 "configure"' > conftest.$ac_ext
59816 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
59817 (eval $ac_compile) 2>&5
59818 ac_status=$?
59819 @@ -3974,13 +4504,12 @@ x86_64-*linux*|ppc*-*linux*|powerpc*-*li
59820 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
59821 SAVE_CFLAGS="$CFLAGS"
59822 CFLAGS="$CFLAGS -belf"
59823 - echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
59824 -echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
59825 + { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
59826 +echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
59827 if test "${lt_cv_cc_needs_belf+set}" = set; then
59828 echo $ECHO_N "(cached) $ECHO_C" >&6
59829 else
59830
59831 -
59832 ac_ext=c
59833 ac_cpp='$CPP $CPPFLAGS'
59834 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
59835 @@ -4003,35 +4532,32 @@ main ()
59836 }
59837 _ACEOF
59838 rm -f conftest.$ac_objext conftest$ac_exeext
59839 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
59840 - (eval $ac_link) 2>conftest.er1
59841 +if { (ac_try="$ac_link"
59842 +case "(($ac_try" in
59843 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
59844 + *) ac_try_echo=$ac_try;;
59845 +esac
59846 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
59847 + (eval "$ac_link") 2>conftest.er1
59848 ac_status=$?
59849 grep -v '^ *+' conftest.er1 >conftest.err
59850 rm -f conftest.er1
59851 cat conftest.err >&5
59852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59853 - (exit $ac_status); } &&
59854 - { ac_try='test -z "$ac_c_werror_flag"
59855 - || test ! -s conftest.err'
59856 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
59857 - (eval $ac_try) 2>&5
59858 - ac_status=$?
59859 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
59860 - (exit $ac_status); }; } &&
59861 - { ac_try='test -s conftest$ac_exeext'
59862 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
59863 - (eval $ac_try) 2>&5
59864 - ac_status=$?
59865 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
59866 - (exit $ac_status); }; }; then
59867 + (exit $ac_status); } && {
59868 + test -z "$ac_c_werror_flag" ||
59869 + test ! -s conftest.err
59870 + } && test -s conftest$ac_exeext &&
59871 + $as_test_x conftest$ac_exeext; then
59872 lt_cv_cc_needs_belf=yes
59873 else
59874 echo "$as_me: failed program was:" >&5
59875 sed 's/^/| /' conftest.$ac_ext >&5
59876
59877 -lt_cv_cc_needs_belf=no
59878 + lt_cv_cc_needs_belf=no
59879 fi
59880 -rm -f conftest.err conftest.$ac_objext \
59881 +
59882 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
59883 conftest$ac_exeext conftest.$ac_ext
59884 ac_ext=c
59885 ac_cpp='$CPP $CPPFLAGS'
59886 @@ -4040,8 +4566,8 @@ ac_link='$CC -o conftest$ac_exeext $CFLA
59887 ac_compiler_gnu=$ac_cv_c_compiler_gnu
59888
59889 fi
59890 -echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
59891 -echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
59892 +{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
59893 +echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
59894 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
59895 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
59896 CFLAGS="$SAVE_CFLAGS"
59897 @@ -4071,39 +4597,58 @@ _ACEOF
59898
59899 # The following way of writing the cache mishandles newlines in values,
59900 # but we know of no workaround that is simple, portable, and efficient.
59901 -# So, don't put newlines in cache variables' values.
59902 +# So, we kill variables containing newlines.
59903 # Ultrix sh set writes to stderr and can't be redirected directly,
59904 # and sets the high bit in the cache file unless we assign to the vars.
59905 -{
59906 +(
59907 + for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
59908 + eval ac_val=\$$ac_var
59909 + case $ac_val in #(
59910 + *${as_nl}*)
59911 + case $ac_var in #(
59912 + *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
59913 +echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
59914 + esac
59915 + case $ac_var in #(
59916 + _ | IFS | as_nl) ;; #(
59917 + *) $as_unset $ac_var ;;
59918 + esac ;;
59919 + esac
59920 + done
59921 +
59922 (set) 2>&1 |
59923 - case `(ac_space=' '; set | grep ac_space) 2>&1` in
59924 - *ac_space=\ *)
59925 + case $as_nl`(ac_space=' '; set) 2>&1` in #(
59926 + *${as_nl}ac_space=\ *)
59927 # `set' does not quote correctly, so add quotes (double-quote
59928 # substitution turns \\\\ into \\, and sed turns \\ into \).
59929 sed -n \
59930 "s/'/'\\\\''/g;
59931 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
59932 - ;;
59933 + ;; #(
59934 *)
59935 # `set' quotes correctly as required by POSIX, so do not add quotes.
59936 - sed -n \
59937 - "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
59938 + sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
59939 ;;
59940 - esac;
59941 -} |
59942 + esac |
59943 + sort
59944 +) |
59945 sed '
59946 + /^ac_cv_env_/b end
59947 t clear
59948 - : clear
59949 + :clear
59950 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
59951 t end
59952 - /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
59953 - : end' >>confcache
59954 -if diff $cache_file confcache >/dev/null 2>&1; then :; else
59955 - if test -w $cache_file; then
59956 - test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
59957 + s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
59958 + :end' >>confcache
59959 +if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
59960 + if test -w "$cache_file"; then
59961 + test "x$cache_file" != "x/dev/null" &&
59962 + { echo "$as_me:$LINENO: updating cache $cache_file" >&5
59963 +echo "$as_me: updating cache $cache_file" >&6;}
59964 cat confcache >$cache_file
59965 else
59966 - echo "not updating unwritable cache $cache_file"
59967 + { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
59968 +echo "$as_me: not updating unwritable cache $cache_file" >&6;}
59969 fi
59970 fi
59971 rm -f confcache
59972 @@ -4129,8 +4674,8 @@ if test -r "$cache_file"; then
59973 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
59974 echo "$as_me: loading cache $cache_file" >&6;}
59975 case $cache_file in
59976 - [\\/]* | ?:[\\/]* ) . $cache_file;;
59977 - *) . ./$cache_file;;
59978 + [\\/]* | ?:[\\/]* ) . "$cache_file";;
59979 + *) . "./$cache_file";;
59980 esac
59981 fi
59982 else
59983 @@ -4157,15 +4702,14 @@ exec 5>>./config.log
59984
59985
59986
59987 -# Check whether --with-lib-path or --without-lib-path was given.
59988 +# Check whether --with-lib-path was given.
59989 if test "${with_lib_path+set}" = set; then
59990 - withval="$with_lib_path"
59991 - LIB_PATH=$withval
59992 -fi;
59993 -# Check whether --enable-targets or --disable-targets was given.
59994 + withval=$with_lib_path; LIB_PATH=$withval
59995 +fi
59996 +
59997 +# Check whether --enable-targets was given.
59998 if test "${enable_targets+set}" = set; then
59999 - enableval="$enable_targets"
60000 - case "${enableval}" in
60001 + enableval=$enable_targets; case "${enableval}" in
60002 yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5
60003 echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;}
60004 { (exit 1); exit 1; }; }
60005 @@ -4173,10 +4717,10 @@ echo "$as_me: error: enable-targets opti
60006 no) enable_targets= ;;
60007 *) enable_targets=$enableval ;;
60008 esac
60009 -fi; # Check whether --enable-64-bit-bfd or --disable-64-bit-bfd was given.
60010 +fi
60011 +# Check whether --enable-64-bit-bfd was given.
60012 if test "${enable_64_bit_bfd+set}" = set; then
60013 - enableval="$enable_64_bit_bfd"
60014 - case "${enableval}" in
60015 + enableval=$enable_64_bit_bfd; case "${enableval}" in
60016 yes) want64=true ;;
60017 no) want64=false ;;
60018 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for 64-bit-bfd option" >&5
60019 @@ -4185,12 +4729,12 @@ echo "$as_me: error: bad value ${enablev
60020 esac
60021 else
60022 want64=false
60023 -fi;
60024 +fi
60025
60026 -# Check whether --with-sysroot or --without-sysroot was given.
60027 -if test "${with_sysroot+set}" = set; then
60028 - withval="$with_sysroot"
60029
60030 +# Check whether --with-sysroot was given.
60031 +if test "${with_sysroot+set}" = set; then
60032 + withval=$with_sysroot;
60033 case ${with_sysroot} in
60034 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_alias}/sys-root' ;;
60035 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
60036 @@ -4222,7 +4766,8 @@ else
60037 TARGET_SYSTEM_ROOT=
60038 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"\"'
60039
60040 -fi;
60041 +fi
60042 +
60043
60044
60045
60046 @@ -4230,17 +4775,17 @@ fi;
60047
60048 GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
60049
60050 -# Check whether --enable-werror or --disable-werror was given.
60051 +# Check whether --enable-werror was given.
60052 if test "${enable_werror+set}" = set; then
60053 - enableval="$enable_werror"
60054 - case "${enableval}" in
60055 + enableval=$enable_werror; case "${enableval}" in
60056 yes | y) ERROR_ON_WARNING="yes" ;;
60057 no | n) ERROR_ON_WARNING="no" ;;
60058 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
60059 echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
60060 { (exit 1); exit 1; }; } ;;
60061 esac
60062 -fi;
60063 +fi
60064 +
60065
60066 # Enable -Werror by default when using gcc
60067 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
60068 @@ -4257,10 +4802,9 @@ if test "${GCC}" = yes ; then
60069 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
60070 fi
60071
60072 -# Check whether --enable-build-warnings or --disable-build-warnings was given.
60073 +# Check whether --enable-build-warnings was given.
60074 if test "${enable_build_warnings+set}" = set; then
60075 - enableval="$enable_build_warnings"
60076 - case "${enableval}" in
60077 + enableval=$enable_build_warnings; case "${enableval}" in
60078 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
60079 no) if test "${GCC}" = yes ; then
60080 WARN_CFLAGS="-w"
60081 @@ -4271,7 +4815,8 @@ if test "${enable_build_warnings+set}" =
60082 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
60083 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
60084 esac
60085 -fi;
60086 +fi
60087 +
60088
60089 if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
60090 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
60091 @@ -4281,7 +4826,7 @@ fi
60092
60093
60094
60095 - ac_config_headers="$ac_config_headers config.h:config.in"
60096 +ac_config_headers="$ac_config_headers config.h:config.in"
60097
60098
60099 if test -z "$target" ; then
60100 @@ -4305,8 +4850,8 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
60101 if test -n "$ac_tool_prefix"; then
60102 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
60103 set dummy ${ac_tool_prefix}gcc; ac_word=$2
60104 -echo "$as_me:$LINENO: checking for $ac_word" >&5
60105 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
60106 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
60107 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
60108 if test "${ac_cv_prog_CC+set}" = set; then
60109 echo $ECHO_N "(cached) $ECHO_C" >&6
60110 else
60111 @@ -4319,32 +4864,34 @@ do
60112 IFS=$as_save_IFS
60113 test -z "$as_dir" && as_dir=.
60114 for ac_exec_ext in '' $ac_executable_extensions; do
60115 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
60116 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
60117 ac_cv_prog_CC="${ac_tool_prefix}gcc"
60118 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
60119 break 2
60120 fi
60121 done
60122 done
60123 +IFS=$as_save_IFS
60124
60125 fi
60126 fi
60127 CC=$ac_cv_prog_CC
60128 if test -n "$CC"; then
60129 - echo "$as_me:$LINENO: result: $CC" >&5
60130 -echo "${ECHO_T}$CC" >&6
60131 + { echo "$as_me:$LINENO: result: $CC" >&5
60132 +echo "${ECHO_T}$CC" >&6; }
60133 else
60134 - echo "$as_me:$LINENO: result: no" >&5
60135 -echo "${ECHO_T}no" >&6
60136 + { echo "$as_me:$LINENO: result: no" >&5
60137 +echo "${ECHO_T}no" >&6; }
60138 fi
60139
60140 +
60141 fi
60142 if test -z "$ac_cv_prog_CC"; then
60143 ac_ct_CC=$CC
60144 # Extract the first word of "gcc", so it can be a program name with args.
60145 set dummy gcc; ac_word=$2
60146 -echo "$as_me:$LINENO: checking for $ac_word" >&5
60147 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
60148 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
60149 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
60150 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
60151 echo $ECHO_N "(cached) $ECHO_C" >&6
60152 else
60153 @@ -4357,36 +4904,51 @@ do
60154 IFS=$as_save_IFS
60155 test -z "$as_dir" && as_dir=.
60156 for ac_exec_ext in '' $ac_executable_extensions; do
60157 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
60158 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
60159 ac_cv_prog_ac_ct_CC="gcc"
60160 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
60161 break 2
60162 fi
60163 done
60164 done
60165 +IFS=$as_save_IFS
60166
60167 fi
60168 fi
60169 ac_ct_CC=$ac_cv_prog_ac_ct_CC
60170 if test -n "$ac_ct_CC"; then
60171 - echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
60172 -echo "${ECHO_T}$ac_ct_CC" >&6
60173 + { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
60174 +echo "${ECHO_T}$ac_ct_CC" >&6; }
60175 else
60176 - echo "$as_me:$LINENO: result: no" >&5
60177 -echo "${ECHO_T}no" >&6
60178 + { echo "$as_me:$LINENO: result: no" >&5
60179 +echo "${ECHO_T}no" >&6; }
60180 fi
60181
60182 - CC=$ac_ct_CC
60183 + if test "x$ac_ct_CC" = x; then
60184 + CC=""
60185 + else
60186 + case $cross_compiling:$ac_tool_warned in
60187 +yes:)
60188 +{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
60189 +whose name does not start with the host triplet. If you think this
60190 +configuration is useful to you, please write to autoconf@gnu.org." >&5
60191 +echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
60192 +whose name does not start with the host triplet. If you think this
60193 +configuration is useful to you, please write to autoconf@gnu.org." >&2;}
60194 +ac_tool_warned=yes ;;
60195 +esac
60196 + CC=$ac_ct_CC
60197 + fi
60198 else
60199 CC="$ac_cv_prog_CC"
60200 fi
60201
60202 if test -z "$CC"; then
60203 - if test -n "$ac_tool_prefix"; then
60204 - # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
60205 + if test -n "$ac_tool_prefix"; then
60206 + # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
60207 set dummy ${ac_tool_prefix}cc; ac_word=$2
60208 -echo "$as_me:$LINENO: checking for $ac_word" >&5
60209 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
60210 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
60211 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
60212 if test "${ac_cv_prog_CC+set}" = set; then
60213 echo $ECHO_N "(cached) $ECHO_C" >&6
60214 else
60215 @@ -4399,74 +4961,34 @@ do
60216 IFS=$as_save_IFS
60217 test -z "$as_dir" && as_dir=.
60218 for ac_exec_ext in '' $ac_executable_extensions; do
60219 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
60220 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
60221 ac_cv_prog_CC="${ac_tool_prefix}cc"
60222 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
60223 break 2
60224 fi
60225 done
60226 done
60227 +IFS=$as_save_IFS
60228
60229 fi
60230 fi
60231 CC=$ac_cv_prog_CC
60232 if test -n "$CC"; then
60233 - echo "$as_me:$LINENO: result: $CC" >&5
60234 -echo "${ECHO_T}$CC" >&6
60235 -else
60236 - echo "$as_me:$LINENO: result: no" >&5
60237 -echo "${ECHO_T}no" >&6
60238 -fi
60239 -
60240 -fi
60241 -if test -z "$ac_cv_prog_CC"; then
60242 - ac_ct_CC=$CC
60243 - # Extract the first word of "cc", so it can be a program name with args.
60244 -set dummy cc; ac_word=$2
60245 -echo "$as_me:$LINENO: checking for $ac_word" >&5
60246 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
60247 -if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
60248 - echo $ECHO_N "(cached) $ECHO_C" >&6
60249 -else
60250 - if test -n "$ac_ct_CC"; then
60251 - ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
60252 -else
60253 -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
60254 -for as_dir in $PATH
60255 -do
60256 - IFS=$as_save_IFS
60257 - test -z "$as_dir" && as_dir=.
60258 - for ac_exec_ext in '' $ac_executable_extensions; do
60259 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
60260 - ac_cv_prog_ac_ct_CC="cc"
60261 - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
60262 - break 2
60263 - fi
60264 -done
60265 -done
60266 -
60267 -fi
60268 -fi
60269 -ac_ct_CC=$ac_cv_prog_ac_ct_CC
60270 -if test -n "$ac_ct_CC"; then
60271 - echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
60272 -echo "${ECHO_T}$ac_ct_CC" >&6
60273 + { echo "$as_me:$LINENO: result: $CC" >&5
60274 +echo "${ECHO_T}$CC" >&6; }
60275 else
60276 - echo "$as_me:$LINENO: result: no" >&5
60277 -echo "${ECHO_T}no" >&6
60278 + { echo "$as_me:$LINENO: result: no" >&5
60279 +echo "${ECHO_T}no" >&6; }
60280 fi
60281
60282 - CC=$ac_ct_CC
60283 -else
60284 - CC="$ac_cv_prog_CC"
60285 -fi
60286
60287 + fi
60288 fi
60289 if test -z "$CC"; then
60290 # Extract the first word of "cc", so it can be a program name with args.
60291 set dummy cc; ac_word=$2
60292 -echo "$as_me:$LINENO: checking for $ac_word" >&5
60293 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
60294 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
60295 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
60296 if test "${ac_cv_prog_CC+set}" = set; then
60297 echo $ECHO_N "(cached) $ECHO_C" >&6
60298 else
60299 @@ -4480,7 +5002,7 @@ do
60300 IFS=$as_save_IFS
60301 test -z "$as_dir" && as_dir=.
60302 for ac_exec_ext in '' $ac_executable_extensions; do
60303 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
60304 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
60305 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
60306 ac_prog_rejected=yes
60307 continue
60308 @@ -4491,6 +5013,7 @@ do
60309 fi
60310 done
60311 done
60312 +IFS=$as_save_IFS
60313
60314 if test $ac_prog_rejected = yes; then
60315 # We found a bogon in the path, so make sure we never use it.
60316 @@ -4508,22 +5031,23 @@ fi
60317 fi
60318 CC=$ac_cv_prog_CC
60319 if test -n "$CC"; then
60320 - echo "$as_me:$LINENO: result: $CC" >&5
60321 -echo "${ECHO_T}$CC" >&6
60322 + { echo "$as_me:$LINENO: result: $CC" >&5
60323 +echo "${ECHO_T}$CC" >&6; }
60324 else
60325 - echo "$as_me:$LINENO: result: no" >&5
60326 -echo "${ECHO_T}no" >&6
60327 + { echo "$as_me:$LINENO: result: no" >&5
60328 +echo "${ECHO_T}no" >&6; }
60329 fi
60330
60331 +
60332 fi
60333 if test -z "$CC"; then
60334 if test -n "$ac_tool_prefix"; then
60335 - for ac_prog in cl
60336 + for ac_prog in cl.exe
60337 do
60338 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
60339 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
60340 -echo "$as_me:$LINENO: checking for $ac_word" >&5
60341 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
60342 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
60343 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
60344 if test "${ac_cv_prog_CC+set}" = set; then
60345 echo $ECHO_N "(cached) $ECHO_C" >&6
60346 else
60347 @@ -4536,36 +5060,38 @@ do
60348 IFS=$as_save_IFS
60349 test -z "$as_dir" && as_dir=.
60350 for ac_exec_ext in '' $ac_executable_extensions; do
60351 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
60352 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
60353 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
60354 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
60355 break 2
60356 fi
60357 done
60358 done
60359 +IFS=$as_save_IFS
60360
60361 fi
60362 fi
60363 CC=$ac_cv_prog_CC
60364 if test -n "$CC"; then
60365 - echo "$as_me:$LINENO: result: $CC" >&5
60366 -echo "${ECHO_T}$CC" >&6
60367 + { echo "$as_me:$LINENO: result: $CC" >&5
60368 +echo "${ECHO_T}$CC" >&6; }
60369 else
60370 - echo "$as_me:$LINENO: result: no" >&5
60371 -echo "${ECHO_T}no" >&6
60372 + { echo "$as_me:$LINENO: result: no" >&5
60373 +echo "${ECHO_T}no" >&6; }
60374 fi
60375
60376 +
60377 test -n "$CC" && break
60378 done
60379 fi
60380 if test -z "$CC"; then
60381 ac_ct_CC=$CC
60382 - for ac_prog in cl
60383 + for ac_prog in cl.exe
60384 do
60385 # Extract the first word of "$ac_prog", so it can be a program name with args.
60386 set dummy $ac_prog; ac_word=$2
60387 -echo "$as_me:$LINENO: checking for $ac_word" >&5
60388 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
60389 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
60390 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
60391 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
60392 echo $ECHO_N "(cached) $ECHO_C" >&6
60393 else
60394 @@ -4578,29 +5104,45 @@ do
60395 IFS=$as_save_IFS
60396 test -z "$as_dir" && as_dir=.
60397 for ac_exec_ext in '' $ac_executable_extensions; do
60398 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
60399 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
60400 ac_cv_prog_ac_ct_CC="$ac_prog"
60401 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
60402 break 2
60403 fi
60404 done
60405 done
60406 +IFS=$as_save_IFS
60407
60408 fi
60409 fi
60410 ac_ct_CC=$ac_cv_prog_ac_ct_CC
60411 if test -n "$ac_ct_CC"; then
60412 - echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
60413 -echo "${ECHO_T}$ac_ct_CC" >&6
60414 + { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
60415 +echo "${ECHO_T}$ac_ct_CC" >&6; }
60416 else
60417 - echo "$as_me:$LINENO: result: no" >&5
60418 -echo "${ECHO_T}no" >&6
60419 + { echo "$as_me:$LINENO: result: no" >&5
60420 +echo "${ECHO_T}no" >&6; }
60421 fi
60422
60423 +
60424 test -n "$ac_ct_CC" && break
60425 done
60426
60427 - CC=$ac_ct_CC
60428 + if test "x$ac_ct_CC" = x; then
60429 + CC=""
60430 + else
60431 + case $cross_compiling:$ac_tool_warned in
60432 +yes:)
60433 +{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
60434 +whose name does not start with the host triplet. If you think this
60435 +configuration is useful to you, please write to autoconf@gnu.org." >&5
60436 +echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
60437 +whose name does not start with the host triplet. If you think this
60438 +configuration is useful to you, please write to autoconf@gnu.org." >&2;}
60439 +ac_tool_warned=yes ;;
60440 +esac
60441 + CC=$ac_ct_CC
60442 + fi
60443 fi
60444
60445 fi
60446 @@ -4613,27 +5155,41 @@ See \`config.log' for more details." >&2
60447 { (exit 1); exit 1; }; }
60448
60449 # Provide some information about the compiler.
60450 -echo "$as_me:$LINENO:" \
60451 - "checking for C compiler version" >&5
60452 +echo "$as_me:$LINENO: checking for C compiler version" >&5
60453 ac_compiler=`set X $ac_compile; echo $2`
60454 -{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
60455 - (eval $ac_compiler --version </dev/null >&5) 2>&5
60456 +{ (ac_try="$ac_compiler --version >&5"
60457 +case "(($ac_try" in
60458 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
60459 + *) ac_try_echo=$ac_try;;
60460 +esac
60461 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
60462 + (eval "$ac_compiler --version >&5") 2>&5
60463 ac_status=$?
60464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60465 (exit $ac_status); }
60466 -{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
60467 - (eval $ac_compiler -v </dev/null >&5) 2>&5
60468 +{ (ac_try="$ac_compiler -v >&5"
60469 +case "(($ac_try" in
60470 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
60471 + *) ac_try_echo=$ac_try;;
60472 +esac
60473 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
60474 + (eval "$ac_compiler -v >&5") 2>&5
60475 ac_status=$?
60476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60477 (exit $ac_status); }
60478 -{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
60479 - (eval $ac_compiler -V </dev/null >&5) 2>&5
60480 +{ (ac_try="$ac_compiler -V >&5"
60481 +case "(($ac_try" in
60482 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
60483 + *) ac_try_echo=$ac_try;;
60484 +esac
60485 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
60486 + (eval "$ac_compiler -V >&5") 2>&5
60487 ac_status=$?
60488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60489 (exit $ac_status); }
60490
60491 -echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
60492 -echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
60493 +{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
60494 +echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
60495 if test "${ac_cv_c_compiler_gnu+set}" = set; then
60496 echo $ECHO_N "(cached) $ECHO_C" >&6
60497 else
60498 @@ -4656,50 +5212,49 @@ main ()
60499 }
60500 _ACEOF
60501 rm -f conftest.$ac_objext
60502 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
60503 - (eval $ac_compile) 2>conftest.er1
60504 +if { (ac_try="$ac_compile"
60505 +case "(($ac_try" in
60506 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
60507 + *) ac_try_echo=$ac_try;;
60508 +esac
60509 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
60510 + (eval "$ac_compile") 2>conftest.er1
60511 ac_status=$?
60512 grep -v '^ *+' conftest.er1 >conftest.err
60513 rm -f conftest.er1
60514 cat conftest.err >&5
60515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60516 - (exit $ac_status); } &&
60517 - { ac_try='test -z "$ac_c_werror_flag"
60518 - || test ! -s conftest.err'
60519 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
60520 - (eval $ac_try) 2>&5
60521 - ac_status=$?
60522 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
60523 - (exit $ac_status); }; } &&
60524 - { ac_try='test -s conftest.$ac_objext'
60525 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
60526 - (eval $ac_try) 2>&5
60527 - ac_status=$?
60528 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
60529 - (exit $ac_status); }; }; then
60530 + (exit $ac_status); } && {
60531 + test -z "$ac_c_werror_flag" ||
60532 + test ! -s conftest.err
60533 + } && test -s conftest.$ac_objext; then
60534 ac_compiler_gnu=yes
60535 else
60536 echo "$as_me: failed program was:" >&5
60537 sed 's/^/| /' conftest.$ac_ext >&5
60538
60539 -ac_compiler_gnu=no
60540 + ac_compiler_gnu=no
60541 fi
60542 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
60543 +
60544 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
60545 ac_cv_c_compiler_gnu=$ac_compiler_gnu
60546
60547 fi
60548 -echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
60549 -echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
60550 +{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
60551 +echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
60552 GCC=`test $ac_compiler_gnu = yes && echo yes`
60553 ac_test_CFLAGS=${CFLAGS+set}
60554 ac_save_CFLAGS=$CFLAGS
60555 -CFLAGS="-g"
60556 -echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
60557 -echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
60558 +{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
60559 +echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
60560 if test "${ac_cv_prog_cc_g+set}" = set; then
60561 echo $ECHO_N "(cached) $ECHO_C" >&6
60562 else
60563 - cat >conftest.$ac_ext <<_ACEOF
60564 + ac_save_c_werror_flag=$ac_c_werror_flag
60565 + ac_c_werror_flag=yes
60566 + ac_cv_prog_cc_g=no
60567 + CFLAGS="-g"
60568 + cat >conftest.$ac_ext <<_ACEOF
60569 /* confdefs.h. */
60570 _ACEOF
60571 cat confdefs.h >>conftest.$ac_ext
60572 @@ -4715,59 +5270,139 @@ main ()
60573 }
60574 _ACEOF
60575 rm -f conftest.$ac_objext
60576 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
60577 - (eval $ac_compile) 2>conftest.er1
60578 +if { (ac_try="$ac_compile"
60579 +case "(($ac_try" in
60580 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
60581 + *) ac_try_echo=$ac_try;;
60582 +esac
60583 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
60584 + (eval "$ac_compile") 2>conftest.er1
60585 ac_status=$?
60586 grep -v '^ *+' conftest.er1 >conftest.err
60587 rm -f conftest.er1
60588 cat conftest.err >&5
60589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60590 - (exit $ac_status); } &&
60591 - { ac_try='test -z "$ac_c_werror_flag"
60592 - || test ! -s conftest.err'
60593 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
60594 - (eval $ac_try) 2>&5
60595 - ac_status=$?
60596 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
60597 - (exit $ac_status); }; } &&
60598 - { ac_try='test -s conftest.$ac_objext'
60599 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
60600 - (eval $ac_try) 2>&5
60601 - ac_status=$?
60602 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
60603 - (exit $ac_status); }; }; then
60604 + (exit $ac_status); } && {
60605 + test -z "$ac_c_werror_flag" ||
60606 + test ! -s conftest.err
60607 + } && test -s conftest.$ac_objext; then
60608 ac_cv_prog_cc_g=yes
60609 else
60610 echo "$as_me: failed program was:" >&5
60611 sed 's/^/| /' conftest.$ac_ext >&5
60612
60613 -ac_cv_prog_cc_g=no
60614 -fi
60615 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
60616 -fi
60617 -echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
60618 -echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
60619 -if test "$ac_test_CFLAGS" = set; then
60620 - CFLAGS=$ac_save_CFLAGS
60621 -elif test $ac_cv_prog_cc_g = yes; then
60622 - if test "$GCC" = yes; then
60623 - CFLAGS="-g -O2"
60624 - else
60625 - CFLAGS="-g"
60626 - fi
60627 -else
60628 - if test "$GCC" = yes; then
60629 - CFLAGS="-O2"
60630 - else
60631 - CFLAGS=
60632 - fi
60633 -fi
60634 -echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
60635 -echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
60636 -if test "${ac_cv_prog_cc_stdc+set}" = set; then
60637 - echo $ECHO_N "(cached) $ECHO_C" >&6
60638 -else
60639 - ac_cv_prog_cc_stdc=no
60640 + CFLAGS=""
60641 + cat >conftest.$ac_ext <<_ACEOF
60642 +/* confdefs.h. */
60643 +_ACEOF
60644 +cat confdefs.h >>conftest.$ac_ext
60645 +cat >>conftest.$ac_ext <<_ACEOF
60646 +/* end confdefs.h. */
60647 +
60648 +int
60649 +main ()
60650 +{
60651 +
60652 + ;
60653 + return 0;
60654 +}
60655 +_ACEOF
60656 +rm -f conftest.$ac_objext
60657 +if { (ac_try="$ac_compile"
60658 +case "(($ac_try" in
60659 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
60660 + *) ac_try_echo=$ac_try;;
60661 +esac
60662 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
60663 + (eval "$ac_compile") 2>conftest.er1
60664 + ac_status=$?
60665 + grep -v '^ *+' conftest.er1 >conftest.err
60666 + rm -f conftest.er1
60667 + cat conftest.err >&5
60668 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
60669 + (exit $ac_status); } && {
60670 + test -z "$ac_c_werror_flag" ||
60671 + test ! -s conftest.err
60672 + } && test -s conftest.$ac_objext; then
60673 + :
60674 +else
60675 + echo "$as_me: failed program was:" >&5
60676 +sed 's/^/| /' conftest.$ac_ext >&5
60677 +
60678 + ac_c_werror_flag=$ac_save_c_werror_flag
60679 + CFLAGS="-g"
60680 + cat >conftest.$ac_ext <<_ACEOF
60681 +/* confdefs.h. */
60682 +_ACEOF
60683 +cat confdefs.h >>conftest.$ac_ext
60684 +cat >>conftest.$ac_ext <<_ACEOF
60685 +/* end confdefs.h. */
60686 +
60687 +int
60688 +main ()
60689 +{
60690 +
60691 + ;
60692 + return 0;
60693 +}
60694 +_ACEOF
60695 +rm -f conftest.$ac_objext
60696 +if { (ac_try="$ac_compile"
60697 +case "(($ac_try" in
60698 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
60699 + *) ac_try_echo=$ac_try;;
60700 +esac
60701 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
60702 + (eval "$ac_compile") 2>conftest.er1
60703 + ac_status=$?
60704 + grep -v '^ *+' conftest.er1 >conftest.err
60705 + rm -f conftest.er1
60706 + cat conftest.err >&5
60707 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
60708 + (exit $ac_status); } && {
60709 + test -z "$ac_c_werror_flag" ||
60710 + test ! -s conftest.err
60711 + } && test -s conftest.$ac_objext; then
60712 + ac_cv_prog_cc_g=yes
60713 +else
60714 + echo "$as_me: failed program was:" >&5
60715 +sed 's/^/| /' conftest.$ac_ext >&5
60716 +
60717 +
60718 +fi
60719 +
60720 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
60721 +fi
60722 +
60723 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
60724 +fi
60725 +
60726 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
60727 + ac_c_werror_flag=$ac_save_c_werror_flag
60728 +fi
60729 +{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
60730 +echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
60731 +if test "$ac_test_CFLAGS" = set; then
60732 + CFLAGS=$ac_save_CFLAGS
60733 +elif test $ac_cv_prog_cc_g = yes; then
60734 + if test "$GCC" = yes; then
60735 + CFLAGS="-g -O2"
60736 + else
60737 + CFLAGS="-g"
60738 + fi
60739 +else
60740 + if test "$GCC" = yes; then
60741 + CFLAGS="-O2"
60742 + else
60743 + CFLAGS=
60744 + fi
60745 +fi
60746 +{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
60747 +echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
60748 +if test "${ac_cv_prog_cc_c89+set}" = set; then
60749 + echo $ECHO_N "(cached) $ECHO_C" >&6
60750 +else
60751 + ac_cv_prog_cc_c89=no
60752 ac_save_CC=$CC
60753 cat >conftest.$ac_ext <<_ACEOF
60754 /* confdefs.h. */
60755 @@ -4801,12 +5436,17 @@ static char *f (char * (*g) (char **, in
60756 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
60757 function prototypes and stuff, but not '\xHH' hex character constants.
60758 These don't provoke an error unfortunately, instead are silently treated
60759 - as 'x'. The following induces an error, until -std1 is added to get
60760 + as 'x'. The following induces an error, until -std is added to get
60761 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
60762 array size at least. It's necessary to write '\x00'==0 to get something
60763 - that's true only with -std1. */
60764 + that's true only with -std. */
60765 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
60766
60767 +/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
60768 + inside strings and character constants. */
60769 +#define FOO(x) 'x'
60770 +int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
60771 +
60772 int test (int i, double x);
60773 struct s1 {int (*f) (int a);};
60774 struct s2 {int (*f) (double a);};
60775 @@ -4821,205 +5461,57 @@ return f (e, argv, 0) != argv[0] || f
60776 return 0;
60777 }
60778 _ACEOF
60779 -# Don't try gcc -ansi; that turns off useful extensions and
60780 -# breaks some systems' header files.
60781 -# AIX -qlanglvl=ansi
60782 -# Ultrix and OSF/1 -std1
60783 -# HP-UX 10.20 and later -Ae
60784 -# HP-UX older versions -Aa -D_HPUX_SOURCE
60785 -# SVR4 -Xc -D__EXTENSIONS__
60786 -for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
60787 +for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
60788 + -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
60789 do
60790 CC="$ac_save_CC $ac_arg"
60791 rm -f conftest.$ac_objext
60792 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
60793 - (eval $ac_compile) 2>conftest.er1
60794 +if { (ac_try="$ac_compile"
60795 +case "(($ac_try" in
60796 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
60797 + *) ac_try_echo=$ac_try;;
60798 +esac
60799 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
60800 + (eval "$ac_compile") 2>conftest.er1
60801 ac_status=$?
60802 grep -v '^ *+' conftest.er1 >conftest.err
60803 rm -f conftest.er1
60804 cat conftest.err >&5
60805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60806 - (exit $ac_status); } &&
60807 - { ac_try='test -z "$ac_c_werror_flag"
60808 - || test ! -s conftest.err'
60809 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
60810 - (eval $ac_try) 2>&5
60811 - ac_status=$?
60812 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
60813 - (exit $ac_status); }; } &&
60814 - { ac_try='test -s conftest.$ac_objext'
60815 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
60816 - (eval $ac_try) 2>&5
60817 - ac_status=$?
60818 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
60819 - (exit $ac_status); }; }; then
60820 - ac_cv_prog_cc_stdc=$ac_arg
60821 -break
60822 + (exit $ac_status); } && {
60823 + test -z "$ac_c_werror_flag" ||
60824 + test ! -s conftest.err
60825 + } && test -s conftest.$ac_objext; then
60826 + ac_cv_prog_cc_c89=$ac_arg
60827 else
60828 echo "$as_me: failed program was:" >&5
60829 sed 's/^/| /' conftest.$ac_ext >&5
60830
60831 +
60832 fi
60833 -rm -f conftest.err conftest.$ac_objext
60834 +
60835 +rm -f core conftest.err conftest.$ac_objext
60836 + test "x$ac_cv_prog_cc_c89" != "xno" && break
60837 done
60838 -rm -f conftest.$ac_ext conftest.$ac_objext
60839 +rm -f conftest.$ac_ext
60840 CC=$ac_save_CC
60841
60842 fi
60843 -
60844 -case "x$ac_cv_prog_cc_stdc" in
60845 - x|xno)
60846 - echo "$as_me:$LINENO: result: none needed" >&5
60847 -echo "${ECHO_T}none needed" >&6 ;;
60848 +# AC_CACHE_VAL
60849 +case "x$ac_cv_prog_cc_c89" in
60850 + x)
60851 + { echo "$as_me:$LINENO: result: none needed" >&5
60852 +echo "${ECHO_T}none needed" >&6; } ;;
60853 + xno)
60854 + { echo "$as_me:$LINENO: result: unsupported" >&5
60855 +echo "${ECHO_T}unsupported" >&6; } ;;
60856 *)
60857 - echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
60858 -echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
60859 - CC="$CC $ac_cv_prog_cc_stdc" ;;
60860 + CC="$CC $ac_cv_prog_cc_c89"
60861 + { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
60862 +echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
60863 esac
60864
60865 -# Some people use a C++ compiler to compile C. Since we use `exit',
60866 -# in C++ we need to declare it. In case someone uses the same compiler
60867 -# for both compiling C and C++ we need to have the C++ compiler decide
60868 -# the declaration of exit, since it's the most demanding environment.
60869 -cat >conftest.$ac_ext <<_ACEOF
60870 -#ifndef __cplusplus
60871 - choke me
60872 -#endif
60873 -_ACEOF
60874 -rm -f conftest.$ac_objext
60875 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
60876 - (eval $ac_compile) 2>conftest.er1
60877 - ac_status=$?
60878 - grep -v '^ *+' conftest.er1 >conftest.err
60879 - rm -f conftest.er1
60880 - cat conftest.err >&5
60881 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
60882 - (exit $ac_status); } &&
60883 - { ac_try='test -z "$ac_c_werror_flag"
60884 - || test ! -s conftest.err'
60885 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
60886 - (eval $ac_try) 2>&5
60887 - ac_status=$?
60888 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
60889 - (exit $ac_status); }; } &&
60890 - { ac_try='test -s conftest.$ac_objext'
60891 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
60892 - (eval $ac_try) 2>&5
60893 - ac_status=$?
60894 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
60895 - (exit $ac_status); }; }; then
60896 - for ac_declaration in \
60897 - '' \
60898 - 'extern "C" void std::exit (int) throw (); using std::exit;' \
60899 - 'extern "C" void std::exit (int); using std::exit;' \
60900 - 'extern "C" void exit (int) throw ();' \
60901 - 'extern "C" void exit (int);' \
60902 - 'void exit (int);'
60903 -do
60904 - cat >conftest.$ac_ext <<_ACEOF
60905 -/* confdefs.h. */
60906 -_ACEOF
60907 -cat confdefs.h >>conftest.$ac_ext
60908 -cat >>conftest.$ac_ext <<_ACEOF
60909 -/* end confdefs.h. */
60910 -$ac_declaration
60911 -#include <stdlib.h>
60912 -int
60913 -main ()
60914 -{
60915 -exit (42);
60916 - ;
60917 - return 0;
60918 -}
60919 -_ACEOF
60920 -rm -f conftest.$ac_objext
60921 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
60922 - (eval $ac_compile) 2>conftest.er1
60923 - ac_status=$?
60924 - grep -v '^ *+' conftest.er1 >conftest.err
60925 - rm -f conftest.er1
60926 - cat conftest.err >&5
60927 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
60928 - (exit $ac_status); } &&
60929 - { ac_try='test -z "$ac_c_werror_flag"
60930 - || test ! -s conftest.err'
60931 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
60932 - (eval $ac_try) 2>&5
60933 - ac_status=$?
60934 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
60935 - (exit $ac_status); }; } &&
60936 - { ac_try='test -s conftest.$ac_objext'
60937 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
60938 - (eval $ac_try) 2>&5
60939 - ac_status=$?
60940 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
60941 - (exit $ac_status); }; }; then
60942 - :
60943 -else
60944 - echo "$as_me: failed program was:" >&5
60945 -sed 's/^/| /' conftest.$ac_ext >&5
60946 -
60947 -continue
60948 -fi
60949 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
60950 - cat >conftest.$ac_ext <<_ACEOF
60951 -/* confdefs.h. */
60952 -_ACEOF
60953 -cat confdefs.h >>conftest.$ac_ext
60954 -cat >>conftest.$ac_ext <<_ACEOF
60955 -/* end confdefs.h. */
60956 -$ac_declaration
60957 -int
60958 -main ()
60959 -{
60960 -exit (42);
60961 - ;
60962 - return 0;
60963 -}
60964 -_ACEOF
60965 -rm -f conftest.$ac_objext
60966 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
60967 - (eval $ac_compile) 2>conftest.er1
60968 - ac_status=$?
60969 - grep -v '^ *+' conftest.er1 >conftest.err
60970 - rm -f conftest.er1
60971 - cat conftest.err >&5
60972 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
60973 - (exit $ac_status); } &&
60974 - { ac_try='test -z "$ac_c_werror_flag"
60975 - || test ! -s conftest.err'
60976 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
60977 - (eval $ac_try) 2>&5
60978 - ac_status=$?
60979 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
60980 - (exit $ac_status); }; } &&
60981 - { ac_try='test -s conftest.$ac_objext'
60982 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
60983 - (eval $ac_try) 2>&5
60984 - ac_status=$?
60985 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
60986 - (exit $ac_status); }; }; then
60987 - break
60988 -else
60989 - echo "$as_me: failed program was:" >&5
60990 -sed 's/^/| /' conftest.$ac_ext >&5
60991 -
60992 -fi
60993 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
60994 -done
60995 -rm -f conftest*
60996 -if test -n "$ac_declaration"; then
60997 - echo '#ifdef __cplusplus' >>confdefs.h
60998 - echo $ac_declaration >>confdefs.h
60999 - echo '#endif' >>confdefs.h
61000 -fi
61001 -
61002 -else
61003 - echo "$as_me: failed program was:" >&5
61004 -sed 's/^/| /' conftest.$ac_ext >&5
61005
61006 -fi
61007 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
61008 ac_ext=c
61009 ac_cpp='$CPP $CPPFLAGS'
61010 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
61011 @@ -5039,8 +5531,8 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
61012 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
61013 # OS/2's system install, which has a completely different semantic
61014 # ./install, which can be erroneously created by make from ./install.sh.
61015 -echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
61016 -echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
61017 +{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
61018 +echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
61019 if test -z "$INSTALL"; then
61020 if test "${ac_cv_path_install+set}" = set; then
61021 echo $ECHO_N "(cached) $ECHO_C" >&6
61022 @@ -5062,7 +5554,7 @@ case $as_dir/ in
61023 # by default.
61024 for ac_prog in ginstall scoinst install; do
61025 for ac_exec_ext in '' $ac_executable_extensions; do
61026 - if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
61027 + if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
61028 if test $ac_prog = install &&
61029 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
61030 # AIX install. It has an incompatible calling convention.
61031 @@ -5081,21 +5573,22 @@ case $as_dir/ in
61032 ;;
61033 esac
61034 done
61035 +IFS=$as_save_IFS
61036
61037
61038 fi
61039 if test "${ac_cv_path_install+set}" = set; then
61040 INSTALL=$ac_cv_path_install
61041 else
61042 - # As a last resort, use the slow shell script. We don't cache a
61043 - # path for INSTALL within a source directory, because that will
61044 + # As a last resort, use the slow shell script. Don't cache a
61045 + # value for INSTALL within a source directory, because that will
61046 # break other packages using the cache if that directory is
61047 - # removed, or if the path is relative.
61048 + # removed, or if the value is a relative name.
61049 INSTALL=$ac_install_sh
61050 fi
61051 fi
61052 -echo "$as_me:$LINENO: result: $INSTALL" >&5
61053 -echo "${ECHO_T}$INSTALL" >&6
61054 +{ echo "$as_me:$LINENO: result: $INSTALL" >&5
61055 +echo "${ECHO_T}$INSTALL" >&6; }
61056
61057 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
61058 # It thinks the first close brace ends the variable substitution.
61059 @@ -5110,8 +5603,8 @@ ALL_LINGUAS="fr sv tr es da vi zh_CN"
61060 if test -n "$ac_tool_prefix"; then
61061 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
61062 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
61063 -echo "$as_me:$LINENO: checking for $ac_word" >&5
61064 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
61065 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
61066 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
61067 if test "${ac_cv_prog_RANLIB+set}" = set; then
61068 echo $ECHO_N "(cached) $ECHO_C" >&6
61069 else
61070 @@ -5124,32 +5617,34 @@ do
61071 IFS=$as_save_IFS
61072 test -z "$as_dir" && as_dir=.
61073 for ac_exec_ext in '' $ac_executable_extensions; do
61074 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
61075 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
61076 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
61077 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
61078 break 2
61079 fi
61080 done
61081 done
61082 +IFS=$as_save_IFS
61083
61084 fi
61085 fi
61086 RANLIB=$ac_cv_prog_RANLIB
61087 if test -n "$RANLIB"; then
61088 - echo "$as_me:$LINENO: result: $RANLIB" >&5
61089 -echo "${ECHO_T}$RANLIB" >&6
61090 + { echo "$as_me:$LINENO: result: $RANLIB" >&5
61091 +echo "${ECHO_T}$RANLIB" >&6; }
61092 else
61093 - echo "$as_me:$LINENO: result: no" >&5
61094 -echo "${ECHO_T}no" >&6
61095 + { echo "$as_me:$LINENO: result: no" >&5
61096 +echo "${ECHO_T}no" >&6; }
61097 fi
61098
61099 +
61100 fi
61101 if test -z "$ac_cv_prog_RANLIB"; then
61102 ac_ct_RANLIB=$RANLIB
61103 # Extract the first word of "ranlib", so it can be a program name with args.
61104 set dummy ranlib; ac_word=$2
61105 -echo "$as_me:$LINENO: checking for $ac_word" >&5
61106 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
61107 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
61108 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
61109 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
61110 echo $ECHO_N "(cached) $ECHO_C" >&6
61111 else
61112 @@ -5162,27 +5657,41 @@ do
61113 IFS=$as_save_IFS
61114 test -z "$as_dir" && as_dir=.
61115 for ac_exec_ext in '' $ac_executable_extensions; do
61116 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
61117 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
61118 ac_cv_prog_ac_ct_RANLIB="ranlib"
61119 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
61120 break 2
61121 fi
61122 done
61123 done
61124 +IFS=$as_save_IFS
61125
61126 - test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
61127 fi
61128 fi
61129 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
61130 if test -n "$ac_ct_RANLIB"; then
61131 - echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
61132 -echo "${ECHO_T}$ac_ct_RANLIB" >&6
61133 + { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
61134 +echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
61135 else
61136 - echo "$as_me:$LINENO: result: no" >&5
61137 -echo "${ECHO_T}no" >&6
61138 + { echo "$as_me:$LINENO: result: no" >&5
61139 +echo "${ECHO_T}no" >&6; }
61140 fi
61141
61142 - RANLIB=$ac_ct_RANLIB
61143 + if test "x$ac_ct_RANLIB" = x; then
61144 + RANLIB=":"
61145 + else
61146 + case $cross_compiling:$ac_tool_warned in
61147 +yes:)
61148 +{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
61149 +whose name does not start with the host triplet. If you think this
61150 +configuration is useful to you, please write to autoconf@gnu.org." >&5
61151 +echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
61152 +whose name does not start with the host triplet. If you think this
61153 +configuration is useful to you, please write to autoconf@gnu.org." >&2;}
61154 +ac_tool_warned=yes ;;
61155 +esac
61156 + RANLIB=$ac_ct_RANLIB
61157 + fi
61158 else
61159 RANLIB="$ac_cv_prog_RANLIB"
61160 fi
61161 @@ -5192,8 +5701,8 @@ ac_cpp='$CPP $CPPFLAGS'
61162 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
61163 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
61164 ac_compiler_gnu=$ac_cv_c_compiler_gnu
61165 -echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
61166 -echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
61167 +{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
61168 +echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
61169 # On Suns, sometimes $CPP names a directory.
61170 if test -n "$CPP" && test -d "$CPP"; then
61171 CPP=
61172 @@ -5227,24 +5736,22 @@ cat >>conftest.$ac_ext <<_ACEOF
61173 #endif
61174 Syntax error
61175 _ACEOF
61176 -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
61177 - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
61178 +if { (ac_try="$ac_cpp conftest.$ac_ext"
61179 +case "(($ac_try" in
61180 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
61181 + *) ac_try_echo=$ac_try;;
61182 +esac
61183 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
61184 + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
61185 ac_status=$?
61186 grep -v '^ *+' conftest.er1 >conftest.err
61187 rm -f conftest.er1
61188 cat conftest.err >&5
61189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61190 - (exit $ac_status); } >/dev/null; then
61191 - if test -s conftest.err; then
61192 - ac_cpp_err=$ac_c_preproc_warn_flag
61193 - ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
61194 - else
61195 - ac_cpp_err=
61196 - fi
61197 -else
61198 - ac_cpp_err=yes
61199 -fi
61200 -if test -z "$ac_cpp_err"; then
61201 + (exit $ac_status); } >/dev/null && {
61202 + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
61203 + test ! -s conftest.err
61204 + }; then
61205 :
61206 else
61207 echo "$as_me: failed program was:" >&5
61208 @@ -5253,9 +5760,10 @@ sed 's/^/| /' conftest.$ac_ext >&5
61209 # Broken: fails on valid input.
61210 continue
61211 fi
61212 +
61213 rm -f conftest.err conftest.$ac_ext
61214
61215 - # OK, works on sane cases. Now check whether non-existent headers
61216 + # OK, works on sane cases. Now check whether nonexistent headers
61217 # can be detected and how.
61218 cat >conftest.$ac_ext <<_ACEOF
61219 /* confdefs.h. */
61220 @@ -5265,24 +5773,22 @@ cat >>conftest.$ac_ext <<_ACEOF
61221 /* end confdefs.h. */
61222 #include <ac_nonexistent.h>
61223 _ACEOF
61224 -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
61225 - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
61226 +if { (ac_try="$ac_cpp conftest.$ac_ext"
61227 +case "(($ac_try" in
61228 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
61229 + *) ac_try_echo=$ac_try;;
61230 +esac
61231 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
61232 + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
61233 ac_status=$?
61234 grep -v '^ *+' conftest.er1 >conftest.err
61235 rm -f conftest.er1
61236 cat conftest.err >&5
61237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61238 - (exit $ac_status); } >/dev/null; then
61239 - if test -s conftest.err; then
61240 - ac_cpp_err=$ac_c_preproc_warn_flag
61241 - ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
61242 - else
61243 - ac_cpp_err=
61244 - fi
61245 -else
61246 - ac_cpp_err=yes
61247 -fi
61248 -if test -z "$ac_cpp_err"; then
61249 + (exit $ac_status); } >/dev/null && {
61250 + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
61251 + test ! -s conftest.err
61252 + }; then
61253 # Broken: success on invalid input.
61254 continue
61255 else
61256 @@ -5293,6 +5799,7 @@ sed 's/^/| /' conftest.$ac_ext >&5
61257 ac_preproc_ok=:
61258 break
61259 fi
61260 +
61261 rm -f conftest.err conftest.$ac_ext
61262
61263 done
61264 @@ -5310,8 +5817,8 @@ fi
61265 else
61266 ac_cv_prog_CPP=$CPP
61267 fi
61268 -echo "$as_me:$LINENO: result: $CPP" >&5
61269 -echo "${ECHO_T}$CPP" >&6
61270 +{ echo "$as_me:$LINENO: result: $CPP" >&5
61271 +echo "${ECHO_T}$CPP" >&6; }
61272 ac_preproc_ok=false
61273 for ac_c_preproc_warn_flag in '' yes
61274 do
61275 @@ -5334,24 +5841,22 @@ cat >>conftest.$ac_ext <<_ACEOF
61276 #endif
61277 Syntax error
61278 _ACEOF
61279 -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
61280 - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
61281 +if { (ac_try="$ac_cpp conftest.$ac_ext"
61282 +case "(($ac_try" in
61283 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
61284 + *) ac_try_echo=$ac_try;;
61285 +esac
61286 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
61287 + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
61288 ac_status=$?
61289 grep -v '^ *+' conftest.er1 >conftest.err
61290 rm -f conftest.er1
61291 cat conftest.err >&5
61292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61293 - (exit $ac_status); } >/dev/null; then
61294 - if test -s conftest.err; then
61295 - ac_cpp_err=$ac_c_preproc_warn_flag
61296 - ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
61297 - else
61298 - ac_cpp_err=
61299 - fi
61300 -else
61301 - ac_cpp_err=yes
61302 -fi
61303 -if test -z "$ac_cpp_err"; then
61304 + (exit $ac_status); } >/dev/null && {
61305 + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
61306 + test ! -s conftest.err
61307 + }; then
61308 :
61309 else
61310 echo "$as_me: failed program was:" >&5
61311 @@ -5360,9 +5865,10 @@ sed 's/^/| /' conftest.$ac_ext >&5
61312 # Broken: fails on valid input.
61313 continue
61314 fi
61315 +
61316 rm -f conftest.err conftest.$ac_ext
61317
61318 - # OK, works on sane cases. Now check whether non-existent headers
61319 + # OK, works on sane cases. Now check whether nonexistent headers
61320 # can be detected and how.
61321 cat >conftest.$ac_ext <<_ACEOF
61322 /* confdefs.h. */
61323 @@ -5372,24 +5878,22 @@ cat >>conftest.$ac_ext <<_ACEOF
61324 /* end confdefs.h. */
61325 #include <ac_nonexistent.h>
61326 _ACEOF
61327 -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
61328 - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
61329 +if { (ac_try="$ac_cpp conftest.$ac_ext"
61330 +case "(($ac_try" in
61331 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
61332 + *) ac_try_echo=$ac_try;;
61333 +esac
61334 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
61335 + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
61336 ac_status=$?
61337 grep -v '^ *+' conftest.er1 >conftest.err
61338 rm -f conftest.er1
61339 cat conftest.err >&5
61340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61341 - (exit $ac_status); } >/dev/null; then
61342 - if test -s conftest.err; then
61343 - ac_cpp_err=$ac_c_preproc_warn_flag
61344 - ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
61345 - else
61346 - ac_cpp_err=
61347 - fi
61348 -else
61349 - ac_cpp_err=yes
61350 -fi
61351 -if test -z "$ac_cpp_err"; then
61352 + (exit $ac_status); } >/dev/null && {
61353 + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
61354 + test ! -s conftest.err
61355 + }; then
61356 # Broken: success on invalid input.
61357 continue
61358 else
61359 @@ -5400,6 +5904,7 @@ sed 's/^/| /' conftest.$ac_ext >&5
61360 ac_preproc_ok=:
61361 break
61362 fi
61363 +
61364 rm -f conftest.err conftest.$ac_ext
61365
61366 done
61367 @@ -5422,79 +5927,222 @@ ac_link='$CC -o conftest$ac_exeext $CFLA
61368 ac_compiler_gnu=$ac_cv_c_compiler_gnu
61369
61370
61371 -echo "$as_me:$LINENO: checking for egrep" >&5
61372 -echo $ECHO_N "checking for egrep... $ECHO_C" >&6
61373 -if test "${ac_cv_prog_egrep+set}" = set; then
61374 +{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
61375 +echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
61376 +if test "${ac_cv_path_GREP+set}" = set; then
61377 + echo $ECHO_N "(cached) $ECHO_C" >&6
61378 +else
61379 + # Extract the first word of "grep ggrep" to use in msg output
61380 +if test -z "$GREP"; then
61381 +set dummy grep ggrep; ac_prog_name=$2
61382 +if test "${ac_cv_path_GREP+set}" = set; then
61383 echo $ECHO_N "(cached) $ECHO_C" >&6
61384 else
61385 - if echo a | (grep -E '(a|b)') >/dev/null 2>&1
61386 - then ac_cv_prog_egrep='grep -E'
61387 - else ac_cv_prog_egrep='egrep'
61388 + ac_path_GREP_found=false
61389 +# Loop through the user's path and test for each of PROGNAME-LIST
61390 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
61391 +for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
61392 +do
61393 + IFS=$as_save_IFS
61394 + test -z "$as_dir" && as_dir=.
61395 + for ac_prog in grep ggrep; do
61396 + for ac_exec_ext in '' $ac_executable_extensions; do
61397 + ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
61398 + { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
61399 + # Check for GNU ac_path_GREP and select it if it is found.
61400 + # Check for GNU $ac_path_GREP
61401 +case `"$ac_path_GREP" --version 2>&1` in
61402 +*GNU*)
61403 + ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
61404 +*)
61405 + ac_count=0
61406 + echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
61407 + while :
61408 + do
61409 + cat "conftest.in" "conftest.in" >"conftest.tmp"
61410 + mv "conftest.tmp" "conftest.in"
61411 + cp "conftest.in" "conftest.nl"
61412 + echo 'GREP' >> "conftest.nl"
61413 + "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
61414 + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
61415 + ac_count=`expr $ac_count + 1`
61416 + if test $ac_count -gt ${ac_path_GREP_max-0}; then
61417 + # Best one so far, save it but keep looking for a better one
61418 + ac_cv_path_GREP="$ac_path_GREP"
61419 + ac_path_GREP_max=$ac_count
61420 fi
61421 -fi
61422 -echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
61423 -echo "${ECHO_T}$ac_cv_prog_egrep" >&6
61424 - EGREP=$ac_cv_prog_egrep
61425 + # 10*(2^10) chars as input seems more than enough
61426 + test $ac_count -gt 10 && break
61427 + done
61428 + rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
61429 +esac
61430
61431
61432 -echo "$as_me:$LINENO: checking for ANSI C header files" >&5
61433 -echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
61434 -if test "${ac_cv_header_stdc+set}" = set; then
61435 - echo $ECHO_N "(cached) $ECHO_C" >&6
61436 -else
61437 - cat >conftest.$ac_ext <<_ACEOF
61438 -/* confdefs.h. */
61439 -_ACEOF
61440 -cat confdefs.h >>conftest.$ac_ext
61441 -cat >>conftest.$ac_ext <<_ACEOF
61442 -/* end confdefs.h. */
61443 -#include <stdlib.h>
61444 -#include <stdarg.h>
61445 -#include <string.h>
61446 -#include <float.h>
61447 + $ac_path_GREP_found && break 3
61448 + done
61449 +done
61450
61451 -int
61452 -main ()
61453 -{
61454 +done
61455 +IFS=$as_save_IFS
61456
61457 - ;
61458 - return 0;
61459 -}
61460 -_ACEOF
61461 -rm -f conftest.$ac_objext
61462 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
61463 - (eval $ac_compile) 2>conftest.er1
61464 - ac_status=$?
61465 - grep -v '^ *+' conftest.er1 >conftest.err
61466 - rm -f conftest.er1
61467 - cat conftest.err >&5
61468 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
61469 - (exit $ac_status); } &&
61470 - { ac_try='test -z "$ac_c_werror_flag"
61471 - || test ! -s conftest.err'
61472 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
61473 - (eval $ac_try) 2>&5
61474 - ac_status=$?
61475 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
61476 - (exit $ac_status); }; } &&
61477 - { ac_try='test -s conftest.$ac_objext'
61478 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
61479 - (eval $ac_try) 2>&5
61480 - ac_status=$?
61481 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
61482 - (exit $ac_status); }; }; then
61483 - ac_cv_header_stdc=yes
61484 -else
61485 - echo "$as_me: failed program was:" >&5
61486 -sed 's/^/| /' conftest.$ac_ext >&5
61487
61488 -ac_cv_header_stdc=no
61489 fi
61490 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
61491
61492 -if test $ac_cv_header_stdc = yes; then
61493 - # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
61494 - cat >conftest.$ac_ext <<_ACEOF
61495 +GREP="$ac_cv_path_GREP"
61496 +if test -z "$GREP"; then
61497 + { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
61498 +echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
61499 + { (exit 1); exit 1; }; }
61500 +fi
61501 +
61502 +else
61503 + ac_cv_path_GREP=$GREP
61504 +fi
61505 +
61506 +
61507 +fi
61508 +{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
61509 +echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
61510 + GREP="$ac_cv_path_GREP"
61511 +
61512 +
61513 +{ echo "$as_me:$LINENO: checking for egrep" >&5
61514 +echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
61515 +if test "${ac_cv_path_EGREP+set}" = set; then
61516 + echo $ECHO_N "(cached) $ECHO_C" >&6
61517 +else
61518 + if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
61519 + then ac_cv_path_EGREP="$GREP -E"
61520 + else
61521 + # Extract the first word of "egrep" to use in msg output
61522 +if test -z "$EGREP"; then
61523 +set dummy egrep; ac_prog_name=$2
61524 +if test "${ac_cv_path_EGREP+set}" = set; then
61525 + echo $ECHO_N "(cached) $ECHO_C" >&6
61526 +else
61527 + ac_path_EGREP_found=false
61528 +# Loop through the user's path and test for each of PROGNAME-LIST
61529 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
61530 +for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
61531 +do
61532 + IFS=$as_save_IFS
61533 + test -z "$as_dir" && as_dir=.
61534 + for ac_prog in egrep; do
61535 + for ac_exec_ext in '' $ac_executable_extensions; do
61536 + ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
61537 + { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
61538 + # Check for GNU ac_path_EGREP and select it if it is found.
61539 + # Check for GNU $ac_path_EGREP
61540 +case `"$ac_path_EGREP" --version 2>&1` in
61541 +*GNU*)
61542 + ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
61543 +*)
61544 + ac_count=0
61545 + echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
61546 + while :
61547 + do
61548 + cat "conftest.in" "conftest.in" >"conftest.tmp"
61549 + mv "conftest.tmp" "conftest.in"
61550 + cp "conftest.in" "conftest.nl"
61551 + echo 'EGREP' >> "conftest.nl"
61552 + "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
61553 + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
61554 + ac_count=`expr $ac_count + 1`
61555 + if test $ac_count -gt ${ac_path_EGREP_max-0}; then
61556 + # Best one so far, save it but keep looking for a better one
61557 + ac_cv_path_EGREP="$ac_path_EGREP"
61558 + ac_path_EGREP_max=$ac_count
61559 + fi
61560 + # 10*(2^10) chars as input seems more than enough
61561 + test $ac_count -gt 10 && break
61562 + done
61563 + rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
61564 +esac
61565 +
61566 +
61567 + $ac_path_EGREP_found && break 3
61568 + done
61569 +done
61570 +
61571 +done
61572 +IFS=$as_save_IFS
61573 +
61574 +
61575 +fi
61576 +
61577 +EGREP="$ac_cv_path_EGREP"
61578 +if test -z "$EGREP"; then
61579 + { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
61580 +echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
61581 + { (exit 1); exit 1; }; }
61582 +fi
61583 +
61584 +else
61585 + ac_cv_path_EGREP=$EGREP
61586 +fi
61587 +
61588 +
61589 + fi
61590 +fi
61591 +{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
61592 +echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
61593 + EGREP="$ac_cv_path_EGREP"
61594 +
61595 +
61596 +{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
61597 +echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
61598 +if test "${ac_cv_header_stdc+set}" = set; then
61599 + echo $ECHO_N "(cached) $ECHO_C" >&6
61600 +else
61601 + cat >conftest.$ac_ext <<_ACEOF
61602 +/* confdefs.h. */
61603 +_ACEOF
61604 +cat confdefs.h >>conftest.$ac_ext
61605 +cat >>conftest.$ac_ext <<_ACEOF
61606 +/* end confdefs.h. */
61607 +#include <stdlib.h>
61608 +#include <stdarg.h>
61609 +#include <string.h>
61610 +#include <float.h>
61611 +
61612 +int
61613 +main ()
61614 +{
61615 +
61616 + ;
61617 + return 0;
61618 +}
61619 +_ACEOF
61620 +rm -f conftest.$ac_objext
61621 +if { (ac_try="$ac_compile"
61622 +case "(($ac_try" in
61623 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
61624 + *) ac_try_echo=$ac_try;;
61625 +esac
61626 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
61627 + (eval "$ac_compile") 2>conftest.er1
61628 + ac_status=$?
61629 + grep -v '^ *+' conftest.er1 >conftest.err
61630 + rm -f conftest.er1
61631 + cat conftest.err >&5
61632 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
61633 + (exit $ac_status); } && {
61634 + test -z "$ac_c_werror_flag" ||
61635 + test ! -s conftest.err
61636 + } && test -s conftest.$ac_objext; then
61637 + ac_cv_header_stdc=yes
61638 +else
61639 + echo "$as_me: failed program was:" >&5
61640 +sed 's/^/| /' conftest.$ac_ext >&5
61641 +
61642 + ac_cv_header_stdc=no
61643 +fi
61644 +
61645 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
61646 +
61647 +if test $ac_cv_header_stdc = yes; then
61648 + # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
61649 + cat >conftest.$ac_ext <<_ACEOF
61650 /* confdefs.h. */
61651 _ACEOF
61652 cat confdefs.h >>conftest.$ac_ext
61653 @@ -5546,6 +6194,7 @@ cat confdefs.h >>conftest.$ac_ext
61654 cat >>conftest.$ac_ext <<_ACEOF
61655 /* end confdefs.h. */
61656 #include <ctype.h>
61657 +#include <stdlib.h>
61658 #if ((' ' & 0x0FF) == 0x020)
61659 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
61660 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
61661 @@ -5565,18 +6214,27 @@ main ()
61662 for (i = 0; i < 256; i++)
61663 if (XOR (islower (i), ISLOWER (i))
61664 || toupper (i) != TOUPPER (i))
61665 - exit(2);
61666 - exit (0);
61667 + return 2;
61668 + return 0;
61669 }
61670 _ACEOF
61671 rm -f conftest$ac_exeext
61672 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
61673 - (eval $ac_link) 2>&5
61674 +if { (ac_try="$ac_link"
61675 +case "(($ac_try" in
61676 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
61677 + *) ac_try_echo=$ac_try;;
61678 +esac
61679 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
61680 + (eval "$ac_link") 2>&5
61681 ac_status=$?
61682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61683 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
61684 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
61685 - (eval $ac_try) 2>&5
61686 + { (case "(($ac_try" in
61687 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
61688 + *) ac_try_echo=$ac_try;;
61689 +esac
61690 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
61691 + (eval "$ac_try") 2>&5
61692 ac_status=$?
61693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61694 (exit $ac_status); }; }; then
61695 @@ -5589,12 +6247,14 @@ sed 's/^/| /' conftest.$ac_ext >&5
61696 ( exit $ac_status )
61697 ac_cv_header_stdc=no
61698 fi
61699 -rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
61700 +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
61701 fi
61702 +
61703 +
61704 fi
61705 fi
61706 -echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
61707 -echo "${ECHO_T}$ac_cv_header_stdc" >&6
61708 +{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
61709 +echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
61710 if test $ac_cv_header_stdc = yes; then
61711
61712 cat >>confdefs.h <<\_ACEOF
61713 @@ -5603,8 +6263,8 @@ _ACEOF
61714
61715 fi
61716
61717 -echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
61718 -echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
61719 +{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
61720 +echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
61721 if test "${ac_cv_c_const+set}" = set; then
61722 echo $ECHO_N "(cached) $ECHO_C" >&6
61723 else
61724 @@ -5622,10 +6282,10 @@ main ()
61725 #ifndef __cplusplus
61726 /* Ultrix mips cc rejects this. */
61727 typedef int charset[2];
61728 - const charset x;
61729 + const charset cs;
61730 /* SunOS 4.1.1 cc rejects this. */
61731 - char const *const *ccp;
61732 - char **p;
61733 + char const *const *pcpcc;
61734 + char **ppc;
61735 /* NEC SVR4.0.2 mips cc rejects this. */
61736 struct point {int x, y;};
61737 static struct point const zero = {0,0};
61738 @@ -5634,16 +6294,17 @@ main ()
61739 an arm of an if-expression whose if-part is not a constant
61740 expression */
61741 const char *g = "string";
61742 - ccp = &g + (g ? g-g : 0);
61743 + pcpcc = &g + (g ? g-g : 0);
61744 /* HPUX 7.0 cc rejects these. */
61745 - ++ccp;
61746 - p = (char**) ccp;
61747 - ccp = (char const *const *) p;
61748 + ++pcpcc;
61749 + ppc = (char**) pcpcc;
61750 + pcpcc = (char const *const *) ppc;
61751 { /* SCO 3.2v4 cc rejects this. */
61752 char *t;
61753 char const *s = 0 ? (char *) 0 : (char const *) 0;
61754
61755 *t++ = 0;
61756 + if (s) return 0;
61757 }
61758 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
61759 int x[] = {25, 17};
61760 @@ -5662,7 +6323,9 @@ main ()
61761 }
61762 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
61763 const int foo = 10;
61764 + if (!foo) return 0;
61765 }
61766 + return !cs[0] && !zero.x;
61767 #endif
61768
61769 ;
61770 @@ -5670,38 +6333,34 @@ main ()
61771 }
61772 _ACEOF
61773 rm -f conftest.$ac_objext
61774 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
61775 - (eval $ac_compile) 2>conftest.er1
61776 +if { (ac_try="$ac_compile"
61777 +case "(($ac_try" in
61778 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
61779 + *) ac_try_echo=$ac_try;;
61780 +esac
61781 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
61782 + (eval "$ac_compile") 2>conftest.er1
61783 ac_status=$?
61784 grep -v '^ *+' conftest.er1 >conftest.err
61785 rm -f conftest.er1
61786 cat conftest.err >&5
61787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61788 - (exit $ac_status); } &&
61789 - { ac_try='test -z "$ac_c_werror_flag"
61790 - || test ! -s conftest.err'
61791 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
61792 - (eval $ac_try) 2>&5
61793 - ac_status=$?
61794 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
61795 - (exit $ac_status); }; } &&
61796 - { ac_try='test -s conftest.$ac_objext'
61797 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
61798 - (eval $ac_try) 2>&5
61799 - ac_status=$?
61800 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
61801 - (exit $ac_status); }; }; then
61802 + (exit $ac_status); } && {
61803 + test -z "$ac_c_werror_flag" ||
61804 + test ! -s conftest.err
61805 + } && test -s conftest.$ac_objext; then
61806 ac_cv_c_const=yes
61807 else
61808 echo "$as_me: failed program was:" >&5
61809 sed 's/^/| /' conftest.$ac_ext >&5
61810
61811 -ac_cv_c_const=no
61812 + ac_cv_c_const=no
61813 fi
61814 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
61815 +
61816 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
61817 fi
61818 -echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
61819 -echo "${ECHO_T}$ac_cv_c_const" >&6
61820 +{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
61821 +echo "${ECHO_T}$ac_cv_c_const" >&6; }
61822 if test $ac_cv_c_const = no; then
61823
61824 cat >>confdefs.h <<\_ACEOF
61825 @@ -5710,8 +6369,8 @@ _ACEOF
61826
61827 fi
61828
61829 -echo "$as_me:$LINENO: checking for inline" >&5
61830 -echo $ECHO_N "checking for inline... $ECHO_C" >&6
61831 +{ echo "$as_me:$LINENO: checking for inline" >&5
61832 +echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
61833 if test "${ac_cv_c_inline+set}" = set; then
61834 echo $ECHO_N "(cached) $ECHO_C" >&6
61835 else
61836 @@ -5731,39 +6390,37 @@ $ac_kw foo_t foo () {return 0; }
61837
61838 _ACEOF
61839 rm -f conftest.$ac_objext
61840 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
61841 - (eval $ac_compile) 2>conftest.er1
61842 +if { (ac_try="$ac_compile"
61843 +case "(($ac_try" in
61844 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
61845 + *) ac_try_echo=$ac_try;;
61846 +esac
61847 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
61848 + (eval "$ac_compile") 2>conftest.er1
61849 ac_status=$?
61850 grep -v '^ *+' conftest.er1 >conftest.err
61851 rm -f conftest.er1
61852 cat conftest.err >&5
61853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61854 - (exit $ac_status); } &&
61855 - { ac_try='test -z "$ac_c_werror_flag"
61856 - || test ! -s conftest.err'
61857 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
61858 - (eval $ac_try) 2>&5
61859 - ac_status=$?
61860 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
61861 - (exit $ac_status); }; } &&
61862 - { ac_try='test -s conftest.$ac_objext'
61863 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
61864 - (eval $ac_try) 2>&5
61865 - ac_status=$?
61866 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
61867 - (exit $ac_status); }; }; then
61868 - ac_cv_c_inline=$ac_kw; break
61869 + (exit $ac_status); } && {
61870 + test -z "$ac_c_werror_flag" ||
61871 + test ! -s conftest.err
61872 + } && test -s conftest.$ac_objext; then
61873 + ac_cv_c_inline=$ac_kw
61874 else
61875 echo "$as_me: failed program was:" >&5
61876 sed 's/^/| /' conftest.$ac_ext >&5
61877
61878 +
61879 fi
61880 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
61881 +
61882 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
61883 + test "$ac_cv_c_inline" != no && break
61884 done
61885
61886 fi
61887 -echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
61888 -echo "${ECHO_T}$ac_cv_c_inline" >&6
61889 +{ echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
61890 +echo "${ECHO_T}$ac_cv_c_inline" >&6; }
61891
61892
61893 case $ac_cv_c_inline in
61894 @@ -5795,9 +6452,9 @@ for ac_header in sys/types.h sys/stat.h
61895 inttypes.h stdint.h unistd.h
61896 do
61897 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
61898 -echo "$as_me:$LINENO: checking for $ac_header" >&5
61899 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
61900 -if eval "test \"\${$as_ac_Header+set}\" = set"; then
61901 +{ echo "$as_me:$LINENO: checking for $ac_header" >&5
61902 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
61903 +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
61904 echo $ECHO_N "(cached) $ECHO_C" >&6
61905 else
61906 cat >conftest.$ac_ext <<_ACEOF
61907 @@ -5811,38 +6468,35 @@ $ac_includes_default
61908 #include <$ac_header>
61909 _ACEOF
61910 rm -f conftest.$ac_objext
61911 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
61912 - (eval $ac_compile) 2>conftest.er1
61913 +if { (ac_try="$ac_compile"
61914 +case "(($ac_try" in
61915 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
61916 + *) ac_try_echo=$ac_try;;
61917 +esac
61918 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
61919 + (eval "$ac_compile") 2>conftest.er1
61920 ac_status=$?
61921 grep -v '^ *+' conftest.er1 >conftest.err
61922 rm -f conftest.er1
61923 cat conftest.err >&5
61924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61925 - (exit $ac_status); } &&
61926 - { ac_try='test -z "$ac_c_werror_flag"
61927 - || test ! -s conftest.err'
61928 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
61929 - (eval $ac_try) 2>&5
61930 - ac_status=$?
61931 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
61932 - (exit $ac_status); }; } &&
61933 - { ac_try='test -s conftest.$ac_objext'
61934 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
61935 - (eval $ac_try) 2>&5
61936 - ac_status=$?
61937 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
61938 - (exit $ac_status); }; }; then
61939 + (exit $ac_status); } && {
61940 + test -z "$ac_c_werror_flag" ||
61941 + test ! -s conftest.err
61942 + } && test -s conftest.$ac_objext; then
61943 eval "$as_ac_Header=yes"
61944 else
61945 echo "$as_me: failed program was:" >&5
61946 sed 's/^/| /' conftest.$ac_ext >&5
61947
61948 -eval "$as_ac_Header=no"
61949 + eval "$as_ac_Header=no"
61950 fi
61951 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
61952 +
61953 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
61954 fi
61955 -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
61956 -echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
61957 +ac_res=`eval echo '${'$as_ac_Header'}'`
61958 + { echo "$as_me:$LINENO: result: $ac_res" >&5
61959 +echo "${ECHO_T}$ac_res" >&6; }
61960 if test `eval echo '${'$as_ac_Header'}'` = yes; then
61961 cat >>confdefs.h <<_ACEOF
61962 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
61963 @@ -5853,8 +6507,8 @@ fi
61964 done
61965
61966
61967 -echo "$as_me:$LINENO: checking for off_t" >&5
61968 -echo $ECHO_N "checking for off_t... $ECHO_C" >&6
61969 +{ echo "$as_me:$LINENO: checking for off_t" >&5
61970 +echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
61971 if test "${ac_cv_type_off_t+set}" = set; then
61972 echo $ECHO_N "(cached) $ECHO_C" >&6
61973 else
61974 @@ -5865,62 +6519,59 @@ cat confdefs.h >>conftest.$ac_ext
61975 cat >>conftest.$ac_ext <<_ACEOF
61976 /* end confdefs.h. */
61977 $ac_includes_default
61978 +typedef off_t ac__type_new_;
61979 int
61980 main ()
61981 {
61982 -if ((off_t *) 0)
61983 +if ((ac__type_new_ *) 0)
61984 return 0;
61985 -if (sizeof (off_t))
61986 +if (sizeof (ac__type_new_))
61987 return 0;
61988 ;
61989 return 0;
61990 }
61991 _ACEOF
61992 rm -f conftest.$ac_objext
61993 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
61994 - (eval $ac_compile) 2>conftest.er1
61995 +if { (ac_try="$ac_compile"
61996 +case "(($ac_try" in
61997 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
61998 + *) ac_try_echo=$ac_try;;
61999 +esac
62000 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
62001 + (eval "$ac_compile") 2>conftest.er1
62002 ac_status=$?
62003 grep -v '^ *+' conftest.er1 >conftest.err
62004 rm -f conftest.er1
62005 cat conftest.err >&5
62006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
62007 - (exit $ac_status); } &&
62008 - { ac_try='test -z "$ac_c_werror_flag"
62009 - || test ! -s conftest.err'
62010 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
62011 - (eval $ac_try) 2>&5
62012 - ac_status=$?
62013 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
62014 - (exit $ac_status); }; } &&
62015 - { ac_try='test -s conftest.$ac_objext'
62016 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
62017 - (eval $ac_try) 2>&5
62018 - ac_status=$?
62019 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
62020 - (exit $ac_status); }; }; then
62021 + (exit $ac_status); } && {
62022 + test -z "$ac_c_werror_flag" ||
62023 + test ! -s conftest.err
62024 + } && test -s conftest.$ac_objext; then
62025 ac_cv_type_off_t=yes
62026 else
62027 echo "$as_me: failed program was:" >&5
62028 sed 's/^/| /' conftest.$ac_ext >&5
62029
62030 -ac_cv_type_off_t=no
62031 + ac_cv_type_off_t=no
62032 fi
62033 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
62034 +
62035 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
62036 fi
62037 -echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
62038 -echo "${ECHO_T}$ac_cv_type_off_t" >&6
62039 +{ echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
62040 +echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
62041 if test $ac_cv_type_off_t = yes; then
62042 :
62043 else
62044
62045 cat >>confdefs.h <<_ACEOF
62046 -#define off_t long
62047 +#define off_t long int
62048 _ACEOF
62049
62050 fi
62051
62052 -echo "$as_me:$LINENO: checking for size_t" >&5
62053 -echo $ECHO_N "checking for size_t... $ECHO_C" >&6
62054 +{ echo "$as_me:$LINENO: checking for size_t" >&5
62055 +echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
62056 if test "${ac_cv_type_size_t+set}" = set; then
62057 echo $ECHO_N "(cached) $ECHO_C" >&6
62058 else
62059 @@ -5931,64 +6582,61 @@ cat confdefs.h >>conftest.$ac_ext
62060 cat >>conftest.$ac_ext <<_ACEOF
62061 /* end confdefs.h. */
62062 $ac_includes_default
62063 +typedef size_t ac__type_new_;
62064 int
62065 main ()
62066 {
62067 -if ((size_t *) 0)
62068 +if ((ac__type_new_ *) 0)
62069 return 0;
62070 -if (sizeof (size_t))
62071 +if (sizeof (ac__type_new_))
62072 return 0;
62073 ;
62074 return 0;
62075 }
62076 _ACEOF
62077 rm -f conftest.$ac_objext
62078 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
62079 - (eval $ac_compile) 2>conftest.er1
62080 +if { (ac_try="$ac_compile"
62081 +case "(($ac_try" in
62082 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
62083 + *) ac_try_echo=$ac_try;;
62084 +esac
62085 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
62086 + (eval "$ac_compile") 2>conftest.er1
62087 ac_status=$?
62088 grep -v '^ *+' conftest.er1 >conftest.err
62089 rm -f conftest.er1
62090 cat conftest.err >&5
62091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
62092 - (exit $ac_status); } &&
62093 - { ac_try='test -z "$ac_c_werror_flag"
62094 - || test ! -s conftest.err'
62095 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
62096 - (eval $ac_try) 2>&5
62097 - ac_status=$?
62098 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
62099 - (exit $ac_status); }; } &&
62100 - { ac_try='test -s conftest.$ac_objext'
62101 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
62102 - (eval $ac_try) 2>&5
62103 - ac_status=$?
62104 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
62105 - (exit $ac_status); }; }; then
62106 + (exit $ac_status); } && {
62107 + test -z "$ac_c_werror_flag" ||
62108 + test ! -s conftest.err
62109 + } && test -s conftest.$ac_objext; then
62110 ac_cv_type_size_t=yes
62111 else
62112 echo "$as_me: failed program was:" >&5
62113 sed 's/^/| /' conftest.$ac_ext >&5
62114
62115 -ac_cv_type_size_t=no
62116 + ac_cv_type_size_t=no
62117 fi
62118 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
62119 +
62120 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
62121 fi
62122 -echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
62123 -echo "${ECHO_T}$ac_cv_type_size_t" >&6
62124 +{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
62125 +echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
62126 if test $ac_cv_type_size_t = yes; then
62127 :
62128 else
62129
62130 cat >>confdefs.h <<_ACEOF
62131 -#define size_t unsigned
62132 +#define size_t unsigned int
62133 _ACEOF
62134
62135 fi
62136
62137 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
62138 # for constant arguments. Useless!
62139 -echo "$as_me:$LINENO: checking for working alloca.h" >&5
62140 -echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
62141 +{ echo "$as_me:$LINENO: checking for working alloca.h" >&5
62142 +echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
62143 if test "${ac_cv_working_alloca_h+set}" = set; then
62144 echo $ECHO_N "(cached) $ECHO_C" >&6
62145 else
62146 @@ -6003,44 +6651,42 @@ int
62147 main ()
62148 {
62149 char *p = (char *) alloca (2 * sizeof (int));
62150 + if (p) return 0;
62151 ;
62152 return 0;
62153 }
62154 _ACEOF
62155 rm -f conftest.$ac_objext conftest$ac_exeext
62156 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
62157 - (eval $ac_link) 2>conftest.er1
62158 +if { (ac_try="$ac_link"
62159 +case "(($ac_try" in
62160 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
62161 + *) ac_try_echo=$ac_try;;
62162 +esac
62163 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
62164 + (eval "$ac_link") 2>conftest.er1
62165 ac_status=$?
62166 grep -v '^ *+' conftest.er1 >conftest.err
62167 rm -f conftest.er1
62168 cat conftest.err >&5
62169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
62170 - (exit $ac_status); } &&
62171 - { ac_try='test -z "$ac_c_werror_flag"
62172 - || test ! -s conftest.err'
62173 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
62174 - (eval $ac_try) 2>&5
62175 - ac_status=$?
62176 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
62177 - (exit $ac_status); }; } &&
62178 - { ac_try='test -s conftest$ac_exeext'
62179 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
62180 - (eval $ac_try) 2>&5
62181 - ac_status=$?
62182 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
62183 - (exit $ac_status); }; }; then
62184 + (exit $ac_status); } && {
62185 + test -z "$ac_c_werror_flag" ||
62186 + test ! -s conftest.err
62187 + } && test -s conftest$ac_exeext &&
62188 + $as_test_x conftest$ac_exeext; then
62189 ac_cv_working_alloca_h=yes
62190 else
62191 echo "$as_me: failed program was:" >&5
62192 sed 's/^/| /' conftest.$ac_ext >&5
62193
62194 -ac_cv_working_alloca_h=no
62195 + ac_cv_working_alloca_h=no
62196 fi
62197 -rm -f conftest.err conftest.$ac_objext \
62198 +
62199 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
62200 conftest$ac_exeext conftest.$ac_ext
62201 fi
62202 -echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
62203 -echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
62204 +{ echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
62205 +echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
62206 if test $ac_cv_working_alloca_h = yes; then
62207
62208 cat >>confdefs.h <<\_ACEOF
62209 @@ -6049,8 +6695,8 @@ _ACEOF
62210
62211 fi
62212
62213 -echo "$as_me:$LINENO: checking for alloca" >&5
62214 -echo $ECHO_N "checking for alloca... $ECHO_C" >&6
62215 +{ echo "$as_me:$LINENO: checking for alloca" >&5
62216 +echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
62217 if test "${ac_cv_func_alloca_works+set}" = set; then
62218 echo $ECHO_N "(cached) $ECHO_C" >&6
62219 else
62220 @@ -6067,7 +6713,7 @@ cat >>conftest.$ac_ext <<_ACEOF
62221 # include <malloc.h>
62222 # define alloca _alloca
62223 # else
62224 -# if HAVE_ALLOCA_H
62225 +# ifdef HAVE_ALLOCA_H
62226 # include <alloca.h>
62227 # else
62228 # ifdef _AIX
62229 @@ -6085,44 +6731,42 @@ int
62230 main ()
62231 {
62232 char *p = (char *) alloca (1);
62233 + if (p) return 0;
62234 ;
62235 return 0;
62236 }
62237 _ACEOF
62238 rm -f conftest.$ac_objext conftest$ac_exeext
62239 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
62240 - (eval $ac_link) 2>conftest.er1
62241 +if { (ac_try="$ac_link"
62242 +case "(($ac_try" in
62243 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
62244 + *) ac_try_echo=$ac_try;;
62245 +esac
62246 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
62247 + (eval "$ac_link") 2>conftest.er1
62248 ac_status=$?
62249 grep -v '^ *+' conftest.er1 >conftest.err
62250 rm -f conftest.er1
62251 cat conftest.err >&5
62252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
62253 - (exit $ac_status); } &&
62254 - { ac_try='test -z "$ac_c_werror_flag"
62255 - || test ! -s conftest.err'
62256 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
62257 - (eval $ac_try) 2>&5
62258 - ac_status=$?
62259 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
62260 - (exit $ac_status); }; } &&
62261 - { ac_try='test -s conftest$ac_exeext'
62262 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
62263 - (eval $ac_try) 2>&5
62264 - ac_status=$?
62265 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
62266 - (exit $ac_status); }; }; then
62267 + (exit $ac_status); } && {
62268 + test -z "$ac_c_werror_flag" ||
62269 + test ! -s conftest.err
62270 + } && test -s conftest$ac_exeext &&
62271 + $as_test_x conftest$ac_exeext; then
62272 ac_cv_func_alloca_works=yes
62273 else
62274 echo "$as_me: failed program was:" >&5
62275 sed 's/^/| /' conftest.$ac_ext >&5
62276
62277 -ac_cv_func_alloca_works=no
62278 + ac_cv_func_alloca_works=no
62279 fi
62280 -rm -f conftest.err conftest.$ac_objext \
62281 +
62282 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
62283 conftest$ac_exeext conftest.$ac_ext
62284 fi
62285 -echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
62286 -echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
62287 +{ echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
62288 +echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
62289
62290 if test $ac_cv_func_alloca_works = yes; then
62291
62292 @@ -6136,15 +6780,15 @@ else
62293 # contain a buggy version. If you still want to use their alloca,
62294 # use ar to extract alloca.o from them instead of compiling alloca.c.
62295
62296 -ALLOCA=alloca.$ac_objext
62297 +ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
62298
62299 cat >>confdefs.h <<\_ACEOF
62300 #define C_ALLOCA 1
62301 _ACEOF
62302
62303
62304 -echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
62305 -echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
62306 +{ echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
62307 +echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
62308 if test "${ac_cv_os_cray+set}" = set; then
62309 echo $ECHO_N "(cached) $ECHO_C" >&6
62310 else
62311 @@ -6154,7 +6798,7 @@ _ACEOF
62312 cat confdefs.h >>conftest.$ac_ext
62313 cat >>conftest.$ac_ext <<_ACEOF
62314 /* end confdefs.h. */
62315 -#if defined(CRAY) && ! defined(CRAY2)
62316 +#if defined CRAY && ! defined CRAY2
62317 webecray
62318 #else
62319 wenotbecray
62320 @@ -6170,14 +6814,14 @@ fi
62321 rm -f conftest*
62322
62323 fi
62324 -echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
62325 -echo "${ECHO_T}$ac_cv_os_cray" >&6
62326 +{ echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
62327 +echo "${ECHO_T}$ac_cv_os_cray" >&6; }
62328 if test $ac_cv_os_cray = yes; then
62329 for ac_func in _getb67 GETB67 getb67; do
62330 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
62331 -echo "$as_me:$LINENO: checking for $ac_func" >&5
62332 -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
62333 -if eval "test \"\${$as_ac_var+set}\" = set"; then
62334 +{ echo "$as_me:$LINENO: checking for $ac_func" >&5
62335 +echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
62336 +if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
62337 echo $ECHO_N "(cached) $ECHO_C" >&6
62338 else
62339 cat >conftest.$ac_ext <<_ACEOF
62340 @@ -6203,68 +6847,60 @@ cat >>conftest.$ac_ext <<_ACEOF
62341
62342 #undef $ac_func
62343
62344 -/* Override any gcc2 internal prototype to avoid an error. */
62345 +/* Override any GCC internal prototype to avoid an error.
62346 + Use char because int might match the return type of a GCC
62347 + builtin and then its argument prototype would still apply. */
62348 #ifdef __cplusplus
62349 extern "C"
62350 -{
62351 #endif
62352 -/* We use char because int might match the return type of a gcc2
62353 - builtin and then its argument prototype would still apply. */
62354 char $ac_func ();
62355 /* The GNU C library defines this for functions which it implements
62356 to always fail with ENOSYS. Some functions are actually named
62357 something starting with __ and the normal name is an alias. */
62358 -#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
62359 +#if defined __stub_$ac_func || defined __stub___$ac_func
62360 choke me
62361 -#else
62362 -char (*f) () = $ac_func;
62363 -#endif
62364 -#ifdef __cplusplus
62365 -}
62366 #endif
62367
62368 int
62369 main ()
62370 {
62371 -return f != $ac_func;
62372 +return $ac_func ();
62373 ;
62374 return 0;
62375 }
62376 _ACEOF
62377 rm -f conftest.$ac_objext conftest$ac_exeext
62378 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
62379 - (eval $ac_link) 2>conftest.er1
62380 +if { (ac_try="$ac_link"
62381 +case "(($ac_try" in
62382 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
62383 + *) ac_try_echo=$ac_try;;
62384 +esac
62385 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
62386 + (eval "$ac_link") 2>conftest.er1
62387 ac_status=$?
62388 grep -v '^ *+' conftest.er1 >conftest.err
62389 rm -f conftest.er1
62390 cat conftest.err >&5
62391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
62392 - (exit $ac_status); } &&
62393 - { ac_try='test -z "$ac_c_werror_flag"
62394 - || test ! -s conftest.err'
62395 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
62396 - (eval $ac_try) 2>&5
62397 - ac_status=$?
62398 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
62399 - (exit $ac_status); }; } &&
62400 - { ac_try='test -s conftest$ac_exeext'
62401 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
62402 - (eval $ac_try) 2>&5
62403 - ac_status=$?
62404 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
62405 - (exit $ac_status); }; }; then
62406 + (exit $ac_status); } && {
62407 + test -z "$ac_c_werror_flag" ||
62408 + test ! -s conftest.err
62409 + } && test -s conftest$ac_exeext &&
62410 + $as_test_x conftest$ac_exeext; then
62411 eval "$as_ac_var=yes"
62412 else
62413 echo "$as_me: failed program was:" >&5
62414 sed 's/^/| /' conftest.$ac_ext >&5
62415
62416 -eval "$as_ac_var=no"
62417 + eval "$as_ac_var=no"
62418 fi
62419 -rm -f conftest.err conftest.$ac_objext \
62420 +
62421 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
62422 conftest$ac_exeext conftest.$ac_ext
62423 fi
62424 -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
62425 -echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
62426 +ac_res=`eval echo '${'$as_ac_var'}'`
62427 + { echo "$as_me:$LINENO: result: $ac_res" >&5
62428 +echo "${ECHO_T}$ac_res" >&6; }
62429 if test `eval echo '${'$as_ac_var'}'` = yes; then
62430
62431 cat >>confdefs.h <<_ACEOF
62432 @@ -6277,8 +6913,8 @@ fi
62433 done
62434 fi
62435
62436 -echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
62437 -echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
62438 +{ echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
62439 +echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
62440 if test "${ac_cv_c_stack_direction+set}" = set; then
62441 echo $ECHO_N "(cached) $ECHO_C" >&6
62442 else
62443 @@ -6291,6 +6927,7 @@ _ACEOF
62444 cat confdefs.h >>conftest.$ac_ext
62445 cat >>conftest.$ac_ext <<_ACEOF
62446 /* end confdefs.h. */
62447 +$ac_includes_default
62448 int
62449 find_stack_direction ()
62450 {
62451 @@ -6308,17 +6945,26 @@ find_stack_direction ()
62452 int
62453 main ()
62454 {
62455 - exit (find_stack_direction () < 0);
62456 + return find_stack_direction () < 0;
62457 }
62458 _ACEOF
62459 rm -f conftest$ac_exeext
62460 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
62461 - (eval $ac_link) 2>&5
62462 +if { (ac_try="$ac_link"
62463 +case "(($ac_try" in
62464 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
62465 + *) ac_try_echo=$ac_try;;
62466 +esac
62467 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
62468 + (eval "$ac_link") 2>&5
62469 ac_status=$?
62470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
62471 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
62472 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
62473 - (eval $ac_try) 2>&5
62474 + { (case "(($ac_try" in
62475 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
62476 + *) ac_try_echo=$ac_try;;
62477 +esac
62478 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
62479 + (eval "$ac_try") 2>&5
62480 ac_status=$?
62481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
62482 (exit $ac_status); }; }; then
62483 @@ -6331,11 +6977,13 @@ sed 's/^/| /' conftest.$ac_ext >&5
62484 ( exit $ac_status )
62485 ac_cv_c_stack_direction=-1
62486 fi
62487 -rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
62488 +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
62489 fi
62490 +
62491 +
62492 fi
62493 -echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
62494 -echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
62495 +{ echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
62496 +echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
62497
62498 cat >>confdefs.h <<_ACEOF
62499 #define STACK_DIRECTION $ac_cv_c_stack_direction
62500 @@ -6349,18 +6997,19 @@ fi
62501 for ac_header in stdlib.h unistd.h
62502 do
62503 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
62504 -if eval "test \"\${$as_ac_Header+set}\" = set"; then
62505 - echo "$as_me:$LINENO: checking for $ac_header" >&5
62506 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
62507 -if eval "test \"\${$as_ac_Header+set}\" = set"; then
62508 +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
62509 + { echo "$as_me:$LINENO: checking for $ac_header" >&5
62510 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
62511 +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
62512 echo $ECHO_N "(cached) $ECHO_C" >&6
62513 fi
62514 -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
62515 -echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
62516 +ac_res=`eval echo '${'$as_ac_Header'}'`
62517 + { echo "$as_me:$LINENO: result: $ac_res" >&5
62518 +echo "${ECHO_T}$ac_res" >&6; }
62519 else
62520 # Is the header compilable?
62521 -echo "$as_me:$LINENO: checking $ac_header usability" >&5
62522 -echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
62523 +{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
62524 +echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
62525 cat >conftest.$ac_ext <<_ACEOF
62526 /* confdefs.h. */
62527 _ACEOF
62528 @@ -6371,41 +7020,37 @@ $ac_includes_default
62529 #include <$ac_header>
62530 _ACEOF
62531 rm -f conftest.$ac_objext
62532 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
62533 - (eval $ac_compile) 2>conftest.er1
62534 +if { (ac_try="$ac_compile"
62535 +case "(($ac_try" in
62536 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
62537 + *) ac_try_echo=$ac_try;;
62538 +esac
62539 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
62540 + (eval "$ac_compile") 2>conftest.er1
62541 ac_status=$?
62542 grep -v '^ *+' conftest.er1 >conftest.err
62543 rm -f conftest.er1
62544 cat conftest.err >&5
62545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
62546 - (exit $ac_status); } &&
62547 - { ac_try='test -z "$ac_c_werror_flag"
62548 - || test ! -s conftest.err'
62549 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
62550 - (eval $ac_try) 2>&5
62551 - ac_status=$?
62552 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
62553 - (exit $ac_status); }; } &&
62554 - { ac_try='test -s conftest.$ac_objext'
62555 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
62556 - (eval $ac_try) 2>&5
62557 - ac_status=$?
62558 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
62559 - (exit $ac_status); }; }; then
62560 + (exit $ac_status); } && {
62561 + test -z "$ac_c_werror_flag" ||
62562 + test ! -s conftest.err
62563 + } && test -s conftest.$ac_objext; then
62564 ac_header_compiler=yes
62565 else
62566 echo "$as_me: failed program was:" >&5
62567 sed 's/^/| /' conftest.$ac_ext >&5
62568
62569 -ac_header_compiler=no
62570 + ac_header_compiler=no
62571 fi
62572 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
62573 -echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
62574 -echo "${ECHO_T}$ac_header_compiler" >&6
62575 +
62576 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
62577 +{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
62578 +echo "${ECHO_T}$ac_header_compiler" >&6; }
62579
62580 # Is the header present?
62581 -echo "$as_me:$LINENO: checking $ac_header presence" >&5
62582 -echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
62583 +{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
62584 +echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
62585 cat >conftest.$ac_ext <<_ACEOF
62586 /* confdefs.h. */
62587 _ACEOF
62588 @@ -6414,24 +7059,22 @@ cat >>conftest.$ac_ext <<_ACEOF
62589 /* end confdefs.h. */
62590 #include <$ac_header>
62591 _ACEOF
62592 -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
62593 - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
62594 +if { (ac_try="$ac_cpp conftest.$ac_ext"
62595 +case "(($ac_try" in
62596 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
62597 + *) ac_try_echo=$ac_try;;
62598 +esac
62599 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
62600 + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
62601 ac_status=$?
62602 grep -v '^ *+' conftest.er1 >conftest.err
62603 rm -f conftest.er1
62604 cat conftest.err >&5
62605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
62606 - (exit $ac_status); } >/dev/null; then
62607 - if test -s conftest.err; then
62608 - ac_cpp_err=$ac_c_preproc_warn_flag
62609 - ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
62610 - else
62611 - ac_cpp_err=
62612 - fi
62613 -else
62614 - ac_cpp_err=yes
62615 -fi
62616 -if test -z "$ac_cpp_err"; then
62617 + (exit $ac_status); } >/dev/null && {
62618 + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
62619 + test ! -s conftest.err
62620 + }; then
62621 ac_header_preproc=yes
62622 else
62623 echo "$as_me: failed program was:" >&5
62624 @@ -6439,9 +7082,10 @@ sed 's/^/| /' conftest.$ac_ext >&5
62625
62626 ac_header_preproc=no
62627 fi
62628 +
62629 rm -f conftest.err conftest.$ac_ext
62630 -echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
62631 -echo "${ECHO_T}$ac_header_preproc" >&6
62632 +{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
62633 +echo "${ECHO_T}$ac_header_preproc" >&6; }
62634
62635 # So? What about this header?
62636 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
62637 @@ -6465,25 +7109,19 @@ echo "$as_me: WARNING: $ac_header: s
62638 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
62639 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
62640 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
62641 - (
62642 - cat <<\_ASBOX
62643 -## ------------------------------------------ ##
62644 -## Report this to the AC_PACKAGE_NAME lists. ##
62645 -## ------------------------------------------ ##
62646 -_ASBOX
62647 - ) |
62648 - sed "s/^/$as_me: WARNING: /" >&2
62649 +
62650 ;;
62651 esac
62652 -echo "$as_me:$LINENO: checking for $ac_header" >&5
62653 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
62654 -if eval "test \"\${$as_ac_Header+set}\" = set"; then
62655 +{ echo "$as_me:$LINENO: checking for $ac_header" >&5
62656 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
62657 +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
62658 echo $ECHO_N "(cached) $ECHO_C" >&6
62659 else
62660 eval "$as_ac_Header=\$ac_header_preproc"
62661 fi
62662 -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
62663 -echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
62664 +ac_res=`eval echo '${'$as_ac_Header'}'`
62665 + { echo "$as_me:$LINENO: result: $ac_res" >&5
62666 +echo "${ECHO_T}$ac_res" >&6; }
62667
62668 fi
62669 if test `eval echo '${'$as_ac_Header'}'` = yes; then
62670 @@ -6499,9 +7137,9 @@ done
62671 for ac_func in getpagesize
62672 do
62673 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
62674 -echo "$as_me:$LINENO: checking for $ac_func" >&5
62675 -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
62676 -if eval "test \"\${$as_ac_var+set}\" = set"; then
62677 +{ echo "$as_me:$LINENO: checking for $ac_func" >&5
62678 +echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
62679 +if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
62680 echo $ECHO_N "(cached) $ECHO_C" >&6
62681 else
62682 cat >conftest.$ac_ext <<_ACEOF
62683 @@ -6527,68 +7165,60 @@ cat >>conftest.$ac_ext <<_ACEOF
62684
62685 #undef $ac_func
62686
62687 -/* Override any gcc2 internal prototype to avoid an error. */
62688 +/* Override any GCC internal prototype to avoid an error.
62689 + Use char because int might match the return type of a GCC
62690 + builtin and then its argument prototype would still apply. */
62691 #ifdef __cplusplus
62692 extern "C"
62693 -{
62694 #endif
62695 -/* We use char because int might match the return type of a gcc2
62696 - builtin and then its argument prototype would still apply. */
62697 char $ac_func ();
62698 /* The GNU C library defines this for functions which it implements
62699 to always fail with ENOSYS. Some functions are actually named
62700 something starting with __ and the normal name is an alias. */
62701 -#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
62702 +#if defined __stub_$ac_func || defined __stub___$ac_func
62703 choke me
62704 -#else
62705 -char (*f) () = $ac_func;
62706 -#endif
62707 -#ifdef __cplusplus
62708 -}
62709 #endif
62710
62711 int
62712 main ()
62713 {
62714 -return f != $ac_func;
62715 +return $ac_func ();
62716 ;
62717 return 0;
62718 }
62719 _ACEOF
62720 rm -f conftest.$ac_objext conftest$ac_exeext
62721 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
62722 - (eval $ac_link) 2>conftest.er1
62723 +if { (ac_try="$ac_link"
62724 +case "(($ac_try" in
62725 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
62726 + *) ac_try_echo=$ac_try;;
62727 +esac
62728 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
62729 + (eval "$ac_link") 2>conftest.er1
62730 ac_status=$?
62731 grep -v '^ *+' conftest.er1 >conftest.err
62732 rm -f conftest.er1
62733 cat conftest.err >&5
62734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
62735 - (exit $ac_status); } &&
62736 - { ac_try='test -z "$ac_c_werror_flag"
62737 - || test ! -s conftest.err'
62738 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
62739 - (eval $ac_try) 2>&5
62740 - ac_status=$?
62741 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
62742 - (exit $ac_status); }; } &&
62743 - { ac_try='test -s conftest$ac_exeext'
62744 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
62745 - (eval $ac_try) 2>&5
62746 - ac_status=$?
62747 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
62748 - (exit $ac_status); }; }; then
62749 + (exit $ac_status); } && {
62750 + test -z "$ac_c_werror_flag" ||
62751 + test ! -s conftest.err
62752 + } && test -s conftest$ac_exeext &&
62753 + $as_test_x conftest$ac_exeext; then
62754 eval "$as_ac_var=yes"
62755 else
62756 echo "$as_me: failed program was:" >&5
62757 sed 's/^/| /' conftest.$ac_ext >&5
62758
62759 -eval "$as_ac_var=no"
62760 + eval "$as_ac_var=no"
62761 fi
62762 -rm -f conftest.err conftest.$ac_objext \
62763 +
62764 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
62765 conftest$ac_exeext conftest.$ac_ext
62766 fi
62767 -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
62768 -echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
62769 +ac_res=`eval echo '${'$as_ac_var'}'`
62770 + { echo "$as_me:$LINENO: result: $ac_res" >&5
62771 +echo "${ECHO_T}$ac_res" >&6; }
62772 if test `eval echo '${'$as_ac_var'}'` = yes; then
62773 cat >>confdefs.h <<_ACEOF
62774 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
62775 @@ -6597,8 +7227,8 @@ _ACEOF
62776 fi
62777 done
62778
62779 -echo "$as_me:$LINENO: checking for working mmap" >&5
62780 -echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
62781 +{ echo "$as_me:$LINENO: checking for working mmap" >&5
62782 +echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
62783 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
62784 echo $ECHO_N "(cached) $ECHO_C" >&6
62785 else
62786 @@ -6640,21 +7270,21 @@ $ac_includes_default
62787 #include <fcntl.h>
62788 #include <sys/mman.h>
62789
62790 -#if !STDC_HEADERS && !HAVE_STDLIB_H
62791 +#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
62792 char *malloc ();
62793 #endif
62794
62795 /* This mess was copied from the GNU getpagesize.h. */
62796 -#if !HAVE_GETPAGESIZE
62797 +#ifndef HAVE_GETPAGESIZE
62798 /* Assume that all systems that can run configure have sys/param.h. */
62799 -# if !HAVE_SYS_PARAM_H
62800 +# ifndef HAVE_SYS_PARAM_H
62801 # define HAVE_SYS_PARAM_H 1
62802 # endif
62803
62804 # ifdef _SC_PAGESIZE
62805 # define getpagesize() sysconf(_SC_PAGESIZE)
62806 # else /* no _SC_PAGESIZE */
62807 -# if HAVE_SYS_PARAM_H
62808 +# ifdef HAVE_SYS_PARAM_H
62809 # include <sys/param.h>
62810 # ifdef EXEC_PAGESIZE
62811 # define getpagesize() EXEC_PAGESIZE
62812 @@ -6693,15 +7323,15 @@ main ()
62813 /* First, make a file with some known garbage in it. */
62814 data = (char *) malloc (pagesize);
62815 if (!data)
62816 - exit (1);
62817 + return 1;
62818 for (i = 0; i < pagesize; ++i)
62819 *(data + i) = rand ();
62820 umask (0);
62821 fd = creat ("conftest.mmap", 0600);
62822 if (fd < 0)
62823 - exit (1);
62824 + return 1;
62825 if (write (fd, data, pagesize) != pagesize)
62826 - exit (1);
62827 + return 1;
62828 close (fd);
62829
62830 /* Next, try to mmap the file at a fixed address which already has
62831 @@ -6709,17 +7339,17 @@ main ()
62832 we see the same garbage. */
62833 fd = open ("conftest.mmap", O_RDWR);
62834 if (fd < 0)
62835 - exit (1);
62836 + return 1;
62837 data2 = (char *) malloc (2 * pagesize);
62838 if (!data2)
62839 - exit (1);
62840 - data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
62841 + return 1;
62842 + data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
62843 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
62844 MAP_PRIVATE | MAP_FIXED, fd, 0L))
62845 - exit (1);
62846 + return 1;
62847 for (i = 0; i < pagesize; ++i)
62848 if (*(data + i) != *(data2 + i))
62849 - exit (1);
62850 + return 1;
62851
62852 /* Finally, make sure that changes to the mapped area do not
62853 percolate back to the file as seen by read(). (This is a bug on
62854 @@ -6728,24 +7358,33 @@ main ()
62855 *(data2 + i) = *(data2 + i) + 1;
62856 data3 = (char *) malloc (pagesize);
62857 if (!data3)
62858 - exit (1);
62859 + return 1;
62860 if (read (fd, data3, pagesize) != pagesize)
62861 - exit (1);
62862 + return 1;
62863 for (i = 0; i < pagesize; ++i)
62864 if (*(data + i) != *(data3 + i))
62865 - exit (1);
62866 + return 1;
62867 close (fd);
62868 - exit (0);
62869 + return 0;
62870 }
62871 _ACEOF
62872 rm -f conftest$ac_exeext
62873 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
62874 - (eval $ac_link) 2>&5
62875 +if { (ac_try="$ac_link"
62876 +case "(($ac_try" in
62877 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
62878 + *) ac_try_echo=$ac_try;;
62879 +esac
62880 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
62881 + (eval "$ac_link") 2>&5
62882 ac_status=$?
62883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
62884 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
62885 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
62886 - (eval $ac_try) 2>&5
62887 + { (case "(($ac_try" in
62888 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
62889 + *) ac_try_echo=$ac_try;;
62890 +esac
62891 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
62892 + (eval "$ac_try") 2>&5
62893 ac_status=$?
62894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
62895 (exit $ac_status); }; }; then
62896 @@ -6758,11 +7397,13 @@ sed 's/^/| /' conftest.$ac_ext >&5
62897 ( exit $ac_status )
62898 ac_cv_func_mmap_fixed_mapped=no
62899 fi
62900 -rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
62901 +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
62902 fi
62903 +
62904 +
62905 fi
62906 -echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
62907 -echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
62908 +{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
62909 +echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
62910 if test $ac_cv_func_mmap_fixed_mapped = yes; then
62911
62912 cat >>confdefs.h <<\_ACEOF
62913 @@ -6786,18 +7427,19 @@ for ac_header in argz.h limits.h locale.
62914 unistd.h values.h sys/param.h
62915 do
62916 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
62917 -if eval "test \"\${$as_ac_Header+set}\" = set"; then
62918 - echo "$as_me:$LINENO: checking for $ac_header" >&5
62919 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
62920 -if eval "test \"\${$as_ac_Header+set}\" = set"; then
62921 +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
62922 + { echo "$as_me:$LINENO: checking for $ac_header" >&5
62923 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
62924 +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
62925 echo $ECHO_N "(cached) $ECHO_C" >&6
62926 fi
62927 -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
62928 -echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
62929 +ac_res=`eval echo '${'$as_ac_Header'}'`
62930 + { echo "$as_me:$LINENO: result: $ac_res" >&5
62931 +echo "${ECHO_T}$ac_res" >&6; }
62932 else
62933 # Is the header compilable?
62934 -echo "$as_me:$LINENO: checking $ac_header usability" >&5
62935 -echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
62936 +{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
62937 +echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
62938 cat >conftest.$ac_ext <<_ACEOF
62939 /* confdefs.h. */
62940 _ACEOF
62941 @@ -6808,41 +7450,37 @@ $ac_includes_default
62942 #include <$ac_header>
62943 _ACEOF
62944 rm -f conftest.$ac_objext
62945 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
62946 - (eval $ac_compile) 2>conftest.er1
62947 +if { (ac_try="$ac_compile"
62948 +case "(($ac_try" in
62949 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
62950 + *) ac_try_echo=$ac_try;;
62951 +esac
62952 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
62953 + (eval "$ac_compile") 2>conftest.er1
62954 ac_status=$?
62955 grep -v '^ *+' conftest.er1 >conftest.err
62956 rm -f conftest.er1
62957 cat conftest.err >&5
62958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
62959 - (exit $ac_status); } &&
62960 - { ac_try='test -z "$ac_c_werror_flag"
62961 - || test ! -s conftest.err'
62962 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
62963 - (eval $ac_try) 2>&5
62964 - ac_status=$?
62965 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
62966 - (exit $ac_status); }; } &&
62967 - { ac_try='test -s conftest.$ac_objext'
62968 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
62969 - (eval $ac_try) 2>&5
62970 - ac_status=$?
62971 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
62972 - (exit $ac_status); }; }; then
62973 + (exit $ac_status); } && {
62974 + test -z "$ac_c_werror_flag" ||
62975 + test ! -s conftest.err
62976 + } && test -s conftest.$ac_objext; then
62977 ac_header_compiler=yes
62978 else
62979 echo "$as_me: failed program was:" >&5
62980 sed 's/^/| /' conftest.$ac_ext >&5
62981
62982 -ac_header_compiler=no
62983 + ac_header_compiler=no
62984 fi
62985 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
62986 -echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
62987 -echo "${ECHO_T}$ac_header_compiler" >&6
62988 +
62989 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
62990 +{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
62991 +echo "${ECHO_T}$ac_header_compiler" >&6; }
62992
62993 # Is the header present?
62994 -echo "$as_me:$LINENO: checking $ac_header presence" >&5
62995 -echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
62996 +{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
62997 +echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
62998 cat >conftest.$ac_ext <<_ACEOF
62999 /* confdefs.h. */
63000 _ACEOF
63001 @@ -6851,24 +7489,22 @@ cat >>conftest.$ac_ext <<_ACEOF
63002 /* end confdefs.h. */
63003 #include <$ac_header>
63004 _ACEOF
63005 -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
63006 - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
63007 +if { (ac_try="$ac_cpp conftest.$ac_ext"
63008 +case "(($ac_try" in
63009 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
63010 + *) ac_try_echo=$ac_try;;
63011 +esac
63012 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
63013 + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
63014 ac_status=$?
63015 grep -v '^ *+' conftest.er1 >conftest.err
63016 rm -f conftest.er1
63017 cat conftest.err >&5
63018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
63019 - (exit $ac_status); } >/dev/null; then
63020 - if test -s conftest.err; then
63021 - ac_cpp_err=$ac_c_preproc_warn_flag
63022 - ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
63023 - else
63024 - ac_cpp_err=
63025 - fi
63026 -else
63027 - ac_cpp_err=yes
63028 -fi
63029 -if test -z "$ac_cpp_err"; then
63030 + (exit $ac_status); } >/dev/null && {
63031 + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
63032 + test ! -s conftest.err
63033 + }; then
63034 ac_header_preproc=yes
63035 else
63036 echo "$as_me: failed program was:" >&5
63037 @@ -6876,9 +7512,10 @@ sed 's/^/| /' conftest.$ac_ext >&5
63038
63039 ac_header_preproc=no
63040 fi
63041 +
63042 rm -f conftest.err conftest.$ac_ext
63043 -echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
63044 -echo "${ECHO_T}$ac_header_preproc" >&6
63045 +{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
63046 +echo "${ECHO_T}$ac_header_preproc" >&6; }
63047
63048 # So? What about this header?
63049 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
63050 @@ -6902,25 +7539,19 @@ echo "$as_me: WARNING: $ac_header: s
63051 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
63052 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
63053 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
63054 - (
63055 - cat <<\_ASBOX
63056 -## ------------------------------------------ ##
63057 -## Report this to the AC_PACKAGE_NAME lists. ##
63058 -## ------------------------------------------ ##
63059 -_ASBOX
63060 - ) |
63061 - sed "s/^/$as_me: WARNING: /" >&2
63062 +
63063 ;;
63064 esac
63065 -echo "$as_me:$LINENO: checking for $ac_header" >&5
63066 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
63067 -if eval "test \"\${$as_ac_Header+set}\" = set"; then
63068 +{ echo "$as_me:$LINENO: checking for $ac_header" >&5
63069 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
63070 +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
63071 echo $ECHO_N "(cached) $ECHO_C" >&6
63072 else
63073 eval "$as_ac_Header=\$ac_header_preproc"
63074 fi
63075 -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
63076 -echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
63077 +ac_res=`eval echo '${'$as_ac_Header'}'`
63078 + { echo "$as_me:$LINENO: result: $ac_res" >&5
63079 +echo "${ECHO_T}$ac_res" >&6; }
63080
63081 fi
63082 if test `eval echo '${'$as_ac_Header'}'` = yes; then
63083 @@ -6946,9 +7577,9 @@ for ac_func in getcwd munmap putenv sete
63084 __argz_count __argz_stringify __argz_next
63085 do
63086 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
63087 -echo "$as_me:$LINENO: checking for $ac_func" >&5
63088 -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
63089 -if eval "test \"\${$as_ac_var+set}\" = set"; then
63090 +{ echo "$as_me:$LINENO: checking for $ac_func" >&5
63091 +echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
63092 +if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
63093 echo $ECHO_N "(cached) $ECHO_C" >&6
63094 else
63095 cat >conftest.$ac_ext <<_ACEOF
63096 @@ -6974,68 +7605,60 @@ cat >>conftest.$ac_ext <<_ACEOF
63097
63098 #undef $ac_func
63099
63100 -/* Override any gcc2 internal prototype to avoid an error. */
63101 +/* Override any GCC internal prototype to avoid an error.
63102 + Use char because int might match the return type of a GCC
63103 + builtin and then its argument prototype would still apply. */
63104 #ifdef __cplusplus
63105 extern "C"
63106 -{
63107 #endif
63108 -/* We use char because int might match the return type of a gcc2
63109 - builtin and then its argument prototype would still apply. */
63110 char $ac_func ();
63111 /* The GNU C library defines this for functions which it implements
63112 to always fail with ENOSYS. Some functions are actually named
63113 something starting with __ and the normal name is an alias. */
63114 -#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
63115 +#if defined __stub_$ac_func || defined __stub___$ac_func
63116 choke me
63117 -#else
63118 -char (*f) () = $ac_func;
63119 -#endif
63120 -#ifdef __cplusplus
63121 -}
63122 #endif
63123
63124 int
63125 main ()
63126 {
63127 -return f != $ac_func;
63128 +return $ac_func ();
63129 ;
63130 return 0;
63131 }
63132 _ACEOF
63133 rm -f conftest.$ac_objext conftest$ac_exeext
63134 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
63135 - (eval $ac_link) 2>conftest.er1
63136 +if { (ac_try="$ac_link"
63137 +case "(($ac_try" in
63138 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
63139 + *) ac_try_echo=$ac_try;;
63140 +esac
63141 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
63142 + (eval "$ac_link") 2>conftest.er1
63143 ac_status=$?
63144 grep -v '^ *+' conftest.er1 >conftest.err
63145 rm -f conftest.er1
63146 cat conftest.err >&5
63147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
63148 - (exit $ac_status); } &&
63149 - { ac_try='test -z "$ac_c_werror_flag"
63150 - || test ! -s conftest.err'
63151 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
63152 - (eval $ac_try) 2>&5
63153 - ac_status=$?
63154 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
63155 - (exit $ac_status); }; } &&
63156 - { ac_try='test -s conftest$ac_exeext'
63157 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
63158 - (eval $ac_try) 2>&5
63159 - ac_status=$?
63160 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
63161 - (exit $ac_status); }; }; then
63162 + (exit $ac_status); } && {
63163 + test -z "$ac_c_werror_flag" ||
63164 + test ! -s conftest.err
63165 + } && test -s conftest$ac_exeext &&
63166 + $as_test_x conftest$ac_exeext; then
63167 eval "$as_ac_var=yes"
63168 else
63169 echo "$as_me: failed program was:" >&5
63170 sed 's/^/| /' conftest.$ac_ext >&5
63171
63172 -eval "$as_ac_var=no"
63173 + eval "$as_ac_var=no"
63174 fi
63175 -rm -f conftest.err conftest.$ac_objext \
63176 +
63177 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
63178 conftest$ac_exeext conftest.$ac_ext
63179 fi
63180 -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
63181 -echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
63182 +ac_res=`eval echo '${'$as_ac_var'}'`
63183 + { echo "$as_me:$LINENO: result: $ac_res" >&5
63184 +echo "${ECHO_T}$ac_res" >&6; }
63185 if test `eval echo '${'$as_ac_var'}'` = yes; then
63186 cat >>confdefs.h <<_ACEOF
63187 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
63188 @@ -7050,9 +7673,9 @@ done
63189 for ac_func in stpcpy
63190 do
63191 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
63192 -echo "$as_me:$LINENO: checking for $ac_func" >&5
63193 -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
63194 -if eval "test \"\${$as_ac_var+set}\" = set"; then
63195 +{ echo "$as_me:$LINENO: checking for $ac_func" >&5
63196 +echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
63197 +if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
63198 echo $ECHO_N "(cached) $ECHO_C" >&6
63199 else
63200 cat >conftest.$ac_ext <<_ACEOF
63201 @@ -7078,68 +7701,60 @@ cat >>conftest.$ac_ext <<_ACEOF
63202
63203 #undef $ac_func
63204
63205 -/* Override any gcc2 internal prototype to avoid an error. */
63206 +/* Override any GCC internal prototype to avoid an error.
63207 + Use char because int might match the return type of a GCC
63208 + builtin and then its argument prototype would still apply. */
63209 #ifdef __cplusplus
63210 extern "C"
63211 -{
63212 #endif
63213 -/* We use char because int might match the return type of a gcc2
63214 - builtin and then its argument prototype would still apply. */
63215 char $ac_func ();
63216 /* The GNU C library defines this for functions which it implements
63217 to always fail with ENOSYS. Some functions are actually named
63218 something starting with __ and the normal name is an alias. */
63219 -#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
63220 +#if defined __stub_$ac_func || defined __stub___$ac_func
63221 choke me
63222 -#else
63223 -char (*f) () = $ac_func;
63224 -#endif
63225 -#ifdef __cplusplus
63226 -}
63227 #endif
63228
63229 int
63230 main ()
63231 {
63232 -return f != $ac_func;
63233 +return $ac_func ();
63234 ;
63235 return 0;
63236 }
63237 _ACEOF
63238 rm -f conftest.$ac_objext conftest$ac_exeext
63239 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
63240 - (eval $ac_link) 2>conftest.er1
63241 +if { (ac_try="$ac_link"
63242 +case "(($ac_try" in
63243 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
63244 + *) ac_try_echo=$ac_try;;
63245 +esac
63246 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
63247 + (eval "$ac_link") 2>conftest.er1
63248 ac_status=$?
63249 grep -v '^ *+' conftest.er1 >conftest.err
63250 rm -f conftest.er1
63251 cat conftest.err >&5
63252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
63253 - (exit $ac_status); } &&
63254 - { ac_try='test -z "$ac_c_werror_flag"
63255 - || test ! -s conftest.err'
63256 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
63257 - (eval $ac_try) 2>&5
63258 - ac_status=$?
63259 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
63260 - (exit $ac_status); }; } &&
63261 - { ac_try='test -s conftest$ac_exeext'
63262 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
63263 - (eval $ac_try) 2>&5
63264 - ac_status=$?
63265 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
63266 - (exit $ac_status); }; }; then
63267 + (exit $ac_status); } && {
63268 + test -z "$ac_c_werror_flag" ||
63269 + test ! -s conftest.err
63270 + } && test -s conftest$ac_exeext &&
63271 + $as_test_x conftest$ac_exeext; then
63272 eval "$as_ac_var=yes"
63273 else
63274 echo "$as_me: failed program was:" >&5
63275 sed 's/^/| /' conftest.$ac_ext >&5
63276
63277 -eval "$as_ac_var=no"
63278 + eval "$as_ac_var=no"
63279 fi
63280 -rm -f conftest.err conftest.$ac_objext \
63281 +
63282 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
63283 conftest$ac_exeext conftest.$ac_ext
63284 fi
63285 -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
63286 -echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
63287 +ac_res=`eval echo '${'$as_ac_var'}'`
63288 + { echo "$as_me:$LINENO: result: $ac_res" >&5
63289 +echo "${ECHO_T}$ac_res" >&6; }
63290 if test `eval echo '${'$as_ac_var'}'` = yes; then
63291 cat >>confdefs.h <<_ACEOF
63292 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
63293 @@ -7158,8 +7773,8 @@ _ACEOF
63294 fi
63295
63296 if test $ac_cv_header_locale_h = yes; then
63297 - echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
63298 -echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
63299 + { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
63300 +echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
63301 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
63302 echo $ECHO_N "(cached) $ECHO_C" >&6
63303 else
63304 @@ -7179,39 +7794,36 @@ return LC_MESSAGES
63305 }
63306 _ACEOF
63307 rm -f conftest.$ac_objext conftest$ac_exeext
63308 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
63309 - (eval $ac_link) 2>conftest.er1
63310 +if { (ac_try="$ac_link"
63311 +case "(($ac_try" in
63312 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
63313 + *) ac_try_echo=$ac_try;;
63314 +esac
63315 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
63316 + (eval "$ac_link") 2>conftest.er1
63317 ac_status=$?
63318 grep -v '^ *+' conftest.er1 >conftest.err
63319 rm -f conftest.er1
63320 cat conftest.err >&5
63321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
63322 - (exit $ac_status); } &&
63323 - { ac_try='test -z "$ac_c_werror_flag"
63324 - || test ! -s conftest.err'
63325 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
63326 - (eval $ac_try) 2>&5
63327 - ac_status=$?
63328 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
63329 - (exit $ac_status); }; } &&
63330 - { ac_try='test -s conftest$ac_exeext'
63331 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
63332 - (eval $ac_try) 2>&5
63333 - ac_status=$?
63334 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
63335 - (exit $ac_status); }; }; then
63336 + (exit $ac_status); } && {
63337 + test -z "$ac_c_werror_flag" ||
63338 + test ! -s conftest.err
63339 + } && test -s conftest$ac_exeext &&
63340 + $as_test_x conftest$ac_exeext; then
63341 am_cv_val_LC_MESSAGES=yes
63342 else
63343 echo "$as_me: failed program was:" >&5
63344 sed 's/^/| /' conftest.$ac_ext >&5
63345
63346 -am_cv_val_LC_MESSAGES=no
63347 + am_cv_val_LC_MESSAGES=no
63348 fi
63349 -rm -f conftest.err conftest.$ac_objext \
63350 +
63351 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
63352 conftest$ac_exeext conftest.$ac_ext
63353 fi
63354 -echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
63355 -echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
63356 +{ echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
63357 +echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6; }
63358 if test $am_cv_val_LC_MESSAGES = yes; then
63359
63360 cat >>confdefs.h <<\_ACEOF
63361 @@ -7220,34 +7832,34 @@ _ACEOF
63362
63363 fi
63364 fi
63365 - echo "$as_me:$LINENO: checking whether NLS is requested" >&5
63366 -echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
63367 - # Check whether --enable-nls or --disable-nls was given.
63368 + { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
63369 +echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
63370 + # Check whether --enable-nls was given.
63371 if test "${enable_nls+set}" = set; then
63372 - enableval="$enable_nls"
63373 - USE_NLS=$enableval
63374 + enableval=$enable_nls; USE_NLS=$enableval
63375 else
63376 USE_NLS=yes
63377 -fi;
63378 - echo "$as_me:$LINENO: result: $USE_NLS" >&5
63379 -echo "${ECHO_T}$USE_NLS" >&6
63380 +fi
63381 +
63382 + { echo "$as_me:$LINENO: result: $USE_NLS" >&5
63383 +echo "${ECHO_T}$USE_NLS" >&6; }
63384
63385
63386 USE_INCLUDED_LIBINTL=no
63387
63388 if test "$USE_NLS" = "yes"; then
63389 - echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
63390 -echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
63391 + { echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
63392 +echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6; }
63393
63394 -# Check whether --with-included-gettext or --without-included-gettext was given.
63395 +# Check whether --with-included-gettext was given.
63396 if test "${with_included_gettext+set}" = set; then
63397 - withval="$with_included_gettext"
63398 - nls_cv_force_use_gnu_gettext=$withval
63399 + withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
63400 else
63401 nls_cv_force_use_gnu_gettext=no
63402 -fi;
63403 - echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
63404 -echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
63405 +fi
63406 +
63407 + { echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
63408 +echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6; }
63409
63410 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
63411 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
63412 @@ -7256,17 +7868,17 @@ echo "${ECHO_T}$nls_cv_force_use_gnu_get
63413 CATOBJEXT=
63414
63415 if test "${ac_cv_header_libintl_h+set}" = set; then
63416 - echo "$as_me:$LINENO: checking for libintl.h" >&5
63417 -echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
63418 + { echo "$as_me:$LINENO: checking for libintl.h" >&5
63419 +echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; }
63420 if test "${ac_cv_header_libintl_h+set}" = set; then
63421 echo $ECHO_N "(cached) $ECHO_C" >&6
63422 fi
63423 -echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
63424 -echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
63425 +{ echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
63426 +echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; }
63427 else
63428 # Is the header compilable?
63429 -echo "$as_me:$LINENO: checking libintl.h usability" >&5
63430 -echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
63431 +{ echo "$as_me:$LINENO: checking libintl.h usability" >&5
63432 +echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6; }
63433 cat >conftest.$ac_ext <<_ACEOF
63434 /* confdefs.h. */
63435 _ACEOF
63436 @@ -7277,41 +7889,37 @@ $ac_includes_default
63437 #include <libintl.h>
63438 _ACEOF
63439 rm -f conftest.$ac_objext
63440 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
63441 - (eval $ac_compile) 2>conftest.er1
63442 +if { (ac_try="$ac_compile"
63443 +case "(($ac_try" in
63444 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
63445 + *) ac_try_echo=$ac_try;;
63446 +esac
63447 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
63448 + (eval "$ac_compile") 2>conftest.er1
63449 ac_status=$?
63450 grep -v '^ *+' conftest.er1 >conftest.err
63451 rm -f conftest.er1
63452 cat conftest.err >&5
63453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
63454 - (exit $ac_status); } &&
63455 - { ac_try='test -z "$ac_c_werror_flag"
63456 - || test ! -s conftest.err'
63457 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
63458 - (eval $ac_try) 2>&5
63459 - ac_status=$?
63460 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
63461 - (exit $ac_status); }; } &&
63462 - { ac_try='test -s conftest.$ac_objext'
63463 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
63464 - (eval $ac_try) 2>&5
63465 - ac_status=$?
63466 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
63467 - (exit $ac_status); }; }; then
63468 + (exit $ac_status); } && {
63469 + test -z "$ac_c_werror_flag" ||
63470 + test ! -s conftest.err
63471 + } && test -s conftest.$ac_objext; then
63472 ac_header_compiler=yes
63473 else
63474 echo "$as_me: failed program was:" >&5
63475 sed 's/^/| /' conftest.$ac_ext >&5
63476
63477 -ac_header_compiler=no
63478 + ac_header_compiler=no
63479 fi
63480 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
63481 -echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
63482 -echo "${ECHO_T}$ac_header_compiler" >&6
63483 +
63484 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
63485 +{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
63486 +echo "${ECHO_T}$ac_header_compiler" >&6; }
63487
63488 # Is the header present?
63489 -echo "$as_me:$LINENO: checking libintl.h presence" >&5
63490 -echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
63491 +{ echo "$as_me:$LINENO: checking libintl.h presence" >&5
63492 +echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6; }
63493 cat >conftest.$ac_ext <<_ACEOF
63494 /* confdefs.h. */
63495 _ACEOF
63496 @@ -7320,24 +7928,22 @@ cat >>conftest.$ac_ext <<_ACEOF
63497 /* end confdefs.h. */
63498 #include <libintl.h>
63499 _ACEOF
63500 -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
63501 - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
63502 +if { (ac_try="$ac_cpp conftest.$ac_ext"
63503 +case "(($ac_try" in
63504 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
63505 + *) ac_try_echo=$ac_try;;
63506 +esac
63507 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
63508 + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
63509 ac_status=$?
63510 grep -v '^ *+' conftest.er1 >conftest.err
63511 rm -f conftest.er1
63512 cat conftest.err >&5
63513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
63514 - (exit $ac_status); } >/dev/null; then
63515 - if test -s conftest.err; then
63516 - ac_cpp_err=$ac_c_preproc_warn_flag
63517 - ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
63518 - else
63519 - ac_cpp_err=
63520 - fi
63521 -else
63522 - ac_cpp_err=yes
63523 -fi
63524 -if test -z "$ac_cpp_err"; then
63525 + (exit $ac_status); } >/dev/null && {
63526 + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
63527 + test ! -s conftest.err
63528 + }; then
63529 ac_header_preproc=yes
63530 else
63531 echo "$as_me: failed program was:" >&5
63532 @@ -7345,9 +7951,10 @@ sed 's/^/| /' conftest.$ac_ext >&5
63533
63534 ac_header_preproc=no
63535 fi
63536 +
63537 rm -f conftest.err conftest.$ac_ext
63538 -echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
63539 -echo "${ECHO_T}$ac_header_preproc" >&6
63540 +{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
63541 +echo "${ECHO_T}$ac_header_preproc" >&6; }
63542
63543 # So? What about this header?
63544 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
63545 @@ -7371,30 +7978,23 @@ echo "$as_me: WARNING: libintl.h: se
63546 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
63547 { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
63548 echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
63549 - (
63550 - cat <<\_ASBOX
63551 -## ------------------------------------------ ##
63552 -## Report this to the AC_PACKAGE_NAME lists. ##
63553 -## ------------------------------------------ ##
63554 -_ASBOX
63555 - ) |
63556 - sed "s/^/$as_me: WARNING: /" >&2
63557 +
63558 ;;
63559 esac
63560 -echo "$as_me:$LINENO: checking for libintl.h" >&5
63561 -echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
63562 +{ echo "$as_me:$LINENO: checking for libintl.h" >&5
63563 +echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; }
63564 if test "${ac_cv_header_libintl_h+set}" = set; then
63565 echo $ECHO_N "(cached) $ECHO_C" >&6
63566 else
63567 ac_cv_header_libintl_h=$ac_header_preproc
63568 fi
63569 -echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
63570 -echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
63571 +{ echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
63572 +echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; }
63573
63574 fi
63575 if test $ac_cv_header_libintl_h = yes; then
63576 - echo "$as_me:$LINENO: checking for gettext in libc" >&5
63577 -echo $ECHO_N "checking for gettext in libc... $ECHO_C" >&6
63578 + { echo "$as_me:$LINENO: checking for gettext in libc" >&5
63579 +echo $ECHO_N "checking for gettext in libc... $ECHO_C" >&6; }
63580 if test "${gt_cv_func_gettext_libc+set}" = set; then
63581 echo $ECHO_N "(cached) $ECHO_C" >&6
63582 else
63583 @@ -7414,43 +8014,40 @@ return (int) gettext ("")
63584 }
63585 _ACEOF
63586 rm -f conftest.$ac_objext conftest$ac_exeext
63587 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
63588 - (eval $ac_link) 2>conftest.er1
63589 +if { (ac_try="$ac_link"
63590 +case "(($ac_try" in
63591 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
63592 + *) ac_try_echo=$ac_try;;
63593 +esac
63594 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
63595 + (eval "$ac_link") 2>conftest.er1
63596 ac_status=$?
63597 grep -v '^ *+' conftest.er1 >conftest.err
63598 rm -f conftest.er1
63599 cat conftest.err >&5
63600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
63601 - (exit $ac_status); } &&
63602 - { ac_try='test -z "$ac_c_werror_flag"
63603 - || test ! -s conftest.err'
63604 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
63605 - (eval $ac_try) 2>&5
63606 - ac_status=$?
63607 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
63608 - (exit $ac_status); }; } &&
63609 - { ac_try='test -s conftest$ac_exeext'
63610 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
63611 - (eval $ac_try) 2>&5
63612 - ac_status=$?
63613 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
63614 - (exit $ac_status); }; }; then
63615 + (exit $ac_status); } && {
63616 + test -z "$ac_c_werror_flag" ||
63617 + test ! -s conftest.err
63618 + } && test -s conftest$ac_exeext &&
63619 + $as_test_x conftest$ac_exeext; then
63620 gt_cv_func_gettext_libc=yes
63621 else
63622 echo "$as_me: failed program was:" >&5
63623 sed 's/^/| /' conftest.$ac_ext >&5
63624
63625 -gt_cv_func_gettext_libc=no
63626 + gt_cv_func_gettext_libc=no
63627 fi
63628 -rm -f conftest.err conftest.$ac_objext \
63629 +
63630 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
63631 conftest$ac_exeext conftest.$ac_ext
63632 fi
63633 -echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libc" >&5
63634 -echo "${ECHO_T}$gt_cv_func_gettext_libc" >&6
63635 +{ echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libc" >&5
63636 +echo "${ECHO_T}$gt_cv_func_gettext_libc" >&6; }
63637
63638 if test "$gt_cv_func_gettext_libc" != "yes"; then
63639 - echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
63640 -echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6
63641 + { echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
63642 +echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6; }
63643 if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
63644 echo $ECHO_N "(cached) $ECHO_C" >&6
63645 else
63646 @@ -7463,59 +8060,56 @@ cat confdefs.h >>conftest.$ac_ext
63647 cat >>conftest.$ac_ext <<_ACEOF
63648 /* end confdefs.h. */
63649
63650 -/* Override any gcc2 internal prototype to avoid an error. */
63651 +/* Override any GCC internal prototype to avoid an error.
63652 + Use char because int might match the return type of a GCC
63653 + builtin and then its argument prototype would still apply. */
63654 #ifdef __cplusplus
63655 extern "C"
63656 #endif
63657 -/* We use char because int might match the return type of a gcc2
63658 - builtin and then its argument prototype would still apply. */
63659 char bindtextdomain ();
63660 int
63661 main ()
63662 {
63663 -bindtextdomain ();
63664 +return bindtextdomain ();
63665 ;
63666 return 0;
63667 }
63668 _ACEOF
63669 rm -f conftest.$ac_objext conftest$ac_exeext
63670 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
63671 - (eval $ac_link) 2>conftest.er1
63672 +if { (ac_try="$ac_link"
63673 +case "(($ac_try" in
63674 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
63675 + *) ac_try_echo=$ac_try;;
63676 +esac
63677 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
63678 + (eval "$ac_link") 2>conftest.er1
63679 ac_status=$?
63680 grep -v '^ *+' conftest.er1 >conftest.err
63681 rm -f conftest.er1
63682 cat conftest.err >&5
63683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
63684 - (exit $ac_status); } &&
63685 - { ac_try='test -z "$ac_c_werror_flag"
63686 - || test ! -s conftest.err'
63687 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
63688 - (eval $ac_try) 2>&5
63689 - ac_status=$?
63690 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
63691 - (exit $ac_status); }; } &&
63692 - { ac_try='test -s conftest$ac_exeext'
63693 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
63694 - (eval $ac_try) 2>&5
63695 - ac_status=$?
63696 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
63697 - (exit $ac_status); }; }; then
63698 + (exit $ac_status); } && {
63699 + test -z "$ac_c_werror_flag" ||
63700 + test ! -s conftest.err
63701 + } && test -s conftest$ac_exeext &&
63702 + $as_test_x conftest$ac_exeext; then
63703 ac_cv_lib_intl_bindtextdomain=yes
63704 else
63705 echo "$as_me: failed program was:" >&5
63706 sed 's/^/| /' conftest.$ac_ext >&5
63707
63708 -ac_cv_lib_intl_bindtextdomain=no
63709 + ac_cv_lib_intl_bindtextdomain=no
63710 fi
63711 -rm -f conftest.err conftest.$ac_objext \
63712 +
63713 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
63714 conftest$ac_exeext conftest.$ac_ext
63715 LIBS=$ac_check_lib_save_LIBS
63716 fi
63717 -echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
63718 -echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6
63719 +{ echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
63720 +echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6; }
63721 if test $ac_cv_lib_intl_bindtextdomain = yes; then
63722 - echo "$as_me:$LINENO: checking for gettext in libintl" >&5
63723 -echo $ECHO_N "checking for gettext in libintl... $ECHO_C" >&6
63724 + { echo "$as_me:$LINENO: checking for gettext in libintl" >&5
63725 +echo $ECHO_N "checking for gettext in libintl... $ECHO_C" >&6; }
63726 if test "${gt_cv_func_gettext_libintl+set}" = set; then
63727 echo $ECHO_N "(cached) $ECHO_C" >&6
63728 else
63729 @@ -7535,39 +8129,36 @@ return (int) gettext ("")
63730 }
63731 _ACEOF
63732 rm -f conftest.$ac_objext conftest$ac_exeext
63733 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
63734 - (eval $ac_link) 2>conftest.er1
63735 +if { (ac_try="$ac_link"
63736 +case "(($ac_try" in
63737 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
63738 + *) ac_try_echo=$ac_try;;
63739 +esac
63740 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
63741 + (eval "$ac_link") 2>conftest.er1
63742 ac_status=$?
63743 grep -v '^ *+' conftest.er1 >conftest.err
63744 rm -f conftest.er1
63745 cat conftest.err >&5
63746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
63747 - (exit $ac_status); } &&
63748 - { ac_try='test -z "$ac_c_werror_flag"
63749 - || test ! -s conftest.err'
63750 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
63751 - (eval $ac_try) 2>&5
63752 - ac_status=$?
63753 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
63754 - (exit $ac_status); }; } &&
63755 - { ac_try='test -s conftest$ac_exeext'
63756 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
63757 - (eval $ac_try) 2>&5
63758 - ac_status=$?
63759 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
63760 - (exit $ac_status); }; }; then
63761 + (exit $ac_status); } && {
63762 + test -z "$ac_c_werror_flag" ||
63763 + test ! -s conftest.err
63764 + } && test -s conftest$ac_exeext &&
63765 + $as_test_x conftest$ac_exeext; then
63766 gt_cv_func_gettext_libintl=yes
63767 else
63768 echo "$as_me: failed program was:" >&5
63769 sed 's/^/| /' conftest.$ac_ext >&5
63770
63771 -gt_cv_func_gettext_libintl=no
63772 + gt_cv_func_gettext_libintl=no
63773 fi
63774 -rm -f conftest.err conftest.$ac_objext \
63775 +
63776 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
63777 conftest$ac_exeext conftest.$ac_ext
63778 fi
63779 -echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libintl" >&5
63780 -echo "${ECHO_T}$gt_cv_func_gettext_libintl" >&6
63781 +{ echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libintl" >&5
63782 +echo "${ECHO_T}$gt_cv_func_gettext_libintl" >&6; }
63783 fi
63784
63785 fi
63786 @@ -7581,8 +8172,8 @@ _ACEOF
63787
63788 # Extract the first word of "msgfmt", so it can be a program name with args.
63789 set dummy msgfmt; ac_word=$2
63790 -echo "$as_me:$LINENO: checking for $ac_word" >&5
63791 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
63792 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
63793 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
63794 if test "${ac_cv_path_MSGFMT+set}" = set; then
63795 echo $ECHO_N "(cached) $ECHO_C" >&6
63796 else
63797 @@ -7608,20 +8199,20 @@ esac
63798 fi
63799 MSGFMT="$ac_cv_path_MSGFMT"
63800 if test -n "$MSGFMT"; then
63801 - echo "$as_me:$LINENO: result: $MSGFMT" >&5
63802 -echo "${ECHO_T}$MSGFMT" >&6
63803 + { echo "$as_me:$LINENO: result: $MSGFMT" >&5
63804 +echo "${ECHO_T}$MSGFMT" >&6; }
63805 else
63806 - echo "$as_me:$LINENO: result: no" >&5
63807 -echo "${ECHO_T}no" >&6
63808 + { echo "$as_me:$LINENO: result: no" >&5
63809 +echo "${ECHO_T}no" >&6; }
63810 fi
63811 if test "$MSGFMT" != "no"; then
63812
63813 for ac_func in dcgettext
63814 do
63815 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
63816 -echo "$as_me:$LINENO: checking for $ac_func" >&5
63817 -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
63818 -if eval "test \"\${$as_ac_var+set}\" = set"; then
63819 +{ echo "$as_me:$LINENO: checking for $ac_func" >&5
63820 +echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
63821 +if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
63822 echo $ECHO_N "(cached) $ECHO_C" >&6
63823 else
63824 cat >conftest.$ac_ext <<_ACEOF
63825 @@ -7647,68 +8238,60 @@ cat >>conftest.$ac_ext <<_ACEOF
63826
63827 #undef $ac_func
63828
63829 -/* Override any gcc2 internal prototype to avoid an error. */
63830 +/* Override any GCC internal prototype to avoid an error.
63831 + Use char because int might match the return type of a GCC
63832 + builtin and then its argument prototype would still apply. */
63833 #ifdef __cplusplus
63834 extern "C"
63835 -{
63836 #endif
63837 -/* We use char because int might match the return type of a gcc2
63838 - builtin and then its argument prototype would still apply. */
63839 char $ac_func ();
63840 /* The GNU C library defines this for functions which it implements
63841 to always fail with ENOSYS. Some functions are actually named
63842 something starting with __ and the normal name is an alias. */
63843 -#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
63844 +#if defined __stub_$ac_func || defined __stub___$ac_func
63845 choke me
63846 -#else
63847 -char (*f) () = $ac_func;
63848 -#endif
63849 -#ifdef __cplusplus
63850 -}
63851 #endif
63852
63853 int
63854 main ()
63855 {
63856 -return f != $ac_func;
63857 +return $ac_func ();
63858 ;
63859 return 0;
63860 }
63861 _ACEOF
63862 rm -f conftest.$ac_objext conftest$ac_exeext
63863 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
63864 - (eval $ac_link) 2>conftest.er1
63865 +if { (ac_try="$ac_link"
63866 +case "(($ac_try" in
63867 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
63868 + *) ac_try_echo=$ac_try;;
63869 +esac
63870 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
63871 + (eval "$ac_link") 2>conftest.er1
63872 ac_status=$?
63873 grep -v '^ *+' conftest.er1 >conftest.err
63874 rm -f conftest.er1
63875 cat conftest.err >&5
63876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
63877 - (exit $ac_status); } &&
63878 - { ac_try='test -z "$ac_c_werror_flag"
63879 - || test ! -s conftest.err'
63880 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
63881 - (eval $ac_try) 2>&5
63882 - ac_status=$?
63883 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
63884 - (exit $ac_status); }; } &&
63885 - { ac_try='test -s conftest$ac_exeext'
63886 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
63887 - (eval $ac_try) 2>&5
63888 - ac_status=$?
63889 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
63890 - (exit $ac_status); }; }; then
63891 + (exit $ac_status); } && {
63892 + test -z "$ac_c_werror_flag" ||
63893 + test ! -s conftest.err
63894 + } && test -s conftest$ac_exeext &&
63895 + $as_test_x conftest$ac_exeext; then
63896 eval "$as_ac_var=yes"
63897 else
63898 echo "$as_me: failed program was:" >&5
63899 sed 's/^/| /' conftest.$ac_ext >&5
63900
63901 -eval "$as_ac_var=no"
63902 + eval "$as_ac_var=no"
63903 fi
63904 -rm -f conftest.err conftest.$ac_objext \
63905 +
63906 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
63907 conftest$ac_exeext conftest.$ac_ext
63908 fi
63909 -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
63910 -echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
63911 +ac_res=`eval echo '${'$as_ac_var'}'`
63912 + { echo "$as_me:$LINENO: result: $ac_res" >&5
63913 +echo "${ECHO_T}$ac_res" >&6; }
63914 if test `eval echo '${'$as_ac_var'}'` = yes; then
63915 cat >>confdefs.h <<_ACEOF
63916 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
63917 @@ -7719,8 +8302,8 @@ done
63918
63919 # Extract the first word of "gmsgfmt", so it can be a program name with args.
63920 set dummy gmsgfmt; ac_word=$2
63921 -echo "$as_me:$LINENO: checking for $ac_word" >&5
63922 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
63923 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
63924 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
63925 if test "${ac_cv_path_GMSGFMT+set}" = set; then
63926 echo $ECHO_N "(cached) $ECHO_C" >&6
63927 else
63928 @@ -7735,32 +8318,33 @@ do
63929 IFS=$as_save_IFS
63930 test -z "$as_dir" && as_dir=.
63931 for ac_exec_ext in '' $ac_executable_extensions; do
63932 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
63933 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
63934 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
63935 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
63936 break 2
63937 fi
63938 done
63939 done
63940 +IFS=$as_save_IFS
63941
63942 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
63943 ;;
63944 esac
63945 fi
63946 GMSGFMT=$ac_cv_path_GMSGFMT
63947 -
63948 if test -n "$GMSGFMT"; then
63949 - echo "$as_me:$LINENO: result: $GMSGFMT" >&5
63950 -echo "${ECHO_T}$GMSGFMT" >&6
63951 + { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
63952 +echo "${ECHO_T}$GMSGFMT" >&6; }
63953 else
63954 - echo "$as_me:$LINENO: result: no" >&5
63955 -echo "${ECHO_T}no" >&6
63956 + { echo "$as_me:$LINENO: result: no" >&5
63957 +echo "${ECHO_T}no" >&6; }
63958 fi
63959
63960 +
63961 # Extract the first word of "xgettext", so it can be a program name with args.
63962 set dummy xgettext; ac_word=$2
63963 -echo "$as_me:$LINENO: checking for $ac_word" >&5
63964 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
63965 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
63966 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
63967 if test "${ac_cv_path_XGETTEXT+set}" = set; then
63968 echo $ECHO_N "(cached) $ECHO_C" >&6
63969 else
63970 @@ -7786,11 +8370,11 @@ esac
63971 fi
63972 XGETTEXT="$ac_cv_path_XGETTEXT"
63973 if test -n "$XGETTEXT"; then
63974 - echo "$as_me:$LINENO: result: $XGETTEXT" >&5
63975 -echo "${ECHO_T}$XGETTEXT" >&6
63976 + { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
63977 +echo "${ECHO_T}$XGETTEXT" >&6; }
63978 else
63979 - echo "$as_me:$LINENO: result: no" >&5
63980 -echo "${ECHO_T}no" >&6
63981 + { echo "$as_me:$LINENO: result: no" >&5
63982 +echo "${ECHO_T}no" >&6; }
63983 fi
63984
63985 cat >conftest.$ac_ext <<_ACEOF
63986 @@ -7810,37 +8394,34 @@ extern int _nl_msg_cat_cntr;
63987 }
63988 _ACEOF
63989 rm -f conftest.$ac_objext conftest$ac_exeext
63990 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
63991 - (eval $ac_link) 2>conftest.er1
63992 +if { (ac_try="$ac_link"
63993 +case "(($ac_try" in
63994 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
63995 + *) ac_try_echo=$ac_try;;
63996 +esac
63997 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
63998 + (eval "$ac_link") 2>conftest.er1
63999 ac_status=$?
64000 grep -v '^ *+' conftest.er1 >conftest.err
64001 rm -f conftest.er1
64002 cat conftest.err >&5
64003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64004 - (exit $ac_status); } &&
64005 - { ac_try='test -z "$ac_c_werror_flag"
64006 - || test ! -s conftest.err'
64007 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
64008 - (eval $ac_try) 2>&5
64009 - ac_status=$?
64010 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
64011 - (exit $ac_status); }; } &&
64012 - { ac_try='test -s conftest$ac_exeext'
64013 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
64014 - (eval $ac_try) 2>&5
64015 - ac_status=$?
64016 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
64017 - (exit $ac_status); }; }; then
64018 + (exit $ac_status); } && {
64019 + test -z "$ac_c_werror_flag" ||
64020 + test ! -s conftest.err
64021 + } && test -s conftest$ac_exeext &&
64022 + $as_test_x conftest$ac_exeext; then
64023 CATOBJEXT=.gmo
64024 DATADIRNAME=share
64025 else
64026 echo "$as_me: failed program was:" >&5
64027 sed 's/^/| /' conftest.$ac_ext >&5
64028
64029 -CATOBJEXT=.mo
64030 + CATOBJEXT=.mo
64031 DATADIRNAME=lib
64032 fi
64033 -rm -f conftest.err conftest.$ac_objext \
64034 +
64035 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
64036 conftest$ac_exeext conftest.$ac_ext
64037 INSTOBJEXT=.mo
64038 fi
64039 @@ -7862,8 +8443,8 @@ fi
64040 INTLOBJS="\$(GETTOBJS)"
64041 # Extract the first word of "msgfmt", so it can be a program name with args.
64042 set dummy msgfmt; ac_word=$2
64043 -echo "$as_me:$LINENO: checking for $ac_word" >&5
64044 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
64045 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
64046 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
64047 if test "${ac_cv_path_MSGFMT+set}" = set; then
64048 echo $ECHO_N "(cached) $ECHO_C" >&6
64049 else
64050 @@ -7889,17 +8470,17 @@ esac
64051 fi
64052 MSGFMT="$ac_cv_path_MSGFMT"
64053 if test -n "$MSGFMT"; then
64054 - echo "$as_me:$LINENO: result: $MSGFMT" >&5
64055 -echo "${ECHO_T}$MSGFMT" >&6
64056 + { echo "$as_me:$LINENO: result: $MSGFMT" >&5
64057 +echo "${ECHO_T}$MSGFMT" >&6; }
64058 else
64059 - echo "$as_me:$LINENO: result: no" >&5
64060 -echo "${ECHO_T}no" >&6
64061 + { echo "$as_me:$LINENO: result: no" >&5
64062 +echo "${ECHO_T}no" >&6; }
64063 fi
64064
64065 # Extract the first word of "gmsgfmt", so it can be a program name with args.
64066 set dummy gmsgfmt; ac_word=$2
64067 -echo "$as_me:$LINENO: checking for $ac_word" >&5
64068 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
64069 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
64070 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
64071 if test "${ac_cv_path_GMSGFMT+set}" = set; then
64072 echo $ECHO_N "(cached) $ECHO_C" >&6
64073 else
64074 @@ -7914,32 +8495,33 @@ do
64075 IFS=$as_save_IFS
64076 test -z "$as_dir" && as_dir=.
64077 for ac_exec_ext in '' $ac_executable_extensions; do
64078 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
64079 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
64080 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
64081 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
64082 break 2
64083 fi
64084 done
64085 done
64086 +IFS=$as_save_IFS
64087
64088 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
64089 ;;
64090 esac
64091 fi
64092 GMSGFMT=$ac_cv_path_GMSGFMT
64093 -
64094 if test -n "$GMSGFMT"; then
64095 - echo "$as_me:$LINENO: result: $GMSGFMT" >&5
64096 -echo "${ECHO_T}$GMSGFMT" >&6
64097 + { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
64098 +echo "${ECHO_T}$GMSGFMT" >&6; }
64099 else
64100 - echo "$as_me:$LINENO: result: no" >&5
64101 -echo "${ECHO_T}no" >&6
64102 + { echo "$as_me:$LINENO: result: no" >&5
64103 +echo "${ECHO_T}no" >&6; }
64104 fi
64105
64106 +
64107 # Extract the first word of "xgettext", so it can be a program name with args.
64108 set dummy xgettext; ac_word=$2
64109 -echo "$as_me:$LINENO: checking for $ac_word" >&5
64110 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
64111 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
64112 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
64113 if test "${ac_cv_path_XGETTEXT+set}" = set; then
64114 echo $ECHO_N "(cached) $ECHO_C" >&6
64115 else
64116 @@ -7965,11 +8547,11 @@ esac
64117 fi
64118 XGETTEXT="$ac_cv_path_XGETTEXT"
64119 if test -n "$XGETTEXT"; then
64120 - echo "$as_me:$LINENO: result: $XGETTEXT" >&5
64121 -echo "${ECHO_T}$XGETTEXT" >&6
64122 + { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
64123 +echo "${ECHO_T}$XGETTEXT" >&6; }
64124 else
64125 - echo "$as_me:$LINENO: result: no" >&5
64126 -echo "${ECHO_T}no" >&6
64127 + { echo "$as_me:$LINENO: result: no" >&5
64128 +echo "${ECHO_T}no" >&6; }
64129 fi
64130
64131
64132 @@ -7988,8 +8570,8 @@ fi
64133 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
64134 : ;
64135 else
64136 - echo "$as_me:$LINENO: result: found xgettext programs is not GNU xgettext; ignore it" >&5
64137 -echo "${ECHO_T}found xgettext programs is not GNU xgettext; ignore it" >&6
64138 + { echo "$as_me:$LINENO: result: found xgettext programs is not GNU xgettext; ignore it" >&5
64139 +echo "${ECHO_T}found xgettext programs is not GNU xgettext; ignore it" >&6; }
64140 XGETTEXT=":"
64141 fi
64142 fi
64143 @@ -8038,8 +8620,8 @@ _ACEOF
64144 if test "x$ALL_LINGUAS" = "x"; then
64145 LINGUAS=
64146 else
64147 - echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
64148 -echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
64149 + { echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
64150 +echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6; }
64151 NEW_LINGUAS=
64152 for lang in ${LINGUAS=$ALL_LINGUAS}; do
64153 case "$ALL_LINGUAS" in
64154 @@ -8047,8 +8629,8 @@ echo $ECHO_N "checking for catalogs to b
64155 esac
64156 done
64157 LINGUAS=$NEW_LINGUAS
64158 - echo "$as_me:$LINENO: result: $LINGUAS" >&5
64159 -echo "${ECHO_T}$LINGUAS" >&6
64160 + { echo "$as_me:$LINENO: result: $LINGUAS" >&5
64161 +echo "${ECHO_T}$LINGUAS" >&6; }
64162 fi
64163
64164 if test -n "$LINGUAS"; then
64165 @@ -8067,17 +8649,17 @@ echo "${ECHO_T}$LINGUAS" >&6
64166 if test -f $srcdir/po2tbl.sed.in; then
64167 if test "$CATOBJEXT" = ".cat"; then
64168 if test "${ac_cv_header_linux_version_h+set}" = set; then
64169 - echo "$as_me:$LINENO: checking for linux/version.h" >&5
64170 -echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
64171 + { echo "$as_me:$LINENO: checking for linux/version.h" >&5
64172 +echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6; }
64173 if test "${ac_cv_header_linux_version_h+set}" = set; then
64174 echo $ECHO_N "(cached) $ECHO_C" >&6
64175 fi
64176 -echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
64177 -echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
64178 +{ echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
64179 +echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6; }
64180 else
64181 # Is the header compilable?
64182 -echo "$as_me:$LINENO: checking linux/version.h usability" >&5
64183 -echo $ECHO_N "checking linux/version.h usability... $ECHO_C" >&6
64184 +{ echo "$as_me:$LINENO: checking linux/version.h usability" >&5
64185 +echo $ECHO_N "checking linux/version.h usability... $ECHO_C" >&6; }
64186 cat >conftest.$ac_ext <<_ACEOF
64187 /* confdefs.h. */
64188 _ACEOF
64189 @@ -8088,41 +8670,37 @@ $ac_includes_default
64190 #include <linux/version.h>
64191 _ACEOF
64192 rm -f conftest.$ac_objext
64193 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
64194 - (eval $ac_compile) 2>conftest.er1
64195 +if { (ac_try="$ac_compile"
64196 +case "(($ac_try" in
64197 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
64198 + *) ac_try_echo=$ac_try;;
64199 +esac
64200 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
64201 + (eval "$ac_compile") 2>conftest.er1
64202 ac_status=$?
64203 grep -v '^ *+' conftest.er1 >conftest.err
64204 rm -f conftest.er1
64205 cat conftest.err >&5
64206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64207 - (exit $ac_status); } &&
64208 - { ac_try='test -z "$ac_c_werror_flag"
64209 - || test ! -s conftest.err'
64210 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
64211 - (eval $ac_try) 2>&5
64212 - ac_status=$?
64213 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
64214 - (exit $ac_status); }; } &&
64215 - { ac_try='test -s conftest.$ac_objext'
64216 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
64217 - (eval $ac_try) 2>&5
64218 - ac_status=$?
64219 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
64220 - (exit $ac_status); }; }; then
64221 + (exit $ac_status); } && {
64222 + test -z "$ac_c_werror_flag" ||
64223 + test ! -s conftest.err
64224 + } && test -s conftest.$ac_objext; then
64225 ac_header_compiler=yes
64226 else
64227 echo "$as_me: failed program was:" >&5
64228 sed 's/^/| /' conftest.$ac_ext >&5
64229
64230 -ac_header_compiler=no
64231 + ac_header_compiler=no
64232 fi
64233 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
64234 -echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
64235 -echo "${ECHO_T}$ac_header_compiler" >&6
64236 +
64237 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
64238 +{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
64239 +echo "${ECHO_T}$ac_header_compiler" >&6; }
64240
64241 # Is the header present?
64242 -echo "$as_me:$LINENO: checking linux/version.h presence" >&5
64243 -echo $ECHO_N "checking linux/version.h presence... $ECHO_C" >&6
64244 +{ echo "$as_me:$LINENO: checking linux/version.h presence" >&5
64245 +echo $ECHO_N "checking linux/version.h presence... $ECHO_C" >&6; }
64246 cat >conftest.$ac_ext <<_ACEOF
64247 /* confdefs.h. */
64248 _ACEOF
64249 @@ -8131,24 +8709,22 @@ cat >>conftest.$ac_ext <<_ACEOF
64250 /* end confdefs.h. */
64251 #include <linux/version.h>
64252 _ACEOF
64253 -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
64254 - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
64255 +if { (ac_try="$ac_cpp conftest.$ac_ext"
64256 +case "(($ac_try" in
64257 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
64258 + *) ac_try_echo=$ac_try;;
64259 +esac
64260 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
64261 + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
64262 ac_status=$?
64263 grep -v '^ *+' conftest.er1 >conftest.err
64264 rm -f conftest.er1
64265 cat conftest.err >&5
64266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64267 - (exit $ac_status); } >/dev/null; then
64268 - if test -s conftest.err; then
64269 - ac_cpp_err=$ac_c_preproc_warn_flag
64270 - ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
64271 - else
64272 - ac_cpp_err=
64273 - fi
64274 -else
64275 - ac_cpp_err=yes
64276 -fi
64277 -if test -z "$ac_cpp_err"; then
64278 + (exit $ac_status); } >/dev/null && {
64279 + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
64280 + test ! -s conftest.err
64281 + }; then
64282 ac_header_preproc=yes
64283 else
64284 echo "$as_me: failed program was:" >&5
64285 @@ -8156,9 +8732,10 @@ sed 's/^/| /' conftest.$ac_ext >&5
64286
64287 ac_header_preproc=no
64288 fi
64289 +
64290 rm -f conftest.err conftest.$ac_ext
64291 -echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
64292 -echo "${ECHO_T}$ac_header_preproc" >&6
64293 +{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
64294 +echo "${ECHO_T}$ac_header_preproc" >&6; }
64295
64296 # So? What about this header?
64297 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
64298 @@ -8182,25 +8759,18 @@ echo "$as_me: WARNING: linux/version.h:
64299 echo "$as_me: WARNING: linux/version.h: proceeding with the preprocessor's result" >&2;}
64300 { echo "$as_me:$LINENO: WARNING: linux/version.h: in the future, the compiler will take precedence" >&5
64301 echo "$as_me: WARNING: linux/version.h: in the future, the compiler will take precedence" >&2;}
64302 - (
64303 - cat <<\_ASBOX
64304 -## ------------------------------------------ ##
64305 -## Report this to the AC_PACKAGE_NAME lists. ##
64306 -## ------------------------------------------ ##
64307 -_ASBOX
64308 - ) |
64309 - sed "s/^/$as_me: WARNING: /" >&2
64310 +
64311 ;;
64312 esac
64313 -echo "$as_me:$LINENO: checking for linux/version.h" >&5
64314 -echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
64315 +{ echo "$as_me:$LINENO: checking for linux/version.h" >&5
64316 +echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6; }
64317 if test "${ac_cv_header_linux_version_h+set}" = set; then
64318 echo $ECHO_N "(cached) $ECHO_C" >&6
64319 else
64320 ac_cv_header_linux_version_h=$ac_header_preproc
64321 fi
64322 -echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
64323 -echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
64324 +{ echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
64325 +echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6; }
64326
64327 fi
64328 if test $ac_cv_header_linux_version_h = yes; then
64329 @@ -8256,8 +8826,8 @@ for ac_prog in 'bison -y' byacc
64330 do
64331 # Extract the first word of "$ac_prog", so it can be a program name with args.
64332 set dummy $ac_prog; ac_word=$2
64333 -echo "$as_me:$LINENO: checking for $ac_word" >&5
64334 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
64335 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
64336 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
64337 if test "${ac_cv_prog_YACC+set}" = set; then
64338 echo $ECHO_N "(cached) $ECHO_C" >&6
64339 else
64340 @@ -8270,25 +8840,27 @@ do
64341 IFS=$as_save_IFS
64342 test -z "$as_dir" && as_dir=.
64343 for ac_exec_ext in '' $ac_executable_extensions; do
64344 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
64345 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
64346 ac_cv_prog_YACC="$ac_prog"
64347 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
64348 break 2
64349 fi
64350 done
64351 done
64352 +IFS=$as_save_IFS
64353
64354 fi
64355 fi
64356 YACC=$ac_cv_prog_YACC
64357 if test -n "$YACC"; then
64358 - echo "$as_me:$LINENO: result: $YACC" >&5
64359 -echo "${ECHO_T}$YACC" >&6
64360 + { echo "$as_me:$LINENO: result: $YACC" >&5
64361 +echo "${ECHO_T}$YACC" >&6; }
64362 else
64363 - echo "$as_me:$LINENO: result: no" >&5
64364 -echo "${ECHO_T}no" >&6
64365 + { echo "$as_me:$LINENO: result: no" >&5
64366 +echo "${ECHO_T}no" >&6; }
64367 fi
64368
64369 +
64370 test -n "$YACC" && break
64371 done
64372 test -n "$YACC" || YACC="yacc"
64373 @@ -8297,8 +8869,8 @@ for ac_prog in flex lex
64374 do
64375 # Extract the first word of "$ac_prog", so it can be a program name with args.
64376 set dummy $ac_prog; ac_word=$2
64377 -echo "$as_me:$LINENO: checking for $ac_word" >&5
64378 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
64379 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
64380 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
64381 if test "${ac_cv_prog_LEX+set}" = set; then
64382 echo $ECHO_N "(cached) $ECHO_C" >&6
64383 else
64384 @@ -8311,253 +8883,182 @@ do
64385 IFS=$as_save_IFS
64386 test -z "$as_dir" && as_dir=.
64387 for ac_exec_ext in '' $ac_executable_extensions; do
64388 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
64389 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
64390 ac_cv_prog_LEX="$ac_prog"
64391 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
64392 break 2
64393 fi
64394 done
64395 done
64396 +IFS=$as_save_IFS
64397
64398 fi
64399 fi
64400 LEX=$ac_cv_prog_LEX
64401 if test -n "$LEX"; then
64402 - echo "$as_me:$LINENO: result: $LEX" >&5
64403 -echo "${ECHO_T}$LEX" >&6
64404 + { echo "$as_me:$LINENO: result: $LEX" >&5
64405 +echo "${ECHO_T}$LEX" >&6; }
64406 else
64407 - echo "$as_me:$LINENO: result: no" >&5
64408 -echo "${ECHO_T}no" >&6
64409 + { echo "$as_me:$LINENO: result: no" >&5
64410 +echo "${ECHO_T}no" >&6; }
64411 fi
64412
64413 +
64414 test -n "$LEX" && break
64415 done
64416 test -n "$LEX" || LEX=":"
64417
64418 -if test -z "$LEXLIB"
64419 -then
64420 - echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
64421 -echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
64422 -if test "${ac_cv_lib_fl_yywrap+set}" = set; then
64423 - echo $ECHO_N "(cached) $ECHO_C" >&6
64424 -else
64425 - ac_check_lib_save_LIBS=$LIBS
64426 -LIBS="-lfl $LIBS"
64427 -cat >conftest.$ac_ext <<_ACEOF
64428 -/* confdefs.h. */
64429 -_ACEOF
64430 -cat confdefs.h >>conftest.$ac_ext
64431 -cat >>conftest.$ac_ext <<_ACEOF
64432 -/* end confdefs.h. */
64433 -
64434 -/* Override any gcc2 internal prototype to avoid an error. */
64435 -#ifdef __cplusplus
64436 -extern "C"
64437 +if test "x$LEX" != "x:"; then
64438 + cat >conftest.l <<_ACEOF
64439 +%%
64440 +a { ECHO; }
64441 +b { REJECT; }
64442 +c { yymore (); }
64443 +d { yyless (1); }
64444 +e { yyless (input () != 0); }
64445 +f { unput (yytext[0]); }
64446 +. { BEGIN INITIAL; }
64447 +%%
64448 +#ifdef YYTEXT_POINTER
64449 +extern char *yytext;
64450 #endif
64451 -/* We use char because int might match the return type of a gcc2
64452 - builtin and then its argument prototype would still apply. */
64453 -char yywrap ();
64454 int
64455 -main ()
64456 +main (void)
64457 {
64458 -yywrap ();
64459 - ;
64460 - return 0;
64461 + return ! yylex () + ! yywrap ();
64462 }
64463 _ACEOF
64464 -rm -f conftest.$ac_objext conftest$ac_exeext
64465 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
64466 - (eval $ac_link) 2>conftest.er1
64467 - ac_status=$?
64468 - grep -v '^ *+' conftest.er1 >conftest.err
64469 - rm -f conftest.er1
64470 - cat conftest.err >&5
64471 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
64472 - (exit $ac_status); } &&
64473 - { ac_try='test -z "$ac_c_werror_flag"
64474 - || test ! -s conftest.err'
64475 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
64476 - (eval $ac_try) 2>&5
64477 - ac_status=$?
64478 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
64479 - (exit $ac_status); }; } &&
64480 - { ac_try='test -s conftest$ac_exeext'
64481 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
64482 - (eval $ac_try) 2>&5
64483 +{ (ac_try="$LEX conftest.l"
64484 +case "(($ac_try" in
64485 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
64486 + *) ac_try_echo=$ac_try;;
64487 +esac
64488 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
64489 + (eval "$LEX conftest.l") 2>&5
64490 ac_status=$?
64491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64492 - (exit $ac_status); }; }; then
64493 - ac_cv_lib_fl_yywrap=yes
64494 + (exit $ac_status); }
64495 +{ echo "$as_me:$LINENO: checking lex output file root" >&5
64496 +echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; }
64497 +if test "${ac_cv_prog_lex_root+set}" = set; then
64498 + echo $ECHO_N "(cached) $ECHO_C" >&6
64499 else
64500 - echo "$as_me: failed program was:" >&5
64501 -sed 's/^/| /' conftest.$ac_ext >&5
64502
64503 -ac_cv_lib_fl_yywrap=no
64504 +if test -f lex.yy.c; then
64505 + ac_cv_prog_lex_root=lex.yy
64506 +elif test -f lexyy.c; then
64507 + ac_cv_prog_lex_root=lexyy
64508 +else
64509 + { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
64510 +echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
64511 + { (exit 1); exit 1; }; }
64512 fi
64513 -rm -f conftest.err conftest.$ac_objext \
64514 - conftest$ac_exeext conftest.$ac_ext
64515 -LIBS=$ac_check_lib_save_LIBS
64516 fi
64517 -echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
64518 -echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
64519 -if test $ac_cv_lib_fl_yywrap = yes; then
64520 - LEXLIB="-lfl"
64521 -else
64522 - echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
64523 -echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
64524 -if test "${ac_cv_lib_l_yywrap+set}" = set; then
64525 +{ echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
64526 +echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; }
64527 +LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
64528 +
64529 +if test -z "${LEXLIB+set}"; then
64530 + { echo "$as_me:$LINENO: checking lex library" >&5
64531 +echo $ECHO_N "checking lex library... $ECHO_C" >&6; }
64532 +if test "${ac_cv_lib_lex+set}" = set; then
64533 echo $ECHO_N "(cached) $ECHO_C" >&6
64534 else
64535 - ac_check_lib_save_LIBS=$LIBS
64536 -LIBS="-ll $LIBS"
64537 -cat >conftest.$ac_ext <<_ACEOF
64538 -/* confdefs.h. */
64539 -_ACEOF
64540 -cat confdefs.h >>conftest.$ac_ext
64541 -cat >>conftest.$ac_ext <<_ACEOF
64542 -/* end confdefs.h. */
64543
64544 -/* Override any gcc2 internal prototype to avoid an error. */
64545 -#ifdef __cplusplus
64546 -extern "C"
64547 -#endif
64548 -/* We use char because int might match the return type of a gcc2
64549 - builtin and then its argument prototype would still apply. */
64550 -char yywrap ();
64551 -int
64552 -main ()
64553 -{
64554 -yywrap ();
64555 - ;
64556 - return 0;
64557 -}
64558 + ac_save_LIBS=$LIBS
64559 + ac_cv_lib_lex='none needed'
64560 + for ac_lib in '' -lfl -ll; do
64561 + LIBS="$ac_lib $ac_save_LIBS"
64562 + cat >conftest.$ac_ext <<_ACEOF
64563 +`cat $LEX_OUTPUT_ROOT.c`
64564 _ACEOF
64565 rm -f conftest.$ac_objext conftest$ac_exeext
64566 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
64567 - (eval $ac_link) 2>conftest.er1
64568 +if { (ac_try="$ac_link"
64569 +case "(($ac_try" in
64570 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
64571 + *) ac_try_echo=$ac_try;;
64572 +esac
64573 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
64574 + (eval "$ac_link") 2>conftest.er1
64575 ac_status=$?
64576 grep -v '^ *+' conftest.er1 >conftest.err
64577 rm -f conftest.er1
64578 cat conftest.err >&5
64579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64580 - (exit $ac_status); } &&
64581 - { ac_try='test -z "$ac_c_werror_flag"
64582 - || test ! -s conftest.err'
64583 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
64584 - (eval $ac_try) 2>&5
64585 - ac_status=$?
64586 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
64587 - (exit $ac_status); }; } &&
64588 - { ac_try='test -s conftest$ac_exeext'
64589 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
64590 - (eval $ac_try) 2>&5
64591 - ac_status=$?
64592 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
64593 - (exit $ac_status); }; }; then
64594 - ac_cv_lib_l_yywrap=yes
64595 + (exit $ac_status); } && {
64596 + test -z "$ac_c_werror_flag" ||
64597 + test ! -s conftest.err
64598 + } && test -s conftest$ac_exeext &&
64599 + $as_test_x conftest$ac_exeext; then
64600 + ac_cv_lib_lex=$ac_lib
64601 else
64602 echo "$as_me: failed program was:" >&5
64603 sed 's/^/| /' conftest.$ac_ext >&5
64604
64605 -ac_cv_lib_l_yywrap=no
64606 -fi
64607 -rm -f conftest.err conftest.$ac_objext \
64608 - conftest$ac_exeext conftest.$ac_ext
64609 -LIBS=$ac_check_lib_save_LIBS
64610 -fi
64611 -echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
64612 -echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
64613 -if test $ac_cv_lib_l_yywrap = yes; then
64614 - LEXLIB="-ll"
64615 -fi
64616
64617 fi
64618
64619 -fi
64620 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
64621 + conftest$ac_exeext conftest.$ac_ext
64622 + test "$ac_cv_lib_lex" != 'none needed' && break
64623 + done
64624 + LIBS=$ac_save_LIBS
64625
64626 -if test "x$LEX" != "x:"; then
64627 - echo "$as_me:$LINENO: checking lex output file root" >&5
64628 -echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
64629 -if test "${ac_cv_prog_lex_root+set}" = set; then
64630 - echo $ECHO_N "(cached) $ECHO_C" >&6
64631 -else
64632 - # The minimal lex program is just a single line: %%. But some broken lexes
64633 -# (Solaris, I think it was) want two %% lines, so accommodate them.
64634 -cat >conftest.l <<_ACEOF
64635 -%%
64636 -%%
64637 -_ACEOF
64638 -{ (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
64639 - (eval $LEX conftest.l) 2>&5
64640 - ac_status=$?
64641 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
64642 - (exit $ac_status); }
64643 -if test -f lex.yy.c; then
64644 - ac_cv_prog_lex_root=lex.yy
64645 -elif test -f lexyy.c; then
64646 - ac_cv_prog_lex_root=lexyy
64647 -else
64648 - { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
64649 -echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
64650 - { (exit 1); exit 1; }; }
64651 fi
64652 +{ echo "$as_me:$LINENO: result: $ac_cv_lib_lex" >&5
64653 +echo "${ECHO_T}$ac_cv_lib_lex" >&6; }
64654 + test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
64655 fi
64656 -echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
64657 -echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
64658 -rm -f conftest.l
64659 -LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
64660
64661 -echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
64662 -echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
64663 +
64664 +{ echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
64665 +echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; }
64666 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
64667 echo $ECHO_N "(cached) $ECHO_C" >&6
64668 else
64669 # POSIX says lex can declare yytext either as a pointer or an array; the
64670 -# default is implementation-dependent. Figure out which it is, since
64671 +# default is implementation-dependent. Figure out which it is, since
64672 # not all implementations provide the %pointer and %array declarations.
64673 ac_cv_prog_lex_yytext_pointer=no
64674 -echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
64675 ac_save_LIBS=$LIBS
64676 -LIBS="$LIBS $LEXLIB"
64677 +LIBS="$LEXLIB $ac_save_LIBS"
64678 cat >conftest.$ac_ext <<_ACEOF
64679 +#define YYTEXT_POINTER 1
64680 `cat $LEX_OUTPUT_ROOT.c`
64681 _ACEOF
64682 rm -f conftest.$ac_objext conftest$ac_exeext
64683 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
64684 - (eval $ac_link) 2>conftest.er1
64685 +if { (ac_try="$ac_link"
64686 +case "(($ac_try" in
64687 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
64688 + *) ac_try_echo=$ac_try;;
64689 +esac
64690 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
64691 + (eval "$ac_link") 2>conftest.er1
64692 ac_status=$?
64693 grep -v '^ *+' conftest.er1 >conftest.err
64694 rm -f conftest.er1
64695 cat conftest.err >&5
64696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64697 - (exit $ac_status); } &&
64698 - { ac_try='test -z "$ac_c_werror_flag"
64699 - || test ! -s conftest.err'
64700 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
64701 - (eval $ac_try) 2>&5
64702 - ac_status=$?
64703 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
64704 - (exit $ac_status); }; } &&
64705 - { ac_try='test -s conftest$ac_exeext'
64706 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
64707 - (eval $ac_try) 2>&5
64708 - ac_status=$?
64709 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
64710 - (exit $ac_status); }; }; then
64711 + (exit $ac_status); } && {
64712 + test -z "$ac_c_werror_flag" ||
64713 + test ! -s conftest.err
64714 + } && test -s conftest$ac_exeext &&
64715 + $as_test_x conftest$ac_exeext; then
64716 ac_cv_prog_lex_yytext_pointer=yes
64717 else
64718 echo "$as_me: failed program was:" >&5
64719 sed 's/^/| /' conftest.$ac_ext >&5
64720
64721 +
64722 fi
64723 -rm -f conftest.err conftest.$ac_objext \
64724 +
64725 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
64726 conftest$ac_exeext conftest.$ac_ext
64727 LIBS=$ac_save_LIBS
64728 -rm -f "${LEX_OUTPUT_ROOT}.c"
64729
64730 fi
64731 -echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
64732 -echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
64733 +{ echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
64734 +echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; }
64735 if test $ac_cv_prog_lex_yytext_pointer = yes; then
64736
64737 cat >>confdefs.h <<\_ACEOF
64738 @@ -8565,23 +9066,24 @@ cat >>confdefs.h <<\_ACEOF
64739 _ACEOF
64740
64741 fi
64742 +rm -f conftest.l $LEX_OUTPUT_ROOT.c
64743
64744 fi
64745 if test "$LEX" = :; then
64746 LEX=${am_missing_run}flex
64747 fi
64748
64749 -echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
64750 -echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
64751 - # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
64752 +{ echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
64753 +echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
64754 + # Check whether --enable-maintainer-mode was given.
64755 if test "${enable_maintainer_mode+set}" = set; then
64756 - enableval="$enable_maintainer_mode"
64757 - USE_MAINTAINER_MODE=$enableval
64758 + enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
64759 else
64760 USE_MAINTAINER_MODE=no
64761 -fi;
64762 - echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
64763 -echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
64764 +fi
64765 +
64766 + { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
64767 +echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
64768
64769
64770 if test $USE_MAINTAINER_MODE = yes; then
64771 @@ -8611,18 +9113,19 @@ fi
64772 for ac_header in string.h strings.h stdlib.h unistd.h elf-hints.h
64773 do
64774 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
64775 -if eval "test \"\${$as_ac_Header+set}\" = set"; then
64776 - echo "$as_me:$LINENO: checking for $ac_header" >&5
64777 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
64778 -if eval "test \"\${$as_ac_Header+set}\" = set"; then
64779 +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
64780 + { echo "$as_me:$LINENO: checking for $ac_header" >&5
64781 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
64782 +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
64783 echo $ECHO_N "(cached) $ECHO_C" >&6
64784 fi
64785 -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
64786 -echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
64787 +ac_res=`eval echo '${'$as_ac_Header'}'`
64788 + { echo "$as_me:$LINENO: result: $ac_res" >&5
64789 +echo "${ECHO_T}$ac_res" >&6; }
64790 else
64791 # Is the header compilable?
64792 -echo "$as_me:$LINENO: checking $ac_header usability" >&5
64793 -echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
64794 +{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
64795 +echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
64796 cat >conftest.$ac_ext <<_ACEOF
64797 /* confdefs.h. */
64798 _ACEOF
64799 @@ -8633,41 +9136,37 @@ $ac_includes_default
64800 #include <$ac_header>
64801 _ACEOF
64802 rm -f conftest.$ac_objext
64803 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
64804 - (eval $ac_compile) 2>conftest.er1
64805 +if { (ac_try="$ac_compile"
64806 +case "(($ac_try" in
64807 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
64808 + *) ac_try_echo=$ac_try;;
64809 +esac
64810 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
64811 + (eval "$ac_compile") 2>conftest.er1
64812 ac_status=$?
64813 grep -v '^ *+' conftest.er1 >conftest.err
64814 rm -f conftest.er1
64815 cat conftest.err >&5
64816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64817 - (exit $ac_status); } &&
64818 - { ac_try='test -z "$ac_c_werror_flag"
64819 - || test ! -s conftest.err'
64820 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
64821 - (eval $ac_try) 2>&5
64822 - ac_status=$?
64823 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
64824 - (exit $ac_status); }; } &&
64825 - { ac_try='test -s conftest.$ac_objext'
64826 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
64827 - (eval $ac_try) 2>&5
64828 - ac_status=$?
64829 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
64830 - (exit $ac_status); }; }; then
64831 + (exit $ac_status); } && {
64832 + test -z "$ac_c_werror_flag" ||
64833 + test ! -s conftest.err
64834 + } && test -s conftest.$ac_objext; then
64835 ac_header_compiler=yes
64836 else
64837 echo "$as_me: failed program was:" >&5
64838 sed 's/^/| /' conftest.$ac_ext >&5
64839
64840 -ac_header_compiler=no
64841 + ac_header_compiler=no
64842 fi
64843 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
64844 -echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
64845 -echo "${ECHO_T}$ac_header_compiler" >&6
64846 +
64847 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
64848 +{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
64849 +echo "${ECHO_T}$ac_header_compiler" >&6; }
64850
64851 # Is the header present?
64852 -echo "$as_me:$LINENO: checking $ac_header presence" >&5
64853 -echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
64854 +{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
64855 +echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
64856 cat >conftest.$ac_ext <<_ACEOF
64857 /* confdefs.h. */
64858 _ACEOF
64859 @@ -8676,24 +9175,22 @@ cat >>conftest.$ac_ext <<_ACEOF
64860 /* end confdefs.h. */
64861 #include <$ac_header>
64862 _ACEOF
64863 -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
64864 - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
64865 +if { (ac_try="$ac_cpp conftest.$ac_ext"
64866 +case "(($ac_try" in
64867 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
64868 + *) ac_try_echo=$ac_try;;
64869 +esac
64870 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
64871 + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
64872 ac_status=$?
64873 grep -v '^ *+' conftest.er1 >conftest.err
64874 rm -f conftest.er1
64875 cat conftest.err >&5
64876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64877 - (exit $ac_status); } >/dev/null; then
64878 - if test -s conftest.err; then
64879 - ac_cpp_err=$ac_c_preproc_warn_flag
64880 - ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
64881 - else
64882 - ac_cpp_err=
64883 - fi
64884 -else
64885 - ac_cpp_err=yes
64886 -fi
64887 -if test -z "$ac_cpp_err"; then
64888 + (exit $ac_status); } >/dev/null && {
64889 + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
64890 + test ! -s conftest.err
64891 + }; then
64892 ac_header_preproc=yes
64893 else
64894 echo "$as_me: failed program was:" >&5
64895 @@ -8701,9 +9198,10 @@ sed 's/^/| /' conftest.$ac_ext >&5
64896
64897 ac_header_preproc=no
64898 fi
64899 +
64900 rm -f conftest.err conftest.$ac_ext
64901 -echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
64902 -echo "${ECHO_T}$ac_header_preproc" >&6
64903 +{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
64904 +echo "${ECHO_T}$ac_header_preproc" >&6; }
64905
64906 # So? What about this header?
64907 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
64908 @@ -8727,25 +9225,19 @@ echo "$as_me: WARNING: $ac_header: s
64909 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
64910 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
64911 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
64912 - (
64913 - cat <<\_ASBOX
64914 -## ------------------------------------------ ##
64915 -## Report this to the AC_PACKAGE_NAME lists. ##
64916 -## ------------------------------------------ ##
64917 -_ASBOX
64918 - ) |
64919 - sed "s/^/$as_me: WARNING: /" >&2
64920 +
64921 ;;
64922 esac
64923 -echo "$as_me:$LINENO: checking for $ac_header" >&5
64924 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
64925 -if eval "test \"\${$as_ac_Header+set}\" = set"; then
64926 +{ echo "$as_me:$LINENO: checking for $ac_header" >&5
64927 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
64928 +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
64929 echo $ECHO_N "(cached) $ECHO_C" >&6
64930 else
64931 eval "$as_ac_Header=\$ac_header_preproc"
64932 fi
64933 -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
64934 -echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
64935 +ac_res=`eval echo '${'$as_ac_Header'}'`
64936 + { echo "$as_me:$LINENO: result: $ac_res" >&5
64937 +echo "${ECHO_T}$ac_res" >&6; }
64938
64939 fi
64940 if test `eval echo '${'$as_ac_Header'}'` = yes; then
64941 @@ -8763,9 +9255,9 @@ done
64942 for ac_func in sbrk realpath glob
64943 do
64944 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
64945 -echo "$as_me:$LINENO: checking for $ac_func" >&5
64946 -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
64947 -if eval "test \"\${$as_ac_var+set}\" = set"; then
64948 +{ echo "$as_me:$LINENO: checking for $ac_func" >&5
64949 +echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
64950 +if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
64951 echo $ECHO_N "(cached) $ECHO_C" >&6
64952 else
64953 cat >conftest.$ac_ext <<_ACEOF
64954 @@ -8791,68 +9283,60 @@ cat >>conftest.$ac_ext <<_ACEOF
64955
64956 #undef $ac_func
64957
64958 -/* Override any gcc2 internal prototype to avoid an error. */
64959 +/* Override any GCC internal prototype to avoid an error.
64960 + Use char because int might match the return type of a GCC
64961 + builtin and then its argument prototype would still apply. */
64962 #ifdef __cplusplus
64963 extern "C"
64964 -{
64965 #endif
64966 -/* We use char because int might match the return type of a gcc2
64967 - builtin and then its argument prototype would still apply. */
64968 char $ac_func ();
64969 /* The GNU C library defines this for functions which it implements
64970 to always fail with ENOSYS. Some functions are actually named
64971 something starting with __ and the normal name is an alias. */
64972 -#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
64973 +#if defined __stub_$ac_func || defined __stub___$ac_func
64974 choke me
64975 -#else
64976 -char (*f) () = $ac_func;
64977 -#endif
64978 -#ifdef __cplusplus
64979 -}
64980 #endif
64981
64982 int
64983 main ()
64984 {
64985 -return f != $ac_func;
64986 +return $ac_func ();
64987 ;
64988 return 0;
64989 }
64990 _ACEOF
64991 rm -f conftest.$ac_objext conftest$ac_exeext
64992 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
64993 - (eval $ac_link) 2>conftest.er1
64994 +if { (ac_try="$ac_link"
64995 +case "(($ac_try" in
64996 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
64997 + *) ac_try_echo=$ac_try;;
64998 +esac
64999 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
65000 + (eval "$ac_link") 2>conftest.er1
65001 ac_status=$?
65002 grep -v '^ *+' conftest.er1 >conftest.err
65003 rm -f conftest.er1
65004 cat conftest.err >&5
65005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
65006 - (exit $ac_status); } &&
65007 - { ac_try='test -z "$ac_c_werror_flag"
65008 - || test ! -s conftest.err'
65009 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
65010 - (eval $ac_try) 2>&5
65011 - ac_status=$?
65012 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
65013 - (exit $ac_status); }; } &&
65014 - { ac_try='test -s conftest$ac_exeext'
65015 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
65016 - (eval $ac_try) 2>&5
65017 - ac_status=$?
65018 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
65019 - (exit $ac_status); }; }; then
65020 + (exit $ac_status); } && {
65021 + test -z "$ac_c_werror_flag" ||
65022 + test ! -s conftest.err
65023 + } && test -s conftest$ac_exeext &&
65024 + $as_test_x conftest$ac_exeext; then
65025 eval "$as_ac_var=yes"
65026 else
65027 echo "$as_me: failed program was:" >&5
65028 sed 's/^/| /' conftest.$ac_ext >&5
65029
65030 -eval "$as_ac_var=no"
65031 + eval "$as_ac_var=no"
65032 fi
65033 -rm -f conftest.err conftest.$ac_objext \
65034 +
65035 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
65036 conftest$ac_exeext conftest.$ac_ext
65037 fi
65038 -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
65039 -echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
65040 +ac_res=`eval echo '${'$as_ac_var'}'`
65041 + { echo "$as_me:$LINENO: result: $ac_res" >&5
65042 +echo "${ECHO_T}$ac_res" >&6; }
65043 if test `eval echo '${'$as_ac_var'}'` = yes; then
65044 cat >>confdefs.h <<_ACEOF
65045 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
65046 @@ -8869,9 +9353,9 @@ done
65047 ac_header_dirent=no
65048 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
65049 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
65050 -echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
65051 -echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
65052 -if eval "test \"\${$as_ac_Header+set}\" = set"; then
65053 +{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
65054 +echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
65055 +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
65056 echo $ECHO_N "(cached) $ECHO_C" >&6
65057 else
65058 cat >conftest.$ac_ext <<_ACEOF
65059 @@ -8893,38 +9377,35 @@ return 0;
65060 }
65061 _ACEOF
65062 rm -f conftest.$ac_objext
65063 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
65064 - (eval $ac_compile) 2>conftest.er1
65065 +if { (ac_try="$ac_compile"
65066 +case "(($ac_try" in
65067 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
65068 + *) ac_try_echo=$ac_try;;
65069 +esac
65070 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
65071 + (eval "$ac_compile") 2>conftest.er1
65072 ac_status=$?
65073 grep -v '^ *+' conftest.er1 >conftest.err
65074 rm -f conftest.er1
65075 cat conftest.err >&5
65076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
65077 - (exit $ac_status); } &&
65078 - { ac_try='test -z "$ac_c_werror_flag"
65079 - || test ! -s conftest.err'
65080 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
65081 - (eval $ac_try) 2>&5
65082 - ac_status=$?
65083 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
65084 - (exit $ac_status); }; } &&
65085 - { ac_try='test -s conftest.$ac_objext'
65086 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
65087 - (eval $ac_try) 2>&5
65088 - ac_status=$?
65089 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
65090 - (exit $ac_status); }; }; then
65091 + (exit $ac_status); } && {
65092 + test -z "$ac_c_werror_flag" ||
65093 + test ! -s conftest.err
65094 + } && test -s conftest.$ac_objext; then
65095 eval "$as_ac_Header=yes"
65096 else
65097 echo "$as_me: failed program was:" >&5
65098 sed 's/^/| /' conftest.$ac_ext >&5
65099
65100 -eval "$as_ac_Header=no"
65101 + eval "$as_ac_Header=no"
65102 fi
65103 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
65104 +
65105 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
65106 fi
65107 -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
65108 -echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
65109 +ac_res=`eval echo '${'$as_ac_Header'}'`
65110 + { echo "$as_me:$LINENO: result: $ac_res" >&5
65111 +echo "${ECHO_T}$ac_res" >&6; }
65112 if test `eval echo '${'$as_ac_Header'}'` = yes; then
65113 cat >>confdefs.h <<_ACEOF
65114 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
65115 @@ -8936,13 +9417,12 @@ fi
65116 done
65117 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
65118 if test $ac_header_dirent = dirent.h; then
65119 - echo "$as_me:$LINENO: checking for library containing opendir" >&5
65120 -echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
65121 + { echo "$as_me:$LINENO: checking for library containing opendir" >&5
65122 +echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
65123 if test "${ac_cv_search_opendir+set}" = set; then
65124 echo $ECHO_N "(cached) $ECHO_C" >&6
65125 else
65126 ac_func_search_save_LIBS=$LIBS
65127 -ac_cv_search_opendir=no
65128 cat >conftest.$ac_ext <<_ACEOF
65129 /* confdefs.h. */
65130 _ACEOF
65131 @@ -8950,126 +9430,83 @@ cat confdefs.h >>conftest.$ac_ext
65132 cat >>conftest.$ac_ext <<_ACEOF
65133 /* end confdefs.h. */
65134
65135 -/* Override any gcc2 internal prototype to avoid an error. */
65136 +/* Override any GCC internal prototype to avoid an error.
65137 + Use char because int might match the return type of a GCC
65138 + builtin and then its argument prototype would still apply. */
65139 #ifdef __cplusplus
65140 extern "C"
65141 #endif
65142 -/* We use char because int might match the return type of a gcc2
65143 - builtin and then its argument prototype would still apply. */
65144 char opendir ();
65145 int
65146 main ()
65147 {
65148 -opendir ();
65149 +return opendir ();
65150 ;
65151 return 0;
65152 }
65153 _ACEOF
65154 -rm -f conftest.$ac_objext conftest$ac_exeext
65155 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
65156 - (eval $ac_link) 2>conftest.er1
65157 +for ac_lib in '' dir; do
65158 + if test -z "$ac_lib"; then
65159 + ac_res="none required"
65160 + else
65161 + ac_res=-l$ac_lib
65162 + LIBS="-l$ac_lib $ac_func_search_save_LIBS"
65163 + fi
65164 + rm -f conftest.$ac_objext conftest$ac_exeext
65165 +if { (ac_try="$ac_link"
65166 +case "(($ac_try" in
65167 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
65168 + *) ac_try_echo=$ac_try;;
65169 +esac
65170 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
65171 + (eval "$ac_link") 2>conftest.er1
65172 ac_status=$?
65173 grep -v '^ *+' conftest.er1 >conftest.err
65174 rm -f conftest.er1
65175 cat conftest.err >&5
65176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
65177 - (exit $ac_status); } &&
65178 - { ac_try='test -z "$ac_c_werror_flag"
65179 - || test ! -s conftest.err'
65180 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
65181 - (eval $ac_try) 2>&5
65182 - ac_status=$?
65183 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
65184 - (exit $ac_status); }; } &&
65185 - { ac_try='test -s conftest$ac_exeext'
65186 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
65187 - (eval $ac_try) 2>&5
65188 - ac_status=$?
65189 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
65190 - (exit $ac_status); }; }; then
65191 - ac_cv_search_opendir="none required"
65192 + (exit $ac_status); } && {
65193 + test -z "$ac_c_werror_flag" ||
65194 + test ! -s conftest.err
65195 + } && test -s conftest$ac_exeext &&
65196 + $as_test_x conftest$ac_exeext; then
65197 + ac_cv_search_opendir=$ac_res
65198 else
65199 echo "$as_me: failed program was:" >&5
65200 sed 's/^/| /' conftest.$ac_ext >&5
65201
65202 +
65203 fi
65204 -rm -f conftest.err conftest.$ac_objext \
65205 - conftest$ac_exeext conftest.$ac_ext
65206 -if test "$ac_cv_search_opendir" = no; then
65207 - for ac_lib in dir; do
65208 - LIBS="-l$ac_lib $ac_func_search_save_LIBS"
65209 - cat >conftest.$ac_ext <<_ACEOF
65210 -/* confdefs.h. */
65211 -_ACEOF
65212 -cat confdefs.h >>conftest.$ac_ext
65213 -cat >>conftest.$ac_ext <<_ACEOF
65214 -/* end confdefs.h. */
65215 -
65216 -/* Override any gcc2 internal prototype to avoid an error. */
65217 -#ifdef __cplusplus
65218 -extern "C"
65219 -#endif
65220 -/* We use char because int might match the return type of a gcc2
65221 - builtin and then its argument prototype would still apply. */
65222 -char opendir ();
65223 -int
65224 -main ()
65225 -{
65226 -opendir ();
65227 - ;
65228 - return 0;
65229 -}
65230 -_ACEOF
65231 -rm -f conftest.$ac_objext conftest$ac_exeext
65232 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
65233 - (eval $ac_link) 2>conftest.er1
65234 - ac_status=$?
65235 - grep -v '^ *+' conftest.er1 >conftest.err
65236 - rm -f conftest.er1
65237 - cat conftest.err >&5
65238 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
65239 - (exit $ac_status); } &&
65240 - { ac_try='test -z "$ac_c_werror_flag"
65241 - || test ! -s conftest.err'
65242 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
65243 - (eval $ac_try) 2>&5
65244 - ac_status=$?
65245 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
65246 - (exit $ac_status); }; } &&
65247 - { ac_try='test -s conftest$ac_exeext'
65248 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
65249 - (eval $ac_try) 2>&5
65250 - ac_status=$?
65251 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
65252 - (exit $ac_status); }; }; then
65253 - ac_cv_search_opendir="-l$ac_lib"
65254 -break
65255 -else
65256 - echo "$as_me: failed program was:" >&5
65257 -sed 's/^/| /' conftest.$ac_ext >&5
65258
65259 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
65260 + conftest$ac_exeext
65261 + if test "${ac_cv_search_opendir+set}" = set; then
65262 + break
65263 fi
65264 -rm -f conftest.err conftest.$ac_objext \
65265 - conftest$ac_exeext conftest.$ac_ext
65266 - done
65267 +done
65268 +if test "${ac_cv_search_opendir+set}" = set; then
65269 + :
65270 +else
65271 + ac_cv_search_opendir=no
65272 fi
65273 +rm conftest.$ac_ext
65274 LIBS=$ac_func_search_save_LIBS
65275 fi
65276 -echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
65277 -echo "${ECHO_T}$ac_cv_search_opendir" >&6
65278 -if test "$ac_cv_search_opendir" != no; then
65279 - test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
65280 +{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
65281 +echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
65282 +ac_res=$ac_cv_search_opendir
65283 +if test "$ac_res" != no; then
65284 + test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
65285
65286 fi
65287
65288 else
65289 - echo "$as_me:$LINENO: checking for library containing opendir" >&5
65290 -echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
65291 + { echo "$as_me:$LINENO: checking for library containing opendir" >&5
65292 +echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
65293 if test "${ac_cv_search_opendir+set}" = set; then
65294 echo $ECHO_N "(cached) $ECHO_C" >&6
65295 else
65296 ac_func_search_save_LIBS=$LIBS
65297 -ac_cv_search_opendir=no
65298 cat >conftest.$ac_ext <<_ACEOF
65299 /* confdefs.h. */
65300 _ACEOF
65301 @@ -9077,123 +9514,81 @@ cat confdefs.h >>conftest.$ac_ext
65302 cat >>conftest.$ac_ext <<_ACEOF
65303 /* end confdefs.h. */
65304
65305 -/* Override any gcc2 internal prototype to avoid an error. */
65306 +/* Override any GCC internal prototype to avoid an error.
65307 + Use char because int might match the return type of a GCC
65308 + builtin and then its argument prototype would still apply. */
65309 #ifdef __cplusplus
65310 extern "C"
65311 #endif
65312 -/* We use char because int might match the return type of a gcc2
65313 - builtin and then its argument prototype would still apply. */
65314 char opendir ();
65315 int
65316 main ()
65317 {
65318 -opendir ();
65319 +return opendir ();
65320 ;
65321 return 0;
65322 }
65323 _ACEOF
65324 -rm -f conftest.$ac_objext conftest$ac_exeext
65325 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
65326 - (eval $ac_link) 2>conftest.er1
65327 +for ac_lib in '' x; do
65328 + if test -z "$ac_lib"; then
65329 + ac_res="none required"
65330 + else
65331 + ac_res=-l$ac_lib
65332 + LIBS="-l$ac_lib $ac_func_search_save_LIBS"
65333 + fi
65334 + rm -f conftest.$ac_objext conftest$ac_exeext
65335 +if { (ac_try="$ac_link"
65336 +case "(($ac_try" in
65337 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
65338 + *) ac_try_echo=$ac_try;;
65339 +esac
65340 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
65341 + (eval "$ac_link") 2>conftest.er1
65342 ac_status=$?
65343 grep -v '^ *+' conftest.er1 >conftest.err
65344 rm -f conftest.er1
65345 cat conftest.err >&5
65346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
65347 - (exit $ac_status); } &&
65348 - { ac_try='test -z "$ac_c_werror_flag"
65349 - || test ! -s conftest.err'
65350 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
65351 - (eval $ac_try) 2>&5
65352 - ac_status=$?
65353 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
65354 - (exit $ac_status); }; } &&
65355 - { ac_try='test -s conftest$ac_exeext'
65356 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
65357 - (eval $ac_try) 2>&5
65358 - ac_status=$?
65359 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
65360 - (exit $ac_status); }; }; then
65361 - ac_cv_search_opendir="none required"
65362 + (exit $ac_status); } && {
65363 + test -z "$ac_c_werror_flag" ||
65364 + test ! -s conftest.err
65365 + } && test -s conftest$ac_exeext &&
65366 + $as_test_x conftest$ac_exeext; then
65367 + ac_cv_search_opendir=$ac_res
65368 else
65369 echo "$as_me: failed program was:" >&5
65370 sed 's/^/| /' conftest.$ac_ext >&5
65371
65372 -fi
65373 -rm -f conftest.err conftest.$ac_objext \
65374 - conftest$ac_exeext conftest.$ac_ext
65375 -if test "$ac_cv_search_opendir" = no; then
65376 - for ac_lib in x; do
65377 - LIBS="-l$ac_lib $ac_func_search_save_LIBS"
65378 - cat >conftest.$ac_ext <<_ACEOF
65379 -/* confdefs.h. */
65380 -_ACEOF
65381 -cat confdefs.h >>conftest.$ac_ext
65382 -cat >>conftest.$ac_ext <<_ACEOF
65383 -/* end confdefs.h. */
65384
65385 -/* Override any gcc2 internal prototype to avoid an error. */
65386 -#ifdef __cplusplus
65387 -extern "C"
65388 -#endif
65389 -/* We use char because int might match the return type of a gcc2
65390 - builtin and then its argument prototype would still apply. */
65391 -char opendir ();
65392 -int
65393 -main ()
65394 -{
65395 -opendir ();
65396 - ;
65397 - return 0;
65398 -}
65399 -_ACEOF
65400 -rm -f conftest.$ac_objext conftest$ac_exeext
65401 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
65402 - (eval $ac_link) 2>conftest.er1
65403 - ac_status=$?
65404 - grep -v '^ *+' conftest.er1 >conftest.err
65405 - rm -f conftest.er1
65406 - cat conftest.err >&5
65407 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
65408 - (exit $ac_status); } &&
65409 - { ac_try='test -z "$ac_c_werror_flag"
65410 - || test ! -s conftest.err'
65411 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
65412 - (eval $ac_try) 2>&5
65413 - ac_status=$?
65414 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
65415 - (exit $ac_status); }; } &&
65416 - { ac_try='test -s conftest$ac_exeext'
65417 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
65418 - (eval $ac_try) 2>&5
65419 - ac_status=$?
65420 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
65421 - (exit $ac_status); }; }; then
65422 - ac_cv_search_opendir="-l$ac_lib"
65423 -break
65424 -else
65425 - echo "$as_me: failed program was:" >&5
65426 -sed 's/^/| /' conftest.$ac_ext >&5
65427 +fi
65428
65429 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
65430 + conftest$ac_exeext
65431 + if test "${ac_cv_search_opendir+set}" = set; then
65432 + break
65433 fi
65434 -rm -f conftest.err conftest.$ac_objext \
65435 - conftest$ac_exeext conftest.$ac_ext
65436 - done
65437 +done
65438 +if test "${ac_cv_search_opendir+set}" = set; then
65439 + :
65440 +else
65441 + ac_cv_search_opendir=no
65442 fi
65443 +rm conftest.$ac_ext
65444 LIBS=$ac_func_search_save_LIBS
65445 fi
65446 -echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
65447 -echo "${ECHO_T}$ac_cv_search_opendir" >&6
65448 -if test "$ac_cv_search_opendir" != no; then
65449 - test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
65450 +{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
65451 +echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
65452 +ac_res=$ac_cv_search_opendir
65453 +if test "$ac_res" != no; then
65454 + test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
65455
65456 fi
65457
65458 fi
65459
65460
65461 -echo "$as_me:$LINENO: checking for a known getopt prototype in unistd.h" >&5
65462 -echo $ECHO_N "checking for a known getopt prototype in unistd.h... $ECHO_C" >&6
65463 +{ echo "$as_me:$LINENO: checking for a known getopt prototype in unistd.h" >&5
65464 +echo $ECHO_N "checking for a known getopt prototype in unistd.h... $ECHO_C" >&6; }
65465 if test "${ld_cv_decl_getopt_unistd_h+set}" = set; then
65466 echo $ECHO_N "(cached) $ECHO_C" >&6
65467 else
65468 @@ -9213,39 +9608,35 @@ extern int getopt (int, char *const*, co
65469 }
65470 _ACEOF
65471 rm -f conftest.$ac_objext
65472 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
65473 - (eval $ac_compile) 2>conftest.er1
65474 +if { (ac_try="$ac_compile"
65475 +case "(($ac_try" in
65476 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
65477 + *) ac_try_echo=$ac_try;;
65478 +esac
65479 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
65480 + (eval "$ac_compile") 2>conftest.er1
65481 ac_status=$?
65482 grep -v '^ *+' conftest.er1 >conftest.err
65483 rm -f conftest.er1
65484 cat conftest.err >&5
65485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
65486 - (exit $ac_status); } &&
65487 - { ac_try='test -z "$ac_c_werror_flag"
65488 - || test ! -s conftest.err'
65489 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
65490 - (eval $ac_try) 2>&5
65491 - ac_status=$?
65492 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
65493 - (exit $ac_status); }; } &&
65494 - { ac_try='test -s conftest.$ac_objext'
65495 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
65496 - (eval $ac_try) 2>&5
65497 - ac_status=$?
65498 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
65499 - (exit $ac_status); }; }; then
65500 + (exit $ac_status); } && {
65501 + test -z "$ac_c_werror_flag" ||
65502 + test ! -s conftest.err
65503 + } && test -s conftest.$ac_objext; then
65504 ld_cv_decl_getopt_unistd_h=yes
65505 else
65506 echo "$as_me: failed program was:" >&5
65507 sed 's/^/| /' conftest.$ac_ext >&5
65508
65509 -ld_cv_decl_getopt_unistd_h=no
65510 + ld_cv_decl_getopt_unistd_h=no
65511 fi
65512 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
65513 +
65514 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
65515 fi
65516
65517 -echo "$as_me:$LINENO: result: $ld_cv_decl_getopt_unistd_h" >&5
65518 -echo "${ECHO_T}$ld_cv_decl_getopt_unistd_h" >&6
65519 +{ echo "$as_me:$LINENO: result: $ld_cv_decl_getopt_unistd_h" >&5
65520 +echo "${ECHO_T}$ld_cv_decl_getopt_unistd_h" >&6; }
65521 if test $ld_cv_decl_getopt_unistd_h = yes; then
65522
65523 cat >>confdefs.h <<\_ACEOF
65524 @@ -9264,8 +9655,8 @@ _ACEOF
65525 ;;
65526 esac
65527
65528 -echo "$as_me:$LINENO: checking whether strstr is declared" >&5
65529 -echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6
65530 +{ echo "$as_me:$LINENO: checking whether strstr is declared" >&5
65531 +echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6; }
65532 if test "${ac_cv_have_decl_strstr+set}" = set; then
65533 echo $ECHO_N "(cached) $ECHO_C" >&6
65534 else
65535 @@ -9280,7 +9671,7 @@ int
65536 main ()
65537 {
65538 #ifndef strstr
65539 - char *p = (char *) strstr;
65540 + (void) strstr;
65541 #endif
65542
65543 ;
65544 @@ -9288,38 +9679,34 @@ main ()
65545 }
65546 _ACEOF
65547 rm -f conftest.$ac_objext
65548 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
65549 - (eval $ac_compile) 2>conftest.er1
65550 +if { (ac_try="$ac_compile"
65551 +case "(($ac_try" in
65552 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
65553 + *) ac_try_echo=$ac_try;;
65554 +esac
65555 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
65556 + (eval "$ac_compile") 2>conftest.er1
65557 ac_status=$?
65558 grep -v '^ *+' conftest.er1 >conftest.err
65559 rm -f conftest.er1
65560 cat conftest.err >&5
65561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
65562 - (exit $ac_status); } &&
65563 - { ac_try='test -z "$ac_c_werror_flag"
65564 - || test ! -s conftest.err'
65565 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
65566 - (eval $ac_try) 2>&5
65567 - ac_status=$?
65568 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
65569 - (exit $ac_status); }; } &&
65570 - { ac_try='test -s conftest.$ac_objext'
65571 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
65572 - (eval $ac_try) 2>&5
65573 - ac_status=$?
65574 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
65575 - (exit $ac_status); }; }; then
65576 + (exit $ac_status); } && {
65577 + test -z "$ac_c_werror_flag" ||
65578 + test ! -s conftest.err
65579 + } && test -s conftest.$ac_objext; then
65580 ac_cv_have_decl_strstr=yes
65581 else
65582 echo "$as_me: failed program was:" >&5
65583 sed 's/^/| /' conftest.$ac_ext >&5
65584
65585 -ac_cv_have_decl_strstr=no
65586 + ac_cv_have_decl_strstr=no
65587 fi
65588 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
65589 +
65590 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
65591 fi
65592 -echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5
65593 -echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6
65594 +{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5
65595 +echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6; }
65596 if test $ac_cv_have_decl_strstr = yes; then
65597
65598 cat >>confdefs.h <<_ACEOF
65599 @@ -9334,8 +9721,8 @@ _ACEOF
65600
65601
65602 fi
65603 -echo "$as_me:$LINENO: checking whether free is declared" >&5
65604 -echo $ECHO_N "checking whether free is declared... $ECHO_C" >&6
65605 +{ echo "$as_me:$LINENO: checking whether free is declared" >&5
65606 +echo $ECHO_N "checking whether free is declared... $ECHO_C" >&6; }
65607 if test "${ac_cv_have_decl_free+set}" = set; then
65608 echo $ECHO_N "(cached) $ECHO_C" >&6
65609 else
65610 @@ -9350,7 +9737,7 @@ int
65611 main ()
65612 {
65613 #ifndef free
65614 - char *p = (char *) free;
65615 + (void) free;
65616 #endif
65617
65618 ;
65619 @@ -9358,38 +9745,34 @@ main ()
65620 }
65621 _ACEOF
65622 rm -f conftest.$ac_objext
65623 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
65624 - (eval $ac_compile) 2>conftest.er1
65625 +if { (ac_try="$ac_compile"
65626 +case "(($ac_try" in
65627 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
65628 + *) ac_try_echo=$ac_try;;
65629 +esac
65630 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
65631 + (eval "$ac_compile") 2>conftest.er1
65632 ac_status=$?
65633 grep -v '^ *+' conftest.er1 >conftest.err
65634 rm -f conftest.er1
65635 cat conftest.err >&5
65636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
65637 - (exit $ac_status); } &&
65638 - { ac_try='test -z "$ac_c_werror_flag"
65639 - || test ! -s conftest.err'
65640 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
65641 - (eval $ac_try) 2>&5
65642 - ac_status=$?
65643 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
65644 - (exit $ac_status); }; } &&
65645 - { ac_try='test -s conftest.$ac_objext'
65646 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
65647 - (eval $ac_try) 2>&5
65648 - ac_status=$?
65649 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
65650 - (exit $ac_status); }; }; then
65651 + (exit $ac_status); } && {
65652 + test -z "$ac_c_werror_flag" ||
65653 + test ! -s conftest.err
65654 + } && test -s conftest.$ac_objext; then
65655 ac_cv_have_decl_free=yes
65656 else
65657 echo "$as_me: failed program was:" >&5
65658 sed 's/^/| /' conftest.$ac_ext >&5
65659
65660 -ac_cv_have_decl_free=no
65661 + ac_cv_have_decl_free=no
65662 fi
65663 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
65664 +
65665 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
65666 fi
65667 -echo "$as_me:$LINENO: result: $ac_cv_have_decl_free" >&5
65668 -echo "${ECHO_T}$ac_cv_have_decl_free" >&6
65669 +{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_free" >&5
65670 +echo "${ECHO_T}$ac_cv_have_decl_free" >&6; }
65671 if test $ac_cv_have_decl_free = yes; then
65672
65673 cat >>confdefs.h <<_ACEOF
65674 @@ -9404,8 +9787,8 @@ _ACEOF
65675
65676
65677 fi
65678 -echo "$as_me:$LINENO: checking whether sbrk is declared" >&5
65679 -echo $ECHO_N "checking whether sbrk is declared... $ECHO_C" >&6
65680 +{ echo "$as_me:$LINENO: checking whether sbrk is declared" >&5
65681 +echo $ECHO_N "checking whether sbrk is declared... $ECHO_C" >&6; }
65682 if test "${ac_cv_have_decl_sbrk+set}" = set; then
65683 echo $ECHO_N "(cached) $ECHO_C" >&6
65684 else
65685 @@ -9420,7 +9803,7 @@ int
65686 main ()
65687 {
65688 #ifndef sbrk
65689 - char *p = (char *) sbrk;
65690 + (void) sbrk;
65691 #endif
65692
65693 ;
65694 @@ -9428,38 +9811,34 @@ main ()
65695 }
65696 _ACEOF
65697 rm -f conftest.$ac_objext
65698 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
65699 - (eval $ac_compile) 2>conftest.er1
65700 +if { (ac_try="$ac_compile"
65701 +case "(($ac_try" in
65702 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
65703 + *) ac_try_echo=$ac_try;;
65704 +esac
65705 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
65706 + (eval "$ac_compile") 2>conftest.er1
65707 ac_status=$?
65708 grep -v '^ *+' conftest.er1 >conftest.err
65709 rm -f conftest.er1
65710 cat conftest.err >&5
65711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
65712 - (exit $ac_status); } &&
65713 - { ac_try='test -z "$ac_c_werror_flag"
65714 - || test ! -s conftest.err'
65715 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
65716 - (eval $ac_try) 2>&5
65717 - ac_status=$?
65718 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
65719 - (exit $ac_status); }; } &&
65720 - { ac_try='test -s conftest.$ac_objext'
65721 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
65722 - (eval $ac_try) 2>&5
65723 - ac_status=$?
65724 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
65725 - (exit $ac_status); }; }; then
65726 + (exit $ac_status); } && {
65727 + test -z "$ac_c_werror_flag" ||
65728 + test ! -s conftest.err
65729 + } && test -s conftest.$ac_objext; then
65730 ac_cv_have_decl_sbrk=yes
65731 else
65732 echo "$as_me: failed program was:" >&5
65733 sed 's/^/| /' conftest.$ac_ext >&5
65734
65735 -ac_cv_have_decl_sbrk=no
65736 + ac_cv_have_decl_sbrk=no
65737 fi
65738 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
65739 +
65740 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
65741 fi
65742 -echo "$as_me:$LINENO: result: $ac_cv_have_decl_sbrk" >&5
65743 -echo "${ECHO_T}$ac_cv_have_decl_sbrk" >&6
65744 +{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_sbrk" >&5
65745 +echo "${ECHO_T}$ac_cv_have_decl_sbrk" >&6; }
65746 if test $ac_cv_have_decl_sbrk = yes; then
65747
65748 cat >>confdefs.h <<_ACEOF
65749 @@ -9474,8 +9853,8 @@ _ACEOF
65750
65751
65752 fi
65753 -echo "$as_me:$LINENO: checking whether getenv is declared" >&5
65754 -echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6
65755 +{ echo "$as_me:$LINENO: checking whether getenv is declared" >&5
65756 +echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6; }
65757 if test "${ac_cv_have_decl_getenv+set}" = set; then
65758 echo $ECHO_N "(cached) $ECHO_C" >&6
65759 else
65760 @@ -9490,7 +9869,7 @@ int
65761 main ()
65762 {
65763 #ifndef getenv
65764 - char *p = (char *) getenv;
65765 + (void) getenv;
65766 #endif
65767
65768 ;
65769 @@ -9498,38 +9877,34 @@ main ()
65770 }
65771 _ACEOF
65772 rm -f conftest.$ac_objext
65773 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
65774 - (eval $ac_compile) 2>conftest.er1
65775 +if { (ac_try="$ac_compile"
65776 +case "(($ac_try" in
65777 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
65778 + *) ac_try_echo=$ac_try;;
65779 +esac
65780 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
65781 + (eval "$ac_compile") 2>conftest.er1
65782 ac_status=$?
65783 grep -v '^ *+' conftest.er1 >conftest.err
65784 rm -f conftest.er1
65785 cat conftest.err >&5
65786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
65787 - (exit $ac_status); } &&
65788 - { ac_try='test -z "$ac_c_werror_flag"
65789 - || test ! -s conftest.err'
65790 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
65791 - (eval $ac_try) 2>&5
65792 - ac_status=$?
65793 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
65794 - (exit $ac_status); }; } &&
65795 - { ac_try='test -s conftest.$ac_objext'
65796 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
65797 - (eval $ac_try) 2>&5
65798 - ac_status=$?
65799 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
65800 - (exit $ac_status); }; }; then
65801 + (exit $ac_status); } && {
65802 + test -z "$ac_c_werror_flag" ||
65803 + test ! -s conftest.err
65804 + } && test -s conftest.$ac_objext; then
65805 ac_cv_have_decl_getenv=yes
65806 else
65807 echo "$as_me: failed program was:" >&5
65808 sed 's/^/| /' conftest.$ac_ext >&5
65809
65810 -ac_cv_have_decl_getenv=no
65811 + ac_cv_have_decl_getenv=no
65812 fi
65813 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
65814 +
65815 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
65816 fi
65817 -echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
65818 -echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6
65819 +{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
65820 +echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6; }
65821 if test $ac_cv_have_decl_getenv = yes; then
65822
65823 cat >>confdefs.h <<_ACEOF
65824 @@ -9544,8 +9919,8 @@ _ACEOF
65825
65826
65827 fi
65828 -echo "$as_me:$LINENO: checking whether environ is declared" >&5
65829 -echo $ECHO_N "checking whether environ is declared... $ECHO_C" >&6
65830 +{ echo "$as_me:$LINENO: checking whether environ is declared" >&5
65831 +echo $ECHO_N "checking whether environ is declared... $ECHO_C" >&6; }
65832 if test "${ac_cv_have_decl_environ+set}" = set; then
65833 echo $ECHO_N "(cached) $ECHO_C" >&6
65834 else
65835 @@ -9560,7 +9935,7 @@ int
65836 main ()
65837 {
65838 #ifndef environ
65839 - char *p = (char *) environ;
65840 + (void) environ;
65841 #endif
65842
65843 ;
65844 @@ -9568,38 +9943,34 @@ main ()
65845 }
65846 _ACEOF
65847 rm -f conftest.$ac_objext
65848 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
65849 - (eval $ac_compile) 2>conftest.er1
65850 +if { (ac_try="$ac_compile"
65851 +case "(($ac_try" in
65852 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
65853 + *) ac_try_echo=$ac_try;;
65854 +esac
65855 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
65856 + (eval "$ac_compile") 2>conftest.er1
65857 ac_status=$?
65858 grep -v '^ *+' conftest.er1 >conftest.err
65859 rm -f conftest.er1
65860 cat conftest.err >&5
65861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
65862 - (exit $ac_status); } &&
65863 - { ac_try='test -z "$ac_c_werror_flag"
65864 - || test ! -s conftest.err'
65865 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
65866 - (eval $ac_try) 2>&5
65867 - ac_status=$?
65868 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
65869 - (exit $ac_status); }; } &&
65870 - { ac_try='test -s conftest.$ac_objext'
65871 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
65872 - (eval $ac_try) 2>&5
65873 - ac_status=$?
65874 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
65875 - (exit $ac_status); }; }; then
65876 + (exit $ac_status); } && {
65877 + test -z "$ac_c_werror_flag" ||
65878 + test ! -s conftest.err
65879 + } && test -s conftest.$ac_objext; then
65880 ac_cv_have_decl_environ=yes
65881 else
65882 echo "$as_me: failed program was:" >&5
65883 sed 's/^/| /' conftest.$ac_ext >&5
65884
65885 -ac_cv_have_decl_environ=no
65886 + ac_cv_have_decl_environ=no
65887 fi
65888 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
65889 +
65890 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
65891 fi
65892 -echo "$as_me:$LINENO: result: $ac_cv_have_decl_environ" >&5
65893 -echo "${ECHO_T}$ac_cv_have_decl_environ" >&6
65894 +{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_environ" >&5
65895 +echo "${ECHO_T}$ac_cv_have_decl_environ" >&6; }
65896 if test $ac_cv_have_decl_environ = yes; then
65897
65898 cat >>confdefs.h <<_ACEOF
65899 @@ -9623,8 +9994,8 @@ fi
65900 # broken Microsoft MSVC compiler, which limits the length of string
65901 # constants, while still supporting pre-ANSI compilers which do not
65902 # support string concatenation.
65903 -echo "$as_me:$LINENO: checking whether ANSI C string concatenation works" >&5
65904 -echo $ECHO_N "checking whether ANSI C string concatenation works... $ECHO_C" >&6
65905 +{ echo "$as_me:$LINENO: checking whether ANSI C string concatenation works" >&5
65906 +echo $ECHO_N "checking whether ANSI C string concatenation works... $ECHO_C" >&6; }
65907 if test "${ld_cv_string_concatenation+set}" = set; then
65908 echo $ECHO_N "(cached) $ECHO_C" >&6
65909 else
65910 @@ -9644,39 +10015,35 @@ char *a = "a" "a";
65911 }
65912 _ACEOF
65913 rm -f conftest.$ac_objext
65914 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
65915 - (eval $ac_compile) 2>conftest.er1
65916 +if { (ac_try="$ac_compile"
65917 +case "(($ac_try" in
65918 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
65919 + *) ac_try_echo=$ac_try;;
65920 +esac
65921 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
65922 + (eval "$ac_compile") 2>conftest.er1
65923 ac_status=$?
65924 grep -v '^ *+' conftest.er1 >conftest.err
65925 rm -f conftest.er1
65926 cat conftest.err >&5
65927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
65928 - (exit $ac_status); } &&
65929 - { ac_try='test -z "$ac_c_werror_flag"
65930 - || test ! -s conftest.err'
65931 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
65932 - (eval $ac_try) 2>&5
65933 - ac_status=$?
65934 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
65935 - (exit $ac_status); }; } &&
65936 - { ac_try='test -s conftest.$ac_objext'
65937 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
65938 - (eval $ac_try) 2>&5
65939 - ac_status=$?
65940 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
65941 - (exit $ac_status); }; }; then
65942 + (exit $ac_status); } && {
65943 + test -z "$ac_c_werror_flag" ||
65944 + test ! -s conftest.err
65945 + } && test -s conftest.$ac_objext; then
65946 ld_cv_string_concatenation=yes
65947 else
65948 echo "$as_me: failed program was:" >&5
65949 sed 's/^/| /' conftest.$ac_ext >&5
65950
65951 -ld_cv_string_concatenation=no
65952 + ld_cv_string_concatenation=no
65953 fi
65954 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
65955 +
65956 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
65957 fi
65958
65959 -echo "$as_me:$LINENO: result: $ld_cv_string_concatenation" >&5
65960 -echo "${ECHO_T}$ld_cv_string_concatenation" >&6
65961 +{ echo "$as_me:$LINENO: result: $ld_cv_string_concatenation" >&5
65962 +echo "${ECHO_T}$ld_cv_string_concatenation" >&6; }
65963 if test "$ld_cv_string_concatenation" = "yes"; then
65964 STRINGIFY=astring.sed
65965 else
65966 @@ -9801,8 +10168,10 @@ fi
65967
65968
65969
65970 - ac_config_files="$ac_config_files Makefile po/Makefile.in:po/Make-in"
65971 - ac_config_commands="$ac_config_commands default"
65972 +ac_config_files="$ac_config_files Makefile po/Makefile.in:po/Make-in"
65973 +
65974 +ac_config_commands="$ac_config_commands default"
65975 +
65976 cat >confcache <<\_ACEOF
65977 # This file is a shell script that caches the results of configure
65978 # tests run on this system so they can be shared between configure
65979 @@ -9821,39 +10190,58 @@ _ACEOF
65980
65981 # The following way of writing the cache mishandles newlines in values,
65982 # but we know of no workaround that is simple, portable, and efficient.
65983 -# So, don't put newlines in cache variables' values.
65984 +# So, we kill variables containing newlines.
65985 # Ultrix sh set writes to stderr and can't be redirected directly,
65986 # and sets the high bit in the cache file unless we assign to the vars.
65987 -{
65988 +(
65989 + for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
65990 + eval ac_val=\$$ac_var
65991 + case $ac_val in #(
65992 + *${as_nl}*)
65993 + case $ac_var in #(
65994 + *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
65995 +echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
65996 + esac
65997 + case $ac_var in #(
65998 + _ | IFS | as_nl) ;; #(
65999 + *) $as_unset $ac_var ;;
66000 + esac ;;
66001 + esac
66002 + done
66003 +
66004 (set) 2>&1 |
66005 - case `(ac_space=' '; set | grep ac_space) 2>&1` in
66006 - *ac_space=\ *)
66007 + case $as_nl`(ac_space=' '; set) 2>&1` in #(
66008 + *${as_nl}ac_space=\ *)
66009 # `set' does not quote correctly, so add quotes (double-quote
66010 # substitution turns \\\\ into \\, and sed turns \\ into \).
66011 sed -n \
66012 "s/'/'\\\\''/g;
66013 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
66014 - ;;
66015 + ;; #(
66016 *)
66017 # `set' quotes correctly as required by POSIX, so do not add quotes.
66018 - sed -n \
66019 - "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
66020 + sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
66021 ;;
66022 - esac;
66023 -} |
66024 + esac |
66025 + sort
66026 +) |
66027 sed '
66028 + /^ac_cv_env_/b end
66029 t clear
66030 - : clear
66031 + :clear
66032 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
66033 t end
66034 - /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
66035 - : end' >>confcache
66036 -if diff $cache_file confcache >/dev/null 2>&1; then :; else
66037 - if test -w $cache_file; then
66038 - test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
66039 + s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
66040 + :end' >>confcache
66041 +if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
66042 + if test -w "$cache_file"; then
66043 + test "x$cache_file" != "x/dev/null" &&
66044 + { echo "$as_me:$LINENO: updating cache $cache_file" >&5
66045 +echo "$as_me: updating cache $cache_file" >&6;}
66046 cat confcache >$cache_file
66047 else
66048 - echo "not updating unwritable cache $cache_file"
66049 + { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
66050 +echo "$as_me: not updating unwritable cache $cache_file" >&6;}
66051 fi
66052 fi
66053 rm -f confcache
66054 @@ -9862,32 +10250,18 @@ test "x$prefix" = xNONE && prefix=$ac_de
66055 # Let make expand exec_prefix.
66056 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
66057
66058 -# VPATH may cause trouble with some makes, so we remove $(srcdir),
66059 -# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
66060 -# trailing colons and then remove the whole line if VPATH becomes empty
66061 -# (actually we leave an empty line to preserve line numbers).
66062 -if test "x$srcdir" = x.; then
66063 - ac_vpsub='/^[ ]*VPATH[ ]*=/{
66064 -s/:*\$(srcdir):*/:/;
66065 -s/:*\${srcdir}:*/:/;
66066 -s/:*@srcdir@:*/:/;
66067 -s/^\([^=]*=[ ]*\):*/\1/;
66068 -s/:*$//;
66069 -s/^[^=]*=[ ]*$//;
66070 -}'
66071 -fi
66072 -
66073 DEFS=-DHAVE_CONFIG_H
66074
66075 ac_libobjs=
66076 ac_ltlibobjs=
66077 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
66078 # 1. Remove the extension, and $U if already installed.
66079 - ac_i=`echo "$ac_i" |
66080 - sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
66081 - # 2. Add them.
66082 - ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
66083 - ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
66084 + ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
66085 + ac_i=`echo "$ac_i" | sed "$ac_script"`
66086 + # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
66087 + # will be set to the directory where LIBOBJS objects are built.
66088 + ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
66089 + ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
66090 done
66091 LIBOBJS=$ac_libobjs
66092
66093 @@ -9939,17 +10313,45 @@ cat >>$CONFIG_STATUS <<\_ACEOF
66094 ## M4sh Initialization. ##
66095 ## --------------------- ##
66096
66097 -# Be Bourne compatible
66098 +# Be more Bourne compatible
66099 +DUALCASE=1; export DUALCASE # for MKS sh
66100 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
66101 emulate sh
66102 NULLCMD=:
66103 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
66104 # is contrary to our usage. Disable this feature.
66105 alias -g '${1+"$@"}'='"$@"'
66106 -elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
66107 - set -o posix
66108 + setopt NO_GLOB_SUBST
66109 +else
66110 + case `(set -o) 2>/dev/null` in
66111 + *posix*) set -o posix ;;
66112 +esac
66113 +
66114 +fi
66115 +
66116 +
66117 +
66118 +
66119 +# PATH needs CR
66120 +# Avoid depending upon Character Ranges.
66121 +as_cr_letters='abcdefghijklmnopqrstuvwxyz'
66122 +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
66123 +as_cr_Letters=$as_cr_letters$as_cr_LETTERS
66124 +as_cr_digits='0123456789'
66125 +as_cr_alnum=$as_cr_Letters$as_cr_digits
66126 +
66127 +# The user is always right.
66128 +if test "${PATH_SEPARATOR+set}" != set; then
66129 + echo "#! /bin/sh" >conf$$.sh
66130 + echo "exit 0" >>conf$$.sh
66131 + chmod +x conf$$.sh
66132 + if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
66133 + PATH_SEPARATOR=';'
66134 + else
66135 + PATH_SEPARATOR=:
66136 + fi
66137 + rm -f conf$$.sh
66138 fi
66139 -DUALCASE=1; export DUALCASE # for MKS sh
66140
66141 # Support unset when possible.
66142 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
66143 @@ -9959,8 +10361,43 @@ else
66144 fi
66145
66146
66147 +# IFS
66148 +# We need space, tab and new line, in precisely that order. Quoting is
66149 +# there to prevent editors from complaining about space-tab.
66150 +# (If _AS_PATH_WALK were called with IFS unset, it would disable word
66151 +# splitting by setting IFS to empty value.)
66152 +as_nl='
66153 +'
66154 +IFS=" "" $as_nl"
66155 +
66156 +# Find who we are. Look in the path if we contain no directory separator.
66157 +case $0 in
66158 + *[\\/]* ) as_myself=$0 ;;
66159 + *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
66160 +for as_dir in $PATH
66161 +do
66162 + IFS=$as_save_IFS
66163 + test -z "$as_dir" && as_dir=.
66164 + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
66165 +done
66166 +IFS=$as_save_IFS
66167 +
66168 + ;;
66169 +esac
66170 +# We did not find ourselves, most probably we were run as `sh COMMAND'
66171 +# in which case we are not to be found in the path.
66172 +if test "x$as_myself" = x; then
66173 + as_myself=$0
66174 +fi
66175 +if test ! -f "$as_myself"; then
66176 + echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
66177 + { (exit 1); exit 1; }
66178 +fi
66179 +
66180 # Work around bugs in pre-3.0 UWIN ksh.
66181 -$as_unset ENV MAIL MAILPATH
66182 +for as_var in ENV MAIL MAILPATH
66183 +do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
66184 +done
66185 PS1='$ '
66186 PS2='> '
66187 PS4='+ '
66188 @@ -9974,18 +10411,19 @@ do
66189 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
66190 eval $as_var=C; export $as_var
66191 else
66192 - $as_unset $as_var
66193 + ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
66194 fi
66195 done
66196
66197 # Required to use basename.
66198 -if expr a : '\(a\)' >/dev/null 2>&1; then
66199 +if expr a : '\(a\)' >/dev/null 2>&1 &&
66200 + test "X`expr 00001 : '.*\(...\)'`" = X001; then
66201 as_expr=expr
66202 else
66203 as_expr=false
66204 fi
66205
66206 -if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
66207 +if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
66208 as_basename=basename
66209 else
66210 as_basename=false
66211 @@ -9993,159 +10431,120 @@ fi
66212
66213
66214 # Name of the executable.
66215 -as_me=`$as_basename "$0" ||
66216 +as_me=`$as_basename -- "$0" ||
66217 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
66218 X"$0" : 'X\(//\)$' \| \
66219 - X"$0" : 'X\(/\)$' \| \
66220 - . : '\(.\)' 2>/dev/null ||
66221 + X"$0" : 'X\(/\)' \| . 2>/dev/null ||
66222 echo X/"$0" |
66223 - sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
66224 - /^X\/\(\/\/\)$/{ s//\1/; q; }
66225 - /^X\/\(\/\).*/{ s//\1/; q; }
66226 - s/.*/./; q'`
66227 -
66228 -
66229 -# PATH needs CR, and LINENO needs CR and PATH.
66230 -# Avoid depending upon Character Ranges.
66231 -as_cr_letters='abcdefghijklmnopqrstuvwxyz'
66232 -as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
66233 -as_cr_Letters=$as_cr_letters$as_cr_LETTERS
66234 -as_cr_digits='0123456789'
66235 -as_cr_alnum=$as_cr_Letters$as_cr_digits
66236 + sed '/^.*\/\([^/][^/]*\)\/*$/{
66237 + s//\1/
66238 + q
66239 + }
66240 + /^X\/\(\/\/\)$/{
66241 + s//\1/
66242 + q
66243 + }
66244 + /^X\/\(\/\).*/{
66245 + s//\1/
66246 + q
66247 + }
66248 + s/.*/./; q'`
66249
66250 -# The user is always right.
66251 -if test "${PATH_SEPARATOR+set}" != set; then
66252 - echo "#! /bin/sh" >conf$$.sh
66253 - echo "exit 0" >>conf$$.sh
66254 - chmod +x conf$$.sh
66255 - if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
66256 - PATH_SEPARATOR=';'
66257 - else
66258 - PATH_SEPARATOR=:
66259 - fi
66260 - rm -f conf$$.sh
66261 -fi
66262 +# CDPATH.
66263 +$as_unset CDPATH
66264
66265
66266 - as_lineno_1=$LINENO
66267 - as_lineno_2=$LINENO
66268 - as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
66269 - test "x$as_lineno_1" != "x$as_lineno_2" &&
66270 - test "x$as_lineno_3" = "x$as_lineno_2" || {
66271 - # Find who we are. Look in the path if we contain no path at all
66272 - # relative or not.
66273 - case $0 in
66274 - *[\\/]* ) as_myself=$0 ;;
66275 - *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
66276 -for as_dir in $PATH
66277 -do
66278 - IFS=$as_save_IFS
66279 - test -z "$as_dir" && as_dir=.
66280 - test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
66281 -done
66282
66283 - ;;
66284 - esac
66285 - # We did not find ourselves, most probably we were run as `sh COMMAND'
66286 - # in which case we are not to be found in the path.
66287 - if test "x$as_myself" = x; then
66288 - as_myself=$0
66289 - fi
66290 - if test ! -f "$as_myself"; then
66291 - { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
66292 -echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
66293 - { (exit 1); exit 1; }; }
66294 - fi
66295 - case $CONFIG_SHELL in
66296 - '')
66297 - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
66298 -for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
66299 -do
66300 - IFS=$as_save_IFS
66301 - test -z "$as_dir" && as_dir=.
66302 - for as_base in sh bash ksh sh5; do
66303 - case $as_dir in
66304 - /*)
66305 - if ("$as_dir/$as_base" -c '
66306 as_lineno_1=$LINENO
66307 as_lineno_2=$LINENO
66308 - as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
66309 test "x$as_lineno_1" != "x$as_lineno_2" &&
66310 - test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
66311 - $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
66312 - $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
66313 - CONFIG_SHELL=$as_dir/$as_base
66314 - export CONFIG_SHELL
66315 - exec "$CONFIG_SHELL" "$0" ${1+"$@"}
66316 - fi;;
66317 - esac
66318 - done
66319 -done
66320 -;;
66321 - esac
66322 + test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
66323
66324 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
66325 # uniformly replaced by the line number. The first 'sed' inserts a
66326 - # line-number line before each line; the second 'sed' does the real
66327 - # work. The second script uses 'N' to pair each line-number line
66328 - # with the numbered line, and appends trailing '-' during
66329 - # substitution so that $LINENO is not a special case at line end.
66330 + # line-number line after each line using $LINENO; the second 'sed'
66331 + # does the real work. The second script uses 'N' to pair each
66332 + # line-number line with the line containing $LINENO, and appends
66333 + # trailing '-' during substitution so that $LINENO is not a special
66334 + # case at line end.
66335 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
66336 - # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
66337 - sed '=' <$as_myself |
66338 + # scripts with optimization help from Paolo Bonzini. Blame Lee
66339 + # E. McMahon (1931-1989) for sed's syntax. :-)
66340 + sed -n '
66341 + p
66342 + /[$]LINENO/=
66343 + ' <$as_myself |
66344 sed '
66345 + s/[$]LINENO.*/&-/
66346 + t lineno
66347 + b
66348 + :lineno
66349 N
66350 - s,$,-,
66351 - : loop
66352 - s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
66353 + :loop
66354 + s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
66355 t loop
66356 - s,-$,,
66357 - s,^['$as_cr_digits']*\n,,
66358 + s/-\n.*//
66359 ' >$as_me.lineno &&
66360 - chmod +x $as_me.lineno ||
66361 - { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
66362 -echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
66363 + chmod +x "$as_me.lineno" ||
66364 + { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
66365 { (exit 1); exit 1; }; }
66366
66367 # Don't try to exec as it changes $[0], causing all sort of problems
66368 # (the dirname of $[0] is not the place where we might find the
66369 - # original and so on. Autoconf is especially sensible to this).
66370 - . ./$as_me.lineno
66371 + # original and so on. Autoconf is especially sensitive to this).
66372 + . "./$as_me.lineno"
66373 # Exit status is that of the last command.
66374 exit
66375 }
66376
66377
66378 -case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
66379 - *c*,-n*) ECHO_N= ECHO_C='
66380 -' ECHO_T=' ' ;;
66381 - *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
66382 - *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
66383 +if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
66384 + as_dirname=dirname
66385 +else
66386 + as_dirname=false
66387 +fi
66388 +
66389 +ECHO_C= ECHO_N= ECHO_T=
66390 +case `echo -n x` in
66391 +-n*)
66392 + case `echo 'x\c'` in
66393 + *c*) ECHO_T=' ';; # ECHO_T is single tab character.
66394 + *) ECHO_C='\c';;
66395 + esac;;
66396 +*)
66397 + ECHO_N='-n';;
66398 esac
66399
66400 -if expr a : '\(a\)' >/dev/null 2>&1; then
66401 +if expr a : '\(a\)' >/dev/null 2>&1 &&
66402 + test "X`expr 00001 : '.*\(...\)'`" = X001; then
66403 as_expr=expr
66404 else
66405 as_expr=false
66406 fi
66407
66408 rm -f conf$$ conf$$.exe conf$$.file
66409 +if test -d conf$$.dir; then
66410 + rm -f conf$$.dir/conf$$.file
66411 +else
66412 + rm -f conf$$.dir
66413 + mkdir conf$$.dir
66414 +fi
66415 echo >conf$$.file
66416 if ln -s conf$$.file conf$$ 2>/dev/null; then
66417 - # We could just check for DJGPP; but this test a) works b) is more generic
66418 - # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
66419 - if test -f conf$$.exe; then
66420 - # Don't use ln at all; we don't have any links
66421 + as_ln_s='ln -s'
66422 + # ... but there are two gotchas:
66423 + # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
66424 + # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
66425 + # In both cases, we have to default to `cp -p'.
66426 + ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
66427 as_ln_s='cp -p'
66428 - else
66429 - as_ln_s='ln -s'
66430 - fi
66431 elif ln conf$$.file conf$$ 2>/dev/null; then
66432 as_ln_s=ln
66433 else
66434 as_ln_s='cp -p'
66435 fi
66436 -rm -f conf$$ conf$$.exe conf$$.file
66437 +rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
66438 +rmdir conf$$.dir 2>/dev/null
66439
66440 if mkdir -p . 2>/dev/null; then
66441 as_mkdir_p=:
66442 @@ -10154,7 +10553,28 @@ else
66443 as_mkdir_p=false
66444 fi
66445
66446 -as_executable_p="test -f"
66447 +if test -x / >/dev/null 2>&1; then
66448 + as_test_x='test -x'
66449 +else
66450 + if ls -dL / >/dev/null 2>&1; then
66451 + as_ls_L_option=L
66452 + else
66453 + as_ls_L_option=
66454 + fi
66455 + as_test_x='
66456 + eval sh -c '\''
66457 + if test -d "$1"; then
66458 + test -d "$1/.";
66459 + else
66460 + case $1 in
66461 + -*)set "./$1";;
66462 + esac;
66463 + case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
66464 + ???[sx]*):;;*)false;;esac;fi
66465 + '\'' sh
66466 + '
66467 +fi
66468 +as_executable_p=$as_test_x
66469
66470 # Sed expression to map a string onto a valid CPP name.
66471 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
66472 @@ -10163,31 +10583,14 @@ as_tr_cpp="eval sed 'y%*$as_cr_letters%P
66473 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
66474
66475
66476 -# IFS
66477 -# We need space, tab and new line, in precisely that order.
66478 -as_nl='
66479 -'
66480 -IFS=" $as_nl"
66481 -
66482 -# CDPATH.
66483 -$as_unset CDPATH
66484 -
66485 exec 6>&1
66486
66487 -# Open the log real soon, to keep \$[0] and so on meaningful, and to
66488 +# Save the log message, to keep $[0] and so on meaningful, and to
66489 # report actual input values of CONFIG_FILES etc. instead of their
66490 -# values after options handling. Logging --version etc. is OK.
66491 -exec 5>>config.log
66492 -{
66493 - echo
66494 - sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
66495 -## Running $as_me. ##
66496 -_ASBOX
66497 -} >&5
66498 -cat >&5 <<_CSEOF
66499 -
66500 +# values after options handling.
66501 +ac_log="
66502 This file was extended by $as_me, which was
66503 -generated by GNU Autoconf 2.59. Invocation command line was
66504 +generated by GNU Autoconf 2.61. Invocation command line was
66505
66506 CONFIG_FILES = $CONFIG_FILES
66507 CONFIG_HEADERS = $CONFIG_HEADERS
66508 @@ -10195,30 +10598,20 @@ generated by GNU Autoconf 2.59. Invocat
66509 CONFIG_COMMANDS = $CONFIG_COMMANDS
66510 $ $0 $@
66511
66512 -_CSEOF
66513 -echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
66514 -echo >&5
66515 +on `(hostname || uname -n) 2>/dev/null | sed 1q`
66516 +"
66517 +
66518 _ACEOF
66519
66520 +cat >>$CONFIG_STATUS <<_ACEOF
66521 # Files that config.status was made for.
66522 -if test -n "$ac_config_files"; then
66523 - echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
66524 -fi
66525 -
66526 -if test -n "$ac_config_headers"; then
66527 - echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
66528 -fi
66529 -
66530 -if test -n "$ac_config_links"; then
66531 - echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
66532 -fi
66533 +config_files="$ac_config_files"
66534 +config_headers="$ac_config_headers"
66535 +config_commands="$ac_config_commands"
66536
66537 -if test -n "$ac_config_commands"; then
66538 - echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
66539 -fi
66540 +_ACEOF
66541
66542 cat >>$CONFIG_STATUS <<\_ACEOF
66543 -
66544 ac_cs_usage="\
66545 \`$as_me' instantiates files from templates according to the
66546 current configuration.
66547 @@ -10226,7 +10619,7 @@ current configuration.
66548 Usage: $0 [OPTIONS] [FILE]...
66549
66550 -h, --help print this help, then exit
66551 - -V, --version print version number, then exit
66552 + -V, --version print version number and configuration settings, then exit
66553 -q, --quiet do not print progress messages
66554 -d, --debug don't remove temporary files
66555 --recheck update $as_me by reconfiguring in the same conditions
66556 @@ -10245,19 +10638,21 @@ Configuration commands:
66557 $config_commands
66558
66559 Report bugs to <bug-autoconf@gnu.org>."
66560 -_ACEOF
66561
66562 +_ACEOF
66563 cat >>$CONFIG_STATUS <<_ACEOF
66564 ac_cs_version="\\
66565 config.status
66566 -configured by $0, generated by GNU Autoconf 2.59,
66567 - with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
66568 +configured by $0, generated by GNU Autoconf 2.61,
66569 + with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
66570
66571 -Copyright (C) 2003 Free Software Foundation, Inc.
66572 +Copyright (C) 2006 Free Software Foundation, Inc.
66573 This config.status script is free software; the Free Software Foundation
66574 gives unlimited permission to copy, distribute and modify it."
66575 -srcdir=$srcdir
66576 -INSTALL="$INSTALL"
66577 +
66578 +ac_pwd='$ac_pwd'
66579 +srcdir='$srcdir'
66580 +INSTALL='$INSTALL'
66581 _ACEOF
66582
66583 cat >>$CONFIG_STATUS <<\_ACEOF
66584 @@ -10268,39 +10663,24 @@ while test $# != 0
66585 do
66586 case $1 in
66587 --*=*)
66588 - ac_option=`expr "x$1" : 'x\([^=]*\)='`
66589 - ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
66590 + ac_option=`expr "X$1" : 'X\([^=]*\)='`
66591 + ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
66592 ac_shift=:
66593 ;;
66594 - -*)
66595 + *)
66596 ac_option=$1
66597 ac_optarg=$2
66598 ac_shift=shift
66599 ;;
66600 - *) # This is not an option, so the user has probably given explicit
66601 - # arguments.
66602 - ac_option=$1
66603 - ac_need_defaults=false;;
66604 esac
66605
66606 case $ac_option in
66607 # Handling of the options.
66608 -_ACEOF
66609 -cat >>$CONFIG_STATUS <<\_ACEOF
66610 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
66611 ac_cs_recheck=: ;;
66612 - --version | --vers* | -V )
66613 - echo "$ac_cs_version"; exit 0 ;;
66614 - --he | --h)
66615 - # Conflict between --help and --header
66616 - { { echo "$as_me:$LINENO: error: ambiguous option: $1
66617 -Try \`$0 --help' for more information." >&5
66618 -echo "$as_me: error: ambiguous option: $1
66619 -Try \`$0 --help' for more information." >&2;}
66620 - { (exit 1); exit 1; }; };;
66621 - --help | --hel | -h )
66622 - echo "$ac_cs_usage"; exit 0 ;;
66623 - --debug | --d* | -d )
66624 + --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
66625 + echo "$ac_cs_version"; exit ;;
66626 + --debug | --debu | --deb | --de | --d | -d )
66627 debug=: ;;
66628 --file | --fil | --fi | --f )
66629 $ac_shift
66630 @@ -10310,18 +10690,24 @@ Try \`$0 --help' for more information."
66631 $ac_shift
66632 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
66633 ac_need_defaults=false;;
66634 + --he | --h)
66635 + # Conflict between --help and --header
66636 + { echo "$as_me: error: ambiguous option: $1
66637 +Try \`$0 --help' for more information." >&2
66638 + { (exit 1); exit 1; }; };;
66639 + --help | --hel | -h )
66640 + echo "$ac_cs_usage"; exit ;;
66641 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
66642 | -silent | --silent | --silen | --sile | --sil | --si | --s)
66643 ac_cs_silent=: ;;
66644
66645 # This is an error.
66646 - -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
66647 -Try \`$0 --help' for more information." >&5
66648 -echo "$as_me: error: unrecognized option: $1
66649 -Try \`$0 --help' for more information." >&2;}
66650 + -*) { echo "$as_me: error: unrecognized option: $1
66651 +Try \`$0 --help' for more information." >&2
66652 { (exit 1); exit 1; }; } ;;
66653
66654 - *) ac_config_targets="$ac_config_targets $1" ;;
66655 + *) ac_config_targets="$ac_config_targets $1"
66656 + ac_need_defaults=false ;;
66657
66658 esac
66659 shift
66660 @@ -10337,39 +10723,51 @@ fi
66661 _ACEOF
66662 cat >>$CONFIG_STATUS <<_ACEOF
66663 if \$ac_cs_recheck; then
66664 - echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
66665 - exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
66666 + echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
66667 + CONFIG_SHELL=$SHELL
66668 + export CONFIG_SHELL
66669 + exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
66670 fi
66671
66672 _ACEOF
66673 +cat >>$CONFIG_STATUS <<\_ACEOF
66674 +exec 5>>config.log
66675 +{
66676 + echo
66677 + sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
66678 +## Running $as_me. ##
66679 +_ASBOX
66680 + echo "$ac_log"
66681 +} >&5
66682
66683 +_ACEOF
66684 cat >>$CONFIG_STATUS <<_ACEOF
66685 #
66686 -# INIT-COMMANDS section.
66687 +# INIT-COMMANDS
66688 #
66689 -
66690 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
66691
66692 _ACEOF
66693
66694 -
66695 -
66696 cat >>$CONFIG_STATUS <<\_ACEOF
66697 +
66698 +# Handling of arguments.
66699 for ac_config_target in $ac_config_targets
66700 do
66701 - case "$ac_config_target" in
66702 - # Handling of arguments.
66703 - "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
66704 - "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
66705 - "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
66706 - "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
66707 - "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
66708 + case $ac_config_target in
66709 + "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
66710 + "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
66711 + "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
66712 + "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
66713 + "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
66714 +
66715 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
66716 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
66717 { (exit 1); exit 1; }; };;
66718 esac
66719 done
66720
66721 +
66722 # If the user did not use the arguments to specify the items to instantiate,
66723 # then the envvar interface is used. Set only those that are not.
66724 # We use the long form for the default assignment because of an extremely
66725 @@ -10381,640 +10779,634 @@ if $ac_need_defaults; then
66726 fi
66727
66728 # Have a temporary directory for convenience. Make it in the build tree
66729 -# simply because there is no reason to put it here, and in addition,
66730 +# simply because there is no reason against having it here, and in addition,
66731 # creating and moving files from /tmp can sometimes cause problems.
66732 -# Create a temporary directory, and hook for its removal unless debugging.
66733 +# Hook for its removal unless debugging.
66734 +# Note that there is a small window in which the directory will not be cleaned:
66735 +# after its creation but before its name has been assigned to `$tmp'.
66736 $debug ||
66737 {
66738 - trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
66739 + tmp=
66740 + trap 'exit_status=$?
66741 + { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
66742 +' 0
66743 trap '{ (exit 1); exit 1; }' 1 2 13 15
66744 }
66745 -
66746 # Create a (secure) tmp directory for tmp files.
66747
66748 {
66749 - tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
66750 + tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
66751 test -n "$tmp" && test -d "$tmp"
66752 } ||
66753 {
66754 - tmp=./confstat$$-$RANDOM
66755 - (umask 077 && mkdir $tmp)
66756 + tmp=./conf$$-$RANDOM
66757 + (umask 077 && mkdir "$tmp")
66758 } ||
66759 {
66760 echo "$me: cannot create a temporary directory in ." >&2
66761 { (exit 1); exit 1; }
66762 }
66763
66764 -_ACEOF
66765 -
66766 -cat >>$CONFIG_STATUS <<_ACEOF
66767 -
66768 #
66769 -# CONFIG_FILES section.
66770 +# Set up the sed scripts for CONFIG_FILES section.
66771 #
66772
66773 # No need to generate the scripts if there are no CONFIG_FILES.
66774 # This happens for instance when ./config.status config.h
66775 -if test -n "\$CONFIG_FILES"; then
66776 - # Protect against being on the right side of a sed subst in config.status.
66777 - sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
66778 - s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
66779 -s,@SHELL@,$SHELL,;t t
66780 -s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
66781 -s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
66782 -s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
66783 -s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
66784 -s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
66785 -s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
66786 -s,@exec_prefix@,$exec_prefix,;t t
66787 -s,@prefix@,$prefix,;t t
66788 -s,@program_transform_name@,$program_transform_name,;t t
66789 -s,@bindir@,$bindir,;t t
66790 -s,@sbindir@,$sbindir,;t t
66791 -s,@libexecdir@,$libexecdir,;t t
66792 -s,@datadir@,$datadir,;t t
66793 -s,@sysconfdir@,$sysconfdir,;t t
66794 -s,@sharedstatedir@,$sharedstatedir,;t t
66795 -s,@localstatedir@,$localstatedir,;t t
66796 -s,@libdir@,$libdir,;t t
66797 -s,@includedir@,$includedir,;t t
66798 -s,@oldincludedir@,$oldincludedir,;t t
66799 -s,@infodir@,$infodir,;t t
66800 -s,@mandir@,$mandir,;t t
66801 -s,@build_alias@,$build_alias,;t t
66802 -s,@host_alias@,$host_alias,;t t
66803 -s,@target_alias@,$target_alias,;t t
66804 -s,@DEFS@,$DEFS,;t t
66805 -s,@ECHO_C@,$ECHO_C,;t t
66806 -s,@ECHO_N@,$ECHO_N,;t t
66807 -s,@ECHO_T@,$ECHO_T,;t t
66808 -s,@LIBS@,$LIBS,;t t
66809 -s,@build@,$build,;t t
66810 -s,@build_cpu@,$build_cpu,;t t
66811 -s,@build_vendor@,$build_vendor,;t t
66812 -s,@build_os@,$build_os,;t t
66813 -s,@host@,$host,;t t
66814 -s,@host_cpu@,$host_cpu,;t t
66815 -s,@host_vendor@,$host_vendor,;t t
66816 -s,@host_os@,$host_os,;t t
66817 -s,@target@,$target,;t t
66818 -s,@target_cpu@,$target_cpu,;t t
66819 -s,@target_vendor@,$target_vendor,;t t
66820 -s,@target_os@,$target_os,;t t
66821 -s,@CC@,$CC,;t t
66822 -s,@CFLAGS@,$CFLAGS,;t t
66823 -s,@LDFLAGS@,$LDFLAGS,;t t
66824 -s,@CPPFLAGS@,$CPPFLAGS,;t t
66825 -s,@ac_ct_CC@,$ac_ct_CC,;t t
66826 -s,@EXEEXT@,$EXEEXT,;t t
66827 -s,@OBJEXT@,$OBJEXT,;t t
66828 -s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
66829 -s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
66830 -s,@INSTALL_DATA@,$INSTALL_DATA,;t t
66831 -s,@CYGPATH_W@,$CYGPATH_W,;t t
66832 -s,@PACKAGE@,$PACKAGE,;t t
66833 -s,@VERSION@,$VERSION,;t t
66834 -s,@ACLOCAL@,$ACLOCAL,;t t
66835 -s,@AUTOCONF@,$AUTOCONF,;t t
66836 -s,@AUTOMAKE@,$AUTOMAKE,;t t
66837 -s,@AUTOHEADER@,$AUTOHEADER,;t t
66838 -s,@MAKEINFO@,$MAKEINFO,;t t
66839 -s,@install_sh@,$install_sh,;t t
66840 -s,@STRIP@,$STRIP,;t t
66841 -s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
66842 -s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
66843 -s,@mkdir_p@,$mkdir_p,;t t
66844 -s,@AWK@,$AWK,;t t
66845 -s,@SET_MAKE@,$SET_MAKE,;t t
66846 -s,@am__leading_dot@,$am__leading_dot,;t t
66847 -s,@AMTAR@,$AMTAR,;t t
66848 -s,@am__tar@,$am__tar,;t t
66849 -s,@am__untar@,$am__untar,;t t
66850 -s,@DEPDIR@,$DEPDIR,;t t
66851 -s,@am__include@,$am__include,;t t
66852 -s,@am__quote@,$am__quote,;t t
66853 -s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
66854 -s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
66855 -s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
66856 -s,@CCDEPMODE@,$CCDEPMODE,;t t
66857 -s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
66858 -s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
66859 -s,@LN_S@,$LN_S,;t t
66860 -s,@RANLIB@,$RANLIB,;t t
66861 -s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
66862 -s,@LIBTOOL@,$LIBTOOL,;t t
66863 -s,@use_sysroot@,$use_sysroot,;t t
66864 -s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
66865 -s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
66866 -s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
66867 -s,@NO_WERROR@,$NO_WERROR,;t t
66868 -s,@CPP@,$CPP,;t t
66869 -s,@EGREP@,$EGREP,;t t
66870 -s,@ALLOCA@,$ALLOCA,;t t
66871 -s,@USE_NLS@,$USE_NLS,;t t
66872 -s,@MSGFMT@,$MSGFMT,;t t
66873 -s,@GMSGFMT@,$GMSGFMT,;t t
66874 -s,@XGETTEXT@,$XGETTEXT,;t t
66875 -s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
66876 -s,@CATALOGS@,$CATALOGS,;t t
66877 -s,@CATOBJEXT@,$CATOBJEXT,;t t
66878 -s,@DATADIRNAME@,$DATADIRNAME,;t t
66879 -s,@GMOFILES@,$GMOFILES,;t t
66880 -s,@INSTOBJEXT@,$INSTOBJEXT,;t t
66881 -s,@INTLDEPS@,$INTLDEPS,;t t
66882 -s,@INTLLIBS@,$INTLLIBS,;t t
66883 -s,@INTLOBJS@,$INTLOBJS,;t t
66884 -s,@POFILES@,$POFILES,;t t
66885 -s,@POSUB@,$POSUB,;t t
66886 -s,@INCLUDE_LOCALE_H@,$INCLUDE_LOCALE_H,;t t
66887 -s,@GT_NO@,$GT_NO,;t t
66888 -s,@GT_YES@,$GT_YES,;t t
66889 -s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
66890 -s,@l@,$l,;t t
66891 -s,@YACC@,$YACC,;t t
66892 -s,@LEX@,$LEX,;t t
66893 -s,@LEXLIB@,$LEXLIB,;t t
66894 -s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
66895 -s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
66896 -s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
66897 -s,@MAINT@,$MAINT,;t t
66898 -s,@HDEFINES@,$HDEFINES,;t t
66899 -s,@HOSTING_CRT0@,$HOSTING_CRT0,;t t
66900 -s,@HOSTING_LIBS@,$HOSTING_LIBS,;t t
66901 -s,@NATIVE_LIB_DIRS@,$NATIVE_LIB_DIRS,;t t
66902 -s,@STRINGIFY@,$STRINGIFY,;t t
66903 -s,@EMUL@,$EMUL,;t t
66904 -s,@EMULATION_OFILES@,$EMULATION_OFILES,;t t
66905 -s,@EMUL_EXTRA_OFILES@,$EMUL_EXTRA_OFILES,;t t
66906 -s,@LIB_PATH@,$LIB_PATH,;t t
66907 -s,@EMULATION_LIBPATH@,$EMULATION_LIBPATH,;t t
66908 -s,@TESTBFDLIB@,$TESTBFDLIB,;t t
66909 -s,@datarootdir@,$datarootdir,;t t
66910 -s,@docdir@,$docdir,;t t
66911 -s,@htmldir@,$htmldir,;t t
66912 -s,@LIBOBJS@,$LIBOBJS,;t t
66913 -s,@LTLIBOBJS@,$LTLIBOBJS,;t t
66914 -/@TDIRS@/r $TDIRS
66915 -s,@TDIRS@,,;t t
66916 -CEOF
66917 -
66918 -_ACEOF
66919 -
66920 - cat >>$CONFIG_STATUS <<\_ACEOF
66921 - # Split the substitutions into bite-sized pieces for seds with
66922 - # small command number limits, like on Digital OSF/1 and HP-UX.
66923 - ac_max_sed_lines=48
66924 - ac_sed_frag=1 # Number of current file.
66925 - ac_beg=1 # First line for current file.
66926 - ac_end=$ac_max_sed_lines # Line after last line for current file.
66927 - ac_more_lines=:
66928 - ac_sed_cmds=
66929 - while $ac_more_lines; do
66930 - if test $ac_beg -gt 1; then
66931 - sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
66932 - else
66933 - sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
66934 - fi
66935 - if test ! -s $tmp/subs.frag; then
66936 - ac_more_lines=false
66937 - else
66938 - # The purpose of the label and of the branching condition is to
66939 - # speed up the sed processing (if there are no `@' at all, there
66940 - # is no need to browse any of the substitutions).
66941 - # These are the two extra sed commands mentioned above.
66942 - (echo ':t
66943 - /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
66944 - if test -z "$ac_sed_cmds"; then
66945 - ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
66946 - else
66947 - ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
66948 - fi
66949 - ac_sed_frag=`expr $ac_sed_frag + 1`
66950 - ac_beg=$ac_end
66951 - ac_end=`expr $ac_end + $ac_max_sed_lines`
66952 - fi
66953 - done
66954 - if test -z "$ac_sed_cmds"; then
66955 - ac_sed_cmds=cat
66956 +if test -n "$CONFIG_FILES"; then
66957 +
66958 +_ACEOF
66959 +
66960 +# Create sed commands to just substitute file output variables.
66961 +
66962 +# Remaining file output variables are in a fragment that also has non-file
66963 +# output varibles.
66964 +
66965 +
66966 +
66967 +ac_delim='%!_!# '
66968 +for ac_last_try in false false false false false :; do
66969 + cat >conf$$subs.sed <<_ACEOF
66970 +SHELL!$SHELL$ac_delim
66971 +PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
66972 +PACKAGE_NAME!$PACKAGE_NAME$ac_delim
66973 +PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
66974 +PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
66975 +PACKAGE_STRING!$PACKAGE_STRING$ac_delim
66976 +PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
66977 +exec_prefix!$exec_prefix$ac_delim
66978 +prefix!$prefix$ac_delim
66979 +program_transform_name!$program_transform_name$ac_delim
66980 +bindir!$bindir$ac_delim
66981 +sbindir!$sbindir$ac_delim
66982 +libexecdir!$libexecdir$ac_delim
66983 +datarootdir!$datarootdir$ac_delim
66984 +datadir!$datadir$ac_delim
66985 +sysconfdir!$sysconfdir$ac_delim
66986 +sharedstatedir!$sharedstatedir$ac_delim
66987 +localstatedir!$localstatedir$ac_delim
66988 +includedir!$includedir$ac_delim
66989 +oldincludedir!$oldincludedir$ac_delim
66990 +docdir!$docdir$ac_delim
66991 +infodir!$infodir$ac_delim
66992 +htmldir!$htmldir$ac_delim
66993 +dvidir!$dvidir$ac_delim
66994 +pdfdir!$pdfdir$ac_delim
66995 +psdir!$psdir$ac_delim
66996 +libdir!$libdir$ac_delim
66997 +localedir!$localedir$ac_delim
66998 +mandir!$mandir$ac_delim
66999 +DEFS!$DEFS$ac_delim
67000 +ECHO_C!$ECHO_C$ac_delim
67001 +ECHO_N!$ECHO_N$ac_delim
67002 +ECHO_T!$ECHO_T$ac_delim
67003 +LIBS!$LIBS$ac_delim
67004 +build_alias!$build_alias$ac_delim
67005 +host_alias!$host_alias$ac_delim
67006 +target_alias!$target_alias$ac_delim
67007 +build!$build$ac_delim
67008 +build_cpu!$build_cpu$ac_delim
67009 +build_vendor!$build_vendor$ac_delim
67010 +build_os!$build_os$ac_delim
67011 +host!$host$ac_delim
67012 +host_cpu!$host_cpu$ac_delim
67013 +host_vendor!$host_vendor$ac_delim
67014 +host_os!$host_os$ac_delim
67015 +target!$target$ac_delim
67016 +target_cpu!$target_cpu$ac_delim
67017 +target_vendor!$target_vendor$ac_delim
67018 +target_os!$target_os$ac_delim
67019 +CC!$CC$ac_delim
67020 +CFLAGS!$CFLAGS$ac_delim
67021 +LDFLAGS!$LDFLAGS$ac_delim
67022 +CPPFLAGS!$CPPFLAGS$ac_delim
67023 +ac_ct_CC!$ac_ct_CC$ac_delim
67024 +EXEEXT!$EXEEXT$ac_delim
67025 +OBJEXT!$OBJEXT$ac_delim
67026 +INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
67027 +INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
67028 +INSTALL_DATA!$INSTALL_DATA$ac_delim
67029 +CYGPATH_W!$CYGPATH_W$ac_delim
67030 +PACKAGE!$PACKAGE$ac_delim
67031 +VERSION!$VERSION$ac_delim
67032 +ACLOCAL!$ACLOCAL$ac_delim
67033 +AUTOCONF!$AUTOCONF$ac_delim
67034 +AUTOMAKE!$AUTOMAKE$ac_delim
67035 +AUTOHEADER!$AUTOHEADER$ac_delim
67036 +MAKEINFO!$MAKEINFO$ac_delim
67037 +install_sh!$install_sh$ac_delim
67038 +STRIP!$STRIP$ac_delim
67039 +INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
67040 +mkdir_p!$mkdir_p$ac_delim
67041 +AWK!$AWK$ac_delim
67042 +SET_MAKE!$SET_MAKE$ac_delim
67043 +am__leading_dot!$am__leading_dot$ac_delim
67044 +AMTAR!$AMTAR$ac_delim
67045 +am__tar!$am__tar$ac_delim
67046 +am__untar!$am__untar$ac_delim
67047 +DEPDIR!$DEPDIR$ac_delim
67048 +am__include!$am__include$ac_delim
67049 +am__quote!$am__quote$ac_delim
67050 +AMDEP_TRUE!$AMDEP_TRUE$ac_delim
67051 +AMDEP_FALSE!$AMDEP_FALSE$ac_delim
67052 +AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
67053 +CCDEPMODE!$CCDEPMODE$ac_delim
67054 +am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
67055 +am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
67056 +LN_S!$LN_S$ac_delim
67057 +RANLIB!$RANLIB$ac_delim
67058 +LIBTOOL!$LIBTOOL$ac_delim
67059 +use_sysroot!$use_sysroot$ac_delim
67060 +TARGET_SYSTEM_ROOT!$TARGET_SYSTEM_ROOT$ac_delim
67061 +TARGET_SYSTEM_ROOT_DEFINE!$TARGET_SYSTEM_ROOT_DEFINE$ac_delim
67062 +WARN_CFLAGS!$WARN_CFLAGS$ac_delim
67063 +NO_WERROR!$NO_WERROR$ac_delim
67064 +_ACEOF
67065 +
67066 + if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 94; then
67067 + break
67068 + elif $ac_last_try; then
67069 + { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
67070 +echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
67071 + { (exit 1); exit 1; }; }
67072 + else
67073 + ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
67074 fi
67075 -fi # test -n "$CONFIG_FILES"
67076 +done
67077 +
67078 +ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
67079 +if test -n "$ac_eof"; then
67080 + ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
67081 + ac_eof=`expr $ac_eof + 1`
67082 +fi
67083 +
67084 +cat >>$CONFIG_STATUS <<_ACEOF
67085 +cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
67086 +/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
67087 +/^[ ]*@TDIRS@[ ]*$/{
67088 +r $TDIRS
67089 +d
67090 +}
67091 +_ACEOF
67092 +sed '
67093 +s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
67094 +s/^/s,@/; s/!/@,|#_!!_#|/
67095 +:n
67096 +t n
67097 +s/'"$ac_delim"'$/,g/; t
67098 +s/$/\\/; p
67099 +N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
67100 +' >>$CONFIG_STATUS <conf$$subs.sed
67101 +rm -f conf$$subs.sed
67102 +cat >>$CONFIG_STATUS <<_ACEOF
67103 +CEOF$ac_eof
67104 +_ACEOF
67105 +
67106 +
67107 +ac_delim='%!_!# '
67108 +for ac_last_try in false false false false false :; do
67109 + cat >conf$$subs.sed <<_ACEOF
67110 +CPP!$CPP$ac_delim
67111 +GREP!$GREP$ac_delim
67112 +EGREP!$EGREP$ac_delim
67113 +ALLOCA!$ALLOCA$ac_delim
67114 +USE_NLS!$USE_NLS$ac_delim
67115 +MSGFMT!$MSGFMT$ac_delim
67116 +GMSGFMT!$GMSGFMT$ac_delim
67117 +XGETTEXT!$XGETTEXT$ac_delim
67118 +USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim
67119 +CATALOGS!$CATALOGS$ac_delim
67120 +CATOBJEXT!$CATOBJEXT$ac_delim
67121 +DATADIRNAME!$DATADIRNAME$ac_delim
67122 +GMOFILES!$GMOFILES$ac_delim
67123 +INSTOBJEXT!$INSTOBJEXT$ac_delim
67124 +INTLDEPS!$INTLDEPS$ac_delim
67125 +INTLLIBS!$INTLLIBS$ac_delim
67126 +INTLOBJS!$INTLOBJS$ac_delim
67127 +POFILES!$POFILES$ac_delim
67128 +POSUB!$POSUB$ac_delim
67129 +INCLUDE_LOCALE_H!$INCLUDE_LOCALE_H$ac_delim
67130 +GT_NO!$GT_NO$ac_delim
67131 +GT_YES!$GT_YES$ac_delim
67132 +MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
67133 +l!$l$ac_delim
67134 +YACC!$YACC$ac_delim
67135 +YFLAGS!$YFLAGS$ac_delim
67136 +LEX!$LEX$ac_delim
67137 +LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
67138 +LEXLIB!$LEXLIB$ac_delim
67139 +MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
67140 +MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
67141 +MAINT!$MAINT$ac_delim
67142 +HDEFINES!$HDEFINES$ac_delim
67143 +HOSTING_CRT0!$HOSTING_CRT0$ac_delim
67144 +HOSTING_LIBS!$HOSTING_LIBS$ac_delim
67145 +NATIVE_LIB_DIRS!$NATIVE_LIB_DIRS$ac_delim
67146 +STRINGIFY!$STRINGIFY$ac_delim
67147 +EMUL!$EMUL$ac_delim
67148 +EMULATION_OFILES!$EMULATION_OFILES$ac_delim
67149 +EMUL_EXTRA_OFILES!$EMUL_EXTRA_OFILES$ac_delim
67150 +LIB_PATH!$LIB_PATH$ac_delim
67151 +EMULATION_LIBPATH!$EMULATION_LIBPATH$ac_delim
67152 +TESTBFDLIB!$TESTBFDLIB$ac_delim
67153 +LIBOBJS!$LIBOBJS$ac_delim
67154 +LTLIBOBJS!$LTLIBOBJS$ac_delim
67155 +_ACEOF
67156 +
67157 + if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 45; then
67158 + break
67159 + elif $ac_last_try; then
67160 + { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
67161 +echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
67162 + { (exit 1); exit 1; }; }
67163 + else
67164 + ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
67165 + fi
67166 +done
67167 +
67168 +ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
67169 +if test -n "$ac_eof"; then
67170 + ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
67171 + ac_eof=`expr $ac_eof + 1`
67172 +fi
67173
67174 +cat >>$CONFIG_STATUS <<_ACEOF
67175 +cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
67176 +/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
67177 +_ACEOF
67178 +sed '
67179 +s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
67180 +s/^/s,@/; s/!/@,|#_!!_#|/
67181 +:n
67182 +t n
67183 +s/'"$ac_delim"'$/,g/; t
67184 +s/$/\\/; p
67185 +N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
67186 +' >>$CONFIG_STATUS <conf$$subs.sed
67187 +rm -f conf$$subs.sed
67188 +cat >>$CONFIG_STATUS <<_ACEOF
67189 +:end
67190 +s/|#_!!_#|//g
67191 +CEOF$ac_eof
67192 _ACEOF
67193 +
67194 +
67195 +# VPATH may cause trouble with some makes, so we remove $(srcdir),
67196 +# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
67197 +# trailing colons and then remove the whole line if VPATH becomes empty
67198 +# (actually we leave an empty line to preserve line numbers).
67199 +if test "x$srcdir" = x.; then
67200 + ac_vpsub='/^[ ]*VPATH[ ]*=/{
67201 +s/:*\$(srcdir):*/:/
67202 +s/:*\${srcdir}:*/:/
67203 +s/:*@srcdir@:*/:/
67204 +s/^\([^=]*=[ ]*\):*/\1/
67205 +s/:*$//
67206 +s/^[^=]*=[ ]*$//
67207 +}'
67208 +fi
67209 +
67210 cat >>$CONFIG_STATUS <<\_ACEOF
67211 -for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
67212 - # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
67213 - case $ac_file in
67214 - - | *:- | *:-:* ) # input from stdin
67215 - cat >$tmp/stdin
67216 - ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
67217 - ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
67218 - *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
67219 - ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
67220 - * ) ac_file_in=$ac_file.in ;;
67221 +fi # test -n "$CONFIG_FILES"
67222 +
67223 +
67224 +for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
67225 +do
67226 + case $ac_tag in
67227 + :[FHLC]) ac_mode=$ac_tag; continue;;
67228 + esac
67229 + case $ac_mode$ac_tag in
67230 + :[FHL]*:*);;
67231 + :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
67232 +echo "$as_me: error: Invalid tag $ac_tag." >&2;}
67233 + { (exit 1); exit 1; }; };;
67234 + :[FH]-) ac_tag=-:-;;
67235 + :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
67236 + esac
67237 + ac_save_IFS=$IFS
67238 + IFS=:
67239 + set x $ac_tag
67240 + IFS=$ac_save_IFS
67241 + shift
67242 + ac_file=$1
67243 + shift
67244 +
67245 + case $ac_mode in
67246 + :L) ac_source=$1;;
67247 + :[FH])
67248 + ac_file_inputs=
67249 + for ac_f
67250 + do
67251 + case $ac_f in
67252 + -) ac_f="$tmp/stdin";;
67253 + *) # Look for the file first in the build tree, then in the source tree
67254 + # (if the path is not absolute). The absolute path cannot be DOS-style,
67255 + # because $ac_f cannot contain `:'.
67256 + test -f "$ac_f" ||
67257 + case $ac_f in
67258 + [\\/$]*) false;;
67259 + *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
67260 + esac ||
67261 + { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
67262 +echo "$as_me: error: cannot find input file: $ac_f" >&2;}
67263 + { (exit 1); exit 1; }; };;
67264 + esac
67265 + ac_file_inputs="$ac_file_inputs $ac_f"
67266 + done
67267 +
67268 + # Let's still pretend it is `configure' which instantiates (i.e., don't
67269 + # use $as_me), people would be surprised to read:
67270 + # /* config.h. Generated by config.status. */
67271 + configure_input="Generated from "`IFS=:
67272 + echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
67273 + if test x"$ac_file" != x-; then
67274 + configure_input="$ac_file. $configure_input"
67275 + { echo "$as_me:$LINENO: creating $ac_file" >&5
67276 +echo "$as_me: creating $ac_file" >&6;}
67277 + fi
67278 +
67279 + case $ac_tag in
67280 + *:-:* | *:-) cat >"$tmp/stdin";;
67281 + esac
67282 + ;;
67283 esac
67284
67285 - # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
67286 - ac_dir=`(dirname "$ac_file") 2>/dev/null ||
67287 + ac_dir=`$as_dirname -- "$ac_file" ||
67288 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
67289 X"$ac_file" : 'X\(//\)[^/]' \| \
67290 X"$ac_file" : 'X\(//\)$' \| \
67291 - X"$ac_file" : 'X\(/\)' \| \
67292 - . : '\(.\)' 2>/dev/null ||
67293 + X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
67294 echo X"$ac_file" |
67295 - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
67296 - /^X\(\/\/\)[^/].*/{ s//\1/; q; }
67297 - /^X\(\/\/\)$/{ s//\1/; q; }
67298 - /^X\(\/\).*/{ s//\1/; q; }
67299 - s/.*/./; q'`
67300 - { if $as_mkdir_p; then
67301 - mkdir -p "$ac_dir"
67302 - else
67303 - as_dir="$ac_dir"
67304 + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
67305 + s//\1/
67306 + q
67307 + }
67308 + /^X\(\/\/\)[^/].*/{
67309 + s//\1/
67310 + q
67311 + }
67312 + /^X\(\/\/\)$/{
67313 + s//\1/
67314 + q
67315 + }
67316 + /^X\(\/\).*/{
67317 + s//\1/
67318 + q
67319 + }
67320 + s/.*/./; q'`
67321 + { as_dir="$ac_dir"
67322 + case $as_dir in #(
67323 + -*) as_dir=./$as_dir;;
67324 + esac
67325 + test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
67326 as_dirs=
67327 - while test ! -d "$as_dir"; do
67328 - as_dirs="$as_dir $as_dirs"
67329 - as_dir=`(dirname "$as_dir") 2>/dev/null ||
67330 + while :; do
67331 + case $as_dir in #(
67332 + *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
67333 + *) as_qdir=$as_dir;;
67334 + esac
67335 + as_dirs="'$as_qdir' $as_dirs"
67336 + as_dir=`$as_dirname -- "$as_dir" ||
67337 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
67338 X"$as_dir" : 'X\(//\)[^/]' \| \
67339 X"$as_dir" : 'X\(//\)$' \| \
67340 - X"$as_dir" : 'X\(/\)' \| \
67341 - . : '\(.\)' 2>/dev/null ||
67342 + X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
67343 echo X"$as_dir" |
67344 - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
67345 - /^X\(\/\/\)[^/].*/{ s//\1/; q; }
67346 - /^X\(\/\/\)$/{ s//\1/; q; }
67347 - /^X\(\/\).*/{ s//\1/; q; }
67348 - s/.*/./; q'`
67349 + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
67350 + s//\1/
67351 + q
67352 + }
67353 + /^X\(\/\/\)[^/].*/{
67354 + s//\1/
67355 + q
67356 + }
67357 + /^X\(\/\/\)$/{
67358 + s//\1/
67359 + q
67360 + }
67361 + /^X\(\/\).*/{
67362 + s//\1/
67363 + q
67364 + }
67365 + s/.*/./; q'`
67366 + test -d "$as_dir" && break
67367 done
67368 - test ! -n "$as_dirs" || mkdir $as_dirs
67369 - fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
67370 -echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
67371 + test -z "$as_dirs" || eval "mkdir $as_dirs"
67372 + } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
67373 +echo "$as_me: error: cannot create directory $as_dir" >&2;}
67374 { (exit 1); exit 1; }; }; }
67375 -
67376 ac_builddir=.
67377
67378 -if test "$ac_dir" != .; then
67379 +case "$ac_dir" in
67380 +.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
67381 +*)
67382 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
67383 - # A "../" for each directory in $ac_dir_suffix.
67384 - ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
67385 -else
67386 - ac_dir_suffix= ac_top_builddir=
67387 -fi
67388 + # A ".." for each directory in $ac_dir_suffix.
67389 + ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
67390 + case $ac_top_builddir_sub in
67391 + "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
67392 + *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
67393 + esac ;;
67394 +esac
67395 +ac_abs_top_builddir=$ac_pwd
67396 +ac_abs_builddir=$ac_pwd$ac_dir_suffix
67397 +# for backward compatibility:
67398 +ac_top_builddir=$ac_top_build_prefix
67399
67400 case $srcdir in
67401 - .) # No --srcdir option. We are building in place.
67402 + .) # We are building in place.
67403 ac_srcdir=.
67404 - if test -z "$ac_top_builddir"; then
67405 - ac_top_srcdir=.
67406 - else
67407 - ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
67408 - fi ;;
67409 - [\\/]* | ?:[\\/]* ) # Absolute path.
67410 + ac_top_srcdir=$ac_top_builddir_sub
67411 + ac_abs_top_srcdir=$ac_pwd ;;
67412 + [\\/]* | ?:[\\/]* ) # Absolute name.
67413 ac_srcdir=$srcdir$ac_dir_suffix;
67414 - ac_top_srcdir=$srcdir ;;
67415 - *) # Relative path.
67416 - ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
67417 - ac_top_srcdir=$ac_top_builddir$srcdir ;;
67418 -esac
67419 + ac_top_srcdir=$srcdir
67420 + ac_abs_top_srcdir=$srcdir ;;
67421 + *) # Relative name.
67422 + ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
67423 + ac_top_srcdir=$ac_top_build_prefix$srcdir
67424 + ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
67425 +esac
67426 +ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
67427
67428 -# Do not use `cd foo && pwd` to compute absolute paths, because
67429 -# the directories may not exist.
67430 -case `pwd` in
67431 -.) ac_abs_builddir="$ac_dir";;
67432 -*)
67433 - case "$ac_dir" in
67434 - .) ac_abs_builddir=`pwd`;;
67435 - [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
67436 - *) ac_abs_builddir=`pwd`/"$ac_dir";;
67437 - esac;;
67438 -esac
67439 -case $ac_abs_builddir in
67440 -.) ac_abs_top_builddir=${ac_top_builddir}.;;
67441 -*)
67442 - case ${ac_top_builddir}. in
67443 - .) ac_abs_top_builddir=$ac_abs_builddir;;
67444 - [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
67445 - *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
67446 - esac;;
67447 -esac
67448 -case $ac_abs_builddir in
67449 -.) ac_abs_srcdir=$ac_srcdir;;
67450 -*)
67451 - case $ac_srcdir in
67452 - .) ac_abs_srcdir=$ac_abs_builddir;;
67453 - [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
67454 - *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
67455 - esac;;
67456 -esac
67457 -case $ac_abs_builddir in
67458 -.) ac_abs_top_srcdir=$ac_top_srcdir;;
67459 -*)
67460 - case $ac_top_srcdir in
67461 - .) ac_abs_top_srcdir=$ac_abs_builddir;;
67462 - [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
67463 - *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
67464 - esac;;
67465 -esac
67466
67467 + case $ac_mode in
67468 + :F)
67469 + #
67470 + # CONFIG_FILE
67471 + #
67472
67473 case $INSTALL in
67474 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
67475 - *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
67476 + *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
67477 esac
67478 +_ACEOF
67479
67480 - if test x"$ac_file" != x-; then
67481 - { echo "$as_me:$LINENO: creating $ac_file" >&5
67482 -echo "$as_me: creating $ac_file" >&6;}
67483 - rm -f "$ac_file"
67484 - fi
67485 - # Let's still pretend it is `configure' which instantiates (i.e., don't
67486 - # use $as_me), people would be surprised to read:
67487 - # /* config.h. Generated by config.status. */
67488 - if test x"$ac_file" = x-; then
67489 - configure_input=
67490 - else
67491 - configure_input="$ac_file. "
67492 - fi
67493 - configure_input=$configure_input"Generated from `echo $ac_file_in |
67494 - sed 's,.*/,,'` by configure."
67495 -
67496 - # First look for the input files in the build tree, otherwise in the
67497 - # src tree.
67498 - ac_file_inputs=`IFS=:
67499 - for f in $ac_file_in; do
67500 - case $f in
67501 - -) echo $tmp/stdin ;;
67502 - [\\/$]*)
67503 - # Absolute (can't be DOS-style, as IFS=:)
67504 - test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
67505 -echo "$as_me: error: cannot find input file: $f" >&2;}
67506 - { (exit 1); exit 1; }; }
67507 - echo "$f";;
67508 - *) # Relative
67509 - if test -f "$f"; then
67510 - # Build tree
67511 - echo "$f"
67512 - elif test -f "$srcdir/$f"; then
67513 - # Source tree
67514 - echo "$srcdir/$f"
67515 - else
67516 - # /dev/null tree
67517 - { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
67518 -echo "$as_me: error: cannot find input file: $f" >&2;}
67519 - { (exit 1); exit 1; }; }
67520 - fi;;
67521 - esac
67522 - done` || { (exit 1); exit 1; }
67523 +cat >>$CONFIG_STATUS <<\_ACEOF
67524 +# If the template does not know about datarootdir, expand it.
67525 +# FIXME: This hack should be removed a few years after 2.60.
67526 +ac_datarootdir_hack=; ac_datarootdir_seen=
67527 +
67528 +case `sed -n '/datarootdir/ {
67529 + p
67530 + q
67531 +}
67532 +/@datadir@/p
67533 +/@docdir@/p
67534 +/@infodir@/p
67535 +/@localedir@/p
67536 +/@mandir@/p
67537 +' $ac_file_inputs` in
67538 +*datarootdir*) ac_datarootdir_seen=yes;;
67539 +*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
67540 + { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
67541 +echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
67542 _ACEOF
67543 cat >>$CONFIG_STATUS <<_ACEOF
67544 + ac_datarootdir_hack='
67545 + s&@datadir@&$datadir&g
67546 + s&@docdir@&$docdir&g
67547 + s&@infodir@&$infodir&g
67548 + s&@localedir@&$localedir&g
67549 + s&@mandir@&$mandir&g
67550 + s&\\\${datarootdir}&$datarootdir&g' ;;
67551 +esac
67552 +_ACEOF
67553 +
67554 +# Neutralize VPATH when `$srcdir' = `.'.
67555 +# Shell code in configure.ac might set extrasub.
67556 +# FIXME: do we really want to maintain this feature?
67557 +cat >>$CONFIG_STATUS <<_ACEOF
67558 sed "$ac_vpsub
67559 $extrasub
67560 _ACEOF
67561 cat >>$CONFIG_STATUS <<\_ACEOF
67562 :t
67563 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
67564 -s,@configure_input@,$configure_input,;t t
67565 -s,@srcdir@,$ac_srcdir,;t t
67566 -s,@abs_srcdir@,$ac_abs_srcdir,;t t
67567 -s,@top_srcdir@,$ac_top_srcdir,;t t
67568 -s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
67569 -s,@builddir@,$ac_builddir,;t t
67570 -s,@abs_builddir@,$ac_abs_builddir,;t t
67571 -s,@top_builddir@,$ac_top_builddir,;t t
67572 -s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
67573 -s,@INSTALL@,$ac_INSTALL,;t t
67574 -" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
67575 - rm -f $tmp/stdin
67576 - if test x"$ac_file" != x-; then
67577 - mv $tmp/out $ac_file
67578 - else
67579 - cat $tmp/out
67580 - rm -f $tmp/out
67581 - fi
67582 -
67583 -done
67584 -_ACEOF
67585 -cat >>$CONFIG_STATUS <<\_ACEOF
67586 -
67587 -#
67588 -# CONFIG_HEADER section.
67589 -#
67590 -
67591 -# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
67592 -# NAME is the cpp macro being defined and VALUE is the value it is being given.
67593 -#
67594 -# ac_d sets the value in "#define NAME VALUE" lines.
67595 -ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
67596 -ac_dB='[ ].*$,\1#\2'
67597 -ac_dC=' '
67598 -ac_dD=',;t'
67599 -# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
67600 -ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
67601 -ac_uB='$,\1#\2define\3'
67602 -ac_uC=' '
67603 -ac_uD=',;t'
67604 +s&@configure_input@&$configure_input&;t t
67605 +s&@top_builddir@&$ac_top_builddir_sub&;t t
67606 +s&@srcdir@&$ac_srcdir&;t t
67607 +s&@abs_srcdir@&$ac_abs_srcdir&;t t
67608 +s&@top_srcdir@&$ac_top_srcdir&;t t
67609 +s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
67610 +s&@builddir@&$ac_builddir&;t t
67611 +s&@abs_builddir@&$ac_abs_builddir&;t t
67612 +s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
67613 +s&@INSTALL@&$ac_INSTALL&;t t
67614 +$ac_datarootdir_hack
67615 +" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
67616 +
67617 +test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
67618 + { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
67619 + { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
67620 + { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
67621 +which seems to be undefined. Please make sure it is defined." >&5
67622 +echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
67623 +which seems to be undefined. Please make sure it is defined." >&2;}
67624
67625 -for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
67626 - # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
67627 + rm -f "$tmp/stdin"
67628 case $ac_file in
67629 - - | *:- | *:-:* ) # input from stdin
67630 - cat >$tmp/stdin
67631 - ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
67632 - ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
67633 - *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
67634 - ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
67635 - * ) ac_file_in=$ac_file.in ;;
67636 + -) cat "$tmp/out"; rm -f "$tmp/out";;
67637 + *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
67638 esac
67639 + ;;
67640 + :H)
67641 + #
67642 + # CONFIG_HEADER
67643 + #
67644 +_ACEOF
67645 +
67646 +# Transform confdefs.h into a sed script `conftest.defines', that
67647 +# substitutes the proper values into config.h.in to produce config.h.
67648 +rm -f conftest.defines conftest.tail
67649 +# First, append a space to every undef/define line, to ease matching.
67650 +echo 's/$/ /' >conftest.defines
67651 +# Then, protect against being on the right side of a sed subst, or in
67652 +# an unquoted here document, in config.status. If some macros were
67653 +# called several times there might be several #defines for the same
67654 +# symbol, which is useless. But do not sort them, since the last
67655 +# AC_DEFINE must be honored.
67656 +ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
67657 +# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
67658 +# NAME is the cpp macro being defined, VALUE is the value it is being given.
67659 +# PARAMS is the parameter list in the macro definition--in most cases, it's
67660 +# just an empty string.
67661 +ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
67662 +ac_dB='\\)[ (].*,\\1define\\2'
67663 +ac_dC=' '
67664 +ac_dD=' ,'
67665
67666 - test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
67667 -echo "$as_me: creating $ac_file" >&6;}
67668 -
67669 - # First look for the input files in the build tree, otherwise in the
67670 - # src tree.
67671 - ac_file_inputs=`IFS=:
67672 - for f in $ac_file_in; do
67673 - case $f in
67674 - -) echo $tmp/stdin ;;
67675 - [\\/$]*)
67676 - # Absolute (can't be DOS-style, as IFS=:)
67677 - test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
67678 -echo "$as_me: error: cannot find input file: $f" >&2;}
67679 - { (exit 1); exit 1; }; }
67680 - # Do quote $f, to prevent DOS paths from being IFS'd.
67681 - echo "$f";;
67682 - *) # Relative
67683 - if test -f "$f"; then
67684 - # Build tree
67685 - echo "$f"
67686 - elif test -f "$srcdir/$f"; then
67687 - # Source tree
67688 - echo "$srcdir/$f"
67689 - else
67690 - # /dev/null tree
67691 - { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
67692 -echo "$as_me: error: cannot find input file: $f" >&2;}
67693 - { (exit 1); exit 1; }; }
67694 - fi;;
67695 - esac
67696 - done` || { (exit 1); exit 1; }
67697 - # Remove the trailing spaces.
67698 - sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
67699 -
67700 -_ACEOF
67701 -
67702 -# Transform confdefs.h into two sed scripts, `conftest.defines' and
67703 -# `conftest.undefs', that substitutes the proper values into
67704 -# config.h.in to produce config.h. The first handles `#define'
67705 -# templates, and the second `#undef' templates.
67706 -# And first: Protect against being on the right side of a sed subst in
67707 -# config.status. Protect against being in an unquoted here document
67708 -# in config.status.
67709 -rm -f conftest.defines conftest.undefs
67710 -# Using a here document instead of a string reduces the quoting nightmare.
67711 -# Putting comments in sed scripts is not portable.
67712 -#
67713 -# `end' is used to avoid that the second main sed command (meant for
67714 -# 0-ary CPP macros) applies to n-ary macro definitions.
67715 -# See the Autoconf documentation for `clear'.
67716 -cat >confdef2sed.sed <<\_ACEOF
67717 -s/[\\&,]/\\&/g
67718 -s,[\\$`],\\&,g
67719 -t clear
67720 -: clear
67721 -s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
67722 -t end
67723 -s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
67724 -: end
67725 -_ACEOF
67726 -# If some macros were called several times there might be several times
67727 -# the same #defines, which is useless. Nevertheless, we may not want to
67728 -# sort them, since we want the *last* AC-DEFINE to be honored.
67729 -uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
67730 -sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
67731 -rm -f confdef2sed.sed
67732 +uniq confdefs.h |
67733 + sed -n '
67734 + t rset
67735 + :rset
67736 + s/^[ ]*#[ ]*define[ ][ ]*//
67737 + t ok
67738 + d
67739 + :ok
67740 + s/[\\&,]/\\&/g
67741 + s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
67742 + s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
67743 + ' >>conftest.defines
67744
67745 -# This sed command replaces #undef with comments. This is necessary, for
67746 +# Remove the space that was appended to ease matching.
67747 +# Then replace #undef with comments. This is necessary, for
67748 # example, in the case of _POSIX_SOURCE, which is predefined and required
67749 # on some systems where configure will not decide to define it.
67750 -cat >>conftest.undefs <<\_ACEOF
67751 -s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
67752 +# (The regexp can be short, since the line contains either #define or #undef.)
67753 +echo 's/ $//
67754 +s,^[ #]*u.*,/* & */,' >>conftest.defines
67755 +
67756 +# Break up conftest.defines:
67757 +ac_max_sed_lines=50
67758 +
67759 +# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
67760 +# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
67761 +# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
67762 +# et cetera.
67763 +ac_in='$ac_file_inputs'
67764 +ac_out='"$tmp/out1"'
67765 +ac_nxt='"$tmp/out2"'
67766 +
67767 +while :
67768 +do
67769 + # Write a here document:
67770 + cat >>$CONFIG_STATUS <<_ACEOF
67771 + # First, check the format of the line:
67772 + cat >"\$tmp/defines.sed" <<\\CEOF
67773 +/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
67774 +/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
67775 +b
67776 +:def
67777 _ACEOF
67778 -
67779 -# Break up conftest.defines because some shells have a limit on the size
67780 -# of here documents, and old seds have small limits too (100 cmds).
67781 -echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
67782 -echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
67783 -echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
67784 -echo ' :' >>$CONFIG_STATUS
67785 -rm -f conftest.tail
67786 -while grep . conftest.defines >/dev/null
67787 -do
67788 - # Write a limited-size here document to $tmp/defines.sed.
67789 - echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
67790 - # Speed up: don't consider the non `#define' lines.
67791 - echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
67792 - # Work around the forget-to-reset-the-flag bug.
67793 - echo 't clr' >>$CONFIG_STATUS
67794 - echo ': clr' >>$CONFIG_STATUS
67795 - sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
67796 + sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
67797 echo 'CEOF
67798 - sed -f $tmp/defines.sed $tmp/in >$tmp/out
67799 - rm -f $tmp/in
67800 - mv $tmp/out $tmp/in
67801 -' >>$CONFIG_STATUS
67802 - sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
67803 + sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
67804 + ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
67805 + sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
67806 + grep . conftest.tail >/dev/null || break
67807 rm -f conftest.defines
67808 mv conftest.tail conftest.defines
67809 done
67810 -rm -f conftest.defines
67811 -echo ' fi # grep' >>$CONFIG_STATUS
67812 -echo >>$CONFIG_STATUS
67813 -
67814 -# Break up conftest.undefs because some shells have a limit on the size
67815 -# of here documents, and old seds have small limits too (100 cmds).
67816 -echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
67817 -rm -f conftest.tail
67818 -while grep . conftest.undefs >/dev/null
67819 -do
67820 - # Write a limited-size here document to $tmp/undefs.sed.
67821 - echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
67822 - # Speed up: don't consider the non `#undef'
67823 - echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
67824 - # Work around the forget-to-reset-the-flag bug.
67825 - echo 't clr' >>$CONFIG_STATUS
67826 - echo ': clr' >>$CONFIG_STATUS
67827 - sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
67828 - echo 'CEOF
67829 - sed -f $tmp/undefs.sed $tmp/in >$tmp/out
67830 - rm -f $tmp/in
67831 - mv $tmp/out $tmp/in
67832 -' >>$CONFIG_STATUS
67833 - sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
67834 - rm -f conftest.undefs
67835 - mv conftest.tail conftest.undefs
67836 -done
67837 -rm -f conftest.undefs
67838 +rm -f conftest.defines conftest.tail
67839
67840 +echo "ac_result=$ac_in" >>$CONFIG_STATUS
67841 cat >>$CONFIG_STATUS <<\_ACEOF
67842 - # Let's still pretend it is `configure' which instantiates (i.e., don't
67843 - # use $as_me), people would be surprised to read:
67844 - # /* config.h. Generated by config.status. */
67845 - if test x"$ac_file" = x-; then
67846 - echo "/* Generated by configure. */" >$tmp/config.h
67847 - else
67848 - echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
67849 - fi
67850 - cat $tmp/in >>$tmp/config.h
67851 - rm -f $tmp/in
67852 if test x"$ac_file" != x-; then
67853 - if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
67854 + echo "/* $configure_input */" >"$tmp/config.h"
67855 + cat "$ac_result" >>"$tmp/config.h"
67856 + if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
67857 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
67858 echo "$as_me: $ac_file is unchanged" >&6;}
67859 else
67860 - ac_dir=`(dirname "$ac_file") 2>/dev/null ||
67861 -$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
67862 - X"$ac_file" : 'X\(//\)[^/]' \| \
67863 - X"$ac_file" : 'X\(//\)$' \| \
67864 - X"$ac_file" : 'X\(/\)' \| \
67865 - . : '\(.\)' 2>/dev/null ||
67866 -echo X"$ac_file" |
67867 - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
67868 - /^X\(\/\/\)[^/].*/{ s//\1/; q; }
67869 - /^X\(\/\/\)$/{ s//\1/; q; }
67870 - /^X\(\/\).*/{ s//\1/; q; }
67871 - s/.*/./; q'`
67872 - { if $as_mkdir_p; then
67873 - mkdir -p "$ac_dir"
67874 - else
67875 - as_dir="$ac_dir"
67876 - as_dirs=
67877 - while test ! -d "$as_dir"; do
67878 - as_dirs="$as_dir $as_dirs"
67879 - as_dir=`(dirname "$as_dir") 2>/dev/null ||
67880 -$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
67881 - X"$as_dir" : 'X\(//\)[^/]' \| \
67882 - X"$as_dir" : 'X\(//\)$' \| \
67883 - X"$as_dir" : 'X\(/\)' \| \
67884 - . : '\(.\)' 2>/dev/null ||
67885 -echo X"$as_dir" |
67886 - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
67887 - /^X\(\/\/\)[^/].*/{ s//\1/; q; }
67888 - /^X\(\/\/\)$/{ s//\1/; q; }
67889 - /^X\(\/\).*/{ s//\1/; q; }
67890 - s/.*/./; q'`
67891 - done
67892 - test ! -n "$as_dirs" || mkdir $as_dirs
67893 - fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
67894 -echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
67895 - { (exit 1); exit 1; }; }; }
67896 -
67897 rm -f $ac_file
67898 - mv $tmp/config.h $ac_file
67899 + mv "$tmp/config.h" $ac_file
67900 fi
67901 else
67902 - cat $tmp/config.h
67903 - rm -f $tmp/config.h
67904 + echo "/* $configure_input */"
67905 + cat "$ac_result"
67906 fi
67907 + rm -f "$tmp/out12"
67908 # Compute $ac_file's index in $config_headers.
67909 _am_stamp_count=1
67910 for _am_header in $config_headers :; do
67911 @@ -11025,135 +11417,39 @@ for _am_header in $config_headers :; do
67912 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
67913 esac
67914 done
67915 -echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
67916 +echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
67917 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
67918 X$ac_file : 'X\(//\)[^/]' \| \
67919 X$ac_file : 'X\(//\)$' \| \
67920 - X$ac_file : 'X\(/\)' \| \
67921 - . : '\(.\)' 2>/dev/null ||
67922 + X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
67923 echo X$ac_file |
67924 - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
67925 - /^X\(\/\/\)[^/].*/{ s//\1/; q; }
67926 - /^X\(\/\/\)$/{ s//\1/; q; }
67927 - /^X\(\/\).*/{ s//\1/; q; }
67928 - s/.*/./; q'`/stamp-h$_am_stamp_count
67929 -done
67930 -_ACEOF
67931 -cat >>$CONFIG_STATUS <<\_ACEOF
67932 -
67933 -#
67934 -# CONFIG_COMMANDS section.
67935 -#
67936 -for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
67937 - ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
67938 - ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
67939 - ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
67940 -$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
67941 - X"$ac_dest" : 'X\(//\)[^/]' \| \
67942 - X"$ac_dest" : 'X\(//\)$' \| \
67943 - X"$ac_dest" : 'X\(/\)' \| \
67944 - . : '\(.\)' 2>/dev/null ||
67945 -echo X"$ac_dest" |
67946 - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
67947 - /^X\(\/\/\)[^/].*/{ s//\1/; q; }
67948 - /^X\(\/\/\)$/{ s//\1/; q; }
67949 - /^X\(\/\).*/{ s//\1/; q; }
67950 - s/.*/./; q'`
67951 - { if $as_mkdir_p; then
67952 - mkdir -p "$ac_dir"
67953 - else
67954 - as_dir="$ac_dir"
67955 - as_dirs=
67956 - while test ! -d "$as_dir"; do
67957 - as_dirs="$as_dir $as_dirs"
67958 - as_dir=`(dirname "$as_dir") 2>/dev/null ||
67959 -$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
67960 - X"$as_dir" : 'X\(//\)[^/]' \| \
67961 - X"$as_dir" : 'X\(//\)$' \| \
67962 - X"$as_dir" : 'X\(/\)' \| \
67963 - . : '\(.\)' 2>/dev/null ||
67964 -echo X"$as_dir" |
67965 - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
67966 - /^X\(\/\/\)[^/].*/{ s//\1/; q; }
67967 - /^X\(\/\/\)$/{ s//\1/; q; }
67968 - /^X\(\/\).*/{ s//\1/; q; }
67969 - s/.*/./; q'`
67970 - done
67971 - test ! -n "$as_dirs" || mkdir $as_dirs
67972 - fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
67973 -echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
67974 - { (exit 1); exit 1; }; }; }
67975 -
67976 - ac_builddir=.
67977 -
67978 -if test "$ac_dir" != .; then
67979 - ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
67980 - # A "../" for each directory in $ac_dir_suffix.
67981 - ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
67982 -else
67983 - ac_dir_suffix= ac_top_builddir=
67984 -fi
67985 -
67986 -case $srcdir in
67987 - .) # No --srcdir option. We are building in place.
67988 - ac_srcdir=.
67989 - if test -z "$ac_top_builddir"; then
67990 - ac_top_srcdir=.
67991 - else
67992 - ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
67993 - fi ;;
67994 - [\\/]* | ?:[\\/]* ) # Absolute path.
67995 - ac_srcdir=$srcdir$ac_dir_suffix;
67996 - ac_top_srcdir=$srcdir ;;
67997 - *) # Relative path.
67998 - ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
67999 - ac_top_srcdir=$ac_top_builddir$srcdir ;;
68000 -esac
68001 + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
68002 + s//\1/
68003 + q
68004 + }
68005 + /^X\(\/\/\)[^/].*/{
68006 + s//\1/
68007 + q
68008 + }
68009 + /^X\(\/\/\)$/{
68010 + s//\1/
68011 + q
68012 + }
68013 + /^X\(\/\).*/{
68014 + s//\1/
68015 + q
68016 + }
68017 + s/.*/./; q'`/stamp-h$_am_stamp_count
68018 + ;;
68019
68020 -# Do not use `cd foo && pwd` to compute absolute paths, because
68021 -# the directories may not exist.
68022 -case `pwd` in
68023 -.) ac_abs_builddir="$ac_dir";;
68024 -*)
68025 - case "$ac_dir" in
68026 - .) ac_abs_builddir=`pwd`;;
68027 - [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
68028 - *) ac_abs_builddir=`pwd`/"$ac_dir";;
68029 - esac;;
68030 -esac
68031 -case $ac_abs_builddir in
68032 -.) ac_abs_top_builddir=${ac_top_builddir}.;;
68033 -*)
68034 - case ${ac_top_builddir}. in
68035 - .) ac_abs_top_builddir=$ac_abs_builddir;;
68036 - [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
68037 - *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
68038 - esac;;
68039 -esac
68040 -case $ac_abs_builddir in
68041 -.) ac_abs_srcdir=$ac_srcdir;;
68042 -*)
68043 - case $ac_srcdir in
68044 - .) ac_abs_srcdir=$ac_abs_builddir;;
68045 - [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
68046 - *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
68047 - esac;;
68048 -esac
68049 -case $ac_abs_builddir in
68050 -.) ac_abs_top_srcdir=$ac_top_srcdir;;
68051 -*)
68052 - case $ac_top_srcdir in
68053 - .) ac_abs_top_srcdir=$ac_abs_builddir;;
68054 - [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
68055 - *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
68056 - esac;;
68057 -esac
68058 + :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
68059 +echo "$as_me: executing $ac_file commands" >&6;}
68060 + ;;
68061 + esac
68062
68063
68064 - { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
68065 -echo "$as_me: executing $ac_dest commands" >&6;}
68066 - case $ac_dest in
68067 - depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
68068 + case $ac_file$ac_mode in
68069 + "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
68070 # Strip MF so we end up with the name of the file.
68071 mf=`echo "$mf" | sed -e 's/:.*$//'`
68072 # Check whether this is an Automake generated Makefile or not.
68073 @@ -11163,18 +11459,29 @@ echo "$as_me: executing $ac_dest command
68074 # each Makefile.in and add a new line on top of each file to say so.
68075 # So let's grep whole file.
68076 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
68077 - dirpart=`(dirname "$mf") 2>/dev/null ||
68078 + dirpart=`$as_dirname -- "$mf" ||
68079 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
68080 X"$mf" : 'X\(//\)[^/]' \| \
68081 X"$mf" : 'X\(//\)$' \| \
68082 - X"$mf" : 'X\(/\)' \| \
68083 - . : '\(.\)' 2>/dev/null ||
68084 + X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
68085 echo X"$mf" |
68086 - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
68087 - /^X\(\/\/\)[^/].*/{ s//\1/; q; }
68088 - /^X\(\/\/\)$/{ s//\1/; q; }
68089 - /^X\(\/\).*/{ s//\1/; q; }
68090 - s/.*/./; q'`
68091 + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
68092 + s//\1/
68093 + q
68094 + }
68095 + /^X\(\/\/\)[^/].*/{
68096 + s//\1/
68097 + q
68098 + }
68099 + /^X\(\/\/\)$/{
68100 + s//\1/
68101 + q
68102 + }
68103 + /^X\(\/\).*/{
68104 + s//\1/
68105 + q
68106 + }
68107 + s/.*/./; q'`
68108 else
68109 continue
68110 fi
68111 @@ -11196,54 +11503,80 @@ echo X"$mf" |
68112 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
68113 # Make sure the directory exists.
68114 test -f "$dirpart/$file" && continue
68115 - fdir=`(dirname "$file") 2>/dev/null ||
68116 + fdir=`$as_dirname -- "$file" ||
68117 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
68118 X"$file" : 'X\(//\)[^/]' \| \
68119 X"$file" : 'X\(//\)$' \| \
68120 - X"$file" : 'X\(/\)' \| \
68121 - . : '\(.\)' 2>/dev/null ||
68122 + X"$file" : 'X\(/\)' \| . 2>/dev/null ||
68123 echo X"$file" |
68124 - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
68125 - /^X\(\/\/\)[^/].*/{ s//\1/; q; }
68126 - /^X\(\/\/\)$/{ s//\1/; q; }
68127 - /^X\(\/\).*/{ s//\1/; q; }
68128 - s/.*/./; q'`
68129 - { if $as_mkdir_p; then
68130 - mkdir -p $dirpart/$fdir
68131 - else
68132 - as_dir=$dirpart/$fdir
68133 + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
68134 + s//\1/
68135 + q
68136 + }
68137 + /^X\(\/\/\)[^/].*/{
68138 + s//\1/
68139 + q
68140 + }
68141 + /^X\(\/\/\)$/{
68142 + s//\1/
68143 + q
68144 + }
68145 + /^X\(\/\).*/{
68146 + s//\1/
68147 + q
68148 + }
68149 + s/.*/./; q'`
68150 + { as_dir=$dirpart/$fdir
68151 + case $as_dir in #(
68152 + -*) as_dir=./$as_dir;;
68153 + esac
68154 + test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
68155 as_dirs=
68156 - while test ! -d "$as_dir"; do
68157 - as_dirs="$as_dir $as_dirs"
68158 - as_dir=`(dirname "$as_dir") 2>/dev/null ||
68159 + while :; do
68160 + case $as_dir in #(
68161 + *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
68162 + *) as_qdir=$as_dir;;
68163 + esac
68164 + as_dirs="'$as_qdir' $as_dirs"
68165 + as_dir=`$as_dirname -- "$as_dir" ||
68166 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
68167 X"$as_dir" : 'X\(//\)[^/]' \| \
68168 X"$as_dir" : 'X\(//\)$' \| \
68169 - X"$as_dir" : 'X\(/\)' \| \
68170 - . : '\(.\)' 2>/dev/null ||
68171 + X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
68172 echo X"$as_dir" |
68173 - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
68174 - /^X\(\/\/\)[^/].*/{ s//\1/; q; }
68175 - /^X\(\/\/\)$/{ s//\1/; q; }
68176 - /^X\(\/\).*/{ s//\1/; q; }
68177 - s/.*/./; q'`
68178 + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
68179 + s//\1/
68180 + q
68181 + }
68182 + /^X\(\/\/\)[^/].*/{
68183 + s//\1/
68184 + q
68185 + }
68186 + /^X\(\/\/\)$/{
68187 + s//\1/
68188 + q
68189 + }
68190 + /^X\(\/\).*/{
68191 + s//\1/
68192 + q
68193 + }
68194 + s/.*/./; q'`
68195 + test -d "$as_dir" && break
68196 done
68197 - test ! -n "$as_dirs" || mkdir $as_dirs
68198 - fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
68199 -echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
68200 + test -z "$as_dirs" || eval "mkdir $as_dirs"
68201 + } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
68202 +echo "$as_me: error: cannot create directory $as_dir" >&2;}
68203 { (exit 1); exit 1; }; }; }
68204 -
68205 # echo "creating $dirpart/$file"
68206 echo '# dummy' > "$dirpart/$file"
68207 done
68208 done
68209 ;;
68210 - default ) sed -e '/POTFILES =/r po/POTFILES' po/Makefile.in > po/Makefile ;;
68211 + "default":C) sed -e '/POTFILES =/r po/POTFILES' po/Makefile.in > po/Makefile ;;
68212 +
68213 esac
68214 -done
68215 -_ACEOF
68216 +done # for ac_tag
68217
68218 -cat >>$CONFIG_STATUS <<\_ACEOF
68219
68220 { (exit 0); exit 0; }
68221 _ACEOF
68222 diff -Nrup binutils-2.17/ld/configure.tgt binutils-2.17.atmel.1.3.0/ld/configure.tgt
68223 --- binutils-2.17/ld/configure.tgt 2006-04-05 14:41:57.000000000 +0200
68224 +++ binutils-2.17.atmel.1.3.0/ld/configure.tgt 2007-05-31 17:03:35.000000000 +0200
68225 @@ -81,8 +81,10 @@ xscale-*-coff) targ_emul=armcoff ;;
68226 xscale-*-elf) targ_emul=armelf
68227 ;;
68228 avr-*-*) targ_emul=avr2
68229 - targ_extra_emuls="avr1 avr3 avr4 avr5"
68230 - ;;
68231 + targ_extra_emuls="avr1 avr3 avr4 avr5" ;;
68232 +avr32-*-none) targ_emul=avr32elf_ap7000
68233 + targ_extra_emuls="avr32elf_uc3a0128 avr32elf_uc3a0256 avr32elf_uc3a0512 avr32elf_uc3a1128 avr32elf_uc3a1256 avr32elf_uc3a1512 avr32elf_uc3b064 avr32elf_uc3b0128 avr32elf_uc3b0256 avr32elf_uc3b164 avr32elf_uc3b1128 avr32elf_uc3b1256" ;;
68234 +avr32-*-linux*) targ_emul=avr32linux ;;
68235 bfin-*-elf) targ_emul=elf32bfin; targ_extra_emuls="elf32bfinfd" ;;
68236 bfin-*-uclinux*) targ_emul=elf32bfin; targ_extra_emuls="elf32bfinfd" ;;
68237 cr16c-*-elf*) targ_emul=elf32cr16c
68238 diff -Nrup binutils-2.17/ld/emulparams/avr32elf_ap7000.sh binutils-2.17.atmel.1.3.0/ld/emulparams/avr32elf_ap7000.sh
68239 --- binutils-2.17/ld/emulparams/avr32elf_ap7000.sh 1970-01-01 01:00:00.000000000 +0100
68240 +++ binutils-2.17.atmel.1.3.0/ld/emulparams/avr32elf_ap7000.sh 2007-09-28 10:30:45.000000000 +0200
68241 @@ -0,0 +1,35 @@
68242 +MACHINE=ap
68243 +SCRIPT_NAME=elf_xip
68244 +TEMPLATE_NAME=elf32
68245 +EXTRA_EM_FILE=avr32elf
68246 +OUTPUT_FORMAT="elf32-avr32"
68247 +ARCH=avr32
68248 +MAXPAGESIZE=4096
68249 +ENTRY=_start
68250 +EMBEDDED=yes
68251 +NO_SMALL_DATA=yes
68252 +NOP=0xd703d703
68253 +
68254 +TEXT_START_ADDR=0xa0000000
68255 +DATA_SEGMENT_ALIGN=8
68256 +BSS_ALIGNMENT=8
68257 +
68258 +INITIAL_READONLY_SECTIONS=".reset : { *(.reset) } >FLASH AT>FLASH
68259 + . = . & 0x9fffffff;"
68260 +
68261 +MEMORY="MEMORY
68262 + {
68263 + FLASH (rxai) : ORIGIN = 0x00000000, LENGTH = 0x4000000
68264 + SRAM (rwxa) : ORIGIN = 0x24000000, LENGTH = 0x8000
68265 + }"
68266 +RO_LMA_REGION="FLASH"
68267 +RO_VMA_REGION="FLASH"
68268 +RW_LMA_REGION="FLASH"
68269 +RW_VMA_REGION="SRAM"
68270 +
68271 +STACK_SIZE=0x1000
68272 +STACK_ADDR="ORIGIN(SRAM) + LENGTH(SRAM) - ${STACK_SIZE}"
68273 +
68274 +DATA_SEGMENT_END="__heap_start__ = ALIGN(8);
68275 + . = ${STACK_ADDR};
68276 + __heap_end__ = .;"
68277 diff -Nrup binutils-2.17/ld/emulparams/avr32elf.sh binutils-2.17.atmel.1.3.0/ld/emulparams/avr32elf.sh
68278 --- binutils-2.17/ld/emulparams/avr32elf.sh 1970-01-01 01:00:00.000000000 +0100
68279 +++ binutils-2.17.atmel.1.3.0/ld/emulparams/avr32elf.sh 2007-09-28 10:30:45.000000000 +0200
68280 @@ -0,0 +1,25 @@
68281 +MACHINE=
68282 +SCRIPT_NAME=elf
68283 +TEMPLATE_NAME=elf32
68284 +EXTRA_EM_FILE=avr32elf
68285 +OUTPUT_FORMAT="elf32-avr32"
68286 +TEXT_START_ADDR=0xa0000000
68287 +ARCH=avr32
68288 +MAXPAGESIZE=0x4
68289 +ENTRY=_start
68290 +EMBEDDED=yes
68291 +NOP=0xd703d703
68292 +INITIAL_READONLY_SECTIONS=".reset : AT(0x0) { *(.reset) }
68293 + . = . & 0x9fffffff;"
68294 +DATA_START_SYMBOLS="__data_init_start__ = .;
68295 + __data_init_end__ = .;
68296 + __data_start__ = .;"
68297 +
68298 +OTHER_BSS_SYMBOLS='__bss_start__ = .;'
68299 +OTHER_BSS_END_SYMBOLS="_bss_end__ = . ; __bss_end__ = . ; __end__ = . ;
68300 + . = ALIGN(16);
68301 + __heap_start__ = .;
68302 + __heap_end__ = 0x82000000;"
68303 +
68304 +STACK_ADDR=0x82000000
68305 +
68306 diff -Nrup binutils-2.17/ld/emulparams/avr32elf_uc3a0128.sh binutils-2.17.atmel.1.3.0/ld/emulparams/avr32elf_uc3a0128.sh
68307 --- binutils-2.17/ld/emulparams/avr32elf_uc3a0128.sh 1970-01-01 01:00:00.000000000 +0100
68308 +++ binutils-2.17.atmel.1.3.0/ld/emulparams/avr32elf_uc3a0128.sh 2007-09-28 10:30:45.000000000 +0200
68309 @@ -0,0 +1,40 @@
68310 +MACHINE=uc
68311 +SCRIPT_NAME=elf_xip
68312 +TEMPLATE_NAME=elf32
68313 +EXTRA_EM_FILE=avr32elf
68314 +OUTPUT_FORMAT="elf32-avr32"
68315 +ARCH=avr32
68316 +MAXPAGESIZE=4096
68317 +ENTRY=_start
68318 +EMBEDDED=yes
68319 +NO_SMALL_DATA=yes
68320 +NOP=0xd703d703
68321 +
68322 +TEXT_START_ADDR=0x80000000
68323 +DATA_SEGMENT_ALIGN=8
68324 +BSS_ALIGNMENT=8
68325 +
68326 +INITIAL_READONLY_SECTIONS=".reset : { *(.reset) } >FLASH AT>FLASH"
68327 +
68328 +MEMORY="MEMORY
68329 + {
68330 + FLASH (rxai!w) : ORIGIN = 0x80000000, LENGTH = 0x20000
68331 + INTRAM (wxa!ri) : ORIGIN = 0x00000000, LENGTH = 0x8000
68332 + USERPAGE : ORIGIN = 0x80800000, LENGTH = 0x200
68333 + FACTORYPAGE : ORIGIN = 0x80800200, LENGTH = 0x200
68334 + }"
68335 +RO_LMA_REGION="FLASH"
68336 +RO_VMA_REGION="FLASH"
68337 +RW_LMA_REGION="FLASH"
68338 +RW_VMA_REGION="INTRAM"
68339 +
68340 +STACK_SIZE=0x1000
68341 +STACK_ADDR="ORIGIN(INTRAM) + LENGTH(INTRAM) - ${STACK_SIZE}"
68342 +
68343 +DATA_SEGMENT_END="__heap_start__ = ALIGN(8);
68344 + . = ${STACK_ADDR};
68345 + __heap_end__ = .;"
68346 +
68347 +OTHER_SECTIONS=".userpage : { *(.userpage .userpage.*) } >USERPAGE AT>USERPAGE
68348 + .factorypage : { *(.factorypage .factorypage.*) } >FACTORYPAGE AT>FACTORYPAGE"
68349 +
68350 \ No newline at end of file
68351 diff -Nrup binutils-2.17/ld/emulparams/avr32elf_uc3a0256.sh binutils-2.17.atmel.1.3.0/ld/emulparams/avr32elf_uc3a0256.sh
68352 --- binutils-2.17/ld/emulparams/avr32elf_uc3a0256.sh 1970-01-01 01:00:00.000000000 +0100
68353 +++ binutils-2.17.atmel.1.3.0/ld/emulparams/avr32elf_uc3a0256.sh 2007-09-28 10:30:45.000000000 +0200
68354 @@ -0,0 +1,39 @@
68355 +MACHINE=uc
68356 +SCRIPT_NAME=elf_xip
68357 +TEMPLATE_NAME=elf32
68358 +EXTRA_EM_FILE=avr32elf
68359 +OUTPUT_FORMAT="elf32-avr32"
68360 +ARCH=avr32
68361 +MAXPAGESIZE=4096
68362 +ENTRY=_start
68363 +EMBEDDED=yes
68364 +NO_SMALL_DATA=yes
68365 +NOP=0xd703d703
68366 +
68367 +TEXT_START_ADDR=0x80000000
68368 +DATA_SEGMENT_ALIGN=8
68369 +BSS_ALIGNMENT=8
68370 +
68371 +INITIAL_READONLY_SECTIONS=".reset : { *(.reset) } >FLASH AT>FLASH"
68372 +
68373 +MEMORY="MEMORY
68374 + {
68375 + FLASH (rxai!w) : ORIGIN = 0x80000000, LENGTH = 0x40000
68376 + INTRAM (wxa!ri) : ORIGIN = 0x00000000, LENGTH = 0x10000
68377 + USERPAGE : ORIGIN = 0x80800000, LENGTH = 0x200
68378 + FACTORYPAGE : ORIGIN = 0x80800200, LENGTH = 0x200
68379 + }"
68380 +RO_LMA_REGION="FLASH"
68381 +RO_VMA_REGION="FLASH"
68382 +RW_LMA_REGION="FLASH"
68383 +RW_VMA_REGION="INTRAM"
68384 +
68385 +STACK_SIZE=0x1000
68386 +STACK_ADDR="ORIGIN(INTRAM) + LENGTH(INTRAM) - ${STACK_SIZE}"
68387 +
68388 +DATA_SEGMENT_END="__heap_start__ = ALIGN(8);
68389 + . = ${STACK_ADDR};
68390 + __heap_end__ = .;"
68391 +
68392 +OTHER_SECTIONS=".userpage : { *(.userpage .userpage.*) } >USERPAGE AT>USERPAGE
68393 + .factorypage : { *(.factorypage .factorypage.*) } >FACTORYPAGE AT>FACTORYPAGE"
68394 diff -Nrup binutils-2.17/ld/emulparams/avr32elf_uc3a0512.sh binutils-2.17.atmel.1.3.0/ld/emulparams/avr32elf_uc3a0512.sh
68395 --- binutils-2.17/ld/emulparams/avr32elf_uc3a0512.sh 1970-01-01 01:00:00.000000000 +0100
68396 +++ binutils-2.17.atmel.1.3.0/ld/emulparams/avr32elf_uc3a0512.sh 2007-09-28 10:30:45.000000000 +0200
68397 @@ -0,0 +1,39 @@
68398 +MACHINE=uc
68399 +SCRIPT_NAME=elf_xip
68400 +TEMPLATE_NAME=elf32
68401 +EXTRA_EM_FILE=avr32elf
68402 +OUTPUT_FORMAT="elf32-avr32"
68403 +ARCH=avr32
68404 +MAXPAGESIZE=4096
68405 +ENTRY=_start
68406 +EMBEDDED=yes
68407 +NO_SMALL_DATA=yes
68408 +NOP=0xd703d703
68409 +
68410 +TEXT_START_ADDR=0x80000000
68411 +DATA_SEGMENT_ALIGN=8
68412 +BSS_ALIGNMENT=8
68413 +
68414 +INITIAL_READONLY_SECTIONS=".reset : { *(.reset) } >FLASH AT>FLASH"
68415 +
68416 +MEMORY="MEMORY
68417 + {
68418 + FLASH (rxai!w) : ORIGIN = 0x80000000, LENGTH = 0x80000
68419 + INTRAM (wxa!ri) : ORIGIN = 0x00000000, LENGTH = 0x10000
68420 + USERPAGE : ORIGIN = 0x80800000, LENGTH = 0x200
68421 + FACTORYPAGE : ORIGIN = 0x80800200, LENGTH = 0x200
68422 + }"
68423 +RO_LMA_REGION="FLASH"
68424 +RO_VMA_REGION="FLASH"
68425 +RW_LMA_REGION="FLASH"
68426 +RW_VMA_REGION="INTRAM"
68427 +
68428 +STACK_SIZE=0x1000
68429 +STACK_ADDR="ORIGIN(INTRAM) + LENGTH(INTRAM) - ${STACK_SIZE}"
68430 +
68431 +DATA_SEGMENT_END="__heap_start__ = ALIGN(8);
68432 + . = ${STACK_ADDR};
68433 + __heap_end__ = .;"
68434 +
68435 +OTHER_SECTIONS=".userpage : { *(.userpage .userpage.*) } >USERPAGE AT>USERPAGE
68436 + .factorypage : { *(.factorypage .factorypage.*) } >FACTORYPAGE AT>FACTORYPAGE"
68437 diff -Nrup binutils-2.17/ld/emulparams/avr32elf_uc3a1128.sh binutils-2.17.atmel.1.3.0/ld/emulparams/avr32elf_uc3a1128.sh
68438 --- binutils-2.17/ld/emulparams/avr32elf_uc3a1128.sh 1970-01-01 01:00:00.000000000 +0100
68439 +++ binutils-2.17.atmel.1.3.0/ld/emulparams/avr32elf_uc3a1128.sh 2007-09-28 10:30:45.000000000 +0200
68440 @@ -0,0 +1,39 @@
68441 +MACHINE=uc
68442 +SCRIPT_NAME=elf_xip
68443 +TEMPLATE_NAME=elf32
68444 +EXTRA_EM_FILE=avr32elf
68445 +OUTPUT_FORMAT="elf32-avr32"
68446 +ARCH=avr32
68447 +MAXPAGESIZE=4096
68448 +ENTRY=_start
68449 +EMBEDDED=yes
68450 +NO_SMALL_DATA=yes
68451 +NOP=0xd703d703
68452 +
68453 +TEXT_START_ADDR=0x80000000
68454 +DATA_SEGMENT_ALIGN=8
68455 +BSS_ALIGNMENT=8
68456 +
68457 +INITIAL_READONLY_SECTIONS=".reset : { *(.reset) } >FLASH AT>FLASH"
68458 +
68459 +MEMORY="MEMORY
68460 + {
68461 + FLASH (rxai!w) : ORIGIN = 0x80000000, LENGTH = 0x20000
68462 + INTRAM (wxa!ri) : ORIGIN = 0x00000000, LENGTH = 0x8000
68463 + USERPAGE : ORIGIN = 0x80800000, LENGTH = 0x200
68464 + FACTORYPAGE : ORIGIN = 0x80800200, LENGTH = 0x200
68465 + }"
68466 +RO_LMA_REGION="FLASH"
68467 +RO_VMA_REGION="FLASH"
68468 +RW_LMA_REGION="FLASH"
68469 +RW_VMA_REGION="INTRAM"
68470 +
68471 +STACK_SIZE=0x1000
68472 +STACK_ADDR="ORIGIN(INTRAM) + LENGTH(INTRAM) - ${STACK_SIZE}"
68473 +
68474 +DATA_SEGMENT_END="__heap_start__ = ALIGN(8);
68475 + . = ${STACK_ADDR};
68476 + __heap_end__ = .;"
68477 +
68478 +OTHER_SECTIONS=".userpage : { *(.userpage .userpage.*) } >USERPAGE AT>USERPAGE
68479 + .factorypage : { *(.factorypage .factorypage.*) } >FACTORYPAGE AT>FACTORYPAGE"
68480 diff -Nrup binutils-2.17/ld/emulparams/avr32elf_uc3a1256.sh binutils-2.17.atmel.1.3.0/ld/emulparams/avr32elf_uc3a1256.sh
68481 --- binutils-2.17/ld/emulparams/avr32elf_uc3a1256.sh 1970-01-01 01:00:00.000000000 +0100
68482 +++ binutils-2.17.atmel.1.3.0/ld/emulparams/avr32elf_uc3a1256.sh 2007-09-28 10:30:45.000000000 +0200
68483 @@ -0,0 +1,39 @@
68484 +MACHINE=uc
68485 +SCRIPT_NAME=elf_xip
68486 +TEMPLATE_NAME=elf32
68487 +EXTRA_EM_FILE=avr32elf
68488 +OUTPUT_FORMAT="elf32-avr32"
68489 +ARCH=avr32
68490 +MAXPAGESIZE=4096
68491 +ENTRY=_start
68492 +EMBEDDED=yes
68493 +NO_SMALL_DATA=yes
68494 +NOP=0xd703d703
68495 +
68496 +TEXT_START_ADDR=0x80000000
68497 +DATA_SEGMENT_ALIGN=8
68498 +BSS_ALIGNMENT=8
68499 +
68500 +INITIAL_READONLY_SECTIONS=".reset : { *(.reset) } >FLASH AT>FLASH"
68501 +
68502 +MEMORY="MEMORY
68503 + {
68504 + FLASH (rxai!w) : ORIGIN = 0x80000000, LENGTH = 0x40000
68505 + INTRAM (wxa!ri) : ORIGIN = 0x00000000, LENGTH = 0x10000
68506 + USERPAGE : ORIGIN = 0x80800000, LENGTH = 0x200
68507 + FACTORYPAGE : ORIGIN = 0x80800200, LENGTH = 0x200
68508 + }"
68509 +RO_LMA_REGION="FLASH"
68510 +RO_VMA_REGION="FLASH"
68511 +RW_LMA_REGION="FLASH"
68512 +RW_VMA_REGION="INTRAM"
68513 +
68514 +STACK_SIZE=0x1000
68515 +STACK_ADDR="ORIGIN(INTRAM) + LENGTH(INTRAM) - ${STACK_SIZE}"
68516 +
68517 +DATA_SEGMENT_END="__heap_start__ = ALIGN(8);
68518 + . = ${STACK_ADDR};
68519 + __heap_end__ = .;"
68520 +
68521 +OTHER_SECTIONS=".userpage : { *(.userpage .userpage.*) } >USERPAGE AT>USERPAGE
68522 + .factorypage : { *(.factorypage .factorypage.*) } >FACTORYPAGE AT>FACTORYPAGE"
68523 diff -Nrup binutils-2.17/ld/emulparams/avr32elf_uc3a1512.sh binutils-2.17.atmel.1.3.0/ld/emulparams/avr32elf_uc3a1512.sh
68524 --- binutils-2.17/ld/emulparams/avr32elf_uc3a1512.sh 1970-01-01 01:00:00.000000000 +0100
68525 +++ binutils-2.17.atmel.1.3.0/ld/emulparams/avr32elf_uc3a1512.sh 2007-09-28 10:30:45.000000000 +0200
68526 @@ -0,0 +1,39 @@
68527 +MACHINE=uc
68528 +SCRIPT_NAME=elf_xip
68529 +TEMPLATE_NAME=elf32
68530 +EXTRA_EM_FILE=avr32elf
68531 +OUTPUT_FORMAT="elf32-avr32"
68532 +ARCH=avr32
68533 +MAXPAGESIZE=4096
68534 +ENTRY=_start
68535 +EMBEDDED=yes
68536 +NO_SMALL_DATA=yes
68537 +NOP=0xd703d703
68538 +
68539 +TEXT_START_ADDR=0x80000000
68540 +DATA_SEGMENT_ALIGN=8
68541 +BSS_ALIGNMENT=8
68542 +
68543 +INITIAL_READONLY_SECTIONS=".reset : { *(.reset) } >FLASH AT>FLASH"
68544 +
68545 +MEMORY="MEMORY
68546 + {
68547 + FLASH (rxai!w) : ORIGIN = 0x80000000, LENGTH = 0x80000
68548 + INTRAM (wxa!ri) : ORIGIN = 0x00000000, LENGTH = 0x10000
68549 + USERPAGE : ORIGIN = 0x80800000, LENGTH = 0x200
68550 + FACTORYPAGE : ORIGIN = 0x80800200, LENGTH = 0x200
68551 + }"
68552 +RO_LMA_REGION="FLASH"
68553 +RO_VMA_REGION="FLASH"
68554 +RW_LMA_REGION="FLASH"
68555 +RW_VMA_REGION="INTRAM"
68556 +
68557 +STACK_SIZE=0x1000
68558 +STACK_ADDR="ORIGIN(INTRAM) + LENGTH(INTRAM) - ${STACK_SIZE}"
68559 +
68560 +DATA_SEGMENT_END="__heap_start__ = ALIGN(8);
68561 + . = ${STACK_ADDR};
68562 + __heap_end__ = .;"
68563 +
68564 +OTHER_SECTIONS=".userpage : { *(.userpage .userpage.*) } >USERPAGE AT>USERPAGE
68565 + .factorypage : { *(.factorypage .factorypage.*) } >FACTORYPAGE AT>FACTORYPAGE"
68566 diff -Nrup binutils-2.17/ld/emulparams/avr32elf_uc3b0128.sh binutils-2.17.atmel.1.3.0/ld/emulparams/avr32elf_uc3b0128.sh
68567 --- binutils-2.17/ld/emulparams/avr32elf_uc3b0128.sh 1970-01-01 01:00:00.000000000 +0100
68568 +++ binutils-2.17.atmel.1.3.0/ld/emulparams/avr32elf_uc3b0128.sh 2007-09-28 10:30:45.000000000 +0200
68569 @@ -0,0 +1,39 @@
68570 +MACHINE=uc
68571 +SCRIPT_NAME=elf_xip
68572 +TEMPLATE_NAME=elf32
68573 +EXTRA_EM_FILE=avr32elf
68574 +OUTPUT_FORMAT="elf32-avr32"
68575 +ARCH=avr32
68576 +MAXPAGESIZE=4096
68577 +ENTRY=_start
68578 +EMBEDDED=yes
68579 +NO_SMALL_DATA=yes
68580 +NOP=0xd703d703
68581 +
68582 +TEXT_START_ADDR=0x80000000
68583 +DATA_SEGMENT_ALIGN=8
68584 +BSS_ALIGNMENT=8
68585 +
68586 +INITIAL_READONLY_SECTIONS=".reset : { *(.reset) } >FLASH AT>FLASH"
68587 +
68588 +MEMORY="MEMORY
68589 + {
68590 + FLASH (rxai!w) : ORIGIN = 0x80000000, LENGTH = 0x20000
68591 + INTRAM (wxa!ri) : ORIGIN = 0x00000000, LENGTH = 0x8000
68592 + USERPAGE : ORIGIN = 0x80800000, LENGTH = 0x200
68593 + FACTORYPAGE : ORIGIN = 0x80800200, LENGTH = 0x200
68594 + }"
68595 +RO_LMA_REGION="FLASH"
68596 +RO_VMA_REGION="FLASH"
68597 +RW_LMA_REGION="FLASH"
68598 +RW_VMA_REGION="INTRAM"
68599 +
68600 +STACK_SIZE=0x1000
68601 +STACK_ADDR="ORIGIN(INTRAM) + LENGTH(INTRAM) - ${STACK_SIZE}"
68602 +
68603 +DATA_SEGMENT_END="__heap_start__ = ALIGN(8);
68604 + . = ${STACK_ADDR};
68605 + __heap_end__ = .;"
68606 +
68607 +OTHER_SECTIONS=".userpage : { *(.userpage .userpage.*) } >USERPAGE AT>USERPAGE
68608 + .factorypage : { *(.factorypage .factorypage.*) } >FACTORYPAGE AT>FACTORYPAGE"
68609 diff -Nrup binutils-2.17/ld/emulparams/avr32elf_uc3b0256.sh binutils-2.17.atmel.1.3.0/ld/emulparams/avr32elf_uc3b0256.sh
68610 --- binutils-2.17/ld/emulparams/avr32elf_uc3b0256.sh 1970-01-01 01:00:00.000000000 +0100
68611 +++ binutils-2.17.atmel.1.3.0/ld/emulparams/avr32elf_uc3b0256.sh 2007-09-28 10:30:45.000000000 +0200
68612 @@ -0,0 +1,40 @@
68613 +MACHINE=uc
68614 +SCRIPT_NAME=elf_xip
68615 +TEMPLATE_NAME=elf32
68616 +EXTRA_EM_FILE=avr32elf
68617 +OUTPUT_FORMAT="elf32-avr32"
68618 +ARCH=avr32
68619 +MAXPAGESIZE=4096
68620 +ENTRY=_start
68621 +EMBEDDED=yes
68622 +NO_SMALL_DATA=yes
68623 +NOP=0xd703d703
68624 +
68625 +TEXT_START_ADDR=0x80000000
68626 +DATA_SEGMENT_ALIGN=8
68627 +BSS_ALIGNMENT=8
68628 +
68629 +INITIAL_READONLY_SECTIONS=".reset : { *(.reset) } >FLASH AT>FLASH"
68630 +
68631 +MEMORY="MEMORY
68632 + {
68633 + FLASH (rxai!w) : ORIGIN = 0x80000000, LENGTH = 0x40000
68634 + INTRAM (wxa!ri) : ORIGIN = 0x00000000, LENGTH = 0x8000
68635 + USERPAGE : ORIGIN = 0x80800000, LENGTH = 0x200
68636 + FACTORYPAGE : ORIGIN = 0x80800200, LENGTH = 0x200
68637 + }"
68638 +RO_LMA_REGION="FLASH"
68639 +RO_VMA_REGION="FLASH"
68640 +RW_LMA_REGION="FLASH"
68641 +RW_VMA_REGION="INTRAM"
68642 +
68643 +STACK_SIZE=0x1000
68644 +STACK_ADDR="ORIGIN(INTRAM) + LENGTH(INTRAM) - ${STACK_SIZE}"
68645 +
68646 +DATA_SEGMENT_END="__heap_start__ = ALIGN(8);
68647 + . = ${STACK_ADDR};
68648 + __heap_end__ = .;"
68649 +
68650 +OTHER_SECTIONS=".userpage : { *(.userpage .userpage.*) } >USERPAGE AT>USERPAGE
68651 + .factorypage : { *(.factorypage .factorypage.*) } >FACTORYPAGE AT>FACTORYPAGE"
68652 +
68653 \ No newline at end of file
68654 diff -Nrup binutils-2.17/ld/emulparams/avr32elf_uc3b064.sh binutils-2.17.atmel.1.3.0/ld/emulparams/avr32elf_uc3b064.sh
68655 --- binutils-2.17/ld/emulparams/avr32elf_uc3b064.sh 1970-01-01 01:00:00.000000000 +0100
68656 +++ binutils-2.17.atmel.1.3.0/ld/emulparams/avr32elf_uc3b064.sh 2007-09-28 10:30:45.000000000 +0200
68657 @@ -0,0 +1,39 @@
68658 +MACHINE=uc
68659 +SCRIPT_NAME=elf_xip
68660 +TEMPLATE_NAME=elf32
68661 +EXTRA_EM_FILE=avr32elf
68662 +OUTPUT_FORMAT="elf32-avr32"
68663 +ARCH=avr32
68664 +MAXPAGESIZE=4096
68665 +ENTRY=_start
68666 +EMBEDDED=yes
68667 +NO_SMALL_DATA=yes
68668 +NOP=0xd703d703
68669 +
68670 +TEXT_START_ADDR=0x80000000
68671 +DATA_SEGMENT_ALIGN=8
68672 +BSS_ALIGNMENT=8
68673 +
68674 +INITIAL_READONLY_SECTIONS=".reset : { *(.reset) } >FLASH AT>FLASH"
68675 +
68676 +MEMORY="MEMORY
68677 + {
68678 + FLASH (rxai!w) : ORIGIN = 0x80000000, LENGTH = 0x10000
68679 + INTRAM (wxa!ri) : ORIGIN = 0x00000000, LENGTH = 0x4000
68680 + USERPAGE : ORIGIN = 0x80800000, LENGTH = 0x200
68681 + FACTORYPAGE : ORIGIN = 0x80800200, LENGTH = 0x200
68682 + }"
68683 +RO_LMA_REGION="FLASH"
68684 +RO_VMA_REGION="FLASH"
68685 +RW_LMA_REGION="FLASH"
68686 +RW_VMA_REGION="INTRAM"
68687 +
68688 +STACK_SIZE=0x1000
68689 +STACK_ADDR="ORIGIN(INTRAM) + LENGTH(INTRAM) - ${STACK_SIZE}"
68690 +
68691 +DATA_SEGMENT_END="__heap_start__ = ALIGN(8);
68692 + . = ${STACK_ADDR};
68693 + __heap_end__ = .;"
68694 +
68695 +OTHER_SECTIONS=".userpage : { *(.userpage .userpage.*) } >USERPAGE AT>USERPAGE
68696 + .factorypage : { *(.factorypage .factorypage.*) } >FACTORYPAGE AT>FACTORYPAGE"
68697 diff -Nrup binutils-2.17/ld/emulparams/avr32elf_uc3b1128.sh binutils-2.17.atmel.1.3.0/ld/emulparams/avr32elf_uc3b1128.sh
68698 --- binutils-2.17/ld/emulparams/avr32elf_uc3b1128.sh 1970-01-01 01:00:00.000000000 +0100
68699 +++ binutils-2.17.atmel.1.3.0/ld/emulparams/avr32elf_uc3b1128.sh 2007-09-28 10:30:45.000000000 +0200
68700 @@ -0,0 +1,39 @@
68701 +MACHINE=uc
68702 +SCRIPT_NAME=elf_xip
68703 +TEMPLATE_NAME=elf32
68704 +EXTRA_EM_FILE=avr32elf
68705 +OUTPUT_FORMAT="elf32-avr32"
68706 +ARCH=avr32
68707 +MAXPAGESIZE=4096
68708 +ENTRY=_start
68709 +EMBEDDED=yes
68710 +NO_SMALL_DATA=yes
68711 +NOP=0xd703d703
68712 +
68713 +TEXT_START_ADDR=0x80000000
68714 +DATA_SEGMENT_ALIGN=8
68715 +BSS_ALIGNMENT=8
68716 +
68717 +INITIAL_READONLY_SECTIONS=".reset : { *(.reset) } >FLASH AT>FLASH"
68718 +
68719 +MEMORY="MEMORY
68720 + {
68721 + FLASH (rxai!w) : ORIGIN = 0x80000000, LENGTH = 0x20000
68722 + INTRAM (wxa!ri) : ORIGIN = 0x00000000, LENGTH = 0x8000
68723 + USERPAGE : ORIGIN = 0x80800000, LENGTH = 0x200
68724 + FACTORYPAGE : ORIGIN = 0x80800200, LENGTH = 0x200
68725 + }"
68726 +RO_LMA_REGION="FLASH"
68727 +RO_VMA_REGION="FLASH"
68728 +RW_LMA_REGION="FLASH"
68729 +RW_VMA_REGION="INTRAM"
68730 +
68731 +STACK_SIZE=0x1000
68732 +STACK_ADDR="ORIGIN(INTRAM) + LENGTH(INTRAM) - ${STACK_SIZE}"
68733 +
68734 +DATA_SEGMENT_END="__heap_start__ = ALIGN(8);
68735 + . = ${STACK_ADDR};
68736 + __heap_end__ = .;"
68737 +
68738 +OTHER_SECTIONS=".userpage : { *(.userpage .userpage.*) } >USERPAGE AT>USERPAGE
68739 + .factorypage : { *(.factorypage .factorypage.*) } >FACTORYPAGE AT>FACTORYPAGE"
68740 diff -Nrup binutils-2.17/ld/emulparams/avr32elf_uc3b1256.sh binutils-2.17.atmel.1.3.0/ld/emulparams/avr32elf_uc3b1256.sh
68741 --- binutils-2.17/ld/emulparams/avr32elf_uc3b1256.sh 1970-01-01 01:00:00.000000000 +0100
68742 +++ binutils-2.17.atmel.1.3.0/ld/emulparams/avr32elf_uc3b1256.sh 2007-09-28 10:30:45.000000000 +0200
68743 @@ -0,0 +1,39 @@
68744 +MACHINE=uc
68745 +SCRIPT_NAME=elf_xip
68746 +TEMPLATE_NAME=elf32
68747 +EXTRA_EM_FILE=avr32elf
68748 +OUTPUT_FORMAT="elf32-avr32"
68749 +ARCH=avr32
68750 +MAXPAGESIZE=4096
68751 +ENTRY=_start
68752 +EMBEDDED=yes
68753 +NO_SMALL_DATA=yes
68754 +NOP=0xd703d703
68755 +
68756 +TEXT_START_ADDR=0x80000000
68757 +DATA_SEGMENT_ALIGN=8
68758 +BSS_ALIGNMENT=8
68759 +
68760 +INITIAL_READONLY_SECTIONS=".reset : { *(.reset) } >FLASH AT>FLASH"
68761 +
68762 +MEMORY="MEMORY
68763 + {
68764 + FLASH (rxai!w) : ORIGIN = 0x80000000, LENGTH = 0x40000
68765 + INTRAM (wxa!ri) : ORIGIN = 0x00000000, LENGTH = 0x8000
68766 + USERPAGE : ORIGIN = 0x80800000, LENGTH = 0x200
68767 + FACTORYPAGE : ORIGIN = 0x80800200, LENGTH = 0x200
68768 + }"
68769 +RO_LMA_REGION="FLASH"
68770 +RO_VMA_REGION="FLASH"
68771 +RW_LMA_REGION="FLASH"
68772 +RW_VMA_REGION="INTRAM"
68773 +
68774 +STACK_SIZE=0x1000
68775 +STACK_ADDR="ORIGIN(INTRAM) + LENGTH(INTRAM) - ${STACK_SIZE}"
68776 +
68777 +DATA_SEGMENT_END="__heap_start__ = ALIGN(8);
68778 + . = ${STACK_ADDR};
68779 + __heap_end__ = .;"
68780 +
68781 +OTHER_SECTIONS=".userpage : { *(.userpage .userpage.*) } >USERPAGE AT>USERPAGE
68782 + .factorypage : { *(.factorypage .factorypage.*) } >FACTORYPAGE AT>FACTORYPAGE"
68783 diff -Nrup binutils-2.17/ld/emulparams/avr32elf_uc3b164.sh binutils-2.17.atmel.1.3.0/ld/emulparams/avr32elf_uc3b164.sh
68784 --- binutils-2.17/ld/emulparams/avr32elf_uc3b164.sh 1970-01-01 01:00:00.000000000 +0100
68785 +++ binutils-2.17.atmel.1.3.0/ld/emulparams/avr32elf_uc3b164.sh 2007-09-28 10:30:45.000000000 +0200
68786 @@ -0,0 +1,40 @@
68787 +MACHINE=uc
68788 +SCRIPT_NAME=elf_xip
68789 +TEMPLATE_NAME=elf32
68790 +EXTRA_EM_FILE=avr32elf
68791 +OUTPUT_FORMAT="elf32-avr32"
68792 +ARCH=avr32
68793 +MAXPAGESIZE=4096
68794 +ENTRY=_start
68795 +EMBEDDED=yes
68796 +NO_SMALL_DATA=yes
68797 +NOP=0xd703d703
68798 +
68799 +TEXT_START_ADDR=0x80000000
68800 +DATA_SEGMENT_ALIGN=8
68801 +BSS_ALIGNMENT=8
68802 +
68803 +INITIAL_READONLY_SECTIONS=".reset : { *(.reset) } >FLASH AT>FLASH"
68804 +
68805 +MEMORY="MEMORY
68806 + {
68807 + FLASH (rxai!w) : ORIGIN = 0x80000000, LENGTH = 0x10000
68808 + INTRAM (wxa!ri) : ORIGIN = 0x00000000, LENGTH = 0x4000
68809 + USERPAGE : ORIGIN = 0x80800000, LENGTH = 0x200
68810 + FACTORYPAGE : ORIGIN = 0x80800200, LENGTH = 0x200
68811 + }"
68812 +RO_LMA_REGION="FLASH"
68813 +RO_VMA_REGION="FLASH"
68814 +RW_LMA_REGION="FLASH"
68815 +RW_VMA_REGION="INTRAM"
68816 +
68817 +STACK_SIZE=0x1000
68818 +STACK_ADDR="ORIGIN(INTRAM) + LENGTH(INTRAM) - ${STACK_SIZE}"
68819 +
68820 +DATA_SEGMENT_END="__heap_start__ = ALIGN(8);
68821 + . = ${STACK_ADDR};
68822 + __heap_end__ = .;"
68823 +
68824 +OTHER_SECTIONS=".userpage : { *(.userpage .userpage.*) } >USERPAGE AT>USERPAGE
68825 + .factorypage : { *(.factorypage .factorypage.*) } >FACTORYPAGE AT>FACTORYPAGE"
68826 +
68827 \ No newline at end of file
68828 diff -Nrup binutils-2.17/ld/emulparams/avr32linux.sh binutils-2.17.atmel.1.3.0/ld/emulparams/avr32linux.sh
68829 --- binutils-2.17/ld/emulparams/avr32linux.sh 1970-01-01 01:00:00.000000000 +0100
68830 +++ binutils-2.17.atmel.1.3.0/ld/emulparams/avr32linux.sh 2007-09-28 10:30:45.000000000 +0200
68831 @@ -0,0 +1,14 @@
68832 +ARCH=avr32
68833 +SCRIPT_NAME=elf
68834 +TEMPLATE_NAME=elf32
68835 +EXTRA_EM_FILE=avr32elf
68836 +OUTPUT_FORMAT="elf32-avr32"
68837 +GENERATE_SHLIB_SCRIPT=yes
68838 +MAXPAGESIZE=0x1000
68839 +TEXT_START_ADDR=0x00001000
68840 +NOP=0xd703d703
68841 +
68842 +# This appears to place the GOT before the data section, which is
68843 +# essential for uClinux. We don't use those .s* sections on AVR32
68844 +# anyway, so it shouldn't hurt for regular Linux either...
68845 +NO_SMALL_DATA=yes
68846 diff -Nrup binutils-2.17/ld/emultempl/avr32elf.em binutils-2.17.atmel.1.3.0/ld/emultempl/avr32elf.em
68847 --- binutils-2.17/ld/emultempl/avr32elf.em 1970-01-01 01:00:00.000000000 +0100
68848 +++ binutils-2.17.atmel.1.3.0/ld/emultempl/avr32elf.em 2007-09-28 10:30:44.000000000 +0200
68849 @@ -0,0 +1,72 @@
68850 +# This shell script emits a C file. -*- C -*-
68851 +# Copyright (C) 2007 Atmel Corporation
68852 +#
68853 +# This file is part of GLD, the Gnu Linker.
68854 +#
68855 +# This program is free software; you can redistribute it and/or modify
68856 +# it under the terms of the GNU General Public License as published by
68857 +# the Free Software Foundation; either version 2 of the License, or
68858 +# (at your option) any later version.
68859 +#
68860 +# This program is distributed in the hope that it will be useful,
68861 +# but WITHOUT ANY WARRANTY; without even the implied warranty of
68862 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
68863 +# GNU General Public License for more details.
68864 +#
68865 +# You should have received a copy of the GNU General Public License
68866 +# along with this program; if not, write to the Free Software
68867 +# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.
68868 +#
68869 +
68870 +# This file is sourced from elf32.em, and defines extra avr32-elf
68871 +# specific routines.
68872 +#
68873 +
68874 +cat >> e${EMULATION_NAME}.c <<EOF
68875 +
68876 +#include "libbfd.h"
68877 +#include "elf32-avr32.h"
68878 +
68879 +/* Whether to allow direct references (sub or mov) to SEC_DATA and
68880 + !SEC_CONTENTS sections when optimizing. Not enabled by default
68881 + since it might cause link errors. */
68882 +static int direct_data_refs = 0;
68883 +
68884 +static void avr32_elf_after_open (void)
68885 +{
68886 + bfd_elf32_avr32_set_options (&link_info, direct_data_refs);
68887 + gld${EMULATION_NAME}_after_open ();
68888 +}
68889 +
68890 +EOF
68891 +
68892 +# Define some shell vars to insert bits of code into the standard elf
68893 +# parse_args and list_options functions.
68894 +#
68895 +PARSE_AND_LIST_PROLOGUE='
68896 +#define OPTION_DIRECT_DATA 300
68897 +#define OPTION_NO_DIRECT_DATA 301
68898 +'
68899 +
68900 +PARSE_AND_LIST_LONGOPTS='
68901 + { "direct-data", no_argument, NULL, OPTION_DIRECT_DATA },
68902 + { "no-direct-data", no_argument, NULL, OPTION_NO_DIRECT_DATA },
68903 +'
68904 +
68905 +PARSE_AND_LIST_OPTIONS='
68906 + fprintf (file, _(" --direct-data\t\tAllow direct data references when optimizing\n"));
68907 + fprintf (file, _(" --no-direct-data\tDo not allow direct data references when optimizing\n"));
68908 +'
68909 +
68910 +PARSE_AND_LIST_ARGS_CASES='
68911 + case OPTION_DIRECT_DATA:
68912 + direct_data_refs = 1;
68913 + break;
68914 + case OPTION_NO_DIRECT_DATA:
68915 + direct_data_refs = 0;
68916 + break;
68917 +'
68918 +
68919 +# Replace some of the standard ELF functions with our own versions.
68920 +#
68921 +LDEMUL_AFTER_OPEN=avr32_elf_after_open
68922 diff -Nrup binutils-2.17/ld/ld.info binutils-2.17.atmel.1.3.0/ld/ld.info
68923 --- binutils-2.17/ld/ld.info 2006-06-23 20:19:51.000000000 +0200
68924 +++ binutils-2.17.atmel.1.3.0/ld/ld.info 2007-09-28 10:30:45.000000000 +0200
68925 @@ -1,5 +1,7 @@
68926 -This is .././ld/ld.info, produced by makeinfo version 4.8 from
68927 -.././ld/ld.texinfo.
68928 +This is
68929 +/home/hcegtvedt/svnwork/tools/T0243-GNU_Toolchain/50-Source/binutils/trunk/ld/ld.info,
68930 +produced by makeinfo version 4.8 from
68931 +/home/hcegtvedt/svnwork/tools/T0243-GNU_Toolchain/50-Source/binutils/trunk/ld/ld.texinfo.
68932
68933 START-INFO-DIR-ENTRY
68934 * Ld: (ld). The GNU linker.
68935 @@ -4192,6 +4194,8 @@ not listed.
68936
68937 * ARM:: `ld' and the ARM family
68938
68939 +* AVR32:: `ld' and AVR32 processors
68940 +
68941 * HPPA ELF32:: `ld' and HPPA 32-bit ELF
68942
68943 * MMIX:: `ld' and MMIX
68944 @@ -4285,7 +4289,7 @@ target subroutine is a leaf routine (tha
68945 not itself call any subroutines).
68946
68947 \1f
68948 -File: ld.info, Node: ARM, Next: HPPA ELF32, Prev: i960, Up: Machine Dependent
68949 ++File: ld.info, Node: ARM, Next: AVR32, Prev: i960, Up: Machine Dependent
68950
68951 4.3 `ld' and the ARM family
68952 ===========================
68953 @@ -4351,9 +4355,33 @@ entry. This should lead to such calls ex
68954 to specify it if you are using that target.
68955
68956 \1f
68957 -File: ld.info, Node: HPPA ELF32, Next: MMIX, Prev: ARM, Up: Machine Dependent
68958 +File: ld.info, Node: AVR32, Next: HPPA ELF32, Prev: ARM, Up: Machine Dependent
68959 +
68960 +4.4 `ld' and AVR32 processors
68961 +=============================
68962 +
68963 +`--direct-data'
68964 +
68965 +`--no-direct-data'
68966 + Taking the address of a symbol can often be done by using a direct
68967 + `mov' or pc-relative `sub' instruction, which is faster than using
68968 + a PC- or GOT-relative load, especially on the uC3 processors.
68969 + However, this does not always work when dealing with symbols in
68970 + the `.data' section so this optimization is disabled by default.
68971 +
68972 + Specifying `--direct-data' will enable this optimization. Note
68973 + that this may cause `relocation truncated to fit' errors for
68974 + certain large programs. If this happens, the optimization can be
68975 + turned off by specifying `--no-direct-data'.
68976 +
68977 + All known issues with direct data optimizations are detected at
68978 + link time, so if the linker doesn't complain, the result should
68979 + run just fine.
68980 +
68981 +\1f
68982 +File: ld.info, Node: HPPA ELF32, Next: MMIX, Prev: AVR32, Up: Machine Dependent
68983
68984 -4.4 `ld' and HPPA 32-bit ELF Support
68985 +4.5 `ld' and HPPA 32-bit ELF Support
68986 ====================================
68987
68988 When generating a shared library, `ld' will by default generate import
68989 @@ -4384,7 +4412,7 @@ large, it may not be possible for a bran
68990 \1f
68991 File: ld.info, Node: MMIX, Next: MSP430, Prev: HPPA ELF32, Up: Machine Dependent
68992
68993 -4.5 `ld' and MMIX
68994 +4.6 `ld' and MMIX
68995 =================
68996
68997 For MMIX, there is a choice of generating `ELF' object files or `mmo'
68998 @@ -4412,7 +4440,7 @@ section, are left out from an mmo file.
68999 \1f
69000 File: ld.info, Node: MSP430, Next: PowerPC ELF32, Prev: MMIX, Up: Machine Dependent
69001
69002 -4.6 `ld' and MSP430
69003 +4.7 `ld' and MSP430
69004 ===================
69005
69006 For the MSP430 it is possible to select the MPU architecture. The flag
69007 @@ -4446,7 +4474,7 @@ specific:
69008 \1f
69009 File: ld.info, Node: PowerPC ELF32, Next: PowerPC64 ELF64, Prev: MSP430, Up: Machine Dependent
69010
69011 -4.7 `ld' and PowerPC 32-bit ELF Support
69012 +4.8 `ld' and PowerPC 32-bit ELF Support
69013 =======================================
69014
69015 Branches on PowerPC processors are limited to a signed 26-bit
69016 @@ -4577,7 +4605,7 @@ File: ld.info, Node: PowerPC64 ELF64,
69017 \1f
69018 File: ld.info, Node: TI COFF, Next: WIN32, Prev: PowerPC64 ELF64, Up: Machine Dependent
69019
69020 -4.9 `ld''s Support for Various TI COFF Versions
69021 +4.10 `ld''s Support for Various TI COFF Versions
69022 ===============================================
69023
69024 The `--format' switch allows selection of one of the various TI COFF
69025 @@ -4589,7 +4617,7 @@ depends on the default specified by the
69026 \1f
69027 File: ld.info, Node: WIN32, Next: Xtensa, Prev: TI COFF, Up: Machine Dependent
69028
69029 -4.10 `ld' and WIN32 (cygwin/mingw)
69030 +4.11 `ld' and WIN32 (cygwin/mingw)
69031 ==================================
69032
69033 This section describes some of the win32 specific `ld' issues. See
69034 @@ -4986,7 +5014,7 @@ _weak externals_
69035 \1f
69036 File: ld.info, Node: Xtensa, Prev: WIN32, Up: Machine Dependent
69037
69038 -4.11 `ld' and Xtensa Processors
69039 +4.12 `ld' and Xtensa Processors
69040 ===============================
69041
69042 The default `ld' behavior for Xtensa processors is to interpret
69043 @@ -5954,6 +5982,7 @@ Index
69044 * --default-symver: Options. (line 849)
69045 * --defsym SYMBOL=EXP: Options. (line 739)
69046 * --demangle[=STYLE]: Options. (line 752)
69047 +* --direct-data: AVR32. (line 6)
69048 * --disable-auto-image-base: Options. (line 1495)
69049 * --disable-auto-import: Options. (line 1624)
69050 * --disable-new-dtags: Options. (line 1295)
69051 @@ -6016,6 +6045,7 @@ Index
69052 * --no-check-sections: Options. (line 701)
69053 * --no-define-common: Options. (line 723)
69054 * --no-demangle: Options. (line 752)
69055 +* --no-direct-data: AVR32. (line 6)
69056 * --no-dotsyms: PowerPC64 ELF64. (line 33)
69057 * --no-gc-sections: Options. (line 784)
69058 * --no-keep-memory: Options. (line 804)
69059 @@ -6200,6 +6230,7 @@ Index
69060 * AT(LMA): Output Section LMA. (line 6)
69061 * AT>LMA_REGION: Output Section LMA. (line 6)
69062 * automatic data imports: WIN32. (line 170)
69063 +* AVR32 options: AVR32. (line 6)
69064 * back end: BFD. (line 6)
69065 * BASE (MRI): MRI. (line 54)
69066 * BE8: ARM. (line 23)
69067 @@ -6611,81 +6642,161 @@ Index
69068
69069 \1f
69070 Tag Table:
69071 -Node: Top\7f347
69072 -Node: Overview\7f1109
69073 -Node: Invocation\7f2223
69074 -Node: Options\7f2631
69075 -Node: Environment\7f77286
69076 -Node: Scripts\7f79046
69077 -Node: Basic Script Concepts\7f80780
69078 -Node: Script Format\7f83487
69079 -Node: Simple Example\7f84350
69080 -Node: Simple Commands\7f87446
69081 -Node: Entry Point\7f87897
69082 -Node: File Commands\7f88656
69083 -Node: Format Commands\7f92522
69084 -Node: Miscellaneous Commands\7f94488
69085 -Node: Assignments\7f96718
69086 -Node: Simple Assignments\7f97209
69087 -Node: PROVIDE\7f98945
69088 -Node: PROVIDE_HIDDEN\7f100150
69089 -Node: Source Code Reference\7f100394
69090 -Node: SECTIONS\7f103974
69091 -Node: Output Section Description\7f105865
69092 -Node: Output Section Name\7f106918
69093 -Node: Output Section Address\7f107794
69094 -Node: Input Section\7f109443
69095 -Node: Input Section Basics\7f110244
69096 -Node: Input Section Wildcards\7f112596
69097 -Node: Input Section Common\7f117329
69098 -Node: Input Section Keep\7f118811
69099 -Node: Input Section Example\7f119301
69100 -Node: Output Section Data\7f120269
69101 -Node: Output Section Keywords\7f123046
69102 -Node: Output Section Discarding\7f126615
69103 -Node: Output Section Attributes\7f127571
69104 -Node: Output Section Type\7f128575
69105 -Node: Output Section LMA\7f129729
69106 -Node: Forced Output Alignment\7f132000
69107 -Node: Forced Input Alignment\7f132268
69108 -Node: Output Section Region\7f132653
69109 -Node: Output Section Phdr\7f133083
69110 -Node: Output Section Fill\7f133747
69111 -Node: Overlay Description\7f134889
69112 -Node: MEMORY\7f139137
69113 -Node: PHDRS\7f143337
69114 -Node: VERSION\7f148376
69115 -Node: Expressions\7f156167
69116 -Node: Constants\7f157045
69117 -Node: Symbols\7f157606
69118 -Node: Orphan Sections\7f158344
69119 -Node: Location Counter\7f159107
69120 -Node: Operators\7f163411
69121 -Node: Evaluation\7f164333
69122 -Node: Expression Section\7f165697
69123 -Node: Builtin Functions\7f167186
69124 -Node: Implicit Linker Scripts\7f174678
69125 -Node: Machine Dependent\7f175453
69126 -Node: H8/300\7f176314
69127 -Node: i960\7f177939
69128 -Node: ARM\7f179624
69129 -Node: HPPA ELF32\7f182540
69130 -Node: MMIX\7f184163
69131 -Node: MSP430\7f185380
69132 -Node: PowerPC ELF32\7f186428
69133 -Node: PowerPC64 ELF64\7f188719
69134 -Node: TI COFF\7f193133
69135 -Node: WIN32\7f193665
69136 -Node: Xtensa\7f211739
69137 -Node: BFD\7f214861
69138 -Node: BFD outline\7f216316
69139 -Node: BFD information loss\7f217602
69140 -Node: Canonical format\7f220119
69141 -Node: Reporting Bugs\7f224476
69142 -Node: Bug Criteria\7f225170
69143 -Node: Bug Reporting\7f225869
69144 -Node: MRI\7f232894
69145 -Node: GNU Free Documentation License\7f237537
69146 -Node: Index\7f257251
69147 +<<<<<<< .mine
69148 +Node: Top\7f487
69149 +Node: Overview\7f1249
69150 +Node: Invocation\7f2363
69151 +Node: Options\7f2771
69152 +Node: Environment\7f77426
69153 +Node: Scripts\7f79186
69154 +Node: Basic Script Concepts\7f80920
69155 +Node: Script Format\7f83627
69156 +Node: Simple Example\7f84490
69157 +Node: Simple Commands\7f87586
69158 +Node: Entry Point\7f88037
69159 +Node: File Commands\7f88796
69160 +Node: Format Commands\7f92662
69161 +Node: Miscellaneous Commands\7f94628
69162 +Node: Assignments\7f96858
69163 +Node: Simple Assignments\7f97349
69164 +Node: PROVIDE\7f99085
69165 +Node: PROVIDE_HIDDEN\7f100290
69166 +Node: Source Code Reference\7f100534
69167 +Node: SECTIONS\7f104114
69168 +Node: Output Section Description\7f106005
69169 +Node: Output Section Name\7f107058
69170 +Node: Output Section Address\7f107934
69171 +Node: Input Section\7f109583
69172 +Node: Input Section Basics\7f110384
69173 +Node: Input Section Wildcards\7f112736
69174 +Node: Input Section Common\7f117469
69175 +Node: Input Section Keep\7f118951
69176 +Node: Input Section Example\7f119441
69177 +Node: Output Section Data\7f120409
69178 +Node: Output Section Keywords\7f123186
69179 +Node: Output Section Discarding\7f126755
69180 +Node: Output Section Attributes\7f127711
69181 +Node: Output Section Type\7f128715
69182 +Node: Output Section LMA\7f129869
69183 +Node: Forced Output Alignment\7f132140
69184 +Node: Forced Input Alignment\7f132408
69185 +Node: Output Section Region\7f132793
69186 +Node: Output Section Phdr\7f133223
69187 +Node: Output Section Fill\7f133887
69188 +Node: Overlay Description\7f135029
69189 +Node: MEMORY\7f139277
69190 +Node: PHDRS\7f143477
69191 +Node: VERSION\7f148516
69192 +Node: Expressions\7f156307
69193 +Node: Constants\7f157185
69194 +Node: Symbols\7f157746
69195 +Node: Orphan Sections\7f158484
69196 +Node: Location Counter\7f159247
69197 +Node: Operators\7f163551
69198 +Node: Evaluation\7f164473
69199 +Node: Expression Section\7f165837
69200 +Node: Builtin Functions\7f167326
69201 +Node: Implicit Linker Scripts\7f174818
69202 +Node: Machine Dependent\7f175593
69203 +Node: H8/300\7f176454
69204 +Node: i960\7f178079
69205 +Node: ARM\7f179764
69206 +Node: HPPA ELF32\7f182680
69207 +Node: MMIX\7f184303
69208 +Node: MSP430\7f185520
69209 +Node: PowerPC ELF32\7f186568
69210 +Node: PowerPC64 ELF64\7f188859
69211 +Node: TI COFF\7f193273
69212 +Node: WIN32\7f193805
69213 +Node: Xtensa\7f211879
69214 +Node: BFD\7f215001
69215 +Node: BFD outline\7f216456
69216 +Node: BFD information loss\7f217742
69217 +Node: Canonical format\7f220259
69218 +Node: Reporting Bugs\7f224616
69219 +Node: Bug Criteria\7f225310
69220 +Node: Bug Reporting\7f226009
69221 +Node: MRI\7f233034
69222 +Node: GNU Free Documentation License\7f237677
69223 +Node: Index\7f257391
69224 +=======
69225 +Node: Top\7f331
69226 +Node: Overview\7f1093
69227 +Node: Invocation\7f2207
69228 +Node: Options\7f2615
69229 +Node: Environment\7f77270
69230 +Node: Scripts\7f79030
69231 +Node: Basic Script Concepts\7f80764
69232 +Node: Script Format\7f83471
69233 +Node: Simple Example\7f84334
69234 +Node: Simple Commands\7f87430
69235 +Node: Entry Point\7f87881
69236 +Node: File Commands\7f88640
69237 +Node: Format Commands\7f92506
69238 +Node: Miscellaneous Commands\7f94472
69239 +Node: Assignments\7f96702
69240 +Node: Simple Assignments\7f97193
69241 +Node: PROVIDE\7f98929
69242 +Node: PROVIDE_HIDDEN\7f100134
69243 +Node: Source Code Reference\7f100378
69244 +Node: SECTIONS\7f103958
69245 +Node: Output Section Description\7f105849
69246 +Node: Output Section Name\7f106902
69247 +Node: Output Section Address\7f107778
69248 +Node: Input Section\7f109427
69249 +Node: Input Section Basics\7f110228
69250 +Node: Input Section Wildcards\7f112580
69251 +Node: Input Section Common\7f117313
69252 +Node: Input Section Keep\7f118795
69253 +Node: Input Section Example\7f119285
69254 +Node: Output Section Data\7f120253
69255 +Node: Output Section Keywords\7f123030
69256 +Node: Output Section Discarding\7f126599
69257 +Node: Output Section Attributes\7f127555
69258 +Node: Output Section Type\7f128559
69259 +Node: Output Section LMA\7f129713
69260 +Node: Forced Output Alignment\7f131984
69261 +Node: Forced Input Alignment\7f132252
69262 +Node: Output Section Region\7f132637
69263 +Node: Output Section Phdr\7f133067
69264 +Node: Output Section Fill\7f133731
69265 +Node: Overlay Description\7f134873
69266 +Node: MEMORY\7f139121
69267 +Node: PHDRS\7f143321
69268 +Node: VERSION\7f148360
69269 +Node: Expressions\7f156151
69270 +Node: Constants\7f157029
69271 +Node: Symbols\7f157590
69272 +Node: Orphan Sections\7f158328
69273 +Node: Location Counter\7f159091
69274 +Node: Operators\7f163395
69275 +Node: Evaluation\7f164317
69276 +Node: Expression Section\7f165681
69277 +Node: Builtin Functions\7f167170
69278 +Node: Implicit Linker Scripts\7f174662
69279 +Node: Machine Dependent\7f175437
69280 +Node: H8/300\7f176357
69281 +Node: i960\7f177982
69282 +Node: ARM\7f179667
69283 +Node: AVR32\7f182578
69284 +Node: HPPA ELF32\7f183526
69285 +Node: MMIX\7f185151
69286 +Node: MSP430\7f186368
69287 +Node: PowerPC ELF32\7f187416
69288 +Node: PowerPC64 ELF64\7f189707
69289 +Node: TI COFF\7f194121
69290 +Node: WIN32\7f194655
69291 +Node: Xtensa\7f212729
69292 +Node: BFD\7f215851
69293 +Node: BFD outline\7f217306
69294 +Node: BFD information loss\7f218592
69295 +Node: Canonical format\7f221109
69296 +Node: Reporting Bugs\7f225466
69297 +Node: Bug Criteria\7f226160
69298 +Node: Bug Reporting\7f226859
69299 +Node: MRI\7f233884
69300 +Node: GNU Free Documentation License\7f238527
69301 +Node: Index\7f258241
69302 +>>>>>>> .r31496
69303 \1f
69304 End Tag Table
69305 diff -Nrup binutils-2.17/ld/ld.info.mine binutils-2.17.atmel.1.3.0/ld/ld.info.mine
69306 --- binutils-2.17/ld/ld.info.mine 1970-01-01 01:00:00.000000000 +0100
69307 +++ binutils-2.17.atmel.1.3.0/ld/ld.info.mine 2007-09-28 10:30:44.000000000 +0200
69308 @@ -0,0 +1,6693 @@
69309 +This is
69310 +/home/hcegtvedt/svnwork/tools/T0243-GNU_Toolchain/50-Source/binutils/trunk/ld/ld.info,
69311 +produced by makeinfo version 4.8 from
69312 +/home/hcegtvedt/svnwork/tools/T0243-GNU_Toolchain/50-Source/binutils/trunk/ld/ld.texinfo.
69313 +
69314 +START-INFO-DIR-ENTRY
69315 +* Ld: (ld). The GNU linker.
69316 +END-INFO-DIR-ENTRY
69317 +
69318 + This file documents the GNU linker LD version 2.17.
69319 +
69320 + Copyright (C) 1991, 92, 93, 94, 95, 96, 97, 98, 99, 2000, 2001,
69321 +2002, 2003, 2004 Free Software Foundation, Inc.
69322 +
69323 +\1f
69324 +File: ld.info, Node: Top, Next: Overview, Up: (dir)
69325 +
69326 +Using ld
69327 +********
69328 +
69329 +This file documents the GNU linker ld version 2.17.
69330 +
69331 + This document is distributed under the terms of the GNU Free
69332 +Documentation License. A copy of the license is included in the
69333 +section entitled "GNU Free Documentation License".
69334 +
69335 +* Menu:
69336 +
69337 +* Overview:: Overview
69338 +* Invocation:: Invocation
69339 +* Scripts:: Linker Scripts
69340 +
69341 +* Machine Dependent:: Machine Dependent Features
69342 +
69343 +* BFD:: BFD
69344 +
69345 +* Reporting Bugs:: Reporting Bugs
69346 +* MRI:: MRI Compatible Script Files
69347 +* GNU Free Documentation License:: GNU Free Documentation License
69348 +* Index:: Index
69349 +
69350 +\1f
69351 +File: ld.info, Node: Overview, Next: Invocation, Prev: Top, Up: Top
69352 +
69353 +1 Overview
69354 +**********
69355 +
69356 +`ld' combines a number of object and archive files, relocates their
69357 +data and ties up symbol references. Usually the last step in compiling
69358 +a program is to run `ld'.
69359 +
69360 + `ld' accepts Linker Command Language files written in a superset of
69361 +AT&T's Link Editor Command Language syntax, to provide explicit and
69362 +total control over the linking process.
69363 +
69364 + This version of `ld' uses the general purpose BFD libraries to
69365 +operate on object files. This allows `ld' to read, combine, and write
69366 +object files in many different formats--for example, COFF or `a.out'.
69367 +Different formats may be linked together to produce any available kind
69368 +of object file. *Note BFD::, for more information.
69369 +
69370 + Aside from its flexibility, the GNU linker is more helpful than other
69371 +linkers in providing diagnostic information. Many linkers abandon
69372 +execution immediately upon encountering an error; whenever possible,
69373 +`ld' continues executing, allowing you to identify other errors (or, in
69374 +some cases, to get an output file in spite of the error).
69375 +
69376 +\1f
69377 +File: ld.info, Node: Invocation, Next: Scripts, Prev: Overview, Up: Top
69378 +
69379 +2 Invocation
69380 +************
69381 +
69382 +The GNU linker `ld' is meant to cover a broad range of situations, and
69383 +to be as compatible as possible with other linkers. As a result, you
69384 +have many choices to control its behavior.
69385 +
69386 +* Menu:
69387 +
69388 +* Options:: Command Line Options
69389 +* Environment:: Environment Variables
69390 +
69391 +\1f
69392 +File: ld.info, Node: Options, Next: Environment, Up: Invocation
69393 +
69394 +2.1 Command Line Options
69395 +========================
69396 +
69397 + The linker supports a plethora of command-line options, but in actual
69398 +practice few of them are used in any particular context. For instance,
69399 +a frequent use of `ld' is to link standard Unix object files on a
69400 +standard, supported Unix system. On such a system, to link a file
69401 +`hello.o':
69402 +
69403 + ld -o OUTPUT /lib/crt0.o hello.o -lc
69404 +
69405 + This tells `ld' to produce a file called OUTPUT as the result of
69406 +linking the file `/lib/crt0.o' with `hello.o' and the library `libc.a',
69407 +which will come from the standard search directories. (See the
69408 +discussion of the `-l' option below.)
69409 +
69410 + Some of the command-line options to `ld' may be specified at any
69411 +point in the command line. However, options which refer to files, such
69412 +as `-l' or `-T', cause the file to be read at the point at which the
69413 +option appears in the command line, relative to the object files and
69414 +other file options. Repeating non-file options with a different
69415 +argument will either have no further effect, or override prior
69416 +occurrences (those further to the left on the command line) of that
69417 +option. Options which may be meaningfully specified more than once are
69418 +noted in the descriptions below.
69419 +
69420 + Non-option arguments are object files or archives which are to be
69421 +linked together. They may follow, precede, or be mixed in with
69422 +command-line options, except that an object file argument may not be
69423 +placed between an option and its argument.
69424 +
69425 + Usually the linker is invoked with at least one object file, but you
69426 +can specify other forms of binary input files using `-l', `-R', and the
69427 +script command language. If _no_ binary input files at all are
69428 +specified, the linker does not produce any output, and issues the
69429 +message `No input files'.
69430 +
69431 + If the linker cannot recognize the format of an object file, it will
69432 +assume that it is a linker script. A script specified in this way
69433 +augments the main linker script used for the link (either the default
69434 +linker script or the one specified by using `-T'). This feature
69435 +permits the linker to link against a file which appears to be an object
69436 +or an archive, but actually merely defines some symbol values, or uses
69437 +`INPUT' or `GROUP' to load other objects. Note that specifying a
69438 +script in this way merely augments the main linker script; use the `-T'
69439 +option to replace the default linker script entirely. *Note Scripts::.
69440 +
69441 + For options whose names are a single letter, option arguments must
69442 +either follow the option letter without intervening whitespace, or be
69443 +given as separate arguments immediately following the option that
69444 +requires them.
69445 +
69446 + For options whose names are multiple letters, either one dash or two
69447 +can precede the option name; for example, `-trace-symbol' and
69448 +`--trace-symbol' are equivalent. Note--there is one exception to this
69449 +rule. Multiple letter options that start with a lower case 'o' can
69450 +only be preceeded by two dashes. This is to reduce confusion with the
69451 +`-o' option. So for example `-omagic' sets the output file name to
69452 +`magic' whereas `--omagic' sets the NMAGIC flag on the output.
69453 +
69454 + Arguments to multiple-letter options must either be separated from
69455 +the option name by an equals sign, or be given as separate arguments
69456 +immediately following the option that requires them. For example,
69457 +`--trace-symbol foo' and `--trace-symbol=foo' are equivalent. Unique
69458 +abbreviations of the names of multiple-letter options are accepted.
69459 +
69460 + Note--if the linker is being invoked indirectly, via a compiler
69461 +driver (e.g. `gcc') then all the linker command line options should be
69462 +prefixed by `-Wl,' (or whatever is appropriate for the particular
69463 +compiler driver) like this:
69464 +
69465 + gcc -Wl,--startgroup foo.o bar.o -Wl,--endgroup
69466 +
69467 + This is important, because otherwise the compiler driver program may
69468 +silently drop the linker options, resulting in a bad link.
69469 +
69470 + Here is a table of the generic command line switches accepted by the
69471 +GNU linker:
69472 +
69473 +`@FILE'
69474 + Read command-line options from FILE. The options read are
69475 + inserted in place of the original @FILE option. If FILE does not
69476 + exist, or cannot be read, then the option will be treated
69477 + literally, and not removed.
69478 +
69479 + Options in FILE are separated by whitespace. A whitespace
69480 + character may be included in an option by surrounding the entire
69481 + option in either single or double quotes. Any character
69482 + (including a backslash) may be included by prefixing the character
69483 + to be included with a backslash. The FILE may itself contain
69484 + additional @FILE options; any such options will be processed
69485 + recursively.
69486 +
69487 +`-aKEYWORD'
69488 + This option is supported for HP/UX compatibility. The KEYWORD
69489 + argument must be one of the strings `archive', `shared', or
69490 + `default'. `-aarchive' is functionally equivalent to `-Bstatic',
69491 + and the other two keywords are functionally equivalent to
69492 + `-Bdynamic'. This option may be used any number of times.
69493 +
69494 +`-AARCHITECTURE'
69495 +`--architecture=ARCHITECTURE'
69496 + In the current release of `ld', this option is useful only for the
69497 + Intel 960 family of architectures. In that `ld' configuration, the
69498 + ARCHITECTURE argument identifies the particular architecture in
69499 + the 960 family, enabling some safeguards and modifying the
69500 + archive-library search path. *Note `ld' and the Intel 960 family:
69501 + i960, for details.
69502 +
69503 + Future releases of `ld' may support similar functionality for
69504 + other architecture families.
69505 +
69506 +`-b INPUT-FORMAT'
69507 +`--format=INPUT-FORMAT'
69508 + `ld' may be configured to support more than one kind of object
69509 + file. If your `ld' is configured this way, you can use the `-b'
69510 + option to specify the binary format for input object files that
69511 + follow this option on the command line. Even when `ld' is
69512 + configured to support alternative object formats, you don't
69513 + usually need to specify this, as `ld' should be configured to
69514 + expect as a default input format the most usual format on each
69515 + machine. INPUT-FORMAT is a text string, the name of a particular
69516 + format supported by the BFD libraries. (You can list the
69517 + available binary formats with `objdump -i'.) *Note BFD::.
69518 +
69519 + You may want to use this option if you are linking files with an
69520 + unusual binary format. You can also use `-b' to switch formats
69521 + explicitly (when linking object files of different formats), by
69522 + including `-b INPUT-FORMAT' before each group of object files in a
69523 + particular format.
69524 +
69525 + The default format is taken from the environment variable
69526 + `GNUTARGET'. *Note Environment::. You can also define the input
69527 + format from a script, using the command `TARGET'; see *Note Format
69528 + Commands::.
69529 +
69530 +`-c MRI-COMMANDFILE'
69531 +`--mri-script=MRI-COMMANDFILE'
69532 + For compatibility with linkers produced by MRI, `ld' accepts script
69533 + files written in an alternate, restricted command language,
69534 + described in *Note MRI Compatible Script Files: MRI. Introduce
69535 + MRI script files with the option `-c'; use the `-T' option to run
69536 + linker scripts written in the general-purpose `ld' scripting
69537 + language. If MRI-CMDFILE does not exist, `ld' looks for it in the
69538 + directories specified by any `-L' options.
69539 +
69540 +`-d'
69541 +`-dc'
69542 +`-dp'
69543 + These three options are equivalent; multiple forms are supported
69544 + for compatibility with other linkers. They assign space to common
69545 + symbols even if a relocatable output file is specified (with
69546 + `-r'). The script command `FORCE_COMMON_ALLOCATION' has the same
69547 + effect. *Note Miscellaneous Commands::.
69548 +
69549 +`-e ENTRY'
69550 +`--entry=ENTRY'
69551 + Use ENTRY as the explicit symbol for beginning execution of your
69552 + program, rather than the default entry point. If there is no
69553 + symbol named ENTRY, the linker will try to parse ENTRY as a number,
69554 + and use that as the entry address (the number will be interpreted
69555 + in base 10; you may use a leading `0x' for base 16, or a leading
69556 + `0' for base 8). *Note Entry Point::, for a discussion of defaults
69557 + and other ways of specifying the entry point.
69558 +
69559 +`--exclude-libs LIB,LIB,...'
69560 + Specifies a list of archive libraries from which symbols should
69561 + not be automatically exported. The library names may be delimited
69562 + by commas or colons. Specifying `--exclude-libs ALL' excludes
69563 + symbols in all archive libraries from automatic export. This
69564 + option is available only for the i386 PE targeted port of the
69565 + linker and for ELF targeted ports. For i386 PE, symbols
69566 + explicitly listed in a .def file are still exported, regardless of
69567 + this option. For ELF targeted ports, symbols affected by this
69568 + option will be treated as hidden.
69569 +
69570 +`-E'
69571 +`--export-dynamic'
69572 + When creating a dynamically linked executable, add all symbols to
69573 + the dynamic symbol table. The dynamic symbol table is the set of
69574 + symbols which are visible from dynamic objects at run time.
69575 +
69576 + If you do not use this option, the dynamic symbol table will
69577 + normally contain only those symbols which are referenced by some
69578 + dynamic object mentioned in the link.
69579 +
69580 + If you use `dlopen' to load a dynamic object which needs to refer
69581 + back to the symbols defined by the program, rather than some other
69582 + dynamic object, then you will probably need to use this option when
69583 + linking the program itself.
69584 +
69585 + You can also use the version script to control what symbols should
69586 + be added to the dynamic symbol table if the output format supports
69587 + it. See the description of `--version-script' in *Note VERSION::.
69588 +
69589 +`-EB'
69590 + Link big-endian objects. This affects the default output format.
69591 +
69592 +`-EL'
69593 + Link little-endian objects. This affects the default output
69594 + format.
69595 +
69596 +`-f'
69597 +`--auxiliary NAME'
69598 + When creating an ELF shared object, set the internal DT_AUXILIARY
69599 + field to the specified name. This tells the dynamic linker that
69600 + the symbol table of the shared object should be used as an
69601 + auxiliary filter on the symbol table of the shared object NAME.
69602 +
69603 + If you later link a program against this filter object, then, when
69604 + you run the program, the dynamic linker will see the DT_AUXILIARY
69605 + field. If the dynamic linker resolves any symbols from the filter
69606 + object, it will first check whether there is a definition in the
69607 + shared object NAME. If there is one, it will be used instead of
69608 + the definition in the filter object. The shared object NAME need
69609 + not exist. Thus the shared object NAME may be used to provide an
69610 + alternative implementation of certain functions, perhaps for
69611 + debugging or for machine specific performance.
69612 +
69613 + This option may be specified more than once. The DT_AUXILIARY
69614 + entries will be created in the order in which they appear on the
69615 + command line.
69616 +
69617 +`-F NAME'
69618 +`--filter NAME'
69619 + When creating an ELF shared object, set the internal DT_FILTER
69620 + field to the specified name. This tells the dynamic linker that
69621 + the symbol table of the shared object which is being created
69622 + should be used as a filter on the symbol table of the shared
69623 + object NAME.
69624 +
69625 + If you later link a program against this filter object, then, when
69626 + you run the program, the dynamic linker will see the DT_FILTER
69627 + field. The dynamic linker will resolve symbols according to the
69628 + symbol table of the filter object as usual, but it will actually
69629 + link to the definitions found in the shared object NAME. Thus the
69630 + filter object can be used to select a subset of the symbols
69631 + provided by the object NAME.
69632 +
69633 + Some older linkers used the `-F' option throughout a compilation
69634 + toolchain for specifying object-file format for both input and
69635 + output object files. The GNU linker uses other mechanisms for
69636 + this purpose: the `-b', `--format', `--oformat' options, the
69637 + `TARGET' command in linker scripts, and the `GNUTARGET'
69638 + environment variable. The GNU linker will ignore the `-F' option
69639 + when not creating an ELF shared object.
69640 +
69641 +`-fini NAME'
69642 + When creating an ELF executable or shared object, call NAME when
69643 + the executable or shared object is unloaded, by setting DT_FINI to
69644 + the address of the function. By default, the linker uses `_fini'
69645 + as the function to call.
69646 +
69647 +`-g'
69648 + Ignored. Provided for compatibility with other tools.
69649 +
69650 +`-GVALUE'
69651 +`--gpsize=VALUE'
69652 + Set the maximum size of objects to be optimized using the GP
69653 + register to SIZE. This is only meaningful for object file formats
69654 + such as MIPS ECOFF which supports putting large and small objects
69655 + into different sections. This is ignored for other object file
69656 + formats.
69657 +
69658 +`-hNAME'
69659 +`-soname=NAME'
69660 + When creating an ELF shared object, set the internal DT_SONAME
69661 + field to the specified name. When an executable is linked with a
69662 + shared object which has a DT_SONAME field, then when the
69663 + executable is run the dynamic linker will attempt to load the
69664 + shared object specified by the DT_SONAME field rather than the
69665 + using the file name given to the linker.
69666 +
69667 +`-i'
69668 + Perform an incremental link (same as option `-r').
69669 +
69670 +`-init NAME'
69671 + When creating an ELF executable or shared object, call NAME when
69672 + the executable or shared object is loaded, by setting DT_INIT to
69673 + the address of the function. By default, the linker uses `_init'
69674 + as the function to call.
69675 +
69676 +`-lARCHIVE'
69677 +`--library=ARCHIVE'
69678 + Add archive file ARCHIVE to the list of files to link. This
69679 + option may be used any number of times. `ld' will search its
69680 + path-list for occurrences of `libARCHIVE.a' for every ARCHIVE
69681 + specified.
69682 +
69683 + On systems which support shared libraries, `ld' may also search for
69684 + libraries with extensions other than `.a'. Specifically, on ELF
69685 + and SunOS systems, `ld' will search a directory for a library with
69686 + an extension of `.so' before searching for one with an extension of
69687 + `.a'. By convention, a `.so' extension indicates a shared library.
69688 +
69689 + The linker will search an archive only once, at the location where
69690 + it is specified on the command line. If the archive defines a
69691 + symbol which was undefined in some object which appeared before
69692 + the archive on the command line, the linker will include the
69693 + appropriate file(s) from the archive. However, an undefined
69694 + symbol in an object appearing later on the command line will not
69695 + cause the linker to search the archive again.
69696 +
69697 + See the `-(' option for a way to force the linker to search
69698 + archives multiple times.
69699 +
69700 + You may list the same archive multiple times on the command line.
69701 +
69702 + This type of archive searching is standard for Unix linkers.
69703 + However, if you are using `ld' on AIX, note that it is different
69704 + from the behaviour of the AIX linker.
69705 +
69706 +`-LSEARCHDIR'
69707 +`--library-path=SEARCHDIR'
69708 + Add path SEARCHDIR to the list of paths that `ld' will search for
69709 + archive libraries and `ld' control scripts. You may use this
69710 + option any number of times. The directories are searched in the
69711 + order in which they are specified on the command line.
69712 + Directories specified on the command line are searched before the
69713 + default directories. All `-L' options apply to all `-l' options,
69714 + regardless of the order in which the options appear.
69715 +
69716 + If SEARCHDIR begins with `=', then the `=' will be replaced by the
69717 + "sysroot prefix", a path specified when the linker is configured.
69718 +
69719 + The default set of paths searched (without being specified with
69720 + `-L') depends on which emulation mode `ld' is using, and in some
69721 + cases also on how it was configured. *Note Environment::.
69722 +
69723 + The paths can also be specified in a link script with the
69724 + `SEARCH_DIR' command. Directories specified this way are searched
69725 + at the point in which the linker script appears in the command
69726 + line.
69727 +
69728 +`-mEMULATION'
69729 + Emulate the EMULATION linker. You can list the available
69730 + emulations with the `--verbose' or `-V' options.
69731 +
69732 + If the `-m' option is not used, the emulation is taken from the
69733 + `LDEMULATION' environment variable, if that is defined.
69734 +
69735 + Otherwise, the default emulation depends upon how the linker was
69736 + configured.
69737 +
69738 +`-M'
69739 +`--print-map'
69740 + Print a link map to the standard output. A link map provides
69741 + information about the link, including the following:
69742 +
69743 + * Where object files are mapped into memory.
69744 +
69745 + * How common symbols are allocated.
69746 +
69747 + * All archive members included in the link, with a mention of
69748 + the symbol which caused the archive member to be brought in.
69749 +
69750 + * The values assigned to symbols.
69751 +
69752 + Note - symbols whose values are computed by an expression
69753 + which involves a reference to a previous value of the same
69754 + symbol may not have correct result displayed in the link map.
69755 + This is because the linker discards intermediate results and
69756 + only retains the final value of an expression. Under such
69757 + circumstances the linker will display the final value
69758 + enclosed by square brackets. Thus for example a linker
69759 + script containing:
69760 +
69761 + foo = 1
69762 + foo = foo * 4
69763 + foo = foo + 8
69764 +
69765 + will produce the following output in the link map if the `-M'
69766 + option is used:
69767 +
69768 + 0x00000001 foo = 0x1
69769 + [0x0000000c] foo = (foo * 0x4)
69770 + [0x0000000c] foo = (foo + 0x8)
69771 +
69772 + See *Note Expressions:: for more information about
69773 + expressions in linker scripts.
69774 +
69775 +`-n'
69776 +`--nmagic'
69777 + Turn off page alignment of sections, and mark the output as
69778 + `NMAGIC' if possible.
69779 +
69780 +`-N'
69781 +`--omagic'
69782 + Set the text and data sections to be readable and writable. Also,
69783 + do not page-align the data segment, and disable linking against
69784 + shared libraries. If the output format supports Unix style magic
69785 + numbers, mark the output as `OMAGIC'. Note: Although a writable
69786 + text section is allowed for PE-COFF targets, it does not conform
69787 + to the format specification published by Microsoft.
69788 +
69789 +`--no-omagic'
69790 + This option negates most of the effects of the `-N' option. It
69791 + sets the text section to be read-only, and forces the data segment
69792 + to be page-aligned. Note - this option does not enable linking
69793 + against shared libraries. Use `-Bdynamic' for this.
69794 +
69795 +`-o OUTPUT'
69796 +`--output=OUTPUT'
69797 + Use OUTPUT as the name for the program produced by `ld'; if this
69798 + option is not specified, the name `a.out' is used by default. The
69799 + script command `OUTPUT' can also specify the output file name.
69800 +
69801 +`-O LEVEL'
69802 + If LEVEL is a numeric values greater than zero `ld' optimizes the
69803 + output. This might take significantly longer and therefore
69804 + probably should only be enabled for the final binary.
69805 +
69806 +`-q'
69807 +`--emit-relocs'
69808 + Leave relocation sections and contents in fully linked
69809 + exececutables. Post link analysis and optimization tools may need
69810 + this information in order to perform correct modifications of
69811 + executables. This results in larger executables.
69812 +
69813 + This option is currently only supported on ELF platforms.
69814 +
69815 +`--force-dynamic'
69816 + Force the output file to have dynamic sections. This option is
69817 + specific to VxWorks targets.
69818 +
69819 +`-r'
69820 +`--relocatable'
69821 + Generate relocatable output--i.e., generate an output file that
69822 + can in turn serve as input to `ld'. This is often called "partial
69823 + linking". As a side effect, in environments that support standard
69824 + Unix magic numbers, this option also sets the output file's magic
69825 + number to `OMAGIC'. If this option is not specified, an absolute
69826 + file is produced. When linking C++ programs, this option _will
69827 + not_ resolve references to constructors; to do that, use `-Ur'.
69828 +
69829 + When an input file does not have the same format as the output
69830 + file, partial linking is only supported if that input file does
69831 + not contain any relocations. Different output formats can have
69832 + further restrictions; for example some `a.out'-based formats do
69833 + not support partial linking with input files in other formats at
69834 + all.
69835 +
69836 + This option does the same thing as `-i'.
69837 +
69838 +`-R FILENAME'
69839 +`--just-symbols=FILENAME'
69840 + Read symbol names and their addresses from FILENAME, but do not
69841 + relocate it or include it in the output. This allows your output
69842 + file to refer symbolically to absolute locations of memory defined
69843 + in other programs. You may use this option more than once.
69844 +
69845 + For compatibility with other ELF linkers, if the `-R' option is
69846 + followed by a directory name, rather than a file name, it is
69847 + treated as the `-rpath' option.
69848 +
69849 +`-s'
69850 +`--strip-all'
69851 + Omit all symbol information from the output file.
69852 +
69853 +`-S'
69854 +`--strip-debug'
69855 + Omit debugger symbol information (but not all symbols) from the
69856 + output file.
69857 +
69858 +`-t'
69859 +`--trace'
69860 + Print the names of the input files as `ld' processes them.
69861 +
69862 +`-T SCRIPTFILE'
69863 +`--script=SCRIPTFILE'
69864 + Use SCRIPTFILE as the linker script. This script replaces `ld''s
69865 + default linker script (rather than adding to it), so COMMANDFILE
69866 + must specify everything necessary to describe the output file.
69867 + *Note Scripts::. If SCRIPTFILE does not exist in the current
69868 + directory, `ld' looks for it in the directories specified by any
69869 + preceding `-L' options. Multiple `-T' options accumulate.
69870 +
69871 +`-u SYMBOL'
69872 +`--undefined=SYMBOL'
69873 + Force SYMBOL to be entered in the output file as an undefined
69874 + symbol. Doing this may, for example, trigger linking of additional
69875 + modules from standard libraries. `-u' may be repeated with
69876 + different option arguments to enter additional undefined symbols.
69877 + This option is equivalent to the `EXTERN' linker script command.
69878 +
69879 +`-Ur'
69880 + For anything other than C++ programs, this option is equivalent to
69881 + `-r': it generates relocatable output--i.e., an output file that
69882 + can in turn serve as input to `ld'. When linking C++ programs,
69883 + `-Ur' _does_ resolve references to constructors, unlike `-r'. It
69884 + does not work to use `-Ur' on files that were themselves linked
69885 + with `-Ur'; once the constructor table has been built, it cannot
69886 + be added to. Use `-Ur' only for the last partial link, and `-r'
69887 + for the others.
69888 +
69889 +`--unique[=SECTION]'
69890 + Creates a separate output section for every input section matching
69891 + SECTION, or if the optional wildcard SECTION argument is missing,
69892 + for every orphan input section. An orphan section is one not
69893 + specifically mentioned in a linker script. You may use this option
69894 + multiple times on the command line; It prevents the normal
69895 + merging of input sections with the same name, overriding output
69896 + section assignments in a linker script.
69897 +
69898 +`-v'
69899 +`--version'
69900 +`-V'
69901 + Display the version number for `ld'. The `-V' option also lists
69902 + the supported emulations.
69903 +
69904 +`-x'
69905 +`--discard-all'
69906 + Delete all local symbols.
69907 +
69908 +`-X'
69909 +`--discard-locals'
69910 + Delete all temporary local symbols. For most targets, this is all
69911 + local symbols whose names begin with `L'.
69912 +
69913 +`-y SYMBOL'
69914 +`--trace-symbol=SYMBOL'
69915 + Print the name of each linked file in which SYMBOL appears. This
69916 + option may be given any number of times. On many systems it is
69917 + necessary to prepend an underscore.
69918 +
69919 + This option is useful when you have an undefined symbol in your
69920 + link but don't know where the reference is coming from.
69921 +
69922 +`-Y PATH'
69923 + Add PATH to the default library search path. This option exists
69924 + for Solaris compatibility.
69925 +
69926 +`-z KEYWORD'
69927 + The recognized keywords are:
69928 + `combreloc'
69929 + Combines multiple reloc sections and sorts them to make
69930 + dynamic symbol lookup caching possible.
69931 +
69932 + `defs'
69933 + Disallows undefined symbols in object files. Undefined
69934 + symbols in shared libraries are still allowed.
69935 +
69936 + `execstack'
69937 + Marks the object as requiring executable stack.
69938 +
69939 + `initfirst'
69940 + This option is only meaningful when building a shared object.
69941 + It marks the object so that its runtime initialization will
69942 + occur before the runtime initialization of any other objects
69943 + brought into the process at the same time. Similarly the
69944 + runtime finalization of the object will occur after the
69945 + runtime finalization of any other objects.
69946 +
69947 + `interpose'
69948 + Marks the object that its symbol table interposes before all
69949 + symbols but the primary executable.
69950 +
69951 + `loadfltr'
69952 + Marks the object that its filters be processed immediately at
69953 + runtime.
69954 +
69955 + `muldefs'
69956 + Allows multiple definitions.
69957 +
69958 + `nocombreloc'
69959 + Disables multiple reloc sections combining.
69960 +
69961 + `nocopyreloc'
69962 + Disables production of copy relocs.
69963 +
69964 + `nodefaultlib'
69965 + Marks the object that the search for dependencies of this
69966 + object will ignore any default library search paths.
69967 +
69968 + `nodelete'
69969 + Marks the object shouldn't be unloaded at runtime.
69970 +
69971 + `nodlopen'
69972 + Marks the object not available to `dlopen'.
69973 +
69974 + `nodump'
69975 + Marks the object can not be dumped by `dldump'.
69976 +
69977 + `noexecstack'
69978 + Marks the object as not requiring executable stack.
69979 +
69980 + `norelro'
69981 + Don't create an ELF `PT_GNU_RELRO' segment header in the
69982 + object.
69983 +
69984 + `now'
69985 + When generating an executable or shared library, mark it to
69986 + tell the dynamic linker to resolve all symbols when the
69987 + program is started, or when the shared library is linked to
69988 + using dlopen, instead of deferring function call resolution
69989 + to the point when the function is first called.
69990 +
69991 + `origin'
69992 + Marks the object may contain $ORIGIN.
69993 +
69994 + `relro'
69995 + Create an ELF `PT_GNU_RELRO' segment header in the object.
69996 +
69997 +
69998 + Other keywords are ignored for Solaris compatibility.
69999 +
70000 +`-( ARCHIVES -)'
70001 +`--start-group ARCHIVES --end-group'
70002 + The ARCHIVES should be a list of archive files. They may be
70003 + either explicit file names, or `-l' options.
70004 +
70005 + The specified archives are searched repeatedly until no new
70006 + undefined references are created. Normally, an archive is
70007 + searched only once in the order that it is specified on the
70008 + command line. If a symbol in that archive is needed to resolve an
70009 + undefined symbol referred to by an object in an archive that
70010 + appears later on the command line, the linker would not be able to
70011 + resolve that reference. By grouping the archives, they all be
70012 + searched repeatedly until all possible references are resolved.
70013 +
70014 + Using this option has a significant performance cost. It is best
70015 + to use it only when there are unavoidable circular references
70016 + between two or more archives.
70017 +
70018 +`--accept-unknown-input-arch'
70019 +`--no-accept-unknown-input-arch'
70020 + Tells the linker to accept input files whose architecture cannot be
70021 + recognised. The assumption is that the user knows what they are
70022 + doing and deliberately wants to link in these unknown input files.
70023 + This was the default behaviour of the linker, before release
70024 + 2.14. The default behaviour from release 2.14 onwards is to
70025 + reject such input files, and so the `--accept-unknown-input-arch'
70026 + option has been added to restore the old behaviour.
70027 +
70028 +`--as-needed'
70029 +`--no-as-needed'
70030 + This option affects ELF DT_NEEDED tags for dynamic libraries
70031 + mentioned on the command line after the `--as-needed' option.
70032 + Normally, the linker will add a DT_NEEDED tag for each dynamic
70033 + library mentioned on the command line, regardless of whether the
70034 + library is actually needed. `--as-needed' causes DT_NEEDED tags
70035 + to only be emitted for libraries that satisfy some symbol
70036 + reference from regular objects which is undefined at the point
70037 + that the library was linked. `--no-as-needed' restores the
70038 + default behaviour.
70039 +
70040 +`--add-needed'
70041 +`--no-add-needed'
70042 + This option affects the treatment of dynamic libraries from ELF
70043 + DT_NEEDED tags in dynamic libraries mentioned on the command line
70044 + after the `--no-add-needed' option. Normally, the linker will add
70045 + a DT_NEEDED tag for each dynamic library from DT_NEEDED tags.
70046 + `--no-add-needed' causes DT_NEEDED tags will never be emitted for
70047 + those libraries from DT_NEEDED tags. `--add-needed' restores the
70048 + default behaviour.
70049 +
70050 +`-assert KEYWORD'
70051 + This option is ignored for SunOS compatibility.
70052 +
70053 +`-Bdynamic'
70054 +`-dy'
70055 +`-call_shared'
70056 + Link against dynamic libraries. This is only meaningful on
70057 + platforms for which shared libraries are supported. This option
70058 + is normally the default on such platforms. The different variants
70059 + of this option are for compatibility with various systems. You
70060 + may use this option multiple times on the command line: it affects
70061 + library searching for `-l' options which follow it.
70062 +
70063 +`-Bgroup'
70064 + Set the `DF_1_GROUP' flag in the `DT_FLAGS_1' entry in the dynamic
70065 + section. This causes the runtime linker to handle lookups in this
70066 + object and its dependencies to be performed only inside the group.
70067 + `--unresolved-symbols=report-all' is implied. This option is only
70068 + meaningful on ELF platforms which support shared libraries.
70069 +
70070 +`-Bstatic'
70071 +`-dn'
70072 +`-non_shared'
70073 +`-static'
70074 + Do not link against shared libraries. This is only meaningful on
70075 + platforms for which shared libraries are supported. The different
70076 + variants of this option are for compatibility with various
70077 + systems. You may use this option multiple times on the command
70078 + line: it affects library searching for `-l' options which follow
70079 + it. This option also implies `--unresolved-symbols=report-all'.
70080 + This option can be used with `-shared'. Doing so means that a
70081 + shared library is being created but that all of the library's
70082 + external references must be resolved by pulling in entries from
70083 + static libraries.
70084 +
70085 +`-Bsymbolic'
70086 + When creating a shared library, bind references to global symbols
70087 + to the definition within the shared library, if any. Normally, it
70088 + is possible for a program linked against a shared library to
70089 + override the definition within the shared library. This option is
70090 + only meaningful on ELF platforms which support shared libraries.
70091 +
70092 +`--check-sections'
70093 +`--no-check-sections'
70094 + Asks the linker _not_ to check section addresses after they have
70095 + been assigned to see if there are any overlaps. Normally the
70096 + linker will perform this check, and if it finds any overlaps it
70097 + will produce suitable error messages. The linker does know about,
70098 + and does make allowances for sections in overlays. The default
70099 + behaviour can be restored by using the command line switch
70100 + `--check-sections'.
70101 +
70102 +`--cref'
70103 + Output a cross reference table. If a linker map file is being
70104 + generated, the cross reference table is printed to the map file.
70105 + Otherwise, it is printed on the standard output.
70106 +
70107 + The format of the table is intentionally simple, so that it may be
70108 + easily processed by a script if necessary. The symbols are
70109 + printed out, sorted by name. For each symbol, a list of file
70110 + names is given. If the symbol is defined, the first file listed
70111 + is the location of the definition. The remaining files contain
70112 + references to the symbol.
70113 +
70114 +`--no-define-common'
70115 + This option inhibits the assignment of addresses to common symbols.
70116 + The script command `INHIBIT_COMMON_ALLOCATION' has the same effect.
70117 + *Note Miscellaneous Commands::.
70118 +
70119 + The `--no-define-common' option allows decoupling the decision to
70120 + assign addresses to Common symbols from the choice of the output
70121 + file type; otherwise a non-Relocatable output type forces
70122 + assigning addresses to Common symbols. Using `--no-define-common'
70123 + allows Common symbols that are referenced from a shared library to
70124 + be assigned addresses only in the main program. This eliminates
70125 + the unused duplicate space in the shared library, and also
70126 + prevents any possible confusion over resolving to the wrong
70127 + duplicate when there are many dynamic modules with specialized
70128 + search paths for runtime symbol resolution.
70129 +
70130 +`--defsym SYMBOL=EXPRESSION'
70131 + Create a global symbol in the output file, containing the absolute
70132 + address given by EXPRESSION. You may use this option as many
70133 + times as necessary to define multiple symbols in the command line.
70134 + A limited form of arithmetic is supported for the EXPRESSION in
70135 + this context: you may give a hexadecimal constant or the name of
70136 + an existing symbol, or use `+' and `-' to add or subtract
70137 + hexadecimal constants or symbols. If you need more elaborate
70138 + expressions, consider using the linker command language from a
70139 + script (*note Assignment: Symbol Definitions: Assignments.).
70140 + _Note:_ there should be no white space between SYMBOL, the equals
70141 + sign ("<=>"), and EXPRESSION.
70142 +
70143 +`--demangle[=STYLE]'
70144 +`--no-demangle'
70145 + These options control whether to demangle symbol names in error
70146 + messages and other output. When the linker is told to demangle,
70147 + it tries to present symbol names in a readable fashion: it strips
70148 + leading underscores if they are used by the object file format,
70149 + and converts C++ mangled symbol names into user readable names.
70150 + Different compilers have different mangling styles. The optional
70151 + demangling style argument can be used to choose an appropriate
70152 + demangling style for your compiler. The linker will demangle by
70153 + default unless the environment variable `COLLECT_NO_DEMANGLE' is
70154 + set. These options may be used to override the default.
70155 +
70156 +`--dynamic-linker FILE'
70157 + Set the name of the dynamic linker. This is only meaningful when
70158 + generating dynamically linked ELF executables. The default dynamic
70159 + linker is normally correct; don't use this unless you know what
70160 + you are doing.
70161 +
70162 +`--fatal-warnings'
70163 + Treat all warnings as errors.
70164 +
70165 +`--force-exe-suffix'
70166 + Make sure that an output file has a .exe suffix.
70167 +
70168 + If a successfully built fully linked output file does not have a
70169 + `.exe' or `.dll' suffix, this option forces the linker to copy the
70170 + output file to one of the same name with a `.exe' suffix. This
70171 + option is useful when using unmodified Unix makefiles on a
70172 + Microsoft Windows host, since some versions of Windows won't run
70173 + an image unless it ends in a `.exe' suffix.
70174 +
70175 +`--no-gc-sections'
70176 +`--gc-sections'
70177 + Enable garbage collection of unused input sections. It is ignored
70178 + on targets that do not support this option. This option is not
70179 + compatible with `-r'. The default behaviour (of not performing
70180 + this garbage collection) can be restored by specifying
70181 + `--no-gc-sections' on the command line.
70182 +
70183 +`--help'
70184 + Print a summary of the command-line options on the standard output
70185 + and exit.
70186 +
70187 +`--target-help'
70188 + Print a summary of all target specific options on the standard
70189 + output and exit.
70190 +
70191 +`-Map MAPFILE'
70192 + Print a link map to the file MAPFILE. See the description of the
70193 + `-M' option, above.
70194 +
70195 +`--no-keep-memory'
70196 + `ld' normally optimizes for speed over memory usage by caching the
70197 + symbol tables of input files in memory. This option tells `ld' to
70198 + instead optimize for memory usage, by rereading the symbol tables
70199 + as necessary. This may be required if `ld' runs out of memory
70200 + space while linking a large executable.
70201 +
70202 +`--no-undefined'
70203 +`-z defs'
70204 + Report unresolved symbol references from regular object files.
70205 + This is done even if the linker is creating a non-symbolic shared
70206 + library. The switch `--[no-]allow-shlib-undefined' controls the
70207 + behaviour for reporting unresolved references found in shared
70208 + libraries being linked in.
70209 +
70210 +`--allow-multiple-definition'
70211 +`-z muldefs'
70212 + Normally when a symbol is defined multiple times, the linker will
70213 + report a fatal error. These options allow multiple definitions and
70214 + the first definition will be used.
70215 +
70216 +`--allow-shlib-undefined'
70217 +`--no-allow-shlib-undefined'
70218 + Allows (the default) or disallows undefined symbols in shared
70219 + libraries. This switch is similar to `--no-undefined' except that
70220 + it determines the behaviour when the undefined symbols are in a
70221 + shared library rather than a regular object file. It does not
70222 + affect how undefined symbols in regular object files are handled.
70223 +
70224 + The reason that `--allow-shlib-undefined' is the default is that
70225 + the shared library being specified at link time may not be the
70226 + same as the one that is available at load time, so the symbols
70227 + might actually be resolvable at load time. Plus there are some
70228 + systems, (eg BeOS) where undefined symbols in shared libraries is
70229 + normal. (The kernel patches them at load time to select which
70230 + function is most appropriate for the current architecture. This
70231 + is used for example to dynamically select an appropriate memset
70232 + function). Apparently it is also normal for HPPA shared libraries
70233 + to have undefined symbols.
70234 +
70235 +`--no-undefined-version'
70236 + Normally when a symbol has an undefined version, the linker will
70237 + ignore it. This option disallows symbols with undefined version
70238 + and a fatal error will be issued instead.
70239 +
70240 +`--default-symver'
70241 + Create and use a default symbol version (the soname) for
70242 + unversioned exported symbols.
70243 +
70244 +`--default-imported-symver'
70245 + Create and use a default symbol version (the soname) for
70246 + unversioned imported symbols.
70247 +
70248 +`--no-warn-mismatch'
70249 + Normally `ld' will give an error if you try to link together input
70250 + files that are mismatched for some reason, perhaps because they
70251 + have been compiled for different processors or for different
70252 + endiannesses. This option tells `ld' that it should silently
70253 + permit such possible errors. This option should only be used with
70254 + care, in cases when you have taken some special action that
70255 + ensures that the linker errors are inappropriate.
70256 +
70257 +`--no-whole-archive'
70258 + Turn off the effect of the `--whole-archive' option for subsequent
70259 + archive files.
70260 +
70261 +`--noinhibit-exec'
70262 + Retain the executable output file whenever it is still usable.
70263 + Normally, the linker will not produce an output file if it
70264 + encounters errors during the link process; it exits without
70265 + writing an output file when it issues any error whatsoever.
70266 +
70267 +`-nostdlib'
70268 + Only search library directories explicitly specified on the
70269 + command line. Library directories specified in linker scripts
70270 + (including linker scripts specified on the command line) are
70271 + ignored.
70272 +
70273 +`--oformat OUTPUT-FORMAT'
70274 + `ld' may be configured to support more than one kind of object
70275 + file. If your `ld' is configured this way, you can use the
70276 + `--oformat' option to specify the binary format for the output
70277 + object file. Even when `ld' is configured to support alternative
70278 + object formats, you don't usually need to specify this, as `ld'
70279 + should be configured to produce as a default output format the most
70280 + usual format on each machine. OUTPUT-FORMAT is a text string, the
70281 + name of a particular format supported by the BFD libraries. (You
70282 + can list the available binary formats with `objdump -i'.) The
70283 + script command `OUTPUT_FORMAT' can also specify the output format,
70284 + but this option overrides it. *Note BFD::.
70285 +
70286 +`-pie'
70287 +`--pic-executable'
70288 + Create a position independent executable. This is currently only
70289 + supported on ELF platforms. Position independent executables are
70290 + similar to shared libraries in that they are relocated by the
70291 + dynamic linker to the virtual address the OS chooses for them
70292 + (which can vary between invocations). Like normal dynamically
70293 + linked executables they can be executed and symbols defined in the
70294 + executable cannot be overridden by shared libraries.
70295 +
70296 +`-qmagic'
70297 + This option is ignored for Linux compatibility.
70298 +
70299 +`-Qy'
70300 + This option is ignored for SVR4 compatibility.
70301 +
70302 +`--relax'
70303 + An option with machine dependent effects. This option is only
70304 + supported on a few targets. *Note `ld' and the H8/300: H8/300.
70305 + *Note `ld' and the Intel 960 family: i960. *Note `ld' and Xtensa
70306 + Processors: Xtensa. *Note `ld' and PowerPC 32-bit ELF Support:
70307 + PowerPC ELF32.
70308 +
70309 + On some platforms, the `--relax' option performs global
70310 + optimizations that become possible when the linker resolves
70311 + addressing in the program, such as relaxing address modes and
70312 + synthesizing new instructions in the output object file.
70313 +
70314 + On some platforms these link time global optimizations may make
70315 + symbolic debugging of the resulting executable impossible. This
70316 + is known to be the case for the Matsushita MN10200 and MN10300
70317 + family of processors.
70318 +
70319 + On platforms where this is not supported, `--relax' is accepted,
70320 + but ignored.
70321 +
70322 +`--retain-symbols-file FILENAME'
70323 + Retain _only_ the symbols listed in the file FILENAME, discarding
70324 + all others. FILENAME is simply a flat file, with one symbol name
70325 + per line. This option is especially useful in environments (such
70326 + as VxWorks) where a large global symbol table is accumulated
70327 + gradually, to conserve run-time memory.
70328 +
70329 + `--retain-symbols-file' does _not_ discard undefined symbols, or
70330 + symbols needed for relocations.
70331 +
70332 + You may only specify `--retain-symbols-file' once in the command
70333 + line. It overrides `-s' and `-S'.
70334 +
70335 +`-rpath DIR'
70336 + Add a directory to the runtime library search path. This is used
70337 + when linking an ELF executable with shared objects. All `-rpath'
70338 + arguments are concatenated and passed to the runtime linker, which
70339 + uses them to locate shared objects at runtime. The `-rpath'
70340 + option is also used when locating shared objects which are needed
70341 + by shared objects explicitly included in the link; see the
70342 + description of the `-rpath-link' option. If `-rpath' is not used
70343 + when linking an ELF executable, the contents of the environment
70344 + variable `LD_RUN_PATH' will be used if it is defined.
70345 +
70346 + The `-rpath' option may also be used on SunOS. By default, on
70347 + SunOS, the linker will form a runtime search patch out of all the
70348 + `-L' options it is given. If a `-rpath' option is used, the
70349 + runtime search path will be formed exclusively using the `-rpath'
70350 + options, ignoring the `-L' options. This can be useful when using
70351 + gcc, which adds many `-L' options which may be on NFS mounted
70352 + filesystems.
70353 +
70354 + For compatibility with other ELF linkers, if the `-R' option is
70355 + followed by a directory name, rather than a file name, it is
70356 + treated as the `-rpath' option.
70357 +
70358 +`-rpath-link DIR'
70359 + When using ELF or SunOS, one shared library may require another.
70360 + This happens when an `ld -shared' link includes a shared library
70361 + as one of the input files.
70362 +
70363 + When the linker encounters such a dependency when doing a
70364 + non-shared, non-relocatable link, it will automatically try to
70365 + locate the required shared library and include it in the link, if
70366 + it is not included explicitly. In such a case, the `-rpath-link'
70367 + option specifies the first set of directories to search. The
70368 + `-rpath-link' option may specify a sequence of directory names
70369 + either by specifying a list of names separated by colons, or by
70370 + appearing multiple times.
70371 +
70372 + This option should be used with caution as it overrides the search
70373 + path that may have been hard compiled into a shared library. In
70374 + such a case it is possible to use unintentionally a different
70375 + search path than the runtime linker would do.
70376 +
70377 + The linker uses the following search paths to locate required
70378 + shared libraries.
70379 + 1. Any directories specified by `-rpath-link' options.
70380 +
70381 + 2. Any directories specified by `-rpath' options. The difference
70382 + between `-rpath' and `-rpath-link' is that directories
70383 + specified by `-rpath' options are included in the executable
70384 + and used at runtime, whereas the `-rpath-link' option is only
70385 + effective at link time. It is for the native linker only.
70386 +
70387 + 3. On an ELF system, if the `-rpath' and `rpath-link' options
70388 + were not used, search the contents of the environment variable
70389 + `LD_RUN_PATH'. It is for the native linker only.
70390 +
70391 + 4. On SunOS, if the `-rpath' option was not used, search any
70392 + directories specified using `-L' options.
70393 +
70394 + 5. For a native linker, the contents of the environment variable
70395 + `LD_LIBRARY_PATH'.
70396 +
70397 + 6. For a native ELF linker, the directories in `DT_RUNPATH' or
70398 + `DT_RPATH' of a shared library are searched for shared
70399 + libraries needed by it. The `DT_RPATH' entries are ignored if
70400 + `DT_RUNPATH' entries exist.
70401 +
70402 + 7. The default directories, normally `/lib' and `/usr/lib'.
70403 +
70404 + 8. For a native linker on an ELF system, if the file
70405 + `/etc/ld.so.conf' exists, the list of directories found in
70406 + that file.
70407 +
70408 + If the required shared library is not found, the linker will issue
70409 + a warning and continue with the link.
70410 +
70411 +`-shared'
70412 +`-Bshareable'
70413 + Create a shared library. This is currently only supported on ELF,
70414 + XCOFF and SunOS platforms. On SunOS, the linker will
70415 + automatically create a shared library if the `-e' option is not
70416 + used and there are undefined symbols in the link.
70417 +
70418 +`--sort-common'
70419 + This option tells `ld' to sort the common symbols by size when it
70420 + places them in the appropriate output sections. First come all
70421 + the one byte symbols, then all the two byte, then all the four
70422 + byte, and then everything else. This is to prevent gaps between
70423 + symbols due to alignment constraints.
70424 +
70425 +`--sort-section name'
70426 + This option will apply `SORT_BY_NAME' to all wildcard section
70427 + patterns in the linker script.
70428 +
70429 +`--sort-section alignment'
70430 + This option will apply `SORT_BY_ALIGNMENT' to all wildcard section
70431 + patterns in the linker script.
70432 +
70433 +`--split-by-file [SIZE]'
70434 + Similar to `--split-by-reloc' but creates a new output section for
70435 + each input file when SIZE is reached. SIZE defaults to a size of
70436 + 1 if not given.
70437 +
70438 +`--split-by-reloc [COUNT]'
70439 + Tries to creates extra sections in the output file so that no
70440 + single output section in the file contains more than COUNT
70441 + relocations. This is useful when generating huge relocatable
70442 + files for downloading into certain real time kernels with the COFF
70443 + object file format; since COFF cannot represent more than 65535
70444 + relocations in a single section. Note that this will fail to work
70445 + with object file formats which do not support arbitrary sections.
70446 + The linker will not split up individual input sections for
70447 + redistribution, so if a single input section contains more than
70448 + COUNT relocations one output section will contain that many
70449 + relocations. COUNT defaults to a value of 32768.
70450 +
70451 +`--stats'
70452 + Compute and display statistics about the operation of the linker,
70453 + such as execution time and memory usage.
70454 +
70455 +`--sysroot=DIRECTORY'
70456 + Use DIRECTORY as the location of the sysroot, overriding the
70457 + configure-time default. This option is only supported by linkers
70458 + that were configured using `--with-sysroot'.
70459 +
70460 +`--traditional-format'
70461 + For some targets, the output of `ld' is different in some ways from
70462 + the output of some existing linker. This switch requests `ld' to
70463 + use the traditional format instead.
70464 +
70465 + For example, on SunOS, `ld' combines duplicate entries in the
70466 + symbol string table. This can reduce the size of an output file
70467 + with full debugging information by over 30 percent.
70468 + Unfortunately, the SunOS `dbx' program can not read the resulting
70469 + program (`gdb' has no trouble). The `--traditional-format' switch
70470 + tells `ld' to not combine duplicate entries.
70471 +
70472 +`--section-start SECTIONNAME=ORG'
70473 + Locate a section in the output file at the absolute address given
70474 + by ORG. You may use this option as many times as necessary to
70475 + locate multiple sections in the command line. ORG must be a
70476 + single hexadecimal integer; for compatibility with other linkers,
70477 + you may omit the leading `0x' usually associated with hexadecimal
70478 + values. _Note:_ there should be no white space between
70479 + SECTIONNAME, the equals sign ("<=>"), and ORG.
70480 +
70481 +`-Tbss ORG'
70482 +`-Tdata ORG'
70483 +`-Ttext ORG'
70484 + Same as -section-start, with `.bss', `.data' or `.text' as the
70485 + SECTIONNAME.
70486 +
70487 +`--unresolved-symbols=METHOD'
70488 + Determine how to handle unresolved symbols. There are four
70489 + possible values for `method':
70490 +
70491 + `ignore-all'
70492 + Do not report any unresolved symbols.
70493 +
70494 + `report-all'
70495 + Report all unresolved symbols. This is the default.
70496 +
70497 + `ignore-in-object-files'
70498 + Report unresolved symbols that are contained in shared
70499 + libraries, but ignore them if they come from regular object
70500 + files.
70501 +
70502 + `ignore-in-shared-libs'
70503 + Report unresolved symbols that come from regular object
70504 + files, but ignore them if they come from shared libraries.
70505 + This can be useful when creating a dynamic binary and it is
70506 + known that all the shared libraries that it should be
70507 + referencing are included on the linker's command line.
70508 +
70509 + The behaviour for shared libraries on their own can also be
70510 + controlled by the `--[no-]allow-shlib-undefined' option.
70511 +
70512 + Normally the linker will generate an error message for each
70513 + reported unresolved symbol but the option
70514 + `--warn-unresolved-symbols' can change this to a warning.
70515 +
70516 +`--dll-verbose'
70517 +`--verbose'
70518 + Display the version number for `ld' and list the linker emulations
70519 + supported. Display which input files can and cannot be opened.
70520 + Display the linker script being used by the linker.
70521 +
70522 +`--version-script=VERSION-SCRIPTFILE'
70523 + Specify the name of a version script to the linker. This is
70524 + typically used when creating shared libraries to specify
70525 + additional information about the version hierarchy for the library
70526 + being created. This option is only meaningful on ELF platforms
70527 + which support shared libraries. *Note VERSION::.
70528 +
70529 +`--warn-common'
70530 + Warn when a common symbol is combined with another common symbol
70531 + or with a symbol definition. Unix linkers allow this somewhat
70532 + sloppy practise, but linkers on some other operating systems do
70533 + not. This option allows you to find potential problems from
70534 + combining global symbols. Unfortunately, some C libraries use
70535 + this practise, so you may get some warnings about symbols in the
70536 + libraries as well as in your programs.
70537 +
70538 + There are three kinds of global symbols, illustrated here by C
70539 + examples:
70540 +
70541 + `int i = 1;'
70542 + A definition, which goes in the initialized data section of
70543 + the output file.
70544 +
70545 + `extern int i;'
70546 + An undefined reference, which does not allocate space. There
70547 + must be either a definition or a common symbol for the
70548 + variable somewhere.
70549 +
70550 + `int i;'
70551 + A common symbol. If there are only (one or more) common
70552 + symbols for a variable, it goes in the uninitialized data
70553 + area of the output file. The linker merges multiple common
70554 + symbols for the same variable into a single symbol. If they
70555 + are of different sizes, it picks the largest size. The
70556 + linker turns a common symbol into a declaration, if there is
70557 + a definition of the same variable.
70558 +
70559 + The `--warn-common' option can produce five kinds of warnings.
70560 + Each warning consists of a pair of lines: the first describes the
70561 + symbol just encountered, and the second describes the previous
70562 + symbol encountered with the same name. One or both of the two
70563 + symbols will be a common symbol.
70564 +
70565 + 1. Turning a common symbol into a reference, because there is
70566 + already a definition for the symbol.
70567 + FILE(SECTION): warning: common of `SYMBOL'
70568 + overridden by definition
70569 + FILE(SECTION): warning: defined here
70570 +
70571 + 2. Turning a common symbol into a reference, because a later
70572 + definition for the symbol is encountered. This is the same
70573 + as the previous case, except that the symbols are encountered
70574 + in a different order.
70575 + FILE(SECTION): warning: definition of `SYMBOL'
70576 + overriding common
70577 + FILE(SECTION): warning: common is here
70578 +
70579 + 3. Merging a common symbol with a previous same-sized common
70580 + symbol.
70581 + FILE(SECTION): warning: multiple common
70582 + of `SYMBOL'
70583 + FILE(SECTION): warning: previous common is here
70584 +
70585 + 4. Merging a common symbol with a previous larger common symbol.
70586 + FILE(SECTION): warning: common of `SYMBOL'
70587 + overridden by larger common
70588 + FILE(SECTION): warning: larger common is here
70589 +
70590 + 5. Merging a common symbol with a previous smaller common
70591 + symbol. This is the same as the previous case, except that
70592 + the symbols are encountered in a different order.
70593 + FILE(SECTION): warning: common of `SYMBOL'
70594 + overriding smaller common
70595 + FILE(SECTION): warning: smaller common is here
70596 +
70597 +`--warn-constructors'
70598 + Warn if any global constructors are used. This is only useful for
70599 + a few object file formats. For formats like COFF or ELF, the
70600 + linker can not detect the use of global constructors.
70601 +
70602 +`--warn-multiple-gp'
70603 + Warn if multiple global pointer values are required in the output
70604 + file. This is only meaningful for certain processors, such as the
70605 + Alpha. Specifically, some processors put large-valued constants
70606 + in a special section. A special register (the global pointer)
70607 + points into the middle of this section, so that constants can be
70608 + loaded efficiently via a base-register relative addressing mode.
70609 + Since the offset in base-register relative mode is fixed and
70610 + relatively small (e.g., 16 bits), this limits the maximum size of
70611 + the constant pool. Thus, in large programs, it is often necessary
70612 + to use multiple global pointer values in order to be able to
70613 + address all possible constants. This option causes a warning to
70614 + be issued whenever this case occurs.
70615 +
70616 +`--warn-once'
70617 + Only warn once for each undefined symbol, rather than once per
70618 + module which refers to it.
70619 +
70620 +`--warn-section-align'
70621 + Warn if the address of an output section is changed because of
70622 + alignment. Typically, the alignment will be set by an input
70623 + section. The address will only be changed if it not explicitly
70624 + specified; that is, if the `SECTIONS' command does not specify a
70625 + start address for the section (*note SECTIONS::).
70626 +
70627 +`--warn-shared-textrel'
70628 + Warn if the linker adds a DT_TEXTREL to a shared object.
70629 +
70630 +`--warn-unresolved-symbols'
70631 + If the linker is going to report an unresolved symbol (see the
70632 + option `--unresolved-symbols') it will normally generate an error.
70633 + This option makes it generate a warning instead.
70634 +
70635 +`--error-unresolved-symbols'
70636 + This restores the linker's default behaviour of generating errors
70637 + when it is reporting unresolved symbols.
70638 +
70639 +`--whole-archive'
70640 + For each archive mentioned on the command line after the
70641 + `--whole-archive' option, include every object file in the archive
70642 + in the link, rather than searching the archive for the required
70643 + object files. This is normally used to turn an archive file into
70644 + a shared library, forcing every object to be included in the
70645 + resulting shared library. This option may be used more than once.
70646 +
70647 + Two notes when using this option from gcc: First, gcc doesn't know
70648 + about this option, so you have to use `-Wl,-whole-archive'.
70649 + Second, don't forget to use `-Wl,-no-whole-archive' after your
70650 + list of archives, because gcc will add its own list of archives to
70651 + your link and you may not want this flag to affect those as well.
70652 +
70653 +`--wrap SYMBOL'
70654 + Use a wrapper function for SYMBOL. Any undefined reference to
70655 + SYMBOL will be resolved to `__wrap_SYMBOL'. Any undefined
70656 + reference to `__real_SYMBOL' will be resolved to SYMBOL.
70657 +
70658 + This can be used to provide a wrapper for a system function. The
70659 + wrapper function should be called `__wrap_SYMBOL'. If it wishes
70660 + to call the system function, it should call `__real_SYMBOL'.
70661 +
70662 + Here is a trivial example:
70663 +
70664 + void *
70665 + __wrap_malloc (size_t c)
70666 + {
70667 + printf ("malloc called with %zu\n", c);
70668 + return __real_malloc (c);
70669 + }
70670 +
70671 + If you link other code with this file using `--wrap malloc', then
70672 + all calls to `malloc' will call the function `__wrap_malloc'
70673 + instead. The call to `__real_malloc' in `__wrap_malloc' will call
70674 + the real `malloc' function.
70675 +
70676 + You may wish to provide a `__real_malloc' function as well, so that
70677 + links without the `--wrap' option will succeed. If you do this,
70678 + you should not put the definition of `__real_malloc' in the same
70679 + file as `__wrap_malloc'; if you do, the assembler may resolve the
70680 + call before the linker has a chance to wrap it to `malloc'.
70681 +
70682 +`--eh-frame-hdr'
70683 + Request creation of `.eh_frame_hdr' section and ELF
70684 + `PT_GNU_EH_FRAME' segment header.
70685 +
70686 +`--enable-new-dtags'
70687 +`--disable-new-dtags'
70688 + This linker can create the new dynamic tags in ELF. But the older
70689 + ELF systems may not understand them. If you specify
70690 + `--enable-new-dtags', the dynamic tags will be created as needed.
70691 + If you specify `--disable-new-dtags', no new dynamic tags will be
70692 + created. By default, the new dynamic tags are not created. Note
70693 + that those options are only available for ELF systems.
70694 +
70695 +`--hash-size=NUMBER'
70696 + Set the default size of the linker's hash tables to a prime number
70697 + close to NUMBER. Increasing this value can reduce the length of
70698 + time it takes the linker to perform its tasks, at the expense of
70699 + increasing the linker's memory requirements. Similarly reducing
70700 + this value can reduce the memory requirements at the expense of
70701 + speed.
70702 +
70703 +`--reduce-memory-overheads'
70704 + This option reduces memory requirements at ld runtime, at the
70705 + expense of linking speed. This was introduced to select the old
70706 + O(n^2) algorithm for link map file generation, rather than the new
70707 + O(n) algorithm which uses about 40% more memory for symbol storage.
70708 +
70709 + Another effect of the switch is to set the default hash table size
70710 + to 1021, which again saves memory at the cost of lengthening the
70711 + linker's run time. This is not done however if the `--hash-size'
70712 + switch has been used.
70713 +
70714 + The `--reduce-memory-overheads' switch may be also be used to
70715 + enable other tradeoffs in future versions of the linker.
70716 +
70717 +
70718 +2.1.1 Options Specific to i386 PE Targets
70719 +-----------------------------------------
70720 +
70721 +The i386 PE linker supports the `-shared' option, which causes the
70722 +output to be a dynamically linked library (DLL) instead of a normal
70723 +executable. You should name the output `*.dll' when you use this
70724 +option. In addition, the linker fully supports the standard `*.def'
70725 +files, which may be specified on the linker command line like an object
70726 +file (in fact, it should precede archives it exports symbols from, to
70727 +ensure that they get linked in, just like a normal object file).
70728 +
70729 + In addition to the options common to all targets, the i386 PE linker
70730 +support additional command line options that are specific to the i386
70731 +PE target. Options that take values may be separated from their values
70732 +by either a space or an equals sign.
70733 +
70734 +`--add-stdcall-alias'
70735 + If given, symbols with a stdcall suffix (@NN) will be exported
70736 + as-is and also with the suffix stripped. [This option is specific
70737 + to the i386 PE targeted port of the linker]
70738 +
70739 +`--base-file FILE'
70740 + Use FILE as the name of a file in which to save the base addresses
70741 + of all the relocations needed for generating DLLs with `dlltool'.
70742 + [This is an i386 PE specific option]
70743 +
70744 +`--dll'
70745 + Create a DLL instead of a regular executable. You may also use
70746 + `-shared' or specify a `LIBRARY' in a given `.def' file. [This
70747 + option is specific to the i386 PE targeted port of the linker]
70748 +
70749 +`--enable-stdcall-fixup'
70750 +`--disable-stdcall-fixup'
70751 + If the link finds a symbol that it cannot resolve, it will attempt
70752 + to do "fuzzy linking" by looking for another defined symbol that
70753 + differs only in the format of the symbol name (cdecl vs stdcall)
70754 + and will resolve that symbol by linking to the match. For
70755 + example, the undefined symbol `_foo' might be linked to the
70756 + function `_foo@12', or the undefined symbol `_bar@16' might be
70757 + linked to the function `_bar'. When the linker does this, it
70758 + prints a warning, since it normally should have failed to link,
70759 + but sometimes import libraries generated from third-party dlls may
70760 + need this feature to be usable. If you specify
70761 + `--enable-stdcall-fixup', this feature is fully enabled and
70762 + warnings are not printed. If you specify
70763 + `--disable-stdcall-fixup', this feature is disabled and such
70764 + mismatches are considered to be errors. [This option is specific
70765 + to the i386 PE targeted port of the linker]
70766 +
70767 +`--export-all-symbols'
70768 + If given, all global symbols in the objects used to build a DLL
70769 + will be exported by the DLL. Note that this is the default if
70770 + there otherwise wouldn't be any exported symbols. When symbols are
70771 + explicitly exported via DEF files or implicitly exported via
70772 + function attributes, the default is to not export anything else
70773 + unless this option is given. Note that the symbols `DllMain@12',
70774 + `DllEntryPoint@0', `DllMainCRTStartup@12', and `impure_ptr' will
70775 + not be automatically exported. Also, symbols imported from other
70776 + DLLs will not be re-exported, nor will symbols specifying the
70777 + DLL's internal layout such as those beginning with `_head_' or
70778 + ending with `_iname'. In addition, no symbols from `libgcc',
70779 + `libstd++', `libmingw32', or `crtX.o' will be exported. Symbols
70780 + whose names begin with `__rtti_' or `__builtin_' will not be
70781 + exported, to help with C++ DLLs. Finally, there is an extensive
70782 + list of cygwin-private symbols that are not exported (obviously,
70783 + this applies on when building DLLs for cygwin targets). These
70784 + cygwin-excludes are: `_cygwin_dll_entry@12',
70785 + `_cygwin_crt0_common@8', `_cygwin_noncygwin_dll_entry@12',
70786 + `_fmode', `_impure_ptr', `cygwin_attach_dll', `cygwin_premain0',
70787 + `cygwin_premain1', `cygwin_premain2', `cygwin_premain3', and
70788 + `environ'. [This option is specific to the i386 PE targeted port
70789 + of the linker]
70790 +
70791 +`--exclude-symbols SYMBOL,SYMBOL,...'
70792 + Specifies a list of symbols which should not be automatically
70793 + exported. The symbol names may be delimited by commas or colons.
70794 + [This option is specific to the i386 PE targeted port of the
70795 + linker]
70796 +
70797 +`--file-alignment'
70798 + Specify the file alignment. Sections in the file will always
70799 + begin at file offsets which are multiples of this number. This
70800 + defaults to 512. [This option is specific to the i386 PE targeted
70801 + port of the linker]
70802 +
70803 +`--heap RESERVE'
70804 +`--heap RESERVE,COMMIT'
70805 + Specify the amount of memory to reserve (and optionally commit) to
70806 + be used as heap for this program. The default is 1Mb reserved, 4K
70807 + committed. [This option is specific to the i386 PE targeted port
70808 + of the linker]
70809 +
70810 +`--image-base VALUE'
70811 + Use VALUE as the base address of your program or dll. This is the
70812 + lowest memory location that will be used when your program or dll
70813 + is loaded. To reduce the need to relocate and improve performance
70814 + of your dlls, each should have a unique base address and not
70815 + overlap any other dlls. The default is 0x400000 for executables,
70816 + and 0x10000000 for dlls. [This option is specific to the i386 PE
70817 + targeted port of the linker]
70818 +
70819 +`--kill-at'
70820 + If given, the stdcall suffixes (@NN) will be stripped from symbols
70821 + before they are exported. [This option is specific to the i386 PE
70822 + targeted port of the linker]
70823 +
70824 +`--large-address-aware'
70825 + If given, the appropriate bit in the "Charateristics" field of the
70826 + COFF header is set to indicate that this executable supports
70827 + virtual addresses greater than 2 gigabytes. This should be used
70828 + in conjuction with the /3GB or /USERVA=VALUE megabytes switch in
70829 + the "[operating systems]" section of the BOOT.INI. Otherwise,
70830 + this bit has no effect. [This option is specific to PE targeted
70831 + ports of the linker]
70832 +
70833 +`--major-image-version VALUE'
70834 + Sets the major number of the "image version". Defaults to 1.
70835 + [This option is specific to the i386 PE targeted port of the
70836 + linker]
70837 +
70838 +`--major-os-version VALUE'
70839 + Sets the major number of the "os version". Defaults to 4. [This
70840 + option is specific to the i386 PE targeted port of the linker]
70841 +
70842 +`--major-subsystem-version VALUE'
70843 + Sets the major number of the "subsystem version". Defaults to 4.
70844 + [This option is specific to the i386 PE targeted port of the
70845 + linker]
70846 +
70847 +`--minor-image-version VALUE'
70848 + Sets the minor number of the "image version". Defaults to 0.
70849 + [This option is specific to the i386 PE targeted port of the
70850 + linker]
70851 +
70852 +`--minor-os-version VALUE'
70853 + Sets the minor number of the "os version". Defaults to 0. [This
70854 + option is specific to the i386 PE targeted port of the linker]
70855 +
70856 +`--minor-subsystem-version VALUE'
70857 + Sets the minor number of the "subsystem version". Defaults to 0.
70858 + [This option is specific to the i386 PE targeted port of the
70859 + linker]
70860 +
70861 +`--output-def FILE'
70862 + The linker will create the file FILE which will contain a DEF file
70863 + corresponding to the DLL the linker is generating. This DEF file
70864 + (which should be called `*.def') may be used to create an import
70865 + library with `dlltool' or may be used as a reference to
70866 + automatically or implicitly exported symbols. [This option is
70867 + specific to the i386 PE targeted port of the linker]
70868 +
70869 +`--out-implib FILE'
70870 + The linker will create the file FILE which will contain an import
70871 + lib corresponding to the DLL the linker is generating. This import
70872 + lib (which should be called `*.dll.a' or `*.a' may be used to link
70873 + clients against the generated DLL; this behaviour makes it
70874 + possible to skip a separate `dlltool' import library creation step.
70875 + [This option is specific to the i386 PE targeted port of the
70876 + linker]
70877 +
70878 +`--enable-auto-image-base'
70879 + Automatically choose the image base for DLLs, unless one is
70880 + specified using the `--image-base' argument. By using a hash
70881 + generated from the dllname to create unique image bases for each
70882 + DLL, in-memory collisions and relocations which can delay program
70883 + execution are avoided. [This option is specific to the i386 PE
70884 + targeted port of the linker]
70885 +
70886 +`--disable-auto-image-base'
70887 + Do not automatically generate a unique image base. If there is no
70888 + user-specified image base (`--image-base') then use the platform
70889 + default. [This option is specific to the i386 PE targeted port of
70890 + the linker]
70891 +
70892 +`--dll-search-prefix STRING'
70893 + When linking dynamically to a dll without an import library,
70894 + search for `<string><basename>.dll' in preference to
70895 + `lib<basename>.dll'. This behaviour allows easy distinction
70896 + between DLLs built for the various "subplatforms": native, cygwin,
70897 + uwin, pw, etc. For instance, cygwin DLLs typically use
70898 + `--dll-search-prefix=cyg'. [This option is specific to the i386
70899 + PE targeted port of the linker]
70900 +
70901 +`--enable-auto-import'
70902 + Do sophisticated linking of `_symbol' to `__imp__symbol' for DATA
70903 + imports from DLLs, and create the necessary thunking symbols when
70904 + building the import libraries with those DATA exports. Note: Use
70905 + of the 'auto-import' extension will cause the text section of the
70906 + image file to be made writable. This does not conform to the
70907 + PE-COFF format specification published by Microsoft.
70908 +
70909 + Using 'auto-import' generally will 'just work' - but sometimes you
70910 + may see this message:
70911 +
70912 + "variable '<var>' can't be auto-imported. Please read the
70913 + documentation for ld's `--enable-auto-import' for details."
70914 +
70915 + This message occurs when some (sub)expression accesses an address
70916 + ultimately given by the sum of two constants (Win32 import tables
70917 + only allow one). Instances where this may occur include accesses
70918 + to member fields of struct variables imported from a DLL, as well
70919 + as using a constant index into an array variable imported from a
70920 + DLL. Any multiword variable (arrays, structs, long long, etc) may
70921 + trigger this error condition. However, regardless of the exact
70922 + data type of the offending exported variable, ld will always
70923 + detect it, issue the warning, and exit.
70924 +
70925 + There are several ways to address this difficulty, regardless of
70926 + the data type of the exported variable:
70927 +
70928 + One way is to use -enable-runtime-pseudo-reloc switch. This leaves
70929 + the task of adjusting references in your client code for runtime
70930 + environment, so this method works only when runtime environment
70931 + supports this feature.
70932 +
70933 + A second solution is to force one of the 'constants' to be a
70934 + variable - that is, unknown and un-optimizable at compile time.
70935 + For arrays, there are two possibilities: a) make the indexee (the
70936 + array's address) a variable, or b) make the 'constant' index a
70937 + variable. Thus:
70938 +
70939 + extern type extern_array[];
70940 + extern_array[1] -->
70941 + { volatile type *t=extern_array; t[1] }
70942 +
70943 + or
70944 +
70945 + extern type extern_array[];
70946 + extern_array[1] -->
70947 + { volatile int t=1; extern_array[t] }
70948 +
70949 + For structs (and most other multiword data types) the only option
70950 + is to make the struct itself (or the long long, or the ...)
70951 + variable:
70952 +
70953 + extern struct s extern_struct;
70954 + extern_struct.field -->
70955 + { volatile struct s *t=&extern_struct; t->field }
70956 +
70957 + or
70958 +
70959 + extern long long extern_ll;
70960 + extern_ll -->
70961 + { volatile long long * local_ll=&extern_ll; *local_ll }
70962 +
70963 + A third method of dealing with this difficulty is to abandon
70964 + 'auto-import' for the offending symbol and mark it with
70965 + `__declspec(dllimport)'. However, in practise that requires using
70966 + compile-time #defines to indicate whether you are building a DLL,
70967 + building client code that will link to the DLL, or merely
70968 + building/linking to a static library. In making the choice
70969 + between the various methods of resolving the 'direct address with
70970 + constant offset' problem, you should consider typical real-world
70971 + usage:
70972 +
70973 + Original:
70974 + --foo.h
70975 + extern int arr[];
70976 + --foo.c
70977 + #include "foo.h"
70978 + void main(int argc, char **argv){
70979 + printf("%d\n",arr[1]);
70980 + }
70981 +
70982 + Solution 1:
70983 + --foo.h
70984 + extern int arr[];
70985 + --foo.c
70986 + #include "foo.h"
70987 + void main(int argc, char **argv){
70988 + /* This workaround is for win32 and cygwin; do not "optimize" */
70989 + volatile int *parr = arr;
70990 + printf("%d\n",parr[1]);
70991 + }
70992 +
70993 + Solution 2:
70994 + --foo.h
70995 + /* Note: auto-export is assumed (no __declspec(dllexport)) */
70996 + #if (defined(_WIN32) || defined(__CYGWIN__)) && \
70997 + !(defined(FOO_BUILD_DLL) || defined(FOO_STATIC))
70998 + #define FOO_IMPORT __declspec(dllimport)
70999 + #else
71000 + #define FOO_IMPORT
71001 + #endif
71002 + extern FOO_IMPORT int arr[];
71003 + --foo.c
71004 + #include "foo.h"
71005 + void main(int argc, char **argv){
71006 + printf("%d\n",arr[1]);
71007 + }
71008 +
71009 + A fourth way to avoid this problem is to re-code your library to
71010 + use a functional interface rather than a data interface for the
71011 + offending variables (e.g. set_foo() and get_foo() accessor
71012 + functions). [This option is specific to the i386 PE targeted port
71013 + of the linker]
71014 +
71015 +`--disable-auto-import'
71016 + Do not attempt to do sophisticated linking of `_symbol' to
71017 + `__imp__symbol' for DATA imports from DLLs. [This option is
71018 + specific to the i386 PE targeted port of the linker]
71019 +
71020 +`--enable-runtime-pseudo-reloc'
71021 + If your code contains expressions described in -enable-auto-import
71022 + section, that is, DATA imports from DLL with non-zero offset, this
71023 + switch will create a vector of 'runtime pseudo relocations' which
71024 + can be used by runtime environment to adjust references to such
71025 + data in your client code. [This option is specific to the i386 PE
71026 + targeted port of the linker]
71027 +
71028 +`--disable-runtime-pseudo-reloc'
71029 + Do not create pseudo relocations for non-zero offset DATA imports
71030 + from DLLs. This is the default. [This option is specific to the
71031 + i386 PE targeted port of the linker]
71032 +
71033 +`--enable-extra-pe-debug'
71034 + Show additional debug info related to auto-import symbol thunking.
71035 + [This option is specific to the i386 PE targeted port of the
71036 + linker]
71037 +
71038 +`--section-alignment'
71039 + Sets the section alignment. Sections in memory will always begin
71040 + at addresses which are a multiple of this number. Defaults to
71041 + 0x1000. [This option is specific to the i386 PE targeted port of
71042 + the linker]
71043 +
71044 +`--stack RESERVE'
71045 +`--stack RESERVE,COMMIT'
71046 + Specify the amount of memory to reserve (and optionally commit) to
71047 + be used as stack for this program. The default is 2Mb reserved, 4K
71048 + committed. [This option is specific to the i386 PE targeted port
71049 + of the linker]
71050 +
71051 +`--subsystem WHICH'
71052 +`--subsystem WHICH:MAJOR'
71053 +`--subsystem WHICH:MAJOR.MINOR'
71054 + Specifies the subsystem under which your program will execute. The
71055 + legal values for WHICH are `native', `windows', `console',
71056 + `posix', and `xbox'. You may optionally set the subsystem version
71057 + also. Numeric values are also accepted for WHICH. [This option
71058 + is specific to the i386 PE targeted port of the linker]
71059 +
71060 +
71061 +\1f
71062 +File: ld.info, Node: Environment, Prev: Options, Up: Invocation
71063 +
71064 +2.2 Environment Variables
71065 +=========================
71066 +
71067 +You can change the behaviour of `ld' with the environment variables
71068 +`GNUTARGET', `LDEMULATION' and `COLLECT_NO_DEMANGLE'.
71069 +
71070 + `GNUTARGET' determines the input-file object format if you don't use
71071 +`-b' (or its synonym `--format'). Its value should be one of the BFD
71072 +names for an input format (*note BFD::). If there is no `GNUTARGET' in
71073 +the environment, `ld' uses the natural format of the target. If
71074 +`GNUTARGET' is set to `default' then BFD attempts to discover the input
71075 +format by examining binary input files; this method often succeeds, but
71076 +there are potential ambiguities, since there is no method of ensuring
71077 +that the magic number used to specify object-file formats is unique.
71078 +However, the configuration procedure for BFD on each system places the
71079 +conventional format for that system first in the search-list, so
71080 +ambiguities are resolved in favor of convention.
71081 +
71082 + `LDEMULATION' determines the default emulation if you don't use the
71083 +`-m' option. The emulation can affect various aspects of linker
71084 +behaviour, particularly the default linker script. You can list the
71085 +available emulations with the `--verbose' or `-V' options. If the `-m'
71086 +option is not used, and the `LDEMULATION' environment variable is not
71087 +defined, the default emulation depends upon how the linker was
71088 +configured.
71089 +
71090 + Normally, the linker will default to demangling symbols. However, if
71091 +`COLLECT_NO_DEMANGLE' is set in the environment, then it will default
71092 +to not demangling symbols. This environment variable is used in a
71093 +similar fashion by the `gcc' linker wrapper program. The default may
71094 +be overridden by the `--demangle' and `--no-demangle' options.
71095 +
71096 +\1f
71097 +File: ld.info, Node: Scripts, Next: Machine Dependent, Prev: Invocation, Up: Top
71098 +
71099 +3 Linker Scripts
71100 +****************
71101 +
71102 +Every link is controlled by a "linker script". This script is written
71103 +in the linker command language.
71104 +
71105 + The main purpose of the linker script is to describe how the
71106 +sections in the input files should be mapped into the output file, and
71107 +to control the memory layout of the output file. Most linker scripts
71108 +do nothing more than this. However, when necessary, the linker script
71109 +can also direct the linker to perform many other operations, using the
71110 +commands described below.
71111 +
71112 + The linker always uses a linker script. If you do not supply one
71113 +yourself, the linker will use a default script that is compiled into the
71114 +linker executable. You can use the `--verbose' command line option to
71115 +display the default linker script. Certain command line options, such
71116 +as `-r' or `-N', will affect the default linker script.
71117 +
71118 + You may supply your own linker script by using the `-T' command line
71119 +option. When you do this, your linker script will replace the default
71120 +linker script.
71121 +
71122 + You may also use linker scripts implicitly by naming them as input
71123 +files to the linker, as though they were files to be linked. *Note
71124 +Implicit Linker Scripts::.
71125 +
71126 +* Menu:
71127 +
71128 +* Basic Script Concepts:: Basic Linker Script Concepts
71129 +* Script Format:: Linker Script Format
71130 +* Simple Example:: Simple Linker Script Example
71131 +* Simple Commands:: Simple Linker Script Commands
71132 +* Assignments:: Assigning Values to Symbols
71133 +* SECTIONS:: SECTIONS Command
71134 +* MEMORY:: MEMORY Command
71135 +* PHDRS:: PHDRS Command
71136 +* VERSION:: VERSION Command
71137 +* Expressions:: Expressions in Linker Scripts
71138 +* Implicit Linker Scripts:: Implicit Linker Scripts
71139 +
71140 +\1f
71141 +File: ld.info, Node: Basic Script Concepts, Next: Script Format, Up: Scripts
71142 +
71143 +3.1 Basic Linker Script Concepts
71144 +================================
71145 +
71146 +We need to define some basic concepts and vocabulary in order to
71147 +describe the linker script language.
71148 +
71149 + The linker combines input files into a single output file. The
71150 +output file and each input file are in a special data format known as an
71151 +"object file format". Each file is called an "object file". The
71152 +output file is often called an "executable", but for our purposes we
71153 +will also call it an object file. Each object file has, among other
71154 +things, a list of "sections". We sometimes refer to a section in an
71155 +input file as an "input section"; similarly, a section in the output
71156 +file is an "output section".
71157 +
71158 + Each section in an object file has a name and a size. Most sections
71159 +also have an associated block of data, known as the "section contents".
71160 +A section may be marked as "loadable", which mean that the contents
71161 +should be loaded into memory when the output file is run. A section
71162 +with no contents may be "allocatable", which means that an area in
71163 +memory should be set aside, but nothing in particular should be loaded
71164 +there (in some cases this memory must be zeroed out). A section which
71165 +is neither loadable nor allocatable typically contains some sort of
71166 +debugging information.
71167 +
71168 + Every loadable or allocatable output section has two addresses. The
71169 +first is the "VMA", or virtual memory address. This is the address the
71170 +section will have when the output file is run. The second is the
71171 +"LMA", or load memory address. This is the address at which the
71172 +section will be loaded. In most cases the two addresses will be the
71173 +same. An example of when they might be different is when a data section
71174 +is loaded into ROM, and then copied into RAM when the program starts up
71175 +(this technique is often used to initialize global variables in a ROM
71176 +based system). In this case the ROM address would be the LMA, and the
71177 +RAM address would be the VMA.
71178 +
71179 + You can see the sections in an object file by using the `objdump'
71180 +program with the `-h' option.
71181 +
71182 + Every object file also has a list of "symbols", known as the "symbol
71183 +table". A symbol may be defined or undefined. Each symbol has a name,
71184 +and each defined symbol has an address, among other information. If
71185 +you compile a C or C++ program into an object file, you will get a
71186 +defined symbol for every defined function and global or static
71187 +variable. Every undefined function or global variable which is
71188 +referenced in the input file will become an undefined symbol.
71189 +
71190 + You can see the symbols in an object file by using the `nm' program,
71191 +or by using the `objdump' program with the `-t' option.
71192 +
71193 +\1f
71194 +File: ld.info, Node: Script Format, Next: Simple Example, Prev: Basic Script Concepts, Up: Scripts
71195 +
71196 +3.2 Linker Script Format
71197 +========================
71198 +
71199 +Linker scripts are text files.
71200 +
71201 + You write a linker script as a series of commands. Each command is
71202 +either a keyword, possibly followed by arguments, or an assignment to a
71203 +symbol. You may separate commands using semicolons. Whitespace is
71204 +generally ignored.
71205 +
71206 + Strings such as file or format names can normally be entered
71207 +directly. If the file name contains a character such as a comma which
71208 +would otherwise serve to separate file names, you may put the file name
71209 +in double quotes. There is no way to use a double quote character in a
71210 +file name.
71211 +
71212 + You may include comments in linker scripts just as in C, delimited by
71213 +`/*' and `*/'. As in C, comments are syntactically equivalent to
71214 +whitespace.
71215 +
71216 +\1f
71217 +File: ld.info, Node: Simple Example, Next: Simple Commands, Prev: Script Format, Up: Scripts
71218 +
71219 +3.3 Simple Linker Script Example
71220 +================================
71221 +
71222 +Many linker scripts are fairly simple.
71223 +
71224 + The simplest possible linker script has just one command:
71225 +`SECTIONS'. You use the `SECTIONS' command to describe the memory
71226 +layout of the output file.
71227 +
71228 + The `SECTIONS' command is a powerful command. Here we will describe
71229 +a simple use of it. Let's assume your program consists only of code,
71230 +initialized data, and uninitialized data. These will be in the
71231 +`.text', `.data', and `.bss' sections, respectively. Let's assume
71232 +further that these are the only sections which appear in your input
71233 +files.
71234 +
71235 + For this example, let's say that the code should be loaded at address
71236 +0x10000, and that the data should start at address 0x8000000. Here is a
71237 +linker script which will do that:
71238 + SECTIONS
71239 + {
71240 + . = 0x10000;
71241 + .text : { *(.text) }
71242 + . = 0x8000000;
71243 + .data : { *(.data) }
71244 + .bss : { *(.bss) }
71245 + }
71246 +
71247 + You write the `SECTIONS' command as the keyword `SECTIONS', followed
71248 +by a series of symbol assignments and output section descriptions
71249 +enclosed in curly braces.
71250 +
71251 + The first line inside the `SECTIONS' command of the above example
71252 +sets the value of the special symbol `.', which is the location
71253 +counter. If you do not specify the address of an output section in some
71254 +other way (other ways are described later), the address is set from the
71255 +current value of the location counter. The location counter is then
71256 +incremented by the size of the output section. At the start of the
71257 +`SECTIONS' command, the location counter has the value `0'.
71258 +
71259 + The second line defines an output section, `.text'. The colon is
71260 +required syntax which may be ignored for now. Within the curly braces
71261 +after the output section name, you list the names of the input sections
71262 +which should be placed into this output section. The `*' is a wildcard
71263 +which matches any file name. The expression `*(.text)' means all
71264 +`.text' input sections in all input files.
71265 +
71266 + Since the location counter is `0x10000' when the output section
71267 +`.text' is defined, the linker will set the address of the `.text'
71268 +section in the output file to be `0x10000'.
71269 +
71270 + The remaining lines define the `.data' and `.bss' sections in the
71271 +output file. The linker will place the `.data' output section at
71272 +address `0x8000000'. After the linker places the `.data' output
71273 +section, the value of the location counter will be `0x8000000' plus the
71274 +size of the `.data' output section. The effect is that the linker will
71275 +place the `.bss' output section immediately after the `.data' output
71276 +section in memory.
71277 +
71278 + The linker will ensure that each output section has the required
71279 +alignment, by increasing the location counter if necessary. In this
71280 +example, the specified addresses for the `.text' and `.data' sections
71281 +will probably satisfy any alignment constraints, but the linker may
71282 +have to create a small gap between the `.data' and `.bss' sections.
71283 +
71284 + That's it! That's a simple and complete linker script.
71285 +
71286 +\1f
71287 +File: ld.info, Node: Simple Commands, Next: Assignments, Prev: Simple Example, Up: Scripts
71288 +
71289 +3.4 Simple Linker Script Commands
71290 +=================================
71291 +
71292 +In this section we describe the simple linker script commands.
71293 +
71294 +* Menu:
71295 +
71296 +* Entry Point:: Setting the entry point
71297 +* File Commands:: Commands dealing with files
71298 +
71299 +* Format Commands:: Commands dealing with object file formats
71300 +
71301 +* Miscellaneous Commands:: Other linker script commands
71302 +
71303 +\1f
71304 +File: ld.info, Node: Entry Point, Next: File Commands, Up: Simple Commands
71305 +
71306 +3.4.1 Setting the Entry Point
71307 +-----------------------------
71308 +
71309 +The first instruction to execute in a program is called the "entry
71310 +point". You can use the `ENTRY' linker script command to set the entry
71311 +point. The argument is a symbol name:
71312 + ENTRY(SYMBOL)
71313 +
71314 + There are several ways to set the entry point. The linker will set
71315 +the entry point by trying each of the following methods in order, and
71316 +stopping when one of them succeeds:
71317 + * the `-e' ENTRY command-line option;
71318 +
71319 + * the `ENTRY(SYMBOL)' command in a linker script;
71320 +
71321 + * the value of the symbol `start', if defined;
71322 +
71323 + * the address of the first byte of the `.text' section, if present;
71324 +
71325 + * The address `0'.
71326 +
71327 +\1f
71328 +File: ld.info, Node: File Commands, Next: Format Commands, Prev: Entry Point, Up: Simple Commands
71329 +
71330 +3.4.2 Commands Dealing with Files
71331 +---------------------------------
71332 +
71333 +Several linker script commands deal with files.
71334 +
71335 +`INCLUDE FILENAME'
71336 + Include the linker script FILENAME at this point. The file will
71337 + be searched for in the current directory, and in any directory
71338 + specified with the `-L' option. You can nest calls to `INCLUDE'
71339 + up to 10 levels deep.
71340 +
71341 +`INPUT(FILE, FILE, ...)'
71342 +`INPUT(FILE FILE ...)'
71343 + The `INPUT' command directs the linker to include the named files
71344 + in the link, as though they were named on the command line.
71345 +
71346 + For example, if you always want to include `subr.o' any time you do
71347 + a link, but you can't be bothered to put it on every link command
71348 + line, then you can put `INPUT (subr.o)' in your linker script.
71349 +
71350 + In fact, if you like, you can list all of your input files in the
71351 + linker script, and then invoke the linker with nothing but a `-T'
71352 + option.
71353 +
71354 + In case a "sysroot prefix" is configured, and the filename starts
71355 + with the `/' character, and the script being processed was located
71356 + inside the "sysroot prefix", the filename will be looked for in
71357 + the "sysroot prefix". Otherwise, the linker will try to open the
71358 + file in the current directory. If it is not found, the linker
71359 + will search through the archive library search path. See the
71360 + description of `-L' in *Note Command Line Options: Options.
71361 +
71362 + If you use `INPUT (-lFILE)', `ld' will transform the name to
71363 + `libFILE.a', as with the command line argument `-l'.
71364 +
71365 + When you use the `INPUT' command in an implicit linker script, the
71366 + files will be included in the link at the point at which the linker
71367 + script file is included. This can affect archive searching.
71368 +
71369 +`GROUP(FILE, FILE, ...)'
71370 +`GROUP(FILE FILE ...)'
71371 + The `GROUP' command is like `INPUT', except that the named files
71372 + should all be archives, and they are searched repeatedly until no
71373 + new undefined references are created. See the description of `-('
71374 + in *Note Command Line Options: Options.
71375 +
71376 +`AS_NEEDED(FILE, FILE, ...)'
71377 +`AS_NEEDED(FILE FILE ...)'
71378 + This construct can appear only inside of the `INPUT' or `GROUP'
71379 + commands, among other filenames. The files listed will be handled
71380 + as if they appear directly in the `INPUT' or `GROUP' commands,
71381 + with the exception of ELF shared libraries, that will be added only
71382 + when they are actually needed. This construct essentially enables
71383 + `--as-needed' option for all the files listed inside of it and
71384 + restores previous `--as-needed' resp. `--no-as-needed' setting
71385 + afterwards.
71386 +
71387 +`OUTPUT(FILENAME)'
71388 + The `OUTPUT' command names the output file. Using
71389 + `OUTPUT(FILENAME)' in the linker script is exactly like using `-o
71390 + FILENAME' on the command line (*note Command Line Options:
71391 + Options.). If both are used, the command line option takes
71392 + precedence.
71393 +
71394 + You can use the `OUTPUT' command to define a default name for the
71395 + output file other than the usual default of `a.out'.
71396 +
71397 +`SEARCH_DIR(PATH)'
71398 + The `SEARCH_DIR' command adds PATH to the list of paths where `ld'
71399 + looks for archive libraries. Using `SEARCH_DIR(PATH)' is exactly
71400 + like using `-L PATH' on the command line (*note Command Line
71401 + Options: Options.). If both are used, then the linker will search
71402 + both paths. Paths specified using the command line option are
71403 + searched first.
71404 +
71405 +`STARTUP(FILENAME)'
71406 + The `STARTUP' command is just like the `INPUT' command, except
71407 + that FILENAME will become the first input file to be linked, as
71408 + though it were specified first on the command line. This may be
71409 + useful when using a system in which the entry point is always the
71410 + start of the first file.
71411 +
71412 +\1f
71413 +File: ld.info, Node: Format Commands, Next: Miscellaneous Commands, Prev: File Commands, Up: Simple Commands
71414 +
71415 +3.4.3 Commands Dealing with Object File Formats
71416 +-----------------------------------------------
71417 +
71418 +A couple of linker script commands deal with object file formats.
71419 +
71420 +`OUTPUT_FORMAT(BFDNAME)'
71421 +`OUTPUT_FORMAT(DEFAULT, BIG, LITTLE)'
71422 + The `OUTPUT_FORMAT' command names the BFD format to use for the
71423 + output file (*note BFD::). Using `OUTPUT_FORMAT(BFDNAME)' is
71424 + exactly like using `--oformat BFDNAME' on the command line (*note
71425 + Command Line Options: Options.). If both are used, the command
71426 + line option takes precedence.
71427 +
71428 + You can use `OUTPUT_FORMAT' with three arguments to use different
71429 + formats based on the `-EB' and `-EL' command line options. This
71430 + permits the linker script to set the output format based on the
71431 + desired endianness.
71432 +
71433 + If neither `-EB' nor `-EL' are used, then the output format will
71434 + be the first argument, DEFAULT. If `-EB' is used, the output
71435 + format will be the second argument, BIG. If `-EL' is used, the
71436 + output format will be the third argument, LITTLE.
71437 +
71438 + For example, the default linker script for the MIPS ELF target
71439 + uses this command:
71440 + OUTPUT_FORMAT(elf32-bigmips, elf32-bigmips, elf32-littlemips)
71441 + This says that the default format for the output file is
71442 + `elf32-bigmips', but if the user uses the `-EL' command line
71443 + option, the output file will be created in the `elf32-littlemips'
71444 + format.
71445 +
71446 +`TARGET(BFDNAME)'
71447 + The `TARGET' command names the BFD format to use when reading input
71448 + files. It affects subsequent `INPUT' and `GROUP' commands. This
71449 + command is like using `-b BFDNAME' on the command line (*note
71450 + Command Line Options: Options.). If the `TARGET' command is used
71451 + but `OUTPUT_FORMAT' is not, then the last `TARGET' command is also
71452 + used to set the format for the output file. *Note BFD::.
71453 +
71454 +\1f
71455 +File: ld.info, Node: Miscellaneous Commands, Prev: Format Commands, Up: Simple Commands
71456 +
71457 +3.4.4 Other Linker Script Commands
71458 +----------------------------------
71459 +
71460 +There are a few other linker scripts commands.
71461 +
71462 +`ASSERT(EXP, MESSAGE)'
71463 + Ensure that EXP is non-zero. If it is zero, then exit the linker
71464 + with an error code, and print MESSAGE.
71465 +
71466 +`EXTERN(SYMBOL SYMBOL ...)'
71467 + Force SYMBOL to be entered in the output file as an undefined
71468 + symbol. Doing this may, for example, trigger linking of additional
71469 + modules from standard libraries. You may list several SYMBOLs for
71470 + each `EXTERN', and you may use `EXTERN' multiple times. This
71471 + command has the same effect as the `-u' command-line option.
71472 +
71473 +`FORCE_COMMON_ALLOCATION'
71474 + This command has the same effect as the `-d' command-line option:
71475 + to make `ld' assign space to common symbols even if a relocatable
71476 + output file is specified (`-r').
71477 +
71478 +`INHIBIT_COMMON_ALLOCATION'
71479 + This command has the same effect as the `--no-define-common'
71480 + command-line option: to make `ld' omit the assignment of addresses
71481 + to common symbols even for a non-relocatable output file.
71482 +
71483 +`NOCROSSREFS(SECTION SECTION ...)'
71484 + This command may be used to tell `ld' to issue an error about any
71485 + references among certain output sections.
71486 +
71487 + In certain types of programs, particularly on embedded systems when
71488 + using overlays, when one section is loaded into memory, another
71489 + section will not be. Any direct references between the two
71490 + sections would be errors. For example, it would be an error if
71491 + code in one section called a function defined in the other section.
71492 +
71493 + The `NOCROSSREFS' command takes a list of output section names. If
71494 + `ld' detects any cross references between the sections, it reports
71495 + an error and returns a non-zero exit status. Note that the
71496 + `NOCROSSREFS' command uses output section names, not input section
71497 + names.
71498 +
71499 +`OUTPUT_ARCH(BFDARCH)'
71500 + Specify a particular output machine architecture. The argument is
71501 + one of the names used by the BFD library (*note BFD::). You can
71502 + see the architecture of an object file by using the `objdump'
71503 + program with the `-f' option.
71504 +
71505 +\1f
71506 +File: ld.info, Node: Assignments, Next: SECTIONS, Prev: Simple Commands, Up: Scripts
71507 +
71508 +3.5 Assigning Values to Symbols
71509 +===============================
71510 +
71511 +You may assign a value to a symbol in a linker script. This will define
71512 +the symbol and place it into the symbol table with a global scope.
71513 +
71514 +* Menu:
71515 +
71516 +* Simple Assignments:: Simple Assignments
71517 +* PROVIDE:: PROVIDE
71518 +* PROVIDE_HIDDEN:: PROVIDE_HIDDEN
71519 +* Source Code Reference:: How to use a linker script defined symbol in source code
71520 +
71521 +\1f
71522 +File: ld.info, Node: Simple Assignments, Next: PROVIDE, Up: Assignments
71523 +
71524 +3.5.1 Simple Assignments
71525 +------------------------
71526 +
71527 +You may assign to a symbol using any of the C assignment operators:
71528 +
71529 +`SYMBOL = EXPRESSION ;'
71530 +`SYMBOL += EXPRESSION ;'
71531 +`SYMBOL -= EXPRESSION ;'
71532 +`SYMBOL *= EXPRESSION ;'
71533 +`SYMBOL /= EXPRESSION ;'
71534 +`SYMBOL <<= EXPRESSION ;'
71535 +`SYMBOL >>= EXPRESSION ;'
71536 +`SYMBOL &= EXPRESSION ;'
71537 +`SYMBOL |= EXPRESSION ;'
71538 +
71539 + The first case will define SYMBOL to the value of EXPRESSION. In
71540 +the other cases, SYMBOL must already be defined, and the value will be
71541 +adjusted accordingly.
71542 +
71543 + The special symbol name `.' indicates the location counter. You may
71544 +only use this within a `SECTIONS' command. *Note Location Counter::.
71545 +
71546 + The semicolon after EXPRESSION is required.
71547 +
71548 + Expressions are defined below; see *Note Expressions::.
71549 +
71550 + You may write symbol assignments as commands in their own right, or
71551 +as statements within a `SECTIONS' command, or as part of an output
71552 +section description in a `SECTIONS' command.
71553 +
71554 + The section of the symbol will be set from the section of the
71555 +expression; for more information, see *Note Expression Section::.
71556 +
71557 + Here is an example showing the three different places that symbol
71558 +assignments may be used:
71559 +
71560 + floating_point = 0;
71561 + SECTIONS
71562 + {
71563 + .text :
71564 + {
71565 + *(.text)
71566 + _etext = .;
71567 + }
71568 + _bdata = (. + 3) & ~ 3;
71569 + .data : { *(.data) }
71570 + }
71571 + In this example, the symbol `floating_point' will be defined as
71572 +zero. The symbol `_etext' will be defined as the address following the
71573 +last `.text' input section. The symbol `_bdata' will be defined as the
71574 +address following the `.text' output section aligned upward to a 4 byte
71575 +boundary.
71576 +
71577 +\1f
71578 +File: ld.info, Node: PROVIDE, Next: PROVIDE_HIDDEN, Prev: Simple Assignments, Up: Assignments
71579 +
71580 +3.5.2 PROVIDE
71581 +-------------
71582 +
71583 +In some cases, it is desirable for a linker script to define a symbol
71584 +only if it is referenced and is not defined by any object included in
71585 +the link. For example, traditional linkers defined the symbol `etext'.
71586 +However, ANSI C requires that the user be able to use `etext' as a
71587 +function name without encountering an error. The `PROVIDE' keyword may
71588 +be used to define a symbol, such as `etext', only if it is referenced
71589 +but not defined. The syntax is `PROVIDE(SYMBOL = EXPRESSION)'.
71590 +
71591 + Here is an example of using `PROVIDE' to define `etext':
71592 + SECTIONS
71593 + {
71594 + .text :
71595 + {
71596 + *(.text)
71597 + _etext = .;
71598 + PROVIDE(etext = .);
71599 + }
71600 + }
71601 +
71602 + In this example, if the program defines `_etext' (with a leading
71603 +underscore), the linker will give a multiple definition error. If, on
71604 +the other hand, the program defines `etext' (with no leading
71605 +underscore), the linker will silently use the definition in the program.
71606 +If the program references `etext' but does not define it, the linker
71607 +will use the definition in the linker script.
71608 +
71609 +\1f
71610 +File: ld.info, Node: PROVIDE_HIDDEN, Next: Source Code Reference, Prev: PROVIDE, Up: Assignments
71611 +
71612 +3.5.3 PROVIDE_HIDDEN
71613 +--------------------
71614 +
71615 +Similar to `PROVIDE'. For ELF targeted ports, the symbol will be
71616 +hidden and won't be exported.
71617 +
71618 +\1f
71619 +File: ld.info, Node: Source Code Reference, Prev: PROVIDE_HIDDEN, Up: Assignments
71620 +
71621 +3.5.4 Source Code Reference
71622 +---------------------------
71623 +
71624 +Accessing a linker script defined variable from source code is not
71625 +intuitive. In particular a linker script symbol is not equivalent to a
71626 +variable declaration in a high level language, it is instead a symbol
71627 +that does not have a value.
71628 +
71629 + Before going further, it is important to note that compilers often
71630 +transform names in the source code into different names when they are
71631 +stored in the symbol table. For example, Fortran compilers commonly
71632 +prepend or append an underscore, and C++ performs extensive `name
71633 +mangling'. Therefore there might be a discrepancy between the name of
71634 +a variable as it is used in source code and the name of the same
71635 +variable as it is defined in a linker script. For example in C a
71636 +linker script variable might be referred to as:
71637 +
71638 + extern int foo;
71639 +
71640 + But in the linker script it might be defined as:
71641 +
71642 + _foo = 1000;
71643 +
71644 + In the remaining examples however it is assumed that no name
71645 +transformation has taken place.
71646 +
71647 + When a symbol is declared in a high level language such as C, two
71648 +things happen. The first is that the compiler reserves enough space in
71649 +the program's memory to hold the _value_ of the symbol. The second is
71650 +that the compiler creates an entry in the program's symbol table which
71651 +holds the symbol's _address_. ie the symbol table contains the address
71652 +of the block of memory holding the symbol's value. So for example the
71653 +following C declaration, at file scope:
71654 +
71655 + int foo = 1000;
71656 +
71657 + creates a entry called `foo' in the symbol table. This entry holds
71658 +the address of an `int' sized block of memory where the number 1000 is
71659 +initially stored.
71660 +
71661 + When a program references a symbol the compiler generates code that
71662 +first accesses the symbol table to find the address of the symbol's
71663 +memory block and then code to read the value from that memory block.
71664 +So:
71665 +
71666 + foo = 1;
71667 +
71668 + looks up the symbol `foo' in the symbol table, gets the address
71669 +associated with this symbol and then writes the value 1 into that
71670 +address. Whereas:
71671 +
71672 + int * a = & foo;
71673 +
71674 + looks up the symbol `foo' in the symbol table, gets it address and
71675 +then copies this address into the block of memory associated with the
71676 +variable `a'.
71677 +
71678 + Linker scripts symbol declarations, by contrast, create an entry in
71679 +the symbol table but do not assign any memory to them. Thus they are
71680 +an address without a value. So for example the linker script
71681 +definition:
71682 +
71683 + foo = 1000;
71684 +
71685 + creates an entry in the symbol table called `foo' which holds the
71686 +address of memory location 1000, but nothing special is stored at
71687 +address 1000. This means that you cannot access the _value_ of a
71688 +linker script defined symbol - it has no value - all you can do is
71689 +access the _address_ of a linker script defined symbol.
71690 +
71691 + Hence when you are using a linker script defined symbol in source
71692 +code you should always take the address of the symbol, and never
71693 +attempt to use its value. For example suppose you want to copy the
71694 +contents of a section of memory called .ROM into a section called
71695 +.FLASH and the linker script contains these declarations:
71696 +
71697 + start_of_ROM = .ROM;
71698 + end_of_ROM = .ROM + sizeof (.ROM) - 1;
71699 + start_of_FLASH = .FLASH;
71700 +
71701 + Then the C source code to perform the copy would be:
71702 +
71703 + extern char start_of_ROM, end_of_ROM, start_of_FLASH;
71704 +
71705 + memcpy (& start_of_FLASH, & start_of_ROM, & end_of_ROM - & start_of_ROM);
71706 +
71707 + Note the use of the `&' operators. These are correct.
71708 +
71709 +\1f
71710 +File: ld.info, Node: SECTIONS, Next: MEMORY, Prev: Assignments, Up: Scripts
71711 +
71712 +3.6 SECTIONS Command
71713 +====================
71714 +
71715 +The `SECTIONS' command tells the linker how to map input sections into
71716 +output sections, and how to place the output sections in memory.
71717 +
71718 + The format of the `SECTIONS' command is:
71719 + SECTIONS
71720 + {
71721 + SECTIONS-COMMAND
71722 + SECTIONS-COMMAND
71723 + ...
71724 + }
71725 +
71726 + Each SECTIONS-COMMAND may of be one of the following:
71727 +
71728 + * an `ENTRY' command (*note Entry command: Entry Point.)
71729 +
71730 + * a symbol assignment (*note Assignments::)
71731 +
71732 + * an output section description
71733 +
71734 + * an overlay description
71735 +
71736 + The `ENTRY' command and symbol assignments are permitted inside the
71737 +`SECTIONS' command for convenience in using the location counter in
71738 +those commands. This can also make the linker script easier to
71739 +understand because you can use those commands at meaningful points in
71740 +the layout of the output file.
71741 +
71742 + Output section descriptions and overlay descriptions are described
71743 +below.
71744 +
71745 + If you do not use a `SECTIONS' command in your linker script, the
71746 +linker will place each input section into an identically named output
71747 +section in the order that the sections are first encountered in the
71748 +input files. If all input sections are present in the first file, for
71749 +example, the order of sections in the output file will match the order
71750 +in the first input file. The first section will be at address zero.
71751 +
71752 +* Menu:
71753 +
71754 +* Output Section Description:: Output section description
71755 +* Output Section Name:: Output section name
71756 +* Output Section Address:: Output section address
71757 +* Input Section:: Input section description
71758 +* Output Section Data:: Output section data
71759 +* Output Section Keywords:: Output section keywords
71760 +* Output Section Discarding:: Output section discarding
71761 +* Output Section Attributes:: Output section attributes
71762 +* Overlay Description:: Overlay description
71763 +
71764 +\1f
71765 +File: ld.info, Node: Output Section Description, Next: Output Section Name, Up: SECTIONS
71766 +
71767 +3.6.1 Output Section Description
71768 +--------------------------------
71769 +
71770 +The full description of an output section looks like this:
71771 + SECTION [ADDRESS] [(TYPE)] :
71772 + [AT(LMA)] [ALIGN(SECTION_ALIGN)] [SUBALIGN(SUBSECTION_ALIGN)]
71773 + {
71774 + OUTPUT-SECTION-COMMAND
71775 + OUTPUT-SECTION-COMMAND
71776 + ...
71777 + } [>REGION] [AT>LMA_REGION] [:PHDR :PHDR ...] [=FILLEXP]
71778 +
71779 + Most output sections do not use most of the optional section
71780 +attributes.
71781 +
71782 + The whitespace around SECTION is required, so that the section name
71783 +is unambiguous. The colon and the curly braces are also required. The
71784 +line breaks and other white space are optional.
71785 +
71786 + Each OUTPUT-SECTION-COMMAND may be one of the following:
71787 +
71788 + * a symbol assignment (*note Assignments::)
71789 +
71790 + * an input section description (*note Input Section::)
71791 +
71792 + * data values to include directly (*note Output Section Data::)
71793 +
71794 + * a special output section keyword (*note Output Section Keywords::)
71795 +
71796 +\1f
71797 +File: ld.info, Node: Output Section Name, Next: Output Section Address, Prev: Output Section Description, Up: SECTIONS
71798 +
71799 +3.6.2 Output Section Name
71800 +-------------------------
71801 +
71802 +The name of the output section is SECTION. SECTION must meet the
71803 +constraints of your output format. In formats which only support a
71804 +limited number of sections, such as `a.out', the name must be one of
71805 +the names supported by the format (`a.out', for example, allows only
71806 +`.text', `.data' or `.bss'). If the output format supports any number
71807 +of sections, but with numbers and not names (as is the case for Oasys),
71808 +the name should be supplied as a quoted numeric string. A section name
71809 +may consist of any sequence of characters, but a name which contains
71810 +any unusual characters such as commas must be quoted.
71811 +
71812 + The output section name `/DISCARD/' is special; *Note Output Section
71813 +Discarding::.
71814 +
71815 +\1f
71816 +File: ld.info, Node: Output Section Address, Next: Input Section, Prev: Output Section Name, Up: SECTIONS
71817 +
71818 +3.6.3 Output Section Address
71819 +----------------------------
71820 +
71821 +The ADDRESS is an expression for the VMA (the virtual memory address)
71822 +of the output section. If you do not provide ADDRESS, the linker will
71823 +set it based on REGION if present, or otherwise based on the current
71824 +value of the location counter.
71825 +
71826 + If you provide ADDRESS, the address of the output section will be
71827 +set to precisely that. If you provide neither ADDRESS nor REGION, then
71828 +the address of the output section will be set to the current value of
71829 +the location counter aligned to the alignment requirements of the
71830 +output section. The alignment requirement of the output section is the
71831 +strictest alignment of any input section contained within the output
71832 +section.
71833 +
71834 + For example,
71835 + .text . : { *(.text) }
71836 + and
71837 + .text : { *(.text) }
71838 + are subtly different. The first will set the address of the `.text'
71839 +output section to the current value of the location counter. The
71840 +second will set it to the current value of the location counter aligned
71841 +to the strictest alignment of a `.text' input section.
71842 +
71843 + The ADDRESS may be an arbitrary expression; *Note Expressions::.
71844 +For example, if you want to align the section on a 0x10 byte boundary,
71845 +so that the lowest four bits of the section address are zero, you could
71846 +do something like this:
71847 + .text ALIGN(0x10) : { *(.text) }
71848 + This works because `ALIGN' returns the current location counter
71849 +aligned upward to the specified value.
71850 +
71851 + Specifying ADDRESS for a section will change the value of the
71852 +location counter.
71853 +
71854 +\1f
71855 +File: ld.info, Node: Input Section, Next: Output Section Data, Prev: Output Section Address, Up: SECTIONS
71856 +
71857 +3.6.4 Input Section Description
71858 +-------------------------------
71859 +
71860 +The most common output section command is an input section description.
71861 +
71862 + The input section description is the most basic linker script
71863 +operation. You use output sections to tell the linker how to lay out
71864 +your program in memory. You use input section descriptions to tell the
71865 +linker how to map the input files into your memory layout.
71866 +
71867 +* Menu:
71868 +
71869 +* Input Section Basics:: Input section basics
71870 +* Input Section Wildcards:: Input section wildcard patterns
71871 +* Input Section Common:: Input section for common symbols
71872 +* Input Section Keep:: Input section and garbage collection
71873 +* Input Section Example:: Input section example
71874 +
71875 +\1f
71876 +File: ld.info, Node: Input Section Basics, Next: Input Section Wildcards, Up: Input Section
71877 +
71878 +3.6.4.1 Input Section Basics
71879 +............................
71880 +
71881 +An input section description consists of a file name optionally followed
71882 +by a list of section names in parentheses.
71883 +
71884 + The file name and the section name may be wildcard patterns, which we
71885 +describe further below (*note Input Section Wildcards::).
71886 +
71887 + The most common input section description is to include all input
71888 +sections with a particular name in the output section. For example, to
71889 +include all input `.text' sections, you would write:
71890 + *(.text)
71891 + Here the `*' is a wildcard which matches any file name. To exclude
71892 +a list of files from matching the file name wildcard, EXCLUDE_FILE may
71893 +be used to match all files except the ones specified in the
71894 +EXCLUDE_FILE list. For example:
71895 + (*(EXCLUDE_FILE (*crtend.o *otherfile.o) .ctors))
71896 + will cause all .ctors sections from all files except `crtend.o' and
71897 +`otherfile.o' to be included.
71898 +
71899 + There are two ways to include more than one section:
71900 + *(.text .rdata)
71901 + *(.text) *(.rdata)
71902 + The difference between these is the order in which the `.text' and
71903 +`.rdata' input sections will appear in the output section. In the
71904 +first example, they will be intermingled, appearing in the same order as
71905 +they are found in the linker input. In the second example, all `.text'
71906 +input sections will appear first, followed by all `.rdata' input
71907 +sections.
71908 +
71909 + You can specify a file name to include sections from a particular
71910 +file. You would do this if one or more of your files contain special
71911 +data that needs to be at a particular location in memory. For example:
71912 + data.o(.data)
71913 +
71914 + If you use a file name without a list of sections, then all sections
71915 +in the input file will be included in the output section. This is not
71916 +commonly done, but it may by useful on occasion. For example:
71917 + data.o
71918 +
71919 + When you use a file name which does not contain any wild card
71920 +characters, the linker will first see if you also specified the file
71921 +name on the linker command line or in an `INPUT' command. If you did
71922 +not, the linker will attempt to open the file as an input file, as
71923 +though it appeared on the command line. Note that this differs from an
71924 +`INPUT' command, because the linker will not search for the file in the
71925 +archive search path.
71926 +
71927 +\1f
71928 +File: ld.info, Node: Input Section Wildcards, Next: Input Section Common, Prev: Input Section Basics, Up: Input Section
71929 +
71930 +3.6.4.2 Input Section Wildcard Patterns
71931 +.......................................
71932 +
71933 +In an input section description, either the file name or the section
71934 +name or both may be wildcard patterns.
71935 +
71936 + The file name of `*' seen in many examples is a simple wildcard
71937 +pattern for the file name.
71938 +
71939 + The wildcard patterns are like those used by the Unix shell.
71940 +
71941 +`*'
71942 + matches any number of characters
71943 +
71944 +`?'
71945 + matches any single character
71946 +
71947 +`[CHARS]'
71948 + matches a single instance of any of the CHARS; the `-' character
71949 + may be used to specify a range of characters, as in `[a-z]' to
71950 + match any lower case letter
71951 +
71952 +`\'
71953 + quotes the following character
71954 +
71955 + When a file name is matched with a wildcard, the wildcard characters
71956 +will not match a `/' character (used to separate directory names on
71957 +Unix). A pattern consisting of a single `*' character is an exception;
71958 +it will always match any file name, whether it contains a `/' or not.
71959 +In a section name, the wildcard characters will match a `/' character.
71960 +
71961 + File name wildcard patterns only match files which are explicitly
71962 +specified on the command line or in an `INPUT' command. The linker
71963 +does not search directories to expand wildcards.
71964 +
71965 + If a file name matches more than one wildcard pattern, or if a file
71966 +name appears explicitly and is also matched by a wildcard pattern, the
71967 +linker will use the first match in the linker script. For example, this
71968 +sequence of input section descriptions is probably in error, because the
71969 +`data.o' rule will not be used:
71970 + .data : { *(.data) }
71971 + .data1 : { data.o(.data) }
71972 +
71973 + Normally, the linker will place files and sections matched by
71974 +wildcards in the order in which they are seen during the link. You can
71975 +change this by using the `SORT_BY_NAME' keyword, which appears before a
71976 +wildcard pattern in parentheses (e.g., `SORT_BY_NAME(.text*)'). When
71977 +the `SORT_BY_NAME' keyword is used, the linker will sort the files or
71978 +sections into ascending order by name before placing them in the output
71979 +file.
71980 +
71981 + `SORT_BY_ALIGNMENT' is very similar to `SORT_BY_NAME'. The
71982 +difference is `SORT_BY_ALIGNMENT' will sort sections into ascending
71983 +order by alignment before placing them in the output file.
71984 +
71985 + `SORT' is an alias for `SORT_BY_NAME'.
71986 +
71987 + When there are nested section sorting commands in linker script,
71988 +there can be at most 1 level of nesting for section sorting commands.
71989 +
71990 + 1. `SORT_BY_NAME' (`SORT_BY_ALIGNMENT' (wildcard section pattern)).
71991 + It will sort the input sections by name first, then by alignment
71992 + if 2 sections have the same name.
71993 +
71994 + 2. `SORT_BY_ALIGNMENT' (`SORT_BY_NAME' (wildcard section pattern)).
71995 + It will sort the input sections by alignment first, then by name
71996 + if 2 sections have the same alignment.
71997 +
71998 + 3. `SORT_BY_NAME' (`SORT_BY_NAME' (wildcard section pattern)) is
71999 + treated the same as `SORT_BY_NAME' (wildcard section pattern).
72000 +
72001 + 4. `SORT_BY_ALIGNMENT' (`SORT_BY_ALIGNMENT' (wildcard section
72002 + pattern)) is treated the same as `SORT_BY_ALIGNMENT' (wildcard
72003 + section pattern).
72004 +
72005 + 5. All other nested section sorting commands are invalid.
72006 +
72007 + When both command line section sorting option and linker script
72008 +section sorting command are used, section sorting command always takes
72009 +precedence over the command line option.
72010 +
72011 + If the section sorting command in linker script isn't nested, the
72012 +command line option will make the section sorting command to be treated
72013 +as nested sorting command.
72014 +
72015 + 1. `SORT_BY_NAME' (wildcard section pattern ) with `--sort-sections
72016 + alignment' is equivalent to `SORT_BY_NAME' (`SORT_BY_ALIGNMENT'
72017 + (wildcard section pattern)).
72018 +
72019 + 2. `SORT_BY_ALIGNMENT' (wildcard section pattern) with
72020 + `--sort-section name' is equivalent to `SORT_BY_ALIGNMENT'
72021 + (`SORT_BY_NAME' (wildcard section pattern)).
72022 +
72023 + If the section sorting command in linker script is nested, the
72024 +command line option will be ignored.
72025 +
72026 + If you ever get confused about where input sections are going, use
72027 +the `-M' linker option to generate a map file. The map file shows
72028 +precisely how input sections are mapped to output sections.
72029 +
72030 + This example shows how wildcard patterns might be used to partition
72031 +files. This linker script directs the linker to place all `.text'
72032 +sections in `.text' and all `.bss' sections in `.bss'. The linker will
72033 +place the `.data' section from all files beginning with an upper case
72034 +character in `.DATA'; for all other files, the linker will place the
72035 +`.data' section in `.data'.
72036 + SECTIONS {
72037 + .text : { *(.text) }
72038 + .DATA : { [A-Z]*(.data) }
72039 + .data : { *(.data) }
72040 + .bss : { *(.bss) }
72041 + }
72042 +
72043 +\1f
72044 +File: ld.info, Node: Input Section Common, Next: Input Section Keep, Prev: Input Section Wildcards, Up: Input Section
72045 +
72046 +3.6.4.3 Input Section for Common Symbols
72047 +........................................
72048 +
72049 +A special notation is needed for common symbols, because in many object
72050 +file formats common symbols do not have a particular input section. The
72051 +linker treats common symbols as though they are in an input section
72052 +named `COMMON'.
72053 +
72054 + You may use file names with the `COMMON' section just as with any
72055 +other input sections. You can use this to place common symbols from a
72056 +particular input file in one section while common symbols from other
72057 +input files are placed in another section.
72058 +
72059 + In most cases, common symbols in input files will be placed in the
72060 +`.bss' section in the output file. For example:
72061 + .bss { *(.bss) *(COMMON) }
72062 +
72063 + Some object file formats have more than one type of common symbol.
72064 +For example, the MIPS ELF object file format distinguishes standard
72065 +common symbols and small common symbols. In this case, the linker will
72066 +use a different special section name for other types of common symbols.
72067 +In the case of MIPS ELF, the linker uses `COMMON' for standard common
72068 +symbols and `.scommon' for small common symbols. This permits you to
72069 +map the different types of common symbols into memory at different
72070 +locations.
72071 +
72072 + You will sometimes see `[COMMON]' in old linker scripts. This
72073 +notation is now considered obsolete. It is equivalent to `*(COMMON)'.
72074 +
72075 +\1f
72076 +File: ld.info, Node: Input Section Keep, Next: Input Section Example, Prev: Input Section Common, Up: Input Section
72077 +
72078 +3.6.4.4 Input Section and Garbage Collection
72079 +............................................
72080 +
72081 +When link-time garbage collection is in use (`--gc-sections'), it is
72082 +often useful to mark sections that should not be eliminated. This is
72083 +accomplished by surrounding an input section's wildcard entry with
72084 +`KEEP()', as in `KEEP(*(.init))' or `KEEP(SORT_BY_NAME(*)(.ctors))'.
72085 +
72086 +\1f
72087 +File: ld.info, Node: Input Section Example, Prev: Input Section Keep, Up: Input Section
72088 +
72089 +3.6.4.5 Input Section Example
72090 +.............................
72091 +
72092 +The following example is a complete linker script. It tells the linker
72093 +to read all of the sections from file `all.o' and place them at the
72094 +start of output section `outputa' which starts at location `0x10000'.
72095 +All of section `.input1' from file `foo.o' follows immediately, in the
72096 +same output section. All of section `.input2' from `foo.o' goes into
72097 +output section `outputb', followed by section `.input1' from `foo1.o'.
72098 +All of the remaining `.input1' and `.input2' sections from any files
72099 +are written to output section `outputc'.
72100 +
72101 + SECTIONS {
72102 + outputa 0x10000 :
72103 + {
72104 + all.o
72105 + foo.o (.input1)
72106 + }
72107 + outputb :
72108 + {
72109 + foo.o (.input2)
72110 + foo1.o (.input1)
72111 + }
72112 + outputc :
72113 + {
72114 + *(.input1)
72115 + *(.input2)
72116 + }
72117 + }
72118 +
72119 +\1f
72120 +File: ld.info, Node: Output Section Data, Next: Output Section Keywords, Prev: Input Section, Up: SECTIONS
72121 +
72122 +3.6.5 Output Section Data
72123 +-------------------------
72124 +
72125 +You can include explicit bytes of data in an output section by using
72126 +`BYTE', `SHORT', `LONG', `QUAD', or `SQUAD' as an output section
72127 +command. Each keyword is followed by an expression in parentheses
72128 +providing the value to store (*note Expressions::). The value of the
72129 +expression is stored at the current value of the location counter.
72130 +
72131 + The `BYTE', `SHORT', `LONG', and `QUAD' commands store one, two,
72132 +four, and eight bytes (respectively). After storing the bytes, the
72133 +location counter is incremented by the number of bytes stored.
72134 +
72135 + For example, this will store the byte 1 followed by the four byte
72136 +value of the symbol `addr':
72137 + BYTE(1)
72138 + LONG(addr)
72139 +
72140 + When using a 64 bit host or target, `QUAD' and `SQUAD' are the same;
72141 +they both store an 8 byte, or 64 bit, value. When both host and target
72142 +are 32 bits, an expression is computed as 32 bits. In this case `QUAD'
72143 +stores a 32 bit value zero extended to 64 bits, and `SQUAD' stores a 32
72144 +bit value sign extended to 64 bits.
72145 +
72146 + If the object file format of the output file has an explicit
72147 +endianness, which is the normal case, the value will be stored in that
72148 +endianness. When the object file format does not have an explicit
72149 +endianness, as is true of, for example, S-records, the value will be
72150 +stored in the endianness of the first input object file.
72151 +
72152 + Note--these commands only work inside a section description and not
72153 +between them, so the following will produce an error from the linker:
72154 + SECTIONS { .text : { *(.text) } LONG(1) .data : { *(.data) } }
72155 + whereas this will work:
72156 + SECTIONS { .text : { *(.text) ; LONG(1) } .data : { *(.data) } }
72157 +
72158 + You may use the `FILL' command to set the fill pattern for the
72159 +current section. It is followed by an expression in parentheses. Any
72160 +otherwise unspecified regions of memory within the section (for example,
72161 +gaps left due to the required alignment of input sections) are filled
72162 +with the value of the expression, repeated as necessary. A `FILL'
72163 +statement covers memory locations after the point at which it occurs in
72164 +the section definition; by including more than one `FILL' statement,
72165 +you can have different fill patterns in different parts of an output
72166 +section.
72167 +
72168 + This example shows how to fill unspecified regions of memory with the
72169 +value `0x90':
72170 + FILL(0x90909090)
72171 +
72172 + The `FILL' command is similar to the `=FILLEXP' output section
72173 +attribute, but it only affects the part of the section following the
72174 +`FILL' command, rather than the entire section. If both are used, the
72175 +`FILL' command takes precedence. *Note Output Section Fill::, for
72176 +details on the fill expression.
72177 +
72178 +\1f
72179 +File: ld.info, Node: Output Section Keywords, Next: Output Section Discarding, Prev: Output Section Data, Up: SECTIONS
72180 +
72181 +3.6.6 Output Section Keywords
72182 +-----------------------------
72183 +
72184 +There are a couple of keywords which can appear as output section
72185 +commands.
72186 +
72187 +`CREATE_OBJECT_SYMBOLS'
72188 + The command tells the linker to create a symbol for each input
72189 + file. The name of each symbol will be the name of the
72190 + corresponding input file. The section of each symbol will be the
72191 + output section in which the `CREATE_OBJECT_SYMBOLS' command
72192 + appears.
72193 +
72194 + This is conventional for the a.out object file format. It is not
72195 + normally used for any other object file format.
72196 +
72197 +`CONSTRUCTORS'
72198 + When linking using the a.out object file format, the linker uses an
72199 + unusual set construct to support C++ global constructors and
72200 + destructors. When linking object file formats which do not support
72201 + arbitrary sections, such as ECOFF and XCOFF, the linker will
72202 + automatically recognize C++ global constructors and destructors by
72203 + name. For these object file formats, the `CONSTRUCTORS' command
72204 + tells the linker to place constructor information in the output
72205 + section where the `CONSTRUCTORS' command appears. The
72206 + `CONSTRUCTORS' command is ignored for other object file formats.
72207 +
72208 + The symbol `__CTOR_LIST__' marks the start of the global
72209 + constructors, and the symbol `__CTOR_END__' marks the end.
72210 + Similarly, `__DTOR_LIST__' and `__DTOR_END__' mark the start and
72211 + end of the global destructors. The first word in the list is the
72212 + number of entries, followed by the address of each constructor or
72213 + destructor, followed by a zero word. The compiler must arrange to
72214 + actually run the code. For these object file formats GNU C++
72215 + normally calls constructors from a subroutine `__main'; a call to
72216 + `__main' is automatically inserted into the startup code for
72217 + `main'. GNU C++ normally runs destructors either by using
72218 + `atexit', or directly from the function `exit'.
72219 +
72220 + For object file formats such as `COFF' or `ELF' which support
72221 + arbitrary section names, GNU C++ will normally arrange to put the
72222 + addresses of global constructors and destructors into the `.ctors'
72223 + and `.dtors' sections. Placing the following sequence into your
72224 + linker script will build the sort of table which the GNU C++
72225 + runtime code expects to see.
72226 +
72227 + __CTOR_LIST__ = .;
72228 + LONG((__CTOR_END__ - __CTOR_LIST__) / 4 - 2)
72229 + *(.ctors)
72230 + LONG(0)
72231 + __CTOR_END__ = .;
72232 + __DTOR_LIST__ = .;
72233 + LONG((__DTOR_END__ - __DTOR_LIST__) / 4 - 2)
72234 + *(.dtors)
72235 + LONG(0)
72236 + __DTOR_END__ = .;
72237 +
72238 + If you are using the GNU C++ support for initialization priority,
72239 + which provides some control over the order in which global
72240 + constructors are run, you must sort the constructors at link time
72241 + to ensure that they are executed in the correct order. When using
72242 + the `CONSTRUCTORS' command, use `SORT_BY_NAME(CONSTRUCTORS)'
72243 + instead. When using the `.ctors' and `.dtors' sections, use
72244 + `*(SORT_BY_NAME(.ctors))' and `*(SORT_BY_NAME(.dtors))' instead of
72245 + just `*(.ctors)' and `*(.dtors)'.
72246 +
72247 + Normally the compiler and linker will handle these issues
72248 + automatically, and you will not need to concern yourself with
72249 + them. However, you may need to consider this if you are using C++
72250 + and writing your own linker scripts.
72251 +
72252 +
72253 +\1f
72254 +File: ld.info, Node: Output Section Discarding, Next: Output Section Attributes, Prev: Output Section Keywords, Up: SECTIONS
72255 +
72256 +3.6.7 Output Section Discarding
72257 +-------------------------------
72258 +
72259 +The linker will not create output section which do not have any
72260 +contents. This is for convenience when referring to input sections that
72261 +may or may not be present in any of the input files. For example:
72262 + .foo { *(.foo) }
72263 + will only create a `.foo' section in the output file if there is a
72264 +`.foo' section in at least one input file.
72265 +
72266 + If you use anything other than an input section description as an
72267 +output section command, such as a symbol assignment, then the output
72268 +section will always be created, even if there are no matching input
72269 +sections.
72270 +
72271 + The special output section name `/DISCARD/' may be used to discard
72272 +input sections. Any input sections which are assigned to an output
72273 +section named `/DISCARD/' are not included in the output file.
72274 +
72275 +\1f
72276 +File: ld.info, Node: Output Section Attributes, Next: Overlay Description, Prev: Output Section Discarding, Up: SECTIONS
72277 +
72278 +3.6.8 Output Section Attributes
72279 +-------------------------------
72280 +
72281 +We showed above that the full description of an output section looked
72282 +like this:
72283 + SECTION [ADDRESS] [(TYPE)] :
72284 + [AT(LMA)] [ALIGN(SECTION_ALIGN)] [SUBALIGN(SUBSECTION_ALIGN)]
72285 + {
72286 + OUTPUT-SECTION-COMMAND
72287 + OUTPUT-SECTION-COMMAND
72288 + ...
72289 + } [>REGION] [AT>LMA_REGION] [:PHDR :PHDR ...] [=FILLEXP]
72290 +We've already described SECTION, ADDRESS, and
72291 +OUTPUT-SECTION-COMMAND. In this section we will describe the remaining
72292 +section attributes.
72293 +
72294 +* Menu:
72295 +
72296 +* Output Section Type:: Output section type
72297 +* Output Section LMA:: Output section LMA
72298 +* Forced Output Alignment:: Forced Output Alignment
72299 +* Forced Input Alignment:: Forced Input Alignment
72300 +* Output Section Region:: Output section region
72301 +* Output Section Phdr:: Output section phdr
72302 +* Output Section Fill:: Output section fill
72303 +
72304 +\1f
72305 +File: ld.info, Node: Output Section Type, Next: Output Section LMA, Up: Output Section Attributes
72306 +
72307 +3.6.8.1 Output Section Type
72308 +...........................
72309 +
72310 +Each output section may have a type. The type is a keyword in
72311 +parentheses. The following types are defined:
72312 +
72313 +`NOLOAD'
72314 + The section should be marked as not loadable, so that it will not
72315 + be loaded into memory when the program is run.
72316 +
72317 +`DSECT'
72318 +`COPY'
72319 +`INFO'
72320 +`OVERLAY'
72321 + These type names are supported for backward compatibility, and are
72322 + rarely used. They all have the same effect: the section should be
72323 + marked as not allocatable, so that no memory is allocated for the
72324 + section when the program is run.
72325 +
72326 + The linker normally sets the attributes of an output section based on
72327 +the input sections which map into it. You can override this by using
72328 +the section type. For example, in the script sample below, the `ROM'
72329 +section is addressed at memory location `0' and does not need to be
72330 +loaded when the program is run. The contents of the `ROM' section will
72331 +appear in the linker output file as usual.
72332 + SECTIONS {
72333 + ROM 0 (NOLOAD) : { ... }
72334 + ...
72335 + }
72336 +
72337 +\1f
72338 +File: ld.info, Node: Output Section LMA, Next: Forced Output Alignment, Prev: Output Section Type, Up: Output Section Attributes
72339 +
72340 +3.6.8.2 Output Section LMA
72341 +..........................
72342 +
72343 +Every section has a virtual address (VMA) and a load address (LMA); see
72344 +*Note Basic Script Concepts::. The address expression which may appear
72345 +in an output section description sets the VMA (*note Output Section
72346 +Address::).
72347 +
72348 + The linker will normally set the LMA equal to the VMA. You can
72349 +change that by using the `AT' keyword. The expression LMA that follows
72350 +the `AT' keyword specifies the load address of the section.
72351 +
72352 + Alternatively, with `AT>LMA_REGION' expression, you may specify a
72353 +memory region for the section's load address. *Note MEMORY::. Note
72354 +that if the section has not had a VMA assigned to it then the linker
72355 +will use the LMA_REGION as the VMA region as well. *Note Output
72356 +Section Region::.
72357 +
72358 + This feature is designed to make it easy to build a ROM image. For
72359 +example, the following linker script creates three output sections: one
72360 +called `.text', which starts at `0x1000', one called `.mdata', which is
72361 +loaded at the end of the `.text' section even though its VMA is
72362 +`0x2000', and one called `.bss' to hold uninitialized data at address
72363 +`0x3000'. The symbol `_data' is defined with the value `0x2000', which
72364 +shows that the location counter holds the VMA value, not the LMA value.
72365 +
72366 + SECTIONS
72367 + {
72368 + .text 0x1000 : { *(.text) _etext = . ; }
72369 + .mdata 0x2000 :
72370 + AT ( ADDR (.text) + SIZEOF (.text) )
72371 + { _data = . ; *(.data); _edata = . ; }
72372 + .bss 0x3000 :
72373 + { _bstart = . ; *(.bss) *(COMMON) ; _bend = . ;}
72374 + }
72375 +
72376 + The run-time initialization code for use with a program generated
72377 +with this linker script would include something like the following, to
72378 +copy the initialized data from the ROM image to its runtime address.
72379 +Notice how this code takes advantage of the symbols defined by the
72380 +linker script.
72381 +
72382 + extern char _etext, _data, _edata, _bstart, _bend;
72383 + char *src = &_etext;
72384 + char *dst = &_data;
72385 +
72386 + /* ROM has data at end of text; copy it. */
72387 + while (dst < &_edata) {
72388 + *dst++ = *src++;
72389 + }
72390 +
72391 + /* Zero bss */
72392 + for (dst = &_bstart; dst< &_bend; dst++)
72393 + *dst = 0;
72394 +
72395 +\1f
72396 +File: ld.info, Node: Forced Output Alignment, Next: Forced Input Alignment, Prev: Output Section LMA, Up: Output Section Attributes
72397 +
72398 +3.6.8.3 Forced Output Alignment
72399 +...............................
72400 +
72401 +You can increase an output section's alignment by using ALIGN.
72402 +
72403 +\1f
72404 +File: ld.info, Node: Forced Input Alignment, Next: Output Section Region, Prev: Forced Output Alignment, Up: Output Section Attributes
72405 +
72406 +3.6.8.4 Forced Input Alignment
72407 +..............................
72408 +
72409 +You can force input section alignment within an output section by using
72410 +SUBALIGN. The value specified overrides any alignment given by input
72411 +sections, whether larger or smaller.
72412 +
72413 +\1f
72414 +File: ld.info, Node: Output Section Region, Next: Output Section Phdr, Prev: Forced Input Alignment, Up: Output Section Attributes
72415 +
72416 +3.6.8.5 Output Section Region
72417 +.............................
72418 +
72419 +You can assign a section to a previously defined region of memory by
72420 +using `>REGION'. *Note MEMORY::.
72421 +
72422 + Here is a simple example:
72423 + MEMORY { rom : ORIGIN = 0x1000, LENGTH = 0x1000 }
72424 + SECTIONS { ROM : { *(.text) } >rom }
72425 +
72426 +\1f
72427 +File: ld.info, Node: Output Section Phdr, Next: Output Section Fill, Prev: Output Section Region, Up: Output Section Attributes
72428 +
72429 +3.6.8.6 Output Section Phdr
72430 +...........................
72431 +
72432 +You can assign a section to a previously defined program segment by
72433 +using `:PHDR'. *Note PHDRS::. If a section is assigned to one or more
72434 +segments, then all subsequent allocated sections will be assigned to
72435 +those segments as well, unless they use an explicitly `:PHDR' modifier.
72436 +You can use `:NONE' to tell the linker to not put the section in any
72437 +segment at all.
72438 +
72439 + Here is a simple example:
72440 + PHDRS { text PT_LOAD ; }
72441 + SECTIONS { .text : { *(.text) } :text }
72442 +
72443 +\1f
72444 +File: ld.info, Node: Output Section Fill, Prev: Output Section Phdr, Up: Output Section Attributes
72445 +
72446 +3.6.8.7 Output Section Fill
72447 +...........................
72448 +
72449 +You can set the fill pattern for an entire section by using `=FILLEXP'.
72450 +FILLEXP is an expression (*note Expressions::). Any otherwise
72451 +unspecified regions of memory within the output section (for example,
72452 +gaps left due to the required alignment of input sections) will be
72453 +filled with the value, repeated as necessary. If the fill expression
72454 +is a simple hex number, ie. a string of hex digit starting with `0x'
72455 +and without a trailing `k' or `M', then an arbitrarily long sequence of
72456 +hex digits can be used to specify the fill pattern; Leading zeros
72457 +become part of the pattern too. For all other cases, including extra
72458 +parentheses or a unary `+', the fill pattern is the four least
72459 +significant bytes of the value of the expression. In all cases, the
72460 +number is big-endian.
72461 +
72462 + You can also change the fill value with a `FILL' command in the
72463 +output section commands; (*note Output Section Data::).
72464 +
72465 + Here is a simple example:
72466 + SECTIONS { .text : { *(.text) } =0x90909090 }
72467 +
72468 +\1f
72469 +File: ld.info, Node: Overlay Description, Prev: Output Section Attributes, Up: SECTIONS
72470 +
72471 +3.6.9 Overlay Description
72472 +-------------------------
72473 +
72474 +An overlay description provides an easy way to describe sections which
72475 +are to be loaded as part of a single memory image but are to be run at
72476 +the same memory address. At run time, some sort of overlay manager will
72477 +copy the overlaid sections in and out of the runtime memory address as
72478 +required, perhaps by simply manipulating addressing bits. This approach
72479 +can be useful, for example, when a certain region of memory is faster
72480 +than another.
72481 +
72482 + Overlays are described using the `OVERLAY' command. The `OVERLAY'
72483 +command is used within a `SECTIONS' command, like an output section
72484 +description. The full syntax of the `OVERLAY' command is as follows:
72485 + OVERLAY [START] : [NOCROSSREFS] [AT ( LDADDR )]
72486 + {
72487 + SECNAME1
72488 + {
72489 + OUTPUT-SECTION-COMMAND
72490 + OUTPUT-SECTION-COMMAND
72491 + ...
72492 + } [:PHDR...] [=FILL]
72493 + SECNAME2
72494 + {
72495 + OUTPUT-SECTION-COMMAND
72496 + OUTPUT-SECTION-COMMAND
72497 + ...
72498 + } [:PHDR...] [=FILL]
72499 + ...
72500 + } [>REGION] [:PHDR...] [=FILL]
72501 +
72502 + Everything is optional except `OVERLAY' (a keyword), and each
72503 +section must have a name (SECNAME1 and SECNAME2 above). The section
72504 +definitions within the `OVERLAY' construct are identical to those
72505 +within the general `SECTIONS' contruct (*note SECTIONS::), except that
72506 +no addresses and no memory regions may be defined for sections within
72507 +an `OVERLAY'.
72508 +
72509 + The sections are all defined with the same starting address. The
72510 +load addresses of the sections are arranged such that they are
72511 +consecutive in memory starting at the load address used for the
72512 +`OVERLAY' as a whole (as with normal section definitions, the load
72513 +address is optional, and defaults to the start address; the start
72514 +address is also optional, and defaults to the current value of the
72515 +location counter).
72516 +
72517 + If the `NOCROSSREFS' keyword is used, and there any references among
72518 +the sections, the linker will report an error. Since the sections all
72519 +run at the same address, it normally does not make sense for one
72520 +section to refer directly to another. *Note NOCROSSREFS: Miscellaneous
72521 +Commands.
72522 +
72523 + For each section within the `OVERLAY', the linker automatically
72524 +defines two symbols. The symbol `__load_start_SECNAME' is defined as
72525 +the starting load address of the section. The symbol
72526 +`__load_stop_SECNAME' is defined as the final load address of the
72527 +section. Any characters within SECNAME which are not legal within C
72528 +identifiers are removed. C (or assembler) code may use these symbols
72529 +to move the overlaid sections around as necessary.
72530 +
72531 + At the end of the overlay, the value of the location counter is set
72532 +to the start address of the overlay plus the size of the largest
72533 +section.
72534 +
72535 + Here is an example. Remember that this would appear inside a
72536 +`SECTIONS' construct.
72537 + OVERLAY 0x1000 : AT (0x4000)
72538 + {
72539 + .text0 { o1/*.o(.text) }
72540 + .text1 { o2/*.o(.text) }
72541 + }
72542 +This will define both `.text0' and `.text1' to start at address
72543 +0x1000. `.text0' will be loaded at address 0x4000, and `.text1' will
72544 +be loaded immediately after `.text0'. The following symbols will be
72545 +defined: `__load_start_text0', `__load_stop_text0',
72546 +`__load_start_text1', `__load_stop_text1'.
72547 +
72548 + C code to copy overlay `.text1' into the overlay area might look
72549 +like the following.
72550 +
72551 + extern char __load_start_text1, __load_stop_text1;
72552 + memcpy ((char *) 0x1000, &__load_start_text1,
72553 + &__load_stop_text1 - &__load_start_text1);
72554 +
72555 + Note that the `OVERLAY' command is just syntactic sugar, since
72556 +everything it does can be done using the more basic commands. The above
72557 +example could have been written identically as follows.
72558 +
72559 + .text0 0x1000 : AT (0x4000) { o1/*.o(.text) }
72560 + __load_start_text0 = LOADADDR (.text0);
72561 + __load_stop_text0 = LOADADDR (.text0) + SIZEOF (.text0);
72562 + .text1 0x1000 : AT (0x4000 + SIZEOF (.text0)) { o2/*.o(.text) }
72563 + __load_start_text1 = LOADADDR (.text1);
72564 + __load_stop_text1 = LOADADDR (.text1) + SIZEOF (.text1);
72565 + . = 0x1000 + MAX (SIZEOF (.text0), SIZEOF (.text1));
72566 +
72567 +\1f
72568 +File: ld.info, Node: MEMORY, Next: PHDRS, Prev: SECTIONS, Up: Scripts
72569 +
72570 +3.7 MEMORY Command
72571 +==================
72572 +
72573 +The linker's default configuration permits allocation of all available
72574 +memory. You can override this by using the `MEMORY' command.
72575 +
72576 + The `MEMORY' command describes the location and size of blocks of
72577 +memory in the target. You can use it to describe which memory regions
72578 +may be used by the linker, and which memory regions it must avoid. You
72579 +can then assign sections to particular memory regions. The linker will
72580 +set section addresses based on the memory regions, and will warn about
72581 +regions that become too full. The linker will not shuffle sections
72582 +around to fit into the available regions.
72583 +
72584 + A linker script may contain at most one use of the `MEMORY' command.
72585 +However, you can define as many blocks of memory within it as you
72586 +wish. The syntax is:
72587 + MEMORY
72588 + {
72589 + NAME [(ATTR)] : ORIGIN = ORIGIN, LENGTH = LEN
72590 + ...
72591 + }
72592 +
72593 + The NAME is a name used in the linker script to refer to the region.
72594 +The region name has no meaning outside of the linker script. Region
72595 +names are stored in a separate name space, and will not conflict with
72596 +symbol names, file names, or section names. Each memory region must
72597 +have a distinct name.
72598 +
72599 + The ATTR string is an optional list of attributes that specify
72600 +whether to use a particular memory region for an input section which is
72601 +not explicitly mapped in the linker script. As described in *Note
72602 +SECTIONS::, if you do not specify an output section for some input
72603 +section, the linker will create an output section with the same name as
72604 +the input section. If you define region attributes, the linker will use
72605 +them to select the memory region for the output section that it creates.
72606 +
72607 + The ATTR string must consist only of the following characters:
72608 +`R'
72609 + Read-only section
72610 +
72611 +`W'
72612 + Read/write section
72613 +
72614 +`X'
72615 + Executable section
72616 +
72617 +`A'
72618 + Allocatable section
72619 +
72620 +`I'
72621 + Initialized section
72622 +
72623 +`L'
72624 + Same as `I'
72625 +
72626 +`!'
72627 + Invert the sense of any of the preceding attributes
72628 +
72629 + If a unmapped section matches any of the listed attributes other than
72630 +`!', it will be placed in the memory region. The `!' attribute
72631 +reverses this test, so that an unmapped section will be placed in the
72632 +memory region only if it does not match any of the listed attributes.
72633 +
72634 + The ORIGIN is an numerical expression for the start address of the
72635 +memory region. The expression must evaluate to a constant and it
72636 +cannot involve any symbols. The keyword `ORIGIN' may be abbreviated to
72637 +`org' or `o' (but not, for example, `ORG').
72638 +
72639 + The LEN is an expression for the size in bytes of the memory region.
72640 +As with the ORIGIN expression, the expression must be numerical only
72641 +and must evaluate to a constant. The keyword `LENGTH' may be
72642 +abbreviated to `len' or `l'.
72643 +
72644 + In the following example, we specify that there are two memory
72645 +regions available for allocation: one starting at `0' for 256 kilobytes,
72646 +and the other starting at `0x40000000' for four megabytes. The linker
72647 +will place into the `rom' memory region every section which is not
72648 +explicitly mapped into a memory region, and is either read-only or
72649 +executable. The linker will place other sections which are not
72650 +explicitly mapped into a memory region into the `ram' memory region.
72651 +
72652 + MEMORY
72653 + {
72654 + rom (rx) : ORIGIN = 0, LENGTH = 256K
72655 + ram (!rx) : org = 0x40000000, l = 4M
72656 + }
72657 +
72658 + Once you define a memory region, you can direct the linker to place
72659 +specific output sections into that memory region by using the `>REGION'
72660 +output section attribute. For example, if you have a memory region
72661 +named `mem', you would use `>mem' in the output section definition.
72662 +*Note Output Section Region::. If no address was specified for the
72663 +output section, the linker will set the address to the next available
72664 +address within the memory region. If the combined output sections
72665 +directed to a memory region are too large for the region, the linker
72666 +will issue an error message.
72667 +
72668 + It is possible to access the origin and length of a memory in an
72669 +expression via the `ORIGIN(MEMORY)' and `LENGTH(MEMORY)' functions:
72670 +
72671 + _fstack = ORIGIN(ram) + LENGTH(ram) - 4;
72672 +
72673 +\1f
72674 +File: ld.info, Node: PHDRS, Next: VERSION, Prev: MEMORY, Up: Scripts
72675 +
72676 +3.8 PHDRS Command
72677 +=================
72678 +
72679 +The ELF object file format uses "program headers", also knows as
72680 +"segments". The program headers describe how the program should be
72681 +loaded into memory. You can print them out by using the `objdump'
72682 +program with the `-p' option.
72683 +
72684 + When you run an ELF program on a native ELF system, the system loader
72685 +reads the program headers in order to figure out how to load the
72686 +program. This will only work if the program headers are set correctly.
72687 +This manual does not describe the details of how the system loader
72688 +interprets program headers; for more information, see the ELF ABI.
72689 +
72690 + The linker will create reasonable program headers by default.
72691 +However, in some cases, you may need to specify the program headers more
72692 +precisely. You may use the `PHDRS' command for this purpose. When the
72693 +linker sees the `PHDRS' command in the linker script, it will not
72694 +create any program headers other than the ones specified.
72695 +
72696 + The linker only pays attention to the `PHDRS' command when
72697 +generating an ELF output file. In other cases, the linker will simply
72698 +ignore `PHDRS'.
72699 +
72700 + This is the syntax of the `PHDRS' command. The words `PHDRS',
72701 +`FILEHDR', `AT', and `FLAGS' are keywords.
72702 +
72703 + PHDRS
72704 + {
72705 + NAME TYPE [ FILEHDR ] [ PHDRS ] [ AT ( ADDRESS ) ]
72706 + [ FLAGS ( FLAGS ) ] ;
72707 + }
72708 +
72709 + The NAME is used only for reference in the `SECTIONS' command of the
72710 +linker script. It is not put into the output file. Program header
72711 +names are stored in a separate name space, and will not conflict with
72712 +symbol names, file names, or section names. Each program header must
72713 +have a distinct name.
72714 +
72715 + Certain program header types describe segments of memory which the
72716 +system loader will load from the file. In the linker script, you
72717 +specify the contents of these segments by placing allocatable output
72718 +sections in the segments. You use the `:PHDR' output section attribute
72719 +to place a section in a particular segment. *Note Output Section
72720 +Phdr::.
72721 +
72722 + It is normal to put certain sections in more than one segment. This
72723 +merely implies that one segment of memory contains another. You may
72724 +repeat `:PHDR', using it once for each segment which should contain the
72725 +section.
72726 +
72727 + If you place a section in one or more segments using `:PHDR', then
72728 +the linker will place all subsequent allocatable sections which do not
72729 +specify `:PHDR' in the same segments. This is for convenience, since
72730 +generally a whole set of contiguous sections will be placed in a single
72731 +segment. You can use `:NONE' to override the default segment and tell
72732 +the linker to not put the section in any segment at all.
72733 +
72734 + You may use the `FILEHDR' and `PHDRS' keywords appear after the
72735 +program header type to further describe the contents of the segment.
72736 +The `FILEHDR' keyword means that the segment should include the ELF
72737 +file header. The `PHDRS' keyword means that the segment should include
72738 +the ELF program headers themselves.
72739 +
72740 + The TYPE may be one of the following. The numbers indicate the
72741 +value of the keyword.
72742 +
72743 +`PT_NULL' (0)
72744 + Indicates an unused program header.
72745 +
72746 +`PT_LOAD' (1)
72747 + Indicates that this program header describes a segment to be
72748 + loaded from the file.
72749 +
72750 +`PT_DYNAMIC' (2)
72751 + Indicates a segment where dynamic linking information can be found.
72752 +
72753 +`PT_INTERP' (3)
72754 + Indicates a segment where the name of the program interpreter may
72755 + be found.
72756 +
72757 +`PT_NOTE' (4)
72758 + Indicates a segment holding note information.
72759 +
72760 +`PT_SHLIB' (5)
72761 + A reserved program header type, defined but not specified by the
72762 + ELF ABI.
72763 +
72764 +`PT_PHDR' (6)
72765 + Indicates a segment where the program headers may be found.
72766 +
72767 +EXPRESSION
72768 + An expression giving the numeric type of the program header. This
72769 + may be used for types not defined above.
72770 +
72771 + You can specify that a segment should be loaded at a particular
72772 +address in memory by using an `AT' expression. This is identical to the
72773 +`AT' command used as an output section attribute (*note Output Section
72774 +LMA::). The `AT' command for a program header overrides the output
72775 +section attribute.
72776 +
72777 + The linker will normally set the segment flags based on the sections
72778 +which comprise the segment. You may use the `FLAGS' keyword to
72779 +explicitly specify the segment flags. The value of FLAGS must be an
72780 +integer. It is used to set the `p_flags' field of the program header.
72781 +
72782 + Here is an example of `PHDRS'. This shows a typical set of program
72783 +headers used on a native ELF system.
72784 +
72785 + PHDRS
72786 + {
72787 + headers PT_PHDR PHDRS ;
72788 + interp PT_INTERP ;
72789 + text PT_LOAD FILEHDR PHDRS ;
72790 + data PT_LOAD ;
72791 + dynamic PT_DYNAMIC ;
72792 + }
72793 +
72794 + SECTIONS
72795 + {
72796 + . = SIZEOF_HEADERS;
72797 + .interp : { *(.interp) } :text :interp
72798 + .text : { *(.text) } :text
72799 + .rodata : { *(.rodata) } /* defaults to :text */
72800 + ...
72801 + . = . + 0x1000; /* move to a new page in memory */
72802 + .data : { *(.data) } :data
72803 + .dynamic : { *(.dynamic) } :data :dynamic
72804 + ...
72805 + }
72806 +
72807 +\1f
72808 +File: ld.info, Node: VERSION, Next: Expressions, Prev: PHDRS, Up: Scripts
72809 +
72810 +3.9 VERSION Command
72811 +===================
72812 +
72813 +The linker supports symbol versions when using ELF. Symbol versions are
72814 +only useful when using shared libraries. The dynamic linker can use
72815 +symbol versions to select a specific version of a function when it runs
72816 +a program that may have been linked against an earlier version of the
72817 +shared library.
72818 +
72819 + You can include a version script directly in the main linker script,
72820 +or you can supply the version script as an implicit linker script. You
72821 +can also use the `--version-script' linker option.
72822 +
72823 + The syntax of the `VERSION' command is simply
72824 + VERSION { version-script-commands }
72825 +
72826 + The format of the version script commands is identical to that used
72827 +by Sun's linker in Solaris 2.5. The version script defines a tree of
72828 +version nodes. You specify the node names and interdependencies in the
72829 +version script. You can specify which symbols are bound to which
72830 +version nodes, and you can reduce a specified set of symbols to local
72831 +scope so that they are not globally visible outside of the shared
72832 +library.
72833 +
72834 + The easiest way to demonstrate the version script language is with a
72835 +few examples.
72836 +
72837 + VERS_1.1 {
72838 + global:
72839 + foo1;
72840 + local:
72841 + old*;
72842 + original*;
72843 + new*;
72844 + };
72845 +
72846 + VERS_1.2 {
72847 + foo2;
72848 + } VERS_1.1;
72849 +
72850 + VERS_2.0 {
72851 + bar1; bar2;
72852 + extern "C++" {
72853 + ns::*;
72854 + "int f(int, double)";
72855 + }
72856 + } VERS_1.2;
72857 +
72858 + This example version script defines three version nodes. The first
72859 +version node defined is `VERS_1.1'; it has no other dependencies. The
72860 +script binds the symbol `foo1' to `VERS_1.1'. It reduces a number of
72861 +symbols to local scope so that they are not visible outside of the
72862 +shared library; this is done using wildcard patterns, so that any
72863 +symbol whose name begins with `old', `original', or `new' is matched.
72864 +The wildcard patterns available are the same as those used in the shell
72865 +when matching filenames (also known as "globbing"). However, if you
72866 +specify the symbol name inside double quotes, then the name is treated
72867 +as literal, rather than as a glob pattern.
72868 +
72869 + Next, the version script defines node `VERS_1.2'. This node depends
72870 +upon `VERS_1.1'. The script binds the symbol `foo2' to the version
72871 +node `VERS_1.2'.
72872 +
72873 + Finally, the version script defines node `VERS_2.0'. This node
72874 +depends upon `VERS_1.2'. The scripts binds the symbols `bar1' and
72875 +`bar2' are bound to the version node `VERS_2.0'.
72876 +
72877 + When the linker finds a symbol defined in a library which is not
72878 +specifically bound to a version node, it will effectively bind it to an
72879 +unspecified base version of the library. You can bind all otherwise
72880 +unspecified symbols to a given version node by using `global: *;'
72881 +somewhere in the version script.
72882 +
72883 + The names of the version nodes have no specific meaning other than
72884 +what they might suggest to the person reading them. The `2.0' version
72885 +could just as well have appeared in between `1.1' and `1.2'. However,
72886 +this would be a confusing way to write a version script.
72887 +
72888 + Node name can be omited, provided it is the only version node in the
72889 +version script. Such version script doesn't assign any versions to
72890 +symbols, only selects which symbols will be globally visible out and
72891 +which won't.
72892 +
72893 + { global: foo; bar; local: *; };
72894 +
72895 + When you link an application against a shared library that has
72896 +versioned symbols, the application itself knows which version of each
72897 +symbol it requires, and it also knows which version nodes it needs from
72898 +each shared library it is linked against. Thus at runtime, the dynamic
72899 +loader can make a quick check to make sure that the libraries you have
72900 +linked against do in fact supply all of the version nodes that the
72901 +application will need to resolve all of the dynamic symbols. In this
72902 +way it is possible for the dynamic linker to know with certainty that
72903 +all external symbols that it needs will be resolvable without having to
72904 +search for each symbol reference.
72905 +
72906 + The symbol versioning is in effect a much more sophisticated way of
72907 +doing minor version checking that SunOS does. The fundamental problem
72908 +that is being addressed here is that typically references to external
72909 +functions are bound on an as-needed basis, and are not all bound when
72910 +the application starts up. If a shared library is out of date, a
72911 +required interface may be missing; when the application tries to use
72912 +that interface, it may suddenly and unexpectedly fail. With symbol
72913 +versioning, the user will get a warning when they start their program if
72914 +the libraries being used with the application are too old.
72915 +
72916 + There are several GNU extensions to Sun's versioning approach. The
72917 +first of these is the ability to bind a symbol to a version node in the
72918 +source file where the symbol is defined instead of in the versioning
72919 +script. This was done mainly to reduce the burden on the library
72920 +maintainer. You can do this by putting something like:
72921 + __asm__(".symver original_foo,foo@VERS_1.1");
72922 + in the C source file. This renames the function `original_foo' to
72923 +be an alias for `foo' bound to the version node `VERS_1.1'. The
72924 +`local:' directive can be used to prevent the symbol `original_foo'
72925 +from being exported. A `.symver' directive takes precedence over a
72926 +version script.
72927 +
72928 + The second GNU extension is to allow multiple versions of the same
72929 +function to appear in a given shared library. In this way you can make
72930 +an incompatible change to an interface without increasing the major
72931 +version number of the shared library, while still allowing applications
72932 +linked against the old interface to continue to function.
72933 +
72934 + To do this, you must use multiple `.symver' directives in the source
72935 +file. Here is an example:
72936 +
72937 + __asm__(".symver original_foo,foo@");
72938 + __asm__(".symver old_foo,foo@VERS_1.1");
72939 + __asm__(".symver old_foo1,foo@VERS_1.2");
72940 + __asm__(".symver new_foo,foo@@VERS_2.0");
72941 +
72942 + In this example, `foo@' represents the symbol `foo' bound to the
72943 +unspecified base version of the symbol. The source file that contains
72944 +this example would define 4 C functions: `original_foo', `old_foo',
72945 +`old_foo1', and `new_foo'.
72946 +
72947 + When you have multiple definitions of a given symbol, there needs to
72948 +be some way to specify a default version to which external references to
72949 +this symbol will be bound. You can do this with the `foo@@VERS_2.0'
72950 +type of `.symver' directive. You can only declare one version of a
72951 +symbol as the default in this manner; otherwise you would effectively
72952 +have multiple definitions of the same symbol.
72953 +
72954 + If you wish to bind a reference to a specific version of the symbol
72955 +within the shared library, you can use the aliases of convenience
72956 +(i.e., `old_foo'), or you can use the `.symver' directive to
72957 +specifically bind to an external version of the function in question.
72958 +
72959 + You can also specify the language in the version script:
72960 +
72961 + VERSION extern "lang" { version-script-commands }
72962 +
72963 + The supported `lang's are `C', `C++', and `Java'. The linker will
72964 +iterate over the list of symbols at the link time and demangle them
72965 +according to `lang' before matching them to the patterns specified in
72966 +`version-script-commands'.
72967 +
72968 + Demangled names may contains spaces and other special characters. As
72969 +described above, you can use a glob pattern to match demangled names,
72970 +or you can use a double-quoted string to match the string exactly. In
72971 +the latter case, be aware that minor differences (such as differing
72972 +whitespace) between the version script and the demangler output will
72973 +cause a mismatch. As the exact string generated by the demangler might
72974 +change in the future, even if the mangled name does not, you should
72975 +check that all of your version directives are behaving as you expect
72976 +when you upgrade.
72977 +
72978 +\1f
72979 +File: ld.info, Node: Expressions, Next: Implicit Linker Scripts, Prev: VERSION, Up: Scripts
72980 +
72981 +3.10 Expressions in Linker Scripts
72982 +==================================
72983 +
72984 +The syntax for expressions in the linker script language is identical to
72985 +that of C expressions. All expressions are evaluated as integers. All
72986 +expressions are evaluated in the same size, which is 32 bits if both the
72987 +host and target are 32 bits, and is otherwise 64 bits.
72988 +
72989 + You can use and set symbol values in expressions.
72990 +
72991 + The linker defines several special purpose builtin functions for use
72992 +in expressions.
72993 +
72994 +* Menu:
72995 +
72996 +* Constants:: Constants
72997 +* Symbols:: Symbol Names
72998 +* Orphan Sections:: Orphan Sections
72999 +* Location Counter:: The Location Counter
73000 +* Operators:: Operators
73001 +* Evaluation:: Evaluation
73002 +* Expression Section:: The Section of an Expression
73003 +* Builtin Functions:: Builtin Functions
73004 +
73005 +\1f
73006 +File: ld.info, Node: Constants, Next: Symbols, Up: Expressions
73007 +
73008 +3.10.1 Constants
73009 +----------------
73010 +
73011 +All constants are integers.
73012 +
73013 + As in C, the linker considers an integer beginning with `0' to be
73014 +octal, and an integer beginning with `0x' or `0X' to be hexadecimal.
73015 +The linker considers other integers to be decimal.
73016 +
73017 + In addition, you can use the suffixes `K' and `M' to scale a
73018 +constant by `1024' or `1024*1024' respectively. For example, the
73019 +following all refer to the same quantity:
73020 + _fourk_1 = 4K;
73021 + _fourk_2 = 4096;
73022 + _fourk_3 = 0x1000;
73023 +
73024 +\1f
73025 +File: ld.info, Node: Symbols, Next: Orphan Sections, Prev: Constants, Up: Expressions
73026 +
73027 +3.10.2 Symbol Names
73028 +-------------------
73029 +
73030 +Unless quoted, symbol names start with a letter, underscore, or period
73031 +and may include letters, digits, underscores, periods, and hyphens.
73032 +Unquoted symbol names must not conflict with any keywords. You can
73033 +specify a symbol which contains odd characters or has the same name as a
73034 +keyword by surrounding the symbol name in double quotes:
73035 + "SECTION" = 9;
73036 + "with a space" = "also with a space" + 10;
73037 +
73038 + Since symbols can contain many non-alphabetic characters, it is
73039 +safest to delimit symbols with spaces. For example, `A-B' is one
73040 +symbol, whereas `A - B' is an expression involving subtraction.
73041 +
73042 +\1f
73043 +File: ld.info, Node: Orphan Sections, Next: Location Counter, Prev: Symbols, Up: Expressions
73044 +
73045 +3.10.3 Orphan Sections
73046 +----------------------
73047 +
73048 +Orphan sections are sections present in the input files which are not
73049 +explicitly placed into the output file by the linker script. The
73050 +linker will still copy these sections into the output file, but it has
73051 +to guess as to where they should be placed. The linker uses a simple
73052 +heuristic to do this. It attempts to place orphan sections after
73053 +non-orphan sections of the same attribute, such as code vs data,
73054 +loadable vs non-loadable, etc. If there is not enough room to do this
73055 +then it places at the end of the file.
73056 +
73057 + For ELF targets, the attribute of the section includes section type
73058 +as well as section flag.
73059 +
73060 +\1f
73061 +File: ld.info, Node: Location Counter, Next: Operators, Prev: Orphan Sections, Up: Expressions
73062 +
73063 +3.10.4 The Location Counter
73064 +---------------------------
73065 +
73066 +The special linker variable "dot" `.' always contains the current
73067 +output location counter. Since the `.' always refers to a location in
73068 +an output section, it may only appear in an expression within a
73069 +`SECTIONS' command. The `.' symbol may appear anywhere that an
73070 +ordinary symbol is allowed in an expression.
73071 +
73072 + Assigning a value to `.' will cause the location counter to be
73073 +moved. This may be used to create holes in the output section. The
73074 +location counter may never be moved backwards.
73075 +
73076 + SECTIONS
73077 + {
73078 + output :
73079 + {
73080 + file1(.text)
73081 + . = . + 1000;
73082 + file2(.text)
73083 + . += 1000;
73084 + file3(.text)
73085 + } = 0x12345678;
73086 + }
73087 + In the previous example, the `.text' section from `file1' is located
73088 +at the beginning of the output section `output'. It is followed by a
73089 +1000 byte gap. Then the `.text' section from `file2' appears, also
73090 +with a 1000 byte gap following before the `.text' section from `file3'.
73091 +The notation `= 0x12345678' specifies what data to write in the gaps
73092 +(*note Output Section Fill::).
73093 +
73094 + Note: `.' actually refers to the byte offset from the start of the
73095 +current containing object. Normally this is the `SECTIONS' statement,
73096 +whose start address is 0, hence `.' can be used as an absolute address.
73097 +If `.' is used inside a section description however, it refers to the
73098 +byte offset from the start of that section, not an absolute address.
73099 +Thus in a script like this:
73100 +
73101 + SECTIONS
73102 + {
73103 + . = 0x100
73104 + .text: {
73105 + *(.text)
73106 + . = 0x200
73107 + }
73108 + . = 0x500
73109 + .data: {
73110 + *(.data)
73111 + . += 0x600
73112 + }
73113 + }
73114 +
73115 + The `.text' section will be assigned a starting address of 0x100 and
73116 +a size of exactly 0x200 bytes, even if there is not enough data in the
73117 +`.text' input sections to fill this area. (If there is too much data,
73118 +an error will be produced because this would be an attempt to move `.'
73119 +backwards). The `.data' section will start at 0x500 and it will have
73120 +an extra 0x600 bytes worth of space after the end of the values from
73121 +the `.data' input sections and before the end of the `.data' output
73122 +section itself.
73123 +
73124 + Setting symbols to the value of the location counter outside of an
73125 +output section statement can result in unexpected values if the linker
73126 +needs to place orphan sections. For example, given the following:
73127 +
73128 + SECTIONS
73129 + {
73130 + start_of_text = . ;
73131 + .text: { *(.text) }
73132 + end_of_text = . ;
73133 +
73134 + start_of_data = . ;
73135 + .data: { *(.data) }
73136 + end_of_data = . ;
73137 + }
73138 +
73139 + If the linker needs to place some input section, e.g. `.rodata', not
73140 +mentioned in the script, it might choose to place that section between
73141 +`.text' and `.data'. You might think the linker should place `.rodata'
73142 +on the blank line in the above script, but blank lines are of no
73143 +particular significance to the linker. As well, the linker doesn't
73144 +associate the above symbol names with their sections. Instead, it
73145 +assumes that all assignments or other statements belong to the previous
73146 +output section, except for the special case of an assignment to `.'.
73147 +I.e., the linker will place the orphan `.rodata' section as if the
73148 +script was written as follows:
73149 +
73150 + SECTIONS
73151 + {
73152 + start_of_text = . ;
73153 + .text: { *(.text) }
73154 + end_of_text = . ;
73155 +
73156 + start_of_data = . ;
73157 + .rodata: { *(.rodata) }
73158 + .data: { *(.data) }
73159 + end_of_data = . ;
73160 + }
73161 +
73162 + This may or may not be the script author's intention for the value of
73163 +`start_of_data'. One way to influence the orphan section placement is
73164 +to assign the location counter to itself, as the linker assumes that an
73165 +assignment to `.' is setting the start address of a following output
73166 +section and thus should be grouped with that section. So you could
73167 +write:
73168 +
73169 + SECTIONS
73170 + {
73171 + start_of_text = . ;
73172 + .text: { *(.text) }
73173 + end_of_text = . ;
73174 +
73175 + . = . ;
73176 + start_of_data = . ;
73177 + .data: { *(.data) }
73178 + end_of_data = . ;
73179 + }
73180 +
73181 + Now, the orphan `.rodata' section will be placed between
73182 +`end_of_text' and `start_of_data'.
73183 +
73184 +\1f
73185 +File: ld.info, Node: Operators, Next: Evaluation, Prev: Location Counter, Up: Expressions
73186 +
73187 +3.10.5 Operators
73188 +----------------
73189 +
73190 +The linker recognizes the standard C set of arithmetic operators, with
73191 +the standard bindings and precedence levels:
73192 + precedence associativity Operators Notes
73193 + (highest)
73194 + 1 left ! - ~ (1)
73195 + 2 left * / %
73196 + 3 left + -
73197 + 4 left >> <<
73198 + 5 left == != > < <= >=
73199 + 6 left &
73200 + 7 left |
73201 + 8 left &&
73202 + 9 left ||
73203 + 10 right ? :
73204 + 11 right &= += -= *= /= (2)
73205 + (lowest)
73206 + Notes: (1) Prefix operators (2) *Note Assignments::.
73207 +
73208 +\1f
73209 +File: ld.info, Node: Evaluation, Next: Expression Section, Prev: Operators, Up: Expressions
73210 +
73211 +3.10.6 Evaluation
73212 +-----------------
73213 +
73214 +The linker evaluates expressions lazily. It only computes the value of
73215 +an expression when absolutely necessary.
73216 +
73217 + The linker needs some information, such as the value of the start
73218 +address of the first section, and the origins and lengths of memory
73219 +regions, in order to do any linking at all. These values are computed
73220 +as soon as possible when the linker reads in the linker script.
73221 +
73222 + However, other values (such as symbol values) are not known or needed
73223 +until after storage allocation. Such values are evaluated later, when
73224 +other information (such as the sizes of output sections) is available
73225 +for use in the symbol assignment expression.
73226 +
73227 + The sizes of sections cannot be known until after allocation, so
73228 +assignments dependent upon these are not performed until after
73229 +allocation.
73230 +
73231 + Some expressions, such as those depending upon the location counter
73232 +`.', must be evaluated during section allocation.
73233 +
73234 + If the result of an expression is required, but the value is not
73235 +available, then an error results. For example, a script like the
73236 +following
73237 + SECTIONS
73238 + {
73239 + .text 9+this_isnt_constant :
73240 + { *(.text) }
73241 + }
73242 +will cause the error message `non constant expression for initial
73243 +address'.
73244 +
73245 +\1f
73246 +File: ld.info, Node: Expression Section, Next: Builtin Functions, Prev: Evaluation, Up: Expressions
73247 +
73248 +3.10.7 The Section of an Expression
73249 +-----------------------------------
73250 +
73251 +When the linker evaluates an expression, the result is either absolute
73252 +or relative to some section. A relative expression is expressed as a
73253 +fixed offset from the base of a section.
73254 +
73255 + The position of the expression within the linker script determines
73256 +whether it is absolute or relative. An expression which appears within
73257 +an output section definition is relative to the base of the output
73258 +section. An expression which appears elsewhere will be absolute.
73259 +
73260 + A symbol set to a relative expression will be relocatable if you
73261 +request relocatable output using the `-r' option. That means that a
73262 +further link operation may change the value of the symbol. The symbol's
73263 +section will be the section of the relative expression.
73264 +
73265 + A symbol set to an absolute expression will retain the same value
73266 +through any further link operation. The symbol will be absolute, and
73267 +will not have any particular associated section.
73268 +
73269 + You can use the builtin function `ABSOLUTE' to force an expression
73270 +to be absolute when it would otherwise be relative. For example, to
73271 +create an absolute symbol set to the address of the end of the output
73272 +section `.data':
73273 + SECTIONS
73274 + {
73275 + .data : { *(.data) _edata = ABSOLUTE(.); }
73276 + }
73277 + If `ABSOLUTE' were not used, `_edata' would be relative to the
73278 +`.data' section.
73279 +
73280 +\1f
73281 +File: ld.info, Node: Builtin Functions, Prev: Expression Section, Up: Expressions
73282 +
73283 +3.10.8 Builtin Functions
73284 +------------------------
73285 +
73286 +The linker script language includes a number of builtin functions for
73287 +use in linker script expressions.
73288 +
73289 +`ABSOLUTE(EXP)'
73290 + Return the absolute (non-relocatable, as opposed to non-negative)
73291 + value of the expression EXP. Primarily useful to assign an
73292 + absolute value to a symbol within a section definition, where
73293 + symbol values are normally section relative. *Note Expression
73294 + Section::.
73295 +
73296 +`ADDR(SECTION)'
73297 + Return the absolute address (the VMA) of the named SECTION. Your
73298 + script must previously have defined the location of that section.
73299 + In the following example, `symbol_1' and `symbol_2' are assigned
73300 + identical values:
73301 + SECTIONS { ...
73302 + .output1 :
73303 + {
73304 + start_of_output_1 = ABSOLUTE(.);
73305 + ...
73306 + }
73307 + .output :
73308 + {
73309 + symbol_1 = ADDR(.output1);
73310 + symbol_2 = start_of_output_1;
73311 + }
73312 + ... }
73313 +
73314 +`ALIGN(ALIGN)'
73315 +`ALIGN(EXP,ALIGN)'
73316 + Return the location counter (`.') or arbitrary expression aligned
73317 + to the next ALIGN boundary. The single operand `ALIGN' doesn't
73318 + change the value of the location counter--it just does arithmetic
73319 + on it. The two operand `ALIGN' allows an arbitrary expression to
73320 + be aligned upwards (`ALIGN(ALIGN)' is equivalent to `ALIGN(.,
73321 + ALIGN)').
73322 +
73323 + Here is an example which aligns the output `.data' section to the
73324 + next `0x2000' byte boundary after the preceding section and sets a
73325 + variable within the section to the next `0x8000' boundary after the
73326 + input sections:
73327 + SECTIONS { ...
73328 + .data ALIGN(0x2000): {
73329 + *(.data)
73330 + variable = ALIGN(0x8000);
73331 + }
73332 + ... }
73333 + The first use of `ALIGN' in this example specifies the
73334 + location of a section because it is used as the optional ADDRESS
73335 + attribute of a section definition (*note Output Section
73336 + Address::). The second use of `ALIGN' is used to defines the
73337 + value of a symbol.
73338 +
73339 + The builtin function `NEXT' is closely related to `ALIGN'.
73340 +
73341 +`BLOCK(EXP)'
73342 + This is a synonym for `ALIGN', for compatibility with older linker
73343 + scripts. It is most often seen when setting the address of an
73344 + output section.
73345 +
73346 +`DATA_SEGMENT_ALIGN(MAXPAGESIZE, COMMONPAGESIZE)'
73347 + This is equivalent to either
73348 + (ALIGN(MAXPAGESIZE) + (. & (MAXPAGESIZE - 1)))
73349 + or
73350 + (ALIGN(MAXPAGESIZE) + (. & (MAXPAGESIZE - COMMONPAGESIZE)))
73351 + depending on whether the latter uses fewer COMMONPAGESIZE sized
73352 + pages for the data segment (area between the result of this
73353 + expression and `DATA_SEGMENT_END') than the former or not. If the
73354 + latter form is used, it means COMMONPAGESIZE bytes of runtime
73355 + memory will be saved at the expense of up to COMMONPAGESIZE wasted
73356 + bytes in the on-disk file.
73357 +
73358 + This expression can only be used directly in `SECTIONS' commands,
73359 + not in any output section descriptions and only once in the linker
73360 + script. COMMONPAGESIZE should be less or equal to MAXPAGESIZE and
73361 + should be the system page size the object wants to be optimized
73362 + for (while still working on system page sizes up to MAXPAGESIZE).
73363 +
73364 + Example:
73365 + . = DATA_SEGMENT_ALIGN(0x10000, 0x2000);
73366 +
73367 +`DATA_SEGMENT_END(EXP)'
73368 + This defines the end of data segment for `DATA_SEGMENT_ALIGN'
73369 + evaluation purposes.
73370 +
73371 + . = DATA_SEGMENT_END(.);
73372 +
73373 +`DATA_SEGMENT_RELRO_END(OFFSET, EXP)'
73374 + This defines the end of the `PT_GNU_RELRO' segment when `-z relro'
73375 + option is used. Second argument is returned. When `-z relro'
73376 + option is not present, `DATA_SEGMENT_RELRO_END' does nothing,
73377 + otherwise `DATA_SEGMENT_ALIGN' is padded so that EXP + OFFSET is
73378 + aligned to the most commonly used page boundary for particular
73379 + target. If present in the linker script, it must always come in
73380 + between `DATA_SEGMENT_ALIGN' and `DATA_SEGMENT_END'.
73381 +
73382 + . = DATA_SEGMENT_RELRO_END(24, .);
73383 +
73384 +`DEFINED(SYMBOL)'
73385 + Return 1 if SYMBOL is in the linker global symbol table and is
73386 + defined before the statement using DEFINED in the script, otherwise
73387 + return 0. You can use this function to provide default values for
73388 + symbols. For example, the following script fragment shows how to
73389 + set a global symbol `begin' to the first location in the `.text'
73390 + section--but if a symbol called `begin' already existed, its value
73391 + is preserved:
73392 +
73393 + SECTIONS { ...
73394 + .text : {
73395 + begin = DEFINED(begin) ? begin : . ;
73396 + ...
73397 + }
73398 + ...
73399 + }
73400 +
73401 +`LENGTH(MEMORY)'
73402 + Return the length of the memory region named MEMORY.
73403 +
73404 +`LOADADDR(SECTION)'
73405 + Return the absolute LMA of the named SECTION. This is normally
73406 + the same as `ADDR', but it may be different if the `AT' attribute
73407 + is used in the output section definition (*note Output Section
73408 + LMA::).
73409 +
73410 +`MAX(EXP1, EXP2)'
73411 + Returns the maximum of EXP1 and EXP2.
73412 +
73413 +`MIN(EXP1, EXP2)'
73414 + Returns the minimum of EXP1 and EXP2.
73415 +
73416 +`NEXT(EXP)'
73417 + Return the next unallocated address that is a multiple of EXP.
73418 + This function is closely related to `ALIGN(EXP)'; unless you use
73419 + the `MEMORY' command to define discontinuous memory for the output
73420 + file, the two functions are equivalent.
73421 +
73422 +`ORIGIN(MEMORY)'
73423 + Return the origin of the memory region named MEMORY.
73424 +
73425 +`SEGMENT_START(SEGMENT, DEFAULT)'
73426 + Return the base address of the named SEGMENT. If an explicit
73427 + value has been given for this segment (with a command-line `-T'
73428 + option) that value will be returned; otherwise the value will be
73429 + DEFAULT. At present, the `-T' command-line option can only be
73430 + used to set the base address for the "text", "data", and "bss"
73431 + sections, but you use `SEGMENT_START' with any segment name.
73432 +
73433 +`SIZEOF(SECTION)'
73434 + Return the size in bytes of the named SECTION, if that section has
73435 + been allocated. If the section has not been allocated when this is
73436 + evaluated, the linker will report an error. In the following
73437 + example, `symbol_1' and `symbol_2' are assigned identical values:
73438 + SECTIONS{ ...
73439 + .output {
73440 + .start = . ;
73441 + ...
73442 + .end = . ;
73443 + }
73444 + symbol_1 = .end - .start ;
73445 + symbol_2 = SIZEOF(.output);
73446 + ... }
73447 +
73448 +`SIZEOF_HEADERS'
73449 +`sizeof_headers'
73450 + Return the size in bytes of the output file's headers. This is
73451 + information which appears at the start of the output file. You
73452 + can use this number when setting the start address of the first
73453 + section, if you choose, to facilitate paging.
73454 +
73455 + When producing an ELF output file, if the linker script uses the
73456 + `SIZEOF_HEADERS' builtin function, the linker must compute the
73457 + number of program headers before it has determined all the section
73458 + addresses and sizes. If the linker later discovers that it needs
73459 + additional program headers, it will report an error `not enough
73460 + room for program headers'. To avoid this error, you must avoid
73461 + using the `SIZEOF_HEADERS' function, or you must rework your linker
73462 + script to avoid forcing the linker to use additional program
73463 + headers, or you must define the program headers yourself using the
73464 + `PHDRS' command (*note PHDRS::).
73465 +
73466 +\1f
73467 +File: ld.info, Node: Implicit Linker Scripts, Prev: Expressions, Up: Scripts
73468 +
73469 +3.11 Implicit Linker Scripts
73470 +============================
73471 +
73472 +If you specify a linker input file which the linker can not recognize as
73473 +an object file or an archive file, it will try to read the file as a
73474 +linker script. If the file can not be parsed as a linker script, the
73475 +linker will report an error.
73476 +
73477 + An implicit linker script will not replace the default linker script.
73478 +
73479 + Typically an implicit linker script would contain only symbol
73480 +assignments, or the `INPUT', `GROUP', or `VERSION' commands.
73481 +
73482 + Any input files read because of an implicit linker script will be
73483 +read at the position in the command line where the implicit linker
73484 +script was read. This can affect archive searching.
73485 +
73486 +\1f
73487 +File: ld.info, Node: Machine Dependent, Next: BFD, Prev: Scripts, Up: Top
73488 +
73489 +4 Machine Dependent Features
73490 +****************************
73491 +
73492 +`ld' has additional features on some platforms; the following sections
73493 +describe them. Machines where `ld' has no additional functionality are
73494 +not listed.
73495 +
73496 +* Menu:
73497 +
73498 +
73499 +* H8/300:: `ld' and the H8/300
73500 +
73501 +* i960:: `ld' and the Intel 960 family
73502 +
73503 +* ARM:: `ld' and the ARM family
73504 +
73505 +* HPPA ELF32:: `ld' and HPPA 32-bit ELF
73506 +
73507 +* MMIX:: `ld' and MMIX
73508 +
73509 +* MSP430:: `ld' and MSP430
73510 +
73511 +* PowerPC ELF32:: `ld' and PowerPC 32-bit ELF Support
73512 +
73513 +* PowerPC64 ELF64:: `ld' and PowerPC64 64-bit ELF Support
73514 +
73515 +* TI COFF:: `ld' and TI COFF
73516 +
73517 +* WIN32:: `ld' and WIN32 (cygwin/mingw)
73518 +
73519 +* Xtensa:: `ld' and Xtensa Processors
73520 +
73521 +\1f
73522 +File: ld.info, Node: H8/300, Next: i960, Up: Machine Dependent
73523 +
73524 +4.1 `ld' and the H8/300
73525 +=======================
73526 +
73527 +For the H8/300, `ld' can perform these global optimizations when you
73528 +specify the `--relax' command-line option.
73529 +
73530 +_relaxing address modes_
73531 + `ld' finds all `jsr' and `jmp' instructions whose targets are
73532 + within eight bits, and turns them into eight-bit program-counter
73533 + relative `bsr' and `bra' instructions, respectively.
73534 +
73535 +_synthesizing instructions_
73536 + `ld' finds all `mov.b' instructions which use the sixteen-bit
73537 + absolute address form, but refer to the top page of memory, and
73538 + changes them to use the eight-bit address form. (That is: the
73539 + linker turns `mov.b `@'AA:16' into `mov.b `@'AA:8' whenever the
73540 + address AA is in the top page of memory).
73541 +
73542 +_bit manipulation instructions_
73543 + `ld' finds all bit manipulation instructions like `band, bclr,
73544 + biand, bild, bior, bist, bixor, bld, bnot, bor, bset, bst, btst,
73545 + bxor' which use 32 bit and 16 bit absolute address form, but refer
73546 + to the top page of memory, and changes them to use the 8 bit
73547 + address form. (That is: the linker turns `bset #xx:3,`@'AA:32'
73548 + into `bset #xx:3,`@'AA:8' whenever the address AA is in the top
73549 + page of memory).
73550 +
73551 +_system control instructions_
73552 + `ld' finds all `ldc.w, stc.w' instrcutions which use the 32 bit
73553 + absolute address form, but refer to the top page of memory, and
73554 + changes them to use 16 bit address form. (That is: the linker
73555 + turns `ldc.w `@'AA:32,ccr' into `ldc.w `@'AA:16,ccr' whenever the
73556 + address AA is in the top page of memory).
73557 +
73558 +\1f
73559 +File: ld.info, Node: i960, Next: ARM, Prev: H8/300, Up: Machine Dependent
73560 +
73561 +4.2 `ld' and the Intel 960 Family
73562 +=================================
73563 +
73564 +You can use the `-AARCHITECTURE' command line option to specify one of
73565 +the two-letter names identifying members of the 960 family; the option
73566 +specifies the desired output target, and warns of any incompatible
73567 +instructions in the input files. It also modifies the linker's search
73568 +strategy for archive libraries, to support the use of libraries
73569 +specific to each particular architecture, by including in the search
73570 +loop names suffixed with the string identifying the architecture.
73571 +
73572 + For example, if your `ld' command line included `-ACA' as well as
73573 +`-ltry', the linker would look (in its built-in search paths, and in
73574 +any paths you specify with `-L') for a library with the names
73575 +
73576 + try
73577 + libtry.a
73578 + tryca
73579 + libtryca.a
73580 +
73581 +The first two possibilities would be considered in any event; the last
73582 +two are due to the use of `-ACA'.
73583 +
73584 + You can meaningfully use `-A' more than once on a command line, since
73585 +the 960 architecture family allows combination of target architectures;
73586 +each use will add another pair of name variants to search for when `-l'
73587 +specifies a library.
73588 +
73589 + `ld' supports the `--relax' option for the i960 family. If you
73590 +specify `--relax', `ld' finds all `balx' and `calx' instructions whose
73591 +targets are within 24 bits, and turns them into 24-bit program-counter
73592 +relative `bal' and `cal' instructions, respectively. `ld' also turns
73593 +`cal' instructions into `bal' instructions when it determines that the
73594 +target subroutine is a leaf routine (that is, the target subroutine does
73595 +not itself call any subroutines).
73596 +
73597 +\1f
73598 +File: ld.info, Node: ARM, Next: HPPA ELF32, Prev: i960, Up: Machine Dependent
73599 +
73600 +4.3 `ld' and the ARM family
73601 +===========================
73602 +
73603 +For the ARM, `ld' will generate code stubs to allow functions calls
73604 +betweem ARM and Thumb code. These stubs only work with code that has
73605 +been compiled and assembled with the `-mthumb-interwork' command line
73606 +option. If it is necessary to link with old ARM object files or
73607 +libraries, which have not been compiled with the -mthumb-interwork
73608 +option then the `--support-old-code' command line switch should be
73609 +given to the linker. This will make it generate larger stub functions
73610 +which will work with non-interworking aware ARM code. Note, however,
73611 +the linker does not support generating stubs for function calls to
73612 +non-interworking aware Thumb code.
73613 +
73614 + The `--thumb-entry' switch is a duplicate of the generic `--entry'
73615 +switch, in that it sets the program's starting address. But it also
73616 +sets the bottom bit of the address, so that it can be branched to using
73617 +a BX instruction, and the program will start executing in Thumb mode
73618 +straight away.
73619 +
73620 + The `--be8' switch instructs `ld' to generate BE8 format
73621 +executables. This option is only valid when linking big-endian objects.
73622 +The resulting image will contain big-endian data and little-endian code.
73623 +
73624 + The `R_ARM_TARGET1' relocation is typically used for entries in the
73625 +`.init_array' section. It is interpreted as either `R_ARM_REL32' or
73626 +`R_ARM_ABS32', depending on the target. The `--target1-rel' and
73627 +`--target1-abs' switches override the default.
73628 +
73629 + The `--target2=type' switch overrides the default definition of the
73630 +`R_ARM_TARGET2' relocation. Valid values for `type', their meanings,
73631 +and target defaults are as follows:
73632 +`rel'
73633 + `R_ARM_REL32' (arm*-*-elf, arm*-*-eabi)
73634 +
73635 +`abs'
73636 + `R_ARM_ABS32' (arm*-*-symbianelf)
73637 +
73638 +`got-rel'
73639 + `R_ARM_GOT_PREL' (arm*-*-linux, arm*-*-*bsd)
73640 +
73641 + The `R_ARM_V4BX' relocation (defined by the ARM AAELF specification)
73642 +enables objects compiled for the ARMv4 architecture to be
73643 +interworking-safe when linked with other objects compiled for ARMv4t,
73644 +but also allows pure ARMv4 binaries to be built from the same ARMv4
73645 +objects.
73646 +
73647 + In the latter case, the switch `--fix-v4bx' must be passed to the
73648 +linker, which causes v4t `BX rM' instructions to be rewritten as `MOV
73649 +PC,rM', since v4 processors do not have a `BX' instruction.
73650 +
73651 + In the former case, the switch should not be used, and `R_ARM_V4BX'
73652 +relocations are ignored.
73653 +
73654 + The `--use-blx' switch enables the linker to use ARM/Thumb BLX
73655 +instructions (available on ARMv5t and above) in various situations.
73656 +Currently it is used to perform calls via the PLT from Thumb code using
73657 +BLX rather than using BX and a mode-switching stub before each PLT
73658 +entry. This should lead to such calls executing slightly faster.
73659 +
73660 + This option is enabled implicitly for SymbianOS, so there is no need
73661 +to specify it if you are using that target.
73662 +
73663 +\1f
73664 +File: ld.info, Node: HPPA ELF32, Next: MMIX, Prev: ARM, Up: Machine Dependent
73665 +
73666 +4.4 `ld' and HPPA 32-bit ELF Support
73667 +====================================
73668 +
73669 +When generating a shared library, `ld' will by default generate import
73670 +stubs suitable for use with a single sub-space application. The
73671 +`--multi-subspace' switch causes `ld' to generate export stubs, and
73672 +different (larger) import stubs suitable for use with multiple
73673 +sub-spaces.
73674 +
73675 + Long branch stubs and import/export stubs are placed by `ld' in stub
73676 +sections located between groups of input sections. `--stub-group-size'
73677 +specifies the maximum size of a group of input sections handled by one
73678 +stub section. Since branch offsets are signed, a stub section may
73679 +serve two groups of input sections, one group before the stub section,
73680 +and one group after it. However, when using conditional branches that
73681 +require stubs, it may be better (for branch prediction) that stub
73682 +sections only serve one group of input sections. A negative value for
73683 +`N' chooses this scheme, ensuring that branches to stubs always use a
73684 +negative offset. Two special values of `N' are recognized, `1' and
73685 +`-1'. These both instruct `ld' to automatically size input section
73686 +groups for the branch types detected, with the same behaviour regarding
73687 +stub placement as other positive or negative values of `N' respectively.
73688 +
73689 + Note that `--stub-group-size' does not split input sections. A
73690 +single input section larger than the group size specified will of course
73691 +create a larger group (of one section). If input sections are too
73692 +large, it may not be possible for a branch to reach its stub.
73693 +
73694 +\1f
73695 +File: ld.info, Node: MMIX, Next: MSP430, Prev: HPPA ELF32, Up: Machine Dependent
73696 +
73697 +4.5 `ld' and MMIX
73698 +=================
73699 +
73700 +For MMIX, there is a choice of generating `ELF' object files or `mmo'
73701 +object files when linking. The simulator `mmix' understands the `mmo'
73702 +format. The binutils `objcopy' utility can translate between the two
73703 +formats.
73704 +
73705 + There is one special section, the `.MMIX.reg_contents' section.
73706 +Contents in this section is assumed to correspond to that of global
73707 +registers, and symbols referring to it are translated to special
73708 +symbols, equal to registers. In a final link, the start address of the
73709 +`.MMIX.reg_contents' section corresponds to the first allocated global
73710 +register multiplied by 8. Register `$255' is not included in this
73711 +section; it is always set to the program entry, which is at the symbol
73712 +`Main' for `mmo' files.
73713 +
73714 + Symbols with the prefix `__.MMIX.start.', for example
73715 +`__.MMIX.start..text' and `__.MMIX.start..data' are special; there must
73716 +be only one each, even if they are local. The default linker script
73717 +uses these to set the default start address of a section.
73718 +
73719 + Initial and trailing multiples of zero-valued 32-bit words in a
73720 +section, are left out from an mmo file.
73721 +
73722 +\1f
73723 +File: ld.info, Node: MSP430, Next: PowerPC ELF32, Prev: MMIX, Up: Machine Dependent
73724 +
73725 +4.6 `ld' and MSP430
73726 +===================
73727 +
73728 +For the MSP430 it is possible to select the MPU architecture. The flag
73729 +`-m [mpu type]' will select an appropriate linker script for selected
73730 +MPU type. (To get a list of known MPUs just pass `-m help' option to
73731 +the linker).
73732 +
73733 + The linker will recognize some extra sections which are MSP430
73734 +specific:
73735 +
73736 +``.vectors''
73737 + Defines a portion of ROM where interrupt vectors located.
73738 +
73739 +``.bootloader''
73740 + Defines the bootloader portion of the ROM (if applicable). Any
73741 + code in this section will be uploaded to the MPU.
73742 +
73743 +``.infomem''
73744 + Defines an information memory section (if applicable). Any code in
73745 + this section will be uploaded to the MPU.
73746 +
73747 +``.infomemnobits''
73748 + This is the same as the `.infomem' section except that any code in
73749 + this section will not be uploaded to the MPU.
73750 +
73751 +``.noinit''
73752 + Denotes a portion of RAM located above `.bss' section.
73753 +
73754 + The last two sections are used by gcc.
73755 +
73756 +\1f
73757 +File: ld.info, Node: PowerPC ELF32, Next: PowerPC64 ELF64, Prev: MSP430, Up: Machine Dependent
73758 +
73759 +4.7 `ld' and PowerPC 32-bit ELF Support
73760 +=======================================
73761 +
73762 +Branches on PowerPC processors are limited to a signed 26-bit
73763 +displacement, which may result in `ld' giving `relocation truncated to
73764 +fit' errors with very large programs. `--relax' enables the generation
73765 +of trampolines that can access the entire 32-bit address space. These
73766 +trampolines are inserted at section boundaries, so may not themselves
73767 +be reachable if an input section exceeds 33M in size.
73768 +
73769 +`--bss-plt'
73770 + Current PowerPC GCC accepts a `-msecure-plt' option that generates
73771 + code capable of using a newer PLT and GOT layout that has the
73772 + security advantage of no executable section ever needing to be
73773 + writable and no writable section ever being executable. PowerPC
73774 + `ld' will generate this layout, including stubs to access the PLT,
73775 + if all input files (including startup and static libraries) were
73776 + compiled with `-msecure-plt'. `--bss-plt' forces the old BSS PLT
73777 + (and GOT layout) which can give slightly better performance.
73778 +
73779 +`--sdata-got'
73780 + The new secure PLT and GOT are placed differently relative to other
73781 + sections compared to older BSS PLT and GOT placement. The
73782 + location of `.plt' must change because the new secure PLT is an
73783 + initialized section while the old PLT is uninitialized. The
73784 + reason for the `.got' change is more subtle: The new placement
73785 + allows `.got' to be read-only in applications linked with `-z
73786 + relro -z now'. However, this placement means that `.sdata' cannot
73787 + always be used in shared libraries, because the PowerPC ABI
73788 + accesses `.sdata' in shared libraries from the GOT pointer.
73789 + `--sdata-got' forces the old GOT placement. PowerPC GCC doesn't
73790 + use `.sdata' in shared libraries, so this option is really only
73791 + useful for other compilers that may do so.
73792 +
73793 +`--emit-stub-syms'
73794 + This option causes `ld' to label linker stubs with a local symbol
73795 + that encodes the stub type and destination.
73796 +
73797 +`--no-tls-optimize'
73798 + PowerPC `ld' normally performs some optimization of code sequences
73799 + used to access Thread-Local Storage. Use this option to disable
73800 + the optimization.
73801 +
73802 +\1f
73803 +File: ld.info, Node: PowerPC64 ELF64, Next: TI COFF, Prev: PowerPC ELF32, Up: Machine Dependent
73804 +
73805 +4.8 `ld' and PowerPC64 64-bit ELF Support
73806 +=========================================
73807 +
73808 +`--stub-group-size'
73809 + Long branch stubs, PLT call stubs and TOC adjusting stubs are
73810 + placed by `ld' in stub sections located between groups of input
73811 + sections. `--stub-group-size' specifies the maximum size of a
73812 + group of input sections handled by one stub section. Since branch
73813 + offsets are signed, a stub section may serve two groups of input
73814 + sections, one group before the stub section, and one group after
73815 + it. However, when using conditional branches that require stubs,
73816 + it may be better (for branch prediction) that stub sections only
73817 + serve one group of input sections. A negative value for `N'
73818 + chooses this scheme, ensuring that branches to stubs always use a
73819 + negative offset. Two special values of `N' are recognized, `1'
73820 + and `-1'. These both instruct `ld' to automatically size input
73821 + section groups for the branch types detected, with the same
73822 + behaviour regarding stub placement as other positive or negative
73823 + values of `N' respectively.
73824 +
73825 + Note that `--stub-group-size' does not split input sections. A
73826 + single input section larger than the group size specified will of
73827 + course create a larger group (of one section). If input sections
73828 + are too large, it may not be possible for a branch to reach its
73829 + stub.
73830 +
73831 +`--emit-stub-syms'
73832 + This option causes `ld' to label linker stubs with a local symbol
73833 + that encodes the stub type and destination.
73834 +
73835 +`--dotsyms, --no-dotsyms'
73836 + These two options control how `ld' interprets version patterns in
73837 + a version script. Older PowerPC64 compilers emitted both a
73838 + function descriptor symbol with the same name as the function, and
73839 + a code entry symbol with the name prefixed by a dot (`.'). To
73840 + properly version a function `foo', the version script thus needs
73841 + to control both `foo' and `.foo'. The option `--dotsyms', on by
73842 + default, automatically adds the required dot-prefixed patterns.
73843 + Use `--no-dotsyms' to disable this feature.
73844 +
73845 +`--no-tls-optimize'
73846 + PowerPC64 `ld' normally performs some optimization of code
73847 + sequences used to access Thread-Local Storage. Use this option to
73848 + disable the optimization.
73849 +
73850 +`--no-opd-optimize'
73851 + PowerPC64 `ld' normally removes `.opd' section entries
73852 + corresponding to deleted link-once functions, or functions removed
73853 + by the action of `--gc-sections' or linker scrip `/DISCARD/'. Use
73854 + this option to disable `.opd' optimization.
73855 +
73856 +`--non-overlapping-opd'
73857 + Some PowerPC64 compilers have an option to generate compressed
73858 + `.opd' entries spaced 16 bytes apart, overlapping the third word,
73859 + the static chain pointer (unused in C) with the first word of the
73860 + next entry. This option expands such entries to the full 24 bytes.
73861 +
73862 +`--no-toc-optimize'
73863 + PowerPC64 `ld' normally removes unused `.toc' section entries.
73864 + Such entries are detected by examining relocations that reference
73865 + the TOC in code sections. A reloc in a deleted code section marks
73866 + a TOC word as unneeded, while a reloc in a kept code section marks
73867 + a TOC word as needed. Since the TOC may reference itself, TOC
73868 + relocs are also examined. TOC words marked as both needed and
73869 + unneeded will of course be kept. TOC words without any referencing
73870 + reloc are assumed to be part of a multi-word entry, and are kept or
73871 + discarded as per the nearest marked preceding word. This works
73872 + reliably for compiler generated code, but may be incorrect if
73873 + assembly code is used to insert TOC entries. Use this option to
73874 + disable the optimization.
73875 +
73876 +`--no-multi-toc'
73877 + By default, PowerPC64 GCC generates code for a TOC model where TOC
73878 + entries are accessed with a 16-bit offset from r2. This limits the
73879 + total TOC size to 64K. PowerPC64 `ld' extends this limit by
73880 + grouping code sections such that each group uses less than 64K for
73881 + its TOC entries, then inserts r2 adjusting stubs between
73882 + inter-group calls. `ld' does not split apart input sections, so
73883 + cannot help if a single input file has a `.toc' section that
73884 + exceeds 64K, most likely from linking multiple files with `ld -r'.
73885 + Use this option to turn off this feature.
73886 +
73887 +\1f
73888 +File: ld.info, Node: TI COFF, Next: WIN32, Prev: PowerPC64 ELF64, Up: Machine Dependent
73889 +
73890 +4.9 `ld''s Support for Various TI COFF Versions
73891 +===============================================
73892 +
73893 +The `--format' switch allows selection of one of the various TI COFF
73894 +versions. The latest of this writing is 2; versions 0 and 1 are also
73895 +supported. The TI COFF versions also vary in header byte-order format;
73896 +`ld' will read any version or byte order, but the output header format
73897 +depends on the default specified by the specific target.
73898 +
73899 +\1f
73900 +File: ld.info, Node: WIN32, Next: Xtensa, Prev: TI COFF, Up: Machine Dependent
73901 +
73902 +4.10 `ld' and WIN32 (cygwin/mingw)
73903 +==================================
73904 +
73905 +This section describes some of the win32 specific `ld' issues. See
73906 +*Note Command Line Options: Options. for detailed decription of the
73907 +command line options mentioned here.
73908 +
73909 +_import libraries_
73910 + The standard Windows linker creates and uses so-called import
73911 + libraries, which contains information for linking to dll's. They
73912 + are regular static archives and are handled as any other static
73913 + archive. The cygwin and mingw ports of `ld' have specific support
73914 + for creating such libraries provided with the `--out-implib'
73915 + command line option.
73916 +
73917 +_exporting DLL symbols_
73918 + The cygwin/mingw `ld' has several ways to export symbols for dll's.
73919 +
73920 + _using auto-export functionality_
73921 + By default `ld' exports symbols with the auto-export
73922 + functionality, which is controlled by the following command
73923 + line options:
73924 +
73925 + * -export-all-symbols [This is the default]
73926 +
73927 + * -exclude-symbols
73928 +
73929 + * -exclude-libs
73930 +
73931 + If, however, `--export-all-symbols' is not given explicitly
73932 + on the command line, then the default auto-export behavior
73933 + will be _disabled_ if either of the following are true:
73934 +
73935 + * A DEF file is used.
73936 +
73937 + * Any symbol in any object file was marked with the
73938 + __declspec(dllexport) attribute.
73939 +
73940 + _using a DEF file_
73941 + Another way of exporting symbols is using a DEF file. A DEF
73942 + file is an ASCII file containing definitions of symbols which
73943 + should be exported when a dll is created. Usually it is
73944 + named `<dll name>.def' and is added as any other object file
73945 + to the linker's command line. The file's name must end in
73946 + `.def' or `.DEF'.
73947 +
73948 + gcc -o <output> <objectfiles> <dll name>.def
73949 +
73950 + Using a DEF file turns off the normal auto-export behavior,
73951 + unless the `--export-all-symbols' option is also used.
73952 +
73953 + Here is an example of a DEF file for a shared library called
73954 + `xyz.dll':
73955 +
73956 + LIBRARY "xyz.dll" BASE=0x20000000
73957 +
73958 + EXPORTS
73959 + foo
73960 + bar
73961 + _bar = bar
73962 + another_foo = abc.dll.afoo
73963 + var1 DATA
73964 +
73965 + This example defines a DLL with a non-default base address
73966 + and five symbols in the export table. The third exported
73967 + symbol `_bar' is an alias for the second. The fourth symbol,
73968 + `another_foo' is resolved by "forwarding" to another module
73969 + and treating it as an alias for `afoo' exported from the DLL
73970 + `abc.dll'. The final symbol `var1' is declared to be a data
73971 + object.
73972 +
73973 + The optional `LIBRARY <name>' command indicates the _internal_
73974 + name of the output DLL. If `<name>' does not include a suffix,
73975 + the default library suffix, `.DLL' is appended.
73976 +
73977 + When the .DEF file is used to build an application. rather
73978 + than a library, the `NAME <name>' command shoud be used
73979 + instead of `LIBRARY'. If `<name>' does not include a suffix,
73980 + the default executable suffix, `.EXE' is appended.
73981 +
73982 + With either `LIBRARY <name>' or `NAME <name>' the optional
73983 + specification `BASE = <number>' may be used to specify a
73984 + non-default base address for the image.
73985 +
73986 + If neither `LIBRARY <name>' nor `NAME <name>' is specified,
73987 + or they specify an empty string, the internal name is the
73988 + same as the filename specified on the command line.
73989 +
73990 + The complete specification of an export symbol is:
73991 +
73992 + EXPORTS
73993 + ( ( ( <name1> [ = <name2> ] )
73994 + | ( <name1> = <module-name> . <external-name>))
73995 + [ @ <integer> ] [NONAME] [DATA] [CONSTANT] [PRIVATE] ) *
73996 +
73997 + Declares `<name1>' as an exported symbol from the DLL, or
73998 + declares `<name1>' as an exported alias for `<name2>'; or
73999 + declares `<name1>' as a "forward" alias for the symbol
74000 + `<external-name>' in the DLL `<module-name>'. Optionally,
74001 + the symbol may be exported by the specified ordinal
74002 + `<integer>' alias.
74003 +
74004 + The optional keywords that follow the declaration indicate:
74005 +
74006 + `NONAME': Do not put the symbol name in the DLL's export
74007 + table. It will still be exported by its ordinal alias
74008 + (either the value specified by the .def specification or,
74009 + otherwise, the value assigned by the linker). The symbol
74010 + name, however, does remain visible in the import library (if
74011 + any), unless `PRIVATE' is also specified.
74012 +
74013 + `DATA': The symbol is a variable or object, rather than a
74014 + function. The import lib will export only an indirect
74015 + reference to `foo' as the symbol `_imp__foo' (ie, `foo' must
74016 + be resolved as `*_imp__foo').
74017 +
74018 + `CONSTANT': Like `DATA', but put the undecorated `foo' as
74019 + well as `_imp__foo' into the import library. Both refer to the
74020 + read-only import address table's pointer to the variable, not
74021 + to the variable itself. This can be dangerous. If the user
74022 + code fails to add the `dllimport' attribute and also fails to
74023 + explicitly add the extra indirection that the use of the
74024 + attribute enforces, the application will behave unexpectedly.
74025 +
74026 + `PRIVATE': Put the symbol in the DLL's export table, but do
74027 + not put it into the static import library used to resolve
74028 + imports at link time. The symbol can still be imported using
74029 + the `LoadLibrary/GetProcAddress' API at runtime or by by
74030 + using the GNU ld extension of linking directly to the DLL
74031 + without an import library.
74032 +
74033 + See ld/deffilep.y in the binutils sources for the full
74034 + specification of other DEF file statements
74035 +
74036 + While linking a shared dll, `ld' is able to create a DEF file
74037 + with the `--output-def <file>' command line option.
74038 +
74039 + _Using decorations_
74040 + Another way of marking symbols for export is to modify the
74041 + source code itself, so that when building the DLL each symbol
74042 + to be exported is declared as:
74043 +
74044 + __declspec(dllexport) int a_variable
74045 + __declspec(dllexport) void a_function(int with_args)
74046 +
74047 + All such symbols will be exported from the DLL. If, however,
74048 + any of the object files in the DLL contain symbols decorated
74049 + in this way, then the normal auto-export behavior is
74050 + disabled, unless the `--export-all-symbols' option is also
74051 + used.
74052 +
74053 + Note that object files that wish to access these symbols must
74054 + _not_ decorate them with dllexport. Instead, they should use
74055 + dllimport, instead:
74056 +
74057 + __declspec(dllimport) int a_variable
74058 + __declspec(dllimport) void a_function(int with_args)
74059 +
74060 + This complicates the structure of library header files,
74061 + because when included by the library itself the header must
74062 + declare the variables and functions as dllexport, but when
74063 + included by client code the header must declare them as
74064 + dllimport. There are a number of idioms that are typically
74065 + used to do this; often client code can omit the __declspec()
74066 + declaration completely. See `--enable-auto-import' and
74067 + `automatic data imports' for more imformation.
74068 +
74069 +_automatic data imports_
74070 + The standard Windows dll format supports data imports from dlls
74071 + only by adding special decorations (dllimport/dllexport), which
74072 + let the compiler produce specific assembler instructions to deal
74073 + with this issue. This increases the effort necessary to port
74074 + existing Un*x code to these platforms, especially for large c++
74075 + libraries and applications. The auto-import feature, which was
74076 + initially provided by Paul Sokolovsky, allows one to omit the
74077 + decorations to archieve a behavior that conforms to that on
74078 + POSIX/Un*x platforms. This feature is enabled with the
74079 + `--enable-auto-import' command-line option, although it is enabled
74080 + by default on cygwin/mingw. The `--enable-auto-import' option
74081 + itself now serves mainly to suppress any warnings that are
74082 + ordinarily emitted when linked objects trigger the feature's use.
74083 +
74084 + auto-import of variables does not always work flawlessly without
74085 + additional assistance. Sometimes, you will see this message
74086 +
74087 + "variable '<var>' can't be auto-imported. Please read the
74088 + documentation for ld's `--enable-auto-import' for details."
74089 +
74090 + The `--enable-auto-import' documentation explains why this error
74091 + occurs, and several methods that can be used to overcome this
74092 + difficulty. One of these methods is the _runtime pseudo-relocs_
74093 + feature, described below.
74094 +
74095 + For complex variables imported from DLLs (such as structs or
74096 + classes), object files typically contain a base address for the
74097 + variable and an offset (_addend_) within the variable-to specify a
74098 + particular field or public member, for instance. Unfortunately,
74099 + the runtime loader used in win32 environments is incapable of
74100 + fixing these references at runtime without the additional
74101 + information supplied by dllimport/dllexport decorations. The
74102 + standard auto-import feature described above is unable to resolve
74103 + these references.
74104 +
74105 + The `--enable-runtime-pseudo-relocs' switch allows these
74106 + references to be resolved without error, while leaving the task of
74107 + adjusting the references themselves (with their non-zero addends)
74108 + to specialized code provided by the runtime environment. Recent
74109 + versions of the cygwin and mingw environments and compilers
74110 + provide this runtime support; older versions do not. However, the
74111 + support is only necessary on the developer's platform; the
74112 + compiled result will run without error on an older system.
74113 +
74114 + `--enable-runtime-pseudo-relocs' is not the default; it must be
74115 + explicitly enabled as needed.
74116 +
74117 +_direct linking to a dll_
74118 + The cygwin/mingw ports of `ld' support the direct linking,
74119 + including data symbols, to a dll without the usage of any import
74120 + libraries. This is much faster and uses much less memory than
74121 + does the traditional import library method, expecially when
74122 + linking large libraries or applications. When `ld' creates an
74123 + import lib, each function or variable exported from the dll is
74124 + stored in its own bfd, even though a single bfd could contain many
74125 + exports. The overhead involved in storing, loading, and
74126 + processing so many bfd's is quite large, and explains the
74127 + tremendous time, memory, and storage needed to link against
74128 + particularly large or complex libraries when using import libs.
74129 +
74130 + Linking directly to a dll uses no extra command-line switches
74131 + other than `-L' and `-l', because `ld' already searches for a
74132 + number of names to match each library. All that is needed from
74133 + the developer's perspective is an understanding of this search, in
74134 + order to force ld to select the dll instead of an import library.
74135 +
74136 + For instance, when ld is called with the argument `-lxxx' it will
74137 + attempt to find, in the first directory of its search path,
74138 +
74139 + libxxx.dll.a
74140 + xxx.dll.a
74141 + libxxx.a
74142 + cygxxx.dll (*)
74143 + libxxx.dll
74144 + xxx.dll
74145 +
74146 + before moving on to the next directory in the search path.
74147 +
74148 + (*) Actually, this is not `cygxxx.dll' but in fact is
74149 + `<prefix>xxx.dll', where `<prefix>' is set by the `ld' option
74150 + `--dll-search-prefix=<prefix>'. In the case of cygwin, the
74151 + standard gcc spec file includes `--dll-search-prefix=cyg', so in
74152 + effect we actually search for `cygxxx.dll'.
74153 +
74154 + Other win32-based unix environments, such as mingw or pw32, may
74155 + use other `<prefix>'es, although at present only cygwin makes use
74156 + of this feature. It was originally intended to help avoid name
74157 + conflicts among dll's built for the various win32/un*x
74158 + environments, so that (for example) two versions of a zlib dll
74159 + could coexist on the same machine.
74160 +
74161 + The generic cygwin/mingw path layout uses a `bin' directory for
74162 + applications and dll's and a `lib' directory for the import
74163 + libraries (using cygwin nomenclature):
74164 +
74165 + bin/
74166 + cygxxx.dll
74167 + lib/
74168 + libxxx.dll.a (in case of dll's)
74169 + libxxx.a (in case of static archive)
74170 +
74171 + Linking directly to a dll without using the import library can be
74172 + done two ways:
74173 +
74174 + 1. Use the dll directly by adding the `bin' path to the link line
74175 + gcc -Wl,-verbose -o a.exe -L../bin/ -lxxx
74176 +
74177 + However, as the dll's often have version numbers appended to their
74178 + names (`cygncurses-5.dll') this will often fail, unless one
74179 + specifies `-L../bin -lncurses-5' to include the version. Import
74180 + libs are generally not versioned, and do not have this difficulty.
74181 +
74182 + 2. Create a symbolic link from the dll to a file in the `lib'
74183 + directory according to the above mentioned search pattern. This
74184 + should be used to avoid unwanted changes in the tools needed for
74185 + making the app/dll.
74186 +
74187 + ln -s bin/cygxxx.dll lib/[cyg|lib|]xxx.dll[.a]
74188 +
74189 + Then you can link without any make environment changes.
74190 +
74191 + gcc -Wl,-verbose -o a.exe -L../lib/ -lxxx
74192 +
74193 + This technique also avoids the version number problems, because
74194 + the following is perfectly legal
74195 +
74196 + bin/
74197 + cygxxx-5.dll
74198 + lib/
74199 + libxxx.dll.a -> ../bin/cygxxx-5.dll
74200 +
74201 + Linking directly to a dll without using an import lib will work
74202 + even when auto-import features are exercised, and even when
74203 + `--enable-runtime-pseudo-relocs' is used.
74204 +
74205 + Given the improvements in speed and memory usage, one might
74206 + justifiably wonder why import libraries are used at all. There
74207 + are two reasons:
74208 +
74209 + 1. Until recently, the link-directly-to-dll functionality did _not_
74210 + work with auto-imported data.
74211 +
74212 + 2. Sometimes it is necessary to include pure static objects within
74213 + the import library (which otherwise contains only bfd's for
74214 + indirection symbols that point to the exports of a dll). Again,
74215 + the import lib for the cygwin kernel makes use of this ability,
74216 + and it is not possible to do this without an import lib.
74217 +
74218 + So, import libs are not going away. But the ability to replace
74219 + true import libs with a simple symbolic link to (or a copy of) a
74220 + dll, in most cases, is a useful addition to the suite of tools
74221 + binutils makes available to the win32 developer. Given the
74222 + massive improvements in memory requirements during linking, storage
74223 + requirements, and linking speed, we expect that many developers
74224 + will soon begin to use this feature whenever possible.
74225 +
74226 +_symbol aliasing_
74227 +
74228 + _adding additional names_
74229 + Sometimes, it is useful to export symbols with additional
74230 + names. A symbol `foo' will be exported as `foo', but it can
74231 + also be exported as `_foo' by using special directives in the
74232 + DEF file when creating the dll. This will affect also the
74233 + optional created import library. Consider the following DEF
74234 + file:
74235 +
74236 + LIBRARY "xyz.dll" BASE=0x61000000
74237 +
74238 + EXPORTS
74239 + foo
74240 + _foo = foo
74241 +
74242 + The line `_foo = foo' maps the symbol `foo' to `_foo'.
74243 +
74244 + Another method for creating a symbol alias is to create it in
74245 + the source code using the "weak" attribute:
74246 +
74247 + void foo () { /* Do something. */; }
74248 + void _foo () __attribute__ ((weak, alias ("foo")));
74249 +
74250 + See the gcc manual for more information about attributes and
74251 + weak symbols.
74252 +
74253 + _renaming symbols_
74254 + Sometimes it is useful to rename exports. For instance, the
74255 + cygwin kernel does this regularly. A symbol `_foo' can be
74256 + exported as `foo' but not as `_foo' by using special
74257 + directives in the DEF file. (This will also affect the import
74258 + library, if it is created). In the following example:
74259 +
74260 + LIBRARY "xyz.dll" BASE=0x61000000
74261 +
74262 + EXPORTS
74263 + _foo = foo
74264 +
74265 + The line `_foo = foo' maps the exported symbol `foo' to
74266 + `_foo'.
74267 +
74268 + Note: using a DEF file disables the default auto-export behavior,
74269 + unless the `--export-all-symbols' command line option is used.
74270 + If, however, you are trying to rename symbols, then you should list
74271 + _all_ desired exports in the DEF file, including the symbols that
74272 + are not being renamed, and do _not_ use the `--export-all-symbols'
74273 + option. If you list only the renamed symbols in the DEF file, and
74274 + use `--export-all-symbols' to handle the other symbols, then the
74275 + both the new names _and_ the original names for the renamed
74276 + symbols will be exported. In effect, you'd be aliasing those
74277 + symbols, not renaming them, which is probably not what you wanted.
74278 +
74279 +_weak externals_
74280 + The Windows object format, PE, specifies a form of weak symbols
74281 + called weak externals. When a weak symbol is linked and the
74282 + symbol is not defined, the weak symbol becomes an alias for some
74283 + other symbol. There are three variants of weak externals:
74284 + * Definition is searched for in objects and libraries,
74285 + historically called lazy externals.
74286 +
74287 + * Definition is searched for only in other objects, not in
74288 + libraries. This form is not presently implemented.
74289 +
74290 + * No search; the symbol is an alias. This form is not presently
74291 + implemented.
74292 + As a GNU extension, weak symbols that do not specify an alternate
74293 + symbol are supported. If the symbol is undefined when linking,
74294 + the symbol uses a default value.
74295 +
74296 +\1f
74297 +File: ld.info, Node: Xtensa, Prev: WIN32, Up: Machine Dependent
74298 +
74299 +4.11 `ld' and Xtensa Processors
74300 +===============================
74301 +
74302 +The default `ld' behavior for Xtensa processors is to interpret
74303 +`SECTIONS' commands so that lists of explicitly named sections in a
74304 +specification with a wildcard file will be interleaved when necessary to
74305 +keep literal pools within the range of PC-relative load offsets. For
74306 +example, with the command:
74307 +
74308 + SECTIONS
74309 + {
74310 + .text : {
74311 + *(.literal .text)
74312 + }
74313 + }
74314 +
74315 +`ld' may interleave some of the `.literal' and `.text' sections from
74316 +different object files to ensure that the literal pools are within the
74317 +range of PC-relative load offsets. A valid interleaving might place
74318 +the `.literal' sections from an initial group of files followed by the
74319 +`.text' sections of that group of files. Then, the `.literal' sections
74320 +from the rest of the files and the `.text' sections from the rest of
74321 +the files would follow.
74322 +
74323 + Relaxation is enabled by default for the Xtensa version of `ld' and
74324 +provides two important link-time optimizations. The first optimization
74325 +is to combine identical literal values to reduce code size. A redundant
74326 +literal will be removed and all the `L32R' instructions that use it
74327 +will be changed to reference an identical literal, as long as the
74328 +location of the replacement literal is within the offset range of all
74329 +the `L32R' instructions. The second optimization is to remove
74330 +unnecessary overhead from assembler-generated "longcall" sequences of
74331 +`L32R'/`CALLXN' when the target functions are within range of direct
74332 +`CALLN' instructions.
74333 +
74334 + For each of these cases where an indirect call sequence can be
74335 +optimized to a direct call, the linker will change the `CALLXN'
74336 +instruction to a `CALLN' instruction, remove the `L32R' instruction,
74337 +and remove the literal referenced by the `L32R' instruction if it is
74338 +not used for anything else. Removing the `L32R' instruction always
74339 +reduces code size but can potentially hurt performance by changing the
74340 +alignment of subsequent branch targets. By default, the linker will
74341 +always preserve alignments, either by switching some instructions
74342 +between 24-bit encodings and the equivalent density instructions or by
74343 +inserting a no-op in place of the `L32R' instruction that was removed.
74344 +If code size is more important than performance, the `--size-opt'
74345 +option can be used to prevent the linker from widening density
74346 +instructions or inserting no-ops, except in a few cases where no-ops
74347 +are required for correctness.
74348 +
74349 + The following Xtensa-specific command-line options can be used to
74350 +control the linker:
74351 +
74352 +`--no-relax'
74353 + Since the Xtensa version of `ld' enables the `--relax' option by
74354 + default, the `--no-relax' option is provided to disable relaxation.
74355 +
74356 +`--size-opt'
74357 + When optimizing indirect calls to direct calls, optimize for code
74358 + size more than performance. With this option, the linker will not
74359 + insert no-ops or widen density instructions to preserve branch
74360 + target alignment. There may still be some cases where no-ops are
74361 + required to preserve the correctness of the code.
74362 +
74363 +\1f
74364 +File: ld.info, Node: BFD, Next: Reporting Bugs, Prev: Machine Dependent, Up: Top
74365 +
74366 +5 BFD
74367 +*****
74368 +
74369 +The linker accesses object and archive files using the BFD libraries.
74370 +These libraries allow the linker to use the same routines to operate on
74371 +object files whatever the object file format. A different object file
74372 +format can be supported simply by creating a new BFD back end and adding
74373 +it to the library. To conserve runtime memory, however, the linker and
74374 +associated tools are usually configured to support only a subset of the
74375 +object file formats available. You can use `objdump -i' (*note
74376 +objdump: (binutils.info)objdump.) to list all the formats available for
74377 +your configuration.
74378 +
74379 + As with most implementations, BFD is a compromise between several
74380 +conflicting requirements. The major factor influencing BFD design was
74381 +efficiency: any time used converting between formats is time which
74382 +would not have been spent had BFD not been involved. This is partly
74383 +offset by abstraction payback; since BFD simplifies applications and
74384 +back ends, more time and care may be spent optimizing algorithms for a
74385 +greater speed.
74386 +
74387 + One minor artifact of the BFD solution which you should bear in mind
74388 +is the potential for information loss. There are two places where
74389 +useful information can be lost using the BFD mechanism: during
74390 +conversion and during output. *Note BFD information loss::.
74391 +
74392 +* Menu:
74393 +
74394 +* BFD outline:: How it works: an outline of BFD
74395 +
74396 +\1f
74397 +File: ld.info, Node: BFD outline, Up: BFD
74398 +
74399 +5.1 How It Works: An Outline of BFD
74400 +===================================
74401 +
74402 +When an object file is opened, BFD subroutines automatically determine
74403 +the format of the input object file. They then build a descriptor in
74404 +memory with pointers to routines that will be used to access elements of
74405 +the object file's data structures.
74406 +
74407 + As different information from the object files is required, BFD
74408 +reads from different sections of the file and processes them. For
74409 +example, a very common operation for the linker is processing symbol
74410 +tables. Each BFD back end provides a routine for converting between
74411 +the object file's representation of symbols and an internal canonical
74412 +format. When the linker asks for the symbol table of an object file, it
74413 +calls through a memory pointer to the routine from the relevant BFD
74414 +back end which reads and converts the table into a canonical form. The
74415 +linker then operates upon the canonical form. When the link is finished
74416 +and the linker writes the output file's symbol table, another BFD back
74417 +end routine is called to take the newly created symbol table and
74418 +convert it into the chosen output format.
74419 +
74420 +* Menu:
74421 +
74422 +* BFD information loss:: Information Loss
74423 +* Canonical format:: The BFD canonical object-file format
74424 +
74425 +\1f
74426 +File: ld.info, Node: BFD information loss, Next: Canonical format, Up: BFD outline
74427 +
74428 +5.1.1 Information Loss
74429 +----------------------
74430 +
74431 +_Information can be lost during output._ The output formats supported
74432 +by BFD do not provide identical facilities, and information which can
74433 +be described in one form has nowhere to go in another format. One
74434 +example of this is alignment information in `b.out'. There is nowhere
74435 +in an `a.out' format file to store alignment information on the
74436 +contained data, so when a file is linked from `b.out' and an `a.out'
74437 +image is produced, alignment information will not propagate to the
74438 +output file. (The linker will still use the alignment information
74439 +internally, so the link is performed correctly).
74440 +
74441 + Another example is COFF section names. COFF files may contain an
74442 +unlimited number of sections, each one with a textual section name. If
74443 +the target of the link is a format which does not have many sections
74444 +(e.g., `a.out') or has sections without names (e.g., the Oasys format),
74445 +the link cannot be done simply. You can circumvent this problem by
74446 +describing the desired input-to-output section mapping with the linker
74447 +command language.
74448 +
74449 + _Information can be lost during canonicalization._ The BFD internal
74450 +canonical form of the external formats is not exhaustive; there are
74451 +structures in input formats for which there is no direct representation
74452 +internally. This means that the BFD back ends cannot maintain all
74453 +possible data richness through the transformation between external to
74454 +internal and back to external formats.
74455 +
74456 + This limitation is only a problem when an application reads one
74457 +format and writes another. Each BFD back end is responsible for
74458 +maintaining as much data as possible, and the internal BFD canonical
74459 +form has structures which are opaque to the BFD core, and exported only
74460 +to the back ends. When a file is read in one format, the canonical form
74461 +is generated for BFD and the application. At the same time, the back
74462 +end saves away any information which may otherwise be lost. If the data
74463 +is then written back in the same format, the back end routine will be
74464 +able to use the canonical form provided by the BFD core as well as the
74465 +information it prepared earlier. Since there is a great deal of
74466 +commonality between back ends, there is no information lost when
74467 +linking or copying big endian COFF to little endian COFF, or `a.out' to
74468 +`b.out'. When a mixture of formats is linked, the information is only
74469 +lost from the files whose format differs from the destination.
74470 +
74471 +\1f
74472 +File: ld.info, Node: Canonical format, Prev: BFD information loss, Up: BFD outline
74473 +
74474 +5.1.2 The BFD canonical object-file format
74475 +------------------------------------------
74476 +
74477 +The greatest potential for loss of information occurs when there is the
74478 +least overlap between the information provided by the source format,
74479 +that stored by the canonical format, and that needed by the destination
74480 +format. A brief description of the canonical form may help you
74481 +understand which kinds of data you can count on preserving across
74482 +conversions.
74483 +
74484 +_files_
74485 + Information stored on a per-file basis includes target machine
74486 + architecture, particular implementation format type, a demand
74487 + pageable bit, and a write protected bit. Information like Unix
74488 + magic numbers is not stored here--only the magic numbers' meaning,
74489 + so a `ZMAGIC' file would have both the demand pageable bit and the
74490 + write protected text bit set. The byte order of the target is
74491 + stored on a per-file basis, so that big- and little-endian object
74492 + files may be used with one another.
74493 +
74494 +_sections_
74495 + Each section in the input file contains the name of the section,
74496 + the section's original address in the object file, size and
74497 + alignment information, various flags, and pointers into other BFD
74498 + data structures.
74499 +
74500 +_symbols_
74501 + Each symbol contains a pointer to the information for the object
74502 + file which originally defined it, its name, its value, and various
74503 + flag bits. When a BFD back end reads in a symbol table, it
74504 + relocates all symbols to make them relative to the base of the
74505 + section where they were defined. Doing this ensures that each
74506 + symbol points to its containing section. Each symbol also has a
74507 + varying amount of hidden private data for the BFD back end. Since
74508 + the symbol points to the original file, the private data format
74509 + for that symbol is accessible. `ld' can operate on a collection
74510 + of symbols of wildly different formats without problems.
74511 +
74512 + Normal global and simple local symbols are maintained on output,
74513 + so an output file (no matter its format) will retain symbols
74514 + pointing to functions and to global, static, and common variables.
74515 + Some symbol information is not worth retaining; in `a.out', type
74516 + information is stored in the symbol table as long symbol names.
74517 + This information would be useless to most COFF debuggers; the
74518 + linker has command line switches to allow users to throw it away.
74519 +
74520 + There is one word of type information within the symbol, so if the
74521 + format supports symbol type information within symbols (for
74522 + example, COFF, IEEE, Oasys) and the type is simple enough to fit
74523 + within one word (nearly everything but aggregates), the
74524 + information will be preserved.
74525 +
74526 +_relocation level_
74527 + Each canonical BFD relocation record contains a pointer to the
74528 + symbol to relocate to, the offset of the data to relocate, the
74529 + section the data is in, and a pointer to a relocation type
74530 + descriptor. Relocation is performed by passing messages through
74531 + the relocation type descriptor and the symbol pointer. Therefore,
74532 + relocations can be performed on output data using a relocation
74533 + method that is only available in one of the input formats. For
74534 + instance, Oasys provides a byte relocation format. A relocation
74535 + record requesting this relocation type would point indirectly to a
74536 + routine to perform this, so the relocation may be performed on a
74537 + byte being written to a 68k COFF file, even though 68k COFF has no
74538 + such relocation type.
74539 +
74540 +_line numbers_
74541 + Object formats can contain, for debugging purposes, some form of
74542 + mapping between symbols, source line numbers, and addresses in the
74543 + output file. These addresses have to be relocated along with the
74544 + symbol information. Each symbol with an associated list of line
74545 + number records points to the first record of the list. The head
74546 + of a line number list consists of a pointer to the symbol, which
74547 + allows finding out the address of the function whose line number
74548 + is being described. The rest of the list is made up of pairs:
74549 + offsets into the section and line numbers. Any format which can
74550 + simply derive this information can pass it successfully between
74551 + formats (COFF, IEEE and Oasys).
74552 +
74553 +\1f
74554 +File: ld.info, Node: Reporting Bugs, Next: MRI, Prev: BFD, Up: Top
74555 +
74556 +6 Reporting Bugs
74557 +****************
74558 +
74559 +Your bug reports play an essential role in making `ld' reliable.
74560 +
74561 + Reporting a bug may help you by bringing a solution to your problem,
74562 +or it may not. But in any case the principal function of a bug report
74563 +is to help the entire community by making the next version of `ld' work
74564 +better. Bug reports are your contribution to the maintenance of `ld'.
74565 +
74566 + In order for a bug report to serve its purpose, you must include the
74567 +information that enables us to fix the bug.
74568 +
74569 +* Menu:
74570 +
74571 +* Bug Criteria:: Have you found a bug?
74572 +* Bug Reporting:: How to report bugs
74573 +
74574 +\1f
74575 +File: ld.info, Node: Bug Criteria, Next: Bug Reporting, Up: Reporting Bugs
74576 +
74577 +6.1 Have You Found a Bug?
74578 +=========================
74579 +
74580 +If you are not sure whether you have found a bug, here are some
74581 +guidelines:
74582 +
74583 + * If the linker gets a fatal signal, for any input whatever, that is
74584 + a `ld' bug. Reliable linkers never crash.
74585 +
74586 + * If `ld' produces an error message for valid input, that is a bug.
74587 +
74588 + * If `ld' does not produce an error message for invalid input, that
74589 + may be a bug. In the general case, the linker can not verify that
74590 + object files are correct.
74591 +
74592 + * If you are an experienced user of linkers, your suggestions for
74593 + improvement of `ld' are welcome in any case.
74594 +
74595 +\1f
74596 +File: ld.info, Node: Bug Reporting, Prev: Bug Criteria, Up: Reporting Bugs
74597 +
74598 +6.2 How to Report Bugs
74599 +======================
74600 +
74601 +A number of companies and individuals offer support for GNU products.
74602 +If you obtained `ld' from a support organization, we recommend you
74603 +contact that organization first.
74604 +
74605 + You can find contact information for many support companies and
74606 +individuals in the file `etc/SERVICE' in the GNU Emacs distribution.
74607 +
74608 + Otherwise, send bug reports for `ld' to `bug-binutils@gnu.org'.
74609 +
74610 + The fundamental principle of reporting bugs usefully is this:
74611 +*report all the facts*. If you are not sure whether to state a fact or
74612 +leave it out, state it!
74613 +
74614 + Often people omit facts because they think they know what causes the
74615 +problem and assume that some details do not matter. Thus, you might
74616 +assume that the name of a symbol you use in an example does not matter.
74617 +Well, probably it does not, but one cannot be sure. Perhaps the bug
74618 +is a stray memory reference which happens to fetch from the location
74619 +where that name is stored in memory; perhaps, if the name were
74620 +different, the contents of that location would fool the linker into
74621 +doing the right thing despite the bug. Play it safe and give a
74622 +specific, complete example. That is the easiest thing for you to do,
74623 +and the most helpful.
74624 +
74625 + Keep in mind that the purpose of a bug report is to enable us to fix
74626 +the bug if it is new to us. Therefore, always write your bug reports
74627 +on the assumption that the bug has not been reported previously.
74628 +
74629 + Sometimes people give a few sketchy facts and ask, "Does this ring a
74630 +bell?" This cannot help us fix a bug, so it is basically useless. We
74631 +respond by asking for enough details to enable us to investigate. You
74632 +might as well expedite matters by sending them to begin with.
74633 +
74634 + To enable us to fix the bug, you should include all these things:
74635 +
74636 + * The version of `ld'. `ld' announces it if you start it with the
74637 + `--version' argument.
74638 +
74639 + Without this, we will not know whether there is any point in
74640 + looking for the bug in the current version of `ld'.
74641 +
74642 + * Any patches you may have applied to the `ld' source, including any
74643 + patches made to the `BFD' library.
74644 +
74645 + * The type of machine you are using, and the operating system name
74646 + and version number.
74647 +
74648 + * What compiler (and its version) was used to compile `ld'--e.g.
74649 + "`gcc-2.7'".
74650 +
74651 + * The command arguments you gave the linker to link your example and
74652 + observe the bug. To guarantee you will not omit something
74653 + important, list them all. A copy of the Makefile (or the output
74654 + from make) is sufficient.
74655 +
74656 + If we were to try to guess the arguments, we would probably guess
74657 + wrong and then we might not encounter the bug.
74658 +
74659 + * A complete input file, or set of input files, that will reproduce
74660 + the bug. It is generally most helpful to send the actual object
74661 + files provided that they are reasonably small. Say no more than
74662 + 10K. For bigger files you can either make them available by FTP
74663 + or HTTP or else state that you are willing to send the object
74664 + file(s) to whomever requests them. (Note - your email will be
74665 + going to a mailing list, so we do not want to clog it up with
74666 + large attachments). But small attachments are best.
74667 +
74668 + If the source files were assembled using `gas' or compiled using
74669 + `gcc', then it may be OK to send the source files rather than the
74670 + object files. In this case, be sure to say exactly what version of
74671 + `gas' or `gcc' was used to produce the object files. Also say how
74672 + `gas' or `gcc' were configured.
74673 +
74674 + * A description of what behavior you observe that you believe is
74675 + incorrect. For example, "It gets a fatal signal."
74676 +
74677 + Of course, if the bug is that `ld' gets a fatal signal, then we
74678 + will certainly notice it. But if the bug is incorrect output, we
74679 + might not notice unless it is glaringly wrong. You might as well
74680 + not give us a chance to make a mistake.
74681 +
74682 + Even if the problem you experience is a fatal signal, you should
74683 + still say so explicitly. Suppose something strange is going on,
74684 + such as, your copy of `ld' is out of synch, or you have
74685 + encountered a bug in the C library on your system. (This has
74686 + happened!) Your copy might crash and ours would not. If you told
74687 + us to expect a crash, then when ours fails to crash, we would know
74688 + that the bug was not happening for us. If you had not told us to
74689 + expect a crash, then we would not be able to draw any conclusion
74690 + from our observations.
74691 +
74692 + * If you wish to suggest changes to the `ld' source, send us context
74693 + diffs, as generated by `diff' with the `-u', `-c', or `-p' option.
74694 + Always send diffs from the old file to the new file. If you even
74695 + discuss something in the `ld' source, refer to it by context, not
74696 + by line number.
74697 +
74698 + The line numbers in our development sources will not match those
74699 + in your sources. Your line numbers would convey no useful
74700 + information to us.
74701 +
74702 + Here are some things that are not necessary:
74703 +
74704 + * A description of the envelope of the bug.
74705 +
74706 + Often people who encounter a bug spend a lot of time investigating
74707 + which changes to the input file will make the bug go away and which
74708 + changes will not affect it.
74709 +
74710 + This is often time consuming and not very useful, because the way
74711 + we will find the bug is by running a single example under the
74712 + debugger with breakpoints, not by pure deduction from a series of
74713 + examples. We recommend that you save your time for something else.
74714 +
74715 + Of course, if you can find a simpler example to report _instead_
74716 + of the original one, that is a convenience for us. Errors in the
74717 + output will be easier to spot, running under the debugger will take
74718 + less time, and so on.
74719 +
74720 + However, simplification is not vital; if you do not want to do
74721 + this, report the bug anyway and send us the entire test case you
74722 + used.
74723 +
74724 + * A patch for the bug.
74725 +
74726 + A patch for the bug does help us if it is a good one. But do not
74727 + omit the necessary information, such as the test case, on the
74728 + assumption that a patch is all we need. We might see problems
74729 + with your patch and decide to fix the problem another way, or we
74730 + might not understand it at all.
74731 +
74732 + Sometimes with a program as complicated as `ld' it is very hard to
74733 + construct an example that will make the program follow a certain
74734 + path through the code. If you do not send us the example, we will
74735 + not be able to construct one, so we will not be able to verify
74736 + that the bug is fixed.
74737 +
74738 + And if we cannot understand what bug you are trying to fix, or why
74739 + your patch should be an improvement, we will not install it. A
74740 + test case will help us to understand.
74741 +
74742 + * A guess about what the bug is or what it depends on.
74743 +
74744 + Such guesses are usually wrong. Even we cannot guess right about
74745 + such things without first using the debugger to find the facts.
74746 +
74747 +\1f
74748 +File: ld.info, Node: MRI, Next: GNU Free Documentation License, Prev: Reporting Bugs, Up: Top
74749 +
74750 +Appendix A MRI Compatible Script Files
74751 +**************************************
74752 +
74753 +To aid users making the transition to GNU `ld' from the MRI linker,
74754 +`ld' can use MRI compatible linker scripts as an alternative to the
74755 +more general-purpose linker scripting language described in *Note
74756 +Scripts::. MRI compatible linker scripts have a much simpler command
74757 +set than the scripting language otherwise used with `ld'. GNU `ld'
74758 +supports the most commonly used MRI linker commands; these commands are
74759 +described here.
74760 +
74761 + In general, MRI scripts aren't of much use with the `a.out' object
74762 +file format, since it only has three sections and MRI scripts lack some
74763 +features to make use of them.
74764 +
74765 + You can specify a file containing an MRI-compatible script using the
74766 +`-c' command-line option.
74767 +
74768 + Each command in an MRI-compatible script occupies its own line; each
74769 +command line starts with the keyword that identifies the command (though
74770 +blank lines are also allowed for punctuation). If a line of an
74771 +MRI-compatible script begins with an unrecognized keyword, `ld' issues
74772 +a warning message, but continues processing the script.
74773 +
74774 + Lines beginning with `*' are comments.
74775 +
74776 + You can write these commands using all upper-case letters, or all
74777 +lower case; for example, `chip' is the same as `CHIP'. The following
74778 +list shows only the upper-case form of each command.
74779 +
74780 +`ABSOLUTE SECNAME'
74781 +`ABSOLUTE SECNAME, SECNAME, ... SECNAME'
74782 + Normally, `ld' includes in the output file all sections from all
74783 + the input files. However, in an MRI-compatible script, you can
74784 + use the `ABSOLUTE' command to restrict the sections that will be
74785 + present in your output program. If the `ABSOLUTE' command is used
74786 + at all in a script, then only the sections named explicitly in
74787 + `ABSOLUTE' commands will appear in the linker output. You can
74788 + still use other input sections (whatever you select on the command
74789 + line, or using `LOAD') to resolve addresses in the output file.
74790 +
74791 +`ALIAS OUT-SECNAME, IN-SECNAME'
74792 + Use this command to place the data from input section IN-SECNAME
74793 + in a section called OUT-SECNAME in the linker output file.
74794 +
74795 + IN-SECNAME may be an integer.
74796 +
74797 +`ALIGN SECNAME = EXPRESSION'
74798 + Align the section called SECNAME to EXPRESSION. The EXPRESSION
74799 + should be a power of two.
74800 +
74801 +`BASE EXPRESSION'
74802 + Use the value of EXPRESSION as the lowest address (other than
74803 + absolute addresses) in the output file.
74804 +
74805 +`CHIP EXPRESSION'
74806 +`CHIP EXPRESSION, EXPRESSION'
74807 + This command does nothing; it is accepted only for compatibility.
74808 +
74809 +`END'
74810 + This command does nothing whatever; it's only accepted for
74811 + compatibility.
74812 +
74813 +`FORMAT OUTPUT-FORMAT'
74814 + Similar to the `OUTPUT_FORMAT' command in the more general linker
74815 + language, but restricted to one of these output formats:
74816 +
74817 + 1. S-records, if OUTPUT-FORMAT is `S'
74818 +
74819 + 2. IEEE, if OUTPUT-FORMAT is `IEEE'
74820 +
74821 + 3. COFF (the `coff-m68k' variant in BFD), if OUTPUT-FORMAT is
74822 + `COFF'
74823 +
74824 +`LIST ANYTHING...'
74825 + Print (to the standard output file) a link map, as produced by the
74826 + `ld' command-line option `-M'.
74827 +
74828 + The keyword `LIST' may be followed by anything on the same line,
74829 + with no change in its effect.
74830 +
74831 +`LOAD FILENAME'
74832 +`LOAD FILENAME, FILENAME, ... FILENAME'
74833 + Include one or more object file FILENAME in the link; this has the
74834 + same effect as specifying FILENAME directly on the `ld' command
74835 + line.
74836 +
74837 +`NAME OUTPUT-NAME'
74838 + OUTPUT-NAME is the name for the program produced by `ld'; the
74839 + MRI-compatible command `NAME' is equivalent to the command-line
74840 + option `-o' or the general script language command `OUTPUT'.
74841 +
74842 +`ORDER SECNAME, SECNAME, ... SECNAME'
74843 +`ORDER SECNAME SECNAME SECNAME'
74844 + Normally, `ld' orders the sections in its output file in the order
74845 + in which they first appear in the input files. In an
74846 + MRI-compatible script, you can override this ordering with the
74847 + `ORDER' command. The sections you list with `ORDER' will appear
74848 + first in your output file, in the order specified.
74849 +
74850 +`PUBLIC NAME=EXPRESSION'
74851 +`PUBLIC NAME,EXPRESSION'
74852 +`PUBLIC NAME EXPRESSION'
74853 + Supply a value (EXPRESSION) for external symbol NAME used in the
74854 + linker input files.
74855 +
74856 +`SECT SECNAME, EXPRESSION'
74857 +`SECT SECNAME=EXPRESSION'
74858 +`SECT SECNAME EXPRESSION'
74859 + You can use any of these three forms of the `SECT' command to
74860 + specify the start address (EXPRESSION) for section SECNAME. If
74861 + you have more than one `SECT' statement for the same SECNAME, only
74862 + the _first_ sets the start address.
74863 +
74864 +\1f
74865 +File: ld.info, Node: GNU Free Documentation License, Next: Index, Prev: MRI, Up: Top
74866 +
74867 +Appendix B GNU Free Documentation License
74868 +*****************************************
74869 +
74870 + Version 1.1, March 2000
74871 +
74872 + Copyright (C) 2000, 2003 Free Software Foundation, Inc.
74873 + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
74874 +
74875 + Everyone is permitted to copy and distribute verbatim copies
74876 + of this license document, but changing it is not allowed.
74877 +
74878 +
74879 + 0. PREAMBLE
74880 +
74881 + The purpose of this License is to make a manual, textbook, or other
74882 + written document "free" in the sense of freedom: to assure everyone
74883 + the effective freedom to copy and redistribute it, with or without
74884 + modifying it, either commercially or noncommercially. Secondarily,
74885 + this License preserves for the author and publisher a way to get
74886 + credit for their work, while not being considered responsible for
74887 + modifications made by others.
74888 +
74889 + This License is a kind of "copyleft", which means that derivative
74890 + works of the document must themselves be free in the same sense.
74891 + It complements the GNU General Public License, which is a copyleft
74892 + license designed for free software.
74893 +
74894 + We have designed this License in order to use it for manuals for
74895 + free software, because free software needs free documentation: a
74896 + free program should come with manuals providing the same freedoms
74897 + that the software does. But this License is not limited to
74898 + software manuals; it can be used for any textual work, regardless
74899 + of subject matter or whether it is published as a printed book.
74900 + We recommend this License principally for works whose purpose is
74901 + instruction or reference.
74902 +
74903 +
74904 + 1. APPLICABILITY AND DEFINITIONS
74905 +
74906 + This License applies to any manual or other work that contains a
74907 + notice placed by the copyright holder saying it can be distributed
74908 + under the terms of this License. The "Document", below, refers to
74909 + any such manual or work. Any member of the public is a licensee,
74910 + and is addressed as "you."
74911 +
74912 + A "Modified Version" of the Document means any work containing the
74913 + Document or a portion of it, either copied verbatim, or with
74914 + modifications and/or translated into another language.
74915 +
74916 + A "Secondary Section" is a named appendix or a front-matter
74917 + section of the Document that deals exclusively with the
74918 + relationship of the publishers or authors of the Document to the
74919 + Document's overall subject (or to related matters) and contains
74920 + nothing that could fall directly within that overall subject.
74921 + (For example, if the Document is in part a textbook of
74922 + mathematics, a Secondary Section may not explain any mathematics.)
74923 + The relationship could be a matter of historical connection with
74924 + the subject or with related matters, or of legal, commercial,
74925 + philosophical, ethical or political position regarding them.
74926 +
74927 + The "Invariant Sections" are certain Secondary Sections whose
74928 + titles are designated, as being those of Invariant Sections, in
74929 + the notice that says that the Document is released under this
74930 + License.
74931 +
74932 + The "Cover Texts" are certain short passages of text that are
74933 + listed, as Front-Cover Texts or Back-Cover Texts, in the notice
74934 + that says that the Document is released under this License.
74935 +
74936 + A "Transparent" copy of the Document means a machine-readable copy,
74937 + represented in a format whose specification is available to the
74938 + general public, whose contents can be viewed and edited directly
74939 + and straightforwardly with generic text editors or (for images
74940 + composed of pixels) generic paint programs or (for drawings) some
74941 + widely available drawing editor, and that is suitable for input to
74942 + text formatters or for automatic translation to a variety of
74943 + formats suitable for input to text formatters. A copy made in an
74944 + otherwise Transparent file format whose markup has been designed
74945 + to thwart or discourage subsequent modification by readers is not
74946 + Transparent. A copy that is not "Transparent" is called "Opaque."
74947 +
74948 + Examples of suitable formats for Transparent copies include plain
74949 + ASCII without markup, Texinfo input format, LaTeX input format,
74950 + SGML or XML using a publicly available DTD, and
74951 + standard-conforming simple HTML designed for human modification.
74952 + Opaque formats include PostScript, PDF, proprietary formats that
74953 + can be read and edited only by proprietary word processors, SGML
74954 + or XML for which the DTD and/or processing tools are not generally
74955 + available, and the machine-generated HTML produced by some word
74956 + processors for output purposes only.
74957 +
74958 + The "Title Page" means, for a printed book, the title page itself,
74959 + plus such following pages as are needed to hold, legibly, the
74960 + material this License requires to appear in the title page. For
74961 + works in formats which do not have any title page as such, "Title
74962 + Page" means the text near the most prominent appearance of the
74963 + work's title, preceding the beginning of the body of the text.
74964 +
74965 + 2. VERBATIM COPYING
74966 +
74967 + You may copy and distribute the Document in any medium, either
74968 + commercially or noncommercially, provided that this License, the
74969 + copyright notices, and the license notice saying this License
74970 + applies to the Document are reproduced in all copies, and that you
74971 + add no other conditions whatsoever to those of this License. You
74972 + may not use technical measures to obstruct or control the reading
74973 + or further copying of the copies you make or distribute. However,
74974 + you may accept compensation in exchange for copies. If you
74975 + distribute a large enough number of copies you must also follow
74976 + the conditions in section 3.
74977 +
74978 + You may also lend copies, under the same conditions stated above,
74979 + and you may publicly display copies.
74980 +
74981 + 3. COPYING IN QUANTITY
74982 +
74983 + If you publish printed copies of the Document numbering more than
74984 + 100, and the Document's license notice requires Cover Texts, you
74985 + must enclose the copies in covers that carry, clearly and legibly,
74986 + all these Cover Texts: Front-Cover Texts on the front cover, and
74987 + Back-Cover Texts on the back cover. Both covers must also clearly
74988 + and legibly identify you as the publisher of these copies. The
74989 + front cover must present the full title with all words of the
74990 + title equally prominent and visible. You may add other material
74991 + on the covers in addition. Copying with changes limited to the
74992 + covers, as long as they preserve the title of the Document and
74993 + satisfy these conditions, can be treated as verbatim copying in
74994 + other respects.
74995 +
74996 + If the required texts for either cover are too voluminous to fit
74997 + legibly, you should put the first ones listed (as many as fit
74998 + reasonably) on the actual cover, and continue the rest onto
74999 + adjacent pages.
75000 +
75001 + If you publish or distribute Opaque copies of the Document
75002 + numbering more than 100, you must either include a
75003 + machine-readable Transparent copy along with each Opaque copy, or
75004 + state in or with each Opaque copy a publicly-accessible
75005 + computer-network location containing a complete Transparent copy
75006 + of the Document, free of added material, which the general
75007 + network-using public has access to download anonymously at no
75008 + charge using public-standard network protocols. If you use the
75009 + latter option, you must take reasonably prudent steps, when you
75010 + begin distribution of Opaque copies in quantity, to ensure that
75011 + this Transparent copy will remain thus accessible at the stated
75012 + location until at least one year after the last time you
75013 + distribute an Opaque copy (directly or through your agents or
75014 + retailers) of that edition to the public.
75015 +
75016 + It is requested, but not required, that you contact the authors of
75017 + the Document well before redistributing any large number of
75018 + copies, to give them a chance to provide you with an updated
75019 + version of the Document.
75020 +
75021 + 4. MODIFICATIONS
75022 +
75023 + You may copy and distribute a Modified Version of the Document
75024 + under the conditions of sections 2 and 3 above, provided that you
75025 + release the Modified Version under precisely this License, with
75026 + the Modified Version filling the role of the Document, thus
75027 + licensing distribution and modification of the Modified Version to
75028 + whoever possesses a copy of it. In addition, you must do these
75029 + things in the Modified Version:
75030 +
75031 + A. Use in the Title Page (and on the covers, if any) a title
75032 + distinct from that of the Document, and from those of previous
75033 + versions (which should, if there were any, be listed in the
75034 + History section of the Document). You may use the same title
75035 + as a previous version if the original publisher of that version
75036 + gives permission.
75037 + B. List on the Title Page, as authors, one or more persons or
75038 + entities responsible for authorship of the modifications in the
75039 + Modified Version, together with at least five of the principal
75040 + authors of the Document (all of its principal authors, if it
75041 + has less than five).
75042 + C. State on the Title page the name of the publisher of the
75043 + Modified Version, as the publisher.
75044 + D. Preserve all the copyright notices of the Document.
75045 + E. Add an appropriate copyright notice for your modifications
75046 + adjacent to the other copyright notices.
75047 + F. Include, immediately after the copyright notices, a license
75048 + notice giving the public permission to use the Modified Version
75049 + under the terms of this License, in the form shown in the
75050 + Addendum below.
75051 + G. Preserve in that license notice the full lists of Invariant
75052 + Sections and required Cover Texts given in the Document's
75053 + license notice.
75054 + H. Include an unaltered copy of this License.
75055 + I. Preserve the section entitled "History", and its title, and add
75056 + to it an item stating at least the title, year, new authors, and
75057 + publisher of the Modified Version as given on the Title Page.
75058 + If there is no section entitled "History" in the Document,
75059 + create one stating the title, year, authors, and publisher of
75060 + the Document as given on its Title Page, then add an item
75061 + describing the Modified Version as stated in the previous
75062 + sentence.
75063 + J. Preserve the network location, if any, given in the Document for
75064 + public access to a Transparent copy of the Document, and
75065 + likewise the network locations given in the Document for
75066 + previous versions it was based on. These may be placed in the
75067 + "History" section. You may omit a network location for a work
75068 + that was published at least four years before the Document
75069 + itself, or if the original publisher of the version it refers
75070 + to gives permission.
75071 + K. In any section entitled "Acknowledgements" or "Dedications",
75072 + preserve the section's title, and preserve in the section all the
75073 + substance and tone of each of the contributor acknowledgements
75074 + and/or dedications given therein.
75075 + L. Preserve all the Invariant Sections of the Document,
75076 + unaltered in their text and in their titles. Section numbers
75077 + or the equivalent are not considered part of the section titles.
75078 + M. Delete any section entitled "Endorsements." Such a section
75079 + may not be included in the Modified Version.
75080 + N. Do not retitle any existing section as "Endorsements" or to
75081 + conflict in title with any Invariant Section.
75082 +
75083 + If the Modified Version includes new front-matter sections or
75084 + appendices that qualify as Secondary Sections and contain no
75085 + material copied from the Document, you may at your option
75086 + designate some or all of these sections as invariant. To do this,
75087 + add their titles to the list of Invariant Sections in the Modified
75088 + Version's license notice. These titles must be distinct from any
75089 + other section titles.
75090 +
75091 + You may add a section entitled "Endorsements", provided it contains
75092 + nothing but endorsements of your Modified Version by various
75093 + parties-for example, statements of peer review or that the text has
75094 + been approved by an organization as the authoritative definition
75095 + of a standard.
75096 +
75097 + You may add a passage of up to five words as a Front-Cover Text,
75098 + and a passage of up to 25 words as a Back-Cover Text, to the end
75099 + of the list of Cover Texts in the Modified Version. Only one
75100 + passage of Front-Cover Text and one of Back-Cover Text may be
75101 + added by (or through arrangements made by) any one entity. If the
75102 + Document already includes a cover text for the same cover,
75103 + previously added by you or by arrangement made by the same entity
75104 + you are acting on behalf of, you may not add another; but you may
75105 + replace the old one, on explicit permission from the previous
75106 + publisher that added the old one.
75107 +
75108 + The author(s) and publisher(s) of the Document do not by this
75109 + License give permission to use their names for publicity for or to
75110 + assert or imply endorsement of any Modified Version.
75111 +
75112 + 5. COMBINING DOCUMENTS
75113 +
75114 + You may combine the Document with other documents released under
75115 + this License, under the terms defined in section 4 above for
75116 + modified versions, provided that you include in the combination
75117 + all of the Invariant Sections of all of the original documents,
75118 + unmodified, and list them all as Invariant Sections of your
75119 + combined work in its license notice.
75120 +
75121 + The combined work need only contain one copy of this License, and
75122 + multiple identical Invariant Sections may be replaced with a single
75123 + copy. If there are multiple Invariant Sections with the same name
75124 + but different contents, make the title of each such section unique
75125 + by adding at the end of it, in parentheses, the name of the
75126 + original author or publisher of that section if known, or else a
75127 + unique number. Make the same adjustment to the section titles in
75128 + the list of Invariant Sections in the license notice of the
75129 + combined work.
75130 +
75131 + In the combination, you must combine any sections entitled
75132 + "History" in the various original documents, forming one section
75133 + entitled "History"; likewise combine any sections entitled
75134 + "Acknowledgements", and any sections entitled "Dedications." You
75135 + must delete all sections entitled "Endorsements."
75136 +
75137 + 6. COLLECTIONS OF DOCUMENTS
75138 +
75139 + You may make a collection consisting of the Document and other
75140 + documents released under this License, and replace the individual
75141 + copies of this License in the various documents with a single copy
75142 + that is included in the collection, provided that you follow the
75143 + rules of this License for verbatim copying of each of the
75144 + documents in all other respects.
75145 +
75146 + You may extract a single document from such a collection, and
75147 + distribute it individually under this License, provided you insert
75148 + a copy of this License into the extracted document, and follow
75149 + this License in all other respects regarding verbatim copying of
75150 + that document.
75151 +
75152 + 7. AGGREGATION WITH INDEPENDENT WORKS
75153 +
75154 + A compilation of the Document or its derivatives with other
75155 + separate and independent documents or works, in or on a volume of
75156 + a storage or distribution medium, does not as a whole count as a
75157 + Modified Version of the Document, provided no compilation
75158 + copyright is claimed for the compilation. Such a compilation is
75159 + called an "aggregate", and this License does not apply to the
75160 + other self-contained works thus compiled with the Document, on
75161 + account of their being thus compiled, if they are not themselves
75162 + derivative works of the Document.
75163 +
75164 + If the Cover Text requirement of section 3 is applicable to these
75165 + copies of the Document, then if the Document is less than one
75166 + quarter of the entire aggregate, the Document's Cover Texts may be
75167 + placed on covers that surround only the Document within the
75168 + aggregate. Otherwise they must appear on covers around the whole
75169 + aggregate.
75170 +
75171 + 8. TRANSLATION
75172 +
75173 + Translation is considered a kind of modification, so you may
75174 + distribute translations of the Document under the terms of section
75175 + 4. Replacing Invariant Sections with translations requires special
75176 + permission from their copyright holders, but you may include
75177 + translations of some or all Invariant Sections in addition to the
75178 + original versions of these Invariant Sections. You may include a
75179 + translation of this License provided that you also include the
75180 + original English version of this License. In case of a
75181 + disagreement between the translation and the original English
75182 + version of this License, the original English version will prevail.
75183 +
75184 + 9. TERMINATION
75185 +
75186 + You may not copy, modify, sublicense, or distribute the Document
75187 + except as expressly provided for under this License. Any other
75188 + attempt to copy, modify, sublicense or distribute the Document is
75189 + void, and will automatically terminate your rights under this
75190 + License. However, parties who have received copies, or rights,
75191 + from you under this License will not have their licenses
75192 + terminated so long as such parties remain in full compliance.
75193 +
75194 + 10. FUTURE REVISIONS OF THIS LICENSE
75195 +
75196 + The Free Software Foundation may publish new, revised versions of
75197 + the GNU Free Documentation License from time to time. Such new
75198 + versions will be similar in spirit to the present version, but may
75199 + differ in detail to address new problems or concerns. See
75200 + http://www.gnu.org/copyleft/.
75201 +
75202 + Each version of the License is given a distinguishing version
75203 + number. If the Document specifies that a particular numbered
75204 + version of this License "or any later version" applies to it, you
75205 + have the option of following the terms and conditions either of
75206 + that specified version or of any later version that has been
75207 + published (not as a draft) by the Free Software Foundation. If
75208 + the Document does not specify a version number of this License,
75209 + you may choose any version ever published (not as a draft) by the
75210 + Free Software Foundation.
75211 +
75212 +
75213 +ADDENDUM: How to use this License for your documents
75214 +====================================================
75215 +
75216 +To use this License in a document you have written, include a copy of
75217 +the License in the document and put the following copyright and license
75218 +notices just after the title page:
75219 +
75220 + Copyright (C) YEAR YOUR NAME.
75221 + Permission is granted to copy, distribute and/or modify this document
75222 + under the terms of the GNU Free Documentation License, Version 1.1
75223 + or any later version published by the Free Software Foundation;
75224 + with the Invariant Sections being LIST THEIR TITLES, with the
75225 + Front-Cover Texts being LIST, and with the Back-Cover Texts being LIST.
75226 + A copy of the license is included in the section entitled "GNU
75227 + Free Documentation License."
75228 +
75229 + If you have no Invariant Sections, write "with no Invariant Sections"
75230 +instead of saying which ones are invariant. If you have no Front-Cover
75231 +Texts, write "no Front-Cover Texts" instead of "Front-Cover Texts being
75232 +LIST"; likewise for Back-Cover Texts.
75233 +
75234 + If your document contains nontrivial examples of program code, we
75235 +recommend releasing these examples in parallel under your choice of
75236 +free software license, such as the GNU General Public License, to
75237 +permit their use in free software.
75238 +
75239 +\1f
75240 +File: ld.info, Node: Index, Prev: GNU Free Documentation License, Up: Top
75241 +
75242 +Index
75243 +*****
75244 +
75245 +