7cdd55afe7b5acb44122225be43d42214b9abbd7
[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 @@ -2836,7 +3321,7 @@ fi
3675
3676 # Define the identity of the package.
3677 PACKAGE=bfd
3678 - VERSION=2.17
3679 + VERSION=2.17.atmel.0.0.99
3680
3681
3682 cat >>confdefs.h <<_ACEOF
3683 @@ -2874,8 +3359,8 @@ if test "$cross_compiling" != no; then
3684 if test -n "$ac_tool_prefix"; then
3685 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3686 set dummy ${ac_tool_prefix}strip; ac_word=$2
3687 -echo "$as_me:$LINENO: checking for $ac_word" >&5
3688 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3689 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3690 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3691 if test "${ac_cv_prog_STRIP+set}" = set; then
3692 echo $ECHO_N "(cached) $ECHO_C" >&6
3693 else
3694 @@ -2888,32 +3373,34 @@ do
3695 IFS=$as_save_IFS
3696 test -z "$as_dir" && as_dir=.
3697 for ac_exec_ext in '' $ac_executable_extensions; do
3698 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3699 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3700 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3701 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3702 break 2
3703 fi
3704 done
3705 done
3706 +IFS=$as_save_IFS
3707
3708 fi
3709 fi
3710 STRIP=$ac_cv_prog_STRIP
3711 if test -n "$STRIP"; then
3712 - echo "$as_me:$LINENO: result: $STRIP" >&5
3713 -echo "${ECHO_T}$STRIP" >&6
3714 + { echo "$as_me:$LINENO: result: $STRIP" >&5
3715 +echo "${ECHO_T}$STRIP" >&6; }
3716 else
3717 - echo "$as_me:$LINENO: result: no" >&5
3718 -echo "${ECHO_T}no" >&6
3719 + { echo "$as_me:$LINENO: result: no" >&5
3720 +echo "${ECHO_T}no" >&6; }
3721 fi
3722
3723 +
3724 fi
3725 if test -z "$ac_cv_prog_STRIP"; then
3726 ac_ct_STRIP=$STRIP
3727 # Extract the first word of "strip", so it can be a program name with args.
3728 set dummy strip; ac_word=$2
3729 -echo "$as_me:$LINENO: checking for $ac_word" >&5
3730 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3731 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3732 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3733 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3734 echo $ECHO_N "(cached) $ECHO_C" >&6
3735 else
3736 @@ -2926,27 +3413,41 @@ do
3737 IFS=$as_save_IFS
3738 test -z "$as_dir" && as_dir=.
3739 for ac_exec_ext in '' $ac_executable_extensions; do
3740 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3741 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3742 ac_cv_prog_ac_ct_STRIP="strip"
3743 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3744 break 2
3745 fi
3746 done
3747 done
3748 +IFS=$as_save_IFS
3749
3750 - test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3751 fi
3752 fi
3753 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3754 if test -n "$ac_ct_STRIP"; then
3755 - echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3756 -echo "${ECHO_T}$ac_ct_STRIP" >&6
3757 + { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3758 +echo "${ECHO_T}$ac_ct_STRIP" >&6; }
3759 else
3760 - echo "$as_me:$LINENO: result: no" >&5
3761 -echo "${ECHO_T}no" >&6
3762 + { echo "$as_me:$LINENO: result: no" >&5
3763 +echo "${ECHO_T}no" >&6; }
3764 fi
3765
3766 - STRIP=$ac_ct_STRIP
3767 + if test "x$ac_ct_STRIP" = x; then
3768 + STRIP=":"
3769 + else
3770 + case $cross_compiling:$ac_tool_warned in
3771 +yes:)
3772 +{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3773 +whose name does not start with the host triplet. If you think this
3774 +configuration is useful to you, please write to autoconf@gnu.org." >&5
3775 +echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3776 +whose name does not start with the host triplet. If you think this
3777 +configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3778 +ac_tool_warned=yes ;;
3779 +esac
3780 + STRIP=$ac_ct_STRIP
3781 + fi
3782 else
3783 STRIP="$ac_cv_prog_STRIP"
3784 fi
3785 @@ -2967,8 +3468,8 @@ am__tar='${AMTAR} chof - "$$tardir"'; am
3786
3787 depcc="$CC" am_compiler_list=
3788
3789 -echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3790 -echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3791 +{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3792 +echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3793 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3794 echo $ECHO_N "(cached) $ECHO_C" >&6
3795 else
3796 @@ -3057,8 +3558,8 @@ else
3797 fi
3798
3799 fi
3800 -echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3801 -echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3802 +{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3803 +echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3804 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3805
3806
3807 @@ -3079,8 +3580,8 @@ fi
3808 if test -n "$ac_tool_prefix"; then
3809 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3810 set dummy ${ac_tool_prefix}ar; ac_word=$2
3811 -echo "$as_me:$LINENO: checking for $ac_word" >&5
3812 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3813 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3814 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3815 if test "${ac_cv_prog_AR+set}" = set; then
3816 echo $ECHO_N "(cached) $ECHO_C" >&6
3817 else
3818 @@ -3093,32 +3594,34 @@ do
3819 IFS=$as_save_IFS
3820 test -z "$as_dir" && as_dir=.
3821 for ac_exec_ext in '' $ac_executable_extensions; do
3822 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3823 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3824 ac_cv_prog_AR="${ac_tool_prefix}ar"
3825 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3826 break 2
3827 fi
3828 done
3829 done
3830 +IFS=$as_save_IFS
3831
3832 fi
3833 fi
3834 AR=$ac_cv_prog_AR
3835 if test -n "$AR"; then
3836 - echo "$as_me:$LINENO: result: $AR" >&5
3837 -echo "${ECHO_T}$AR" >&6
3838 + { echo "$as_me:$LINENO: result: $AR" >&5
3839 +echo "${ECHO_T}$AR" >&6; }
3840 else
3841 - echo "$as_me:$LINENO: result: no" >&5
3842 -echo "${ECHO_T}no" >&6
3843 + { echo "$as_me:$LINENO: result: no" >&5
3844 +echo "${ECHO_T}no" >&6; }
3845 fi
3846
3847 +
3848 fi
3849 if test -z "$ac_cv_prog_AR"; then
3850 ac_ct_AR=$AR
3851 # Extract the first word of "ar", so it can be a program name with args.
3852 set dummy ar; ac_word=$2
3853 -echo "$as_me:$LINENO: checking for $ac_word" >&5
3854 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3855 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3856 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3857 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3858 echo $ECHO_N "(cached) $ECHO_C" >&6
3859 else
3860 @@ -3131,26 +3634,41 @@ do
3861 IFS=$as_save_IFS
3862 test -z "$as_dir" && as_dir=.
3863 for ac_exec_ext in '' $ac_executable_extensions; do
3864 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3865 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3866 ac_cv_prog_ac_ct_AR="ar"
3867 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3868 break 2
3869 fi
3870 done
3871 done
3872 +IFS=$as_save_IFS
3873
3874 fi
3875 fi
3876 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3877 if test -n "$ac_ct_AR"; then
3878 - echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3879 -echo "${ECHO_T}$ac_ct_AR" >&6
3880 + { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3881 +echo "${ECHO_T}$ac_ct_AR" >&6; }
3882 else
3883 - echo "$as_me:$LINENO: result: no" >&5
3884 -echo "${ECHO_T}no" >&6
3885 + { echo "$as_me:$LINENO: result: no" >&5
3886 +echo "${ECHO_T}no" >&6; }
3887 fi
3888
3889 - AR=$ac_ct_AR
3890 + if test "x$ac_ct_AR" = x; then
3891 + AR=""
3892 + else
3893 + case $cross_compiling:$ac_tool_warned in
3894 +yes:)
3895 +{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3896 +whose name does not start with the host triplet. If you think this
3897 +configuration is useful to you, please write to autoconf@gnu.org." >&5
3898 +echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3899 +whose name does not start with the host triplet. If you think this
3900 +configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3901 +ac_tool_warned=yes ;;
3902 +esac
3903 + AR=$ac_ct_AR
3904 + fi
3905 else
3906 AR="$ac_cv_prog_AR"
3907 fi
3908 @@ -3158,8 +3676,8 @@ fi
3909 if test -n "$ac_tool_prefix"; then
3910 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3911 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3912 -echo "$as_me:$LINENO: checking for $ac_word" >&5
3913 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3914 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3915 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3916 if test "${ac_cv_prog_RANLIB+set}" = set; then
3917 echo $ECHO_N "(cached) $ECHO_C" >&6
3918 else
3919 @@ -3172,32 +3690,34 @@ do
3920 IFS=$as_save_IFS
3921 test -z "$as_dir" && as_dir=.
3922 for ac_exec_ext in '' $ac_executable_extensions; do
3923 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3924 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3925 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3926 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3927 break 2
3928 fi
3929 done
3930 done
3931 +IFS=$as_save_IFS
3932
3933 fi
3934 fi
3935 RANLIB=$ac_cv_prog_RANLIB
3936 if test -n "$RANLIB"; then
3937 - echo "$as_me:$LINENO: result: $RANLIB" >&5
3938 -echo "${ECHO_T}$RANLIB" >&6
3939 + { echo "$as_me:$LINENO: result: $RANLIB" >&5
3940 +echo "${ECHO_T}$RANLIB" >&6; }
3941 else
3942 - echo "$as_me:$LINENO: result: no" >&5
3943 -echo "${ECHO_T}no" >&6
3944 + { echo "$as_me:$LINENO: result: no" >&5
3945 +echo "${ECHO_T}no" >&6; }
3946 fi
3947
3948 +
3949 fi
3950 if test -z "$ac_cv_prog_RANLIB"; then
3951 ac_ct_RANLIB=$RANLIB
3952 # Extract the first word of "ranlib", so it can be a program name with args.
3953 set dummy ranlib; ac_word=$2
3954 -echo "$as_me:$LINENO: checking for $ac_word" >&5
3955 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3956 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3957 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3958 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3959 echo $ECHO_N "(cached) $ECHO_C" >&6
3960 else
3961 @@ -3210,36 +3730,49 @@ do
3962 IFS=$as_save_IFS
3963 test -z "$as_dir" && as_dir=.
3964 for ac_exec_ext in '' $ac_executable_extensions; do
3965 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3966 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3967 ac_cv_prog_ac_ct_RANLIB="ranlib"
3968 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3969 break 2
3970 fi
3971 done
3972 done
3973 +IFS=$as_save_IFS
3974
3975 - test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3976 fi
3977 fi
3978 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3979 if test -n "$ac_ct_RANLIB"; then
3980 - echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3981 -echo "${ECHO_T}$ac_ct_RANLIB" >&6
3982 + { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3983 +echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
3984 else
3985 - echo "$as_me:$LINENO: result: no" >&5
3986 -echo "${ECHO_T}no" >&6
3987 + { echo "$as_me:$LINENO: result: no" >&5
3988 +echo "${ECHO_T}no" >&6; }
3989 fi
3990
3991 - RANLIB=$ac_ct_RANLIB
3992 + if test "x$ac_ct_RANLIB" = x; then
3993 + RANLIB=":"
3994 + else
3995 + case $cross_compiling:$ac_tool_warned in
3996 +yes:)
3997 +{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3998 +whose name does not start with the host triplet. If you think this
3999 +configuration is useful to you, please write to autoconf@gnu.org." >&5
4000 +echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4001 +whose name does not start with the host triplet. If you think this
4002 +configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4003 +ac_tool_warned=yes ;;
4004 +esac
4005 + RANLIB=$ac_ct_RANLIB
4006 + fi
4007 else
4008 RANLIB="$ac_cv_prog_RANLIB"
4009 fi
4010
4011
4012 -# Check whether --enable-shared or --disable-shared was given.
4013 +# Check whether --enable-shared was given.
4014 if test "${enable_shared+set}" = set; then
4015 - enableval="$enable_shared"
4016 - p=${PACKAGE-default}
4017 + enableval=$enable_shared; p=${PACKAGE-default}
4018 case $enableval in
4019 yes) enable_shared=yes ;;
4020 no) enable_shared=no ;;
4021 @@ -3257,12 +3790,12 @@ no) enable_shared=no ;;
4022 esac
4023 else
4024 enable_shared=no
4025 -fi;
4026 +fi
4027 +
4028
4029 -# Check whether --enable-static or --disable-static was given.
4030 +# Check whether --enable-static was given.
4031 if test "${enable_static+set}" = set; then
4032 - enableval="$enable_static"
4033 - p=${PACKAGE-default}
4034 + enableval=$enable_static; p=${PACKAGE-default}
4035 case $enableval in
4036 yes) enable_static=yes ;;
4037 no) enable_static=no ;;
4038 @@ -3280,11 +3813,11 @@ no) enable_static=no ;;
4039 esac
4040 else
4041 enable_static=yes
4042 -fi;
4043 -# Check whether --enable-fast-install or --disable-fast-install was given.
4044 +fi
4045 +
4046 +# Check whether --enable-fast-install was given.
4047 if test "${enable_fast_install+set}" = set; then
4048 - enableval="$enable_fast_install"
4049 - p=${PACKAGE-default}
4050 + enableval=$enable_fast_install; p=${PACKAGE-default}
4051 case $enableval in
4052 yes) enable_fast_install=yes ;;
4053 no) enable_fast_install=no ;;
4054 @@ -3302,20 +3835,21 @@ no) enable_fast_install=no ;;
4055 esac
4056 else
4057 enable_fast_install=yes
4058 -fi;
4059 +fi
4060 +
4061
4062 -# Check whether --with-gnu-ld or --without-gnu-ld was given.
4063 +# Check whether --with-gnu-ld was given.
4064 if test "${with_gnu_ld+set}" = set; then
4065 - withval="$with_gnu_ld"
4066 - test "$withval" = no || with_gnu_ld=yes
4067 + withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4068 else
4069 with_gnu_ld=no
4070 -fi;
4071 +fi
4072 +
4073 ac_prog=ld
4074 if test "$GCC" = yes; then
4075 # Check if gcc -print-prog-name=ld gives a path.
4076 - echo "$as_me:$LINENO: checking for ld used by GCC" >&5
4077 -echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
4078 + { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
4079 +echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
4080 case $host in
4081 *-*-mingw*)
4082 # gcc leaves a trailing carriage return which upsets mingw
4083 @@ -3344,11 +3878,11 @@ echo $ECHO_N "checking for ld used by GC
4084 ;;
4085 esac
4086 elif test "$with_gnu_ld" = yes; then
4087 - echo "$as_me:$LINENO: checking for GNU ld" >&5
4088 -echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4089 + { echo "$as_me:$LINENO: checking for GNU ld" >&5
4090 +echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4091 else
4092 - echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4093 -echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4094 + { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4095 +echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4096 fi
4097 if test "${lt_cv_path_LD+set}" = set; then
4098 echo $ECHO_N "(cached) $ECHO_C" >&6
4099 @@ -3377,17 +3911,17 @@ fi
4100
4101 LD="$lt_cv_path_LD"
4102 if test -n "$LD"; then
4103 - echo "$as_me:$LINENO: result: $LD" >&5
4104 -echo "${ECHO_T}$LD" >&6
4105 + { echo "$as_me:$LINENO: result: $LD" >&5
4106 +echo "${ECHO_T}$LD" >&6; }
4107 else
4108 - echo "$as_me:$LINENO: result: no" >&5
4109 -echo "${ECHO_T}no" >&6
4110 + { echo "$as_me:$LINENO: result: no" >&5
4111 +echo "${ECHO_T}no" >&6; }
4112 fi
4113 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4114 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4115 { (exit 1); exit 1; }; }
4116 -echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4117 -echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4118 +{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4119 +echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4120 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4121 echo $ECHO_N "(cached) $ECHO_C" >&6
4122 else
4123 @@ -3398,25 +3932,25 @@ else
4124 lt_cv_prog_gnu_ld=no
4125 fi
4126 fi
4127 -echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4128 -echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4129 +{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4130 +echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4131 with_gnu_ld=$lt_cv_prog_gnu_ld
4132
4133
4134 -echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4135 -echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4136 +{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4137 +echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4138 if test "${lt_cv_ld_reload_flag+set}" = set; then
4139 echo $ECHO_N "(cached) $ECHO_C" >&6
4140 else
4141 lt_cv_ld_reload_flag='-r'
4142 fi
4143 -echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4144 -echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4145 +{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4146 +echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4147 reload_flag=$lt_cv_ld_reload_flag
4148 test -n "$reload_flag" && reload_flag=" $reload_flag"
4149
4150 -echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4151 -echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4152 +{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4153 +echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4154 if test "${lt_cv_path_NM+set}" = set; then
4155 echo $ECHO_N "(cached) $ECHO_C" >&6
4156 else
4157 @@ -3451,22 +3985,22 @@ fi
4158 fi
4159
4160 NM="$lt_cv_path_NM"
4161 -echo "$as_me:$LINENO: result: $NM" >&5
4162 -echo "${ECHO_T}$NM" >&6
4163 +{ echo "$as_me:$LINENO: result: $NM" >&5
4164 +echo "${ECHO_T}$NM" >&6; }
4165
4166 -echo "$as_me:$LINENO: checking whether ln -s works" >&5
4167 -echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4168 +{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
4169 +echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4170 LN_S=$as_ln_s
4171 if test "$LN_S" = "ln -s"; then
4172 - echo "$as_me:$LINENO: result: yes" >&5
4173 -echo "${ECHO_T}yes" >&6
4174 + { echo "$as_me:$LINENO: result: yes" >&5
4175 +echo "${ECHO_T}yes" >&6; }
4176 else
4177 - echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4178 -echo "${ECHO_T}no, using $LN_S" >&6
4179 + { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4180 +echo "${ECHO_T}no, using $LN_S" >&6; }
4181 fi
4182
4183 -echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
4184 -echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
4185 +{ echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
4186 +echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6; }
4187 if test "${lt_cv_deplibs_check_method+set}" = set; then
4188 echo $ECHO_N "(cached) $ECHO_C" >&6
4189 else
4190 @@ -3628,8 +4162,8 @@ sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4191 esac
4192
4193 fi
4194 -echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4195 -echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4196 +{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4197 +echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4198 file_magic_cmd=$lt_cv_file_magic_cmd
4199 deplibs_check_method=$lt_cv_deplibs_check_method
4200
4201 @@ -3639,8 +4173,8 @@ deplibs_check_method=$lt_cv_deplibs_chec
4202 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
4203
4204 # find the maximum length of command line arguments
4205 -echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4206 -echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
4207 +{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4208 +echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
4209 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4210 echo $ECHO_N "(cached) $ECHO_C" >&6
4211 else
4212 @@ -3691,11 +4225,11 @@ else
4213 fi
4214
4215 if test -n "$lt_cv_sys_max_cmd_len" ; then
4216 - echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4217 -echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
4218 + { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4219 +echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
4220 else
4221 - echo "$as_me:$LINENO: result: none" >&5
4222 -echo "${ECHO_T}none" >&6
4223 + { echo "$as_me:$LINENO: result: none" >&5
4224 +echo "${ECHO_T}none" >&6; }
4225 fi
4226
4227
4228 @@ -3703,8 +4237,8 @@ fi
4229 case $deplibs_check_method in
4230 file_magic*)
4231 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
4232 - echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
4233 -echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
4234 + { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
4235 +echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
4236 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4237 echo $ECHO_N "(cached) $ECHO_C" >&6
4238 else
4239 @@ -3758,17 +4292,17 @@ fi
4240
4241 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4242 if test -n "$MAGIC_CMD"; then
4243 - echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4244 -echo "${ECHO_T}$MAGIC_CMD" >&6
4245 + { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4246 +echo "${ECHO_T}$MAGIC_CMD" >&6; }
4247 else
4248 - echo "$as_me:$LINENO: result: no" >&5
4249 -echo "${ECHO_T}no" >&6
4250 + { echo "$as_me:$LINENO: result: no" >&5
4251 +echo "${ECHO_T}no" >&6; }
4252 fi
4253
4254 if test -z "$lt_cv_path_MAGIC_CMD"; then
4255 if test -n "$ac_tool_prefix"; then
4256 - echo "$as_me:$LINENO: checking for file" >&5
4257 -echo $ECHO_N "checking for file... $ECHO_C" >&6
4258 + { echo "$as_me:$LINENO: checking for file" >&5
4259 +echo $ECHO_N "checking for file... $ECHO_C" >&6; }
4260 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4261 echo $ECHO_N "(cached) $ECHO_C" >&6
4262 else
4263 @@ -3822,11 +4356,11 @@ fi
4264
4265 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4266 if test -n "$MAGIC_CMD"; then
4267 - echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4268 -echo "${ECHO_T}$MAGIC_CMD" >&6
4269 + { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4270 +echo "${ECHO_T}$MAGIC_CMD" >&6; }
4271 else
4272 - echo "$as_me:$LINENO: result: no" >&5
4273 -echo "${ECHO_T}no" >&6
4274 + { echo "$as_me:$LINENO: result: no" >&5
4275 +echo "${ECHO_T}no" >&6; }
4276 fi
4277
4278 else
4279 @@ -3841,8 +4375,8 @@ esac
4280 if test -n "$ac_tool_prefix"; then
4281 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4282 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4283 -echo "$as_me:$LINENO: checking for $ac_word" >&5
4284 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4285 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4286 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4287 if test "${ac_cv_prog_RANLIB+set}" = set; then
4288 echo $ECHO_N "(cached) $ECHO_C" >&6
4289 else
4290 @@ -3855,32 +4389,34 @@ do
4291 IFS=$as_save_IFS
4292 test -z "$as_dir" && as_dir=.
4293 for ac_exec_ext in '' $ac_executable_extensions; do
4294 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4295 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4296 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4297 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4298 break 2
4299 fi
4300 done
4301 done
4302 +IFS=$as_save_IFS
4303
4304 fi
4305 fi
4306 RANLIB=$ac_cv_prog_RANLIB
4307 if test -n "$RANLIB"; then
4308 - echo "$as_me:$LINENO: result: $RANLIB" >&5
4309 -echo "${ECHO_T}$RANLIB" >&6
4310 + { echo "$as_me:$LINENO: result: $RANLIB" >&5
4311 +echo "${ECHO_T}$RANLIB" >&6; }
4312 else
4313 - echo "$as_me:$LINENO: result: no" >&5
4314 -echo "${ECHO_T}no" >&6
4315 + { echo "$as_me:$LINENO: result: no" >&5
4316 +echo "${ECHO_T}no" >&6; }
4317 fi
4318
4319 +
4320 fi
4321 if test -z "$ac_cv_prog_RANLIB"; then
4322 ac_ct_RANLIB=$RANLIB
4323 # Extract the first word of "ranlib", so it can be a program name with args.
4324 set dummy ranlib; ac_word=$2
4325 -echo "$as_me:$LINENO: checking for $ac_word" >&5
4326 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4327 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4328 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4329 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4330 echo $ECHO_N "(cached) $ECHO_C" >&6
4331 else
4332 @@ -3893,27 +4429,41 @@ do
4333 IFS=$as_save_IFS
4334 test -z "$as_dir" && as_dir=.
4335 for ac_exec_ext in '' $ac_executable_extensions; do
4336 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4337 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4338 ac_cv_prog_ac_ct_RANLIB="ranlib"
4339 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4340 break 2
4341 fi
4342 done
4343 done
4344 +IFS=$as_save_IFS
4345
4346 - test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4347 fi
4348 fi
4349 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4350 if test -n "$ac_ct_RANLIB"; then
4351 - echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4352 -echo "${ECHO_T}$ac_ct_RANLIB" >&6
4353 + { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4354 +echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4355 else
4356 - echo "$as_me:$LINENO: result: no" >&5
4357 -echo "${ECHO_T}no" >&6
4358 + { echo "$as_me:$LINENO: result: no" >&5
4359 +echo "${ECHO_T}no" >&6; }
4360 fi
4361
4362 - RANLIB=$ac_ct_RANLIB
4363 + if test "x$ac_ct_RANLIB" = x; then
4364 + RANLIB=":"
4365 + else
4366 + case $cross_compiling:$ac_tool_warned in
4367 +yes:)
4368 +{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4369 +whose name does not start with the host triplet. If you think this
4370 +configuration is useful to you, please write to autoconf@gnu.org." >&5
4371 +echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4372 +whose name does not start with the host triplet. If you think this
4373 +configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4374 +ac_tool_warned=yes ;;
4375 +esac
4376 + RANLIB=$ac_ct_RANLIB
4377 + fi
4378 else
4379 RANLIB="$ac_cv_prog_RANLIB"
4380 fi
4381 @@ -3921,8 +4471,8 @@ fi
4382 if test -n "$ac_tool_prefix"; then
4383 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4384 set dummy ${ac_tool_prefix}strip; ac_word=$2
4385 -echo "$as_me:$LINENO: checking for $ac_word" >&5
4386 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4387 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4388 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4389 if test "${ac_cv_prog_STRIP+set}" = set; then
4390 echo $ECHO_N "(cached) $ECHO_C" >&6
4391 else
4392 @@ -3935,32 +4485,34 @@ do
4393 IFS=$as_save_IFS
4394 test -z "$as_dir" && as_dir=.
4395 for ac_exec_ext in '' $ac_executable_extensions; do
4396 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4397 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4398 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4399 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4400 break 2
4401 fi
4402 done
4403 done
4404 +IFS=$as_save_IFS
4405
4406 fi
4407 fi
4408 STRIP=$ac_cv_prog_STRIP
4409 if test -n "$STRIP"; then
4410 - echo "$as_me:$LINENO: result: $STRIP" >&5
4411 -echo "${ECHO_T}$STRIP" >&6
4412 + { echo "$as_me:$LINENO: result: $STRIP" >&5
4413 +echo "${ECHO_T}$STRIP" >&6; }
4414 else
4415 - echo "$as_me:$LINENO: result: no" >&5
4416 -echo "${ECHO_T}no" >&6
4417 + { echo "$as_me:$LINENO: result: no" >&5
4418 +echo "${ECHO_T}no" >&6; }
4419 fi
4420
4421 +
4422 fi
4423 if test -z "$ac_cv_prog_STRIP"; then
4424 ac_ct_STRIP=$STRIP
4425 # Extract the first word of "strip", so it can be a program name with args.
4426 set dummy strip; ac_word=$2
4427 -echo "$as_me:$LINENO: checking for $ac_word" >&5
4428 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4429 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4430 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4431 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4432 echo $ECHO_N "(cached) $ECHO_C" >&6
4433 else
4434 @@ -3973,27 +4525,41 @@ do
4435 IFS=$as_save_IFS
4436 test -z "$as_dir" && as_dir=.
4437 for ac_exec_ext in '' $ac_executable_extensions; do
4438 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4439 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4440 ac_cv_prog_ac_ct_STRIP="strip"
4441 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4442 break 2
4443 fi
4444 done
4445 done
4446 +IFS=$as_save_IFS
4447
4448 - test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4449 fi
4450 fi
4451 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4452 if test -n "$ac_ct_STRIP"; then
4453 - echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4454 -echo "${ECHO_T}$ac_ct_STRIP" >&6
4455 + { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4456 +echo "${ECHO_T}$ac_ct_STRIP" >&6; }
4457 else
4458 - echo "$as_me:$LINENO: result: no" >&5
4459 -echo "${ECHO_T}no" >&6
4460 + { echo "$as_me:$LINENO: result: no" >&5
4461 +echo "${ECHO_T}no" >&6; }
4462 fi
4463
4464 - STRIP=$ac_ct_STRIP
4465 + if test "x$ac_ct_STRIP" = x; then
4466 + STRIP=":"
4467 + else
4468 + case $cross_compiling:$ac_tool_warned in
4469 +yes:)
4470 +{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4471 +whose name does not start with the host triplet. If you think this
4472 +configuration is useful to you, please write to autoconf@gnu.org." >&5
4473 +echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4474 +whose name does not start with the host triplet. If you think this
4475 +configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4476 +ac_tool_warned=yes ;;
4477 +esac
4478 + STRIP=$ac_ct_STRIP
4479 + fi
4480 else
4481 STRIP="$ac_cv_prog_STRIP"
4482 fi
4483 @@ -4008,22 +4574,22 @@ test "$GCC" = yes && libtool_flags="$lib
4484 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
4485
4486
4487 -# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4488 +# Check whether --enable-libtool-lock was given.
4489 if test "${enable_libtool_lock+set}" = set; then
4490 - enableval="$enable_libtool_lock"
4491 + enableval=$enable_libtool_lock;
4492 +fi
4493
4494 -fi;
4495 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
4496 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
4497
4498
4499 -# Check whether --with-pic or --without-pic was given.
4500 +# Check whether --with-pic was given.
4501 if test "${with_pic+set}" = set; then
4502 - withval="$with_pic"
4503 - pic_mode="$withval"
4504 + withval=$with_pic; pic_mode="$withval"
4505 else
4506 pic_mode=default
4507 -fi;
4508 +fi
4509 +
4510 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
4511 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
4512
4513 @@ -4032,7 +4598,7 @@ test x"$pic_mode" = xno && libtool_flags
4514 case $host in
4515 *-*-irix6*)
4516 # Find out which ABI we are using.
4517 - echo '#line 4035 "configure"' > conftest.$ac_ext
4518 + echo '#line 4601 "configure"' > conftest.$ac_ext
4519 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4520 (eval $ac_compile) 2>&5
4521 ac_status=$?
4522 @@ -4137,13 +4703,12 @@ x86_64-*linux*|ppc*-*linux*|powerpc*-*li
4523 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4524 SAVE_CFLAGS="$CFLAGS"
4525 CFLAGS="$CFLAGS -belf"
4526 - echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4527 -echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4528 + { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4529 +echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4530 if test "${lt_cv_cc_needs_belf+set}" = set; then
4531 echo $ECHO_N "(cached) $ECHO_C" >&6
4532 else
4533
4534 -
4535 ac_ext=c
4536 ac_cpp='$CPP $CPPFLAGS'
4537 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4538 @@ -4166,35 +4731,32 @@ main ()
4539 }
4540 _ACEOF
4541 rm -f conftest.$ac_objext conftest$ac_exeext
4542 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4543 - (eval $ac_link) 2>conftest.er1
4544 +if { (ac_try="$ac_link"
4545 +case "(($ac_try" in
4546 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4547 + *) ac_try_echo=$ac_try;;
4548 +esac
4549 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4550 + (eval "$ac_link") 2>conftest.er1
4551 ac_status=$?
4552 grep -v '^ *+' conftest.er1 >conftest.err
4553 rm -f conftest.er1
4554 cat conftest.err >&5
4555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4556 - (exit $ac_status); } &&
4557 - { ac_try='test -z "$ac_c_werror_flag"
4558 - || test ! -s conftest.err'
4559 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4560 - (eval $ac_try) 2>&5
4561 - ac_status=$?
4562 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
4563 - (exit $ac_status); }; } &&
4564 - { ac_try='test -s conftest$ac_exeext'
4565 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4566 - (eval $ac_try) 2>&5
4567 - ac_status=$?
4568 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
4569 - (exit $ac_status); }; }; then
4570 + (exit $ac_status); } && {
4571 + test -z "$ac_c_werror_flag" ||
4572 + test ! -s conftest.err
4573 + } && test -s conftest$ac_exeext &&
4574 + $as_test_x conftest$ac_exeext; then
4575 lt_cv_cc_needs_belf=yes
4576 else
4577 echo "$as_me: failed program was:" >&5
4578 sed 's/^/| /' conftest.$ac_ext >&5
4579
4580 -lt_cv_cc_needs_belf=no
4581 + lt_cv_cc_needs_belf=no
4582 fi
4583 -rm -f conftest.err conftest.$ac_objext \
4584 +
4585 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4586 conftest$ac_exeext conftest.$ac_ext
4587 ac_ext=c
4588 ac_cpp='$CPP $CPPFLAGS'
4589 @@ -4203,8 +4765,8 @@ ac_link='$CC -o conftest$ac_exeext $CFLA
4590 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4591
4592 fi
4593 -echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4594 -echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4595 +{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4596 +echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4597 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4598 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4599 CFLAGS="$SAVE_CFLAGS"
4600 @@ -4234,39 +4796,58 @@ _ACEOF
4601
4602 # The following way of writing the cache mishandles newlines in values,
4603 # but we know of no workaround that is simple, portable, and efficient.
4604 -# So, don't put newlines in cache variables' values.
4605 +# So, we kill variables containing newlines.
4606 # Ultrix sh set writes to stderr and can't be redirected directly,
4607 # and sets the high bit in the cache file unless we assign to the vars.
4608 -{
4609 +(
4610 + for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
4611 + eval ac_val=\$$ac_var
4612 + case $ac_val in #(
4613 + *${as_nl}*)
4614 + case $ac_var in #(
4615 + *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
4616 +echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
4617 + esac
4618 + case $ac_var in #(
4619 + _ | IFS | as_nl) ;; #(
4620 + *) $as_unset $ac_var ;;
4621 + esac ;;
4622 + esac
4623 + done
4624 +
4625 (set) 2>&1 |
4626 - case `(ac_space=' '; set | grep ac_space) 2>&1` in
4627 - *ac_space=\ *)
4628 + case $as_nl`(ac_space=' '; set) 2>&1` in #(
4629 + *${as_nl}ac_space=\ *)
4630 # `set' does not quote correctly, so add quotes (double-quote
4631 # substitution turns \\\\ into \\, and sed turns \\ into \).
4632 sed -n \
4633 "s/'/'\\\\''/g;
4634 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4635 - ;;
4636 + ;; #(
4637 *)
4638 # `set' quotes correctly as required by POSIX, so do not add quotes.
4639 - sed -n \
4640 - "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4641 + sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
4642 ;;
4643 - esac;
4644 -} |
4645 + esac |
4646 + sort
4647 +) |
4648 sed '
4649 + /^ac_cv_env_/b end
4650 t clear
4651 - : clear
4652 + :clear
4653 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4654 t end
4655 - /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4656 - : end' >>confcache
4657 -if diff $cache_file confcache >/dev/null 2>&1; then :; else
4658 - if test -w $cache_file; then
4659 - test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4660 + s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4661 + :end' >>confcache
4662 +if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
4663 + if test -w "$cache_file"; then
4664 + test "x$cache_file" != "x/dev/null" &&
4665 + { echo "$as_me:$LINENO: updating cache $cache_file" >&5
4666 +echo "$as_me: updating cache $cache_file" >&6;}
4667 cat confcache >$cache_file
4668 else
4669 - echo "not updating unwritable cache $cache_file"
4670 + { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
4671 +echo "$as_me: not updating unwritable cache $cache_file" >&6;}
4672 fi
4673 fi
4674 rm -f confcache
4675 @@ -4292,8 +4873,8 @@ if test -r "$cache_file"; then
4676 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
4677 echo "$as_me: loading cache $cache_file" >&6;}
4678 case $cache_file in
4679 - [\\/]* | ?:[\\/]* ) . $cache_file;;
4680 - *) . ./$cache_file;;
4681 + [\\/]* | ?:[\\/]* ) . "$cache_file";;
4682 + *) . "./$cache_file";;
4683 esac
4684 fi
4685 else
4686 @@ -4319,10 +4900,9 @@ exec 5>>./config.log
4687
4688
4689
4690 -# Check whether --enable-64-bit-bfd or --disable-64-bit-bfd was given.
4691 +# Check whether --enable-64-bit-bfd was given.
4692 if test "${enable_64_bit_bfd+set}" = set; then
4693 - enableval="$enable_64_bit_bfd"
4694 - case "${enableval}" in
4695 + enableval=$enable_64_bit_bfd; case "${enableval}" in
4696 yes) want64=true ;;
4697 no) want64=false ;;
4698 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for 64-bit-bfd option" >&5
4699 @@ -4331,10 +4911,10 @@ echo "$as_me: error: bad value ${enablev
4700 esac
4701 else
4702 want64=false
4703 -fi; # Check whether --enable-targets or --disable-targets was given.
4704 +fi
4705 +# Check whether --enable-targets was given.
4706 if test "${enable_targets+set}" = set; then
4707 - enableval="$enable_targets"
4708 - case "${enableval}" in
4709 + enableval=$enable_targets; case "${enableval}" in
4710 yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5
4711 echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;}
4712 { (exit 1); exit 1; }; }
4713 @@ -4342,21 +4922,21 @@ echo "$as_me: error: enable-targets opti
4714 no) enable_targets= ;;
4715 *) enable_targets=$enableval ;;
4716 esac
4717 -fi; # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
4718 +fi
4719 +# Check whether --enable-commonbfdlib was given.
4720 if test "${enable_commonbfdlib+set}" = set; then
4721 - enableval="$enable_commonbfdlib"
4722 - case "${enableval}" in
4723 + enableval=$enable_commonbfdlib; case "${enableval}" in
4724 yes) commonbfdlib=true ;;
4725 no) commonbfdlib=false ;;
4726 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for BFD commonbfdlib option" >&5
4727 echo "$as_me: error: bad value ${enableval} for BFD commonbfdlib option" >&2;}
4728 { (exit 1); exit 1; }; } ;;
4729 esac
4730 -fi;
4731 -# Check whether --with-mmap or --without-mmap was given.
4732 +fi
4733 +
4734 +# Check whether --with-mmap was given.
4735 if test "${with_mmap+set}" = set; then
4736 - withval="$with_mmap"
4737 - case "${withval}" in
4738 + withval=$with_mmap; case "${withval}" in
4739 yes) want_mmap=true ;;
4740 no) want_mmap=false ;;
4741 *) { { echo "$as_me:$LINENO: error: bad value ${withval} for BFD with-mmap option" >&5
4742 @@ -4365,11 +4945,11 @@ echo "$as_me: error: bad value ${withval
4743 esac
4744 else
4745 want_mmap=false
4746 -fi;
4747 -# Check whether --enable-secureplt or --disable-secureplt was given.
4748 +fi
4749 +
4750 +# Check whether --enable-secureplt was given.
4751 if test "${enable_secureplt+set}" = set; then
4752 - enableval="$enable_secureplt"
4753 - case "${enableval}" in
4754 + enableval=$enable_secureplt; case "${enableval}" in
4755 yes) use_secureplt=true ;;
4756 no) use_secureplt=false ;;
4757 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for secureplt option" >&5
4758 @@ -4378,7 +4958,8 @@ echo "$as_me: error: bad value ${enablev
4759 esac
4760 else
4761 use_secureplt=false
4762 -fi; if test $use_secureplt = true; then
4763 +fi
4764 +if test $use_secureplt = true; then
4765
4766 cat >>confdefs.h <<\_ACEOF
4767 #define USE_SECUREPLT 1
4768 @@ -4389,17 +4970,17 @@ fi
4769
4770 GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
4771
4772 -# Check whether --enable-werror or --disable-werror was given.
4773 +# Check whether --enable-werror was given.
4774 if test "${enable_werror+set}" = set; then
4775 - enableval="$enable_werror"
4776 - case "${enableval}" in
4777 + enableval=$enable_werror; case "${enableval}" in
4778 yes | y) ERROR_ON_WARNING="yes" ;;
4779 no | n) ERROR_ON_WARNING="no" ;;
4780 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
4781 echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
4782 { (exit 1); exit 1; }; } ;;
4783 esac
4784 -fi;
4785 +fi
4786 +
4787
4788 # Enable -Werror by default when using gcc
4789 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
4790 @@ -4416,10 +4997,9 @@ if test "${GCC}" = yes ; then
4791 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
4792 fi
4793
4794 -# Check whether --enable-build-warnings or --disable-build-warnings was given.
4795 +# Check whether --enable-build-warnings was given.
4796 if test "${enable_build_warnings+set}" = set; then
4797 - enableval="$enable_build_warnings"
4798 - case "${enableval}" in
4799 + enableval=$enable_build_warnings; case "${enableval}" in
4800 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
4801 no) if test "${GCC}" = yes ; then
4802 WARN_CFLAGS="-w"
4803 @@ -4430,7 +5010,8 @@ if test "${enable_build_warnings+set}" =
4804 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
4805 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
4806 esac
4807 -fi;
4808 +fi
4809 +
4810
4811 if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
4812 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
4813 @@ -4440,7 +5021,7 @@ fi
4814
4815
4816
4817 - ac_config_headers="$ac_config_headers config.h:config.in"
4818 +ac_config_headers="$ac_config_headers config.h:config.in"
4819
4820
4821 if test -z "$target" ; then
4822 @@ -4449,17 +5030,17 @@ echo "$as_me: error: Unrecognized target
4823 { (exit 1); exit 1; }; }
4824 fi
4825
4826 -echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
4827 -echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
4828 - # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4829 +{ echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
4830 +echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
4831 + # Check whether --enable-maintainer-mode was given.
4832 if test "${enable_maintainer_mode+set}" = set; then
4833 - enableval="$enable_maintainer_mode"
4834 - USE_MAINTAINER_MODE=$enableval
4835 + enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4836 else
4837 USE_MAINTAINER_MODE=no
4838 -fi;
4839 - echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
4840 -echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
4841 +fi
4842 +
4843 + { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
4844 +echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
4845
4846
4847 if test $USE_MAINTAINER_MODE = yes; then
4848 @@ -4488,21 +5069,21 @@ esac
4849 *) target_noncanonical=${target_alias} ;;
4850 esac
4851
4852 -echo "$as_me:$LINENO: checking whether to install libbfd" >&5
4853 -echo $ECHO_N "checking whether to install libbfd... $ECHO_C" >&6
4854 - # Check whether --enable-install-libbfd or --disable-install-libbfd was given.
4855 +{ echo "$as_me:$LINENO: checking whether to install libbfd" >&5
4856 +echo $ECHO_N "checking whether to install libbfd... $ECHO_C" >&6; }
4857 + # Check whether --enable-install-libbfd was given.
4858 if test "${enable_install_libbfd+set}" = set; then
4859 - enableval="$enable_install_libbfd"
4860 - install_libbfd_p=$enableval
4861 + enableval=$enable_install_libbfd; install_libbfd_p=$enableval
4862 else
4863 if test "${host}" = "${target}" || test "$enable_shared" = "yes"; then
4864 install_libbfd_p=yes
4865 else
4866 install_libbfd_p=no
4867 fi
4868 -fi;
4869 - echo "$as_me:$LINENO: result: $install_libbfd_p" >&5
4870 -echo "${ECHO_T}$install_libbfd_p" >&6
4871 +fi
4872 +
4873 + { echo "$as_me:$LINENO: result: $install_libbfd_p" >&5
4874 +echo "${ECHO_T}$install_libbfd_p" >&6; }
4875
4876
4877 if test $install_libbfd_p = yes; then
4878 @@ -4545,8 +5126,8 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
4879 if test -n "$ac_tool_prefix"; then
4880 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4881 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4882 -echo "$as_me:$LINENO: checking for $ac_word" >&5
4883 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4884 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4885 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4886 if test "${ac_cv_prog_CC+set}" = set; then
4887 echo $ECHO_N "(cached) $ECHO_C" >&6
4888 else
4889 @@ -4559,32 +5140,34 @@ do
4890 IFS=$as_save_IFS
4891 test -z "$as_dir" && as_dir=.
4892 for ac_exec_ext in '' $ac_executable_extensions; do
4893 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4894 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4895 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4896 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4897 break 2
4898 fi
4899 done
4900 done
4901 +IFS=$as_save_IFS
4902
4903 fi
4904 fi
4905 CC=$ac_cv_prog_CC
4906 if test -n "$CC"; then
4907 - echo "$as_me:$LINENO: result: $CC" >&5
4908 -echo "${ECHO_T}$CC" >&6
4909 + { echo "$as_me:$LINENO: result: $CC" >&5
4910 +echo "${ECHO_T}$CC" >&6; }
4911 else
4912 - echo "$as_me:$LINENO: result: no" >&5
4913 -echo "${ECHO_T}no" >&6
4914 + { echo "$as_me:$LINENO: result: no" >&5
4915 +echo "${ECHO_T}no" >&6; }
4916 fi
4917
4918 +
4919 fi
4920 if test -z "$ac_cv_prog_CC"; then
4921 ac_ct_CC=$CC
4922 # Extract the first word of "gcc", so it can be a program name with args.
4923 set dummy gcc; ac_word=$2
4924 -echo "$as_me:$LINENO: checking for $ac_word" >&5
4925 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4926 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4927 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4928 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4929 echo $ECHO_N "(cached) $ECHO_C" >&6
4930 else
4931 @@ -4597,36 +5180,51 @@ do
4932 IFS=$as_save_IFS
4933 test -z "$as_dir" && as_dir=.
4934 for ac_exec_ext in '' $ac_executable_extensions; do
4935 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4936 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4937 ac_cv_prog_ac_ct_CC="gcc"
4938 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4939 break 2
4940 fi
4941 done
4942 done
4943 +IFS=$as_save_IFS
4944
4945 fi
4946 fi
4947 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4948 if test -n "$ac_ct_CC"; then
4949 - echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4950 -echo "${ECHO_T}$ac_ct_CC" >&6
4951 + { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4952 +echo "${ECHO_T}$ac_ct_CC" >&6; }
4953 else
4954 - echo "$as_me:$LINENO: result: no" >&5
4955 -echo "${ECHO_T}no" >&6
4956 + { echo "$as_me:$LINENO: result: no" >&5
4957 +echo "${ECHO_T}no" >&6; }
4958 fi
4959
4960 - CC=$ac_ct_CC
4961 + if test "x$ac_ct_CC" = x; then
4962 + CC=""
4963 + else
4964 + case $cross_compiling:$ac_tool_warned in
4965 +yes:)
4966 +{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4967 +whose name does not start with the host triplet. If you think this
4968 +configuration is useful to you, please write to autoconf@gnu.org." >&5
4969 +echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4970 +whose name does not start with the host triplet. If you think this
4971 +configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4972 +ac_tool_warned=yes ;;
4973 +esac
4974 + CC=$ac_ct_CC
4975 + fi
4976 else
4977 CC="$ac_cv_prog_CC"
4978 fi
4979
4980 if test -z "$CC"; then
4981 - if test -n "$ac_tool_prefix"; then
4982 - # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4983 + if test -n "$ac_tool_prefix"; then
4984 + # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4985 set dummy ${ac_tool_prefix}cc; ac_word=$2
4986 -echo "$as_me:$LINENO: checking for $ac_word" >&5
4987 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4988 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4989 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4990 if test "${ac_cv_prog_CC+set}" = set; then
4991 echo $ECHO_N "(cached) $ECHO_C" >&6
4992 else
4993 @@ -4639,74 +5237,34 @@ do
4994 IFS=$as_save_IFS
4995 test -z "$as_dir" && as_dir=.
4996 for ac_exec_ext in '' $ac_executable_extensions; do
4997 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4998 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4999 ac_cv_prog_CC="${ac_tool_prefix}cc"
5000 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5001 break 2
5002 fi
5003 done
5004 done
5005 +IFS=$as_save_IFS
5006
5007 fi
5008 fi
5009 CC=$ac_cv_prog_CC
5010 if test -n "$CC"; then
5011 - echo "$as_me:$LINENO: result: $CC" >&5
5012 -echo "${ECHO_T}$CC" >&6
5013 -else
5014 - echo "$as_me:$LINENO: result: no" >&5
5015 -echo "${ECHO_T}no" >&6
5016 -fi
5017 -
5018 -fi
5019 -if test -z "$ac_cv_prog_CC"; then
5020 - ac_ct_CC=$CC
5021 - # Extract the first word of "cc", so it can be a program name with args.
5022 -set dummy cc; ac_word=$2
5023 -echo "$as_me:$LINENO: checking for $ac_word" >&5
5024 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5025 -if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5026 - echo $ECHO_N "(cached) $ECHO_C" >&6
5027 -else
5028 - if test -n "$ac_ct_CC"; then
5029 - ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5030 -else
5031 -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5032 -for as_dir in $PATH
5033 -do
5034 - IFS=$as_save_IFS
5035 - test -z "$as_dir" && as_dir=.
5036 - for ac_exec_ext in '' $ac_executable_extensions; do
5037 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5038 - ac_cv_prog_ac_ct_CC="cc"
5039 - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5040 - break 2
5041 - fi
5042 -done
5043 -done
5044 -
5045 -fi
5046 -fi
5047 -ac_ct_CC=$ac_cv_prog_ac_ct_CC
5048 -if test -n "$ac_ct_CC"; then
5049 - echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5050 -echo "${ECHO_T}$ac_ct_CC" >&6
5051 + { echo "$as_me:$LINENO: result: $CC" >&5
5052 +echo "${ECHO_T}$CC" >&6; }
5053 else
5054 - echo "$as_me:$LINENO: result: no" >&5
5055 -echo "${ECHO_T}no" >&6
5056 + { echo "$as_me:$LINENO: result: no" >&5
5057 +echo "${ECHO_T}no" >&6; }
5058 fi
5059
5060 - CC=$ac_ct_CC
5061 -else
5062 - CC="$ac_cv_prog_CC"
5063 -fi
5064
5065 + fi
5066 fi
5067 if test -z "$CC"; then
5068 # Extract the first word of "cc", so it can be a program name with args.
5069 set dummy cc; ac_word=$2
5070 -echo "$as_me:$LINENO: checking for $ac_word" >&5
5071 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5072 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5073 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5074 if test "${ac_cv_prog_CC+set}" = set; then
5075 echo $ECHO_N "(cached) $ECHO_C" >&6
5076 else
5077 @@ -4720,7 +5278,7 @@ do
5078 IFS=$as_save_IFS
5079 test -z "$as_dir" && as_dir=.
5080 for ac_exec_ext in '' $ac_executable_extensions; do
5081 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5082 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5083 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5084 ac_prog_rejected=yes
5085 continue
5086 @@ -4731,6 +5289,7 @@ do
5087 fi
5088 done
5089 done
5090 +IFS=$as_save_IFS
5091
5092 if test $ac_prog_rejected = yes; then
5093 # We found a bogon in the path, so make sure we never use it.
5094 @@ -4748,22 +5307,23 @@ fi
5095 fi
5096 CC=$ac_cv_prog_CC
5097 if test -n "$CC"; then
5098 - echo "$as_me:$LINENO: result: $CC" >&5
5099 -echo "${ECHO_T}$CC" >&6
5100 + { echo "$as_me:$LINENO: result: $CC" >&5
5101 +echo "${ECHO_T}$CC" >&6; }
5102 else
5103 - echo "$as_me:$LINENO: result: no" >&5
5104 -echo "${ECHO_T}no" >&6
5105 + { echo "$as_me:$LINENO: result: no" >&5
5106 +echo "${ECHO_T}no" >&6; }
5107 fi
5108
5109 +
5110 fi
5111 if test -z "$CC"; then
5112 if test -n "$ac_tool_prefix"; then
5113 - for ac_prog in cl
5114 + for ac_prog in cl.exe
5115 do
5116 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5117 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5118 -echo "$as_me:$LINENO: checking for $ac_word" >&5
5119 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5120 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5121 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5122 if test "${ac_cv_prog_CC+set}" = set; then
5123 echo $ECHO_N "(cached) $ECHO_C" >&6
5124 else
5125 @@ -4776,36 +5336,38 @@ do
5126 IFS=$as_save_IFS
5127 test -z "$as_dir" && as_dir=.
5128 for ac_exec_ext in '' $ac_executable_extensions; do
5129 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5130 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5131 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5132 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5133 break 2
5134 fi
5135 done
5136 done
5137 +IFS=$as_save_IFS
5138
5139 fi
5140 fi
5141 CC=$ac_cv_prog_CC
5142 if test -n "$CC"; then
5143 - echo "$as_me:$LINENO: result: $CC" >&5
5144 -echo "${ECHO_T}$CC" >&6
5145 + { echo "$as_me:$LINENO: result: $CC" >&5
5146 +echo "${ECHO_T}$CC" >&6; }
5147 else
5148 - echo "$as_me:$LINENO: result: no" >&5
5149 -echo "${ECHO_T}no" >&6
5150 + { echo "$as_me:$LINENO: result: no" >&5
5151 +echo "${ECHO_T}no" >&6; }
5152 fi
5153
5154 +
5155 test -n "$CC" && break
5156 done
5157 fi
5158 if test -z "$CC"; then
5159 ac_ct_CC=$CC
5160 - for ac_prog in cl
5161 + for ac_prog in cl.exe
5162 do
5163 # Extract the first word of "$ac_prog", so it can be a program name with args.
5164 set dummy $ac_prog; ac_word=$2
5165 -echo "$as_me:$LINENO: checking for $ac_word" >&5
5166 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5167 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5168 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5169 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5170 echo $ECHO_N "(cached) $ECHO_C" >&6
5171 else
5172 @@ -4818,29 +5380,45 @@ do
5173 IFS=$as_save_IFS
5174 test -z "$as_dir" && as_dir=.
5175 for ac_exec_ext in '' $ac_executable_extensions; do
5176 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5177 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5178 ac_cv_prog_ac_ct_CC="$ac_prog"
5179 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5180 break 2
5181 fi
5182 done
5183 done
5184 +IFS=$as_save_IFS
5185
5186 fi
5187 fi
5188 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5189 if test -n "$ac_ct_CC"; then
5190 - echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5191 -echo "${ECHO_T}$ac_ct_CC" >&6
5192 + { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5193 +echo "${ECHO_T}$ac_ct_CC" >&6; }
5194 else
5195 - echo "$as_me:$LINENO: result: no" >&5
5196 -echo "${ECHO_T}no" >&6
5197 + { echo "$as_me:$LINENO: result: no" >&5
5198 +echo "${ECHO_T}no" >&6; }
5199 fi
5200
5201 +
5202 test -n "$ac_ct_CC" && break
5203 done
5204
5205 - CC=$ac_ct_CC
5206 + if test "x$ac_ct_CC" = x; then
5207 + CC=""
5208 + else
5209 + case $cross_compiling:$ac_tool_warned in
5210 +yes:)
5211 +{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5212 +whose name does not start with the host triplet. If you think this
5213 +configuration is useful to you, please write to autoconf@gnu.org." >&5
5214 +echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5215 +whose name does not start with the host triplet. If you think this
5216 +configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5217 +ac_tool_warned=yes ;;
5218 +esac
5219 + CC=$ac_ct_CC
5220 + fi
5221 fi
5222
5223 fi
5224 @@ -4853,27 +5431,41 @@ See \`config.log' for more details." >&2
5225 { (exit 1); exit 1; }; }
5226
5227 # Provide some information about the compiler.
5228 -echo "$as_me:$LINENO:" \
5229 - "checking for C compiler version" >&5
5230 +echo "$as_me:$LINENO: checking for C compiler version" >&5
5231 ac_compiler=`set X $ac_compile; echo $2`
5232 -{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5233 - (eval $ac_compiler --version </dev/null >&5) 2>&5
5234 +{ (ac_try="$ac_compiler --version >&5"
5235 +case "(($ac_try" in
5236 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5237 + *) ac_try_echo=$ac_try;;
5238 +esac
5239 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5240 + (eval "$ac_compiler --version >&5") 2>&5
5241 ac_status=$?
5242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5243 (exit $ac_status); }
5244 -{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5245 - (eval $ac_compiler -v </dev/null >&5) 2>&5
5246 +{ (ac_try="$ac_compiler -v >&5"
5247 +case "(($ac_try" in
5248 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5249 + *) ac_try_echo=$ac_try;;
5250 +esac
5251 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5252 + (eval "$ac_compiler -v >&5") 2>&5
5253 ac_status=$?
5254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5255 (exit $ac_status); }
5256 -{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5257 - (eval $ac_compiler -V </dev/null >&5) 2>&5
5258 +{ (ac_try="$ac_compiler -V >&5"
5259 +case "(($ac_try" in
5260 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5261 + *) ac_try_echo=$ac_try;;
5262 +esac
5263 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5264 + (eval "$ac_compiler -V >&5") 2>&5
5265 ac_status=$?
5266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5267 (exit $ac_status); }
5268
5269 -echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5270 -echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
5271 +{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5272 +echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5273 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5274 echo $ECHO_N "(cached) $ECHO_C" >&6
5275 else
5276 @@ -4896,50 +5488,49 @@ main ()
5277 }
5278 _ACEOF
5279 rm -f conftest.$ac_objext
5280 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5281 - (eval $ac_compile) 2>conftest.er1
5282 +if { (ac_try="$ac_compile"
5283 +case "(($ac_try" in
5284 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5285 + *) ac_try_echo=$ac_try;;
5286 +esac
5287 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5288 + (eval "$ac_compile") 2>conftest.er1
5289 ac_status=$?
5290 grep -v '^ *+' conftest.er1 >conftest.err
5291 rm -f conftest.er1
5292 cat conftest.err >&5
5293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5294 - (exit $ac_status); } &&
5295 - { ac_try='test -z "$ac_c_werror_flag"
5296 - || test ! -s conftest.err'
5297 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5298 - (eval $ac_try) 2>&5
5299 - ac_status=$?
5300 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
5301 - (exit $ac_status); }; } &&
5302 - { ac_try='test -s conftest.$ac_objext'
5303 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5304 - (eval $ac_try) 2>&5
5305 - ac_status=$?
5306 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
5307 - (exit $ac_status); }; }; then
5308 + (exit $ac_status); } && {
5309 + test -z "$ac_c_werror_flag" ||
5310 + test ! -s conftest.err
5311 + } && test -s conftest.$ac_objext; then
5312 ac_compiler_gnu=yes
5313 else
5314 echo "$as_me: failed program was:" >&5
5315 sed 's/^/| /' conftest.$ac_ext >&5
5316
5317 -ac_compiler_gnu=no
5318 + ac_compiler_gnu=no
5319 fi
5320 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5321 +
5322 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5323 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5324
5325 fi
5326 -echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5327 -echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
5328 +{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5329 +echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5330 GCC=`test $ac_compiler_gnu = yes && echo yes`
5331 ac_test_CFLAGS=${CFLAGS+set}
5332 ac_save_CFLAGS=$CFLAGS
5333 -CFLAGS="-g"
5334 -echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5335 -echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
5336 +{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5337 +echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5338 if test "${ac_cv_prog_cc_g+set}" = set; then
5339 echo $ECHO_N "(cached) $ECHO_C" >&6
5340 else
5341 - cat >conftest.$ac_ext <<_ACEOF
5342 + ac_save_c_werror_flag=$ac_c_werror_flag
5343 + ac_c_werror_flag=yes
5344 + ac_cv_prog_cc_g=no
5345 + CFLAGS="-g"
5346 + cat >conftest.$ac_ext <<_ACEOF
5347 /* confdefs.h. */
5348 _ACEOF
5349 cat confdefs.h >>conftest.$ac_ext
5350 @@ -4955,46 +5546,126 @@ main ()
5351 }
5352 _ACEOF
5353 rm -f conftest.$ac_objext
5354 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5355 - (eval $ac_compile) 2>conftest.er1
5356 +if { (ac_try="$ac_compile"
5357 +case "(($ac_try" in
5358 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5359 + *) ac_try_echo=$ac_try;;
5360 +esac
5361 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5362 + (eval "$ac_compile") 2>conftest.er1
5363 ac_status=$?
5364 grep -v '^ *+' conftest.er1 >conftest.err
5365 rm -f conftest.er1
5366 cat conftest.err >&5
5367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5368 - (exit $ac_status); } &&
5369 - { ac_try='test -z "$ac_c_werror_flag"
5370 - || test ! -s conftest.err'
5371 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5372 - (eval $ac_try) 2>&5
5373 - ac_status=$?
5374 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
5375 - (exit $ac_status); }; } &&
5376 - { ac_try='test -s conftest.$ac_objext'
5377 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5378 - (eval $ac_try) 2>&5
5379 - ac_status=$?
5380 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
5381 - (exit $ac_status); }; }; then
5382 + (exit $ac_status); } && {
5383 + test -z "$ac_c_werror_flag" ||
5384 + test ! -s conftest.err
5385 + } && test -s conftest.$ac_objext; then
5386 ac_cv_prog_cc_g=yes
5387 else
5388 echo "$as_me: failed program was:" >&5
5389 sed 's/^/| /' conftest.$ac_ext >&5
5390
5391 -ac_cv_prog_cc_g=no
5392 -fi
5393 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5394 -fi
5395 -echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5396 -echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
5397 -if test "$ac_test_CFLAGS" = set; then
5398 - CFLAGS=$ac_save_CFLAGS
5399 -elif test $ac_cv_prog_cc_g = yes; then
5400 - if test "$GCC" = yes; then
5401 - CFLAGS="-g -O2"
5402 - else
5403 - CFLAGS="-g"
5404 - fi
5405 + CFLAGS=""
5406 + cat >conftest.$ac_ext <<_ACEOF
5407 +/* confdefs.h. */
5408 +_ACEOF
5409 +cat confdefs.h >>conftest.$ac_ext
5410 +cat >>conftest.$ac_ext <<_ACEOF
5411 +/* end confdefs.h. */
5412 +
5413 +int
5414 +main ()
5415 +{
5416 +
5417 + ;
5418 + return 0;
5419 +}
5420 +_ACEOF
5421 +rm -f conftest.$ac_objext
5422 +if { (ac_try="$ac_compile"
5423 +case "(($ac_try" in
5424 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5425 + *) ac_try_echo=$ac_try;;
5426 +esac
5427 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5428 + (eval "$ac_compile") 2>conftest.er1
5429 + ac_status=$?
5430 + grep -v '^ *+' conftest.er1 >conftest.err
5431 + rm -f conftest.er1
5432 + cat conftest.err >&5
5433 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
5434 + (exit $ac_status); } && {
5435 + test -z "$ac_c_werror_flag" ||
5436 + test ! -s conftest.err
5437 + } && test -s conftest.$ac_objext; then
5438 + :
5439 +else
5440 + echo "$as_me: failed program was:" >&5
5441 +sed 's/^/| /' conftest.$ac_ext >&5
5442 +
5443 + ac_c_werror_flag=$ac_save_c_werror_flag
5444 + CFLAGS="-g"
5445 + cat >conftest.$ac_ext <<_ACEOF
5446 +/* confdefs.h. */
5447 +_ACEOF
5448 +cat confdefs.h >>conftest.$ac_ext
5449 +cat >>conftest.$ac_ext <<_ACEOF
5450 +/* end confdefs.h. */
5451 +
5452 +int
5453 +main ()
5454 +{
5455 +
5456 + ;
5457 + return 0;
5458 +}
5459 +_ACEOF
5460 +rm -f conftest.$ac_objext
5461 +if { (ac_try="$ac_compile"
5462 +case "(($ac_try" in
5463 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5464 + *) ac_try_echo=$ac_try;;
5465 +esac
5466 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5467 + (eval "$ac_compile") 2>conftest.er1
5468 + ac_status=$?
5469 + grep -v '^ *+' conftest.er1 >conftest.err
5470 + rm -f conftest.er1
5471 + cat conftest.err >&5
5472 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
5473 + (exit $ac_status); } && {
5474 + test -z "$ac_c_werror_flag" ||
5475 + test ! -s conftest.err
5476 + } && test -s conftest.$ac_objext; then
5477 + ac_cv_prog_cc_g=yes
5478 +else
5479 + echo "$as_me: failed program was:" >&5
5480 +sed 's/^/| /' conftest.$ac_ext >&5
5481 +
5482 +
5483 +fi
5484 +
5485 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5486 +fi
5487 +
5488 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5489 +fi
5490 +
5491 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5492 + ac_c_werror_flag=$ac_save_c_werror_flag
5493 +fi
5494 +{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5495 +echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5496 +if test "$ac_test_CFLAGS" = set; then
5497 + CFLAGS=$ac_save_CFLAGS
5498 +elif test $ac_cv_prog_cc_g = yes; then
5499 + if test "$GCC" = yes; then
5500 + CFLAGS="-g -O2"
5501 + else
5502 + CFLAGS="-g"
5503 + fi
5504 else
5505 if test "$GCC" = yes; then
5506 CFLAGS="-O2"
5507 @@ -5002,12 +5673,12 @@ else
5508 CFLAGS=
5509 fi
5510 fi
5511 -echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
5512 -echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
5513 -if test "${ac_cv_prog_cc_stdc+set}" = set; then
5514 +{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5515 +echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5516 +if test "${ac_cv_prog_cc_c89+set}" = set; then
5517 echo $ECHO_N "(cached) $ECHO_C" >&6
5518 else
5519 - ac_cv_prog_cc_stdc=no
5520 + ac_cv_prog_cc_c89=no
5521 ac_save_CC=$CC
5522 cat >conftest.$ac_ext <<_ACEOF
5523 /* confdefs.h. */
5524 @@ -5041,12 +5712,17 @@ static char *f (char * (*g) (char **, in
5525 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5526 function prototypes and stuff, but not '\xHH' hex character constants.
5527 These don't provoke an error unfortunately, instead are silently treated
5528 - as 'x'. The following induces an error, until -std1 is added to get
5529 + as 'x'. The following induces an error, until -std is added to get
5530 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5531 array size at least. It's necessary to write '\x00'==0 to get something
5532 - that's true only with -std1. */
5533 + that's true only with -std. */
5534 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5535
5536 +/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5537 + inside strings and character constants. */
5538 +#define FOO(x) 'x'
5539 +int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5540 +
5541 int test (int i, double x);
5542 struct s1 {int (*f) (int a);};
5543 struct s2 {int (*f) (double a);};
5544 @@ -5061,205 +5737,57 @@ return f (e, argv, 0) != argv[0] || f
5545 return 0;
5546 }
5547 _ACEOF
5548 -# Don't try gcc -ansi; that turns off useful extensions and
5549 -# breaks some systems' header files.
5550 -# AIX -qlanglvl=ansi
5551 -# Ultrix and OSF/1 -std1
5552 -# HP-UX 10.20 and later -Ae
5553 -# HP-UX older versions -Aa -D_HPUX_SOURCE
5554 -# SVR4 -Xc -D__EXTENSIONS__
5555 -for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5556 +for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5557 + -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5558 do
5559 CC="$ac_save_CC $ac_arg"
5560 rm -f conftest.$ac_objext
5561 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5562 - (eval $ac_compile) 2>conftest.er1
5563 +if { (ac_try="$ac_compile"
5564 +case "(($ac_try" in
5565 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5566 + *) ac_try_echo=$ac_try;;
5567 +esac
5568 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5569 + (eval "$ac_compile") 2>conftest.er1
5570 ac_status=$?
5571 grep -v '^ *+' conftest.er1 >conftest.err
5572 rm -f conftest.er1
5573 cat conftest.err >&5
5574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5575 - (exit $ac_status); } &&
5576 - { ac_try='test -z "$ac_c_werror_flag"
5577 - || test ! -s conftest.err'
5578 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5579 - (eval $ac_try) 2>&5
5580 - ac_status=$?
5581 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
5582 - (exit $ac_status); }; } &&
5583 - { ac_try='test -s conftest.$ac_objext'
5584 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5585 - (eval $ac_try) 2>&5
5586 - ac_status=$?
5587 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
5588 - (exit $ac_status); }; }; then
5589 - ac_cv_prog_cc_stdc=$ac_arg
5590 -break
5591 + (exit $ac_status); } && {
5592 + test -z "$ac_c_werror_flag" ||
5593 + test ! -s conftest.err
5594 + } && test -s conftest.$ac_objext; then
5595 + ac_cv_prog_cc_c89=$ac_arg
5596 else
5597 echo "$as_me: failed program was:" >&5
5598 sed 's/^/| /' conftest.$ac_ext >&5
5599
5600 +
5601 fi
5602 -rm -f conftest.err conftest.$ac_objext
5603 +
5604 +rm -f core conftest.err conftest.$ac_objext
5605 + test "x$ac_cv_prog_cc_c89" != "xno" && break
5606 done
5607 -rm -f conftest.$ac_ext conftest.$ac_objext
5608 +rm -f conftest.$ac_ext
5609 CC=$ac_save_CC
5610
5611 fi
5612 -
5613 -case "x$ac_cv_prog_cc_stdc" in
5614 - x|xno)
5615 - echo "$as_me:$LINENO: result: none needed" >&5
5616 -echo "${ECHO_T}none needed" >&6 ;;
5617 +# AC_CACHE_VAL
5618 +case "x$ac_cv_prog_cc_c89" in
5619 + x)
5620 + { echo "$as_me:$LINENO: result: none needed" >&5
5621 +echo "${ECHO_T}none needed" >&6; } ;;
5622 + xno)
5623 + { echo "$as_me:$LINENO: result: unsupported" >&5
5624 +echo "${ECHO_T}unsupported" >&6; } ;;
5625 *)
5626 - echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
5627 -echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
5628 - CC="$CC $ac_cv_prog_cc_stdc" ;;
5629 + CC="$CC $ac_cv_prog_cc_c89"
5630 + { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5631 +echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5632 esac
5633
5634 -# Some people use a C++ compiler to compile C. Since we use `exit',
5635 -# in C++ we need to declare it. In case someone uses the same compiler
5636 -# for both compiling C and C++ we need to have the C++ compiler decide
5637 -# the declaration of exit, since it's the most demanding environment.
5638 -cat >conftest.$ac_ext <<_ACEOF
5639 -#ifndef __cplusplus
5640 - choke me
5641 -#endif
5642 -_ACEOF
5643 -rm -f conftest.$ac_objext
5644 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5645 - (eval $ac_compile) 2>conftest.er1
5646 - ac_status=$?
5647 - grep -v '^ *+' conftest.er1 >conftest.err
5648 - rm -f conftest.er1
5649 - cat conftest.err >&5
5650 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
5651 - (exit $ac_status); } &&
5652 - { ac_try='test -z "$ac_c_werror_flag"
5653 - || test ! -s conftest.err'
5654 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5655 - (eval $ac_try) 2>&5
5656 - ac_status=$?
5657 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
5658 - (exit $ac_status); }; } &&
5659 - { ac_try='test -s conftest.$ac_objext'
5660 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5661 - (eval $ac_try) 2>&5
5662 - ac_status=$?
5663 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
5664 - (exit $ac_status); }; }; then
5665 - for ac_declaration in \
5666 - '' \
5667 - 'extern "C" void std::exit (int) throw (); using std::exit;' \
5668 - 'extern "C" void std::exit (int); using std::exit;' \
5669 - 'extern "C" void exit (int) throw ();' \
5670 - 'extern "C" void exit (int);' \
5671 - 'void exit (int);'
5672 -do
5673 - cat >conftest.$ac_ext <<_ACEOF
5674 -/* confdefs.h. */
5675 -_ACEOF
5676 -cat confdefs.h >>conftest.$ac_ext
5677 -cat >>conftest.$ac_ext <<_ACEOF
5678 -/* end confdefs.h. */
5679 -$ac_declaration
5680 -#include <stdlib.h>
5681 -int
5682 -main ()
5683 -{
5684 -exit (42);
5685 - ;
5686 - return 0;
5687 -}
5688 -_ACEOF
5689 -rm -f conftest.$ac_objext
5690 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5691 - (eval $ac_compile) 2>conftest.er1
5692 - ac_status=$?
5693 - grep -v '^ *+' conftest.er1 >conftest.err
5694 - rm -f conftest.er1
5695 - cat conftest.err >&5
5696 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
5697 - (exit $ac_status); } &&
5698 - { ac_try='test -z "$ac_c_werror_flag"
5699 - || test ! -s conftest.err'
5700 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5701 - (eval $ac_try) 2>&5
5702 - ac_status=$?
5703 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
5704 - (exit $ac_status); }; } &&
5705 - { ac_try='test -s conftest.$ac_objext'
5706 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5707 - (eval $ac_try) 2>&5
5708 - ac_status=$?
5709 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
5710 - (exit $ac_status); }; }; then
5711 - :
5712 -else
5713 - echo "$as_me: failed program was:" >&5
5714 -sed 's/^/| /' conftest.$ac_ext >&5
5715 -
5716 -continue
5717 -fi
5718 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5719 - cat >conftest.$ac_ext <<_ACEOF
5720 -/* confdefs.h. */
5721 -_ACEOF
5722 -cat confdefs.h >>conftest.$ac_ext
5723 -cat >>conftest.$ac_ext <<_ACEOF
5724 -/* end confdefs.h. */
5725 -$ac_declaration
5726 -int
5727 -main ()
5728 -{
5729 -exit (42);
5730 - ;
5731 - return 0;
5732 -}
5733 -_ACEOF
5734 -rm -f conftest.$ac_objext
5735 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5736 - (eval $ac_compile) 2>conftest.er1
5737 - ac_status=$?
5738 - grep -v '^ *+' conftest.er1 >conftest.err
5739 - rm -f conftest.er1
5740 - cat conftest.err >&5
5741 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
5742 - (exit $ac_status); } &&
5743 - { ac_try='test -z "$ac_c_werror_flag"
5744 - || test ! -s conftest.err'
5745 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5746 - (eval $ac_try) 2>&5
5747 - ac_status=$?
5748 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
5749 - (exit $ac_status); }; } &&
5750 - { ac_try='test -s conftest.$ac_objext'
5751 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5752 - (eval $ac_try) 2>&5
5753 - ac_status=$?
5754 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
5755 - (exit $ac_status); }; }; then
5756 - break
5757 -else
5758 - echo "$as_me: failed program was:" >&5
5759 -sed 's/^/| /' conftest.$ac_ext >&5
5760 -
5761 -fi
5762 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5763 -done
5764 -rm -f conftest*
5765 -if test -n "$ac_declaration"; then
5766 - echo '#ifdef __cplusplus' >>confdefs.h
5767 - echo $ac_declaration >>confdefs.h
5768 - echo '#endif' >>confdefs.h
5769 -fi
5770 -
5771 -else
5772 - echo "$as_me: failed program was:" >&5
5773 -sed 's/^/| /' conftest.$ac_ext >&5
5774
5775 -fi
5776 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5777 ac_ext=c
5778 ac_cpp='$CPP $CPPFLAGS'
5779 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5780 @@ -5277,8 +5805,8 @@ ALL_LINGUAS="fr tr ja es sv da zh_CN ro
5781 if test -n "$ac_tool_prefix"; then
5782 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5783 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5784 -echo "$as_me:$LINENO: checking for $ac_word" >&5
5785 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5786 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5787 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5788 if test "${ac_cv_prog_RANLIB+set}" = set; then
5789 echo $ECHO_N "(cached) $ECHO_C" >&6
5790 else
5791 @@ -5291,32 +5819,34 @@ do
5792 IFS=$as_save_IFS
5793 test -z "$as_dir" && as_dir=.
5794 for ac_exec_ext in '' $ac_executable_extensions; do
5795 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5796 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5797 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5798 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5799 break 2
5800 fi
5801 done
5802 done
5803 +IFS=$as_save_IFS
5804
5805 fi
5806 fi
5807 RANLIB=$ac_cv_prog_RANLIB
5808 if test -n "$RANLIB"; then
5809 - echo "$as_me:$LINENO: result: $RANLIB" >&5
5810 -echo "${ECHO_T}$RANLIB" >&6
5811 + { echo "$as_me:$LINENO: result: $RANLIB" >&5
5812 +echo "${ECHO_T}$RANLIB" >&6; }
5813 else
5814 - echo "$as_me:$LINENO: result: no" >&5
5815 -echo "${ECHO_T}no" >&6
5816 + { echo "$as_me:$LINENO: result: no" >&5
5817 +echo "${ECHO_T}no" >&6; }
5818 fi
5819
5820 +
5821 fi
5822 if test -z "$ac_cv_prog_RANLIB"; then
5823 ac_ct_RANLIB=$RANLIB
5824 # Extract the first word of "ranlib", so it can be a program name with args.
5825 set dummy ranlib; ac_word=$2
5826 -echo "$as_me:$LINENO: checking for $ac_word" >&5
5827 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5828 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5829 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5830 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5831 echo $ECHO_N "(cached) $ECHO_C" >&6
5832 else
5833 @@ -5329,27 +5859,41 @@ do
5834 IFS=$as_save_IFS
5835 test -z "$as_dir" && as_dir=.
5836 for ac_exec_ext in '' $ac_executable_extensions; do
5837 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5838 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5839 ac_cv_prog_ac_ct_RANLIB="ranlib"
5840 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5841 break 2
5842 fi
5843 done
5844 done
5845 +IFS=$as_save_IFS
5846
5847 - test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5848 fi
5849 fi
5850 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5851 if test -n "$ac_ct_RANLIB"; then
5852 - echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5853 -echo "${ECHO_T}$ac_ct_RANLIB" >&6
5854 + { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5855 +echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5856 else
5857 - echo "$as_me:$LINENO: result: no" >&5
5858 -echo "${ECHO_T}no" >&6
5859 + { echo "$as_me:$LINENO: result: no" >&5
5860 +echo "${ECHO_T}no" >&6; }
5861 fi
5862
5863 - RANLIB=$ac_ct_RANLIB
5864 + if test "x$ac_ct_RANLIB" = x; then
5865 + RANLIB=":"
5866 + else
5867 + case $cross_compiling:$ac_tool_warned in
5868 +yes:)
5869 +{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5870 +whose name does not start with the host triplet. If you think this
5871 +configuration is useful to you, please write to autoconf@gnu.org." >&5
5872 +echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5873 +whose name does not start with the host triplet. If you think this
5874 +configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5875 +ac_tool_warned=yes ;;
5876 +esac
5877 + RANLIB=$ac_ct_RANLIB
5878 + fi
5879 else
5880 RANLIB="$ac_cv_prog_RANLIB"
5881 fi
5882 @@ -5359,8 +5903,8 @@ ac_cpp='$CPP $CPPFLAGS'
5883 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5884 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5885 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5886 -echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5887 -echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5888 +{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5889 +echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5890 # On Suns, sometimes $CPP names a directory.
5891 if test -n "$CPP" && test -d "$CPP"; then
5892 CPP=
5893 @@ -5394,24 +5938,22 @@ cat >>conftest.$ac_ext <<_ACEOF
5894 #endif
5895 Syntax error
5896 _ACEOF
5897 -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5898 - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5899 +if { (ac_try="$ac_cpp conftest.$ac_ext"
5900 +case "(($ac_try" in
5901 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5902 + *) ac_try_echo=$ac_try;;
5903 +esac
5904 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5905 + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5906 ac_status=$?
5907 grep -v '^ *+' conftest.er1 >conftest.err
5908 rm -f conftest.er1
5909 cat conftest.err >&5
5910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5911 - (exit $ac_status); } >/dev/null; then
5912 - if test -s conftest.err; then
5913 - ac_cpp_err=$ac_c_preproc_warn_flag
5914 - ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5915 - else
5916 - ac_cpp_err=
5917 - fi
5918 -else
5919 - ac_cpp_err=yes
5920 -fi
5921 -if test -z "$ac_cpp_err"; then
5922 + (exit $ac_status); } >/dev/null && {
5923 + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5924 + test ! -s conftest.err
5925 + }; then
5926 :
5927 else
5928 echo "$as_me: failed program was:" >&5
5929 @@ -5420,9 +5962,10 @@ sed 's/^/| /' conftest.$ac_ext >&5
5930 # Broken: fails on valid input.
5931 continue
5932 fi
5933 +
5934 rm -f conftest.err conftest.$ac_ext
5935
5936 - # OK, works on sane cases. Now check whether non-existent headers
5937 + # OK, works on sane cases. Now check whether nonexistent headers
5938 # can be detected and how.
5939 cat >conftest.$ac_ext <<_ACEOF
5940 /* confdefs.h. */
5941 @@ -5432,24 +5975,22 @@ cat >>conftest.$ac_ext <<_ACEOF
5942 /* end confdefs.h. */
5943 #include <ac_nonexistent.h>
5944 _ACEOF
5945 -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5946 - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5947 +if { (ac_try="$ac_cpp conftest.$ac_ext"
5948 +case "(($ac_try" in
5949 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5950 + *) ac_try_echo=$ac_try;;
5951 +esac
5952 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5953 + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5954 ac_status=$?
5955 grep -v '^ *+' conftest.er1 >conftest.err
5956 rm -f conftest.er1
5957 cat conftest.err >&5
5958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5959 - (exit $ac_status); } >/dev/null; then
5960 - if test -s conftest.err; then
5961 - ac_cpp_err=$ac_c_preproc_warn_flag
5962 - ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5963 - else
5964 - ac_cpp_err=
5965 - fi
5966 -else
5967 - ac_cpp_err=yes
5968 -fi
5969 -if test -z "$ac_cpp_err"; then
5970 + (exit $ac_status); } >/dev/null && {
5971 + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5972 + test ! -s conftest.err
5973 + }; then
5974 # Broken: success on invalid input.
5975 continue
5976 else
5977 @@ -5460,6 +6001,7 @@ sed 's/^/| /' conftest.$ac_ext >&5
5978 ac_preproc_ok=:
5979 break
5980 fi
5981 +
5982 rm -f conftest.err conftest.$ac_ext
5983
5984 done
5985 @@ -5477,8 +6019,8 @@ fi
5986 else
5987 ac_cv_prog_CPP=$CPP
5988 fi
5989 -echo "$as_me:$LINENO: result: $CPP" >&5
5990 -echo "${ECHO_T}$CPP" >&6
5991 +{ echo "$as_me:$LINENO: result: $CPP" >&5
5992 +echo "${ECHO_T}$CPP" >&6; }
5993 ac_preproc_ok=false
5994 for ac_c_preproc_warn_flag in '' yes
5995 do
5996 @@ -5501,24 +6043,22 @@ cat >>conftest.$ac_ext <<_ACEOF
5997 #endif
5998 Syntax error
5999 _ACEOF
6000 -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6001 - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6002 +if { (ac_try="$ac_cpp conftest.$ac_ext"
6003 +case "(($ac_try" in
6004 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6005 + *) ac_try_echo=$ac_try;;
6006 +esac
6007 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6008 + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6009 ac_status=$?
6010 grep -v '^ *+' conftest.er1 >conftest.err
6011 rm -f conftest.er1
6012 cat conftest.err >&5
6013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6014 - (exit $ac_status); } >/dev/null; then
6015 - if test -s conftest.err; then
6016 - ac_cpp_err=$ac_c_preproc_warn_flag
6017 - ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6018 - else
6019 - ac_cpp_err=
6020 - fi
6021 -else
6022 - ac_cpp_err=yes
6023 -fi
6024 -if test -z "$ac_cpp_err"; then
6025 + (exit $ac_status); } >/dev/null && {
6026 + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6027 + test ! -s conftest.err
6028 + }; then
6029 :
6030 else
6031 echo "$as_me: failed program was:" >&5
6032 @@ -5527,9 +6067,10 @@ sed 's/^/| /' conftest.$ac_ext >&5
6033 # Broken: fails on valid input.
6034 continue
6035 fi
6036 +
6037 rm -f conftest.err conftest.$ac_ext
6038
6039 - # OK, works on sane cases. Now check whether non-existent headers
6040 + # OK, works on sane cases. Now check whether nonexistent headers
6041 # can be detected and how.
6042 cat >conftest.$ac_ext <<_ACEOF
6043 /* confdefs.h. */
6044 @@ -5539,24 +6080,22 @@ cat >>conftest.$ac_ext <<_ACEOF
6045 /* end confdefs.h. */
6046 #include <ac_nonexistent.h>
6047 _ACEOF
6048 -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6049 - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6050 +if { (ac_try="$ac_cpp conftest.$ac_ext"
6051 +case "(($ac_try" in
6052 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6053 + *) ac_try_echo=$ac_try;;
6054 +esac
6055 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6056 + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6057 ac_status=$?
6058 grep -v '^ *+' conftest.er1 >conftest.err
6059 rm -f conftest.er1
6060 cat conftest.err >&5
6061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6062 - (exit $ac_status); } >/dev/null; then
6063 - if test -s conftest.err; then
6064 - ac_cpp_err=$ac_c_preproc_warn_flag
6065 - ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6066 - else
6067 - ac_cpp_err=
6068 - fi
6069 -else
6070 - ac_cpp_err=yes
6071 -fi
6072 -if test -z "$ac_cpp_err"; then
6073 + (exit $ac_status); } >/dev/null && {
6074 + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6075 + test ! -s conftest.err
6076 + }; then
6077 # Broken: success on invalid input.
6078 continue
6079 else
6080 @@ -5567,6 +6106,7 @@ sed 's/^/| /' conftest.$ac_ext >&5
6081 ac_preproc_ok=:
6082 break
6083 fi
6084 +
6085 rm -f conftest.err conftest.$ac_ext
6086
6087 done
6088 @@ -5589,87 +6129,230 @@ ac_link='$CC -o conftest$ac_exeext $CFLA
6089 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6090
6091
6092 -echo "$as_me:$LINENO: checking for egrep" >&5
6093 -echo $ECHO_N "checking for egrep... $ECHO_C" >&6
6094 -if test "${ac_cv_prog_egrep+set}" = set; then
6095 +{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
6096 +echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
6097 +if test "${ac_cv_path_GREP+set}" = set; then
6098 + echo $ECHO_N "(cached) $ECHO_C" >&6
6099 +else
6100 + # Extract the first word of "grep ggrep" to use in msg output
6101 +if test -z "$GREP"; then
6102 +set dummy grep ggrep; ac_prog_name=$2
6103 +if test "${ac_cv_path_GREP+set}" = set; then
6104 echo $ECHO_N "(cached) $ECHO_C" >&6
6105 else
6106 - if echo a | (grep -E '(a|b)') >/dev/null 2>&1
6107 - then ac_cv_prog_egrep='grep -E'
6108 - else ac_cv_prog_egrep='egrep'
6109 + ac_path_GREP_found=false
6110 +# Loop through the user's path and test for each of PROGNAME-LIST
6111 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6112 +for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6113 +do
6114 + IFS=$as_save_IFS
6115 + test -z "$as_dir" && as_dir=.
6116 + for ac_prog in grep ggrep; do
6117 + for ac_exec_ext in '' $ac_executable_extensions; do
6118 + ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6119 + { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
6120 + # Check for GNU ac_path_GREP and select it if it is found.
6121 + # Check for GNU $ac_path_GREP
6122 +case `"$ac_path_GREP" --version 2>&1` in
6123 +*GNU*)
6124 + ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6125 +*)
6126 + ac_count=0
6127 + echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
6128 + while :
6129 + do
6130 + cat "conftest.in" "conftest.in" >"conftest.tmp"
6131 + mv "conftest.tmp" "conftest.in"
6132 + cp "conftest.in" "conftest.nl"
6133 + echo 'GREP' >> "conftest.nl"
6134 + "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6135 + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6136 + ac_count=`expr $ac_count + 1`
6137 + if test $ac_count -gt ${ac_path_GREP_max-0}; then
6138 + # Best one so far, save it but keep looking for a better one
6139 + ac_cv_path_GREP="$ac_path_GREP"
6140 + ac_path_GREP_max=$ac_count
6141 fi
6142 -fi
6143 -echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
6144 -echo "${ECHO_T}$ac_cv_prog_egrep" >&6
6145 - EGREP=$ac_cv_prog_egrep
6146 + # 10*(2^10) chars as input seems more than enough
6147 + test $ac_count -gt 10 && break
6148 + done
6149 + rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6150 +esac
6151
6152
6153 -echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6154 -echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6155 -if test "${ac_cv_header_stdc+set}" = set; then
6156 - echo $ECHO_N "(cached) $ECHO_C" >&6
6157 -else
6158 - cat >conftest.$ac_ext <<_ACEOF
6159 -/* confdefs.h. */
6160 -_ACEOF
6161 -cat confdefs.h >>conftest.$ac_ext
6162 -cat >>conftest.$ac_ext <<_ACEOF
6163 -/* end confdefs.h. */
6164 -#include <stdlib.h>
6165 -#include <stdarg.h>
6166 -#include <string.h>
6167 -#include <float.h>
6168 + $ac_path_GREP_found && break 3
6169 + done
6170 +done
6171
6172 -int
6173 -main ()
6174 -{
6175 +done
6176 +IFS=$as_save_IFS
6177
6178 - ;
6179 - return 0;
6180 -}
6181 -_ACEOF
6182 -rm -f conftest.$ac_objext
6183 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6184 - (eval $ac_compile) 2>conftest.er1
6185 - ac_status=$?
6186 - grep -v '^ *+' conftest.er1 >conftest.err
6187 - rm -f conftest.er1
6188 - cat conftest.err >&5
6189 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
6190 - (exit $ac_status); } &&
6191 - { ac_try='test -z "$ac_c_werror_flag"
6192 - || test ! -s conftest.err'
6193 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6194 - (eval $ac_try) 2>&5
6195 - ac_status=$?
6196 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
6197 - (exit $ac_status); }; } &&
6198 - { ac_try='test -s conftest.$ac_objext'
6199 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6200 - (eval $ac_try) 2>&5
6201 - ac_status=$?
6202 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
6203 - (exit $ac_status); }; }; then
6204 - ac_cv_header_stdc=yes
6205 -else
6206 - echo "$as_me: failed program was:" >&5
6207 -sed 's/^/| /' conftest.$ac_ext >&5
6208
6209 -ac_cv_header_stdc=no
6210 fi
6211 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6212
6213 -if test $ac_cv_header_stdc = yes; then
6214 - # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6215 - cat >conftest.$ac_ext <<_ACEOF
6216 -/* confdefs.h. */
6217 -_ACEOF
6218 -cat confdefs.h >>conftest.$ac_ext
6219 -cat >>conftest.$ac_ext <<_ACEOF
6220 -/* end confdefs.h. */
6221 -#include <string.h>
6222 +GREP="$ac_cv_path_GREP"
6223 +if test -z "$GREP"; then
6224 + { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
6225 +echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
6226 + { (exit 1); exit 1; }; }
6227 +fi
6228
6229 -_ACEOF
6230 +else
6231 + ac_cv_path_GREP=$GREP
6232 +fi
6233 +
6234 +
6235 +fi
6236 +{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
6237 +echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
6238 + GREP="$ac_cv_path_GREP"
6239 +
6240 +
6241 +{ echo "$as_me:$LINENO: checking for egrep" >&5
6242 +echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
6243 +if test "${ac_cv_path_EGREP+set}" = set; then
6244 + echo $ECHO_N "(cached) $ECHO_C" >&6
6245 +else
6246 + if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6247 + then ac_cv_path_EGREP="$GREP -E"
6248 + else
6249 + # Extract the first word of "egrep" to use in msg output
6250 +if test -z "$EGREP"; then
6251 +set dummy egrep; ac_prog_name=$2
6252 +if test "${ac_cv_path_EGREP+set}" = set; then
6253 + echo $ECHO_N "(cached) $ECHO_C" >&6
6254 +else
6255 + ac_path_EGREP_found=false
6256 +# Loop through the user's path and test for each of PROGNAME-LIST
6257 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6258 +for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6259 +do
6260 + IFS=$as_save_IFS
6261 + test -z "$as_dir" && as_dir=.
6262 + for ac_prog in egrep; do
6263 + for ac_exec_ext in '' $ac_executable_extensions; do
6264 + ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6265 + { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
6266 + # Check for GNU ac_path_EGREP and select it if it is found.
6267 + # Check for GNU $ac_path_EGREP
6268 +case `"$ac_path_EGREP" --version 2>&1` in
6269 +*GNU*)
6270 + ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6271 +*)
6272 + ac_count=0
6273 + echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
6274 + while :
6275 + do
6276 + cat "conftest.in" "conftest.in" >"conftest.tmp"
6277 + mv "conftest.tmp" "conftest.in"
6278 + cp "conftest.in" "conftest.nl"
6279 + echo 'EGREP' >> "conftest.nl"
6280 + "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6281 + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6282 + ac_count=`expr $ac_count + 1`
6283 + if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6284 + # Best one so far, save it but keep looking for a better one
6285 + ac_cv_path_EGREP="$ac_path_EGREP"
6286 + ac_path_EGREP_max=$ac_count
6287 + fi
6288 + # 10*(2^10) chars as input seems more than enough
6289 + test $ac_count -gt 10 && break
6290 + done
6291 + rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6292 +esac
6293 +
6294 +
6295 + $ac_path_EGREP_found && break 3
6296 + done
6297 +done
6298 +
6299 +done
6300 +IFS=$as_save_IFS
6301 +
6302 +
6303 +fi
6304 +
6305 +EGREP="$ac_cv_path_EGREP"
6306 +if test -z "$EGREP"; then
6307 + { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
6308 +echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
6309 + { (exit 1); exit 1; }; }
6310 +fi
6311 +
6312 +else
6313 + ac_cv_path_EGREP=$EGREP
6314 +fi
6315 +
6316 +
6317 + fi
6318 +fi
6319 +{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
6320 +echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
6321 + EGREP="$ac_cv_path_EGREP"
6322 +
6323 +
6324 +{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6325 +echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6326 +if test "${ac_cv_header_stdc+set}" = set; then
6327 + echo $ECHO_N "(cached) $ECHO_C" >&6
6328 +else
6329 + cat >conftest.$ac_ext <<_ACEOF
6330 +/* confdefs.h. */
6331 +_ACEOF
6332 +cat confdefs.h >>conftest.$ac_ext
6333 +cat >>conftest.$ac_ext <<_ACEOF
6334 +/* end confdefs.h. */
6335 +#include <stdlib.h>
6336 +#include <stdarg.h>
6337 +#include <string.h>
6338 +#include <float.h>
6339 +
6340 +int
6341 +main ()
6342 +{
6343 +
6344 + ;
6345 + return 0;
6346 +}
6347 +_ACEOF
6348 +rm -f conftest.$ac_objext
6349 +if { (ac_try="$ac_compile"
6350 +case "(($ac_try" in
6351 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6352 + *) ac_try_echo=$ac_try;;
6353 +esac
6354 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6355 + (eval "$ac_compile") 2>conftest.er1
6356 + ac_status=$?
6357 + grep -v '^ *+' conftest.er1 >conftest.err
6358 + rm -f conftest.er1
6359 + cat conftest.err >&5
6360 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
6361 + (exit $ac_status); } && {
6362 + test -z "$ac_c_werror_flag" ||
6363 + test ! -s conftest.err
6364 + } && test -s conftest.$ac_objext; then
6365 + ac_cv_header_stdc=yes
6366 +else
6367 + echo "$as_me: failed program was:" >&5
6368 +sed 's/^/| /' conftest.$ac_ext >&5
6369 +
6370 + ac_cv_header_stdc=no
6371 +fi
6372 +
6373 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6374 +
6375 +if test $ac_cv_header_stdc = yes; then
6376 + # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6377 + cat >conftest.$ac_ext <<_ACEOF
6378 +/* confdefs.h. */
6379 +_ACEOF
6380 +cat confdefs.h >>conftest.$ac_ext
6381 +cat >>conftest.$ac_ext <<_ACEOF
6382 +/* end confdefs.h. */
6383 +#include <string.h>
6384 +
6385 +_ACEOF
6386 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6387 $EGREP "memchr" >/dev/null 2>&1; then
6388 :
6389 @@ -5713,6 +6396,7 @@ cat confdefs.h >>conftest.$ac_ext
6390 cat >>conftest.$ac_ext <<_ACEOF
6391 /* end confdefs.h. */
6392 #include <ctype.h>
6393 +#include <stdlib.h>
6394 #if ((' ' & 0x0FF) == 0x020)
6395 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6396 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6397 @@ -5732,18 +6416,27 @@ main ()
6398 for (i = 0; i < 256; i++)
6399 if (XOR (islower (i), ISLOWER (i))
6400 || toupper (i) != TOUPPER (i))
6401 - exit(2);
6402 - exit (0);
6403 + return 2;
6404 + return 0;
6405 }
6406 _ACEOF
6407 rm -f conftest$ac_exeext
6408 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6409 - (eval $ac_link) 2>&5
6410 +if { (ac_try="$ac_link"
6411 +case "(($ac_try" in
6412 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6413 + *) ac_try_echo=$ac_try;;
6414 +esac
6415 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6416 + (eval "$ac_link") 2>&5
6417 ac_status=$?
6418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6419 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6420 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6421 - (eval $ac_try) 2>&5
6422 + { (case "(($ac_try" in
6423 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6424 + *) ac_try_echo=$ac_try;;
6425 +esac
6426 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6427 + (eval "$ac_try") 2>&5
6428 ac_status=$?
6429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6430 (exit $ac_status); }; }; then
6431 @@ -5756,12 +6449,14 @@ sed 's/^/| /' conftest.$ac_ext >&5
6432 ( exit $ac_status )
6433 ac_cv_header_stdc=no
6434 fi
6435 -rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6436 +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6437 fi
6438 +
6439 +
6440 fi
6441 fi
6442 -echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6443 -echo "${ECHO_T}$ac_cv_header_stdc" >&6
6444 +{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6445 +echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6446 if test $ac_cv_header_stdc = yes; then
6447
6448 cat >>confdefs.h <<\_ACEOF
6449 @@ -5770,8 +6465,8 @@ _ACEOF
6450
6451 fi
6452
6453 -echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
6454 -echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
6455 +{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
6456 +echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
6457 if test "${ac_cv_c_const+set}" = set; then
6458 echo $ECHO_N "(cached) $ECHO_C" >&6
6459 else
6460 @@ -5789,10 +6484,10 @@ main ()
6461 #ifndef __cplusplus
6462 /* Ultrix mips cc rejects this. */
6463 typedef int charset[2];
6464 - const charset x;
6465 + const charset cs;
6466 /* SunOS 4.1.1 cc rejects this. */
6467 - char const *const *ccp;
6468 - char **p;
6469 + char const *const *pcpcc;
6470 + char **ppc;
6471 /* NEC SVR4.0.2 mips cc rejects this. */
6472 struct point {int x, y;};
6473 static struct point const zero = {0,0};
6474 @@ -5801,16 +6496,17 @@ main ()
6475 an arm of an if-expression whose if-part is not a constant
6476 expression */
6477 const char *g = "string";
6478 - ccp = &g + (g ? g-g : 0);
6479 + pcpcc = &g + (g ? g-g : 0);
6480 /* HPUX 7.0 cc rejects these. */
6481 - ++ccp;
6482 - p = (char**) ccp;
6483 - ccp = (char const *const *) p;
6484 + ++pcpcc;
6485 + ppc = (char**) pcpcc;
6486 + pcpcc = (char const *const *) ppc;
6487 { /* SCO 3.2v4 cc rejects this. */
6488 char *t;
6489 char const *s = 0 ? (char *) 0 : (char const *) 0;
6490
6491 *t++ = 0;
6492 + if (s) return 0;
6493 }
6494 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6495 int x[] = {25, 17};
6496 @@ -5829,7 +6525,9 @@ main ()
6497 }
6498 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6499 const int foo = 10;
6500 + if (!foo) return 0;
6501 }
6502 + return !cs[0] && !zero.x;
6503 #endif
6504
6505 ;
6506 @@ -5837,38 +6535,34 @@ main ()
6507 }
6508 _ACEOF
6509 rm -f conftest.$ac_objext
6510 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6511 - (eval $ac_compile) 2>conftest.er1
6512 +if { (ac_try="$ac_compile"
6513 +case "(($ac_try" in
6514 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6515 + *) ac_try_echo=$ac_try;;
6516 +esac
6517 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6518 + (eval "$ac_compile") 2>conftest.er1
6519 ac_status=$?
6520 grep -v '^ *+' conftest.er1 >conftest.err
6521 rm -f conftest.er1
6522 cat conftest.err >&5
6523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6524 - (exit $ac_status); } &&
6525 - { ac_try='test -z "$ac_c_werror_flag"
6526 - || test ! -s conftest.err'
6527 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6528 - (eval $ac_try) 2>&5
6529 - ac_status=$?
6530 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
6531 - (exit $ac_status); }; } &&
6532 - { ac_try='test -s conftest.$ac_objext'
6533 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6534 - (eval $ac_try) 2>&5
6535 - ac_status=$?
6536 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
6537 - (exit $ac_status); }; }; then
6538 + (exit $ac_status); } && {
6539 + test -z "$ac_c_werror_flag" ||
6540 + test ! -s conftest.err
6541 + } && test -s conftest.$ac_objext; then
6542 ac_cv_c_const=yes
6543 else
6544 echo "$as_me: failed program was:" >&5
6545 sed 's/^/| /' conftest.$ac_ext >&5
6546
6547 -ac_cv_c_const=no
6548 + ac_cv_c_const=no
6549 fi
6550 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6551 +
6552 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6553 fi
6554 -echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
6555 -echo "${ECHO_T}$ac_cv_c_const" >&6
6556 +{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
6557 +echo "${ECHO_T}$ac_cv_c_const" >&6; }
6558 if test $ac_cv_c_const = no; then
6559
6560 cat >>confdefs.h <<\_ACEOF
6561 @@ -5877,8 +6571,8 @@ _ACEOF
6562
6563 fi
6564
6565 -echo "$as_me:$LINENO: checking for inline" >&5
6566 -echo $ECHO_N "checking for inline... $ECHO_C" >&6
6567 +{ echo "$as_me:$LINENO: checking for inline" >&5
6568 +echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
6569 if test "${ac_cv_c_inline+set}" = set; then
6570 echo $ECHO_N "(cached) $ECHO_C" >&6
6571 else
6572 @@ -5898,39 +6592,37 @@ $ac_kw foo_t foo () {return 0; }
6573
6574 _ACEOF
6575 rm -f conftest.$ac_objext
6576 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6577 - (eval $ac_compile) 2>conftest.er1
6578 +if { (ac_try="$ac_compile"
6579 +case "(($ac_try" in
6580 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6581 + *) ac_try_echo=$ac_try;;
6582 +esac
6583 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6584 + (eval "$ac_compile") 2>conftest.er1
6585 ac_status=$?
6586 grep -v '^ *+' conftest.er1 >conftest.err
6587 rm -f conftest.er1
6588 cat conftest.err >&5
6589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6590 - (exit $ac_status); } &&
6591 - { ac_try='test -z "$ac_c_werror_flag"
6592 - || test ! -s conftest.err'
6593 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6594 - (eval $ac_try) 2>&5
6595 - ac_status=$?
6596 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
6597 - (exit $ac_status); }; } &&
6598 - { ac_try='test -s conftest.$ac_objext'
6599 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6600 - (eval $ac_try) 2>&5
6601 - ac_status=$?
6602 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
6603 - (exit $ac_status); }; }; then
6604 - ac_cv_c_inline=$ac_kw; break
6605 + (exit $ac_status); } && {
6606 + test -z "$ac_c_werror_flag" ||
6607 + test ! -s conftest.err
6608 + } && test -s conftest.$ac_objext; then
6609 + ac_cv_c_inline=$ac_kw
6610 else
6611 echo "$as_me: failed program was:" >&5
6612 sed 's/^/| /' conftest.$ac_ext >&5
6613
6614 +
6615 fi
6616 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6617 +
6618 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6619 + test "$ac_cv_c_inline" != no && break
6620 done
6621
6622 fi
6623 -echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
6624 -echo "${ECHO_T}$ac_cv_c_inline" >&6
6625 +{ echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
6626 +echo "${ECHO_T}$ac_cv_c_inline" >&6; }
6627
6628
6629 case $ac_cv_c_inline in
6630 @@ -5962,9 +6654,9 @@ for ac_header in sys/types.h sys/stat.h
6631 inttypes.h stdint.h unistd.h
6632 do
6633 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6634 -echo "$as_me:$LINENO: checking for $ac_header" >&5
6635 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6636 -if eval "test \"\${$as_ac_Header+set}\" = set"; then
6637 +{ echo "$as_me:$LINENO: checking for $ac_header" >&5
6638 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6639 +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6640 echo $ECHO_N "(cached) $ECHO_C" >&6
6641 else
6642 cat >conftest.$ac_ext <<_ACEOF
6643 @@ -5978,38 +6670,35 @@ $ac_includes_default
6644 #include <$ac_header>
6645 _ACEOF
6646 rm -f conftest.$ac_objext
6647 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6648 - (eval $ac_compile) 2>conftest.er1
6649 +if { (ac_try="$ac_compile"
6650 +case "(($ac_try" in
6651 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6652 + *) ac_try_echo=$ac_try;;
6653 +esac
6654 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6655 + (eval "$ac_compile") 2>conftest.er1
6656 ac_status=$?
6657 grep -v '^ *+' conftest.er1 >conftest.err
6658 rm -f conftest.er1
6659 cat conftest.err >&5
6660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6661 - (exit $ac_status); } &&
6662 - { ac_try='test -z "$ac_c_werror_flag"
6663 - || test ! -s conftest.err'
6664 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6665 - (eval $ac_try) 2>&5
6666 - ac_status=$?
6667 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
6668 - (exit $ac_status); }; } &&
6669 - { ac_try='test -s conftest.$ac_objext'
6670 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6671 - (eval $ac_try) 2>&5
6672 - ac_status=$?
6673 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
6674 - (exit $ac_status); }; }; then
6675 + (exit $ac_status); } && {
6676 + test -z "$ac_c_werror_flag" ||
6677 + test ! -s conftest.err
6678 + } && test -s conftest.$ac_objext; then
6679 eval "$as_ac_Header=yes"
6680 else
6681 echo "$as_me: failed program was:" >&5
6682 sed 's/^/| /' conftest.$ac_ext >&5
6683
6684 -eval "$as_ac_Header=no"
6685 + eval "$as_ac_Header=no"
6686 fi
6687 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6688 +
6689 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6690 fi
6691 -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6692 -echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6693 +ac_res=`eval echo '${'$as_ac_Header'}'`
6694 + { echo "$as_me:$LINENO: result: $ac_res" >&5
6695 +echo "${ECHO_T}$ac_res" >&6; }
6696 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6697 cat >>confdefs.h <<_ACEOF
6698 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6699 @@ -6020,8 +6709,8 @@ fi
6700 done
6701
6702
6703 -echo "$as_me:$LINENO: checking for off_t" >&5
6704 -echo $ECHO_N "checking for off_t... $ECHO_C" >&6
6705 +{ echo "$as_me:$LINENO: checking for off_t" >&5
6706 +echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
6707 if test "${ac_cv_type_off_t+set}" = set; then
6708 echo $ECHO_N "(cached) $ECHO_C" >&6
6709 else
6710 @@ -6032,62 +6721,59 @@ cat confdefs.h >>conftest.$ac_ext
6711 cat >>conftest.$ac_ext <<_ACEOF
6712 /* end confdefs.h. */
6713 $ac_includes_default
6714 +typedef off_t ac__type_new_;
6715 int
6716 main ()
6717 {
6718 -if ((off_t *) 0)
6719 +if ((ac__type_new_ *) 0)
6720 return 0;
6721 -if (sizeof (off_t))
6722 +if (sizeof (ac__type_new_))
6723 return 0;
6724 ;
6725 return 0;
6726 }
6727 _ACEOF
6728 rm -f conftest.$ac_objext
6729 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6730 - (eval $ac_compile) 2>conftest.er1
6731 +if { (ac_try="$ac_compile"
6732 +case "(($ac_try" in
6733 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6734 + *) ac_try_echo=$ac_try;;
6735 +esac
6736 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6737 + (eval "$ac_compile") 2>conftest.er1
6738 ac_status=$?
6739 grep -v '^ *+' conftest.er1 >conftest.err
6740 rm -f conftest.er1
6741 cat conftest.err >&5
6742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6743 - (exit $ac_status); } &&
6744 - { ac_try='test -z "$ac_c_werror_flag"
6745 - || test ! -s conftest.err'
6746 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6747 - (eval $ac_try) 2>&5
6748 - ac_status=$?
6749 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
6750 - (exit $ac_status); }; } &&
6751 - { ac_try='test -s conftest.$ac_objext'
6752 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6753 - (eval $ac_try) 2>&5
6754 - ac_status=$?
6755 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
6756 - (exit $ac_status); }; }; then
6757 + (exit $ac_status); } && {
6758 + test -z "$ac_c_werror_flag" ||
6759 + test ! -s conftest.err
6760 + } && test -s conftest.$ac_objext; then
6761 ac_cv_type_off_t=yes
6762 else
6763 echo "$as_me: failed program was:" >&5
6764 sed 's/^/| /' conftest.$ac_ext >&5
6765
6766 -ac_cv_type_off_t=no
6767 + ac_cv_type_off_t=no
6768 fi
6769 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6770 +
6771 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6772 fi
6773 -echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
6774 -echo "${ECHO_T}$ac_cv_type_off_t" >&6
6775 +{ echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
6776 +echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
6777 if test $ac_cv_type_off_t = yes; then
6778 :
6779 else
6780
6781 cat >>confdefs.h <<_ACEOF
6782 -#define off_t long
6783 +#define off_t long int
6784 _ACEOF
6785
6786 fi
6787
6788 -echo "$as_me:$LINENO: checking for size_t" >&5
6789 -echo $ECHO_N "checking for size_t... $ECHO_C" >&6
6790 +{ echo "$as_me:$LINENO: checking for size_t" >&5
6791 +echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
6792 if test "${ac_cv_type_size_t+set}" = set; then
6793 echo $ECHO_N "(cached) $ECHO_C" >&6
6794 else
6795 @@ -6098,64 +6784,61 @@ cat confdefs.h >>conftest.$ac_ext
6796 cat >>conftest.$ac_ext <<_ACEOF
6797 /* end confdefs.h. */
6798 $ac_includes_default
6799 +typedef size_t ac__type_new_;
6800 int
6801 main ()
6802 {
6803 -if ((size_t *) 0)
6804 +if ((ac__type_new_ *) 0)
6805 return 0;
6806 -if (sizeof (size_t))
6807 +if (sizeof (ac__type_new_))
6808 return 0;
6809 ;
6810 return 0;
6811 }
6812 _ACEOF
6813 rm -f conftest.$ac_objext
6814 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6815 - (eval $ac_compile) 2>conftest.er1
6816 +if { (ac_try="$ac_compile"
6817 +case "(($ac_try" in
6818 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6819 + *) ac_try_echo=$ac_try;;
6820 +esac
6821 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6822 + (eval "$ac_compile") 2>conftest.er1
6823 ac_status=$?
6824 grep -v '^ *+' conftest.er1 >conftest.err
6825 rm -f conftest.er1
6826 cat conftest.err >&5
6827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6828 - (exit $ac_status); } &&
6829 - { ac_try='test -z "$ac_c_werror_flag"
6830 - || test ! -s conftest.err'
6831 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6832 - (eval $ac_try) 2>&5
6833 - ac_status=$?
6834 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
6835 - (exit $ac_status); }; } &&
6836 - { ac_try='test -s conftest.$ac_objext'
6837 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6838 - (eval $ac_try) 2>&5
6839 - ac_status=$?
6840 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
6841 - (exit $ac_status); }; }; then
6842 + (exit $ac_status); } && {
6843 + test -z "$ac_c_werror_flag" ||
6844 + test ! -s conftest.err
6845 + } && test -s conftest.$ac_objext; then
6846 ac_cv_type_size_t=yes
6847 else
6848 echo "$as_me: failed program was:" >&5
6849 sed 's/^/| /' conftest.$ac_ext >&5
6850
6851 -ac_cv_type_size_t=no
6852 + ac_cv_type_size_t=no
6853 fi
6854 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6855 +
6856 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6857 fi
6858 -echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6859 -echo "${ECHO_T}$ac_cv_type_size_t" >&6
6860 +{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6861 +echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
6862 if test $ac_cv_type_size_t = yes; then
6863 :
6864 else
6865
6866 cat >>confdefs.h <<_ACEOF
6867 -#define size_t unsigned
6868 +#define size_t unsigned int
6869 _ACEOF
6870
6871 fi
6872
6873 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6874 # for constant arguments. Useless!
6875 -echo "$as_me:$LINENO: checking for working alloca.h" >&5
6876 -echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
6877 +{ echo "$as_me:$LINENO: checking for working alloca.h" >&5
6878 +echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
6879 if test "${ac_cv_working_alloca_h+set}" = set; then
6880 echo $ECHO_N "(cached) $ECHO_C" >&6
6881 else
6882 @@ -6170,44 +6853,42 @@ int
6883 main ()
6884 {
6885 char *p = (char *) alloca (2 * sizeof (int));
6886 + if (p) return 0;
6887 ;
6888 return 0;
6889 }
6890 _ACEOF
6891 rm -f conftest.$ac_objext conftest$ac_exeext
6892 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6893 - (eval $ac_link) 2>conftest.er1
6894 +if { (ac_try="$ac_link"
6895 +case "(($ac_try" in
6896 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6897 + *) ac_try_echo=$ac_try;;
6898 +esac
6899 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6900 + (eval "$ac_link") 2>conftest.er1
6901 ac_status=$?
6902 grep -v '^ *+' conftest.er1 >conftest.err
6903 rm -f conftest.er1
6904 cat conftest.err >&5
6905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6906 - (exit $ac_status); } &&
6907 - { ac_try='test -z "$ac_c_werror_flag"
6908 - || test ! -s conftest.err'
6909 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6910 - (eval $ac_try) 2>&5
6911 - ac_status=$?
6912 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
6913 - (exit $ac_status); }; } &&
6914 - { ac_try='test -s conftest$ac_exeext'
6915 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6916 - (eval $ac_try) 2>&5
6917 - ac_status=$?
6918 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
6919 - (exit $ac_status); }; }; then
6920 + (exit $ac_status); } && {
6921 + test -z "$ac_c_werror_flag" ||
6922 + test ! -s conftest.err
6923 + } && test -s conftest$ac_exeext &&
6924 + $as_test_x conftest$ac_exeext; then
6925 ac_cv_working_alloca_h=yes
6926 else
6927 echo "$as_me: failed program was:" >&5
6928 sed 's/^/| /' conftest.$ac_ext >&5
6929
6930 -ac_cv_working_alloca_h=no
6931 + ac_cv_working_alloca_h=no
6932 fi
6933 -rm -f conftest.err conftest.$ac_objext \
6934 +
6935 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6936 conftest$ac_exeext conftest.$ac_ext
6937 fi
6938 -echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
6939 -echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
6940 +{ echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
6941 +echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
6942 if test $ac_cv_working_alloca_h = yes; then
6943
6944 cat >>confdefs.h <<\_ACEOF
6945 @@ -6216,8 +6897,8 @@ _ACEOF
6946
6947 fi
6948
6949 -echo "$as_me:$LINENO: checking for alloca" >&5
6950 -echo $ECHO_N "checking for alloca... $ECHO_C" >&6
6951 +{ echo "$as_me:$LINENO: checking for alloca" >&5
6952 +echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
6953 if test "${ac_cv_func_alloca_works+set}" = set; then
6954 echo $ECHO_N "(cached) $ECHO_C" >&6
6955 else
6956 @@ -6234,7 +6915,7 @@ cat >>conftest.$ac_ext <<_ACEOF
6957 # include <malloc.h>
6958 # define alloca _alloca
6959 # else
6960 -# if HAVE_ALLOCA_H
6961 +# ifdef HAVE_ALLOCA_H
6962 # include <alloca.h>
6963 # else
6964 # ifdef _AIX
6965 @@ -6252,44 +6933,42 @@ int
6966 main ()
6967 {
6968 char *p = (char *) alloca (1);
6969 + if (p) return 0;
6970 ;
6971 return 0;
6972 }
6973 _ACEOF
6974 rm -f conftest.$ac_objext conftest$ac_exeext
6975 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6976 - (eval $ac_link) 2>conftest.er1
6977 +if { (ac_try="$ac_link"
6978 +case "(($ac_try" in
6979 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6980 + *) ac_try_echo=$ac_try;;
6981 +esac
6982 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6983 + (eval "$ac_link") 2>conftest.er1
6984 ac_status=$?
6985 grep -v '^ *+' conftest.er1 >conftest.err
6986 rm -f conftest.er1
6987 cat conftest.err >&5
6988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6989 - (exit $ac_status); } &&
6990 - { ac_try='test -z "$ac_c_werror_flag"
6991 - || test ! -s conftest.err'
6992 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6993 - (eval $ac_try) 2>&5
6994 - ac_status=$?
6995 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
6996 - (exit $ac_status); }; } &&
6997 - { ac_try='test -s conftest$ac_exeext'
6998 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6999 - (eval $ac_try) 2>&5
7000 - ac_status=$?
7001 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
7002 - (exit $ac_status); }; }; then
7003 + (exit $ac_status); } && {
7004 + test -z "$ac_c_werror_flag" ||
7005 + test ! -s conftest.err
7006 + } && test -s conftest$ac_exeext &&
7007 + $as_test_x conftest$ac_exeext; then
7008 ac_cv_func_alloca_works=yes
7009 else
7010 echo "$as_me: failed program was:" >&5
7011 sed 's/^/| /' conftest.$ac_ext >&5
7012
7013 -ac_cv_func_alloca_works=no
7014 + ac_cv_func_alloca_works=no
7015 fi
7016 -rm -f conftest.err conftest.$ac_objext \
7017 +
7018 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7019 conftest$ac_exeext conftest.$ac_ext
7020 fi
7021 -echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
7022 -echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
7023 +{ echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
7024 +echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
7025
7026 if test $ac_cv_func_alloca_works = yes; then
7027
7028 @@ -6303,15 +6982,15 @@ else
7029 # contain a buggy version. If you still want to use their alloca,
7030 # use ar to extract alloca.o from them instead of compiling alloca.c.
7031
7032 -ALLOCA=alloca.$ac_objext
7033 +ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
7034
7035 cat >>confdefs.h <<\_ACEOF
7036 #define C_ALLOCA 1
7037 _ACEOF
7038
7039
7040 -echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
7041 -echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
7042 +{ echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
7043 +echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
7044 if test "${ac_cv_os_cray+set}" = set; then
7045 echo $ECHO_N "(cached) $ECHO_C" >&6
7046 else
7047 @@ -6321,7 +7000,7 @@ _ACEOF
7048 cat confdefs.h >>conftest.$ac_ext
7049 cat >>conftest.$ac_ext <<_ACEOF
7050 /* end confdefs.h. */
7051 -#if defined(CRAY) && ! defined(CRAY2)
7052 +#if defined CRAY && ! defined CRAY2
7053 webecray
7054 #else
7055 wenotbecray
7056 @@ -6337,14 +7016,14 @@ fi
7057 rm -f conftest*
7058
7059 fi
7060 -echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
7061 -echo "${ECHO_T}$ac_cv_os_cray" >&6
7062 +{ echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
7063 +echo "${ECHO_T}$ac_cv_os_cray" >&6; }
7064 if test $ac_cv_os_cray = yes; then
7065 for ac_func in _getb67 GETB67 getb67; do
7066 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7067 -echo "$as_me:$LINENO: checking for $ac_func" >&5
7068 -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7069 -if eval "test \"\${$as_ac_var+set}\" = set"; then
7070 +{ echo "$as_me:$LINENO: checking for $ac_func" >&5
7071 +echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7072 +if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7073 echo $ECHO_N "(cached) $ECHO_C" >&6
7074 else
7075 cat >conftest.$ac_ext <<_ACEOF
7076 @@ -6370,68 +7049,60 @@ cat >>conftest.$ac_ext <<_ACEOF
7077
7078 #undef $ac_func
7079
7080 -/* Override any gcc2 internal prototype to avoid an error. */
7081 +/* Override any GCC internal prototype to avoid an error.
7082 + Use char because int might match the return type of a GCC
7083 + builtin and then its argument prototype would still apply. */
7084 #ifdef __cplusplus
7085 extern "C"
7086 -{
7087 #endif
7088 -/* We use char because int might match the return type of a gcc2
7089 - builtin and then its argument prototype would still apply. */
7090 char $ac_func ();
7091 /* The GNU C library defines this for functions which it implements
7092 to always fail with ENOSYS. Some functions are actually named
7093 something starting with __ and the normal name is an alias. */
7094 -#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7095 +#if defined __stub_$ac_func || defined __stub___$ac_func
7096 choke me
7097 -#else
7098 -char (*f) () = $ac_func;
7099 -#endif
7100 -#ifdef __cplusplus
7101 -}
7102 #endif
7103
7104 int
7105 main ()
7106 {
7107 -return f != $ac_func;
7108 +return $ac_func ();
7109 ;
7110 return 0;
7111 }
7112 _ACEOF
7113 rm -f conftest.$ac_objext conftest$ac_exeext
7114 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7115 - (eval $ac_link) 2>conftest.er1
7116 +if { (ac_try="$ac_link"
7117 +case "(($ac_try" in
7118 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7119 + *) ac_try_echo=$ac_try;;
7120 +esac
7121 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7122 + (eval "$ac_link") 2>conftest.er1
7123 ac_status=$?
7124 grep -v '^ *+' conftest.er1 >conftest.err
7125 rm -f conftest.er1
7126 cat conftest.err >&5
7127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7128 - (exit $ac_status); } &&
7129 - { ac_try='test -z "$ac_c_werror_flag"
7130 - || test ! -s conftest.err'
7131 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7132 - (eval $ac_try) 2>&5
7133 - ac_status=$?
7134 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
7135 - (exit $ac_status); }; } &&
7136 - { ac_try='test -s conftest$ac_exeext'
7137 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7138 - (eval $ac_try) 2>&5
7139 - ac_status=$?
7140 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
7141 - (exit $ac_status); }; }; then
7142 + (exit $ac_status); } && {
7143 + test -z "$ac_c_werror_flag" ||
7144 + test ! -s conftest.err
7145 + } && test -s conftest$ac_exeext &&
7146 + $as_test_x conftest$ac_exeext; then
7147 eval "$as_ac_var=yes"
7148 else
7149 echo "$as_me: failed program was:" >&5
7150 sed 's/^/| /' conftest.$ac_ext >&5
7151
7152 -eval "$as_ac_var=no"
7153 + eval "$as_ac_var=no"
7154 fi
7155 -rm -f conftest.err conftest.$ac_objext \
7156 +
7157 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7158 conftest$ac_exeext conftest.$ac_ext
7159 fi
7160 -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7161 -echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7162 +ac_res=`eval echo '${'$as_ac_var'}'`
7163 + { echo "$as_me:$LINENO: result: $ac_res" >&5
7164 +echo "${ECHO_T}$ac_res" >&6; }
7165 if test `eval echo '${'$as_ac_var'}'` = yes; then
7166
7167 cat >>confdefs.h <<_ACEOF
7168 @@ -6444,8 +7115,8 @@ fi
7169 done
7170 fi
7171
7172 -echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
7173 -echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
7174 +{ echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
7175 +echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
7176 if test "${ac_cv_c_stack_direction+set}" = set; then
7177 echo $ECHO_N "(cached) $ECHO_C" >&6
7178 else
7179 @@ -6458,6 +7129,7 @@ _ACEOF
7180 cat confdefs.h >>conftest.$ac_ext
7181 cat >>conftest.$ac_ext <<_ACEOF
7182 /* end confdefs.h. */
7183 +$ac_includes_default
7184 int
7185 find_stack_direction ()
7186 {
7187 @@ -6475,17 +7147,26 @@ find_stack_direction ()
7188 int
7189 main ()
7190 {
7191 - exit (find_stack_direction () < 0);
7192 + return find_stack_direction () < 0;
7193 }
7194 _ACEOF
7195 rm -f conftest$ac_exeext
7196 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7197 - (eval $ac_link) 2>&5
7198 +if { (ac_try="$ac_link"
7199 +case "(($ac_try" in
7200 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7201 + *) ac_try_echo=$ac_try;;
7202 +esac
7203 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7204 + (eval "$ac_link") 2>&5
7205 ac_status=$?
7206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7207 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7208 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7209 - (eval $ac_try) 2>&5
7210 + { (case "(($ac_try" in
7211 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7212 + *) ac_try_echo=$ac_try;;
7213 +esac
7214 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7215 + (eval "$ac_try") 2>&5
7216 ac_status=$?
7217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7218 (exit $ac_status); }; }; then
7219 @@ -6498,11 +7179,13 @@ sed 's/^/| /' conftest.$ac_ext >&5
7220 ( exit $ac_status )
7221 ac_cv_c_stack_direction=-1
7222 fi
7223 -rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7224 +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7225 fi
7226 +
7227 +
7228 fi
7229 -echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
7230 -echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
7231 +{ echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
7232 +echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
7233
7234 cat >>confdefs.h <<_ACEOF
7235 #define STACK_DIRECTION $ac_cv_c_stack_direction
7236 @@ -6516,18 +7199,19 @@ fi
7237 for ac_header in stdlib.h unistd.h
7238 do
7239 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7240 -if eval "test \"\${$as_ac_Header+set}\" = set"; then
7241 - echo "$as_me:$LINENO: checking for $ac_header" >&5
7242 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7243 -if eval "test \"\${$as_ac_Header+set}\" = set"; then
7244 +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7245 + { echo "$as_me:$LINENO: checking for $ac_header" >&5
7246 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7247 +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7248 echo $ECHO_N "(cached) $ECHO_C" >&6
7249 fi
7250 -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7251 -echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7252 +ac_res=`eval echo '${'$as_ac_Header'}'`
7253 + { echo "$as_me:$LINENO: result: $ac_res" >&5
7254 +echo "${ECHO_T}$ac_res" >&6; }
7255 else
7256 # Is the header compilable?
7257 -echo "$as_me:$LINENO: checking $ac_header usability" >&5
7258 -echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7259 +{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
7260 +echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7261 cat >conftest.$ac_ext <<_ACEOF
7262 /* confdefs.h. */
7263 _ACEOF
7264 @@ -6538,41 +7222,37 @@ $ac_includes_default
7265 #include <$ac_header>
7266 _ACEOF
7267 rm -f conftest.$ac_objext
7268 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7269 - (eval $ac_compile) 2>conftest.er1
7270 +if { (ac_try="$ac_compile"
7271 +case "(($ac_try" in
7272 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7273 + *) ac_try_echo=$ac_try;;
7274 +esac
7275 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7276 + (eval "$ac_compile") 2>conftest.er1
7277 ac_status=$?
7278 grep -v '^ *+' conftest.er1 >conftest.err
7279 rm -f conftest.er1
7280 cat conftest.err >&5
7281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7282 - (exit $ac_status); } &&
7283 - { ac_try='test -z "$ac_c_werror_flag"
7284 - || test ! -s conftest.err'
7285 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7286 - (eval $ac_try) 2>&5
7287 - ac_status=$?
7288 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
7289 - (exit $ac_status); }; } &&
7290 - { ac_try='test -s conftest.$ac_objext'
7291 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7292 - (eval $ac_try) 2>&5
7293 - ac_status=$?
7294 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
7295 - (exit $ac_status); }; }; then
7296 + (exit $ac_status); } && {
7297 + test -z "$ac_c_werror_flag" ||
7298 + test ! -s conftest.err
7299 + } && test -s conftest.$ac_objext; then
7300 ac_header_compiler=yes
7301 else
7302 echo "$as_me: failed program was:" >&5
7303 sed 's/^/| /' conftest.$ac_ext >&5
7304
7305 -ac_header_compiler=no
7306 + ac_header_compiler=no
7307 fi
7308 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7309 -echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7310 -echo "${ECHO_T}$ac_header_compiler" >&6
7311 +
7312 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7313 +{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7314 +echo "${ECHO_T}$ac_header_compiler" >&6; }
7315
7316 # Is the header present?
7317 -echo "$as_me:$LINENO: checking $ac_header presence" >&5
7318 -echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7319 +{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
7320 +echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7321 cat >conftest.$ac_ext <<_ACEOF
7322 /* confdefs.h. */
7323 _ACEOF
7324 @@ -6581,24 +7261,22 @@ cat >>conftest.$ac_ext <<_ACEOF
7325 /* end confdefs.h. */
7326 #include <$ac_header>
7327 _ACEOF
7328 -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7329 - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7330 +if { (ac_try="$ac_cpp conftest.$ac_ext"
7331 +case "(($ac_try" in
7332 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7333 + *) ac_try_echo=$ac_try;;
7334 +esac
7335 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7336 + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7337 ac_status=$?
7338 grep -v '^ *+' conftest.er1 >conftest.err
7339 rm -f conftest.er1
7340 cat conftest.err >&5
7341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7342 - (exit $ac_status); } >/dev/null; then
7343 - if test -s conftest.err; then
7344 - ac_cpp_err=$ac_c_preproc_warn_flag
7345 - ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7346 - else
7347 - ac_cpp_err=
7348 - fi
7349 -else
7350 - ac_cpp_err=yes
7351 -fi
7352 -if test -z "$ac_cpp_err"; then
7353 + (exit $ac_status); } >/dev/null && {
7354 + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7355 + test ! -s conftest.err
7356 + }; then
7357 ac_header_preproc=yes
7358 else
7359 echo "$as_me: failed program was:" >&5
7360 @@ -6606,9 +7284,10 @@ sed 's/^/| /' conftest.$ac_ext >&5
7361
7362 ac_header_preproc=no
7363 fi
7364 +
7365 rm -f conftest.err conftest.$ac_ext
7366 -echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7367 -echo "${ECHO_T}$ac_header_preproc" >&6
7368 +{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7369 +echo "${ECHO_T}$ac_header_preproc" >&6; }
7370
7371 # So? What about this header?
7372 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7373 @@ -6632,25 +7311,19 @@ echo "$as_me: WARNING: $ac_header: s
7374 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7375 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7376 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7377 - (
7378 - cat <<\_ASBOX
7379 -## ------------------------------------------ ##
7380 -## Report this to the AC_PACKAGE_NAME lists. ##
7381 -## ------------------------------------------ ##
7382 -_ASBOX
7383 - ) |
7384 - sed "s/^/$as_me: WARNING: /" >&2
7385 +
7386 ;;
7387 esac
7388 -echo "$as_me:$LINENO: checking for $ac_header" >&5
7389 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7390 -if eval "test \"\${$as_ac_Header+set}\" = set"; then
7391 +{ echo "$as_me:$LINENO: checking for $ac_header" >&5
7392 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7393 +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7394 echo $ECHO_N "(cached) $ECHO_C" >&6
7395 else
7396 eval "$as_ac_Header=\$ac_header_preproc"
7397 fi
7398 -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7399 -echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7400 +ac_res=`eval echo '${'$as_ac_Header'}'`
7401 + { echo "$as_me:$LINENO: result: $ac_res" >&5
7402 +echo "${ECHO_T}$ac_res" >&6; }
7403
7404 fi
7405 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7406 @@ -6666,9 +7339,9 @@ done
7407 for ac_func in getpagesize
7408 do
7409 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7410 -echo "$as_me:$LINENO: checking for $ac_func" >&5
7411 -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7412 -if eval "test \"\${$as_ac_var+set}\" = set"; then
7413 +{ echo "$as_me:$LINENO: checking for $ac_func" >&5
7414 +echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7415 +if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7416 echo $ECHO_N "(cached) $ECHO_C" >&6
7417 else
7418 cat >conftest.$ac_ext <<_ACEOF
7419 @@ -6694,68 +7367,60 @@ cat >>conftest.$ac_ext <<_ACEOF
7420
7421 #undef $ac_func
7422
7423 -/* Override any gcc2 internal prototype to avoid an error. */
7424 +/* Override any GCC internal prototype to avoid an error.
7425 + Use char because int might match the return type of a GCC
7426 + builtin and then its argument prototype would still apply. */
7427 #ifdef __cplusplus
7428 extern "C"
7429 -{
7430 #endif
7431 -/* We use char because int might match the return type of a gcc2
7432 - builtin and then its argument prototype would still apply. */
7433 char $ac_func ();
7434 /* The GNU C library defines this for functions which it implements
7435 to always fail with ENOSYS. Some functions are actually named
7436 something starting with __ and the normal name is an alias. */
7437 -#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7438 +#if defined __stub_$ac_func || defined __stub___$ac_func
7439 choke me
7440 -#else
7441 -char (*f) () = $ac_func;
7442 -#endif
7443 -#ifdef __cplusplus
7444 -}
7445 #endif
7446
7447 int
7448 main ()
7449 {
7450 -return f != $ac_func;
7451 +return $ac_func ();
7452 ;
7453 return 0;
7454 }
7455 _ACEOF
7456 rm -f conftest.$ac_objext conftest$ac_exeext
7457 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7458 - (eval $ac_link) 2>conftest.er1
7459 +if { (ac_try="$ac_link"
7460 +case "(($ac_try" in
7461 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7462 + *) ac_try_echo=$ac_try;;
7463 +esac
7464 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7465 + (eval "$ac_link") 2>conftest.er1
7466 ac_status=$?
7467 grep -v '^ *+' conftest.er1 >conftest.err
7468 rm -f conftest.er1
7469 cat conftest.err >&5
7470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7471 - (exit $ac_status); } &&
7472 - { ac_try='test -z "$ac_c_werror_flag"
7473 - || test ! -s conftest.err'
7474 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7475 - (eval $ac_try) 2>&5
7476 - ac_status=$?
7477 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
7478 - (exit $ac_status); }; } &&
7479 - { ac_try='test -s conftest$ac_exeext'
7480 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7481 - (eval $ac_try) 2>&5
7482 - ac_status=$?
7483 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
7484 - (exit $ac_status); }; }; then
7485 + (exit $ac_status); } && {
7486 + test -z "$ac_c_werror_flag" ||
7487 + test ! -s conftest.err
7488 + } && test -s conftest$ac_exeext &&
7489 + $as_test_x conftest$ac_exeext; then
7490 eval "$as_ac_var=yes"
7491 else
7492 echo "$as_me: failed program was:" >&5
7493 sed 's/^/| /' conftest.$ac_ext >&5
7494
7495 -eval "$as_ac_var=no"
7496 + eval "$as_ac_var=no"
7497 fi
7498 -rm -f conftest.err conftest.$ac_objext \
7499 +
7500 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7501 conftest$ac_exeext conftest.$ac_ext
7502 fi
7503 -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7504 -echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7505 +ac_res=`eval echo '${'$as_ac_var'}'`
7506 + { echo "$as_me:$LINENO: result: $ac_res" >&5
7507 +echo "${ECHO_T}$ac_res" >&6; }
7508 if test `eval echo '${'$as_ac_var'}'` = yes; then
7509 cat >>confdefs.h <<_ACEOF
7510 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7511 @@ -6764,8 +7429,8 @@ _ACEOF
7512 fi
7513 done
7514
7515 -echo "$as_me:$LINENO: checking for working mmap" >&5
7516 -echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
7517 +{ echo "$as_me:$LINENO: checking for working mmap" >&5
7518 +echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
7519 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
7520 echo $ECHO_N "(cached) $ECHO_C" >&6
7521 else
7522 @@ -6807,21 +7472,21 @@ $ac_includes_default
7523 #include <fcntl.h>
7524 #include <sys/mman.h>
7525
7526 -#if !STDC_HEADERS && !HAVE_STDLIB_H
7527 +#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
7528 char *malloc ();
7529 #endif
7530
7531 /* This mess was copied from the GNU getpagesize.h. */
7532 -#if !HAVE_GETPAGESIZE
7533 +#ifndef HAVE_GETPAGESIZE
7534 /* Assume that all systems that can run configure have sys/param.h. */
7535 -# if !HAVE_SYS_PARAM_H
7536 +# ifndef HAVE_SYS_PARAM_H
7537 # define HAVE_SYS_PARAM_H 1
7538 # endif
7539
7540 # ifdef _SC_PAGESIZE
7541 # define getpagesize() sysconf(_SC_PAGESIZE)
7542 # else /* no _SC_PAGESIZE */
7543 -# if HAVE_SYS_PARAM_H
7544 +# ifdef HAVE_SYS_PARAM_H
7545 # include <sys/param.h>
7546 # ifdef EXEC_PAGESIZE
7547 # define getpagesize() EXEC_PAGESIZE
7548 @@ -6860,15 +7525,15 @@ main ()
7549 /* First, make a file with some known garbage in it. */
7550 data = (char *) malloc (pagesize);
7551 if (!data)
7552 - exit (1);
7553 + return 1;
7554 for (i = 0; i < pagesize; ++i)
7555 *(data + i) = rand ();
7556 umask (0);
7557 fd = creat ("conftest.mmap", 0600);
7558 if (fd < 0)
7559 - exit (1);
7560 + return 1;
7561 if (write (fd, data, pagesize) != pagesize)
7562 - exit (1);
7563 + return 1;
7564 close (fd);
7565
7566 /* Next, try to mmap the file at a fixed address which already has
7567 @@ -6876,17 +7541,17 @@ main ()
7568 we see the same garbage. */
7569 fd = open ("conftest.mmap", O_RDWR);
7570 if (fd < 0)
7571 - exit (1);
7572 + return 1;
7573 data2 = (char *) malloc (2 * pagesize);
7574 if (!data2)
7575 - exit (1);
7576 - data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
7577 + return 1;
7578 + data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
7579 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7580 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7581 - exit (1);
7582 + return 1;
7583 for (i = 0; i < pagesize; ++i)
7584 if (*(data + i) != *(data2 + i))
7585 - exit (1);
7586 + return 1;
7587
7588 /* Finally, make sure that changes to the mapped area do not
7589 percolate back to the file as seen by read(). (This is a bug on
7590 @@ -6895,24 +7560,33 @@ main ()
7591 *(data2 + i) = *(data2 + i) + 1;
7592 data3 = (char *) malloc (pagesize);
7593 if (!data3)
7594 - exit (1);
7595 + return 1;
7596 if (read (fd, data3, pagesize) != pagesize)
7597 - exit (1);
7598 + return 1;
7599 for (i = 0; i < pagesize; ++i)
7600 if (*(data + i) != *(data3 + i))
7601 - exit (1);
7602 + return 1;
7603 close (fd);
7604 - exit (0);
7605 + return 0;
7606 }
7607 _ACEOF
7608 rm -f conftest$ac_exeext
7609 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7610 - (eval $ac_link) 2>&5
7611 +if { (ac_try="$ac_link"
7612 +case "(($ac_try" in
7613 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7614 + *) ac_try_echo=$ac_try;;
7615 +esac
7616 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7617 + (eval "$ac_link") 2>&5
7618 ac_status=$?
7619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7620 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7621 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7622 - (eval $ac_try) 2>&5
7623 + { (case "(($ac_try" in
7624 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7625 + *) ac_try_echo=$ac_try;;
7626 +esac
7627 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7628 + (eval "$ac_try") 2>&5
7629 ac_status=$?
7630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7631 (exit $ac_status); }; }; then
7632 @@ -6925,11 +7599,13 @@ sed 's/^/| /' conftest.$ac_ext >&5
7633 ( exit $ac_status )
7634 ac_cv_func_mmap_fixed_mapped=no
7635 fi
7636 -rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7637 +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7638 fi
7639 +
7640 +
7641 fi
7642 -echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
7643 -echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
7644 +{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
7645 +echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
7646 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7647
7648 cat >>confdefs.h <<\_ACEOF
7649 @@ -6953,18 +7629,19 @@ for ac_header in argz.h limits.h locale.
7650 unistd.h values.h sys/param.h
7651 do
7652 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7653 -if eval "test \"\${$as_ac_Header+set}\" = set"; then
7654 - echo "$as_me:$LINENO: checking for $ac_header" >&5
7655 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7656 -if eval "test \"\${$as_ac_Header+set}\" = set"; then
7657 +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7658 + { echo "$as_me:$LINENO: checking for $ac_header" >&5
7659 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7660 +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7661 echo $ECHO_N "(cached) $ECHO_C" >&6
7662 fi
7663 -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7664 -echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7665 +ac_res=`eval echo '${'$as_ac_Header'}'`
7666 + { echo "$as_me:$LINENO: result: $ac_res" >&5
7667 +echo "${ECHO_T}$ac_res" >&6; }
7668 else
7669 # Is the header compilable?
7670 -echo "$as_me:$LINENO: checking $ac_header usability" >&5
7671 -echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7672 +{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
7673 +echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7674 cat >conftest.$ac_ext <<_ACEOF
7675 /* confdefs.h. */
7676 _ACEOF
7677 @@ -6975,41 +7652,37 @@ $ac_includes_default
7678 #include <$ac_header>
7679 _ACEOF
7680 rm -f conftest.$ac_objext
7681 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7682 - (eval $ac_compile) 2>conftest.er1
7683 +if { (ac_try="$ac_compile"
7684 +case "(($ac_try" in
7685 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7686 + *) ac_try_echo=$ac_try;;
7687 +esac
7688 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7689 + (eval "$ac_compile") 2>conftest.er1
7690 ac_status=$?
7691 grep -v '^ *+' conftest.er1 >conftest.err
7692 rm -f conftest.er1
7693 cat conftest.err >&5
7694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7695 - (exit $ac_status); } &&
7696 - { ac_try='test -z "$ac_c_werror_flag"
7697 - || test ! -s conftest.err'
7698 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7699 - (eval $ac_try) 2>&5
7700 - ac_status=$?
7701 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
7702 - (exit $ac_status); }; } &&
7703 - { ac_try='test -s conftest.$ac_objext'
7704 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7705 - (eval $ac_try) 2>&5
7706 - ac_status=$?
7707 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
7708 - (exit $ac_status); }; }; then
7709 + (exit $ac_status); } && {
7710 + test -z "$ac_c_werror_flag" ||
7711 + test ! -s conftest.err
7712 + } && test -s conftest.$ac_objext; then
7713 ac_header_compiler=yes
7714 else
7715 echo "$as_me: failed program was:" >&5
7716 sed 's/^/| /' conftest.$ac_ext >&5
7717
7718 -ac_header_compiler=no
7719 + ac_header_compiler=no
7720 fi
7721 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7722 -echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7723 -echo "${ECHO_T}$ac_header_compiler" >&6
7724 +
7725 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7726 +{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7727 +echo "${ECHO_T}$ac_header_compiler" >&6; }
7728
7729 # Is the header present?
7730 -echo "$as_me:$LINENO: checking $ac_header presence" >&5
7731 -echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7732 +{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
7733 +echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7734 cat >conftest.$ac_ext <<_ACEOF
7735 /* confdefs.h. */
7736 _ACEOF
7737 @@ -7018,24 +7691,22 @@ cat >>conftest.$ac_ext <<_ACEOF
7738 /* end confdefs.h. */
7739 #include <$ac_header>
7740 _ACEOF
7741 -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7742 - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7743 +if { (ac_try="$ac_cpp conftest.$ac_ext"
7744 +case "(($ac_try" in
7745 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7746 + *) ac_try_echo=$ac_try;;
7747 +esac
7748 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7749 + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7750 ac_status=$?
7751 grep -v '^ *+' conftest.er1 >conftest.err
7752 rm -f conftest.er1
7753 cat conftest.err >&5
7754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7755 - (exit $ac_status); } >/dev/null; then
7756 - if test -s conftest.err; then
7757 - ac_cpp_err=$ac_c_preproc_warn_flag
7758 - ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7759 - else
7760 - ac_cpp_err=
7761 - fi
7762 -else
7763 - ac_cpp_err=yes
7764 -fi
7765 -if test -z "$ac_cpp_err"; then
7766 + (exit $ac_status); } >/dev/null && {
7767 + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7768 + test ! -s conftest.err
7769 + }; then
7770 ac_header_preproc=yes
7771 else
7772 echo "$as_me: failed program was:" >&5
7773 @@ -7043,9 +7714,10 @@ sed 's/^/| /' conftest.$ac_ext >&5
7774
7775 ac_header_preproc=no
7776 fi
7777 +
7778 rm -f conftest.err conftest.$ac_ext
7779 -echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7780 -echo "${ECHO_T}$ac_header_preproc" >&6
7781 +{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7782 +echo "${ECHO_T}$ac_header_preproc" >&6; }
7783
7784 # So? What about this header?
7785 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7786 @@ -7069,25 +7741,19 @@ echo "$as_me: WARNING: $ac_header: s
7787 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7788 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7789 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7790 - (
7791 - cat <<\_ASBOX
7792 -## ------------------------------------------ ##
7793 -## Report this to the AC_PACKAGE_NAME lists. ##
7794 -## ------------------------------------------ ##
7795 -_ASBOX
7796 - ) |
7797 - sed "s/^/$as_me: WARNING: /" >&2
7798 +
7799 ;;
7800 esac
7801 -echo "$as_me:$LINENO: checking for $ac_header" >&5
7802 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7803 -if eval "test \"\${$as_ac_Header+set}\" = set"; then
7804 +{ echo "$as_me:$LINENO: checking for $ac_header" >&5
7805 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7806 +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7807 echo $ECHO_N "(cached) $ECHO_C" >&6
7808 else
7809 eval "$as_ac_Header=\$ac_header_preproc"
7810 fi
7811 -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7812 -echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7813 +ac_res=`eval echo '${'$as_ac_Header'}'`
7814 + { echo "$as_me:$LINENO: result: $ac_res" >&5
7815 +echo "${ECHO_T}$ac_res" >&6; }
7816
7817 fi
7818 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7819 @@ -7113,9 +7779,9 @@ for ac_func in getcwd munmap putenv sete
7820 __argz_count __argz_stringify __argz_next
7821 do
7822 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7823 -echo "$as_me:$LINENO: checking for $ac_func" >&5
7824 -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7825 -if eval "test \"\${$as_ac_var+set}\" = set"; then
7826 +{ echo "$as_me:$LINENO: checking for $ac_func" >&5
7827 +echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7828 +if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7829 echo $ECHO_N "(cached) $ECHO_C" >&6
7830 else
7831 cat >conftest.$ac_ext <<_ACEOF
7832 @@ -7141,68 +7807,60 @@ cat >>conftest.$ac_ext <<_ACEOF
7833
7834 #undef $ac_func
7835
7836 -/* Override any gcc2 internal prototype to avoid an error. */
7837 +/* Override any GCC internal prototype to avoid an error.
7838 + Use char because int might match the return type of a GCC
7839 + builtin and then its argument prototype would still apply. */
7840 #ifdef __cplusplus
7841 extern "C"
7842 -{
7843 #endif
7844 -/* We use char because int might match the return type of a gcc2
7845 - builtin and then its argument prototype would still apply. */
7846 char $ac_func ();
7847 /* The GNU C library defines this for functions which it implements
7848 to always fail with ENOSYS. Some functions are actually named
7849 something starting with __ and the normal name is an alias. */
7850 -#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7851 +#if defined __stub_$ac_func || defined __stub___$ac_func
7852 choke me
7853 -#else
7854 -char (*f) () = $ac_func;
7855 -#endif
7856 -#ifdef __cplusplus
7857 -}
7858 #endif
7859
7860 int
7861 main ()
7862 {
7863 -return f != $ac_func;
7864 +return $ac_func ();
7865 ;
7866 return 0;
7867 }
7868 _ACEOF
7869 rm -f conftest.$ac_objext conftest$ac_exeext
7870 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7871 - (eval $ac_link) 2>conftest.er1
7872 +if { (ac_try="$ac_link"
7873 +case "(($ac_try" in
7874 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7875 + *) ac_try_echo=$ac_try;;
7876 +esac
7877 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7878 + (eval "$ac_link") 2>conftest.er1
7879 ac_status=$?
7880 grep -v '^ *+' conftest.er1 >conftest.err
7881 rm -f conftest.er1
7882 cat conftest.err >&5
7883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7884 - (exit $ac_status); } &&
7885 - { ac_try='test -z "$ac_c_werror_flag"
7886 - || test ! -s conftest.err'
7887 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7888 - (eval $ac_try) 2>&5
7889 - ac_status=$?
7890 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
7891 - (exit $ac_status); }; } &&
7892 - { ac_try='test -s conftest$ac_exeext'
7893 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7894 - (eval $ac_try) 2>&5
7895 - ac_status=$?
7896 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
7897 - (exit $ac_status); }; }; then
7898 + (exit $ac_status); } && {
7899 + test -z "$ac_c_werror_flag" ||
7900 + test ! -s conftest.err
7901 + } && test -s conftest$ac_exeext &&
7902 + $as_test_x conftest$ac_exeext; then
7903 eval "$as_ac_var=yes"
7904 else
7905 echo "$as_me: failed program was:" >&5
7906 sed 's/^/| /' conftest.$ac_ext >&5
7907
7908 -eval "$as_ac_var=no"
7909 + eval "$as_ac_var=no"
7910 fi
7911 -rm -f conftest.err conftest.$ac_objext \
7912 +
7913 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7914 conftest$ac_exeext conftest.$ac_ext
7915 fi
7916 -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7917 -echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7918 +ac_res=`eval echo '${'$as_ac_var'}'`
7919 + { echo "$as_me:$LINENO: result: $ac_res" >&5
7920 +echo "${ECHO_T}$ac_res" >&6; }
7921 if test `eval echo '${'$as_ac_var'}'` = yes; then
7922 cat >>confdefs.h <<_ACEOF
7923 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7924 @@ -7217,9 +7875,9 @@ done
7925 for ac_func in stpcpy
7926 do
7927 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7928 -echo "$as_me:$LINENO: checking for $ac_func" >&5
7929 -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7930 -if eval "test \"\${$as_ac_var+set}\" = set"; then
7931 +{ echo "$as_me:$LINENO: checking for $ac_func" >&5
7932 +echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7933 +if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7934 echo $ECHO_N "(cached) $ECHO_C" >&6
7935 else
7936 cat >conftest.$ac_ext <<_ACEOF
7937 @@ -7245,68 +7903,60 @@ cat >>conftest.$ac_ext <<_ACEOF
7938
7939 #undef $ac_func
7940
7941 -/* Override any gcc2 internal prototype to avoid an error. */
7942 +/* Override any GCC internal prototype to avoid an error.
7943 + Use char because int might match the return type of a GCC
7944 + builtin and then its argument prototype would still apply. */
7945 #ifdef __cplusplus
7946 extern "C"
7947 -{
7948 #endif
7949 -/* We use char because int might match the return type of a gcc2
7950 - builtin and then its argument prototype would still apply. */
7951 char $ac_func ();
7952 /* The GNU C library defines this for functions which it implements
7953 to always fail with ENOSYS. Some functions are actually named
7954 something starting with __ and the normal name is an alias. */
7955 -#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7956 +#if defined __stub_$ac_func || defined __stub___$ac_func
7957 choke me
7958 -#else
7959 -char (*f) () = $ac_func;
7960 -#endif
7961 -#ifdef __cplusplus
7962 -}
7963 #endif
7964
7965 int
7966 main ()
7967 {
7968 -return f != $ac_func;
7969 +return $ac_func ();
7970 ;
7971 return 0;
7972 }
7973 _ACEOF
7974 rm -f conftest.$ac_objext conftest$ac_exeext
7975 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7976 - (eval $ac_link) 2>conftest.er1
7977 +if { (ac_try="$ac_link"
7978 +case "(($ac_try" in
7979 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7980 + *) ac_try_echo=$ac_try;;
7981 +esac
7982 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7983 + (eval "$ac_link") 2>conftest.er1
7984 ac_status=$?
7985 grep -v '^ *+' conftest.er1 >conftest.err
7986 rm -f conftest.er1
7987 cat conftest.err >&5
7988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7989 - (exit $ac_status); } &&
7990 - { ac_try='test -z "$ac_c_werror_flag"
7991 - || test ! -s conftest.err'
7992 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7993 - (eval $ac_try) 2>&5
7994 - ac_status=$?
7995 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
7996 - (exit $ac_status); }; } &&
7997 - { ac_try='test -s conftest$ac_exeext'
7998 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7999 - (eval $ac_try) 2>&5
8000 - ac_status=$?
8001 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
8002 - (exit $ac_status); }; }; then
8003 + (exit $ac_status); } && {
8004 + test -z "$ac_c_werror_flag" ||
8005 + test ! -s conftest.err
8006 + } && test -s conftest$ac_exeext &&
8007 + $as_test_x conftest$ac_exeext; then
8008 eval "$as_ac_var=yes"
8009 else
8010 echo "$as_me: failed program was:" >&5
8011 sed 's/^/| /' conftest.$ac_ext >&5
8012
8013 -eval "$as_ac_var=no"
8014 + eval "$as_ac_var=no"
8015 fi
8016 -rm -f conftest.err conftest.$ac_objext \
8017 +
8018 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8019 conftest$ac_exeext conftest.$ac_ext
8020 fi
8021 -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8022 -echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8023 +ac_res=`eval echo '${'$as_ac_var'}'`
8024 + { echo "$as_me:$LINENO: result: $ac_res" >&5
8025 +echo "${ECHO_T}$ac_res" >&6; }
8026 if test `eval echo '${'$as_ac_var'}'` = yes; then
8027 cat >>confdefs.h <<_ACEOF
8028 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8029 @@ -7325,8 +7975,8 @@ _ACEOF
8030 fi
8031
8032 if test $ac_cv_header_locale_h = yes; then
8033 - echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
8034 -echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
8035 + { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
8036 +echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
8037 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
8038 echo $ECHO_N "(cached) $ECHO_C" >&6
8039 else
8040 @@ -7346,39 +7996,36 @@ return LC_MESSAGES
8041 }
8042 _ACEOF
8043 rm -f conftest.$ac_objext conftest$ac_exeext
8044 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8045 - (eval $ac_link) 2>conftest.er1
8046 +if { (ac_try="$ac_link"
8047 +case "(($ac_try" in
8048 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8049 + *) ac_try_echo=$ac_try;;
8050 +esac
8051 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8052 + (eval "$ac_link") 2>conftest.er1
8053 ac_status=$?
8054 grep -v '^ *+' conftest.er1 >conftest.err
8055 rm -f conftest.er1
8056 cat conftest.err >&5
8057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8058 - (exit $ac_status); } &&
8059 - { ac_try='test -z "$ac_c_werror_flag"
8060 - || test ! -s conftest.err'
8061 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8062 - (eval $ac_try) 2>&5
8063 - ac_status=$?
8064 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
8065 - (exit $ac_status); }; } &&
8066 - { ac_try='test -s conftest$ac_exeext'
8067 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8068 - (eval $ac_try) 2>&5
8069 - ac_status=$?
8070 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
8071 - (exit $ac_status); }; }; then
8072 + (exit $ac_status); } && {
8073 + test -z "$ac_c_werror_flag" ||
8074 + test ! -s conftest.err
8075 + } && test -s conftest$ac_exeext &&
8076 + $as_test_x conftest$ac_exeext; then
8077 am_cv_val_LC_MESSAGES=yes
8078 else
8079 echo "$as_me: failed program was:" >&5
8080 sed 's/^/| /' conftest.$ac_ext >&5
8081
8082 -am_cv_val_LC_MESSAGES=no
8083 + am_cv_val_LC_MESSAGES=no
8084 fi
8085 -rm -f conftest.err conftest.$ac_objext \
8086 +
8087 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8088 conftest$ac_exeext conftest.$ac_ext
8089 fi
8090 -echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
8091 -echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
8092 +{ echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
8093 +echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6; }
8094 if test $am_cv_val_LC_MESSAGES = yes; then
8095
8096 cat >>confdefs.h <<\_ACEOF
8097 @@ -7387,34 +8034,34 @@ _ACEOF
8098
8099 fi
8100 fi
8101 - echo "$as_me:$LINENO: checking whether NLS is requested" >&5
8102 -echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
8103 - # Check whether --enable-nls or --disable-nls was given.
8104 + { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
8105 +echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
8106 + # Check whether --enable-nls was given.
8107 if test "${enable_nls+set}" = set; then
8108 - enableval="$enable_nls"
8109 - USE_NLS=$enableval
8110 + enableval=$enable_nls; USE_NLS=$enableval
8111 else
8112 USE_NLS=yes
8113 -fi;
8114 - echo "$as_me:$LINENO: result: $USE_NLS" >&5
8115 -echo "${ECHO_T}$USE_NLS" >&6
8116 +fi
8117 +
8118 + { echo "$as_me:$LINENO: result: $USE_NLS" >&5
8119 +echo "${ECHO_T}$USE_NLS" >&6; }
8120
8121
8122 USE_INCLUDED_LIBINTL=no
8123
8124 if test "$USE_NLS" = "yes"; then
8125 - echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
8126 -echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
8127 + { echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
8128 +echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6; }
8129
8130 -# Check whether --with-included-gettext or --without-included-gettext was given.
8131 +# Check whether --with-included-gettext was given.
8132 if test "${with_included_gettext+set}" = set; then
8133 - withval="$with_included_gettext"
8134 - nls_cv_force_use_gnu_gettext=$withval
8135 + withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
8136 else
8137 nls_cv_force_use_gnu_gettext=no
8138 -fi;
8139 - echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
8140 -echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
8141 +fi
8142 +
8143 + { echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
8144 +echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6; }
8145
8146 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
8147 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
8148 @@ -7423,17 +8070,17 @@ echo "${ECHO_T}$nls_cv_force_use_gnu_get
8149 CATOBJEXT=
8150
8151 if test "${ac_cv_header_libintl_h+set}" = set; then
8152 - echo "$as_me:$LINENO: checking for libintl.h" >&5
8153 -echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
8154 + { echo "$as_me:$LINENO: checking for libintl.h" >&5
8155 +echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; }
8156 if test "${ac_cv_header_libintl_h+set}" = set; then
8157 echo $ECHO_N "(cached) $ECHO_C" >&6
8158 fi
8159 -echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
8160 -echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
8161 +{ echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
8162 +echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; }
8163 else
8164 # Is the header compilable?
8165 -echo "$as_me:$LINENO: checking libintl.h usability" >&5
8166 -echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
8167 +{ echo "$as_me:$LINENO: checking libintl.h usability" >&5
8168 +echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6; }
8169 cat >conftest.$ac_ext <<_ACEOF
8170 /* confdefs.h. */
8171 _ACEOF
8172 @@ -7444,41 +8091,37 @@ $ac_includes_default
8173 #include <libintl.h>
8174 _ACEOF
8175 rm -f conftest.$ac_objext
8176 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8177 - (eval $ac_compile) 2>conftest.er1
8178 +if { (ac_try="$ac_compile"
8179 +case "(($ac_try" in
8180 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8181 + *) ac_try_echo=$ac_try;;
8182 +esac
8183 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8184 + (eval "$ac_compile") 2>conftest.er1
8185 ac_status=$?
8186 grep -v '^ *+' conftest.er1 >conftest.err
8187 rm -f conftest.er1
8188 cat conftest.err >&5
8189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8190 - (exit $ac_status); } &&
8191 - { ac_try='test -z "$ac_c_werror_flag"
8192 - || test ! -s conftest.err'
8193 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8194 - (eval $ac_try) 2>&5
8195 - ac_status=$?
8196 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
8197 - (exit $ac_status); }; } &&
8198 - { ac_try='test -s conftest.$ac_objext'
8199 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8200 - (eval $ac_try) 2>&5
8201 - ac_status=$?
8202 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
8203 - (exit $ac_status); }; }; then
8204 + (exit $ac_status); } && {
8205 + test -z "$ac_c_werror_flag" ||
8206 + test ! -s conftest.err
8207 + } && test -s conftest.$ac_objext; then
8208 ac_header_compiler=yes
8209 else
8210 echo "$as_me: failed program was:" >&5
8211 sed 's/^/| /' conftest.$ac_ext >&5
8212
8213 -ac_header_compiler=no
8214 + ac_header_compiler=no
8215 fi
8216 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8217 -echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8218 -echo "${ECHO_T}$ac_header_compiler" >&6
8219 +
8220 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8221 +{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8222 +echo "${ECHO_T}$ac_header_compiler" >&6; }
8223
8224 # Is the header present?
8225 -echo "$as_me:$LINENO: checking libintl.h presence" >&5
8226 -echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
8227 +{ echo "$as_me:$LINENO: checking libintl.h presence" >&5
8228 +echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6; }
8229 cat >conftest.$ac_ext <<_ACEOF
8230 /* confdefs.h. */
8231 _ACEOF
8232 @@ -7487,24 +8130,22 @@ cat >>conftest.$ac_ext <<_ACEOF
8233 /* end confdefs.h. */
8234 #include <libintl.h>
8235 _ACEOF
8236 -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8237 - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8238 +if { (ac_try="$ac_cpp conftest.$ac_ext"
8239 +case "(($ac_try" in
8240 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8241 + *) ac_try_echo=$ac_try;;
8242 +esac
8243 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8244 + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8245 ac_status=$?
8246 grep -v '^ *+' conftest.er1 >conftest.err
8247 rm -f conftest.er1
8248 cat conftest.err >&5
8249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8250 - (exit $ac_status); } >/dev/null; then
8251 - if test -s conftest.err; then
8252 - ac_cpp_err=$ac_c_preproc_warn_flag
8253 - ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8254 - else
8255 - ac_cpp_err=
8256 - fi
8257 -else
8258 - ac_cpp_err=yes
8259 -fi
8260 -if test -z "$ac_cpp_err"; then
8261 + (exit $ac_status); } >/dev/null && {
8262 + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8263 + test ! -s conftest.err
8264 + }; then
8265 ac_header_preproc=yes
8266 else
8267 echo "$as_me: failed program was:" >&5
8268 @@ -7512,9 +8153,10 @@ sed 's/^/| /' conftest.$ac_ext >&5
8269
8270 ac_header_preproc=no
8271 fi
8272 +
8273 rm -f conftest.err conftest.$ac_ext
8274 -echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8275 -echo "${ECHO_T}$ac_header_preproc" >&6
8276 +{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8277 +echo "${ECHO_T}$ac_header_preproc" >&6; }
8278
8279 # So? What about this header?
8280 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8281 @@ -7538,30 +8180,23 @@ echo "$as_me: WARNING: libintl.h: se
8282 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
8283 { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
8284 echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
8285 - (
8286 - cat <<\_ASBOX
8287 -## ------------------------------------------ ##
8288 -## Report this to the AC_PACKAGE_NAME lists. ##
8289 -## ------------------------------------------ ##
8290 -_ASBOX
8291 - ) |
8292 - sed "s/^/$as_me: WARNING: /" >&2
8293 +
8294 ;;
8295 esac
8296 -echo "$as_me:$LINENO: checking for libintl.h" >&5
8297 -echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
8298 +{ echo "$as_me:$LINENO: checking for libintl.h" >&5
8299 +echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; }
8300 if test "${ac_cv_header_libintl_h+set}" = set; then
8301 echo $ECHO_N "(cached) $ECHO_C" >&6
8302 else
8303 ac_cv_header_libintl_h=$ac_header_preproc
8304 fi
8305 -echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
8306 -echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
8307 +{ echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
8308 +echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; }
8309
8310 fi
8311 if test $ac_cv_header_libintl_h = yes; then
8312 - echo "$as_me:$LINENO: checking for gettext in libc" >&5
8313 -echo $ECHO_N "checking for gettext in libc... $ECHO_C" >&6
8314 + { echo "$as_me:$LINENO: checking for gettext in libc" >&5
8315 +echo $ECHO_N "checking for gettext in libc... $ECHO_C" >&6; }
8316 if test "${gt_cv_func_gettext_libc+set}" = set; then
8317 echo $ECHO_N "(cached) $ECHO_C" >&6
8318 else
8319 @@ -7581,43 +8216,40 @@ return (int) gettext ("")
8320 }
8321 _ACEOF
8322 rm -f conftest.$ac_objext conftest$ac_exeext
8323 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8324 - (eval $ac_link) 2>conftest.er1
8325 +if { (ac_try="$ac_link"
8326 +case "(($ac_try" in
8327 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8328 + *) ac_try_echo=$ac_try;;
8329 +esac
8330 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8331 + (eval "$ac_link") 2>conftest.er1
8332 ac_status=$?
8333 grep -v '^ *+' conftest.er1 >conftest.err
8334 rm -f conftest.er1
8335 cat conftest.err >&5
8336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8337 - (exit $ac_status); } &&
8338 - { ac_try='test -z "$ac_c_werror_flag"
8339 - || test ! -s conftest.err'
8340 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8341 - (eval $ac_try) 2>&5
8342 - ac_status=$?
8343 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
8344 - (exit $ac_status); }; } &&
8345 - { ac_try='test -s conftest$ac_exeext'
8346 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8347 - (eval $ac_try) 2>&5
8348 - ac_status=$?
8349 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
8350 - (exit $ac_status); }; }; then
8351 + (exit $ac_status); } && {
8352 + test -z "$ac_c_werror_flag" ||
8353 + test ! -s conftest.err
8354 + } && test -s conftest$ac_exeext &&
8355 + $as_test_x conftest$ac_exeext; then
8356 gt_cv_func_gettext_libc=yes
8357 else
8358 echo "$as_me: failed program was:" >&5
8359 sed 's/^/| /' conftest.$ac_ext >&5
8360
8361 -gt_cv_func_gettext_libc=no
8362 + gt_cv_func_gettext_libc=no
8363 fi
8364 -rm -f conftest.err conftest.$ac_objext \
8365 +
8366 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8367 conftest$ac_exeext conftest.$ac_ext
8368 fi
8369 -echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libc" >&5
8370 -echo "${ECHO_T}$gt_cv_func_gettext_libc" >&6
8371 +{ echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libc" >&5
8372 +echo "${ECHO_T}$gt_cv_func_gettext_libc" >&6; }
8373
8374 if test "$gt_cv_func_gettext_libc" != "yes"; then
8375 - echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
8376 -echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6
8377 + { echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
8378 +echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6; }
8379 if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
8380 echo $ECHO_N "(cached) $ECHO_C" >&6
8381 else
8382 @@ -7630,59 +8262,56 @@ cat confdefs.h >>conftest.$ac_ext
8383 cat >>conftest.$ac_ext <<_ACEOF
8384 /* end confdefs.h. */
8385
8386 -/* Override any gcc2 internal prototype to avoid an error. */
8387 +/* Override any GCC internal prototype to avoid an error.
8388 + Use char because int might match the return type of a GCC
8389 + builtin and then its argument prototype would still apply. */
8390 #ifdef __cplusplus
8391 extern "C"
8392 #endif
8393 -/* We use char because int might match the return type of a gcc2
8394 - builtin and then its argument prototype would still apply. */
8395 char bindtextdomain ();
8396 int
8397 main ()
8398 {
8399 -bindtextdomain ();
8400 +return bindtextdomain ();
8401 ;
8402 return 0;
8403 }
8404 _ACEOF
8405 rm -f conftest.$ac_objext conftest$ac_exeext
8406 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8407 - (eval $ac_link) 2>conftest.er1
8408 +if { (ac_try="$ac_link"
8409 +case "(($ac_try" in
8410 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8411 + *) ac_try_echo=$ac_try;;
8412 +esac
8413 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8414 + (eval "$ac_link") 2>conftest.er1
8415 ac_status=$?
8416 grep -v '^ *+' conftest.er1 >conftest.err
8417 rm -f conftest.er1
8418 cat conftest.err >&5
8419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8420 - (exit $ac_status); } &&
8421 - { ac_try='test -z "$ac_c_werror_flag"
8422 - || test ! -s conftest.err'
8423 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8424 - (eval $ac_try) 2>&5
8425 - ac_status=$?
8426 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
8427 - (exit $ac_status); }; } &&
8428 - { ac_try='test -s conftest$ac_exeext'
8429 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8430 - (eval $ac_try) 2>&5
8431 - ac_status=$?
8432 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
8433 - (exit $ac_status); }; }; then
8434 + (exit $ac_status); } && {
8435 + test -z "$ac_c_werror_flag" ||
8436 + test ! -s conftest.err
8437 + } && test -s conftest$ac_exeext &&
8438 + $as_test_x conftest$ac_exeext; then
8439 ac_cv_lib_intl_bindtextdomain=yes
8440 else
8441 echo "$as_me: failed program was:" >&5
8442 sed 's/^/| /' conftest.$ac_ext >&5
8443
8444 -ac_cv_lib_intl_bindtextdomain=no
8445 + ac_cv_lib_intl_bindtextdomain=no
8446 fi
8447 -rm -f conftest.err conftest.$ac_objext \
8448 +
8449 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8450 conftest$ac_exeext conftest.$ac_ext
8451 LIBS=$ac_check_lib_save_LIBS
8452 fi
8453 -echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
8454 -echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6
8455 +{ echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
8456 +echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6; }
8457 if test $ac_cv_lib_intl_bindtextdomain = yes; then
8458 - echo "$as_me:$LINENO: checking for gettext in libintl" >&5
8459 -echo $ECHO_N "checking for gettext in libintl... $ECHO_C" >&6
8460 + { echo "$as_me:$LINENO: checking for gettext in libintl" >&5
8461 +echo $ECHO_N "checking for gettext in libintl... $ECHO_C" >&6; }
8462 if test "${gt_cv_func_gettext_libintl+set}" = set; then
8463 echo $ECHO_N "(cached) $ECHO_C" >&6
8464 else
8465 @@ -7702,39 +8331,36 @@ return (int) gettext ("")
8466 }
8467 _ACEOF
8468 rm -f conftest.$ac_objext conftest$ac_exeext
8469 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8470 - (eval $ac_link) 2>conftest.er1
8471 +if { (ac_try="$ac_link"
8472 +case "(($ac_try" in
8473 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8474 + *) ac_try_echo=$ac_try;;
8475 +esac
8476 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8477 + (eval "$ac_link") 2>conftest.er1
8478 ac_status=$?
8479 grep -v '^ *+' conftest.er1 >conftest.err
8480 rm -f conftest.er1
8481 cat conftest.err >&5
8482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8483 - (exit $ac_status); } &&
8484 - { ac_try='test -z "$ac_c_werror_flag"
8485 - || test ! -s conftest.err'
8486 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8487 - (eval $ac_try) 2>&5
8488 - ac_status=$?
8489 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
8490 - (exit $ac_status); }; } &&
8491 - { ac_try='test -s conftest$ac_exeext'
8492 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8493 - (eval $ac_try) 2>&5
8494 - ac_status=$?
8495 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
8496 - (exit $ac_status); }; }; then
8497 + (exit $ac_status); } && {
8498 + test -z "$ac_c_werror_flag" ||
8499 + test ! -s conftest.err
8500 + } && test -s conftest$ac_exeext &&
8501 + $as_test_x conftest$ac_exeext; then
8502 gt_cv_func_gettext_libintl=yes
8503 else
8504 echo "$as_me: failed program was:" >&5
8505 sed 's/^/| /' conftest.$ac_ext >&5
8506
8507 -gt_cv_func_gettext_libintl=no
8508 + gt_cv_func_gettext_libintl=no
8509 fi
8510 -rm -f conftest.err conftest.$ac_objext \
8511 +
8512 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8513 conftest$ac_exeext conftest.$ac_ext
8514 fi
8515 -echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libintl" >&5
8516 -echo "${ECHO_T}$gt_cv_func_gettext_libintl" >&6
8517 +{ echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libintl" >&5
8518 +echo "${ECHO_T}$gt_cv_func_gettext_libintl" >&6; }
8519 fi
8520
8521 fi
8522 @@ -7748,8 +8374,8 @@ _ACEOF
8523
8524 # Extract the first word of "msgfmt", so it can be a program name with args.
8525 set dummy msgfmt; ac_word=$2
8526 -echo "$as_me:$LINENO: checking for $ac_word" >&5
8527 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8528 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8529 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8530 if test "${ac_cv_path_MSGFMT+set}" = set; then
8531 echo $ECHO_N "(cached) $ECHO_C" >&6
8532 else
8533 @@ -7775,20 +8401,20 @@ esac
8534 fi
8535 MSGFMT="$ac_cv_path_MSGFMT"
8536 if test -n "$MSGFMT"; then
8537 - echo "$as_me:$LINENO: result: $MSGFMT" >&5
8538 -echo "${ECHO_T}$MSGFMT" >&6
8539 + { echo "$as_me:$LINENO: result: $MSGFMT" >&5
8540 +echo "${ECHO_T}$MSGFMT" >&6; }
8541 else
8542 - echo "$as_me:$LINENO: result: no" >&5
8543 -echo "${ECHO_T}no" >&6
8544 + { echo "$as_me:$LINENO: result: no" >&5
8545 +echo "${ECHO_T}no" >&6; }
8546 fi
8547 if test "$MSGFMT" != "no"; then
8548
8549 for ac_func in dcgettext
8550 do
8551 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8552 -echo "$as_me:$LINENO: checking for $ac_func" >&5
8553 -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8554 -if eval "test \"\${$as_ac_var+set}\" = set"; then
8555 +{ echo "$as_me:$LINENO: checking for $ac_func" >&5
8556 +echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8557 +if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8558 echo $ECHO_N "(cached) $ECHO_C" >&6
8559 else
8560 cat >conftest.$ac_ext <<_ACEOF
8561 @@ -7814,68 +8440,60 @@ cat >>conftest.$ac_ext <<_ACEOF
8562
8563 #undef $ac_func
8564
8565 -/* Override any gcc2 internal prototype to avoid an error. */
8566 +/* Override any GCC internal prototype to avoid an error.
8567 + Use char because int might match the return type of a GCC
8568 + builtin and then its argument prototype would still apply. */
8569 #ifdef __cplusplus
8570 extern "C"
8571 -{
8572 #endif
8573 -/* We use char because int might match the return type of a gcc2
8574 - builtin and then its argument prototype would still apply. */
8575 char $ac_func ();
8576 /* The GNU C library defines this for functions which it implements
8577 to always fail with ENOSYS. Some functions are actually named
8578 something starting with __ and the normal name is an alias. */
8579 -#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8580 +#if defined __stub_$ac_func || defined __stub___$ac_func
8581 choke me
8582 -#else
8583 -char (*f) () = $ac_func;
8584 -#endif
8585 -#ifdef __cplusplus
8586 -}
8587 #endif
8588
8589 int
8590 main ()
8591 {
8592 -return f != $ac_func;
8593 +return $ac_func ();
8594 ;
8595 return 0;
8596 }
8597 _ACEOF
8598 rm -f conftest.$ac_objext conftest$ac_exeext
8599 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8600 - (eval $ac_link) 2>conftest.er1
8601 +if { (ac_try="$ac_link"
8602 +case "(($ac_try" in
8603 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8604 + *) ac_try_echo=$ac_try;;
8605 +esac
8606 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8607 + (eval "$ac_link") 2>conftest.er1
8608 ac_status=$?
8609 grep -v '^ *+' conftest.er1 >conftest.err
8610 rm -f conftest.er1
8611 cat conftest.err >&5
8612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8613 - (exit $ac_status); } &&
8614 - { ac_try='test -z "$ac_c_werror_flag"
8615 - || test ! -s conftest.err'
8616 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8617 - (eval $ac_try) 2>&5
8618 - ac_status=$?
8619 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
8620 - (exit $ac_status); }; } &&
8621 - { ac_try='test -s conftest$ac_exeext'
8622 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8623 - (eval $ac_try) 2>&5
8624 - ac_status=$?
8625 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
8626 - (exit $ac_status); }; }; then
8627 + (exit $ac_status); } && {
8628 + test -z "$ac_c_werror_flag" ||
8629 + test ! -s conftest.err
8630 + } && test -s conftest$ac_exeext &&
8631 + $as_test_x conftest$ac_exeext; then
8632 eval "$as_ac_var=yes"
8633 else
8634 echo "$as_me: failed program was:" >&5
8635 sed 's/^/| /' conftest.$ac_ext >&5
8636
8637 -eval "$as_ac_var=no"
8638 + eval "$as_ac_var=no"
8639 fi
8640 -rm -f conftest.err conftest.$ac_objext \
8641 +
8642 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8643 conftest$ac_exeext conftest.$ac_ext
8644 fi
8645 -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8646 -echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8647 +ac_res=`eval echo '${'$as_ac_var'}'`
8648 + { echo "$as_me:$LINENO: result: $ac_res" >&5
8649 +echo "${ECHO_T}$ac_res" >&6; }
8650 if test `eval echo '${'$as_ac_var'}'` = yes; then
8651 cat >>confdefs.h <<_ACEOF
8652 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8653 @@ -7886,8 +8504,8 @@ done
8654
8655 # Extract the first word of "gmsgfmt", so it can be a program name with args.
8656 set dummy gmsgfmt; ac_word=$2
8657 -echo "$as_me:$LINENO: checking for $ac_word" >&5
8658 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8659 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8660 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8661 if test "${ac_cv_path_GMSGFMT+set}" = set; then
8662 echo $ECHO_N "(cached) $ECHO_C" >&6
8663 else
8664 @@ -7902,32 +8520,33 @@ do
8665 IFS=$as_save_IFS
8666 test -z "$as_dir" && as_dir=.
8667 for ac_exec_ext in '' $ac_executable_extensions; do
8668 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8669 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8670 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
8671 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8672 break 2
8673 fi
8674 done
8675 done
8676 +IFS=$as_save_IFS
8677
8678 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
8679 ;;
8680 esac
8681 fi
8682 GMSGFMT=$ac_cv_path_GMSGFMT
8683 -
8684 if test -n "$GMSGFMT"; then
8685 - echo "$as_me:$LINENO: result: $GMSGFMT" >&5
8686 -echo "${ECHO_T}$GMSGFMT" >&6
8687 + { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
8688 +echo "${ECHO_T}$GMSGFMT" >&6; }
8689 else
8690 - echo "$as_me:$LINENO: result: no" >&5
8691 -echo "${ECHO_T}no" >&6
8692 + { echo "$as_me:$LINENO: result: no" >&5
8693 +echo "${ECHO_T}no" >&6; }
8694 fi
8695
8696 +
8697 # Extract the first word of "xgettext", so it can be a program name with args.
8698 set dummy xgettext; ac_word=$2
8699 -echo "$as_me:$LINENO: checking for $ac_word" >&5
8700 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8701 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8702 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8703 if test "${ac_cv_path_XGETTEXT+set}" = set; then
8704 echo $ECHO_N "(cached) $ECHO_C" >&6
8705 else
8706 @@ -7953,11 +8572,11 @@ esac
8707 fi
8708 XGETTEXT="$ac_cv_path_XGETTEXT"
8709 if test -n "$XGETTEXT"; then
8710 - echo "$as_me:$LINENO: result: $XGETTEXT" >&5
8711 -echo "${ECHO_T}$XGETTEXT" >&6
8712 + { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
8713 +echo "${ECHO_T}$XGETTEXT" >&6; }
8714 else
8715 - echo "$as_me:$LINENO: result: no" >&5
8716 -echo "${ECHO_T}no" >&6
8717 + { echo "$as_me:$LINENO: result: no" >&5
8718 +echo "${ECHO_T}no" >&6; }
8719 fi
8720
8721 cat >conftest.$ac_ext <<_ACEOF
8722 @@ -7977,37 +8596,34 @@ extern int _nl_msg_cat_cntr;
8723 }
8724 _ACEOF
8725 rm -f conftest.$ac_objext conftest$ac_exeext
8726 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8727 - (eval $ac_link) 2>conftest.er1
8728 +if { (ac_try="$ac_link"
8729 +case "(($ac_try" in
8730 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8731 + *) ac_try_echo=$ac_try;;
8732 +esac
8733 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8734 + (eval "$ac_link") 2>conftest.er1
8735 ac_status=$?
8736 grep -v '^ *+' conftest.er1 >conftest.err
8737 rm -f conftest.er1
8738 cat conftest.err >&5
8739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8740 - (exit $ac_status); } &&
8741 - { ac_try='test -z "$ac_c_werror_flag"
8742 - || test ! -s conftest.err'
8743 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8744 - (eval $ac_try) 2>&5
8745 - ac_status=$?
8746 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
8747 - (exit $ac_status); }; } &&
8748 - { ac_try='test -s conftest$ac_exeext'
8749 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8750 - (eval $ac_try) 2>&5
8751 - ac_status=$?
8752 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
8753 - (exit $ac_status); }; }; then
8754 + (exit $ac_status); } && {
8755 + test -z "$ac_c_werror_flag" ||
8756 + test ! -s conftest.err
8757 + } && test -s conftest$ac_exeext &&
8758 + $as_test_x conftest$ac_exeext; then
8759 CATOBJEXT=.gmo
8760 DATADIRNAME=share
8761 else
8762 echo "$as_me: failed program was:" >&5
8763 sed 's/^/| /' conftest.$ac_ext >&5
8764
8765 -CATOBJEXT=.mo
8766 + CATOBJEXT=.mo
8767 DATADIRNAME=lib
8768 fi
8769 -rm -f conftest.err conftest.$ac_objext \
8770 +
8771 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8772 conftest$ac_exeext conftest.$ac_ext
8773 INSTOBJEXT=.mo
8774 fi
8775 @@ -8029,8 +8645,8 @@ fi
8776 INTLOBJS="\$(GETTOBJS)"
8777 # Extract the first word of "msgfmt", so it can be a program name with args.
8778 set dummy msgfmt; ac_word=$2
8779 -echo "$as_me:$LINENO: checking for $ac_word" >&5
8780 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8781 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8782 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8783 if test "${ac_cv_path_MSGFMT+set}" = set; then
8784 echo $ECHO_N "(cached) $ECHO_C" >&6
8785 else
8786 @@ -8056,17 +8672,17 @@ esac
8787 fi
8788 MSGFMT="$ac_cv_path_MSGFMT"
8789 if test -n "$MSGFMT"; then
8790 - echo "$as_me:$LINENO: result: $MSGFMT" >&5
8791 -echo "${ECHO_T}$MSGFMT" >&6
8792 + { echo "$as_me:$LINENO: result: $MSGFMT" >&5
8793 +echo "${ECHO_T}$MSGFMT" >&6; }
8794 else
8795 - echo "$as_me:$LINENO: result: no" >&5
8796 -echo "${ECHO_T}no" >&6
8797 + { echo "$as_me:$LINENO: result: no" >&5
8798 +echo "${ECHO_T}no" >&6; }
8799 fi
8800
8801 # Extract the first word of "gmsgfmt", so it can be a program name with args.
8802 set dummy gmsgfmt; ac_word=$2
8803 -echo "$as_me:$LINENO: checking for $ac_word" >&5
8804 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8805 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8806 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8807 if test "${ac_cv_path_GMSGFMT+set}" = set; then
8808 echo $ECHO_N "(cached) $ECHO_C" >&6
8809 else
8810 @@ -8081,32 +8697,33 @@ do
8811 IFS=$as_save_IFS
8812 test -z "$as_dir" && as_dir=.
8813 for ac_exec_ext in '' $ac_executable_extensions; do
8814 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8815 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8816 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
8817 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8818 break 2
8819 fi
8820 done
8821 done
8822 +IFS=$as_save_IFS
8823
8824 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
8825 ;;
8826 esac
8827 fi
8828 GMSGFMT=$ac_cv_path_GMSGFMT
8829 -
8830 if test -n "$GMSGFMT"; then
8831 - echo "$as_me:$LINENO: result: $GMSGFMT" >&5
8832 -echo "${ECHO_T}$GMSGFMT" >&6
8833 + { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
8834 +echo "${ECHO_T}$GMSGFMT" >&6; }
8835 else
8836 - echo "$as_me:$LINENO: result: no" >&5
8837 -echo "${ECHO_T}no" >&6
8838 + { echo "$as_me:$LINENO: result: no" >&5
8839 +echo "${ECHO_T}no" >&6; }
8840 fi
8841
8842 +
8843 # Extract the first word of "xgettext", so it can be a program name with args.
8844 set dummy xgettext; ac_word=$2
8845 -echo "$as_me:$LINENO: checking for $ac_word" >&5
8846 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8847 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8848 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8849 if test "${ac_cv_path_XGETTEXT+set}" = set; then
8850 echo $ECHO_N "(cached) $ECHO_C" >&6
8851 else
8852 @@ -8132,11 +8749,11 @@ esac
8853 fi
8854 XGETTEXT="$ac_cv_path_XGETTEXT"
8855 if test -n "$XGETTEXT"; then
8856 - echo "$as_me:$LINENO: result: $XGETTEXT" >&5
8857 -echo "${ECHO_T}$XGETTEXT" >&6
8858 + { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
8859 +echo "${ECHO_T}$XGETTEXT" >&6; }
8860 else
8861 - echo "$as_me:$LINENO: result: no" >&5
8862 -echo "${ECHO_T}no" >&6
8863 + { echo "$as_me:$LINENO: result: no" >&5
8864 +echo "${ECHO_T}no" >&6; }
8865 fi
8866
8867
8868 @@ -8155,8 +8772,8 @@ fi
8869 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
8870 : ;
8871 else
8872 - echo "$as_me:$LINENO: result: found xgettext programs is not GNU xgettext; ignore it" >&5
8873 -echo "${ECHO_T}found xgettext programs is not GNU xgettext; ignore it" >&6
8874 + { echo "$as_me:$LINENO: result: found xgettext programs is not GNU xgettext; ignore it" >&5
8875 +echo "${ECHO_T}found xgettext programs is not GNU xgettext; ignore it" >&6; }
8876 XGETTEXT=":"
8877 fi
8878 fi
8879 @@ -8205,8 +8822,8 @@ _ACEOF
8880 if test "x$ALL_LINGUAS" = "x"; then
8881 LINGUAS=
8882 else
8883 - echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
8884 -echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
8885 + { echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
8886 +echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6; }
8887 NEW_LINGUAS=
8888 for lang in ${LINGUAS=$ALL_LINGUAS}; do
8889 case "$ALL_LINGUAS" in
8890 @@ -8214,8 +8831,8 @@ echo $ECHO_N "checking for catalogs to b
8891 esac
8892 done
8893 LINGUAS=$NEW_LINGUAS
8894 - echo "$as_me:$LINENO: result: $LINGUAS" >&5
8895 -echo "${ECHO_T}$LINGUAS" >&6
8896 + { echo "$as_me:$LINENO: result: $LINGUAS" >&5
8897 +echo "${ECHO_T}$LINGUAS" >&6; }
8898 fi
8899
8900 if test -n "$LINGUAS"; then
8901 @@ -8234,17 +8851,17 @@ echo "${ECHO_T}$LINGUAS" >&6
8902 if test -f $srcdir/po2tbl.sed.in; then
8903 if test "$CATOBJEXT" = ".cat"; then
8904 if test "${ac_cv_header_linux_version_h+set}" = set; then
8905 - echo "$as_me:$LINENO: checking for linux/version.h" >&5
8906 -echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
8907 + { echo "$as_me:$LINENO: checking for linux/version.h" >&5
8908 +echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6; }
8909 if test "${ac_cv_header_linux_version_h+set}" = set; then
8910 echo $ECHO_N "(cached) $ECHO_C" >&6
8911 fi
8912 -echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
8913 -echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
8914 +{ echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
8915 +echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6; }
8916 else
8917 # Is the header compilable?
8918 -echo "$as_me:$LINENO: checking linux/version.h usability" >&5
8919 -echo $ECHO_N "checking linux/version.h usability... $ECHO_C" >&6
8920 +{ echo "$as_me:$LINENO: checking linux/version.h usability" >&5
8921 +echo $ECHO_N "checking linux/version.h usability... $ECHO_C" >&6; }
8922 cat >conftest.$ac_ext <<_ACEOF
8923 /* confdefs.h. */
8924 _ACEOF
8925 @@ -8255,41 +8872,37 @@ $ac_includes_default
8926 #include <linux/version.h>
8927 _ACEOF
8928 rm -f conftest.$ac_objext
8929 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8930 - (eval $ac_compile) 2>conftest.er1
8931 +if { (ac_try="$ac_compile"
8932 +case "(($ac_try" in
8933 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8934 + *) ac_try_echo=$ac_try;;
8935 +esac
8936 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8937 + (eval "$ac_compile") 2>conftest.er1
8938 ac_status=$?
8939 grep -v '^ *+' conftest.er1 >conftest.err
8940 rm -f conftest.er1
8941 cat conftest.err >&5
8942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8943 - (exit $ac_status); } &&
8944 - { ac_try='test -z "$ac_c_werror_flag"
8945 - || test ! -s conftest.err'
8946 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8947 - (eval $ac_try) 2>&5
8948 - ac_status=$?
8949 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
8950 - (exit $ac_status); }; } &&
8951 - { ac_try='test -s conftest.$ac_objext'
8952 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8953 - (eval $ac_try) 2>&5
8954 - ac_status=$?
8955 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
8956 - (exit $ac_status); }; }; then
8957 + (exit $ac_status); } && {
8958 + test -z "$ac_c_werror_flag" ||
8959 + test ! -s conftest.err
8960 + } && test -s conftest.$ac_objext; then
8961 ac_header_compiler=yes
8962 else
8963 echo "$as_me: failed program was:" >&5
8964 sed 's/^/| /' conftest.$ac_ext >&5
8965
8966 -ac_header_compiler=no
8967 + ac_header_compiler=no
8968 fi
8969 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8970 -echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8971 -echo "${ECHO_T}$ac_header_compiler" >&6
8972 +
8973 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8974 +{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8975 +echo "${ECHO_T}$ac_header_compiler" >&6; }
8976
8977 # Is the header present?
8978 -echo "$as_me:$LINENO: checking linux/version.h presence" >&5
8979 -echo $ECHO_N "checking linux/version.h presence... $ECHO_C" >&6
8980 +{ echo "$as_me:$LINENO: checking linux/version.h presence" >&5
8981 +echo $ECHO_N "checking linux/version.h presence... $ECHO_C" >&6; }
8982 cat >conftest.$ac_ext <<_ACEOF
8983 /* confdefs.h. */
8984 _ACEOF
8985 @@ -8298,24 +8911,22 @@ cat >>conftest.$ac_ext <<_ACEOF
8986 /* end confdefs.h. */
8987 #include <linux/version.h>
8988 _ACEOF
8989 -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8990 - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8991 +if { (ac_try="$ac_cpp conftest.$ac_ext"
8992 +case "(($ac_try" in
8993 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8994 + *) ac_try_echo=$ac_try;;
8995 +esac
8996 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8997 + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8998 ac_status=$?
8999 grep -v '^ *+' conftest.er1 >conftest.err
9000 rm -f conftest.er1
9001 cat conftest.err >&5
9002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9003 - (exit $ac_status); } >/dev/null; then
9004 - if test -s conftest.err; then
9005 - ac_cpp_err=$ac_c_preproc_warn_flag
9006 - ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9007 - else
9008 - ac_cpp_err=
9009 - fi
9010 -else
9011 - ac_cpp_err=yes
9012 -fi
9013 -if test -z "$ac_cpp_err"; then
9014 + (exit $ac_status); } >/dev/null && {
9015 + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9016 + test ! -s conftest.err
9017 + }; then
9018 ac_header_preproc=yes
9019 else
9020 echo "$as_me: failed program was:" >&5
9021 @@ -8323,9 +8934,10 @@ sed 's/^/| /' conftest.$ac_ext >&5
9022
9023 ac_header_preproc=no
9024 fi
9025 +
9026 rm -f conftest.err conftest.$ac_ext
9027 -echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9028 -echo "${ECHO_T}$ac_header_preproc" >&6
9029 +{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9030 +echo "${ECHO_T}$ac_header_preproc" >&6; }
9031
9032 # So? What about this header?
9033 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9034 @@ -8349,25 +8961,18 @@ echo "$as_me: WARNING: linux/version.h:
9035 echo "$as_me: WARNING: linux/version.h: proceeding with the preprocessor's result" >&2;}
9036 { echo "$as_me:$LINENO: WARNING: linux/version.h: in the future, the compiler will take precedence" >&5
9037 echo "$as_me: WARNING: linux/version.h: in the future, the compiler will take precedence" >&2;}
9038 - (
9039 - cat <<\_ASBOX
9040 -## ------------------------------------------ ##
9041 -## Report this to the AC_PACKAGE_NAME lists. ##
9042 -## ------------------------------------------ ##
9043 -_ASBOX
9044 - ) |
9045 - sed "s/^/$as_me: WARNING: /" >&2
9046 +
9047 ;;
9048 esac
9049 -echo "$as_me:$LINENO: checking for linux/version.h" >&5
9050 -echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
9051 +{ echo "$as_me:$LINENO: checking for linux/version.h" >&5
9052 +echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6; }
9053 if test "${ac_cv_header_linux_version_h+set}" = set; then
9054 echo $ECHO_N "(cached) $ECHO_C" >&6
9055 else
9056 ac_cv_header_linux_version_h=$ac_header_preproc
9057 fi
9058 -echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
9059 -echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
9060 +{ echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
9061 +echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6; }
9062
9063 fi
9064 if test $ac_cv_header_linux_version_h = yes; then
9065 @@ -8434,8 +9039,8 @@ fi
9066 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
9067 # OS/2's system install, which has a completely different semantic
9068 # ./install, which can be erroneously created by make from ./install.sh.
9069 -echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
9070 -echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
9071 +{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
9072 +echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
9073 if test -z "$INSTALL"; then
9074 if test "${ac_cv_path_install+set}" = set; then
9075 echo $ECHO_N "(cached) $ECHO_C" >&6
9076 @@ -8457,7 +9062,7 @@ case $as_dir/ in
9077 # by default.
9078 for ac_prog in ginstall scoinst install; do
9079 for ac_exec_ext in '' $ac_executable_extensions; do
9080 - if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
9081 + if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
9082 if test $ac_prog = install &&
9083 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
9084 # AIX install. It has an incompatible calling convention.
9085 @@ -8476,21 +9081,22 @@ case $as_dir/ in
9086 ;;
9087 esac
9088 done
9089 +IFS=$as_save_IFS
9090
9091
9092 fi
9093 if test "${ac_cv_path_install+set}" = set; then
9094 INSTALL=$ac_cv_path_install
9095 else
9096 - # As a last resort, use the slow shell script. We don't cache a
9097 - # path for INSTALL within a source directory, because that will
9098 + # As a last resort, use the slow shell script. Don't cache a
9099 + # value for INSTALL within a source directory, because that will
9100 # break other packages using the cache if that directory is
9101 - # removed, or if the path is relative.
9102 + # removed, or if the value is a relative name.
9103 INSTALL=$ac_install_sh
9104 fi
9105 fi
9106 -echo "$as_me:$LINENO: result: $INSTALL" >&5
9107 -echo "${ECHO_T}$INSTALL" >&6
9108 +{ echo "$as_me:$LINENO: result: $INSTALL" >&5
9109 +echo "${ECHO_T}$INSTALL" >&6; }
9110
9111 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
9112 # It thinks the first close brace ends the variable substitution.
9113 @@ -8507,8 +9113,8 @@ BFD_HOST_64_BIT_DEFINED=0
9114 BFD_HOST_64_BIT=
9115 BFD_HOST_U_64_BIT=
9116
9117 -echo "$as_me:$LINENO: checking for long long" >&5
9118 -echo $ECHO_N "checking for long long... $ECHO_C" >&6
9119 +{ echo "$as_me:$LINENO: checking for long long" >&5
9120 +echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
9121 if test "${bfd_cv_has_long_long+set}" = set; then
9122 echo $ECHO_N "(cached) $ECHO_C" >&6
9123 else
9124 @@ -8528,43 +9134,39 @@ unsigned long long ll = 1844674407370955
9125 }
9126 _ACEOF
9127 rm -f conftest.$ac_objext
9128 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9129 - (eval $ac_compile) 2>conftest.er1
9130 +if { (ac_try="$ac_compile"
9131 +case "(($ac_try" in
9132 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9133 + *) ac_try_echo=$ac_try;;
9134 +esac
9135 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9136 + (eval "$ac_compile") 2>conftest.er1
9137 ac_status=$?
9138 grep -v '^ *+' conftest.er1 >conftest.err
9139 rm -f conftest.er1
9140 cat conftest.err >&5
9141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9142 - (exit $ac_status); } &&
9143 - { ac_try='test -z "$ac_c_werror_flag"
9144 - || test ! -s conftest.err'
9145 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9146 - (eval $ac_try) 2>&5
9147 - ac_status=$?
9148 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
9149 - (exit $ac_status); }; } &&
9150 - { ac_try='test -s conftest.$ac_objext'
9151 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9152 - (eval $ac_try) 2>&5
9153 - ac_status=$?
9154 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
9155 - (exit $ac_status); }; }; then
9156 + (exit $ac_status); } && {
9157 + test -z "$ac_c_werror_flag" ||
9158 + test ! -s conftest.err
9159 + } && test -s conftest.$ac_objext; then
9160 bfd_cv_has_long_long=yes
9161 else
9162 echo "$as_me: failed program was:" >&5
9163 sed 's/^/| /' conftest.$ac_ext >&5
9164
9165 -bfd_cv_has_long_long=no
9166 + bfd_cv_has_long_long=no
9167 fi
9168 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9169 +
9170 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9171 fi
9172
9173 -echo "$as_me:$LINENO: result: $bfd_cv_has_long_long" >&5
9174 -echo "${ECHO_T}$bfd_cv_has_long_long" >&6
9175 +{ echo "$as_me:$LINENO: result: $bfd_cv_has_long_long" >&5
9176 +echo "${ECHO_T}$bfd_cv_has_long_long" >&6; }
9177 if test $bfd_cv_has_long_long = yes; then
9178 BFD_HOST_LONG_LONG=1
9179 - echo "$as_me:$LINENO: checking for long long" >&5
9180 -echo $ECHO_N "checking for long long... $ECHO_C" >&6
9181 + { echo "$as_me:$LINENO: checking for long long" >&5
9182 +echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
9183 if test "${ac_cv_type_long_long+set}" = set; then
9184 echo $ECHO_N "(cached) $ECHO_C" >&6
9185 else
9186 @@ -8575,61 +9177,57 @@ cat confdefs.h >>conftest.$ac_ext
9187 cat >>conftest.$ac_ext <<_ACEOF
9188 /* end confdefs.h. */
9189 $ac_includes_default
9190 +typedef long long ac__type_new_;
9191 int
9192 main ()
9193 {
9194 -if ((long long *) 0)
9195 +if ((ac__type_new_ *) 0)
9196 return 0;
9197 -if (sizeof (long long))
9198 +if (sizeof (ac__type_new_))
9199 return 0;
9200 ;
9201 return 0;
9202 }
9203 _ACEOF
9204 rm -f conftest.$ac_objext
9205 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9206 - (eval $ac_compile) 2>conftest.er1
9207 +if { (ac_try="$ac_compile"
9208 +case "(($ac_try" in
9209 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9210 + *) ac_try_echo=$ac_try;;
9211 +esac
9212 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9213 + (eval "$ac_compile") 2>conftest.er1
9214 ac_status=$?
9215 grep -v '^ *+' conftest.er1 >conftest.err
9216 rm -f conftest.er1
9217 cat conftest.err >&5
9218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9219 - (exit $ac_status); } &&
9220 - { ac_try='test -z "$ac_c_werror_flag"
9221 - || test ! -s conftest.err'
9222 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9223 - (eval $ac_try) 2>&5
9224 - ac_status=$?
9225 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
9226 - (exit $ac_status); }; } &&
9227 - { ac_try='test -s conftest.$ac_objext'
9228 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9229 - (eval $ac_try) 2>&5
9230 - ac_status=$?
9231 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
9232 - (exit $ac_status); }; }; then
9233 + (exit $ac_status); } && {
9234 + test -z "$ac_c_werror_flag" ||
9235 + test ! -s conftest.err
9236 + } && test -s conftest.$ac_objext; then
9237 ac_cv_type_long_long=yes
9238 else
9239 echo "$as_me: failed program was:" >&5
9240 sed 's/^/| /' conftest.$ac_ext >&5
9241
9242 -ac_cv_type_long_long=no
9243 + ac_cv_type_long_long=no
9244 fi
9245 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9246 +
9247 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9248 fi
9249 -echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
9250 -echo "${ECHO_T}$ac_cv_type_long_long" >&6
9251 +{ echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
9252 +echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
9253
9254 -echo "$as_me:$LINENO: checking size of long long" >&5
9255 -echo $ECHO_N "checking size of long long... $ECHO_C" >&6
9256 +# The cast to long int works around a bug in the HP C Compiler
9257 +# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9258 +# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9259 +# This bug is HP SR number 8606223364.
9260 +{ echo "$as_me:$LINENO: checking size of long long" >&5
9261 +echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
9262 if test "${ac_cv_sizeof_long_long+set}" = set; then
9263 echo $ECHO_N "(cached) $ECHO_C" >&6
9264 else
9265 - if test "$ac_cv_type_long_long" = yes; then
9266 - # The cast to unsigned long works around a bug in the HP C Compiler
9267 - # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9268 - # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9269 - # This bug is HP SR number 8606223364.
9270 if test "$cross_compiling" = yes; then
9271 # Depending upon the size, compute the lo and hi bounds.
9272 cat >conftest.$ac_ext <<_ACEOF
9273 @@ -8639,10 +9237,11 @@ cat confdefs.h >>conftest.$ac_ext
9274 cat >>conftest.$ac_ext <<_ACEOF
9275 /* end confdefs.h. */
9276 $ac_includes_default
9277 + typedef long long ac__type_sizeof_;
9278 int
9279 main ()
9280 {
9281 -static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
9282 +static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
9283 test_array [0] = 0
9284
9285 ;
9286 @@ -8650,27 +9249,22 @@ test_array [0] = 0
9287 }
9288 _ACEOF
9289 rm -f conftest.$ac_objext
9290 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9291 - (eval $ac_compile) 2>conftest.er1
9292 +if { (ac_try="$ac_compile"
9293 +case "(($ac_try" in
9294 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9295 + *) ac_try_echo=$ac_try;;
9296 +esac
9297 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9298 + (eval "$ac_compile") 2>conftest.er1
9299 ac_status=$?
9300 grep -v '^ *+' conftest.er1 >conftest.err
9301 rm -f conftest.er1
9302 cat conftest.err >&5
9303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9304 - (exit $ac_status); } &&
9305 - { ac_try='test -z "$ac_c_werror_flag"
9306 - || test ! -s conftest.err'
9307 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9308 - (eval $ac_try) 2>&5
9309 - ac_status=$?
9310 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
9311 - (exit $ac_status); }; } &&
9312 - { ac_try='test -s conftest.$ac_objext'
9313 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9314 - (eval $ac_try) 2>&5
9315 - ac_status=$?
9316 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
9317 - (exit $ac_status); }; }; then
9318 + (exit $ac_status); } && {
9319 + test -z "$ac_c_werror_flag" ||
9320 + test ! -s conftest.err
9321 + } && test -s conftest.$ac_objext; then
9322 ac_lo=0 ac_mid=0
9323 while :; do
9324 cat >conftest.$ac_ext <<_ACEOF
9325 @@ -8680,10 +9274,11 @@ cat confdefs.h >>conftest.$ac_ext
9326 cat >>conftest.$ac_ext <<_ACEOF
9327 /* end confdefs.h. */
9328 $ac_includes_default
9329 + typedef long long ac__type_sizeof_;
9330 int
9331 main ()
9332 {
9333 -static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
9334 +static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9335 test_array [0] = 0
9336
9337 ;
9338 @@ -8691,56 +9286,53 @@ test_array [0] = 0
9339 }
9340 _ACEOF
9341 rm -f conftest.$ac_objext
9342 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9343 - (eval $ac_compile) 2>conftest.er1
9344 +if { (ac_try="$ac_compile"
9345 +case "(($ac_try" in
9346 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9347 + *) ac_try_echo=$ac_try;;
9348 +esac
9349 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9350 + (eval "$ac_compile") 2>conftest.er1
9351 ac_status=$?
9352 grep -v '^ *+' conftest.er1 >conftest.err
9353 rm -f conftest.er1
9354 cat conftest.err >&5
9355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9356 - (exit $ac_status); } &&
9357 - { ac_try='test -z "$ac_c_werror_flag"
9358 - || test ! -s conftest.err'
9359 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9360 - (eval $ac_try) 2>&5
9361 - ac_status=$?
9362 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
9363 - (exit $ac_status); }; } &&
9364 - { ac_try='test -s conftest.$ac_objext'
9365 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9366 - (eval $ac_try) 2>&5
9367 - ac_status=$?
9368 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
9369 - (exit $ac_status); }; }; then
9370 + (exit $ac_status); } && {
9371 + test -z "$ac_c_werror_flag" ||
9372 + test ! -s conftest.err
9373 + } && test -s conftest.$ac_objext; then
9374 ac_hi=$ac_mid; break
9375 else
9376 echo "$as_me: failed program was:" >&5
9377 sed 's/^/| /' conftest.$ac_ext >&5
9378
9379 -ac_lo=`expr $ac_mid + 1`
9380 - if test $ac_lo -le $ac_mid; then
9381 - ac_lo= ac_hi=
9382 - break
9383 - fi
9384 - ac_mid=`expr 2 '*' $ac_mid + 1`
9385 + ac_lo=`expr $ac_mid + 1`
9386 + if test $ac_lo -le $ac_mid; then
9387 + ac_lo= ac_hi=
9388 + break
9389 + fi
9390 + ac_mid=`expr 2 '*' $ac_mid + 1`
9391 fi
9392 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9393 +
9394 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9395 done
9396 else
9397 echo "$as_me: failed program was:" >&5
9398 sed 's/^/| /' conftest.$ac_ext >&5
9399
9400 -cat >conftest.$ac_ext <<_ACEOF
9401 + cat >conftest.$ac_ext <<_ACEOF
9402 /* confdefs.h. */
9403 _ACEOF
9404 cat confdefs.h >>conftest.$ac_ext
9405 cat >>conftest.$ac_ext <<_ACEOF
9406 /* end confdefs.h. */
9407 $ac_includes_default
9408 + typedef long long ac__type_sizeof_;
9409 int
9410 main ()
9411 {
9412 -static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
9413 +static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
9414 test_array [0] = 0
9415
9416 ;
9417 @@ -8748,27 +9340,22 @@ test_array [0] = 0
9418 }
9419 _ACEOF
9420 rm -f conftest.$ac_objext
9421 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9422 - (eval $ac_compile) 2>conftest.er1
9423 +if { (ac_try="$ac_compile"
9424 +case "(($ac_try" in
9425 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9426 + *) ac_try_echo=$ac_try;;
9427 +esac
9428 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9429 + (eval "$ac_compile") 2>conftest.er1
9430 ac_status=$?
9431 grep -v '^ *+' conftest.er1 >conftest.err
9432 rm -f conftest.er1
9433 cat conftest.err >&5
9434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9435 - (exit $ac_status); } &&
9436 - { ac_try='test -z "$ac_c_werror_flag"
9437 - || test ! -s conftest.err'
9438 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9439 - (eval $ac_try) 2>&5
9440 - ac_status=$?
9441 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
9442 - (exit $ac_status); }; } &&
9443 - { ac_try='test -s conftest.$ac_objext'
9444 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9445 - (eval $ac_try) 2>&5
9446 - ac_status=$?
9447 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
9448 - (exit $ac_status); }; }; then
9449 + (exit $ac_status); } && {
9450 + test -z "$ac_c_werror_flag" ||
9451 + test ! -s conftest.err
9452 + } && test -s conftest.$ac_objext; then
9453 ac_hi=-1 ac_mid=-1
9454 while :; do
9455 cat >conftest.$ac_ext <<_ACEOF
9456 @@ -8778,10 +9365,11 @@ cat confdefs.h >>conftest.$ac_ext
9457 cat >>conftest.$ac_ext <<_ACEOF
9458 /* end confdefs.h. */
9459 $ac_includes_default
9460 + typedef long long ac__type_sizeof_;
9461 int
9462 main ()
9463 {
9464 -static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
9465 +static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
9466 test_array [0] = 0
9467
9468 ;
9469 @@ -8789,50 +9377,48 @@ test_array [0] = 0
9470 }
9471 _ACEOF
9472 rm -f conftest.$ac_objext
9473 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9474 - (eval $ac_compile) 2>conftest.er1
9475 +if { (ac_try="$ac_compile"
9476 +case "(($ac_try" in
9477 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9478 + *) ac_try_echo=$ac_try;;
9479 +esac
9480 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9481 + (eval "$ac_compile") 2>conftest.er1
9482 ac_status=$?
9483 grep -v '^ *+' conftest.er1 >conftest.err
9484 rm -f conftest.er1
9485 cat conftest.err >&5
9486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9487 - (exit $ac_status); } &&
9488 - { ac_try='test -z "$ac_c_werror_flag"
9489 - || test ! -s conftest.err'
9490 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9491 - (eval $ac_try) 2>&5
9492 - ac_status=$?
9493 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
9494 - (exit $ac_status); }; } &&
9495 - { ac_try='test -s conftest.$ac_objext'
9496 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9497 - (eval $ac_try) 2>&5
9498 - ac_status=$?
9499 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
9500 - (exit $ac_status); }; }; then
9501 + (exit $ac_status); } && {
9502 + test -z "$ac_c_werror_flag" ||
9503 + test ! -s conftest.err
9504 + } && test -s conftest.$ac_objext; then
9505 ac_lo=$ac_mid; break
9506 else
9507 echo "$as_me: failed program was:" >&5
9508 sed 's/^/| /' conftest.$ac_ext >&5
9509
9510 -ac_hi=`expr '(' $ac_mid ')' - 1`
9511 - if test $ac_mid -le $ac_hi; then
9512 - ac_lo= ac_hi=
9513 - break
9514 - fi
9515 - ac_mid=`expr 2 '*' $ac_mid`
9516 + ac_hi=`expr '(' $ac_mid ')' - 1`
9517 + if test $ac_mid -le $ac_hi; then
9518 + ac_lo= ac_hi=
9519 + break
9520 + fi
9521 + ac_mid=`expr 2 '*' $ac_mid`
9522 fi
9523 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9524 +
9525 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9526 done
9527 else
9528 echo "$as_me: failed program was:" >&5
9529 sed 's/^/| /' conftest.$ac_ext >&5
9530
9531 -ac_lo= ac_hi=
9532 + ac_lo= ac_hi=
9533 fi
9534 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9535 +
9536 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9537 fi
9538 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9539 +
9540 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9541 # Binary search between lo and hi bounds.
9542 while test "x$ac_lo" != "x$ac_hi"; do
9543 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9544 @@ -8843,10 +9429,11 @@ cat confdefs.h >>conftest.$ac_ext
9545 cat >>conftest.$ac_ext <<_ACEOF
9546 /* end confdefs.h. */
9547 $ac_includes_default
9548 + typedef long long ac__type_sizeof_;
9549 int
9550 main ()
9551 {
9552 -static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
9553 +static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9554 test_array [0] = 0
9555
9556 ;
9557 @@ -8854,52 +9441,45 @@ test_array [0] = 0
9558 }
9559 _ACEOF
9560 rm -f conftest.$ac_objext
9561 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9562 - (eval $ac_compile) 2>conftest.er1
9563 +if { (ac_try="$ac_compile"
9564 +case "(($ac_try" in
9565 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9566 + *) ac_try_echo=$ac_try;;
9567 +esac
9568 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9569 + (eval "$ac_compile") 2>conftest.er1
9570 ac_status=$?
9571 grep -v '^ *+' conftest.er1 >conftest.err
9572 rm -f conftest.er1
9573 cat conftest.err >&5
9574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9575 - (exit $ac_status); } &&
9576 - { ac_try='test -z "$ac_c_werror_flag"
9577 - || test ! -s conftest.err'
9578 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9579 - (eval $ac_try) 2>&5
9580 - ac_status=$?
9581 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
9582 - (exit $ac_status); }; } &&
9583 - { ac_try='test -s conftest.$ac_objext'
9584 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9585 - (eval $ac_try) 2>&5
9586 - ac_status=$?
9587 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
9588 - (exit $ac_status); }; }; then
9589 + (exit $ac_status); } && {
9590 + test -z "$ac_c_werror_flag" ||
9591 + test ! -s conftest.err
9592 + } && test -s conftest.$ac_objext; then
9593 ac_hi=$ac_mid
9594 else
9595 echo "$as_me: failed program was:" >&5
9596 sed 's/^/| /' conftest.$ac_ext >&5
9597
9598 -ac_lo=`expr '(' $ac_mid ')' + 1`
9599 + ac_lo=`expr '(' $ac_mid ')' + 1`
9600 fi
9601 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9602 +
9603 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9604 done
9605 case $ac_lo in
9606 ?*) ac_cv_sizeof_long_long=$ac_lo;;
9607 -'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
9608 +'') if test "$ac_cv_type_long_long" = yes; then
9609 + { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
9610 See \`config.log' for more details." >&5
9611 -echo "$as_me: error: cannot compute sizeof (long long), 77
9612 +echo "$as_me: error: cannot compute sizeof (long long)
9613 See \`config.log' for more details." >&2;}
9614 - { (exit 1); exit 1; }; } ;;
9615 + { (exit 77); exit 77; }; }
9616 + else
9617 + ac_cv_sizeof_long_long=0
9618 + fi ;;
9619 esac
9620 else
9621 - if test "$cross_compiling" = yes; then
9622 - { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9623 -See \`config.log' for more details." >&5
9624 -echo "$as_me: error: cannot run test program while cross compiling
9625 -See \`config.log' for more details." >&2;}
9626 - { (exit 1); exit 1; }; }
9627 -else
9628 cat >conftest.$ac_ext <<_ACEOF
9629 /* confdefs.h. */
9630 _ACEOF
9631 @@ -8907,8 +9487,9 @@ cat confdefs.h >>conftest.$ac_ext
9632 cat >>conftest.$ac_ext <<_ACEOF
9633 /* end confdefs.h. */
9634 $ac_includes_default
9635 -long longval () { return (long) (sizeof (long long)); }
9636 -unsigned long ulongval () { return (long) (sizeof (long long)); }
9637 + typedef long long ac__type_sizeof_;
9638 +static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
9639 +static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
9640 #include <stdio.h>
9641 #include <stdlib.h>
9642 int
9643 @@ -8917,35 +9498,44 @@ main ()
9644
9645 FILE *f = fopen ("conftest.val", "w");
9646 if (! f)
9647 - exit (1);
9648 - if (((long) (sizeof (long long))) < 0)
9649 + return 1;
9650 + if (((long int) (sizeof (ac__type_sizeof_))) < 0)
9651 {
9652 - long i = longval ();
9653 - if (i != ((long) (sizeof (long long))))
9654 - exit (1);
9655 + long int i = longval ();
9656 + if (i != ((long int) (sizeof (ac__type_sizeof_))))
9657 + return 1;
9658 fprintf (f, "%ld\n", i);
9659 }
9660 else
9661 {
9662 - unsigned long i = ulongval ();
9663 - if (i != ((long) (sizeof (long long))))
9664 - exit (1);
9665 + unsigned long int i = ulongval ();
9666 + if (i != ((long int) (sizeof (ac__type_sizeof_))))
9667 + return 1;
9668 fprintf (f, "%lu\n", i);
9669 }
9670 - exit (ferror (f) || fclose (f) != 0);
9671 + return ferror (f) || fclose (f) != 0;
9672
9673 ;
9674 return 0;
9675 }
9676 _ACEOF
9677 rm -f conftest$ac_exeext
9678 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9679 - (eval $ac_link) 2>&5
9680 +if { (ac_try="$ac_link"
9681 +case "(($ac_try" in
9682 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9683 + *) ac_try_echo=$ac_try;;
9684 +esac
9685 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9686 + (eval "$ac_link") 2>&5
9687 ac_status=$?
9688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9689 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9690 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9691 - (eval $ac_try) 2>&5
9692 + { (case "(($ac_try" in
9693 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9694 + *) ac_try_echo=$ac_try;;
9695 +esac
9696 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9697 + (eval "$ac_try") 2>&5
9698 ac_status=$?
9699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9700 (exit $ac_status); }; }; then
9701 @@ -8956,22 +9546,25 @@ echo "$as_me: failed program was:" >&5
9702 sed 's/^/| /' conftest.$ac_ext >&5
9703
9704 ( exit $ac_status )
9705 -{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
9706 +if test "$ac_cv_type_long_long" = yes; then
9707 + { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
9708 See \`config.log' for more details." >&5
9709 -echo "$as_me: error: cannot compute sizeof (long long), 77
9710 +echo "$as_me: error: cannot compute sizeof (long long)
9711 See \`config.log' for more details." >&2;}
9712 - { (exit 1); exit 1; }; }
9713 -fi
9714 -rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9715 + { (exit 77); exit 77; }; }
9716 + else
9717 + ac_cv_sizeof_long_long=0
9718 + fi
9719 fi
9720 +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9721 fi
9722 rm -f conftest.val
9723 -else
9724 - ac_cv_sizeof_long_long=0
9725 -fi
9726 fi
9727 -echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
9728 -echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
9729 +{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
9730 +echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
9731 +
9732 +
9733 +
9734 cat >>confdefs.h <<_ACEOF
9735 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
9736 _ACEOF
9737 @@ -8979,8 +9572,8 @@ _ACEOF
9738
9739 fi
9740
9741 -echo "$as_me:$LINENO: checking for long" >&5
9742 -echo $ECHO_N "checking for long... $ECHO_C" >&6
9743 +{ echo "$as_me:$LINENO: checking for long" >&5
9744 +echo $ECHO_N "checking for long... $ECHO_C" >&6; }
9745 if test "${ac_cv_type_long+set}" = set; then
9746 echo $ECHO_N "(cached) $ECHO_C" >&6
9747 else
9748 @@ -8991,61 +9584,57 @@ cat confdefs.h >>conftest.$ac_ext
9749 cat >>conftest.$ac_ext <<_ACEOF
9750 /* end confdefs.h. */
9751 $ac_includes_default
9752 +typedef long ac__type_new_;
9753 int
9754 main ()
9755 {
9756 -if ((long *) 0)
9757 +if ((ac__type_new_ *) 0)
9758 return 0;
9759 -if (sizeof (long))
9760 +if (sizeof (ac__type_new_))
9761 return 0;
9762 ;
9763 return 0;
9764 }
9765 _ACEOF
9766 rm -f conftest.$ac_objext
9767 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9768 - (eval $ac_compile) 2>conftest.er1
9769 +if { (ac_try="$ac_compile"
9770 +case "(($ac_try" in
9771 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9772 + *) ac_try_echo=$ac_try;;
9773 +esac
9774 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9775 + (eval "$ac_compile") 2>conftest.er1
9776 ac_status=$?
9777 grep -v '^ *+' conftest.er1 >conftest.err
9778 rm -f conftest.er1
9779 cat conftest.err >&5
9780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9781 - (exit $ac_status); } &&
9782 - { ac_try='test -z "$ac_c_werror_flag"
9783 - || test ! -s conftest.err'
9784 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9785 - (eval $ac_try) 2>&5
9786 - ac_status=$?
9787 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
9788 - (exit $ac_status); }; } &&
9789 - { ac_try='test -s conftest.$ac_objext'
9790 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9791 - (eval $ac_try) 2>&5
9792 - ac_status=$?
9793 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
9794 - (exit $ac_status); }; }; then
9795 + (exit $ac_status); } && {
9796 + test -z "$ac_c_werror_flag" ||
9797 + test ! -s conftest.err
9798 + } && test -s conftest.$ac_objext; then
9799 ac_cv_type_long=yes
9800 else
9801 echo "$as_me: failed program was:" >&5
9802 sed 's/^/| /' conftest.$ac_ext >&5
9803
9804 -ac_cv_type_long=no
9805 + ac_cv_type_long=no
9806 fi
9807 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9808 +
9809 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9810 fi
9811 -echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
9812 -echo "${ECHO_T}$ac_cv_type_long" >&6
9813 +{ echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
9814 +echo "${ECHO_T}$ac_cv_type_long" >&6; }
9815
9816 -echo "$as_me:$LINENO: checking size of long" >&5
9817 -echo $ECHO_N "checking size of long... $ECHO_C" >&6
9818 +# The cast to long int works around a bug in the HP C Compiler
9819 +# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9820 +# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9821 +# This bug is HP SR number 8606223364.
9822 +{ echo "$as_me:$LINENO: checking size of long" >&5
9823 +echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
9824 if test "${ac_cv_sizeof_long+set}" = set; then
9825 echo $ECHO_N "(cached) $ECHO_C" >&6
9826 else
9827 - if test "$ac_cv_type_long" = yes; then
9828 - # The cast to unsigned long works around a bug in the HP C Compiler
9829 - # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9830 - # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9831 - # This bug is HP SR number 8606223364.
9832 if test "$cross_compiling" = yes; then
9833 # Depending upon the size, compute the lo and hi bounds.
9834 cat >conftest.$ac_ext <<_ACEOF
9835 @@ -9055,10 +9644,11 @@ cat confdefs.h >>conftest.$ac_ext
9836 cat >>conftest.$ac_ext <<_ACEOF
9837 /* end confdefs.h. */
9838 $ac_includes_default
9839 + typedef long ac__type_sizeof_;
9840 int
9841 main ()
9842 {
9843 -static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
9844 +static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
9845 test_array [0] = 0
9846
9847 ;
9848 @@ -9066,27 +9656,22 @@ test_array [0] = 0
9849 }
9850 _ACEOF
9851 rm -f conftest.$ac_objext
9852 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9853 - (eval $ac_compile) 2>conftest.er1
9854 +if { (ac_try="$ac_compile"
9855 +case "(($ac_try" in
9856 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9857 + *) ac_try_echo=$ac_try;;
9858 +esac
9859 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9860 + (eval "$ac_compile") 2>conftest.er1
9861 ac_status=$?
9862 grep -v '^ *+' conftest.er1 >conftest.err
9863 rm -f conftest.er1
9864 cat conftest.err >&5
9865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9866 - (exit $ac_status); } &&
9867 - { ac_try='test -z "$ac_c_werror_flag"
9868 - || test ! -s conftest.err'
9869 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9870 - (eval $ac_try) 2>&5
9871 - ac_status=$?
9872 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
9873 - (exit $ac_status); }; } &&
9874 - { ac_try='test -s conftest.$ac_objext'
9875 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9876 - (eval $ac_try) 2>&5
9877 - ac_status=$?
9878 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
9879 - (exit $ac_status); }; }; then
9880 + (exit $ac_status); } && {
9881 + test -z "$ac_c_werror_flag" ||
9882 + test ! -s conftest.err
9883 + } && test -s conftest.$ac_objext; then
9884 ac_lo=0 ac_mid=0
9885 while :; do
9886 cat >conftest.$ac_ext <<_ACEOF
9887 @@ -9096,10 +9681,11 @@ cat confdefs.h >>conftest.$ac_ext
9888 cat >>conftest.$ac_ext <<_ACEOF
9889 /* end confdefs.h. */
9890 $ac_includes_default
9891 + typedef long ac__type_sizeof_;
9892 int
9893 main ()
9894 {
9895 -static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
9896 +static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9897 test_array [0] = 0
9898
9899 ;
9900 @@ -9107,56 +9693,53 @@ test_array [0] = 0
9901 }
9902 _ACEOF
9903 rm -f conftest.$ac_objext
9904 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9905 - (eval $ac_compile) 2>conftest.er1
9906 +if { (ac_try="$ac_compile"
9907 +case "(($ac_try" in
9908 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9909 + *) ac_try_echo=$ac_try;;
9910 +esac
9911 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9912 + (eval "$ac_compile") 2>conftest.er1
9913 ac_status=$?
9914 grep -v '^ *+' conftest.er1 >conftest.err
9915 rm -f conftest.er1
9916 cat conftest.err >&5
9917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9918 - (exit $ac_status); } &&
9919 - { ac_try='test -z "$ac_c_werror_flag"
9920 - || test ! -s conftest.err'
9921 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9922 - (eval $ac_try) 2>&5
9923 - ac_status=$?
9924 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
9925 - (exit $ac_status); }; } &&
9926 - { ac_try='test -s conftest.$ac_objext'
9927 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9928 - (eval $ac_try) 2>&5
9929 - ac_status=$?
9930 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
9931 - (exit $ac_status); }; }; then
9932 + (exit $ac_status); } && {
9933 + test -z "$ac_c_werror_flag" ||
9934 + test ! -s conftest.err
9935 + } && test -s conftest.$ac_objext; then
9936 ac_hi=$ac_mid; break
9937 else
9938 echo "$as_me: failed program was:" >&5
9939 sed 's/^/| /' conftest.$ac_ext >&5
9940
9941 -ac_lo=`expr $ac_mid + 1`
9942 - if test $ac_lo -le $ac_mid; then
9943 - ac_lo= ac_hi=
9944 - break
9945 - fi
9946 - ac_mid=`expr 2 '*' $ac_mid + 1`
9947 + ac_lo=`expr $ac_mid + 1`
9948 + if test $ac_lo -le $ac_mid; then
9949 + ac_lo= ac_hi=
9950 + break
9951 + fi
9952 + ac_mid=`expr 2 '*' $ac_mid + 1`
9953 fi
9954 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9955 +
9956 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9957 done
9958 else
9959 echo "$as_me: failed program was:" >&5
9960 sed 's/^/| /' conftest.$ac_ext >&5
9961
9962 -cat >conftest.$ac_ext <<_ACEOF
9963 + cat >conftest.$ac_ext <<_ACEOF
9964 /* confdefs.h. */
9965 _ACEOF
9966 cat confdefs.h >>conftest.$ac_ext
9967 cat >>conftest.$ac_ext <<_ACEOF
9968 /* end confdefs.h. */
9969 $ac_includes_default
9970 + typedef long ac__type_sizeof_;
9971 int
9972 main ()
9973 {
9974 -static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
9975 +static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
9976 test_array [0] = 0
9977
9978 ;
9979 @@ -9164,27 +9747,22 @@ test_array [0] = 0
9980 }
9981 _ACEOF
9982 rm -f conftest.$ac_objext
9983 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9984 - (eval $ac_compile) 2>conftest.er1
9985 +if { (ac_try="$ac_compile"
9986 +case "(($ac_try" in
9987 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9988 + *) ac_try_echo=$ac_try;;
9989 +esac
9990 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9991 + (eval "$ac_compile") 2>conftest.er1
9992 ac_status=$?
9993 grep -v '^ *+' conftest.er1 >conftest.err
9994 rm -f conftest.er1
9995 cat conftest.err >&5
9996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9997 - (exit $ac_status); } &&
9998 - { ac_try='test -z "$ac_c_werror_flag"
9999 - || test ! -s conftest.err'
10000 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10001 - (eval $ac_try) 2>&5
10002 - ac_status=$?
10003 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
10004 - (exit $ac_status); }; } &&
10005 - { ac_try='test -s conftest.$ac_objext'
10006 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10007 - (eval $ac_try) 2>&5
10008 - ac_status=$?
10009 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
10010 - (exit $ac_status); }; }; then
10011 + (exit $ac_status); } && {
10012 + test -z "$ac_c_werror_flag" ||
10013 + test ! -s conftest.err
10014 + } && test -s conftest.$ac_objext; then
10015 ac_hi=-1 ac_mid=-1
10016 while :; do
10017 cat >conftest.$ac_ext <<_ACEOF
10018 @@ -9194,10 +9772,11 @@ cat confdefs.h >>conftest.$ac_ext
10019 cat >>conftest.$ac_ext <<_ACEOF
10020 /* end confdefs.h. */
10021 $ac_includes_default
10022 + typedef long ac__type_sizeof_;
10023 int
10024 main ()
10025 {
10026 -static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
10027 +static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
10028 test_array [0] = 0
10029
10030 ;
10031 @@ -9205,50 +9784,48 @@ test_array [0] = 0
10032 }
10033 _ACEOF
10034 rm -f conftest.$ac_objext
10035 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10036 - (eval $ac_compile) 2>conftest.er1
10037 +if { (ac_try="$ac_compile"
10038 +case "(($ac_try" in
10039 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10040 + *) ac_try_echo=$ac_try;;
10041 +esac
10042 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10043 + (eval "$ac_compile") 2>conftest.er1
10044 ac_status=$?
10045 grep -v '^ *+' conftest.er1 >conftest.err
10046 rm -f conftest.er1
10047 cat conftest.err >&5
10048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10049 - (exit $ac_status); } &&
10050 - { ac_try='test -z "$ac_c_werror_flag"
10051 - || test ! -s conftest.err'
10052 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10053 - (eval $ac_try) 2>&5
10054 - ac_status=$?
10055 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
10056 - (exit $ac_status); }; } &&
10057 - { ac_try='test -s conftest.$ac_objext'
10058 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10059 - (eval $ac_try) 2>&5
10060 - ac_status=$?
10061 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
10062 - (exit $ac_status); }; }; then
10063 + (exit $ac_status); } && {
10064 + test -z "$ac_c_werror_flag" ||
10065 + test ! -s conftest.err
10066 + } && test -s conftest.$ac_objext; then
10067 ac_lo=$ac_mid; break
10068 else
10069 echo "$as_me: failed program was:" >&5
10070 sed 's/^/| /' conftest.$ac_ext >&5
10071
10072 -ac_hi=`expr '(' $ac_mid ')' - 1`
10073 - if test $ac_mid -le $ac_hi; then
10074 - ac_lo= ac_hi=
10075 - break
10076 - fi
10077 - ac_mid=`expr 2 '*' $ac_mid`
10078 + ac_hi=`expr '(' $ac_mid ')' - 1`
10079 + if test $ac_mid -le $ac_hi; then
10080 + ac_lo= ac_hi=
10081 + break
10082 + fi
10083 + ac_mid=`expr 2 '*' $ac_mid`
10084 fi
10085 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10086 +
10087 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10088 done
10089 else
10090 echo "$as_me: failed program was:" >&5
10091 sed 's/^/| /' conftest.$ac_ext >&5
10092
10093 -ac_lo= ac_hi=
10094 + ac_lo= ac_hi=
10095 fi
10096 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10097 +
10098 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10099 fi
10100 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10101 +
10102 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10103 # Binary search between lo and hi bounds.
10104 while test "x$ac_lo" != "x$ac_hi"; do
10105 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10106 @@ -9259,10 +9836,11 @@ cat confdefs.h >>conftest.$ac_ext
10107 cat >>conftest.$ac_ext <<_ACEOF
10108 /* end confdefs.h. */
10109 $ac_includes_default
10110 + typedef long ac__type_sizeof_;
10111 int
10112 main ()
10113 {
10114 -static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
10115 +static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10116 test_array [0] = 0
10117
10118 ;
10119 @@ -9270,52 +9848,45 @@ test_array [0] = 0
10120 }
10121 _ACEOF
10122 rm -f conftest.$ac_objext
10123 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10124 - (eval $ac_compile) 2>conftest.er1
10125 +if { (ac_try="$ac_compile"
10126 +case "(($ac_try" in
10127 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10128 + *) ac_try_echo=$ac_try;;
10129 +esac
10130 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10131 + (eval "$ac_compile") 2>conftest.er1
10132 ac_status=$?
10133 grep -v '^ *+' conftest.er1 >conftest.err
10134 rm -f conftest.er1
10135 cat conftest.err >&5
10136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10137 - (exit $ac_status); } &&
10138 - { ac_try='test -z "$ac_c_werror_flag"
10139 - || test ! -s conftest.err'
10140 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10141 - (eval $ac_try) 2>&5
10142 - ac_status=$?
10143 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
10144 - (exit $ac_status); }; } &&
10145 - { ac_try='test -s conftest.$ac_objext'
10146 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10147 - (eval $ac_try) 2>&5
10148 - ac_status=$?
10149 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
10150 - (exit $ac_status); }; }; then
10151 + (exit $ac_status); } && {
10152 + test -z "$ac_c_werror_flag" ||
10153 + test ! -s conftest.err
10154 + } && test -s conftest.$ac_objext; then
10155 ac_hi=$ac_mid
10156 else
10157 echo "$as_me: failed program was:" >&5
10158 sed 's/^/| /' conftest.$ac_ext >&5
10159
10160 -ac_lo=`expr '(' $ac_mid ')' + 1`
10161 + ac_lo=`expr '(' $ac_mid ')' + 1`
10162 fi
10163 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10164 +
10165 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10166 done
10167 case $ac_lo in
10168 ?*) ac_cv_sizeof_long=$ac_lo;;
10169 -'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
10170 +'') if test "$ac_cv_type_long" = yes; then
10171 + { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
10172 See \`config.log' for more details." >&5
10173 -echo "$as_me: error: cannot compute sizeof (long), 77
10174 +echo "$as_me: error: cannot compute sizeof (long)
10175 See \`config.log' for more details." >&2;}
10176 - { (exit 1); exit 1; }; } ;;
10177 + { (exit 77); exit 77; }; }
10178 + else
10179 + ac_cv_sizeof_long=0
10180 + fi ;;
10181 esac
10182 else
10183 - if test "$cross_compiling" = yes; then
10184 - { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10185 -See \`config.log' for more details." >&5
10186 -echo "$as_me: error: cannot run test program while cross compiling
10187 -See \`config.log' for more details." >&2;}
10188 - { (exit 1); exit 1; }; }
10189 -else
10190 cat >conftest.$ac_ext <<_ACEOF
10191 /* confdefs.h. */
10192 _ACEOF
10193 @@ -9323,8 +9894,9 @@ cat confdefs.h >>conftest.$ac_ext
10194 cat >>conftest.$ac_ext <<_ACEOF
10195 /* end confdefs.h. */
10196 $ac_includes_default
10197 -long longval () { return (long) (sizeof (long)); }
10198 -unsigned long ulongval () { return (long) (sizeof (long)); }
10199 + typedef long ac__type_sizeof_;
10200 +static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
10201 +static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
10202 #include <stdio.h>
10203 #include <stdlib.h>
10204 int
10205 @@ -9333,35 +9905,44 @@ main ()
10206
10207 FILE *f = fopen ("conftest.val", "w");
10208 if (! f)
10209 - exit (1);
10210 - if (((long) (sizeof (long))) < 0)
10211 + return 1;
10212 + if (((long int) (sizeof (ac__type_sizeof_))) < 0)
10213 {
10214 - long i = longval ();
10215 - if (i != ((long) (sizeof (long))))
10216 - exit (1);
10217 + long int i = longval ();
10218 + if (i != ((long int) (sizeof (ac__type_sizeof_))))
10219 + return 1;
10220 fprintf (f, "%ld\n", i);
10221 }
10222 else
10223 {
10224 - unsigned long i = ulongval ();
10225 - if (i != ((long) (sizeof (long))))
10226 - exit (1);
10227 + unsigned long int i = ulongval ();
10228 + if (i != ((long int) (sizeof (ac__type_sizeof_))))
10229 + return 1;
10230 fprintf (f, "%lu\n", i);
10231 }
10232 - exit (ferror (f) || fclose (f) != 0);
10233 + return ferror (f) || fclose (f) != 0;
10234
10235 ;
10236 return 0;
10237 }
10238 _ACEOF
10239 rm -f conftest$ac_exeext
10240 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10241 - (eval $ac_link) 2>&5
10242 +if { (ac_try="$ac_link"
10243 +case "(($ac_try" in
10244 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10245 + *) ac_try_echo=$ac_try;;
10246 +esac
10247 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10248 + (eval "$ac_link") 2>&5
10249 ac_status=$?
10250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10251 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10252 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10253 - (eval $ac_try) 2>&5
10254 + { (case "(($ac_try" in
10255 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10256 + *) ac_try_echo=$ac_try;;
10257 +esac
10258 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10259 + (eval "$ac_try") 2>&5
10260 ac_status=$?
10261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10262 (exit $ac_status); }; }; then
10263 @@ -9372,22 +9953,25 @@ echo "$as_me: failed program was:" >&5
10264 sed 's/^/| /' conftest.$ac_ext >&5
10265
10266 ( exit $ac_status )
10267 -{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
10268 +if test "$ac_cv_type_long" = yes; then
10269 + { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
10270 See \`config.log' for more details." >&5
10271 -echo "$as_me: error: cannot compute sizeof (long), 77
10272 +echo "$as_me: error: cannot compute sizeof (long)
10273 See \`config.log' for more details." >&2;}
10274 - { (exit 1); exit 1; }; }
10275 -fi
10276 -rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10277 + { (exit 77); exit 77; }; }
10278 + else
10279 + ac_cv_sizeof_long=0
10280 + fi
10281 fi
10282 +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10283 fi
10284 rm -f conftest.val
10285 -else
10286 - ac_cv_sizeof_long=0
10287 -fi
10288 fi
10289 -echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
10290 -echo "${ECHO_T}$ac_cv_sizeof_long" >&6
10291 +{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
10292 +echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
10293 +
10294 +
10295 +
10296 cat >>confdefs.h <<_ACEOF
10297 #define SIZEOF_LONG $ac_cv_sizeof_long
10298 _ACEOF
10299 @@ -9428,8 +10012,8 @@ fi
10300 if test "x$cross_compiling" = "xno"; then
10301 EXEEXT_FOR_BUILD='$(EXEEXT)'
10302 else
10303 - echo "$as_me:$LINENO: checking for build system executable suffix" >&5
10304 -echo $ECHO_N "checking for build system executable suffix... $ECHO_C" >&6
10305 + { echo "$as_me:$LINENO: checking for build system executable suffix" >&5
10306 +echo $ECHO_N "checking for build system executable suffix... $ECHO_C" >&6; }
10307 if test "${bfd_cv_build_exeext+set}" = set; then
10308 echo $ECHO_N "(cached) $ECHO_C" >&6
10309 else
10310 @@ -9446,8 +10030,8 @@ else
10311 rm -f conftest*
10312 test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
10313 fi
10314 -echo "$as_me:$LINENO: result: $bfd_cv_build_exeext" >&5
10315 -echo "${ECHO_T}$bfd_cv_build_exeext" >&6
10316 +{ echo "$as_me:$LINENO: result: $bfd_cv_build_exeext" >&5
10317 +echo "${ECHO_T}$bfd_cv_build_exeext" >&6; }
10318 EXEEXT_FOR_BUILD=""
10319 test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
10320 fi
10321 @@ -9462,18 +10046,19 @@ fi
10322 for ac_header in stddef.h string.h strings.h stdlib.h time.h unistd.h
10323 do
10324 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10325 -if eval "test \"\${$as_ac_Header+set}\" = set"; then
10326 - echo "$as_me:$LINENO: checking for $ac_header" >&5
10327 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10328 -if eval "test \"\${$as_ac_Header+set}\" = set"; then
10329 +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10330 + { echo "$as_me:$LINENO: checking for $ac_header" >&5
10331 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10332 +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10333 echo $ECHO_N "(cached) $ECHO_C" >&6
10334 fi
10335 -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10336 -echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10337 +ac_res=`eval echo '${'$as_ac_Header'}'`
10338 + { echo "$as_me:$LINENO: result: $ac_res" >&5
10339 +echo "${ECHO_T}$ac_res" >&6; }
10340 else
10341 # Is the header compilable?
10342 -echo "$as_me:$LINENO: checking $ac_header usability" >&5
10343 -echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10344 +{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10345 +echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10346 cat >conftest.$ac_ext <<_ACEOF
10347 /* confdefs.h. */
10348 _ACEOF
10349 @@ -9484,41 +10069,37 @@ $ac_includes_default
10350 #include <$ac_header>
10351 _ACEOF
10352 rm -f conftest.$ac_objext
10353 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10354 - (eval $ac_compile) 2>conftest.er1
10355 +if { (ac_try="$ac_compile"
10356 +case "(($ac_try" in
10357 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10358 + *) ac_try_echo=$ac_try;;
10359 +esac
10360 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10361 + (eval "$ac_compile") 2>conftest.er1
10362 ac_status=$?
10363 grep -v '^ *+' conftest.er1 >conftest.err
10364 rm -f conftest.er1
10365 cat conftest.err >&5
10366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10367 - (exit $ac_status); } &&
10368 - { ac_try='test -z "$ac_c_werror_flag"
10369 - || test ! -s conftest.err'
10370 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10371 - (eval $ac_try) 2>&5
10372 - ac_status=$?
10373 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
10374 - (exit $ac_status); }; } &&
10375 - { ac_try='test -s conftest.$ac_objext'
10376 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10377 - (eval $ac_try) 2>&5
10378 - ac_status=$?
10379 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
10380 - (exit $ac_status); }; }; then
10381 + (exit $ac_status); } && {
10382 + test -z "$ac_c_werror_flag" ||
10383 + test ! -s conftest.err
10384 + } && test -s conftest.$ac_objext; then
10385 ac_header_compiler=yes
10386 else
10387 echo "$as_me: failed program was:" >&5
10388 sed 's/^/| /' conftest.$ac_ext >&5
10389
10390 -ac_header_compiler=no
10391 + ac_header_compiler=no
10392 fi
10393 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10394 -echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10395 -echo "${ECHO_T}$ac_header_compiler" >&6
10396 +
10397 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10398 +{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10399 +echo "${ECHO_T}$ac_header_compiler" >&6; }
10400
10401 # Is the header present?
10402 -echo "$as_me:$LINENO: checking $ac_header presence" >&5
10403 -echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10404 +{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10405 +echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10406 cat >conftest.$ac_ext <<_ACEOF
10407 /* confdefs.h. */
10408 _ACEOF
10409 @@ -9527,24 +10108,22 @@ cat >>conftest.$ac_ext <<_ACEOF
10410 /* end confdefs.h. */
10411 #include <$ac_header>
10412 _ACEOF
10413 -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10414 - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10415 +if { (ac_try="$ac_cpp conftest.$ac_ext"
10416 +case "(($ac_try" in
10417 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10418 + *) ac_try_echo=$ac_try;;
10419 +esac
10420 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10421 + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10422 ac_status=$?
10423 grep -v '^ *+' conftest.er1 >conftest.err
10424 rm -f conftest.er1
10425 cat conftest.err >&5
10426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10427 - (exit $ac_status); } >/dev/null; then
10428 - if test -s conftest.err; then
10429 - ac_cpp_err=$ac_c_preproc_warn_flag
10430 - ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10431 - else
10432 - ac_cpp_err=
10433 - fi
10434 -else
10435 - ac_cpp_err=yes
10436 -fi
10437 -if test -z "$ac_cpp_err"; then
10438 + (exit $ac_status); } >/dev/null && {
10439 + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10440 + test ! -s conftest.err
10441 + }; then
10442 ac_header_preproc=yes
10443 else
10444 echo "$as_me: failed program was:" >&5
10445 @@ -9552,9 +10131,10 @@ sed 's/^/| /' conftest.$ac_ext >&5
10446
10447 ac_header_preproc=no
10448 fi
10449 +
10450 rm -f conftest.err conftest.$ac_ext
10451 -echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10452 -echo "${ECHO_T}$ac_header_preproc" >&6
10453 +{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10454 +echo "${ECHO_T}$ac_header_preproc" >&6; }
10455
10456 # So? What about this header?
10457 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10458 @@ -9578,25 +10158,19 @@ echo "$as_me: WARNING: $ac_header: s
10459 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10460 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10461 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10462 - (
10463 - cat <<\_ASBOX
10464 -## ------------------------------------------ ##
10465 -## Report this to the AC_PACKAGE_NAME lists. ##
10466 -## ------------------------------------------ ##
10467 -_ASBOX
10468 - ) |
10469 - sed "s/^/$as_me: WARNING: /" >&2
10470 +
10471 ;;
10472 esac
10473 -echo "$as_me:$LINENO: checking for $ac_header" >&5
10474 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10475 -if eval "test \"\${$as_ac_Header+set}\" = set"; then
10476 +{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10477 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10478 +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10479 echo $ECHO_N "(cached) $ECHO_C" >&6
10480 else
10481 eval "$as_ac_Header=\$ac_header_preproc"
10482 fi
10483 -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10484 -echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10485 +ac_res=`eval echo '${'$as_ac_Header'}'`
10486 + { echo "$as_me:$LINENO: result: $ac_res" >&5
10487 +echo "${ECHO_T}$ac_res" >&6; }
10488
10489 fi
10490 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10491 @@ -9614,18 +10188,19 @@ done
10492 for ac_header in fcntl.h sys/file.h sys/time.h
10493 do
10494 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10495 -if eval "test \"\${$as_ac_Header+set}\" = set"; then
10496 - echo "$as_me:$LINENO: checking for $ac_header" >&5
10497 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10498 -if eval "test \"\${$as_ac_Header+set}\" = set"; then
10499 +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10500 + { echo "$as_me:$LINENO: checking for $ac_header" >&5
10501 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10502 +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10503 echo $ECHO_N "(cached) $ECHO_C" >&6
10504 fi
10505 -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10506 -echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10507 +ac_res=`eval echo '${'$as_ac_Header'}'`
10508 + { echo "$as_me:$LINENO: result: $ac_res" >&5
10509 +echo "${ECHO_T}$ac_res" >&6; }
10510 else
10511 # Is the header compilable?
10512 -echo "$as_me:$LINENO: checking $ac_header usability" >&5
10513 -echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10514 +{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10515 +echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10516 cat >conftest.$ac_ext <<_ACEOF
10517 /* confdefs.h. */
10518 _ACEOF
10519 @@ -9636,41 +10211,37 @@ $ac_includes_default
10520 #include <$ac_header>
10521 _ACEOF
10522 rm -f conftest.$ac_objext
10523 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10524 - (eval $ac_compile) 2>conftest.er1
10525 +if { (ac_try="$ac_compile"
10526 +case "(($ac_try" in
10527 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10528 + *) ac_try_echo=$ac_try;;
10529 +esac
10530 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10531 + (eval "$ac_compile") 2>conftest.er1
10532 ac_status=$?
10533 grep -v '^ *+' conftest.er1 >conftest.err
10534 rm -f conftest.er1
10535 cat conftest.err >&5
10536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10537 - (exit $ac_status); } &&
10538 - { ac_try='test -z "$ac_c_werror_flag"
10539 - || test ! -s conftest.err'
10540 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10541 - (eval $ac_try) 2>&5
10542 - ac_status=$?
10543 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
10544 - (exit $ac_status); }; } &&
10545 - { ac_try='test -s conftest.$ac_objext'
10546 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10547 - (eval $ac_try) 2>&5
10548 - ac_status=$?
10549 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
10550 - (exit $ac_status); }; }; then
10551 + (exit $ac_status); } && {
10552 + test -z "$ac_c_werror_flag" ||
10553 + test ! -s conftest.err
10554 + } && test -s conftest.$ac_objext; then
10555 ac_header_compiler=yes
10556 else
10557 echo "$as_me: failed program was:" >&5
10558 sed 's/^/| /' conftest.$ac_ext >&5
10559
10560 -ac_header_compiler=no
10561 + ac_header_compiler=no
10562 fi
10563 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10564 -echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10565 -echo "${ECHO_T}$ac_header_compiler" >&6
10566 +
10567 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10568 +{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10569 +echo "${ECHO_T}$ac_header_compiler" >&6; }
10570
10571 # Is the header present?
10572 -echo "$as_me:$LINENO: checking $ac_header presence" >&5
10573 -echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10574 +{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10575 +echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10576 cat >conftest.$ac_ext <<_ACEOF
10577 /* confdefs.h. */
10578 _ACEOF
10579 @@ -9679,24 +10250,22 @@ cat >>conftest.$ac_ext <<_ACEOF
10580 /* end confdefs.h. */
10581 #include <$ac_header>
10582 _ACEOF
10583 -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10584 - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10585 +if { (ac_try="$ac_cpp conftest.$ac_ext"
10586 +case "(($ac_try" in
10587 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10588 + *) ac_try_echo=$ac_try;;
10589 +esac
10590 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10591 + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10592 ac_status=$?
10593 grep -v '^ *+' conftest.er1 >conftest.err
10594 rm -f conftest.er1
10595 cat conftest.err >&5
10596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10597 - (exit $ac_status); } >/dev/null; then
10598 - if test -s conftest.err; then
10599 - ac_cpp_err=$ac_c_preproc_warn_flag
10600 - ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10601 - else
10602 - ac_cpp_err=
10603 - fi
10604 -else
10605 - ac_cpp_err=yes
10606 -fi
10607 -if test -z "$ac_cpp_err"; then
10608 + (exit $ac_status); } >/dev/null && {
10609 + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10610 + test ! -s conftest.err
10611 + }; then
10612 ac_header_preproc=yes
10613 else
10614 echo "$as_me: failed program was:" >&5
10615 @@ -9704,9 +10273,10 @@ sed 's/^/| /' conftest.$ac_ext >&5
10616
10617 ac_header_preproc=no
10618 fi
10619 +
10620 rm -f conftest.err conftest.$ac_ext
10621 -echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10622 -echo "${ECHO_T}$ac_header_preproc" >&6
10623 +{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10624 +echo "${ECHO_T}$ac_header_preproc" >&6; }
10625
10626 # So? What about this header?
10627 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10628 @@ -9730,25 +10300,19 @@ echo "$as_me: WARNING: $ac_header: s
10629 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10630 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10631 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10632 - (
10633 - cat <<\_ASBOX
10634 -## ------------------------------------------ ##
10635 -## Report this to the AC_PACKAGE_NAME lists. ##
10636 -## ------------------------------------------ ##
10637 -_ASBOX
10638 - ) |
10639 - sed "s/^/$as_me: WARNING: /" >&2
10640 +
10641 ;;
10642 esac
10643 -echo "$as_me:$LINENO: checking for $ac_header" >&5
10644 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10645 -if eval "test \"\${$as_ac_Header+set}\" = set"; then
10646 +{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10647 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10648 +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10649 echo $ECHO_N "(cached) $ECHO_C" >&6
10650 else
10651 eval "$as_ac_Header=\$ac_header_preproc"
10652 fi
10653 -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10654 -echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10655 +ac_res=`eval echo '${'$as_ac_Header'}'`
10656 + { echo "$as_me:$LINENO: result: $ac_res" >&5
10657 +echo "${ECHO_T}$ac_res" >&6; }
10658
10659 fi
10660 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10661 @@ -9760,8 +10324,8 @@ fi
10662
10663 done
10664
10665 -echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
10666 -echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
10667 +{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
10668 +echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
10669 if test "${ac_cv_header_time+set}" = set; then
10670 echo $ECHO_N "(cached) $ECHO_C" >&6
10671 else
10672 @@ -9785,38 +10349,34 @@ return 0;
10673 }
10674 _ACEOF
10675 rm -f conftest.$ac_objext
10676 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10677 - (eval $ac_compile) 2>conftest.er1
10678 +if { (ac_try="$ac_compile"
10679 +case "(($ac_try" in
10680 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10681 + *) ac_try_echo=$ac_try;;
10682 +esac
10683 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10684 + (eval "$ac_compile") 2>conftest.er1
10685 ac_status=$?
10686 grep -v '^ *+' conftest.er1 >conftest.err
10687 rm -f conftest.er1
10688 cat conftest.err >&5
10689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10690 - (exit $ac_status); } &&
10691 - { ac_try='test -z "$ac_c_werror_flag"
10692 - || test ! -s conftest.err'
10693 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10694 - (eval $ac_try) 2>&5
10695 - ac_status=$?
10696 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
10697 - (exit $ac_status); }; } &&
10698 - { ac_try='test -s conftest.$ac_objext'
10699 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10700 - (eval $ac_try) 2>&5
10701 - ac_status=$?
10702 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
10703 - (exit $ac_status); }; }; then
10704 + (exit $ac_status); } && {
10705 + test -z "$ac_c_werror_flag" ||
10706 + test ! -s conftest.err
10707 + } && test -s conftest.$ac_objext; then
10708 ac_cv_header_time=yes
10709 else
10710 echo "$as_me: failed program was:" >&5
10711 sed 's/^/| /' conftest.$ac_ext >&5
10712
10713 -ac_cv_header_time=no
10714 + ac_cv_header_time=no
10715 fi
10716 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10717 +
10718 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10719 fi
10720 -echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
10721 -echo "${ECHO_T}$ac_cv_header_time" >&6
10722 +{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
10723 +echo "${ECHO_T}$ac_cv_header_time" >&6; }
10724 if test $ac_cv_header_time = yes; then
10725
10726 cat >>confdefs.h <<\_ACEOF
10727 @@ -9833,9 +10393,9 @@ fi
10728 ac_header_dirent=no
10729 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
10730 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
10731 -echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
10732 -echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
10733 -if eval "test \"\${$as_ac_Header+set}\" = set"; then
10734 +{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
10735 +echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
10736 +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10737 echo $ECHO_N "(cached) $ECHO_C" >&6
10738 else
10739 cat >conftest.$ac_ext <<_ACEOF
10740 @@ -9857,38 +10417,35 @@ return 0;
10741 }
10742 _ACEOF
10743 rm -f conftest.$ac_objext
10744 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10745 - (eval $ac_compile) 2>conftest.er1
10746 +if { (ac_try="$ac_compile"
10747 +case "(($ac_try" in
10748 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10749 + *) ac_try_echo=$ac_try;;
10750 +esac
10751 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10752 + (eval "$ac_compile") 2>conftest.er1
10753 ac_status=$?
10754 grep -v '^ *+' conftest.er1 >conftest.err
10755 rm -f conftest.er1
10756 cat conftest.err >&5
10757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10758 - (exit $ac_status); } &&
10759 - { ac_try='test -z "$ac_c_werror_flag"
10760 - || test ! -s conftest.err'
10761 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10762 - (eval $ac_try) 2>&5
10763 - ac_status=$?
10764 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
10765 - (exit $ac_status); }; } &&
10766 - { ac_try='test -s conftest.$ac_objext'
10767 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10768 - (eval $ac_try) 2>&5
10769 - ac_status=$?
10770 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
10771 - (exit $ac_status); }; }; then
10772 + (exit $ac_status); } && {
10773 + test -z "$ac_c_werror_flag" ||
10774 + test ! -s conftest.err
10775 + } && test -s conftest.$ac_objext; then
10776 eval "$as_ac_Header=yes"
10777 else
10778 echo "$as_me: failed program was:" >&5
10779 sed 's/^/| /' conftest.$ac_ext >&5
10780
10781 -eval "$as_ac_Header=no"
10782 + eval "$as_ac_Header=no"
10783 fi
10784 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10785 +
10786 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10787 fi
10788 -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10789 -echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10790 +ac_res=`eval echo '${'$as_ac_Header'}'`
10791 + { echo "$as_me:$LINENO: result: $ac_res" >&5
10792 +echo "${ECHO_T}$ac_res" >&6; }
10793 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10794 cat >>confdefs.h <<_ACEOF
10795 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
10796 @@ -9900,13 +10457,12 @@ fi
10797 done
10798 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
10799 if test $ac_header_dirent = dirent.h; then
10800 - echo "$as_me:$LINENO: checking for library containing opendir" >&5
10801 -echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
10802 + { echo "$as_me:$LINENO: checking for library containing opendir" >&5
10803 +echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
10804 if test "${ac_cv_search_opendir+set}" = set; then
10805 echo $ECHO_N "(cached) $ECHO_C" >&6
10806 else
10807 ac_func_search_save_LIBS=$LIBS
10808 -ac_cv_search_opendir=no
10809 cat >conftest.$ac_ext <<_ACEOF
10810 /* confdefs.h. */
10811 _ACEOF
10812 @@ -9914,126 +10470,83 @@ cat confdefs.h >>conftest.$ac_ext
10813 cat >>conftest.$ac_ext <<_ACEOF
10814 /* end confdefs.h. */
10815
10816 -/* Override any gcc2 internal prototype to avoid an error. */
10817 +/* Override any GCC internal prototype to avoid an error.
10818 + Use char because int might match the return type of a GCC
10819 + builtin and then its argument prototype would still apply. */
10820 #ifdef __cplusplus
10821 extern "C"
10822 #endif
10823 -/* We use char because int might match the return type of a gcc2
10824 - builtin and then its argument prototype would still apply. */
10825 char opendir ();
10826 int
10827 main ()
10828 {
10829 -opendir ();
10830 +return opendir ();
10831 ;
10832 return 0;
10833 }
10834 _ACEOF
10835 -rm -f conftest.$ac_objext conftest$ac_exeext
10836 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10837 - (eval $ac_link) 2>conftest.er1
10838 +for ac_lib in '' dir; do
10839 + if test -z "$ac_lib"; then
10840 + ac_res="none required"
10841 + else
10842 + ac_res=-l$ac_lib
10843 + LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10844 + fi
10845 + rm -f conftest.$ac_objext conftest$ac_exeext
10846 +if { (ac_try="$ac_link"
10847 +case "(($ac_try" in
10848 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10849 + *) ac_try_echo=$ac_try;;
10850 +esac
10851 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10852 + (eval "$ac_link") 2>conftest.er1
10853 ac_status=$?
10854 grep -v '^ *+' conftest.er1 >conftest.err
10855 rm -f conftest.er1
10856 cat conftest.err >&5
10857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10858 - (exit $ac_status); } &&
10859 - { ac_try='test -z "$ac_c_werror_flag"
10860 - || test ! -s conftest.err'
10861 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10862 - (eval $ac_try) 2>&5
10863 - ac_status=$?
10864 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
10865 - (exit $ac_status); }; } &&
10866 - { ac_try='test -s conftest$ac_exeext'
10867 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10868 - (eval $ac_try) 2>&5
10869 - ac_status=$?
10870 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
10871 - (exit $ac_status); }; }; then
10872 - ac_cv_search_opendir="none required"
10873 + (exit $ac_status); } && {
10874 + test -z "$ac_c_werror_flag" ||
10875 + test ! -s conftest.err
10876 + } && test -s conftest$ac_exeext &&
10877 + $as_test_x conftest$ac_exeext; then
10878 + ac_cv_search_opendir=$ac_res
10879 else
10880 echo "$as_me: failed program was:" >&5
10881 sed 's/^/| /' conftest.$ac_ext >&5
10882
10883 -fi
10884 -rm -f conftest.err conftest.$ac_objext \
10885 - conftest$ac_exeext conftest.$ac_ext
10886 -if test "$ac_cv_search_opendir" = no; then
10887 - for ac_lib in dir; do
10888 - LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10889 - cat >conftest.$ac_ext <<_ACEOF
10890 -/* confdefs.h. */
10891 -_ACEOF
10892 -cat confdefs.h >>conftest.$ac_ext
10893 -cat >>conftest.$ac_ext <<_ACEOF
10894 -/* end confdefs.h. */
10895
10896 -/* Override any gcc2 internal prototype to avoid an error. */
10897 -#ifdef __cplusplus
10898 -extern "C"
10899 -#endif
10900 -/* We use char because int might match the return type of a gcc2
10901 - builtin and then its argument prototype would still apply. */
10902 -char opendir ();
10903 -int
10904 -main ()
10905 -{
10906 -opendir ();
10907 - ;
10908 - return 0;
10909 -}
10910 -_ACEOF
10911 -rm -f conftest.$ac_objext conftest$ac_exeext
10912 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10913 - (eval $ac_link) 2>conftest.er1
10914 - ac_status=$?
10915 - grep -v '^ *+' conftest.er1 >conftest.err
10916 - rm -f conftest.er1
10917 - cat conftest.err >&5
10918 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
10919 - (exit $ac_status); } &&
10920 - { ac_try='test -z "$ac_c_werror_flag"
10921 - || test ! -s conftest.err'
10922 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10923 - (eval $ac_try) 2>&5
10924 - ac_status=$?
10925 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
10926 - (exit $ac_status); }; } &&
10927 - { ac_try='test -s conftest$ac_exeext'
10928 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10929 - (eval $ac_try) 2>&5
10930 - ac_status=$?
10931 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
10932 - (exit $ac_status); }; }; then
10933 - ac_cv_search_opendir="-l$ac_lib"
10934 -break
10935 -else
10936 - echo "$as_me: failed program was:" >&5
10937 -sed 's/^/| /' conftest.$ac_ext >&5
10938 +fi
10939
10940 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10941 + conftest$ac_exeext
10942 + if test "${ac_cv_search_opendir+set}" = set; then
10943 + break
10944 fi
10945 -rm -f conftest.err conftest.$ac_objext \
10946 - conftest$ac_exeext conftest.$ac_ext
10947 - done
10948 +done
10949 +if test "${ac_cv_search_opendir+set}" = set; then
10950 + :
10951 +else
10952 + ac_cv_search_opendir=no
10953 fi
10954 +rm conftest.$ac_ext
10955 LIBS=$ac_func_search_save_LIBS
10956 fi
10957 -echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10958 -echo "${ECHO_T}$ac_cv_search_opendir" >&6
10959 -if test "$ac_cv_search_opendir" != no; then
10960 - test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
10961 +{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10962 +echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
10963 +ac_res=$ac_cv_search_opendir
10964 +if test "$ac_res" != no; then
10965 + test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10966
10967 fi
10968
10969 else
10970 - echo "$as_me:$LINENO: checking for library containing opendir" >&5
10971 -echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
10972 + { echo "$as_me:$LINENO: checking for library containing opendir" >&5
10973 +echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
10974 if test "${ac_cv_search_opendir+set}" = set; then
10975 echo $ECHO_N "(cached) $ECHO_C" >&6
10976 else
10977 ac_func_search_save_LIBS=$LIBS
10978 -ac_cv_search_opendir=no
10979 cat >conftest.$ac_ext <<_ACEOF
10980 /* confdefs.h. */
10981 _ACEOF
10982 @@ -10041,122 +10554,80 @@ cat confdefs.h >>conftest.$ac_ext
10983 cat >>conftest.$ac_ext <<_ACEOF
10984 /* end confdefs.h. */
10985
10986 -/* Override any gcc2 internal prototype to avoid an error. */
10987 +/* Override any GCC internal prototype to avoid an error.
10988 + Use char because int might match the return type of a GCC
10989 + builtin and then its argument prototype would still apply. */
10990 #ifdef __cplusplus
10991 extern "C"
10992 #endif
10993 -/* We use char because int might match the return type of a gcc2
10994 - builtin and then its argument prototype would still apply. */
10995 char opendir ();
10996 int
10997 main ()
10998 {
10999 -opendir ();
11000 +return opendir ();
11001 ;
11002 return 0;
11003 }
11004 _ACEOF
11005 -rm -f conftest.$ac_objext conftest$ac_exeext
11006 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11007 - (eval $ac_link) 2>conftest.er1
11008 +for ac_lib in '' x; do
11009 + if test -z "$ac_lib"; then
11010 + ac_res="none required"
11011 + else
11012 + ac_res=-l$ac_lib
11013 + LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11014 + fi
11015 + rm -f conftest.$ac_objext conftest$ac_exeext
11016 +if { (ac_try="$ac_link"
11017 +case "(($ac_try" in
11018 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11019 + *) ac_try_echo=$ac_try;;
11020 +esac
11021 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11022 + (eval "$ac_link") 2>conftest.er1
11023 ac_status=$?
11024 grep -v '^ *+' conftest.er1 >conftest.err
11025 rm -f conftest.er1
11026 cat conftest.err >&5
11027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11028 - (exit $ac_status); } &&
11029 - { ac_try='test -z "$ac_c_werror_flag"
11030 - || test ! -s conftest.err'
11031 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11032 - (eval $ac_try) 2>&5
11033 - ac_status=$?
11034 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
11035 - (exit $ac_status); }; } &&
11036 - { ac_try='test -s conftest$ac_exeext'
11037 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11038 - (eval $ac_try) 2>&5
11039 - ac_status=$?
11040 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
11041 - (exit $ac_status); }; }; then
11042 - ac_cv_search_opendir="none required"
11043 + (exit $ac_status); } && {
11044 + test -z "$ac_c_werror_flag" ||
11045 + test ! -s conftest.err
11046 + } && test -s conftest$ac_exeext &&
11047 + $as_test_x conftest$ac_exeext; then
11048 + ac_cv_search_opendir=$ac_res
11049 else
11050 echo "$as_me: failed program was:" >&5
11051 sed 's/^/| /' conftest.$ac_ext >&5
11052
11053 -fi
11054 -rm -f conftest.err conftest.$ac_objext \
11055 - conftest$ac_exeext conftest.$ac_ext
11056 -if test "$ac_cv_search_opendir" = no; then
11057 - for ac_lib in x; do
11058 - LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11059 - cat >conftest.$ac_ext <<_ACEOF
11060 -/* confdefs.h. */
11061 -_ACEOF
11062 -cat confdefs.h >>conftest.$ac_ext
11063 -cat >>conftest.$ac_ext <<_ACEOF
11064 -/* end confdefs.h. */
11065
11066 -/* Override any gcc2 internal prototype to avoid an error. */
11067 -#ifdef __cplusplus
11068 -extern "C"
11069 -#endif
11070 -/* We use char because int might match the return type of a gcc2
11071 - builtin and then its argument prototype would still apply. */
11072 -char opendir ();
11073 -int
11074 -main ()
11075 -{
11076 -opendir ();
11077 - ;
11078 - return 0;
11079 -}
11080 -_ACEOF
11081 -rm -f conftest.$ac_objext conftest$ac_exeext
11082 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11083 - (eval $ac_link) 2>conftest.er1
11084 - ac_status=$?
11085 - grep -v '^ *+' conftest.er1 >conftest.err
11086 - rm -f conftest.er1
11087 - cat conftest.err >&5
11088 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
11089 - (exit $ac_status); } &&
11090 - { ac_try='test -z "$ac_c_werror_flag"
11091 - || test ! -s conftest.err'
11092 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11093 - (eval $ac_try) 2>&5
11094 - ac_status=$?
11095 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
11096 - (exit $ac_status); }; } &&
11097 - { ac_try='test -s conftest$ac_exeext'
11098 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11099 - (eval $ac_try) 2>&5
11100 - ac_status=$?
11101 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
11102 - (exit $ac_status); }; }; then
11103 - ac_cv_search_opendir="-l$ac_lib"
11104 -break
11105 -else
11106 - echo "$as_me: failed program was:" >&5
11107 -sed 's/^/| /' conftest.$ac_ext >&5
11108 +fi
11109
11110 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11111 + conftest$ac_exeext
11112 + if test "${ac_cv_search_opendir+set}" = set; then
11113 + break
11114 fi
11115 -rm -f conftest.err conftest.$ac_objext \
11116 - conftest$ac_exeext conftest.$ac_ext
11117 - done
11118 +done
11119 +if test "${ac_cv_search_opendir+set}" = set; then
11120 + :
11121 +else
11122 + ac_cv_search_opendir=no
11123 fi
11124 +rm conftest.$ac_ext
11125 LIBS=$ac_func_search_save_LIBS
11126 fi
11127 -echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
11128 -echo "${ECHO_T}$ac_cv_search_opendir" >&6
11129 -if test "$ac_cv_search_opendir" != no; then
11130 - test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
11131 +{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
11132 +echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
11133 +ac_res=$ac_cv_search_opendir
11134 +if test "$ac_res" != no; then
11135 + test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11136
11137 fi
11138
11139 fi
11140
11141 -echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
11142 -echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6
11143 +{ echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
11144 +echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6; }
11145 if test "${gcc_cv_header_string+set}" = set; then
11146 echo $ECHO_N "(cached) $ECHO_C" >&6
11147 else
11148 @@ -10177,38 +10648,34 @@ main ()
11149 }
11150 _ACEOF
11151 rm -f conftest.$ac_objext
11152 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11153 - (eval $ac_compile) 2>conftest.er1
11154 +if { (ac_try="$ac_compile"
11155 +case "(($ac_try" in
11156 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11157 + *) ac_try_echo=$ac_try;;
11158 +esac
11159 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11160 + (eval "$ac_compile") 2>conftest.er1
11161 ac_status=$?
11162 grep -v '^ *+' conftest.er1 >conftest.err
11163 rm -f conftest.er1
11164 cat conftest.err >&5
11165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11166 - (exit $ac_status); } &&
11167 - { ac_try='test -z "$ac_c_werror_flag"
11168 - || test ! -s conftest.err'
11169 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11170 - (eval $ac_try) 2>&5
11171 - ac_status=$?
11172 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
11173 - (exit $ac_status); }; } &&
11174 - { ac_try='test -s conftest.$ac_objext'
11175 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11176 - (eval $ac_try) 2>&5
11177 - ac_status=$?
11178 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
11179 - (exit $ac_status); }; }; then
11180 + (exit $ac_status); } && {
11181 + test -z "$ac_c_werror_flag" ||
11182 + test ! -s conftest.err
11183 + } && test -s conftest.$ac_objext; then
11184 gcc_cv_header_string=yes
11185 else
11186 echo "$as_me: failed program was:" >&5
11187 sed 's/^/| /' conftest.$ac_ext >&5
11188
11189 -gcc_cv_header_string=no
11190 + gcc_cv_header_string=no
11191 fi
11192 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11193 +
11194 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11195 fi
11196 -echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
11197 -echo "${ECHO_T}$gcc_cv_header_string" >&6
11198 +{ echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
11199 +echo "${ECHO_T}$gcc_cv_header_string" >&6; }
11200 if test $gcc_cv_header_string = yes; then
11201
11202 cat >>confdefs.h <<\_ACEOF
11203 @@ -10227,9 +10694,9 @@ fi
11204 for ac_func in fcntl getpagesize setitimer sysconf fdopen getuid getgid
11205 do
11206 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11207 -echo "$as_me:$LINENO: checking for $ac_func" >&5
11208 -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11209 -if eval "test \"\${$as_ac_var+set}\" = set"; then
11210 +{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11211 +echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11212 +if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11213 echo $ECHO_N "(cached) $ECHO_C" >&6
11214 else
11215 cat >conftest.$ac_ext <<_ACEOF
11216 @@ -10255,68 +10722,60 @@ cat >>conftest.$ac_ext <<_ACEOF
11217
11218 #undef $ac_func
11219
11220 -/* Override any gcc2 internal prototype to avoid an error. */
11221 +/* Override any GCC internal prototype to avoid an error.
11222 + Use char because int might match the return type of a GCC
11223 + builtin and then its argument prototype would still apply. */
11224 #ifdef __cplusplus
11225 extern "C"
11226 -{
11227 #endif
11228 -/* We use char because int might match the return type of a gcc2
11229 - builtin and then its argument prototype would still apply. */
11230 char $ac_func ();
11231 /* The GNU C library defines this for functions which it implements
11232 to always fail with ENOSYS. Some functions are actually named
11233 something starting with __ and the normal name is an alias. */
11234 -#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11235 +#if defined __stub_$ac_func || defined __stub___$ac_func
11236 choke me
11237 -#else
11238 -char (*f) () = $ac_func;
11239 -#endif
11240 -#ifdef __cplusplus
11241 -}
11242 #endif
11243
11244 int
11245 main ()
11246 {
11247 -return f != $ac_func;
11248 +return $ac_func ();
11249 ;
11250 return 0;
11251 }
11252 _ACEOF
11253 rm -f conftest.$ac_objext conftest$ac_exeext
11254 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11255 - (eval $ac_link) 2>conftest.er1
11256 +if { (ac_try="$ac_link"
11257 +case "(($ac_try" in
11258 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11259 + *) ac_try_echo=$ac_try;;
11260 +esac
11261 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11262 + (eval "$ac_link") 2>conftest.er1
11263 ac_status=$?
11264 grep -v '^ *+' conftest.er1 >conftest.err
11265 rm -f conftest.er1
11266 cat conftest.err >&5
11267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11268 - (exit $ac_status); } &&
11269 - { ac_try='test -z "$ac_c_werror_flag"
11270 - || test ! -s conftest.err'
11271 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11272 - (eval $ac_try) 2>&5
11273 - ac_status=$?
11274 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
11275 - (exit $ac_status); }; } &&
11276 - { ac_try='test -s conftest$ac_exeext'
11277 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11278 - (eval $ac_try) 2>&5
11279 - ac_status=$?
11280 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
11281 - (exit $ac_status); }; }; then
11282 + (exit $ac_status); } && {
11283 + test -z "$ac_c_werror_flag" ||
11284 + test ! -s conftest.err
11285 + } && test -s conftest$ac_exeext &&
11286 + $as_test_x conftest$ac_exeext; then
11287 eval "$as_ac_var=yes"
11288 else
11289 echo "$as_me: failed program was:" >&5
11290 sed 's/^/| /' conftest.$ac_ext >&5
11291
11292 -eval "$as_ac_var=no"
11293 + eval "$as_ac_var=no"
11294 fi
11295 -rm -f conftest.err conftest.$ac_objext \
11296 +
11297 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11298 conftest$ac_exeext conftest.$ac_ext
11299 fi
11300 -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11301 -echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11302 +ac_res=`eval echo '${'$as_ac_var'}'`
11303 + { echo "$as_me:$LINENO: result: $ac_res" >&5
11304 +echo "${ECHO_T}$ac_res" >&6; }
11305 if test `eval echo '${'$as_ac_var'}'` = yes; then
11306 cat >>confdefs.h <<_ACEOF
11307 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11308 @@ -10329,9 +10788,9 @@ done
11309 for ac_func in strtoull
11310 do
11311 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11312 -echo "$as_me:$LINENO: checking for $ac_func" >&5
11313 -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11314 -if eval "test \"\${$as_ac_var+set}\" = set"; then
11315 +{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11316 +echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11317 +if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11318 echo $ECHO_N "(cached) $ECHO_C" >&6
11319 else
11320 cat >conftest.$ac_ext <<_ACEOF
11321 @@ -10357,68 +10816,60 @@ cat >>conftest.$ac_ext <<_ACEOF
11322
11323 #undef $ac_func
11324
11325 -/* Override any gcc2 internal prototype to avoid an error. */
11326 +/* Override any GCC internal prototype to avoid an error.
11327 + Use char because int might match the return type of a GCC
11328 + builtin and then its argument prototype would still apply. */
11329 #ifdef __cplusplus
11330 extern "C"
11331 -{
11332 #endif
11333 -/* We use char because int might match the return type of a gcc2
11334 - builtin and then its argument prototype would still apply. */
11335 char $ac_func ();
11336 /* The GNU C library defines this for functions which it implements
11337 to always fail with ENOSYS. Some functions are actually named
11338 something starting with __ and the normal name is an alias. */
11339 -#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11340 +#if defined __stub_$ac_func || defined __stub___$ac_func
11341 choke me
11342 -#else
11343 -char (*f) () = $ac_func;
11344 -#endif
11345 -#ifdef __cplusplus
11346 -}
11347 #endif
11348
11349 int
11350 main ()
11351 {
11352 -return f != $ac_func;
11353 +return $ac_func ();
11354 ;
11355 return 0;
11356 }
11357 _ACEOF
11358 rm -f conftest.$ac_objext conftest$ac_exeext
11359 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11360 - (eval $ac_link) 2>conftest.er1
11361 +if { (ac_try="$ac_link"
11362 +case "(($ac_try" in
11363 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11364 + *) ac_try_echo=$ac_try;;
11365 +esac
11366 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11367 + (eval "$ac_link") 2>conftest.er1
11368 ac_status=$?
11369 grep -v '^ *+' conftest.er1 >conftest.err
11370 rm -f conftest.er1
11371 cat conftest.err >&5
11372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11373 - (exit $ac_status); } &&
11374 - { ac_try='test -z "$ac_c_werror_flag"
11375 - || test ! -s conftest.err'
11376 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11377 - (eval $ac_try) 2>&5
11378 - ac_status=$?
11379 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
11380 - (exit $ac_status); }; } &&
11381 - { ac_try='test -s conftest$ac_exeext'
11382 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11383 - (eval $ac_try) 2>&5
11384 - ac_status=$?
11385 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
11386 - (exit $ac_status); }; }; then
11387 + (exit $ac_status); } && {
11388 + test -z "$ac_c_werror_flag" ||
11389 + test ! -s conftest.err
11390 + } && test -s conftest$ac_exeext &&
11391 + $as_test_x conftest$ac_exeext; then
11392 eval "$as_ac_var=yes"
11393 else
11394 echo "$as_me: failed program was:" >&5
11395 sed 's/^/| /' conftest.$ac_ext >&5
11396
11397 -eval "$as_ac_var=no"
11398 + eval "$as_ac_var=no"
11399 fi
11400 -rm -f conftest.err conftest.$ac_objext \
11401 +
11402 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11403 conftest$ac_exeext conftest.$ac_ext
11404 fi
11405 -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11406 -echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11407 +ac_res=`eval echo '${'$as_ac_var'}'`
11408 + { echo "$as_me:$LINENO: result: $ac_res" >&5
11409 +echo "${ECHO_T}$ac_res" >&6; }
11410 if test `eval echo '${'$as_ac_var'}'` = yes; then
11411 cat >>confdefs.h <<_ACEOF
11412 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11413 @@ -10428,8 +10879,8 @@ fi
11414 done
11415
11416
11417 -echo "$as_me:$LINENO: checking whether basename is declared" >&5
11418 -echo $ECHO_N "checking whether basename is declared... $ECHO_C" >&6
11419 +{ echo "$as_me:$LINENO: checking whether basename is declared" >&5
11420 +echo $ECHO_N "checking whether basename is declared... $ECHO_C" >&6; }
11421 if test "${ac_cv_have_decl_basename+set}" = set; then
11422 echo $ECHO_N "(cached) $ECHO_C" >&6
11423 else
11424 @@ -10444,7 +10895,7 @@ int
11425 main ()
11426 {
11427 #ifndef basename
11428 - char *p = (char *) basename;
11429 + (void) basename;
11430 #endif
11431
11432 ;
11433 @@ -10452,38 +10903,34 @@ main ()
11434 }
11435 _ACEOF
11436 rm -f conftest.$ac_objext
11437 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11438 - (eval $ac_compile) 2>conftest.er1
11439 +if { (ac_try="$ac_compile"
11440 +case "(($ac_try" in
11441 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11442 + *) ac_try_echo=$ac_try;;
11443 +esac
11444 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11445 + (eval "$ac_compile") 2>conftest.er1
11446 ac_status=$?
11447 grep -v '^ *+' conftest.er1 >conftest.err
11448 rm -f conftest.er1
11449 cat conftest.err >&5
11450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11451 - (exit $ac_status); } &&
11452 - { ac_try='test -z "$ac_c_werror_flag"
11453 - || test ! -s conftest.err'
11454 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11455 - (eval $ac_try) 2>&5
11456 - ac_status=$?
11457 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
11458 - (exit $ac_status); }; } &&
11459 - { ac_try='test -s conftest.$ac_objext'
11460 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11461 - (eval $ac_try) 2>&5
11462 - ac_status=$?
11463 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
11464 - (exit $ac_status); }; }; then
11465 + (exit $ac_status); } && {
11466 + test -z "$ac_c_werror_flag" ||
11467 + test ! -s conftest.err
11468 + } && test -s conftest.$ac_objext; then
11469 ac_cv_have_decl_basename=yes
11470 else
11471 echo "$as_me: failed program was:" >&5
11472 sed 's/^/| /' conftest.$ac_ext >&5
11473
11474 -ac_cv_have_decl_basename=no
11475 + ac_cv_have_decl_basename=no
11476 fi
11477 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11478 +
11479 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11480 fi
11481 -echo "$as_me:$LINENO: result: $ac_cv_have_decl_basename" >&5
11482 -echo "${ECHO_T}$ac_cv_have_decl_basename" >&6
11483 +{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_basename" >&5
11484 +echo "${ECHO_T}$ac_cv_have_decl_basename" >&6; }
11485 if test $ac_cv_have_decl_basename = yes; then
11486
11487 cat >>confdefs.h <<_ACEOF
11488 @@ -10500,8 +10947,8 @@ _ACEOF
11489 fi
11490
11491
11492 -echo "$as_me:$LINENO: checking whether ftello is declared" >&5
11493 -echo $ECHO_N "checking whether ftello is declared... $ECHO_C" >&6
11494 +{ echo "$as_me:$LINENO: checking whether ftello is declared" >&5
11495 +echo $ECHO_N "checking whether ftello is declared... $ECHO_C" >&6; }
11496 if test "${ac_cv_have_decl_ftello+set}" = set; then
11497 echo $ECHO_N "(cached) $ECHO_C" >&6
11498 else
11499 @@ -10516,7 +10963,7 @@ int
11500 main ()
11501 {
11502 #ifndef ftello
11503 - char *p = (char *) ftello;
11504 + (void) ftello;
11505 #endif
11506
11507 ;
11508 @@ -10524,38 +10971,34 @@ main ()
11509 }
11510 _ACEOF
11511 rm -f conftest.$ac_objext
11512 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11513 - (eval $ac_compile) 2>conftest.er1
11514 +if { (ac_try="$ac_compile"
11515 +case "(($ac_try" in
11516 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11517 + *) ac_try_echo=$ac_try;;
11518 +esac
11519 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11520 + (eval "$ac_compile") 2>conftest.er1
11521 ac_status=$?
11522 grep -v '^ *+' conftest.er1 >conftest.err
11523 rm -f conftest.er1
11524 cat conftest.err >&5
11525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11526 - (exit $ac_status); } &&
11527 - { ac_try='test -z "$ac_c_werror_flag"
11528 - || test ! -s conftest.err'
11529 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11530 - (eval $ac_try) 2>&5
11531 - ac_status=$?
11532 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
11533 - (exit $ac_status); }; } &&
11534 - { ac_try='test -s conftest.$ac_objext'
11535 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11536 - (eval $ac_try) 2>&5
11537 - ac_status=$?
11538 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
11539 - (exit $ac_status); }; }; then
11540 + (exit $ac_status); } && {
11541 + test -z "$ac_c_werror_flag" ||
11542 + test ! -s conftest.err
11543 + } && test -s conftest.$ac_objext; then
11544 ac_cv_have_decl_ftello=yes
11545 else
11546 echo "$as_me: failed program was:" >&5
11547 sed 's/^/| /' conftest.$ac_ext >&5
11548
11549 -ac_cv_have_decl_ftello=no
11550 + ac_cv_have_decl_ftello=no
11551 fi
11552 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11553 +
11554 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11555 fi
11556 -echo "$as_me:$LINENO: result: $ac_cv_have_decl_ftello" >&5
11557 -echo "${ECHO_T}$ac_cv_have_decl_ftello" >&6
11558 +{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_ftello" >&5
11559 +echo "${ECHO_T}$ac_cv_have_decl_ftello" >&6; }
11560 if test $ac_cv_have_decl_ftello = yes; then
11561
11562 cat >>confdefs.h <<_ACEOF
11563 @@ -10572,8 +11015,8 @@ _ACEOF
11564 fi
11565
11566
11567 -echo "$as_me:$LINENO: checking whether ftello64 is declared" >&5
11568 -echo $ECHO_N "checking whether ftello64 is declared... $ECHO_C" >&6
11569 +{ echo "$as_me:$LINENO: checking whether ftello64 is declared" >&5
11570 +echo $ECHO_N "checking whether ftello64 is declared... $ECHO_C" >&6; }
11571 if test "${ac_cv_have_decl_ftello64+set}" = set; then
11572 echo $ECHO_N "(cached) $ECHO_C" >&6
11573 else
11574 @@ -10588,7 +11031,7 @@ int
11575 main ()
11576 {
11577 #ifndef ftello64
11578 - char *p = (char *) ftello64;
11579 + (void) ftello64;
11580 #endif
11581
11582 ;
11583 @@ -10596,38 +11039,34 @@ main ()
11584 }
11585 _ACEOF
11586 rm -f conftest.$ac_objext
11587 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11588 - (eval $ac_compile) 2>conftest.er1
11589 +if { (ac_try="$ac_compile"
11590 +case "(($ac_try" in
11591 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11592 + *) ac_try_echo=$ac_try;;
11593 +esac
11594 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11595 + (eval "$ac_compile") 2>conftest.er1
11596 ac_status=$?
11597 grep -v '^ *+' conftest.er1 >conftest.err
11598 rm -f conftest.er1
11599 cat conftest.err >&5
11600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11601 - (exit $ac_status); } &&
11602 - { ac_try='test -z "$ac_c_werror_flag"
11603 - || test ! -s conftest.err'
11604 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11605 - (eval $ac_try) 2>&5
11606 - ac_status=$?
11607 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
11608 - (exit $ac_status); }; } &&
11609 - { ac_try='test -s conftest.$ac_objext'
11610 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11611 - (eval $ac_try) 2>&5
11612 - ac_status=$?
11613 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
11614 - (exit $ac_status); }; }; then
11615 + (exit $ac_status); } && {
11616 + test -z "$ac_c_werror_flag" ||
11617 + test ! -s conftest.err
11618 + } && test -s conftest.$ac_objext; then
11619 ac_cv_have_decl_ftello64=yes
11620 else
11621 echo "$as_me: failed program was:" >&5
11622 sed 's/^/| /' conftest.$ac_ext >&5
11623
11624 -ac_cv_have_decl_ftello64=no
11625 + ac_cv_have_decl_ftello64=no
11626 fi
11627 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11628 +
11629 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11630 fi
11631 -echo "$as_me:$LINENO: result: $ac_cv_have_decl_ftello64" >&5
11632 -echo "${ECHO_T}$ac_cv_have_decl_ftello64" >&6
11633 +{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_ftello64" >&5
11634 +echo "${ECHO_T}$ac_cv_have_decl_ftello64" >&6; }
11635 if test $ac_cv_have_decl_ftello64 = yes; then
11636
11637 cat >>confdefs.h <<_ACEOF
11638 @@ -10644,8 +11083,8 @@ _ACEOF
11639 fi
11640
11641
11642 -echo "$as_me:$LINENO: checking whether fseeko is declared" >&5
11643 -echo $ECHO_N "checking whether fseeko is declared... $ECHO_C" >&6
11644 +{ echo "$as_me:$LINENO: checking whether fseeko is declared" >&5
11645 +echo $ECHO_N "checking whether fseeko is declared... $ECHO_C" >&6; }
11646 if test "${ac_cv_have_decl_fseeko+set}" = set; then
11647 echo $ECHO_N "(cached) $ECHO_C" >&6
11648 else
11649 @@ -10660,7 +11099,7 @@ int
11650 main ()
11651 {
11652 #ifndef fseeko
11653 - char *p = (char *) fseeko;
11654 + (void) fseeko;
11655 #endif
11656
11657 ;
11658 @@ -10668,38 +11107,34 @@ main ()
11659 }
11660 _ACEOF
11661 rm -f conftest.$ac_objext
11662 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11663 - (eval $ac_compile) 2>conftest.er1
11664 +if { (ac_try="$ac_compile"
11665 +case "(($ac_try" in
11666 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11667 + *) ac_try_echo=$ac_try;;
11668 +esac
11669 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11670 + (eval "$ac_compile") 2>conftest.er1
11671 ac_status=$?
11672 grep -v '^ *+' conftest.er1 >conftest.err
11673 rm -f conftest.er1
11674 cat conftest.err >&5
11675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11676 - (exit $ac_status); } &&
11677 - { ac_try='test -z "$ac_c_werror_flag"
11678 - || test ! -s conftest.err'
11679 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11680 - (eval $ac_try) 2>&5
11681 - ac_status=$?
11682 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
11683 - (exit $ac_status); }; } &&
11684 - { ac_try='test -s conftest.$ac_objext'
11685 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11686 - (eval $ac_try) 2>&5
11687 - ac_status=$?
11688 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
11689 - (exit $ac_status); }; }; then
11690 + (exit $ac_status); } && {
11691 + test -z "$ac_c_werror_flag" ||
11692 + test ! -s conftest.err
11693 + } && test -s conftest.$ac_objext; then
11694 ac_cv_have_decl_fseeko=yes
11695 else
11696 echo "$as_me: failed program was:" >&5
11697 sed 's/^/| /' conftest.$ac_ext >&5
11698
11699 -ac_cv_have_decl_fseeko=no
11700 + ac_cv_have_decl_fseeko=no
11701 fi
11702 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11703 +
11704 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11705 fi
11706 -echo "$as_me:$LINENO: result: $ac_cv_have_decl_fseeko" >&5
11707 -echo "${ECHO_T}$ac_cv_have_decl_fseeko" >&6
11708 +{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_fseeko" >&5
11709 +echo "${ECHO_T}$ac_cv_have_decl_fseeko" >&6; }
11710 if test $ac_cv_have_decl_fseeko = yes; then
11711
11712 cat >>confdefs.h <<_ACEOF
11713 @@ -10716,8 +11151,8 @@ _ACEOF
11714 fi
11715
11716
11717 -echo "$as_me:$LINENO: checking whether fseeko64 is declared" >&5
11718 -echo $ECHO_N "checking whether fseeko64 is declared... $ECHO_C" >&6
11719 +{ echo "$as_me:$LINENO: checking whether fseeko64 is declared" >&5
11720 +echo $ECHO_N "checking whether fseeko64 is declared... $ECHO_C" >&6; }
11721 if test "${ac_cv_have_decl_fseeko64+set}" = set; then
11722 echo $ECHO_N "(cached) $ECHO_C" >&6
11723 else
11724 @@ -10732,7 +11167,7 @@ int
11725 main ()
11726 {
11727 #ifndef fseeko64
11728 - char *p = (char *) fseeko64;
11729 + (void) fseeko64;
11730 #endif
11731
11732 ;
11733 @@ -10740,38 +11175,34 @@ main ()
11734 }
11735 _ACEOF
11736 rm -f conftest.$ac_objext
11737 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11738 - (eval $ac_compile) 2>conftest.er1
11739 +if { (ac_try="$ac_compile"
11740 +case "(($ac_try" in
11741 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11742 + *) ac_try_echo=$ac_try;;
11743 +esac
11744 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11745 + (eval "$ac_compile") 2>conftest.er1
11746 ac_status=$?
11747 grep -v '^ *+' conftest.er1 >conftest.err
11748 rm -f conftest.er1
11749 cat conftest.err >&5
11750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11751 - (exit $ac_status); } &&
11752 - { ac_try='test -z "$ac_c_werror_flag"
11753 - || test ! -s conftest.err'
11754 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11755 - (eval $ac_try) 2>&5
11756 - ac_status=$?
11757 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
11758 - (exit $ac_status); }; } &&
11759 - { ac_try='test -s conftest.$ac_objext'
11760 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11761 - (eval $ac_try) 2>&5
11762 - ac_status=$?
11763 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
11764 - (exit $ac_status); }; }; then
11765 + (exit $ac_status); } && {
11766 + test -z "$ac_c_werror_flag" ||
11767 + test ! -s conftest.err
11768 + } && test -s conftest.$ac_objext; then
11769 ac_cv_have_decl_fseeko64=yes
11770 else
11771 echo "$as_me: failed program was:" >&5
11772 sed 's/^/| /' conftest.$ac_ext >&5
11773
11774 -ac_cv_have_decl_fseeko64=no
11775 + ac_cv_have_decl_fseeko64=no
11776 fi
11777 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11778 +
11779 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11780 fi
11781 -echo "$as_me:$LINENO: result: $ac_cv_have_decl_fseeko64" >&5
11782 -echo "${ECHO_T}$ac_cv_have_decl_fseeko64" >&6
11783 +{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_fseeko64" >&5
11784 +echo "${ECHO_T}$ac_cv_have_decl_fseeko64" >&6; }
11785 if test $ac_cv_have_decl_fseeko64 = yes; then
11786
11787 cat >>confdefs.h <<_ACEOF
11788 @@ -10799,8 +11230,8 @@ _ACEOF
11789 ;;
11790 esac
11791
11792 -echo "$as_me:$LINENO: checking whether ffs is declared" >&5
11793 -echo $ECHO_N "checking whether ffs is declared... $ECHO_C" >&6
11794 +{ echo "$as_me:$LINENO: checking whether ffs is declared" >&5
11795 +echo $ECHO_N "checking whether ffs is declared... $ECHO_C" >&6; }
11796 if test "${ac_cv_have_decl_ffs+set}" = set; then
11797 echo $ECHO_N "(cached) $ECHO_C" >&6
11798 else
11799 @@ -10815,7 +11246,7 @@ int
11800 main ()
11801 {
11802 #ifndef ffs
11803 - char *p = (char *) ffs;
11804 + (void) ffs;
11805 #endif
11806
11807 ;
11808 @@ -10823,38 +11254,34 @@ main ()
11809 }
11810 _ACEOF
11811 rm -f conftest.$ac_objext
11812 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11813 - (eval $ac_compile) 2>conftest.er1
11814 +if { (ac_try="$ac_compile"
11815 +case "(($ac_try" in
11816 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11817 + *) ac_try_echo=$ac_try;;
11818 +esac
11819 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11820 + (eval "$ac_compile") 2>conftest.er1
11821 ac_status=$?
11822 grep -v '^ *+' conftest.er1 >conftest.err
11823 rm -f conftest.er1
11824 cat conftest.err >&5
11825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11826 - (exit $ac_status); } &&
11827 - { ac_try='test -z "$ac_c_werror_flag"
11828 - || test ! -s conftest.err'
11829 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11830 - (eval $ac_try) 2>&5
11831 - ac_status=$?
11832 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
11833 - (exit $ac_status); }; } &&
11834 - { ac_try='test -s conftest.$ac_objext'
11835 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11836 - (eval $ac_try) 2>&5
11837 - ac_status=$?
11838 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
11839 - (exit $ac_status); }; }; then
11840 + (exit $ac_status); } && {
11841 + test -z "$ac_c_werror_flag" ||
11842 + test ! -s conftest.err
11843 + } && test -s conftest.$ac_objext; then
11844 ac_cv_have_decl_ffs=yes
11845 else
11846 echo "$as_me: failed program was:" >&5
11847 sed 's/^/| /' conftest.$ac_ext >&5
11848
11849 -ac_cv_have_decl_ffs=no
11850 + ac_cv_have_decl_ffs=no
11851 fi
11852 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11853 +
11854 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11855 fi
11856 -echo "$as_me:$LINENO: result: $ac_cv_have_decl_ffs" >&5
11857 -echo "${ECHO_T}$ac_cv_have_decl_ffs" >&6
11858 +{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_ffs" >&5
11859 +echo "${ECHO_T}$ac_cv_have_decl_ffs" >&6; }
11860 if test $ac_cv_have_decl_ffs = yes; then
11861
11862 cat >>confdefs.h <<_ACEOF
11863 @@ -10871,8 +11298,8 @@ _ACEOF
11864 fi
11865
11866
11867 -echo "$as_me:$LINENO: checking whether free is declared" >&5
11868 -echo $ECHO_N "checking whether free is declared... $ECHO_C" >&6
11869 +{ echo "$as_me:$LINENO: checking whether free is declared" >&5
11870 +echo $ECHO_N "checking whether free is declared... $ECHO_C" >&6; }
11871 if test "${ac_cv_have_decl_free+set}" = set; then
11872 echo $ECHO_N "(cached) $ECHO_C" >&6
11873 else
11874 @@ -10887,7 +11314,7 @@ int
11875 main ()
11876 {
11877 #ifndef free
11878 - char *p = (char *) free;
11879 + (void) free;
11880 #endif
11881
11882 ;
11883 @@ -10895,38 +11322,34 @@ main ()
11884 }
11885 _ACEOF
11886 rm -f conftest.$ac_objext
11887 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11888 - (eval $ac_compile) 2>conftest.er1
11889 +if { (ac_try="$ac_compile"
11890 +case "(($ac_try" in
11891 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11892 + *) ac_try_echo=$ac_try;;
11893 +esac
11894 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11895 + (eval "$ac_compile") 2>conftest.er1
11896 ac_status=$?
11897 grep -v '^ *+' conftest.er1 >conftest.err
11898 rm -f conftest.er1
11899 cat conftest.err >&5
11900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11901 - (exit $ac_status); } &&
11902 - { ac_try='test -z "$ac_c_werror_flag"
11903 - || test ! -s conftest.err'
11904 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11905 - (eval $ac_try) 2>&5
11906 - ac_status=$?
11907 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
11908 - (exit $ac_status); }; } &&
11909 - { ac_try='test -s conftest.$ac_objext'
11910 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11911 - (eval $ac_try) 2>&5
11912 - ac_status=$?
11913 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
11914 - (exit $ac_status); }; }; then
11915 + (exit $ac_status); } && {
11916 + test -z "$ac_c_werror_flag" ||
11917 + test ! -s conftest.err
11918 + } && test -s conftest.$ac_objext; then
11919 ac_cv_have_decl_free=yes
11920 else
11921 echo "$as_me: failed program was:" >&5
11922 sed 's/^/| /' conftest.$ac_ext >&5
11923
11924 -ac_cv_have_decl_free=no
11925 + ac_cv_have_decl_free=no
11926 fi
11927 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11928 +
11929 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11930 fi
11931 -echo "$as_me:$LINENO: result: $ac_cv_have_decl_free" >&5
11932 -echo "${ECHO_T}$ac_cv_have_decl_free" >&6
11933 +{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_free" >&5
11934 +echo "${ECHO_T}$ac_cv_have_decl_free" >&6; }
11935 if test $ac_cv_have_decl_free = yes; then
11936
11937 cat >>confdefs.h <<_ACEOF
11938 @@ -10943,8 +11366,8 @@ _ACEOF
11939 fi
11940
11941
11942 -echo "$as_me:$LINENO: checking whether getenv is declared" >&5
11943 -echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6
11944 +{ echo "$as_me:$LINENO: checking whether getenv is declared" >&5
11945 +echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6; }
11946 if test "${ac_cv_have_decl_getenv+set}" = set; then
11947 echo $ECHO_N "(cached) $ECHO_C" >&6
11948 else
11949 @@ -10959,7 +11382,7 @@ int
11950 main ()
11951 {
11952 #ifndef getenv
11953 - char *p = (char *) getenv;
11954 + (void) getenv;
11955 #endif
11956
11957 ;
11958 @@ -10967,38 +11390,34 @@ main ()
11959 }
11960 _ACEOF
11961 rm -f conftest.$ac_objext
11962 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11963 - (eval $ac_compile) 2>conftest.er1
11964 +if { (ac_try="$ac_compile"
11965 +case "(($ac_try" in
11966 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11967 + *) ac_try_echo=$ac_try;;
11968 +esac
11969 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11970 + (eval "$ac_compile") 2>conftest.er1
11971 ac_status=$?
11972 grep -v '^ *+' conftest.er1 >conftest.err
11973 rm -f conftest.er1
11974 cat conftest.err >&5
11975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11976 - (exit $ac_status); } &&
11977 - { ac_try='test -z "$ac_c_werror_flag"
11978 - || test ! -s conftest.err'
11979 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11980 - (eval $ac_try) 2>&5
11981 - ac_status=$?
11982 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
11983 - (exit $ac_status); }; } &&
11984 - { ac_try='test -s conftest.$ac_objext'
11985 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11986 - (eval $ac_try) 2>&5
11987 - ac_status=$?
11988 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
11989 - (exit $ac_status); }; }; then
11990 + (exit $ac_status); } && {
11991 + test -z "$ac_c_werror_flag" ||
11992 + test ! -s conftest.err
11993 + } && test -s conftest.$ac_objext; then
11994 ac_cv_have_decl_getenv=yes
11995 else
11996 echo "$as_me: failed program was:" >&5
11997 sed 's/^/| /' conftest.$ac_ext >&5
11998
11999 -ac_cv_have_decl_getenv=no
12000 + ac_cv_have_decl_getenv=no
12001 fi
12002 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12003 +
12004 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12005 fi
12006 -echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
12007 -echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6
12008 +{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
12009 +echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6; }
12010 if test $ac_cv_have_decl_getenv = yes; then
12011
12012 cat >>confdefs.h <<_ACEOF
12013 @@ -11015,8 +11434,8 @@ _ACEOF
12014 fi
12015
12016
12017 -echo "$as_me:$LINENO: checking whether malloc is declared" >&5
12018 -echo $ECHO_N "checking whether malloc is declared... $ECHO_C" >&6
12019 +{ echo "$as_me:$LINENO: checking whether malloc is declared" >&5
12020 +echo $ECHO_N "checking whether malloc is declared... $ECHO_C" >&6; }
12021 if test "${ac_cv_have_decl_malloc+set}" = set; then
12022 echo $ECHO_N "(cached) $ECHO_C" >&6
12023 else
12024 @@ -11031,7 +11450,7 @@ int
12025 main ()
12026 {
12027 #ifndef malloc
12028 - char *p = (char *) malloc;
12029 + (void) malloc;
12030 #endif
12031
12032 ;
12033 @@ -11039,38 +11458,34 @@ main ()
12034 }
12035 _ACEOF
12036 rm -f conftest.$ac_objext
12037 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12038 - (eval $ac_compile) 2>conftest.er1
12039 +if { (ac_try="$ac_compile"
12040 +case "(($ac_try" in
12041 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12042 + *) ac_try_echo=$ac_try;;
12043 +esac
12044 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12045 + (eval "$ac_compile") 2>conftest.er1
12046 ac_status=$?
12047 grep -v '^ *+' conftest.er1 >conftest.err
12048 rm -f conftest.er1
12049 cat conftest.err >&5
12050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12051 - (exit $ac_status); } &&
12052 - { ac_try='test -z "$ac_c_werror_flag"
12053 - || test ! -s conftest.err'
12054 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12055 - (eval $ac_try) 2>&5
12056 - ac_status=$?
12057 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
12058 - (exit $ac_status); }; } &&
12059 - { ac_try='test -s conftest.$ac_objext'
12060 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12061 - (eval $ac_try) 2>&5
12062 - ac_status=$?
12063 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
12064 - (exit $ac_status); }; }; then
12065 + (exit $ac_status); } && {
12066 + test -z "$ac_c_werror_flag" ||
12067 + test ! -s conftest.err
12068 + } && test -s conftest.$ac_objext; then
12069 ac_cv_have_decl_malloc=yes
12070 else
12071 echo "$as_me: failed program was:" >&5
12072 sed 's/^/| /' conftest.$ac_ext >&5
12073
12074 -ac_cv_have_decl_malloc=no
12075 + ac_cv_have_decl_malloc=no
12076 fi
12077 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12078 +
12079 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12080 fi
12081 -echo "$as_me:$LINENO: result: $ac_cv_have_decl_malloc" >&5
12082 -echo "${ECHO_T}$ac_cv_have_decl_malloc" >&6
12083 +{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_malloc" >&5
12084 +echo "${ECHO_T}$ac_cv_have_decl_malloc" >&6; }
12085 if test $ac_cv_have_decl_malloc = yes; then
12086
12087 cat >>confdefs.h <<_ACEOF
12088 @@ -11087,8 +11502,8 @@ _ACEOF
12089 fi
12090
12091
12092 -echo "$as_me:$LINENO: checking whether realloc is declared" >&5
12093 -echo $ECHO_N "checking whether realloc is declared... $ECHO_C" >&6
12094 +{ echo "$as_me:$LINENO: checking whether realloc is declared" >&5
12095 +echo $ECHO_N "checking whether realloc is declared... $ECHO_C" >&6; }
12096 if test "${ac_cv_have_decl_realloc+set}" = set; then
12097 echo $ECHO_N "(cached) $ECHO_C" >&6
12098 else
12099 @@ -11103,7 +11518,7 @@ int
12100 main ()
12101 {
12102 #ifndef realloc
12103 - char *p = (char *) realloc;
12104 + (void) realloc;
12105 #endif
12106
12107 ;
12108 @@ -11111,38 +11526,34 @@ main ()
12109 }
12110 _ACEOF
12111 rm -f conftest.$ac_objext
12112 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12113 - (eval $ac_compile) 2>conftest.er1
12114 +if { (ac_try="$ac_compile"
12115 +case "(($ac_try" in
12116 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12117 + *) ac_try_echo=$ac_try;;
12118 +esac
12119 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12120 + (eval "$ac_compile") 2>conftest.er1
12121 ac_status=$?
12122 grep -v '^ *+' conftest.er1 >conftest.err
12123 rm -f conftest.er1
12124 cat conftest.err >&5
12125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12126 - (exit $ac_status); } &&
12127 - { ac_try='test -z "$ac_c_werror_flag"
12128 - || test ! -s conftest.err'
12129 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12130 - (eval $ac_try) 2>&5
12131 - ac_status=$?
12132 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
12133 - (exit $ac_status); }; } &&
12134 - { ac_try='test -s conftest.$ac_objext'
12135 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12136 - (eval $ac_try) 2>&5
12137 - ac_status=$?
12138 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
12139 - (exit $ac_status); }; }; then
12140 + (exit $ac_status); } && {
12141 + test -z "$ac_c_werror_flag" ||
12142 + test ! -s conftest.err
12143 + } && test -s conftest.$ac_objext; then
12144 ac_cv_have_decl_realloc=yes
12145 else
12146 echo "$as_me: failed program was:" >&5
12147 sed 's/^/| /' conftest.$ac_ext >&5
12148
12149 -ac_cv_have_decl_realloc=no
12150 + ac_cv_have_decl_realloc=no
12151 fi
12152 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12153 +
12154 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12155 fi
12156 -echo "$as_me:$LINENO: result: $ac_cv_have_decl_realloc" >&5
12157 -echo "${ECHO_T}$ac_cv_have_decl_realloc" >&6
12158 +{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_realloc" >&5
12159 +echo "${ECHO_T}$ac_cv_have_decl_realloc" >&6; }
12160 if test $ac_cv_have_decl_realloc = yes; then
12161
12162 cat >>confdefs.h <<_ACEOF
12163 @@ -11159,8 +11570,8 @@ _ACEOF
12164 fi
12165
12166
12167 -echo "$as_me:$LINENO: checking whether stpcpy is declared" >&5
12168 -echo $ECHO_N "checking whether stpcpy is declared... $ECHO_C" >&6
12169 +{ echo "$as_me:$LINENO: checking whether stpcpy is declared" >&5
12170 +echo $ECHO_N "checking whether stpcpy is declared... $ECHO_C" >&6; }
12171 if test "${ac_cv_have_decl_stpcpy+set}" = set; then
12172 echo $ECHO_N "(cached) $ECHO_C" >&6
12173 else
12174 @@ -11175,7 +11586,7 @@ int
12175 main ()
12176 {
12177 #ifndef stpcpy
12178 - char *p = (char *) stpcpy;
12179 + (void) stpcpy;
12180 #endif
12181
12182 ;
12183 @@ -11183,38 +11594,34 @@ main ()
12184 }
12185 _ACEOF
12186 rm -f conftest.$ac_objext
12187 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12188 - (eval $ac_compile) 2>conftest.er1
12189 +if { (ac_try="$ac_compile"
12190 +case "(($ac_try" in
12191 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12192 + *) ac_try_echo=$ac_try;;
12193 +esac
12194 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12195 + (eval "$ac_compile") 2>conftest.er1
12196 ac_status=$?
12197 grep -v '^ *+' conftest.er1 >conftest.err
12198 rm -f conftest.er1
12199 cat conftest.err >&5
12200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12201 - (exit $ac_status); } &&
12202 - { ac_try='test -z "$ac_c_werror_flag"
12203 - || test ! -s conftest.err'
12204 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12205 - (eval $ac_try) 2>&5
12206 - ac_status=$?
12207 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
12208 - (exit $ac_status); }; } &&
12209 - { ac_try='test -s conftest.$ac_objext'
12210 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12211 - (eval $ac_try) 2>&5
12212 - ac_status=$?
12213 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
12214 - (exit $ac_status); }; }; then
12215 + (exit $ac_status); } && {
12216 + test -z "$ac_c_werror_flag" ||
12217 + test ! -s conftest.err
12218 + } && test -s conftest.$ac_objext; then
12219 ac_cv_have_decl_stpcpy=yes
12220 else
12221 echo "$as_me: failed program was:" >&5
12222 sed 's/^/| /' conftest.$ac_ext >&5
12223
12224 -ac_cv_have_decl_stpcpy=no
12225 + ac_cv_have_decl_stpcpy=no
12226 fi
12227 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12228 +
12229 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12230 fi
12231 -echo "$as_me:$LINENO: result: $ac_cv_have_decl_stpcpy" >&5
12232 -echo "${ECHO_T}$ac_cv_have_decl_stpcpy" >&6
12233 +{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_stpcpy" >&5
12234 +echo "${ECHO_T}$ac_cv_have_decl_stpcpy" >&6; }
12235 if test $ac_cv_have_decl_stpcpy = yes; then
12236
12237 cat >>confdefs.h <<_ACEOF
12238 @@ -11231,8 +11638,8 @@ _ACEOF
12239 fi
12240
12241
12242 -echo "$as_me:$LINENO: checking whether strstr is declared" >&5
12243 -echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6
12244 +{ echo "$as_me:$LINENO: checking whether strstr is declared" >&5
12245 +echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6; }
12246 if test "${ac_cv_have_decl_strstr+set}" = set; then
12247 echo $ECHO_N "(cached) $ECHO_C" >&6
12248 else
12249 @@ -11247,7 +11654,7 @@ int
12250 main ()
12251 {
12252 #ifndef strstr
12253 - char *p = (char *) strstr;
12254 + (void) strstr;
12255 #endif
12256
12257 ;
12258 @@ -11255,38 +11662,34 @@ main ()
12259 }
12260 _ACEOF
12261 rm -f conftest.$ac_objext
12262 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12263 - (eval $ac_compile) 2>conftest.er1
12264 +if { (ac_try="$ac_compile"
12265 +case "(($ac_try" in
12266 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12267 + *) ac_try_echo=$ac_try;;
12268 +esac
12269 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12270 + (eval "$ac_compile") 2>conftest.er1
12271 ac_status=$?
12272 grep -v '^ *+' conftest.er1 >conftest.err
12273 rm -f conftest.er1
12274 cat conftest.err >&5
12275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12276 - (exit $ac_status); } &&
12277 - { ac_try='test -z "$ac_c_werror_flag"
12278 - || test ! -s conftest.err'
12279 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12280 - (eval $ac_try) 2>&5
12281 - ac_status=$?
12282 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
12283 - (exit $ac_status); }; } &&
12284 - { ac_try='test -s conftest.$ac_objext'
12285 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12286 - (eval $ac_try) 2>&5
12287 - ac_status=$?
12288 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
12289 - (exit $ac_status); }; }; then
12290 + (exit $ac_status); } && {
12291 + test -z "$ac_c_werror_flag" ||
12292 + test ! -s conftest.err
12293 + } && test -s conftest.$ac_objext; then
12294 ac_cv_have_decl_strstr=yes
12295 else
12296 echo "$as_me: failed program was:" >&5
12297 sed 's/^/| /' conftest.$ac_ext >&5
12298
12299 -ac_cv_have_decl_strstr=no
12300 + ac_cv_have_decl_strstr=no
12301 fi
12302 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12303 +
12304 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12305 fi
12306 -echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5
12307 -echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6
12308 +{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5
12309 +echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6; }
12310 if test $ac_cv_have_decl_strstr = yes; then
12311
12312 cat >>confdefs.h <<_ACEOF
12313 @@ -11303,8 +11706,8 @@ _ACEOF
12314 fi
12315
12316
12317 -echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
12318 -echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
12319 +{ echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
12320 +echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6; }
12321 if test "${ac_cv_have_decl_snprintf+set}" = set; then
12322 echo $ECHO_N "(cached) $ECHO_C" >&6
12323 else
12324 @@ -11319,7 +11722,7 @@ int
12325 main ()
12326 {
12327 #ifndef snprintf
12328 - char *p = (char *) snprintf;
12329 + (void) snprintf;
12330 #endif
12331
12332 ;
12333 @@ -11327,38 +11730,34 @@ main ()
12334 }
12335 _ACEOF
12336 rm -f conftest.$ac_objext
12337 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12338 - (eval $ac_compile) 2>conftest.er1
12339 +if { (ac_try="$ac_compile"
12340 +case "(($ac_try" in
12341 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12342 + *) ac_try_echo=$ac_try;;
12343 +esac
12344 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12345 + (eval "$ac_compile") 2>conftest.er1
12346 ac_status=$?
12347 grep -v '^ *+' conftest.er1 >conftest.err
12348 rm -f conftest.er1
12349 cat conftest.err >&5
12350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12351 - (exit $ac_status); } &&
12352 - { ac_try='test -z "$ac_c_werror_flag"
12353 - || test ! -s conftest.err'
12354 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12355 - (eval $ac_try) 2>&5
12356 - ac_status=$?
12357 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
12358 - (exit $ac_status); }; } &&
12359 - { ac_try='test -s conftest.$ac_objext'
12360 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12361 - (eval $ac_try) 2>&5
12362 - ac_status=$?
12363 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
12364 - (exit $ac_status); }; }; then
12365 + (exit $ac_status); } && {
12366 + test -z "$ac_c_werror_flag" ||
12367 + test ! -s conftest.err
12368 + } && test -s conftest.$ac_objext; then
12369 ac_cv_have_decl_snprintf=yes
12370 else
12371 echo "$as_me: failed program was:" >&5
12372 sed 's/^/| /' conftest.$ac_ext >&5
12373
12374 -ac_cv_have_decl_snprintf=no
12375 + ac_cv_have_decl_snprintf=no
12376 fi
12377 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12378 +
12379 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12380 fi
12381 -echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
12382 -echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
12383 +{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
12384 +echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6; }
12385 if test $ac_cv_have_decl_snprintf = yes; then
12386
12387 cat >>confdefs.h <<_ACEOF
12388 @@ -11375,8 +11774,8 @@ _ACEOF
12389 fi
12390
12391
12392 -echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
12393 -echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
12394 +{ echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
12395 +echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6; }
12396 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
12397 echo $ECHO_N "(cached) $ECHO_C" >&6
12398 else
12399 @@ -11391,7 +11790,7 @@ int
12400 main ()
12401 {
12402 #ifndef vsnprintf
12403 - char *p = (char *) vsnprintf;
12404 + (void) vsnprintf;
12405 #endif
12406
12407 ;
12408 @@ -11399,38 +11798,34 @@ main ()
12409 }
12410 _ACEOF
12411 rm -f conftest.$ac_objext
12412 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12413 - (eval $ac_compile) 2>conftest.er1
12414 +if { (ac_try="$ac_compile"
12415 +case "(($ac_try" in
12416 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12417 + *) ac_try_echo=$ac_try;;
12418 +esac
12419 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12420 + (eval "$ac_compile") 2>conftest.er1
12421 ac_status=$?
12422 grep -v '^ *+' conftest.er1 >conftest.err
12423 rm -f conftest.er1
12424 cat conftest.err >&5
12425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12426 - (exit $ac_status); } &&
12427 - { ac_try='test -z "$ac_c_werror_flag"
12428 - || test ! -s conftest.err'
12429 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12430 - (eval $ac_try) 2>&5
12431 - ac_status=$?
12432 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
12433 - (exit $ac_status); }; } &&
12434 - { ac_try='test -s conftest.$ac_objext'
12435 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12436 - (eval $ac_try) 2>&5
12437 - ac_status=$?
12438 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
12439 - (exit $ac_status); }; }; then
12440 + (exit $ac_status); } && {
12441 + test -z "$ac_c_werror_flag" ||
12442 + test ! -s conftest.err
12443 + } && test -s conftest.$ac_objext; then
12444 ac_cv_have_decl_vsnprintf=yes
12445 else
12446 echo "$as_me: failed program was:" >&5
12447 sed 's/^/| /' conftest.$ac_ext >&5
12448
12449 -ac_cv_have_decl_vsnprintf=no
12450 + ac_cv_have_decl_vsnprintf=no
12451 fi
12452 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12453 +
12454 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12455 fi
12456 -echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
12457 -echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
12458 +{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
12459 +echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6; }
12460 if test $ac_cv_have_decl_vsnprintf = yes; then
12461
12462 cat >>confdefs.h <<_ACEOF
12463 @@ -11609,8 +12004,8 @@ if test "${target}" = "${host}"; then
12464 COREFLAG="$COREFLAG -DAIX_CORE_DUMPX_CORE"
12465 # Not all versions of AIX with -DAIX_CORE_DUMPX_CORE
12466 # have c_impl as a member of struct core_dumpx
12467 - echo "$as_me:$LINENO: checking for c_impl in struct core_dumpx" >&5
12468 -echo $ECHO_N "checking for c_impl in struct core_dumpx... $ECHO_C" >&6
12469 + { echo "$as_me:$LINENO: checking for c_impl in struct core_dumpx" >&5
12470 +echo $ECHO_N "checking for c_impl in struct core_dumpx... $ECHO_C" >&6; }
12471 cat >conftest.$ac_ext <<_ACEOF
12472 /* confdefs.h. */
12473 _ACEOF
12474 @@ -11627,42 +12022,38 @@ struct core_dumpx c; c.c_impl = 0;
12475 }
12476 _ACEOF
12477 rm -f conftest.$ac_objext
12478 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12479 - (eval $ac_compile) 2>conftest.er1
12480 +if { (ac_try="$ac_compile"
12481 +case "(($ac_try" in
12482 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12483 + *) ac_try_echo=$ac_try;;
12484 +esac
12485 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12486 + (eval "$ac_compile") 2>conftest.er1
12487 ac_status=$?
12488 grep -v '^ *+' conftest.er1 >conftest.err
12489 rm -f conftest.er1
12490 cat conftest.err >&5
12491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12492 - (exit $ac_status); } &&
12493 - { ac_try='test -z "$ac_c_werror_flag"
12494 - || test ! -s conftest.err'
12495 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12496 - (eval $ac_try) 2>&5
12497 - ac_status=$?
12498 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
12499 - (exit $ac_status); }; } &&
12500 - { ac_try='test -s conftest.$ac_objext'
12501 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12502 - (eval $ac_try) 2>&5
12503 - ac_status=$?
12504 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
12505 - (exit $ac_status); }; }; then
12506 + (exit $ac_status); } && {
12507 + test -z "$ac_c_werror_flag" ||
12508 + test ! -s conftest.err
12509 + } && test -s conftest.$ac_objext; then
12510
12511 cat >>confdefs.h <<\_ACEOF
12512 #define HAVE_ST_C_IMPL 1
12513 _ACEOF
12514
12515 - echo "$as_me:$LINENO: result: yes" >&5
12516 -echo "${ECHO_T}yes" >&6
12517 + { echo "$as_me:$LINENO: result: yes" >&5
12518 +echo "${ECHO_T}yes" >&6; }
12519 else
12520 echo "$as_me: failed program was:" >&5
12521 sed 's/^/| /' conftest.$ac_ext >&5
12522
12523 -echo "$as_me:$LINENO: result: no" >&5
12524 -echo "${ECHO_T}no" >&6
12525 + { echo "$as_me:$LINENO: result: no" >&5
12526 +echo "${ECHO_T}no" >&6; }
12527 fi
12528 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12529 +
12530 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12531 ;;
12532 rs6000-*-aix4*) COREFILE=rs6000-core.lo ;;
12533 rs6000-*-*) COREFILE=rs6000-core.lo ;;
12534 @@ -11726,18 +12117,19 @@ rm -f conftest.err conftest.$ac_objext c
12535 for ac_header in sys/procfs.h
12536 do
12537 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12538 -if eval "test \"\${$as_ac_Header+set}\" = set"; then
12539 - echo "$as_me:$LINENO: checking for $ac_header" >&5
12540 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12541 -if eval "test \"\${$as_ac_Header+set}\" = set"; then
12542 +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12543 + { echo "$as_me:$LINENO: checking for $ac_header" >&5
12544 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12545 +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12546 echo $ECHO_N "(cached) $ECHO_C" >&6
12547 fi
12548 -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12549 -echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12550 +ac_res=`eval echo '${'$as_ac_Header'}'`
12551 + { echo "$as_me:$LINENO: result: $ac_res" >&5
12552 +echo "${ECHO_T}$ac_res" >&6; }
12553 else
12554 # Is the header compilable?
12555 -echo "$as_me:$LINENO: checking $ac_header usability" >&5
12556 -echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12557 +{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
12558 +echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12559 cat >conftest.$ac_ext <<_ACEOF
12560 /* confdefs.h. */
12561 _ACEOF
12562 @@ -11748,41 +12140,37 @@ $ac_includes_default
12563 #include <$ac_header>
12564 _ACEOF
12565 rm -f conftest.$ac_objext
12566 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12567 - (eval $ac_compile) 2>conftest.er1
12568 +if { (ac_try="$ac_compile"
12569 +case "(($ac_try" in
12570 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12571 + *) ac_try_echo=$ac_try;;
12572 +esac
12573 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12574 + (eval "$ac_compile") 2>conftest.er1
12575 ac_status=$?
12576 grep -v '^ *+' conftest.er1 >conftest.err
12577 rm -f conftest.er1
12578 cat conftest.err >&5
12579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12580 - (exit $ac_status); } &&
12581 - { ac_try='test -z "$ac_c_werror_flag"
12582 - || test ! -s conftest.err'
12583 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12584 - (eval $ac_try) 2>&5
12585 - ac_status=$?
12586 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
12587 - (exit $ac_status); }; } &&
12588 - { ac_try='test -s conftest.$ac_objext'
12589 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12590 - (eval $ac_try) 2>&5
12591 - ac_status=$?
12592 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
12593 - (exit $ac_status); }; }; then
12594 + (exit $ac_status); } && {
12595 + test -z "$ac_c_werror_flag" ||
12596 + test ! -s conftest.err
12597 + } && test -s conftest.$ac_objext; then
12598 ac_header_compiler=yes
12599 else
12600 echo "$as_me: failed program was:" >&5
12601 sed 's/^/| /' conftest.$ac_ext >&5
12602
12603 -ac_header_compiler=no
12604 + ac_header_compiler=no
12605 fi
12606 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12607 -echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12608 -echo "${ECHO_T}$ac_header_compiler" >&6
12609 +
12610 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12611 +{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12612 +echo "${ECHO_T}$ac_header_compiler" >&6; }
12613
12614 # Is the header present?
12615 -echo "$as_me:$LINENO: checking $ac_header presence" >&5
12616 -echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12617 +{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
12618 +echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12619 cat >conftest.$ac_ext <<_ACEOF
12620 /* confdefs.h. */
12621 _ACEOF
12622 @@ -11791,24 +12179,22 @@ cat >>conftest.$ac_ext <<_ACEOF
12623 /* end confdefs.h. */
12624 #include <$ac_header>
12625 _ACEOF
12626 -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12627 - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12628 +if { (ac_try="$ac_cpp conftest.$ac_ext"
12629 +case "(($ac_try" in
12630 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12631 + *) ac_try_echo=$ac_try;;
12632 +esac
12633 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12634 + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12635 ac_status=$?
12636 grep -v '^ *+' conftest.er1 >conftest.err
12637 rm -f conftest.er1
12638 cat conftest.err >&5
12639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12640 - (exit $ac_status); } >/dev/null; then
12641 - if test -s conftest.err; then
12642 - ac_cpp_err=$ac_c_preproc_warn_flag
12643 - ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12644 - else
12645 - ac_cpp_err=
12646 - fi
12647 -else
12648 - ac_cpp_err=yes
12649 -fi
12650 -if test -z "$ac_cpp_err"; then
12651 + (exit $ac_status); } >/dev/null && {
12652 + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12653 + test ! -s conftest.err
12654 + }; then
12655 ac_header_preproc=yes
12656 else
12657 echo "$as_me: failed program was:" >&5
12658 @@ -11816,9 +12202,10 @@ sed 's/^/| /' conftest.$ac_ext >&5
12659
12660 ac_header_preproc=no
12661 fi
12662 +
12663 rm -f conftest.err conftest.$ac_ext
12664 -echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12665 -echo "${ECHO_T}$ac_header_preproc" >&6
12666 +{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12667 +echo "${ECHO_T}$ac_header_preproc" >&6; }
12668
12669 # So? What about this header?
12670 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12671 @@ -11842,25 +12229,19 @@ echo "$as_me: WARNING: $ac_header: s
12672 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12673 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12674 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12675 - (
12676 - cat <<\_ASBOX
12677 -## ------------------------------------------ ##
12678 -## Report this to the AC_PACKAGE_NAME lists. ##
12679 -## ------------------------------------------ ##
12680 -_ASBOX
12681 - ) |
12682 - sed "s/^/$as_me: WARNING: /" >&2
12683 +
12684 ;;
12685 esac
12686 -echo "$as_me:$LINENO: checking for $ac_header" >&5
12687 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12688 -if eval "test \"\${$as_ac_Header+set}\" = set"; then
12689 +{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12690 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12691 +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12692 echo $ECHO_N "(cached) $ECHO_C" >&6
12693 else
12694 eval "$as_ac_Header=\$ac_header_preproc"
12695 fi
12696 -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12697 -echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12698 +ac_res=`eval echo '${'$as_ac_Header'}'`
12699 + { echo "$as_me:$LINENO: result: $ac_res" >&5
12700 +echo "${ECHO_T}$ac_res" >&6; }
12701
12702 fi
12703 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12704 @@ -11873,8 +12254,8 @@ fi
12705 done
12706
12707 if test "$ac_cv_header_sys_procfs_h" = yes; then
12708 - echo "$as_me:$LINENO: checking for prstatus_t in sys/procfs.h" >&5
12709 -echo $ECHO_N "checking for prstatus_t in sys/procfs.h... $ECHO_C" >&6
12710 + { echo "$as_me:$LINENO: checking for prstatus_t in sys/procfs.h" >&5
12711 +echo $ECHO_N "checking for prstatus_t in sys/procfs.h... $ECHO_C" >&6; }
12712 if test "${bfd_cv_have_sys_procfs_type_prstatus_t+set}" = set; then
12713 echo $ECHO_N "(cached) $ECHO_C" >&6
12714 else
12715 @@ -11896,36 +12277,32 @@ prstatus_t avar
12716 }
12717 _ACEOF
12718 rm -f conftest.$ac_objext
12719 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12720 - (eval $ac_compile) 2>conftest.er1
12721 +if { (ac_try="$ac_compile"
12722 +case "(($ac_try" in
12723 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12724 + *) ac_try_echo=$ac_try;;
12725 +esac
12726 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12727 + (eval "$ac_compile") 2>conftest.er1
12728 ac_status=$?
12729 grep -v '^ *+' conftest.er1 >conftest.err
12730 rm -f conftest.er1
12731 cat conftest.err >&5
12732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12733 - (exit $ac_status); } &&
12734 - { ac_try='test -z "$ac_c_werror_flag"
12735 - || test ! -s conftest.err'
12736 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12737 - (eval $ac_try) 2>&5
12738 - ac_status=$?
12739 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
12740 - (exit $ac_status); }; } &&
12741 - { ac_try='test -s conftest.$ac_objext'
12742 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12743 - (eval $ac_try) 2>&5
12744 - ac_status=$?
12745 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
12746 - (exit $ac_status); }; }; then
12747 + (exit $ac_status); } && {
12748 + test -z "$ac_c_werror_flag" ||
12749 + test ! -s conftest.err
12750 + } && test -s conftest.$ac_objext; then
12751 bfd_cv_have_sys_procfs_type_prstatus_t=yes
12752 else
12753 echo "$as_me: failed program was:" >&5
12754 sed 's/^/| /' conftest.$ac_ext >&5
12755
12756 -bfd_cv_have_sys_procfs_type_prstatus_t=no
12757 + bfd_cv_have_sys_procfs_type_prstatus_t=no
12758
12759 fi
12760 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12761 +
12762 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12763 fi
12764
12765 if test $bfd_cv_have_sys_procfs_type_prstatus_t = yes; then
12766 @@ -11935,11 +12312,11 @@ cat >>confdefs.h <<\_ACEOF
12767 _ACEOF
12768
12769 fi
12770 - echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prstatus_t" >&5
12771 -echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prstatus_t" >&6
12772 + { echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prstatus_t" >&5
12773 +echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prstatus_t" >&6; }
12774
12775 - echo "$as_me:$LINENO: checking for prstatus32_t in sys/procfs.h" >&5
12776 -echo $ECHO_N "checking for prstatus32_t in sys/procfs.h... $ECHO_C" >&6
12777 + { echo "$as_me:$LINENO: checking for prstatus32_t in sys/procfs.h" >&5
12778 +echo $ECHO_N "checking for prstatus32_t in sys/procfs.h... $ECHO_C" >&6; }
12779 if test "${bfd_cv_have_sys_procfs_type_prstatus32_t+set}" = set; then
12780 echo $ECHO_N "(cached) $ECHO_C" >&6
12781 else
12782 @@ -11961,36 +12338,32 @@ prstatus32_t avar
12783 }
12784 _ACEOF
12785 rm -f conftest.$ac_objext
12786 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12787 - (eval $ac_compile) 2>conftest.er1
12788 +if { (ac_try="$ac_compile"
12789 +case "(($ac_try" in
12790 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12791 + *) ac_try_echo=$ac_try;;
12792 +esac
12793 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12794 + (eval "$ac_compile") 2>conftest.er1
12795 ac_status=$?
12796 grep -v '^ *+' conftest.er1 >conftest.err
12797 rm -f conftest.er1
12798 cat conftest.err >&5
12799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12800 - (exit $ac_status); } &&
12801 - { ac_try='test -z "$ac_c_werror_flag"
12802 - || test ! -s conftest.err'
12803 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12804 - (eval $ac_try) 2>&5
12805 - ac_status=$?
12806 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
12807 - (exit $ac_status); }; } &&
12808 - { ac_try='test -s conftest.$ac_objext'
12809 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12810 - (eval $ac_try) 2>&5
12811 - ac_status=$?
12812 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
12813 - (exit $ac_status); }; }; then
12814 + (exit $ac_status); } && {
12815 + test -z "$ac_c_werror_flag" ||
12816 + test ! -s conftest.err
12817 + } && test -s conftest.$ac_objext; then
12818 bfd_cv_have_sys_procfs_type_prstatus32_t=yes
12819 else
12820 echo "$as_me: failed program was:" >&5
12821 sed 's/^/| /' conftest.$ac_ext >&5
12822
12823 -bfd_cv_have_sys_procfs_type_prstatus32_t=no
12824 + bfd_cv_have_sys_procfs_type_prstatus32_t=no
12825
12826 fi
12827 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12828 +
12829 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12830 fi
12831
12832 if test $bfd_cv_have_sys_procfs_type_prstatus32_t = yes; then
12833 @@ -12000,11 +12373,11 @@ cat >>confdefs.h <<\_ACEOF
12834 _ACEOF
12835
12836 fi
12837 - echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prstatus32_t" >&5
12838 -echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prstatus32_t" >&6
12839 + { echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prstatus32_t" >&5
12840 +echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prstatus32_t" >&6; }
12841
12842 - echo "$as_me:$LINENO: checking for prstatus_t.pr_who in sys/procfs.h" >&5
12843 -echo $ECHO_N "checking for prstatus_t.pr_who in sys/procfs.h... $ECHO_C" >&6
12844 + { echo "$as_me:$LINENO: checking for prstatus_t.pr_who in sys/procfs.h" >&5
12845 +echo $ECHO_N "checking for prstatus_t.pr_who in sys/procfs.h... $ECHO_C" >&6; }
12846 if test "${bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who+set}" = set; then
12847 echo $ECHO_N "(cached) $ECHO_C" >&6
12848 else
12849 @@ -12026,36 +12399,32 @@ prstatus_t avar; void* aref = (void*) &a
12850 }
12851 _ACEOF
12852 rm -f conftest.$ac_objext
12853 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12854 - (eval $ac_compile) 2>conftest.er1
12855 +if { (ac_try="$ac_compile"
12856 +case "(($ac_try" in
12857 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12858 + *) ac_try_echo=$ac_try;;
12859 +esac
12860 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12861 + (eval "$ac_compile") 2>conftest.er1
12862 ac_status=$?
12863 grep -v '^ *+' conftest.er1 >conftest.err
12864 rm -f conftest.er1
12865 cat conftest.err >&5
12866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12867 - (exit $ac_status); } &&
12868 - { ac_try='test -z "$ac_c_werror_flag"
12869 - || test ! -s conftest.err'
12870 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12871 - (eval $ac_try) 2>&5
12872 - ac_status=$?
12873 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
12874 - (exit $ac_status); }; } &&
12875 - { ac_try='test -s conftest.$ac_objext'
12876 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12877 - (eval $ac_try) 2>&5
12878 - ac_status=$?
12879 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
12880 - (exit $ac_status); }; }; then
12881 + (exit $ac_status); } && {
12882 + test -z "$ac_c_werror_flag" ||
12883 + test ! -s conftest.err
12884 + } && test -s conftest.$ac_objext; then
12885 bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=yes
12886 else
12887 echo "$as_me: failed program was:" >&5
12888 sed 's/^/| /' conftest.$ac_ext >&5
12889
12890 -bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=no
12891 + bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=no
12892
12893 fi
12894 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12895 +
12896 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12897 fi
12898
12899 if test $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who = yes; then
12900 @@ -12065,11 +12434,11 @@ cat >>confdefs.h <<\_ACEOF
12901 _ACEOF
12902
12903 fi
12904 - echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" >&5
12905 -echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" >&6
12906 + { echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" >&5
12907 +echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" >&6; }
12908
12909 - echo "$as_me:$LINENO: checking for prstatus32_t.pr_who in sys/procfs.h" >&5
12910 -echo $ECHO_N "checking for prstatus32_t.pr_who in sys/procfs.h... $ECHO_C" >&6
12911 + { echo "$as_me:$LINENO: checking for prstatus32_t.pr_who in sys/procfs.h" >&5
12912 +echo $ECHO_N "checking for prstatus32_t.pr_who in sys/procfs.h... $ECHO_C" >&6; }
12913 if test "${bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who+set}" = set; then
12914 echo $ECHO_N "(cached) $ECHO_C" >&6
12915 else
12916 @@ -12091,36 +12460,32 @@ prstatus32_t avar; void* aref = (void*)
12917 }
12918 _ACEOF
12919 rm -f conftest.$ac_objext
12920 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12921 - (eval $ac_compile) 2>conftest.er1
12922 +if { (ac_try="$ac_compile"
12923 +case "(($ac_try" in
12924 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12925 + *) ac_try_echo=$ac_try;;
12926 +esac
12927 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12928 + (eval "$ac_compile") 2>conftest.er1
12929 ac_status=$?
12930 grep -v '^ *+' conftest.er1 >conftest.err
12931 rm -f conftest.er1
12932 cat conftest.err >&5
12933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12934 - (exit $ac_status); } &&
12935 - { ac_try='test -z "$ac_c_werror_flag"
12936 - || test ! -s conftest.err'
12937 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12938 - (eval $ac_try) 2>&5
12939 - ac_status=$?
12940 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
12941 - (exit $ac_status); }; } &&
12942 - { ac_try='test -s conftest.$ac_objext'
12943 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12944 - (eval $ac_try) 2>&5
12945 - ac_status=$?
12946 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
12947 - (exit $ac_status); }; }; then
12948 + (exit $ac_status); } && {
12949 + test -z "$ac_c_werror_flag" ||
12950 + test ! -s conftest.err
12951 + } && test -s conftest.$ac_objext; then
12952 bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=yes
12953 else
12954 echo "$as_me: failed program was:" >&5
12955 sed 's/^/| /' conftest.$ac_ext >&5
12956
12957 -bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=no
12958 + bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=no
12959
12960 fi
12961 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12962 +
12963 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12964 fi
12965
12966 if test $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who = yes; then
12967 @@ -12130,11 +12495,11 @@ cat >>confdefs.h <<\_ACEOF
12968 _ACEOF
12969
12970 fi
12971 - echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" >&5
12972 -echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" >&6
12973 + { echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" >&5
12974 +echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" >&6; }
12975
12976 - echo "$as_me:$LINENO: checking for pstatus_t in sys/procfs.h" >&5
12977 -echo $ECHO_N "checking for pstatus_t in sys/procfs.h... $ECHO_C" >&6
12978 + { echo "$as_me:$LINENO: checking for pstatus_t in sys/procfs.h" >&5
12979 +echo $ECHO_N "checking for pstatus_t in sys/procfs.h... $ECHO_C" >&6; }
12980 if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then
12981 echo $ECHO_N "(cached) $ECHO_C" >&6
12982 else
12983 @@ -12156,36 +12521,32 @@ pstatus_t avar
12984 }
12985 _ACEOF
12986 rm -f conftest.$ac_objext
12987 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12988 - (eval $ac_compile) 2>conftest.er1
12989 +if { (ac_try="$ac_compile"
12990 +case "(($ac_try" in
12991 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12992 + *) ac_try_echo=$ac_try;;
12993 +esac
12994 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12995 + (eval "$ac_compile") 2>conftest.er1
12996 ac_status=$?
12997 grep -v '^ *+' conftest.er1 >conftest.err
12998 rm -f conftest.er1
12999 cat conftest.err >&5
13000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13001 - (exit $ac_status); } &&
13002 - { ac_try='test -z "$ac_c_werror_flag"
13003 - || test ! -s conftest.err'
13004 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13005 - (eval $ac_try) 2>&5
13006 - ac_status=$?
13007 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
13008 - (exit $ac_status); }; } &&
13009 - { ac_try='test -s conftest.$ac_objext'
13010 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13011 - (eval $ac_try) 2>&5
13012 - ac_status=$?
13013 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
13014 - (exit $ac_status); }; }; then
13015 + (exit $ac_status); } && {
13016 + test -z "$ac_c_werror_flag" ||
13017 + test ! -s conftest.err
13018 + } && test -s conftest.$ac_objext; then
13019 bfd_cv_have_sys_procfs_type_pstatus_t=yes
13020 else
13021 echo "$as_me: failed program was:" >&5
13022 sed 's/^/| /' conftest.$ac_ext >&5
13023
13024 -bfd_cv_have_sys_procfs_type_pstatus_t=no
13025 + bfd_cv_have_sys_procfs_type_pstatus_t=no
13026
13027 fi
13028 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13029 +
13030 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13031 fi
13032
13033 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
13034 @@ -12195,11 +12556,11 @@ cat >>confdefs.h <<\_ACEOF
13035 _ACEOF
13036
13037 fi
13038 - echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5
13039 -echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus_t" >&6
13040 + { echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5
13041 +echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus_t" >&6; }
13042
13043 - echo "$as_me:$LINENO: checking for pxstatus_t in sys/procfs.h" >&5
13044 -echo $ECHO_N "checking for pxstatus_t in sys/procfs.h... $ECHO_C" >&6
13045 + { echo "$as_me:$LINENO: checking for pxstatus_t in sys/procfs.h" >&5
13046 +echo $ECHO_N "checking for pxstatus_t in sys/procfs.h... $ECHO_C" >&6; }
13047 if test "${bfd_cv_have_sys_procfs_type_pxstatus_t+set}" = set; then
13048 echo $ECHO_N "(cached) $ECHO_C" >&6
13049 else
13050 @@ -12221,36 +12582,32 @@ pxstatus_t avar
13051 }
13052 _ACEOF
13053 rm -f conftest.$ac_objext
13054 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13055 - (eval $ac_compile) 2>conftest.er1
13056 +if { (ac_try="$ac_compile"
13057 +case "(($ac_try" in
13058 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13059 + *) ac_try_echo=$ac_try;;
13060 +esac
13061 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13062 + (eval "$ac_compile") 2>conftest.er1
13063 ac_status=$?
13064 grep -v '^ *+' conftest.er1 >conftest.err
13065 rm -f conftest.er1
13066 cat conftest.err >&5
13067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13068 - (exit $ac_status); } &&
13069 - { ac_try='test -z "$ac_c_werror_flag"
13070 - || test ! -s conftest.err'
13071 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13072 - (eval $ac_try) 2>&5
13073 - ac_status=$?
13074 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
13075 - (exit $ac_status); }; } &&
13076 - { ac_try='test -s conftest.$ac_objext'
13077 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13078 - (eval $ac_try) 2>&5
13079 - ac_status=$?
13080 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
13081 - (exit $ac_status); }; }; then
13082 + (exit $ac_status); } && {
13083 + test -z "$ac_c_werror_flag" ||
13084 + test ! -s conftest.err
13085 + } && test -s conftest.$ac_objext; then
13086 bfd_cv_have_sys_procfs_type_pxstatus_t=yes
13087 else
13088 echo "$as_me: failed program was:" >&5
13089 sed 's/^/| /' conftest.$ac_ext >&5
13090
13091 -bfd_cv_have_sys_procfs_type_pxstatus_t=no
13092 + bfd_cv_have_sys_procfs_type_pxstatus_t=no
13093
13094 fi
13095 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13096 +
13097 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13098 fi
13099
13100 if test $bfd_cv_have_sys_procfs_type_pxstatus_t = yes; then
13101 @@ -12260,11 +12617,11 @@ cat >>confdefs.h <<\_ACEOF
13102 _ACEOF
13103
13104 fi
13105 - echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pxstatus_t" >&5
13106 -echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pxstatus_t" >&6
13107 + { echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pxstatus_t" >&5
13108 +echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pxstatus_t" >&6; }
13109
13110 - echo "$as_me:$LINENO: checking for pstatus32_t in sys/procfs.h" >&5
13111 -echo $ECHO_N "checking for pstatus32_t in sys/procfs.h... $ECHO_C" >&6
13112 + { echo "$as_me:$LINENO: checking for pstatus32_t in sys/procfs.h" >&5
13113 +echo $ECHO_N "checking for pstatus32_t in sys/procfs.h... $ECHO_C" >&6; }
13114 if test "${bfd_cv_have_sys_procfs_type_pstatus32_t+set}" = set; then
13115 echo $ECHO_N "(cached) $ECHO_C" >&6
13116 else
13117 @@ -12286,36 +12643,32 @@ pstatus32_t avar
13118 }
13119 _ACEOF
13120 rm -f conftest.$ac_objext
13121 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13122 - (eval $ac_compile) 2>conftest.er1
13123 +if { (ac_try="$ac_compile"
13124 +case "(($ac_try" in
13125 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13126 + *) ac_try_echo=$ac_try;;
13127 +esac
13128 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13129 + (eval "$ac_compile") 2>conftest.er1
13130 ac_status=$?
13131 grep -v '^ *+' conftest.er1 >conftest.err
13132 rm -f conftest.er1
13133 cat conftest.err >&5
13134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13135 - (exit $ac_status); } &&
13136 - { ac_try='test -z "$ac_c_werror_flag"
13137 - || test ! -s conftest.err'
13138 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13139 - (eval $ac_try) 2>&5
13140 - ac_status=$?
13141 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
13142 - (exit $ac_status); }; } &&
13143 - { ac_try='test -s conftest.$ac_objext'
13144 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13145 - (eval $ac_try) 2>&5
13146 - ac_status=$?
13147 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
13148 - (exit $ac_status); }; }; then
13149 + (exit $ac_status); } && {
13150 + test -z "$ac_c_werror_flag" ||
13151 + test ! -s conftest.err
13152 + } && test -s conftest.$ac_objext; then
13153 bfd_cv_have_sys_procfs_type_pstatus32_t=yes
13154 else
13155 echo "$as_me: failed program was:" >&5
13156 sed 's/^/| /' conftest.$ac_ext >&5
13157
13158 -bfd_cv_have_sys_procfs_type_pstatus32_t=no
13159 + bfd_cv_have_sys_procfs_type_pstatus32_t=no
13160
13161 fi
13162 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13163 +
13164 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13165 fi
13166
13167 if test $bfd_cv_have_sys_procfs_type_pstatus32_t = yes; then
13168 @@ -12325,11 +12678,11 @@ cat >>confdefs.h <<\_ACEOF
13169 _ACEOF
13170
13171 fi
13172 - echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus32_t" >&5
13173 -echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus32_t" >&6
13174 + { echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus32_t" >&5
13175 +echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus32_t" >&6; }
13176
13177 - echo "$as_me:$LINENO: checking for prpsinfo_t in sys/procfs.h" >&5
13178 -echo $ECHO_N "checking for prpsinfo_t in sys/procfs.h... $ECHO_C" >&6
13179 + { echo "$as_me:$LINENO: checking for prpsinfo_t in sys/procfs.h" >&5
13180 +echo $ECHO_N "checking for prpsinfo_t in sys/procfs.h... $ECHO_C" >&6; }
13181 if test "${bfd_cv_have_sys_procfs_type_prpsinfo_t+set}" = set; then
13182 echo $ECHO_N "(cached) $ECHO_C" >&6
13183 else
13184 @@ -12351,36 +12704,32 @@ prpsinfo_t avar
13185 }
13186 _ACEOF
13187 rm -f conftest.$ac_objext
13188 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13189 - (eval $ac_compile) 2>conftest.er1
13190 +if { (ac_try="$ac_compile"
13191 +case "(($ac_try" in
13192 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13193 + *) ac_try_echo=$ac_try;;
13194 +esac
13195 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13196 + (eval "$ac_compile") 2>conftest.er1
13197 ac_status=$?
13198 grep -v '^ *+' conftest.er1 >conftest.err
13199 rm -f conftest.er1
13200 cat conftest.err >&5
13201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13202 - (exit $ac_status); } &&
13203 - { ac_try='test -z "$ac_c_werror_flag"
13204 - || test ! -s conftest.err'
13205 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13206 - (eval $ac_try) 2>&5
13207 - ac_status=$?
13208 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
13209 - (exit $ac_status); }; } &&
13210 - { ac_try='test -s conftest.$ac_objext'
13211 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13212 - (eval $ac_try) 2>&5
13213 - ac_status=$?
13214 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
13215 - (exit $ac_status); }; }; then
13216 + (exit $ac_status); } && {
13217 + test -z "$ac_c_werror_flag" ||
13218 + test ! -s conftest.err
13219 + } && test -s conftest.$ac_objext; then
13220 bfd_cv_have_sys_procfs_type_prpsinfo_t=yes
13221 else
13222 echo "$as_me: failed program was:" >&5
13223 sed 's/^/| /' conftest.$ac_ext >&5
13224
13225 -bfd_cv_have_sys_procfs_type_prpsinfo_t=no
13226 + bfd_cv_have_sys_procfs_type_prpsinfo_t=no
13227
13228 fi
13229 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13230 +
13231 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13232 fi
13233
13234 if test $bfd_cv_have_sys_procfs_type_prpsinfo_t = yes; then
13235 @@ -12390,11 +12739,11 @@ cat >>confdefs.h <<\_ACEOF
13236 _ACEOF
13237
13238 fi
13239 - echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prpsinfo_t" >&5
13240 -echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prpsinfo_t" >&6
13241 + { echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prpsinfo_t" >&5
13242 +echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prpsinfo_t" >&6; }
13243
13244 - echo "$as_me:$LINENO: checking for prpsinfo32_t in sys/procfs.h" >&5
13245 -echo $ECHO_N "checking for prpsinfo32_t in sys/procfs.h... $ECHO_C" >&6
13246 + { echo "$as_me:$LINENO: checking for prpsinfo32_t in sys/procfs.h" >&5
13247 +echo $ECHO_N "checking for prpsinfo32_t in sys/procfs.h... $ECHO_C" >&6; }
13248 if test "${bfd_cv_have_sys_procfs_type_prpsinfo32_t+set}" = set; then
13249 echo $ECHO_N "(cached) $ECHO_C" >&6
13250 else
13251 @@ -12416,36 +12765,32 @@ prpsinfo32_t avar
13252 }
13253 _ACEOF
13254 rm -f conftest.$ac_objext
13255 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13256 - (eval $ac_compile) 2>conftest.er1
13257 +if { (ac_try="$ac_compile"
13258 +case "(($ac_try" in
13259 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13260 + *) ac_try_echo=$ac_try;;
13261 +esac
13262 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13263 + (eval "$ac_compile") 2>conftest.er1
13264 ac_status=$?
13265 grep -v '^ *+' conftest.er1 >conftest.err
13266 rm -f conftest.er1
13267 cat conftest.err >&5
13268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13269 - (exit $ac_status); } &&
13270 - { ac_try='test -z "$ac_c_werror_flag"
13271 - || test ! -s conftest.err'
13272 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13273 - (eval $ac_try) 2>&5
13274 - ac_status=$?
13275 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
13276 - (exit $ac_status); }; } &&
13277 - { ac_try='test -s conftest.$ac_objext'
13278 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13279 - (eval $ac_try) 2>&5
13280 - ac_status=$?
13281 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
13282 - (exit $ac_status); }; }; then
13283 + (exit $ac_status); } && {
13284 + test -z "$ac_c_werror_flag" ||
13285 + test ! -s conftest.err
13286 + } && test -s conftest.$ac_objext; then
13287 bfd_cv_have_sys_procfs_type_prpsinfo32_t=yes
13288 else
13289 echo "$as_me: failed program was:" >&5
13290 sed 's/^/| /' conftest.$ac_ext >&5
13291
13292 -bfd_cv_have_sys_procfs_type_prpsinfo32_t=no
13293 + bfd_cv_have_sys_procfs_type_prpsinfo32_t=no
13294
13295 fi
13296 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13297 +
13298 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13299 fi
13300
13301 if test $bfd_cv_have_sys_procfs_type_prpsinfo32_t = yes; then
13302 @@ -12455,11 +12800,11 @@ cat >>confdefs.h <<\_ACEOF
13303 _ACEOF
13304
13305 fi
13306 - echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prpsinfo32_t" >&5
13307 -echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prpsinfo32_t" >&6
13308 + { echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prpsinfo32_t" >&5
13309 +echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prpsinfo32_t" >&6; }
13310
13311 - echo "$as_me:$LINENO: checking for psinfo_t in sys/procfs.h" >&5
13312 -echo $ECHO_N "checking for psinfo_t in sys/procfs.h... $ECHO_C" >&6
13313 + { echo "$as_me:$LINENO: checking for psinfo_t in sys/procfs.h" >&5
13314 +echo $ECHO_N "checking for psinfo_t in sys/procfs.h... $ECHO_C" >&6; }
13315 if test "${bfd_cv_have_sys_procfs_type_psinfo_t+set}" = set; then
13316 echo $ECHO_N "(cached) $ECHO_C" >&6
13317 else
13318 @@ -12481,36 +12826,32 @@ psinfo_t avar
13319 }
13320 _ACEOF
13321 rm -f conftest.$ac_objext
13322 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13323 - (eval $ac_compile) 2>conftest.er1
13324 +if { (ac_try="$ac_compile"
13325 +case "(($ac_try" in
13326 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13327 + *) ac_try_echo=$ac_try;;
13328 +esac
13329 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13330 + (eval "$ac_compile") 2>conftest.er1
13331 ac_status=$?
13332 grep -v '^ *+' conftest.er1 >conftest.err
13333 rm -f conftest.er1
13334 cat conftest.err >&5
13335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13336 - (exit $ac_status); } &&
13337 - { ac_try='test -z "$ac_c_werror_flag"
13338 - || test ! -s conftest.err'
13339 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13340 - (eval $ac_try) 2>&5
13341 - ac_status=$?
13342 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
13343 - (exit $ac_status); }; } &&
13344 - { ac_try='test -s conftest.$ac_objext'
13345 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13346 - (eval $ac_try) 2>&5
13347 - ac_status=$?
13348 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
13349 - (exit $ac_status); }; }; then
13350 + (exit $ac_status); } && {
13351 + test -z "$ac_c_werror_flag" ||
13352 + test ! -s conftest.err
13353 + } && test -s conftest.$ac_objext; then
13354 bfd_cv_have_sys_procfs_type_psinfo_t=yes
13355 else
13356 echo "$as_me: failed program was:" >&5
13357 sed 's/^/| /' conftest.$ac_ext >&5
13358
13359 -bfd_cv_have_sys_procfs_type_psinfo_t=no
13360 + bfd_cv_have_sys_procfs_type_psinfo_t=no
13361
13362 fi
13363 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13364 +
13365 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13366 fi
13367
13368 if test $bfd_cv_have_sys_procfs_type_psinfo_t = yes; then
13369 @@ -12520,11 +12861,11 @@ cat >>confdefs.h <<\_ACEOF
13370 _ACEOF
13371
13372 fi
13373 - echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psinfo_t" >&5
13374 -echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psinfo_t" >&6
13375 + { echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psinfo_t" >&5
13376 +echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psinfo_t" >&6; }
13377
13378 - echo "$as_me:$LINENO: checking for psinfo32_t in sys/procfs.h" >&5
13379 -echo $ECHO_N "checking for psinfo32_t in sys/procfs.h... $ECHO_C" >&6
13380 + { echo "$as_me:$LINENO: checking for psinfo32_t in sys/procfs.h" >&5
13381 +echo $ECHO_N "checking for psinfo32_t in sys/procfs.h... $ECHO_C" >&6; }
13382 if test "${bfd_cv_have_sys_procfs_type_psinfo32_t+set}" = set; then
13383 echo $ECHO_N "(cached) $ECHO_C" >&6
13384 else
13385 @@ -12546,36 +12887,32 @@ psinfo32_t avar
13386 }
13387 _ACEOF
13388 rm -f conftest.$ac_objext
13389 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13390 - (eval $ac_compile) 2>conftest.er1
13391 +if { (ac_try="$ac_compile"
13392 +case "(($ac_try" in
13393 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13394 + *) ac_try_echo=$ac_try;;
13395 +esac
13396 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13397 + (eval "$ac_compile") 2>conftest.er1
13398 ac_status=$?
13399 grep -v '^ *+' conftest.er1 >conftest.err
13400 rm -f conftest.er1
13401 cat conftest.err >&5
13402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13403 - (exit $ac_status); } &&
13404 - { ac_try='test -z "$ac_c_werror_flag"
13405 - || test ! -s conftest.err'
13406 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13407 - (eval $ac_try) 2>&5
13408 - ac_status=$?
13409 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
13410 - (exit $ac_status); }; } &&
13411 - { ac_try='test -s conftest.$ac_objext'
13412 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13413 - (eval $ac_try) 2>&5
13414 - ac_status=$?
13415 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
13416 - (exit $ac_status); }; }; then
13417 + (exit $ac_status); } && {
13418 + test -z "$ac_c_werror_flag" ||
13419 + test ! -s conftest.err
13420 + } && test -s conftest.$ac_objext; then
13421 bfd_cv_have_sys_procfs_type_psinfo32_t=yes
13422 else
13423 echo "$as_me: failed program was:" >&5
13424 sed 's/^/| /' conftest.$ac_ext >&5
13425
13426 -bfd_cv_have_sys_procfs_type_psinfo32_t=no
13427 + bfd_cv_have_sys_procfs_type_psinfo32_t=no
13428
13429 fi
13430 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13431 +
13432 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13433 fi
13434
13435 if test $bfd_cv_have_sys_procfs_type_psinfo32_t = yes; then
13436 @@ -12585,11 +12922,11 @@ cat >>confdefs.h <<\_ACEOF
13437 _ACEOF
13438
13439 fi
13440 - echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psinfo32_t" >&5
13441 -echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psinfo32_t" >&6
13442 + { echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psinfo32_t" >&5
13443 +echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psinfo32_t" >&6; }
13444
13445 - echo "$as_me:$LINENO: checking for lwpstatus_t in sys/procfs.h" >&5
13446 -echo $ECHO_N "checking for lwpstatus_t in sys/procfs.h... $ECHO_C" >&6
13447 + { echo "$as_me:$LINENO: checking for lwpstatus_t in sys/procfs.h" >&5
13448 +echo $ECHO_N "checking for lwpstatus_t in sys/procfs.h... $ECHO_C" >&6; }
13449 if test "${bfd_cv_have_sys_procfs_type_lwpstatus_t+set}" = set; then
13450 echo $ECHO_N "(cached) $ECHO_C" >&6
13451 else
13452 @@ -12611,36 +12948,32 @@ lwpstatus_t avar
13453 }
13454 _ACEOF
13455 rm -f conftest.$ac_objext
13456 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13457 - (eval $ac_compile) 2>conftest.er1
13458 +if { (ac_try="$ac_compile"
13459 +case "(($ac_try" in
13460 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13461 + *) ac_try_echo=$ac_try;;
13462 +esac
13463 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13464 + (eval "$ac_compile") 2>conftest.er1
13465 ac_status=$?
13466 grep -v '^ *+' conftest.er1 >conftest.err
13467 rm -f conftest.er1
13468 cat conftest.err >&5
13469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13470 - (exit $ac_status); } &&
13471 - { ac_try='test -z "$ac_c_werror_flag"
13472 - || test ! -s conftest.err'
13473 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13474 - (eval $ac_try) 2>&5
13475 - ac_status=$?
13476 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
13477 - (exit $ac_status); }; } &&
13478 - { ac_try='test -s conftest.$ac_objext'
13479 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13480 - (eval $ac_try) 2>&5
13481 - ac_status=$?
13482 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
13483 - (exit $ac_status); }; }; then
13484 + (exit $ac_status); } && {
13485 + test -z "$ac_c_werror_flag" ||
13486 + test ! -s conftest.err
13487 + } && test -s conftest.$ac_objext; then
13488 bfd_cv_have_sys_procfs_type_lwpstatus_t=yes
13489 else
13490 echo "$as_me: failed program was:" >&5
13491 sed 's/^/| /' conftest.$ac_ext >&5
13492
13493 -bfd_cv_have_sys_procfs_type_lwpstatus_t=no
13494 + bfd_cv_have_sys_procfs_type_lwpstatus_t=no
13495
13496 fi
13497 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13498 +
13499 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13500 fi
13501
13502 if test $bfd_cv_have_sys_procfs_type_lwpstatus_t = yes; then
13503 @@ -12650,11 +12983,11 @@ cat >>confdefs.h <<\_ACEOF
13504 _ACEOF
13505
13506 fi
13507 - echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpstatus_t" >&5
13508 -echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpstatus_t" >&6
13509 + { echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpstatus_t" >&5
13510 +echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpstatus_t" >&6; }
13511
13512 - echo "$as_me:$LINENO: checking for lwpxstatus_t in sys/procfs.h" >&5
13513 -echo $ECHO_N "checking for lwpxstatus_t in sys/procfs.h... $ECHO_C" >&6
13514 + { echo "$as_me:$LINENO: checking for lwpxstatus_t in sys/procfs.h" >&5
13515 +echo $ECHO_N "checking for lwpxstatus_t in sys/procfs.h... $ECHO_C" >&6; }
13516 if test "${bfd_cv_have_sys_procfs_type_lwpxstatus_t+set}" = set; then
13517 echo $ECHO_N "(cached) $ECHO_C" >&6
13518 else
13519 @@ -12676,36 +13009,32 @@ lwpxstatus_t avar
13520 }
13521 _ACEOF
13522 rm -f conftest.$ac_objext
13523 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13524 - (eval $ac_compile) 2>conftest.er1
13525 +if { (ac_try="$ac_compile"
13526 +case "(($ac_try" in
13527 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13528 + *) ac_try_echo=$ac_try;;
13529 +esac
13530 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13531 + (eval "$ac_compile") 2>conftest.er1
13532 ac_status=$?
13533 grep -v '^ *+' conftest.er1 >conftest.err
13534 rm -f conftest.er1
13535 cat conftest.err >&5
13536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13537 - (exit $ac_status); } &&
13538 - { ac_try='test -z "$ac_c_werror_flag"
13539 - || test ! -s conftest.err'
13540 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13541 - (eval $ac_try) 2>&5
13542 - ac_status=$?
13543 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
13544 - (exit $ac_status); }; } &&
13545 - { ac_try='test -s conftest.$ac_objext'
13546 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13547 - (eval $ac_try) 2>&5
13548 - ac_status=$?
13549 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
13550 - (exit $ac_status); }; }; then
13551 + (exit $ac_status); } && {
13552 + test -z "$ac_c_werror_flag" ||
13553 + test ! -s conftest.err
13554 + } && test -s conftest.$ac_objext; then
13555 bfd_cv_have_sys_procfs_type_lwpxstatus_t=yes
13556 else
13557 echo "$as_me: failed program was:" >&5
13558 sed 's/^/| /' conftest.$ac_ext >&5
13559
13560 -bfd_cv_have_sys_procfs_type_lwpxstatus_t=no
13561 + bfd_cv_have_sys_procfs_type_lwpxstatus_t=no
13562
13563 fi
13564 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13565 +
13566 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13567 fi
13568
13569 if test $bfd_cv_have_sys_procfs_type_lwpxstatus_t = yes; then
13570 @@ -12715,11 +13044,11 @@ cat >>confdefs.h <<\_ACEOF
13571 _ACEOF
13572
13573 fi
13574 - echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpxstatus_t" >&5
13575 -echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpxstatus_t" >&6
13576 + { echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpxstatus_t" >&5
13577 +echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpxstatus_t" >&6; }
13578
13579 - echo "$as_me:$LINENO: checking for lwpstatus_t.pr_context in sys/procfs.h" >&5
13580 -echo $ECHO_N "checking for lwpstatus_t.pr_context in sys/procfs.h... $ECHO_C" >&6
13581 + { echo "$as_me:$LINENO: checking for lwpstatus_t.pr_context in sys/procfs.h" >&5
13582 +echo $ECHO_N "checking for lwpstatus_t.pr_context in sys/procfs.h... $ECHO_C" >&6; }
13583 if test "${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context+set}" = set; then
13584 echo $ECHO_N "(cached) $ECHO_C" >&6
13585 else
13586 @@ -12741,36 +13070,32 @@ lwpstatus_t avar; void* aref = (void*) &
13587 }
13588 _ACEOF
13589 rm -f conftest.$ac_objext
13590 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13591 - (eval $ac_compile) 2>conftest.er1
13592 +if { (ac_try="$ac_compile"
13593 +case "(($ac_try" in
13594 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13595 + *) ac_try_echo=$ac_try;;
13596 +esac
13597 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13598 + (eval "$ac_compile") 2>conftest.er1
13599 ac_status=$?
13600 grep -v '^ *+' conftest.er1 >conftest.err
13601 rm -f conftest.er1
13602 cat conftest.err >&5
13603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13604 - (exit $ac_status); } &&
13605 - { ac_try='test -z "$ac_c_werror_flag"
13606 - || test ! -s conftest.err'
13607 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13608 - (eval $ac_try) 2>&5
13609 - ac_status=$?
13610 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
13611 - (exit $ac_status); }; } &&
13612 - { ac_try='test -s conftest.$ac_objext'
13613 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13614 - (eval $ac_try) 2>&5
13615 - ac_status=$?
13616 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
13617 - (exit $ac_status); }; }; then
13618 + (exit $ac_status); } && {
13619 + test -z "$ac_c_werror_flag" ||
13620 + test ! -s conftest.err
13621 + } && test -s conftest.$ac_objext; then
13622 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=yes
13623 else
13624 echo "$as_me: failed program was:" >&5
13625 sed 's/^/| /' conftest.$ac_ext >&5
13626
13627 -bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=no
13628 + bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=no
13629
13630 fi
13631 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13632 +
13633 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13634 fi
13635
13636 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context = yes; then
13637 @@ -12780,11 +13105,11 @@ cat >>confdefs.h <<\_ACEOF
13638 _ACEOF
13639
13640 fi
13641 - echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" >&5
13642 -echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" >&6
13643 + { echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" >&5
13644 +echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" >&6; }
13645
13646 - echo "$as_me:$LINENO: checking for lwpstatus_t.pr_reg in sys/procfs.h" >&5
13647 -echo $ECHO_N "checking for lwpstatus_t.pr_reg in sys/procfs.h... $ECHO_C" >&6
13648 + { echo "$as_me:$LINENO: checking for lwpstatus_t.pr_reg in sys/procfs.h" >&5
13649 +echo $ECHO_N "checking for lwpstatus_t.pr_reg in sys/procfs.h... $ECHO_C" >&6; }
13650 if test "${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg+set}" = set; then
13651 echo $ECHO_N "(cached) $ECHO_C" >&6
13652 else
13653 @@ -12806,36 +13131,32 @@ lwpstatus_t avar; void* aref = (void*) &
13654 }
13655 _ACEOF
13656 rm -f conftest.$ac_objext
13657 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13658 - (eval $ac_compile) 2>conftest.er1
13659 +if { (ac_try="$ac_compile"
13660 +case "(($ac_try" in
13661 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13662 + *) ac_try_echo=$ac_try;;
13663 +esac
13664 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13665 + (eval "$ac_compile") 2>conftest.er1
13666 ac_status=$?
13667 grep -v '^ *+' conftest.er1 >conftest.err
13668 rm -f conftest.er1
13669 cat conftest.err >&5
13670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13671 - (exit $ac_status); } &&
13672 - { ac_try='test -z "$ac_c_werror_flag"
13673 - || test ! -s conftest.err'
13674 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13675 - (eval $ac_try) 2>&5
13676 - ac_status=$?
13677 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
13678 - (exit $ac_status); }; } &&
13679 - { ac_try='test -s conftest.$ac_objext'
13680 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13681 - (eval $ac_try) 2>&5
13682 - ac_status=$?
13683 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
13684 - (exit $ac_status); }; }; then
13685 + (exit $ac_status); } && {
13686 + test -z "$ac_c_werror_flag" ||
13687 + test ! -s conftest.err
13688 + } && test -s conftest.$ac_objext; then
13689 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=yes
13690 else
13691 echo "$as_me: failed program was:" >&5
13692 sed 's/^/| /' conftest.$ac_ext >&5
13693
13694 -bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=no
13695 + bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=no
13696
13697 fi
13698 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13699 +
13700 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13701 fi
13702
13703 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg = yes; then
13704 @@ -12845,11 +13166,11 @@ cat >>confdefs.h <<\_ACEOF
13705 _ACEOF
13706
13707 fi
13708 - echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" >&5
13709 -echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" >&6
13710 + { echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" >&5
13711 +echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" >&6; }
13712
13713 - echo "$as_me:$LINENO: checking for win32_pstatus_t in sys/procfs.h" >&5
13714 -echo $ECHO_N "checking for win32_pstatus_t in sys/procfs.h... $ECHO_C" >&6
13715 + { echo "$as_me:$LINENO: checking for win32_pstatus_t in sys/procfs.h" >&5
13716 +echo $ECHO_N "checking for win32_pstatus_t in sys/procfs.h... $ECHO_C" >&6; }
13717 if test "${bfd_cv_have_sys_procfs_type_win32_pstatus_t+set}" = set; then
13718 echo $ECHO_N "(cached) $ECHO_C" >&6
13719 else
13720 @@ -12871,36 +13192,32 @@ win32_pstatus_t avar
13721 }
13722 _ACEOF
13723 rm -f conftest.$ac_objext
13724 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13725 - (eval $ac_compile) 2>conftest.er1
13726 +if { (ac_try="$ac_compile"
13727 +case "(($ac_try" in
13728 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13729 + *) ac_try_echo=$ac_try;;
13730 +esac
13731 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13732 + (eval "$ac_compile") 2>conftest.er1
13733 ac_status=$?
13734 grep -v '^ *+' conftest.er1 >conftest.err
13735 rm -f conftest.er1
13736 cat conftest.err >&5
13737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13738 - (exit $ac_status); } &&
13739 - { ac_try='test -z "$ac_c_werror_flag"
13740 - || test ! -s conftest.err'
13741 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13742 - (eval $ac_try) 2>&5
13743 - ac_status=$?
13744 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
13745 - (exit $ac_status); }; } &&
13746 - { ac_try='test -s conftest.$ac_objext'
13747 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13748 - (eval $ac_try) 2>&5
13749 - ac_status=$?
13750 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
13751 - (exit $ac_status); }; }; then
13752 + (exit $ac_status); } && {
13753 + test -z "$ac_c_werror_flag" ||
13754 + test ! -s conftest.err
13755 + } && test -s conftest.$ac_objext; then
13756 bfd_cv_have_sys_procfs_type_win32_pstatus_t=yes
13757 else
13758 echo "$as_me: failed program was:" >&5
13759 sed 's/^/| /' conftest.$ac_ext >&5
13760
13761 -bfd_cv_have_sys_procfs_type_win32_pstatus_t=no
13762 + bfd_cv_have_sys_procfs_type_win32_pstatus_t=no
13763
13764 fi
13765 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13766 +
13767 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13768 fi
13769
13770 if test $bfd_cv_have_sys_procfs_type_win32_pstatus_t = yes; then
13771 @@ -12910,8 +13227,8 @@ cat >>confdefs.h <<\_ACEOF
13772 _ACEOF
13773
13774 fi
13775 - echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_win32_pstatus_t" >&5
13776 -echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_win32_pstatus_t" >&6
13777 + { echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_win32_pstatus_t" >&5
13778 +echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_win32_pstatus_t" >&6; }
13779
13780 fi
13781 fi
13782 @@ -13070,6 +13387,7 @@ do
13783 bfd_efi_app_ia64_vec) tb="$tb efi-app-ia64.lo pepigen.lo cofflink.lo"; target_size=64 ;;
13784 bfd_elf32_am33lin_vec) tb="$tb elf32-am33lin.lo elf32.lo $elf" ;;
13785 bfd_elf32_avr_vec) tb="$tb elf32-avr.lo elf32.lo $elf" ;;
13786 + bfd_elf32_avr32_vec) tb="$tb elf32-avr32.lo elf32.lo $elf" ;;
13787 bfd_elf32_bfin_vec) tb="$tb elf32-bfin.lo elf32.lo $elf" ;;
13788 bfd_elf32_bfinfdpic_vec) tb="$tb elf32-bfin.lo elf32.lo $elf" ;;
13789 bfd_elf32_big_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
13790 @@ -13389,8 +13707,8 @@ echo "$as_me: WARNING: your compiler may
13791 fi
13792 if test -n "$GCC" ; then
13793 bad_64bit_gcc=no;
13794 - echo "$as_me:$LINENO: checking for gcc version with buggy 64-bit support" >&5
13795 -echo $ECHO_N "checking for gcc version with buggy 64-bit support... $ECHO_C" >&6
13796 + { echo "$as_me:$LINENO: checking for gcc version with buggy 64-bit support" >&5
13797 +echo $ECHO_N "checking for gcc version with buggy 64-bit support... $ECHO_C" >&6; }
13798 # Add more tests for gcc versions with non-working 64-bit support here.
13799 cat >conftest.$ac_ext <<_ACEOF
13800 /* confdefs.h. */
13801 @@ -13403,11 +13721,11 @@ _ACEOF
13802 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13803 $EGREP ": 2 : 91 : 1 :" >/dev/null 2>&1; then
13804 bad_64bit_gcc=yes;
13805 - echo "$as_me:$LINENO: result: yes: egcs-1.1.2 on ix86 spotted" >&5
13806 -echo "${ECHO_T}yes: egcs-1.1.2 on ix86 spotted" >&6
13807 + { echo "$as_me:$LINENO: result: yes: egcs-1.1.2 on ix86 spotted" >&5
13808 +echo "${ECHO_T}yes: egcs-1.1.2 on ix86 spotted" >&6; }
13809 else
13810 - echo "$as_me:$LINENO: result: no" >&5
13811 -echo "${ECHO_T}no" >&6
13812 + { echo "$as_me:$LINENO: result: no" >&5
13813 +echo "${ECHO_T}no" >&6; }
13814 fi
13815 rm -f conftest*
13816
13817 @@ -13445,9 +13763,9 @@ esac
13818 for ac_func in ftello ftello64 fseeko fseeko64 fopen64
13819 do
13820 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13821 -echo "$as_me:$LINENO: checking for $ac_func" >&5
13822 -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13823 -if eval "test \"\${$as_ac_var+set}\" = set"; then
13824 +{ echo "$as_me:$LINENO: checking for $ac_func" >&5
13825 +echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13826 +if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13827 echo $ECHO_N "(cached) $ECHO_C" >&6
13828 else
13829 cat >conftest.$ac_ext <<_ACEOF
13830 @@ -13473,68 +13791,60 @@ cat >>conftest.$ac_ext <<_ACEOF
13831
13832 #undef $ac_func
13833
13834 -/* Override any gcc2 internal prototype to avoid an error. */
13835 +/* Override any GCC internal prototype to avoid an error.
13836 + Use char because int might match the return type of a GCC
13837 + builtin and then its argument prototype would still apply. */
13838 #ifdef __cplusplus
13839 extern "C"
13840 -{
13841 #endif
13842 -/* We use char because int might match the return type of a gcc2
13843 - builtin and then its argument prototype would still apply. */
13844 char $ac_func ();
13845 /* The GNU C library defines this for functions which it implements
13846 to always fail with ENOSYS. Some functions are actually named
13847 something starting with __ and the normal name is an alias. */
13848 -#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13849 +#if defined __stub_$ac_func || defined __stub___$ac_func
13850 choke me
13851 -#else
13852 -char (*f) () = $ac_func;
13853 -#endif
13854 -#ifdef __cplusplus
13855 -}
13856 #endif
13857
13858 int
13859 main ()
13860 {
13861 -return f != $ac_func;
13862 +return $ac_func ();
13863 ;
13864 return 0;
13865 }
13866 _ACEOF
13867 rm -f conftest.$ac_objext conftest$ac_exeext
13868 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13869 - (eval $ac_link) 2>conftest.er1
13870 +if { (ac_try="$ac_link"
13871 +case "(($ac_try" in
13872 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13873 + *) ac_try_echo=$ac_try;;
13874 +esac
13875 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13876 + (eval "$ac_link") 2>conftest.er1
13877 ac_status=$?
13878 grep -v '^ *+' conftest.er1 >conftest.err
13879 rm -f conftest.er1
13880 cat conftest.err >&5
13881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13882 - (exit $ac_status); } &&
13883 - { ac_try='test -z "$ac_c_werror_flag"
13884 - || test ! -s conftest.err'
13885 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13886 - (eval $ac_try) 2>&5
13887 - ac_status=$?
13888 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
13889 - (exit $ac_status); }; } &&
13890 - { ac_try='test -s conftest$ac_exeext'
13891 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13892 - (eval $ac_try) 2>&5
13893 - ac_status=$?
13894 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
13895 - (exit $ac_status); }; }; then
13896 + (exit $ac_status); } && {
13897 + test -z "$ac_c_werror_flag" ||
13898 + test ! -s conftest.err
13899 + } && test -s conftest$ac_exeext &&
13900 + $as_test_x conftest$ac_exeext; then
13901 eval "$as_ac_var=yes"
13902 else
13903 echo "$as_me: failed program was:" >&5
13904 sed 's/^/| /' conftest.$ac_ext >&5
13905
13906 -eval "$as_ac_var=no"
13907 + eval "$as_ac_var=no"
13908 fi
13909 -rm -f conftest.err conftest.$ac_objext \
13910 +
13911 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13912 conftest$ac_exeext conftest.$ac_ext
13913 fi
13914 -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13915 -echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13916 +ac_res=`eval echo '${'$as_ac_var'}'`
13917 + { echo "$as_me:$LINENO: result: $ac_res" >&5
13918 +echo "${ECHO_T}$ac_res" >&6; }
13919 if test `eval echo '${'$as_ac_var'}'` = yes; then
13920 cat >>confdefs.h <<_ACEOF
13921 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13922 @@ -13544,8 +13854,8 @@ fi
13923 done
13924
13925 if test x"$ac_cv_func_ftello" = xyes -a x"$ac_cv_func_fseeko" = xyes; then
13926 - echo "$as_me:$LINENO: checking for off_t" >&5
13927 -echo $ECHO_N "checking for off_t... $ECHO_C" >&6
13928 + { echo "$as_me:$LINENO: checking for off_t" >&5
13929 +echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
13930 if test "${ac_cv_type_off_t+set}" = set; then
13931 echo $ECHO_N "(cached) $ECHO_C" >&6
13932 else
13933 @@ -13556,61 +13866,57 @@ cat confdefs.h >>conftest.$ac_ext
13934 cat >>conftest.$ac_ext <<_ACEOF
13935 /* end confdefs.h. */
13936 $ac_includes_default
13937 +typedef off_t ac__type_new_;
13938 int
13939 main ()
13940 {
13941 -if ((off_t *) 0)
13942 +if ((ac__type_new_ *) 0)
13943 return 0;
13944 -if (sizeof (off_t))
13945 +if (sizeof (ac__type_new_))
13946 return 0;
13947 ;
13948 return 0;
13949 }
13950 _ACEOF
13951 rm -f conftest.$ac_objext
13952 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13953 - (eval $ac_compile) 2>conftest.er1
13954 +if { (ac_try="$ac_compile"
13955 +case "(($ac_try" in
13956 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13957 + *) ac_try_echo=$ac_try;;
13958 +esac
13959 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13960 + (eval "$ac_compile") 2>conftest.er1
13961 ac_status=$?
13962 grep -v '^ *+' conftest.er1 >conftest.err
13963 rm -f conftest.er1
13964 cat conftest.err >&5
13965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13966 - (exit $ac_status); } &&
13967 - { ac_try='test -z "$ac_c_werror_flag"
13968 - || test ! -s conftest.err'
13969 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13970 - (eval $ac_try) 2>&5
13971 - ac_status=$?
13972 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
13973 - (exit $ac_status); }; } &&
13974 - { ac_try='test -s conftest.$ac_objext'
13975 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13976 - (eval $ac_try) 2>&5
13977 - ac_status=$?
13978 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
13979 - (exit $ac_status); }; }; then
13980 + (exit $ac_status); } && {
13981 + test -z "$ac_c_werror_flag" ||
13982 + test ! -s conftest.err
13983 + } && test -s conftest.$ac_objext; then
13984 ac_cv_type_off_t=yes
13985 else
13986 echo "$as_me: failed program was:" >&5
13987 sed 's/^/| /' conftest.$ac_ext >&5
13988
13989 -ac_cv_type_off_t=no
13990 + ac_cv_type_off_t=no
13991 fi
13992 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13993 +
13994 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13995 fi
13996 -echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
13997 -echo "${ECHO_T}$ac_cv_type_off_t" >&6
13998 +{ echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
13999 +echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
14000
14001 -echo "$as_me:$LINENO: checking size of off_t" >&5
14002 -echo $ECHO_N "checking size of off_t... $ECHO_C" >&6
14003 +# The cast to long int works around a bug in the HP C Compiler
14004 +# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14005 +# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14006 +# This bug is HP SR number 8606223364.
14007 +{ echo "$as_me:$LINENO: checking size of off_t" >&5
14008 +echo $ECHO_N "checking size of off_t... $ECHO_C" >&6; }
14009 if test "${ac_cv_sizeof_off_t+set}" = set; then
14010 echo $ECHO_N "(cached) $ECHO_C" >&6
14011 else
14012 - if test "$ac_cv_type_off_t" = yes; then
14013 - # The cast to unsigned long works around a bug in the HP C Compiler
14014 - # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14015 - # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14016 - # This bug is HP SR number 8606223364.
14017 if test "$cross_compiling" = yes; then
14018 # Depending upon the size, compute the lo and hi bounds.
14019 cat >conftest.$ac_ext <<_ACEOF
14020 @@ -13620,10 +13926,11 @@ cat confdefs.h >>conftest.$ac_ext
14021 cat >>conftest.$ac_ext <<_ACEOF
14022 /* end confdefs.h. */
14023 $ac_includes_default
14024 + typedef off_t ac__type_sizeof_;
14025 int
14026 main ()
14027 {
14028 -static int test_array [1 - 2 * !(((long) (sizeof (off_t))) >= 0)];
14029 +static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
14030 test_array [0] = 0
14031
14032 ;
14033 @@ -13631,27 +13938,22 @@ test_array [0] = 0
14034 }
14035 _ACEOF
14036 rm -f conftest.$ac_objext
14037 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14038 - (eval $ac_compile) 2>conftest.er1
14039 +if { (ac_try="$ac_compile"
14040 +case "(($ac_try" in
14041 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14042 + *) ac_try_echo=$ac_try;;
14043 +esac
14044 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14045 + (eval "$ac_compile") 2>conftest.er1
14046 ac_status=$?
14047 grep -v '^ *+' conftest.er1 >conftest.err
14048 rm -f conftest.er1
14049 cat conftest.err >&5
14050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14051 - (exit $ac_status); } &&
14052 - { ac_try='test -z "$ac_c_werror_flag"
14053 - || test ! -s conftest.err'
14054 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14055 - (eval $ac_try) 2>&5
14056 - ac_status=$?
14057 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
14058 - (exit $ac_status); }; } &&
14059 - { ac_try='test -s conftest.$ac_objext'
14060 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14061 - (eval $ac_try) 2>&5
14062 - ac_status=$?
14063 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
14064 - (exit $ac_status); }; }; then
14065 + (exit $ac_status); } && {
14066 + test -z "$ac_c_werror_flag" ||
14067 + test ! -s conftest.err
14068 + } && test -s conftest.$ac_objext; then
14069 ac_lo=0 ac_mid=0
14070 while :; do
14071 cat >conftest.$ac_ext <<_ACEOF
14072 @@ -13661,10 +13963,11 @@ cat confdefs.h >>conftest.$ac_ext
14073 cat >>conftest.$ac_ext <<_ACEOF
14074 /* end confdefs.h. */
14075 $ac_includes_default
14076 + typedef off_t ac__type_sizeof_;
14077 int
14078 main ()
14079 {
14080 -static int test_array [1 - 2 * !(((long) (sizeof (off_t))) <= $ac_mid)];
14081 +static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
14082 test_array [0] = 0
14083
14084 ;
14085 @@ -13672,56 +13975,53 @@ test_array [0] = 0
14086 }
14087 _ACEOF
14088 rm -f conftest.$ac_objext
14089 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14090 - (eval $ac_compile) 2>conftest.er1
14091 +if { (ac_try="$ac_compile"
14092 +case "(($ac_try" in
14093 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14094 + *) ac_try_echo=$ac_try;;
14095 +esac
14096 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14097 + (eval "$ac_compile") 2>conftest.er1
14098 ac_status=$?
14099 grep -v '^ *+' conftest.er1 >conftest.err
14100 rm -f conftest.er1
14101 cat conftest.err >&5
14102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14103 - (exit $ac_status); } &&
14104 - { ac_try='test -z "$ac_c_werror_flag"
14105 - || test ! -s conftest.err'
14106 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14107 - (eval $ac_try) 2>&5
14108 - ac_status=$?
14109 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
14110 - (exit $ac_status); }; } &&
14111 - { ac_try='test -s conftest.$ac_objext'
14112 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14113 - (eval $ac_try) 2>&5
14114 - ac_status=$?
14115 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
14116 - (exit $ac_status); }; }; then
14117 + (exit $ac_status); } && {
14118 + test -z "$ac_c_werror_flag" ||
14119 + test ! -s conftest.err
14120 + } && test -s conftest.$ac_objext; then
14121 ac_hi=$ac_mid; break
14122 else
14123 echo "$as_me: failed program was:" >&5
14124 sed 's/^/| /' conftest.$ac_ext >&5
14125
14126 -ac_lo=`expr $ac_mid + 1`
14127 - if test $ac_lo -le $ac_mid; then
14128 - ac_lo= ac_hi=
14129 - break
14130 - fi
14131 - ac_mid=`expr 2 '*' $ac_mid + 1`
14132 + ac_lo=`expr $ac_mid + 1`
14133 + if test $ac_lo -le $ac_mid; then
14134 + ac_lo= ac_hi=
14135 + break
14136 + fi
14137 + ac_mid=`expr 2 '*' $ac_mid + 1`
14138 fi
14139 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14140 +
14141 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14142 done
14143 else
14144 echo "$as_me: failed program was:" >&5
14145 sed 's/^/| /' conftest.$ac_ext >&5
14146
14147 -cat >conftest.$ac_ext <<_ACEOF
14148 + cat >conftest.$ac_ext <<_ACEOF
14149 /* confdefs.h. */
14150 _ACEOF
14151 cat confdefs.h >>conftest.$ac_ext
14152 cat >>conftest.$ac_ext <<_ACEOF
14153 /* end confdefs.h. */
14154 $ac_includes_default
14155 + typedef off_t ac__type_sizeof_;
14156 int
14157 main ()
14158 {
14159 -static int test_array [1 - 2 * !(((long) (sizeof (off_t))) < 0)];
14160 +static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
14161 test_array [0] = 0
14162
14163 ;
14164 @@ -13729,27 +14029,22 @@ test_array [0] = 0
14165 }
14166 _ACEOF
14167 rm -f conftest.$ac_objext
14168 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14169 - (eval $ac_compile) 2>conftest.er1
14170 +if { (ac_try="$ac_compile"
14171 +case "(($ac_try" in
14172 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14173 + *) ac_try_echo=$ac_try;;
14174 +esac
14175 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14176 + (eval "$ac_compile") 2>conftest.er1
14177 ac_status=$?
14178 grep -v '^ *+' conftest.er1 >conftest.err
14179 rm -f conftest.er1
14180 cat conftest.err >&5
14181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14182 - (exit $ac_status); } &&
14183 - { ac_try='test -z "$ac_c_werror_flag"
14184 - || test ! -s conftest.err'
14185 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14186 - (eval $ac_try) 2>&5
14187 - ac_status=$?
14188 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
14189 - (exit $ac_status); }; } &&
14190 - { ac_try='test -s conftest.$ac_objext'
14191 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14192 - (eval $ac_try) 2>&5
14193 - ac_status=$?
14194 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
14195 - (exit $ac_status); }; }; then
14196 + (exit $ac_status); } && {
14197 + test -z "$ac_c_werror_flag" ||
14198 + test ! -s conftest.err
14199 + } && test -s conftest.$ac_objext; then
14200 ac_hi=-1 ac_mid=-1
14201 while :; do
14202 cat >conftest.$ac_ext <<_ACEOF
14203 @@ -13759,10 +14054,11 @@ cat confdefs.h >>conftest.$ac_ext
14204 cat >>conftest.$ac_ext <<_ACEOF
14205 /* end confdefs.h. */
14206 $ac_includes_default
14207 + typedef off_t ac__type_sizeof_;
14208 int
14209 main ()
14210 {
14211 -static int test_array [1 - 2 * !(((long) (sizeof (off_t))) >= $ac_mid)];
14212 +static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
14213 test_array [0] = 0
14214
14215 ;
14216 @@ -13770,50 +14066,48 @@ test_array [0] = 0
14217 }
14218 _ACEOF
14219 rm -f conftest.$ac_objext
14220 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14221 - (eval $ac_compile) 2>conftest.er1
14222 +if { (ac_try="$ac_compile"
14223 +case "(($ac_try" in
14224 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14225 + *) ac_try_echo=$ac_try;;
14226 +esac
14227 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14228 + (eval "$ac_compile") 2>conftest.er1
14229 ac_status=$?
14230 grep -v '^ *+' conftest.er1 >conftest.err
14231 rm -f conftest.er1
14232 cat conftest.err >&5
14233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14234 - (exit $ac_status); } &&
14235 - { ac_try='test -z "$ac_c_werror_flag"
14236 - || test ! -s conftest.err'
14237 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14238 - (eval $ac_try) 2>&5
14239 - ac_status=$?
14240 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
14241 - (exit $ac_status); }; } &&
14242 - { ac_try='test -s conftest.$ac_objext'
14243 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14244 - (eval $ac_try) 2>&5
14245 - ac_status=$?
14246 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
14247 - (exit $ac_status); }; }; then
14248 + (exit $ac_status); } && {
14249 + test -z "$ac_c_werror_flag" ||
14250 + test ! -s conftest.err
14251 + } && test -s conftest.$ac_objext; then
14252 ac_lo=$ac_mid; break
14253 else
14254 echo "$as_me: failed program was:" >&5
14255 sed 's/^/| /' conftest.$ac_ext >&5
14256
14257 -ac_hi=`expr '(' $ac_mid ')' - 1`
14258 - if test $ac_mid -le $ac_hi; then
14259 - ac_lo= ac_hi=
14260 - break
14261 - fi
14262 - ac_mid=`expr 2 '*' $ac_mid`
14263 + ac_hi=`expr '(' $ac_mid ')' - 1`
14264 + if test $ac_mid -le $ac_hi; then
14265 + ac_lo= ac_hi=
14266 + break
14267 + fi
14268 + ac_mid=`expr 2 '*' $ac_mid`
14269 fi
14270 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14271 +
14272 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14273 done
14274 else
14275 echo "$as_me: failed program was:" >&5
14276 sed 's/^/| /' conftest.$ac_ext >&5
14277
14278 -ac_lo= ac_hi=
14279 + ac_lo= ac_hi=
14280 fi
14281 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14282 +
14283 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14284 fi
14285 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14286 +
14287 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14288 # Binary search between lo and hi bounds.
14289 while test "x$ac_lo" != "x$ac_hi"; do
14290 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14291 @@ -13824,10 +14118,11 @@ cat confdefs.h >>conftest.$ac_ext
14292 cat >>conftest.$ac_ext <<_ACEOF
14293 /* end confdefs.h. */
14294 $ac_includes_default
14295 + typedef off_t ac__type_sizeof_;
14296 int
14297 main ()
14298 {
14299 -static int test_array [1 - 2 * !(((long) (sizeof (off_t))) <= $ac_mid)];
14300 +static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
14301 test_array [0] = 0
14302
14303 ;
14304 @@ -13835,52 +14130,45 @@ test_array [0] = 0
14305 }
14306 _ACEOF
14307 rm -f conftest.$ac_objext
14308 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14309 - (eval $ac_compile) 2>conftest.er1
14310 +if { (ac_try="$ac_compile"
14311 +case "(($ac_try" in
14312 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14313 + *) ac_try_echo=$ac_try;;
14314 +esac
14315 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14316 + (eval "$ac_compile") 2>conftest.er1
14317 ac_status=$?
14318 grep -v '^ *+' conftest.er1 >conftest.err
14319 rm -f conftest.er1
14320 cat conftest.err >&5
14321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14322 - (exit $ac_status); } &&
14323 - { ac_try='test -z "$ac_c_werror_flag"
14324 - || test ! -s conftest.err'
14325 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14326 - (eval $ac_try) 2>&5
14327 - ac_status=$?
14328 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
14329 - (exit $ac_status); }; } &&
14330 - { ac_try='test -s conftest.$ac_objext'
14331 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14332 - (eval $ac_try) 2>&5
14333 - ac_status=$?
14334 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
14335 - (exit $ac_status); }; }; then
14336 + (exit $ac_status); } && {
14337 + test -z "$ac_c_werror_flag" ||
14338 + test ! -s conftest.err
14339 + } && test -s conftest.$ac_objext; then
14340 ac_hi=$ac_mid
14341 else
14342 echo "$as_me: failed program was:" >&5
14343 sed 's/^/| /' conftest.$ac_ext >&5
14344
14345 -ac_lo=`expr '(' $ac_mid ')' + 1`
14346 + ac_lo=`expr '(' $ac_mid ')' + 1`
14347 fi
14348 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14349 +
14350 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14351 done
14352 case $ac_lo in
14353 ?*) ac_cv_sizeof_off_t=$ac_lo;;
14354 -'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t), 77
14355 +'') if test "$ac_cv_type_off_t" = yes; then
14356 + { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
14357 See \`config.log' for more details." >&5
14358 -echo "$as_me: error: cannot compute sizeof (off_t), 77
14359 +echo "$as_me: error: cannot compute sizeof (off_t)
14360 See \`config.log' for more details." >&2;}
14361 - { (exit 1); exit 1; }; } ;;
14362 + { (exit 77); exit 77; }; }
14363 + else
14364 + ac_cv_sizeof_off_t=0
14365 + fi ;;
14366 esac
14367 else
14368 - if test "$cross_compiling" = yes; then
14369 - { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14370 -See \`config.log' for more details." >&5
14371 -echo "$as_me: error: cannot run test program while cross compiling
14372 -See \`config.log' for more details." >&2;}
14373 - { (exit 1); exit 1; }; }
14374 -else
14375 cat >conftest.$ac_ext <<_ACEOF
14376 /* confdefs.h. */
14377 _ACEOF
14378 @@ -13888,8 +14176,9 @@ cat confdefs.h >>conftest.$ac_ext
14379 cat >>conftest.$ac_ext <<_ACEOF
14380 /* end confdefs.h. */
14381 $ac_includes_default
14382 -long longval () { return (long) (sizeof (off_t)); }
14383 -unsigned long ulongval () { return (long) (sizeof (off_t)); }
14384 + typedef off_t ac__type_sizeof_;
14385 +static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
14386 +static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
14387 #include <stdio.h>
14388 #include <stdlib.h>
14389 int
14390 @@ -13898,35 +14187,44 @@ main ()
14391
14392 FILE *f = fopen ("conftest.val", "w");
14393 if (! f)
14394 - exit (1);
14395 - if (((long) (sizeof (off_t))) < 0)
14396 + return 1;
14397 + if (((long int) (sizeof (ac__type_sizeof_))) < 0)
14398 {
14399 - long i = longval ();
14400 - if (i != ((long) (sizeof (off_t))))
14401 - exit (1);
14402 + long int i = longval ();
14403 + if (i != ((long int) (sizeof (ac__type_sizeof_))))
14404 + return 1;
14405 fprintf (f, "%ld\n", i);
14406 }
14407 else
14408 {
14409 - unsigned long i = ulongval ();
14410 - if (i != ((long) (sizeof (off_t))))
14411 - exit (1);
14412 + unsigned long int i = ulongval ();
14413 + if (i != ((long int) (sizeof (ac__type_sizeof_))))
14414 + return 1;
14415 fprintf (f, "%lu\n", i);
14416 }
14417 - exit (ferror (f) || fclose (f) != 0);
14418 + return ferror (f) || fclose (f) != 0;
14419
14420 ;
14421 return 0;
14422 }
14423 _ACEOF
14424 rm -f conftest$ac_exeext
14425 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14426 - (eval $ac_link) 2>&5
14427 +if { (ac_try="$ac_link"
14428 +case "(($ac_try" in
14429 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14430 + *) ac_try_echo=$ac_try;;
14431 +esac
14432 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14433 + (eval "$ac_link") 2>&5
14434 ac_status=$?
14435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14436 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14437 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14438 - (eval $ac_try) 2>&5
14439 + { (case "(($ac_try" in
14440 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14441 + *) ac_try_echo=$ac_try;;
14442 +esac
14443 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14444 + (eval "$ac_try") 2>&5
14445 ac_status=$?
14446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14447 (exit $ac_status); }; }; then
14448 @@ -13937,30 +14235,33 @@ echo "$as_me: failed program was:" >&5
14449 sed 's/^/| /' conftest.$ac_ext >&5
14450
14451 ( exit $ac_status )
14452 -{ { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t), 77
14453 +if test "$ac_cv_type_off_t" = yes; then
14454 + { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
14455 See \`config.log' for more details." >&5
14456 -echo "$as_me: error: cannot compute sizeof (off_t), 77
14457 +echo "$as_me: error: cannot compute sizeof (off_t)
14458 See \`config.log' for more details." >&2;}
14459 - { (exit 1); exit 1; }; }
14460 -fi
14461 -rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14462 + { (exit 77); exit 77; }; }
14463 + else
14464 + ac_cv_sizeof_off_t=0
14465 + fi
14466 fi
14467 +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14468 fi
14469 rm -f conftest.val
14470 -else
14471 - ac_cv_sizeof_off_t=0
14472 -fi
14473 fi
14474 -echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
14475 -echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6
14476 +{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
14477 +echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6; }
14478 +
14479 +
14480 +
14481 cat >>confdefs.h <<_ACEOF
14482 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
14483 _ACEOF
14484
14485
14486 fi
14487 -echo "$as_me:$LINENO: checking file_ptr type" >&5
14488 -echo $ECHO_N "checking file_ptr type... $ECHO_C" >&6
14489 +{ echo "$as_me:$LINENO: checking file_ptr type" >&5
14490 +echo $ECHO_N "checking file_ptr type... $ECHO_C" >&6; }
14491 bfd_file_ptr="long"
14492 bfd_ufile_ptr="unsigned long"
14493 if test x"$ac_cv_func_ftello64" = xyes -a x"$ac_cv_func_fseeko64" = xyes \
14494 @@ -13968,8 +14269,8 @@ if test x"$ac_cv_func_ftello64" = xyes -
14495 bfd_file_ptr=BFD_HOST_64_BIT
14496 bfd_ufile_ptr=BFD_HOST_U_64_BIT
14497 fi
14498 -echo "$as_me:$LINENO: result: $bfd_file_ptr" >&5
14499 -echo "${ECHO_T}$bfd_file_ptr" >&6
14500 +{ echo "$as_me:$LINENO: result: $bfd_file_ptr" >&5
14501 +echo "${ECHO_T}$bfd_file_ptr" >&6; }
14502
14503
14504
14505 @@ -13987,18 +14288,19 @@ test -n "${havevecs}" && tdefaults="${td
14506 for ac_header in stdlib.h unistd.h
14507 do
14508 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14509 -if eval "test \"\${$as_ac_Header+set}\" = set"; then
14510 - echo "$as_me:$LINENO: checking for $ac_header" >&5
14511 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14512 -if eval "test \"\${$as_ac_Header+set}\" = set"; then
14513 +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14514 + { echo "$as_me:$LINENO: checking for $ac_header" >&5
14515 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14516 +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14517 echo $ECHO_N "(cached) $ECHO_C" >&6
14518 fi
14519 -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14520 -echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14521 +ac_res=`eval echo '${'$as_ac_Header'}'`
14522 + { echo "$as_me:$LINENO: result: $ac_res" >&5
14523 +echo "${ECHO_T}$ac_res" >&6; }
14524 else
14525 # Is the header compilable?
14526 -echo "$as_me:$LINENO: checking $ac_header usability" >&5
14527 -echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14528 +{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14529 +echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14530 cat >conftest.$ac_ext <<_ACEOF
14531 /* confdefs.h. */
14532 _ACEOF
14533 @@ -14009,41 +14311,37 @@ $ac_includes_default
14534 #include <$ac_header>
14535 _ACEOF
14536 rm -f conftest.$ac_objext
14537 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14538 - (eval $ac_compile) 2>conftest.er1
14539 +if { (ac_try="$ac_compile"
14540 +case "(($ac_try" in
14541 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14542 + *) ac_try_echo=$ac_try;;
14543 +esac
14544 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14545 + (eval "$ac_compile") 2>conftest.er1
14546 ac_status=$?
14547 grep -v '^ *+' conftest.er1 >conftest.err
14548 rm -f conftest.er1
14549 cat conftest.err >&5
14550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14551 - (exit $ac_status); } &&
14552 - { ac_try='test -z "$ac_c_werror_flag"
14553 - || test ! -s conftest.err'
14554 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14555 - (eval $ac_try) 2>&5
14556 - ac_status=$?
14557 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
14558 - (exit $ac_status); }; } &&
14559 - { ac_try='test -s conftest.$ac_objext'
14560 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14561 - (eval $ac_try) 2>&5
14562 - ac_status=$?
14563 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
14564 - (exit $ac_status); }; }; then
14565 + (exit $ac_status); } && {
14566 + test -z "$ac_c_werror_flag" ||
14567 + test ! -s conftest.err
14568 + } && test -s conftest.$ac_objext; then
14569 ac_header_compiler=yes
14570 else
14571 echo "$as_me: failed program was:" >&5
14572 sed 's/^/| /' conftest.$ac_ext >&5
14573
14574 -ac_header_compiler=no
14575 + ac_header_compiler=no
14576 fi
14577 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14578 -echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14579 -echo "${ECHO_T}$ac_header_compiler" >&6
14580 +
14581 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14582 +{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14583 +echo "${ECHO_T}$ac_header_compiler" >&6; }
14584
14585 # Is the header present?
14586 -echo "$as_me:$LINENO: checking $ac_header presence" >&5
14587 -echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14588 +{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14589 +echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14590 cat >conftest.$ac_ext <<_ACEOF
14591 /* confdefs.h. */
14592 _ACEOF
14593 @@ -14052,24 +14350,22 @@ cat >>conftest.$ac_ext <<_ACEOF
14594 /* end confdefs.h. */
14595 #include <$ac_header>
14596 _ACEOF
14597 -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14598 - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14599 +if { (ac_try="$ac_cpp conftest.$ac_ext"
14600 +case "(($ac_try" in
14601 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14602 + *) ac_try_echo=$ac_try;;
14603 +esac
14604 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14605 + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14606 ac_status=$?
14607 grep -v '^ *+' conftest.er1 >conftest.err
14608 rm -f conftest.er1
14609 cat conftest.err >&5
14610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14611 - (exit $ac_status); } >/dev/null; then
14612 - if test -s conftest.err; then
14613 - ac_cpp_err=$ac_c_preproc_warn_flag
14614 - ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14615 - else
14616 - ac_cpp_err=
14617 - fi
14618 -else
14619 - ac_cpp_err=yes
14620 -fi
14621 -if test -z "$ac_cpp_err"; then
14622 + (exit $ac_status); } >/dev/null && {
14623 + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14624 + test ! -s conftest.err
14625 + }; then
14626 ac_header_preproc=yes
14627 else
14628 echo "$as_me: failed program was:" >&5
14629 @@ -14077,9 +14373,10 @@ sed 's/^/| /' conftest.$ac_ext >&5
14630
14631 ac_header_preproc=no
14632 fi
14633 +
14634 rm -f conftest.err conftest.$ac_ext
14635 -echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14636 -echo "${ECHO_T}$ac_header_preproc" >&6
14637 +{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14638 +echo "${ECHO_T}$ac_header_preproc" >&6; }
14639
14640 # So? What about this header?
14641 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14642 @@ -14103,25 +14400,19 @@ echo "$as_me: WARNING: $ac_header: s
14643 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14644 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14645 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14646 - (
14647 - cat <<\_ASBOX
14648 -## ------------------------------------------ ##
14649 -## Report this to the AC_PACKAGE_NAME lists. ##
14650 -## ------------------------------------------ ##
14651 -_ASBOX
14652 - ) |
14653 - sed "s/^/$as_me: WARNING: /" >&2
14654 +
14655 ;;
14656 esac
14657 -echo "$as_me:$LINENO: checking for $ac_header" >&5
14658 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14659 -if eval "test \"\${$as_ac_Header+set}\" = set"; then
14660 +{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14661 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14662 +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14663 echo $ECHO_N "(cached) $ECHO_C" >&6
14664 else
14665 eval "$as_ac_Header=\$ac_header_preproc"
14666 fi
14667 -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14668 -echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14669 +ac_res=`eval echo '${'$as_ac_Header'}'`
14670 + { echo "$as_me:$LINENO: result: $ac_res" >&5
14671 +echo "${ECHO_T}$ac_res" >&6; }
14672
14673 fi
14674 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14675 @@ -14137,9 +14428,9 @@ done
14676 for ac_func in getpagesize
14677 do
14678 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14679 -echo "$as_me:$LINENO: checking for $ac_func" >&5
14680 -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14681 -if eval "test \"\${$as_ac_var+set}\" = set"; then
14682 +{ echo "$as_me:$LINENO: checking for $ac_func" >&5
14683 +echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14684 +if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14685 echo $ECHO_N "(cached) $ECHO_C" >&6
14686 else
14687 cat >conftest.$ac_ext <<_ACEOF
14688 @@ -14165,68 +14456,60 @@ cat >>conftest.$ac_ext <<_ACEOF
14689
14690 #undef $ac_func
14691
14692 -/* Override any gcc2 internal prototype to avoid an error. */
14693 +/* Override any GCC internal prototype to avoid an error.
14694 + Use char because int might match the return type of a GCC
14695 + builtin and then its argument prototype would still apply. */
14696 #ifdef __cplusplus
14697 extern "C"
14698 -{
14699 #endif
14700 -/* We use char because int might match the return type of a gcc2
14701 - builtin and then its argument prototype would still apply. */
14702 char $ac_func ();
14703 /* The GNU C library defines this for functions which it implements
14704 to always fail with ENOSYS. Some functions are actually named
14705 something starting with __ and the normal name is an alias. */
14706 -#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14707 +#if defined __stub_$ac_func || defined __stub___$ac_func
14708 choke me
14709 -#else
14710 -char (*f) () = $ac_func;
14711 -#endif
14712 -#ifdef __cplusplus
14713 -}
14714 #endif
14715
14716 int
14717 main ()
14718 {
14719 -return f != $ac_func;
14720 +return $ac_func ();
14721 ;
14722 return 0;
14723 }
14724 _ACEOF
14725 rm -f conftest.$ac_objext conftest$ac_exeext
14726 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14727 - (eval $ac_link) 2>conftest.er1
14728 +if { (ac_try="$ac_link"
14729 +case "(($ac_try" in
14730 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14731 + *) ac_try_echo=$ac_try;;
14732 +esac
14733 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14734 + (eval "$ac_link") 2>conftest.er1
14735 ac_status=$?
14736 grep -v '^ *+' conftest.er1 >conftest.err
14737 rm -f conftest.er1
14738 cat conftest.err >&5
14739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14740 - (exit $ac_status); } &&
14741 - { ac_try='test -z "$ac_c_werror_flag"
14742 - || test ! -s conftest.err'
14743 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14744 - (eval $ac_try) 2>&5
14745 - ac_status=$?
14746 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
14747 - (exit $ac_status); }; } &&
14748 - { ac_try='test -s conftest$ac_exeext'
14749 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14750 - (eval $ac_try) 2>&5
14751 - ac_status=$?
14752 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
14753 - (exit $ac_status); }; }; then
14754 + (exit $ac_status); } && {
14755 + test -z "$ac_c_werror_flag" ||
14756 + test ! -s conftest.err
14757 + } && test -s conftest$ac_exeext &&
14758 + $as_test_x conftest$ac_exeext; then
14759 eval "$as_ac_var=yes"
14760 else
14761 echo "$as_me: failed program was:" >&5
14762 sed 's/^/| /' conftest.$ac_ext >&5
14763
14764 -eval "$as_ac_var=no"
14765 + eval "$as_ac_var=no"
14766 fi
14767 -rm -f conftest.err conftest.$ac_objext \
14768 +
14769 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14770 conftest$ac_exeext conftest.$ac_ext
14771 fi
14772 -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14773 -echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14774 +ac_res=`eval echo '${'$as_ac_var'}'`
14775 + { echo "$as_me:$LINENO: result: $ac_res" >&5
14776 +echo "${ECHO_T}$ac_res" >&6; }
14777 if test `eval echo '${'$as_ac_var'}'` = yes; then
14778 cat >>confdefs.h <<_ACEOF
14779 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14780 @@ -14235,8 +14518,8 @@ _ACEOF
14781 fi
14782 done
14783
14784 -echo "$as_me:$LINENO: checking for working mmap" >&5
14785 -echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
14786 +{ echo "$as_me:$LINENO: checking for working mmap" >&5
14787 +echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
14788 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
14789 echo $ECHO_N "(cached) $ECHO_C" >&6
14790 else
14791 @@ -14278,21 +14561,21 @@ $ac_includes_default
14792 #include <fcntl.h>
14793 #include <sys/mman.h>
14794
14795 -#if !STDC_HEADERS && !HAVE_STDLIB_H
14796 +#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
14797 char *malloc ();
14798 #endif
14799
14800 /* This mess was copied from the GNU getpagesize.h. */
14801 -#if !HAVE_GETPAGESIZE
14802 +#ifndef HAVE_GETPAGESIZE
14803 /* Assume that all systems that can run configure have sys/param.h. */
14804 -# if !HAVE_SYS_PARAM_H
14805 +# ifndef HAVE_SYS_PARAM_H
14806 # define HAVE_SYS_PARAM_H 1
14807 # endif
14808
14809 # ifdef _SC_PAGESIZE
14810 # define getpagesize() sysconf(_SC_PAGESIZE)
14811 # else /* no _SC_PAGESIZE */
14812 -# if HAVE_SYS_PARAM_H
14813 +# ifdef HAVE_SYS_PARAM_H
14814 # include <sys/param.h>
14815 # ifdef EXEC_PAGESIZE
14816 # define getpagesize() EXEC_PAGESIZE
14817 @@ -14331,15 +14614,15 @@ main ()
14818 /* First, make a file with some known garbage in it. */
14819 data = (char *) malloc (pagesize);
14820 if (!data)
14821 - exit (1);
14822 + return 1;
14823 for (i = 0; i < pagesize; ++i)
14824 *(data + i) = rand ();
14825 umask (0);
14826 fd = creat ("conftest.mmap", 0600);
14827 if (fd < 0)
14828 - exit (1);
14829 + return 1;
14830 if (write (fd, data, pagesize) != pagesize)
14831 - exit (1);
14832 + return 1;
14833 close (fd);
14834
14835 /* Next, try to mmap the file at a fixed address which already has
14836 @@ -14347,17 +14630,17 @@ main ()
14837 we see the same garbage. */
14838 fd = open ("conftest.mmap", O_RDWR);
14839 if (fd < 0)
14840 - exit (1);
14841 + return 1;
14842 data2 = (char *) malloc (2 * pagesize);
14843 if (!data2)
14844 - exit (1);
14845 - data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
14846 + return 1;
14847 + data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
14848 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
14849 MAP_PRIVATE | MAP_FIXED, fd, 0L))
14850 - exit (1);
14851 + return 1;
14852 for (i = 0; i < pagesize; ++i)
14853 if (*(data + i) != *(data2 + i))
14854 - exit (1);
14855 + return 1;
14856
14857 /* Finally, make sure that changes to the mapped area do not
14858 percolate back to the file as seen by read(). (This is a bug on
14859 @@ -14366,24 +14649,33 @@ main ()
14860 *(data2 + i) = *(data2 + i) + 1;
14861 data3 = (char *) malloc (pagesize);
14862 if (!data3)
14863 - exit (1);
14864 + return 1;
14865 if (read (fd, data3, pagesize) != pagesize)
14866 - exit (1);
14867 + return 1;
14868 for (i = 0; i < pagesize; ++i)
14869 if (*(data + i) != *(data3 + i))
14870 - exit (1);
14871 + return 1;
14872 close (fd);
14873 - exit (0);
14874 + return 0;
14875 }
14876 _ACEOF
14877 rm -f conftest$ac_exeext
14878 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14879 - (eval $ac_link) 2>&5
14880 +if { (ac_try="$ac_link"
14881 +case "(($ac_try" in
14882 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14883 + *) ac_try_echo=$ac_try;;
14884 +esac
14885 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14886 + (eval "$ac_link") 2>&5
14887 ac_status=$?
14888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14889 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14890 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14891 - (eval $ac_try) 2>&5
14892 + { (case "(($ac_try" in
14893 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14894 + *) ac_try_echo=$ac_try;;
14895 +esac
14896 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14897 + (eval "$ac_try") 2>&5
14898 ac_status=$?
14899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14900 (exit $ac_status); }; }; then
14901 @@ -14396,11 +14688,13 @@ sed 's/^/| /' conftest.$ac_ext >&5
14902 ( exit $ac_status )
14903 ac_cv_func_mmap_fixed_mapped=no
14904 fi
14905 -rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14906 +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14907 fi
14908 +
14909 +
14910 fi
14911 -echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
14912 -echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
14913 +{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
14914 +echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
14915 if test $ac_cv_func_mmap_fixed_mapped = yes; then
14916
14917 cat >>confdefs.h <<\_ACEOF
14918 @@ -14415,9 +14709,9 @@ rm -f conftest.mmap
14919 for ac_func in madvise mprotect
14920 do
14921 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14922 -echo "$as_me:$LINENO: checking for $ac_func" >&5
14923 -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14924 -if eval "test \"\${$as_ac_var+set}\" = set"; then
14925 +{ echo "$as_me:$LINENO: checking for $ac_func" >&5
14926 +echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14927 +if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14928 echo $ECHO_N "(cached) $ECHO_C" >&6
14929 else
14930 cat >conftest.$ac_ext <<_ACEOF
14931 @@ -14443,68 +14737,60 @@ cat >>conftest.$ac_ext <<_ACEOF
14932
14933 #undef $ac_func
14934
14935 -/* Override any gcc2 internal prototype to avoid an error. */
14936 +/* Override any GCC internal prototype to avoid an error.
14937 + Use char because int might match the return type of a GCC
14938 + builtin and then its argument prototype would still apply. */
14939 #ifdef __cplusplus
14940 extern "C"
14941 -{
14942 #endif
14943 -/* We use char because int might match the return type of a gcc2
14944 - builtin and then its argument prototype would still apply. */
14945 char $ac_func ();
14946 /* The GNU C library defines this for functions which it implements
14947 to always fail with ENOSYS. Some functions are actually named
14948 something starting with __ and the normal name is an alias. */
14949 -#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14950 +#if defined __stub_$ac_func || defined __stub___$ac_func
14951 choke me
14952 -#else
14953 -char (*f) () = $ac_func;
14954 -#endif
14955 -#ifdef __cplusplus
14956 -}
14957 #endif
14958
14959 int
14960 main ()
14961 {
14962 -return f != $ac_func;
14963 +return $ac_func ();
14964 ;
14965 return 0;
14966 }
14967 _ACEOF
14968 rm -f conftest.$ac_objext conftest$ac_exeext
14969 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14970 - (eval $ac_link) 2>conftest.er1
14971 +if { (ac_try="$ac_link"
14972 +case "(($ac_try" in
14973 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14974 + *) ac_try_echo=$ac_try;;
14975 +esac
14976 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14977 + (eval "$ac_link") 2>conftest.er1
14978 ac_status=$?
14979 grep -v '^ *+' conftest.er1 >conftest.err
14980 rm -f conftest.er1
14981 cat conftest.err >&5
14982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14983 - (exit $ac_status); } &&
14984 - { ac_try='test -z "$ac_c_werror_flag"
14985 - || test ! -s conftest.err'
14986 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14987 - (eval $ac_try) 2>&5
14988 - ac_status=$?
14989 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
14990 - (exit $ac_status); }; } &&
14991 - { ac_try='test -s conftest$ac_exeext'
14992 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14993 - (eval $ac_try) 2>&5
14994 - ac_status=$?
14995 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
14996 - (exit $ac_status); }; }; then
14997 + (exit $ac_status); } && {
14998 + test -z "$ac_c_werror_flag" ||
14999 + test ! -s conftest.err
15000 + } && test -s conftest$ac_exeext &&
15001 + $as_test_x conftest$ac_exeext; then
15002 eval "$as_ac_var=yes"
15003 else
15004 echo "$as_me: failed program was:" >&5
15005 sed 's/^/| /' conftest.$ac_ext >&5
15006
15007 -eval "$as_ac_var=no"
15008 + eval "$as_ac_var=no"
15009 fi
15010 -rm -f conftest.err conftest.$ac_objext \
15011 +
15012 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15013 conftest$ac_exeext conftest.$ac_ext
15014 fi
15015 -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15016 -echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15017 +ac_res=`eval echo '${'$as_ac_var'}'`
15018 + { echo "$as_me:$LINENO: result: $ac_res" >&5
15019 +echo "${ECHO_T}$ac_res" >&6; }
15020 if test `eval echo '${'$as_ac_var'}'` = yes; then
15021 cat >>confdefs.h <<_ACEOF
15022 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15023 @@ -14522,9 +14808,9 @@ _ACEOF
15024 esac
15025
15026 rm -f doc/config.status
15027 - ac_config_files="$ac_config_files Makefile doc/Makefile bfd-in3.h:bfd-in2.h po/Makefile.in:po/Make-in"
15028 +ac_config_files="$ac_config_files Makefile doc/Makefile bfd-in3.h:bfd-in2.h po/Makefile.in:po/Make-in"
15029
15030 - ac_config_commands="$ac_config_commands default"
15031 +ac_config_commands="$ac_config_commands default"
15032
15033
15034
15035 @@ -14549,39 +14835,58 @@ _ACEOF
15036
15037 # The following way of writing the cache mishandles newlines in values,
15038 # but we know of no workaround that is simple, portable, and efficient.
15039 -# So, don't put newlines in cache variables' values.
15040 +# So, we kill variables containing newlines.
15041 # Ultrix sh set writes to stderr and can't be redirected directly,
15042 # and sets the high bit in the cache file unless we assign to the vars.
15043 -{
15044 +(
15045 + for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15046 + eval ac_val=\$$ac_var
15047 + case $ac_val in #(
15048 + *${as_nl}*)
15049 + case $ac_var in #(
15050 + *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
15051 +echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
15052 + esac
15053 + case $ac_var in #(
15054 + _ | IFS | as_nl) ;; #(
15055 + *) $as_unset $ac_var ;;
15056 + esac ;;
15057 + esac
15058 + done
15059 +
15060 (set) 2>&1 |
15061 - case `(ac_space=' '; set | grep ac_space) 2>&1` in
15062 - *ac_space=\ *)
15063 + case $as_nl`(ac_space=' '; set) 2>&1` in #(
15064 + *${as_nl}ac_space=\ *)
15065 # `set' does not quote correctly, so add quotes (double-quote
15066 # substitution turns \\\\ into \\, and sed turns \\ into \).
15067 sed -n \
15068 "s/'/'\\\\''/g;
15069 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15070 - ;;
15071 + ;; #(
15072 *)
15073 # `set' quotes correctly as required by POSIX, so do not add quotes.
15074 - sed -n \
15075 - "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
15076 + sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15077 ;;
15078 - esac;
15079 -} |
15080 + esac |
15081 + sort
15082 +) |
15083 sed '
15084 + /^ac_cv_env_/b end
15085 t clear
15086 - : clear
15087 + :clear
15088 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15089 t end
15090 - /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15091 - : end' >>confcache
15092 -if diff $cache_file confcache >/dev/null 2>&1; then :; else
15093 - if test -w $cache_file; then
15094 - test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
15095 + s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15096 + :end' >>confcache
15097 +if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15098 + if test -w "$cache_file"; then
15099 + test "x$cache_file" != "x/dev/null" &&
15100 + { echo "$as_me:$LINENO: updating cache $cache_file" >&5
15101 +echo "$as_me: updating cache $cache_file" >&6;}
15102 cat confcache >$cache_file
15103 else
15104 - echo "not updating unwritable cache $cache_file"
15105 + { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
15106 +echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15107 fi
15108 fi
15109 rm -f confcache
15110 @@ -14590,32 +14895,18 @@ test "x$prefix" = xNONE && prefix=$ac_de
15111 # Let make expand exec_prefix.
15112 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15113
15114 -# VPATH may cause trouble with some makes, so we remove $(srcdir),
15115 -# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15116 -# trailing colons and then remove the whole line if VPATH becomes empty
15117 -# (actually we leave an empty line to preserve line numbers).
15118 -if test "x$srcdir" = x.; then
15119 - ac_vpsub='/^[ ]*VPATH[ ]*=/{
15120 -s/:*\$(srcdir):*/:/;
15121 -s/:*\${srcdir}:*/:/;
15122 -s/:*@srcdir@:*/:/;
15123 -s/^\([^=]*=[ ]*\):*/\1/;
15124 -s/:*$//;
15125 -s/^[^=]*=[ ]*$//;
15126 -}'
15127 -fi
15128 -
15129 DEFS=-DHAVE_CONFIG_H
15130
15131 ac_libobjs=
15132 ac_ltlibobjs=
15133 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15134 # 1. Remove the extension, and $U if already installed.
15135 - ac_i=`echo "$ac_i" |
15136 - sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
15137 - # 2. Add them.
15138 - ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
15139 - ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
15140 + ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15141 + ac_i=`echo "$ac_i" | sed "$ac_script"`
15142 + # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15143 + # will be set to the directory where LIBOBJS objects are built.
15144 + ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15145 + ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
15146 done
15147 LIBOBJS=$ac_libobjs
15148
15149 @@ -14674,17 +14965,45 @@ cat >>$CONFIG_STATUS <<\_ACEOF
15150 ## M4sh Initialization. ##
15151 ## --------------------- ##
15152
15153 -# Be Bourne compatible
15154 +# Be more Bourne compatible
15155 +DUALCASE=1; export DUALCASE # for MKS sh
15156 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15157 emulate sh
15158 NULLCMD=:
15159 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
15160 # is contrary to our usage. Disable this feature.
15161 alias -g '${1+"$@"}'='"$@"'
15162 -elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
15163 - set -o posix
15164 + setopt NO_GLOB_SUBST
15165 +else
15166 + case `(set -o) 2>/dev/null` in
15167 + *posix*) set -o posix ;;
15168 +esac
15169 +
15170 +fi
15171 +
15172 +
15173 +
15174 +
15175 +# PATH needs CR
15176 +# Avoid depending upon Character Ranges.
15177 +as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15178 +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15179 +as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15180 +as_cr_digits='0123456789'
15181 +as_cr_alnum=$as_cr_Letters$as_cr_digits
15182 +
15183 +# The user is always right.
15184 +if test "${PATH_SEPARATOR+set}" != set; then
15185 + echo "#! /bin/sh" >conf$$.sh
15186 + echo "exit 0" >>conf$$.sh
15187 + chmod +x conf$$.sh
15188 + if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15189 + PATH_SEPARATOR=';'
15190 + else
15191 + PATH_SEPARATOR=:
15192 + fi
15193 + rm -f conf$$.sh
15194 fi
15195 -DUALCASE=1; export DUALCASE # for MKS sh
15196
15197 # Support unset when possible.
15198 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
15199 @@ -14694,8 +15013,43 @@ else
15200 fi
15201
15202
15203 +# IFS
15204 +# We need space, tab and new line, in precisely that order. Quoting is
15205 +# there to prevent editors from complaining about space-tab.
15206 +# (If _AS_PATH_WALK were called with IFS unset, it would disable word
15207 +# splitting by setting IFS to empty value.)
15208 +as_nl='
15209 +'
15210 +IFS=" "" $as_nl"
15211 +
15212 +# Find who we are. Look in the path if we contain no directory separator.
15213 +case $0 in
15214 + *[\\/]* ) as_myself=$0 ;;
15215 + *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15216 +for as_dir in $PATH
15217 +do
15218 + IFS=$as_save_IFS
15219 + test -z "$as_dir" && as_dir=.
15220 + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15221 +done
15222 +IFS=$as_save_IFS
15223 +
15224 + ;;
15225 +esac
15226 +# We did not find ourselves, most probably we were run as `sh COMMAND'
15227 +# in which case we are not to be found in the path.
15228 +if test "x$as_myself" = x; then
15229 + as_myself=$0
15230 +fi
15231 +if test ! -f "$as_myself"; then
15232 + echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15233 + { (exit 1); exit 1; }
15234 +fi
15235 +
15236 # Work around bugs in pre-3.0 UWIN ksh.
15237 -$as_unset ENV MAIL MAILPATH
15238 +for as_var in ENV MAIL MAILPATH
15239 +do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
15240 +done
15241 PS1='$ '
15242 PS2='> '
15243 PS4='+ '
15244 @@ -14709,18 +15063,19 @@ do
15245 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
15246 eval $as_var=C; export $as_var
15247 else
15248 - $as_unset $as_var
15249 + ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
15250 fi
15251 done
15252
15253 # Required to use basename.
15254 -if expr a : '\(a\)' >/dev/null 2>&1; then
15255 +if expr a : '\(a\)' >/dev/null 2>&1 &&
15256 + test "X`expr 00001 : '.*\(...\)'`" = X001; then
15257 as_expr=expr
15258 else
15259 as_expr=false
15260 fi
15261
15262 -if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
15263 +if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15264 as_basename=basename
15265 else
15266 as_basename=false
15267 @@ -14728,159 +15083,120 @@ fi
15268
15269
15270 # Name of the executable.
15271 -as_me=`$as_basename "$0" ||
15272 +as_me=`$as_basename -- "$0" ||
15273 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15274 X"$0" : 'X\(//\)$' \| \
15275 - X"$0" : 'X\(/\)$' \| \
15276 - . : '\(.\)' 2>/dev/null ||
15277 + X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15278 echo X/"$0" |
15279 - sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
15280 - /^X\/\(\/\/\)$/{ s//\1/; q; }
15281 - /^X\/\(\/\).*/{ s//\1/; q; }
15282 - s/.*/./; q'`
15283 + sed '/^.*\/\([^/][^/]*\)\/*$/{
15284 + s//\1/
15285 + q
15286 + }
15287 + /^X\/\(\/\/\)$/{
15288 + s//\1/
15289 + q
15290 + }
15291 + /^X\/\(\/\).*/{
15292 + s//\1/
15293 + q
15294 + }
15295 + s/.*/./; q'`
15296
15297 -
15298 -# PATH needs CR, and LINENO needs CR and PATH.
15299 -# Avoid depending upon Character Ranges.
15300 -as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15301 -as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15302 -as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15303 -as_cr_digits='0123456789'
15304 -as_cr_alnum=$as_cr_Letters$as_cr_digits
15305 -
15306 -# The user is always right.
15307 -if test "${PATH_SEPARATOR+set}" != set; then
15308 - echo "#! /bin/sh" >conf$$.sh
15309 - echo "exit 0" >>conf$$.sh
15310 - chmod +x conf$$.sh
15311 - if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15312 - PATH_SEPARATOR=';'
15313 - else
15314 - PATH_SEPARATOR=:
15315 - fi
15316 - rm -f conf$$.sh
15317 -fi
15318 +# CDPATH.
15319 +$as_unset CDPATH
15320
15321
15322 - as_lineno_1=$LINENO
15323 - as_lineno_2=$LINENO
15324 - as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
15325 - test "x$as_lineno_1" != "x$as_lineno_2" &&
15326 - test "x$as_lineno_3" = "x$as_lineno_2" || {
15327 - # Find who we are. Look in the path if we contain no path at all
15328 - # relative or not.
15329 - case $0 in
15330 - *[\\/]* ) as_myself=$0 ;;
15331 - *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15332 -for as_dir in $PATH
15333 -do
15334 - IFS=$as_save_IFS
15335 - test -z "$as_dir" && as_dir=.
15336 - test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15337 -done
15338
15339 - ;;
15340 - esac
15341 - # We did not find ourselves, most probably we were run as `sh COMMAND'
15342 - # in which case we are not to be found in the path.
15343 - if test "x$as_myself" = x; then
15344 - as_myself=$0
15345 - fi
15346 - if test ! -f "$as_myself"; then
15347 - { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
15348 -echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
15349 - { (exit 1); exit 1; }; }
15350 - fi
15351 - case $CONFIG_SHELL in
15352 - '')
15353 - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15354 -for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
15355 -do
15356 - IFS=$as_save_IFS
15357 - test -z "$as_dir" && as_dir=.
15358 - for as_base in sh bash ksh sh5; do
15359 - case $as_dir in
15360 - /*)
15361 - if ("$as_dir/$as_base" -c '
15362 as_lineno_1=$LINENO
15363 as_lineno_2=$LINENO
15364 - as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
15365 test "x$as_lineno_1" != "x$as_lineno_2" &&
15366 - test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
15367 - $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
15368 - $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
15369 - CONFIG_SHELL=$as_dir/$as_base
15370 - export CONFIG_SHELL
15371 - exec "$CONFIG_SHELL" "$0" ${1+"$@"}
15372 - fi;;
15373 - esac
15374 - done
15375 -done
15376 -;;
15377 - esac
15378 + test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
15379
15380 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
15381 # uniformly replaced by the line number. The first 'sed' inserts a
15382 - # line-number line before each line; the second 'sed' does the real
15383 - # work. The second script uses 'N' to pair each line-number line
15384 - # with the numbered line, and appends trailing '-' during
15385 - # substitution so that $LINENO is not a special case at line end.
15386 + # line-number line after each line using $LINENO; the second 'sed'
15387 + # does the real work. The second script uses 'N' to pair each
15388 + # line-number line with the line containing $LINENO, and appends
15389 + # trailing '-' during substitution so that $LINENO is not a special
15390 + # case at line end.
15391 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
15392 - # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
15393 - sed '=' <$as_myself |
15394 + # scripts with optimization help from Paolo Bonzini. Blame Lee
15395 + # E. McMahon (1931-1989) for sed's syntax. :-)
15396 + sed -n '
15397 + p
15398 + /[$]LINENO/=
15399 + ' <$as_myself |
15400 sed '
15401 + s/[$]LINENO.*/&-/
15402 + t lineno
15403 + b
15404 + :lineno
15405 N
15406 - s,$,-,
15407 - : loop
15408 - s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
15409 + :loop
15410 + s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
15411 t loop
15412 - s,-$,,
15413 - s,^['$as_cr_digits']*\n,,
15414 + s/-\n.*//
15415 ' >$as_me.lineno &&
15416 - chmod +x $as_me.lineno ||
15417 - { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
15418 -echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
15419 + chmod +x "$as_me.lineno" ||
15420 + { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
15421 { (exit 1); exit 1; }; }
15422
15423 # Don't try to exec as it changes $[0], causing all sort of problems
15424 # (the dirname of $[0] is not the place where we might find the
15425 - # original and so on. Autoconf is especially sensible to this).
15426 - . ./$as_me.lineno
15427 + # original and so on. Autoconf is especially sensitive to this).
15428 + . "./$as_me.lineno"
15429 # Exit status is that of the last command.
15430 exit
15431 }
15432
15433
15434 -case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
15435 - *c*,-n*) ECHO_N= ECHO_C='
15436 -' ECHO_T=' ' ;;
15437 - *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
15438 - *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
15439 +if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15440 + as_dirname=dirname
15441 +else
15442 + as_dirname=false
15443 +fi
15444 +
15445 +ECHO_C= ECHO_N= ECHO_T=
15446 +case `echo -n x` in
15447 +-n*)
15448 + case `echo 'x\c'` in
15449 + *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15450 + *) ECHO_C='\c';;
15451 + esac;;
15452 +*)
15453 + ECHO_N='-n';;
15454 esac
15455
15456 -if expr a : '\(a\)' >/dev/null 2>&1; then
15457 +if expr a : '\(a\)' >/dev/null 2>&1 &&
15458 + test "X`expr 00001 : '.*\(...\)'`" = X001; then
15459 as_expr=expr
15460 else
15461 as_expr=false
15462 fi
15463
15464 rm -f conf$$ conf$$.exe conf$$.file
15465 +if test -d conf$$.dir; then
15466 + rm -f conf$$.dir/conf$$.file
15467 +else
15468 + rm -f conf$$.dir
15469 + mkdir conf$$.dir
15470 +fi
15471 echo >conf$$.file
15472 if ln -s conf$$.file conf$$ 2>/dev/null; then
15473 - # We could just check for DJGPP; but this test a) works b) is more generic
15474 - # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
15475 - if test -f conf$$.exe; then
15476 - # Don't use ln at all; we don't have any links
15477 + as_ln_s='ln -s'
15478 + # ... but there are two gotchas:
15479 + # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15480 + # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15481 + # In both cases, we have to default to `cp -p'.
15482 + ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15483 as_ln_s='cp -p'
15484 - else
15485 - as_ln_s='ln -s'
15486 - fi
15487 elif ln conf$$.file conf$$ 2>/dev/null; then
15488 as_ln_s=ln
15489 else
15490 as_ln_s='cp -p'
15491 fi
15492 -rm -f conf$$ conf$$.exe conf$$.file
15493 +rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15494 +rmdir conf$$.dir 2>/dev/null
15495
15496 if mkdir -p . 2>/dev/null; then
15497 as_mkdir_p=:
15498 @@ -14889,7 +15205,28 @@ else
15499 as_mkdir_p=false
15500 fi
15501
15502 -as_executable_p="test -f"
15503 +if test -x / >/dev/null 2>&1; then
15504 + as_test_x='test -x'
15505 +else
15506 + if ls -dL / >/dev/null 2>&1; then
15507 + as_ls_L_option=L
15508 + else
15509 + as_ls_L_option=
15510 + fi
15511 + as_test_x='
15512 + eval sh -c '\''
15513 + if test -d "$1"; then
15514 + test -d "$1/.";
15515 + else
15516 + case $1 in
15517 + -*)set "./$1";;
15518 + esac;
15519 + case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
15520 + ???[sx]*):;;*)false;;esac;fi
15521 + '\'' sh
15522 + '
15523 +fi
15524 +as_executable_p=$as_test_x
15525
15526 # Sed expression to map a string onto a valid CPP name.
15527 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15528 @@ -14898,31 +15235,14 @@ as_tr_cpp="eval sed 'y%*$as_cr_letters%P
15529 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15530
15531
15532 -# IFS
15533 -# We need space, tab and new line, in precisely that order.
15534 -as_nl='
15535 -'
15536 -IFS=" $as_nl"
15537 -
15538 -# CDPATH.
15539 -$as_unset CDPATH
15540 -
15541 exec 6>&1
15542
15543 -# Open the log real soon, to keep \$[0] and so on meaningful, and to
15544 +# Save the log message, to keep $[0] and so on meaningful, and to
15545 # report actual input values of CONFIG_FILES etc. instead of their
15546 -# values after options handling. Logging --version etc. is OK.
15547 -exec 5>>config.log
15548 -{
15549 - echo
15550 - sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15551 -## Running $as_me. ##
15552 -_ASBOX
15553 -} >&5
15554 -cat >&5 <<_CSEOF
15555 -
15556 +# values after options handling.
15557 +ac_log="
15558 This file was extended by $as_me, which was
15559 -generated by GNU Autoconf 2.59. Invocation command line was
15560 +generated by GNU Autoconf 2.61. Invocation command line was
15561
15562 CONFIG_FILES = $CONFIG_FILES
15563 CONFIG_HEADERS = $CONFIG_HEADERS
15564 @@ -14930,30 +15250,20 @@ generated by GNU Autoconf 2.59. Invocat
15565 CONFIG_COMMANDS = $CONFIG_COMMANDS
15566 $ $0 $@
15567
15568 -_CSEOF
15569 -echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
15570 -echo >&5
15571 +on `(hostname || uname -n) 2>/dev/null | sed 1q`
15572 +"
15573 +
15574 _ACEOF
15575
15576 +cat >>$CONFIG_STATUS <<_ACEOF
15577 # Files that config.status was made for.
15578 -if test -n "$ac_config_files"; then
15579 - echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
15580 -fi
15581 +config_files="$ac_config_files"
15582 +config_headers="$ac_config_headers"
15583 +config_commands="$ac_config_commands"
15584
15585 -if test -n "$ac_config_headers"; then
15586 - echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
15587 -fi
15588 -
15589 -if test -n "$ac_config_links"; then
15590 - echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
15591 -fi
15592 -
15593 -if test -n "$ac_config_commands"; then
15594 - echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
15595 -fi
15596 +_ACEOF
15597
15598 cat >>$CONFIG_STATUS <<\_ACEOF
15599 -
15600 ac_cs_usage="\
15601 \`$as_me' instantiates files from templates according to the
15602 current configuration.
15603 @@ -14961,7 +15271,7 @@ current configuration.
15604 Usage: $0 [OPTIONS] [FILE]...
15605
15606 -h, --help print this help, then exit
15607 - -V, --version print version number, then exit
15608 + -V, --version print version number and configuration settings, then exit
15609 -q, --quiet do not print progress messages
15610 -d, --debug don't remove temporary files
15611 --recheck update $as_me by reconfiguring in the same conditions
15612 @@ -14980,19 +15290,21 @@ Configuration commands:
15613 $config_commands
15614
15615 Report bugs to <bug-autoconf@gnu.org>."
15616 -_ACEOF
15617
15618 +_ACEOF
15619 cat >>$CONFIG_STATUS <<_ACEOF
15620 ac_cs_version="\\
15621 config.status
15622 -configured by $0, generated by GNU Autoconf 2.59,
15623 - with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
15624 +configured by $0, generated by GNU Autoconf 2.61,
15625 + with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
15626
15627 -Copyright (C) 2003 Free Software Foundation, Inc.
15628 +Copyright (C) 2006 Free Software Foundation, Inc.
15629 This config.status script is free software; the Free Software Foundation
15630 gives unlimited permission to copy, distribute and modify it."
15631 -srcdir=$srcdir
15632 -INSTALL="$INSTALL"
15633 +
15634 +ac_pwd='$ac_pwd'
15635 +srcdir='$srcdir'
15636 +INSTALL='$INSTALL'
15637 _ACEOF
15638
15639 cat >>$CONFIG_STATUS <<\_ACEOF
15640 @@ -15003,39 +15315,24 @@ while test $# != 0
15641 do
15642 case $1 in
15643 --*=*)
15644 - ac_option=`expr "x$1" : 'x\([^=]*\)='`
15645 - ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
15646 + ac_option=`expr "X$1" : 'X\([^=]*\)='`
15647 + ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15648 ac_shift=:
15649 ;;
15650 - -*)
15651 + *)
15652 ac_option=$1
15653 ac_optarg=$2
15654 ac_shift=shift
15655 ;;
15656 - *) # This is not an option, so the user has probably given explicit
15657 - # arguments.
15658 - ac_option=$1
15659 - ac_need_defaults=false;;
15660 esac
15661
15662 case $ac_option in
15663 # Handling of the options.
15664 -_ACEOF
15665 -cat >>$CONFIG_STATUS <<\_ACEOF
15666 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15667 ac_cs_recheck=: ;;
15668 - --version | --vers* | -V )
15669 - echo "$ac_cs_version"; exit 0 ;;
15670 - --he | --h)
15671 - # Conflict between --help and --header
15672 - { { echo "$as_me:$LINENO: error: ambiguous option: $1
15673 -Try \`$0 --help' for more information." >&5
15674 -echo "$as_me: error: ambiguous option: $1
15675 -Try \`$0 --help' for more information." >&2;}
15676 - { (exit 1); exit 1; }; };;
15677 - --help | --hel | -h )
15678 - echo "$ac_cs_usage"; exit 0 ;;
15679 - --debug | --d* | -d )
15680 + --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15681 + echo "$ac_cs_version"; exit ;;
15682 + --debug | --debu | --deb | --de | --d | -d )
15683 debug=: ;;
15684 --file | --fil | --fi | --f )
15685 $ac_shift
15686 @@ -15045,18 +15342,24 @@ Try \`$0 --help' for more information."
15687 $ac_shift
15688 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
15689 ac_need_defaults=false;;
15690 + --he | --h)
15691 + # Conflict between --help and --header
15692 + { echo "$as_me: error: ambiguous option: $1
15693 +Try \`$0 --help' for more information." >&2
15694 + { (exit 1); exit 1; }; };;
15695 + --help | --hel | -h )
15696 + echo "$ac_cs_usage"; exit ;;
15697 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15698 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15699 ac_cs_silent=: ;;
15700
15701 # This is an error.
15702 - -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
15703 -Try \`$0 --help' for more information." >&5
15704 -echo "$as_me: error: unrecognized option: $1
15705 -Try \`$0 --help' for more information." >&2;}
15706 + -*) { echo "$as_me: error: unrecognized option: $1
15707 +Try \`$0 --help' for more information." >&2
15708 { (exit 1); exit 1; }; } ;;
15709
15710 - *) ac_config_targets="$ac_config_targets $1" ;;
15711 + *) ac_config_targets="$ac_config_targets $1"
15712 + ac_need_defaults=false ;;
15713
15714 esac
15715 shift
15716 @@ -15072,42 +15375,54 @@ fi
15717 _ACEOF
15718 cat >>$CONFIG_STATUS <<_ACEOF
15719 if \$ac_cs_recheck; then
15720 - echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
15721 - exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15722 + echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
15723 + CONFIG_SHELL=$SHELL
15724 + export CONFIG_SHELL
15725 + exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15726 fi
15727
15728 _ACEOF
15729 +cat >>$CONFIG_STATUS <<\_ACEOF
15730 +exec 5>>config.log
15731 +{
15732 + echo
15733 + sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15734 +## Running $as_me. ##
15735 +_ASBOX
15736 + echo "$ac_log"
15737 +} >&5
15738
15739 +_ACEOF
15740 cat >>$CONFIG_STATUS <<_ACEOF
15741 #
15742 -# INIT-COMMANDS section.
15743 +# INIT-COMMANDS
15744 #
15745 -
15746 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15747
15748
15749 _ACEOF
15750
15751 -
15752 -
15753 cat >>$CONFIG_STATUS <<\_ACEOF
15754 +
15755 +# Handling of arguments.
15756 for ac_config_target in $ac_config_targets
15757 do
15758 - case "$ac_config_target" in
15759 - # Handling of arguments.
15760 - "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15761 - "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
15762 - "bfd-in3.h" ) CONFIG_FILES="$CONFIG_FILES bfd-in3.h:bfd-in2.h" ;;
15763 - "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
15764 - "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15765 - "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
15766 - "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
15767 + case $ac_config_target in
15768 + "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15769 + "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
15770 + "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15771 + "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
15772 + "bfd-in3.h") CONFIG_FILES="$CONFIG_FILES bfd-in3.h:bfd-in2.h" ;;
15773 + "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
15774 + "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
15775 +
15776 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
15777 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
15778 { (exit 1); exit 1; }; };;
15779 esac
15780 done
15781
15782 +
15783 # If the user did not use the arguments to specify the items to instantiate,
15784 # then the envvar interface is used. Set only those that are not.
15785 # We use the long form for the default assignment because of an extremely
15786 @@ -15119,401 +15434,504 @@ if $ac_need_defaults; then
15787 fi
15788
15789 # Have a temporary directory for convenience. Make it in the build tree
15790 -# simply because there is no reason to put it here, and in addition,
15791 +# simply because there is no reason against having it here, and in addition,
15792 # creating and moving files from /tmp can sometimes cause problems.
15793 -# Create a temporary directory, and hook for its removal unless debugging.
15794 +# Hook for its removal unless debugging.
15795 +# Note that there is a small window in which the directory will not be cleaned:
15796 +# after its creation but before its name has been assigned to `$tmp'.
15797 $debug ||
15798 {
15799 - trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
15800 + tmp=
15801 + trap 'exit_status=$?
15802 + { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15803 +' 0
15804 trap '{ (exit 1); exit 1; }' 1 2 13 15
15805 }
15806 -
15807 # Create a (secure) tmp directory for tmp files.
15808
15809 {
15810 - tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
15811 + tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15812 test -n "$tmp" && test -d "$tmp"
15813 } ||
15814 {
15815 - tmp=./confstat$$-$RANDOM
15816 - (umask 077 && mkdir $tmp)
15817 + tmp=./conf$$-$RANDOM
15818 + (umask 077 && mkdir "$tmp")
15819 } ||
15820 {
15821 echo "$me: cannot create a temporary directory in ." >&2
15822 { (exit 1); exit 1; }
15823 }
15824
15825 -_ACEOF
15826 -
15827 -cat >>$CONFIG_STATUS <<_ACEOF
15828 -
15829 #
15830 -# CONFIG_FILES section.
15831 +# Set up the sed scripts for CONFIG_FILES section.
15832 #
15833
15834 # No need to generate the scripts if there are no CONFIG_FILES.
15835 # This happens for instance when ./config.status config.h
15836 -if test -n "\$CONFIG_FILES"; then
15837 - # Protect against being on the right side of a sed subst in config.status.
15838 - sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
15839 - s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
15840 -s,@SHELL@,$SHELL,;t t
15841 -s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
15842 -s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
15843 -s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
15844 -s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
15845 -s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
15846 -s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
15847 -s,@exec_prefix@,$exec_prefix,;t t
15848 -s,@prefix@,$prefix,;t t
15849 -s,@program_transform_name@,$program_transform_name,;t t
15850 -s,@bindir@,$bindir,;t t
15851 -s,@sbindir@,$sbindir,;t t
15852 -s,@libexecdir@,$libexecdir,;t t
15853 -s,@datadir@,$datadir,;t t
15854 -s,@sysconfdir@,$sysconfdir,;t t
15855 -s,@sharedstatedir@,$sharedstatedir,;t t
15856 -s,@localstatedir@,$localstatedir,;t t
15857 -s,@libdir@,$libdir,;t t
15858 -s,@includedir@,$includedir,;t t
15859 -s,@oldincludedir@,$oldincludedir,;t t
15860 -s,@infodir@,$infodir,;t t
15861 -s,@mandir@,$mandir,;t t
15862 -s,@build_alias@,$build_alias,;t t
15863 -s,@host_alias@,$host_alias,;t t
15864 -s,@target_alias@,$target_alias,;t t
15865 -s,@DEFS@,$DEFS,;t t
15866 -s,@ECHO_C@,$ECHO_C,;t t
15867 -s,@ECHO_N@,$ECHO_N,;t t
15868 -s,@ECHO_T@,$ECHO_T,;t t
15869 -s,@LIBS@,$LIBS,;t t
15870 -s,@build@,$build,;t t
15871 -s,@build_cpu@,$build_cpu,;t t
15872 -s,@build_vendor@,$build_vendor,;t t
15873 -s,@build_os@,$build_os,;t t
15874 -s,@host@,$host,;t t
15875 -s,@host_cpu@,$host_cpu,;t t
15876 -s,@host_vendor@,$host_vendor,;t t
15877 -s,@host_os@,$host_os,;t t
15878 -s,@target@,$target,;t t
15879 -s,@target_cpu@,$target_cpu,;t t
15880 -s,@target_vendor@,$target_vendor,;t t
15881 -s,@target_os@,$target_os,;t t
15882 -s,@CC@,$CC,;t t
15883 -s,@CFLAGS@,$CFLAGS,;t t
15884 -s,@LDFLAGS@,$LDFLAGS,;t t
15885 -s,@CPPFLAGS@,$CPPFLAGS,;t t
15886 -s,@ac_ct_CC@,$ac_ct_CC,;t t
15887 -s,@EXEEXT@,$EXEEXT,;t t
15888 -s,@OBJEXT@,$OBJEXT,;t t
15889 -s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
15890 -s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
15891 -s,@INSTALL_DATA@,$INSTALL_DATA,;t t
15892 -s,@CYGPATH_W@,$CYGPATH_W,;t t
15893 -s,@PACKAGE@,$PACKAGE,;t t
15894 -s,@VERSION@,$VERSION,;t t
15895 -s,@ACLOCAL@,$ACLOCAL,;t t
15896 -s,@AUTOCONF@,$AUTOCONF,;t t
15897 -s,@AUTOMAKE@,$AUTOMAKE,;t t
15898 -s,@AUTOHEADER@,$AUTOHEADER,;t t
15899 -s,@MAKEINFO@,$MAKEINFO,;t t
15900 -s,@install_sh@,$install_sh,;t t
15901 -s,@STRIP@,$STRIP,;t t
15902 -s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
15903 -s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
15904 -s,@mkdir_p@,$mkdir_p,;t t
15905 -s,@AWK@,$AWK,;t t
15906 -s,@SET_MAKE@,$SET_MAKE,;t t
15907 -s,@am__leading_dot@,$am__leading_dot,;t t
15908 -s,@AMTAR@,$AMTAR,;t t
15909 -s,@am__tar@,$am__tar,;t t
15910 -s,@am__untar@,$am__untar,;t t
15911 -s,@DEPDIR@,$DEPDIR,;t t
15912 -s,@am__include@,$am__include,;t t
15913 -s,@am__quote@,$am__quote,;t t
15914 -s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
15915 -s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
15916 -s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
15917 -s,@CCDEPMODE@,$CCDEPMODE,;t t
15918 -s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
15919 -s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
15920 -s,@AR@,$AR,;t t
15921 -s,@ac_ct_AR@,$ac_ct_AR,;t t
15922 -s,@RANLIB@,$RANLIB,;t t
15923 -s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
15924 -s,@LN_S@,$LN_S,;t t
15925 -s,@LIBTOOL@,$LIBTOOL,;t t
15926 -s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
15927 -s,@NO_WERROR@,$NO_WERROR,;t t
15928 -s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
15929 -s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
15930 -s,@MAINT@,$MAINT,;t t
15931 -s,@INSTALL_LIBBFD_TRUE@,$INSTALL_LIBBFD_TRUE,;t t
15932 -s,@INSTALL_LIBBFD_FALSE@,$INSTALL_LIBBFD_FALSE,;t t
15933 -s,@host_noncanonical@,$host_noncanonical,;t t
15934 -s,@target_noncanonical@,$target_noncanonical,;t t
15935 -s,@bfdlibdir@,$bfdlibdir,;t t
15936 -s,@bfdincludedir@,$bfdincludedir,;t t
15937 -s,@CPP@,$CPP,;t t
15938 -s,@EGREP@,$EGREP,;t t
15939 -s,@ALLOCA@,$ALLOCA,;t t
15940 -s,@USE_NLS@,$USE_NLS,;t t
15941 -s,@MSGFMT@,$MSGFMT,;t t
15942 -s,@GMSGFMT@,$GMSGFMT,;t t
15943 -s,@XGETTEXT@,$XGETTEXT,;t t
15944 -s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
15945 -s,@CATALOGS@,$CATALOGS,;t t
15946 -s,@CATOBJEXT@,$CATOBJEXT,;t t
15947 -s,@DATADIRNAME@,$DATADIRNAME,;t t
15948 -s,@GMOFILES@,$GMOFILES,;t t
15949 -s,@INSTOBJEXT@,$INSTOBJEXT,;t t
15950 -s,@INTLDEPS@,$INTLDEPS,;t t
15951 -s,@INTLLIBS@,$INTLLIBS,;t t
15952 -s,@INTLOBJS@,$INTLOBJS,;t t
15953 -s,@POFILES@,$POFILES,;t t
15954 -s,@POSUB@,$POSUB,;t t
15955 -s,@INCLUDE_LOCALE_H@,$INCLUDE_LOCALE_H,;t t
15956 -s,@GT_NO@,$GT_NO,;t t
15957 -s,@GT_YES@,$GT_YES,;t t
15958 -s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
15959 -s,@l@,$l,;t t
15960 -s,@HDEFINES@,$HDEFINES,;t t
15961 -s,@BFD_HOST_64BIT_LONG@,$BFD_HOST_64BIT_LONG,;t t
15962 -s,@BFD_HOST_LONG_LONG@,$BFD_HOST_LONG_LONG,;t t
15963 -s,@BFD_HOST_64_BIT_DEFINED@,$BFD_HOST_64_BIT_DEFINED,;t t
15964 -s,@BFD_HOST_64_BIT@,$BFD_HOST_64_BIT,;t t
15965 -s,@BFD_HOST_U_64_BIT@,$BFD_HOST_U_64_BIT,;t t
15966 -s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
15967 -s,@EXEEXT_FOR_BUILD@,$EXEEXT_FOR_BUILD,;t t
15968 -s,@COREFILE@,$COREFILE,;t t
15969 -s,@COREFLAG@,$COREFLAG,;t t
15970 -s,@WIN32LDFLAGS@,$WIN32LDFLAGS,;t t
15971 -s,@WIN32LIBADD@,$WIN32LIBADD,;t t
15972 -s,@TDEFINES@,$TDEFINES,;t t
15973 -s,@wordsize@,$wordsize,;t t
15974 -s,@bfd_libs@,$bfd_libs,;t t
15975 -s,@all_backends@,$all_backends,;t t
15976 -s,@bfd_backends@,$bfd_backends,;t t
15977 -s,@bfd_machines@,$bfd_machines,;t t
15978 -s,@bfd_default_target_size@,$bfd_default_target_size,;t t
15979 -s,@bfd_file_ptr@,$bfd_file_ptr,;t t
15980 -s,@bfd_ufile_ptr@,$bfd_ufile_ptr,;t t
15981 -s,@tdefaults@,$tdefaults,;t t
15982 -s,@datarootdir@,$datarootdir,;t t
15983 -s,@docdir@,$docdir,;t t
15984 -s,@htmldir@,$htmldir,;t t
15985 -s,@LIBOBJS@,$LIBOBJS,;t t
15986 -s,@LTLIBOBJS@,$LTLIBOBJS,;t t
15987 -CEOF
15988 -
15989 -_ACEOF
15990 -
15991 - cat >>$CONFIG_STATUS <<\_ACEOF
15992 - # Split the substitutions into bite-sized pieces for seds with
15993 - # small command number limits, like on Digital OSF/1 and HP-UX.
15994 - ac_max_sed_lines=48
15995 - ac_sed_frag=1 # Number of current file.
15996 - ac_beg=1 # First line for current file.
15997 - ac_end=$ac_max_sed_lines # Line after last line for current file.
15998 - ac_more_lines=:
15999 - ac_sed_cmds=
16000 - while $ac_more_lines; do
16001 - if test $ac_beg -gt 1; then
16002 - sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
16003 - else
16004 - sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
16005 - fi
16006 - if test ! -s $tmp/subs.frag; then
16007 - ac_more_lines=false
16008 - else
16009 - # The purpose of the label and of the branching condition is to
16010 - # speed up the sed processing (if there are no `@' at all, there
16011 - # is no need to browse any of the substitutions).
16012 - # These are the two extra sed commands mentioned above.
16013 - (echo ':t
16014 - /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
16015 - if test -z "$ac_sed_cmds"; then
16016 - ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
16017 - else
16018 - ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
16019 - fi
16020 - ac_sed_frag=`expr $ac_sed_frag + 1`
16021 - ac_beg=$ac_end
16022 - ac_end=`expr $ac_end + $ac_max_sed_lines`
16023 - fi
16024 - done
16025 - if test -z "$ac_sed_cmds"; then
16026 - ac_sed_cmds=cat
16027 +if test -n "$CONFIG_FILES"; then
16028 +
16029 +_ACEOF
16030 +
16031 +
16032 +
16033 +ac_delim='%!_!# '
16034 +for ac_last_try in false false false false false :; do
16035 + cat >conf$$subs.sed <<_ACEOF
16036 +SHELL!$SHELL$ac_delim
16037 +PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
16038 +PACKAGE_NAME!$PACKAGE_NAME$ac_delim
16039 +PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
16040 +PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
16041 +PACKAGE_STRING!$PACKAGE_STRING$ac_delim
16042 +PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
16043 +exec_prefix!$exec_prefix$ac_delim
16044 +prefix!$prefix$ac_delim
16045 +program_transform_name!$program_transform_name$ac_delim
16046 +bindir!$bindir$ac_delim
16047 +sbindir!$sbindir$ac_delim
16048 +libexecdir!$libexecdir$ac_delim
16049 +datarootdir!$datarootdir$ac_delim
16050 +datadir!$datadir$ac_delim
16051 +sysconfdir!$sysconfdir$ac_delim
16052 +sharedstatedir!$sharedstatedir$ac_delim
16053 +localstatedir!$localstatedir$ac_delim
16054 +includedir!$includedir$ac_delim
16055 +oldincludedir!$oldincludedir$ac_delim
16056 +docdir!$docdir$ac_delim
16057 +infodir!$infodir$ac_delim
16058 +htmldir!$htmldir$ac_delim
16059 +dvidir!$dvidir$ac_delim
16060 +pdfdir!$pdfdir$ac_delim
16061 +psdir!$psdir$ac_delim
16062 +libdir!$libdir$ac_delim
16063 +localedir!$localedir$ac_delim
16064 +mandir!$mandir$ac_delim
16065 +DEFS!$DEFS$ac_delim
16066 +ECHO_C!$ECHO_C$ac_delim
16067 +ECHO_N!$ECHO_N$ac_delim
16068 +ECHO_T!$ECHO_T$ac_delim
16069 +LIBS!$LIBS$ac_delim
16070 +build_alias!$build_alias$ac_delim
16071 +host_alias!$host_alias$ac_delim
16072 +target_alias!$target_alias$ac_delim
16073 +build!$build$ac_delim
16074 +build_cpu!$build_cpu$ac_delim
16075 +build_vendor!$build_vendor$ac_delim
16076 +build_os!$build_os$ac_delim
16077 +host!$host$ac_delim
16078 +host_cpu!$host_cpu$ac_delim
16079 +host_vendor!$host_vendor$ac_delim
16080 +host_os!$host_os$ac_delim
16081 +target!$target$ac_delim
16082 +target_cpu!$target_cpu$ac_delim
16083 +target_vendor!$target_vendor$ac_delim
16084 +target_os!$target_os$ac_delim
16085 +CC!$CC$ac_delim
16086 +CFLAGS!$CFLAGS$ac_delim
16087 +LDFLAGS!$LDFLAGS$ac_delim
16088 +CPPFLAGS!$CPPFLAGS$ac_delim
16089 +ac_ct_CC!$ac_ct_CC$ac_delim
16090 +EXEEXT!$EXEEXT$ac_delim
16091 +OBJEXT!$OBJEXT$ac_delim
16092 +INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
16093 +INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
16094 +INSTALL_DATA!$INSTALL_DATA$ac_delim
16095 +CYGPATH_W!$CYGPATH_W$ac_delim
16096 +PACKAGE!$PACKAGE$ac_delim
16097 +VERSION!$VERSION$ac_delim
16098 +ACLOCAL!$ACLOCAL$ac_delim
16099 +AUTOCONF!$AUTOCONF$ac_delim
16100 +AUTOMAKE!$AUTOMAKE$ac_delim
16101 +AUTOHEADER!$AUTOHEADER$ac_delim
16102 +MAKEINFO!$MAKEINFO$ac_delim
16103 +install_sh!$install_sh$ac_delim
16104 +STRIP!$STRIP$ac_delim
16105 +INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
16106 +mkdir_p!$mkdir_p$ac_delim
16107 +AWK!$AWK$ac_delim
16108 +SET_MAKE!$SET_MAKE$ac_delim
16109 +am__leading_dot!$am__leading_dot$ac_delim
16110 +AMTAR!$AMTAR$ac_delim
16111 +am__tar!$am__tar$ac_delim
16112 +am__untar!$am__untar$ac_delim
16113 +DEPDIR!$DEPDIR$ac_delim
16114 +am__include!$am__include$ac_delim
16115 +am__quote!$am__quote$ac_delim
16116 +AMDEP_TRUE!$AMDEP_TRUE$ac_delim
16117 +AMDEP_FALSE!$AMDEP_FALSE$ac_delim
16118 +AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
16119 +CCDEPMODE!$CCDEPMODE$ac_delim
16120 +am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
16121 +am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
16122 +AR!$AR$ac_delim
16123 +RANLIB!$RANLIB$ac_delim
16124 +LN_S!$LN_S$ac_delim
16125 +LIBTOOL!$LIBTOOL$ac_delim
16126 +WARN_CFLAGS!$WARN_CFLAGS$ac_delim
16127 +NO_WERROR!$NO_WERROR$ac_delim
16128 +MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
16129 +MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
16130 +MAINT!$MAINT$ac_delim
16131 +INSTALL_LIBBFD_TRUE!$INSTALL_LIBBFD_TRUE$ac_delim
16132 +INSTALL_LIBBFD_FALSE!$INSTALL_LIBBFD_FALSE$ac_delim
16133 +_ACEOF
16134 +
16135 + if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
16136 + break
16137 + elif $ac_last_try; then
16138 + { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
16139 +echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
16140 + { (exit 1); exit 1; }; }
16141 + else
16142 + ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16143 fi
16144 -fi # test -n "$CONFIG_FILES"
16145 +done
16146 +
16147 +ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
16148 +if test -n "$ac_eof"; then
16149 + ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
16150 + ac_eof=`expr $ac_eof + 1`
16151 +fi
16152
16153 +cat >>$CONFIG_STATUS <<_ACEOF
16154 +cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
16155 +/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16156 +_ACEOF
16157 +sed '
16158 +s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
16159 +s/^/s,@/; s/!/@,|#_!!_#|/
16160 +:n
16161 +t n
16162 +s/'"$ac_delim"'$/,g/; t
16163 +s/$/\\/; p
16164 +N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
16165 +' >>$CONFIG_STATUS <conf$$subs.sed
16166 +rm -f conf$$subs.sed
16167 +cat >>$CONFIG_STATUS <<_ACEOF
16168 +CEOF$ac_eof
16169 +_ACEOF
16170 +
16171 +
16172 +ac_delim='%!_!# '
16173 +for ac_last_try in false false false false false :; do
16174 + cat >conf$$subs.sed <<_ACEOF
16175 +host_noncanonical!$host_noncanonical$ac_delim
16176 +target_noncanonical!$target_noncanonical$ac_delim
16177 +bfdlibdir!$bfdlibdir$ac_delim
16178 +bfdincludedir!$bfdincludedir$ac_delim
16179 +CPP!$CPP$ac_delim
16180 +GREP!$GREP$ac_delim
16181 +EGREP!$EGREP$ac_delim
16182 +ALLOCA!$ALLOCA$ac_delim
16183 +USE_NLS!$USE_NLS$ac_delim
16184 +MSGFMT!$MSGFMT$ac_delim
16185 +GMSGFMT!$GMSGFMT$ac_delim
16186 +XGETTEXT!$XGETTEXT$ac_delim
16187 +USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim
16188 +CATALOGS!$CATALOGS$ac_delim
16189 +CATOBJEXT!$CATOBJEXT$ac_delim
16190 +DATADIRNAME!$DATADIRNAME$ac_delim
16191 +GMOFILES!$GMOFILES$ac_delim
16192 +INSTOBJEXT!$INSTOBJEXT$ac_delim
16193 +INTLDEPS!$INTLDEPS$ac_delim
16194 +INTLLIBS!$INTLLIBS$ac_delim
16195 +INTLOBJS!$INTLOBJS$ac_delim
16196 +POFILES!$POFILES$ac_delim
16197 +POSUB!$POSUB$ac_delim
16198 +INCLUDE_LOCALE_H!$INCLUDE_LOCALE_H$ac_delim
16199 +GT_NO!$GT_NO$ac_delim
16200 +GT_YES!$GT_YES$ac_delim
16201 +MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
16202 +l!$l$ac_delim
16203 +HDEFINES!$HDEFINES$ac_delim
16204 +BFD_HOST_64BIT_LONG!$BFD_HOST_64BIT_LONG$ac_delim
16205 +BFD_HOST_LONG_LONG!$BFD_HOST_LONG_LONG$ac_delim
16206 +BFD_HOST_64_BIT_DEFINED!$BFD_HOST_64_BIT_DEFINED$ac_delim
16207 +BFD_HOST_64_BIT!$BFD_HOST_64_BIT$ac_delim
16208 +BFD_HOST_U_64_BIT!$BFD_HOST_U_64_BIT$ac_delim
16209 +CC_FOR_BUILD!$CC_FOR_BUILD$ac_delim
16210 +EXEEXT_FOR_BUILD!$EXEEXT_FOR_BUILD$ac_delim
16211 +COREFILE!$COREFILE$ac_delim
16212 +COREFLAG!$COREFLAG$ac_delim
16213 +WIN32LDFLAGS!$WIN32LDFLAGS$ac_delim
16214 +WIN32LIBADD!$WIN32LIBADD$ac_delim
16215 +TDEFINES!$TDEFINES$ac_delim
16216 +wordsize!$wordsize$ac_delim
16217 +bfd_libs!$bfd_libs$ac_delim
16218 +all_backends!$all_backends$ac_delim
16219 +bfd_backends!$bfd_backends$ac_delim
16220 +bfd_machines!$bfd_machines$ac_delim
16221 +bfd_default_target_size!$bfd_default_target_size$ac_delim
16222 +bfd_file_ptr!$bfd_file_ptr$ac_delim
16223 +bfd_ufile_ptr!$bfd_ufile_ptr$ac_delim
16224 +tdefaults!$tdefaults$ac_delim
16225 +LIBOBJS!$LIBOBJS$ac_delim
16226 +LTLIBOBJS!$LTLIBOBJS$ac_delim
16227 _ACEOF
16228 +
16229 + if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 52; then
16230 + break
16231 + elif $ac_last_try; then
16232 + { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
16233 +echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
16234 + { (exit 1); exit 1; }; }
16235 + else
16236 + ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16237 + fi
16238 +done
16239 +
16240 +ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
16241 +if test -n "$ac_eof"; then
16242 + ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
16243 + ac_eof=`expr $ac_eof + 1`
16244 +fi
16245 +
16246 +cat >>$CONFIG_STATUS <<_ACEOF
16247 +cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
16248 +/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
16249 +_ACEOF
16250 +sed '
16251 +s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
16252 +s/^/s,@/; s/!/@,|#_!!_#|/
16253 +:n
16254 +t n
16255 +s/'"$ac_delim"'$/,g/; t
16256 +s/$/\\/; p
16257 +N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
16258 +' >>$CONFIG_STATUS <conf$$subs.sed
16259 +rm -f conf$$subs.sed
16260 +cat >>$CONFIG_STATUS <<_ACEOF
16261 +:end
16262 +s/|#_!!_#|//g
16263 +CEOF$ac_eof
16264 +_ACEOF
16265 +
16266 +
16267 +# VPATH may cause trouble with some makes, so we remove $(srcdir),
16268 +# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16269 +# trailing colons and then remove the whole line if VPATH becomes empty
16270 +# (actually we leave an empty line to preserve line numbers).
16271 +if test "x$srcdir" = x.; then
16272 + ac_vpsub='/^[ ]*VPATH[ ]*=/{
16273 +s/:*\$(srcdir):*/:/
16274 +s/:*\${srcdir}:*/:/
16275 +s/:*@srcdir@:*/:/
16276 +s/^\([^=]*=[ ]*\):*/\1/
16277 +s/:*$//
16278 +s/^[^=]*=[ ]*$//
16279 +}'
16280 +fi
16281 +
16282 cat >>$CONFIG_STATUS <<\_ACEOF
16283 -for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
16284 - # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16285 - case $ac_file in
16286 - - | *:- | *:-:* ) # input from stdin
16287 - cat >$tmp/stdin
16288 - ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16289 - ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16290 - *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16291 - ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16292 - * ) ac_file_in=$ac_file.in ;;
16293 +fi # test -n "$CONFIG_FILES"
16294 +
16295 +
16296 +for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
16297 +do
16298 + case $ac_tag in
16299 + :[FHLC]) ac_mode=$ac_tag; continue;;
16300 + esac
16301 + case $ac_mode$ac_tag in
16302 + :[FHL]*:*);;
16303 + :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
16304 +echo "$as_me: error: Invalid tag $ac_tag." >&2;}
16305 + { (exit 1); exit 1; }; };;
16306 + :[FH]-) ac_tag=-:-;;
16307 + :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16308 + esac
16309 + ac_save_IFS=$IFS
16310 + IFS=:
16311 + set x $ac_tag
16312 + IFS=$ac_save_IFS
16313 + shift
16314 + ac_file=$1
16315 + shift
16316 +
16317 + case $ac_mode in
16318 + :L) ac_source=$1;;
16319 + :[FH])
16320 + ac_file_inputs=
16321 + for ac_f
16322 + do
16323 + case $ac_f in
16324 + -) ac_f="$tmp/stdin";;
16325 + *) # Look for the file first in the build tree, then in the source tree
16326 + # (if the path is not absolute). The absolute path cannot be DOS-style,
16327 + # because $ac_f cannot contain `:'.
16328 + test -f "$ac_f" ||
16329 + case $ac_f in
16330 + [\\/$]*) false;;
16331 + *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16332 + esac ||
16333 + { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
16334 +echo "$as_me: error: cannot find input file: $ac_f" >&2;}
16335 + { (exit 1); exit 1; }; };;
16336 + esac
16337 + ac_file_inputs="$ac_file_inputs $ac_f"
16338 + done
16339 +
16340 + # Let's still pretend it is `configure' which instantiates (i.e., don't
16341 + # use $as_me), people would be surprised to read:
16342 + # /* config.h. Generated by config.status. */
16343 + configure_input="Generated from "`IFS=:
16344 + echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
16345 + if test x"$ac_file" != x-; then
16346 + configure_input="$ac_file. $configure_input"
16347 + { echo "$as_me:$LINENO: creating $ac_file" >&5
16348 +echo "$as_me: creating $ac_file" >&6;}
16349 + fi
16350 +
16351 + case $ac_tag in
16352 + *:-:* | *:-) cat >"$tmp/stdin";;
16353 + esac
16354 + ;;
16355 esac
16356
16357 - # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
16358 - ac_dir=`(dirname "$ac_file") 2>/dev/null ||
16359 + ac_dir=`$as_dirname -- "$ac_file" ||
16360 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16361 X"$ac_file" : 'X\(//\)[^/]' \| \
16362 X"$ac_file" : 'X\(//\)$' \| \
16363 - X"$ac_file" : 'X\(/\)' \| \
16364 - . : '\(.\)' 2>/dev/null ||
16365 + X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16366 echo X"$ac_file" |
16367 - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16368 - /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16369 - /^X\(\/\/\)$/{ s//\1/; q; }
16370 - /^X\(\/\).*/{ s//\1/; q; }
16371 - s/.*/./; q'`
16372 - { if $as_mkdir_p; then
16373 - mkdir -p "$ac_dir"
16374 - else
16375 - as_dir="$ac_dir"
16376 + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16377 + s//\1/
16378 + q
16379 + }
16380 + /^X\(\/\/\)[^/].*/{
16381 + s//\1/
16382 + q
16383 + }
16384 + /^X\(\/\/\)$/{
16385 + s//\1/
16386 + q
16387 + }
16388 + /^X\(\/\).*/{
16389 + s//\1/
16390 + q
16391 + }
16392 + s/.*/./; q'`
16393 + { as_dir="$ac_dir"
16394 + case $as_dir in #(
16395 + -*) as_dir=./$as_dir;;
16396 + esac
16397 + test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
16398 as_dirs=
16399 - while test ! -d "$as_dir"; do
16400 - as_dirs="$as_dir $as_dirs"
16401 - as_dir=`(dirname "$as_dir") 2>/dev/null ||
16402 + while :; do
16403 + case $as_dir in #(
16404 + *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
16405 + *) as_qdir=$as_dir;;
16406 + esac
16407 + as_dirs="'$as_qdir' $as_dirs"
16408 + as_dir=`$as_dirname -- "$as_dir" ||
16409 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16410 X"$as_dir" : 'X\(//\)[^/]' \| \
16411 X"$as_dir" : 'X\(//\)$' \| \
16412 - X"$as_dir" : 'X\(/\)' \| \
16413 - . : '\(.\)' 2>/dev/null ||
16414 + X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16415 echo X"$as_dir" |
16416 - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16417 - /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16418 - /^X\(\/\/\)$/{ s//\1/; q; }
16419 - /^X\(\/\).*/{ s//\1/; q; }
16420 - s/.*/./; q'`
16421 + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16422 + s//\1/
16423 + q
16424 + }
16425 + /^X\(\/\/\)[^/].*/{
16426 + s//\1/
16427 + q
16428 + }
16429 + /^X\(\/\/\)$/{
16430 + s//\1/
16431 + q
16432 + }
16433 + /^X\(\/\).*/{
16434 + s//\1/
16435 + q
16436 + }
16437 + s/.*/./; q'`
16438 + test -d "$as_dir" && break
16439 done
16440 - test ! -n "$as_dirs" || mkdir $as_dirs
16441 - fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16442 -echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16443 + test -z "$as_dirs" || eval "mkdir $as_dirs"
16444 + } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
16445 +echo "$as_me: error: cannot create directory $as_dir" >&2;}
16446 { (exit 1); exit 1; }; }; }
16447 -
16448 ac_builddir=.
16449
16450 -if test "$ac_dir" != .; then
16451 +case "$ac_dir" in
16452 +.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16453 +*)
16454 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16455 - # A "../" for each directory in $ac_dir_suffix.
16456 - ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
16457 -else
16458 - ac_dir_suffix= ac_top_builddir=
16459 -fi
16460 + # A ".." for each directory in $ac_dir_suffix.
16461 + ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
16462 + case $ac_top_builddir_sub in
16463 + "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16464 + *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16465 + esac ;;
16466 +esac
16467 +ac_abs_top_builddir=$ac_pwd
16468 +ac_abs_builddir=$ac_pwd$ac_dir_suffix
16469 +# for backward compatibility:
16470 +ac_top_builddir=$ac_top_build_prefix
16471
16472 case $srcdir in
16473 - .) # No --srcdir option. We are building in place.
16474 + .) # We are building in place.
16475 ac_srcdir=.
16476 - if test -z "$ac_top_builddir"; then
16477 - ac_top_srcdir=.
16478 - else
16479 - ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
16480 - fi ;;
16481 - [\\/]* | ?:[\\/]* ) # Absolute path.
16482 + ac_top_srcdir=$ac_top_builddir_sub
16483 + ac_abs_top_srcdir=$ac_pwd ;;
16484 + [\\/]* | ?:[\\/]* ) # Absolute name.
16485 ac_srcdir=$srcdir$ac_dir_suffix;
16486 - ac_top_srcdir=$srcdir ;;
16487 - *) # Relative path.
16488 - ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
16489 - ac_top_srcdir=$ac_top_builddir$srcdir ;;
16490 -esac
16491 + ac_top_srcdir=$srcdir
16492 + ac_abs_top_srcdir=$srcdir ;;
16493 + *) # Relative name.
16494 + ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16495 + ac_top_srcdir=$ac_top_build_prefix$srcdir
16496 + ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16497 +esac
16498 +ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16499
16500 -# Do not use `cd foo && pwd` to compute absolute paths, because
16501 -# the directories may not exist.
16502 -case `pwd` in
16503 -.) ac_abs_builddir="$ac_dir";;
16504 -*)
16505 - case "$ac_dir" in
16506 - .) ac_abs_builddir=`pwd`;;
16507 - [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
16508 - *) ac_abs_builddir=`pwd`/"$ac_dir";;
16509 - esac;;
16510 -esac
16511 -case $ac_abs_builddir in
16512 -.) ac_abs_top_builddir=${ac_top_builddir}.;;
16513 -*)
16514 - case ${ac_top_builddir}. in
16515 - .) ac_abs_top_builddir=$ac_abs_builddir;;
16516 - [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
16517 - *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
16518 - esac;;
16519 -esac
16520 -case $ac_abs_builddir in
16521 -.) ac_abs_srcdir=$ac_srcdir;;
16522 -*)
16523 - case $ac_srcdir in
16524 - .) ac_abs_srcdir=$ac_abs_builddir;;
16525 - [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
16526 - *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
16527 - esac;;
16528 -esac
16529 -case $ac_abs_builddir in
16530 -.) ac_abs_top_srcdir=$ac_top_srcdir;;
16531 -*)
16532 - case $ac_top_srcdir in
16533 - .) ac_abs_top_srcdir=$ac_abs_builddir;;
16534 - [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
16535 - *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
16536 - esac;;
16537 -esac
16538
16539 + case $ac_mode in
16540 + :F)
16541 + #
16542 + # CONFIG_FILE
16543 + #
16544
16545 case $INSTALL in
16546 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16547 - *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
16548 + *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16549 esac
16550 +_ACEOF
16551
16552 - if test x"$ac_file" != x-; then
16553 - { echo "$as_me:$LINENO: creating $ac_file" >&5
16554 -echo "$as_me: creating $ac_file" >&6;}
16555 - rm -f "$ac_file"
16556 - fi
16557 - # Let's still pretend it is `configure' which instantiates (i.e., don't
16558 - # use $as_me), people would be surprised to read:
16559 - # /* config.h. Generated by config.status. */
16560 - if test x"$ac_file" = x-; then
16561 - configure_input=
16562 - else
16563 - configure_input="$ac_file. "
16564 - fi
16565 - configure_input=$configure_input"Generated from `echo $ac_file_in |
16566 - sed 's,.*/,,'` by configure."
16567 -
16568 - # First look for the input files in the build tree, otherwise in the
16569 - # src tree.
16570 - ac_file_inputs=`IFS=:
16571 - for f in $ac_file_in; do
16572 - case $f in
16573 - -) echo $tmp/stdin ;;
16574 - [\\/$]*)
16575 - # Absolute (can't be DOS-style, as IFS=:)
16576 - test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16577 -echo "$as_me: error: cannot find input file: $f" >&2;}
16578 - { (exit 1); exit 1; }; }
16579 - echo "$f";;
16580 - *) # Relative
16581 - if test -f "$f"; then
16582 - # Build tree
16583 - echo "$f"
16584 - elif test -f "$srcdir/$f"; then
16585 - # Source tree
16586 - echo "$srcdir/$f"
16587 - else
16588 - # /dev/null tree
16589 - { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16590 -echo "$as_me: error: cannot find input file: $f" >&2;}
16591 - { (exit 1); exit 1; }; }
16592 - fi;;
16593 - esac
16594 - done` || { (exit 1); exit 1; }
16595 +cat >>$CONFIG_STATUS <<\_ACEOF
16596 +# If the template does not know about datarootdir, expand it.
16597 +# FIXME: This hack should be removed a few years after 2.60.
16598 +ac_datarootdir_hack=; ac_datarootdir_seen=
16599 +
16600 +case `sed -n '/datarootdir/ {
16601 + p
16602 + q
16603 +}
16604 +/@datadir@/p
16605 +/@docdir@/p
16606 +/@infodir@/p
16607 +/@localedir@/p
16608 +/@mandir@/p
16609 +' $ac_file_inputs` in
16610 +*datarootdir*) ac_datarootdir_seen=yes;;
16611 +*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16612 + { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16613 +echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16614 +_ACEOF
16615 +cat >>$CONFIG_STATUS <<_ACEOF
16616 + ac_datarootdir_hack='
16617 + s&@datadir@&$datadir&g
16618 + s&@docdir@&$docdir&g
16619 + s&@infodir@&$infodir&g
16620 + s&@localedir@&$localedir&g
16621 + s&@mandir@&$mandir&g
16622 + s&\\\${datarootdir}&$datarootdir&g' ;;
16623 +esac
16624 _ACEOF
16625 +
16626 +# Neutralize VPATH when `$srcdir' = `.'.
16627 +# Shell code in configure.ac might set extrasub.
16628 +# FIXME: do we really want to maintain this feature?
16629 cat >>$CONFIG_STATUS <<_ACEOF
16630 sed "$ac_vpsub
16631 $extrasub
16632 @@ -15521,248 +15939,130 @@ _ACEOF
16633 cat >>$CONFIG_STATUS <<\_ACEOF
16634 :t
16635 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16636 -s,@configure_input@,$configure_input,;t t
16637 -s,@srcdir@,$ac_srcdir,;t t
16638 -s,@abs_srcdir@,$ac_abs_srcdir,;t t
16639 -s,@top_srcdir@,$ac_top_srcdir,;t t
16640 -s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
16641 -s,@builddir@,$ac_builddir,;t t
16642 -s,@abs_builddir@,$ac_abs_builddir,;t t
16643 -s,@top_builddir@,$ac_top_builddir,;t t
16644 -s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
16645 -s,@INSTALL@,$ac_INSTALL,;t t
16646 -" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
16647 - rm -f $tmp/stdin
16648 - if test x"$ac_file" != x-; then
16649 - mv $tmp/out $ac_file
16650 - else
16651 - cat $tmp/out
16652 - rm -f $tmp/out
16653 - fi
16654 -
16655 -done
16656 -_ACEOF
16657 -cat >>$CONFIG_STATUS <<\_ACEOF
16658 -
16659 -#
16660 -# CONFIG_HEADER section.
16661 -#
16662 -
16663 -# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
16664 -# NAME is the cpp macro being defined and VALUE is the value it is being given.
16665 -#
16666 -# ac_d sets the value in "#define NAME VALUE" lines.
16667 -ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
16668 -ac_dB='[ ].*$,\1#\2'
16669 -ac_dC=' '
16670 -ac_dD=',;t'
16671 -# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
16672 -ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
16673 -ac_uB='$,\1#\2define\3'
16674 -ac_uC=' '
16675 -ac_uD=',;t'
16676 +s&@configure_input@&$configure_input&;t t
16677 +s&@top_builddir@&$ac_top_builddir_sub&;t t
16678 +s&@srcdir@&$ac_srcdir&;t t
16679 +s&@abs_srcdir@&$ac_abs_srcdir&;t t
16680 +s&@top_srcdir@&$ac_top_srcdir&;t t
16681 +s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16682 +s&@builddir@&$ac_builddir&;t t
16683 +s&@abs_builddir@&$ac_abs_builddir&;t t
16684 +s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16685 +s&@INSTALL@&$ac_INSTALL&;t t
16686 +$ac_datarootdir_hack
16687 +" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
16688 +
16689 +test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16690 + { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16691 + { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16692 + { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16693 +which seems to be undefined. Please make sure it is defined." >&5
16694 +echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16695 +which seems to be undefined. Please make sure it is defined." >&2;}
16696
16697 -for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
16698 - # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16699 + rm -f "$tmp/stdin"
16700 case $ac_file in
16701 - - | *:- | *:-:* ) # input from stdin
16702 - cat >$tmp/stdin
16703 - ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16704 - ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16705 - *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16706 - ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16707 - * ) ac_file_in=$ac_file.in ;;
16708 + -) cat "$tmp/out"; rm -f "$tmp/out";;
16709 + *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
16710 esac
16711 + ;;
16712 + :H)
16713 + #
16714 + # CONFIG_HEADER
16715 + #
16716 +_ACEOF
16717 +
16718 +# Transform confdefs.h into a sed script `conftest.defines', that
16719 +# substitutes the proper values into config.h.in to produce config.h.
16720 +rm -f conftest.defines conftest.tail
16721 +# First, append a space to every undef/define line, to ease matching.
16722 +echo 's/$/ /' >conftest.defines
16723 +# Then, protect against being on the right side of a sed subst, or in
16724 +# an unquoted here document, in config.status. If some macros were
16725 +# called several times there might be several #defines for the same
16726 +# symbol, which is useless. But do not sort them, since the last
16727 +# AC_DEFINE must be honored.
16728 +ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16729 +# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
16730 +# NAME is the cpp macro being defined, VALUE is the value it is being given.
16731 +# PARAMS is the parameter list in the macro definition--in most cases, it's
16732 +# just an empty string.
16733 +ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
16734 +ac_dB='\\)[ (].*,\\1define\\2'
16735 +ac_dC=' '
16736 +ac_dD=' ,'
16737
16738 - test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
16739 -echo "$as_me: creating $ac_file" >&6;}
16740 -
16741 - # First look for the input files in the build tree, otherwise in the
16742 - # src tree.
16743 - ac_file_inputs=`IFS=:
16744 - for f in $ac_file_in; do
16745 - case $f in
16746 - -) echo $tmp/stdin ;;
16747 - [\\/$]*)
16748 - # Absolute (can't be DOS-style, as IFS=:)
16749 - test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16750 -echo "$as_me: error: cannot find input file: $f" >&2;}
16751 - { (exit 1); exit 1; }; }
16752 - # Do quote $f, to prevent DOS paths from being IFS'd.
16753 - echo "$f";;
16754 - *) # Relative
16755 - if test -f "$f"; then
16756 - # Build tree
16757 - echo "$f"
16758 - elif test -f "$srcdir/$f"; then
16759 - # Source tree
16760 - echo "$srcdir/$f"
16761 - else
16762 - # /dev/null tree
16763 - { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16764 -echo "$as_me: error: cannot find input file: $f" >&2;}
16765 - { (exit 1); exit 1; }; }
16766 - fi;;
16767 - esac
16768 - done` || { (exit 1); exit 1; }
16769 - # Remove the trailing spaces.
16770 - sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
16771 -
16772 -_ACEOF
16773 -
16774 -# Transform confdefs.h into two sed scripts, `conftest.defines' and
16775 -# `conftest.undefs', that substitutes the proper values into
16776 -# config.h.in to produce config.h. The first handles `#define'
16777 -# templates, and the second `#undef' templates.
16778 -# And first: Protect against being on the right side of a sed subst in
16779 -# config.status. Protect against being in an unquoted here document
16780 -# in config.status.
16781 -rm -f conftest.defines conftest.undefs
16782 -# Using a here document instead of a string reduces the quoting nightmare.
16783 -# Putting comments in sed scripts is not portable.
16784 -#
16785 -# `end' is used to avoid that the second main sed command (meant for
16786 -# 0-ary CPP macros) applies to n-ary macro definitions.
16787 -# See the Autoconf documentation for `clear'.
16788 -cat >confdef2sed.sed <<\_ACEOF
16789 -s/[\\&,]/\\&/g
16790 -s,[\\$`],\\&,g
16791 -t clear
16792 -: clear
16793 -s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
16794 -t end
16795 -s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
16796 -: end
16797 -_ACEOF
16798 -# If some macros were called several times there might be several times
16799 -# the same #defines, which is useless. Nevertheless, we may not want to
16800 -# sort them, since we want the *last* AC-DEFINE to be honored.
16801 -uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
16802 -sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
16803 -rm -f confdef2sed.sed
16804 +uniq confdefs.h |
16805 + sed -n '
16806 + t rset
16807 + :rset
16808 + s/^[ ]*#[ ]*define[ ][ ]*//
16809 + t ok
16810 + d
16811 + :ok
16812 + s/[\\&,]/\\&/g
16813 + s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
16814 + s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
16815 + ' >>conftest.defines
16816
16817 -# This sed command replaces #undef with comments. This is necessary, for
16818 +# Remove the space that was appended to ease matching.
16819 +# Then replace #undef with comments. This is necessary, for
16820 # example, in the case of _POSIX_SOURCE, which is predefined and required
16821 # on some systems where configure will not decide to define it.
16822 -cat >>conftest.undefs <<\_ACEOF
16823 -s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
16824 +# (The regexp can be short, since the line contains either #define or #undef.)
16825 +echo 's/ $//
16826 +s,^[ #]*u.*,/* & */,' >>conftest.defines
16827 +
16828 +# Break up conftest.defines:
16829 +ac_max_sed_lines=50
16830 +
16831 +# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
16832 +# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
16833 +# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
16834 +# et cetera.
16835 +ac_in='$ac_file_inputs'
16836 +ac_out='"$tmp/out1"'
16837 +ac_nxt='"$tmp/out2"'
16838 +
16839 +while :
16840 +do
16841 + # Write a here document:
16842 + cat >>$CONFIG_STATUS <<_ACEOF
16843 + # First, check the format of the line:
16844 + cat >"\$tmp/defines.sed" <<\\CEOF
16845 +/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
16846 +/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
16847 +b
16848 +:def
16849 _ACEOF
16850 -
16851 -# Break up conftest.defines because some shells have a limit on the size
16852 -# of here documents, and old seds have small limits too (100 cmds).
16853 -echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
16854 -echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
16855 -echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
16856 -echo ' :' >>$CONFIG_STATUS
16857 -rm -f conftest.tail
16858 -while grep . conftest.defines >/dev/null
16859 -do
16860 - # Write a limited-size here document to $tmp/defines.sed.
16861 - echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
16862 - # Speed up: don't consider the non `#define' lines.
16863 - echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
16864 - # Work around the forget-to-reset-the-flag bug.
16865 - echo 't clr' >>$CONFIG_STATUS
16866 - echo ': clr' >>$CONFIG_STATUS
16867 - sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
16868 + sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
16869 echo 'CEOF
16870 - sed -f $tmp/defines.sed $tmp/in >$tmp/out
16871 - rm -f $tmp/in
16872 - mv $tmp/out $tmp/in
16873 -' >>$CONFIG_STATUS
16874 - sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
16875 + sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
16876 + ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
16877 + sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
16878 + grep . conftest.tail >/dev/null || break
16879 rm -f conftest.defines
16880 mv conftest.tail conftest.defines
16881 done
16882 -rm -f conftest.defines
16883 -echo ' fi # grep' >>$CONFIG_STATUS
16884 -echo >>$CONFIG_STATUS
16885 -
16886 -# Break up conftest.undefs because some shells have a limit on the size
16887 -# of here documents, and old seds have small limits too (100 cmds).
16888 -echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
16889 -rm -f conftest.tail
16890 -while grep . conftest.undefs >/dev/null
16891 -do
16892 - # Write a limited-size here document to $tmp/undefs.sed.
16893 - echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
16894 - # Speed up: don't consider the non `#undef'
16895 - echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
16896 - # Work around the forget-to-reset-the-flag bug.
16897 - echo 't clr' >>$CONFIG_STATUS
16898 - echo ': clr' >>$CONFIG_STATUS
16899 - sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
16900 - echo 'CEOF
16901 - sed -f $tmp/undefs.sed $tmp/in >$tmp/out
16902 - rm -f $tmp/in
16903 - mv $tmp/out $tmp/in
16904 -' >>$CONFIG_STATUS
16905 - sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
16906 - rm -f conftest.undefs
16907 - mv conftest.tail conftest.undefs
16908 -done
16909 -rm -f conftest.undefs
16910 +rm -f conftest.defines conftest.tail
16911
16912 +echo "ac_result=$ac_in" >>$CONFIG_STATUS
16913 cat >>$CONFIG_STATUS <<\_ACEOF
16914 - # Let's still pretend it is `configure' which instantiates (i.e., don't
16915 - # use $as_me), people would be surprised to read:
16916 - # /* config.h. Generated by config.status. */
16917 - if test x"$ac_file" = x-; then
16918 - echo "/* Generated by configure. */" >$tmp/config.h
16919 - else
16920 - echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
16921 - fi
16922 - cat $tmp/in >>$tmp/config.h
16923 - rm -f $tmp/in
16924 if test x"$ac_file" != x-; then
16925 - if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
16926 + echo "/* $configure_input */" >"$tmp/config.h"
16927 + cat "$ac_result" >>"$tmp/config.h"
16928 + if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
16929 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
16930 echo "$as_me: $ac_file is unchanged" >&6;}
16931 else
16932 - ac_dir=`(dirname "$ac_file") 2>/dev/null ||
16933 -$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16934 - X"$ac_file" : 'X\(//\)[^/]' \| \
16935 - X"$ac_file" : 'X\(//\)$' \| \
16936 - X"$ac_file" : 'X\(/\)' \| \
16937 - . : '\(.\)' 2>/dev/null ||
16938 -echo X"$ac_file" |
16939 - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16940 - /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16941 - /^X\(\/\/\)$/{ s//\1/; q; }
16942 - /^X\(\/\).*/{ s//\1/; q; }
16943 - s/.*/./; q'`
16944 - { if $as_mkdir_p; then
16945 - mkdir -p "$ac_dir"
16946 - else
16947 - as_dir="$ac_dir"
16948 - as_dirs=
16949 - while test ! -d "$as_dir"; do
16950 - as_dirs="$as_dir $as_dirs"
16951 - as_dir=`(dirname "$as_dir") 2>/dev/null ||
16952 -$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16953 - X"$as_dir" : 'X\(//\)[^/]' \| \
16954 - X"$as_dir" : 'X\(//\)$' \| \
16955 - X"$as_dir" : 'X\(/\)' \| \
16956 - . : '\(.\)' 2>/dev/null ||
16957 -echo X"$as_dir" |
16958 - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16959 - /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16960 - /^X\(\/\/\)$/{ s//\1/; q; }
16961 - /^X\(\/\).*/{ s//\1/; q; }
16962 - s/.*/./; q'`
16963 - done
16964 - test ! -n "$as_dirs" || mkdir $as_dirs
16965 - fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16966 -echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16967 - { (exit 1); exit 1; }; }; }
16968 -
16969 rm -f $ac_file
16970 - mv $tmp/config.h $ac_file
16971 + mv "$tmp/config.h" $ac_file
16972 fi
16973 else
16974 - cat $tmp/config.h
16975 - rm -f $tmp/config.h
16976 + echo "/* $configure_input */"
16977 + cat "$ac_result"
16978 fi
16979 + rm -f "$tmp/out12"
16980 # Compute $ac_file's index in $config_headers.
16981 _am_stamp_count=1
16982 for _am_header in $config_headers :; do
16983 @@ -15773,135 +16073,39 @@ for _am_header in $config_headers :; do
16984 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16985 esac
16986 done
16987 -echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
16988 +echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
16989 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16990 X$ac_file : 'X\(//\)[^/]' \| \
16991 X$ac_file : 'X\(//\)$' \| \
16992 - X$ac_file : 'X\(/\)' \| \
16993 - . : '\(.\)' 2>/dev/null ||
16994 + X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
16995 echo X$ac_file |
16996 - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16997 - /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16998 - /^X\(\/\/\)$/{ s//\1/; q; }
16999 - /^X\(\/\).*/{ s//\1/; q; }
17000 - s/.*/./; q'`/stamp-h$_am_stamp_count
17001 -done
17002 -_ACEOF
17003 -cat >>$CONFIG_STATUS <<\_ACEOF
17004 -
17005 -#
17006 -# CONFIG_COMMANDS section.
17007 -#
17008 -for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
17009 - ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
17010 - ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
17011 - ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
17012 -$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17013 - X"$ac_dest" : 'X\(//\)[^/]' \| \
17014 - X"$ac_dest" : 'X\(//\)$' \| \
17015 - X"$ac_dest" : 'X\(/\)' \| \
17016 - . : '\(.\)' 2>/dev/null ||
17017 -echo X"$ac_dest" |
17018 - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17019 - /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17020 - /^X\(\/\/\)$/{ s//\1/; q; }
17021 - /^X\(\/\).*/{ s//\1/; q; }
17022 - s/.*/./; q'`
17023 - { if $as_mkdir_p; then
17024 - mkdir -p "$ac_dir"
17025 - else
17026 - as_dir="$ac_dir"
17027 - as_dirs=
17028 - while test ! -d "$as_dir"; do
17029 - as_dirs="$as_dir $as_dirs"
17030 - as_dir=`(dirname "$as_dir") 2>/dev/null ||
17031 -$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17032 - X"$as_dir" : 'X\(//\)[^/]' \| \
17033 - X"$as_dir" : 'X\(//\)$' \| \
17034 - X"$as_dir" : 'X\(/\)' \| \
17035 - . : '\(.\)' 2>/dev/null ||
17036 -echo X"$as_dir" |
17037 - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17038 - /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17039 - /^X\(\/\/\)$/{ s//\1/; q; }
17040 - /^X\(\/\).*/{ s//\1/; q; }
17041 - s/.*/./; q'`
17042 - done
17043 - test ! -n "$as_dirs" || mkdir $as_dirs
17044 - fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17045 -echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17046 - { (exit 1); exit 1; }; }; }
17047 -
17048 - ac_builddir=.
17049 -
17050 -if test "$ac_dir" != .; then
17051 - ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17052 - # A "../" for each directory in $ac_dir_suffix.
17053 - ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17054 -else
17055 - ac_dir_suffix= ac_top_builddir=
17056 -fi
17057 -
17058 -case $srcdir in
17059 - .) # No --srcdir option. We are building in place.
17060 - ac_srcdir=.
17061 - if test -z "$ac_top_builddir"; then
17062 - ac_top_srcdir=.
17063 - else
17064 - ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17065 - fi ;;
17066 - [\\/]* | ?:[\\/]* ) # Absolute path.
17067 - ac_srcdir=$srcdir$ac_dir_suffix;
17068 - ac_top_srcdir=$srcdir ;;
17069 - *) # Relative path.
17070 - ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17071 - ac_top_srcdir=$ac_top_builddir$srcdir ;;
17072 -esac
17073 + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17074 + s//\1/
17075 + q
17076 + }
17077 + /^X\(\/\/\)[^/].*/{
17078 + s//\1/
17079 + q
17080 + }
17081 + /^X\(\/\/\)$/{
17082 + s//\1/
17083 + q
17084 + }
17085 + /^X\(\/\).*/{
17086 + s//\1/
17087 + q
17088 + }
17089 + s/.*/./; q'`/stamp-h$_am_stamp_count
17090 + ;;
17091
17092 -# Do not use `cd foo && pwd` to compute absolute paths, because
17093 -# the directories may not exist.
17094 -case `pwd` in
17095 -.) ac_abs_builddir="$ac_dir";;
17096 -*)
17097 - case "$ac_dir" in
17098 - .) ac_abs_builddir=`pwd`;;
17099 - [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
17100 - *) ac_abs_builddir=`pwd`/"$ac_dir";;
17101 - esac;;
17102 -esac
17103 -case $ac_abs_builddir in
17104 -.) ac_abs_top_builddir=${ac_top_builddir}.;;
17105 -*)
17106 - case ${ac_top_builddir}. in
17107 - .) ac_abs_top_builddir=$ac_abs_builddir;;
17108 - [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
17109 - *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
17110 - esac;;
17111 -esac
17112 -case $ac_abs_builddir in
17113 -.) ac_abs_srcdir=$ac_srcdir;;
17114 -*)
17115 - case $ac_srcdir in
17116 - .) ac_abs_srcdir=$ac_abs_builddir;;
17117 - [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
17118 - *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
17119 - esac;;
17120 -esac
17121 -case $ac_abs_builddir in
17122 -.) ac_abs_top_srcdir=$ac_top_srcdir;;
17123 -*)
17124 - case $ac_top_srcdir in
17125 - .) ac_abs_top_srcdir=$ac_abs_builddir;;
17126 - [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
17127 - *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
17128 - esac;;
17129 -esac
17130 + :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
17131 +echo "$as_me: executing $ac_file commands" >&6;}
17132 + ;;
17133 + esac
17134
17135
17136 - { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
17137 -echo "$as_me: executing $ac_dest commands" >&6;}
17138 - case $ac_dest in
17139 - depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
17140 + case $ac_file$ac_mode in
17141 + "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
17142 # Strip MF so we end up with the name of the file.
17143 mf=`echo "$mf" | sed -e 's/:.*$//'`
17144 # Check whether this is an Automake generated Makefile or not.
17145 @@ -15911,18 +16115,29 @@ echo "$as_me: executing $ac_dest command
17146 # each Makefile.in and add a new line on top of each file to say so.
17147 # So let's grep whole file.
17148 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
17149 - dirpart=`(dirname "$mf") 2>/dev/null ||
17150 + dirpart=`$as_dirname -- "$mf" ||
17151 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17152 X"$mf" : 'X\(//\)[^/]' \| \
17153 X"$mf" : 'X\(//\)$' \| \
17154 - X"$mf" : 'X\(/\)' \| \
17155 - . : '\(.\)' 2>/dev/null ||
17156 + X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17157 echo X"$mf" |
17158 - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17159 - /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17160 - /^X\(\/\/\)$/{ s//\1/; q; }
17161 - /^X\(\/\).*/{ s//\1/; q; }
17162 - s/.*/./; q'`
17163 + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17164 + s//\1/
17165 + q
17166 + }
17167 + /^X\(\/\/\)[^/].*/{
17168 + s//\1/
17169 + q
17170 + }
17171 + /^X\(\/\/\)$/{
17172 + s//\1/
17173 + q
17174 + }
17175 + /^X\(\/\).*/{
17176 + s//\1/
17177 + q
17178 + }
17179 + s/.*/./; q'`
17180 else
17181 continue
17182 fi
17183 @@ -15944,54 +16159,80 @@ echo X"$mf" |
17184 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17185 # Make sure the directory exists.
17186 test -f "$dirpart/$file" && continue
17187 - fdir=`(dirname "$file") 2>/dev/null ||
17188 + fdir=`$as_dirname -- "$file" ||
17189 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17190 X"$file" : 'X\(//\)[^/]' \| \
17191 X"$file" : 'X\(//\)$' \| \
17192 - X"$file" : 'X\(/\)' \| \
17193 - . : '\(.\)' 2>/dev/null ||
17194 + X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17195 echo X"$file" |
17196 - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17197 - /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17198 - /^X\(\/\/\)$/{ s//\1/; q; }
17199 - /^X\(\/\).*/{ s//\1/; q; }
17200 - s/.*/./; q'`
17201 - { if $as_mkdir_p; then
17202 - mkdir -p $dirpart/$fdir
17203 - else
17204 - as_dir=$dirpart/$fdir
17205 + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17206 + s//\1/
17207 + q
17208 + }
17209 + /^X\(\/\/\)[^/].*/{
17210 + s//\1/
17211 + q
17212 + }
17213 + /^X\(\/\/\)$/{
17214 + s//\1/
17215 + q
17216 + }
17217 + /^X\(\/\).*/{
17218 + s//\1/
17219 + q
17220 + }
17221 + s/.*/./; q'`
17222 + { as_dir=$dirpart/$fdir
17223 + case $as_dir in #(
17224 + -*) as_dir=./$as_dir;;
17225 + esac
17226 + test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
17227 as_dirs=
17228 - while test ! -d "$as_dir"; do
17229 - as_dirs="$as_dir $as_dirs"
17230 - as_dir=`(dirname "$as_dir") 2>/dev/null ||
17231 + while :; do
17232 + case $as_dir in #(
17233 + *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
17234 + *) as_qdir=$as_dir;;
17235 + esac
17236 + as_dirs="'$as_qdir' $as_dirs"
17237 + as_dir=`$as_dirname -- "$as_dir" ||
17238 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17239 X"$as_dir" : 'X\(//\)[^/]' \| \
17240 X"$as_dir" : 'X\(//\)$' \| \
17241 - X"$as_dir" : 'X\(/\)' \| \
17242 - . : '\(.\)' 2>/dev/null ||
17243 + X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17244 echo X"$as_dir" |
17245 - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17246 - /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17247 - /^X\(\/\/\)$/{ s//\1/; q; }
17248 - /^X\(\/\).*/{ s//\1/; q; }
17249 - s/.*/./; q'`
17250 + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17251 + s//\1/
17252 + q
17253 + }
17254 + /^X\(\/\/\)[^/].*/{
17255 + s//\1/
17256 + q
17257 + }
17258 + /^X\(\/\/\)$/{
17259 + s//\1/
17260 + q
17261 + }
17262 + /^X\(\/\).*/{
17263 + s//\1/
17264 + q
17265 + }
17266 + s/.*/./; q'`
17267 + test -d "$as_dir" && break
17268 done
17269 - test ! -n "$as_dirs" || mkdir $as_dirs
17270 - fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
17271 -echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
17272 + test -z "$as_dirs" || eval "mkdir $as_dirs"
17273 + } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
17274 +echo "$as_me: error: cannot create directory $as_dir" >&2;}
17275 { (exit 1); exit 1; }; }; }
17276 -
17277 # echo "creating $dirpart/$file"
17278 echo '# dummy' > "$dirpart/$file"
17279 done
17280 done
17281 ;;
17282 - default ) sed -e '/SRC-POTFILES =/r po/SRC-POTFILES' -e '/BLD-POTFILES =/r po/BLD-POTFILES' po/Makefile.in > po/Makefile ;;
17283 + "default":C) sed -e '/SRC-POTFILES =/r po/SRC-POTFILES' -e '/BLD-POTFILES =/r po/BLD-POTFILES' po/Makefile.in > po/Makefile ;;
17284 +
17285 esac
17286 -done
17287 -_ACEOF
17288 +done # for ac_tag
17289
17290 -cat >>$CONFIG_STATUS <<\_ACEOF
17291
17292 { (exit 0); exit 0; }
17293 _ACEOF
17294 diff -Nrup binutils-2.17/bfd/cpu-avr32.c binutils-2.17.atmel.1.3.0/bfd/cpu-avr32.c
17295 --- binutils-2.17/bfd/cpu-avr32.c 1970-01-01 01:00:00.000000000 +0100
17296 +++ binutils-2.17.atmel.1.3.0/bfd/cpu-avr32.c 2007-05-31 17:03:36.000000000 +0200
17297 @@ -0,0 +1,49 @@
17298 +/* BFD library support routines for AVR32.
17299 + Copyright 2003-2006 Atmel Corporation.
17300 +
17301 + Written by Haavard Skinnemoen, Atmel Norway, <hskinnemoen@atmel.com>
17302 +
17303 + This is part of BFD, the Binary File Descriptor library.
17304 +
17305 + This program is free software; you can redistribute it and/or modify
17306 + it under the terms of the GNU General Public License as published by
17307 + the Free Software Foundation; either version 2 of the License, or
17308 + (at your option) any later version.
17309 +
17310 + This program is distributed in the hope that it will be useful,
17311 + but WITHOUT ANY WARRANTY; without even the implied warranty of
17312 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17313 + GNU General Public License for more details.
17314 +
17315 + You should have received a copy of the GNU General Public License
17316 + along with this program; if not, write to the Free Software
17317 + Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
17318 +
17319 +#include "bfd.h"
17320 +#include "sysdep.h"
17321 +#include "libbfd.h"
17322 +
17323 +#define N(machine, print, default, next) \
17324 + { \
17325 + 32, /* 32 bits in a word */ \
17326 + 32, /* 32 bits in an address */ \
17327 + 8, /* 8 bits in a byte */ \
17328 + bfd_arch_avr32, /* architecture */ \
17329 + machine, /* machine */ \
17330 + "avr32", /* arch name */ \
17331 + print, /* printable name */ \
17332 + 1, /* section align power */ \
17333 + default, /* the default machine? */ \
17334 + bfd_default_compatible, \
17335 + bfd_default_scan, \
17336 + next, \
17337 + }
17338 +
17339 +static const bfd_arch_info_type cpu_info[] =
17340 +{
17341 + N(bfd_mach_avr32_ap, "avr32:ap", FALSE, &cpu_info[1]),
17342 + N(bfd_mach_avr32_uc, "avr32:uc", FALSE, NULL),
17343 +};
17344 +
17345 +const bfd_arch_info_type bfd_avr32_arch =
17346 + N(bfd_mach_avr32_ap, "avr32", TRUE, &cpu_info[0]);
17347 diff -Nrup binutils-2.17/bfd/doc/bfd.info binutils-2.17.atmel.1.3.0/bfd/doc/bfd.info
17348 --- binutils-2.17/bfd/doc/bfd.info 2006-06-12 15:37:32.000000000 +0200
17349 +++ binutils-2.17.atmel.1.3.0/bfd/doc/bfd.info 2007-03-26 10:34:02.000000000 +0200
17350 @@ -1,5 +1,7 @@
17351 -This is ../.././bfd/doc/bfd.info, produced by makeinfo version 4.8 from
17352 -../.././bfd/doc/bfd.texinfo.
17353 +This is
17354 +/home/hcegtvedt/svnwork/tools/T0243-GNU_Toolchain/50-Source/binutils/trunk/bfd/doc/bfd.info,
17355 +produced by makeinfo version 4.8 from
17356 +/home/hcegtvedt/svnwork/tools/T0243-GNU_Toolchain/50-Source/binutils/trunk/bfd/doc/bfd.texinfo.
17357
17358 START-INFO-DIR-ENTRY
17359 * Bfd: (bfd). The Binary File Descriptor library.
17360 @@ -10239,67 +10241,67 @@ Index
17361
17362 \1f
17363 Tag Table:
17364 -Node: Top\7f724
17365 -Node: Overview\7f1056
17366 -Node: History\7f2107
17367 -Node: How It Works\7f3053
17368 -Node: What BFD Version 2 Can Do\7f4595
17369 -Node: BFD information loss\7f5910
17370 -Node: Canonical format\7f8442
17371 -Node: BFD front end\7f12814
17372 -Node: Memory Usage\7f38428
17373 -Node: Initialization\7f39656
17374 -Node: Sections\7f40115
17375 -Node: Section Input\7f40598
17376 -Node: Section Output\7f41963
17377 -Node: typedef asection\7f44449
17378 -Node: section prototypes\7f69406
17379 -Node: Symbols\7f79086
17380 -Node: Reading Symbols\7f80681
17381 -Node: Writing Symbols\7f81788
17382 -Node: Mini Symbols\7f83497
17383 -Node: typedef asymbol\7f84471
17384 -Node: symbol handling functions\7f89389
17385 -Node: Archives\7f94731
17386 -Node: Formats\7f98457
17387 -Node: Relocations\7f101405
17388 -Node: typedef arelent\7f102132
17389 -Node: howto manager\7f117943
17390 -Node: Core Files\7f180223
17391 -Node: Targets\7f182040
17392 -Node: bfd_target\7f184010
17393 -Node: Architectures\7f204090
17394 -Node: Opening and Closing\7f225522
17395 -Node: Internal\7f236524
17396 -Node: File Caching\7f242857
17397 -Node: Linker Functions\7f244771
17398 -Node: Creating a Linker Hash Table\7f246444
17399 -Node: Adding Symbols to the Hash Table\7f248182
17400 -Node: Differing file formats\7f249082
17401 -Node: Adding symbols from an object file\7f250830
17402 -Node: Adding symbols from an archive\7f252981
17403 -Node: Performing the Final Link\7f255395
17404 -Node: Information provided by the linker\7f256637
17405 -Node: Relocating the section contents\7f257791
17406 -Node: Writing the symbol table\7f259542
17407 -Node: Hash Tables\7f262535
17408 -Node: Creating and Freeing a Hash Table\7f263733
17409 -Node: Looking Up or Entering a String\7f264983
17410 -Node: Traversing a Hash Table\7f266236
17411 -Node: Deriving a New Hash Table Type\7f267025
17412 -Node: Define the Derived Structures\7f268091
17413 -Node: Write the Derived Creation Routine\7f269172
17414 -Node: Write Other Derived Routines\7f271796
17415 -Node: BFD back ends\7f273111
17416 -Node: What to Put Where\7f273381
17417 -Node: aout\7f273519
17418 -Node: coff\7f279837
17419 -Node: elf\7f304314
17420 -Node: mmo\7f305177
17421 -Node: File layout\7f306105
17422 -Node: Symbol-table\7f311752
17423 -Node: mmo section mapping\7f315521
17424 -Node: GNU Free Documentation License\7f319173
17425 -Node: Index\7f338898
17426 +Node: Top\7f858
17427 +Node: Overview\7f1190
17428 +Node: History\7f2241
17429 +Node: How It Works\7f3187
17430 +Node: What BFD Version 2 Can Do\7f4729
17431 +Node: BFD information loss\7f6044
17432 +Node: Canonical format\7f8576
17433 +Node: BFD front end\7f12948
17434 +Node: Memory Usage\7f38562
17435 +Node: Initialization\7f39790
17436 +Node: Sections\7f40249
17437 +Node: Section Input\7f40732
17438 +Node: Section Output\7f42097
17439 +Node: typedef asection\7f44583
17440 +Node: section prototypes\7f69540
17441 +Node: Symbols\7f79220
17442 +Node: Reading Symbols\7f80815
17443 +Node: Writing Symbols\7f81922
17444 +Node: Mini Symbols\7f83631
17445 +Node: typedef asymbol\7f84605
17446 +Node: symbol handling functions\7f89523
17447 +Node: Archives\7f94865
17448 +Node: Formats\7f98591
17449 +Node: Relocations\7f101539
17450 +Node: typedef arelent\7f102266
17451 +Node: howto manager\7f118077
17452 +Node: Core Files\7f180357
17453 +Node: Targets\7f182174
17454 +Node: bfd_target\7f184144
17455 +Node: Architectures\7f204224
17456 +Node: Opening and Closing\7f225656
17457 +Node: Internal\7f236658
17458 +Node: File Caching\7f242991
17459 +Node: Linker Functions\7f244905
17460 +Node: Creating a Linker Hash Table\7f246578
17461 +Node: Adding Symbols to the Hash Table\7f248316
17462 +Node: Differing file formats\7f249216
17463 +Node: Adding symbols from an object file\7f250964
17464 +Node: Adding symbols from an archive\7f253115
17465 +Node: Performing the Final Link\7f255529
17466 +Node: Information provided by the linker\7f256771
17467 +Node: Relocating the section contents\7f257925
17468 +Node: Writing the symbol table\7f259676
17469 +Node: Hash Tables\7f262669
17470 +Node: Creating and Freeing a Hash Table\7f263867
17471 +Node: Looking Up or Entering a String\7f265117
17472 +Node: Traversing a Hash Table\7f266370
17473 +Node: Deriving a New Hash Table Type\7f267159
17474 +Node: Define the Derived Structures\7f268225
17475 +Node: Write the Derived Creation Routine\7f269306
17476 +Node: Write Other Derived Routines\7f271930
17477 +Node: BFD back ends\7f273245
17478 +Node: What to Put Where\7f273515
17479 +Node: aout\7f273653
17480 +Node: coff\7f279971
17481 +Node: elf\7f304448
17482 +Node: mmo\7f305311
17483 +Node: File layout\7f306239
17484 +Node: Symbol-table\7f311886
17485 +Node: mmo section mapping\7f315655
17486 +Node: GNU Free Documentation License\7f319307
17487 +Node: Index\7f339032
17488 \1f
17489 End Tag Table
17490 diff -Nrup binutils-2.17/bfd/doc/Makefile.in binutils-2.17.atmel.1.3.0/bfd/doc/Makefile.in
17491 --- binutils-2.17/bfd/doc/Makefile.in 2006-04-06 23:49:26.000000000 +0200
17492 +++ binutils-2.17.atmel.1.3.0/bfd/doc/Makefile.in 2007-03-26 10:30:55.000000000 +0200
17493 @@ -1,4 +1,4 @@
17494 -# Makefile.in generated by automake 1.9.5 from Makefile.am.
17495 +# Makefile.in generated by automake 1.9.6 from Makefile.am.
17496 # @configure_input@
17497
17498 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
17499 @@ -105,6 +105,7 @@ EXEEXT = @EXEEXT@
17500 EXEEXT_FOR_BUILD = @EXEEXT_FOR_BUILD@
17501 GMOFILES = @GMOFILES@
17502 GMSGFMT = @GMSGFMT@
17503 +GREP = @GREP@
17504 GT_NO = @GT_NO@
17505 GT_YES = @GT_YES@
17506 HDEFINES = @HDEFINES@
17507 @@ -154,10 +155,7 @@ WARN_CFLAGS = @WARN_CFLAGS@
17508 WIN32LDFLAGS = @WIN32LDFLAGS@
17509 WIN32LIBADD = @WIN32LIBADD@
17510 XGETTEXT = @XGETTEXT@
17511 -ac_ct_AR = @ac_ct_AR@
17512 ac_ct_CC = @ac_ct_CC@
17513 -ac_ct_RANLIB = @ac_ct_RANLIB@
17514 -ac_ct_STRIP = @ac_ct_STRIP@
17515 all_backends = @all_backends@
17516 am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
17517 am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
17518 @@ -183,6 +181,7 @@ build_vendor = @build_vendor@
17519 datadir = @datadir@
17520 datarootdir = @datarootdir@
17521 docdir = @docdir@
17522 +dvidir = @dvidir@
17523 exec_prefix = @exec_prefix@
17524 host = @host@
17525 host_alias = @host_alias@
17526 @@ -197,12 +196,15 @@ install_sh = @install_sh@
17527 l = @l@
17528 libdir = @libdir@
17529 libexecdir = @libexecdir@
17530 +localedir = @localedir@
17531 localstatedir = @localstatedir@
17532 mandir = @mandir@
17533 mkdir_p = @mkdir_p@
17534 oldincludedir = @oldincludedir@
17535 +pdfdir = @pdfdir@
17536 prefix = @prefix@
17537 program_transform_name = @program_transform_name@
17538 +psdir = @psdir@
17539 sbindir = @sbindir@
17540 sharedstatedir = @sharedstatedir@
17541 sysconfdir = @sysconfdir@
17542 @@ -364,9 +366,11 @@ distclean-libtool:
17543 restore=: && backupdir="$(am__leading_dot)am$$$$" && \
17544 am__cwd=`pwd` && cd $(srcdir) && \
17545 rm -rf $$backupdir && mkdir $$backupdir && \
17546 - for f in $@ $@-[0-9] $@-[0-9][0-9] $(@:.info=).i[0-9] $(@:.info=).i[0-9][0-9]; do \
17547 - if test -f $$f; then mv $$f $$backupdir; restore=mv; else :; fi; \
17548 - done; \
17549 + if ($(MAKEINFO) --version) >/dev/null 2>&1; then \
17550 + for f in $@ $@-[0-9] $@-[0-9][0-9] $(@:.info=).i[0-9] $(@:.info=).i[0-9][0-9]; do \
17551 + if test -f $$f; then mv $$f $$backupdir; restore=mv; else :; fi; \
17552 + done; \
17553 + else :; fi && \
17554 cd "$$am__cwd"; \
17555 if $(MAKEINFO) $(AM_MAKEINFOFLAGS) $(MAKEINFOFLAGS) -I $(srcdir) \
17556 -o $@ $<; \
17557 @@ -408,6 +412,7 @@ bfd.dvi: bfd.texinfo
17558 bfd.pdf: bfd.texinfo
17559 bfd.html: bfd.texinfo
17560 .dvi.ps:
17561 + TEXINPUTS="$(am__TEXINFO_TEX_DIR)$(PATH_SEPARATOR)$$TEXINPUTS" \
17562 $(DVIPS) -o $@ $<
17563
17564 uninstall-info-am:
17565 @@ -440,10 +445,13 @@ dist-info: $(INFO_DEPS)
17566 $(srcdir)/*) base=`echo "$$base" | sed "s|^$$srcdirstrip/||"`;; \
17567 esac; \
17568 if test -f $$base; then d=.; else d=$(srcdir); fi; \
17569 - for file in $$d/$$base*; do \
17570 - relfile=`expr "$$file" : "$$d/\(.*\)"`; \
17571 - test -f $(distdir)/$$relfile || \
17572 - cp -p $$file $(distdir)/$$relfile; \
17573 + base_i=`echo "$$base" | sed 's|\.info$$||;s|$$|.i|'`; \
17574 + 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 \
17575 + if test -f $$file; then \
17576 + relfile=`expr "$$file" : "$$d/\(.*\)"`; \
17577 + test -f $(distdir)/$$relfile || \
17578 + cp -p $$file $(distdir)/$$relfile; \
17579 + else :; fi; \
17580 done; \
17581 done
17582
17583 diff -Nrup binutils-2.17/bfd/elf32-avr32.c binutils-2.17.atmel.1.3.0/bfd/elf32-avr32.c
17584 --- binutils-2.17/bfd/elf32-avr32.c 1970-01-01 01:00:00.000000000 +0100
17585 +++ binutils-2.17.atmel.1.3.0/bfd/elf32-avr32.c 2007-09-28 10:30:44.000000000 +0200
17586 @@ -0,0 +1,3881 @@
17587 +/* AVR32-specific support for 32-bit ELF.
17588 + Copyright 2003-2006 Atmel Corporation.
17589 +
17590 + Written by Haavard Skinnemoen, Atmel Norway, <hskinnemoen@atmel.com>
17591 +
17592 + This file is part of BFD, the Binary File Descriptor library.
17593 +
17594 + This program is free software; you can redistribute it and/or modify
17595 + it under the terms of the GNU General Public License as published by
17596 + the Free Software Foundation; either version 2 of the License, or
17597 + (at your option) any later version.
17598 +
17599 + This program is distributed in the hope that it will be useful,
17600 + but WITHOUT ANY WARRANTY; without even the implied warranty of
17601 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17602 + GNU General Public License for more details.
17603 +
17604 + You should have received a copy of the GNU General Public License
17605 + along with this program; if not, write to the Free Software
17606 + Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
17607 +
17608 +#include "bfd.h"
17609 +#include "sysdep.h"
17610 +#include "bfdlink.h"
17611 +#include "libbfd.h"
17612 +#include "elf-bfd.h"
17613 +#include "elf/avr32.h"
17614 +#include "elf32-avr32.h"
17615 +
17616 +#define xDEBUG
17617 +#define xRELAX_DEBUG
17618 +
17619 +#ifdef DEBUG
17620 +# define pr_debug(fmt, args...) fprintf(stderr, fmt, ##args)
17621 +#else
17622 +# define pr_debug(fmt, args...) do { } while (0)
17623 +#endif
17624 +
17625 +#ifdef RELAX_DEBUG
17626 +# define RDBG(fmt, args...) fprintf(stderr, fmt, ##args)
17627 +#else
17628 +# define RDBG(fmt, args...) do { } while (0)
17629 +#endif
17630 +
17631 +/* When things go wrong, we want it to blow up, damnit! */
17632 +#undef BFD_ASSERT
17633 +#undef abort
17634 +#define BFD_ASSERT(expr) \
17635 + do \
17636 + { \
17637 + if (!(expr)) \
17638 + { \
17639 + bfd_assert(__FILE__, __LINE__); \
17640 + abort(); \
17641 + } \
17642 + } \
17643 + while (0)
17644 +
17645 +/* The name of the dynamic interpreter. This is put in the .interp section. */
17646 +#define ELF_DYNAMIC_INTERPRETER "/lib/ld.so.1"
17647 +
17648 +#define AVR32_GOT_HEADER_SIZE 8
17649 +#define AVR32_FUNCTION_STUB_SIZE 8
17650 +
17651 +#define ELF_R_INFO(x, y) ELF32_R_INFO(x, y)
17652 +#define ELF_R_TYPE(x) ELF32_R_TYPE(x)
17653 +#define ELF_R_SYM(x) ELF32_R_SYM(x)
17654 +
17655 +#define NOP_OPCODE 0xd703
17656 +
17657 +\f
17658 +/* Mapping between BFD relocations and ELF relocations */
17659 +
17660 +static reloc_howto_type *
17661 +bfd_elf32_bfd_reloc_type_lookup(bfd *abfd, bfd_reloc_code_real_type code);
17662 +static void
17663 +avr32_info_to_howto (bfd *abfd, arelent *cache_ptr, Elf_Internal_Rela *dst);
17664 +
17665 +/* Generic HOWTO */
17666 +#define GENH(name, align, size, bitsize, pcrel, bitpos, complain, mask) \
17667 + HOWTO(name, align, size, bitsize, pcrel, bitpos, \
17668 + complain_overflow_##complain, bfd_elf_generic_reloc, #name, \
17669 + FALSE, 0, mask, pcrel)
17670 +
17671 +static reloc_howto_type elf_avr32_howto_table[] = {
17672 + /* NAME ALN SZ BSZ PCREL BP COMPLAIN MASK */
17673 + GENH(R_AVR32_NONE, 0, 0, 0, FALSE, 0, dont, 0x00000000),
17674 +
17675 + GENH(R_AVR32_32, 0, 2, 32, FALSE, 0, dont, 0xffffffff),
17676 + GENH(R_AVR32_16, 0, 1, 16, FALSE, 0, bitfield, 0x0000ffff),
17677 + GENH(R_AVR32_8, 0, 0, 8, FALSE, 0, bitfield, 0x000000ff),
17678 + GENH(R_AVR32_32_PCREL, 0, 2, 32, TRUE, 0, signed, 0xffffffff),
17679 + GENH(R_AVR32_16_PCREL, 0, 1, 16, TRUE, 0, signed, 0x0000ffff),
17680 + GENH(R_AVR32_8_PCREL, 0, 0, 8, TRUE, 0, signed, 0x000000ff),
17681 +
17682 + /* Difference between two symbol (sym2 - sym1). The reloc encodes
17683 + the value of sym1. The field contains the difference before any
17684 + relaxing is done. */
17685 + GENH(R_AVR32_DIFF32, 0, 2, 32, FALSE, 0, dont, 0xffffffff),
17686 + GENH(R_AVR32_DIFF16, 0, 1, 16, FALSE, 0, signed, 0x0000ffff),
17687 + GENH(R_AVR32_DIFF8, 0, 0, 8, FALSE, 0, signed, 0x000000ff),
17688 +
17689 + GENH(R_AVR32_GOT32, 0, 2, 32, FALSE, 0, signed, 0xffffffff),
17690 + GENH(R_AVR32_GOT16, 0, 1, 16, FALSE, 0, signed, 0x0000ffff),
17691 + GENH(R_AVR32_GOT8, 0, 0, 8, FALSE, 0, signed, 0x000000ff),
17692 +
17693 + GENH(R_AVR32_21S, 0, 2, 21, FALSE, 0, signed, 0x1e10ffff),
17694 + GENH(R_AVR32_16U, 0, 2, 16, FALSE, 0, unsigned, 0x0000ffff),
17695 + GENH(R_AVR32_16S, 0, 2, 16, FALSE, 0, signed, 0x0000ffff),
17696 + GENH(R_AVR32_8S, 0, 1, 8, FALSE, 4, signed, 0x00000ff0),
17697 + GENH(R_AVR32_8S_EXT, 0, 2, 8, FALSE, 0, signed, 0x000000ff),
17698 +
17699 + GENH(R_AVR32_22H_PCREL, 1, 2, 21, TRUE, 0, signed, 0x1e10ffff),
17700 + GENH(R_AVR32_18W_PCREL, 2, 2, 16, TRUE, 0, signed, 0x0000ffff),
17701 + GENH(R_AVR32_16B_PCREL, 0, 2, 16, TRUE, 0, signed, 0x0000ffff),
17702 + GENH(R_AVR32_16N_PCREL, 0, 2, 16, TRUE, 0, signed, 0x0000ffff),
17703 + GENH(R_AVR32_14UW_PCREL, 2, 2, 12, TRUE, 0, unsigned, 0x0000f0ff),
17704 + GENH(R_AVR32_11H_PCREL, 1, 1, 10, TRUE, 4, signed, 0x00000ff3),
17705 + GENH(R_AVR32_10UW_PCREL, 2, 2, 8, TRUE, 0, unsigned, 0x000000ff),
17706 + GENH(R_AVR32_9H_PCREL, 1, 1, 8, TRUE, 4, signed, 0x00000ff0),
17707 + GENH(R_AVR32_9UW_PCREL, 2, 1, 7, TRUE, 4, unsigned, 0x000007f0),
17708 +
17709 + GENH(R_AVR32_HI16, 16, 2, 16, FALSE, 0, dont, 0x0000ffff),
17710 + GENH(R_AVR32_LO16, 0, 2, 16, FALSE, 0, dont, 0x0000ffff),
17711 +
17712 + GENH(R_AVR32_GOTPC, 0, 2, 32, FALSE, 0, dont, 0xffffffff),
17713 + GENH(R_AVR32_GOTCALL, 2, 2, 21, FALSE, 0, signed, 0x1e10ffff),
17714 + GENH(R_AVR32_LDA_GOT, 2, 2, 21, FALSE, 0, signed, 0x1e10ffff),
17715 + GENH(R_AVR32_GOT21S, 0, 2, 21, FALSE, 0, signed, 0x1e10ffff),
17716 + GENH(R_AVR32_GOT18SW, 2, 2, 16, FALSE, 0, signed, 0x0000ffff),
17717 + GENH(R_AVR32_GOT16S, 0, 2, 16, FALSE, 0, signed, 0x0000ffff),
17718 + GENH(R_AVR32_GOT7UW, 2, 1, 5, FALSE, 4, unsigned, 0x000001f0),
17719 +
17720 + GENH(R_AVR32_32_CPENT, 0, 2, 32, FALSE, 0, dont, 0xffffffff),
17721 + GENH(R_AVR32_CPCALL, 2, 2, 16, TRUE, 0, signed, 0x0000ffff),
17722 + GENH(R_AVR32_16_CP, 0, 2, 16, TRUE, 0, signed, 0x0000ffff),
17723 + GENH(R_AVR32_9W_CP, 2, 1, 7, TRUE, 4, unsigned, 0x000007f0),
17724 +
17725 + GENH(R_AVR32_RELATIVE, 0, 2, 32, FALSE, 0, signed, 0xffffffff),
17726 + GENH(R_AVR32_GLOB_DAT, 0, 2, 32, FALSE, 0, dont, 0xffffffff),
17727 + GENH(R_AVR32_JMP_SLOT, 0, 2, 32, FALSE, 0, dont, 0xffffffff),
17728 +
17729 + GENH(R_AVR32_ALIGN, 0, 1, 0, FALSE, 0, unsigned, 0x00000000),
17730 +};
17731 +
17732 +struct elf_reloc_map
17733 +{
17734 + bfd_reloc_code_real_type bfd_reloc_val;
17735 + unsigned char elf_reloc_val;
17736 +};
17737 +
17738 +static const struct elf_reloc_map avr32_reloc_map[] =
17739 +{
17740 + { BFD_RELOC_NONE, R_AVR32_NONE },
17741 +
17742 + { BFD_RELOC_32, R_AVR32_32 },
17743 + { BFD_RELOC_16, R_AVR32_16 },
17744 + { BFD_RELOC_8, R_AVR32_8 },
17745 + { BFD_RELOC_32_PCREL, R_AVR32_32_PCREL },
17746 + { BFD_RELOC_16_PCREL, R_AVR32_16_PCREL },
17747 + { BFD_RELOC_8_PCREL, R_AVR32_8_PCREL },
17748 + { BFD_RELOC_AVR32_DIFF32, R_AVR32_DIFF32 },
17749 + { BFD_RELOC_AVR32_DIFF16, R_AVR32_DIFF16 },
17750 + { BFD_RELOC_AVR32_DIFF8, R_AVR32_DIFF8 },
17751 + { BFD_RELOC_AVR32_GOT32, R_AVR32_GOT32 },
17752 + { BFD_RELOC_AVR32_GOT16, R_AVR32_GOT16 },
17753 + { BFD_RELOC_AVR32_GOT8, R_AVR32_GOT8 },
17754 +
17755 + { BFD_RELOC_AVR32_21S, R_AVR32_21S },
17756 + { BFD_RELOC_AVR32_16U, R_AVR32_16U },
17757 + { BFD_RELOC_AVR32_16S, R_AVR32_16S },
17758 + { BFD_RELOC_AVR32_SUB5, R_AVR32_16S },
17759 + { BFD_RELOC_AVR32_8S_EXT, R_AVR32_8S_EXT },
17760 + { BFD_RELOC_AVR32_8S, R_AVR32_8S },
17761 +
17762 + { BFD_RELOC_AVR32_22H_PCREL, R_AVR32_22H_PCREL },
17763 + { BFD_RELOC_AVR32_18W_PCREL, R_AVR32_18W_PCREL },
17764 + { BFD_RELOC_AVR32_16B_PCREL, R_AVR32_16B_PCREL },
17765 + { BFD_RELOC_AVR32_16N_PCREL, R_AVR32_16N_PCREL },
17766 + { BFD_RELOC_AVR32_11H_PCREL, R_AVR32_11H_PCREL },
17767 + { BFD_RELOC_AVR32_10UW_PCREL, R_AVR32_10UW_PCREL },
17768 + { BFD_RELOC_AVR32_9H_PCREL, R_AVR32_9H_PCREL },
17769 + { BFD_RELOC_AVR32_9UW_PCREL, R_AVR32_9UW_PCREL },
17770 +
17771 + { BFD_RELOC_HI16, R_AVR32_HI16 },
17772 + { BFD_RELOC_LO16, R_AVR32_LO16 },
17773 +
17774 + { BFD_RELOC_AVR32_GOTPC, R_AVR32_GOTPC },
17775 + { BFD_RELOC_AVR32_GOTCALL, R_AVR32_GOTCALL },
17776 + { BFD_RELOC_AVR32_LDA_GOT, R_AVR32_LDA_GOT },
17777 + { BFD_RELOC_AVR32_GOT21S, R_AVR32_GOT21S },
17778 + { BFD_RELOC_AVR32_GOT18SW, R_AVR32_GOT18SW },
17779 + { BFD_RELOC_AVR32_GOT16S, R_AVR32_GOT16S },
17780 + /* GOT7UW should never be generated by the assembler */
17781 +
17782 + { BFD_RELOC_AVR32_32_CPENT, R_AVR32_32_CPENT },
17783 + { BFD_RELOC_AVR32_CPCALL, R_AVR32_CPCALL },
17784 + { BFD_RELOC_AVR32_16_CP, R_AVR32_16_CP },
17785 + { BFD_RELOC_AVR32_9W_CP, R_AVR32_9W_CP },
17786 +
17787 + { BFD_RELOC_AVR32_ALIGN, R_AVR32_ALIGN },
17788 +};
17789 +
17790 +static reloc_howto_type *
17791 +bfd_elf32_bfd_reloc_type_lookup (bfd *abfd ATTRIBUTE_UNUSED,
17792 + bfd_reloc_code_real_type code)
17793 +{
17794 + unsigned int i;
17795 +
17796 + for (i = 0; i < sizeof(avr32_reloc_map) / sizeof(struct elf_reloc_map); i++)
17797 + {
17798 + if (avr32_reloc_map[i].bfd_reloc_val == code)
17799 + return &elf_avr32_howto_table[avr32_reloc_map[i].elf_reloc_val];
17800 + }
17801 +
17802 + return NULL;
17803 +}
17804 +
17805 +static void
17806 +avr32_info_to_howto (bfd *abfd ATTRIBUTE_UNUSED,
17807 + arelent *cache_ptr,
17808 + Elf_Internal_Rela *dst)
17809 +{
17810 + unsigned int r_type;
17811 +
17812 + r_type = ELF32_R_TYPE (dst->r_info);
17813 + BFD_ASSERT (r_type < (unsigned int) R_AVR32_max);
17814 + cache_ptr->howto = &elf_avr32_howto_table[r_type];
17815 +}
17816 +
17817 +\f
17818 +/* AVR32 ELF linker hash table and associated hash entries. */
17819 +
17820 +static struct bfd_hash_entry *
17821 +avr32_elf_link_hash_newfunc(struct bfd_hash_entry *entry,
17822 + struct bfd_hash_table *table,
17823 + const char *string);
17824 +static void
17825 +avr32_elf_copy_indirect_symbol(struct bfd_link_info *info,
17826 + struct elf_link_hash_entry *dir,
17827 + struct elf_link_hash_entry *ind);
17828 +static struct bfd_link_hash_table *
17829 +avr32_elf_link_hash_table_create(bfd *abfd);
17830 +
17831 +/*
17832 + Try to limit memory usage to something reasonable when sorting the
17833 + GOT. If we ever get more than this many references to the same
17834 + symbol, we may need to do something special.
17835 +*/
17836 +#define MAX_NR_GOT_HOLES 8192
17837 +
17838 +/*
17839 + AVR32 GOT entry. We need to keep track of refcounts and offsets
17840 + simultaneously, since we need the offsets during relaxation, and we
17841 + also want to be able to drop GOT entries during relaxation. In
17842 + addition to this, we want to keep the list of GOT entries sorted so
17843 + that we can keep the most-used entries at the lowest offsets.
17844 +*/
17845 +struct got_entry
17846 +{
17847 + struct got_entry *next;
17848 + struct got_entry **pprev;
17849 + int refcount;
17850 + bfd_signed_vma offset;
17851 +};
17852 +
17853 +struct elf_avr32_link_hash_entry
17854 +{
17855 + struct elf_link_hash_entry root;
17856 +
17857 + /* Number of runtime relocations against this symbol. */
17858 + unsigned int possibly_dynamic_relocs;
17859 +
17860 + /* If there are anything but R_AVR32_GOT18 relocations against this
17861 + symbol, it means that someone may be taking the address of the
17862 + function, and we should therefore not create a stub. */
17863 + bfd_boolean no_fn_stub;
17864 +
17865 + /* If there is a R_AVR32_32 relocation in a read-only section
17866 + against this symbol, we could be in trouble. If we're linking a
17867 + shared library or this symbol is defined in one, it means we must
17868 + emit a run-time reloc for it and that's not allowed in read-only
17869 + sections. */
17870 + asection *readonly_reloc_sec;
17871 + bfd_vma readonly_reloc_offset;
17872 +
17873 + /* Record which frag (if any) contains the symbol. This is used
17874 + during relaxation in order to avoid having to update all symbols
17875 + whenever we move something. For local symbols, this information
17876 + is in the local_sym_frag member of struct elf_obj_tdata. */
17877 + struct fragment *sym_frag;
17878 +};
17879 +#define avr32_elf_hash_entry(ent) ((struct elf_avr32_link_hash_entry *)(ent))
17880 +
17881 +struct elf_avr32_link_hash_table
17882 +{
17883 + struct elf_link_hash_table root;
17884 +
17885 + /* Shortcuts to get to dynamic linker sections. */
17886 + asection *sgot;
17887 + asection *srelgot;
17888 + asection *sstub;
17889 +
17890 + /* We use a variation of Pigeonhole Sort to sort the GOT. After the
17891 + initial refcounts have been determined, we initialize
17892 + nr_got_holes to the highest refcount ever seen and allocate an
17893 + array of nr_got_holes entries for got_hole. Each GOT entry is
17894 + then stored in this array at the index given by its refcount.
17895 +
17896 + When a GOT entry has its refcount decremented during relaxation,
17897 + it is moved to a lower index in the got_hole array.
17898 + */
17899 + struct got_entry **got_hole;
17900 + int nr_got_holes;
17901 +
17902 + /* Dynamic relocations to local symbols. Only used when linking a
17903 + shared library and -Bsymbolic is not given. */
17904 + unsigned int local_dynamic_relocs;
17905 +
17906 + bfd_boolean relocations_analyzed;
17907 + bfd_boolean symbols_adjusted;
17908 + bfd_boolean repeat_pass;
17909 + bfd_boolean direct_data_refs;
17910 + unsigned int relax_iteration;
17911 + unsigned int relax_pass;
17912 +};
17913 +#define avr32_elf_hash_table(p) \
17914 + ((struct elf_avr32_link_hash_table *)((p)->hash))
17915 +
17916 +static struct bfd_hash_entry *
17917 +avr32_elf_link_hash_newfunc(struct bfd_hash_entry *entry,
17918 + struct bfd_hash_table *table,
17919 + const char *string)
17920 +{
17921 + struct elf_avr32_link_hash_entry *ret = avr32_elf_hash_entry(entry);
17922 +
17923 + /* Allocate the structure if it hasn't already been allocated by a
17924 + subclass */
17925 + if (ret == NULL)
17926 + ret = (struct elf_avr32_link_hash_entry *)
17927 + bfd_hash_allocate(table, sizeof(struct elf_avr32_link_hash_entry));
17928 +
17929 + if (ret == NULL)
17930 + return NULL;
17931 +
17932 + memset(ret, 0, sizeof(struct elf_avr32_link_hash_entry));
17933 +
17934 + /* Give the superclass a chance */
17935 + ret = (struct elf_avr32_link_hash_entry *)
17936 + _bfd_elf_link_hash_newfunc((struct bfd_hash_entry *)ret, table, string);
17937 +
17938 + return (struct bfd_hash_entry *)ret;
17939 +}
17940 +
17941 +/* Copy data from an indirect symbol to its direct symbol, hiding the
17942 + old indirect symbol. Process additional relocation information.
17943 + Also called for weakdefs, in which case we just let
17944 + _bfd_elf_link_hash_copy_indirect copy the flags for us. */
17945 +
17946 +static void
17947 +avr32_elf_copy_indirect_symbol(struct bfd_link_info *info,
17948 + struct elf_link_hash_entry *dir,
17949 + struct elf_link_hash_entry *ind)
17950 +{
17951 + struct elf_avr32_link_hash_entry *edir, *eind;
17952 +
17953 + _bfd_elf_link_hash_copy_indirect (info, dir, ind);
17954 +
17955 + if (ind->root.type != bfd_link_hash_indirect)
17956 + return;
17957 +
17958 + edir = (struct elf_avr32_link_hash_entry *)dir;
17959 + eind = (struct elf_avr32_link_hash_entry *)ind;
17960 +
17961 + edir->possibly_dynamic_relocs += eind->possibly_dynamic_relocs;
17962 + edir->no_fn_stub = edir->no_fn_stub || eind->no_fn_stub;
17963 +}
17964 +
17965 +static struct bfd_link_hash_table *
17966 +avr32_elf_link_hash_table_create(bfd *abfd)
17967 +{
17968 + struct elf_avr32_link_hash_table *ret;
17969 +
17970 + ret = bfd_zmalloc(sizeof(*ret));
17971 + if (ret == NULL)
17972 + return NULL;
17973 +
17974 + if (! _bfd_elf_link_hash_table_init(&ret->root, abfd,
17975 + avr32_elf_link_hash_newfunc,
17976 + sizeof (struct elf_avr32_link_hash_entry)))
17977 + {
17978 + free(ret);
17979 + return NULL;
17980 + }
17981 +
17982 + /* Prevent the BFD core from creating bogus got_entry pointers */
17983 + ret->root.init_got_refcount.glist = NULL;
17984 + ret->root.init_plt_refcount.glist = NULL;
17985 + ret->root.init_got_offset.glist = NULL;
17986 + ret->root.init_plt_offset.glist = NULL;
17987 +
17988 + return &ret->root.root;
17989 +}
17990 +
17991 +\f
17992 +/* Initial analysis and creation of dynamic sections and symbols */
17993 +
17994 +static asection *
17995 +create_dynamic_section(bfd *dynobj, const char *name, flagword flags,
17996 + unsigned int align_power);
17997 +static struct elf_link_hash_entry *
17998 +create_dynamic_symbol(bfd *dynobj, struct bfd_link_info *info,
17999 + const char *name, asection *sec,
18000 + bfd_vma offset);
18001 +static bfd_boolean
18002 +avr32_elf_create_got_section (bfd *dynobj, struct bfd_link_info *info);
18003 +static bfd_boolean
18004 +avr32_elf_create_dynamic_sections (bfd *dynobj, struct bfd_link_info *info);
18005 +static bfd_boolean
18006 +avr32_check_relocs (bfd *abfd, struct bfd_link_info *info, asection *sec,
18007 + const Elf_Internal_Rela *relocs);
18008 +static bfd_boolean
18009 +avr32_elf_adjust_dynamic_symbol(struct bfd_link_info *info,
18010 + struct elf_link_hash_entry *h);
18011 +
18012 +static asection *
18013 +create_dynamic_section(bfd *dynobj, const char *name, flagword flags,
18014 + unsigned int align_power)
18015 +{
18016 + asection *sec;
18017 +
18018 + sec = bfd_make_section(dynobj, name);
18019 + if (!sec
18020 + || !bfd_set_section_flags(dynobj, sec, flags)
18021 + || !bfd_set_section_alignment(dynobj, sec, align_power))
18022 + return NULL;
18023 +
18024 + return sec;
18025 +}
18026 +
18027 +static struct elf_link_hash_entry *
18028 +create_dynamic_symbol(bfd *dynobj, struct bfd_link_info *info,
18029 + const char *name, asection *sec,
18030 + bfd_vma offset)
18031 +{
18032 + struct bfd_link_hash_entry *bh = NULL;
18033 + struct elf_link_hash_entry *h;
18034 + const struct elf_backend_data *bed = get_elf_backend_data (dynobj);
18035 +
18036 + if (!(_bfd_generic_link_add_one_symbol
18037 + (info, dynobj, name, BSF_GLOBAL, sec, offset, NULL, FALSE,
18038 + bed->collect, &bh)))
18039 + return NULL;
18040 +
18041 + h = (struct elf_link_hash_entry *)bh;
18042 + h->def_regular = 1;
18043 + h->type = STT_OBJECT;
18044 + h->other = STV_HIDDEN;
18045 +
18046 + return h;
18047 +}
18048 +
18049 +static bfd_boolean
18050 +avr32_elf_create_got_section (bfd *dynobj, struct bfd_link_info *info)
18051 +{
18052 + struct elf_avr32_link_hash_table *htab;
18053 + flagword flags;
18054 + const struct elf_backend_data *bed = get_elf_backend_data (dynobj);
18055 +
18056 + htab = avr32_elf_hash_table(info);
18057 + flags = bed->dynamic_sec_flags;
18058 +
18059 + if (htab->sgot)
18060 + return TRUE;
18061 +
18062 + htab->sgot = create_dynamic_section(dynobj, ".got", flags, 2);
18063 + if (!htab->srelgot)
18064 + htab->srelgot = create_dynamic_section(dynobj, ".rela.got",
18065 + flags | SEC_READONLY, 2);
18066 +
18067 + if (!htab->sgot || !htab->srelgot)
18068 + return FALSE;
18069 +
18070 + htab->root.hgot = create_dynamic_symbol(dynobj, info, "_GLOBAL_OFFSET_TABLE_",
18071 + htab->sgot, 0);
18072 + if (!htab->root.hgot)
18073 + return FALSE;
18074 +
18075 + /* Make room for the GOT header */
18076 + htab->sgot->size += bed->got_header_size;
18077 +
18078 + return TRUE;
18079 +}
18080 +
18081 +/* (1) Create all dynamic (i.e. linker generated) sections that we may
18082 + need during the link */
18083 +
18084 +static bfd_boolean
18085 +avr32_elf_create_dynamic_sections (bfd *dynobj, struct bfd_link_info *info)
18086 +{
18087 + struct elf_avr32_link_hash_table *htab;
18088 + flagword flags;
18089 + const struct elf_backend_data *bed = get_elf_backend_data (dynobj);
18090 +
18091 + pr_debug("(1) create dynamic sections\n");
18092 +
18093 + htab = avr32_elf_hash_table(info);
18094 + flags = bed->dynamic_sec_flags;
18095 +
18096 + if (!avr32_elf_create_got_section (dynobj, info))
18097 + return FALSE;
18098 +
18099 + if (!htab->sstub)
18100 + htab->sstub = create_dynamic_section(dynobj, ".stub",
18101 + flags | SEC_READONLY | SEC_CODE, 2);
18102 +
18103 + if (!htab->sstub)
18104 + return FALSE;
18105 +
18106 + return TRUE;
18107 +}
18108 +
18109 +/* (2) Go through all the relocs and count any potential GOT- or
18110 + PLT-references to each symbol */
18111 +
18112 +static bfd_boolean
18113 +avr32_check_relocs (bfd *abfd, struct bfd_link_info *info, asection *sec,
18114 + const Elf_Internal_Rela *relocs)
18115 +{
18116 + Elf_Internal_Shdr *symtab_hdr;
18117 + struct elf_avr32_link_hash_table *htab;
18118 + struct elf_link_hash_entry **sym_hashes;
18119 + const Elf_Internal_Rela *rel, *rel_end;
18120 + struct got_entry **local_got_ents;
18121 + struct got_entry *got;
18122 + const struct elf_backend_data *bed = get_elf_backend_data (abfd);
18123 + asection *sgot;
18124 + bfd *dynobj;
18125 +
18126 + pr_debug("(2) check relocs for %s:<%s> (size 0x%lx)\n",
18127 + abfd->filename, sec->name, sec->size);
18128 +
18129 + if (info->relocatable)
18130 + return TRUE;
18131 +
18132 + dynobj = elf_hash_table(info)->dynobj;
18133 + symtab_hdr = &elf_tdata(abfd)->symtab_hdr;
18134 + sym_hashes = elf_sym_hashes(abfd);
18135 + htab = avr32_elf_hash_table(info);
18136 + local_got_ents = elf_local_got_ents(abfd);
18137 + sgot = htab->sgot;
18138 +
18139 + rel_end = relocs + sec->reloc_count;
18140 + for (rel = relocs; rel < rel_end; rel++)
18141 + {
18142 + unsigned long r_symndx, r_type;
18143 + struct elf_avr32_link_hash_entry *h;
18144 +
18145 + r_symndx = ELF32_R_SYM(rel->r_info);
18146 + r_type = ELF32_R_TYPE(rel->r_info);
18147 +
18148 + /* Local symbols use local_got_ents, while others store the same
18149 + information in the hash entry */
18150 + if (r_symndx < symtab_hdr->sh_info)
18151 + {
18152 + pr_debug(" (2a) processing local symbol %lu\n", r_symndx);
18153 + h = NULL;
18154 + }
18155 + else
18156 + {
18157 + h = (struct elf_avr32_link_hash_entry *)
18158 + sym_hashes[r_symndx - symtab_hdr->sh_info];
18159 + while (h->root.type == bfd_link_hash_indirect
18160 + || h->root.type == bfd_link_hash_warning)
18161 + h = (struct elf_avr32_link_hash_entry *)h->root.root.u.i.link;
18162 + pr_debug(" (2a) processing symbol %s\n", h->root.root.root.string);
18163 + }
18164 +
18165 + /* Some relocs require special sections to be created. */
18166 + switch (r_type)
18167 + {
18168 + case R_AVR32_GOT32:
18169 + case R_AVR32_GOT16:
18170 + case R_AVR32_GOT8:
18171 + case R_AVR32_GOT21S:
18172 + case R_AVR32_GOT18SW:
18173 + case R_AVR32_GOT16S:
18174 + case R_AVR32_GOT7UW:
18175 + case R_AVR32_LDA_GOT:
18176 + case R_AVR32_GOTCALL:
18177 + if (rel->r_addend)
18178 + {
18179 + if (info->callbacks->reloc_dangerous
18180 + (info, _("Non-zero addend on GOT-relative relocation"),
18181 + abfd, sec, rel->r_offset) == FALSE)
18182 + return FALSE;
18183 + }
18184 + /* fall through */
18185 + case R_AVR32_GOTPC:
18186 + if (dynobj == NULL)
18187 + elf_hash_table(info)->dynobj = dynobj = abfd;
18188 + if (sgot == NULL && !avr32_elf_create_got_section(dynobj, info))
18189 + return FALSE;
18190 + break;
18191 + case R_AVR32_32:
18192 + /* We may need to create .rela.dyn later on. */
18193 + if (dynobj == NULL
18194 + && (info->shared || h != NULL)
18195 + && (sec->flags & SEC_ALLOC))
18196 + elf_hash_table(info)->dynobj = dynobj = abfd;
18197 + break;
18198 + }
18199 +
18200 + if (h != NULL && r_type != R_AVR32_GOT18SW)
18201 + h->no_fn_stub = TRUE;
18202 +
18203 + switch (r_type)
18204 + {
18205 + case R_AVR32_GOT32:
18206 + case R_AVR32_GOT16:
18207 + case R_AVR32_GOT8:
18208 + case R_AVR32_GOT21S:
18209 + case R_AVR32_GOT18SW:
18210 + case R_AVR32_GOT16S:
18211 + case R_AVR32_GOT7UW:
18212 + case R_AVR32_LDA_GOT:
18213 + case R_AVR32_GOTCALL:
18214 + if (h != NULL)
18215 + {
18216 + got = h->root.got.glist;
18217 + if (!got)
18218 + {
18219 + got = bfd_zalloc(abfd, sizeof(struct got_entry));
18220 + if (!got)
18221 + return FALSE;
18222 + h->root.got.glist = got;
18223 + }
18224 + }
18225 + else
18226 + {
18227 + if (!local_got_ents)
18228 + {
18229 + bfd_size_type size;
18230 + bfd_size_type i;
18231 + struct got_entry *tmp_entry;
18232 +
18233 + size = symtab_hdr->sh_info;
18234 + size *= sizeof(struct got_entry *) + sizeof(struct got_entry);
18235 + local_got_ents = bfd_zalloc(abfd, size);
18236 + if (!local_got_ents)
18237 + return FALSE;
18238 +
18239 + elf_local_got_ents(abfd) = local_got_ents;
18240 +
18241 + tmp_entry = (struct got_entry *)(local_got_ents
18242 + + symtab_hdr->sh_info);
18243 + for (i = 0; i < symtab_hdr->sh_info; i++)
18244 + local_got_ents[i] = &tmp_entry[i];
18245 + }
18246 +
18247 + got = local_got_ents[r_symndx];
18248 + }
18249 +
18250 + got->refcount++;
18251 + if (got->refcount > htab->nr_got_holes)
18252 + htab->nr_got_holes = got->refcount;
18253 + break;
18254 +
18255 + case R_AVR32_32:
18256 + if ((info->shared || h != NULL)
18257 + && (sec->flags & SEC_ALLOC))
18258 + {
18259 + if (htab->srelgot == NULL)
18260 + {
18261 + htab->srelgot = create_dynamic_section(dynobj, ".rela.got",
18262 + bed->dynamic_sec_flags
18263 + | SEC_READONLY, 2);
18264 + if (htab->srelgot == NULL)
18265 + return FALSE;
18266 + }
18267 +
18268 + if (sec->flags & SEC_READONLY
18269 + && !h->readonly_reloc_sec)
18270 + {
18271 + h->readonly_reloc_sec = sec;
18272 + h->readonly_reloc_offset = rel->r_offset;
18273 + }
18274 +
18275 + if (h != NULL)
18276 + {
18277 + pr_debug("Non-GOT reference to symbol %s\n",
18278 + h->root.root.root.string);
18279 + h->possibly_dynamic_relocs++;
18280 + }
18281 + else
18282 + {
18283 + pr_debug("Non-GOT reference to local symbol %lu\n",
18284 + r_symndx);
18285 + htab->local_dynamic_relocs++;
18286 + }
18287 + }
18288 +
18289 + break;
18290 +
18291 + /* TODO: GNU_VTINHERIT and GNU_VTENTRY */
18292 + }
18293 + }
18294 +
18295 + return TRUE;
18296 +}
18297 +
18298 +/* (3) Adjust a symbol defined by a dynamic object and referenced by a
18299 + regular object. The current definition is in some section of the
18300 + dynamic object, but we're not including those sections. We have to
18301 + change the definition to something the rest of the link can
18302 + understand. */
18303 +
18304 +static bfd_boolean
18305 +avr32_elf_adjust_dynamic_symbol(struct bfd_link_info *info,
18306 + struct elf_link_hash_entry *h)
18307 +{
18308 + struct elf_avr32_link_hash_table *htab;
18309 + struct elf_avr32_link_hash_entry *havr;
18310 + bfd *dynobj;
18311 +
18312 + pr_debug("(3) adjust dynamic symbol %s\n", h->root.root.string);
18313 +
18314 + htab = avr32_elf_hash_table(info);
18315 + havr = (struct elf_avr32_link_hash_entry *)h;
18316 + dynobj = elf_hash_table(info)->dynobj;
18317 +
18318 + /* Make sure we know what is going on here. */
18319 + BFD_ASSERT (dynobj != NULL
18320 + && (h->u.weakdef != NULL
18321 + || (h->def_dynamic
18322 + && h->ref_regular
18323 + && !h->def_regular)));
18324 +
18325 + /* We don't want dynamic relocations in read-only sections. */
18326 + if (havr->readonly_reloc_sec)
18327 + {
18328 + if (info->callbacks->reloc_dangerous
18329 + (info, _("dynamic relocation in read-only section"),
18330 + havr->readonly_reloc_sec->owner, havr->readonly_reloc_sec,
18331 + havr->readonly_reloc_offset) == FALSE)
18332 + return FALSE;
18333 + }
18334 +
18335 + /* If this is a function, create a stub if possible and set the
18336 + symbol to the stub location. */
18337 + if (0 && !havr->no_fn_stub)
18338 + {
18339 + if (!h->def_regular)
18340 + {
18341 + asection *s = htab->sstub;
18342 +
18343 + BFD_ASSERT(s != NULL);
18344 +
18345 + h->root.u.def.section = s;
18346 + h->root.u.def.value = s->size;
18347 + h->plt.offset = s->size;
18348 + s->size += AVR32_FUNCTION_STUB_SIZE;
18349 +
18350 + return TRUE;
18351 + }
18352 + }
18353 + else if (h->type == STT_FUNC)
18354 + {
18355 + /* This will set the entry for this symbol in the GOT to 0, and
18356 + the dynamic linker will take care of this. */
18357 + h->root.u.def.value = 0;
18358 + return TRUE;
18359 + }
18360 +
18361 + /* If this is a weak symbol, and there is a real definition, the
18362 + processor independent code will have arranged for us to see the
18363 + real definition first, and we can just use the same value. */
18364 + if (h->u.weakdef != NULL)
18365 + {
18366 + BFD_ASSERT(h->u.weakdef->root.type == bfd_link_hash_defined
18367 + || h->u.weakdef->root.type == bfd_link_hash_defweak);
18368 + h->root.u.def.section = h->u.weakdef->root.u.def.section;
18369 + h->root.u.def.value = h->u.weakdef->root.u.def.value;
18370 + return TRUE;
18371 + }
18372 +
18373 + /* This is a reference to a symbol defined by a dynamic object which
18374 + is not a function. */
18375 +
18376 + return TRUE;
18377 +}
18378 +
18379 +\f
18380 +/* Garbage-collection of unused sections */
18381 +
18382 +static asection *
18383 +avr32_elf_gc_mark_hook(asection *sec,
18384 + struct bfd_link_info *info ATTRIBUTE_UNUSED,
18385 + Elf_Internal_Rela *rel,
18386 + struct elf_link_hash_entry *h,
18387 + Elf_Internal_Sym *sym)
18388 +{
18389 + if (h)
18390 + {
18391 + switch (ELF32_R_TYPE(rel->r_info))
18392 + {
18393 + /* TODO: VTINHERIT/VTENTRY */
18394 + default:
18395 + switch (h->root.type)
18396 + {
18397 + case bfd_link_hash_defined:
18398 + case bfd_link_hash_defweak:
18399 + return h->root.u.def.section;
18400 +
18401 + case bfd_link_hash_common:
18402 + return h->root.u.c.p->section;
18403 +
18404 + default:
18405 + break;
18406 + }
18407 + }
18408 + }
18409 + else
18410 + return bfd_section_from_elf_index(sec->owner, sym->st_shndx);
18411 +
18412 + return NULL;
18413 +}
18414 +
18415 +/* Update the GOT entry reference counts for the section being removed. */
18416 +static bfd_boolean
18417 +avr32_elf_gc_sweep_hook(bfd *abfd,
18418 + struct bfd_link_info *info ATTRIBUTE_UNUSED,
18419 + asection *sec,
18420 + const Elf_Internal_Rela *relocs)
18421 +{
18422 + Elf_Internal_Shdr *symtab_hdr;
18423 + struct elf_avr32_link_hash_entry **sym_hashes;
18424 + struct got_entry **local_got_ents;
18425 + const Elf_Internal_Rela *rel, *relend;
18426 +
18427 + if (!(sec->flags & SEC_ALLOC))
18428 + return TRUE;
18429 +
18430 + symtab_hdr = &elf_tdata(abfd)->symtab_hdr;
18431 + sym_hashes = (struct elf_avr32_link_hash_entry **)elf_sym_hashes(abfd);
18432 + local_got_ents = elf_local_got_ents(abfd);
18433 +
18434 + relend = relocs + sec->reloc_count;
18435 + for (rel = relocs; rel < relend; rel++)
18436 + {
18437 + unsigned long r_symndx;
18438 + unsigned int r_type;
18439 + struct elf_avr32_link_hash_entry *h = NULL;
18440 +
18441 + r_symndx = ELF32_R_SYM(rel->r_info);
18442 + if (r_symndx >= symtab_hdr->sh_info)
18443 + {
18444 + h = sym_hashes[r_symndx - symtab_hdr->sh_info];
18445 + while (h->root.root.type == bfd_link_hash_indirect
18446 + || h->root.root.type == bfd_link_hash_warning)
18447 + h = (struct elf_avr32_link_hash_entry *)h->root.root.u.i.link;
18448 + }
18449 +
18450 + r_type = ELF32_R_TYPE(rel->r_info);
18451 +
18452 + switch (r_type)
18453 + {
18454 + case R_AVR32_GOT32:
18455 + case R_AVR32_GOT16:
18456 + case R_AVR32_GOT8:
18457 + case R_AVR32_GOT21S:
18458 + case R_AVR32_GOT18SW:
18459 + case R_AVR32_GOT16S:
18460 + case R_AVR32_GOT7UW:
18461 + case R_AVR32_LDA_GOT:
18462 + case R_AVR32_GOTCALL:
18463 + if (h)
18464 + h->root.got.glist->refcount--;
18465 + else
18466 + local_got_ents[r_symndx]->refcount--;
18467 + break;
18468 +
18469 + case R_AVR32_32:
18470 + if (info->shared || h)
18471 + {
18472 + if (h)
18473 + h->possibly_dynamic_relocs--;
18474 + else
18475 + avr32_elf_hash_table(info)->local_dynamic_relocs--;
18476 + }
18477 +
18478 + default:
18479 + break;
18480 + }
18481 + }
18482 +
18483 + return TRUE;
18484 +}
18485 +\f
18486 +/* Sizing and refcounting of dynamic sections */
18487 +
18488 +static void
18489 +insert_got_entry(struct elf_avr32_link_hash_table *htab, struct got_entry *got);
18490 +static void
18491 +unref_got_entry(struct elf_avr32_link_hash_table *htab, struct got_entry *got);
18492 +static void
18493 +ref_got_entry(struct elf_avr32_link_hash_table *htab, struct got_entry *got);
18494 +static bfd_boolean
18495 +assign_got_offsets(struct elf_avr32_link_hash_table *htab);
18496 +static bfd_boolean
18497 +allocate_dynrelocs(struct elf_link_hash_entry *h, void *_info);
18498 +static bfd_boolean
18499 +avr32_elf_size_dynamic_sections (bfd *output_bfd,
18500 + struct bfd_link_info *info);
18501 +
18502 +static void
18503 +insert_got_entry(struct elf_avr32_link_hash_table *htab, struct got_entry *got)
18504 +{
18505 + /* TODO: Support got_refcount > htab->nr_got_holes by using a
18506 + different sort algorithm for those. */
18507 + BFD_ASSERT(got->refcount <= htab->nr_got_holes);
18508 +
18509 + got->pprev = &htab->got_hole[got->refcount];
18510 + got->next = htab->got_hole[got->refcount];
18511 + if (got->next)
18512 + got->next->pprev = &got->next;
18513 +
18514 + htab->got_hole[got->refcount] = got;
18515 +}
18516 +
18517 +/* Decrement the refcount of a GOT entry and update its position in
18518 + the pigeonhole array. */
18519 +static void
18520 +unref_got_entry(struct elf_avr32_link_hash_table *htab, struct got_entry *got)
18521 +{
18522 + BFD_ASSERT(got->refcount <= htab->nr_got_holes);
18523 + BFD_ASSERT(got->refcount > 0);
18524 +
18525 + if (got->next)
18526 + got->next->pprev = got->pprev;
18527 +
18528 + *(got->pprev) = got->next;
18529 + got->refcount--;
18530 + insert_got_entry(htab, got);
18531 +}
18532 +
18533 +static void
18534 +ref_got_entry(struct elf_avr32_link_hash_table *htab, struct got_entry *got)
18535 +{
18536 + if (got->next)
18537 + got->next->pprev = got->pprev;
18538 +
18539 + *(got->pprev) = got->next;
18540 + got->refcount++;
18541 + insert_got_entry(htab, got);
18542 +
18543 + BFD_ASSERT(got->refcount > 0);
18544 + BFD_ASSERT(got->refcount <= htab->nr_got_holes);
18545 +}
18546 +
18547 +/* Assign offsets to all GOT entries we intend to keep. The entries
18548 + that are referenced most often are placed at low offsets so that we
18549 + can use compact instructions as much as possible.
18550 +
18551 + Returns TRUE if any offsets or the total size of the GOT changed. */
18552 +
18553 +static bfd_boolean
18554 +assign_got_offsets(struct elf_avr32_link_hash_table *htab)
18555 +{
18556 + struct got_entry *got;
18557 + bfd_size_type got_size = 0;
18558 + bfd_boolean changed = FALSE;
18559 + bfd_signed_vma offset;
18560 + int i;
18561 +
18562 + /* The GOT header provides the address of the DYNAMIC segment, so
18563 + we need that even if the GOT is otherwise empty. */
18564 + if (htab->root.dynamic_sections_created)
18565 + got_size = AVR32_GOT_HEADER_SIZE;
18566 +
18567 + for (i = htab->nr_got_holes; i > 0; i--)
18568 + {
18569 + got = htab->got_hole[i];
18570 + while (got)
18571 + {
18572 + if (got->refcount > 0)
18573 + {
18574 + offset = got_size;
18575 + if (got->offset != offset)
18576 + {
18577 + RDBG("GOT offset changed: %ld -> %ld\n",
18578 + got->offset, offset);
18579 + changed = TRUE;
18580 + }
18581 + got->offset = offset;
18582 + got_size += 4;
18583 + }
18584 + got = got->next;
18585 + }
18586 + }
18587 +
18588 + if (htab->sgot->size != got_size)
18589 + {
18590 + RDBG("GOT size changed: %lu -> %lu\n", htab->sgot->size,
18591 + got_size);
18592 + changed = TRUE;
18593 + }
18594 + htab->sgot->size = got_size;
18595 +
18596 + RDBG("assign_got_offsets: total size %lu (%s)\n",
18597 + got_size, changed ? "changed" : "no change");
18598 +
18599 + return changed;
18600 +}
18601 +
18602 +static bfd_boolean
18603 +allocate_dynrelocs(struct elf_link_hash_entry *h, void *_info)
18604 +{
18605 + struct bfd_link_info *info = _info;
18606 + struct elf_avr32_link_hash_table *htab;
18607 + struct elf_avr32_link_hash_entry *havr;
18608 + struct got_entry *got;
18609 +
18610 + pr_debug(" (4b) allocate_dynrelocs: %s\n", h->root.root.string);
18611 +
18612 + if (h->root.type == bfd_link_hash_indirect)
18613 + return TRUE;
18614 +
18615 + if (h->root.type == bfd_link_hash_warning)
18616 + /* When warning symbols are created, they **replace** the "real"
18617 + entry in the hash table, thus we never get to see the real
18618 + symbol in a hash traversal. So look at it now. */
18619 + h = (struct elf_link_hash_entry *) h->root.u.i.link;
18620 +
18621 + htab = avr32_elf_hash_table(info);
18622 + havr = (struct elf_avr32_link_hash_entry *)h;
18623 +
18624 + got = h->got.glist;
18625 +
18626 + /* If got is NULL, the symbol is never referenced through the GOT */
18627 + if (got && got->refcount > 0)
18628 + {
18629 + insert_got_entry(htab, got);
18630 +
18631 + /* Shared libraries need relocs for all GOT entries unless the
18632 + symbol is forced local or -Bsymbolic is used. Others need
18633 + relocs for everything that is not guaranteed to be defined in
18634 + a regular object. */
18635 + if ((info->shared
18636 + && !info->symbolic
18637 + && h->dynindx != -1)
18638 + || (htab->root.dynamic_sections_created
18639 + && h->def_dynamic
18640 + && !h->def_regular))
18641 + htab->srelgot->size += sizeof(Elf32_External_Rela);
18642 + }
18643 +
18644 + if (havr->possibly_dynamic_relocs
18645 + && (info->shared
18646 + || (elf_hash_table(info)->dynamic_sections_created
18647 + && h->def_dynamic
18648 + && !h->def_regular)))
18649 + {
18650 + pr_debug("Allocating %d dynamic reloc against symbol %s...\n",
18651 + havr->possibly_dynamic_relocs, h->root.root.string);
18652 + htab->srelgot->size += (havr->possibly_dynamic_relocs
18653 + * sizeof(Elf32_External_Rela));
18654 + }
18655 +
18656 + return TRUE;
18657 +}
18658 +
18659 +/* (4) Calculate the sizes of the linker-generated sections and
18660 + allocate memory for them. */
18661 +
18662 +static bfd_boolean
18663 +avr32_elf_size_dynamic_sections (bfd *output_bfd,
18664 + struct bfd_link_info *info)
18665 +{
18666 + struct elf_avr32_link_hash_table *htab;
18667 + bfd *dynobj;
18668 + asection *s;
18669 + bfd *ibfd;
18670 + bfd_boolean relocs;
18671 +
18672 + pr_debug("(4) size dynamic sections\n");
18673 +
18674 + htab = avr32_elf_hash_table(info);
18675 + dynobj = htab->root.dynobj;
18676 + BFD_ASSERT(dynobj != NULL);
18677 +
18678 + if (htab->root.dynamic_sections_created)
18679 + {
18680 + /* Initialize the contents of the .interp section to the name of
18681 + the dynamic loader */
18682 + if (info->executable)
18683 + {
18684 + s = bfd_get_section_by_name(dynobj, ".interp");
18685 + BFD_ASSERT(s != NULL);
18686 + s->size = sizeof(ELF_DYNAMIC_INTERPRETER);
18687 + s->contents = (unsigned char *)ELF_DYNAMIC_INTERPRETER;
18688 + }
18689 + }
18690 +
18691 + if (htab->nr_got_holes > 0)
18692 + {
18693 + /* Allocate holes for the pigeonhole sort algorithm */
18694 + pr_debug("Highest GOT refcount: %d\n", htab->nr_got_holes);
18695 + if (htab->nr_got_holes >= MAX_NR_GOT_HOLES)
18696 + {
18697 + /* TODO: Do something clever (different sorting algorithm) */
18698 + _bfd_error_handler(_("Highest refcount %d too high (max %d)\n"),
18699 + htab->nr_got_holes, MAX_NR_GOT_HOLES);
18700 + bfd_set_error(bfd_error_no_memory);
18701 + return FALSE;
18702 + }
18703 + htab->got_hole = bfd_zalloc(output_bfd,
18704 + sizeof(struct got_entry *)
18705 + * (htab->nr_got_holes + 1));
18706 + if (!htab->got_hole)
18707 + return FALSE;
18708 +
18709 + /* Set up .got offsets for local syms. */
18710 + for (ibfd = info->input_bfds; ibfd != NULL; ibfd = ibfd->link_next)
18711 + {
18712 + struct got_entry **local_got;
18713 + struct got_entry **end_local_got;
18714 + Elf_Internal_Shdr *symtab_hdr;
18715 + bfd_size_type locsymcount;
18716 +
18717 + pr_debug(" (4a) processing file %s...\n", ibfd->filename);
18718 +
18719 + BFD_ASSERT(bfd_get_flavour(ibfd) == bfd_target_elf_flavour);
18720 +
18721 + local_got = elf_local_got_ents(ibfd);
18722 + if (!local_got)
18723 + continue;
18724 +
18725 + symtab_hdr = &elf_tdata(ibfd)->symtab_hdr;
18726 + locsymcount = symtab_hdr->sh_info;
18727 + end_local_got = local_got + locsymcount;
18728 +
18729 + for (; local_got < end_local_got; ++local_got)
18730 + insert_got_entry(htab, *local_got);
18731 + }
18732 + }
18733 +
18734 + /* Allocate global sym .got entries and space for global sym
18735 + dynamic relocs */
18736 + elf_link_hash_traverse(&htab->root, allocate_dynrelocs, info);
18737 +
18738 + /* Now that we have sorted the GOT entries, we are ready to
18739 + assign offsets and determine the initial size of the GOT. */
18740 + if (htab->sgot)
18741 + assign_got_offsets(htab);
18742 +
18743 + /* Allocate space for local sym dynamic relocs */
18744 + BFD_ASSERT(htab->local_dynamic_relocs == 0 || info->shared);
18745 + if (htab->local_dynamic_relocs)
18746 + htab->srelgot->size += (htab->local_dynamic_relocs
18747 + * sizeof(Elf32_External_Rela));
18748 +
18749 + /* We now have determined the sizes of the various dynamic
18750 + sections. Allocate memory for them. */
18751 + relocs = FALSE;
18752 + for (s = dynobj->sections; s; s = s->next)
18753 + {
18754 + if ((s->flags & SEC_LINKER_CREATED) == 0)
18755 + continue;
18756 +
18757 + if (s == htab->sgot
18758 + || s == htab->sstub)
18759 + {
18760 + /* Strip this section if we don't need it */
18761 + }
18762 + else if (strncmp (bfd_get_section_name(dynobj, s), ".rela", 5) == 0)
18763 + {
18764 + if (s->size != 0)
18765 + relocs = TRUE;
18766 +
18767 + s->reloc_count = 0;
18768 + }
18769 + else
18770 + {
18771 + /* It's not one of our sections */
18772 + continue;
18773 + }
18774 +
18775 + if (s->size == 0)
18776 + {
18777 + /* Strip unneeded sections */
18778 + pr_debug("Stripping section %s from output...\n", s->name);
18779 + /* deleted function in 2.17
18780 + _bfd_strip_section_from_output(info, s);
18781 + */
18782 + continue;
18783 + }
18784 +
18785 + s->contents = bfd_zalloc(dynobj, s->size);
18786 + if (s->contents == NULL)
18787 + return FALSE;
18788 + }
18789 +
18790 + if (htab->root.dynamic_sections_created)
18791 + {
18792 + /* Add some entries to the .dynamic section. We fill in the
18793 + values later, in sh_elf_finish_dynamic_sections, but we
18794 + must add the entries now so that we get the correct size for
18795 + the .dynamic section. The DT_DEBUG entry is filled in by the
18796 + dynamic linker and used by the debugger. */
18797 +#define add_dynamic_entry(TAG, VAL) _bfd_elf_add_dynamic_entry(info, TAG, VAL)
18798 +
18799 + if (!add_dynamic_entry(DT_PLTGOT, 0))
18800 + return FALSE;
18801 + if (!add_dynamic_entry(DT_AVR32_GOTSZ, 0))
18802 + return FALSE;
18803 +
18804 + if (info->executable)
18805 + {
18806 + if (!add_dynamic_entry(DT_DEBUG, 0))
18807 + return FALSE;
18808 + }
18809 + if (relocs)
18810 + {
18811 + if (!add_dynamic_entry(DT_RELA, 0)
18812 + || !add_dynamic_entry(DT_RELASZ, 0)
18813 + || !add_dynamic_entry(DT_RELAENT,
18814 + sizeof(Elf32_External_Rela)))
18815 + return FALSE;
18816 + }
18817 + }
18818 +#undef add_dynamic_entry
18819 +
18820 + return TRUE;
18821 +}
18822 +
18823 +\f
18824 +/* Access to internal relocations, section contents and symbols.
18825 + (stolen from the xtensa port) */
18826 +
18827 +static Elf_Internal_Rela *
18828 +retrieve_internal_relocs (bfd *abfd, asection *sec, bfd_boolean keep_memory);
18829 +static void
18830 +pin_internal_relocs (asection *sec, Elf_Internal_Rela *internal_relocs);
18831 +static void
18832 +release_internal_relocs (asection *sec, Elf_Internal_Rela *internal_relocs);
18833 +static bfd_byte *
18834 +retrieve_contents (bfd *abfd, asection *sec, bfd_boolean keep_memory);
18835 +/*
18836 +static void
18837 +pin_contents (asection *sec, bfd_byte *contents);
18838 +*/
18839 +static void
18840 +release_contents (asection *sec, bfd_byte *contents);
18841 +static Elf_Internal_Sym *
18842 +retrieve_local_syms (bfd *input_bfd, bfd_boolean keep_memory);
18843 +/*
18844 +static void
18845 +pin_local_syms (bfd *input_bfd, Elf_Internal_Sym *isymbuf);
18846 +*/
18847 +static void
18848 +release_local_syms (bfd *input_bfd, Elf_Internal_Sym *isymbuf);
18849 +
18850 +/* During relaxation, we need to modify relocations, section contents,
18851 + and symbol definitions, and we need to keep the original values from
18852 + being reloaded from the input files, i.e., we need to "pin" the
18853 + modified values in memory. We also want to continue to observe the
18854 + setting of the "keep-memory" flag. The following functions wrap the
18855 + standard BFD functions to take care of this for us. */
18856 +
18857 +static Elf_Internal_Rela *
18858 +retrieve_internal_relocs (bfd *abfd, asection *sec, bfd_boolean keep_memory)
18859 +{
18860 + /* _bfd_elf_link_read_relocs knows about caching, so no need for us
18861 + to be clever here. */
18862 + return _bfd_elf_link_read_relocs(abfd, sec, NULL, NULL, keep_memory);
18863 +}
18864 +
18865 +static void
18866 +pin_internal_relocs (asection *sec, Elf_Internal_Rela *internal_relocs)
18867 +{
18868 + elf_section_data (sec)->relocs = internal_relocs;
18869 +}
18870 +
18871 +static void
18872 +release_internal_relocs (asection *sec, Elf_Internal_Rela *internal_relocs)
18873 +{
18874 + if (internal_relocs
18875 + && elf_section_data (sec)->relocs != internal_relocs)
18876 + free (internal_relocs);
18877 +}
18878 +
18879 +static bfd_byte *
18880 +retrieve_contents (bfd *abfd, asection *sec, bfd_boolean keep_memory)
18881 +{
18882 + bfd_byte *contents;
18883 + bfd_size_type sec_size;
18884 +
18885 + sec_size = bfd_get_section_limit (abfd, sec);
18886 + contents = elf_section_data (sec)->this_hdr.contents;
18887 +
18888 + if (contents == NULL && sec_size != 0)
18889 + {
18890 + if (!bfd_malloc_and_get_section (abfd, sec, &contents))
18891 + {
18892 + if (contents)
18893 + free (contents);
18894 + return NULL;
18895 + }
18896 + if (keep_memory)
18897 + elf_section_data (sec)->this_hdr.contents = contents;
18898 + }
18899 + return contents;
18900 +}
18901 +
18902 +/*
18903 +static void
18904 +pin_contents (asection *sec, bfd_byte *contents)
18905 +{
18906 + elf_section_data (sec)->this_hdr.contents = contents;
18907 +}
18908 +*/
18909 +static void
18910 +release_contents (asection *sec, bfd_byte *contents)
18911 +{
18912 + if (contents && elf_section_data (sec)->this_hdr.contents != contents)
18913 + free (contents);
18914 +}
18915 +
18916 +static Elf_Internal_Sym *
18917 +retrieve_local_syms (bfd *input_bfd, bfd_boolean keep_memory)
18918 +{
18919 + Elf_Internal_Shdr *symtab_hdr;
18920 + Elf_Internal_Sym *isymbuf;
18921 + size_t locsymcount;
18922 +
18923 + symtab_hdr = &elf_tdata (input_bfd)->symtab_hdr;
18924 + locsymcount = symtab_hdr->sh_info;
18925 +
18926 + isymbuf = (Elf_Internal_Sym *) symtab_hdr->contents;
18927 + if (isymbuf == NULL && locsymcount != 0)
18928 + {
18929 + isymbuf = bfd_elf_get_elf_syms (input_bfd, symtab_hdr, locsymcount, 0,
18930 + NULL, NULL, NULL);
18931 + if (isymbuf && keep_memory)
18932 + symtab_hdr->contents = (unsigned char *) isymbuf;
18933 + }
18934 +
18935 + return isymbuf;
18936 +}
18937 +
18938 +/*
18939 +static void
18940 +pin_local_syms (bfd *input_bfd, Elf_Internal_Sym *isymbuf)
18941 +{
18942 + elf_tdata (input_bfd)->symtab_hdr.contents = (unsigned char *)isymbuf;
18943 +}
18944 +
18945 +*/
18946 +static void
18947 +release_local_syms (bfd *input_bfd, Elf_Internal_Sym *isymbuf)
18948 +{
18949 + if (isymbuf && (elf_tdata (input_bfd)->symtab_hdr.contents
18950 + != (unsigned char *)isymbuf))
18951 + free (isymbuf);
18952 +}
18953 +
18954 +\f/* Data structures used during relaxation. */
18955 +
18956 +enum relax_state_id {
18957 + RS_ERROR = -1,
18958 + RS_NONE = 0,
18959 + RS_ALIGN,
18960 + RS_CPENT,
18961 + RS_PIC_CALL,
18962 + RS_PIC_MCALL,
18963 + RS_PIC_RCALL2,
18964 + RS_PIC_RCALL1,
18965 + RS_PIC_LDA,
18966 + RS_PIC_LDW4,
18967 + RS_PIC_LDW3,
18968 + RS_PIC_SUB5,
18969 + RS_NOPIC_MCALL,
18970 + RS_NOPIC_RCALL2,
18971 + RS_NOPIC_RCALL1,
18972 + RS_NOPIC_LDW4,
18973 + RS_NOPIC_LDDPC,
18974 + RS_NOPIC_SUB5,
18975 + RS_NOPIC_MOV2,
18976 + RS_NOPIC_MOV1,
18977 + RS_RCALL2,
18978 + RS_RCALL1,
18979 + RS_BRC2,
18980 + RS_BRC1,
18981 + RS_BRAL,
18982 + RS_RJMP,
18983 + RS_MAX,
18984 +};
18985 +
18986 +enum reference_type {
18987 + REF_ABSOLUTE,
18988 + REF_PCREL,
18989 + REF_CPOOL,
18990 + REF_GOT,
18991 +};
18992 +
18993 +struct relax_state
18994 +{
18995 + const char *name;
18996 + enum relax_state_id id;
18997 + enum relax_state_id direct;
18998 + enum relax_state_id next;
18999 + enum relax_state_id prev;
19000 +
19001 + enum reference_type reftype;
19002 +
19003 + unsigned int r_type;
19004 +
19005 + bfd_vma opcode;
19006 + bfd_vma opcode_mask;
19007 +
19008 + bfd_signed_vma range_min;
19009 + bfd_signed_vma range_max;
19010 +
19011 + bfd_size_type size;
19012 +};
19013 +
19014 +/*
19015 + * This is for relocs that
19016 + * a) has an addend or is of type R_AVR32_DIFF32, and
19017 + * b) references a different section than it's in, and
19018 + * c) references a section that is relaxable
19019 + *
19020 + * as well as relocs that references the constant pool, in which case
19021 + * the add_frag member points to the frag containing the constant pool
19022 + * entry.
19023 + *
19024 + * Such relocs must be fixed up whenever we delete any code. Sections
19025 + * that don't have any relocs with all of the above properties don't
19026 + * have any additional reloc data, but sections that do will have
19027 + * additional data for all its relocs.
19028 + */
19029 +struct avr32_reloc_data
19030 +{
19031 + struct fragment *add_frag;
19032 + struct fragment *sub_frag;
19033 +};
19034 +
19035 +/*
19036 + * A 'fragment' is a relaxable entity, that is, code may be added or
19037 + * deleted at the end of a fragment. When this happens, all subsequent
19038 + * fragments in the list will have their offsets updated.
19039 + */
19040 +struct fragment
19041 +{
19042 + enum relax_state_id state;
19043 + enum relax_state_id initial_state;
19044 +
19045 + Elf_Internal_Rela *rela;
19046 + bfd_size_type size;
19047 + bfd_vma offset;
19048 + int size_adjust;
19049 + int offset_adjust;
19050 + bfd_boolean has_grown;
19051 +
19052 + /* Only used by constant pool entries. When this drops to zero, the
19053 + frag is discarded (i.e. size_adjust is set to -4.) */
19054 + int refcount;
19055 +};
19056 +
19057 +struct avr32_relax_data
19058 +{
19059 + unsigned int frag_count;
19060 + struct fragment *frag;
19061 + struct avr32_reloc_data *reloc_data;
19062 +
19063 + /* TRUE if this section has one or more relaxable relocations */
19064 + bfd_boolean is_relaxable;
19065 + unsigned int iteration;
19066 +};
19067 +
19068 +struct avr32_section_data
19069 +{
19070 + struct bfd_elf_section_data elf;
19071 + struct avr32_relax_data relax_data;
19072 +};
19073 +
19074 +\f/* Relax state definitions */
19075 +
19076 +#define PIC_MOV2_OPCODE 0xe0600000
19077 +#define PIC_MOV2_MASK 0xe1e00000
19078 +#define PIC_MOV2_RANGE_MIN (-1048576 * 4)
19079 +#define PIC_MOV2_RANGE_MAX (1048575 * 4)
19080 +#define PIC_MCALL_OPCODE 0xf0160000
19081 +#define PIC_MCALL_MASK 0xffff0000
19082 +#define PIC_MCALL_RANGE_MIN (-131072)
19083 +#define PIC_MCALL_RANGE_MAX (131068)
19084 +#define RCALL2_OPCODE 0xe0a00000
19085 +#define RCALL2_MASK 0xe1ef0000
19086 +#define RCALL2_RANGE_MIN (-2097152)
19087 +#define RCALL2_RANGE_MAX (2097150)
19088 +#define RCALL1_OPCODE 0xc00c0000
19089 +#define RCALL1_MASK 0xf00c0000
19090 +#define RCALL1_RANGE_MIN (-1024)
19091 +#define RCALL1_RANGE_MAX (1022)
19092 +#define PIC_LDW4_OPCODE 0xecf00000
19093 +#define PIC_LDW4_MASK 0xfff00000
19094 +#define PIC_LDW4_RANGE_MIN (-32768)
19095 +#define PIC_LDW4_RANGE_MAX (32767)
19096 +#define PIC_LDW3_OPCODE 0x6c000000
19097 +#define PIC_LDW3_MASK 0xfe000000
19098 +#define PIC_LDW3_RANGE_MIN (0)
19099 +#define PIC_LDW3_RANGE_MAX (124)
19100 +#define SUB5_PC_OPCODE 0xfec00000
19101 +#define SUB5_PC_MASK 0xfff00000
19102 +#define SUB5_PC_RANGE_MIN (-32768)
19103 +#define SUB5_PC_RANGE_MAX (32767)
19104 +#define NOPIC_MCALL_OPCODE 0xf01f0000
19105 +#define NOPIC_MCALL_MASK 0xffff0000
19106 +#define NOPIC_MCALL_RANGE_MIN PIC_MCALL_RANGE_MIN
19107 +#define NOPIC_MCALL_RANGE_MAX PIC_MCALL_RANGE_MAX
19108 +#define NOPIC_LDW4_OPCODE 0xfef00000
19109 +#define NOPIC_LDW4_MASK 0xfff00000
19110 +#define NOPIC_LDW4_RANGE_MIN PIC_LDW4_RANGE_MIN
19111 +#define NOPIC_LDW4_RANGE_MAX PIC_LDW4_RANGE_MAX
19112 +#define LDDPC_OPCODE 0x48000000
19113 +#define LDDPC_MASK 0xf8000000
19114 +#define LDDPC_RANGE_MIN 0
19115 +#define LDDPC_RANGE_MAX 508
19116 +
19117 +#define NOPIC_MOV2_OPCODE 0xe0600000
19118 +#define NOPIC_MOV2_MASK 0xe1e00000
19119 +#define NOPIC_MOV2_RANGE_MIN (-1048576)
19120 +#define NOPIC_MOV2_RANGE_MAX (1048575)
19121 +#define NOPIC_MOV1_OPCODE 0x30000000
19122 +#define NOPIC_MOV1_MASK 0xf0000000
19123 +#define NOPIC_MOV1_RANGE_MIN (-128)
19124 +#define NOPIC_MOV1_RANGE_MAX (127)
19125 +
19126 +/* Only brc2 variants with cond[3] == 0 is considered, since the
19127 + others are not relaxable. bral is a special case and is handled
19128 + separately. */
19129 +#define BRC2_OPCODE 0xe0800000
19130 +#define BRC2_MASK 0xe1e80000
19131 +#define BRC2_RANGE_MIN (-2097152)
19132 +#define BRC2_RANGE_MAX (2097150)
19133 +#define BRC1_OPCODE 0xc0000000
19134 +#define BRC1_MASK 0xf0080000
19135 +#define BRC1_RANGE_MIN (-256)
19136 +#define BRC1_RANGE_MAX (254)
19137 +#define BRAL_OPCODE 0xe08f0000
19138 +#define BRAL_MASK 0xe1ef0000
19139 +#define BRAL_RANGE_MIN BRC2_RANGE_MIN
19140 +#define BRAL_RANGE_MAX BRC2_RANGE_MAX
19141 +#define RJMP_OPCODE 0xc0080000
19142 +#define RJMP_MASK 0xf00c0000
19143 +#define RJMP_RANGE_MIN (-1024)
19144 +#define RJMP_RANGE_MAX (1022)
19145 +
19146 +/* Define a relax state using the GOT */
19147 +#define RG(id, dir, next, prev, r_type, opc, size) \
19148 + { "RS_"#id, RS_##id, RS_##dir, RS_##next, RS_##prev, REF_GOT, \
19149 + R_AVR32_##r_type, opc##_OPCODE, opc##_MASK, \
19150 + opc##_RANGE_MIN, opc##_RANGE_MAX, size }
19151 +/* Define a relax state using the Constant Pool */
19152 +#define RC(id, dir, next, prev, r_type, opc, size) \
19153 + { "RS_"#id, RS_##id, RS_##dir, RS_##next, RS_##prev, REF_CPOOL, \
19154 + R_AVR32_##r_type, opc##_OPCODE, opc##_MASK, \
19155 + opc##_RANGE_MIN, opc##_RANGE_MAX, size }
19156 +
19157 +/* Define a relax state using pc-relative direct reference */
19158 +#define RP(id, dir, next, prev, r_type, opc, size) \
19159 + { "RS_"#id, RS_##id, RS_##dir, RS_##next, RS_##prev, REF_PCREL, \
19160 + R_AVR32_##r_type, opc##_OPCODE, opc##_MASK, \
19161 + opc##_RANGE_MIN, opc##_RANGE_MAX, size }
19162 +
19163 +/* Define a relax state using non-pc-relative direct reference */
19164 +#define RD(id, dir, next, prev, r_type, opc, size) \
19165 + { "RS_"#id, RS_##id, RS_##dir, RS_##next, RS_##prev, REF_ABSOLUTE, \
19166 + R_AVR32_##r_type, opc##_OPCODE, opc##_MASK, \
19167 + opc##_RANGE_MIN, opc##_RANGE_MAX, size }
19168 +
19169 +/* Define a relax state that will be handled specially */
19170 +#define RS(id, r_type, size) \
19171 + { "RS_"#id, RS_##id, RS_NONE, RS_NONE, RS_NONE, REF_ABSOLUTE, \
19172 + R_AVR32_##r_type, 0, 0, 0, 0, size }
19173 +
19174 +const struct relax_state relax_state[RS_MAX] = {
19175 + RS(NONE, NONE, 0),
19176 + RS(ALIGN, ALIGN, 0),
19177 + RS(CPENT, 32_CPENT, 4),
19178 +
19179 + RG(PIC_CALL, PIC_RCALL1, PIC_MCALL, NONE, GOTCALL, PIC_MOV2, 10),
19180 + RG(PIC_MCALL, PIC_RCALL1, NONE, PIC_CALL, GOT18SW, PIC_MCALL, 4),
19181 + RP(PIC_RCALL2, NONE, PIC_RCALL1, PIC_MCALL, 22H_PCREL, RCALL2, 4),
19182 + RP(PIC_RCALL1, NONE, NONE, PIC_RCALL2, 11H_PCREL, RCALL1, 2),
19183 +
19184 + RG(PIC_LDA, PIC_SUB5, PIC_LDW4, NONE, LDA_GOT, PIC_MOV2, 8),
19185 + RG(PIC_LDW4, PIC_SUB5, PIC_LDW3, PIC_LDA, GOT16S, PIC_LDW4, 4),
19186 + RG(PIC_LDW3, PIC_SUB5, NONE, PIC_LDW4, GOT7UW, PIC_LDW3, 2),
19187 + RP(PIC_SUB5, NONE, NONE, PIC_LDW3, 16N_PCREL, SUB5_PC, 4),
19188 +
19189 + RC(NOPIC_MCALL, NOPIC_RCALL1, NONE, NONE, CPCALL, NOPIC_MCALL, 4),
19190 + RP(NOPIC_RCALL2, NONE, NOPIC_RCALL1, NOPIC_MCALL, 22H_PCREL, RCALL2, 4),
19191 + RP(NOPIC_RCALL1, NONE, NONE, NOPIC_RCALL2, 11H_PCREL, RCALL1, 2),
19192 +
19193 + RC(NOPIC_LDW4, NOPIC_MOV1, NOPIC_LDDPC, NONE, 16_CP, NOPIC_LDW4, 4),
19194 + RC(NOPIC_LDDPC, NOPIC_MOV1, NONE, NOPIC_LDW4, 9W_CP, LDDPC, 2),
19195 + RP(NOPIC_SUB5, NOPIC_MOV1, NONE, NOPIC_LDDPC, 16N_PCREL, SUB5_PC, 4),
19196 + RD(NOPIC_MOV2, NONE, NOPIC_MOV1, NOPIC_SUB5, 21S, NOPIC_MOV2, 4),
19197 + RD(NOPIC_MOV1, NONE, NONE, NOPIC_MOV2, 8S, NOPIC_MOV1, 2),
19198 +
19199 + RP(RCALL2, NONE, RCALL1, NONE, 22H_PCREL, RCALL2, 4),
19200 + RP(RCALL1, NONE, NONE, RCALL2, 11H_PCREL, RCALL1, 2),
19201 + RP(BRC2, NONE, BRC1, NONE, 22H_PCREL, BRC2, 4),
19202 + RP(BRC1, NONE, NONE, BRC2, 9H_PCREL, BRC1, 2),
19203 + RP(BRAL, NONE, RJMP, NONE, 22H_PCREL, BRAL, 4),
19204 + RP(RJMP, NONE, NONE, BRAL, 11H_PCREL, RJMP, 2),
19205 +};
19206 +
19207 +static bfd_boolean
19208 +avr32_elf_new_section_hook(bfd *abfd, asection *sec)
19209 +{
19210 + struct avr32_section_data *sdata;
19211 +
19212 + sdata = bfd_zalloc(abfd, sizeof(struct avr32_section_data));
19213 + if (!sdata)
19214 + return FALSE;
19215 +
19216 + sec->used_by_bfd = sdata;
19217 + return _bfd_elf_new_section_hook(abfd, sec);
19218 +}
19219 +
19220 +static struct avr32_relax_data *
19221 +avr32_relax_data(asection *sec)
19222 +{
19223 + struct avr32_section_data *sdata;
19224 +
19225 + BFD_ASSERT(sec->used_by_bfd);
19226 +
19227 + sdata = (struct avr32_section_data *)elf_section_data(sec);
19228 + return &sdata->relax_data;
19229 +}
19230 +
19231 +\f/* Link-time relaxation */
19232 +
19233 +static bfd_boolean
19234 +avr32_elf_relax_section(bfd *abfd, asection *sec,
19235 + struct bfd_link_info *info, bfd_boolean *again);
19236 +
19237 +enum relax_pass_id {
19238 + RELAX_PASS_SIZE_FRAGS,
19239 + RELAX_PASS_MOVE_DATA,
19240 +};
19241 +
19242 +/* Stolen from the xtensa port */
19243 +static int
19244 +internal_reloc_compare (const void *ap, const void *bp)
19245 +{
19246 + const Elf_Internal_Rela *a = (const Elf_Internal_Rela *) ap;
19247 + const Elf_Internal_Rela *b = (const Elf_Internal_Rela *) bp;
19248 +
19249 + if (a->r_offset != b->r_offset)
19250 + return (a->r_offset - b->r_offset);
19251 +
19252 + /* We don't need to sort on these criteria for correctness,
19253 + but enforcing a more strict ordering prevents unstable qsort
19254 + from behaving differently with different implementations.
19255 + Without the code below we get correct but different results
19256 + on Solaris 2.7 and 2.8. We would like to always produce the
19257 + same results no matter the host. */
19258 +
19259 + if (a->r_info != b->r_info)
19260 + return (a->r_info - b->r_info);
19261 +
19262 + return (a->r_addend - b->r_addend);
19263 +}
19264 +
19265 +static enum relax_state_id
19266 +get_pcrel22_relax_state(bfd *abfd, asection *sec, struct bfd_link_info *info,
19267 + const Elf_Internal_Rela *rela)
19268 +{
19269 + bfd_byte *contents;
19270 + bfd_vma insn;
19271 + enum relax_state_id rs = RS_NONE;
19272 +
19273 + contents = retrieve_contents(abfd, sec, info->keep_memory);
19274 + if (!contents)
19275 + return RS_ERROR;
19276 +
19277 + insn = bfd_get_32(abfd, contents + rela->r_offset);
19278 + if ((insn & RCALL2_MASK) == RCALL2_OPCODE)
19279 + rs = RS_RCALL2;
19280 + else if ((insn & BRAL_MASK) == BRAL_OPCODE)
19281 + /* Optimizing bral -> rjmp gets us into all kinds of
19282 + trouble with jump tables. Better not do it. */
19283 + rs = RS_NONE;
19284 + else if ((insn & BRC2_MASK) == BRC2_OPCODE)
19285 + rs = RS_BRC2;
19286 +
19287 + release_contents(sec, contents);
19288 +
19289 + return rs;
19290 +}
19291 +
19292 +static enum relax_state_id
19293 +get_initial_relax_state(bfd *abfd, asection *sec, struct bfd_link_info *info,
19294 + const Elf_Internal_Rela *rela)
19295 +{
19296 + switch (ELF_R_TYPE(rela->r_info))
19297 + {
19298 + case R_AVR32_GOTCALL:
19299 + return RS_PIC_CALL;
19300 + case R_AVR32_GOT18SW:
19301 + return RS_PIC_MCALL;
19302 + case R_AVR32_LDA_GOT:
19303 + return RS_PIC_LDA;
19304 + case R_AVR32_GOT16S:
19305 + return RS_PIC_LDW4;
19306 + case R_AVR32_CPCALL:
19307 + return RS_NOPIC_MCALL;
19308 + case R_AVR32_16_CP:
19309 + return RS_NOPIC_LDW4;
19310 + case R_AVR32_9W_CP:
19311 + return RS_NOPIC_LDDPC;
19312 + case R_AVR32_ALIGN:
19313 + return RS_ALIGN;
19314 + case R_AVR32_32_CPENT:
19315 + return RS_CPENT;
19316 + case R_AVR32_22H_PCREL:
19317 + return get_pcrel22_relax_state(abfd, sec, info, rela);
19318 + case R_AVR32_9H_PCREL:
19319 + return RS_BRC1;
19320 + default:
19321 + return RS_NONE;
19322 + }
19323 +}
19324 +
19325 +static bfd_boolean
19326 +reloc_is_cpool_ref(const Elf_Internal_Rela *rela)
19327 +{
19328 + switch (ELF_R_TYPE(rela->r_info))
19329 + {
19330 + case R_AVR32_CPCALL:
19331 + case R_AVR32_16_CP:
19332 + case R_AVR32_9W_CP:
19333 + return TRUE;
19334 + default:
19335 + return FALSE;
19336 + }
19337 +}
19338 +
19339 +static struct fragment *
19340 +new_frag(bfd *abfd ATTRIBUTE_UNUSED, asection *sec,
19341 + struct avr32_relax_data *rd, enum relax_state_id state,
19342 + Elf_Internal_Rela *rela)
19343 +{
19344 + struct fragment *frag;
19345 + bfd_size_type r_size;
19346 + bfd_vma r_offset;
19347 + unsigned int i = rd->frag_count;
19348 +
19349 + BFD_ASSERT(state >= RS_NONE && state < RS_MAX);
19350 +
19351 + rd->frag_count++;
19352 + frag = bfd_realloc(rd->frag, sizeof(struct fragment) * rd->frag_count);
19353 + if (!frag)
19354 + return NULL;
19355 + rd->frag = frag;
19356 +
19357 + frag += i;
19358 + memset(frag, 0, sizeof(struct fragment));
19359 +
19360 + if (state == RS_ALIGN)
19361 + r_size = (((rela->r_offset + (1 << rela->r_addend) - 1)
19362 + & ~((1 << rela->r_addend) - 1)) - rela->r_offset);
19363 + else
19364 + r_size = relax_state[state].size;
19365 +
19366 + if (rela)
19367 + r_offset = rela->r_offset;
19368 + else
19369 + r_offset = sec->size;
19370 +
19371 + if (i == 0)
19372 + {
19373 + frag->offset = 0;
19374 + frag->size = r_offset + r_size;
19375 + }
19376 + else
19377 + {
19378 + frag->offset = rd->frag[i - 1].offset + rd->frag[i - 1].size;
19379 + frag->size = r_offset + r_size - frag->offset;
19380 + }
19381 +
19382 + if (state != RS_CPENT)
19383 + /* Make sure we don't discard this frag */
19384 + frag->refcount = 1;
19385 +
19386 + frag->initial_state = frag->state = state;
19387 + frag->rela = rela;
19388 +
19389 + return frag;
19390 +}
19391 +
19392 +static struct fragment *
19393 +find_frag(asection *sec, bfd_vma offset)
19394 +{
19395 + struct fragment *first, *last;
19396 + struct avr32_relax_data *rd = avr32_relax_data(sec);
19397 +
19398 + if (rd->frag_count == 0)
19399 + return NULL;
19400 +
19401 + first = &rd->frag[0];
19402 + last = &rd->frag[rd->frag_count - 1];
19403 +
19404 + /* This may be a reloc referencing the end of a section. The last
19405 + frag will never have a reloc associated with it, so its size will
19406 + never change, thus the offset adjustment of the last frag will
19407 + always be the same as the offset adjustment of the end of the
19408 + section. */
19409 + if (offset == sec->size)
19410 + {
19411 + BFD_ASSERT(last->offset + last->size == sec->size);
19412 + BFD_ASSERT(!last->rela);
19413 + return last;
19414 + }
19415 +
19416 + while (first <= last)
19417 + {
19418 + struct fragment *mid;
19419 +
19420 + mid = (last - first) / 2 + first;
19421 + if ((mid->offset + mid->size) <= offset)
19422 + first = mid + 1;
19423 + else if (mid->offset > offset)
19424 + last = mid - 1;
19425 + else
19426 + return mid;
19427 + }
19428 +
19429 + return NULL;
19430 +}
19431 +
19432 +/* Look through all relocs in a section and determine if any relocs
19433 + may be affected by relaxation in other sections. If so, allocate
19434 + an array of additional relocation data which links the affected
19435 + relocations to the frag(s) where the relaxation may occur.
19436 +
19437 + This function also links cpool references to cpool entries and
19438 + increments the refcount of the latter when this happens. */
19439 +
19440 +static bfd_boolean
19441 +allocate_reloc_data(bfd *abfd, asection *sec, Elf_Internal_Rela *relocs,
19442 + struct bfd_link_info *info)
19443 +{
19444 + Elf_Internal_Shdr *symtab_hdr;
19445 + Elf_Internal_Sym *isymbuf = NULL;
19446 + struct avr32_relax_data *rd;
19447 + unsigned int i;
19448 + bfd_boolean ret = FALSE;
19449 +
19450 + symtab_hdr = &elf_tdata(abfd)->symtab_hdr;
19451 + rd = avr32_relax_data(sec);
19452 +
19453 + RDBG("%s<%s>: allocate_reloc_data\n", abfd->filename, sec->name);
19454 +
19455 + for (i = 0; i < sec->reloc_count; i++)
19456 + {
19457 + Elf_Internal_Rela *rel = &relocs[i];
19458 + asection *sym_sec;
19459 + unsigned long r_symndx;
19460 + bfd_vma sym_value;
19461 +
19462 + if (!rel->r_addend && ELF_R_TYPE(rel->r_info) != R_AVR32_DIFF32
19463 + && !reloc_is_cpool_ref(rel))
19464 + continue;
19465 +
19466 + r_symndx = ELF_R_SYM(rel->r_info);
19467 +
19468 + if (r_symndx < symtab_hdr->sh_info)
19469 + {
19470 + Elf_Internal_Sym *isym;
19471 +
19472 + if (!isymbuf)
19473 + isymbuf = retrieve_local_syms(abfd, info->keep_memory);
19474 + if (!isymbuf)
19475 + return FALSE;
19476 +
19477 + isym = &isymbuf[r_symndx];
19478 + sym_sec = bfd_section_from_elf_index(abfd, isym->st_shndx);
19479 + sym_value = isym->st_value;
19480 + }
19481 + else
19482 + {
19483 + struct elf_link_hash_entry *h;
19484 +
19485 + h = elf_sym_hashes(abfd)[r_symndx - symtab_hdr->sh_info];
19486 +
19487 + while (h->root.type == bfd_link_hash_indirect
19488 + || h->root.type == bfd_link_hash_warning)
19489 + h = (struct elf_link_hash_entry *)h->root.u.i.link;
19490 +
19491 + if (h->root.type != bfd_link_hash_defined
19492 + && h->root.type != bfd_link_hash_defweak)
19493 + continue;
19494 +
19495 + sym_sec = h->root.u.def.section;
19496 + sym_value = h->root.u.def.value;
19497 + }
19498 +
19499 + if (sym_sec && avr32_relax_data(sym_sec)->is_relaxable)
19500 + {
19501 + bfd_size_type size;
19502 + struct fragment *frag;
19503 +
19504 + if (!rd->reloc_data)
19505 + {
19506 + size = sizeof(struct avr32_reloc_data) * sec->reloc_count;
19507 + rd->reloc_data = bfd_zalloc(abfd, size);
19508 + if (!rd->reloc_data)
19509 + goto out;
19510 + }
19511 +
19512 + RDBG("[%3d] 0x%04lx: target: 0x%lx + 0x%lx",
19513 + i, rel->r_offset, sym_value, rel->r_addend);
19514 +
19515 + frag = find_frag(sym_sec, sym_value + rel->r_addend);
19516 + BFD_ASSERT(frag);
19517 + rd->reloc_data[i].add_frag = frag;
19518 +
19519 + RDBG(" -> %s<%s>:%04lx\n", sym_sec->owner->filename, sym_sec->name,
19520 + frag->rela ? frag->rela->r_offset : sym_sec->size);
19521 +
19522 + if (reloc_is_cpool_ref(rel))
19523 + {
19524 + BFD_ASSERT(ELF_R_TYPE(frag->rela->r_info) == R_AVR32_32_CPENT);
19525 + frag->refcount++;
19526 + }
19527 +
19528 + if (ELF_R_TYPE(rel->r_info) == R_AVR32_DIFF32)
19529 + {
19530 + bfd_byte *contents;
19531 + bfd_signed_vma diff;
19532 +
19533 + contents = retrieve_contents(abfd, sec, info->keep_memory);
19534 + if (!contents)
19535 + goto out;
19536 +
19537 + diff = bfd_get_signed_32(abfd, contents + rel->r_offset);
19538 + frag = find_frag(sym_sec, sym_value + rel->r_addend + diff);
19539 + BFD_ASSERT(frag);
19540 + rd->reloc_data[i].sub_frag = frag;
19541 +
19542 + release_contents(sec, contents);
19543 + }
19544 + }
19545 + }
19546 +
19547 + ret = TRUE;
19548 +
19549 + out:
19550 + release_local_syms(abfd, isymbuf);
19551 + return ret;
19552 +}
19553 +
19554 +static bfd_boolean
19555 +global_sym_set_frag(struct elf_avr32_link_hash_entry *havr,
19556 + struct bfd_link_info *info ATTRIBUTE_UNUSED)
19557 +{
19558 + struct fragment *frag;
19559 + asection *sec;
19560 +
19561 + if (havr->root.root.type != bfd_link_hash_defined
19562 + && havr->root.root.type != bfd_link_hash_defweak)
19563 + return TRUE;
19564 +
19565 + sec = havr->root.root.u.def.section;
19566 + if (bfd_is_const_section(sec)
19567 + || !avr32_relax_data(sec)->is_relaxable)
19568 + return TRUE;
19569 +
19570 + frag = find_frag(sec, havr->root.root.u.def.value);
19571 + if (!frag)
19572 + {
19573 + unsigned int i;
19574 + struct avr32_relax_data *rd = avr32_relax_data(sec);
19575 +
19576 + RDBG("In %s: No frag for %s <%s+%lu> (limit %lu)\n",
19577 + sec->owner->filename, havr->root.root.root.string,
19578 + sec->name, havr->root.root.u.def.value, sec->size);
19579 + for (i = 0; i < rd->frag_count; i++)
19580 + RDBG(" %8lu - %8lu\n", rd->frag[i].offset,
19581 + rd->frag[i].offset + rd->frag[i].size);
19582 + }
19583 + BFD_ASSERT(frag);
19584 +
19585 + havr->sym_frag = frag;
19586 + return TRUE;
19587 +}
19588 +
19589 +static bfd_boolean
19590 +analyze_relocations(struct bfd_link_info *info)
19591 +{
19592 + bfd *abfd;
19593 + asection *sec;
19594 +
19595 + /* Divide all relaxable sections into fragments */
19596 + for (abfd = info->input_bfds; abfd; abfd = abfd->link_next)
19597 + {
19598 + if (!(elf_elfheader(abfd)->e_flags & EF_AVR32_LINKRELAX))
19599 + {
19600 + if (!(*info->callbacks->warning)
19601 + (info, _("input is not relaxable"), NULL, abfd, NULL, 0))
19602 + return FALSE;
19603 + continue;
19604 + }
19605 +
19606 + for (sec = abfd->sections; sec; sec = sec->next)
19607 + {
19608 + struct avr32_relax_data *rd;
19609 + struct fragment *frag;
19610 + Elf_Internal_Rela *relocs;
19611 + unsigned int i;
19612 + bfd_boolean ret = TRUE;
19613 +
19614 + if (!(sec->flags & SEC_RELOC) || sec->reloc_count == 0)
19615 + continue;
19616 +
19617 + rd = avr32_relax_data(sec);
19618 +
19619 + relocs = retrieve_internal_relocs(abfd, sec, info->keep_memory);
19620 + if (!relocs)
19621 + return FALSE;
19622 +
19623 + qsort(relocs, sec->reloc_count, sizeof(Elf_Internal_Rela),
19624 + internal_reloc_compare);
19625 +
19626 + for (i = 0; i < sec->reloc_count; i++)
19627 + {
19628 + enum relax_state_id state;
19629 +
19630 + ret = FALSE;
19631 + state = get_initial_relax_state(abfd, sec, info, &relocs[i]);
19632 + if (state == RS_ERROR)
19633 + break;
19634 +
19635 + if (state)
19636 + {
19637 + frag = new_frag(abfd, sec, rd, state, &relocs[i]);
19638 + if (!frag)
19639 + break;
19640 +
19641 + pin_internal_relocs(sec, relocs);
19642 + rd->is_relaxable = TRUE;
19643 + }
19644 +
19645 + ret = TRUE;
19646 + }
19647 +
19648 + release_internal_relocs(sec, relocs);
19649 + if (!ret)
19650 + return ret;
19651 +
19652 + if (rd->is_relaxable)
19653 + {
19654 + frag = new_frag(abfd, sec, rd, RS_NONE, NULL);
19655 + if (!frag)
19656 + return FALSE;
19657 + }
19658 + }
19659 + }
19660 +
19661 + /* Link each global symbol to the fragment where it's defined. */
19662 + elf_link_hash_traverse(elf_hash_table(info), global_sym_set_frag, info);
19663 +
19664 + /* Do the same for local symbols. */
19665 + for (abfd = info->input_bfds; abfd; abfd = abfd->link_next)
19666 + {
19667 + Elf_Internal_Sym *isymbuf, *isym;
19668 + struct fragment **local_sym_frag;
19669 + unsigned int i, sym_count;
19670 +
19671 + sym_count = elf_tdata(abfd)->symtab_hdr.sh_info;
19672 + if (sym_count == 0)
19673 + continue;
19674 +
19675 + local_sym_frag = bfd_zalloc(abfd, sym_count * sizeof(struct fragment *));
19676 + if (!local_sym_frag)
19677 + return FALSE;
19678 + elf_tdata(abfd)->local_sym_frag = local_sym_frag;
19679 +
19680 + isymbuf = retrieve_local_syms(abfd, info->keep_memory);
19681 + if (!isymbuf)
19682 + return FALSE;
19683 +
19684 + for (i = 0; i < sym_count; i++)
19685 + {
19686 + struct avr32_relax_data *rd;
19687 + struct fragment *frag;
19688 + asection *sec;
19689 +
19690 + isym = &isymbuf[i];
19691 +
19692 + sec = bfd_section_from_elf_index(abfd, isym->st_shndx);
19693 + if (!sec)
19694 + continue;
19695 +
19696 + rd = avr32_relax_data(sec);
19697 + if (!rd->is_relaxable)
19698 + continue;
19699 +
19700 + frag = find_frag(sec, isym->st_value);
19701 + BFD_ASSERT(frag);
19702 +
19703 + local_sym_frag[i] = frag;
19704 + }
19705 +
19706 + release_local_syms(abfd, isymbuf);
19707 + }
19708 +
19709 + /* And again for relocs with addends and constant pool references */
19710 + for (abfd = info->input_bfds; abfd; abfd = abfd->link_next)
19711 + for (sec = abfd->sections; sec; sec = sec->next)
19712 + {
19713 + Elf_Internal_Rela *relocs;
19714 + bfd_boolean ret;
19715 +
19716 + if (!(sec->flags & SEC_RELOC) || sec->reloc_count == 0)
19717 + continue;
19718 +
19719 + relocs = retrieve_internal_relocs(abfd, sec, info->keep_memory);
19720 + if (!relocs)
19721 + return FALSE;
19722 +
19723 + ret = allocate_reloc_data(abfd, sec, relocs, info);
19724 +
19725 + release_internal_relocs(sec, relocs);
19726 + if (ret == FALSE)
19727 + return ret;
19728 + }
19729 +
19730 + return TRUE;
19731 +}
19732 +
19733 +static bfd_boolean
19734 +rs_is_good_enough(const struct relax_state *rs, struct fragment *frag,
19735 + bfd_vma symval, bfd_vma addr, struct got_entry *got,
19736 + struct avr32_reloc_data *ind_data,
19737 + bfd_signed_vma offset_adjust)
19738 +{
19739 + bfd_signed_vma target = 0;
19740 +
19741 + switch (rs->reftype)
19742 + {
19743 + case REF_ABSOLUTE:
19744 + target = symval;
19745 + break;
19746 + case REF_PCREL:
19747 + target = symval - addr;
19748 + break;
19749 + case REF_CPOOL:
19750 + /* cpool frags are always in the same section and always after
19751 + all frags referring to it. So it's always correct to add in
19752 + offset_adjust here. */
19753 + target = (ind_data->add_frag->offset + ind_data->add_frag->offset_adjust
19754 + + offset_adjust - frag->offset - frag->offset_adjust);
19755 + break;
19756 + case REF_GOT:
19757 + target = got->offset;
19758 + break;
19759 + default:
19760 + abort();
19761 + }
19762 +
19763 + if (target >= rs->range_min && target <= rs->range_max)
19764 + return TRUE;
19765 + else
19766 + return FALSE;
19767 +}
19768 +
19769 +static bfd_boolean
19770 +avr32_size_frags(bfd *abfd, asection *sec, struct bfd_link_info *info)
19771 +{
19772 + struct elf_avr32_link_hash_table *htab;
19773 + struct avr32_relax_data *rd;
19774 + Elf_Internal_Shdr *symtab_hdr;
19775 + Elf_Internal_Rela *relocs = NULL;
19776 + Elf_Internal_Sym *isymbuf = NULL;
19777 + struct got_entry **local_got_ents;
19778 + struct fragment **local_sym_frag;
19779 + bfd_boolean ret = FALSE;
19780 + bfd_signed_vma delta = 0;
19781 + unsigned int i;
19782 +
19783 + htab = avr32_elf_hash_table(info);
19784 + rd = avr32_relax_data(sec);
19785 +
19786 + if (sec == htab->sgot)
19787 + {
19788 + RDBG("Relaxing GOT section (vma: 0x%lx)\n",
19789 + sec->output_section->vma + sec->output_offset);
19790 + if (assign_got_offsets(htab))
19791 + htab->repeat_pass = TRUE;
19792 + return TRUE;
19793 + }
19794 +
19795 + if (!rd->is_relaxable)
19796 + return TRUE;
19797 +
19798 + if (!sec->rawsize)
19799 + sec->rawsize = sec->size;
19800 +
19801 + symtab_hdr = &elf_tdata(abfd)->symtab_hdr;
19802 + relocs = retrieve_internal_relocs(abfd, sec, info->keep_memory);
19803 + if (!relocs)
19804 + goto out;
19805 +
19806 + isymbuf = retrieve_local_syms(abfd, info->keep_memory);
19807 + if (!isymbuf)
19808 + goto out;
19809 +
19810 + local_got_ents = elf_local_got_ents(abfd);
19811 + local_sym_frag = elf_tdata(abfd)->local_sym_frag;
19812 +
19813 + RDBG("size_frags: %s<%s>\n vma: 0x%08lx, size: 0x%08lx\n",
19814 + abfd->filename, sec->name,
19815 + sec->output_section->vma + sec->output_offset, sec->size);
19816 +
19817 + for (i = 0; i < rd->frag_count; i++)
19818 + {
19819 + struct fragment *frag = &rd->frag[i];
19820 + struct avr32_reloc_data *r_data = NULL, *ind_data = NULL;
19821 + const struct relax_state *state, *next_state;
19822 + struct fragment *target_frag = NULL;
19823 + asection *sym_sec = NULL;
19824 + Elf_Internal_Rela *rela;
19825 + struct got_entry *got;
19826 + bfd_vma symval, r_offset, addend, addr;
19827 + bfd_signed_vma size_adjust = 0, distance;
19828 + unsigned long r_symndx;
19829 + bfd_boolean defined = TRUE, dynamic = FALSE;
19830 + unsigned char sym_type;
19831 +
19832 + frag->offset_adjust += delta;
19833 + state = next_state = &relax_state[frag->state];
19834 + rela = frag->rela;
19835 +
19836 + BFD_ASSERT(state->id == frag->state);
19837 +
19838 + RDBG(" 0x%04lx%c%d: %s [size %ld]", rela ? rela->r_offset : sec->rawsize,
19839 + (frag->offset_adjust < 0)?'-':'+',
19840 + abs(frag->offset_adjust), state->name, state->size);
19841 +
19842 + if (!rela)
19843 + {
19844 + RDBG(": no reloc, ignoring\n");
19845 + continue;
19846 + }
19847 +
19848 + BFD_ASSERT((unsigned int)(rela - relocs) < sec->reloc_count);
19849 + BFD_ASSERT(state != RS_NONE);
19850 +
19851 + r_offset = rela->r_offset + frag->offset_adjust;
19852 + addr = sec->output_section->vma + sec->output_offset + r_offset;
19853 +
19854 + switch (frag->state)
19855 + {
19856 + case RS_ALIGN:
19857 + size_adjust = ((addr + (1 << rela->r_addend) - 1)
19858 + & ~((1 << rela->r_addend) - 1));
19859 + size_adjust -= (sec->output_section->vma + sec->output_offset
19860 + + frag->offset + frag->offset_adjust
19861 + + frag->size + frag->size_adjust);
19862 +
19863 + RDBG(": adjusting size %lu -> %lu\n", frag->size + frag->size_adjust,
19864 + frag->size + frag->size_adjust + size_adjust);
19865 + break;
19866 +
19867 + case RS_CPENT:
19868 + if (frag->refcount == 0 && frag->size_adjust == 0)
19869 + {
19870 + RDBG(": discarding frag\n");
19871 + size_adjust = -4;
19872 + }
19873 + else if (frag->refcount > 0 && frag->size_adjust < 0)
19874 + {
19875 + RDBG(": un-discarding frag\n");
19876 + size_adjust = 4;
19877 + }
19878 + break;
19879 +
19880 + default:
19881 + if (rd->reloc_data)
19882 + r_data = &rd->reloc_data[frag->rela - relocs];
19883 +
19884 + /* If this is a cpool reference, we want the symbol that the
19885 + cpool entry refers to, not the symbol for the cpool entry
19886 + itself, as we already know what frag it's in. */
19887 + if (relax_state[frag->initial_state].reftype == REF_CPOOL)
19888 + {
19889 + Elf_Internal_Rela *irela = r_data->add_frag->rela;
19890 +
19891 + r_symndx = ELF_R_SYM(irela->r_info);
19892 + addend = irela->r_addend;
19893 +
19894 + /* The constant pool must be in the same section as the
19895 + reloc referring to it. */
19896 + BFD_ASSERT((unsigned long)(irela - relocs) < sec->reloc_count);
19897 +
19898 + ind_data = r_data;
19899 + r_data = &rd->reloc_data[irela - relocs];
19900 + }
19901 + else
19902 + {
19903 + r_symndx = ELF_R_SYM(rela->r_info);
19904 + addend = rela->r_addend;
19905 + }
19906 +
19907 + /* Get the value of the symbol referred to by the reloc. */
19908 + if (r_symndx < symtab_hdr->sh_info)
19909 + {
19910 + Elf_Internal_Sym *isym;
19911 +
19912 + isym = isymbuf + r_symndx;
19913 + symval = 0;
19914 +
19915 + RDBG(" local sym %lu: ", r_symndx);
19916 +
19917 + if (isym->st_shndx == SHN_UNDEF)
19918 + defined = FALSE;
19919 + else if (isym->st_shndx == SHN_ABS)
19920 + sym_sec = bfd_abs_section_ptr;
19921 + else if (isym->st_shndx == SHN_COMMON)
19922 + sym_sec = bfd_com_section_ptr;
19923 + else
19924 + sym_sec = bfd_section_from_elf_index(abfd, isym->st_shndx);
19925 +
19926 + symval = isym->st_value;
19927 + sym_type = ELF_ST_TYPE(isym->st_info);
19928 + target_frag = local_sym_frag[r_symndx];
19929 +
19930 + if (local_got_ents)
19931 + got = local_got_ents[r_symndx];
19932 + else
19933 + got = NULL;
19934 + }
19935 + else
19936 + {
19937 + /* Global symbol */
19938 + unsigned long index;
19939 + struct elf_link_hash_entry *h;
19940 + struct elf_avr32_link_hash_entry *havr;
19941 +
19942 + index = r_symndx - symtab_hdr->sh_info;
19943 + h = elf_sym_hashes(abfd)[index];
19944 + BFD_ASSERT(h != NULL);
19945 +
19946 + while (h->root.type == bfd_link_hash_indirect
19947 + || h->root.type == bfd_link_hash_warning)
19948 + h = (struct elf_link_hash_entry *)h->root.u.i.link;
19949 +
19950 + havr = (struct elf_avr32_link_hash_entry *)h;
19951 + got = h->got.glist;
19952 +
19953 + symval = 0;
19954 +
19955 + RDBG(" %s: ", h->root.root.string);
19956 +
19957 + if (h->root.type != bfd_link_hash_defined
19958 + && h->root.type != bfd_link_hash_defweak)
19959 + {
19960 + RDBG("(undef)");
19961 + defined = FALSE;
19962 + }
19963 + else if ((info->shared && !info->symbolic && h->dynindx != -1)
19964 + || (htab->root.dynamic_sections_created
19965 + && h->def_dynamic && !h->def_regular))
19966 + {
19967 + RDBG("(dynamic)");
19968 + dynamic = TRUE;
19969 + sym_sec = h->root.u.def.section;
19970 + }
19971 + else
19972 + {
19973 + sym_sec = h->root.u.def.section;
19974 + symval = h->root.u.def.value;
19975 + target_frag = havr->sym_frag;
19976 + }
19977 +
19978 + sym_type = h->type;
19979 + }
19980 +
19981 + /* Thanks to elf32-ppc for this one. */
19982 + if (sym_sec && sym_sec->sec_info_type == ELF_INFO_TYPE_MERGE)
19983 + {
19984 + /* At this stage in linking, no SEC_MERGE symbol has been
19985 + adjusted, so all references to such symbols need to be
19986 + passed through _bfd_merged_section_offset. (Later, in
19987 + relocate_section, all SEC_MERGE symbols *except* for
19988 + section symbols have been adjusted.)
19989 +
19990 + SEC_MERGE sections are not relaxed by us, as they
19991 + shouldn't contain any code. */
19992 +
19993 + BFD_ASSERT(!target_frag && !(r_data && r_data->add_frag));
19994 +
19995 + /* gas may reduce relocations against symbols in SEC_MERGE
19996 + sections to a relocation against the section symbol when
19997 + the original addend was zero. When the reloc is against
19998 + a section symbol we should include the addend in the
19999 + offset passed to _bfd_merged_section_offset, since the
20000 + location of interest is the original symbol. On the
20001 + other hand, an access to "sym+addend" where "sym" is not
20002 + a section symbol should not include the addend; Such an
20003 + access is presumed to be an offset from "sym"; The
20004 + location of interest is just "sym". */
20005 + RDBG("\n MERGE: %s: 0x%lx+0x%lx+0x%lx -> ",
20006 + (sym_type == STT_SECTION)?"section":"not section",
20007 + sym_sec->output_section->vma + sym_sec->output_offset,
20008 + symval, addend);
20009 +
20010 + if (sym_type == STT_SECTION)
20011 + symval += addend;
20012 +
20013 + symval = (_bfd_merged_section_offset
20014 + (abfd, &sym_sec,
20015 + elf_section_data(sym_sec)->sec_info, symval));
20016 +
20017 + if (sym_type != STT_SECTION)
20018 + symval += addend;
20019 + }
20020 + else
20021 + symval += addend;
20022 +
20023 + if (defined && !dynamic)
20024 + {
20025 + RDBG("0x%lx+0x%lx",
20026 + sym_sec->output_section->vma + sym_sec->output_offset,
20027 + symval);
20028 + symval += sym_sec->output_section->vma + sym_sec->output_offset;
20029 + }
20030 +
20031 + if (r_data && r_data->add_frag)
20032 + /* If the add_frag pointer is set, it means that this reloc
20033 + has an addend that may be affected by relaxation. */
20034 + target_frag = r_data->add_frag;
20035 +
20036 + if (target_frag)
20037 + {
20038 + symval += target_frag->offset_adjust;
20039 +
20040 + /* If target_frag comes after this frag in the same
20041 + section, we should assume that it will be moved by
20042 + the same amount we are. */
20043 + if ((target_frag - rd->frag) < (int)rd->frag_count
20044 + && target_frag > frag)
20045 + symval += delta;
20046 + }
20047 +
20048 + distance = symval - addr;
20049 +
20050 + /* First, try to make a direct reference. If the symbol is
20051 + dynamic or undefined, we must take care not to change its
20052 + reference type, that is, we can't make it direct.
20053 +
20054 + Also, it seems like some sections may actually be resized
20055 + after the relaxation code is done, so we can't really
20056 + trust that our "distance" is correct. There's really no
20057 + easy solution to this problem, so we'll just disallow
20058 + direct references to SEC_DATA sections.
20059 +
20060 + Oh, and .bss isn't actually SEC_DATA, so we disallow
20061 + !SEC_HAS_CONTENTS as well. */
20062 + if (!dynamic && defined
20063 + && (htab->direct_data_refs
20064 + || (!(sym_sec->flags & SEC_DATA)
20065 + && (sym_sec->flags & SEC_HAS_CONTENTS)))
20066 + && next_state->direct)
20067 + {
20068 + next_state = &relax_state[next_state->direct];
20069 + RDBG(" D-> %s", next_state->name);
20070 + }
20071 +
20072 + /* Iterate backwards until we find a state that fits. */
20073 + while (next_state->prev
20074 + && !rs_is_good_enough(next_state, frag, symval, addr,
20075 + got, ind_data, delta))
20076 + {
20077 + next_state = &relax_state[next_state->prev];
20078 + RDBG(" P-> %s", next_state->name);
20079 + }
20080 +
20081 + /* Then try to find the best possible state. */
20082 + while (next_state->next)
20083 + {
20084 + const struct relax_state *candidate;
20085 +
20086 + candidate = &relax_state[next_state->next];
20087 + if (!rs_is_good_enough(candidate, frag, symval, addr, got,
20088 + ind_data, delta))
20089 + break;
20090 +
20091 + next_state = candidate;
20092 + RDBG(" N-> %s", next_state->name);
20093 + }
20094 +
20095 + RDBG(" [size %ld]\n", next_state->size);
20096 +
20097 + BFD_ASSERT(next_state->id);
20098 + BFD_ASSERT(!dynamic || next_state->reftype == REF_GOT);
20099 +
20100 + size_adjust = next_state->size - state->size;
20101 +
20102 + /* There's a theoretical possibility that shrinking one frag
20103 + may cause another to grow, which may cause the first one to
20104 + grow as well, and we're back where we started. Avoid this
20105 + scenario by disallowing a frag that has grown to ever
20106 + shrink again. */
20107 + if (state->reftype == REF_GOT && next_state->reftype != REF_GOT)
20108 + {
20109 + if (frag->has_grown)
20110 + next_state = state;
20111 + else
20112 + unref_got_entry(htab, got);
20113 + }
20114 + else if (state->reftype != REF_GOT && next_state->reftype == REF_GOT)
20115 + {
20116 + ref_got_entry(htab, got);
20117 + frag->has_grown = TRUE;
20118 + }
20119 + else if (state->reftype == REF_CPOOL
20120 + && next_state->reftype != REF_CPOOL)
20121 + {
20122 + if (frag->has_grown)
20123 + next_state = state;
20124 + else
20125 + ind_data->add_frag->refcount--;
20126 + }
20127 + else if (state->reftype != REF_CPOOL
20128 + && next_state->reftype == REF_CPOOL)
20129 + {
20130 + ind_data->add_frag->refcount++;
20131 + frag->has_grown = TRUE;
20132 + }
20133 + else
20134 + {
20135 + if (frag->has_grown && size_adjust < 0)
20136 + next_state = state;
20137 + else if (size_adjust > 0)
20138 + frag->has_grown = TRUE;
20139 + }
20140 +
20141 + size_adjust = next_state->size - state->size;
20142 + frag->state = next_state->id;
20143 +
20144 + break;
20145 + }
20146 +
20147 + if (size_adjust)
20148 + htab->repeat_pass = TRUE;
20149 +
20150 + frag->size_adjust += size_adjust;
20151 + sec->size += size_adjust;
20152 + delta += size_adjust;
20153 +
20154 + BFD_ASSERT((frag->offset + frag->offset_adjust
20155 + + frag->size + frag->size_adjust)
20156 + == (frag[1].offset + frag[1].offset_adjust + delta));
20157 + }
20158 +
20159 + ret = TRUE;
20160 +
20161 + out:
20162 + release_local_syms(abfd, isymbuf);
20163 + release_internal_relocs(sec, relocs);
20164 + return ret;
20165 +}
20166 +
20167 +static bfd_boolean
20168 +adjust_global_symbol(struct elf_avr32_link_hash_entry *havr,
20169 + struct bfd_link_info *info ATTRIBUTE_UNUSED)
20170 +{
20171 + struct elf_link_hash_entry *h = &havr->root;
20172 +
20173 + if (havr->sym_frag && (h->root.type == bfd_link_hash_defined
20174 + || h->root.type == bfd_link_hash_defweak))
20175 + {
20176 + RDBG("adjust_global_symbol: %s 0x%08lx -> 0x%08lx\n",
20177 + h->root.root.string, h->root.u.def.value,
20178 + h->root.u.def.value + havr->sym_frag->offset_adjust);
20179 + h->root.u.def.value += havr->sym_frag->offset_adjust;
20180 + }
20181 + return TRUE;
20182 +}
20183 +
20184 +static bfd_boolean
20185 +adjust_syms(struct bfd_link_info *info)
20186 +{
20187 + struct elf_avr32_link_hash_table *htab;
20188 + bfd *abfd;
20189 +
20190 + htab = avr32_elf_hash_table(info);
20191 + elf_link_hash_traverse(&htab->root, adjust_global_symbol, info);
20192 +
20193 + for (abfd = info->input_bfds; abfd; abfd = abfd->link_next)
20194 + {
20195 + Elf_Internal_Sym *isymbuf;
20196 + struct fragment **local_sym_frag, *frag;
20197 + unsigned int i, sym_count;
20198 +
20199 + sym_count = elf_tdata(abfd)->symtab_hdr.sh_info;
20200 + if (sym_count == 0)
20201 + continue;
20202 +
20203 + isymbuf = retrieve_local_syms(abfd, info->keep_memory);
20204 + if (!isymbuf)
20205 + return FALSE;
20206 +
20207 + local_sym_frag = elf_tdata(abfd)->local_sym_frag;
20208 +
20209 + for (i = 0; i < sym_count; i++)
20210 + {
20211 + frag = local_sym_frag[i];
20212 + if (frag)
20213 + {
20214 + RDBG("adjust_local_symbol: %s[%u] 0x%08lx -> 0x%08lx\n",
20215 + abfd->filename, i, isymbuf[i].st_value,
20216 + isymbuf[i].st_value + frag->offset_adjust);
20217 + isymbuf[i].st_value += frag->offset_adjust;
20218 + }
20219 + }
20220 +
20221 + release_local_syms(abfd, isymbuf);
20222 + }
20223 +
20224 + htab->symbols_adjusted = TRUE;
20225 + return TRUE;
20226 +}
20227 +
20228 +static bfd_boolean
20229 +adjust_relocs(bfd *abfd, asection *sec, struct bfd_link_info *info)
20230 +{
20231 + struct avr32_relax_data *rd;
20232 + Elf_Internal_Rela *relocs;
20233 + Elf_Internal_Shdr *symtab_hdr;
20234 + unsigned int i;
20235 + bfd_boolean ret = FALSE;
20236 +
20237 + rd = avr32_relax_data(sec);
20238 + if (!rd->reloc_data)
20239 + return TRUE;
20240 +
20241 + RDBG("adjust_relocs: %s<%s> (count: %u)\n", abfd->filename, sec->name,
20242 + sec->reloc_count);
20243 +
20244 + relocs = retrieve_internal_relocs(abfd, sec, info->keep_memory);
20245 + if (!relocs)
20246 + return FALSE;
20247 +
20248 + symtab_hdr = &elf_tdata(abfd)->symtab_hdr;
20249 +
20250 + for (i = 0; i < sec->reloc_count; i++)
20251 + {
20252 + Elf_Internal_Rela *rela = &relocs[i];
20253 + struct avr32_reloc_data *r_data = &rd->reloc_data[i];
20254 + struct fragment *sym_frag;
20255 + unsigned long r_symndx;
20256 +
20257 + if (r_data->add_frag)
20258 + {
20259 + r_symndx = ELF_R_SYM(rela->r_info);
20260 +
20261 + if (r_symndx < symtab_hdr->sh_info)
20262 + sym_frag = elf_tdata(abfd)->local_sym_frag[r_symndx];
20263 + else
20264 + {
20265 + struct elf_link_hash_entry *h;
20266 +
20267 + h = elf_sym_hashes(abfd)[r_symndx - symtab_hdr->sh_info];
20268 +
20269 + while (h->root.type == bfd_link_hash_indirect
20270 + || h->root.type == bfd_link_hash_warning)
20271 + h = (struct elf_link_hash_entry *)h->root.u.i.link;
20272 +
20273 + BFD_ASSERT(h->root.type == bfd_link_hash_defined
20274 + || h->root.type == bfd_link_hash_defweak);
20275 +
20276 + sym_frag = ((struct elf_avr32_link_hash_entry *)h)->sym_frag;
20277 + }
20278 +
20279 + RDBG(" addend: 0x%08lx -> 0x%08lx\n",
20280 + rela->r_addend,
20281 + rela->r_addend + r_data->add_frag->offset_adjust
20282 + - (sym_frag ? sym_frag->offset_adjust : 0));
20283 +
20284 + /* If this is against a section symbol, we won't find any
20285 + sym_frag, so we'll just adjust the addend. */
20286 + rela->r_addend += r_data->add_frag->offset_adjust;
20287 + if (sym_frag)
20288 + rela->r_addend -= sym_frag->offset_adjust;
20289 +
20290 + if (r_data->sub_frag)
20291 + {
20292 + bfd_byte *contents;
20293 + bfd_signed_vma diff;
20294 +
20295 + contents = retrieve_contents(abfd, sec, info->keep_memory);
20296 + if (!contents)
20297 + goto out;
20298 +
20299 + /* I realize now that sub_frag is misnamed. It's
20300 + actually add_frag which is subtracted in this
20301 + case... */
20302 + diff = bfd_get_signed_32(abfd, contents + rela->r_offset);
20303 + diff += (r_data->sub_frag->offset_adjust
20304 + - r_data->add_frag->offset_adjust);
20305 + bfd_put_32(abfd, diff, contents + rela->r_offset);
20306 +
20307 + RDBG(" 0x%lx: DIFF32 updated: 0x%lx\n", rela->r_offset, diff);
20308 +
20309 + release_contents(sec, contents);
20310 + }
20311 + }
20312 + else
20313 + BFD_ASSERT(!r_data->sub_frag);
20314 + }
20315 +
20316 + ret = TRUE;
20317 +
20318 + out:
20319 + release_internal_relocs(sec, relocs);
20320 + return ret;
20321 +}
20322 +
20323 +static bfd_boolean
20324 +avr32_move_data(bfd *abfd, asection *sec, struct bfd_link_info *info)
20325 +{
20326 + struct elf_avr32_link_hash_table *htab;
20327 + struct avr32_relax_data *rd;
20328 + struct fragment *frag, *fragend;
20329 + Elf_Internal_Rela *relocs = NULL;
20330 + bfd_byte *contents = NULL;
20331 + unsigned int i;
20332 + bfd_boolean ret = FALSE;
20333 +
20334 + htab = avr32_elf_hash_table(info);
20335 + rd = avr32_relax_data(sec);
20336 +
20337 + if (!htab->symbols_adjusted)
20338 + if (!adjust_syms(info))
20339 + return FALSE;
20340 +
20341 + if (rd->is_relaxable)
20342 + {
20343 + /* Resize the section first, so that we can be sure that enough
20344 + memory is allocated in case the section has grown. */
20345 + if (sec->size > sec->rawsize
20346 + && elf_section_data(sec)->this_hdr.contents)
20347 + {
20348 + /* We must not use cached data if the section has grown. */
20349 + free(elf_section_data(sec)->this_hdr.contents);
20350 + elf_section_data(sec)->this_hdr.contents = NULL;
20351 + }
20352 +
20353 + relocs = retrieve_internal_relocs(abfd, sec, info->keep_memory);
20354 + if (!relocs)
20355 + goto out;
20356 + contents = retrieve_contents(abfd, sec, info->keep_memory);
20357 + if (!contents)
20358 + goto out;
20359 +
20360 + fragend = rd->frag + rd->frag_count;
20361 +
20362 + RDBG("move_data: %s<%s>: relocs=%p, contents=%p\n",
20363 + abfd->filename, sec->name, relocs, contents);
20364 +
20365 + /* First, move the data into place. We must take care to move
20366 + frags in the right order so that we don't accidentally
20367 + overwrite parts of the next frag. */
20368 + for (frag = rd->frag; frag < fragend; frag++)
20369 + {
20370 + RDBG(" 0x%08lx%c0x%x: size 0x%lx%c0x%x\n",
20371 + frag->offset, frag->offset_adjust >= 0 ? '+' : '-',
20372 + abs(frag->offset_adjust),
20373 + frag->size, frag->size_adjust >= 0 ? '+' : '-',
20374 + abs(frag->size_adjust));
20375 + if (frag->offset_adjust > 0)
20376 + {
20377 + struct fragment *prev = frag - 1;
20378 + struct fragment *last;
20379 +
20380 + for (last = frag; last < fragend && last->offset_adjust > 0;
20381 + last++) ;
20382 +
20383 + if (last == fragend)
20384 + last--;
20385 +
20386 + for (frag = last; frag != prev; frag--)
20387 + {
20388 + if (frag->offset_adjust
20389 + && frag->size + frag->size_adjust > 0)
20390 + {
20391 + RDBG("memmove 0x%lx -> 0x%lx (size %lu)\n",
20392 + frag->offset, frag->offset + frag->offset_adjust,
20393 + frag->size + frag->size_adjust);
20394 + memmove(contents + frag->offset + frag->offset_adjust,
20395 + contents + frag->offset,
20396 + frag->size + frag->size_adjust);
20397 + }
20398 + }
20399 + frag = last;
20400 + }
20401 + else if (frag->offset_adjust && frag->size + frag->size_adjust > 0)
20402 + {
20403 + RDBG("memmove 0x%lx -> 0x%lx (size %lu)\n",
20404 + frag->offset, frag->offset + frag->offset_adjust,
20405 + frag->size + frag->size_adjust);
20406 + memmove(contents + frag->offset + frag->offset_adjust,
20407 + contents + frag->offset,
20408 + frag->size + frag->size_adjust);
20409 + }
20410 + }
20411 +
20412 + i = 0;
20413 +
20414 + for (frag = rd->frag; frag < fragend; frag++)
20415 + {
20416 + const struct relax_state *state, *istate;
20417 + struct avr32_reloc_data *r_data = NULL;
20418 +
20419 + istate = &relax_state[frag->initial_state];
20420 + state = &relax_state[frag->state];
20421 +
20422 + if (rd->reloc_data)
20423 + r_data = &rd->reloc_data[frag->rela - relocs];
20424 +
20425 + BFD_ASSERT((long)(frag->size + frag->size_adjust) >= 0);
20426 + BFD_ASSERT(state->reftype != REF_CPOOL
20427 + || r_data->add_frag->refcount > 0);
20428 +
20429 + if (istate->reftype == REF_CPOOL && state->reftype != REF_CPOOL)
20430 + {
20431 + struct fragment *ifrag;
20432 +
20433 + /* An indirect reference through the cpool has been
20434 + converted to a direct reference. We must update the
20435 + reloc to point to the symbol itself instead of the
20436 + constant pool entry. The reloc type will be updated
20437 + later. */
20438 + ifrag = r_data->add_frag;
20439 + frag->rela->r_info = ifrag->rela->r_info;
20440 + frag->rela->r_addend = ifrag->rela->r_addend;
20441 +
20442 + /* Copy the reloc data so the addend will be adjusted
20443 + correctly later. */
20444 + *r_data = rd->reloc_data[ifrag->rela - relocs];
20445 + }
20446 +
20447 + /* Move all relocs covered by this frag. */
20448 + if (frag->rela)
20449 + BFD_ASSERT(&relocs[i] <= frag->rela);
20450 + else
20451 + BFD_ASSERT((frag + 1) == fragend && frag->state == RS_NONE);
20452 +
20453 + if (frag == rd->frag)
20454 + BFD_ASSERT(i == 0);
20455 + else
20456 + BFD_ASSERT(&relocs[i] > frag[-1].rela);
20457 +
20458 + /* If non-null, frag->rela is the last relocation in the
20459 + fragment. frag->rela can only be null in the last
20460 + fragment, so in that case, we'll just do the rest. */
20461 + for (; (i < sec->reloc_count
20462 + && (!frag->rela || &relocs[i] <= frag->rela)); i++)
20463 + {
20464 + RDBG("[%4u] r_offset 0x%08lx -> 0x%08lx\n", i, relocs[i].r_offset,
20465 + relocs[i].r_offset + frag->offset_adjust);
20466 + relocs[i].r_offset += frag->offset_adjust;
20467 + }
20468 +
20469 + if (frag->refcount == 0)
20470 + {
20471 + /* If this frag is to be discarded, make sure we won't
20472 + relocate it later on. */
20473 + BFD_ASSERT(frag->state == RS_CPENT);
20474 + frag->rela->r_info = ELF_R_INFO(ELF_R_SYM(frag->rela->r_info),
20475 + R_AVR32_NONE);
20476 + }
20477 + else if (frag->state == RS_ALIGN)
20478 + {
20479 + bfd_vma addr, addr_end;
20480 +
20481 + addr = frag->rela->r_offset;
20482 + addr_end = (frag->offset + frag->offset_adjust
20483 + + frag->size + frag->size_adjust);
20484 +
20485 + /* If the section is executable, insert NOPs.
20486 + Otherwise, insert zeroes. */
20487 + if (sec->flags & SEC_CODE)
20488 + {
20489 + if (addr & 1)
20490 + {
20491 + bfd_put_8(abfd, 0, contents + addr);
20492 + addr++;
20493 + }
20494 +
20495 + BFD_ASSERT(!((addr_end - addr) & 1));
20496 +
20497 + while (addr < addr_end)
20498 + {
20499 + bfd_put_16(abfd, NOP_OPCODE, contents + addr);
20500 + addr += 2;
20501 + }
20502 + }
20503 + else
20504 + memset(contents + addr, 0, addr_end - addr);
20505 + }
20506 + else if (state->opcode_mask)
20507 + {
20508 + bfd_vma insn;
20509 +
20510 + /* Update the opcode and the relocation type unless it's a
20511 + "special" relax state (i.e. RS_NONE, RS_ALIGN or
20512 + RS_CPENT.), in which case the opcode mask is zero. */
20513 + insn = bfd_get_32(abfd, contents + frag->rela->r_offset);
20514 + insn &= ~state->opcode_mask;
20515 + insn |= state->opcode;
20516 + RDBG(" 0x%lx: inserting insn %08lx\n",
20517 + frag->rela->r_offset, insn);
20518 + bfd_put_32(abfd, insn, contents + frag->rela->r_offset);
20519 +
20520 + frag->rela->r_info = ELF_R_INFO(ELF_R_SYM(frag->rela->r_info),
20521 + state->r_type);
20522 + }
20523 +
20524 + if ((frag + 1) == fragend)
20525 + BFD_ASSERT((frag->offset + frag->size + frag->offset_adjust
20526 + + frag->size_adjust) == sec->size);
20527 + else
20528 + BFD_ASSERT((frag->offset + frag->size + frag->offset_adjust
20529 + + frag->size_adjust)
20530 + == (frag[1].offset + frag[1].offset_adjust));
20531 + }
20532 + }
20533 +
20534 + /* Adjust reloc addends and DIFF32 differences */
20535 + if (!adjust_relocs(abfd, sec, info))
20536 + return FALSE;
20537 +
20538 + ret = TRUE;
20539 +
20540 + out:
20541 + release_contents(sec, contents);
20542 + release_internal_relocs(sec, relocs);
20543 + return ret;
20544 +}
20545 +
20546 +static bfd_boolean
20547 +avr32_elf_relax_section(bfd *abfd, asection *sec,
20548 + struct bfd_link_info *info, bfd_boolean *again)
20549 +{
20550 + struct elf_avr32_link_hash_table *htab;
20551 + struct avr32_relax_data *rd;
20552 +
20553 + *again = FALSE;
20554 + if (info->relocatable)
20555 + return TRUE;
20556 +
20557 + htab = avr32_elf_hash_table(info);
20558 + if ((!(sec->flags & SEC_RELOC) || sec->reloc_count == 0)
20559 + && sec != htab->sgot)
20560 + return TRUE;
20561 +
20562 + if (!htab->relocations_analyzed)
20563 + {
20564 + if (!analyze_relocations(info))
20565 + return FALSE;
20566 + htab->relocations_analyzed = TRUE;
20567 + }
20568 +
20569 + rd = avr32_relax_data(sec);
20570 +
20571 + if (rd->iteration != htab->relax_iteration)
20572 + {
20573 + if (!htab->repeat_pass)
20574 + htab->relax_pass++;
20575 + htab->relax_iteration++;
20576 + htab->repeat_pass = FALSE;
20577 + }
20578 +
20579 + rd->iteration++;
20580 +
20581 + switch (htab->relax_pass)
20582 + {
20583 + case RELAX_PASS_SIZE_FRAGS:
20584 + if (!avr32_size_frags(abfd, sec, info))
20585 + return FALSE;
20586 + *again = TRUE;
20587 + break;
20588 + case RELAX_PASS_MOVE_DATA:
20589 + if (!avr32_move_data(abfd, sec, info))
20590 + return FALSE;
20591 + break;
20592 + }
20593 +
20594 + return TRUE;
20595 +}
20596 +
20597 +\f
20598 +/* Relocation */
20599 +
20600 +static bfd_reloc_status_type
20601 +avr32_check_reloc_value(asection *sec, Elf_Internal_Rela *rela,
20602 + bfd_signed_vma relocation, reloc_howto_type *howto);
20603 +static bfd_reloc_status_type
20604 +avr32_final_link_relocate(reloc_howto_type *howto, bfd *input_bfd,
20605 + asection *input_section, bfd_byte *contents,
20606 + Elf_Internal_Rela *rel, bfd_vma value);
20607 +static bfd_boolean
20608 +avr32_elf_relocate_section(bfd *output_bfd, struct bfd_link_info *info,
20609 + bfd *input_bfd, asection *input_section,
20610 + bfd_byte *contents, Elf_Internal_Rela *relocs,
20611 + Elf_Internal_Sym *local_syms,
20612 + asection **local_sections);
20613 +
20614 +
20615 +#define symbol_address(symbol) \
20616 + symbol->value + symbol->section->output_section->vma \
20617 + + symbol->section->output_offset
20618 +
20619 +#define avr32_elf_insert_field(size, field, abfd, reloc_entry, data) \
20620 + do \
20621 + { \
20622 + unsigned long x; \
20623 + x = bfd_get_##size (abfd, data + reloc_entry->address); \
20624 + x &= ~reloc_entry->howto->dst_mask; \
20625 + x |= field & reloc_entry->howto->dst_mask; \
20626 + bfd_put_##size (abfd, (bfd_vma) x, data + reloc_entry->address); \
20627 + } \
20628 + while(0)
20629 +
20630 +static bfd_reloc_status_type
20631 +avr32_check_reloc_value(asection *sec ATTRIBUTE_UNUSED,
20632 + Elf_Internal_Rela *rela ATTRIBUTE_UNUSED,
20633 + bfd_signed_vma relocation,
20634 + reloc_howto_type *howto)
20635 +{
20636 + bfd_vma reloc_u;
20637 +
20638 + /* We take "complain_overflow_dont" to mean "don't complain on
20639 + alignment either". This way, we don't have to special-case
20640 + R_AVR32_HI16 */
20641 + if (howto->complain_on_overflow == complain_overflow_dont)
20642 + return bfd_reloc_ok;
20643 +
20644 + /* Check if the value is correctly aligned */
20645 + if (relocation & ((1 << howto->rightshift) - 1))
20646 + {
20647 + RDBG("misaligned: %s<%s+%lx>: %s: 0x%lx (align %u)\n",
20648 + sec->owner->filename, sec->name, rela->r_offset,
20649 + howto->name, relocation, howto->rightshift);
20650 + return bfd_reloc_overflow;
20651 + }
20652 +
20653 + /* Now, get rid of the unnecessary bits */
20654 + relocation >>= howto->rightshift;
20655 + reloc_u = (bfd_vma)relocation;
20656 +
20657 + switch (howto->complain_on_overflow)
20658 + {
20659 + case complain_overflow_unsigned:
20660 + case complain_overflow_bitfield:
20661 + if (reloc_u > (unsigned long)((1 << howto->bitsize) - 1))
20662 + {
20663 + RDBG("unsigned overflow: %s<%s+%lx>: %s: 0x%lx (size %u)\n",
20664 + sec->owner->filename, sec->name, rela->r_offset,
20665 + howto->name, reloc_u, howto->bitsize);
20666 + RDBG("reloc vma: 0x%lx\n",
20667 + sec->output_section->vma + sec->output_offset + rela->r_offset);
20668 +
20669 + return bfd_reloc_overflow;
20670 + }
20671 + break;
20672 + case complain_overflow_signed:
20673 + if (relocation > (1 << (howto->bitsize - 1)) - 1)
20674 + {
20675 + RDBG("signed overflow: %s<%s+%lx>: %s: 0x%lx (size %u)\n",
20676 + sec->owner->filename, sec->name, rela->r_offset,
20677 + howto->name, reloc_u, howto->bitsize);
20678 + RDBG("reloc vma: 0x%lx\n",
20679 + sec->output_section->vma + sec->output_offset + rela->r_offset);
20680 +
20681 + return bfd_reloc_overflow;
20682 + }
20683 + if (relocation < -(1 << (howto->bitsize - 1)))
20684 + {
20685 + RDBG("signed overflow: %s<%s+%lx>: %s: -0x%lx (size %u)\n",
20686 + sec->owner->filename, sec->name, rela->r_offset,
20687 + howto->name, -relocation, howto->bitsize);
20688 + RDBG("reloc vma: 0x%lx\n",
20689 + sec->output_section->vma + sec->output_offset + rela->r_offset);
20690 +
20691 + return bfd_reloc_overflow;
20692 + }
20693 + break;
20694 + default:
20695 + abort();
20696 + }
20697 +
20698 + return bfd_reloc_ok;
20699 +}
20700 +
20701 +
20702 +static bfd_reloc_status_type
20703 +avr32_final_link_relocate(reloc_howto_type *howto,
20704 + bfd *input_bfd,
20705 + asection *input_section,
20706 + bfd_byte *contents,
20707 + Elf_Internal_Rela *rel,
20708 + bfd_vma value)
20709 +{
20710 + bfd_vma field;
20711 + bfd_vma relocation;
20712 + bfd_reloc_status_type status;
20713 + bfd_byte *p = contents + rel->r_offset;
20714 + unsigned long x;
20715 +
20716 + pr_debug(" (6b) final link relocate\n");
20717 +
20718 + /* Sanity check the address */
20719 + if (rel->r_offset > input_section->size)
20720 + {
20721 + (*_bfd_error_handler)
20722 + ("%B: %A+0x%lx: offset out of range (section size: 0x%lx)",
20723 + input_bfd, input_section, rel->r_offset, input_section->size);
20724 + return bfd_reloc_outofrange;
20725 + }
20726 +
20727 + relocation = value + rel->r_addend;
20728 +
20729 + if (howto->pc_relative)
20730 + {
20731 + bfd_vma addr;
20732 +
20733 + addr = input_section->output_section->vma
20734 + + input_section->output_offset + rel->r_offset;
20735 + addr &= ~0UL << howto->rightshift;
20736 + relocation -= addr;
20737 + }
20738 +
20739 + switch (ELF32_R_TYPE(rel->r_info))
20740 + {
20741 + case R_AVR32_16N_PCREL:
20742 + /* sub reg, pc, . - (sym + addend) */
20743 + relocation = -relocation;
20744 + break;
20745 + }
20746 +
20747 + status = avr32_check_reloc_value(input_section, rel, relocation, howto);
20748 +
20749 + relocation >>= howto->rightshift;
20750 + if (howto->bitsize == 21)
20751 + field = (relocation & 0xffff)
20752 + | ((relocation & 0x10000) << 4)
20753 + | ((relocation & 0x1e0000) << 8);
20754 + else if (howto->bitsize == 12)
20755 + field = (relocation & 0xff) | ((relocation & 0xf00) << 4);
20756 + else if (howto->bitsize == 10)
20757 + field = ((relocation & 0xff) << 4)
20758 + | ((relocation & 0x300) >> 8);
20759 + else
20760 + field = relocation << howto->bitpos;
20761 +
20762 + switch (howto->size)
20763 + {
20764 + case 0:
20765 + x = bfd_get_8 (input_bfd, p);
20766 + x &= ~howto->dst_mask;
20767 + x |= field & howto->dst_mask;
20768 + bfd_put_8 (input_bfd, (bfd_vma) x, p);
20769 + break;
20770 + case 1:
20771 + x = bfd_get_16 (input_bfd, p);
20772 + x &= ~howto->dst_mask;
20773 + x |= field & howto->dst_mask;
20774 + bfd_put_16 (input_bfd, (bfd_vma) x, p);
20775 + break;
20776 + case 2:
20777 + x = bfd_get_32 (input_bfd, p);
20778 + x &= ~howto->dst_mask;
20779 + x |= field & howto->dst_mask;
20780 + bfd_put_32 (input_bfd, (bfd_vma) x, p);
20781 + break;
20782 + default:
20783 + abort();
20784 + }
20785 +
20786 + return status;
20787 +}
20788 +
20789 +/* (6) Apply relocations to the normal (non-dynamic) sections */
20790 +
20791 +static bfd_boolean
20792 +avr32_elf_relocate_section(bfd *output_bfd, struct bfd_link_info *info,
20793 + bfd *input_bfd, asection *input_section,
20794 + bfd_byte *contents, Elf_Internal_Rela *relocs,
20795 + Elf_Internal_Sym *local_syms,
20796 + asection **local_sections)
20797 +{
20798 + struct elf_avr32_link_hash_table *htab;
20799 + Elf_Internal_Shdr *symtab_hdr;
20800 + Elf_Internal_Rela *rel, *relend;
20801 + struct elf_link_hash_entry **sym_hashes;
20802 + struct got_entry **local_got_ents;
20803 + asection *sgot;
20804 + asection *srelgot;
20805 +
20806 + pr_debug("(6) relocate section %s:<%s> (size 0x%lx)\n",
20807 + input_bfd->filename, input_section->name, input_section->size);
20808 +
20809 + /* If we're doing a partial link, we don't have to do anything since
20810 + we're using RELA relocations */
20811 + if (info->relocatable)
20812 + return TRUE;
20813 +
20814 + htab = avr32_elf_hash_table(info);
20815 + symtab_hdr = &elf_tdata(input_bfd)->symtab_hdr;
20816 + sym_hashes = elf_sym_hashes(input_bfd);
20817 + local_got_ents = elf_local_got_ents(input_bfd);
20818 + sgot = htab->sgot;
20819 + srelgot = htab->srelgot;
20820 +
20821 + relend = relocs + input_section->reloc_count;
20822 + for (rel = relocs; rel < relend; rel++)
20823 + {
20824 + unsigned long r_type, r_symndx;
20825 + reloc_howto_type *howto;
20826 + Elf_Internal_Sym *sym = NULL;
20827 + struct elf_link_hash_entry *h = NULL;
20828 + asection *sec = NULL;
20829 + bfd_vma value;
20830 + bfd_vma offset;
20831 + bfd_reloc_status_type status;
20832 +
20833 + r_type = ELF32_R_TYPE(rel->r_info);
20834 + r_symndx = ELF32_R_SYM(rel->r_info);
20835 +
20836 + if (r_type == R_AVR32_NONE
20837 + || r_type == R_AVR32_ALIGN
20838 + || r_type == R_AVR32_DIFF32
20839 + || r_type == R_AVR32_DIFF16
20840 + || r_type == R_AVR32_DIFF8)
20841 + continue;
20842 +
20843 + /* Sanity check */
20844 + if (r_type > R_AVR32_max)
20845 + {
20846 + bfd_set_error(bfd_error_bad_value);
20847 + return FALSE;
20848 + }
20849 +
20850 + howto = &elf_avr32_howto_table[r_type];
20851 +
20852 + if (r_symndx < symtab_hdr->sh_info)
20853 + {
20854 + sym = local_syms + r_symndx;
20855 + sec = local_sections[r_symndx];
20856 +
20857 + pr_debug(" (6a) processing %s against local symbol %lu\n",
20858 + howto->name, r_symndx);
20859 +
20860 + /* The following function changes rel->r_addend behind our back. */
20861 + value = _bfd_elf_rela_local_sym(output_bfd, sym, &sec, rel);
20862 + pr_debug(" => value: %lx, addend: %lx\n", value, rel->r_addend);
20863 + }
20864 + else
20865 + {
20866 + if (sym_hashes == NULL)
20867 + return FALSE;
20868 +
20869 + h = sym_hashes[r_symndx - symtab_hdr->sh_info];
20870 + while (h->root.type == bfd_link_hash_indirect
20871 + || h->root.type == bfd_link_hash_warning)
20872 + h = (struct elf_link_hash_entry *)h->root.u.i.link;
20873 +
20874 + pr_debug(" (6a) processing %s against symbol %s\n",
20875 + howto->name, h->root.root.string);
20876 +
20877 + if (h->root.type == bfd_link_hash_defined
20878 + || h->root.type == bfd_link_hash_defweak)
20879 + {
20880 + bfd_boolean dyn;
20881 +
20882 + dyn = htab->root.dynamic_sections_created;
20883 + sec = h->root.u.def.section;
20884 +
20885 + if (sec->output_section)
20886 + value = (h->root.u.def.value
20887 + + sec->output_section->vma
20888 + + sec->output_offset);
20889 + else
20890 + value = h->root.u.def.value;
20891 + }
20892 + else if (h->root.type == bfd_link_hash_undefweak)
20893 + value = 0;
20894 + else if (info->unresolved_syms_in_objects == RM_IGNORE
20895 + && ELF_ST_VISIBILITY(h->other) == STV_DEFAULT)
20896 + value = 0;
20897 + else
20898 + {
20899 + bfd_boolean err;
20900 + err = (info->unresolved_syms_in_objects == RM_GENERATE_ERROR
20901 + || ELF_ST_VISIBILITY(h->other) != STV_DEFAULT);
20902 + if (!info->callbacks->undefined_symbol
20903 + (info, h->root.root.string, input_bfd,
20904 + input_section, rel->r_offset, err))
20905 + return FALSE;
20906 + value = 0;
20907 + }
20908 +
20909 + pr_debug(" => value: %lx, addend: %lx\n", value, rel->r_addend);
20910 + }
20911 +
20912 + switch (r_type)
20913 + {
20914 + case R_AVR32_GOT32:
20915 + case R_AVR32_GOT16:
20916 + case R_AVR32_GOT8:
20917 + case R_AVR32_GOT21S:
20918 + case R_AVR32_GOT18SW:
20919 + case R_AVR32_GOT16S:
20920 + case R_AVR32_GOT7UW:
20921 + case R_AVR32_LDA_GOT:
20922 + case R_AVR32_GOTCALL:
20923 + BFD_ASSERT(sgot != NULL);
20924 +
20925 + if (h != NULL)
20926 + {
20927 + BFD_ASSERT(h->got.glist->refcount > 0);
20928 + offset = h->got.glist->offset;
20929 +
20930 + BFD_ASSERT(offset < sgot->size);
20931 + if (!elf_hash_table(info)->dynamic_sections_created
20932 + || (h->def_regular
20933 + && (!info->shared
20934 + || info->symbolic
20935 + || h->dynindx == -1)))
20936 + {
20937 + /* This is actually a static link, or it is a
20938 + -Bsymbolic link and the symbol is defined
20939 + locally, or the symbol was forced to be local. */
20940 + bfd_put_32(output_bfd, value, sgot->contents + offset);
20941 + }
20942 + }
20943 + else
20944 + {
20945 + BFD_ASSERT(local_got_ents &&
20946 + local_got_ents[r_symndx]->refcount > 0);
20947 + offset = local_got_ents[r_symndx]->offset;
20948 +
20949 + /* Local GOT entries don't have relocs. If this is a
20950 + shared library, the dynamic linker will add the load
20951 + address to the initial value at startup. */
20952 + BFD_ASSERT(offset < sgot->size);
20953 + pr_debug("Initializing GOT entry at offset %lu: 0x%lx\n",
20954 + offset, value);
20955 + bfd_put_32 (output_bfd, value, sgot->contents + offset);
20956 + }
20957 +
20958 + value = sgot->output_offset + offset;
20959 + pr_debug("GOT reference: New value %lx\n", value);
20960 + break;
20961 +
20962 + case R_AVR32_GOTPC:
20963 + /* This relocation type is for constant pool entries used in
20964 + the calculation "Rd = PC - (PC - GOT)", where the
20965 + constant pool supplies the constant (PC - GOT)
20966 + offset. The symbol value + addend indicates where the
20967 + value of PC is taken. */
20968 + value -= sgot->output_section->vma;
20969 + break;
20970 +
20971 + case R_AVR32_32_PCREL:
20972 + /* We must adjust r_offset to account for discarded data in
20973 + the .eh_frame section. This is probably not the right
20974 + way to do this, since AFAICS all other architectures do
20975 + it some other way. I just can't figure out how... */
20976 + {
20977 + bfd_vma r_offset;
20978 +
20979 + r_offset = _bfd_elf_section_offset(output_bfd, info,
20980 + input_section,
20981 + rel->r_offset);
20982 + if (r_offset == (bfd_vma)-1
20983 + || r_offset == (bfd_vma)-2)
20984 + continue;
20985 + rel->r_offset = r_offset;
20986 + }
20987 + break;
20988 +
20989 + case R_AVR32_32:
20990 + /* We need to emit a run-time relocation in the following cases:
20991 + - we're creating a shared library
20992 + - the symbol is not defined in any regular objects
20993 +
20994 + Of course, sections that aren't going to be part of the
20995 + run-time image will not get any relocs, and undefined
20996 + symbols won't have any either (only weak undefined
20997 + symbols should get this far). */
20998 + if ((info->shared
20999 + || (elf_hash_table(info)->dynamic_sections_created
21000 + && h != NULL
21001 + && h->def_dynamic
21002 + && !h->def_regular))
21003 + && r_symndx != 0
21004 + && (input_section->flags & SEC_ALLOC))
21005 + {
21006 + Elf_Internal_Rela outrel;
21007 + bfd_byte *loc;
21008 + bfd_boolean skip, relocate;
21009 + struct elf_avr32_link_hash_entry *avrh;
21010 +
21011 + pr_debug("Going to generate dynamic reloc...\n");
21012 +
21013 + skip = FALSE;
21014 + relocate = FALSE;
21015 +
21016 + outrel.r_offset = _bfd_elf_section_offset(output_bfd, info,
21017 + input_section,
21018 + rel->r_offset);
21019 + if (outrel.r_offset == (bfd_vma)-1)
21020 + skip = TRUE;
21021 + else if (outrel.r_offset == (bfd_vma)-2)
21022 + skip = TRUE, relocate = TRUE;
21023 +
21024 + outrel.r_offset += (input_section->output_section->vma
21025 + + input_section->output_offset);
21026 +
21027 + pr_debug(" ... offset %lx, dynindx %ld\n",
21028 + outrel.r_offset, h ? h->dynindx : -1);
21029 +
21030 + if (skip)
21031 + memset(&outrel, 0, sizeof(outrel));
21032 + else
21033 + {
21034 + avrh = (struct elf_avr32_link_hash_entry *)h;
21035 + /* h->dynindx may be -1 if this symbol was marked to
21036 + become local. */
21037 + if (h == NULL
21038 + || ((info->symbolic || h->dynindx == -1)
21039 + && h->def_regular))
21040 + {
21041 + relocate = TRUE;
21042 + outrel.r_info = ELF32_R_INFO(0, R_AVR32_RELATIVE);
21043 + outrel.r_addend = value + rel->r_addend;
21044 + pr_debug(" ... R_AVR32_RELATIVE\n");
21045 + }
21046 + else
21047 + {
21048 + BFD_ASSERT(h->dynindx != -1);
21049 + relocate = TRUE;
21050 + outrel.r_info = ELF32_R_INFO(h->dynindx, R_AVR32_GLOB_DAT);
21051 + outrel.r_addend = rel->r_addend;
21052 + pr_debug(" ... R_AVR32_GLOB_DAT\n");
21053 + }
21054 + }
21055 +
21056 + pr_debug("srelgot reloc_count: %d, size %lu\n",
21057 + srelgot->reloc_count, srelgot->size);
21058 +
21059 + loc = srelgot->contents;
21060 + loc += srelgot->reloc_count++ * sizeof(Elf32_External_Rela);
21061 + bfd_elf32_swap_reloca_out(output_bfd, &outrel, loc);
21062 +
21063 + BFD_ASSERT(srelgot->reloc_count * sizeof(Elf32_External_Rela)
21064 + <= srelgot->size);
21065 +
21066 + if (!relocate)
21067 + continue;
21068 + }
21069 + break;
21070 + }
21071 +
21072 + status = avr32_final_link_relocate(howto, input_bfd, input_section,
21073 + contents, rel, value);
21074 +
21075 + switch (status)
21076 + {
21077 + case bfd_reloc_ok:
21078 + break;
21079 +
21080 + case bfd_reloc_overflow:
21081 + {
21082 + const char *name;
21083 +
21084 + if (h != NULL)
21085 + name = h->root.root.string;
21086 + else
21087 + {
21088 + name = bfd_elf_string_from_elf_section(input_bfd,
21089 + symtab_hdr->sh_link,
21090 + sym->st_name);
21091 + if (name == NULL)
21092 + return FALSE;
21093 + if (*name == '\0')
21094 + name = bfd_section_name(input_bfd, sec);
21095 + }
21096 + if (!((*info->callbacks->reloc_overflow)
21097 + (info, (h ? &h->root : NULL), name, howto->name,
21098 + rel->r_addend, input_bfd, input_section, rel->r_offset)))
21099 + return FALSE;
21100 + }
21101 + break;
21102 +
21103 + case bfd_reloc_outofrange:
21104 + default:
21105 + abort();
21106 + }
21107 + }
21108 +
21109 + return TRUE;
21110 +}
21111 +
21112 +\f
21113 +/* Additional processing of dynamic sections after relocation */
21114 +
21115 +static bfd_boolean
21116 +avr32_elf_finish_dynamic_symbol(bfd *output_bfd, struct bfd_link_info *info,
21117 + struct elf_link_hash_entry *h,
21118 + Elf_Internal_Sym *sym);
21119 +static bfd_boolean
21120 +avr32_elf_finish_dynamic_sections(bfd *output_bfd, struct bfd_link_info *info);
21121 +
21122 +
21123 +/* (7) Initialize the contents of a dynamic symbol and/or emit
21124 + relocations for it */
21125 +
21126 +static bfd_boolean
21127 +avr32_elf_finish_dynamic_symbol(bfd *output_bfd, struct bfd_link_info *info,
21128 + struct elf_link_hash_entry *h,
21129 + Elf_Internal_Sym *sym)
21130 +{
21131 + struct elf_avr32_link_hash_table *htab;
21132 + struct got_entry *got;
21133 +
21134 + pr_debug("(7) finish dynamic symbol: %s\n", h->root.root.string);
21135 +
21136 + htab = avr32_elf_hash_table(info);
21137 + got = h->got.glist;
21138 +
21139 + if (got && got->refcount > 0)
21140 + {
21141 + asection *sgot;
21142 + asection *srelgot;
21143 + Elf_Internal_Rela rel;
21144 + bfd_byte *loc;
21145 +
21146 + /* This symbol has an entry in the GOT. Set it up. */
21147 + sgot = htab->sgot;
21148 + srelgot = htab->srelgot;
21149 + BFD_ASSERT(sgot && srelgot);
21150 +
21151 + rel.r_offset = (sgot->output_section->vma
21152 + + sgot->output_offset
21153 + + got->offset);
21154 +
21155 + /* If this is a static link, or it is a -Bsymbolic link and the
21156 + symbol is defined locally or was forced to be local because
21157 + of a version file, we just want to emit a RELATIVE reloc. The
21158 + entry in the global offset table will already have been
21159 + initialized in the relocate_section function. */
21160 + if ((info->shared
21161 + && !info->symbolic
21162 + && h->dynindx != -1)
21163 + || (htab->root.dynamic_sections_created
21164 + && h->def_dynamic
21165 + && !h->def_regular))
21166 + {
21167 + bfd_put_32(output_bfd, 0, sgot->contents + got->offset);
21168 + rel.r_info = ELF32_R_INFO(h->dynindx, R_AVR32_GLOB_DAT);
21169 + rel.r_addend = 0;
21170 +
21171 + pr_debug("GOT reloc R_AVR32_GLOB_DAT, dynindx: %ld\n", h->dynindx);
21172 + pr_debug(" srelgot reloc_count: %d, size: %lu\n",
21173 + srelgot->reloc_count, srelgot->size);
21174 +
21175 + loc = (srelgot->contents
21176 + + srelgot->reloc_count++ * sizeof(Elf32_External_Rela));
21177 + bfd_elf32_swap_reloca_out(output_bfd, &rel, loc);
21178 +
21179 + BFD_ASSERT(srelgot->reloc_count * sizeof(Elf32_External_Rela)
21180 + <= srelgot->size);
21181 + }
21182 + }
21183 +
21184 + /* Mark _DYNAMIC and _GLOBAL_OFFSET_TABLE_ as absolute */
21185 + if (strcmp(h->root.root.string, "_DYNAMIC") == 0
21186 + || strcmp(h->root.root.string, "_GLOBAL_OFFSET_TABLE_") == 0)
21187 + sym->st_shndx = SHN_ABS;
21188 +
21189 + return TRUE;
21190 +}
21191 +
21192 +/* (8) Do any remaining initialization of the dynamic sections */
21193 +
21194 +static bfd_boolean
21195 +avr32_elf_finish_dynamic_sections(bfd *output_bfd, struct bfd_link_info *info)
21196 +{
21197 + struct elf_avr32_link_hash_table *htab;
21198 + asection *sgot, *sdyn;
21199 +
21200 + pr_debug("(8) finish dynamic sections\n");
21201 +
21202 + htab = avr32_elf_hash_table(info);
21203 + sgot = htab->sgot;
21204 + sdyn = bfd_get_section_by_name(htab->root.dynobj, ".dynamic");
21205 +
21206 + if (htab->root.dynamic_sections_created)
21207 + {
21208 + Elf32_External_Dyn *dyncon, *dynconend;
21209 +
21210 + BFD_ASSERT(sdyn && sgot && sgot->size >= AVR32_GOT_HEADER_SIZE);
21211 +
21212 + dyncon = (Elf32_External_Dyn *)sdyn->contents;
21213 + dynconend = (Elf32_External_Dyn *)(sdyn->contents + sdyn->size);
21214 + for (; dyncon < dynconend; dyncon++)
21215 + {
21216 + Elf_Internal_Dyn dyn;
21217 + asection *s;
21218 +
21219 + bfd_elf32_swap_dyn_in(htab->root.dynobj, dyncon, &dyn);
21220 +
21221 + switch (dyn.d_tag)
21222 + {
21223 + default:
21224 + break;
21225 +
21226 + case DT_PLTGOT:
21227 + s = sgot->output_section;
21228 + BFD_ASSERT(s != NULL);
21229 + dyn.d_un.d_ptr = s->vma;
21230 + bfd_elf32_swap_dyn_out(output_bfd, &dyn, dyncon);
21231 + break;
21232 +
21233 + case DT_AVR32_GOTSZ:
21234 + s = sgot->output_section;
21235 + BFD_ASSERT(s != NULL);
21236 + dyn.d_un.d_val = s->size;
21237 + bfd_elf32_swap_dyn_out(output_bfd, &dyn, dyncon);
21238 + break;
21239 + }
21240 + }
21241 +
21242 + /* Fill in the first two entries in the global offset table */
21243 + bfd_put_32(output_bfd,
21244 + sdyn->output_section->vma + sdyn->output_offset,
21245 + sgot->contents);
21246 +
21247 + /* The runtime linker will fill this one in with the address of
21248 + the run-time link map */
21249 + bfd_put_32(output_bfd, 0, sgot->contents + 4);
21250 + }
21251 +
21252 + if (sgot)
21253 + elf_section_data(sgot->output_section)->this_hdr.sh_entsize = 4;
21254 +
21255 + return TRUE;
21256 +}
21257 +
21258 +\f
21259 +/* AVR32-specific private ELF data */
21260 +
21261 +static bfd_boolean
21262 +avr32_elf_set_private_flags(bfd *abfd, flagword flags);
21263 +static bfd_boolean
21264 +avr32_elf_copy_private_bfd_data(bfd *ibfd, bfd *obfd);
21265 +static bfd_boolean
21266 +avr32_elf_merge_private_bfd_data(bfd *ibfd, bfd *obfd);
21267 +static bfd_boolean
21268 +avr32_elf_print_private_bfd_data(bfd *abfd, void *ptr);
21269 +
21270 +static bfd_boolean
21271 +avr32_elf_set_private_flags(bfd *abfd, flagword flags)
21272 +{
21273 + elf_elfheader(abfd)->e_flags = flags;
21274 + elf_flags_init(abfd) = TRUE;
21275 +
21276 + return TRUE;
21277 +}
21278 +
21279 +/* Copy backend specific data from one object module to another. */
21280 +
21281 +static bfd_boolean
21282 +avr32_elf_copy_private_bfd_data(bfd *ibfd, bfd *obfd)
21283 +{
21284 + elf_elfheader(obfd)->e_flags = elf_elfheader(ibfd)->e_flags;
21285 + return TRUE;
21286 +}
21287 +
21288 +/* Merge backend specific data from an object file to the output
21289 + object file when linking. */
21290 +
21291 +static bfd_boolean
21292 +avr32_elf_merge_private_bfd_data(bfd *ibfd, bfd *obfd)
21293 +{
21294 + flagword out_flags, in_flags;
21295 +
21296 + pr_debug("(0) merge_private_bfd_data: %s -> %s\n",
21297 + ibfd->filename, obfd->filename);
21298 +
21299 + in_flags = elf_elfheader(ibfd)->e_flags;
21300 + out_flags = elf_elfheader(obfd)->e_flags;
21301 +
21302 + if (elf_flags_init(obfd))
21303 + {
21304 + /* If one of the inputs are non-PIC, the output must be
21305 + considered non-PIC. The same applies to linkrelax. */
21306 + if (!(in_flags & EF_AVR32_PIC))
21307 + out_flags &= ~EF_AVR32_PIC;
21308 + if (!(in_flags & EF_AVR32_LINKRELAX))
21309 + out_flags &= ~EF_AVR32_LINKRELAX;
21310 + }
21311 + else
21312 + {
21313 + elf_flags_init(obfd) = TRUE;
21314 + out_flags = in_flags;
21315 + }
21316 +
21317 + elf_elfheader(obfd)->e_flags = out_flags;
21318 +
21319 + return TRUE;
21320 +}
21321 +
21322 +static bfd_boolean
21323 +avr32_elf_print_private_bfd_data(bfd *abfd, void *ptr)
21324 +{
21325 + FILE *file = (FILE *)ptr;
21326 + unsigned long flags;
21327 +
21328 + BFD_ASSERT(abfd != NULL && ptr != NULL);
21329 +
21330 + _bfd_elf_print_private_bfd_data(abfd, ptr);
21331 +
21332 + flags = elf_elfheader(abfd)->e_flags;
21333 +
21334 + fprintf(file, _("private flags = %lx:"), elf_elfheader(abfd)->e_flags);
21335 +
21336 + if (flags & EF_AVR32_PIC)
21337 + fprintf(file, " [PIC]");
21338 + if (flags & EF_AVR32_LINKRELAX)
21339 + fprintf(file, " [linker relaxable]");
21340 +
21341 + flags &= ~(EF_AVR32_PIC | EF_AVR32_LINKRELAX);
21342 +
21343 + if (flags)
21344 + fprintf(file, _("<Unrecognized flag bits set>"));
21345 +
21346 + fputc('\n', file);
21347 +
21348 + return TRUE;
21349 +}
21350 +
21351 +/* Set avr32-specific linker options. */
21352 +void bfd_elf32_avr32_set_options(struct bfd_link_info *info,
21353 + int direct_data_refs)
21354 +{
21355 + struct elf_avr32_link_hash_table *htab;
21356 +
21357 + htab = avr32_elf_hash_table (info);
21358 + htab->direct_data_refs = !!direct_data_refs;
21359 +}
21360 +
21361 +
21362 +\f
21363 +/* Understanding core dumps */
21364 +
21365 +static bfd_boolean
21366 +avr32_elf_grok_prstatus(bfd *abfd, Elf_Internal_Note *note);
21367 +static bfd_boolean
21368 +avr32_elf_grok_psinfo(bfd *abfd, Elf_Internal_Note *note);
21369 +
21370 +static bfd_boolean
21371 +avr32_elf_grok_prstatus(bfd *abfd, Elf_Internal_Note *note)
21372 +{
21373 + /* Linux/AVR32B elf_prstatus */
21374 + if (note->descsz != 148)
21375 + return FALSE;
21376 +
21377 + /* pr_cursig */
21378 + elf_tdata(abfd)->core_signal = bfd_get_16(abfd, note->descdata + 12);
21379 +
21380 + /* pr_pid */
21381 + elf_tdata(abfd)->core_pid = bfd_get_32(abfd, note->descdata + 24);
21382 +
21383 + /* Make a ".reg/999" section for pr_reg. The size is for 16
21384 + general-purpose registers, SR and r12_orig (18 * 4 = 72). */
21385 + return _bfd_elfcore_make_pseudosection(abfd, ".reg", 72,
21386 + note->descpos + 72);
21387 +}
21388 +
21389 +static bfd_boolean
21390 +avr32_elf_grok_psinfo(bfd *abfd, Elf_Internal_Note *note)
21391 +{
21392 + /* Linux/AVR32B elf_prpsinfo */
21393 + if (note->descsz != 128)
21394 + return FALSE;
21395 +
21396 + elf_tdata(abfd)->core_program
21397 + = _bfd_elfcore_strndup(abfd, note->descdata + 32, 16);
21398 + elf_tdata(abfd)->core_command
21399 + = _bfd_elfcore_strndup(abfd, note->descdata + 48, 80);
21400 +
21401 + /* Note that for some reason, a spurious space is tacked
21402 + onto the end of the args in some (at least one anyway)
21403 + implementations, so strip it off if it exists. */
21404 +
21405 + {
21406 + char *command = elf_tdata (abfd)->core_command;
21407 + int n = strlen (command);
21408 +
21409 + if (0 < n && command[n - 1] == ' ')
21410 + command[n - 1] = '\0';
21411 + }
21412 +
21413 + return TRUE;
21414 +}
21415 +
21416 +\f
21417 +#define ELF_ARCH bfd_arch_avr32
21418 +#define ELF_MACHINE_CODE EM_AVR32
21419 +#define ELF_MAXPAGESIZE 0x1000
21420 +
21421 +#define TARGET_BIG_SYM bfd_elf32_avr32_vec
21422 +#define TARGET_BIG_NAME "elf32-avr32"
21423 +
21424 +#define elf_backend_grok_prstatus avr32_elf_grok_prstatus
21425 +#define elf_backend_grok_psinfo avr32_elf_grok_psinfo
21426 +
21427 +/* Only RELA relocations are used */
21428 +#define elf_backend_may_use_rel_p 0
21429 +#define elf_backend_may_use_rela_p 1
21430 +#define elf_backend_default_use_rela_p 1
21431 +#define elf_backend_rela_normal 1
21432 +#define elf_info_to_howto_rel NULL
21433 +#define elf_info_to_howto avr32_info_to_howto
21434 +
21435 +#define bfd_elf32_bfd_copy_private_bfd_data avr32_elf_copy_private_bfd_data
21436 +#define bfd_elf32_bfd_merge_private_bfd_data avr32_elf_merge_private_bfd_data
21437 +#define bfd_elf32_bfd_set_private_flags avr32_elf_set_private_flags
21438 +#define bfd_elf32_bfd_print_private_bfd_data avr32_elf_print_private_bfd_data
21439 +#define bfd_elf32_new_section_hook avr32_elf_new_section_hook
21440 +
21441 +#define elf_backend_gc_mark_hook avr32_elf_gc_mark_hook
21442 +#define elf_backend_gc_sweep_hook avr32_elf_gc_sweep_hook
21443 +#define elf_backend_relocate_section avr32_elf_relocate_section
21444 +#define elf_backend_copy_indirect_symbol avr32_elf_copy_indirect_symbol
21445 +#define elf_backend_create_dynamic_sections avr32_elf_create_dynamic_sections
21446 +#define bfd_elf32_bfd_link_hash_table_create avr32_elf_link_hash_table_create
21447 +#define elf_backend_adjust_dynamic_symbol avr32_elf_adjust_dynamic_symbol
21448 +#define elf_backend_size_dynamic_sections avr32_elf_size_dynamic_sections
21449 +#define elf_backend_finish_dynamic_symbol avr32_elf_finish_dynamic_symbol
21450 +#define elf_backend_finish_dynamic_sections avr32_elf_finish_dynamic_sections
21451 +
21452 +#define bfd_elf32_bfd_relax_section avr32_elf_relax_section
21453 +
21454 +/* Find out which symbols need an entry in .got. */
21455 +#define elf_backend_check_relocs avr32_check_relocs
21456 +#define elf_backend_can_refcount 1
21457 +#define elf_backend_can_gc_sections 1
21458 +#define elf_backend_plt_readonly 1
21459 +#define elf_backend_plt_not_loaded 1
21460 +#define elf_backend_want_plt_sym 0
21461 +#define elf_backend_plt_alignment 2
21462 +#define elf_backend_want_dynbss 0
21463 +#define elf_backend_want_got_plt 0
21464 +#define elf_backend_want_got_sym 1
21465 +#define elf_backend_got_header_size AVR32_GOT_HEADER_SIZE
21466 +
21467 +#include "elf32-target.h"
21468 diff -Nrup binutils-2.17/bfd/elf32-avr32.c.orig binutils-2.17.atmel.1.3.0/bfd/elf32-avr32.c.orig
21469 --- binutils-2.17/bfd/elf32-avr32.c.orig 1970-01-01 01:00:00.000000000 +0100
21470 +++ binutils-2.17.atmel.1.3.0/bfd/elf32-avr32.c.orig 2007-05-31 17:03:36.000000000 +0200
21471 @@ -0,0 +1,3880 @@
21472 +/* AVR32-specific support for 32-bit ELF.
21473 + Copyright 2003-2006 Atmel Corporation.
21474 +
21475 + Written by Haavard Skinnemoen, Atmel Norway, <hskinnemoen@atmel.com>
21476 +
21477 + This file is part of BFD, the Binary File Descriptor library.
21478 +
21479 + This program is free software; you can redistribute it and/or modify
21480 + it under the terms of the GNU General Public License as published by
21481 + the Free Software Foundation; either version 2 of the License, or
21482 + (at your option) any later version.
21483 +
21484 + This program is distributed in the hope that it will be useful,
21485 + but WITHOUT ANY WARRANTY; without even the implied warranty of
21486 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21487 + GNU General Public License for more details.
21488 +
21489 + You should have received a copy of the GNU General Public License
21490 + along with this program; if not, write to the Free Software
21491 + Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
21492 +
21493 +#include "bfd.h"
21494 +#include "sysdep.h"
21495 +#include "bfdlink.h"
21496 +#include "libbfd.h"
21497 +#include "elf-bfd.h"
21498 +#include "elf/avr32.h"
21499 +
21500 +#define xDEBUG
21501 +#define xRELAX_DEBUG
21502 +
21503 +#ifdef DEBUG
21504 +# define pr_debug(fmt, args...) fprintf(stderr, fmt, ##args)
21505 +#else
21506 +# define pr_debug(fmt, args...) do { } while (0)
21507 +#endif
21508 +
21509 +#ifdef RELAX_DEBUG
21510 +# define RDBG(fmt, args...) fprintf(stderr, fmt, ##args)
21511 +#else
21512 +# define RDBG(fmt, args...) do { } while (0)
21513 +#endif
21514 +
21515 +/* When things go wrong, we want it to blow up, damnit! */
21516 +#undef BFD_ASSERT
21517 +#undef abort
21518 +#define BFD_ASSERT(expr) \
21519 + do \
21520 + { \
21521 + if (!(expr)) \
21522 + { \
21523 + bfd_assert(__FILE__, __LINE__); \
21524 + abort(); \
21525 + } \
21526 + } \
21527 + while (0)
21528 +
21529 +/* The name of the dynamic interpreter. This is put in the .interp section. */
21530 +#define ELF_DYNAMIC_INTERPRETER "/lib/ld.so.1"
21531 +
21532 +#define AVR32_GOT_HEADER_SIZE 8
21533 +#define AVR32_FUNCTION_STUB_SIZE 8
21534 +
21535 +#define ELF_R_INFO(x, y) ELF32_R_INFO(x, y)
21536 +#define ELF_R_TYPE(x) ELF32_R_TYPE(x)
21537 +#define ELF_R_SYM(x) ELF32_R_SYM(x)
21538 +
21539 +#define NOP_OPCODE 0xd703
21540 +
21541 +\f
21542 +/* Mapping between BFD relocations and ELF relocations */
21543 +
21544 +static reloc_howto_type *
21545 +bfd_elf32_bfd_reloc_type_lookup(bfd *abfd, bfd_reloc_code_real_type code);
21546 +static void
21547 +avr32_info_to_howto (bfd *abfd, arelent *cache_ptr, Elf_Internal_Rela *dst);
21548 +
21549 +/* Generic HOWTO */
21550 +#define GENH(name, align, size, bitsize, pcrel, bitpos, complain, mask) \
21551 + HOWTO(name, align, size, bitsize, pcrel, bitpos, \
21552 + complain_overflow_##complain, bfd_elf_generic_reloc, #name, \
21553 + FALSE, 0, mask, pcrel)
21554 +
21555 +static reloc_howto_type elf_avr32_howto_table[] = {
21556 + /* NAME ALN SZ BSZ PCREL BP COMPLAIN MASK */
21557 + GENH(R_AVR32_NONE, 0, 0, 0, FALSE, 0, dont, 0x00000000),
21558 +
21559 + GENH(R_AVR32_32, 0, 2, 32, FALSE, 0, dont, 0xffffffff),
21560 + GENH(R_AVR32_16, 0, 1, 16, FALSE, 0, bitfield, 0x0000ffff),
21561 + GENH(R_AVR32_8, 0, 0, 8, FALSE, 0, bitfield, 0x000000ff),
21562 + GENH(R_AVR32_32_PCREL, 0, 2, 32, TRUE, 0, signed, 0xffffffff),
21563 + GENH(R_AVR32_16_PCREL, 0, 1, 16, TRUE, 0, signed, 0x0000ffff),
21564 + GENH(R_AVR32_8_PCREL, 0, 0, 8, TRUE, 0, signed, 0x000000ff),
21565 +
21566 + /* Difference between two symbol (sym2 - sym1). The reloc encodes
21567 + the value of sym1. The field contains the difference before any
21568 + relaxing is done. */
21569 + GENH(R_AVR32_DIFF32, 0, 2, 32, FALSE, 0, dont, 0xffffffff),
21570 + GENH(R_AVR32_DIFF16, 0, 1, 16, FALSE, 0, signed, 0x0000ffff),
21571 + GENH(R_AVR32_DIFF8, 0, 0, 8, FALSE, 0, signed, 0x000000ff),
21572 +
21573 + GENH(R_AVR32_GOT32, 0, 2, 32, FALSE, 0, signed, 0xffffffff),
21574 + GENH(R_AVR32_GOT16, 0, 1, 16, FALSE, 0, signed, 0x0000ffff),
21575 + GENH(R_AVR32_GOT8, 0, 0, 8, FALSE, 0, signed, 0x000000ff),
21576 +
21577 + GENH(R_AVR32_21S, 0, 2, 21, FALSE, 0, signed, 0x1e10ffff),
21578 + GENH(R_AVR32_16U, 0, 2, 16, FALSE, 0, unsigned, 0x0000ffff),
21579 + GENH(R_AVR32_16S, 0, 2, 16, FALSE, 0, signed, 0x0000ffff),
21580 + GENH(R_AVR32_8S, 0, 1, 8, FALSE, 4, signed, 0x00000ff0),
21581 + GENH(R_AVR32_8S_EXT, 0, 2, 8, FALSE, 0, signed, 0x000000ff),
21582 +
21583 + GENH(R_AVR32_22H_PCREL, 1, 2, 21, TRUE, 0, signed, 0x1e10ffff),
21584 + GENH(R_AVR32_18W_PCREL, 2, 2, 16, TRUE, 0, signed, 0x0000ffff),
21585 + GENH(R_AVR32_16B_PCREL, 0, 2, 16, TRUE, 0, signed, 0x0000ffff),
21586 + GENH(R_AVR32_16N_PCREL, 0, 2, 16, TRUE, 0, signed, 0x0000ffff),
21587 + GENH(R_AVR32_14UW_PCREL, 2, 2, 12, TRUE, 0, unsigned, 0x0000f0ff),
21588 + GENH(R_AVR32_11H_PCREL, 1, 1, 10, TRUE, 4, signed, 0x00000ff3),
21589 + GENH(R_AVR32_10UW_PCREL, 2, 2, 8, TRUE, 0, unsigned, 0x000000ff),
21590 + GENH(R_AVR32_9H_PCREL, 1, 1, 8, TRUE, 4, signed, 0x00000ff0),
21591 + GENH(R_AVR32_9UW_PCREL, 2, 1, 7, TRUE, 4, unsigned, 0x000007f0),
21592 +
21593 + GENH(R_AVR32_HI16, 16, 2, 16, FALSE, 0, dont, 0x0000ffff),
21594 + GENH(R_AVR32_LO16, 0, 2, 16, FALSE, 0, dont, 0x0000ffff),
21595 +
21596 + GENH(R_AVR32_GOTPC, 0, 2, 32, FALSE, 0, dont, 0xffffffff),
21597 + GENH(R_AVR32_GOTCALL, 2, 2, 21, FALSE, 0, signed, 0x1e10ffff),
21598 + GENH(R_AVR32_LDA_GOT, 2, 2, 21, FALSE, 0, signed, 0x1e10ffff),
21599 + GENH(R_AVR32_GOT21S, 0, 2, 21, FALSE, 0, signed, 0x1e10ffff),
21600 + GENH(R_AVR32_GOT18SW, 2, 2, 16, FALSE, 0, signed, 0x0000ffff),
21601 + GENH(R_AVR32_GOT16S, 0, 2, 16, FALSE, 0, signed, 0x0000ffff),
21602 + GENH(R_AVR32_GOT7UW, 2, 1, 5, FALSE, 4, unsigned, 0x000001f0),
21603 +
21604 + GENH(R_AVR32_32_CPENT, 0, 2, 32, FALSE, 0, dont, 0xffffffff),
21605 + GENH(R_AVR32_CPCALL, 2, 2, 16, TRUE, 0, signed, 0x0000ffff),
21606 + GENH(R_AVR32_16_CP, 0, 2, 16, TRUE, 0, signed, 0x0000ffff),
21607 + GENH(R_AVR32_9W_CP, 2, 1, 7, TRUE, 4, unsigned, 0x000007f0),
21608 +
21609 + GENH(R_AVR32_RELATIVE, 0, 2, 32, FALSE, 0, signed, 0xffffffff),
21610 + GENH(R_AVR32_GLOB_DAT, 0, 2, 32, FALSE, 0, dont, 0xffffffff),
21611 + GENH(R_AVR32_JMP_SLOT, 0, 2, 32, FALSE, 0, dont, 0xffffffff),
21612 +
21613 + GENH(R_AVR32_ALIGN, 0, 1, 0, FALSE, 0, unsigned, 0x00000000),
21614 +};
21615 +
21616 +struct elf_reloc_map
21617 +{
21618 + bfd_reloc_code_real_type bfd_reloc_val;
21619 + unsigned char elf_reloc_val;
21620 +};
21621 +
21622 +static const struct elf_reloc_map avr32_reloc_map[] =
21623 +{
21624 + { BFD_RELOC_NONE, R_AVR32_NONE },
21625 +
21626 + { BFD_RELOC_32, R_AVR32_32 },
21627 + { BFD_RELOC_16, R_AVR32_16 },
21628 + { BFD_RELOC_8, R_AVR32_8 },
21629 + { BFD_RELOC_32_PCREL, R_AVR32_32_PCREL },
21630 + { BFD_RELOC_16_PCREL, R_AVR32_16_PCREL },
21631 + { BFD_RELOC_8_PCREL, R_AVR32_8_PCREL },
21632 + { BFD_RELOC_AVR32_DIFF32, R_AVR32_DIFF32 },
21633 + { BFD_RELOC_AVR32_DIFF16, R_AVR32_DIFF16 },
21634 + { BFD_RELOC_AVR32_DIFF8, R_AVR32_DIFF8 },
21635 + { BFD_RELOC_AVR32_GOT32, R_AVR32_GOT32 },
21636 + { BFD_RELOC_AVR32_GOT16, R_AVR32_GOT16 },
21637 + { BFD_RELOC_AVR32_GOT8, R_AVR32_GOT8 },
21638 +
21639 + { BFD_RELOC_AVR32_21S, R_AVR32_21S },
21640 + { BFD_RELOC_AVR32_16U, R_AVR32_16U },
21641 + { BFD_RELOC_AVR32_16S, R_AVR32_16S },
21642 + { BFD_RELOC_AVR32_SUB5, R_AVR32_16S },
21643 + { BFD_RELOC_AVR32_8S_EXT, R_AVR32_8S_EXT },
21644 + { BFD_RELOC_AVR32_8S, R_AVR32_8S },
21645 +
21646 + { BFD_RELOC_AVR32_22H_PCREL, R_AVR32_22H_PCREL },
21647 + { BFD_RELOC_AVR32_18W_PCREL, R_AVR32_18W_PCREL },
21648 + { BFD_RELOC_AVR32_16B_PCREL, R_AVR32_16B_PCREL },
21649 + { BFD_RELOC_AVR32_16N_PCREL, R_AVR32_16N_PCREL },
21650 + { BFD_RELOC_AVR32_11H_PCREL, R_AVR32_11H_PCREL },
21651 + { BFD_RELOC_AVR32_10UW_PCREL, R_AVR32_10UW_PCREL },
21652 + { BFD_RELOC_AVR32_9H_PCREL, R_AVR32_9H_PCREL },
21653 + { BFD_RELOC_AVR32_9UW_PCREL, R_AVR32_9UW_PCREL },
21654 +
21655 + { BFD_RELOC_HI16, R_AVR32_HI16 },
21656 + { BFD_RELOC_LO16, R_AVR32_LO16 },
21657 +
21658 + { BFD_RELOC_AVR32_GOTPC, R_AVR32_GOTPC },
21659 + { BFD_RELOC_AVR32_GOTCALL, R_AVR32_GOTCALL },
21660 + { BFD_RELOC_AVR32_LDA_GOT, R_AVR32_LDA_GOT },
21661 + { BFD_RELOC_AVR32_GOT21S, R_AVR32_GOT21S },
21662 + { BFD_RELOC_AVR32_GOT18SW, R_AVR32_GOT18SW },
21663 + { BFD_RELOC_AVR32_GOT16S, R_AVR32_GOT16S },
21664 + /* GOT7UW should never be generated by the assembler */
21665 +
21666 + { BFD_RELOC_AVR32_32_CPENT, R_AVR32_32_CPENT },
21667 + { BFD_RELOC_AVR32_CPCALL, R_AVR32_CPCALL },
21668 + { BFD_RELOC_AVR32_16_CP, R_AVR32_16_CP },
21669 + { BFD_RELOC_AVR32_9W_CP, R_AVR32_9W_CP },
21670 +
21671 + { BFD_RELOC_AVR32_ALIGN, R_AVR32_ALIGN },
21672 +};
21673 +
21674 +static reloc_howto_type *
21675 +bfd_elf32_bfd_reloc_type_lookup (bfd *abfd ATTRIBUTE_UNUSED,
21676 + bfd_reloc_code_real_type code)
21677 +{
21678 + unsigned int i;
21679 +
21680 + for (i = 0; i < sizeof(avr32_reloc_map) / sizeof(struct elf_reloc_map); i++)
21681 + {
21682 + if (avr32_reloc_map[i].bfd_reloc_val == code)
21683 + return &elf_avr32_howto_table[avr32_reloc_map[i].elf_reloc_val];
21684 + }
21685 +
21686 + return NULL;
21687 +}
21688 +
21689 +static void
21690 +avr32_info_to_howto (bfd *abfd ATTRIBUTE_UNUSED,
21691 + arelent *cache_ptr,
21692 + Elf_Internal_Rela *dst)
21693 +{
21694 + unsigned int r_type;
21695 +
21696 + r_type = ELF32_R_TYPE (dst->r_info);
21697 + BFD_ASSERT (r_type < (unsigned int) R_AVR32_max);
21698 + cache_ptr->howto = &elf_avr32_howto_table[r_type];
21699 +}
21700 +
21701 +\f
21702 +/* AVR32 ELF linker hash table and associated hash entries. */
21703 +
21704 +static struct bfd_hash_entry *
21705 +avr32_elf_link_hash_newfunc(struct bfd_hash_entry *entry,
21706 + struct bfd_hash_table *table,
21707 + const char *string);
21708 +static void
21709 +avr32_elf_copy_indirect_symbol(struct bfd_link_info *info,
21710 + struct elf_link_hash_entry *dir,
21711 + struct elf_link_hash_entry *ind);
21712 +static struct bfd_link_hash_table *
21713 +avr32_elf_link_hash_table_create(bfd *abfd);
21714 +
21715 +/*
21716 + Try to limit memory usage to something reasonable when sorting the
21717 + GOT. If we ever get more than this many references to the same
21718 + symbol, we may need to do something special.
21719 +*/
21720 +#define MAX_NR_GOT_HOLES 8192
21721 +
21722 +/*
21723 + AVR32 GOT entry. We need to keep track of refcounts and offsets
21724 + simultaneously, since we need the offsets during relaxation, and we
21725 + also want to be able to drop GOT entries during relaxation. In
21726 + addition to this, we want to keep the list of GOT entries sorted so
21727 + that we can keep the most-used entries at the lowest offsets.
21728 +*/
21729 +struct got_entry
21730 +{
21731 + struct got_entry *next;
21732 + struct got_entry **pprev;
21733 + int refcount;
21734 + bfd_signed_vma offset;
21735 +};
21736 +
21737 +struct elf_avr32_link_hash_entry
21738 +{
21739 + struct elf_link_hash_entry root;
21740 +
21741 + /* Number of runtime relocations against this symbol. */
21742 + unsigned int possibly_dynamic_relocs;
21743 +
21744 + /* If there are anything but R_AVR32_GOT18 relocations against this
21745 + symbol, it means that someone may be taking the address of the
21746 + function, and we should therefore not create a stub. */
21747 + bfd_boolean no_fn_stub;
21748 +
21749 + /* If there is a R_AVR32_32 relocation in a read-only section
21750 + against this symbol, we could be in trouble. If we're linking a
21751 + shared library or this symbol is defined in one, it means we must
21752 + emit a run-time reloc for it and that's not allowed in read-only
21753 + sections. */
21754 + asection *readonly_reloc_sec;
21755 + bfd_vma readonly_reloc_offset;
21756 +
21757 + /* Record which frag (if any) contains the symbol. This is used
21758 + during relaxation in order to avoid having to update all symbols
21759 + whenever we move something. For local symbols, this information
21760 + is in the local_sym_frag member of struct elf_obj_tdata. */
21761 + struct fragment *sym_frag;
21762 +};
21763 +#define avr32_elf_hash_entry(ent) ((struct elf_avr32_link_hash_entry *)(ent))
21764 +
21765 +struct elf_avr32_link_hash_table
21766 +{
21767 + struct elf_link_hash_table root;
21768 +
21769 + /* Shortcuts to get to dynamic linker sections. */
21770 + asection *sgot;
21771 + asection *srelgot;
21772 + asection *sstub;
21773 +
21774 + /* We use a variation of Pigeonhole Sort to sort the GOT. After the
21775 + initial refcounts have been determined, we initialize
21776 + nr_got_holes to the highest refcount ever seen and allocate an
21777 + array of nr_got_holes entries for got_hole. Each GOT entry is
21778 + then stored in this array at the index given by its refcount.
21779 +
21780 + When a GOT entry has its refcount decremented during relaxation,
21781 + it is moved to a lower index in the got_hole array.
21782 + */
21783 + struct got_entry **got_hole;
21784 + int nr_got_holes;
21785 +
21786 + /* Dynamic relocations to local symbols. Only used when linking a
21787 + shared library and -Bsymbolic is not given. */
21788 + unsigned int local_dynamic_relocs;
21789 +
21790 + bfd_boolean relocations_analyzed;
21791 + bfd_boolean symbols_adjusted;
21792 + bfd_boolean repeat_pass;
21793 + unsigned int relax_iteration;
21794 + unsigned int relax_pass;
21795 +};
21796 +#define avr32_elf_hash_table(p) \
21797 + ((struct elf_avr32_link_hash_table *)((p)->hash))
21798 +
21799 +static struct bfd_hash_entry *
21800 +avr32_elf_link_hash_newfunc(struct bfd_hash_entry *entry,
21801 + struct bfd_hash_table *table,
21802 + const char *string)
21803 +{
21804 + struct elf_avr32_link_hash_entry *ret = avr32_elf_hash_entry(entry);
21805 +
21806 + /* Allocate the structure if it hasn't already been allocated by a
21807 + subclass */
21808 + if (ret == NULL)
21809 + ret = (struct elf_avr32_link_hash_entry *)
21810 + bfd_hash_allocate(table, sizeof(struct elf_avr32_link_hash_entry));
21811 +
21812 + if (ret == NULL)
21813 + return NULL;
21814 +
21815 + memset(ret, 0, sizeof(struct elf_avr32_link_hash_entry));
21816 +
21817 + /* Give the superclass a chance */
21818 + ret = (struct elf_avr32_link_hash_entry *)
21819 + _bfd_elf_link_hash_newfunc((struct bfd_hash_entry *)ret, table, string);
21820 +
21821 + return (struct bfd_hash_entry *)ret;
21822 +}
21823 +
21824 +/* Copy data from an indirect symbol to its direct symbol, hiding the
21825 + old indirect symbol. Process additional relocation information.
21826 + Also called for weakdefs, in which case we just let
21827 + _bfd_elf_link_hash_copy_indirect copy the flags for us. */
21828 +
21829 +static void
21830 +avr32_elf_copy_indirect_symbol(struct bfd_link_info *info,
21831 + struct elf_link_hash_entry *dir,
21832 + struct elf_link_hash_entry *ind)
21833 +{
21834 + struct elf_avr32_link_hash_entry *edir, *eind;
21835 +
21836 + _bfd_elf_link_hash_copy_indirect (info, dir, ind);
21837 +
21838 + if (ind->root.type != bfd_link_hash_indirect)
21839 + return;
21840 +
21841 + edir = (struct elf_avr32_link_hash_entry *)dir;
21842 + eind = (struct elf_avr32_link_hash_entry *)ind;
21843 +
21844 + edir->possibly_dynamic_relocs += eind->possibly_dynamic_relocs;
21845 + edir->no_fn_stub = edir->no_fn_stub || eind->no_fn_stub;
21846 +}
21847 +
21848 +static struct bfd_link_hash_table *
21849 +avr32_elf_link_hash_table_create(bfd *abfd)
21850 +{
21851 + struct elf_avr32_link_hash_table *ret;
21852 +
21853 + ret = bfd_zmalloc(sizeof(*ret));
21854 + if (ret == NULL)
21855 + return NULL;
21856 +
21857 + if (! _bfd_elf_link_hash_table_init(&ret->root, abfd,
21858 + avr32_elf_link_hash_newfunc,
21859 + sizeof (struct elf_avr32_link_hash_entry)))
21860 + {
21861 + free(ret);
21862 + return NULL;
21863 + }
21864 +
21865 + /* Prevent the BFD core from creating bogus got_entry pointers */
21866 + ret->root.init_got_refcount.glist = NULL;
21867 + ret->root.init_plt_refcount.glist = NULL;
21868 +
21869 + return &ret->root.root;
21870 +}
21871 +
21872 +\f
21873 +/* Initial analysis and creation of dynamic sections and symbols */
21874 +
21875 +static asection *
21876 +create_dynamic_section(bfd *dynobj, const char *name, flagword flags,
21877 + unsigned int align_power);
21878 +static struct elf_link_hash_entry *
21879 +create_dynamic_symbol(bfd *dynobj, struct bfd_link_info *info,
21880 + const char *name, asection *sec,
21881 + bfd_vma offset);
21882 +static bfd_boolean
21883 +avr32_elf_create_got_section (bfd *dynobj, struct bfd_link_info *info);
21884 +static bfd_boolean
21885 +avr32_elf_create_dynamic_sections (bfd *dynobj, struct bfd_link_info *info);
21886 +static bfd_boolean
21887 +avr32_check_relocs (bfd *abfd, struct bfd_link_info *info, asection *sec,
21888 + const Elf_Internal_Rela *relocs);
21889 +static bfd_boolean
21890 +avr32_elf_adjust_dynamic_symbol(struct bfd_link_info *info,
21891 + struct elf_link_hash_entry *h);
21892 +
21893 +static asection *
21894 +create_dynamic_section(bfd *dynobj, const char *name, flagword flags,
21895 + unsigned int align_power)
21896 +{
21897 + asection *sec;
21898 +
21899 + sec = bfd_make_section(dynobj, name);
21900 + if (!sec
21901 + || !bfd_set_section_flags(dynobj, sec, flags)
21902 + || !bfd_set_section_alignment(dynobj, sec, align_power))
21903 + return NULL;
21904 +
21905 + return sec;
21906 +}
21907 +
21908 +static struct elf_link_hash_entry *
21909 +create_dynamic_symbol(bfd *dynobj, struct bfd_link_info *info,
21910 + const char *name, asection *sec,
21911 + bfd_vma offset)
21912 +{
21913 + struct bfd_link_hash_entry *bh = NULL;
21914 + struct elf_link_hash_entry *h;
21915 + const struct elf_backend_data *bed = get_elf_backend_data (dynobj);
21916 +
21917 + if (!(_bfd_generic_link_add_one_symbol
21918 + (info, dynobj, name, BSF_GLOBAL, sec, offset, NULL, FALSE,
21919 + bed->collect, &bh)))
21920 + return NULL;
21921 +
21922 + h = (struct elf_link_hash_entry *)bh;
21923 + h->def_regular = 1;
21924 + h->type = STT_OBJECT;
21925 + h->other = STV_HIDDEN;
21926 +
21927 + return h;
21928 +}
21929 +
21930 +static bfd_boolean
21931 +avr32_elf_create_got_section (bfd *dynobj, struct bfd_link_info *info)
21932 +{
21933 + struct elf_avr32_link_hash_table *htab;
21934 + flagword flags;
21935 + const struct elf_backend_data *bed = get_elf_backend_data (dynobj);
21936 +
21937 + htab = avr32_elf_hash_table(info);
21938 + flags = bed->dynamic_sec_flags;
21939 +
21940 + if (htab->sgot)
21941 + return TRUE;
21942 +
21943 + htab->sgot = create_dynamic_section(dynobj, ".got", flags, 2);
21944 + if (!htab->srelgot)
21945 + htab->srelgot = create_dynamic_section(dynobj, ".rela.got",
21946 + flags | SEC_READONLY, 2);
21947 +
21948 + if (!htab->sgot || !htab->srelgot)
21949 + return FALSE;
21950 +
21951 + htab->root.hgot = create_dynamic_symbol(dynobj, info, "_GLOBAL_OFFSET_TABLE_",
21952 + htab->sgot, 0);
21953 + if (!htab->root.hgot)
21954 + return FALSE;
21955 +
21956 + /* Make room for the GOT header */
21957 + htab->sgot->size += bed->got_header_size;
21958 +
21959 + return TRUE;
21960 +}
21961 +
21962 +/* (1) Create all dynamic (i.e. linker generated) sections that we may
21963 + need during the link */
21964 +
21965 +static bfd_boolean
21966 +avr32_elf_create_dynamic_sections (bfd *dynobj, struct bfd_link_info *info)
21967 +{
21968 + struct elf_avr32_link_hash_table *htab;
21969 + flagword flags;
21970 + const struct elf_backend_data *bed = get_elf_backend_data (dynobj);
21971 +
21972 + pr_debug("(1) create dynamic sections\n");
21973 +
21974 + htab = avr32_elf_hash_table(info);
21975 + flags = bed->dynamic_sec_flags;
21976 +
21977 + if (!avr32_elf_create_got_section (dynobj, info))
21978 + return FALSE;
21979 +
21980 + if (!htab->sstub)
21981 + htab->sstub = create_dynamic_section(dynobj, ".stub",
21982 + flags | SEC_READONLY | SEC_CODE, 2);
21983 +
21984 + if (!htab->sstub)
21985 + return FALSE;
21986 +
21987 + return TRUE;
21988 +}
21989 +
21990 +/* (2) Go through all the relocs and count any potential GOT- or
21991 + PLT-references to each symbol */
21992 +
21993 +static bfd_boolean
21994 +avr32_check_relocs (bfd *abfd, struct bfd_link_info *info, asection *sec,
21995 + const Elf_Internal_Rela *relocs)
21996 +{
21997 + Elf_Internal_Shdr *symtab_hdr;
21998 + struct elf_avr32_link_hash_table *htab;
21999 + struct elf_link_hash_entry **sym_hashes;
22000 + const Elf_Internal_Rela *rel, *rel_end;
22001 + struct got_entry **local_got_ents;
22002 + struct got_entry *got;
22003 + const struct elf_backend_data *bed = get_elf_backend_data (abfd);
22004 + asection *sgot;
22005 + bfd *dynobj;
22006 +
22007 + pr_debug("(2) check relocs for %s:<%s> (size 0x%lx)\n",
22008 + abfd->filename, sec->name, sec->size);
22009 +
22010 + if (info->relocatable)
22011 + return TRUE;
22012 +
22013 + dynobj = elf_hash_table(info)->dynobj;
22014 + symtab_hdr = &elf_tdata(abfd)->symtab_hdr;
22015 + sym_hashes = elf_sym_hashes(abfd);
22016 + htab = avr32_elf_hash_table(info);
22017 + local_got_ents = elf_local_got_ents(abfd);
22018 + sgot = htab->sgot;
22019 +
22020 + rel_end = relocs + sec->reloc_count;
22021 + for (rel = relocs; rel < rel_end; rel++)
22022 + {
22023 + unsigned long r_symndx, r_type;
22024 + struct elf_avr32_link_hash_entry *h;
22025 +
22026 + r_symndx = ELF32_R_SYM(rel->r_info);
22027 + r_type = ELF32_R_TYPE(rel->r_info);
22028 +
22029 + /* Local symbols use local_got_ents, while others store the same
22030 + information in the hash entry */
22031 + if (r_symndx < symtab_hdr->sh_info)
22032 + {
22033 + pr_debug(" (2a) processing local symbol %lu\n", r_symndx);
22034 + h = NULL;
22035 + }
22036 + else
22037 + {
22038 + h = (struct elf_avr32_link_hash_entry *)
22039 + sym_hashes[r_symndx - symtab_hdr->sh_info];
22040 + while (h->root.type == bfd_link_hash_indirect
22041 + || h->root.type == bfd_link_hash_warning)
22042 + h = (struct elf_avr32_link_hash_entry *)h->root.root.u.i.link;
22043 + pr_debug(" (2a) processing symbol %s\n", h->root.root.root.string);
22044 + }
22045 +
22046 + /* Some relocs require special sections to be created. */
22047 + switch (r_type)
22048 + {
22049 + case R_AVR32_GOT32:
22050 + case R_AVR32_GOT16:
22051 + case R_AVR32_GOT8:
22052 + case R_AVR32_GOT21S:
22053 + case R_AVR32_GOT18SW:
22054 + case R_AVR32_GOT16S:
22055 + case R_AVR32_GOT7UW:
22056 + case R_AVR32_LDA_GOT:
22057 + case R_AVR32_GOTCALL:
22058 + if (rel->r_addend)
22059 + {
22060 + if (info->callbacks->reloc_dangerous
22061 + (info, _("Non-zero addend on GOT-relative relocation"),
22062 + abfd, sec, rel->r_offset) == FALSE)
22063 + return FALSE;
22064 + }
22065 + /* fall through */
22066 + case R_AVR32_GOTPC:
22067 + if (dynobj == NULL)
22068 + elf_hash_table(info)->dynobj = dynobj = abfd;
22069 + if (sgot == NULL && !avr32_elf_create_got_section(dynobj, info))
22070 + return FALSE;
22071 + break;
22072 + case R_AVR32_32:
22073 + /* We may need to create .rela.dyn later on. */
22074 + if (dynobj == NULL
22075 + && (info->shared || h != NULL)
22076 + && (sec->flags & SEC_ALLOC))
22077 + elf_hash_table(info)->dynobj = dynobj = abfd;
22078 + break;
22079 + }
22080 +
22081 + if (h != NULL && r_type != R_AVR32_GOT18SW)
22082 + h->no_fn_stub = TRUE;
22083 +
22084 + switch (r_type)
22085 + {
22086 + case R_AVR32_GOT32:
22087 + case R_AVR32_GOT16:
22088 + case R_AVR32_GOT8:
22089 + case R_AVR32_GOT21S:
22090 + case R_AVR32_GOT18SW:
22091 + case R_AVR32_GOT16S:
22092 + case R_AVR32_GOT7UW:
22093 + case R_AVR32_LDA_GOT:
22094 + case R_AVR32_GOTCALL:
22095 + if (h != NULL)
22096 + {
22097 + got = h->root.got.glist;
22098 + if (!got)
22099 + {
22100 + got = bfd_zalloc(abfd, sizeof(struct got_entry));
22101 + if (!got)
22102 + return FALSE;
22103 + h->root.got.glist = got;
22104 + }
22105 + }
22106 + else
22107 + {
22108 + if (!local_got_ents)
22109 + {
22110 + bfd_size_type size;
22111 + bfd_size_type i;
22112 + struct got_entry *tmp_entry;
22113 +
22114 + size = symtab_hdr->sh_info;
22115 + size *= sizeof(struct got_entry *) + sizeof(struct got_entry);
22116 + local_got_ents = bfd_zalloc(abfd, size);
22117 + if (!local_got_ents)
22118 + return FALSE;
22119 +
22120 + elf_local_got_ents(abfd) = local_got_ents;
22121 +
22122 + tmp_entry = (struct got_entry *)(local_got_ents
22123 + + symtab_hdr->sh_info);
22124 + for (i = 0; i < symtab_hdr->sh_info; i++)
22125 + local_got_ents[i] = &tmp_entry[i];
22126 + }
22127 +
22128 + got = local_got_ents[r_symndx];
22129 + }
22130 +
22131 + got->refcount++;
22132 + if (got->refcount > htab->nr_got_holes)
22133 + htab->nr_got_holes = got->refcount;
22134 + break;
22135 +
22136 + case R_AVR32_32:
22137 + if ((info->shared || h != NULL)
22138 + && (sec->flags & SEC_ALLOC))
22139 + {
22140 + if (htab->srelgot == NULL)
22141 + {
22142 + htab->srelgot = create_dynamic_section(dynobj, ".rela.got",
22143 + bed->dynamic_sec_flags
22144 + | SEC_READONLY, 2);
22145 + if (htab->srelgot == NULL)
22146 + return FALSE;
22147 + }
22148 +
22149 + if (sec->flags & SEC_READONLY
22150 + && !h->readonly_reloc_sec)
22151 + {
22152 + h->readonly_reloc_sec = sec;
22153 + h->readonly_reloc_offset = rel->r_offset;
22154 + }
22155 +
22156 + if (h != NULL)
22157 + {
22158 + pr_debug("Non-GOT reference to symbol %s\n",
22159 + h->root.root.root.string);
22160 + h->possibly_dynamic_relocs++;
22161 + }
22162 + else
22163 + {
22164 + pr_debug("Non-GOT reference to local symbol %lu\n",
22165 + r_symndx);
22166 + htab->local_dynamic_relocs++;
22167 + }
22168 + }
22169 +
22170 + break;
22171 +
22172 + /* TODO: GNU_VTINHERIT and GNU_VTENTRY */
22173 + }
22174 + }
22175 +
22176 + return TRUE;
22177 +}
22178 +
22179 +/* (3) Adjust a symbol defined by a dynamic object and referenced by a
22180 + regular object. The current definition is in some section of the
22181 + dynamic object, but we're not including those sections. We have to
22182 + change the definition to something the rest of the link can
22183 + understand. */
22184 +
22185 +static bfd_boolean
22186 +avr32_elf_adjust_dynamic_symbol(struct bfd_link_info *info,
22187 + struct elf_link_hash_entry *h)
22188 +{
22189 + struct elf_avr32_link_hash_table *htab;
22190 + struct elf_avr32_link_hash_entry *havr;
22191 + bfd *dynobj;
22192 +
22193 + pr_debug("(3) adjust dynamic symbol %s\n", h->root.root.string);
22194 +
22195 + htab = avr32_elf_hash_table(info);
22196 + havr = (struct elf_avr32_link_hash_entry *)h;
22197 + dynobj = elf_hash_table(info)->dynobj;
22198 +
22199 + /* Make sure we know what is going on here. */
22200 + BFD_ASSERT (dynobj != NULL
22201 + && (h->u.weakdef != NULL
22202 + || (h->def_dynamic
22203 + && h->ref_regular
22204 + && !h->def_regular)));
22205 +
22206 + /* We don't want dynamic relocations in read-only sections. */
22207 + if (havr->readonly_reloc_sec)
22208 + {
22209 + if (info->callbacks->reloc_dangerous
22210 + (info, _("dynamic relocation in read-only section"),
22211 + havr->readonly_reloc_sec->owner, havr->readonly_reloc_sec,
22212 + havr->readonly_reloc_offset) == FALSE)
22213 + return FALSE;
22214 + }
22215 +
22216 + /* If this is a function, create a stub if possible and set the
22217 + symbol to the stub location. */
22218 + if (0 && !havr->no_fn_stub)
22219 + {
22220 + if (!h->def_regular)
22221 + {
22222 + asection *s = htab->sstub;
22223 +
22224 + BFD_ASSERT(s != NULL);
22225 +
22226 + h->root.u.def.section = s;
22227 + h->root.u.def.value = s->size;
22228 + h->plt.offset = s->size;
22229 + s->size += AVR32_FUNCTION_STUB_SIZE;
22230 +
22231 + return TRUE;
22232 + }
22233 + }
22234 + else if (h->type == STT_FUNC)
22235 + {
22236 + /* This will set the entry for this symbol in the GOT to 0, and
22237 + the dynamic linker will take care of this. */
22238 + h->root.u.def.value = 0;
22239 + return TRUE;
22240 + }
22241 +
22242 + /* If this is a weak symbol, and there is a real definition, the
22243 + processor independent code will have arranged for us to see the
22244 + real definition first, and we can just use the same value. */
22245 + if (h->u.weakdef != NULL)
22246 + {
22247 + BFD_ASSERT(h->u.weakdef->root.type == bfd_link_hash_defined
22248 + || h->u.weakdef->root.type == bfd_link_hash_defweak);
22249 + h->root.u.def.section = h->u.weakdef->root.u.def.section;
22250 + h->root.u.def.value = h->u.weakdef->root.u.def.value;
22251 + return TRUE;
22252 + }
22253 +
22254 + /* This is a reference to a symbol defined by a dynamic object which
22255 + is not a function. */
22256 +
22257 + return TRUE;
22258 +}
22259 +
22260 +\f
22261 +/* Garbage-collection of unused sections */
22262 +
22263 +static asection *
22264 +avr32_elf_gc_mark_hook(asection *sec,
22265 + struct bfd_link_info *info ATTRIBUTE_UNUSED,
22266 + Elf_Internal_Rela *rel,
22267 + struct elf_link_hash_entry *h,
22268 + Elf_Internal_Sym *sym)
22269 +{
22270 + if (h)
22271 + {
22272 + switch (ELF32_R_TYPE(rel->r_info))
22273 + {
22274 + /* TODO: VTINHERIT/VTENTRY */
22275 + default:
22276 + switch (h->root.type)
22277 + {
22278 + case bfd_link_hash_defined:
22279 + case bfd_link_hash_defweak:
22280 + return h->root.u.def.section;
22281 +
22282 + case bfd_link_hash_common:
22283 + return h->root.u.c.p->section;
22284 +
22285 + default:
22286 + break;
22287 + }
22288 + }
22289 + }
22290 + else
22291 + return bfd_section_from_elf_index(sec->owner, sym->st_shndx);
22292 +
22293 + return NULL;
22294 +}
22295 +
22296 +/* Update the GOT entry reference counts for the section being removed. */
22297 +static bfd_boolean
22298 +avr32_elf_gc_sweep_hook(bfd *abfd,
22299 + struct bfd_link_info *info ATTRIBUTE_UNUSED,
22300 + asection *sec,
22301 + const Elf_Internal_Rela *relocs)
22302 +{
22303 + Elf_Internal_Shdr *symtab_hdr;
22304 + struct elf_avr32_link_hash_entry **sym_hashes;
22305 + struct got_entry **local_got_ents;
22306 + const Elf_Internal_Rela *rel, *relend;
22307 +
22308 + if (!(sec->flags & SEC_ALLOC))
22309 + return TRUE;
22310 +
22311 + symtab_hdr = &elf_tdata(abfd)->symtab_hdr;
22312 + sym_hashes = (struct elf_avr32_link_hash_entry **)elf_sym_hashes(abfd);
22313 + local_got_ents = elf_local_got_ents(abfd);
22314 +
22315 + relend = relocs + sec->reloc_count;
22316 + for (rel = relocs; rel < relend; rel++)
22317 + {
22318 + unsigned long r_symndx;
22319 + unsigned int r_type;
22320 + struct elf_avr32_link_hash_entry *h = NULL;
22321 +
22322 + r_symndx = ELF32_R_SYM(rel->r_info);
22323 + if (r_symndx >= symtab_hdr->sh_info)
22324 + {
22325 + h = sym_hashes[r_symndx - symtab_hdr->sh_info];
22326 + while (h->root.root.type == bfd_link_hash_indirect
22327 + || h->root.root.type == bfd_link_hash_warning)
22328 + h = (struct elf_avr32_link_hash_entry *)h->root.root.u.i.link;
22329 + }
22330 +
22331 + r_type = ELF32_R_TYPE(rel->r_info);
22332 +
22333 + switch (r_type)
22334 + {
22335 + case R_AVR32_GOT32:
22336 + case R_AVR32_GOT16:
22337 + case R_AVR32_GOT8:
22338 + case R_AVR32_GOT21S:
22339 + case R_AVR32_GOT18SW:
22340 + case R_AVR32_GOT16S:
22341 + case R_AVR32_GOT7UW:
22342 + case R_AVR32_LDA_GOT:
22343 + case R_AVR32_GOTCALL:
22344 + if (h)
22345 + h->root.got.glist->refcount--;
22346 + else
22347 + local_got_ents[r_symndx]->refcount--;
22348 + break;
22349 +
22350 + case R_AVR32_32:
22351 + if (info->shared || h)
22352 + {
22353 + if (h)
22354 + h->possibly_dynamic_relocs--;
22355 + else
22356 + avr32_elf_hash_table(info)->local_dynamic_relocs--;
22357 + }
22358 +
22359 + default:
22360 + break;
22361 + }
22362 + }
22363 +
22364 + return TRUE;
22365 +}
22366 +\f
22367 +/* Sizing and refcounting of dynamic sections */
22368 +
22369 +static void
22370 +insert_got_entry(struct elf_avr32_link_hash_table *htab, struct got_entry *got);
22371 +static void
22372 +unref_got_entry(struct elf_avr32_link_hash_table *htab, struct got_entry *got);
22373 +static void
22374 +ref_got_entry(struct elf_avr32_link_hash_table *htab, struct got_entry *got);
22375 +static bfd_boolean
22376 +assign_got_offsets(struct elf_avr32_link_hash_table *htab);
22377 +static bfd_boolean
22378 +allocate_dynrelocs(struct elf_link_hash_entry *h, void *_info);
22379 +static bfd_boolean
22380 +avr32_elf_size_dynamic_sections (bfd *output_bfd,
22381 + struct bfd_link_info *info);
22382 +
22383 +static void
22384 +insert_got_entry(struct elf_avr32_link_hash_table *htab, struct got_entry *got)
22385 +{
22386 + /* TODO: Support got_refcount > htab->nr_got_holes by using a
22387 + different sort algorithm for those. */
22388 + BFD_ASSERT(got->refcount <= htab->nr_got_holes);
22389 +
22390 + got->pprev = &htab->got_hole[got->refcount];
22391 + got->next = htab->got_hole[got->refcount];
22392 + if (got->next)
22393 + got->next->pprev = &got->next;
22394 +
22395 + htab->got_hole[got->refcount] = got;
22396 +}
22397 +
22398 +/* Decrement the refcount of a GOT entry and update its position in
22399 + the pigeonhole array. */
22400 +static void
22401 +unref_got_entry(struct elf_avr32_link_hash_table *htab, struct got_entry *got)
22402 +{
22403 + BFD_ASSERT(got->refcount <= htab->nr_got_holes);
22404 + BFD_ASSERT(got->refcount > 0);
22405 +
22406 + if (got->next)
22407 + got->next->pprev = got->pprev;
22408 +
22409 + *(got->pprev) = got->next;
22410 + got->refcount--;
22411 + insert_got_entry(htab, got);
22412 +}
22413 +
22414 +static void
22415 +ref_got_entry(struct elf_avr32_link_hash_table *htab, struct got_entry *got)
22416 +{
22417 + if (got->next)
22418 + got->next->pprev = got->pprev;
22419 +
22420 + *(got->pprev) = got->next;
22421 + got->refcount++;
22422 + insert_got_entry(htab, got);
22423 +
22424 + BFD_ASSERT(got->refcount > 0);
22425 + BFD_ASSERT(got->refcount <= htab->nr_got_holes);
22426 +}
22427 +
22428 +/* Assign offsets to all GOT entries we intend to keep. The entries
22429 + that are referenced most often are placed at low offsets so that we
22430 + can use compact instructions as much as possible.
22431 +
22432 + Returns TRUE if any offsets or the total size of the GOT changed. */
22433 +
22434 +static bfd_boolean
22435 +assign_got_offsets(struct elf_avr32_link_hash_table *htab)
22436 +{
22437 + struct got_entry *got;
22438 + bfd_size_type got_size = 0;
22439 + bfd_boolean changed = FALSE;
22440 + bfd_signed_vma offset;
22441 + int i;
22442 +
22443 + /* The GOT header provides the address of the DYNAMIC segment, so
22444 + we need that even if the GOT is otherwise empty. */
22445 + if (htab->root.dynamic_sections_created)
22446 + got_size = AVR32_GOT_HEADER_SIZE;
22447 +
22448 + for (i = htab->nr_got_holes; i > 0; i--)
22449 + {
22450 + got = htab->got_hole[i];
22451 + while (got)
22452 + {
22453 + if (got->refcount > 0)
22454 + {
22455 + offset = got_size;
22456 + if (got->offset != offset)
22457 + {
22458 + RDBG("GOT offset changed: %ld -> %ld\n",
22459 + got->offset, offset);
22460 + changed = TRUE;
22461 + }
22462 + got->offset = offset;
22463 + got_size += 4;
22464 + }
22465 + got = got->next;
22466 + }
22467 + }
22468 +
22469 + if (htab->sgot->size != got_size)
22470 + {
22471 + RDBG("GOT size changed: %lu -> %lu\n", htab->sgot->size,
22472 + got_size);
22473 + changed = TRUE;
22474 + }
22475 + htab->sgot->size = got_size;
22476 +
22477 + RDBG("assign_got_offsets: total size %lu (%s)\n",
22478 + got_size, changed ? "changed" : "no change");
22479 +
22480 + return changed;
22481 +}
22482 +
22483 +static bfd_boolean
22484 +allocate_dynrelocs(struct elf_link_hash_entry *h, void *_info)
22485 +{
22486 + struct bfd_link_info *info = _info;
22487 + struct elf_avr32_link_hash_table *htab;
22488 + struct elf_avr32_link_hash_entry *havr;
22489 + struct got_entry *got;
22490 +
22491 + pr_debug(" (4b) allocate_dynrelocs: %s\n", h->root.root.string);
22492 +
22493 + if (h->root.type == bfd_link_hash_indirect)
22494 + return TRUE;
22495 +
22496 + if (h->root.type == bfd_link_hash_warning)
22497 + /* When warning symbols are created, they **replace** the "real"
22498 + entry in the hash table, thus we never get to see the real
22499 + symbol in a hash traversal. So look at it now. */
22500 + h = (struct elf_link_hash_entry *) h->root.u.i.link;
22501 +
22502 + htab = avr32_elf_hash_table(info);
22503 + havr = (struct elf_avr32_link_hash_entry *)h;
22504 +
22505 + got = h->got.glist;
22506 +
22507 + /* If got is NULL, the symbol is never referenced through the GOT */
22508 + if (got && got->refcount > 0)
22509 + {
22510 + insert_got_entry(htab, got);
22511 +
22512 + /* Shared libraries need relocs for all GOT entries unless the
22513 + symbol is forced local or -Bsymbolic is used. Others need
22514 + relocs for everything that is not guaranteed to be defined in
22515 + a regular object. */
22516 + if ((info->shared
22517 + && !info->symbolic
22518 + && h->dynindx != -1)
22519 + || (htab->root.dynamic_sections_created
22520 + && h->def_dynamic
22521 + && !h->def_regular))
22522 + htab->srelgot->size += sizeof(Elf32_External_Rela);
22523 + }
22524 +
22525 + if (havr->possibly_dynamic_relocs
22526 + && (info->shared
22527 + || (elf_hash_table(info)->dynamic_sections_created
22528 + && h->def_dynamic
22529 + && !h->def_regular)))
22530 + {
22531 + pr_debug("Allocating %d dynamic reloc against symbol %s...\n",
22532 + havr->possibly_dynamic_relocs, h->root.root.string);
22533 + htab->srelgot->size += (havr->possibly_dynamic_relocs
22534 + * sizeof(Elf32_External_Rela));
22535 + }
22536 +
22537 + return TRUE;
22538 +}
22539 +
22540 +/* (4) Calculate the sizes of the linker-generated sections and
22541 + allocate memory for them. */
22542 +
22543 +static bfd_boolean
22544 +avr32_elf_size_dynamic_sections (bfd *output_bfd,
22545 + struct bfd_link_info *info)
22546 +{
22547 + struct elf_avr32_link_hash_table *htab;
22548 + bfd *dynobj;
22549 + asection *s;
22550 + bfd *ibfd;
22551 + bfd_boolean relocs;
22552 +
22553 + pr_debug("(4) size dynamic sections\n");
22554 +
22555 + htab = avr32_elf_hash_table(info);
22556 + dynobj = htab->root.dynobj;
22557 + BFD_ASSERT(dynobj != NULL);
22558 +
22559 + if (htab->root.dynamic_sections_created)
22560 + {
22561 + /* Initialize the contents of the .interp section to the name of
22562 + the dynamic loader */
22563 + if (info->executable)
22564 + {
22565 + s = bfd_get_section_by_name(dynobj, ".interp");
22566 + BFD_ASSERT(s != NULL);
22567 + s->size = sizeof(ELF_DYNAMIC_INTERPRETER);
22568 + s->contents = (unsigned char *)ELF_DYNAMIC_INTERPRETER;
22569 + }
22570 + }
22571 +
22572 + if (htab->nr_got_holes > 0)
22573 + {
22574 + /* Allocate holes for the pigeonhole sort algorithm */
22575 + pr_debug("Highest GOT refcount: %d\n", htab->nr_got_holes);
22576 + if (htab->nr_got_holes >= MAX_NR_GOT_HOLES)
22577 + {
22578 + /* TODO: Do something clever (different sorting algorithm) */
22579 + _bfd_error_handler(_("Highest refcount %d too high (max %d)\n"),
22580 + htab->nr_got_holes, MAX_NR_GOT_HOLES);
22581 + bfd_set_error(bfd_error_no_memory);
22582 + return FALSE;
22583 + }
22584 + htab->got_hole = bfd_zalloc(output_bfd,
22585 + sizeof(struct got_entry *)
22586 + * (htab->nr_got_holes + 1));
22587 + if (!htab->got_hole)
22588 + return FALSE;
22589 +
22590 + /* Set up .got offsets for local syms. */
22591 + for (ibfd = info->input_bfds; ibfd != NULL; ibfd = ibfd->link_next)
22592 + {
22593 + struct got_entry **local_got;
22594 + struct got_entry **end_local_got;
22595 + Elf_Internal_Shdr *symtab_hdr;
22596 + bfd_size_type locsymcount;
22597 +
22598 + pr_debug(" (4a) processing file %s...\n", ibfd->filename);
22599 +
22600 + BFD_ASSERT(bfd_get_flavour(ibfd) == bfd_target_elf_flavour);
22601 +
22602 + local_got = elf_local_got_ents(ibfd);
22603 + if (!local_got)
22604 + continue;
22605 +
22606 + symtab_hdr = &elf_tdata(ibfd)->symtab_hdr;
22607 + locsymcount = symtab_hdr->sh_info;
22608 + end_local_got = local_got + locsymcount;
22609 +
22610 + for (; local_got < end_local_got; ++local_got)
22611 + insert_got_entry(htab, *local_got);
22612 + }
22613 + }
22614 +
22615 + /* Allocate global sym .got entries and space for global sym
22616 + dynamic relocs */
22617 + elf_link_hash_traverse(&htab->root, allocate_dynrelocs, info);
22618 +
22619 + /* Now that we have sorted the GOT entries, we are ready to
22620 + assign offsets and determine the initial size of the GOT. */
22621 + if (htab->sgot)
22622 + assign_got_offsets(htab);
22623 +
22624 + /* Allocate space for local sym dynamic relocs */
22625 + BFD_ASSERT(htab->local_dynamic_relocs == 0 || info->shared);
22626 + if (htab->local_dynamic_relocs)
22627 + htab->srelgot->size += (htab->local_dynamic_relocs
22628 + * sizeof(Elf32_External_Rela));
22629 +
22630 + /* We now have determined the sizes of the various dynamic
22631 + sections. Allocate memory for them. */
22632 + relocs = FALSE;
22633 + for (s = dynobj->sections; s; s = s->next)
22634 + {
22635 + if ((s->flags & SEC_LINKER_CREATED) == 0)
22636 + continue;
22637 +
22638 + if (s == htab->sgot
22639 + || s == htab->sstub)
22640 + {
22641 + /* Strip this section if we don't need it */
22642 + }
22643 + else if (strncmp (bfd_get_section_name(dynobj, s), ".rela", 5) == 0)
22644 + {
22645 + if (s->size != 0)
22646 + relocs = TRUE;
22647 +
22648 + s->reloc_count = 0;
22649 + }
22650 + else
22651 + {
22652 + /* It's not one of our sections */
22653 + continue;
22654 + }
22655 +
22656 + if (s->size == 0)
22657 + {
22658 + /* Strip unneeded sections */
22659 + pr_debug("Stripping section %s from output...\n", s->name);
22660 + /* deleted function in 2.17
22661 + _bfd_strip_section_from_output(info, s);
22662 + */
22663 + continue;
22664 + }
22665 +
22666 + s->contents = bfd_zalloc(dynobj, s->size);
22667 + if (s->contents == NULL)
22668 + return FALSE;
22669 + }
22670 +
22671 + if (htab->root.dynamic_sections_created)
22672 + {
22673 + /* Add some entries to the .dynamic section. We fill in the
22674 + values later, in sh_elf_finish_dynamic_sections, but we
22675 + must add the entries now so that we get the correct size for
22676 + the .dynamic section. The DT_DEBUG entry is filled in by the
22677 + dynamic linker and used by the debugger. */
22678 +#define add_dynamic_entry(TAG, VAL) _bfd_elf_add_dynamic_entry(info, TAG, VAL)
22679 +
22680 + if (!add_dynamic_entry(DT_PLTGOT, 0))
22681 + return FALSE;
22682 + if (!add_dynamic_entry(DT_AVR32_GOTSZ, 0))
22683 + return FALSE;
22684 +
22685 + if (info->executable)
22686 + {
22687 + if (!add_dynamic_entry(DT_DEBUG, 0))
22688 + return FALSE;
22689 + }
22690 + if (relocs)
22691 + {
22692 + if (!add_dynamic_entry(DT_RELA, 0)
22693 + || !add_dynamic_entry(DT_RELASZ, 0)
22694 + || !add_dynamic_entry(DT_RELAENT,
22695 + sizeof(Elf32_External_Rela)))
22696 + return FALSE;
22697 + }
22698 + }
22699 +#undef add_dynamic_entry
22700 +
22701 + return TRUE;
22702 +}
22703 +
22704 +\f
22705 +/* Access to internal relocations, section contents and symbols.
22706 + (stolen from the xtensa port) */
22707 +
22708 +static Elf_Internal_Rela *
22709 +retrieve_internal_relocs (bfd *abfd, asection *sec, bfd_boolean keep_memory);
22710 +static void
22711 +pin_internal_relocs (asection *sec, Elf_Internal_Rela *internal_relocs);
22712 +static void
22713 +release_internal_relocs (asection *sec, Elf_Internal_Rela *internal_relocs);
22714 +static bfd_byte *
22715 +retrieve_contents (bfd *abfd, asection *sec, bfd_boolean keep_memory);
22716 +/*
22717 +static void
22718 +pin_contents (asection *sec, bfd_byte *contents);
22719 +*/
22720 +static void
22721 +release_contents (asection *sec, bfd_byte *contents);
22722 +static Elf_Internal_Sym *
22723 +retrieve_local_syms (bfd *input_bfd, bfd_boolean keep_memory);
22724 +/*
22725 +static void
22726 +pin_local_syms (bfd *input_bfd, Elf_Internal_Sym *isymbuf);
22727 +*/
22728 +static void
22729 +release_local_syms (bfd *input_bfd, Elf_Internal_Sym *isymbuf);
22730 +
22731 +/* During relaxation, we need to modify relocations, section contents,
22732 + and symbol definitions, and we need to keep the original values from
22733 + being reloaded from the input files, i.e., we need to "pin" the
22734 + modified values in memory. We also want to continue to observe the
22735 + setting of the "keep-memory" flag. The following functions wrap the
22736 + standard BFD functions to take care of this for us. */
22737 +
22738 +static Elf_Internal_Rela *
22739 +retrieve_internal_relocs (bfd *abfd, asection *sec, bfd_boolean keep_memory)
22740 +{
22741 + /* _bfd_elf_link_read_relocs knows about caching, so no need for us
22742 + to be clever here. */
22743 + return _bfd_elf_link_read_relocs(abfd, sec, NULL, NULL, keep_memory);
22744 +}
22745 +
22746 +static void
22747 +pin_internal_relocs (asection *sec, Elf_Internal_Rela *internal_relocs)
22748 +{
22749 + elf_section_data (sec)->relocs = internal_relocs;
22750 +}
22751 +
22752 +static void
22753 +release_internal_relocs (asection *sec, Elf_Internal_Rela *internal_relocs)
22754 +{
22755 + if (internal_relocs
22756 + && elf_section_data (sec)->relocs != internal_relocs)
22757 + free (internal_relocs);
22758 +}
22759 +
22760 +static bfd_byte *
22761 +retrieve_contents (bfd *abfd, asection *sec, bfd_boolean keep_memory)
22762 +{
22763 + bfd_byte *contents;
22764 + bfd_size_type sec_size;
22765 +
22766 + sec_size = bfd_get_section_limit (abfd, sec);
22767 + contents = elf_section_data (sec)->this_hdr.contents;
22768 +
22769 + if (contents == NULL && sec_size != 0)
22770 + {
22771 + if (!bfd_malloc_and_get_section (abfd, sec, &contents))
22772 + {
22773 + if (contents)
22774 + free (contents);
22775 + return NULL;
22776 + }
22777 + if (keep_memory)
22778 + elf_section_data (sec)->this_hdr.contents = contents;
22779 + }
22780 + return contents;
22781 +}
22782 +
22783 +/*
22784 +static void
22785 +pin_contents (asection *sec, bfd_byte *contents)
22786 +{
22787 + elf_section_data (sec)->this_hdr.contents = contents;
22788 +}
22789 +*/
22790 +static void
22791 +release_contents (asection *sec, bfd_byte *contents)
22792 +{
22793 + if (contents && elf_section_data (sec)->this_hdr.contents != contents)
22794 + free (contents);
22795 +}
22796 +
22797 +static Elf_Internal_Sym *
22798 +retrieve_local_syms (bfd *input_bfd, bfd_boolean keep_memory)
22799 +{
22800 + Elf_Internal_Shdr *symtab_hdr;
22801 + Elf_Internal_Sym *isymbuf;
22802 + size_t locsymcount;
22803 +
22804 + symtab_hdr = &elf_tdata (input_bfd)->symtab_hdr;
22805 + locsymcount = symtab_hdr->sh_info;
22806 +
22807 + isymbuf = (Elf_Internal_Sym *) symtab_hdr->contents;
22808 + if (isymbuf == NULL && locsymcount != 0)
22809 + {
22810 + isymbuf = bfd_elf_get_elf_syms (input_bfd, symtab_hdr, locsymcount, 0,
22811 + NULL, NULL, NULL);
22812 + if (isymbuf && keep_memory)
22813 + symtab_hdr->contents = (unsigned char *) isymbuf;
22814 + }
22815 +
22816 + return isymbuf;
22817 +}
22818 +
22819 +/*
22820 +static void
22821 +pin_local_syms (bfd *input_bfd, Elf_Internal_Sym *isymbuf)
22822 +{
22823 + elf_tdata (input_bfd)->symtab_hdr.contents = (unsigned char *)isymbuf;
22824 +}
22825 +
22826 +*/
22827 +static void
22828 +release_local_syms (bfd *input_bfd, Elf_Internal_Sym *isymbuf)
22829 +{
22830 + if (isymbuf && (elf_tdata (input_bfd)->symtab_hdr.contents
22831 + != (unsigned char *)isymbuf))
22832 + free (isymbuf);
22833 +}
22834 +
22835 +\f/* Data structures used during relaxation. */
22836 +
22837 +enum relax_state_id {
22838 + RS_ERROR = -1,
22839 + RS_NONE = 0,
22840 + RS_ALIGN,
22841 + RS_CPENT,
22842 + RS_PIC_CALL,
22843 + RS_PIC_MCALL,
22844 + RS_PIC_RCALL2,
22845 + RS_PIC_RCALL1,
22846 + RS_PIC_LDA,
22847 + RS_PIC_LDW4,
22848 + RS_PIC_LDW3,
22849 + RS_PIC_SUB5,
22850 + RS_NOPIC_MCALL,
22851 + RS_NOPIC_RCALL2,
22852 + RS_NOPIC_RCALL1,
22853 + RS_NOPIC_LDW4,
22854 + RS_NOPIC_LDDPC,
22855 + RS_NOPIC_SUB5,
22856 +#ifdef DHRYSTONE_FIX
22857 + RS_NOPIC_MOV2,
22858 + RS_NOPIC_MOV1,
22859 +#endif
22860 + RS_RCALL2,
22861 + RS_RCALL1,
22862 + RS_BRC2,
22863 + RS_BRC1,
22864 + RS_BRAL,
22865 + RS_RJMP,
22866 + RS_MAX,
22867 +};
22868 +
22869 +enum reference_type {
22870 + REF_ABSOLUTE,
22871 + REF_PCREL,
22872 + REF_CPOOL,
22873 + REF_GOT,
22874 +};
22875 +
22876 +struct relax_state
22877 +{
22878 + const char *name;
22879 + enum relax_state_id id;
22880 + enum relax_state_id direct;
22881 + enum relax_state_id next;
22882 + enum relax_state_id prev;
22883 +
22884 + enum reference_type reftype;
22885 +
22886 + unsigned int r_type;
22887 +
22888 + bfd_vma opcode;
22889 + bfd_vma opcode_mask;
22890 +
22891 + bfd_signed_vma range_min;
22892 + bfd_signed_vma range_max;
22893 +
22894 + bfd_size_type size;
22895 +};
22896 +
22897 +/*
22898 + * This is for relocs that
22899 + * a) has an addend or is of type R_AVR32_DIFF32, and
22900 + * b) references a different section than it's in, and
22901 + * c) references a section that is relaxable
22902 + *
22903 + * as well as relocs that references the constant pool, in which case
22904 + * the add_frag member points to the frag containing the constant pool
22905 + * entry.
22906 + *
22907 + * Such relocs must be fixed up whenever we delete any code. Sections
22908 + * that don't have any relocs with all of the above properties don't
22909 + * have any additional reloc data, but sections that do will have
22910 + * additional data for all its relocs.
22911 + */
22912 +struct avr32_reloc_data
22913 +{
22914 + struct fragment *add_frag;
22915 + struct fragment *sub_frag;
22916 +};
22917 +
22918 +/*
22919 + * A 'fragment' is a relaxable entity, that is, code may be added or
22920 + * deleted at the end of a fragment. When this happens, all subsequent
22921 + * fragments in the list will have their offsets updated.
22922 + */
22923 +struct fragment
22924 +{
22925 + enum relax_state_id state;
22926 + enum relax_state_id initial_state;
22927 +
22928 + Elf_Internal_Rela *rela;
22929 + bfd_size_type size;
22930 + bfd_vma offset;
22931 + int size_adjust;
22932 + int offset_adjust;
22933 + bfd_boolean has_grown;
22934 +
22935 + /* Only used by constant pool entries. When this drops to zero, the
22936 + frag is discarded (i.e. size_adjust is set to -4.) */
22937 + int refcount;
22938 +};
22939 +
22940 +struct avr32_relax_data
22941 +{
22942 + unsigned int frag_count;
22943 + struct fragment *frag;
22944 + struct avr32_reloc_data *reloc_data;
22945 +
22946 + /* TRUE if this section has one or more relaxable relocations */
22947 + bfd_boolean is_relaxable;
22948 + unsigned int iteration;
22949 +};
22950 +
22951 +struct avr32_section_data
22952 +{
22953 + struct bfd_elf_section_data elf;
22954 + struct avr32_relax_data relax_data;
22955 +};
22956 +
22957 +\f/* Relax state definitions */
22958 +
22959 +#define PIC_MOV2_OPCODE 0xe0600000
22960 +#define PIC_MOV2_MASK 0xe1e00000
22961 +#define PIC_MOV2_RANGE_MIN (-1048576 * 4)
22962 +#define PIC_MOV2_RANGE_MAX (1048575 * 4)
22963 +#define PIC_MCALL_OPCODE 0xf0160000
22964 +#define PIC_MCALL_MASK 0xffff0000
22965 +#define PIC_MCALL_RANGE_MIN (-131072)
22966 +#define PIC_MCALL_RANGE_MAX (131068)
22967 +#define RCALL2_OPCODE 0xe0a00000
22968 +#define RCALL2_MASK 0xe1ef0000
22969 +#define RCALL2_RANGE_MIN (-2097152)
22970 +#define RCALL2_RANGE_MAX (2097150)
22971 +#define RCALL1_OPCODE 0xc00c0000
22972 +#define RCALL1_MASK 0xf00c0000
22973 +#define RCALL1_RANGE_MIN (-1024)
22974 +#define RCALL1_RANGE_MAX (1022)
22975 +#define PIC_LDW4_OPCODE 0xecf00000
22976 +#define PIC_LDW4_MASK 0xfff00000
22977 +#define PIC_LDW4_RANGE_MIN (-32768)
22978 +#define PIC_LDW4_RANGE_MAX (32767)
22979 +#define PIC_LDW3_OPCODE 0x6c000000
22980 +#define PIC_LDW3_MASK 0xfe000000
22981 +#define PIC_LDW3_RANGE_MIN (0)
22982 +#define PIC_LDW3_RANGE_MAX (124)
22983 +#define SUB5_PC_OPCODE 0xfec00000
22984 +#define SUB5_PC_MASK 0xfff00000
22985 +#define SUB5_PC_RANGE_MIN (-32768)
22986 +#define SUB5_PC_RANGE_MAX (32767)
22987 +#define NOPIC_MCALL_OPCODE 0xf01f0000
22988 +#define NOPIC_MCALL_MASK 0xffff0000
22989 +#define NOPIC_MCALL_RANGE_MIN PIC_MCALL_RANGE_MIN
22990 +#define NOPIC_MCALL_RANGE_MAX PIC_MCALL_RANGE_MAX
22991 +#define NOPIC_LDW4_OPCODE 0xfef00000
22992 +#define NOPIC_LDW4_MASK 0xfff00000
22993 +#define NOPIC_LDW4_RANGE_MIN PIC_LDW4_RANGE_MIN
22994 +#define NOPIC_LDW4_RANGE_MAX PIC_LDW4_RANGE_MAX
22995 +#define LDDPC_OPCODE 0x48000000
22996 +#define LDDPC_MASK 0xf8000000
22997 +#define LDDPC_RANGE_MIN 0
22998 +#define LDDPC_RANGE_MAX 508
22999 +
23000 +#ifdef DHRYSTONE_FIX
23001 +#define NOPIC_MOV2_OPCODE 0xe0600000
23002 +#define NOPIC_MOV2_MASK 0xe1e00000
23003 +#define NOPIC_MOV2_RANGE_MIN (-1048576)
23004 +#define NOPIC_MOV2_RANGE_MAX (1048575)
23005 +#define NOPIC_MOV1_OPCODE 0x30000000
23006 +#define NOPIC_MOV1_MASK 0xf0000000
23007 +#define NOPIC_MOV1_RANGE_MIN (-128)
23008 +#define NOPIC_MOV1_RANGE_MAX (127)
23009 +#endif
23010 +
23011 +/* Only brc2 variants with cond[3] == 0 is considered, since the
23012 + others are not relaxable. bral is a special case and is handled
23013 + separately. */
23014 +#define BRC2_OPCODE 0xe0800000
23015 +#define BRC2_MASK 0xe1e80000
23016 +#define BRC2_RANGE_MIN (-2097152)
23017 +#define BRC2_RANGE_MAX (2097150)
23018 +#define BRC1_OPCODE 0xc0000000
23019 +#define BRC1_MASK 0xf0080000
23020 +#define BRC1_RANGE_MIN (-256)
23021 +#define BRC1_RANGE_MAX (254)
23022 +#define BRAL_OPCODE 0xe08f0000
23023 +#define BRAL_MASK 0xe1ef0000
23024 +#define BRAL_RANGE_MIN BRC2_RANGE_MIN
23025 +#define BRAL_RANGE_MAX BRC2_RANGE_MAX
23026 +#define RJMP_OPCODE 0xc0080000
23027 +#define RJMP_MASK 0xf00c0000
23028 +#define RJMP_RANGE_MIN (-1024)
23029 +#define RJMP_RANGE_MAX (1022)
23030 +
23031 +/* Define a relax state using the GOT */
23032 +#define RG(id, dir, next, prev, r_type, opc, size) \
23033 + { "RS_"#id, RS_##id, RS_##dir, RS_##next, RS_##prev, REF_GOT, \
23034 + R_AVR32_##r_type, opc##_OPCODE, opc##_MASK, \
23035 + opc##_RANGE_MIN, opc##_RANGE_MAX, size }
23036 +/* Define a relax state using the Constant Pool */
23037 +#define RC(id, dir, next, prev, r_type, opc, size) \
23038 + { "RS_"#id, RS_##id, RS_##dir, RS_##next, RS_##prev, REF_CPOOL, \
23039 + R_AVR32_##r_type, opc##_OPCODE, opc##_MASK, \
23040 + opc##_RANGE_MIN, opc##_RANGE_MAX, size }
23041 +
23042 +/* Define a relax state using pc-relative direct reference */
23043 +#define RP(id, dir, next, prev, r_type, opc, size) \
23044 + { "RS_"#id, RS_##id, RS_##dir, RS_##next, RS_##prev, REF_PCREL, \
23045 + R_AVR32_##r_type, opc##_OPCODE, opc##_MASK, \
23046 + opc##_RANGE_MIN, opc##_RANGE_MAX, size }
23047 +
23048 +#ifdef DHRYSTONE_FIX
23049 +/* Define a relax state using non-pc-relative direct reference */
23050 +#define RD(id, dir, next, prev, r_type, opc, size) \
23051 + { "RS_"#id, RS_##id, RS_##dir, RS_##next, RS_##prev, REF_ABSOLUTE, \
23052 + R_AVR32_##r_type, opc##_OPCODE, opc##_MASK, \
23053 + opc##_RANGE_MIN, opc##_RANGE_MAX, size }
23054 +
23055 +#endif
23056 +
23057 +/* Define a relax state that will be handled specially */
23058 +#define RS(id, r_type, size) \
23059 + { "RS_"#id, RS_##id, RS_NONE, RS_NONE, RS_NONE, REF_ABSOLUTE, \
23060 + R_AVR32_##r_type, 0, 0, 0, 0, size }
23061 +
23062 +const struct relax_state relax_state[RS_MAX] = {
23063 + RS(NONE, NONE, 0),
23064 + RS(ALIGN, ALIGN, 0),
23065 + RS(CPENT, 32_CPENT, 4),
23066 +
23067 + RG(PIC_CALL, PIC_RCALL1, PIC_MCALL, NONE, GOTCALL, PIC_MOV2, 10),
23068 + RG(PIC_MCALL, PIC_RCALL1, NONE, PIC_CALL, GOT18SW, PIC_MCALL, 4),
23069 + RP(PIC_RCALL2, NONE, PIC_RCALL1, PIC_MCALL, 22H_PCREL, RCALL2, 4),
23070 + RP(PIC_RCALL1, NONE, NONE, PIC_RCALL2, 11H_PCREL, RCALL1, 2),
23071 +
23072 + RG(PIC_LDA, PIC_SUB5, PIC_LDW4, NONE, LDA_GOT, PIC_MOV2, 8),
23073 + RG(PIC_LDW4, PIC_SUB5, PIC_LDW3, PIC_LDA, GOT16S, PIC_LDW4, 4),
23074 + RG(PIC_LDW3, PIC_SUB5, NONE, PIC_LDW4, GOT7UW, PIC_LDW3, 2),
23075 + RP(PIC_SUB5, NONE, NONE, PIC_LDW3, 16N_PCREL, SUB5_PC, 4),
23076 +
23077 + RC(NOPIC_MCALL, NOPIC_RCALL1, NONE, NONE, CPCALL, NOPIC_MCALL, 4),
23078 + RP(NOPIC_RCALL2, NONE, NOPIC_RCALL1, NOPIC_MCALL, 22H_PCREL, RCALL2, 4),
23079 + RP(NOPIC_RCALL1, NONE, NONE, NOPIC_RCALL2, 11H_PCREL, RCALL1, 2),
23080 +
23081 +#ifdef DHRYSTONE_FIX
23082 + RC(NOPIC_LDW4, NOPIC_MOV1, NOPIC_LDDPC, NONE, 16_CP, NOPIC_LDW4, 4),
23083 + RC(NOPIC_LDDPC, NOPIC_MOV1, NONE, NOPIC_LDW4, 9W_CP, LDDPC, 2),
23084 + RP(NOPIC_SUB5, NOPIC_MOV1, NONE, NOPIC_LDDPC, 16N_PCREL, SUB5_PC, 4),
23085 + RD(NOPIC_MOV2, NONE, NOPIC_MOV1, NOPIC_SUB5, 21S, NOPIC_MOV2, 4),
23086 + RD(NOPIC_MOV1, NONE, NONE, NOPIC_MOV2, 8S, NOPIC_MOV1, 2),
23087 +#else
23088 + RC(NOPIC_LDW4, NOPIC_SUB5, NOPIC_LDDPC, NONE, 16_CP, NOPIC_LDW4, 4),
23089 + RC(NOPIC_LDDPC, NOPIC_SUB5, NONE, NOPIC_LDW4, 9W_CP, LDDPC, 2),
23090 + RP(NOPIC_SUB5, NONE, NONE, NOPIC_LDDPC, 16N_PCREL, SUB5_PC, 4),
23091 +#endif
23092 +
23093 + RP(RCALL2, NONE, RCALL1, NONE, 22H_PCREL, RCALL2, 4),
23094 + RP(RCALL1, NONE, NONE, RCALL2, 11H_PCREL, RCALL1, 2),
23095 + RP(BRC2, NONE, BRC1, NONE, 22H_PCREL, BRC2, 4),
23096 + RP(BRC1, NONE, NONE, BRC2, 9H_PCREL, BRC1, 2),
23097 + RP(BRAL, NONE, RJMP, NONE, 22H_PCREL, BRAL, 4),
23098 + RP(RJMP, NONE, NONE, BRAL, 11H_PCREL, RJMP, 2),
23099 +};
23100 +
23101 +static bfd_boolean
23102 +avr32_elf_new_section_hook(bfd *abfd, asection *sec)
23103 +{
23104 + struct avr32_section_data *sdata;
23105 +
23106 + sdata = bfd_zalloc(abfd, sizeof(struct avr32_section_data));
23107 + if (!sdata)
23108 + return FALSE;
23109 +
23110 + sec->used_by_bfd = sdata;
23111 + return _bfd_elf_new_section_hook(abfd, sec);
23112 +}
23113 +
23114 +static struct avr32_relax_data *
23115 +avr32_relax_data(asection *sec)
23116 +{
23117 + struct avr32_section_data *sdata;
23118 +
23119 + BFD_ASSERT(sec->used_by_bfd);
23120 +
23121 + sdata = (struct avr32_section_data *)elf_section_data(sec);
23122 + return &sdata->relax_data;
23123 +}
23124 +
23125 +\f/* Link-time relaxation */
23126 +
23127 +static bfd_boolean
23128 +avr32_elf_relax_section(bfd *abfd, asection *sec,
23129 + struct bfd_link_info *info, bfd_boolean *again);
23130 +
23131 +enum relax_pass_id {
23132 + RELAX_PASS_SIZE_FRAGS,
23133 + RELAX_PASS_MOVE_DATA,
23134 +};
23135 +
23136 +/* Stolen from the xtensa port */
23137 +static int
23138 +internal_reloc_compare (const void *ap, const void *bp)
23139 +{
23140 + const Elf_Internal_Rela *a = (const Elf_Internal_Rela *) ap;
23141 + const Elf_Internal_Rela *b = (const Elf_Internal_Rela *) bp;
23142 +
23143 + if (a->r_offset != b->r_offset)
23144 + return (a->r_offset - b->r_offset);
23145 +
23146 + /* We don't need to sort on these criteria for correctness,
23147 + but enforcing a more strict ordering prevents unstable qsort
23148 + from behaving differently with different implementations.
23149 + Without the code below we get correct but different results
23150 + on Solaris 2.7 and 2.8. We would like to always produce the
23151 + same results no matter the host. */
23152 +
23153 + if (a->r_info != b->r_info)
23154 + return (a->r_info - b->r_info);
23155 +
23156 + return (a->r_addend - b->r_addend);
23157 +}
23158 +
23159 +static enum relax_state_id
23160 +get_pcrel22_relax_state(bfd *abfd, asection *sec, struct bfd_link_info *info,
23161 + const Elf_Internal_Rela *rela)
23162 +{
23163 + bfd_byte *contents;
23164 + bfd_vma insn;
23165 + enum relax_state_id rs = RS_NONE;
23166 +
23167 + contents = retrieve_contents(abfd, sec, info->keep_memory);
23168 + if (!contents)
23169 + return RS_ERROR;
23170 +
23171 + insn = bfd_get_32(abfd, contents + rela->r_offset);
23172 + if ((insn & RCALL2_MASK) == RCALL2_OPCODE)
23173 + rs = RS_RCALL2;
23174 + else if ((insn & BRAL_MASK) == BRAL_OPCODE)
23175 + /* Optimizing bral -> rjmp gets us into all kinds of
23176 + trouble with jump tables. Better not do it. */
23177 + rs = RS_NONE;
23178 + else if ((insn & BRC2_MASK) == BRC2_OPCODE)
23179 + rs = RS_BRC2;
23180 +
23181 + release_contents(sec, contents);
23182 +
23183 + return rs;
23184 +}
23185 +
23186 +static enum relax_state_id
23187 +get_initial_relax_state(bfd *abfd, asection *sec, struct bfd_link_info *info,
23188 + const Elf_Internal_Rela *rela)
23189 +{
23190 + switch (ELF_R_TYPE(rela->r_info))
23191 + {
23192 + case R_AVR32_GOTCALL:
23193 + return RS_PIC_CALL;
23194 + case R_AVR32_GOT18SW:
23195 + return RS_PIC_MCALL;
23196 + case R_AVR32_LDA_GOT:
23197 + return RS_PIC_LDA;
23198 + case R_AVR32_GOT16S:
23199 + return RS_PIC_LDW4;
23200 + case R_AVR32_CPCALL:
23201 + return RS_NOPIC_MCALL;
23202 + case R_AVR32_16_CP:
23203 + return RS_NOPIC_LDW4;
23204 + case R_AVR32_9W_CP:
23205 + return RS_NOPIC_LDDPC;
23206 + case R_AVR32_ALIGN:
23207 + return RS_ALIGN;
23208 + case R_AVR32_32_CPENT:
23209 + return RS_CPENT;
23210 + case R_AVR32_22H_PCREL:
23211 + return get_pcrel22_relax_state(abfd, sec, info, rela);
23212 + case R_AVR32_9H_PCREL:
23213 + return RS_BRC1;
23214 + default:
23215 + return RS_NONE;
23216 + }
23217 +}
23218 +
23219 +static bfd_boolean
23220 +reloc_is_cpool_ref(const Elf_Internal_Rela *rela)
23221 +{
23222 + switch (ELF_R_TYPE(rela->r_info))
23223 + {
23224 + case R_AVR32_CPCALL:
23225 + case R_AVR32_16_CP:
23226 + case R_AVR32_9W_CP:
23227 + return TRUE;
23228 + default:
23229 + return FALSE;
23230 + }
23231 +}
23232 +
23233 +static struct fragment *
23234 +new_frag(bfd *abfd ATTRIBUTE_UNUSED, asection *sec,
23235 + struct avr32_relax_data *rd, enum relax_state_id state,
23236 + Elf_Internal_Rela *rela)
23237 +{
23238 + struct fragment *frag;
23239 + bfd_size_type r_size;
23240 + bfd_vma r_offset;
23241 + unsigned int i = rd->frag_count;
23242 +
23243 + BFD_ASSERT(state >= RS_NONE && state < RS_MAX);
23244 +
23245 + rd->frag_count++;
23246 + frag = bfd_realloc(rd->frag, sizeof(struct fragment) * rd->frag_count);
23247 + if (!frag)
23248 + return NULL;
23249 + rd->frag = frag;
23250 +
23251 + frag += i;
23252 + memset(frag, 0, sizeof(struct fragment));
23253 +
23254 + if (state == RS_ALIGN)
23255 + r_size = (((rela->r_offset + (1 << rela->r_addend) - 1)
23256 + & ~((1 << rela->r_addend) - 1)) - rela->r_offset);
23257 + else
23258 + r_size = relax_state[state].size;
23259 +
23260 + if (rela)
23261 + r_offset = rela->r_offset;
23262 + else
23263 + r_offset = sec->size;
23264 +
23265 + if (i == 0)
23266 + {
23267 + frag->offset = 0;
23268 + frag->size = r_offset + r_size;
23269 + }
23270 + else
23271 + {
23272 + frag->offset = rd->frag[i - 1].offset + rd->frag[i - 1].size;
23273 + frag->size = r_offset + r_size - frag->offset;
23274 + }
23275 +
23276 + if (state != RS_CPENT)
23277 + /* Make sure we don't discard this frag */
23278 + frag->refcount = 1;
23279 +
23280 + frag->initial_state = frag->state = state;
23281 + frag->rela = rela;
23282 +
23283 + return frag;
23284 +}
23285 +
23286 +static struct fragment *
23287 +find_frag(asection *sec, bfd_vma offset)
23288 +{
23289 + struct fragment *first, *last;
23290 + struct avr32_relax_data *rd = avr32_relax_data(sec);
23291 +
23292 + if (rd->frag_count == 0)
23293 + return NULL;
23294 +
23295 + first = &rd->frag[0];
23296 + last = &rd->frag[rd->frag_count - 1];
23297 +
23298 + /* This may be a reloc referencing the end of a section. The last
23299 + frag will never have a reloc associated with it, so its size will
23300 + never change, thus the offset adjustment of the last frag will
23301 + always be the same as the offset adjustment of the end of the
23302 + section. */
23303 + if (offset == sec->size)
23304 + {
23305 + BFD_ASSERT(last->offset + last->size == sec->size);
23306 + BFD_ASSERT(!last->rela);
23307 + return last;
23308 + }
23309 +
23310 + while (first <= last)
23311 + {
23312 + struct fragment *mid;
23313 +
23314 + mid = (last - first) / 2 + first;
23315 + if ((mid->offset + mid->size) <= offset)
23316 + first = mid + 1;
23317 + else if (mid->offset > offset)
23318 + last = mid - 1;
23319 + else
23320 + return mid;
23321 + }
23322 +
23323 + return NULL;
23324 +}
23325 +
23326 +/* Look through all relocs in a section and determine if any relocs
23327 + may be affected by relaxation in other sections. If so, allocate
23328 + an array of additional relocation data which links the affected
23329 + relocations to the frag(s) where the relaxation may occur.
23330 +
23331 + This function also links cpool references to cpool entries and
23332 + increments the refcount of the latter when this happens. */
23333 +
23334 +static bfd_boolean
23335 +allocate_reloc_data(bfd *abfd, asection *sec, Elf_Internal_Rela *relocs,
23336 + struct bfd_link_info *info)
23337 +{
23338 + Elf_Internal_Shdr *symtab_hdr;
23339 + Elf_Internal_Sym *isymbuf = NULL;
23340 + struct avr32_relax_data *rd;
23341 + unsigned int i;
23342 + bfd_boolean ret = FALSE;
23343 +
23344 + symtab_hdr = &elf_tdata(abfd)->symtab_hdr;
23345 + rd = avr32_relax_data(sec);
23346 +
23347 + RDBG("%s<%s>: allocate_reloc_data\n", abfd->filename, sec->name);
23348 +
23349 + for (i = 0; i < sec->reloc_count; i++)
23350 + {
23351 + Elf_Internal_Rela *rel = &relocs[i];
23352 + asection *sym_sec;
23353 + unsigned long r_symndx;
23354 + bfd_vma sym_value;
23355 +
23356 + if (!rel->r_addend && ELF_R_TYPE(rel->r_info) != R_AVR32_DIFF32
23357 + && !reloc_is_cpool_ref(rel))
23358 + continue;
23359 +
23360 + r_symndx = ELF_R_SYM(rel->r_info);
23361 +
23362 + if (r_symndx < symtab_hdr->sh_info)
23363 + {
23364 + Elf_Internal_Sym *isym;
23365 +
23366 + if (!isymbuf)
23367 + isymbuf = retrieve_local_syms(abfd, info->keep_memory);
23368 + if (!isymbuf)
23369 + return FALSE;
23370 +
23371 + isym = &isymbuf[r_symndx];
23372 + sym_sec = bfd_section_from_elf_index(abfd, isym->st_shndx);
23373 + sym_value = isym->st_value;
23374 + }
23375 + else
23376 + {
23377 + struct elf_link_hash_entry *h;
23378 +
23379 + h = elf_sym_hashes(abfd)[r_symndx - symtab_hdr->sh_info];
23380 +
23381 + while (h->root.type == bfd_link_hash_indirect
23382 + || h->root.type == bfd_link_hash_warning)
23383 + h = (struct elf_link_hash_entry *)h->root.u.i.link;
23384 +
23385 + if (h->root.type != bfd_link_hash_defined
23386 + && h->root.type != bfd_link_hash_defweak)
23387 + continue;
23388 +
23389 + sym_sec = h->root.u.def.section;
23390 + sym_value = h->root.u.def.value;
23391 + }
23392 +
23393 + if (sym_sec && avr32_relax_data(sym_sec)->is_relaxable)
23394 + {
23395 + bfd_size_type size;
23396 + struct fragment *frag;
23397 +
23398 + if (!rd->reloc_data)
23399 + {
23400 + size = sizeof(struct avr32_reloc_data) * sec->reloc_count;
23401 + rd->reloc_data = bfd_zalloc(abfd, size);
23402 + if (!rd->reloc_data)
23403 + goto out;
23404 + }
23405 +
23406 + RDBG("[%3d] 0x%04lx: target: 0x%lx + 0x%lx",
23407 + i, rel->r_offset, sym_value, rel->r_addend);
23408 +
23409 + frag = find_frag(sym_sec, sym_value + rel->r_addend);
23410 + BFD_ASSERT(frag);
23411 + rd->reloc_data[i].add_frag = frag;
23412 +
23413 + RDBG(" -> %s<%s>:%04lx\n", sym_sec->owner->filename, sym_sec->name,
23414 + frag->rela ? frag->rela->r_offset : sym_sec->size);
23415 +
23416 + if (reloc_is_cpool_ref(rel))
23417 + {
23418 + BFD_ASSERT(ELF_R_TYPE(frag->rela->r_info) == R_AVR32_32_CPENT);
23419 + frag->refcount++;
23420 + }
23421 +
23422 + if (ELF_R_TYPE(rel->r_info) == R_AVR32_DIFF32)
23423 + {
23424 + bfd_byte *contents;
23425 + bfd_signed_vma diff;
23426 +
23427 + contents = retrieve_contents(abfd, sec, info->keep_memory);
23428 + if (!contents)
23429 + goto out;
23430 +
23431 + diff = bfd_get_signed_32(abfd, contents + rel->r_offset);
23432 + frag = find_frag(sym_sec, sym_value + rel->r_addend + diff);
23433 + BFD_ASSERT(frag);
23434 + rd->reloc_data[i].sub_frag = frag;
23435 +
23436 + release_contents(sec, contents);
23437 + }
23438 + }
23439 + }
23440 +
23441 + ret = TRUE;
23442 +
23443 + out:
23444 + release_local_syms(abfd, isymbuf);
23445 + return ret;
23446 +}
23447 +
23448 +static bfd_boolean
23449 +global_sym_set_frag(struct elf_avr32_link_hash_entry *havr,
23450 + struct bfd_link_info *info ATTRIBUTE_UNUSED)
23451 +{
23452 + struct fragment *frag;
23453 + asection *sec;
23454 +
23455 + if (havr->root.root.type != bfd_link_hash_defined
23456 + && havr->root.root.type != bfd_link_hash_defweak)
23457 + return TRUE;
23458 +
23459 + sec = havr->root.root.u.def.section;
23460 + if (bfd_is_const_section(sec)
23461 + || !avr32_relax_data(sec)->is_relaxable)
23462 + return TRUE;
23463 +
23464 + frag = find_frag(sec, havr->root.root.u.def.value);
23465 + if (!frag)
23466 + {
23467 + unsigned int i;
23468 + struct avr32_relax_data *rd = avr32_relax_data(sec);
23469 +
23470 + RDBG("In %s: No frag for %s <%s+%lu> (limit %lu)\n",
23471 + sec->owner->filename, havr->root.root.root.string,
23472 + sec->name, havr->root.root.u.def.value, sec->size);
23473 + for (i = 0; i < rd->frag_count; i++)
23474 + RDBG(" %8lu - %8lu\n", rd->frag[i].offset,
23475 + rd->frag[i].offset + rd->frag[i].size);
23476 + }
23477 + BFD_ASSERT(frag);
23478 +
23479 + havr->sym_frag = frag;
23480 + return TRUE;
23481 +}
23482 +
23483 +static bfd_boolean
23484 +analyze_relocations(struct bfd_link_info *info)
23485 +{
23486 + bfd *abfd;
23487 + asection *sec;
23488 +
23489 + /* Divide all relaxable sections into fragments */
23490 + for (abfd = info->input_bfds; abfd; abfd = abfd->link_next)
23491 + {
23492 + if (!(elf_elfheader(abfd)->e_flags & EF_AVR32_LINKRELAX))
23493 + {
23494 + if (!(*info->callbacks->warning)
23495 + (info, _("input is not relaxable"), NULL, abfd, NULL, 0))
23496 + return FALSE;
23497 + continue;
23498 + }
23499 +
23500 + for (sec = abfd->sections; sec; sec = sec->next)
23501 + {
23502 + struct avr32_relax_data *rd;
23503 + struct fragment *frag;
23504 + Elf_Internal_Rela *relocs;
23505 + unsigned int i;
23506 + bfd_boolean ret = TRUE;
23507 +
23508 + if (!(sec->flags & SEC_RELOC) || sec->reloc_count == 0)
23509 + continue;
23510 +
23511 + rd = avr32_relax_data(sec);
23512 +
23513 + relocs = retrieve_internal_relocs(abfd, sec, info->keep_memory);
23514 + if (!relocs)
23515 + return FALSE;
23516 +
23517 + qsort(relocs, sec->reloc_count, sizeof(Elf_Internal_Rela),
23518 + internal_reloc_compare);
23519 +
23520 + for (i = 0; i < sec->reloc_count; i++)
23521 + {
23522 + enum relax_state_id state;
23523 +
23524 + ret = FALSE;
23525 + state = get_initial_relax_state(abfd, sec, info, &relocs[i]);
23526 + if (state == RS_ERROR)
23527 + break;
23528 +
23529 + if (state)
23530 + {
23531 + frag = new_frag(abfd, sec, rd, state, &relocs[i]);
23532 + if (!frag)
23533 + break;
23534 +
23535 + pin_internal_relocs(sec, relocs);
23536 + rd->is_relaxable = TRUE;
23537 + }
23538 +
23539 + ret = TRUE;
23540 + }
23541 +
23542 + release_internal_relocs(sec, relocs);
23543 + if (!ret)
23544 + return ret;
23545 +
23546 + if (rd->is_relaxable)
23547 + {
23548 + frag = new_frag(abfd, sec, rd, RS_NONE, NULL);
23549 + if (!frag)
23550 + return FALSE;
23551 + }
23552 + }
23553 + }
23554 +
23555 + /* Link each global symbol to the fragment where it's defined. */
23556 + elf_link_hash_traverse(elf_hash_table(info), global_sym_set_frag, info);
23557 +
23558 + /* Do the same for local symbols. */
23559 + for (abfd = info->input_bfds; abfd; abfd = abfd->link_next)
23560 + {
23561 + Elf_Internal_Sym *isymbuf, *isym;
23562 + struct fragment **local_sym_frag;
23563 + unsigned int i, sym_count;
23564 +
23565 + sym_count = elf_tdata(abfd)->symtab_hdr.sh_info;
23566 + if (sym_count == 0)
23567 + continue;
23568 +
23569 + local_sym_frag = bfd_zalloc(abfd, sym_count * sizeof(struct fragment *));
23570 + if (!local_sym_frag)
23571 + return FALSE;
23572 + elf_tdata(abfd)->local_sym_frag = local_sym_frag;
23573 +
23574 + isymbuf = retrieve_local_syms(abfd, info->keep_memory);
23575 + if (!isymbuf)
23576 + return FALSE;
23577 +
23578 + for (i = 0; i < sym_count; i++)
23579 + {
23580 + struct avr32_relax_data *rd;
23581 + struct fragment *frag;
23582 + asection *sec;
23583 +
23584 + isym = &isymbuf[i];
23585 +
23586 + sec = bfd_section_from_elf_index(abfd, isym->st_shndx);
23587 + if (!sec)
23588 + continue;
23589 +
23590 + rd = avr32_relax_data(sec);
23591 + if (!rd->is_relaxable)
23592 + continue;
23593 +
23594 + frag = find_frag(sec, isym->st_value);
23595 + BFD_ASSERT(frag);
23596 +
23597 + local_sym_frag[i] = frag;
23598 + }
23599 +
23600 + release_local_syms(abfd, isymbuf);
23601 + }
23602 +
23603 + /* And again for relocs with addends and constant pool references */
23604 + for (abfd = info->input_bfds; abfd; abfd = abfd->link_next)
23605 + for (sec = abfd->sections; sec; sec = sec->next)
23606 + {
23607 + Elf_Internal_Rela *relocs;
23608 + bfd_boolean ret;
23609 +
23610 + if (!(sec->flags & SEC_RELOC) || sec->reloc_count == 0)
23611 + continue;
23612 +
23613 + relocs = retrieve_internal_relocs(abfd, sec, info->keep_memory);
23614 + if (!relocs)
23615 + return FALSE;
23616 +
23617 + ret = allocate_reloc_data(abfd, sec, relocs, info);
23618 +
23619 + release_internal_relocs(sec, relocs);
23620 + if (ret == FALSE)
23621 + return ret;
23622 + }
23623 +
23624 + return TRUE;
23625 +}
23626 +
23627 +static bfd_boolean
23628 +rs_is_good_enough(const struct relax_state *rs, struct fragment *frag,
23629 + bfd_vma symval, bfd_vma addr, struct got_entry *got,
23630 + struct avr32_reloc_data *ind_data,
23631 + bfd_signed_vma offset_adjust)
23632 +{
23633 + bfd_signed_vma target = 0;
23634 +
23635 + switch (rs->reftype)
23636 + {
23637 + case REF_ABSOLUTE:
23638 + target = symval;
23639 + break;
23640 + case REF_PCREL:
23641 + target = symval - addr;
23642 + break;
23643 + case REF_CPOOL:
23644 + /* cpool frags are always in the same section and always after
23645 + all frags referring to it. So it's always correct to add in
23646 + offset_adjust here. */
23647 + target = (ind_data->add_frag->offset + ind_data->add_frag->offset_adjust
23648 + + offset_adjust - frag->offset - frag->offset_adjust);
23649 + break;
23650 + case REF_GOT:
23651 + target = got->offset;
23652 + break;
23653 + default:
23654 + abort();
23655 + }
23656 +
23657 + if (target >= rs->range_min && target <= rs->range_max)
23658 + return TRUE;
23659 + else
23660 + return FALSE;
23661 +}
23662 +
23663 +static bfd_boolean
23664 +avr32_size_frags(bfd *abfd, asection *sec, struct bfd_link_info *info)
23665 +{
23666 + struct elf_avr32_link_hash_table *htab;
23667 + struct avr32_relax_data *rd;
23668 + Elf_Internal_Shdr *symtab_hdr;
23669 + Elf_Internal_Rela *relocs = NULL;
23670 + Elf_Internal_Sym *isymbuf = NULL;
23671 + struct got_entry **local_got_ents;
23672 + struct fragment **local_sym_frag;
23673 + bfd_boolean ret = FALSE;
23674 + bfd_signed_vma delta = 0;
23675 + unsigned int i;
23676 +
23677 + htab = avr32_elf_hash_table(info);
23678 + rd = avr32_relax_data(sec);
23679 +
23680 + if (sec == htab->sgot)
23681 + {
23682 + RDBG("Relaxing GOT section (vma: 0x%lx)\n",
23683 + sec->output_section->vma + sec->output_offset);
23684 + if (assign_got_offsets(htab))
23685 + htab->repeat_pass = TRUE;
23686 + return TRUE;
23687 + }
23688 +
23689 + if (!rd->is_relaxable)
23690 + return TRUE;
23691 +
23692 + if (!sec->rawsize)
23693 + sec->rawsize = sec->size;
23694 +
23695 + symtab_hdr = &elf_tdata(abfd)->symtab_hdr;
23696 + relocs = retrieve_internal_relocs(abfd, sec, info->keep_memory);
23697 + if (!relocs)
23698 + goto out;
23699 +
23700 + isymbuf = retrieve_local_syms(abfd, info->keep_memory);
23701 + if (!isymbuf)
23702 + goto out;
23703 +
23704 + local_got_ents = elf_local_got_ents(abfd);
23705 + local_sym_frag = elf_tdata(abfd)->local_sym_frag;
23706 +
23707 + RDBG("size_frags: %s<%s>\n vma: 0x%08lx, size: 0x%08lx\n",
23708 + abfd->filename, sec->name,
23709 + sec->output_section->vma + sec->output_offset, sec->size);
23710 +
23711 + for (i = 0; i < rd->frag_count; i++)
23712 + {
23713 + struct fragment *frag = &rd->frag[i];
23714 + struct avr32_reloc_data *r_data = NULL, *ind_data = NULL;
23715 + const struct relax_state *state, *next_state;
23716 + struct fragment *target_frag = NULL;
23717 + asection *sym_sec = NULL;
23718 + Elf_Internal_Rela *rela;
23719 + struct got_entry *got;
23720 + bfd_vma symval, r_offset, addend, addr;
23721 + bfd_signed_vma size_adjust = 0, distance;
23722 + unsigned long r_symndx;
23723 + bfd_boolean defined = TRUE, dynamic = FALSE;
23724 + unsigned char sym_type;
23725 +
23726 + frag->offset_adjust += delta;
23727 + state = next_state = &relax_state[frag->state];
23728 + rela = frag->rela;
23729 +
23730 + BFD_ASSERT(state->id == frag->state);
23731 +
23732 + RDBG(" 0x%04lx%c%d: %s [size %ld]", rela ? rela->r_offset : sec->rawsize,
23733 + (frag->offset_adjust < 0)?'-':'+',
23734 + abs(frag->offset_adjust), state->name, state->size);
23735 +
23736 + if (!rela)
23737 + {
23738 + RDBG(": no reloc, ignoring\n");
23739 + continue;
23740 + }
23741 +
23742 + BFD_ASSERT((unsigned int)(rela - relocs) < sec->reloc_count);
23743 + BFD_ASSERT(state != RS_NONE);
23744 +
23745 + r_offset = rela->r_offset + frag->offset_adjust;
23746 + addr = sec->output_section->vma + sec->output_offset + r_offset;
23747 +
23748 + switch (frag->state)
23749 + {
23750 + case RS_ALIGN:
23751 + size_adjust = ((addr + (1 << rela->r_addend) - 1)
23752 + & ~((1 << rela->r_addend) - 1));
23753 + size_adjust -= (sec->output_section->vma + sec->output_offset
23754 + + frag->offset + frag->offset_adjust
23755 + + frag->size + frag->size_adjust);
23756 +
23757 + RDBG(": adjusting size %lu -> %lu\n", frag->size + frag->size_adjust,
23758 + frag->size + frag->size_adjust + size_adjust);
23759 + break;
23760 +
23761 + case RS_CPENT:
23762 + if (frag->refcount == 0 && frag->size_adjust == 0)
23763 + {
23764 + RDBG(": discarding frag\n");
23765 + size_adjust = -4;
23766 + }
23767 + else if (frag->refcount > 0 && frag->size_adjust < 0)
23768 + {
23769 + RDBG(": un-discarding frag\n");
23770 + size_adjust = 4;
23771 + }
23772 + break;
23773 +
23774 + default:
23775 + if (rd->reloc_data)
23776 + r_data = &rd->reloc_data[frag->rela - relocs];
23777 +
23778 + /* If this is a cpool reference, we want the symbol that the
23779 + cpool entry refers to, not the symbol for the cpool entry
23780 + itself, as we already know what frag it's in. */
23781 + if (relax_state[frag->initial_state].reftype == REF_CPOOL)
23782 + {
23783 + Elf_Internal_Rela *irela = r_data->add_frag->rela;
23784 +
23785 + r_symndx = ELF_R_SYM(irela->r_info);
23786 + addend = irela->r_addend;
23787 +
23788 + /* The constant pool must be in the same section as the
23789 + reloc referring to it. */
23790 + BFD_ASSERT((unsigned long)(irela - relocs) < sec->reloc_count);
23791 +
23792 + ind_data = r_data;
23793 + r_data = &rd->reloc_data[irela - relocs];
23794 + }
23795 + else
23796 + {
23797 + r_symndx = ELF_R_SYM(rela->r_info);
23798 + addend = rela->r_addend;
23799 + }
23800 +
23801 + /* Get the value of the symbol referred to by the reloc. */
23802 + if (r_symndx < symtab_hdr->sh_info)
23803 + {
23804 + Elf_Internal_Sym *isym;
23805 +
23806 + isym = isymbuf + r_symndx;
23807 + symval = 0;
23808 +
23809 + RDBG(" local sym %lu: ", r_symndx);
23810 +
23811 + if (isym->st_shndx == SHN_UNDEF)
23812 + defined = FALSE;
23813 + else if (isym->st_shndx == SHN_ABS)
23814 + sym_sec = bfd_abs_section_ptr;
23815 + else if (isym->st_shndx == SHN_COMMON)
23816 + sym_sec = bfd_com_section_ptr;
23817 + else
23818 + sym_sec = bfd_section_from_elf_index(abfd, isym->st_shndx);
23819 +
23820 + symval = isym->st_value;
23821 + sym_type = ELF_ST_TYPE(isym->st_info);
23822 + target_frag = local_sym_frag[r_symndx];
23823 +
23824 + if (local_got_ents)
23825 + got = local_got_ents[r_symndx];
23826 + else
23827 + got = NULL;
23828 + }
23829 + else
23830 + {
23831 + /* Global symbol */
23832 + unsigned long index;
23833 + struct elf_link_hash_entry *h;
23834 + struct elf_avr32_link_hash_entry *havr;
23835 +
23836 + index = r_symndx - symtab_hdr->sh_info;
23837 + h = elf_sym_hashes(abfd)[index];
23838 + BFD_ASSERT(h != NULL);
23839 +
23840 + while (h->root.type == bfd_link_hash_indirect
23841 + || h->root.type == bfd_link_hash_warning)
23842 + h = (struct elf_link_hash_entry *)h->root.u.i.link;
23843 +
23844 + havr = (struct elf_avr32_link_hash_entry *)h;
23845 + got = h->got.glist;
23846 +
23847 + symval = 0;
23848 +
23849 + RDBG(" %s: ", h->root.root.string);
23850 +
23851 + if (h->root.type != bfd_link_hash_defined
23852 + && h->root.type != bfd_link_hash_defweak)
23853 + {
23854 + RDBG("(undef)");
23855 + defined = FALSE;
23856 + }
23857 + else if ((info->shared && !info->symbolic && h->dynindx != -1)
23858 + || (htab->root.dynamic_sections_created
23859 + && h->def_dynamic && !h->def_regular))
23860 + {
23861 + RDBG("(dynamic)");
23862 + dynamic = TRUE;
23863 + sym_sec = h->root.u.def.section;
23864 + }
23865 + else
23866 + {
23867 + sym_sec = h->root.u.def.section;
23868 + symval = h->root.u.def.value;
23869 + target_frag = havr->sym_frag;
23870 + }
23871 +
23872 + sym_type = h->type;
23873 + }
23874 +
23875 + /* Thanks to elf32-ppc for this one. */
23876 + if (sym_sec && sym_sec->sec_info_type == ELF_INFO_TYPE_MERGE)
23877 + {
23878 + /* At this stage in linking, no SEC_MERGE symbol has been
23879 + adjusted, so all references to such symbols need to be
23880 + passed through _bfd_merged_section_offset. (Later, in
23881 + relocate_section, all SEC_MERGE symbols *except* for
23882 + section symbols have been adjusted.)
23883 +
23884 + SEC_MERGE sections are not relaxed by us, as they
23885 + shouldn't contain any code. */
23886 +
23887 + BFD_ASSERT(!target_frag && !(r_data && r_data->add_frag));
23888 +
23889 + /* gas may reduce relocations against symbols in SEC_MERGE
23890 + sections to a relocation against the section symbol when
23891 + the original addend was zero. When the reloc is against
23892 + a section symbol we should include the addend in the
23893 + offset passed to _bfd_merged_section_offset, since the
23894 + location of interest is the original symbol. On the
23895 + other hand, an access to "sym+addend" where "sym" is not
23896 + a section symbol should not include the addend; Such an
23897 + access is presumed to be an offset from "sym"; The
23898 + location of interest is just "sym". */
23899 + RDBG("\n MERGE: %s: 0x%lx+0x%lx+0x%lx -> ",
23900 + (sym_type == STT_SECTION)?"section":"not section",
23901 + sym_sec->output_section->vma + sym_sec->output_offset,
23902 + symval, addend);
23903 +
23904 + if (sym_type == STT_SECTION)
23905 + symval += addend;
23906 +
23907 + symval = (_bfd_merged_section_offset
23908 + (abfd, &sym_sec,
23909 + elf_section_data(sym_sec)->sec_info, symval));
23910 +
23911 + if (sym_type != STT_SECTION)
23912 + symval += addend;
23913 + }
23914 + else
23915 + symval += addend;
23916 +
23917 + if (defined && !dynamic)
23918 + {
23919 + RDBG("0x%lx+0x%lx",
23920 + sym_sec->output_section->vma + sym_sec->output_offset,
23921 + symval);
23922 + symval += sym_sec->output_section->vma + sym_sec->output_offset;
23923 + }
23924 +
23925 + if (r_data && r_data->add_frag)
23926 + /* If the add_frag pointer is set, it means that this reloc
23927 + has an addend that may be affected by relaxation. */
23928 + target_frag = r_data->add_frag;
23929 +
23930 + if (target_frag)
23931 + {
23932 + symval += target_frag->offset_adjust;
23933 +
23934 + /* If target_frag comes after this frag in the same
23935 + section, we should assume that it will be moved by
23936 + the same amount we are. */
23937 + if ((target_frag - rd->frag) < (int)rd->frag_count
23938 + && target_frag > frag)
23939 + symval += delta;
23940 + }
23941 +
23942 + distance = symval - addr;
23943 +
23944 + /* First, try to make a direct reference. If the symbol is
23945 + dynamic or undefined, we must take care not to change its
23946 + reference type, that is, we can't make it direct.
23947 +
23948 + Also, it seems like some sections may actually be resized
23949 + after the relaxation code is done, so we can't really
23950 + trust that our "distance" is correct. There's really no
23951 + easy solution to this problem, so we'll just disallow
23952 + direct references to SEC_DATA sections.
23953 +
23954 + Oh, and .bss isn't actually SEC_DATA, so we disallow
23955 + !SEC_HAS_CONTENTS as well. */
23956 + if (!dynamic && defined
23957 +#ifndef DHRYSTONE_FIX
23958 + && !(sym_sec->flags & SEC_DATA)
23959 +#endif
23960 + && (sym_sec->flags & SEC_HAS_CONTENTS)
23961 + && next_state->direct)
23962 + {
23963 + next_state = &relax_state[next_state->direct];
23964 + RDBG(" D-> %s", next_state->name);
23965 + }
23966 +
23967 + /* Iterate backwards until we find a state that fits. */
23968 + while (next_state->prev
23969 + && !rs_is_good_enough(next_state, frag, symval, addr,
23970 + got, ind_data, delta))
23971 + {
23972 + next_state = &relax_state[next_state->prev];
23973 + RDBG(" P-> %s", next_state->name);
23974 + }
23975 +
23976 + /* Then try to find the best possible state. */
23977 + while (next_state->next)
23978 + {
23979 + const struct relax_state *candidate;
23980 +
23981 + candidate = &relax_state[next_state->next];
23982 + if (!rs_is_good_enough(candidate, frag, symval, addr, got,
23983 + ind_data, delta))
23984 + break;
23985 +
23986 + next_state = candidate;
23987 + RDBG(" N-> %s", next_state->name);
23988 + }
23989 +
23990 + RDBG(" [size %ld]\n", next_state->size);
23991 +
23992 + BFD_ASSERT(next_state->id);
23993 + BFD_ASSERT(!dynamic || next_state->reftype == REF_GOT);
23994 +
23995 + size_adjust = next_state->size - state->size;
23996 +
23997 + /* There's a theoretical possibility that shrinking one frag
23998 + may cause another to grow, which may cause the first one to
23999 + grow as well, and we're back where we started. Avoid this
24000 + scenario by disallowing a frag that has grown to ever
24001 + shrink again. */
24002 + if (state->reftype == REF_GOT && next_state->reftype != REF_GOT)
24003 + {
24004 + if (frag->has_grown)
24005 + next_state = state;
24006 + else
24007 + unref_got_entry(htab, got);
24008 + }
24009 + else if (state->reftype != REF_GOT && next_state->reftype == REF_GOT)
24010 + {
24011 + ref_got_entry(htab, got);
24012 + frag->has_grown = TRUE;
24013 + }
24014 + else if (state->reftype == REF_CPOOL
24015 + && next_state->reftype != REF_CPOOL)
24016 + {
24017 + if (frag->has_grown)
24018 + next_state = state;
24019 + else
24020 + ind_data->add_frag->refcount--;
24021 + }
24022 + else if (state->reftype != REF_CPOOL
24023 + && next_state->reftype == REF_CPOOL)
24024 + {
24025 + ind_data->add_frag->refcount++;
24026 + frag->has_grown = TRUE;
24027 + }
24028 + else
24029 + {
24030 + if (frag->has_grown && size_adjust < 0)
24031 + next_state = state;
24032 + else if (size_adjust > 0)
24033 + frag->has_grown = TRUE;
24034 + }
24035 +
24036 + size_adjust = next_state->size - state->size;
24037 + frag->state = next_state->id;
24038 +
24039 + break;
24040 + }
24041 +
24042 + if (size_adjust)
24043 + htab->repeat_pass = TRUE;
24044 +
24045 + frag->size_adjust += size_adjust;
24046 + sec->size += size_adjust;
24047 + delta += size_adjust;
24048 +
24049 + BFD_ASSERT((frag->offset + frag->offset_adjust
24050 + + frag->size + frag->size_adjust)
24051 + == (frag[1].offset + frag[1].offset_adjust + delta));
24052 + }
24053 +
24054 + ret = TRUE;
24055 +
24056 + out:
24057 + release_local_syms(abfd, isymbuf);
24058 + release_internal_relocs(sec, relocs);
24059 + return ret;
24060 +}
24061 +
24062 +static bfd_boolean
24063 +adjust_global_symbol(struct elf_avr32_link_hash_entry *havr,
24064 + struct bfd_link_info *info ATTRIBUTE_UNUSED)
24065 +{
24066 + struct elf_link_hash_entry *h = &havr->root;
24067 +
24068 + if (havr->sym_frag && (h->root.type == bfd_link_hash_defined
24069 + || h->root.type == bfd_link_hash_defweak))
24070 + {
24071 + RDBG("adjust_global_symbol: %s 0x%08lx -> 0x%08lx\n",
24072 + h->root.root.string, h->root.u.def.value,
24073 + h->root.u.def.value + havr->sym_frag->offset_adjust);
24074 + h->root.u.def.value += havr->sym_frag->offset_adjust;
24075 + }
24076 + return TRUE;
24077 +}
24078 +
24079 +static bfd_boolean
24080 +adjust_syms(struct bfd_link_info *info)
24081 +{
24082 + struct elf_avr32_link_hash_table *htab;
24083 + bfd *abfd;
24084 +
24085 + htab = avr32_elf_hash_table(info);
24086 + elf_link_hash_traverse(&htab->root, adjust_global_symbol, info);
24087 +
24088 + for (abfd = info->input_bfds; abfd; abfd = abfd->link_next)
24089 + {
24090 + Elf_Internal_Sym *isymbuf;
24091 + struct fragment **local_sym_frag, *frag;
24092 + unsigned int i, sym_count;
24093 +
24094 + sym_count = elf_tdata(abfd)->symtab_hdr.sh_info;
24095 + if (sym_count == 0)
24096 + continue;
24097 +
24098 + isymbuf = retrieve_local_syms(abfd, info->keep_memory);
24099 + if (!isymbuf)
24100 + return FALSE;
24101 +
24102 + local_sym_frag = elf_tdata(abfd)->local_sym_frag;
24103 +
24104 + for (i = 0; i < sym_count; i++)
24105 + {
24106 + frag = local_sym_frag[i];
24107 + if (frag)
24108 + {
24109 + RDBG("adjust_local_symbol: %s[%u] 0x%08lx -> 0x%08lx\n",
24110 + abfd->filename, i, isymbuf[i].st_value,
24111 + isymbuf[i].st_value + frag->offset_adjust);
24112 + isymbuf[i].st_value += frag->offset_adjust;
24113 + }
24114 + }
24115 +
24116 + release_local_syms(abfd, isymbuf);
24117 + }
24118 +
24119 + htab->symbols_adjusted = TRUE;
24120 + return TRUE;
24121 +}
24122 +
24123 +static bfd_boolean
24124 +adjust_relocs(bfd *abfd, asection *sec, struct bfd_link_info *info)
24125 +{
24126 + struct avr32_relax_data *rd;
24127 + Elf_Internal_Rela *relocs;
24128 + Elf_Internal_Shdr *symtab_hdr;
24129 + unsigned int i;
24130 + bfd_boolean ret = FALSE;
24131 +
24132 + rd = avr32_relax_data(sec);
24133 + if (!rd->reloc_data)
24134 + return TRUE;
24135 +
24136 + RDBG("adjust_relocs: %s<%s> (count: %u)\n", abfd->filename, sec->name,
24137 + sec->reloc_count);
24138 +
24139 + relocs = retrieve_internal_relocs(abfd, sec, info->keep_memory);
24140 + if (!relocs)
24141 + return FALSE;
24142 +
24143 + symtab_hdr = &elf_tdata(abfd)->symtab_hdr;
24144 +
24145 + for (i = 0; i < sec->reloc_count; i++)
24146 + {
24147 + Elf_Internal_Rela *rela = &relocs[i];
24148 + struct avr32_reloc_data *r_data = &rd->reloc_data[i];
24149 + struct fragment *sym_frag;
24150 + unsigned long r_symndx;
24151 +
24152 + if (r_data->add_frag)
24153 + {
24154 + r_symndx = ELF_R_SYM(rela->r_info);
24155 +
24156 + if (r_symndx < symtab_hdr->sh_info)
24157 + sym_frag = elf_tdata(abfd)->local_sym_frag[r_symndx];
24158 + else
24159 + {
24160 + struct elf_link_hash_entry *h;
24161 +
24162 + h = elf_sym_hashes(abfd)[r_symndx - symtab_hdr->sh_info];
24163 +
24164 + while (h->root.type == bfd_link_hash_indirect
24165 + || h->root.type == bfd_link_hash_warning)
24166 + h = (struct elf_link_hash_entry *)h->root.u.i.link;
24167 +
24168 + BFD_ASSERT(h->root.type == bfd_link_hash_defined
24169 + || h->root.type == bfd_link_hash_defweak);
24170 +
24171 + sym_frag = ((struct elf_avr32_link_hash_entry *)h)->sym_frag;
24172 + }
24173 +
24174 + RDBG(" addend: 0x%08lx -> 0x%08lx\n",
24175 + rela->r_addend,
24176 + rela->r_addend + r_data->add_frag->offset_adjust
24177 + - (sym_frag ? sym_frag->offset_adjust : 0));
24178 +
24179 + /* If this is against a section symbol, we won't find any
24180 + sym_frag, so we'll just adjust the addend. */
24181 + rela->r_addend += r_data->add_frag->offset_adjust;
24182 + if (sym_frag)
24183 + rela->r_addend -= sym_frag->offset_adjust;
24184 +
24185 + if (r_data->sub_frag)
24186 + {
24187 + bfd_byte *contents;
24188 + bfd_signed_vma diff;
24189 +
24190 + contents = retrieve_contents(abfd, sec, info->keep_memory);
24191 + if (!contents)
24192 + goto out;
24193 +
24194 + /* I realize now that sub_frag is misnamed. It's
24195 + actually add_frag which is subtracted in this
24196 + case... */
24197 + diff = bfd_get_signed_32(abfd, contents + rela->r_offset);
24198 + diff += (r_data->sub_frag->offset_adjust
24199 + - r_data->add_frag->offset_adjust);
24200 + bfd_put_32(abfd, diff, contents + rela->r_offset);
24201 +
24202 + RDBG(" 0x%lx: DIFF32 updated: 0x%lx\n", rela->r_offset, diff);
24203 +
24204 + release_contents(sec, contents);
24205 + }
24206 + }
24207 + else
24208 + BFD_ASSERT(!r_data->sub_frag);
24209 + }
24210 +
24211 + ret = TRUE;
24212 +
24213 + out:
24214 + release_internal_relocs(sec, relocs);
24215 + return ret;
24216 +}
24217 +
24218 +static bfd_boolean
24219 +avr32_move_data(bfd *abfd, asection *sec, struct bfd_link_info *info)
24220 +{
24221 + struct elf_avr32_link_hash_table *htab;
24222 + struct avr32_relax_data *rd;
24223 + struct fragment *frag, *fragend;
24224 + Elf_Internal_Rela *relocs = NULL;
24225 + bfd_byte *contents = NULL;
24226 + unsigned int i;
24227 + bfd_boolean ret = FALSE;
24228 +
24229 + htab = avr32_elf_hash_table(info);
24230 + rd = avr32_relax_data(sec);
24231 +
24232 + if (!htab->symbols_adjusted)
24233 + if (!adjust_syms(info))
24234 + return FALSE;
24235 +
24236 + if (rd->is_relaxable)
24237 + {
24238 + /* Resize the section first, so that we can be sure that enough
24239 + memory is allocated in case the section has grown. */
24240 + if (sec->size > sec->rawsize
24241 + && elf_section_data(sec)->this_hdr.contents)
24242 + {
24243 + /* We must not use cached data if the section has grown. */
24244 + free(elf_section_data(sec)->this_hdr.contents);
24245 + elf_section_data(sec)->this_hdr.contents = NULL;
24246 + }
24247 +
24248 + relocs = retrieve_internal_relocs(abfd, sec, info->keep_memory);
24249 + if (!relocs)
24250 + goto out;
24251 + contents = retrieve_contents(abfd, sec, info->keep_memory);
24252 + if (!contents)
24253 + goto out;
24254 +
24255 + fragend = rd->frag + rd->frag_count;
24256 +
24257 + RDBG("move_data: %s<%s>: relocs=%p, contents=%p\n",
24258 + abfd->filename, sec->name, relocs, contents);
24259 +
24260 + /* First, move the data into place. We must take care to move
24261 + frags in the right order so that we don't accidentally
24262 + overwrite parts of the next frag. */
24263 + for (frag = rd->frag; frag < fragend; frag++)
24264 + {
24265 + RDBG(" 0x%08lx%c0x%x: size 0x%lx%c0x%x\n",
24266 + frag->offset, frag->offset_adjust >= 0 ? '+' : '-',
24267 + abs(frag->offset_adjust),
24268 + frag->size, frag->size_adjust >= 0 ? '+' : '-',
24269 + abs(frag->size_adjust));
24270 + if (frag->offset_adjust > 0)
24271 + {
24272 + struct fragment *prev = frag - 1;
24273 + struct fragment *last;
24274 +
24275 + for (last = frag; last < fragend && last->offset_adjust > 0;
24276 + last++) ;
24277 +
24278 + if (last == fragend)
24279 + last--;
24280 +
24281 + for (frag = last; frag != prev; frag--)
24282 + {
24283 + if (frag->offset_adjust
24284 + && frag->size + frag->size_adjust > 0)
24285 + {
24286 + RDBG("memmove 0x%lx -> 0x%lx (size %lu)\n",
24287 + frag->offset, frag->offset + frag->offset_adjust,
24288 + frag->size + frag->size_adjust);
24289 + memmove(contents + frag->offset + frag->offset_adjust,
24290 + contents + frag->offset,
24291 + frag->size + frag->size_adjust);
24292 + }
24293 + }
24294 + frag = last;
24295 + }
24296 + else if (frag->offset_adjust && frag->size + frag->size_adjust > 0)
24297 + {
24298 + RDBG("memmove 0x%lx -> 0x%lx (size %lu)\n",
24299 + frag->offset, frag->offset + frag->offset_adjust,
24300 + frag->size + frag->size_adjust);
24301 + memmove(contents + frag->offset + frag->offset_adjust,
24302 + contents + frag->offset,
24303 + frag->size + frag->size_adjust);
24304 + }
24305 + }
24306 +
24307 + i = 0;
24308 +
24309 + for (frag = rd->frag; frag < fragend; frag++)
24310 + {
24311 + const struct relax_state *state, *istate;
24312 + struct avr32_reloc_data *r_data = NULL;
24313 +
24314 + istate = &relax_state[frag->initial_state];
24315 + state = &relax_state[frag->state];
24316 +
24317 + if (rd->reloc_data)
24318 + r_data = &rd->reloc_data[frag->rela - relocs];
24319 +
24320 + BFD_ASSERT((long)(frag->size + frag->size_adjust) >= 0);
24321 + BFD_ASSERT(state->reftype != REF_CPOOL
24322 + || r_data->add_frag->refcount > 0);
24323 +
24324 + if (istate->reftype == REF_CPOOL && state->reftype != REF_CPOOL)
24325 + {
24326 + struct fragment *ifrag;
24327 +
24328 + /* An indirect reference through the cpool has been
24329 + converted to a direct reference. We must update the
24330 + reloc to point to the symbol itself instead of the
24331 + constant pool entry. The reloc type will be updated
24332 + later. */
24333 + ifrag = r_data->add_frag;
24334 + frag->rela->r_info = ifrag->rela->r_info;
24335 + frag->rela->r_addend = ifrag->rela->r_addend;
24336 +
24337 + /* Copy the reloc data so the addend will be adjusted
24338 + correctly later. */
24339 + *r_data = rd->reloc_data[ifrag->rela - relocs];
24340 + }
24341 +
24342 + /* Move all relocs covered by this frag. */
24343 + if (frag->rela)
24344 + BFD_ASSERT(&relocs[i] <= frag->rela);
24345 + else
24346 + BFD_ASSERT((frag + 1) == fragend && frag->state == RS_NONE);
24347 +
24348 + if (frag == rd->frag)
24349 + BFD_ASSERT(i == 0);
24350 + else
24351 + BFD_ASSERT(&relocs[i] > frag[-1].rela);
24352 +
24353 + /* If non-null, frag->rela is the last relocation in the
24354 + fragment. frag->rela can only be null in the last
24355 + fragment, so in that case, we'll just do the rest. */
24356 + for (; (i < sec->reloc_count
24357 + && (!frag->rela || &relocs[i] <= frag->rela)); i++)
24358 + {
24359 + RDBG("[%4u] r_offset 0x%08lx -> 0x%08lx\n", i, relocs[i].r_offset,
24360 + relocs[i].r_offset + frag->offset_adjust);
24361 + relocs[i].r_offset += frag->offset_adjust;
24362 + }
24363 +
24364 + if (frag->refcount == 0)
24365 + {
24366 + /* If this frag is to be discarded, make sure we won't
24367 + relocate it later on. */
24368 + BFD_ASSERT(frag->state == RS_CPENT);
24369 + frag->rela->r_info = ELF_R_INFO(ELF_R_SYM(frag->rela->r_info),
24370 + R_AVR32_NONE);
24371 + }
24372 + else if (frag->state == RS_ALIGN)
24373 + {
24374 + bfd_vma addr, addr_end;
24375 +
24376 + addr = frag->rela->r_offset;
24377 + addr_end = (frag->offset + frag->offset_adjust
24378 + + frag->size + frag->size_adjust);
24379 +
24380 + /* If the section is executable, insert NOPs.
24381 + Otherwise, insert zeroes. */
24382 + if (sec->flags & SEC_CODE)
24383 + {
24384 + if (addr & 1)
24385 + {
24386 + bfd_put_8(abfd, 0, contents + addr);
24387 + addr++;
24388 + }
24389 +
24390 + BFD_ASSERT(!((addr_end - addr) & 1));
24391 +
24392 + while (addr < addr_end)
24393 + {
24394 + bfd_put_16(abfd, NOP_OPCODE, contents + addr);
24395 + addr += 2;
24396 + }
24397 + }
24398 + else
24399 + memset(contents + addr, 0, addr_end - addr);
24400 + }
24401 + else if (state->opcode_mask)
24402 + {
24403 + bfd_vma insn;
24404 +
24405 + /* Update the opcode and the relocation type unless it's a
24406 + "special" relax state (i.e. RS_NONE, RS_ALIGN or
24407 + RS_CPENT.), in which case the opcode mask is zero. */
24408 + insn = bfd_get_32(abfd, contents + frag->rela->r_offset);
24409 + insn &= ~state->opcode_mask;
24410 + insn |= state->opcode;
24411 + RDBG(" 0x%lx: inserting insn %08lx\n",
24412 + frag->rela->r_offset, insn);
24413 + bfd_put_32(abfd, insn, contents + frag->rela->r_offset);
24414 +
24415 + frag->rela->r_info = ELF_R_INFO(ELF_R_SYM(frag->rela->r_info),
24416 + state->r_type);
24417 + }
24418 +
24419 + if ((frag + 1) == fragend)
24420 + BFD_ASSERT((frag->offset + frag->size + frag->offset_adjust
24421 + + frag->size_adjust) == sec->size);
24422 + else
24423 + BFD_ASSERT((frag->offset + frag->size + frag->offset_adjust
24424 + + frag->size_adjust)
24425 + == (frag[1].offset + frag[1].offset_adjust));
24426 + }
24427 + }
24428 +
24429 + /* Adjust reloc addends and DIFF32 differences */
24430 + if (!adjust_relocs(abfd, sec, info))
24431 + return FALSE;
24432 +
24433 + ret = TRUE;
24434 +
24435 + out:
24436 + release_contents(sec, contents);
24437 + release_internal_relocs(sec, relocs);
24438 + return ret;
24439 +}
24440 +
24441 +static bfd_boolean
24442 +avr32_elf_relax_section(bfd *abfd, asection *sec,
24443 + struct bfd_link_info *info, bfd_boolean *again)
24444 +{
24445 + struct elf_avr32_link_hash_table *htab;
24446 + struct avr32_relax_data *rd;
24447 +
24448 + *again = FALSE;
24449 + if (info->relocatable)
24450 + return TRUE;
24451 +
24452 + htab = avr32_elf_hash_table(info);
24453 + if ((!(sec->flags & SEC_RELOC) || sec->reloc_count == 0)
24454 + && sec != htab->sgot)
24455 + return TRUE;
24456 +
24457 + if (!htab->relocations_analyzed)
24458 + {
24459 + if (!analyze_relocations(info))
24460 + return FALSE;
24461 + htab->relocations_analyzed = TRUE;
24462 + }
24463 +
24464 + rd = avr32_relax_data(sec);
24465 +
24466 + if (rd->iteration != htab->relax_iteration)
24467 + {
24468 + if (!htab->repeat_pass)
24469 + htab->relax_pass++;
24470 + htab->relax_iteration++;
24471 + htab->repeat_pass = FALSE;
24472 + }
24473 +
24474 + rd->iteration++;
24475 +
24476 + switch (htab->relax_pass)
24477 + {
24478 + case RELAX_PASS_SIZE_FRAGS:
24479 + if (!avr32_size_frags(abfd, sec, info))
24480 + return FALSE;
24481 + *again = TRUE;
24482 + break;
24483 + case RELAX_PASS_MOVE_DATA:
24484 + if (!avr32_move_data(abfd, sec, info))
24485 + return FALSE;
24486 + break;
24487 + }
24488 +
24489 + return TRUE;
24490 +}
24491 +
24492 +\f
24493 +/* Relocation */
24494 +
24495 +static bfd_reloc_status_type
24496 +avr32_check_reloc_value(asection *sec, Elf_Internal_Rela *rela,
24497 + bfd_signed_vma relocation, reloc_howto_type *howto);
24498 +static bfd_reloc_status_type
24499 +avr32_final_link_relocate(reloc_howto_type *howto, bfd *input_bfd,
24500 + asection *input_section, bfd_byte *contents,
24501 + Elf_Internal_Rela *rel, bfd_vma value);
24502 +static bfd_boolean
24503 +avr32_elf_relocate_section(bfd *output_bfd, struct bfd_link_info *info,
24504 + bfd *input_bfd, asection *input_section,
24505 + bfd_byte *contents, Elf_Internal_Rela *relocs,
24506 + Elf_Internal_Sym *local_syms,
24507 + asection **local_sections);
24508 +
24509 +
24510 +#define symbol_address(symbol) \
24511 + symbol->value + symbol->section->output_section->vma \
24512 + + symbol->section->output_offset
24513 +
24514 +#define avr32_elf_insert_field(size, field, abfd, reloc_entry, data) \
24515 + do \
24516 + { \
24517 + unsigned long x; \
24518 + x = bfd_get_##size (abfd, data + reloc_entry->address); \
24519 + x &= ~reloc_entry->howto->dst_mask; \
24520 + x |= field & reloc_entry->howto->dst_mask; \
24521 + bfd_put_##size (abfd, (bfd_vma) x, data + reloc_entry->address); \
24522 + } \
24523 + while(0)
24524 +
24525 +static bfd_reloc_status_type
24526 +avr32_check_reloc_value(asection *sec ATTRIBUTE_UNUSED,
24527 + Elf_Internal_Rela *rela ATTRIBUTE_UNUSED,
24528 + bfd_signed_vma relocation,
24529 + reloc_howto_type *howto)
24530 +{
24531 + bfd_vma reloc_u;
24532 +
24533 + /* We take "complain_overflow_dont" to mean "don't complain on
24534 + alignment either". This way, we don't have to special-case
24535 + R_AVR32_HI16 */
24536 + if (howto->complain_on_overflow == complain_overflow_dont)
24537 + return bfd_reloc_ok;
24538 +
24539 + /* Check if the value is correctly aligned */
24540 + if (relocation & ((1 << howto->rightshift) - 1))
24541 + {
24542 + RDBG("misaligned: %s<%s+%lx>: %s: 0x%lx (align %u)\n",
24543 + sec->owner->filename, sec->name, rela->r_offset,
24544 + howto->name, relocation, howto->rightshift);
24545 + return bfd_reloc_overflow;
24546 + }
24547 +
24548 + /* Now, get rid of the unnecessary bits */
24549 + relocation >>= howto->rightshift;
24550 + reloc_u = (bfd_vma)relocation;
24551 +
24552 + switch (howto->complain_on_overflow)
24553 + {
24554 + case complain_overflow_unsigned:
24555 + case complain_overflow_bitfield:
24556 + if (reloc_u > (unsigned long)((1 << howto->bitsize) - 1))
24557 + {
24558 + RDBG("unsigned overflow: %s<%s+%lx>: %s: 0x%lx (size %u)\n",
24559 + sec->owner->filename, sec->name, rela->r_offset,
24560 + howto->name, reloc_u, howto->bitsize);
24561 + RDBG("reloc vma: 0x%lx\n",
24562 + sec->output_section->vma + sec->output_offset + rela->r_offset);
24563 +
24564 + return bfd_reloc_overflow;
24565 + }
24566 + break;
24567 + case complain_overflow_signed:
24568 + if (relocation > (1 << (howto->bitsize - 1)) - 1)
24569 + {
24570 + RDBG("signed overflow: %s<%s+%lx>: %s: 0x%lx (size %u)\n",
24571 + sec->owner->filename, sec->name, rela->r_offset,
24572 + howto->name, reloc_u, howto->bitsize);
24573 + RDBG("reloc vma: 0x%lx\n",
24574 + sec->output_section->vma + sec->output_offset + rela->r_offset);
24575 +
24576 + return bfd_reloc_overflow;
24577 + }
24578 + if (relocation < -(1 << (howto->bitsize - 1)))
24579 + {
24580 + RDBG("signed overflow: %s<%s+%lx>: %s: -0x%lx (size %u)\n",
24581 + sec->owner->filename, sec->name, rela->r_offset,
24582 + howto->name, -relocation, howto->bitsize);
24583 + RDBG("reloc vma: 0x%lx\n",
24584 + sec->output_section->vma + sec->output_offset + rela->r_offset);
24585 +
24586 + return bfd_reloc_overflow;
24587 + }
24588 + break;
24589 + default:
24590 + abort();
24591 + }
24592 +
24593 + return bfd_reloc_ok;
24594 +}
24595 +
24596 +
24597 +static bfd_reloc_status_type
24598 +avr32_final_link_relocate(reloc_howto_type *howto,
24599 + bfd *input_bfd,
24600 + asection *input_section,
24601 + bfd_byte *contents,
24602 + Elf_Internal_Rela *rel,
24603 + bfd_vma value)
24604 +{
24605 + bfd_vma field;
24606 + bfd_vma relocation;
24607 + bfd_reloc_status_type status;
24608 + bfd_byte *p = contents + rel->r_offset;
24609 + unsigned long x;
24610 +
24611 + pr_debug(" (6b) final link relocate\n");
24612 +
24613 + /* Sanity check the address */
24614 + if (rel->r_offset > input_section->size)
24615 + {
24616 + (*_bfd_error_handler)
24617 + ("%B: %A+0x%lx: offset out of range (section size: 0x%lx)",
24618 + input_bfd, input_section, rel->r_offset, input_section->size);
24619 + return bfd_reloc_outofrange;
24620 + }
24621 +
24622 + relocation = value + rel->r_addend;
24623 +
24624 + if (howto->pc_relative)
24625 + {
24626 + bfd_vma addr;
24627 +
24628 + addr = input_section->output_section->vma
24629 + + input_section->output_offset + rel->r_offset;
24630 + addr &= ~0UL << howto->rightshift;
24631 + relocation -= addr;
24632 + }
24633 +
24634 + switch (ELF32_R_TYPE(rel->r_info))
24635 + {
24636 + case R_AVR32_16N_PCREL:
24637 + /* sub reg, pc, . - (sym + addend) */
24638 + relocation = -relocation;
24639 + break;
24640 + }
24641 +
24642 + status = avr32_check_reloc_value(input_section, rel, relocation, howto);
24643 +
24644 + relocation >>= howto->rightshift;
24645 + if (howto->bitsize == 21)
24646 + field = (relocation & 0xffff)
24647 + | ((relocation & 0x10000) << 4)
24648 + | ((relocation & 0x1e0000) << 8);
24649 + else if (howto->bitsize == 12)
24650 + field = (relocation & 0xff) | ((relocation & 0xf00) << 4);
24651 + else if (howto->bitsize == 10)
24652 + field = ((relocation & 0xff) << 4)
24653 + | ((relocation & 0x300) >> 8);
24654 + else
24655 + field = relocation << howto->bitpos;
24656 +
24657 + switch (howto->size)
24658 + {
24659 + case 0:
24660 + x = bfd_get_8 (input_bfd, p);
24661 + x &= ~howto->dst_mask;
24662 + x |= field & howto->dst_mask;
24663 + bfd_put_8 (input_bfd, (bfd_vma) x, p);
24664 + break;
24665 + case 1:
24666 + x = bfd_get_16 (input_bfd, p);
24667 + x &= ~howto->dst_mask;
24668 + x |= field & howto->dst_mask;
24669 + bfd_put_16 (input_bfd, (bfd_vma) x, p);
24670 + break;
24671 + case 2:
24672 + x = bfd_get_32 (input_bfd, p);
24673 + x &= ~howto->dst_mask;
24674 + x |= field & howto->dst_mask;
24675 + bfd_put_32 (input_bfd, (bfd_vma) x, p);
24676 + break;
24677 + default:
24678 + abort();
24679 + }
24680 +
24681 + return status;
24682 +}
24683 +
24684 +/* (6) Apply relocations to the normal (non-dynamic) sections */
24685 +
24686 +static bfd_boolean
24687 +avr32_elf_relocate_section(bfd *output_bfd, struct bfd_link_info *info,
24688 + bfd *input_bfd, asection *input_section,
24689 + bfd_byte *contents, Elf_Internal_Rela *relocs,
24690 + Elf_Internal_Sym *local_syms,
24691 + asection **local_sections)
24692 +{
24693 + struct elf_avr32_link_hash_table *htab;
24694 + Elf_Internal_Shdr *symtab_hdr;
24695 + Elf_Internal_Rela *rel, *relend;
24696 + struct elf_link_hash_entry **sym_hashes;
24697 + struct got_entry **local_got_ents;
24698 + asection *sgot;
24699 + asection *srelgot;
24700 +
24701 + pr_debug("(6) relocate section %s:<%s> (size 0x%lx)\n",
24702 + input_bfd->filename, input_section->name, input_section->size);
24703 +
24704 + /* If we're doing a partial link, we don't have to do anything since
24705 + we're using RELA relocations */
24706 + if (info->relocatable)
24707 + return TRUE;
24708 +
24709 + htab = avr32_elf_hash_table(info);
24710 + symtab_hdr = &elf_tdata(input_bfd)->symtab_hdr;
24711 + sym_hashes = elf_sym_hashes(input_bfd);
24712 + local_got_ents = elf_local_got_ents(input_bfd);
24713 + sgot = htab->sgot;
24714 + srelgot = htab->srelgot;
24715 +
24716 + relend = relocs + input_section->reloc_count;
24717 + for (rel = relocs; rel < relend; rel++)
24718 + {
24719 + unsigned long r_type, r_symndx;
24720 + reloc_howto_type *howto;
24721 + Elf_Internal_Sym *sym = NULL;
24722 + struct elf_link_hash_entry *h = NULL;
24723 + asection *sec = NULL;
24724 + bfd_vma value;
24725 + bfd_vma offset;
24726 + bfd_reloc_status_type status;
24727 +
24728 + r_type = ELF32_R_TYPE(rel->r_info);
24729 + r_symndx = ELF32_R_SYM(rel->r_info);
24730 +
24731 + if (r_type == R_AVR32_NONE
24732 + || r_type == R_AVR32_ALIGN
24733 + || r_type == R_AVR32_DIFF32
24734 + || r_type == R_AVR32_DIFF16
24735 + || r_type == R_AVR32_DIFF8)
24736 + continue;
24737 +
24738 + /* Sanity check */
24739 + if (r_type > R_AVR32_max)
24740 + {
24741 + bfd_set_error(bfd_error_bad_value);
24742 + return FALSE;
24743 + }
24744 +
24745 + howto = &elf_avr32_howto_table[r_type];
24746 +
24747 + if (r_symndx < symtab_hdr->sh_info)
24748 + {
24749 + sym = local_syms + r_symndx;
24750 + sec = local_sections[r_symndx];
24751 +
24752 + pr_debug(" (6a) processing %s against local symbol %lu\n",
24753 + howto->name, r_symndx);
24754 +
24755 + /* The following function changes rel->r_addend behind our back. */
24756 + value = _bfd_elf_rela_local_sym(output_bfd, sym, &sec, rel);
24757 + pr_debug(" => value: %lx, addend: %lx\n", value, rel->r_addend);
24758 + }
24759 + else
24760 + {
24761 + if (sym_hashes == NULL)
24762 + return FALSE;
24763 +
24764 + h = sym_hashes[r_symndx - symtab_hdr->sh_info];
24765 + while (h->root.type == bfd_link_hash_indirect
24766 + || h->root.type == bfd_link_hash_warning)
24767 + h = (struct elf_link_hash_entry *)h->root.u.i.link;
24768 +
24769 + pr_debug(" (6a) processing %s against symbol %s\n",
24770 + howto->name, h->root.root.string);
24771 +
24772 + if (h->root.type == bfd_link_hash_defined
24773 + || h->root.type == bfd_link_hash_defweak)
24774 + {
24775 + bfd_boolean dyn;
24776 +
24777 + dyn = htab->root.dynamic_sections_created;
24778 + sec = h->root.u.def.section;
24779 +
24780 + if (sec->output_section)
24781 + value = (h->root.u.def.value
24782 + + sec->output_section->vma
24783 + + sec->output_offset);
24784 + else
24785 + value = h->root.u.def.value;
24786 + }
24787 + else if (h->root.type == bfd_link_hash_undefweak)
24788 + value = 0;
24789 + else if (info->unresolved_syms_in_objects == RM_IGNORE
24790 + && ELF_ST_VISIBILITY(h->other) == STV_DEFAULT)
24791 + value = 0;
24792 + else
24793 + {
24794 + bfd_boolean err;
24795 + err = (info->unresolved_syms_in_objects == RM_GENERATE_ERROR
24796 + || ELF_ST_VISIBILITY(h->other) != STV_DEFAULT);
24797 + if (!info->callbacks->undefined_symbol
24798 + (info, h->root.root.string, input_bfd,
24799 + input_section, rel->r_offset, err))
24800 + return FALSE;
24801 + value = 0;
24802 + }
24803 +
24804 + pr_debug(" => value: %lx, addend: %lx\n", value, rel->r_addend);
24805 + }
24806 +
24807 + switch (r_type)
24808 + {
24809 + case R_AVR32_GOT32:
24810 + case R_AVR32_GOT16:
24811 + case R_AVR32_GOT8:
24812 + case R_AVR32_GOT21S:
24813 + case R_AVR32_GOT18SW:
24814 + case R_AVR32_GOT16S:
24815 + case R_AVR32_GOT7UW:
24816 + case R_AVR32_LDA_GOT:
24817 + case R_AVR32_GOTCALL:
24818 + BFD_ASSERT(sgot != NULL);
24819 +
24820 + if (h != NULL)
24821 + {
24822 + BFD_ASSERT(h->got.glist->refcount > 0);
24823 + offset = h->got.glist->offset;
24824 +
24825 + BFD_ASSERT(offset < sgot->size);
24826 + if (!elf_hash_table(info)->dynamic_sections_created
24827 + || (h->def_regular
24828 + && (!info->shared
24829 + || info->symbolic
24830 + || h->dynindx == -1)))
24831 + {
24832 + /* This is actually a static link, or it is a
24833 + -Bsymbolic link and the symbol is defined
24834 + locally, or the symbol was forced to be local. */
24835 + bfd_put_32(output_bfd, value, sgot->contents + offset);
24836 + }
24837 + }
24838 + else
24839 + {
24840 + BFD_ASSERT(local_got_ents &&
24841 + local_got_ents[r_symndx]->refcount > 0);
24842 + offset = local_got_ents[r_symndx]->offset;
24843 +
24844 + /* Local GOT entries don't have relocs. If this is a
24845 + shared library, the dynamic linker will add the load
24846 + address to the initial value at startup. */
24847 + BFD_ASSERT(offset < sgot->size);
24848 + pr_debug("Initializing GOT entry at offset %lu: 0x%lx\n",
24849 + offset, value);
24850 + bfd_put_32 (output_bfd, value, sgot->contents + offset);
24851 + }
24852 +
24853 + value = sgot->output_offset + offset;
24854 + pr_debug("GOT reference: New value %lx\n", value);
24855 + break;
24856 +
24857 + case R_AVR32_GOTPC:
24858 + /* This relocation type is for constant pool entries used in
24859 + the calculation "Rd = PC - (PC - GOT)", where the
24860 + constant pool supplies the constant (PC - GOT)
24861 + offset. The symbol value + addend indicates where the
24862 + value of PC is taken. */
24863 + value -= sgot->output_section->vma;
24864 + break;
24865 +
24866 + case R_AVR32_32_PCREL:
24867 + /* We must adjust r_offset to account for discarded data in
24868 + the .eh_frame section. This is probably not the right
24869 + way to do this, since AFAICS all other architectures do
24870 + it some other way. I just can't figure out how... */
24871 + {
24872 + bfd_vma r_offset;
24873 +
24874 + r_offset = _bfd_elf_section_offset(output_bfd, info,
24875 + input_section,
24876 + rel->r_offset);
24877 + if (r_offset == (bfd_vma)-1
24878 + || r_offset == (bfd_vma)-2)
24879 + continue;
24880 + rel->r_offset = r_offset;
24881 + }
24882 + break;
24883 +
24884 + case R_AVR32_32:
24885 + /* We need to emit a run-time relocation in the following cases:
24886 + - we're creating a shared library
24887 + - the symbol is not defined in any regular objects
24888 +
24889 + Of course, sections that aren't going to be part of the
24890 + run-time image will not get any relocs, and undefined
24891 + symbols won't have any either (only weak undefined
24892 + symbols should get this far). */
24893 + if ((info->shared
24894 + || (elf_hash_table(info)->dynamic_sections_created
24895 + && h != NULL
24896 + && h->def_dynamic
24897 + && !h->def_regular))
24898 + && r_symndx != 0
24899 + && (input_section->flags & SEC_ALLOC))
24900 + {
24901 + Elf_Internal_Rela outrel;
24902 + bfd_byte *loc;
24903 + bfd_boolean skip, relocate;
24904 + struct elf_avr32_link_hash_entry *avrh;
24905 +
24906 + pr_debug("Going to generate dynamic reloc...\n");
24907 +
24908 + skip = FALSE;
24909 + relocate = FALSE;
24910 +
24911 + outrel.r_offset = _bfd_elf_section_offset(output_bfd, info,
24912 + input_section,
24913 + rel->r_offset);
24914 + if (outrel.r_offset == (bfd_vma)-1)
24915 + skip = TRUE;
24916 + else if (outrel.r_offset == (bfd_vma)-2)
24917 + skip = TRUE, relocate = TRUE;
24918 +
24919 + outrel.r_offset += (input_section->output_section->vma
24920 + + input_section->output_offset);
24921 +
24922 + pr_debug(" ... offset %lx, dynindx %ld\n",
24923 + outrel.r_offset, h ? h->dynindx : -1);
24924 +
24925 + if (skip)
24926 + memset(&outrel, 0, sizeof(outrel));
24927 + else
24928 + {
24929 + avrh = (struct elf_avr32_link_hash_entry *)h;
24930 + /* h->dynindx may be -1 if this symbol was marked to
24931 + become local. */
24932 + if (h == NULL
24933 + || ((info->symbolic || h->dynindx == -1)
24934 + && h->def_regular))
24935 + {
24936 + relocate = TRUE;
24937 + outrel.r_info = ELF32_R_INFO(0, R_AVR32_RELATIVE);
24938 + outrel.r_addend = value + rel->r_addend;
24939 + pr_debug(" ... R_AVR32_RELATIVE\n");
24940 + }
24941 + else
24942 + {
24943 + BFD_ASSERT(h->dynindx != -1);
24944 + relocate = TRUE;
24945 + outrel.r_info = ELF32_R_INFO(h->dynindx, R_AVR32_GLOB_DAT);
24946 + outrel.r_addend = rel->r_addend;
24947 + pr_debug(" ... R_AVR32_GLOB_DAT\n");
24948 + }
24949 + }
24950 +
24951 + pr_debug("srelgot reloc_count: %d, size %lu\n",
24952 + srelgot->reloc_count, srelgot->size);
24953 +
24954 + loc = srelgot->contents;
24955 + loc += srelgot->reloc_count++ * sizeof(Elf32_External_Rela);
24956 + bfd_elf32_swap_reloca_out(output_bfd, &outrel, loc);
24957 +
24958 + BFD_ASSERT(srelgot->reloc_count * sizeof(Elf32_External_Rela)
24959 + <= srelgot->size);
24960 +
24961 + if (!relocate)
24962 + continue;
24963 + }
24964 + break;
24965 + }
24966 +
24967 + status = avr32_final_link_relocate(howto, input_bfd, input_section,
24968 + contents, rel, value);
24969 +
24970 + switch (status)
24971 + {
24972 + case bfd_reloc_ok:
24973 + break;
24974 +
24975 + case bfd_reloc_overflow:
24976 + {
24977 + const char *name;
24978 +
24979 + if (h != NULL)
24980 + name = h->root.root.string;
24981 + else
24982 + {
24983 + name = bfd_elf_string_from_elf_section(input_bfd,
24984 + symtab_hdr->sh_link,
24985 + sym->st_name);
24986 + if (name == NULL)
24987 + return FALSE;
24988 + if (*name == '\0')
24989 + name = bfd_section_name(input_bfd, sec);
24990 + }
24991 + if (!((*info->callbacks->reloc_overflow)
24992 + (info, (h ? &h->root : NULL), name, howto->name,
24993 + rel->r_addend, input_bfd, input_section, rel->r_offset)))
24994 + return FALSE;
24995 + }
24996 + break;
24997 +
24998 + case bfd_reloc_outofrange:
24999 + default:
25000 + abort();
25001 + }
25002 + }
25003 +
25004 + return TRUE;
25005 +}
25006 +
25007 +\f
25008 +/* Additional processing of dynamic sections after relocation */
25009 +
25010 +static bfd_boolean
25011 +avr32_elf_finish_dynamic_symbol(bfd *output_bfd, struct bfd_link_info *info,
25012 + struct elf_link_hash_entry *h,
25013 + Elf_Internal_Sym *sym);
25014 +static bfd_boolean
25015 +avr32_elf_finish_dynamic_sections(bfd *output_bfd, struct bfd_link_info *info);
25016 +
25017 +
25018 +/* (7) Initialize the contents of a dynamic symbol and/or emit
25019 + relocations for it */
25020 +
25021 +static bfd_boolean
25022 +avr32_elf_finish_dynamic_symbol(bfd *output_bfd, struct bfd_link_info *info,
25023 + struct elf_link_hash_entry *h,
25024 + Elf_Internal_Sym *sym)
25025 +{
25026 + struct elf_avr32_link_hash_table *htab;
25027 + struct got_entry *got;
25028 +
25029 + pr_debug("(7) finish dynamic symbol: %s\n", h->root.root.string);
25030 +
25031 + htab = avr32_elf_hash_table(info);
25032 + got = h->got.glist;
25033 +
25034 + if (got && got->refcount > 0)
25035 + {
25036 + asection *sgot;
25037 + asection *srelgot;
25038 + Elf_Internal_Rela rel;
25039 + bfd_byte *loc;
25040 +
25041 + /* This symbol has an entry in the GOT. Set it up. */
25042 + sgot = htab->sgot;
25043 + srelgot = htab->srelgot;
25044 + BFD_ASSERT(sgot && srelgot);
25045 +
25046 + rel.r_offset = (sgot->output_section->vma
25047 + + sgot->output_offset
25048 + + got->offset);
25049 +
25050 + /* If this is a static link, or it is a -Bsymbolic link and the
25051 + symbol is defined locally or was forced to be local because
25052 + of a version file, we just want to emit a RELATIVE reloc. The
25053 + entry in the global offset table will already have been
25054 + initialized in the relocate_section function. */
25055 + if ((info->shared
25056 + && !info->symbolic
25057 + && h->dynindx != -1)
25058 + || (htab->root.dynamic_sections_created
25059 + && h->def_dynamic
25060 + && !h->def_regular))
25061 + {
25062 + bfd_put_32(output_bfd, 0, sgot->contents + got->offset);
25063 + rel.r_info = ELF32_R_INFO(h->dynindx, R_AVR32_GLOB_DAT);
25064 + rel.r_addend = 0;
25065 +
25066 + pr_debug("GOT reloc R_AVR32_GLOB_DAT, dynindx: %ld\n", h->dynindx);
25067 + pr_debug(" srelgot reloc_count: %d, size: %lu\n",
25068 + srelgot->reloc_count, srelgot->size);
25069 +
25070 + loc = (srelgot->contents
25071 + + srelgot->reloc_count++ * sizeof(Elf32_External_Rela));
25072 + bfd_elf32_swap_reloca_out(output_bfd, &rel, loc);
25073 +
25074 + BFD_ASSERT(srelgot->reloc_count * sizeof(Elf32_External_Rela)
25075 + <= srelgot->size);
25076 + }
25077 + }
25078 +
25079 + /* Mark _DYNAMIC and _GLOBAL_OFFSET_TABLE_ as absolute */
25080 + if (strcmp(h->root.root.string, "_DYNAMIC") == 0
25081 + || strcmp(h->root.root.string, "_GLOBAL_OFFSET_TABLE_") == 0)
25082 + sym->st_shndx = SHN_ABS;
25083 +
25084 + return TRUE;
25085 +}
25086 +
25087 +/* (8) Do any remaining initialization of the dynamic sections */
25088 +
25089 +static bfd_boolean
25090 +avr32_elf_finish_dynamic_sections(bfd *output_bfd, struct bfd_link_info *info)
25091 +{
25092 + struct elf_avr32_link_hash_table *htab;
25093 + asection *sgot, *sdyn;
25094 +
25095 + pr_debug("(8) finish dynamic sections\n");
25096 +
25097 + htab = avr32_elf_hash_table(info);
25098 + sgot = htab->sgot;
25099 + sdyn = bfd_get_section_by_name(htab->root.dynobj, ".dynamic");
25100 +
25101 + if (htab->root.dynamic_sections_created)
25102 + {
25103 + Elf32_External_Dyn *dyncon, *dynconend;
25104 +
25105 + BFD_ASSERT(sdyn && sgot && sgot->size >= AVR32_GOT_HEADER_SIZE);
25106 +
25107 + dyncon = (Elf32_External_Dyn *)sdyn->contents;
25108 + dynconend = (Elf32_External_Dyn *)(sdyn->contents + sdyn->size);
25109 + for (; dyncon < dynconend; dyncon++)
25110 + {
25111 + Elf_Internal_Dyn dyn;
25112 + asection *s;
25113 +
25114 + bfd_elf32_swap_dyn_in(htab->root.dynobj, dyncon, &dyn);
25115 +
25116 + switch (dyn.d_tag)
25117 + {
25118 + default:
25119 + break;
25120 +
25121 + case DT_PLTGOT:
25122 + s = sgot->output_section;
25123 + BFD_ASSERT(s != NULL);
25124 + dyn.d_un.d_ptr = s->vma;
25125 + bfd_elf32_swap_dyn_out(output_bfd, &dyn, dyncon);
25126 + break;
25127 +
25128 + case DT_AVR32_GOTSZ:
25129 + s = sgot->output_section;
25130 + BFD_ASSERT(s != NULL);
25131 + dyn.d_un.d_val = s->size;
25132 + bfd_elf32_swap_dyn_out(output_bfd, &dyn, dyncon);
25133 + break;
25134 + }
25135 + }
25136 +
25137 + /* Fill in the first two entries in the global offset table */
25138 + bfd_put_32(output_bfd,
25139 + sdyn->output_section->vma + sdyn->output_offset,
25140 + sgot->contents);
25141 +
25142 + /* The runtime linker will fill this one in with the address of
25143 + the run-time link map */
25144 + bfd_put_32(output_bfd, 0, sgot->contents + 4);
25145 + }
25146 +
25147 + if (sgot)
25148 + elf_section_data(sgot->output_section)->this_hdr.sh_entsize = 4;
25149 +
25150 + return TRUE;
25151 +}
25152 +
25153 +\f
25154 +/* AVR32-specific private ELF data */
25155 +
25156 +static bfd_boolean
25157 +avr32_elf_set_private_flags(bfd *abfd, flagword flags);
25158 +static bfd_boolean
25159 +avr32_elf_copy_private_bfd_data(bfd *ibfd, bfd *obfd);
25160 +static bfd_boolean
25161 +avr32_elf_merge_private_bfd_data(bfd *ibfd, bfd *obfd);
25162 +static bfd_boolean
25163 +avr32_elf_print_private_bfd_data(bfd *abfd, void *ptr);
25164 +
25165 +static bfd_boolean
25166 +avr32_elf_set_private_flags(bfd *abfd, flagword flags)
25167 +{
25168 + elf_elfheader(abfd)->e_flags = flags;
25169 + elf_flags_init(abfd) = TRUE;
25170 +
25171 + return TRUE;
25172 +}
25173 +
25174 +/* Copy backend specific data from one object module to another. */
25175 +
25176 +static bfd_boolean
25177 +avr32_elf_copy_private_bfd_data(bfd *ibfd, bfd *obfd)
25178 +{
25179 + elf_elfheader(obfd)->e_flags = elf_elfheader(ibfd)->e_flags;
25180 + return TRUE;
25181 +}
25182 +
25183 +/* Merge backend specific data from an object file to the output
25184 + object file when linking. */
25185 +
25186 +static bfd_boolean
25187 +avr32_elf_merge_private_bfd_data(bfd *ibfd, bfd *obfd)
25188 +{
25189 + flagword out_flags, in_flags;
25190 +
25191 + pr_debug("(0) merge_private_bfd_data: %s -> %s\n",
25192 + ibfd->filename, obfd->filename);
25193 +
25194 + in_flags = elf_elfheader(ibfd)->e_flags;
25195 + out_flags = elf_elfheader(obfd)->e_flags;
25196 +
25197 + if (elf_flags_init(obfd))
25198 + {
25199 + /* If one of the inputs are non-PIC, the output must be
25200 + considered non-PIC. The same applies to linkrelax. */
25201 + if (!(in_flags & EF_AVR32_PIC))
25202 + out_flags &= ~EF_AVR32_PIC;
25203 + if (!(in_flags & EF_AVR32_LINKRELAX))
25204 + out_flags &= ~EF_AVR32_LINKRELAX;
25205 + }
25206 + else
25207 + {
25208 + elf_flags_init(obfd) = TRUE;
25209 + out_flags = in_flags;
25210 + }
25211 +
25212 + elf_elfheader(obfd)->e_flags = out_flags;
25213 +
25214 + return TRUE;
25215 +}
25216 +
25217 +static bfd_boolean
25218 +avr32_elf_print_private_bfd_data(bfd *abfd, void *ptr)
25219 +{
25220 + FILE *file = (FILE *)ptr;
25221 + unsigned long flags;
25222 +
25223 + BFD_ASSERT(abfd != NULL && ptr != NULL);
25224 +
25225 + _bfd_elf_print_private_bfd_data(abfd, ptr);
25226 +
25227 + flags = elf_elfheader(abfd)->e_flags;
25228 +
25229 + fprintf(file, _("private flags = %lx:"), elf_elfheader(abfd)->e_flags);
25230 +
25231 + if (flags & EF_AVR32_PIC)
25232 + fprintf(file, " [PIC]");
25233 + if (flags & EF_AVR32_LINKRELAX)
25234 + fprintf(file, " [linker relaxable]");
25235 +
25236 + flags &= ~(EF_AVR32_PIC | EF_AVR32_LINKRELAX);
25237 +
25238 + if (flags)
25239 + fprintf(file, _("<Unrecognized flag bits set>"));
25240 +
25241 + fputc('\n', file);
25242 +
25243 + return TRUE;
25244 +}
25245 +
25246 +\f
25247 +/* Understanding core dumps */
25248 +
25249 +static bfd_boolean
25250 +avr32_elf_grok_prstatus(bfd *abfd, Elf_Internal_Note *note);
25251 +static bfd_boolean
25252 +avr32_elf_grok_psinfo(bfd *abfd, Elf_Internal_Note *note);
25253 +
25254 +static bfd_boolean
25255 +avr32_elf_grok_prstatus(bfd *abfd, Elf_Internal_Note *note)
25256 +{
25257 + /* Linux/AVR32B elf_prstatus */
25258 + if (note->descsz != 148)
25259 + return FALSE;
25260 +
25261 + /* pr_cursig */
25262 + elf_tdata(abfd)->core_signal = bfd_get_16(abfd, note->descdata + 12);
25263 +
25264 + /* pr_pid */
25265 + elf_tdata(abfd)->core_pid = bfd_get_32(abfd, note->descdata + 24);
25266 +
25267 + /* Make a ".reg/999" section for pr_reg. The size is for 16
25268 + general-purpose registers, SR and r12_orig (18 * 4 = 72). */
25269 + return _bfd_elfcore_make_pseudosection(abfd, ".reg", 72,
25270 + note->descpos + 72);
25271 +}
25272 +
25273 +static bfd_boolean
25274 +avr32_elf_grok_psinfo(bfd *abfd, Elf_Internal_Note *note)
25275 +{
25276 + /* Linux/AVR32B elf_prpsinfo */
25277 + if (note->descsz != 128)
25278 + return FALSE;
25279 +
25280 + elf_tdata(abfd)->core_program
25281 + = _bfd_elfcore_strndup(abfd, note->descdata + 32, 16);
25282 + elf_tdata(abfd)->core_command
25283 + = _bfd_elfcore_strndup(abfd, note->descdata + 48, 80);
25284 +
25285 + /* Note that for some reason, a spurious space is tacked
25286 + onto the end of the args in some (at least one anyway)
25287 + implementations, so strip it off if it exists. */
25288 +
25289 + {
25290 + char *command = elf_tdata (abfd)->core_command;
25291 + int n = strlen (command);
25292 +
25293 + if (0 < n && command[n - 1] == ' ')
25294 + command[n - 1] = '\0';
25295 + }
25296 +
25297 + return TRUE;
25298 +}
25299 +
25300 +\f
25301 +#define ELF_ARCH bfd_arch_avr32
25302 +#define ELF_MACHINE_CODE EM_AVR32
25303 +#define ELF_MAXPAGESIZE 0x1000
25304 +
25305 +#define TARGET_BIG_SYM bfd_elf32_avr32_vec
25306 +#define TARGET_BIG_NAME "elf32-avr32"
25307 +
25308 +#define elf_backend_grok_prstatus avr32_elf_grok_prstatus
25309 +#define elf_backend_grok_psinfo avr32_elf_grok_psinfo
25310 +
25311 +/* Only RELA relocations are used */
25312 +#define elf_backend_may_use_rel_p 0
25313 +#define elf_backend_may_use_rela_p 1
25314 +#define elf_backend_default_use_rela_p 1
25315 +#define elf_backend_rela_normal 1
25316 +#define elf_info_to_howto_rel NULL
25317 +#define elf_info_to_howto avr32_info_to_howto
25318 +
25319 +#define bfd_elf32_bfd_copy_private_bfd_data avr32_elf_copy_private_bfd_data
25320 +#define bfd_elf32_bfd_merge_private_bfd_data avr32_elf_merge_private_bfd_data
25321 +#define bfd_elf32_bfd_set_private_flags avr32_elf_set_private_flags
25322 +#define bfd_elf32_bfd_print_private_bfd_data avr32_elf_print_private_bfd_data
25323 +#define bfd_elf32_new_section_hook avr32_elf_new_section_hook
25324 +
25325 +#define elf_backend_gc_mark_hook avr32_elf_gc_mark_hook
25326 +#define elf_backend_gc_sweep_hook avr32_elf_gc_sweep_hook
25327 +#define elf_backend_relocate_section avr32_elf_relocate_section
25328 +#define elf_backend_copy_indirect_symbol avr32_elf_copy_indirect_symbol
25329 +#define elf_backend_create_dynamic_sections avr32_elf_create_dynamic_sections
25330 +#define bfd_elf32_bfd_link_hash_table_create avr32_elf_link_hash_table_create
25331 +#define elf_backend_adjust_dynamic_symbol avr32_elf_adjust_dynamic_symbol
25332 +#define elf_backend_size_dynamic_sections avr32_elf_size_dynamic_sections
25333 +#define elf_backend_finish_dynamic_symbol avr32_elf_finish_dynamic_symbol
25334 +#define elf_backend_finish_dynamic_sections avr32_elf_finish_dynamic_sections
25335 +
25336 +#define bfd_elf32_bfd_relax_section avr32_elf_relax_section
25337 +
25338 +/* Find out which symbols need an entry in .got. */
25339 +#define elf_backend_check_relocs avr32_check_relocs
25340 +#define elf_backend_can_refcount 1
25341 +#define elf_backend_can_gc_sections 1
25342 +#define elf_backend_plt_readonly 1
25343 +#define elf_backend_plt_not_loaded 1
25344 +#define elf_backend_want_plt_sym 0
25345 +#define elf_backend_plt_alignment 2
25346 +#define elf_backend_want_dynbss 0
25347 +#define elf_backend_want_got_plt 0
25348 +#define elf_backend_want_got_sym 1
25349 +#define elf_backend_got_header_size AVR32_GOT_HEADER_SIZE
25350 +
25351 +#include "elf32-target.h"
25352 diff -Nrup binutils-2.17/bfd/elf32-avr32.h binutils-2.17.atmel.1.3.0/bfd/elf32-avr32.h
25353 --- binutils-2.17/bfd/elf32-avr32.h 1970-01-01 01:00:00.000000000 +0100
25354 +++ binutils-2.17.atmel.1.3.0/bfd/elf32-avr32.h 2007-09-28 10:30:44.000000000 +0200
25355 @@ -0,0 +1,23 @@
25356 +/* AVR32-specific support for 32-bit ELF.
25357 + Copyright 2007 Atmel Corporation.
25358 +
25359 + Written by Haavard Skinnemoen, Atmel Norway, <hskinnemoen@atmel.com>
25360 +
25361 + This file is part of BFD, the Binary File Descriptor library.
25362 +
25363 + This program is free software; you can redistribute it and/or modify
25364 + it under the terms of the GNU General Public License as published by
25365 + the Free Software Foundation; either version 2 of the License, or
25366 + (at your option) any later version.
25367 +
25368 + This program is distributed in the hope that it will be useful,
25369 + but WITHOUT ANY WARRANTY; without even the implied warranty of
25370 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
25371 + GNU General Public License for more details.
25372 +
25373 + You should have received a copy of the GNU General Public License
25374 + along with this program; if not, write to the Free Software
25375 + Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
25376 +
25377 +void bfd_elf32_avr32_set_options(struct bfd_link_info *info,
25378 + int direct_data_refs);
25379 diff -Nrup binutils-2.17/bfd/elf-bfd.h binutils-2.17.atmel.1.3.0/bfd/elf-bfd.h
25380 --- binutils-2.17/bfd/elf-bfd.h 2006-03-16 13:20:15.000000000 +0100
25381 +++ binutils-2.17.atmel.1.3.0/bfd/elf-bfd.h 2007-03-26 10:20:30.000000000 +0200
25382 @@ -1307,6 +1307,10 @@ struct elf_obj_tdata
25383 find_nearest_line. */
25384 struct mips_elf_find_line *find_line_info;
25385
25386 + /* Used by AVR32 ELF relaxation code. Contains an array of pointers
25387 + for each local symbol to the fragment where it is defined. */
25388 + struct fragment **local_sym_frag;
25389 +
25390 /* A place to stash dwarf1 info for this bfd. */
25391 struct dwarf1_debug *dwarf1_find_line_info;
25392
25393 diff -Nrup binutils-2.17/bfd/libbfd.h binutils-2.17.atmel.1.3.0/bfd/libbfd.h
25394 --- binutils-2.17/bfd/libbfd.h 2006-03-26 01:38:42.000000000 +0100
25395 +++ binutils-2.17.atmel.1.3.0/bfd/libbfd.h 2007-03-26 10:33:41.000000000 +0200
25396 @@ -1518,6 +1518,47 @@ static const char *const bfd_reloc_code_
25397 "BFD_RELOC_AVR_LDI",
25398 "BFD_RELOC_AVR_6",
25399 "BFD_RELOC_AVR_6_ADIW",
25400 + "BFD_RELOC_AVR32_DIFF32",
25401 + "BFD_RELOC_AVR32_DIFF16",
25402 + "BFD_RELOC_AVR32_DIFF8",
25403 + "BFD_RELOC_AVR32_GOT32",
25404 + "BFD_RELOC_AVR32_GOT16",
25405 + "BFD_RELOC_AVR32_GOT8",
25406 + "BFD_RELOC_AVR32_21S",
25407 + "BFD_RELOC_AVR32_16U",
25408 + "BFD_RELOC_AVR32_16S",
25409 + "BFD_RELOC_AVR32_SUB5",
25410 + "BFD_RELOC_AVR32_8S_EXT",
25411 + "BFD_RELOC_AVR32_8S",
25412 + "BFD_RELOC_AVR32_22H_PCREL",
25413 + "BFD_RELOC_AVR32_18W_PCREL",
25414 + "BFD_RELOC_AVR32_16B_PCREL",
25415 + "BFD_RELOC_AVR32_16N_PCREL",
25416 + "BFD_RELOC_AVR32_14UW_PCREL",
25417 + "BFD_RELOC_AVR32_11H_PCREL",
25418 + "BFD_RELOC_AVR32_10UW_PCREL",
25419 + "BFD_RELOC_AVR32_9H_PCREL",
25420 + "BFD_RELOC_AVR32_9UW_PCREL",
25421 + "BFD_RELOC_AVR32_GOTPC",
25422 + "BFD_RELOC_AVR32_GOTCALL",
25423 + "BFD_RELOC_AVR32_LDA_GOT",
25424 + "BFD_RELOC_AVR32_GOT21S",
25425 + "BFD_RELOC_AVR32_GOT18SW",
25426 + "BFD_RELOC_AVR32_GOT16S",
25427 + "BFD_RELOC_AVR32_32_CPENT",
25428 + "BFD_RELOC_AVR32_CPCALL",
25429 + "BFD_RELOC_AVR32_16_CP",
25430 + "BFD_RELOC_AVR32_9W_CP",
25431 + "BFD_RELOC_AVR32_ALIGN",
25432 + "BFD_RELOC_AVR32_14UW",
25433 + "BFD_RELOC_AVR32_10UW",
25434 + "BFD_RELOC_AVR32_10SW",
25435 + "BFD_RELOC_AVR32_STHH_W",
25436 + "BFD_RELOC_AVR32_7UW",
25437 + "BFD_RELOC_AVR32_6S",
25438 + "BFD_RELOC_AVR32_6UW",
25439 + "BFD_RELOC_AVR32_4UH",
25440 + "BFD_RELOC_AVR32_3U",
25441 "BFD_RELOC_390_12",
25442 "BFD_RELOC_390_GOT12",
25443 "BFD_RELOC_390_PLT32",
25444 diff -Nrup binutils-2.17/bfd/Makefile.am binutils-2.17.atmel.1.3.0/bfd/Makefile.am
25445 --- binutils-2.17/bfd/Makefile.am 2006-06-23 20:17:17.000000000 +0200
25446 +++ binutils-2.17.atmel.1.3.0/bfd/Makefile.am 2007-03-26 10:20:30.000000000 +0200
25447 @@ -3,7 +3,7 @@
25448 AUTOMAKE_OPTIONS = 1.9 cygnus
25449
25450 # Uncomment the following line when doing a release.
25451 -RELEASE=y
25452 +# RELEASE=y
25453
25454 INCDIR = $(srcdir)/../include
25455 CSEARCH = -I. -I$(srcdir) -I$(INCDIR)
25456 @@ -62,6 +62,7 @@ ALL_MACHINES = \
25457 cpu-arc.lo \
25458 cpu-arm.lo \
25459 cpu-avr.lo \
25460 + cpu-avr32.lo \
25461 cpu-bfin.lo \
25462 cpu-cr16c.lo \
25463 cpu-cris.lo \
25464 @@ -234,6 +235,7 @@ BFD32_BACKENDS = \
25465 elf32-arc.lo \
25466 elf32-arm.lo \
25467 elf32-avr.lo \
25468 + elf32-avr32.lo \
25469 elf32-bfin.lo \
25470 elf32-cr16c.lo \
25471 elf32-cris.lo \
25472 @@ -1265,6 +1267,10 @@ elf32-bfin.lo: elf32-bfin.c $(INCDIR)/fi
25473 elf-bfd.h $(INCDIR)/elf/common.h $(INCDIR)/elf/internal.h \
25474 $(INCDIR)/elf/external.h $(INCDIR)/bfdlink.h $(INCDIR)/elf/bfin.h \
25475 $(INCDIR)/elf/reloc-macros.h elf32-target.h
25476 +elf32-avr32.lo: elf32-avr32.c $(INCDIR)/filenames.h elf-bfd.h \
25477 + $(INCDIR)/elf/common.h $(INCDIR)/elf/internal.h $(INCDIR)/elf/external.h \
25478 + $(INCDIR)/bfdlink.h $(INCDIR)/elf/avr32.h $(INCDIR)/elf/reloc-macros.h \
25479 + elf32-target.h
25480 elf32-cr16c.lo: elf32-cr16c.c $(INCDIR)/filenames.h \
25481 $(INCDIR)/hashtab.h $(INCDIR)/bfdlink.h $(INCDIR)/elf/cr16c.h \
25482 $(INCDIR)/elf/reloc-macros.h elf-bfd.h $(INCDIR)/elf/common.h \
25483 diff -Nrup binutils-2.17/bfd/Makefile.in binutils-2.17.atmel.1.3.0/bfd/Makefile.in
25484 --- binutils-2.17/bfd/Makefile.in 2006-06-23 20:17:19.000000000 +0200
25485 +++ binutils-2.17.atmel.1.3.0/bfd/Makefile.in 2007-03-26 10:30:55.000000000 +0200
25486 @@ -1,4 +1,4 @@
25487 -# Makefile.in generated by automake 1.9.5 from Makefile.am.
25488 +# Makefile.in generated by automake 1.9.6 from Makefile.am.
25489 # @configure_input@
25490
25491 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
25492 @@ -15,8 +15,6 @@
25493 @SET_MAKE@
25494
25495
25496 -SOURCES = $(libbfd_a_SOURCES) $(libbfd_la_SOURCES)
25497 -
25498 srcdir = @srcdir@
25499 top_srcdir = @top_srcdir@
25500 VPATH = @srcdir@
25501 @@ -141,6 +139,7 @@ EXEEXT = @EXEEXT@
25502 EXEEXT_FOR_BUILD = @EXEEXT_FOR_BUILD@
25503 GMOFILES = @GMOFILES@
25504 GMSGFMT = @GMSGFMT@
25505 +GREP = @GREP@
25506 GT_NO = @GT_NO@
25507 GT_YES = @GT_YES@
25508 HDEFINES = @HDEFINES@
25509 @@ -190,10 +189,7 @@ WARN_CFLAGS = @WARN_CFLAGS@
25510 WIN32LDFLAGS = @WIN32LDFLAGS@
25511 WIN32LIBADD = @WIN32LIBADD@
25512 XGETTEXT = @XGETTEXT@
25513 -ac_ct_AR = @ac_ct_AR@
25514 ac_ct_CC = @ac_ct_CC@
25515 -ac_ct_RANLIB = @ac_ct_RANLIB@
25516 -ac_ct_STRIP = @ac_ct_STRIP@
25517 all_backends = @all_backends@
25518 am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
25519 am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
25520 @@ -219,6 +215,7 @@ build_vendor = @build_vendor@
25521 datadir = @datadir@
25522 datarootdir = @datarootdir@
25523 docdir = @docdir@
25524 +dvidir = @dvidir@
25525 exec_prefix = @exec_prefix@
25526 host = @host@
25527 host_alias = @host_alias@
25528 @@ -233,12 +230,15 @@ install_sh = @install_sh@
25529 l = @l@
25530 libdir = @libdir@
25531 libexecdir = @libexecdir@
25532 +localedir = @localedir@
25533 localstatedir = @localstatedir@
25534 mandir = @mandir@
25535 mkdir_p = @mkdir_p@
25536 oldincludedir = @oldincludedir@
25537 +pdfdir = @pdfdir@
25538 prefix = @prefix@
25539 program_transform_name = @program_transform_name@
25540 +psdir = @psdir@
25541 sbindir = @sbindir@
25542 sharedstatedir = @sharedstatedir@
25543 sysconfdir = @sysconfdir@
25544 @@ -253,7 +253,7 @@ wordsize = @wordsize@
25545 AUTOMAKE_OPTIONS = 1.9 cygnus
25546
25547 # Uncomment the following line when doing a release.
25548 -RELEASE=y
25549 +# RELEASE=y
25550 INCDIR = $(srcdir)/../include
25551 CSEARCH = -I. -I$(srcdir) -I$(INCDIR)
25552 MKDEP = gcc -MM
25553 @@ -298,6 +298,7 @@ ALL_MACHINES = \
25554 cpu-arc.lo \
25555 cpu-arm.lo \
25556 cpu-avr.lo \
25557 + cpu-avr32.lo \
25558 cpu-bfin.lo \
25559 cpu-cr16c.lo \
25560 cpu-cris.lo \
25561 @@ -471,6 +472,7 @@ BFD32_BACKENDS = \
25562 elf32-arc.lo \
25563 elf32-arm.lo \
25564 elf32-avr.lo \
25565 + elf32-avr32.lo \
25566 elf32-bfin.lo \
25567 elf32-cr16c.lo \
25568 elf32-cris.lo \
25569 @@ -1831,6 +1833,10 @@ elf32-bfin.lo: elf32-bfin.c $(INCDIR)/fi
25570 elf-bfd.h $(INCDIR)/elf/common.h $(INCDIR)/elf/internal.h \
25571 $(INCDIR)/elf/external.h $(INCDIR)/bfdlink.h $(INCDIR)/elf/bfin.h \
25572 $(INCDIR)/elf/reloc-macros.h elf32-target.h
25573 +elf32-avr32.lo: elf32-avr32.c $(INCDIR)/filenames.h elf-bfd.h \
25574 + $(INCDIR)/elf/common.h $(INCDIR)/elf/internal.h $(INCDIR)/elf/external.h \
25575 + $(INCDIR)/bfdlink.h $(INCDIR)/elf/avr32.h $(INCDIR)/elf/reloc-macros.h \
25576 + elf32-target.h
25577 elf32-cr16c.lo: elf32-cr16c.c $(INCDIR)/filenames.h \
25578 $(INCDIR)/hashtab.h $(INCDIR)/bfdlink.h $(INCDIR)/elf/cr16c.h \
25579 $(INCDIR)/elf/reloc-macros.h elf-bfd.h $(INCDIR)/elf/common.h \
25580 diff -Nrup binutils-2.17/bfd/reloc.c binutils-2.17.atmel.1.3.0/bfd/reloc.c
25581 --- binutils-2.17/bfd/reloc.c 2006-03-26 01:38:42.000000000 +0100
25582 +++ binutils-2.17.atmel.1.3.0/bfd/reloc.c 2007-03-26 10:20:30.000000000 +0200
25583 @@ -3714,6 +3714,129 @@ ENUMDOC
25584 instructions
25585
25586 ENUM
25587 + BFD_RELOC_AVR32_DIFF32
25588 +ENUMX
25589 + BFD_RELOC_AVR32_DIFF16
25590 +ENUMX
25591 + BFD_RELOC_AVR32_DIFF8
25592 +ENUMDOC
25593 + Difference between two labels: L2 - L1. The value of L1 is encoded
25594 + as sym + addend, while the initial difference after assembly is
25595 + inserted into the object file by the assembler.
25596 +ENUM
25597 + BFD_RELOC_AVR32_GOT32
25598 +ENUMX
25599 + BFD_RELOC_AVR32_GOT16
25600 +ENUMX
25601 + BFD_RELOC_AVR32_GOT8
25602 +ENUMDOC
25603 + Reference to a symbol through the Global Offset Table. The linker
25604 + will allocate an entry for symbol in the GOT and insert the offset
25605 + of this entry as the relocation value.
25606 +ENUM
25607 + BFD_RELOC_AVR32_21S
25608 +ENUMX
25609 + BFD_RELOC_AVR32_16U
25610 +ENUMX
25611 + BFD_RELOC_AVR32_16S
25612 +ENUMX
25613 + BFD_RELOC_AVR32_SUB5
25614 +ENUMX
25615 + BFD_RELOC_AVR32_8S_EXT
25616 +ENUMX
25617 + BFD_RELOC_AVR32_8S
25618 +ENUMDOC
25619 + Normal (non-pc-relative) code relocations. Alignment and signedness
25620 + is indicated by the suffixes. S means signed, U means unsigned. W
25621 + means word-aligned, H means halfword-aligned, neither means
25622 + byte-aligned (no alignment.) SUB5 is the same relocation as 16S.
25623 +ENUM
25624 + BFD_RELOC_AVR32_22H_PCREL
25625 +ENUMX
25626 + BFD_RELOC_AVR32_18W_PCREL
25627 +ENUMX
25628 + BFD_RELOC_AVR32_16B_PCREL
25629 +ENUMX
25630 + BFD_RELOC_AVR32_16N_PCREL
25631 +ENUMX
25632 + BFD_RELOC_AVR32_14UW_PCREL
25633 +ENUMX
25634 + BFD_RELOC_AVR32_11H_PCREL
25635 +ENUMX
25636 + BFD_RELOC_AVR32_10UW_PCREL
25637 +ENUMX
25638 + BFD_RELOC_AVR32_9H_PCREL
25639 +ENUMX
25640 + BFD_RELOC_AVR32_9UW_PCREL
25641 +ENUMDOC
25642 + PC-relative relocations are signed if neither 'U' nor 'S' is
25643 + specified. However, we explicitly tack on a 'B' to indicate no
25644 + alignment, to avoid confusion with data relocs. All of these resolve
25645 + to sym + addend - offset, except the one with 'N' (negated) suffix.
25646 + This particular one resolves to offset - sym - addend.
25647 +ENUM
25648 + BFD_RELOC_AVR32_GOTPC
25649 +ENUMDOC
25650 + Subtract the link-time address of the GOT from (symbol + addend)
25651 + and insert the result.
25652 +ENUM
25653 + BFD_RELOC_AVR32_GOTCALL
25654 +ENUMX
25655 + BFD_RELOC_AVR32_LDA_GOT
25656 +ENUMX
25657 + BFD_RELOC_AVR32_GOT21S
25658 +ENUMX
25659 + BFD_RELOC_AVR32_GOT18SW
25660 +ENUMX
25661 + BFD_RELOC_AVR32_GOT16S
25662 +ENUMDOC
25663 + Reference to a symbol through the GOT. The linker will allocate an
25664 + entry for symbol in the GOT and insert the offset of this entry as
25665 + the relocation value. addend must be zero. As usual, 'S' means
25666 + signed, 'W' means word-aligned, etc.
25667 +ENUM
25668 + BFD_RELOC_AVR32_32_CPENT
25669 +ENUMDOC
25670 + 32-bit constant pool entry. I don't think 8- and 16-bit entries make
25671 + a whole lot of sense.
25672 +ENUM
25673 + BFD_RELOC_AVR32_CPCALL
25674 +ENUMX
25675 + BFD_RELOC_AVR32_16_CP
25676 +ENUMX
25677 + BFD_RELOC_AVR32_9W_CP
25678 +ENUMDOC
25679 + Constant pool references. Some of these relocations are signed,
25680 + others are unsigned. It doesn't really matter, since the constant
25681 + pool always comes after the code that references it.
25682 +ENUM
25683 + BFD_RELOC_AVR32_ALIGN
25684 +ENUMDOC
25685 + sym must be the absolute symbol. The addend specifies the alignment
25686 + order, e.g. if addend is 2, the linker must add padding so that the
25687 + next address is aligned to a 4-byte boundary.
25688 +ENUM
25689 + BFD_RELOC_AVR32_14UW
25690 +ENUMX
25691 + BFD_RELOC_AVR32_10UW
25692 +ENUMX
25693 + BFD_RELOC_AVR32_10SW
25694 +ENUMX
25695 + BFD_RELOC_AVR32_STHH_W
25696 +ENUMX
25697 + BFD_RELOC_AVR32_7UW
25698 +ENUMX
25699 + BFD_RELOC_AVR32_6S
25700 +ENUMX
25701 + BFD_RELOC_AVR32_6UW
25702 +ENUMX
25703 + BFD_RELOC_AVR32_4UH
25704 +ENUMX
25705 + BFD_RELOC_AVR32_3U
25706 +ENUMDOC
25707 + Code relocations that will never make it to the output file.
25708 +
25709 +ENUM
25710 BFD_RELOC_390_12
25711 ENUMDOC
25712 Direct 12 bit.
25713 diff -Nrup binutils-2.17/bfd/targets.c binutils-2.17.atmel.1.3.0/bfd/targets.c
25714 --- binutils-2.17/bfd/targets.c 2006-04-05 14:41:57.000000000 +0200
25715 +++ binutils-2.17.atmel.1.3.0/bfd/targets.c 2007-03-26 10:20:30.000000000 +0200
25716 @@ -553,6 +553,7 @@ extern const bfd_target b_out_vec_little
25717 extern const bfd_target bfd_efi_app_ia32_vec;
25718 extern const bfd_target bfd_efi_app_ia64_vec;
25719 extern const bfd_target bfd_elf32_avr_vec;
25720 +extern const bfd_target bfd_elf32_avr32_vec;
25721 extern const bfd_target bfd_elf32_bfin_vec;
25722 extern const bfd_target bfd_elf32_bfinfdpic_vec;
25723 extern const bfd_target bfd_elf32_big_generic_vec;
25724 @@ -855,6 +856,7 @@ static const bfd_target * const _bfd_tar
25725 &bfd_efi_app_ia64_vec,
25726 #endif
25727 &bfd_elf32_avr_vec,
25728 + &bfd_elf32_avr32_vec,
25729 &bfd_elf32_bfin_vec,
25730 &bfd_elf32_bfinfdpic_vec,
25731
25732 diff -Nrup binutils-2.17/binutils/config.in binutils-2.17.atmel.1.3.0/binutils/config.in
25733 --- binutils-2.17/binutils/config.in 2006-02-14 09:59:10.000000000 +0100
25734 +++ binutils-2.17.atmel.1.3.0/binutils/config.in 2007-03-26 10:32:11.000000000 +0200
25735 @@ -218,7 +218,7 @@
25736
25737 /* If using the C implementation of alloca, define if you know the
25738 direction of stack growth for your system; otherwise it will be
25739 - automatically deduced at run-time.
25740 + automatically deduced at runtime.
25741 STACK_DIRECTION > 0 => grows toward higher addresses
25742 STACK_DIRECTION < 0 => grows toward lower addresses
25743 STACK_DIRECTION = 0 => direction of growth unknown */
25744 @@ -260,8 +260,8 @@
25745 #undef inline
25746 #endif
25747
25748 -/* Define to `long' if <sys/types.h> does not define. */
25749 +/* Define to `long int' if <sys/types.h> does not define. */
25750 #undef off_t
25751
25752 -/* Define to `unsigned' if <sys/types.h> does not define. */
25753 +/* Define to `unsigned int' if <sys/types.h> does not define. */
25754 #undef size_t
25755 diff -Nrup binutils-2.17/binutils/configure binutils-2.17.atmel.1.3.0/binutils/configure
25756 --- binutils-2.17/binutils/configure 2006-04-06 23:49:29.000000000 +0200
25757 +++ binutils-2.17.atmel.1.3.0/binutils/configure 2007-03-26 10:32:09.000000000 +0200
25758 @@ -1,25 +1,54 @@
25759 #! /bin/sh
25760 # Guess values for system-dependent variables and create Makefiles.
25761 -# Generated by GNU Autoconf 2.59.
25762 +# Generated by GNU Autoconf 2.61.
25763 #
25764 -# Copyright (C) 2003 Free Software Foundation, Inc.
25765 +# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
25766 +# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
25767 # This configure script is free software; the Free Software Foundation
25768 # gives unlimited permission to copy, distribute and modify it.
25769 ## --------------------- ##
25770 ## M4sh Initialization. ##
25771 ## --------------------- ##
25772
25773 -# Be Bourne compatible
25774 +# Be more Bourne compatible
25775 +DUALCASE=1; export DUALCASE # for MKS sh
25776 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
25777 emulate sh
25778 NULLCMD=:
25779 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25780 # is contrary to our usage. Disable this feature.
25781 alias -g '${1+"$@"}'='"$@"'
25782 -elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
25783 - set -o posix
25784 + setopt NO_GLOB_SUBST
25785 +else
25786 + case `(set -o) 2>/dev/null` in
25787 + *posix*) set -o posix ;;
25788 +esac
25789 +
25790 +fi
25791 +
25792 +
25793 +
25794 +
25795 +# PATH needs CR
25796 +# Avoid depending upon Character Ranges.
25797 +as_cr_letters='abcdefghijklmnopqrstuvwxyz'
25798 +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25799 +as_cr_Letters=$as_cr_letters$as_cr_LETTERS
25800 +as_cr_digits='0123456789'
25801 +as_cr_alnum=$as_cr_Letters$as_cr_digits
25802 +
25803 +# The user is always right.
25804 +if test "${PATH_SEPARATOR+set}" != set; then
25805 + echo "#! /bin/sh" >conf$$.sh
25806 + echo "exit 0" >>conf$$.sh
25807 + chmod +x conf$$.sh
25808 + if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
25809 + PATH_SEPARATOR=';'
25810 + else
25811 + PATH_SEPARATOR=:
25812 + fi
25813 + rm -f conf$$.sh
25814 fi
25815 -DUALCASE=1; export DUALCASE # for MKS sh
25816
25817 # Support unset when possible.
25818 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
25819 @@ -29,8 +58,43 @@ else
25820 fi
25821
25822
25823 +# IFS
25824 +# We need space, tab and new line, in precisely that order. Quoting is
25825 +# there to prevent editors from complaining about space-tab.
25826 +# (If _AS_PATH_WALK were called with IFS unset, it would disable word
25827 +# splitting by setting IFS to empty value.)
25828 +as_nl='
25829 +'
25830 +IFS=" "" $as_nl"
25831 +
25832 +# Find who we are. Look in the path if we contain no directory separator.
25833 +case $0 in
25834 + *[\\/]* ) as_myself=$0 ;;
25835 + *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25836 +for as_dir in $PATH
25837 +do
25838 + IFS=$as_save_IFS
25839 + test -z "$as_dir" && as_dir=.
25840 + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
25841 +done
25842 +IFS=$as_save_IFS
25843 +
25844 + ;;
25845 +esac
25846 +# We did not find ourselves, most probably we were run as `sh COMMAND'
25847 +# in which case we are not to be found in the path.
25848 +if test "x$as_myself" = x; then
25849 + as_myself=$0
25850 +fi
25851 +if test ! -f "$as_myself"; then
25852 + echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
25853 + { (exit 1); exit 1; }
25854 +fi
25855 +
25856 # Work around bugs in pre-3.0 UWIN ksh.
25857 -$as_unset ENV MAIL MAILPATH
25858 +for as_var in ENV MAIL MAILPATH
25859 +do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
25860 +done
25861 PS1='$ '
25862 PS2='> '
25863 PS4='+ '
25864 @@ -44,18 +108,19 @@ do
25865 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
25866 eval $as_var=C; export $as_var
25867 else
25868 - $as_unset $as_var
25869 + ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
25870 fi
25871 done
25872
25873 # Required to use basename.
25874 -if expr a : '\(a\)' >/dev/null 2>&1; then
25875 +if expr a : '\(a\)' >/dev/null 2>&1 &&
25876 + test "X`expr 00001 : '.*\(...\)'`" = X001; then
25877 as_expr=expr
25878 else
25879 as_expr=false
25880 fi
25881
25882 -if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
25883 +if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
25884 as_basename=basename
25885 else
25886 as_basename=false
25887 @@ -63,157 +128,388 @@ fi
25888
25889
25890 # Name of the executable.
25891 -as_me=`$as_basename "$0" ||
25892 +as_me=`$as_basename -- "$0" ||
25893 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25894 X"$0" : 'X\(//\)$' \| \
25895 - X"$0" : 'X\(/\)$' \| \
25896 - . : '\(.\)' 2>/dev/null ||
25897 + X"$0" : 'X\(/\)' \| . 2>/dev/null ||
25898 echo X/"$0" |
25899 - sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
25900 - /^X\/\(\/\/\)$/{ s//\1/; q; }
25901 - /^X\/\(\/\).*/{ s//\1/; q; }
25902 - s/.*/./; q'`
25903 + sed '/^.*\/\([^/][^/]*\)\/*$/{
25904 + s//\1/
25905 + q
25906 + }
25907 + /^X\/\(\/\/\)$/{
25908 + s//\1/
25909 + q
25910 + }
25911 + /^X\/\(\/\).*/{
25912 + s//\1/
25913 + q
25914 + }
25915 + s/.*/./; q'`
25916
25917 +# CDPATH.
25918 +$as_unset CDPATH
25919
25920 -# PATH needs CR, and LINENO needs CR and PATH.
25921 -# Avoid depending upon Character Ranges.
25922 -as_cr_letters='abcdefghijklmnopqrstuvwxyz'
25923 -as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25924 -as_cr_Letters=$as_cr_letters$as_cr_LETTERS
25925 -as_cr_digits='0123456789'
25926 -as_cr_alnum=$as_cr_Letters$as_cr_digits
25927
25928 -# The user is always right.
25929 -if test "${PATH_SEPARATOR+set}" != set; then
25930 - echo "#! /bin/sh" >conf$$.sh
25931 - echo "exit 0" >>conf$$.sh
25932 - chmod +x conf$$.sh
25933 - if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
25934 - PATH_SEPARATOR=';'
25935 - else
25936 - PATH_SEPARATOR=:
25937 - fi
25938 - rm -f conf$$.sh
25939 +if test "x$CONFIG_SHELL" = x; then
25940 + if (eval ":") 2>/dev/null; then
25941 + as_have_required=yes
25942 +else
25943 + as_have_required=no
25944 +fi
25945 +
25946 + if test $as_have_required = yes && (eval ":
25947 +(as_func_return () {
25948 + (exit \$1)
25949 +}
25950 +as_func_success () {
25951 + as_func_return 0
25952 +}
25953 +as_func_failure () {
25954 + as_func_return 1
25955 +}
25956 +as_func_ret_success () {
25957 + return 0
25958 +}
25959 +as_func_ret_failure () {
25960 + return 1
25961 +}
25962 +
25963 +exitcode=0
25964 +if as_func_success; then
25965 + :
25966 +else
25967 + exitcode=1
25968 + echo as_func_success failed.
25969 fi
25970
25971 +if as_func_failure; then
25972 + exitcode=1
25973 + echo as_func_failure succeeded.
25974 +fi
25975
25976 - as_lineno_1=$LINENO
25977 - as_lineno_2=$LINENO
25978 - as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
25979 - test "x$as_lineno_1" != "x$as_lineno_2" &&
25980 - test "x$as_lineno_3" = "x$as_lineno_2" || {
25981 - # Find who we are. Look in the path if we contain no path at all
25982 - # relative or not.
25983 - case $0 in
25984 - *[\\/]* ) as_myself=$0 ;;
25985 - *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25986 -for as_dir in $PATH
25987 -do
25988 - IFS=$as_save_IFS
25989 - test -z "$as_dir" && as_dir=.
25990 - test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
25991 -done
25992 +if as_func_ret_success; then
25993 + :
25994 +else
25995 + exitcode=1
25996 + echo as_func_ret_success failed.
25997 +fi
25998
25999 - ;;
26000 - esac
26001 - # We did not find ourselves, most probably we were run as `sh COMMAND'
26002 - # in which case we are not to be found in the path.
26003 - if test "x$as_myself" = x; then
26004 - as_myself=$0
26005 - fi
26006 - if test ! -f "$as_myself"; then
26007 - { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
26008 - { (exit 1); exit 1; }; }
26009 - fi
26010 - case $CONFIG_SHELL in
26011 - '')
26012 +if as_func_ret_failure; then
26013 + exitcode=1
26014 + echo as_func_ret_failure succeeded.
26015 +fi
26016 +
26017 +if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
26018 + :
26019 +else
26020 + exitcode=1
26021 + echo positional parameters were not saved.
26022 +fi
26023 +
26024 +test \$exitcode = 0) || { (exit 1); exit 1; }
26025 +
26026 +(
26027 + as_lineno_1=\$LINENO
26028 + as_lineno_2=\$LINENO
26029 + test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
26030 + test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
26031 +") 2> /dev/null; then
26032 + :
26033 +else
26034 + as_candidate_shells=
26035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26036 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
26037 do
26038 IFS=$as_save_IFS
26039 test -z "$as_dir" && as_dir=.
26040 - for as_base in sh bash ksh sh5; do
26041 - case $as_dir in
26042 + case $as_dir in
26043 /*)
26044 - if ("$as_dir/$as_base" -c '
26045 + for as_base in sh bash ksh sh5; do
26046 + as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
26047 + done;;
26048 + esac
26049 +done
26050 +IFS=$as_save_IFS
26051 +
26052 +
26053 + for as_shell in $as_candidate_shells $SHELL; do
26054 + # Try only shells that exist, to save several forks.
26055 + if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
26056 + { ("$as_shell") 2> /dev/null <<\_ASEOF
26057 +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
26058 + emulate sh
26059 + NULLCMD=:
26060 + # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
26061 + # is contrary to our usage. Disable this feature.
26062 + alias -g '${1+"$@"}'='"$@"'
26063 + setopt NO_GLOB_SUBST
26064 +else
26065 + case `(set -o) 2>/dev/null` in
26066 + *posix*) set -o posix ;;
26067 +esac
26068 +
26069 +fi
26070 +
26071 +
26072 +:
26073 +_ASEOF
26074 +}; then
26075 + CONFIG_SHELL=$as_shell
26076 + as_have_required=yes
26077 + if { "$as_shell" 2> /dev/null <<\_ASEOF
26078 +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
26079 + emulate sh
26080 + NULLCMD=:
26081 + # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
26082 + # is contrary to our usage. Disable this feature.
26083 + alias -g '${1+"$@"}'='"$@"'
26084 + setopt NO_GLOB_SUBST
26085 +else
26086 + case `(set -o) 2>/dev/null` in
26087 + *posix*) set -o posix ;;
26088 +esac
26089 +
26090 +fi
26091 +
26092 +
26093 +:
26094 +(as_func_return () {
26095 + (exit $1)
26096 +}
26097 +as_func_success () {
26098 + as_func_return 0
26099 +}
26100 +as_func_failure () {
26101 + as_func_return 1
26102 +}
26103 +as_func_ret_success () {
26104 + return 0
26105 +}
26106 +as_func_ret_failure () {
26107 + return 1
26108 +}
26109 +
26110 +exitcode=0
26111 +if as_func_success; then
26112 + :
26113 +else
26114 + exitcode=1
26115 + echo as_func_success failed.
26116 +fi
26117 +
26118 +if as_func_failure; then
26119 + exitcode=1
26120 + echo as_func_failure succeeded.
26121 +fi
26122 +
26123 +if as_func_ret_success; then
26124 + :
26125 +else
26126 + exitcode=1
26127 + echo as_func_ret_success failed.
26128 +fi
26129 +
26130 +if as_func_ret_failure; then
26131 + exitcode=1
26132 + echo as_func_ret_failure succeeded.
26133 +fi
26134 +
26135 +if ( set x; as_func_ret_success y && test x = "$1" ); then
26136 + :
26137 +else
26138 + exitcode=1
26139 + echo positional parameters were not saved.
26140 +fi
26141 +
26142 +test $exitcode = 0) || { (exit 1); exit 1; }
26143 +
26144 +(
26145 as_lineno_1=$LINENO
26146 as_lineno_2=$LINENO
26147 - as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
26148 test "x$as_lineno_1" != "x$as_lineno_2" &&
26149 - test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
26150 - $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
26151 - $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
26152 - CONFIG_SHELL=$as_dir/$as_base
26153 - export CONFIG_SHELL
26154 - exec "$CONFIG_SHELL" "$0" ${1+"$@"}
26155 - fi;;
26156 - esac
26157 - done
26158 -done
26159 -;;
26160 - esac
26161 + test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
26162 +
26163 +_ASEOF
26164 +}; then
26165 + break
26166 +fi
26167 +
26168 +fi
26169 +
26170 + done
26171 +
26172 + if test "x$CONFIG_SHELL" != x; then
26173 + for as_var in BASH_ENV ENV
26174 + do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
26175 + done
26176 + export CONFIG_SHELL
26177 + exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
26178 +fi
26179 +
26180 +
26181 + if test $as_have_required = no; then
26182 + echo This script requires a shell more modern than all the
26183 + echo shells that I found on your system. Please install a
26184 + echo modern shell, or manually run the script under such a
26185 + echo shell if you do have one.
26186 + { (exit 1); exit 1; }
26187 +fi
26188 +
26189 +
26190 +fi
26191 +
26192 +fi
26193 +
26194 +
26195 +
26196 +(eval "as_func_return () {
26197 + (exit \$1)
26198 +}
26199 +as_func_success () {
26200 + as_func_return 0
26201 +}
26202 +as_func_failure () {
26203 + as_func_return 1
26204 +}
26205 +as_func_ret_success () {
26206 + return 0
26207 +}
26208 +as_func_ret_failure () {
26209 + return 1
26210 +}
26211 +
26212 +exitcode=0
26213 +if as_func_success; then
26214 + :
26215 +else
26216 + exitcode=1
26217 + echo as_func_success failed.
26218 +fi
26219 +
26220 +if as_func_failure; then
26221 + exitcode=1
26222 + echo as_func_failure succeeded.
26223 +fi
26224 +
26225 +if as_func_ret_success; then
26226 + :
26227 +else
26228 + exitcode=1
26229 + echo as_func_ret_success failed.
26230 +fi
26231 +
26232 +if as_func_ret_failure; then
26233 + exitcode=1
26234 + echo as_func_ret_failure succeeded.
26235 +fi
26236 +
26237 +if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
26238 + :
26239 +else
26240 + exitcode=1
26241 + echo positional parameters were not saved.
26242 +fi
26243 +
26244 +test \$exitcode = 0") || {
26245 + echo No shell found that supports shell functions.
26246 + echo Please tell autoconf@gnu.org about your system,
26247 + echo including any error possibly output before this
26248 + echo message
26249 +}
26250 +
26251 +
26252 +
26253 + as_lineno_1=$LINENO
26254 + as_lineno_2=$LINENO
26255 + test "x$as_lineno_1" != "x$as_lineno_2" &&
26256 + test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
26257
26258 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
26259 # uniformly replaced by the line number. The first 'sed' inserts a
26260 - # line-number line before each line; the second 'sed' does the real
26261 - # work. The second script uses 'N' to pair each line-number line
26262 - # with the numbered line, and appends trailing '-' during
26263 - # substitution so that $LINENO is not a special case at line end.
26264 + # line-number line after each line using $LINENO; the second 'sed'
26265 + # does the real work. The second script uses 'N' to pair each
26266 + # line-number line with the line containing $LINENO, and appends
26267 + # trailing '-' during substitution so that $LINENO is not a special
26268 + # case at line end.
26269 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
26270 - # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
26271 - sed '=' <$as_myself |
26272 + # scripts with optimization help from Paolo Bonzini. Blame Lee
26273 + # E. McMahon (1931-1989) for sed's syntax. :-)
26274 + sed -n '
26275 + p
26276 + /[$]LINENO/=
26277 + ' <$as_myself |
26278 sed '
26279 + s/[$]LINENO.*/&-/
26280 + t lineno
26281 + b
26282 + :lineno
26283 N
26284 - s,$,-,
26285 - : loop
26286 - s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
26287 + :loop
26288 + s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
26289 t loop
26290 - s,-$,,
26291 - s,^['$as_cr_digits']*\n,,
26292 + s/-\n.*//
26293 ' >$as_me.lineno &&
26294 - chmod +x $as_me.lineno ||
26295 + chmod +x "$as_me.lineno" ||
26296 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
26297 { (exit 1); exit 1; }; }
26298
26299 # Don't try to exec as it changes $[0], causing all sort of problems
26300 # (the dirname of $[0] is not the place where we might find the
26301 - # original and so on. Autoconf is especially sensible to this).
26302 - . ./$as_me.lineno
26303 + # original and so on. Autoconf is especially sensitive to this).
26304 + . "./$as_me.lineno"
26305 # Exit status is that of the last command.
26306 exit
26307 }
26308
26309
26310 -case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
26311 - *c*,-n*) ECHO_N= ECHO_C='
26312 -' ECHO_T=' ' ;;
26313 - *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
26314 - *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
26315 +if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
26316 + as_dirname=dirname
26317 +else
26318 + as_dirname=false
26319 +fi
26320 +
26321 +ECHO_C= ECHO_N= ECHO_T=
26322 +case `echo -n x` in
26323 +-n*)
26324 + case `echo 'x\c'` in
26325 + *c*) ECHO_T=' ';; # ECHO_T is single tab character.
26326 + *) ECHO_C='\c';;
26327 + esac;;
26328 +*)
26329 + ECHO_N='-n';;
26330 esac
26331
26332 -if expr a : '\(a\)' >/dev/null 2>&1; then
26333 +if expr a : '\(a\)' >/dev/null 2>&1 &&
26334 + test "X`expr 00001 : '.*\(...\)'`" = X001; then
26335 as_expr=expr
26336 else
26337 as_expr=false
26338 fi
26339
26340 rm -f conf$$ conf$$.exe conf$$.file
26341 +if test -d conf$$.dir; then
26342 + rm -f conf$$.dir/conf$$.file
26343 +else
26344 + rm -f conf$$.dir
26345 + mkdir conf$$.dir
26346 +fi
26347 echo >conf$$.file
26348 if ln -s conf$$.file conf$$ 2>/dev/null; then
26349 - # We could just check for DJGPP; but this test a) works b) is more generic
26350 - # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
26351 - if test -f conf$$.exe; then
26352 - # Don't use ln at all; we don't have any links
26353 + as_ln_s='ln -s'
26354 + # ... but there are two gotchas:
26355 + # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
26356 + # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
26357 + # In both cases, we have to default to `cp -p'.
26358 + ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
26359 as_ln_s='cp -p'
26360 - else
26361 - as_ln_s='ln -s'
26362 - fi
26363 elif ln conf$$.file conf$$ 2>/dev/null; then
26364 as_ln_s=ln
26365 else
26366 as_ln_s='cp -p'
26367 fi
26368 -rm -f conf$$ conf$$.exe conf$$.file
26369 +rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
26370 +rmdir conf$$.dir 2>/dev/null
26371
26372 if mkdir -p . 2>/dev/null; then
26373 as_mkdir_p=:
26374 @@ -222,7 +518,28 @@ else
26375 as_mkdir_p=false
26376 fi
26377
26378 -as_executable_p="test -f"
26379 +if test -x / >/dev/null 2>&1; then
26380 + as_test_x='test -x'
26381 +else
26382 + if ls -dL / >/dev/null 2>&1; then
26383 + as_ls_L_option=L
26384 + else
26385 + as_ls_L_option=
26386 + fi
26387 + as_test_x='
26388 + eval sh -c '\''
26389 + if test -d "$1"; then
26390 + test -d "$1/.";
26391 + else
26392 + case $1 in
26393 + -*)set "./$1";;
26394 + esac;
26395 + case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
26396 + ???[sx]*):;;*)false;;esac;fi
26397 + '\'' sh
26398 + '
26399 +fi
26400 +as_executable_p=$as_test_x
26401
26402 # Sed expression to map a string onto a valid CPP name.
26403 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
26404 @@ -231,39 +548,27 @@ as_tr_cpp="eval sed 'y%*$as_cr_letters%P
26405 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26406
26407
26408 -# IFS
26409 -# We need space, tab and new line, in precisely that order.
26410 -as_nl='
26411 -'
26412 -IFS=" $as_nl"
26413 -
26414 -# CDPATH.
26415 -$as_unset CDPATH
26416
26417 +exec 7<&0 </dev/null 6>&1
26418
26419 # Name of the host.
26420 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
26421 # so uname gets run too.
26422 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
26423
26424 -exec 6>&1
26425 -
26426 #
26427 # Initializations.
26428 #
26429 ac_default_prefix=/usr/local
26430 +ac_clean_files=
26431 ac_config_libobj_dir=.
26432 +LIBOBJS=
26433 cross_compiling=no
26434 subdirs=
26435 MFLAGS=
26436 MAKEFLAGS=
26437 SHELL=${CONFIG_SHELL-/bin/sh}
26438
26439 -# Maximum number of lines to put in a shell here document.
26440 -# This variable seems obsolete. It should probably be removed, and
26441 -# only ac_max_sed_lines should be used.
26442 -: ${ac_max_here_lines=38}
26443 -
26444 # Identity of this package.
26445 PACKAGE_NAME=
26446 PACKAGE_TARNAME=
26447 @@ -275,42 +580,193 @@ ac_unique_file="ar.c"
26448 # Factoring default headers for most tests.
26449 ac_includes_default="\
26450 #include <stdio.h>
26451 -#if HAVE_SYS_TYPES_H
26452 +#ifdef HAVE_SYS_TYPES_H
26453 # include <sys/types.h>
26454 #endif
26455 -#if HAVE_SYS_STAT_H
26456 +#ifdef HAVE_SYS_STAT_H
26457 # include <sys/stat.h>
26458 #endif
26459 -#if STDC_HEADERS
26460 +#ifdef STDC_HEADERS
26461 # include <stdlib.h>
26462 # include <stddef.h>
26463 #else
26464 -# if HAVE_STDLIB_H
26465 +# ifdef HAVE_STDLIB_H
26466 # include <stdlib.h>
26467 # endif
26468 #endif
26469 -#if HAVE_STRING_H
26470 -# if !STDC_HEADERS && HAVE_MEMORY_H
26471 +#ifdef HAVE_STRING_H
26472 +# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
26473 # include <memory.h>
26474 # endif
26475 # include <string.h>
26476 #endif
26477 -#if HAVE_STRINGS_H
26478 +#ifdef HAVE_STRINGS_H
26479 # include <strings.h>
26480 #endif
26481 -#if HAVE_INTTYPES_H
26482 +#ifdef HAVE_INTTYPES_H
26483 # include <inttypes.h>
26484 -#else
26485 -# if HAVE_STDINT_H
26486 -# include <stdint.h>
26487 -# endif
26488 #endif
26489 -#if HAVE_UNISTD_H
26490 +#ifdef HAVE_STDINT_H
26491 +# include <stdint.h>
26492 +#endif
26493 +#ifdef HAVE_UNISTD_H
26494 # include <unistd.h>
26495 #endif"
26496
26497 -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'
26498 +ac_subst_vars='SHELL
26499 +PATH_SEPARATOR
26500 +PACKAGE_NAME
26501 +PACKAGE_TARNAME
26502 +PACKAGE_VERSION
26503 +PACKAGE_STRING
26504 +PACKAGE_BUGREPORT
26505 +exec_prefix
26506 +prefix
26507 +program_transform_name
26508 +bindir
26509 +sbindir
26510 +libexecdir
26511 +datarootdir
26512 +datadir
26513 +sysconfdir
26514 +sharedstatedir
26515 +localstatedir
26516 +includedir
26517 +oldincludedir
26518 +docdir
26519 +infodir
26520 +htmldir
26521 +dvidir
26522 +pdfdir
26523 +psdir
26524 +libdir
26525 +localedir
26526 +mandir
26527 +DEFS
26528 +ECHO_C
26529 +ECHO_N
26530 +ECHO_T
26531 +LIBS
26532 +build_alias
26533 +host_alias
26534 +target_alias
26535 +build
26536 +build_cpu
26537 +build_vendor
26538 +build_os
26539 +host
26540 +host_cpu
26541 +host_vendor
26542 +host_os
26543 +target
26544 +target_cpu
26545 +target_vendor
26546 +target_os
26547 +CC
26548 +CFLAGS
26549 +LDFLAGS
26550 +CPPFLAGS
26551 +ac_ct_CC
26552 +EXEEXT
26553 +OBJEXT
26554 +INSTALL_PROGRAM
26555 +INSTALL_SCRIPT
26556 +INSTALL_DATA
26557 +CYGPATH_W
26558 +PACKAGE
26559 +VERSION
26560 +ACLOCAL
26561 +AUTOCONF
26562 +AUTOMAKE
26563 +AUTOHEADER
26564 +MAKEINFO
26565 +install_sh
26566 +STRIP
26567 +INSTALL_STRIP_PROGRAM
26568 +mkdir_p
26569 +AWK
26570 +SET_MAKE
26571 +am__leading_dot
26572 +AMTAR
26573 +am__tar
26574 +am__untar
26575 +DEPDIR
26576 +am__include
26577 +am__quote
26578 +AMDEP_TRUE
26579 +AMDEP_FALSE
26580 +AMDEPBACKSLASH
26581 +CCDEPMODE
26582 +am__fastdepCC_TRUE
26583 +am__fastdepCC_FALSE
26584 +LN_S
26585 +RANLIB
26586 +LIBTOOL
26587 +WARN_CFLAGS
26588 +NO_WERROR
26589 +YACC
26590 +YFLAGS
26591 +LEX
26592 +LEX_OUTPUT_ROOT
26593 +LEXLIB
26594 +CPP
26595 +GREP
26596 +EGREP
26597 +ALLOCA
26598 +USE_NLS
26599 +MSGFMT
26600 +GMSGFMT
26601 +XGETTEXT
26602 +USE_INCLUDED_LIBINTL
26603 +CATALOGS
26604 +CATOBJEXT
26605 +DATADIRNAME
26606 +GMOFILES
26607 +INSTOBJEXT
26608 +INTLDEPS
26609 +INTLLIBS
26610 +INTLOBJS
26611 +POFILES
26612 +POSUB
26613 +INCLUDE_LOCALE_H
26614 +GT_NO
26615 +GT_YES
26616 +MKINSTALLDIRS
26617 +l
26618 +MAINTAINER_MODE_TRUE
26619 +MAINTAINER_MODE_FALSE
26620 +MAINT
26621 +HDEFINES
26622 +AR
26623 +CC_FOR_BUILD
26624 +EXEEXT_FOR_BUILD
26625 +DEMANGLER_NAME
26626 +NLMCONV_DEFS
26627 +BUILD_NLMCONV
26628 +BUILD_SRCONV
26629 +BUILD_DLLTOOL
26630 +DLLTOOL_DEFS
26631 +BUILD_WINDRES
26632 +BUILD_DLLWRAP
26633 +BUILD_MISC
26634 +OBJDUMP_DEFS
26635 +EMULATION
26636 +EMULATION_VECTOR
26637 +LIBOBJS
26638 +LTLIBOBJS'
26639 ac_subst_files=''
26640 + ac_precious_vars='build_alias
26641 +host_alias
26642 +target_alias
26643 +CC
26644 +CFLAGS
26645 +LDFLAGS
26646 +LIBS
26647 +CPPFLAGS
26648 +YACC
26649 +YFLAGS
26650 +CPP'
26651 +
26652
26653 # Initialize some variables set by options.
26654 ac_init_help=
26655 @@ -337,34 +793,48 @@ x_libraries=NONE
26656 # and all the variables that are supposed to be based on exec_prefix
26657 # by default will actually change.
26658 # Use braces instead of parens because sh, perl, etc. also accept them.
26659 +# (The list follows the same order as the GNU Coding Standards.)
26660 bindir='${exec_prefix}/bin'
26661 sbindir='${exec_prefix}/sbin'
26662 libexecdir='${exec_prefix}/libexec'
26663 -datadir='${prefix}/share'
26664 +datarootdir='${prefix}/share'
26665 +datadir='${datarootdir}'
26666 sysconfdir='${prefix}/etc'
26667 sharedstatedir='${prefix}/com'
26668 localstatedir='${prefix}/var'
26669 -libdir='${exec_prefix}/lib'
26670 includedir='${prefix}/include'
26671 oldincludedir='/usr/include'
26672 -infodir='${prefix}/info'
26673 -mandir='${prefix}/man'
26674 +docdir='${datarootdir}/doc/${PACKAGE}'
26675 +infodir='${datarootdir}/info'
26676 +htmldir='${docdir}'
26677 +dvidir='${docdir}'
26678 +pdfdir='${docdir}'
26679 +psdir='${docdir}'
26680 +libdir='${exec_prefix}/lib'
26681 +localedir='${datarootdir}/locale'
26682 +mandir='${datarootdir}/man'
26683
26684 ac_prev=
26685 +ac_dashdash=
26686 for ac_option
26687 do
26688 # If the previous option needs an argument, assign it.
26689 if test -n "$ac_prev"; then
26690 - eval "$ac_prev=\$ac_option"
26691 + eval $ac_prev=\$ac_option
26692 ac_prev=
26693 continue
26694 fi
26695
26696 - ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
26697 + case $ac_option in
26698 + *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
26699 + *) ac_optarg=yes ;;
26700 + esac
26701
26702 # Accept the important Cygnus configure options, so we can diagnose typos.
26703
26704 - case $ac_option in
26705 + case $ac_dashdash$ac_option in
26706 + --)
26707 + ac_dashdash=yes ;;
26708
26709 -bindir | --bindir | --bindi | --bind | --bin | --bi)
26710 ac_prev=bindir ;;
26711 @@ -386,33 +856,45 @@ do
26712 --config-cache | -C)
26713 cache_file=config.cache ;;
26714
26715 - -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
26716 + -datadir | --datadir | --datadi | --datad)
26717 ac_prev=datadir ;;
26718 - -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
26719 - | --da=*)
26720 + -datadir=* | --datadir=* | --datadi=* | --datad=*)
26721 datadir=$ac_optarg ;;
26722
26723 + -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
26724 + | --dataroo | --dataro | --datar)
26725 + ac_prev=datarootdir ;;
26726 + -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
26727 + | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
26728 + datarootdir=$ac_optarg ;;
26729 +
26730 -disable-* | --disable-*)
26731 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
26732 # Reject names that are not valid shell variable names.
26733 - expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
26734 + expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
26735 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
26736 { (exit 1); exit 1; }; }
26737 - ac_feature=`echo $ac_feature | sed 's/-/_/g'`
26738 - eval "enable_$ac_feature=no" ;;
26739 + ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
26740 + eval enable_$ac_feature=no ;;
26741 +
26742 + -docdir | --docdir | --docdi | --doc | --do)
26743 + ac_prev=docdir ;;
26744 + -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
26745 + docdir=$ac_optarg ;;
26746 +
26747 + -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
26748 + ac_prev=dvidir ;;
26749 + -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
26750 + dvidir=$ac_optarg ;;
26751
26752 -enable-* | --enable-*)
26753 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
26754 # Reject names that are not valid shell variable names.
26755 - expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
26756 + expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
26757 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
26758 { (exit 1); exit 1; }; }
26759 - ac_feature=`echo $ac_feature | sed 's/-/_/g'`
26760 - case $ac_option in
26761 - *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
26762 - *) ac_optarg=yes ;;
26763 - esac
26764 - eval "enable_$ac_feature='$ac_optarg'" ;;
26765 + ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
26766 + eval enable_$ac_feature=\$ac_optarg ;;
26767
26768 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
26769 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
26770 @@ -439,6 +921,12 @@ do
26771 -host=* | --host=* | --hos=* | --ho=*)
26772 host_alias=$ac_optarg ;;
26773
26774 + -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
26775 + ac_prev=htmldir ;;
26776 + -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
26777 + | --ht=*)
26778 + htmldir=$ac_optarg ;;
26779 +
26780 -includedir | --includedir | --includedi | --included | --include \
26781 | --includ | --inclu | --incl | --inc)
26782 ac_prev=includedir ;;
26783 @@ -463,13 +951,16 @@ do
26784 | --libexe=* | --libex=* | --libe=*)
26785 libexecdir=$ac_optarg ;;
26786
26787 + -localedir | --localedir | --localedi | --localed | --locale)
26788 + ac_prev=localedir ;;
26789 + -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
26790 + localedir=$ac_optarg ;;
26791 +
26792 -localstatedir | --localstatedir | --localstatedi | --localstated \
26793 - | --localstate | --localstat | --localsta | --localst \
26794 - | --locals | --local | --loca | --loc | --lo)
26795 + | --localstate | --localstat | --localsta | --localst | --locals)
26796 ac_prev=localstatedir ;;
26797 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
26798 - | --localstate=* | --localstat=* | --localsta=* | --localst=* \
26799 - | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
26800 + | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
26801 localstatedir=$ac_optarg ;;
26802
26803 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
26804 @@ -534,6 +1025,16 @@ do
26805 | --progr-tra=* | --program-tr=* | --program-t=*)
26806 program_transform_name=$ac_optarg ;;
26807
26808 + -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
26809 + ac_prev=pdfdir ;;
26810 + -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
26811 + pdfdir=$ac_optarg ;;
26812 +
26813 + -psdir | --psdir | --psdi | --psd | --ps)
26814 + ac_prev=psdir ;;
26815 + -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
26816 + psdir=$ac_optarg ;;
26817 +
26818 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
26819 | -silent | --silent | --silen | --sile | --sil)
26820 silent=yes ;;
26821 @@ -586,24 +1087,20 @@ do
26822 -with-* | --with-*)
26823 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
26824 # Reject names that are not valid shell variable names.
26825 - expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
26826 + expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
26827 { echo "$as_me: error: invalid package name: $ac_package" >&2
26828 { (exit 1); exit 1; }; }
26829 - ac_package=`echo $ac_package| sed 's/-/_/g'`
26830 - case $ac_option in
26831 - *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
26832 - *) ac_optarg=yes ;;
26833 - esac
26834 - eval "with_$ac_package='$ac_optarg'" ;;
26835 + ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
26836 + eval with_$ac_package=\$ac_optarg ;;
26837
26838 -without-* | --without-*)
26839 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
26840 # Reject names that are not valid shell variable names.
26841 - expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
26842 + expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
26843 { echo "$as_me: error: invalid package name: $ac_package" >&2
26844 { (exit 1); exit 1; }; }
26845 - ac_package=`echo $ac_package | sed 's/-/_/g'`
26846 - eval "with_$ac_package=no" ;;
26847 + ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
26848 + eval with_$ac_package=no ;;
26849
26850 --x)
26851 # Obsolete; use --with-x.
26852 @@ -634,8 +1131,7 @@ Try \`$0 --help' for more information."
26853 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
26854 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
26855 { (exit 1); exit 1; }; }
26856 - ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
26857 - eval "$ac_envvar='$ac_optarg'"
26858 + eval $ac_envvar=\$ac_optarg
26859 export $ac_envvar ;;
26860
26861 *)
26862 @@ -655,27 +1151,19 @@ if test -n "$ac_prev"; then
26863 { (exit 1); exit 1; }; }
26864 fi
26865
26866 -# Be sure to have absolute paths.
26867 -for ac_var in exec_prefix prefix
26868 -do
26869 - eval ac_val=$`echo $ac_var`
26870 - case $ac_val in
26871 - [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
26872 - *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
26873 - { (exit 1); exit 1; }; };;
26874 - esac
26875 -done
26876 -
26877 -# Be sure to have absolute paths.
26878 -for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
26879 - localstatedir libdir includedir oldincludedir infodir mandir
26880 +# Be sure to have absolute directory names.
26881 +for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
26882 + datadir sysconfdir sharedstatedir localstatedir includedir \
26883 + oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
26884 + libdir localedir mandir
26885 do
26886 - eval ac_val=$`echo $ac_var`
26887 + eval ac_val=\$$ac_var
26888 case $ac_val in
26889 - [\\/$]* | ?:[\\/]* ) ;;
26890 - *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
26891 - { (exit 1); exit 1; }; };;
26892 + [\\/$]* | ?:[\\/]* ) continue;;
26893 + NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
26894 esac
26895 + { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
26896 + { (exit 1); exit 1; }; }
26897 done
26898
26899 # There might be people who depend on the old broken behavior: `$host'
26900 @@ -702,74 +1190,76 @@ test -n "$host_alias" && ac_tool_prefix=
26901 test "$silent" = yes && exec 6>/dev/null
26902
26903
26904 +ac_pwd=`pwd` && test -n "$ac_pwd" &&
26905 +ac_ls_di=`ls -di .` &&
26906 +ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
26907 + { echo "$as_me: error: Working directory cannot be determined" >&2
26908 + { (exit 1); exit 1; }; }
26909 +test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
26910 + { echo "$as_me: error: pwd does not report name of working directory" >&2
26911 + { (exit 1); exit 1; }; }
26912 +
26913 +
26914 # Find the source files, if location was not specified.
26915 if test -z "$srcdir"; then
26916 ac_srcdir_defaulted=yes
26917 - # Try the directory containing this script, then its parent.
26918 - ac_confdir=`(dirname "$0") 2>/dev/null ||
26919 + # Try the directory containing this script, then the parent directory.
26920 + ac_confdir=`$as_dirname -- "$0" ||
26921 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26922 X"$0" : 'X\(//\)[^/]' \| \
26923 X"$0" : 'X\(//\)$' \| \
26924 - X"$0" : 'X\(/\)' \| \
26925 - . : '\(.\)' 2>/dev/null ||
26926 + X"$0" : 'X\(/\)' \| . 2>/dev/null ||
26927 echo X"$0" |
26928 - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26929 - /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26930 - /^X\(\/\/\)$/{ s//\1/; q; }
26931 - /^X\(\/\).*/{ s//\1/; q; }
26932 - s/.*/./; q'`
26933 + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26934 + s//\1/
26935 + q
26936 + }
26937 + /^X\(\/\/\)[^/].*/{
26938 + s//\1/
26939 + q
26940 + }
26941 + /^X\(\/\/\)$/{
26942 + s//\1/
26943 + q
26944 + }
26945 + /^X\(\/\).*/{
26946 + s//\1/
26947 + q
26948 + }
26949 + s/.*/./; q'`
26950 srcdir=$ac_confdir
26951 - if test ! -r $srcdir/$ac_unique_file; then
26952 + if test ! -r "$srcdir/$ac_unique_file"; then
26953 srcdir=..
26954 fi
26955 else
26956 ac_srcdir_defaulted=no
26957 fi
26958 -if test ! -r $srcdir/$ac_unique_file; then
26959 - if test "$ac_srcdir_defaulted" = yes; then
26960 - { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
26961 - { (exit 1); exit 1; }; }
26962 - else
26963 - { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
26964 - { (exit 1); exit 1; }; }
26965 - fi
26966 -fi
26967 -(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
26968 - { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
26969 - { (exit 1); exit 1; }; }
26970 -srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
26971 -ac_env_build_alias_set=${build_alias+set}
26972 -ac_env_build_alias_value=$build_alias
26973 -ac_cv_env_build_alias_set=${build_alias+set}
26974 -ac_cv_env_build_alias_value=$build_alias
26975 -ac_env_host_alias_set=${host_alias+set}
26976 -ac_env_host_alias_value=$host_alias
26977 -ac_cv_env_host_alias_set=${host_alias+set}
26978 -ac_cv_env_host_alias_value=$host_alias
26979 -ac_env_target_alias_set=${target_alias+set}
26980 -ac_env_target_alias_value=$target_alias
26981 -ac_cv_env_target_alias_set=${target_alias+set}
26982 -ac_cv_env_target_alias_value=$target_alias
26983 -ac_env_CC_set=${CC+set}
26984 -ac_env_CC_value=$CC
26985 -ac_cv_env_CC_set=${CC+set}
26986 -ac_cv_env_CC_value=$CC
26987 -ac_env_CFLAGS_set=${CFLAGS+set}
26988 -ac_env_CFLAGS_value=$CFLAGS
26989 -ac_cv_env_CFLAGS_set=${CFLAGS+set}
26990 -ac_cv_env_CFLAGS_value=$CFLAGS
26991 -ac_env_LDFLAGS_set=${LDFLAGS+set}
26992 -ac_env_LDFLAGS_value=$LDFLAGS
26993 -ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
26994 -ac_cv_env_LDFLAGS_value=$LDFLAGS
26995 -ac_env_CPPFLAGS_set=${CPPFLAGS+set}
26996 -ac_env_CPPFLAGS_value=$CPPFLAGS
26997 -ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
26998 -ac_cv_env_CPPFLAGS_value=$CPPFLAGS
26999 -ac_env_CPP_set=${CPP+set}
27000 -ac_env_CPP_value=$CPP
27001 -ac_cv_env_CPP_set=${CPP+set}
27002 -ac_cv_env_CPP_value=$CPP
27003 +if test ! -r "$srcdir/$ac_unique_file"; then
27004 + test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
27005 + { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
27006 + { (exit 1); exit 1; }; }
27007 +fi
27008 +ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
27009 +ac_abs_confdir=`(
27010 + cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
27011 + { (exit 1); exit 1; }; }
27012 + pwd)`
27013 +# When building in place, set srcdir=.
27014 +if test "$ac_abs_confdir" = "$ac_pwd"; then
27015 + srcdir=.
27016 +fi
27017 +# Remove unnecessary trailing slashes from srcdir.
27018 +# Double slashes in file names in object file debugging info
27019 +# mess up M-x gdb in Emacs.
27020 +case $srcdir in
27021 +*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
27022 +esac
27023 +for ac_var in $ac_precious_vars; do
27024 + eval ac_env_${ac_var}_set=\${${ac_var}+set}
27025 + eval ac_env_${ac_var}_value=\$${ac_var}
27026 + eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
27027 + eval ac_cv_env_${ac_var}_value=\$${ac_var}
27028 +done
27029
27030 #
27031 # Report the --help message.
27032 @@ -798,9 +1288,6 @@ Configuration:
27033 -n, --no-create do not create output files
27034 --srcdir=DIR find the sources in DIR [configure dir or \`..']
27035
27036 -_ACEOF
27037 -
27038 - cat <<_ACEOF
27039 Installation directories:
27040 --prefix=PREFIX install architecture-independent files in PREFIX
27041 [$ac_default_prefix]
27042 @@ -818,15 +1305,22 @@ Fine tuning of the installation director
27043 --bindir=DIR user executables [EPREFIX/bin]
27044 --sbindir=DIR system admin executables [EPREFIX/sbin]
27045 --libexecdir=DIR program executables [EPREFIX/libexec]
27046 - --datadir=DIR read-only architecture-independent data [PREFIX/share]
27047 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
27048 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
27049 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
27050 --libdir=DIR object code libraries [EPREFIX/lib]
27051 --includedir=DIR C header files [PREFIX/include]
27052 --oldincludedir=DIR C header files for non-gcc [/usr/include]
27053 - --infodir=DIR info documentation [PREFIX/info]
27054 - --mandir=DIR man documentation [PREFIX/man]
27055 + --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
27056 + --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
27057 + --infodir=DIR info documentation [DATAROOTDIR/info]
27058 + --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
27059 + --mandir=DIR man documentation [DATAROOTDIR/man]
27060 + --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
27061 + --htmldir=DIR html documentation [DOCDIR]
27062 + --dvidir=DIR dvi documentation [DOCDIR]
27063 + --pdfdir=DIR pdf documentation [DOCDIR]
27064 + --psdir=DIR ps documentation [DOCDIR]
27065 _ACEOF
27066
27067 cat <<\_ACEOF
27068 @@ -876,126 +1370,100 @@ Some influential environment variables:
27069 CFLAGS C compiler flags
27070 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
27071 nonstandard directory <lib dir>
27072 - CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
27073 - headers in a nonstandard directory <include dir>
27074 + LIBS libraries to pass to the linker, e.g. -l<library>
27075 + CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
27076 + you have headers in a nonstandard directory <include dir>
27077 + YACC The `Yet Another C Compiler' implementation to use. Defaults to
27078 + the first program found out of: `bison -y', `byacc', `yacc'.
27079 + YFLAGS The list of arguments that will be passed by default to $YACC.
27080 + This script will default YFLAGS to the empty string to avoid a
27081 + default value of `-d' given by some make applications.
27082 CPP C preprocessor
27083
27084 Use these variables to override the choices made by `configure' or to help
27085 it to find libraries and programs with nonstandard names/locations.
27086
27087 _ACEOF
27088 +ac_status=$?
27089 fi
27090
27091 if test "$ac_init_help" = "recursive"; then
27092 # If there are subdirs, report their specific --help.
27093 - ac_popdir=`pwd`
27094 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
27095 - test -d $ac_dir || continue
27096 + test -d "$ac_dir" || continue
27097 ac_builddir=.
27098
27099 -if test "$ac_dir" != .; then
27100 +case "$ac_dir" in
27101 +.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
27102 +*)
27103 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
27104 - # A "../" for each directory in $ac_dir_suffix.
27105 - ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
27106 -else
27107 - ac_dir_suffix= ac_top_builddir=
27108 -fi
27109 + # A ".." for each directory in $ac_dir_suffix.
27110 + ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
27111 + case $ac_top_builddir_sub in
27112 + "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
27113 + *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
27114 + esac ;;
27115 +esac
27116 +ac_abs_top_builddir=$ac_pwd
27117 +ac_abs_builddir=$ac_pwd$ac_dir_suffix
27118 +# for backward compatibility:
27119 +ac_top_builddir=$ac_top_build_prefix
27120
27121 case $srcdir in
27122 - .) # No --srcdir option. We are building in place.
27123 + .) # We are building in place.
27124 ac_srcdir=.
27125 - if test -z "$ac_top_builddir"; then
27126 - ac_top_srcdir=.
27127 - else
27128 - ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
27129 - fi ;;
27130 - [\\/]* | ?:[\\/]* ) # Absolute path.
27131 + ac_top_srcdir=$ac_top_builddir_sub
27132 + ac_abs_top_srcdir=$ac_pwd ;;
27133 + [\\/]* | ?:[\\/]* ) # Absolute name.
27134 ac_srcdir=$srcdir$ac_dir_suffix;
27135 - ac_top_srcdir=$srcdir ;;
27136 - *) # Relative path.
27137 - ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
27138 - ac_top_srcdir=$ac_top_builddir$srcdir ;;
27139 -esac
27140 -
27141 -# Do not use `cd foo && pwd` to compute absolute paths, because
27142 -# the directories may not exist.
27143 -case `pwd` in
27144 -.) ac_abs_builddir="$ac_dir";;
27145 -*)
27146 - case "$ac_dir" in
27147 - .) ac_abs_builddir=`pwd`;;
27148 - [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
27149 - *) ac_abs_builddir=`pwd`/"$ac_dir";;
27150 - esac;;
27151 -esac
27152 -case $ac_abs_builddir in
27153 -.) ac_abs_top_builddir=${ac_top_builddir}.;;
27154 -*)
27155 - case ${ac_top_builddir}. in
27156 - .) ac_abs_top_builddir=$ac_abs_builddir;;
27157 - [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
27158 - *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
27159 - esac;;
27160 -esac
27161 -case $ac_abs_builddir in
27162 -.) ac_abs_srcdir=$ac_srcdir;;
27163 -*)
27164 - case $ac_srcdir in
27165 - .) ac_abs_srcdir=$ac_abs_builddir;;
27166 - [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
27167 - *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
27168 - esac;;
27169 -esac
27170 -case $ac_abs_builddir in
27171 -.) ac_abs_top_srcdir=$ac_top_srcdir;;
27172 -*)
27173 - case $ac_top_srcdir in
27174 - .) ac_abs_top_srcdir=$ac_abs_builddir;;
27175 - [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
27176 - *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
27177 - esac;;
27178 -esac
27179 -
27180 - cd $ac_dir
27181 - # Check for guested configure; otherwise get Cygnus style configure.
27182 - if test -f $ac_srcdir/configure.gnu; then
27183 - echo
27184 - $SHELL $ac_srcdir/configure.gnu --help=recursive
27185 - elif test -f $ac_srcdir/configure; then
27186 - echo
27187 - $SHELL $ac_srcdir/configure --help=recursive
27188 - elif test -f $ac_srcdir/configure.ac ||
27189 - test -f $ac_srcdir/configure.in; then
27190 - echo
27191 - $ac_configure --help
27192 + ac_top_srcdir=$srcdir
27193 + ac_abs_top_srcdir=$srcdir ;;
27194 + *) # Relative name.
27195 + ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
27196 + ac_top_srcdir=$ac_top_build_prefix$srcdir
27197 + ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
27198 +esac
27199 +ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
27200 +
27201 + cd "$ac_dir" || { ac_status=$?; continue; }
27202 + # Check for guested configure.
27203 + if test -f "$ac_srcdir/configure.gnu"; then
27204 + echo &&
27205 + $SHELL "$ac_srcdir/configure.gnu" --help=recursive
27206 + elif test -f "$ac_srcdir/configure"; then
27207 + echo &&
27208 + $SHELL "$ac_srcdir/configure" --help=recursive
27209 else
27210 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
27211 - fi
27212 - cd $ac_popdir
27213 + fi || ac_status=$?
27214 + cd "$ac_pwd" || { ac_status=$?; break; }
27215 done
27216 fi
27217
27218 -test -n "$ac_init_help" && exit 0
27219 +test -n "$ac_init_help" && exit $ac_status
27220 if $ac_init_version; then
27221 cat <<\_ACEOF
27222 +configure
27223 +generated by GNU Autoconf 2.61
27224
27225 -Copyright (C) 2003 Free Software Foundation, Inc.
27226 +Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
27227 +2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
27228 This configure script is free software; the Free Software Foundation
27229 gives unlimited permission to copy, distribute and modify it.
27230 _ACEOF
27231 - exit 0
27232 + exit
27233 fi
27234 -exec 5>config.log
27235 -cat >&5 <<_ACEOF
27236 +cat >config.log <<_ACEOF
27237 This file contains any messages produced by compilers while
27238 running configure, to aid debugging if configure makes a mistake.
27239
27240 It was created by $as_me, which was
27241 -generated by GNU Autoconf 2.59. Invocation command line was
27242 +generated by GNU Autoconf 2.61. Invocation command line was
27243
27244 $ $0 $@
27245
27246 _ACEOF
27247 +exec 5>>config.log
27248 {
27249 cat <<_ASUNAME
27250 ## --------- ##
27251 @@ -1014,7 +1482,7 @@ uname -v = `(uname -v) 2>/dev/null || ec
27252 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
27253 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
27254 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
27255 -hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
27256 +/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
27257 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
27258 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
27259 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
27260 @@ -1028,6 +1496,7 @@ do
27261 test -z "$as_dir" && as_dir=.
27262 echo "PATH: $as_dir"
27263 done
27264 +IFS=$as_save_IFS
27265
27266 } >&5
27267
27268 @@ -1049,7 +1518,6 @@ _ACEOF
27269 ac_configure_args=
27270 ac_configure_args0=
27271 ac_configure_args1=
27272 -ac_sep=
27273 ac_must_keep_next=false
27274 for ac_pass in 1 2
27275 do
27276 @@ -1060,7 +1528,7 @@ do
27277 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
27278 | -silent | --silent | --silen | --sile | --sil)
27279 continue ;;
27280 - *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
27281 + *\'*)
27282 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
27283 esac
27284 case $ac_pass in
27285 @@ -1082,9 +1550,7 @@ do
27286 -* ) ac_must_keep_next=true ;;
27287 esac
27288 fi
27289 - ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
27290 - # Get rid of the leading space.
27291 - ac_sep=" "
27292 + ac_configure_args="$ac_configure_args '$ac_arg'"
27293 ;;
27294 esac
27295 done
27296 @@ -1095,8 +1561,8 @@ $as_unset ac_configure_args1 || test "${
27297 # When interrupted or exit'd, cleanup temporary files, and complete
27298 # config.log. We remove comments because anyway the quotes in there
27299 # would cause problems or look ugly.
27300 -# WARNING: Be sure not to use single quotes in there, as some shells,
27301 -# such as our DU 5.0 friend, will then `close' the trap.
27302 +# WARNING: Use '\'' to represent an apostrophe within the trap.
27303 +# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
27304 trap 'exit_status=$?
27305 # Save into config.log some information that might help in debugging.
27306 {
27307 @@ -1109,20 +1575,34 @@ trap 'exit_status=$?
27308 _ASBOX
27309 echo
27310 # The following way of writing the cache mishandles newlines in values,
27311 -{
27312 +(
27313 + for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
27314 + eval ac_val=\$$ac_var
27315 + case $ac_val in #(
27316 + *${as_nl}*)
27317 + case $ac_var in #(
27318 + *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
27319 +echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
27320 + esac
27321 + case $ac_var in #(
27322 + _ | IFS | as_nl) ;; #(
27323 + *) $as_unset $ac_var ;;
27324 + esac ;;
27325 + esac
27326 + done
27327 (set) 2>&1 |
27328 - case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
27329 - *ac_space=\ *)
27330 + case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
27331 + *${as_nl}ac_space=\ *)
27332 sed -n \
27333 - "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
27334 - s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
27335 - ;;
27336 + "s/'\''/'\''\\\\'\'''\''/g;
27337 + s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
27338 + ;; #(
27339 *)
27340 - sed -n \
27341 - "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
27342 + sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
27343 ;;
27344 - esac;
27345 -}
27346 + esac |
27347 + sort
27348 +)
27349 echo
27350
27351 cat <<\_ASBOX
27352 @@ -1133,22 +1613,28 @@ _ASBOX
27353 echo
27354 for ac_var in $ac_subst_vars
27355 do
27356 - eval ac_val=$`echo $ac_var`
27357 - echo "$ac_var='"'"'$ac_val'"'"'"
27358 + eval ac_val=\$$ac_var
27359 + case $ac_val in
27360 + *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
27361 + esac
27362 + echo "$ac_var='\''$ac_val'\''"
27363 done | sort
27364 echo
27365
27366 if test -n "$ac_subst_files"; then
27367 cat <<\_ASBOX
27368 -## ------------- ##
27369 -## Output files. ##
27370 -## ------------- ##
27371 +## ------------------- ##
27372 +## File substitutions. ##
27373 +## ------------------- ##
27374 _ASBOX
27375 echo
27376 for ac_var in $ac_subst_files
27377 do
27378 - eval ac_val=$`echo $ac_var`
27379 - echo "$ac_var='"'"'$ac_val'"'"'"
27380 + eval ac_val=\$$ac_var
27381 + case $ac_val in
27382 + *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
27383 + esac
27384 + echo "$ac_var='\''$ac_val'\''"
27385 done | sort
27386 echo
27387 fi
27388 @@ -1160,26 +1646,24 @@ _ASBOX
27389 ## ----------- ##
27390 _ASBOX
27391 echo
27392 - sed "/^$/d" confdefs.h | sort
27393 + cat confdefs.h
27394 echo
27395 fi
27396 test "$ac_signal" != 0 &&
27397 echo "$as_me: caught signal $ac_signal"
27398 echo "$as_me: exit $exit_status"
27399 } >&5
27400 - rm -f core *.core &&
27401 - rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
27402 + rm -f core *.core core.conftest.* &&
27403 + rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
27404 exit $exit_status
27405 - ' 0
27406 +' 0
27407 for ac_signal in 1 2 13 15; do
27408 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
27409 done
27410 ac_signal=0
27411
27412 # confdefs.h avoids OS command line length limits that DEFS can exceed.
27413 -rm -rf conftest* confdefs.h
27414 -# AIX cpp loses on an empty file, so make sure it contains at least a newline.
27415 -echo >confdefs.h
27416 +rm -f -r conftest* confdefs.h
27417
27418 # Predefined preprocessor variables.
27419
27420 @@ -1210,14 +1694,17 @@ _ACEOF
27421
27422 # Let the site file select an alternate cache file if it wants to.
27423 # Prefer explicitly selected file to automatically selected ones.
27424 -if test -z "$CONFIG_SITE"; then
27425 - if test "x$prefix" != xNONE; then
27426 - CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
27427 - else
27428 - CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
27429 - fi
27430 +if test -n "$CONFIG_SITE"; then
27431 + set x "$CONFIG_SITE"
27432 +elif test "x$prefix" != xNONE; then
27433 + set x "$prefix/share/config.site" "$prefix/etc/config.site"
27434 +else
27435 + set x "$ac_default_prefix/share/config.site" \
27436 + "$ac_default_prefix/etc/config.site"
27437 fi
27438 -for ac_site_file in $CONFIG_SITE; do
27439 +shift
27440 +for ac_site_file
27441 +do
27442 if test -r "$ac_site_file"; then
27443 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
27444 echo "$as_me: loading site script $ac_site_file" >&6;}
27445 @@ -1233,8 +1720,8 @@ if test -r "$cache_file"; then
27446 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
27447 echo "$as_me: loading cache $cache_file" >&6;}
27448 case $cache_file in
27449 - [\\/]* | ?:[\\/]* ) . $cache_file;;
27450 - *) . ./$cache_file;;
27451 + [\\/]* | ?:[\\/]* ) . "$cache_file";;
27452 + *) . "./$cache_file";;
27453 esac
27454 fi
27455 else
27456 @@ -1246,12 +1733,11 @@ fi
27457 # Check that the precious variables saved in the cache have kept the same
27458 # value.
27459 ac_cache_corrupted=false
27460 -for ac_var in `(set) 2>&1 |
27461 - sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
27462 +for ac_var in $ac_precious_vars; do
27463 eval ac_old_set=\$ac_cv_env_${ac_var}_set
27464 eval ac_new_set=\$ac_env_${ac_var}_set
27465 - eval ac_old_val="\$ac_cv_env_${ac_var}_value"
27466 - eval ac_new_val="\$ac_env_${ac_var}_value"
27467 + eval ac_old_val=\$ac_cv_env_${ac_var}_value
27468 + eval ac_new_val=\$ac_env_${ac_var}_value
27469 case $ac_old_set,$ac_new_set in
27470 set,)
27471 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
27472 @@ -1276,8 +1762,7 @@ echo "$as_me: current value: $ac_new_v
27473 # Pass precious variables to config.status.
27474 if test "$ac_new_set" = set; then
27475 case $ac_new_val in
27476 - *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
27477 - ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
27478 + *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
27479 *) ac_arg=$ac_var=$ac_new_val ;;
27480 esac
27481 case " $ac_configure_args " in
27482 @@ -1294,12 +1779,6 @@ echo "$as_me: error: run \`make distclea
27483 { (exit 1); exit 1; }; }
27484 fi
27485
27486 -ac_ext=c
27487 -ac_cpp='$CPP $CPPFLAGS'
27488 -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27489 -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27490 -ac_compiler_gnu=$ac_cv_c_compiler_gnu
27491 -
27492
27493
27494
27495 @@ -1316,108 +1795,163 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
27496
27497
27498
27499 +ac_ext=c
27500 +ac_cpp='$CPP $CPPFLAGS'
27501 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27502 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27503 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
27504
27505
27506
27507 ac_aux_dir=
27508 -for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
27509 - if test -f $ac_dir/install-sh; then
27510 +for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
27511 + if test -f "$ac_dir/install-sh"; then
27512 ac_aux_dir=$ac_dir
27513 ac_install_sh="$ac_aux_dir/install-sh -c"
27514 break
27515 - elif test -f $ac_dir/install.sh; then
27516 + elif test -f "$ac_dir/install.sh"; then
27517 ac_aux_dir=$ac_dir
27518 ac_install_sh="$ac_aux_dir/install.sh -c"
27519 break
27520 - elif test -f $ac_dir/shtool; then
27521 + elif test -f "$ac_dir/shtool"; then
27522 ac_aux_dir=$ac_dir
27523 ac_install_sh="$ac_aux_dir/shtool install -c"
27524 break
27525 fi
27526 done
27527 if test -z "$ac_aux_dir"; then
27528 - { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
27529 -echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
27530 + { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
27531 +echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
27532 { (exit 1); exit 1; }; }
27533 fi
27534 -ac_config_guess="$SHELL $ac_aux_dir/config.guess"
27535 -ac_config_sub="$SHELL $ac_aux_dir/config.sub"
27536 -ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
27537 +
27538 +# These three variables are undocumented and unsupported,
27539 +# and are intended to be withdrawn in a future Autoconf release.
27540 +# They can cause serious problems if a builder's source tree is in a directory
27541 +# whose full name contains unusual characters.
27542 +ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
27543 +ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
27544 +ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
27545 +
27546
27547 # Make sure we can run config.sub.
27548 -$ac_config_sub sun4 >/dev/null 2>&1 ||
27549 - { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
27550 -echo "$as_me: error: cannot run $ac_config_sub" >&2;}
27551 +$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
27552 + { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
27553 +echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
27554 { (exit 1); exit 1; }; }
27555
27556 -echo "$as_me:$LINENO: checking build system type" >&5
27557 -echo $ECHO_N "checking build system type... $ECHO_C" >&6
27558 +{ echo "$as_me:$LINENO: checking build system type" >&5
27559 +echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
27560 if test "${ac_cv_build+set}" = set; then
27561 echo $ECHO_N "(cached) $ECHO_C" >&6
27562 else
27563 - ac_cv_build_alias=$build_alias
27564 -test -z "$ac_cv_build_alias" &&
27565 - ac_cv_build_alias=`$ac_config_guess`
27566 -test -z "$ac_cv_build_alias" &&
27567 + ac_build_alias=$build_alias
27568 +test "x$ac_build_alias" = x &&
27569 + ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
27570 +test "x$ac_build_alias" = x &&
27571 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
27572 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
27573 { (exit 1); exit 1; }; }
27574 -ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
27575 - { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
27576 -echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
27577 +ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
27578 + { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
27579 +echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
27580 { (exit 1); exit 1; }; }
27581
27582 fi
27583 -echo "$as_me:$LINENO: result: $ac_cv_build" >&5
27584 -echo "${ECHO_T}$ac_cv_build" >&6
27585 +{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
27586 +echo "${ECHO_T}$ac_cv_build" >&6; }
27587 +case $ac_cv_build in
27588 +*-*-*) ;;
27589 +*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
27590 +echo "$as_me: error: invalid value of canonical build" >&2;}
27591 + { (exit 1); exit 1; }; };;
27592 +esac
27593 build=$ac_cv_build
27594 -build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
27595 -build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
27596 -build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
27597 +ac_save_IFS=$IFS; IFS='-'
27598 +set x $ac_cv_build
27599 +shift
27600 +build_cpu=$1
27601 +build_vendor=$2
27602 +shift; shift
27603 +# Remember, the first character of IFS is used to create $*,
27604 +# except with old shells:
27605 +build_os=$*
27606 +IFS=$ac_save_IFS
27607 +case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
27608
27609
27610 -echo "$as_me:$LINENO: checking host system type" >&5
27611 -echo $ECHO_N "checking host system type... $ECHO_C" >&6
27612 +{ echo "$as_me:$LINENO: checking host system type" >&5
27613 +echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
27614 if test "${ac_cv_host+set}" = set; then
27615 echo $ECHO_N "(cached) $ECHO_C" >&6
27616 else
27617 - ac_cv_host_alias=$host_alias
27618 -test -z "$ac_cv_host_alias" &&
27619 - ac_cv_host_alias=$ac_cv_build_alias
27620 -ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
27621 - { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
27622 -echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
27623 + if test "x$host_alias" = x; then
27624 + ac_cv_host=$ac_cv_build
27625 +else
27626 + ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
27627 + { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
27628 +echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
27629 { (exit 1); exit 1; }; }
27630 +fi
27631
27632 fi
27633 -echo "$as_me:$LINENO: result: $ac_cv_host" >&5
27634 -echo "${ECHO_T}$ac_cv_host" >&6
27635 +{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
27636 +echo "${ECHO_T}$ac_cv_host" >&6; }
27637 +case $ac_cv_host in
27638 +*-*-*) ;;
27639 +*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
27640 +echo "$as_me: error: invalid value of canonical host" >&2;}
27641 + { (exit 1); exit 1; }; };;
27642 +esac
27643 host=$ac_cv_host
27644 -host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
27645 -host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
27646 -host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
27647 +ac_save_IFS=$IFS; IFS='-'
27648 +set x $ac_cv_host
27649 +shift
27650 +host_cpu=$1
27651 +host_vendor=$2
27652 +shift; shift
27653 +# Remember, the first character of IFS is used to create $*,
27654 +# except with old shells:
27655 +host_os=$*
27656 +IFS=$ac_save_IFS
27657 +case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
27658
27659
27660 -echo "$as_me:$LINENO: checking target system type" >&5
27661 -echo $ECHO_N "checking target system type... $ECHO_C" >&6
27662 +{ echo "$as_me:$LINENO: checking target system type" >&5
27663 +echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
27664 if test "${ac_cv_target+set}" = set; then
27665 echo $ECHO_N "(cached) $ECHO_C" >&6
27666 else
27667 - ac_cv_target_alias=$target_alias
27668 -test "x$ac_cv_target_alias" = "x" &&
27669 - ac_cv_target_alias=$ac_cv_host_alias
27670 -ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
27671 - { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
27672 -echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
27673 + if test "x$target_alias" = x; then
27674 + ac_cv_target=$ac_cv_host
27675 +else
27676 + ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
27677 + { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
27678 +echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
27679 { (exit 1); exit 1; }; }
27680 +fi
27681
27682 fi
27683 -echo "$as_me:$LINENO: result: $ac_cv_target" >&5
27684 -echo "${ECHO_T}$ac_cv_target" >&6
27685 +{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
27686 +echo "${ECHO_T}$ac_cv_target" >&6; }
27687 +case $ac_cv_target in
27688 +*-*-*) ;;
27689 +*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
27690 +echo "$as_me: error: invalid value of canonical target" >&2;}
27691 + { (exit 1); exit 1; }; };;
27692 +esac
27693 target=$ac_cv_target
27694 -target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
27695 -target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
27696 -target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
27697 +ac_save_IFS=$IFS; IFS='-'
27698 +set x $ac_cv_target
27699 +shift
27700 +target_cpu=$1
27701 +target_vendor=$2
27702 +shift; shift
27703 +# Remember, the first character of IFS is used to create $*,
27704 +# except with old shells:
27705 +target_os=$*
27706 +IFS=$ac_save_IFS
27707 +case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
27708
27709
27710 # The aliases save the names the user supplied, while $host etc.
27711 @@ -1434,8 +1968,8 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
27712 if test -n "$ac_tool_prefix"; then
27713 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
27714 set dummy ${ac_tool_prefix}gcc; ac_word=$2
27715 -echo "$as_me:$LINENO: checking for $ac_word" >&5
27716 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27717 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
27718 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27719 if test "${ac_cv_prog_CC+set}" = set; then
27720 echo $ECHO_N "(cached) $ECHO_C" >&6
27721 else
27722 @@ -1448,32 +1982,34 @@ do
27723 IFS=$as_save_IFS
27724 test -z "$as_dir" && as_dir=.
27725 for ac_exec_ext in '' $ac_executable_extensions; do
27726 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27727 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27728 ac_cv_prog_CC="${ac_tool_prefix}gcc"
27729 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27730 break 2
27731 fi
27732 done
27733 done
27734 +IFS=$as_save_IFS
27735
27736 fi
27737 fi
27738 CC=$ac_cv_prog_CC
27739 if test -n "$CC"; then
27740 - echo "$as_me:$LINENO: result: $CC" >&5
27741 -echo "${ECHO_T}$CC" >&6
27742 + { echo "$as_me:$LINENO: result: $CC" >&5
27743 +echo "${ECHO_T}$CC" >&6; }
27744 else
27745 - echo "$as_me:$LINENO: result: no" >&5
27746 -echo "${ECHO_T}no" >&6
27747 + { echo "$as_me:$LINENO: result: no" >&5
27748 +echo "${ECHO_T}no" >&6; }
27749 fi
27750
27751 +
27752 fi
27753 if test -z "$ac_cv_prog_CC"; then
27754 ac_ct_CC=$CC
27755 # Extract the first word of "gcc", so it can be a program name with args.
27756 set dummy gcc; ac_word=$2
27757 -echo "$as_me:$LINENO: checking for $ac_word" >&5
27758 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27759 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
27760 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27761 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
27762 echo $ECHO_N "(cached) $ECHO_C" >&6
27763 else
27764 @@ -1486,36 +2022,51 @@ do
27765 IFS=$as_save_IFS
27766 test -z "$as_dir" && as_dir=.
27767 for ac_exec_ext in '' $ac_executable_extensions; do
27768 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27769 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27770 ac_cv_prog_ac_ct_CC="gcc"
27771 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27772 break 2
27773 fi
27774 done
27775 done
27776 +IFS=$as_save_IFS
27777
27778 fi
27779 fi
27780 ac_ct_CC=$ac_cv_prog_ac_ct_CC
27781 if test -n "$ac_ct_CC"; then
27782 - echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
27783 -echo "${ECHO_T}$ac_ct_CC" >&6
27784 + { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
27785 +echo "${ECHO_T}$ac_ct_CC" >&6; }
27786 else
27787 - echo "$as_me:$LINENO: result: no" >&5
27788 -echo "${ECHO_T}no" >&6
27789 + { echo "$as_me:$LINENO: result: no" >&5
27790 +echo "${ECHO_T}no" >&6; }
27791 fi
27792
27793 - CC=$ac_ct_CC
27794 + if test "x$ac_ct_CC" = x; then
27795 + CC=""
27796 + else
27797 + case $cross_compiling:$ac_tool_warned in
27798 +yes:)
27799 +{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
27800 +whose name does not start with the host triplet. If you think this
27801 +configuration is useful to you, please write to autoconf@gnu.org." >&5
27802 +echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
27803 +whose name does not start with the host triplet. If you think this
27804 +configuration is useful to you, please write to autoconf@gnu.org." >&2;}
27805 +ac_tool_warned=yes ;;
27806 +esac
27807 + CC=$ac_ct_CC
27808 + fi
27809 else
27810 CC="$ac_cv_prog_CC"
27811 fi
27812
27813 if test -z "$CC"; then
27814 - if test -n "$ac_tool_prefix"; then
27815 - # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
27816 + if test -n "$ac_tool_prefix"; then
27817 + # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
27818 set dummy ${ac_tool_prefix}cc; ac_word=$2
27819 -echo "$as_me:$LINENO: checking for $ac_word" >&5
27820 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27821 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
27822 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27823 if test "${ac_cv_prog_CC+set}" = set; then
27824 echo $ECHO_N "(cached) $ECHO_C" >&6
27825 else
27826 @@ -1528,74 +2079,34 @@ do
27827 IFS=$as_save_IFS
27828 test -z "$as_dir" && as_dir=.
27829 for ac_exec_ext in '' $ac_executable_extensions; do
27830 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27831 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27832 ac_cv_prog_CC="${ac_tool_prefix}cc"
27833 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27834 break 2
27835 fi
27836 done
27837 done
27838 +IFS=$as_save_IFS
27839
27840 fi
27841 fi
27842 CC=$ac_cv_prog_CC
27843 if test -n "$CC"; then
27844 - echo "$as_me:$LINENO: result: $CC" >&5
27845 -echo "${ECHO_T}$CC" >&6
27846 -else
27847 - echo "$as_me:$LINENO: result: no" >&5
27848 -echo "${ECHO_T}no" >&6
27849 -fi
27850 -
27851 -fi
27852 -if test -z "$ac_cv_prog_CC"; then
27853 - ac_ct_CC=$CC
27854 - # Extract the first word of "cc", so it can be a program name with args.
27855 -set dummy cc; ac_word=$2
27856 -echo "$as_me:$LINENO: checking for $ac_word" >&5
27857 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27858 -if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
27859 - echo $ECHO_N "(cached) $ECHO_C" >&6
27860 -else
27861 - if test -n "$ac_ct_CC"; then
27862 - ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
27863 -else
27864 -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27865 -for as_dir in $PATH
27866 -do
27867 - IFS=$as_save_IFS
27868 - test -z "$as_dir" && as_dir=.
27869 - for ac_exec_ext in '' $ac_executable_extensions; do
27870 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27871 - ac_cv_prog_ac_ct_CC="cc"
27872 - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27873 - break 2
27874 - fi
27875 -done
27876 -done
27877 -
27878 -fi
27879 -fi
27880 -ac_ct_CC=$ac_cv_prog_ac_ct_CC
27881 -if test -n "$ac_ct_CC"; then
27882 - echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
27883 -echo "${ECHO_T}$ac_ct_CC" >&6
27884 + { echo "$as_me:$LINENO: result: $CC" >&5
27885 +echo "${ECHO_T}$CC" >&6; }
27886 else
27887 - echo "$as_me:$LINENO: result: no" >&5
27888 -echo "${ECHO_T}no" >&6
27889 + { echo "$as_me:$LINENO: result: no" >&5
27890 +echo "${ECHO_T}no" >&6; }
27891 fi
27892
27893 - CC=$ac_ct_CC
27894 -else
27895 - CC="$ac_cv_prog_CC"
27896 -fi
27897
27898 + fi
27899 fi
27900 if test -z "$CC"; then
27901 # Extract the first word of "cc", so it can be a program name with args.
27902 set dummy cc; ac_word=$2
27903 -echo "$as_me:$LINENO: checking for $ac_word" >&5
27904 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27905 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
27906 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27907 if test "${ac_cv_prog_CC+set}" = set; then
27908 echo $ECHO_N "(cached) $ECHO_C" >&6
27909 else
27910 @@ -1609,7 +2120,7 @@ do
27911 IFS=$as_save_IFS
27912 test -z "$as_dir" && as_dir=.
27913 for ac_exec_ext in '' $ac_executable_extensions; do
27914 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27915 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27916 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
27917 ac_prog_rejected=yes
27918 continue
27919 @@ -1620,6 +2131,7 @@ do
27920 fi
27921 done
27922 done
27923 +IFS=$as_save_IFS
27924
27925 if test $ac_prog_rejected = yes; then
27926 # We found a bogon in the path, so make sure we never use it.
27927 @@ -1637,22 +2149,23 @@ fi
27928 fi
27929 CC=$ac_cv_prog_CC
27930 if test -n "$CC"; then
27931 - echo "$as_me:$LINENO: result: $CC" >&5
27932 -echo "${ECHO_T}$CC" >&6
27933 + { echo "$as_me:$LINENO: result: $CC" >&5
27934 +echo "${ECHO_T}$CC" >&6; }
27935 else
27936 - echo "$as_me:$LINENO: result: no" >&5
27937 -echo "${ECHO_T}no" >&6
27938 + { echo "$as_me:$LINENO: result: no" >&5
27939 +echo "${ECHO_T}no" >&6; }
27940 fi
27941
27942 +
27943 fi
27944 if test -z "$CC"; then
27945 if test -n "$ac_tool_prefix"; then
27946 - for ac_prog in cl
27947 + for ac_prog in cl.exe
27948 do
27949 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
27950 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
27951 -echo "$as_me:$LINENO: checking for $ac_word" >&5
27952 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27953 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
27954 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27955 if test "${ac_cv_prog_CC+set}" = set; then
27956 echo $ECHO_N "(cached) $ECHO_C" >&6
27957 else
27958 @@ -1665,36 +2178,38 @@ do
27959 IFS=$as_save_IFS
27960 test -z "$as_dir" && as_dir=.
27961 for ac_exec_ext in '' $ac_executable_extensions; do
27962 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27963 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27964 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
27965 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27966 break 2
27967 fi
27968 done
27969 done
27970 +IFS=$as_save_IFS
27971
27972 fi
27973 fi
27974 CC=$ac_cv_prog_CC
27975 if test -n "$CC"; then
27976 - echo "$as_me:$LINENO: result: $CC" >&5
27977 -echo "${ECHO_T}$CC" >&6
27978 + { echo "$as_me:$LINENO: result: $CC" >&5
27979 +echo "${ECHO_T}$CC" >&6; }
27980 else
27981 - echo "$as_me:$LINENO: result: no" >&5
27982 -echo "${ECHO_T}no" >&6
27983 + { echo "$as_me:$LINENO: result: no" >&5
27984 +echo "${ECHO_T}no" >&6; }
27985 fi
27986
27987 +
27988 test -n "$CC" && break
27989 done
27990 fi
27991 if test -z "$CC"; then
27992 ac_ct_CC=$CC
27993 - for ac_prog in cl
27994 + for ac_prog in cl.exe
27995 do
27996 # Extract the first word of "$ac_prog", so it can be a program name with args.
27997 set dummy $ac_prog; ac_word=$2
27998 -echo "$as_me:$LINENO: checking for $ac_word" >&5
27999 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
28000 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
28001 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
28002 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
28003 echo $ECHO_N "(cached) $ECHO_C" >&6
28004 else
28005 @@ -1707,29 +2222,45 @@ do
28006 IFS=$as_save_IFS
28007 test -z "$as_dir" && as_dir=.
28008 for ac_exec_ext in '' $ac_executable_extensions; do
28009 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28010 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28011 ac_cv_prog_ac_ct_CC="$ac_prog"
28012 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28013 break 2
28014 fi
28015 done
28016 done
28017 +IFS=$as_save_IFS
28018
28019 fi
28020 fi
28021 ac_ct_CC=$ac_cv_prog_ac_ct_CC
28022 if test -n "$ac_ct_CC"; then
28023 - echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
28024 -echo "${ECHO_T}$ac_ct_CC" >&6
28025 + { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
28026 +echo "${ECHO_T}$ac_ct_CC" >&6; }
28027 else
28028 - echo "$as_me:$LINENO: result: no" >&5
28029 -echo "${ECHO_T}no" >&6
28030 + { echo "$as_me:$LINENO: result: no" >&5
28031 +echo "${ECHO_T}no" >&6; }
28032 fi
28033
28034 +
28035 test -n "$ac_ct_CC" && break
28036 done
28037
28038 - CC=$ac_ct_CC
28039 + if test "x$ac_ct_CC" = x; then
28040 + CC=""
28041 + else
28042 + case $cross_compiling:$ac_tool_warned in
28043 +yes:)
28044 +{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
28045 +whose name does not start with the host triplet. If you think this
28046 +configuration is useful to you, please write to autoconf@gnu.org." >&5
28047 +echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
28048 +whose name does not start with the host triplet. If you think this
28049 +configuration is useful to you, please write to autoconf@gnu.org." >&2;}
28050 +ac_tool_warned=yes ;;
28051 +esac
28052 + CC=$ac_ct_CC
28053 + fi
28054 fi
28055
28056 fi
28057 @@ -1742,21 +2273,35 @@ See \`config.log' for more details." >&2
28058 { (exit 1); exit 1; }; }
28059
28060 # Provide some information about the compiler.
28061 -echo "$as_me:$LINENO:" \
28062 - "checking for C compiler version" >&5
28063 +echo "$as_me:$LINENO: checking for C compiler version" >&5
28064 ac_compiler=`set X $ac_compile; echo $2`
28065 -{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
28066 - (eval $ac_compiler --version </dev/null >&5) 2>&5
28067 +{ (ac_try="$ac_compiler --version >&5"
28068 +case "(($ac_try" in
28069 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28070 + *) ac_try_echo=$ac_try;;
28071 +esac
28072 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28073 + (eval "$ac_compiler --version >&5") 2>&5
28074 ac_status=$?
28075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28076 (exit $ac_status); }
28077 -{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
28078 - (eval $ac_compiler -v </dev/null >&5) 2>&5
28079 +{ (ac_try="$ac_compiler -v >&5"
28080 +case "(($ac_try" in
28081 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28082 + *) ac_try_echo=$ac_try;;
28083 +esac
28084 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28085 + (eval "$ac_compiler -v >&5") 2>&5
28086 ac_status=$?
28087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28088 (exit $ac_status); }
28089 -{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
28090 - (eval $ac_compiler -V </dev/null >&5) 2>&5
28091 +{ (ac_try="$ac_compiler -V >&5"
28092 +case "(($ac_try" in
28093 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28094 + *) ac_try_echo=$ac_try;;
28095 +esac
28096 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28097 + (eval "$ac_compiler -V >&5") 2>&5
28098 ac_status=$?
28099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28100 (exit $ac_status); }
28101 @@ -1781,47 +2326,77 @@ ac_clean_files="$ac_clean_files a.out a.
28102 # Try to create an executable without -o first, disregard a.out.
28103 # It will help us diagnose broken compilers, and finding out an intuition
28104 # of exeext.
28105 -echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
28106 -echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
28107 +{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
28108 +echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
28109 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
28110 -if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
28111 - (eval $ac_link_default) 2>&5
28112 +#
28113 +# List of possible output files, starting from the most likely.
28114 +# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
28115 +# only as a last resort. b.out is created by i960 compilers.
28116 +ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
28117 +#
28118 +# The IRIX 6 linker writes into existing files which may not be
28119 +# executable, retaining their permissions. Remove them first so a
28120 +# subsequent execution test works.
28121 +ac_rmfiles=
28122 +for ac_file in $ac_files
28123 +do
28124 + case $ac_file in
28125 + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
28126 + * ) ac_rmfiles="$ac_rmfiles $ac_file";;
28127 + esac
28128 +done
28129 +rm -f $ac_rmfiles
28130 +
28131 +if { (ac_try="$ac_link_default"
28132 +case "(($ac_try" in
28133 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28134 + *) ac_try_echo=$ac_try;;
28135 +esac
28136 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28137 + (eval "$ac_link_default") 2>&5
28138 ac_status=$?
28139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28140 (exit $ac_status); }; then
28141 - # Find the output, starting from the most likely. This scheme is
28142 -# not robust to junk in `.', hence go to wildcards (a.*) only as a last
28143 -# resort.
28144 -
28145 -# Be careful to initialize this variable, since it used to be cached.
28146 -# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
28147 -ac_cv_exeext=
28148 -# b.out is created by i960 compilers.
28149 -for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
28150 + # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
28151 +# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
28152 +# in a Makefile. We should not override ac_cv_exeext if it was cached,
28153 +# so that the user can short-circuit this test for compilers unknown to
28154 +# Autoconf.
28155 +for ac_file in $ac_files ''
28156 do
28157 test -f "$ac_file" || continue
28158 case $ac_file in
28159 - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
28160 - ;;
28161 - conftest.$ac_ext )
28162 - # This is the source file.
28163 + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
28164 ;;
28165 [ab].out )
28166 # We found the default executable, but exeext='' is most
28167 # certainly right.
28168 break;;
28169 *.* )
28170 - ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
28171 - # FIXME: I believe we export ac_cv_exeext for Libtool,
28172 - # but it would be cool to find out if it's true. Does anybody
28173 - # maintain Libtool? --akim.
28174 - export ac_cv_exeext
28175 + if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
28176 + then :; else
28177 + ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
28178 + fi
28179 + # We set ac_cv_exeext here because the later test for it is not
28180 + # safe: cross compilers may not add the suffix if given an `-o'
28181 + # argument, so we may need to know it at that point already.
28182 + # Even if this section looks crufty: it has the advantage of
28183 + # actually working.
28184 break;;
28185 * )
28186 break;;
28187 esac
28188 done
28189 +test "$ac_cv_exeext" = no && ac_cv_exeext=
28190 +
28191 else
28192 + ac_file=''
28193 +fi
28194 +
28195 +{ echo "$as_me:$LINENO: result: $ac_file" >&5
28196 +echo "${ECHO_T}$ac_file" >&6; }
28197 +if test -z "$ac_file"; then
28198 echo "$as_me: failed program was:" >&5
28199 sed 's/^/| /' conftest.$ac_ext >&5
28200
28201 @@ -1833,19 +2408,21 @@ See \`config.log' for more details." >&2
28202 fi
28203
28204 ac_exeext=$ac_cv_exeext
28205 -echo "$as_me:$LINENO: result: $ac_file" >&5
28206 -echo "${ECHO_T}$ac_file" >&6
28207
28208 -# Check the compiler produces executables we can run. If not, either
28209 +# Check that the compiler produces executables we can run. If not, either
28210 # the compiler is broken, or we cross compile.
28211 -echo "$as_me:$LINENO: checking whether the C compiler works" >&5
28212 -echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
28213 +{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
28214 +echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
28215 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
28216 # If not cross compiling, check that we can run a simple program.
28217 if test "$cross_compiling" != yes; then
28218 if { ac_try='./$ac_file'
28219 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28220 - (eval $ac_try) 2>&5
28221 + { (case "(($ac_try" in
28222 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28223 + *) ac_try_echo=$ac_try;;
28224 +esac
28225 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28226 + (eval "$ac_try") 2>&5
28227 ac_status=$?
28228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28229 (exit $ac_status); }; }; then
28230 @@ -1864,22 +2441,27 @@ See \`config.log' for more details." >&2
28231 fi
28232 fi
28233 fi
28234 -echo "$as_me:$LINENO: result: yes" >&5
28235 -echo "${ECHO_T}yes" >&6
28236 +{ echo "$as_me:$LINENO: result: yes" >&5
28237 +echo "${ECHO_T}yes" >&6; }
28238
28239 rm -f a.out a.exe conftest$ac_cv_exeext b.out
28240 ac_clean_files=$ac_clean_files_save
28241 -# Check the compiler produces executables we can run. If not, either
28242 +# Check that the compiler produces executables we can run. If not, either
28243 # the compiler is broken, or we cross compile.
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 { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28252 - (eval $ac_link) 2>&5
28253 +{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
28254 +echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
28255 +{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
28256 +echo "${ECHO_T}$cross_compiling" >&6; }
28257 +
28258 +{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
28259 +echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
28260 +if { (ac_try="$ac_link"
28261 +case "(($ac_try" in
28262 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28263 + *) ac_try_echo=$ac_try;;
28264 +esac
28265 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28266 + (eval "$ac_link") 2>&5
28267 ac_status=$?
28268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28269 (exit $ac_status); }; then
28270 @@ -1890,9 +2472,8 @@ if { (eval echo "$as_me:$LINENO: \"$ac_l
28271 for ac_file in conftest.exe conftest conftest.*; do
28272 test -f "$ac_file" || continue
28273 case $ac_file in
28274 - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
28275 + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
28276 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
28277 - export ac_cv_exeext
28278 break;;
28279 * ) break;;
28280 esac
28281 @@ -1906,14 +2487,14 @@ See \`config.log' for more details." >&2
28282 fi
28283
28284 rm -f conftest$ac_cv_exeext
28285 -echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
28286 -echo "${ECHO_T}$ac_cv_exeext" >&6
28287 +{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
28288 +echo "${ECHO_T}$ac_cv_exeext" >&6; }
28289
28290 rm -f conftest.$ac_ext
28291 EXEEXT=$ac_cv_exeext
28292 ac_exeext=$EXEEXT
28293 -echo "$as_me:$LINENO: checking for suffix of object files" >&5
28294 -echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
28295 +{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
28296 +echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
28297 if test "${ac_cv_objext+set}" = set; then
28298 echo $ECHO_N "(cached) $ECHO_C" >&6
28299 else
28300 @@ -1933,14 +2514,20 @@ main ()
28301 }
28302 _ACEOF
28303 rm -f conftest.o conftest.obj
28304 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28305 - (eval $ac_compile) 2>&5
28306 +if { (ac_try="$ac_compile"
28307 +case "(($ac_try" in
28308 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28309 + *) ac_try_echo=$ac_try;;
28310 +esac
28311 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28312 + (eval "$ac_compile") 2>&5
28313 ac_status=$?
28314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28315 (exit $ac_status); }; then
28316 - for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
28317 + for ac_file in conftest.o conftest.obj conftest.*; do
28318 + test -f "$ac_file" || continue;
28319 case $ac_file in
28320 - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
28321 + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
28322 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
28323 break;;
28324 esac
28325 @@ -1958,12 +2545,12 @@ fi
28326
28327 rm -f conftest.$ac_cv_objext conftest.$ac_ext
28328 fi
28329 -echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
28330 -echo "${ECHO_T}$ac_cv_objext" >&6
28331 +{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
28332 +echo "${ECHO_T}$ac_cv_objext" >&6; }
28333 OBJEXT=$ac_cv_objext
28334 ac_objext=$OBJEXT
28335 -echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
28336 -echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
28337 +{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
28338 +echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
28339 if test "${ac_cv_c_compiler_gnu+set}" = set; then
28340 echo $ECHO_N "(cached) $ECHO_C" >&6
28341 else
28342 @@ -1986,50 +2573,49 @@ main ()
28343 }
28344 _ACEOF
28345 rm -f conftest.$ac_objext
28346 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28347 - (eval $ac_compile) 2>conftest.er1
28348 +if { (ac_try="$ac_compile"
28349 +case "(($ac_try" in
28350 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28351 + *) ac_try_echo=$ac_try;;
28352 +esac
28353 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28354 + (eval "$ac_compile") 2>conftest.er1
28355 ac_status=$?
28356 grep -v '^ *+' conftest.er1 >conftest.err
28357 rm -f conftest.er1
28358 cat conftest.err >&5
28359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28360 - (exit $ac_status); } &&
28361 - { ac_try='test -z "$ac_c_werror_flag"
28362 - || test ! -s conftest.err'
28363 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28364 - (eval $ac_try) 2>&5
28365 - ac_status=$?
28366 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
28367 - (exit $ac_status); }; } &&
28368 - { ac_try='test -s conftest.$ac_objext'
28369 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28370 - (eval $ac_try) 2>&5
28371 - ac_status=$?
28372 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
28373 - (exit $ac_status); }; }; then
28374 + (exit $ac_status); } && {
28375 + test -z "$ac_c_werror_flag" ||
28376 + test ! -s conftest.err
28377 + } && test -s conftest.$ac_objext; then
28378 ac_compiler_gnu=yes
28379 else
28380 echo "$as_me: failed program was:" >&5
28381 sed 's/^/| /' conftest.$ac_ext >&5
28382
28383 -ac_compiler_gnu=no
28384 + ac_compiler_gnu=no
28385 fi
28386 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28387 +
28388 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28389 ac_cv_c_compiler_gnu=$ac_compiler_gnu
28390
28391 fi
28392 -echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
28393 -echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
28394 +{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
28395 +echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
28396 GCC=`test $ac_compiler_gnu = yes && echo yes`
28397 ac_test_CFLAGS=${CFLAGS+set}
28398 ac_save_CFLAGS=$CFLAGS
28399 -CFLAGS="-g"
28400 -echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
28401 -echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
28402 +{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
28403 +echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
28404 if test "${ac_cv_prog_cc_g+set}" = set; then
28405 echo $ECHO_N "(cached) $ECHO_C" >&6
28406 else
28407 - cat >conftest.$ac_ext <<_ACEOF
28408 + ac_save_c_werror_flag=$ac_c_werror_flag
28409 + ac_c_werror_flag=yes
28410 + ac_cv_prog_cc_g=no
28411 + CFLAGS="-g"
28412 + cat >conftest.$ac_ext <<_ACEOF
28413 /* confdefs.h. */
28414 _ACEOF
28415 cat confdefs.h >>conftest.$ac_ext
28416 @@ -2045,38 +2631,118 @@ main ()
28417 }
28418 _ACEOF
28419 rm -f conftest.$ac_objext
28420 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28421 - (eval $ac_compile) 2>conftest.er1
28422 +if { (ac_try="$ac_compile"
28423 +case "(($ac_try" in
28424 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28425 + *) ac_try_echo=$ac_try;;
28426 +esac
28427 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28428 + (eval "$ac_compile") 2>conftest.er1
28429 ac_status=$?
28430 grep -v '^ *+' conftest.er1 >conftest.err
28431 rm -f conftest.er1
28432 cat conftest.err >&5
28433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28434 - (exit $ac_status); } &&
28435 - { ac_try='test -z "$ac_c_werror_flag"
28436 - || test ! -s conftest.err'
28437 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28438 - (eval $ac_try) 2>&5
28439 + (exit $ac_status); } && {
28440 + test -z "$ac_c_werror_flag" ||
28441 + test ! -s conftest.err
28442 + } && test -s conftest.$ac_objext; then
28443 + ac_cv_prog_cc_g=yes
28444 +else
28445 + echo "$as_me: failed program was:" >&5
28446 +sed 's/^/| /' conftest.$ac_ext >&5
28447 +
28448 + CFLAGS=""
28449 + cat >conftest.$ac_ext <<_ACEOF
28450 +/* confdefs.h. */
28451 +_ACEOF
28452 +cat confdefs.h >>conftest.$ac_ext
28453 +cat >>conftest.$ac_ext <<_ACEOF
28454 +/* end confdefs.h. */
28455 +
28456 +int
28457 +main ()
28458 +{
28459 +
28460 + ;
28461 + return 0;
28462 +}
28463 +_ACEOF
28464 +rm -f conftest.$ac_objext
28465 +if { (ac_try="$ac_compile"
28466 +case "(($ac_try" in
28467 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28468 + *) ac_try_echo=$ac_try;;
28469 +esac
28470 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28471 + (eval "$ac_compile") 2>conftest.er1
28472 ac_status=$?
28473 + grep -v '^ *+' conftest.er1 >conftest.err
28474 + rm -f conftest.er1
28475 + cat conftest.err >&5
28476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28477 - (exit $ac_status); }; } &&
28478 - { ac_try='test -s conftest.$ac_objext'
28479 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28480 - (eval $ac_try) 2>&5
28481 + (exit $ac_status); } && {
28482 + test -z "$ac_c_werror_flag" ||
28483 + test ! -s conftest.err
28484 + } && test -s conftest.$ac_objext; then
28485 + :
28486 +else
28487 + echo "$as_me: failed program was:" >&5
28488 +sed 's/^/| /' conftest.$ac_ext >&5
28489 +
28490 + ac_c_werror_flag=$ac_save_c_werror_flag
28491 + CFLAGS="-g"
28492 + cat >conftest.$ac_ext <<_ACEOF
28493 +/* confdefs.h. */
28494 +_ACEOF
28495 +cat confdefs.h >>conftest.$ac_ext
28496 +cat >>conftest.$ac_ext <<_ACEOF
28497 +/* end confdefs.h. */
28498 +
28499 +int
28500 +main ()
28501 +{
28502 +
28503 + ;
28504 + return 0;
28505 +}
28506 +_ACEOF
28507 +rm -f conftest.$ac_objext
28508 +if { (ac_try="$ac_compile"
28509 +case "(($ac_try" in
28510 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28511 + *) ac_try_echo=$ac_try;;
28512 +esac
28513 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28514 + (eval "$ac_compile") 2>conftest.er1
28515 ac_status=$?
28516 + grep -v '^ *+' conftest.er1 >conftest.err
28517 + rm -f conftest.er1
28518 + cat conftest.err >&5
28519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28520 - (exit $ac_status); }; }; then
28521 + (exit $ac_status); } && {
28522 + test -z "$ac_c_werror_flag" ||
28523 + test ! -s conftest.err
28524 + } && test -s conftest.$ac_objext; then
28525 ac_cv_prog_cc_g=yes
28526 else
28527 echo "$as_me: failed program was:" >&5
28528 sed 's/^/| /' conftest.$ac_ext >&5
28529
28530 -ac_cv_prog_cc_g=no
28531 +
28532 +fi
28533 +
28534 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28535 +fi
28536 +
28537 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28538 fi
28539 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28540 +
28541 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28542 + ac_c_werror_flag=$ac_save_c_werror_flag
28543 fi
28544 -echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
28545 -echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
28546 +{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
28547 +echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
28548 if test "$ac_test_CFLAGS" = set; then
28549 CFLAGS=$ac_save_CFLAGS
28550 elif test $ac_cv_prog_cc_g = yes; then
28551 @@ -2092,12 +2758,12 @@ else
28552 CFLAGS=
28553 fi
28554 fi
28555 -echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
28556 -echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
28557 -if test "${ac_cv_prog_cc_stdc+set}" = set; then
28558 +{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
28559 +echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
28560 +if test "${ac_cv_prog_cc_c89+set}" = set; then
28561 echo $ECHO_N "(cached) $ECHO_C" >&6
28562 else
28563 - ac_cv_prog_cc_stdc=no
28564 + ac_cv_prog_cc_c89=no
28565 ac_save_CC=$CC
28566 cat >conftest.$ac_ext <<_ACEOF
28567 /* confdefs.h. */
28568 @@ -2131,12 +2797,17 @@ static char *f (char * (*g) (char **, in
28569 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
28570 function prototypes and stuff, but not '\xHH' hex character constants.
28571 These don't provoke an error unfortunately, instead are silently treated
28572 - as 'x'. The following induces an error, until -std1 is added to get
28573 + as 'x'. The following induces an error, until -std is added to get
28574 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
28575 array size at least. It's necessary to write '\x00'==0 to get something
28576 - that's true only with -std1. */
28577 + that's true only with -std. */
28578 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
28579
28580 +/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
28581 + inside strings and character constants. */
28582 +#define FOO(x) 'x'
28583 +int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
28584 +
28585 int test (int i, double x);
28586 struct s1 {int (*f) (int a);};
28587 struct s2 {int (*f) (double a);};
28588 @@ -2151,335 +2822,144 @@ return f (e, argv, 0) != argv[0] || f
28589 return 0;
28590 }
28591 _ACEOF
28592 -# Don't try gcc -ansi; that turns off useful extensions and
28593 -# breaks some systems' header files.
28594 -# AIX -qlanglvl=ansi
28595 -# Ultrix and OSF/1 -std1
28596 -# HP-UX 10.20 and later -Ae
28597 -# HP-UX older versions -Aa -D_HPUX_SOURCE
28598 -# SVR4 -Xc -D__EXTENSIONS__
28599 -for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
28600 +for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
28601 + -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
28602 do
28603 CC="$ac_save_CC $ac_arg"
28604 rm -f conftest.$ac_objext
28605 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28606 - (eval $ac_compile) 2>conftest.er1
28607 +if { (ac_try="$ac_compile"
28608 +case "(($ac_try" in
28609 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28610 + *) ac_try_echo=$ac_try;;
28611 +esac
28612 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28613 + (eval "$ac_compile") 2>conftest.er1
28614 ac_status=$?
28615 grep -v '^ *+' conftest.er1 >conftest.err
28616 rm -f conftest.er1
28617 cat conftest.err >&5
28618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28619 - (exit $ac_status); } &&
28620 - { ac_try='test -z "$ac_c_werror_flag"
28621 - || test ! -s conftest.err'
28622 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28623 - (eval $ac_try) 2>&5
28624 - ac_status=$?
28625 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
28626 - (exit $ac_status); }; } &&
28627 - { ac_try='test -s conftest.$ac_objext'
28628 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28629 - (eval $ac_try) 2>&5
28630 - ac_status=$?
28631 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
28632 - (exit $ac_status); }; }; then
28633 - ac_cv_prog_cc_stdc=$ac_arg
28634 -break
28635 + (exit $ac_status); } && {
28636 + test -z "$ac_c_werror_flag" ||
28637 + test ! -s conftest.err
28638 + } && test -s conftest.$ac_objext; then
28639 + ac_cv_prog_cc_c89=$ac_arg
28640 else
28641 echo "$as_me: failed program was:" >&5
28642 sed 's/^/| /' conftest.$ac_ext >&5
28643
28644 +
28645 fi
28646 -rm -f conftest.err conftest.$ac_objext
28647 +
28648 +rm -f core conftest.err conftest.$ac_objext
28649 + test "x$ac_cv_prog_cc_c89" != "xno" && break
28650 done
28651 -rm -f conftest.$ac_ext conftest.$ac_objext
28652 +rm -f conftest.$ac_ext
28653 CC=$ac_save_CC
28654
28655 fi
28656 -
28657 -case "x$ac_cv_prog_cc_stdc" in
28658 - x|xno)
28659 - echo "$as_me:$LINENO: result: none needed" >&5
28660 -echo "${ECHO_T}none needed" >&6 ;;
28661 +# AC_CACHE_VAL
28662 +case "x$ac_cv_prog_cc_c89" in
28663 + x)
28664 + { echo "$as_me:$LINENO: result: none needed" >&5
28665 +echo "${ECHO_T}none needed" >&6; } ;;
28666 + xno)
28667 + { echo "$as_me:$LINENO: result: unsupported" >&5
28668 +echo "${ECHO_T}unsupported" >&6; } ;;
28669 *)
28670 - echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
28671 -echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
28672 - CC="$CC $ac_cv_prog_cc_stdc" ;;
28673 + CC="$CC $ac_cv_prog_cc_c89"
28674 + { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
28675 +echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
28676 esac
28677
28678 -# Some people use a C++ compiler to compile C. Since we use `exit',
28679 -# in C++ we need to declare it. In case someone uses the same compiler
28680 -# for both compiling C and C++ we need to have the C++ compiler decide
28681 -# the declaration of exit, since it's the most demanding environment.
28682 +
28683 +ac_ext=c
28684 +ac_cpp='$CPP $CPPFLAGS'
28685 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28686 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28687 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
28688 +
28689 +
28690 +{ echo "$as_me:$LINENO: checking for library containing strerror" >&5
28691 +echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; }
28692 +if test "${ac_cv_search_strerror+set}" = set; then
28693 + echo $ECHO_N "(cached) $ECHO_C" >&6
28694 +else
28695 + ac_func_search_save_LIBS=$LIBS
28696 cat >conftest.$ac_ext <<_ACEOF
28697 -#ifndef __cplusplus
28698 - choke me
28699 -#endif
28700 -_ACEOF
28701 -rm -f conftest.$ac_objext
28702 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28703 - (eval $ac_compile) 2>conftest.er1
28704 - ac_status=$?
28705 - grep -v '^ *+' conftest.er1 >conftest.err
28706 - rm -f conftest.er1
28707 - cat conftest.err >&5
28708 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
28709 - (exit $ac_status); } &&
28710 - { ac_try='test -z "$ac_c_werror_flag"
28711 - || test ! -s conftest.err'
28712 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28713 - (eval $ac_try) 2>&5
28714 - ac_status=$?
28715 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
28716 - (exit $ac_status); }; } &&
28717 - { ac_try='test -s conftest.$ac_objext'
28718 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28719 - (eval $ac_try) 2>&5
28720 - ac_status=$?
28721 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
28722 - (exit $ac_status); }; }; then
28723 - for ac_declaration in \
28724 - '' \
28725 - 'extern "C" void std::exit (int) throw (); using std::exit;' \
28726 - 'extern "C" void std::exit (int); using std::exit;' \
28727 - 'extern "C" void exit (int) throw ();' \
28728 - 'extern "C" void exit (int);' \
28729 - 'void exit (int);'
28730 -do
28731 - cat >conftest.$ac_ext <<_ACEOF
28732 /* confdefs.h. */
28733 _ACEOF
28734 cat confdefs.h >>conftest.$ac_ext
28735 cat >>conftest.$ac_ext <<_ACEOF
28736 /* end confdefs.h. */
28737 -$ac_declaration
28738 -#include <stdlib.h>
28739 +
28740 +/* Override any GCC internal prototype to avoid an error.
28741 + Use char because int might match the return type of a GCC
28742 + builtin and then its argument prototype would still apply. */
28743 +#ifdef __cplusplus
28744 +extern "C"
28745 +#endif
28746 +char strerror ();
28747 int
28748 main ()
28749 {
28750 -exit (42);
28751 +return strerror ();
28752 ;
28753 return 0;
28754 }
28755 _ACEOF
28756 -rm -f conftest.$ac_objext
28757 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28758 - (eval $ac_compile) 2>conftest.er1
28759 +for ac_lib in '' cposix; do
28760 + if test -z "$ac_lib"; then
28761 + ac_res="none required"
28762 + else
28763 + ac_res=-l$ac_lib
28764 + LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28765 + fi
28766 + rm -f conftest.$ac_objext conftest$ac_exeext
28767 +if { (ac_try="$ac_link"
28768 +case "(($ac_try" in
28769 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28770 + *) ac_try_echo=$ac_try;;
28771 +esac
28772 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28773 + (eval "$ac_link") 2>conftest.er1
28774 ac_status=$?
28775 grep -v '^ *+' conftest.er1 >conftest.err
28776 rm -f conftest.er1
28777 cat conftest.err >&5
28778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28779 - (exit $ac_status); } &&
28780 - { ac_try='test -z "$ac_c_werror_flag"
28781 - || test ! -s conftest.err'
28782 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28783 - (eval $ac_try) 2>&5
28784 - ac_status=$?
28785 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
28786 - (exit $ac_status); }; } &&
28787 - { ac_try='test -s conftest.$ac_objext'
28788 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28789 - (eval $ac_try) 2>&5
28790 - ac_status=$?
28791 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
28792 - (exit $ac_status); }; }; then
28793 - :
28794 + (exit $ac_status); } && {
28795 + test -z "$ac_c_werror_flag" ||
28796 + test ! -s conftest.err
28797 + } && test -s conftest$ac_exeext &&
28798 + $as_test_x conftest$ac_exeext; then
28799 + ac_cv_search_strerror=$ac_res
28800 else
28801 echo "$as_me: failed program was:" >&5
28802 sed 's/^/| /' conftest.$ac_ext >&5
28803
28804 -continue
28805 -fi
28806 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28807 - cat >conftest.$ac_ext <<_ACEOF
28808 -/* confdefs.h. */
28809 -_ACEOF
28810 -cat confdefs.h >>conftest.$ac_ext
28811 -cat >>conftest.$ac_ext <<_ACEOF
28812 -/* end confdefs.h. */
28813 -$ac_declaration
28814 -int
28815 -main ()
28816 -{
28817 -exit (42);
28818 - ;
28819 - return 0;
28820 -}
28821 -_ACEOF
28822 -rm -f conftest.$ac_objext
28823 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28824 - (eval $ac_compile) 2>conftest.er1
28825 - ac_status=$?
28826 - grep -v '^ *+' conftest.er1 >conftest.err
28827 - rm -f conftest.er1
28828 - cat conftest.err >&5
28829 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
28830 - (exit $ac_status); } &&
28831 - { ac_try='test -z "$ac_c_werror_flag"
28832 - || test ! -s conftest.err'
28833 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28834 - (eval $ac_try) 2>&5
28835 - ac_status=$?
28836 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
28837 - (exit $ac_status); }; } &&
28838 - { ac_try='test -s conftest.$ac_objext'
28839 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28840 - (eval $ac_try) 2>&5
28841 - ac_status=$?
28842 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
28843 - (exit $ac_status); }; }; then
28844 - break
28845 -else
28846 - echo "$as_me: failed program was:" >&5
28847 -sed 's/^/| /' conftest.$ac_ext >&5
28848
28849 fi
28850 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28851 -done
28852 -rm -f conftest*
28853 -if test -n "$ac_declaration"; then
28854 - echo '#ifdef __cplusplus' >>confdefs.h
28855 - echo $ac_declaration >>confdefs.h
28856 - echo '#endif' >>confdefs.h
28857 -fi
28858 -
28859 -else
28860 - echo "$as_me: failed program was:" >&5
28861 -sed 's/^/| /' conftest.$ac_ext >&5
28862
28863 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28864 + conftest$ac_exeext
28865 + if test "${ac_cv_search_strerror+set}" = set; then
28866 + break
28867 fi
28868 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28869 -ac_ext=c
28870 -ac_cpp='$CPP $CPPFLAGS'
28871 -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28872 -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28873 -ac_compiler_gnu=$ac_cv_c_compiler_gnu
28874 -
28875 -
28876 -echo "$as_me:$LINENO: checking for library containing strerror" >&5
28877 -echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
28878 +done
28879 if test "${ac_cv_search_strerror+set}" = set; then
28880 - echo $ECHO_N "(cached) $ECHO_C" >&6
28881 -else
28882 - ac_func_search_save_LIBS=$LIBS
28883 -ac_cv_search_strerror=no
28884 -cat >conftest.$ac_ext <<_ACEOF
28885 -/* confdefs.h. */
28886 -_ACEOF
28887 -cat confdefs.h >>conftest.$ac_ext
28888 -cat >>conftest.$ac_ext <<_ACEOF
28889 -/* end confdefs.h. */
28890 -
28891 -/* Override any gcc2 internal prototype to avoid an error. */
28892 -#ifdef __cplusplus
28893 -extern "C"
28894 -#endif
28895 -/* We use char because int might match the return type of a gcc2
28896 - builtin and then its argument prototype would still apply. */
28897 -char strerror ();
28898 -int
28899 -main ()
28900 -{
28901 -strerror ();
28902 - ;
28903 - return 0;
28904 -}
28905 -_ACEOF
28906 -rm -f conftest.$ac_objext conftest$ac_exeext
28907 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28908 - (eval $ac_link) 2>conftest.er1
28909 - ac_status=$?
28910 - grep -v '^ *+' conftest.er1 >conftest.err
28911 - rm -f conftest.er1
28912 - cat conftest.err >&5
28913 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
28914 - (exit $ac_status); } &&
28915 - { ac_try='test -z "$ac_c_werror_flag"
28916 - || test ! -s conftest.err'
28917 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28918 - (eval $ac_try) 2>&5
28919 - ac_status=$?
28920 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
28921 - (exit $ac_status); }; } &&
28922 - { ac_try='test -s conftest$ac_exeext'
28923 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28924 - (eval $ac_try) 2>&5
28925 - ac_status=$?
28926 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
28927 - (exit $ac_status); }; }; then
28928 - ac_cv_search_strerror="none required"
28929 -else
28930 - echo "$as_me: failed program was:" >&5
28931 -sed 's/^/| /' conftest.$ac_ext >&5
28932 -
28933 -fi
28934 -rm -f conftest.err conftest.$ac_objext \
28935 - conftest$ac_exeext conftest.$ac_ext
28936 -if test "$ac_cv_search_strerror" = no; then
28937 - for ac_lib in cposix; do
28938 - LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28939 - cat >conftest.$ac_ext <<_ACEOF
28940 -/* confdefs.h. */
28941 -_ACEOF
28942 -cat confdefs.h >>conftest.$ac_ext
28943 -cat >>conftest.$ac_ext <<_ACEOF
28944 -/* end confdefs.h. */
28945 -
28946 -/* Override any gcc2 internal prototype to avoid an error. */
28947 -#ifdef __cplusplus
28948 -extern "C"
28949 -#endif
28950 -/* We use char because int might match the return type of a gcc2
28951 - builtin and then its argument prototype would still apply. */
28952 -char strerror ();
28953 -int
28954 -main ()
28955 -{
28956 -strerror ();
28957 - ;
28958 - return 0;
28959 -}
28960 -_ACEOF
28961 -rm -f conftest.$ac_objext conftest$ac_exeext
28962 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28963 - (eval $ac_link) 2>conftest.er1
28964 - ac_status=$?
28965 - grep -v '^ *+' conftest.er1 >conftest.err
28966 - rm -f conftest.er1
28967 - cat conftest.err >&5
28968 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
28969 - (exit $ac_status); } &&
28970 - { ac_try='test -z "$ac_c_werror_flag"
28971 - || test ! -s conftest.err'
28972 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28973 - (eval $ac_try) 2>&5
28974 - ac_status=$?
28975 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
28976 - (exit $ac_status); }; } &&
28977 - { ac_try='test -s conftest$ac_exeext'
28978 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28979 - (eval $ac_try) 2>&5
28980 - ac_status=$?
28981 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
28982 - (exit $ac_status); }; }; then
28983 - ac_cv_search_strerror="-l$ac_lib"
28984 -break
28985 + :
28986 else
28987 - echo "$as_me: failed program was:" >&5
28988 -sed 's/^/| /' conftest.$ac_ext >&5
28989 -
28990 -fi
28991 -rm -f conftest.err conftest.$ac_objext \
28992 - conftest$ac_exeext conftest.$ac_ext
28993 - done
28994 + ac_cv_search_strerror=no
28995 fi
28996 +rm conftest.$ac_ext
28997 LIBS=$ac_func_search_save_LIBS
28998 fi
28999 -echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
29000 -echo "${ECHO_T}$ac_cv_search_strerror" >&6
29001 -if test "$ac_cv_search_strerror" != no; then
29002 - test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
29003 +{ echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
29004 +echo "${ECHO_T}$ac_cv_search_strerror" >&6; }
29005 +ac_res=$ac_cv_search_strerror
29006 +if test "$ac_res" != no; then
29007 + test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29008
29009 fi
29010
29011 @@ -2499,8 +2979,8 @@ am__api_version="1.9"
29012 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
29013 # OS/2's system install, which has a completely different semantic
29014 # ./install, which can be erroneously created by make from ./install.sh.
29015 -echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
29016 -echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
29017 +{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
29018 +echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
29019 if test -z "$INSTALL"; then
29020 if test "${ac_cv_path_install+set}" = set; then
29021 echo $ECHO_N "(cached) $ECHO_C" >&6
29022 @@ -2522,7 +3002,7 @@ case $as_dir/ in
29023 # by default.
29024 for ac_prog in ginstall scoinst install; do
29025 for ac_exec_ext in '' $ac_executable_extensions; do
29026 - if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
29027 + if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
29028 if test $ac_prog = install &&
29029 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
29030 # AIX install. It has an incompatible calling convention.
29031 @@ -2541,21 +3021,22 @@ case $as_dir/ in
29032 ;;
29033 esac
29034 done
29035 +IFS=$as_save_IFS
29036
29037
29038 fi
29039 if test "${ac_cv_path_install+set}" = set; then
29040 INSTALL=$ac_cv_path_install
29041 else
29042 - # As a last resort, use the slow shell script. We don't cache a
29043 - # path for INSTALL within a source directory, because that will
29044 + # As a last resort, use the slow shell script. Don't cache a
29045 + # value for INSTALL within a source directory, because that will
29046 # break other packages using the cache if that directory is
29047 - # removed, or if the path is relative.
29048 + # removed, or if the value is a relative name.
29049 INSTALL=$ac_install_sh
29050 fi
29051 fi
29052 -echo "$as_me:$LINENO: result: $INSTALL" >&5
29053 -echo "${ECHO_T}$INSTALL" >&6
29054 +{ echo "$as_me:$LINENO: result: $INSTALL" >&5
29055 +echo "${ECHO_T}$INSTALL" >&6; }
29056
29057 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
29058 # It thinks the first close brace ends the variable substitution.
29059 @@ -2565,8 +3046,8 @@ test -z "$INSTALL_SCRIPT" && INSTALL_SCR
29060
29061 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
29062
29063 -echo "$as_me:$LINENO: checking whether build environment is sane" >&5
29064 -echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
29065 +{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5
29066 +echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
29067 # Just in case
29068 sleep 1
29069 echo timestamp > conftest.file
29070 @@ -2608,20 +3089,20 @@ echo "$as_me: error: newly created file
29071 Check your system clock" >&2;}
29072 { (exit 1); exit 1; }; }
29073 fi
29074 -echo "$as_me:$LINENO: result: yes" >&5
29075 -echo "${ECHO_T}yes" >&6
29076 +{ echo "$as_me:$LINENO: result: yes" >&5
29077 +echo "${ECHO_T}yes" >&6; }
29078 test "$program_prefix" != NONE &&
29079 - program_transform_name="s,^,$program_prefix,;$program_transform_name"
29080 + program_transform_name="s&^&$program_prefix&;$program_transform_name"
29081 # Use a double $ so make ignores it.
29082 test "$program_suffix" != NONE &&
29083 - program_transform_name="s,\$,$program_suffix,;$program_transform_name"
29084 + program_transform_name="s&\$&$program_suffix&;$program_transform_name"
29085 # Double any \ or $. echo might interpret backslashes.
29086 # By default was `s,x,x', remove it if useless.
29087 cat <<\_ACEOF >conftest.sed
29088 s/[\\$]/&&/g;s/;s,x,x,$//
29089 _ACEOF
29090 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
29091 -rm conftest.sed
29092 +rm -f conftest.sed
29093
29094 # expand $ac_aux_dir to an absolute path
29095 am_aux_dir=`cd $ac_aux_dir && pwd`
29096 @@ -2673,8 +3154,8 @@ for ac_prog in gawk mawk nawk awk
29097 do
29098 # Extract the first word of "$ac_prog", so it can be a program name with args.
29099 set dummy $ac_prog; ac_word=$2
29100 -echo "$as_me:$LINENO: checking for $ac_word" >&5
29101 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
29102 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
29103 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
29104 if test "${ac_cv_prog_AWK+set}" = set; then
29105 echo $ECHO_N "(cached) $ECHO_C" >&6
29106 else
29107 @@ -2687,54 +3168,57 @@ do
29108 IFS=$as_save_IFS
29109 test -z "$as_dir" && as_dir=.
29110 for ac_exec_ext in '' $ac_executable_extensions; do
29111 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29112 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29113 ac_cv_prog_AWK="$ac_prog"
29114 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29115 break 2
29116 fi
29117 done
29118 done
29119 +IFS=$as_save_IFS
29120
29121 fi
29122 fi
29123 AWK=$ac_cv_prog_AWK
29124 if test -n "$AWK"; then
29125 - echo "$as_me:$LINENO: result: $AWK" >&5
29126 -echo "${ECHO_T}$AWK" >&6
29127 + { echo "$as_me:$LINENO: result: $AWK" >&5
29128 +echo "${ECHO_T}$AWK" >&6; }
29129 else
29130 - echo "$as_me:$LINENO: result: no" >&5
29131 -echo "${ECHO_T}no" >&6
29132 + { echo "$as_me:$LINENO: result: no" >&5
29133 +echo "${ECHO_T}no" >&6; }
29134 fi
29135
29136 +
29137 test -n "$AWK" && break
29138 done
29139
29140 -echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
29141 -echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
29142 -set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
29143 -if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
29144 +{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
29145 +echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
29146 +set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
29147 +if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
29148 echo $ECHO_N "(cached) $ECHO_C" >&6
29149 else
29150 cat >conftest.make <<\_ACEOF
29151 +SHELL = /bin/sh
29152 all:
29153 - @echo 'ac_maketemp="$(MAKE)"'
29154 + @echo '@@@%%%=$(MAKE)=@@@%%%'
29155 _ACEOF
29156 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
29157 -eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
29158 -if test -n "$ac_maketemp"; then
29159 - eval ac_cv_prog_make_${ac_make}_set=yes
29160 -else
29161 - eval ac_cv_prog_make_${ac_make}_set=no
29162 -fi
29163 +case `${MAKE-make} -f conftest.make 2>/dev/null` in
29164 + *@@@%%%=?*=@@@%%%*)
29165 + eval ac_cv_prog_make_${ac_make}_set=yes;;
29166 + *)
29167 + eval ac_cv_prog_make_${ac_make}_set=no;;
29168 +esac
29169 rm -f conftest.make
29170 fi
29171 -if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
29172 - echo "$as_me:$LINENO: result: yes" >&5
29173 -echo "${ECHO_T}yes" >&6
29174 +if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
29175 + { echo "$as_me:$LINENO: result: yes" >&5
29176 +echo "${ECHO_T}yes" >&6; }
29177 SET_MAKE=
29178 else
29179 - echo "$as_me:$LINENO: result: no" >&5
29180 -echo "${ECHO_T}no" >&6
29181 + { echo "$as_me:$LINENO: result: no" >&5
29182 +echo "${ECHO_T}no" >&6; }
29183 SET_MAKE="MAKE=${MAKE-make}"
29184 fi
29185
29186 @@ -2749,7 +3233,7 @@ rmdir .tst 2>/dev/null
29187
29188 DEPDIR="${am__leading_dot}deps"
29189
29190 - ac_config_commands="$ac_config_commands depfiles"
29191 +ac_config_commands="$ac_config_commands depfiles"
29192
29193
29194 am_make=${MAKE-make}
29195 @@ -2759,8 +3243,8 @@ am__doit:
29196 .PHONY: am__doit
29197 END
29198 # If we don't find an include directive, just comment out the code.
29199 -echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
29200 -echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
29201 +{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
29202 +echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
29203 am__include="#"
29204 am__quote=
29205 _am_result=none
29206 @@ -2787,15 +3271,15 @@ if test "$am__include" = "#"; then
29207 fi
29208
29209
29210 -echo "$as_me:$LINENO: result: $_am_result" >&5
29211 -echo "${ECHO_T}$_am_result" >&6
29212 +{ echo "$as_me:$LINENO: result: $_am_result" >&5
29213 +echo "${ECHO_T}$_am_result" >&6; }
29214 rm -f confinc confmf
29215
29216 -# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
29217 +# Check whether --enable-dependency-tracking was given.
29218 if test "${enable_dependency_tracking+set}" = set; then
29219 - enableval="$enable_dependency_tracking"
29220 + enableval=$enable_dependency_tracking;
29221 +fi
29222
29223 -fi;
29224 if test "x$enable_dependency_tracking" != xno; then
29225 am_depcomp="$ac_aux_dir/depcomp"
29226 AMDEPBACKSLASH='\'
29227 @@ -2870,8 +3354,8 @@ if test "$cross_compiling" != no; then
29228 if test -n "$ac_tool_prefix"; then
29229 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
29230 set dummy ${ac_tool_prefix}strip; ac_word=$2
29231 -echo "$as_me:$LINENO: checking for $ac_word" >&5
29232 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
29233 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
29234 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
29235 if test "${ac_cv_prog_STRIP+set}" = set; then
29236 echo $ECHO_N "(cached) $ECHO_C" >&6
29237 else
29238 @@ -2884,32 +3368,34 @@ do
29239 IFS=$as_save_IFS
29240 test -z "$as_dir" && as_dir=.
29241 for ac_exec_ext in '' $ac_executable_extensions; do
29242 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29243 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29244 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
29245 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29246 break 2
29247 fi
29248 done
29249 done
29250 +IFS=$as_save_IFS
29251
29252 fi
29253 fi
29254 STRIP=$ac_cv_prog_STRIP
29255 if test -n "$STRIP"; then
29256 - echo "$as_me:$LINENO: result: $STRIP" >&5
29257 -echo "${ECHO_T}$STRIP" >&6
29258 + { echo "$as_me:$LINENO: result: $STRIP" >&5
29259 +echo "${ECHO_T}$STRIP" >&6; }
29260 else
29261 - echo "$as_me:$LINENO: result: no" >&5
29262 -echo "${ECHO_T}no" >&6
29263 + { echo "$as_me:$LINENO: result: no" >&5
29264 +echo "${ECHO_T}no" >&6; }
29265 fi
29266
29267 +
29268 fi
29269 if test -z "$ac_cv_prog_STRIP"; then
29270 ac_ct_STRIP=$STRIP
29271 # Extract the first word of "strip", so it can be a program name with args.
29272 set dummy strip; ac_word=$2
29273 -echo "$as_me:$LINENO: checking for $ac_word" >&5
29274 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
29275 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
29276 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
29277 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
29278 echo $ECHO_N "(cached) $ECHO_C" >&6
29279 else
29280 @@ -2922,27 +3408,41 @@ do
29281 IFS=$as_save_IFS
29282 test -z "$as_dir" && as_dir=.
29283 for ac_exec_ext in '' $ac_executable_extensions; do
29284 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29285 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29286 ac_cv_prog_ac_ct_STRIP="strip"
29287 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29288 break 2
29289 fi
29290 done
29291 done
29292 +IFS=$as_save_IFS
29293
29294 - test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
29295 fi
29296 fi
29297 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
29298 if test -n "$ac_ct_STRIP"; then
29299 - echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
29300 -echo "${ECHO_T}$ac_ct_STRIP" >&6
29301 + { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
29302 +echo "${ECHO_T}$ac_ct_STRIP" >&6; }
29303 else
29304 - echo "$as_me:$LINENO: result: no" >&5
29305 -echo "${ECHO_T}no" >&6
29306 + { echo "$as_me:$LINENO: result: no" >&5
29307 +echo "${ECHO_T}no" >&6; }
29308 fi
29309
29310 - STRIP=$ac_ct_STRIP
29311 + if test "x$ac_ct_STRIP" = x; then
29312 + STRIP=":"
29313 + else
29314 + case $cross_compiling:$ac_tool_warned in
29315 +yes:)
29316 +{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
29317 +whose name does not start with the host triplet. If you think this
29318 +configuration is useful to you, please write to autoconf@gnu.org." >&5
29319 +echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
29320 +whose name does not start with the host triplet. If you think this
29321 +configuration is useful to you, please write to autoconf@gnu.org." >&2;}
29322 +ac_tool_warned=yes ;;
29323 +esac
29324 + STRIP=$ac_ct_STRIP
29325 + fi
29326 else
29327 STRIP="$ac_cv_prog_STRIP"
29328 fi
29329 @@ -2963,8 +3463,8 @@ am__tar='${AMTAR} chof - "$$tardir"'; am
29330
29331 depcc="$CC" am_compiler_list=
29332
29333 -echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
29334 -echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
29335 +{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
29336 +echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
29337 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
29338 echo $ECHO_N "(cached) $ECHO_C" >&6
29339 else
29340 @@ -3053,8 +3553,8 @@ else
29341 fi
29342
29343 fi
29344 -echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
29345 -echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
29346 +{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
29347 +echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
29348 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
29349
29350
29351 @@ -3072,10 +3572,9 @@ fi
29352
29353
29354
29355 -# Check whether --enable-shared or --disable-shared was given.
29356 +# Check whether --enable-shared was given.
29357 if test "${enable_shared+set}" = set; then
29358 - enableval="$enable_shared"
29359 - p=${PACKAGE-default}
29360 + enableval=$enable_shared; p=${PACKAGE-default}
29361 case $enableval in
29362 yes) enable_shared=yes ;;
29363 no) enable_shared=no ;;
29364 @@ -3093,11 +3592,11 @@ no) enable_shared=no ;;
29365 esac
29366 else
29367 enable_shared=yes
29368 -fi;
29369 -# Check whether --enable-static or --disable-static was given.
29370 +fi
29371 +
29372 +# Check whether --enable-static was given.
29373 if test "${enable_static+set}" = set; then
29374 - enableval="$enable_static"
29375 - p=${PACKAGE-default}
29376 + enableval=$enable_static; p=${PACKAGE-default}
29377 case $enableval in
29378 yes) enable_static=yes ;;
29379 no) enable_static=no ;;
29380 @@ -3115,11 +3614,11 @@ no) enable_static=no ;;
29381 esac
29382 else
29383 enable_static=yes
29384 -fi;
29385 -# Check whether --enable-fast-install or --disable-fast-install was given.
29386 +fi
29387 +
29388 +# Check whether --enable-fast-install was given.
29389 if test "${enable_fast_install+set}" = set; then
29390 - enableval="$enable_fast_install"
29391 - p=${PACKAGE-default}
29392 + enableval=$enable_fast_install; p=${PACKAGE-default}
29393 case $enableval in
29394 yes) enable_fast_install=yes ;;
29395 no) enable_fast_install=no ;;
29396 @@ -3137,20 +3636,21 @@ no) enable_fast_install=no ;;
29397 esac
29398 else
29399 enable_fast_install=yes
29400 -fi;
29401 +fi
29402 +
29403
29404 -# Check whether --with-gnu-ld or --without-gnu-ld was given.
29405 +# Check whether --with-gnu-ld was given.
29406 if test "${with_gnu_ld+set}" = set; then
29407 - withval="$with_gnu_ld"
29408 - test "$withval" = no || with_gnu_ld=yes
29409 + withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
29410 else
29411 with_gnu_ld=no
29412 -fi;
29413 +fi
29414 +
29415 ac_prog=ld
29416 if test "$GCC" = yes; then
29417 # Check if gcc -print-prog-name=ld gives a path.
29418 - echo "$as_me:$LINENO: checking for ld used by GCC" >&5
29419 -echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
29420 + { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
29421 +echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
29422 case $host in
29423 *-*-mingw*)
29424 # gcc leaves a trailing carriage return which upsets mingw
29425 @@ -3179,11 +3679,11 @@ echo $ECHO_N "checking for ld used by GC
29426 ;;
29427 esac
29428 elif test "$with_gnu_ld" = yes; then
29429 - echo "$as_me:$LINENO: checking for GNU ld" >&5
29430 -echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
29431 + { echo "$as_me:$LINENO: checking for GNU ld" >&5
29432 +echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
29433 else
29434 - echo "$as_me:$LINENO: checking for non-GNU ld" >&5
29435 -echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
29436 + { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
29437 +echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
29438 fi
29439 if test "${lt_cv_path_LD+set}" = set; then
29440 echo $ECHO_N "(cached) $ECHO_C" >&6
29441 @@ -3212,17 +3712,17 @@ fi
29442
29443 LD="$lt_cv_path_LD"
29444 if test -n "$LD"; then
29445 - echo "$as_me:$LINENO: result: $LD" >&5
29446 -echo "${ECHO_T}$LD" >&6
29447 + { echo "$as_me:$LINENO: result: $LD" >&5
29448 +echo "${ECHO_T}$LD" >&6; }
29449 else
29450 - echo "$as_me:$LINENO: result: no" >&5
29451 -echo "${ECHO_T}no" >&6
29452 + { echo "$as_me:$LINENO: result: no" >&5
29453 +echo "${ECHO_T}no" >&6; }
29454 fi
29455 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
29456 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
29457 { (exit 1); exit 1; }; }
29458 -echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
29459 -echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
29460 +{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
29461 +echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
29462 if test "${lt_cv_prog_gnu_ld+set}" = set; then
29463 echo $ECHO_N "(cached) $ECHO_C" >&6
29464 else
29465 @@ -3233,25 +3733,25 @@ else
29466 lt_cv_prog_gnu_ld=no
29467 fi
29468 fi
29469 -echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
29470 -echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
29471 +{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
29472 +echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
29473 with_gnu_ld=$lt_cv_prog_gnu_ld
29474
29475
29476 -echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
29477 -echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
29478 +{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
29479 +echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
29480 if test "${lt_cv_ld_reload_flag+set}" = set; then
29481 echo $ECHO_N "(cached) $ECHO_C" >&6
29482 else
29483 lt_cv_ld_reload_flag='-r'
29484 fi
29485 -echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
29486 -echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
29487 +{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
29488 +echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
29489 reload_flag=$lt_cv_ld_reload_flag
29490 test -n "$reload_flag" && reload_flag=" $reload_flag"
29491
29492 -echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
29493 -echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
29494 +{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
29495 +echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
29496 if test "${lt_cv_path_NM+set}" = set; then
29497 echo $ECHO_N "(cached) $ECHO_C" >&6
29498 else
29499 @@ -3286,22 +3786,22 @@ fi
29500 fi
29501
29502 NM="$lt_cv_path_NM"
29503 -echo "$as_me:$LINENO: result: $NM" >&5
29504 -echo "${ECHO_T}$NM" >&6
29505 +{ echo "$as_me:$LINENO: result: $NM" >&5
29506 +echo "${ECHO_T}$NM" >&6; }
29507
29508 -echo "$as_me:$LINENO: checking whether ln -s works" >&5
29509 -echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
29510 +{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
29511 +echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
29512 LN_S=$as_ln_s
29513 if test "$LN_S" = "ln -s"; then
29514 - echo "$as_me:$LINENO: result: yes" >&5
29515 -echo "${ECHO_T}yes" >&6
29516 + { echo "$as_me:$LINENO: result: yes" >&5
29517 +echo "${ECHO_T}yes" >&6; }
29518 else
29519 - echo "$as_me:$LINENO: result: no, using $LN_S" >&5
29520 -echo "${ECHO_T}no, using $LN_S" >&6
29521 + { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
29522 +echo "${ECHO_T}no, using $LN_S" >&6; }
29523 fi
29524
29525 -echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
29526 -echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
29527 +{ echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
29528 +echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6; }
29529 if test "${lt_cv_deplibs_check_method+set}" = set; then
29530 echo $ECHO_N "(cached) $ECHO_C" >&6
29531 else
29532 @@ -3463,8 +3963,8 @@ sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
29533 esac
29534
29535 fi
29536 -echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
29537 -echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
29538 +{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
29539 +echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
29540 file_magic_cmd=$lt_cv_file_magic_cmd
29541 deplibs_check_method=$lt_cv_deplibs_check_method
29542
29543 @@ -3474,8 +3974,8 @@ deplibs_check_method=$lt_cv_deplibs_chec
29544 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
29545
29546 # find the maximum length of command line arguments
29547 -echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
29548 -echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
29549 +{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
29550 +echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
29551 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
29552 echo $ECHO_N "(cached) $ECHO_C" >&6
29553 else
29554 @@ -3526,11 +4026,11 @@ else
29555 fi
29556
29557 if test -n "$lt_cv_sys_max_cmd_len" ; then
29558 - echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
29559 -echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
29560 + { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
29561 +echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
29562 else
29563 - echo "$as_me:$LINENO: result: none" >&5
29564 -echo "${ECHO_T}none" >&6
29565 + { echo "$as_me:$LINENO: result: none" >&5
29566 +echo "${ECHO_T}none" >&6; }
29567 fi
29568
29569
29570 @@ -3538,8 +4038,8 @@ fi
29571 case $deplibs_check_method in
29572 file_magic*)
29573 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
29574 - echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
29575 -echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
29576 + { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
29577 +echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
29578 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
29579 echo $ECHO_N "(cached) $ECHO_C" >&6
29580 else
29581 @@ -3593,17 +4093,17 @@ fi
29582
29583 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
29584 if test -n "$MAGIC_CMD"; then
29585 - echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
29586 -echo "${ECHO_T}$MAGIC_CMD" >&6
29587 + { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
29588 +echo "${ECHO_T}$MAGIC_CMD" >&6; }
29589 else
29590 - echo "$as_me:$LINENO: result: no" >&5
29591 -echo "${ECHO_T}no" >&6
29592 + { echo "$as_me:$LINENO: result: no" >&5
29593 +echo "${ECHO_T}no" >&6; }
29594 fi
29595
29596 if test -z "$lt_cv_path_MAGIC_CMD"; then
29597 if test -n "$ac_tool_prefix"; then
29598 - echo "$as_me:$LINENO: checking for file" >&5
29599 -echo $ECHO_N "checking for file... $ECHO_C" >&6
29600 + { echo "$as_me:$LINENO: checking for file" >&5
29601 +echo $ECHO_N "checking for file... $ECHO_C" >&6; }
29602 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
29603 echo $ECHO_N "(cached) $ECHO_C" >&6
29604 else
29605 @@ -3657,11 +4157,11 @@ fi
29606
29607 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
29608 if test -n "$MAGIC_CMD"; then
29609 - echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
29610 -echo "${ECHO_T}$MAGIC_CMD" >&6
29611 + { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
29612 +echo "${ECHO_T}$MAGIC_CMD" >&6; }
29613 else
29614 - echo "$as_me:$LINENO: result: no" >&5
29615 -echo "${ECHO_T}no" >&6
29616 + { echo "$as_me:$LINENO: result: no" >&5
29617 +echo "${ECHO_T}no" >&6; }
29618 fi
29619
29620 else
29621 @@ -3676,8 +4176,8 @@ esac
29622 if test -n "$ac_tool_prefix"; then
29623 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
29624 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
29625 -echo "$as_me:$LINENO: checking for $ac_word" >&5
29626 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
29627 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
29628 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
29629 if test "${ac_cv_prog_RANLIB+set}" = set; then
29630 echo $ECHO_N "(cached) $ECHO_C" >&6
29631 else
29632 @@ -3690,32 +4190,34 @@ do
29633 IFS=$as_save_IFS
29634 test -z "$as_dir" && as_dir=.
29635 for ac_exec_ext in '' $ac_executable_extensions; do
29636 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29637 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29638 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
29639 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29640 break 2
29641 fi
29642 done
29643 done
29644 +IFS=$as_save_IFS
29645
29646 fi
29647 fi
29648 RANLIB=$ac_cv_prog_RANLIB
29649 if test -n "$RANLIB"; then
29650 - echo "$as_me:$LINENO: result: $RANLIB" >&5
29651 -echo "${ECHO_T}$RANLIB" >&6
29652 + { echo "$as_me:$LINENO: result: $RANLIB" >&5
29653 +echo "${ECHO_T}$RANLIB" >&6; }
29654 else
29655 - echo "$as_me:$LINENO: result: no" >&5
29656 -echo "${ECHO_T}no" >&6
29657 + { echo "$as_me:$LINENO: result: no" >&5
29658 +echo "${ECHO_T}no" >&6; }
29659 fi
29660
29661 +
29662 fi
29663 if test -z "$ac_cv_prog_RANLIB"; then
29664 ac_ct_RANLIB=$RANLIB
29665 # Extract the first word of "ranlib", so it can be a program name with args.
29666 set dummy ranlib; ac_word=$2
29667 -echo "$as_me:$LINENO: checking for $ac_word" >&5
29668 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
29669 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
29670 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
29671 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
29672 echo $ECHO_N "(cached) $ECHO_C" >&6
29673 else
29674 @@ -3728,27 +4230,41 @@ do
29675 IFS=$as_save_IFS
29676 test -z "$as_dir" && as_dir=.
29677 for ac_exec_ext in '' $ac_executable_extensions; do
29678 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29679 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29680 ac_cv_prog_ac_ct_RANLIB="ranlib"
29681 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29682 break 2
29683 fi
29684 done
29685 done
29686 +IFS=$as_save_IFS
29687
29688 - test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
29689 fi
29690 fi
29691 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
29692 if test -n "$ac_ct_RANLIB"; then
29693 - echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
29694 -echo "${ECHO_T}$ac_ct_RANLIB" >&6
29695 + { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
29696 +echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
29697 else
29698 - echo "$as_me:$LINENO: result: no" >&5
29699 -echo "${ECHO_T}no" >&6
29700 + { echo "$as_me:$LINENO: result: no" >&5
29701 +echo "${ECHO_T}no" >&6; }
29702 fi
29703
29704 - RANLIB=$ac_ct_RANLIB
29705 + if test "x$ac_ct_RANLIB" = x; then
29706 + RANLIB=":"
29707 + else
29708 + case $cross_compiling:$ac_tool_warned in
29709 +yes:)
29710 +{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
29711 +whose name does not start with the host triplet. If you think this
29712 +configuration is useful to you, please write to autoconf@gnu.org." >&5
29713 +echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
29714 +whose name does not start with the host triplet. If you think this
29715 +configuration is useful to you, please write to autoconf@gnu.org." >&2;}
29716 +ac_tool_warned=yes ;;
29717 +esac
29718 + RANLIB=$ac_ct_RANLIB
29719 + fi
29720 else
29721 RANLIB="$ac_cv_prog_RANLIB"
29722 fi
29723 @@ -3756,8 +4272,8 @@ fi
29724 if test -n "$ac_tool_prefix"; then
29725 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
29726 set dummy ${ac_tool_prefix}strip; ac_word=$2
29727 -echo "$as_me:$LINENO: checking for $ac_word" >&5
29728 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
29729 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
29730 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
29731 if test "${ac_cv_prog_STRIP+set}" = set; then
29732 echo $ECHO_N "(cached) $ECHO_C" >&6
29733 else
29734 @@ -3770,32 +4286,34 @@ do
29735 IFS=$as_save_IFS
29736 test -z "$as_dir" && as_dir=.
29737 for ac_exec_ext in '' $ac_executable_extensions; do
29738 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29739 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29740 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
29741 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29742 break 2
29743 fi
29744 done
29745 done
29746 +IFS=$as_save_IFS
29747
29748 fi
29749 fi
29750 STRIP=$ac_cv_prog_STRIP
29751 if test -n "$STRIP"; then
29752 - echo "$as_me:$LINENO: result: $STRIP" >&5
29753 -echo "${ECHO_T}$STRIP" >&6
29754 + { echo "$as_me:$LINENO: result: $STRIP" >&5
29755 +echo "${ECHO_T}$STRIP" >&6; }
29756 else
29757 - echo "$as_me:$LINENO: result: no" >&5
29758 -echo "${ECHO_T}no" >&6
29759 + { echo "$as_me:$LINENO: result: no" >&5
29760 +echo "${ECHO_T}no" >&6; }
29761 fi
29762
29763 +
29764 fi
29765 if test -z "$ac_cv_prog_STRIP"; then
29766 ac_ct_STRIP=$STRIP
29767 # Extract the first word of "strip", so it can be a program name with args.
29768 set dummy strip; ac_word=$2
29769 -echo "$as_me:$LINENO: checking for $ac_word" >&5
29770 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
29771 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
29772 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
29773 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
29774 echo $ECHO_N "(cached) $ECHO_C" >&6
29775 else
29776 @@ -3808,27 +4326,41 @@ do
29777 IFS=$as_save_IFS
29778 test -z "$as_dir" && as_dir=.
29779 for ac_exec_ext in '' $ac_executable_extensions; do
29780 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29781 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29782 ac_cv_prog_ac_ct_STRIP="strip"
29783 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29784 break 2
29785 fi
29786 done
29787 done
29788 +IFS=$as_save_IFS
29789
29790 - test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
29791 fi
29792 fi
29793 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
29794 if test -n "$ac_ct_STRIP"; then
29795 - echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
29796 -echo "${ECHO_T}$ac_ct_STRIP" >&6
29797 + { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
29798 +echo "${ECHO_T}$ac_ct_STRIP" >&6; }
29799 else
29800 - echo "$as_me:$LINENO: result: no" >&5
29801 -echo "${ECHO_T}no" >&6
29802 + { echo "$as_me:$LINENO: result: no" >&5
29803 +echo "${ECHO_T}no" >&6; }
29804 fi
29805
29806 - STRIP=$ac_ct_STRIP
29807 + if test "x$ac_ct_STRIP" = x; then
29808 + STRIP=":"
29809 + else
29810 + case $cross_compiling:$ac_tool_warned in
29811 +yes:)
29812 +{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
29813 +whose name does not start with the host triplet. If you think this
29814 +configuration is useful to you, please write to autoconf@gnu.org." >&5
29815 +echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
29816 +whose name does not start with the host triplet. If you think this
29817 +configuration is useful to you, please write to autoconf@gnu.org." >&2;}
29818 +ac_tool_warned=yes ;;
29819 +esac
29820 + STRIP=$ac_ct_STRIP
29821 + fi
29822 else
29823 STRIP="$ac_cv_prog_STRIP"
29824 fi
29825 @@ -3843,22 +4375,22 @@ test "$GCC" = yes && libtool_flags="$lib
29826 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
29827
29828
29829 -# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
29830 +# Check whether --enable-libtool-lock was given.
29831 if test "${enable_libtool_lock+set}" = set; then
29832 - enableval="$enable_libtool_lock"
29833 + enableval=$enable_libtool_lock;
29834 +fi
29835
29836 -fi;
29837 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
29838 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
29839
29840
29841 -# Check whether --with-pic or --without-pic was given.
29842 +# Check whether --with-pic was given.
29843 if test "${with_pic+set}" = set; then
29844 - withval="$with_pic"
29845 - pic_mode="$withval"
29846 + withval=$with_pic; pic_mode="$withval"
29847 else
29848 pic_mode=default
29849 -fi;
29850 +fi
29851 +
29852 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
29853 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
29854
29855 @@ -3867,7 +4399,7 @@ test x"$pic_mode" = xno && libtool_flags
29856 case $host in
29857 *-*-irix6*)
29858 # Find out which ABI we are using.
29859 - echo '#line 3870 "configure"' > conftest.$ac_ext
29860 + echo '#line 4402 "configure"' > conftest.$ac_ext
29861 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29862 (eval $ac_compile) 2>&5
29863 ac_status=$?
29864 @@ -3972,13 +4504,12 @@ x86_64-*linux*|ppc*-*linux*|powerpc*-*li
29865 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
29866 SAVE_CFLAGS="$CFLAGS"
29867 CFLAGS="$CFLAGS -belf"
29868 - echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
29869 -echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
29870 + { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
29871 +echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
29872 if test "${lt_cv_cc_needs_belf+set}" = set; then
29873 echo $ECHO_N "(cached) $ECHO_C" >&6
29874 else
29875
29876 -
29877 ac_ext=c
29878 ac_cpp='$CPP $CPPFLAGS'
29879 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29880 @@ -4001,35 +4532,32 @@ main ()
29881 }
29882 _ACEOF
29883 rm -f conftest.$ac_objext conftest$ac_exeext
29884 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29885 - (eval $ac_link) 2>conftest.er1
29886 +if { (ac_try="$ac_link"
29887 +case "(($ac_try" in
29888 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29889 + *) ac_try_echo=$ac_try;;
29890 +esac
29891 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29892 + (eval "$ac_link") 2>conftest.er1
29893 ac_status=$?
29894 grep -v '^ *+' conftest.er1 >conftest.err
29895 rm -f conftest.er1
29896 cat conftest.err >&5
29897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29898 - (exit $ac_status); } &&
29899 - { ac_try='test -z "$ac_c_werror_flag"
29900 - || test ! -s conftest.err'
29901 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29902 - (eval $ac_try) 2>&5
29903 - ac_status=$?
29904 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
29905 - (exit $ac_status); }; } &&
29906 - { ac_try='test -s conftest$ac_exeext'
29907 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29908 - (eval $ac_try) 2>&5
29909 - ac_status=$?
29910 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
29911 - (exit $ac_status); }; }; then
29912 + (exit $ac_status); } && {
29913 + test -z "$ac_c_werror_flag" ||
29914 + test ! -s conftest.err
29915 + } && test -s conftest$ac_exeext &&
29916 + $as_test_x conftest$ac_exeext; then
29917 lt_cv_cc_needs_belf=yes
29918 else
29919 echo "$as_me: failed program was:" >&5
29920 sed 's/^/| /' conftest.$ac_ext >&5
29921
29922 -lt_cv_cc_needs_belf=no
29923 + lt_cv_cc_needs_belf=no
29924 fi
29925 -rm -f conftest.err conftest.$ac_objext \
29926 +
29927 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29928 conftest$ac_exeext conftest.$ac_ext
29929 ac_ext=c
29930 ac_cpp='$CPP $CPPFLAGS'
29931 @@ -4038,8 +4566,8 @@ ac_link='$CC -o conftest$ac_exeext $CFLA
29932 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29933
29934 fi
29935 -echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
29936 -echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
29937 +{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
29938 +echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
29939 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
29940 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
29941 CFLAGS="$SAVE_CFLAGS"
29942 @@ -4069,39 +4597,58 @@ _ACEOF
29943
29944 # The following way of writing the cache mishandles newlines in values,
29945 # but we know of no workaround that is simple, portable, and efficient.
29946 -# So, don't put newlines in cache variables' values.
29947 +# So, we kill variables containing newlines.
29948 # Ultrix sh set writes to stderr and can't be redirected directly,
29949 # and sets the high bit in the cache file unless we assign to the vars.
29950 -{
29951 +(
29952 + for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
29953 + eval ac_val=\$$ac_var
29954 + case $ac_val in #(
29955 + *${as_nl}*)
29956 + case $ac_var in #(
29957 + *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
29958 +echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
29959 + esac
29960 + case $ac_var in #(
29961 + _ | IFS | as_nl) ;; #(
29962 + *) $as_unset $ac_var ;;
29963 + esac ;;
29964 + esac
29965 + done
29966 +
29967 (set) 2>&1 |
29968 - case `(ac_space=' '; set | grep ac_space) 2>&1` in
29969 - *ac_space=\ *)
29970 + case $as_nl`(ac_space=' '; set) 2>&1` in #(
29971 + *${as_nl}ac_space=\ *)
29972 # `set' does not quote correctly, so add quotes (double-quote
29973 # substitution turns \\\\ into \\, and sed turns \\ into \).
29974 sed -n \
29975 "s/'/'\\\\''/g;
29976 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
29977 - ;;
29978 + ;; #(
29979 *)
29980 # `set' quotes correctly as required by POSIX, so do not add quotes.
29981 - sed -n \
29982 - "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
29983 + sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
29984 ;;
29985 - esac;
29986 -} |
29987 + esac |
29988 + sort
29989 +) |
29990 sed '
29991 + /^ac_cv_env_/b end
29992 t clear
29993 - : clear
29994 + :clear
29995 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
29996 t end
29997 - /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
29998 - : end' >>confcache
29999 -if diff $cache_file confcache >/dev/null 2>&1; then :; else
30000 - if test -w $cache_file; then
30001 - test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
30002 + s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30003 + :end' >>confcache
30004 +if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
30005 + if test -w "$cache_file"; then
30006 + test "x$cache_file" != "x/dev/null" &&
30007 + { echo "$as_me:$LINENO: updating cache $cache_file" >&5
30008 +echo "$as_me: updating cache $cache_file" >&6;}
30009 cat confcache >$cache_file
30010 else
30011 - echo "not updating unwritable cache $cache_file"
30012 + { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
30013 +echo "$as_me: not updating unwritable cache $cache_file" >&6;}
30014 fi
30015 fi
30016 rm -f confcache
30017 @@ -4127,8 +4674,8 @@ if test -r "$cache_file"; then
30018 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
30019 echo "$as_me: loading cache $cache_file" >&6;}
30020 case $cache_file in
30021 - [\\/]* | ?:[\\/]* ) . $cache_file;;
30022 - *) . ./$cache_file;;
30023 + [\\/]* | ?:[\\/]* ) . "$cache_file";;
30024 + *) . "./$cache_file";;
30025 esac
30026 fi
30027 else
30028 @@ -4154,10 +4701,9 @@ exec 5>>./config.log
30029
30030
30031
30032 -# Check whether --enable-targets or --disable-targets was given.
30033 +# Check whether --enable-targets was given.
30034 if test "${enable_targets+set}" = set; then
30035 - enableval="$enable_targets"
30036 - case "${enableval}" in
30037 + enableval=$enable_targets; case "${enableval}" in
30038 yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5
30039 echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;}
30040 { (exit 1); exit 1; }; }
30041 @@ -4165,31 +4711,32 @@ echo "$as_me: error: enable-targets opti
30042 no) enable_targets= ;;
30043 *) enable_targets=$enableval ;;
30044 esac
30045 -fi; # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
30046 +fi
30047 +# Check whether --enable-commonbfdlib was given.
30048 if test "${enable_commonbfdlib+set}" = set; then
30049 - enableval="$enable_commonbfdlib"
30050 - case "${enableval}" in
30051 + enableval=$enable_commonbfdlib; case "${enableval}" in
30052 yes) commonbfdlib=true ;;
30053 no) commonbfdlib=false ;;
30054 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for BFD commonbfdlib option" >&5
30055 echo "$as_me: error: bad value ${enableval} for BFD commonbfdlib option" >&2;}
30056 { (exit 1); exit 1; }; } ;;
30057 esac
30058 -fi;
30059 +fi
30060 +
30061
30062 GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
30063
30064 -# Check whether --enable-werror or --disable-werror was given.
30065 +# Check whether --enable-werror was given.
30066 if test "${enable_werror+set}" = set; then
30067 - enableval="$enable_werror"
30068 - case "${enableval}" in
30069 + enableval=$enable_werror; case "${enableval}" in
30070 yes | y) ERROR_ON_WARNING="yes" ;;
30071 no | n) ERROR_ON_WARNING="no" ;;
30072 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
30073 echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
30074 { (exit 1); exit 1; }; } ;;
30075 esac
30076 -fi;
30077 +fi
30078 +
30079
30080 # Enable -Werror by default when using gcc
30081 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
30082 @@ -4206,10 +4753,9 @@ if test "${GCC}" = yes ; then
30083 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
30084 fi
30085
30086 -# Check whether --enable-build-warnings or --disable-build-warnings was given.
30087 +# Check whether --enable-build-warnings was given.
30088 if test "${enable_build_warnings+set}" = set; then
30089 - enableval="$enable_build_warnings"
30090 - case "${enableval}" in
30091 + enableval=$enable_build_warnings; case "${enableval}" in
30092 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
30093 no) if test "${GCC}" = yes ; then
30094 WARN_CFLAGS="-w"
30095 @@ -4220,7 +4766,8 @@ if test "${enable_build_warnings+set}" =
30096 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
30097 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
30098 esac
30099 -fi;
30100 +fi
30101 +
30102
30103 if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
30104 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
30105 @@ -4230,7 +4777,7 @@ fi
30106
30107
30108
30109 - ac_config_headers="$ac_config_headers config.h:config.in"
30110 +ac_config_headers="$ac_config_headers config.h:config.in"
30111
30112
30113 if test -z "$target" ; then
30114 @@ -4252,8 +4799,8 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
30115 if test -n "$ac_tool_prefix"; then
30116 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
30117 set dummy ${ac_tool_prefix}gcc; ac_word=$2
30118 -echo "$as_me:$LINENO: checking for $ac_word" >&5
30119 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
30120 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
30121 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
30122 if test "${ac_cv_prog_CC+set}" = set; then
30123 echo $ECHO_N "(cached) $ECHO_C" >&6
30124 else
30125 @@ -4266,32 +4813,34 @@ do
30126 IFS=$as_save_IFS
30127 test -z "$as_dir" && as_dir=.
30128 for ac_exec_ext in '' $ac_executable_extensions; do
30129 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
30130 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30131 ac_cv_prog_CC="${ac_tool_prefix}gcc"
30132 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30133 break 2
30134 fi
30135 done
30136 done
30137 +IFS=$as_save_IFS
30138
30139 fi
30140 fi
30141 CC=$ac_cv_prog_CC
30142 if test -n "$CC"; then
30143 - echo "$as_me:$LINENO: result: $CC" >&5
30144 -echo "${ECHO_T}$CC" >&6
30145 + { echo "$as_me:$LINENO: result: $CC" >&5
30146 +echo "${ECHO_T}$CC" >&6; }
30147 else
30148 - echo "$as_me:$LINENO: result: no" >&5
30149 -echo "${ECHO_T}no" >&6
30150 + { echo "$as_me:$LINENO: result: no" >&5
30151 +echo "${ECHO_T}no" >&6; }
30152 fi
30153
30154 +
30155 fi
30156 if test -z "$ac_cv_prog_CC"; then
30157 ac_ct_CC=$CC
30158 # Extract the first word of "gcc", so it can be a program name with args.
30159 set dummy gcc; ac_word=$2
30160 -echo "$as_me:$LINENO: checking for $ac_word" >&5
30161 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
30162 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
30163 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
30164 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
30165 echo $ECHO_N "(cached) $ECHO_C" >&6
30166 else
30167 @@ -4304,36 +4853,51 @@ do
30168 IFS=$as_save_IFS
30169 test -z "$as_dir" && as_dir=.
30170 for ac_exec_ext in '' $ac_executable_extensions; do
30171 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
30172 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30173 ac_cv_prog_ac_ct_CC="gcc"
30174 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30175 break 2
30176 fi
30177 done
30178 done
30179 +IFS=$as_save_IFS
30180
30181 fi
30182 fi
30183 ac_ct_CC=$ac_cv_prog_ac_ct_CC
30184 if test -n "$ac_ct_CC"; then
30185 - echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
30186 -echo "${ECHO_T}$ac_ct_CC" >&6
30187 + { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
30188 +echo "${ECHO_T}$ac_ct_CC" >&6; }
30189 else
30190 - echo "$as_me:$LINENO: result: no" >&5
30191 -echo "${ECHO_T}no" >&6
30192 + { echo "$as_me:$LINENO: result: no" >&5
30193 +echo "${ECHO_T}no" >&6; }
30194 fi
30195
30196 - CC=$ac_ct_CC
30197 + if test "x$ac_ct_CC" = x; then
30198 + CC=""
30199 + else
30200 + case $cross_compiling:$ac_tool_warned in
30201 +yes:)
30202 +{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
30203 +whose name does not start with the host triplet. If you think this
30204 +configuration is useful to you, please write to autoconf@gnu.org." >&5
30205 +echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
30206 +whose name does not start with the host triplet. If you think this
30207 +configuration is useful to you, please write to autoconf@gnu.org." >&2;}
30208 +ac_tool_warned=yes ;;
30209 +esac
30210 + CC=$ac_ct_CC
30211 + fi
30212 else
30213 CC="$ac_cv_prog_CC"
30214 fi
30215
30216 if test -z "$CC"; then
30217 - if test -n "$ac_tool_prefix"; then
30218 - # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
30219 + if test -n "$ac_tool_prefix"; then
30220 + # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
30221 set dummy ${ac_tool_prefix}cc; ac_word=$2
30222 -echo "$as_me:$LINENO: checking for $ac_word" >&5
30223 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
30224 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
30225 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
30226 if test "${ac_cv_prog_CC+set}" = set; then
30227 echo $ECHO_N "(cached) $ECHO_C" >&6
30228 else
30229 @@ -4346,74 +4910,34 @@ do
30230 IFS=$as_save_IFS
30231 test -z "$as_dir" && as_dir=.
30232 for ac_exec_ext in '' $ac_executable_extensions; do
30233 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
30234 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30235 ac_cv_prog_CC="${ac_tool_prefix}cc"
30236 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30237 break 2
30238 fi
30239 done
30240 done
30241 +IFS=$as_save_IFS
30242
30243 fi
30244 fi
30245 CC=$ac_cv_prog_CC
30246 if test -n "$CC"; then
30247 - echo "$as_me:$LINENO: result: $CC" >&5
30248 -echo "${ECHO_T}$CC" >&6
30249 -else
30250 - echo "$as_me:$LINENO: result: no" >&5
30251 -echo "${ECHO_T}no" >&6
30252 -fi
30253 -
30254 -fi
30255 -if test -z "$ac_cv_prog_CC"; then
30256 - ac_ct_CC=$CC
30257 - # Extract the first word of "cc", so it can be a program name with args.
30258 -set dummy cc; ac_word=$2
30259 -echo "$as_me:$LINENO: checking for $ac_word" >&5
30260 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
30261 -if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
30262 - echo $ECHO_N "(cached) $ECHO_C" >&6
30263 -else
30264 - if test -n "$ac_ct_CC"; then
30265 - ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
30266 -else
30267 -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30268 -for as_dir in $PATH
30269 -do
30270 - IFS=$as_save_IFS
30271 - test -z "$as_dir" && as_dir=.
30272 - for ac_exec_ext in '' $ac_executable_extensions; do
30273 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
30274 - ac_cv_prog_ac_ct_CC="cc"
30275 - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30276 - break 2
30277 - fi
30278 -done
30279 -done
30280 -
30281 -fi
30282 -fi
30283 -ac_ct_CC=$ac_cv_prog_ac_ct_CC
30284 -if test -n "$ac_ct_CC"; then
30285 - echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
30286 -echo "${ECHO_T}$ac_ct_CC" >&6
30287 + { echo "$as_me:$LINENO: result: $CC" >&5
30288 +echo "${ECHO_T}$CC" >&6; }
30289 else
30290 - echo "$as_me:$LINENO: result: no" >&5
30291 -echo "${ECHO_T}no" >&6
30292 + { echo "$as_me:$LINENO: result: no" >&5
30293 +echo "${ECHO_T}no" >&6; }
30294 fi
30295
30296 - CC=$ac_ct_CC
30297 -else
30298 - CC="$ac_cv_prog_CC"
30299 -fi
30300
30301 + fi
30302 fi
30303 if test -z "$CC"; then
30304 # Extract the first word of "cc", so it can be a program name with args.
30305 set dummy cc; ac_word=$2
30306 -echo "$as_me:$LINENO: checking for $ac_word" >&5
30307 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
30308 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
30309 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
30310 if test "${ac_cv_prog_CC+set}" = set; then
30311 echo $ECHO_N "(cached) $ECHO_C" >&6
30312 else
30313 @@ -4427,7 +4951,7 @@ do
30314 IFS=$as_save_IFS
30315 test -z "$as_dir" && as_dir=.
30316 for ac_exec_ext in '' $ac_executable_extensions; do
30317 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
30318 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30319 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
30320 ac_prog_rejected=yes
30321 continue
30322 @@ -4438,6 +4962,7 @@ do
30323 fi
30324 done
30325 done
30326 +IFS=$as_save_IFS
30327
30328 if test $ac_prog_rejected = yes; then
30329 # We found a bogon in the path, so make sure we never use it.
30330 @@ -4455,22 +4980,23 @@ fi
30331 fi
30332 CC=$ac_cv_prog_CC
30333 if test -n "$CC"; then
30334 - echo "$as_me:$LINENO: result: $CC" >&5
30335 -echo "${ECHO_T}$CC" >&6
30336 + { echo "$as_me:$LINENO: result: $CC" >&5
30337 +echo "${ECHO_T}$CC" >&6; }
30338 else
30339 - echo "$as_me:$LINENO: result: no" >&5
30340 -echo "${ECHO_T}no" >&6
30341 + { echo "$as_me:$LINENO: result: no" >&5
30342 +echo "${ECHO_T}no" >&6; }
30343 fi
30344
30345 +
30346 fi
30347 if test -z "$CC"; then
30348 if test -n "$ac_tool_prefix"; then
30349 - for ac_prog in cl
30350 + for ac_prog in cl.exe
30351 do
30352 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
30353 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
30354 -echo "$as_me:$LINENO: checking for $ac_word" >&5
30355 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
30356 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
30357 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
30358 if test "${ac_cv_prog_CC+set}" = set; then
30359 echo $ECHO_N "(cached) $ECHO_C" >&6
30360 else
30361 @@ -4483,36 +5009,38 @@ do
30362 IFS=$as_save_IFS
30363 test -z "$as_dir" && as_dir=.
30364 for ac_exec_ext in '' $ac_executable_extensions; do
30365 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
30366 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30367 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
30368 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30369 break 2
30370 fi
30371 done
30372 done
30373 +IFS=$as_save_IFS
30374
30375 fi
30376 fi
30377 CC=$ac_cv_prog_CC
30378 if test -n "$CC"; then
30379 - echo "$as_me:$LINENO: result: $CC" >&5
30380 -echo "${ECHO_T}$CC" >&6
30381 + { echo "$as_me:$LINENO: result: $CC" >&5
30382 +echo "${ECHO_T}$CC" >&6; }
30383 else
30384 - echo "$as_me:$LINENO: result: no" >&5
30385 -echo "${ECHO_T}no" >&6
30386 + { echo "$as_me:$LINENO: result: no" >&5
30387 +echo "${ECHO_T}no" >&6; }
30388 fi
30389
30390 +
30391 test -n "$CC" && break
30392 done
30393 fi
30394 if test -z "$CC"; then
30395 ac_ct_CC=$CC
30396 - for ac_prog in cl
30397 + for ac_prog in cl.exe
30398 do
30399 # Extract the first word of "$ac_prog", so it can be a program name with args.
30400 set dummy $ac_prog; ac_word=$2
30401 -echo "$as_me:$LINENO: checking for $ac_word" >&5
30402 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
30403 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
30404 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
30405 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
30406 echo $ECHO_N "(cached) $ECHO_C" >&6
30407 else
30408 @@ -4525,29 +5053,45 @@ do
30409 IFS=$as_save_IFS
30410 test -z "$as_dir" && as_dir=.
30411 for ac_exec_ext in '' $ac_executable_extensions; do
30412 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
30413 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30414 ac_cv_prog_ac_ct_CC="$ac_prog"
30415 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30416 break 2
30417 fi
30418 done
30419 done
30420 +IFS=$as_save_IFS
30421
30422 fi
30423 fi
30424 ac_ct_CC=$ac_cv_prog_ac_ct_CC
30425 if test -n "$ac_ct_CC"; then
30426 - echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
30427 -echo "${ECHO_T}$ac_ct_CC" >&6
30428 + { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
30429 +echo "${ECHO_T}$ac_ct_CC" >&6; }
30430 else
30431 - echo "$as_me:$LINENO: result: no" >&5
30432 -echo "${ECHO_T}no" >&6
30433 + { echo "$as_me:$LINENO: result: no" >&5
30434 +echo "${ECHO_T}no" >&6; }
30435 fi
30436
30437 +
30438 test -n "$ac_ct_CC" && break
30439 done
30440
30441 - CC=$ac_ct_CC
30442 + if test "x$ac_ct_CC" = x; then
30443 + CC=""
30444 + else
30445 + case $cross_compiling:$ac_tool_warned in
30446 +yes:)
30447 +{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
30448 +whose name does not start with the host triplet. If you think this
30449 +configuration is useful to you, please write to autoconf@gnu.org." >&5
30450 +echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
30451 +whose name does not start with the host triplet. If you think this
30452 +configuration is useful to you, please write to autoconf@gnu.org." >&2;}
30453 +ac_tool_warned=yes ;;
30454 +esac
30455 + CC=$ac_ct_CC
30456 + fi
30457 fi
30458
30459 fi
30460 @@ -4560,27 +5104,41 @@ See \`config.log' for more details." >&2
30461 { (exit 1); exit 1; }; }
30462
30463 # Provide some information about the compiler.
30464 -echo "$as_me:$LINENO:" \
30465 - "checking for C compiler version" >&5
30466 +echo "$as_me:$LINENO: checking for C compiler version" >&5
30467 ac_compiler=`set X $ac_compile; echo $2`
30468 -{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
30469 - (eval $ac_compiler --version </dev/null >&5) 2>&5
30470 +{ (ac_try="$ac_compiler --version >&5"
30471 +case "(($ac_try" in
30472 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30473 + *) ac_try_echo=$ac_try;;
30474 +esac
30475 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30476 + (eval "$ac_compiler --version >&5") 2>&5
30477 ac_status=$?
30478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30479 (exit $ac_status); }
30480 -{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
30481 - (eval $ac_compiler -v </dev/null >&5) 2>&5
30482 +{ (ac_try="$ac_compiler -v >&5"
30483 +case "(($ac_try" in
30484 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30485 + *) ac_try_echo=$ac_try;;
30486 +esac
30487 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30488 + (eval "$ac_compiler -v >&5") 2>&5
30489 ac_status=$?
30490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30491 (exit $ac_status); }
30492 -{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
30493 - (eval $ac_compiler -V </dev/null >&5) 2>&5
30494 +{ (ac_try="$ac_compiler -V >&5"
30495 +case "(($ac_try" in
30496 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30497 + *) ac_try_echo=$ac_try;;
30498 +esac
30499 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30500 + (eval "$ac_compiler -V >&5") 2>&5
30501 ac_status=$?
30502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30503 (exit $ac_status); }
30504
30505 -echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
30506 -echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
30507 +{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
30508 +echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
30509 if test "${ac_cv_c_compiler_gnu+set}" = set; then
30510 echo $ECHO_N "(cached) $ECHO_C" >&6
30511 else
30512 @@ -4603,50 +5161,49 @@ main ()
30513 }
30514 _ACEOF
30515 rm -f conftest.$ac_objext
30516 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30517 - (eval $ac_compile) 2>conftest.er1
30518 +if { (ac_try="$ac_compile"
30519 +case "(($ac_try" in
30520 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30521 + *) ac_try_echo=$ac_try;;
30522 +esac
30523 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30524 + (eval "$ac_compile") 2>conftest.er1
30525 ac_status=$?
30526 grep -v '^ *+' conftest.er1 >conftest.err
30527 rm -f conftest.er1
30528 cat conftest.err >&5
30529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30530 - (exit $ac_status); } &&
30531 - { ac_try='test -z "$ac_c_werror_flag"
30532 - || test ! -s conftest.err'
30533 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30534 - (eval $ac_try) 2>&5
30535 - ac_status=$?
30536 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
30537 - (exit $ac_status); }; } &&
30538 - { ac_try='test -s conftest.$ac_objext'
30539 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30540 - (eval $ac_try) 2>&5
30541 - ac_status=$?
30542 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
30543 - (exit $ac_status); }; }; then
30544 + (exit $ac_status); } && {
30545 + test -z "$ac_c_werror_flag" ||
30546 + test ! -s conftest.err
30547 + } && test -s conftest.$ac_objext; then
30548 ac_compiler_gnu=yes
30549 else
30550 echo "$as_me: failed program was:" >&5
30551 sed 's/^/| /' conftest.$ac_ext >&5
30552
30553 -ac_compiler_gnu=no
30554 + ac_compiler_gnu=no
30555 fi
30556 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30557 +
30558 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30559 ac_cv_c_compiler_gnu=$ac_compiler_gnu
30560
30561 fi
30562 -echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
30563 -echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
30564 +{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
30565 +echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
30566 GCC=`test $ac_compiler_gnu = yes && echo yes`
30567 ac_test_CFLAGS=${CFLAGS+set}
30568 ac_save_CFLAGS=$CFLAGS
30569 -CFLAGS="-g"
30570 -echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
30571 -echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
30572 +{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
30573 +echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
30574 if test "${ac_cv_prog_cc_g+set}" = set; then
30575 echo $ECHO_N "(cached) $ECHO_C" >&6
30576 else
30577 - cat >conftest.$ac_ext <<_ACEOF
30578 + ac_save_c_werror_flag=$ac_c_werror_flag
30579 + ac_c_werror_flag=yes
30580 + ac_cv_prog_cc_g=no
30581 + CFLAGS="-g"
30582 + cat >conftest.$ac_ext <<_ACEOF
30583 /* confdefs.h. */
30584 _ACEOF
30585 cat confdefs.h >>conftest.$ac_ext
30586 @@ -4662,311 +5219,248 @@ main ()
30587 }
30588 _ACEOF
30589 rm -f conftest.$ac_objext
30590 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30591 - (eval $ac_compile) 2>conftest.er1
30592 +if { (ac_try="$ac_compile"
30593 +case "(($ac_try" in
30594 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30595 + *) ac_try_echo=$ac_try;;
30596 +esac
30597 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30598 + (eval "$ac_compile") 2>conftest.er1
30599 ac_status=$?
30600 grep -v '^ *+' conftest.er1 >conftest.err
30601 rm -f conftest.er1
30602 cat conftest.err >&5
30603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30604 - (exit $ac_status); } &&
30605 - { ac_try='test -z "$ac_c_werror_flag"
30606 - || test ! -s conftest.err'
30607 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30608 - (eval $ac_try) 2>&5
30609 - ac_status=$?
30610 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
30611 - (exit $ac_status); }; } &&
30612 - { ac_try='test -s conftest.$ac_objext'
30613 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30614 - (eval $ac_try) 2>&5
30615 - ac_status=$?
30616 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
30617 - (exit $ac_status); }; }; then
30618 + (exit $ac_status); } && {
30619 + test -z "$ac_c_werror_flag" ||
30620 + test ! -s conftest.err
30621 + } && test -s conftest.$ac_objext; then
30622 ac_cv_prog_cc_g=yes
30623 else
30624 echo "$as_me: failed program was:" >&5
30625 sed 's/^/| /' conftest.$ac_ext >&5
30626
30627 -ac_cv_prog_cc_g=no
30628 -fi
30629 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30630 -fi
30631 -echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
30632 -echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
30633 -if test "$ac_test_CFLAGS" = set; then
30634 - CFLAGS=$ac_save_CFLAGS
30635 -elif test $ac_cv_prog_cc_g = yes; then
30636 - if test "$GCC" = yes; then
30637 - CFLAGS="-g -O2"
30638 - else
30639 - CFLAGS="-g"
30640 - fi
30641 -else
30642 - if test "$GCC" = yes; then
30643 - CFLAGS="-O2"
30644 - else
30645 - CFLAGS=
30646 - fi
30647 -fi
30648 -echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
30649 -echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
30650 -if test "${ac_cv_prog_cc_stdc+set}" = set; then
30651 - echo $ECHO_N "(cached) $ECHO_C" >&6
30652 -else
30653 - ac_cv_prog_cc_stdc=no
30654 -ac_save_CC=$CC
30655 -cat >conftest.$ac_ext <<_ACEOF
30656 + CFLAGS=""
30657 + cat >conftest.$ac_ext <<_ACEOF
30658 /* confdefs.h. */
30659 _ACEOF
30660 cat confdefs.h >>conftest.$ac_ext
30661 cat >>conftest.$ac_ext <<_ACEOF
30662 /* end confdefs.h. */
30663 -#include <stdarg.h>
30664 -#include <stdio.h>
30665 -#include <sys/types.h>
30666 -#include <sys/stat.h>
30667 -/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
30668 -struct buf { int x; };
30669 -FILE * (*rcsopen) (struct buf *, struct stat *, int);
30670 -static char *e (p, i)
30671 - char **p;
30672 - int i;
30673 -{
30674 - return p[i];
30675 -}
30676 -static char *f (char * (*g) (char **, int), char **p, ...)
30677 -{
30678 - char *s;
30679 - va_list v;
30680 - va_start (v,p);
30681 - s = g (p, va_arg (v,int));
30682 - va_end (v);
30683 - return s;
30684 -}
30685
30686 -/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
30687 - function prototypes and stuff, but not '\xHH' hex character constants.
30688 - These don't provoke an error unfortunately, instead are silently treated
30689 - as 'x'. The following induces an error, until -std1 is added to get
30690 - proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
30691 - array size at least. It's necessary to write '\x00'==0 to get something
30692 - that's true only with -std1. */
30693 -int osf4_cc_array ['\x00' == 0 ? 1 : -1];
30694 -
30695 -int test (int i, double x);
30696 -struct s1 {int (*f) (int a);};
30697 -struct s2 {int (*f) (double a);};
30698 -int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
30699 -int argc;
30700 -char **argv;
30701 int
30702 main ()
30703 {
30704 -return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
30705 +
30706 ;
30707 return 0;
30708 }
30709 _ACEOF
30710 -# Don't try gcc -ansi; that turns off useful extensions and
30711 -# breaks some systems' header files.
30712 -# AIX -qlanglvl=ansi
30713 -# Ultrix and OSF/1 -std1
30714 -# HP-UX 10.20 and later -Ae
30715 -# HP-UX older versions -Aa -D_HPUX_SOURCE
30716 -# SVR4 -Xc -D__EXTENSIONS__
30717 -for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
30718 -do
30719 - CC="$ac_save_CC $ac_arg"
30720 - rm -f conftest.$ac_objext
30721 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30722 - (eval $ac_compile) 2>conftest.er1
30723 +rm -f conftest.$ac_objext
30724 +if { (ac_try="$ac_compile"
30725 +case "(($ac_try" in
30726 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30727 + *) ac_try_echo=$ac_try;;
30728 +esac
30729 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30730 + (eval "$ac_compile") 2>conftest.er1
30731 ac_status=$?
30732 grep -v '^ *+' conftest.er1 >conftest.err
30733 rm -f conftest.er1
30734 cat conftest.err >&5
30735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30736 - (exit $ac_status); } &&
30737 - { ac_try='test -z "$ac_c_werror_flag"
30738 - || test ! -s conftest.err'
30739 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30740 - (eval $ac_try) 2>&5
30741 - ac_status=$?
30742 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
30743 - (exit $ac_status); }; } &&
30744 - { ac_try='test -s conftest.$ac_objext'
30745 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30746 - (eval $ac_try) 2>&5
30747 - ac_status=$?
30748 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
30749 - (exit $ac_status); }; }; then
30750 - ac_cv_prog_cc_stdc=$ac_arg
30751 -break
30752 + (exit $ac_status); } && {
30753 + test -z "$ac_c_werror_flag" ||
30754 + test ! -s conftest.err
30755 + } && test -s conftest.$ac_objext; then
30756 + :
30757 else
30758 echo "$as_me: failed program was:" >&5
30759 sed 's/^/| /' conftest.$ac_ext >&5
30760
30761 -fi
30762 -rm -f conftest.err conftest.$ac_objext
30763 -done
30764 -rm -f conftest.$ac_ext conftest.$ac_objext
30765 -CC=$ac_save_CC
30766 -
30767 -fi
30768 -
30769 -case "x$ac_cv_prog_cc_stdc" in
30770 - x|xno)
30771 - echo "$as_me:$LINENO: result: none needed" >&5
30772 -echo "${ECHO_T}none needed" >&6 ;;
30773 - *)
30774 - echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
30775 -echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
30776 - CC="$CC $ac_cv_prog_cc_stdc" ;;
30777 -esac
30778 -
30779 -# Some people use a C++ compiler to compile C. Since we use `exit',
30780 -# in C++ we need to declare it. In case someone uses the same compiler
30781 -# for both compiling C and C++ we need to have the C++ compiler decide
30782 -# the declaration of exit, since it's the most demanding environment.
30783 -cat >conftest.$ac_ext <<_ACEOF
30784 -#ifndef __cplusplus
30785 - choke me
30786 -#endif
30787 -_ACEOF
30788 -rm -f conftest.$ac_objext
30789 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30790 - (eval $ac_compile) 2>conftest.er1
30791 - ac_status=$?
30792 - grep -v '^ *+' conftest.er1 >conftest.err
30793 - rm -f conftest.er1
30794 - cat conftest.err >&5
30795 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
30796 - (exit $ac_status); } &&
30797 - { ac_try='test -z "$ac_c_werror_flag"
30798 - || test ! -s conftest.err'
30799 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30800 - (eval $ac_try) 2>&5
30801 - ac_status=$?
30802 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
30803 - (exit $ac_status); }; } &&
30804 - { ac_try='test -s conftest.$ac_objext'
30805 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30806 - (eval $ac_try) 2>&5
30807 - ac_status=$?
30808 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
30809 - (exit $ac_status); }; }; then
30810 - for ac_declaration in \
30811 - '' \
30812 - 'extern "C" void std::exit (int) throw (); using std::exit;' \
30813 - 'extern "C" void std::exit (int); using std::exit;' \
30814 - 'extern "C" void exit (int) throw ();' \
30815 - 'extern "C" void exit (int);' \
30816 - 'void exit (int);'
30817 -do
30818 - cat >conftest.$ac_ext <<_ACEOF
30819 + ac_c_werror_flag=$ac_save_c_werror_flag
30820 + CFLAGS="-g"
30821 + cat >conftest.$ac_ext <<_ACEOF
30822 /* confdefs.h. */
30823 _ACEOF
30824 cat confdefs.h >>conftest.$ac_ext
30825 cat >>conftest.$ac_ext <<_ACEOF
30826 /* end confdefs.h. */
30827 -$ac_declaration
30828 -#include <stdlib.h>
30829 +
30830 int
30831 main ()
30832 {
30833 -exit (42);
30834 +
30835 ;
30836 return 0;
30837 }
30838 _ACEOF
30839 rm -f conftest.$ac_objext
30840 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30841 - (eval $ac_compile) 2>conftest.er1
30842 +if { (ac_try="$ac_compile"
30843 +case "(($ac_try" in
30844 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30845 + *) ac_try_echo=$ac_try;;
30846 +esac
30847 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30848 + (eval "$ac_compile") 2>conftest.er1
30849 ac_status=$?
30850 grep -v '^ *+' conftest.er1 >conftest.err
30851 rm -f conftest.er1
30852 cat conftest.err >&5
30853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30854 - (exit $ac_status); } &&
30855 - { ac_try='test -z "$ac_c_werror_flag"
30856 - || test ! -s conftest.err'
30857 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30858 - (eval $ac_try) 2>&5
30859 - ac_status=$?
30860 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
30861 - (exit $ac_status); }; } &&
30862 - { ac_try='test -s conftest.$ac_objext'
30863 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30864 - (eval $ac_try) 2>&5
30865 - ac_status=$?
30866 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
30867 - (exit $ac_status); }; }; then
30868 - :
30869 + (exit $ac_status); } && {
30870 + test -z "$ac_c_werror_flag" ||
30871 + test ! -s conftest.err
30872 + } && test -s conftest.$ac_objext; then
30873 + ac_cv_prog_cc_g=yes
30874 else
30875 echo "$as_me: failed program was:" >&5
30876 sed 's/^/| /' conftest.$ac_ext >&5
30877
30878 -continue
30879 +
30880 fi
30881 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30882 - cat >conftest.$ac_ext <<_ACEOF
30883 +
30884 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30885 +fi
30886 +
30887 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30888 +fi
30889 +
30890 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30891 + ac_c_werror_flag=$ac_save_c_werror_flag
30892 +fi
30893 +{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
30894 +echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
30895 +if test "$ac_test_CFLAGS" = set; then
30896 + CFLAGS=$ac_save_CFLAGS
30897 +elif test $ac_cv_prog_cc_g = yes; then
30898 + if test "$GCC" = yes; then
30899 + CFLAGS="-g -O2"
30900 + else
30901 + CFLAGS="-g"
30902 + fi
30903 +else
30904 + if test "$GCC" = yes; then
30905 + CFLAGS="-O2"
30906 + else
30907 + CFLAGS=
30908 + fi
30909 +fi
30910 +{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
30911 +echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
30912 +if test "${ac_cv_prog_cc_c89+set}" = set; then
30913 + echo $ECHO_N "(cached) $ECHO_C" >&6
30914 +else
30915 + ac_cv_prog_cc_c89=no
30916 +ac_save_CC=$CC
30917 +cat >conftest.$ac_ext <<_ACEOF
30918 /* confdefs.h. */
30919 _ACEOF
30920 cat confdefs.h >>conftest.$ac_ext
30921 cat >>conftest.$ac_ext <<_ACEOF
30922 /* end confdefs.h. */
30923 -$ac_declaration
30924 +#include <stdarg.h>
30925 +#include <stdio.h>
30926 +#include <sys/types.h>
30927 +#include <sys/stat.h>
30928 +/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
30929 +struct buf { int x; };
30930 +FILE * (*rcsopen) (struct buf *, struct stat *, int);
30931 +static char *e (p, i)
30932 + char **p;
30933 + int i;
30934 +{
30935 + return p[i];
30936 +}
30937 +static char *f (char * (*g) (char **, int), char **p, ...)
30938 +{
30939 + char *s;
30940 + va_list v;
30941 + va_start (v,p);
30942 + s = g (p, va_arg (v,int));
30943 + va_end (v);
30944 + return s;
30945 +}
30946 +
30947 +/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
30948 + function prototypes and stuff, but not '\xHH' hex character constants.
30949 + These don't provoke an error unfortunately, instead are silently treated
30950 + as 'x'. The following induces an error, until -std is added to get
30951 + proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
30952 + array size at least. It's necessary to write '\x00'==0 to get something
30953 + that's true only with -std. */
30954 +int osf4_cc_array ['\x00' == 0 ? 1 : -1];
30955 +
30956 +/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
30957 + inside strings and character constants. */
30958 +#define FOO(x) 'x'
30959 +int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
30960 +
30961 +int test (int i, double x);
30962 +struct s1 {int (*f) (int a);};
30963 +struct s2 {int (*f) (double a);};
30964 +int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
30965 +int argc;
30966 +char **argv;
30967 int
30968 main ()
30969 {
30970 -exit (42);
30971 +return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
30972 ;
30973 return 0;
30974 }
30975 _ACEOF
30976 -rm -f conftest.$ac_objext
30977 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30978 - (eval $ac_compile) 2>conftest.er1
30979 +for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
30980 + -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
30981 +do
30982 + CC="$ac_save_CC $ac_arg"
30983 + rm -f conftest.$ac_objext
30984 +if { (ac_try="$ac_compile"
30985 +case "(($ac_try" in
30986 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30987 + *) ac_try_echo=$ac_try;;
30988 +esac
30989 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30990 + (eval "$ac_compile") 2>conftest.er1
30991 ac_status=$?
30992 grep -v '^ *+' conftest.er1 >conftest.err
30993 rm -f conftest.er1
30994 cat conftest.err >&5
30995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30996 - (exit $ac_status); } &&
30997 - { ac_try='test -z "$ac_c_werror_flag"
30998 - || test ! -s conftest.err'
30999 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31000 - (eval $ac_try) 2>&5
31001 - ac_status=$?
31002 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
31003 - (exit $ac_status); }; } &&
31004 - { ac_try='test -s conftest.$ac_objext'
31005 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31006 - (eval $ac_try) 2>&5
31007 - ac_status=$?
31008 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
31009 - (exit $ac_status); }; }; then
31010 - break
31011 + (exit $ac_status); } && {
31012 + test -z "$ac_c_werror_flag" ||
31013 + test ! -s conftest.err
31014 + } && test -s conftest.$ac_objext; then
31015 + ac_cv_prog_cc_c89=$ac_arg
31016 else
31017 echo "$as_me: failed program was:" >&5
31018 sed 's/^/| /' conftest.$ac_ext >&5
31019
31020 +
31021 fi
31022 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31023 +
31024 +rm -f core conftest.err conftest.$ac_objext
31025 + test "x$ac_cv_prog_cc_c89" != "xno" && break
31026 done
31027 -rm -f conftest*
31028 -if test -n "$ac_declaration"; then
31029 - echo '#ifdef __cplusplus' >>confdefs.h
31030 - echo $ac_declaration >>confdefs.h
31031 - echo '#endif' >>confdefs.h
31032 +rm -f conftest.$ac_ext
31033 +CC=$ac_save_CC
31034 +
31035 fi
31036 +# AC_CACHE_VAL
31037 +case "x$ac_cv_prog_cc_c89" in
31038 + x)
31039 + { echo "$as_me:$LINENO: result: none needed" >&5
31040 +echo "${ECHO_T}none needed" >&6; } ;;
31041 + xno)
31042 + { echo "$as_me:$LINENO: result: unsupported" >&5
31043 +echo "${ECHO_T}unsupported" >&6; } ;;
31044 + *)
31045 + CC="$CC $ac_cv_prog_cc_c89"
31046 + { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
31047 +echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
31048 +esac
31049
31050 -else
31051 - echo "$as_me: failed program was:" >&5
31052 -sed 's/^/| /' conftest.$ac_ext >&5
31053
31054 -fi
31055 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31056 ac_ext=c
31057 ac_cpp='$CPP $CPPFLAGS'
31058 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31059 @@ -4984,8 +5478,8 @@ for ac_prog in 'bison -y' byacc
31060 do
31061 # Extract the first word of "$ac_prog", so it can be a program name with args.
31062 set dummy $ac_prog; ac_word=$2
31063 -echo "$as_me:$LINENO: checking for $ac_word" >&5
31064 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
31065 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
31066 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
31067 if test "${ac_cv_prog_YACC+set}" = set; then
31068 echo $ECHO_N "(cached) $ECHO_C" >&6
31069 else
31070 @@ -4998,25 +5492,27 @@ do
31071 IFS=$as_save_IFS
31072 test -z "$as_dir" && as_dir=.
31073 for ac_exec_ext in '' $ac_executable_extensions; do
31074 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
31075 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31076 ac_cv_prog_YACC="$ac_prog"
31077 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31078 break 2
31079 fi
31080 done
31081 done
31082 +IFS=$as_save_IFS
31083
31084 fi
31085 fi
31086 YACC=$ac_cv_prog_YACC
31087 if test -n "$YACC"; then
31088 - echo "$as_me:$LINENO: result: $YACC" >&5
31089 -echo "${ECHO_T}$YACC" >&6
31090 + { echo "$as_me:$LINENO: result: $YACC" >&5
31091 +echo "${ECHO_T}$YACC" >&6; }
31092 else
31093 - echo "$as_me:$LINENO: result: no" >&5
31094 -echo "${ECHO_T}no" >&6
31095 + { echo "$as_me:$LINENO: result: no" >&5
31096 +echo "${ECHO_T}no" >&6; }
31097 fi
31098
31099 +
31100 test -n "$YACC" && break
31101 done
31102 test -n "$YACC" || YACC="yacc"
31103 @@ -5025,8 +5521,8 @@ for ac_prog in flex lex
31104 do
31105 # Extract the first word of "$ac_prog", so it can be a program name with args.
31106 set dummy $ac_prog; ac_word=$2
31107 -echo "$as_me:$LINENO: checking for $ac_word" >&5
31108 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
31109 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
31110 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
31111 if test "${ac_cv_prog_LEX+set}" = set; then
31112 echo $ECHO_N "(cached) $ECHO_C" >&6
31113 else
31114 @@ -5039,253 +5535,182 @@ do
31115 IFS=$as_save_IFS
31116 test -z "$as_dir" && as_dir=.
31117 for ac_exec_ext in '' $ac_executable_extensions; do
31118 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
31119 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31120 ac_cv_prog_LEX="$ac_prog"
31121 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31122 break 2
31123 fi
31124 done
31125 done
31126 +IFS=$as_save_IFS
31127
31128 fi
31129 fi
31130 LEX=$ac_cv_prog_LEX
31131 if test -n "$LEX"; then
31132 - echo "$as_me:$LINENO: result: $LEX" >&5
31133 -echo "${ECHO_T}$LEX" >&6
31134 + { echo "$as_me:$LINENO: result: $LEX" >&5
31135 +echo "${ECHO_T}$LEX" >&6; }
31136 else
31137 - echo "$as_me:$LINENO: result: no" >&5
31138 -echo "${ECHO_T}no" >&6
31139 + { echo "$as_me:$LINENO: result: no" >&5
31140 +echo "${ECHO_T}no" >&6; }
31141 fi
31142
31143 +
31144 test -n "$LEX" && break
31145 done
31146 test -n "$LEX" || LEX=":"
31147
31148 -if test -z "$LEXLIB"
31149 -then
31150 - echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
31151 -echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
31152 -if test "${ac_cv_lib_fl_yywrap+set}" = set; then
31153 - echo $ECHO_N "(cached) $ECHO_C" >&6
31154 -else
31155 - ac_check_lib_save_LIBS=$LIBS
31156 -LIBS="-lfl $LIBS"
31157 -cat >conftest.$ac_ext <<_ACEOF
31158 -/* confdefs.h. */
31159 -_ACEOF
31160 -cat confdefs.h >>conftest.$ac_ext
31161 -cat >>conftest.$ac_ext <<_ACEOF
31162 -/* end confdefs.h. */
31163 -
31164 -/* Override any gcc2 internal prototype to avoid an error. */
31165 -#ifdef __cplusplus
31166 -extern "C"
31167 +if test "x$LEX" != "x:"; then
31168 + cat >conftest.l <<_ACEOF
31169 +%%
31170 +a { ECHO; }
31171 +b { REJECT; }
31172 +c { yymore (); }
31173 +d { yyless (1); }
31174 +e { yyless (input () != 0); }
31175 +f { unput (yytext[0]); }
31176 +. { BEGIN INITIAL; }
31177 +%%
31178 +#ifdef YYTEXT_POINTER
31179 +extern char *yytext;
31180 #endif
31181 -/* We use char because int might match the return type of a gcc2
31182 - builtin and then its argument prototype would still apply. */
31183 -char yywrap ();
31184 int
31185 -main ()
31186 +main (void)
31187 {
31188 -yywrap ();
31189 - ;
31190 - return 0;
31191 + return ! yylex () + ! yywrap ();
31192 }
31193 _ACEOF
31194 -rm -f conftest.$ac_objext conftest$ac_exeext
31195 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31196 - (eval $ac_link) 2>conftest.er1
31197 - ac_status=$?
31198 - grep -v '^ *+' conftest.er1 >conftest.err
31199 - rm -f conftest.er1
31200 - cat conftest.err >&5
31201 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
31202 - (exit $ac_status); } &&
31203 - { ac_try='test -z "$ac_c_werror_flag"
31204 - || test ! -s conftest.err'
31205 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31206 - (eval $ac_try) 2>&5
31207 - ac_status=$?
31208 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
31209 - (exit $ac_status); }; } &&
31210 - { ac_try='test -s conftest$ac_exeext'
31211 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31212 - (eval $ac_try) 2>&5
31213 +{ (ac_try="$LEX conftest.l"
31214 +case "(($ac_try" in
31215 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31216 + *) ac_try_echo=$ac_try;;
31217 +esac
31218 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31219 + (eval "$LEX conftest.l") 2>&5
31220 ac_status=$?
31221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31222 - (exit $ac_status); }; }; then
31223 - ac_cv_lib_fl_yywrap=yes
31224 + (exit $ac_status); }
31225 +{ echo "$as_me:$LINENO: checking lex output file root" >&5
31226 +echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; }
31227 +if test "${ac_cv_prog_lex_root+set}" = set; then
31228 + echo $ECHO_N "(cached) $ECHO_C" >&6
31229 else
31230 - echo "$as_me: failed program was:" >&5
31231 -sed 's/^/| /' conftest.$ac_ext >&5
31232
31233 -ac_cv_lib_fl_yywrap=no
31234 +if test -f lex.yy.c; then
31235 + ac_cv_prog_lex_root=lex.yy
31236 +elif test -f lexyy.c; then
31237 + ac_cv_prog_lex_root=lexyy
31238 +else
31239 + { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
31240 +echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
31241 + { (exit 1); exit 1; }; }
31242 fi
31243 -rm -f conftest.err conftest.$ac_objext \
31244 - conftest$ac_exeext conftest.$ac_ext
31245 -LIBS=$ac_check_lib_save_LIBS
31246 fi
31247 -echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
31248 -echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
31249 -if test $ac_cv_lib_fl_yywrap = yes; then
31250 - LEXLIB="-lfl"
31251 -else
31252 - echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
31253 -echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
31254 -if test "${ac_cv_lib_l_yywrap+set}" = set; then
31255 +{ echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
31256 +echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; }
31257 +LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
31258 +
31259 +if test -z "${LEXLIB+set}"; then
31260 + { echo "$as_me:$LINENO: checking lex library" >&5
31261 +echo $ECHO_N "checking lex library... $ECHO_C" >&6; }
31262 +if test "${ac_cv_lib_lex+set}" = set; then
31263 echo $ECHO_N "(cached) $ECHO_C" >&6
31264 else
31265 - ac_check_lib_save_LIBS=$LIBS
31266 -LIBS="-ll $LIBS"
31267 -cat >conftest.$ac_ext <<_ACEOF
31268 -/* confdefs.h. */
31269 -_ACEOF
31270 -cat confdefs.h >>conftest.$ac_ext
31271 -cat >>conftest.$ac_ext <<_ACEOF
31272 -/* end confdefs.h. */
31273
31274 -/* Override any gcc2 internal prototype to avoid an error. */
31275 -#ifdef __cplusplus
31276 -extern "C"
31277 -#endif
31278 -/* We use char because int might match the return type of a gcc2
31279 - builtin and then its argument prototype would still apply. */
31280 -char yywrap ();
31281 -int
31282 -main ()
31283 -{
31284 -yywrap ();
31285 - ;
31286 - return 0;
31287 -}
31288 + ac_save_LIBS=$LIBS
31289 + ac_cv_lib_lex='none needed'
31290 + for ac_lib in '' -lfl -ll; do
31291 + LIBS="$ac_lib $ac_save_LIBS"
31292 + cat >conftest.$ac_ext <<_ACEOF
31293 +`cat $LEX_OUTPUT_ROOT.c`
31294 _ACEOF
31295 rm -f conftest.$ac_objext conftest$ac_exeext
31296 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31297 - (eval $ac_link) 2>conftest.er1
31298 +if { (ac_try="$ac_link"
31299 +case "(($ac_try" in
31300 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31301 + *) ac_try_echo=$ac_try;;
31302 +esac
31303 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31304 + (eval "$ac_link") 2>conftest.er1
31305 ac_status=$?
31306 grep -v '^ *+' conftest.er1 >conftest.err
31307 rm -f conftest.er1
31308 cat conftest.err >&5
31309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31310 - (exit $ac_status); } &&
31311 - { ac_try='test -z "$ac_c_werror_flag"
31312 - || test ! -s conftest.err'
31313 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31314 - (eval $ac_try) 2>&5
31315 - ac_status=$?
31316 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
31317 - (exit $ac_status); }; } &&
31318 - { ac_try='test -s conftest$ac_exeext'
31319 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31320 - (eval $ac_try) 2>&5
31321 - ac_status=$?
31322 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
31323 - (exit $ac_status); }; }; then
31324 - ac_cv_lib_l_yywrap=yes
31325 + (exit $ac_status); } && {
31326 + test -z "$ac_c_werror_flag" ||
31327 + test ! -s conftest.err
31328 + } && test -s conftest$ac_exeext &&
31329 + $as_test_x conftest$ac_exeext; then
31330 + ac_cv_lib_lex=$ac_lib
31331 else
31332 echo "$as_me: failed program was:" >&5
31333 sed 's/^/| /' conftest.$ac_ext >&5
31334
31335 -ac_cv_lib_l_yywrap=no
31336 -fi
31337 -rm -f conftest.err conftest.$ac_objext \
31338 - conftest$ac_exeext conftest.$ac_ext
31339 -LIBS=$ac_check_lib_save_LIBS
31340 -fi
31341 -echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
31342 -echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
31343 -if test $ac_cv_lib_l_yywrap = yes; then
31344 - LEXLIB="-ll"
31345 -fi
31346 -
31347 -fi
31348 -
31349 -fi
31350
31351 -if test "x$LEX" != "x:"; then
31352 - echo "$as_me:$LINENO: checking lex output file root" >&5
31353 -echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
31354 -if test "${ac_cv_prog_lex_root+set}" = set; then
31355 - echo $ECHO_N "(cached) $ECHO_C" >&6
31356 -else
31357 - # The minimal lex program is just a single line: %%. But some broken lexes
31358 -# (Solaris, I think it was) want two %% lines, so accommodate them.
31359 -cat >conftest.l <<_ACEOF
31360 -%%
31361 -%%
31362 -_ACEOF
31363 -{ (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
31364 - (eval $LEX conftest.l) 2>&5
31365 - ac_status=$?
31366 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
31367 - (exit $ac_status); }
31368 -if test -f lex.yy.c; then
31369 - ac_cv_prog_lex_root=lex.yy
31370 -elif test -f lexyy.c; then
31371 - ac_cv_prog_lex_root=lexyy
31372 -else
31373 - { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
31374 -echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
31375 - { (exit 1); exit 1; }; }
31376 fi
31377 +
31378 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31379 + conftest$ac_exeext conftest.$ac_ext
31380 + test "$ac_cv_lib_lex" != 'none needed' && break
31381 + done
31382 + LIBS=$ac_save_LIBS
31383 +
31384 +fi
31385 +{ echo "$as_me:$LINENO: result: $ac_cv_lib_lex" >&5
31386 +echo "${ECHO_T}$ac_cv_lib_lex" >&6; }
31387 + test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
31388 fi
31389 -echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
31390 -echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
31391 -rm -f conftest.l
31392 -LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
31393
31394 -echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
31395 -echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
31396 +
31397 +{ echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
31398 +echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; }
31399 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
31400 echo $ECHO_N "(cached) $ECHO_C" >&6
31401 else
31402 # POSIX says lex can declare yytext either as a pointer or an array; the
31403 -# default is implementation-dependent. Figure out which it is, since
31404 +# default is implementation-dependent. Figure out which it is, since
31405 # not all implementations provide the %pointer and %array declarations.
31406 ac_cv_prog_lex_yytext_pointer=no
31407 -echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
31408 ac_save_LIBS=$LIBS
31409 -LIBS="$LIBS $LEXLIB"
31410 +LIBS="$LEXLIB $ac_save_LIBS"
31411 cat >conftest.$ac_ext <<_ACEOF
31412 +#define YYTEXT_POINTER 1
31413 `cat $LEX_OUTPUT_ROOT.c`
31414 _ACEOF
31415 rm -f conftest.$ac_objext conftest$ac_exeext
31416 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31417 - (eval $ac_link) 2>conftest.er1
31418 +if { (ac_try="$ac_link"
31419 +case "(($ac_try" in
31420 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31421 + *) ac_try_echo=$ac_try;;
31422 +esac
31423 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31424 + (eval "$ac_link") 2>conftest.er1
31425 ac_status=$?
31426 grep -v '^ *+' conftest.er1 >conftest.err
31427 rm -f conftest.er1
31428 cat conftest.err >&5
31429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31430 - (exit $ac_status); } &&
31431 - { ac_try='test -z "$ac_c_werror_flag"
31432 - || test ! -s conftest.err'
31433 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31434 - (eval $ac_try) 2>&5
31435 - ac_status=$?
31436 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
31437 - (exit $ac_status); }; } &&
31438 - { ac_try='test -s conftest$ac_exeext'
31439 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31440 - (eval $ac_try) 2>&5
31441 - ac_status=$?
31442 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
31443 - (exit $ac_status); }; }; then
31444 + (exit $ac_status); } && {
31445 + test -z "$ac_c_werror_flag" ||
31446 + test ! -s conftest.err
31447 + } && test -s conftest$ac_exeext &&
31448 + $as_test_x conftest$ac_exeext; then
31449 ac_cv_prog_lex_yytext_pointer=yes
31450 else
31451 echo "$as_me: failed program was:" >&5
31452 sed 's/^/| /' conftest.$ac_ext >&5
31453
31454 +
31455 fi
31456 -rm -f conftest.err conftest.$ac_objext \
31457 +
31458 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31459 conftest$ac_exeext conftest.$ac_ext
31460 LIBS=$ac_save_LIBS
31461 -rm -f "${LEX_OUTPUT_ROOT}.c"
31462
31463 fi
31464 -echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
31465 -echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
31466 +{ echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
31467 +echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; }
31468 if test $ac_cv_prog_lex_yytext_pointer = yes; then
31469
31470 cat >>confdefs.h <<\_ACEOF
31471 @@ -5293,6 +5718,7 @@ cat >>confdefs.h <<\_ACEOF
31472 _ACEOF
31473
31474 fi
31475 +rm -f conftest.l $LEX_OUTPUT_ROOT.c
31476
31477 fi
31478 if test "$LEX" = :; then
31479 @@ -5303,8 +5729,8 @@ ALL_LINGUAS="fr tr ja es sv da zh_CN ru
31480 if test -n "$ac_tool_prefix"; then
31481 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
31482 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
31483 -echo "$as_me:$LINENO: checking for $ac_word" >&5
31484 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
31485 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
31486 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
31487 if test "${ac_cv_prog_RANLIB+set}" = set; then
31488 echo $ECHO_N "(cached) $ECHO_C" >&6
31489 else
31490 @@ -5317,32 +5743,34 @@ do
31491 IFS=$as_save_IFS
31492 test -z "$as_dir" && as_dir=.
31493 for ac_exec_ext in '' $ac_executable_extensions; do
31494 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
31495 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31496 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
31497 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31498 break 2
31499 fi
31500 done
31501 done
31502 +IFS=$as_save_IFS
31503
31504 fi
31505 fi
31506 RANLIB=$ac_cv_prog_RANLIB
31507 if test -n "$RANLIB"; then
31508 - echo "$as_me:$LINENO: result: $RANLIB" >&5
31509 -echo "${ECHO_T}$RANLIB" >&6
31510 + { echo "$as_me:$LINENO: result: $RANLIB" >&5
31511 +echo "${ECHO_T}$RANLIB" >&6; }
31512 else
31513 - echo "$as_me:$LINENO: result: no" >&5
31514 -echo "${ECHO_T}no" >&6
31515 + { echo "$as_me:$LINENO: result: no" >&5
31516 +echo "${ECHO_T}no" >&6; }
31517 fi
31518
31519 +
31520 fi
31521 if test -z "$ac_cv_prog_RANLIB"; then
31522 ac_ct_RANLIB=$RANLIB
31523 # Extract the first word of "ranlib", so it can be a program name with args.
31524 set dummy ranlib; ac_word=$2
31525 -echo "$as_me:$LINENO: checking for $ac_word" >&5
31526 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
31527 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
31528 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
31529 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
31530 echo $ECHO_N "(cached) $ECHO_C" >&6
31531 else
31532 @@ -5355,27 +5783,41 @@ do
31533 IFS=$as_save_IFS
31534 test -z "$as_dir" && as_dir=.
31535 for ac_exec_ext in '' $ac_executable_extensions; do
31536 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
31537 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31538 ac_cv_prog_ac_ct_RANLIB="ranlib"
31539 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31540 break 2
31541 fi
31542 done
31543 done
31544 +IFS=$as_save_IFS
31545
31546 - test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
31547 fi
31548 fi
31549 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
31550 if test -n "$ac_ct_RANLIB"; then
31551 - echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
31552 -echo "${ECHO_T}$ac_ct_RANLIB" >&6
31553 + { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
31554 +echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
31555 else
31556 - echo "$as_me:$LINENO: result: no" >&5
31557 -echo "${ECHO_T}no" >&6
31558 + { echo "$as_me:$LINENO: result: no" >&5
31559 +echo "${ECHO_T}no" >&6; }
31560 fi
31561
31562 - RANLIB=$ac_ct_RANLIB
31563 + if test "x$ac_ct_RANLIB" = x; then
31564 + RANLIB=":"
31565 + else
31566 + case $cross_compiling:$ac_tool_warned in
31567 +yes:)
31568 +{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
31569 +whose name does not start with the host triplet. If you think this
31570 +configuration is useful to you, please write to autoconf@gnu.org." >&5
31571 +echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
31572 +whose name does not start with the host triplet. If you think this
31573 +configuration is useful to you, please write to autoconf@gnu.org." >&2;}
31574 +ac_tool_warned=yes ;;
31575 +esac
31576 + RANLIB=$ac_ct_RANLIB
31577 + fi
31578 else
31579 RANLIB="$ac_cv_prog_RANLIB"
31580 fi
31581 @@ -5385,8 +5827,8 @@ ac_cpp='$CPP $CPPFLAGS'
31582 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31583 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31584 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31585 -echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
31586 -echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
31587 +{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
31588 +echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
31589 # On Suns, sometimes $CPP names a directory.
31590 if test -n "$CPP" && test -d "$CPP"; then
31591 CPP=
31592 @@ -5420,24 +5862,22 @@ cat >>conftest.$ac_ext <<_ACEOF
31593 #endif
31594 Syntax error
31595 _ACEOF
31596 -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31597 - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31598 +if { (ac_try="$ac_cpp conftest.$ac_ext"
31599 +case "(($ac_try" in
31600 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31601 + *) ac_try_echo=$ac_try;;
31602 +esac
31603 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31604 + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31605 ac_status=$?
31606 grep -v '^ *+' conftest.er1 >conftest.err
31607 rm -f conftest.er1
31608 cat conftest.err >&5
31609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31610 - (exit $ac_status); } >/dev/null; then
31611 - if test -s conftest.err; then
31612 - ac_cpp_err=$ac_c_preproc_warn_flag
31613 - ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
31614 - else
31615 - ac_cpp_err=
31616 - fi
31617 -else
31618 - ac_cpp_err=yes
31619 -fi
31620 -if test -z "$ac_cpp_err"; then
31621 + (exit $ac_status); } >/dev/null && {
31622 + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31623 + test ! -s conftest.err
31624 + }; then
31625 :
31626 else
31627 echo "$as_me: failed program was:" >&5
31628 @@ -5446,9 +5886,10 @@ sed 's/^/| /' conftest.$ac_ext >&5
31629 # Broken: fails on valid input.
31630 continue
31631 fi
31632 +
31633 rm -f conftest.err conftest.$ac_ext
31634
31635 - # OK, works on sane cases. Now check whether non-existent headers
31636 + # OK, works on sane cases. Now check whether nonexistent headers
31637 # can be detected and how.
31638 cat >conftest.$ac_ext <<_ACEOF
31639 /* confdefs.h. */
31640 @@ -5458,24 +5899,22 @@ cat >>conftest.$ac_ext <<_ACEOF
31641 /* end confdefs.h. */
31642 #include <ac_nonexistent.h>
31643 _ACEOF
31644 -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31645 - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31646 +if { (ac_try="$ac_cpp conftest.$ac_ext"
31647 +case "(($ac_try" in
31648 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31649 + *) ac_try_echo=$ac_try;;
31650 +esac
31651 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31652 + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31653 ac_status=$?
31654 grep -v '^ *+' conftest.er1 >conftest.err
31655 rm -f conftest.er1
31656 cat conftest.err >&5
31657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31658 - (exit $ac_status); } >/dev/null; then
31659 - if test -s conftest.err; then
31660 - ac_cpp_err=$ac_c_preproc_warn_flag
31661 - ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
31662 - else
31663 - ac_cpp_err=
31664 - fi
31665 -else
31666 - ac_cpp_err=yes
31667 -fi
31668 -if test -z "$ac_cpp_err"; then
31669 + (exit $ac_status); } >/dev/null && {
31670 + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31671 + test ! -s conftest.err
31672 + }; then
31673 # Broken: success on invalid input.
31674 continue
31675 else
31676 @@ -5486,6 +5925,7 @@ sed 's/^/| /' conftest.$ac_ext >&5
31677 ac_preproc_ok=:
31678 break
31679 fi
31680 +
31681 rm -f conftest.err conftest.$ac_ext
31682
31683 done
31684 @@ -5503,8 +5943,8 @@ fi
31685 else
31686 ac_cv_prog_CPP=$CPP
31687 fi
31688 -echo "$as_me:$LINENO: result: $CPP" >&5
31689 -echo "${ECHO_T}$CPP" >&6
31690 +{ echo "$as_me:$LINENO: result: $CPP" >&5
31691 +echo "${ECHO_T}$CPP" >&6; }
31692 ac_preproc_ok=false
31693 for ac_c_preproc_warn_flag in '' yes
31694 do
31695 @@ -5527,24 +5967,22 @@ cat >>conftest.$ac_ext <<_ACEOF
31696 #endif
31697 Syntax error
31698 _ACEOF
31699 -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31700 - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31701 +if { (ac_try="$ac_cpp conftest.$ac_ext"
31702 +case "(($ac_try" in
31703 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31704 + *) ac_try_echo=$ac_try;;
31705 +esac
31706 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31707 + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31708 ac_status=$?
31709 grep -v '^ *+' conftest.er1 >conftest.err
31710 rm -f conftest.er1
31711 cat conftest.err >&5
31712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31713 - (exit $ac_status); } >/dev/null; then
31714 - if test -s conftest.err; then
31715 - ac_cpp_err=$ac_c_preproc_warn_flag
31716 - ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
31717 - else
31718 - ac_cpp_err=
31719 - fi
31720 -else
31721 - ac_cpp_err=yes
31722 -fi
31723 -if test -z "$ac_cpp_err"; then
31724 + (exit $ac_status); } >/dev/null && {
31725 + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31726 + test ! -s conftest.err
31727 + }; then
31728 :
31729 else
31730 echo "$as_me: failed program was:" >&5
31731 @@ -5553,9 +5991,10 @@ sed 's/^/| /' conftest.$ac_ext >&5
31732 # Broken: fails on valid input.
31733 continue
31734 fi
31735 +
31736 rm -f conftest.err conftest.$ac_ext
31737
31738 - # OK, works on sane cases. Now check whether non-existent headers
31739 + # OK, works on sane cases. Now check whether nonexistent headers
31740 # can be detected and how.
31741 cat >conftest.$ac_ext <<_ACEOF
31742 /* confdefs.h. */
31743 @@ -5565,24 +6004,22 @@ cat >>conftest.$ac_ext <<_ACEOF
31744 /* end confdefs.h. */
31745 #include <ac_nonexistent.h>
31746 _ACEOF
31747 -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31748 - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31749 +if { (ac_try="$ac_cpp conftest.$ac_ext"
31750 +case "(($ac_try" in
31751 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31752 + *) ac_try_echo=$ac_try;;
31753 +esac
31754 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31755 + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31756 ac_status=$?
31757 grep -v '^ *+' conftest.er1 >conftest.err
31758 rm -f conftest.er1
31759 cat conftest.err >&5
31760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31761 - (exit $ac_status); } >/dev/null; then
31762 - if test -s conftest.err; then
31763 - ac_cpp_err=$ac_c_preproc_warn_flag
31764 - ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
31765 - else
31766 - ac_cpp_err=
31767 - fi
31768 -else
31769 - ac_cpp_err=yes
31770 -fi
31771 -if test -z "$ac_cpp_err"; then
31772 + (exit $ac_status); } >/dev/null && {
31773 + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31774 + test ! -s conftest.err
31775 + }; then
31776 # Broken: success on invalid input.
31777 continue
31778 else
31779 @@ -5593,6 +6030,7 @@ sed 's/^/| /' conftest.$ac_ext >&5
31780 ac_preproc_ok=:
31781 break
31782 fi
31783 +
31784 rm -f conftest.err conftest.$ac_ext
31785
31786 done
31787 @@ -5615,23 +6053,170 @@ ac_link='$CC -o conftest$ac_exeext $CFLA
31788 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31789
31790
31791 -echo "$as_me:$LINENO: checking for egrep" >&5
31792 -echo $ECHO_N "checking for egrep... $ECHO_C" >&6
31793 -if test "${ac_cv_prog_egrep+set}" = set; then
31794 +{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
31795 +echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
31796 +if test "${ac_cv_path_GREP+set}" = set; then
31797 + echo $ECHO_N "(cached) $ECHO_C" >&6
31798 +else
31799 + # Extract the first word of "grep ggrep" to use in msg output
31800 +if test -z "$GREP"; then
31801 +set dummy grep ggrep; ac_prog_name=$2
31802 +if test "${ac_cv_path_GREP+set}" = set; then
31803 + echo $ECHO_N "(cached) $ECHO_C" >&6
31804 +else
31805 + ac_path_GREP_found=false
31806 +# Loop through the user's path and test for each of PROGNAME-LIST
31807 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31808 +for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
31809 +do
31810 + IFS=$as_save_IFS
31811 + test -z "$as_dir" && as_dir=.
31812 + for ac_prog in grep ggrep; do
31813 + for ac_exec_ext in '' $ac_executable_extensions; do
31814 + ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
31815 + { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
31816 + # Check for GNU ac_path_GREP and select it if it is found.
31817 + # Check for GNU $ac_path_GREP
31818 +case `"$ac_path_GREP" --version 2>&1` in
31819 +*GNU*)
31820 + ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
31821 +*)
31822 + ac_count=0
31823 + echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
31824 + while :
31825 + do
31826 + cat "conftest.in" "conftest.in" >"conftest.tmp"
31827 + mv "conftest.tmp" "conftest.in"
31828 + cp "conftest.in" "conftest.nl"
31829 + echo 'GREP' >> "conftest.nl"
31830 + "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
31831 + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
31832 + ac_count=`expr $ac_count + 1`
31833 + if test $ac_count -gt ${ac_path_GREP_max-0}; then
31834 + # Best one so far, save it but keep looking for a better one
31835 + ac_cv_path_GREP="$ac_path_GREP"
31836 + ac_path_GREP_max=$ac_count
31837 + fi
31838 + # 10*(2^10) chars as input seems more than enough
31839 + test $ac_count -gt 10 && break
31840 + done
31841 + rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
31842 +esac
31843 +
31844 +
31845 + $ac_path_GREP_found && break 3
31846 + done
31847 +done
31848 +
31849 +done
31850 +IFS=$as_save_IFS
31851 +
31852 +
31853 +fi
31854 +
31855 +GREP="$ac_cv_path_GREP"
31856 +if test -z "$GREP"; then
31857 + { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
31858 +echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
31859 + { (exit 1); exit 1; }; }
31860 +fi
31861 +
31862 +else
31863 + ac_cv_path_GREP=$GREP
31864 +fi
31865 +
31866 +
31867 +fi
31868 +{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
31869 +echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
31870 + GREP="$ac_cv_path_GREP"
31871 +
31872 +
31873 +{ echo "$as_me:$LINENO: checking for egrep" >&5
31874 +echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
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_path_EGREP="$GREP -E"
31880 + else
31881 + # Extract the first word of "egrep" to use in msg output
31882 +if test -z "$EGREP"; then
31883 +set dummy egrep; ac_prog_name=$2
31884 +if test "${ac_cv_path_EGREP+set}" = set; then
31885 echo $ECHO_N "(cached) $ECHO_C" >&6
31886 else
31887 - if echo a | (grep -E '(a|b)') >/dev/null 2>&1
31888 - then ac_cv_prog_egrep='grep -E'
31889 - else ac_cv_prog_egrep='egrep'
31890 + ac_path_EGREP_found=false
31891 +# Loop through the user's path and test for each of PROGNAME-LIST
31892 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31893 +for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
31894 +do
31895 + IFS=$as_save_IFS
31896 + test -z "$as_dir" && as_dir=.
31897 + for ac_prog in egrep; do
31898 + for ac_exec_ext in '' $ac_executable_extensions; do
31899 + ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
31900 + { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
31901 + # Check for GNU ac_path_EGREP and select it if it is found.
31902 + # Check for GNU $ac_path_EGREP
31903 +case `"$ac_path_EGREP" --version 2>&1` in
31904 +*GNU*)
31905 + ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
31906 +*)
31907 + ac_count=0
31908 + echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
31909 + while :
31910 + do
31911 + cat "conftest.in" "conftest.in" >"conftest.tmp"
31912 + mv "conftest.tmp" "conftest.in"
31913 + cp "conftest.in" "conftest.nl"
31914 + echo 'EGREP' >> "conftest.nl"
31915 + "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
31916 + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
31917 + ac_count=`expr $ac_count + 1`
31918 + if test $ac_count -gt ${ac_path_EGREP_max-0}; then
31919 + # Best one so far, save it but keep looking for a better one
31920 + ac_cv_path_EGREP="$ac_path_EGREP"
31921 + ac_path_EGREP_max=$ac_count
31922 fi
31923 + # 10*(2^10) chars as input seems more than enough
31924 + test $ac_count -gt 10 && break
31925 + done
31926 + rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
31927 +esac
31928 +
31929 +
31930 + $ac_path_EGREP_found && break 3
31931 + done
31932 +done
31933 +
31934 +done
31935 +IFS=$as_save_IFS
31936 +
31937 +
31938 +fi
31939 +
31940 +EGREP="$ac_cv_path_EGREP"
31941 +if test -z "$EGREP"; then
31942 + { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
31943 +echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
31944 + { (exit 1); exit 1; }; }
31945 +fi
31946 +
31947 +else
31948 + ac_cv_path_EGREP=$EGREP
31949 +fi
31950 +
31951 +
31952 + fi
31953 fi
31954 -echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
31955 -echo "${ECHO_T}$ac_cv_prog_egrep" >&6
31956 - EGREP=$ac_cv_prog_egrep
31957 +{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
31958 +echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
31959 + EGREP="$ac_cv_path_EGREP"
31960
31961
31962 -echo "$as_me:$LINENO: checking for ANSI C header files" >&5
31963 -echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
31964 +{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
31965 +echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
31966 if test "${ac_cv_header_stdc+set}" = set; then
31967 echo $ECHO_N "(cached) $ECHO_C" >&6
31968 else
31969 @@ -5655,35 +6240,31 @@ main ()
31970 }
31971 _ACEOF
31972 rm -f conftest.$ac_objext
31973 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31974 - (eval $ac_compile) 2>conftest.er1
31975 +if { (ac_try="$ac_compile"
31976 +case "(($ac_try" in
31977 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31978 + *) ac_try_echo=$ac_try;;
31979 +esac
31980 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31981 + (eval "$ac_compile") 2>conftest.er1
31982 ac_status=$?
31983 grep -v '^ *+' conftest.er1 >conftest.err
31984 rm -f conftest.er1
31985 cat conftest.err >&5
31986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31987 - (exit $ac_status); } &&
31988 - { ac_try='test -z "$ac_c_werror_flag"
31989 - || test ! -s conftest.err'
31990 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31991 - (eval $ac_try) 2>&5
31992 - ac_status=$?
31993 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
31994 - (exit $ac_status); }; } &&
31995 - { ac_try='test -s conftest.$ac_objext'
31996 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31997 - (eval $ac_try) 2>&5
31998 - ac_status=$?
31999 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
32000 - (exit $ac_status); }; }; then
32001 + (exit $ac_status); } && {
32002 + test -z "$ac_c_werror_flag" ||
32003 + test ! -s conftest.err
32004 + } && test -s conftest.$ac_objext; then
32005 ac_cv_header_stdc=yes
32006 else
32007 echo "$as_me: failed program was:" >&5
32008 sed 's/^/| /' conftest.$ac_ext >&5
32009
32010 -ac_cv_header_stdc=no
32011 + ac_cv_header_stdc=no
32012 fi
32013 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32014 +
32015 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32016
32017 if test $ac_cv_header_stdc = yes; then
32018 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
32019 @@ -5739,6 +6320,7 @@ cat confdefs.h >>conftest.$ac_ext
32020 cat >>conftest.$ac_ext <<_ACEOF
32021 /* end confdefs.h. */
32022 #include <ctype.h>
32023 +#include <stdlib.h>
32024 #if ((' ' & 0x0FF) == 0x020)
32025 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
32026 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
32027 @@ -5758,18 +6340,27 @@ main ()
32028 for (i = 0; i < 256; i++)
32029 if (XOR (islower (i), ISLOWER (i))
32030 || toupper (i) != TOUPPER (i))
32031 - exit(2);
32032 - exit (0);
32033 + return 2;
32034 + return 0;
32035 }
32036 _ACEOF
32037 rm -f conftest$ac_exeext
32038 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32039 - (eval $ac_link) 2>&5
32040 +if { (ac_try="$ac_link"
32041 +case "(($ac_try" in
32042 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32043 + *) ac_try_echo=$ac_try;;
32044 +esac
32045 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32046 + (eval "$ac_link") 2>&5
32047 ac_status=$?
32048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32049 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32050 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32051 - (eval $ac_try) 2>&5
32052 + { (case "(($ac_try" in
32053 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32054 + *) ac_try_echo=$ac_try;;
32055 +esac
32056 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32057 + (eval "$ac_try") 2>&5
32058 ac_status=$?
32059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32060 (exit $ac_status); }; }; then
32061 @@ -5782,12 +6373,14 @@ sed 's/^/| /' conftest.$ac_ext >&5
32062 ( exit $ac_status )
32063 ac_cv_header_stdc=no
32064 fi
32065 -rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32066 +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32067 fi
32068 +
32069 +
32070 fi
32071 fi
32072 -echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
32073 -echo "${ECHO_T}$ac_cv_header_stdc" >&6
32074 +{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
32075 +echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
32076 if test $ac_cv_header_stdc = yes; then
32077
32078 cat >>confdefs.h <<\_ACEOF
32079 @@ -5796,8 +6389,8 @@ _ACEOF
32080
32081 fi
32082
32083 -echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
32084 -echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
32085 +{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
32086 +echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
32087 if test "${ac_cv_c_const+set}" = set; then
32088 echo $ECHO_N "(cached) $ECHO_C" >&6
32089 else
32090 @@ -5815,10 +6408,10 @@ main ()
32091 #ifndef __cplusplus
32092 /* Ultrix mips cc rejects this. */
32093 typedef int charset[2];
32094 - const charset x;
32095 + const charset cs;
32096 /* SunOS 4.1.1 cc rejects this. */
32097 - char const *const *ccp;
32098 - char **p;
32099 + char const *const *pcpcc;
32100 + char **ppc;
32101 /* NEC SVR4.0.2 mips cc rejects this. */
32102 struct point {int x, y;};
32103 static struct point const zero = {0,0};
32104 @@ -5827,16 +6420,17 @@ main ()
32105 an arm of an if-expression whose if-part is not a constant
32106 expression */
32107 const char *g = "string";
32108 - ccp = &g + (g ? g-g : 0);
32109 + pcpcc = &g + (g ? g-g : 0);
32110 /* HPUX 7.0 cc rejects these. */
32111 - ++ccp;
32112 - p = (char**) ccp;
32113 - ccp = (char const *const *) p;
32114 + ++pcpcc;
32115 + ppc = (char**) pcpcc;
32116 + pcpcc = (char const *const *) ppc;
32117 { /* SCO 3.2v4 cc rejects this. */
32118 char *t;
32119 char const *s = 0 ? (char *) 0 : (char const *) 0;
32120
32121 *t++ = 0;
32122 + if (s) return 0;
32123 }
32124 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
32125 int x[] = {25, 17};
32126 @@ -5855,7 +6449,9 @@ main ()
32127 }
32128 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
32129 const int foo = 10;
32130 + if (!foo) return 0;
32131 }
32132 + return !cs[0] && !zero.x;
32133 #endif
32134
32135 ;
32136 @@ -5863,38 +6459,34 @@ main ()
32137 }
32138 _ACEOF
32139 rm -f conftest.$ac_objext
32140 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32141 - (eval $ac_compile) 2>conftest.er1
32142 +if { (ac_try="$ac_compile"
32143 +case "(($ac_try" in
32144 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32145 + *) ac_try_echo=$ac_try;;
32146 +esac
32147 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32148 + (eval "$ac_compile") 2>conftest.er1
32149 ac_status=$?
32150 grep -v '^ *+' conftest.er1 >conftest.err
32151 rm -f conftest.er1
32152 cat conftest.err >&5
32153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32154 - (exit $ac_status); } &&
32155 - { ac_try='test -z "$ac_c_werror_flag"
32156 - || test ! -s conftest.err'
32157 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32158 - (eval $ac_try) 2>&5
32159 - ac_status=$?
32160 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
32161 - (exit $ac_status); }; } &&
32162 - { ac_try='test -s conftest.$ac_objext'
32163 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32164 - (eval $ac_try) 2>&5
32165 - ac_status=$?
32166 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
32167 - (exit $ac_status); }; }; then
32168 + (exit $ac_status); } && {
32169 + test -z "$ac_c_werror_flag" ||
32170 + test ! -s conftest.err
32171 + } && test -s conftest.$ac_objext; then
32172 ac_cv_c_const=yes
32173 else
32174 echo "$as_me: failed program was:" >&5
32175 sed 's/^/| /' conftest.$ac_ext >&5
32176
32177 -ac_cv_c_const=no
32178 + ac_cv_c_const=no
32179 fi
32180 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32181 +
32182 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32183 fi
32184 -echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
32185 -echo "${ECHO_T}$ac_cv_c_const" >&6
32186 +{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
32187 +echo "${ECHO_T}$ac_cv_c_const" >&6; }
32188 if test $ac_cv_c_const = no; then
32189
32190 cat >>confdefs.h <<\_ACEOF
32191 @@ -5903,8 +6495,8 @@ _ACEOF
32192
32193 fi
32194
32195 -echo "$as_me:$LINENO: checking for inline" >&5
32196 -echo $ECHO_N "checking for inline... $ECHO_C" >&6
32197 +{ echo "$as_me:$LINENO: checking for inline" >&5
32198 +echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
32199 if test "${ac_cv_c_inline+set}" = set; then
32200 echo $ECHO_N "(cached) $ECHO_C" >&6
32201 else
32202 @@ -5924,39 +6516,37 @@ $ac_kw foo_t foo () {return 0; }
32203
32204 _ACEOF
32205 rm -f conftest.$ac_objext
32206 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32207 - (eval $ac_compile) 2>conftest.er1
32208 +if { (ac_try="$ac_compile"
32209 +case "(($ac_try" in
32210 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32211 + *) ac_try_echo=$ac_try;;
32212 +esac
32213 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32214 + (eval "$ac_compile") 2>conftest.er1
32215 ac_status=$?
32216 grep -v '^ *+' conftest.er1 >conftest.err
32217 rm -f conftest.er1
32218 cat conftest.err >&5
32219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32220 - (exit $ac_status); } &&
32221 - { ac_try='test -z "$ac_c_werror_flag"
32222 - || test ! -s conftest.err'
32223 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32224 - (eval $ac_try) 2>&5
32225 - ac_status=$?
32226 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
32227 - (exit $ac_status); }; } &&
32228 - { ac_try='test -s conftest.$ac_objext'
32229 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32230 - (eval $ac_try) 2>&5
32231 - ac_status=$?
32232 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
32233 - (exit $ac_status); }; }; then
32234 - ac_cv_c_inline=$ac_kw; break
32235 + (exit $ac_status); } && {
32236 + test -z "$ac_c_werror_flag" ||
32237 + test ! -s conftest.err
32238 + } && test -s conftest.$ac_objext; then
32239 + ac_cv_c_inline=$ac_kw
32240 else
32241 echo "$as_me: failed program was:" >&5
32242 sed 's/^/| /' conftest.$ac_ext >&5
32243
32244 +
32245 fi
32246 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32247 +
32248 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32249 + test "$ac_cv_c_inline" != no && break
32250 done
32251
32252 fi
32253 -echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
32254 -echo "${ECHO_T}$ac_cv_c_inline" >&6
32255 +{ echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
32256 +echo "${ECHO_T}$ac_cv_c_inline" >&6; }
32257
32258
32259 case $ac_cv_c_inline in
32260 @@ -5988,9 +6578,9 @@ for ac_header in sys/types.h sys/stat.h
32261 inttypes.h stdint.h unistd.h
32262 do
32263 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32264 -echo "$as_me:$LINENO: checking for $ac_header" >&5
32265 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32266 -if eval "test \"\${$as_ac_Header+set}\" = set"; then
32267 +{ echo "$as_me:$LINENO: checking for $ac_header" >&5
32268 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
32269 +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32270 echo $ECHO_N "(cached) $ECHO_C" >&6
32271 else
32272 cat >conftest.$ac_ext <<_ACEOF
32273 @@ -6004,38 +6594,35 @@ $ac_includes_default
32274 #include <$ac_header>
32275 _ACEOF
32276 rm -f conftest.$ac_objext
32277 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32278 - (eval $ac_compile) 2>conftest.er1
32279 +if { (ac_try="$ac_compile"
32280 +case "(($ac_try" in
32281 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32282 + *) ac_try_echo=$ac_try;;
32283 +esac
32284 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32285 + (eval "$ac_compile") 2>conftest.er1
32286 ac_status=$?
32287 grep -v '^ *+' conftest.er1 >conftest.err
32288 rm -f conftest.er1
32289 cat conftest.err >&5
32290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32291 - (exit $ac_status); } &&
32292 - { ac_try='test -z "$ac_c_werror_flag"
32293 - || test ! -s conftest.err'
32294 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32295 - (eval $ac_try) 2>&5
32296 - ac_status=$?
32297 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
32298 - (exit $ac_status); }; } &&
32299 - { ac_try='test -s conftest.$ac_objext'
32300 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32301 - (eval $ac_try) 2>&5
32302 - ac_status=$?
32303 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
32304 - (exit $ac_status); }; }; then
32305 + (exit $ac_status); } && {
32306 + test -z "$ac_c_werror_flag" ||
32307 + test ! -s conftest.err
32308 + } && test -s conftest.$ac_objext; then
32309 eval "$as_ac_Header=yes"
32310 else
32311 echo "$as_me: failed program was:" >&5
32312 sed 's/^/| /' conftest.$ac_ext >&5
32313
32314 -eval "$as_ac_Header=no"
32315 + eval "$as_ac_Header=no"
32316 fi
32317 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32318 +
32319 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32320 fi
32321 -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32322 -echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32323 +ac_res=`eval echo '${'$as_ac_Header'}'`
32324 + { echo "$as_me:$LINENO: result: $ac_res" >&5
32325 +echo "${ECHO_T}$ac_res" >&6; }
32326 if test `eval echo '${'$as_ac_Header'}'` = yes; then
32327 cat >>confdefs.h <<_ACEOF
32328 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32329 @@ -6046,8 +6633,8 @@ fi
32330 done
32331
32332
32333 -echo "$as_me:$LINENO: checking for off_t" >&5
32334 -echo $ECHO_N "checking for off_t... $ECHO_C" >&6
32335 +{ echo "$as_me:$LINENO: checking for off_t" >&5
32336 +echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
32337 if test "${ac_cv_type_off_t+set}" = set; then
32338 echo $ECHO_N "(cached) $ECHO_C" >&6
32339 else
32340 @@ -6058,62 +6645,59 @@ cat confdefs.h >>conftest.$ac_ext
32341 cat >>conftest.$ac_ext <<_ACEOF
32342 /* end confdefs.h. */
32343 $ac_includes_default
32344 +typedef off_t ac__type_new_;
32345 int
32346 main ()
32347 {
32348 -if ((off_t *) 0)
32349 +if ((ac__type_new_ *) 0)
32350 return 0;
32351 -if (sizeof (off_t))
32352 +if (sizeof (ac__type_new_))
32353 return 0;
32354 ;
32355 return 0;
32356 }
32357 _ACEOF
32358 rm -f conftest.$ac_objext
32359 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32360 - (eval $ac_compile) 2>conftest.er1
32361 +if { (ac_try="$ac_compile"
32362 +case "(($ac_try" in
32363 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32364 + *) ac_try_echo=$ac_try;;
32365 +esac
32366 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32367 + (eval "$ac_compile") 2>conftest.er1
32368 ac_status=$?
32369 grep -v '^ *+' conftest.er1 >conftest.err
32370 rm -f conftest.er1
32371 cat conftest.err >&5
32372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32373 - (exit $ac_status); } &&
32374 - { ac_try='test -z "$ac_c_werror_flag"
32375 - || test ! -s conftest.err'
32376 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32377 - (eval $ac_try) 2>&5
32378 - ac_status=$?
32379 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
32380 - (exit $ac_status); }; } &&
32381 - { ac_try='test -s conftest.$ac_objext'
32382 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32383 - (eval $ac_try) 2>&5
32384 - ac_status=$?
32385 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
32386 - (exit $ac_status); }; }; then
32387 + (exit $ac_status); } && {
32388 + test -z "$ac_c_werror_flag" ||
32389 + test ! -s conftest.err
32390 + } && test -s conftest.$ac_objext; then
32391 ac_cv_type_off_t=yes
32392 else
32393 echo "$as_me: failed program was:" >&5
32394 sed 's/^/| /' conftest.$ac_ext >&5
32395
32396 -ac_cv_type_off_t=no
32397 + ac_cv_type_off_t=no
32398 fi
32399 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32400 +
32401 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32402 fi
32403 -echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
32404 -echo "${ECHO_T}$ac_cv_type_off_t" >&6
32405 +{ echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
32406 +echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
32407 if test $ac_cv_type_off_t = yes; then
32408 :
32409 else
32410
32411 cat >>confdefs.h <<_ACEOF
32412 -#define off_t long
32413 +#define off_t long int
32414 _ACEOF
32415
32416 fi
32417
32418 -echo "$as_me:$LINENO: checking for size_t" >&5
32419 -echo $ECHO_N "checking for size_t... $ECHO_C" >&6
32420 +{ echo "$as_me:$LINENO: checking for size_t" >&5
32421 +echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
32422 if test "${ac_cv_type_size_t+set}" = set; then
32423 echo $ECHO_N "(cached) $ECHO_C" >&6
32424 else
32425 @@ -6124,64 +6708,61 @@ cat confdefs.h >>conftest.$ac_ext
32426 cat >>conftest.$ac_ext <<_ACEOF
32427 /* end confdefs.h. */
32428 $ac_includes_default
32429 +typedef size_t ac__type_new_;
32430 int
32431 main ()
32432 {
32433 -if ((size_t *) 0)
32434 +if ((ac__type_new_ *) 0)
32435 return 0;
32436 -if (sizeof (size_t))
32437 +if (sizeof (ac__type_new_))
32438 return 0;
32439 ;
32440 return 0;
32441 }
32442 _ACEOF
32443 rm -f conftest.$ac_objext
32444 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32445 - (eval $ac_compile) 2>conftest.er1
32446 +if { (ac_try="$ac_compile"
32447 +case "(($ac_try" in
32448 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32449 + *) ac_try_echo=$ac_try;;
32450 +esac
32451 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32452 + (eval "$ac_compile") 2>conftest.er1
32453 ac_status=$?
32454 grep -v '^ *+' conftest.er1 >conftest.err
32455 rm -f conftest.er1
32456 cat conftest.err >&5
32457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32458 - (exit $ac_status); } &&
32459 - { ac_try='test -z "$ac_c_werror_flag"
32460 - || test ! -s conftest.err'
32461 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32462 - (eval $ac_try) 2>&5
32463 - ac_status=$?
32464 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
32465 - (exit $ac_status); }; } &&
32466 - { ac_try='test -s conftest.$ac_objext'
32467 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32468 - (eval $ac_try) 2>&5
32469 - ac_status=$?
32470 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
32471 - (exit $ac_status); }; }; then
32472 + (exit $ac_status); } && {
32473 + test -z "$ac_c_werror_flag" ||
32474 + test ! -s conftest.err
32475 + } && test -s conftest.$ac_objext; then
32476 ac_cv_type_size_t=yes
32477 else
32478 echo "$as_me: failed program was:" >&5
32479 sed 's/^/| /' conftest.$ac_ext >&5
32480
32481 -ac_cv_type_size_t=no
32482 + ac_cv_type_size_t=no
32483 fi
32484 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32485 +
32486 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32487 fi
32488 -echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
32489 -echo "${ECHO_T}$ac_cv_type_size_t" >&6
32490 +{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
32491 +echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
32492 if test $ac_cv_type_size_t = yes; then
32493 :
32494 else
32495
32496 cat >>confdefs.h <<_ACEOF
32497 -#define size_t unsigned
32498 +#define size_t unsigned int
32499 _ACEOF
32500
32501 fi
32502
32503 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
32504 # for constant arguments. Useless!
32505 -echo "$as_me:$LINENO: checking for working alloca.h" >&5
32506 -echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
32507 +{ echo "$as_me:$LINENO: checking for working alloca.h" >&5
32508 +echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
32509 if test "${ac_cv_working_alloca_h+set}" = set; then
32510 echo $ECHO_N "(cached) $ECHO_C" >&6
32511 else
32512 @@ -6196,44 +6777,42 @@ int
32513 main ()
32514 {
32515 char *p = (char *) alloca (2 * sizeof (int));
32516 + if (p) return 0;
32517 ;
32518 return 0;
32519 }
32520 _ACEOF
32521 rm -f conftest.$ac_objext conftest$ac_exeext
32522 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32523 - (eval $ac_link) 2>conftest.er1
32524 +if { (ac_try="$ac_link"
32525 +case "(($ac_try" in
32526 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32527 + *) ac_try_echo=$ac_try;;
32528 +esac
32529 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32530 + (eval "$ac_link") 2>conftest.er1
32531 ac_status=$?
32532 grep -v '^ *+' conftest.er1 >conftest.err
32533 rm -f conftest.er1
32534 cat conftest.err >&5
32535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32536 - (exit $ac_status); } &&
32537 - { ac_try='test -z "$ac_c_werror_flag"
32538 - || test ! -s conftest.err'
32539 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32540 - (eval $ac_try) 2>&5
32541 - ac_status=$?
32542 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
32543 - (exit $ac_status); }; } &&
32544 - { ac_try='test -s conftest$ac_exeext'
32545 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32546 - (eval $ac_try) 2>&5
32547 - ac_status=$?
32548 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
32549 - (exit $ac_status); }; }; then
32550 + (exit $ac_status); } && {
32551 + test -z "$ac_c_werror_flag" ||
32552 + test ! -s conftest.err
32553 + } && test -s conftest$ac_exeext &&
32554 + $as_test_x conftest$ac_exeext; then
32555 ac_cv_working_alloca_h=yes
32556 else
32557 echo "$as_me: failed program was:" >&5
32558 sed 's/^/| /' conftest.$ac_ext >&5
32559
32560 -ac_cv_working_alloca_h=no
32561 + ac_cv_working_alloca_h=no
32562 fi
32563 -rm -f conftest.err conftest.$ac_objext \
32564 +
32565 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32566 conftest$ac_exeext conftest.$ac_ext
32567 fi
32568 -echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
32569 -echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
32570 +{ echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
32571 +echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
32572 if test $ac_cv_working_alloca_h = yes; then
32573
32574 cat >>confdefs.h <<\_ACEOF
32575 @@ -6242,8 +6821,8 @@ _ACEOF
32576
32577 fi
32578
32579 -echo "$as_me:$LINENO: checking for alloca" >&5
32580 -echo $ECHO_N "checking for alloca... $ECHO_C" >&6
32581 +{ echo "$as_me:$LINENO: checking for alloca" >&5
32582 +echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
32583 if test "${ac_cv_func_alloca_works+set}" = set; then
32584 echo $ECHO_N "(cached) $ECHO_C" >&6
32585 else
32586 @@ -6260,7 +6839,7 @@ cat >>conftest.$ac_ext <<_ACEOF
32587 # include <malloc.h>
32588 # define alloca _alloca
32589 # else
32590 -# if HAVE_ALLOCA_H
32591 +# ifdef HAVE_ALLOCA_H
32592 # include <alloca.h>
32593 # else
32594 # ifdef _AIX
32595 @@ -6278,44 +6857,42 @@ int
32596 main ()
32597 {
32598 char *p = (char *) alloca (1);
32599 + if (p) return 0;
32600 ;
32601 return 0;
32602 }
32603 _ACEOF
32604 rm -f conftest.$ac_objext conftest$ac_exeext
32605 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32606 - (eval $ac_link) 2>conftest.er1
32607 +if { (ac_try="$ac_link"
32608 +case "(($ac_try" in
32609 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32610 + *) ac_try_echo=$ac_try;;
32611 +esac
32612 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32613 + (eval "$ac_link") 2>conftest.er1
32614 ac_status=$?
32615 grep -v '^ *+' conftest.er1 >conftest.err
32616 rm -f conftest.er1
32617 cat conftest.err >&5
32618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32619 - (exit $ac_status); } &&
32620 - { ac_try='test -z "$ac_c_werror_flag"
32621 - || test ! -s conftest.err'
32622 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32623 - (eval $ac_try) 2>&5
32624 - ac_status=$?
32625 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
32626 - (exit $ac_status); }; } &&
32627 - { ac_try='test -s conftest$ac_exeext'
32628 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32629 - (eval $ac_try) 2>&5
32630 - ac_status=$?
32631 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
32632 - (exit $ac_status); }; }; then
32633 + (exit $ac_status); } && {
32634 + test -z "$ac_c_werror_flag" ||
32635 + test ! -s conftest.err
32636 + } && test -s conftest$ac_exeext &&
32637 + $as_test_x conftest$ac_exeext; then
32638 ac_cv_func_alloca_works=yes
32639 else
32640 echo "$as_me: failed program was:" >&5
32641 sed 's/^/| /' conftest.$ac_ext >&5
32642
32643 -ac_cv_func_alloca_works=no
32644 + ac_cv_func_alloca_works=no
32645 fi
32646 -rm -f conftest.err conftest.$ac_objext \
32647 +
32648 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32649 conftest$ac_exeext conftest.$ac_ext
32650 fi
32651 -echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
32652 -echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
32653 +{ echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
32654 +echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
32655
32656 if test $ac_cv_func_alloca_works = yes; then
32657
32658 @@ -6329,15 +6906,15 @@ else
32659 # contain a buggy version. If you still want to use their alloca,
32660 # use ar to extract alloca.o from them instead of compiling alloca.c.
32661
32662 -ALLOCA=alloca.$ac_objext
32663 +ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
32664
32665 cat >>confdefs.h <<\_ACEOF
32666 #define C_ALLOCA 1
32667 _ACEOF
32668
32669
32670 -echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
32671 -echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
32672 +{ echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
32673 +echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
32674 if test "${ac_cv_os_cray+set}" = set; then
32675 echo $ECHO_N "(cached) $ECHO_C" >&6
32676 else
32677 @@ -6347,7 +6924,7 @@ _ACEOF
32678 cat confdefs.h >>conftest.$ac_ext
32679 cat >>conftest.$ac_ext <<_ACEOF
32680 /* end confdefs.h. */
32681 -#if defined(CRAY) && ! defined(CRAY2)
32682 +#if defined CRAY && ! defined CRAY2
32683 webecray
32684 #else
32685 wenotbecray
32686 @@ -6363,14 +6940,14 @@ fi
32687 rm -f conftest*
32688
32689 fi
32690 -echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
32691 -echo "${ECHO_T}$ac_cv_os_cray" >&6
32692 +{ echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
32693 +echo "${ECHO_T}$ac_cv_os_cray" >&6; }
32694 if test $ac_cv_os_cray = yes; then
32695 for ac_func in _getb67 GETB67 getb67; do
32696 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32697 -echo "$as_me:$LINENO: checking for $ac_func" >&5
32698 -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32699 -if eval "test \"\${$as_ac_var+set}\" = set"; then
32700 +{ echo "$as_me:$LINENO: checking for $ac_func" >&5
32701 +echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32702 +if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32703 echo $ECHO_N "(cached) $ECHO_C" >&6
32704 else
32705 cat >conftest.$ac_ext <<_ACEOF
32706 @@ -6396,68 +6973,60 @@ cat >>conftest.$ac_ext <<_ACEOF
32707
32708 #undef $ac_func
32709
32710 -/* Override any gcc2 internal prototype to avoid an error. */
32711 +/* Override any GCC internal prototype to avoid an error.
32712 + Use char because int might match the return type of a GCC
32713 + builtin and then its argument prototype would still apply. */
32714 #ifdef __cplusplus
32715 extern "C"
32716 -{
32717 #endif
32718 -/* We use char because int might match the return type of a gcc2
32719 - builtin and then its argument prototype would still apply. */
32720 char $ac_func ();
32721 /* The GNU C library defines this for functions which it implements
32722 to always fail with ENOSYS. Some functions are actually named
32723 something starting with __ and the normal name is an alias. */
32724 -#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32725 +#if defined __stub_$ac_func || defined __stub___$ac_func
32726 choke me
32727 -#else
32728 -char (*f) () = $ac_func;
32729 -#endif
32730 -#ifdef __cplusplus
32731 -}
32732 #endif
32733
32734 int
32735 main ()
32736 {
32737 -return f != $ac_func;
32738 +return $ac_func ();
32739 ;
32740 return 0;
32741 }
32742 _ACEOF
32743 rm -f conftest.$ac_objext conftest$ac_exeext
32744 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32745 - (eval $ac_link) 2>conftest.er1
32746 +if { (ac_try="$ac_link"
32747 +case "(($ac_try" in
32748 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32749 + *) ac_try_echo=$ac_try;;
32750 +esac
32751 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32752 + (eval "$ac_link") 2>conftest.er1
32753 ac_status=$?
32754 grep -v '^ *+' conftest.er1 >conftest.err
32755 rm -f conftest.er1
32756 cat conftest.err >&5
32757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32758 - (exit $ac_status); } &&
32759 - { ac_try='test -z "$ac_c_werror_flag"
32760 - || test ! -s conftest.err'
32761 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32762 - (eval $ac_try) 2>&5
32763 - ac_status=$?
32764 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
32765 - (exit $ac_status); }; } &&
32766 - { ac_try='test -s conftest$ac_exeext'
32767 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32768 - (eval $ac_try) 2>&5
32769 - ac_status=$?
32770 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
32771 - (exit $ac_status); }; }; then
32772 + (exit $ac_status); } && {
32773 + test -z "$ac_c_werror_flag" ||
32774 + test ! -s conftest.err
32775 + } && test -s conftest$ac_exeext &&
32776 + $as_test_x conftest$ac_exeext; then
32777 eval "$as_ac_var=yes"
32778 else
32779 echo "$as_me: failed program was:" >&5
32780 sed 's/^/| /' conftest.$ac_ext >&5
32781
32782 -eval "$as_ac_var=no"
32783 + eval "$as_ac_var=no"
32784 fi
32785 -rm -f conftest.err conftest.$ac_objext \
32786 +
32787 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32788 conftest$ac_exeext conftest.$ac_ext
32789 fi
32790 -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32791 -echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32792 +ac_res=`eval echo '${'$as_ac_var'}'`
32793 + { echo "$as_me:$LINENO: result: $ac_res" >&5
32794 +echo "${ECHO_T}$ac_res" >&6; }
32795 if test `eval echo '${'$as_ac_var'}'` = yes; then
32796
32797 cat >>confdefs.h <<_ACEOF
32798 @@ -6470,8 +7039,8 @@ fi
32799 done
32800 fi
32801
32802 -echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
32803 -echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
32804 +{ echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
32805 +echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
32806 if test "${ac_cv_c_stack_direction+set}" = set; then
32807 echo $ECHO_N "(cached) $ECHO_C" >&6
32808 else
32809 @@ -6484,6 +7053,7 @@ _ACEOF
32810 cat confdefs.h >>conftest.$ac_ext
32811 cat >>conftest.$ac_ext <<_ACEOF
32812 /* end confdefs.h. */
32813 +$ac_includes_default
32814 int
32815 find_stack_direction ()
32816 {
32817 @@ -6501,17 +7071,26 @@ find_stack_direction ()
32818 int
32819 main ()
32820 {
32821 - exit (find_stack_direction () < 0);
32822 + return find_stack_direction () < 0;
32823 }
32824 _ACEOF
32825 rm -f conftest$ac_exeext
32826 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32827 - (eval $ac_link) 2>&5
32828 +if { (ac_try="$ac_link"
32829 +case "(($ac_try" in
32830 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32831 + *) ac_try_echo=$ac_try;;
32832 +esac
32833 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32834 + (eval "$ac_link") 2>&5
32835 ac_status=$?
32836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32837 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32838 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32839 - (eval $ac_try) 2>&5
32840 + { (case "(($ac_try" in
32841 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32842 + *) ac_try_echo=$ac_try;;
32843 +esac
32844 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32845 + (eval "$ac_try") 2>&5
32846 ac_status=$?
32847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32848 (exit $ac_status); }; }; then
32849 @@ -6524,11 +7103,13 @@ sed 's/^/| /' conftest.$ac_ext >&5
32850 ( exit $ac_status )
32851 ac_cv_c_stack_direction=-1
32852 fi
32853 -rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32854 +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32855 fi
32856 +
32857 +
32858 fi
32859 -echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
32860 -echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
32861 +{ echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
32862 +echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
32863
32864 cat >>confdefs.h <<_ACEOF
32865 #define STACK_DIRECTION $ac_cv_c_stack_direction
32866 @@ -6542,18 +7123,19 @@ fi
32867 for ac_header in stdlib.h unistd.h
32868 do
32869 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32870 -if eval "test \"\${$as_ac_Header+set}\" = set"; then
32871 - echo "$as_me:$LINENO: checking for $ac_header" >&5
32872 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32873 -if eval "test \"\${$as_ac_Header+set}\" = set"; then
32874 +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32875 + { echo "$as_me:$LINENO: checking for $ac_header" >&5
32876 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
32877 +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32878 echo $ECHO_N "(cached) $ECHO_C" >&6
32879 fi
32880 -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32881 -echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32882 +ac_res=`eval echo '${'$as_ac_Header'}'`
32883 + { echo "$as_me:$LINENO: result: $ac_res" >&5
32884 +echo "${ECHO_T}$ac_res" >&6; }
32885 else
32886 # Is the header compilable?
32887 -echo "$as_me:$LINENO: checking $ac_header usability" >&5
32888 -echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
32889 +{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
32890 +echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
32891 cat >conftest.$ac_ext <<_ACEOF
32892 /* confdefs.h. */
32893 _ACEOF
32894 @@ -6564,41 +7146,37 @@ $ac_includes_default
32895 #include <$ac_header>
32896 _ACEOF
32897 rm -f conftest.$ac_objext
32898 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32899 - (eval $ac_compile) 2>conftest.er1
32900 +if { (ac_try="$ac_compile"
32901 +case "(($ac_try" in
32902 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32903 + *) ac_try_echo=$ac_try;;
32904 +esac
32905 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32906 + (eval "$ac_compile") 2>conftest.er1
32907 ac_status=$?
32908 grep -v '^ *+' conftest.er1 >conftest.err
32909 rm -f conftest.er1
32910 cat conftest.err >&5
32911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32912 - (exit $ac_status); } &&
32913 - { ac_try='test -z "$ac_c_werror_flag"
32914 - || test ! -s conftest.err'
32915 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32916 - (eval $ac_try) 2>&5
32917 - ac_status=$?
32918 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
32919 - (exit $ac_status); }; } &&
32920 - { ac_try='test -s conftest.$ac_objext'
32921 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32922 - (eval $ac_try) 2>&5
32923 - ac_status=$?
32924 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
32925 - (exit $ac_status); }; }; then
32926 + (exit $ac_status); } && {
32927 + test -z "$ac_c_werror_flag" ||
32928 + test ! -s conftest.err
32929 + } && test -s conftest.$ac_objext; then
32930 ac_header_compiler=yes
32931 else
32932 echo "$as_me: failed program was:" >&5
32933 sed 's/^/| /' conftest.$ac_ext >&5
32934
32935 -ac_header_compiler=no
32936 + ac_header_compiler=no
32937 fi
32938 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32939 -echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32940 -echo "${ECHO_T}$ac_header_compiler" >&6
32941 +
32942 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32943 +{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32944 +echo "${ECHO_T}$ac_header_compiler" >&6; }
32945
32946 # Is the header present?
32947 -echo "$as_me:$LINENO: checking $ac_header presence" >&5
32948 -echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
32949 +{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
32950 +echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
32951 cat >conftest.$ac_ext <<_ACEOF
32952 /* confdefs.h. */
32953 _ACEOF
32954 @@ -6607,24 +7185,22 @@ cat >>conftest.$ac_ext <<_ACEOF
32955 /* end confdefs.h. */
32956 #include <$ac_header>
32957 _ACEOF
32958 -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32959 - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
32960 +if { (ac_try="$ac_cpp conftest.$ac_ext"
32961 +case "(($ac_try" in
32962 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32963 + *) ac_try_echo=$ac_try;;
32964 +esac
32965 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32966 + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32967 ac_status=$?
32968 grep -v '^ *+' conftest.er1 >conftest.err
32969 rm -f conftest.er1
32970 cat conftest.err >&5
32971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32972 - (exit $ac_status); } >/dev/null; then
32973 - if test -s conftest.err; then
32974 - ac_cpp_err=$ac_c_preproc_warn_flag
32975 - ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
32976 - else
32977 - ac_cpp_err=
32978 - fi
32979 -else
32980 - ac_cpp_err=yes
32981 -fi
32982 -if test -z "$ac_cpp_err"; then
32983 + (exit $ac_status); } >/dev/null && {
32984 + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32985 + test ! -s conftest.err
32986 + }; then
32987 ac_header_preproc=yes
32988 else
32989 echo "$as_me: failed program was:" >&5
32990 @@ -6632,9 +7208,10 @@ sed 's/^/| /' conftest.$ac_ext >&5
32991
32992 ac_header_preproc=no
32993 fi
32994 +
32995 rm -f conftest.err conftest.$ac_ext
32996 -echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32997 -echo "${ECHO_T}$ac_header_preproc" >&6
32998 +{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32999 +echo "${ECHO_T}$ac_header_preproc" >&6; }
33000
33001 # So? What about this header?
33002 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33003 @@ -6658,25 +7235,19 @@ echo "$as_me: WARNING: $ac_header: s
33004 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33005 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33006 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
33007 - (
33008 - cat <<\_ASBOX
33009 -## ------------------------------------------ ##
33010 -## Report this to the AC_PACKAGE_NAME lists. ##
33011 -## ------------------------------------------ ##
33012 -_ASBOX
33013 - ) |
33014 - sed "s/^/$as_me: WARNING: /" >&2
33015 +
33016 ;;
33017 esac
33018 -echo "$as_me:$LINENO: checking for $ac_header" >&5
33019 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33020 -if eval "test \"\${$as_ac_Header+set}\" = set"; then
33021 +{ echo "$as_me:$LINENO: checking for $ac_header" >&5
33022 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33023 +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33024 echo $ECHO_N "(cached) $ECHO_C" >&6
33025 else
33026 eval "$as_ac_Header=\$ac_header_preproc"
33027 fi
33028 -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33029 -echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33030 +ac_res=`eval echo '${'$as_ac_Header'}'`
33031 + { echo "$as_me:$LINENO: result: $ac_res" >&5
33032 +echo "${ECHO_T}$ac_res" >&6; }
33033
33034 fi
33035 if test `eval echo '${'$as_ac_Header'}'` = yes; then
33036 @@ -6692,9 +7263,9 @@ done
33037 for ac_func in getpagesize
33038 do
33039 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33040 -echo "$as_me:$LINENO: checking for $ac_func" >&5
33041 -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33042 -if eval "test \"\${$as_ac_var+set}\" = set"; then
33043 +{ echo "$as_me:$LINENO: checking for $ac_func" >&5
33044 +echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33045 +if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33046 echo $ECHO_N "(cached) $ECHO_C" >&6
33047 else
33048 cat >conftest.$ac_ext <<_ACEOF
33049 @@ -6720,68 +7291,60 @@ cat >>conftest.$ac_ext <<_ACEOF
33050
33051 #undef $ac_func
33052
33053 -/* Override any gcc2 internal prototype to avoid an error. */
33054 +/* Override any GCC internal prototype to avoid an error.
33055 + Use char because int might match the return type of a GCC
33056 + builtin and then its argument prototype would still apply. */
33057 #ifdef __cplusplus
33058 extern "C"
33059 -{
33060 #endif
33061 -/* We use char because int might match the return type of a gcc2
33062 - builtin and then its argument prototype would still apply. */
33063 char $ac_func ();
33064 /* The GNU C library defines this for functions which it implements
33065 to always fail with ENOSYS. Some functions are actually named
33066 something starting with __ and the normal name is an alias. */
33067 -#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33068 +#if defined __stub_$ac_func || defined __stub___$ac_func
33069 choke me
33070 -#else
33071 -char (*f) () = $ac_func;
33072 -#endif
33073 -#ifdef __cplusplus
33074 -}
33075 #endif
33076
33077 int
33078 main ()
33079 {
33080 -return f != $ac_func;
33081 +return $ac_func ();
33082 ;
33083 return 0;
33084 }
33085 _ACEOF
33086 rm -f conftest.$ac_objext conftest$ac_exeext
33087 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33088 - (eval $ac_link) 2>conftest.er1
33089 +if { (ac_try="$ac_link"
33090 +case "(($ac_try" in
33091 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33092 + *) ac_try_echo=$ac_try;;
33093 +esac
33094 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33095 + (eval "$ac_link") 2>conftest.er1
33096 ac_status=$?
33097 grep -v '^ *+' conftest.er1 >conftest.err
33098 rm -f conftest.er1
33099 cat conftest.err >&5
33100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33101 - (exit $ac_status); } &&
33102 - { ac_try='test -z "$ac_c_werror_flag"
33103 - || test ! -s conftest.err'
33104 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33105 - (eval $ac_try) 2>&5
33106 - ac_status=$?
33107 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
33108 - (exit $ac_status); }; } &&
33109 - { ac_try='test -s conftest$ac_exeext'
33110 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33111 - (eval $ac_try) 2>&5
33112 - ac_status=$?
33113 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
33114 - (exit $ac_status); }; }; then
33115 + (exit $ac_status); } && {
33116 + test -z "$ac_c_werror_flag" ||
33117 + test ! -s conftest.err
33118 + } && test -s conftest$ac_exeext &&
33119 + $as_test_x conftest$ac_exeext; then
33120 eval "$as_ac_var=yes"
33121 else
33122 echo "$as_me: failed program was:" >&5
33123 sed 's/^/| /' conftest.$ac_ext >&5
33124
33125 -eval "$as_ac_var=no"
33126 + eval "$as_ac_var=no"
33127 fi
33128 -rm -f conftest.err conftest.$ac_objext \
33129 +
33130 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33131 conftest$ac_exeext conftest.$ac_ext
33132 fi
33133 -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33134 -echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33135 +ac_res=`eval echo '${'$as_ac_var'}'`
33136 + { echo "$as_me:$LINENO: result: $ac_res" >&5
33137 +echo "${ECHO_T}$ac_res" >&6; }
33138 if test `eval echo '${'$as_ac_var'}'` = yes; then
33139 cat >>confdefs.h <<_ACEOF
33140 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33141 @@ -6790,8 +7353,8 @@ _ACEOF
33142 fi
33143 done
33144
33145 -echo "$as_me:$LINENO: checking for working mmap" >&5
33146 -echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
33147 +{ echo "$as_me:$LINENO: checking for working mmap" >&5
33148 +echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
33149 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
33150 echo $ECHO_N "(cached) $ECHO_C" >&6
33151 else
33152 @@ -6833,21 +7396,21 @@ $ac_includes_default
33153 #include <fcntl.h>
33154 #include <sys/mman.h>
33155
33156 -#if !STDC_HEADERS && !HAVE_STDLIB_H
33157 +#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
33158 char *malloc ();
33159 #endif
33160
33161 /* This mess was copied from the GNU getpagesize.h. */
33162 -#if !HAVE_GETPAGESIZE
33163 +#ifndef HAVE_GETPAGESIZE
33164 /* Assume that all systems that can run configure have sys/param.h. */
33165 -# if !HAVE_SYS_PARAM_H
33166 +# ifndef HAVE_SYS_PARAM_H
33167 # define HAVE_SYS_PARAM_H 1
33168 # endif
33169
33170 # ifdef _SC_PAGESIZE
33171 # define getpagesize() sysconf(_SC_PAGESIZE)
33172 # else /* no _SC_PAGESIZE */
33173 -# if HAVE_SYS_PARAM_H
33174 +# ifdef HAVE_SYS_PARAM_H
33175 # include <sys/param.h>
33176 # ifdef EXEC_PAGESIZE
33177 # define getpagesize() EXEC_PAGESIZE
33178 @@ -6886,15 +7449,15 @@ main ()
33179 /* First, make a file with some known garbage in it. */
33180 data = (char *) malloc (pagesize);
33181 if (!data)
33182 - exit (1);
33183 + return 1;
33184 for (i = 0; i < pagesize; ++i)
33185 *(data + i) = rand ();
33186 umask (0);
33187 fd = creat ("conftest.mmap", 0600);
33188 if (fd < 0)
33189 - exit (1);
33190 + return 1;
33191 if (write (fd, data, pagesize) != pagesize)
33192 - exit (1);
33193 + return 1;
33194 close (fd);
33195
33196 /* Next, try to mmap the file at a fixed address which already has
33197 @@ -6902,17 +7465,17 @@ main ()
33198 we see the same garbage. */
33199 fd = open ("conftest.mmap", O_RDWR);
33200 if (fd < 0)
33201 - exit (1);
33202 + return 1;
33203 data2 = (char *) malloc (2 * pagesize);
33204 if (!data2)
33205 - exit (1);
33206 - data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
33207 + return 1;
33208 + data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
33209 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
33210 MAP_PRIVATE | MAP_FIXED, fd, 0L))
33211 - exit (1);
33212 + return 1;
33213 for (i = 0; i < pagesize; ++i)
33214 if (*(data + i) != *(data2 + i))
33215 - exit (1);
33216 + return 1;
33217
33218 /* Finally, make sure that changes to the mapped area do not
33219 percolate back to the file as seen by read(). (This is a bug on
33220 @@ -6921,24 +7484,33 @@ main ()
33221 *(data2 + i) = *(data2 + i) + 1;
33222 data3 = (char *) malloc (pagesize);
33223 if (!data3)
33224 - exit (1);
33225 + return 1;
33226 if (read (fd, data3, pagesize) != pagesize)
33227 - exit (1);
33228 + return 1;
33229 for (i = 0; i < pagesize; ++i)
33230 if (*(data + i) != *(data3 + i))
33231 - exit (1);
33232 + return 1;
33233 close (fd);
33234 - exit (0);
33235 + return 0;
33236 }
33237 _ACEOF
33238 rm -f conftest$ac_exeext
33239 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33240 - (eval $ac_link) 2>&5
33241 +if { (ac_try="$ac_link"
33242 +case "(($ac_try" in
33243 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33244 + *) ac_try_echo=$ac_try;;
33245 +esac
33246 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33247 + (eval "$ac_link") 2>&5
33248 ac_status=$?
33249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33250 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33251 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33252 - (eval $ac_try) 2>&5
33253 + { (case "(($ac_try" in
33254 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33255 + *) ac_try_echo=$ac_try;;
33256 +esac
33257 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33258 + (eval "$ac_try") 2>&5
33259 ac_status=$?
33260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33261 (exit $ac_status); }; }; then
33262 @@ -6951,11 +7523,13 @@ sed 's/^/| /' conftest.$ac_ext >&5
33263 ( exit $ac_status )
33264 ac_cv_func_mmap_fixed_mapped=no
33265 fi
33266 -rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33267 +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33268 fi
33269 +
33270 +
33271 fi
33272 -echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
33273 -echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
33274 +{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
33275 +echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
33276 if test $ac_cv_func_mmap_fixed_mapped = yes; then
33277
33278 cat >>confdefs.h <<\_ACEOF
33279 @@ -6979,18 +7553,19 @@ for ac_header in argz.h limits.h locale.
33280 unistd.h values.h sys/param.h
33281 do
33282 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33283 -if eval "test \"\${$as_ac_Header+set}\" = set"; then
33284 - echo "$as_me:$LINENO: checking for $ac_header" >&5
33285 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33286 -if eval "test \"\${$as_ac_Header+set}\" = set"; then
33287 +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33288 + { echo "$as_me:$LINENO: checking for $ac_header" >&5
33289 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33290 +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33291 echo $ECHO_N "(cached) $ECHO_C" >&6
33292 fi
33293 -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33294 -echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33295 +ac_res=`eval echo '${'$as_ac_Header'}'`
33296 + { echo "$as_me:$LINENO: result: $ac_res" >&5
33297 +echo "${ECHO_T}$ac_res" >&6; }
33298 else
33299 # Is the header compilable?
33300 -echo "$as_me:$LINENO: checking $ac_header usability" >&5
33301 -echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
33302 +{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
33303 +echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
33304 cat >conftest.$ac_ext <<_ACEOF
33305 /* confdefs.h. */
33306 _ACEOF
33307 @@ -7001,41 +7576,37 @@ $ac_includes_default
33308 #include <$ac_header>
33309 _ACEOF
33310 rm -f conftest.$ac_objext
33311 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33312 - (eval $ac_compile) 2>conftest.er1
33313 +if { (ac_try="$ac_compile"
33314 +case "(($ac_try" in
33315 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33316 + *) ac_try_echo=$ac_try;;
33317 +esac
33318 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33319 + (eval "$ac_compile") 2>conftest.er1
33320 ac_status=$?
33321 grep -v '^ *+' conftest.er1 >conftest.err
33322 rm -f conftest.er1
33323 cat conftest.err >&5
33324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33325 - (exit $ac_status); } &&
33326 - { ac_try='test -z "$ac_c_werror_flag"
33327 - || test ! -s conftest.err'
33328 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33329 - (eval $ac_try) 2>&5
33330 - ac_status=$?
33331 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
33332 - (exit $ac_status); }; } &&
33333 - { ac_try='test -s conftest.$ac_objext'
33334 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33335 - (eval $ac_try) 2>&5
33336 - ac_status=$?
33337 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
33338 - (exit $ac_status); }; }; then
33339 + (exit $ac_status); } && {
33340 + test -z "$ac_c_werror_flag" ||
33341 + test ! -s conftest.err
33342 + } && test -s conftest.$ac_objext; then
33343 ac_header_compiler=yes
33344 else
33345 echo "$as_me: failed program was:" >&5
33346 sed 's/^/| /' conftest.$ac_ext >&5
33347
33348 -ac_header_compiler=no
33349 + ac_header_compiler=no
33350 fi
33351 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33352 -echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33353 -echo "${ECHO_T}$ac_header_compiler" >&6
33354 +
33355 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33356 +{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33357 +echo "${ECHO_T}$ac_header_compiler" >&6; }
33358
33359 # Is the header present?
33360 -echo "$as_me:$LINENO: checking $ac_header presence" >&5
33361 -echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
33362 +{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
33363 +echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
33364 cat >conftest.$ac_ext <<_ACEOF
33365 /* confdefs.h. */
33366 _ACEOF
33367 @@ -7044,24 +7615,22 @@ cat >>conftest.$ac_ext <<_ACEOF
33368 /* end confdefs.h. */
33369 #include <$ac_header>
33370 _ACEOF
33371 -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
33372 - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
33373 +if { (ac_try="$ac_cpp conftest.$ac_ext"
33374 +case "(($ac_try" in
33375 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33376 + *) ac_try_echo=$ac_try;;
33377 +esac
33378 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33379 + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33380 ac_status=$?
33381 grep -v '^ *+' conftest.er1 >conftest.err
33382 rm -f conftest.er1
33383 cat conftest.err >&5
33384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33385 - (exit $ac_status); } >/dev/null; then
33386 - if test -s conftest.err; then
33387 - ac_cpp_err=$ac_c_preproc_warn_flag
33388 - ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
33389 - else
33390 - ac_cpp_err=
33391 - fi
33392 -else
33393 - ac_cpp_err=yes
33394 -fi
33395 -if test -z "$ac_cpp_err"; then
33396 + (exit $ac_status); } >/dev/null && {
33397 + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33398 + test ! -s conftest.err
33399 + }; then
33400 ac_header_preproc=yes
33401 else
33402 echo "$as_me: failed program was:" >&5
33403 @@ -7069,9 +7638,10 @@ sed 's/^/| /' conftest.$ac_ext >&5
33404
33405 ac_header_preproc=no
33406 fi
33407 +
33408 rm -f conftest.err conftest.$ac_ext
33409 -echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33410 -echo "${ECHO_T}$ac_header_preproc" >&6
33411 +{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33412 +echo "${ECHO_T}$ac_header_preproc" >&6; }
33413
33414 # So? What about this header?
33415 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33416 @@ -7095,25 +7665,19 @@ echo "$as_me: WARNING: $ac_header: s
33417 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33418 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33419 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
33420 - (
33421 - cat <<\_ASBOX
33422 -## ------------------------------------------ ##
33423 -## Report this to the AC_PACKAGE_NAME lists. ##
33424 -## ------------------------------------------ ##
33425 -_ASBOX
33426 - ) |
33427 - sed "s/^/$as_me: WARNING: /" >&2
33428 +
33429 ;;
33430 esac
33431 -echo "$as_me:$LINENO: checking for $ac_header" >&5
33432 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33433 -if eval "test \"\${$as_ac_Header+set}\" = set"; then
33434 +{ echo "$as_me:$LINENO: checking for $ac_header" >&5
33435 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33436 +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33437 echo $ECHO_N "(cached) $ECHO_C" >&6
33438 else
33439 eval "$as_ac_Header=\$ac_header_preproc"
33440 fi
33441 -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33442 -echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33443 +ac_res=`eval echo '${'$as_ac_Header'}'`
33444 + { echo "$as_me:$LINENO: result: $ac_res" >&5
33445 +echo "${ECHO_T}$ac_res" >&6; }
33446
33447 fi
33448 if test `eval echo '${'$as_ac_Header'}'` = yes; then
33449 @@ -7139,9 +7703,9 @@ for ac_func in getcwd munmap putenv sete
33450 __argz_count __argz_stringify __argz_next
33451 do
33452 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33453 -echo "$as_me:$LINENO: checking for $ac_func" >&5
33454 -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33455 -if eval "test \"\${$as_ac_var+set}\" = set"; then
33456 +{ echo "$as_me:$LINENO: checking for $ac_func" >&5
33457 +echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33458 +if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33459 echo $ECHO_N "(cached) $ECHO_C" >&6
33460 else
33461 cat >conftest.$ac_ext <<_ACEOF
33462 @@ -7167,68 +7731,60 @@ cat >>conftest.$ac_ext <<_ACEOF
33463
33464 #undef $ac_func
33465
33466 -/* Override any gcc2 internal prototype to avoid an error. */
33467 +/* Override any GCC internal prototype to avoid an error.
33468 + Use char because int might match the return type of a GCC
33469 + builtin and then its argument prototype would still apply. */
33470 #ifdef __cplusplus
33471 extern "C"
33472 -{
33473 #endif
33474 -/* We use char because int might match the return type of a gcc2
33475 - builtin and then its argument prototype would still apply. */
33476 char $ac_func ();
33477 /* The GNU C library defines this for functions which it implements
33478 to always fail with ENOSYS. Some functions are actually named
33479 something starting with __ and the normal name is an alias. */
33480 -#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33481 +#if defined __stub_$ac_func || defined __stub___$ac_func
33482 choke me
33483 -#else
33484 -char (*f) () = $ac_func;
33485 -#endif
33486 -#ifdef __cplusplus
33487 -}
33488 #endif
33489
33490 int
33491 main ()
33492 {
33493 -return f != $ac_func;
33494 +return $ac_func ();
33495 ;
33496 return 0;
33497 }
33498 _ACEOF
33499 rm -f conftest.$ac_objext conftest$ac_exeext
33500 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33501 - (eval $ac_link) 2>conftest.er1
33502 +if { (ac_try="$ac_link"
33503 +case "(($ac_try" in
33504 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33505 + *) ac_try_echo=$ac_try;;
33506 +esac
33507 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33508 + (eval "$ac_link") 2>conftest.er1
33509 ac_status=$?
33510 grep -v '^ *+' conftest.er1 >conftest.err
33511 rm -f conftest.er1
33512 cat conftest.err >&5
33513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33514 - (exit $ac_status); } &&
33515 - { ac_try='test -z "$ac_c_werror_flag"
33516 - || test ! -s conftest.err'
33517 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33518 - (eval $ac_try) 2>&5
33519 - ac_status=$?
33520 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
33521 - (exit $ac_status); }; } &&
33522 - { ac_try='test -s conftest$ac_exeext'
33523 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33524 - (eval $ac_try) 2>&5
33525 - ac_status=$?
33526 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
33527 - (exit $ac_status); }; }; then
33528 + (exit $ac_status); } && {
33529 + test -z "$ac_c_werror_flag" ||
33530 + test ! -s conftest.err
33531 + } && test -s conftest$ac_exeext &&
33532 + $as_test_x conftest$ac_exeext; then
33533 eval "$as_ac_var=yes"
33534 else
33535 echo "$as_me: failed program was:" >&5
33536 sed 's/^/| /' conftest.$ac_ext >&5
33537
33538 -eval "$as_ac_var=no"
33539 + eval "$as_ac_var=no"
33540 fi
33541 -rm -f conftest.err conftest.$ac_objext \
33542 +
33543 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33544 conftest$ac_exeext conftest.$ac_ext
33545 fi
33546 -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33547 -echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33548 +ac_res=`eval echo '${'$as_ac_var'}'`
33549 + { echo "$as_me:$LINENO: result: $ac_res" >&5
33550 +echo "${ECHO_T}$ac_res" >&6; }
33551 if test `eval echo '${'$as_ac_var'}'` = yes; then
33552 cat >>confdefs.h <<_ACEOF
33553 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33554 @@ -7243,9 +7799,9 @@ done
33555 for ac_func in stpcpy
33556 do
33557 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33558 -echo "$as_me:$LINENO: checking for $ac_func" >&5
33559 -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33560 -if eval "test \"\${$as_ac_var+set}\" = set"; then
33561 +{ echo "$as_me:$LINENO: checking for $ac_func" >&5
33562 +echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33563 +if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33564 echo $ECHO_N "(cached) $ECHO_C" >&6
33565 else
33566 cat >conftest.$ac_ext <<_ACEOF
33567 @@ -7271,68 +7827,60 @@ cat >>conftest.$ac_ext <<_ACEOF
33568
33569 #undef $ac_func
33570
33571 -/* Override any gcc2 internal prototype to avoid an error. */
33572 +/* Override any GCC internal prototype to avoid an error.
33573 + Use char because int might match the return type of a GCC
33574 + builtin and then its argument prototype would still apply. */
33575 #ifdef __cplusplus
33576 extern "C"
33577 -{
33578 #endif
33579 -/* We use char because int might match the return type of a gcc2
33580 - builtin and then its argument prototype would still apply. */
33581 char $ac_func ();
33582 /* The GNU C library defines this for functions which it implements
33583 to always fail with ENOSYS. Some functions are actually named
33584 something starting with __ and the normal name is an alias. */
33585 -#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33586 +#if defined __stub_$ac_func || defined __stub___$ac_func
33587 choke me
33588 -#else
33589 -char (*f) () = $ac_func;
33590 -#endif
33591 -#ifdef __cplusplus
33592 -}
33593 #endif
33594
33595 int
33596 main ()
33597 {
33598 -return f != $ac_func;
33599 +return $ac_func ();
33600 ;
33601 return 0;
33602 }
33603 _ACEOF
33604 rm -f conftest.$ac_objext conftest$ac_exeext
33605 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33606 - (eval $ac_link) 2>conftest.er1
33607 +if { (ac_try="$ac_link"
33608 +case "(($ac_try" in
33609 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33610 + *) ac_try_echo=$ac_try;;
33611 +esac
33612 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33613 + (eval "$ac_link") 2>conftest.er1
33614 ac_status=$?
33615 grep -v '^ *+' conftest.er1 >conftest.err
33616 rm -f conftest.er1
33617 cat conftest.err >&5
33618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33619 - (exit $ac_status); } &&
33620 - { ac_try='test -z "$ac_c_werror_flag"
33621 - || test ! -s conftest.err'
33622 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33623 - (eval $ac_try) 2>&5
33624 - ac_status=$?
33625 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
33626 - (exit $ac_status); }; } &&
33627 - { ac_try='test -s conftest$ac_exeext'
33628 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33629 - (eval $ac_try) 2>&5
33630 - ac_status=$?
33631 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
33632 - (exit $ac_status); }; }; then
33633 + (exit $ac_status); } && {
33634 + test -z "$ac_c_werror_flag" ||
33635 + test ! -s conftest.err
33636 + } && test -s conftest$ac_exeext &&
33637 + $as_test_x conftest$ac_exeext; then
33638 eval "$as_ac_var=yes"
33639 else
33640 echo "$as_me: failed program was:" >&5
33641 sed 's/^/| /' conftest.$ac_ext >&5
33642
33643 -eval "$as_ac_var=no"
33644 + eval "$as_ac_var=no"
33645 fi
33646 -rm -f conftest.err conftest.$ac_objext \
33647 +
33648 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33649 conftest$ac_exeext conftest.$ac_ext
33650 fi
33651 -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33652 -echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33653 +ac_res=`eval echo '${'$as_ac_var'}'`
33654 + { echo "$as_me:$LINENO: result: $ac_res" >&5
33655 +echo "${ECHO_T}$ac_res" >&6; }
33656 if test `eval echo '${'$as_ac_var'}'` = yes; then
33657 cat >>confdefs.h <<_ACEOF
33658 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33659 @@ -7351,8 +7899,8 @@ _ACEOF
33660 fi
33661
33662 if test $ac_cv_header_locale_h = yes; then
33663 - echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
33664 -echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
33665 + { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
33666 +echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
33667 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
33668 echo $ECHO_N "(cached) $ECHO_C" >&6
33669 else
33670 @@ -7372,39 +7920,36 @@ return LC_MESSAGES
33671 }
33672 _ACEOF
33673 rm -f conftest.$ac_objext conftest$ac_exeext
33674 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33675 - (eval $ac_link) 2>conftest.er1
33676 +if { (ac_try="$ac_link"
33677 +case "(($ac_try" in
33678 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33679 + *) ac_try_echo=$ac_try;;
33680 +esac
33681 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33682 + (eval "$ac_link") 2>conftest.er1
33683 ac_status=$?
33684 grep -v '^ *+' conftest.er1 >conftest.err
33685 rm -f conftest.er1
33686 cat conftest.err >&5
33687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33688 - (exit $ac_status); } &&
33689 - { ac_try='test -z "$ac_c_werror_flag"
33690 - || test ! -s conftest.err'
33691 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33692 - (eval $ac_try) 2>&5
33693 - ac_status=$?
33694 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
33695 - (exit $ac_status); }; } &&
33696 - { ac_try='test -s conftest$ac_exeext'
33697 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33698 - (eval $ac_try) 2>&5
33699 - ac_status=$?
33700 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
33701 - (exit $ac_status); }; }; then
33702 + (exit $ac_status); } && {
33703 + test -z "$ac_c_werror_flag" ||
33704 + test ! -s conftest.err
33705 + } && test -s conftest$ac_exeext &&
33706 + $as_test_x conftest$ac_exeext; then
33707 am_cv_val_LC_MESSAGES=yes
33708 else
33709 echo "$as_me: failed program was:" >&5
33710 sed 's/^/| /' conftest.$ac_ext >&5
33711
33712 -am_cv_val_LC_MESSAGES=no
33713 + am_cv_val_LC_MESSAGES=no
33714 fi
33715 -rm -f conftest.err conftest.$ac_objext \
33716 +
33717 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33718 conftest$ac_exeext conftest.$ac_ext
33719 fi
33720 -echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
33721 -echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
33722 +{ echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
33723 +echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6; }
33724 if test $am_cv_val_LC_MESSAGES = yes; then
33725
33726 cat >>confdefs.h <<\_ACEOF
33727 @@ -7413,34 +7958,34 @@ _ACEOF
33728
33729 fi
33730 fi
33731 - echo "$as_me:$LINENO: checking whether NLS is requested" >&5
33732 -echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
33733 - # Check whether --enable-nls or --disable-nls was given.
33734 + { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
33735 +echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
33736 + # Check whether --enable-nls was given.
33737 if test "${enable_nls+set}" = set; then
33738 - enableval="$enable_nls"
33739 - USE_NLS=$enableval
33740 + enableval=$enable_nls; USE_NLS=$enableval
33741 else
33742 USE_NLS=yes
33743 -fi;
33744 - echo "$as_me:$LINENO: result: $USE_NLS" >&5
33745 -echo "${ECHO_T}$USE_NLS" >&6
33746 +fi
33747 +
33748 + { echo "$as_me:$LINENO: result: $USE_NLS" >&5
33749 +echo "${ECHO_T}$USE_NLS" >&6; }
33750
33751
33752 USE_INCLUDED_LIBINTL=no
33753
33754 if test "$USE_NLS" = "yes"; then
33755 - echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
33756 -echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
33757 + { echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
33758 +echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6; }
33759
33760 -# Check whether --with-included-gettext or --without-included-gettext was given.
33761 +# Check whether --with-included-gettext was given.
33762 if test "${with_included_gettext+set}" = set; then
33763 - withval="$with_included_gettext"
33764 - nls_cv_force_use_gnu_gettext=$withval
33765 + withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
33766 else
33767 nls_cv_force_use_gnu_gettext=no
33768 -fi;
33769 - echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
33770 -echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
33771 +fi
33772 +
33773 + { echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
33774 +echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6; }
33775
33776 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
33777 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
33778 @@ -7449,17 +7994,17 @@ echo "${ECHO_T}$nls_cv_force_use_gnu_get
33779 CATOBJEXT=
33780
33781 if test "${ac_cv_header_libintl_h+set}" = set; then
33782 - echo "$as_me:$LINENO: checking for libintl.h" >&5
33783 -echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
33784 + { echo "$as_me:$LINENO: checking for libintl.h" >&5
33785 +echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; }
33786 if test "${ac_cv_header_libintl_h+set}" = set; then
33787 echo $ECHO_N "(cached) $ECHO_C" >&6
33788 fi
33789 -echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
33790 -echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
33791 +{ echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
33792 +echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; }
33793 else
33794 # Is the header compilable?
33795 -echo "$as_me:$LINENO: checking libintl.h usability" >&5
33796 -echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
33797 +{ echo "$as_me:$LINENO: checking libintl.h usability" >&5
33798 +echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6; }
33799 cat >conftest.$ac_ext <<_ACEOF
33800 /* confdefs.h. */
33801 _ACEOF
33802 @@ -7470,41 +8015,37 @@ $ac_includes_default
33803 #include <libintl.h>
33804 _ACEOF
33805 rm -f conftest.$ac_objext
33806 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33807 - (eval $ac_compile) 2>conftest.er1
33808 +if { (ac_try="$ac_compile"
33809 +case "(($ac_try" in
33810 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33811 + *) ac_try_echo=$ac_try;;
33812 +esac
33813 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33814 + (eval "$ac_compile") 2>conftest.er1
33815 ac_status=$?
33816 grep -v '^ *+' conftest.er1 >conftest.err
33817 rm -f conftest.er1
33818 cat conftest.err >&5
33819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33820 - (exit $ac_status); } &&
33821 - { ac_try='test -z "$ac_c_werror_flag"
33822 - || test ! -s conftest.err'
33823 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33824 - (eval $ac_try) 2>&5
33825 - ac_status=$?
33826 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
33827 - (exit $ac_status); }; } &&
33828 - { ac_try='test -s conftest.$ac_objext'
33829 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33830 - (eval $ac_try) 2>&5
33831 - ac_status=$?
33832 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
33833 - (exit $ac_status); }; }; then
33834 + (exit $ac_status); } && {
33835 + test -z "$ac_c_werror_flag" ||
33836 + test ! -s conftest.err
33837 + } && test -s conftest.$ac_objext; then
33838 ac_header_compiler=yes
33839 else
33840 echo "$as_me: failed program was:" >&5
33841 sed 's/^/| /' conftest.$ac_ext >&5
33842
33843 -ac_header_compiler=no
33844 + ac_header_compiler=no
33845 fi
33846 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33847 -echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33848 -echo "${ECHO_T}$ac_header_compiler" >&6
33849 +
33850 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33851 +{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33852 +echo "${ECHO_T}$ac_header_compiler" >&6; }
33853
33854 # Is the header present?
33855 -echo "$as_me:$LINENO: checking libintl.h presence" >&5
33856 -echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
33857 +{ echo "$as_me:$LINENO: checking libintl.h presence" >&5
33858 +echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6; }
33859 cat >conftest.$ac_ext <<_ACEOF
33860 /* confdefs.h. */
33861 _ACEOF
33862 @@ -7513,24 +8054,22 @@ cat >>conftest.$ac_ext <<_ACEOF
33863 /* end confdefs.h. */
33864 #include <libintl.h>
33865 _ACEOF
33866 -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
33867 - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
33868 +if { (ac_try="$ac_cpp conftest.$ac_ext"
33869 +case "(($ac_try" in
33870 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33871 + *) ac_try_echo=$ac_try;;
33872 +esac
33873 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33874 + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33875 ac_status=$?
33876 grep -v '^ *+' conftest.er1 >conftest.err
33877 rm -f conftest.er1
33878 cat conftest.err >&5
33879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33880 - (exit $ac_status); } >/dev/null; then
33881 - if test -s conftest.err; then
33882 - ac_cpp_err=$ac_c_preproc_warn_flag
33883 - ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
33884 - else
33885 - ac_cpp_err=
33886 - fi
33887 -else
33888 - ac_cpp_err=yes
33889 -fi
33890 -if test -z "$ac_cpp_err"; then
33891 + (exit $ac_status); } >/dev/null && {
33892 + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33893 + test ! -s conftest.err
33894 + }; then
33895 ac_header_preproc=yes
33896 else
33897 echo "$as_me: failed program was:" >&5
33898 @@ -7538,9 +8077,10 @@ sed 's/^/| /' conftest.$ac_ext >&5
33899
33900 ac_header_preproc=no
33901 fi
33902 +
33903 rm -f conftest.err conftest.$ac_ext
33904 -echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33905 -echo "${ECHO_T}$ac_header_preproc" >&6
33906 +{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33907 +echo "${ECHO_T}$ac_header_preproc" >&6; }
33908
33909 # So? What about this header?
33910 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33911 @@ -7564,30 +8104,23 @@ echo "$as_me: WARNING: libintl.h: se
33912 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
33913 { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
33914 echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
33915 - (
33916 - cat <<\_ASBOX
33917 -## ------------------------------------------ ##
33918 -## Report this to the AC_PACKAGE_NAME lists. ##
33919 -## ------------------------------------------ ##
33920 -_ASBOX
33921 - ) |
33922 - sed "s/^/$as_me: WARNING: /" >&2
33923 +
33924 ;;
33925 esac
33926 -echo "$as_me:$LINENO: checking for libintl.h" >&5
33927 -echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
33928 +{ echo "$as_me:$LINENO: checking for libintl.h" >&5
33929 +echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; }
33930 if test "${ac_cv_header_libintl_h+set}" = set; then
33931 echo $ECHO_N "(cached) $ECHO_C" >&6
33932 else
33933 ac_cv_header_libintl_h=$ac_header_preproc
33934 fi
33935 -echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
33936 -echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
33937 +{ echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
33938 +echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; }
33939
33940 fi
33941 if test $ac_cv_header_libintl_h = yes; then
33942 - echo "$as_me:$LINENO: checking for gettext in libc" >&5
33943 -echo $ECHO_N "checking for gettext in libc... $ECHO_C" >&6
33944 + { echo "$as_me:$LINENO: checking for gettext in libc" >&5
33945 +echo $ECHO_N "checking for gettext in libc... $ECHO_C" >&6; }
33946 if test "${gt_cv_func_gettext_libc+set}" = set; then
33947 echo $ECHO_N "(cached) $ECHO_C" >&6
33948 else
33949 @@ -7607,43 +8140,40 @@ return (int) gettext ("")
33950 }
33951 _ACEOF
33952 rm -f conftest.$ac_objext conftest$ac_exeext
33953 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33954 - (eval $ac_link) 2>conftest.er1
33955 +if { (ac_try="$ac_link"
33956 +case "(($ac_try" in
33957 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33958 + *) ac_try_echo=$ac_try;;
33959 +esac
33960 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33961 + (eval "$ac_link") 2>conftest.er1
33962 ac_status=$?
33963 grep -v '^ *+' conftest.er1 >conftest.err
33964 rm -f conftest.er1
33965 cat conftest.err >&5
33966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33967 - (exit $ac_status); } &&
33968 - { ac_try='test -z "$ac_c_werror_flag"
33969 - || test ! -s conftest.err'
33970 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33971 - (eval $ac_try) 2>&5
33972 - ac_status=$?
33973 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
33974 - (exit $ac_status); }; } &&
33975 - { ac_try='test -s conftest$ac_exeext'
33976 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33977 - (eval $ac_try) 2>&5
33978 - ac_status=$?
33979 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
33980 - (exit $ac_status); }; }; then
33981 + (exit $ac_status); } && {
33982 + test -z "$ac_c_werror_flag" ||
33983 + test ! -s conftest.err
33984 + } && test -s conftest$ac_exeext &&
33985 + $as_test_x conftest$ac_exeext; then
33986 gt_cv_func_gettext_libc=yes
33987 else
33988 echo "$as_me: failed program was:" >&5
33989 sed 's/^/| /' conftest.$ac_ext >&5
33990
33991 -gt_cv_func_gettext_libc=no
33992 + gt_cv_func_gettext_libc=no
33993 fi
33994 -rm -f conftest.err conftest.$ac_objext \
33995 +
33996 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33997 conftest$ac_exeext conftest.$ac_ext
33998 fi
33999 -echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libc" >&5
34000 -echo "${ECHO_T}$gt_cv_func_gettext_libc" >&6
34001 +{ echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libc" >&5
34002 +echo "${ECHO_T}$gt_cv_func_gettext_libc" >&6; }
34003
34004 if test "$gt_cv_func_gettext_libc" != "yes"; then
34005 - echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
34006 -echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6
34007 + { echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
34008 +echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6; }
34009 if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
34010 echo $ECHO_N "(cached) $ECHO_C" >&6
34011 else
34012 @@ -7656,59 +8186,56 @@ cat confdefs.h >>conftest.$ac_ext
34013 cat >>conftest.$ac_ext <<_ACEOF
34014 /* end confdefs.h. */
34015
34016 -/* Override any gcc2 internal prototype to avoid an error. */
34017 +/* Override any GCC internal prototype to avoid an error.
34018 + Use char because int might match the return type of a GCC
34019 + builtin and then its argument prototype would still apply. */
34020 #ifdef __cplusplus
34021 extern "C"
34022 #endif
34023 -/* We use char because int might match the return type of a gcc2
34024 - builtin and then its argument prototype would still apply. */
34025 char bindtextdomain ();
34026 int
34027 main ()
34028 {
34029 -bindtextdomain ();
34030 +return bindtextdomain ();
34031 ;
34032 return 0;
34033 }
34034 _ACEOF
34035 rm -f conftest.$ac_objext conftest$ac_exeext
34036 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34037 - (eval $ac_link) 2>conftest.er1
34038 +if { (ac_try="$ac_link"
34039 +case "(($ac_try" in
34040 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34041 + *) ac_try_echo=$ac_try;;
34042 +esac
34043 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34044 + (eval "$ac_link") 2>conftest.er1
34045 ac_status=$?
34046 grep -v '^ *+' conftest.er1 >conftest.err
34047 rm -f conftest.er1
34048 cat conftest.err >&5
34049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34050 - (exit $ac_status); } &&
34051 - { ac_try='test -z "$ac_c_werror_flag"
34052 - || test ! -s conftest.err'
34053 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34054 - (eval $ac_try) 2>&5
34055 - ac_status=$?
34056 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
34057 - (exit $ac_status); }; } &&
34058 - { ac_try='test -s conftest$ac_exeext'
34059 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34060 - (eval $ac_try) 2>&5
34061 - ac_status=$?
34062 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
34063 - (exit $ac_status); }; }; then
34064 + (exit $ac_status); } && {
34065 + test -z "$ac_c_werror_flag" ||
34066 + test ! -s conftest.err
34067 + } && test -s conftest$ac_exeext &&
34068 + $as_test_x conftest$ac_exeext; then
34069 ac_cv_lib_intl_bindtextdomain=yes
34070 else
34071 echo "$as_me: failed program was:" >&5
34072 sed 's/^/| /' conftest.$ac_ext >&5
34073
34074 -ac_cv_lib_intl_bindtextdomain=no
34075 + ac_cv_lib_intl_bindtextdomain=no
34076 fi
34077 -rm -f conftest.err conftest.$ac_objext \
34078 +
34079 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34080 conftest$ac_exeext conftest.$ac_ext
34081 LIBS=$ac_check_lib_save_LIBS
34082 fi
34083 -echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
34084 -echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6
34085 +{ echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
34086 +echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6; }
34087 if test $ac_cv_lib_intl_bindtextdomain = yes; then
34088 - echo "$as_me:$LINENO: checking for gettext in libintl" >&5
34089 -echo $ECHO_N "checking for gettext in libintl... $ECHO_C" >&6
34090 + { echo "$as_me:$LINENO: checking for gettext in libintl" >&5
34091 +echo $ECHO_N "checking for gettext in libintl... $ECHO_C" >&6; }
34092 if test "${gt_cv_func_gettext_libintl+set}" = set; then
34093 echo $ECHO_N "(cached) $ECHO_C" >&6
34094 else
34095 @@ -7728,39 +8255,36 @@ return (int) gettext ("")
34096 }
34097 _ACEOF
34098 rm -f conftest.$ac_objext conftest$ac_exeext
34099 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34100 - (eval $ac_link) 2>conftest.er1
34101 +if { (ac_try="$ac_link"
34102 +case "(($ac_try" in
34103 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34104 + *) ac_try_echo=$ac_try;;
34105 +esac
34106 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34107 + (eval "$ac_link") 2>conftest.er1
34108 ac_status=$?
34109 grep -v '^ *+' conftest.er1 >conftest.err
34110 rm -f conftest.er1
34111 cat conftest.err >&5
34112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34113 - (exit $ac_status); } &&
34114 - { ac_try='test -z "$ac_c_werror_flag"
34115 - || test ! -s conftest.err'
34116 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34117 - (eval $ac_try) 2>&5
34118 - ac_status=$?
34119 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
34120 - (exit $ac_status); }; } &&
34121 - { ac_try='test -s conftest$ac_exeext'
34122 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34123 - (eval $ac_try) 2>&5
34124 - ac_status=$?
34125 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
34126 - (exit $ac_status); }; }; then
34127 + (exit $ac_status); } && {
34128 + test -z "$ac_c_werror_flag" ||
34129 + test ! -s conftest.err
34130 + } && test -s conftest$ac_exeext &&
34131 + $as_test_x conftest$ac_exeext; then
34132 gt_cv_func_gettext_libintl=yes
34133 else
34134 echo "$as_me: failed program was:" >&5
34135 sed 's/^/| /' conftest.$ac_ext >&5
34136
34137 -gt_cv_func_gettext_libintl=no
34138 + gt_cv_func_gettext_libintl=no
34139 fi
34140 -rm -f conftest.err conftest.$ac_objext \
34141 +
34142 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34143 conftest$ac_exeext conftest.$ac_ext
34144 fi
34145 -echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libintl" >&5
34146 -echo "${ECHO_T}$gt_cv_func_gettext_libintl" >&6
34147 +{ echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libintl" >&5
34148 +echo "${ECHO_T}$gt_cv_func_gettext_libintl" >&6; }
34149 fi
34150
34151 fi
34152 @@ -7774,8 +8298,8 @@ _ACEOF
34153
34154 # Extract the first word of "msgfmt", so it can be a program name with args.
34155 set dummy msgfmt; ac_word=$2
34156 -echo "$as_me:$LINENO: checking for $ac_word" >&5
34157 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
34158 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
34159 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
34160 if test "${ac_cv_path_MSGFMT+set}" = set; then
34161 echo $ECHO_N "(cached) $ECHO_C" >&6
34162 else
34163 @@ -7801,20 +8325,20 @@ esac
34164 fi
34165 MSGFMT="$ac_cv_path_MSGFMT"
34166 if test -n "$MSGFMT"; then
34167 - echo "$as_me:$LINENO: result: $MSGFMT" >&5
34168 -echo "${ECHO_T}$MSGFMT" >&6
34169 + { echo "$as_me:$LINENO: result: $MSGFMT" >&5
34170 +echo "${ECHO_T}$MSGFMT" >&6; }
34171 else
34172 - echo "$as_me:$LINENO: result: no" >&5
34173 -echo "${ECHO_T}no" >&6
34174 + { echo "$as_me:$LINENO: result: no" >&5
34175 +echo "${ECHO_T}no" >&6; }
34176 fi
34177 if test "$MSGFMT" != "no"; then
34178
34179 for ac_func in dcgettext
34180 do
34181 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34182 -echo "$as_me:$LINENO: checking for $ac_func" >&5
34183 -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34184 -if eval "test \"\${$as_ac_var+set}\" = set"; then
34185 +{ echo "$as_me:$LINENO: checking for $ac_func" >&5
34186 +echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
34187 +if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
34188 echo $ECHO_N "(cached) $ECHO_C" >&6
34189 else
34190 cat >conftest.$ac_ext <<_ACEOF
34191 @@ -7840,68 +8364,60 @@ cat >>conftest.$ac_ext <<_ACEOF
34192
34193 #undef $ac_func
34194
34195 -/* Override any gcc2 internal prototype to avoid an error. */
34196 +/* Override any GCC internal prototype to avoid an error.
34197 + Use char because int might match the return type of a GCC
34198 + builtin and then its argument prototype would still apply. */
34199 #ifdef __cplusplus
34200 extern "C"
34201 -{
34202 #endif
34203 -/* We use char because int might match the return type of a gcc2
34204 - builtin and then its argument prototype would still apply. */
34205 char $ac_func ();
34206 /* The GNU C library defines this for functions which it implements
34207 to always fail with ENOSYS. Some functions are actually named
34208 something starting with __ and the normal name is an alias. */
34209 -#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34210 +#if defined __stub_$ac_func || defined __stub___$ac_func
34211 choke me
34212 -#else
34213 -char (*f) () = $ac_func;
34214 -#endif
34215 -#ifdef __cplusplus
34216 -}
34217 #endif
34218
34219 int
34220 main ()
34221 {
34222 -return f != $ac_func;
34223 +return $ac_func ();
34224 ;
34225 return 0;
34226 }
34227 _ACEOF
34228 rm -f conftest.$ac_objext conftest$ac_exeext
34229 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34230 - (eval $ac_link) 2>conftest.er1
34231 +if { (ac_try="$ac_link"
34232 +case "(($ac_try" in
34233 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34234 + *) ac_try_echo=$ac_try;;
34235 +esac
34236 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34237 + (eval "$ac_link") 2>conftest.er1
34238 ac_status=$?
34239 grep -v '^ *+' conftest.er1 >conftest.err
34240 rm -f conftest.er1
34241 cat conftest.err >&5
34242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34243 - (exit $ac_status); } &&
34244 - { ac_try='test -z "$ac_c_werror_flag"
34245 - || test ! -s conftest.err'
34246 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34247 - (eval $ac_try) 2>&5
34248 - ac_status=$?
34249 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
34250 - (exit $ac_status); }; } &&
34251 - { ac_try='test -s conftest$ac_exeext'
34252 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34253 - (eval $ac_try) 2>&5
34254 - ac_status=$?
34255 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
34256 - (exit $ac_status); }; }; then
34257 + (exit $ac_status); } && {
34258 + test -z "$ac_c_werror_flag" ||
34259 + test ! -s conftest.err
34260 + } && test -s conftest$ac_exeext &&
34261 + $as_test_x conftest$ac_exeext; then
34262 eval "$as_ac_var=yes"
34263 else
34264 echo "$as_me: failed program was:" >&5
34265 sed 's/^/| /' conftest.$ac_ext >&5
34266
34267 -eval "$as_ac_var=no"
34268 + eval "$as_ac_var=no"
34269 fi
34270 -rm -f conftest.err conftest.$ac_objext \
34271 +
34272 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34273 conftest$ac_exeext conftest.$ac_ext
34274 fi
34275 -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34276 -echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34277 +ac_res=`eval echo '${'$as_ac_var'}'`
34278 + { echo "$as_me:$LINENO: result: $ac_res" >&5
34279 +echo "${ECHO_T}$ac_res" >&6; }
34280 if test `eval echo '${'$as_ac_var'}'` = yes; then
34281 cat >>confdefs.h <<_ACEOF
34282 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34283 @@ -7912,8 +8428,8 @@ done
34284
34285 # Extract the first word of "gmsgfmt", so it can be a program name with args.
34286 set dummy gmsgfmt; ac_word=$2
34287 -echo "$as_me:$LINENO: checking for $ac_word" >&5
34288 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
34289 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
34290 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
34291 if test "${ac_cv_path_GMSGFMT+set}" = set; then
34292 echo $ECHO_N "(cached) $ECHO_C" >&6
34293 else
34294 @@ -7928,32 +8444,33 @@ do
34295 IFS=$as_save_IFS
34296 test -z "$as_dir" && as_dir=.
34297 for ac_exec_ext in '' $ac_executable_extensions; do
34298 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34299 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34300 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
34301 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34302 break 2
34303 fi
34304 done
34305 done
34306 +IFS=$as_save_IFS
34307
34308 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
34309 ;;
34310 esac
34311 fi
34312 GMSGFMT=$ac_cv_path_GMSGFMT
34313 -
34314 if test -n "$GMSGFMT"; then
34315 - echo "$as_me:$LINENO: result: $GMSGFMT" >&5
34316 -echo "${ECHO_T}$GMSGFMT" >&6
34317 + { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
34318 +echo "${ECHO_T}$GMSGFMT" >&6; }
34319 else
34320 - echo "$as_me:$LINENO: result: no" >&5
34321 -echo "${ECHO_T}no" >&6
34322 + { echo "$as_me:$LINENO: result: no" >&5
34323 +echo "${ECHO_T}no" >&6; }
34324 fi
34325
34326 +
34327 # Extract the first word of "xgettext", so it can be a program name with args.
34328 set dummy xgettext; ac_word=$2
34329 -echo "$as_me:$LINENO: checking for $ac_word" >&5
34330 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
34331 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
34332 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
34333 if test "${ac_cv_path_XGETTEXT+set}" = set; then
34334 echo $ECHO_N "(cached) $ECHO_C" >&6
34335 else
34336 @@ -7979,11 +8496,11 @@ esac
34337 fi
34338 XGETTEXT="$ac_cv_path_XGETTEXT"
34339 if test -n "$XGETTEXT"; then
34340 - echo "$as_me:$LINENO: result: $XGETTEXT" >&5
34341 -echo "${ECHO_T}$XGETTEXT" >&6
34342 + { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
34343 +echo "${ECHO_T}$XGETTEXT" >&6; }
34344 else
34345 - echo "$as_me:$LINENO: result: no" >&5
34346 -echo "${ECHO_T}no" >&6
34347 + { echo "$as_me:$LINENO: result: no" >&5
34348 +echo "${ECHO_T}no" >&6; }
34349 fi
34350
34351 cat >conftest.$ac_ext <<_ACEOF
34352 @@ -8003,37 +8520,34 @@ extern int _nl_msg_cat_cntr;
34353 }
34354 _ACEOF
34355 rm -f conftest.$ac_objext conftest$ac_exeext
34356 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34357 - (eval $ac_link) 2>conftest.er1
34358 +if { (ac_try="$ac_link"
34359 +case "(($ac_try" in
34360 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34361 + *) ac_try_echo=$ac_try;;
34362 +esac
34363 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34364 + (eval "$ac_link") 2>conftest.er1
34365 ac_status=$?
34366 grep -v '^ *+' conftest.er1 >conftest.err
34367 rm -f conftest.er1
34368 cat conftest.err >&5
34369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34370 - (exit $ac_status); } &&
34371 - { ac_try='test -z "$ac_c_werror_flag"
34372 - || test ! -s conftest.err'
34373 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34374 - (eval $ac_try) 2>&5
34375 - ac_status=$?
34376 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
34377 - (exit $ac_status); }; } &&
34378 - { ac_try='test -s conftest$ac_exeext'
34379 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34380 - (eval $ac_try) 2>&5
34381 - ac_status=$?
34382 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
34383 - (exit $ac_status); }; }; then
34384 + (exit $ac_status); } && {
34385 + test -z "$ac_c_werror_flag" ||
34386 + test ! -s conftest.err
34387 + } && test -s conftest$ac_exeext &&
34388 + $as_test_x conftest$ac_exeext; then
34389 CATOBJEXT=.gmo
34390 DATADIRNAME=share
34391 else
34392 echo "$as_me: failed program was:" >&5
34393 sed 's/^/| /' conftest.$ac_ext >&5
34394
34395 -CATOBJEXT=.mo
34396 + CATOBJEXT=.mo
34397 DATADIRNAME=lib
34398 fi
34399 -rm -f conftest.err conftest.$ac_objext \
34400 +
34401 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34402 conftest$ac_exeext conftest.$ac_ext
34403 INSTOBJEXT=.mo
34404 fi
34405 @@ -8055,8 +8569,8 @@ fi
34406 INTLOBJS="\$(GETTOBJS)"
34407 # Extract the first word of "msgfmt", so it can be a program name with args.
34408 set dummy msgfmt; ac_word=$2
34409 -echo "$as_me:$LINENO: checking for $ac_word" >&5
34410 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
34411 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
34412 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
34413 if test "${ac_cv_path_MSGFMT+set}" = set; then
34414 echo $ECHO_N "(cached) $ECHO_C" >&6
34415 else
34416 @@ -8082,17 +8596,17 @@ esac
34417 fi
34418 MSGFMT="$ac_cv_path_MSGFMT"
34419 if test -n "$MSGFMT"; then
34420 - echo "$as_me:$LINENO: result: $MSGFMT" >&5
34421 -echo "${ECHO_T}$MSGFMT" >&6
34422 + { echo "$as_me:$LINENO: result: $MSGFMT" >&5
34423 +echo "${ECHO_T}$MSGFMT" >&6; }
34424 else
34425 - echo "$as_me:$LINENO: result: no" >&5
34426 -echo "${ECHO_T}no" >&6
34427 + { echo "$as_me:$LINENO: result: no" >&5
34428 +echo "${ECHO_T}no" >&6; }
34429 fi
34430
34431 # Extract the first word of "gmsgfmt", so it can be a program name with args.
34432 set dummy gmsgfmt; ac_word=$2
34433 -echo "$as_me:$LINENO: checking for $ac_word" >&5
34434 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
34435 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
34436 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
34437 if test "${ac_cv_path_GMSGFMT+set}" = set; then
34438 echo $ECHO_N "(cached) $ECHO_C" >&6
34439 else
34440 @@ -8107,32 +8621,33 @@ do
34441 IFS=$as_save_IFS
34442 test -z "$as_dir" && as_dir=.
34443 for ac_exec_ext in '' $ac_executable_extensions; do
34444 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34445 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34446 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
34447 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34448 break 2
34449 fi
34450 done
34451 done
34452 +IFS=$as_save_IFS
34453
34454 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
34455 ;;
34456 esac
34457 fi
34458 GMSGFMT=$ac_cv_path_GMSGFMT
34459 -
34460 if test -n "$GMSGFMT"; then
34461 - echo "$as_me:$LINENO: result: $GMSGFMT" >&5
34462 -echo "${ECHO_T}$GMSGFMT" >&6
34463 + { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
34464 +echo "${ECHO_T}$GMSGFMT" >&6; }
34465 else
34466 - echo "$as_me:$LINENO: result: no" >&5
34467 -echo "${ECHO_T}no" >&6
34468 + { echo "$as_me:$LINENO: result: no" >&5
34469 +echo "${ECHO_T}no" >&6; }
34470 fi
34471
34472 +
34473 # Extract the first word of "xgettext", so it can be a program name with args.
34474 set dummy xgettext; ac_word=$2
34475 -echo "$as_me:$LINENO: checking for $ac_word" >&5
34476 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
34477 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
34478 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
34479 if test "${ac_cv_path_XGETTEXT+set}" = set; then
34480 echo $ECHO_N "(cached) $ECHO_C" >&6
34481 else
34482 @@ -8158,11 +8673,11 @@ esac
34483 fi
34484 XGETTEXT="$ac_cv_path_XGETTEXT"
34485 if test -n "$XGETTEXT"; then
34486 - echo "$as_me:$LINENO: result: $XGETTEXT" >&5
34487 -echo "${ECHO_T}$XGETTEXT" >&6
34488 + { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
34489 +echo "${ECHO_T}$XGETTEXT" >&6; }
34490 else
34491 - echo "$as_me:$LINENO: result: no" >&5
34492 -echo "${ECHO_T}no" >&6
34493 + { echo "$as_me:$LINENO: result: no" >&5
34494 +echo "${ECHO_T}no" >&6; }
34495 fi
34496
34497
34498 @@ -8181,8 +8696,8 @@ fi
34499 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
34500 : ;
34501 else
34502 - echo "$as_me:$LINENO: result: found xgettext programs is not GNU xgettext; ignore it" >&5
34503 -echo "${ECHO_T}found xgettext programs is not GNU xgettext; ignore it" >&6
34504 + { echo "$as_me:$LINENO: result: found xgettext programs is not GNU xgettext; ignore it" >&5
34505 +echo "${ECHO_T}found xgettext programs is not GNU xgettext; ignore it" >&6; }
34506 XGETTEXT=":"
34507 fi
34508 fi
34509 @@ -8231,8 +8746,8 @@ _ACEOF
34510 if test "x$ALL_LINGUAS" = "x"; then
34511 LINGUAS=
34512 else
34513 - echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
34514 -echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
34515 + { echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
34516 +echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6; }
34517 NEW_LINGUAS=
34518 for lang in ${LINGUAS=$ALL_LINGUAS}; do
34519 case "$ALL_LINGUAS" in
34520 @@ -8240,8 +8755,8 @@ echo $ECHO_N "checking for catalogs to b
34521 esac
34522 done
34523 LINGUAS=$NEW_LINGUAS
34524 - echo "$as_me:$LINENO: result: $LINGUAS" >&5
34525 -echo "${ECHO_T}$LINGUAS" >&6
34526 + { echo "$as_me:$LINENO: result: $LINGUAS" >&5
34527 +echo "${ECHO_T}$LINGUAS" >&6; }
34528 fi
34529
34530 if test -n "$LINGUAS"; then
34531 @@ -8260,17 +8775,17 @@ echo "${ECHO_T}$LINGUAS" >&6
34532 if test -f $srcdir/po2tbl.sed.in; then
34533 if test "$CATOBJEXT" = ".cat"; then
34534 if test "${ac_cv_header_linux_version_h+set}" = set; then
34535 - echo "$as_me:$LINENO: checking for linux/version.h" >&5
34536 -echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
34537 + { echo "$as_me:$LINENO: checking for linux/version.h" >&5
34538 +echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6; }
34539 if test "${ac_cv_header_linux_version_h+set}" = set; then
34540 echo $ECHO_N "(cached) $ECHO_C" >&6
34541 fi
34542 -echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
34543 -echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
34544 +{ echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
34545 +echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6; }
34546 else
34547 # Is the header compilable?
34548 -echo "$as_me:$LINENO: checking linux/version.h usability" >&5
34549 -echo $ECHO_N "checking linux/version.h usability... $ECHO_C" >&6
34550 +{ echo "$as_me:$LINENO: checking linux/version.h usability" >&5
34551 +echo $ECHO_N "checking linux/version.h usability... $ECHO_C" >&6; }
34552 cat >conftest.$ac_ext <<_ACEOF
34553 /* confdefs.h. */
34554 _ACEOF
34555 @@ -8281,41 +8796,37 @@ $ac_includes_default
34556 #include <linux/version.h>
34557 _ACEOF
34558 rm -f conftest.$ac_objext
34559 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34560 - (eval $ac_compile) 2>conftest.er1
34561 +if { (ac_try="$ac_compile"
34562 +case "(($ac_try" in
34563 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34564 + *) ac_try_echo=$ac_try;;
34565 +esac
34566 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34567 + (eval "$ac_compile") 2>conftest.er1
34568 ac_status=$?
34569 grep -v '^ *+' conftest.er1 >conftest.err
34570 rm -f conftest.er1
34571 cat conftest.err >&5
34572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34573 - (exit $ac_status); } &&
34574 - { ac_try='test -z "$ac_c_werror_flag"
34575 - || test ! -s conftest.err'
34576 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34577 - (eval $ac_try) 2>&5
34578 - ac_status=$?
34579 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
34580 - (exit $ac_status); }; } &&
34581 - { ac_try='test -s conftest.$ac_objext'
34582 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34583 - (eval $ac_try) 2>&5
34584 - ac_status=$?
34585 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
34586 - (exit $ac_status); }; }; then
34587 + (exit $ac_status); } && {
34588 + test -z "$ac_c_werror_flag" ||
34589 + test ! -s conftest.err
34590 + } && test -s conftest.$ac_objext; then
34591 ac_header_compiler=yes
34592 else
34593 echo "$as_me: failed program was:" >&5
34594 sed 's/^/| /' conftest.$ac_ext >&5
34595
34596 -ac_header_compiler=no
34597 + ac_header_compiler=no
34598 fi
34599 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34600 -echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34601 -echo "${ECHO_T}$ac_header_compiler" >&6
34602 +
34603 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34604 +{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34605 +echo "${ECHO_T}$ac_header_compiler" >&6; }
34606
34607 # Is the header present?
34608 -echo "$as_me:$LINENO: checking linux/version.h presence" >&5
34609 -echo $ECHO_N "checking linux/version.h presence... $ECHO_C" >&6
34610 +{ echo "$as_me:$LINENO: checking linux/version.h presence" >&5
34611 +echo $ECHO_N "checking linux/version.h presence... $ECHO_C" >&6; }
34612 cat >conftest.$ac_ext <<_ACEOF
34613 /* confdefs.h. */
34614 _ACEOF
34615 @@ -8324,24 +8835,22 @@ cat >>conftest.$ac_ext <<_ACEOF
34616 /* end confdefs.h. */
34617 #include <linux/version.h>
34618 _ACEOF
34619 -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
34620 - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
34621 +if { (ac_try="$ac_cpp conftest.$ac_ext"
34622 +case "(($ac_try" in
34623 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34624 + *) ac_try_echo=$ac_try;;
34625 +esac
34626 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34627 + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
34628 ac_status=$?
34629 grep -v '^ *+' conftest.er1 >conftest.err
34630 rm -f conftest.er1
34631 cat conftest.err >&5
34632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34633 - (exit $ac_status); } >/dev/null; then
34634 - if test -s conftest.err; then
34635 - ac_cpp_err=$ac_c_preproc_warn_flag
34636 - ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
34637 - else
34638 - ac_cpp_err=
34639 - fi
34640 -else
34641 - ac_cpp_err=yes
34642 -fi
34643 -if test -z "$ac_cpp_err"; then
34644 + (exit $ac_status); } >/dev/null && {
34645 + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
34646 + test ! -s conftest.err
34647 + }; then
34648 ac_header_preproc=yes
34649 else
34650 echo "$as_me: failed program was:" >&5
34651 @@ -8349,9 +8858,10 @@ sed 's/^/| /' conftest.$ac_ext >&5
34652
34653 ac_header_preproc=no
34654 fi
34655 +
34656 rm -f conftest.err conftest.$ac_ext
34657 -echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34658 -echo "${ECHO_T}$ac_header_preproc" >&6
34659 +{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34660 +echo "${ECHO_T}$ac_header_preproc" >&6; }
34661
34662 # So? What about this header?
34663 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34664 @@ -8375,25 +8885,18 @@ echo "$as_me: WARNING: linux/version.h:
34665 echo "$as_me: WARNING: linux/version.h: proceeding with the preprocessor's result" >&2;}
34666 { echo "$as_me:$LINENO: WARNING: linux/version.h: in the future, the compiler will take precedence" >&5
34667 echo "$as_me: WARNING: linux/version.h: in the future, the compiler will take precedence" >&2;}
34668 - (
34669 - cat <<\_ASBOX
34670 -## ------------------------------------------ ##
34671 -## Report this to the AC_PACKAGE_NAME lists. ##
34672 -## ------------------------------------------ ##
34673 -_ASBOX
34674 - ) |
34675 - sed "s/^/$as_me: WARNING: /" >&2
34676 +
34677 ;;
34678 esac
34679 -echo "$as_me:$LINENO: checking for linux/version.h" >&5
34680 -echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
34681 +{ echo "$as_me:$LINENO: checking for linux/version.h" >&5
34682 +echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6; }
34683 if test "${ac_cv_header_linux_version_h+set}" = set; then
34684 echo $ECHO_N "(cached) $ECHO_C" >&6
34685 else
34686 ac_cv_header_linux_version_h=$ac_header_preproc
34687 fi
34688 -echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
34689 -echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
34690 +{ echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
34691 +echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6; }
34692
34693 fi
34694 if test $ac_cv_header_linux_version_h = yes; then
34695 @@ -8443,17 +8946,17 @@ fi
34696 fi
34697
34698
34699 -echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
34700 -echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
34701 - # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
34702 +{ echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
34703 +echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
34704 + # Check whether --enable-maintainer-mode was given.
34705 if test "${enable_maintainer_mode+set}" = set; then
34706 - enableval="$enable_maintainer_mode"
34707 - USE_MAINTAINER_MODE=$enableval
34708 + enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
34709 else
34710 USE_MAINTAINER_MODE=no
34711 -fi;
34712 - echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
34713 -echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
34714 +fi
34715 +
34716 + { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
34717 +echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
34718
34719
34720 if test $USE_MAINTAINER_MODE = yes; then
34721 @@ -8493,8 +8996,8 @@ AR=${AR-ar}
34722 if test -n "$ac_tool_prefix"; then
34723 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
34724 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
34725 -echo "$as_me:$LINENO: checking for $ac_word" >&5
34726 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
34727 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
34728 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
34729 if test "${ac_cv_prog_RANLIB+set}" = set; then
34730 echo $ECHO_N "(cached) $ECHO_C" >&6
34731 else
34732 @@ -8507,32 +9010,34 @@ do
34733 IFS=$as_save_IFS
34734 test -z "$as_dir" && as_dir=.
34735 for ac_exec_ext in '' $ac_executable_extensions; do
34736 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34737 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34738 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
34739 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34740 break 2
34741 fi
34742 done
34743 done
34744 +IFS=$as_save_IFS
34745
34746 fi
34747 fi
34748 RANLIB=$ac_cv_prog_RANLIB
34749 if test -n "$RANLIB"; then
34750 - echo "$as_me:$LINENO: result: $RANLIB" >&5
34751 -echo "${ECHO_T}$RANLIB" >&6
34752 + { echo "$as_me:$LINENO: result: $RANLIB" >&5
34753 +echo "${ECHO_T}$RANLIB" >&6; }
34754 else
34755 - echo "$as_me:$LINENO: result: no" >&5
34756 -echo "${ECHO_T}no" >&6
34757 + { echo "$as_me:$LINENO: result: no" >&5
34758 +echo "${ECHO_T}no" >&6; }
34759 fi
34760
34761 +
34762 fi
34763 if test -z "$ac_cv_prog_RANLIB"; then
34764 ac_ct_RANLIB=$RANLIB
34765 # Extract the first word of "ranlib", so it can be a program name with args.
34766 set dummy ranlib; ac_word=$2
34767 -echo "$as_me:$LINENO: checking for $ac_word" >&5
34768 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
34769 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
34770 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
34771 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
34772 echo $ECHO_N "(cached) $ECHO_C" >&6
34773 else
34774 @@ -8545,27 +9050,41 @@ do
34775 IFS=$as_save_IFS
34776 test -z "$as_dir" && as_dir=.
34777 for ac_exec_ext in '' $ac_executable_extensions; do
34778 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34779 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34780 ac_cv_prog_ac_ct_RANLIB="ranlib"
34781 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34782 break 2
34783 fi
34784 done
34785 done
34786 +IFS=$as_save_IFS
34787
34788 - test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
34789 fi
34790 fi
34791 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
34792 if test -n "$ac_ct_RANLIB"; then
34793 - echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
34794 -echo "${ECHO_T}$ac_ct_RANLIB" >&6
34795 + { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
34796 +echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
34797 else
34798 - echo "$as_me:$LINENO: result: no" >&5
34799 -echo "${ECHO_T}no" >&6
34800 + { echo "$as_me:$LINENO: result: no" >&5
34801 +echo "${ECHO_T}no" >&6; }
34802 fi
34803
34804 - RANLIB=$ac_ct_RANLIB
34805 + if test "x$ac_ct_RANLIB" = x; then
34806 + RANLIB=":"
34807 + else
34808 + case $cross_compiling:$ac_tool_warned in
34809 +yes:)
34810 +{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
34811 +whose name does not start with the host triplet. If you think this
34812 +configuration is useful to you, please write to autoconf@gnu.org." >&5
34813 +echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
34814 +whose name does not start with the host triplet. If you think this
34815 +configuration is useful to you, please write to autoconf@gnu.org." >&2;}
34816 +ac_tool_warned=yes ;;
34817 +esac
34818 + RANLIB=$ac_ct_RANLIB
34819 + fi
34820 else
34821 RANLIB="$ac_cv_prog_RANLIB"
34822 fi
34823 @@ -8583,8 +9102,8 @@ fi
34824 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
34825 # OS/2's system install, which has a completely different semantic
34826 # ./install, which can be erroneously created by make from ./install.sh.
34827 -echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
34828 -echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
34829 +{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
34830 +echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
34831 if test -z "$INSTALL"; then
34832 if test "${ac_cv_path_install+set}" = set; then
34833 echo $ECHO_N "(cached) $ECHO_C" >&6
34834 @@ -8606,7 +9125,7 @@ case $as_dir/ in
34835 # by default.
34836 for ac_prog in ginstall scoinst install; do
34837 for ac_exec_ext in '' $ac_executable_extensions; do
34838 - if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
34839 + if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
34840 if test $ac_prog = install &&
34841 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
34842 # AIX install. It has an incompatible calling convention.
34843 @@ -8625,21 +9144,22 @@ case $as_dir/ in
34844 ;;
34845 esac
34846 done
34847 +IFS=$as_save_IFS
34848
34849
34850 fi
34851 if test "${ac_cv_path_install+set}" = set; then
34852 INSTALL=$ac_cv_path_install
34853 else
34854 - # As a last resort, use the slow shell script. We don't cache a
34855 - # path for INSTALL within a source directory, because that will
34856 + # As a last resort, use the slow shell script. Don't cache a
34857 + # value for INSTALL within a source directory, because that will
34858 # break other packages using the cache if that directory is
34859 - # removed, or if the path is relative.
34860 + # removed, or if the value is a relative name.
34861 INSTALL=$ac_install_sh
34862 fi
34863 fi
34864 -echo "$as_me:$LINENO: result: $INSTALL" >&5
34865 -echo "${ECHO_T}$INSTALL" >&6
34866 +{ echo "$as_me:$LINENO: result: $INSTALL" >&5
34867 +echo "${ECHO_T}$INSTALL" >&6; }
34868
34869 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
34870 # It thinks the first close brace ends the variable substitution.
34871 @@ -8663,8 +9183,8 @@ fi
34872 if test "x$cross_compiling" = "xno"; then
34873 EXEEXT_FOR_BUILD='$(EXEEXT)'
34874 else
34875 - echo "$as_me:$LINENO: checking for build system executable suffix" >&5
34876 -echo $ECHO_N "checking for build system executable suffix... $ECHO_C" >&6
34877 + { echo "$as_me:$LINENO: checking for build system executable suffix" >&5
34878 +echo $ECHO_N "checking for build system executable suffix... $ECHO_C" >&6; }
34879 if test "${bfd_cv_build_exeext+set}" = set; then
34880 echo $ECHO_N "(cached) $ECHO_C" >&6
34881 else
34882 @@ -8681,8 +9201,8 @@ else
34883 rm -f conftest*
34884 test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
34885 fi
34886 -echo "$as_me:$LINENO: result: $bfd_cv_build_exeext" >&5
34887 -echo "${ECHO_T}$bfd_cv_build_exeext" >&6
34888 +{ echo "$as_me:$LINENO: result: $bfd_cv_build_exeext" >&5
34889 +echo "${ECHO_T}$bfd_cv_build_exeext" >&6; }
34890 EXEEXT_FOR_BUILD=""
34891 test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
34892 fi
34893 @@ -8704,18 +9224,19 @@ esac
34894 for ac_header in string.h strings.h stdlib.h unistd.h fcntl.h sys/file.h
34895 do
34896 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34897 -if eval "test \"\${$as_ac_Header+set}\" = set"; then
34898 - echo "$as_me:$LINENO: checking for $ac_header" >&5
34899 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34900 -if eval "test \"\${$as_ac_Header+set}\" = set"; then
34901 +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34902 + { echo "$as_me:$LINENO: checking for $ac_header" >&5
34903 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
34904 +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34905 echo $ECHO_N "(cached) $ECHO_C" >&6
34906 fi
34907 -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34908 -echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34909 +ac_res=`eval echo '${'$as_ac_Header'}'`
34910 + { echo "$as_me:$LINENO: result: $ac_res" >&5
34911 +echo "${ECHO_T}$ac_res" >&6; }
34912 else
34913 # Is the header compilable?
34914 -echo "$as_me:$LINENO: checking $ac_header usability" >&5
34915 -echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
34916 +{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
34917 +echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
34918 cat >conftest.$ac_ext <<_ACEOF
34919 /* confdefs.h. */
34920 _ACEOF
34921 @@ -8726,41 +9247,37 @@ $ac_includes_default
34922 #include <$ac_header>
34923 _ACEOF
34924 rm -f conftest.$ac_objext
34925 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34926 - (eval $ac_compile) 2>conftest.er1
34927 +if { (ac_try="$ac_compile"
34928 +case "(($ac_try" in
34929 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34930 + *) ac_try_echo=$ac_try;;
34931 +esac
34932 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34933 + (eval "$ac_compile") 2>conftest.er1
34934 ac_status=$?
34935 grep -v '^ *+' conftest.er1 >conftest.err
34936 rm -f conftest.er1
34937 cat conftest.err >&5
34938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34939 - (exit $ac_status); } &&
34940 - { ac_try='test -z "$ac_c_werror_flag"
34941 - || test ! -s conftest.err'
34942 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34943 - (eval $ac_try) 2>&5
34944 - ac_status=$?
34945 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
34946 - (exit $ac_status); }; } &&
34947 - { ac_try='test -s conftest.$ac_objext'
34948 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34949 - (eval $ac_try) 2>&5
34950 - ac_status=$?
34951 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
34952 - (exit $ac_status); }; }; then
34953 + (exit $ac_status); } && {
34954 + test -z "$ac_c_werror_flag" ||
34955 + test ! -s conftest.err
34956 + } && test -s conftest.$ac_objext; then
34957 ac_header_compiler=yes
34958 else
34959 echo "$as_me: failed program was:" >&5
34960 sed 's/^/| /' conftest.$ac_ext >&5
34961
34962 -ac_header_compiler=no
34963 + ac_header_compiler=no
34964 fi
34965 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34966 -echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34967 -echo "${ECHO_T}$ac_header_compiler" >&6
34968 +
34969 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34970 +{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34971 +echo "${ECHO_T}$ac_header_compiler" >&6; }
34972
34973 # Is the header present?
34974 -echo "$as_me:$LINENO: checking $ac_header presence" >&5
34975 -echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
34976 +{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
34977 +echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
34978 cat >conftest.$ac_ext <<_ACEOF
34979 /* confdefs.h. */
34980 _ACEOF
34981 @@ -8769,24 +9286,22 @@ cat >>conftest.$ac_ext <<_ACEOF
34982 /* end confdefs.h. */
34983 #include <$ac_header>
34984 _ACEOF
34985 -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
34986 - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
34987 +if { (ac_try="$ac_cpp conftest.$ac_ext"
34988 +case "(($ac_try" in
34989 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34990 + *) ac_try_echo=$ac_try;;
34991 +esac
34992 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34993 + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
34994 ac_status=$?
34995 grep -v '^ *+' conftest.er1 >conftest.err
34996 rm -f conftest.er1
34997 cat conftest.err >&5
34998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34999 - (exit $ac_status); } >/dev/null; then
35000 - if test -s conftest.err; then
35001 - ac_cpp_err=$ac_c_preproc_warn_flag
35002 - ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
35003 - else
35004 - ac_cpp_err=
35005 - fi
35006 -else
35007 - ac_cpp_err=yes
35008 -fi
35009 -if test -z "$ac_cpp_err"; then
35010 + (exit $ac_status); } >/dev/null && {
35011 + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
35012 + test ! -s conftest.err
35013 + }; then
35014 ac_header_preproc=yes
35015 else
35016 echo "$as_me: failed program was:" >&5
35017 @@ -8794,9 +9309,10 @@ sed 's/^/| /' conftest.$ac_ext >&5
35018
35019 ac_header_preproc=no
35020 fi
35021 +
35022 rm -f conftest.err conftest.$ac_ext
35023 -echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35024 -echo "${ECHO_T}$ac_header_preproc" >&6
35025 +{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35026 +echo "${ECHO_T}$ac_header_preproc" >&6; }
35027
35028 # So? What about this header?
35029 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35030 @@ -8820,25 +9336,19 @@ echo "$as_me: WARNING: $ac_header: s
35031 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35032 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35033 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35034 - (
35035 - cat <<\_ASBOX
35036 -## ------------------------------------------ ##
35037 -## Report this to the AC_PACKAGE_NAME lists. ##
35038 -## ------------------------------------------ ##
35039 -_ASBOX
35040 - ) |
35041 - sed "s/^/$as_me: WARNING: /" >&2
35042 +
35043 ;;
35044 esac
35045 -echo "$as_me:$LINENO: checking for $ac_header" >&5
35046 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35047 -if eval "test \"\${$as_ac_Header+set}\" = set"; then
35048 +{ echo "$as_me:$LINENO: checking for $ac_header" >&5
35049 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
35050 +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35051 echo $ECHO_N "(cached) $ECHO_C" >&6
35052 else
35053 eval "$as_ac_Header=\$ac_header_preproc"
35054 fi
35055 -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35056 -echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35057 +ac_res=`eval echo '${'$as_ac_Header'}'`
35058 + { echo "$as_me:$LINENO: result: $ac_res" >&5
35059 +echo "${ECHO_T}$ac_res" >&6; }
35060
35061 fi
35062 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35063 @@ -8850,8 +9360,8 @@ fi
35064
35065 done
35066
35067 -echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
35068 -echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
35069 +{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
35070 +echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
35071 if test "${ac_cv_header_sys_wait_h+set}" = set; then
35072 echo $ECHO_N "(cached) $ECHO_C" >&6
35073 else
35074 @@ -8864,7 +9374,7 @@ cat >>conftest.$ac_ext <<_ACEOF
35075 #include <sys/types.h>
35076 #include <sys/wait.h>
35077 #ifndef WEXITSTATUS
35078 -# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
35079 +# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
35080 #endif
35081 #ifndef WIFEXITED
35082 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
35083 @@ -8881,38 +9391,34 @@ main ()
35084 }
35085 _ACEOF
35086 rm -f conftest.$ac_objext
35087 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35088 - (eval $ac_compile) 2>conftest.er1
35089 +if { (ac_try="$ac_compile"
35090 +case "(($ac_try" in
35091 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35092 + *) ac_try_echo=$ac_try;;
35093 +esac
35094 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35095 + (eval "$ac_compile") 2>conftest.er1
35096 ac_status=$?
35097 grep -v '^ *+' conftest.er1 >conftest.err
35098 rm -f conftest.er1
35099 cat conftest.err >&5
35100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35101 - (exit $ac_status); } &&
35102 - { ac_try='test -z "$ac_c_werror_flag"
35103 - || test ! -s conftest.err'
35104 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35105 - (eval $ac_try) 2>&5
35106 - ac_status=$?
35107 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
35108 - (exit $ac_status); }; } &&
35109 - { ac_try='test -s conftest.$ac_objext'
35110 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35111 - (eval $ac_try) 2>&5
35112 - ac_status=$?
35113 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
35114 - (exit $ac_status); }; }; then
35115 + (exit $ac_status); } && {
35116 + test -z "$ac_c_werror_flag" ||
35117 + test ! -s conftest.err
35118 + } && test -s conftest.$ac_objext; then
35119 ac_cv_header_sys_wait_h=yes
35120 else
35121 echo "$as_me: failed program was:" >&5
35122 sed 's/^/| /' conftest.$ac_ext >&5
35123
35124 -ac_cv_header_sys_wait_h=no
35125 + ac_cv_header_sys_wait_h=no
35126 fi
35127 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35128 +
35129 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35130 fi
35131 -echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
35132 -echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
35133 +{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
35134 +echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
35135 if test $ac_cv_header_sys_wait_h = yes; then
35136
35137 cat >>confdefs.h <<\_ACEOF
35138 @@ -8923,8 +9429,8 @@ fi
35139
35140 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
35141 # for constant arguments. Useless!
35142 -echo "$as_me:$LINENO: checking for working alloca.h" >&5
35143 -echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
35144 +{ echo "$as_me:$LINENO: checking for working alloca.h" >&5
35145 +echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
35146 if test "${ac_cv_working_alloca_h+set}" = set; then
35147 echo $ECHO_N "(cached) $ECHO_C" >&6
35148 else
35149 @@ -8939,44 +9445,42 @@ int
35150 main ()
35151 {
35152 char *p = (char *) alloca (2 * sizeof (int));
35153 + if (p) return 0;
35154 ;
35155 return 0;
35156 }
35157 _ACEOF
35158 rm -f conftest.$ac_objext conftest$ac_exeext
35159 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35160 - (eval $ac_link) 2>conftest.er1
35161 +if { (ac_try="$ac_link"
35162 +case "(($ac_try" in
35163 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35164 + *) ac_try_echo=$ac_try;;
35165 +esac
35166 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35167 + (eval "$ac_link") 2>conftest.er1
35168 ac_status=$?
35169 grep -v '^ *+' conftest.er1 >conftest.err
35170 rm -f conftest.er1
35171 cat conftest.err >&5
35172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35173 - (exit $ac_status); } &&
35174 - { ac_try='test -z "$ac_c_werror_flag"
35175 - || test ! -s conftest.err'
35176 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35177 - (eval $ac_try) 2>&5
35178 - ac_status=$?
35179 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
35180 - (exit $ac_status); }; } &&
35181 - { ac_try='test -s conftest$ac_exeext'
35182 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35183 - (eval $ac_try) 2>&5
35184 - ac_status=$?
35185 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
35186 - (exit $ac_status); }; }; then
35187 + (exit $ac_status); } && {
35188 + test -z "$ac_c_werror_flag" ||
35189 + test ! -s conftest.err
35190 + } && test -s conftest$ac_exeext &&
35191 + $as_test_x conftest$ac_exeext; then
35192 ac_cv_working_alloca_h=yes
35193 else
35194 echo "$as_me: failed program was:" >&5
35195 sed 's/^/| /' conftest.$ac_ext >&5
35196
35197 -ac_cv_working_alloca_h=no
35198 + ac_cv_working_alloca_h=no
35199 fi
35200 -rm -f conftest.err conftest.$ac_objext \
35201 +
35202 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35203 conftest$ac_exeext conftest.$ac_ext
35204 fi
35205 -echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
35206 -echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
35207 +{ echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
35208 +echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
35209 if test $ac_cv_working_alloca_h = yes; then
35210
35211 cat >>confdefs.h <<\_ACEOF
35212 @@ -8985,8 +9489,8 @@ _ACEOF
35213
35214 fi
35215
35216 -echo "$as_me:$LINENO: checking for alloca" >&5
35217 -echo $ECHO_N "checking for alloca... $ECHO_C" >&6
35218 +{ echo "$as_me:$LINENO: checking for alloca" >&5
35219 +echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
35220 if test "${ac_cv_func_alloca_works+set}" = set; then
35221 echo $ECHO_N "(cached) $ECHO_C" >&6
35222 else
35223 @@ -9003,7 +9507,7 @@ cat >>conftest.$ac_ext <<_ACEOF
35224 # include <malloc.h>
35225 # define alloca _alloca
35226 # else
35227 -# if HAVE_ALLOCA_H
35228 +# ifdef HAVE_ALLOCA_H
35229 # include <alloca.h>
35230 # else
35231 # ifdef _AIX
35232 @@ -9021,44 +9525,42 @@ int
35233 main ()
35234 {
35235 char *p = (char *) alloca (1);
35236 + if (p) return 0;
35237 ;
35238 return 0;
35239 }
35240 _ACEOF
35241 rm -f conftest.$ac_objext conftest$ac_exeext
35242 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35243 - (eval $ac_link) 2>conftest.er1
35244 +if { (ac_try="$ac_link"
35245 +case "(($ac_try" in
35246 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35247 + *) ac_try_echo=$ac_try;;
35248 +esac
35249 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35250 + (eval "$ac_link") 2>conftest.er1
35251 ac_status=$?
35252 grep -v '^ *+' conftest.er1 >conftest.err
35253 rm -f conftest.er1
35254 cat conftest.err >&5
35255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35256 - (exit $ac_status); } &&
35257 - { ac_try='test -z "$ac_c_werror_flag"
35258 - || test ! -s conftest.err'
35259 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35260 - (eval $ac_try) 2>&5
35261 - ac_status=$?
35262 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
35263 - (exit $ac_status); }; } &&
35264 - { ac_try='test -s conftest$ac_exeext'
35265 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35266 - (eval $ac_try) 2>&5
35267 - ac_status=$?
35268 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
35269 - (exit $ac_status); }; }; then
35270 + (exit $ac_status); } && {
35271 + test -z "$ac_c_werror_flag" ||
35272 + test ! -s conftest.err
35273 + } && test -s conftest$ac_exeext &&
35274 + $as_test_x conftest$ac_exeext; then
35275 ac_cv_func_alloca_works=yes
35276 else
35277 echo "$as_me: failed program was:" >&5
35278 sed 's/^/| /' conftest.$ac_ext >&5
35279
35280 -ac_cv_func_alloca_works=no
35281 + ac_cv_func_alloca_works=no
35282 fi
35283 -rm -f conftest.err conftest.$ac_objext \
35284 +
35285 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35286 conftest$ac_exeext conftest.$ac_ext
35287 fi
35288 -echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
35289 -echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
35290 +{ echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
35291 +echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
35292
35293 if test $ac_cv_func_alloca_works = yes; then
35294
35295 @@ -9072,15 +9574,15 @@ else
35296 # contain a buggy version. If you still want to use their alloca,
35297 # use ar to extract alloca.o from them instead of compiling alloca.c.
35298
35299 -ALLOCA=alloca.$ac_objext
35300 +ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
35301
35302 cat >>confdefs.h <<\_ACEOF
35303 #define C_ALLOCA 1
35304 _ACEOF
35305
35306
35307 -echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
35308 -echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
35309 +{ echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
35310 +echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
35311 if test "${ac_cv_os_cray+set}" = set; then
35312 echo $ECHO_N "(cached) $ECHO_C" >&6
35313 else
35314 @@ -9090,7 +9592,7 @@ _ACEOF
35315 cat confdefs.h >>conftest.$ac_ext
35316 cat >>conftest.$ac_ext <<_ACEOF
35317 /* end confdefs.h. */
35318 -#if defined(CRAY) && ! defined(CRAY2)
35319 +#if defined CRAY && ! defined CRAY2
35320 webecray
35321 #else
35322 wenotbecray
35323 @@ -9106,14 +9608,14 @@ fi
35324 rm -f conftest*
35325
35326 fi
35327 -echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
35328 -echo "${ECHO_T}$ac_cv_os_cray" >&6
35329 +{ echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
35330 +echo "${ECHO_T}$ac_cv_os_cray" >&6; }
35331 if test $ac_cv_os_cray = yes; then
35332 for ac_func in _getb67 GETB67 getb67; do
35333 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35334 -echo "$as_me:$LINENO: checking for $ac_func" >&5
35335 -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35336 -if eval "test \"\${$as_ac_var+set}\" = set"; then
35337 +{ echo "$as_me:$LINENO: checking for $ac_func" >&5
35338 +echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
35339 +if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
35340 echo $ECHO_N "(cached) $ECHO_C" >&6
35341 else
35342 cat >conftest.$ac_ext <<_ACEOF
35343 @@ -9139,68 +9641,60 @@ cat >>conftest.$ac_ext <<_ACEOF
35344
35345 #undef $ac_func
35346
35347 -/* Override any gcc2 internal prototype to avoid an error. */
35348 +/* Override any GCC internal prototype to avoid an error.
35349 + Use char because int might match the return type of a GCC
35350 + builtin and then its argument prototype would still apply. */
35351 #ifdef __cplusplus
35352 extern "C"
35353 -{
35354 #endif
35355 -/* We use char because int might match the return type of a gcc2
35356 - builtin and then its argument prototype would still apply. */
35357 char $ac_func ();
35358 /* The GNU C library defines this for functions which it implements
35359 to always fail with ENOSYS. Some functions are actually named
35360 something starting with __ and the normal name is an alias. */
35361 -#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35362 +#if defined __stub_$ac_func || defined __stub___$ac_func
35363 choke me
35364 -#else
35365 -char (*f) () = $ac_func;
35366 -#endif
35367 -#ifdef __cplusplus
35368 -}
35369 #endif
35370
35371 int
35372 main ()
35373 {
35374 -return f != $ac_func;
35375 +return $ac_func ();
35376 ;
35377 return 0;
35378 }
35379 _ACEOF
35380 rm -f conftest.$ac_objext conftest$ac_exeext
35381 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35382 - (eval $ac_link) 2>conftest.er1
35383 +if { (ac_try="$ac_link"
35384 +case "(($ac_try" in
35385 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35386 + *) ac_try_echo=$ac_try;;
35387 +esac
35388 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35389 + (eval "$ac_link") 2>conftest.er1
35390 ac_status=$?
35391 grep -v '^ *+' conftest.er1 >conftest.err
35392 rm -f conftest.er1
35393 cat conftest.err >&5
35394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35395 - (exit $ac_status); } &&
35396 - { ac_try='test -z "$ac_c_werror_flag"
35397 - || test ! -s conftest.err'
35398 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35399 - (eval $ac_try) 2>&5
35400 - ac_status=$?
35401 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
35402 - (exit $ac_status); }; } &&
35403 - { ac_try='test -s conftest$ac_exeext'
35404 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35405 - (eval $ac_try) 2>&5
35406 - ac_status=$?
35407 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
35408 - (exit $ac_status); }; }; then
35409 + (exit $ac_status); } && {
35410 + test -z "$ac_c_werror_flag" ||
35411 + test ! -s conftest.err
35412 + } && test -s conftest$ac_exeext &&
35413 + $as_test_x conftest$ac_exeext; then
35414 eval "$as_ac_var=yes"
35415 else
35416 echo "$as_me: failed program was:" >&5
35417 sed 's/^/| /' conftest.$ac_ext >&5
35418
35419 -eval "$as_ac_var=no"
35420 + eval "$as_ac_var=no"
35421 fi
35422 -rm -f conftest.err conftest.$ac_objext \
35423 +
35424 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35425 conftest$ac_exeext conftest.$ac_ext
35426 fi
35427 -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35428 -echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35429 +ac_res=`eval echo '${'$as_ac_var'}'`
35430 + { echo "$as_me:$LINENO: result: $ac_res" >&5
35431 +echo "${ECHO_T}$ac_res" >&6; }
35432 if test `eval echo '${'$as_ac_var'}'` = yes; then
35433
35434 cat >>confdefs.h <<_ACEOF
35435 @@ -9213,8 +9707,8 @@ fi
35436 done
35437 fi
35438
35439 -echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
35440 -echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
35441 +{ echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
35442 +echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
35443 if test "${ac_cv_c_stack_direction+set}" = set; then
35444 echo $ECHO_N "(cached) $ECHO_C" >&6
35445 else
35446 @@ -9227,6 +9721,7 @@ _ACEOF
35447 cat confdefs.h >>conftest.$ac_ext
35448 cat >>conftest.$ac_ext <<_ACEOF
35449 /* end confdefs.h. */
35450 +$ac_includes_default
35451 int
35452 find_stack_direction ()
35453 {
35454 @@ -9244,17 +9739,26 @@ find_stack_direction ()
35455 int
35456 main ()
35457 {
35458 - exit (find_stack_direction () < 0);
35459 + return find_stack_direction () < 0;
35460 }
35461 _ACEOF
35462 rm -f conftest$ac_exeext
35463 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35464 - (eval $ac_link) 2>&5
35465 +if { (ac_try="$ac_link"
35466 +case "(($ac_try" in
35467 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35468 + *) ac_try_echo=$ac_try;;
35469 +esac
35470 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35471 + (eval "$ac_link") 2>&5
35472 ac_status=$?
35473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35474 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35475 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35476 - (eval $ac_try) 2>&5
35477 + { (case "(($ac_try" in
35478 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35479 + *) ac_try_echo=$ac_try;;
35480 +esac
35481 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35482 + (eval "$ac_try") 2>&5
35483 ac_status=$?
35484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35485 (exit $ac_status); }; }; then
35486 @@ -9267,11 +9771,13 @@ sed 's/^/| /' conftest.$ac_ext >&5
35487 ( exit $ac_status )
35488 ac_cv_c_stack_direction=-1
35489 fi
35490 -rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35491 +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35492 fi
35493 +
35494 +
35495 fi
35496 -echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
35497 -echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
35498 +{ echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
35499 +echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
35500
35501 cat >>confdefs.h <<_ACEOF
35502 #define STACK_DIRECTION $ac_cv_c_stack_direction
35503 @@ -9288,9 +9794,9 @@ fi
35504 for ac_func in sbrk utimes setmode getc_unlocked strcoll
35505 do
35506 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35507 -echo "$as_me:$LINENO: checking for $ac_func" >&5
35508 -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35509 -if eval "test \"\${$as_ac_var+set}\" = set"; then
35510 +{ echo "$as_me:$LINENO: checking for $ac_func" >&5
35511 +echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
35512 +if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
35513 echo $ECHO_N "(cached) $ECHO_C" >&6
35514 else
35515 cat >conftest.$ac_ext <<_ACEOF
35516 @@ -9316,68 +9822,60 @@ cat >>conftest.$ac_ext <<_ACEOF
35517
35518 #undef $ac_func
35519
35520 -/* Override any gcc2 internal prototype to avoid an error. */
35521 +/* Override any GCC internal prototype to avoid an error.
35522 + Use char because int might match the return type of a GCC
35523 + builtin and then its argument prototype would still apply. */
35524 #ifdef __cplusplus
35525 extern "C"
35526 -{
35527 #endif
35528 -/* We use char because int might match the return type of a gcc2
35529 - builtin and then its argument prototype would still apply. */
35530 char $ac_func ();
35531 /* The GNU C library defines this for functions which it implements
35532 to always fail with ENOSYS. Some functions are actually named
35533 something starting with __ and the normal name is an alias. */
35534 -#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35535 +#if defined __stub_$ac_func || defined __stub___$ac_func
35536 choke me
35537 -#else
35538 -char (*f) () = $ac_func;
35539 -#endif
35540 -#ifdef __cplusplus
35541 -}
35542 #endif
35543
35544 int
35545 main ()
35546 {
35547 -return f != $ac_func;
35548 +return $ac_func ();
35549 ;
35550 return 0;
35551 }
35552 _ACEOF
35553 rm -f conftest.$ac_objext conftest$ac_exeext
35554 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35555 - (eval $ac_link) 2>conftest.er1
35556 +if { (ac_try="$ac_link"
35557 +case "(($ac_try" in
35558 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35559 + *) ac_try_echo=$ac_try;;
35560 +esac
35561 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35562 + (eval "$ac_link") 2>conftest.er1
35563 ac_status=$?
35564 grep -v '^ *+' conftest.er1 >conftest.err
35565 rm -f conftest.er1
35566 cat conftest.err >&5
35567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35568 - (exit $ac_status); } &&
35569 - { ac_try='test -z "$ac_c_werror_flag"
35570 - || test ! -s conftest.err'
35571 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35572 - (eval $ac_try) 2>&5
35573 - ac_status=$?
35574 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
35575 - (exit $ac_status); }; } &&
35576 - { ac_try='test -s conftest$ac_exeext'
35577 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35578 - (eval $ac_try) 2>&5
35579 - ac_status=$?
35580 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
35581 - (exit $ac_status); }; }; then
35582 + (exit $ac_status); } && {
35583 + test -z "$ac_c_werror_flag" ||
35584 + test ! -s conftest.err
35585 + } && test -s conftest$ac_exeext &&
35586 + $as_test_x conftest$ac_exeext; then
35587 eval "$as_ac_var=yes"
35588 else
35589 echo "$as_me: failed program was:" >&5
35590 sed 's/^/| /' conftest.$ac_ext >&5
35591
35592 -eval "$as_ac_var=no"
35593 + eval "$as_ac_var=no"
35594 fi
35595 -rm -f conftest.err conftest.$ac_objext \
35596 +
35597 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35598 conftest$ac_exeext conftest.$ac_ext
35599 fi
35600 -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35601 -echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35602 +ac_res=`eval echo '${'$as_ac_var'}'`
35603 + { echo "$as_me:$LINENO: result: $ac_res" >&5
35604 +echo "${ECHO_T}$ac_res" >&6; }
35605 if test `eval echo '${'$as_ac_var'}'` = yes; then
35606 cat >>confdefs.h <<_ACEOF
35607 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35608 @@ -9389,8 +9887,8 @@ done
35609
35610 # Check whether fopen64 is available and whether _LARGEFILE64_SOURCE
35611 # needs to be defined for it
35612 -echo "$as_me:$LINENO: checking for fopen64" >&5
35613 -echo $ECHO_N "checking for fopen64... $ECHO_C" >&6
35614 +{ echo "$as_me:$LINENO: checking for fopen64" >&5
35615 +echo $ECHO_N "checking for fopen64... $ECHO_C" >&6; }
35616 if test "${bu_cv_have_fopen64+set}" = set; then
35617 echo $ECHO_N "(cached) $ECHO_C" >&6
35618 else
35619 @@ -9410,33 +9908,29 @@ FILE *f = fopen64 ("/tmp/foo","r");
35620 }
35621 _ACEOF
35622 rm -f conftest.$ac_objext conftest$ac_exeext
35623 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35624 - (eval $ac_link) 2>conftest.er1
35625 +if { (ac_try="$ac_link"
35626 +case "(($ac_try" in
35627 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35628 + *) ac_try_echo=$ac_try;;
35629 +esac
35630 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35631 + (eval "$ac_link") 2>conftest.er1
35632 ac_status=$?
35633 grep -v '^ *+' conftest.er1 >conftest.err
35634 rm -f conftest.er1
35635 cat conftest.err >&5
35636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35637 - (exit $ac_status); } &&
35638 - { ac_try='test -z "$ac_c_werror_flag"
35639 - || test ! -s conftest.err'
35640 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35641 - (eval $ac_try) 2>&5
35642 - ac_status=$?
35643 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
35644 - (exit $ac_status); }; } &&
35645 - { ac_try='test -s conftest$ac_exeext'
35646 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35647 - (eval $ac_try) 2>&5
35648 - ac_status=$?
35649 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
35650 - (exit $ac_status); }; }; then
35651 + (exit $ac_status); } && {
35652 + test -z "$ac_c_werror_flag" ||
35653 + test ! -s conftest.err
35654 + } && test -s conftest$ac_exeext &&
35655 + $as_test_x conftest$ac_exeext; then
35656 bu_cv_have_fopen64=yes
35657 else
35658 echo "$as_me: failed program was:" >&5
35659 sed 's/^/| /' conftest.$ac_ext >&5
35660
35661 -saved_CPPFLAGS=$CPPFLAGS
35662 + saved_CPPFLAGS=$CPPFLAGS
35663 CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE"
35664 cat >conftest.$ac_ext <<_ACEOF
35665 /* confdefs.h. */
35666 @@ -9454,44 +9948,42 @@ FILE *f = fopen64 ("/tmp/foo","r");
35667 }
35668 _ACEOF
35669 rm -f conftest.$ac_objext conftest$ac_exeext
35670 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35671 - (eval $ac_link) 2>conftest.er1
35672 +if { (ac_try="$ac_link"
35673 +case "(($ac_try" in
35674 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35675 + *) ac_try_echo=$ac_try;;
35676 +esac
35677 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35678 + (eval "$ac_link") 2>conftest.er1
35679 ac_status=$?
35680 grep -v '^ *+' conftest.er1 >conftest.err
35681 rm -f conftest.er1
35682 cat conftest.err >&5
35683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35684 - (exit $ac_status); } &&
35685 - { ac_try='test -z "$ac_c_werror_flag"
35686 - || test ! -s conftest.err'
35687 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35688 - (eval $ac_try) 2>&5
35689 - ac_status=$?
35690 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
35691 - (exit $ac_status); }; } &&
35692 - { ac_try='test -s conftest$ac_exeext'
35693 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35694 - (eval $ac_try) 2>&5
35695 - ac_status=$?
35696 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
35697 - (exit $ac_status); }; }; then
35698 + (exit $ac_status); } && {
35699 + test -z "$ac_c_werror_flag" ||
35700 + test ! -s conftest.err
35701 + } && test -s conftest$ac_exeext &&
35702 + $as_test_x conftest$ac_exeext; then
35703 bu_cv_have_fopen64="need -D_LARGEFILE64_SOURCE"
35704 else
35705 echo "$as_me: failed program was:" >&5
35706 sed 's/^/| /' conftest.$ac_ext >&5
35707
35708 -bu_cv_have_fopen64=no
35709 + bu_cv_have_fopen64=no
35710 fi
35711 -rm -f conftest.err conftest.$ac_objext \
35712 +
35713 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35714 conftest$ac_exeext conftest.$ac_ext
35715 CPPFLAGS=$saved_CPPFLAGS
35716 fi
35717 -rm -f conftest.err conftest.$ac_objext \
35718 +
35719 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35720 conftest$ac_exeext conftest.$ac_ext
35721 fi
35722
35723 -echo "$as_me:$LINENO: result: $bu_cv_have_fopen64" >&5
35724 -echo "${ECHO_T}$bu_cv_have_fopen64" >&6
35725 +{ echo "$as_me:$LINENO: result: $bu_cv_have_fopen64" >&5
35726 +echo "${ECHO_T}$bu_cv_have_fopen64" >&6; }
35727 if test "$bu_cv_have_fopen64" != no; then
35728
35729 cat >>confdefs.h <<\_ACEOF
35730 @@ -9499,8 +9991,8 @@ cat >>confdefs.h <<\_ACEOF
35731 _ACEOF
35732
35733 fi
35734 -echo "$as_me:$LINENO: checking for stat64" >&5
35735 -echo $ECHO_N "checking for stat64... $ECHO_C" >&6
35736 +{ echo "$as_me:$LINENO: checking for stat64" >&5
35737 +echo $ECHO_N "checking for stat64... $ECHO_C" >&6; }
35738 if test "${bu_cv_have_stat64+set}" = set; then
35739 echo $ECHO_N "(cached) $ECHO_C" >&6
35740 else
35741 @@ -9520,33 +10012,29 @@ struct stat64 st; stat64 ("/tmp/foo", &s
35742 }
35743 _ACEOF
35744 rm -f conftest.$ac_objext conftest$ac_exeext
35745 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35746 - (eval $ac_link) 2>conftest.er1
35747 +if { (ac_try="$ac_link"
35748 +case "(($ac_try" in
35749 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35750 + *) ac_try_echo=$ac_try;;
35751 +esac
35752 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35753 + (eval "$ac_link") 2>conftest.er1
35754 ac_status=$?
35755 grep -v '^ *+' conftest.er1 >conftest.err
35756 rm -f conftest.er1
35757 cat conftest.err >&5
35758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35759 - (exit $ac_status); } &&
35760 - { ac_try='test -z "$ac_c_werror_flag"
35761 - || test ! -s conftest.err'
35762 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35763 - (eval $ac_try) 2>&5
35764 - ac_status=$?
35765 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
35766 - (exit $ac_status); }; } &&
35767 - { ac_try='test -s conftest$ac_exeext'
35768 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35769 - (eval $ac_try) 2>&5
35770 - ac_status=$?
35771 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
35772 - (exit $ac_status); }; }; then
35773 + (exit $ac_status); } && {
35774 + test -z "$ac_c_werror_flag" ||
35775 + test ! -s conftest.err
35776 + } && test -s conftest$ac_exeext &&
35777 + $as_test_x conftest$ac_exeext; then
35778 bu_cv_have_stat64=yes
35779 else
35780 echo "$as_me: failed program was:" >&5
35781 sed 's/^/| /' conftest.$ac_ext >&5
35782
35783 -saved_CPPFLAGS=$CPPFLAGS
35784 + saved_CPPFLAGS=$CPPFLAGS
35785 CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE"
35786 cat >conftest.$ac_ext <<_ACEOF
35787 /* confdefs.h. */
35788 @@ -9564,191 +10052,146 @@ struct stat64 st; stat64 ("/tmp/foo", &s
35789 }
35790 _ACEOF
35791 rm -f conftest.$ac_objext conftest$ac_exeext
35792 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35793 - (eval $ac_link) 2>conftest.er1
35794 +if { (ac_try="$ac_link"
35795 +case "(($ac_try" in
35796 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35797 + *) ac_try_echo=$ac_try;;
35798 +esac
35799 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35800 + (eval "$ac_link") 2>conftest.er1
35801 ac_status=$?
35802 grep -v '^ *+' conftest.er1 >conftest.err
35803 rm -f conftest.er1
35804 cat conftest.err >&5
35805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35806 - (exit $ac_status); } &&
35807 - { ac_try='test -z "$ac_c_werror_flag"
35808 - || test ! -s conftest.err'
35809 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35810 - (eval $ac_try) 2>&5
35811 - ac_status=$?
35812 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
35813 - (exit $ac_status); }; } &&
35814 - { ac_try='test -s conftest$ac_exeext'
35815 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35816 - (eval $ac_try) 2>&5
35817 - ac_status=$?
35818 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
35819 - (exit $ac_status); }; }; then
35820 + (exit $ac_status); } && {
35821 + test -z "$ac_c_werror_flag" ||
35822 + test ! -s conftest.err
35823 + } && test -s conftest$ac_exeext &&
35824 + $as_test_x conftest$ac_exeext; then
35825 bu_cv_have_stat64="need -D_LARGEFILE64_SOURCE"
35826 else
35827 echo "$as_me: failed program was:" >&5
35828 sed 's/^/| /' conftest.$ac_ext >&5
35829
35830 -bu_cv_have_stat64=no
35831 + bu_cv_have_stat64=no
35832 fi
35833 -rm -f conftest.err conftest.$ac_objext \
35834 +
35835 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35836 conftest$ac_exeext conftest.$ac_ext
35837 CPPFLAGS=$saved_CPPFLAGS
35838 fi
35839 -rm -f conftest.err conftest.$ac_objext \
35840 +
35841 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35842 conftest$ac_exeext conftest.$ac_ext
35843 fi
35844
35845 -echo "$as_me:$LINENO: result: $bu_cv_have_stat64" >&5
35846 -echo "${ECHO_T}$bu_cv_have_stat64" >&6
35847 +{ echo "$as_me:$LINENO: result: $bu_cv_have_stat64" >&5
35848 +echo "${ECHO_T}$bu_cv_have_stat64" >&6; }
35849 if test "$bu_cv_have_stat64" != no; then
35850
35851 cat >>confdefs.h <<\_ACEOF
35852 #define HAVE_STAT64 1
35853 _ACEOF
35854
35855 -fi
35856 -if test "$bu_cv_have_fopen64" = "need -D_LARGEFILE64_SOURCE" \
35857 - || test "$bu_cv_have_stat64" = "need -D_LARGEFILE64_SOURCE"; then
35858 -
35859 -cat >>confdefs.h <<\_ACEOF
35860 -#define _LARGEFILE64_SOURCE 1
35861 -_ACEOF
35862 -
35863 - CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE"
35864 -fi
35865 -
35866 -# Some systems have frexp only in -lm, not in -lc.
35867 -echo "$as_me:$LINENO: checking for library containing frexp" >&5
35868 -echo $ECHO_N "checking for library containing frexp... $ECHO_C" >&6
35869 -if test "${ac_cv_search_frexp+set}" = set; then
35870 - echo $ECHO_N "(cached) $ECHO_C" >&6
35871 -else
35872 - ac_func_search_save_LIBS=$LIBS
35873 -ac_cv_search_frexp=no
35874 -cat >conftest.$ac_ext <<_ACEOF
35875 -/* confdefs.h. */
35876 -_ACEOF
35877 -cat confdefs.h >>conftest.$ac_ext
35878 -cat >>conftest.$ac_ext <<_ACEOF
35879 -/* end confdefs.h. */
35880 -
35881 -/* Override any gcc2 internal prototype to avoid an error. */
35882 -#ifdef __cplusplus
35883 -extern "C"
35884 -#endif
35885 -/* We use char because int might match the return type of a gcc2
35886 - builtin and then its argument prototype would still apply. */
35887 -char frexp ();
35888 -int
35889 -main ()
35890 -{
35891 -frexp ();
35892 - ;
35893 - return 0;
35894 -}
35895 -_ACEOF
35896 -rm -f conftest.$ac_objext conftest$ac_exeext
35897 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35898 - (eval $ac_link) 2>conftest.er1
35899 - ac_status=$?
35900 - grep -v '^ *+' conftest.er1 >conftest.err
35901 - rm -f conftest.er1
35902 - cat conftest.err >&5
35903 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
35904 - (exit $ac_status); } &&
35905 - { ac_try='test -z "$ac_c_werror_flag"
35906 - || test ! -s conftest.err'
35907 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35908 - (eval $ac_try) 2>&5
35909 - ac_status=$?
35910 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
35911 - (exit $ac_status); }; } &&
35912 - { ac_try='test -s conftest$ac_exeext'
35913 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35914 - (eval $ac_try) 2>&5
35915 - ac_status=$?
35916 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
35917 - (exit $ac_status); }; }; then
35918 - ac_cv_search_frexp="none required"
35919 -else
35920 - echo "$as_me: failed program was:" >&5
35921 -sed 's/^/| /' conftest.$ac_ext >&5
35922 +fi
35923 +if test "$bu_cv_have_fopen64" = "need -D_LARGEFILE64_SOURCE" \
35924 + || test "$bu_cv_have_stat64" = "need -D_LARGEFILE64_SOURCE"; then
35925 +
35926 +cat >>confdefs.h <<\_ACEOF
35927 +#define _LARGEFILE64_SOURCE 1
35928 +_ACEOF
35929
35930 + CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE"
35931 fi
35932 -rm -f conftest.err conftest.$ac_objext \
35933 - conftest$ac_exeext conftest.$ac_ext
35934 -if test "$ac_cv_search_frexp" = no; then
35935 - for ac_lib in m; do
35936 - LIBS="-l$ac_lib $ac_func_search_save_LIBS"
35937 - cat >conftest.$ac_ext <<_ACEOF
35938 +
35939 +# Some systems have frexp only in -lm, not in -lc.
35940 +{ echo "$as_me:$LINENO: checking for library containing frexp" >&5
35941 +echo $ECHO_N "checking for library containing frexp... $ECHO_C" >&6; }
35942 +if test "${ac_cv_search_frexp+set}" = set; then
35943 + echo $ECHO_N "(cached) $ECHO_C" >&6
35944 +else
35945 + ac_func_search_save_LIBS=$LIBS
35946 +cat >conftest.$ac_ext <<_ACEOF
35947 /* confdefs.h. */
35948 _ACEOF
35949 cat confdefs.h >>conftest.$ac_ext
35950 cat >>conftest.$ac_ext <<_ACEOF
35951 /* end confdefs.h. */
35952
35953 -/* Override any gcc2 internal prototype to avoid an error. */
35954 +/* Override any GCC internal prototype to avoid an error.
35955 + Use char because int might match the return type of a GCC
35956 + builtin and then its argument prototype would still apply. */
35957 #ifdef __cplusplus
35958 extern "C"
35959 #endif
35960 -/* We use char because int might match the return type of a gcc2
35961 - builtin and then its argument prototype would still apply. */
35962 char frexp ();
35963 int
35964 main ()
35965 {
35966 -frexp ();
35967 +return frexp ();
35968 ;
35969 return 0;
35970 }
35971 _ACEOF
35972 -rm -f conftest.$ac_objext conftest$ac_exeext
35973 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35974 - (eval $ac_link) 2>conftest.er1
35975 +for ac_lib in '' m; do
35976 + if test -z "$ac_lib"; then
35977 + ac_res="none required"
35978 + else
35979 + ac_res=-l$ac_lib
35980 + LIBS="-l$ac_lib $ac_func_search_save_LIBS"
35981 + fi
35982 + rm -f conftest.$ac_objext conftest$ac_exeext
35983 +if { (ac_try="$ac_link"
35984 +case "(($ac_try" in
35985 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35986 + *) ac_try_echo=$ac_try;;
35987 +esac
35988 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35989 + (eval "$ac_link") 2>conftest.er1
35990 ac_status=$?
35991 grep -v '^ *+' conftest.er1 >conftest.err
35992 rm -f conftest.er1
35993 cat conftest.err >&5
35994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35995 - (exit $ac_status); } &&
35996 - { ac_try='test -z "$ac_c_werror_flag"
35997 - || test ! -s conftest.err'
35998 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35999 - (eval $ac_try) 2>&5
36000 - ac_status=$?
36001 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
36002 - (exit $ac_status); }; } &&
36003 - { ac_try='test -s conftest$ac_exeext'
36004 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36005 - (eval $ac_try) 2>&5
36006 - ac_status=$?
36007 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
36008 - (exit $ac_status); }; }; then
36009 - ac_cv_search_frexp="-l$ac_lib"
36010 -break
36011 + (exit $ac_status); } && {
36012 + test -z "$ac_c_werror_flag" ||
36013 + test ! -s conftest.err
36014 + } && test -s conftest$ac_exeext &&
36015 + $as_test_x conftest$ac_exeext; then
36016 + ac_cv_search_frexp=$ac_res
36017 else
36018 echo "$as_me: failed program was:" >&5
36019 sed 's/^/| /' conftest.$ac_ext >&5
36020
36021 +
36022 fi
36023 -rm -f conftest.err conftest.$ac_objext \
36024 - conftest$ac_exeext conftest.$ac_ext
36025 - done
36026 +
36027 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36028 + conftest$ac_exeext
36029 + if test "${ac_cv_search_frexp+set}" = set; then
36030 + break
36031 +fi
36032 +done
36033 +if test "${ac_cv_search_frexp+set}" = set; then
36034 + :
36035 +else
36036 + ac_cv_search_frexp=no
36037 fi
36038 +rm conftest.$ac_ext
36039 LIBS=$ac_func_search_save_LIBS
36040 fi
36041 -echo "$as_me:$LINENO: result: $ac_cv_search_frexp" >&5
36042 -echo "${ECHO_T}$ac_cv_search_frexp" >&6
36043 -if test "$ac_cv_search_frexp" != no; then
36044 - test "$ac_cv_search_frexp" = "none required" || LIBS="$ac_cv_search_frexp $LIBS"
36045 +{ echo "$as_me:$LINENO: result: $ac_cv_search_frexp" >&5
36046 +echo "${ECHO_T}$ac_cv_search_frexp" >&6; }
36047 +ac_res=$ac_cv_search_frexp
36048 +if test "$ac_res" != no; then
36049 + test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
36050
36051 fi
36052
36053
36054 -echo "$as_me:$LINENO: checking for time_t in time.h" >&5
36055 -echo $ECHO_N "checking for time_t in time.h... $ECHO_C" >&6
36056 +{ echo "$as_me:$LINENO: checking for time_t in time.h" >&5
36057 +echo $ECHO_N "checking for time_t in time.h... $ECHO_C" >&6; }
36058 if test "${bu_cv_decl_time_t_time_h+set}" = set; then
36059 echo $ECHO_N "(cached) $ECHO_C" >&6
36060 else
36061 @@ -9768,39 +10211,35 @@ time_t i;
36062 }
36063 _ACEOF
36064 rm -f conftest.$ac_objext
36065 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36066 - (eval $ac_compile) 2>conftest.er1
36067 +if { (ac_try="$ac_compile"
36068 +case "(($ac_try" in
36069 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36070 + *) ac_try_echo=$ac_try;;
36071 +esac
36072 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36073 + (eval "$ac_compile") 2>conftest.er1
36074 ac_status=$?
36075 grep -v '^ *+' conftest.er1 >conftest.err
36076 rm -f conftest.er1
36077 cat conftest.err >&5
36078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36079 - (exit $ac_status); } &&
36080 - { ac_try='test -z "$ac_c_werror_flag"
36081 - || test ! -s conftest.err'
36082 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36083 - (eval $ac_try) 2>&5
36084 - ac_status=$?
36085 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
36086 - (exit $ac_status); }; } &&
36087 - { ac_try='test -s conftest.$ac_objext'
36088 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36089 - (eval $ac_try) 2>&5
36090 - ac_status=$?
36091 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
36092 - (exit $ac_status); }; }; then
36093 + (exit $ac_status); } && {
36094 + test -z "$ac_c_werror_flag" ||
36095 + test ! -s conftest.err
36096 + } && test -s conftest.$ac_objext; then
36097 bu_cv_decl_time_t_time_h=yes
36098 else
36099 echo "$as_me: failed program was:" >&5
36100 sed 's/^/| /' conftest.$ac_ext >&5
36101
36102 -bu_cv_decl_time_t_time_h=no
36103 + bu_cv_decl_time_t_time_h=no
36104 fi
36105 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36106 +
36107 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36108 fi
36109
36110 -echo "$as_me:$LINENO: result: $bu_cv_decl_time_t_time_h" >&5
36111 -echo "${ECHO_T}$bu_cv_decl_time_t_time_h" >&6
36112 +{ echo "$as_me:$LINENO: result: $bu_cv_decl_time_t_time_h" >&5
36113 +echo "${ECHO_T}$bu_cv_decl_time_t_time_h" >&6; }
36114 if test $bu_cv_decl_time_t_time_h = yes; then
36115
36116 cat >>confdefs.h <<\_ACEOF
36117 @@ -9809,8 +10248,8 @@ _ACEOF
36118
36119 fi
36120
36121 -echo "$as_me:$LINENO: checking for time_t in sys/types.h" >&5
36122 -echo $ECHO_N "checking for time_t in sys/types.h... $ECHO_C" >&6
36123 +{ echo "$as_me:$LINENO: checking for time_t in sys/types.h" >&5
36124 +echo $ECHO_N "checking for time_t in sys/types.h... $ECHO_C" >&6; }
36125 if test "${bu_cv_decl_time_t_types_h+set}" = set; then
36126 echo $ECHO_N "(cached) $ECHO_C" >&6
36127 else
36128 @@ -9830,39 +10269,35 @@ time_t i;
36129 }
36130 _ACEOF
36131 rm -f conftest.$ac_objext
36132 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36133 - (eval $ac_compile) 2>conftest.er1
36134 +if { (ac_try="$ac_compile"
36135 +case "(($ac_try" in
36136 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36137 + *) ac_try_echo=$ac_try;;
36138 +esac
36139 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36140 + (eval "$ac_compile") 2>conftest.er1
36141 ac_status=$?
36142 grep -v '^ *+' conftest.er1 >conftest.err
36143 rm -f conftest.er1
36144 cat conftest.err >&5
36145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36146 - (exit $ac_status); } &&
36147 - { ac_try='test -z "$ac_c_werror_flag"
36148 - || test ! -s conftest.err'
36149 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36150 - (eval $ac_try) 2>&5
36151 - ac_status=$?
36152 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
36153 - (exit $ac_status); }; } &&
36154 - { ac_try='test -s conftest.$ac_objext'
36155 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36156 - (eval $ac_try) 2>&5
36157 - ac_status=$?
36158 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
36159 - (exit $ac_status); }; }; then
36160 + (exit $ac_status); } && {
36161 + test -z "$ac_c_werror_flag" ||
36162 + test ! -s conftest.err
36163 + } && test -s conftest.$ac_objext; then
36164 bu_cv_decl_time_t_types_h=yes
36165 else
36166 echo "$as_me: failed program was:" >&5
36167 sed 's/^/| /' conftest.$ac_ext >&5
36168
36169 -bu_cv_decl_time_t_types_h=no
36170 + bu_cv_decl_time_t_types_h=no
36171 fi
36172 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36173 +
36174 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36175 fi
36176
36177 -echo "$as_me:$LINENO: result: $bu_cv_decl_time_t_types_h" >&5
36178 -echo "${ECHO_T}$bu_cv_decl_time_t_types_h" >&6
36179 +{ echo "$as_me:$LINENO: result: $bu_cv_decl_time_t_types_h" >&5
36180 +echo "${ECHO_T}$bu_cv_decl_time_t_types_h" >&6; }
36181 if test $bu_cv_decl_time_t_types_h = yes; then
36182
36183 cat >>confdefs.h <<\_ACEOF
36184 @@ -9871,8 +10306,8 @@ _ACEOF
36185
36186 fi
36187
36188 -echo "$as_me:$LINENO: checking for a known getopt prototype in unistd.h" >&5
36189 -echo $ECHO_N "checking for a known getopt prototype in unistd.h... $ECHO_C" >&6
36190 +{ echo "$as_me:$LINENO: checking for a known getopt prototype in unistd.h" >&5
36191 +echo $ECHO_N "checking for a known getopt prototype in unistd.h... $ECHO_C" >&6; }
36192 if test "${bu_cv_decl_getopt_unistd_h+set}" = set; then
36193 echo $ECHO_N "(cached) $ECHO_C" >&6
36194 else
36195 @@ -9892,39 +10327,35 @@ extern int getopt (int, char *const*, co
36196 }
36197 _ACEOF
36198 rm -f conftest.$ac_objext
36199 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36200 - (eval $ac_compile) 2>conftest.er1
36201 +if { (ac_try="$ac_compile"
36202 +case "(($ac_try" in
36203 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36204 + *) ac_try_echo=$ac_try;;
36205 +esac
36206 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36207 + (eval "$ac_compile") 2>conftest.er1
36208 ac_status=$?
36209 grep -v '^ *+' conftest.er1 >conftest.err
36210 rm -f conftest.er1
36211 cat conftest.err >&5
36212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36213 - (exit $ac_status); } &&
36214 - { ac_try='test -z "$ac_c_werror_flag"
36215 - || test ! -s conftest.err'
36216 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36217 - (eval $ac_try) 2>&5
36218 - ac_status=$?
36219 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
36220 - (exit $ac_status); }; } &&
36221 - { ac_try='test -s conftest.$ac_objext'
36222 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36223 - (eval $ac_try) 2>&5
36224 - ac_status=$?
36225 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
36226 - (exit $ac_status); }; }; then
36227 + (exit $ac_status); } && {
36228 + test -z "$ac_c_werror_flag" ||
36229 + test ! -s conftest.err
36230 + } && test -s conftest.$ac_objext; then
36231 bu_cv_decl_getopt_unistd_h=yes
36232 else
36233 echo "$as_me: failed program was:" >&5
36234 sed 's/^/| /' conftest.$ac_ext >&5
36235
36236 -bu_cv_decl_getopt_unistd_h=no
36237 + bu_cv_decl_getopt_unistd_h=no
36238 fi
36239 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36240 +
36241 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36242 fi
36243
36244 -echo "$as_me:$LINENO: result: $bu_cv_decl_getopt_unistd_h" >&5
36245 -echo "${ECHO_T}$bu_cv_decl_getopt_unistd_h" >&6
36246 +{ echo "$as_me:$LINENO: result: $bu_cv_decl_getopt_unistd_h" >&5
36247 +echo "${ECHO_T}$bu_cv_decl_getopt_unistd_h" >&6; }
36248 if test $bu_cv_decl_getopt_unistd_h = yes; then
36249
36250 cat >>confdefs.h <<\_ACEOF
36251 @@ -9935,8 +10366,8 @@ fi
36252
36253 # Under Next 3.2 <utime.h> apparently does not define struct utimbuf
36254 # by default.
36255 -echo "$as_me:$LINENO: checking for utime.h" >&5
36256 -echo $ECHO_N "checking for utime.h... $ECHO_C" >&6
36257 +{ echo "$as_me:$LINENO: checking for utime.h" >&5
36258 +echo $ECHO_N "checking for utime.h... $ECHO_C" >&6; }
36259 if test "${bu_cv_header_utime_h+set}" = set; then
36260 echo $ECHO_N "(cached) $ECHO_C" >&6
36261 else
36262 @@ -9960,39 +10391,35 @@ struct utimbuf s;
36263 }
36264 _ACEOF
36265 rm -f conftest.$ac_objext
36266 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36267 - (eval $ac_compile) 2>conftest.er1
36268 +if { (ac_try="$ac_compile"
36269 +case "(($ac_try" in
36270 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36271 + *) ac_try_echo=$ac_try;;
36272 +esac
36273 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36274 + (eval "$ac_compile") 2>conftest.er1
36275 ac_status=$?
36276 grep -v '^ *+' conftest.er1 >conftest.err
36277 rm -f conftest.er1
36278 cat conftest.err >&5
36279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36280 - (exit $ac_status); } &&
36281 - { ac_try='test -z "$ac_c_werror_flag"
36282 - || test ! -s conftest.err'
36283 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36284 - (eval $ac_try) 2>&5
36285 - ac_status=$?
36286 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
36287 - (exit $ac_status); }; } &&
36288 - { ac_try='test -s conftest.$ac_objext'
36289 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36290 - (eval $ac_try) 2>&5
36291 - ac_status=$?
36292 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
36293 - (exit $ac_status); }; }; then
36294 + (exit $ac_status); } && {
36295 + test -z "$ac_c_werror_flag" ||
36296 + test ! -s conftest.err
36297 + } && test -s conftest.$ac_objext; then
36298 bu_cv_header_utime_h=yes
36299 else
36300 echo "$as_me: failed program was:" >&5
36301 sed 's/^/| /' conftest.$ac_ext >&5
36302
36303 -bu_cv_header_utime_h=no
36304 + bu_cv_header_utime_h=no
36305 fi
36306 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36307 +
36308 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36309 fi
36310
36311 -echo "$as_me:$LINENO: result: $bu_cv_header_utime_h" >&5
36312 -echo "${ECHO_T}$bu_cv_header_utime_h" >&6
36313 +{ echo "$as_me:$LINENO: result: $bu_cv_header_utime_h" >&5
36314 +echo "${ECHO_T}$bu_cv_header_utime_h" >&6; }
36315 if test $bu_cv_header_utime_h = yes; then
36316
36317 cat >>confdefs.h <<\_ACEOF
36318 @@ -10001,8 +10428,8 @@ _ACEOF
36319
36320 fi
36321
36322 -echo "$as_me:$LINENO: checking whether fprintf is declared" >&5
36323 -echo $ECHO_N "checking whether fprintf is declared... $ECHO_C" >&6
36324 +{ echo "$as_me:$LINENO: checking whether fprintf is declared" >&5
36325 +echo $ECHO_N "checking whether fprintf is declared... $ECHO_C" >&6; }
36326 if test "${ac_cv_have_decl_fprintf+set}" = set; then
36327 echo $ECHO_N "(cached) $ECHO_C" >&6
36328 else
36329 @@ -10017,7 +10444,7 @@ int
36330 main ()
36331 {
36332 #ifndef fprintf
36333 - char *p = (char *) fprintf;
36334 + (void) fprintf;
36335 #endif
36336
36337 ;
36338 @@ -10025,38 +10452,34 @@ main ()
36339 }
36340 _ACEOF
36341 rm -f conftest.$ac_objext
36342 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36343 - (eval $ac_compile) 2>conftest.er1
36344 +if { (ac_try="$ac_compile"
36345 +case "(($ac_try" in
36346 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36347 + *) ac_try_echo=$ac_try;;
36348 +esac
36349 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36350 + (eval "$ac_compile") 2>conftest.er1
36351 ac_status=$?
36352 grep -v '^ *+' conftest.er1 >conftest.err
36353 rm -f conftest.er1
36354 cat conftest.err >&5
36355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36356 - (exit $ac_status); } &&
36357 - { ac_try='test -z "$ac_c_werror_flag"
36358 - || test ! -s conftest.err'
36359 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36360 - (eval $ac_try) 2>&5
36361 - ac_status=$?
36362 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
36363 - (exit $ac_status); }; } &&
36364 - { ac_try='test -s conftest.$ac_objext'
36365 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36366 - (eval $ac_try) 2>&5
36367 - ac_status=$?
36368 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
36369 - (exit $ac_status); }; }; then
36370 + (exit $ac_status); } && {
36371 + test -z "$ac_c_werror_flag" ||
36372 + test ! -s conftest.err
36373 + } && test -s conftest.$ac_objext; then
36374 ac_cv_have_decl_fprintf=yes
36375 else
36376 echo "$as_me: failed program was:" >&5
36377 sed 's/^/| /' conftest.$ac_ext >&5
36378
36379 -ac_cv_have_decl_fprintf=no
36380 + ac_cv_have_decl_fprintf=no
36381 fi
36382 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36383 +
36384 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36385 fi
36386 -echo "$as_me:$LINENO: result: $ac_cv_have_decl_fprintf" >&5
36387 -echo "${ECHO_T}$ac_cv_have_decl_fprintf" >&6
36388 +{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_fprintf" >&5
36389 +echo "${ECHO_T}$ac_cv_have_decl_fprintf" >&6; }
36390 if test $ac_cv_have_decl_fprintf = yes; then
36391
36392 cat >>confdefs.h <<_ACEOF
36393 @@ -10071,8 +10494,8 @@ _ACEOF
36394
36395
36396 fi
36397 -echo "$as_me:$LINENO: checking whether stpcpy is declared" >&5
36398 -echo $ECHO_N "checking whether stpcpy is declared... $ECHO_C" >&6
36399 +{ echo "$as_me:$LINENO: checking whether stpcpy is declared" >&5
36400 +echo $ECHO_N "checking whether stpcpy is declared... $ECHO_C" >&6; }
36401 if test "${ac_cv_have_decl_stpcpy+set}" = set; then
36402 echo $ECHO_N "(cached) $ECHO_C" >&6
36403 else
36404 @@ -10087,7 +10510,7 @@ int
36405 main ()
36406 {
36407 #ifndef stpcpy
36408 - char *p = (char *) stpcpy;
36409 + (void) stpcpy;
36410 #endif
36411
36412 ;
36413 @@ -10095,38 +10518,34 @@ main ()
36414 }
36415 _ACEOF
36416 rm -f conftest.$ac_objext
36417 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36418 - (eval $ac_compile) 2>conftest.er1
36419 +if { (ac_try="$ac_compile"
36420 +case "(($ac_try" in
36421 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36422 + *) ac_try_echo=$ac_try;;
36423 +esac
36424 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36425 + (eval "$ac_compile") 2>conftest.er1
36426 ac_status=$?
36427 grep -v '^ *+' conftest.er1 >conftest.err
36428 rm -f conftest.er1
36429 cat conftest.err >&5
36430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36431 - (exit $ac_status); } &&
36432 - { ac_try='test -z "$ac_c_werror_flag"
36433 - || test ! -s conftest.err'
36434 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36435 - (eval $ac_try) 2>&5
36436 - ac_status=$?
36437 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
36438 - (exit $ac_status); }; } &&
36439 - { ac_try='test -s conftest.$ac_objext'
36440 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36441 - (eval $ac_try) 2>&5
36442 - ac_status=$?
36443 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
36444 - (exit $ac_status); }; }; then
36445 + (exit $ac_status); } && {
36446 + test -z "$ac_c_werror_flag" ||
36447 + test ! -s conftest.err
36448 + } && test -s conftest.$ac_objext; then
36449 ac_cv_have_decl_stpcpy=yes
36450 else
36451 echo "$as_me: failed program was:" >&5
36452 sed 's/^/| /' conftest.$ac_ext >&5
36453
36454 -ac_cv_have_decl_stpcpy=no
36455 + ac_cv_have_decl_stpcpy=no
36456 fi
36457 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36458 +
36459 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36460 fi
36461 -echo "$as_me:$LINENO: result: $ac_cv_have_decl_stpcpy" >&5
36462 -echo "${ECHO_T}$ac_cv_have_decl_stpcpy" >&6
36463 +{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_stpcpy" >&5
36464 +echo "${ECHO_T}$ac_cv_have_decl_stpcpy" >&6; }
36465 if test $ac_cv_have_decl_stpcpy = yes; then
36466
36467 cat >>confdefs.h <<_ACEOF
36468 @@ -10141,8 +10560,8 @@ _ACEOF
36469
36470
36471 fi
36472 -echo "$as_me:$LINENO: checking whether strstr is declared" >&5
36473 -echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6
36474 +{ echo "$as_me:$LINENO: checking whether strstr is declared" >&5
36475 +echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6; }
36476 if test "${ac_cv_have_decl_strstr+set}" = set; then
36477 echo $ECHO_N "(cached) $ECHO_C" >&6
36478 else
36479 @@ -10157,7 +10576,7 @@ int
36480 main ()
36481 {
36482 #ifndef strstr
36483 - char *p = (char *) strstr;
36484 + (void) strstr;
36485 #endif
36486
36487 ;
36488 @@ -10165,38 +10584,34 @@ main ()
36489 }
36490 _ACEOF
36491 rm -f conftest.$ac_objext
36492 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36493 - (eval $ac_compile) 2>conftest.er1
36494 +if { (ac_try="$ac_compile"
36495 +case "(($ac_try" in
36496 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36497 + *) ac_try_echo=$ac_try;;
36498 +esac
36499 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36500 + (eval "$ac_compile") 2>conftest.er1
36501 ac_status=$?
36502 grep -v '^ *+' conftest.er1 >conftest.err
36503 rm -f conftest.er1
36504 cat conftest.err >&5
36505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36506 - (exit $ac_status); } &&
36507 - { ac_try='test -z "$ac_c_werror_flag"
36508 - || test ! -s conftest.err'
36509 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36510 - (eval $ac_try) 2>&5
36511 - ac_status=$?
36512 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
36513 - (exit $ac_status); }; } &&
36514 - { ac_try='test -s conftest.$ac_objext'
36515 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36516 - (eval $ac_try) 2>&5
36517 - ac_status=$?
36518 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
36519 - (exit $ac_status); }; }; then
36520 + (exit $ac_status); } && {
36521 + test -z "$ac_c_werror_flag" ||
36522 + test ! -s conftest.err
36523 + } && test -s conftest.$ac_objext; then
36524 ac_cv_have_decl_strstr=yes
36525 else
36526 echo "$as_me: failed program was:" >&5
36527 sed 's/^/| /' conftest.$ac_ext >&5
36528
36529 -ac_cv_have_decl_strstr=no
36530 + ac_cv_have_decl_strstr=no
36531 fi
36532 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36533 +
36534 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36535 fi
36536 -echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5
36537 -echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6
36538 +{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5
36539 +echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6; }
36540 if test $ac_cv_have_decl_strstr = yes; then
36541
36542 cat >>confdefs.h <<_ACEOF
36543 @@ -10211,8 +10626,8 @@ _ACEOF
36544
36545
36546 fi
36547 -echo "$as_me:$LINENO: checking whether sbrk is declared" >&5
36548 -echo $ECHO_N "checking whether sbrk is declared... $ECHO_C" >&6
36549 +{ echo "$as_me:$LINENO: checking whether sbrk is declared" >&5
36550 +echo $ECHO_N "checking whether sbrk is declared... $ECHO_C" >&6; }
36551 if test "${ac_cv_have_decl_sbrk+set}" = set; then
36552 echo $ECHO_N "(cached) $ECHO_C" >&6
36553 else
36554 @@ -10227,7 +10642,7 @@ int
36555 main ()
36556 {
36557 #ifndef sbrk
36558 - char *p = (char *) sbrk;
36559 + (void) sbrk;
36560 #endif
36561
36562 ;
36563 @@ -10235,38 +10650,34 @@ main ()
36564 }
36565 _ACEOF
36566 rm -f conftest.$ac_objext
36567 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36568 - (eval $ac_compile) 2>conftest.er1
36569 +if { (ac_try="$ac_compile"
36570 +case "(($ac_try" in
36571 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36572 + *) ac_try_echo=$ac_try;;
36573 +esac
36574 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36575 + (eval "$ac_compile") 2>conftest.er1
36576 ac_status=$?
36577 grep -v '^ *+' conftest.er1 >conftest.err
36578 rm -f conftest.er1
36579 cat conftest.err >&5
36580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36581 - (exit $ac_status); } &&
36582 - { ac_try='test -z "$ac_c_werror_flag"
36583 - || test ! -s conftest.err'
36584 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36585 - (eval $ac_try) 2>&5
36586 - ac_status=$?
36587 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
36588 - (exit $ac_status); }; } &&
36589 - { ac_try='test -s conftest.$ac_objext'
36590 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36591 - (eval $ac_try) 2>&5
36592 - ac_status=$?
36593 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
36594 - (exit $ac_status); }; }; then
36595 + (exit $ac_status); } && {
36596 + test -z "$ac_c_werror_flag" ||
36597 + test ! -s conftest.err
36598 + } && test -s conftest.$ac_objext; then
36599 ac_cv_have_decl_sbrk=yes
36600 else
36601 echo "$as_me: failed program was:" >&5
36602 sed 's/^/| /' conftest.$ac_ext >&5
36603
36604 -ac_cv_have_decl_sbrk=no
36605 + ac_cv_have_decl_sbrk=no
36606 fi
36607 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36608 +
36609 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36610 fi
36611 -echo "$as_me:$LINENO: result: $ac_cv_have_decl_sbrk" >&5
36612 -echo "${ECHO_T}$ac_cv_have_decl_sbrk" >&6
36613 +{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_sbrk" >&5
36614 +echo "${ECHO_T}$ac_cv_have_decl_sbrk" >&6; }
36615 if test $ac_cv_have_decl_sbrk = yes; then
36616
36617 cat >>confdefs.h <<_ACEOF
36618 @@ -10281,8 +10692,8 @@ _ACEOF
36619
36620
36621 fi
36622 -echo "$as_me:$LINENO: checking whether getenv is declared" >&5
36623 -echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6
36624 +{ echo "$as_me:$LINENO: checking whether getenv is declared" >&5
36625 +echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6; }
36626 if test "${ac_cv_have_decl_getenv+set}" = set; then
36627 echo $ECHO_N "(cached) $ECHO_C" >&6
36628 else
36629 @@ -10297,7 +10708,7 @@ int
36630 main ()
36631 {
36632 #ifndef getenv
36633 - char *p = (char *) getenv;
36634 + (void) getenv;
36635 #endif
36636
36637 ;
36638 @@ -10305,38 +10716,34 @@ main ()
36639 }
36640 _ACEOF
36641 rm -f conftest.$ac_objext
36642 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36643 - (eval $ac_compile) 2>conftest.er1
36644 +if { (ac_try="$ac_compile"
36645 +case "(($ac_try" in
36646 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36647 + *) ac_try_echo=$ac_try;;
36648 +esac
36649 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36650 + (eval "$ac_compile") 2>conftest.er1
36651 ac_status=$?
36652 grep -v '^ *+' conftest.er1 >conftest.err
36653 rm -f conftest.er1
36654 cat conftest.err >&5
36655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36656 - (exit $ac_status); } &&
36657 - { ac_try='test -z "$ac_c_werror_flag"
36658 - || test ! -s conftest.err'
36659 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36660 - (eval $ac_try) 2>&5
36661 - ac_status=$?
36662 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
36663 - (exit $ac_status); }; } &&
36664 - { ac_try='test -s conftest.$ac_objext'
36665 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36666 - (eval $ac_try) 2>&5
36667 - ac_status=$?
36668 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
36669 - (exit $ac_status); }; }; then
36670 + (exit $ac_status); } && {
36671 + test -z "$ac_c_werror_flag" ||
36672 + test ! -s conftest.err
36673 + } && test -s conftest.$ac_objext; then
36674 ac_cv_have_decl_getenv=yes
36675 else
36676 echo "$as_me: failed program was:" >&5
36677 sed 's/^/| /' conftest.$ac_ext >&5
36678
36679 -ac_cv_have_decl_getenv=no
36680 + ac_cv_have_decl_getenv=no
36681 fi
36682 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36683 +
36684 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36685 fi
36686 -echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
36687 -echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6
36688 +{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
36689 +echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6; }
36690 if test $ac_cv_have_decl_getenv = yes; then
36691
36692 cat >>confdefs.h <<_ACEOF
36693 @@ -10351,8 +10758,8 @@ _ACEOF
36694
36695
36696 fi
36697 -echo "$as_me:$LINENO: checking whether environ is declared" >&5
36698 -echo $ECHO_N "checking whether environ is declared... $ECHO_C" >&6
36699 +{ echo "$as_me:$LINENO: checking whether environ is declared" >&5
36700 +echo $ECHO_N "checking whether environ is declared... $ECHO_C" >&6; }
36701 if test "${ac_cv_have_decl_environ+set}" = set; then
36702 echo $ECHO_N "(cached) $ECHO_C" >&6
36703 else
36704 @@ -10367,7 +10774,7 @@ int
36705 main ()
36706 {
36707 #ifndef environ
36708 - char *p = (char *) environ;
36709 + (void) environ;
36710 #endif
36711
36712 ;
36713 @@ -10375,38 +10782,34 @@ main ()
36714 }
36715 _ACEOF
36716 rm -f conftest.$ac_objext
36717 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36718 - (eval $ac_compile) 2>conftest.er1
36719 +if { (ac_try="$ac_compile"
36720 +case "(($ac_try" in
36721 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36722 + *) ac_try_echo=$ac_try;;
36723 +esac
36724 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36725 + (eval "$ac_compile") 2>conftest.er1
36726 ac_status=$?
36727 grep -v '^ *+' conftest.er1 >conftest.err
36728 rm -f conftest.er1
36729 cat conftest.err >&5
36730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36731 - (exit $ac_status); } &&
36732 - { ac_try='test -z "$ac_c_werror_flag"
36733 - || test ! -s conftest.err'
36734 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36735 - (eval $ac_try) 2>&5
36736 - ac_status=$?
36737 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
36738 - (exit $ac_status); }; } &&
36739 - { ac_try='test -s conftest.$ac_objext'
36740 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36741 - (eval $ac_try) 2>&5
36742 - ac_status=$?
36743 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
36744 - (exit $ac_status); }; }; then
36745 + (exit $ac_status); } && {
36746 + test -z "$ac_c_werror_flag" ||
36747 + test ! -s conftest.err
36748 + } && test -s conftest.$ac_objext; then
36749 ac_cv_have_decl_environ=yes
36750 else
36751 echo "$as_me: failed program was:" >&5
36752 sed 's/^/| /' conftest.$ac_ext >&5
36753
36754 -ac_cv_have_decl_environ=no
36755 + ac_cv_have_decl_environ=no
36756 fi
36757 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36758 +
36759 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36760 fi
36761 -echo "$as_me:$LINENO: result: $ac_cv_have_decl_environ" >&5
36762 -echo "${ECHO_T}$ac_cv_have_decl_environ" >&6
36763 +{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_environ" >&5
36764 +echo "${ECHO_T}$ac_cv_have_decl_environ" >&6; }
36765 if test $ac_cv_have_decl_environ = yes; then
36766
36767 cat >>confdefs.h <<_ACEOF
36768 @@ -10421,8 +10824,8 @@ _ACEOF
36769
36770
36771 fi
36772 -echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
36773 -echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6
36774 +{ echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
36775 +echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6; }
36776 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
36777 echo $ECHO_N "(cached) $ECHO_C" >&6
36778 else
36779 @@ -10437,7 +10840,7 @@ int
36780 main ()
36781 {
36782 #ifndef getc_unlocked
36783 - char *p = (char *) getc_unlocked;
36784 + (void) getc_unlocked;
36785 #endif
36786
36787 ;
36788 @@ -10445,38 +10848,34 @@ main ()
36789 }
36790 _ACEOF
36791 rm -f conftest.$ac_objext
36792 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36793 - (eval $ac_compile) 2>conftest.er1
36794 +if { (ac_try="$ac_compile"
36795 +case "(($ac_try" in
36796 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36797 + *) ac_try_echo=$ac_try;;
36798 +esac
36799 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36800 + (eval "$ac_compile") 2>conftest.er1
36801 ac_status=$?
36802 grep -v '^ *+' conftest.er1 >conftest.err
36803 rm -f conftest.er1
36804 cat conftest.err >&5
36805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36806 - (exit $ac_status); } &&
36807 - { ac_try='test -z "$ac_c_werror_flag"
36808 - || test ! -s conftest.err'
36809 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36810 - (eval $ac_try) 2>&5
36811 - ac_status=$?
36812 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
36813 - (exit $ac_status); }; } &&
36814 - { ac_try='test -s conftest.$ac_objext'
36815 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36816 - (eval $ac_try) 2>&5
36817 - ac_status=$?
36818 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
36819 - (exit $ac_status); }; }; then
36820 + (exit $ac_status); } && {
36821 + test -z "$ac_c_werror_flag" ||
36822 + test ! -s conftest.err
36823 + } && test -s conftest.$ac_objext; then
36824 ac_cv_have_decl_getc_unlocked=yes
36825 else
36826 echo "$as_me: failed program was:" >&5
36827 sed 's/^/| /' conftest.$ac_ext >&5
36828
36829 -ac_cv_have_decl_getc_unlocked=no
36830 + ac_cv_have_decl_getc_unlocked=no
36831 fi
36832 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36833 +
36834 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36835 fi
36836 -echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
36837 -echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6
36838 +{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
36839 +echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6; }
36840 if test $ac_cv_have_decl_getc_unlocked = yes; then
36841
36842 cat >>confdefs.h <<_ACEOF
36843 @@ -10491,8 +10890,8 @@ _ACEOF
36844
36845
36846 fi
36847 -echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
36848 -echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
36849 +{ echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
36850 +echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6; }
36851 if test "${ac_cv_have_decl_snprintf+set}" = set; then
36852 echo $ECHO_N "(cached) $ECHO_C" >&6
36853 else
36854 @@ -10507,7 +10906,7 @@ int
36855 main ()
36856 {
36857 #ifndef snprintf
36858 - char *p = (char *) snprintf;
36859 + (void) snprintf;
36860 #endif
36861
36862 ;
36863 @@ -10515,38 +10914,34 @@ main ()
36864 }
36865 _ACEOF
36866 rm -f conftest.$ac_objext
36867 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36868 - (eval $ac_compile) 2>conftest.er1
36869 +if { (ac_try="$ac_compile"
36870 +case "(($ac_try" in
36871 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36872 + *) ac_try_echo=$ac_try;;
36873 +esac
36874 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36875 + (eval "$ac_compile") 2>conftest.er1
36876 ac_status=$?
36877 grep -v '^ *+' conftest.er1 >conftest.err
36878 rm -f conftest.er1
36879 cat conftest.err >&5
36880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36881 - (exit $ac_status); } &&
36882 - { ac_try='test -z "$ac_c_werror_flag"
36883 - || test ! -s conftest.err'
36884 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36885 - (eval $ac_try) 2>&5
36886 - ac_status=$?
36887 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
36888 - (exit $ac_status); }; } &&
36889 - { ac_try='test -s conftest.$ac_objext'
36890 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36891 - (eval $ac_try) 2>&5
36892 - ac_status=$?
36893 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
36894 - (exit $ac_status); }; }; then
36895 + (exit $ac_status); } && {
36896 + test -z "$ac_c_werror_flag" ||
36897 + test ! -s conftest.err
36898 + } && test -s conftest.$ac_objext; then
36899 ac_cv_have_decl_snprintf=yes
36900 else
36901 echo "$as_me: failed program was:" >&5
36902 sed 's/^/| /' conftest.$ac_ext >&5
36903
36904 -ac_cv_have_decl_snprintf=no
36905 + ac_cv_have_decl_snprintf=no
36906 fi
36907 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36908 +
36909 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36910 fi
36911 -echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
36912 -echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
36913 +{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
36914 +echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6; }
36915 if test $ac_cv_have_decl_snprintf = yes; then
36916
36917 cat >>confdefs.h <<_ACEOF
36918 @@ -10561,8 +10956,8 @@ _ACEOF
36919
36920
36921 fi
36922 -echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
36923 -echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
36924 +{ echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
36925 +echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6; }
36926 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
36927 echo $ECHO_N "(cached) $ECHO_C" >&6
36928 else
36929 @@ -10577,7 +10972,7 @@ int
36930 main ()
36931 {
36932 #ifndef vsnprintf
36933 - char *p = (char *) vsnprintf;
36934 + (void) vsnprintf;
36935 #endif
36936
36937 ;
36938 @@ -10585,38 +10980,34 @@ main ()
36939 }
36940 _ACEOF
36941 rm -f conftest.$ac_objext
36942 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36943 - (eval $ac_compile) 2>conftest.er1
36944 +if { (ac_try="$ac_compile"
36945 +case "(($ac_try" in
36946 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36947 + *) ac_try_echo=$ac_try;;
36948 +esac
36949 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36950 + (eval "$ac_compile") 2>conftest.er1
36951 ac_status=$?
36952 grep -v '^ *+' conftest.er1 >conftest.err
36953 rm -f conftest.er1
36954 cat conftest.err >&5
36955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36956 - (exit $ac_status); } &&
36957 - { ac_try='test -z "$ac_c_werror_flag"
36958 - || test ! -s conftest.err'
36959 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36960 - (eval $ac_try) 2>&5
36961 - ac_status=$?
36962 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
36963 - (exit $ac_status); }; } &&
36964 - { ac_try='test -s conftest.$ac_objext'
36965 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36966 - (eval $ac_try) 2>&5
36967 - ac_status=$?
36968 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
36969 - (exit $ac_status); }; }; then
36970 + (exit $ac_status); } && {
36971 + test -z "$ac_c_werror_flag" ||
36972 + test ! -s conftest.err
36973 + } && test -s conftest.$ac_objext; then
36974 ac_cv_have_decl_vsnprintf=yes
36975 else
36976 echo "$as_me: failed program was:" >&5
36977 sed 's/^/| /' conftest.$ac_ext >&5
36978
36979 -ac_cv_have_decl_vsnprintf=no
36980 + ac_cv_have_decl_vsnprintf=no
36981 fi
36982 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36983 +
36984 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36985 fi
36986 -echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
36987 -echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
36988 +{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
36989 +echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6; }
36990 if test $ac_cv_have_decl_vsnprintf = yes; then
36991
36992 cat >>confdefs.h <<_ACEOF
36993 @@ -10817,8 +11208,10 @@ done
36994
36995
36996
36997 - ac_config_files="$ac_config_files Makefile doc/Makefile po/Makefile.in:po/Make-in"
36998 - ac_config_commands="$ac_config_commands default"
36999 +ac_config_files="$ac_config_files Makefile doc/Makefile po/Makefile.in:po/Make-in"
37000 +
37001 +ac_config_commands="$ac_config_commands default"
37002 +
37003 cat >confcache <<\_ACEOF
37004 # This file is a shell script that caches the results of configure
37005 # tests run on this system so they can be shared between configure
37006 @@ -10837,39 +11230,58 @@ _ACEOF
37007
37008 # The following way of writing the cache mishandles newlines in values,
37009 # but we know of no workaround that is simple, portable, and efficient.
37010 -# So, don't put newlines in cache variables' values.
37011 +# So, we kill variables containing newlines.
37012 # Ultrix sh set writes to stderr and can't be redirected directly,
37013 # and sets the high bit in the cache file unless we assign to the vars.
37014 -{
37015 +(
37016 + for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
37017 + eval ac_val=\$$ac_var
37018 + case $ac_val in #(
37019 + *${as_nl}*)
37020 + case $ac_var in #(
37021 + *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
37022 +echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
37023 + esac
37024 + case $ac_var in #(
37025 + _ | IFS | as_nl) ;; #(
37026 + *) $as_unset $ac_var ;;
37027 + esac ;;
37028 + esac
37029 + done
37030 +
37031 (set) 2>&1 |
37032 - case `(ac_space=' '; set | grep ac_space) 2>&1` in
37033 - *ac_space=\ *)
37034 + case $as_nl`(ac_space=' '; set) 2>&1` in #(
37035 + *${as_nl}ac_space=\ *)
37036 # `set' does not quote correctly, so add quotes (double-quote
37037 # substitution turns \\\\ into \\, and sed turns \\ into \).
37038 sed -n \
37039 "s/'/'\\\\''/g;
37040 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
37041 - ;;
37042 + ;; #(
37043 *)
37044 # `set' quotes correctly as required by POSIX, so do not add quotes.
37045 - sed -n \
37046 - "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
37047 + sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
37048 ;;
37049 - esac;
37050 -} |
37051 + esac |
37052 + sort
37053 +) |
37054 sed '
37055 + /^ac_cv_env_/b end
37056 t clear
37057 - : clear
37058 + :clear
37059 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
37060 t end
37061 - /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
37062 - : end' >>confcache
37063 -if diff $cache_file confcache >/dev/null 2>&1; then :; else
37064 - if test -w $cache_file; then
37065 - test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
37066 + s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
37067 + :end' >>confcache
37068 +if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
37069 + if test -w "$cache_file"; then
37070 + test "x$cache_file" != "x/dev/null" &&
37071 + { echo "$as_me:$LINENO: updating cache $cache_file" >&5
37072 +echo "$as_me: updating cache $cache_file" >&6;}
37073 cat confcache >$cache_file
37074 else
37075 - echo "not updating unwritable cache $cache_file"
37076 + { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
37077 +echo "$as_me: not updating unwritable cache $cache_file" >&6;}
37078 fi
37079 fi
37080 rm -f confcache
37081 @@ -10878,32 +11290,18 @@ test "x$prefix" = xNONE && prefix=$ac_de
37082 # Let make expand exec_prefix.
37083 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
37084
37085 -# VPATH may cause trouble with some makes, so we remove $(srcdir),
37086 -# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
37087 -# trailing colons and then remove the whole line if VPATH becomes empty
37088 -# (actually we leave an empty line to preserve line numbers).
37089 -if test "x$srcdir" = x.; then
37090 - ac_vpsub='/^[ ]*VPATH[ ]*=/{
37091 -s/:*\$(srcdir):*/:/;
37092 -s/:*\${srcdir}:*/:/;
37093 -s/:*@srcdir@:*/:/;
37094 -s/^\([^=]*=[ ]*\):*/\1/;
37095 -s/:*$//;
37096 -s/^[^=]*=[ ]*$//;
37097 -}'
37098 -fi
37099 -
37100 DEFS=-DHAVE_CONFIG_H
37101
37102 ac_libobjs=
37103 ac_ltlibobjs=
37104 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
37105 # 1. Remove the extension, and $U if already installed.
37106 - ac_i=`echo "$ac_i" |
37107 - sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
37108 - # 2. Add them.
37109 - ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
37110 - ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
37111 + ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
37112 + ac_i=`echo "$ac_i" | sed "$ac_script"`
37113 + # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
37114 + # will be set to the directory where LIBOBJS objects are built.
37115 + ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
37116 + ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
37117 done
37118 LIBOBJS=$ac_libobjs
37119
37120 @@ -10955,17 +11353,45 @@ cat >>$CONFIG_STATUS <<\_ACEOF
37121 ## M4sh Initialization. ##
37122 ## --------------------- ##
37123
37124 -# Be Bourne compatible
37125 +# Be more Bourne compatible
37126 +DUALCASE=1; export DUALCASE # for MKS sh
37127 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
37128 emulate sh
37129 NULLCMD=:
37130 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
37131 # is contrary to our usage. Disable this feature.
37132 alias -g '${1+"$@"}'='"$@"'
37133 -elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
37134 - set -o posix
37135 + setopt NO_GLOB_SUBST
37136 +else
37137 + case `(set -o) 2>/dev/null` in
37138 + *posix*) set -o posix ;;
37139 +esac
37140 +
37141 +fi
37142 +
37143 +
37144 +
37145 +
37146 +# PATH needs CR
37147 +# Avoid depending upon Character Ranges.
37148 +as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37149 +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
37150 +as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37151 +as_cr_digits='0123456789'
37152 +as_cr_alnum=$as_cr_Letters$as_cr_digits
37153 +
37154 +# The user is always right.
37155 +if test "${PATH_SEPARATOR+set}" != set; then
37156 + echo "#! /bin/sh" >conf$$.sh
37157 + echo "exit 0" >>conf$$.sh
37158 + chmod +x conf$$.sh
37159 + if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
37160 + PATH_SEPARATOR=';'
37161 + else
37162 + PATH_SEPARATOR=:
37163 + fi
37164 + rm -f conf$$.sh
37165 fi
37166 -DUALCASE=1; export DUALCASE # for MKS sh
37167
37168 # Support unset when possible.
37169 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
37170 @@ -10975,8 +11401,43 @@ else
37171 fi
37172
37173
37174 +# IFS
37175 +# We need space, tab and new line, in precisely that order. Quoting is
37176 +# there to prevent editors from complaining about space-tab.
37177 +# (If _AS_PATH_WALK were called with IFS unset, it would disable word
37178 +# splitting by setting IFS to empty value.)
37179 +as_nl='
37180 +'
37181 +IFS=" "" $as_nl"
37182 +
37183 +# Find who we are. Look in the path if we contain no directory separator.
37184 +case $0 in
37185 + *[\\/]* ) as_myself=$0 ;;
37186 + *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37187 +for as_dir in $PATH
37188 +do
37189 + IFS=$as_save_IFS
37190 + test -z "$as_dir" && as_dir=.
37191 + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
37192 +done
37193 +IFS=$as_save_IFS
37194 +
37195 + ;;
37196 +esac
37197 +# We did not find ourselves, most probably we were run as `sh COMMAND'
37198 +# in which case we are not to be found in the path.
37199 +if test "x$as_myself" = x; then
37200 + as_myself=$0
37201 +fi
37202 +if test ! -f "$as_myself"; then
37203 + echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
37204 + { (exit 1); exit 1; }
37205 +fi
37206 +
37207 # Work around bugs in pre-3.0 UWIN ksh.
37208 -$as_unset ENV MAIL MAILPATH
37209 +for as_var in ENV MAIL MAILPATH
37210 +do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
37211 +done
37212 PS1='$ '
37213 PS2='> '
37214 PS4='+ '
37215 @@ -10990,18 +11451,19 @@ do
37216 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
37217 eval $as_var=C; export $as_var
37218 else
37219 - $as_unset $as_var
37220 + ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
37221 fi
37222 done
37223
37224 # Required to use basename.
37225 -if expr a : '\(a\)' >/dev/null 2>&1; then
37226 +if expr a : '\(a\)' >/dev/null 2>&1 &&
37227 + test "X`expr 00001 : '.*\(...\)'`" = X001; then
37228 as_expr=expr
37229 else
37230 as_expr=false
37231 fi
37232
37233 -if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
37234 +if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
37235 as_basename=basename
37236 else
37237 as_basename=false
37238 @@ -11009,159 +11471,120 @@ fi
37239
37240
37241 # Name of the executable.
37242 -as_me=`$as_basename "$0" ||
37243 +as_me=`$as_basename -- "$0" ||
37244 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
37245 X"$0" : 'X\(//\)$' \| \
37246 - X"$0" : 'X\(/\)$' \| \
37247 - . : '\(.\)' 2>/dev/null ||
37248 + X"$0" : 'X\(/\)' \| . 2>/dev/null ||
37249 echo X/"$0" |
37250 - sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
37251 - /^X\/\(\/\/\)$/{ s//\1/; q; }
37252 - /^X\/\(\/\).*/{ s//\1/; q; }
37253 - s/.*/./; q'`
37254 + sed '/^.*\/\([^/][^/]*\)\/*$/{
37255 + s//\1/
37256 + q
37257 + }
37258 + /^X\/\(\/\/\)$/{
37259 + s//\1/
37260 + q
37261 + }
37262 + /^X\/\(\/\).*/{
37263 + s//\1/
37264 + q
37265 + }
37266 + s/.*/./; q'`
37267
37268 -
37269 -# PATH needs CR, and LINENO needs CR and PATH.
37270 -# Avoid depending upon Character Ranges.
37271 -as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37272 -as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
37273 -as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37274 -as_cr_digits='0123456789'
37275 -as_cr_alnum=$as_cr_Letters$as_cr_digits
37276 -
37277 -# The user is always right.
37278 -if test "${PATH_SEPARATOR+set}" != set; then
37279 - echo "#! /bin/sh" >conf$$.sh
37280 - echo "exit 0" >>conf$$.sh
37281 - chmod +x conf$$.sh
37282 - if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
37283 - PATH_SEPARATOR=';'
37284 - else
37285 - PATH_SEPARATOR=:
37286 - fi
37287 - rm -f conf$$.sh
37288 -fi
37289 +# CDPATH.
37290 +$as_unset CDPATH
37291
37292
37293 - as_lineno_1=$LINENO
37294 - as_lineno_2=$LINENO
37295 - as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
37296 - test "x$as_lineno_1" != "x$as_lineno_2" &&
37297 - test "x$as_lineno_3" = "x$as_lineno_2" || {
37298 - # Find who we are. Look in the path if we contain no path at all
37299 - # relative or not.
37300 - case $0 in
37301 - *[\\/]* ) as_myself=$0 ;;
37302 - *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37303 -for as_dir in $PATH
37304 -do
37305 - IFS=$as_save_IFS
37306 - test -z "$as_dir" && as_dir=.
37307 - test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
37308 -done
37309
37310 - ;;
37311 - esac
37312 - # We did not find ourselves, most probably we were run as `sh COMMAND'
37313 - # in which case we are not to be found in the path.
37314 - if test "x$as_myself" = x; then
37315 - as_myself=$0
37316 - fi
37317 - if test ! -f "$as_myself"; then
37318 - { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
37319 -echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
37320 - { (exit 1); exit 1; }; }
37321 - fi
37322 - case $CONFIG_SHELL in
37323 - '')
37324 - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37325 -for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
37326 -do
37327 - IFS=$as_save_IFS
37328 - test -z "$as_dir" && as_dir=.
37329 - for as_base in sh bash ksh sh5; do
37330 - case $as_dir in
37331 - /*)
37332 - if ("$as_dir/$as_base" -c '
37333 as_lineno_1=$LINENO
37334 as_lineno_2=$LINENO
37335 - as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
37336 test "x$as_lineno_1" != "x$as_lineno_2" &&
37337 - test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
37338 - $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
37339 - $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
37340 - CONFIG_SHELL=$as_dir/$as_base
37341 - export CONFIG_SHELL
37342 - exec "$CONFIG_SHELL" "$0" ${1+"$@"}
37343 - fi;;
37344 - esac
37345 - done
37346 -done
37347 -;;
37348 - esac
37349 + test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
37350
37351 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
37352 # uniformly replaced by the line number. The first 'sed' inserts a
37353 - # line-number line before each line; the second 'sed' does the real
37354 - # work. The second script uses 'N' to pair each line-number line
37355 - # with the numbered line, and appends trailing '-' during
37356 - # substitution so that $LINENO is not a special case at line end.
37357 + # line-number line after each line using $LINENO; the second 'sed'
37358 + # does the real work. The second script uses 'N' to pair each
37359 + # line-number line with the line containing $LINENO, and appends
37360 + # trailing '-' during substitution so that $LINENO is not a special
37361 + # case at line end.
37362 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
37363 - # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
37364 - sed '=' <$as_myself |
37365 + # scripts with optimization help from Paolo Bonzini. Blame Lee
37366 + # E. McMahon (1931-1989) for sed's syntax. :-)
37367 + sed -n '
37368 + p
37369 + /[$]LINENO/=
37370 + ' <$as_myself |
37371 sed '
37372 + s/[$]LINENO.*/&-/
37373 + t lineno
37374 + b
37375 + :lineno
37376 N
37377 - s,$,-,
37378 - : loop
37379 - s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
37380 + :loop
37381 + s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
37382 t loop
37383 - s,-$,,
37384 - s,^['$as_cr_digits']*\n,,
37385 + s/-\n.*//
37386 ' >$as_me.lineno &&
37387 - chmod +x $as_me.lineno ||
37388 - { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
37389 -echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
37390 + chmod +x "$as_me.lineno" ||
37391 + { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
37392 { (exit 1); exit 1; }; }
37393
37394 # Don't try to exec as it changes $[0], causing all sort of problems
37395 # (the dirname of $[0] is not the place where we might find the
37396 - # original and so on. Autoconf is especially sensible to this).
37397 - . ./$as_me.lineno
37398 + # original and so on. Autoconf is especially sensitive to this).
37399 + . "./$as_me.lineno"
37400 # Exit status is that of the last command.
37401 exit
37402 }
37403
37404
37405 -case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
37406 - *c*,-n*) ECHO_N= ECHO_C='
37407 -' ECHO_T=' ' ;;
37408 - *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
37409 - *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
37410 +if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
37411 + as_dirname=dirname
37412 +else
37413 + as_dirname=false
37414 +fi
37415 +
37416 +ECHO_C= ECHO_N= ECHO_T=
37417 +case `echo -n x` in
37418 +-n*)
37419 + case `echo 'x\c'` in
37420 + *c*) ECHO_T=' ';; # ECHO_T is single tab character.
37421 + *) ECHO_C='\c';;
37422 + esac;;
37423 +*)
37424 + ECHO_N='-n';;
37425 esac
37426
37427 -if expr a : '\(a\)' >/dev/null 2>&1; then
37428 +if expr a : '\(a\)' >/dev/null 2>&1 &&
37429 + test "X`expr 00001 : '.*\(...\)'`" = X001; then
37430 as_expr=expr
37431 else
37432 as_expr=false
37433 fi
37434
37435 rm -f conf$$ conf$$.exe conf$$.file
37436 +if test -d conf$$.dir; then
37437 + rm -f conf$$.dir/conf$$.file
37438 +else
37439 + rm -f conf$$.dir
37440 + mkdir conf$$.dir
37441 +fi
37442 echo >conf$$.file
37443 if ln -s conf$$.file conf$$ 2>/dev/null; then
37444 - # We could just check for DJGPP; but this test a) works b) is more generic
37445 - # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
37446 - if test -f conf$$.exe; then
37447 - # Don't use ln at all; we don't have any links
37448 + as_ln_s='ln -s'
37449 + # ... but there are two gotchas:
37450 + # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
37451 + # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
37452 + # In both cases, we have to default to `cp -p'.
37453 + ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
37454 as_ln_s='cp -p'
37455 - else
37456 - as_ln_s='ln -s'
37457 - fi
37458 elif ln conf$$.file conf$$ 2>/dev/null; then
37459 as_ln_s=ln
37460 else
37461 as_ln_s='cp -p'
37462 fi
37463 -rm -f conf$$ conf$$.exe conf$$.file
37464 +rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
37465 +rmdir conf$$.dir 2>/dev/null
37466
37467 if mkdir -p . 2>/dev/null; then
37468 as_mkdir_p=:
37469 @@ -11170,7 +11593,28 @@ else
37470 as_mkdir_p=false
37471 fi
37472
37473 -as_executable_p="test -f"
37474 +if test -x / >/dev/null 2>&1; then
37475 + as_test_x='test -x'
37476 +else
37477 + if ls -dL / >/dev/null 2>&1; then
37478 + as_ls_L_option=L
37479 + else
37480 + as_ls_L_option=
37481 + fi
37482 + as_test_x='
37483 + eval sh -c '\''
37484 + if test -d "$1"; then
37485 + test -d "$1/.";
37486 + else
37487 + case $1 in
37488 + -*)set "./$1";;
37489 + esac;
37490 + case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
37491 + ???[sx]*):;;*)false;;esac;fi
37492 + '\'' sh
37493 + '
37494 +fi
37495 +as_executable_p=$as_test_x
37496
37497 # Sed expression to map a string onto a valid CPP name.
37498 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
37499 @@ -11179,31 +11623,14 @@ as_tr_cpp="eval sed 'y%*$as_cr_letters%P
37500 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
37501
37502
37503 -# IFS
37504 -# We need space, tab and new line, in precisely that order.
37505 -as_nl='
37506 -'
37507 -IFS=" $as_nl"
37508 -
37509 -# CDPATH.
37510 -$as_unset CDPATH
37511 -
37512 exec 6>&1
37513
37514 -# Open the log real soon, to keep \$[0] and so on meaningful, and to
37515 +# Save the log message, to keep $[0] and so on meaningful, and to
37516 # report actual input values of CONFIG_FILES etc. instead of their
37517 -# values after options handling. Logging --version etc. is OK.
37518 -exec 5>>config.log
37519 -{
37520 - echo
37521 - sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
37522 -## Running $as_me. ##
37523 -_ASBOX
37524 -} >&5
37525 -cat >&5 <<_CSEOF
37526 -
37527 +# values after options handling.
37528 +ac_log="
37529 This file was extended by $as_me, which was
37530 -generated by GNU Autoconf 2.59. Invocation command line was
37531 +generated by GNU Autoconf 2.61. Invocation command line was
37532
37533 CONFIG_FILES = $CONFIG_FILES
37534 CONFIG_HEADERS = $CONFIG_HEADERS
37535 @@ -11211,30 +11638,20 @@ generated by GNU Autoconf 2.59. Invocat
37536 CONFIG_COMMANDS = $CONFIG_COMMANDS
37537 $ $0 $@
37538
37539 -_CSEOF
37540 -echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
37541 -echo >&5
37542 +on `(hostname || uname -n) 2>/dev/null | sed 1q`
37543 +"
37544 +
37545 _ACEOF
37546
37547 +cat >>$CONFIG_STATUS <<_ACEOF
37548 # Files that config.status was made for.
37549 -if test -n "$ac_config_files"; then
37550 - echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
37551 -fi
37552 -
37553 -if test -n "$ac_config_headers"; then
37554 - echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
37555 -fi
37556 -
37557 -if test -n "$ac_config_links"; then
37558 - echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
37559 -fi
37560 +config_files="$ac_config_files"
37561 +config_headers="$ac_config_headers"
37562 +config_commands="$ac_config_commands"
37563
37564 -if test -n "$ac_config_commands"; then
37565 - echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
37566 -fi
37567 +_ACEOF
37568
37569 cat >>$CONFIG_STATUS <<\_ACEOF
37570 -
37571 ac_cs_usage="\
37572 \`$as_me' instantiates files from templates according to the
37573 current configuration.
37574 @@ -11242,7 +11659,7 @@ current configuration.
37575 Usage: $0 [OPTIONS] [FILE]...
37576
37577 -h, --help print this help, then exit
37578 - -V, --version print version number, then exit
37579 + -V, --version print version number and configuration settings, then exit
37580 -q, --quiet do not print progress messages
37581 -d, --debug don't remove temporary files
37582 --recheck update $as_me by reconfiguring in the same conditions
37583 @@ -11261,19 +11678,21 @@ Configuration commands:
37584 $config_commands
37585
37586 Report bugs to <bug-autoconf@gnu.org>."
37587 -_ACEOF
37588
37589 +_ACEOF
37590 cat >>$CONFIG_STATUS <<_ACEOF
37591 ac_cs_version="\\
37592 config.status
37593 -configured by $0, generated by GNU Autoconf 2.59,
37594 - with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
37595 +configured by $0, generated by GNU Autoconf 2.61,
37596 + with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
37597
37598 -Copyright (C) 2003 Free Software Foundation, Inc.
37599 +Copyright (C) 2006 Free Software Foundation, Inc.
37600 This config.status script is free software; the Free Software Foundation
37601 gives unlimited permission to copy, distribute and modify it."
37602 -srcdir=$srcdir
37603 -INSTALL="$INSTALL"
37604 +
37605 +ac_pwd='$ac_pwd'
37606 +srcdir='$srcdir'
37607 +INSTALL='$INSTALL'
37608 _ACEOF
37609
37610 cat >>$CONFIG_STATUS <<\_ACEOF
37611 @@ -11284,39 +11703,24 @@ while test $# != 0
37612 do
37613 case $1 in
37614 --*=*)
37615 - ac_option=`expr "x$1" : 'x\([^=]*\)='`
37616 - ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
37617 + ac_option=`expr "X$1" : 'X\([^=]*\)='`
37618 + ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
37619 ac_shift=:
37620 ;;
37621 - -*)
37622 + *)
37623 ac_option=$1
37624 ac_optarg=$2
37625 ac_shift=shift
37626 ;;
37627 - *) # This is not an option, so the user has probably given explicit
37628 - # arguments.
37629 - ac_option=$1
37630 - ac_need_defaults=false;;
37631 esac
37632
37633 case $ac_option in
37634 # Handling of the options.
37635 -_ACEOF
37636 -cat >>$CONFIG_STATUS <<\_ACEOF
37637 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
37638 ac_cs_recheck=: ;;
37639 - --version | --vers* | -V )
37640 - echo "$ac_cs_version"; exit 0 ;;
37641 - --he | --h)
37642 - # Conflict between --help and --header
37643 - { { echo "$as_me:$LINENO: error: ambiguous option: $1
37644 -Try \`$0 --help' for more information." >&5
37645 -echo "$as_me: error: ambiguous option: $1
37646 -Try \`$0 --help' for more information." >&2;}
37647 - { (exit 1); exit 1; }; };;
37648 - --help | --hel | -h )
37649 - echo "$ac_cs_usage"; exit 0 ;;
37650 - --debug | --d* | -d )
37651 + --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
37652 + echo "$ac_cs_version"; exit ;;
37653 + --debug | --debu | --deb | --de | --d | -d )
37654 debug=: ;;
37655 --file | --fil | --fi | --f )
37656 $ac_shift
37657 @@ -11326,18 +11730,24 @@ Try \`$0 --help' for more information."
37658 $ac_shift
37659 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
37660 ac_need_defaults=false;;
37661 + --he | --h)
37662 + # Conflict between --help and --header
37663 + { echo "$as_me: error: ambiguous option: $1
37664 +Try \`$0 --help' for more information." >&2
37665 + { (exit 1); exit 1; }; };;
37666 + --help | --hel | -h )
37667 + echo "$ac_cs_usage"; exit ;;
37668 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
37669 | -silent | --silent | --silen | --sile | --sil | --si | --s)
37670 ac_cs_silent=: ;;
37671
37672 # This is an error.
37673 - -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
37674 -Try \`$0 --help' for more information." >&5
37675 -echo "$as_me: error: unrecognized option: $1
37676 -Try \`$0 --help' for more information." >&2;}
37677 + -*) { echo "$as_me: error: unrecognized option: $1
37678 +Try \`$0 --help' for more information." >&2
37679 { (exit 1); exit 1; }; } ;;
37680
37681 - *) ac_config_targets="$ac_config_targets $1" ;;
37682 + *) ac_config_targets="$ac_config_targets $1"
37683 + ac_need_defaults=false ;;
37684
37685 esac
37686 shift
37687 @@ -11353,40 +11763,52 @@ fi
37688 _ACEOF
37689 cat >>$CONFIG_STATUS <<_ACEOF
37690 if \$ac_cs_recheck; then
37691 - echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
37692 - exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
37693 + echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
37694 + CONFIG_SHELL=$SHELL
37695 + export CONFIG_SHELL
37696 + exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
37697 fi
37698
37699 _ACEOF
37700 +cat >>$CONFIG_STATUS <<\_ACEOF
37701 +exec 5>>config.log
37702 +{
37703 + echo
37704 + sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
37705 +## Running $as_me. ##
37706 +_ASBOX
37707 + echo "$ac_log"
37708 +} >&5
37709
37710 +_ACEOF
37711 cat >>$CONFIG_STATUS <<_ACEOF
37712 #
37713 -# INIT-COMMANDS section.
37714 +# INIT-COMMANDS
37715 #
37716 -
37717 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
37718
37719 _ACEOF
37720
37721 -
37722 -
37723 cat >>$CONFIG_STATUS <<\_ACEOF
37724 +
37725 +# Handling of arguments.
37726 for ac_config_target in $ac_config_targets
37727 do
37728 - case "$ac_config_target" in
37729 - # Handling of arguments.
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 - "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
37734 - "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
37735 - "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
37736 + case $ac_config_target in
37737 + "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
37738 + "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
37739 + "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
37740 + "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
37741 + "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
37742 + "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
37743 +
37744 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
37745 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
37746 { (exit 1); exit 1; }; };;
37747 esac
37748 done
37749
37750 +
37751 # If the user did not use the arguments to specify the items to instantiate,
37752 # then the envvar interface is used. Set only those that are not.
37753 # We use the long form for the default assignment because of an extremely
37754 @@ -11398,391 +11820,496 @@ if $ac_need_defaults; then
37755 fi
37756
37757 # Have a temporary directory for convenience. Make it in the build tree
37758 -# simply because there is no reason to put it here, and in addition,
37759 +# simply because there is no reason against having it here, and in addition,
37760 # creating and moving files from /tmp can sometimes cause problems.
37761 -# Create a temporary directory, and hook for its removal unless debugging.
37762 +# Hook for its removal unless debugging.
37763 +# Note that there is a small window in which the directory will not be cleaned:
37764 +# after its creation but before its name has been assigned to `$tmp'.
37765 $debug ||
37766 {
37767 - trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
37768 + tmp=
37769 + trap 'exit_status=$?
37770 + { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
37771 +' 0
37772 trap '{ (exit 1); exit 1; }' 1 2 13 15
37773 }
37774 -
37775 # Create a (secure) tmp directory for tmp files.
37776
37777 {
37778 - tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
37779 + tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
37780 test -n "$tmp" && test -d "$tmp"
37781 } ||
37782 {
37783 - tmp=./confstat$$-$RANDOM
37784 - (umask 077 && mkdir $tmp)
37785 + tmp=./conf$$-$RANDOM
37786 + (umask 077 && mkdir "$tmp")
37787 } ||
37788 {
37789 echo "$me: cannot create a temporary directory in ." >&2
37790 { (exit 1); exit 1; }
37791 }
37792
37793 -_ACEOF
37794 -
37795 -cat >>$CONFIG_STATUS <<_ACEOF
37796 -
37797 #
37798 -# CONFIG_FILES section.
37799 +# Set up the sed scripts for CONFIG_FILES section.
37800 #
37801
37802 # No need to generate the scripts if there are no CONFIG_FILES.
37803 # This happens for instance when ./config.status config.h
37804 -if test -n "\$CONFIG_FILES"; then
37805 - # Protect against being on the right side of a sed subst in config.status.
37806 - sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
37807 - s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
37808 -s,@SHELL@,$SHELL,;t t
37809 -s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
37810 -s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
37811 -s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
37812 -s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
37813 -s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
37814 -s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
37815 -s,@exec_prefix@,$exec_prefix,;t t
37816 -s,@prefix@,$prefix,;t t
37817 -s,@program_transform_name@,$program_transform_name,;t t
37818 -s,@bindir@,$bindir,;t t
37819 -s,@sbindir@,$sbindir,;t t
37820 -s,@libexecdir@,$libexecdir,;t t
37821 -s,@datadir@,$datadir,;t t
37822 -s,@sysconfdir@,$sysconfdir,;t t
37823 -s,@sharedstatedir@,$sharedstatedir,;t t
37824 -s,@localstatedir@,$localstatedir,;t t
37825 -s,@libdir@,$libdir,;t t
37826 -s,@includedir@,$includedir,;t t
37827 -s,@oldincludedir@,$oldincludedir,;t t
37828 -s,@infodir@,$infodir,;t t
37829 -s,@mandir@,$mandir,;t t
37830 -s,@build_alias@,$build_alias,;t t
37831 -s,@host_alias@,$host_alias,;t t
37832 -s,@target_alias@,$target_alias,;t t
37833 -s,@DEFS@,$DEFS,;t t
37834 -s,@ECHO_C@,$ECHO_C,;t t
37835 -s,@ECHO_N@,$ECHO_N,;t t
37836 -s,@ECHO_T@,$ECHO_T,;t t
37837 -s,@LIBS@,$LIBS,;t t
37838 -s,@build@,$build,;t t
37839 -s,@build_cpu@,$build_cpu,;t t
37840 -s,@build_vendor@,$build_vendor,;t t
37841 -s,@build_os@,$build_os,;t t
37842 -s,@host@,$host,;t t
37843 -s,@host_cpu@,$host_cpu,;t t
37844 -s,@host_vendor@,$host_vendor,;t t
37845 -s,@host_os@,$host_os,;t t
37846 -s,@target@,$target,;t t
37847 -s,@target_cpu@,$target_cpu,;t t
37848 -s,@target_vendor@,$target_vendor,;t t
37849 -s,@target_os@,$target_os,;t t
37850 -s,@CC@,$CC,;t t
37851 -s,@CFLAGS@,$CFLAGS,;t t
37852 -s,@LDFLAGS@,$LDFLAGS,;t t
37853 -s,@CPPFLAGS@,$CPPFLAGS,;t t
37854 -s,@ac_ct_CC@,$ac_ct_CC,;t t
37855 -s,@EXEEXT@,$EXEEXT,;t t
37856 -s,@OBJEXT@,$OBJEXT,;t t
37857 -s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
37858 -s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
37859 -s,@INSTALL_DATA@,$INSTALL_DATA,;t t
37860 -s,@CYGPATH_W@,$CYGPATH_W,;t t
37861 -s,@PACKAGE@,$PACKAGE,;t t
37862 -s,@VERSION@,$VERSION,;t t
37863 -s,@ACLOCAL@,$ACLOCAL,;t t
37864 -s,@AUTOCONF@,$AUTOCONF,;t t
37865 -s,@AUTOMAKE@,$AUTOMAKE,;t t
37866 -s,@AUTOHEADER@,$AUTOHEADER,;t t
37867 -s,@MAKEINFO@,$MAKEINFO,;t t
37868 -s,@install_sh@,$install_sh,;t t
37869 -s,@STRIP@,$STRIP,;t t
37870 -s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
37871 -s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
37872 -s,@mkdir_p@,$mkdir_p,;t t
37873 -s,@AWK@,$AWK,;t t
37874 -s,@SET_MAKE@,$SET_MAKE,;t t
37875 -s,@am__leading_dot@,$am__leading_dot,;t t
37876 -s,@AMTAR@,$AMTAR,;t t
37877 -s,@am__tar@,$am__tar,;t t
37878 -s,@am__untar@,$am__untar,;t t
37879 -s,@DEPDIR@,$DEPDIR,;t t
37880 -s,@am__include@,$am__include,;t t
37881 -s,@am__quote@,$am__quote,;t t
37882 -s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
37883 -s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
37884 -s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
37885 -s,@CCDEPMODE@,$CCDEPMODE,;t t
37886 -s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
37887 -s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
37888 -s,@LN_S@,$LN_S,;t t
37889 -s,@RANLIB@,$RANLIB,;t t
37890 -s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
37891 -s,@LIBTOOL@,$LIBTOOL,;t t
37892 -s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
37893 -s,@NO_WERROR@,$NO_WERROR,;t t
37894 -s,@YACC@,$YACC,;t t
37895 -s,@LEX@,$LEX,;t t
37896 -s,@LEXLIB@,$LEXLIB,;t t
37897 -s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
37898 -s,@CPP@,$CPP,;t t
37899 -s,@EGREP@,$EGREP,;t t
37900 -s,@ALLOCA@,$ALLOCA,;t t
37901 -s,@USE_NLS@,$USE_NLS,;t t
37902 -s,@MSGFMT@,$MSGFMT,;t t
37903 -s,@GMSGFMT@,$GMSGFMT,;t t
37904 -s,@XGETTEXT@,$XGETTEXT,;t t
37905 -s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
37906 -s,@CATALOGS@,$CATALOGS,;t t
37907 -s,@CATOBJEXT@,$CATOBJEXT,;t t
37908 -s,@DATADIRNAME@,$DATADIRNAME,;t t
37909 -s,@GMOFILES@,$GMOFILES,;t t
37910 -s,@INSTOBJEXT@,$INSTOBJEXT,;t t
37911 -s,@INTLDEPS@,$INTLDEPS,;t t
37912 -s,@INTLLIBS@,$INTLLIBS,;t t
37913 -s,@INTLOBJS@,$INTLOBJS,;t t
37914 -s,@POFILES@,$POFILES,;t t
37915 -s,@POSUB@,$POSUB,;t t
37916 -s,@INCLUDE_LOCALE_H@,$INCLUDE_LOCALE_H,;t t
37917 -s,@GT_NO@,$GT_NO,;t t
37918 -s,@GT_YES@,$GT_YES,;t t
37919 -s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
37920 -s,@l@,$l,;t t
37921 -s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
37922 -s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
37923 -s,@MAINT@,$MAINT,;t t
37924 -s,@HDEFINES@,$HDEFINES,;t t
37925 -s,@AR@,$AR,;t t
37926 -s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
37927 -s,@EXEEXT_FOR_BUILD@,$EXEEXT_FOR_BUILD,;t t
37928 -s,@DEMANGLER_NAME@,$DEMANGLER_NAME,;t t
37929 -s,@NLMCONV_DEFS@,$NLMCONV_DEFS,;t t
37930 -s,@BUILD_NLMCONV@,$BUILD_NLMCONV,;t t
37931 -s,@BUILD_SRCONV@,$BUILD_SRCONV,;t t
37932 -s,@BUILD_DLLTOOL@,$BUILD_DLLTOOL,;t t
37933 -s,@DLLTOOL_DEFS@,$DLLTOOL_DEFS,;t t
37934 -s,@BUILD_WINDRES@,$BUILD_WINDRES,;t t
37935 -s,@BUILD_DLLWRAP@,$BUILD_DLLWRAP,;t t
37936 -s,@BUILD_MISC@,$BUILD_MISC,;t t
37937 -s,@OBJDUMP_DEFS@,$OBJDUMP_DEFS,;t t
37938 -s,@EMULATION@,$EMULATION,;t t
37939 -s,@EMULATION_VECTOR@,$EMULATION_VECTOR,;t t
37940 -s,@datarootdir@,$datarootdir,;t t
37941 -s,@docdir@,$docdir,;t t
37942 -s,@htmldir@,$htmldir,;t t
37943 -s,@LIBOBJS@,$LIBOBJS,;t t
37944 -s,@LTLIBOBJS@,$LTLIBOBJS,;t t
37945 -CEOF
37946 -
37947 -_ACEOF
37948 -
37949 - cat >>$CONFIG_STATUS <<\_ACEOF
37950 - # Split the substitutions into bite-sized pieces for seds with
37951 - # small command number limits, like on Digital OSF/1 and HP-UX.
37952 - ac_max_sed_lines=48
37953 - ac_sed_frag=1 # Number of current file.
37954 - ac_beg=1 # First line for current file.
37955 - ac_end=$ac_max_sed_lines # Line after last line for current file.
37956 - ac_more_lines=:
37957 - ac_sed_cmds=
37958 - while $ac_more_lines; do
37959 - if test $ac_beg -gt 1; then
37960 - sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
37961 - else
37962 - sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
37963 - fi
37964 - if test ! -s $tmp/subs.frag; then
37965 - ac_more_lines=false
37966 - else
37967 - # The purpose of the label and of the branching condition is to
37968 - # speed up the sed processing (if there are no `@' at all, there
37969 - # is no need to browse any of the substitutions).
37970 - # These are the two extra sed commands mentioned above.
37971 - (echo ':t
37972 - /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
37973 - if test -z "$ac_sed_cmds"; then
37974 - ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
37975 - else
37976 - ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
37977 - fi
37978 - ac_sed_frag=`expr $ac_sed_frag + 1`
37979 - ac_beg=$ac_end
37980 - ac_end=`expr $ac_end + $ac_max_sed_lines`
37981 - fi
37982 - done
37983 - if test -z "$ac_sed_cmds"; then
37984 - ac_sed_cmds=cat
37985 +if test -n "$CONFIG_FILES"; then
37986 +
37987 +_ACEOF
37988 +
37989 +
37990 +
37991 +ac_delim='%!_!# '
37992 +for ac_last_try in false false false false false :; do
37993 + cat >conf$$subs.sed <<_ACEOF
37994 +SHELL!$SHELL$ac_delim
37995 +PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
37996 +PACKAGE_NAME!$PACKAGE_NAME$ac_delim
37997 +PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
37998 +PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
37999 +PACKAGE_STRING!$PACKAGE_STRING$ac_delim
38000 +PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
38001 +exec_prefix!$exec_prefix$ac_delim
38002 +prefix!$prefix$ac_delim
38003 +program_transform_name!$program_transform_name$ac_delim
38004 +bindir!$bindir$ac_delim
38005 +sbindir!$sbindir$ac_delim
38006 +libexecdir!$libexecdir$ac_delim
38007 +datarootdir!$datarootdir$ac_delim
38008 +datadir!$datadir$ac_delim
38009 +sysconfdir!$sysconfdir$ac_delim
38010 +sharedstatedir!$sharedstatedir$ac_delim
38011 +localstatedir!$localstatedir$ac_delim
38012 +includedir!$includedir$ac_delim
38013 +oldincludedir!$oldincludedir$ac_delim
38014 +docdir!$docdir$ac_delim
38015 +infodir!$infodir$ac_delim
38016 +htmldir!$htmldir$ac_delim
38017 +dvidir!$dvidir$ac_delim
38018 +pdfdir!$pdfdir$ac_delim
38019 +psdir!$psdir$ac_delim
38020 +libdir!$libdir$ac_delim
38021 +localedir!$localedir$ac_delim
38022 +mandir!$mandir$ac_delim
38023 +DEFS!$DEFS$ac_delim
38024 +ECHO_C!$ECHO_C$ac_delim
38025 +ECHO_N!$ECHO_N$ac_delim
38026 +ECHO_T!$ECHO_T$ac_delim
38027 +LIBS!$LIBS$ac_delim
38028 +build_alias!$build_alias$ac_delim
38029 +host_alias!$host_alias$ac_delim
38030 +target_alias!$target_alias$ac_delim
38031 +build!$build$ac_delim
38032 +build_cpu!$build_cpu$ac_delim
38033 +build_vendor!$build_vendor$ac_delim
38034 +build_os!$build_os$ac_delim
38035 +host!$host$ac_delim
38036 +host_cpu!$host_cpu$ac_delim
38037 +host_vendor!$host_vendor$ac_delim
38038 +host_os!$host_os$ac_delim
38039 +target!$target$ac_delim
38040 +target_cpu!$target_cpu$ac_delim
38041 +target_vendor!$target_vendor$ac_delim
38042 +target_os!$target_os$ac_delim
38043 +CC!$CC$ac_delim
38044 +CFLAGS!$CFLAGS$ac_delim
38045 +LDFLAGS!$LDFLAGS$ac_delim
38046 +CPPFLAGS!$CPPFLAGS$ac_delim
38047 +ac_ct_CC!$ac_ct_CC$ac_delim
38048 +EXEEXT!$EXEEXT$ac_delim
38049 +OBJEXT!$OBJEXT$ac_delim
38050 +INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
38051 +INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
38052 +INSTALL_DATA!$INSTALL_DATA$ac_delim
38053 +CYGPATH_W!$CYGPATH_W$ac_delim
38054 +PACKAGE!$PACKAGE$ac_delim
38055 +VERSION!$VERSION$ac_delim
38056 +ACLOCAL!$ACLOCAL$ac_delim
38057 +AUTOCONF!$AUTOCONF$ac_delim
38058 +AUTOMAKE!$AUTOMAKE$ac_delim
38059 +AUTOHEADER!$AUTOHEADER$ac_delim
38060 +MAKEINFO!$MAKEINFO$ac_delim
38061 +install_sh!$install_sh$ac_delim
38062 +STRIP!$STRIP$ac_delim
38063 +INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
38064 +mkdir_p!$mkdir_p$ac_delim
38065 +AWK!$AWK$ac_delim
38066 +SET_MAKE!$SET_MAKE$ac_delim
38067 +am__leading_dot!$am__leading_dot$ac_delim
38068 +AMTAR!$AMTAR$ac_delim
38069 +am__tar!$am__tar$ac_delim
38070 +am__untar!$am__untar$ac_delim
38071 +DEPDIR!$DEPDIR$ac_delim
38072 +am__include!$am__include$ac_delim
38073 +am__quote!$am__quote$ac_delim
38074 +AMDEP_TRUE!$AMDEP_TRUE$ac_delim
38075 +AMDEP_FALSE!$AMDEP_FALSE$ac_delim
38076 +AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
38077 +CCDEPMODE!$CCDEPMODE$ac_delim
38078 +am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
38079 +am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
38080 +LN_S!$LN_S$ac_delim
38081 +RANLIB!$RANLIB$ac_delim
38082 +LIBTOOL!$LIBTOOL$ac_delim
38083 +WARN_CFLAGS!$WARN_CFLAGS$ac_delim
38084 +NO_WERROR!$NO_WERROR$ac_delim
38085 +YACC!$YACC$ac_delim
38086 +YFLAGS!$YFLAGS$ac_delim
38087 +LEX!$LEX$ac_delim
38088 +LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
38089 +LEXLIB!$LEXLIB$ac_delim
38090 +CPP!$CPP$ac_delim
38091 +_ACEOF
38092 +
38093 + if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
38094 + break
38095 + elif $ac_last_try; then
38096 + { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
38097 +echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
38098 + { (exit 1); exit 1; }; }
38099 + else
38100 + ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
38101 fi
38102 -fi # test -n "$CONFIG_FILES"
38103 +done
38104 +
38105 +ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
38106 +if test -n "$ac_eof"; then
38107 + ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
38108 + ac_eof=`expr $ac_eof + 1`
38109 +fi
38110 +
38111 +cat >>$CONFIG_STATUS <<_ACEOF
38112 +cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
38113 +/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
38114 +_ACEOF
38115 +sed '
38116 +s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
38117 +s/^/s,@/; s/!/@,|#_!!_#|/
38118 +:n
38119 +t n
38120 +s/'"$ac_delim"'$/,g/; t
38121 +s/$/\\/; p
38122 +N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
38123 +' >>$CONFIG_STATUS <conf$$subs.sed
38124 +rm -f conf$$subs.sed
38125 +cat >>$CONFIG_STATUS <<_ACEOF
38126 +CEOF$ac_eof
38127 +_ACEOF
38128 +
38129 +
38130 +ac_delim='%!_!# '
38131 +for ac_last_try in false false false false false :; do
38132 + cat >conf$$subs.sed <<_ACEOF
38133 +GREP!$GREP$ac_delim
38134 +EGREP!$EGREP$ac_delim
38135 +ALLOCA!$ALLOCA$ac_delim
38136 +USE_NLS!$USE_NLS$ac_delim
38137 +MSGFMT!$MSGFMT$ac_delim
38138 +GMSGFMT!$GMSGFMT$ac_delim
38139 +XGETTEXT!$XGETTEXT$ac_delim
38140 +USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim
38141 +CATALOGS!$CATALOGS$ac_delim
38142 +CATOBJEXT!$CATOBJEXT$ac_delim
38143 +DATADIRNAME!$DATADIRNAME$ac_delim
38144 +GMOFILES!$GMOFILES$ac_delim
38145 +INSTOBJEXT!$INSTOBJEXT$ac_delim
38146 +INTLDEPS!$INTLDEPS$ac_delim
38147 +INTLLIBS!$INTLLIBS$ac_delim
38148 +INTLOBJS!$INTLOBJS$ac_delim
38149 +POFILES!$POFILES$ac_delim
38150 +POSUB!$POSUB$ac_delim
38151 +INCLUDE_LOCALE_H!$INCLUDE_LOCALE_H$ac_delim
38152 +GT_NO!$GT_NO$ac_delim
38153 +GT_YES!$GT_YES$ac_delim
38154 +MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
38155 +l!$l$ac_delim
38156 +MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
38157 +MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
38158 +MAINT!$MAINT$ac_delim
38159 +HDEFINES!$HDEFINES$ac_delim
38160 +AR!$AR$ac_delim
38161 +CC_FOR_BUILD!$CC_FOR_BUILD$ac_delim
38162 +EXEEXT_FOR_BUILD!$EXEEXT_FOR_BUILD$ac_delim
38163 +DEMANGLER_NAME!$DEMANGLER_NAME$ac_delim
38164 +NLMCONV_DEFS!$NLMCONV_DEFS$ac_delim
38165 +BUILD_NLMCONV!$BUILD_NLMCONV$ac_delim
38166 +BUILD_SRCONV!$BUILD_SRCONV$ac_delim
38167 +BUILD_DLLTOOL!$BUILD_DLLTOOL$ac_delim
38168 +DLLTOOL_DEFS!$DLLTOOL_DEFS$ac_delim
38169 +BUILD_WINDRES!$BUILD_WINDRES$ac_delim
38170 +BUILD_DLLWRAP!$BUILD_DLLWRAP$ac_delim
38171 +BUILD_MISC!$BUILD_MISC$ac_delim
38172 +OBJDUMP_DEFS!$OBJDUMP_DEFS$ac_delim
38173 +EMULATION!$EMULATION$ac_delim
38174 +EMULATION_VECTOR!$EMULATION_VECTOR$ac_delim
38175 +LIBOBJS!$LIBOBJS$ac_delim
38176 +LTLIBOBJS!$LTLIBOBJS$ac_delim
38177 +_ACEOF
38178 +
38179 + if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 44; then
38180 + break
38181 + elif $ac_last_try; then
38182 + { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
38183 +echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
38184 + { (exit 1); exit 1; }; }
38185 + else
38186 + ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
38187 + fi
38188 +done
38189
38190 +ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
38191 +if test -n "$ac_eof"; then
38192 + ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
38193 + ac_eof=`expr $ac_eof + 1`
38194 +fi
38195 +
38196 +cat >>$CONFIG_STATUS <<_ACEOF
38197 +cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
38198 +/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
38199 +_ACEOF
38200 +sed '
38201 +s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
38202 +s/^/s,@/; s/!/@,|#_!!_#|/
38203 +:n
38204 +t n
38205 +s/'"$ac_delim"'$/,g/; t
38206 +s/$/\\/; p
38207 +N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
38208 +' >>$CONFIG_STATUS <conf$$subs.sed
38209 +rm -f conf$$subs.sed
38210 +cat >>$CONFIG_STATUS <<_ACEOF
38211 +:end
38212 +s/|#_!!_#|//g
38213 +CEOF$ac_eof
38214 _ACEOF
38215 +
38216 +
38217 +# VPATH may cause trouble with some makes, so we remove $(srcdir),
38218 +# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
38219 +# trailing colons and then remove the whole line if VPATH becomes empty
38220 +# (actually we leave an empty line to preserve line numbers).
38221 +if test "x$srcdir" = x.; then
38222 + ac_vpsub='/^[ ]*VPATH[ ]*=/{
38223 +s/:*\$(srcdir):*/:/
38224 +s/:*\${srcdir}:*/:/
38225 +s/:*@srcdir@:*/:/
38226 +s/^\([^=]*=[ ]*\):*/\1/
38227 +s/:*$//
38228 +s/^[^=]*=[ ]*$//
38229 +}'
38230 +fi
38231 +
38232 cat >>$CONFIG_STATUS <<\_ACEOF
38233 -for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
38234 - # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
38235 - case $ac_file in
38236 - - | *:- | *:-:* ) # input from stdin
38237 - cat >$tmp/stdin
38238 - ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
38239 - ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
38240 - *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
38241 - ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
38242 - * ) ac_file_in=$ac_file.in ;;
38243 +fi # test -n "$CONFIG_FILES"
38244 +
38245 +
38246 +for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
38247 +do
38248 + case $ac_tag in
38249 + :[FHLC]) ac_mode=$ac_tag; continue;;
38250 + esac
38251 + case $ac_mode$ac_tag in
38252 + :[FHL]*:*);;
38253 + :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
38254 +echo "$as_me: error: Invalid tag $ac_tag." >&2;}
38255 + { (exit 1); exit 1; }; };;
38256 + :[FH]-) ac_tag=-:-;;
38257 + :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
38258 + esac
38259 + ac_save_IFS=$IFS
38260 + IFS=:
38261 + set x $ac_tag
38262 + IFS=$ac_save_IFS
38263 + shift
38264 + ac_file=$1
38265 + shift
38266 +
38267 + case $ac_mode in
38268 + :L) ac_source=$1;;
38269 + :[FH])
38270 + ac_file_inputs=
38271 + for ac_f
38272 + do
38273 + case $ac_f in
38274 + -) ac_f="$tmp/stdin";;
38275 + *) # Look for the file first in the build tree, then in the source tree
38276 + # (if the path is not absolute). The absolute path cannot be DOS-style,
38277 + # because $ac_f cannot contain `:'.
38278 + test -f "$ac_f" ||
38279 + case $ac_f in
38280 + [\\/$]*) false;;
38281 + *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
38282 + esac ||
38283 + { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
38284 +echo "$as_me: error: cannot find input file: $ac_f" >&2;}
38285 + { (exit 1); exit 1; }; };;
38286 + esac
38287 + ac_file_inputs="$ac_file_inputs $ac_f"
38288 + done
38289 +
38290 + # Let's still pretend it is `configure' which instantiates (i.e., don't
38291 + # use $as_me), people would be surprised to read:
38292 + # /* config.h. Generated by config.status. */
38293 + configure_input="Generated from "`IFS=:
38294 + echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
38295 + if test x"$ac_file" != x-; then
38296 + configure_input="$ac_file. $configure_input"
38297 + { echo "$as_me:$LINENO: creating $ac_file" >&5
38298 +echo "$as_me: creating $ac_file" >&6;}
38299 + fi
38300 +
38301 + case $ac_tag in
38302 + *:-:* | *:-) cat >"$tmp/stdin";;
38303 + esac
38304 + ;;
38305 esac
38306
38307 - # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
38308 - ac_dir=`(dirname "$ac_file") 2>/dev/null ||
38309 + ac_dir=`$as_dirname -- "$ac_file" ||
38310 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
38311 X"$ac_file" : 'X\(//\)[^/]' \| \
38312 X"$ac_file" : 'X\(//\)$' \| \
38313 - X"$ac_file" : 'X\(/\)' \| \
38314 - . : '\(.\)' 2>/dev/null ||
38315 + X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
38316 echo X"$ac_file" |
38317 - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
38318 - /^X\(\/\/\)[^/].*/{ s//\1/; q; }
38319 - /^X\(\/\/\)$/{ s//\1/; q; }
38320 - /^X\(\/\).*/{ s//\1/; q; }
38321 - s/.*/./; q'`
38322 - { if $as_mkdir_p; then
38323 - mkdir -p "$ac_dir"
38324 - else
38325 - as_dir="$ac_dir"
38326 + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
38327 + s//\1/
38328 + q
38329 + }
38330 + /^X\(\/\/\)[^/].*/{
38331 + s//\1/
38332 + q
38333 + }
38334 + /^X\(\/\/\)$/{
38335 + s//\1/
38336 + q
38337 + }
38338 + /^X\(\/\).*/{
38339 + s//\1/
38340 + q
38341 + }
38342 + s/.*/./; q'`
38343 + { as_dir="$ac_dir"
38344 + case $as_dir in #(
38345 + -*) as_dir=./$as_dir;;
38346 + esac
38347 + test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
38348 as_dirs=
38349 - while test ! -d "$as_dir"; do
38350 - as_dirs="$as_dir $as_dirs"
38351 - as_dir=`(dirname "$as_dir") 2>/dev/null ||
38352 + while :; do
38353 + case $as_dir in #(
38354 + *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
38355 + *) as_qdir=$as_dir;;
38356 + esac
38357 + as_dirs="'$as_qdir' $as_dirs"
38358 + as_dir=`$as_dirname -- "$as_dir" ||
38359 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
38360 X"$as_dir" : 'X\(//\)[^/]' \| \
38361 X"$as_dir" : 'X\(//\)$' \| \
38362 - X"$as_dir" : 'X\(/\)' \| \
38363 - . : '\(.\)' 2>/dev/null ||
38364 + X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
38365 echo X"$as_dir" |
38366 - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
38367 - /^X\(\/\/\)[^/].*/{ s//\1/; q; }
38368 - /^X\(\/\/\)$/{ s//\1/; q; }
38369 - /^X\(\/\).*/{ s//\1/; q; }
38370 - s/.*/./; q'`
38371 + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
38372 + s//\1/
38373 + q
38374 + }
38375 + /^X\(\/\/\)[^/].*/{
38376 + s//\1/
38377 + q
38378 + }
38379 + /^X\(\/\/\)$/{
38380 + s//\1/
38381 + q
38382 + }
38383 + /^X\(\/\).*/{
38384 + s//\1/
38385 + q
38386 + }
38387 + s/.*/./; q'`
38388 + test -d "$as_dir" && break
38389 done
38390 - test ! -n "$as_dirs" || mkdir $as_dirs
38391 - fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
38392 -echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
38393 + test -z "$as_dirs" || eval "mkdir $as_dirs"
38394 + } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
38395 +echo "$as_me: error: cannot create directory $as_dir" >&2;}
38396 { (exit 1); exit 1; }; }; }
38397 -
38398 ac_builddir=.
38399
38400 -if test "$ac_dir" != .; then
38401 +case "$ac_dir" in
38402 +.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
38403 +*)
38404 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
38405 - # A "../" for each directory in $ac_dir_suffix.
38406 - ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
38407 -else
38408 - ac_dir_suffix= ac_top_builddir=
38409 -fi
38410 + # A ".." for each directory in $ac_dir_suffix.
38411 + ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
38412 + case $ac_top_builddir_sub in
38413 + "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
38414 + *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
38415 + esac ;;
38416 +esac
38417 +ac_abs_top_builddir=$ac_pwd
38418 +ac_abs_builddir=$ac_pwd$ac_dir_suffix
38419 +# for backward compatibility:
38420 +ac_top_builddir=$ac_top_build_prefix
38421
38422 case $srcdir in
38423 - .) # No --srcdir option. We are building in place.
38424 + .) # We are building in place.
38425 ac_srcdir=.
38426 - if test -z "$ac_top_builddir"; then
38427 - ac_top_srcdir=.
38428 - else
38429 - ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
38430 - fi ;;
38431 - [\\/]* | ?:[\\/]* ) # Absolute path.
38432 + ac_top_srcdir=$ac_top_builddir_sub
38433 + ac_abs_top_srcdir=$ac_pwd ;;
38434 + [\\/]* | ?:[\\/]* ) # Absolute name.
38435 ac_srcdir=$srcdir$ac_dir_suffix;
38436 - ac_top_srcdir=$srcdir ;;
38437 - *) # Relative path.
38438 - ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
38439 - ac_top_srcdir=$ac_top_builddir$srcdir ;;
38440 -esac
38441 + ac_top_srcdir=$srcdir
38442 + ac_abs_top_srcdir=$srcdir ;;
38443 + *) # Relative name.
38444 + ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
38445 + ac_top_srcdir=$ac_top_build_prefix$srcdir
38446 + ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
38447 +esac
38448 +ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
38449
38450 -# Do not use `cd foo && pwd` to compute absolute paths, because
38451 -# the directories may not exist.
38452 -case `pwd` in
38453 -.) ac_abs_builddir="$ac_dir";;
38454 -*)
38455 - case "$ac_dir" in
38456 - .) ac_abs_builddir=`pwd`;;
38457 - [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
38458 - *) ac_abs_builddir=`pwd`/"$ac_dir";;
38459 - esac;;
38460 -esac
38461 -case $ac_abs_builddir in
38462 -.) ac_abs_top_builddir=${ac_top_builddir}.;;
38463 -*)
38464 - case ${ac_top_builddir}. in
38465 - .) ac_abs_top_builddir=$ac_abs_builddir;;
38466 - [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
38467 - *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
38468 - esac;;
38469 -esac
38470 -case $ac_abs_builddir in
38471 -.) ac_abs_srcdir=$ac_srcdir;;
38472 -*)
38473 - case $ac_srcdir in
38474 - .) ac_abs_srcdir=$ac_abs_builddir;;
38475 - [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
38476 - *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
38477 - esac;;
38478 -esac
38479 -case $ac_abs_builddir in
38480 -.) ac_abs_top_srcdir=$ac_top_srcdir;;
38481 -*)
38482 - case $ac_top_srcdir in
38483 - .) ac_abs_top_srcdir=$ac_abs_builddir;;
38484 - [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
38485 - *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
38486 - esac;;
38487 -esac
38488
38489 + case $ac_mode in
38490 + :F)
38491 + #
38492 + # CONFIG_FILE
38493 + #
38494
38495 case $INSTALL in
38496 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
38497 - *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
38498 + *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
38499 esac
38500 +_ACEOF
38501
38502 - if test x"$ac_file" != x-; then
38503 - { echo "$as_me:$LINENO: creating $ac_file" >&5
38504 -echo "$as_me: creating $ac_file" >&6;}
38505 - rm -f "$ac_file"
38506 - fi
38507 - # Let's still pretend it is `configure' which instantiates (i.e., don't
38508 - # use $as_me), people would be surprised to read:
38509 - # /* config.h. Generated by config.status. */
38510 - if test x"$ac_file" = x-; then
38511 - configure_input=
38512 - else
38513 - configure_input="$ac_file. "
38514 - fi
38515 - configure_input=$configure_input"Generated from `echo $ac_file_in |
38516 - sed 's,.*/,,'` by configure."
38517 -
38518 - # First look for the input files in the build tree, otherwise in the
38519 - # src tree.
38520 - ac_file_inputs=`IFS=:
38521 - for f in $ac_file_in; do
38522 - case $f in
38523 - -) echo $tmp/stdin ;;
38524 - [\\/$]*)
38525 - # Absolute (can't be DOS-style, as IFS=:)
38526 - test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
38527 -echo "$as_me: error: cannot find input file: $f" >&2;}
38528 - { (exit 1); exit 1; }; }
38529 - echo "$f";;
38530 - *) # Relative
38531 - if test -f "$f"; then
38532 - # Build tree
38533 - echo "$f"
38534 - elif test -f "$srcdir/$f"; then
38535 - # Source tree
38536 - echo "$srcdir/$f"
38537 - else
38538 - # /dev/null tree
38539 - { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
38540 -echo "$as_me: error: cannot find input file: $f" >&2;}
38541 - { (exit 1); exit 1; }; }
38542 - fi;;
38543 - esac
38544 - done` || { (exit 1); exit 1; }
38545 +cat >>$CONFIG_STATUS <<\_ACEOF
38546 +# If the template does not know about datarootdir, expand it.
38547 +# FIXME: This hack should be removed a few years after 2.60.
38548 +ac_datarootdir_hack=; ac_datarootdir_seen=
38549 +
38550 +case `sed -n '/datarootdir/ {
38551 + p
38552 + q
38553 +}
38554 +/@datadir@/p
38555 +/@docdir@/p
38556 +/@infodir@/p
38557 +/@localedir@/p
38558 +/@mandir@/p
38559 +' $ac_file_inputs` in
38560 +*datarootdir*) ac_datarootdir_seen=yes;;
38561 +*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
38562 + { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
38563 +echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
38564 +_ACEOF
38565 +cat >>$CONFIG_STATUS <<_ACEOF
38566 + ac_datarootdir_hack='
38567 + s&@datadir@&$datadir&g
38568 + s&@docdir@&$docdir&g
38569 + s&@infodir@&$infodir&g
38570 + s&@localedir@&$localedir&g
38571 + s&@mandir@&$mandir&g
38572 + s&\\\${datarootdir}&$datarootdir&g' ;;
38573 +esac
38574 _ACEOF
38575 +
38576 +# Neutralize VPATH when `$srcdir' = `.'.
38577 +# Shell code in configure.ac might set extrasub.
38578 +# FIXME: do we really want to maintain this feature?
38579 cat >>$CONFIG_STATUS <<_ACEOF
38580 sed "$ac_vpsub
38581 $extrasub
38582 @@ -11790,248 +12317,130 @@ _ACEOF
38583 cat >>$CONFIG_STATUS <<\_ACEOF
38584 :t
38585 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
38586 -s,@configure_input@,$configure_input,;t t
38587 -s,@srcdir@,$ac_srcdir,;t t
38588 -s,@abs_srcdir@,$ac_abs_srcdir,;t t
38589 -s,@top_srcdir@,$ac_top_srcdir,;t t
38590 -s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
38591 -s,@builddir@,$ac_builddir,;t t
38592 -s,@abs_builddir@,$ac_abs_builddir,;t t
38593 -s,@top_builddir@,$ac_top_builddir,;t t
38594 -s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
38595 -s,@INSTALL@,$ac_INSTALL,;t t
38596 -" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
38597 - rm -f $tmp/stdin
38598 - if test x"$ac_file" != x-; then
38599 - mv $tmp/out $ac_file
38600 - else
38601 - cat $tmp/out
38602 - rm -f $tmp/out
38603 - fi
38604 -
38605 -done
38606 -_ACEOF
38607 -cat >>$CONFIG_STATUS <<\_ACEOF
38608 -
38609 -#
38610 -# CONFIG_HEADER section.
38611 -#
38612 -
38613 -# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
38614 -# NAME is the cpp macro being defined and VALUE is the value it is being given.
38615 -#
38616 -# ac_d sets the value in "#define NAME VALUE" lines.
38617 -ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
38618 -ac_dB='[ ].*$,\1#\2'
38619 -ac_dC=' '
38620 -ac_dD=',;t'
38621 -# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
38622 -ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
38623 -ac_uB='$,\1#\2define\3'
38624 -ac_uC=' '
38625 -ac_uD=',;t'
38626 +s&@configure_input@&$configure_input&;t t
38627 +s&@top_builddir@&$ac_top_builddir_sub&;t t
38628 +s&@srcdir@&$ac_srcdir&;t t
38629 +s&@abs_srcdir@&$ac_abs_srcdir&;t t
38630 +s&@top_srcdir@&$ac_top_srcdir&;t t
38631 +s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
38632 +s&@builddir@&$ac_builddir&;t t
38633 +s&@abs_builddir@&$ac_abs_builddir&;t t
38634 +s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
38635 +s&@INSTALL@&$ac_INSTALL&;t t
38636 +$ac_datarootdir_hack
38637 +" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
38638 +
38639 +test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
38640 + { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
38641 + { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
38642 + { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
38643 +which seems to be undefined. Please make sure it is defined." >&5
38644 +echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
38645 +which seems to be undefined. Please make sure it is defined." >&2;}
38646
38647 -for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
38648 - # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
38649 + rm -f "$tmp/stdin"
38650 case $ac_file in
38651 - - | *:- | *:-:* ) # input from stdin
38652 - cat >$tmp/stdin
38653 - ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
38654 - ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
38655 - *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
38656 - ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
38657 - * ) ac_file_in=$ac_file.in ;;
38658 + -) cat "$tmp/out"; rm -f "$tmp/out";;
38659 + *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
38660 esac
38661 + ;;
38662 + :H)
38663 + #
38664 + # CONFIG_HEADER
38665 + #
38666 +_ACEOF
38667 +
38668 +# Transform confdefs.h into a sed script `conftest.defines', that
38669 +# substitutes the proper values into config.h.in to produce config.h.
38670 +rm -f conftest.defines conftest.tail
38671 +# First, append a space to every undef/define line, to ease matching.
38672 +echo 's/$/ /' >conftest.defines
38673 +# Then, protect against being on the right side of a sed subst, or in
38674 +# an unquoted here document, in config.status. If some macros were
38675 +# called several times there might be several #defines for the same
38676 +# symbol, which is useless. But do not sort them, since the last
38677 +# AC_DEFINE must be honored.
38678 +ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
38679 +# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
38680 +# NAME is the cpp macro being defined, VALUE is the value it is being given.
38681 +# PARAMS is the parameter list in the macro definition--in most cases, it's
38682 +# just an empty string.
38683 +ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
38684 +ac_dB='\\)[ (].*,\\1define\\2'
38685 +ac_dC=' '
38686 +ac_dD=' ,'
38687
38688 - test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
38689 -echo "$as_me: creating $ac_file" >&6;}
38690 -
38691 - # First look for the input files in the build tree, otherwise in the
38692 - # src tree.
38693 - ac_file_inputs=`IFS=:
38694 - for f in $ac_file_in; do
38695 - case $f in
38696 - -) echo $tmp/stdin ;;
38697 - [\\/$]*)
38698 - # Absolute (can't be DOS-style, as IFS=:)
38699 - test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
38700 -echo "$as_me: error: cannot find input file: $f" >&2;}
38701 - { (exit 1); exit 1; }; }
38702 - # Do quote $f, to prevent DOS paths from being IFS'd.
38703 - echo "$f";;
38704 - *) # Relative
38705 - if test -f "$f"; then
38706 - # Build tree
38707 - echo "$f"
38708 - elif test -f "$srcdir/$f"; then
38709 - # Source tree
38710 - echo "$srcdir/$f"
38711 - else
38712 - # /dev/null tree
38713 - { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
38714 -echo "$as_me: error: cannot find input file: $f" >&2;}
38715 - { (exit 1); exit 1; }; }
38716 - fi;;
38717 - esac
38718 - done` || { (exit 1); exit 1; }
38719 - # Remove the trailing spaces.
38720 - sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
38721 -
38722 -_ACEOF
38723 -
38724 -# Transform confdefs.h into two sed scripts, `conftest.defines' and
38725 -# `conftest.undefs', that substitutes the proper values into
38726 -# config.h.in to produce config.h. The first handles `#define'
38727 -# templates, and the second `#undef' templates.
38728 -# And first: Protect against being on the right side of a sed subst in
38729 -# config.status. Protect against being in an unquoted here document
38730 -# in config.status.
38731 -rm -f conftest.defines conftest.undefs
38732 -# Using a here document instead of a string reduces the quoting nightmare.
38733 -# Putting comments in sed scripts is not portable.
38734 -#
38735 -# `end' is used to avoid that the second main sed command (meant for
38736 -# 0-ary CPP macros) applies to n-ary macro definitions.
38737 -# See the Autoconf documentation for `clear'.
38738 -cat >confdef2sed.sed <<\_ACEOF
38739 -s/[\\&,]/\\&/g
38740 -s,[\\$`],\\&,g
38741 -t clear
38742 -: clear
38743 -s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
38744 -t end
38745 -s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
38746 -: end
38747 -_ACEOF
38748 -# If some macros were called several times there might be several times
38749 -# the same #defines, which is useless. Nevertheless, we may not want to
38750 -# sort them, since we want the *last* AC-DEFINE to be honored.
38751 -uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
38752 -sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
38753 -rm -f confdef2sed.sed
38754 +uniq confdefs.h |
38755 + sed -n '
38756 + t rset
38757 + :rset
38758 + s/^[ ]*#[ ]*define[ ][ ]*//
38759 + t ok
38760 + d
38761 + :ok
38762 + s/[\\&,]/\\&/g
38763 + s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
38764 + s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
38765 + ' >>conftest.defines
38766
38767 -# This sed command replaces #undef with comments. This is necessary, for
38768 +# Remove the space that was appended to ease matching.
38769 +# Then replace #undef with comments. This is necessary, for
38770 # example, in the case of _POSIX_SOURCE, which is predefined and required
38771 # on some systems where configure will not decide to define it.
38772 -cat >>conftest.undefs <<\_ACEOF
38773 -s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
38774 +# (The regexp can be short, since the line contains either #define or #undef.)
38775 +echo 's/ $//
38776 +s,^[ #]*u.*,/* & */,' >>conftest.defines
38777 +
38778 +# Break up conftest.defines:
38779 +ac_max_sed_lines=50
38780 +
38781 +# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
38782 +# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
38783 +# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
38784 +# et cetera.
38785 +ac_in='$ac_file_inputs'
38786 +ac_out='"$tmp/out1"'
38787 +ac_nxt='"$tmp/out2"'
38788 +
38789 +while :
38790 +do
38791 + # Write a here document:
38792 + cat >>$CONFIG_STATUS <<_ACEOF
38793 + # First, check the format of the line:
38794 + cat >"\$tmp/defines.sed" <<\\CEOF
38795 +/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
38796 +/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
38797 +b
38798 +:def
38799 _ACEOF
38800 -
38801 -# Break up conftest.defines because some shells have a limit on the size
38802 -# of here documents, and old seds have small limits too (100 cmds).
38803 -echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
38804 -echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
38805 -echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
38806 -echo ' :' >>$CONFIG_STATUS
38807 -rm -f conftest.tail
38808 -while grep . conftest.defines >/dev/null
38809 -do
38810 - # Write a limited-size here document to $tmp/defines.sed.
38811 - echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
38812 - # Speed up: don't consider the non `#define' lines.
38813 - echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
38814 - # Work around the forget-to-reset-the-flag bug.
38815 - echo 't clr' >>$CONFIG_STATUS
38816 - echo ': clr' >>$CONFIG_STATUS
38817 - sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
38818 + sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
38819 echo 'CEOF
38820 - sed -f $tmp/defines.sed $tmp/in >$tmp/out
38821 - rm -f $tmp/in
38822 - mv $tmp/out $tmp/in
38823 -' >>$CONFIG_STATUS
38824 - sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
38825 + sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
38826 + ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
38827 + sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
38828 + grep . conftest.tail >/dev/null || break
38829 rm -f conftest.defines
38830 mv conftest.tail conftest.defines
38831 done
38832 -rm -f conftest.defines
38833 -echo ' fi # grep' >>$CONFIG_STATUS
38834 -echo >>$CONFIG_STATUS
38835 -
38836 -# Break up conftest.undefs because some shells have a limit on the size
38837 -# of here documents, and old seds have small limits too (100 cmds).
38838 -echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
38839 -rm -f conftest.tail
38840 -while grep . conftest.undefs >/dev/null
38841 -do
38842 - # Write a limited-size here document to $tmp/undefs.sed.
38843 - echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
38844 - # Speed up: don't consider the non `#undef'
38845 - echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
38846 - # Work around the forget-to-reset-the-flag bug.
38847 - echo 't clr' >>$CONFIG_STATUS
38848 - echo ': clr' >>$CONFIG_STATUS
38849 - sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
38850 - echo 'CEOF
38851 - sed -f $tmp/undefs.sed $tmp/in >$tmp/out
38852 - rm -f $tmp/in
38853 - mv $tmp/out $tmp/in
38854 -' >>$CONFIG_STATUS
38855 - sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
38856 - rm -f conftest.undefs
38857 - mv conftest.tail conftest.undefs
38858 -done
38859 -rm -f conftest.undefs
38860 +rm -f conftest.defines conftest.tail
38861
38862 +echo "ac_result=$ac_in" >>$CONFIG_STATUS
38863 cat >>$CONFIG_STATUS <<\_ACEOF
38864 - # Let's still pretend it is `configure' which instantiates (i.e., don't
38865 - # use $as_me), people would be surprised to read:
38866 - # /* config.h. Generated by config.status. */
38867 - if test x"$ac_file" = x-; then
38868 - echo "/* Generated by configure. */" >$tmp/config.h
38869 - else
38870 - echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
38871 - fi
38872 - cat $tmp/in >>$tmp/config.h
38873 - rm -f $tmp/in
38874 if test x"$ac_file" != x-; then
38875 - if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
38876 + echo "/* $configure_input */" >"$tmp/config.h"
38877 + cat "$ac_result" >>"$tmp/config.h"
38878 + if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
38879 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
38880 echo "$as_me: $ac_file is unchanged" >&6;}
38881 else
38882 - ac_dir=`(dirname "$ac_file") 2>/dev/null ||
38883 -$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
38884 - X"$ac_file" : 'X\(//\)[^/]' \| \
38885 - X"$ac_file" : 'X\(//\)$' \| \
38886 - X"$ac_file" : 'X\(/\)' \| \
38887 - . : '\(.\)' 2>/dev/null ||
38888 -echo X"$ac_file" |
38889 - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
38890 - /^X\(\/\/\)[^/].*/{ s//\1/; q; }
38891 - /^X\(\/\/\)$/{ s//\1/; q; }
38892 - /^X\(\/\).*/{ s//\1/; q; }
38893 - s/.*/./; q'`
38894 - { if $as_mkdir_p; then
38895 - mkdir -p "$ac_dir"
38896 - else
38897 - as_dir="$ac_dir"
38898 - as_dirs=
38899 - while test ! -d "$as_dir"; do
38900 - as_dirs="$as_dir $as_dirs"
38901 - as_dir=`(dirname "$as_dir") 2>/dev/null ||
38902 -$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
38903 - X"$as_dir" : 'X\(//\)[^/]' \| \
38904 - X"$as_dir" : 'X\(//\)$' \| \
38905 - X"$as_dir" : 'X\(/\)' \| \
38906 - . : '\(.\)' 2>/dev/null ||
38907 -echo X"$as_dir" |
38908 - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
38909 - /^X\(\/\/\)[^/].*/{ s//\1/; q; }
38910 - /^X\(\/\/\)$/{ s//\1/; q; }
38911 - /^X\(\/\).*/{ s//\1/; q; }
38912 - s/.*/./; q'`
38913 - done
38914 - test ! -n "$as_dirs" || mkdir $as_dirs
38915 - fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
38916 -echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
38917 - { (exit 1); exit 1; }; }; }
38918 -
38919 rm -f $ac_file
38920 - mv $tmp/config.h $ac_file
38921 + mv "$tmp/config.h" $ac_file
38922 fi
38923 else
38924 - cat $tmp/config.h
38925 - rm -f $tmp/config.h
38926 + echo "/* $configure_input */"
38927 + cat "$ac_result"
38928 fi
38929 + rm -f "$tmp/out12"
38930 # Compute $ac_file's index in $config_headers.
38931 _am_stamp_count=1
38932 for _am_header in $config_headers :; do
38933 @@ -12042,135 +12451,39 @@ for _am_header in $config_headers :; do
38934 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
38935 esac
38936 done
38937 -echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
38938 +echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
38939 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
38940 X$ac_file : 'X\(//\)[^/]' \| \
38941 X$ac_file : 'X\(//\)$' \| \
38942 - X$ac_file : 'X\(/\)' \| \
38943 - . : '\(.\)' 2>/dev/null ||
38944 + X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
38945 echo X$ac_file |
38946 - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
38947 - /^X\(\/\/\)[^/].*/{ s//\1/; q; }
38948 - /^X\(\/\/\)$/{ s//\1/; q; }
38949 - /^X\(\/\).*/{ s//\1/; q; }
38950 - s/.*/./; q'`/stamp-h$_am_stamp_count
38951 -done
38952 -_ACEOF
38953 -cat >>$CONFIG_STATUS <<\_ACEOF
38954 -
38955 -#
38956 -# CONFIG_COMMANDS section.
38957 -#
38958 -for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
38959 - ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
38960 - ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
38961 - ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
38962 -$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
38963 - X"$ac_dest" : 'X\(//\)[^/]' \| \
38964 - X"$ac_dest" : 'X\(//\)$' \| \
38965 - X"$ac_dest" : 'X\(/\)' \| \
38966 - . : '\(.\)' 2>/dev/null ||
38967 -echo X"$ac_dest" |
38968 - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
38969 - /^X\(\/\/\)[^/].*/{ s//\1/; q; }
38970 - /^X\(\/\/\)$/{ s//\1/; q; }
38971 - /^X\(\/\).*/{ s//\1/; q; }
38972 - s/.*/./; q'`
38973 - { if $as_mkdir_p; then
38974 - mkdir -p "$ac_dir"
38975 - else
38976 - as_dir="$ac_dir"
38977 - as_dirs=
38978 - while test ! -d "$as_dir"; do
38979 - as_dirs="$as_dir $as_dirs"
38980 - as_dir=`(dirname "$as_dir") 2>/dev/null ||
38981 -$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
38982 - X"$as_dir" : 'X\(//\)[^/]' \| \
38983 - X"$as_dir" : 'X\(//\)$' \| \
38984 - X"$as_dir" : 'X\(/\)' \| \
38985 - . : '\(.\)' 2>/dev/null ||
38986 -echo X"$as_dir" |
38987 - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
38988 - /^X\(\/\/\)[^/].*/{ s//\1/; q; }
38989 - /^X\(\/\/\)$/{ s//\1/; q; }
38990 - /^X\(\/\).*/{ s//\1/; q; }
38991 - s/.*/./; q'`
38992 - done
38993 - test ! -n "$as_dirs" || mkdir $as_dirs
38994 - fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
38995 -echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
38996 - { (exit 1); exit 1; }; }; }
38997 -
38998 - ac_builddir=.
38999 -
39000 -if test "$ac_dir" != .; then
39001 - ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
39002 - # A "../" for each directory in $ac_dir_suffix.
39003 - ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
39004 -else
39005 - ac_dir_suffix= ac_top_builddir=
39006 -fi
39007 -
39008 -case $srcdir in
39009 - .) # No --srcdir option. We are building in place.
39010 - ac_srcdir=.
39011 - if test -z "$ac_top_builddir"; then
39012 - ac_top_srcdir=.
39013 - else
39014 - ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
39015 - fi ;;
39016 - [\\/]* | ?:[\\/]* ) # Absolute path.
39017 - ac_srcdir=$srcdir$ac_dir_suffix;
39018 - ac_top_srcdir=$srcdir ;;
39019 - *) # Relative path.
39020 - ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
39021 - ac_top_srcdir=$ac_top_builddir$srcdir ;;
39022 -esac
39023 + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
39024 + s//\1/
39025 + q
39026 + }
39027 + /^X\(\/\/\)[^/].*/{
39028 + s//\1/
39029 + q
39030 + }
39031 + /^X\(\/\/\)$/{
39032 + s//\1/
39033 + q
39034 + }
39035 + /^X\(\/\).*/{
39036 + s//\1/
39037 + q
39038 + }
39039 + s/.*/./; q'`/stamp-h$_am_stamp_count
39040 + ;;
39041
39042 -# Do not use `cd foo && pwd` to compute absolute paths, because
39043 -# the directories may not exist.
39044 -case `pwd` in
39045 -.) ac_abs_builddir="$ac_dir";;
39046 -*)
39047 - case "$ac_dir" in
39048 - .) ac_abs_builddir=`pwd`;;
39049 - [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
39050 - *) ac_abs_builddir=`pwd`/"$ac_dir";;
39051 - esac;;
39052 -esac
39053 -case $ac_abs_builddir in
39054 -.) ac_abs_top_builddir=${ac_top_builddir}.;;
39055 -*)
39056 - case ${ac_top_builddir}. in
39057 - .) ac_abs_top_builddir=$ac_abs_builddir;;
39058 - [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
39059 - *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
39060 - esac;;
39061 -esac
39062 -case $ac_abs_builddir in
39063 -.) ac_abs_srcdir=$ac_srcdir;;
39064 -*)
39065 - case $ac_srcdir in
39066 - .) ac_abs_srcdir=$ac_abs_builddir;;
39067 - [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
39068 - *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
39069 - esac;;
39070 -esac
39071 -case $ac_abs_builddir in
39072 -.) ac_abs_top_srcdir=$ac_top_srcdir;;
39073 -*)
39074 - case $ac_top_srcdir in
39075 - .) ac_abs_top_srcdir=$ac_abs_builddir;;
39076 - [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
39077 - *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
39078 - esac;;
39079 -esac
39080 + :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
39081 +echo "$as_me: executing $ac_file commands" >&6;}
39082 + ;;
39083 + esac
39084
39085
39086 - { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
39087 -echo "$as_me: executing $ac_dest commands" >&6;}
39088 - case $ac_dest in
39089 - depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
39090 + case $ac_file$ac_mode in
39091 + "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
39092 # Strip MF so we end up with the name of the file.
39093 mf=`echo "$mf" | sed -e 's/:.*$//'`
39094 # Check whether this is an Automake generated Makefile or not.
39095 @@ -12180,18 +12493,29 @@ echo "$as_me: executing $ac_dest command
39096 # each Makefile.in and add a new line on top of each file to say so.
39097 # So let's grep whole file.
39098 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
39099 - dirpart=`(dirname "$mf") 2>/dev/null ||
39100 + dirpart=`$as_dirname -- "$mf" ||
39101 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
39102 X"$mf" : 'X\(//\)[^/]' \| \
39103 X"$mf" : 'X\(//\)$' \| \
39104 - X"$mf" : 'X\(/\)' \| \
39105 - . : '\(.\)' 2>/dev/null ||
39106 + X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
39107 echo X"$mf" |
39108 - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
39109 - /^X\(\/\/\)[^/].*/{ s//\1/; q; }
39110 - /^X\(\/\/\)$/{ s//\1/; q; }
39111 - /^X\(\/\).*/{ s//\1/; q; }
39112 - s/.*/./; q'`
39113 + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
39114 + s//\1/
39115 + q
39116 + }
39117 + /^X\(\/\/\)[^/].*/{
39118 + s//\1/
39119 + q
39120 + }
39121 + /^X\(\/\/\)$/{
39122 + s//\1/
39123 + q
39124 + }
39125 + /^X\(\/\).*/{
39126 + s//\1/
39127 + q
39128 + }
39129 + s/.*/./; q'`
39130 else
39131 continue
39132 fi
39133 @@ -12213,58 +12537,84 @@ echo X"$mf" |
39134 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
39135 # Make sure the directory exists.
39136 test -f "$dirpart/$file" && continue
39137 - fdir=`(dirname "$file") 2>/dev/null ||
39138 + fdir=`$as_dirname -- "$file" ||
39139 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
39140 X"$file" : 'X\(//\)[^/]' \| \
39141 X"$file" : 'X\(//\)$' \| \
39142 - X"$file" : 'X\(/\)' \| \
39143 - . : '\(.\)' 2>/dev/null ||
39144 + X"$file" : 'X\(/\)' \| . 2>/dev/null ||
39145 echo X"$file" |
39146 - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
39147 - /^X\(\/\/\)[^/].*/{ s//\1/; q; }
39148 - /^X\(\/\/\)$/{ s//\1/; q; }
39149 - /^X\(\/\).*/{ s//\1/; q; }
39150 - s/.*/./; q'`
39151 - { if $as_mkdir_p; then
39152 - mkdir -p $dirpart/$fdir
39153 - else
39154 - as_dir=$dirpart/$fdir
39155 + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
39156 + s//\1/
39157 + q
39158 + }
39159 + /^X\(\/\/\)[^/].*/{
39160 + s//\1/
39161 + q
39162 + }
39163 + /^X\(\/\/\)$/{
39164 + s//\1/
39165 + q
39166 + }
39167 + /^X\(\/\).*/{
39168 + s//\1/
39169 + q
39170 + }
39171 + s/.*/./; q'`
39172 + { as_dir=$dirpart/$fdir
39173 + case $as_dir in #(
39174 + -*) as_dir=./$as_dir;;
39175 + esac
39176 + test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
39177 as_dirs=
39178 - while test ! -d "$as_dir"; do
39179 - as_dirs="$as_dir $as_dirs"
39180 - as_dir=`(dirname "$as_dir") 2>/dev/null ||
39181 + while :; do
39182 + case $as_dir in #(
39183 + *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
39184 + *) as_qdir=$as_dir;;
39185 + esac
39186 + as_dirs="'$as_qdir' $as_dirs"
39187 + as_dir=`$as_dirname -- "$as_dir" ||
39188 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
39189 X"$as_dir" : 'X\(//\)[^/]' \| \
39190 X"$as_dir" : 'X\(//\)$' \| \
39191 - X"$as_dir" : 'X\(/\)' \| \
39192 - . : '\(.\)' 2>/dev/null ||
39193 + X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
39194 echo X"$as_dir" |
39195 - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
39196 - /^X\(\/\/\)[^/].*/{ s//\1/; q; }
39197 - /^X\(\/\/\)$/{ s//\1/; q; }
39198 - /^X\(\/\).*/{ s//\1/; q; }
39199 - s/.*/./; q'`
39200 + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
39201 + s//\1/
39202 + q
39203 + }
39204 + /^X\(\/\/\)[^/].*/{
39205 + s//\1/
39206 + q
39207 + }
39208 + /^X\(\/\/\)$/{
39209 + s//\1/
39210 + q
39211 + }
39212 + /^X\(\/\).*/{
39213 + s//\1/
39214 + q
39215 + }
39216 + s/.*/./; q'`
39217 + test -d "$as_dir" && break
39218 done
39219 - test ! -n "$as_dirs" || mkdir $as_dirs
39220 - fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
39221 -echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
39222 + test -z "$as_dirs" || eval "mkdir $as_dirs"
39223 + } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
39224 +echo "$as_me: error: cannot create directory $as_dir" >&2;}
39225 { (exit 1); exit 1; }; }; }
39226 -
39227 # echo "creating $dirpart/$file"
39228 echo '# dummy' > "$dirpart/$file"
39229 done
39230 done
39231 ;;
39232 - default )
39233 + "default":C)
39234 case "x$CONFIG_FILES" in
39235 *) sed -e '/POTFILES =/r po/POTFILES' po/Makefile.in > po/Makefile ;;
39236 esac
39237 ;;
39238 +
39239 esac
39240 -done
39241 -_ACEOF
39242 +done # for ac_tag
39243
39244 -cat >>$CONFIG_STATUS <<\_ACEOF
39245
39246 { (exit 0); exit 0; }
39247 _ACEOF
39248 diff -Nrup binutils-2.17/binutils/doc/binutils.info binutils-2.17.atmel.1.3.0/binutils/doc/binutils.info
39249 --- binutils-2.17/binutils/doc/binutils.info 2006-06-23 20:19:48.000000000 +0200
39250 +++ binutils-2.17.atmel.1.3.0/binutils/doc/binutils.info 2007-03-26 10:34:44.000000000 +0200
39251 @@ -1,5 +1,7 @@
39252 -This is ../.././binutils/doc/binutils.info, produced by makeinfo
39253 -version 4.8 from ../.././binutils/doc/binutils.texi.
39254 +This is
39255 +/home/hcegtvedt/svnwork/tools/T0243-GNU_Toolchain/50-Source/binutils/trunk/binutils/doc/binutils.info,
39256 +produced by makeinfo version 4.8 from
39257 +/home/hcegtvedt/svnwork/tools/T0243-GNU_Toolchain/50-Source/binutils/trunk/binutils/doc/binutils.texi.
39258
39259 START-INFO-DIR-ENTRY
39260 * Binutils: (binutils). The GNU binary utilities.
39261 @@ -3803,33 +3805,33 @@ Index
39262
39263 \1f
39264 Tag Table:
39265 -Node: Top\7f1751
39266 -Node: ar\7f3304
39267 -Node: ar cmdline\7f5482
39268 -Node: ar scripts\7f13625
39269 -Node: nm\7f19313
39270 -Node: objcopy\7f27509
39271 -Node: objdump\7f50561
39272 -Node: ranlib\7f65474
39273 -Node: size\7f66229
39274 -Node: strings\7f69076
39275 -Node: strip\7f71426
39276 -Node: c++filt\7f76905
39277 -Ref: c++filt-Footnote-1\7f81833
39278 -Node: addr2line\7f81939
39279 -Node: nlmconv\7f85210
39280 -Node: windres\7f87816
39281 -Node: dlltool\7f93549
39282 -Node: def file format\7f104387
39283 -Node: readelf\7f106125
39284 -Node: Common Options\7f110833
39285 -Node: Selecting The Target System\7f111873
39286 -Node: Target Selection\7f112805
39287 -Node: Architecture Selection\7f114787
39288 -Node: Reporting Bugs\7f115615
39289 -Node: Bug Criteria\7f116394
39290 -Node: Bug Reporting\7f116947
39291 -Node: GNU Free Documentation License\7f124041
39292 -Node: Index\7f143773
39293 +Node: Top\7f1885
39294 +Node: ar\7f3438
39295 +Node: ar cmdline\7f5616
39296 +Node: ar scripts\7f13759
39297 +Node: nm\7f19447
39298 +Node: objcopy\7f27643
39299 +Node: objdump\7f50695
39300 +Node: ranlib\7f65608
39301 +Node: size\7f66363
39302 +Node: strings\7f69210
39303 +Node: strip\7f71560
39304 +Node: c++filt\7f77039
39305 +Ref: c++filt-Footnote-1\7f81967
39306 +Node: addr2line\7f82073
39307 +Node: nlmconv\7f85344
39308 +Node: windres\7f87950
39309 +Node: dlltool\7f93683
39310 +Node: def file format\7f104521
39311 +Node: readelf\7f106259
39312 +Node: Common Options\7f110967
39313 +Node: Selecting The Target System\7f112007
39314 +Node: Target Selection\7f112939
39315 +Node: Architecture Selection\7f114921
39316 +Node: Reporting Bugs\7f115749
39317 +Node: Bug Criteria\7f116528
39318 +Node: Bug Reporting\7f117081
39319 +Node: GNU Free Documentation License\7f124175
39320 +Node: Index\7f143907
39321 \1f
39322 End Tag Table
39323 diff -Nrup binutils-2.17/binutils/doc/Makefile.in binutils-2.17.atmel.1.3.0/binutils/doc/Makefile.in
39324 --- binutils-2.17/binutils/doc/Makefile.in 2006-06-03 06:45:50.000000000 +0200
39325 +++ binutils-2.17.atmel.1.3.0/binutils/doc/Makefile.in 2007-03-26 10:32:10.000000000 +0200
39326 @@ -109,6 +109,7 @@ EXEEXT = @EXEEXT@
39327 EXEEXT_FOR_BUILD = @EXEEXT_FOR_BUILD@
39328 GMOFILES = @GMOFILES@
39329 GMSGFMT = @GMSGFMT@
39330 +GREP = @GREP@
39331 GT_NO = @GT_NO@
39332 GT_YES = @GT_YES@
39333 HDEFINES = @HDEFINES@
39334 @@ -159,9 +160,8 @@ VERSION = @VERSION@
39335 WARN_CFLAGS = @WARN_CFLAGS@
39336 XGETTEXT = @XGETTEXT@
39337 YACC = @YACC@
39338 +YFLAGS = @YFLAGS@
39339 ac_ct_CC = @ac_ct_CC@
39340 -ac_ct_RANLIB = @ac_ct_RANLIB@
39341 -ac_ct_STRIP = @ac_ct_STRIP@
39342 am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
39343 am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
39344 am__include = @am__include@
39345 @@ -178,6 +178,7 @@ build_vendor = @build_vendor@
39346 datadir = @datadir@
39347 datarootdir = @datarootdir@
39348 docdir = @docdir@
39349 +dvidir = @dvidir@
39350 exec_prefix = @exec_prefix@
39351 host = @host@
39352 host_alias = @host_alias@
39353 @@ -191,12 +192,15 @@ install_sh = @install_sh@
39354 l = @l@
39355 libdir = @libdir@
39356 libexecdir = @libexecdir@
39357 +localedir = @localedir@
39358 localstatedir = @localstatedir@
39359 mandir = @mandir@
39360 mkdir_p = @mkdir_p@
39361 oldincludedir = @oldincludedir@
39362 +pdfdir = @pdfdir@
39363 prefix = @prefix@
39364 program_transform_name = @program_transform_name@
39365 +psdir = @psdir@
39366 sbindir = @sbindir@
39367 sharedstatedir = @sharedstatedir@
39368 sysconfdir = @sysconfdir@
39369 @@ -368,10 +372,13 @@ dist-info: $(INFO_DEPS)
39370 $(srcdir)/*) base=`echo "$$base" | sed "s|^$$srcdirstrip/||"`;; \
39371 esac; \
39372 if test -f $$base; then d=.; else d=$(srcdir); fi; \
39373 - for file in $$d/$$base*; do \
39374 - relfile=`expr "$$file" : "$$d/\(.*\)"`; \
39375 - test -f $(distdir)/$$relfile || \
39376 - cp -p $$file $(distdir)/$$relfile; \
39377 + base_i=`echo "$$base" | sed 's|\.info$$||;s|$$|.i|'`; \
39378 + 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 \
39379 + if test -f $$file; then \
39380 + relfile=`expr "$$file" : "$$d/\(.*\)"`; \
39381 + test -f $(distdir)/$$relfile || \
39382 + cp -p $$file $(distdir)/$$relfile; \
39383 + else :; fi; \
39384 done; \
39385 done
39386
39387 diff -Nrup binutils-2.17/binutils/Makefile.am binutils-2.17.atmel.1.3.0/binutils/Makefile.am
39388 --- binutils-2.17/binutils/Makefile.am 2006-04-06 23:49:26.000000000 +0200
39389 +++ binutils-2.17.atmel.1.3.0/binutils/Makefile.am 2007-03-26 10:20:22.000000000 +0200
39390 @@ -511,7 +511,7 @@ readelf.o: readelf.c dwarf.h ../bfd/bfd.
39391 $(INCDIR)/symcat.h $(INCDIR)/elf/dwarf2.h $(INCDIR)/elf/common.h \
39392 $(INCDIR)/elf/external.h $(INCDIR)/elf/internal.h $(INCDIR)/elf/alpha.h \
39393 $(INCDIR)/elf/reloc-macros.h $(INCDIR)/elf/arc.h $(INCDIR)/elf/arm.h \
39394 - $(INCDIR)/elf/avr.h $(INCDIR)/elf/bfin.h $(INCDIR)/elf/cris.h \
39395 + $(INCDIR)/elf/avr.h $(INCDIR)/elf/avr32.h $(INCDIR)/elf/bfin.h $(INCDIR)/elf/cris.h \
39396 $(INCDIR)/elf/d10v.h $(INCDIR)/elf/d30v.h $(INCDIR)/elf/dlx.h \
39397 $(INCDIR)/elf/fr30.h $(INCDIR)/elf/frv.h $(INCDIR)/elf/h8.h \
39398 $(INCDIR)/elf/hppa.h $(INCDIR)/elf/i386.h $(INCDIR)/elf/i370.h \
39399 diff -Nrup binutils-2.17/binutils/Makefile.in binutils-2.17.atmel.1.3.0/binutils/Makefile.in
39400 --- binutils-2.17/binutils/Makefile.in 2006-06-02 04:21:08.000000000 +0200
39401 +++ binutils-2.17.atmel.1.3.0/binutils/Makefile.in 2007-03-26 10:32:10.000000000 +0200
39402 @@ -266,6 +266,7 @@ EXEEXT = @EXEEXT@
39403 EXEEXT_FOR_BUILD = @EXEEXT_FOR_BUILD@
39404 GMOFILES = @GMOFILES@
39405 GMSGFMT = @GMSGFMT@
39406 +GREP = @GREP@
39407 GT_NO = @GT_NO@
39408 GT_YES = @GT_YES@
39409 HDEFINES = @HDEFINES@
39410 @@ -316,9 +317,8 @@ VERSION = @VERSION@
39411 WARN_CFLAGS = @WARN_CFLAGS@
39412 XGETTEXT = @XGETTEXT@
39413 YACC = `if [ -f ../bison/bison ]; then echo ../bison/bison -y -L$(srcdir)/../bison/; else echo @YACC@; fi`
39414 +YFLAGS = -d
39415 ac_ct_CC = @ac_ct_CC@
39416 -ac_ct_RANLIB = @ac_ct_RANLIB@
39417 -ac_ct_STRIP = @ac_ct_STRIP@
39418 am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
39419 am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
39420 am__include = @am__include@
39421 @@ -335,6 +335,7 @@ build_vendor = @build_vendor@
39422 datadir = @datadir@
39423 datarootdir = @datarootdir@
39424 docdir = @docdir@
39425 +dvidir = @dvidir@
39426 exec_prefix = @exec_prefix@
39427 host = @host@
39428 host_alias = @host_alias@
39429 @@ -348,12 +349,15 @@ install_sh = @install_sh@
39430 l = @l@
39431 libdir = @libdir@
39432 libexecdir = @libexecdir@
39433 +localedir = @localedir@
39434 localstatedir = @localstatedir@
39435 mandir = @mandir@
39436 mkdir_p = @mkdir_p@
39437 oldincludedir = @oldincludedir@
39438 +pdfdir = @pdfdir@
39439 prefix = @prefix@
39440 program_transform_name = @program_transform_name@
39441 +psdir = @psdir@
39442 sbindir = @sbindir@
39443 sharedstatedir = @sharedstatedir@
39444 sysconfdir = @sysconfdir@
39445 @@ -365,7 +369,6 @@ target_vendor = @target_vendor@
39446 AUTOMAKE_OPTIONS = cygnus dejagnu
39447 SUBDIRS = doc po
39448 tooldir = $(exec_prefix)/$(target_alias)
39449 -YFLAGS = -d
39450 AM_CFLAGS = $(WARN_CFLAGS)
39451
39452 # these two are almost the same program
39453 @@ -1264,7 +1267,7 @@ readelf.o: readelf.c dwarf.h ../bfd/bfd.
39454 $(INCDIR)/symcat.h $(INCDIR)/elf/dwarf2.h $(INCDIR)/elf/common.h \
39455 $(INCDIR)/elf/external.h $(INCDIR)/elf/internal.h $(INCDIR)/elf/alpha.h \
39456 $(INCDIR)/elf/reloc-macros.h $(INCDIR)/elf/arc.h $(INCDIR)/elf/arm.h \
39457 - $(INCDIR)/elf/avr.h $(INCDIR)/elf/bfin.h $(INCDIR)/elf/cris.h \
39458 + $(INCDIR)/elf/avr.h $(INCDIR)/elf/avr32.h $(INCDIR)/elf/bfin.h $(INCDIR)/elf/cris.h \
39459 $(INCDIR)/elf/d10v.h $(INCDIR)/elf/d30v.h $(INCDIR)/elf/dlx.h \
39460 $(INCDIR)/elf/fr30.h $(INCDIR)/elf/frv.h $(INCDIR)/elf/h8.h \
39461 $(INCDIR)/elf/hppa.h $(INCDIR)/elf/i386.h $(INCDIR)/elf/i370.h \
39462 diff -Nrup binutils-2.17/binutils/readelf.c binutils-2.17.atmel.1.3.0/binutils/readelf.c
39463 --- binutils-2.17/binutils/readelf.c 2006-03-10 18:20:28.000000000 +0100
39464 +++ binutils-2.17.atmel.1.3.0/binutils/readelf.c 2007-03-26 10:20:22.000000000 +0200
39465 @@ -71,6 +71,7 @@
39466 #include "elf/arc.h"
39467 #include "elf/arm.h"
39468 #include "elf/avr.h"
39469 +#include "elf/avr32.h"
39470 #include "elf/bfin.h"
39471 #include "elf/cris.h"
39472 #include "elf/d10v.h"
39473 @@ -590,6 +591,7 @@ guess_is_rela (unsigned long e_machine)
39474 case EM_MCORE:
39475 case EM_IA_64:
39476 case EM_AVR:
39477 + case EM_AVR32:
39478 case EM_AVR_OLD:
39479 case EM_CRIS:
39480 case EM_860:
39481 @@ -959,6 +961,10 @@ dump_relocations (FILE *file,
39482 rtype = elf_avr_reloc_type (type);
39483 break;
39484
39485 + case EM_AVR32:
39486 + rtype = elf_avr32_reloc_type (type);
39487 + break;
39488 +
39489 case EM_OLD_SPARCV9:
39490 case EM_SPARC32PLUS:
39491 case EM_SPARCV9:
39492 @@ -1670,6 +1676,7 @@ get_machine_name (unsigned e_machine)
39493 case EM_VAX: return "Digital VAX";
39494 case EM_AVR_OLD:
39495 case EM_AVR: return "Atmel AVR 8-bit microcontroller";
39496 + case EM_AVR32: return "Atmel AVR32";
39497 case EM_CRIS: return "Axis Communications 32-bit embedded processor";
39498 case EM_JAVELIN: return "Infineon Technologies 32-bit embedded cpu";
39499 case EM_FIREPATH: return "Element 14 64-bit DSP processor";
39500 diff -Nrup binutils-2.17/configure binutils-2.17.atmel.1.3.0/configure
39501 --- binutils-2.17/configure 2006-04-06 23:49:25.000000000 +0200
39502 +++ binutils-2.17.atmel.1.3.0/configure 2007-03-26 10:30:30.000000000 +0200
39503 @@ -899,7 +899,7 @@ host_libs="intl mmalloc libiberty opcode
39504 # know that we are building the simulator.
39505 # binutils, gas and ld appear in that order because it makes sense to run
39506 # "make check" in that particular order.
39507 -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"
39508 +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"
39509
39510 # libgcj represents the runtime libraries only used by gcj.
39511 libgcj="target-libffi \
39512 @@ -1064,6 +1064,9 @@ unsupported_languages=
39513 # exist yet.
39514
39515 case "${host}" in
39516 + avr32*-*-*)
39517 + noconfigdirs="$noconfigdirs readline gdb"
39518 + ;;
39519 hppa*64*-*-*)
39520 noconfigdirs="$noconfigdirs byacc"
39521 ;;
39522 @@ -1863,7 +1866,7 @@ else
39523 # Extract the first word of "gcc", so it can be a program name with args.
39524 set dummy gcc; ac_word=$2
39525 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
39526 -echo "configure:1867: checking for $ac_word" >&5
39527 +echo "configure:1870: 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 @@ -1893,7 +1896,7 @@ if test -z "$CC"; then
39532 # Extract the first word of "cc", so it can be a program name with args.
39533 set dummy cc; ac_word=$2
39534 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
39535 -echo "configure:1897: checking for $ac_word" >&5
39536 +echo "configure:1900: 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 @@ -1944,7 +1947,7 @@ fi
39541 # Extract the first word of "cl", so it can be a program name with args.
39542 set dummy cl; ac_word=$2
39543 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
39544 -echo "configure:1948: checking for $ac_word" >&5
39545 +echo "configure:1951: checking for $ac_word" >&5
39546 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
39547 echo $ac_n "(cached) $ac_c" 1>&6
39548 else
39549 @@ -1976,7 +1979,7 @@ fi
39550 fi
39551
39552 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
39553 -echo "configure:1980: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
39554 +echo "configure:1983: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
39555
39556 ac_ext=c
39557 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
39558 @@ -1987,12 +1990,12 @@ cross_compiling=$ac_cv_prog_cc_cross
39559
39560 cat > conftest.$ac_ext << EOF
39561
39562 -#line 1991 "configure"
39563 +#line 1994 "configure"
39564 #include "confdefs.h"
39565
39566 main(){return(0);}
39567 EOF
39568 -if { (eval echo configure:1996: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
39569 +if { (eval echo configure:1999: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
39570 ac_cv_prog_cc_works=yes
39571 # If we can't run a trivial program, we are probably using a cross compiler.
39572 if (./conftest; exit) 2>/dev/null; then
39573 @@ -2018,12 +2021,12 @@ if test $ac_cv_prog_cc_works = no; then
39574 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
39575 fi
39576 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
39577 -echo "configure:2022: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
39578 +echo "configure:2025: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
39579 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
39580 cross_compiling=$ac_cv_prog_cc_cross
39581
39582 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
39583 -echo "configure:2027: checking whether we are using GNU C" >&5
39584 +echo "configure:2030: checking whether we are using GNU C" >&5
39585 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
39586 echo $ac_n "(cached) $ac_c" 1>&6
39587 else
39588 @@ -2032,7 +2035,7 @@ else
39589 yes;
39590 #endif
39591 EOF
39592 -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
39593 +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
39594 ac_cv_prog_gcc=yes
39595 else
39596 ac_cv_prog_gcc=no
39597 @@ -2051,7 +2054,7 @@ ac_test_CFLAGS="${CFLAGS+set}"
39598 ac_save_CFLAGS="$CFLAGS"
39599 CFLAGS=
39600 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
39601 -echo "configure:2055: checking whether ${CC-cc} accepts -g" >&5
39602 +echo "configure:2058: checking whether ${CC-cc} accepts -g" >&5
39603 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
39604 echo $ac_n "(cached) $ac_c" 1>&6
39605 else
39606 @@ -2118,7 +2121,7 @@ fi
39607 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
39608 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
39609 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
39610 -echo "configure:2122: checking for $ac_word" >&5
39611 +echo "configure:2125: 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 @@ -2150,7 +2153,7 @@ if test -n "$ac_tool_prefix"; then
39616 # Extract the first word of "gnatbind", so it can be a program name with args.
39617 set dummy gnatbind; ac_word=$2
39618 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
39619 -echo "configure:2154: checking for $ac_word" >&5
39620 +echo "configure:2157: checking for $ac_word" >&5
39621 if eval "test \"`echo '$''{'ac_cv_prog_GNATBIND'+set}'`\" = set"; then
39622 echo $ac_n "(cached) $ac_c" 1>&6
39623 else
39624 @@ -2183,7 +2186,7 @@ fi
39625 fi
39626
39627 echo $ac_n "checking whether compiler driver understands Ada""... $ac_c" 1>&6
39628 -echo "configure:2187: checking whether compiler driver understands Ada" >&5
39629 +echo "configure:2190: checking whether compiler driver understands Ada" >&5
39630 if eval "test \"`echo '$''{'acx_cv_cc_gcc_supports_ada'+set}'`\" = set"; then
39631 echo $ac_n "(cached) $ac_c" 1>&6
39632 else
39633 @@ -2215,7 +2218,7 @@ else
39634 fi
39635
39636 echo $ac_n "checking how to compare bootstrapped objects""... $ac_c" 1>&6
39637 -echo "configure:2219: checking how to compare bootstrapped objects" >&5
39638 +echo "configure:2222: checking how to compare bootstrapped objects" >&5
39639 if eval "test \"`echo '$''{'gcc_cv_prog_cmp_skip'+set}'`\" = set"; then
39640 echo $ac_n "(cached) $ac_c" 1>&6
39641 else
39642 @@ -2313,9 +2316,9 @@ saved_CFLAGS="$CFLAGS"
39643 CFLAGS="$CFLAGS $gmpinc"
39644 # Check GMP actually works
39645 echo $ac_n "checking for correct version of gmp.h""... $ac_c" 1>&6
39646 -echo "configure:2317: checking for correct version of gmp.h" >&5
39647 +echo "configure:2320: checking for correct version of gmp.h" >&5
39648 cat > conftest.$ac_ext <<EOF
39649 -#line 2319 "configure"
39650 +#line 2322 "configure"
39651 #include "confdefs.h"
39652 #include "gmp.h"
39653 int main() {
39654 @@ -2326,7 +2329,7 @@ choke me
39655
39656 ; return 0; }
39657 EOF
39658 -if { (eval echo configure:2330: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
39659 +if { (eval echo configure:2333: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
39660 rm -rf conftest*
39661 echo "$ac_t""yes" 1>&6
39662 else
39663 @@ -2339,12 +2342,12 @@ rm -f conftest*
39664
39665 if test x"$have_gmp" = xyes; then
39666 echo $ac_n "checking for MPFR""... $ac_c" 1>&6
39667 -echo "configure:2343: checking for MPFR" >&5
39668 +echo "configure:2346: checking for MPFR" >&5
39669
39670 saved_LIBS="$LIBS"
39671 LIBS="$LIBS $gmplibs"
39672 cat > conftest.$ac_ext <<EOF
39673 -#line 2348 "configure"
39674 +#line 2351 "configure"
39675 #include "confdefs.h"
39676 #include <gmp.h>
39677 #include <mpfr.h>
39678 @@ -2352,7 +2355,7 @@ int main() {
39679 mpfr_t n; mpfr_init(n);
39680 ; return 0; }
39681 EOF
39682 -if { (eval echo configure:2356: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
39683 +if { (eval echo configure:2359: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
39684 rm -rf conftest*
39685 echo "$ac_t""yes" 1>&6
39686 else
39687 @@ -3403,7 +3406,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:3407: checking for $ac_word" >&5
39692 +echo "configure:3410: checking for $ac_word" >&5
39693 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
39694 echo $ac_n "(cached) $ac_c" 1>&6
39695 else
39696 @@ -3443,7 +3446,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:3447: checking for $ac_word" >&5
39701 +echo "configure:3450: checking for $ac_word" >&5
39702 if eval "test \"`echo '$''{'ac_cv_prog_BISON'+set}'`\" = set"; then
39703 echo $ac_n "(cached) $ac_c" 1>&6
39704 else
39705 @@ -3482,7 +3485,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:3486: checking for $ac_word" >&5
39710 +echo "configure:3489: checking for $ac_word" >&5
39711 if eval "test \"`echo '$''{'ac_cv_prog_M4'+set}'`\" = set"; then
39712 echo $ac_n "(cached) $ac_c" 1>&6
39713 else
39714 @@ -3521,7 +3524,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:3525: checking for $ac_word" >&5
39719 +echo "configure:3528: checking for $ac_word" >&5
39720 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
39721 echo $ac_n "(cached) $ac_c" 1>&6
39722 else
39723 @@ -3561,7 +3564,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:3565: checking for $ac_word" >&5
39728 +echo "configure:3568: checking for $ac_word" >&5
39729 if eval "test \"`echo '$''{'ac_cv_prog_FLEX'+set}'`\" = set"; then
39730 echo $ac_n "(cached) $ac_c" 1>&6
39731 else
39732 @@ -3600,7 +3603,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:3604: checking for $ac_word" >&5
39737 +echo "configure:3607: checking for $ac_word" >&5
39738 if eval "test \"`echo '$''{'ac_cv_prog_MAKEINFO'+set}'`\" = set"; then
39739 echo $ac_n "(cached) $ac_c" 1>&6
39740 else
39741 @@ -3653,7 +3656,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:3657: checking for $ac_word" >&5
39746 +echo "configure:3660: checking for $ac_word" >&5
39747 if eval "test \"`echo '$''{'ac_cv_prog_EXPECT'+set}'`\" = set"; then
39748 echo $ac_n "(cached) $ac_c" 1>&6
39749 else
39750 @@ -3694,7 +3697,7 @@ do
39751 # Extract the first word of "$ac_prog", so it can be a program name with args.
39752 set dummy $ac_prog; ac_word=$2
39753 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
39754 -echo "configure:3698: checking for $ac_word" >&5
39755 +echo "configure:3701: checking for $ac_word" >&5
39756 if eval "test \"`echo '$''{'ac_cv_prog_RUNTEST'+set}'`\" = set"; then
39757 echo $ac_n "(cached) $ac_c" 1>&6
39758 else
39759 @@ -3742,7 +3745,7 @@ test -n "$target_alias" && ncn_target_to
39760 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
39761 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
39762 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
39763 -echo "configure:3746: checking for $ac_word" >&5
39764 +echo "configure:3749: 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 @@ -3773,7 +3776,7 @@ fi
39769 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
39770 set dummy ${ncn_progname}; ac_word=$2
39771 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
39772 -echo "configure:3777: checking for $ac_word" >&5
39773 +echo "configure:3780: checking for $ac_word" >&5
39774 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
39775 echo $ac_n "(cached) $ac_c" 1>&6
39776 else
39777 @@ -3817,7 +3820,7 @@ fi
39778 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
39779 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
39780 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
39781 -echo "configure:3821: checking for $ac_word" >&5
39782 +echo "configure:3824: 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 @@ -3848,7 +3851,7 @@ fi
39787 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
39788 set dummy ${ncn_progname}; ac_word=$2
39789 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
39790 -echo "configure:3852: checking for $ac_word" >&5
39791 +echo "configure:3855: checking for $ac_word" >&5
39792 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
39793 echo $ac_n "(cached) $ac_c" 1>&6
39794 else
39795 @@ -3892,7 +3895,7 @@ fi
39796 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
39797 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
39798 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
39799 -echo "configure:3896: checking for $ac_word" >&5
39800 +echo "configure:3899: 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 @@ -3923,7 +3926,7 @@ fi
39805 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
39806 set dummy ${ncn_progname}; ac_word=$2
39807 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
39808 -echo "configure:3927: checking for $ac_word" >&5
39809 +echo "configure:3930: checking for $ac_word" >&5
39810 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
39811 echo $ac_n "(cached) $ac_c" 1>&6
39812 else
39813 @@ -3967,7 +3970,7 @@ fi
39814 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
39815 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
39816 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
39817 -echo "configure:3971: checking for $ac_word" >&5
39818 +echo "configure:3974: 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 @@ -3998,7 +4001,7 @@ fi
39823 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
39824 set dummy ${ncn_progname}; ac_word=$2
39825 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
39826 -echo "configure:4002: checking for $ac_word" >&5
39827 +echo "configure:4005: checking for $ac_word" >&5
39828 if eval "test \"`echo '$''{'ac_cv_prog_LD'+set}'`\" = set"; then
39829 echo $ac_n "(cached) $ac_c" 1>&6
39830 else
39831 @@ -4042,7 +4045,7 @@ fi
39832 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
39833 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
39834 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
39835 -echo "configure:4046: checking for $ac_word" >&5
39836 +echo "configure:4049: 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 @@ -4073,7 +4076,7 @@ fi
39841 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
39842 set dummy ${ncn_progname}; ac_word=$2
39843 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
39844 -echo "configure:4077: checking for $ac_word" >&5
39845 +echo "configure:4080: checking for $ac_word" >&5
39846 if eval "test \"`echo '$''{'ac_cv_prog_LIPO'+set}'`\" = set"; then
39847 echo $ac_n "(cached) $ac_c" 1>&6
39848 else
39849 @@ -4117,7 +4120,7 @@ fi
39850 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
39851 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
39852 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
39853 -echo "configure:4121: checking for $ac_word" >&5
39854 +echo "configure:4124: 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 @@ -4148,7 +4151,7 @@ fi
39859 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
39860 set dummy ${ncn_progname}; ac_word=$2
39861 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
39862 -echo "configure:4152: checking for $ac_word" >&5
39863 +echo "configure:4155: checking for $ac_word" >&5
39864 if eval "test \"`echo '$''{'ac_cv_prog_NM'+set}'`\" = set"; then
39865 echo $ac_n "(cached) $ac_c" 1>&6
39866 else
39867 @@ -4192,7 +4195,7 @@ fi
39868 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
39869 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
39870 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
39871 -echo "configure:4196: checking for $ac_word" >&5
39872 +echo "configure:4199: 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 @@ -4223,7 +4226,7 @@ fi
39877 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
39878 set dummy ${ncn_progname}; ac_word=$2
39879 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
39880 -echo "configure:4227: checking for $ac_word" >&5
39881 +echo "configure:4230: checking for $ac_word" >&5
39882 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
39883 echo $ac_n "(cached) $ac_c" 1>&6
39884 else
39885 @@ -4262,7 +4265,7 @@ fi
39886 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
39887 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
39888 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
39889 -echo "configure:4266: checking for $ac_word" >&5
39890 +echo "configure:4269: 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 @@ -4293,7 +4296,7 @@ fi
39895 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
39896 set dummy ${ncn_progname}; ac_word=$2
39897 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
39898 -echo "configure:4297: checking for $ac_word" >&5
39899 +echo "configure:4300: checking for $ac_word" >&5
39900 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
39901 echo $ac_n "(cached) $ac_c" 1>&6
39902 else
39903 @@ -4332,7 +4335,7 @@ fi
39904 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
39905 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
39906 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
39907 -echo "configure:4336: checking for $ac_word" >&5
39908 +echo "configure:4339: 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 @@ -4363,7 +4366,7 @@ fi
39913 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
39914 set dummy ${ncn_progname}; ac_word=$2
39915 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
39916 -echo "configure:4367: checking for $ac_word" >&5
39917 +echo "configure:4370: checking for $ac_word" >&5
39918 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
39919 echo $ac_n "(cached) $ac_c" 1>&6
39920 else
39921 @@ -4407,7 +4410,7 @@ fi
39922 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
39923 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
39924 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
39925 -echo "configure:4411: checking for $ac_word" >&5
39926 +echo "configure:4414: 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 @@ -4438,7 +4441,7 @@ fi
39931 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
39932 set dummy ${ncn_progname}; ac_word=$2
39933 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
39934 -echo "configure:4442: checking for $ac_word" >&5
39935 +echo "configure:4445: checking for $ac_word" >&5
39936 if eval "test \"`echo '$''{'ac_cv_prog_OBJCOPY'+set}'`\" = set"; then
39937 echo $ac_n "(cached) $ac_c" 1>&6
39938 else
39939 @@ -4482,7 +4485,7 @@ fi
39940 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
39941 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
39942 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
39943 -echo "configure:4486: checking for $ac_word" >&5
39944 +echo "configure:4489: 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 @@ -4513,7 +4516,7 @@ fi
39949 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
39950 set dummy ${ncn_progname}; ac_word=$2
39951 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
39952 -echo "configure:4517: checking for $ac_word" >&5
39953 +echo "configure:4520: checking for $ac_word" >&5
39954 if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP'+set}'`\" = set"; then
39955 echo $ac_n "(cached) $ac_c" 1>&6
39956 else
39957 @@ -4577,7 +4580,7 @@ fi
39958 if test -n "$with_build_time_tools"; then
39959 for ncn_progname in cc gcc; do
39960 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
39961 -echo "configure:4581: checking for ${ncn_progname} in $with_build_time_tools" >&5
39962 +echo "configure:4584: checking for ${ncn_progname} in $with_build_time_tools" >&5
39963 if test -x $with_build_time_tools/${ncn_progname}; then
39964 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
39965 echo "$ac_t""yes" 1>&6
39966 @@ -4594,7 +4597,7 @@ if test -z "$ac_cv_prog_CC_FOR_TARGET";
39967 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
39968 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
39969 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
39970 -echo "configure:4598: checking for $ac_word" >&5
39971 +echo "configure:4601: 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 @@ -4625,7 +4628,7 @@ fi
39976 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
39977 set dummy ${ncn_progname}; ac_word=$2
39978 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
39979 -echo "configure:4629: checking for $ac_word" >&5
39980 +echo "configure:4632: checking for $ac_word" >&5
39981 if eval "test \"`echo '$''{'ac_cv_prog_CC_FOR_TARGET'+set}'`\" = set"; then
39982 echo $ac_n "(cached) $ac_c" 1>&6
39983 else
39984 @@ -4668,7 +4671,7 @@ fi
39985 if test -n "$with_build_time_tools"; then
39986 for ncn_progname in c++ g++ cxx gxx; do
39987 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
39988 -echo "configure:4672: checking for ${ncn_progname} in $with_build_time_tools" >&5
39989 +echo "configure:4675: checking for ${ncn_progname} in $with_build_time_tools" >&5
39990 if test -x $with_build_time_tools/${ncn_progname}; then
39991 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
39992 echo "$ac_t""yes" 1>&6
39993 @@ -4685,7 +4688,7 @@ if test -z "$ac_cv_prog_CXX_FOR_TARGET";
39994 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
39995 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
39996 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
39997 -echo "configure:4689: checking for $ac_word" >&5
39998 +echo "configure:4692: 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 @@ -4716,7 +4719,7 @@ fi
40003 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
40004 set dummy ${ncn_progname}; ac_word=$2
40005 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
40006 -echo "configure:4720: checking for $ac_word" >&5
40007 +echo "configure:4723: checking for $ac_word" >&5
40008 if eval "test \"`echo '$''{'ac_cv_prog_CXX_FOR_TARGET'+set}'`\" = set"; then
40009 echo $ac_n "(cached) $ac_c" 1>&6
40010 else
40011 @@ -4759,7 +4762,7 @@ fi
40012 if test -n "$with_build_time_tools"; then
40013 for ncn_progname in gcc; do
40014 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
40015 -echo "configure:4763: checking for ${ncn_progname} in $with_build_time_tools" >&5
40016 +echo "configure:4766: checking for ${ncn_progname} in $with_build_time_tools" >&5
40017 if test -x $with_build_time_tools/${ncn_progname}; then
40018 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
40019 echo "$ac_t""yes" 1>&6
40020 @@ -4776,7 +4779,7 @@ if test -z "$ac_cv_prog_GCC_FOR_TARGET";
40021 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
40022 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
40023 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
40024 -echo "configure:4780: checking for $ac_word" >&5
40025 +echo "configure:4783: 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 @@ -4807,7 +4810,7 @@ fi
40030 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
40031 set dummy ${ncn_progname}; ac_word=$2
40032 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
40033 -echo "configure:4811: checking for $ac_word" >&5
40034 +echo "configure:4814: checking for $ac_word" >&5
40035 if eval "test \"`echo '$''{'ac_cv_prog_GCC_FOR_TARGET'+set}'`\" = set"; then
40036 echo $ac_n "(cached) $ac_c" 1>&6
40037 else
40038 @@ -4845,7 +4848,7 @@ fi
40039 if test -n "$with_build_time_tools"; then
40040 for ncn_progname in gcj; do
40041 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
40042 -echo "configure:4849: checking for ${ncn_progname} in $with_build_time_tools" >&5
40043 +echo "configure:4852: checking for ${ncn_progname} in $with_build_time_tools" >&5
40044 if test -x $with_build_time_tools/${ncn_progname}; then
40045 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
40046 echo "$ac_t""yes" 1>&6
40047 @@ -4862,7 +4865,7 @@ if test -z "$ac_cv_prog_GCJ_FOR_TARGET";
40048 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
40049 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
40050 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
40051 -echo "configure:4866: checking for $ac_word" >&5
40052 +echo "configure:4869: 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 @@ -4893,7 +4896,7 @@ fi
40057 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
40058 set dummy ${ncn_progname}; ac_word=$2
40059 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
40060 -echo "configure:4897: checking for $ac_word" >&5
40061 +echo "configure:4900: checking for $ac_word" >&5
40062 if eval "test \"`echo '$''{'ac_cv_prog_GCJ_FOR_TARGET'+set}'`\" = set"; then
40063 echo $ac_n "(cached) $ac_c" 1>&6
40064 else
40065 @@ -4936,7 +4939,7 @@ fi
40066 if test -n "$with_build_time_tools"; then
40067 for ncn_progname in gfortran; do
40068 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
40069 -echo "configure:4940: checking for ${ncn_progname} in $with_build_time_tools" >&5
40070 +echo "configure:4943: checking for ${ncn_progname} in $with_build_time_tools" >&5
40071 if test -x $with_build_time_tools/${ncn_progname}; then
40072 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
40073 echo "$ac_t""yes" 1>&6
40074 @@ -4953,7 +4956,7 @@ if test -z "$ac_cv_prog_GFORTRAN_FOR_TAR
40075 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
40076 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
40077 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
40078 -echo "configure:4957: checking for $ac_word" >&5
40079 +echo "configure:4960: 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 @@ -4984,7 +4987,7 @@ fi
40084 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
40085 set dummy ${ncn_progname}; ac_word=$2
40086 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
40087 -echo "configure:4988: checking for $ac_word" >&5
40088 +echo "configure:4991: checking for $ac_word" >&5
40089 if eval "test \"`echo '$''{'ac_cv_prog_GFORTRAN_FOR_TARGET'+set}'`\" = set"; then
40090 echo $ac_n "(cached) $ac_c" 1>&6
40091 else
40092 @@ -5091,7 +5094,7 @@ rm conftest.c
40093 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
40094 if test -n "$with_build_time_tools"; then
40095 echo $ac_n "checking for ar in $with_build_time_tools""... $ac_c" 1>&6
40096 -echo "configure:5095: checking for ar in $with_build_time_tools" >&5
40097 +echo "configure:5098: checking for ar in $with_build_time_tools" >&5
40098 if test -x $with_build_time_tools/ar; then
40099 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
40100 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
40101 @@ -5109,7 +5112,7 @@ if test -z "$ac_cv_path_AR_FOR_TARGET" ;
40102 # Extract the first word of "ar", so it can be a program name with args.
40103 set dummy ar; ac_word=$2
40104 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
40105 -echo "configure:5113: checking for $ac_word" >&5
40106 +echo "configure:5116: checking for $ac_word" >&5
40107 if eval "test \"`echo '$''{'ac_cv_path_AR_FOR_TARGET'+set}'`\" = set"; then
40108 echo $ac_n "(cached) $ac_c" 1>&6
40109 else
40110 @@ -5146,7 +5149,7 @@ if test -z "$ac_cv_path_AR_FOR_TARGET" ;
40111 if test -n "$with_build_time_tools"; then
40112 for ncn_progname in ar; do
40113 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
40114 -echo "configure:5150: checking for ${ncn_progname} in $with_build_time_tools" >&5
40115 +echo "configure:5153: checking for ${ncn_progname} in $with_build_time_tools" >&5
40116 if test -x $with_build_time_tools/${ncn_progname}; then
40117 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
40118 echo "$ac_t""yes" 1>&6
40119 @@ -5163,7 +5166,7 @@ if test -z "$ac_cv_prog_AR_FOR_TARGET";
40120 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
40121 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
40122 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
40123 -echo "configure:5167: checking for $ac_word" >&5
40124 +echo "configure:5170: 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 @@ -5194,7 +5197,7 @@ fi
40129 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
40130 set dummy ${ncn_progname}; ac_word=$2
40131 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
40132 -echo "configure:5198: checking for $ac_word" >&5
40133 +echo "configure:5201: checking for $ac_word" >&5
40134 if eval "test \"`echo '$''{'ac_cv_prog_AR_FOR_TARGET'+set}'`\" = set"; then
40135 echo $ac_n "(cached) $ac_c" 1>&6
40136 else
40137 @@ -5244,7 +5247,7 @@ fi
40138 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
40139 if test -n "$with_build_time_tools"; then
40140 echo $ac_n "checking for as in $with_build_time_tools""... $ac_c" 1>&6
40141 -echo "configure:5248: checking for as in $with_build_time_tools" >&5
40142 +echo "configure:5251: checking for as in $with_build_time_tools" >&5
40143 if test -x $with_build_time_tools/as; then
40144 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
40145 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
40146 @@ -5262,7 +5265,7 @@ if test -z "$ac_cv_path_AS_FOR_TARGET" ;
40147 # Extract the first word of "as", so it can be a program name with args.
40148 set dummy as; ac_word=$2
40149 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
40150 -echo "configure:5266: checking for $ac_word" >&5
40151 +echo "configure:5269: checking for $ac_word" >&5
40152 if eval "test \"`echo '$''{'ac_cv_path_AS_FOR_TARGET'+set}'`\" = set"; then
40153 echo $ac_n "(cached) $ac_c" 1>&6
40154 else
40155 @@ -5299,7 +5302,7 @@ if test -z "$ac_cv_path_AS_FOR_TARGET" ;
40156 if test -n "$with_build_time_tools"; then
40157 for ncn_progname in as; do
40158 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
40159 -echo "configure:5303: checking for ${ncn_progname} in $with_build_time_tools" >&5
40160 +echo "configure:5306: checking for ${ncn_progname} in $with_build_time_tools" >&5
40161 if test -x $with_build_time_tools/${ncn_progname}; then
40162 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
40163 echo "$ac_t""yes" 1>&6
40164 @@ -5316,7 +5319,7 @@ if test -z "$ac_cv_prog_AS_FOR_TARGET";
40165 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
40166 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
40167 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
40168 -echo "configure:5320: checking for $ac_word" >&5
40169 +echo "configure:5323: 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 @@ -5347,7 +5350,7 @@ fi
40174 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
40175 set dummy ${ncn_progname}; ac_word=$2
40176 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
40177 -echo "configure:5351: checking for $ac_word" >&5
40178 +echo "configure:5354: checking for $ac_word" >&5
40179 if eval "test \"`echo '$''{'ac_cv_prog_AS_FOR_TARGET'+set}'`\" = set"; then
40180 echo $ac_n "(cached) $ac_c" 1>&6
40181 else
40182 @@ -5397,7 +5400,7 @@ fi
40183 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
40184 if test -n "$with_build_time_tools"; then
40185 echo $ac_n "checking for dlltool in $with_build_time_tools""... $ac_c" 1>&6
40186 -echo "configure:5401: checking for dlltool in $with_build_time_tools" >&5
40187 +echo "configure:5404: checking for dlltool in $with_build_time_tools" >&5
40188 if test -x $with_build_time_tools/dlltool; then
40189 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
40190 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
40191 @@ -5415,7 +5418,7 @@ if test -z "$ac_cv_path_DLLTOOL_FOR_TARG
40192 # Extract the first word of "dlltool", so it can be a program name with args.
40193 set dummy dlltool; ac_word=$2
40194 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
40195 -echo "configure:5419: checking for $ac_word" >&5
40196 +echo "configure:5422: checking for $ac_word" >&5
40197 if eval "test \"`echo '$''{'ac_cv_path_DLLTOOL_FOR_TARGET'+set}'`\" = set"; then
40198 echo $ac_n "(cached) $ac_c" 1>&6
40199 else
40200 @@ -5452,7 +5455,7 @@ if test -z "$ac_cv_path_DLLTOOL_FOR_TARG
40201 if test -n "$with_build_time_tools"; then
40202 for ncn_progname in dlltool; do
40203 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
40204 -echo "configure:5456: checking for ${ncn_progname} in $with_build_time_tools" >&5
40205 +echo "configure:5459: checking for ${ncn_progname} in $with_build_time_tools" >&5
40206 if test -x $with_build_time_tools/${ncn_progname}; then
40207 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
40208 echo "$ac_t""yes" 1>&6
40209 @@ -5469,7 +5472,7 @@ if test -z "$ac_cv_prog_DLLTOOL_FOR_TARG
40210 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
40211 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
40212 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
40213 -echo "configure:5473: checking for $ac_word" >&5
40214 +echo "configure:5476: 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 @@ -5500,7 +5503,7 @@ fi
40219 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
40220 set dummy ${ncn_progname}; ac_word=$2
40221 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
40222 -echo "configure:5504: checking for $ac_word" >&5
40223 +echo "configure:5507: checking for $ac_word" >&5
40224 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL_FOR_TARGET'+set}'`\" = set"; then
40225 echo $ac_n "(cached) $ac_c" 1>&6
40226 else
40227 @@ -5550,7 +5553,7 @@ fi
40228 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
40229 if test -n "$with_build_time_tools"; then
40230 echo $ac_n "checking for ld in $with_build_time_tools""... $ac_c" 1>&6
40231 -echo "configure:5554: checking for ld in $with_build_time_tools" >&5
40232 +echo "configure:5557: checking for ld in $with_build_time_tools" >&5
40233 if test -x $with_build_time_tools/ld; then
40234 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
40235 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
40236 @@ -5568,7 +5571,7 @@ if test -z "$ac_cv_path_LD_FOR_TARGET" ;
40237 # Extract the first word of "ld", so it can be a program name with args.
40238 set dummy ld; ac_word=$2
40239 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
40240 -echo "configure:5572: checking for $ac_word" >&5
40241 +echo "configure:5575: checking for $ac_word" >&5
40242 if eval "test \"`echo '$''{'ac_cv_path_LD_FOR_TARGET'+set}'`\" = set"; then
40243 echo $ac_n "(cached) $ac_c" 1>&6
40244 else
40245 @@ -5605,7 +5608,7 @@ if test -z "$ac_cv_path_LD_FOR_TARGET" ;
40246 if test -n "$with_build_time_tools"; then
40247 for ncn_progname in ld; do
40248 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
40249 -echo "configure:5609: checking for ${ncn_progname} in $with_build_time_tools" >&5
40250 +echo "configure:5612: checking for ${ncn_progname} in $with_build_time_tools" >&5
40251 if test -x $with_build_time_tools/${ncn_progname}; then
40252 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
40253 echo "$ac_t""yes" 1>&6
40254 @@ -5622,7 +5625,7 @@ if test -z "$ac_cv_prog_LD_FOR_TARGET";
40255 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
40256 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
40257 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
40258 -echo "configure:5626: checking for $ac_word" >&5
40259 +echo "configure:5629: 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 @@ -5653,7 +5656,7 @@ fi
40264 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
40265 set dummy ${ncn_progname}; ac_word=$2
40266 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
40267 -echo "configure:5657: checking for $ac_word" >&5
40268 +echo "configure:5660: checking for $ac_word" >&5
40269 if eval "test \"`echo '$''{'ac_cv_prog_LD_FOR_TARGET'+set}'`\" = set"; then
40270 echo $ac_n "(cached) $ac_c" 1>&6
40271 else
40272 @@ -5703,7 +5706,7 @@ fi
40273 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
40274 if test -n "$with_build_time_tools"; then
40275 echo $ac_n "checking for lipo in $with_build_time_tools""... $ac_c" 1>&6
40276 -echo "configure:5707: checking for lipo in $with_build_time_tools" >&5
40277 +echo "configure:5710: checking for lipo in $with_build_time_tools" >&5
40278 if test -x $with_build_time_tools/lipo; then
40279 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
40280 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
40281 @@ -5721,7 +5724,7 @@ if test -z "$ac_cv_path_LIPO_FOR_TARGET"
40282 # Extract the first word of "lipo", so it can be a program name with args.
40283 set dummy lipo; ac_word=$2
40284 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
40285 -echo "configure:5725: checking for $ac_word" >&5
40286 +echo "configure:5728: checking for $ac_word" >&5
40287 if eval "test \"`echo '$''{'ac_cv_path_LIPO_FOR_TARGET'+set}'`\" = set"; then
40288 echo $ac_n "(cached) $ac_c" 1>&6
40289 else
40290 @@ -5758,7 +5761,7 @@ if test -z "$ac_cv_path_LIPO_FOR_TARGET"
40291 if test -n "$with_build_time_tools"; then
40292 for ncn_progname in lipo; do
40293 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
40294 -echo "configure:5762: checking for ${ncn_progname} in $with_build_time_tools" >&5
40295 +echo "configure:5765: checking for ${ncn_progname} in $with_build_time_tools" >&5
40296 if test -x $with_build_time_tools/${ncn_progname}; then
40297 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
40298 echo "$ac_t""yes" 1>&6
40299 @@ -5775,7 +5778,7 @@ if test -z "$ac_cv_prog_LIPO_FOR_TARGET"
40300 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
40301 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
40302 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
40303 -echo "configure:5779: checking for $ac_word" >&5
40304 +echo "configure:5782: 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 @@ -5806,7 +5809,7 @@ fi
40309 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
40310 set dummy ${ncn_progname}; ac_word=$2
40311 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
40312 -echo "configure:5810: checking for $ac_word" >&5
40313 +echo "configure:5813: checking for $ac_word" >&5
40314 if eval "test \"`echo '$''{'ac_cv_prog_LIPO_FOR_TARGET'+set}'`\" = set"; then
40315 echo $ac_n "(cached) $ac_c" 1>&6
40316 else
40317 @@ -5856,7 +5859,7 @@ fi
40318 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
40319 if test -n "$with_build_time_tools"; then
40320 echo $ac_n "checking for nm in $with_build_time_tools""... $ac_c" 1>&6
40321 -echo "configure:5860: checking for nm in $with_build_time_tools" >&5
40322 +echo "configure:5863: checking for nm in $with_build_time_tools" >&5
40323 if test -x $with_build_time_tools/nm; then
40324 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
40325 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
40326 @@ -5874,7 +5877,7 @@ if test -z "$ac_cv_path_NM_FOR_TARGET" ;
40327 # Extract the first word of "nm", so it can be a program name with args.
40328 set dummy nm; ac_word=$2
40329 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
40330 -echo "configure:5878: checking for $ac_word" >&5
40331 +echo "configure:5881: checking for $ac_word" >&5
40332 if eval "test \"`echo '$''{'ac_cv_path_NM_FOR_TARGET'+set}'`\" = set"; then
40333 echo $ac_n "(cached) $ac_c" 1>&6
40334 else
40335 @@ -5911,7 +5914,7 @@ if test -z "$ac_cv_path_NM_FOR_TARGET" ;
40336 if test -n "$with_build_time_tools"; then
40337 for ncn_progname in nm; do
40338 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
40339 -echo "configure:5915: checking for ${ncn_progname} in $with_build_time_tools" >&5
40340 +echo "configure:5918: checking for ${ncn_progname} in $with_build_time_tools" >&5
40341 if test -x $with_build_time_tools/${ncn_progname}; then
40342 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
40343 echo "$ac_t""yes" 1>&6
40344 @@ -5928,7 +5931,7 @@ if test -z "$ac_cv_prog_NM_FOR_TARGET";
40345 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
40346 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
40347 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
40348 -echo "configure:5932: checking for $ac_word" >&5
40349 +echo "configure:5935: 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 @@ -5959,7 +5962,7 @@ fi
40354 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
40355 set dummy ${ncn_progname}; ac_word=$2
40356 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
40357 -echo "configure:5963: checking for $ac_word" >&5
40358 +echo "configure:5966: checking for $ac_word" >&5
40359 if eval "test \"`echo '$''{'ac_cv_prog_NM_FOR_TARGET'+set}'`\" = set"; then
40360 echo $ac_n "(cached) $ac_c" 1>&6
40361 else
40362 @@ -6009,7 +6012,7 @@ fi
40363 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
40364 if test -n "$with_build_time_tools"; then
40365 echo $ac_n "checking for objdump in $with_build_time_tools""... $ac_c" 1>&6
40366 -echo "configure:6013: checking for objdump in $with_build_time_tools" >&5
40367 +echo "configure:6016: checking for objdump in $with_build_time_tools" >&5
40368 if test -x $with_build_time_tools/objdump; then
40369 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
40370 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
40371 @@ -6027,7 +6030,7 @@ if test -z "$ac_cv_path_OBJDUMP_FOR_TARG
40372 # Extract the first word of "objdump", so it can be a program name with args.
40373 set dummy objdump; ac_word=$2
40374 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
40375 -echo "configure:6031: checking for $ac_word" >&5
40376 +echo "configure:6034: checking for $ac_word" >&5
40377 if eval "test \"`echo '$''{'ac_cv_path_OBJDUMP_FOR_TARGET'+set}'`\" = set"; then
40378 echo $ac_n "(cached) $ac_c" 1>&6
40379 else
40380 @@ -6064,7 +6067,7 @@ if test -z "$ac_cv_path_OBJDUMP_FOR_TARG
40381 if test -n "$with_build_time_tools"; then
40382 for ncn_progname in objdump; do
40383 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
40384 -echo "configure:6068: checking for ${ncn_progname} in $with_build_time_tools" >&5
40385 +echo "configure:6071: checking for ${ncn_progname} in $with_build_time_tools" >&5
40386 if test -x $with_build_time_tools/${ncn_progname}; then
40387 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
40388 echo "$ac_t""yes" 1>&6
40389 @@ -6081,7 +6084,7 @@ if test -z "$ac_cv_prog_OBJDUMP_FOR_TARG
40390 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
40391 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
40392 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
40393 -echo "configure:6085: checking for $ac_word" >&5
40394 +echo "configure:6088: 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 @@ -6112,7 +6115,7 @@ fi
40399 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
40400 set dummy ${ncn_progname}; ac_word=$2
40401 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
40402 -echo "configure:6116: checking for $ac_word" >&5
40403 +echo "configure:6119: checking for $ac_word" >&5
40404 if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP_FOR_TARGET'+set}'`\" = set"; then
40405 echo $ac_n "(cached) $ac_c" 1>&6
40406 else
40407 @@ -6162,7 +6165,7 @@ fi
40408 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
40409 if test -n "$with_build_time_tools"; then
40410 echo $ac_n "checking for ranlib in $with_build_time_tools""... $ac_c" 1>&6
40411 -echo "configure:6166: checking for ranlib in $with_build_time_tools" >&5
40412 +echo "configure:6169: checking for ranlib in $with_build_time_tools" >&5
40413 if test -x $with_build_time_tools/ranlib; then
40414 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
40415 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
40416 @@ -6180,7 +6183,7 @@ if test -z "$ac_cv_path_RANLIB_FOR_TARGE
40417 # Extract the first word of "ranlib", so it can be a program name with args.
40418 set dummy ranlib; ac_word=$2
40419 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
40420 -echo "configure:6184: checking for $ac_word" >&5
40421 +echo "configure:6187: checking for $ac_word" >&5
40422 if eval "test \"`echo '$''{'ac_cv_path_RANLIB_FOR_TARGET'+set}'`\" = set"; then
40423 echo $ac_n "(cached) $ac_c" 1>&6
40424 else
40425 @@ -6217,7 +6220,7 @@ if test -z "$ac_cv_path_RANLIB_FOR_TARGE
40426 if test -n "$with_build_time_tools"; then
40427 for ncn_progname in ranlib; do
40428 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
40429 -echo "configure:6221: checking for ${ncn_progname} in $with_build_time_tools" >&5
40430 +echo "configure:6224: checking for ${ncn_progname} in $with_build_time_tools" >&5
40431 if test -x $with_build_time_tools/${ncn_progname}; then
40432 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
40433 echo "$ac_t""yes" 1>&6
40434 @@ -6234,7 +6237,7 @@ if test -z "$ac_cv_prog_RANLIB_FOR_TARGE
40435 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
40436 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
40437 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
40438 -echo "configure:6238: checking for $ac_word" >&5
40439 +echo "configure:6241: 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 @@ -6265,7 +6268,7 @@ fi
40444 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
40445 set dummy ${ncn_progname}; ac_word=$2
40446 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
40447 -echo "configure:6269: checking for $ac_word" >&5
40448 +echo "configure:6272: checking for $ac_word" >&5
40449 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB_FOR_TARGET'+set}'`\" = set"; then
40450 echo $ac_n "(cached) $ac_c" 1>&6
40451 else
40452 @@ -6315,7 +6318,7 @@ fi
40453 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
40454 if test -n "$with_build_time_tools"; then
40455 echo $ac_n "checking for strip in $with_build_time_tools""... $ac_c" 1>&6
40456 -echo "configure:6319: checking for strip in $with_build_time_tools" >&5
40457 +echo "configure:6322: checking for strip in $with_build_time_tools" >&5
40458 if test -x $with_build_time_tools/strip; then
40459 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
40460 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
40461 @@ -6333,7 +6336,7 @@ if test -z "$ac_cv_path_STRIP_FOR_TARGET
40462 # Extract the first word of "strip", so it can be a program name with args.
40463 set dummy strip; ac_word=$2
40464 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
40465 -echo "configure:6337: checking for $ac_word" >&5
40466 +echo "configure:6340: checking for $ac_word" >&5
40467 if eval "test \"`echo '$''{'ac_cv_path_STRIP_FOR_TARGET'+set}'`\" = set"; then
40468 echo $ac_n "(cached) $ac_c" 1>&6
40469 else
40470 @@ -6370,7 +6373,7 @@ if test -z "$ac_cv_path_STRIP_FOR_TARGET
40471 if test -n "$with_build_time_tools"; then
40472 for ncn_progname in strip; do
40473 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
40474 -echo "configure:6374: checking for ${ncn_progname} in $with_build_time_tools" >&5
40475 +echo "configure:6377: checking for ${ncn_progname} in $with_build_time_tools" >&5
40476 if test -x $with_build_time_tools/${ncn_progname}; then
40477 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
40478 echo "$ac_t""yes" 1>&6
40479 @@ -6387,7 +6390,7 @@ if test -z "$ac_cv_prog_STRIP_FOR_TARGET
40480 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
40481 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
40482 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
40483 -echo "configure:6391: checking for $ac_word" >&5
40484 +echo "configure:6394: 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 @@ -6418,7 +6421,7 @@ fi
40489 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
40490 set dummy ${ncn_progname}; ac_word=$2
40491 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
40492 -echo "configure:6422: checking for $ac_word" >&5
40493 +echo "configure:6425: checking for $ac_word" >&5
40494 if eval "test \"`echo '$''{'ac_cv_prog_STRIP_FOR_TARGET'+set}'`\" = set"; then
40495 echo $ac_n "(cached) $ac_c" 1>&6
40496 else
40497 @@ -6468,7 +6471,7 @@ fi
40498 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
40499 if test -n "$with_build_time_tools"; then
40500 echo $ac_n "checking for windres in $with_build_time_tools""... $ac_c" 1>&6
40501 -echo "configure:6472: checking for windres in $with_build_time_tools" >&5
40502 +echo "configure:6475: checking for windres in $with_build_time_tools" >&5
40503 if test -x $with_build_time_tools/windres; then
40504 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
40505 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
40506 @@ -6486,7 +6489,7 @@ if test -z "$ac_cv_path_WINDRES_FOR_TARG
40507 # Extract the first word of "windres", so it can be a program name with args.
40508 set dummy windres; ac_word=$2
40509 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
40510 -echo "configure:6490: checking for $ac_word" >&5
40511 +echo "configure:6493: checking for $ac_word" >&5
40512 if eval "test \"`echo '$''{'ac_cv_path_WINDRES_FOR_TARGET'+set}'`\" = set"; then
40513 echo $ac_n "(cached) $ac_c" 1>&6
40514 else
40515 @@ -6523,7 +6526,7 @@ if test -z "$ac_cv_path_WINDRES_FOR_TARG
40516 if test -n "$with_build_time_tools"; then
40517 for ncn_progname in windres; do
40518 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
40519 -echo "configure:6527: checking for ${ncn_progname} in $with_build_time_tools" >&5
40520 +echo "configure:6530: checking for ${ncn_progname} in $with_build_time_tools" >&5
40521 if test -x $with_build_time_tools/${ncn_progname}; then
40522 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
40523 echo "$ac_t""yes" 1>&6
40524 @@ -6540,7 +6543,7 @@ if test -z "$ac_cv_prog_WINDRES_FOR_TARG
40525 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
40526 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
40527 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
40528 -echo "configure:6544: checking for $ac_word" >&5
40529 +echo "configure:6547: 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 @@ -6571,7 +6574,7 @@ fi
40534 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
40535 set dummy ${ncn_progname}; ac_word=$2
40536 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
40537 -echo "configure:6575: checking for $ac_word" >&5
40538 +echo "configure:6578: checking for $ac_word" >&5
40539 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES_FOR_TARGET'+set}'`\" = set"; then
40540 echo $ac_n "(cached) $ac_c" 1>&6
40541 else
40542 @@ -6619,7 +6622,7 @@ fi
40543 RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
40544
40545 echo $ac_n "checking where to find the target ar""... $ac_c" 1>&6
40546 -echo "configure:6623: checking where to find the target ar" >&5
40547 +echo "configure:6626: checking where to find the target ar" >&5
40548 if test "x${build}" != "x${host}" ; then
40549 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
40550 # We already found the complete path
40551 @@ -6652,7 +6655,7 @@ else
40552 fi
40553 fi
40554 echo $ac_n "checking where to find the target as""... $ac_c" 1>&6
40555 -echo "configure:6656: checking where to find the target as" >&5
40556 +echo "configure:6659: checking where to find the target as" >&5
40557 if test "x${build}" != "x${host}" ; then
40558 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
40559 # We already found the complete path
40560 @@ -6685,7 +6688,7 @@ else
40561 fi
40562 fi
40563 echo $ac_n "checking where to find the target cc""... $ac_c" 1>&6
40564 -echo "configure:6689: checking where to find the target cc" >&5
40565 +echo "configure:6692: checking where to find the target cc" >&5
40566 if test "x${build}" != "x${host}" ; then
40567 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
40568 # We already found the complete path
40569 @@ -6718,7 +6721,7 @@ else
40570 fi
40571 fi
40572 echo $ac_n "checking where to find the target c++""... $ac_c" 1>&6
40573 -echo "configure:6722: checking where to find the target c++" >&5
40574 +echo "configure:6725: checking where to find the target c++" >&5
40575 if test "x${build}" != "x${host}" ; then
40576 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
40577 # We already found the complete path
40578 @@ -6754,7 +6757,7 @@ else
40579 fi
40580 fi
40581 echo $ac_n "checking where to find the target c++ for libstdc++""... $ac_c" 1>&6
40582 -echo "configure:6758: checking where to find the target c++ for libstdc++" >&5
40583 +echo "configure:6761: checking where to find the target c++ for libstdc++" >&5
40584 if test "x${build}" != "x${host}" ; then
40585 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
40586 # We already found the complete path
40587 @@ -6790,7 +6793,7 @@ else
40588 fi
40589 fi
40590 echo $ac_n "checking where to find the target dlltool""... $ac_c" 1>&6
40591 -echo "configure:6794: checking where to find the target dlltool" >&5
40592 +echo "configure:6797: checking where to find the target dlltool" >&5
40593 if test "x${build}" != "x${host}" ; then
40594 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
40595 # We already found the complete path
40596 @@ -6823,7 +6826,7 @@ else
40597 fi
40598 fi
40599 echo $ac_n "checking where to find the target gcc""... $ac_c" 1>&6
40600 -echo "configure:6827: checking where to find the target gcc" >&5
40601 +echo "configure:6830: checking where to find the target gcc" >&5
40602 if test "x${build}" != "x${host}" ; then
40603 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
40604 # We already found the complete path
40605 @@ -6856,7 +6859,7 @@ else
40606 fi
40607 fi
40608 echo $ac_n "checking where to find the target gcj""... $ac_c" 1>&6
40609 -echo "configure:6860: checking where to find the target gcj" >&5
40610 +echo "configure:6863: checking where to find the target gcj" >&5
40611 if test "x${build}" != "x${host}" ; then
40612 if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
40613 # We already found the complete path
40614 @@ -6892,7 +6895,7 @@ else
40615 fi
40616 fi
40617 echo $ac_n "checking where to find the target gfortran""... $ac_c" 1>&6
40618 -echo "configure:6896: checking where to find the target gfortran" >&5
40619 +echo "configure:6899: checking where to find the target gfortran" >&5
40620 if test "x${build}" != "x${host}" ; then
40621 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
40622 # We already found the complete path
40623 @@ -6928,7 +6931,7 @@ else
40624 fi
40625 fi
40626 echo $ac_n "checking where to find the target ld""... $ac_c" 1>&6
40627 -echo "configure:6932: checking where to find the target ld" >&5
40628 +echo "configure:6935: checking where to find the target ld" >&5
40629 if test "x${build}" != "x${host}" ; then
40630 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
40631 # We already found the complete path
40632 @@ -6961,7 +6964,7 @@ else
40633 fi
40634 fi
40635 echo $ac_n "checking where to find the target lipo""... $ac_c" 1>&6
40636 -echo "configure:6965: checking where to find the target lipo" >&5
40637 +echo "configure:6968: checking where to find the target lipo" >&5
40638 if test "x${build}" != "x${host}" ; then
40639 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
40640 # We already found the complete path
40641 @@ -6984,7 +6987,7 @@ else
40642 fi
40643 fi
40644 echo $ac_n "checking where to find the target nm""... $ac_c" 1>&6
40645 -echo "configure:6988: checking where to find the target nm" >&5
40646 +echo "configure:6991: checking where to find the target nm" >&5
40647 if test "x${build}" != "x${host}" ; then
40648 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
40649 # We already found the complete path
40650 @@ -7017,7 +7020,7 @@ else
40651 fi
40652 fi
40653 echo $ac_n "checking where to find the target objdump""... $ac_c" 1>&6
40654 -echo "configure:7021: checking where to find the target objdump" >&5
40655 +echo "configure:7024: checking where to find the target objdump" >&5
40656 if test "x${build}" != "x${host}" ; then
40657 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
40658 # We already found the complete path
40659 @@ -7050,7 +7053,7 @@ else
40660 fi
40661 fi
40662 echo $ac_n "checking where to find the target ranlib""... $ac_c" 1>&6
40663 -echo "configure:7054: checking where to find the target ranlib" >&5
40664 +echo "configure:7057: checking where to find the target ranlib" >&5
40665 if test "x${build}" != "x${host}" ; then
40666 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
40667 # We already found the complete path
40668 @@ -7083,7 +7086,7 @@ else
40669 fi
40670 fi
40671 echo $ac_n "checking where to find the target strip""... $ac_c" 1>&6
40672 -echo "configure:7087: checking where to find the target strip" >&5
40673 +echo "configure:7090: checking where to find the target strip" >&5
40674 if test "x${build}" != "x${host}" ; then
40675 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
40676 # We already found the complete path
40677 @@ -7116,7 +7119,7 @@ else
40678 fi
40679 fi
40680 echo $ac_n "checking where to find the target windres""... $ac_c" 1>&6
40681 -echo "configure:7120: checking where to find the target windres" >&5
40682 +echo "configure:7123: checking where to find the target windres" >&5
40683 if test "x${build}" != "x${host}" ; then
40684 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
40685 # We already found the complete path
40686 @@ -7177,7 +7180,7 @@ fi
40687
40688
40689 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
40690 -echo "configure:7181: checking whether to enable maintainer-specific portions of Makefiles" >&5
40691 +echo "configure:7184: checking whether to enable maintainer-specific portions of Makefiles" >&5
40692 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
40693 if test "${enable_maintainer_mode+set}" = set; then
40694 enableval="$enable_maintainer_mode"
40695 @@ -7334,34 +7337,15 @@ trap 'rm -f $CONFIG_STATUS conftest*; ex
40696 # Transform confdefs.h into DEFS.
40697 # Protect against shell expansion while executing Makefile rules.
40698 # Protect against Makefile macro expansion.
40699 -#
40700 -# If the first sed substitution is executed (which looks for macros that
40701 -# take arguments), then we branch to the quote section. Otherwise,
40702 -# look for a macro that doesn't take arguments.
40703 -cat >confdef2opt.sed <<\_ACEOF
40704 -t clear
40705 -: clear
40706 -s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
40707 -t quote
40708 -s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
40709 -t quote
40710 -d
40711 -: quote
40712 -s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
40713 -s,\[,\\&,g
40714 -s,\],\\&,g
40715 -s,\$,$$,g
40716 -p
40717 -_ACEOF
40718 -# We use echo to avoid assuming a particular line-breaking character.
40719 -# The extra dot is to prevent the shell from consuming trailing
40720 -# line-breaks from the sub-command output. A line-break within
40721 -# single-quotes doesn't work because, if this script is created in a
40722 -# platform that uses two characters for line-breaks (e.g., DOS), tr
40723 -# would break.
40724 -ac_LF_and_DOT=`echo; echo .`
40725 -DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
40726 -rm -f confdef2opt.sed
40727 +cat > conftest.defs <<\EOF
40728 +s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
40729 +s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
40730 +s%\[%\\&%g
40731 +s%\]%\\&%g
40732 +s%\$%$$%g
40733 +EOF
40734 +DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
40735 +rm -f conftest.defs
40736
40737
40738 # Without the "./", some shells look in PATH for config.status.
40739 diff -Nrup binutils-2.17/configure.in binutils-2.17.atmel.1.3.0/configure.in
40740 --- binutils-2.17/configure.in 2006-06-23 20:19:53.000000000 +0200
40741 +++ binutils-2.17.atmel.1.3.0/configure.in 2007-03-26 10:20:35.000000000 +0200
40742 @@ -269,6 +269,9 @@ unsupported_languages=
40743 # exist yet.
40744
40745 case "${host}" in
40746 + avr32*-*-*)
40747 + noconfigdirs="$noconfigdirs readline gdb"
40748 + ;;
40749 hppa*64*-*-*)
40750 noconfigdirs="$noconfigdirs byacc"
40751 ;;
40752 diff -Nrup binutils-2.17/gas/as.c binutils-2.17.atmel.1.3.0/gas/as.c
40753 --- binutils-2.17/gas/as.c 2006-02-09 01:07:41.000000000 +0100
40754 +++ binutils-2.17.atmel.1.3.0/gas/as.c 2007-03-26 10:20:16.000000000 +0200
40755 @@ -439,10 +439,10 @@ parse_args (int * pargc, char *** pargv)
40756 the end of the preceeding line so that it is simpler to
40757 selectively add and remove lines from this list. */
40758 {"alternate", no_argument, NULL, OPTION_ALTERNATE}
40759 - /* The entry for "a" is here to prevent getopt_long_only() from
40760 - considering that -a is an abbreviation for --alternate. This is
40761 - necessary because -a=<FILE> is a valid switch but getopt would
40762 - normally reject it since --alternate does not take an argument. */
40763 + /* The next two entries are here to prevent getopt_long_only() from
40764 + considering that -a or -al is an abbreviation for --alternate.
40765 + This is necessary because -a=<FILE> is a valid switch but getopt
40766 + would normally reject it since --alternate does not take an argument. */
40767 ,{"a", optional_argument, NULL, 'a'}
40768 /* Handle -al=<FILE>. */
40769 ,{"al", optional_argument, NULL, OPTION_AL}
40770 @@ -795,8 +795,15 @@ the GNU General Public License. This pr
40771 case 'a':
40772 if (optarg)
40773 {
40774 - if (optarg != old_argv[optind] && optarg[-1] == '=')
40775 - --optarg;
40776 + /* If optarg is part of the -a switch and not a separate argument
40777 + in its own right, then scan backwards to the just after the -a.
40778 + This means skipping over both '=' and 'l' which might have been
40779 + taken to be part of the -a switch itself. */
40780 + if (optarg != old_argv[optind])
40781 + {
40782 + while (optarg[-1] == '=' || optarg[-1] == 'l')
40783 + --optarg;
40784 + }
40785
40786 if (md_parse_option (optc, optarg) != 0)
40787 break;
40788 @@ -1189,7 +1196,7 @@ main (int argc, char ** argv)
40789 keep_it = 0;
40790
40791 if (!keep_it)
40792 - unlink_if_ordinary (out_file_name);
40793 + unlink (out_file_name);
40794
40795 input_scrub_end ();
40796
40797 diff -Nrup binutils-2.17/gas/config/bfin-aux.h binutils-2.17.atmel.1.3.0/gas/config/bfin-aux.h
40798 --- binutils-2.17/gas/config/bfin-aux.h 2005-09-30 17:05:06.000000000 +0200
40799 +++ binutils-2.17.atmel.1.3.0/gas/config/bfin-aux.h 2007-03-26 10:20:14.000000000 +0200
40800 @@ -1,151 +1,151 @@
40801 -/* bfin-aux.h ADI Blackfin Header file for gas
40802 - Copyright 2005
40803 - Free Software Foundation, Inc.
40804 -
40805 - This file is part of GAS, the GNU Assembler.
40806 -
40807 - GAS is free software; you can redistribute it and/or modify
40808 - it under the terms of the GNU General Public License as published by
40809 - the Free Software Foundation; either version 2, or (at your option)
40810 - any later version.
40811 -
40812 - GAS is distributed in the hope that it will be useful,
40813 - but WITHOUT ANY WARRANTY; without even the implied warranty of
40814 - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
40815 - GNU General Public License for more details.
40816 -
40817 - You should have received a copy of the GNU General Public License
40818 - along with GAS; see the file COPYING. If not, write to the Free
40819 - Software Foundation, 51 Franklin Street - Fifth Floor, Boston, MA
40820 - 02110-1301, USA. */
40821 -
40822 -#include "bfin-defs.h"
40823 -
40824 -#define REG_T Register *
40825 -
40826 -INSTR_T
40827 -bfin_gen_dsp32mac (int op1, int mm, int mmod, int w1, int p,
40828 - int h01, int h11, int h00, int h10,
40829 - int op0, REG_T dst, REG_T src0, REG_T src1, int w0);
40830 -
40831 -INSTR_T
40832 -bfin_gen_dsp32mult (int op1, int mm, int mmod, int w1, int p,
40833 - int h01, int h11, int h00, int h10,
40834 - int op0, REG_T dst, REG_T src0, REG_T src1, int w0);
40835 -
40836 -INSTR_T
40837 -bfin_gen_dsp32alu (int HL, int aopcde, int aop, int s, int x,
40838 - REG_T dst0, REG_T dst1, REG_T src0, REG_T src1);
40839 -
40840 -INSTR_T
40841 -bfin_gen_dsp32shift (int sopcde, REG_T dst0, REG_T src0, REG_T src1,
40842 - int sop, int hls);
40843 -
40844 -INSTR_T
40845 -bfin_gen_dsp32shiftimm (int sopcde, REG_T dst0, int immag, REG_T src1,
40846 - int sop, int hls);
40847 -
40848 -INSTR_T
40849 -bfin_gen_ldimmhalf (REG_T reg, int h, int s, int z, Expr_Node *hword,
40850 - int reloc);
40851 -
40852 -INSTR_T
40853 -bfin_gen_ldstidxi (REG_T ptr, REG_T reg, int w, int sz, int z,
40854 - Expr_Node *offset);
40855 -
40856 -INSTR_T
40857 -bfin_gen_ldst (REG_T ptr, REG_T reg, int aop, int sz, int z, int w);
40858 -
40859 -INSTR_T
40860 -bfin_gen_ldstii (REG_T ptr, REG_T reg, Expr_Node *offset, int w, int op);
40861 -
40862 -INSTR_T
40863 -bfin_gen_ldstiifp (REG_T reg, Expr_Node *offset, int w);
40864 -
40865 -INSTR_T
40866 -bfin_gen_ldstpmod (REG_T ptr, REG_T reg, int aop, int w, REG_T idx);
40867 -
40868 -INSTR_T
40869 -bfin_gen_dspldst (REG_T i, REG_T reg, int aop, int w, int m);
40870 -
40871 -INSTR_T
40872 -bfin_gen_alu2op (REG_T dst, REG_T src, int opc);
40873 -
40874 -INSTR_T
40875 -bfin_gen_compi2opd (REG_T dst, int src, int op);
40876 -
40877 -INSTR_T
40878 -bfin_gen_compi2opp (REG_T dst, int src, int op);
40879 -
40880 -INSTR_T
40881 -bfin_gen_dagmodik (REG_T i, int op);
40882 -
40883 -INSTR_T
40884 -bfin_gen_dagmodim (REG_T i, REG_T m, int op, int br);
40885 -
40886 -INSTR_T
40887 -bfin_gen_ptr2op (REG_T dst, REG_T src, int opc);
40888 -
40889 -INSTR_T
40890 -bfin_gen_logi2op (int dst, int src, int opc);
40891 -
40892 -INSTR_T
40893 -bfin_gen_comp3op (REG_T src0, REG_T src1, REG_T dst, int opc);
40894 -
40895 -INSTR_T
40896 -bfin_gen_ccmv (REG_T src, REG_T dst, int t);
40897 -
40898 -INSTR_T
40899 -bfin_gen_ccflag (REG_T x, int y, int opc, int i, int g);
40900 -
40901 -INSTR_T
40902 -bfin_gen_cc2stat (int cbit, int op, int d);
40903 -
40904 -INSTR_T
40905 -bfin_gen_regmv (REG_T src, REG_T dst);
40906 -
40907 -INSTR_T
40908 -bfin_gen_cc2dreg (int op, REG_T reg);
40909 -
40910 -INSTR_T
40911 -bfin_gen_brcc (int t, int b, Expr_Node *offset);
40912 -
40913 -INSTR_T
40914 -bfin_gen_ujump (Expr_Node *offset);
40915 -
40916 -INSTR_T
40917 -bfin_gen_cactrl (REG_T reg, int a, int op);
40918 -
40919 -INSTR_T
40920 -bfin_gen_progctrl (int prgfunc, int poprnd);
40921 -
40922 -INSTR_T
40923 -bfin_gen_loopsetup (Expr_Node *soffset, REG_T c, int rop,
40924 - Expr_Node *eoffset, REG_T reg);
40925 -
40926 -INSTR_T
40927 -bfin_gen_loop (Expr_Node *expr, REG_T reg, int rop, REG_T preg);
40928 -
40929 -INSTR_T
40930 -bfin_gen_pushpopmultiple (int dr, int pr, int d, int p, int w);
40931 -
40932 -INSTR_T
40933 -bfin_gen_pushpopreg (REG_T reg, int w);
40934 -
40935 -INSTR_T
40936 -bfin_gen_calla (Expr_Node *addr, int s);
40937 -
40938 -INSTR_T
40939 -bfin_gen_linkage (int r, int framesize);
40940 -
40941 -INSTR_T
40942 -bfin_gen_pseudodbg (int fn, int reg, int grp);
40943 -
40944 -INSTR_T
40945 -bfin_gen_pseudodbg_assert (int dbgop, REG_T regtest, int expected);
40946 -
40947 -bfd_boolean
40948 -bfin_resource_conflict (INSTR_T dsp32, INSTR_T dsp16_grp1, INSTR_T dsp16_grp2);
40949 -
40950 -INSTR_T
40951 -bfin_gen_multi_instr (INSTR_T dsp32, INSTR_T dsp16_grp1, INSTR_T dsp16_grp2);
40952 +/* bfin-aux.h ADI Blackfin Header file for gas
40953 + Copyright 2005
40954 + Free Software Foundation, Inc.
40955 +
40956 + This file is part of GAS, the GNU Assembler.
40957 +
40958 + GAS is free software; you can redistribute it and/or modify
40959 + it under the terms of the GNU General Public License as published by
40960 + the Free Software Foundation; either version 2, or (at your option)
40961 + any later version.
40962 +
40963 + GAS is distributed in the hope that it will be useful,
40964 + but WITHOUT ANY WARRANTY; without even the implied warranty of
40965 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
40966 + GNU General Public License for more details.
40967 +
40968 + You should have received a copy of the GNU General Public License
40969 + along with GAS; see the file COPYING. If not, write to the Free
40970 + Software Foundation, 51 Franklin Street - Fifth Floor, Boston, MA
40971 + 02110-1301, USA. */
40972 +
40973 +#include "bfin-defs.h"
40974 +
40975 +#define REG_T Register *
40976 +
40977 +INSTR_T
40978 +bfin_gen_dsp32mac (int op1, int mm, int mmod, int w1, int p,
40979 + int h01, int h11, int h00, int h10,
40980 + int op0, REG_T dst, REG_T src0, REG_T src1, int w0);
40981 +
40982 +INSTR_T
40983 +bfin_gen_dsp32mult (int op1, int mm, int mmod, int w1, int p,
40984 + int h01, int h11, int h00, int h10,
40985 + int op0, REG_T dst, REG_T src0, REG_T src1, int w0);
40986 +
40987 +INSTR_T
40988 +bfin_gen_dsp32alu (int HL, int aopcde, int aop, int s, int x,
40989 + REG_T dst0, REG_T dst1, REG_T src0, REG_T src1);
40990 +
40991 +INSTR_T
40992 +bfin_gen_dsp32shift (int sopcde, REG_T dst0, REG_T src0, REG_T src1,
40993 + int sop, int hls);
40994 +
40995 +INSTR_T
40996 +bfin_gen_dsp32shiftimm (int sopcde, REG_T dst0, int immag, REG_T src1,
40997 + int sop, int hls);
40998 +
40999 +INSTR_T
41000 +bfin_gen_ldimmhalf (REG_T reg, int h, int s, int z, Expr_Node *hword,
41001 + int reloc);
41002 +
41003 +INSTR_T
41004 +bfin_gen_ldstidxi (REG_T ptr, REG_T reg, int w, int sz, int z,
41005 + Expr_Node *offset);
41006 +
41007 +INSTR_T
41008 +bfin_gen_ldst (REG_T ptr, REG_T reg, int aop, int sz, int z, int w);
41009 +
41010 +INSTR_T
41011 +bfin_gen_ldstii (REG_T ptr, REG_T reg, Expr_Node *offset, int w, int op);
41012 +
41013 +INSTR_T
41014 +bfin_gen_ldstiifp (REG_T reg, Expr_Node *offset, int w);
41015 +
41016 +INSTR_T
41017 +bfin_gen_ldstpmod (REG_T ptr, REG_T reg, int aop, int w, REG_T idx);
41018 +
41019 +INSTR_T
41020 +bfin_gen_dspldst (REG_T i, REG_T reg, int aop, int w, int m);
41021 +
41022 +INSTR_T
41023 +bfin_gen_alu2op (REG_T dst, REG_T src, int opc);
41024 +
41025 +INSTR_T
41026 +bfin_gen_compi2opd (REG_T dst, int src, int op);
41027 +
41028 +INSTR_T
41029 +bfin_gen_compi2opp (REG_T dst, int src, int op);
41030 +
41031 +INSTR_T
41032 +bfin_gen_dagmodik (REG_T i, int op);
41033 +
41034 +INSTR_T
41035 +bfin_gen_dagmodim (REG_T i, REG_T m, int op, int br);
41036 +
41037 +INSTR_T
41038 +bfin_gen_ptr2op (REG_T dst, REG_T src, int opc);
41039 +
41040 +INSTR_T
41041 +bfin_gen_logi2op (int dst, int src, int opc);
41042 +
41043 +INSTR_T
41044 +bfin_gen_comp3op (REG_T src0, REG_T src1, REG_T dst, int opc);
41045 +
41046 +INSTR_T
41047 +bfin_gen_ccmv (REG_T src, REG_T dst, int t);
41048 +
41049 +INSTR_T
41050 +bfin_gen_ccflag (REG_T x, int y, int opc, int i, int g);
41051 +
41052 +INSTR_T
41053 +bfin_gen_cc2stat (int cbit, int op, int d);
41054 +
41055 +INSTR_T
41056 +bfin_gen_regmv (REG_T src, REG_T dst);
41057 +
41058 +INSTR_T
41059 +bfin_gen_cc2dreg (int op, REG_T reg);
41060 +
41061 +INSTR_T
41062 +bfin_gen_brcc (int t, int b, Expr_Node *offset);
41063 +
41064 +INSTR_T
41065 +bfin_gen_ujump (Expr_Node *offset);
41066 +
41067 +INSTR_T
41068 +bfin_gen_cactrl (REG_T reg, int a, int op);
41069 +
41070 +INSTR_T
41071 +bfin_gen_progctrl (int prgfunc, int poprnd);
41072 +
41073 +INSTR_T
41074 +bfin_gen_loopsetup (Expr_Node *soffset, REG_T c, int rop,
41075 + Expr_Node *eoffset, REG_T reg);
41076 +
41077 +INSTR_T
41078 +bfin_gen_loop (Expr_Node *expr, REG_T reg, int rop, REG_T preg);
41079 +
41080 +INSTR_T
41081 +bfin_gen_pushpopmultiple (int dr, int pr, int d, int p, int w);
41082 +
41083 +INSTR_T
41084 +bfin_gen_pushpopreg (REG_T reg, int w);
41085 +
41086 +INSTR_T
41087 +bfin_gen_calla (Expr_Node *addr, int s);
41088 +
41089 +INSTR_T
41090 +bfin_gen_linkage (int r, int framesize);
41091 +
41092 +INSTR_T
41093 +bfin_gen_pseudodbg (int fn, int reg, int grp);
41094 +
41095 +INSTR_T
41096 +bfin_gen_pseudodbg_assert (int dbgop, REG_T regtest, int expected);
41097 +
41098 +bfd_boolean
41099 +bfin_resource_conflict (INSTR_T dsp32, INSTR_T dsp16_grp1, INSTR_T dsp16_grp2);
41100 +
41101 +INSTR_T
41102 +bfin_gen_multi_instr (INSTR_T dsp32, INSTR_T dsp16_grp1, INSTR_T dsp16_grp2);
41103 diff -Nrup binutils-2.17/gas/config/tc-avr32.c binutils-2.17.atmel.1.3.0/gas/config/tc-avr32.c
41104 --- binutils-2.17/gas/config/tc-avr32.c 1970-01-01 01:00:00.000000000 +0100
41105 +++ binutils-2.17.atmel.1.3.0/gas/config/tc-avr32.c 2007-09-28 10:30:46.000000000 +0200
41106 @@ -0,0 +1,4726 @@
41107 +/* Assembler implementation for AVR32.
41108 + Copyright 2003-2006 Atmel Corporation.
41109 +
41110 + Written by Haavard Skinnemoen, Atmel Norway, <hskinnemoen@atmel.com>
41111 +
41112 + This file is part of GAS, the GNU Assembler.
41113 +
41114 + GAS is free software; you can redistribute it and/or modify it
41115 + under the terms of the GNU General Public License as published by
41116 + the Free Software Foundation; either version 2, or (at your option)
41117 + any later version.
41118 +
41119 + GAS is distributed in the hope that it will be useful, but WITHOUT
41120 + ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
41121 + or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
41122 + License for more details.
41123 +
41124 + You should have received a copy of the GNU General Public License
41125 + along with GAS; see the file COPYING. If not, write to the Free
41126 + Software Foundation, 59 Temple Place - Suite 330, Boston, MA
41127 + 02111-1307, USA. */
41128 +
41129 +#include <stdio.h>
41130 +#include "as.h"
41131 +#include "safe-ctype.h"
41132 +#include "subsegs.h"
41133 +#include "symcat.h"
41134 +#include "opcodes/avr32-opc.h"
41135 +#include "opcodes/avr32-asm.h"
41136 +#include "elf/avr32.h"
41137 +#include "dwarf2dbg.h"
41138 +
41139 +#define xDEBUG
41140 +#define xOPC_CONSISTENCY_CHECK
41141 +
41142 +#ifdef DEBUG
41143 +# define pr_debug(fmt, args...) fprintf(stderr, fmt, ##args)
41144 +#else
41145 +# define pr_debug(fmt, args...)
41146 +#endif
41147 +
41148 +/* 3 MSB of instruction word indicate group. Group 7 -> extended */
41149 +#define AVR32_COMPACT_P(opcode) ((opcode[0] & 0xe0) != 0xe0)
41150 +
41151 +#define streq(a, b) (strcmp(a, b) == 0)
41152 +#define skip_whitespace(str) do { while(*(str) == ' ') ++(str); } while(0)
41153 +
41154 +/* Flags given on the command line */
41155 +static int avr32_pic = FALSE;
41156 +int linkrelax = FALSE;
41157 +int avr32_iarcompat = FALSE;
41158 +int allow_direct_data_refs = FALSE;
41159 +
41160 +/* This array holds the chars that always start a comment. */
41161 +const char comment_chars[] = "#";
41162 +
41163 +/* This array holds the chars that only start a comment at the
41164 + beginning of a line. We must include '#' here because the compiler
41165 + may produce #APP and #NO_APP in its output. */
41166 +const char line_comment_chars[] = "#";
41167 +
41168 +/* These may be used instead of newline (same as ';' in C). */
41169 +const char line_separator_chars[] = ";";
41170 +
41171 +/* Chars that can be used to separate mantissa from exponent in
41172 + floating point numbers. */
41173 +const char EXP_CHARS[] = "eE";
41174 +
41175 +/* Chars that mean this number is a floating point constant. */
41176 +const char FLT_CHARS[] = "dD";
41177 +
41178 +/* Pre-defined "_GLOBAL_OFFSET_TABLE_" */
41179 +symbolS *GOT_symbol;
41180 +
41181 +static struct hash_control *avr32_mnemonic_htab;
41182 +
41183 +struct avr32_ifield_data
41184 +{
41185 + bfd_vma value;
41186 + /* FIXME: Get rid of align_order and complain. complain is never
41187 + used, align_order is used in one place. Try to use the relax
41188 + table instead. */
41189 + unsigned int align_order;
41190 +};
41191 +
41192 +struct avr32_insn
41193 +{
41194 + const struct avr32_syntax *syntax;
41195 + expressionS immediate;
41196 + int pcrel;
41197 + int force_extended;
41198 + unsigned int next_slot;
41199 + bfd_reloc_code_real_type r_type;
41200 + struct avr32_ifield_data field_value[AVR32_MAX_FIELDS];
41201 +};
41202 +
41203 +static struct avr32_insn current_insn;
41204 +
41205 +/* The target specific pseudo-ops we support. */
41206 +static void s_rseg (int);
41207 +static void s_cpool(int);
41208 +
41209 +const pseudo_typeS md_pseudo_table[] =
41210 +{
41211 + /* Make sure that .word is 32 bits */
41212 + { "word", cons, 4 },
41213 + { "file", (void (*) PARAMS ((int))) dwarf2_directive_file, 0 },
41214 + { "loc", dwarf2_directive_loc, 0 },
41215 +
41216 + /* .lcomm requires an explicit alignment parameter */
41217 + { "lcomm", s_lcomm, 1 },
41218 +
41219 + /* AVR32-specific pseudo-ops */
41220 + { "cpool", s_cpool, 0},
41221 +
41222 + /* IAR compatible pseudo-ops */
41223 + { "program", s_ignore, 0 },
41224 + { "public", s_globl, 0 },
41225 + { "extern", s_ignore, 0 },
41226 + { "module", s_ignore, 0 },
41227 + { "rseg", s_rseg, 0 },
41228 + { "dc8", cons, 1 },
41229 + { "dc16", cons, 2 },
41230 + { "dc32", cons, 4 },
41231 +
41232 + { NULL, NULL, 0 }
41233 +};
41234 +
41235 +/* Questionable stuff starts here */
41236 +
41237 +enum avr32_opinfo {
41238 + AVR32_OPINFO_NONE = BFD_RELOC_NONE,
41239 + AVR32_OPINFO_GOT,
41240 + AVR32_OPINFO_TLSGD,
41241 + AVR32_OPINFO_HI,
41242 + AVR32_OPINFO_LO,
41243 +};
41244 +
41245 +enum avr32_arch {
41246 + ARCH_TYPE_AP,
41247 + ARCH_TYPE_UC
41248 +};
41249 +
41250 +struct arch_type_s
41251 +{
41252 + /* Architecture name */
41253 + char *name;
41254 + /* Instruction Set Architecture Flags */
41255 + unsigned long isa_flags;
41256 +};
41257 +
41258 +struct part_type_s
41259 +{
41260 + /* Part name */
41261 + char *name;
41262 + /* Architecture type */
41263 + unsigned int arch;
41264 +};
41265 +
41266 +static struct arch_type_s arch_types[] =
41267 +{
41268 + {"ap", AVR32_V1 | AVR32_SIMD | AVR32_DSP | AVR32_PICO},
41269 + {"uc", AVR32_V1 | AVR32_DSP | AVR32_RMW},
41270 + {"all-insn", AVR32_V1 | AVR32_SIMD | AVR32_DSP | AVR32_RMW | AVR32_FP | AVR32_PICO},
41271 + {NULL, 0}
41272 +};
41273 +
41274 +static struct part_type_s part_types[] = {
41275 + {"ap7000", ARCH_TYPE_AP},
41276 + {"ap7010", ARCH_TYPE_AP},
41277 + {"ap7020", ARCH_TYPE_AP},
41278 + {"uc3a0256", ARCH_TYPE_UC},
41279 + {"uc3a0512", ARCH_TYPE_UC},
41280 + {"uc3a1128", ARCH_TYPE_UC},
41281 + {"uc3a1256", ARCH_TYPE_UC},
41282 + {"uc3a1512", ARCH_TYPE_UC},
41283 + {"uc3b064", ARCH_TYPE_UC},
41284 + {"uc3b0128", ARCH_TYPE_UC},
41285 + {"uc3b0256", ARCH_TYPE_UC},
41286 + {"uc3b164", ARCH_TYPE_UC},
41287 + {"uc3b1128", ARCH_TYPE_UC},
41288 + {"uc3b1256", ARCH_TYPE_UC},
41289 + {NULL, 0}
41290 +};
41291 +
41292 +/* Current architecture type. */
41293 +static struct arch_type_s default_arch = {"all-insn", AVR32_V1 | AVR32_SIMD | AVR32_DSP | AVR32_RMW | AVR32_FP | AVR32_PICO };
41294 +static struct arch_type_s *avr32_arch = &default_arch;
41295 +
41296 +/* Display nicely formatted list of known part- and architecture names. */
41297 +
41298 +static void
41299 +show_arch_list (FILE *stream)
41300 +{
41301 + int i, x;
41302 +
41303 + fprintf (stream, _("Known architecture names:"));
41304 + x = 1000;
41305 +
41306 + for (i = 0; arch_types[i].name; i++)
41307 + {
41308 + int len = strlen (arch_types[i].name);
41309 +
41310 + x += len + 1;
41311 +
41312 + if (x < 75)
41313 + fprintf (stream, " %s", arch_types[i].name);
41314 + else
41315 + {
41316 + fprintf (stream, "\n %s", arch_types[i].name);
41317 + x = len + 2;
41318 + }
41319 + }
41320 +
41321 + fprintf (stream, "\n");
41322 +}
41323 +
41324 +static void
41325 +show_part_list (FILE *stream)
41326 +{
41327 + int i, x;
41328 +
41329 + fprintf (stream, _("Known part names:"));
41330 + x = 1000;
41331 +
41332 + for (i = 0; part_types[i].name; i++)
41333 + {
41334 + int len = strlen(part_types[i].name);
41335 +
41336 + x += len + 1;
41337 +
41338 + if (x < 75)
41339 + fprintf (stream, " %s", part_types[i].name);
41340 + else
41341 + {
41342 + fprintf(stream, "\n %s", part_types[i].name);
41343 + x = len + 2;
41344 + }
41345 + }
41346 +
41347 + fprintf (stream, "\n");
41348 +}
41349 +
41350 +const char *md_shortopts = "";
41351 +struct option md_longopts[] =
41352 +{
41353 +#define OPTION_ARCH (OPTION_MD_BASE)
41354 +#define OPTION_PART (OPTION_ARCH + 1)
41355 +#define OPTION_IAR (OPTION_PART + 1)
41356 +#define OPTION_PIC (OPTION_IAR + 1)
41357 +#define OPTION_NOPIC (OPTION_PIC + 1)
41358 +#define OPTION_LINKRELAX (OPTION_NOPIC + 1)
41359 +#define OPTION_NOLINKRELAX (OPTION_LINKRELAX + 1)
41360 +#define OPTION_DIRECT_DATA_REFS (OPTION_NOLINKRELAX + 1)
41361 + {"march", required_argument, NULL, OPTION_ARCH},
41362 + {"mpart", required_argument, NULL, OPTION_PART},
41363 + {"iar", no_argument, NULL, OPTION_IAR},
41364 + {"pic", no_argument, NULL, OPTION_PIC},
41365 + {"no-pic", no_argument, NULL, OPTION_NOPIC},
41366 + {"linkrelax", no_argument, NULL, OPTION_LINKRELAX},
41367 + {"no-linkrelax", no_argument, NULL, OPTION_NOLINKRELAX},
41368 + {"direct-data-refs", no_argument, NULL, OPTION_DIRECT_DATA_REFS},
41369 + /* deprecated alias for -mpart=xxx */
41370 + {"mcpu", required_argument, NULL, OPTION_PART},
41371 + {NULL, no_argument, NULL, 0}
41372 +};
41373 +
41374 +size_t md_longopts_size = sizeof (md_longopts);
41375 +
41376 +void
41377 +md_show_usage (FILE *stream)
41378 +{
41379 + fprintf (stream, _("\
41380 +AVR32 options:\n\
41381 + -march=[arch-name] Select cpu architecture. [Default `all-insn']\n\
41382 + -mpart=[part-name] Select specific part. [Default `none']\n\
41383 + --pic Produce Position-Independent Code\n\
41384 + --no-pic Don't produce Position-Independent Code\n\
41385 + --linkrelax Produce output suitable for linker relaxing\n\
41386 + --no-linkrelax Don't produce output suitable for linker relaxing\n\
41387 + --direct-data-refs Allows direct references (i.e. mov or sub) to the data section\n"));
41388 + show_arch_list(stream);
41389 +}
41390 +
41391 +int
41392 +md_parse_option (int c, char *arg ATTRIBUTE_UNUSED)
41393 +{
41394 + switch (c)
41395 + {
41396 + case OPTION_ARCH:
41397 + {
41398 + int i;
41399 + char *s = alloca (strlen (arg) + 1);
41400 +
41401 + {
41402 + char *t = s;
41403 + char *arg1 = arg;
41404 +
41405 + do
41406 + *t = TOLOWER (*arg1++);
41407 + while (*t++);
41408 + }
41409 +
41410 + for (i = 0; arch_types[i].name; ++i)
41411 + if (strcmp (arch_types[i].name, s) == 0)
41412 + break;
41413 +
41414 + if (!arch_types[i].name)
41415 + {
41416 + show_arch_list (stderr);
41417 + as_fatal (_("unknown architecture: %s\n"), arg);
41418 + }
41419 +
41420 + avr32_arch = &arch_types[i];
41421 + break;
41422 + }
41423 + case OPTION_PART:
41424 + {
41425 + int i;
41426 + char *s = alloca (strlen (arg) + 1);
41427 + char *t = s;
41428 + char *p = arg;
41429 +
41430 + /* If arch type has already been set, don't bother.
41431 + -march= always overrides -mpart= */
41432 + if (avr32_arch != &default_arch)
41433 + break;
41434 +
41435 + do
41436 + *t = TOLOWER (*p++);
41437 + while (*t++);
41438 +
41439 + for (i = 0; part_types[i].name; ++i)
41440 + if (strcmp (part_types[i].name, s) == 0)
41441 + break;
41442 +
41443 + if (!part_types[i].name)
41444 + {
41445 + show_part_list (stderr);
41446 + as_fatal (_("unknown part: %s\n"), arg);
41447 + }
41448 +
41449 + avr32_arch = &arch_types[part_types[i].arch];
41450 + break;
41451 + }
41452 + case OPTION_IAR:
41453 + avr32_iarcompat = 1;
41454 + break;
41455 + case OPTION_PIC:
41456 + avr32_pic = 1;
41457 + break;
41458 + case OPTION_NOPIC:
41459 + avr32_pic = 0;
41460 + break;
41461 + case OPTION_LINKRELAX:
41462 + linkrelax = 1;
41463 + break;
41464 + case OPTION_NOLINKRELAX:
41465 + linkrelax = 0;
41466 + break;
41467 + case OPTION_DIRECT_DATA_REFS:
41468 + allow_direct_data_refs = 1;
41469 + break;
41470 + default:
41471 + return 0;
41472 + }
41473 + return 1;
41474 +}
41475 +
41476 +/* Can't use symbol_new here, so have to create a symbol and then at
41477 + a later date assign it a value. Thats what these functions do.
41478 +
41479 + Shamelessly stolen from ARM. */
41480 +
41481 +static void
41482 +symbol_locate (symbolS * symbolP,
41483 + const char * name, /* It is copied, the caller can modify. */
41484 + segT segment, /* Segment identifier (SEG_<something>). */
41485 + valueT valu, /* Symbol value. */
41486 + fragS * frag) /* Associated fragment. */
41487 +{
41488 + unsigned int name_length;
41489 + char * preserved_copy_of_name;
41490 +
41491 + name_length = strlen (name) + 1; /* +1 for \0. */
41492 + obstack_grow (&notes, name, name_length);
41493 + preserved_copy_of_name = obstack_finish (&notes);
41494 +#ifdef STRIP_UNDERSCORE
41495 + if (preserved_copy_of_name[0] == '_')
41496 + preserved_copy_of_name++;
41497 +#endif
41498 +
41499 +#ifdef tc_canonicalize_symbol_name
41500 + preserved_copy_of_name =
41501 + tc_canonicalize_symbol_name (preserved_copy_of_name);
41502 +#endif
41503 +
41504 + S_SET_NAME (symbolP, preserved_copy_of_name);
41505 +
41506 + S_SET_SEGMENT (symbolP, segment);
41507 + S_SET_VALUE (symbolP, valu);
41508 + symbol_clear_list_pointers (symbolP);
41509 +
41510 + symbol_set_frag (symbolP, frag);
41511 +
41512 + /* Link to end of symbol chain. */
41513 + {
41514 + extern int symbol_table_frozen;
41515 +
41516 + if (symbol_table_frozen)
41517 + abort ();
41518 + }
41519 +
41520 + symbol_append (symbolP, symbol_lastP, & symbol_rootP, & symbol_lastP);
41521 +
41522 + obj_symbol_new_hook (symbolP);
41523 +
41524 +#ifdef tc_symbol_new_hook
41525 + tc_symbol_new_hook (symbolP);
41526 +#endif
41527 +
41528 +#ifdef DEBUG_SYMS
41529 + verify_symbol_chain (symbol_rootP, symbol_lastP);
41530 +#endif /* DEBUG_SYMS */
41531 +}
41532 +
41533 +struct cpool_entry
41534 +{
41535 + int refcount;
41536 + offsetT offset;
41537 + expressionS exp;
41538 +};
41539 +
41540 +struct cpool
41541 +{
41542 + struct cpool *next;
41543 + int used;
41544 + struct cpool_entry *literals;
41545 + unsigned int padding;
41546 + unsigned int next_free_entry;
41547 + unsigned int id;
41548 + symbolS *symbol;
41549 + segT section;
41550 + subsegT sub_section;
41551 +};
41552 +
41553 +struct cpool *cpool_list = NULL;
41554 +
41555 +static struct cpool *
41556 +find_cpool(segT section, subsegT sub_section)
41557 +{
41558 + struct cpool *pool;
41559 +
41560 + for (pool = cpool_list; pool != NULL; pool = pool->next)
41561 + {
41562 + if (!pool->used
41563 + && pool->section == section
41564 + && pool->sub_section == sub_section)
41565 + break;
41566 + }
41567 +
41568 + return pool;
41569 +}
41570 +
41571 +static struct cpool *
41572 +find_or_make_cpool(segT section, subsegT sub_section)
41573 +{
41574 + static unsigned int next_cpool_id = 0;
41575 + struct cpool *pool;
41576 +
41577 + pool = find_cpool(section, sub_section);
41578 +
41579 + if (!pool)
41580 + {
41581 + pool = xmalloc(sizeof(*pool));
41582 + if (!pool)
41583 + return NULL;
41584 +
41585 + pool->used = 0;
41586 + pool->literals = NULL;
41587 + pool->padding = 0;
41588 + pool->next_free_entry = 0;
41589 + pool->section = section;
41590 + pool->sub_section = sub_section;
41591 + pool->next = cpool_list;
41592 + pool->symbol = NULL;
41593 +
41594 + cpool_list = pool;
41595 + }
41596 +
41597 + /* NULL symbol means that the pool is new or has just been emptied. */
41598 + if (!pool->symbol)
41599 + {
41600 + pool->symbol = symbol_create(FAKE_LABEL_NAME, undefined_section,
41601 + 0, &zero_address_frag);
41602 + pool->id = next_cpool_id++;
41603 + }
41604 +
41605 + return pool;
41606 +}
41607 +
41608 +static struct cpool *
41609 +add_to_cpool(expressionS *exp, unsigned int *index, int ref)
41610 +{
41611 + struct cpool *pool;
41612 + unsigned int entry;
41613 +
41614 + pool = find_or_make_cpool(now_seg, now_subseg);
41615 +
41616 + /* Check if this constant is already in the pool. */
41617 + for (entry = 0; entry < pool->next_free_entry; entry++)
41618 + {
41619 + if ((pool->literals[entry].exp.X_op == exp->X_op)
41620 + && (exp->X_op == O_constant)
41621 + && (pool->literals[entry].exp.X_add_number
41622 + == exp->X_add_number)
41623 + && (pool->literals[entry].exp.X_unsigned
41624 + == exp->X_unsigned))
41625 + break;
41626 +
41627 + if ((pool->literals[entry].exp.X_op == exp->X_op)
41628 + && (exp->X_op == O_symbol)
41629 + && (pool->literals[entry].exp.X_add_number
41630 + == exp->X_add_number)
41631 + && (pool->literals[entry].exp.X_add_symbol
41632 + == exp->X_add_symbol)
41633 + && (pool->literals[entry].exp.X_op_symbol
41634 + == exp->X_op_symbol))
41635 + break;
41636 + }
41637 +
41638 + /* Create an entry if we didn't find a match */
41639 + if (entry == pool->next_free_entry)
41640 + {
41641 + pool->literals = xrealloc(pool->literals,
41642 + sizeof(struct cpool_entry) * (entry + 1));
41643 + pool->literals[entry].exp = *exp;
41644 + pool->literals[entry].refcount = 0;
41645 + pool->next_free_entry++;
41646 + }
41647 +
41648 + if (index)
41649 + *index = entry;
41650 + if (ref)
41651 + pool->literals[entry].refcount++;
41652 +
41653 + return pool;
41654 +}
41655 +
41656 +struct avr32_operand
41657 +{
41658 + int id;
41659 + int is_signed;
41660 + int is_pcrel;
41661 + int align_order;
41662 + int (*match)(char *str);
41663 + void (*parse)(const struct avr32_operand *op, char *str, int opindex);
41664 +};
41665 +
41666 +static int
41667 +match_anything(char *str ATTRIBUTE_UNUSED)
41668 +{
41669 + return 1;
41670 +}
41671 +
41672 +static int
41673 +match_intreg(char *str)
41674 +{
41675 + int regid, ret = 1;
41676 +
41677 + regid = avr32_parse_intreg(str);
41678 + if (regid < 0)
41679 + ret = 0;
41680 +
41681 + pr_debug("match_intreg: `%s': %d\n", str, ret);
41682 +
41683 + return ret;
41684 +}
41685 +
41686 +static int
41687 +match_intreg_predec(char *str)
41688 +{
41689 + int regid;
41690 +
41691 + if (str[0] != '-' || str[1] != '-')
41692 + return 0;
41693 +
41694 + regid = avr32_parse_intreg(str + 2);
41695 + if (regid < 0)
41696 + return 0;
41697 +
41698 + return 1;
41699 +}
41700 +
41701 +static int
41702 +match_intreg_postinc(char *str)
41703 +{
41704 + int regid, ret = 1;
41705 + char *p, c;
41706 +
41707 + for (p = str; *p; p++)
41708 + if (*p == '+')
41709 + break;
41710 +
41711 + if (p[0] != '+' || p[1] != '+')
41712 + return 0;
41713 +
41714 + c = *p, *p = 0;
41715 + regid = avr32_parse_intreg(str);
41716 + if (regid < 0)
41717 + ret = 0;
41718 +
41719 + *p = c;
41720 + return ret;
41721 +}
41722 +
41723 +static int
41724 +match_intreg_lsl(char *str)
41725 +{
41726 + int regid, ret = 1;
41727 + char *p, c;
41728 +
41729 + for (p = str; *p; p++)
41730 + if (*p == '<')
41731 + break;
41732 +
41733 + if (p[0] && p[1] != '<')
41734 + return 0;
41735 +
41736 + c = *p, *p = 0;
41737 + regid = avr32_parse_intreg(str);
41738 + if (regid < 0)
41739 + ret = 0;
41740 +
41741 + *p = c;
41742 + return ret;
41743 +}
41744 +
41745 +static int
41746 +match_intreg_lsr(char *str)
41747 +{
41748 + int regid, ret = 1;
41749 + char *p, c;
41750 +
41751 + for (p = str; *p; p++)
41752 + if (*p == '>')
41753 + break;
41754 +
41755 + if (p[0] && p[1] != '>')
41756 + return 0;
41757 +
41758 + c = *p, *p = 0;
41759 +
41760 + regid = avr32_parse_intreg(str);
41761 + if (regid < 0)
41762 + ret = 0;
41763 +
41764 + *p = c;
41765 + return ret;
41766 +}
41767 +
41768 +static int
41769 +match_intreg_part(char *str)
41770 +{
41771 + int regid, ret = 1;
41772 + char *p, c;
41773 +
41774 + for (p = str; *p; p++)
41775 + if (*p == ':')
41776 + break;
41777 +
41778 + if (p[0] != ':' || !ISPRINT(p[1]) || p[2] != '\0')
41779 + return 0;
41780 +
41781 + c = *p, *p = 0;
41782 + regid = avr32_parse_intreg(str);
41783 + if (regid < 0)
41784 + ret = 0;
41785 +
41786 + *p = c;
41787 +
41788 + return ret;
41789 +}
41790 +
41791 +#define match_intreg_disp match_anything
41792 +
41793 +static int
41794 +match_intreg_index(char *str)
41795 +{
41796 + int regid, ret = 1;
41797 + char *p, *end, c;
41798 +
41799 + for (p = str; *p; p++)
41800 + if (*p == '[')
41801 + break;
41802 +
41803 + /* don't allow empty displacement here (it makes no sense) */
41804 + if (p[0] != '[')
41805 + return 0;
41806 +
41807 + for (end = p + 1; *end; end++) ;
41808 + if (*(--end) != ']')
41809 + return 0;
41810 +
41811 + c = *end, *end = 0;
41812 + if (!match_intreg_lsl(p + 1))
41813 + ret = 0;
41814 + *end = c;
41815 +
41816 + if (ret)
41817 + {
41818 + c = *p, *p = 0;
41819 + regid = avr32_parse_intreg(str);
41820 + if (regid < 0)
41821 + ret = 0;
41822 + *p = c;
41823 + }
41824 +
41825 + return ret;
41826 +}
41827 +
41828 +static int
41829 +match_intreg_xindex(char *str)
41830 +{
41831 + int regid, ret = 1;
41832 + char *p, *end, c;
41833 +
41834 + for (p = str; *p; p++)
41835 + if (*p == '[')
41836 + break;
41837 +
41838 + /* empty displacement makes no sense here either */
41839 + if (p[0] != '[')
41840 + return 0;
41841 +
41842 + for (end = p + 1; *end; end++)
41843 + if (*end == '<')
41844 + break;
41845 +
41846 + if (!streq(end, "<<2]"))
41847 + return 0;
41848 +
41849 + c = *end, *end = 0;
41850 + if (!match_intreg_part(p + 1))
41851 + ret = 0;
41852 + *end = c;
41853 +
41854 + if (ret)
41855 + {
41856 + c = *p, *p = 0;
41857 + regid = avr32_parse_intreg(str);
41858 + if (regid < 0)
41859 + ret = 0;
41860 + *p = c;
41861 + }
41862 +
41863 + return ret;
41864 +}
41865 +
41866 +/* The PC_UDISP_W operator may show up as a label or as a pc[disp]
41867 + expression. So there's no point in attempting to match this... */
41868 +#define match_pc_disp match_anything
41869 +
41870 +static int
41871 +match_sp(char *str)
41872 +{
41873 + /* SP in any form will do */
41874 + return avr32_parse_intreg(str) == AVR32_REG_SP;
41875 +}
41876 +
41877 +static int
41878 +match_sp_disp(char *str)
41879 +{
41880 + int regid, ret = 1;
41881 + char *p, c;
41882 +
41883 + for (p = str; *p; p++)
41884 + if (*p == '[')
41885 + break;
41886 +
41887 + /* allow empty displacement, meaning zero */
41888 + if (p[0] == '[')
41889 + {
41890 + char *end;
41891 + for (end = p + 1; *end; end++) ;
41892 + if (end[-1] != ']')
41893 + return 0;
41894 + }
41895 +
41896 + c = *p, *p = 0;
41897 + regid = avr32_parse_intreg(str);
41898 + if (regid != AVR32_REG_SP)
41899 + ret = 0;
41900 +
41901 + *p = c;
41902 + return ret;
41903 +}
41904 +
41905 +static int
41906 +match_cpno(char *str)
41907 +{
41908 + if (strncasecmp(str, "cp", 2) != 0)
41909 + return 0;
41910 + return 1;
41911 +}
41912 +
41913 +static int
41914 +match_cpreg(char *str)
41915 +{
41916 + if (strncasecmp(str, "cr", 2) != 0)
41917 + return 0;
41918 + return 1;
41919 +}
41920 +
41921 +/* We allow complex expressions, and register names may show up as
41922 + symbols. Just make sure immediate expressions are always matched
41923 + last. */
41924 +#define match_const match_anything
41925 +#define match_jmplabel match_anything
41926 +#define match_number match_anything
41927 +
41928 +/* Mnemonics that take reglists never accept anything else */
41929 +#define match_reglist8 match_anything
41930 +#define match_reglist9 match_anything
41931 +#define match_reglist16 match_anything
41932 +#define match_reglist_ldm match_anything
41933 +#define match_reglist_cp8 match_anything
41934 +#define match_reglist_cpd8 match_anything
41935 +
41936 +/* Ditto for retval, jospinc and mcall */
41937 +#define match_retval match_anything
41938 +#define match_jospinc match_anything
41939 +#define match_mcall match_anything
41940 +
41941 +/* COH is used to select between two different syntaxes */
41942 +static int
41943 +match_coh(char *str)
41944 +{
41945 + return strcasecmp(str, "coh") == 0;
41946 +}
41947 +
41948 +static int
41949 +match_fpreg(char *str)
41950 +{
41951 + unsigned long regid;
41952 + char *endptr;
41953 +
41954 + if ((str[0] != 'f' && str[0] != 'F')
41955 + || (str[1] != 'r' && str[1] != 'R'))
41956 + return 0;
41957 +
41958 + str += 2;
41959 + regid = strtoul(str, &endptr, 10);
41960 + if (!*str || *endptr)
41961 + return 0;
41962 +
41963 + return 1;
41964 +}
41965 +
41966 +static int
41967 +match_picoreg(char *str)
41968 +{
41969 + int regid;
41970 +
41971 + regid = avr32_parse_picoreg(str);
41972 + if (regid < 0)
41973 + return 0;
41974 + return 1;
41975 +}
41976 +
41977 +#define match_pico_reglist_w match_anything
41978 +#define match_pico_reglist_d match_anything
41979 +
41980 +static int
41981 +match_pico_in(char *str)
41982 +{
41983 + unsigned long regid;
41984 + char *end;
41985 +
41986 + if (strncasecmp(str, "in", 2) != 0)
41987 + return 0;
41988 +
41989 + str += 2;
41990 + regid = strtoul(str, &end, 10);
41991 + if (!*str || *end)
41992 + return 0;
41993 +
41994 + return 1;
41995 +}
41996 +
41997 +static int
41998 +match_pico_out0(char *str)
41999 +{
42000 + if (strcasecmp(str, "out0") != 0)
42001 + return 0;
42002 + return 1;
42003 +}
42004 +
42005 +static int
42006 +match_pico_out1(char *str)
42007 +{
42008 + if (strcasecmp(str, "out1") != 0)
42009 + return 0;
42010 + return 1;
42011 +}
42012 +
42013 +static int
42014 +match_pico_out2(char *str)
42015 +{
42016 + if (strcasecmp(str, "out2") != 0)
42017 + return 0;
42018 + return 1;
42019 +}
42020 +
42021 +static int
42022 +match_pico_out3(char *str)
42023 +{
42024 + if (strcasecmp(str, "out3") != 0)
42025 + return 0;
42026 + return 1;
42027 +}
42028 +
42029 +static void parse_nothing(const struct avr32_operand *op ATTRIBUTE_UNUSED,
42030 + char *str ATTRIBUTE_UNUSED,
42031 + int opindex ATTRIBUTE_UNUSED)
42032 +{
42033 + /* Do nothing (this is used for "match-only" operands like COH) */
42034 +}
42035 +
42036 +static void
42037 +parse_const(const struct avr32_operand *op, char *str,
42038 + int opindex ATTRIBUTE_UNUSED)
42039 +{
42040 + expressionS *exp = &current_insn.immediate;
42041 + expressionS *sym_exp;
42042 + int slot;
42043 + char *save;
42044 +
42045 + pr_debug("parse_const: `%s' (signed: %d, pcrel: %d, align: %d)\n",
42046 + str, op->is_signed, op->is_pcrel, op->align_order);
42047 +
42048 + save = input_line_pointer;
42049 + input_line_pointer = str;
42050 +
42051 + expression(exp);
42052 +
42053 + slot = current_insn.next_slot++;
42054 + current_insn.field_value[slot].align_order = op->align_order;
42055 + current_insn.pcrel = op->is_pcrel;
42056 +
42057 + switch (exp->X_op)
42058 + {
42059 + case O_illegal:
42060 + as_bad(_("illegal operand"));
42061 + break;
42062 + case O_absent:
42063 + as_bad(_("missing operand"));
42064 + break;
42065 + case O_constant:
42066 + pr_debug(" -> constant: %ld\n", (long)exp->X_add_number);
42067 + current_insn.field_value[slot].value = exp->X_add_number;
42068 + break;
42069 + case O_uminus:
42070 + pr_debug(" -> uminus\n");
42071 + sym_exp = symbol_get_value_expression(exp->X_add_symbol);
42072 + switch (sym_exp->X_op) {
42073 + case O_subtract:
42074 + pr_debug(" -> subtract: switching operands\n");
42075 + exp->X_op_symbol = sym_exp->X_add_symbol;
42076 + exp->X_add_symbol = sym_exp->X_op_symbol;
42077 + exp->X_op = O_subtract;
42078 + /* TODO: Remove the old X_add_symbol */
42079 + break;
42080 + default:
42081 + as_bad(_("Expression too complex\n"));
42082 + break;
42083 + }
42084 + break;
42085 +#if 0
42086 + case O_subtract:
42087 + /* Any expression subtracting a symbol from the current section
42088 + can be made PC-relative by adding the right offset. */
42089 + if (S_GET_SEGMENT(exp->X_op_symbol) == now_seg)
42090 + current_insn.pcrel = TRUE;
42091 + pr_debug(" -> subtract: pcrel? %s\n",
42092 + current_insn.pcrel ? "yes" : "no");
42093 + /* fall through */
42094 +#endif
42095 + default:
42096 + pr_debug(" -> (%p <%d> %p + %d)\n",
42097 + exp->X_add_symbol, exp->X_op, exp->X_op_symbol,
42098 + exp->X_add_number);
42099 + current_insn.field_value[slot].value = 0;
42100 + break;
42101 + }
42102 +
42103 + input_line_pointer = save;
42104 +}
42105 +
42106 +static void
42107 +parse_jmplabel(const struct avr32_operand *op, char *str,
42108 + int opindex ATTRIBUTE_UNUSED)
42109 +{
42110 + expressionS *exp = &current_insn.immediate;
42111 + int slot;
42112 + char *save;
42113 +
42114 + pr_debug("parse_jmplabel: `%s' (signed: %d, pcrel: %d, align: %d)\n",
42115 + str, op->is_signed, op->is_pcrel, op->align_order);
42116 +
42117 + save = input_line_pointer;
42118 + input_line_pointer = str;
42119 +
42120 + expression(exp);
42121 +
42122 + slot = current_insn.next_slot++;
42123 + current_insn.field_value[slot].align_order = op->align_order;
42124 + current_insn.pcrel = TRUE;
42125 +
42126 + switch (exp->X_op)
42127 + {
42128 + case O_illegal:
42129 + as_bad(_("illegal operand"));
42130 + break;
42131 + case O_absent:
42132 + as_bad(_("missing operand"));
42133 + break;
42134 + case O_constant:
42135 + pr_debug(" -> constant: %ld\n", (long)exp->X_add_number);
42136 + current_insn.field_value[slot].value = exp->X_add_number;
42137 + current_insn.pcrel = 0;
42138 + break;
42139 + default:
42140 + pr_debug(" -> (%p <%d> %p + %d)\n",
42141 + exp->X_add_symbol, exp->X_op, exp->X_op_symbol,
42142 + exp->X_add_number);
42143 + current_insn.field_value[slot].value = 0;
42144 + break;
42145 + }
42146 +
42147 + input_line_pointer = save;
42148 +}
42149 +
42150 +static void
42151 +parse_intreg(const struct avr32_operand *op ATTRIBUTE_UNUSED,
42152 + char *str, int opindex ATTRIBUTE_UNUSED)
42153 +{
42154 + int regid, slot;
42155 +
42156 + pr_debug("parse_intreg: `%s'\n", str);
42157 +
42158 + regid = avr32_parse_intreg(str);
42159 + assert(regid >= 0);
42160 +
42161 + slot = current_insn.next_slot++;
42162 + current_insn.field_value[slot].value = regid;
42163 + current_insn.field_value[slot].align_order = op->align_order;
42164 +}
42165 +
42166 +static void
42167 +parse_intreg_predec(const struct avr32_operand *op, char *str, int opindex)
42168 +{
42169 + parse_intreg(op, str + 2, opindex);
42170 +}
42171 +
42172 +static void
42173 +parse_intreg_postinc(const struct avr32_operand *op, char *str, int opindex)
42174 +{
42175 + char *p, c;
42176 +
42177 + pr_debug("parse_intreg_postinc: `%s'\n", str);
42178 +
42179 + for (p = str; *p != '+'; p++) ;
42180 +
42181 + c = *p, *p = 0;
42182 + parse_intreg(op, str, opindex);
42183 + *p = c;
42184 +}
42185 +
42186 +static void
42187 +parse_intreg_shift(const struct avr32_operand *op ATTRIBUTE_UNUSED,
42188 + char *str, int opindex ATTRIBUTE_UNUSED)
42189 +{
42190 + int regid, slot, shift = 0;
42191 + char *p, c;
42192 + char shiftop;
42193 +
42194 + pr_debug("parse Ry<<sa: `%s'\n", str);
42195 +
42196 + for (p = str; *p; p++)
42197 + if (*p == '<' || *p == '>')
42198 + break;
42199 +
42200 + shiftop = *p;
42201 +
42202 + c = *p, *p = 0;
42203 + regid = avr32_parse_intreg(str);
42204 + assert(regid >= 0);
42205 + *p = c;
42206 +
42207 + if (c)
42208 + {
42209 + if (p[0] != shiftop || p[1] != shiftop)
42210 + as_bad(_("expected shift operator in `%s'"), p);
42211 + else
42212 + {
42213 + expressionS exp;
42214 + char *saved;
42215 +
42216 + saved = input_line_pointer;
42217 + input_line_pointer = p + 2;
42218 + expression(&exp);
42219 + input_line_pointer = saved;
42220 +
42221 + if (exp.X_op != O_constant)
42222 + as_bad(_("shift amount must be a numeric constant"));
42223 + else
42224 + shift = exp.X_add_number;
42225 + }
42226 + }
42227 +
42228 + slot = current_insn.next_slot++;
42229 + current_insn.field_value[slot].value = regid;
42230 + slot = current_insn.next_slot++;
42231 + current_insn.field_value[slot].value = shift;
42232 +}
42233 +
42234 +/* The match() function selected the right opcode, so it doesn't
42235 + matter which way we shift any more. */
42236 +#define parse_intreg_lsl parse_intreg_shift
42237 +#define parse_intreg_lsr parse_intreg_shift
42238 +
42239 +static void
42240 +parse_intreg_part(const struct avr32_operand *op, char *str,
42241 + int opindex ATTRIBUTE_UNUSED)
42242 +{
42243 + static const char bparts[] = { 'b', 'l', 'u', 't' };
42244 + static const char hparts[] = { 'b', 't' };
42245 + unsigned int slot, sel;
42246 + int regid;
42247 + char *p, c;
42248 +
42249 + pr_debug("parse reg:part `%s'\n", str);
42250 +
42251 + for (p = str; *p; p++)
42252 + if (*p == ':')
42253 + break;
42254 +
42255 + c = *p, *p = 0;
42256 + regid = avr32_parse_intreg(str);
42257 + assert(regid >= 0);
42258 + *p = c;
42259 +
42260 + assert(c == ':');
42261 +
42262 + if (op->align_order)
42263 + {
42264 + for (sel = 0; sel < sizeof(hparts); sel++)
42265 + if (TOLOWER(p[1]) == hparts[sel])
42266 + break;
42267 +
42268 + if (sel >= sizeof(hparts))
42269 + {
42270 + as_bad(_("invalid halfword selector `%c' (must be either b or t)"),
42271 + p[1]);
42272 + sel = 0;
42273 + }
42274 + }
42275 + else
42276 + {
42277 + for (sel = 0; sel < sizeof(bparts); sel++)
42278 + if (TOLOWER(p[1]) == bparts[sel])
42279 + break;
42280 +
42281 + if (sel >= sizeof(bparts))
42282 + {
42283 + as_bad(_("invalid byte selector `%c' (must be one of b,l,u,t)"),
42284 + p[1]);
42285 + sel = 0;
42286 + }
42287 + }
42288 +
42289 + slot = current_insn.next_slot++;
42290 + current_insn.field_value[slot].value = regid;
42291 + slot = current_insn.next_slot++;
42292 + current_insn.field_value[slot].value = sel;
42293 +}
42294 +
42295 +/* This is the parser for "Rp[displacement]" expressions. In addition
42296 + to the "official" syntax, we accept a label as a replacement for
42297 + the register expression. This syntax implies Rp=PC and the
42298 + displacement is the pc-relative distance to the label. */
42299 +static void
42300 +parse_intreg_disp(const struct avr32_operand *op, char *str, int opindex)
42301 +{
42302 + expressionS *exp = &current_insn.immediate;
42303 + int slot, regid;
42304 + char *save, *p, c;
42305 +
42306 + pr_debug("parse_intreg_disp: `%s' (signed: %d, pcrel: %d, align: %d)\n",
42307 + str, op->is_signed, op->is_pcrel, op->align_order);
42308 +
42309 + for (p = str; *p; p++)
42310 + if (*p == '[')
42311 + break;
42312 +
42313 + slot = current_insn.next_slot++;
42314 +
42315 + /* First, check if we have a valid register either before '[' or as
42316 + the sole expression. If so, we use the Rp[disp] syntax. */
42317 + c = *p, *p = 0;
42318 + regid = avr32_parse_intreg(str);
42319 + *p = c;
42320 +
42321 + if (regid >= 0)
42322 + {
42323 + current_insn.field_value[slot].value = regid;
42324 +
42325 + slot = current_insn.next_slot++;
42326 + current_insn.field_value[slot].align_order = op->align_order;
42327 +
42328 + if (c == '[')
42329 + {
42330 + save = input_line_pointer;
42331 + input_line_pointer = p + 1;
42332 +
42333 + expression(exp);
42334 +
42335 + if (*input_line_pointer != ']')
42336 + as_bad(_("junk after displacement expression"));
42337 +
42338 + input_line_pointer = save;
42339 +
42340 + switch (exp->X_op)
42341 + {
42342 + case O_illegal:
42343 + as_bad(_("illegal displacement expression"));
42344 + break;
42345 + case O_absent:
42346 + as_bad(_("missing displacement expression"));
42347 + break;
42348 + case O_constant:
42349 + pr_debug(" -> constant: %ld\n", exp->X_add_number);
42350 + current_insn.field_value[slot].value = exp->X_add_number;
42351 + break;
42352 +#if 0
42353 + case O_subtract:
42354 + if (S_GET_SEGMENT(exp->X_op_symbol) == now_seg)
42355 + current_insn.pcrel = TRUE;
42356 + pr_debug(" -> subtract: pcrel? %s\n",
42357 + current_insn.pcrel ? "yes" : "no");
42358 + /* fall through */
42359 +#endif
42360 + default:
42361 + pr_debug(" -> (%p <%d> %p + %d)\n",
42362 + exp->X_add_symbol, exp->X_op, exp->X_op_symbol,
42363 + exp->X_add_number);
42364 + current_insn.field_value[slot].value = 0;
42365 + }
42366 + }
42367 + else
42368 + {
42369 + exp->X_op = O_constant;
42370 + exp->X_add_number = 0;
42371 + current_insn.field_value[slot].value = 0;
42372 + }
42373 + }
42374 + else
42375 + {
42376 + /* Didn't find a valid register. Try parsing it as a label. */
42377 + current_insn.field_value[slot].value = AVR32_REG_PC;
42378 + parse_jmplabel(op, str, opindex);
42379 + }
42380 +}
42381 +
42382 +static void
42383 +parse_intreg_index(const struct avr32_operand *op ATTRIBUTE_UNUSED,
42384 + char *str, int opindex ATTRIBUTE_UNUSED)
42385 +{
42386 + int slot, regid;
42387 + char *p, *end, c;
42388 +
42389 + for (p = str; *p; p++)
42390 + if (*p == '[')
42391 + break;
42392 +
42393 + assert(*p);
42394 +
42395 + c = *p, *p = 0;
42396 + regid = avr32_parse_intreg(str);
42397 + assert(regid >= 0);
42398 + *p = c;
42399 +
42400 + slot = current_insn.next_slot++;
42401 + current_insn.field_value[slot].value = regid;
42402 +
42403 + p++;
42404 + for (end = p; *end; end++)
42405 + if (*end == ']' || *end == '<')
42406 + break;
42407 +
42408 + assert(*end);
42409 +
42410 + c = *end, *end = 0;
42411 + regid = avr32_parse_intreg(p);
42412 + assert(regid >= 0);
42413 + *end = c;
42414 +
42415 + slot = current_insn.next_slot++;
42416 + current_insn.field_value[slot].value = regid;
42417 +
42418 + slot = current_insn.next_slot++;
42419 + current_insn.field_value[slot].value = 0;
42420 +
42421 + if (*end == '<')
42422 + {
42423 + expressionS exp;
42424 + char *save;
42425 +
42426 + p = end + 2;
42427 + for (end = p; *end; end++)
42428 + if (*end == ']')
42429 + break;
42430 +
42431 + assert(*end == ']');
42432 +
42433 + c = *end, *end = 0;
42434 + save = input_line_pointer;
42435 + input_line_pointer = p;
42436 + expression(&exp);
42437 +
42438 + if (*input_line_pointer)
42439 + as_bad(_("junk after shift expression"));
42440 +
42441 + *end = c;
42442 + input_line_pointer = save;
42443 +
42444 + if (exp.X_op == O_constant)
42445 + current_insn.field_value[slot].value = exp.X_add_number;
42446 + else
42447 + as_bad(_("shift expression too complex"));
42448 + }
42449 +}
42450 +
42451 +static void
42452 +parse_intreg_xindex(const struct avr32_operand *op, char *str, int opindex)
42453 +{
42454 + int slot, regid;
42455 + char *p, *end, c;
42456 +
42457 + for (p = str; *p; p++)
42458 + if (*p == '[')
42459 + break;
42460 +
42461 + assert(*p);
42462 +
42463 + c = *p, *p = 0;
42464 + regid = avr32_parse_intreg(str);
42465 + assert(regid >= 0);
42466 + *p = c;
42467 +
42468 + slot = current_insn.next_slot++;
42469 + current_insn.field_value[slot].value = regid;
42470 +
42471 + p++;
42472 + for (end = p; *end; end++)
42473 + if (*end == '<')
42474 + break;
42475 +
42476 + assert(*end);
42477 +
42478 + c = *end, *end = 0;
42479 + parse_intreg_part(op, p, opindex);
42480 + *end = c;
42481 +}
42482 +
42483 +static void
42484 +parse_pc_disp(const struct avr32_operand *op, char *str, int opindex)
42485 +{
42486 + char *p, c;
42487 +
42488 + for (p = str; *p; p++)
42489 + if (*p == '[')
42490 + break;
42491 +
42492 + /* The lddpc instruction comes in two different syntax variants:
42493 + lddpc reg, expression
42494 + lddpc reg, pc[disp]
42495 + If the operand contains a '[', we use the second form. */
42496 + if (*p)
42497 + {
42498 + int regid;
42499 +
42500 + c = *p, *p = 0;
42501 + regid = avr32_parse_intreg(str);
42502 + *p = c;
42503 + if (regid == AVR32_REG_PC)
42504 + {
42505 + char *end;
42506 +
42507 + for (end = ++p; *end; end++) ;
42508 + if (*(--end) != ']')
42509 + as_bad(_("unrecognized form of instruction: `%s'"), str);
42510 + else
42511 + {
42512 + c = *end, *end = 0;
42513 + parse_const(op, p, opindex);
42514 + *end = c;
42515 + current_insn.pcrel = 0;
42516 + }
42517 + }
42518 + else
42519 + as_bad(_("unrecognized form of instruction: `%s'"), str);
42520 + }
42521 + else
42522 + {
42523 + parse_jmplabel(op, str, opindex);
42524 + }
42525 +}
42526 +
42527 +static void parse_sp(const struct avr32_operand *op ATTRIBUTE_UNUSED,
42528 + char *str ATTRIBUTE_UNUSED,
42529 + int opindex ATTRIBUTE_UNUSED)
42530 +{
42531 + int slot;
42532 +
42533 + slot = current_insn.next_slot++;
42534 + current_insn.field_value[slot].value = AVR32_REG_SP;
42535 +}
42536 +
42537 +static void
42538 +parse_sp_disp(const struct avr32_operand *op, char *str, int opindex)
42539 +{
42540 + char *p, c;
42541 +
42542 + for (; *str; str++)
42543 + if (*str == '[')
42544 + break;
42545 +
42546 + assert(*str);
42547 +
42548 + for (p = ++str; *p; p++)
42549 + if (*p == ']')
42550 + break;
42551 +
42552 + c = *p, *p = 0;
42553 + parse_const(op, str, opindex);
42554 + *p = c;
42555 +}
42556 +
42557 +static void
42558 +parse_cpno(const struct avr32_operand *op ATTRIBUTE_UNUSED, char *str,
42559 + int opindex ATTRIBUTE_UNUSED)
42560 +{
42561 + int slot;
42562 +
42563 + str += 2;
42564 + if (*str == '#')
42565 + str++;
42566 + if (*str < '0' || *str > '7' || str[1])
42567 + as_bad(_("invalid coprocessor `%s'"), str);
42568 +
42569 + slot = current_insn.next_slot++;
42570 + current_insn.field_value[slot].value = *str - '0';
42571 +}
42572 +
42573 +static void
42574 +parse_cpreg(const struct avr32_operand *op, char *str,
42575 + int opindex ATTRIBUTE_UNUSED)
42576 +{
42577 + unsigned int crid;
42578 + int slot;
42579 + char *endptr;
42580 +
42581 + str += 2;
42582 + crid = strtoul(str, &endptr, 10);
42583 + if (*endptr || crid > 15 || crid & ((1 << op->align_order) - 1))
42584 + as_bad(_("invalid coprocessor register `%s'"), str);
42585 +
42586 + crid >>= op->align_order;
42587 +
42588 + slot = current_insn.next_slot++;
42589 + current_insn.field_value[slot].value = crid;
42590 +}
42591 +
42592 +static void
42593 +parse_number(const struct avr32_operand *op, char *str,
42594 + int opindex ATTRIBUTE_UNUSED)
42595 +{
42596 + expressionS exp;
42597 + int slot;
42598 + char *save;
42599 +
42600 + save = input_line_pointer;
42601 + input_line_pointer = str;
42602 + expression(&exp);
42603 + input_line_pointer = save;
42604 +
42605 + slot = current_insn.next_slot++;
42606 + current_insn.field_value[slot].align_order = op->align_order;
42607 +
42608 + if (exp.X_op == O_constant)
42609 + current_insn.field_value[slot].value = exp.X_add_number;
42610 + else
42611 + as_bad(_("invalid numeric expression `%s'"), str);
42612 +}
42613 +
42614 +static void
42615 +parse_reglist8(const struct avr32_operand *op ATTRIBUTE_UNUSED,
42616 + char *str, int opindex ATTRIBUTE_UNUSED)
42617 +{
42618 + unsigned long regmask;
42619 + unsigned long value = 0;
42620 + int slot;
42621 + char *tail;
42622 +
42623 + regmask = avr32_parse_reglist(str, &tail);
42624 + if (*tail)
42625 + as_bad(_("invalid register list `%s'"), str);
42626 + else
42627 + {
42628 + if (avr32_make_regmask8(regmask, &value))
42629 + as_bad(_("register list `%s' doesn't fit"), str);
42630 + }
42631 +
42632 + slot = current_insn.next_slot++;
42633 + current_insn.field_value[slot].value = value;
42634 +}
42635 +
42636 +static int
42637 +parse_reglist_tail(char *str, unsigned long regmask)
42638 +{
42639 + expressionS exp;
42640 + char *save, *p, c;
42641 + int regid;
42642 +
42643 + for (p = str + 1; *p; p++)
42644 + if (*p == '=')
42645 + break;
42646 +
42647 + if (!*p)
42648 + {
42649 + as_bad(_("invalid register list `%s'"), str);
42650 + return -2;
42651 + }
42652 +
42653 + c = *p, *p = 0;
42654 + regid = avr32_parse_intreg(str);
42655 + *p = c;
42656 +
42657 + if (regid != 12)
42658 + {
42659 + as_bad(_("invalid register list `%s'"), str);
42660 + return -2;
42661 + }
42662 +
42663 + /* If we have an assignment, we must pop PC and we must _not_
42664 + pop LR or R12 */
42665 + if (!(regmask & (1 << AVR32_REG_PC)))
42666 + {
42667 + as_bad(_("return value specified for non-return instruction"));
42668 + return -2;
42669 + }
42670 + else if (regmask & ((1 << AVR32_REG_R12) | (1 << AVR32_REG_LR)))
42671 + {
42672 + as_bad(_("can't pop LR or R12 when specifying return value"));
42673 + return -2;
42674 + }
42675 +
42676 + save = input_line_pointer;
42677 + input_line_pointer = p + 1;
42678 + expression(&exp);
42679 + input_line_pointer = save;
42680 +
42681 + if (exp.X_op != O_constant
42682 + || exp.X_add_number < -1
42683 + || exp.X_add_number > 1)
42684 + {
42685 + as_bad(_("invalid return value `%s'"), str);
42686 + return -2;
42687 + }
42688 +
42689 + return exp.X_add_number;
42690 +}
42691 +
42692 +static void
42693 +parse_reglist9(const struct avr32_operand *op ATTRIBUTE_UNUSED,
42694 + char *str, int opindex ATTRIBUTE_UNUSED)
42695 +{
42696 + unsigned long regmask;
42697 + unsigned long value = 0, kbit = 0;
42698 + int slot;
42699 + char *tail;
42700 +
42701 + regmask = avr32_parse_reglist(str, &tail);
42702 + /* printf("parsed reglist16: %04lx, tail: `%s'\n", regmask, tail); */
42703 + if (*tail)
42704 + {
42705 + int retval;
42706 +
42707 + retval = parse_reglist_tail(tail, regmask);
42708 +
42709 + switch (retval)
42710 + {
42711 + case -1:
42712 + regmask |= 1 << AVR32_REG_LR;
42713 + break;
42714 + case 0:
42715 + break;
42716 + case 1:
42717 + regmask |= 1 << AVR32_REG_R12;
42718 + break;
42719 + default:
42720 + break;
42721 + }
42722 +
42723 + kbit = 1;
42724 + }
42725 +
42726 + if (avr32_make_regmask8(regmask, &value))
42727 + as_bad(_("register list `%s' doesn't fit"), str);
42728 +
42729 +
42730 + slot = current_insn.next_slot++;
42731 + current_insn.field_value[slot].value = (value << 1) | kbit;
42732 +}
42733 +
42734 +static void
42735 +parse_reglist16(const struct avr32_operand *op ATTRIBUTE_UNUSED,
42736 + char *str, int opindex ATTRIBUTE_UNUSED)
42737 +{
42738 + unsigned long regmask;
42739 + int slot;
42740 + char *tail;
42741 +
42742 + regmask = avr32_parse_reglist(str, &tail);
42743 + if (*tail)
42744 + as_bad(_("invalid register list `%s'"), str);
42745 +
42746 + slot = current_insn.next_slot++;
42747 + current_insn.field_value[slot].value = regmask;
42748 +}
42749 +
42750 +static void
42751 +parse_reglist_ldm(const struct avr32_operand *op ATTRIBUTE_UNUSED,
42752 + char *str, int opindex ATTRIBUTE_UNUSED)
42753 +{
42754 + unsigned long regmask;
42755 + int slot, rp, w_bit = 0;
42756 + char *tail, *p, c;
42757 +
42758 + for (p = str; *p && *p != ','; p++)
42759 + if (*p == '+')
42760 + break;
42761 +
42762 + c = *p, *p = 0;
42763 + rp = avr32_parse_intreg(str);
42764 + *p = c;
42765 + if (rp < 0)
42766 + {
42767 + as_bad(_("invalid destination register in `%s'"), str);
42768 + return;
42769 + }
42770 +
42771 + if (p[0] == '+' && p[1] == '+')
42772 + {
42773 + w_bit = 1;
42774 + p += 2;
42775 + }
42776 +
42777 + if (*p != ',')
42778 + {
42779 + as_bad(_("expected `,' after destination register in `%s'"), str);
42780 + return;
42781 + }
42782 +
42783 + str = p + 1;
42784 + regmask = avr32_parse_reglist(str, &tail);
42785 + if (*tail)
42786 + {
42787 + int retval;
42788 +
42789 + if (rp != AVR32_REG_SP)
42790 + {
42791 + as_bad(_("junk at end of line: `%s'"), tail);
42792 + return;
42793 + }
42794 +
42795 + rp = AVR32_REG_PC;
42796 +
42797 + retval = parse_reglist_tail(tail, regmask);
42798 +
42799 + switch (retval)
42800 + {
42801 + case -1:
42802 + regmask |= 1 << AVR32_REG_LR;
42803 + break;
42804 + case 0:
42805 + break;
42806 + case 1:
42807 + regmask |= 1 << AVR32_REG_R12;
42808 + break;
42809 + default:
42810 + return;
42811 + }
42812 + }
42813 +
42814 + slot = current_insn.next_slot++;
42815 + current_insn.field_value[slot].value = rp;
42816 + slot = current_insn.next_slot++;
42817 + current_insn.field_value[slot].value = w_bit;
42818 + slot = current_insn.next_slot++;
42819 + current_insn.field_value[slot].value = regmask;
42820 +}
42821 +
42822 +static void
42823 +parse_reglist_cp8(const struct avr32_operand *op ATTRIBUTE_UNUSED,
42824 + char *str, int opindex ATTRIBUTE_UNUSED)
42825 +{
42826 + unsigned long regmask;
42827 + int slot, h_bit = 0;
42828 + char *tail;
42829 +
42830 + regmask = avr32_parse_cpreglist(str, &tail);
42831 + if (*tail)
42832 + as_bad(_("junk at end of line: `%s'"), tail);
42833 + else if (regmask & 0xffUL)
42834 + {
42835 + if (regmask & 0xff00UL)
42836 + as_bad(_("register list `%s' doesn't fit"), str);
42837 + regmask &= 0xff;
42838 + }
42839 + else if (regmask & 0xff00UL)
42840 + {
42841 + regmask >>= 8;
42842 + h_bit = 1;
42843 + }
42844 + else
42845 + as_warn(_("register list is empty"));
42846 +
42847 + slot = current_insn.next_slot++;
42848 + current_insn.field_value[slot].value = regmask;
42849 + slot = current_insn.next_slot++;
42850 + current_insn.field_value[slot].value = h_bit;
42851 +}
42852 +
42853 +static void
42854 +parse_reglist_cpd8(const struct avr32_operand *op ATTRIBUTE_UNUSED,
42855 + char *str, int opindex ATTRIBUTE_UNUSED)
42856 +{
42857 + unsigned long regmask, regmask_d = 0;
42858 + int slot, i;
42859 + char *tail;
42860 +
42861 + regmask = avr32_parse_cpreglist(str, &tail);
42862 + if (*tail)
42863 + as_bad(_("junk at end of line: `%s'"), tail);
42864 +
42865 + for (i = 0; i < 8; i++)
42866 + {
42867 + if (regmask & 1)
42868 + {
42869 + if (!(regmask & 2))
42870 + {
42871 + as_bad(_("register list `%s' doesn't fit"), str);
42872 + break;
42873 + }
42874 + regmask_d |= 1 << i;
42875 + }
42876 + else if (regmask & 2)
42877 + {
42878 + as_bad(_("register list `%s' doesn't fit"), str);
42879 + break;
42880 + }
42881 +
42882 + regmask >>= 2;
42883 + }
42884 +
42885 + slot = current_insn.next_slot++;
42886 + current_insn.field_value[slot].value = regmask_d;
42887 +}
42888 +
42889 +static void
42890 +parse_retval(const struct avr32_operand *op ATTRIBUTE_UNUSED,
42891 + char *str, int opindex ATTRIBUTE_UNUSED)
42892 +{
42893 + int regid, slot;
42894 +
42895 + regid = avr32_parse_intreg(str);
42896 + if (regid < 0)
42897 + {
42898 + expressionS exp;
42899 + char *save;
42900 +
42901 + regid = 0;
42902 +
42903 + save = input_line_pointer;
42904 + input_line_pointer = str;
42905 + expression(&exp);
42906 + input_line_pointer = save;
42907 +
42908 + if (exp.X_op != O_constant)
42909 + as_bad(_("invalid return value `%s'"), str);
42910 + else
42911 + switch (exp.X_add_number)
42912 + {
42913 + case -1:
42914 + regid = AVR32_REG_LR;
42915 + break;
42916 + case 0:
42917 + regid = AVR32_REG_SP;
42918 + break;
42919 + case 1:
42920 + regid = AVR32_REG_PC;
42921 + break;
42922 + default:
42923 + as_bad(_("invalid return value `%s'"), str);
42924 + break;
42925 + }
42926 + }
42927 +
42928 + slot = current_insn.next_slot++;
42929 + current_insn.field_value[slot].value = regid;
42930 +}
42931 +
42932 +#define parse_mcall parse_intreg_disp
42933 +
42934 +static void
42935 +parse_jospinc(const struct avr32_operand *op ATTRIBUTE_UNUSED,
42936 + char *str, int opindex ATTRIBUTE_UNUSED)
42937 +{
42938 + expressionS exp;
42939 + int slot;
42940 + char *save;
42941 +
42942 + save = input_line_pointer;
42943 + input_line_pointer = str;
42944 + expression(&exp);
42945 + input_line_pointer = save;
42946 +
42947 + slot = current_insn.next_slot++;
42948 +
42949 + if (exp.X_op == O_constant)
42950 + {
42951 + if (exp.X_add_number > 0)
42952 + exp.X_add_number--;
42953 + current_insn.field_value[slot].value = exp.X_add_number;
42954 + }
42955 + else
42956 + as_bad(_("invalid numeric expression `%s'"), str);
42957 +}
42958 +
42959 +#define parse_coh parse_nothing
42960 +
42961 +static void
42962 +parse_fpreg(const struct avr32_operand *op,
42963 + char *str, int opindex ATTRIBUTE_UNUSED)
42964 +{
42965 + unsigned long regid;
42966 + int slot;
42967 +
42968 + regid = strtoul(str + 2, NULL, 10);
42969 +
42970 + if ((regid >= 16) || (regid & ((1 << op->align_order) - 1)))
42971 + as_bad(_("invalid floating-point register `%s'"), str);
42972 +
42973 + slot = current_insn.next_slot++;
42974 + current_insn.field_value[slot].value = regid;
42975 + current_insn.field_value[slot].align_order = op->align_order;
42976 +}
42977 +
42978 +static void
42979 +parse_picoreg(const struct avr32_operand *op,
42980 + char *str, int opindex ATTRIBUTE_UNUSED)
42981 +{
42982 + unsigned long regid;
42983 + int slot;
42984 +
42985 + regid = avr32_parse_picoreg(str);
42986 + if (regid & ((1 << op->align_order) - 1))
42987 + as_bad(_("invalid double-word PiCo register `%s'"), str);
42988 +
42989 + slot = current_insn.next_slot++;
42990 + current_insn.field_value[slot].value = regid;
42991 + current_insn.field_value[slot].align_order = op->align_order;
42992 +}
42993 +
42994 +static void
42995 +parse_pico_reglist_w(const struct avr32_operand *op ATTRIBUTE_UNUSED,
42996 + char *str, int opindex ATTRIBUTE_UNUSED)
42997 +{
42998 + unsigned long regmask;
42999 + int slot, h_bit = 0;
43000 + char *tail;
43001 +
43002 + regmask = avr32_parse_pico_reglist(str, &tail);
43003 + if (*tail)
43004 + as_bad(_("junk at end of line: `%s'"), tail);
43005 +
43006 + if (regmask & 0x00ffUL)
43007 + {
43008 + if (regmask & 0xff00UL)
43009 + as_bad(_("register list `%s' doesn't fit"), str);
43010 + regmask &= 0x00ffUL;
43011 + }
43012 + else if (regmask & 0xff00UL)
43013 + {
43014 + regmask >>= 8;
43015 + h_bit = 1;
43016 + }
43017 + else
43018 + as_warn(_("register list is empty"));
43019 +
43020 + slot = current_insn.next_slot++;
43021 + current_insn.field_value[slot].value = regmask;
43022 + slot = current_insn.next_slot++;
43023 + current_insn.field_value[slot].value = h_bit;
43024 +}
43025 +
43026 +static void
43027 +parse_pico_reglist_d(const struct avr32_operand *op ATTRIBUTE_UNUSED,
43028 + char *str, int opindex ATTRIBUTE_UNUSED)
43029 +{
43030 + unsigned long regmask, regmask_d = 0;
43031 + int slot, i;
43032 + char *tail;
43033 +
43034 + regmask = avr32_parse_pico_reglist(str, &tail);
43035 + if (*tail)
43036 + as_bad(_("junk at end of line: `%s'"), tail);
43037 +
43038 + for (i = 0; i < 8; i++)
43039 + {
43040 + if (regmask & 1)
43041 + {
43042 + if (!(regmask & 2))
43043 + {
43044 + as_bad(_("register list `%s' doesn't fit"), str);
43045 + break;
43046 + }
43047 + regmask_d |= 1 << i;
43048 + }
43049 + else if (regmask & 2)
43050 + {
43051 + as_bad(_("register list `%s' doesn't fit"), str);
43052 + break;
43053 + }
43054 +
43055 + regmask >>= 2;
43056 + }
43057 +
43058 + slot = current_insn.next_slot++;
43059 + current_insn.field_value[slot].value = regmask_d;
43060 +}
43061 +
43062 +static void
43063 +parse_pico_in(const struct avr32_operand *op ATTRIBUTE_UNUSED,
43064 + char *str, int opindex ATTRIBUTE_UNUSED)
43065 +{
43066 + unsigned long regid;
43067 + int slot;
43068 +
43069 + regid = strtoul(str + 2, NULL, 10);
43070 +
43071 + if (regid >= 12)
43072 + as_bad(_("invalid PiCo IN register `%s'"), str);
43073 +
43074 + slot = current_insn.next_slot++;
43075 + current_insn.field_value[slot].value = regid;
43076 + current_insn.field_value[slot].align_order = 0;
43077 +}
43078 +
43079 +#define parse_pico_out0 parse_nothing
43080 +#define parse_pico_out1 parse_nothing
43081 +#define parse_pico_out2 parse_nothing
43082 +#define parse_pico_out3 parse_nothing
43083 +
43084 +#define OP(name, sgn, pcrel, align, func) \
43085 + { AVR32_OPERAND_##name, sgn, pcrel, align, match_##func, parse_##func }
43086 +
43087 +struct avr32_operand avr32_operand_table[] = {
43088 + OP(INTREG, 0, 0, 0, intreg),
43089 + OP(INTREG_PREDEC, 0, 0, 0, intreg_predec),
43090 + OP(INTREG_POSTINC, 0, 0, 0, intreg_postinc),
43091 + OP(INTREG_LSL, 0, 0, 0, intreg_lsl),
43092 + OP(INTREG_LSR, 0, 0, 0, intreg_lsr),
43093 + OP(INTREG_BSEL, 0, 0, 0, intreg_part),
43094 + OP(INTREG_HSEL, 0, 0, 1, intreg_part),
43095 + OP(INTREG_SDISP, 1, 0, 0, intreg_disp),
43096 + OP(INTREG_SDISP_H, 1, 0, 1, intreg_disp),
43097 + OP(INTREG_SDISP_W, 1, 0, 2, intreg_disp),
43098 + OP(INTREG_UDISP, 0, 0, 0, intreg_disp),
43099 + OP(INTREG_UDISP_H, 0, 0, 1, intreg_disp),
43100 + OP(INTREG_UDISP_W, 0, 0, 2, intreg_disp),
43101 + OP(INTREG_INDEX, 0, 0, 0, intreg_index),
43102 + OP(INTREG_XINDEX, 0, 0, 0, intreg_xindex),
43103 + OP(DWREG, 0, 0, 1, intreg),
43104 + OP(PC_UDISP_W, 0, 1, 2, pc_disp),
43105 + OP(SP, 0, 0, 0, sp),
43106 + OP(SP_UDISP_W, 0, 0, 2, sp_disp),
43107 + OP(CPNO, 0, 0, 0, cpno),
43108 + OP(CPREG, 0, 0, 0, cpreg),
43109 + OP(CPREG_D, 0, 0, 1, cpreg),
43110 + OP(UNSIGNED_CONST, 0, 0, 0, const),
43111 + OP(UNSIGNED_CONST_W, 0, 0, 2, const),
43112 + OP(SIGNED_CONST, 1, 0, 0, const),
43113 + OP(SIGNED_CONST_W, 1, 0, 2, const),
43114 + OP(JMPLABEL, 1, 1, 1, jmplabel),
43115 + OP(UNSIGNED_NUMBER, 0, 0, 0, number),
43116 + OP(UNSIGNED_NUMBER_W, 0, 0, 2, number),
43117 + OP(REGLIST8, 0, 0, 0, reglist8),
43118 + OP(REGLIST9, 0, 0, 0, reglist9),
43119 + OP(REGLIST16, 0, 0, 0, reglist16),
43120 + OP(REGLIST_LDM, 0, 0, 0, reglist_ldm),
43121 + OP(REGLIST_CP8, 0, 0, 0, reglist_cp8),
43122 + OP(REGLIST_CPD8, 0, 0, 0, reglist_cpd8),
43123 + OP(RETVAL, 0, 0, 0, retval),
43124 + OP(MCALL, 1, 0, 2, mcall),
43125 + OP(JOSPINC, 0, 0, 0, jospinc),
43126 + OP(COH, 0, 0, 0, coh),
43127 + OP(FPREG_S, 0, 0, 0, fpreg),
43128 + OP(FPREG_D, 0, 0, 1, fpreg),
43129 + OP(PICO_REG_W, 0, 0, 0, picoreg),
43130 + OP(PICO_REG_D, 0, 0, 1, picoreg),
43131 + OP(PICO_REGLIST_W, 0, 0, 0, pico_reglist_w),
43132 + OP(PICO_REGLIST_D, 0, 0, 0, pico_reglist_d),
43133 + OP(PICO_IN, 0, 0, 0, pico_in),
43134 + OP(PICO_OUT0, 0, 0, 0, pico_out0),
43135 + OP(PICO_OUT1, 0, 0, 0, pico_out1),
43136 + OP(PICO_OUT2, 0, 0, 0, pico_out2),
43137 + OP(PICO_OUT3, 0, 0, 0, pico_out3),
43138 +};
43139 +
43140 +symbolS *
43141 +md_undefined_symbol (char *name ATTRIBUTE_UNUSED)
43142 +{
43143 + pr_debug("md_undefined_symbol: %s\n", name);
43144 + return 0;
43145 +}
43146 +
43147 +struct avr32_relax_type
43148 +{
43149 + long lower_bound;
43150 + long upper_bound;
43151 + unsigned char align;
43152 + unsigned char length;
43153 + signed short next;
43154 +};
43155 +
43156 +#define EMPTY { 0, 0, 0, 0, -1 }
43157 +#define C(lower, upper, align, next) \
43158 + { (lower), (upper), (align), 2, AVR32_OPC_##next }
43159 +#define E(lower, upper, align) \
43160 + { (lower), (upper), (align), 4, -1 }
43161 +
43162 +static const struct avr32_relax_type avr32_relax_table[] =
43163 + {
43164 + /* 0 */
43165 + EMPTY, EMPTY, EMPTY, EMPTY, EMPTY, EMPTY, EMPTY, EMPTY,
43166 + EMPTY, EMPTY, EMPTY,
43167 + E(0, 65535, 0), E(0, 65535, 0), E(0, 65535, 0), E(0, 65535, 0),
43168 + EMPTY,
43169 + /* 16 */
43170 + EMPTY, EMPTY, EMPTY, EMPTY,
43171 +
43172 + C(-256, 254, 1, BREQ2), C(-256, 254, 1, BRNE2),
43173 + C(-256, 254, 1, BRCC2), C(-256, 254, 1, BRCS2),
43174 + C(-256, 254, 1, BRGE2), C(-256, 254, 1, BRLT2),
43175 + C(-256, 254, 1, BRMI2), C(-256, 254, 1, BRPL2),
43176 + E(-2097152, 2097150, 1), E(-2097152, 2097150, 1),
43177 + E(-2097152, 2097150, 1), E(-2097152, 2097150, 1),
43178 + /* 32 */
43179 + E(-2097152, 2097150, 1), E(-2097152, 2097150, 1),
43180 + E(-2097152, 2097150, 1), E(-2097152, 2097150, 1),
43181 + E(-2097152, 2097150, 1), E(-2097152, 2097150, 1),
43182 + E(-2097152, 2097150, 1), E(-2097152, 2097150, 1),
43183 + E(-2097152, 2097150, 1), E(-2097152, 2097150, 1),
43184 + E(-2097152, 2097150, 1), E(-2097152, 2097150, 1),
43185 +
43186 + EMPTY, EMPTY, EMPTY, EMPTY,
43187 + /* 48 */
43188 + EMPTY, EMPTY, EMPTY, EMPTY, EMPTY, EMPTY, EMPTY, EMPTY,
43189 + EMPTY, EMPTY, EMPTY,
43190 +
43191 + C(-32, 31, 0, CP_W3), E(-1048576, 1048575, 0),
43192 +
43193 + EMPTY, EMPTY, EMPTY,
43194 + /* 64: csrfcz */
43195 + EMPTY, EMPTY, EMPTY, EMPTY, EMPTY, EMPTY,
43196 + E(0, 65535, 0), E(0, 65535, 0),
43197 + EMPTY, EMPTY, EMPTY, EMPTY, EMPTY, EMPTY, EMPTY,
43198 + E(-32768, 32767, 0),
43199 + /* 80: LD_SB2 */
43200 + EMPTY, EMPTY, EMPTY, EMPTY, EMPTY,
43201 +
43202 + C(0, 7, 0, LD_UB4), E(-32768, 32767, 0),
43203 +
43204 + EMPTY,
43205 + EMPTY, EMPTY,
43206 +
43207 + C(0, 14, 1, LD_SH4), E(-32768, 32767, 0),
43208 +
43209 + EMPTY, EMPTY, EMPTY,
43210 +
43211 + C(0, 14, 1, LD_UH4), E(-32768, 32767, 0),
43212 +
43213 + EMPTY, EMPTY, EMPTY, EMPTY,
43214 +
43215 + C(0, 124, 2, LD_W4), E(-32768, 32767, 0),
43216 +
43217 + E(0, 1020, 2), /* LDC_D1 */
43218 + EMPTY, EMPTY,
43219 + E(0, 1020, 2), /* LDC_W1 */
43220 + EMPTY, EMPTY,
43221 + E(0, 16380, 2), /* LDC0_D */
43222 + E(0, 16380, 2), /* LDC0_W */
43223 + EMPTY, EMPTY, EMPTY, EMPTY,
43224 +
43225 + C(0, 508, 2, LDDPC_EXT), E(-32768, 32767, 0),
43226 +
43227 + EMPTY,
43228 + EMPTY, EMPTY, EMPTY, EMPTY, EMPTY, EMPTY, EMPTY, EMPTY,
43229 + EMPTY, EMPTY, EMPTY, EMPTY, EMPTY, EMPTY, EMPTY, EMPTY,
43230 + /* 128: MACHH_W */
43231 + EMPTY, EMPTY, EMPTY, EMPTY, EMPTY, EMPTY,
43232 + E(-131072, 131068, 2), /* MCALL */
43233 + E(0, 1020, 2), /* MFDR */
43234 + E(0, 1020, 2), /* MFSR */
43235 + EMPTY, EMPTY,
43236 +
43237 + C(-128, 127, 0, MOV2), E(-1048576, 1048575, 0),
43238 +
43239 + EMPTY, EMPTY, EMPTY,
43240 + EMPTY, EMPTY, EMPTY, EMPTY, EMPTY, EMPTY, EMPTY, EMPTY,
43241 + EMPTY, EMPTY, EMPTY, EMPTY, EMPTY,
43242 +
43243 + E(-128, 127, 0), /* MOVEQ2 */
43244 + E(-128, 127, 0), /* MOVNE2 */
43245 + E(-128, 127, 0), /* MOVCC2 */
43246 + E(-128, 127, 0), /* 160: MOVCS2 */
43247 + E(-128, 127, 0), /* MOVGE2 */
43248 + E(-128, 127, 0), /* MOVLT2 */
43249 + E(-128, 127, 0), /* MOVMI2 */
43250 + E(-128, 127, 0), /* MOVPL2 */
43251 + E(-128, 127, 0), /* MOVLS2 */
43252 + E(-128, 127, 0), /* MOVGT2 */
43253 + E(-128, 127, 0), /* MOVLE2 */
43254 + E(-128, 127, 0), /* MOVHI2 */
43255 + E(-128, 127, 0), /* MOVVS2 */
43256 + E(-128, 127, 0), /* MOVVC2 */
43257 + E(-128, 127, 0), /* MOVQS2 */
43258 + E(-128, 127, 0), /* MOVAL2 */
43259 +
43260 + E(0, 1020, 2), /* MTDR */
43261 + E(0, 1020, 2), /* MTSR */
43262 + EMPTY,
43263 + EMPTY,
43264 + E(-128, 127, 0), /* MUL3 */
43265 + EMPTY, EMPTY, EMPTY, EMPTY, EMPTY, EMPTY,
43266 + EMPTY, EMPTY, EMPTY, EMPTY, EMPTY, EMPTY, EMPTY, EMPTY,
43267 + /* 192: MVCR_W */
43268 + EMPTY, EMPTY, EMPTY, EMPTY, EMPTY, EMPTY, EMPTY, EMPTY,
43269 + E(0, 65535, 0), E(0, 65535, 0),
43270 + EMPTY, EMPTY, EMPTY, EMPTY, EMPTY, EMPTY,
43271 + EMPTY, EMPTY, EMPTY, EMPTY, EMPTY, EMPTY, EMPTY, EMPTY,
43272 + EMPTY, EMPTY, EMPTY, EMPTY, EMPTY, EMPTY, EMPTY, EMPTY,
43273 + /* 224: PASR_H */
43274 + EMPTY, EMPTY, EMPTY, EMPTY, EMPTY, EMPTY, EMPTY, EMPTY,
43275 + EMPTY, EMPTY, EMPTY, EMPTY, EMPTY, EMPTY, EMPTY, EMPTY,
43276 + EMPTY, EMPTY, EMPTY, EMPTY, EMPTY, EMPTY, EMPTY, EMPTY,
43277 + EMPTY, EMPTY, EMPTY, EMPTY, EMPTY, EMPTY, EMPTY, EMPTY,
43278 + /* 256: PUNPCKSB_H */
43279 + EMPTY, EMPTY, EMPTY, EMPTY, EMPTY,
43280 +
43281 + C(-1024, 1022, 1, RCALL2), E(-2097152, 2097150, 1),
43282 +
43283 + EMPTY,
43284 + EMPTY, EMPTY, EMPTY, EMPTY, EMPTY, EMPTY, EMPTY, EMPTY,
43285 + EMPTY, EMPTY, EMPTY, EMPTY, EMPTY, EMPTY, EMPTY, EMPTY,
43286 + EMPTY, EMPTY, EMPTY,
43287 +
43288 + C(-1024, 1022, 1, BRAL),
43289 +
43290 + EMPTY, EMPTY, EMPTY,
43291 + E(-128, 127, 0), /* RSUB2 */
43292 + /* 288: SATADD_H */
43293 + EMPTY, EMPTY, EMPTY, EMPTY, EMPTY, EMPTY, EMPTY, EMPTY,
43294 + EMPTY, EMPTY, EMPTY, EMPTY, EMPTY,
43295 + E(0, 255, 0), /* SLEEP */
43296 + EMPTY, EMPTY,
43297 + EMPTY, EMPTY, EMPTY, EMPTY, EMPTY, EMPTY, EMPTY, EMPTY,
43298 + EMPTY, EMPTY, EMPTY, EMPTY, EMPTY, EMPTY, EMPTY, EMPTY,
43299 + /* 320: ST_B2 */
43300 + EMPTY, EMPTY,
43301 + C(0, 7, 0, ST_B4), E(-32768, 32767, 0),
43302 + EMPTY, EMPTY, EMPTY, EMPTY,
43303 + E(-32768, 32767, 0),
43304 + EMPTY, EMPTY, EMPTY,
43305 + C(0, 14, 1, ST_H4), E(-32768, 32767, 0),
43306 + EMPTY, EMPTY,
43307 + EMPTY,
43308 + C(0, 60, 2, ST_W4), E(-32768, 32767, 0),
43309 + E(0, 1020, 2), /* STC_D1 */
43310 + EMPTY, EMPTY,
43311 + E(0, 1020, 2), /* STC_W1 */
43312 + EMPTY, EMPTY,
43313 + E(0, 16380, 2), /* STC0_D */
43314 + E(0, 16380, 2), /* STC0_W */
43315 +
43316 + EMPTY, EMPTY, EMPTY, EMPTY, EMPTY,
43317 + /* 352: STDSP */
43318 + EMPTY, EMPTY,
43319 + E(0, 1020, 2), /* STHH_W1 */
43320 + EMPTY, EMPTY, EMPTY, EMPTY, EMPTY,
43321 + EMPTY, EMPTY, EMPTY,
43322 + E(-32768, 32767, 0),
43323 + C(-512, 508, 2, SUB4),
43324 + C(-128, 127, 0, SUB4), E(-1048576, 1048576, 0),
43325 + /* SUB{cond} */
43326 + E(-128, 127, 0), E(-128, 127, 0), E(-128, 127, 0), E(-128, 127, 0),
43327 + E(-128, 127, 0), E(-128, 127, 0), E(-128, 127, 0), E(-128, 127, 0),
43328 + E(-128, 127, 0), E(-128, 127, 0), E(-128, 127, 0), E(-128, 127, 0),
43329 + E(-128, 127, 0), E(-128, 127, 0), E(-128, 127, 0), E(-128, 127, 0),
43330 + /* SUBF{cond} */
43331 + E(-128, 127, 0), E(-128, 127, 0), E(-128, 127, 0), E(-128, 127, 0),
43332 + E(-128, 127, 0), E(-128, 127, 0), E(-128, 127, 0), E(-128, 127, 0),
43333 + E(-128, 127, 0), E(-128, 127, 0), E(-128, 127, 0), E(-128, 127, 0),
43334 + E(-128, 127, 0), E(-128, 127, 0), E(-128, 127, 0), E(-128, 127, 0),
43335 + EMPTY,
43336 +
43337 + /* 400: SWAP_B */
43338 + EMPTY, EMPTY, EMPTY,
43339 + E(0, 255, 0), /* SYNC */
43340 + EMPTY, EMPTY, EMPTY, EMPTY,
43341 + /* 408: TST */
43342 + EMPTY, EMPTY, EMPTY, EMPTY, EMPTY, EMPTY, EMPTY, EMPTY,
43343 + /* 416: EXTRACT_B */
43344 + EMPTY, EMPTY, EMPTY, EMPTY,
43345 + };
43346 +
43347 +#undef E
43348 +#undef C
43349 +#undef EMPTY
43350 +
43351 +#define AVR32_RS_NONE (-1)
43352 +
43353 +#define avr32_rs_size(state) (avr32_relax_table[(state)].length)
43354 +#define avr32_rs_align(state) (avr32_relax_table[(state)].align)
43355 +#define relax_more(state) (avr32_relax_table[(state)].next)
43356 +
43357 +#define opc_initial_substate(opc) ((opc)->id)
43358 +
43359 +static int need_relax(int subtype, offsetT distance)
43360 +{
43361 + offsetT upper_bound, lower_bound;
43362 +
43363 + upper_bound = avr32_relax_table[subtype].upper_bound;
43364 + lower_bound = avr32_relax_table[subtype].lower_bound;
43365 +
43366 + if (distance & ((1 << avr32_rs_align(subtype)) - 1))
43367 + return 1;
43368 + if ((distance > upper_bound) || (distance < lower_bound))
43369 + return 1;
43370 +
43371 + return 0;
43372 +}
43373 +
43374 +enum {
43375 + LDA_SUBTYPE_MOV1,
43376 + LDA_SUBTYPE_MOV2,
43377 + LDA_SUBTYPE_SUB,
43378 + LDA_SUBTYPE_LDDPC,
43379 + LDA_SUBTYPE_LDW,
43380 + LDA_SUBTYPE_GOTLOAD,
43381 + LDA_SUBTYPE_GOTLOAD_LARGE,
43382 +};
43383 +
43384 +enum {
43385 + CALL_SUBTYPE_RCALL1,
43386 + CALL_SUBTYPE_RCALL2,
43387 + CALL_SUBTYPE_MCALL_CP,
43388 + CALL_SUBTYPE_MCALL_GOT,
43389 + CALL_SUBTYPE_MCALL_LARGE,
43390 +};
43391 +
43392 +#define LDA_INITIAL_SIZE (avr32_pic ? 4 : 2)
43393 +#define CALL_INITIAL_SIZE 2
43394 +
43395 +#define need_reloc(sym, seg, pcrel) \
43396 + (!(S_IS_DEFINED(sym) \
43397 + && ((pcrel && S_GET_SEGMENT(sym) == seg) \
43398 + || (!pcrel && S_GET_SEGMENT(sym) == absolute_section))) \
43399 + || S_FORCE_RELOC(sym, 1))
43400 +
43401 +/* Return an initial guess of the length by which a fragment must grow to
43402 + hold a branch to reach its destination.
43403 + Also updates fr_type/fr_subtype as necessary.
43404 +
43405 + Called just before doing relaxation.
43406 + Any symbol that is now undefined will not become defined.
43407 + The guess for fr_var is ACTUALLY the growth beyond fr_fix.
43408 + Whatever we do to grow fr_fix or fr_var contributes to our returned value.
43409 + Although it may not be explicit in the frag, pretend fr_var starts with a
43410 + 0 value. */
43411 +
43412 +static int
43413 +avr32_default_estimate_size_before_relax (fragS *fragP, segT segment)
43414 +{
43415 + int growth = 0;
43416 +
43417 + assert(fragP);
43418 + assert(fragP->fr_symbol);
43419 +
43420 + if (fragP->tc_frag_data.force_extended
43421 + || need_reloc(fragP->fr_symbol, segment, fragP->tc_frag_data.pcrel))
43422 + {
43423 + int largest_state = fragP->fr_subtype;
43424 + while (relax_more(largest_state) != AVR32_RS_NONE)
43425 + largest_state = relax_more(largest_state);
43426 + growth = avr32_rs_size(largest_state) - fragP->fr_var;
43427 + }
43428 + else
43429 + {
43430 + growth = avr32_rs_size(fragP->fr_subtype) - fragP->fr_var;
43431 + }
43432 +
43433 + pr_debug("%s:%d: md_estimate_size_before_relax: %d\n",
43434 + fragP->fr_file, fragP->fr_line, growth);
43435 +
43436 + return growth;
43437 +}
43438 +
43439 +static int
43440 +avr32_lda_estimate_size_before_relax(fragS *fragP, segT segment ATTRIBUTE_UNUSED)
43441 +{
43442 + return fragP->fr_var - LDA_INITIAL_SIZE;
43443 +}
43444 +
43445 +static int
43446 +avr32_call_estimate_size_before_relax(fragS *fragP, segT segment ATTRIBUTE_UNUSED)
43447 +{
43448 + return fragP->fr_var - CALL_INITIAL_SIZE;
43449 +}
43450 +
43451 +static int
43452 +avr32_cpool_estimate_size_before_relax(fragS *fragP,
43453 + segT segment ATTRIBUTE_UNUSED)
43454 +{
43455 + return fragP->fr_var;
43456 +}
43457 +
43458 +/* This macro may be defined to relax a frag. GAS will call this with the
43459 + * segment, the frag, and the change in size of all previous frags;
43460 + * md_relax_frag should return the change in size of the frag. */
43461 +static long
43462 +avr32_default_relax_frag (segT segment, fragS *fragP, long stretch)
43463 +{
43464 + int state, next_state;
43465 + symbolS *symbolP; /* The target symbol */
43466 + long growth = 0;
43467 +
43468 + state = next_state = fragP->fr_subtype;
43469 +
43470 + symbolP = fragP->fr_symbol;
43471 +
43472 + if (fragP->tc_frag_data.force_extended
43473 + || need_reloc(symbolP, segment, fragP->tc_frag_data.pcrel))
43474 + {
43475 + /* Symbol must be resolved by the linker. Emit the largest
43476 + possible opcode. */
43477 + while (relax_more(next_state) != AVR32_RS_NONE)
43478 + next_state = relax_more(next_state);
43479 + }
43480 + else
43481 + {
43482 + addressT address; /* The address of fragP */
43483 + addressT target; /* The address of the target symbol */
43484 + offsetT distance; /* The distance between the insn and the symbol */
43485 + fragS *sym_frag;
43486 +
43487 + address = fragP->fr_address;
43488 + target = fragP->fr_offset;
43489 + symbolP = fragP->fr_symbol;
43490 + sym_frag = symbol_get_frag(symbolP);
43491 +
43492 + address += fragP->fr_fix - fragP->fr_var;
43493 + target += S_GET_VALUE(symbolP);
43494 +
43495 + if (stretch != 0
43496 + && sym_frag->relax_marker != fragP->relax_marker
43497 + && S_GET_SEGMENT(symbolP) == segment)
43498 + /* if it was correctly aligned before, make sure it stays aligned */
43499 + target += stretch & (~0UL << avr32_rs_align(state));
43500 +
43501 + if (fragP->tc_frag_data.pcrel)
43502 + distance = target - (address & (~0UL << avr32_rs_align(state)));
43503 + else
43504 + distance = target;
43505 +
43506 + pr_debug("%s:%d: relax more? 0x%x - 0x%x = 0x%x (%d), align %d\n",
43507 + fragP->fr_file, fragP->fr_line, target, address,
43508 + distance, distance, avr32_rs_align(state));
43509 +
43510 + if (need_relax(state, distance))
43511 + {
43512 + if (relax_more(state) != AVR32_RS_NONE)
43513 + next_state = relax_more(state);
43514 + pr_debug("%s:%d: relax more %d -> %d (%d - %d, align %d)\n",
43515 + fragP->fr_file, fragP->fr_line, state, next_state,
43516 + target, address, avr32_rs_align(state));
43517 + }
43518 + }
43519 +
43520 + growth = avr32_rs_size(next_state) - avr32_rs_size(state);
43521 + fragP->fr_subtype = next_state;
43522 +
43523 + pr_debug("%s:%d: md_relax_frag: growth=%d, subtype=%d, opc=0x%08lx\n",
43524 + fragP->fr_file, fragP->fr_line, growth, fragP->fr_subtype,
43525 + avr32_opc_table[next_state].value);
43526 +
43527 + return growth;
43528 +}
43529 +
43530 +static long
43531 +avr32_lda_relax_frag(segT segment, fragS *fragP, long stretch)
43532 +{
43533 + struct cpool *pool= NULL;
43534 + unsigned int entry = 0;
43535 + addressT address, target;
43536 + offsetT distance;
43537 + symbolS *symbolP;
43538 + fragS *sym_frag;
43539 + long old_size, new_size;
43540 +
43541 + symbolP = fragP->fr_symbol;
43542 + old_size = fragP->fr_var;
43543 + if (!avr32_pic)
43544 + {
43545 + pool = fragP->tc_frag_data.pool;
43546 + entry = fragP->tc_frag_data.pool_entry;
43547 + }
43548 +
43549 + address = fragP->fr_address;
43550 + address += fragP->fr_fix - LDA_INITIAL_SIZE;
43551 +
43552 + if (!S_IS_DEFINED(symbolP) || S_FORCE_RELOC(symbolP, 1))
43553 + goto relax_max;
43554 +
43555 + target = fragP->fr_offset;
43556 + sym_frag = symbol_get_frag(symbolP);
43557 + target += S_GET_VALUE(symbolP);
43558 +
43559 + if (sym_frag->relax_marker != fragP->relax_marker
43560 + && S_GET_SEGMENT(symbolP) == segment)
43561 + target += stretch;
43562 +
43563 + distance = target - address;
43564 +
43565 + pr_debug("lda_relax_frag: target: %d, address: %d, var: %d\n",
43566 + target, address, fragP->fr_var);
43567 +
43568 + if (!avr32_pic && S_GET_SEGMENT(symbolP) == absolute_section
43569 + && target <= 127 && (offsetT)target >= -128)
43570 + {
43571 + if (fragP->fr_subtype == LDA_SUBTYPE_LDDPC
43572 + || fragP->fr_subtype == LDA_SUBTYPE_LDW)
43573 + pool->literals[entry].refcount--;
43574 + new_size = 2;
43575 + fragP->fr_subtype = LDA_SUBTYPE_MOV1;
43576 + }
43577 + else if (!avr32_pic && S_GET_SEGMENT(symbolP) == absolute_section
43578 + && target <= 1048575 && (offsetT)target >= -1048576)
43579 + {
43580 + if (fragP->fr_subtype == LDA_SUBTYPE_LDDPC
43581 + || fragP->fr_subtype == LDA_SUBTYPE_LDW)
43582 + pool->literals[entry].refcount--;
43583 + new_size = 4;
43584 + fragP->fr_subtype = LDA_SUBTYPE_MOV2;
43585 + }
43586 + else if (!linkrelax && S_GET_SEGMENT(symbolP) == segment
43587 + /* the field will be negated, so this is really -(-32768)
43588 + and -(32767) */
43589 + && distance <= 32768 && distance >= -32767)
43590 + {
43591 + if (!avr32_pic
43592 + && (fragP->fr_subtype == LDA_SUBTYPE_LDDPC
43593 + || fragP->fr_subtype == LDA_SUBTYPE_LDW))
43594 + pool->literals[entry].refcount--;
43595 + new_size = 4;
43596 + fragP->fr_subtype = LDA_SUBTYPE_SUB;
43597 + }
43598 + else
43599 + {
43600 + relax_max:
43601 + if (avr32_pic)
43602 + {
43603 + if (linkrelax)
43604 + {
43605 + new_size = 8;
43606 + fragP->fr_subtype = LDA_SUBTYPE_GOTLOAD_LARGE;
43607 + }
43608 + else
43609 + {
43610 + new_size = 4;
43611 + fragP->fr_subtype = LDA_SUBTYPE_GOTLOAD;
43612 + }
43613 + }
43614 + else
43615 + {
43616 + if (fragP->fr_subtype != LDA_SUBTYPE_LDDPC
43617 + && fragP->fr_subtype != LDA_SUBTYPE_LDW)
43618 + pool->literals[entry].refcount++;
43619 +
43620 + sym_frag = symbol_get_frag(pool->symbol);
43621 + target = (sym_frag->fr_address + sym_frag->fr_fix
43622 + + pool->padding + pool->literals[entry].offset);
43623 +
43624 + pr_debug("cpool sym address: 0x%lx\n",
43625 + sym_frag->fr_address + sym_frag->fr_fix);
43626 +
43627 + know(pool->section == segment);
43628 +
43629 + if (sym_frag->relax_marker != fragP->relax_marker)
43630 + target += stretch;
43631 +
43632 + distance = target - address;
43633 + if (distance <= 508 && distance >= 0)
43634 + {
43635 + new_size = 2;
43636 + fragP->fr_subtype = LDA_SUBTYPE_LDDPC;
43637 + }
43638 + else
43639 + {
43640 + new_size = 4;
43641 + fragP->fr_subtype = LDA_SUBTYPE_LDW;
43642 + }
43643 +
43644 + pr_debug("lda_relax_frag (cpool): target=0x%lx, address=0x%lx, refcount=%d\n",
43645 + target, address, pool->literals[entry].refcount);
43646 + }
43647 + }
43648 +
43649 + fragP->fr_var = new_size;
43650 +
43651 + pr_debug("%s:%d: lda: relax pass done. subtype: %d, growth: %ld\n",
43652 + fragP->fr_file, fragP->fr_line,
43653 + fragP->fr_subtype, new_size - old_size);
43654 +
43655 + return new_size - old_size;
43656 +}
43657 +
43658 +static long
43659 +avr32_call_relax_frag(segT segment, fragS *fragP, long stretch)
43660 +{
43661 + struct cpool *pool = NULL;
43662 + unsigned int entry = 0;
43663 + addressT address, target;
43664 + offsetT distance;
43665 + symbolS *symbolP;
43666 + fragS *sym_frag;
43667 + long old_size, new_size;
43668 +
43669 + symbolP = fragP->fr_symbol;
43670 + old_size = fragP->fr_var;
43671 + if (!avr32_pic)
43672 + {
43673 + pool = fragP->tc_frag_data.pool;
43674 + entry = fragP->tc_frag_data.pool_entry;
43675 + }
43676 +
43677 + address = fragP->fr_address;
43678 + address += fragP->fr_fix - CALL_INITIAL_SIZE;
43679 +
43680 + if (need_reloc(symbolP, segment, 1))
43681 + {
43682 + pr_debug("call: must emit reloc\n");
43683 + goto relax_max;
43684 + }
43685 +
43686 + target = fragP->fr_offset;
43687 + sym_frag = symbol_get_frag(symbolP);
43688 + target += S_GET_VALUE(symbolP);
43689 +
43690 + if (sym_frag->relax_marker != fragP->relax_marker
43691 + && S_GET_SEGMENT(symbolP) == segment)
43692 + target += stretch;
43693 +
43694 + distance = target - address;
43695 +
43696 + if (distance <= 1022 && distance >= -1024)
43697 + {
43698 + pr_debug("call: distance is %d, emitting short rcall\n", distance);
43699 + if (!avr32_pic && fragP->fr_subtype == CALL_SUBTYPE_MCALL_CP)
43700 + pool->literals[entry].refcount--;
43701 + new_size = 2;
43702 + fragP->fr_subtype = CALL_SUBTYPE_RCALL1;
43703 + }
43704 + else if (distance <= 2097150 && distance >= -2097152)
43705 + {
43706 + pr_debug("call: distance is %d, emitting long rcall\n", distance);
43707 + if (!avr32_pic && fragP->fr_subtype == CALL_SUBTYPE_MCALL_CP)
43708 + pool->literals[entry].refcount--;
43709 + new_size = 4;
43710 + fragP->fr_subtype = CALL_SUBTYPE_RCALL2;
43711 + }
43712 + else
43713 + {
43714 + pr_debug("call: distance %d too far, emitting something big\n", distance);
43715 +
43716 + relax_max:
43717 + if (avr32_pic)
43718 + {
43719 + if (linkrelax)
43720 + {
43721 + new_size = 10;
43722 + fragP->fr_subtype = CALL_SUBTYPE_MCALL_LARGE;
43723 + }
43724 + else
43725 + {
43726 + new_size = 4;
43727 + fragP->fr_subtype = CALL_SUBTYPE_MCALL_GOT;
43728 + }
43729 + }
43730 + else
43731 + {
43732 + if (fragP->fr_subtype != CALL_SUBTYPE_MCALL_CP)
43733 + pool->literals[entry].refcount++;
43734 +
43735 + new_size = 4;
43736 + fragP->fr_subtype = CALL_SUBTYPE_MCALL_CP;
43737 + }
43738 + }
43739 +
43740 + fragP->fr_var = new_size;
43741 +
43742 + pr_debug("%s:%d: call: relax pass done, growth: %d, fr_var: %d\n",
43743 + fragP->fr_file, fragP->fr_line,
43744 + new_size - old_size, fragP->fr_var);
43745 +
43746 + return new_size - old_size;
43747 +}
43748 +
43749 +static long
43750 +avr32_cpool_relax_frag(segT segment ATTRIBUTE_UNUSED,
43751 + fragS *fragP,
43752 + long stretch ATTRIBUTE_UNUSED)
43753 +{
43754 + struct cpool *pool;
43755 + addressT address;
43756 + long old_size, new_size;
43757 + unsigned int entry;
43758 +
43759 + pool = fragP->tc_frag_data.pool;
43760 + address = fragP->fr_address + fragP->fr_fix;
43761 + old_size = fragP->fr_var;
43762 + new_size = 0;
43763 +
43764 + for (entry = 0; entry < pool->next_free_entry; entry++)
43765 + {
43766 + if (pool->literals[entry].refcount > 0)
43767 + {
43768 + pool->literals[entry].offset = new_size;
43769 + new_size += 4;
43770 + }
43771 + }
43772 +
43773 + fragP->fr_var = new_size;
43774 +
43775 + return new_size - old_size;
43776 +}
43777 +
43778 +/* *fragP has been relaxed to its final size, and now needs to have
43779 + the bytes inside it modified to conform to the new size.
43780 +
43781 + Called after relaxation is finished.
43782 + fragP->fr_type == rs_machine_dependent.
43783 + fragP->fr_subtype is the subtype of what the address relaxed to. */
43784 +
43785 +static void
43786 +avr32_default_convert_frag (bfd *abfd ATTRIBUTE_UNUSED,
43787 + segT segment ATTRIBUTE_UNUSED,
43788 + fragS *fragP)
43789 +{
43790 + const struct avr32_opcode *opc;
43791 + const struct avr32_ifield *ifield;
43792 + bfd_reloc_code_real_type r_type;
43793 + symbolS *symbolP;
43794 + fixS *fixP;
43795 + bfd_vma value;
43796 + int subtype;
43797 +
43798 + opc = &avr32_opc_table[fragP->fr_subtype];
43799 + ifield = opc->fields[opc->var_field];
43800 + symbolP = fragP->fr_symbol;
43801 + subtype = fragP->fr_subtype;
43802 + r_type = opc->reloc_type;
43803 +
43804 + /* Clear the opcode bits and the bits belonging to the relaxed
43805 + field. We assume all other fields stay the same. */
43806 + value = bfd_getb32(fragP->fr_opcode);
43807 + value &= ~(opc->mask | ifield->mask);
43808 +
43809 + /* Insert the new opcode */
43810 + value |= opc->value;
43811 + bfd_putb32(value, fragP->fr_opcode);
43812 +
43813 + fragP->fr_fix += opc->size - fragP->fr_var;
43814 +
43815 + if (fragP->tc_frag_data.reloc_info != AVR32_OPINFO_NONE)
43816 + {
43817 + switch (fragP->tc_frag_data.reloc_info)
43818 + {
43819 + case AVR32_OPINFO_HI:
43820 + r_type = BFD_RELOC_HI16;
43821 + break;
43822 + case AVR32_OPINFO_LO:
43823 + r_type = BFD_RELOC_LO16;
43824 + break;
43825 + case AVR32_OPINFO_GOT:
43826 + switch (r_type)
43827 + {
43828 + case BFD_RELOC_AVR32_18W_PCREL:
43829 + r_type = BFD_RELOC_AVR32_GOT18SW;
43830 + break;
43831 + case BFD_RELOC_AVR32_16S:
43832 + r_type = BFD_RELOC_AVR32_GOT16S;
43833 + break;
43834 + default:
43835 + BAD_CASE(r_type);
43836 + break;
43837 + }
43838 + break;
43839 + default:
43840 + BAD_CASE(fragP->tc_frag_data.reloc_info);
43841 + break;
43842 + }
43843 + }
43844 +
43845 + pr_debug("%s:%d: convert_frag: new %s fixup\n",
43846 + fragP->fr_file, fragP->fr_line,
43847 + bfd_get_reloc_code_name(r_type));
43848 +
43849 +#if 1
43850 + fixP = fix_new_exp(fragP, fragP->fr_fix - opc->size, opc->size,
43851 + &fragP->tc_frag_data.exp,
43852 + fragP->tc_frag_data.pcrel, r_type);
43853 +#else
43854 + fixP = fix_new(fragP, fragP->fr_fix - opc->size, opc->size, symbolP,
43855 + fragP->fr_offset, fragP->tc_frag_data.pcrel, r_type);
43856 +#endif
43857 +
43858 + /* Revert fix_new brain damage. "dot_value" is the value of PC at
43859 + the point of the fixup, relative to the frag address. fix_new()
43860 + and friends think they are only being called during the assembly
43861 + pass, not during relaxation or similar, so fx_dot_value, fx_file
43862 + and fx_line are all initialized to the wrong value. But we don't
43863 + know the size of the fixup until now, so we really can't live up
43864 + to the assumptions these functions make about the target. What
43865 + do these functions think the "where" and "frag" argument mean
43866 + anyway? */
43867 + fixP->fx_dot_value = fragP->fr_fix - opc->size;
43868 + fixP->fx_file = fragP->fr_file;
43869 + fixP->fx_line = fragP->fr_line;
43870 +
43871 + fixP->tc_fix_data.ifield = ifield;
43872 + fixP->tc_fix_data.align = avr32_rs_align(subtype);
43873 + fixP->tc_fix_data.min = avr32_relax_table[subtype].lower_bound;
43874 + fixP->tc_fix_data.max = avr32_relax_table[subtype].upper_bound;
43875 +}
43876 +
43877 +static void
43878 +avr32_lda_convert_frag(bfd *abfd ATTRIBUTE_UNUSED,
43879 + segT segment ATTRIBUTE_UNUSED,
43880 + fragS *fragP)
43881 +{
43882 + const struct avr32_opcode *opc;
43883 + const struct avr32_ifield *ifield;
43884 + bfd_reloc_code_real_type r_type;
43885 + expressionS exp;
43886 + struct cpool *pool;
43887 + fixS *fixP;
43888 + bfd_vma value;
43889 + int regid, pcrel = 0, align = 0;
43890 + char *p;
43891 +
43892 + r_type = BFD_RELOC_NONE;
43893 + regid = fragP->tc_frag_data.reloc_info;
43894 + p = fragP->fr_opcode;
43895 + exp.X_add_symbol = fragP->fr_symbol;
43896 + exp.X_add_number = fragP->fr_offset;
43897 + exp.X_op = O_symbol;
43898 +
43899 + pr_debug("%s:%d: lda_convert_frag, subtype: %d, fix: %d, var: %d, regid: %d\n",
43900 + fragP->fr_file, fragP->fr_line,
43901 + fragP->fr_subtype, fragP->fr_fix, fragP->fr_var, regid);
43902 +
43903 + switch (fragP->fr_subtype)
43904 + {
43905 + case LDA_SUBTYPE_MOV1:
43906 + opc = &avr32_opc_table[AVR32_OPC_MOV1];
43907 + opc->fields[0]->insert(opc->fields[0], p, regid);
43908 + ifield = opc->fields[1];
43909 + r_type = opc->reloc_type;
43910 + break;
43911 + case LDA_SUBTYPE_MOV2:
43912 + opc = &avr32_opc_table[AVR32_OPC_MOV2];
43913 + opc->fields[0]->insert(opc->fields[0], p, regid);
43914 + ifield = opc->fields[1];
43915 + r_type = opc->reloc_type;
43916 + break;
43917 + case LDA_SUBTYPE_SUB:
43918 + opc = &avr32_opc_table[AVR32_OPC_SUB5];
43919 + opc->fields[0]->insert(opc->fields[0], p, regid);
43920 + opc->fields[1]->insert(opc->fields[1], p, AVR32_REG_PC);
43921 + ifield = opc->fields[2];
43922 + r_type = BFD_RELOC_AVR32_16N_PCREL;
43923 +
43924 + /* Pretend that SUB5 isn't a "negated" pcrel expression for now.
43925 + We'll have to fix it up later when we know whether to
43926 + generate a reloc for it (in which case the linker will negate
43927 + it, so we shouldn't). */
43928 + pcrel = 1;
43929 + break;
43930 + case LDA_SUBTYPE_LDDPC:
43931 + opc = &avr32_opc_table[AVR32_OPC_LDDPC];
43932 + align = 2;
43933 + r_type = BFD_RELOC_AVR32_9W_CP;
43934 + goto cpool_common;
43935 + case LDA_SUBTYPE_LDW:
43936 + opc = &avr32_opc_table[AVR32_OPC_LDDPC_EXT];
43937 + r_type = BFD_RELOC_AVR32_16_CP;
43938 + cpool_common:
43939 + opc->fields[0]->insert(opc->fields[0], p, regid);
43940 + ifield = opc->fields[1];
43941 + pool = fragP->tc_frag_data.pool;
43942 + exp.X_add_symbol = pool->symbol;
43943 + exp.X_add_number = pool->literals[fragP->tc_frag_data.pool_entry].offset;
43944 + pcrel = 1;
43945 + break;
43946 + case LDA_SUBTYPE_GOTLOAD_LARGE:
43947 + /* ld.w Rd, r6[Rd << 2] (last) */
43948 + opc = &avr32_opc_table[AVR32_OPC_LD_W5];
43949 + bfd_putb32(opc->value, p + 4);
43950 + opc->fields[0]->insert(opc->fields[0], p + 4, regid);
43951 + opc->fields[1]->insert(opc->fields[1], p + 4, 6);
43952 + opc->fields[2]->insert(opc->fields[2], p + 4, regid);
43953 + opc->fields[3]->insert(opc->fields[3], p + 4, 2);
43954 +
43955 + /* mov Rd, (got_offset / 4) */
43956 + opc = &avr32_opc_table[AVR32_OPC_MOV2];
43957 + opc->fields[0]->insert(opc->fields[0], p, regid);
43958 + ifield = opc->fields[1];
43959 + r_type = BFD_RELOC_AVR32_LDA_GOT;
43960 + break;
43961 + case LDA_SUBTYPE_GOTLOAD:
43962 + opc = &avr32_opc_table[AVR32_OPC_LD_W4];
43963 + opc->fields[0]->insert(opc->fields[0], p, regid);
43964 + opc->fields[1]->insert(opc->fields[1], p, 6);
43965 + ifield = opc->fields[2];
43966 + if (r_type == BFD_RELOC_NONE)
43967 + r_type = BFD_RELOC_AVR32_GOT16S;
43968 + break;
43969 + default:
43970 + BAD_CASE(fragP->fr_subtype);
43971 + }
43972 +
43973 + value = bfd_getb32(p);
43974 + value &= ~(opc->mask | ifield->mask);
43975 + value |= opc->value;
43976 + bfd_putb32(value, p);
43977 +
43978 + fragP->fr_fix += fragP->fr_var - LDA_INITIAL_SIZE;
43979 +
43980 + if (fragP->fr_next
43981 + && ((offsetT)(fragP->fr_next->fr_address - fragP->fr_address)
43982 + != fragP->fr_fix))
43983 + {
43984 + fprintf(stderr, "LDA frag: fr_fix is wrong! fragP->fr_var = %ld, r_type = %s\n",
43985 + fragP->fr_var, bfd_get_reloc_code_name(r_type));
43986 + abort();
43987 + }
43988 +
43989 + fixP = fix_new_exp(fragP, fragP->fr_fix - fragP->fr_var, fragP->fr_var,
43990 + &exp, pcrel, r_type);
43991 +
43992 + /* Revert fix_new brain damage. "dot_value" is the value of PC at
43993 + the point of the fixup, relative to the frag address. fix_new()
43994 + and friends think they are only being called during the assembly
43995 + pass, not during relaxation or similar, so fx_dot_value, fx_file
43996 + and fx_line are all initialized to the wrong value. But we don't
43997 + know the size of the fixup until now, so we really can't live up
43998 + to the assumptions these functions make about the target. What
43999 + do these functions think the "where" and "frag" argument mean
44000 + anyway? */
44001 + fixP->fx_dot_value = fragP->fr_fix - opc->size;
44002 + fixP->fx_file = fragP->fr_file;
44003 + fixP->fx_line = fragP->fr_line;
44004 +
44005 + fixP->tc_fix_data.ifield = ifield;
44006 + fixP->tc_fix_data.align = align;
44007 + /* these are only used if the fixup can actually be resolved */
44008 + fixP->tc_fix_data.min = -32768;
44009 + fixP->tc_fix_data.max = 32767;
44010 +}
44011 +
44012 +static void
44013 +avr32_call_convert_frag(bfd *abfd ATTRIBUTE_UNUSED,
44014 + segT segment ATTRIBUTE_UNUSED,
44015 + fragS *fragP)
44016 +{
44017 + const struct avr32_opcode *opc = NULL;
44018 + const struct avr32_ifield *ifield;
44019 + bfd_reloc_code_real_type r_type;
44020 + symbolS *symbol;
44021 + offsetT offset;
44022 + fixS *fixP;
44023 + bfd_vma value;
44024 + int pcrel = 0, align = 0;
44025 + char *p;
44026 +
44027 + symbol = fragP->fr_symbol;
44028 + offset = fragP->fr_offset;
44029 + r_type = BFD_RELOC_NONE;
44030 + p = fragP->fr_opcode;
44031 +
44032 + pr_debug("%s:%d: call_convert_frag, subtype: %d, fix: %d, var: %d\n",
44033 + fragP->fr_file, fragP->fr_line,
44034 + fragP->fr_subtype, fragP->fr_fix, fragP->fr_var);
44035 +
44036 + switch (fragP->fr_subtype)
44037 + {
44038 + case CALL_SUBTYPE_RCALL1:
44039 + opc = &avr32_opc_table[AVR32_OPC_RCALL1];
44040 + /* fall through */
44041 + case CALL_SUBTYPE_RCALL2:
44042 + if (!opc)
44043 + opc = &avr32_opc_table[AVR32_OPC_RCALL2];
44044 + ifield = opc->fields[0];
44045 + r_type = opc->reloc_type;
44046 + pcrel = 1;
44047 + align = 1;
44048 + break;
44049 + case CALL_SUBTYPE_MCALL_CP:
44050 + opc = &avr32_opc_table[AVR32_OPC_MCALL];
44051 + opc->fields[0]->insert(opc->fields[0], p, AVR32_REG_PC);
44052 + ifield = opc->fields[1];
44053 + r_type = BFD_RELOC_AVR32_CPCALL;
44054 + symbol = fragP->tc_frag_data.pool->symbol;
44055 + offset = fragP->tc_frag_data.pool->literals[fragP->tc_frag_data.pool_entry].offset;
44056 + assert(fragP->tc_frag_data.pool->literals[fragP->tc_frag_data.pool_entry].refcount > 0);
44057 + pcrel = 1;
44058 + align = 2;
44059 + break;
44060 + case CALL_SUBTYPE_MCALL_GOT:
44061 + opc = &avr32_opc_table[AVR32_OPC_MCALL];
44062 + opc->fields[0]->insert(opc->fields[0], p, 6);
44063 + ifield = opc->fields[1];
44064 + r_type = BFD_RELOC_AVR32_GOT18SW;
44065 + break;
44066 + case CALL_SUBTYPE_MCALL_LARGE:
44067 + assert(fragP->fr_var == 10);
44068 + /* ld.w lr, r6[lr << 2] */
44069 + opc = &avr32_opc_table[AVR32_OPC_LD_W5];
44070 + bfd_putb32(opc->value, p + 4);
44071 + opc->fields[0]->insert(opc->fields[0], p + 4, AVR32_REG_LR);
44072 + opc->fields[1]->insert(opc->fields[1], p + 4, 6);
44073 + opc->fields[2]->insert(opc->fields[2], p + 4, AVR32_REG_LR);
44074 + opc->fields[3]->insert(opc->fields[3], p + 4, 2);
44075 +
44076 + /* icall lr */
44077 + opc = &avr32_opc_table[AVR32_OPC_ICALL];
44078 + bfd_putb16(opc->value >> 16, p + 8);
44079 + opc->fields[0]->insert(opc->fields[0], p + 8, AVR32_REG_LR);
44080 +
44081 + /* mov lr, (got_offset / 4) */
44082 + opc = &avr32_opc_table[AVR32_OPC_MOV2];
44083 + opc->fields[0]->insert(opc->fields[0], p, AVR32_REG_LR);
44084 + ifield = opc->fields[1];
44085 + r_type = BFD_RELOC_AVR32_GOTCALL;
44086 + break;
44087 + default:
44088 + BAD_CASE(fragP->fr_subtype);
44089 + }
44090 +
44091 + /* Insert the opcode and clear the variable ifield */
44092 + value = bfd_getb32(p);
44093 + value &= ~(opc->mask | ifield->mask);
44094 + value |= opc->value;
44095 + bfd_putb32(value, p);
44096 +
44097 + fragP->fr_fix += fragP->fr_var - CALL_INITIAL_SIZE;
44098 +
44099 + if (fragP->fr_next
44100 + && ((offsetT)(fragP->fr_next->fr_address - fragP->fr_address)
44101 + != fragP->fr_fix))
44102 + {
44103 + fprintf(stderr, "%s:%d: fr_fix %lu is wrong! fr_var=%lu, r_type=%s\n",
44104 + fragP->fr_file, fragP->fr_line,
44105 + fragP->fr_fix, fragP->fr_var, bfd_get_reloc_code_name(r_type));
44106 + fprintf(stderr, "fr_fix should be %ld. next frag is %s:%d\n",
44107 + (offsetT)(fragP->fr_next->fr_address - fragP->fr_address),
44108 + fragP->fr_next->fr_file, fragP->fr_next->fr_line);
44109 + }
44110 +
44111 + fixP = fix_new(fragP, fragP->fr_fix - fragP->fr_var, fragP->fr_var,
44112 + symbol, offset, pcrel, r_type);
44113 +
44114 + /* Revert fix_new brain damage. "dot_value" is the value of PC at
44115 + the point of the fixup, relative to the frag address. fix_new()
44116 + and friends think they are only being called during the assembly
44117 + pass, not during relaxation or similar, so fx_dot_value, fx_file
44118 + and fx_line are all initialized to the wrong value. But we don't
44119 + know the size of the fixup until now, so we really can't live up
44120 + to the assumptions these functions make about the target. What
44121 + do these functions think the "where" and "frag" argument mean
44122 + anyway? */
44123 + fixP->fx_dot_value = fragP->fr_fix - opc->size;
44124 + fixP->fx_file = fragP->fr_file;
44125 + fixP->fx_line = fragP->fr_line;
44126 +
44127 + fixP->tc_fix_data.ifield = ifield;
44128 + fixP->tc_fix_data.align = align;
44129 + /* these are only used if the fixup can actually be resolved */
44130 + fixP->tc_fix_data.min = -2097152;
44131 + fixP->tc_fix_data.max = 2097150;
44132 +}
44133 +
44134 +static void
44135 +avr32_cpool_convert_frag(bfd *abfd ATTRIBUTE_UNUSED,
44136 + segT segment ATTRIBUTE_UNUSED,
44137 + fragS *fragP)
44138 +{
44139 + struct cpool *pool;
44140 + addressT address;
44141 + unsigned int entry;
44142 + char *p;
44143 + char sym_name[20];
44144 +
44145 + /* Did we get rid of the frag altogether? */
44146 + if (!fragP->fr_var)
44147 + return;
44148 +
44149 + pool = fragP->tc_frag_data.pool;
44150 + address = fragP->fr_address + fragP->fr_fix;
44151 + p = fragP->fr_literal + fragP->fr_fix;
44152 +
44153 + sprintf(sym_name, "$$cp_\002%x", pool->id);
44154 + symbol_locate(pool->symbol, sym_name, pool->section, fragP->fr_fix, fragP);
44155 + symbol_table_insert(pool->symbol);
44156 +
44157 + for (entry = 0; entry < pool->next_free_entry; entry++)
44158 + {
44159 + if (pool->literals[entry].refcount > 0)
44160 + {
44161 + fix_new_exp(fragP, fragP->fr_fix, 4, &pool->literals[entry].exp,
44162 + FALSE, BFD_RELOC_AVR32_32_CPENT);
44163 + fragP->fr_fix += 4;
44164 + }
44165 + }
44166 +}
44167 +
44168 +static struct avr32_relaxer avr32_default_relaxer = {
44169 + .estimate_size = avr32_default_estimate_size_before_relax,
44170 + .relax_frag = avr32_default_relax_frag,
44171 + .convert_frag = avr32_default_convert_frag,
44172 +};
44173 +static struct avr32_relaxer avr32_lda_relaxer = {
44174 + .estimate_size = avr32_lda_estimate_size_before_relax,
44175 + .relax_frag = avr32_lda_relax_frag,
44176 + .convert_frag = avr32_lda_convert_frag,
44177 +};
44178 +static struct avr32_relaxer avr32_call_relaxer = {
44179 + .estimate_size = avr32_call_estimate_size_before_relax,
44180 + .relax_frag = avr32_call_relax_frag,
44181 + .convert_frag = avr32_call_convert_frag,
44182 +};
44183 +static struct avr32_relaxer avr32_cpool_relaxer = {
44184 + .estimate_size = avr32_cpool_estimate_size_before_relax,
44185 + .relax_frag = avr32_cpool_relax_frag,
44186 + .convert_frag = avr32_cpool_convert_frag,
44187 +};
44188 +
44189 +static void s_cpool(int arg ATTRIBUTE_UNUSED)
44190 +{
44191 + struct cpool *pool;
44192 + unsigned int max_size;
44193 + char *buf;
44194 +
44195 + pool = find_cpool(now_seg, now_subseg);
44196 + if (!pool || !pool->symbol || pool->next_free_entry == 0)
44197 + return;
44198 +
44199 + /* Make sure the constant pool is properly aligned */
44200 + frag_align_code(2, 0);
44201 +
44202 + /* Assume none of the entries are discarded, and that we need the
44203 + maximum amount of alignment. But we're not going to allocate
44204 + anything up front. */
44205 + max_size = pool->next_free_entry * 4 + 2;
44206 + frag_grow(max_size);
44207 + buf = frag_more(0);
44208 +
44209 + frag_now->tc_frag_data.relaxer = &avr32_cpool_relaxer;
44210 + frag_now->tc_frag_data.pool = pool;
44211 +
44212 + symbol_set_frag(pool->symbol, frag_now);
44213 +
44214 + /* Assume zero initial size, allowing other relaxers to be
44215 + optimistic about things. */
44216 + frag_var(rs_machine_dependent, max_size, 0,
44217 + 0, pool->symbol, 0, NULL);
44218 +
44219 + /* Mark the pool as empty. */
44220 + pool->used = 1;
44221 +}
44222 +
44223 +/* The location from which a PC relative jump should be calculated,
44224 + given a PC relative reloc. */
44225 +
44226 +long
44227 +md_pcrel_from_section (fixS *fixP, segT sec)
44228 +{
44229 + pr_debug("pcrel_from_section, fx_offset = %d\n", fixP->fx_offset);
44230 +
44231 + if (fixP->fx_addsy != NULL
44232 + && (! S_IS_DEFINED (fixP->fx_addsy)
44233 + || S_GET_SEGMENT (fixP->fx_addsy) != sec
44234 + || S_FORCE_RELOC(fixP->fx_addsy, 1)))
44235 + {
44236 + pr_debug("Unknown pcrel symbol: %s\n", S_GET_NAME(fixP->fx_addsy));
44237 +
44238 + /* The symbol is undefined (or is defined but not in this section).
44239 + Let the linker figure it out. */
44240 + return 0;
44241 + }
44242 +
44243 + pr_debug("pcrel from %x + %x, symbol: %s (%x)\n",
44244 + fixP->fx_frag->fr_address, fixP->fx_where,
44245 + fixP->fx_addsy?S_GET_NAME(fixP->fx_addsy):"(null)",
44246 + fixP->fx_addsy?S_GET_VALUE(fixP->fx_addsy):0);
44247 +
44248 + return ((fixP->fx_frag->fr_address + fixP->fx_where)
44249 + & (~0UL << fixP->tc_fix_data.align));
44250 +}
44251 +
44252 +valueT
44253 +md_section_align (segT segment, valueT size)
44254 +{
44255 + int align = bfd_get_section_alignment (stdoutput, segment);
44256 + return ((size + (1 << align) - 1) & (-1 << align));
44257 +}
44258 +
44259 +static int syntax_matches(const struct avr32_syntax *syntax,
44260 + char *str)
44261 +{
44262 + int i;
44263 +
44264 + pr_debug("syntax %d matches `%s'?\n", syntax->id, str);
44265 +
44266 + if (syntax->nr_operands < 0)
44267 + {
44268 + struct avr32_operand *op;
44269 + int optype;
44270 +
44271 + for (i = 0; i < (-syntax->nr_operands - 1); i++)
44272 + {
44273 + char *p;
44274 + char c;
44275 +
44276 + optype = syntax->operand[i];
44277 + assert(optype < AVR32_NR_OPERANDS);
44278 + op = &avr32_operand_table[optype];
44279 +
44280 + for (p = str; *p; p++)
44281 + if (*p == ',')
44282 + break;
44283 +
44284 + if (p == str)
44285 + return 0;
44286 +
44287 + c = *p;
44288 + *p = 0;
44289 +
44290 + if (!op->match(str))
44291 + {
44292 + *p = c;
44293 + return 0;
44294 + }
44295 +
44296 + str = p;
44297 + *p = c;
44298 + if (c)
44299 + str++;
44300 + }
44301 +
44302 + optype = syntax->operand[i];
44303 + assert(optype < AVR32_NR_OPERANDS);
44304 + op = &avr32_operand_table[optype];
44305 +
44306 + if (!op->match(str))
44307 + return 0;
44308 + return 1;
44309 + }
44310 +
44311 + for (i = 0; i < syntax->nr_operands; i++)
44312 + {
44313 + struct avr32_operand *op;
44314 + int optype = syntax->operand[i];
44315 + char *p;
44316 + char c;
44317 +
44318 + assert(optype < AVR32_NR_OPERANDS);
44319 + op = &avr32_operand_table[optype];
44320 +
44321 + for (p = str; *p; p++)
44322 + if (*p == ',')
44323 + break;
44324 +
44325 + if (p == str)
44326 + return 0;
44327 +
44328 + c = *p;
44329 + *p = 0;
44330 +
44331 + if (!op->match(str))
44332 + {
44333 + *p = c;
44334 + return 0;
44335 + }
44336 +
44337 + str = p;
44338 + *p = c;
44339 + if (c)
44340 + str++;
44341 + }
44342 +
44343 + if (*str == '\0')
44344 + return 1;
44345 +
44346 + if ((*str == 'e' || *str == 'E') && !str[1])
44347 + return 1;
44348 +
44349 + return 0;
44350 +}
44351 +
44352 +static int parse_operands(char *str)
44353 +{
44354 + int i;
44355 +
44356 + if (current_insn.syntax->nr_operands < 0)
44357 + {
44358 + int optype;
44359 + struct avr32_operand *op;
44360 +
44361 + for (i = 0; i < (-current_insn.syntax->nr_operands - 1); i++)
44362 + {
44363 + char *p;
44364 + char c;
44365 +
44366 + optype = current_insn.syntax->operand[i];
44367 + op = &avr32_operand_table[optype];
44368 +
44369 + for (p = str; *p; p++)
44370 + if (*p == ',')
44371 + break;
44372 +
44373 + assert(p != str);
44374 +
44375 + c = *p, *p = 0;
44376 + op->parse(op, str, i);
44377 + *p = c;
44378 +
44379 + str = p;
44380 + if (c) str++;
44381 + }
44382 +
44383 + /* give the rest of the line to the last operand */
44384 + optype = current_insn.syntax->operand[i];
44385 + op = &avr32_operand_table[optype];
44386 + op->parse(op, str, i);
44387 + }
44388 + else
44389 + {
44390 + for (i = 0; i < current_insn.syntax->nr_operands; i++)
44391 + {
44392 + int optype = current_insn.syntax->operand[i];
44393 + struct avr32_operand *op = &avr32_operand_table[optype];
44394 + char *p;
44395 + char c;
44396 +
44397 + skip_whitespace(str);
44398 +
44399 + for (p = str; *p; p++)
44400 + if (*p == ',')
44401 + break;
44402 +
44403 + assert(p != str);
44404 +
44405 + c = *p, *p = 0;
44406 + op->parse(op, str, i);
44407 + *p = c;
44408 +
44409 + str = p;
44410 + if (c) str++;
44411 + }
44412 +
44413 + if (*str == 'E' || *str == 'e')
44414 + current_insn.force_extended = 1;
44415 + }
44416 +
44417 + return 0;
44418 +}
44419 +
44420 +static const char *
44421 +finish_insn(const struct avr32_opcode *opc)
44422 +{
44423 + expressionS *exp = &current_insn.immediate;
44424 + unsigned int i;
44425 + int will_relax = 0;
44426 + char *buf;
44427 +
44428 + assert(current_insn.next_slot == opc->nr_fields);
44429 +
44430 + pr_debug("%s:%d: finish_insn: trying opcode %d\n",
44431 + frag_now->fr_file, frag_now->fr_line, opc->id);
44432 +
44433 + /* Go through the relaxation stage for all instructions that can
44434 + possibly take a symbolic immediate. The relax code will take
44435 + care of range checking and alignment. */
44436 + if (opc->var_field != -1)
44437 + {
44438 + int substate, largest_substate;
44439 + symbolS *sym;
44440 + offsetT off;
44441 +
44442 + will_relax = 1;
44443 + substate = largest_substate = opc_initial_substate(opc);
44444 +
44445 + while (relax_more(largest_substate) != AVR32_RS_NONE)
44446 + largest_substate = relax_more(largest_substate);
44447 +
44448 + pr_debug("will relax. initial substate: %d (size %d), largest substate: %d (size %d)\n",
44449 + substate, avr32_rs_size(substate),
44450 + largest_substate, avr32_rs_size(largest_substate));
44451 +
44452 + /* make sure we have enough room for the largest possible opcode */
44453 + frag_grow(avr32_rs_size(largest_substate));
44454 + buf = frag_more(opc->size);
44455 +
44456 + dwarf2_emit_insn(opc->size);
44457 +
44458 + frag_now->tc_frag_data.reloc_info = AVR32_OPINFO_NONE;
44459 + frag_now->tc_frag_data.pcrel = current_insn.pcrel;
44460 + frag_now->tc_frag_data.force_extended = current_insn.force_extended;
44461 + frag_now->tc_frag_data.relaxer = &avr32_default_relaxer;
44462 +
44463 + if (exp->X_op == O_hi)
44464 + {
44465 + frag_now->tc_frag_data.reloc_info = AVR32_OPINFO_HI;
44466 + exp->X_op = exp->X_md;
44467 + }
44468 + else if (exp->X_op == O_lo)
44469 + {
44470 + frag_now->tc_frag_data.reloc_info = AVR32_OPINFO_LO;
44471 + exp->X_op = exp->X_md;
44472 + }
44473 + else if (exp->X_op == O_got)
44474 + {
44475 + frag_now->tc_frag_data.reloc_info = AVR32_OPINFO_GOT;
44476 + exp->X_op = O_symbol;
44477 + }
44478 +
44479 +#if 0
44480 + if ((opc->reloc_type == BFD_RELOC_AVR32_SUB5)
44481 + && exp->X_op == O_subtract)
44482 + {
44483 + symbolS *tmp;
44484 + tmp = exp->X_add_symbol;
44485 + exp->X_add_symbol = exp->X_op_symbol;
44486 + exp->X_op_symbol = tmp;
44487 + }
44488 +#endif
44489 +
44490 + frag_now->tc_frag_data.exp = current_insn.immediate;
44491 +
44492 + sym = exp->X_add_symbol;
44493 + off = exp->X_add_number;
44494 + if (exp->X_op != O_symbol)
44495 + {
44496 + sym = make_expr_symbol(exp);
44497 + off = 0;
44498 + }
44499 +
44500 + frag_var(rs_machine_dependent,
44501 + avr32_rs_size(largest_substate) - opc->size,
44502 + opc->size,
44503 + substate, sym, off, buf);
44504 + }
44505 + else
44506 + {
44507 + assert(avr32_rs_size(opc_initial_substate(opc)) == 0);
44508 +
44509 + /* Make sure we always have room for another whole word, as the ifield
44510 + inserters can only write words. */
44511 + frag_grow(4);
44512 + buf = frag_more(opc->size);
44513 + dwarf2_emit_insn(opc->size);
44514 + }
44515 +
44516 + assert(!(opc->value & ~opc->mask));
44517 +
44518 + pr_debug("inserting opcode: 0x%lx\n", opc->value);
44519 + bfd_putb32(opc->value, buf);
44520 +
44521 + for (i = 0; i < opc->nr_fields; i++)
44522 + {
44523 + const struct avr32_ifield *f = opc->fields[i];
44524 + const struct avr32_ifield_data *fd = &current_insn.field_value[i];
44525 +
44526 + pr_debug("inserting field: 0x%lx & 0x%lx\n",
44527 + fd->value >> fd->align_order, f->mask);
44528 +
44529 + f->insert(f, buf, fd->value >> fd->align_order);
44530 + }
44531 +
44532 + assert(will_relax || !current_insn.immediate.X_add_symbol);
44533 + return NULL;
44534 +}
44535 +
44536 +static const char *
44537 +finish_alias(const struct avr32_alias *alias)
44538 +{
44539 + const struct avr32_opcode *opc;
44540 + struct {
44541 + unsigned long value;
44542 + unsigned long align;
44543 + } mapped_operand[AVR32_MAX_OPERANDS];
44544 + unsigned int i;
44545 +
44546 + opc = alias->opc;
44547 +
44548 + /* Remap the operands from the alias to the real opcode */
44549 + for (i = 0; i < opc->nr_fields; i++)
44550 + {
44551 + if (alias->operand_map[i].is_opindex)
44552 + {
44553 + struct avr32_ifield_data *fd;
44554 + fd = &current_insn.field_value[alias->operand_map[i].value];
44555 + mapped_operand[i].value = fd->value;
44556 + mapped_operand[i].align = fd->align_order;
44557 + }
44558 + else
44559 + {
44560 + mapped_operand[i].value = alias->operand_map[i].value;
44561 + mapped_operand[i].align = 0;
44562 + }
44563 + }
44564 +
44565 + for (i = 0; i < opc->nr_fields; i++)
44566 + {
44567 + current_insn.field_value[i].value = mapped_operand[i].value;
44568 + if (opc->id == AVR32_OPC_COP)
44569 + current_insn.field_value[i].align_order = 0;
44570 + else
44571 + current_insn.field_value[i].align_order
44572 + = mapped_operand[i].align;
44573 + }
44574 +
44575 + current_insn.next_slot = opc->nr_fields;
44576 +
44577 + return finish_insn(opc);
44578 +}
44579 +
44580 +static const char *
44581 +finish_lda(const struct avr32_syntax *syntax ATTRIBUTE_UNUSED)
44582 +{
44583 + expressionS *exp = &current_insn.immediate;
44584 + relax_substateT initial_subtype;
44585 + symbolS *sym;
44586 + offsetT off;
44587 + int initial_size, max_size;
44588 + char *buf;
44589 +
44590 + initial_size = LDA_INITIAL_SIZE;
44591 +
44592 + if (avr32_pic)
44593 + {
44594 + initial_subtype = LDA_SUBTYPE_SUB;
44595 + if (linkrelax)
44596 + max_size = 8;
44597 + else
44598 + max_size = 4;
44599 + }
44600 + else
44601 + {
44602 + initial_subtype = LDA_SUBTYPE_MOV1;
44603 + max_size = 4;
44604 + }
44605 +
44606 + frag_grow(max_size);
44607 + buf = frag_more(initial_size);
44608 + dwarf2_emit_insn(initial_size);
44609 +
44610 + if (exp->X_op == O_symbol)
44611 + {
44612 + sym = exp->X_add_symbol;
44613 + off = exp->X_add_number;
44614 + }
44615 + else
44616 + {
44617 + sym = make_expr_symbol(exp);
44618 + off = 0;
44619 + }
44620 +
44621 + frag_now->tc_frag_data.reloc_info = current_insn.field_value[0].value;
44622 + frag_now->tc_frag_data.relaxer = &avr32_lda_relaxer;
44623 +
44624 + if (!avr32_pic)
44625 + {
44626 + /* The relaxer will bump the refcount if necessary */
44627 + frag_now->tc_frag_data.pool
44628 + = add_to_cpool(exp, &frag_now->tc_frag_data.pool_entry, 0);
44629 + }
44630 +
44631 + frag_var(rs_machine_dependent, max_size - initial_size,
44632 + initial_size, initial_subtype, sym, off, buf);
44633 +
44634 + return NULL;
44635 +}
44636 +
44637 +static const char *
44638 +finish_call(const struct avr32_syntax *syntax ATTRIBUTE_UNUSED)
44639 +{
44640 + expressionS *exp = &current_insn.immediate;
44641 + symbolS *sym;
44642 + offsetT off;
44643 + int initial_size, max_size;
44644 + char *buf;
44645 +
44646 + initial_size = CALL_INITIAL_SIZE;
44647 +
44648 + if (avr32_pic)
44649 + {
44650 + if (linkrelax)
44651 + max_size = 10;
44652 + else
44653 + max_size = 4;
44654 + }
44655 + else
44656 + max_size = 4;
44657 +
44658 + frag_grow(max_size);
44659 + buf = frag_more(initial_size);
44660 + dwarf2_emit_insn(initial_size);
44661 +
44662 + frag_now->tc_frag_data.relaxer = &avr32_call_relaxer;
44663 +
44664 + if (exp->X_op == O_symbol)
44665 + {
44666 + sym = exp->X_add_symbol;
44667 + off = exp->X_add_number;
44668 + }
44669 + else
44670 + {
44671 + sym = make_expr_symbol(exp);
44672 + off = 0;
44673 + }
44674 +
44675 + if (!avr32_pic)
44676 + {
44677 + /* The relaxer will bump the refcount if necessary */
44678 + frag_now->tc_frag_data.pool
44679 + = add_to_cpool(exp, &frag_now->tc_frag_data.pool_entry, 0);
44680 + }
44681 +
44682 + frag_var(rs_machine_dependent, max_size - initial_size,
44683 + initial_size, CALL_SUBTYPE_RCALL1, sym, off, buf);
44684 +
44685 + return NULL;
44686 +}
44687 +
44688 +void
44689 +md_begin (void)
44690 +{
44691 + unsigned long flags = 0;
44692 + int i;
44693 +
44694 + avr32_mnemonic_htab = hash_new();
44695 +
44696 + if (!avr32_mnemonic_htab)
44697 + as_fatal(_("virtual memory exhausted"));
44698 +
44699 + for (i = 0; i < AVR32_NR_MNEMONICS; i++)
44700 + {
44701 + hash_insert(avr32_mnemonic_htab, avr32_mnemonic_table[i].name,
44702 + (void *)&avr32_mnemonic_table[i]);
44703 + }
44704 +
44705 + if (linkrelax)
44706 + flags |= EF_AVR32_LINKRELAX;
44707 + if (avr32_pic)
44708 + flags |= EF_AVR32_PIC;
44709 +
44710 + bfd_set_private_flags(stdoutput, flags);
44711 +
44712 +#ifdef OPC_CONSISTENCY_CHECK
44713 + if (sizeof(avr32_operand_table)/sizeof(avr32_operand_table[0])
44714 + < AVR32_NR_OPERANDS)
44715 + as_fatal(_("operand table is incomplete"));
44716 +
44717 + for (i = 0; i < AVR32_NR_OPERANDS; i++)
44718 + if (avr32_operand_table[i].id != i)
44719 + as_fatal(_("operand table inconsistency found at index %d\n"), i);
44720 + pr_debug("%d operands verified\n", AVR32_NR_OPERANDS);
44721 +
44722 + for (i = 0; i < AVR32_NR_IFIELDS; i++)
44723 + if (avr32_ifield_table[i].id != i)
44724 + as_fatal(_("ifield table inconsistency found at index %d\n"), i);
44725 + pr_debug("%d instruction fields verified\n", AVR32_NR_IFIELDS);
44726 +
44727 + for (i = 0; i < AVR32_NR_OPCODES; i++)
44728 + {
44729 + if (avr32_opc_table[i].id != i)
44730 + as_fatal(_("opcode table inconsistency found at index %d\n"), i);
44731 + if ((avr32_opc_table[i].var_field == -1
44732 + && avr32_relax_table[i].length != 0)
44733 + || (avr32_opc_table[i].var_field != -1
44734 + && avr32_relax_table[i].length == 0))
44735 + as_fatal(_("relax table inconsistency found at index %d\n"), i);
44736 + }
44737 + pr_debug("%d opcodes verified\n", AVR32_NR_OPCODES);
44738 +
44739 + for (i = 0; i < AVR32_NR_SYNTAX; i++)
44740 + if (avr32_syntax_table[i].id != i)
44741 + as_fatal(_("syntax table inconsistency found at index %d\n"), i);
44742 + pr_debug("%d syntax variants verified\n", AVR32_NR_SYNTAX);
44743 +
44744 + for (i = 0; i < AVR32_NR_ALIAS; i++)
44745 + if (avr32_alias_table[i].id != i)
44746 + as_fatal(_("alias table inconsistency found at index %d\n"), i);
44747 + pr_debug("%d aliases verified\n", AVR32_NR_ALIAS);
44748 +
44749 + for (i = 0; i < AVR32_NR_MNEMONICS; i++)
44750 + if (avr32_mnemonic_table[i].id != i)
44751 + as_fatal(_("mnemonic table inconsistency found at index %d\n"), i);
44752 + pr_debug("%d mnemonics verified\n", AVR32_NR_MNEMONICS);
44753 +#endif
44754 +}
44755 +
44756 +void
44757 +md_assemble (char *str)
44758 +{
44759 + struct avr32_mnemonic *mnemonic;
44760 + char *p, c;
44761 +
44762 + memset(&current_insn, 0, sizeof(current_insn));
44763 + current_insn.immediate.X_op = O_constant;
44764 +
44765 + skip_whitespace(str);
44766 + for (p = str; *p; p++)
44767 + if (*p == ' ')
44768 + break;
44769 + c = *p;
44770 + *p = 0;
44771 +
44772 + mnemonic = hash_find(avr32_mnemonic_htab, str);
44773 + *p = c;
44774 + if (c) p++;
44775 +
44776 + if (mnemonic)
44777 + {
44778 + const struct avr32_syntax *syntax;
44779 +
44780 + for (syntax = mnemonic->syntax; syntax; syntax = syntax->next)
44781 + {
44782 + const char *errmsg = NULL;
44783 +
44784 + if (syntax_matches(syntax, p))
44785 + {
44786 + if (!(syntax->isa_flags & avr32_arch->isa_flags))
44787 + {
44788 + as_bad(_("Selected architecture `%s' does not support `%s'"),
44789 + avr32_arch->name, str);
44790 + return;
44791 + }
44792 +
44793 + current_insn.syntax = syntax;
44794 + parse_operands(p);
44795 +
44796 + switch (syntax->type)
44797 + {
44798 + case AVR32_PARSER_NORMAL:
44799 + errmsg = finish_insn(syntax->u.opc);
44800 + break;
44801 + case AVR32_PARSER_ALIAS:
44802 + errmsg = finish_alias(syntax->u.alias);
44803 + break;
44804 + case AVR32_PARSER_LDA:
44805 + errmsg = finish_lda(syntax);
44806 + break;
44807 + case AVR32_PARSER_CALL:
44808 + errmsg = finish_call(syntax);
44809 + break;
44810 + default:
44811 + BAD_CASE(syntax->type);
44812 + break;
44813 + }
44814 +
44815 + if (errmsg)
44816 + as_bad("%s in `%s'", errmsg, str);
44817 +
44818 + return;
44819 + }
44820 + }
44821 +
44822 + as_bad(_("unrecognized form of instruction: `%s'"), str);
44823 + }
44824 + else
44825 + as_bad(_("unrecognized instruction `%s'"), str);
44826 +}
44827 +
44828 +void avr32_cleanup(void)
44829 +{
44830 + struct cpool *pool;
44831 +
44832 + /* Emit any constant pools that haven't been explicitly flushed with
44833 + a .cpool directive. */
44834 + for (pool = cpool_list; pool; pool = pool->next)
44835 + {
44836 + subseg_set(pool->section, pool->sub_section);
44837 + s_cpool(0);
44838 + }
44839 +}
44840 +
44841 +/* Handle any PIC-related operands in data allocation pseudo-ops */
44842 +void
44843 +avr32_cons_fix_new (fragS *frag, int off, int size, expressionS *exp)
44844 +{
44845 + bfd_reloc_code_real_type r_type = BFD_RELOC_UNUSED;
44846 + int pcrel = 0;
44847 +
44848 + pr_debug("%s:%u: cons_fix_new, add_sym: %s, op_sym: %s, op: %d, add_num: %d\n",
44849 + frag->fr_file, frag->fr_line,
44850 + exp->X_add_symbol?S_GET_NAME(exp->X_add_symbol):"(none)",
44851 + exp->X_op_symbol?S_GET_NAME(exp->X_op_symbol):"(none)",
44852 + exp->X_op, exp->X_add_number);
44853 +
44854 + if (exp->X_op == O_subtract && exp->X_op_symbol)
44855 + {
44856 + if (exp->X_op_symbol == GOT_symbol)
44857 + {
44858 + if (size != 4)
44859 + goto bad_size;
44860 + r_type = BFD_RELOC_AVR32_GOTPC;
44861 + exp->X_op = O_symbol;
44862 + exp->X_op_symbol = NULL;
44863 + }
44864 + }
44865 + else if (exp->X_op == O_got)
44866 + {
44867 + switch (size)
44868 + {
44869 + case 1:
44870 + r_type = BFD_RELOC_AVR32_GOT8;
44871 + break;
44872 + case 2:
44873 + r_type = BFD_RELOC_AVR32_GOT16;
44874 + break;
44875 + case 4:
44876 + r_type = BFD_RELOC_AVR32_GOT32;
44877 + break;
44878 + default:
44879 + goto bad_size;
44880 + }
44881 +
44882 + exp->X_op = O_symbol;
44883 + }
44884 +
44885 + if (r_type == BFD_RELOC_UNUSED)
44886 + switch (size)
44887 + {
44888 + case 1:
44889 + r_type = BFD_RELOC_8;
44890 + break;
44891 + case 2:
44892 + r_type = BFD_RELOC_16;
44893 + break;
44894 + case 4:
44895 + r_type = BFD_RELOC_32;
44896 + break;
44897 + default:
44898 + goto bad_size;
44899 + }
44900 + else if (size != 4)
44901 + {
44902 + bad_size:
44903 + as_bad(_("unsupported BFD relocation size %u"), size);
44904 + r_type = BFD_RELOC_UNUSED;
44905 + }
44906 +
44907 + fix_new_exp (frag, off, size, exp, pcrel, r_type);
44908 +}
44909 +
44910 +static void
44911 +avr32_frob_section(bfd *abfd ATTRIBUTE_UNUSED, segT sec,
44912 + void *ignore ATTRIBUTE_UNUSED)
44913 +{
44914 + segment_info_type *seginfo;
44915 + fixS *fix;
44916 +
44917 + seginfo = seg_info(sec);
44918 + if (!seginfo)
44919 + return;
44920 +
44921 + for (fix = seginfo->fix_root; fix; fix = fix->fx_next)
44922 + {
44923 + if (fix->fx_done)
44924 + continue;
44925 +
44926 + if (fix->fx_r_type == BFD_RELOC_AVR32_SUB5
44927 + && fix->fx_addsy && fix->fx_subsy)
44928 + {
44929 + if (S_GET_SEGMENT(fix->fx_addsy) != S_GET_SEGMENT(fix->fx_subsy)
44930 + || linkrelax)
44931 + {
44932 + symbolS *tmp;
44933 +#ifdef DEBUG
44934 + fprintf(stderr, "Swapping symbols in fixup:\n");
44935 + print_fixup(fix);
44936 +#endif
44937 + tmp = fix->fx_addsy;
44938 + fix->fx_addsy = fix->fx_subsy;
44939 + fix->fx_subsy = tmp;
44940 + fix->fx_offset = -fix->fx_offset;
44941 + }
44942 + }
44943 + }
44944 +}
44945 +
44946 +/* We need to look for SUB5 instructions with expressions that will be
44947 + made PC-relative and switch fx_addsy with fx_subsy. This has to be
44948 + done before adjustment or the wrong symbol might be adjusted.
44949 +
44950 + This applies to fixups that are a result of expressions like -(sym
44951 + - .) and that will make it all the way to md_apply_fix3(). LDA
44952 + does the right thing in convert_frag, so we must not convert
44953 + those. */
44954 +void
44955 +avr32_frob_file(void)
44956 +{
44957 + /* if (1 || !linkrelax)
44958 + return; */
44959 +
44960 + bfd_map_over_sections(stdoutput, avr32_frob_section, NULL);
44961 +}
44962 +
44963 +static bfd_boolean
44964 +convert_to_diff_reloc(fixS *fixP)
44965 +{
44966 + switch (fixP->fx_r_type)
44967 + {
44968 + case BFD_RELOC_32:
44969 + fixP->fx_r_type = BFD_RELOC_AVR32_DIFF32;
44970 + break;
44971 + case BFD_RELOC_16:
44972 + fixP->fx_r_type = BFD_RELOC_AVR32_DIFF16;
44973 + break;
44974 + case BFD_RELOC_8:
44975 + fixP->fx_r_type = BFD_RELOC_AVR32_DIFF8;
44976 + break;
44977 + default:
44978 + return FALSE;
44979 + }
44980 +
44981 + return TRUE;
44982 +}
44983 +
44984 +/* Simplify a fixup. If possible, the fixup is reduced to a single
44985 + constant which is written to the output file. Otherwise, a
44986 + relocation is generated so that the linker can take care of the
44987 + rest.
44988 +
44989 + ELF relocations have certain constraints: They can only take a
44990 + single symbol and a single addend. This means that for difference
44991 + expressions, we _must_ get rid of the fx_subsy symbol somehow.
44992 +
44993 + The difference between two labels in the same section can be
44994 + calculated directly unless 'linkrelax' is set, or a relocation is
44995 + forced. If so, we must emit a R_AVR32_DIFFxx relocation. If there
44996 + are addends involved at this point, we must be especially careful
44997 + as the relocation must point exactly to the symbol being
44998 + subtracted.
44999 +
45000 + When subtracting a symbol defined in the same section as the fixup,
45001 + we might be able to convert it to a PC-relative expression, unless
45002 + linkrelax is set. If this is the case, there's no way we can make
45003 + sure that the difference between the fixup and fx_subsy stays
45004 + constant. So for now, we're just going to disallow that.
45005 + */
45006 +void
45007 +avr32_process_fixup(fixS *fixP, segT this_segment)
45008 +{
45009 + segT add_symbol_segment = absolute_section;
45010 + segT sub_symbol_segment = absolute_section;
45011 + symbolS *fx_addsy, *fx_subsy;
45012 + offsetT value = 0, fx_offset;
45013 + bfd_boolean apply = FALSE;
45014 +
45015 + assert(this_segment != absolute_section);
45016 +
45017 + if (fixP->fx_r_type >= BFD_RELOC_UNUSED)
45018 + {
45019 + as_bad_where(fixP->fx_file, fixP->fx_line,
45020 + _("Bad relocation type %d\n"), fixP->fx_r_type);
45021 + return;
45022 + }
45023 +
45024 + /* BFD_RELOC_AVR32_SUB5 fixups have been swapped by avr32_frob_section() */
45025 + fx_addsy = fixP->fx_addsy;
45026 + fx_subsy = fixP->fx_subsy;
45027 + fx_offset = fixP->fx_offset;
45028 +
45029 + if (fx_addsy)
45030 + add_symbol_segment = S_GET_SEGMENT(fx_addsy);
45031 +
45032 + if (fx_subsy)
45033 + {
45034 + resolve_symbol_value(fx_subsy);
45035 + sub_symbol_segment = S_GET_SEGMENT(fx_subsy);
45036 +
45037 + if (sub_symbol_segment == this_segment
45038 + && (!linkrelax
45039 + || S_GET_VALUE(fx_subsy) == (fixP->fx_frag->fr_address
45040 + + fixP->fx_where)))
45041 + {
45042 + fixP->fx_pcrel = TRUE;
45043 + fx_offset += (fixP->fx_frag->fr_address + fixP->fx_where
45044 + - S_GET_VALUE(fx_subsy));
45045 + fx_subsy = NULL;
45046 + }
45047 + else if (sub_symbol_segment == absolute_section)
45048 + {
45049 + /* The symbol is really a constant. */
45050 + fx_offset -= S_GET_VALUE(fx_subsy);
45051 + fx_subsy = NULL;
45052 + }
45053 + else if (SEG_NORMAL(add_symbol_segment)
45054 + && sub_symbol_segment == add_symbol_segment
45055 + && (!linkrelax || convert_to_diff_reloc(fixP)))
45056 + {
45057 + /* Difference between two labels in the same section. */
45058 + if (linkrelax)
45059 + {
45060 + /* convert_to_diff() has ensured that the reloc type is
45061 + either DIFF32, DIFF16 or DIFF8. */
45062 + value = (S_GET_VALUE(fx_addsy) + fixP->fx_offset
45063 + - S_GET_VALUE(fx_subsy));
45064 +
45065 + /* Try to convert it to a section symbol if possible */
45066 + if (!S_FORCE_RELOC(fx_addsy, 1)
45067 + && !(sub_symbol_segment->flags & SEC_THREAD_LOCAL))
45068 + {
45069 + fx_offset = S_GET_VALUE(fx_subsy);
45070 + fx_addsy = section_symbol(sub_symbol_segment);
45071 + }
45072 + else
45073 + {
45074 + fx_addsy = fx_subsy;
45075 + fx_offset = 0;
45076 + }
45077 +
45078 + fx_subsy = NULL;
45079 + apply = TRUE;
45080 + }
45081 + else
45082 + {
45083 + fx_offset += S_GET_VALUE(fx_addsy);
45084 + fx_offset -= S_GET_VALUE(fx_subsy);
45085 + fx_addsy = NULL;
45086 + fx_subsy = NULL;
45087 + }
45088 + }
45089 + else
45090 + {
45091 + as_bad_where(fixP->fx_file, fixP->fx_line,
45092 + _("can't resolve `%s' {%s section} - `%s' {%s section}"),
45093 + fx_addsy ? S_GET_NAME (fx_addsy) : "0",
45094 + segment_name (add_symbol_segment),
45095 + S_GET_NAME (fx_subsy),
45096 + segment_name (sub_symbol_segment));
45097 + return;
45098 + }
45099 + }
45100 +
45101 + if (fx_addsy && !TC_FORCE_RELOCATION(fixP))
45102 + {
45103 + if (add_symbol_segment == this_segment
45104 + && fixP->fx_pcrel)
45105 + {
45106 + value += S_GET_VALUE(fx_addsy);
45107 + value -= md_pcrel_from_section(fixP, this_segment);
45108 + fx_addsy = NULL;
45109 + fixP->fx_pcrel = FALSE;
45110 + }
45111 + else if (add_symbol_segment == absolute_section)
45112 + {
45113 + fx_offset += S_GET_VALUE(fixP->fx_addsy);
45114 + fx_addsy = NULL;
45115 + }
45116 + }
45117 +
45118 + if (!fx_addsy)
45119 + fixP->fx_done = TRUE;
45120 +
45121 + if (fixP->fx_pcrel)
45122 + {
45123 + if (fx_addsy != NULL
45124 + && S_IS_DEFINED(fx_addsy)
45125 + && S_GET_SEGMENT(fx_addsy) != this_segment)
45126 + value += md_pcrel_from_section(fixP, this_segment);
45127 +
45128 + switch (fixP->fx_r_type)
45129 + {
45130 + case BFD_RELOC_32:
45131 + fixP->fx_r_type = BFD_RELOC_32_PCREL;
45132 + break;
45133 + case BFD_RELOC_16:
45134 + fixP->fx_r_type = BFD_RELOC_16_PCREL;
45135 + break;
45136 + case BFD_RELOC_8:
45137 + fixP->fx_r_type = BFD_RELOC_8_PCREL;
45138 + break;
45139 + case BFD_RELOC_AVR32_SUB5:
45140 + fixP->fx_r_type = BFD_RELOC_AVR32_16N_PCREL;
45141 + break;
45142 + case BFD_RELOC_AVR32_16S:
45143 + fixP->fx_r_type = BFD_RELOC_AVR32_16B_PCREL;
45144 + break;
45145 + case BFD_RELOC_AVR32_14UW:
45146 + fixP->fx_r_type = BFD_RELOC_AVR32_14UW_PCREL;
45147 + break;
45148 + case BFD_RELOC_AVR32_10UW:
45149 + fixP->fx_r_type = BFD_RELOC_AVR32_10UW_PCREL;
45150 + break;
45151 + default:
45152 + /* Should have been taken care of already */
45153 + break;
45154 + }
45155 + }
45156 +
45157 + if (fixP->fx_done || apply)
45158 + {
45159 + const struct avr32_ifield *ifield;
45160 + char *buf = fixP->fx_where + fixP->fx_frag->fr_literal;
45161 +
45162 + if (fixP->fx_done)
45163 + value += fx_offset;
45164 +
45165 + switch (fixP->fx_r_type)
45166 + {
45167 + case BFD_RELOC_32:
45168 + case BFD_RELOC_16:
45169 + case BFD_RELOC_8:
45170 + case BFD_RELOC_AVR32_DIFF32:
45171 + case BFD_RELOC_AVR32_DIFF16:
45172 + case BFD_RELOC_AVR32_DIFF8:
45173 + md_number_to_chars(buf, value, fixP->fx_size);
45174 + break;
45175 + case BFD_RELOC_HI16:
45176 + value >>= 16;
45177 + case BFD_RELOC_LO16:
45178 + value &= 0xffff;
45179 + md_number_to_chars(buf + 2, value, 2);
45180 + break;
45181 + case BFD_RELOC_AVR32_16N_PCREL:
45182 + value = -value;
45183 + /* fall through */
45184 + case BFD_RELOC_AVR32_22H_PCREL:
45185 + case BFD_RELOC_AVR32_18W_PCREL:
45186 + case BFD_RELOC_AVR32_16B_PCREL:
45187 + case BFD_RELOC_AVR32_11H_PCREL:
45188 + case BFD_RELOC_AVR32_9H_PCREL:
45189 + case BFD_RELOC_AVR32_9UW_PCREL:
45190 + case BFD_RELOC_AVR32_3U:
45191 + case BFD_RELOC_AVR32_4UH:
45192 + case BFD_RELOC_AVR32_6UW:
45193 + case BFD_RELOC_AVR32_6S:
45194 + case BFD_RELOC_AVR32_7UW:
45195 + case BFD_RELOC_AVR32_8S_EXT:
45196 + case BFD_RELOC_AVR32_8S:
45197 + case BFD_RELOC_AVR32_10UW:
45198 + case BFD_RELOC_AVR32_10SW:
45199 + case BFD_RELOC_AVR32_STHH_W:
45200 + case BFD_RELOC_AVR32_14UW:
45201 + case BFD_RELOC_AVR32_16S:
45202 + case BFD_RELOC_AVR32_16U:
45203 + case BFD_RELOC_AVR32_21S:
45204 + case BFD_RELOC_AVR32_SUB5:
45205 + case BFD_RELOC_AVR32_CPCALL:
45206 + case BFD_RELOC_AVR32_16_CP:
45207 + case BFD_RELOC_AVR32_9W_CP:
45208 + ifield = fixP->tc_fix_data.ifield;
45209 + pr_debug("insert field: %ld <= %ld <= %ld (align %u)\n",
45210 + fixP->tc_fix_data.min, value, fixP->tc_fix_data.max,
45211 + fixP->tc_fix_data.align);
45212 + if (value < fixP->tc_fix_data.min || value > fixP->tc_fix_data.max)
45213 + as_bad_where(fixP->fx_file, fixP->fx_line,
45214 + _("operand out of range (%ld not between %ld and %ld)"),
45215 + value, fixP->tc_fix_data.min, fixP->tc_fix_data.max);
45216 + if (value & ((1 << fixP->tc_fix_data.align) - 1))
45217 + as_bad_where(fixP->fx_file, fixP->fx_line,
45218 + _("misaligned operand (required alignment: %d)"),
45219 + 1 << fixP->tc_fix_data.align);
45220 + ifield->insert(ifield, buf, value >> fixP->tc_fix_data.align);
45221 + break;
45222 + case BFD_RELOC_AVR32_ALIGN:
45223 + /* Nothing to do */
45224 + fixP->fx_done = FALSE;
45225 + break;
45226 + default:
45227 + as_fatal("reloc type %s not handled\n",
45228 + bfd_get_reloc_code_name(fixP->fx_r_type));
45229 + }
45230 + }
45231 +
45232 + fixP->fx_addsy = fx_addsy;
45233 + fixP->fx_subsy = fx_subsy;
45234 + fixP->fx_offset = fx_offset;
45235 +
45236 + if (!fixP->fx_done)
45237 + {
45238 + if (!fixP->fx_addsy)
45239 + fixP->fx_addsy = abs_section_sym;
45240 +
45241 + symbol_mark_used_in_reloc(fixP->fx_addsy);
45242 + if (fixP->fx_subsy)
45243 + abort();
45244 + }
45245 +}
45246 +
45247 +#if 0
45248 +void
45249 +md_apply_fix3 (fixS *fixP, valueT *valP, segT seg)
45250 +{
45251 + const struct avr32_ifield *ifield;
45252 + offsetT value = *valP;
45253 + char *buf = fixP->fx_where + fixP->fx_frag->fr_literal;
45254 + bfd_boolean apply;
45255 +
45256 + pr_debug("%s:%u: apply_fix3: r_type=%d value=%lx offset=%lx\n",
45257 + fixP->fx_file, fixP->fx_line, fixP->fx_r_type, *valP,
45258 + fixP->fx_offset);
45259 +
45260 + if (fixP->fx_r_type >= BFD_RELOC_UNUSED)
45261 + {
45262 + as_bad_where(fixP->fx_file, fixP->fx_line,
45263 + _("Bad relocation type %d\n"), fixP->fx_r_type);
45264 + return;
45265 + }
45266 +
45267 + if (!fixP->fx_addsy && !fixP->fx_subsy)
45268 + fixP->fx_done = 1;
45269 +
45270 + if (fixP->fx_pcrel)
45271 + {
45272 + if (fixP->fx_addsy != NULL
45273 + && S_IS_DEFINED(fixP->fx_addsy)
45274 + && S_GET_SEGMENT(fixP->fx_addsy) != seg)
45275 + value += md_pcrel_from_section(fixP, seg);
45276 +
45277 + switch (fixP->fx_r_type)
45278 + {
45279 + case BFD_RELOC_32:
45280 + fixP->fx_r_type = BFD_RELOC_32_PCREL;
45281 + break;
45282 + case BFD_RELOC_16:
45283 + case BFD_RELOC_8:
45284 + as_bad_where (fixP->fx_file, fixP->fx_line,
45285 + _("8- and 16-bit PC-relative relocations not supported"));
45286 + break;
45287 + case BFD_RELOC_AVR32_SUB5:
45288 + fixP->fx_r_type = BFD_RELOC_AVR32_PCREL_SUB5;
45289 + break;
45290 + case BFD_RELOC_AVR32_16S:
45291 + fixP->fx_r_type = BFD_RELOC_AVR32_16_PCREL;
45292 + break;
45293 + default:
45294 + /* Should have been taken care of already */
45295 + break;
45296 + }
45297 + }
45298 +
45299 + if (fixP->fx_r_type == BFD_RELOC_32
45300 + && fixP->fx_subsy)
45301 + {
45302 + fixP->fx_r_type = BFD_RELOC_AVR32_DIFF32;
45303 +
45304 + /* Offsets are only allowed if it's a result of adjusting a
45305 + local symbol into a section-relative offset.
45306 + tc_fix_adjustable() should prevent any adjustment if there
45307 + was an offset involved before. */
45308 + if (fixP->fx_offset && !symbol_section_p(fixP->fx_addsy))
45309 + as_bad_where(fixP->fx_file, fixP->fx_line,
45310 + _("cannot represent symbol difference with an offset"));
45311 +
45312 + value = (S_GET_VALUE(fixP->fx_addsy) + fixP->fx_offset
45313 + - S_GET_VALUE(fixP->fx_subsy));
45314 +
45315 + /* The difference before any relaxing takes place is written
45316 + out, and the DIFF32 reloc identifies the address of the first
45317 + symbol (i.e. the on that's subtracted.) */
45318 + *valP = value;
45319 + fixP->fx_offset -= value;
45320 + fixP->fx_subsy = NULL;
45321 +
45322 + md_number_to_chars(buf, value, fixP->fx_size);
45323 + }
45324 +
45325 + if (fixP->fx_done)
45326 + {
45327 + switch (fixP->fx_r_type)
45328 + {
45329 + case BFD_RELOC_8:
45330 + case BFD_RELOC_16:
45331 + case BFD_RELOC_32:
45332 + md_number_to_chars(buf, value, fixP->fx_size);
45333 + break;
45334 + case BFD_RELOC_HI16:
45335 + value >>= 16;
45336 + case BFD_RELOC_LO16:
45337 + value &= 0xffff;
45338 + *valP = value;
45339 + md_number_to_chars(buf + 2, value, 2);
45340 + break;
45341 + case BFD_RELOC_AVR32_PCREL_SUB5:
45342 + value = -value;
45343 + /* fall through */
45344 + case BFD_RELOC_AVR32_9_PCREL:
45345 + case BFD_RELOC_AVR32_11_PCREL:
45346 + case BFD_RELOC_AVR32_16_PCREL:
45347 + case BFD_RELOC_AVR32_18_PCREL:
45348 + case BFD_RELOC_AVR32_22_PCREL:
45349 + case BFD_RELOC_AVR32_3U:
45350 + case BFD_RELOC_AVR32_4UH:
45351 + case BFD_RELOC_AVR32_6UW:
45352 + case BFD_RELOC_AVR32_6S:
45353 + case BFD_RELOC_AVR32_7UW:
45354 + case BFD_RELOC_AVR32_8S:
45355 + case BFD_RELOC_AVR32_10UW:
45356 + case BFD_RELOC_AVR32_10SW:
45357 + case BFD_RELOC_AVR32_14UW:
45358 + case BFD_RELOC_AVR32_16S:
45359 + case BFD_RELOC_AVR32_16U:
45360 + case BFD_RELOC_AVR32_21S:
45361 + case BFD_RELOC_AVR32_BRC1:
45362 + case BFD_RELOC_AVR32_SUB5:
45363 + case BFD_RELOC_AVR32_CPCALL:
45364 + case BFD_RELOC_AVR32_16_CP:
45365 + case BFD_RELOC_AVR32_9_CP:
45366 + ifield = fixP->tc_fix_data.ifield;
45367 + pr_debug("insert field: %ld <= %ld <= %ld (align %u)\n",
45368 + fixP->tc_fix_data.min, value, fixP->tc_fix_data.max,
45369 + fixP->tc_fix_data.align);
45370 + if (value < fixP->tc_fix_data.min || value > fixP->tc_fix_data.max)
45371 + as_bad_where(fixP->fx_file, fixP->fx_line,
45372 + _("operand out of range (%ld not between %ld and %ld)"),
45373 + value, fixP->tc_fix_data.min, fixP->tc_fix_data.max);
45374 + if (value & ((1 << fixP->tc_fix_data.align) - 1))
45375 + as_bad_where(fixP->fx_file, fixP->fx_line,
45376 + _("misaligned operand (required alignment: %d)"),
45377 + 1 << fixP->tc_fix_data.align);
45378 + ifield->insert(ifield, buf, value >> fixP->tc_fix_data.align);
45379 + break;
45380 + case BFD_RELOC_AVR32_ALIGN:
45381 + /* Nothing to do */
45382 + fixP->fx_done = FALSE;
45383 + break;
45384 + default:
45385 + as_fatal("reloc type %s not handled\n",
45386 + bfd_get_reloc_code_name(fixP->fx_r_type));
45387 + }
45388 + }
45389 +}
45390 +#endif
45391 +
45392 +arelent *
45393 +tc_gen_reloc (asection *section ATTRIBUTE_UNUSED,
45394 + fixS *fixp)
45395 +{
45396 + arelent *reloc;
45397 + bfd_reloc_code_real_type code;
45398 +
45399 + reloc = xmalloc (sizeof (arelent));
45400 +
45401 + reloc->sym_ptr_ptr = xmalloc (sizeof (asymbol *));
45402 + *reloc->sym_ptr_ptr = symbol_get_bfdsym (fixp->fx_addsy);
45403 + reloc->address = fixp->fx_frag->fr_address + fixp->fx_where;
45404 + reloc->addend = fixp->fx_offset;
45405 + code = fixp->fx_r_type;
45406 +
45407 + reloc->howto = bfd_reloc_type_lookup (stdoutput, code);
45408 +
45409 + if (reloc->howto == NULL)
45410 + {
45411 + as_bad_where (fixp->fx_file, fixp->fx_line,
45412 + _("cannot represent relocation %s in this object file format"),
45413 + bfd_get_reloc_code_name (code));
45414 + return NULL;
45415 + }
45416 +
45417 + return reloc;
45418 +}
45419 +
45420 +bfd_boolean
45421 +avr32_force_reloc(fixS *fixP)
45422 +{
45423 + if (linkrelax && fixP->fx_addsy
45424 + && !(S_GET_SEGMENT(fixP->fx_addsy)->flags & SEC_DEBUGGING)
45425 + && S_GET_SEGMENT(fixP->fx_addsy) != absolute_section)
45426 + {
45427 + pr_debug(stderr, "force reloc: addsy=%p, r_type=%d, sec=%s\n",
45428 + fixP->fx_addsy, fixP->fx_r_type, S_GET_SEGMENT(fixP->fx_addsy)->name);
45429 + return 1;
45430 + }
45431 +
45432 + return generic_force_reloc(fixP);
45433 +}
45434 +
45435 +bfd_boolean
45436 +avr32_fix_adjustable(fixS *fixP)
45437 +{
45438 + switch (fixP->fx_r_type)
45439 + {
45440 + /* GOT relocations can't have addends since BFD treats all
45441 + references to a given symbol the same. This means that we
45442 + must avoid section-relative references to local symbols when
45443 + dealing with these kinds of relocs */
45444 + case BFD_RELOC_AVR32_GOT32:
45445 + case BFD_RELOC_AVR32_GOT16:
45446 + case BFD_RELOC_AVR32_GOT8:
45447 + case BFD_RELOC_AVR32_GOT21S:
45448 + case BFD_RELOC_AVR32_GOT18SW:
45449 + case BFD_RELOC_AVR32_GOT16S:
45450 + case BFD_RELOC_AVR32_LDA_GOT:
45451 + case BFD_RELOC_AVR32_GOTCALL:
45452 + pr_debug("fix not adjustable\n");
45453 + return 0;
45454 +
45455 + default:
45456 + break;
45457 + }
45458 +
45459 + return 1;
45460 +}
45461 +
45462 +/* When we want the linker to be able to relax the code, we need to
45463 + output a reloc for every .align directive requesting an alignment
45464 + to a four byte boundary or larger. If we don't do this, the linker
45465 + can't guarantee that the alignment is actually maintained in the
45466 + linker output.
45467 +
45468 + TODO: Might as well insert proper NOPs while we're at it... */
45469 +void
45470 +avr32_handle_align(fragS *frag)
45471 +{
45472 + if (linkrelax
45473 + && frag->fr_type == rs_align_code
45474 + && frag->fr_address + frag->fr_fix > 0
45475 + && frag->fr_offset > 0)
45476 + {
45477 + /* The alignment order (fr_offset) is stored in the addend. */
45478 + fix_new(frag, frag->fr_fix, 2, &abs_symbol, frag->fr_offset,
45479 + FALSE, BFD_RELOC_AVR32_ALIGN);
45480 + }
45481 +}
45482 +
45483 +/* Relax_align. Advance location counter to next address that has 'alignment'
45484 + lowest order bits all 0s, return size of adjustment made. */
45485 +relax_addressT
45486 +avr32_relax_align(segT segment ATTRIBUTE_UNUSED,
45487 + fragS *fragP,
45488 + relax_addressT address)
45489 +{
45490 + relax_addressT mask;
45491 + relax_addressT new_address;
45492 + int alignment;
45493 +
45494 + alignment = fragP->fr_offset;
45495 + mask = ~((~0) << alignment);
45496 + new_address = (address + mask) & (~mask);
45497 +
45498 + return new_address - address;
45499 +}
45500 +
45501 +/* Turn a string in input_line_pointer into a floating point constant
45502 + of type type, and store the appropriate bytes in *litP. The number
45503 + of LITTLENUMS emitted is stored in *sizeP . An error message is
45504 + returned, or NULL on OK. */
45505 +
45506 +/* Equal to MAX_PRECISION in atof-ieee.c */
45507 +#define MAX_LITTLENUMS 6
45508 +
45509 +char *
45510 +md_atof (type, litP, sizeP)
45511 +char type;
45512 +char * litP;
45513 +int * sizeP;
45514 +{
45515 + int i;
45516 + int prec;
45517 + LITTLENUM_TYPE words [MAX_LITTLENUMS];
45518 + char * t;
45519 +
45520 + switch (type)
45521 + {
45522 + case 'f':
45523 + case 'F':
45524 + case 's':
45525 + case 'S':
45526 + prec = 2;
45527 + break;
45528 +
45529 + case 'd':
45530 + case 'D':
45531 + case 'r':
45532 + case 'R':
45533 + prec = 4;
45534 + break;
45535 +
45536 + /* FIXME: Some targets allow other format chars for bigger sizes here. */
45537 +
45538 + default:
45539 + * sizeP = 0;
45540 + return _("Bad call to md_atof()");
45541 + }
45542 +
45543 + t = atof_ieee (input_line_pointer, type, words);
45544 + if (t)
45545 + input_line_pointer = t;
45546 + * sizeP = prec * sizeof (LITTLENUM_TYPE);
45547 +
45548 + for (i = 0; i < prec; i++)
45549 + {
45550 + md_number_to_chars (litP, (valueT) words[i],
45551 + sizeof (LITTLENUM_TYPE));
45552 + litP += sizeof (LITTLENUM_TYPE);
45553 + }
45554 +
45555 + return 0;
45556 +}
45557 +
45558 +static char *avr32_end_of_match(char *cont, char *what)
45559 +{
45560 + int len = strlen (what);
45561 +
45562 + if (! is_part_of_name (cont[len])
45563 + && strncasecmp (cont, what, len) == 0)
45564 + return cont + len;
45565 +
45566 + return NULL;
45567 +}
45568 +
45569 +int
45570 +avr32_parse_name (char const *name, expressionS *exp, char *nextchar)
45571 +{
45572 + char *next = input_line_pointer;
45573 + char *next_end;
45574 +
45575 + pr_debug("parse_name: %s, nextchar=%c (%02x)\n", name, *nextchar, *nextchar);
45576 +
45577 + if (*nextchar == '(')
45578 + {
45579 + if (strcasecmp(name, "hi") == 0)
45580 + {
45581 + *next = *nextchar;
45582 +
45583 + expression(exp);
45584 +
45585 + if (exp->X_op == O_constant)
45586 + {
45587 + pr_debug(" -> constant hi(0x%08lx) -> 0x%04lx\n",
45588 + exp->X_add_number, exp->X_add_number >> 16);
45589 + exp->X_add_number = (exp->X_add_number >> 16) & 0xffff;
45590 + }
45591 + else
45592 + {
45593 + exp->X_md = exp->X_op;
45594 + exp->X_op = O_hi;
45595 + }
45596 +
45597 + return 1;
45598 + }
45599 + else if (strcasecmp(name, "lo") == 0)
45600 + {
45601 + *next = *nextchar;
45602 +
45603 + expression(exp);
45604 +
45605 + if (exp->X_op == O_constant)
45606 + exp->X_add_number &= 0xffff;
45607 + else
45608 + {
45609 + exp->X_md = exp->X_op;
45610 + exp->X_op = O_lo;
45611 + }
45612 +
45613 + return 1;
45614 + }
45615 + }
45616 + else if (*nextchar == '@')
45617 + {
45618 + exp->X_md = exp->X_op;
45619 +
45620 + if ((next_end = avr32_end_of_match (next + 1, "got")))
45621 + exp->X_op = O_got;
45622 + else if ((next_end = avr32_end_of_match (next + 1, "tlsgd")))
45623 + exp->X_op = O_tlsgd;
45624 + /* Add more as needed */
45625 + else
45626 + {
45627 + char c;
45628 + input_line_pointer++;
45629 + c = get_symbol_end();
45630 + as_bad (_("unknown relocation override `%s'"), next + 1);
45631 + *input_line_pointer = c;
45632 + input_line_pointer = next;
45633 + return 0;
45634 + }
45635 +
45636 + exp->X_op_symbol = NULL;
45637 + exp->X_add_symbol = symbol_find_or_make (name);
45638 + exp->X_add_number = 0;
45639 +
45640 + *input_line_pointer = *nextchar;
45641 + input_line_pointer = next_end;
45642 + *nextchar = *input_line_pointer;
45643 + *input_line_pointer = '\0';
45644 + return 1;
45645 + }
45646 + else if (strcmp (name, "_GLOBAL_OFFSET_TABLE_") == 0)
45647 + {
45648 + if (!GOT_symbol)
45649 + GOT_symbol = symbol_find_or_make(name);
45650 +
45651 + exp->X_add_symbol = GOT_symbol;
45652 + exp->X_op = O_symbol;
45653 + exp->X_add_number = 0;
45654 + return 1;
45655 + }
45656 +
45657 + return 0;
45658 +}
45659 +
45660 +static void
45661 +s_rseg (int value ATTRIBUTE_UNUSED)
45662 +{
45663 + /* Syntax: RSEG segment_name [:type] [NOROOT|ROOT] [(align)]
45664 + * Defaults:
45665 + * - type: undocumented ("typically CODE or DATA")
45666 + * - ROOT
45667 + * - align: 1 for code, 0 for others
45668 + *
45669 + * TODO: NOROOT is ignored. If gas supports discardable segments, it should
45670 + * be implemented.
45671 + */
45672 + char *name, *end;
45673 + int length, type, attr;
45674 + int align = 0;
45675 +
45676 + SKIP_WHITESPACE();
45677 +
45678 + end = input_line_pointer;
45679 + while (0 == strchr ("\n\t;:( ", *end))
45680 + end++;
45681 + if (end == input_line_pointer)
45682 + {
45683 + as_warn (_("missing name"));
45684 + ignore_rest_of_line();
45685 + return;
45686 + }
45687 +
45688 + name = xmalloc (end - input_line_pointer + 1);
45689 + memcpy (name, input_line_pointer, end - input_line_pointer);
45690 + name[end - input_line_pointer] = '\0';
45691 + input_line_pointer = end;
45692 +
45693 + SKIP_WHITESPACE();
45694 +
45695 + type = SHT_NULL;
45696 + attr = 0;
45697 +
45698 + if (*input_line_pointer == ':')
45699 + {
45700 + /* Skip the colon */
45701 + ++input_line_pointer;
45702 + SKIP_WHITESPACE();
45703 +
45704 + /* Possible options at this point:
45705 + * - flag (ROOT or NOROOT)
45706 + * - a segment type
45707 + */
45708 + end = input_line_pointer;
45709 + while (0 == strchr ("\n\t;:( ", *end))
45710 + end++;
45711 + length = end - input_line_pointer;
45712 + if (((length == 4) && (0 == strncasecmp( input_line_pointer, "ROOT", 4))) ||
45713 + ((length == 6) && (0 == strncasecmp( input_line_pointer, "NOROOT", 6))))
45714 + {
45715 + /* Ignore ROOT/NOROOT */
45716 + input_line_pointer = end;
45717 + }
45718 + else
45719 + {
45720 + /* Must be a segment type */
45721 + switch (*input_line_pointer)
45722 + {
45723 + case 'C':
45724 + case 'c':
45725 + if ((length == 4) &&
45726 + (0 == strncasecmp (input_line_pointer, "CODE", 4)))
45727 + {
45728 + attr |= SHF_ALLOC | SHF_EXECINSTR;
45729 + type = SHT_PROGBITS;
45730 + align = 1;
45731 + break;
45732 + }
45733 + if ((length == 5) &&
45734 + (0 == strncasecmp (input_line_pointer, "CONST", 5)))
45735 + {
45736 + attr |= SHF_ALLOC;
45737 + type = SHT_PROGBITS;
45738 + break;
45739 + }
45740 + goto de_fault;
45741 +
45742 + case 'D':
45743 + case 'd':
45744 + if ((length == 4) &&
45745 + (0 == strncasecmp (input_line_pointer, "DATA", 4)))
45746 + {
45747 + attr |= SHF_ALLOC | SHF_WRITE;
45748 + type = SHT_PROGBITS;
45749 + break;
45750 + }
45751 + goto de_fault;
45752 +
45753 + /* TODO: Add FAR*, HUGE*, IDATA and NEAR* if necessary */
45754 +
45755 + case 'U':
45756 + case 'u':
45757 + if ((length == 7) &&
45758 + (0 == strncasecmp (input_line_pointer, "UNTYPED", 7)))
45759 + break;
45760 + goto de_fault;
45761 +
45762 + /* TODO: Add XDATA and ZPAGE if necessary */
45763 +
45764 + de_fault:
45765 + default:
45766 + as_warn (_("unrecognized segment type"));
45767 + }
45768 +
45769 + input_line_pointer = end;
45770 + SKIP_WHITESPACE();
45771 +
45772 + if (*input_line_pointer == ':')
45773 + {
45774 + /* ROOT/NOROOT */
45775 + ++input_line_pointer;
45776 + SKIP_WHITESPACE();
45777 +
45778 + end = input_line_pointer;
45779 + while (0 == strchr ("\n\t;:( ", *end))
45780 + end++;
45781 + length = end - input_line_pointer;
45782 + if (! ((length == 4) &&
45783 + (0 == strncasecmp( input_line_pointer, "ROOT", 4))) &&
45784 + ! ((length == 6) &&
45785 + (0 == strncasecmp( input_line_pointer, "NOROOT", 6))))
45786 + {
45787 + as_warn (_("unrecognized segment flag"));
45788 + }
45789 +
45790 + input_line_pointer = end;
45791 + SKIP_WHITESPACE();
45792 + }
45793 + }
45794 + }
45795 +
45796 + if (*input_line_pointer == '(')
45797 + {
45798 + align = get_absolute_expression ();
45799 + }
45800 +
45801 + demand_empty_rest_of_line();
45802 +
45803 + obj_elf_change_section (name, type, attr, 0, NULL, 0, 0);
45804 +#ifdef AVR32_DEBUG
45805 + fprintf( stderr, "RSEG: Changed section to %s, type: 0x%x, attr: 0x%x\n",
45806 + name, type, attr );
45807 + fprintf( stderr, "RSEG: Aligning to 2**%d\n", align );
45808 +#endif
45809 +
45810 + if (align > 15)
45811 + {
45812 + align = 15;
45813 + as_warn (_("alignment too large: %u assumed"), align);
45814 + }
45815 +
45816 + /* Hope not, that is */
45817 + assert (now_seg != absolute_section);
45818 +
45819 + /* Only make a frag if we HAVE to... */
45820 + if (align != 0 && !need_pass_2)
45821 + {
45822 + if (subseg_text_p (now_seg))
45823 + frag_align_code (align, 0);
45824 + else
45825 + frag_align (align, 0, 0);
45826 + }
45827 +
45828 + record_alignment (now_seg, align - OCTETS_PER_BYTE_POWER);
45829 +}
45830 +
45831 +/* vim: syntax=c sw=2
45832 + */
45833 diff -Nrup binutils-2.17/gas/config/tc-avr32.h binutils-2.17.atmel.1.3.0/gas/config/tc-avr32.h
45834 --- binutils-2.17/gas/config/tc-avr32.h 1970-01-01 01:00:00.000000000 +0100
45835 +++ binutils-2.17.atmel.1.3.0/gas/config/tc-avr32.h 2007-03-26 10:20:14.000000000 +0200
45836 @@ -0,0 +1,313 @@
45837 +/* Assembler definitions for AVR32.
45838 + Copyright 2003-2006 Atmel Corporation.
45839 +
45840 + Written by Haavard Skinnemoen, Atmel Norway, <hskinnemoen@atmel.com>
45841 +
45842 + This file is part of GAS, the GNU Assembler.
45843 +
45844 + GAS is free software; you can redistribute it and/or modify it
45845 + under the terms of the GNU General Public License as published by
45846 + the Free Software Foundation; either version 2, or (at your option)
45847 + any later version.
45848 +
45849 + GAS is distributed in the hope that it will be useful, but WITHOUT
45850 + ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
45851 + or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
45852 + License for more details.
45853 +
45854 + You should have received a copy of the GNU General Public License
45855 + along with GAS; see the file COPYING. If not, write to the Free
45856 + Software Foundation, 59 Temple Place - Suite 330, Boston, MA
45857 + 02111-1307, USA. */
45858 +
45859 +#if 0
45860 +#define DEBUG
45861 +#define DEBUG1
45862 +#define DEBUG2
45863 +#define DEBUG3
45864 +#define DEBUG4
45865 +#define DEBUG5
45866 +#endif
45867 +
45868 +/* Are we trying to be compatible with the IAR assembler? (--iar) */
45869 +extern int avr32_iarcompat;
45870 +
45871 +/* By convention, you should define this macro in the `.h' file. For
45872 + example, `tc-m68k.h' defines `TC_M68K'. You might have to use this
45873 + if it is necessary to add CPU specific code to the object format
45874 + file. */
45875 +#define TC_AVR32
45876 +
45877 +/* This macro is the BFD target name to use when creating the output
45878 + file. This will normally depend upon the `OBJ_FMT' macro. */
45879 +#define TARGET_FORMAT "elf32-avr32"
45880 +
45881 +/* This macro is the BFD architecture to pass to `bfd_set_arch_mach'. */
45882 +#define TARGET_ARCH bfd_arch_avr32
45883 +
45884 +/* This macro is the BFD machine number to pass to
45885 + `bfd_set_arch_mach'. If it is not defined, GAS will use 0. */
45886 +#define TARGET_MACH 0
45887 +
45888 +/* UNDOCUMENTED: Allow //-style comments */
45889 +#define DOUBLESLASH_LINE_COMMENTS
45890 +
45891 +/* You should define this macro to be non-zero if the target is big
45892 + endian, and zero if the target is little endian. */
45893 +#define TARGET_BYTES_BIG_ENDIAN 1
45894 +
45895 +/* FIXME: It seems that GAS only expects a one-byte opcode...
45896 + #define NOP_OPCODE 0xd703 */
45897 +
45898 +/* If you define this macro, GAS will warn about the use of
45899 + nonstandard escape sequences in a string. */
45900 +#undef ONLY_STANDARD_ESCAPES
45901 +
45902 +#define DWARF2_FORMAT() dwarf2_format_32bit
45903 +
45904 +/* Instructions are either 2 or 4 bytes long */
45905 +/* #define DWARF2_LINE_MIN_INSN_LENGTH 2 */
45906 +
45907 +/* GAS will call this function for any expression that can not be
45908 + recognized. When the function is called, `input_line_pointer'
45909 + will point to the start of the expression. */
45910 +#define md_operand(x)
45911 +
45912 +#define md_parse_name(name, expr, mode, c) avr32_parse_name(name, expr, c)
45913 +extern int avr32_parse_name(const char *, struct expressionS *, char *);
45914 +
45915 +/* You may define this macro to generate a fixup for a data
45916 + allocation pseudo-op. */
45917 +#define TC_CONS_FIX_NEW(FRAG, OFF, LEN, EXP) \
45918 + avr32_cons_fix_new(FRAG, OFF, LEN, EXP)
45919 +void avr32_cons_fix_new (fragS *, int, int, expressionS *);
45920 +
45921 +/* `extsym - .' expressions can be emitted using PC-relative relocs */
45922 +#define DIFF_EXPR_OK
45923 +
45924 +/* This is used to construct expressions out of @gotoff, etc. The
45925 + relocation type is stored in X_md */
45926 +#define O_got O_md1
45927 +#define O_hi O_md2
45928 +#define O_lo O_md3
45929 +#define O_tlsgd O_md4
45930 +
45931 +/* You may define this macro to parse an expression used in a data
45932 + allocation pseudo-op such as `.word'. You can use this to
45933 + recognize relocation directives that may appear in such directives. */
45934 +/* #define TC_PARSE_CONS_EXPRESSION(EXPR,N) avr_parse_cons_expression (EXPR,N)
45935 + void avr_parse_cons_expression (expressionS *exp, int nbytes); */
45936 +
45937 +/* This should just call either `number_to_chars_bigendian' or
45938 + `number_to_chars_littleendian', whichever is appropriate. On
45939 + targets like the MIPS which support options to change the
45940 + endianness, which function to call is a runtime decision. On
45941 + other targets, `md_number_to_chars' can be a simple macro. */
45942 +#define md_number_to_chars number_to_chars_bigendian
45943 +
45944 +/* `md_short_jump_size'
45945 + `md_long_jump_size'
45946 + `md_create_short_jump'
45947 + `md_create_long_jump'
45948 + If `WORKING_DOT_WORD' is defined, GAS will not do broken word
45949 + processing (*note Broken words::.). Otherwise, you should set
45950 + `md_short_jump_size' to the size of a short jump (a jump that is
45951 + just long enough to jump around a long jmp) and
45952 + `md_long_jump_size' to the size of a long jump (a jump that can go
45953 + anywhere in the function), You should define
45954 + `md_create_short_jump' to create a short jump around a long jump,
45955 + and define `md_create_long_jump' to create a long jump. */
45956 +#define WORKING_DOT_WORD
45957 +
45958 +/* If you define this macro, it means that `tc_gen_reloc' may return
45959 + multiple relocation entries for a single fixup. In this case, the
45960 + return value of `tc_gen_reloc' is a pointer to a null terminated
45961 + array. */
45962 +#undef RELOC_EXPANSION_POSSIBLE
45963 +
45964 +/* If you define this macro, GAS will not require pseudo-ops to start with a .
45965 + character. */
45966 +#define NO_PSEUDO_DOT (avr32_iarcompat)
45967 +
45968 +/* The IAR assembler uses $ as the location counter. Unfortunately, we
45969 + can't make this dependent on avr32_iarcompat... */
45970 +#define DOLLAR_DOT
45971 +
45972 +/* Values passed to md_apply_fix3 don't include the symbol value. */
45973 +#define MD_APPLY_SYM_VALUE(FIX) 0
45974 +
45975 +/* The number of bytes to put into a word in a listing. This affects
45976 + the way the bytes are clumped together in the listing. For
45977 + example, a value of 2 might print `1234 5678' where a value of 1
45978 + would print `12 34 56 78'. The default value is 4. */
45979 +#define LISTING_WORD_SIZE 4
45980 +
45981 +/* extern const struct relax_type md_relax_table[];
45982 +#define TC_GENERIC_RELAX_TABLE md_relax_table */
45983 +
45984 +/*
45985 + An `.lcomm' directive with no explicit alignment parameter will use
45986 + this macro to set P2VAR to the alignment that a request for SIZE
45987 + bytes will have. The alignment is expressed as a power of two. If
45988 + no alignment should take place, the macro definition should do
45989 + nothing. Some targets define a `.bss' directive that is also
45990 + affected by this macro. The default definition will set P2VAR to
45991 + the truncated power of two of sizes up to eight bytes.
45992 +
45993 + We want doublewords to be word-aligned, so we're going to modify the
45994 + default definition a tiny bit.
45995 +*/
45996 +#define TC_IMPLICIT_LCOMM_ALIGNMENT(SIZE, P2VAR) \
45997 + do \
45998 + { \
45999 + if ((SIZE) >= 4) \
46000 + (P2VAR) = 2; \
46001 + else if ((SIZE) >= 2) \
46002 + (P2VAR) = 1; \
46003 + else \
46004 + (P2VAR) = 0; \
46005 + } \
46006 + while (0)
46007 +
46008 +/* When relaxing, we need to generate relocations for alignment
46009 + directives. */
46010 +#define HANDLE_ALIGN(frag) avr32_handle_align(frag)
46011 +extern void avr32_handle_align(fragS *);
46012 +
46013 +/* See internals doc for explanation. Oh wait...
46014 + Now, can you guess where "alignment" comes from? ;-) */
46015 +#define MAX_MEM_FOR_RS_ALIGN_CODE ((1 << alignment) - 1)
46016 +
46017 +/* We need to stop gas from reducing certain expressions (e.g. GOT
46018 + references) */
46019 +#define tc_fix_adjustable(fix) avr32_fix_adjustable(fix)
46020 +extern bfd_boolean avr32_fix_adjustable(struct fix *);
46021 +
46022 +/* The linker needs to be passed a little more information when relaxing. */
46023 +#define TC_FORCE_RELOCATION(fix) avr32_force_reloc(fix)
46024 +extern bfd_boolean avr32_force_reloc(struct fix *);
46025 +
46026 +/* I'm tired of working around all the madness in fixup_segment().
46027 + This hook will do basically the same things as the generic code,
46028 + and then it will "goto" right past it. */
46029 +#define TC_VALIDATE_FIX(FIX, SEG, SKIP) \
46030 + do \
46031 + { \
46032 + avr32_process_fixup(FIX, SEG); \
46033 + if (!(FIX)->fx_done) \
46034 + ++seg_reloc_count; \
46035 + goto SKIP; \
46036 + } \
46037 + while (0)
46038 +extern void avr32_process_fixup(struct fix *fixP, segT this_segment);
46039 +
46040 +/* We don't want the gas core to make any assumptions about our way of
46041 + doing linkrelaxing. */
46042 +#define TC_LINKRELAX_FIXUP(SEG) 0
46043 +
46044 +/* ... but we do want it to insert lots of padding. */
46045 +#define LINKER_RELAXING_SHRINKS_ONLY
46046 +
46047 +/* Better do it ourselves, really... */
46048 +#define TC_RELAX_ALIGN(SEG, FRAG, ADDR) avr32_relax_align(SEG, FRAG, ADDR)
46049 +extern relax_addressT
46050 +avr32_relax_align(segT segment, fragS *fragP, relax_addressT address);
46051 +
46052 +/* This is called by write_object_file() just before symbols are
46053 + attempted converted into section symbols. */
46054 +#define tc_frob_file_before_adjust() avr32_frob_file()
46055 +extern void avr32_frob_file(void);
46056 +
46057 +/* If you define this macro, GAS will call it at the end of each input
46058 + file. */
46059 +#define md_cleanup() avr32_cleanup()
46060 +extern void avr32_cleanup(void);
46061 +
46062 +/* There's an AVR32-specific hack in operand() which creates O_md
46063 + expressions when encountering HWRD or LWRD. We need to generate
46064 + proper relocs for them */
46065 +/* #define md_cgen_record_fixup_exp avr32_cgen_record_fixup_exp */
46066 +
46067 +/* I needed to add an extra hook in gas_cgen_finish_insn() for
46068 + conversion of O_md* operands because md_cgen_record_fixup_exp()
46069 + isn't called for relaxable insns */
46070 +/* #define md_cgen_convert_expr(exp, opinfo) avr32_cgen_convert_expr(exp, opinfo)
46071 + int avr32_cgen_convert_expr(expressionS *, int); */
46072 +
46073 +/* #define tc_gen_reloc gas_cgen_tc_gen_reloc */
46074 +
46075 +/* If you define this macro, it should return the position from which
46076 + the PC relative adjustment for a PC relative fixup should be
46077 + made. On many processors, the base of a PC relative instruction is
46078 + the next instruction, so this macro would return the length of an
46079 + instruction, plus the address of the PC relative fixup. The latter
46080 + can be calculated as fixp->fx_where + fixp->fx_frag->fr_address. */
46081 +extern long md_pcrel_from_section (struct fix *, segT);
46082 +#define MD_PCREL_FROM_SECTION(FIX, SEC) md_pcrel_from_section (FIX, SEC)
46083 +
46084 +#define LOCAL_LABEL(name) (name[0] == '.' && (name[1] == 'L'))
46085 +#define LOCAL_LABELS_FB 1
46086 +
46087 +struct avr32_relaxer
46088 +{
46089 + int (*estimate_size)(fragS *, segT);
46090 + long (*relax_frag)(segT, fragS *, long);
46091 + void (*convert_frag)(bfd *, segT, fragS *);
46092 +};
46093 +
46094 +/* AVR32 has quite complex instruction coding, which means we need
46095 + * lots of information in order to do the right thing during relaxing
46096 + * (basically, we need to be able to reconstruct a whole new opcode if
46097 + * necessary) */
46098 +#define TC_FRAG_TYPE struct avr32_frag_data
46099 +
46100 +struct cpool;
46101 +
46102 +struct avr32_frag_data
46103 +{
46104 + /* TODO: Maybe add an expression object here so that we can use
46105 + fix_new_exp() in md_convert_frag? We may have to decide
46106 + pcrel-ness in md_estimate_size_before_relax() as well...or we
46107 + might do it when parsing. Doing it while parsing may fail
46108 + because the sub_symbol is undefined then... */
46109 + int pcrel;
46110 + int force_extended;
46111 + int reloc_info;
46112 + struct avr32_relaxer *relaxer;
46113 + expressionS exp;
46114 +
46115 + /* Points to associated constant pool, for use by LDA and CALL in
46116 + non-pic mode, and when relaxing the .cpool directive */
46117 + struct cpool *pool;
46118 + unsigned int pool_entry;
46119 +};
46120 +
46121 +/* We will have to initialize the fields explicitly when needed */
46122 +#define TC_FRAG_INIT(fragP)
46123 +
46124 +#define md_estimate_size_before_relax(fragP, segT) \
46125 + ((fragP)->tc_frag_data.relaxer->estimate_size(fragP, segT))
46126 +#define md_relax_frag(segment, fragP, stretch) \
46127 + ((fragP)->tc_frag_data.relaxer->relax_frag(segment, fragP, stretch))
46128 +#define md_convert_frag(abfd, segment, fragP) \
46129 + ((fragP)->tc_frag_data.relaxer->convert_frag(abfd, segment, fragP))
46130 +
46131 +#define TC_FIX_TYPE struct avr32_fix_data
46132 +
46133 +struct avr32_fix_data
46134 +{
46135 + const struct avr32_ifield *ifield;
46136 + unsigned int align;
46137 + long min;
46138 + long max;
46139 +};
46140 +
46141 +#define TC_INIT_FIX_DATA(fixP) \
46142 + do \
46143 + { \
46144 + (fixP)->tc_fix_data.ifield = NULL; \
46145 + (fixP)->tc_fix_data.align = 0; \
46146 + (fixP)->tc_fix_data.min = 0; \
46147 + (fixP)->tc_fix_data.max = 0; \
46148 + } \
46149 + while (0)
46150 diff -Nrup binutils-2.17/gas/configure.tgt binutils-2.17.atmel.1.3.0/gas/configure.tgt
46151 --- binutils-2.17/gas/configure.tgt 2006-04-05 14:41:57.000000000 +0200
46152 +++ binutils-2.17.atmel.1.3.0/gas/configure.tgt 2007-03-26 10:20:16.000000000 +0200
46153 @@ -33,6 +33,7 @@ case ${cpu} in
46154 am33_2.0) cpu_type=mn10300 endian=little ;;
46155 arm*be|arm*b) cpu_type=arm endian=big ;;
46156 arm*) cpu_type=arm endian=little ;;
46157 + avr32*) cpu_type=avr32 endian=big ;;
46158 bfin*) cpu_type=bfin endian=little ;;
46159 c4x*) cpu_type=tic4x ;;
46160 crisv32) cpu_type=cris arch=crisv32 ;;
46161 @@ -122,6 +123,9 @@ case ${generic_target} in
46162 bfin-*-*) fmt=elf bfd_gas=yes ;;
46163 bfin-*elf) fmt=elf ;;
46164
46165 + avr32-*-linux*) fmt=elf em=linux bfd_gas=yes ;;
46166 + avr32*) fmt=elf bfd_gas=yes ;;
46167 +
46168 cris-*-linux-* | crisv32-*-linux-*)
46169 fmt=multi em=linux ;;
46170 cris-*-* | crisv32-*-*) fmt=multi ;;
46171 diff -Nrup binutils-2.17/gas/doc/all.texi binutils-2.17.atmel.1.3.0/gas/doc/all.texi
46172 --- binutils-2.17/gas/doc/all.texi 2006-02-17 15:36:25.000000000 +0100
46173 +++ binutils-2.17.atmel.1.3.0/gas/doc/all.texi 2007-03-26 10:19:41.000000000 +0200
46174 @@ -29,6 +29,7 @@
46175 @set ALPHA
46176 @set ARC
46177 @set ARM
46178 +@set AVR32
46179 @set BFIN
46180 @set CRIS
46181 @set D10V
46182 diff -Nrup binutils-2.17/gas/doc/as.info binutils-2.17.atmel.1.3.0/gas/doc/as.info
46183 --- binutils-2.17/gas/doc/as.info 2006-06-23 20:19:50.000000000 +0200
46184 +++ binutils-2.17.atmel.1.3.0/gas/doc/as.info 2007-03-26 10:35:18.000000000 +0200
46185 @@ -1,5 +1,7 @@
46186 -This is ../.././gas/doc/as.info, produced by makeinfo version 4.8 from
46187 -../.././gas/doc/as.texinfo.
46188 +This is
46189 +/home/hcegtvedt/svnwork/tools/T0243-GNU_Toolchain/50-Source/binutils/trunk/gas/doc/as.info,
46190 +produced by makeinfo version 4.8 from
46191 +/home/hcegtvedt/svnwork/tools/T0243-GNU_Toolchain/50-Source/binutils/trunk/gas/doc/as.texinfo.
46192
46193 START-INFO-DIR-ENTRY
46194 * As: (as). The GNU assembler.
46195 @@ -17890,463 +17892,463 @@ Index
46196
46197 \1f
46198 Tag Table:
46199 -Node: Top\7f778
46200 -Node: Overview\7f1695
46201 -Node: Manual\7f28187
46202 -Node: GNU Assembler\7f29131
46203 -Node: Object Formats\7f30302
46204 -Node: Command Line\7f30754
46205 -Node: Input Files\7f31841
46206 -Node: Object\7f33822
46207 -Node: Errors\7f34718
46208 -Node: Invoking\7f35913
46209 -Node: a\7f37862
46210 -Node: alternate\7f39634
46211 -Node: D\7f39806
46212 -Node: f\7f40039
46213 -Node: I\7f40547
46214 -Node: K\7f41091
46215 -Node: L\7f41394
46216 -Node: listing\7f42231
46217 -Node: M\7f43823
46218 -Node: MD\7f48224
46219 -Node: o\7f48650
46220 -Node: R\7f49105
46221 -Node: statistics\7f50135
46222 -Node: traditional-format\7f50542
46223 -Node: v\7f51015
46224 -Node: W\7f51290
46225 -Node: Z\7f52197
46226 -Node: Syntax\7f52719
46227 -Node: Preprocessing\7f53310
46228 -Node: Whitespace\7f54873
46229 -Node: Comments\7f55269
46230 -Node: Symbol Intro\7f57422
46231 -Node: Statements\7f58112
46232 -Node: Constants\7f60028
46233 -Node: Characters\7f60659
46234 -Node: Strings\7f61161
46235 -Node: Chars\7f63327
46236 -Node: Numbers\7f64081
46237 -Node: Integers\7f64621
46238 -Node: Bignums\7f65277
46239 -Node: Flonums\7f65633
46240 -Node: Sections\7f67380
46241 -Node: Secs Background\7f67758
46242 -Node: Ld Sections\7f72797
46243 -Node: As Sections\7f75181
46244 -Node: Sub-Sections\7f76091
46245 -Node: bss\7f79238
46246 -Node: Symbols\7f80188
46247 -Node: Labels\7f80836
46248 -Node: Setting Symbols\7f81567
46249 -Node: Symbol Names\7f82063
46250 -Node: Dot\7f86428
46251 -Node: Symbol Attributes\7f86875
46252 -Node: Symbol Value\7f87612
46253 -Node: Symbol Type\7f88657
46254 -Node: a.out Symbols\7f89045
46255 -Node: Symbol Desc\7f89307
46256 -Node: Symbol Other\7f89602
46257 -Node: COFF Symbols\7f89771
46258 -Node: SOM Symbols\7f90444
46259 -Node: Expressions\7f90886
46260 -Node: Empty Exprs\7f91635
46261 -Node: Integer Exprs\7f91982
46262 -Node: Arguments\7f92377
46263 -Node: Operators\7f93483
46264 -Node: Prefix Ops\7f93818
46265 -Node: Infix Ops\7f94146
46266 -Node: Pseudo Ops\7f96536
46267 -Node: Abort\7f101731
46268 -Node: ABORT\7f102136
46269 -Node: Align\7f102323
46270 -Node: Ascii\7f104605
46271 -Node: Asciz\7f104914
46272 -Node: Balign\7f105159
46273 -Node: Byte\7f107022
46274 -Node: Comm\7f107260
46275 -Node: CFI directives\7f108634
46276 -Node: LNS directives\7f110986
46277 -Node: Data\7f113063
46278 -Node: Def\7f113390
46279 -Node: Desc\7f113622
46280 -Node: Dim\7f114122
46281 -Node: Double\7f114379
46282 -Node: Eject\7f114717
46283 -Node: Else\7f114892
46284 -Node: Elseif\7f115188
46285 -Node: End\7f115478
46286 -Node: Endef\7f115693
46287 -Node: Endfunc\7f115870
46288 -Node: Endif\7f116045
46289 -Node: Equ\7f116306
46290 -Node: Equiv\7f116815
46291 -Node: Eqv\7f117371
46292 -Node: Err\7f117735
46293 -Node: Error\7f118046
46294 -Node: Exitm\7f118491
46295 -Node: Extern\7f118660
46296 -Node: Fail\7f118921
46297 -Node: File\7f119366
46298 -Node: Fill\7f119843
46299 -Node: Float\7f120807
46300 -Node: Func\7f121149
46301 -Node: Global\7f121739
46302 -Node: Hidden\7f122489
46303 -Node: hword\7f123068
46304 -Node: Ident\7f123396
46305 -Node: If\7f123970
46306 -Node: Incbin\7f127029
46307 -Node: Include\7f127724
46308 -Node: Int\7f128275
46309 -Node: Internal\7f128656
46310 -Node: Irp\7f129304
46311 -Node: Irpc\7f130201
46312 -Node: Lcomm\7f131118
46313 -Node: Lflags\7f131866
46314 -Node: Line\7f132060
46315 -Node: Linkonce\7f132979
46316 -Node: Ln\7f134208
46317 -Node: MRI\7f134369
46318 -Node: List\7f134707
46319 -Node: Long\7f135315
46320 -Node: Macro\7f135501
46321 -Node: Altmacro\7f140064
46322 -Node: Noaltmacro\7f141394
46323 -Node: Nolist\7f141562
46324 -Node: Octa\7f141992
46325 -Node: Org\7f142326
46326 -Node: P2align\7f143609
46327 -Node: Previous\7f145537
46328 -Node: PopSection\7f146231
46329 -Node: Print\7f146739
46330 -Node: Protected\7f146968
46331 -Node: Psize\7f147615
46332 -Node: Purgem\7f148299
46333 -Node: PushSection\7f148520
46334 -Node: Quad\7f149077
46335 -Node: Rept\7f149532
46336 -Node: Sbttl\7f149945
46337 -Node: Scl\7f150310
46338 -Node: Section\7f150651
46339 -Node: Set\7f155791
46340 -Node: Short\7f156428
46341 -Node: Single\7f156748
46342 -Node: Size\7f157093
46343 -Node: Sleb128\7f157765
46344 -Node: Skip\7f158087
46345 -Node: Space\7f158409
46346 -Node: Stab\7f159048
46347 -Node: String\7f161050
46348 -Node: Struct\7f161476
46349 -Node: SubSection\7f162199
46350 -Node: Symver\7f162760
46351 -Node: Tag\7f165151
46352 -Node: Text\7f165531
46353 -Node: Title\7f165850
46354 -Node: Type\7f166229
46355 -Node: Uleb128\7f167306
46356 -Node: Val\7f167630
46357 -Node: Version\7f167880
46358 -Node: VTableEntry\7f168155
46359 -Node: VTableInherit\7f168445
46360 -Node: Warning\7f168891
46361 -Node: Weak\7f169125
46362 -Node: Weakref\7f169794
46363 -Node: Word\7f170759
46364 -Node: Deprecated\7f172605
46365 -Node: Machine Dependencies\7f172840
46366 -Node: Alpha-Dependent\7f175604
46367 -Node: Alpha Notes\7f176018
46368 -Node: Alpha Options\7f176299
46369 -Node: Alpha Syntax\7f178497
46370 -Node: Alpha-Chars\7f178966
46371 -Node: Alpha-Regs\7f179197
46372 -Node: Alpha-Relocs\7f179584
46373 -Node: Alpha Floating Point\7f185842
46374 -Node: Alpha Directives\7f186064
46375 -Node: Alpha Opcodes\7f191587
46376 -Node: ARC-Dependent\7f191882
46377 -Node: ARC Options\7f192265
46378 -Node: ARC Syntax\7f193334
46379 -Node: ARC-Chars\7f193566
46380 -Node: ARC-Regs\7f193698
46381 -Node: ARC Floating Point\7f193822
46382 -Node: ARC Directives\7f194133
46383 -Node: ARC Opcodes\7f200104
46384 -Node: ARM-Dependent\7f200330
46385 -Node: ARM Options\7f200757
46386 -Node: ARM Syntax\7f206551
46387 -Node: ARM-Chars\7f206783
46388 -Node: ARM-Regs\7f207307
46389 -Node: ARM Floating Point\7f207492
46390 -Node: ARM Directives\7f207691
46391 -Node: ARM Opcodes\7f214055
46392 -Node: ARM Mapping Symbols\7f216143
46393 -Node: BFIN-Dependent\7f216922
46394 -Node: BFIN Syntax\7f217176
46395 -Node: BFIN Directives\7f222873
46396 -Node: CRIS-Dependent\7f223280
46397 -Node: CRIS-Opts\7f223626
46398 -Ref: march-option\7f225244
46399 -Node: CRIS-Expand\7f227061
46400 -Node: CRIS-Symbols\7f228244
46401 -Node: CRIS-Syntax\7f229413
46402 -Node: CRIS-Chars\7f229749
46403 -Node: CRIS-Pic\7f230300
46404 -Ref: crispic\7f230496
46405 -Node: CRIS-Regs\7f234036
46406 -Node: CRIS-Pseudos\7f234453
46407 -Ref: crisnous\7f235229
46408 -Node: D10V-Dependent\7f236511
46409 -Node: D10V-Opts\7f236862
46410 -Node: D10V-Syntax\7f237825
46411 -Node: D10V-Size\7f238354
46412 -Node: D10V-Subs\7f239327
46413 -Node: D10V-Chars\7f240362
46414 -Node: D10V-Regs\7f241966
46415 -Node: D10V-Addressing\7f243011
46416 -Node: D10V-Word\7f243697
46417 -Node: D10V-Float\7f244212
46418 -Node: D10V-Opcodes\7f244523
46419 -Node: D30V-Dependent\7f244916
46420 -Node: D30V-Opts\7f245269
46421 -Node: D30V-Syntax\7f245944
46422 -Node: D30V-Size\7f246476
46423 -Node: D30V-Subs\7f247447
46424 -Node: D30V-Chars\7f248482
46425 -Node: D30V-Guarded\7f250780
46426 -Node: D30V-Regs\7f251460
46427 -Node: D30V-Addressing\7f252599
46428 -Node: D30V-Float\7f253267
46429 -Node: D30V-Opcodes\7f253578
46430 -Node: H8/300-Dependent\7f253971
46431 -Node: H8/300 Options\7f254381
46432 -Node: H8/300 Syntax\7f254590
46433 -Node: H8/300-Chars\7f254889
46434 -Node: H8/300-Regs\7f255186
46435 -Node: H8/300-Addressing\7f256103
46436 -Node: H8/300 Floating Point\7f257142
46437 -Node: H8/300 Directives\7f257467
46438 -Node: H8/300 Opcodes\7f258593
46439 -Node: HPPA-Dependent\7f266913
46440 -Node: HPPA Notes\7f267346
46441 -Node: HPPA Options\7f268102
46442 -Node: HPPA Syntax\7f268295
46443 -Node: HPPA Floating Point\7f269563
46444 -Node: HPPA Directives\7f269767
46445 -Node: HPPA Opcodes\7f278451
46446 -Node: ESA/390-Dependent\7f278708
46447 -Node: ESA/390 Notes\7f279168
46448 -Node: ESA/390 Options\7f279959
46449 -Node: ESA/390 Syntax\7f280169
46450 -Node: ESA/390 Floating Point\7f282342
46451 -Node: ESA/390 Directives\7f282621
46452 -Node: ESA/390 Opcodes\7f285910
46453 -Node: i386-Dependent\7f286172
46454 -Node: i386-Options\7f287240
46455 -Node: i386-Syntax\7f288430
46456 -Node: i386-Mnemonics\7f290844
46457 -Node: i386-Regs\7f293309
46458 -Node: i386-Prefixes\7f295354
46459 -Node: i386-Memory\7f298114
46460 -Node: i386-Jumps\7f301051
46461 -Node: i386-Float\7f302172
46462 -Node: i386-SIMD\7f304001
46463 -Node: i386-16bit\7f305110
46464 -Node: i386-Bugs\7f307148
46465 -Node: i386-Arch\7f307902
46466 -Node: i386-Notes\7f310083
46467 -Node: i860-Dependent\7f310941
46468 -Node: Notes-i860\7f311337
46469 -Node: Options-i860\7f312242
46470 -Node: Directives-i860\7f313605
46471 -Node: Opcodes for i860\7f314674
46472 -Node: i960-Dependent\7f316841
46473 -Node: Options-i960\7f317244
46474 -Node: Floating Point-i960\7f321128
46475 -Node: Directives-i960\7f321396
46476 -Node: Opcodes for i960\7f323430
46477 -Node: callj-i960\7f324047
46478 -Node: Compare-and-branch-i960\7f324536
46479 -Node: IA-64-Dependent\7f326440
46480 -Node: IA-64 Options\7f326741
46481 -Node: IA-64 Syntax\7f329901
46482 -Node: IA-64-Chars\7f330264
46483 -Node: IA-64-Regs\7f330494
46484 -Node: IA-64-Bits\7f331420
46485 -Node: IA-64 Opcodes\7f331929
46486 -Node: IP2K-Dependent\7f332201
46487 -Node: IP2K-Opts\7f332429
46488 -Node: M32C-Dependent\7f332909
46489 -Node: M32C-Opts\7f333433
46490 -Node: M32C-Modifiers\7f333717
46491 -Node: M32R-Dependent\7f335504
46492 -Node: M32R-Opts\7f335825
46493 -Node: M32R-Directives\7f339991
46494 -Node: M32R-Warnings\7f343966
46495 -Node: M68K-Dependent\7f346972
46496 -Node: M68K-Opts\7f347439
46497 -Node: M68K-Syntax\7f354818
46498 -Node: M68K-Moto-Syntax\7f356657
46499 -Node: M68K-Float\7f359246
46500 -Node: M68K-Directives\7f359766
46501 -Node: M68K-opcodes\7f361092
46502 -Node: M68K-Branch\7f361318
46503 -Node: M68K-Chars\7f365516
46504 -Node: M68HC11-Dependent\7f365929
46505 -Node: M68HC11-Opts\7f366460
46506 -Node: M68HC11-Syntax\7f370276
46507 -Node: M68HC11-Modifiers\7f372490
46508 -Node: M68HC11-Directives\7f374318
46509 -Node: M68HC11-Float\7f375694
46510 -Node: M68HC11-opcodes\7f376222
46511 -Node: M68HC11-Branch\7f376404
46512 -Node: MIPS-Dependent\7f378851
46513 -Node: MIPS Opts\7f379941
46514 -Node: MIPS Object\7f387268
46515 -Node: MIPS Stabs\7f388834
46516 -Node: MIPS symbol sizes\7f389556
46517 -Node: MIPS ISA\7f391225
46518 -Node: MIPS autoextend\7f392374
46519 -Node: MIPS insn\7f393104
46520 -Node: MIPS option stack\7f393601
46521 -Node: MIPS ASE instruction generation overrides\7f394375
46522 -Node: MMIX-Dependent\7f395592
46523 -Node: MMIX-Opts\7f395972
46524 -Node: MMIX-Expand\7f399576
46525 -Node: MMIX-Syntax\7f400891
46526 -Ref: mmixsite\7f401248
46527 -Node: MMIX-Chars\7f402089
46528 -Node: MMIX-Symbols\7f402743
46529 -Node: MMIX-Regs\7f404811
46530 -Node: MMIX-Pseudos\7f405836
46531 -Ref: MMIX-loc\7f405977
46532 -Ref: MMIX-local\7f407057
46533 -Ref: MMIX-is\7f407589
46534 -Ref: MMIX-greg\7f407860
46535 -Ref: GREG-base\7f408779
46536 -Ref: MMIX-byte\7f410096
46537 -Ref: MMIX-constants\7f410567
46538 -Ref: MMIX-prefix\7f411213
46539 -Ref: MMIX-spec\7f411587
46540 -Node: MMIX-mmixal\7f411921
46541 -Node: MSP430-Dependent\7f415418
46542 -Node: MSP430 Options\7f415884
46543 -Node: MSP430 Syntax\7f416170
46544 -Node: MSP430-Macros\7f416486
46545 -Node: MSP430-Chars\7f417217
46546 -Node: MSP430-Regs\7f417530
46547 -Node: MSP430-Ext\7f418090
46548 -Node: MSP430 Floating Point\7f419911
46549 -Node: MSP430 Directives\7f420135
46550 -Node: MSP430 Opcodes\7f420926
46551 -Node: MSP430 Profiling Capability\7f421321
46552 -Node: PDP-11-Dependent\7f423650
46553 -Node: PDP-11-Options\7f424039
46554 -Node: PDP-11-Pseudos\7f429110
46555 -Node: PDP-11-Syntax\7f429455
46556 -Node: PDP-11-Mnemonics\7f430206
46557 -Node: PDP-11-Synthetic\7f430508
46558 -Node: PJ-Dependent\7f430726
46559 -Node: PJ Options\7f430951
46560 -Node: PPC-Dependent\7f431228
46561 -Node: PowerPC-Opts\7f431515
46562 -Node: PowerPC-Pseudo\7f433590
46563 -Node: SH-Dependent\7f434189
46564 -Node: SH Options\7f434601
46565 -Node: SH Syntax\7f435529
46566 -Node: SH-Chars\7f435802
46567 -Node: SH-Regs\7f436096
46568 -Node: SH-Addressing\7f436710
46569 -Node: SH Floating Point\7f437619
46570 -Node: SH Directives\7f438713
46571 -Node: SH Opcodes\7f439083
46572 -Node: SH64-Dependent\7f443405
46573 -Node: SH64 Options\7f443768
46574 -Node: SH64 Syntax\7f445485
46575 -Node: SH64-Chars\7f445768
46576 -Node: SH64-Regs\7f446068
46577 -Node: SH64-Addressing\7f447164
46578 -Node: SH64 Directives\7f448347
46579 -Node: SH64 Opcodes\7f449457
46580 -Node: Sparc-Dependent\7f450173
46581 -Node: Sparc-Opts\7f450558
46582 -Node: Sparc-Aligned-Data\7f452815
46583 -Node: Sparc-Float\7f453670
46584 -Node: Sparc-Directives\7f453871
46585 -Node: TIC54X-Dependent\7f455831
46586 -Node: TIC54X-Opts\7f456557
46587 -Node: TIC54X-Block\7f457600
46588 -Node: TIC54X-Env\7f457960
46589 -Node: TIC54X-Constants\7f458308
46590 -Node: TIC54X-Subsyms\7f458710
46591 -Node: TIC54X-Locals\7f460619
46592 -Node: TIC54X-Builtins\7f461363
46593 -Node: TIC54X-Ext\7f463834
46594 -Node: TIC54X-Directives\7f464405
46595 -Node: TIC54X-Macros\7f475307
46596 -Node: TIC54X-MMRegs\7f477417
46597 -Node: Z80-Dependent\7f477633
46598 -Node: Z80 Options\7f478021
46599 -Node: Z80 Syntax\7f479444
46600 -Node: Z80-Chars\7f480116
46601 -Node: Z80-Regs\7f480649
46602 -Node: Z80-Case\7f481001
46603 -Node: Z80 Floating Point\7f481446
46604 -Node: Z80 Directives\7f481640
46605 -Node: Z80 Opcodes\7f483265
46606 -Node: Z8000-Dependent\7f484607
46607 -Node: Z8000 Options\7f485568
46608 -Node: Z8000 Syntax\7f485785
46609 -Node: Z8000-Chars\7f486075
46610 -Node: Z8000-Regs\7f486308
46611 -Node: Z8000-Addressing\7f487098
46612 -Node: Z8000 Directives\7f488215
46613 -Node: Z8000 Opcodes\7f489824
46614 -Node: Vax-Dependent\7f499766
46615 -Node: VAX-Opts\7f500283
46616 -Node: VAX-float\7f504018
46617 -Node: VAX-directives\7f504650
46618 -Node: VAX-opcodes\7f505511
46619 -Node: VAX-branch\7f505900
46620 -Node: VAX-operands\7f508407
46621 -Node: VAX-no\7f509170
46622 -Node: V850-Dependent\7f509407
46623 -Node: V850 Options\7f509805
46624 -Node: V850 Syntax\7f512194
46625 -Node: V850-Chars\7f512434
46626 -Node: V850-Regs\7f512599
46627 -Node: V850 Floating Point\7f514167
46628 -Node: V850 Directives\7f514373
46629 -Node: V850 Opcodes\7f515516
46630 -Node: Xtensa-Dependent\7f521408
46631 -Node: Xtensa Options\7f522137
46632 -Node: Xtensa Syntax\7f524908
46633 -Node: Xtensa Opcodes\7f526797
46634 -Node: Xtensa Registers\7f528591
46635 -Node: Xtensa Optimizations\7f529224
46636 -Node: Density Instructions\7f529676
46637 -Node: Xtensa Automatic Alignment\7f530778
46638 -Node: Xtensa Relaxation\7f533524
46639 -Node: Xtensa Branch Relaxation\7f534432
46640 -Node: Xtensa Call Relaxation\7f535804
46641 -Node: Xtensa Immediate Relaxation\7f537590
46642 -Node: Xtensa Directives\7f540164
46643 -Node: Schedule Directive\7f541872
46644 -Node: Longcalls Directive\7f542212
46645 -Node: Transform Directive\7f542756
46646 -Node: Literal Directive\7f543498
46647 -Node: Literal Position Directive\7f545283
46648 -Node: Literal Prefix Directive\7f546982
46649 -Node: Absolute Literals Directive\7f549145
46650 -Node: Reporting Bugs\7f550452
46651 -Node: Bug Criteria\7f551176
46652 -Node: Bug Reporting\7f551941
46653 -Node: Acknowledgements\7f558574
46654 -Ref: Acknowledgements-Footnote-1\7f563472
46655 -Node: GNU Free Documentation License\7f563498
46656 -Node: Index\7f583225
46657 +Node: Top\7f912
46658 +Node: Overview\7f1829
46659 +Node: Manual\7f28321
46660 +Node: GNU Assembler\7f29265
46661 +Node: Object Formats\7f30436
46662 +Node: Command Line\7f30888
46663 +Node: Input Files\7f31975
46664 +Node: Object\7f33956
46665 +Node: Errors\7f34852
46666 +Node: Invoking\7f36047
46667 +Node: a\7f37996
46668 +Node: alternate\7f39768
46669 +Node: D\7f39940
46670 +Node: f\7f40173
46671 +Node: I\7f40681
46672 +Node: K\7f41225
46673 +Node: L\7f41528
46674 +Node: listing\7f42365
46675 +Node: M\7f43957
46676 +Node: MD\7f48358
46677 +Node: o\7f48784
46678 +Node: R\7f49239
46679 +Node: statistics\7f50269
46680 +Node: traditional-format\7f50676
46681 +Node: v\7f51149
46682 +Node: W\7f51424
46683 +Node: Z\7f52331
46684 +Node: Syntax\7f52853
46685 +Node: Preprocessing\7f53444
46686 +Node: Whitespace\7f55007
46687 +Node: Comments\7f55403
46688 +Node: Symbol Intro\7f57556
46689 +Node: Statements\7f58246
46690 +Node: Constants\7f60162
46691 +Node: Characters\7f60793
46692 +Node: Strings\7f61295
46693 +Node: Chars\7f63461
46694 +Node: Numbers\7f64215
46695 +Node: Integers\7f64755
46696 +Node: Bignums\7f65411
46697 +Node: Flonums\7f65767
46698 +Node: Sections\7f67514
46699 +Node: Secs Background\7f67892
46700 +Node: Ld Sections\7f72931
46701 +Node: As Sections\7f75315
46702 +Node: Sub-Sections\7f76225
46703 +Node: bss\7f79372
46704 +Node: Symbols\7f80322
46705 +Node: Labels\7f80970
46706 +Node: Setting Symbols\7f81701
46707 +Node: Symbol Names\7f82197
46708 +Node: Dot\7f86562
46709 +Node: Symbol Attributes\7f87009
46710 +Node: Symbol Value\7f87746
46711 +Node: Symbol Type\7f88791
46712 +Node: a.out Symbols\7f89179
46713 +Node: Symbol Desc\7f89441
46714 +Node: Symbol Other\7f89736
46715 +Node: COFF Symbols\7f89905
46716 +Node: SOM Symbols\7f90578
46717 +Node: Expressions\7f91020
46718 +Node: Empty Exprs\7f91769
46719 +Node: Integer Exprs\7f92116
46720 +Node: Arguments\7f92511
46721 +Node: Operators\7f93617
46722 +Node: Prefix Ops\7f93952
46723 +Node: Infix Ops\7f94280
46724 +Node: Pseudo Ops\7f96670
46725 +Node: Abort\7f101865
46726 +Node: ABORT\7f102270
46727 +Node: Align\7f102457
46728 +Node: Ascii\7f104739
46729 +Node: Asciz\7f105048
46730 +Node: Balign\7f105293
46731 +Node: Byte\7f107156
46732 +Node: Comm\7f107394
46733 +Node: CFI directives\7f108768
46734 +Node: LNS directives\7f111120
46735 +Node: Data\7f113197
46736 +Node: Def\7f113524
46737 +Node: Desc\7f113756
46738 +Node: Dim\7f114256
46739 +Node: Double\7f114513
46740 +Node: Eject\7f114851
46741 +Node: Else\7f115026
46742 +Node: Elseif\7f115322
46743 +Node: End\7f115612
46744 +Node: Endef\7f115827
46745 +Node: Endfunc\7f116004
46746 +Node: Endif\7f116179
46747 +Node: Equ\7f116440
46748 +Node: Equiv\7f116949
46749 +Node: Eqv\7f117505
46750 +Node: Err\7f117869
46751 +Node: Error\7f118180
46752 +Node: Exitm\7f118625
46753 +Node: Extern\7f118794
46754 +Node: Fail\7f119055
46755 +Node: File\7f119500
46756 +Node: Fill\7f119977
46757 +Node: Float\7f120941
46758 +Node: Func\7f121283
46759 +Node: Global\7f121873
46760 +Node: Hidden\7f122623
46761 +Node: hword\7f123202
46762 +Node: Ident\7f123530
46763 +Node: If\7f124104
46764 +Node: Incbin\7f127163
46765 +Node: Include\7f127858
46766 +Node: Int\7f128409
46767 +Node: Internal\7f128790
46768 +Node: Irp\7f129438
46769 +Node: Irpc\7f130335
46770 +Node: Lcomm\7f131252
46771 +Node: Lflags\7f132000
46772 +Node: Line\7f132194
46773 +Node: Linkonce\7f133113
46774 +Node: Ln\7f134342
46775 +Node: MRI\7f134503
46776 +Node: List\7f134841
46777 +Node: Long\7f135449
46778 +Node: Macro\7f135635
46779 +Node: Altmacro\7f140198
46780 +Node: Noaltmacro\7f141528
46781 +Node: Nolist\7f141696
46782 +Node: Octa\7f142126
46783 +Node: Org\7f142460
46784 +Node: P2align\7f143743
46785 +Node: Previous\7f145671
46786 +Node: PopSection\7f146365
46787 +Node: Print\7f146873
46788 +Node: Protected\7f147102
46789 +Node: Psize\7f147749
46790 +Node: Purgem\7f148433
46791 +Node: PushSection\7f148654
46792 +Node: Quad\7f149211
46793 +Node: Rept\7f149666
46794 +Node: Sbttl\7f150079
46795 +Node: Scl\7f150444
46796 +Node: Section\7f150785
46797 +Node: Set\7f155925
46798 +Node: Short\7f156562
46799 +Node: Single\7f156882
46800 +Node: Size\7f157227
46801 +Node: Sleb128\7f157899
46802 +Node: Skip\7f158221
46803 +Node: Space\7f158543
46804 +Node: Stab\7f159182
46805 +Node: String\7f161184
46806 +Node: Struct\7f161610
46807 +Node: SubSection\7f162333
46808 +Node: Symver\7f162894
46809 +Node: Tag\7f165285
46810 +Node: Text\7f165665
46811 +Node: Title\7f165984
46812 +Node: Type\7f166363
46813 +Node: Uleb128\7f167440
46814 +Node: Val\7f167764
46815 +Node: Version\7f168014
46816 +Node: VTableEntry\7f168289
46817 +Node: VTableInherit\7f168579
46818 +Node: Warning\7f169025
46819 +Node: Weak\7f169259
46820 +Node: Weakref\7f169928
46821 +Node: Word\7f170893
46822 +Node: Deprecated\7f172739
46823 +Node: Machine Dependencies\7f172974
46824 +Node: Alpha-Dependent\7f175738
46825 +Node: Alpha Notes\7f176152
46826 +Node: Alpha Options\7f176433
46827 +Node: Alpha Syntax\7f178631
46828 +Node: Alpha-Chars\7f179100
46829 +Node: Alpha-Regs\7f179331
46830 +Node: Alpha-Relocs\7f179718
46831 +Node: Alpha Floating Point\7f185976
46832 +Node: Alpha Directives\7f186198
46833 +Node: Alpha Opcodes\7f191721
46834 +Node: ARC-Dependent\7f192016
46835 +Node: ARC Options\7f192399
46836 +Node: ARC Syntax\7f193468
46837 +Node: ARC-Chars\7f193700
46838 +Node: ARC-Regs\7f193832
46839 +Node: ARC Floating Point\7f193956
46840 +Node: ARC Directives\7f194267
46841 +Node: ARC Opcodes\7f200238
46842 +Node: ARM-Dependent\7f200464
46843 +Node: ARM Options\7f200891
46844 +Node: ARM Syntax\7f206685
46845 +Node: ARM-Chars\7f206917
46846 +Node: ARM-Regs\7f207441
46847 +Node: ARM Floating Point\7f207626
46848 +Node: ARM Directives\7f207825
46849 +Node: ARM Opcodes\7f214189
46850 +Node: ARM Mapping Symbols\7f216277
46851 +Node: BFIN-Dependent\7f217056
46852 +Node: BFIN Syntax\7f217310
46853 +Node: BFIN Directives\7f223007
46854 +Node: CRIS-Dependent\7f223414
46855 +Node: CRIS-Opts\7f223760
46856 +Ref: march-option\7f225378
46857 +Node: CRIS-Expand\7f227195
46858 +Node: CRIS-Symbols\7f228378
46859 +Node: CRIS-Syntax\7f229547
46860 +Node: CRIS-Chars\7f229883
46861 +Node: CRIS-Pic\7f230434
46862 +Ref: crispic\7f230630
46863 +Node: CRIS-Regs\7f234170
46864 +Node: CRIS-Pseudos\7f234587
46865 +Ref: crisnous\7f235363
46866 +Node: D10V-Dependent\7f236645
46867 +Node: D10V-Opts\7f236996
46868 +Node: D10V-Syntax\7f237959
46869 +Node: D10V-Size\7f238488
46870 +Node: D10V-Subs\7f239461
46871 +Node: D10V-Chars\7f240496
46872 +Node: D10V-Regs\7f242100
46873 +Node: D10V-Addressing\7f243145
46874 +Node: D10V-Word\7f243831
46875 +Node: D10V-Float\7f244346
46876 +Node: D10V-Opcodes\7f244657
46877 +Node: D30V-Dependent\7f245050
46878 +Node: D30V-Opts\7f245403
46879 +Node: D30V-Syntax\7f246078
46880 +Node: D30V-Size\7f246610
46881 +Node: D30V-Subs\7f247581
46882 +Node: D30V-Chars\7f248616
46883 +Node: D30V-Guarded\7f250914
46884 +Node: D30V-Regs\7f251594
46885 +Node: D30V-Addressing\7f252733
46886 +Node: D30V-Float\7f253401
46887 +Node: D30V-Opcodes\7f253712
46888 +Node: H8/300-Dependent\7f254105
46889 +Node: H8/300 Options\7f254515
46890 +Node: H8/300 Syntax\7f254724
46891 +Node: H8/300-Chars\7f255023
46892 +Node: H8/300-Regs\7f255320
46893 +Node: H8/300-Addressing\7f256237
46894 +Node: H8/300 Floating Point\7f257276
46895 +Node: H8/300 Directives\7f257601
46896 +Node: H8/300 Opcodes\7f258727
46897 +Node: HPPA-Dependent\7f267047
46898 +Node: HPPA Notes\7f267480
46899 +Node: HPPA Options\7f268236
46900 +Node: HPPA Syntax\7f268429
46901 +Node: HPPA Floating Point\7f269697
46902 +Node: HPPA Directives\7f269901
46903 +Node: HPPA Opcodes\7f278585
46904 +Node: ESA/390-Dependent\7f278842
46905 +Node: ESA/390 Notes\7f279302
46906 +Node: ESA/390 Options\7f280093
46907 +Node: ESA/390 Syntax\7f280303
46908 +Node: ESA/390 Floating Point\7f282476
46909 +Node: ESA/390 Directives\7f282755
46910 +Node: ESA/390 Opcodes\7f286044
46911 +Node: i386-Dependent\7f286306
46912 +Node: i386-Options\7f287374
46913 +Node: i386-Syntax\7f288564
46914 +Node: i386-Mnemonics\7f290978
46915 +Node: i386-Regs\7f293443
46916 +Node: i386-Prefixes\7f295488
46917 +Node: i386-Memory\7f298248
46918 +Node: i386-Jumps\7f301185
46919 +Node: i386-Float\7f302306
46920 +Node: i386-SIMD\7f304135
46921 +Node: i386-16bit\7f305244
46922 +Node: i386-Bugs\7f307282
46923 +Node: i386-Arch\7f308036
46924 +Node: i386-Notes\7f310217
46925 +Node: i860-Dependent\7f311075
46926 +Node: Notes-i860\7f311471
46927 +Node: Options-i860\7f312376
46928 +Node: Directives-i860\7f313739
46929 +Node: Opcodes for i860\7f314808
46930 +Node: i960-Dependent\7f316975
46931 +Node: Options-i960\7f317378
46932 +Node: Floating Point-i960\7f321262
46933 +Node: Directives-i960\7f321530
46934 +Node: Opcodes for i960\7f323564
46935 +Node: callj-i960\7f324181
46936 +Node: Compare-and-branch-i960\7f324670
46937 +Node: IA-64-Dependent\7f326574
46938 +Node: IA-64 Options\7f326875
46939 +Node: IA-64 Syntax\7f330035
46940 +Node: IA-64-Chars\7f330398
46941 +Node: IA-64-Regs\7f330628
46942 +Node: IA-64-Bits\7f331554
46943 +Node: IA-64 Opcodes\7f332063
46944 +Node: IP2K-Dependent\7f332335
46945 +Node: IP2K-Opts\7f332563
46946 +Node: M32C-Dependent\7f333043
46947 +Node: M32C-Opts\7f333567
46948 +Node: M32C-Modifiers\7f333851
46949 +Node: M32R-Dependent\7f335638
46950 +Node: M32R-Opts\7f335959
46951 +Node: M32R-Directives\7f340125
46952 +Node: M32R-Warnings\7f344100
46953 +Node: M68K-Dependent\7f347106
46954 +Node: M68K-Opts\7f347573
46955 +Node: M68K-Syntax\7f354952
46956 +Node: M68K-Moto-Syntax\7f356791
46957 +Node: M68K-Float\7f359380
46958 +Node: M68K-Directives\7f359900
46959 +Node: M68K-opcodes\7f361226
46960 +Node: M68K-Branch\7f361452
46961 +Node: M68K-Chars\7f365650
46962 +Node: M68HC11-Dependent\7f366063
46963 +Node: M68HC11-Opts\7f366594
46964 +Node: M68HC11-Syntax\7f370410
46965 +Node: M68HC11-Modifiers\7f372624
46966 +Node: M68HC11-Directives\7f374452
46967 +Node: M68HC11-Float\7f375828
46968 +Node: M68HC11-opcodes\7f376356
46969 +Node: M68HC11-Branch\7f376538
46970 +Node: MIPS-Dependent\7f378985
46971 +Node: MIPS Opts\7f380075
46972 +Node: MIPS Object\7f387402
46973 +Node: MIPS Stabs\7f388968
46974 +Node: MIPS symbol sizes\7f389690
46975 +Node: MIPS ISA\7f391359
46976 +Node: MIPS autoextend\7f392508
46977 +Node: MIPS insn\7f393238
46978 +Node: MIPS option stack\7f393735
46979 +Node: MIPS ASE instruction generation overrides\7f394509
46980 +Node: MMIX-Dependent\7f395726
46981 +Node: MMIX-Opts\7f396106
46982 +Node: MMIX-Expand\7f399710
46983 +Node: MMIX-Syntax\7f401025
46984 +Ref: mmixsite\7f401382
46985 +Node: MMIX-Chars\7f402223
46986 +Node: MMIX-Symbols\7f402877
46987 +Node: MMIX-Regs\7f404945
46988 +Node: MMIX-Pseudos\7f405970
46989 +Ref: MMIX-loc\7f406111
46990 +Ref: MMIX-local\7f407191
46991 +Ref: MMIX-is\7f407723
46992 +Ref: MMIX-greg\7f407994
46993 +Ref: GREG-base\7f408913
46994 +Ref: MMIX-byte\7f410230
46995 +Ref: MMIX-constants\7f410701
46996 +Ref: MMIX-prefix\7f411347
46997 +Ref: MMIX-spec\7f411721
46998 +Node: MMIX-mmixal\7f412055
46999 +Node: MSP430-Dependent\7f415552
47000 +Node: MSP430 Options\7f416018
47001 +Node: MSP430 Syntax\7f416304
47002 +Node: MSP430-Macros\7f416620
47003 +Node: MSP430-Chars\7f417351
47004 +Node: MSP430-Regs\7f417664
47005 +Node: MSP430-Ext\7f418224
47006 +Node: MSP430 Floating Point\7f420045
47007 +Node: MSP430 Directives\7f420269
47008 +Node: MSP430 Opcodes\7f421060
47009 +Node: MSP430 Profiling Capability\7f421455
47010 +Node: PDP-11-Dependent\7f423784
47011 +Node: PDP-11-Options\7f424173
47012 +Node: PDP-11-Pseudos\7f429244
47013 +Node: PDP-11-Syntax\7f429589
47014 +Node: PDP-11-Mnemonics\7f430340
47015 +Node: PDP-11-Synthetic\7f430642
47016 +Node: PJ-Dependent\7f430860
47017 +Node: PJ Options\7f431085
47018 +Node: PPC-Dependent\7f431362
47019 +Node: PowerPC-Opts\7f431649
47020 +Node: PowerPC-Pseudo\7f433724
47021 +Node: SH-Dependent\7f434323
47022 +Node: SH Options\7f434735
47023 +Node: SH Syntax\7f435663
47024 +Node: SH-Chars\7f435936
47025 +Node: SH-Regs\7f436230
47026 +Node: SH-Addressing\7f436844
47027 +Node: SH Floating Point\7f437753
47028 +Node: SH Directives\7f438847
47029 +Node: SH Opcodes\7f439217
47030 +Node: SH64-Dependent\7f443539
47031 +Node: SH64 Options\7f443902
47032 +Node: SH64 Syntax\7f445619
47033 +Node: SH64-Chars\7f445902
47034 +Node: SH64-Regs\7f446202
47035 +Node: SH64-Addressing\7f447298
47036 +Node: SH64 Directives\7f448481
47037 +Node: SH64 Opcodes\7f449591
47038 +Node: Sparc-Dependent\7f450307
47039 +Node: Sparc-Opts\7f450692
47040 +Node: Sparc-Aligned-Data\7f452949
47041 +Node: Sparc-Float\7f453804
47042 +Node: Sparc-Directives\7f454005
47043 +Node: TIC54X-Dependent\7f455965
47044 +Node: TIC54X-Opts\7f456691
47045 +Node: TIC54X-Block\7f457734
47046 +Node: TIC54X-Env\7f458094
47047 +Node: TIC54X-Constants\7f458442
47048 +Node: TIC54X-Subsyms\7f458844
47049 +Node: TIC54X-Locals\7f460753
47050 +Node: TIC54X-Builtins\7f461497
47051 +Node: TIC54X-Ext\7f463968
47052 +Node: TIC54X-Directives\7f464539
47053 +Node: TIC54X-Macros\7f475441
47054 +Node: TIC54X-MMRegs\7f477551
47055 +Node: Z80-Dependent\7f477767
47056 +Node: Z80 Options\7f478155
47057 +Node: Z80 Syntax\7f479578
47058 +Node: Z80-Chars\7f480250
47059 +Node: Z80-Regs\7f480783
47060 +Node: Z80-Case\7f481135
47061 +Node: Z80 Floating Point\7f481580
47062 +Node: Z80 Directives\7f481774
47063 +Node: Z80 Opcodes\7f483399
47064 +Node: Z8000-Dependent\7f484741
47065 +Node: Z8000 Options\7f485702
47066 +Node: Z8000 Syntax\7f485919
47067 +Node: Z8000-Chars\7f486209
47068 +Node: Z8000-Regs\7f486442
47069 +Node: Z8000-Addressing\7f487232
47070 +Node: Z8000 Directives\7f488349
47071 +Node: Z8000 Opcodes\7f489958
47072 +Node: Vax-Dependent\7f499900
47073 +Node: VAX-Opts\7f500417
47074 +Node: VAX-float\7f504152
47075 +Node: VAX-directives\7f504784
47076 +Node: VAX-opcodes\7f505645
47077 +Node: VAX-branch\7f506034
47078 +Node: VAX-operands\7f508541
47079 +Node: VAX-no\7f509304
47080 +Node: V850-Dependent\7f509541
47081 +Node: V850 Options\7f509939
47082 +Node: V850 Syntax\7f512328
47083 +Node: V850-Chars\7f512568
47084 +Node: V850-Regs\7f512733
47085 +Node: V850 Floating Point\7f514301
47086 +Node: V850 Directives\7f514507
47087 +Node: V850 Opcodes\7f515650
47088 +Node: Xtensa-Dependent\7f521542
47089 +Node: Xtensa Options\7f522271
47090 +Node: Xtensa Syntax\7f525042
47091 +Node: Xtensa Opcodes\7f526931
47092 +Node: Xtensa Registers\7f528725
47093 +Node: Xtensa Optimizations\7f529358
47094 +Node: Density Instructions\7f529810
47095 +Node: Xtensa Automatic Alignment\7f530912
47096 +Node: Xtensa Relaxation\7f533658
47097 +Node: Xtensa Branch Relaxation\7f534566
47098 +Node: Xtensa Call Relaxation\7f535938
47099 +Node: Xtensa Immediate Relaxation\7f537724
47100 +Node: Xtensa Directives\7f540298
47101 +Node: Schedule Directive\7f542006
47102 +Node: Longcalls Directive\7f542346
47103 +Node: Transform Directive\7f542890
47104 +Node: Literal Directive\7f543632
47105 +Node: Literal Position Directive\7f545417
47106 +Node: Literal Prefix Directive\7f547116
47107 +Node: Absolute Literals Directive\7f549279
47108 +Node: Reporting Bugs\7f550586
47109 +Node: Bug Criteria\7f551310
47110 +Node: Bug Reporting\7f552075
47111 +Node: Acknowledgements\7f558708
47112 +Ref: Acknowledgements-Footnote-1\7f563606
47113 +Node: GNU Free Documentation License\7f563632
47114 +Node: Index\7f583359
47115 \1f
47116 End Tag Table
47117 diff -Nrup binutils-2.17/gas/doc/as.texinfo binutils-2.17.atmel.1.3.0/gas/doc/as.texinfo
47118 --- binutils-2.17/gas/doc/as.texinfo 2006-04-17 17:16:27.000000000 +0200
47119 +++ binutils-2.17.atmel.1.3.0/gas/doc/as.texinfo 2007-03-26 10:19:41.000000000 +0200
47120 @@ -6182,6 +6182,9 @@ subject, see the hardware manufacturer's
47121 @ifset ARM
47122 * ARM-Dependent:: ARM Dependent Features
47123 @end ifset
47124 +@ifset AVR32
47125 +* AVR32-Dependent:: AVR32 Dependent Features
47126 +@end ifset
47127 @ifset BFIN
47128 * BFIN-Dependent:: BFIN Dependent Features
47129 @end ifset
47130 @@ -6298,6 +6301,10 @@ subject, see the hardware manufacturer's
47131 @include c-arm.texi
47132 @end ifset
47133
47134 +@ifset AVR32
47135 +@include c-avr32.texi
47136 +@end ifset
47137 +
47138 @ifset BFIN
47139 @include c-bfin.texi
47140 @end ifset
47141 diff -Nrup binutils-2.17/gas/doc/c-avr32.texi binutils-2.17.atmel.1.3.0/gas/doc/c-avr32.texi
47142 --- binutils-2.17/gas/doc/c-avr32.texi 1970-01-01 01:00:00.000000000 +0100
47143 +++ binutils-2.17.atmel.1.3.0/gas/doc/c-avr32.texi 2007-09-28 10:30:46.000000000 +0200
47144 @@ -0,0 +1,254 @@
47145 +@c Copyright 2005, 2006
47146 +@c Atmel Corporation
47147 +@c This is part of the GAS manual.
47148 +@c For copying conditions, see the file as.texinfo.
47149 +
47150 +@ifset GENERIC
47151 +@page
47152 +@node AVR32-Dependent
47153 +@chapter AVR32 Dependent Features
47154 +@end ifset
47155 +
47156 +@ifclear GENERIC
47157 +@node Machine Dependencies
47158 +@chapter AVR32 Dependent Features
47159 +@end ifclear
47160 +
47161 +@cindex AVR32 support
47162 +@menu
47163 +* AVR32 Options:: Options
47164 +* AVR32 Syntax:: Syntax
47165 +* AVR32 Directives:: Directives
47166 +* AVR32 Opcodes:: Opcodes
47167 +@end menu
47168 +
47169 +@node AVR32 Options
47170 +@section Options
47171 +@cindex AVR32 options
47172 +@cindex options for AVR32
47173 +
47174 +There are currently no AVR32-specific options. However, the following
47175 +options are planned:
47176 +
47177 +@table @code
47178 +
47179 +@cindex @code{--pic} command line option, AVR32
47180 +@cindex PIC code generation for AVR32
47181 +@item --pic
47182 +This option specifies that the output of the assembler should be marked
47183 +as position-independent code (PIC). It will also ensure that
47184 +pseudo-instructions that deal with address calculation are output as
47185 +PIC, and that all absolute address references in the code are marked as
47186 +such.
47187 +
47188 +@cindex @code{--linkrelax} command line option, AVR32
47189 +@item --linkrelax
47190 +This option specifies that the output of the assembler should be marked
47191 +as linker-relaxable. It will also ensure that all PC-relative operands
47192 +that may change during linker relaxation get appropriate relocations.
47193 +
47194 +@cindex @code{--direct-data-refs} command line option, AVR32
47195 +@item --direct-data-refs
47196 +This option allows direct references (i.e. mov or sub) to the
47197 +data section. This is default not allowed because the actual distance may
47198 +change after the optimization passes are complete and the address and
47199 +size of all sections are considered known.
47200 +
47201 +@end table
47202 +
47203 +
47204 +@node AVR32 Syntax
47205 +@section Syntax
47206 +@menu
47207 +* AVR32-Chars:: Special Characters
47208 +* AVR32-Symrefs:: Symbol references
47209 +@end menu
47210 +
47211 +@node AVR32-Chars
47212 +@subsection Special Characters
47213 +
47214 +@cindex line comment character, AVR32
47215 +@cindex AVR32 line comment character
47216 +The presence of a @samp{//} on a line indicates the start of a comment
47217 +that extends to the end of the current line. If a @samp{#} appears as
47218 +the first character of a line, the whole line is treated as a comment.
47219 +
47220 +@cindex line separator, AVR32
47221 +@cindex statement separator, AVR32
47222 +@cindex AVR32 line separator
47223 +The @samp{;} character can be used instead of a newline to separate
47224 +statements.
47225 +
47226 +@node AVR32-Symrefs
47227 +@subsection Symbol references
47228 +
47229 +The absolute value of a symbol can be obtained by simply naming the
47230 +symbol. However, as AVR32 symbols have 32-bit values, most symbols have
47231 +values that are outside the range of any instructions.
47232 +
47233 +Instructions that take a PC-relative offset, e.g. @code{lddpc} or
47234 +@code{rcall}, can also reference a symbol by simply naming the symbol
47235 +(no explicit calculations necessary). In this case, the assembler or
47236 +linker subtracts the address of the instruction from the symbol's value
47237 +and inserts the result into the instruction. Note that even though an
47238 +overflow is less likely to happen for a relative reference than for an
47239 +absolute reference, the assembler or linker will generate an error if
47240 +the referenced symbol is too far away from the current location.
47241 +
47242 +Relative references can be used for data as well. For example:
47243 +
47244 +@smallexample
47245 + lddpc r0, 2f
47246 +1: add r0, pc
47247 + ...
47248 + .align 2
47249 +2: .int @var{some_symbol} - 1b
47250 +@end smallexample
47251 +
47252 +Here, r0 will end up with the run-time address of @var{some_symbol} even
47253 +if the program was loaded at a different address than it was linked
47254 +(position-independent code).
47255 +
47256 +@subsubsection Symbol modifiers
47257 +
47258 +@table @code
47259 +
47260 +@item @code{hi(@var{symbol})}
47261 +Evaluates to the value of the symbol shifted right 16 bits. This will
47262 +work even if @var{symbol} is defined in a different module.
47263 +
47264 +@item @code{lo(@var{symbol})}
47265 +Evaluates to the low 16 bits of the symbol's value. This will work even
47266 +if @var{symbol} is defined in a different module.
47267 +
47268 +@item @code{@var{symbol}@@got}
47269 +Create a GOT entry for @var{symbol} and return the offset of that entry
47270 +relative to the GOT base.
47271 +
47272 +@end table
47273 +
47274 +
47275 +@node AVR32 Directives
47276 +@section Directives
47277 +@cindex machine directives, AVR32
47278 +@cindex AVR32 directives
47279 +
47280 +@table @code
47281 +
47282 +@cindex @code{.cpool} directive, AVR32
47283 +@item .cpool
47284 +This directive causes the current contents of the constant pool to be
47285 +dumped into the current section at the current location (aligned to a
47286 +word boundary). @code{GAS} maintains a separate constant pool for each
47287 +section and each sub-section. The @code{.cpool} directive will only
47288 +affect the constant pool of the current section and sub-section. At the
47289 +end of assembly, all remaining, non-empty constant pools will
47290 +automatically be dumped.
47291 +
47292 +@end table
47293 +
47294 +
47295 +@node AVR32 Opcodes
47296 +@section Opcodes
47297 +@cindex AVR32 opcodes
47298 +@cindex opcodes for AVR32
47299 +
47300 +@code{@value{AS}} implements all the standard AVR32 opcodes. It also
47301 +implements several pseudo-opcodes, which are recommended to use wherever
47302 +possible because they give the tool chain better freedom to generate
47303 +optimal code.
47304 +
47305 +@table @code
47306 +
47307 +@cindex @code{LDA.W reg, symbol} pseudo op, AVR32
47308 +@item LDA.W
47309 +@smallexample
47310 + lda.w @var{reg}, @var{symbol}
47311 +@end smallexample
47312 +
47313 +This instruction will load the address of @var{symbol} into
47314 +@var{reg}. The instruction will evaluate to one of the following,
47315 +depending on the relative distance to the symbol, the relative distance
47316 +to the constant pool and whether the @code{--pic} option has been
47317 +specified. If the @code{--pic} option has not been specified, the
47318 +alternatives are as follows:
47319 +@smallexample
47320 + /* @var{symbol} evaluates to a small enough value */
47321 + mov @var{reg}, @var{symbol}
47322 +
47323 + /* (. - @var{symbol}) evaluates to a small enough value */
47324 + sub @var{reg}, pc, . - @var{symbol}
47325 +
47326 + /* Constant pool is close enough */
47327 + lddpc @var{reg}, @var{cpent}
47328 + ...
47329 +@var{cpent}:
47330 + .long @var{symbol}
47331 +
47332 + /* Otherwise (not implemented yet, probably not necessary) */
47333 + mov @var{reg}, lo(@var{symbol})
47334 + orh @var{reg}, hi(@var{symbol})
47335 +@end smallexample
47336 +
47337 +If the @code{--pic} option has been specified, the alternatives are as
47338 +follows:
47339 +@smallexample
47340 + /* (. - @var{symbol}) evaluates to a small enough value */
47341 + sub @var{reg}, pc, . - @var{symbol}
47342 +
47343 + /* If @code{--linkrelax} not specified */
47344 + ld.w @var{reg}, r6[@var{symbol}@@got]
47345 +
47346 + /* Otherwise */
47347 + mov @var{reg}, @var{symbol}@@got / 4
47348 + ld.w @var{reg}, r6[@var{reg} << 2]
47349 +@end smallexample
47350 +
47351 +If @var{symbol} is not defined in the same file and section as the
47352 +@code{LDA.W} instruction, the most pessimistic alternative of the
47353 +above is selected. The linker may convert it back into the most
47354 +optimal alternative when the final value of all symbols is known.
47355 +
47356 +@cindex @code{CALL symbol} pseudo op, AVR32
47357 +@item CALL
47358 +@smallexample
47359 + call @var{symbol}
47360 +@end smallexample
47361 +
47362 +This instruction will insert code to call the subroutine identified by
47363 +@var{symbol}. It will evaluate to one of the following, depending on
47364 +the relative distance to the symbol as well as the @code{--linkrelax}
47365 +and @code{--pic} command-line options.
47366 +
47367 +If @var{symbol} is defined in the same section and input file, and the
47368 +distance is small enough, an @code{rcall} instruction is inserted:
47369 +@smallexample
47370 + rcall @var{symbol}
47371 +@end smallexample
47372 +
47373 +Otherwise, if the @code{--pic} option has not been specified:
47374 +@smallexample
47375 + mcall @var{cpent}
47376 + ...
47377 +@var{cpent}:
47378 + .long @var{symbol}
47379 +@end smallexample
47380 +
47381 +Finally, if nothing else fits and the @code{--pic} option has been
47382 +specified, the assembler will indirect the call through the Global
47383 +Offset Table:
47384 +@smallexample
47385 + /* If @code{--linkrelax} not specified */
47386 + mcall r6[@var{symbol}@@got]
47387 +
47388 + /* If @code{--linkrelax} specified */
47389 + mov lr, @var{symbol}@@got / 4
47390 + ld.w lr, r6[lr << 2]
47391 + icall lr
47392 +@end smallexample
47393 +
47394 +The linker, after determining the final value of @var{symbol}, may
47395 +convert any of these into more optimal alternatives. This includes
47396 +deleting any superfluous constant pool- and GOT-entries.
47397 +
47398 +@end table
47399 diff -Nrup binutils-2.17/gas/doc/Makefile.am binutils-2.17.atmel.1.3.0/gas/doc/Makefile.am
47400 --- binutils-2.17/gas/doc/Makefile.am 2006-06-03 06:45:50.000000000 +0200
47401 +++ binutils-2.17.atmel.1.3.0/gas/doc/Makefile.am 2007-03-26 10:19:41.000000000 +0200
47402 @@ -29,6 +29,7 @@ CPU_DOCS = \
47403 c-alpha.texi \
47404 c-arc.texi \
47405 c-arm.texi \
47406 + c-avr32.texi \
47407 c-bfin.texi \
47408 c-d10v.texi \
47409 c-cris.texi \
47410 diff -Nrup binutils-2.17/gas/Makefile.am binutils-2.17.atmel.1.3.0/gas/Makefile.am
47411 --- binutils-2.17/gas/Makefile.am 2006-04-06 23:49:30.000000000 +0200
47412 +++ binutils-2.17.atmel.1.3.0/gas/Makefile.am 2007-03-26 10:20:16.000000000 +0200
47413 @@ -45,6 +45,7 @@ CPU_TYPES = \
47414 arc \
47415 arm \
47416 avr \
47417 + avr32 \
47418 bfin \
47419 cris \
47420 crx \
47421 @@ -229,6 +230,7 @@ TARGET_CPU_CFILES = \
47422 config/tc-arc.c \
47423 config/tc-arm.c \
47424 config/tc-avr.c \
47425 + config/tc-avr32.c \
47426 config/tc-bfin.c \
47427 config/tc-cris.c \
47428 config/tc-crx.c \
47429 @@ -280,6 +282,7 @@ TARGET_CPU_HFILES = \
47430 config/tc-arc.h \
47431 config/tc-arm.h \
47432 config/tc-avr.h \
47433 + config/tc-avr32.h \
47434 config/tc-bfin.h \
47435 config/tc-cris.h \
47436 config/tc-crx.h \
47437 @@ -1046,6 +1049,11 @@ DEPTC_avr_elf = $(INCDIR)/symcat.h $(src
47438 $(INCDIR)/elf/external.h $(INCDIR)/bfdlink.h $(srcdir)/config/tc-avr.h \
47439 dwarf2dbg.h $(INCDIR)/safe-ctype.h subsegs.h $(INCDIR)/obstack.h \
47440 $(INCDIR)/opcode/avr.h
47441 +DEPTC_avr32_elf = $(INCDIR)/symcat.h $(srcdir)/config/obj-elf.h \
47442 + $(BFDDIR)/elf-bfd.h $(INCDIR)/elf/common.h $(INCDIR)/elf/internal.h \
47443 + $(INCDIR)/elf/external.h $(INCDIR)/bfdlink.h $(srcdir)/config/tc-avr32.h \
47444 + $(INCDIR)/safe-ctype.h subsegs.h $(INCDIR)/obstack.h \
47445 + $(srcdir)/../opcodes/avr32-opc.h $(srcdir)/../opcodes/avr32-asm.h
47446 DEPTC_bfin_coff = $(INCDIR)/symcat.h $(srcdir)/config/obj-coff.h \
47447 $(srcdir)/config/tc-bfin.h $(INCDIR)/coff/internal.h \
47448 $(BFDDIR)/libcoff.h $(INCDIR)/bfdlink.h struc-symbol.h \
47449 @@ -1628,6 +1636,11 @@ DEPOBJ_bfin_elf = $(INCDIR)/symcat.h $(s
47450 $(INCDIR)/elf/external.h $(INCDIR)/bfdlink.h $(srcdir)/config/tc-bfin.h \
47451 dwarf2dbg.h $(INCDIR)/safe-ctype.h subsegs.h $(INCDIR)/obstack.h \
47452 struc-symbol.h $(INCDIR)/aout/aout64.h
47453 +DEPOBJ_avr32_elf = $(INCDIR)/symcat.h $(srcdir)/config/obj-elf.h \
47454 + $(BFDDIR)/elf-bfd.h $(INCDIR)/elf/common.h $(INCDIR)/elf/internal.h \
47455 + $(INCDIR)/elf/external.h $(INCDIR)/bfdlink.h $(srcdir)/config/tc-avr32.h \
47456 + $(INCDIR)/safe-ctype.h subsegs.h $(INCDIR)/obstack.h \
47457 + struc-symbol.h dwarf2dbg.h
47458 DEPOBJ_cris_aout = $(INCDIR)/symcat.h $(srcdir)/config/obj-aout.h \
47459 $(srcdir)/config/tc-cris.h $(BFDDIR)/libaout.h $(INCDIR)/bfdlink.h \
47460 $(INCDIR)/aout/aout64.h $(INCDIR)/obstack.h
47461 @@ -2095,6 +2108,9 @@ DEP_bfin_elf = $(srcdir)/config/obj-elf.
47462 $(BFDDIR)/elf-bfd.h $(INCDIR)/elf/common.h $(INCDIR)/elf/internal.h \
47463 $(INCDIR)/elf/external.h $(INCDIR)/bfdlink.h $(srcdir)/config/tc-bfin.h \
47464 dwarf2dbg.h
47465 +DEP_avr32_elf = $(srcdir)/config/obj-elf.h $(INCDIR)/symcat.h \
47466 + $(BFDDIR)/elf-bfd.h $(INCDIR)/elf/common.h $(INCDIR)/elf/internal.h \
47467 + $(INCDIR)/elf/external.h $(INCDIR)/bfdlink.h $(srcdir)/config/tc-avr32.h
47468 DEP_cris_aout = $(srcdir)/config/obj-aout.h $(srcdir)/config/tc-cris.h \
47469 $(BFDDIR)/libaout.h $(INCDIR)/bfdlink.h
47470 DEP_cris_elf = $(srcdir)/config/obj-elf.h $(INCDIR)/symcat.h \
47471 diff -Nrup binutils-2.17/gas/testsuite/gas/avr32/aliases.d binutils-2.17.atmel.1.3.0/gas/testsuite/gas/avr32/aliases.d
47472 --- binutils-2.17/gas/testsuite/gas/avr32/aliases.d 1970-01-01 01:00:00.000000000 +0100
47473 +++ binutils-2.17.atmel.1.3.0/gas/testsuite/gas/avr32/aliases.d 2007-03-26 10:19:48.000000000 +0200
47474 @@ -0,0 +1,19 @@
47475 +#as:
47476 +#objdump: -dr
47477 +#name: aliases
47478 +
47479 +.*: +file format .*
47480 +
47481 +Disassembly of section \.text:
47482 +
47483 +00000000 <ld_nodisp>:
47484 + 0: 19 80 [ \t]+ld\.ub r0,r12\[0x0\]
47485 + 2: f9 20 00 00[ \t]+ld\.sb r0,r12\[0\]
47486 + 6: 98 80 [ \t]+ld\.uh r0,r12\[0x0\]
47487 + 8: 98 00 [ \t]+ld\.sh r0,r12\[0x0\]
47488 + a: 78 00 [ \t]+ld\.w r0,r12\[0x0\]
47489 +
47490 +0000000c <st_nodisp>:
47491 + c: b8 80 [ \t]+st\.b r12\[0x0\],r0
47492 + e: b8 00 [ \t]+st\.h r12\[0x0\],r0
47493 + 10: 99 00 [ \t]+st\.w r12\[0x0\],r0
47494 diff -Nrup binutils-2.17/gas/testsuite/gas/avr32/aliases.s binutils-2.17.atmel.1.3.0/gas/testsuite/gas/avr32/aliases.s
47495 --- binutils-2.17/gas/testsuite/gas/avr32/aliases.s 1970-01-01 01:00:00.000000000 +0100
47496 +++ binutils-2.17.atmel.1.3.0/gas/testsuite/gas/avr32/aliases.s 2007-03-26 10:19:48.000000000 +0200
47497 @@ -0,0 +1,14 @@
47498 + .text
47499 + .global ld_nodisp
47500 +ld_nodisp:
47501 + ld.ub r0, r12
47502 + ld.sb r0, r12
47503 + ld.uh r0, r12
47504 + ld.sh r0, r12
47505 + ld.w r0, r12
47506 +
47507 + .global st_nodisp
47508 +st_nodisp:
47509 + st.b r12, r0
47510 + st.h r12, r0
47511 + st.w r12, r0
47512 diff -Nrup binutils-2.17/gas/testsuite/gas/avr32/allinsn.d binutils-2.17.atmel.1.3.0/gas/testsuite/gas/avr32/allinsn.d
47513 --- binutils-2.17/gas/testsuite/gas/avr32/allinsn.d 1970-01-01 01:00:00.000000000 +0100
47514 +++ binutils-2.17.atmel.1.3.0/gas/testsuite/gas/avr32/allinsn.d 2007-03-26 10:19:48.000000000 +0200
47515 @@ -0,0 +1,2900 @@
47516 +#as:
47517 +#objdump: -dr
47518 +#name: allinsn
47519 +
47520 +.*: +file format .*
47521 +
47522 +Disassembly of section \.text:
47523 +
47524 +[0-9a-f]* <ld_d5>:
47525 + *[0-9a-f]*: fe 0f 02 3e ld\.d lr,pc\[pc<<0x3\]
47526 + *[0-9a-f]*: e0 00 02 00 ld\.d r0,r0\[r0\]
47527 + *[0-9a-f]*: ea 05 02 26 ld\.d r6,r5\[r5<<0x2\]
47528 + *[0-9a-f]*: e8 04 02 14 ld\.d r4,r4\[r4<<0x1\]
47529 + *[0-9a-f]*: fc 0e 02 1e ld\.d lr,lr\[lr<<0x1\]
47530 + *[0-9a-f]*: e6 0d 02 2a ld\.d r10,r3\[sp<<0x2\]
47531 + *[0-9a-f]*: f4 06 02 28 ld\.d r8,r10\[r6<<0x2\]
47532 + *[0-9a-f]*: ee 09 02 02 ld\.d r2,r7\[r9\]
47533 +
47534 +[0-9a-f]* <ld_w5>:
47535 + *[0-9a-f]*: fe 0f 03 0f ld\.w pc,pc\[pc\]
47536 + *[0-9a-f]*: f8 0c 03 3c ld\.w r12,r12\[r12<<0x3\]
47537 + *[0-9a-f]*: ea 05 03 25 ld\.w r5,r5\[r5<<0x2\]
47538 + *[0-9a-f]*: e8 04 03 14 ld\.w r4,r4\[r4<<0x1\]
47539 + *[0-9a-f]*: fc 0e 03 1e ld\.w lr,lr\[lr<<0x1\]
47540 + *[0-9a-f]*: f2 09 03 02 ld\.w r2,r9\[r9\]
47541 + *[0-9a-f]*: e4 06 03 0b ld\.w r11,r2\[r6\]
47542 + *[0-9a-f]*: e4 0d 03 30 ld\.w r0,r2\[sp<<0x3\]
47543 +
47544 +[0-9a-f]* <ld_sh5>:
47545 + *[0-9a-f]*: fe 0f 04 0f ld\.sh pc,pc\[pc\]
47546 + *[0-9a-f]*: f8 0c 04 3c ld\.sh r12,r12\[r12<<0x3\]
47547 + *[0-9a-f]*: ea 05 04 25 ld\.sh r5,r5\[r5<<0x2\]
47548 + *[0-9a-f]*: e8 04 04 14 ld\.sh r4,r4\[r4<<0x1\]
47549 + *[0-9a-f]*: fc 0e 04 1e ld\.sh lr,lr\[lr<<0x1\]
47550 + *[0-9a-f]*: e0 0f 04 2b ld\.sh r11,r0\[pc<<0x2\]
47551 + *[0-9a-f]*: fa 06 04 2a ld\.sh r10,sp\[r6<<0x2\]
47552 + *[0-9a-f]*: e4 02 04 0c ld\.sh r12,r2\[r2\]
47553 +
47554 +[0-9a-f]* <ld_uh5>:
47555 + *[0-9a-f]*: fe 0f 05 0f ld\.uh pc,pc\[pc\]
47556 + *[0-9a-f]*: f8 0c 05 3c ld\.uh r12,r12\[r12<<0x3\]
47557 + *[0-9a-f]*: ea 05 05 25 ld\.uh r5,r5\[r5<<0x2\]
47558 + *[0-9a-f]*: e8 04 05 14 ld\.uh r4,r4\[r4<<0x1\]
47559 + *[0-9a-f]*: fc 0e 05 1e ld\.uh lr,lr\[lr<<0x1\]
47560 + *[0-9a-f]*: fe 0e 05 38 ld\.uh r8,pc\[lr<<0x3\]
47561 + *[0-9a-f]*: e2 0f 05 16 ld\.uh r6,r1\[pc<<0x1\]
47562 + *[0-9a-f]*: fc 0d 05 16 ld\.uh r6,lr\[sp<<0x1\]
47563 +
47564 +[0-9a-f]* <ld_sb2>:
47565 + *[0-9a-f]*: fe 0f 06 0f ld\.sb pc,pc\[pc\]
47566 + *[0-9a-f]*: f8 0c 06 3c ld\.sb r12,r12\[r12<<0x3\]
47567 + *[0-9a-f]*: ea 05 06 25 ld\.sb r5,r5\[r5<<0x2\]
47568 + *[0-9a-f]*: e8 04 06 14 ld\.sb r4,r4\[r4<<0x1\]
47569 + *[0-9a-f]*: fc 0e 06 1e ld\.sb lr,lr\[lr<<0x1\]
47570 + *[0-9a-f]*: e2 0f 06 39 ld\.sb r9,r1\[pc<<0x3\]
47571 + *[0-9a-f]*: e6 0b 06 10 ld\.sb r0,r3\[r11<<0x1\]
47572 + *[0-9a-f]*: ea 05 06 1a ld\.sb r10,r5\[r5<<0x1\]
47573 +
47574 +[0-9a-f]* <ld_ub5>:
47575 + *[0-9a-f]*: fe 0f 07 0f ld\.ub pc,pc\[pc\]
47576 + *[0-9a-f]*: f8 0c 07 3c ld\.ub r12,r12\[r12<<0x3\]
47577 + *[0-9a-f]*: ea 05 07 25 ld\.ub r5,r5\[r5<<0x2\]
47578 + *[0-9a-f]*: e8 04 07 14 ld\.ub r4,r4\[r4<<0x1\]
47579 + *[0-9a-f]*: fc 0e 07 1e ld\.ub lr,lr\[lr<<0x1\]
47580 + *[0-9a-f]*: f8 07 07 36 ld\.ub r6,r12\[r7<<0x3\]
47581 + *[0-9a-f]*: ec 0c 07 02 ld\.ub r2,r6\[r12\]
47582 + *[0-9a-f]*: ee 0b 07 10 ld\.ub r0,r7\[r11<<0x1\]
47583 +
47584 +[0-9a-f]* <st_d5>:
47585 + *[0-9a-f]*: fe 0f 08 0e st\.d pc\[pc\],lr
47586 + *[0-9a-f]*: f8 0c 08 3c st\.d r12\[r12<<0x3\],r12
47587 + *[0-9a-f]*: ea 05 08 26 st\.d r5\[r5<<0x2\],r6
47588 + *[0-9a-f]*: e8 04 08 14 st\.d r4\[r4<<0x1\],r4
47589 + *[0-9a-f]*: fc 0e 08 1e st\.d lr\[lr<<0x1\],lr
47590 + *[0-9a-f]*: e2 09 08 14 st\.d r1\[r9<<0x1\],r4
47591 + *[0-9a-f]*: f4 02 08 14 st\.d r10\[r2<<0x1\],r4
47592 + *[0-9a-f]*: f8 06 08 0e st\.d r12\[r6\],lr
47593 +
47594 +[0-9a-f]* <st_w5>:
47595 + *[0-9a-f]*: fe 0f 09 0f st\.w pc\[pc\],pc
47596 + *[0-9a-f]*: f8 0c 09 3c st\.w r12\[r12<<0x3\],r12
47597 + *[0-9a-f]*: ea 05 09 25 st\.w r5\[r5<<0x2\],r5
47598 + *[0-9a-f]*: e8 04 09 14 st\.w r4\[r4<<0x1\],r4
47599 + *[0-9a-f]*: fc 0e 09 1e st\.w lr\[lr<<0x1\],lr
47600 + *[0-9a-f]*: e2 0a 09 03 st\.w r1\[r10\],r3
47601 + *[0-9a-f]*: e0 0a 09 19 st\.w r0\[r10<<0x1\],r9
47602 + *[0-9a-f]*: e8 05 09 3f st\.w r4\[r5<<0x3\],pc
47603 +
47604 +[0-9a-f]* <st_h5>:
47605 + *[0-9a-f]*: fe 0f 0a 0f st\.h pc\[pc\],pc
47606 + *[0-9a-f]*: f8 0c 0a 3c st\.h r12\[r12<<0x3\],r12
47607 + *[0-9a-f]*: ea 05 0a 25 st\.h r5\[r5<<0x2\],r5
47608 + *[0-9a-f]*: e8 04 0a 14 st\.h r4\[r4<<0x1\],r4
47609 + *[0-9a-f]*: fc 0e 0a 1e st\.h lr\[lr<<0x1\],lr
47610 + *[0-9a-f]*: e4 09 0a 0b st\.h r2\[r9\],r11
47611 + *[0-9a-f]*: ea 01 0a 2c st\.h r5\[r1<<0x2\],r12
47612 + *[0-9a-f]*: fe 08 0a 23 st\.h pc\[r8<<0x2\],r3
47613 +
47614 +[0-9a-f]* <st_b5>:
47615 + *[0-9a-f]*: fe 0f 0b 0f st\.b pc\[pc\],pc
47616 + *[0-9a-f]*: f8 0c 0b 3c st\.b r12\[r12<<0x3\],r12
47617 + *[0-9a-f]*: ea 05 0b 25 st\.b r5\[r5<<0x2\],r5
47618 + *[0-9a-f]*: e8 04 0b 14 st\.b r4\[r4<<0x1\],r4
47619 + *[0-9a-f]*: fc 0e 0b 1e st\.b lr\[lr<<0x1\],lr
47620 + *[0-9a-f]*: e2 08 0b 16 st\.b r1\[r8<<0x1\],r6
47621 + *[0-9a-f]*: fc 0e 0b 31 st\.b lr\[lr<<0x3\],r1
47622 + *[0-9a-f]*: ea 00 0b 2f st\.b r5\[r0<<0x2\],pc
47623 +
47624 +[0-9a-f]* <divs>:
47625 + *[0-9a-f]*: fe 0f 0c 0f divs pc,pc,pc
47626 + *[0-9a-f]*: f8 0c 0c 0c divs r12,r12,r12
47627 + *[0-9a-f]*: ea 05 0c 05 divs r5,r5,r5
47628 + *[0-9a-f]*: e8 04 0c 04 divs r4,r4,r4
47629 + *[0-9a-f]*: fc 0e 0c 0e divs lr,lr,lr
47630 + *[0-9a-f]*: fe 0f 0c 03 divs r3,pc,pc
47631 + *[0-9a-f]*: f8 02 0c 09 divs r9,r12,r2
47632 + *[0-9a-f]*: e8 01 0c 07 divs r7,r4,r1
47633 +
47634 +[0-9a-f]* <add1>:
47635 + *[0-9a-f]*: 1e 0f add pc,pc
47636 + *[0-9a-f]*: 18 0c add r12,r12
47637 + *[0-9a-f]*: 0a 05 add r5,r5
47638 + *[0-9a-f]*: 08 04 add r4,r4
47639 + *[0-9a-f]*: 1c 0e add lr,lr
47640 + *[0-9a-f]*: 12 0c add r12,r9
47641 + *[0-9a-f]*: 06 06 add r6,r3
47642 + *[0-9a-f]*: 18 0a add r10,r12
47643 +
47644 +[0-9a-f]* <sub1>:
47645 + *[0-9a-f]*: 1e 1f sub pc,pc
47646 + *[0-9a-f]*: 18 1c sub r12,r12
47647 + *[0-9a-f]*: 0a 15 sub r5,r5
47648 + *[0-9a-f]*: 08 14 sub r4,r4
47649 + *[0-9a-f]*: 1c 1e sub lr,lr
47650 + *[0-9a-f]*: 0c 1e sub lr,r6
47651 + *[0-9a-f]*: 1a 10 sub r0,sp
47652 + *[0-9a-f]*: 18 16 sub r6,r12
47653 +
47654 +[0-9a-f]* <rsub1>:
47655 + *[0-9a-f]*: 1e 2f rsub pc,pc
47656 + *[0-9a-f]*: 18 2c rsub r12,r12
47657 + *[0-9a-f]*: 0a 25 rsub r5,r5
47658 + *[0-9a-f]*: 08 24 rsub r4,r4
47659 + *[0-9a-f]*: 1c 2e rsub lr,lr
47660 + *[0-9a-f]*: 1a 2b rsub r11,sp
47661 + *[0-9a-f]*: 08 27 rsub r7,r4
47662 + *[0-9a-f]*: 02 29 rsub r9,r1
47663 +
47664 +[0-9a-f]* <cp1>:
47665 + *[0-9a-f]*: 1e 3f cp\.w pc,pc
47666 + *[0-9a-f]*: 18 3c cp\.w r12,r12
47667 + *[0-9a-f]*: 0a 35 cp\.w r5,r5
47668 + *[0-9a-f]*: 08 34 cp\.w r4,r4
47669 + *[0-9a-f]*: 1c 3e cp\.w lr,lr
47670 + *[0-9a-f]*: 04 36 cp\.w r6,r2
47671 + *[0-9a-f]*: 12 30 cp\.w r0,r9
47672 + *[0-9a-f]*: 1a 33 cp\.w r3,sp
47673 +
47674 +[0-9a-f]* <or1>:
47675 + *[0-9a-f]*: 1e 4f or pc,pc
47676 + *[0-9a-f]*: 18 4c or r12,r12
47677 + *[0-9a-f]*: 0a 45 or r5,r5
47678 + *[0-9a-f]*: 08 44 or r4,r4
47679 + *[0-9a-f]*: 1c 4e or lr,lr
47680 + *[0-9a-f]*: 12 44 or r4,r9
47681 + *[0-9a-f]*: 08 4b or r11,r4
47682 + *[0-9a-f]*: 00 44 or r4,r0
47683 +
47684 +[0-9a-f]* <eor1>:
47685 + *[0-9a-f]*: 1e 5f eor pc,pc
47686 + *[0-9a-f]*: 18 5c eor r12,r12
47687 + *[0-9a-f]*: 0a 55 eor r5,r5
47688 + *[0-9a-f]*: 08 54 eor r4,r4
47689 + *[0-9a-f]*: 1c 5e eor lr,lr
47690 + *[0-9a-f]*: 16 5c eor r12,r11
47691 + *[0-9a-f]*: 02 50 eor r0,r1
47692 + *[0-9a-f]*: 1e 55 eor r5,pc
47693 +
47694 +[0-9a-f]* <and1>:
47695 + *[0-9a-f]*: 1e 6f and pc,pc
47696 + *[0-9a-f]*: 18 6c and r12,r12
47697 + *[0-9a-f]*: 0a 65 and r5,r5
47698 + *[0-9a-f]*: 08 64 and r4,r4
47699 + *[0-9a-f]*: 1c 6e and lr,lr
47700 + *[0-9a-f]*: 02 68 and r8,r1
47701 + *[0-9a-f]*: 1a 60 and r0,sp
47702 + *[0-9a-f]*: 0a 6a and r10,r5
47703 +
47704 +[0-9a-f]* <tst>:
47705 + *[0-9a-f]*: 1e 7f tst pc,pc
47706 + *[0-9a-f]*: 18 7c tst r12,r12
47707 + *[0-9a-f]*: 0a 75 tst r5,r5
47708 + *[0-9a-f]*: 08 74 tst r4,r4
47709 + *[0-9a-f]*: 1c 7e tst lr,lr
47710 + *[0-9a-f]*: 18 70 tst r0,r12
47711 + *[0-9a-f]*: 0c 7a tst r10,r6
47712 + *[0-9a-f]*: 08 7d tst sp,r4
47713 +
47714 +[0-9a-f]* <andn>:
47715 + *[0-9a-f]*: 1e 8f andn pc,pc
47716 + *[0-9a-f]*: 18 8c andn r12,r12
47717 + *[0-9a-f]*: 0a 85 andn r5,r5
47718 + *[0-9a-f]*: 08 84 andn r4,r4
47719 + *[0-9a-f]*: 1c 8e andn lr,lr
47720 + *[0-9a-f]*: 18 89 andn r9,r12
47721 + *[0-9a-f]*: 1a 8b andn r11,sp
47722 + *[0-9a-f]*: 0a 8c andn r12,r5
47723 +
47724 +[0-9a-f]* <mov3>:
47725 + *[0-9a-f]*: 1e 9f mov pc,pc
47726 + *[0-9a-f]*: 18 9c mov r12,r12
47727 + *[0-9a-f]*: 0a 95 mov r5,r5
47728 + *[0-9a-f]*: 08 94 mov r4,r4
47729 + *[0-9a-f]*: 1c 9e mov lr,lr
47730 + *[0-9a-f]*: 12 95 mov r5,r9
47731 + *[0-9a-f]*: 16 9b mov r11,r11
47732 + *[0-9a-f]*: 1c 92 mov r2,lr
47733 +
47734 +[0-9a-f]* <st_w1>:
47735 + *[0-9a-f]*: 1e af st\.w pc\+\+,pc
47736 + *[0-9a-f]*: 18 ac st\.w r12\+\+,r12
47737 + *[0-9a-f]*: 0a a5 st\.w r5\+\+,r5
47738 + *[0-9a-f]*: 08 a4 st\.w r4\+\+,r4
47739 + *[0-9a-f]*: 1c ae st\.w lr\+\+,lr
47740 + *[0-9a-f]*: 02 ab st\.w r1\+\+,r11
47741 + *[0-9a-f]*: 1a a0 st\.w sp\+\+,r0
47742 + *[0-9a-f]*: 1a a1 st\.w sp\+\+,r1
47743 +
47744 +[0-9a-f]* <st_h1>:
47745 + *[0-9a-f]*: 1e bf st\.h pc\+\+,pc
47746 + *[0-9a-f]*: 18 bc st\.h r12\+\+,r12
47747 + *[0-9a-f]*: 0a b5 st\.h r5\+\+,r5
47748 + *[0-9a-f]*: 08 b4 st\.h r4\+\+,r4
47749 + *[0-9a-f]*: 1c be st\.h lr\+\+,lr
47750 + *[0-9a-f]*: 18 bd st\.h r12\+\+,sp
47751 + *[0-9a-f]*: 0e be st\.h r7\+\+,lr
47752 + *[0-9a-f]*: 0e b4 st\.h r7\+\+,r4
47753 +
47754 +[0-9a-f]* <st_b1>:
47755 + *[0-9a-f]*: 1e cf st\.b pc\+\+,pc
47756 + *[0-9a-f]*: 18 cc st\.b r12\+\+,r12
47757 + *[0-9a-f]*: 0a c5 st\.b r5\+\+,r5
47758 + *[0-9a-f]*: 08 c4 st\.b r4\+\+,r4
47759 + *[0-9a-f]*: 1c ce st\.b lr\+\+,lr
47760 + *[0-9a-f]*: 12 cd st\.b r9\+\+,sp
47761 + *[0-9a-f]*: 02 cd st\.b r1\+\+,sp
47762 + *[0-9a-f]*: 00 c4 st\.b r0\+\+,r4
47763 +
47764 +[0-9a-f]* <st_w2>:
47765 + *[0-9a-f]*: 1e df st\.w --pc,pc
47766 + *[0-9a-f]*: 18 dc st\.w --r12,r12
47767 + *[0-9a-f]*: 0a d5 st\.w --r5,r5
47768 + *[0-9a-f]*: 08 d4 st\.w --r4,r4
47769 + *[0-9a-f]*: 1c de st\.w --lr,lr
47770 + *[0-9a-f]*: 02 d7 st\.w --r1,r7
47771 + *[0-9a-f]*: 06 d9 st\.w --r3,r9
47772 + *[0-9a-f]*: 0a d5 st\.w --r5,r5
47773 +
47774 +[0-9a-f]* <st_h2>:
47775 + *[0-9a-f]*: 1e ef st\.h --pc,pc
47776 + *[0-9a-f]*: 18 ec st\.h --r12,r12
47777 + *[0-9a-f]*: 0a e5 st\.h --r5,r5
47778 + *[0-9a-f]*: 08 e4 st\.h --r4,r4
47779 + *[0-9a-f]*: 1c ee st\.h --lr,lr
47780 + *[0-9a-f]*: 0a e7 st\.h --r5,r7
47781 + *[0-9a-f]*: 10 e8 st\.h --r8,r8
47782 + *[0-9a-f]*: 0e e2 st\.h --r7,r2
47783 +
47784 +[0-9a-f]* <st_b2>:
47785 + *[0-9a-f]*: 1e ff st\.b --pc,pc
47786 + *[0-9a-f]*: 18 fc st\.b --r12,r12
47787 + *[0-9a-f]*: 0a f5 st\.b --r5,r5
47788 + *[0-9a-f]*: 08 f4 st\.b --r4,r4
47789 + *[0-9a-f]*: 1c fe st\.b --lr,lr
47790 + *[0-9a-f]*: 1a fd st\.b --sp,sp
47791 + *[0-9a-f]*: 1a fb st\.b --sp,r11
47792 + *[0-9a-f]*: 08 f5 st\.b --r4,r5
47793 +
47794 +[0-9a-f]* <ld_w1>:
47795 + *[0-9a-f]*: 1f 0f ld\.w pc,pc\+\+
47796 + *[0-9a-f]*: 19 0c ld\.w r12,r12\+\+
47797 + *[0-9a-f]*: 0b 05 ld\.w r5,r5\+\+
47798 + *[0-9a-f]*: 09 04 ld\.w r4,r4\+\+
47799 + *[0-9a-f]*: 1d 0e ld\.w lr,lr\+\+
47800 + *[0-9a-f]*: 0f 03 ld\.w r3,r7\+\+
47801 + *[0-9a-f]*: 1d 03 ld\.w r3,lr\+\+
47802 + *[0-9a-f]*: 0b 0c ld\.w r12,r5\+\+
47803 +
47804 +[0-9a-f]* <ld_sh1>:
47805 + *[0-9a-f]*: 1f 1f ld\.sh pc,pc\+\+
47806 + *[0-9a-f]*: 19 1c ld\.sh r12,r12\+\+
47807 + *[0-9a-f]*: 0b 15 ld\.sh r5,r5\+\+
47808 + *[0-9a-f]*: 09 14 ld\.sh r4,r4\+\+
47809 + *[0-9a-f]*: 1d 1e ld\.sh lr,lr\+\+
47810 + *[0-9a-f]*: 05 1b ld\.sh r11,r2\+\+
47811 + *[0-9a-f]*: 11 12 ld\.sh r2,r8\+\+
47812 + *[0-9a-f]*: 0d 17 ld\.sh r7,r6\+\+
47813 +
47814 +[0-9a-f]* <ld_uh1>:
47815 + *[0-9a-f]*: 1f 2f ld\.uh pc,pc\+\+
47816 + *[0-9a-f]*: 19 2c ld\.uh r12,r12\+\+
47817 + *[0-9a-f]*: 0b 25 ld\.uh r5,r5\+\+
47818 + *[0-9a-f]*: 09 24 ld\.uh r4,r4\+\+
47819 + *[0-9a-f]*: 1d 2e ld\.uh lr,lr\+\+
47820 + *[0-9a-f]*: 0f 26 ld\.uh r6,r7\+\+
47821 + *[0-9a-f]*: 17 2a ld\.uh r10,r11\+\+
47822 + *[0-9a-f]*: 09 2e ld\.uh lr,r4\+\+
47823 +
47824 +[0-9a-f]* <ld_ub1>:
47825 + *[0-9a-f]*: 1f 3f ld\.ub pc,pc\+\+
47826 + *[0-9a-f]*: 19 3c ld\.ub r12,r12\+\+
47827 + *[0-9a-f]*: 0b 35 ld\.ub r5,r5\+\+
47828 + *[0-9a-f]*: 09 34 ld\.ub r4,r4\+\+
47829 + *[0-9a-f]*: 1d 3e ld\.ub lr,lr\+\+
47830 + *[0-9a-f]*: 1d 38 ld\.ub r8,lr\+\+
47831 + *[0-9a-f]*: 19 3c ld\.ub r12,r12\+\+
47832 + *[0-9a-f]*: 15 3b ld\.ub r11,r10\+\+
47833 +
47834 +[0-9a-f]* <ld_w2>:
47835 + *[0-9a-f]*: 1f 4f ld\.w pc,--pc
47836 + *[0-9a-f]*: 19 4c ld\.w r12,--r12
47837 + *[0-9a-f]*: 0b 45 ld\.w r5,--r5
47838 + *[0-9a-f]*: 09 44 ld\.w r4,--r4
47839 + *[0-9a-f]*: 1d 4e ld\.w lr,--lr
47840 + *[0-9a-f]*: 1d 4a ld\.w r10,--lr
47841 + *[0-9a-f]*: 13 4c ld\.w r12,--r9
47842 + *[0-9a-f]*: 0b 46 ld\.w r6,--r5
47843 +
47844 +[0-9a-f]* <ld_sh2>:
47845 + *[0-9a-f]*: 1f 5f ld\.sh pc,--pc
47846 + *[0-9a-f]*: 19 5c ld\.sh r12,--r12
47847 + *[0-9a-f]*: 0b 55 ld\.sh r5,--r5
47848 + *[0-9a-f]*: 09 54 ld\.sh r4,--r4
47849 + *[0-9a-f]*: 1d 5e ld\.sh lr,--lr
47850 + *[0-9a-f]*: 15 5f ld\.sh pc,--r10
47851 + *[0-9a-f]*: 07 56 ld\.sh r6,--r3
47852 + *[0-9a-f]*: 0d 54 ld\.sh r4,--r6
47853 +
47854 +[0-9a-f]* <ld_uh2>:
47855 + *[0-9a-f]*: 1f 6f ld\.uh pc,--pc
47856 + *[0-9a-f]*: 19 6c ld\.uh r12,--r12
47857 + *[0-9a-f]*: 0b 65 ld\.uh r5,--r5
47858 + *[0-9a-f]*: 09 64 ld\.uh r4,--r4
47859 + *[0-9a-f]*: 1d 6e ld\.uh lr,--lr
47860 + *[0-9a-f]*: 05 63 ld\.uh r3,--r2
47861 + *[0-9a-f]*: 01 61 ld\.uh r1,--r0
47862 + *[0-9a-f]*: 13 62 ld\.uh r2,--r9
47863 +
47864 +[0-9a-f]* <ld_ub2>:
47865 + *[0-9a-f]*: 1f 7f ld\.ub pc,--pc
47866 + *[0-9a-f]*: 19 7c ld\.ub r12,--r12
47867 + *[0-9a-f]*: 0b 75 ld\.ub r5,--r5
47868 + *[0-9a-f]*: 09 74 ld\.ub r4,--r4
47869 + *[0-9a-f]*: 1d 7e ld\.ub lr,--lr
47870 + *[0-9a-f]*: 03 71 ld\.ub r1,--r1
47871 + *[0-9a-f]*: 0d 70 ld\.ub r0,--r6
47872 + *[0-9a-f]*: 0f 72 ld\.ub r2,--r7
47873 +
47874 +[0-9a-f]* <ld_ub3>:
47875 + *[0-9a-f]*: 1f 8f ld\.ub pc,pc\[0x0\]
47876 + *[0-9a-f]*: 19 fc ld\.ub r12,r12\[0x7\]
47877 + *[0-9a-f]*: 0b c5 ld\.ub r5,r5\[0x4\]
47878 + *[0-9a-f]*: 09 b4 ld\.ub r4,r4\[0x3\]
47879 + *[0-9a-f]*: 1d 9e ld\.ub lr,lr\[0x1\]
47880 + *[0-9a-f]*: 13 e6 ld\.ub r6,r9\[0x6\]
47881 + *[0-9a-f]*: 1d c2 ld\.ub r2,lr\[0x4\]
47882 + *[0-9a-f]*: 11 81 ld\.ub r1,r8\[0x0\]
47883 +
47884 +[0-9a-f]* <sub3_sp>:
47885 + *[0-9a-f]*: 20 0d sub sp,0
47886 + *[0-9a-f]*: 2f fd sub sp,-4
47887 + *[0-9a-f]*: 28 0d sub sp,-512
47888 + *[0-9a-f]*: 27 fd sub sp,508
47889 + *[0-9a-f]*: 20 1d sub sp,4
47890 + *[0-9a-f]*: 20 bd sub sp,44
47891 + *[0-9a-f]*: 20 2d sub sp,8
47892 + *[0-9a-f]*: 25 7d sub sp,348
47893 +
47894 +[0-9a-f]* <sub3>:
47895 + *[0-9a-f]*: 20 0f sub pc,0
47896 + *[0-9a-f]*: 2f fc sub r12,-1
47897 + *[0-9a-f]*: 28 05 sub r5,-128
47898 + *[0-9a-f]*: 27 f4 sub r4,127
47899 + *[0-9a-f]*: 20 1e sub lr,1
47900 + *[0-9a-f]*: 2d 76 sub r6,-41
47901 + *[0-9a-f]*: 22 54 sub r4,37
47902 + *[0-9a-f]*: 23 8c sub r12,56
47903 +
47904 +[0-9a-f]* <mov1>:
47905 + *[0-9a-f]*: 30 0f mov pc,0
47906 + *[0-9a-f]*: 3f fc mov r12,-1
47907 + *[0-9a-f]*: 38 05 mov r5,-128
47908 + *[0-9a-f]*: 37 f4 mov r4,127
47909 + *[0-9a-f]*: 30 1e mov lr,1
47910 + *[0-9a-f]*: 30 ef mov pc,14
47911 + *[0-9a-f]*: 39 c6 mov r6,-100
47912 + *[0-9a-f]*: 38 6e mov lr,-122
47913 +
47914 +[0-9a-f]* <lddsp>:
47915 + *[0-9a-f]*: 40 0f lddsp pc,sp\[0x0\]
47916 + *[0-9a-f]*: 47 fc lddsp r12,sp\[0x1fc\]
47917 + *[0-9a-f]*: 44 05 lddsp r5,sp\[0x100\]
47918 + *[0-9a-f]*: 43 f4 lddsp r4,sp\[0xfc\]
47919 + *[0-9a-f]*: 40 1e lddsp lr,sp\[0x4\]
47920 + *[0-9a-f]*: 44 0e lddsp lr,sp\[0x100\]
47921 + *[0-9a-f]*: 40 5c lddsp r12,sp\[0x14\]
47922 + *[0-9a-f]*: 47 69 lddsp r9,sp\[0x1d8\]
47923 +
47924 +[0-9a-f]* <lddpc>:
47925 + *[0-9a-f]*: 48 0f lddpc pc,[0-9a-f]* <.*>
47926 + *[0-9a-f]*: 4f f0 lddpc r0,[0-9a-f]* <.*>
47927 + *[0-9a-f]*: 4c 08 lddpc r8,[0-9a-f]* <.*>
47928 + *[0-9a-f]*: 4b f7 lddpc r7,[0-9a-f]* <.*>
47929 + *[0-9a-f]*: 48 1e lddpc lr,[0-9a-f]* <.*>
47930 + *[0-9a-f]*: 4f 6d lddpc sp,[0-9a-f]* <.*>
47931 + *[0-9a-f]*: 49 e6 lddpc r6,[0-9a-f]* <.*>
47932 + *[0-9a-f]*: 48 7b lddpc r11,[0-9a-f]* <.*>
47933 +
47934 +[0-9a-f]* <stdsp>:
47935 + *[0-9a-f]*: 50 0f stdsp sp\[0x0\],pc
47936 + *[0-9a-f]*: 57 fc stdsp sp\[0x1fc\],r12
47937 + *[0-9a-f]*: 54 05 stdsp sp\[0x100\],r5
47938 + *[0-9a-f]*: 53 f4 stdsp sp\[0xfc\],r4
47939 + *[0-9a-f]*: 50 1e stdsp sp\[0x4\],lr
47940 + *[0-9a-f]*: 54 cf stdsp sp\[0x130\],pc
47941 + *[0-9a-f]*: 54 00 stdsp sp\[0x100\],r0
47942 + *[0-9a-f]*: 55 45 stdsp sp\[0x150\],r5
47943 +
47944 +[0-9a-f]* <cp2>:
47945 + *[0-9a-f]*: 58 0f cp.w pc,0
47946 + *[0-9a-f]*: 5b fc cp.w r12,-1
47947 + *[0-9a-f]*: 5a 05 cp.w r5,-32
47948 + *[0-9a-f]*: 59 f4 cp.w r4,31
47949 + *[0-9a-f]*: 58 1e cp.w lr,1
47950 + *[0-9a-f]*: 58 38 cp.w r8,3
47951 + *[0-9a-f]*: 59 0e cp.w lr,16
47952 + *[0-9a-f]*: 5a 67 cp.w r7,-26
47953 +
47954 +[0-9a-f]* <acr>:
47955 + *[0-9a-f]*: 5c 0f acr pc
47956 + *[0-9a-f]*: 5c 0c acr r12
47957 + *[0-9a-f]*: 5c 05 acr r5
47958 + *[0-9a-f]*: 5c 04 acr r4
47959 + *[0-9a-f]*: 5c 0e acr lr
47960 + *[0-9a-f]*: 5c 02 acr r2
47961 + *[0-9a-f]*: 5c 0c acr r12
47962 + *[0-9a-f]*: 5c 0f acr pc
47963 +
47964 +[0-9a-f]* <scr>:
47965 + *[0-9a-f]*: 5c 1f scr pc
47966 + *[0-9a-f]*: 5c 1c scr r12
47967 + *[0-9a-f]*: 5c 15 scr r5
47968 + *[0-9a-f]*: 5c 14 scr r4
47969 + *[0-9a-f]*: 5c 1e scr lr
47970 + *[0-9a-f]*: 5c 1f scr pc
47971 + *[0-9a-f]*: 5c 16 scr r6
47972 + *[0-9a-f]*: 5c 11 scr r1
47973 +
47974 +[0-9a-f]* <cpc0>:
47975 + *[0-9a-f]*: 5c 2f cpc pc
47976 + *[0-9a-f]*: 5c 2c cpc r12
47977 + *[0-9a-f]*: 5c 25 cpc r5
47978 + *[0-9a-f]*: 5c 24 cpc r4
47979 + *[0-9a-f]*: 5c 2e cpc lr
47980 + *[0-9a-f]*: 5c 2f cpc pc
47981 + *[0-9a-f]*: 5c 24 cpc r4
47982 + *[0-9a-f]*: 5c 29 cpc r9
47983 +
47984 +[0-9a-f]* <neg>:
47985 + *[0-9a-f]*: 5c 3f neg pc
47986 + *[0-9a-f]*: 5c 3c neg r12
47987 + *[0-9a-f]*: 5c 35 neg r5
47988 + *[0-9a-f]*: 5c 34 neg r4
47989 + *[0-9a-f]*: 5c 3e neg lr
47990 + *[0-9a-f]*: 5c 37 neg r7
47991 + *[0-9a-f]*: 5c 31 neg r1
47992 + *[0-9a-f]*: 5c 39 neg r9
47993 +
47994 +[0-9a-f]* <abs>:
47995 + *[0-9a-f]*: 5c 4f abs pc
47996 + *[0-9a-f]*: 5c 4c abs r12
47997 + *[0-9a-f]*: 5c 45 abs r5
47998 + *[0-9a-f]*: 5c 44 abs r4
47999 + *[0-9a-f]*: 5c 4e abs lr
48000 + *[0-9a-f]*: 5c 46 abs r6
48001 + *[0-9a-f]*: 5c 46 abs r6
48002 + *[0-9a-f]*: 5c 44 abs r4
48003 +
48004 +[0-9a-f]* <castu_b>:
48005 + *[0-9a-f]*: 5c 5f castu\.b pc
48006 + *[0-9a-f]*: 5c 5c castu\.b r12
48007 + *[0-9a-f]*: 5c 55 castu\.b r5
48008 + *[0-9a-f]*: 5c 54 castu\.b r4
48009 + *[0-9a-f]*: 5c 5e castu\.b lr
48010 + *[0-9a-f]*: 5c 57 castu\.b r7
48011 + *[0-9a-f]*: 5c 5d castu\.b sp
48012 + *[0-9a-f]*: 5c 59 castu\.b r9
48013 +
48014 +[0-9a-f]* <casts_b>:
48015 + *[0-9a-f]*: 5c 6f casts\.b pc
48016 + *[0-9a-f]*: 5c 6c casts\.b r12
48017 + *[0-9a-f]*: 5c 65 casts\.b r5
48018 + *[0-9a-f]*: 5c 64 casts\.b r4
48019 + *[0-9a-f]*: 5c 6e casts\.b lr
48020 + *[0-9a-f]*: 5c 6b casts\.b r11
48021 + *[0-9a-f]*: 5c 61 casts\.b r1
48022 + *[0-9a-f]*: 5c 6a casts\.b r10
48023 +
48024 +[0-9a-f]* <castu_h>:
48025 + *[0-9a-f]*: 5c 7f castu\.h pc
48026 + *[0-9a-f]*: 5c 7c castu\.h r12
48027 + *[0-9a-f]*: 5c 75 castu\.h r5
48028 + *[0-9a-f]*: 5c 74 castu\.h r4
48029 + *[0-9a-f]*: 5c 7e castu\.h lr
48030 + *[0-9a-f]*: 5c 7a castu\.h r10
48031 + *[0-9a-f]*: 5c 7b castu\.h r11
48032 + *[0-9a-f]*: 5c 71 castu\.h r1
48033 +
48034 +[0-9a-f]* <casts_h>:
48035 + *[0-9a-f]*: 5c 8f casts\.h pc
48036 + *[0-9a-f]*: 5c 8c casts\.h r12
48037 + *[0-9a-f]*: 5c 85 casts\.h r5
48038 + *[0-9a-f]*: 5c 84 casts\.h r4
48039 + *[0-9a-f]*: 5c 8e casts\.h lr
48040 + *[0-9a-f]*: 5c 80 casts\.h r0
48041 + *[0-9a-f]*: 5c 85 casts\.h r5
48042 + *[0-9a-f]*: 5c 89 casts\.h r9
48043 +
48044 +[0-9a-f]* <brev>:
48045 + *[0-9a-f]*: 5c 9f brev pc
48046 + *[0-9a-f]*: 5c 9c brev r12
48047 + *[0-9a-f]*: 5c 95 brev r5
48048 + *[0-9a-f]*: 5c 94 brev r4
48049 + *[0-9a-f]*: 5c 9e brev lr
48050 + *[0-9a-f]*: 5c 95 brev r5
48051 + *[0-9a-f]*: 5c 9a brev r10
48052 + *[0-9a-f]*: 5c 98 brev r8
48053 +
48054 +[0-9a-f]* <swap_h>:
48055 + *[0-9a-f]*: 5c af swap\.h pc
48056 + *[0-9a-f]*: 5c ac swap\.h r12
48057 + *[0-9a-f]*: 5c a5 swap\.h r5
48058 + *[0-9a-f]*: 5c a4 swap\.h r4
48059 + *[0-9a-f]*: 5c ae swap\.h lr
48060 + *[0-9a-f]*: 5c a7 swap\.h r7
48061 + *[0-9a-f]*: 5c a0 swap\.h r0
48062 + *[0-9a-f]*: 5c a8 swap\.h r8
48063 +
48064 +[0-9a-f]* <swap_b>:
48065 + *[0-9a-f]*: 5c bf swap\.b pc
48066 + *[0-9a-f]*: 5c bc swap\.b r12
48067 + *[0-9a-f]*: 5c b5 swap\.b r5
48068 + *[0-9a-f]*: 5c b4 swap\.b r4
48069 + *[0-9a-f]*: 5c be swap\.b lr
48070 + *[0-9a-f]*: 5c ba swap\.b r10
48071 + *[0-9a-f]*: 5c bc swap\.b r12
48072 + *[0-9a-f]*: 5c b1 swap\.b r1
48073 +
48074 +[0-9a-f]* <swap_bh>:
48075 + *[0-9a-f]*: 5c cf swap\.bh pc
48076 + *[0-9a-f]*: 5c cc swap\.bh r12
48077 + *[0-9a-f]*: 5c c5 swap\.bh r5
48078 + *[0-9a-f]*: 5c c4 swap\.bh r4
48079 + *[0-9a-f]*: 5c ce swap\.bh lr
48080 + *[0-9a-f]*: 5c c9 swap\.bh r9
48081 + *[0-9a-f]*: 5c c4 swap\.bh r4
48082 + *[0-9a-f]*: 5c c1 swap\.bh r1
48083 +
48084 +[0-9a-f]* <One_s_compliment>:
48085 + *[0-9a-f]*: 5c df com pc
48086 + *[0-9a-f]*: 5c dc com r12
48087 + *[0-9a-f]*: 5c d5 com r5
48088 + *[0-9a-f]*: 5c d4 com r4
48089 + *[0-9a-f]*: 5c de com lr
48090 + *[0-9a-f]*: 5c d2 com r2
48091 + *[0-9a-f]*: 5c d2 com r2
48092 + *[0-9a-f]*: 5c d7 com r7
48093 +
48094 +[0-9a-f]* <tnbz>:
48095 + *[0-9a-f]*: 5c ef tnbz pc
48096 + *[0-9a-f]*: 5c ec tnbz r12
48097 + *[0-9a-f]*: 5c e5 tnbz r5
48098 + *[0-9a-f]*: 5c e4 tnbz r4
48099 + *[0-9a-f]*: 5c ee tnbz lr
48100 + *[0-9a-f]*: 5c e8 tnbz r8
48101 + *[0-9a-f]*: 5c ec tnbz r12
48102 + *[0-9a-f]*: 5c ef tnbz pc
48103 +
48104 +[0-9a-f]* <rol>:
48105 + *[0-9a-f]*: 5c ff rol pc
48106 + *[0-9a-f]*: 5c fc rol r12
48107 + *[0-9a-f]*: 5c f5 rol r5
48108 + *[0-9a-f]*: 5c f4 rol r4
48109 + *[0-9a-f]*: 5c fe rol lr
48110 + *[0-9a-f]*: 5c fa rol r10
48111 + *[0-9a-f]*: 5c f9 rol r9
48112 + *[0-9a-f]*: 5c f5 rol r5
48113 +
48114 +[0-9a-f]* <ror>:
48115 + *[0-9a-f]*: 5d 0f ror pc
48116 + *[0-9a-f]*: 5d 0c ror r12
48117 + *[0-9a-f]*: 5d 05 ror r5
48118 + *[0-9a-f]*: 5d 04 ror r4
48119 + *[0-9a-f]*: 5d 0e ror lr
48120 + *[0-9a-f]*: 5d 08 ror r8
48121 + *[0-9a-f]*: 5d 04 ror r4
48122 + *[0-9a-f]*: 5d 07 ror r7
48123 +
48124 +[0-9a-f]* <icall>:
48125 + *[0-9a-f]*: 5d 1f icall pc
48126 + *[0-9a-f]*: 5d 1c icall r12
48127 + *[0-9a-f]*: 5d 15 icall r5
48128 + *[0-9a-f]*: 5d 14 icall r4
48129 + *[0-9a-f]*: 5d 1e icall lr
48130 + *[0-9a-f]*: 5d 13 icall r3
48131 + *[0-9a-f]*: 5d 11 icall r1
48132 + *[0-9a-f]*: 5d 13 icall r3
48133 +
48134 +[0-9a-f]* <mustr>:
48135 + *[0-9a-f]*: 5d 2f mustr pc
48136 + *[0-9a-f]*: 5d 2c mustr r12
48137 + *[0-9a-f]*: 5d 25 mustr r5
48138 + *[0-9a-f]*: 5d 24 mustr r4
48139 + *[0-9a-f]*: 5d 2e mustr lr
48140 + *[0-9a-f]*: 5d 21 mustr r1
48141 + *[0-9a-f]*: 5d 24 mustr r4
48142 + *[0-9a-f]*: 5d 2c mustr r12
48143 +
48144 +[0-9a-f]* <musfr>:
48145 + *[0-9a-f]*: 5d 3f musfr pc
48146 + *[0-9a-f]*: 5d 3c musfr r12
48147 + *[0-9a-f]*: 5d 35 musfr r5
48148 + *[0-9a-f]*: 5d 34 musfr r4
48149 + *[0-9a-f]*: 5d 3e musfr lr
48150 + *[0-9a-f]*: 5d 3b musfr r11
48151 + *[0-9a-f]*: 5d 3c musfr r12
48152 + *[0-9a-f]*: 5d 32 musfr r2
48153 +
48154 +[0-9a-f]* <ret_cond>:
48155 + *[0-9a-f]*: 5e 0f reteq 1
48156 + *[0-9a-f]*: 5e fc retal r12
48157 + *[0-9a-f]*: 5e 85 retls r5
48158 + *[0-9a-f]*: 5e 74 retpl r4
48159 + *[0-9a-f]*: 5e 1e retne -1
48160 + *[0-9a-f]*: 5e 90 retgt r0
48161 + *[0-9a-f]*: 5e 9c retgt r12
48162 + *[0-9a-f]*: 5e 4a retge r10
48163 +
48164 +[0-9a-f]* <sr_cond>:
48165 + *[0-9a-f]*: 5f 0f sreq pc
48166 + *[0-9a-f]*: 5f fc sral r12
48167 + *[0-9a-f]*: 5f 85 srls r5
48168 + *[0-9a-f]*: 5f 74 srpl r4
48169 + *[0-9a-f]*: 5f 1e srne lr
48170 + *[0-9a-f]*: 5f 50 srlt r0
48171 + *[0-9a-f]*: 5f fd sral sp
48172 + *[0-9a-f]*: 5f 49 srge r9
48173 +
48174 +[0-9a-f]* <ld_w3>:
48175 + *[0-9a-f]*: 7e 0f ld\.w pc,pc\[0x0\]
48176 + *[0-9a-f]*: 79 fc ld\.w r12,r12\[0x7c\]
48177 + *[0-9a-f]*: 6b 05 ld\.w r5,r5\[0x40\]
48178 + *[0-9a-f]*: 68 f4 ld\.w r4,r4\[0x3c\]
48179 + *[0-9a-f]*: 7c 1e ld\.w lr,lr\[0x4\]
48180 + *[0-9a-f]*: 64 dd ld\.w sp,r2\[0x34\]
48181 + *[0-9a-f]*: 62 29 ld\.w r9,r1\[0x8\]
48182 + *[0-9a-f]*: 7a f5 ld\.w r5,sp\[0x3c\]
48183 +
48184 +[0-9a-f]* <ld_sh3>:
48185 + *[0-9a-f]*: 9e 0f ld\.sh pc,pc\[0x0\]
48186 + *[0-9a-f]*: 98 7c ld\.sh r12,r12\[0xe\]
48187 + *[0-9a-f]*: 8a 45 ld\.sh r5,r5\[0x8\]
48188 + *[0-9a-f]*: 88 34 ld\.sh r4,r4\[0x6\]
48189 + *[0-9a-f]*: 9c 1e ld\.sh lr,lr\[0x2\]
48190 + *[0-9a-f]*: 84 44 ld\.sh r4,r2\[0x8\]
48191 + *[0-9a-f]*: 9c 5d ld\.sh sp,lr\[0xa\]
48192 + *[0-9a-f]*: 96 12 ld\.sh r2,r11\[0x2\]
48193 +
48194 +[0-9a-f]* <ld_uh3>:
48195 + *[0-9a-f]*: 9e 8f ld\.uh pc,pc\[0x0\]
48196 + *[0-9a-f]*: 98 fc ld\.uh r12,r12\[0xe\]
48197 + *[0-9a-f]*: 8a c5 ld\.uh r5,r5\[0x8\]
48198 + *[0-9a-f]*: 88 b4 ld\.uh r4,r4\[0x6\]
48199 + *[0-9a-f]*: 9c 9e ld\.uh lr,lr\[0x2\]
48200 + *[0-9a-f]*: 80 da ld\.uh r10,r0\[0xa\]
48201 + *[0-9a-f]*: 96 c8 ld\.uh r8,r11\[0x8\]
48202 + *[0-9a-f]*: 84 ea ld\.uh r10,r2\[0xc\]
48203 +
48204 +[0-9a-f]* <st_w3>:
48205 + *[0-9a-f]*: 9f 0f st\.w pc\[0x0\],pc
48206 + *[0-9a-f]*: 99 fc st\.w r12\[0x3c\],r12
48207 + *[0-9a-f]*: 8b 85 st\.w r5\[0x20\],r5
48208 + *[0-9a-f]*: 89 74 st\.w r4\[0x1c\],r4
48209 + *[0-9a-f]*: 9d 1e st\.w lr\[0x4\],lr
48210 + *[0-9a-f]*: 8f bb st\.w r7\[0x2c\],r11
48211 + *[0-9a-f]*: 85 66 st\.w r2\[0x18\],r6
48212 + *[0-9a-f]*: 89 39 st\.w r4\[0xc\],r9
48213 +
48214 +[0-9a-f]* <st_h3>:
48215 + *[0-9a-f]*: be 0f st\.h pc\[0x0\],pc
48216 + *[0-9a-f]*: b8 7c st\.h r12\[0xe\],r12
48217 + *[0-9a-f]*: aa 45 st\.h r5\[0x8\],r5
48218 + *[0-9a-f]*: a8 34 st\.h r4\[0x6\],r4
48219 + *[0-9a-f]*: bc 1e st\.h lr\[0x2\],lr
48220 + *[0-9a-f]*: bc 5c st\.h lr\[0xa\],r12
48221 + *[0-9a-f]*: ac 20 st\.h r6\[0x4\],r0
48222 + *[0-9a-f]*: aa 6d st\.h r5\[0xc\],sp
48223 +
48224 +[0-9a-f]* <st_b3>:
48225 + *[0-9a-f]*: be 8f st\.b pc\[0x0\],pc
48226 + *[0-9a-f]*: b8 fc st\.b r12\[0x7\],r12
48227 + *[0-9a-f]*: aa c5 st\.b r5\[0x4\],r5
48228 + *[0-9a-f]*: a8 b4 st\.b r4\[0x3\],r4
48229 + *[0-9a-f]*: bc 9e st\.b lr\[0x1\],lr
48230 + *[0-9a-f]*: b8 e9 st\.b r12\[0x6\],r9
48231 + *[0-9a-f]*: a4 be st\.b r2\[0x3\],lr
48232 + *[0-9a-f]*: a2 bb st\.b r1\[0x3\],r11
48233 +
48234 +[0-9a-f]* <ldd>:
48235 + *[0-9a-f]*: bf 00 ld\.d r0,pc
48236 + *[0-9a-f]*: b9 0e ld\.d lr,r12
48237 + *[0-9a-f]*: ab 08 ld\.d r8,r5
48238 + *[0-9a-f]*: a9 06 ld\.d r6,r4
48239 + *[0-9a-f]*: bd 02 ld\.d r2,lr
48240 + *[0-9a-f]*: af 0e ld\.d lr,r7
48241 + *[0-9a-f]*: a9 04 ld\.d r4,r4
48242 + *[0-9a-f]*: bf 0e ld\.d lr,pc
48243 +
48244 +[0-9a-f]* <ldd_postinc>:
48245 + *[0-9a-f]*: bf 01 ld\.d r0,pc\+\+
48246 + *[0-9a-f]*: b9 0f ld\.d lr,r12\+\+
48247 + *[0-9a-f]*: ab 09 ld\.d r8,r5\+\+
48248 + *[0-9a-f]*: a9 07 ld\.d r6,r4\+\+
48249 + *[0-9a-f]*: bd 03 ld\.d r2,lr\+\+
48250 + *[0-9a-f]*: ab 0f ld\.d lr,r5\+\+
48251 + *[0-9a-f]*: b7 0d ld\.d r12,r11\+\+
48252 + *[0-9a-f]*: b9 03 ld\.d r2,r12\+\+
48253 +
48254 +[0-9a-f]* <ldd_predec>:
48255 + *[0-9a-f]*: bf 10 ld\.d r0,--pc
48256 + *[0-9a-f]*: b9 1e ld\.d lr,--r12
48257 + *[0-9a-f]*: ab 18 ld\.d r8,--r5
48258 + *[0-9a-f]*: a9 16 ld\.d r6,--r4
48259 + *[0-9a-f]*: bd 12 ld\.d r2,--lr
48260 + *[0-9a-f]*: a1 18 ld\.d r8,--r0
48261 + *[0-9a-f]*: bf 1a ld\.d r10,--pc
48262 + *[0-9a-f]*: a9 12 ld\.d r2,--r4
48263 +
48264 +[0-9a-f]* <std>:
48265 + *[0-9a-f]*: bf 11 st\.d pc,r0
48266 + *[0-9a-f]*: b9 1f st\.d r12,lr
48267 + *[0-9a-f]*: ab 19 st\.d r5,r8
48268 + *[0-9a-f]*: a9 17 st\.d r4,r6
48269 + *[0-9a-f]*: bd 13 st\.d lr,r2
48270 + *[0-9a-f]*: a1 1d st\.d r0,r12
48271 + *[0-9a-f]*: bb 15 st\.d sp,r4
48272 + *[0-9a-f]*: b9 1d st\.d r12,r12
48273 +
48274 +[0-9a-f]* <std_postinc>:
48275 + *[0-9a-f]*: bf 20 st\.d pc\+\+,r0
48276 + *[0-9a-f]*: b9 2e st\.d r12\+\+,lr
48277 + *[0-9a-f]*: ab 28 st\.d r5\+\+,r8
48278 + *[0-9a-f]*: a9 26 st\.d r4\+\+,r6
48279 + *[0-9a-f]*: bd 22 st\.d lr\+\+,r2
48280 + *[0-9a-f]*: bb 26 st\.d sp\+\+,r6
48281 + *[0-9a-f]*: b5 26 st\.d r10\+\+,r6
48282 + *[0-9a-f]*: af 22 st\.d r7\+\+,r2
48283 +
48284 +[0-9a-f]* <std_predec>:
48285 + *[0-9a-f]*: bf 21 st\.d --pc,r0
48286 + *[0-9a-f]*: b9 2f st\.d --r12,lr
48287 + *[0-9a-f]*: ab 29 st\.d --r5,r8
48288 + *[0-9a-f]*: a9 27 st\.d --r4,r6
48289 + *[0-9a-f]*: bd 23 st\.d --lr,r2
48290 + *[0-9a-f]*: a7 27 st\.d --r3,r6
48291 + *[0-9a-f]*: bd 23 st\.d --lr,r2
48292 + *[0-9a-f]*: a1 25 st\.d --r0,r4
48293 +
48294 +[0-9a-f]* <mul>:
48295 + *[0-9a-f]*: bf 3f mul pc,pc
48296 + *[0-9a-f]*: b9 3c mul r12,r12
48297 + *[0-9a-f]*: ab 35 mul r5,r5
48298 + *[0-9a-f]*: a9 34 mul r4,r4
48299 + *[0-9a-f]*: bd 3e mul lr,lr
48300 + *[0-9a-f]*: bd 3a mul r10,lr
48301 + *[0-9a-f]*: b1 30 mul r0,r8
48302 + *[0-9a-f]*: ab 38 mul r8,r5
48303 +
48304 +[0-9a-f]* <asr_imm5>:
48305 + *[0-9a-f]*: a1 4f asr pc,0x0
48306 + *[0-9a-f]*: bf 5c asr r12,0x1f
48307 + *[0-9a-f]*: b1 45 asr r5,0x10
48308 + *[0-9a-f]*: af 54 asr r4,0xf
48309 + *[0-9a-f]*: a1 5e asr lr,0x1
48310 + *[0-9a-f]*: b7 56 asr r6,0x17
48311 + *[0-9a-f]*: b3 46 asr r6,0x12
48312 + *[0-9a-f]*: a9 45 asr r5,0x8
48313 +
48314 +[0-9a-f]* <lsl_imm5>:
48315 + *[0-9a-f]*: a1 6f lsl pc,0x0
48316 + *[0-9a-f]*: bf 7c lsl r12,0x1f
48317 + *[0-9a-f]*: b1 65 lsl r5,0x10
48318 + *[0-9a-f]*: af 74 lsl r4,0xf
48319 + *[0-9a-f]*: a1 7e lsl lr,0x1
48320 + *[0-9a-f]*: ad 7c lsl r12,0xd
48321 + *[0-9a-f]*: b1 66 lsl r6,0x10
48322 + *[0-9a-f]*: b9 71 lsl r1,0x19
48323 +
48324 +[0-9a-f]* <lsr_imm5>:
48325 + *[0-9a-f]*: a1 8f lsr pc,0x0
48326 + *[0-9a-f]*: bf 9c lsr r12,0x1f
48327 + *[0-9a-f]*: b1 85 lsr r5,0x10
48328 + *[0-9a-f]*: af 94 lsr r4,0xf
48329 + *[0-9a-f]*: a1 9e lsr lr,0x1
48330 + *[0-9a-f]*: a1 90 lsr r0,0x1
48331 + *[0-9a-f]*: ab 88 lsr r8,0xa
48332 + *[0-9a-f]*: bb 87 lsr r7,0x1a
48333 +
48334 +[0-9a-f]* <sbr>:
48335 + *[0-9a-f]*: a1 af sbr pc,0x0
48336 + *[0-9a-f]*: bf bc sbr r12,0x1f
48337 + *[0-9a-f]*: b1 a5 sbr r5,0x10
48338 + *[0-9a-f]*: af b4 sbr r4,0xf
48339 + *[0-9a-f]*: a1 be sbr lr,0x1
48340 + *[0-9a-f]*: bf b8 sbr r8,0x1f
48341 + *[0-9a-f]*: b7 a6 sbr r6,0x16
48342 + *[0-9a-f]*: b7 b1 sbr r1,0x17
48343 +
48344 +[0-9a-f]* <cbr>:
48345 + *[0-9a-f]*: a1 cf cbr pc,0x0
48346 + *[0-9a-f]*: bf dc cbr r12,0x1f
48347 + *[0-9a-f]*: b1 c5 cbr r5,0x10
48348 + *[0-9a-f]*: af d4 cbr r4,0xf
48349 + *[0-9a-f]*: a1 de cbr lr,0x1
48350 + *[0-9a-f]*: ab cc cbr r12,0xa
48351 + *[0-9a-f]*: b7 c7 cbr r7,0x16
48352 + *[0-9a-f]*: a9 d8 cbr r8,0x9
48353 +
48354 +[0-9a-f]* <brc1>:
48355 + *[0-9a-f]*: c0 00 breq [0-9a-f]* <.*>
48356 + *[0-9a-f]*: cf f7 brpl [0-9a-f]* <.*>
48357 + *[0-9a-f]*: c8 04 brge [0-9a-f]* <.*>
48358 + *[0-9a-f]*: c7 f3 brcs [0-9a-f]* <.*>
48359 + *[0-9a-f]*: c0 11 brne [0-9a-f]* <.*>
48360 + *[0-9a-f]*: c7 33 brcs [0-9a-f]* <.*>
48361 + *[0-9a-f]*: cf 70 breq [0-9a-f]* <.*>
48362 + *[0-9a-f]*: c0 60 breq [0-9a-f]* <.*>
48363 +
48364 +[0-9a-f]* <rjmp>:
48365 + *[0-9a-f]*: c0 08 rjmp [0-9a-f]* <.*>
48366 + *[0-9a-f]*: cf fb rjmp [0-9a-f]* <.*>
48367 + *[0-9a-f]*: c0 0a rjmp [0-9a-f]* <.*>
48368 + *[0-9a-f]*: cf f9 rjmp [0-9a-f]* <.*>
48369 + *[0-9a-f]*: c0 18 rjmp [0-9a-f]* <.*>
48370 + *[0-9a-f]*: c1 fa rjmp [0-9a-f]* <.*>
48371 + *[0-9a-f]*: c0 78 rjmp [0-9a-f]* <.*>
48372 + *[0-9a-f]*: cf ea rjmp [0-9a-f]* <.*>
48373 +
48374 +[0-9a-f]* <rcall1>:
48375 + *[0-9a-f]*: c0 0c rcall [0-9a-f]* <.*>
48376 + *[0-9a-f]*: cf ff rcall [0-9a-f]* <.*>
48377 + *[0-9a-f]*: c0 0e rcall [0-9a-f]* <.*>
48378 + *[0-9a-f]*: cf fd rcall [0-9a-f]* <.*>
48379 + *[0-9a-f]*: c0 1c rcall [0-9a-f]* <.*>
48380 + *[0-9a-f]*: c6 cc rcall [0-9a-f]* <.*>
48381 + *[0-9a-f]*: cf 7e rcall [0-9a-f]* <.*>
48382 + *[0-9a-f]*: c1 ae rcall [0-9a-f]* <.*>
48383 +
48384 +[0-9a-f]* <acall>:
48385 + *[0-9a-f]*: d0 00 acall 0x0
48386 + *[0-9a-f]*: df f0 acall 0x3fc
48387 + *[0-9a-f]*: d8 00 acall 0x200
48388 + *[0-9a-f]*: d7 f0 acall 0x1fc
48389 + *[0-9a-f]*: d0 10 acall 0x4
48390 + *[0-9a-f]*: d5 90 acall 0x164
48391 + *[0-9a-f]*: d4 c0 acall 0x130
48392 + *[0-9a-f]*: d2 b0 acall 0xac
48393 +
48394 +[0-9a-f]* <scall>:
48395 + *[0-9a-f]*: d7 33 scall
48396 + *[0-9a-f]*: d7 33 scall
48397 + *[0-9a-f]*: d7 33 scall
48398 + *[0-9a-f]*: d7 33 scall
48399 + *[0-9a-f]*: d7 33 scall
48400 + *[0-9a-f]*: d7 33 scall
48401 + *[0-9a-f]*: d7 33 scall
48402 + *[0-9a-f]*: d7 33 scall
48403 +
48404 +[0-9a-f]* <popm>:
48405 + *[0-9a-f]*: d8 02 popm pc
48406 + *[0-9a-f]*: dd fa popm r0-r11,pc,r12=-1
48407 + *[0-9a-f]*: d4 02 popm lr
48408 + *[0-9a-f]*: db fa popm r0-r11,pc,r12=1
48409 + *[0-9a-f]*: d0 12 popm r0-r3
48410 + *[0-9a-f]*: d8 e2 popm r4-r10,pc
48411 + *[0-9a-f]*: d9 1a popm r0-r3,r11,pc,r12=0
48412 + *[0-9a-f]*: d7 b2 popm r0-r7,r10-r12,lr
48413 +
48414 +[0-9a-f]* <pushm>:
48415 + *[0-9a-f]*: d8 01 pushm pc
48416 + *[0-9a-f]*: df f1 pushm r0-r12,lr-pc
48417 + *[0-9a-f]*: d8 01 pushm pc
48418 + *[0-9a-f]*: d7 f1 pushm r0-r12,lr
48419 + *[0-9a-f]*: d0 11 pushm r0-r3
48420 + *[0-9a-f]*: dc c1 pushm r8-r10,lr-pc
48421 + *[0-9a-f]*: d0 91 pushm r0-r3,r10
48422 + *[0-9a-f]*: d2 41 pushm r8-r9,r12
48423 +
48424 +[0-9a-f]* <popm_n>:
48425 +.*
48426 +.*
48427 +.*
48428 +.*
48429 +.*
48430 +.*
48431 +.*
48432 +.*
48433 +
48434 +[0-9a-f]* <pushm_n>:
48435 +.*
48436 +.*
48437 +.*
48438 +.*
48439 +.*
48440 +.*
48441 +.*
48442 +.*
48443 +
48444 +[0-9a-f]* <csrfcz>:
48445 + *[0-9a-f]*: d0 03 csrfcz 0x0
48446 + *[0-9a-f]*: d1 f3 csrfcz 0x1f
48447 + *[0-9a-f]*: d1 03 csrfcz 0x10
48448 + *[0-9a-f]*: d0 f3 csrfcz 0xf
48449 + *[0-9a-f]*: d0 13 csrfcz 0x1
48450 + *[0-9a-f]*: d0 53 csrfcz 0x5
48451 + *[0-9a-f]*: d0 d3 csrfcz 0xd
48452 + *[0-9a-f]*: d1 73 csrfcz 0x17
48453 +
48454 +[0-9a-f]* <ssrf>:
48455 + *[0-9a-f]*: d2 03 ssrf 0x0
48456 + *[0-9a-f]*: d3 f3 ssrf 0x1f
48457 + *[0-9a-f]*: d3 03 ssrf 0x10
48458 + *[0-9a-f]*: d2 f3 ssrf 0xf
48459 + *[0-9a-f]*: d2 13 ssrf 0x1
48460 + *[0-9a-f]*: d3 d3 ssrf 0x1d
48461 + *[0-9a-f]*: d2 d3 ssrf 0xd
48462 + *[0-9a-f]*: d2 d3 ssrf 0xd
48463 +
48464 +[0-9a-f]* <csrf>:
48465 + *[0-9a-f]*: d4 03 csrf 0x0
48466 + *[0-9a-f]*: d5 f3 csrf 0x1f
48467 + *[0-9a-f]*: d5 03 csrf 0x10
48468 + *[0-9a-f]*: d4 f3 csrf 0xf
48469 + *[0-9a-f]*: d4 13 csrf 0x1
48470 + *[0-9a-f]*: d4 a3 csrf 0xa
48471 + *[0-9a-f]*: d4 f3 csrf 0xf
48472 + *[0-9a-f]*: d4 b3 csrf 0xb
48473 +
48474 +[0-9a-f]* <rete>:
48475 + *[0-9a-f]*: d6 03 rete
48476 +
48477 +[0-9a-f]* <rets>:
48478 + *[0-9a-f]*: d6 13 rets
48479 +
48480 +[0-9a-f]* <retd>:
48481 + *[0-9a-f]*: d6 23 retd
48482 +
48483 +[0-9a-f]* <retj>:
48484 + *[0-9a-f]*: d6 33 retj
48485 +
48486 +[0-9a-f]* <tlbr>:
48487 + *[0-9a-f]*: d6 43 tlbr
48488 +
48489 +[0-9a-f]* <tlbs>:
48490 + *[0-9a-f]*: d6 53 tlbs
48491 +
48492 +[0-9a-f]* <tlbw>:
48493 + *[0-9a-f]*: d6 63 tlbw
48494 +
48495 +[0-9a-f]* <breakpoint>:
48496 + *[0-9a-f]*: d6 73 breakpoint
48497 +
48498 +[0-9a-f]* <incjosp>:
48499 + *[0-9a-f]*: d6 83 incjosp 1
48500 + *[0-9a-f]*: d6 93 incjosp 2
48501 + *[0-9a-f]*: d6 a3 incjosp 3
48502 + *[0-9a-f]*: d6 b3 incjosp 4
48503 + *[0-9a-f]*: d6 c3 incjosp -4
48504 + *[0-9a-f]*: d6 d3 incjosp -3
48505 + *[0-9a-f]*: d6 e3 incjosp -2
48506 + *[0-9a-f]*: d6 f3 incjosp -1
48507 +
48508 +[0-9a-f]* <nop>:
48509 + *[0-9a-f]*: d7 03 nop
48510 +
48511 +[0-9a-f]* <popjc>:
48512 + *[0-9a-f]*: d7 13 popjc
48513 +
48514 +[0-9a-f]* <pushjc>:
48515 + *[0-9a-f]*: d7 23 pushjc
48516 +
48517 +[0-9a-f]* <add2>:
48518 + *[0-9a-f]*: fe 0f 00 0f add pc,pc,pc
48519 + *[0-9a-f]*: f8 0c 00 3c add r12,r12,r12<<0x3
48520 + *[0-9a-f]*: ea 05 00 25 add r5,r5,r5<<0x2
48521 + *[0-9a-f]*: e8 04 00 14 add r4,r4,r4<<0x1
48522 + *[0-9a-f]*: fc 0e 00 1e add lr,lr,lr<<0x1
48523 + *[0-9a-f]*: f8 00 00 10 add r0,r12,r0<<0x1
48524 + *[0-9a-f]*: f8 04 00 09 add r9,r12,r4
48525 + *[0-9a-f]*: f8 07 00 2c add r12,r12,r7<<0x2
48526 +
48527 +[0-9a-f]* <sub2>:
48528 + *[0-9a-f]*: fe 0f 01 0f sub pc,pc,pc
48529 + *[0-9a-f]*: f8 0c 01 3c sub r12,r12,r12<<0x3
48530 + *[0-9a-f]*: ea 05 01 25 sub r5,r5,r5<<0x2
48531 + *[0-9a-f]*: e8 04 01 14 sub r4,r4,r4<<0x1
48532 + *[0-9a-f]*: fc 0e 01 1e sub lr,lr,lr<<0x1
48533 + *[0-9a-f]*: e6 04 01 0d sub sp,r3,r4
48534 + *[0-9a-f]*: ee 03 01 03 sub r3,r7,r3
48535 + *[0-9a-f]*: f4 0d 01 1d sub sp,r10,sp<<0x1
48536 +
48537 +[0-9a-f]* <divu>:
48538 + *[0-9a-f]*: fe 0f 0d 0f divu pc,pc,pc
48539 + *[0-9a-f]*: f8 0c 0d 0c divu r12,r12,r12
48540 + *[0-9a-f]*: ea 05 0d 05 divu r5,r5,r5
48541 + *[0-9a-f]*: e8 04 0d 04 divu r4,r4,r4
48542 + *[0-9a-f]*: fc 0e 0d 0e divu lr,lr,lr
48543 + *[0-9a-f]*: e8 0f 0d 0d divu sp,r4,pc
48544 + *[0-9a-f]*: ea 0d 0d 05 divu r5,r5,sp
48545 + *[0-9a-f]*: fa 00 0d 0a divu r10,sp,r0
48546 +
48547 +[0-9a-f]* <addhh_w>:
48548 + *[0-9a-f]*: fe 0f 0e 0f addhh\.w pc,pc:b,pc:b
48549 + *[0-9a-f]*: f8 0c 0e 3c addhh\.w r12,r12:t,r12:t
48550 + *[0-9a-f]*: ea 05 0e 35 addhh\.w r5,r5:t,r5:t
48551 + *[0-9a-f]*: e8 04 0e 04 addhh\.w r4,r4:b,r4:b
48552 + *[0-9a-f]*: fc 0e 0e 3e addhh\.w lr,lr:t,lr:t
48553 + *[0-9a-f]*: e0 03 0e 00 addhh\.w r0,r0:b,r3:b
48554 + *[0-9a-f]*: f8 07 0e 2e addhh\.w lr,r12:t,r7:b
48555 + *[0-9a-f]*: f4 02 0e 23 addhh\.w r3,r10:t,r2:b
48556 +
48557 +[0-9a-f]* <subhh_w>:
48558 + *[0-9a-f]*: fe 0f 0f 0f subhh\.w pc,pc:b,pc:b
48559 + *[0-9a-f]*: f8 0c 0f 3c subhh\.w r12,r12:t,r12:t
48560 + *[0-9a-f]*: ea 05 0f 35 subhh\.w r5,r5:t,r5:t
48561 + *[0-9a-f]*: e8 04 0f 04 subhh\.w r4,r4:b,r4:b
48562 + *[0-9a-f]*: fc 0e 0f 3e subhh\.w lr,lr:t,lr:t
48563 + *[0-9a-f]*: e2 07 0f 2a subhh\.w r10,r1:t,r7:b
48564 + *[0-9a-f]*: f4 0e 0f 3f subhh\.w pc,r10:t,lr:t
48565 + *[0-9a-f]*: e0 0c 0f 23 subhh\.w r3,r0:t,r12:b
48566 +
48567 +[0-9a-f]* <adc>:
48568 + *[0-9a-f]*: fe 0f 00 4f adc pc,pc,pc
48569 + *[0-9a-f]*: f8 0c 00 4c adc r12,r12,r12
48570 + *[0-9a-f]*: ea 05 00 45 adc r5,r5,r5
48571 + *[0-9a-f]*: e8 04 00 44 adc r4,r4,r4
48572 + *[0-9a-f]*: fc 0e 00 4e adc lr,lr,lr
48573 + *[0-9a-f]*: e0 07 00 44 adc r4,r0,r7
48574 + *[0-9a-f]*: e8 03 00 4d adc sp,r4,r3
48575 + *[0-9a-f]*: f8 00 00 42 adc r2,r12,r0
48576 +
48577 +[0-9a-f]* <sbc>:
48578 + *[0-9a-f]*: fe 0f 01 4f sbc pc,pc,pc
48579 + *[0-9a-f]*: f8 0c 01 4c sbc r12,r12,r12
48580 + *[0-9a-f]*: ea 05 01 45 sbc r5,r5,r5
48581 + *[0-9a-f]*: e8 04 01 44 sbc r4,r4,r4
48582 + *[0-9a-f]*: fc 0e 01 4e sbc lr,lr,lr
48583 + *[0-9a-f]*: ee 09 01 46 sbc r6,r7,r9
48584 + *[0-9a-f]*: f0 05 01 40 sbc r0,r8,r5
48585 + *[0-9a-f]*: e0 04 01 41 sbc r1,r0,r4
48586 +
48587 +[0-9a-f]* <mul_2>:
48588 + *[0-9a-f]*: fe 0f 02 4f mul pc,pc,pc
48589 + *[0-9a-f]*: f8 0c 02 4c mul r12,r12,r12
48590 + *[0-9a-f]*: ea 05 02 45 mul r5,r5,r5
48591 + *[0-9a-f]*: e8 04 02 44 mul r4,r4,r4
48592 + *[0-9a-f]*: fc 0e 02 4e mul lr,lr,lr
48593 + *[0-9a-f]*: e0 00 02 4f mul pc,r0,r0
48594 + *[0-9a-f]*: fe 0e 02 48 mul r8,pc,lr
48595 + *[0-9a-f]*: f8 0f 02 44 mul r4,r12,pc
48596 +
48597 +[0-9a-f]* <mac>:
48598 + *[0-9a-f]*: fe 0f 03 4f mac pc,pc,pc
48599 + *[0-9a-f]*: f8 0c 03 4c mac r12,r12,r12
48600 + *[0-9a-f]*: ea 05 03 45 mac r5,r5,r5
48601 + *[0-9a-f]*: e8 04 03 44 mac r4,r4,r4
48602 + *[0-9a-f]*: fc 0e 03 4e mac lr,lr,lr
48603 + *[0-9a-f]*: e8 00 03 4a mac r10,r4,r0
48604 + *[0-9a-f]*: fc 00 03 47 mac r7,lr,r0
48605 + *[0-9a-f]*: f2 0c 03 42 mac r2,r9,r12
48606 +
48607 +[0-9a-f]* <mulsd>:
48608 + *[0-9a-f]*: fe 0f 04 4f muls\.d pc,pc,pc
48609 + *[0-9a-f]*: f8 0c 04 4c muls\.d r12,r12,r12
48610 + *[0-9a-f]*: ea 05 04 45 muls\.d r5,r5,r5
48611 + *[0-9a-f]*: e8 04 04 44 muls\.d r4,r4,r4
48612 + *[0-9a-f]*: fc 0e 04 4e muls\.d lr,lr,lr
48613 + *[0-9a-f]*: f0 0e 04 42 muls\.d r2,r8,lr
48614 + *[0-9a-f]*: e0 0b 04 44 muls\.d r4,r0,r11
48615 + *[0-9a-f]*: fc 06 04 45 muls\.d r5,lr,r6
48616 +
48617 +[0-9a-f]* <macsd>:
48618 + *[0-9a-f]*: fe 0f 05 40 macs\.d r0,pc,pc
48619 + *[0-9a-f]*: f8 0c 05 4e macs\.d lr,r12,r12
48620 + *[0-9a-f]*: ea 05 05 48 macs\.d r8,r5,r5
48621 + *[0-9a-f]*: e8 04 05 46 macs\.d r6,r4,r4
48622 + *[0-9a-f]*: fc 0e 05 42 macs\.d r2,lr,lr
48623 + *[0-9a-f]*: e2 09 05 48 macs\.d r8,r1,r9
48624 + *[0-9a-f]*: f0 08 05 4e macs\.d lr,r8,r8
48625 + *[0-9a-f]*: e6 0c 05 44 macs\.d r4,r3,r12
48626 +
48627 +[0-9a-f]* <mulud>:
48628 + *[0-9a-f]*: fe 0f 06 40 mulu\.d r0,pc,pc
48629 + *[0-9a-f]*: f8 0c 06 4e mulu\.d lr,r12,r12
48630 + *[0-9a-f]*: ea 05 06 48 mulu\.d r8,r5,r5
48631 + *[0-9a-f]*: e8 04 06 46 mulu\.d r6,r4,r4
48632 + *[0-9a-f]*: fc 0e 06 42 mulu\.d r2,lr,lr
48633 + *[0-9a-f]*: ea 00 06 46 mulu\.d r6,r5,r0
48634 + *[0-9a-f]*: ec 01 06 44 mulu\.d r4,r6,r1
48635 + *[0-9a-f]*: f0 02 06 48 mulu\.d r8,r8,r2
48636 +
48637 +[0-9a-f]* <macud>:
48638 + *[0-9a-f]*: fe 0f 07 40 macu\.d r0,pc,pc
48639 + *[0-9a-f]*: f8 0c 07 4e macu\.d lr,r12,r12
48640 + *[0-9a-f]*: ea 05 07 48 macu\.d r8,r5,r5
48641 + *[0-9a-f]*: e8 04 07 46 macu\.d r6,r4,r4
48642 + *[0-9a-f]*: fc 0e 07 42 macu\.d r2,lr,lr
48643 + *[0-9a-f]*: fa 0b 07 46 macu\.d r6,sp,r11
48644 + *[0-9a-f]*: e8 08 07 42 macu\.d r2,r4,r8
48645 + *[0-9a-f]*: f4 09 07 46 macu\.d r6,r10,r9
48646 +
48647 +[0-9a-f]* <asr_1>:
48648 + *[0-9a-f]*: fe 0f 08 4f asr pc,pc,pc
48649 + *[0-9a-f]*: f8 0c 08 4c asr r12,r12,r12
48650 + *[0-9a-f]*: ea 05 08 45 asr r5,r5,r5
48651 + *[0-9a-f]*: e8 04 08 44 asr r4,r4,r4
48652 + *[0-9a-f]*: fc 0e 08 4e asr lr,lr,lr
48653 + *[0-9a-f]*: ec 0f 08 4f asr pc,r6,pc
48654 + *[0-9a-f]*: ec 0c 08 40 asr r0,r6,r12
48655 + *[0-9a-f]*: fa 00 08 44 asr r4,sp,r0
48656 +
48657 +[0-9a-f]* <lsl_1>:
48658 + *[0-9a-f]*: fe 0f 09 4f lsl pc,pc,pc
48659 + *[0-9a-f]*: f8 0c 09 4c lsl r12,r12,r12
48660 + *[0-9a-f]*: ea 05 09 45 lsl r5,r5,r5
48661 + *[0-9a-f]*: e8 04 09 44 lsl r4,r4,r4
48662 + *[0-9a-f]*: fc 0e 09 4e lsl lr,lr,lr
48663 + *[0-9a-f]*: ea 0e 09 4e lsl lr,r5,lr
48664 + *[0-9a-f]*: fe 03 09 45 lsl r5,pc,r3
48665 + *[0-9a-f]*: fe 09 09 41 lsl r1,pc,r9
48666 +
48667 +[0-9a-f]* <lsr_1>:
48668 + *[0-9a-f]*: fe 0f 0a 4f lsr pc,pc,pc
48669 + *[0-9a-f]*: f8 0c 0a 4c lsr r12,r12,r12
48670 + *[0-9a-f]*: ea 05 0a 45 lsr r5,r5,r5
48671 + *[0-9a-f]*: e8 04 0a 44 lsr r4,r4,r4
48672 + *[0-9a-f]*: fc 0e 0a 4e lsr lr,lr,lr
48673 + *[0-9a-f]*: e8 01 0a 42 lsr r2,r4,r1
48674 + *[0-9a-f]*: e2 06 0a 45 lsr r5,r1,r6
48675 + *[0-9a-f]*: ec 07 0a 4d lsr sp,r6,r7
48676 +
48677 +[0-9a-f]* <xchg>:
48678 + *[0-9a-f]*: fe 0f 0b 4f xchg pc,pc,pc
48679 + *[0-9a-f]*: f8 0c 0b 4c xchg r12,r12,r12
48680 + *[0-9a-f]*: ea 05 0b 45 xchg r5,r5,r5
48681 + *[0-9a-f]*: e8 04 0b 44 xchg r4,r4,r4
48682 + *[0-9a-f]*: fc 0e 0b 4e xchg lr,lr,lr
48683 + *[0-9a-f]*: e8 0d 0b 4e xchg lr,r4,sp
48684 + *[0-9a-f]*: ea 0c 0b 41 xchg r1,r5,r12
48685 + *[0-9a-f]*: f8 00 0b 4e xchg lr,r12,r0
48686 +
48687 +[0-9a-f]* <max>:
48688 + *[0-9a-f]*: fe 0f 0c 4f max pc,pc,pc
48689 + *[0-9a-f]*: f8 0c 0c 4c max r12,r12,r12
48690 + *[0-9a-f]*: ea 05 0c 45 max r5,r5,r5
48691 + *[0-9a-f]*: e8 04 0c 44 max r4,r4,r4
48692 + *[0-9a-f]*: fc 0e 0c 4e max lr,lr,lr
48693 + *[0-9a-f]*: e4 0d 0c 4e max lr,r2,sp
48694 + *[0-9a-f]*: f4 09 0c 44 max r4,r10,r9
48695 + *[0-9a-f]*: f2 0e 0c 4e max lr,r9,lr
48696 +
48697 +[0-9a-f]* <min>:
48698 + *[0-9a-f]*: fe 0f 0d 4f min pc,pc,pc
48699 + *[0-9a-f]*: f8 0c 0d 4c min r12,r12,r12
48700 + *[0-9a-f]*: ea 05 0d 45 min r5,r5,r5
48701 + *[0-9a-f]*: e8 04 0d 44 min r4,r4,r4
48702 + *[0-9a-f]*: fc 0e 0d 4e min lr,lr,lr
48703 + *[0-9a-f]*: ee 08 0d 49 min r9,r7,r8
48704 + *[0-9a-f]*: ea 05 0d 4d min sp,r5,r5
48705 + *[0-9a-f]*: e2 04 0d 44 min r4,r1,r4
48706 +
48707 +[0-9a-f]* <addabs>:
48708 + *[0-9a-f]*: fe 0f 0e 4f addabs pc,pc,pc
48709 + *[0-9a-f]*: f8 0c 0e 4c addabs r12,r12,r12
48710 + *[0-9a-f]*: ea 05 0e 45 addabs r5,r5,r5
48711 + *[0-9a-f]*: e8 04 0e 44 addabs r4,r4,r4
48712 + *[0-9a-f]*: fc 0e 0e 4e addabs lr,lr,lr
48713 + *[0-9a-f]*: f4 00 0e 47 addabs r7,r10,r0
48714 + *[0-9a-f]*: f2 07 0e 49 addabs r9,r9,r7
48715 + *[0-9a-f]*: f0 0c 0e 42 addabs r2,r8,r12
48716 +
48717 +[0-9a-f]* <mulnhh_w>:
48718 + *[0-9a-f]*: fe 0f 01 8f mulnhh\.w pc,pc:b,pc:b
48719 + *[0-9a-f]*: f8 0c 01 bc mulnhh\.w r12,r12:t,r12:t
48720 + *[0-9a-f]*: ea 05 01 b5 mulnhh\.w r5,r5:t,r5:t
48721 + *[0-9a-f]*: e8 04 01 84 mulnhh\.w r4,r4:b,r4:b
48722 + *[0-9a-f]*: fc 0e 01 be mulnhh\.w lr,lr:t,lr:t
48723 + *[0-9a-f]*: fa 09 01 ab mulnhh\.w r11,sp:t,r9:b
48724 + *[0-9a-f]*: e8 0e 01 9d mulnhh\.w sp,r4:b,lr:t
48725 + *[0-9a-f]*: e4 0b 01 ac mulnhh\.w r12,r2:t,r11:b
48726 +
48727 +[0-9a-f]* <mulnwh_d>:
48728 + *[0-9a-f]*: fe 0f 02 80 mulnwh\.d r0,pc,pc:b
48729 + *[0-9a-f]*: f8 0c 02 9e mulnwh\.d lr,r12,r12:t
48730 + *[0-9a-f]*: ea 05 02 98 mulnwh\.d r8,r5,r5:t
48731 + *[0-9a-f]*: e8 04 02 86 mulnwh\.d r6,r4,r4:b
48732 + *[0-9a-f]*: fc 0e 02 92 mulnwh\.d r2,lr,lr:t
48733 + *[0-9a-f]*: e6 02 02 9e mulnwh\.d lr,r3,r2:t
48734 + *[0-9a-f]*: ea 09 02 84 mulnwh\.d r4,r5,r9:b
48735 + *[0-9a-f]*: e8 04 02 9c mulnwh\.d r12,r4,r4:t
48736 +
48737 +[0-9a-f]* <machh_w>:
48738 + *[0-9a-f]*: fe 0f 04 8f machh\.w pc,pc:b,pc:b
48739 + *[0-9a-f]*: f8 0c 04 bc machh\.w r12,r12:t,r12:t
48740 + *[0-9a-f]*: ea 05 04 b5 machh\.w r5,r5:t,r5:t
48741 + *[0-9a-f]*: e8 04 04 84 machh\.w r4,r4:b,r4:b
48742 + *[0-9a-f]*: fc 0e 04 be machh\.w lr,lr:t,lr:t
48743 + *[0-9a-f]*: ea 01 04 9e machh\.w lr,r5:b,r1:t
48744 + *[0-9a-f]*: ec 07 04 89 machh\.w r9,r6:b,r7:b
48745 + *[0-9a-f]*: fc 0c 04 a5 machh\.w r5,lr:t,r12:b
48746 +
48747 +[0-9a-f]* <machh_d>:
48748 + *[0-9a-f]*: fe 0f 05 80 machh\.d r0,pc:b,pc:b
48749 + *[0-9a-f]*: f8 0c 05 be machh\.d lr,r12:t,r12:t
48750 + *[0-9a-f]*: ea 05 05 b8 machh\.d r8,r5:t,r5:t
48751 + *[0-9a-f]*: e8 04 05 86 machh\.d r6,r4:b,r4:b
48752 + *[0-9a-f]*: fc 0e 05 b2 machh\.d r2,lr:t,lr:t
48753 + *[0-9a-f]*: e0 08 05 8a machh\.d r10,r0:b,r8:b
48754 + *[0-9a-f]*: e8 05 05 9e machh\.d lr,r4:b,r5:t
48755 + *[0-9a-f]*: e0 04 05 98 machh\.d r8,r0:b,r4:t
48756 +
48757 +[0-9a-f]* <macsathh_w>:
48758 + *[0-9a-f]*: fe 0f 06 8f macsathh\.w pc,pc:b,pc:b
48759 + *[0-9a-f]*: f8 0c 06 bc macsathh\.w r12,r12:t,r12:t
48760 + *[0-9a-f]*: ea 05 06 b5 macsathh\.w r5,r5:t,r5:t
48761 + *[0-9a-f]*: e8 04 06 84 macsathh\.w r4,r4:b,r4:b
48762 + *[0-9a-f]*: fc 0e 06 be macsathh\.w lr,lr:t,lr:t
48763 + *[0-9a-f]*: ee 0f 06 b7 macsathh\.w r7,r7:t,pc:t
48764 + *[0-9a-f]*: e4 04 06 a4 macsathh\.w r4,r2:t,r4:b
48765 + *[0-9a-f]*: f0 03 06 b4 macsathh\.w r4,r8:t,r3:t
48766 +
48767 +[0-9a-f]* <mulhh_w>:
48768 + *[0-9a-f]*: fe 0f 07 8f mulhh\.w pc,pc:b,pc:b
48769 + *[0-9a-f]*: f8 0c 07 bc mulhh\.w r12,r12:t,r12:t
48770 + *[0-9a-f]*: ea 05 07 b5 mulhh\.w r5,r5:t,r5:t
48771 + *[0-9a-f]*: e8 04 07 84 mulhh\.w r4,r4:b,r4:b
48772 + *[0-9a-f]*: fc 0e 07 be mulhh\.w lr,lr:t,lr:t
48773 + *[0-9a-f]*: e8 09 07 a7 mulhh\.w r7,r4:t,r9:b
48774 + *[0-9a-f]*: e6 07 07 bf mulhh\.w pc,r3:t,r7:t
48775 + *[0-9a-f]*: e8 09 07 9f mulhh\.w pc,r4:b,r9:t
48776 +
48777 +[0-9a-f]* <mulsathh_h>:
48778 + *[0-9a-f]*: fe 0f 08 8f mulsathh\.h pc,pc:b,pc:b
48779 + *[0-9a-f]*: f8 0c 08 bc mulsathh\.h r12,r12:t,r12:t
48780 + *[0-9a-f]*: ea 05 08 b5 mulsathh\.h r5,r5:t,r5:t
48781 + *[0-9a-f]*: e8 04 08 84 mulsathh\.h r4,r4:b,r4:b
48782 + *[0-9a-f]*: fc 0e 08 be mulsathh\.h lr,lr:t,lr:t
48783 + *[0-9a-f]*: e2 0d 08 83 mulsathh\.h r3,r1:b,sp:b
48784 + *[0-9a-f]*: fc 0b 08 ab mulsathh\.h r11,lr:t,r11:b
48785 + *[0-9a-f]*: f0 0b 08 98 mulsathh\.h r8,r8:b,r11:t
48786 +
48787 +[0-9a-f]* <mulsathh_w>:
48788 + *[0-9a-f]*: fe 0f 09 8f mulsathh\.w pc,pc:b,pc:b
48789 + *[0-9a-f]*: f8 0c 09 bc mulsathh\.w r12,r12:t,r12:t
48790 + *[0-9a-f]*: ea 05 09 b5 mulsathh\.w r5,r5:t,r5:t
48791 + *[0-9a-f]*: e8 04 09 84 mulsathh\.w r4,r4:b,r4:b
48792 + *[0-9a-f]*: fc 0e 09 be mulsathh\.w lr,lr:t,lr:t
48793 + *[0-9a-f]*: f6 06 09 ae mulsathh\.w lr,r11:t,r6:b
48794 + *[0-9a-f]*: ec 07 09 96 mulsathh\.w r6,r6:b,r7:t
48795 + *[0-9a-f]*: e4 03 09 8a mulsathh\.w r10,r2:b,r3:b
48796 +
48797 +[0-9a-f]* <mulsatrndhh_h>:
48798 + *[0-9a-f]*: fe 0f 0a 8f mulsatrndhh\.h pc,pc:b,pc:b
48799 + *[0-9a-f]*: f8 0c 0a bc mulsatrndhh\.h r12,r12:t,r12:t
48800 + *[0-9a-f]*: ea 05 0a b5 mulsatrndhh\.h r5,r5:t,r5:t
48801 + *[0-9a-f]*: e8 04 0a 84 mulsatrndhh\.h r4,r4:b,r4:b
48802 + *[0-9a-f]*: fc 0e 0a be mulsatrndhh\.h lr,lr:t,lr:t
48803 + *[0-9a-f]*: ec 09 0a 8b mulsatrndhh\.h r11,r6:b,r9:b
48804 + *[0-9a-f]*: e6 08 0a 9b mulsatrndhh\.h r11,r3:b,r8:t
48805 + *[0-9a-f]*: fa 07 0a b5 mulsatrndhh\.h r5,sp:t,r7:t
48806 +
48807 +[0-9a-f]* <mulsatrndwh_w>:
48808 + *[0-9a-f]*: fe 0f 0b 8f mulsatrndwh\.w pc,pc,pc:b
48809 + *[0-9a-f]*: f8 0c 0b 9c mulsatrndwh\.w r12,r12,r12:t
48810 + *[0-9a-f]*: ea 05 0b 95 mulsatrndwh\.w r5,r5,r5:t
48811 + *[0-9a-f]*: e8 04 0b 84 mulsatrndwh\.w r4,r4,r4:b
48812 + *[0-9a-f]*: fc 0e 0b 9e mulsatrndwh\.w lr,lr,lr:t
48813 + *[0-9a-f]*: f8 00 0b 85 mulsatrndwh\.w r5,r12,r0:b
48814 + *[0-9a-f]*: f4 0f 0b 87 mulsatrndwh\.w r7,r10,pc:b
48815 + *[0-9a-f]*: f0 05 0b 9a mulsatrndwh\.w r10,r8,r5:t
48816 +
48817 +[0-9a-f]* <macwh_d>:
48818 + *[0-9a-f]*: fe 0f 0c 80 macwh\.d r0,pc,pc:b
48819 + *[0-9a-f]*: f8 0c 0c 9e macwh\.d lr,r12,r12:t
48820 + *[0-9a-f]*: ea 05 0c 98 macwh\.d r8,r5,r5:t
48821 + *[0-9a-f]*: e8 04 0c 86 macwh\.d r6,r4,r4:b
48822 + *[0-9a-f]*: fc 0e 0c 92 macwh\.d r2,lr,lr:t
48823 + *[0-9a-f]*: f4 0c 0c 94 macwh\.d r4,r10,r12:t
48824 + *[0-9a-f]*: ee 0d 0c 84 macwh\.d r4,r7,sp:b
48825 + *[0-9a-f]*: f2 0b 0c 8e macwh\.d lr,r9,r11:b
48826 +
48827 +[0-9a-f]* <mulwh_d>:
48828 + *[0-9a-f]*: fe 0f 0d 80 mulwh\.d r0,pc,pc:b
48829 + *[0-9a-f]*: f8 0c 0d 9e mulwh\.d lr,r12,r12:t
48830 + *[0-9a-f]*: ea 05 0d 98 mulwh\.d r8,r5,r5:t
48831 + *[0-9a-f]*: e8 04 0d 86 mulwh\.d r6,r4,r4:b
48832 + *[0-9a-f]*: fc 0e 0d 92 mulwh\.d r2,lr,lr:t
48833 + *[0-9a-f]*: ea 01 0d 8c mulwh\.d r12,r5,r1:b
48834 + *[0-9a-f]*: e2 03 0d 90 mulwh\.d r0,r1,r3:t
48835 + *[0-9a-f]*: f2 02 0d 80 mulwh\.d r0,r9,r2:b
48836 +
48837 +[0-9a-f]* <mulsatwh_w>:
48838 + *[0-9a-f]*: fe 0f 0e 8f mulsatwh\.w pc,pc,pc:b
48839 + *[0-9a-f]*: f8 0c 0e 9c mulsatwh\.w r12,r12,r12:t
48840 + *[0-9a-f]*: ea 05 0e 95 mulsatwh\.w r5,r5,r5:t
48841 + *[0-9a-f]*: e8 04 0e 84 mulsatwh\.w r4,r4,r4:b
48842 + *[0-9a-f]*: fc 0e 0e 9e mulsatwh\.w lr,lr,lr:t
48843 + *[0-9a-f]*: fe 0a 0e 9b mulsatwh\.w r11,pc,r10:t
48844 + *[0-9a-f]*: f8 09 0e 9d mulsatwh\.w sp,r12,r9:t
48845 + *[0-9a-f]*: e6 02 0e 90 mulsatwh\.w r0,r3,r2:t
48846 +
48847 +[0-9a-f]* <ldw7>:
48848 + *[0-9a-f]*: fe 0f 0f 8f ld\.w pc,pc\[pc:b<<2\]
48849 + *[0-9a-f]*: f8 0c 0f bc ld\.w r12,r12\[r12:t<<2\]
48850 + *[0-9a-f]*: ea 05 0f a5 ld\.w r5,r5\[r5:u<<2\]
48851 + *[0-9a-f]*: e8 04 0f 94 ld\.w r4,r4\[r4:l<<2\]
48852 + *[0-9a-f]*: fc 0e 0f 9e ld\.w lr,lr\[lr:l<<2\]
48853 + *[0-9a-f]*: f4 06 0f 99 ld\.w r9,r10\[r6:l<<2\]
48854 + *[0-9a-f]*: f4 0a 0f 82 ld\.w r2,r10\[r10:b<<2\]
48855 + *[0-9a-f]*: ea 0f 0f 8b ld\.w r11,r5\[pc:b<<2\]
48856 +
48857 +[0-9a-f]* <satadd_w>:
48858 + *[0-9a-f]*: fe 0f 00 cf satadd\.w pc,pc,pc
48859 + *[0-9a-f]*: f8 0c 00 cc satadd\.w r12,r12,r12
48860 + *[0-9a-f]*: ea 05 00 c5 satadd\.w r5,r5,r5
48861 + *[0-9a-f]*: e8 04 00 c4 satadd\.w r4,r4,r4
48862 + *[0-9a-f]*: fc 0e 00 ce satadd\.w lr,lr,lr
48863 + *[0-9a-f]*: f0 0b 00 c4 satadd\.w r4,r8,r11
48864 + *[0-9a-f]*: f8 06 00 c3 satadd\.w r3,r12,r6
48865 + *[0-9a-f]*: fc 09 00 c3 satadd\.w r3,lr,r9
48866 +
48867 +[0-9a-f]* <satsub_w1>:
48868 + *[0-9a-f]*: fe 0f 01 cf satsub\.w pc,pc,pc
48869 + *[0-9a-f]*: f8 0c 01 cc satsub\.w r12,r12,r12
48870 + *[0-9a-f]*: ea 05 01 c5 satsub\.w r5,r5,r5
48871 + *[0-9a-f]*: e8 04 01 c4 satsub\.w r4,r4,r4
48872 + *[0-9a-f]*: fc 0e 01 ce satsub\.w lr,lr,lr
48873 + *[0-9a-f]*: fa 00 01 c8 satsub\.w r8,sp,r0
48874 + *[0-9a-f]*: f0 04 01 c9 satsub\.w r9,r8,r4
48875 + *[0-9a-f]*: fc 02 01 cf satsub\.w pc,lr,r2
48876 +
48877 +[0-9a-f]* <satadd_h>:
48878 + *[0-9a-f]*: fe 0f 02 cf satadd\.h pc,pc,pc
48879 + *[0-9a-f]*: f8 0c 02 cc satadd\.h r12,r12,r12
48880 + *[0-9a-f]*: ea 05 02 c5 satadd\.h r5,r5,r5
48881 + *[0-9a-f]*: e8 04 02 c4 satadd\.h r4,r4,r4
48882 + *[0-9a-f]*: fc 0e 02 ce satadd\.h lr,lr,lr
48883 + *[0-9a-f]*: e6 09 02 c7 satadd\.h r7,r3,r9
48884 + *[0-9a-f]*: e0 02 02 c1 satadd\.h r1,r0,r2
48885 + *[0-9a-f]*: e8 0e 02 c1 satadd\.h r1,r4,lr
48886 +
48887 +[0-9a-f]* <satsub_h>:
48888 + *[0-9a-f]*: fe 0f 03 cf satsub\.h pc,pc,pc
48889 + *[0-9a-f]*: f8 0c 03 cc satsub\.h r12,r12,r12
48890 + *[0-9a-f]*: ea 05 03 c5 satsub\.h r5,r5,r5
48891 + *[0-9a-f]*: e8 04 03 c4 satsub\.h r4,r4,r4
48892 + *[0-9a-f]*: fc 0e 03 ce satsub\.h lr,lr,lr
48893 + *[0-9a-f]*: fc 03 03 ce satsub\.h lr,lr,r3
48894 + *[0-9a-f]*: ec 05 03 cb satsub\.h r11,r6,r5
48895 + *[0-9a-f]*: fa 00 03 c3 satsub\.h r3,sp,r0
48896 +
48897 +[0-9a-f]* <mul3>:
48898 + *[0-9a-f]*: fe 0f 10 00 mul pc,pc,0
48899 + *[0-9a-f]*: f8 0c 10 ff mul r12,r12,-1
48900 + *[0-9a-f]*: ea 05 10 80 mul r5,r5,-128
48901 + *[0-9a-f]*: e8 04 10 7f mul r4,r4,127
48902 + *[0-9a-f]*: fc 0e 10 01 mul lr,lr,1
48903 + *[0-9a-f]*: e4 0c 10 f9 mul r12,r2,-7
48904 + *[0-9a-f]*: fe 01 10 5f mul r1,pc,95
48905 + *[0-9a-f]*: ec 04 10 13 mul r4,r6,19
48906 +
48907 +[0-9a-f]* <rsub2>:
48908 + *[0-9a-f]*: fe 0f 11 00 rsub pc,pc,0
48909 + *[0-9a-f]*: f8 0c 11 ff rsub r12,r12,-1
48910 + *[0-9a-f]*: ea 05 11 80 rsub r5,r5,-128
48911 + *[0-9a-f]*: e8 04 11 7f rsub r4,r4,127
48912 + *[0-9a-f]*: fc 0e 11 01 rsub lr,lr,1
48913 + *[0-9a-f]*: fc 09 11 60 rsub r9,lr,96
48914 + *[0-9a-f]*: e2 0b 11 38 rsub r11,r1,56
48915 + *[0-9a-f]*: ee 00 11 a9 rsub r0,r7,-87
48916 +
48917 +[0-9a-f]* <clz>:
48918 + *[0-9a-f]*: fe 0f 12 00 clz pc,pc
48919 + *[0-9a-f]*: f8 0c 12 00 clz r12,r12
48920 + *[0-9a-f]*: ea 05 12 00 clz r5,r5
48921 + *[0-9a-f]*: e8 04 12 00 clz r4,r4
48922 + *[0-9a-f]*: fc 0e 12 00 clz lr,lr
48923 + *[0-9a-f]*: e6 02 12 00 clz r2,r3
48924 + *[0-9a-f]*: f6 05 12 00 clz r5,r11
48925 + *[0-9a-f]*: e6 0f 12 00 clz pc,r3
48926 +
48927 +[0-9a-f]* <cpc1>:
48928 + *[0-9a-f]*: fe 0f 13 00 cpc pc,pc
48929 + *[0-9a-f]*: f8 0c 13 00 cpc r12,r12
48930 + *[0-9a-f]*: ea 05 13 00 cpc r5,r5
48931 + *[0-9a-f]*: e8 04 13 00 cpc r4,r4
48932 + *[0-9a-f]*: fc 0e 13 00 cpc lr,lr
48933 + *[0-9a-f]*: e8 0f 13 00 cpc pc,r4
48934 + *[0-9a-f]*: f2 05 13 00 cpc r5,r9
48935 + *[0-9a-f]*: ee 06 13 00 cpc r6,r7
48936 +
48937 +[0-9a-f]* <asr3>:
48938 + *[0-9a-f]*: fe 0f 14 00 asr pc,pc,0x0
48939 + *[0-9a-f]*: f8 0c 14 1f asr r12,r12,0x1f
48940 + *[0-9a-f]*: ea 05 14 10 asr r5,r5,0x10
48941 + *[0-9a-f]*: e8 04 14 0f asr r4,r4,0xf
48942 + *[0-9a-f]*: fc 0e 14 01 asr lr,lr,0x1
48943 + *[0-9a-f]*: f6 04 14 13 asr r4,r11,0x13
48944 + *[0-9a-f]*: fe 0d 14 1a asr sp,pc,0x1a
48945 + *[0-9a-f]*: fa 0b 14 08 asr r11,sp,0x8
48946 +
48947 +[0-9a-f]* <lsl3>:
48948 + *[0-9a-f]*: fe 0f 15 00 lsl pc,pc,0x0
48949 + *[0-9a-f]*: f8 0c 15 1f lsl r12,r12,0x1f
48950 + *[0-9a-f]*: ea 05 15 10 lsl r5,r5,0x10
48951 + *[0-9a-f]*: e8 04 15 0f lsl r4,r4,0xf
48952 + *[0-9a-f]*: fc 0e 15 01 lsl lr,lr,0x1
48953 + *[0-9a-f]*: f4 08 15 11 lsl r8,r10,0x11
48954 + *[0-9a-f]*: fc 02 15 03 lsl r2,lr,0x3
48955 + *[0-9a-f]*: f6 0e 15 0e lsl lr,r11,0xe
48956 +
48957 +[0-9a-f]* <lsr3>:
48958 + *[0-9a-f]*: fe 0f 16 00 lsr pc,pc,0x0
48959 + *[0-9a-f]*: f8 0c 16 1f lsr r12,r12,0x1f
48960 + *[0-9a-f]*: ea 05 16 10 lsr r5,r5,0x10
48961 + *[0-9a-f]*: e8 04 16 0f lsr r4,r4,0xf
48962 + *[0-9a-f]*: fc 0e 16 01 lsr lr,lr,0x1
48963 + *[0-9a-f]*: e6 04 16 1f lsr r4,r3,0x1f
48964 + *[0-9a-f]*: f2 0f 16 0e lsr pc,r9,0xe
48965 + *[0-9a-f]*: e0 03 16 06 lsr r3,r0,0x6
48966 +
48967 +[0-9a-f]* <movc1>:
48968 + *[0-9a-f]*: fe 0f 17 00 moveq pc,pc
48969 + *[0-9a-f]*: f8 0c 17 f0 moval r12,r12
48970 + *[0-9a-f]*: ea 05 17 80 movls r5,r5
48971 + *[0-9a-f]*: e8 04 17 70 movpl r4,r4
48972 + *[0-9a-f]*: fc 0e 17 10 movne lr,lr
48973 + *[0-9a-f]*: f6 0f 17 10 movne pc,r11
48974 + *[0-9a-f]*: e4 0a 17 60 movmi r10,r2
48975 + *[0-9a-f]*: f8 08 17 80 movls r8,r12
48976 +
48977 +[0-9a-f]* <padd_h>:
48978 + *[0-9a-f]*: fe 0f 20 0f padd\.h pc,pc,pc
48979 + *[0-9a-f]*: f8 0c 20 0c padd\.h r12,r12,r12
48980 + *[0-9a-f]*: ea 05 20 05 padd\.h r5,r5,r5
48981 + *[0-9a-f]*: e8 04 20 04 padd\.h r4,r4,r4
48982 + *[0-9a-f]*: fc 0e 20 0e padd\.h lr,lr,lr
48983 + *[0-9a-f]*: e4 07 20 08 padd\.h r8,r2,r7
48984 + *[0-9a-f]*: e0 03 20 00 padd\.h r0,r0,r3
48985 + *[0-9a-f]*: f6 06 20 0d padd\.h sp,r11,r6
48986 +
48987 +[0-9a-f]* <psub_h>:
48988 + *[0-9a-f]*: fe 0f 20 1f psub\.h pc,pc,pc
48989 + *[0-9a-f]*: f8 0c 20 1c psub\.h r12,r12,r12
48990 + *[0-9a-f]*: ea 05 20 15 psub\.h r5,r5,r5
48991 + *[0-9a-f]*: e8 04 20 14 psub\.h r4,r4,r4
48992 + *[0-9a-f]*: fc 0e 20 1e psub\.h lr,lr,lr
48993 + *[0-9a-f]*: ec 08 20 1e psub\.h lr,r6,r8
48994 + *[0-9a-f]*: e2 0d 20 10 psub\.h r0,r1,sp
48995 + *[0-9a-f]*: fe 0d 20 1f psub\.h pc,pc,sp
48996 +
48997 +[0-9a-f]* <paddx_h>:
48998 + *[0-9a-f]*: fe 0f 20 2f paddx\.h pc,pc,pc
48999 + *[0-9a-f]*: f8 0c 20 2c paddx\.h r12,r12,r12
49000 + *[0-9a-f]*: ea 05 20 25 paddx\.h r5,r5,r5
49001 + *[0-9a-f]*: e8 04 20 24 paddx\.h r4,r4,r4
49002 + *[0-9a-f]*: fc 0e 20 2e paddx\.h lr,lr,lr
49003 + *[0-9a-f]*: fe 01 20 2f paddx\.h pc,pc,r1
49004 + *[0-9a-f]*: e8 05 20 2a paddx\.h r10,r4,r5
49005 + *[0-9a-f]*: fe 02 20 25 paddx\.h r5,pc,r2
49006 +
49007 +[0-9a-f]* <psubx_h>:
49008 + *[0-9a-f]*: fe 0f 20 3f psubx\.h pc,pc,pc
49009 + *[0-9a-f]*: f8 0c 20 3c psubx\.h r12,r12,r12
49010 + *[0-9a-f]*: ea 05 20 35 psubx\.h r5,r5,r5
49011 + *[0-9a-f]*: e8 04 20 34 psubx\.h r4,r4,r4
49012 + *[0-9a-f]*: fc 0e 20 3e psubx\.h lr,lr,lr
49013 + *[0-9a-f]*: f8 05 20 35 psubx\.h r5,r12,r5
49014 + *[0-9a-f]*: f0 03 20 33 psubx\.h r3,r8,r3
49015 + *[0-9a-f]*: e4 03 20 35 psubx\.h r5,r2,r3
49016 +
49017 +[0-9a-f]* <padds_sh>:
49018 + *[0-9a-f]*: fe 0f 20 4f padds\.sh pc,pc,pc
49019 + *[0-9a-f]*: f8 0c 20 4c padds\.sh r12,r12,r12
49020 + *[0-9a-f]*: ea 05 20 45 padds\.sh r5,r5,r5
49021 + *[0-9a-f]*: e8 04 20 44 padds\.sh r4,r4,r4
49022 + *[0-9a-f]*: fc 0e 20 4e padds\.sh lr,lr,lr
49023 + *[0-9a-f]*: fc 02 20 49 padds\.sh r9,lr,r2
49024 + *[0-9a-f]*: f0 01 20 46 padds\.sh r6,r8,r1
49025 + *[0-9a-f]*: e8 0a 20 46 padds\.sh r6,r4,r10
49026 +
49027 +[0-9a-f]* <psubs_sh>:
49028 + *[0-9a-f]*: fe 0f 20 5f psubs\.sh pc,pc,pc
49029 + *[0-9a-f]*: f8 0c 20 5c psubs\.sh r12,r12,r12
49030 + *[0-9a-f]*: ea 05 20 55 psubs\.sh r5,r5,r5
49031 + *[0-9a-f]*: e8 04 20 54 psubs\.sh r4,r4,r4
49032 + *[0-9a-f]*: fc 0e 20 5e psubs\.sh lr,lr,lr
49033 + *[0-9a-f]*: fc 0b 20 56 psubs\.sh r6,lr,r11
49034 + *[0-9a-f]*: f8 04 20 52 psubs\.sh r2,r12,r4
49035 + *[0-9a-f]*: f2 00 20 50 psubs\.sh r0,r9,r0
49036 +
49037 +[0-9a-f]* <paddxs_sh>:
49038 + *[0-9a-f]*: fe 0f 20 6f paddxs\.sh pc,pc,pc
49039 + *[0-9a-f]*: f8 0c 20 6c paddxs\.sh r12,r12,r12
49040 + *[0-9a-f]*: ea 05 20 65 paddxs\.sh r5,r5,r5
49041 + *[0-9a-f]*: e8 04 20 64 paddxs\.sh r4,r4,r4
49042 + *[0-9a-f]*: fc 0e 20 6e paddxs\.sh lr,lr,lr
49043 + *[0-9a-f]*: e6 09 20 60 paddxs\.sh r0,r3,r9
49044 + *[0-9a-f]*: f4 0b 20 6f paddxs\.sh pc,r10,r11
49045 + *[0-9a-f]*: f4 0f 20 6f paddxs\.sh pc,r10,pc
49046 +
49047 +[0-9a-f]* <psubxs_sh>:
49048 + *[0-9a-f]*: fe 0f 20 7f psubxs\.sh pc,pc,pc
49049 + *[0-9a-f]*: f8 0c 20 7c psubxs\.sh r12,r12,r12
49050 + *[0-9a-f]*: ea 05 20 75 psubxs\.sh r5,r5,r5
49051 + *[0-9a-f]*: e8 04 20 74 psubxs\.sh r4,r4,r4
49052 + *[0-9a-f]*: fc 0e 20 7e psubxs\.sh lr,lr,lr
49053 + *[0-9a-f]*: e8 04 20 77 psubxs\.sh r7,r4,r4
49054 + *[0-9a-f]*: f0 03 20 77 psubxs\.sh r7,r8,r3
49055 + *[0-9a-f]*: ec 05 20 7f psubxs\.sh pc,r6,r5
49056 +
49057 +[0-9a-f]* <padds_uh>:
49058 + *[0-9a-f]*: fe 0f 20 8f padds\.uh pc,pc,pc
49059 + *[0-9a-f]*: f8 0c 20 8c padds\.uh r12,r12,r12
49060 + *[0-9a-f]*: ea 05 20 85 padds\.uh r5,r5,r5
49061 + *[0-9a-f]*: e8 04 20 84 padds\.uh r4,r4,r4
49062 + *[0-9a-f]*: fc 0e 20 8e padds\.uh lr,lr,lr
49063 + *[0-9a-f]*: f6 07 20 8c padds\.uh r12,r11,r7
49064 + *[0-9a-f]*: f0 0e 20 87 padds\.uh r7,r8,lr
49065 + *[0-9a-f]*: f2 07 20 86 padds\.uh r6,r9,r7
49066 +
49067 +[0-9a-f]* <psubs_uh>:
49068 + *[0-9a-f]*: fe 0f 20 9f psubs\.uh pc,pc,pc
49069 + *[0-9a-f]*: f8 0c 20 9c psubs\.uh r12,r12,r12
49070 + *[0-9a-f]*: ea 05 20 95 psubs\.uh r5,r5,r5
49071 + *[0-9a-f]*: e8 04 20 94 psubs\.uh r4,r4,r4
49072 + *[0-9a-f]*: fc 0e 20 9e psubs\.uh lr,lr,lr
49073 + *[0-9a-f]*: f4 06 20 9e psubs\.uh lr,r10,r6
49074 + *[0-9a-f]*: e4 0f 20 9d psubs\.uh sp,r2,pc
49075 + *[0-9a-f]*: f2 02 20 92 psubs\.uh r2,r9,r2
49076 +
49077 +[0-9a-f]* <paddxs_uh>:
49078 + *[0-9a-f]*: fe 0f 20 af paddxs\.uh pc,pc,pc
49079 + *[0-9a-f]*: f8 0c 20 ac paddxs\.uh r12,r12,r12
49080 + *[0-9a-f]*: ea 05 20 a5 paddxs\.uh r5,r5,r5
49081 + *[0-9a-f]*: e8 04 20 a4 paddxs\.uh r4,r4,r4
49082 + *[0-9a-f]*: fc 0e 20 ae paddxs\.uh lr,lr,lr
49083 + *[0-9a-f]*: f2 05 20 a7 paddxs\.uh r7,r9,r5
49084 + *[0-9a-f]*: e2 04 20 a9 paddxs\.uh r9,r1,r4
49085 + *[0-9a-f]*: e4 03 20 a5 paddxs\.uh r5,r2,r3
49086 +
49087 +[0-9a-f]* <psubxs_uh>:
49088 + *[0-9a-f]*: fe 0f 20 bf psubxs\.uh pc,pc,pc
49089 + *[0-9a-f]*: f8 0c 20 bc psubxs\.uh r12,r12,r12
49090 + *[0-9a-f]*: ea 05 20 b5 psubxs\.uh r5,r5,r5
49091 + *[0-9a-f]*: e8 04 20 b4 psubxs\.uh r4,r4,r4
49092 + *[0-9a-f]*: fc 0e 20 be psubxs\.uh lr,lr,lr
49093 + *[0-9a-f]*: ea 0d 20 bd psubxs\.uh sp,r5,sp
49094 + *[0-9a-f]*: ec 06 20 bd psubxs\.uh sp,r6,r6
49095 + *[0-9a-f]*: f6 08 20 b3 psubxs\.uh r3,r11,r8
49096 +
49097 +[0-9a-f]* <paddh_sh>:
49098 + *[0-9a-f]*: fe 0f 20 cf paddh\.sh pc,pc,pc
49099 + *[0-9a-f]*: f8 0c 20 cc paddh\.sh r12,r12,r12
49100 + *[0-9a-f]*: ea 05 20 c5 paddh\.sh r5,r5,r5
49101 + *[0-9a-f]*: e8 04 20 c4 paddh\.sh r4,r4,r4
49102 + *[0-9a-f]*: fc 0e 20 ce paddh\.sh lr,lr,lr
49103 + *[0-9a-f]*: fa 03 20 cc paddh\.sh r12,sp,r3
49104 + *[0-9a-f]*: ea 03 20 cf paddh\.sh pc,r5,r3
49105 + *[0-9a-f]*: f0 0d 20 c8 paddh\.sh r8,r8,sp
49106 +
49107 +[0-9a-f]* <psubh_sh>:
49108 + *[0-9a-f]*: fe 0f 20 df psubh\.sh pc,pc,pc
49109 + *[0-9a-f]*: f8 0c 20 dc psubh\.sh r12,r12,r12
49110 + *[0-9a-f]*: ea 05 20 d5 psubh\.sh r5,r5,r5
49111 + *[0-9a-f]*: e8 04 20 d4 psubh\.sh r4,r4,r4
49112 + *[0-9a-f]*: fc 0e 20 de psubh\.sh lr,lr,lr
49113 + *[0-9a-f]*: ea 08 20 d1 psubh\.sh r1,r5,r8
49114 + *[0-9a-f]*: e6 06 20 d7 psubh\.sh r7,r3,r6
49115 + *[0-9a-f]*: e6 03 20 d4 psubh\.sh r4,r3,r3
49116 +
49117 +[0-9a-f]* <paddxh_sh>:
49118 + *[0-9a-f]*: fe 0f 20 ef paddxh\.sh pc,pc,pc
49119 + *[0-9a-f]*: f8 0c 20 ec paddxh\.sh r12,r12,r12
49120 + *[0-9a-f]*: ea 05 20 e5 paddxh\.sh r5,r5,r5
49121 + *[0-9a-f]*: e8 04 20 e4 paddxh\.sh r4,r4,r4
49122 + *[0-9a-f]*: fc 0e 20 ee paddxh\.sh lr,lr,lr
49123 + *[0-9a-f]*: e0 04 20 e6 paddxh\.sh r6,r0,r4
49124 + *[0-9a-f]*: f0 09 20 e9 paddxh\.sh r9,r8,r9
49125 + *[0-9a-f]*: e0 0d 20 e3 paddxh\.sh r3,r0,sp
49126 +
49127 +[0-9a-f]* <psubxh_sh>:
49128 + *[0-9a-f]*: fe 0f 20 ff psubxh\.sh pc,pc,pc
49129 + *[0-9a-f]*: f8 0c 20 fc psubxh\.sh r12,r12,r12
49130 + *[0-9a-f]*: ea 05 20 f5 psubxh\.sh r5,r5,r5
49131 + *[0-9a-f]*: e8 04 20 f4 psubxh\.sh r4,r4,r4
49132 + *[0-9a-f]*: fc 0e 20 fe psubxh\.sh lr,lr,lr
49133 + *[0-9a-f]*: fe 0c 20 f4 psubxh\.sh r4,pc,r12
49134 + *[0-9a-f]*: e8 06 20 f8 psubxh\.sh r8,r4,r6
49135 + *[0-9a-f]*: f2 04 20 fc psubxh\.sh r12,r9,r4
49136 +
49137 +[0-9a-f]* <paddsub_h>:
49138 + *[0-9a-f]*: fe 0f 21 0f paddsub\.h pc,pc:b,pc:b
49139 + *[0-9a-f]*: f8 0c 21 3c paddsub\.h r12,r12:t,r12:t
49140 + *[0-9a-f]*: ea 05 21 35 paddsub\.h r5,r5:t,r5:t
49141 + *[0-9a-f]*: e8 04 21 04 paddsub\.h r4,r4:b,r4:b
49142 + *[0-9a-f]*: fc 0e 21 3e paddsub\.h lr,lr:t,lr:t
49143 + *[0-9a-f]*: e4 0e 21 25 paddsub\.h r5,r2:t,lr:b
49144 + *[0-9a-f]*: e2 08 21 07 paddsub\.h r7,r1:b,r8:b
49145 + *[0-9a-f]*: f4 05 21 36 paddsub\.h r6,r10:t,r5:t
49146 +
49147 +[0-9a-f]* <psubadd_h>:
49148 + *[0-9a-f]*: fe 0f 21 4f psubadd\.h pc,pc:b,pc:b
49149 + *[0-9a-f]*: f8 0c 21 7c psubadd\.h r12,r12:t,r12:t
49150 + *[0-9a-f]*: ea 05 21 75 psubadd\.h r5,r5:t,r5:t
49151 + *[0-9a-f]*: e8 04 21 44 psubadd\.h r4,r4:b,r4:b
49152 + *[0-9a-f]*: fc 0e 21 7e psubadd\.h lr,lr:t,lr:t
49153 + *[0-9a-f]*: f6 08 21 79 psubadd\.h r9,r11:t,r8:t
49154 + *[0-9a-f]*: ee 0e 21 7a psubadd\.h r10,r7:t,lr:t
49155 + *[0-9a-f]*: fe 0f 21 66 psubadd\.h r6,pc:t,pc:b
49156 +
49157 +[0-9a-f]* <paddsubs_sh>:
49158 + *[0-9a-f]*: fe 0f 21 8f paddsubs\.sh pc,pc:b,pc:b
49159 + *[0-9a-f]*: f8 0c 21 bc paddsubs\.sh r12,r12:t,r12:t
49160 + *[0-9a-f]*: ea 05 21 b5 paddsubs\.sh r5,r5:t,r5:t
49161 + *[0-9a-f]*: e8 04 21 84 paddsubs\.sh r4,r4:b,r4:b
49162 + *[0-9a-f]*: fc 0e 21 be paddsubs\.sh lr,lr:t,lr:t
49163 + *[0-9a-f]*: fc 00 21 a0 paddsubs\.sh r0,lr:t,r0:b
49164 + *[0-9a-f]*: e4 04 21 b9 paddsubs\.sh r9,r2:t,r4:t
49165 + *[0-9a-f]*: f2 0d 21 bc paddsubs\.sh r12,r9:t,sp:t
49166 +
49167 +[0-9a-f]* <psubadds_sh>:
49168 + *[0-9a-f]*: fe 0f 21 cf psubadds\.sh pc,pc:b,pc:b
49169 + *[0-9a-f]*: f8 0c 21 fc psubadds\.sh r12,r12:t,r12:t
49170 + *[0-9a-f]*: ea 05 21 f5 psubadds\.sh r5,r5:t,r5:t
49171 + *[0-9a-f]*: e8 04 21 c4 psubadds\.sh r4,r4:b,r4:b
49172 + *[0-9a-f]*: fc 0e 21 fe psubadds\.sh lr,lr:t,lr:t
49173 + *[0-9a-f]*: fc 01 21 df psubadds\.sh pc,lr:b,r1:t
49174 + *[0-9a-f]*: e6 0c 21 cb psubadds\.sh r11,r3:b,r12:b
49175 + *[0-9a-f]*: e4 08 21 fa psubadds\.sh r10,r2:t,r8:t
49176 +
49177 +[0-9a-f]* <paddsubs_uh>:
49178 + *[0-9a-f]*: fe 0f 22 0f paddsubs\.uh pc,pc:b,pc:b
49179 + *[0-9a-f]*: f8 0c 22 3c paddsubs\.uh r12,r12:t,r12:t
49180 + *[0-9a-f]*: ea 05 22 35 paddsubs\.uh r5,r5:t,r5:t
49181 + *[0-9a-f]*: e8 04 22 04 paddsubs\.uh r4,r4:b,r4:b
49182 + *[0-9a-f]*: fc 0e 22 3e paddsubs\.uh lr,lr:t,lr:t
49183 + *[0-9a-f]*: e4 03 22 09 paddsubs\.uh r9,r2:b,r3:b
49184 + *[0-9a-f]*: fa 07 22 1d paddsubs\.uh sp,sp:b,r7:t
49185 + *[0-9a-f]*: e0 0a 22 1e paddsubs\.uh lr,r0:b,r10:t
49186 +
49187 +[0-9a-f]* <psubadds_uh>:
49188 + *[0-9a-f]*: fe 0f 22 4f psubadds\.uh pc,pc:b,pc:b
49189 + *[0-9a-f]*: f8 0c 22 7c psubadds\.uh r12,r12:t,r12:t
49190 + *[0-9a-f]*: ea 05 22 75 psubadds\.uh r5,r5:t,r5:t
49191 + *[0-9a-f]*: e8 04 22 44 psubadds\.uh r4,r4:b,r4:b
49192 + *[0-9a-f]*: fc 0e 22 7e psubadds\.uh lr,lr:t,lr:t
49193 + *[0-9a-f]*: f2 0f 22 7c psubadds\.uh r12,r9:t,pc:t
49194 + *[0-9a-f]*: ec 08 22 48 psubadds\.uh r8,r6:b,r8:b
49195 + *[0-9a-f]*: f0 04 22 48 psubadds\.uh r8,r8:b,r4:b
49196 +
49197 +[0-9a-f]* <paddsubh_sh>:
49198 + *[0-9a-f]*: fe 0f 22 8f paddsubh\.sh pc,pc:b,pc:b
49199 + *[0-9a-f]*: f8 0c 22 bc paddsubh\.sh r12,r12:t,r12:t
49200 + *[0-9a-f]*: ea 05 22 b5 paddsubh\.sh r5,r5:t,r5:t
49201 + *[0-9a-f]*: e8 04 22 84 paddsubh\.sh r4,r4:b,r4:b
49202 + *[0-9a-f]*: fc 0e 22 be paddsubh\.sh lr,lr:t,lr:t
49203 + *[0-9a-f]*: f2 09 22 a8 paddsubh\.sh r8,r9:t,r9:b
49204 + *[0-9a-f]*: fa 01 22 b0 paddsubh\.sh r0,sp:t,r1:t
49205 + *[0-9a-f]*: e2 00 22 93 paddsubh\.sh r3,r1:b,r0:t
49206 +
49207 +[0-9a-f]* <psubaddh_sh>:
49208 + *[0-9a-f]*: fe 0f 22 cf psubaddh\.sh pc,pc:b,pc:b
49209 + *[0-9a-f]*: f8 0c 22 fc psubaddh\.sh r12,r12:t,r12:t
49210 + *[0-9a-f]*: ea 05 22 f5 psubaddh\.sh r5,r5:t,r5:t
49211 + *[0-9a-f]*: e8 04 22 c4 psubaddh\.sh r4,r4:b,r4:b
49212 + *[0-9a-f]*: fc 0e 22 fe psubaddh\.sh lr,lr:t,lr:t
49213 + *[0-9a-f]*: e6 0a 22 e7 psubaddh\.sh r7,r3:t,r10:b
49214 + *[0-9a-f]*: e4 01 22 f7 psubaddh\.sh r7,r2:t,r1:t
49215 + *[0-9a-f]*: e6 06 22 cb psubaddh\.sh r11,r3:b,r6:b
49216 +
49217 +[0-9a-f]* <padd_b>:
49218 + *[0-9a-f]*: fe 0f 23 0f padd\.b pc,pc,pc
49219 + *[0-9a-f]*: f8 0c 23 0c padd\.b r12,r12,r12
49220 + *[0-9a-f]*: ea 05 23 05 padd\.b r5,r5,r5
49221 + *[0-9a-f]*: e8 04 23 04 padd\.b r4,r4,r4
49222 + *[0-9a-f]*: fc 0e 23 0e padd\.b lr,lr,lr
49223 + *[0-9a-f]*: ec 0f 23 02 padd\.b r2,r6,pc
49224 + *[0-9a-f]*: f2 0c 23 08 padd\.b r8,r9,r12
49225 + *[0-9a-f]*: f8 03 23 05 padd\.b r5,r12,r3
49226 +
49227 +[0-9a-f]* <psub_b>:
49228 + *[0-9a-f]*: fe 0f 23 1f psub\.b pc,pc,pc
49229 + *[0-9a-f]*: f8 0c 23 1c psub\.b r12,r12,r12
49230 + *[0-9a-f]*: ea 05 23 15 psub\.b r5,r5,r5
49231 + *[0-9a-f]*: e8 04 23 14 psub\.b r4,r4,r4
49232 + *[0-9a-f]*: fc 0e 23 1e psub\.b lr,lr,lr
49233 + *[0-9a-f]*: f8 0f 23 10 psub\.b r0,r12,pc
49234 + *[0-9a-f]*: fa 0a 23 17 psub\.b r7,sp,r10
49235 + *[0-9a-f]*: fa 0c 23 15 psub\.b r5,sp,r12
49236 +
49237 +[0-9a-f]* <padds_sb>:
49238 + *[0-9a-f]*: fe 0f 23 2f padds\.sb pc,pc,pc
49239 + *[0-9a-f]*: f8 0c 23 2c padds\.sb r12,r12,r12
49240 + *[0-9a-f]*: ea 05 23 25 padds\.sb r5,r5,r5
49241 + *[0-9a-f]*: e8 04 23 24 padds\.sb r4,r4,r4
49242 + *[0-9a-f]*: fc 0e 23 2e padds\.sb lr,lr,lr
49243 + *[0-9a-f]*: f6 04 23 2d padds\.sb sp,r11,r4
49244 + *[0-9a-f]*: f4 0b 23 2b padds\.sb r11,r10,r11
49245 + *[0-9a-f]*: f8 06 23 25 padds\.sb r5,r12,r6
49246 +
49247 +[0-9a-f]* <psubs_sb>:
49248 + *[0-9a-f]*: fe 0f 23 3f psubs\.sb pc,pc,pc
49249 + *[0-9a-f]*: f8 0c 23 3c psubs\.sb r12,r12,r12
49250 + *[0-9a-f]*: ea 05 23 35 psubs\.sb r5,r5,r5
49251 + *[0-9a-f]*: e8 04 23 34 psubs\.sb r4,r4,r4
49252 + *[0-9a-f]*: fc 0e 23 3e psubs\.sb lr,lr,lr
49253 + *[0-9a-f]*: ec 08 23 37 psubs\.sb r7,r6,r8
49254 + *[0-9a-f]*: f4 09 23 3c psubs\.sb r12,r10,r9
49255 + *[0-9a-f]*: f6 00 23 3f psubs\.sb pc,r11,r0
49256 +
49257 +[0-9a-f]* <padds_ub>:
49258 + *[0-9a-f]*: fe 0f 23 4f padds\.ub pc,pc,pc
49259 + *[0-9a-f]*: f8 0c 23 4c padds\.ub r12,r12,r12
49260 + *[0-9a-f]*: ea 05 23 45 padds\.ub r5,r5,r5
49261 + *[0-9a-f]*: e8 04 23 44 padds\.ub r4,r4,r4
49262 + *[0-9a-f]*: fc 0e 23 4e padds\.ub lr,lr,lr
49263 + *[0-9a-f]*: e4 0b 23 43 padds\.ub r3,r2,r11
49264 + *[0-9a-f]*: f0 01 23 4a padds\.ub r10,r8,r1
49265 + *[0-9a-f]*: f0 0a 23 4b padds\.ub r11,r8,r10
49266 +
49267 +[0-9a-f]* <psubs_ub>:
49268 + *[0-9a-f]*: fe 0f 23 5f psubs\.ub pc,pc,pc
49269 + *[0-9a-f]*: f8 0c 23 5c psubs\.ub r12,r12,r12
49270 + *[0-9a-f]*: ea 05 23 55 psubs\.ub r5,r5,r5
49271 + *[0-9a-f]*: e8 04 23 54 psubs\.ub r4,r4,r4
49272 + *[0-9a-f]*: fc 0e 23 5e psubs\.ub lr,lr,lr
49273 + *[0-9a-f]*: e4 07 23 50 psubs\.ub r0,r2,r7
49274 + *[0-9a-f]*: ea 03 23 5e psubs\.ub lr,r5,r3
49275 + *[0-9a-f]*: ee 09 23 56 psubs\.ub r6,r7,r9
49276 +
49277 +[0-9a-f]* <paddh_ub>:
49278 + *[0-9a-f]*: fe 0f 23 6f paddh\.ub pc,pc,pc
49279 + *[0-9a-f]*: f8 0c 23 6c paddh\.ub r12,r12,r12
49280 + *[0-9a-f]*: ea 05 23 65 paddh\.ub r5,r5,r5
49281 + *[0-9a-f]*: e8 04 23 64 paddh\.ub r4,r4,r4
49282 + *[0-9a-f]*: fc 0e 23 6e paddh\.ub lr,lr,lr
49283 + *[0-9a-f]*: e2 00 23 6e paddh\.ub lr,r1,r0
49284 + *[0-9a-f]*: ee 07 23 62 paddh\.ub r2,r7,r7
49285 + *[0-9a-f]*: e2 02 23 62 paddh\.ub r2,r1,r2
49286 +
49287 +[0-9a-f]* <psubh_ub>:
49288 + *[0-9a-f]*: fe 0f 23 7f psubh\.ub pc,pc,pc
49289 + *[0-9a-f]*: f8 0c 23 7c psubh\.ub r12,r12,r12
49290 + *[0-9a-f]*: ea 05 23 75 psubh\.ub r5,r5,r5
49291 + *[0-9a-f]*: e8 04 23 74 psubh\.ub r4,r4,r4
49292 + *[0-9a-f]*: fc 0e 23 7e psubh\.ub lr,lr,lr
49293 + *[0-9a-f]*: e2 06 23 70 psubh\.ub r0,r1,r6
49294 + *[0-9a-f]*: fc 0a 23 74 psubh\.ub r4,lr,r10
49295 + *[0-9a-f]*: f0 01 23 79 psubh\.ub r9,r8,r1
49296 +
49297 +[0-9a-f]* <pmax_ub>:
49298 + *[0-9a-f]*: fe 0f 23 8f pmax\.ub pc,pc,pc
49299 + *[0-9a-f]*: f8 0c 23 8c pmax\.ub r12,r12,r12
49300 + *[0-9a-f]*: ea 05 23 85 pmax\.ub r5,r5,r5
49301 + *[0-9a-f]*: e8 04 23 84 pmax\.ub r4,r4,r4
49302 + *[0-9a-f]*: fc 0e 23 8e pmax\.ub lr,lr,lr
49303 + *[0-9a-f]*: e4 0b 23 8f pmax\.ub pc,r2,r11
49304 + *[0-9a-f]*: e2 01 23 8c pmax\.ub r12,r1,r1
49305 + *[0-9a-f]*: e4 00 23 85 pmax\.ub r5,r2,r0
49306 +
49307 +[0-9a-f]* <pmax_sh>:
49308 + *[0-9a-f]*: fe 0f 23 9f pmax\.sh pc,pc,pc
49309 + *[0-9a-f]*: f8 0c 23 9c pmax\.sh r12,r12,r12
49310 + *[0-9a-f]*: ea 05 23 95 pmax\.sh r5,r5,r5
49311 + *[0-9a-f]*: e8 04 23 94 pmax\.sh r4,r4,r4
49312 + *[0-9a-f]*: fc 0e 23 9e pmax\.sh lr,lr,lr
49313 + *[0-9a-f]*: ec 0c 23 9e pmax\.sh lr,r6,r12
49314 + *[0-9a-f]*: fe 05 23 92 pmax\.sh r2,pc,r5
49315 + *[0-9a-f]*: e4 07 23 9f pmax\.sh pc,r2,r7
49316 +
49317 +[0-9a-f]* <pmin_ub>:
49318 + *[0-9a-f]*: fe 0f 23 af pmin\.ub pc,pc,pc
49319 + *[0-9a-f]*: f8 0c 23 ac pmin\.ub r12,r12,r12
49320 + *[0-9a-f]*: ea 05 23 a5 pmin\.ub r5,r5,r5
49321 + *[0-9a-f]*: e8 04 23 a4 pmin\.ub r4,r4,r4
49322 + *[0-9a-f]*: fc 0e 23 ae pmin\.ub lr,lr,lr
49323 + *[0-9a-f]*: e2 05 23 a8 pmin\.ub r8,r1,r5
49324 + *[0-9a-f]*: f0 03 23 a1 pmin\.ub r1,r8,r3
49325 + *[0-9a-f]*: e4 07 23 a0 pmin\.ub r0,r2,r7
49326 +
49327 +[0-9a-f]* <pmin_sh>:
49328 + *[0-9a-f]*: fe 0f 23 bf pmin\.sh pc,pc,pc
49329 + *[0-9a-f]*: f8 0c 23 bc pmin\.sh r12,r12,r12
49330 + *[0-9a-f]*: ea 05 23 b5 pmin\.sh r5,r5,r5
49331 + *[0-9a-f]*: e8 04 23 b4 pmin\.sh r4,r4,r4
49332 + *[0-9a-f]*: fc 0e 23 be pmin\.sh lr,lr,lr
49333 + *[0-9a-f]*: e8 0a 23 b8 pmin\.sh r8,r4,r10
49334 + *[0-9a-f]*: f4 0c 23 be pmin\.sh lr,r10,r12
49335 + *[0-9a-f]*: ec 02 23 b2 pmin\.sh r2,r6,r2
49336 +
49337 +[0-9a-f]* <pavg_ub>:
49338 + *[0-9a-f]*: fe 0f 23 cf pavg\.ub pc,pc,pc
49339 + *[0-9a-f]*: f8 0c 23 cc pavg\.ub r12,r12,r12
49340 + *[0-9a-f]*: ea 05 23 c5 pavg\.ub r5,r5,r5
49341 + *[0-9a-f]*: e8 04 23 c4 pavg\.ub r4,r4,r4
49342 + *[0-9a-f]*: fc 0e 23 ce pavg\.ub lr,lr,lr
49343 + *[0-9a-f]*: e2 06 23 c0 pavg\.ub r0,r1,r6
49344 + *[0-9a-f]*: e6 06 23 c8 pavg\.ub r8,r3,r6
49345 + *[0-9a-f]*: f8 0a 23 cf pavg\.ub pc,r12,r10
49346 +
49347 +[0-9a-f]* <pavg_sh>:
49348 + *[0-9a-f]*: fe 0f 23 df pavg\.sh pc,pc,pc
49349 + *[0-9a-f]*: f8 0c 23 dc pavg\.sh r12,r12,r12
49350 + *[0-9a-f]*: ea 05 23 d5 pavg\.sh r5,r5,r5
49351 + *[0-9a-f]*: e8 04 23 d4 pavg\.sh r4,r4,r4
49352 + *[0-9a-f]*: fc 0e 23 de pavg\.sh lr,lr,lr
49353 + *[0-9a-f]*: fe 0d 23 d9 pavg\.sh r9,pc,sp
49354 + *[0-9a-f]*: fa 03 23 df pavg\.sh pc,sp,r3
49355 + *[0-9a-f]*: e2 09 23 d6 pavg\.sh r6,r1,r9
49356 +
49357 +[0-9a-f]* <pabs_sb>:
49358 + *[0-9a-f]*: e0 0f 23 ef pabs\.sb pc,pc
49359 + *[0-9a-f]*: e0 0c 23 ec pabs\.sb r12,r12
49360 + *[0-9a-f]*: e0 05 23 e5 pabs\.sb r5,r5
49361 + *[0-9a-f]*: e0 04 23 e4 pabs\.sb r4,r4
49362 + *[0-9a-f]*: e0 0e 23 ee pabs\.sb lr,lr
49363 + *[0-9a-f]*: e0 06 23 eb pabs\.sb r11,r6
49364 + *[0-9a-f]*: e0 09 23 ee pabs\.sb lr,r9
49365 + *[0-9a-f]*: e0 07 23 ed pabs\.sb sp,r7
49366 +
49367 +[0-9a-f]* <pabs_sh>:
49368 + *[0-9a-f]*: e0 0f 23 ff pabs\.sh pc,pc
49369 + *[0-9a-f]*: e0 0c 23 fc pabs\.sh r12,r12
49370 + *[0-9a-f]*: e0 05 23 f5 pabs\.sh r5,r5
49371 + *[0-9a-f]*: e0 04 23 f4 pabs\.sh r4,r4
49372 + *[0-9a-f]*: e0 0e 23 fe pabs\.sh lr,lr
49373 + *[0-9a-f]*: e0 03 23 ff pabs\.sh pc,r3
49374 + *[0-9a-f]*: e0 07 23 f5 pabs\.sh r5,r7
49375 + *[0-9a-f]*: e0 00 23 f4 pabs\.sh r4,r0
49376 +
49377 +[0-9a-f]* <psad>:
49378 + *[0-9a-f]*: fe 0f 24 0f psad pc,pc,pc
49379 + *[0-9a-f]*: f8 0c 24 0c psad r12,r12,r12
49380 + *[0-9a-f]*: ea 05 24 05 psad r5,r5,r5
49381 + *[0-9a-f]*: e8 04 24 04 psad r4,r4,r4
49382 + *[0-9a-f]*: fc 0e 24 0e psad lr,lr,lr
49383 + *[0-9a-f]*: f6 0b 24 09 psad r9,r11,r11
49384 + *[0-9a-f]*: e8 0d 24 0e psad lr,r4,sp
49385 + *[0-9a-f]*: e8 05 24 0e psad lr,r4,r5
49386 +
49387 +[0-9a-f]* <pasr_b>:
49388 + *[0-9a-f]*: fe 00 24 1f pasr\.b pc,pc,0x0
49389 + *[0-9a-f]*: f8 07 24 1c pasr\.b r12,r12,0x7
49390 + *[0-9a-f]*: ea 04 24 15 pasr\.b r5,r5,0x4
49391 + *[0-9a-f]*: e8 03 24 14 pasr\.b r4,r4,0x3
49392 + *[0-9a-f]*: fc 01 24 1e pasr\.b lr,lr,0x1
49393 + *[0-9a-f]*: ee 01 24 1f pasr\.b pc,r7,0x1
49394 + *[0-9a-f]*: fc 06 24 1d pasr\.b sp,lr,0x6
49395 + *[0-9a-f]*: e6 02 24 1d pasr\.b sp,r3,0x2
49396 +
49397 +[0-9a-f]* <plsl_b>:
49398 + *[0-9a-f]*: fe 00 24 2f plsl\.b pc,pc,0x0
49399 + *[0-9a-f]*: f8 07 24 2c plsl\.b r12,r12,0x7
49400 + *[0-9a-f]*: ea 04 24 25 plsl\.b r5,r5,0x4
49401 + *[0-9a-f]*: e8 03 24 24 plsl\.b r4,r4,0x3
49402 + *[0-9a-f]*: fc 01 24 2e plsl\.b lr,lr,0x1
49403 + *[0-9a-f]*: f6 04 24 22 plsl\.b r2,r11,0x4
49404 + *[0-9a-f]*: ea 07 24 28 plsl\.b r8,r5,0x7
49405 + *[0-9a-f]*: e0 02 24 2f plsl\.b pc,r0,0x2
49406 +
49407 +[0-9a-f]* <plsr_b>:
49408 + *[0-9a-f]*: fe 00 24 3f plsr\.b pc,pc,0x0
49409 + *[0-9a-f]*: f8 07 24 3c plsr\.b r12,r12,0x7
49410 + *[0-9a-f]*: ea 04 24 35 plsr\.b r5,r5,0x4
49411 + *[0-9a-f]*: e8 03 24 34 plsr\.b r4,r4,0x3
49412 + *[0-9a-f]*: fc 01 24 3e plsr\.b lr,lr,0x1
49413 + *[0-9a-f]*: e2 02 24 3c plsr\.b r12,r1,0x2
49414 + *[0-9a-f]*: fe 07 24 36 plsr\.b r6,pc,0x7
49415 + *[0-9a-f]*: f6 02 24 3c plsr\.b r12,r11,0x2
49416 +
49417 +[0-9a-f]* <pasr_h>:
49418 + *[0-9a-f]*: fe 00 24 4f pasr\.h pc,pc,0x0
49419 + *[0-9a-f]*: f8 0f 24 4c pasr\.h r12,r12,0xf
49420 + *[0-9a-f]*: ea 08 24 45 pasr\.h r5,r5,0x8
49421 + *[0-9a-f]*: e8 07 24 44 pasr\.h r4,r4,0x7
49422 + *[0-9a-f]*: fc 01 24 4e pasr\.h lr,lr,0x1
49423 + *[0-9a-f]*: f6 0a 24 40 pasr\.h r0,r11,0xa
49424 + *[0-9a-f]*: ec 08 24 44 pasr\.h r4,r6,0x8
49425 + *[0-9a-f]*: e4 04 24 46 pasr\.h r6,r2,0x4
49426 +
49427 +[0-9a-f]* <plsl_h>:
49428 + *[0-9a-f]*: fe 00 24 5f plsl\.h pc,pc,0x0
49429 + *[0-9a-f]*: f8 0f 24 5c plsl\.h r12,r12,0xf
49430 + *[0-9a-f]*: ea 08 24 55 plsl\.h r5,r5,0x8
49431 + *[0-9a-f]*: e8 07 24 54 plsl\.h r4,r4,0x7
49432 + *[0-9a-f]*: fc 01 24 5e plsl\.h lr,lr,0x1
49433 + *[0-9a-f]*: f4 09 24 55 plsl\.h r5,r10,0x9
49434 + *[0-9a-f]*: fc 08 24 5d plsl\.h sp,lr,0x8
49435 + *[0-9a-f]*: fc 07 24 50 plsl\.h r0,lr,0x7
49436 +
49437 +[0-9a-f]* <plsr_h>:
49438 + *[0-9a-f]*: fe 00 24 6f plsr\.h pc,pc,0x0
49439 + *[0-9a-f]*: f8 0f 24 6c plsr\.h r12,r12,0xf
49440 + *[0-9a-f]*: ea 08 24 65 plsr\.h r5,r5,0x8
49441 + *[0-9a-f]*: e8 07 24 64 plsr\.h r4,r4,0x7
49442 + *[0-9a-f]*: fc 01 24 6e plsr\.h lr,lr,0x1
49443 + *[0-9a-f]*: e0 0f 24 6b plsr\.h r11,r0,0xf
49444 + *[0-9a-f]*: e6 03 24 6e plsr\.h lr,r3,0x3
49445 + *[0-9a-f]*: fc 0a 24 68 plsr\.h r8,lr,0xa
49446 +
49447 +[0-9a-f]* <packw_sh>:
49448 + *[0-9a-f]*: fe 0f 24 7f packw\.sh pc,pc,pc
49449 + *[0-9a-f]*: f8 0c 24 7c packw\.sh r12,r12,r12
49450 + *[0-9a-f]*: ea 05 24 75 packw\.sh r5,r5,r5
49451 + *[0-9a-f]*: e8 04 24 74 packw\.sh r4,r4,r4
49452 + *[0-9a-f]*: fc 0e 24 7e packw\.sh lr,lr,lr
49453 + *[0-9a-f]*: f6 0a 24 7d packw\.sh sp,r11,r10
49454 + *[0-9a-f]*: e4 0c 24 78 packw\.sh r8,r2,r12
49455 + *[0-9a-f]*: e2 05 24 78 packw\.sh r8,r1,r5
49456 +
49457 +[0-9a-f]* <punpckub_h>:
49458 + *[0-9a-f]*: fe 00 24 8f punpckub\.h pc,pc:b
49459 + *[0-9a-f]*: f8 00 24 9c punpckub\.h r12,r12:t
49460 + *[0-9a-f]*: ea 00 24 95 punpckub\.h r5,r5:t
49461 + *[0-9a-f]*: e8 00 24 84 punpckub\.h r4,r4:b
49462 + *[0-9a-f]*: fc 00 24 9e punpckub\.h lr,lr:t
49463 + *[0-9a-f]*: e2 00 24 96 punpckub\.h r6,r1:t
49464 + *[0-9a-f]*: ea 00 24 8e punpckub\.h lr,r5:b
49465 + *[0-9a-f]*: e4 00 24 9e punpckub\.h lr,r2:t
49466 +
49467 +[0-9a-f]* <punpcksb_h>:
49468 + *[0-9a-f]*: fe 00 24 af punpcksb\.h pc,pc:b
49469 + *[0-9a-f]*: f8 00 24 bc punpcksb\.h r12,r12:t
49470 + *[0-9a-f]*: ea 00 24 b5 punpcksb\.h r5,r5:t
49471 + *[0-9a-f]*: e8 00 24 a4 punpcksb\.h r4,r4:b
49472 + *[0-9a-f]*: fc 00 24 be punpcksb\.h lr,lr:t
49473 + *[0-9a-f]*: ee 00 24 b4 punpcksb\.h r4,r7:t
49474 + *[0-9a-f]*: fc 00 24 a6 punpcksb\.h r6,lr:b
49475 + *[0-9a-f]*: f8 00 24 bc punpcksb\.h r12,r12:t
49476 +
49477 +[0-9a-f]* <packsh_ub>:
49478 + *[0-9a-f]*: fe 0f 24 cf packsh\.ub pc,pc,pc
49479 + *[0-9a-f]*: f8 0c 24 cc packsh\.ub r12,r12,r12
49480 + *[0-9a-f]*: ea 05 24 c5 packsh\.ub r5,r5,r5
49481 + *[0-9a-f]*: e8 04 24 c4 packsh\.ub r4,r4,r4
49482 + *[0-9a-f]*: fc 0e 24 ce packsh\.ub lr,lr,lr
49483 + *[0-9a-f]*: ec 03 24 c3 packsh\.ub r3,r6,r3
49484 + *[0-9a-f]*: e0 03 24 c8 packsh\.ub r8,r0,r3
49485 + *[0-9a-f]*: e6 0e 24 c9 packsh\.ub r9,r3,lr
49486 +
49487 +[0-9a-f]* <packsh_sb>:
49488 + *[0-9a-f]*: fe 0f 24 df packsh\.sb pc,pc,pc
49489 + *[0-9a-f]*: f8 0c 24 dc packsh\.sb r12,r12,r12
49490 + *[0-9a-f]*: ea 05 24 d5 packsh\.sb r5,r5,r5
49491 + *[0-9a-f]*: e8 04 24 d4 packsh\.sb r4,r4,r4
49492 + *[0-9a-f]*: fc 0e 24 de packsh\.sb lr,lr,lr
49493 + *[0-9a-f]*: f0 01 24 d6 packsh\.sb r6,r8,r1
49494 + *[0-9a-f]*: f2 08 24 de packsh\.sb lr,r9,r8
49495 + *[0-9a-f]*: ec 06 24 dd packsh\.sb sp,r6,r6
49496 +
49497 +[0-9a-f]* <andl>:
49498 + *[0-9a-f]*: e0 1f 00 00 andl pc,0x0
49499 + *[0-9a-f]*: e0 1c ff ff andl r12,0xffff
49500 + *[0-9a-f]*: e0 15 80 00 andl r5,0x8000
49501 + *[0-9a-f]*: e0 14 7f ff andl r4,0x7fff
49502 + *[0-9a-f]*: e0 1e 00 01 andl lr,0x1
49503 + *[0-9a-f]*: e0 1f 5a 58 andl pc,0x5a58
49504 + *[0-9a-f]*: e0 18 b8 9e andl r8,0xb89e
49505 + *[0-9a-f]*: e0 17 35 97 andl r7,0x3597
49506 +
49507 +[0-9a-f]* <andl_coh>:
49508 + *[0-9a-f]*: e2 1f 00 00 andl pc,0x0,COH
49509 + *[0-9a-f]*: e2 1c ff ff andl r12,0xffff,COH
49510 + *[0-9a-f]*: e2 15 80 00 andl r5,0x8000,COH
49511 + *[0-9a-f]*: e2 14 7f ff andl r4,0x7fff,COH
49512 + *[0-9a-f]*: e2 1e 00 01 andl lr,0x1,COH
49513 + *[0-9a-f]*: e2 16 58 e1 andl r6,0x58e1,COH
49514 + *[0-9a-f]*: e2 10 9e cd andl r0,0x9ecd,COH
49515 + *[0-9a-f]*: e2 14 bd c4 andl r4,0xbdc4,COH
49516 +
49517 +[0-9a-f]* <andh>:
49518 + *[0-9a-f]*: e4 1f 00 00 andh pc,0x0
49519 + *[0-9a-f]*: e4 1c ff ff andh r12,0xffff
49520 + *[0-9a-f]*: e4 15 80 00 andh r5,0x8000
49521 + *[0-9a-f]*: e4 14 7f ff andh r4,0x7fff
49522 + *[0-9a-f]*: e4 1e 00 01 andh lr,0x1
49523 + *[0-9a-f]*: e4 1c cc 58 andh r12,0xcc58
49524 + *[0-9a-f]*: e4 13 21 e3 andh r3,0x21e3
49525 + *[0-9a-f]*: e4 12 a7 eb andh r2,0xa7eb
49526 +
49527 +[0-9a-f]* <andh_coh>:
49528 + *[0-9a-f]*: e6 1f 00 00 andh pc,0x0,COH
49529 + *[0-9a-f]*: e6 1c ff ff andh r12,0xffff,COH
49530 + *[0-9a-f]*: e6 15 80 00 andh r5,0x8000,COH
49531 + *[0-9a-f]*: e6 14 7f ff andh r4,0x7fff,COH
49532 + *[0-9a-f]*: e6 1e 00 01 andh lr,0x1,COH
49533 + *[0-9a-f]*: e6 1b 86 0d andh r11,0x860d,COH
49534 + *[0-9a-f]*: e6 18 ce f6 andh r8,0xcef6,COH
49535 + *[0-9a-f]*: e6 1a 5c 83 andh r10,0x5c83,COH
49536 +
49537 +[0-9a-f]* <orl>:
49538 + *[0-9a-f]*: e8 1f 00 00 orl pc,0x0
49539 + *[0-9a-f]*: e8 1c ff ff orl r12,0xffff
49540 + *[0-9a-f]*: e8 15 80 00 orl r5,0x8000
49541 + *[0-9a-f]*: e8 14 7f ff orl r4,0x7fff
49542 + *[0-9a-f]*: e8 1e 00 01 orl lr,0x1
49543 + *[0-9a-f]*: e8 1d 41 7e orl sp,0x417e
49544 + *[0-9a-f]*: e8 10 52 bd orl r0,0x52bd
49545 + *[0-9a-f]*: e8 1f ac 47 orl pc,0xac47
49546 +
49547 +[0-9a-f]* <orh>:
49548 + *[0-9a-f]*: ea 1f 00 00 orh pc,0x0
49549 + *[0-9a-f]*: ea 1c ff ff orh r12,0xffff
49550 + *[0-9a-f]*: ea 15 80 00 orh r5,0x8000
49551 + *[0-9a-f]*: ea 14 7f ff orh r4,0x7fff
49552 + *[0-9a-f]*: ea 1e 00 01 orh lr,0x1
49553 + *[0-9a-f]*: ea 18 6e 7d orh r8,0x6e7d
49554 + *[0-9a-f]*: ea 1c 77 1c orh r12,0x771c
49555 + *[0-9a-f]*: ea 11 ea 1a orh r1,0xea1a
49556 +
49557 +[0-9a-f]* <eorl>:
49558 + *[0-9a-f]*: ec 1f 00 00 eorl pc,0x0
49559 + *[0-9a-f]*: ec 1c ff ff eorl r12,0xffff
49560 + *[0-9a-f]*: ec 15 80 00 eorl r5,0x8000
49561 + *[0-9a-f]*: ec 14 7f ff eorl r4,0x7fff
49562 + *[0-9a-f]*: ec 1e 00 01 eorl lr,0x1
49563 + *[0-9a-f]*: ec 14 c7 b9 eorl r4,0xc7b9
49564 + *[0-9a-f]*: ec 16 fb dd eorl r6,0xfbdd
49565 + *[0-9a-f]*: ec 11 51 b1 eorl r1,0x51b1
49566 +
49567 +[0-9a-f]* <eorh>:
49568 + *[0-9a-f]*: ee 1f 00 00 eorh pc,0x0
49569 + *[0-9a-f]*: ee 1c ff ff eorh r12,0xffff
49570 + *[0-9a-f]*: ee 15 80 00 eorh r5,0x8000
49571 + *[0-9a-f]*: ee 14 7f ff eorh r4,0x7fff
49572 + *[0-9a-f]*: ee 1e 00 01 eorh lr,0x1
49573 + *[0-9a-f]*: ee 10 2d d4 eorh r0,0x2dd4
49574 + *[0-9a-f]*: ee 1a 94 b5 eorh r10,0x94b5
49575 + *[0-9a-f]*: ee 19 df 2a eorh r9,0xdf2a
49576 +
49577 +[0-9a-f]* <mcall>:
49578 + *[0-9a-f]*: f0 1f 00 00 mcall [0-9a-f]* <.*>
49579 + *[0-9a-f]*: f0 1c ff ff mcall r12\[-4\]
49580 + *[0-9a-f]*: f0 15 80 00 mcall r5\[-131072\]
49581 + *[0-9a-f]*: f0 14 7f ff mcall r4\[131068\]
49582 + *[0-9a-f]*: f0 1e 00 01 mcall lr\[4\]
49583 + *[0-9a-f]*: f0 1d 3b bf mcall sp\[61180\]
49584 + *[0-9a-f]*: f0 14 dd d2 mcall r4\[-35000\]
49585 + *[0-9a-f]*: f0 10 09 b1 mcall r0\[9924\]
49586 +
49587 +[0-9a-f]* <pref>:
49588 + *[0-9a-f]*: f2 1f 00 00 pref pc\[0\]
49589 + *[0-9a-f]*: f2 1c ff ff pref r12\[-1\]
49590 + *[0-9a-f]*: f2 15 80 00 pref r5\[-32768\]
49591 + *[0-9a-f]*: f2 14 7f ff pref r4\[32767\]
49592 + *[0-9a-f]*: f2 1e 00 01 pref lr\[1\]
49593 + *[0-9a-f]*: f2 17 1e 44 pref r7\[7748\]
49594 + *[0-9a-f]*: f2 17 e1 ed pref r7\[-7699\]
49595 + *[0-9a-f]*: f2 12 9a dc pref r2\[-25892\]
49596 +
49597 +[0-9a-f]* <cache>:
49598 + *[0-9a-f]*: f4 1f 00 00 cache pc\[0\],0x0
49599 + *[0-9a-f]*: f4 1c ff ff cache r12\[-1\],0x1f
49600 + *[0-9a-f]*: f4 15 84 00 cache r5\[-1024\],0x10
49601 + *[0-9a-f]*: f4 14 7b ff cache r4\[1023\],0xf
49602 + *[0-9a-f]*: f4 1e 08 01 cache lr\[1\],0x1
49603 + *[0-9a-f]*: f4 13 8c 3c cache r3\[-964\],0x11
49604 + *[0-9a-f]*: f4 14 b6 89 cache r4\[-375\],0x16
49605 + *[0-9a-f]*: f4 13 8c 88 cache r3\[-888\],0x11
49606 +
49607 +[0-9a-f]* <sub4>:
49608 + *[0-9a-f]*: 20 0f sub pc,0
49609 + *[0-9a-f]*: 2f fc sub r12,-1
49610 + *[0-9a-f]*: f0 25 00 00 sub r5,-1048576
49611 + *[0-9a-f]*: ee 34 ff ff sub r4,1048575
49612 + *[0-9a-f]*: 20 1e sub lr,1
49613 + *[0-9a-f]*: f6 22 8d 6c sub r2,-619156
49614 + *[0-9a-f]*: e6 3e 0a cd sub lr,461517
49615 + *[0-9a-f]*: fc 38 2d 25 sub r8,-185051
49616 +
49617 +[0-9a-f]* <cp3>:
49618 + *[0-9a-f]*: 58 0f cp.w pc,0
49619 + *[0-9a-f]*: 5b fc cp.w r12,-1
49620 + *[0-9a-f]*: f0 45 00 00 cp.w r5,-1048576
49621 + *[0-9a-f]*: ee 54 ff ff cp.w r4,1048575
49622 + *[0-9a-f]*: 58 1e cp.w lr,1
49623 + *[0-9a-f]*: e0 51 e4 ae cp.w r1,124078
49624 + *[0-9a-f]*: fa 40 37 e3 cp.w r0,-378909
49625 + *[0-9a-f]*: fc 44 4a 14 cp.w r4,-243180
49626 +
49627 +[0-9a-f]* <mov2>:
49628 + *[0-9a-f]*: 30 0f mov pc,0
49629 + *[0-9a-f]*: 3f fc mov r12,-1
49630 + *[0-9a-f]*: f0 65 00 00 mov r5,-1048576
49631 + *[0-9a-f]*: ee 74 ff ff mov r4,1048575
49632 + *[0-9a-f]*: 30 1e mov lr,1
49633 + *[0-9a-f]*: fa 75 29 a3 mov r5,-317021
49634 + *[0-9a-f]*: f4 6d 91 94 mov sp,-749164
49635 + *[0-9a-f]*: ee 65 58 93 mov r5,940179
49636 +
49637 +[0-9a-f]* <brc2>:
49638 + *[0-9a-f]*: c0 00 breq [0-9a-f]* <.*>
49639 + *[0-9a-f]*: fe 9f ff ff bral [0-9a-f]* <.*>
49640 + *[0-9a-f]*: f0 88 00 00 brls [0-9a-f]* <.*>
49641 + *[0-9a-f]*: ee 97 ff ff brpl [0-9a-f]* <.*>
49642 + *[0-9a-f]*: c0 11 brne [0-9a-f]* <.*>
49643 + *[0-9a-f]*: f2 8b 4a 4d brhi [0-9a-f]* <.*>
49644 + *[0-9a-f]*: ea 8e 14 cc brqs [0-9a-f]* <.*>
49645 + *[0-9a-f]*: fa 98 98 33 brls [0-9a-f]* <.*>
49646 +
49647 +[0-9a-f]* <rcall2>:
49648 + *[0-9a-f]*: c0 0c rcall [0-9a-f]* <.*>
49649 + *[0-9a-f]*: cf ff rcall [0-9a-f]* <.*>
49650 + *[0-9a-f]*: f0 a0 00 00 rcall [0-9a-f]* <.*>
49651 + *[0-9a-f]*: ee b0 ff ff rcall [0-9a-f]* <.*>
49652 + *[0-9a-f]*: c0 1c rcall [0-9a-f]* <.*>
49653 + *[0-9a-f]*: e2 b0 ca 5a rcall [0-9a-f]* <.*>
49654 + *[0-9a-f]*: e8 a0 47 52 rcall [0-9a-f]* <.*>
49655 + *[0-9a-f]*: fe b0 fd ef rcall [0-9a-f]* <.*>
49656 +
49657 +[0-9a-f]* <sub5>:
49658 + *[0-9a-f]*: fe cf 00 00 sub pc,pc,0
49659 + *[0-9a-f]*: f8 cc ff ff sub r12,r12,-1
49660 + *[0-9a-f]*: ea c5 80 00 sub r5,r5,-32768
49661 + *[0-9a-f]*: e8 c4 7f ff sub r4,r4,32767
49662 + *[0-9a-f]*: fc ce 00 01 sub lr,lr,1
49663 + *[0-9a-f]*: fe cf ce 38 sub pc,pc,-12744
49664 + *[0-9a-f]*: ee c7 95 1b sub r7,r7,-27365
49665 + *[0-9a-f]*: f2 c2 bc 32 sub r2,r9,-17358
49666 +
49667 +[0-9a-f]* <satsub_w2>:
49668 + *[0-9a-f]*: fe df 00 00 satsub\.w pc,pc,0
49669 + *[0-9a-f]*: f8 dc ff ff satsub\.w r12,r12,-1
49670 + *[0-9a-f]*: ea d5 80 00 satsub\.w r5,r5,-32768
49671 + *[0-9a-f]*: e8 d4 7f ff satsub\.w r4,r4,32767
49672 + *[0-9a-f]*: fc de 00 01 satsub\.w lr,lr,1
49673 + *[0-9a-f]*: fc d2 f8 29 satsub\.w r2,lr,-2007
49674 + *[0-9a-f]*: f8 d7 fc f0 satsub\.w r7,r12,-784
49675 + *[0-9a-f]*: ee d4 5a 8c satsub\.w r4,r7,23180
49676 +
49677 +[0-9a-f]* <ld_d4>:
49678 + *[0-9a-f]*: fe e0 00 00 ld\.d r0,pc\[0\]
49679 + *[0-9a-f]*: f8 ee ff ff ld\.d lr,r12\[-1\]
49680 + *[0-9a-f]*: ea e8 80 00 ld\.d r8,r5\[-32768\]
49681 + *[0-9a-f]*: e8 e6 7f ff ld\.d r6,r4\[32767\]
49682 + *[0-9a-f]*: fc e2 00 01 ld\.d r2,lr\[1\]
49683 + *[0-9a-f]*: f6 ee 39 c0 ld\.d lr,r11\[14784\]
49684 + *[0-9a-f]*: f2 e6 b6 27 ld\.d r6,r9\[-18905\]
49685 + *[0-9a-f]*: e6 e2 e7 2d ld\.d r2,r3\[-6355\]
49686 +
49687 +[0-9a-f]* <ld_w4>:
49688 + *[0-9a-f]*: 7e 0f ld\.w pc,pc\[0x0\]
49689 + *[0-9a-f]*: f8 fc ff ff ld\.w r12,r12\[-1\]
49690 + *[0-9a-f]*: ea f5 80 00 ld\.w r5,r5\[-32768\]
49691 + *[0-9a-f]*: e8 f4 7f ff ld\.w r4,r4\[32767\]
49692 + *[0-9a-f]*: fc fe 00 01 ld\.w lr,lr\[1\]
49693 + *[0-9a-f]*: f8 f0 a9 8b ld\.w r0,r12\[-22133\]
49694 + *[0-9a-f]*: fe fd af d7 ld\.w sp,pc\[-20521\]
49695 + *[0-9a-f]*: d7 03 nop
49696 +
49697 +[0-9a-f]* <ld_sh4>:
49698 + *[0-9a-f]*: 9e 0f ld\.sh pc,pc\[0x0\]
49699 + *[0-9a-f]*: f9 0c ff ff ld\.sh r12,r12\[-1\]
49700 + *[0-9a-f]*: eb 05 80 00 ld\.sh r5,r5\[-32768\]
49701 + *[0-9a-f]*: e9 04 7f ff ld\.sh r4,r4\[32767\]
49702 + *[0-9a-f]*: fd 0e 00 01 ld\.sh lr,lr\[1\]
49703 + *[0-9a-f]*: f5 06 78 d2 ld\.sh r6,r10\[30930\]
49704 + *[0-9a-f]*: f5 06 55 d5 ld\.sh r6,r10\[21973\]
49705 + *[0-9a-f]*: d7 03 nop
49706 +
49707 +[0-9a-f]* <ld_uh4>:
49708 + *[0-9a-f]*: 9e 8f ld\.uh pc,pc\[0x0\]
49709 + *[0-9a-f]*: f9 1c ff ff ld\.uh r12,r12\[-1\]
49710 + *[0-9a-f]*: eb 15 80 00 ld\.uh r5,r5\[-32768\]
49711 + *[0-9a-f]*: e9 14 7f ff ld\.uh r4,r4\[32767\]
49712 + *[0-9a-f]*: fd 1e 00 01 ld\.uh lr,lr\[1\]
49713 + *[0-9a-f]*: f3 11 cb d6 ld\.uh r1,r9\[-13354\]
49714 + *[0-9a-f]*: f7 1e 53 59 ld\.uh lr,r11\[21337\]
49715 + *[0-9a-f]*: d7 03 nop
49716 +
49717 +[0-9a-f]* <ld_sb1>:
49718 + *[0-9a-f]*: ff 2f 00 00 ld\.sb pc,pc\[0\]
49719 + *[0-9a-f]*: f9 2c ff ff ld\.sb r12,r12\[-1\]
49720 + *[0-9a-f]*: eb 25 80 00 ld\.sb r5,r5\[-32768\]
49721 + *[0-9a-f]*: e9 24 7f ff ld\.sb r4,r4\[32767\]
49722 + *[0-9a-f]*: fd 2e 00 01 ld\.sb lr,lr\[1\]
49723 + *[0-9a-f]*: fb 27 90 09 ld\.sb r7,sp\[-28663\]
49724 + *[0-9a-f]*: e3 22 e9 09 ld\.sb r2,r1\[-5879\]
49725 + *[0-9a-f]*: e7 2c 49 2e ld\.sb r12,r3\[18734\]
49726 +
49727 +[0-9a-f]* <ld_ub4>:
49728 + *[0-9a-f]*: 1f 8f ld\.ub pc,pc\[0x0\]
49729 + *[0-9a-f]*: f9 3c ff ff ld\.ub r12,r12\[-1\]
49730 + *[0-9a-f]*: eb 35 80 00 ld\.ub r5,r5\[-32768\]
49731 + *[0-9a-f]*: e9 34 7f ff ld\.ub r4,r4\[32767\]
49732 + *[0-9a-f]*: 1d 9e ld\.ub lr,lr\[0x1\]
49733 + *[0-9a-f]*: e9 3f 20 55 ld\.ub pc,r4\[8277\]
49734 + *[0-9a-f]*: f9 35 4a e4 ld\.ub r5,r12\[19172\]
49735 + *[0-9a-f]*: fd 3a 66 eb ld\.ub r10,lr\[26347\]
49736 +
49737 +[0-9a-f]* <st_d4>:
49738 + *[0-9a-f]*: fe e1 00 00 st\.d pc\[0\],r0
49739 + *[0-9a-f]*: f8 ef ff ff st\.d r12\[-1\],lr
49740 + *[0-9a-f]*: ea e9 80 00 st\.d r5\[-32768\],r8
49741 + *[0-9a-f]*: e8 e7 7f ff st\.d r4\[32767\],r6
49742 + *[0-9a-f]*: fc e3 00 01 st\.d lr\[1\],r2
49743 + *[0-9a-f]*: ea eb 33 90 st\.d r5\[13200\],r10
49744 + *[0-9a-f]*: ea eb 24 88 st\.d r5\[9352\],r10
49745 + *[0-9a-f]*: ea e5 7e 75 st\.d r5\[32373\],r4
49746 +
49747 +[0-9a-f]* <st_w4>:
49748 + *[0-9a-f]*: 9f 0f st\.w pc\[0x0\],pc
49749 + *[0-9a-f]*: f9 4c ff ff st\.w r12\[-1\],r12
49750 + *[0-9a-f]*: eb 45 80 00 st\.w r5\[-32768\],r5
49751 + *[0-9a-f]*: e9 44 7f ff st\.w r4\[32767\],r4
49752 + *[0-9a-f]*: fd 4e 00 01 st\.w lr\[1\],lr
49753 + *[0-9a-f]*: fb 47 17 f8 st\.w sp\[6136\],r7
49754 + *[0-9a-f]*: ed 4c 69 cf st\.w r6\[27087\],r12
49755 + *[0-9a-f]*: d7 03 nop
49756 +
49757 +[0-9a-f]* <st_h4>:
49758 + *[0-9a-f]*: be 0f st\.h pc\[0x0\],pc
49759 + *[0-9a-f]*: f9 5c ff ff st\.h r12\[-1\],r12
49760 + *[0-9a-f]*: eb 55 80 00 st\.h r5\[-32768\],r5
49761 + *[0-9a-f]*: e9 54 7f ff st\.h r4\[32767\],r4
49762 + *[0-9a-f]*: fd 5e 00 01 st\.h lr\[1\],lr
49763 + *[0-9a-f]*: e9 57 d9 16 st\.h r4\[-9962\],r7
49764 + *[0-9a-f]*: f3 53 c0 86 st\.h r9\[-16250\],r3
49765 + *[0-9a-f]*: d7 03 nop
49766 +
49767 +[0-9a-f]* <st_b4>:
49768 + *[0-9a-f]*: be 8f st\.b pc\[0x0\],pc
49769 + *[0-9a-f]*: f9 6c ff ff st\.b r12\[-1\],r12
49770 + *[0-9a-f]*: eb 65 80 00 st\.b r5\[-32768\],r5
49771 + *[0-9a-f]*: e9 64 7f ff st\.b r4\[32767\],r4
49772 + *[0-9a-f]*: bc 9e st\.b lr\[0x1\],lr
49773 + *[0-9a-f]*: f9 66 75 96 st\.b r12\[30102\],r6
49774 + *[0-9a-f]*: eb 61 71 31 st\.b r5\[28977\],r1
49775 + *[0-9a-f]*: e1 61 15 5e st\.b r0\[5470\],r1
49776 +
49777 +[0-9a-f]* <mfsr>:
49778 + *[0-9a-f]*: e1 bf 00 00 mfsr pc,0x0
49779 + *[0-9a-f]*: e1 bc 00 ff mfsr r12,0x3fc
49780 + *[0-9a-f]*: e1 b5 00 80 mfsr r5,0x200
49781 + *[0-9a-f]*: e1 b4 00 7f mfsr r4,0x1fc
49782 + *[0-9a-f]*: e1 be 00 01 mfsr lr,0x4
49783 + *[0-9a-f]*: e1 b2 00 ae mfsr r2,0x2b8
49784 + *[0-9a-f]*: e1 b4 00 41 mfsr r4,0x104
49785 + *[0-9a-f]*: e1 ba 00 fe mfsr r10,0x3f8
49786 +
49787 +[0-9a-f]* <mtsr>:
49788 + *[0-9a-f]*: e3 bf 00 00 mtsr 0x0,pc
49789 + *[0-9a-f]*: e3 bc 00 ff mtsr 0x3fc,r12
49790 + *[0-9a-f]*: e3 b5 00 80 mtsr 0x200,r5
49791 + *[0-9a-f]*: e3 b4 00 7f mtsr 0x1fc,r4
49792 + *[0-9a-f]*: e3 be 00 01 mtsr 0x4,lr
49793 + *[0-9a-f]*: e3 ba 00 38 mtsr 0xe0,r10
49794 + *[0-9a-f]*: e3 bc 00 d1 mtsr 0x344,r12
49795 + *[0-9a-f]*: e3 b9 00 4c mtsr 0x130,r9
49796 +
49797 +[0-9a-f]* <mfdr>:
49798 + *[0-9a-f]*: e5 bf 00 00 mfdr pc,0x0
49799 + *[0-9a-f]*: e5 bc 00 ff mfdr r12,0x3fc
49800 + *[0-9a-f]*: e5 b5 00 80 mfdr r5,0x200
49801 + *[0-9a-f]*: e5 b4 00 7f mfdr r4,0x1fc
49802 + *[0-9a-f]*: e5 be 00 01 mfdr lr,0x4
49803 + *[0-9a-f]*: e5 b6 00 e9 mfdr r6,0x3a4
49804 + *[0-9a-f]*: e5 b5 00 09 mfdr r5,0x24
49805 + *[0-9a-f]*: e5 b9 00 4b mfdr r9,0x12c
49806 +
49807 +[0-9a-f]* <mtdr>:
49808 + *[0-9a-f]*: e7 bf 00 00 mtdr 0x0,pc
49809 + *[0-9a-f]*: e7 bc 00 ff mtdr 0x3fc,r12
49810 + *[0-9a-f]*: e7 b5 00 80 mtdr 0x200,r5
49811 + *[0-9a-f]*: e7 b4 00 7f mtdr 0x1fc,r4
49812 + *[0-9a-f]*: e7 be 00 01 mtdr 0x4,lr
49813 + *[0-9a-f]*: e7 b8 00 2d mtdr 0xb4,r8
49814 + *[0-9a-f]*: e7 ba 00 b4 mtdr 0x2d0,r10
49815 + *[0-9a-f]*: e7 be 00 66 mtdr 0x198,lr
49816 +
49817 +[0-9a-f]* <sleep>:
49818 + *[0-9a-f]*: e9 b0 00 00 sleep 0x0
49819 + *[0-9a-f]*: e9 b0 00 ff sleep 0xff
49820 + *[0-9a-f]*: e9 b0 00 80 sleep 0x80
49821 + *[0-9a-f]*: e9 b0 00 7f sleep 0x7f
49822 + *[0-9a-f]*: e9 b0 00 01 sleep 0x1
49823 + *[0-9a-f]*: e9 b0 00 fe sleep 0xfe
49824 + *[0-9a-f]*: e9 b0 00 0f sleep 0xf
49825 + *[0-9a-f]*: e9 b0 00 2b sleep 0x2b
49826 +
49827 +[0-9a-f]* <sync>:
49828 + *[0-9a-f]*: eb b0 00 00 sync 0x0
49829 + *[0-9a-f]*: eb b0 00 ff sync 0xff
49830 + *[0-9a-f]*: eb b0 00 80 sync 0x80
49831 + *[0-9a-f]*: eb b0 00 7f sync 0x7f
49832 + *[0-9a-f]*: eb b0 00 01 sync 0x1
49833 + *[0-9a-f]*: eb b0 00 a6 sync 0xa6
49834 + *[0-9a-f]*: eb b0 00 e6 sync 0xe6
49835 + *[0-9a-f]*: eb b0 00 b4 sync 0xb4
49836 +
49837 +[0-9a-f]* <bld>:
49838 + *[0-9a-f]*: ed bf 00 00 bld pc,0x0
49839 + *[0-9a-f]*: ed bc 00 1f bld r12,0x1f
49840 + *[0-9a-f]*: ed b5 00 10 bld r5,0x10
49841 + *[0-9a-f]*: ed b4 00 0f bld r4,0xf
49842 + *[0-9a-f]*: ed be 00 01 bld lr,0x1
49843 + *[0-9a-f]*: ed b9 00 0f bld r9,0xf
49844 + *[0-9a-f]*: ed b0 00 04 bld r0,0x4
49845 + *[0-9a-f]*: ed be 00 1a bld lr,0x1a
49846 +
49847 +[0-9a-f]* <bst>:
49848 + *[0-9a-f]*: ef bf 00 00 bst pc,0x0
49849 + *[0-9a-f]*: ef bc 00 1f bst r12,0x1f
49850 + *[0-9a-f]*: ef b5 00 10 bst r5,0x10
49851 + *[0-9a-f]*: ef b4 00 0f bst r4,0xf
49852 + *[0-9a-f]*: ef be 00 01 bst lr,0x1
49853 + *[0-9a-f]*: ef ba 00 1c bst r10,0x1c
49854 + *[0-9a-f]*: ef b0 00 03 bst r0,0x3
49855 + *[0-9a-f]*: ef bd 00 02 bst sp,0x2
49856 +
49857 +[0-9a-f]* <sats>:
49858 + *[0-9a-f]*: f1 bf 00 00 sats pc,0x0
49859 + *[0-9a-f]*: f1 bc 03 ff sats r12>>0x1f,0x1f
49860 + *[0-9a-f]*: f1 b5 02 10 sats r5>>0x10,0x10
49861 + *[0-9a-f]*: f1 b4 01 ef sats r4>>0xf,0xf
49862 + *[0-9a-f]*: f1 be 00 21 sats lr>>0x1,0x1
49863 + *[0-9a-f]*: f1 ba 02 63 sats r10>>0x3,0x13
49864 + *[0-9a-f]*: f1 ba 03 42 sats r10>>0x2,0x1a
49865 + *[0-9a-f]*: f1 b1 00 34 sats r1>>0x14,0x1
49866 +
49867 +[0-9a-f]* <satu>:
49868 + *[0-9a-f]*: f1 bf 04 00 satu pc,0x0
49869 + *[0-9a-f]*: f1 bc 07 ff satu r12>>0x1f,0x1f
49870 + *[0-9a-f]*: f1 b5 06 10 satu r5>>0x10,0x10
49871 + *[0-9a-f]*: f1 b4 05 ef satu r4>>0xf,0xf
49872 + *[0-9a-f]*: f1 be 04 21 satu lr>>0x1,0x1
49873 + *[0-9a-f]*: f1 bf 04 e5 satu pc>>0x5,0x7
49874 + *[0-9a-f]*: f1 b7 04 a5 satu r7>>0x5,0x5
49875 + *[0-9a-f]*: f1 b2 06 7a satu r2>>0x1a,0x13
49876 +
49877 +[0-9a-f]* <satrnds>:
49878 + *[0-9a-f]*: f3 bf 00 00 satrnds pc,0x0
49879 + *[0-9a-f]*: f3 bc 03 ff satrnds r12>>0x1f,0x1f
49880 + *[0-9a-f]*: f3 b5 02 10 satrnds r5>>0x10,0x10
49881 + *[0-9a-f]*: f3 b4 01 ef satrnds r4>>0xf,0xf
49882 + *[0-9a-f]*: f3 be 00 21 satrnds lr>>0x1,0x1
49883 + *[0-9a-f]*: f3 b0 02 75 satrnds r0>>0x15,0x13
49884 + *[0-9a-f]*: f3 bd 00 40 satrnds sp,0x2
49885 + *[0-9a-f]*: f3 b7 03 a6 satrnds r7>>0x6,0x1d
49886 +
49887 +[0-9a-f]* <satrndu>:
49888 + *[0-9a-f]*: f3 bf 04 00 satrndu pc,0x0
49889 + *[0-9a-f]*: f3 bc 07 ff satrndu r12>>0x1f,0x1f
49890 + *[0-9a-f]*: f3 b5 06 10 satrndu r5>>0x10,0x10
49891 + *[0-9a-f]*: f3 b4 05 ef satrndu r4>>0xf,0xf
49892 + *[0-9a-f]*: f3 be 04 21 satrndu lr>>0x1,0x1
49893 + *[0-9a-f]*: f3 bc 07 40 satrndu r12,0x1a
49894 + *[0-9a-f]*: f3 b4 04 75 satrndu r4>>0x15,0x3
49895 + *[0-9a-f]*: f3 ba 06 03 satrndu r10>>0x3,0x10
49896 +
49897 +[0-9a-f]* <subfc>:
49898 + *[0-9a-f]*: f5 bf 00 00 subfeq pc,0
49899 + *[0-9a-f]*: f5 bc 0f ff subfal r12,-1
49900 + *[0-9a-f]*: f5 b5 08 80 subfls r5,-128
49901 + *[0-9a-f]*: f5 b4 07 7f subfpl r4,127
49902 + *[0-9a-f]*: f5 be 01 01 subfne lr,1
49903 + *[0-9a-f]*: f5 ba 08 08 subfls r10,8
49904 + *[0-9a-f]*: f5 bb 0d 63 subfvc r11,99
49905 + *[0-9a-f]*: f5 b2 0c 49 subfvs r2,73
49906 +
49907 +[0-9a-f]* <subc>:
49908 + *[0-9a-f]*: f7 bf 00 00 subeq pc,0
49909 + *[0-9a-f]*: f7 bc 0f ff subal r12,-1
49910 + *[0-9a-f]*: f7 b5 08 80 subls r5,-128
49911 + *[0-9a-f]*: f7 b4 07 7f subpl r4,127
49912 + *[0-9a-f]*: f7 be 01 01 subne lr,1
49913 + *[0-9a-f]*: f7 bc 08 76 subls r12,118
49914 + *[0-9a-f]*: f7 be 0d f4 subvc lr,-12
49915 + *[0-9a-f]*: f7 b4 06 f3 submi r4,-13
49916 +
49917 +[0-9a-f]* <movc2>:
49918 + *[0-9a-f]*: f9 bf 00 00 moveq pc,0
49919 + *[0-9a-f]*: f9 bc 0f ff moval r12,-1
49920 + *[0-9a-f]*: f9 b5 08 80 movls r5,-128
49921 + *[0-9a-f]*: f9 b4 07 7f movpl r4,127
49922 + *[0-9a-f]*: f9 be 01 01 movne lr,1
49923 + *[0-9a-f]*: f9 b3 05 86 movlt r3,-122
49924 + *[0-9a-f]*: f9 b8 0d 02 movvc r8,2
49925 + *[0-9a-f]*: f9 b7 01 91 movne r7,-111
49926 +
49927 +[0-9a-f]* <cp_b>:
49928 + *[0-9a-f]*: e0 0f 18 00 cp\.b pc,r0
49929 + *[0-9a-f]*: fe 00 18 00 cp\.b r0,pc
49930 + *[0-9a-f]*: f0 07 18 00 cp\.b r7,r8
49931 + *[0-9a-f]*: ee 08 18 00 cp\.b r8,r7
49932 +
49933 +[0-9a-f]* <cp_h>:
49934 + *[0-9a-f]*: e0 0f 19 00 cp\.h pc,r0
49935 + *[0-9a-f]*: fe 00 19 00 cp\.h r0,pc
49936 + *[0-9a-f]*: f0 07 19 00 cp\.h r7,r8
49937 + *[0-9a-f]*: ee 08 19 00 cp\.h r8,r7
49938 +
49939 +[0-9a-f]* <ldm>:
49940 + *[0-9a-f]*: e1 cf 00 7e ldm pc,r1-r6
49941 + *[0-9a-f]*: e1 cc ff ff ldm r12,r0-pc
49942 + *[0-9a-f]*: e1 c5 80 00 ldm r5,pc
49943 + *[0-9a-f]*: e1 c4 7f ff ldm r4,r0-lr
49944 + *[0-9a-f]*: e1 ce 00 01 ldm lr,r0
49945 + *[0-9a-f]*: e1 c9 40 22 ldm r9,r1,r5,lr
49946 + *[0-9a-f]*: e1 cb 81 ec ldm r11,r2-r3,r5-r8,pc
49947 + *[0-9a-f]*: e1 c6 a2 09 ldm r6,r0,r3,r9,sp,pc
49948 +
49949 +[0-9a-f]* <ldm_pu>:
49950 + *[0-9a-f]*: e3 cf 03 c0 ldm pc\+\+,r6-r9
49951 + *[0-9a-f]*: e3 cc ff ff ldm r12\+\+,r0-pc
49952 + *[0-9a-f]*: e3 c5 80 00 ldm r5\+\+,pc
49953 + *[0-9a-f]*: e3 c4 7f ff ldm r4\+\+,r0-lr
49954 + *[0-9a-f]*: e3 ce 00 01 ldm lr\+\+,r0
49955 + *[0-9a-f]*: e3 cc d5 38 ldm r12\+\+,r3-r5,r8,r10,r12,lr-pc
49956 + *[0-9a-f]*: e3 ca c0 74 ldm r10\+\+,r2,r4-r6,lr-pc
49957 + *[0-9a-f]*: e3 c6 7e 1a ldm r6\+\+,r1,r3-r4,r9-lr
49958 +
49959 +[0-9a-f]* <ldmts>:
49960 + *[0-9a-f]*: e5 cf 01 80 ldmts pc,r7-r8
49961 + *[0-9a-f]*: e5 cc ff ff ldmts r12,r0-pc
49962 + *[0-9a-f]*: e5 c5 80 00 ldmts r5,pc
49963 + *[0-9a-f]*: e5 c4 7f ff ldmts r4,r0-lr
49964 + *[0-9a-f]*: e5 ce 00 01 ldmts lr,r0
49965 + *[0-9a-f]*: e5 c0 18 06 ldmts r0,r1-r2,r11-r12
49966 + *[0-9a-f]*: e5 ce 61 97 ldmts lr,r0-r2,r4,r7-r8,sp-lr
49967 + *[0-9a-f]*: e5 cc c2 3b ldmts r12,r0-r1,r3-r5,r9,lr-pc
49968 +
49969 +[0-9a-f]* <ldmts_pu>:
49970 + *[0-9a-f]*: e7 cf 02 00 ldmts pc\+\+,r9
49971 + *[0-9a-f]*: e7 cc ff ff ldmts r12\+\+,r0-pc
49972 + *[0-9a-f]*: e7 c5 80 00 ldmts r5\+\+,pc
49973 + *[0-9a-f]*: e7 c4 7f ff ldmts r4\+\+,r0-lr
49974 + *[0-9a-f]*: e7 ce 00 01 ldmts lr\+\+,r0
49975 + *[0-9a-f]*: e7 cd 0a bd ldmts sp\+\+,r0,r2-r5,r7,r9,r11
49976 + *[0-9a-f]*: e7 c5 0c 8e ldmts r5\+\+,r1-r3,r7,r10-r11
49977 + *[0-9a-f]*: e7 c8 a1 9c ldmts r8\+\+,r2-r4,r7-r8,sp,pc
49978 +
49979 +[0-9a-f]* <stm>:
49980 + *[0-9a-f]*: e9 cf 00 80 stm pc,r7
49981 + *[0-9a-f]*: e9 cc ff ff stm r12,r0-pc
49982 + *[0-9a-f]*: e9 c5 80 00 stm r5,pc
49983 + *[0-9a-f]*: e9 c4 7f ff stm r4,r0-lr
49984 + *[0-9a-f]*: e9 ce 00 01 stm lr,r0
49985 + *[0-9a-f]*: e9 cd 49 2c stm sp,r2-r3,r5,r8,r11,lr
49986 + *[0-9a-f]*: e9 c4 4c 5f stm r4,r0-r4,r6,r10-r11,lr
49987 + *[0-9a-f]*: e9 c9 f2 22 stm r9,r1,r5,r9,r12-pc
49988 +
49989 +[0-9a-f]* <stm_pu>:
49990 + *[0-9a-f]*: eb cf 00 70 stm --pc,r4-r6
49991 + *[0-9a-f]*: eb cc ff ff stm --r12,r0-pc
49992 + *[0-9a-f]*: eb c5 80 00 stm --r5,pc
49993 + *[0-9a-f]*: eb c4 7f ff stm --r4,r0-lr
49994 + *[0-9a-f]*: eb ce 00 01 stm --lr,r0
49995 + *[0-9a-f]*: eb cb fb f1 stm --r11,r0,r4-r9,r11-pc
49996 + *[0-9a-f]*: eb cb 56 09 stm --r11,r0,r3,r9-r10,r12,lr
49997 + *[0-9a-f]*: eb c6 63 04 stm --r6,r2,r8-r9,sp-lr
49998 +
49999 +[0-9a-f]* <stmts>:
50000 + *[0-9a-f]*: ed cf 01 00 stmts pc,r8
50001 + *[0-9a-f]*: ed cc ff ff stmts r12,r0-pc
50002 + *[0-9a-f]*: ed c5 80 00 stmts r5,pc
50003 + *[0-9a-f]*: ed c4 7f ff stmts r4,r0-lr
50004 + *[0-9a-f]*: ed ce 00 01 stmts lr,r0
50005 + *[0-9a-f]*: ed c1 c6 5b stmts r1,r0-r1,r3-r4,r6,r9-r10,lr-pc
50006 + *[0-9a-f]*: ed c3 1d c1 stmts r3,r0,r6-r8,r10-r12
50007 + *[0-9a-f]*: ed cb d6 d1 stmts r11,r0,r4,r6-r7,r9-r10,r12,lr-pc
50008 +
50009 +[0-9a-f]* <stmts_pu>:
50010 + *[0-9a-f]*: ef cf 01 c0 stmts --pc,r6-r8
50011 + *[0-9a-f]*: ef cc ff ff stmts --r12,r0-pc
50012 + *[0-9a-f]*: ef c5 80 00 stmts --r5,pc
50013 + *[0-9a-f]*: ef c4 7f ff stmts --r4,r0-lr
50014 + *[0-9a-f]*: ef ce 00 01 stmts --lr,r0
50015 + *[0-9a-f]*: ef c2 36 19 stmts --r2,r0,r3-r4,r9-r10,r12-sp
50016 + *[0-9a-f]*: ef c3 c0 03 stmts --r3,r0-r1,lr-pc
50017 + *[0-9a-f]*: ef c0 44 7d stmts --r0,r0,r2-r6,r10,lr
50018 +
50019 +[0-9a-f]* <ldins_h>:
50020 + *[0-9a-f]*: ff df 00 00 ldins\.h pc:b,pc\[0\]
50021 + *[0-9a-f]*: f9 dc 1f ff ldins\.h r12:t,r12\[-2\]
50022 + *[0-9a-f]*: eb d5 18 00 ldins\.h r5:t,r5\[-4096\]
50023 + *[0-9a-f]*: e9 d4 07 ff ldins\.h r4:b,r4\[4094\]
50024 + *[0-9a-f]*: fd de 10 01 ldins\.h lr:t,lr\[2\]
50025 + *[0-9a-f]*: fd d0 13 c5 ldins\.h r0:t,lr\[1930\]
50026 + *[0-9a-f]*: ef d3 0e f5 ldins\.h r3:b,r7\[-534\]
50027 + *[0-9a-f]*: f9 d2 0b 9a ldins\.h r2:b,r12\[-2252\]
50028 +
50029 +[0-9a-f]* <ldins_b>:
50030 + *[0-9a-f]*: ff df 40 00 ldins\.b pc:b,pc\[0\]
50031 + *[0-9a-f]*: f9 dc 7f ff ldins\.b r12:t,r12\[-1\]
50032 + *[0-9a-f]*: eb d5 68 00 ldins\.b r5:u,r5\[-2048\]
50033 + *[0-9a-f]*: e9 d4 57 ff ldins\.b r4:l,r4\[2047\]
50034 + *[0-9a-f]*: fd de 50 01 ldins\.b lr:l,lr\[1\]
50035 + *[0-9a-f]*: e9 d6 7d 6a ldins\.b r6:t,r4\[-662\]
50036 + *[0-9a-f]*: e3 d5 4f 69 ldins\.b r5:b,r1\[-151\]
50037 + *[0-9a-f]*: f7 da 78 7d ldins\.b r10:t,r11\[-1923\]
50038 +
50039 +[0-9a-f]* <ldswp_sh>:
50040 + *[0-9a-f]*: ff df 20 00 ldswp\.sh pc,pc\[0\]
50041 + *[0-9a-f]*: f9 dc 2f ff ldswp\.sh r12,r12\[-2\]
50042 + *[0-9a-f]*: eb d5 28 00 ldswp\.sh r5,r5\[-4096\]
50043 + *[0-9a-f]*: e9 d4 27 ff ldswp\.sh r4,r4\[4094\]
50044 + *[0-9a-f]*: fd de 20 01 ldswp\.sh lr,lr\[2\]
50045 + *[0-9a-f]*: f5 d9 27 84 ldswp\.sh r9,r10\[3848\]
50046 + *[0-9a-f]*: f9 d4 2c 04 ldswp\.sh r4,r12\[-2040\]
50047 + *[0-9a-f]*: e5 da 26 08 ldswp\.sh r10,r2\[3088\]
50048 +
50049 +[0-9a-f]* <ldswp_uh>:
50050 + *[0-9a-f]*: ff df 30 00 ldswp\.uh pc,pc\[0\]
50051 + *[0-9a-f]*: f9 dc 3f ff ldswp\.uh r12,r12\[-2\]
50052 + *[0-9a-f]*: eb d5 38 00 ldswp\.uh r5,r5\[-4096\]
50053 + *[0-9a-f]*: e9 d4 37 ff ldswp\.uh r4,r4\[4094\]
50054 + *[0-9a-f]*: fd de 30 01 ldswp\.uh lr,lr\[2\]
50055 + *[0-9a-f]*: f3 d4 37 46 ldswp\.uh r4,r9\[3724\]
50056 + *[0-9a-f]*: fb de 3c bc ldswp\.uh lr,sp\[-1672\]
50057 + *[0-9a-f]*: f9 d8 38 7d ldswp\.uh r8,r12\[-3846\]
50058 +
50059 +[0-9a-f]* <ldswp_w>:
50060 + *[0-9a-f]*: ff df 80 00 ldswp\.w pc,pc\[0\]
50061 + *[0-9a-f]*: f9 dc 8f ff ldswp\.w r12,r12\[-4\]
50062 + *[0-9a-f]*: eb d5 88 00 ldswp\.w r5,r5\[-8192\]
50063 + *[0-9a-f]*: e9 d4 87 ff ldswp\.w r4,r4\[8188\]
50064 + *[0-9a-f]*: fd de 80 01 ldswp\.w lr,lr\[4\]
50065 + *[0-9a-f]*: ef dd 81 d1 ldswp\.w sp,r7\[1860\]
50066 + *[0-9a-f]*: eb df 8c c1 ldswp\.w pc,r5\[-3324\]
50067 + *[0-9a-f]*: f5 dc 8c c8 ldswp\.w r12,r10\[-3296\]
50068 +
50069 +[0-9a-f]* <stswp_h>:
50070 + *[0-9a-f]*: ff df 90 00 stswp\.h pc\[0\],pc
50071 + *[0-9a-f]*: f9 dc 9f ff stswp\.h r12\[-2\],r12
50072 + *[0-9a-f]*: eb d5 98 00 stswp\.h r5\[-4096\],r5
50073 + *[0-9a-f]*: e9 d4 97 ff stswp\.h r4\[4094\],r4
50074 + *[0-9a-f]*: fd de 90 01 stswp\.h lr\[2\],lr
50075 + *[0-9a-f]*: ef da 90 20 stswp\.h r7\[64\],r10
50076 + *[0-9a-f]*: f5 d2 95 e8 stswp\.h r10\[3024\],r2
50077 + *[0-9a-f]*: e1 da 9b 74 stswp\.h r0\[-2328\],r10
50078 +
50079 +[0-9a-f]* <stswp_w>:
50080 + *[0-9a-f]*: ff df a0 00 stswp\.w pc\[0\],pc
50081 + *[0-9a-f]*: f9 dc af ff stswp\.w r12\[-4\],r12
50082 + *[0-9a-f]*: eb d5 a8 00 stswp\.w r5\[-8192\],r5
50083 + *[0-9a-f]*: e9 d4 a7 ff stswp\.w r4\[8188\],r4
50084 + *[0-9a-f]*: fd de a0 01 stswp\.w lr\[4\],lr
50085 + *[0-9a-f]*: ff d8 a1 21 stswp\.w pc\[1156\],r8
50086 + *[0-9a-f]*: fb da a7 ce stswp\.w sp\[7992\],r10
50087 + *[0-9a-f]*: f1 d5 ae db stswp\.w r8\[-1172\],r5
50088 +
50089 +[0-9a-f]* <and2>:
50090 + *[0-9a-f]*: ff ef 00 0f and pc,pc,pc
50091 + *[0-9a-f]*: f9 ec 01 fc and r12,r12,r12<<0x1f
50092 + *[0-9a-f]*: eb e5 01 05 and r5,r5,r5<<0x10
50093 + *[0-9a-f]*: e9 e4 00 f4 and r4,r4,r4<<0xf
50094 + *[0-9a-f]*: fd ee 00 1e and lr,lr,lr<<0x1
50095 + *[0-9a-f]*: e5 e1 00 1a and r10,r2,r1<<0x1
50096 + *[0-9a-f]*: f1 eb 01 bc and r12,r8,r11<<0x1b
50097 + *[0-9a-f]*: ef e0 00 3a and r10,r7,r0<<0x3
50098 +
50099 +[0-9a-f]* <and3>:
50100 + *[0-9a-f]*: ff ef 02 0f and pc,pc,pc
50101 + *[0-9a-f]*: f9 ec 03 fc and r12,r12,r12>>0x1f
50102 + *[0-9a-f]*: eb e5 03 05 and r5,r5,r5>>0x10
50103 + *[0-9a-f]*: e9 e4 02 f4 and r4,r4,r4>>0xf
50104 + *[0-9a-f]*: fd ee 02 1e and lr,lr,lr>>0x1
50105 + *[0-9a-f]*: f1 e7 03 1c and r12,r8,r7>>0x11
50106 + *[0-9a-f]*: e9 e9 03 4f and pc,r4,r9>>0x14
50107 + *[0-9a-f]*: f3 ea 02 ca and r10,r9,r10>>0xc
50108 +
50109 +[0-9a-f]* <or2>:
50110 + *[0-9a-f]*: ff ef 10 0f or pc,pc,pc
50111 + *[0-9a-f]*: f9 ec 11 fc or r12,r12,r12<<0x1f
50112 + *[0-9a-f]*: eb e5 11 05 or r5,r5,r5<<0x10
50113 + *[0-9a-f]*: e9 e4 10 f4 or r4,r4,r4<<0xf
50114 + *[0-9a-f]*: fd ee 10 1e or lr,lr,lr<<0x1
50115 + *[0-9a-f]*: fb eb 11 d8 or r8,sp,r11<<0x1d
50116 + *[0-9a-f]*: f3 e2 11 cf or pc,r9,r2<<0x1c
50117 + *[0-9a-f]*: e3 e2 10 35 or r5,r1,r2<<0x3
50118 +
50119 +[0-9a-f]* <or3>:
50120 + *[0-9a-f]*: ff ef 12 0f or pc,pc,pc
50121 + *[0-9a-f]*: f9 ec 13 fc or r12,r12,r12>>0x1f
50122 + *[0-9a-f]*: eb e5 13 05 or r5,r5,r5>>0x10
50123 + *[0-9a-f]*: e9 e4 12 f4 or r4,r4,r4>>0xf
50124 + *[0-9a-f]*: fd ee 12 1e or lr,lr,lr>>0x1
50125 + *[0-9a-f]*: fb ed 12 21 or r1,sp,sp>>0x2
50126 + *[0-9a-f]*: e3 e1 13 d0 or r0,r1,r1>>0x1d
50127 + *[0-9a-f]*: f9 e8 12 84 or r4,r12,r8>>0x8
50128 +
50129 +[0-9a-f]* <eor2>:
50130 + *[0-9a-f]*: ff ef 20 0f eor pc,pc,pc
50131 + *[0-9a-f]*: f9 ec 21 fc eor r12,r12,r12<<0x1f
50132 + *[0-9a-f]*: eb e5 21 05 eor r5,r5,r5<<0x10
50133 + *[0-9a-f]*: e9 e4 20 f4 eor r4,r4,r4<<0xf
50134 + *[0-9a-f]*: fd ee 20 1e eor lr,lr,lr<<0x1
50135 + *[0-9a-f]*: f3 e4 20 ba eor r10,r9,r4<<0xb
50136 + *[0-9a-f]*: e1 e1 21 f4 eor r4,r0,r1<<0x1f
50137 + *[0-9a-f]*: e5 ec 20 d6 eor r6,r2,r12<<0xd
50138 +
50139 +[0-9a-f]* <eor3>:
50140 + *[0-9a-f]*: ff ef 22 0f eor pc,pc,pc
50141 + *[0-9a-f]*: f9 ec 23 fc eor r12,r12,r12>>0x1f
50142 + *[0-9a-f]*: eb e5 23 05 eor r5,r5,r5>>0x10
50143 + *[0-9a-f]*: e9 e4 22 f4 eor r4,r4,r4>>0xf
50144 + *[0-9a-f]*: fd ee 22 1e eor lr,lr,lr>>0x1
50145 + *[0-9a-f]*: eb e5 23 65 eor r5,r5,r5>>0x16
50146 + *[0-9a-f]*: e3 ee 22 3a eor r10,r1,lr>>0x3
50147 + *[0-9a-f]*: fd ed 23 a7 eor r7,lr,sp>>0x1a
50148 +
50149 +[0-9a-f]* <sthh_w2>:
50150 + *[0-9a-f]*: ff ef 8f 0f sthh\.w pc\[pc\],pc:b,pc:b
50151 + *[0-9a-f]*: f9 ec bc 3c sthh\.w r12\[r12<<0x3\],r12:t,r12:t
50152 + *[0-9a-f]*: eb e5 b5 25 sthh\.w r5\[r5<<0x2\],r5:t,r5:t
50153 + *[0-9a-f]*: e9 e4 84 14 sthh\.w r4\[r4<<0x1\],r4:b,r4:b
50154 + *[0-9a-f]*: fd ee be 1e sthh\.w lr\[lr<<0x1\],lr:t,lr:t
50155 + *[0-9a-f]*: e3 ec b6 3d sthh\.w sp\[r6<<0x3\],r1:t,r12:t
50156 + *[0-9a-f]*: f3 e9 b6 06 sthh\.w r6\[r6\],r9:t,r9:t
50157 + *[0-9a-f]*: e1 eb 93 0a sthh\.w r10\[r3\],r0:b,r11:t
50158 +
50159 +[0-9a-f]* <sthh_w1>:
50160 + *[0-9a-f]*: ff ef c0 0f sthh\.w pc\[0x0\],pc:b,pc:b
50161 + *[0-9a-f]*: f9 ec ff fc sthh\.w r12\[0x3fc\],r12:t,r12:t
50162 + *[0-9a-f]*: eb e5 f8 05 sthh\.w r5\[0x200\],r5:t,r5:t
50163 + *[0-9a-f]*: e9 e4 c7 f4 sthh\.w r4\[0x1fc\],r4:b,r4:b
50164 + *[0-9a-f]*: fd ee f0 1e sthh\.w lr\[0x4\],lr:t,lr:t
50165 + *[0-9a-f]*: f3 e0 e6 54 sthh\.w r4\[0x194\],r9:t,r0:b
50166 + *[0-9a-f]*: e5 ea e5 78 sthh\.w r8\[0x15c\],r2:t,r10:b
50167 + *[0-9a-f]*: f3 e2 c2 bd sthh\.w sp\[0xac\],r9:b,r2:b
50168 +
50169 +[0-9a-f]* <cop>:
50170 + *[0-9a-f]*: e1 a0 00 00 cop cp0,cr0,cr0,cr0,0x0
50171 + *[0-9a-f]*: e7 af ff ff cop cp7,cr15,cr15,cr15,0x7f
50172 + *[0-9a-f]*: e3 a8 75 55 cop cp3,cr5,cr5,cr5,0x31
50173 + *[0-9a-f]*: e3 a8 44 44 cop cp2,cr4,cr4,cr4,0x30
50174 + *[0-9a-f]*: e5 ad a8 37 cop cp5,cr8,cr3,cr7,0x5a
50175 +
50176 +[0-9a-f]* <ldc_w1>:
50177 + *[0-9a-f]*: e9 a0 00 00 ldc\.w cp0,cr0,r0\[0x0\]
50178 + *[0-9a-f]*: e9 af ef ff ldc\.w cp7,cr15,pc\[0x3fc\]
50179 + *[0-9a-f]*: e9 a5 65 80 ldc\.w cp3,cr5,r5\[0x200\]
50180 + *[0-9a-f]*: e9 a4 44 7f ldc\.w cp2,cr4,r4\[0x1fc\]
50181 + *[0-9a-f]*: e9 ad 89 24 ldc\.w cp4,cr9,sp\[0x90\]
50182 +
50183 +[0-9a-f]* <ldc_w2>:
50184 + *[0-9a-f]*: ef a0 00 40 ldc\.w cp0,cr0,--r0
50185 + *[0-9a-f]*: ef af ef 40 ldc\.w cp7,cr15,--pc
50186 + *[0-9a-f]*: ef a5 65 40 ldc\.w cp3,cr5,--r5
50187 + *[0-9a-f]*: ef a4 44 40 ldc\.w cp2,cr4,--r4
50188 + *[0-9a-f]*: ef ad 89 40 ldc\.w cp4,cr9,--sp
50189 +
50190 +[0-9a-f]* <ldc_w3>:
50191 + *[0-9a-f]*: ef a0 10 00 ldc\.w cp0,cr0,r0\[r0\]
50192 + *[0-9a-f]*: ef af ff 3f ldc\.w cp7,cr15,pc\[pc<<0x3\]
50193 + *[0-9a-f]*: ef a5 75 24 ldc\.w cp3,cr5,r5\[r4<<0x2\]
50194 + *[0-9a-f]*: ef a4 54 13 ldc\.w cp2,cr4,r4\[r3<<0x1\]
50195 + *[0-9a-f]*: ef ad 99 0c ldc\.w cp4,cr9,sp\[r12\]
50196 +
50197 +[0-9a-f]* <ldc_d1>:
50198 + *[0-9a-f]*: e9 a0 10 00 ldc\.d cp0,cr0,r0\[0x0\]
50199 + *[0-9a-f]*: e9 af fe ff ldc\.d cp7,cr14,pc\[0x3fc\]
50200 + *[0-9a-f]*: e9 a5 76 80 ldc\.d cp3,cr6,r5\[0x200\]
50201 + *[0-9a-f]*: e9 a4 54 7f ldc\.d cp2,cr4,r4\[0x1fc\]
50202 + *[0-9a-f]*: e9 ad 98 24 ldc\.d cp4,cr8,sp\[0x90\]
50203 +
50204 +[0-9a-f]* <ldc_d2>:
50205 + *[0-9a-f]*: ef a0 00 50 ldc\.d cp0,cr0,--r0
50206 + *[0-9a-f]*: ef af ee 50 ldc\.d cp7,cr14,--pc
50207 + *[0-9a-f]*: ef a5 66 50 ldc\.d cp3,cr6,--r5
50208 + *[0-9a-f]*: ef a4 44 50 ldc\.d cp2,cr4,--r4
50209 + *[0-9a-f]*: ef ad 88 50 ldc\.d cp4,cr8,--sp
50210 +
50211 +[0-9a-f]* <ldc_d3>:
50212 + *[0-9a-f]*: ef a0 10 40 ldc\.d cp0,cr0,r0\[r0\]
50213 + *[0-9a-f]*: ef af fe 7f ldc\.d cp7,cr14,pc\[pc<<0x3\]
50214 + *[0-9a-f]*: ef a5 76 64 ldc\.d cp3,cr6,r5\[r4<<0x2\]
50215 + *[0-9a-f]*: ef a4 54 53 ldc\.d cp2,cr4,r4\[r3<<0x1\]
50216 + *[0-9a-f]*: ef ad 98 4c ldc\.d cp4,cr8,sp\[r12\]
50217 +
50218 +[0-9a-f]* <stc_w1>:
50219 + *[0-9a-f]*: eb a0 00 00 stc\.w cp0,r0\[0x0\],cr0
50220 + *[0-9a-f]*: eb af ef ff stc\.w cp7,pc\[0x3fc\],cr15
50221 + *[0-9a-f]*: eb a5 65 80 stc\.w cp3,r5\[0x200\],cr5
50222 + *[0-9a-f]*: eb a4 44 7f stc\.w cp2,r4\[0x1fc\],cr4
50223 + *[0-9a-f]*: eb ad 89 24 stc\.w cp4,sp\[0x90\],cr9
50224 +
50225 +[0-9a-f]* <stc_w2>:
50226 + *[0-9a-f]*: ef a0 00 60 stc\.w cp0,r0\+\+,cr0
50227 + *[0-9a-f]*: ef af ef 60 stc\.w cp7,pc\+\+,cr15
50228 + *[0-9a-f]*: ef a5 65 60 stc\.w cp3,r5\+\+,cr5
50229 + *[0-9a-f]*: ef a4 44 60 stc\.w cp2,r4\+\+,cr4
50230 + *[0-9a-f]*: ef ad 89 60 stc\.w cp4,sp\+\+,cr9
50231 +
50232 +[0-9a-f]* <stc_w3>:
50233 + *[0-9a-f]*: ef a0 10 80 stc\.w cp0,r0\[r0\],cr0
50234 + *[0-9a-f]*: ef af ff bf stc\.w cp7,pc\[pc<<0x3\],cr15
50235 + *[0-9a-f]*: ef a5 75 a4 stc\.w cp3,r5\[r4<<0x2\],cr5
50236 + *[0-9a-f]*: ef a4 54 93 stc\.w cp2,r4\[r3<<0x1\],cr4
50237 + *[0-9a-f]*: ef ad 99 8c stc\.w cp4,sp\[r12\],cr9
50238 +
50239 +[0-9a-f]* <stc_d1>:
50240 + *[0-9a-f]*: eb a0 10 00 stc\.d cp0,r0\[0x0\],cr0
50241 + *[0-9a-f]*: eb af fe ff stc\.d cp7,pc\[0x3fc\],cr14
50242 + *[0-9a-f]*: eb a5 76 80 stc\.d cp3,r5\[0x200\],cr6
50243 + *[0-9a-f]*: eb a4 54 7f stc\.d cp2,r4\[0x1fc\],cr4
50244 + *[0-9a-f]*: eb ad 98 24 stc\.d cp4,sp\[0x90\],cr8
50245 +
50246 +[0-9a-f]* <stc_d2>:
50247 + *[0-9a-f]*: ef a0 00 70 stc\.d cp0,r0\+\+,cr0
50248 + *[0-9a-f]*: ef af ee 70 stc\.d cp7,pc\+\+,cr14
50249 + *[0-9a-f]*: ef a5 66 70 stc\.d cp3,r5\+\+,cr6
50250 + *[0-9a-f]*: ef a4 44 70 stc\.d cp2,r4\+\+,cr4
50251 + *[0-9a-f]*: ef ad 88 70 stc\.d cp4,sp\+\+,cr8
50252 +
50253 +[0-9a-f]* <stc_d3>:
50254 + *[0-9a-f]*: ef a0 10 c0 stc\.d cp0,r0\[r0\],cr0
50255 + *[0-9a-f]*: ef af fe ff stc\.d cp7,pc\[pc<<0x3\],cr14
50256 + *[0-9a-f]*: ef a5 76 e4 stc\.d cp3,r5\[r4<<0x2\],cr6
50257 + *[0-9a-f]*: ef a4 54 d3 stc\.d cp2,r4\[r3<<0x1\],cr4
50258 + *[0-9a-f]*: ef ad 98 cc stc\.d cp4,sp\[r12\],cr8
50259 +
50260 +[0-9a-f]* <ldc0_w>:
50261 + *[0-9a-f]*: f1 a0 00 00 ldc0\.w cr0,r0\[0x0\]
50262 + *[0-9a-f]*: f1 af ff ff ldc0\.w cr15,pc\[0x3ffc\]
50263 + *[0-9a-f]*: f1 a5 85 00 ldc0\.w cr5,r5\[0x2000\]
50264 + *[0-9a-f]*: f1 a4 74 ff ldc0\.w cr4,r4\[0x1ffc\]
50265 + *[0-9a-f]*: f1 ad 09 93 ldc0\.w cr9,sp\[0x24c\]
50266 +
50267 +[0-9a-f]* <ldc0_d>:
50268 + *[0-9a-f]*: f3 a0 00 00 ldc0\.d cr0,r0\[0x0\]
50269 + *[0-9a-f]*: f3 af fe ff ldc0\.d cr14,pc\[0x3ffc\]
50270 + *[0-9a-f]*: f3 a5 86 00 ldc0\.d cr6,r5\[0x2000\]
50271 + *[0-9a-f]*: f3 a4 74 ff ldc0\.d cr4,r4\[0x1ffc\]
50272 + *[0-9a-f]*: f3 ad 08 93 ldc0\.d cr8,sp\[0x24c\]
50273 +
50274 +[0-9a-f]* <stc0_w>:
50275 + *[0-9a-f]*: f5 a0 00 00 stc0\.w r0\[0x0\],cr0
50276 + *[0-9a-f]*: f5 af ff ff stc0\.w pc\[0x3ffc\],cr15
50277 + *[0-9a-f]*: f5 a5 85 00 stc0\.w r5\[0x2000\],cr5
50278 + *[0-9a-f]*: f5 a4 74 ff stc0\.w r4\[0x1ffc\],cr4
50279 + *[0-9a-f]*: f5 ad 09 93 stc0\.w sp\[0x24c\],cr9
50280 +
50281 +[0-9a-f]* <stc0_d>:
50282 + *[0-9a-f]*: f7 a0 00 00 stc0\.d r0\[0x0\],cr0
50283 + *[0-9a-f]*: f7 af fe ff stc0\.d pc\[0x3ffc\],cr14
50284 + *[0-9a-f]*: f7 a5 86 00 stc0\.d r5\[0x2000\],cr6
50285 + *[0-9a-f]*: f7 a4 74 ff stc0\.d r4\[0x1ffc\],cr4
50286 + *[0-9a-f]*: f7 ad 08 93 stc0\.d sp\[0x24c\],cr8
50287 +
50288 +[0-9a-f]* <memc>:
50289 + *[0-9a-f]*: f6 10 00 00 memc 0,0x0
50290 + *[0-9a-f]*: f6 1f ff ff memc -4,0x1f
50291 + *[0-9a-f]*: f6 18 40 00 memc -65536,0x10
50292 + *[0-9a-f]*: f6 17 bf ff memc 65532,0xf
50293 +
50294 +[0-9a-f]* <mems>:
50295 + *[0-9a-f]*: f8 10 00 00 mems 0,0x0
50296 + *[0-9a-f]*: f8 1f ff ff mems -4,0x1f
50297 + *[0-9a-f]*: f8 18 40 00 mems -65536,0x10
50298 + *[0-9a-f]*: f8 17 bf ff mems 65532,0xf
50299 +
50300 +[0-9a-f]* <memt>:
50301 + *[0-9a-f]*: fa 10 00 00 memt 0,0x0
50302 + *[0-9a-f]*: fa 1f ff ff memt -4,0x1f
50303 + *[0-9a-f]*: fa 18 40 00 memt -65536,0x10
50304 + *[0-9a-f]*: fa 17 bf ff memt 65532,0xf
50305 +
50306 +[0-9a-f]* <stcond>:
50307 + *[0-9a-f]*: e1 70 00 00 stcond r0\[0\],r0
50308 + *[0-9a-f]*: ff 7f ff ff stcond pc\[-1\],pc
50309 + *[0-9a-f]*: f1 77 80 00 stcond r8\[-32768\],r7
50310 + *[0-9a-f]*: ef 78 7f ff stcond r7\[32767\],r8
50311 + *[0-9a-f]*: eb 7a 12 34 stcond r5\[4660\],r10
50312 +
50313 +[0-9a-f]* <ldcm_w>:
50314 + *[0-9a-f]*: ed af 00 ff ldcm\.w cp0,pc,cr0-cr7
50315 + *[0-9a-f]*: ed a0 e0 01 ldcm\.w cp7,r0,cr0
50316 + *[0-9a-f]*: ed a4 90 7f ldcm\.w cp4,r4\+\+,cr0-cr6
50317 + *[0-9a-f]*: ed a7 60 80 ldcm\.w cp3,r7,cr7
50318 + *[0-9a-f]*: ed ac 30 72 ldcm\.w cp1,r12\+\+,cr1,cr4-cr6
50319 + *[0-9a-f]*: ed af 01 ff ldcm\.w cp0,pc,cr8-cr15
50320 + *[0-9a-f]*: ed a0 e1 01 ldcm\.w cp7,r0,cr8
50321 + *[0-9a-f]*: ed a4 91 7f ldcm\.w cp4,r4\+\+,cr8-cr14
50322 + *[0-9a-f]*: ed a7 61 80 ldcm\.w cp3,r7,cr15
50323 + *[0-9a-f]*: ed ac 31 72 ldcm\.w cp1,r12\+\+,cr9,cr12-cr14
50324 +
50325 +[0-9a-f]* <ldcm_d>:
50326 + *[0-9a-f]*: ed af 04 ff ldcm\.d cp0,pc,cr0-cr15
50327 + *[0-9a-f]*: ed a0 e4 01 ldcm\.d cp7,r0,cr0-cr1
50328 + *[0-9a-f]*: ed a4 94 7f ldcm\.d cp4,r4\+\+,cr0-cr13
50329 + *[0-9a-f]*: ed a7 64 80 ldcm\.d cp3,r7,cr14-cr15
50330 + *[0-9a-f]*: ed ac 54 93 ldcm\.d cp2,r12\+\+,cr0-cr3,cr8-cr9,cr14-cr15
50331 +
50332 +[0-9a-f]* <stcm_w>:
50333 + *[0-9a-f]*: ed af 02 ff stcm\.w cp0,pc,cr0-cr7
50334 + *[0-9a-f]*: ed a0 e2 01 stcm\.w cp7,r0,cr0
50335 + *[0-9a-f]*: ed a4 92 7f stcm\.w cp4,--r4,cr0-cr6
50336 + *[0-9a-f]*: ed a7 62 80 stcm\.w cp3,r7,cr7
50337 + *[0-9a-f]*: ed ac 32 72 stcm\.w cp1,--r12,cr1,cr4-cr6
50338 + *[0-9a-f]*: ed af 03 ff stcm\.w cp0,pc,cr8-cr15
50339 + *[0-9a-f]*: ed a0 e3 01 stcm\.w cp7,r0,cr8
50340 + *[0-9a-f]*: ed a4 93 7f stcm\.w cp4,--r4,cr8-cr14
50341 + *[0-9a-f]*: ed a7 63 80 stcm\.w cp3,r7,cr15
50342 + *[0-9a-f]*: ed ac 33 72 stcm\.w cp1,--r12,cr9,cr12-cr14
50343 +
50344 +[0-9a-f]* <stcm_d>:
50345 + *[0-9a-f]*: ed af 05 ff stcm\.d cp0,pc,cr0-cr15
50346 + *[0-9a-f]*: ed a0 e5 01 stcm\.d cp7,r0,cr0-cr1
50347 + *[0-9a-f]*: ed a4 95 7f stcm\.d cp4,--r4,cr0-cr13
50348 + *[0-9a-f]*: ed a7 65 80 stcm\.d cp3,r7,cr14-cr15
50349 + *[0-9a-f]*: ed ac 55 93 stcm\.d cp2,--r12,cr0-cr3,cr8-cr9,cr14-cr15
50350 +
50351 +[0-9a-f]* <mvcr_w>:
50352 + *[0-9a-f]*: ef af ef 00 mvcr\.w cp7,pc,cr15
50353 + *[0-9a-f]*: ef a0 00 00 mvcr\.w cp0,r0,cr0
50354 + *[0-9a-f]*: ef af 0f 00 mvcr\.w cp0,pc,cr15
50355 + *[0-9a-f]*: ef a0 ef 00 mvcr\.w cp7,r0,cr15
50356 + *[0-9a-f]*: ef af e0 00 mvcr\.w cp7,pc,cr0
50357 + *[0-9a-f]*: ef a7 88 00 mvcr\.w cp4,r7,cr8
50358 + *[0-9a-f]*: ef a8 67 00 mvcr\.w cp3,r8,cr7
50359 +
50360 +[0-9a-f]* <mvcr_d>:
50361 + *[0-9a-f]*: ef ae ee 10 mvcr\.d cp7,lr,cr14
50362 + *[0-9a-f]*: ef a0 00 10 mvcr\.d cp0,r0,cr0
50363 + *[0-9a-f]*: ef ae 0e 10 mvcr\.d cp0,lr,cr14
50364 + *[0-9a-f]*: ef a0 ee 10 mvcr\.d cp7,r0,cr14
50365 + *[0-9a-f]*: ef ae e0 10 mvcr\.d cp7,lr,cr0
50366 + *[0-9a-f]*: ef a6 88 10 mvcr\.d cp4,r6,cr8
50367 + *[0-9a-f]*: ef a8 66 10 mvcr\.d cp3,r8,cr6
50368 +
50369 +[0-9a-f]* <mvrc_w>:
50370 + *[0-9a-f]*: ef af ef 20 mvrc\.w cp7,cr15,pc
50371 + *[0-9a-f]*: ef a0 00 20 mvrc\.w cp0,cr0,r0
50372 + *[0-9a-f]*: ef af 0f 20 mvrc\.w cp0,cr15,pc
50373 + *[0-9a-f]*: ef a0 ef 20 mvrc\.w cp7,cr15,r0
50374 + *[0-9a-f]*: ef af e0 20 mvrc\.w cp7,cr0,pc
50375 + *[0-9a-f]*: ef a7 88 20 mvrc\.w cp4,cr8,r7
50376 + *[0-9a-f]*: ef a8 67 20 mvrc\.w cp3,cr7,r8
50377 +
50378 +[0-9a-f]* <mvrc_d>:
50379 + *[0-9a-f]*: ef ae ee 30 mvrc\.d cp7,cr14,lr
50380 + *[0-9a-f]*: ef a0 00 30 mvrc\.d cp0,cr0,r0
50381 + *[0-9a-f]*: ef ae 0e 30 mvrc\.d cp0,cr14,lr
50382 + *[0-9a-f]*: ef a0 ee 30 mvrc\.d cp7,cr14,r0
50383 + *[0-9a-f]*: ef ae e0 30 mvrc\.d cp7,cr0,lr
50384 + *[0-9a-f]*: ef a6 88 30 mvrc\.d cp4,cr8,r6
50385 + *[0-9a-f]*: ef a8 66 30 mvrc\.d cp3,cr6,r8
50386 +
50387 +[0-9a-f]* <bfexts>:
50388 + *[0-9a-f]*: ff df b3 ff bfexts pc,pc,0x1f,0x1f
50389 + *[0-9a-f]*: e1 d0 b0 00 bfexts r0,r0,0x0,0x0
50390 + *[0-9a-f]*: e1 df b3 ff bfexts r0,pc,0x1f,0x1f
50391 + *[0-9a-f]*: ff d0 b3 ff bfexts pc,r0,0x1f,0x1f
50392 + *[0-9a-f]*: ff df b0 1f bfexts pc,pc,0x0,0x1f
50393 + *[0-9a-f]*: ff df b3 e0 bfexts pc,pc,0x1f,0x0
50394 + *[0-9a-f]*: ef d8 b1 f0 bfexts r7,r8,0xf,0x10
50395 + *[0-9a-f]*: f1 d7 b2 0f bfexts r8,r7,0x10,0xf
50396 +
50397 +[0-9a-f]* <bfextu>:
50398 + *[0-9a-f]*: ff df c3 ff bfextu pc,pc,0x1f,0x1f
50399 + *[0-9a-f]*: e1 d0 c0 00 bfextu r0,r0,0x0,0x0
50400 + *[0-9a-f]*: e1 df c3 ff bfextu r0,pc,0x1f,0x1f
50401 + *[0-9a-f]*: ff d0 c3 ff bfextu pc,r0,0x1f,0x1f
50402 + *[0-9a-f]*: ff df c0 1f bfextu pc,pc,0x0,0x1f
50403 + *[0-9a-f]*: ff df c3 e0 bfextu pc,pc,0x1f,0x0
50404 + *[0-9a-f]*: ef d8 c1 f0 bfextu r7,r8,0xf,0x10
50405 + *[0-9a-f]*: f1 d7 c2 0f bfextu r8,r7,0x10,0xf
50406 +
50407 +[0-9a-f]* <bfins>:
50408 + *[0-9a-f]*: ff df d3 ff bfins pc,pc,0x1f,0x1f
50409 + *[0-9a-f]*: e1 d0 d0 00 bfins r0,r0,0x0,0x0
50410 + *[0-9a-f]*: e1 df d3 ff bfins r0,pc,0x1f,0x1f
50411 + *[0-9a-f]*: ff d0 d3 ff bfins pc,r0,0x1f,0x1f
50412 + *[0-9a-f]*: ff df d0 1f bfins pc,pc,0x0,0x1f
50413 + *[0-9a-f]*: ff df d3 e0 bfins pc,pc,0x1f,0x0
50414 + *[0-9a-f]*: ef d8 d1 f0 bfins r7,r8,0xf,0x10
50415 + *[0-9a-f]*: f1 d7 d2 0f bfins r8,r7,0x10,0xf
50416 diff -Nrup binutils-2.17/gas/testsuite/gas/avr32/allinsn.exp binutils-2.17.atmel.1.3.0/gas/testsuite/gas/avr32/allinsn.exp
50417 --- binutils-2.17/gas/testsuite/gas/avr32/allinsn.exp 1970-01-01 01:00:00.000000000 +0100
50418 +++ binutils-2.17.atmel.1.3.0/gas/testsuite/gas/avr32/allinsn.exp 2007-03-26 10:19:48.000000000 +0200
50419 @@ -0,0 +1,5 @@
50420 +# AVR32 assembler testsuite. -*- Tcl -*-
50421 +
50422 +if [istarget avr32-*-*] {
50423 + run_dump_test "allinsn"
50424 +}
50425 diff -Nrup binutils-2.17/gas/testsuite/gas/avr32/allinsn.s binutils-2.17.atmel.1.3.0/gas/testsuite/gas/avr32/allinsn.s
50426 --- binutils-2.17/gas/testsuite/gas/avr32/allinsn.s 1970-01-01 01:00:00.000000000 +0100
50427 +++ binutils-2.17.atmel.1.3.0/gas/testsuite/gas/avr32/allinsn.s 2007-03-26 10:19:48.000000000 +0200
50428 @@ -0,0 +1,3242 @@
50429 + .data
50430 +foodata: .word 42
50431 + .text
50432 +footext:
50433 + .text
50434 + .global ld_d5
50435 +ld_d5:
50436 + ld.d lr,pc[pc<<3]
50437 + ld.d r0,r0[r0<<0]
50438 + ld.d r6,r5[r5<<2]
50439 + ld.d r4,r4[r4<<1]
50440 + ld.d lr,lr[lr<<1]
50441 + ld.d r10,r3[sp<<2]
50442 + ld.d r8,r10[r6<<2]
50443 + ld.d r2,r7[r9<<0]
50444 + .text
50445 + .global ld_w5
50446 +ld_w5:
50447 + ld.w pc,pc[pc<<0]
50448 + ld.w r12,r12[r12<<3]
50449 + ld.w r5,r5[r5<<2]
50450 + ld.w r4,r4[r4<<1]
50451 + ld.w lr,lr[lr<<1]
50452 + ld.w r2,r9[r9<<0]
50453 + ld.w r11,r2[r6<<0]
50454 + ld.w r0,r2[sp<<3]
50455 + .text
50456 + .global ld_sh5
50457 +ld_sh5:
50458 + ld.sh pc,pc[pc<<0]
50459 + ld.sh r12,r12[r12<<3]
50460 + ld.sh r5,r5[r5<<2]
50461 + ld.sh r4,r4[r4<<1]
50462 + ld.sh lr,lr[lr<<1]
50463 + ld.sh r11,r0[pc<<2]
50464 + ld.sh r10,sp[r6<<2]
50465 + ld.sh r12,r2[r2<<0]
50466 + .text
50467 + .global ld_uh5
50468 +ld_uh5:
50469 + ld.uh pc,pc[pc<<0]
50470 + ld.uh r12,r12[r12<<3]
50471 + ld.uh r5,r5[r5<<2]
50472 + ld.uh r4,r4[r4<<1]
50473 + ld.uh lr,lr[lr<<1]
50474 + ld.uh r8,pc[lr<<3]
50475 + ld.uh r6,r1[pc<<1]
50476 + ld.uh r6,lr[sp<<1]
50477 + .text
50478 + .global ld_sb2
50479 +ld_sb2:
50480 + ld.sb pc,pc[pc<<0]
50481 + ld.sb r12,r12[r12<<3]
50482 + ld.sb r5,r5[r5<<2]
50483 + ld.sb r4,r4[r4<<1]
50484 + ld.sb lr,lr[lr<<1]
50485 + ld.sb r9,r1[pc<<3]
50486 + ld.sb r0,r3[r11<<1]
50487 + ld.sb r10,r5[r5<<1]
50488 + .text
50489 + .global ld_ub5
50490 +ld_ub5:
50491 + ld.ub pc,pc[pc<<0]
50492 + ld.ub r12,r12[r12<<3]
50493 + ld.ub r5,r5[r5<<2]
50494 + ld.ub r4,r4[r4<<1]
50495 + ld.ub lr,lr[lr<<1]
50496 + ld.ub r6,r12[r7<<3]
50497 + ld.ub r2,r6[r12<<0]
50498 + ld.ub r0,r7[r11<<1]
50499 + .text
50500 + .global st_d5
50501 +st_d5:
50502 + st.d pc[pc<<0],r14
50503 + st.d r12[r12<<3],r12
50504 + st.d r5[r5<<2],r6
50505 + st.d r4[r4<<1],r4
50506 + st.d lr[lr<<1],lr
50507 + st.d r1[r9<<1],r4
50508 + st.d r10[r2<<1],r4
50509 + st.d r12[r6<<0],lr
50510 + .text
50511 + .global st_w5
50512 +st_w5:
50513 + st.w pc[pc<<0],pc
50514 + st.w r12[r12<<3],r12
50515 + st.w r5[r5<<2],r5
50516 + st.w r4[r4<<1],r4
50517 + st.w lr[lr<<1],lr
50518 + st.w r1[r10<<0],r3
50519 + st.w r0[r10<<1],r9
50520 + st.w r4[r5<<3],pc
50521 + .text
50522 + .global st_h5
50523 +st_h5:
50524 + st.h pc[pc<<0],pc
50525 + st.h r12[r12<<3],r12
50526 + st.h r5[r5<<2],r5
50527 + st.h r4[r4<<1],r4
50528 + st.h lr[lr<<1],lr
50529 + st.h r2[r9<<0],r11
50530 + st.h r5[r1<<2],r12
50531 + st.h pc[r8<<2],r3
50532 + .text
50533 + .global st_b5
50534 +st_b5:
50535 + st.b pc[pc<<0],pc
50536 + st.b r12[r12<<3],r12
50537 + st.b r5[r5<<2],r5
50538 + st.b r4[r4<<1],r4
50539 + st.b lr[lr<<1],lr
50540 + st.b r1[r8<<1],r6
50541 + st.b lr[lr<<3],r1
50542 + st.b r5[r0<<2],pc
50543 + .text
50544 + .global divs
50545 +divs:
50546 + divs pc,pc,pc
50547 + divs r12,r12,r12
50548 + divs r5,r5,r5
50549 + divs r4,r4,r4
50550 + divs lr,lr,lr
50551 + divs r3,pc,pc
50552 + divs r9,r12,r2
50553 + divs r7,r4,r1
50554 + .text
50555 + .global add1
50556 +add1:
50557 + add pc,pc
50558 + add r12,r12
50559 + add r5,r5
50560 + add r4,r4
50561 + add lr,lr
50562 + add r12,r9
50563 + add r6,r3
50564 + add r10,r12
50565 + .text
50566 + .global sub1
50567 +sub1:
50568 + sub pc,pc
50569 + sub r12,r12
50570 + sub r5,r5
50571 + sub r4,r4
50572 + sub lr,lr
50573 + sub lr,r6
50574 + sub r0,sp
50575 + sub r6,r12
50576 + .text
50577 + .global rsub1
50578 +rsub1:
50579 + rsub pc,pc
50580 + rsub r12,r12
50581 + rsub r5,r5
50582 + rsub r4,r4
50583 + rsub lr,lr
50584 + rsub r11,sp
50585 + rsub r7,r4
50586 + rsub r9,r1
50587 + .text
50588 + .global cp1
50589 +cp1:
50590 + cp pc,pc
50591 + cp r12,r12
50592 + cp r5,r5
50593 + cp r4,r4
50594 + cp lr,lr
50595 + cp r6,r2
50596 + cp r0,r9
50597 + cp r3,sp
50598 + .text
50599 + .global or1
50600 +or1:
50601 + or pc,pc
50602 + or r12,r12
50603 + or r5,r5
50604 + or r4,r4
50605 + or lr,lr
50606 + or r4,r9
50607 + or r11,r4
50608 + or r4,r0
50609 + .text
50610 + .global eor1
50611 +eor1:
50612 + eor pc,pc
50613 + eor r12,r12
50614 + eor r5,r5
50615 + eor r4,r4
50616 + eor lr,lr
50617 + eor r12,r11
50618 + eor r0,r1
50619 + eor r5,pc
50620 + .text
50621 + .global and1
50622 +and1:
50623 + and pc,pc
50624 + and r12,r12
50625 + and r5,r5
50626 + and r4,r4
50627 + and lr,lr
50628 + and r8,r1
50629 + and r0,sp
50630 + and r10,r5
50631 + .text
50632 + .global tst
50633 +tst:
50634 + tst pc,pc
50635 + tst r12,r12
50636 + tst r5,r5
50637 + tst r4,r4
50638 + tst lr,lr
50639 + tst r0,r12
50640 + tst r10,r6
50641 + tst sp,r4
50642 + .text
50643 + .global andn
50644 +andn:
50645 + andn pc,pc
50646 + andn r12,r12
50647 + andn r5,r5
50648 + andn r4,r4
50649 + andn lr,lr
50650 + andn r9,r12
50651 + andn r11,sp
50652 + andn r12,r5
50653 + .text
50654 + .global mov3
50655 +mov3:
50656 + mov pc,pc
50657 + mov r12,r12
50658 + mov r5,r5
50659 + mov r4,r4
50660 + mov lr,lr
50661 + mov r5,r9
50662 + mov r11,r11
50663 + mov r2,lr
50664 + .text
50665 + .global st_w1
50666 +st_w1:
50667 + st.w pc++,pc
50668 + st.w r12++,r12
50669 + st.w r5++,r5
50670 + st.w r4++,r4
50671 + st.w lr++,lr
50672 + st.w r1++,r11
50673 + st.w sp++,r0
50674 + st.w sp++,r1
50675 + .text
50676 + .global st_h1
50677 +st_h1:
50678 + st.h pc++,pc
50679 + st.h r12++,r12
50680 + st.h r5++,r5
50681 + st.h r4++,r4
50682 + st.h lr++,lr
50683 + st.h r12++,sp
50684 + st.h r7++,lr
50685 + st.h r7++,r4
50686 + .text
50687 + .global st_b1
50688 +st_b1:
50689 + st.b pc++,pc
50690 + st.b r12++,r12
50691 + st.b r5++,r5
50692 + st.b r4++,r4
50693 + st.b lr++,lr
50694 + st.b r9++,sp
50695 + st.b r1++,sp
50696 + st.b r0++,r4
50697 + .text
50698 + .global st_w2
50699 +st_w2:
50700 + st.w --pc,pc
50701 + st.w --r12,r12
50702 + st.w --r5,r5
50703 + st.w --r4,r4
50704 + st.w --lr,lr
50705 + st.w --r1,r7
50706 + st.w --r3,r9
50707 + st.w --r5,r5
50708 + .text
50709 + .global st_h2
50710 +st_h2:
50711 + st.h --pc,pc
50712 + st.h --r12,r12
50713 + st.h --r5,r5
50714 + st.h --r4,r4
50715 + st.h --lr,lr
50716 + st.h --r5,r7
50717 + st.h --r8,r8
50718 + st.h --r7,r2
50719 + .text
50720 + .global st_b2
50721 +st_b2:
50722 + st.b --pc,pc
50723 + st.b --r12,r12
50724 + st.b --r5,r5
50725 + st.b --r4,r4
50726 + st.b --lr,lr
50727 + st.b --sp,sp
50728 + st.b --sp,r11
50729 + st.b --r4,r5
50730 + .text
50731 + .global ld_w1
50732 +ld_w1:
50733 + ld.w pc,pc++
50734 + ld.w r12,r12++
50735 + ld.w r5,r5++
50736 + ld.w r4,r4++
50737 + ld.w lr,lr++
50738 + ld.w r3,r7++
50739 + ld.w r3,lr++
50740 + ld.w r12,r5++
50741 + .text
50742 + .global ld_sh1
50743 +ld_sh1:
50744 + ld.sh pc,pc++
50745 + ld.sh r12,r12++
50746 + ld.sh r5,r5++
50747 + ld.sh r4,r4++
50748 + ld.sh lr,lr++
50749 + ld.sh r11,r2++
50750 + ld.sh r2,r8++
50751 + ld.sh r7,r6++
50752 + .text
50753 + .global ld_uh1
50754 +ld_uh1:
50755 + ld.uh pc,pc++
50756 + ld.uh r12,r12++
50757 + ld.uh r5,r5++
50758 + ld.uh r4,r4++
50759 + ld.uh lr,lr++
50760 + ld.uh r6,r7++
50761 + ld.uh r10,r11++
50762 + ld.uh lr,r4++
50763 + .text
50764 + .global ld_ub1
50765 +ld_ub1:
50766 + ld.ub pc,pc++
50767 + ld.ub r12,r12++
50768 + ld.ub r5,r5++
50769 + ld.ub r4,r4++
50770 + ld.ub lr,lr++
50771 + ld.ub r8,lr++
50772 + ld.ub r12,r12++
50773 + ld.ub r11,r10++
50774 + .text
50775 + .global ld_w2
50776 +ld_w2:
50777 + ld.w pc,--pc
50778 + ld.w r12,--r12
50779 + ld.w r5,--r5
50780 + ld.w r4,--r4
50781 + ld.w lr,--lr
50782 + ld.w r10,--lr
50783 + ld.w r12,--r9
50784 + ld.w r6,--r5
50785 + .text
50786 + .global ld_sh2
50787 +ld_sh2:
50788 + ld.sh pc,--pc
50789 + ld.sh r12,--r12
50790 + ld.sh r5,--r5
50791 + ld.sh r4,--r4
50792 + ld.sh lr,--lr
50793 + ld.sh pc,--r10
50794 + ld.sh r6,--r3
50795 + ld.sh r4,--r6
50796 + .text
50797 + .global ld_uh2
50798 +ld_uh2:
50799 + ld.uh pc,--pc
50800 + ld.uh r12,--r12
50801 + ld.uh r5,--r5
50802 + ld.uh r4,--r4
50803 + ld.uh lr,--lr
50804 + ld.uh r3,--r2
50805 + ld.uh r1,--r0
50806 + ld.uh r2,--r9
50807 + .text
50808 + .global ld_ub2
50809 +ld_ub2:
50810 + ld.ub pc,--pc
50811 + ld.ub r12,--r12
50812 + ld.ub r5,--r5
50813 + ld.ub r4,--r4
50814 + ld.ub lr,--lr
50815 + ld.ub r1,--r1
50816 + ld.ub r0,--r6
50817 + ld.ub r2,--r7
50818 + .text
50819 + .global ld_ub3
50820 +ld_ub3:
50821 + ld.ub pc,pc[0]
50822 + ld.ub r12,r12[7]
50823 + ld.ub r5,r5[4]
50824 + ld.ub r4,r4[3]
50825 + ld.ub lr,lr[1]
50826 + ld.ub r6,r9[6]
50827 + ld.ub r2,lr[4]
50828 + ld.ub r1,r8[0]
50829 + .text
50830 + .global sub3_sp
50831 +sub3_sp:
50832 + sub sp,0
50833 + sub sp,-4
50834 + sub sp,-512
50835 + sub sp,508
50836 + sub sp,4
50837 + sub sp,44
50838 + sub sp,8
50839 + sub sp,348
50840 + .text
50841 + .global sub3
50842 +sub3:
50843 + sub pc,0
50844 + sub r12,-1
50845 + sub r5,-128
50846 + sub r4,127
50847 + sub lr,1
50848 + sub r6,-41
50849 + sub r4,37
50850 + sub r12,56
50851 + .text
50852 + .global mov1
50853 +mov1:
50854 + mov pc,0
50855 + mov r12,-1
50856 + mov r5,-128
50857 + mov r4,127
50858 + mov lr,1
50859 + mov pc,14
50860 + mov r6,-100
50861 + mov lr,-122
50862 + .text
50863 + .global lddsp
50864 +lddsp:
50865 + lddsp pc,sp[0]
50866 + lddsp r12,sp[508]
50867 + lddsp r5,sp[256]
50868 + lddsp r4,sp[252]
50869 + lddsp lr,sp[4]
50870 + lddsp lr,sp[256]
50871 + lddsp r12,sp[20]
50872 + lddsp r9,sp[472]
50873 + .text
50874 + .global lddpc
50875 +lddpc:
50876 + lddpc pc,pc[0]
50877 + lddpc r0,pc[508]
50878 + lddpc r8,pc[256]
50879 + lddpc r7,pc[252]
50880 + lddpc lr,pc[4]
50881 + lddpc sp,pc[472]
50882 + lddpc r6,pc[120]
50883 + lddpc r11,pc[28]
50884 + .text
50885 + .global stdsp
50886 +stdsp:
50887 + stdsp sp[0],pc
50888 + stdsp sp[508],r12
50889 + stdsp sp[256],r5
50890 + stdsp sp[252],r4
50891 + stdsp sp[4],lr
50892 + stdsp sp[304],pc
50893 + stdsp sp[256],r0
50894 + stdsp sp[336],r5
50895 + .text
50896 + .global cp2
50897 +cp2:
50898 + cp pc,0
50899 + cp r12,-1
50900 + cp r5,-32
50901 + cp r4,31
50902 + cp lr,1
50903 + cp r8,3
50904 + cp lr,16
50905 + cp r7,-26
50906 + .text
50907 + .global acr
50908 +acr:
50909 + acr pc
50910 + acr r12
50911 + acr r5
50912 + acr r4
50913 + acr lr
50914 + acr r2
50915 + acr r12
50916 + acr pc
50917 + .text
50918 + .global scr
50919 +scr:
50920 + scr pc
50921 + scr r12
50922 + scr r5
50923 + scr r4
50924 + scr lr
50925 + scr pc
50926 + scr r6
50927 + scr r1
50928 + .text
50929 + .global cpc0
50930 +cpc0:
50931 + cpc pc
50932 + cpc r12
50933 + cpc r5
50934 + cpc r4
50935 + cpc lr
50936 + cpc pc
50937 + cpc r4
50938 + cpc r9
50939 + .text
50940 + .global neg
50941 +neg:
50942 + neg pc
50943 + neg r12
50944 + neg r5
50945 + neg r4
50946 + neg lr
50947 + neg r7
50948 + neg r1
50949 + neg r9
50950 + .text
50951 + .global abs
50952 +abs:
50953 + abs pc
50954 + abs r12
50955 + abs r5
50956 + abs r4
50957 + abs lr
50958 + abs r6
50959 + abs r6
50960 + abs r4
50961 + .text
50962 + .global castu_b
50963 +castu_b:
50964 + castu.b pc
50965 + castu.b r12
50966 + castu.b r5
50967 + castu.b r4
50968 + castu.b lr
50969 + castu.b r7
50970 + castu.b sp
50971 + castu.b r9
50972 + .text
50973 + .global casts_b
50974 +casts_b:
50975 + casts.b pc
50976 + casts.b r12
50977 + casts.b r5
50978 + casts.b r4
50979 + casts.b lr
50980 + casts.b r11
50981 + casts.b r1
50982 + casts.b r10
50983 + .text
50984 + .global castu_h
50985 +castu_h:
50986 + castu.h pc
50987 + castu.h r12
50988 + castu.h r5
50989 + castu.h r4
50990 + castu.h lr
50991 + castu.h r10
50992 + castu.h r11
50993 + castu.h r1
50994 + .text
50995 + .global casts_h
50996 +casts_h:
50997 + casts.h pc
50998 + casts.h r12
50999 + casts.h r5
51000 + casts.h r4
51001 + casts.h lr
51002 + casts.h r0
51003 + casts.h r5
51004 + casts.h r9
51005 + .text
51006 + .global brev
51007 +brev:
51008 + brev pc
51009 + brev r12
51010 + brev r5
51011 + brev r4
51012 + brev lr
51013 + brev r5
51014 + brev r10
51015 + brev r8
51016 + .text
51017 + .global swap_h
51018 +swap_h:
51019 + swap.h pc
51020 + swap.h r12
51021 + swap.h r5
51022 + swap.h r4
51023 + swap.h lr
51024 + swap.h r7
51025 + swap.h r0
51026 + swap.h r8
51027 + .text
51028 + .global swap_b
51029 +swap_b:
51030 + swap.b pc
51031 + swap.b r12
51032 + swap.b r5
51033 + swap.b r4
51034 + swap.b lr
51035 + swap.b r10
51036 + swap.b r12
51037 + swap.b r1
51038 + .text
51039 + .global swap_bh
51040 +swap_bh:
51041 + swap.bh pc
51042 + swap.bh r12
51043 + swap.bh r5
51044 + swap.bh r4
51045 + swap.bh lr
51046 + swap.bh r9
51047 + swap.bh r4
51048 + swap.bh r1
51049 + .text
51050 + .global One_s_compliment
51051 +One_s_compliment:
51052 + com pc
51053 + com r12
51054 + com r5
51055 + com r4
51056 + com lr
51057 + com r2
51058 + com r2
51059 + com r7
51060 + .text
51061 + .global tnbz
51062 +tnbz:
51063 + tnbz pc
51064 + tnbz r12
51065 + tnbz r5
51066 + tnbz r4
51067 + tnbz lr
51068 + tnbz r8
51069 + tnbz r12
51070 + tnbz pc
51071 + .text
51072 + .global rol
51073 +rol:
51074 + rol pc
51075 + rol r12
51076 + rol r5
51077 + rol r4
51078 + rol lr
51079 + rol r10
51080 + rol r9
51081 + rol r5
51082 + .text
51083 + .global ror
51084 +ror:
51085 + ror pc
51086 + ror r12
51087 + ror r5
51088 + ror r4
51089 + ror lr
51090 + ror r8
51091 + ror r4
51092 + ror r7
51093 + .text
51094 + .global icall
51095 +icall:
51096 + icall pc
51097 + icall r12
51098 + icall r5
51099 + icall r4
51100 + icall lr
51101 + icall r3
51102 + icall r1
51103 + icall r3
51104 + .text
51105 + .global mustr
51106 +mustr:
51107 + mustr pc
51108 + mustr r12
51109 + mustr r5
51110 + mustr r4
51111 + mustr lr
51112 + mustr r1
51113 + mustr r4
51114 + mustr r12
51115 + .text
51116 + .global musfr
51117 +musfr:
51118 + musfr pc
51119 + musfr r12
51120 + musfr r5
51121 + musfr r4
51122 + musfr lr
51123 + musfr r11
51124 + musfr r12
51125 + musfr r2
51126 + .text
51127 + .global ret_cond
51128 +ret_cond:
51129 + reteq pc
51130 + retal r12
51131 + retls r5
51132 + retpl r4
51133 + retne lr
51134 + retgt r0
51135 + retgt r12
51136 + retge r10
51137 + .text
51138 + .global sr_cond
51139 +sr_cond:
51140 + sreq pc
51141 + sral r12
51142 + srls r5
51143 + srpl r4
51144 + srne lr
51145 + srlt r0
51146 + sral sp
51147 + srge r9
51148 + .text
51149 + .global ld_w3
51150 +ld_w3:
51151 + ld.w pc,pc[0]
51152 + ld.w r12,r12[124]
51153 + ld.w r5,r5[64]
51154 + ld.w r4,r4[60]
51155 + ld.w lr,lr[4]
51156 + ld.w sp,r2[52]
51157 + ld.w r9,r1[8]
51158 + ld.w r5,sp[60]
51159 + .text
51160 + .global ld_sh3
51161 +ld_sh3:
51162 + ld.sh pc,pc[0]
51163 + ld.sh r12,r12[14]
51164 + ld.sh r5,r5[8]
51165 + ld.sh r4,r4[6]
51166 + ld.sh lr,lr[2]
51167 + ld.sh r4,r2[8]
51168 + ld.sh sp,lr[10]
51169 + ld.sh r2,r11[2]
51170 + .text
51171 + .global ld_uh3
51172 +ld_uh3:
51173 + ld.uh pc,pc[0]
51174 + ld.uh r12,r12[14]
51175 + ld.uh r5,r5[8]
51176 + ld.uh r4,r4[6]
51177 + ld.uh lr,lr[2]
51178 + ld.uh r10,r0[10]
51179 + ld.uh r8,r11[8]
51180 + ld.uh r10,r2[12]
51181 + .text
51182 + .global st_w3
51183 +st_w3:
51184 + st.w pc[0],pc
51185 + st.w r12[60],r12
51186 + st.w r5[32],r5
51187 + st.w r4[28],r4
51188 + st.w lr[4],lr
51189 + st.w r7[44],r11
51190 + st.w r2[24],r6
51191 + st.w r4[12],r9
51192 + .text
51193 + .global st_h3
51194 +st_h3:
51195 + st.h pc[0],pc
51196 + st.h r12[14],r12
51197 + st.h r5[8],r5
51198 + st.h r4[6],r4
51199 + st.h lr[2],lr
51200 + st.h lr[10],r12
51201 + st.h r6[4],r0
51202 + st.h r5[12],sp
51203 + .text
51204 + .global st_b3
51205 +st_b3:
51206 + st.b pc[0],pc
51207 + st.b r12[7],r12
51208 + st.b r5[4],r5
51209 + st.b r4[3],r4
51210 + st.b lr[1],lr
51211 + st.b r12[6],r9
51212 + st.b r2[3],lr
51213 + st.b r1[3],r11
51214 + .text
51215 + .global ldd
51216 +ldd:
51217 + ld.d r0,pc
51218 + ld.d r14,r12
51219 + ld.d r8,r5
51220 + ld.d r6,r4
51221 + ld.d r2,lr
51222 + ld.d r14,r7
51223 + ld.d r4,r4
51224 + ld.d r14,pc
51225 + .text
51226 + .global ldd_postinc
51227 +ldd_postinc:
51228 + ld.d r0,pc++
51229 + ld.d r14,r12++
51230 + ld.d r8,r5++
51231 + ld.d r6,r4++
51232 + ld.d r2,lr++
51233 + ld.d r14,r5++
51234 + ld.d r12,r11++
51235 + ld.d r2,r12++
51236 + .text
51237 + .global ldd_predec
51238 +ldd_predec:
51239 + ld.d r0,--pc
51240 + ld.d r14,--r12
51241 + ld.d r8,--r5
51242 + ld.d r6,--r4
51243 + ld.d r2,--lr
51244 + ld.d r8,--r0
51245 + ld.d r10,--pc
51246 + ld.d r2,--r4
51247 + .text
51248 + .global std
51249 +std:
51250 + st.d pc,r0
51251 + st.d r12,r14
51252 + st.d r5,r8
51253 + st.d r4,r6
51254 + st.d lr,r2
51255 + st.d r0,r12
51256 + st.d sp,r4
51257 + st.d r12,r12
51258 + .text
51259 + .global std_postinc
51260 +std_postinc:
51261 + st.d pc++,r0
51262 + st.d r12++,r14
51263 + st.d r5++,r8
51264 + st.d r4++,r6
51265 + st.d lr++,r2
51266 + st.d sp++,r6
51267 + st.d r10++,r6
51268 + st.d r7++,r2
51269 + .text
51270 + .global std_predec
51271 +std_predec:
51272 + st.d --pc,r0
51273 + st.d --r12,r14
51274 + st.d --r5,r8
51275 + st.d --r4,r6
51276 + st.d --lr,r2
51277 + st.d --r3,r6
51278 + st.d --lr,r2
51279 + st.d --r0,r4
51280 + .text
51281 + .global mul
51282 +mul:
51283 + mul pc,pc
51284 + mul r12,r12
51285 + mul r5,r5
51286 + mul r4,r4
51287 + mul lr,lr
51288 + mul r10,lr
51289 + mul r0,r8
51290 + mul r8,r5
51291 + .text
51292 + .global asr_imm5
51293 +asr_imm5:
51294 + asr pc,0
51295 + asr r12,31
51296 + asr r5,16
51297 + asr r4,15
51298 + asr lr,1
51299 + asr r6,23
51300 + asr r6,18
51301 + asr r5,8
51302 + .text
51303 + .global lsl_imm5
51304 +lsl_imm5:
51305 + lsl pc,0
51306 + lsl r12,31
51307 + lsl r5,16
51308 + lsl r4,15
51309 + lsl lr,1
51310 + lsl r12,13
51311 + lsl r6,16
51312 + lsl r1,25
51313 + .text
51314 + .global lsr_imm5
51315 +lsr_imm5:
51316 + lsr pc,0
51317 + lsr r12,31
51318 + lsr r5,16
51319 + lsr r4,15
51320 + lsr lr,1
51321 + lsr r0,1
51322 + lsr r8,10
51323 + lsr r7,26
51324 + .text
51325 + .global sbr
51326 +sbr:
51327 + sbr pc,0
51328 + sbr r12,31
51329 + sbr r5,16
51330 + sbr r4,15
51331 + sbr lr,1
51332 + sbr r8,31
51333 + sbr r6,22
51334 + sbr r1,23
51335 + .text
51336 + .global cbr
51337 +cbr:
51338 + cbr pc,0
51339 + cbr r12,31
51340 + cbr r5,16
51341 + cbr r4,15
51342 + cbr lr,1
51343 + cbr r12,10
51344 + cbr r7,22
51345 + cbr r8,9
51346 + .text
51347 + .global brc1
51348 +brc1:
51349 + breq 0
51350 + brpl -2
51351 + brge -256
51352 + brcs 254
51353 + brne 2
51354 + brcs 230
51355 + breq -18
51356 + breq 12
51357 + .text
51358 + .global rjmp
51359 +rjmp:
51360 + rjmp 0
51361 + rjmp -2
51362 + rjmp -1024
51363 + rjmp 1022
51364 + rjmp 2
51365 + rjmp -962
51366 + rjmp 14
51367 + rjmp -516
51368 + .text
51369 + .global rcall1
51370 +rcall1:
51371 + rcall 0
51372 + rcall -2
51373 + rcall -1024
51374 + rcall 1022
51375 + rcall 2
51376 + rcall 216
51377 + rcall -530
51378 + rcall -972
51379 + .text
51380 + .global acall
51381 +acall:
51382 + acall 0
51383 + acall 1020
51384 + acall 512
51385 + acall 508
51386 + acall 4
51387 + acall 356
51388 + acall 304
51389 + acall 172
51390 + .text
51391 + .global scall
51392 +scall:
51393 + scall
51394 + scall
51395 + scall
51396 + scall
51397 + scall
51398 + scall
51399 + scall
51400 + scall
51401 + .text
51402 + .global popm
51403 +popm:
51404 + /* popm with no argument fails currently */
51405 + popm pc
51406 + popm r0-r11,pc,r12=-1
51407 + popm lr
51408 + popm r0-r11,pc,r12=1
51409 + popm r0-r3
51410 + popm r4-r10,pc
51411 + popm r0-r3,r11,pc,r12=0
51412 + popm r0-r7,r10-r12,lr
51413 + .text
51414 + .global pushm
51415 +pushm:
51416 + pushm pc
51417 + pushm r0-r12,lr,pc
51418 + pushm pc
51419 + pushm r0-r12,lr
51420 + pushm r0-r3
51421 + pushm r8-r10,lr,pc
51422 + pushm r0-r3,r10
51423 + pushm r8-r9,r12
51424 + .text
51425 + .global popm_n
51426 +popm_n:
51427 + popm pc
51428 + popm r0-r11,pc,r12=-1
51429 + popm lr
51430 + popm r0-r11,pc,r12=1
51431 + popm r0-r3
51432 + popm r4-r10,pc
51433 + popm r0-r3,r11,pc,r12=0
51434 + popm r0-r7,r10-r12,lr
51435 + .text
51436 + .global pushm_n
51437 +pushm_n:
51438 + pushm pc
51439 + pushm r0-r12,lr,pc
51440 + pushm pc
51441 + pushm r0-r12,lr
51442 + pushm r0-r3
51443 + pushm r8-r10,lr,pc
51444 + pushm r0-r3,r10
51445 + pushm r8-r9,r12
51446 + .text
51447 + .global csrfcz
51448 +csrfcz:
51449 + csrfcz 0
51450 + csrfcz 31
51451 + csrfcz 16
51452 + csrfcz 15
51453 + csrfcz 1
51454 + csrfcz 5
51455 + csrfcz 13
51456 + csrfcz 23
51457 + .text
51458 + .global ssrf
51459 +ssrf:
51460 + ssrf 0
51461 + ssrf 31
51462 + ssrf 16
51463 + ssrf 15
51464 + ssrf 1
51465 + ssrf 29
51466 + ssrf 13
51467 + ssrf 13
51468 + .text
51469 + .global csrf
51470 +csrf:
51471 + csrf 0
51472 + csrf 31
51473 + csrf 16
51474 + csrf 15
51475 + csrf 1
51476 + csrf 10
51477 + csrf 15
51478 + csrf 11
51479 + .text
51480 + .global rete
51481 +rete:
51482 + rete
51483 + .text
51484 + .global rets
51485 +rets:
51486 + rets
51487 + .text
51488 + .global retd
51489 +retd:
51490 + retd
51491 + .text
51492 + .global retj
51493 +retj:
51494 + retj
51495 + .text
51496 + .global tlbr
51497 +tlbr:
51498 + tlbr
51499 + .text
51500 + .global tlbs
51501 +tlbs:
51502 + tlbs
51503 + .text
51504 + .global tlbw
51505 +tlbw:
51506 + tlbw
51507 + .text
51508 + .global breakpoint
51509 +breakpoint:
51510 + breakpoint
51511 + .text
51512 + .global incjosp
51513 +incjosp:
51514 + incjosp 1
51515 + incjosp 2
51516 + incjosp 3
51517 + incjosp 4
51518 + incjosp -4
51519 + incjosp -3
51520 + incjosp -2
51521 + incjosp -1
51522 + .text
51523 + .global nop
51524 +nop:
51525 + nop
51526 + .text
51527 + .global popjc
51528 +popjc:
51529 + popjc
51530 + .text
51531 + .global pushjc
51532 +pushjc:
51533 + pushjc
51534 + .text
51535 + .global add2
51536 +add2:
51537 + add pc,pc,pc<<0
51538 + add r12,r12,r12<<3
51539 + add r5,r5,r5<<2
51540 + add r4,r4,r4<<1
51541 + add lr,lr,lr<<1
51542 + add r0,r12,r0<<1
51543 + add r9,r12,r4<<0
51544 + add r12,r12,r7<<2
51545 + .text
51546 + .global sub2
51547 +sub2:
51548 + sub pc,pc,pc<<0
51549 + sub r12,r12,r12<<3
51550 + sub r5,r5,r5<<2
51551 + sub r4,r4,r4<<1
51552 + sub lr,lr,lr<<1
51553 + sub sp,r3,r4<<0
51554 + sub r3,r7,r3<<0
51555 + sub sp,r10,sp<<1
51556 + .text
51557 + .global divu
51558 +divu:
51559 + divu pc,pc,pc
51560 + divu r12,r12,r12
51561 + divu r5,r5,r5
51562 + divu r4,r4,r4
51563 + divu lr,lr,lr
51564 + divu sp,r4,pc
51565 + divu r5,r5,sp
51566 + divu r10,sp,r0
51567 + .text
51568 + .global addhh_w
51569 +addhh_w:
51570 + addhh.w pc,pc:b,pc:b
51571 + addhh.w r12,r12:t,r12:t
51572 + addhh.w r5,r5:t,r5:t
51573 + addhh.w r4,r4:b,r4:b
51574 + addhh.w lr,lr:t,lr:t
51575 + addhh.w r0,r0:b,r3:b
51576 + addhh.w lr,r12:t,r7:b
51577 + addhh.w r3,r10:t,r2:b
51578 + .text
51579 + .global subhh_w
51580 +subhh_w:
51581 + subhh.w pc,pc:b,pc:b
51582 + subhh.w r12,r12:t,r12:t
51583 + subhh.w r5,r5:t,r5:t
51584 + subhh.w r4,r4:b,r4:b
51585 + subhh.w lr,lr:t,lr:t
51586 + subhh.w r10,r1:t,r7:b
51587 + subhh.w pc,r10:t,lr:t
51588 + subhh.w r3,r0:t,r12:b
51589 + .text
51590 + .global adc
51591 +adc:
51592 + adc pc,pc,pc
51593 + adc r12,r12,r12
51594 + adc r5,r5,r5
51595 + adc r4,r4,r4
51596 + adc lr,lr,lr
51597 + adc r4,r0,r7
51598 + adc sp,r4,r3
51599 + adc r2,r12,r0
51600 + .text
51601 + .global sbc
51602 +sbc:
51603 + sbc pc,pc,pc
51604 + sbc r12,r12,r12
51605 + sbc r5,r5,r5
51606 + sbc r4,r4,r4
51607 + sbc lr,lr,lr
51608 + sbc r6,r7,r9
51609 + sbc r0,r8,r5
51610 + sbc r1,r0,r4
51611 + .text
51612 + .global mul_2
51613 +mul_2:
51614 + mul pc,pc,pc
51615 + mul r12,r12,r12
51616 + mul r5,r5,r5
51617 + mul r4,r4,r4
51618 + mul lr,lr,lr
51619 + mul pc,r0,r0
51620 + mul r8,pc,lr
51621 + mul r4,r12,pc
51622 + .text
51623 + .global mac
51624 +mac:
51625 + mac pc,pc,pc
51626 + mac r12,r12,r12
51627 + mac r5,r5,r5
51628 + mac r4,r4,r4
51629 + mac lr,lr,lr
51630 + mac r10,r4,r0
51631 + mac r7,lr,r0
51632 + mac r2,r9,r12
51633 + .text
51634 + .global mulsd
51635 +mulsd:
51636 + muls.d pc,pc,pc
51637 + muls.d r12,r12,r12
51638 + muls.d r5,r5,r5
51639 + muls.d r4,r4,r4
51640 + muls.d lr,lr,lr
51641 + muls.d r2,r8,lr
51642 + muls.d r4,r0,r11
51643 + muls.d r5,lr,r6
51644 + .text
51645 + .global macsd
51646 +macsd:
51647 + macs.d r0,pc,pc
51648 + macs.d r14,r12,r12
51649 + macs.d r8,r5,r5
51650 + macs.d r6,r4,r4
51651 + macs.d r2,lr,lr
51652 + macs.d r8,r1,r9
51653 + macs.d r14,r8,r8
51654 + macs.d r4,r3,r12
51655 + .text
51656 + .global mulud
51657 +mulud:
51658 + mulu.d r0,pc,pc
51659 + mulu.d r14,r12,r12
51660 + mulu.d r8,r5,r5
51661 + mulu.d r6,r4,r4
51662 + mulu.d r2,lr,lr
51663 + mulu.d r6,r5,r0
51664 + mulu.d r4,r6,r1
51665 + mulu.d r8,r8,r2
51666 + .text
51667 + .global macud
51668 +macud:
51669 + macu.d r0,pc,pc
51670 + macu.d r14,r12,r12
51671 + macu.d r8,r5,r5
51672 + macu.d r6,r4,r4
51673 + macu.d r2,lr,lr
51674 + macu.d r6,sp,r11
51675 + macu.d r2,r4,r8
51676 + macu.d r6,r10,r9
51677 + .text
51678 + .global asr_1
51679 +asr_1:
51680 + asr pc,pc,pc
51681 + asr r12,r12,r12
51682 + asr r5,r5,r5
51683 + asr r4,r4,r4
51684 + asr lr,lr,lr
51685 + asr pc,r6,pc
51686 + asr r0,r6,r12
51687 + asr r4,sp,r0
51688 + .text
51689 + .global lsl_1
51690 +lsl_1:
51691 + lsl pc,pc,pc
51692 + lsl r12,r12,r12
51693 + lsl r5,r5,r5
51694 + lsl r4,r4,r4
51695 + lsl lr,lr,lr
51696 + lsl lr,r5,lr
51697 + lsl r5,pc,r3
51698 + lsl r1,pc,r9
51699 + .text
51700 + .global lsr_1
51701 +lsr_1:
51702 + lsr pc,pc,pc
51703 + lsr r12,r12,r12
51704 + lsr r5,r5,r5
51705 + lsr r4,r4,r4
51706 + lsr lr,lr,lr
51707 + lsr r2,r4,r1
51708 + lsr r5,r1,r6
51709 + lsr sp,r6,r7
51710 + .text
51711 + .global xchg
51712 +xchg:
51713 + xchg pc,pc,pc
51714 + xchg r12,r12,r12
51715 + xchg r5,r5,r5
51716 + xchg r4,r4,r4
51717 + xchg lr,lr,lr
51718 + xchg lr,r4,sp
51719 + xchg r1,r5,r12
51720 + xchg lr,r12,r0
51721 + .text
51722 + .global max
51723 +max:
51724 + max pc,pc,pc
51725 + max r12,r12,r12
51726 + max r5,r5,r5
51727 + max r4,r4,r4
51728 + max lr,lr,lr
51729 + max lr,r2,sp
51730 + max r4,r10,r9
51731 + max lr,r9,lr
51732 + .text
51733 + .global min
51734 +min:
51735 + min pc,pc,pc
51736 + min r12,r12,r12
51737 + min r5,r5,r5
51738 + min r4,r4,r4
51739 + min lr,lr,lr
51740 + min r9,r7,r8
51741 + min sp,r5,r5
51742 + min r4,r1,r4
51743 + .text
51744 + .global addabs
51745 +addabs:
51746 + addabs pc,pc,pc
51747 + addabs r12,r12,r12
51748 + addabs r5,r5,r5
51749 + addabs r4,r4,r4
51750 + addabs lr,lr,lr
51751 + addabs r7,r10,r0
51752 + addabs r9,r9,r7
51753 + addabs r2,r8,r12
51754 + .text
51755 + .global mulnhh_w
51756 +mulnhh_w:
51757 + mulnhh.w pc,pc:b,pc:b
51758 + mulnhh.w r12,r12:t,r12:t
51759 + mulnhh.w r5,r5:t,r5:t
51760 + mulnhh.w r4,r4:b,r4:b
51761 + mulnhh.w lr,lr:t,lr:t
51762 + mulnhh.w r11,sp:t,r9:b
51763 + mulnhh.w sp,r4:b,lr:t
51764 + mulnhh.w r12,r2:t,r11:b
51765 + .text
51766 + .global mulnwh_d
51767 +mulnwh_d:
51768 + mulnwh.d r0,pc,pc:b
51769 + mulnwh.d r14,r12,r12:t
51770 + mulnwh.d r8,r5,r5:t
51771 + mulnwh.d r6,r4,r4:b
51772 + mulnwh.d r2,lr,lr:t
51773 + mulnwh.d r14,r3,r2:t
51774 + mulnwh.d r4,r5,r9:b
51775 + mulnwh.d r12,r4,r4:t
51776 + .text
51777 + .global machh_w
51778 +machh_w:
51779 + machh.w pc,pc:b,pc:b
51780 + machh.w r12,r12:t,r12:t
51781 + machh.w r5,r5:t,r5:t
51782 + machh.w r4,r4:b,r4:b
51783 + machh.w lr,lr:t,lr:t
51784 + machh.w lr,r5:b,r1:t
51785 + machh.w r9,r6:b,r7:b
51786 + machh.w r5,lr:t,r12:b
51787 + .text
51788 + .global machh_d
51789 +machh_d:
51790 + machh.d r0,pc:b,pc:b
51791 + machh.d r14,r12:t,r12:t
51792 + machh.d r8,r5:t,r5:t
51793 + machh.d r6,r4:b,r4:b
51794 + machh.d r2,lr:t,lr:t
51795 + machh.d r10,r0:b,r8:b
51796 + machh.d r14,r4:b,r5:t
51797 + machh.d r8,r0:b,r4:t
51798 + .text
51799 + .global macsathh_w
51800 +macsathh_w:
51801 + macsathh.w pc,pc:b,pc:b
51802 + macsathh.w r12,r12:t,r12:t
51803 + macsathh.w r5,r5:t,r5:t
51804 + macsathh.w r4,r4:b,r4:b
51805 + macsathh.w lr,lr:t,lr:t
51806 + macsathh.w r7,r7:t,pc:t
51807 + macsathh.w r4,r2:t,r4:b
51808 + macsathh.w r4,r8:t,r3:t
51809 + .text
51810 + .global mulhh_w
51811 +mulhh_w:
51812 + mulhh.w pc,pc:b,pc:b
51813 + mulhh.w r12,r12:t,r12:t
51814 + mulhh.w r5,r5:t,r5:t
51815 + mulhh.w r4,r4:b,r4:b
51816 + mulhh.w lr,lr:t,lr:t
51817 + mulhh.w r7,r4:t,r9:b
51818 + mulhh.w pc,r3:t,r7:t
51819 + mulhh.w pc,r4:b,r9:t
51820 + .text
51821 + .global mulsathh_h
51822 +mulsathh_h:
51823 + mulsathh.h pc,pc:b,pc:b
51824 + mulsathh.h r12,r12:t,r12:t
51825 + mulsathh.h r5,r5:t,r5:t
51826 + mulsathh.h r4,r4:b,r4:b
51827 + mulsathh.h lr,lr:t,lr:t
51828 + mulsathh.h r3,r1:b,sp:b
51829 + mulsathh.h r11,lr:t,r11:b
51830 + mulsathh.h r8,r8:b,r11:t
51831 + .text
51832 + .global mulsathh_w
51833 +mulsathh_w:
51834 + mulsathh.w pc,pc:b,pc:b
51835 + mulsathh.w r12,r12:t,r12:t
51836 + mulsathh.w r5,r5:t,r5:t
51837 + mulsathh.w r4,r4:b,r4:b
51838 + mulsathh.w lr,lr:t,lr:t
51839 + mulsathh.w lr,r11:t,r6:b
51840 + mulsathh.w r6,r6:b,r7:t
51841 + mulsathh.w r10,r2:b,r3:b
51842 + .text
51843 + .global mulsatrndhh_h
51844 +mulsatrndhh_h:
51845 + mulsatrndhh.h pc,pc:b,pc:b
51846 + mulsatrndhh.h r12,r12:t,r12:t
51847 + mulsatrndhh.h r5,r5:t,r5:t
51848 + mulsatrndhh.h r4,r4:b,r4:b
51849 + mulsatrndhh.h lr,lr:t,lr:t
51850 + mulsatrndhh.h r11,r6:b,r9:b
51851 + mulsatrndhh.h r11,r3:b,r8:t
51852 + mulsatrndhh.h r5,sp:t,r7:t
51853 + .text
51854 + .global mulsatrndwh_w
51855 +mulsatrndwh_w:
51856 + mulsatrndwh.w pc,pc,pc:b
51857 + mulsatrndwh.w r12,r12,r12:t
51858 + mulsatrndwh.w r5,r5,r5:t
51859 + mulsatrndwh.w r4,r4,r4:b
51860 + mulsatrndwh.w lr,lr,lr:t
51861 + mulsatrndwh.w r5,r12,r0:b
51862 + mulsatrndwh.w r7,r10,pc:b
51863 + mulsatrndwh.w r10,r8,r5:t
51864 + .text
51865 + .global macwh_d
51866 +macwh_d:
51867 + macwh.d r0,pc,pc:b
51868 + macwh.d r14,r12,r12:t
51869 + macwh.d r8,r5,r5:t
51870 + macwh.d r6,r4,r4:b
51871 + macwh.d r2,lr,lr:t
51872 + macwh.d r4,r10,r12:t
51873 + macwh.d r4,r7,sp:b
51874 + macwh.d r14,r9,r11:b
51875 + .text
51876 + .global mulwh_d
51877 +mulwh_d:
51878 + mulwh.d r0,pc,pc:b
51879 + mulwh.d r14,r12,r12:t
51880 + mulwh.d r8,r5,r5:t
51881 + mulwh.d r6,r4,r4:b
51882 + mulwh.d r2,lr,lr:t
51883 + mulwh.d r12,r5,r1:b
51884 + mulwh.d r0,r1,r3:t
51885 + mulwh.d r0,r9,r2:b
51886 + .text
51887 + .global mulsatwh_w
51888 +mulsatwh_w:
51889 + mulsatwh.w pc,pc,pc:b
51890 + mulsatwh.w r12,r12,r12:t
51891 + mulsatwh.w r5,r5,r5:t
51892 + mulsatwh.w r4,r4,r4:b
51893 + mulsatwh.w lr,lr,lr:t
51894 + mulsatwh.w r11,pc,r10:t
51895 + mulsatwh.w sp,r12,r9:t
51896 + mulsatwh.w r0,r3,r2:t
51897 + .text
51898 + .global ldw7
51899 +ldw7:
51900 + ld.w pc,pc[pc:b<<2]
51901 + ld.w r12,r12[r12:t<<2]
51902 + ld.w r5,r5[r5:u<<2]
51903 + ld.w r4,r4[r4:l<<2]
51904 + ld.w lr,lr[lr:l<<2]
51905 + ld.w r9,r10[r6:l<<2]
51906 + ld.w r2,r10[r10:b<<2]
51907 + ld.w r11,r5[pc:b<<2]
51908 + .text
51909 + .global satadd_w
51910 +satadd_w:
51911 + satadd.w pc,pc,pc
51912 + satadd.w r12,r12,r12
51913 + satadd.w r5,r5,r5
51914 + satadd.w r4,r4,r4
51915 + satadd.w lr,lr,lr
51916 + satadd.w r4,r8,r11
51917 + satadd.w r3,r12,r6
51918 + satadd.w r3,lr,r9
51919 + .text
51920 + .global satsub_w1
51921 +satsub_w1:
51922 + satsub.w pc,pc,pc
51923 + satsub.w r12,r12,r12
51924 + satsub.w r5,r5,r5
51925 + satsub.w r4,r4,r4
51926 + satsub.w lr,lr,lr
51927 + satsub.w r8,sp,r0
51928 + satsub.w r9,r8,r4
51929 + satsub.w pc,lr,r2
51930 + .text
51931 + .global satadd_h
51932 +satadd_h:
51933 + satadd.h pc,pc,pc
51934 + satadd.h r12,r12,r12
51935 + satadd.h r5,r5,r5
51936 + satadd.h r4,r4,r4
51937 + satadd.h lr,lr,lr
51938 + satadd.h r7,r3,r9
51939 + satadd.h r1,r0,r2
51940 + satadd.h r1,r4,lr
51941 + .text
51942 + .global satsub_h
51943 +satsub_h:
51944 + satsub.h pc,pc,pc
51945 + satsub.h r12,r12,r12
51946 + satsub.h r5,r5,r5
51947 + satsub.h r4,r4,r4
51948 + satsub.h lr,lr,lr
51949 + satsub.h lr,lr,r3
51950 + satsub.h r11,r6,r5
51951 + satsub.h r3,sp,r0
51952 + .text
51953 + .global mul3
51954 +mul3:
51955 + mul pc,pc,0
51956 + mul r12,r12,-1
51957 + mul r5,r5,-128
51958 + mul r4,r4,127
51959 + mul lr,lr,1
51960 + mul r12,r2,-7
51961 + mul r1,pc,95
51962 + mul r4,r6,19
51963 + .text
51964 + .global rsub2
51965 +rsub2:
51966 + rsub pc,pc,0
51967 + rsub r12,r12,-1
51968 + rsub r5,r5,-128
51969 + rsub r4,r4,127
51970 + rsub lr,lr,1
51971 + rsub r9,lr,96
51972 + rsub r11,r1,56
51973 + rsub r0,r7,-87
51974 + .text
51975 + .global clz
51976 +clz:
51977 + clz pc,pc
51978 + clz r12,r12
51979 + clz r5,r5
51980 + clz r4,r4
51981 + clz lr,lr
51982 + clz r2,r3
51983 + clz r5,r11
51984 + clz pc,r3
51985 + .text
51986 + .global cpc1
51987 +cpc1:
51988 + cpc pc,pc
51989 + cpc r12,r12
51990 + cpc r5,r5
51991 + cpc r4,r4
51992 + cpc lr,lr
51993 + cpc pc,r4
51994 + cpc r5,r9
51995 + cpc r6,r7
51996 + .text
51997 + .global asr3
51998 +asr3:
51999 + asr pc,pc,0
52000 + asr r12,r12,31
52001 + asr r5,r5,16
52002 + asr r4,r4,15
52003 + asr lr,lr,1
52004 + asr r4,r11,19
52005 + asr sp,pc,26
52006 + asr r11,sp,8
52007 + .text
52008 + .global lsl3
52009 +lsl3:
52010 + lsl pc,pc,0
52011 + lsl r12,r12,31
52012 + lsl r5,r5,16
52013 + lsl r4,r4,15
52014 + lsl lr,lr,1
52015 + lsl r8,r10,17
52016 + lsl r2,lr,3
52017 + lsl lr,r11,14
52018 + .text
52019 + .global lsr3
52020 +lsr3:
52021 + lsr pc,pc,0
52022 + lsr r12,r12,31
52023 + lsr r5,r5,16
52024 + lsr r4,r4,15
52025 + lsr lr,lr,1
52026 + lsr r4,r3,31
52027 + lsr pc,r9,14
52028 + lsr r3,r0,6
52029 +/* .text
52030 + .global extract_b
52031 +extract_b:
52032 + extract.b pc,pc:b
52033 + extract.b r12,r12:t
52034 + extract.b r5,r5:u
52035 + extract.b r4,r4:l
52036 + extract.b lr,lr:l
52037 + extract.b r2,r5:l
52038 + extract.b r12,r3:l
52039 + extract.b sp,r3:l
52040 + .text
52041 + .global insert_b
52042 +insert_b:
52043 + insert.b pc:b,pc
52044 + insert.b r12:t,r12
52045 + insert.b r5:u,r5
52046 + insert.b r4:l,r4
52047 + insert.b lr:l,lr
52048 + insert.b r12:u,r3
52049 + insert.b r10:l,lr
52050 + insert.b r11:l,r12
52051 + .text
52052 + .global extract_h
52053 +extract_h:
52054 + extract.h pc,pc:b
52055 + extract.h r12,r12:t
52056 + extract.h r5,r5:t
52057 + extract.h r4,r4:b
52058 + extract.h lr,lr:t
52059 + extract.h r11,lr:b
52060 + extract.h r10,r0:b
52061 + extract.h r11,r12:b
52062 + .text
52063 + .global insert_h
52064 +insert_h:
52065 + insert.h pc:b,pc
52066 + insert.h r12:t,r12
52067 + insert.h r5:t,r5
52068 + insert.h r4:b,r4
52069 + insert.h lr:t,lr
52070 + insert.h r12:t,r11
52071 + insert.h r7:b,r6
52072 + insert.h r1:t,r11 */
52073 + .text
52074 + .global movc1
52075 +movc1:
52076 + moveq pc,pc
52077 + moval r12,r12
52078 + movls r5,r5
52079 + movpl r4,r4
52080 + movne lr,lr
52081 + movne pc,r11
52082 + movmi r10,r2
52083 + movls r8,r12
52084 + .text
52085 + .global padd_h
52086 +padd_h:
52087 + padd.h pc,pc,pc
52088 + padd.h r12,r12,r12
52089 + padd.h r5,r5,r5
52090 + padd.h r4,r4,r4
52091 + padd.h lr,lr,lr
52092 + padd.h r8,r2,r7
52093 + padd.h r0,r0,r3
52094 + padd.h sp,r11,r6
52095 + .text
52096 + .global psub_h
52097 +psub_h:
52098 + psub.h pc,pc,pc
52099 + psub.h r12,r12,r12
52100 + psub.h r5,r5,r5
52101 + psub.h r4,r4,r4
52102 + psub.h lr,lr,lr
52103 + psub.h lr,r6,r8
52104 + psub.h r0,r1,sp
52105 + psub.h pc,pc,sp
52106 + .text
52107 + .global paddx_h
52108 +paddx_h:
52109 + paddx.h pc,pc,pc
52110 + paddx.h r12,r12,r12
52111 + paddx.h r5,r5,r5
52112 + paddx.h r4,r4,r4
52113 + paddx.h lr,lr,lr
52114 + paddx.h pc,pc,r1
52115 + paddx.h r10,r4,r5
52116 + paddx.h r5,pc,r2
52117 + .text
52118 + .global psubx_h
52119 +psubx_h:
52120 + psubx.h pc,pc,pc
52121 + psubx.h r12,r12,r12
52122 + psubx.h r5,r5,r5
52123 + psubx.h r4,r4,r4
52124 + psubx.h lr,lr,lr
52125 + psubx.h r5,r12,r5
52126 + psubx.h r3,r8,r3
52127 + psubx.h r5,r2,r3
52128 + .text
52129 + .global padds_sh
52130 +padds_sh:
52131 + padds.sh pc,pc,pc
52132 + padds.sh r12,r12,r12
52133 + padds.sh r5,r5,r5
52134 + padds.sh r4,r4,r4
52135 + padds.sh lr,lr,lr
52136 + padds.sh r9,lr,r2
52137 + padds.sh r6,r8,r1
52138 + padds.sh r6,r4,r10
52139 + .text
52140 + .global psubs_sh
52141 +psubs_sh:
52142 + psubs.sh pc,pc,pc
52143 + psubs.sh r12,r12,r12
52144 + psubs.sh r5,r5,r5
52145 + psubs.sh r4,r4,r4
52146 + psubs.sh lr,lr,lr
52147 + psubs.sh r6,lr,r11
52148 + psubs.sh r2,r12,r4
52149 + psubs.sh r0,r9,r0
52150 + .text
52151 + .global paddxs_sh
52152 +paddxs_sh:
52153 + paddxs.sh pc,pc,pc
52154 + paddxs.sh r12,r12,r12
52155 + paddxs.sh r5,r5,r5
52156 + paddxs.sh r4,r4,r4
52157 + paddxs.sh lr,lr,lr
52158 + paddxs.sh r0,r3,r9
52159 + paddxs.sh pc,r10,r11
52160 + paddxs.sh pc,r10,pc
52161 + .text
52162 + .global psubxs_sh
52163 +psubxs_sh:
52164 + psubxs.sh pc,pc,pc
52165 + psubxs.sh r12,r12,r12
52166 + psubxs.sh r5,r5,r5
52167 + psubxs.sh r4,r4,r4
52168 + psubxs.sh lr,lr,lr
52169 + psubxs.sh r7,r4,r4
52170 + psubxs.sh r7,r8,r3
52171 + psubxs.sh pc,r6,r5
52172 + .text
52173 + .global padds_uh
52174 +padds_uh:
52175 + padds.uh pc,pc,pc
52176 + padds.uh r12,r12,r12
52177 + padds.uh r5,r5,r5
52178 + padds.uh r4,r4,r4
52179 + padds.uh lr,lr,lr
52180 + padds.uh r12,r11,r7
52181 + padds.uh r7,r8,lr
52182 + padds.uh r6,r9,r7
52183 + .text
52184 + .global psubs_uh
52185 +psubs_uh:
52186 + psubs.uh pc,pc,pc
52187 + psubs.uh r12,r12,r12
52188 + psubs.uh r5,r5,r5
52189 + psubs.uh r4,r4,r4
52190 + psubs.uh lr,lr,lr
52191 + psubs.uh lr,r10,r6
52192 + psubs.uh sp,r2,pc
52193 + psubs.uh r2,r9,r2
52194 + .text
52195 + .global paddxs_uh
52196 +paddxs_uh:
52197 + paddxs.uh pc,pc,pc
52198 + paddxs.uh r12,r12,r12
52199 + paddxs.uh r5,r5,r5
52200 + paddxs.uh r4,r4,r4
52201 + paddxs.uh lr,lr,lr
52202 + paddxs.uh r7,r9,r5
52203 + paddxs.uh r9,r1,r4
52204 + paddxs.uh r5,r2,r3
52205 + .text
52206 + .global psubxs_uh
52207 +psubxs_uh:
52208 + psubxs.uh pc,pc,pc
52209 + psubxs.uh r12,r12,r12
52210 + psubxs.uh r5,r5,r5
52211 + psubxs.uh r4,r4,r4
52212 + psubxs.uh lr,lr,lr
52213 + psubxs.uh sp,r5,sp
52214 + psubxs.uh sp,r6,r6
52215 + psubxs.uh r3,r11,r8
52216 + .text
52217 + .global paddh_sh
52218 +paddh_sh:
52219 + paddh.sh pc,pc,pc
52220 + paddh.sh r12,r12,r12
52221 + paddh.sh r5,r5,r5
52222 + paddh.sh r4,r4,r4
52223 + paddh.sh lr,lr,lr
52224 + paddh.sh r12,sp,r3
52225 + paddh.sh pc,r5,r3
52226 + paddh.sh r8,r8,sp
52227 + .text
52228 + .global psubh_sh
52229 +psubh_sh:
52230 + psubh.sh pc,pc,pc
52231 + psubh.sh r12,r12,r12
52232 + psubh.sh r5,r5,r5
52233 + psubh.sh r4,r4,r4
52234 + psubh.sh lr,lr,lr
52235 + psubh.sh r1,r5,r8
52236 + psubh.sh r7,r3,r6
52237 + psubh.sh r4,r3,r3
52238 + .text
52239 + .global paddxh_sh
52240 +paddxh_sh:
52241 + paddxh.sh pc,pc,pc
52242 + paddxh.sh r12,r12,r12
52243 + paddxh.sh r5,r5,r5
52244 + paddxh.sh r4,r4,r4
52245 + paddxh.sh lr,lr,lr
52246 + paddxh.sh r6,r0,r4
52247 + paddxh.sh r9,r8,r9
52248 + paddxh.sh r3,r0,sp
52249 + .text
52250 + .global psubxh_sh
52251 +psubxh_sh:
52252 + psubxh.sh pc,pc,pc
52253 + psubxh.sh r12,r12,r12
52254 + psubxh.sh r5,r5,r5
52255 + psubxh.sh r4,r4,r4
52256 + psubxh.sh lr,lr,lr
52257 + psubxh.sh r4,pc,r12
52258 + psubxh.sh r8,r4,r6
52259 + psubxh.sh r12,r9,r4
52260 + .text
52261 + .global paddsub_h
52262 +paddsub_h:
52263 + paddsub.h pc,pc:b,pc:b
52264 + paddsub.h r12,r12:t,r12:t
52265 + paddsub.h r5,r5:t,r5:t
52266 + paddsub.h r4,r4:b,r4:b
52267 + paddsub.h lr,lr:t,lr:t
52268 + paddsub.h r5,r2:t,lr:b
52269 + paddsub.h r7,r1:b,r8:b
52270 + paddsub.h r6,r10:t,r5:t
52271 + .text
52272 + .global psubadd_h
52273 +psubadd_h:
52274 + psubadd.h pc,pc:b,pc:b
52275 + psubadd.h r12,r12:t,r12:t
52276 + psubadd.h r5,r5:t,r5:t
52277 + psubadd.h r4,r4:b,r4:b
52278 + psubadd.h lr,lr:t,lr:t
52279 + psubadd.h r9,r11:t,r8:t
52280 + psubadd.h r10,r7:t,lr:t
52281 + psubadd.h r6,pc:t,pc:b
52282 + .text
52283 + .global paddsubs_sh
52284 +paddsubs_sh:
52285 + paddsubs.sh pc,pc:b,pc:b
52286 + paddsubs.sh r12,r12:t,r12:t
52287 + paddsubs.sh r5,r5:t,r5:t
52288 + paddsubs.sh r4,r4:b,r4:b
52289 + paddsubs.sh lr,lr:t,lr:t
52290 + paddsubs.sh r0,lr:t,r0:b
52291 + paddsubs.sh r9,r2:t,r4:t
52292 + paddsubs.sh r12,r9:t,sp:t
52293 + .text
52294 + .global psubadds_sh
52295 +psubadds_sh:
52296 + psubadds.sh pc,pc:b,pc:b
52297 + psubadds.sh r12,r12:t,r12:t
52298 + psubadds.sh r5,r5:t,r5:t
52299 + psubadds.sh r4,r4:b,r4:b
52300 + psubadds.sh lr,lr:t,lr:t
52301 + psubadds.sh pc,lr:b,r1:t
52302 + psubadds.sh r11,r3:b,r12:b
52303 + psubadds.sh r10,r2:t,r8:t
52304 + .text
52305 + .global paddsubs_uh
52306 +paddsubs_uh:
52307 + paddsubs.uh pc,pc:b,pc:b
52308 + paddsubs.uh r12,r12:t,r12:t
52309 + paddsubs.uh r5,r5:t,r5:t
52310 + paddsubs.uh r4,r4:b,r4:b
52311 + paddsubs.uh lr,lr:t,lr:t
52312 + paddsubs.uh r9,r2:b,r3:b
52313 + paddsubs.uh sp,sp:b,r7:t
52314 + paddsubs.uh lr,r0:b,r10:t
52315 + .text
52316 + .global psubadds_uh
52317 +psubadds_uh:
52318 + psubadds.uh pc,pc:b,pc:b
52319 + psubadds.uh r12,r12:t,r12:t
52320 + psubadds.uh r5,r5:t,r5:t
52321 + psubadds.uh r4,r4:b,r4:b
52322 + psubadds.uh lr,lr:t,lr:t
52323 + psubadds.uh r12,r9:t,pc:t
52324 + psubadds.uh r8,r6:b,r8:b
52325 + psubadds.uh r8,r8:b,r4:b
52326 + .text
52327 + .global paddsubh_sh
52328 +paddsubh_sh:
52329 + paddsubh.sh pc,pc:b,pc:b
52330 + paddsubh.sh r12,r12:t,r12:t
52331 + paddsubh.sh r5,r5:t,r5:t
52332 + paddsubh.sh r4,r4:b,r4:b
52333 + paddsubh.sh lr,lr:t,lr:t
52334 + paddsubh.sh r8,r9:t,r9:b
52335 + paddsubh.sh r0,sp:t,r1:t
52336 + paddsubh.sh r3,r1:b,r0:t
52337 + .text
52338 + .global psubaddh_sh
52339 +psubaddh_sh:
52340 + psubaddh.sh pc,pc:b,pc:b
52341 + psubaddh.sh r12,r12:t,r12:t
52342 + psubaddh.sh r5,r5:t,r5:t
52343 + psubaddh.sh r4,r4:b,r4:b
52344 + psubaddh.sh lr,lr:t,lr:t
52345 + psubaddh.sh r7,r3:t,r10:b
52346 + psubaddh.sh r7,r2:t,r1:t
52347 + psubaddh.sh r11,r3:b,r6:b
52348 + .text
52349 + .global padd_b
52350 +padd_b:
52351 + padd.b pc,pc,pc
52352 + padd.b r12,r12,r12
52353 + padd.b r5,r5,r5
52354 + padd.b r4,r4,r4
52355 + padd.b lr,lr,lr
52356 + padd.b r2,r6,pc
52357 + padd.b r8,r9,r12
52358 + padd.b r5,r12,r3
52359 + .text
52360 + .global psub_b
52361 +psub_b:
52362 + psub.b pc,pc,pc
52363 + psub.b r12,r12,r12
52364 + psub.b r5,r5,r5
52365 + psub.b r4,r4,r4
52366 + psub.b lr,lr,lr
52367 + psub.b r0,r12,pc
52368 + psub.b r7,sp,r10
52369 + psub.b r5,sp,r12
52370 + .text
52371 + .global padds_sb
52372 +padds_sb:
52373 + padds.sb pc,pc,pc
52374 + padds.sb r12,r12,r12
52375 + padds.sb r5,r5,r5
52376 + padds.sb r4,r4,r4
52377 + padds.sb lr,lr,lr
52378 + padds.sb sp,r11,r4
52379 + padds.sb r11,r10,r11
52380 + padds.sb r5,r12,r6
52381 + .text
52382 + .global psubs_sb
52383 +psubs_sb:
52384 + psubs.sb pc,pc,pc
52385 + psubs.sb r12,r12,r12
52386 + psubs.sb r5,r5,r5
52387 + psubs.sb r4,r4,r4
52388 + psubs.sb lr,lr,lr
52389 + psubs.sb r7,r6,r8
52390 + psubs.sb r12,r10,r9
52391 + psubs.sb pc,r11,r0
52392 + .text
52393 + .global padds_ub
52394 +padds_ub:
52395 + padds.ub pc,pc,pc
52396 + padds.ub r12,r12,r12
52397 + padds.ub r5,r5,r5
52398 + padds.ub r4,r4,r4
52399 + padds.ub lr,lr,lr
52400 + padds.ub r3,r2,r11
52401 + padds.ub r10,r8,r1
52402 + padds.ub r11,r8,r10
52403 + .text
52404 + .global psubs_ub
52405 +psubs_ub:
52406 + psubs.ub pc,pc,pc
52407 + psubs.ub r12,r12,r12
52408 + psubs.ub r5,r5,r5
52409 + psubs.ub r4,r4,r4
52410 + psubs.ub lr,lr,lr
52411 + psubs.ub r0,r2,r7
52412 + psubs.ub lr,r5,r3
52413 + psubs.ub r6,r7,r9
52414 + .text
52415 + .global paddh_ub
52416 +paddh_ub:
52417 + paddh.ub pc,pc,pc
52418 + paddh.ub r12,r12,r12
52419 + paddh.ub r5,r5,r5
52420 + paddh.ub r4,r4,r4
52421 + paddh.ub lr,lr,lr
52422 + paddh.ub lr,r1,r0
52423 + paddh.ub r2,r7,r7
52424 + paddh.ub r2,r1,r2
52425 + .text
52426 + .global psubh_ub
52427 +psubh_ub:
52428 + psubh.ub pc,pc,pc
52429 + psubh.ub r12,r12,r12
52430 + psubh.ub r5,r5,r5
52431 + psubh.ub r4,r4,r4
52432 + psubh.ub lr,lr,lr
52433 + psubh.ub r0,r1,r6
52434 + psubh.ub r4,lr,r10
52435 + psubh.ub r9,r8,r1
52436 + .text
52437 + .global pmax_ub
52438 +pmax_ub:
52439 + pmax.ub pc,pc,pc
52440 + pmax.ub r12,r12,r12
52441 + pmax.ub r5,r5,r5
52442 + pmax.ub r4,r4,r4
52443 + pmax.ub lr,lr,lr
52444 + pmax.ub pc,r2,r11
52445 + pmax.ub r12,r1,r1
52446 + pmax.ub r5,r2,r0
52447 + .text
52448 + .global pmax_sh
52449 +pmax_sh:
52450 + pmax.sh pc,pc,pc
52451 + pmax.sh r12,r12,r12
52452 + pmax.sh r5,r5,r5
52453 + pmax.sh r4,r4,r4
52454 + pmax.sh lr,lr,lr
52455 + pmax.sh lr,r6,r12
52456 + pmax.sh r2,pc,r5
52457 + pmax.sh pc,r2,r7
52458 + .text
52459 + .global pmin_ub
52460 +pmin_ub:
52461 + pmin.ub pc,pc,pc
52462 + pmin.ub r12,r12,r12
52463 + pmin.ub r5,r5,r5
52464 + pmin.ub r4,r4,r4
52465 + pmin.ub lr,lr,lr
52466 + pmin.ub r8,r1,r5
52467 + pmin.ub r1,r8,r3
52468 + pmin.ub r0,r2,r7
52469 + .text
52470 + .global pmin_sh
52471 +pmin_sh:
52472 + pmin.sh pc,pc,pc
52473 + pmin.sh r12,r12,r12
52474 + pmin.sh r5,r5,r5
52475 + pmin.sh r4,r4,r4
52476 + pmin.sh lr,lr,lr
52477 + pmin.sh r8,r4,r10
52478 + pmin.sh lr,r10,r12
52479 + pmin.sh r2,r6,r2
52480 + .text
52481 + .global pavg_ub
52482 +pavg_ub:
52483 + pavg.ub pc,pc,pc
52484 + pavg.ub r12,r12,r12
52485 + pavg.ub r5,r5,r5
52486 + pavg.ub r4,r4,r4
52487 + pavg.ub lr,lr,lr
52488 + pavg.ub r0,r1,r6
52489 + pavg.ub r8,r3,r6
52490 + pavg.ub pc,r12,r10
52491 + .text
52492 + .global pavg_sh
52493 +pavg_sh:
52494 + pavg.sh pc,pc,pc
52495 + pavg.sh r12,r12,r12
52496 + pavg.sh r5,r5,r5
52497 + pavg.sh r4,r4,r4
52498 + pavg.sh lr,lr,lr
52499 + pavg.sh r9,pc,sp
52500 + pavg.sh pc,sp,r3
52501 + pavg.sh r6,r1,r9
52502 + .text
52503 + .global pabs_sb
52504 +pabs_sb:
52505 + pabs.sb pc,pc
52506 + pabs.sb r12,r12
52507 + pabs.sb r5,r5
52508 + pabs.sb r4,r4
52509 + pabs.sb lr,lr
52510 + pabs.sb r11,r6
52511 + pabs.sb lr,r9
52512 + pabs.sb sp,r7
52513 + .text
52514 + .global pabs_sh
52515 +pabs_sh:
52516 + pabs.sh pc,pc
52517 + pabs.sh r12,r12
52518 + pabs.sh r5,r5
52519 + pabs.sh r4,r4
52520 + pabs.sh lr,lr
52521 + pabs.sh pc,r3
52522 + pabs.sh r5,r7
52523 + pabs.sh r4,r0
52524 + .text
52525 + .global psad
52526 +psad:
52527 + psad pc,pc,pc
52528 + psad r12,r12,r12
52529 + psad r5,r5,r5
52530 + psad r4,r4,r4
52531 + psad lr,lr,lr
52532 + psad r9,r11,r11
52533 + psad lr,r4,sp
52534 + psad lr,r4,r5
52535 + .text
52536 + .global pasr_b
52537 +pasr_b:
52538 + pasr.b pc,pc,0
52539 + pasr.b r12,r12,7
52540 + pasr.b r5,r5,4
52541 + pasr.b r4,r4,3
52542 + pasr.b lr,lr,1
52543 + pasr.b pc,r7,1
52544 + pasr.b sp,lr,6
52545 + pasr.b sp,r3,2
52546 + .text
52547 + .global plsl_b
52548 +plsl_b:
52549 + plsl.b pc,pc,0
52550 + plsl.b r12,r12,7
52551 + plsl.b r5,r5,4
52552 + plsl.b r4,r4,3
52553 + plsl.b lr,lr,1
52554 + plsl.b r2,r11,4
52555 + plsl.b r8,r5,7
52556 + plsl.b pc,r0,2
52557 + .text
52558 + .global plsr_b
52559 +plsr_b:
52560 + plsr.b pc,pc,0
52561 + plsr.b r12,r12,7
52562 + plsr.b r5,r5,4
52563 + plsr.b r4,r4,3
52564 + plsr.b lr,lr,1
52565 + plsr.b r12,r1,2
52566 + plsr.b r6,pc,7
52567 + plsr.b r12,r11,2
52568 + .text
52569 + .global pasr_h
52570 +pasr_h:
52571 + pasr.h pc,pc,0
52572 + pasr.h r12,r12,15
52573 + pasr.h r5,r5,8
52574 + pasr.h r4,r4,7
52575 + pasr.h lr,lr,1
52576 + pasr.h r0,r11,10
52577 + pasr.h r4,r6,8
52578 + pasr.h r6,r2,4
52579 + .text
52580 + .global plsl_h
52581 +plsl_h:
52582 + plsl.h pc,pc,0
52583 + plsl.h r12,r12,15
52584 + plsl.h r5,r5,8
52585 + plsl.h r4,r4,7
52586 + plsl.h lr,lr,1
52587 + plsl.h r5,r10,9
52588 + plsl.h sp,lr,8
52589 + plsl.h r0,lr,7
52590 + .text
52591 + .global plsr_h
52592 +plsr_h:
52593 + plsr.h pc,pc,0
52594 + plsr.h r12,r12,15
52595 + plsr.h r5,r5,8
52596 + plsr.h r4,r4,7
52597 + plsr.h lr,lr,1
52598 + plsr.h r11,r0,15
52599 + plsr.h lr,r3,3
52600 + plsr.h r8,lr,10
52601 + .text
52602 + .global packw_sh
52603 +packw_sh:
52604 + packw.sh pc,pc,pc
52605 + packw.sh r12,r12,r12
52606 + packw.sh r5,r5,r5
52607 + packw.sh r4,r4,r4
52608 + packw.sh lr,lr,lr
52609 + packw.sh sp,r11,r10
52610 + packw.sh r8,r2,r12
52611 + packw.sh r8,r1,r5
52612 + .text
52613 + .global punpckub_h
52614 +punpckub_h:
52615 + punpckub.h pc,pc:b
52616 + punpckub.h r12,r12:t
52617 + punpckub.h r5,r5:t
52618 + punpckub.h r4,r4:b
52619 + punpckub.h lr,lr:t
52620 + punpckub.h r6,r1:t
52621 + punpckub.h lr,r5:b
52622 + punpckub.h lr,r2:t
52623 + .text
52624 + .global punpcksb_h
52625 +punpcksb_h:
52626 + punpcksb.h pc,pc:b
52627 + punpcksb.h r12,r12:t
52628 + punpcksb.h r5,r5:t
52629 + punpcksb.h r4,r4:b
52630 + punpcksb.h lr,lr:t
52631 + punpcksb.h r4,r7:t
52632 + punpcksb.h r6,lr:b
52633 + punpcksb.h r12,r12:t
52634 + .text
52635 + .global packsh_ub
52636 +packsh_ub:
52637 + packsh.ub pc,pc,pc
52638 + packsh.ub r12,r12,r12
52639 + packsh.ub r5,r5,r5
52640 + packsh.ub r4,r4,r4
52641 + packsh.ub lr,lr,lr
52642 + packsh.ub r3,r6,r3
52643 + packsh.ub r8,r0,r3
52644 + packsh.ub r9,r3,lr
52645 + .text
52646 + .global packsh_sb
52647 +packsh_sb:
52648 + packsh.sb pc,pc,pc
52649 + packsh.sb r12,r12,r12
52650 + packsh.sb r5,r5,r5
52651 + packsh.sb r4,r4,r4
52652 + packsh.sb lr,lr,lr
52653 + packsh.sb r6,r8,r1
52654 + packsh.sb lr,r9,r8
52655 + packsh.sb sp,r6,r6
52656 + .text
52657 + .global andl
52658 +andl:
52659 + andl pc,0
52660 + andl r12,65535
52661 + andl r5,32768
52662 + andl r4,32767
52663 + andl lr,1
52664 + andl pc,23128
52665 + andl r8,47262
52666 + andl r7,13719
52667 + .text
52668 + .global andl_coh
52669 +andl_coh:
52670 + andl pc,0,COH
52671 + andl r12,65535,COH
52672 + andl r5,32768,COH
52673 + andl r4,32767,COH
52674 + andl lr,1,COH
52675 + andl r6,22753,COH
52676 + andl r0,40653,COH
52677 + andl r4,48580,COH
52678 + .text
52679 + .global andh
52680 +andh:
52681 + andh pc,0
52682 + andh r12,65535
52683 + andh r5,32768
52684 + andh r4,32767
52685 + andh lr,1
52686 + andh r12,52312
52687 + andh r3,8675
52688 + andh r2,42987
52689 + .text
52690 + .global andh_coh
52691 +andh_coh:
52692 + andh pc,0,COH
52693 + andh r12,65535,COH
52694 + andh r5,32768,COH
52695 + andh r4,32767,COH
52696 + andh lr,1,COH
52697 + andh r11,34317,COH
52698 + andh r8,52982,COH
52699 + andh r10,23683,COH
52700 + .text
52701 + .global orl
52702 +orl:
52703 + orl pc,0
52704 + orl r12,65535
52705 + orl r5,32768
52706 + orl r4,32767
52707 + orl lr,1
52708 + orl sp,16766
52709 + orl r0,21181
52710 + orl pc,44103
52711 + .text
52712 + .global orh
52713 +orh:
52714 + orh pc,0
52715 + orh r12,65535
52716 + orh r5,32768
52717 + orh r4,32767
52718 + orh lr,1
52719 + orh r8,28285
52720 + orh r12,30492
52721 + orh r1,59930
52722 + .text
52723 + .global eorl
52724 +eorl:
52725 + eorl pc,0
52726 + eorl r12,65535
52727 + eorl r5,32768
52728 + eorl r4,32767
52729 + eorl lr,1
52730 + eorl r4,51129
52731 + eorl r6,64477
52732 + eorl r1,20913
52733 + .text
52734 + .global eorh
52735 +eorh:
52736 + eorh pc,0
52737 + eorh r12,65535
52738 + eorh r5,32768
52739 + eorh r4,32767
52740 + eorh lr,1
52741 + eorh r0,11732
52742 + eorh r10,38069
52743 + eorh r9,57130
52744 + .text
52745 + .global mcall
52746 +mcall:
52747 + mcall pc[0]
52748 + mcall r12[-4]
52749 + mcall r5[-131072]
52750 + mcall r4[131068]
52751 + mcall lr[4]
52752 + mcall sp[61180]
52753 + mcall r4[-35000]
52754 + mcall r0[9924]
52755 + .text
52756 + .global pref
52757 +pref:
52758 + pref pc[0]
52759 + pref r12[-1]
52760 + pref r5[-32768]
52761 + pref r4[32767]
52762 + pref lr[1]
52763 + pref r7[7748]
52764 + pref r7[-7699]
52765 + pref r2[-25892]
52766 + .text
52767 + .global cache
52768 +cache:
52769 + cache pc[0],0
52770 + cache r12[-1],31
52771 + cache r5[-1024],16
52772 + cache r4[1023],15
52773 + cache lr[1],1
52774 + cache r3[-964],17
52775 + cache r4[-375],22
52776 + cache r3[-888],17
52777 + .text
52778 + .global sub4
52779 +sub4:
52780 + sub pc,0
52781 + sub r12,-1
52782 + sub r5,-1048576
52783 + sub r4,1048575
52784 + sub lr,1
52785 + sub r2,-619156
52786 + sub lr,461517
52787 + sub r8,-185051
52788 + .text
52789 + .global cp3
52790 +cp3:
52791 + cp pc,0
52792 + cp r12,-1
52793 + cp r5,-1048576
52794 + cp r4,1048575
52795 + cp lr,1
52796 + cp r1,124078
52797 + cp r0,-378909
52798 + cp r4,-243180
52799 + .text
52800 + .global mov2
52801 +mov2:
52802 + mov pc,0
52803 + mov r12,-1
52804 + mov r5,-1048576
52805 + mov r4,1048575
52806 + mov lr,1
52807 + mov r5,-317021
52808 + mov sp,-749164
52809 + mov r5,940179
52810 + .text
52811 + .global brc2
52812 +brc2:
52813 + breq 0
52814 + bral -2
52815 + brls -2097152
52816 + brpl 2097150
52817 + brne 2
52818 + brhi -1796966
52819 + brqs 1321368
52820 + brls -577434
52821 + .text
52822 + .global rcall2
52823 +rcall2:
52824 + rcall 0
52825 + rcall -2
52826 + rcall -2097152
52827 + rcall 2097150
52828 + rcall 2
52829 + rcall 496820
52830 + rcall 1085092
52831 + rcall -1058
52832 + .text
52833 + .global sub5
52834 +sub5:
52835 + sub pc,pc,0
52836 + sub r12,r12,-1
52837 + sub r5,r5,-32768
52838 + sub r4,r4,32767
52839 + sub lr,lr,1
52840 + sub pc,pc,-12744
52841 + sub r7,r7,-27365
52842 + sub r2,r9,-17358
52843 + .text
52844 + .global satsub_w2
52845 +satsub_w2:
52846 + satsub.w pc,pc,0
52847 + satsub.w r12,r12,-1
52848 + satsub.w r5,r5,-32768
52849 + satsub.w r4,r4,32767
52850 + satsub.w lr,lr,1
52851 + satsub.w r2,lr,-2007
52852 + satsub.w r7,r12,-784
52853 + satsub.w r4,r7,23180
52854 + .text
52855 + .global ld_d4
52856 +ld_d4:
52857 + ld.d r0,pc[0]
52858 + ld.d r14,r12[-1]
52859 + ld.d r8,r5[-32768]
52860 + ld.d r6,r4[32767]
52861 + ld.d r2,lr[1]
52862 + ld.d r14,r11[14784]
52863 + ld.d r6,r9[-18905]
52864 + ld.d r2,r3[-6355]
52865 + .text
52866 + .global ld_w4
52867 +ld_w4:
52868 + ld.w pc,pc[0]
52869 + ld.w r12,r12[-1]
52870 + ld.w r5,r5[-32768]
52871 + ld.w r4,r4[32767]
52872 + ld.w lr,lr[1]
52873 + ld.w r0,r12[-22133]
52874 + ld.w sp,pc[-20521]
52875 + /* ld.w r3,r5[29035] */
52876 + nop
52877 + .text
52878 + .global ld_sh4
52879 +ld_sh4:
52880 + ld.sh pc,pc[0]
52881 + ld.sh r12,r12[-1]
52882 + ld.sh r5,r5[-32768]
52883 + ld.sh r4,r4[32767]
52884 + ld.sh lr,lr[1]
52885 + ld.sh r6,r10[30930]
52886 + ld.sh r6,r10[21973]
52887 + /* ld.sh r11,r10[-2058] */
52888 + nop
52889 + .text
52890 + .global ld_uh4
52891 +ld_uh4:
52892 + ld.uh pc,pc[0]
52893 + ld.uh r12,r12[-1]
52894 + ld.uh r5,r5[-32768]
52895 + ld.uh r4,r4[32767]
52896 + ld.uh lr,lr[1]
52897 + ld.uh r1,r9[-13354]
52898 + ld.uh lr,r11[21337]
52899 + /* ld.uh r2,lr[-25370] */
52900 + nop
52901 + .text
52902 + .global ld_sb1
52903 +ld_sb1:
52904 + ld.sb pc,pc[0]
52905 + ld.sb r12,r12[-1]
52906 + ld.sb r5,r5[-32768]
52907 + ld.sb r4,r4[32767]
52908 + ld.sb lr,lr[1]
52909 + ld.sb r7,sp[-28663]
52910 + ld.sb r2,r1[-5879]
52911 + ld.sb r12,r3[18734]
52912 + .text
52913 + .global ld_ub4
52914 +ld_ub4:
52915 + ld.ub pc,pc[0]
52916 + ld.ub r12,r12[-1]
52917 + ld.ub r5,r5[-32768]
52918 + ld.ub r4,r4[32767]
52919 + ld.ub lr,lr[1]
52920 + ld.ub pc,r4[8277]
52921 + ld.ub r5,r12[19172]
52922 + ld.ub r10,lr[26347]
52923 + .text
52924 + .global st_d4
52925 +st_d4:
52926 + st.d pc[0],r0
52927 + st.d r12[-1],r14
52928 + st.d r5[-32768],r8
52929 + st.d r4[32767],r6
52930 + st.d lr[1],r2
52931 + st.d r5[13200],r10
52932 + st.d r5[9352],r10
52933 + st.d r5[32373],r4
52934 + .text
52935 + .global st_w4
52936 +st_w4:
52937 + st.w pc[0],pc
52938 + st.w r12[-1],r12
52939 + st.w r5[-32768],r5
52940 + st.w r4[32767],r4
52941 + st.w lr[1],lr
52942 + st.w sp[6136],r7
52943 + st.w r6[27087],r12
52944 + /* st.w r3[20143],r7 */
52945 + nop
52946 + .text
52947 + .global st_h4
52948 +st_h4:
52949 + st.h pc[0],pc
52950 + st.h r12[-1],r12
52951 + st.h r5[-32768],r5
52952 + st.h r4[32767],r4
52953 + st.h lr[1],lr
52954 + st.h r4[-9962],r7
52955 + st.h r9[-16250],r3
52956 + /* st.h r8[-28810],r7 */
52957 + nop
52958 + .text
52959 + .global st_b4
52960 +st_b4:
52961 + st.b pc[0],pc
52962 + st.b r12[-1],r12
52963 + st.b r5[-32768],r5
52964 + st.b r4[32767],r4
52965 + st.b lr[1],lr
52966 + st.b r12[30102],r6
52967 + st.b r5[28977],r1
52968 + st.b r0[5470],r1
52969 + .text
52970 + .global mfsr
52971 +mfsr:
52972 + mfsr pc,0
52973 + mfsr r12,1020
52974 + mfsr r5,512
52975 + mfsr r4,508
52976 + mfsr lr,4
52977 + mfsr r2,696
52978 + mfsr r4,260
52979 + mfsr r10,1016
52980 + .text
52981 + .global mtsr
52982 +mtsr:
52983 + mtsr 0,pc
52984 + mtsr 1020,r12
52985 + mtsr 512,r5
52986 + mtsr 508,r4
52987 + mtsr 4,lr
52988 + mtsr 224,r10
52989 + mtsr 836,r12
52990 + mtsr 304,r9
52991 + .text
52992 + .global mfdr
52993 +mfdr:
52994 + mfdr pc,0
52995 + mfdr r12,1020
52996 + mfdr r5,512
52997 + mfdr r4,508
52998 + mfdr lr,4
52999 + mfdr r6,932
53000 + mfdr r5,36
53001 + mfdr r9,300
53002 + .text
53003 + .global mtdr
53004 +mtdr:
53005 + mtdr 0,pc
53006 + mtdr 1020,r12
53007 + mtdr 512,r5
53008 + mtdr 508,r4
53009 + mtdr 4,lr
53010 + mtdr 180,r8
53011 + mtdr 720,r10
53012 + mtdr 408,lr
53013 + .text
53014 + .global sleep
53015 +sleep:
53016 + sleep 0
53017 + sleep 255
53018 + sleep 128
53019 + sleep 127
53020 + sleep 1
53021 + sleep 254
53022 + sleep 15
53023 + sleep 43
53024 + .text
53025 + .global sync
53026 +sync:
53027 + sync 0
53028 + sync 255
53029 + sync 128
53030 + sync 127
53031 + sync 1
53032 + sync 166
53033 + sync 230
53034 + sync 180
53035 + .text
53036 + .global bld
53037 +bld:
53038 + bld pc,0
53039 + bld r12,31
53040 + bld r5,16
53041 + bld r4,15
53042 + bld lr,1
53043 + bld r9,15
53044 + bld r0,4
53045 + bld lr,26
53046 + .text
53047 + .global bst
53048 +bst:
53049 + bst pc,0
53050 + bst r12,31
53051 + bst r5,16
53052 + bst r4,15
53053 + bst lr,1
53054 + bst r10,28
53055 + bst r0,3
53056 + bst sp,2
53057 + .text
53058 + .global sats
53059 +sats:
53060 + sats pc>>0,0
53061 + sats r12>>31,31
53062 + sats r5>>16,16
53063 + sats r4>>15,15
53064 + sats lr>>1,1
53065 + sats r10>>3,19
53066 + sats r10>>2,26
53067 + sats r1>>20,1
53068 + .text
53069 + .global satu
53070 +satu:
53071 + satu pc>>0,0
53072 + satu r12>>31,31
53073 + satu r5>>16,16
53074 + satu r4>>15,15
53075 + satu lr>>1,1
53076 + satu pc>>5,7
53077 + satu r7>>5,5
53078 + satu r2>>26,19
53079 + .text
53080 + .global satrnds
53081 +satrnds:
53082 + satrnds pc>>0,0
53083 + satrnds r12>>31,31
53084 + satrnds r5>>16,16
53085 + satrnds r4>>15,15
53086 + satrnds lr>>1,1
53087 + satrnds r0>>21,19
53088 + satrnds sp>>0,2
53089 + satrnds r7>>6,29
53090 + .text
53091 + .global satrndu
53092 +satrndu:
53093 + satrndu pc>>0,0
53094 + satrndu r12>>31,31
53095 + satrndu r5>>16,16
53096 + satrndu r4>>15,15
53097 + satrndu lr>>1,1
53098 + satrndu r12>>0,26
53099 + satrndu r4>>21,3
53100 + satrndu r10>>3,16
53101 + .text
53102 + .global subfc
53103 +subfc:
53104 + subfeq pc,0
53105 + subfal r12,-1
53106 + subfls r5,-128
53107 + subfpl r4,127
53108 + subfne lr,1
53109 + subfls r10,8
53110 + subfvc r11,99
53111 + subfvs r2,73
53112 + .text
53113 + .global subc
53114 +subc:
53115 + subeq pc,0
53116 + subal r12,-1
53117 + subls r5,-128
53118 + subpl r4,127
53119 + subne lr,1
53120 + subls r12,118
53121 + subvc lr,-12
53122 + submi r4,-13
53123 + .text
53124 + .global movc2
53125 +movc2:
53126 + moveq pc,0
53127 + moval r12,-1
53128 + movls r5,-128
53129 + movpl r4,127
53130 + movne lr,1
53131 + movlt r3,-122
53132 + movvc r8,2
53133 + movne r7,-111
53134 + .text
53135 + .global cp_b
53136 +cp_b:
53137 + cp.b pc,r0
53138 + cp.b r0,pc
53139 + cp.b r7,r8
53140 + cp.b r8,r7
53141 + .text
53142 + .global cp_h
53143 +cp_h:
53144 + cp.h pc,r0
53145 + cp.h r0,pc
53146 + cp.h r7,r8
53147 + cp.h r8,r7
53148 + .text
53149 + .global ldm
53150 +ldm:
53151 + ldm pc,r1-r6
53152 + ldm r12,r0-r15
53153 + ldm r5,r15
53154 + ldm r4,r0-r14
53155 + ldm lr,r0
53156 + ldm r9,r1,r5,r14
53157 + ldm r11,r2-r3,r5-r8,r15
53158 + ldm r6,r0,r3,r9,r13,r15
53159 + .text
53160 + .global ldm_pu
53161 +ldm_pu:
53162 + ldm pc++,r6-r9
53163 + ldm r12++,r0-r15
53164 + ldm r5++,r15
53165 + ldm r4++,r0-r14
53166 + ldm lr++,r0
53167 + ldm r12++,r3-r5,r8,r10,r12,r14-r15
53168 + ldm r10++,r2,r4-r6,r14-r15
53169 + ldm r6++,r1,r3-r4,r9-r14
53170 + .text
53171 + .global ldmts
53172 +ldmts:
53173 + ldmts pc,r7-r8
53174 + ldmts r12,r0-r15
53175 + ldmts r5,r15
53176 + ldmts r4,r0-r14
53177 + ldmts lr,r0
53178 + ldmts r0,r1-r2,r11-r12
53179 + ldmts lr,r0-r2,r4,r7-r8,r13-r14
53180 + ldmts r12,r0-r1,r3-r5,r9,r14-r15
53181 + .text
53182 + .global ldmts_pu
53183 +ldmts_pu:
53184 + ldmts pc++,r9
53185 + ldmts r12++,r0-r15
53186 + ldmts r5++,r15
53187 + ldmts r4++,r0-r14
53188 + ldmts lr++,r0
53189 + ldmts sp++,r0,r2-r5,r7,r9,r11
53190 + ldmts r5++,r1-r3,r7,r10-r11
53191 + ldmts r8++,r2-r4,r7-r8,r13,r15
53192 + .text
53193 + .global stm
53194 +stm:
53195 + stm pc,r7
53196 + stm r12,r0-r15
53197 + stm r5,r15
53198 + stm r4,r0-r14
53199 + stm lr,r0
53200 + stm sp,r2-r3,r5,r8,r11,r14
53201 + stm r4,r0-r4,r6,r10-r11,r14
53202 + stm r9,r1,r5,r9,r12-r15
53203 + .text
53204 + .global stm_pu
53205 +stm_pu:
53206 + stm --pc,r4-r6
53207 + stm --r12,r0-r15
53208 + stm --r5,r15
53209 + stm --r4,r0-r14
53210 + stm --lr,r0
53211 + stm --r11,r0,r4-r9,r11-r15
53212 + stm --r11,r0,r3,r9-r10,r12,r14
53213 + stm --r6,r2,r8-r9,r13-r14
53214 + .text
53215 + .global stmts
53216 +stmts:
53217 + stmts pc,r8
53218 + stmts r12,r0-r15
53219 + stmts r5,r15
53220 + stmts r4,r0-r14
53221 + stmts lr,r0
53222 + stmts r1,r0-r1,r3-r4,r6,r9-r10,r14-r15
53223 + stmts r3,r0,r6-r8,r10-r12
53224 + stmts r11,r0,r4,r6-r7,r9-r10,r12,r14-r15
53225 + .text
53226 + .global stmts_pu
53227 +stmts_pu:
53228 + stmts --pc,r6-r8
53229 + stmts --r12,r0-r15
53230 + stmts --r5,r15
53231 + stmts --r4,r0-r14
53232 + stmts --lr,r0
53233 + stmts --r2,r0,r3-r4,r9-r10,r12-r13
53234 + stmts --r3,r0-r1,r14-r15
53235 + stmts --r0,r0,r2-r6,r10,r14
53236 + .text
53237 + .global ldins_h
53238 +ldins_h:
53239 + ldins.h pc:b,pc[0]
53240 + ldins.h r12:t,r12[-2]
53241 + ldins.h r5:t,r5[-4096]
53242 + ldins.h r4:b,r4[4094]
53243 + ldins.h lr:t,lr[2]
53244 + ldins.h r0:t,lr[1930]
53245 + ldins.h r3:b,r7[-534]
53246 + ldins.h r2:b,r12[-2252]
53247 + .text
53248 + .global ldins_b
53249 +ldins_b:
53250 + ldins.b pc:b,pc[0]
53251 + ldins.b r12:t,r12[-1]
53252 + ldins.b r5:u,r5[-2048]
53253 + ldins.b r4:l,r4[2047]
53254 + ldins.b lr:l,lr[1]
53255 + ldins.b r6:t,r4[-662]
53256 + ldins.b r5:b,r1[-151]
53257 + ldins.b r10:t,r11[-1923]
53258 + .text
53259 + .global ldswp_sh
53260 +ldswp_sh:
53261 + ldswp.sh pc,pc[0]
53262 + ldswp.sh r12,r12[-2]
53263 + ldswp.sh r5,r5[-4096]
53264 + ldswp.sh r4,r4[4094]
53265 + ldswp.sh lr,lr[2]
53266 + ldswp.sh r9,r10[3848]
53267 + ldswp.sh r4,r12[-2040]
53268 + ldswp.sh r10,r2[3088]
53269 + .text
53270 + .global ldswp_uh
53271 +ldswp_uh:
53272 + ldswp.uh pc,pc[0]
53273 + ldswp.uh r12,r12[-2]
53274 + ldswp.uh r5,r5[-4096]
53275 + ldswp.uh r4,r4[4094]
53276 + ldswp.uh lr,lr[2]
53277 + ldswp.uh r4,r9[3724]
53278 + ldswp.uh lr,sp[-1672]
53279 + ldswp.uh r8,r12[-3846]
53280 + .text
53281 + .global ldswp_w
53282 +ldswp_w:
53283 + ldswp.w pc,pc[0]
53284 + ldswp.w r12,r12[-4]
53285 + ldswp.w r5,r5[-8192]
53286 + ldswp.w r4,r4[8188]
53287 + ldswp.w lr,lr[4]
53288 + ldswp.w sp,r7[1860]
53289 + ldswp.w pc,r5[-3324]
53290 + ldswp.w r12,r10[-3296]
53291 + .text
53292 + .global stswp_h
53293 +stswp_h:
53294 + stswp.h pc[0],pc
53295 + stswp.h r12[-2],r12
53296 + stswp.h r5[-4096],r5
53297 + stswp.h r4[4094],r4
53298 + stswp.h lr[2],lr
53299 + stswp.h r7[64],r10
53300 + stswp.h r10[3024],r2
53301 + stswp.h r0[-2328],r10
53302 + .text
53303 + .global stswp_w
53304 +stswp_w:
53305 + stswp.w pc[0],pc
53306 + stswp.w r12[-4],r12
53307 + stswp.w r5[-8192],r5
53308 + stswp.w r4[8188],r4
53309 + stswp.w lr[4],lr
53310 + stswp.w pc[1156],r8
53311 + stswp.w sp[7992],r10
53312 + stswp.w r8[-1172],r5
53313 + .text
53314 + .global and2
53315 +and2:
53316 + and pc,pc,pc<<0
53317 + and r12,r12,r12<<31
53318 + and r5,r5,r5<<16
53319 + and r4,r4,r4<<15
53320 + and lr,lr,lr<<1
53321 + and r10,r2,r1<<1
53322 + and r12,r8,r11<<27
53323 + and r10,r7,r0<<3
53324 + .text
53325 + .global and3
53326 +and3:
53327 + and pc,pc,pc>>0
53328 + and r12,r12,r12>>31
53329 + and r5,r5,r5>>16
53330 + and r4,r4,r4>>15
53331 + and lr,lr,lr>>1
53332 + and r12,r8,r7>>17
53333 + and pc,r4,r9>>20
53334 + and r10,r9,r10>>12
53335 + .text
53336 + .global or2
53337 +or2:
53338 + or pc,pc,pc<<0
53339 + or r12,r12,r12<<31
53340 + or r5,r5,r5<<16
53341 + or r4,r4,r4<<15
53342 + or lr,lr,lr<<1
53343 + or r8,sp,r11<<29
53344 + or pc,r9,r2<<28
53345 + or r5,r1,r2<<3
53346 + .text
53347 + .global or3
53348 +or3:
53349 + or pc,pc,pc>>0
53350 + or r12,r12,r12>>31
53351 + or r5,r5,r5>>16
53352 + or r4,r4,r4>>15
53353 + or lr,lr,lr>>1
53354 + or r1,sp,sp>>2
53355 + or r0,r1,r1>>29
53356 + or r4,r12,r8>>8
53357 + .text
53358 + .global eor2
53359 +eor2:
53360 + eor pc,pc,pc<<0
53361 + eor r12,r12,r12<<31
53362 + eor r5,r5,r5<<16
53363 + eor r4,r4,r4<<15
53364 + eor lr,lr,lr<<1
53365 + eor r10,r9,r4<<11
53366 + eor r4,r0,r1<<31
53367 + eor r6,r2,r12<<13
53368 + .text
53369 + .global eor3
53370 +eor3:
53371 + eor pc,pc,pc>>0
53372 + eor r12,r12,r12>>31
53373 + eor r5,r5,r5>>16
53374 + eor r4,r4,r4>>15
53375 + eor lr,lr,lr>>1
53376 + eor r5,r5,r5>>22
53377 + eor r10,r1,lr>>3
53378 + eor r7,lr,sp>>26
53379 + .text
53380 + .global sthh_w2
53381 +sthh_w2:
53382 + sthh.w pc[pc<<0],pc:b,pc:b
53383 + sthh.w r12[r12<<3],r12:t,r12:t
53384 + sthh.w r5[r5<<2],r5:t,r5:t
53385 + sthh.w r4[r4<<1],r4:b,r4:b
53386 + sthh.w lr[lr<<1],lr:t,lr:t
53387 + sthh.w sp[r6<<3],r1:t,r12:t
53388 + sthh.w r6[r6<<0],r9:t,r9:t
53389 + sthh.w r10[r3<<0],r0:b,r11:t
53390 + .text
53391 + .global sthh_w1
53392 +sthh_w1:
53393 + sthh.w pc[0],pc:b,pc:b
53394 + sthh.w r12[1020],r12:t,r12:t
53395 + sthh.w r5[512],r5:t,r5:t
53396 + sthh.w r4[508],r4:b,r4:b
53397 + sthh.w lr[4],lr:t,lr:t
53398 + sthh.w r4[404],r9:t,r0:b
53399 + sthh.w r8[348],r2:t,r10:b
53400 + sthh.w sp[172],r9:b,r2:b
53401 + .text
53402 + .global cop
53403 +cop:
53404 + cop cp0,cr0,cr0,cr0,0
53405 + cop cp7,cr15,cr15,cr15,0x7f
53406 + cop cp3,cr5,cr5,cr5,0x31
53407 + cop cp2,cr4,cr4,cr4,0x30
53408 + cop cp5,cr8,cr3,cr7,0x5a
53409 + .text
53410 + .global ldc_w1
53411 +ldc_w1:
53412 + ldc.w cp0,cr0,r0[0]
53413 + ldc.w cp7,cr15,pc[255<<2]
53414 + ldc.w cp3,cr5,r5[128<<2]
53415 + ldc.w cp2,cr4,r4[127<<2]
53416 + ldc.w cp4,cr9,r13[36<<2]
53417 + .text
53418 + .global ldc_w2
53419 +ldc_w2:
53420 + ldc.w cp0,cr0,--r0
53421 + ldc.w cp7,cr15,--pc
53422 + ldc.w cp3,cr5,--r5
53423 + ldc.w cp2,cr4,--r4
53424 + ldc.w cp4,cr9,--r13
53425 + .text
53426 + .global ldc_w3
53427 +ldc_w3:
53428 + ldc.w cp0,cr0,r0[r0]
53429 + ldc.w cp7,cr15,pc[pc<<3]
53430 + ldc.w cp3,cr5,r5[r4<<2]
53431 + ldc.w cp2,cr4,r4[r3<<1]
53432 + ldc.w cp4,cr9,r13[r12<<0]
53433 + .text
53434 + .global ldc_d1
53435 +ldc_d1:
53436 + ldc.d cp0,cr0,r0[0]
53437 + ldc.d cp7,cr14,pc[255<<2]
53438 + ldc.d cp3,cr6,r5[128<<2]
53439 + ldc.d cp2,cr4,r4[127<<2]
53440 + ldc.d cp4,cr8,r13[36<<2]
53441 + .text
53442 + .global ldc_d2
53443 +ldc_d2:
53444 + ldc.d cp0,cr0,--r0
53445 + ldc.d cp7,cr14,--pc
53446 + ldc.d cp3,cr6,--r5
53447 + ldc.d cp2,cr4,--r4
53448 + ldc.d cp4,cr8,--r13
53449 + .text
53450 + .global ldc_d3
53451 +ldc_d3:
53452 + ldc.d cp0,cr0,r0[r0]
53453 + ldc.d cp7,cr14,pc[pc<<3]
53454 + ldc.d cp3,cr6,r5[r4<<2]
53455 + ldc.d cp2,cr4,r4[r3<<1]
53456 + ldc.d cp4,cr8,r13[r12<<0]
53457 + .text
53458 + .global stc_w1
53459 +stc_w1:
53460 + stc.w cp0,r0[0],cr0
53461 + stc.w cp7,pc[255<<2],cr15
53462 + stc.w cp3,r5[128<<2],cr5
53463 + stc.w cp2,r4[127<<2],cr4
53464 + stc.w cp4,r13[36<<2],cr9
53465 + .text
53466 + .global stc_w2
53467 +stc_w2:
53468 + stc.w cp0,r0++,cr0
53469 + stc.w cp7,pc++,cr15
53470 + stc.w cp3,r5++,cr5
53471 + stc.w cp2,r4++,cr4
53472 + stc.w cp4,r13++,cr9
53473 + .text
53474 + .global stc_w3
53475 +stc_w3:
53476 + stc.w cp0,r0[r0],cr0
53477 + stc.w cp7,pc[pc<<3],cr15
53478 + stc.w cp3,r5[r4<<2],cr5
53479 + stc.w cp2,r4[r3<<1],cr4
53480 + stc.w cp4,r13[r12<<0],cr9
53481 + .text
53482 + .global stc_d1
53483 +stc_d1:
53484 + stc.d cp0,r0[0],cr0
53485 + stc.d cp7,pc[255<<2],cr14
53486 + stc.d cp3,r5[128<<2],cr6
53487 + stc.d cp2,r4[127<<2],cr4
53488 + stc.d cp4,r13[36<<2],cr8
53489 + .text
53490 + .global stc_d2
53491 +stc_d2:
53492 + stc.d cp0,r0++,cr0
53493 + stc.d cp7,pc++,cr14
53494 + stc.d cp3,r5++,cr6
53495 + stc.d cp2,r4++,cr4
53496 + stc.d cp4,r13++,cr8
53497 + .text
53498 + .global stc_d3
53499 +stc_d3:
53500 + stc.d cp0,r0[r0],cr0
53501 + stc.d cp7,pc[pc<<3],cr14
53502 + stc.d cp3,r5[r4<<2],cr6
53503 + stc.d cp2,r4[r3<<1],cr4
53504 + stc.d cp4,r13[r12<<0],cr8
53505 + .text
53506 + .global ldc0_w
53507 +ldc0_w:
53508 + ldc0.w cr0,r0[0]
53509 + ldc0.w cr15,pc[4095<<2]
53510 + ldc0.w cr5,r5[2048<<2]
53511 + ldc0.w cr4,r4[2047<<2]
53512 + ldc0.w cr9,r13[147<<2]
53513 + .text
53514 + .global ldc0_d
53515 +ldc0_d:
53516 + ldc0.d cr0,r0[0]
53517 + ldc0.d cr14,pc[4095<<2]
53518 + ldc0.d cr6,r5[2048<<2]
53519 + ldc0.d cr4,r4[2047<<2]
53520 + ldc0.d cr8,r13[147<<2]
53521 + .text
53522 + .global stc0_w
53523 +stc0_w:
53524 + stc0.w r0[0],cr0
53525 + stc0.w pc[4095<<2],cr15
53526 + stc0.w r5[2048<<2],cr5
53527 + stc0.w r4[2047<<2],cr4
53528 + stc0.w r13[147<<2],cr9
53529 + .text
53530 + .global stc0_d
53531 +stc0_d:
53532 + stc0.d r0[0],cr0
53533 + stc0.d pc[4095<<2],cr14
53534 + stc0.d r5[2048<<2],cr6
53535 + stc0.d r4[2047<<2],cr4
53536 + stc0.d r13[147<<2],cr8
53537 + .text
53538 + .global memc
53539 +memc:
53540 + memc 0, 0
53541 + memc -4, 31
53542 + memc -65536, 16
53543 + memc 65532, 15
53544 + .text
53545 + .global mems
53546 +mems:
53547 + mems 0, 0
53548 + mems -4, 31
53549 + mems -65536, 16
53550 + mems 65532, 15
53551 + .text
53552 + .global memt
53553 +memt:
53554 + memt 0, 0
53555 + memt -4, 31
53556 + memt -65536, 16
53557 + memt 65532, 15
53558 +
53559 + .text
53560 + .global stcond
53561 +stcond:
53562 + stcond r0[0], r0
53563 + stcond pc[-1], pc
53564 + stcond r8[-32768], r7
53565 + stcond r7[32767], r8
53566 + stcond r5[0x1234], r10
53567 +
53568 +ldcm_w:
53569 + ldcm.w cp0,pc,cr0-cr7
53570 + ldcm.w cp7,r0,cr0
53571 + ldcm.w cp4,r4++,cr0-cr6
53572 + ldcm.w cp3,r7,cr7
53573 + ldcm.w cp1,r12++,cr1,cr4-cr6
53574 + ldcm.w cp0,pc,cr8-cr15
53575 + ldcm.w cp7,r0,cr8
53576 + ldcm.w cp4,r4++,cr8-cr14
53577 + ldcm.w cp3,r7,cr15
53578 + ldcm.w cp1,r12++,cr9,cr12-cr14
53579 +
53580 +ldcm_d:
53581 + ldcm.d cp0,pc,cr0-cr15
53582 + ldcm.d cp7,r0,cr0,cr1
53583 + ldcm.d cp4,r4++,cr0-cr13
53584 + ldcm.d cp3,r7,cr14-cr15
53585 + ldcm.d cp2,r12++,cr0-cr3,cr8-cr9,cr14-cr15
53586 +
53587 +stcm_w:
53588 + stcm.w cp0,pc,cr0-cr7
53589 + stcm.w cp7,r0,cr0
53590 + stcm.w cp4,--r4,cr0-cr6
53591 + stcm.w cp3,r7,cr7
53592 + stcm.w cp1,--r12,cr1,cr4-cr6
53593 + stcm.w cp0,pc,cr8-cr15
53594 + stcm.w cp7,r0,cr8
53595 + stcm.w cp4,--r4,cr8-cr14
53596 + stcm.w cp3,r7,cr15
53597 + stcm.w cp1,--r12,cr9,cr12-cr14
53598 +
53599 +stcm_d:
53600 + stcm.d cp0,pc,cr0-cr15
53601 + stcm.d cp7,r0,cr0,cr1
53602 + stcm.d cp4,--r4,cr0-cr13
53603 + stcm.d cp3,r7,cr14-cr15
53604 + stcm.d cp2,--r12,cr0-cr3,cr8-cr9,cr14-cr15
53605 +
53606 +mvcr_w:
53607 + mvcr.w cp7,pc,cr15
53608 + mvcr.w cp0,r0,cr0
53609 + mvcr.w cp0,pc,cr15
53610 + mvcr.w cp7,r0,cr15
53611 + mvcr.w cp7,pc,cr0
53612 + mvcr.w cp4,r7,cr8
53613 + mvcr.w cp3,r8,cr7
53614 +
53615 +mvcr_d:
53616 + mvcr.d cp7,lr,cr14
53617 + mvcr.d cp0,r0,cr0
53618 + mvcr.d cp0,lr,cr14
53619 + mvcr.d cp7,r0,cr14
53620 + mvcr.d cp7,lr,cr0
53621 + mvcr.d cp4,r6,cr8
53622 + mvcr.d cp3,r8,cr6
53623 +
53624 +mvrc_w:
53625 + mvrc.w cp7,cr15,pc
53626 + mvrc.w cp0,cr0,r0
53627 + mvrc.w cp0,cr15,pc
53628 + mvrc.w cp7,cr15,r0
53629 + mvrc.w cp7,cr0,pc
53630 + mvrc.w cp4,cr8,r7
53631 + mvrc.w cp3,cr7,r8
53632 +
53633 +mvrc_d:
53634 + mvrc.d cp7,cr14,lr
53635 + mvrc.d cp0,cr0,r0
53636 + mvrc.d cp0,cr14,lr
53637 + mvrc.d cp7,cr14,r0
53638 + mvrc.d cp7,cr0,lr
53639 + mvrc.d cp4,cr8,r6
53640 + mvrc.d cp3,cr6,r8
53641 +
53642 +bfexts:
53643 + bfexts pc,pc,31,31
53644 + bfexts r0,r0,0,0
53645 + bfexts r0,pc,31,31
53646 + bfexts pc,r0,31,31
53647 + bfexts pc,pc,0,31
53648 + bfexts pc,pc,31,0
53649 + bfexts r7,r8,15,16
53650 + bfexts r8,r7,16,15
53651 +
53652 +bfextu:
53653 + bfextu pc,pc,31,31
53654 + bfextu r0,r0,0,0
53655 + bfextu r0,pc,31,31
53656 + bfextu pc,r0,31,31
53657 + bfextu pc,pc,0,31
53658 + bfextu pc,pc,31,0
53659 + bfextu r7,r8,15,16
53660 + bfextu r8,r7,16,15
53661 +
53662 +bfins:
53663 + bfins pc,pc,31,31
53664 + bfins r0,r0,0,0
53665 + bfins r0,pc,31,31
53666 + bfins pc,r0,31,31
53667 + bfins pc,pc,0,31
53668 + bfins pc,pc,31,0
53669 + bfins r7,r8,15,16
53670 + bfins r8,r7,16,15
53671 diff -Nrup binutils-2.17/gas/testsuite/gas/avr32/avr32.exp binutils-2.17.atmel.1.3.0/gas/testsuite/gas/avr32/avr32.exp
53672 --- binutils-2.17/gas/testsuite/gas/avr32/avr32.exp 1970-01-01 01:00:00.000000000 +0100
53673 +++ binutils-2.17.atmel.1.3.0/gas/testsuite/gas/avr32/avr32.exp 2007-03-26 10:19:48.000000000 +0200
53674 @@ -0,0 +1,23 @@
53675 +# AVR32 assembler testsuite. -*- Tcl -*-
53676 +
53677 +if [istarget avr32-*-*] {
53678 + run_dump_test "hwrd-lwrd"
53679 + run_dump_test "pcrel"
53680 + run_dump_test "aliases"
53681 + run_dump_test "dwarf2"
53682 + run_dump_test "pic_reloc"
53683 + run_dump_test "fpinsn"
53684 + run_dump_test "pico"
53685 + run_dump_test "lda_pic"
53686 + run_dump_test "lda_pic_linkrelax"
53687 + run_dump_test "lda_nopic"
53688 + run_dump_test "lda_nopic_linkrelax"
53689 + run_dump_test "call_pic"
53690 + run_dump_test "call_pic_linkrelax"
53691 + run_dump_test "call_nopic"
53692 + run_dump_test "call_nopic_linkrelax"
53693 + run_dump_test "jmptable"
53694 + run_dump_test "jmptable_linkrelax"
53695 + run_dump_test "symdiff"
53696 + run_dump_test "symdiff_linkrelax"
53697 +}
53698 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
53699 --- binutils-2.17/gas/testsuite/gas/avr32/call_nopic.d 1970-01-01 01:00:00.000000000 +0100
53700 +++ binutils-2.17.atmel.1.3.0/gas/testsuite/gas/avr32/call_nopic.d 2007-03-26 10:19:48.000000000 +0200
53701 @@ -0,0 +1,36 @@
53702 +#source: call.s
53703 +#as:
53704 +#objdump: -dr
53705 +#name: call_nopic
53706 +
53707 +.*: +file format .*
53708 +
53709 +Disassembly of section \.text:
53710 +
53711 +00000000 <call_test>:
53712 + 0: d7 03 nop
53713 +
53714 +00000002 <toofar_negative>:
53715 + \.\.\.
53716 + 1ffffe: 00 00 add r0,r0
53717 + 200000: f0 a0 00 00 rcall 0 <call_test>
53718 + 200004: f0 1f 00 0c mcall 200034 <toofar_negative\+0x200032>
53719 + 200008: f0 1f 00 0c mcall 200038 <toofar_negative\+0x200036>
53720 + 20000c: f0 1f 00 0c mcall 20003c <toofar_negative\+0x20003a>
53721 + 200010: f0 1f 00 0c mcall 200040 <toofar_negative\+0x20003e>
53722 + \.\.\.
53723 + 200030: ee b0 ff ff rcall 40002e <far_positive>
53724 + \.\.\.
53725 + 200034: R_AVR32_32_CPENT \.text\+0x2
53726 + 200038: R_AVR32_32_CPENT \.text\.init
53727 + 20003c: R_AVR32_32_CPENT undefined
53728 + 200040: R_AVR32_32_CPENT \.text\+0x40002c
53729 +
53730 +0040002c <toofar_positive>:
53731 + 40002c: d7 03 nop
53732 +0040002e <far_positive>:
53733 + 40002e: d7 03 nop
53734 +Disassembly of section \.text\.init:
53735 +
53736 +00000000 <different_section>:
53737 + 0: e2 c0 00 00 sub r0,r1,0
53738 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
53739 --- binutils-2.17/gas/testsuite/gas/avr32/call_nopic_linkrelax.d 1970-01-01 01:00:00.000000000 +0100
53740 +++ binutils-2.17.atmel.1.3.0/gas/testsuite/gas/avr32/call_nopic_linkrelax.d 2007-03-26 10:19:48.000000000 +0200
53741 @@ -0,0 +1,43 @@
53742 +#source: call.s
53743 +#as: --linkrelax
53744 +#objdump: -dr
53745 +#name: call_nopic_linkrelax
53746 +
53747 +.*: +file format .*
53748 +
53749 +Disassembly of section \.text:
53750 +
53751 +00000000 <call_test>:
53752 + 0: d7 03 nop
53753 +
53754 +00000002 <toofar_negative>:
53755 + \.\.\.
53756 + 1ffffe: 00 00 add r0,r0
53757 + 200000: e0 a0 00 00 rcall 200000 <toofar_negative\+0x1ffffe>
53758 + 200000: R_AVR32_22H_PCREL \.text
53759 + 200004: f0 1f 00 00 mcall 200004 <toofar_negative\+0x200002>
53760 + 200004: R_AVR32_CPCALL \.text\+0x200034
53761 + 200008: f0 1f 00 00 mcall 200008 <toofar_negative\+0x200006>
53762 + 200008: R_AVR32_CPCALL \.text\+0x200038
53763 + 20000c: f0 1f 00 00 mcall 20000c <toofar_negative\+0x20000a>
53764 + 20000c: R_AVR32_CPCALL \.text\+0x20003c
53765 + 200010: f0 1f 00 00 mcall 200010 <toofar_negative\+0x20000e>
53766 + 200010: R_AVR32_CPCALL \.text\+0x200040
53767 + \.\.\.
53768 + 200030: e0 a0 00 00 rcall 200030 <toofar_negative\+0x20002e>
53769 + 200030: R_AVR32_22H_PCREL \.text\+0x40002e
53770 + \.\.\.
53771 + 200034: R_AVR32_ALIGN \*ABS\*\+0x2
53772 + 200034: R_AVR32_32_CPENT \.text\+0x2
53773 + 200038: R_AVR32_32_CPENT \.text\.init
53774 + 20003c: R_AVR32_32_CPENT undefined
53775 + 200040: R_AVR32_32_CPENT \.text\+0x40002c
53776 +
53777 +0040002c <toofar_positive>:
53778 + 40002c: d7 03 nop
53779 +0040002e <far_positive>:
53780 + 40002e: d7 03 nop
53781 +Disassembly of section \.text\.init:
53782 +
53783 +00000000 <different_section>:
53784 + 0: e2 c0 00 00 sub r0,r1,0
53785 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
53786 --- binutils-2.17/gas/testsuite/gas/avr32/call_pic.d 1970-01-01 01:00:00.000000000 +0100
53787 +++ binutils-2.17.atmel.1.3.0/gas/testsuite/gas/avr32/call_pic.d 2007-03-26 10:19:48.000000000 +0200
53788 @@ -0,0 +1,36 @@
53789 +#source: call.s
53790 +#as: --pic
53791 +#objdump: -dr
53792 +#name: call_pic
53793 +
53794 +.*: +file format .*
53795 +
53796 +Disassembly of section \.text:
53797 +
53798 +00000000 <call_test>:
53799 + 0: d7 03 nop
53800 +
53801 +00000002 <toofar_negative>:
53802 + \.\.\.
53803 + 1ffffe: 00 00 add r0,r0
53804 + 200000: f0 a0 00 00 rcall 0 <call_test>
53805 + 200004: f0 16 00 00 mcall r6\[0\]
53806 + 200004: R_AVR32_GOT18SW toofar_negative
53807 + 200008: f0 16 00 00 mcall r6\[0\]
53808 + 200008: R_AVR32_GOT18SW different_section
53809 + 20000c: f0 16 00 00 mcall r6\[0\]
53810 + 20000c: R_AVR32_GOT18SW undefined
53811 + 200010: f0 16 00 00 mcall r6\[0\]
53812 + 200010: R_AVR32_GOT18SW toofar_positive
53813 + \.\.\.
53814 + 200030: ee b0 ff ff rcall 40002e <far_positive>
53815 + \.\.\.
53816 +
53817 +0040002c <toofar_positive>:
53818 + 40002c: d7 03 nop
53819 +0040002e <far_positive>:
53820 + 40002e: d7 03 nop
53821 +Disassembly of section \.text\.init:
53822 +
53823 +00000000 <different_section>:
53824 + 0: e2 c0 00 00 sub r0,r1,0
53825 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
53826 --- binutils-2.17/gas/testsuite/gas/avr32/call_pic_linkrelax.d 1970-01-01 01:00:00.000000000 +0100
53827 +++ binutils-2.17.atmel.1.3.0/gas/testsuite/gas/avr32/call_pic_linkrelax.d 2007-03-26 10:19:48.000000000 +0200
53828 @@ -0,0 +1,47 @@
53829 +#source: call.s
53830 +#as: --pic --linkrelax
53831 +#objdump: -dr
53832 +#name: call_pic_linkrelax
53833 +
53834 +.*: +file format .*
53835 +
53836 +Disassembly of section \.text:
53837 +
53838 +00000000 <call_test>:
53839 + 0: d7 03 nop
53840 +
53841 +00000002 <toofar_negative>:
53842 + \.\.\.
53843 + 1ffffe: 00 00 add r0,r0
53844 + 200000: e0 a0 00 00 rcall 200000 <toofar_negative\+0x1ffffe>
53845 + 200000: R_AVR32_22H_PCREL \.text
53846 + 200004: e0 6e 00 00 mov lr,0
53847 + 200004: R_AVR32_GOTCALL toofar_negative
53848 + 200008: ec 0e 03 2e ld\.w lr,r6\[lr<<0x2\]
53849 + 20000c: 5d 1e icall lr
53850 + 20000e: e0 6e 00 00 mov lr,0
53851 + 20000e: R_AVR32_GOTCALL different_section
53852 + 200012: ec 0e 03 2e ld\.w lr,r6\[lr<<0x2\]
53853 + 200016: 5d 1e icall lr
53854 + 200018: e0 6e 00 00 mov lr,0
53855 + 200018: R_AVR32_GOTCALL undefined
53856 + 20001c: ec 0e 03 2e ld\.w lr,r6\[lr<<0x2\]
53857 + 200020: 5d 1e icall lr
53858 + 200022: e0 6e 00 00 mov lr,0
53859 + 200022: R_AVR32_GOTCALL toofar_positive
53860 + 200026: ec 0e 03 2e ld\.w lr,r6\[lr<<0x2\]
53861 + 20002a: 5d 1e icall lr
53862 + 20002c: 00 00 add r0,r0
53863 + 20002e: 00 00 add r0,r0
53864 + 200030: e0 a0 00 00 rcall 200030 <toofar_negative\+0x20002e>
53865 + 200030: R_AVR32_22H_PCREL \.text\+0x40002e
53866 + \.\.\.
53867 +
53868 +0040002c <toofar_positive>:
53869 + 40002c: d7 03 nop
53870 +0040002e <far_positive>:
53871 + 40002e: d7 03 nop
53872 +Disassembly of section \.text\.init:
53873 +
53874 +00000000 <different_section>:
53875 + 0: e2 c0 00 00 sub r0,r1,0
53876 diff -Nrup binutils-2.17/gas/testsuite/gas/avr32/call.s binutils-2.17.atmel.1.3.0/gas/testsuite/gas/avr32/call.s
53877 --- binutils-2.17/gas/testsuite/gas/avr32/call.s 1970-01-01 01:00:00.000000000 +0100
53878 +++ binutils-2.17.atmel.1.3.0/gas/testsuite/gas/avr32/call.s 2007-03-26 10:19:48.000000000 +0200
53879 @@ -0,0 +1,30 @@
53880 +
53881 + .text
53882 + .global call_test
53883 +call_test:
53884 +far_negative:
53885 + nop
53886 +toofar_negative:
53887 +
53888 + .org 0x200000
53889 +
53890 + call far_negative
53891 + call toofar_negative
53892 + call different_section
53893 + call undefined
53894 + call toofar_positive
53895 + .org 0x200030
53896 + call far_positive
53897 +
53898 + .cpool
53899 +
53900 + .org 0x40002c
53901 +
53902 +toofar_positive:
53903 + nop
53904 +far_positive:
53905 + nop
53906 +
53907 + .section .text.init,"ax",@progbits
53908 +different_section:
53909 + sub r0, r1, 0
53910 diff -Nrup binutils-2.17/gas/testsuite/gas/avr32/dwarf2.d binutils-2.17.atmel.1.3.0/gas/testsuite/gas/avr32/dwarf2.d
53911 --- binutils-2.17/gas/testsuite/gas/avr32/dwarf2.d 1970-01-01 01:00:00.000000000 +0100
53912 +++ binutils-2.17.atmel.1.3.0/gas/testsuite/gas/avr32/dwarf2.d 2007-03-26 10:19:48.000000000 +0200
53913 @@ -0,0 +1,42 @@
53914 +#readelf: -wl
53915 +#name: dwarf2
53916 +#source: dwarf2.s
53917 +
53918 +Dump of debug contents of section \.debug_line:
53919 +
53920 + Length: 53
53921 + DWARF Version: 2
53922 + Prologue Length: 26
53923 + Minimum Instruction Length: 1
53924 + Initial value of 'is_stmt': 1
53925 + Line Base: -5
53926 + Line Range: 14
53927 + Opcode Base: 10
53928 + \(Pointer size: 4\)
53929 +
53930 + Opcodes:
53931 + Opcode 1 has 0 args
53932 + Opcode 2 has 1 args
53933 + Opcode 3 has 1 args
53934 + Opcode 4 has 1 args
53935 + Opcode 5 has 1 args
53936 + Opcode 6 has 0 args
53937 + Opcode 7 has 0 args
53938 + Opcode 8 has 0 args
53939 + Opcode 9 has 1 args
53940 +
53941 + The Directory Table is empty\.
53942 +
53943 + The File Name Table:
53944 + Entry Dir Time Size Name
53945 + 1 0 0 0 main\.c
53946 +
53947 + Line Number Statements:
53948 + Extended opcode 2: set Address to 0x0
53949 + Advance Line by 87 to 88
53950 + Copy
53951 + Advance Line by 23 to 111
53952 + Special opcode .*: advance Address by 4 to 0x4 and Line by 0 to 111
53953 + Special opcode .*: advance Address by 10 to 0xe and Line by 1 to 112
53954 + Advance PC by 530 to 220
53955 + Extended opcode 1: End of Sequence
53956 diff -Nrup binutils-2.17/gas/testsuite/gas/avr32/dwarf2.s binutils-2.17.atmel.1.3.0/gas/testsuite/gas/avr32/dwarf2.s
53957 --- binutils-2.17/gas/testsuite/gas/avr32/dwarf2.s 1970-01-01 01:00:00.000000000 +0100
53958 +++ binutils-2.17.atmel.1.3.0/gas/testsuite/gas/avr32/dwarf2.s 2007-03-26 10:19:48.000000000 +0200
53959 @@ -0,0 +1,67 @@
53960 +# Source file used to test DWARF2 information for AVR32.
53961 +
53962 + .file "main.c"
53963 +
53964 + .section .debug_abbrev,"",@progbits
53965 +.Ldebug_abbrev0:
53966 + .section .debug_info,"",@progbits
53967 +.Ldebug_info0:
53968 + .section .debug_line,"",@progbits
53969 +.Ldebug_line0:
53970 +
53971 + .text
53972 + .align 1
53973 + .globl main
53974 + .type main, @function
53975 +.Ltext0:
53976 +main:
53977 + .file 1 "main.c"
53978 + .loc 1 88 0
53979 + pushm r0-r7,lr
53980 + sub sp, 4
53981 + .loc 1 111 0
53982 + lddpc r12, .LC1
53983 + lddpc r7, .LC1
53984 + icall r7
53985 + .loc 1 112 0
53986 + lddpc r6, .LC4
53987 +
53988 + .align 2
53989 +.LC4: .int 0
53990 +
53991 + .fill 256, 2, 0
53992 +
53993 + .align 2
53994 +.LC1:
53995 + .int 0
53996 +.LC2:
53997 + .int 0
53998 +.LC3:
53999 + .int 0
54000 + .size main, . - main
54001 +
54002 +.Letext0:
54003 +
54004 + .section .debug_info
54005 + .int .Ledebug_info0 - .Ldebug_info0 // size
54006 + .short 2 // version
54007 + .int .Ldebug_abbrev0 // abbrev offset
54008 + .byte 4 // bytes per addr
54009 +
54010 + .uleb128 1 // abbrev 1
54011 + .int .Ldebug_line0 // DW_AT_stmt_list
54012 + .int .Letext0 // DW_AT_high_pc
54013 + .int .Ltext0 // DW_AT_low_pc
54014 +
54015 +.Ledebug_info0:
54016 +
54017 + .section .debug_abbrev
54018 + .uleb128 0x01
54019 + .uleb128 0x11 // DW_TAG_compile_unit
54020 + .byte 0 // DW_CHILDREN_no
54021 + .uleb128 0x10, 0x6 // DW_AT_stmt_list
54022 + .uleb128 0x12, 0x1 // DW_AT_high_pc
54023 + .uleb128 0x11, 0x1 // DW_AT_low_pc
54024 + .uleb128 0, 0
54025 +
54026 + .byte 0
54027 diff -Nrup binutils-2.17/gas/testsuite/gas/avr32/fpinsn.d binutils-2.17.atmel.1.3.0/gas/testsuite/gas/avr32/fpinsn.d
54028 --- binutils-2.17/gas/testsuite/gas/avr32/fpinsn.d 1970-01-01 01:00:00.000000000 +0100
54029 +++ binutils-2.17.atmel.1.3.0/gas/testsuite/gas/avr32/fpinsn.d 2007-03-26 10:19:48.000000000 +0200
54030 @@ -0,0 +1,271 @@
54031 +#as:
54032 +#objdump: -dr
54033 +#name: fpinsn
54034 +
54035 +.*: +file format .*
54036 +
54037 +Disassembly of section \.text:
54038 +
54039 +[0-9a-f]* <fadd_s>:
54040 + *[0-9a-f]*: e1 a2 0f ff cop cp0,cr15,cr15,cr15,0x4
54041 + *[0-9a-f]*: e1 a2 00 00 cop cp0,cr0,cr0,cr0,0x4
54042 + *[0-9a-f]*: e1 a2 00 ff cop cp0,cr0,cr15,cr15,0x4
54043 + *[0-9a-f]*: e1 a2 0f 0f cop cp0,cr15,cr0,cr15,0x4
54044 + *[0-9a-f]*: e1 a2 0f f0 cop cp0,cr15,cr15,cr0,0x4
54045 + *[0-9a-f]*: e1 a2 07 88 cop cp0,cr7,cr8,cr8,0x4
54046 + *[0-9a-f]*: e1 a2 08 78 cop cp0,cr8,cr7,cr8,0x4
54047 + *[0-9a-f]*: e1 a2 08 87 cop cp0,cr8,cr8,cr7,0x4
54048 +
54049 +[0-9a-f]* <fsub_s>:
54050 + *[0-9a-f]*: e1 a2 1f ff cop cp0,cr15,cr15,cr15,0x5
54051 + *[0-9a-f]*: e1 a2 10 00 cop cp0,cr0,cr0,cr0,0x5
54052 + *[0-9a-f]*: e1 a2 10 ff cop cp0,cr0,cr15,cr15,0x5
54053 + *[0-9a-f]*: e1 a2 1f 0f cop cp0,cr15,cr0,cr15,0x5
54054 + *[0-9a-f]*: e1 a2 1f f0 cop cp0,cr15,cr15,cr0,0x5
54055 + *[0-9a-f]*: e1 a2 17 88 cop cp0,cr7,cr8,cr8,0x5
54056 + *[0-9a-f]*: e1 a2 18 78 cop cp0,cr8,cr7,cr8,0x5
54057 + *[0-9a-f]*: e1 a2 18 87 cop cp0,cr8,cr8,cr7,0x5
54058 +
54059 +[0-9a-f]* <fmac_s>:
54060 + *[0-9a-f]*: e1 a0 0f ff cop cp0,cr15,cr15,cr15,0x0
54061 + *[0-9a-f]*: e1 a0 00 00 cop cp0,cr0,cr0,cr0,0x0
54062 + *[0-9a-f]*: e1 a0 00 ff cop cp0,cr0,cr15,cr15,0x0
54063 + *[0-9a-f]*: e1 a0 0f 0f cop cp0,cr15,cr0,cr15,0x0
54064 + *[0-9a-f]*: e1 a0 0f f0 cop cp0,cr15,cr15,cr0,0x0
54065 + *[0-9a-f]*: e1 a0 07 88 cop cp0,cr7,cr8,cr8,0x0
54066 + *[0-9a-f]*: e1 a0 08 78 cop cp0,cr8,cr7,cr8,0x0
54067 + *[0-9a-f]*: e1 a0 08 87 cop cp0,cr8,cr8,cr7,0x0
54068 +
54069 +[0-9a-f]* <fnmac_s>:
54070 + *[0-9a-f]*: e1 a0 1f ff cop cp0,cr15,cr15,cr15,0x1
54071 + *[0-9a-f]*: e1 a0 10 00 cop cp0,cr0,cr0,cr0,0x1
54072 + *[0-9a-f]*: e1 a0 10 ff cop cp0,cr0,cr15,cr15,0x1
54073 + *[0-9a-f]*: e1 a0 1f 0f cop cp0,cr15,cr0,cr15,0x1
54074 + *[0-9a-f]*: e1 a0 1f f0 cop cp0,cr15,cr15,cr0,0x1
54075 + *[0-9a-f]*: e1 a0 17 88 cop cp0,cr7,cr8,cr8,0x1
54076 + *[0-9a-f]*: e1 a0 18 78 cop cp0,cr8,cr7,cr8,0x1
54077 + *[0-9a-f]*: e1 a0 18 87 cop cp0,cr8,cr8,cr7,0x1
54078 +
54079 +[0-9a-f]* <fmsc_s>:
54080 + *[0-9a-f]*: e1 a1 0f ff cop cp0,cr15,cr15,cr15,0x2
54081 + *[0-9a-f]*: e1 a1 00 00 cop cp0,cr0,cr0,cr0,0x2
54082 + *[0-9a-f]*: e1 a1 00 ff cop cp0,cr0,cr15,cr15,0x2
54083 + *[0-9a-f]*: e1 a1 0f 0f cop cp0,cr15,cr0,cr15,0x2
54084 + *[0-9a-f]*: e1 a1 0f f0 cop cp0,cr15,cr15,cr0,0x2
54085 + *[0-9a-f]*: e1 a1 07 88 cop cp0,cr7,cr8,cr8,0x2
54086 + *[0-9a-f]*: e1 a1 08 78 cop cp0,cr8,cr7,cr8,0x2
54087 + *[0-9a-f]*: e1 a1 08 87 cop cp0,cr8,cr8,cr7,0x2
54088 +
54089 +[0-9a-f]* <fnmsc_s>:
54090 + *[0-9a-f]*: e1 a1 1f ff cop cp0,cr15,cr15,cr15,0x3
54091 + *[0-9a-f]*: e1 a1 10 00 cop cp0,cr0,cr0,cr0,0x3
54092 + *[0-9a-f]*: e1 a1 10 ff cop cp0,cr0,cr15,cr15,0x3
54093 + *[0-9a-f]*: e1 a1 1f 0f cop cp0,cr15,cr0,cr15,0x3
54094 + *[0-9a-f]*: e1 a1 1f f0 cop cp0,cr15,cr15,cr0,0x3
54095 + *[0-9a-f]*: e1 a1 17 88 cop cp0,cr7,cr8,cr8,0x3
54096 + *[0-9a-f]*: e1 a1 18 78 cop cp0,cr8,cr7,cr8,0x3
54097 + *[0-9a-f]*: e1 a1 18 87 cop cp0,cr8,cr8,cr7,0x3
54098 +
54099 +[0-9a-f]* <fmul_s>:
54100 + *[0-9a-f]*: e1 a3 0f ff cop cp0,cr15,cr15,cr15,0x6
54101 + *[0-9a-f]*: e1 a3 00 00 cop cp0,cr0,cr0,cr0,0x6
54102 + *[0-9a-f]*: e1 a3 00 ff cop cp0,cr0,cr15,cr15,0x6
54103 + *[0-9a-f]*: e1 a3 0f 0f cop cp0,cr15,cr0,cr15,0x6
54104 + *[0-9a-f]*: e1 a3 0f f0 cop cp0,cr15,cr15,cr0,0x6
54105 + *[0-9a-f]*: e1 a3 07 88 cop cp0,cr7,cr8,cr8,0x6
54106 + *[0-9a-f]*: e1 a3 08 78 cop cp0,cr8,cr7,cr8,0x6
54107 + *[0-9a-f]*: e1 a3 08 87 cop cp0,cr8,cr8,cr7,0x6
54108 +
54109 +[0-9a-f]* <fnmul_s>:
54110 + *[0-9a-f]*: e1 a3 1f ff cop cp0,cr15,cr15,cr15,0x7
54111 + *[0-9a-f]*: e1 a3 10 00 cop cp0,cr0,cr0,cr0,0x7
54112 + *[0-9a-f]*: e1 a3 10 ff cop cp0,cr0,cr15,cr15,0x7
54113 + *[0-9a-f]*: e1 a3 1f 0f cop cp0,cr15,cr0,cr15,0x7
54114 + *[0-9a-f]*: e1 a3 1f f0 cop cp0,cr15,cr15,cr0,0x7
54115 + *[0-9a-f]*: e1 a3 17 88 cop cp0,cr7,cr8,cr8,0x7
54116 + *[0-9a-f]*: e1 a3 18 78 cop cp0,cr8,cr7,cr8,0x7
54117 + *[0-9a-f]*: e1 a3 18 87 cop cp0,cr8,cr8,cr7,0x7
54118 +
54119 +[0-9a-f]* <fneg_s>:
54120 + *[0-9a-f]*: e1 a4 0f f0 cop cp0,cr15,cr15,cr0,0x8
54121 + *[0-9a-f]*: e1 a4 00 00 cop cp0,cr0,cr0,cr0,0x8
54122 + *[0-9a-f]*: e1 a4 00 f0 cop cp0,cr0,cr15,cr0,0x8
54123 + *[0-9a-f]*: e1 a4 0f 00 cop cp0,cr15,cr0,cr0,0x8
54124 + *[0-9a-f]*: e1 a4 07 80 cop cp0,cr7,cr8,cr0,0x8
54125 + *[0-9a-f]*: e1 a4 08 70 cop cp0,cr8,cr7,cr0,0x8
54126 +
54127 +[0-9a-f]* <fabs_s>:
54128 + *[0-9a-f]*: e1 a4 1f f0 cop cp0,cr15,cr15,cr0,0x9
54129 + *[0-9a-f]*: e1 a4 10 00 cop cp0,cr0,cr0,cr0,0x9
54130 + *[0-9a-f]*: e1 a4 10 f0 cop cp0,cr0,cr15,cr0,0x9
54131 + *[0-9a-f]*: e1 a4 1f 00 cop cp0,cr15,cr0,cr0,0x9
54132 + *[0-9a-f]*: e1 a4 17 80 cop cp0,cr7,cr8,cr0,0x9
54133 + *[0-9a-f]*: e1 a4 18 70 cop cp0,cr8,cr7,cr0,0x9
54134 +
54135 +[0-9a-f]* <fcmp_s>:
54136 + *[0-9a-f]*: e1 a6 10 ff cop cp0,cr0,cr15,cr15,0xd
54137 + *[0-9a-f]*: e1 a6 10 00 cop cp0,cr0,cr0,cr0,0xd
54138 + *[0-9a-f]*: e1 a6 10 0f cop cp0,cr0,cr0,cr15,0xd
54139 + *[0-9a-f]*: e1 a6 10 f0 cop cp0,cr0,cr15,cr0,0xd
54140 + *[0-9a-f]*: e1 a6 10 78 cop cp0,cr0,cr7,cr8,0xd
54141 + *[0-9a-f]*: e1 a6 10 87 cop cp0,cr0,cr8,cr7,0xd
54142 +
54143 +[0-9a-f]* <fadd_d>:
54144 + *[0-9a-f]*: e5 a2 0e ee cop cp0,cr14,cr14,cr14,0x44
54145 + *[0-9a-f]*: e5 a2 00 00 cop cp0,cr0,cr0,cr0,0x44
54146 + *[0-9a-f]*: e5 a2 00 ee cop cp0,cr0,cr14,cr14,0x44
54147 + *[0-9a-f]*: e5 a2 0e 0e cop cp0,cr14,cr0,cr14,0x44
54148 + *[0-9a-f]*: e5 a2 0e e0 cop cp0,cr14,cr14,cr0,0x44
54149 + *[0-9a-f]*: e5 a2 06 88 cop cp0,cr6,cr8,cr8,0x44
54150 + *[0-9a-f]*: e5 a2 08 68 cop cp0,cr8,cr6,cr8,0x44
54151 + *[0-9a-f]*: e5 a2 08 86 cop cp0,cr8,cr8,cr6,0x44
54152 +
54153 +[0-9a-f]* <fsub_d>:
54154 + *[0-9a-f]*: e5 a2 1e ee cop cp0,cr14,cr14,cr14,0x45
54155 + *[0-9a-f]*: e5 a2 10 00 cop cp0,cr0,cr0,cr0,0x45
54156 + *[0-9a-f]*: e5 a2 10 ee cop cp0,cr0,cr14,cr14,0x45
54157 + *[0-9a-f]*: e5 a2 1e 0e cop cp0,cr14,cr0,cr14,0x45
54158 + *[0-9a-f]*: e5 a2 1e e0 cop cp0,cr14,cr14,cr0,0x45
54159 + *[0-9a-f]*: e5 a2 16 88 cop cp0,cr6,cr8,cr8,0x45
54160 + *[0-9a-f]*: e5 a2 18 68 cop cp0,cr8,cr6,cr8,0x45
54161 + *[0-9a-f]*: e5 a2 18 86 cop cp0,cr8,cr8,cr6,0x45
54162 +
54163 +[0-9a-f]* <fmac_d>:
54164 + *[0-9a-f]*: e5 a0 0e ee cop cp0,cr14,cr14,cr14,0x40
54165 + *[0-9a-f]*: e5 a0 00 00 cop cp0,cr0,cr0,cr0,0x40
54166 + *[0-9a-f]*: e5 a0 00 ee cop cp0,cr0,cr14,cr14,0x40
54167 + *[0-9a-f]*: e5 a0 0e 0e cop cp0,cr14,cr0,cr14,0x40
54168 + *[0-9a-f]*: e5 a0 0e e0 cop cp0,cr14,cr14,cr0,0x40
54169 + *[0-9a-f]*: e5 a0 06 88 cop cp0,cr6,cr8,cr8,0x40
54170 + *[0-9a-f]*: e5 a0 08 68 cop cp0,cr8,cr6,cr8,0x40
54171 + *[0-9a-f]*: e5 a0 08 86 cop cp0,cr8,cr8,cr6,0x40
54172 +
54173 +[0-9a-f]* <fnmac_d>:
54174 + *[0-9a-f]*: e5 a0 1e ee cop cp0,cr14,cr14,cr14,0x41
54175 + *[0-9a-f]*: e5 a0 10 00 cop cp0,cr0,cr0,cr0,0x41
54176 + *[0-9a-f]*: e5 a0 10 ee cop cp0,cr0,cr14,cr14,0x41
54177 + *[0-9a-f]*: e5 a0 1e 0e cop cp0,cr14,cr0,cr14,0x41
54178 + *[0-9a-f]*: e5 a0 1e e0 cop cp0,cr14,cr14,cr0,0x41
54179 + *[0-9a-f]*: e5 a0 16 88 cop cp0,cr6,cr8,cr8,0x41
54180 + *[0-9a-f]*: e5 a0 18 68 cop cp0,cr8,cr6,cr8,0x41
54181 + *[0-9a-f]*: e5 a0 18 86 cop cp0,cr8,cr8,cr6,0x41
54182 +
54183 +[0-9a-f]* <fmsc_d>:
54184 + *[0-9a-f]*: e5 a1 0e ee cop cp0,cr14,cr14,cr14,0x42
54185 + *[0-9a-f]*: e5 a1 00 00 cop cp0,cr0,cr0,cr0,0x42
54186 + *[0-9a-f]*: e5 a1 00 ee cop cp0,cr0,cr14,cr14,0x42
54187 + *[0-9a-f]*: e5 a1 0e 0e cop cp0,cr14,cr0,cr14,0x42
54188 + *[0-9a-f]*: e5 a1 0e e0 cop cp0,cr14,cr14,cr0,0x42
54189 + *[0-9a-f]*: e5 a1 06 88 cop cp0,cr6,cr8,cr8,0x42
54190 + *[0-9a-f]*: e5 a1 08 68 cop cp0,cr8,cr6,cr8,0x42
54191 + *[0-9a-f]*: e5 a1 08 86 cop cp0,cr8,cr8,cr6,0x42
54192 +
54193 +[0-9a-f]* <fnmsc_d>:
54194 + *[0-9a-f]*: e5 a1 1e ee cop cp0,cr14,cr14,cr14,0x43
54195 + *[0-9a-f]*: e5 a1 10 00 cop cp0,cr0,cr0,cr0,0x43
54196 + *[0-9a-f]*: e5 a1 10 ee cop cp0,cr0,cr14,cr14,0x43
54197 + *[0-9a-f]*: e5 a1 1e 0e cop cp0,cr14,cr0,cr14,0x43
54198 + *[0-9a-f]*: e5 a1 1e e0 cop cp0,cr14,cr14,cr0,0x43
54199 + *[0-9a-f]*: e5 a1 16 88 cop cp0,cr6,cr8,cr8,0x43
54200 + *[0-9a-f]*: e5 a1 18 68 cop cp0,cr8,cr6,cr8,0x43
54201 + *[0-9a-f]*: e5 a1 18 86 cop cp0,cr8,cr8,cr6,0x43
54202 +
54203 +[0-9a-f]* <fmul_d>:
54204 + *[0-9a-f]*: e5 a3 0e ee cop cp0,cr14,cr14,cr14,0x46
54205 + *[0-9a-f]*: e5 a3 00 00 cop cp0,cr0,cr0,cr0,0x46
54206 + *[0-9a-f]*: e5 a3 00 ee cop cp0,cr0,cr14,cr14,0x46
54207 + *[0-9a-f]*: e5 a3 0e 0e cop cp0,cr14,cr0,cr14,0x46
54208 + *[0-9a-f]*: e5 a3 0e e0 cop cp0,cr14,cr14,cr0,0x46
54209 + *[0-9a-f]*: e5 a3 06 88 cop cp0,cr6,cr8,cr8,0x46
54210 + *[0-9a-f]*: e5 a3 08 68 cop cp0,cr8,cr6,cr8,0x46
54211 + *[0-9a-f]*: e5 a3 08 86 cop cp0,cr8,cr8,cr6,0x46
54212 +
54213 +[0-9a-f]* <fnmul_d>:
54214 + *[0-9a-f]*: e5 a3 1e ee cop cp0,cr14,cr14,cr14,0x47
54215 + *[0-9a-f]*: e5 a3 10 00 cop cp0,cr0,cr0,cr0,0x47
54216 + *[0-9a-f]*: e5 a3 10 ee cop cp0,cr0,cr14,cr14,0x47
54217 + *[0-9a-f]*: e5 a3 1e 0e cop cp0,cr14,cr0,cr14,0x47
54218 + *[0-9a-f]*: e5 a3 1e e0 cop cp0,cr14,cr14,cr0,0x47
54219 + *[0-9a-f]*: e5 a3 16 88 cop cp0,cr6,cr8,cr8,0x47
54220 + *[0-9a-f]*: e5 a3 18 68 cop cp0,cr8,cr6,cr8,0x47
54221 + *[0-9a-f]*: e5 a3 18 86 cop cp0,cr8,cr8,cr6,0x47
54222 +
54223 +[0-9a-f]* <fneg_d>:
54224 + *[0-9a-f]*: e5 a4 0e e0 cop cp0,cr14,cr14,cr0,0x48
54225 + *[0-9a-f]*: e5 a4 00 00 cop cp0,cr0,cr0,cr0,0x48
54226 + *[0-9a-f]*: e5 a4 00 e0 cop cp0,cr0,cr14,cr0,0x48
54227 + *[0-9a-f]*: e5 a4 0e 00 cop cp0,cr14,cr0,cr0,0x48
54228 + *[0-9a-f]*: e5 a4 06 80 cop cp0,cr6,cr8,cr0,0x48
54229 + *[0-9a-f]*: e5 a4 08 60 cop cp0,cr8,cr6,cr0,0x48
54230 +
54231 +[0-9a-f]* <fabs_d>:
54232 + *[0-9a-f]*: e5 a4 1e e0 cop cp0,cr14,cr14,cr0,0x49
54233 + *[0-9a-f]*: e5 a4 10 00 cop cp0,cr0,cr0,cr0,0x49
54234 + *[0-9a-f]*: e5 a4 10 e0 cop cp0,cr0,cr14,cr0,0x49
54235 + *[0-9a-f]*: e5 a4 1e 00 cop cp0,cr14,cr0,cr0,0x49
54236 + *[0-9a-f]*: e5 a4 16 80 cop cp0,cr6,cr8,cr0,0x49
54237 + *[0-9a-f]*: e5 a4 18 60 cop cp0,cr8,cr6,cr0,0x49
54238 +
54239 +[0-9a-f]* <fcmp_d>:
54240 + *[0-9a-f]*: e5 a6 10 ee cop cp0,cr0,cr14,cr14,0x4d
54241 + *[0-9a-f]*: e5 a6 10 00 cop cp0,cr0,cr0,cr0,0x4d
54242 + *[0-9a-f]*: e5 a6 10 0e cop cp0,cr0,cr0,cr14,0x4d
54243 + *[0-9a-f]*: e5 a6 10 e0 cop cp0,cr0,cr14,cr0,0x4d
54244 + *[0-9a-f]*: e5 a6 10 68 cop cp0,cr0,cr6,cr8,0x4d
54245 + *[0-9a-f]*: e5 a6 10 86 cop cp0,cr0,cr8,cr6,0x4d
54246 +
54247 +[0-9a-f]* <fmov_s>:
54248 + *[0-9a-f]*: e1 a5 0f f0 cop cp0,cr15,cr15,cr0,0xa
54249 + *[0-9a-f]*: e1 a5 00 00 cop cp0,cr0,cr0,cr0,0xa
54250 + *[0-9a-f]*: e1 a5 0f 00 cop cp0,cr15,cr0,cr0,0xa
54251 + *[0-9a-f]*: e1 a5 00 f0 cop cp0,cr0,cr15,cr0,0xa
54252 + *[0-9a-f]*: e1 a5 08 70 cop cp0,cr8,cr7,cr0,0xa
54253 + *[0-9a-f]*: e1 a5 07 80 cop cp0,cr7,cr8,cr0,0xa
54254 + *[0-9a-f]*: ef af 0f 00 mvcr.w cp0,pc,cr15
54255 + *[0-9a-f]*: ef a0 00 00 mvcr.w cp0,r0,cr0
54256 + *[0-9a-f]*: ef af 00 00 mvcr.w cp0,pc,cr0
54257 + *[0-9a-f]*: ef a0 0f 00 mvcr.w cp0,r0,cr15
54258 + *[0-9a-f]*: ef a8 07 00 mvcr.w cp0,r8,cr7
54259 + *[0-9a-f]*: ef a7 08 00 mvcr.w cp0,r7,cr8
54260 + *[0-9a-f]*: ef af 0f 20 mvrc.w cp0,cr15,pc
54261 + *[0-9a-f]*: ef a0 00 20 mvrc.w cp0,cr0,r0
54262 + *[0-9a-f]*: ef a0 0f 20 mvrc.w cp0,cr15,r0
54263 + *[0-9a-f]*: ef af 00 20 mvrc.w cp0,cr0,pc
54264 + *[0-9a-f]*: ef a7 08 20 mvrc.w cp0,cr8,r7
54265 + *[0-9a-f]*: ef a8 07 20 mvrc.w cp0,cr7,r8
54266 +
54267 +[0-9a-f]* <fmov_d>:
54268 + *[0-9a-f]*: e5 a5 0e e0 cop cp0,cr14,cr14,cr0,0x4a
54269 + *[0-9a-f]*: e5 a5 00 00 cop cp0,cr0,cr0,cr0,0x4a
54270 + *[0-9a-f]*: e5 a5 0e 00 cop cp0,cr14,cr0,cr0,0x4a
54271 + *[0-9a-f]*: e5 a5 00 e0 cop cp0,cr0,cr14,cr0,0x4a
54272 + *[0-9a-f]*: e5 a5 08 60 cop cp0,cr8,cr6,cr0,0x4a
54273 + *[0-9a-f]*: e5 a5 06 80 cop cp0,cr6,cr8,cr0,0x4a
54274 + *[0-9a-f]*: ef ae 0e 10 mvcr.d cp0,lr,cr14
54275 + *[0-9a-f]*: ef a0 00 10 mvcr.d cp0,r0,cr0
54276 + *[0-9a-f]*: ef ae 00 10 mvcr.d cp0,lr,cr0
54277 + *[0-9a-f]*: ef a0 0e 10 mvcr.d cp0,r0,cr14
54278 + *[0-9a-f]*: ef a8 06 10 mvcr.d cp0,r8,cr6
54279 + *[0-9a-f]*: ef a6 08 10 mvcr.d cp0,r6,cr8
54280 + *[0-9a-f]*: ef ae 0e 30 mvrc.d cp0,cr14,lr
54281 + *[0-9a-f]*: ef a0 00 30 mvrc.d cp0,cr0,r0
54282 + *[0-9a-f]*: ef a0 0e 30 mvrc.d cp0,cr14,r0
54283 + *[0-9a-f]*: ef ae 00 30 mvrc.d cp0,cr0,lr
54284 + *[0-9a-f]*: ef a6 08 30 mvrc.d cp0,cr8,r6
54285 + *[0-9a-f]*: ef a8 06 30 mvrc.d cp0,cr6,r8
54286 +
54287 +[0-9a-f]* <fcasts_d>:
54288 + *[0-9a-f]*: e1 a7 1f e0 cop cp0,cr15,cr14,cr0,0xf
54289 + *[0-9a-f]*: e1 a7 10 00 cop cp0,cr0,cr0,cr0,0xf
54290 + *[0-9a-f]*: e1 a7 1f 00 cop cp0,cr15,cr0,cr0,0xf
54291 + *[0-9a-f]*: e1 a7 10 e0 cop cp0,cr0,cr14,cr0,0xf
54292 + *[0-9a-f]*: e1 a7 18 60 cop cp0,cr8,cr6,cr0,0xf
54293 + *[0-9a-f]*: e1 a7 17 80 cop cp0,cr7,cr8,cr0,0xf
54294 +
54295 +[0-9a-f]* <fcastd_s>:
54296 + *[0-9a-f]*: e1 a8 0e f0 cop cp0,cr14,cr15,cr0,0x10
54297 + *[0-9a-f]*: e1 a8 00 00 cop cp0,cr0,cr0,cr0,0x10
54298 + *[0-9a-f]*: e1 a8 0e 00 cop cp0,cr14,cr0,cr0,0x10
54299 + *[0-9a-f]*: e1 a8 00 f0 cop cp0,cr0,cr15,cr0,0x10
54300 + *[0-9a-f]*: e1 a8 08 70 cop cp0,cr8,cr7,cr0,0x10
54301 + *[0-9a-f]*: e1 a8 06 80 cop cp0,cr6,cr8,cr0,0x10
54302 diff -Nrup binutils-2.17/gas/testsuite/gas/avr32/fpinsn.s binutils-2.17.atmel.1.3.0/gas/testsuite/gas/avr32/fpinsn.s
54303 --- binutils-2.17/gas/testsuite/gas/avr32/fpinsn.s 1970-01-01 01:00:00.000000000 +0100
54304 +++ binutils-2.17.atmel.1.3.0/gas/testsuite/gas/avr32/fpinsn.s 2007-03-26 10:19:48.000000000 +0200
54305 @@ -0,0 +1,266 @@
54306 +
54307 + .text
54308 + .global fadd_s
54309 +fadd_s:
54310 + fadd.s fr15, fr15, fr15
54311 + fadd.s fr0, fr0, fr0
54312 + fadd.s fr0, fr15, fr15
54313 + fadd.s fr15, fr0, fr15
54314 + fadd.s fr15, fr15, fr0
54315 + fadd.s fr7, fr8, fr8
54316 + fadd.s fr8, fr7, fr8
54317 + fadd.s fr8, fr8, fr7
54318 + .global fsub_s
54319 +fsub_s:
54320 + fsub.s fr15, fr15, fr15
54321 + fsub.s fr0, fr0, fr0
54322 + fsub.s fr0, fr15, fr15
54323 + fsub.s fr15, fr0, fr15
54324 + fsub.s fr15, fr15, fr0
54325 + fsub.s fr7, fr8, fr8
54326 + fsub.s fr8, fr7, fr8
54327 + fsub.s fr8, fr8, fr7
54328 + .global fmac_s
54329 +fmac_s:
54330 + fmac.s fr15, fr15, fr15
54331 + fmac.s fr0, fr0, fr0
54332 + fmac.s fr0, fr15, fr15
54333 + fmac.s fr15, fr0, fr15
54334 + fmac.s fr15, fr15, fr0
54335 + fmac.s fr7, fr8, fr8
54336 + fmac.s fr8, fr7, fr8
54337 + fmac.s fr8, fr8, fr7
54338 + .global fnmac_s
54339 +fnmac_s:
54340 + fnmac.s fr15, fr15, fr15
54341 + fnmac.s fr0, fr0, fr0
54342 + fnmac.s fr0, fr15, fr15
54343 + fnmac.s fr15, fr0, fr15
54344 + fnmac.s fr15, fr15, fr0
54345 + fnmac.s fr7, fr8, fr8
54346 + fnmac.s fr8, fr7, fr8
54347 + fnmac.s fr8, fr8, fr7
54348 + .global fmsc_s
54349 +fmsc_s:
54350 + fmsc.s fr15, fr15, fr15
54351 + fmsc.s fr0, fr0, fr0
54352 + fmsc.s fr0, fr15, fr15
54353 + fmsc.s fr15, fr0, fr15
54354 + fmsc.s fr15, fr15, fr0
54355 + fmsc.s fr7, fr8, fr8
54356 + fmsc.s fr8, fr7, fr8
54357 + fmsc.s fr8, fr8, fr7
54358 + .global fnmsc_s
54359 +fnmsc_s:
54360 + fnmsc.s fr15, fr15, fr15
54361 + fnmsc.s fr0, fr0, fr0
54362 + fnmsc.s fr0, fr15, fr15
54363 + fnmsc.s fr15, fr0, fr15
54364 + fnmsc.s fr15, fr15, fr0
54365 + fnmsc.s fr7, fr8, fr8
54366 + fnmsc.s fr8, fr7, fr8
54367 + fnmsc.s fr8, fr8, fr7
54368 + .global fmul_s
54369 +fmul_s:
54370 + fmul.s fr15, fr15, fr15
54371 + fmul.s fr0, fr0, fr0
54372 + fmul.s fr0, fr15, fr15
54373 + fmul.s fr15, fr0, fr15
54374 + fmul.s fr15, fr15, fr0
54375 + fmul.s fr7, fr8, fr8
54376 + fmul.s fr8, fr7, fr8
54377 + fmul.s fr8, fr8, fr7
54378 + .global fnmul_s
54379 +fnmul_s:
54380 + fnmul.s fr15, fr15, fr15
54381 + fnmul.s fr0, fr0, fr0
54382 + fnmul.s fr0, fr15, fr15
54383 + fnmul.s fr15, fr0, fr15
54384 + fnmul.s fr15, fr15, fr0
54385 + fnmul.s fr7, fr8, fr8
54386 + fnmul.s fr8, fr7, fr8
54387 + fnmul.s fr8, fr8, fr7
54388 + .global fneg_s
54389 +fneg_s:
54390 + fneg.s fr15, fr15
54391 + fneg.s fr0, fr0
54392 + fneg.s fr0, fr15
54393 + fneg.s fr15, fr0
54394 + fneg.s fr7, fr8
54395 + fneg.s fr8, fr7
54396 + .global fabs_s
54397 +fabs_s:
54398 + fabs.s fr15, fr15
54399 + fabs.s fr0, fr0
54400 + fabs.s fr0, fr15
54401 + fabs.s fr15, fr0
54402 + fabs.s fr7, fr8
54403 + fabs.s fr8, fr7
54404 + .global fcmp_s
54405 +fcmp_s:
54406 + fcmp.s fr15, fr15
54407 + fcmp.s fr0, fr0
54408 + fcmp.s fr0, fr15
54409 + fcmp.s fr15, fr0
54410 + fcmp.s fr7, fr8
54411 + fcmp.s fr8, fr7
54412 + .global fadd_d
54413 +fadd_d:
54414 + fadd.d fr14, fr14, fr14
54415 + fadd.d fr0, fr0, fr0
54416 + fadd.d fr0, fr14, fr14
54417 + fadd.d fr14, fr0, fr14
54418 + fadd.d fr14, fr14, fr0
54419 + fadd.d fr6, fr8, fr8
54420 + fadd.d fr8, fr6, fr8
54421 + fadd.d fr8, fr8, fr6
54422 + .global fsub_d
54423 +fsub_d:
54424 + fsub.d fr14, fr14, fr14
54425 + fsub.d fr0, fr0, fr0
54426 + fsub.d fr0, fr14, fr14
54427 + fsub.d fr14, fr0, fr14
54428 + fsub.d fr14, fr14, fr0
54429 + fsub.d fr6, fr8, fr8
54430 + fsub.d fr8, fr6, fr8
54431 + fsub.d fr8, fr8, fr6
54432 + .global fmac_d
54433 +fmac_d:
54434 + fmac.d fr14, fr14, fr14
54435 + fmac.d fr0, fr0, fr0
54436 + fmac.d fr0, fr14, fr14
54437 + fmac.d fr14, fr0, fr14
54438 + fmac.d fr14, fr14, fr0
54439 + fmac.d fr6, fr8, fr8
54440 + fmac.d fr8, fr6, fr8
54441 + fmac.d fr8, fr8, fr6
54442 + .global fnmac_d
54443 +fnmac_d:
54444 + fnmac.d fr14, fr14, fr14
54445 + fnmac.d fr0, fr0, fr0
54446 + fnmac.d fr0, fr14, fr14
54447 + fnmac.d fr14, fr0, fr14
54448 + fnmac.d fr14, fr14, fr0
54449 + fnmac.d fr6, fr8, fr8
54450 + fnmac.d fr8, fr6, fr8
54451 + fnmac.d fr8, fr8, fr6
54452 + .global fmsc_d
54453 +fmsc_d:
54454 + fmsc.d fr14, fr14, fr14
54455 + fmsc.d fr0, fr0, fr0
54456 + fmsc.d fr0, fr14, fr14
54457 + fmsc.d fr14, fr0, fr14
54458 + fmsc.d fr14, fr14, fr0
54459 + fmsc.d fr6, fr8, fr8
54460 + fmsc.d fr8, fr6, fr8
54461 + fmsc.d fr8, fr8, fr6
54462 + .global fnmsc_d
54463 +fnmsc_d:
54464 + fnmsc.d fr14, fr14, fr14
54465 + fnmsc.d fr0, fr0, fr0
54466 + fnmsc.d fr0, fr14, fr14
54467 + fnmsc.d fr14, fr0, fr14
54468 + fnmsc.d fr14, fr14, fr0
54469 + fnmsc.d fr6, fr8, fr8
54470 + fnmsc.d fr8, fr6, fr8
54471 + fnmsc.d fr8, fr8, fr6
54472 + .global fmul_d
54473 +fmul_d:
54474 + fmul.d fr14, fr14, fr14
54475 + fmul.d fr0, fr0, fr0
54476 + fmul.d fr0, fr14, fr14
54477 + fmul.d fr14, fr0, fr14
54478 + fmul.d fr14, fr14, fr0
54479 + fmul.d fr6, fr8, fr8
54480 + fmul.d fr8, fr6, fr8
54481 + fmul.d fr8, fr8, fr6
54482 + .global fnmul_d
54483 +fnmul_d:
54484 + fnmul.d fr14, fr14, fr14
54485 + fnmul.d fr0, fr0, fr0
54486 + fnmul.d fr0, fr14, fr14
54487 + fnmul.d fr14, fr0, fr14
54488 + fnmul.d fr14, fr14, fr0
54489 + fnmul.d fr6, fr8, fr8
54490 + fnmul.d fr8, fr6, fr8
54491 + fnmul.d fr8, fr8, fr6
54492 + .global fneg_d
54493 +fneg_d:
54494 + fneg.d fr14, fr14
54495 + fneg.d fr0, fr0
54496 + fneg.d fr0, fr14
54497 + fneg.d fr14, fr0
54498 + fneg.d fr6, fr8
54499 + fneg.d fr8, fr6
54500 + .global fabs_d
54501 +fabs_d:
54502 + fabs.d fr14, fr14
54503 + fabs.d fr0, fr0
54504 + fabs.d fr0, fr14
54505 + fabs.d fr14, fr0
54506 + fabs.d fr6, fr8
54507 + fabs.d fr8, fr6
54508 + .global fcmp_d
54509 +fcmp_d:
54510 + fcmp.d fr14, fr14
54511 + fcmp.d fr0, fr0
54512 + fcmp.d fr0, fr14
54513 + fcmp.d fr14, fr0
54514 + fcmp.d fr6, fr8
54515 + fcmp.d fr8, fr6
54516 + .global fmov_s
54517 +fmov_s:
54518 + fmov.s fr15, fr15
54519 + fmov.s fr0, fr0
54520 + fmov.s fr15, fr0
54521 + fmov.s fr0, fr15
54522 + fmov.s fr8, fr7
54523 + fmov.s fr7, fr8
54524 + fmov.s pc, fr15
54525 + fmov.s r0, fr0
54526 + fmov.s pc, fr0
54527 + fmov.s r0, fr15
54528 + fmov.s r8, fr7
54529 + fmov.s r7, fr8
54530 + fmov.s fr15, pc
54531 + fmov.s fr0, r0
54532 + fmov.s fr15, r0
54533 + fmov.s fr0, pc
54534 + fmov.s fr8, r7
54535 + fmov.s fr7, r8
54536 + .global fmov_d
54537 +fmov_d:
54538 + fmov.d fr14, fr14
54539 + fmov.d fr0, fr0
54540 + fmov.d fr14, fr0
54541 + fmov.d fr0, fr14
54542 + fmov.d fr8, fr6
54543 + fmov.d fr6, fr8
54544 + fmov.d lr, fr14
54545 + fmov.d r0, fr0
54546 + fmov.d lr, fr0
54547 + fmov.d r0, fr14
54548 + fmov.d r8, fr6
54549 + fmov.d r6, fr8
54550 + fmov.d fr14, lr
54551 + fmov.d fr0, r0
54552 + fmov.d fr14, r0
54553 + fmov.d fr0, lr
54554 + fmov.d fr8, r6
54555 + fmov.d fr6, r8
54556 + .global fcasts_d
54557 +fcasts_d:
54558 + fcasts.d fr15, fr14
54559 + fcasts.d fr0, fr0
54560 + fcasts.d fr15, fr0
54561 + fcasts.d fr0, fr14
54562 + fcasts.d fr8, fr6
54563 + fcasts.d fr7, fr8
54564 + .global fcastd_s
54565 +fcastd_s:
54566 + fcastd.s fr14, fr15
54567 + fcastd.s fr0, fr0
54568 + fcastd.s fr14, fr0
54569 + fcastd.s fr0, fr15
54570 + fcastd.s fr8, fr7
54571 + fcastd.s fr6, fr8
54572 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
54573 --- binutils-2.17/gas/testsuite/gas/avr32/hwrd-lwrd.d 1970-01-01 01:00:00.000000000 +0100
54574 +++ binutils-2.17.atmel.1.3.0/gas/testsuite/gas/avr32/hwrd-lwrd.d 2007-03-26 10:19:48.000000000 +0200
54575 @@ -0,0 +1,47 @@
54576 +#as:
54577 +#objdump: -dr
54578 +#name: hwrd-lwrd
54579 +
54580 +.*: +file format .*
54581 +
54582 +Disassembly of section \.text:
54583 +
54584 +00000000 <test_hwrd>:
54585 + 0: e0 60 87 65 mov r0,34661
54586 + 4: e0 60 12 34 mov r0,4660
54587 + 8: e0 60 00 00 mov r0,0
54588 + 8: R_AVR32_HI16 \.text\+0x60
54589 + c: e0 60 00 00 mov r0,0
54590 + c: R_AVR32_HI16 extsym1
54591 + 10: ea 10 87 65 orh r0,0x8765
54592 + 14: ea 10 12 34 orh r0,0x1234
54593 + 18: ea 10 00 00 orh r0,0x0
54594 + 18: R_AVR32_HI16 \.text\+0x60
54595 + 1c: ea 10 00 00 orh r0,0x0
54596 + 1c: R_AVR32_HI16 extsym1
54597 + 20: e4 10 87 65 andh r0,0x8765
54598 + 24: e4 10 12 34 andh r0,0x1234
54599 + 28: e4 10 00 00 andh r0,0x0
54600 + 28: R_AVR32_HI16 \.text\+0x60
54601 + 2c: e4 10 00 00 andh r0,0x0
54602 + 2c: R_AVR32_HI16 extsym1
54603 +
54604 +00000030 <test_lwrd>:
54605 + 30: e0 60 43 21 mov r0,17185
54606 + 34: e0 60 56 78 mov r0,22136
54607 + 38: e0 60 00 00 mov r0,0
54608 + 38: R_AVR32_LO16 \.text\+0x60
54609 + 3c: e0 60 00 00 mov r0,0
54610 + 3c: R_AVR32_LO16 extsym1
54611 + 40: e8 10 43 21 orl r0,0x4321
54612 + 44: e8 10 56 78 orl r0,0x5678
54613 + 48: e8 10 00 00 orl r0,0x0
54614 + 48: R_AVR32_LO16 \.text\+0x60
54615 + 4c: e8 10 00 00 orl r0,0x0
54616 + 4c: R_AVR32_LO16 extsym1
54617 + 50: e0 10 43 21 andl r0,0x4321
54618 + 54: e0 10 56 78 andl r0,0x5678
54619 + 58: e0 10 00 00 andl r0,0x0
54620 + 58: R_AVR32_LO16 \.text\+0x60
54621 + 5c: e0 10 00 00 andl r0,0x0
54622 + 5c: R_AVR32_LO16 extsym1
54623 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
54624 --- binutils-2.17/gas/testsuite/gas/avr32/hwrd-lwrd.s 1970-01-01 01:00:00.000000000 +0100
54625 +++ binutils-2.17.atmel.1.3.0/gas/testsuite/gas/avr32/hwrd-lwrd.s 2007-03-26 10:19:48.000000000 +0200
54626 @@ -0,0 +1,39 @@
54627 +
54628 + .equ sym1, 0x12345678
54629 +
54630 + .text
54631 + .global test_hwrd
54632 +test_hwrd:
54633 + mov r0, hi(0x87654321)
54634 + mov r0, hi(sym1)
54635 + mov r0, hi(sym2)
54636 + mov r0, hi(extsym1)
54637 +
54638 + orh r0, hi(0x87654321)
54639 + orh r0, hi(sym1)
54640 + orh r0, hi(sym2)
54641 + orh r0, hi(extsym1)
54642 +
54643 + andh r0, hi(0x87654321)
54644 + andh r0, hi(sym1)
54645 + andh r0, hi(sym2)
54646 + andh r0, hi(extsym1)
54647 +
54648 + .global test_lwrd
54649 +test_lwrd:
54650 + mov r0, lo(0x87654321)
54651 + mov r0, lo(sym1)
54652 + mov r0, lo(sym2)
54653 + mov r0, lo(extsym1)
54654 +
54655 + orl r0, lo(0x87654321)
54656 + orl r0, lo(sym1)
54657 + orl r0, lo(sym2)
54658 + orl r0, lo(extsym1)
54659 +
54660 + andl r0, lo(0x87654321)
54661 + andl r0, lo(sym1)
54662 + andl r0, lo(sym2)
54663 + andl r0, lo(extsym1)
54664 +
54665 +sym2:
54666 diff -Nrup binutils-2.17/gas/testsuite/gas/avr32/jmptable.d binutils-2.17.atmel.1.3.0/gas/testsuite/gas/avr32/jmptable.d
54667 --- binutils-2.17/gas/testsuite/gas/avr32/jmptable.d 1970-01-01 01:00:00.000000000 +0100
54668 +++ binutils-2.17.atmel.1.3.0/gas/testsuite/gas/avr32/jmptable.d 2007-03-26 10:19:48.000000000 +0200
54669 @@ -0,0 +1,20 @@
54670 +#source: jmptable.s
54671 +#as:
54672 +#objdump: -dr
54673 +#name: jmptable
54674 +
54675 +.*: +file format .*
54676 +
54677 +Disassembly of section \.text:
54678 +
54679 +00000000 <jmptable_test>:
54680 + 0: fe c8 ff f4 sub r8,pc,-12
54681 + 4: f0 00 00 2f add pc,r8,r0<<0x2
54682 + 8: d7 03 nop
54683 + a: 00 00 add r0,r0
54684 + c: c0 38 rjmp 12 <jmptable_test\+0x12>
54685 + e: c0 38 rjmp 14 <jmptable_test\+0x14>
54686 + 10: c0 38 rjmp 16 <jmptable_test\+0x16>
54687 + 12: d7 03 nop
54688 + 14: d7 03 nop
54689 + 16: d7 03 nop
54690 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
54691 --- binutils-2.17/gas/testsuite/gas/avr32/jmptable_linkrelax.d 1970-01-01 01:00:00.000000000 +0100
54692 +++ binutils-2.17.atmel.1.3.0/gas/testsuite/gas/avr32/jmptable_linkrelax.d 2007-03-26 10:19:48.000000000 +0200
54693 @@ -0,0 +1,25 @@
54694 +#source: jmptable.s
54695 +#as: --linkrelax
54696 +#objdump: -dr
54697 +#name: jmptable_linkrelax
54698 +
54699 +.*: +file format .*
54700 +
54701 +Disassembly of section \.text:
54702 +
54703 +00000000 <jmptable_test>:
54704 + 0: fe c8 00 00 sub r8,pc,0
54705 + 0: R_AVR32_16N_PCREL \.text\+0xc
54706 + 4: f0 00 00 2f add pc,r8,r0<<0x2
54707 + 8: d7 03 nop
54708 + a: 00 00 add r0,r0
54709 + a: R_AVR32_ALIGN \*ABS\*\+0x2
54710 + c: c0 08 rjmp c <jmptable_test\+0xc>
54711 + c: R_AVR32_11H_PCREL \.text\+0x12
54712 + e: c0 08 rjmp e <jmptable_test\+0xe>
54713 + e: R_AVR32_11H_PCREL \.text\+0x14
54714 + 10: c0 08 rjmp 10 <jmptable_test\+0x10>
54715 + 10: R_AVR32_11H_PCREL \.text\+0x16
54716 + 12: d7 03 nop
54717 + 14: d7 03 nop
54718 + 16: d7 03 nop
54719 diff -Nrup binutils-2.17/gas/testsuite/gas/avr32/jmptable.s binutils-2.17.atmel.1.3.0/gas/testsuite/gas/avr32/jmptable.s
54720 --- binutils-2.17/gas/testsuite/gas/avr32/jmptable.s 1970-01-01 01:00:00.000000000 +0100
54721 +++ binutils-2.17.atmel.1.3.0/gas/testsuite/gas/avr32/jmptable.s 2007-03-26 10:19:48.000000000 +0200
54722 @@ -0,0 +1,14 @@
54723 +
54724 + .text
54725 + .global jmptable_test
54726 +jmptable_test:
54727 + sub r8, pc, -(.L1 - .)
54728 + add pc, r8, r0 << 2
54729 + nop
54730 + .align 2
54731 +.L1: rjmp 1f
54732 + rjmp 2f
54733 + rjmp 3f
54734 +1: nop
54735 +2: nop
54736 +3: nop
54737 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
54738 --- binutils-2.17/gas/testsuite/gas/avr32/lda_nopic.d 1970-01-01 01:00:00.000000000 +0100
54739 +++ binutils-2.17.atmel.1.3.0/gas/testsuite/gas/avr32/lda_nopic.d 2007-03-26 10:19:48.000000000 +0200
54740 @@ -0,0 +1,32 @@
54741 +#source: lda.s
54742 +#as:
54743 +#objdump: -dr
54744 +#name: lda_nopic
54745 +
54746 +.*: +file format .*
54747 +
54748 +Disassembly of section \.text:
54749 +
54750 +00000000 <lda_test>:
54751 + 0: f2 c8 00 00 sub r8,r9,0
54752 +
54753 +00000004 <far_negative>:
54754 + 4: f6 ca 00 00 sub r10,r11,0
54755 + ...
54756 + 8000: fe c0 7f fc sub r0,pc,32764
54757 + 8004: 48 31 lddpc r1,8010 <far_negative\+0x800c>
54758 + 8006: 48 42 lddpc r2,8014 <far_negative\+0x8010>
54759 + 8008: 48 43 lddpc r3,8018 <far_negative\+0x8014>
54760 + 800a: 48 54 lddpc r4,801c <far_negative\+0x8018>
54761 + 800c: fe c5 80 04 sub r5,pc,-32764
54762 + ...
54763 + 8010: R_AVR32_32_CPENT \.text
54764 + 8014: R_AVR32_32_CPENT \.data
54765 + 8018: R_AVR32_32_CPENT undefined
54766 + 801c: R_AVR32_32_CPENT \.text\+0x1001c
54767 +
54768 +00010008 <far_positive>:
54769 + 10008: fa cc 00 00 sub r12,sp,0
54770 + ...
54771 +0001001c <toofar_positive>:
54772 + 1001c: fe ce 00 00 sub lr,pc,0
54773 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
54774 --- binutils-2.17/gas/testsuite/gas/avr32/lda_nopic_linkrelax.d 1970-01-01 01:00:00.000000000 +0100
54775 +++ binutils-2.17.atmel.1.3.0/gas/testsuite/gas/avr32/lda_nopic_linkrelax.d 2007-03-26 10:19:48.000000000 +0200
54776 @@ -0,0 +1,41 @@
54777 +#source: lda.s
54778 +#as: --linkrelax
54779 +#objdump: -dr
54780 +#name: lda_nopic_linkrelax
54781 +
54782 +.*: +file format .*
54783 +
54784 +Disassembly of section \.text:
54785 +
54786 +00000000 <lda_test>:
54787 + 0: f2 c8 00 00 sub r8,r9,0
54788 +
54789 +00000004 <far_negative>:
54790 + 4: f6 ca 00 00 sub r10,r11,0
54791 + \.\.\.
54792 + 8000: 48 00 lddpc r0,8000 <far_negative\+0x7ffc>
54793 + 8000: R_AVR32_9W_CP \.text\+0x800c
54794 + 8002: 48 01 lddpc r1,8000 <far_negative\+0x7ffc>
54795 + 8002: R_AVR32_9W_CP \.text\+0x8010
54796 + 8004: 48 02 lddpc r2,8004 <far_negative\+0x8000>
54797 + 8004: R_AVR32_9W_CP \.text\+0x8014
54798 + 8006: 48 03 lddpc r3,8004 <far_negative\+0x8000>
54799 + 8006: R_AVR32_9W_CP \.text\+0x8018
54800 + 8008: 48 04 lddpc r4,8008 <far_negative\+0x8004>
54801 + 8008: R_AVR32_9W_CP \.text\+0x801c
54802 + 800a: 48 05 lddpc r5,8008 <far_negative\+0x8004>
54803 + 800a: R_AVR32_9W_CP \.text\+0x8020
54804 + \.\.\.
54805 + 800c: R_AVR32_ALIGN \*ABS\*\+0x2
54806 + 800c: R_AVR32_32_CPENT \.text\+0x4
54807 + 8010: R_AVR32_32_CPENT \.text
54808 + 8014: R_AVR32_32_CPENT \.data
54809 + 8018: R_AVR32_32_CPENT undefined
54810 + 801c: R_AVR32_32_CPENT \.text\+0x10020
54811 + 8020: R_AVR32_32_CPENT \.text\+0x1000c
54812 +
54813 +0001000c <far_positive>:
54814 + 1000c: fa cc 00 00 sub r12,sp,0
54815 + \.\.\.
54816 +00010020 <toofar_positive>:
54817 + 10020: fe ce 00 00 sub lr,pc,0
54818 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
54819 --- binutils-2.17/gas/testsuite/gas/avr32/lda_pic.d 1970-01-01 01:00:00.000000000 +0100
54820 +++ binutils-2.17.atmel.1.3.0/gas/testsuite/gas/avr32/lda_pic.d 2007-03-26 10:19:48.000000000 +0200
54821 @@ -0,0 +1,32 @@
54822 +#source: lda.s
54823 +#as: --pic
54824 +#objdump: -dr
54825 +#name: lda_pic
54826 +
54827 +.*: +file format .*
54828 +
54829 +Disassembly of section \.text:
54830 +
54831 +00000000 <lda_test>:
54832 + 0: f2 c8 00 00 sub r8,r9,0
54833 +
54834 +00000004 <far_negative>:
54835 + 4: f6 ca 00 00 sub r10,r11,0
54836 + ...
54837 + 8000: fe c0 7f fc sub r0,pc,32764
54838 + 8004: ec f1 00 00 ld.w r1,r6\[0\]
54839 + 8004: R_AVR32_GOT16S toofar_negative
54840 + 8008: ec f2 00 00 ld.w r2,r6\[0\]
54841 + 8008: R_AVR32_GOT16S different_section
54842 + 800c: ec f3 00 00 ld.w r3,r6\[0\]
54843 + 800c: R_AVR32_GOT16S undefined
54844 + 8010: ec f4 00 00 ld.w r4,r6\[0\]
54845 + 8010: R_AVR32_GOT16S toofar_positive
54846 + 8014: fe c5 80 14 sub r5,pc,-32748
54847 + ...
54848 +
54849 +00010000 <far_positive>:
54850 + 10000: fa cc 00 00 sub r12,sp,0
54851 + ...
54852 +00010014 <toofar_positive>:
54853 + 10014: fe ce 00 00 sub lr,pc,0
54854 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
54855 --- binutils-2.17/gas/testsuite/gas/avr32/lda_pic_linkrelax.d 1970-01-01 01:00:00.000000000 +0100
54856 +++ binutils-2.17.atmel.1.3.0/gas/testsuite/gas/avr32/lda_pic_linkrelax.d 2007-03-26 10:19:48.000000000 +0200
54857 @@ -0,0 +1,40 @@
54858 +#source: lda.s
54859 +#as: --pic --linkrelax
54860 +#objdump: -dr
54861 +#name: lda_pic_linkrelax
54862 +
54863 +.*: +file format .*
54864 +
54865 +Disassembly of section \.text:
54866 +
54867 +00000000 <lda_test>:
54868 + 0: f2 c8 00 00 sub r8,r9,0
54869 +
54870 +00000004 <far_negative>:
54871 + 4: f6 ca 00 00 sub r10,r11,0
54872 + ...
54873 + 8000: e0 60 00 00 mov r0,0
54874 + 8000: R_AVR32_LDA_GOT far_negative
54875 + 8004: ec 00 03 20 ld\.w r0,r6\[r0<<0x2\]
54876 + 8008: e0 61 00 00 mov r1,0
54877 + 8008: R_AVR32_LDA_GOT toofar_negative
54878 + 800c: ec 01 03 21 ld\.w r1,r6\[r1<<0x2\]
54879 + 8010: e0 62 00 00 mov r2,0
54880 + 8010: R_AVR32_LDA_GOT different_section
54881 + 8014: ec 02 03 22 ld\.w r2,r6\[r2<<0x2\]
54882 + 8018: e0 63 00 00 mov r3,0
54883 + 8018: R_AVR32_LDA_GOT undefined
54884 + 801c: ec 03 03 23 ld\.w r3,r6\[r3<<0x2\]
54885 + 8020: e0 64 00 00 mov r4,0
54886 + 8020: R_AVR32_LDA_GOT toofar_positive
54887 + 8024: ec 04 03 24 ld\.w r4,r6\[r4<<0x2\]
54888 + 8028: e0 65 00 00 mov r5,0
54889 + 8028: R_AVR32_LDA_GOT far_positive
54890 + 802c: ec 05 03 25 ld\.w r5,r6\[r5<<0x2\]
54891 + ...
54892 +
54893 +00010018 <far_positive>:
54894 + 10018: fa cc 00 00 sub r12,sp,0
54895 + ...
54896 +0001002c <toofar_positive>:
54897 + 1002c: fe ce 00 00 sub lr,pc,0
54898 diff -Nrup binutils-2.17/gas/testsuite/gas/avr32/lda.s binutils-2.17.atmel.1.3.0/gas/testsuite/gas/avr32/lda.s
54899 --- binutils-2.17/gas/testsuite/gas/avr32/lda.s 1970-01-01 01:00:00.000000000 +0100
54900 +++ binutils-2.17.atmel.1.3.0/gas/testsuite/gas/avr32/lda.s 2007-03-26 10:19:48.000000000 +0200
54901 @@ -0,0 +1,30 @@
54902 +
54903 + .text
54904 + .global lda_test
54905 +lda_test:
54906 +toofar_negative:
54907 + sub r8, r9, 0
54908 +far_negative:
54909 + sub r10, r11, 0
54910 +
54911 + .fill 32760, 1, 0x00
54912 +
54913 + lda.w r0, far_negative
54914 + lda.w r1, toofar_negative
54915 + lda.w r2, different_section
54916 + lda.w r3, undefined
54917 + lda.w r4, toofar_positive
54918 + lda.w r5, far_positive
54919 +
54920 + .cpool
54921 +
54922 + .fill 32744, 1, 0x00
54923 +far_positive:
54924 + sub r12, sp, 0
54925 + .fill 16, 1, 0x00
54926 +toofar_positive:
54927 + sub lr, pc, 0
54928 +
54929 + .data
54930 +different_section:
54931 + .long 0x12345678
54932 diff -Nrup binutils-2.17/gas/testsuite/gas/avr32/pcrel.d binutils-2.17.atmel.1.3.0/gas/testsuite/gas/avr32/pcrel.d
54933 --- binutils-2.17/gas/testsuite/gas/avr32/pcrel.d 1970-01-01 01:00:00.000000000 +0100
54934 +++ binutils-2.17.atmel.1.3.0/gas/testsuite/gas/avr32/pcrel.d 2007-03-26 10:19:48.000000000 +0200
54935 @@ -0,0 +1,64 @@
54936 +#as:
54937 +#objdump: -dr
54938 +#name: pcrel
54939 +
54940 +.*: +file format .*
54941 +
54942 +Disassembly of section \.text:
54943 +
54944 +00000000 <test_rjmp>:
54945 + 0: d7 03 nop
54946 + 2: c0 28 rjmp 6 <test_rjmp\+0x6>
54947 + 4: d7 03 nop
54948 + 6: e0 8f 00 00 bral 6 <test_rjmp\+0x6>
54949 + 6: R_AVR32_22H_PCREL extsym10
54950 +
54951 +0000000a <test_rcall>:
54952 + a: d7 03 nop
54953 +0000000c <test_rcall2>:
54954 + c: c0 2c rcall 10 <test_rcall2\+0x4>
54955 + e: d7 03 nop
54956 + 10: e0 a0 00 00 rcall 10 <test_rcall2\+0x4>
54957 + 10: R_AVR32_22H_PCREL extsym21
54958 +
54959 +00000014 <test_branch>:
54960 + 14: c0 31 brne 1a <test_branch\+0x6>
54961 + 16: e0 8f 00 00 bral 16 <test_branch\+0x2>
54962 + 16: R_AVR32_22H_PCREL test_branch
54963 + 1a: e0 80 00 00 breq 1a <test_branch\+0x6>
54964 + 1a: R_AVR32_22H_PCREL extsym21
54965 +
54966 +0000001e <test_lddpc>:
54967 + 1e: 48 30 lddpc r0,28 <sym1>
54968 + 20: 48 20 lddpc r0,28 <sym1>
54969 + 22: fe f0 00 00 ld.w r0,pc\[0\]
54970 + 22: R_AVR32_16B_PCREL extsym16
54971 + \.\.\.
54972 +
54973 +00000028 <sym1>:
54974 + 28: d7 03 nop
54975 + 2a: d7 03 nop
54976 +
54977 +0000002c <test_local>:
54978 + 2c: 48 20 lddpc r0,34 <test_local\+0x8>
54979 + 2e: 48 30 lddpc r0,38 <test_local\+0xc>
54980 + 30: 48 20 lddpc r0,38 <test_local\+0xc>
54981 + 32: 00 00 add r0,r0
54982 + 34: d7 03 nop
54983 + 36: d7 03 nop
54984 + 38: d7 03 nop
54985 + 3a: d7 03 nop
54986 +
54987 +Disassembly of section \.text\.init:
54988 +
54989 +00000000 <test_inter_section>:
54990 + 0: e0 a0 .. .. rcall [0-9a-f]+ <.*>
54991 + 0: R_AVR32_22H_PCREL test_rcall
54992 + 4: d7 03 nop
54993 + 6: e0 a0 .. .. rcall [0-9a-f]+ <.*>
54994 + 6: R_AVR32_22H_PCREL test_rcall
54995 + a: e0 a0 .. .. rcall [0-9a-z]+ <.*>
54996 + a: R_AVR32_22H_PCREL \.text\+0xc
54997 + e: d7 03 nop
54998 + 10: e0 a0 .. .. rcall [0-9a-f]+ <.*>
54999 + 10: R_AVR32_22H_PCREL \.text\+0xc
55000 diff -Nrup binutils-2.17/gas/testsuite/gas/avr32/pcrel.s binutils-2.17.atmel.1.3.0/gas/testsuite/gas/avr32/pcrel.s
55001 --- binutils-2.17/gas/testsuite/gas/avr32/pcrel.s 1970-01-01 01:00:00.000000000 +0100
55002 +++ binutils-2.17.atmel.1.3.0/gas/testsuite/gas/avr32/pcrel.s 2007-03-26 10:19:48.000000000 +0200
55003 @@ -0,0 +1,57 @@
55004 +
55005 + .text
55006 + .global test_rjmp
55007 +test_rjmp:
55008 + nop
55009 + rjmp 0f
55010 + nop
55011 +0: rjmp extsym10
55012 +
55013 + .global test_rcall
55014 +test_rcall:
55015 + nop
55016 +test_rcall2:
55017 + rcall 0f
55018 + nop
55019 +0: rcall extsym21
55020 +
55021 + .global test_branch
55022 +test_branch:
55023 + brne 0f
55024 + /* This will generate a reloc since test_branch is global */
55025 + bral test_branch
55026 +0: breq extsym21
55027 +
55028 + .global test_lddpc
55029 +test_lddpc:
55030 + lddpc r0,sym1
55031 + lddpc r0,sym1
55032 + lddpc r0,extsym16
55033 +
55034 + .align 2
55035 +sym1: nop
55036 + nop
55037 +
55038 + .global test_local
55039 +test_local:
55040 + lddpc r0, .LC1
55041 + lddpc r0, .LC2
55042 + lddpc r0, .LC1 + 0x4
55043 +
55044 + .align 2
55045 +.LC1:
55046 + nop
55047 + nop
55048 +.LC2:
55049 + nop
55050 + nop
55051 +
55052 + .section .text.init,"ax"
55053 + .global test_inter_section
55054 +test_inter_section:
55055 + rcall test_rcall
55056 + nop
55057 + rcall test_rcall
55058 + rcall test_rcall2
55059 + nop
55060 + rcall test_rcall2
55061 diff -Nrup binutils-2.17/gas/testsuite/gas/avr32/pico.d binutils-2.17.atmel.1.3.0/gas/testsuite/gas/avr32/pico.d
55062 --- binutils-2.17/gas/testsuite/gas/avr32/pico.d 1970-01-01 01:00:00.000000000 +0100
55063 +++ binutils-2.17.atmel.1.3.0/gas/testsuite/gas/avr32/pico.d 2007-03-26 10:19:48.000000000 +0200
55064 @@ -0,0 +1,149 @@
55065 +#as:
55066 +#objdump: -dr
55067 +#name: pico
55068 +
55069 +.*: +file format .*
55070 +
55071 +Disassembly of section \.text:
55072 +
55073 +[0-9a-f]* <picosvmac>:
55074 + *[0-9a-f]*: e1 a6 20 00 cop cp1,cr0,cr0,cr0,0xc
55075 + *[0-9a-f]*: e1 a7 2b bb cop cp1,cr11,cr11,cr11,0xe
55076 + *[0-9a-f]*: e1 a6 3a 05 cop cp1,cr10,cr0,cr5,0xd
55077 + *[0-9a-f]*: e1 a7 36 90 cop cp1,cr6,cr9,cr0,0xf
55078 +
55079 +[0-9a-f]* <picosvmul>:
55080 + *[0-9a-f]*: e1 a4 20 00 cop cp1,cr0,cr0,cr0,0x8
55081 + *[0-9a-f]*: e1 a5 2b bb cop cp1,cr11,cr11,cr11,0xa
55082 + *[0-9a-f]*: e1 a4 3a 05 cop cp1,cr10,cr0,cr5,0x9
55083 + *[0-9a-f]*: e1 a5 36 90 cop cp1,cr6,cr9,cr0,0xb
55084 +
55085 +[0-9a-f]* <picovmac>:
55086 + *[0-9a-f]*: e1 a2 20 00 cop cp1,cr0,cr0,cr0,0x4
55087 + *[0-9a-f]*: e1 a3 2b bb cop cp1,cr11,cr11,cr11,0x6
55088 + *[0-9a-f]*: e1 a2 3a 05 cop cp1,cr10,cr0,cr5,0x5
55089 + *[0-9a-f]*: e1 a3 36 90 cop cp1,cr6,cr9,cr0,0x7
55090 +
55091 +[0-9a-f]* <picovmul>:
55092 + *[0-9a-f]*: e1 a0 20 00 cop cp1,cr0,cr0,cr0,0x0
55093 + *[0-9a-f]*: e1 a1 2b bb cop cp1,cr11,cr11,cr11,0x2
55094 + *[0-9a-f]*: e1 a0 3a 05 cop cp1,cr10,cr0,cr5,0x1
55095 + *[0-9a-f]*: e1 a1 36 90 cop cp1,cr6,cr9,cr0,0x3
55096 +
55097 +[0-9a-f]* <picold_d>:
55098 + *[0-9a-f]*: e9 af 3e ff ldc\.d cp1,cr14,pc\[0x3fc\]
55099 + *[0-9a-f]*: e9 a0 30 ff ldc\.d cp1,cr0,r0\[0x3fc\]
55100 + *[0-9a-f]*: e9 a0 30 00 ldc\.d cp1,cr0,r0\[0x0\]
55101 + *[0-9a-f]*: ef a8 26 50 ldc\.d cp1,cr6,--r8
55102 + *[0-9a-f]*: ef a7 28 50 ldc\.d cp1,cr8,--r7
55103 + *[0-9a-f]*: ef aa 32 65 ldc\.d cp1,cr2,r10\[r5<<0x2\]
55104 + *[0-9a-f]*: ef a3 3c 46 ldc\.d cp1,cr12,r3\[r6\]
55105 +
55106 +[0-9a-f]* <picold_w>:
55107 + *[0-9a-f]*: e9 af 2f ff ldc\.w cp1,cr15,pc\[0x3fc\]
55108 + *[0-9a-f]*: e9 a0 20 ff ldc\.w cp1,cr0,r0\[0x3fc\]
55109 + *[0-9a-f]*: e9 a0 20 00 ldc\.w cp1,cr0,r0\[0x0\]
55110 + *[0-9a-f]*: ef a8 27 40 ldc\.w cp1,cr7,--r8
55111 + *[0-9a-f]*: ef a7 28 40 ldc\.w cp1,cr8,--r7
55112 + *[0-9a-f]*: ef aa 31 25 ldc\.w cp1,cr1,r10\[r5<<0x2\]
55113 + *[0-9a-f]*: ef a3 3d 06 ldc\.w cp1,cr13,r3\[r6\]
55114 +
55115 +[0-9a-f]* <picoldm_d>:
55116 + *[0-9a-f]*: ed af 24 ff ldcm\.d cp1,pc,cr0-cr15
55117 + *[0-9a-f]*: ed a0 24 01 ldcm\.d cp1,r0,cr0-cr1
55118 + *[0-9a-f]*: ed a7 24 80 ldcm\.d cp1,r7,cr14-cr15
55119 + *[0-9a-f]*: ed a8 24 7f ldcm\.d cp1,r8,cr0-cr13
55120 +
55121 +[0-9a-f]* <picoldm_d_pu>:
55122 + *[0-9a-f]*: ed af 34 ff ldcm\.d cp1,pc\+\+,cr0-cr15
55123 + *[0-9a-f]*: ed a0 34 01 ldcm\.d cp1,r0\+\+,cr0-cr1
55124 + *[0-9a-f]*: ed a7 34 80 ldcm\.d cp1,r7\+\+,cr14-cr15
55125 + *[0-9a-f]*: ed a8 34 7f ldcm\.d cp1,r8\+\+,cr0-cr13
55126 +
55127 +[0-9a-f]* <picoldm_w>:
55128 + *[0-9a-f]*: ed af 20 ff ldcm\.w cp1,pc,cr0-cr7
55129 + *[0-9a-f]*: ed a0 20 01 ldcm\.w cp1,r0,cr0
55130 + *[0-9a-f]*: ed a7 20 80 ldcm\.w cp1,r7,cr7
55131 + *[0-9a-f]*: ed a8 20 7f ldcm\.w cp1,r8,cr0-cr6
55132 + *[0-9a-f]*: ed af 21 ff ldcm\.w cp1,pc,cr8-cr15
55133 + *[0-9a-f]*: ed a0 21 01 ldcm\.w cp1,r0,cr8
55134 + *[0-9a-f]*: ed a7 21 80 ldcm\.w cp1,r7,cr15
55135 + *[0-9a-f]*: ed a8 21 7f ldcm\.w cp1,r8,cr8-cr14
55136 +
55137 +[0-9a-f]* <picoldm_w_pu>:
55138 + *[0-9a-f]*: ed af 30 ff ldcm\.w cp1,pc\+\+,cr0-cr7
55139 + *[0-9a-f]*: ed a0 30 01 ldcm\.w cp1,r0\+\+,cr0
55140 + *[0-9a-f]*: ed a7 30 80 ldcm\.w cp1,r7\+\+,cr7
55141 + *[0-9a-f]*: ed a8 30 7f ldcm\.w cp1,r8\+\+,cr0-cr6
55142 + *[0-9a-f]*: ed af 31 ff ldcm\.w cp1,pc\+\+,cr8-cr15
55143 + *[0-9a-f]*: ed a0 31 01 ldcm\.w cp1,r0\+\+,cr8
55144 + *[0-9a-f]*: ed a7 31 80 ldcm\.w cp1,r7\+\+,cr15
55145 + *[0-9a-f]*: ed a8 31 7f ldcm\.w cp1,r8\+\+,cr8-cr14
55146 +
55147 +[0-9a-f]* <picomv_d>:
55148 + *[0-9a-f]*: ef ae 2e 30 mvrc\.d cp1,cr14,lr
55149 + *[0-9a-f]*: ef a0 20 30 mvrc\.d cp1,cr0,r0
55150 + *[0-9a-f]*: ef a8 26 30 mvrc\.d cp1,cr6,r8
55151 + *[0-9a-f]*: ef a6 28 30 mvrc\.d cp1,cr8,r6
55152 + *[0-9a-f]*: ef ae 2e 10 mvcr\.d cp1,lr,cr14
55153 + *[0-9a-f]*: ef a0 20 10 mvcr\.d cp1,r0,cr0
55154 + *[0-9a-f]*: ef a8 26 10 mvcr\.d cp1,r8,cr6
55155 + *[0-9a-f]*: ef a6 28 10 mvcr\.d cp1,r6,cr8
55156 +
55157 +[0-9a-f]* <picomv_w>:
55158 + *[0-9a-f]*: ef af 2f 20 mvrc\.w cp1,cr15,pc
55159 + *[0-9a-f]*: ef a0 20 20 mvrc\.w cp1,cr0,r0
55160 + *[0-9a-f]*: ef a8 27 20 mvrc\.w cp1,cr7,r8
55161 + *[0-9a-f]*: ef a7 28 20 mvrc\.w cp1,cr8,r7
55162 + *[0-9a-f]*: ef af 2f 00 mvcr\.w cp1,pc,cr15
55163 + *[0-9a-f]*: ef a0 20 00 mvcr\.w cp1,r0,cr0
55164 + *[0-9a-f]*: ef a8 27 00 mvcr\.w cp1,r8,cr7
55165 + *[0-9a-f]*: ef a7 28 00 mvcr\.w cp1,r7,cr8
55166 +
55167 +[0-9a-f]* <picost_d>:
55168 + *[0-9a-f]*: eb af 3e ff stc\.d cp1,pc\[0x3fc\],cr14
55169 + *[0-9a-f]*: eb a0 30 00 stc\.d cp1,r0\[0x0\],cr0
55170 + *[0-9a-f]*: ef a8 26 70 stc\.d cp1,r8\+\+,cr6
55171 + *[0-9a-f]*: ef a7 28 70 stc\.d cp1,r7\+\+,cr8
55172 + *[0-9a-f]*: ef aa 32 e5 stc\.d cp1,r10\[r5<<0x2\],cr2
55173 + *[0-9a-f]*: ef a3 3c c6 stc\.d cp1,r3\[r6\],cr12
55174 +
55175 +[0-9a-f]* <picost_w>:
55176 + *[0-9a-f]*: eb af 2f ff stc\.w cp1,pc\[0x3fc\],cr15
55177 + *[0-9a-f]*: eb a0 20 00 stc\.w cp1,r0\[0x0\],cr0
55178 + *[0-9a-f]*: ef a8 27 60 stc\.w cp1,r8\+\+,cr7
55179 + *[0-9a-f]*: ef a7 28 60 stc\.w cp1,r7\+\+,cr8
55180 + *[0-9a-f]*: ef aa 31 a5 stc\.w cp1,r10\[r5<<0x2\],cr1
55181 + *[0-9a-f]*: ef a3 3d 86 stc\.w cp1,r3\[r6\],cr13
55182 +
55183 +[0-9a-f]* <picostm_d>:
55184 + *[0-9a-f]*: ed af 25 ff stcm\.d cp1,pc,cr0-cr15
55185 + *[0-9a-f]*: ed a0 25 01 stcm\.d cp1,r0,cr0-cr1
55186 + *[0-9a-f]*: ed a7 25 80 stcm\.d cp1,r7,cr14-cr15
55187 + *[0-9a-f]*: ed a8 25 7f stcm\.d cp1,r8,cr0-cr13
55188 +
55189 +[0-9a-f]* <picostm_d_pu>:
55190 + *[0-9a-f]*: ed af 35 ff stcm\.d cp1,--pc,cr0-cr15
55191 + *[0-9a-f]*: ed a0 35 01 stcm\.d cp1,--r0,cr0-cr1
55192 + *[0-9a-f]*: ed a7 35 80 stcm\.d cp1,--r7,cr14-cr15
55193 + *[0-9a-f]*: ed a8 35 7f stcm\.d cp1,--r8,cr0-cr13
55194 +
55195 +[0-9a-f]* <picostm_w>:
55196 + *[0-9a-f]*: ed af 22 ff stcm\.w cp1,pc,cr0-cr7
55197 + *[0-9a-f]*: ed a0 22 01 stcm\.w cp1,r0,cr0
55198 + *[0-9a-f]*: ed a7 22 80 stcm\.w cp1,r7,cr7
55199 + *[0-9a-f]*: ed a8 22 7f stcm\.w cp1,r8,cr0-cr6
55200 + *[0-9a-f]*: ed af 23 ff stcm\.w cp1,pc,cr8-cr15
55201 + *[0-9a-f]*: ed a0 23 01 stcm\.w cp1,r0,cr8
55202 + *[0-9a-f]*: ed a7 23 80 stcm\.w cp1,r7,cr15
55203 + *[0-9a-f]*: ed a8 23 7f stcm\.w cp1,r8,cr8-cr14
55204 +
55205 +[0-9a-f]* <picostm_w_pu>:
55206 + *[0-9a-f]*: ed af 32 ff stcm\.w cp1,--pc,cr0-cr7
55207 + *[0-9a-f]*: ed a0 32 01 stcm\.w cp1,--r0,cr0
55208 + *[0-9a-f]*: ed a7 32 80 stcm\.w cp1,--r7,cr7
55209 + *[0-9a-f]*: ed a8 32 7f stcm\.w cp1,--r8,cr0-cr6
55210 + *[0-9a-f]*: ed af 33 ff stcm\.w cp1,--pc,cr8-cr15
55211 + *[0-9a-f]*: ed a0 33 01 stcm\.w cp1,--r0,cr8
55212 + *[0-9a-f]*: ed a7 33 80 stcm\.w cp1,--r7,cr15
55213 + *[0-9a-f]*: ed a8 33 7f stcm\.w cp1,--r8,cr8-cr14
55214 diff -Nrup binutils-2.17/gas/testsuite/gas/avr32/pico.s binutils-2.17.atmel.1.3.0/gas/testsuite/gas/avr32/pico.s
55215 --- binutils-2.17/gas/testsuite/gas/avr32/pico.s 1970-01-01 01:00:00.000000000 +0100
55216 +++ binutils-2.17.atmel.1.3.0/gas/testsuite/gas/avr32/pico.s 2007-03-26 10:19:48.000000000 +0200
55217 @@ -0,0 +1,144 @@
55218 +
55219 + .text
55220 + .global picosvmac
55221 +picosvmac:
55222 + picosvmac out0, in0, in0, in0
55223 + picosvmac out2, in11, in11, in11
55224 + picosvmac out1, in10, in0, in5
55225 + picosvmac out3, in6, in9, in0
55226 + .global picosvmul
55227 +picosvmul:
55228 + picosvmul out0, in0, in0, in0
55229 + picosvmul out2, in11, in11, in11
55230 + picosvmul out1, in10, in0, in5
55231 + picosvmul out3, in6, in9, in0
55232 + .global picovmac
55233 +picovmac:
55234 + picovmac out0, in0, in0, in0
55235 + picovmac out2, in11, in11, in11
55236 + picovmac out1, in10, in0, in5
55237 + picovmac out3, in6, in9, in0
55238 + .global picovmul
55239 +picovmul:
55240 + picovmul out0, in0, in0, in0
55241 + picovmul out2, in11, in11, in11
55242 + picovmul out1, in10, in0, in5
55243 + picovmul out3, in6, in9, in0
55244 + .global picold_d
55245 +picold_d:
55246 + picold.d vmu2_out, pc[1020]
55247 + picold.d inpix2, r0[1020]
55248 + picold.d inpix2, r0[0]
55249 + picold.d coeff0_a, --r8
55250 + picold.d coeff1_a, --r7
55251 + picold.d inpix0, r10[r5 << 2]
55252 + picold.d vmu0_out, r3[r6 << 0]
55253 + .global picold_w
55254 +picold_w:
55255 + picold.w config, pc[1020]
55256 + picold.w inpix2, r0[1020]
55257 + picold.w inpix2, r0[0]
55258 + picold.w coeff0_b, --r8
55259 + picold.w coeff1_a, --r7
55260 + picold.w inpix1, r10[r5 << 2]
55261 + picold.w vmu1_out, r3[r6 << 0]
55262 + .global picoldm_d
55263 +picoldm_d:
55264 + picoldm.d pc, inpix2-config
55265 + picoldm.d r0, inpix2, inpix1
55266 + picoldm.d r7, vmu2_out, config
55267 + picoldm.d r8, inpix2-vmu1_out
55268 + .global picoldm_d_pu
55269 +picoldm_d_pu:
55270 + 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
55271 + picoldm.d r0++, inpix2, inpix1
55272 + picoldm.d r7++, vmu2_out, config
55273 + 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
55274 + .global picoldm_w
55275 +picoldm_w:
55276 + picoldm.w pc, inpix2-coeff0_b
55277 + picoldm.w r0, inpix2
55278 + picoldm.w r7, coeff0_b
55279 + picoldm.w r8, inpix2-coeff0_a
55280 + picoldm.w pc, coeff1_a-config
55281 + picoldm.w r0, coeff1_a
55282 + picoldm.w r7, config
55283 + picoldm.w r8, coeff1_a-vmu2_out
55284 + .global picoldm_w_pu
55285 +picoldm_w_pu:
55286 + picoldm.w pc++, inpix2-coeff0_b
55287 + picoldm.w r0++, inpix2
55288 + picoldm.w r7++, coeff0_b
55289 + picoldm.w r8++, inpix2-coeff0_a
55290 + picoldm.w pc++, coeff1_a-config
55291 + picoldm.w r0++, coeff1_a
55292 + picoldm.w r7++, config
55293 + picoldm.w r8++, coeff1_a-vmu2_out
55294 + .global picomv_d
55295 +picomv_d:
55296 + picomv.d vmu2_out, lr
55297 + picomv.d inpix2, r0
55298 + picomv.d coeff0_a, r8
55299 + picomv.d coeff1_a, r6
55300 + picomv.d pc, vmu2_out
55301 + picomv.d r0, inpix2
55302 + picomv.d r8, coeff0_a
55303 + picomv.d r6, coeff1_a
55304 + .global picomv_w
55305 +picomv_w:
55306 + picomv.w config, pc
55307 + picomv.w inpix2, r0
55308 + picomv.w coeff0_b, r8
55309 + picomv.w coeff1_a, r7
55310 + picomv.w pc, config
55311 + picomv.w r0, inpix2
55312 + picomv.w r8, coeff0_b
55313 + picomv.w r7, coeff1_a
55314 + .global picost_d
55315 +picost_d:
55316 + picost.d pc[1020], vmu2_out
55317 + picost.d r0[0], inpix2
55318 + picost.d r8++, coeff0_a
55319 + picost.d r7++, coeff1_a
55320 + picost.d r10[r5 << 2], inpix0
55321 + picost.d r3[r6 << 0], vmu0_out
55322 + .global picost_w
55323 +picost_w:
55324 + picost.w pc[1020], config
55325 + picost.w r0[0], inpix2
55326 + picost.w r8++, coeff0_b
55327 + picost.w r7++, coeff1_a
55328 + picost.w r10[r5 << 2], inpix1
55329 + picost.w r3[r6 << 0], vmu1_out
55330 + .global picostm_d
55331 +picostm_d:
55332 + picostm.d pc, inpix2-config
55333 + picostm.d r0, inpix2, inpix1
55334 + picostm.d r7, vmu2_out, config
55335 + picostm.d r8, inpix2-vmu1_out
55336 + .global picostm_d_pu
55337 +picostm_d_pu:
55338 + 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
55339 + picostm.d --r0, inpix2, inpix1
55340 + picostm.d --r7, vmu2_out, config
55341 + 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
55342 + .global picostm_w
55343 +picostm_w:
55344 + picostm.w pc, inpix2-coeff0_b
55345 + picostm.w r0, inpix2
55346 + picostm.w r7, coeff0_b
55347 + picostm.w r8, inpix2-coeff0_a
55348 + picostm.w pc, coeff1_a-config
55349 + picostm.w r0, coeff1_a
55350 + picostm.w r7, config
55351 + picostm.w r8, coeff1_a-vmu2_out
55352 + .global picostm_w_pu
55353 +picostm_w_pu:
55354 + picostm.w --pc, inpix2-coeff0_b
55355 + picostm.w --r0, inpix2
55356 + picostm.w --r7, coeff0_b
55357 + picostm.w --r8, inpix2-coeff0_a
55358 + picostm.w --pc, coeff1_a-config
55359 + picostm.w --r0, coeff1_a
55360 + picostm.w --r7, config
55361 + picostm.w --r8, coeff1_a-vmu2_out
55362 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
55363 --- binutils-2.17/gas/testsuite/gas/avr32/pic_reloc.d 1970-01-01 01:00:00.000000000 +0100
55364 +++ binutils-2.17.atmel.1.3.0/gas/testsuite/gas/avr32/pic_reloc.d 2007-03-26 10:19:48.000000000 +0200
55365 @@ -0,0 +1,27 @@
55366 +#as:
55367 +#objdump: -dr
55368 +#name: pic_reloc
55369 +
55370 +.*: +file format .*
55371 +
55372 +Disassembly of section \.text:
55373 +
55374 +00000000 <mcall_got>:
55375 + 0: f0 16 00 00 mcall r6\[0\]
55376 + 0: R_AVR32_GOT18SW extfunc
55377 + 4: f0 16 00 00 mcall r6\[0\]
55378 + 4: R_AVR32_GOT18SW \.L1
55379 + 8: f0 16 00 00 mcall r6\[0\]
55380 + 8: R_AVR32_GOT18SW \.L2
55381 + c: f0 16 00 00 mcall r6\[0\]
55382 + c: R_AVR32_GOT18SW mcall_got
55383 +
55384 +00000010 <ldw_got>:
55385 + 10: ec f0 00 00 ld.w r0,r6\[0\]
55386 + 10: R_AVR32_GOT16S extvar
55387 + 14: ec f0 00 00 ld.w r0,r6\[0\]
55388 + 14: R_AVR32_GOT16S \.L3
55389 + 18: ec f0 00 00 ld.w r0,r6\[0\]
55390 + 18: R_AVR32_GOT16S \.L4
55391 + 1c: ec f0 00 00 ld.w r0,r6\[0\]
55392 + 1c: R_AVR32_GOT16S ldw_got
55393 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
55394 --- binutils-2.17/gas/testsuite/gas/avr32/pic_reloc.s 1970-01-01 01:00:00.000000000 +0100
55395 +++ binutils-2.17.atmel.1.3.0/gas/testsuite/gas/avr32/pic_reloc.s 2007-03-26 10:19:48.000000000 +0200
55396 @@ -0,0 +1,18 @@
55397 +
55398 + .text
55399 + .global mcall_got
55400 +mcall_got:
55401 +.L1:
55402 + mcall r6[extfunc@got]
55403 + mcall r6[.L1@got]
55404 + mcall r6[.L2@got]
55405 + mcall r6[mcall_got@got]
55406 +.L2:
55407 +
55408 + .global ldw_got
55409 +ldw_got:
55410 +.L3: ld.w r0,r6[extvar@got]
55411 + ld.w r0,r6[.L3@got]
55412 + ld.w r0,r6[.L4@got]
55413 + ld.w r0,r6[ldw_got@got]
55414 +.L4:
55415 diff -Nrup binutils-2.17/gas/testsuite/gas/avr32/symdiff.d binutils-2.17.atmel.1.3.0/gas/testsuite/gas/avr32/symdiff.d
55416 --- binutils-2.17/gas/testsuite/gas/avr32/symdiff.d 1970-01-01 01:00:00.000000000 +0100
55417 +++ binutils-2.17.atmel.1.3.0/gas/testsuite/gas/avr32/symdiff.d 2007-03-26 10:19:48.000000000 +0200
55418 @@ -0,0 +1,24 @@
55419 +#source: symdiff.s
55420 +#as:
55421 +#objdump: -dr
55422 +#name: symdiff
55423 +
55424 +.*: +file format .*
55425 +
55426 +Disassembly of section \.text:
55427 +
55428 +00000000 <diff32>:
55429 + 0: 00 00 add r0,r0
55430 + 2: 00 04 add r4,r0
55431 +
55432 +00000004 <diff16>:
55433 + 4: 00 04 add r4,r0
55434 +
55435 +00000006 <diff8>:
55436 + 6: 04 00 add r0,r2
55437 +
55438 +00000008 <symdiff_test>:
55439 + 8: d7 03 nop
55440 + a: d7 03 nop
55441 + c: d7 03 nop
55442 + e: d7 03 nop
55443 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
55444 --- binutils-2.17/gas/testsuite/gas/avr32/symdiff_linkrelax.d 1970-01-01 01:00:00.000000000 +0100
55445 +++ binutils-2.17.atmel.1.3.0/gas/testsuite/gas/avr32/symdiff_linkrelax.d 2007-03-26 10:19:48.000000000 +0200
55446 @@ -0,0 +1,28 @@
55447 +#source: symdiff.s
55448 +#as: --linkrelax
55449 +#objdump: -dr
55450 +#name: symdiff_linkrelax
55451 +
55452 +.*: +file format .*
55453 +
55454 +Disassembly of section \.text:
55455 +
55456 +00000000 <diff32>:
55457 + 0: 00 00 add r0,r0
55458 + 0: R_AVR32_DIFF32 \.text\+0xa
55459 + 2: 00 04 add r4,r0
55460 +
55461 +00000004 <diff16>:
55462 + 4: 00 04 add r4,r0
55463 + 4: R_AVR32_DIFF16 \.text\+0xa
55464 +
55465 +00000006 <diff8>:
55466 + 6: 04 00 add r0,r2
55467 + 6: R_AVR32_DIFF8 \.text\+0xa
55468 + 7: R_AVR32_ALIGN \*ABS\*\+0x1
55469 +
55470 +00000008 <symdiff_test>:
55471 + 8: d7 03 nop
55472 + a: d7 03 nop
55473 + c: d7 03 nop
55474 + e: d7 03 nop
55475 diff -Nrup binutils-2.17/gas/testsuite/gas/avr32/symdiff.s binutils-2.17.atmel.1.3.0/gas/testsuite/gas/avr32/symdiff.s
55476 --- binutils-2.17/gas/testsuite/gas/avr32/symdiff.s 1970-01-01 01:00:00.000000000 +0100
55477 +++ binutils-2.17.atmel.1.3.0/gas/testsuite/gas/avr32/symdiff.s 2007-03-26 10:19:48.000000000 +0200
55478 @@ -0,0 +1,19 @@
55479 +
55480 + .text
55481 + .global diff32
55482 +diff32:
55483 + .long .L2 - .L1
55484 + .global diff16
55485 +diff16:
55486 + .short .L2 - .L1
55487 + .global diff8
55488 +diff8:
55489 + .byte .L2 - .L1
55490 +
55491 + .global symdiff_test
55492 + .align 1
55493 +symdiff_test:
55494 + nop
55495 +.L1: nop
55496 + nop
55497 +.L2: nop
55498 diff -Nrup binutils-2.17/gas/write.c binutils-2.17.atmel.1.3.0/gas/write.c
55499 --- binutils-2.17/gas/write.c 2006-05-10 15:43:37.000000000 +0200
55500 +++ binutils-2.17.atmel.1.3.0/gas/write.c 2007-03-26 10:20:16.000000000 +0200
55501 @@ -126,7 +126,9 @@ static fixS *fix_new_internal (fragS *,
55502 offsetT offset, int pcrel,
55503 RELOC_ENUM r_type);
55504 static long fixup_segment (fixS *, segT);
55505 +#if !defined (TC_RELAX_ALIGN)
55506 static relax_addressT relax_align (relax_addressT addr, int align);
55507 +#endif
55508 static fragS *chain_frchains_together_1 (segT, struct frchain *);
55509 static void chain_frchains_together (bfd *, segT, PTR);
55510 static void cvt_frag_to_fill (segT, fragS *);
55511 @@ -1684,6 +1686,10 @@ relax_frag (segT segment, fragS *fragP,
55512
55513 #endif /* defined (TC_GENERIC_RELAX_TABLE) */
55514
55515 +#ifdef TC_RELAX_ALIGN
55516 +#define RELAX_ALIGN(SEG, FRAG, ADDR) TC_RELAX_ALIGN(SEG, FRAG, ADDR)
55517 +#else
55518 +#define RELAX_ALIGN(SEG, FRAG, ADDR) relax_align(ADDR, (FRAG)->fr_offset)
55519 /* Relax_align. Advance location counter to next address that has 'alignment'
55520 lowest order bits all 0s, return size of adjustment made. */
55521 static relax_addressT
55522 @@ -1703,6 +1709,7 @@ relax_align (register relax_addressT add
55523 #endif
55524 return (new_address - address);
55525 }
55526 +#endif
55527
55528 /* Now we have a segment, not a crowd of sub-segments, we can make
55529 fr_address values.
55530 @@ -1746,7 +1753,7 @@ relax_segment (struct frag *segment_frag
55531 case rs_align_code:
55532 case rs_align_test:
55533 {
55534 - addressT offset = relax_align (address, (int) fragP->fr_offset);
55535 + addressT offset = RELAX_ALIGN(segment, fragP, address);
55536
55537 if (fragP->fr_subtype != 0 && offset > fragP->fr_subtype)
55538 offset = 0;
55539 @@ -1922,10 +1929,10 @@ relax_segment (struct frag *segment_frag
55540 {
55541 addressT oldoff, newoff;
55542
55543 - oldoff = relax_align (was_address + fragP->fr_fix,
55544 - (int) offset);
55545 - newoff = relax_align (address + fragP->fr_fix,
55546 - (int) offset);
55547 + oldoff = RELAX_ALIGN (segment, fragP,
55548 + was_address + fragP->fr_fix);
55549 + newoff = RELAX_ALIGN (segment, fragP,
55550 + address + fragP->fr_fix);
55551
55552 if (fragP->fr_subtype != 0)
55553 {
55554 diff -Nrup binutils-2.17/include/dis-asm.h binutils-2.17.atmel.1.3.0/include/dis-asm.h
55555 --- binutils-2.17/include/dis-asm.h 2006-02-17 15:36:26.000000000 +0100
55556 +++ binutils-2.17.atmel.1.3.0/include/dis-asm.h 2007-03-26 10:20:18.000000000 +0200
55557 @@ -223,6 +223,7 @@ extern int print_insn_big_arm (bfd_vma,
55558 extern int print_insn_little_arm (bfd_vma, disassemble_info *);
55559 extern int print_insn_sparc (bfd_vma, disassemble_info *);
55560 extern int print_insn_avr (bfd_vma, disassemble_info *);
55561 +extern int print_insn_avr32 (bfd_vma, disassemble_info *);
55562 extern int print_insn_bfin (bfd_vma, disassemble_info *);
55563 extern int print_insn_d10v (bfd_vma, disassemble_info *);
55564 extern int print_insn_d30v (bfd_vma, disassemble_info *);
55565 @@ -276,7 +277,9 @@ extern disassembler_ftype cris_get_disas
55566 extern void print_mips_disassembler_options (FILE *);
55567 extern void print_ppc_disassembler_options (FILE *);
55568 extern void print_arm_disassembler_options (FILE *);
55569 +extern void print_avr32_disassembler_options (FILE *);
55570 extern void parse_arm_disassembler_option (char *);
55571 +extern void parse_avr32_disassembler_option (char *);
55572 extern int get_arm_regname_num_options (void);
55573 extern int set_arm_regname_option (int);
55574 extern int get_arm_regnames (int, const char **, const char **, const char *const **);
55575 diff -Nrup binutils-2.17/include/elf/avr32.h binutils-2.17.atmel.1.3.0/include/elf/avr32.h
55576 --- binutils-2.17/include/elf/avr32.h 1970-01-01 01:00:00.000000000 +0100
55577 +++ binutils-2.17.atmel.1.3.0/include/elf/avr32.h 2007-03-26 10:20:17.000000000 +0200
55578 @@ -0,0 +1,95 @@
55579 +/* AVR32 ELF support for BFD.
55580 + Copyright 2003-2006 Atmel Corporation.
55581 +
55582 + Written by Haavard Skinnemoen, Atmel Norway, <hskinnemoen@atmel.com>
55583 +
55584 + This file is part of BFD, the Binary File Descriptor library.
55585 +
55586 + This program is free software; you can redistribute it and/or
55587 + modify it under the terms of the GNU General Public License as
55588 + published by the Free Software Foundation; either version 2 of the
55589 + License, or (at your option) any later version.
55590 +
55591 + This program is distributed in the hope that it will be useful, but
55592 + WITHOUT ANY WARRANTY; without even the implied warranty of
55593 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
55594 + General Public License for more details.
55595 +
55596 + You should have received a copy of the GNU General Public License
55597 + along with this program; if not, write to the Free Software
55598 + Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
55599 + 02111-1307, USA. */
55600 +
55601 +#include "elf/reloc-macros.h"
55602 +
55603 +/* CPU-specific flags for the ELF header e_flags field */
55604 +#define EF_AVR32_LINKRELAX 0x01
55605 +#define EF_AVR32_PIC 0x02
55606 +
55607 +START_RELOC_NUMBERS (elf_avr32_reloc_type)
55608 + RELOC_NUMBER (R_AVR32_NONE, 0)
55609 +
55610 + /* Data Relocations */
55611 + RELOC_NUMBER (R_AVR32_32, 1)
55612 + RELOC_NUMBER (R_AVR32_16, 2)
55613 + RELOC_NUMBER (R_AVR32_8, 3)
55614 + RELOC_NUMBER (R_AVR32_32_PCREL, 4)
55615 + RELOC_NUMBER (R_AVR32_16_PCREL, 5)
55616 + RELOC_NUMBER (R_AVR32_8_PCREL, 6)
55617 + RELOC_NUMBER (R_AVR32_DIFF32, 7)
55618 + RELOC_NUMBER (R_AVR32_DIFF16, 8)
55619 + RELOC_NUMBER (R_AVR32_DIFF8, 9)
55620 + RELOC_NUMBER (R_AVR32_GOT32, 10)
55621 + RELOC_NUMBER (R_AVR32_GOT16, 11)
55622 + RELOC_NUMBER (R_AVR32_GOT8, 12)
55623 +
55624 + /* Normal Code Relocations */
55625 + RELOC_NUMBER (R_AVR32_21S, 13)
55626 + RELOC_NUMBER (R_AVR32_16U, 14)
55627 + RELOC_NUMBER (R_AVR32_16S, 15)
55628 + RELOC_NUMBER (R_AVR32_8S, 16)
55629 + RELOC_NUMBER (R_AVR32_8S_EXT, 17)
55630 +
55631 + /* PC-Relative Code Relocations */
55632 + RELOC_NUMBER (R_AVR32_22H_PCREL, 18)
55633 + RELOC_NUMBER (R_AVR32_18W_PCREL, 19)
55634 + RELOC_NUMBER (R_AVR32_16B_PCREL, 20)
55635 + RELOC_NUMBER (R_AVR32_16N_PCREL, 21)
55636 + RELOC_NUMBER (R_AVR32_14UW_PCREL, 22)
55637 + RELOC_NUMBER (R_AVR32_11H_PCREL, 23)
55638 + RELOC_NUMBER (R_AVR32_10UW_PCREL, 24)
55639 + RELOC_NUMBER (R_AVR32_9H_PCREL, 25)
55640 + RELOC_NUMBER (R_AVR32_9UW_PCREL, 26)
55641 +
55642 + /* Special Code Relocations */
55643 + RELOC_NUMBER (R_AVR32_HI16, 27)
55644 + RELOC_NUMBER (R_AVR32_LO16, 28)
55645 +
55646 + /* PIC Relocations */
55647 + RELOC_NUMBER (R_AVR32_GOTPC, 29)
55648 + RELOC_NUMBER (R_AVR32_GOTCALL, 30)
55649 + RELOC_NUMBER (R_AVR32_LDA_GOT, 31)
55650 + RELOC_NUMBER (R_AVR32_GOT21S, 32)
55651 + RELOC_NUMBER (R_AVR32_GOT18SW, 33)
55652 + RELOC_NUMBER (R_AVR32_GOT16S, 34)
55653 + RELOC_NUMBER (R_AVR32_GOT7UW, 35)
55654 +
55655 + /* Constant Pool Relocations */
55656 + RELOC_NUMBER (R_AVR32_32_CPENT, 36)
55657 + RELOC_NUMBER (R_AVR32_CPCALL, 37)
55658 + RELOC_NUMBER (R_AVR32_16_CP, 38)
55659 + RELOC_NUMBER (R_AVR32_9W_CP, 39)
55660 +
55661 + /* Dynamic Relocations */
55662 + RELOC_NUMBER (R_AVR32_RELATIVE, 40)
55663 + RELOC_NUMBER (R_AVR32_GLOB_DAT, 41)
55664 + RELOC_NUMBER (R_AVR32_JMP_SLOT, 42)
55665 +
55666 + /* Linkrelax Information */
55667 + RELOC_NUMBER (R_AVR32_ALIGN, 43)
55668 +END_RELOC_NUMBERS (R_AVR32_max)
55669 +
55670 +/* Processor specific dynamic array tags. */
55671 +
55672 +/* The total size in bytes of the Global Offset Table */
55673 +#define DT_AVR32_GOTSZ 0x70000001
55674 diff -Nrup binutils-2.17/include/elf/common.h binutils-2.17.atmel.1.3.0/include/elf/common.h
55675 --- binutils-2.17/include/elf/common.h 2006-02-17 15:36:26.000000000 +0100
55676 +++ binutils-2.17.atmel.1.3.0/include/elf/common.h 2007-03-26 10:20:17.000000000 +0200
55677 @@ -256,6 +256,9 @@
55678 /* V850 backend magic number. Written in the absense of an ABI. */
55679 #define EM_CYGNUS_V850 0x9080
55680
55681 +/* AVR32 magic number, picked by IAR Systems. */
55682 +#define EM_AVR32 0x18ad
55683 +
55684 /* old S/390 backend magic number. Written in the absence of an ABI. */
55685 #define EM_S390_OLD 0xa390
55686
55687 diff -Nrup binutils-2.17/ld/configdoc.texi binutils-2.17.atmel.1.3.0/ld/configdoc.texi
55688 --- binutils-2.17/ld/configdoc.texi 2006-05-10 15:43:46.000000000 +0200
55689 +++ binutils-2.17.atmel.1.3.0/ld/configdoc.texi 2007-09-28 10:30:45.000000000 +0200
55690 @@ -6,6 +6,7 @@
55691 @set H8300
55692 @set I960
55693 @set ARM
55694 +@set AVR32
55695 @set HPPA
55696 @set MMIX
55697 @set MSP430
55698 diff -Nrup binutils-2.17/ld/config.in binutils-2.17.atmel.1.3.0/ld/config.in
55699 --- binutils-2.17/ld/config.in 2006-04-16 20:20:30.000000000 +0200
55700 +++ binutils-2.17.atmel.1.3.0/ld/config.in 2007-03-26 10:32:23.000000000 +0200
55701 @@ -187,7 +187,7 @@
55702
55703 /* If using the C implementation of alloca, define if you know the
55704 direction of stack growth for your system; otherwise it will be
55705 - automatically deduced at run-time.
55706 + automatically deduced at runtime.
55707 STACK_DIRECTION > 0 => grows toward higher addresses
55708 STACK_DIRECTION < 0 => grows toward lower addresses
55709 STACK_DIRECTION = 0 => direction of growth unknown */
55710 @@ -215,8 +215,8 @@
55711 #undef inline
55712 #endif
55713
55714 -/* Define to `long' if <sys/types.h> does not define. */
55715 +/* Define to `long int' if <sys/types.h> does not define. */
55716 #undef off_t
55717
55718 -/* Define to `unsigned' if <sys/types.h> does not define. */
55719 +/* Define to `unsigned int' if <sys/types.h> does not define. */
55720 #undef size_t
55721 diff -Nrup binutils-2.17/ld/configure binutils-2.17.atmel.1.3.0/ld/configure
55722 --- binutils-2.17/ld/configure 2006-04-11 12:36:26.000000000 +0200
55723 +++ binutils-2.17.atmel.1.3.0/ld/configure 2007-03-26 10:32:22.000000000 +0200
55724 @@ -1,25 +1,54 @@
55725 #! /bin/sh
55726 # Guess values for system-dependent variables and create Makefiles.
55727 -# Generated by GNU Autoconf 2.59.
55728 +# Generated by GNU Autoconf 2.61.
55729 #
55730 -# Copyright (C) 2003 Free Software Foundation, Inc.
55731 +# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
55732 +# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
55733 # This configure script is free software; the Free Software Foundation
55734 # gives unlimited permission to copy, distribute and modify it.
55735 ## --------------------- ##
55736 ## M4sh Initialization. ##
55737 ## --------------------- ##
55738
55739 -# Be Bourne compatible
55740 +# Be more Bourne compatible
55741 +DUALCASE=1; export DUALCASE # for MKS sh
55742 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
55743 emulate sh
55744 NULLCMD=:
55745 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
55746 # is contrary to our usage. Disable this feature.
55747 alias -g '${1+"$@"}'='"$@"'
55748 -elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
55749 - set -o posix
55750 + setopt NO_GLOB_SUBST
55751 +else
55752 + case `(set -o) 2>/dev/null` in
55753 + *posix*) set -o posix ;;
55754 +esac
55755 +
55756 +fi
55757 +
55758 +
55759 +
55760 +
55761 +# PATH needs CR
55762 +# Avoid depending upon Character Ranges.
55763 +as_cr_letters='abcdefghijklmnopqrstuvwxyz'
55764 +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
55765 +as_cr_Letters=$as_cr_letters$as_cr_LETTERS
55766 +as_cr_digits='0123456789'
55767 +as_cr_alnum=$as_cr_Letters$as_cr_digits
55768 +
55769 +# The user is always right.
55770 +if test "${PATH_SEPARATOR+set}" != set; then
55771 + echo "#! /bin/sh" >conf$$.sh
55772 + echo "exit 0" >>conf$$.sh
55773 + chmod +x conf$$.sh
55774 + if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
55775 + PATH_SEPARATOR=';'
55776 + else
55777 + PATH_SEPARATOR=:
55778 + fi
55779 + rm -f conf$$.sh
55780 fi
55781 -DUALCASE=1; export DUALCASE # for MKS sh
55782
55783 # Support unset when possible.
55784 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55785 @@ -29,8 +58,43 @@ else
55786 fi
55787
55788
55789 +# IFS
55790 +# We need space, tab and new line, in precisely that order. Quoting is
55791 +# there to prevent editors from complaining about space-tab.
55792 +# (If _AS_PATH_WALK were called with IFS unset, it would disable word
55793 +# splitting by setting IFS to empty value.)
55794 +as_nl='
55795 +'
55796 +IFS=" "" $as_nl"
55797 +
55798 +# Find who we are. Look in the path if we contain no directory separator.
55799 +case $0 in
55800 + *[\\/]* ) as_myself=$0 ;;
55801 + *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
55802 +for as_dir in $PATH
55803 +do
55804 + IFS=$as_save_IFS
55805 + test -z "$as_dir" && as_dir=.
55806 + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
55807 +done
55808 +IFS=$as_save_IFS
55809 +
55810 + ;;
55811 +esac
55812 +# We did not find ourselves, most probably we were run as `sh COMMAND'
55813 +# in which case we are not to be found in the path.
55814 +if test "x$as_myself" = x; then
55815 + as_myself=$0
55816 +fi
55817 +if test ! -f "$as_myself"; then
55818 + echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
55819 + { (exit 1); exit 1; }
55820 +fi
55821 +
55822 # Work around bugs in pre-3.0 UWIN ksh.
55823 -$as_unset ENV MAIL MAILPATH
55824 +for as_var in ENV MAIL MAILPATH
55825 +do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
55826 +done
55827 PS1='$ '
55828 PS2='> '
55829 PS4='+ '
55830 @@ -44,18 +108,19 @@ do
55831 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
55832 eval $as_var=C; export $as_var
55833 else
55834 - $as_unset $as_var
55835 + ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
55836 fi
55837 done
55838
55839 # Required to use basename.
55840 -if expr a : '\(a\)' >/dev/null 2>&1; then
55841 +if expr a : '\(a\)' >/dev/null 2>&1 &&
55842 + test "X`expr 00001 : '.*\(...\)'`" = X001; then
55843 as_expr=expr
55844 else
55845 as_expr=false
55846 fi
55847
55848 -if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
55849 +if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
55850 as_basename=basename
55851 else
55852 as_basename=false
55853 @@ -63,157 +128,388 @@ fi
55854
55855
55856 # Name of the executable.
55857 -as_me=`$as_basename "$0" ||
55858 +as_me=`$as_basename -- "$0" ||
55859 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
55860 X"$0" : 'X\(//\)$' \| \
55861 - X"$0" : 'X\(/\)$' \| \
55862 - . : '\(.\)' 2>/dev/null ||
55863 + X"$0" : 'X\(/\)' \| . 2>/dev/null ||
55864 echo X/"$0" |
55865 - sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
55866 - /^X\/\(\/\/\)$/{ s//\1/; q; }
55867 - /^X\/\(\/\).*/{ s//\1/; q; }
55868 - s/.*/./; q'`
55869 + sed '/^.*\/\([^/][^/]*\)\/*$/{
55870 + s//\1/
55871 + q
55872 + }
55873 + /^X\/\(\/\/\)$/{
55874 + s//\1/
55875 + q
55876 + }
55877 + /^X\/\(\/\).*/{
55878 + s//\1/
55879 + q
55880 + }
55881 + s/.*/./; q'`
55882
55883 +# CDPATH.
55884 +$as_unset CDPATH
55885
55886 -# PATH needs CR, and LINENO needs CR and PATH.
55887 -# Avoid depending upon Character Ranges.
55888 -as_cr_letters='abcdefghijklmnopqrstuvwxyz'
55889 -as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
55890 -as_cr_Letters=$as_cr_letters$as_cr_LETTERS
55891 -as_cr_digits='0123456789'
55892 -as_cr_alnum=$as_cr_Letters$as_cr_digits
55893
55894 -# The user is always right.
55895 -if test "${PATH_SEPARATOR+set}" != set; then
55896 - echo "#! /bin/sh" >conf$$.sh
55897 - echo "exit 0" >>conf$$.sh
55898 - chmod +x conf$$.sh
55899 - if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
55900 - PATH_SEPARATOR=';'
55901 - else
55902 - PATH_SEPARATOR=:
55903 - fi
55904 - rm -f conf$$.sh
55905 +if test "x$CONFIG_SHELL" = x; then
55906 + if (eval ":") 2>/dev/null; then
55907 + as_have_required=yes
55908 +else
55909 + as_have_required=no
55910 +fi
55911 +
55912 + if test $as_have_required = yes && (eval ":
55913 +(as_func_return () {
55914 + (exit \$1)
55915 +}
55916 +as_func_success () {
55917 + as_func_return 0
55918 +}
55919 +as_func_failure () {
55920 + as_func_return 1
55921 +}
55922 +as_func_ret_success () {
55923 + return 0
55924 +}
55925 +as_func_ret_failure () {
55926 + return 1
55927 +}
55928 +
55929 +exitcode=0
55930 +if as_func_success; then
55931 + :
55932 +else
55933 + exitcode=1
55934 + echo as_func_success failed.
55935 fi
55936
55937 +if as_func_failure; then
55938 + exitcode=1
55939 + echo as_func_failure succeeded.
55940 +fi
55941
55942 - as_lineno_1=$LINENO
55943 - as_lineno_2=$LINENO
55944 - as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
55945 - test "x$as_lineno_1" != "x$as_lineno_2" &&
55946 - test "x$as_lineno_3" = "x$as_lineno_2" || {
55947 - # Find who we are. Look in the path if we contain no path at all
55948 - # relative or not.
55949 - case $0 in
55950 - *[\\/]* ) as_myself=$0 ;;
55951 - *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
55952 -for as_dir in $PATH
55953 -do
55954 - IFS=$as_save_IFS
55955 - test -z "$as_dir" && as_dir=.
55956 - test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
55957 -done
55958 +if as_func_ret_success; then
55959 + :
55960 +else
55961 + exitcode=1
55962 + echo as_func_ret_success failed.
55963 +fi
55964
55965 - ;;
55966 - esac
55967 - # We did not find ourselves, most probably we were run as `sh COMMAND'
55968 - # in which case we are not to be found in the path.
55969 - if test "x$as_myself" = x; then
55970 - as_myself=$0
55971 - fi
55972 - if test ! -f "$as_myself"; then
55973 - { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
55974 - { (exit 1); exit 1; }; }
55975 - fi
55976 - case $CONFIG_SHELL in
55977 - '')
55978 +if as_func_ret_failure; then
55979 + exitcode=1
55980 + echo as_func_ret_failure succeeded.
55981 +fi
55982 +
55983 +if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
55984 + :
55985 +else
55986 + exitcode=1
55987 + echo positional parameters were not saved.
55988 +fi
55989 +
55990 +test \$exitcode = 0) || { (exit 1); exit 1; }
55991 +
55992 +(
55993 + as_lineno_1=\$LINENO
55994 + as_lineno_2=\$LINENO
55995 + test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
55996 + test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
55997 +") 2> /dev/null; then
55998 + :
55999 +else
56000 + as_candidate_shells=
56001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
56002 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
56003 do
56004 IFS=$as_save_IFS
56005 test -z "$as_dir" && as_dir=.
56006 - for as_base in sh bash ksh sh5; do
56007 - case $as_dir in
56008 + case $as_dir in
56009 /*)
56010 - if ("$as_dir/$as_base" -c '
56011 + for as_base in sh bash ksh sh5; do
56012 + as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
56013 + done;;
56014 + esac
56015 +done
56016 +IFS=$as_save_IFS
56017 +
56018 +
56019 + for as_shell in $as_candidate_shells $SHELL; do
56020 + # Try only shells that exist, to save several forks.
56021 + if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
56022 + { ("$as_shell") 2> /dev/null <<\_ASEOF
56023 +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
56024 + emulate sh
56025 + NULLCMD=:
56026 + # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
56027 + # is contrary to our usage. Disable this feature.
56028 + alias -g '${1+"$@"}'='"$@"'
56029 + setopt NO_GLOB_SUBST
56030 +else
56031 + case `(set -o) 2>/dev/null` in
56032 + *posix*) set -o posix ;;
56033 +esac
56034 +
56035 +fi
56036 +
56037 +
56038 +:
56039 +_ASEOF
56040 +}; then
56041 + CONFIG_SHELL=$as_shell
56042 + as_have_required=yes
56043 + if { "$as_shell" 2> /dev/null <<\_ASEOF
56044 +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
56045 + emulate sh
56046 + NULLCMD=:
56047 + # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
56048 + # is contrary to our usage. Disable this feature.
56049 + alias -g '${1+"$@"}'='"$@"'
56050 + setopt NO_GLOB_SUBST
56051 +else
56052 + case `(set -o) 2>/dev/null` in
56053 + *posix*) set -o posix ;;
56054 +esac
56055 +
56056 +fi
56057 +
56058 +
56059 +:
56060 +(as_func_return () {
56061 + (exit $1)
56062 +}
56063 +as_func_success () {
56064 + as_func_return 0
56065 +}
56066 +as_func_failure () {
56067 + as_func_return 1
56068 +}
56069 +as_func_ret_success () {
56070 + return 0
56071 +}
56072 +as_func_ret_failure () {
56073 + return 1
56074 +}
56075 +
56076 +exitcode=0
56077 +if as_func_success; then
56078 + :
56079 +else
56080 + exitcode=1
56081 + echo as_func_success failed.
56082 +fi
56083 +
56084 +if as_func_failure; then
56085 + exitcode=1
56086 + echo as_func_failure succeeded.
56087 +fi
56088 +
56089 +if as_func_ret_success; then
56090 + :
56091 +else
56092 + exitcode=1
56093 + echo as_func_ret_success failed.
56094 +fi
56095 +
56096 +if as_func_ret_failure; then
56097 + exitcode=1
56098 + echo as_func_ret_failure succeeded.
56099 +fi
56100 +
56101 +if ( set x; as_func_ret_success y && test x = "$1" ); then
56102 + :
56103 +else
56104 + exitcode=1
56105 + echo positional parameters were not saved.
56106 +fi
56107 +
56108 +test $exitcode = 0) || { (exit 1); exit 1; }
56109 +
56110 +(
56111 as_lineno_1=$LINENO
56112 as_lineno_2=$LINENO
56113 - as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
56114 test "x$as_lineno_1" != "x$as_lineno_2" &&
56115 - test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
56116 - $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
56117 - $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
56118 - CONFIG_SHELL=$as_dir/$as_base
56119 - export CONFIG_SHELL
56120 - exec "$CONFIG_SHELL" "$0" ${1+"$@"}
56121 - fi;;
56122 - esac
56123 - done
56124 -done
56125 -;;
56126 - esac
56127 + test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
56128 +
56129 +_ASEOF
56130 +}; then
56131 + break
56132 +fi
56133 +
56134 +fi
56135 +
56136 + done
56137 +
56138 + if test "x$CONFIG_SHELL" != x; then
56139 + for as_var in BASH_ENV ENV
56140 + do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
56141 + done
56142 + export CONFIG_SHELL
56143 + exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
56144 +fi
56145 +
56146 +
56147 + if test $as_have_required = no; then
56148 + echo This script requires a shell more modern than all the
56149 + echo shells that I found on your system. Please install a
56150 + echo modern shell, or manually run the script under such a
56151 + echo shell if you do have one.
56152 + { (exit 1); exit 1; }
56153 +fi
56154 +
56155 +
56156 +fi
56157 +
56158 +fi
56159 +
56160 +
56161 +
56162 +(eval "as_func_return () {
56163 + (exit \$1)
56164 +}
56165 +as_func_success () {
56166 + as_func_return 0
56167 +}
56168 +as_func_failure () {
56169 + as_func_return 1
56170 +}
56171 +as_func_ret_success () {
56172 + return 0
56173 +}
56174 +as_func_ret_failure () {
56175 + return 1
56176 +}
56177 +
56178 +exitcode=0
56179 +if as_func_success; then
56180 + :
56181 +else
56182 + exitcode=1
56183 + echo as_func_success failed.
56184 +fi
56185 +
56186 +if as_func_failure; then
56187 + exitcode=1
56188 + echo as_func_failure succeeded.
56189 +fi
56190 +
56191 +if as_func_ret_success; then
56192 + :
56193 +else
56194 + exitcode=1
56195 + echo as_func_ret_success failed.
56196 +fi
56197 +
56198 +if as_func_ret_failure; then
56199 + exitcode=1
56200 + echo as_func_ret_failure succeeded.
56201 +fi
56202 +
56203 +if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
56204 + :
56205 +else
56206 + exitcode=1
56207 + echo positional parameters were not saved.
56208 +fi
56209 +
56210 +test \$exitcode = 0") || {
56211 + echo No shell found that supports shell functions.
56212 + echo Please tell autoconf@gnu.org about your system,
56213 + echo including any error possibly output before this
56214 + echo message
56215 +}
56216 +
56217 +
56218 +
56219 + as_lineno_1=$LINENO
56220 + as_lineno_2=$LINENO
56221 + test "x$as_lineno_1" != "x$as_lineno_2" &&
56222 + test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
56223
56224 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
56225 # uniformly replaced by the line number. The first 'sed' inserts a
56226 - # line-number line before each line; the second 'sed' does the real
56227 - # work. The second script uses 'N' to pair each line-number line
56228 - # with the numbered line, and appends trailing '-' during
56229 - # substitution so that $LINENO is not a special case at line end.
56230 + # line-number line after each line using $LINENO; the second 'sed'
56231 + # does the real work. The second script uses 'N' to pair each
56232 + # line-number line with the line containing $LINENO, and appends
56233 + # trailing '-' during substitution so that $LINENO is not a special
56234 + # case at line end.
56235 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
56236 - # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
56237 - sed '=' <$as_myself |
56238 + # scripts with optimization help from Paolo Bonzini. Blame Lee
56239 + # E. McMahon (1931-1989) for sed's syntax. :-)
56240 + sed -n '
56241 + p
56242 + /[$]LINENO/=
56243 + ' <$as_myself |
56244 sed '
56245 + s/[$]LINENO.*/&-/
56246 + t lineno
56247 + b
56248 + :lineno
56249 N
56250 - s,$,-,
56251 - : loop
56252 - s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
56253 + :loop
56254 + s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
56255 t loop
56256 - s,-$,,
56257 - s,^['$as_cr_digits']*\n,,
56258 + s/-\n.*//
56259 ' >$as_me.lineno &&
56260 - chmod +x $as_me.lineno ||
56261 + chmod +x "$as_me.lineno" ||
56262 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
56263 { (exit 1); exit 1; }; }
56264
56265 # Don't try to exec as it changes $[0], causing all sort of problems
56266 # (the dirname of $[0] is not the place where we might find the
56267 - # original and so on. Autoconf is especially sensible to this).
56268 - . ./$as_me.lineno
56269 + # original and so on. Autoconf is especially sensitive to this).
56270 + . "./$as_me.lineno"
56271 # Exit status is that of the last command.
56272 exit
56273 }
56274
56275
56276 -case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
56277 - *c*,-n*) ECHO_N= ECHO_C='
56278 -' ECHO_T=' ' ;;
56279 - *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
56280 - *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
56281 +if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
56282 + as_dirname=dirname
56283 +else
56284 + as_dirname=false
56285 +fi
56286 +
56287 +ECHO_C= ECHO_N= ECHO_T=
56288 +case `echo -n x` in
56289 +-n*)
56290 + case `echo 'x\c'` in
56291 + *c*) ECHO_T=' ';; # ECHO_T is single tab character.
56292 + *) ECHO_C='\c';;
56293 + esac;;
56294 +*)
56295 + ECHO_N='-n';;
56296 esac
56297
56298 -if expr a : '\(a\)' >/dev/null 2>&1; then
56299 +if expr a : '\(a\)' >/dev/null 2>&1 &&
56300 + test "X`expr 00001 : '.*\(...\)'`" = X001; then
56301 as_expr=expr
56302 else
56303 as_expr=false
56304 fi
56305
56306 rm -f conf$$ conf$$.exe conf$$.file
56307 +if test -d conf$$.dir; then
56308 + rm -f conf$$.dir/conf$$.file
56309 +else
56310 + rm -f conf$$.dir
56311 + mkdir conf$$.dir
56312 +fi
56313 echo >conf$$.file
56314 if ln -s conf$$.file conf$$ 2>/dev/null; then
56315 - # We could just check for DJGPP; but this test a) works b) is more generic
56316 - # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
56317 - if test -f conf$$.exe; then
56318 - # Don't use ln at all; we don't have any links
56319 + as_ln_s='ln -s'
56320 + # ... but there are two gotchas:
56321 + # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
56322 + # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
56323 + # In both cases, we have to default to `cp -p'.
56324 + ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
56325 as_ln_s='cp -p'
56326 - else
56327 - as_ln_s='ln -s'
56328 - fi
56329 elif ln conf$$.file conf$$ 2>/dev/null; then
56330 as_ln_s=ln
56331 else
56332 as_ln_s='cp -p'
56333 fi
56334 -rm -f conf$$ conf$$.exe conf$$.file
56335 +rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
56336 +rmdir conf$$.dir 2>/dev/null
56337
56338 if mkdir -p . 2>/dev/null; then
56339 as_mkdir_p=:
56340 @@ -222,7 +518,28 @@ else
56341 as_mkdir_p=false
56342 fi
56343
56344 -as_executable_p="test -f"
56345 +if test -x / >/dev/null 2>&1; then
56346 + as_test_x='test -x'
56347 +else
56348 + if ls -dL / >/dev/null 2>&1; then
56349 + as_ls_L_option=L
56350 + else
56351 + as_ls_L_option=
56352 + fi
56353 + as_test_x='
56354 + eval sh -c '\''
56355 + if test -d "$1"; then
56356 + test -d "$1/.";
56357 + else
56358 + case $1 in
56359 + -*)set "./$1";;
56360 + esac;
56361 + case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
56362 + ???[sx]*):;;*)false;;esac;fi
56363 + '\'' sh
56364 + '
56365 +fi
56366 +as_executable_p=$as_test_x
56367
56368 # Sed expression to map a string onto a valid CPP name.
56369 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
56370 @@ -231,39 +548,27 @@ as_tr_cpp="eval sed 'y%*$as_cr_letters%P
56371 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
56372
56373
56374 -# IFS
56375 -# We need space, tab and new line, in precisely that order.
56376 -as_nl='
56377 -'
56378 -IFS=" $as_nl"
56379 -
56380 -# CDPATH.
56381 -$as_unset CDPATH
56382
56383 +exec 7<&0 </dev/null 6>&1
56384
56385 # Name of the host.
56386 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
56387 # so uname gets run too.
56388 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
56389
56390 -exec 6>&1
56391 -
56392 #
56393 # Initializations.
56394 #
56395 ac_default_prefix=/usr/local
56396 +ac_clean_files=
56397 ac_config_libobj_dir=.
56398 +LIBOBJS=
56399 cross_compiling=no
56400 subdirs=
56401 MFLAGS=
56402 MAKEFLAGS=
56403 SHELL=${CONFIG_SHELL-/bin/sh}
56404
56405 -# Maximum number of lines to put in a shell here document.
56406 -# This variable seems obsolete. It should probably be removed, and
56407 -# only ac_max_sed_lines should be used.
56408 -: ${ac_max_here_lines=38}
56409 -
56410 # Identity of this package.
56411 PACKAGE_NAME=
56412 PACKAGE_TARNAME=
56413 @@ -275,42 +580,191 @@ ac_unique_file="ldmain.c"
56414 # Factoring default headers for most tests.
56415 ac_includes_default="\
56416 #include <stdio.h>
56417 -#if HAVE_SYS_TYPES_H
56418 +#ifdef HAVE_SYS_TYPES_H
56419 # include <sys/types.h>
56420 #endif
56421 -#if HAVE_SYS_STAT_H
56422 +#ifdef HAVE_SYS_STAT_H
56423 # include <sys/stat.h>
56424 #endif
56425 -#if STDC_HEADERS
56426 +#ifdef STDC_HEADERS
56427 # include <stdlib.h>
56428 # include <stddef.h>
56429 #else
56430 -# if HAVE_STDLIB_H
56431 +# ifdef HAVE_STDLIB_H
56432 # include <stdlib.h>
56433 # endif
56434 #endif
56435 -#if HAVE_STRING_H
56436 -# if !STDC_HEADERS && HAVE_MEMORY_H
56437 +#ifdef HAVE_STRING_H
56438 +# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
56439 # include <memory.h>
56440 # endif
56441 # include <string.h>
56442 #endif
56443 -#if HAVE_STRINGS_H
56444 +#ifdef HAVE_STRINGS_H
56445 # include <strings.h>
56446 #endif
56447 -#if HAVE_INTTYPES_H
56448 +#ifdef HAVE_INTTYPES_H
56449 # include <inttypes.h>
56450 -#else
56451 -# if HAVE_STDINT_H
56452 -# include <stdint.h>
56453 -# endif
56454 #endif
56455 -#if HAVE_UNISTD_H
56456 +#ifdef HAVE_STDINT_H
56457 +# include <stdint.h>
56458 +#endif
56459 +#ifdef HAVE_UNISTD_H
56460 # include <unistd.h>
56461 #endif"
56462
56463 -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'
56464 +ac_subst_vars='SHELL
56465 +PATH_SEPARATOR
56466 +PACKAGE_NAME
56467 +PACKAGE_TARNAME
56468 +PACKAGE_VERSION
56469 +PACKAGE_STRING
56470 +PACKAGE_BUGREPORT
56471 +exec_prefix
56472 +prefix
56473 +program_transform_name
56474 +bindir
56475 +sbindir
56476 +libexecdir
56477 +datarootdir
56478 +datadir
56479 +sysconfdir
56480 +sharedstatedir
56481 +localstatedir
56482 +includedir
56483 +oldincludedir
56484 +docdir
56485 +infodir
56486 +htmldir
56487 +dvidir
56488 +pdfdir
56489 +psdir
56490 +libdir
56491 +localedir
56492 +mandir
56493 +DEFS
56494 +ECHO_C
56495 +ECHO_N
56496 +ECHO_T
56497 +LIBS
56498 +build_alias
56499 +host_alias
56500 +target_alias
56501 +build
56502 +build_cpu
56503 +build_vendor
56504 +build_os
56505 +host
56506 +host_cpu
56507 +host_vendor
56508 +host_os
56509 +target
56510 +target_cpu
56511 +target_vendor
56512 +target_os
56513 +CC
56514 +CFLAGS
56515 +LDFLAGS
56516 +CPPFLAGS
56517 +ac_ct_CC
56518 +EXEEXT
56519 +OBJEXT
56520 +INSTALL_PROGRAM
56521 +INSTALL_SCRIPT
56522 +INSTALL_DATA
56523 +CYGPATH_W
56524 +PACKAGE
56525 +VERSION
56526 +ACLOCAL
56527 +AUTOCONF
56528 +AUTOMAKE
56529 +AUTOHEADER
56530 +MAKEINFO
56531 +install_sh
56532 +STRIP
56533 +INSTALL_STRIP_PROGRAM
56534 +mkdir_p
56535 +AWK
56536 +SET_MAKE
56537 +am__leading_dot
56538 +AMTAR
56539 +am__tar
56540 +am__untar
56541 +DEPDIR
56542 +am__include
56543 +am__quote
56544 +AMDEP_TRUE
56545 +AMDEP_FALSE
56546 +AMDEPBACKSLASH
56547 +CCDEPMODE
56548 +am__fastdepCC_TRUE
56549 +am__fastdepCC_FALSE
56550 +LN_S
56551 +RANLIB
56552 +LIBTOOL
56553 +use_sysroot
56554 +TARGET_SYSTEM_ROOT
56555 +TARGET_SYSTEM_ROOT_DEFINE
56556 +WARN_CFLAGS
56557 +NO_WERROR
56558 +CPP
56559 +GREP
56560 +EGREP
56561 +ALLOCA
56562 +USE_NLS
56563 +MSGFMT
56564 +GMSGFMT
56565 +XGETTEXT
56566 +USE_INCLUDED_LIBINTL
56567 +CATALOGS
56568 +CATOBJEXT
56569 +DATADIRNAME
56570 +GMOFILES
56571 +INSTOBJEXT
56572 +INTLDEPS
56573 +INTLLIBS
56574 +INTLOBJS
56575 +POFILES
56576 +POSUB
56577 +INCLUDE_LOCALE_H
56578 +GT_NO
56579 +GT_YES
56580 +MKINSTALLDIRS
56581 +l
56582 +YACC
56583 +YFLAGS
56584 +LEX
56585 +LEX_OUTPUT_ROOT
56586 +LEXLIB
56587 +MAINTAINER_MODE_TRUE
56588 +MAINTAINER_MODE_FALSE
56589 +MAINT
56590 +HDEFINES
56591 +HOSTING_CRT0
56592 +HOSTING_LIBS
56593 +NATIVE_LIB_DIRS
56594 +STRINGIFY
56595 +EMUL
56596 +EMULATION_OFILES
56597 +EMUL_EXTRA_OFILES
56598 +LIB_PATH
56599 +EMULATION_LIBPATH
56600 +TESTBFDLIB
56601 +LIBOBJS
56602 +LTLIBOBJS'
56603 ac_subst_files='TDIRS'
56604 + ac_precious_vars='build_alias
56605 +host_alias
56606 +target_alias
56607 +CC
56608 +CFLAGS
56609 +LDFLAGS
56610 +LIBS
56611 +CPPFLAGS
56612 +CPP
56613 +YACC
56614 +YFLAGS'
56615 +
56616
56617 # Initialize some variables set by options.
56618 ac_init_help=
56619 @@ -337,34 +791,48 @@ x_libraries=NONE
56620 # and all the variables that are supposed to be based on exec_prefix
56621 # by default will actually change.
56622 # Use braces instead of parens because sh, perl, etc. also accept them.
56623 +# (The list follows the same order as the GNU Coding Standards.)
56624 bindir='${exec_prefix}/bin'
56625 sbindir='${exec_prefix}/sbin'
56626 libexecdir='${exec_prefix}/libexec'
56627 -datadir='${prefix}/share'
56628 +datarootdir='${prefix}/share'
56629 +datadir='${datarootdir}'
56630 sysconfdir='${prefix}/etc'
56631 sharedstatedir='${prefix}/com'
56632 localstatedir='${prefix}/var'
56633 -libdir='${exec_prefix}/lib'
56634 includedir='${prefix}/include'
56635 oldincludedir='/usr/include'
56636 -infodir='${prefix}/info'
56637 -mandir='${prefix}/man'
56638 +docdir='${datarootdir}/doc/${PACKAGE}'
56639 +infodir='${datarootdir}/info'
56640 +htmldir='${docdir}'
56641 +dvidir='${docdir}'
56642 +pdfdir='${docdir}'
56643 +psdir='${docdir}'
56644 +libdir='${exec_prefix}/lib'
56645 +localedir='${datarootdir}/locale'
56646 +mandir='${datarootdir}/man'
56647
56648 ac_prev=
56649 +ac_dashdash=
56650 for ac_option
56651 do
56652 # If the previous option needs an argument, assign it.
56653 if test -n "$ac_prev"; then
56654 - eval "$ac_prev=\$ac_option"
56655 + eval $ac_prev=\$ac_option
56656 ac_prev=
56657 continue
56658 fi
56659
56660 - ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
56661 + case $ac_option in
56662 + *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
56663 + *) ac_optarg=yes ;;
56664 + esac
56665
56666 # Accept the important Cygnus configure options, so we can diagnose typos.
56667
56668 - case $ac_option in
56669 + case $ac_dashdash$ac_option in
56670 + --)
56671 + ac_dashdash=yes ;;
56672
56673 -bindir | --bindir | --bindi | --bind | --bin | --bi)
56674 ac_prev=bindir ;;
56675 @@ -386,33 +854,45 @@ do
56676 --config-cache | -C)
56677 cache_file=config.cache ;;
56678
56679 - -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
56680 + -datadir | --datadir | --datadi | --datad)
56681 ac_prev=datadir ;;
56682 - -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
56683 - | --da=*)
56684 + -datadir=* | --datadir=* | --datadi=* | --datad=*)
56685 datadir=$ac_optarg ;;
56686
56687 + -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
56688 + | --dataroo | --dataro | --datar)
56689 + ac_prev=datarootdir ;;
56690 + -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
56691 + | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
56692 + datarootdir=$ac_optarg ;;
56693 +
56694 -disable-* | --disable-*)
56695 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
56696 # Reject names that are not valid shell variable names.
56697 - expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
56698 + expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
56699 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
56700 { (exit 1); exit 1; }; }
56701 - ac_feature=`echo $ac_feature | sed 's/-/_/g'`
56702 - eval "enable_$ac_feature=no" ;;
56703 + ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
56704 + eval enable_$ac_feature=no ;;
56705 +
56706 + -docdir | --docdir | --docdi | --doc | --do)
56707 + ac_prev=docdir ;;
56708 + -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
56709 + docdir=$ac_optarg ;;
56710 +
56711 + -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
56712 + ac_prev=dvidir ;;
56713 + -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
56714 + dvidir=$ac_optarg ;;
56715
56716 -enable-* | --enable-*)
56717 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
56718 # Reject names that are not valid shell variable names.
56719 - expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
56720 + expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
56721 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
56722 { (exit 1); exit 1; }; }
56723 - ac_feature=`echo $ac_feature | sed 's/-/_/g'`
56724 - case $ac_option in
56725 - *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
56726 - *) ac_optarg=yes ;;
56727 - esac
56728 - eval "enable_$ac_feature='$ac_optarg'" ;;
56729 + ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
56730 + eval enable_$ac_feature=\$ac_optarg ;;
56731
56732 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
56733 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
56734 @@ -439,6 +919,12 @@ do
56735 -host=* | --host=* | --hos=* | --ho=*)
56736 host_alias=$ac_optarg ;;
56737
56738 + -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
56739 + ac_prev=htmldir ;;
56740 + -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
56741 + | --ht=*)
56742 + htmldir=$ac_optarg ;;
56743 +
56744 -includedir | --includedir | --includedi | --included | --include \
56745 | --includ | --inclu | --incl | --inc)
56746 ac_prev=includedir ;;
56747 @@ -463,13 +949,16 @@ do
56748 | --libexe=* | --libex=* | --libe=*)
56749 libexecdir=$ac_optarg ;;
56750
56751 + -localedir | --localedir | --localedi | --localed | --locale)
56752 + ac_prev=localedir ;;
56753 + -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
56754 + localedir=$ac_optarg ;;
56755 +
56756 -localstatedir | --localstatedir | --localstatedi | --localstated \
56757 - | --localstate | --localstat | --localsta | --localst \
56758 - | --locals | --local | --loca | --loc | --lo)
56759 + | --localstate | --localstat | --localsta | --localst | --locals)
56760 ac_prev=localstatedir ;;
56761 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
56762 - | --localstate=* | --localstat=* | --localsta=* | --localst=* \
56763 - | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
56764 + | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
56765 localstatedir=$ac_optarg ;;
56766
56767 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
56768 @@ -534,6 +1023,16 @@ do
56769 | --progr-tra=* | --program-tr=* | --program-t=*)
56770 program_transform_name=$ac_optarg ;;
56771
56772 + -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
56773 + ac_prev=pdfdir ;;
56774 + -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
56775 + pdfdir=$ac_optarg ;;
56776 +
56777 + -psdir | --psdir | --psdi | --psd | --ps)
56778 + ac_prev=psdir ;;
56779 + -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
56780 + psdir=$ac_optarg ;;
56781 +
56782 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
56783 | -silent | --silent | --silen | --sile | --sil)
56784 silent=yes ;;
56785 @@ -586,24 +1085,20 @@ do
56786 -with-* | --with-*)
56787 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
56788 # Reject names that are not valid shell variable names.
56789 - expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
56790 + expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
56791 { echo "$as_me: error: invalid package name: $ac_package" >&2
56792 { (exit 1); exit 1; }; }
56793 - ac_package=`echo $ac_package| sed 's/-/_/g'`
56794 - case $ac_option in
56795 - *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
56796 - *) ac_optarg=yes ;;
56797 - esac
56798 - eval "with_$ac_package='$ac_optarg'" ;;
56799 + ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
56800 + eval with_$ac_package=\$ac_optarg ;;
56801
56802 -without-* | --without-*)
56803 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
56804 # Reject names that are not valid shell variable names.
56805 - expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
56806 + expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
56807 { echo "$as_me: error: invalid package name: $ac_package" >&2
56808 { (exit 1); exit 1; }; }
56809 - ac_package=`echo $ac_package | sed 's/-/_/g'`
56810 - eval "with_$ac_package=no" ;;
56811 + ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
56812 + eval with_$ac_package=no ;;
56813
56814 --x)
56815 # Obsolete; use --with-x.
56816 @@ -634,8 +1129,7 @@ Try \`$0 --help' for more information."
56817 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
56818 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
56819 { (exit 1); exit 1; }; }
56820 - ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
56821 - eval "$ac_envvar='$ac_optarg'"
56822 + eval $ac_envvar=\$ac_optarg
56823 export $ac_envvar ;;
56824
56825 *)
56826 @@ -655,27 +1149,19 @@ if test -n "$ac_prev"; then
56827 { (exit 1); exit 1; }; }
56828 fi
56829
56830 -# Be sure to have absolute paths.
56831 -for ac_var in exec_prefix prefix
56832 +# Be sure to have absolute directory names.
56833 +for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
56834 + datadir sysconfdir sharedstatedir localstatedir includedir \
56835 + oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
56836 + libdir localedir mandir
56837 do
56838 - eval ac_val=$`echo $ac_var`
56839 + eval ac_val=\$$ac_var
56840 case $ac_val in
56841 - [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
56842 - *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
56843 - { (exit 1); exit 1; }; };;
56844 - esac
56845 -done
56846 -
56847 -# Be sure to have absolute paths.
56848 -for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
56849 - localstatedir libdir includedir oldincludedir infodir mandir
56850 -do
56851 - eval ac_val=$`echo $ac_var`
56852 - case $ac_val in
56853 - [\\/$]* | ?:[\\/]* ) ;;
56854 - *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
56855 - { (exit 1); exit 1; }; };;
56856 + [\\/$]* | ?:[\\/]* ) continue;;
56857 + NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
56858 esac
56859 + { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
56860 + { (exit 1); exit 1; }; }
56861 done
56862
56863 # There might be people who depend on the old broken behavior: `$host'
56864 @@ -702,74 +1188,76 @@ test -n "$host_alias" && ac_tool_prefix=
56865 test "$silent" = yes && exec 6>/dev/null
56866
56867
56868 +ac_pwd=`pwd` && test -n "$ac_pwd" &&
56869 +ac_ls_di=`ls -di .` &&
56870 +ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
56871 + { echo "$as_me: error: Working directory cannot be determined" >&2
56872 + { (exit 1); exit 1; }; }
56873 +test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
56874 + { echo "$as_me: error: pwd does not report name of working directory" >&2
56875 + { (exit 1); exit 1; }; }
56876 +
56877 +
56878 # Find the source files, if location was not specified.
56879 if test -z "$srcdir"; then
56880 ac_srcdir_defaulted=yes
56881 - # Try the directory containing this script, then its parent.
56882 - ac_confdir=`(dirname "$0") 2>/dev/null ||
56883 + # Try the directory containing this script, then the parent directory.
56884 + ac_confdir=`$as_dirname -- "$0" ||
56885 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
56886 X"$0" : 'X\(//\)[^/]' \| \
56887 X"$0" : 'X\(//\)$' \| \
56888 - X"$0" : 'X\(/\)' \| \
56889 - . : '\(.\)' 2>/dev/null ||
56890 + X"$0" : 'X\(/\)' \| . 2>/dev/null ||
56891 echo X"$0" |
56892 - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
56893 - /^X\(\/\/\)[^/].*/{ s//\1/; q; }
56894 - /^X\(\/\/\)$/{ s//\1/; q; }
56895 - /^X\(\/\).*/{ s//\1/; q; }
56896 - s/.*/./; q'`
56897 + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
56898 + s//\1/
56899 + q
56900 + }
56901 + /^X\(\/\/\)[^/].*/{
56902 + s//\1/
56903 + q
56904 + }
56905 + /^X\(\/\/\)$/{
56906 + s//\1/
56907 + q
56908 + }
56909 + /^X\(\/\).*/{
56910 + s//\1/
56911 + q
56912 + }
56913 + s/.*/./; q'`
56914 srcdir=$ac_confdir
56915 - if test ! -r $srcdir/$ac_unique_file; then
56916 + if test ! -r "$srcdir/$ac_unique_file"; then
56917 srcdir=..
56918 fi
56919 else
56920 ac_srcdir_defaulted=no
56921 fi
56922 -if test ! -r $srcdir/$ac_unique_file; then
56923 - if test "$ac_srcdir_defaulted" = yes; then
56924 - { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
56925 - { (exit 1); exit 1; }; }
56926 - else
56927 - { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
56928 - { (exit 1); exit 1; }; }
56929 - fi
56930 -fi
56931 -(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
56932 - { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
56933 - { (exit 1); exit 1; }; }
56934 -srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
56935 -ac_env_build_alias_set=${build_alias+set}
56936 -ac_env_build_alias_value=$build_alias
56937 -ac_cv_env_build_alias_set=${build_alias+set}
56938 -ac_cv_env_build_alias_value=$build_alias
56939 -ac_env_host_alias_set=${host_alias+set}
56940 -ac_env_host_alias_value=$host_alias
56941 -ac_cv_env_host_alias_set=${host_alias+set}
56942 -ac_cv_env_host_alias_value=$host_alias
56943 -ac_env_target_alias_set=${target_alias+set}
56944 -ac_env_target_alias_value=$target_alias
56945 -ac_cv_env_target_alias_set=${target_alias+set}
56946 -ac_cv_env_target_alias_value=$target_alias
56947 -ac_env_CC_set=${CC+set}
56948 -ac_env_CC_value=$CC
56949 -ac_cv_env_CC_set=${CC+set}
56950 -ac_cv_env_CC_value=$CC
56951 -ac_env_CFLAGS_set=${CFLAGS+set}
56952 -ac_env_CFLAGS_value=$CFLAGS
56953 -ac_cv_env_CFLAGS_set=${CFLAGS+set}
56954 -ac_cv_env_CFLAGS_value=$CFLAGS
56955 -ac_env_LDFLAGS_set=${LDFLAGS+set}
56956 -ac_env_LDFLAGS_value=$LDFLAGS
56957 -ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
56958 -ac_cv_env_LDFLAGS_value=$LDFLAGS
56959 -ac_env_CPPFLAGS_set=${CPPFLAGS+set}
56960 -ac_env_CPPFLAGS_value=$CPPFLAGS
56961 -ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
56962 -ac_cv_env_CPPFLAGS_value=$CPPFLAGS
56963 -ac_env_CPP_set=${CPP+set}
56964 -ac_env_CPP_value=$CPP
56965 -ac_cv_env_CPP_set=${CPP+set}
56966 -ac_cv_env_CPP_value=$CPP
56967 +if test ! -r "$srcdir/$ac_unique_file"; then
56968 + test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
56969 + { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
56970 + { (exit 1); exit 1; }; }
56971 +fi
56972 +ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
56973 +ac_abs_confdir=`(
56974 + cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
56975 + { (exit 1); exit 1; }; }
56976 + pwd)`
56977 +# When building in place, set srcdir=.
56978 +if test "$ac_abs_confdir" = "$ac_pwd"; then
56979 + srcdir=.
56980 +fi
56981 +# Remove unnecessary trailing slashes from srcdir.
56982 +# Double slashes in file names in object file debugging info
56983 +# mess up M-x gdb in Emacs.
56984 +case $srcdir in
56985 +*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
56986 +esac
56987 +for ac_var in $ac_precious_vars; do
56988 + eval ac_env_${ac_var}_set=\${${ac_var}+set}
56989 + eval ac_env_${ac_var}_value=\$${ac_var}
56990 + eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
56991 + eval ac_cv_env_${ac_var}_value=\$${ac_var}
56992 +done
56993
56994 #
56995 # Report the --help message.
56996 @@ -798,9 +1286,6 @@ Configuration:
56997 -n, --no-create do not create output files
56998 --srcdir=DIR find the sources in DIR [configure dir or \`..']
56999
57000 -_ACEOF
57001 -
57002 - cat <<_ACEOF
57003 Installation directories:
57004 --prefix=PREFIX install architecture-independent files in PREFIX
57005 [$ac_default_prefix]
57006 @@ -818,15 +1303,22 @@ Fine tuning of the installation director
57007 --bindir=DIR user executables [EPREFIX/bin]
57008 --sbindir=DIR system admin executables [EPREFIX/sbin]
57009 --libexecdir=DIR program executables [EPREFIX/libexec]
57010 - --datadir=DIR read-only architecture-independent data [PREFIX/share]
57011 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
57012 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
57013 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
57014 --libdir=DIR object code libraries [EPREFIX/lib]
57015 --includedir=DIR C header files [PREFIX/include]
57016 --oldincludedir=DIR C header files for non-gcc [/usr/include]
57017 - --infodir=DIR info documentation [PREFIX/info]
57018 - --mandir=DIR man documentation [PREFIX/man]
57019 + --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
57020 + --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
57021 + --infodir=DIR info documentation [DATAROOTDIR/info]
57022 + --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
57023 + --mandir=DIR man documentation [DATAROOTDIR/man]
57024 + --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
57025 + --htmldir=DIR html documentation [DOCDIR]
57026 + --dvidir=DIR dvi documentation [DOCDIR]
57027 + --pdfdir=DIR pdf documentation [DOCDIR]
57028 + --psdir=DIR ps documentation [DOCDIR]
57029 _ACEOF
57030
57031 cat <<\_ACEOF
57032 @@ -878,126 +1370,100 @@ Some influential environment variables:
57033 CFLAGS C compiler flags
57034 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
57035 nonstandard directory <lib dir>
57036 - CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
57037 - headers in a nonstandard directory <include dir>
57038 + LIBS libraries to pass to the linker, e.g. -l<library>
57039 + CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
57040 + you have headers in a nonstandard directory <include dir>
57041 CPP C preprocessor
57042 + YACC The `Yet Another C Compiler' implementation to use. Defaults to
57043 + the first program found out of: `bison -y', `byacc', `yacc'.
57044 + YFLAGS The list of arguments that will be passed by default to $YACC.
57045 + This script will default YFLAGS to the empty string to avoid a
57046 + default value of `-d' given by some make applications.
57047
57048 Use these variables to override the choices made by `configure' or to help
57049 it to find libraries and programs with nonstandard names/locations.
57050
57051 _ACEOF
57052 +ac_status=$?
57053 fi
57054
57055 if test "$ac_init_help" = "recursive"; then
57056 # If there are subdirs, report their specific --help.
57057 - ac_popdir=`pwd`
57058 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
57059 - test -d $ac_dir || continue
57060 + test -d "$ac_dir" || continue
57061 ac_builddir=.
57062
57063 -if test "$ac_dir" != .; then
57064 +case "$ac_dir" in
57065 +.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
57066 +*)
57067 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
57068 - # A "../" for each directory in $ac_dir_suffix.
57069 - ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
57070 -else
57071 - ac_dir_suffix= ac_top_builddir=
57072 -fi
57073 + # A ".." for each directory in $ac_dir_suffix.
57074 + ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
57075 + case $ac_top_builddir_sub in
57076 + "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
57077 + *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
57078 + esac ;;
57079 +esac
57080 +ac_abs_top_builddir=$ac_pwd
57081 +ac_abs_builddir=$ac_pwd$ac_dir_suffix
57082 +# for backward compatibility:
57083 +ac_top_builddir=$ac_top_build_prefix
57084
57085 case $srcdir in
57086 - .) # No --srcdir option. We are building in place.
57087 + .) # We are building in place.
57088 ac_srcdir=.
57089 - if test -z "$ac_top_builddir"; then
57090 - ac_top_srcdir=.
57091 - else
57092 - ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
57093 - fi ;;
57094 - [\\/]* | ?:[\\/]* ) # Absolute path.
57095 + ac_top_srcdir=$ac_top_builddir_sub
57096 + ac_abs_top_srcdir=$ac_pwd ;;
57097 + [\\/]* | ?:[\\/]* ) # Absolute name.
57098 ac_srcdir=$srcdir$ac_dir_suffix;
57099 - ac_top_srcdir=$srcdir ;;
57100 - *) # Relative path.
57101 - ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
57102 - ac_top_srcdir=$ac_top_builddir$srcdir ;;
57103 -esac
57104 -
57105 -# Do not use `cd foo && pwd` to compute absolute paths, because
57106 -# the directories may not exist.
57107 -case `pwd` in
57108 -.) ac_abs_builddir="$ac_dir";;
57109 -*)
57110 - case "$ac_dir" in
57111 - .) ac_abs_builddir=`pwd`;;
57112 - [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
57113 - *) ac_abs_builddir=`pwd`/"$ac_dir";;
57114 - esac;;
57115 -esac
57116 -case $ac_abs_builddir in
57117 -.) ac_abs_top_builddir=${ac_top_builddir}.;;
57118 -*)
57119 - case ${ac_top_builddir}. in
57120 - .) ac_abs_top_builddir=$ac_abs_builddir;;
57121 - [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
57122 - *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
57123 - esac;;
57124 -esac
57125 -case $ac_abs_builddir in
57126 -.) ac_abs_srcdir=$ac_srcdir;;
57127 -*)
57128 - case $ac_srcdir in
57129 - .) ac_abs_srcdir=$ac_abs_builddir;;
57130 - [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
57131 - *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
57132 - esac;;
57133 -esac
57134 -case $ac_abs_builddir in
57135 -.) ac_abs_top_srcdir=$ac_top_srcdir;;
57136 -*)
57137 - case $ac_top_srcdir in
57138 - .) ac_abs_top_srcdir=$ac_abs_builddir;;
57139 - [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
57140 - *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
57141 - esac;;
57142 -esac
57143 -
57144 - cd $ac_dir
57145 - # Check for guested configure; otherwise get Cygnus style configure.
57146 - if test -f $ac_srcdir/configure.gnu; then
57147 - echo
57148 - $SHELL $ac_srcdir/configure.gnu --help=recursive
57149 - elif test -f $ac_srcdir/configure; then
57150 - echo
57151 - $SHELL $ac_srcdir/configure --help=recursive
57152 - elif test -f $ac_srcdir/configure.ac ||
57153 - test -f $ac_srcdir/configure.in; then
57154 - echo
57155 - $ac_configure --help
57156 + ac_top_srcdir=$srcdir
57157 + ac_abs_top_srcdir=$srcdir ;;
57158 + *) # Relative name.
57159 + ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
57160 + ac_top_srcdir=$ac_top_build_prefix$srcdir
57161 + ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
57162 +esac
57163 +ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
57164 +
57165 + cd "$ac_dir" || { ac_status=$?; continue; }
57166 + # Check for guested configure.
57167 + if test -f "$ac_srcdir/configure.gnu"; then
57168 + echo &&
57169 + $SHELL "$ac_srcdir/configure.gnu" --help=recursive
57170 + elif test -f "$ac_srcdir/configure"; then
57171 + echo &&
57172 + $SHELL "$ac_srcdir/configure" --help=recursive
57173 else
57174 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
57175 - fi
57176 - cd $ac_popdir
57177 + fi || ac_status=$?
57178 + cd "$ac_pwd" || { ac_status=$?; break; }
57179 done
57180 fi
57181
57182 -test -n "$ac_init_help" && exit 0
57183 +test -n "$ac_init_help" && exit $ac_status
57184 if $ac_init_version; then
57185 cat <<\_ACEOF
57186 +configure
57187 +generated by GNU Autoconf 2.61
57188
57189 -Copyright (C) 2003 Free Software Foundation, Inc.
57190 +Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
57191 +2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
57192 This configure script is free software; the Free Software Foundation
57193 gives unlimited permission to copy, distribute and modify it.
57194 _ACEOF
57195 - exit 0
57196 + exit
57197 fi
57198 -exec 5>config.log
57199 -cat >&5 <<_ACEOF
57200 +cat >config.log <<_ACEOF
57201 This file contains any messages produced by compilers while
57202 running configure, to aid debugging if configure makes a mistake.
57203
57204 It was created by $as_me, which was
57205 -generated by GNU Autoconf 2.59. Invocation command line was
57206 +generated by GNU Autoconf 2.61. Invocation command line was
57207
57208 $ $0 $@
57209
57210 _ACEOF
57211 +exec 5>>config.log
57212 {
57213 cat <<_ASUNAME
57214 ## --------- ##
57215 @@ -1016,7 +1482,7 @@ uname -v = `(uname -v) 2>/dev/null || ec
57216 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
57217 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
57218 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
57219 -hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
57220 +/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
57221 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
57222 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
57223 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
57224 @@ -1030,6 +1496,7 @@ do
57225 test -z "$as_dir" && as_dir=.
57226 echo "PATH: $as_dir"
57227 done
57228 +IFS=$as_save_IFS
57229
57230 } >&5
57231
57232 @@ -1051,7 +1518,6 @@ _ACEOF
57233 ac_configure_args=
57234 ac_configure_args0=
57235 ac_configure_args1=
57236 -ac_sep=
57237 ac_must_keep_next=false
57238 for ac_pass in 1 2
57239 do
57240 @@ -1062,7 +1528,7 @@ do
57241 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
57242 | -silent | --silent | --silen | --sile | --sil)
57243 continue ;;
57244 - *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
57245 + *\'*)
57246 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
57247 esac
57248 case $ac_pass in
57249 @@ -1084,9 +1550,7 @@ do
57250 -* ) ac_must_keep_next=true ;;
57251 esac
57252 fi
57253 - ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
57254 - # Get rid of the leading space.
57255 - ac_sep=" "
57256 + ac_configure_args="$ac_configure_args '$ac_arg'"
57257 ;;
57258 esac
57259 done
57260 @@ -1097,8 +1561,8 @@ $as_unset ac_configure_args1 || test "${
57261 # When interrupted or exit'd, cleanup temporary files, and complete
57262 # config.log. We remove comments because anyway the quotes in there
57263 # would cause problems or look ugly.
57264 -# WARNING: Be sure not to use single quotes in there, as some shells,
57265 -# such as our DU 5.0 friend, will then `close' the trap.
57266 +# WARNING: Use '\'' to represent an apostrophe within the trap.
57267 +# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
57268 trap 'exit_status=$?
57269 # Save into config.log some information that might help in debugging.
57270 {
57271 @@ -1111,20 +1575,34 @@ trap 'exit_status=$?
57272 _ASBOX
57273 echo
57274 # The following way of writing the cache mishandles newlines in values,
57275 -{
57276 +(
57277 + for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
57278 + eval ac_val=\$$ac_var
57279 + case $ac_val in #(
57280 + *${as_nl}*)
57281 + case $ac_var in #(
57282 + *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
57283 +echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
57284 + esac
57285 + case $ac_var in #(
57286 + _ | IFS | as_nl) ;; #(
57287 + *) $as_unset $ac_var ;;
57288 + esac ;;
57289 + esac
57290 + done
57291 (set) 2>&1 |
57292 - case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
57293 - *ac_space=\ *)
57294 + case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
57295 + *${as_nl}ac_space=\ *)
57296 sed -n \
57297 - "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
57298 - s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
57299 - ;;
57300 + "s/'\''/'\''\\\\'\'''\''/g;
57301 + s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
57302 + ;; #(
57303 *)
57304 - sed -n \
57305 - "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
57306 + sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
57307 ;;
57308 - esac;
57309 -}
57310 + esac |
57311 + sort
57312 +)
57313 echo
57314
57315 cat <<\_ASBOX
57316 @@ -1135,22 +1613,28 @@ _ASBOX
57317 echo
57318 for ac_var in $ac_subst_vars
57319 do
57320 - eval ac_val=$`echo $ac_var`
57321 - echo "$ac_var='"'"'$ac_val'"'"'"
57322 + eval ac_val=\$$ac_var
57323 + case $ac_val in
57324 + *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
57325 + esac
57326 + echo "$ac_var='\''$ac_val'\''"
57327 done | sort
57328 echo
57329
57330 if test -n "$ac_subst_files"; then
57331 cat <<\_ASBOX
57332 -## ------------- ##
57333 -## Output files. ##
57334 -## ------------- ##
57335 +## ------------------- ##
57336 +## File substitutions. ##
57337 +## ------------------- ##
57338 _ASBOX
57339 echo
57340 for ac_var in $ac_subst_files
57341 do
57342 - eval ac_val=$`echo $ac_var`
57343 - echo "$ac_var='"'"'$ac_val'"'"'"
57344 + eval ac_val=\$$ac_var
57345 + case $ac_val in
57346 + *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
57347 + esac
57348 + echo "$ac_var='\''$ac_val'\''"
57349 done | sort
57350 echo
57351 fi
57352 @@ -1162,26 +1646,24 @@ _ASBOX
57353 ## ----------- ##
57354 _ASBOX
57355 echo
57356 - sed "/^$/d" confdefs.h | sort
57357 + cat confdefs.h
57358 echo
57359 fi
57360 test "$ac_signal" != 0 &&
57361 echo "$as_me: caught signal $ac_signal"
57362 echo "$as_me: exit $exit_status"
57363 } >&5
57364 - rm -f core *.core &&
57365 - rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
57366 + rm -f core *.core core.conftest.* &&
57367 + rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
57368 exit $exit_status
57369 - ' 0
57370 +' 0
57371 for ac_signal in 1 2 13 15; do
57372 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
57373 done
57374 ac_signal=0
57375
57376 # confdefs.h avoids OS command line length limits that DEFS can exceed.
57377 -rm -rf conftest* confdefs.h
57378 -# AIX cpp loses on an empty file, so make sure it contains at least a newline.
57379 -echo >confdefs.h
57380 +rm -f -r conftest* confdefs.h
57381
57382 # Predefined preprocessor variables.
57383
57384 @@ -1212,14 +1694,17 @@ _ACEOF
57385
57386 # Let the site file select an alternate cache file if it wants to.
57387 # Prefer explicitly selected file to automatically selected ones.
57388 -if test -z "$CONFIG_SITE"; then
57389 - if test "x$prefix" != xNONE; then
57390 - CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
57391 - else
57392 - CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
57393 - fi
57394 +if test -n "$CONFIG_SITE"; then
57395 + set x "$CONFIG_SITE"
57396 +elif test "x$prefix" != xNONE; then
57397 + set x "$prefix/share/config.site" "$prefix/etc/config.site"
57398 +else
57399 + set x "$ac_default_prefix/share/config.site" \
57400 + "$ac_default_prefix/etc/config.site"
57401 fi
57402 -for ac_site_file in $CONFIG_SITE; do
57403 +shift
57404 +for ac_site_file
57405 +do
57406 if test -r "$ac_site_file"; then
57407 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
57408 echo "$as_me: loading site script $ac_site_file" >&6;}
57409 @@ -1235,8 +1720,8 @@ if test -r "$cache_file"; then
57410 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
57411 echo "$as_me: loading cache $cache_file" >&6;}
57412 case $cache_file in
57413 - [\\/]* | ?:[\\/]* ) . $cache_file;;
57414 - *) . ./$cache_file;;
57415 + [\\/]* | ?:[\\/]* ) . "$cache_file";;
57416 + *) . "./$cache_file";;
57417 esac
57418 fi
57419 else
57420 @@ -1248,12 +1733,11 @@ fi
57421 # Check that the precious variables saved in the cache have kept the same
57422 # value.
57423 ac_cache_corrupted=false
57424 -for ac_var in `(set) 2>&1 |
57425 - sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
57426 +for ac_var in $ac_precious_vars; do
57427 eval ac_old_set=\$ac_cv_env_${ac_var}_set
57428 eval ac_new_set=\$ac_env_${ac_var}_set
57429 - eval ac_old_val="\$ac_cv_env_${ac_var}_value"
57430 - eval ac_new_val="\$ac_env_${ac_var}_value"
57431 + eval ac_old_val=\$ac_cv_env_${ac_var}_value
57432 + eval ac_new_val=\$ac_env_${ac_var}_value
57433 case $ac_old_set,$ac_new_set in
57434 set,)
57435 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
57436 @@ -1278,8 +1762,7 @@ echo "$as_me: current value: $ac_new_v
57437 # Pass precious variables to config.status.
57438 if test "$ac_new_set" = set; then
57439 case $ac_new_val in
57440 - *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
57441 - ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
57442 + *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
57443 *) ac_arg=$ac_var=$ac_new_val ;;
57444 esac
57445 case " $ac_configure_args " in
57446 @@ -1296,12 +1779,6 @@ echo "$as_me: error: run \`make distclea
57447 { (exit 1); exit 1; }; }
57448 fi
57449
57450 -ac_ext=c
57451 -ac_cpp='$CPP $CPPFLAGS'
57452 -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
57453 -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
57454 -ac_compiler_gnu=$ac_cv_c_compiler_gnu
57455 -
57456
57457
57458
57459 @@ -1318,108 +1795,163 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
57460
57461
57462
57463 +ac_ext=c
57464 +ac_cpp='$CPP $CPPFLAGS'
57465 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
57466 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
57467 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
57468
57469
57470
57471 ac_aux_dir=
57472 -for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
57473 - if test -f $ac_dir/install-sh; then
57474 +for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
57475 + if test -f "$ac_dir/install-sh"; then
57476 ac_aux_dir=$ac_dir
57477 ac_install_sh="$ac_aux_dir/install-sh -c"
57478 break
57479 - elif test -f $ac_dir/install.sh; then
57480 + elif test -f "$ac_dir/install.sh"; then
57481 ac_aux_dir=$ac_dir
57482 ac_install_sh="$ac_aux_dir/install.sh -c"
57483 break
57484 - elif test -f $ac_dir/shtool; then
57485 + elif test -f "$ac_dir/shtool"; then
57486 ac_aux_dir=$ac_dir
57487 ac_install_sh="$ac_aux_dir/shtool install -c"
57488 break
57489 fi
57490 done
57491 if test -z "$ac_aux_dir"; then
57492 - { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
57493 -echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
57494 + { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
57495 +echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
57496 { (exit 1); exit 1; }; }
57497 fi
57498 -ac_config_guess="$SHELL $ac_aux_dir/config.guess"
57499 -ac_config_sub="$SHELL $ac_aux_dir/config.sub"
57500 -ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
57501 +
57502 +# These three variables are undocumented and unsupported,
57503 +# and are intended to be withdrawn in a future Autoconf release.
57504 +# They can cause serious problems if a builder's source tree is in a directory
57505 +# whose full name contains unusual characters.
57506 +ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
57507 +ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
57508 +ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
57509 +
57510
57511 # Make sure we can run config.sub.
57512 -$ac_config_sub sun4 >/dev/null 2>&1 ||
57513 - { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
57514 -echo "$as_me: error: cannot run $ac_config_sub" >&2;}
57515 +$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
57516 + { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
57517 +echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
57518 { (exit 1); exit 1; }; }
57519
57520 -echo "$as_me:$LINENO: checking build system type" >&5
57521 -echo $ECHO_N "checking build system type... $ECHO_C" >&6
57522 +{ echo "$as_me:$LINENO: checking build system type" >&5
57523 +echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
57524 if test "${ac_cv_build+set}" = set; then
57525 echo $ECHO_N "(cached) $ECHO_C" >&6
57526 else
57527 - ac_cv_build_alias=$build_alias
57528 -test -z "$ac_cv_build_alias" &&
57529 - ac_cv_build_alias=`$ac_config_guess`
57530 -test -z "$ac_cv_build_alias" &&
57531 + ac_build_alias=$build_alias
57532 +test "x$ac_build_alias" = x &&
57533 + ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
57534 +test "x$ac_build_alias" = x &&
57535 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
57536 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
57537 { (exit 1); exit 1; }; }
57538 -ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
57539 - { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
57540 -echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
57541 +ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
57542 + { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
57543 +echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
57544 { (exit 1); exit 1; }; }
57545
57546 fi
57547 -echo "$as_me:$LINENO: result: $ac_cv_build" >&5
57548 -echo "${ECHO_T}$ac_cv_build" >&6
57549 +{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
57550 +echo "${ECHO_T}$ac_cv_build" >&6; }
57551 +case $ac_cv_build in
57552 +*-*-*) ;;
57553 +*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
57554 +echo "$as_me: error: invalid value of canonical build" >&2;}
57555 + { (exit 1); exit 1; }; };;
57556 +esac
57557 build=$ac_cv_build
57558 -build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
57559 -build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
57560 -build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
57561 +ac_save_IFS=$IFS; IFS='-'
57562 +set x $ac_cv_build
57563 +shift
57564 +build_cpu=$1
57565 +build_vendor=$2
57566 +shift; shift
57567 +# Remember, the first character of IFS is used to create $*,
57568 +# except with old shells:
57569 +build_os=$*
57570 +IFS=$ac_save_IFS
57571 +case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
57572
57573
57574 -echo "$as_me:$LINENO: checking host system type" >&5
57575 -echo $ECHO_N "checking host system type... $ECHO_C" >&6
57576 +{ echo "$as_me:$LINENO: checking host system type" >&5
57577 +echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
57578 if test "${ac_cv_host+set}" = set; then
57579 echo $ECHO_N "(cached) $ECHO_C" >&6
57580 else
57581 - ac_cv_host_alias=$host_alias
57582 -test -z "$ac_cv_host_alias" &&
57583 - ac_cv_host_alias=$ac_cv_build_alias
57584 -ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
57585 - { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
57586 -echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
57587 + if test "x$host_alias" = x; then
57588 + ac_cv_host=$ac_cv_build
57589 +else
57590 + ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
57591 + { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
57592 +echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
57593 { (exit 1); exit 1; }; }
57594 +fi
57595
57596 fi
57597 -echo "$as_me:$LINENO: result: $ac_cv_host" >&5
57598 -echo "${ECHO_T}$ac_cv_host" >&6
57599 +{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
57600 +echo "${ECHO_T}$ac_cv_host" >&6; }
57601 +case $ac_cv_host in
57602 +*-*-*) ;;
57603 +*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
57604 +echo "$as_me: error: invalid value of canonical host" >&2;}
57605 + { (exit 1); exit 1; }; };;
57606 +esac
57607 host=$ac_cv_host
57608 -host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
57609 -host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
57610 -host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
57611 +ac_save_IFS=$IFS; IFS='-'
57612 +set x $ac_cv_host
57613 +shift
57614 +host_cpu=$1
57615 +host_vendor=$2
57616 +shift; shift
57617 +# Remember, the first character of IFS is used to create $*,
57618 +# except with old shells:
57619 +host_os=$*
57620 +IFS=$ac_save_IFS
57621 +case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
57622
57623
57624 -echo "$as_me:$LINENO: checking target system type" >&5
57625 -echo $ECHO_N "checking target system type... $ECHO_C" >&6
57626 +{ echo "$as_me:$LINENO: checking target system type" >&5
57627 +echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
57628 if test "${ac_cv_target+set}" = set; then
57629 echo $ECHO_N "(cached) $ECHO_C" >&6
57630 else
57631 - ac_cv_target_alias=$target_alias
57632 -test "x$ac_cv_target_alias" = "x" &&
57633 - ac_cv_target_alias=$ac_cv_host_alias
57634 -ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
57635 - { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
57636 -echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
57637 + if test "x$target_alias" = x; then
57638 + ac_cv_target=$ac_cv_host
57639 +else
57640 + ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
57641 + { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
57642 +echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
57643 { (exit 1); exit 1; }; }
57644 +fi
57645
57646 fi
57647 -echo "$as_me:$LINENO: result: $ac_cv_target" >&5
57648 -echo "${ECHO_T}$ac_cv_target" >&6
57649 +{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
57650 +echo "${ECHO_T}$ac_cv_target" >&6; }
57651 +case $ac_cv_target in
57652 +*-*-*) ;;
57653 +*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
57654 +echo "$as_me: error: invalid value of canonical target" >&2;}
57655 + { (exit 1); exit 1; }; };;
57656 +esac
57657 target=$ac_cv_target
57658 -target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
57659 -target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
57660 -target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
57661 +ac_save_IFS=$IFS; IFS='-'
57662 +set x $ac_cv_target
57663 +shift
57664 +target_cpu=$1
57665 +target_vendor=$2
57666 +shift; shift
57667 +# Remember, the first character of IFS is used to create $*,
57668 +# except with old shells:
57669 +target_os=$*
57670 +IFS=$ac_save_IFS
57671 +case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
57672
57673
57674 # The aliases save the names the user supplied, while $host etc.
57675 @@ -1436,8 +1968,8 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
57676 if test -n "$ac_tool_prefix"; then
57677 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
57678 set dummy ${ac_tool_prefix}gcc; ac_word=$2
57679 -echo "$as_me:$LINENO: checking for $ac_word" >&5
57680 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
57681 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
57682 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
57683 if test "${ac_cv_prog_CC+set}" = set; then
57684 echo $ECHO_N "(cached) $ECHO_C" >&6
57685 else
57686 @@ -1450,32 +1982,34 @@ do
57687 IFS=$as_save_IFS
57688 test -z "$as_dir" && as_dir=.
57689 for ac_exec_ext in '' $ac_executable_extensions; do
57690 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57691 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
57692 ac_cv_prog_CC="${ac_tool_prefix}gcc"
57693 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
57694 break 2
57695 fi
57696 done
57697 done
57698 +IFS=$as_save_IFS
57699
57700 fi
57701 fi
57702 CC=$ac_cv_prog_CC
57703 if test -n "$CC"; then
57704 - echo "$as_me:$LINENO: result: $CC" >&5
57705 -echo "${ECHO_T}$CC" >&6
57706 + { echo "$as_me:$LINENO: result: $CC" >&5
57707 +echo "${ECHO_T}$CC" >&6; }
57708 else
57709 - echo "$as_me:$LINENO: result: no" >&5
57710 -echo "${ECHO_T}no" >&6
57711 + { echo "$as_me:$LINENO: result: no" >&5
57712 +echo "${ECHO_T}no" >&6; }
57713 fi
57714
57715 +
57716 fi
57717 if test -z "$ac_cv_prog_CC"; then
57718 ac_ct_CC=$CC
57719 # Extract the first word of "gcc", so it can be a program name with args.
57720 set dummy gcc; ac_word=$2
57721 -echo "$as_me:$LINENO: checking for $ac_word" >&5
57722 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
57723 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
57724 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
57725 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
57726 echo $ECHO_N "(cached) $ECHO_C" >&6
57727 else
57728 @@ -1488,36 +2022,51 @@ do
57729 IFS=$as_save_IFS
57730 test -z "$as_dir" && as_dir=.
57731 for ac_exec_ext in '' $ac_executable_extensions; do
57732 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57733 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
57734 ac_cv_prog_ac_ct_CC="gcc"
57735 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
57736 break 2
57737 fi
57738 done
57739 done
57740 +IFS=$as_save_IFS
57741
57742 fi
57743 fi
57744 ac_ct_CC=$ac_cv_prog_ac_ct_CC
57745 if test -n "$ac_ct_CC"; then
57746 - echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
57747 -echo "${ECHO_T}$ac_ct_CC" >&6
57748 + { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
57749 +echo "${ECHO_T}$ac_ct_CC" >&6; }
57750 else
57751 - echo "$as_me:$LINENO: result: no" >&5
57752 -echo "${ECHO_T}no" >&6
57753 + { echo "$as_me:$LINENO: result: no" >&5
57754 +echo "${ECHO_T}no" >&6; }
57755 fi
57756
57757 - CC=$ac_ct_CC
57758 + if test "x$ac_ct_CC" = x; then
57759 + CC=""
57760 + else
57761 + case $cross_compiling:$ac_tool_warned in
57762 +yes:)
57763 +{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
57764 +whose name does not start with the host triplet. If you think this
57765 +configuration is useful to you, please write to autoconf@gnu.org." >&5
57766 +echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
57767 +whose name does not start with the host triplet. If you think this
57768 +configuration is useful to you, please write to autoconf@gnu.org." >&2;}
57769 +ac_tool_warned=yes ;;
57770 +esac
57771 + CC=$ac_ct_CC
57772 + fi
57773 else
57774 CC="$ac_cv_prog_CC"
57775 fi
57776
57777 if test -z "$CC"; then
57778 - if test -n "$ac_tool_prefix"; then
57779 - # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
57780 + if test -n "$ac_tool_prefix"; then
57781 + # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
57782 set dummy ${ac_tool_prefix}cc; ac_word=$2
57783 -echo "$as_me:$LINENO: checking for $ac_word" >&5
57784 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
57785 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
57786 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
57787 if test "${ac_cv_prog_CC+set}" = set; then
57788 echo $ECHO_N "(cached) $ECHO_C" >&6
57789 else
57790 @@ -1530,74 +2079,34 @@ do
57791 IFS=$as_save_IFS
57792 test -z "$as_dir" && as_dir=.
57793 for ac_exec_ext in '' $ac_executable_extensions; do
57794 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57795 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
57796 ac_cv_prog_CC="${ac_tool_prefix}cc"
57797 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
57798 break 2
57799 fi
57800 done
57801 done
57802 +IFS=$as_save_IFS
57803
57804 fi
57805 fi
57806 CC=$ac_cv_prog_CC
57807 if test -n "$CC"; then
57808 - echo "$as_me:$LINENO: result: $CC" >&5
57809 -echo "${ECHO_T}$CC" >&6
57810 -else
57811 - echo "$as_me:$LINENO: result: no" >&5
57812 -echo "${ECHO_T}no" >&6
57813 -fi
57814 -
57815 -fi
57816 -if test -z "$ac_cv_prog_CC"; then
57817 - ac_ct_CC=$CC
57818 - # Extract the first word of "cc", so it can be a program name with args.
57819 -set dummy cc; ac_word=$2
57820 -echo "$as_me:$LINENO: checking for $ac_word" >&5
57821 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
57822 -if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
57823 - echo $ECHO_N "(cached) $ECHO_C" >&6
57824 -else
57825 - if test -n "$ac_ct_CC"; then
57826 - ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
57827 -else
57828 -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
57829 -for as_dir in $PATH
57830 -do
57831 - IFS=$as_save_IFS
57832 - test -z "$as_dir" && as_dir=.
57833 - for ac_exec_ext in '' $ac_executable_extensions; do
57834 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57835 - ac_cv_prog_ac_ct_CC="cc"
57836 - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
57837 - break 2
57838 - fi
57839 -done
57840 -done
57841 -
57842 -fi
57843 -fi
57844 -ac_ct_CC=$ac_cv_prog_ac_ct_CC
57845 -if test -n "$ac_ct_CC"; then
57846 - echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
57847 -echo "${ECHO_T}$ac_ct_CC" >&6
57848 + { echo "$as_me:$LINENO: result: $CC" >&5
57849 +echo "${ECHO_T}$CC" >&6; }
57850 else
57851 - echo "$as_me:$LINENO: result: no" >&5
57852 -echo "${ECHO_T}no" >&6
57853 + { echo "$as_me:$LINENO: result: no" >&5
57854 +echo "${ECHO_T}no" >&6; }
57855 fi
57856
57857 - CC=$ac_ct_CC
57858 -else
57859 - CC="$ac_cv_prog_CC"
57860 -fi
57861
57862 + fi
57863 fi
57864 if test -z "$CC"; then
57865 # Extract the first word of "cc", so it can be a program name with args.
57866 set dummy cc; ac_word=$2
57867 -echo "$as_me:$LINENO: checking for $ac_word" >&5
57868 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
57869 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
57870 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
57871 if test "${ac_cv_prog_CC+set}" = set; then
57872 echo $ECHO_N "(cached) $ECHO_C" >&6
57873 else
57874 @@ -1611,7 +2120,7 @@ do
57875 IFS=$as_save_IFS
57876 test -z "$as_dir" && as_dir=.
57877 for ac_exec_ext in '' $ac_executable_extensions; do
57878 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57879 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
57880 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
57881 ac_prog_rejected=yes
57882 continue
57883 @@ -1622,6 +2131,7 @@ do
57884 fi
57885 done
57886 done
57887 +IFS=$as_save_IFS
57888
57889 if test $ac_prog_rejected = yes; then
57890 # We found a bogon in the path, so make sure we never use it.
57891 @@ -1639,22 +2149,23 @@ fi
57892 fi
57893 CC=$ac_cv_prog_CC
57894 if test -n "$CC"; then
57895 - echo "$as_me:$LINENO: result: $CC" >&5
57896 -echo "${ECHO_T}$CC" >&6
57897 + { echo "$as_me:$LINENO: result: $CC" >&5
57898 +echo "${ECHO_T}$CC" >&6; }
57899 else
57900 - echo "$as_me:$LINENO: result: no" >&5
57901 -echo "${ECHO_T}no" >&6
57902 + { echo "$as_me:$LINENO: result: no" >&5
57903 +echo "${ECHO_T}no" >&6; }
57904 fi
57905
57906 +
57907 fi
57908 if test -z "$CC"; then
57909 if test -n "$ac_tool_prefix"; then
57910 - for ac_prog in cl
57911 + for ac_prog in cl.exe
57912 do
57913 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
57914 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
57915 -echo "$as_me:$LINENO: checking for $ac_word" >&5
57916 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
57917 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
57918 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
57919 if test "${ac_cv_prog_CC+set}" = set; then
57920 echo $ECHO_N "(cached) $ECHO_C" >&6
57921 else
57922 @@ -1667,36 +2178,38 @@ do
57923 IFS=$as_save_IFS
57924 test -z "$as_dir" && as_dir=.
57925 for ac_exec_ext in '' $ac_executable_extensions; do
57926 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57927 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
57928 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
57929 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
57930 break 2
57931 fi
57932 done
57933 done
57934 +IFS=$as_save_IFS
57935
57936 fi
57937 fi
57938 CC=$ac_cv_prog_CC
57939 if test -n "$CC"; then
57940 - echo "$as_me:$LINENO: result: $CC" >&5
57941 -echo "${ECHO_T}$CC" >&6
57942 + { echo "$as_me:$LINENO: result: $CC" >&5
57943 +echo "${ECHO_T}$CC" >&6; }
57944 else
57945 - echo "$as_me:$LINENO: result: no" >&5
57946 -echo "${ECHO_T}no" >&6
57947 + { echo "$as_me:$LINENO: result: no" >&5
57948 +echo "${ECHO_T}no" >&6; }
57949 fi
57950
57951 +
57952 test -n "$CC" && break
57953 done
57954 fi
57955 if test -z "$CC"; then
57956 ac_ct_CC=$CC
57957 - for ac_prog in cl
57958 + for ac_prog in cl.exe
57959 do
57960 # Extract the first word of "$ac_prog", so it can be a program name with args.
57961 set dummy $ac_prog; ac_word=$2
57962 -echo "$as_me:$LINENO: checking for $ac_word" >&5
57963 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
57964 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
57965 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
57966 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
57967 echo $ECHO_N "(cached) $ECHO_C" >&6
57968 else
57969 @@ -1709,29 +2222,45 @@ do
57970 IFS=$as_save_IFS
57971 test -z "$as_dir" && as_dir=.
57972 for ac_exec_ext in '' $ac_executable_extensions; do
57973 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57974 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
57975 ac_cv_prog_ac_ct_CC="$ac_prog"
57976 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
57977 break 2
57978 fi
57979 done
57980 done
57981 +IFS=$as_save_IFS
57982
57983 fi
57984 fi
57985 ac_ct_CC=$ac_cv_prog_ac_ct_CC
57986 if test -n "$ac_ct_CC"; then
57987 - echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
57988 -echo "${ECHO_T}$ac_ct_CC" >&6
57989 + { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
57990 +echo "${ECHO_T}$ac_ct_CC" >&6; }
57991 else
57992 - echo "$as_me:$LINENO: result: no" >&5
57993 -echo "${ECHO_T}no" >&6
57994 + { echo "$as_me:$LINENO: result: no" >&5
57995 +echo "${ECHO_T}no" >&6; }
57996 fi
57997
57998 +
57999 test -n "$ac_ct_CC" && break
58000 done
58001
58002 - CC=$ac_ct_CC
58003 + if test "x$ac_ct_CC" = x; then
58004 + CC=""
58005 + else
58006 + case $cross_compiling:$ac_tool_warned in
58007 +yes:)
58008 +{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
58009 +whose name does not start with the host triplet. If you think this
58010 +configuration is useful to you, please write to autoconf@gnu.org." >&5
58011 +echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
58012 +whose name does not start with the host triplet. If you think this
58013 +configuration is useful to you, please write to autoconf@gnu.org." >&2;}
58014 +ac_tool_warned=yes ;;
58015 +esac
58016 + CC=$ac_ct_CC
58017 + fi
58018 fi
58019
58020 fi
58021 @@ -1744,21 +2273,35 @@ See \`config.log' for more details." >&2
58022 { (exit 1); exit 1; }; }
58023
58024 # Provide some information about the compiler.
58025 -echo "$as_me:$LINENO:" \
58026 - "checking for C compiler version" >&5
58027 +echo "$as_me:$LINENO: checking for C compiler version" >&5
58028 ac_compiler=`set X $ac_compile; echo $2`
58029 -{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
58030 - (eval $ac_compiler --version </dev/null >&5) 2>&5
58031 +{ (ac_try="$ac_compiler --version >&5"
58032 +case "(($ac_try" in
58033 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58034 + *) ac_try_echo=$ac_try;;
58035 +esac
58036 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
58037 + (eval "$ac_compiler --version >&5") 2>&5
58038 ac_status=$?
58039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58040 (exit $ac_status); }
58041 -{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
58042 - (eval $ac_compiler -v </dev/null >&5) 2>&5
58043 +{ (ac_try="$ac_compiler -v >&5"
58044 +case "(($ac_try" in
58045 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58046 + *) ac_try_echo=$ac_try;;
58047 +esac
58048 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
58049 + (eval "$ac_compiler -v >&5") 2>&5
58050 ac_status=$?
58051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58052 (exit $ac_status); }
58053 -{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
58054 - (eval $ac_compiler -V </dev/null >&5) 2>&5
58055 +{ (ac_try="$ac_compiler -V >&5"
58056 +case "(($ac_try" in
58057 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58058 + *) ac_try_echo=$ac_try;;
58059 +esac
58060 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
58061 + (eval "$ac_compiler -V >&5") 2>&5
58062 ac_status=$?
58063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58064 (exit $ac_status); }
58065 @@ -1783,47 +2326,77 @@ ac_clean_files="$ac_clean_files a.out a.
58066 # Try to create an executable without -o first, disregard a.out.
58067 # It will help us diagnose broken compilers, and finding out an intuition
58068 # of exeext.
58069 -echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
58070 -echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
58071 +{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
58072 +echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
58073 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
58074 -if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
58075 - (eval $ac_link_default) 2>&5
58076 +#
58077 +# List of possible output files, starting from the most likely.
58078 +# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
58079 +# only as a last resort. b.out is created by i960 compilers.
58080 +ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
58081 +#
58082 +# The IRIX 6 linker writes into existing files which may not be
58083 +# executable, retaining their permissions. Remove them first so a
58084 +# subsequent execution test works.
58085 +ac_rmfiles=
58086 +for ac_file in $ac_files
58087 +do
58088 + case $ac_file in
58089 + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
58090 + * ) ac_rmfiles="$ac_rmfiles $ac_file";;
58091 + esac
58092 +done
58093 +rm -f $ac_rmfiles
58094 +
58095 +if { (ac_try="$ac_link_default"
58096 +case "(($ac_try" in
58097 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58098 + *) ac_try_echo=$ac_try;;
58099 +esac
58100 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
58101 + (eval "$ac_link_default") 2>&5
58102 ac_status=$?
58103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58104 (exit $ac_status); }; then
58105 - # Find the output, starting from the most likely. This scheme is
58106 -# not robust to junk in `.', hence go to wildcards (a.*) only as a last
58107 -# resort.
58108 -
58109 -# Be careful to initialize this variable, since it used to be cached.
58110 -# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
58111 -ac_cv_exeext=
58112 -# b.out is created by i960 compilers.
58113 -for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
58114 + # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
58115 +# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
58116 +# in a Makefile. We should not override ac_cv_exeext if it was cached,
58117 +# so that the user can short-circuit this test for compilers unknown to
58118 +# Autoconf.
58119 +for ac_file in $ac_files ''
58120 do
58121 test -f "$ac_file" || continue
58122 case $ac_file in
58123 - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
58124 - ;;
58125 - conftest.$ac_ext )
58126 - # This is the source file.
58127 + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
58128 ;;
58129 [ab].out )
58130 # We found the default executable, but exeext='' is most
58131 # certainly right.
58132 break;;
58133 *.* )
58134 - ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
58135 - # FIXME: I believe we export ac_cv_exeext for Libtool,
58136 - # but it would be cool to find out if it's true. Does anybody
58137 - # maintain Libtool? --akim.
58138 - export ac_cv_exeext
58139 + if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
58140 + then :; else
58141 + ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
58142 + fi
58143 + # We set ac_cv_exeext here because the later test for it is not
58144 + # safe: cross compilers may not add the suffix if given an `-o'
58145 + # argument, so we may need to know it at that point already.
58146 + # Even if this section looks crufty: it has the advantage of
58147 + # actually working.
58148 break;;
58149 * )
58150 break;;
58151 esac
58152 done
58153 +test "$ac_cv_exeext" = no && ac_cv_exeext=
58154 +
58155 else
58156 + ac_file=''
58157 +fi
58158 +
58159 +{ echo "$as_me:$LINENO: result: $ac_file" >&5
58160 +echo "${ECHO_T}$ac_file" >&6; }
58161 +if test -z "$ac_file"; then
58162 echo "$as_me: failed program was:" >&5
58163 sed 's/^/| /' conftest.$ac_ext >&5
58164
58165 @@ -1835,19 +2408,21 @@ See \`config.log' for more details." >&2
58166 fi
58167
58168 ac_exeext=$ac_cv_exeext
58169 -echo "$as_me:$LINENO: result: $ac_file" >&5
58170 -echo "${ECHO_T}$ac_file" >&6
58171
58172 -# Check the compiler produces executables we can run. If not, either
58173 +# Check that the compiler produces executables we can run. If not, either
58174 # the compiler is broken, or we cross compile.
58175 -echo "$as_me:$LINENO: checking whether the C compiler works" >&5
58176 -echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
58177 +{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
58178 +echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
58179 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
58180 # If not cross compiling, check that we can run a simple program.
58181 if test "$cross_compiling" != yes; then
58182 if { ac_try='./$ac_file'
58183 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58184 - (eval $ac_try) 2>&5
58185 + { (case "(($ac_try" in
58186 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58187 + *) ac_try_echo=$ac_try;;
58188 +esac
58189 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
58190 + (eval "$ac_try") 2>&5
58191 ac_status=$?
58192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58193 (exit $ac_status); }; }; then
58194 @@ -1866,22 +2441,27 @@ See \`config.log' for more details." >&2
58195 fi
58196 fi
58197 fi
58198 -echo "$as_me:$LINENO: result: yes" >&5
58199 -echo "${ECHO_T}yes" >&6
58200 +{ echo "$as_me:$LINENO: result: yes" >&5
58201 +echo "${ECHO_T}yes" >&6; }
58202
58203 rm -f a.out a.exe conftest$ac_cv_exeext b.out
58204 ac_clean_files=$ac_clean_files_save
58205 -# Check the compiler produces executables we can run. If not, either
58206 +# Check that the compiler produces executables we can run. If not, either
58207 # the compiler is broken, or we cross compile.
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 { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
58216 - (eval $ac_link) 2>&5
58217 +{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
58218 +echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
58219 +{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
58220 +echo "${ECHO_T}$cross_compiling" >&6; }
58221 +
58222 +{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
58223 +echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
58224 +if { (ac_try="$ac_link"
58225 +case "(($ac_try" in
58226 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58227 + *) ac_try_echo=$ac_try;;
58228 +esac
58229 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
58230 + (eval "$ac_link") 2>&5
58231 ac_status=$?
58232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58233 (exit $ac_status); }; then
58234 @@ -1892,9 +2472,8 @@ if { (eval echo "$as_me:$LINENO: \"$ac_l
58235 for ac_file in conftest.exe conftest conftest.*; do
58236 test -f "$ac_file" || continue
58237 case $ac_file in
58238 - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
58239 + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
58240 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
58241 - export ac_cv_exeext
58242 break;;
58243 * ) break;;
58244 esac
58245 @@ -1908,14 +2487,14 @@ See \`config.log' for more details." >&2
58246 fi
58247
58248 rm -f conftest$ac_cv_exeext
58249 -echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
58250 -echo "${ECHO_T}$ac_cv_exeext" >&6
58251 +{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
58252 +echo "${ECHO_T}$ac_cv_exeext" >&6; }
58253
58254 rm -f conftest.$ac_ext
58255 EXEEXT=$ac_cv_exeext
58256 ac_exeext=$EXEEXT
58257 -echo "$as_me:$LINENO: checking for suffix of object files" >&5
58258 -echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
58259 +{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
58260 +echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
58261 if test "${ac_cv_objext+set}" = set; then
58262 echo $ECHO_N "(cached) $ECHO_C" >&6
58263 else
58264 @@ -1935,14 +2514,20 @@ main ()
58265 }
58266 _ACEOF
58267 rm -f conftest.o conftest.obj
58268 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
58269 - (eval $ac_compile) 2>&5
58270 +if { (ac_try="$ac_compile"
58271 +case "(($ac_try" in
58272 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58273 + *) ac_try_echo=$ac_try;;
58274 +esac
58275 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
58276 + (eval "$ac_compile") 2>&5
58277 ac_status=$?
58278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58279 (exit $ac_status); }; then
58280 - for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
58281 + for ac_file in conftest.o conftest.obj conftest.*; do
58282 + test -f "$ac_file" || continue;
58283 case $ac_file in
58284 - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
58285 + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
58286 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
58287 break;;
58288 esac
58289 @@ -1960,12 +2545,12 @@ fi
58290
58291 rm -f conftest.$ac_cv_objext conftest.$ac_ext
58292 fi
58293 -echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
58294 -echo "${ECHO_T}$ac_cv_objext" >&6
58295 +{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
58296 +echo "${ECHO_T}$ac_cv_objext" >&6; }
58297 OBJEXT=$ac_cv_objext
58298 ac_objext=$OBJEXT
58299 -echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
58300 -echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
58301 +{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
58302 +echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
58303 if test "${ac_cv_c_compiler_gnu+set}" = set; then
58304 echo $ECHO_N "(cached) $ECHO_C" >&6
58305 else
58306 @@ -1988,50 +2573,49 @@ main ()
58307 }
58308 _ACEOF
58309 rm -f conftest.$ac_objext
58310 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
58311 - (eval $ac_compile) 2>conftest.er1
58312 +if { (ac_try="$ac_compile"
58313 +case "(($ac_try" in
58314 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58315 + *) ac_try_echo=$ac_try;;
58316 +esac
58317 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
58318 + (eval "$ac_compile") 2>conftest.er1
58319 ac_status=$?
58320 grep -v '^ *+' conftest.er1 >conftest.err
58321 rm -f conftest.er1
58322 cat conftest.err >&5
58323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58324 - (exit $ac_status); } &&
58325 - { ac_try='test -z "$ac_c_werror_flag"
58326 - || test ! -s conftest.err'
58327 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58328 - (eval $ac_try) 2>&5
58329 - ac_status=$?
58330 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
58331 - (exit $ac_status); }; } &&
58332 - { ac_try='test -s conftest.$ac_objext'
58333 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58334 - (eval $ac_try) 2>&5
58335 - ac_status=$?
58336 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
58337 - (exit $ac_status); }; }; then
58338 + (exit $ac_status); } && {
58339 + test -z "$ac_c_werror_flag" ||
58340 + test ! -s conftest.err
58341 + } && test -s conftest.$ac_objext; then
58342 ac_compiler_gnu=yes
58343 else
58344 echo "$as_me: failed program was:" >&5
58345 sed 's/^/| /' conftest.$ac_ext >&5
58346
58347 -ac_compiler_gnu=no
58348 + ac_compiler_gnu=no
58349 fi
58350 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
58351 +
58352 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
58353 ac_cv_c_compiler_gnu=$ac_compiler_gnu
58354
58355 fi
58356 -echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
58357 -echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
58358 +{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
58359 +echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
58360 GCC=`test $ac_compiler_gnu = yes && echo yes`
58361 ac_test_CFLAGS=${CFLAGS+set}
58362 ac_save_CFLAGS=$CFLAGS
58363 -CFLAGS="-g"
58364 -echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
58365 -echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
58366 +{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
58367 +echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
58368 if test "${ac_cv_prog_cc_g+set}" = set; then
58369 echo $ECHO_N "(cached) $ECHO_C" >&6
58370 else
58371 - cat >conftest.$ac_ext <<_ACEOF
58372 + ac_save_c_werror_flag=$ac_c_werror_flag
58373 + ac_c_werror_flag=yes
58374 + ac_cv_prog_cc_g=no
58375 + CFLAGS="-g"
58376 + cat >conftest.$ac_ext <<_ACEOF
58377 /* confdefs.h. */
58378 _ACEOF
58379 cat confdefs.h >>conftest.$ac_ext
58380 @@ -2047,38 +2631,118 @@ main ()
58381 }
58382 _ACEOF
58383 rm -f conftest.$ac_objext
58384 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
58385 - (eval $ac_compile) 2>conftest.er1
58386 +if { (ac_try="$ac_compile"
58387 +case "(($ac_try" in
58388 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58389 + *) ac_try_echo=$ac_try;;
58390 +esac
58391 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
58392 + (eval "$ac_compile") 2>conftest.er1
58393 ac_status=$?
58394 grep -v '^ *+' conftest.er1 >conftest.err
58395 rm -f conftest.er1
58396 cat conftest.err >&5
58397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58398 - (exit $ac_status); } &&
58399 - { ac_try='test -z "$ac_c_werror_flag"
58400 - || test ! -s conftest.err'
58401 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58402 - (eval $ac_try) 2>&5
58403 + (exit $ac_status); } && {
58404 + test -z "$ac_c_werror_flag" ||
58405 + test ! -s conftest.err
58406 + } && test -s conftest.$ac_objext; then
58407 + ac_cv_prog_cc_g=yes
58408 +else
58409 + echo "$as_me: failed program was:" >&5
58410 +sed 's/^/| /' conftest.$ac_ext >&5
58411 +
58412 + CFLAGS=""
58413 + cat >conftest.$ac_ext <<_ACEOF
58414 +/* confdefs.h. */
58415 +_ACEOF
58416 +cat confdefs.h >>conftest.$ac_ext
58417 +cat >>conftest.$ac_ext <<_ACEOF
58418 +/* end confdefs.h. */
58419 +
58420 +int
58421 +main ()
58422 +{
58423 +
58424 + ;
58425 + return 0;
58426 +}
58427 +_ACEOF
58428 +rm -f conftest.$ac_objext
58429 +if { (ac_try="$ac_compile"
58430 +case "(($ac_try" in
58431 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58432 + *) ac_try_echo=$ac_try;;
58433 +esac
58434 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
58435 + (eval "$ac_compile") 2>conftest.er1
58436 ac_status=$?
58437 + grep -v '^ *+' conftest.er1 >conftest.err
58438 + rm -f conftest.er1
58439 + cat conftest.err >&5
58440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58441 - (exit $ac_status); }; } &&
58442 - { ac_try='test -s conftest.$ac_objext'
58443 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58444 - (eval $ac_try) 2>&5
58445 + (exit $ac_status); } && {
58446 + test -z "$ac_c_werror_flag" ||
58447 + test ! -s conftest.err
58448 + } && test -s conftest.$ac_objext; then
58449 + :
58450 +else
58451 + echo "$as_me: failed program was:" >&5
58452 +sed 's/^/| /' conftest.$ac_ext >&5
58453 +
58454 + ac_c_werror_flag=$ac_save_c_werror_flag
58455 + CFLAGS="-g"
58456 + cat >conftest.$ac_ext <<_ACEOF
58457 +/* confdefs.h. */
58458 +_ACEOF
58459 +cat confdefs.h >>conftest.$ac_ext
58460 +cat >>conftest.$ac_ext <<_ACEOF
58461 +/* end confdefs.h. */
58462 +
58463 +int
58464 +main ()
58465 +{
58466 +
58467 + ;
58468 + return 0;
58469 +}
58470 +_ACEOF
58471 +rm -f conftest.$ac_objext
58472 +if { (ac_try="$ac_compile"
58473 +case "(($ac_try" in
58474 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58475 + *) ac_try_echo=$ac_try;;
58476 +esac
58477 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
58478 + (eval "$ac_compile") 2>conftest.er1
58479 ac_status=$?
58480 + grep -v '^ *+' conftest.er1 >conftest.err
58481 + rm -f conftest.er1
58482 + cat conftest.err >&5
58483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58484 - (exit $ac_status); }; }; then
58485 + (exit $ac_status); } && {
58486 + test -z "$ac_c_werror_flag" ||
58487 + test ! -s conftest.err
58488 + } && test -s conftest.$ac_objext; then
58489 ac_cv_prog_cc_g=yes
58490 else
58491 echo "$as_me: failed program was:" >&5
58492 sed 's/^/| /' conftest.$ac_ext >&5
58493
58494 -ac_cv_prog_cc_g=no
58495 +
58496 +fi
58497 +
58498 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
58499 +fi
58500 +
58501 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
58502 fi
58503 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
58504 +
58505 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
58506 + ac_c_werror_flag=$ac_save_c_werror_flag
58507 fi
58508 -echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
58509 -echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
58510 +{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
58511 +echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
58512 if test "$ac_test_CFLAGS" = set; then
58513 CFLAGS=$ac_save_CFLAGS
58514 elif test $ac_cv_prog_cc_g = yes; then
58515 @@ -2094,12 +2758,12 @@ else
58516 CFLAGS=
58517 fi
58518 fi
58519 -echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
58520 -echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
58521 -if test "${ac_cv_prog_cc_stdc+set}" = set; then
58522 +{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
58523 +echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
58524 +if test "${ac_cv_prog_cc_c89+set}" = set; then
58525 echo $ECHO_N "(cached) $ECHO_C" >&6
58526 else
58527 - ac_cv_prog_cc_stdc=no
58528 + ac_cv_prog_cc_c89=no
58529 ac_save_CC=$CC
58530 cat >conftest.$ac_ext <<_ACEOF
58531 /* confdefs.h. */
58532 @@ -2133,12 +2797,17 @@ static char *f (char * (*g) (char **, in
58533 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
58534 function prototypes and stuff, but not '\xHH' hex character constants.
58535 These don't provoke an error unfortunately, instead are silently treated
58536 - as 'x'. The following induces an error, until -std1 is added to get
58537 + as 'x'. The following induces an error, until -std is added to get
58538 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
58539 array size at least. It's necessary to write '\x00'==0 to get something
58540 - that's true only with -std1. */
58541 + that's true only with -std. */
58542 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
58543
58544 +/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
58545 + inside strings and character constants. */
58546 +#define FOO(x) 'x'
58547 +int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
58548 +
58549 int test (int i, double x);
58550 struct s1 {int (*f) (int a);};
58551 struct s2 {int (*f) (double a);};
58552 @@ -2153,335 +2822,144 @@ return f (e, argv, 0) != argv[0] || f
58553 return 0;
58554 }
58555 _ACEOF
58556 -# Don't try gcc -ansi; that turns off useful extensions and
58557 -# breaks some systems' header files.
58558 -# AIX -qlanglvl=ansi
58559 -# Ultrix and OSF/1 -std1
58560 -# HP-UX 10.20 and later -Ae
58561 -# HP-UX older versions -Aa -D_HPUX_SOURCE
58562 -# SVR4 -Xc -D__EXTENSIONS__
58563 -for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
58564 +for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
58565 + -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
58566 do
58567 CC="$ac_save_CC $ac_arg"
58568 rm -f conftest.$ac_objext
58569 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
58570 - (eval $ac_compile) 2>conftest.er1
58571 +if { (ac_try="$ac_compile"
58572 +case "(($ac_try" in
58573 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58574 + *) ac_try_echo=$ac_try;;
58575 +esac
58576 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
58577 + (eval "$ac_compile") 2>conftest.er1
58578 ac_status=$?
58579 grep -v '^ *+' conftest.er1 >conftest.err
58580 rm -f conftest.er1
58581 cat conftest.err >&5
58582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58583 - (exit $ac_status); } &&
58584 - { ac_try='test -z "$ac_c_werror_flag"
58585 - || test ! -s conftest.err'
58586 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58587 - (eval $ac_try) 2>&5
58588 - ac_status=$?
58589 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
58590 - (exit $ac_status); }; } &&
58591 - { ac_try='test -s conftest.$ac_objext'
58592 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58593 - (eval $ac_try) 2>&5
58594 - ac_status=$?
58595 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
58596 - (exit $ac_status); }; }; then
58597 - ac_cv_prog_cc_stdc=$ac_arg
58598 -break
58599 + (exit $ac_status); } && {
58600 + test -z "$ac_c_werror_flag" ||
58601 + test ! -s conftest.err
58602 + } && test -s conftest.$ac_objext; then
58603 + ac_cv_prog_cc_c89=$ac_arg
58604 else
58605 echo "$as_me: failed program was:" >&5
58606 sed 's/^/| /' conftest.$ac_ext >&5
58607
58608 +
58609 fi
58610 -rm -f conftest.err conftest.$ac_objext
58611 +
58612 +rm -f core conftest.err conftest.$ac_objext
58613 + test "x$ac_cv_prog_cc_c89" != "xno" && break
58614 done
58615 -rm -f conftest.$ac_ext conftest.$ac_objext
58616 +rm -f conftest.$ac_ext
58617 CC=$ac_save_CC
58618
58619 fi
58620 -
58621 -case "x$ac_cv_prog_cc_stdc" in
58622 - x|xno)
58623 - echo "$as_me:$LINENO: result: none needed" >&5
58624 -echo "${ECHO_T}none needed" >&6 ;;
58625 +# AC_CACHE_VAL
58626 +case "x$ac_cv_prog_cc_c89" in
58627 + x)
58628 + { echo "$as_me:$LINENO: result: none needed" >&5
58629 +echo "${ECHO_T}none needed" >&6; } ;;
58630 + xno)
58631 + { echo "$as_me:$LINENO: result: unsupported" >&5
58632 +echo "${ECHO_T}unsupported" >&6; } ;;
58633 *)
58634 - echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
58635 -echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
58636 - CC="$CC $ac_cv_prog_cc_stdc" ;;
58637 + CC="$CC $ac_cv_prog_cc_c89"
58638 + { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
58639 +echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
58640 esac
58641
58642 -# Some people use a C++ compiler to compile C. Since we use `exit',
58643 -# in C++ we need to declare it. In case someone uses the same compiler
58644 -# for both compiling C and C++ we need to have the C++ compiler decide
58645 -# the declaration of exit, since it's the most demanding environment.
58646 +
58647 +ac_ext=c
58648 +ac_cpp='$CPP $CPPFLAGS'
58649 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
58650 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
58651 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
58652 +
58653 +
58654 +{ echo "$as_me:$LINENO: checking for library containing strerror" >&5
58655 +echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; }
58656 +if test "${ac_cv_search_strerror+set}" = set; then
58657 + echo $ECHO_N "(cached) $ECHO_C" >&6
58658 +else
58659 + ac_func_search_save_LIBS=$LIBS
58660 cat >conftest.$ac_ext <<_ACEOF
58661 -#ifndef __cplusplus
58662 - choke me
58663 -#endif
58664 -_ACEOF
58665 -rm -f conftest.$ac_objext
58666 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
58667 - (eval $ac_compile) 2>conftest.er1
58668 - ac_status=$?
58669 - grep -v '^ *+' conftest.er1 >conftest.err
58670 - rm -f conftest.er1
58671 - cat conftest.err >&5
58672 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
58673 - (exit $ac_status); } &&
58674 - { ac_try='test -z "$ac_c_werror_flag"
58675 - || test ! -s conftest.err'
58676 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58677 - (eval $ac_try) 2>&5
58678 - ac_status=$?
58679 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
58680 - (exit $ac_status); }; } &&
58681 - { ac_try='test -s conftest.$ac_objext'
58682 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58683 - (eval $ac_try) 2>&5
58684 - ac_status=$?
58685 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
58686 - (exit $ac_status); }; }; then
58687 - for ac_declaration in \
58688 - '' \
58689 - 'extern "C" void std::exit (int) throw (); using std::exit;' \
58690 - 'extern "C" void std::exit (int); using std::exit;' \
58691 - 'extern "C" void exit (int) throw ();' \
58692 - 'extern "C" void exit (int);' \
58693 - 'void exit (int);'
58694 -do
58695 - cat >conftest.$ac_ext <<_ACEOF
58696 /* confdefs.h. */
58697 _ACEOF
58698 cat confdefs.h >>conftest.$ac_ext
58699 cat >>conftest.$ac_ext <<_ACEOF
58700 /* end confdefs.h. */
58701 -$ac_declaration
58702 -#include <stdlib.h>
58703 +
58704 +/* Override any GCC internal prototype to avoid an error.
58705 + Use char because int might match the return type of a GCC
58706 + builtin and then its argument prototype would still apply. */
58707 +#ifdef __cplusplus
58708 +extern "C"
58709 +#endif
58710 +char strerror ();
58711 int
58712 main ()
58713 {
58714 -exit (42);
58715 +return strerror ();
58716 ;
58717 return 0;
58718 }
58719 _ACEOF
58720 -rm -f conftest.$ac_objext
58721 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
58722 - (eval $ac_compile) 2>conftest.er1
58723 +for ac_lib in '' cposix; do
58724 + if test -z "$ac_lib"; then
58725 + ac_res="none required"
58726 + else
58727 + ac_res=-l$ac_lib
58728 + LIBS="-l$ac_lib $ac_func_search_save_LIBS"
58729 + fi
58730 + rm -f conftest.$ac_objext conftest$ac_exeext
58731 +if { (ac_try="$ac_link"
58732 +case "(($ac_try" in
58733 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58734 + *) ac_try_echo=$ac_try;;
58735 +esac
58736 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
58737 + (eval "$ac_link") 2>conftest.er1
58738 ac_status=$?
58739 grep -v '^ *+' conftest.er1 >conftest.err
58740 rm -f conftest.er1
58741 cat conftest.err >&5
58742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58743 - (exit $ac_status); } &&
58744 - { ac_try='test -z "$ac_c_werror_flag"
58745 - || test ! -s conftest.err'
58746 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58747 - (eval $ac_try) 2>&5
58748 - ac_status=$?
58749 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
58750 - (exit $ac_status); }; } &&
58751 - { ac_try='test -s conftest.$ac_objext'
58752 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58753 - (eval $ac_try) 2>&5
58754 - ac_status=$?
58755 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
58756 - (exit $ac_status); }; }; then
58757 - :
58758 + (exit $ac_status); } && {
58759 + test -z "$ac_c_werror_flag" ||
58760 + test ! -s conftest.err
58761 + } && test -s conftest$ac_exeext &&
58762 + $as_test_x conftest$ac_exeext; then
58763 + ac_cv_search_strerror=$ac_res
58764 else
58765 echo "$as_me: failed program was:" >&5
58766 sed 's/^/| /' conftest.$ac_ext >&5
58767
58768 -continue
58769 -fi
58770 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
58771 - cat >conftest.$ac_ext <<_ACEOF
58772 -/* confdefs.h. */
58773 -_ACEOF
58774 -cat confdefs.h >>conftest.$ac_ext
58775 -cat >>conftest.$ac_ext <<_ACEOF
58776 -/* end confdefs.h. */
58777 -$ac_declaration
58778 -int
58779 -main ()
58780 -{
58781 -exit (42);
58782 - ;
58783 - return 0;
58784 -}
58785 -_ACEOF
58786 -rm -f conftest.$ac_objext
58787 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
58788 - (eval $ac_compile) 2>conftest.er1
58789 - ac_status=$?
58790 - grep -v '^ *+' conftest.er1 >conftest.err
58791 - rm -f conftest.er1
58792 - cat conftest.err >&5
58793 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
58794 - (exit $ac_status); } &&
58795 - { ac_try='test -z "$ac_c_werror_flag"
58796 - || test ! -s conftest.err'
58797 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58798 - (eval $ac_try) 2>&5
58799 - ac_status=$?
58800 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
58801 - (exit $ac_status); }; } &&
58802 - { ac_try='test -s conftest.$ac_objext'
58803 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58804 - (eval $ac_try) 2>&5
58805 - ac_status=$?
58806 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
58807 - (exit $ac_status); }; }; then
58808 - break
58809 -else
58810 - echo "$as_me: failed program was:" >&5
58811 -sed 's/^/| /' conftest.$ac_ext >&5
58812
58813 fi
58814 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
58815 -done
58816 -rm -f conftest*
58817 -if test -n "$ac_declaration"; then
58818 - echo '#ifdef __cplusplus' >>confdefs.h
58819 - echo $ac_declaration >>confdefs.h
58820 - echo '#endif' >>confdefs.h
58821 -fi
58822 -
58823 -else
58824 - echo "$as_me: failed program was:" >&5
58825 -sed 's/^/| /' conftest.$ac_ext >&5
58826
58827 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
58828 + conftest$ac_exeext
58829 + if test "${ac_cv_search_strerror+set}" = set; then
58830 + break
58831 fi
58832 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
58833 -ac_ext=c
58834 -ac_cpp='$CPP $CPPFLAGS'
58835 -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
58836 -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
58837 -ac_compiler_gnu=$ac_cv_c_compiler_gnu
58838 -
58839 -
58840 -echo "$as_me:$LINENO: checking for library containing strerror" >&5
58841 -echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
58842 +done
58843 if test "${ac_cv_search_strerror+set}" = set; then
58844 - echo $ECHO_N "(cached) $ECHO_C" >&6
58845 -else
58846 - ac_func_search_save_LIBS=$LIBS
58847 -ac_cv_search_strerror=no
58848 -cat >conftest.$ac_ext <<_ACEOF
58849 -/* confdefs.h. */
58850 -_ACEOF
58851 -cat confdefs.h >>conftest.$ac_ext
58852 -cat >>conftest.$ac_ext <<_ACEOF
58853 -/* end confdefs.h. */
58854 -
58855 -/* Override any gcc2 internal prototype to avoid an error. */
58856 -#ifdef __cplusplus
58857 -extern "C"
58858 -#endif
58859 -/* We use char because int might match the return type of a gcc2
58860 - builtin and then its argument prototype would still apply. */
58861 -char strerror ();
58862 -int
58863 -main ()
58864 -{
58865 -strerror ();
58866 - ;
58867 - return 0;
58868 -}
58869 -_ACEOF
58870 -rm -f conftest.$ac_objext conftest$ac_exeext
58871 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
58872 - (eval $ac_link) 2>conftest.er1
58873 - ac_status=$?
58874 - grep -v '^ *+' conftest.er1 >conftest.err
58875 - rm -f conftest.er1
58876 - cat conftest.err >&5
58877 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
58878 - (exit $ac_status); } &&
58879 - { ac_try='test -z "$ac_c_werror_flag"
58880 - || test ! -s conftest.err'
58881 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58882 - (eval $ac_try) 2>&5
58883 - ac_status=$?
58884 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
58885 - (exit $ac_status); }; } &&
58886 - { ac_try='test -s conftest$ac_exeext'
58887 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58888 - (eval $ac_try) 2>&5
58889 - ac_status=$?
58890 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
58891 - (exit $ac_status); }; }; then
58892 - ac_cv_search_strerror="none required"
58893 -else
58894 - echo "$as_me: failed program was:" >&5
58895 -sed 's/^/| /' conftest.$ac_ext >&5
58896 -
58897 -fi
58898 -rm -f conftest.err conftest.$ac_objext \
58899 - conftest$ac_exeext conftest.$ac_ext
58900 -if test "$ac_cv_search_strerror" = no; then
58901 - for ac_lib in cposix; do
58902 - LIBS="-l$ac_lib $ac_func_search_save_LIBS"
58903 - cat >conftest.$ac_ext <<_ACEOF
58904 -/* confdefs.h. */
58905 -_ACEOF
58906 -cat confdefs.h >>conftest.$ac_ext
58907 -cat >>conftest.$ac_ext <<_ACEOF
58908 -/* end confdefs.h. */
58909 -
58910 -/* Override any gcc2 internal prototype to avoid an error. */
58911 -#ifdef __cplusplus
58912 -extern "C"
58913 -#endif
58914 -/* We use char because int might match the return type of a gcc2
58915 - builtin and then its argument prototype would still apply. */
58916 -char strerror ();
58917 -int
58918 -main ()
58919 -{
58920 -strerror ();
58921 - ;
58922 - return 0;
58923 -}
58924 -_ACEOF
58925 -rm -f conftest.$ac_objext conftest$ac_exeext
58926 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
58927 - (eval $ac_link) 2>conftest.er1
58928 - ac_status=$?
58929 - grep -v '^ *+' conftest.er1 >conftest.err
58930 - rm -f conftest.er1
58931 - cat conftest.err >&5
58932 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
58933 - (exit $ac_status); } &&
58934 - { ac_try='test -z "$ac_c_werror_flag"
58935 - || test ! -s conftest.err'
58936 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58937 - (eval $ac_try) 2>&5
58938 - ac_status=$?
58939 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
58940 - (exit $ac_status); }; } &&
58941 - { ac_try='test -s conftest$ac_exeext'
58942 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58943 - (eval $ac_try) 2>&5
58944 - ac_status=$?
58945 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
58946 - (exit $ac_status); }; }; then
58947 - ac_cv_search_strerror="-l$ac_lib"
58948 -break
58949 + :
58950 else
58951 - echo "$as_me: failed program was:" >&5
58952 -sed 's/^/| /' conftest.$ac_ext >&5
58953 -
58954 -fi
58955 -rm -f conftest.err conftest.$ac_objext \
58956 - conftest$ac_exeext conftest.$ac_ext
58957 - done
58958 + ac_cv_search_strerror=no
58959 fi
58960 +rm conftest.$ac_ext
58961 LIBS=$ac_func_search_save_LIBS
58962 fi
58963 -echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
58964 -echo "${ECHO_T}$ac_cv_search_strerror" >&6
58965 -if test "$ac_cv_search_strerror" != no; then
58966 - test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
58967 +{ echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
58968 +echo "${ECHO_T}$ac_cv_search_strerror" >&6; }
58969 +ac_res=$ac_cv_search_strerror
58970 +if test "$ac_res" != no; then
58971 + test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
58972
58973 fi
58974
58975 @@ -2501,8 +2979,8 @@ am__api_version="1.9"
58976 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
58977 # OS/2's system install, which has a completely different semantic
58978 # ./install, which can be erroneously created by make from ./install.sh.
58979 -echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
58980 -echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
58981 +{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
58982 +echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
58983 if test -z "$INSTALL"; then
58984 if test "${ac_cv_path_install+set}" = set; then
58985 echo $ECHO_N "(cached) $ECHO_C" >&6
58986 @@ -2524,7 +3002,7 @@ case $as_dir/ in
58987 # by default.
58988 for ac_prog in ginstall scoinst install; do
58989 for ac_exec_ext in '' $ac_executable_extensions; do
58990 - if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
58991 + if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
58992 if test $ac_prog = install &&
58993 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
58994 # AIX install. It has an incompatible calling convention.
58995 @@ -2543,21 +3021,22 @@ case $as_dir/ in
58996 ;;
58997 esac
58998 done
58999 +IFS=$as_save_IFS
59000
59001
59002 fi
59003 if test "${ac_cv_path_install+set}" = set; then
59004 INSTALL=$ac_cv_path_install
59005 else
59006 - # As a last resort, use the slow shell script. We don't cache a
59007 - # path for INSTALL within a source directory, because that will
59008 + # As a last resort, use the slow shell script. Don't cache a
59009 + # value for INSTALL within a source directory, because that will
59010 # break other packages using the cache if that directory is
59011 - # removed, or if the path is relative.
59012 + # removed, or if the value is a relative name.
59013 INSTALL=$ac_install_sh
59014 fi
59015 fi
59016 -echo "$as_me:$LINENO: result: $INSTALL" >&5
59017 -echo "${ECHO_T}$INSTALL" >&6
59018 +{ echo "$as_me:$LINENO: result: $INSTALL" >&5
59019 +echo "${ECHO_T}$INSTALL" >&6; }
59020
59021 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
59022 # It thinks the first close brace ends the variable substitution.
59023 @@ -2567,8 +3046,8 @@ test -z "$INSTALL_SCRIPT" && INSTALL_SCR
59024
59025 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
59026
59027 -echo "$as_me:$LINENO: checking whether build environment is sane" >&5
59028 -echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
59029 +{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5
59030 +echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
59031 # Just in case
59032 sleep 1
59033 echo timestamp > conftest.file
59034 @@ -2610,20 +3089,20 @@ echo "$as_me: error: newly created file
59035 Check your system clock" >&2;}
59036 { (exit 1); exit 1; }; }
59037 fi
59038 -echo "$as_me:$LINENO: result: yes" >&5
59039 -echo "${ECHO_T}yes" >&6
59040 +{ echo "$as_me:$LINENO: result: yes" >&5
59041 +echo "${ECHO_T}yes" >&6; }
59042 test "$program_prefix" != NONE &&
59043 - program_transform_name="s,^,$program_prefix,;$program_transform_name"
59044 + program_transform_name="s&^&$program_prefix&;$program_transform_name"
59045 # Use a double $ so make ignores it.
59046 test "$program_suffix" != NONE &&
59047 - program_transform_name="s,\$,$program_suffix,;$program_transform_name"
59048 + program_transform_name="s&\$&$program_suffix&;$program_transform_name"
59049 # Double any \ or $. echo might interpret backslashes.
59050 # By default was `s,x,x', remove it if useless.
59051 cat <<\_ACEOF >conftest.sed
59052 s/[\\$]/&&/g;s/;s,x,x,$//
59053 _ACEOF
59054 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
59055 -rm conftest.sed
59056 +rm -f conftest.sed
59057
59058 # expand $ac_aux_dir to an absolute path
59059 am_aux_dir=`cd $ac_aux_dir && pwd`
59060 @@ -2675,8 +3154,8 @@ for ac_prog in gawk mawk nawk awk
59061 do
59062 # Extract the first word of "$ac_prog", so it can be a program name with args.
59063 set dummy $ac_prog; ac_word=$2
59064 -echo "$as_me:$LINENO: checking for $ac_word" >&5
59065 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
59066 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
59067 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
59068 if test "${ac_cv_prog_AWK+set}" = set; then
59069 echo $ECHO_N "(cached) $ECHO_C" >&6
59070 else
59071 @@ -2689,54 +3168,57 @@ do
59072 IFS=$as_save_IFS
59073 test -z "$as_dir" && as_dir=.
59074 for ac_exec_ext in '' $ac_executable_extensions; do
59075 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
59076 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
59077 ac_cv_prog_AWK="$ac_prog"
59078 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
59079 break 2
59080 fi
59081 done
59082 done
59083 +IFS=$as_save_IFS
59084
59085 fi
59086 fi
59087 AWK=$ac_cv_prog_AWK
59088 if test -n "$AWK"; then
59089 - echo "$as_me:$LINENO: result: $AWK" >&5
59090 -echo "${ECHO_T}$AWK" >&6
59091 + { echo "$as_me:$LINENO: result: $AWK" >&5
59092 +echo "${ECHO_T}$AWK" >&6; }
59093 else
59094 - echo "$as_me:$LINENO: result: no" >&5
59095 -echo "${ECHO_T}no" >&6
59096 + { echo "$as_me:$LINENO: result: no" >&5
59097 +echo "${ECHO_T}no" >&6; }
59098 fi
59099
59100 +
59101 test -n "$AWK" && break
59102 done
59103
59104 -echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
59105 -echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
59106 -set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
59107 -if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
59108 +{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
59109 +echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
59110 +set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
59111 +if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
59112 echo $ECHO_N "(cached) $ECHO_C" >&6
59113 else
59114 cat >conftest.make <<\_ACEOF
59115 +SHELL = /bin/sh
59116 all:
59117 - @echo 'ac_maketemp="$(MAKE)"'
59118 + @echo '@@@%%%=$(MAKE)=@@@%%%'
59119 _ACEOF
59120 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
59121 -eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
59122 -if test -n "$ac_maketemp"; then
59123 - eval ac_cv_prog_make_${ac_make}_set=yes
59124 -else
59125 - eval ac_cv_prog_make_${ac_make}_set=no
59126 -fi
59127 +case `${MAKE-make} -f conftest.make 2>/dev/null` in
59128 + *@@@%%%=?*=@@@%%%*)
59129 + eval ac_cv_prog_make_${ac_make}_set=yes;;
59130 + *)
59131 + eval ac_cv_prog_make_${ac_make}_set=no;;
59132 +esac
59133 rm -f conftest.make
59134 fi
59135 -if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
59136 - echo "$as_me:$LINENO: result: yes" >&5
59137 -echo "${ECHO_T}yes" >&6
59138 +if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
59139 + { echo "$as_me:$LINENO: result: yes" >&5
59140 +echo "${ECHO_T}yes" >&6; }
59141 SET_MAKE=
59142 else
59143 - echo "$as_me:$LINENO: result: no" >&5
59144 -echo "${ECHO_T}no" >&6
59145 + { echo "$as_me:$LINENO: result: no" >&5
59146 +echo "${ECHO_T}no" >&6; }
59147 SET_MAKE="MAKE=${MAKE-make}"
59148 fi
59149
59150 @@ -2751,7 +3233,7 @@ rmdir .tst 2>/dev/null
59151
59152 DEPDIR="${am__leading_dot}deps"
59153
59154 - ac_config_commands="$ac_config_commands depfiles"
59155 +ac_config_commands="$ac_config_commands depfiles"
59156
59157
59158 am_make=${MAKE-make}
59159 @@ -2761,8 +3243,8 @@ am__doit:
59160 .PHONY: am__doit
59161 END
59162 # If we don't find an include directive, just comment out the code.
59163 -echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
59164 -echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
59165 +{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
59166 +echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
59167 am__include="#"
59168 am__quote=
59169 _am_result=none
59170 @@ -2789,15 +3271,15 @@ if test "$am__include" = "#"; then
59171 fi
59172
59173
59174 -echo "$as_me:$LINENO: result: $_am_result" >&5
59175 -echo "${ECHO_T}$_am_result" >&6
59176 +{ echo "$as_me:$LINENO: result: $_am_result" >&5
59177 +echo "${ECHO_T}$_am_result" >&6; }
59178 rm -f confinc confmf
59179
59180 -# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
59181 +# Check whether --enable-dependency-tracking was given.
59182 if test "${enable_dependency_tracking+set}" = set; then
59183 - enableval="$enable_dependency_tracking"
59184 + enableval=$enable_dependency_tracking;
59185 +fi
59186
59187 -fi;
59188 if test "x$enable_dependency_tracking" != xno; then
59189 am_depcomp="$ac_aux_dir/depcomp"
59190 AMDEPBACKSLASH='\'
59191 @@ -2872,8 +3354,8 @@ if test "$cross_compiling" != no; then
59192 if test -n "$ac_tool_prefix"; then
59193 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
59194 set dummy ${ac_tool_prefix}strip; ac_word=$2
59195 -echo "$as_me:$LINENO: checking for $ac_word" >&5
59196 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
59197 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
59198 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
59199 if test "${ac_cv_prog_STRIP+set}" = set; then
59200 echo $ECHO_N "(cached) $ECHO_C" >&6
59201 else
59202 @@ -2886,32 +3368,34 @@ do
59203 IFS=$as_save_IFS
59204 test -z "$as_dir" && as_dir=.
59205 for ac_exec_ext in '' $ac_executable_extensions; do
59206 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
59207 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
59208 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
59209 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
59210 break 2
59211 fi
59212 done
59213 done
59214 +IFS=$as_save_IFS
59215
59216 fi
59217 fi
59218 STRIP=$ac_cv_prog_STRIP
59219 if test -n "$STRIP"; then
59220 - echo "$as_me:$LINENO: result: $STRIP" >&5
59221 -echo "${ECHO_T}$STRIP" >&6
59222 + { echo "$as_me:$LINENO: result: $STRIP" >&5
59223 +echo "${ECHO_T}$STRIP" >&6; }
59224 else
59225 - echo "$as_me:$LINENO: result: no" >&5
59226 -echo "${ECHO_T}no" >&6
59227 + { echo "$as_me:$LINENO: result: no" >&5
59228 +echo "${ECHO_T}no" >&6; }
59229 fi
59230
59231 +
59232 fi
59233 if test -z "$ac_cv_prog_STRIP"; then
59234 ac_ct_STRIP=$STRIP
59235 # Extract the first word of "strip", so it can be a program name with args.
59236 set dummy strip; ac_word=$2
59237 -echo "$as_me:$LINENO: checking for $ac_word" >&5
59238 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
59239 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
59240 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
59241 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
59242 echo $ECHO_N "(cached) $ECHO_C" >&6
59243 else
59244 @@ -2924,27 +3408,41 @@ do
59245 IFS=$as_save_IFS
59246 test -z "$as_dir" && as_dir=.
59247 for ac_exec_ext in '' $ac_executable_extensions; do
59248 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
59249 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
59250 ac_cv_prog_ac_ct_STRIP="strip"
59251 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
59252 break 2
59253 fi
59254 done
59255 done
59256 +IFS=$as_save_IFS
59257
59258 - test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
59259 fi
59260 fi
59261 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
59262 if test -n "$ac_ct_STRIP"; then
59263 - echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
59264 -echo "${ECHO_T}$ac_ct_STRIP" >&6
59265 + { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
59266 +echo "${ECHO_T}$ac_ct_STRIP" >&6; }
59267 else
59268 - echo "$as_me:$LINENO: result: no" >&5
59269 -echo "${ECHO_T}no" >&6
59270 + { echo "$as_me:$LINENO: result: no" >&5
59271 +echo "${ECHO_T}no" >&6; }
59272 fi
59273
59274 - STRIP=$ac_ct_STRIP
59275 + if test "x$ac_ct_STRIP" = x; then
59276 + STRIP=":"
59277 + else
59278 + case $cross_compiling:$ac_tool_warned in
59279 +yes:)
59280 +{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
59281 +whose name does not start with the host triplet. If you think this
59282 +configuration is useful to you, please write to autoconf@gnu.org." >&5
59283 +echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
59284 +whose name does not start with the host triplet. If you think this
59285 +configuration is useful to you, please write to autoconf@gnu.org." >&2;}
59286 +ac_tool_warned=yes ;;
59287 +esac
59288 + STRIP=$ac_ct_STRIP
59289 + fi
59290 else
59291 STRIP="$ac_cv_prog_STRIP"
59292 fi
59293 @@ -2965,8 +3463,8 @@ am__tar='${AMTAR} chof - "$$tardir"'; am
59294
59295 depcc="$CC" am_compiler_list=
59296
59297 -echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
59298 -echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
59299 +{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
59300 +echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
59301 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
59302 echo $ECHO_N "(cached) $ECHO_C" >&6
59303 else
59304 @@ -3055,8 +3553,8 @@ else
59305 fi
59306
59307 fi
59308 -echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
59309 -echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
59310 +{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
59311 +echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
59312 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
59313
59314
59315 @@ -3074,10 +3572,9 @@ fi
59316
59317
59318
59319 -# Check whether --enable-shared or --disable-shared was given.
59320 +# Check whether --enable-shared was given.
59321 if test "${enable_shared+set}" = set; then
59322 - enableval="$enable_shared"
59323 - p=${PACKAGE-default}
59324 + enableval=$enable_shared; p=${PACKAGE-default}
59325 case $enableval in
59326 yes) enable_shared=yes ;;
59327 no) enable_shared=no ;;
59328 @@ -3095,11 +3592,11 @@ no) enable_shared=no ;;
59329 esac
59330 else
59331 enable_shared=yes
59332 -fi;
59333 -# Check whether --enable-static or --disable-static was given.
59334 +fi
59335 +
59336 +# Check whether --enable-static was given.
59337 if test "${enable_static+set}" = set; then
59338 - enableval="$enable_static"
59339 - p=${PACKAGE-default}
59340 + enableval=$enable_static; p=${PACKAGE-default}
59341 case $enableval in
59342 yes) enable_static=yes ;;
59343 no) enable_static=no ;;
59344 @@ -3117,11 +3614,11 @@ no) enable_static=no ;;
59345 esac
59346 else
59347 enable_static=yes
59348 -fi;
59349 -# Check whether --enable-fast-install or --disable-fast-install was given.
59350 +fi
59351 +
59352 +# Check whether --enable-fast-install was given.
59353 if test "${enable_fast_install+set}" = set; then
59354 - enableval="$enable_fast_install"
59355 - p=${PACKAGE-default}
59356 + enableval=$enable_fast_install; p=${PACKAGE-default}
59357 case $enableval in
59358 yes) enable_fast_install=yes ;;
59359 no) enable_fast_install=no ;;
59360 @@ -3139,20 +3636,21 @@ no) enable_fast_install=no ;;
59361 esac
59362 else
59363 enable_fast_install=yes
59364 -fi;
59365 +fi
59366 +
59367
59368 -# Check whether --with-gnu-ld or --without-gnu-ld was given.
59369 +# Check whether --with-gnu-ld was given.
59370 if test "${with_gnu_ld+set}" = set; then
59371 - withval="$with_gnu_ld"
59372 - test "$withval" = no || with_gnu_ld=yes
59373 + withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
59374 else
59375 with_gnu_ld=no
59376 -fi;
59377 +fi
59378 +
59379 ac_prog=ld
59380 if test "$GCC" = yes; then
59381 # Check if gcc -print-prog-name=ld gives a path.
59382 - echo "$as_me:$LINENO: checking for ld used by GCC" >&5
59383 -echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
59384 + { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
59385 +echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
59386 case $host in
59387 *-*-mingw*)
59388 # gcc leaves a trailing carriage return which upsets mingw
59389 @@ -3181,11 +3679,11 @@ echo $ECHO_N "checking for ld used by GC
59390 ;;
59391 esac
59392 elif test "$with_gnu_ld" = yes; then
59393 - echo "$as_me:$LINENO: checking for GNU ld" >&5
59394 -echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
59395 + { echo "$as_me:$LINENO: checking for GNU ld" >&5
59396 +echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
59397 else
59398 - echo "$as_me:$LINENO: checking for non-GNU ld" >&5
59399 -echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
59400 + { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
59401 +echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
59402 fi
59403 if test "${lt_cv_path_LD+set}" = set; then
59404 echo $ECHO_N "(cached) $ECHO_C" >&6
59405 @@ -3214,17 +3712,17 @@ fi
59406
59407 LD="$lt_cv_path_LD"
59408 if test -n "$LD"; then
59409 - echo "$as_me:$LINENO: result: $LD" >&5
59410 -echo "${ECHO_T}$LD" >&6
59411 + { echo "$as_me:$LINENO: result: $LD" >&5
59412 +echo "${ECHO_T}$LD" >&6; }
59413 else
59414 - echo "$as_me:$LINENO: result: no" >&5
59415 -echo "${ECHO_T}no" >&6
59416 + { echo "$as_me:$LINENO: result: no" >&5
59417 +echo "${ECHO_T}no" >&6; }
59418 fi
59419 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
59420 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
59421 { (exit 1); exit 1; }; }
59422 -echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
59423 -echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
59424 +{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
59425 +echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
59426 if test "${lt_cv_prog_gnu_ld+set}" = set; then
59427 echo $ECHO_N "(cached) $ECHO_C" >&6
59428 else
59429 @@ -3235,25 +3733,25 @@ else
59430 lt_cv_prog_gnu_ld=no
59431 fi
59432 fi
59433 -echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
59434 -echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
59435 +{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
59436 +echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
59437 with_gnu_ld=$lt_cv_prog_gnu_ld
59438
59439
59440 -echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
59441 -echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
59442 +{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
59443 +echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
59444 if test "${lt_cv_ld_reload_flag+set}" = set; then
59445 echo $ECHO_N "(cached) $ECHO_C" >&6
59446 else
59447 lt_cv_ld_reload_flag='-r'
59448 fi
59449 -echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
59450 -echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
59451 +{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
59452 +echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
59453 reload_flag=$lt_cv_ld_reload_flag
59454 test -n "$reload_flag" && reload_flag=" $reload_flag"
59455
59456 -echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
59457 -echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
59458 +{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
59459 +echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
59460 if test "${lt_cv_path_NM+set}" = set; then
59461 echo $ECHO_N "(cached) $ECHO_C" >&6
59462 else
59463 @@ -3288,22 +3786,22 @@ fi
59464 fi
59465
59466 NM="$lt_cv_path_NM"
59467 -echo "$as_me:$LINENO: result: $NM" >&5
59468 -echo "${ECHO_T}$NM" >&6
59469 +{ echo "$as_me:$LINENO: result: $NM" >&5
59470 +echo "${ECHO_T}$NM" >&6; }
59471
59472 -echo "$as_me:$LINENO: checking whether ln -s works" >&5
59473 -echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
59474 +{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
59475 +echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
59476 LN_S=$as_ln_s
59477 if test "$LN_S" = "ln -s"; then
59478 - echo "$as_me:$LINENO: result: yes" >&5
59479 -echo "${ECHO_T}yes" >&6
59480 + { echo "$as_me:$LINENO: result: yes" >&5
59481 +echo "${ECHO_T}yes" >&6; }
59482 else
59483 - echo "$as_me:$LINENO: result: no, using $LN_S" >&5
59484 -echo "${ECHO_T}no, using $LN_S" >&6
59485 + { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
59486 +echo "${ECHO_T}no, using $LN_S" >&6; }
59487 fi
59488
59489 -echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
59490 -echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
59491 +{ echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
59492 +echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6; }
59493 if test "${lt_cv_deplibs_check_method+set}" = set; then
59494 echo $ECHO_N "(cached) $ECHO_C" >&6
59495 else
59496 @@ -3465,8 +3963,8 @@ sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
59497 esac
59498
59499 fi
59500 -echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
59501 -echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
59502 +{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
59503 +echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
59504 file_magic_cmd=$lt_cv_file_magic_cmd
59505 deplibs_check_method=$lt_cv_deplibs_check_method
59506
59507 @@ -3476,8 +3974,8 @@ deplibs_check_method=$lt_cv_deplibs_chec
59508 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
59509
59510 # find the maximum length of command line arguments
59511 -echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
59512 -echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
59513 +{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
59514 +echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
59515 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
59516 echo $ECHO_N "(cached) $ECHO_C" >&6
59517 else
59518 @@ -3528,11 +4026,11 @@ else
59519 fi
59520
59521 if test -n "$lt_cv_sys_max_cmd_len" ; then
59522 - echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
59523 -echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
59524 + { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
59525 +echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
59526 else
59527 - echo "$as_me:$LINENO: result: none" >&5
59528 -echo "${ECHO_T}none" >&6
59529 + { echo "$as_me:$LINENO: result: none" >&5
59530 +echo "${ECHO_T}none" >&6; }
59531 fi
59532
59533
59534 @@ -3540,8 +4038,8 @@ fi
59535 case $deplibs_check_method in
59536 file_magic*)
59537 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
59538 - echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
59539 -echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
59540 + { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
59541 +echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
59542 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
59543 echo $ECHO_N "(cached) $ECHO_C" >&6
59544 else
59545 @@ -3595,17 +4093,17 @@ fi
59546
59547 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
59548 if test -n "$MAGIC_CMD"; then
59549 - echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
59550 -echo "${ECHO_T}$MAGIC_CMD" >&6
59551 + { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
59552 +echo "${ECHO_T}$MAGIC_CMD" >&6; }
59553 else
59554 - echo "$as_me:$LINENO: result: no" >&5
59555 -echo "${ECHO_T}no" >&6
59556 + { echo "$as_me:$LINENO: result: no" >&5
59557 +echo "${ECHO_T}no" >&6; }
59558 fi
59559
59560 if test -z "$lt_cv_path_MAGIC_CMD"; then
59561 if test -n "$ac_tool_prefix"; then
59562 - echo "$as_me:$LINENO: checking for file" >&5
59563 -echo $ECHO_N "checking for file... $ECHO_C" >&6
59564 + { echo "$as_me:$LINENO: checking for file" >&5
59565 +echo $ECHO_N "checking for file... $ECHO_C" >&6; }
59566 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
59567 echo $ECHO_N "(cached) $ECHO_C" >&6
59568 else
59569 @@ -3659,11 +4157,11 @@ fi
59570
59571 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
59572 if test -n "$MAGIC_CMD"; then
59573 - echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
59574 -echo "${ECHO_T}$MAGIC_CMD" >&6
59575 + { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
59576 +echo "${ECHO_T}$MAGIC_CMD" >&6; }
59577 else
59578 - echo "$as_me:$LINENO: result: no" >&5
59579 -echo "${ECHO_T}no" >&6
59580 + { echo "$as_me:$LINENO: result: no" >&5
59581 +echo "${ECHO_T}no" >&6; }
59582 fi
59583
59584 else
59585 @@ -3678,8 +4176,8 @@ esac
59586 if test -n "$ac_tool_prefix"; then
59587 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
59588 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
59589 -echo "$as_me:$LINENO: checking for $ac_word" >&5
59590 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
59591 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
59592 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
59593 if test "${ac_cv_prog_RANLIB+set}" = set; then
59594 echo $ECHO_N "(cached) $ECHO_C" >&6
59595 else
59596 @@ -3692,32 +4190,34 @@ do
59597 IFS=$as_save_IFS
59598 test -z "$as_dir" && as_dir=.
59599 for ac_exec_ext in '' $ac_executable_extensions; do
59600 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
59601 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
59602 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
59603 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
59604 break 2
59605 fi
59606 done
59607 done
59608 +IFS=$as_save_IFS
59609
59610 fi
59611 fi
59612 RANLIB=$ac_cv_prog_RANLIB
59613 if test -n "$RANLIB"; then
59614 - echo "$as_me:$LINENO: result: $RANLIB" >&5
59615 -echo "${ECHO_T}$RANLIB" >&6
59616 + { echo "$as_me:$LINENO: result: $RANLIB" >&5
59617 +echo "${ECHO_T}$RANLIB" >&6; }
59618 else
59619 - echo "$as_me:$LINENO: result: no" >&5
59620 -echo "${ECHO_T}no" >&6
59621 + { echo "$as_me:$LINENO: result: no" >&5
59622 +echo "${ECHO_T}no" >&6; }
59623 fi
59624
59625 +
59626 fi
59627 if test -z "$ac_cv_prog_RANLIB"; then
59628 ac_ct_RANLIB=$RANLIB
59629 # Extract the first word of "ranlib", so it can be a program name with args.
59630 set dummy ranlib; ac_word=$2
59631 -echo "$as_me:$LINENO: checking for $ac_word" >&5
59632 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
59633 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
59634 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
59635 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
59636 echo $ECHO_N "(cached) $ECHO_C" >&6
59637 else
59638 @@ -3730,27 +4230,41 @@ do
59639 IFS=$as_save_IFS
59640 test -z "$as_dir" && as_dir=.
59641 for ac_exec_ext in '' $ac_executable_extensions; do
59642 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
59643 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
59644 ac_cv_prog_ac_ct_RANLIB="ranlib"
59645 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
59646 break 2
59647 fi
59648 done
59649 done
59650 +IFS=$as_save_IFS
59651
59652 - test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
59653 fi
59654 fi
59655 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
59656 if test -n "$ac_ct_RANLIB"; then
59657 - echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
59658 -echo "${ECHO_T}$ac_ct_RANLIB" >&6
59659 + { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
59660 +echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
59661 else
59662 - echo "$as_me:$LINENO: result: no" >&5
59663 -echo "${ECHO_T}no" >&6
59664 + { echo "$as_me:$LINENO: result: no" >&5
59665 +echo "${ECHO_T}no" >&6; }
59666 fi
59667
59668 - RANLIB=$ac_ct_RANLIB
59669 + if test "x$ac_ct_RANLIB" = x; then
59670 + RANLIB=":"
59671 + else
59672 + case $cross_compiling:$ac_tool_warned in
59673 +yes:)
59674 +{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
59675 +whose name does not start with the host triplet. If you think this
59676 +configuration is useful to you, please write to autoconf@gnu.org." >&5
59677 +echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
59678 +whose name does not start with the host triplet. If you think this
59679 +configuration is useful to you, please write to autoconf@gnu.org." >&2;}
59680 +ac_tool_warned=yes ;;
59681 +esac
59682 + RANLIB=$ac_ct_RANLIB
59683 + fi
59684 else
59685 RANLIB="$ac_cv_prog_RANLIB"
59686 fi
59687 @@ -3758,8 +4272,8 @@ fi
59688 if test -n "$ac_tool_prefix"; then
59689 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
59690 set dummy ${ac_tool_prefix}strip; ac_word=$2
59691 -echo "$as_me:$LINENO: checking for $ac_word" >&5
59692 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
59693 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
59694 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
59695 if test "${ac_cv_prog_STRIP+set}" = set; then
59696 echo $ECHO_N "(cached) $ECHO_C" >&6
59697 else
59698 @@ -3772,32 +4286,34 @@ do
59699 IFS=$as_save_IFS
59700 test -z "$as_dir" && as_dir=.
59701 for ac_exec_ext in '' $ac_executable_extensions; do
59702 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
59703 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
59704 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
59705 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
59706 break 2
59707 fi
59708 done
59709 done
59710 +IFS=$as_save_IFS
59711
59712 fi
59713 fi
59714 STRIP=$ac_cv_prog_STRIP
59715 if test -n "$STRIP"; then
59716 - echo "$as_me:$LINENO: result: $STRIP" >&5
59717 -echo "${ECHO_T}$STRIP" >&6
59718 + { echo "$as_me:$LINENO: result: $STRIP" >&5
59719 +echo "${ECHO_T}$STRIP" >&6; }
59720 else
59721 - echo "$as_me:$LINENO: result: no" >&5
59722 -echo "${ECHO_T}no" >&6
59723 + { echo "$as_me:$LINENO: result: no" >&5
59724 +echo "${ECHO_T}no" >&6; }
59725 fi
59726
59727 +
59728 fi
59729 if test -z "$ac_cv_prog_STRIP"; then
59730 ac_ct_STRIP=$STRIP
59731 # Extract the first word of "strip", so it can be a program name with args.
59732 set dummy strip; ac_word=$2
59733 -echo "$as_me:$LINENO: checking for $ac_word" >&5
59734 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
59735 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
59736 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
59737 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
59738 echo $ECHO_N "(cached) $ECHO_C" >&6
59739 else
59740 @@ -3810,27 +4326,41 @@ do
59741 IFS=$as_save_IFS
59742 test -z "$as_dir" && as_dir=.
59743 for ac_exec_ext in '' $ac_executable_extensions; do
59744 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
59745 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
59746 ac_cv_prog_ac_ct_STRIP="strip"
59747 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
59748 break 2
59749 fi
59750 done
59751 done
59752 +IFS=$as_save_IFS
59753
59754 - test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
59755 fi
59756 fi
59757 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
59758 if test -n "$ac_ct_STRIP"; then
59759 - echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
59760 -echo "${ECHO_T}$ac_ct_STRIP" >&6
59761 + { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
59762 +echo "${ECHO_T}$ac_ct_STRIP" >&6; }
59763 else
59764 - echo "$as_me:$LINENO: result: no" >&5
59765 -echo "${ECHO_T}no" >&6
59766 + { echo "$as_me:$LINENO: result: no" >&5
59767 +echo "${ECHO_T}no" >&6; }
59768 fi
59769
59770 - STRIP=$ac_ct_STRIP
59771 + if test "x$ac_ct_STRIP" = x; then
59772 + STRIP=":"
59773 + else
59774 + case $cross_compiling:$ac_tool_warned in
59775 +yes:)
59776 +{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
59777 +whose name does not start with the host triplet. If you think this
59778 +configuration is useful to you, please write to autoconf@gnu.org." >&5
59779 +echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
59780 +whose name does not start with the host triplet. If you think this
59781 +configuration is useful to you, please write to autoconf@gnu.org." >&2;}
59782 +ac_tool_warned=yes ;;
59783 +esac
59784 + STRIP=$ac_ct_STRIP
59785 + fi
59786 else
59787 STRIP="$ac_cv_prog_STRIP"
59788 fi
59789 @@ -3845,22 +4375,22 @@ test "$GCC" = yes && libtool_flags="$lib
59790 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
59791
59792
59793 -# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
59794 +# Check whether --enable-libtool-lock was given.
59795 if test "${enable_libtool_lock+set}" = set; then
59796 - enableval="$enable_libtool_lock"
59797 + enableval=$enable_libtool_lock;
59798 +fi
59799
59800 -fi;
59801 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
59802 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
59803
59804
59805 -# Check whether --with-pic or --without-pic was given.
59806 +# Check whether --with-pic was given.
59807 if test "${with_pic+set}" = set; then
59808 - withval="$with_pic"
59809 - pic_mode="$withval"
59810 + withval=$with_pic; pic_mode="$withval"
59811 else
59812 pic_mode=default
59813 -fi;
59814 +fi
59815 +
59816 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
59817 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
59818
59819 @@ -3869,7 +4399,7 @@ test x"$pic_mode" = xno && libtool_flags
59820 case $host in
59821 *-*-irix6*)
59822 # Find out which ABI we are using.
59823 - echo '#line 3872 "configure"' > conftest.$ac_ext
59824 + echo '#line 4402 "configure"' > conftest.$ac_ext
59825 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
59826 (eval $ac_compile) 2>&5
59827 ac_status=$?
59828 @@ -3974,13 +4504,12 @@ x86_64-*linux*|ppc*-*linux*|powerpc*-*li
59829 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
59830 SAVE_CFLAGS="$CFLAGS"
59831 CFLAGS="$CFLAGS -belf"
59832 - echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
59833 -echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
59834 + { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
59835 +echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
59836 if test "${lt_cv_cc_needs_belf+set}" = set; then
59837 echo $ECHO_N "(cached) $ECHO_C" >&6
59838 else
59839
59840 -
59841 ac_ext=c
59842 ac_cpp='$CPP $CPPFLAGS'
59843 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
59844 @@ -4003,35 +4532,32 @@ main ()
59845 }
59846 _ACEOF
59847 rm -f conftest.$ac_objext conftest$ac_exeext
59848 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
59849 - (eval $ac_link) 2>conftest.er1
59850 +if { (ac_try="$ac_link"
59851 +case "(($ac_try" in
59852 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
59853 + *) ac_try_echo=$ac_try;;
59854 +esac
59855 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
59856 + (eval "$ac_link") 2>conftest.er1
59857 ac_status=$?
59858 grep -v '^ *+' conftest.er1 >conftest.err
59859 rm -f conftest.er1
59860 cat conftest.err >&5
59861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59862 - (exit $ac_status); } &&
59863 - { ac_try='test -z "$ac_c_werror_flag"
59864 - || test ! -s conftest.err'
59865 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
59866 - (eval $ac_try) 2>&5
59867 - ac_status=$?
59868 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
59869 - (exit $ac_status); }; } &&
59870 - { ac_try='test -s conftest$ac_exeext'
59871 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
59872 - (eval $ac_try) 2>&5
59873 - ac_status=$?
59874 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
59875 - (exit $ac_status); }; }; then
59876 + (exit $ac_status); } && {
59877 + test -z "$ac_c_werror_flag" ||
59878 + test ! -s conftest.err
59879 + } && test -s conftest$ac_exeext &&
59880 + $as_test_x conftest$ac_exeext; then
59881 lt_cv_cc_needs_belf=yes
59882 else
59883 echo "$as_me: failed program was:" >&5
59884 sed 's/^/| /' conftest.$ac_ext >&5
59885
59886 -lt_cv_cc_needs_belf=no
59887 + lt_cv_cc_needs_belf=no
59888 fi
59889 -rm -f conftest.err conftest.$ac_objext \
59890 +
59891 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
59892 conftest$ac_exeext conftest.$ac_ext
59893 ac_ext=c
59894 ac_cpp='$CPP $CPPFLAGS'
59895 @@ -4040,8 +4566,8 @@ ac_link='$CC -o conftest$ac_exeext $CFLA
59896 ac_compiler_gnu=$ac_cv_c_compiler_gnu
59897
59898 fi
59899 -echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
59900 -echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
59901 +{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
59902 +echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
59903 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
59904 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
59905 CFLAGS="$SAVE_CFLAGS"
59906 @@ -4071,39 +4597,58 @@ _ACEOF
59907
59908 # The following way of writing the cache mishandles newlines in values,
59909 # but we know of no workaround that is simple, portable, and efficient.
59910 -# So, don't put newlines in cache variables' values.
59911 +# So, we kill variables containing newlines.
59912 # Ultrix sh set writes to stderr and can't be redirected directly,
59913 # and sets the high bit in the cache file unless we assign to the vars.
59914 -{
59915 +(
59916 + for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
59917 + eval ac_val=\$$ac_var
59918 + case $ac_val in #(
59919 + *${as_nl}*)
59920 + case $ac_var in #(
59921 + *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
59922 +echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
59923 + esac
59924 + case $ac_var in #(
59925 + _ | IFS | as_nl) ;; #(
59926 + *) $as_unset $ac_var ;;
59927 + esac ;;
59928 + esac
59929 + done
59930 +
59931 (set) 2>&1 |
59932 - case `(ac_space=' '; set | grep ac_space) 2>&1` in
59933 - *ac_space=\ *)
59934 + case $as_nl`(ac_space=' '; set) 2>&1` in #(
59935 + *${as_nl}ac_space=\ *)
59936 # `set' does not quote correctly, so add quotes (double-quote
59937 # substitution turns \\\\ into \\, and sed turns \\ into \).
59938 sed -n \
59939 "s/'/'\\\\''/g;
59940 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
59941 - ;;
59942 + ;; #(
59943 *)
59944 # `set' quotes correctly as required by POSIX, so do not add quotes.
59945 - sed -n \
59946 - "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
59947 + sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
59948 ;;
59949 - esac;
59950 -} |
59951 + esac |
59952 + sort
59953 +) |
59954 sed '
59955 + /^ac_cv_env_/b end
59956 t clear
59957 - : clear
59958 + :clear
59959 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
59960 t end
59961 - /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
59962 - : end' >>confcache
59963 -if diff $cache_file confcache >/dev/null 2>&1; then :; else
59964 - if test -w $cache_file; then
59965 - test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
59966 + s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
59967 + :end' >>confcache
59968 +if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
59969 + if test -w "$cache_file"; then
59970 + test "x$cache_file" != "x/dev/null" &&
59971 + { echo "$as_me:$LINENO: updating cache $cache_file" >&5
59972 +echo "$as_me: updating cache $cache_file" >&6;}
59973 cat confcache >$cache_file
59974 else
59975 - echo "not updating unwritable cache $cache_file"
59976 + { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
59977 +echo "$as_me: not updating unwritable cache $cache_file" >&6;}
59978 fi
59979 fi
59980 rm -f confcache
59981 @@ -4129,8 +4674,8 @@ if test -r "$cache_file"; then
59982 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
59983 echo "$as_me: loading cache $cache_file" >&6;}
59984 case $cache_file in
59985 - [\\/]* | ?:[\\/]* ) . $cache_file;;
59986 - *) . ./$cache_file;;
59987 + [\\/]* | ?:[\\/]* ) . "$cache_file";;
59988 + *) . "./$cache_file";;
59989 esac
59990 fi
59991 else
59992 @@ -4157,15 +4702,14 @@ exec 5>>./config.log
59993
59994
59995
59996 -# Check whether --with-lib-path or --without-lib-path was given.
59997 +# Check whether --with-lib-path was given.
59998 if test "${with_lib_path+set}" = set; then
59999 - withval="$with_lib_path"
60000 - LIB_PATH=$withval
60001 -fi;
60002 -# Check whether --enable-targets or --disable-targets was given.
60003 + withval=$with_lib_path; LIB_PATH=$withval
60004 +fi
60005 +
60006 +# Check whether --enable-targets was given.
60007 if test "${enable_targets+set}" = set; then
60008 - enableval="$enable_targets"
60009 - case "${enableval}" in
60010 + enableval=$enable_targets; case "${enableval}" in
60011 yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5
60012 echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;}
60013 { (exit 1); exit 1; }; }
60014 @@ -4173,10 +4717,10 @@ echo "$as_me: error: enable-targets opti
60015 no) enable_targets= ;;
60016 *) enable_targets=$enableval ;;
60017 esac
60018 -fi; # Check whether --enable-64-bit-bfd or --disable-64-bit-bfd was given.
60019 +fi
60020 +# Check whether --enable-64-bit-bfd was given.
60021 if test "${enable_64_bit_bfd+set}" = set; then
60022 - enableval="$enable_64_bit_bfd"
60023 - case "${enableval}" in
60024 + enableval=$enable_64_bit_bfd; case "${enableval}" in
60025 yes) want64=true ;;
60026 no) want64=false ;;
60027 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for 64-bit-bfd option" >&5
60028 @@ -4185,12 +4729,12 @@ echo "$as_me: error: bad value ${enablev
60029 esac
60030 else
60031 want64=false
60032 -fi;
60033 +fi
60034
60035 -# Check whether --with-sysroot or --without-sysroot was given.
60036 -if test "${with_sysroot+set}" = set; then
60037 - withval="$with_sysroot"
60038
60039 +# Check whether --with-sysroot was given.
60040 +if test "${with_sysroot+set}" = set; then
60041 + withval=$with_sysroot;
60042 case ${with_sysroot} in
60043 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_alias}/sys-root' ;;
60044 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
60045 @@ -4222,7 +4766,8 @@ else
60046 TARGET_SYSTEM_ROOT=
60047 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"\"'
60048
60049 -fi;
60050 +fi
60051 +
60052
60053
60054
60055 @@ -4230,17 +4775,17 @@ fi;
60056
60057 GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
60058
60059 -# Check whether --enable-werror or --disable-werror was given.
60060 +# Check whether --enable-werror was given.
60061 if test "${enable_werror+set}" = set; then
60062 - enableval="$enable_werror"
60063 - case "${enableval}" in
60064 + enableval=$enable_werror; case "${enableval}" in
60065 yes | y) ERROR_ON_WARNING="yes" ;;
60066 no | n) ERROR_ON_WARNING="no" ;;
60067 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
60068 echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
60069 { (exit 1); exit 1; }; } ;;
60070 esac
60071 -fi;
60072 +fi
60073 +
60074
60075 # Enable -Werror by default when using gcc
60076 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
60077 @@ -4257,10 +4802,9 @@ if test "${GCC}" = yes ; then
60078 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
60079 fi
60080
60081 -# Check whether --enable-build-warnings or --disable-build-warnings was given.
60082 +# Check whether --enable-build-warnings was given.
60083 if test "${enable_build_warnings+set}" = set; then
60084 - enableval="$enable_build_warnings"
60085 - case "${enableval}" in
60086 + enableval=$enable_build_warnings; case "${enableval}" in
60087 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
60088 no) if test "${GCC}" = yes ; then
60089 WARN_CFLAGS="-w"
60090 @@ -4271,7 +4815,8 @@ if test "${enable_build_warnings+set}" =
60091 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
60092 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
60093 esac
60094 -fi;
60095 +fi
60096 +
60097
60098 if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
60099 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
60100 @@ -4281,7 +4826,7 @@ fi
60101
60102
60103
60104 - ac_config_headers="$ac_config_headers config.h:config.in"
60105 +ac_config_headers="$ac_config_headers config.h:config.in"
60106
60107
60108 if test -z "$target" ; then
60109 @@ -4305,8 +4850,8 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
60110 if test -n "$ac_tool_prefix"; then
60111 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
60112 set dummy ${ac_tool_prefix}gcc; ac_word=$2
60113 -echo "$as_me:$LINENO: checking for $ac_word" >&5
60114 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
60115 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
60116 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
60117 if test "${ac_cv_prog_CC+set}" = set; then
60118 echo $ECHO_N "(cached) $ECHO_C" >&6
60119 else
60120 @@ -4319,32 +4864,34 @@ do
60121 IFS=$as_save_IFS
60122 test -z "$as_dir" && as_dir=.
60123 for ac_exec_ext in '' $ac_executable_extensions; do
60124 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
60125 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
60126 ac_cv_prog_CC="${ac_tool_prefix}gcc"
60127 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
60128 break 2
60129 fi
60130 done
60131 done
60132 +IFS=$as_save_IFS
60133
60134 fi
60135 fi
60136 CC=$ac_cv_prog_CC
60137 if test -n "$CC"; then
60138 - echo "$as_me:$LINENO: result: $CC" >&5
60139 -echo "${ECHO_T}$CC" >&6
60140 + { echo "$as_me:$LINENO: result: $CC" >&5
60141 +echo "${ECHO_T}$CC" >&6; }
60142 else
60143 - echo "$as_me:$LINENO: result: no" >&5
60144 -echo "${ECHO_T}no" >&6
60145 + { echo "$as_me:$LINENO: result: no" >&5
60146 +echo "${ECHO_T}no" >&6; }
60147 fi
60148
60149 +
60150 fi
60151 if test -z "$ac_cv_prog_CC"; then
60152 ac_ct_CC=$CC
60153 # Extract the first word of "gcc", so it can be a program name with args.
60154 set dummy gcc; ac_word=$2
60155 -echo "$as_me:$LINENO: checking for $ac_word" >&5
60156 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
60157 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
60158 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
60159 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
60160 echo $ECHO_N "(cached) $ECHO_C" >&6
60161 else
60162 @@ -4357,36 +4904,51 @@ do
60163 IFS=$as_save_IFS
60164 test -z "$as_dir" && as_dir=.
60165 for ac_exec_ext in '' $ac_executable_extensions; do
60166 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
60167 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
60168 ac_cv_prog_ac_ct_CC="gcc"
60169 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
60170 break 2
60171 fi
60172 done
60173 done
60174 +IFS=$as_save_IFS
60175
60176 fi
60177 fi
60178 ac_ct_CC=$ac_cv_prog_ac_ct_CC
60179 if test -n "$ac_ct_CC"; then
60180 - echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
60181 -echo "${ECHO_T}$ac_ct_CC" >&6
60182 + { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
60183 +echo "${ECHO_T}$ac_ct_CC" >&6; }
60184 else
60185 - echo "$as_me:$LINENO: result: no" >&5
60186 -echo "${ECHO_T}no" >&6
60187 + { echo "$as_me:$LINENO: result: no" >&5
60188 +echo "${ECHO_T}no" >&6; }
60189 fi
60190
60191 - CC=$ac_ct_CC
60192 + if test "x$ac_ct_CC" = x; then
60193 + CC=""
60194 + else
60195 + case $cross_compiling:$ac_tool_warned in
60196 +yes:)
60197 +{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
60198 +whose name does not start with the host triplet. If you think this
60199 +configuration is useful to you, please write to autoconf@gnu.org." >&5
60200 +echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
60201 +whose name does not start with the host triplet. If you think this
60202 +configuration is useful to you, please write to autoconf@gnu.org." >&2;}
60203 +ac_tool_warned=yes ;;
60204 +esac
60205 + CC=$ac_ct_CC
60206 + fi
60207 else
60208 CC="$ac_cv_prog_CC"
60209 fi
60210
60211 if test -z "$CC"; then
60212 - if test -n "$ac_tool_prefix"; then
60213 - # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
60214 + if test -n "$ac_tool_prefix"; then
60215 + # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
60216 set dummy ${ac_tool_prefix}cc; ac_word=$2
60217 -echo "$as_me:$LINENO: checking for $ac_word" >&5
60218 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
60219 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
60220 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
60221 if test "${ac_cv_prog_CC+set}" = set; then
60222 echo $ECHO_N "(cached) $ECHO_C" >&6
60223 else
60224 @@ -4399,74 +4961,34 @@ do
60225 IFS=$as_save_IFS
60226 test -z "$as_dir" && as_dir=.
60227 for ac_exec_ext in '' $ac_executable_extensions; do
60228 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
60229 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
60230 ac_cv_prog_CC="${ac_tool_prefix}cc"
60231 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
60232 break 2
60233 fi
60234 done
60235 done
60236 +IFS=$as_save_IFS
60237
60238 fi
60239 fi
60240 CC=$ac_cv_prog_CC
60241 if test -n "$CC"; then
60242 - echo "$as_me:$LINENO: result: $CC" >&5
60243 -echo "${ECHO_T}$CC" >&6
60244 -else
60245 - echo "$as_me:$LINENO: result: no" >&5
60246 -echo "${ECHO_T}no" >&6
60247 -fi
60248 -
60249 -fi
60250 -if test -z "$ac_cv_prog_CC"; then
60251 - ac_ct_CC=$CC
60252 - # Extract the first word of "cc", so it can be a program name with args.
60253 -set dummy cc; ac_word=$2
60254 -echo "$as_me:$LINENO: checking for $ac_word" >&5
60255 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
60256 -if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
60257 - echo $ECHO_N "(cached) $ECHO_C" >&6
60258 -else
60259 - if test -n "$ac_ct_CC"; then
60260 - ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
60261 -else
60262 -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
60263 -for as_dir in $PATH
60264 -do
60265 - IFS=$as_save_IFS
60266 - test -z "$as_dir" && as_dir=.
60267 - for ac_exec_ext in '' $ac_executable_extensions; do
60268 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
60269 - ac_cv_prog_ac_ct_CC="cc"
60270 - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
60271 - break 2
60272 - fi
60273 -done
60274 -done
60275 -
60276 -fi
60277 -fi
60278 -ac_ct_CC=$ac_cv_prog_ac_ct_CC
60279 -if test -n "$ac_ct_CC"; then
60280 - echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
60281 -echo "${ECHO_T}$ac_ct_CC" >&6
60282 + { echo "$as_me:$LINENO: result: $CC" >&5
60283 +echo "${ECHO_T}$CC" >&6; }
60284 else
60285 - echo "$as_me:$LINENO: result: no" >&5
60286 -echo "${ECHO_T}no" >&6
60287 + { echo "$as_me:$LINENO: result: no" >&5
60288 +echo "${ECHO_T}no" >&6; }
60289 fi
60290
60291 - CC=$ac_ct_CC
60292 -else
60293 - CC="$ac_cv_prog_CC"
60294 -fi
60295
60296 + fi
60297 fi
60298 if test -z "$CC"; then
60299 # Extract the first word of "cc", so it can be a program name with args.
60300 set dummy cc; ac_word=$2
60301 -echo "$as_me:$LINENO: checking for $ac_word" >&5
60302 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
60303 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
60304 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
60305 if test "${ac_cv_prog_CC+set}" = set; then
60306 echo $ECHO_N "(cached) $ECHO_C" >&6
60307 else
60308 @@ -4480,7 +5002,7 @@ do
60309 IFS=$as_save_IFS
60310 test -z "$as_dir" && as_dir=.
60311 for ac_exec_ext in '' $ac_executable_extensions; do
60312 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
60313 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
60314 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
60315 ac_prog_rejected=yes
60316 continue
60317 @@ -4491,6 +5013,7 @@ do
60318 fi
60319 done
60320 done
60321 +IFS=$as_save_IFS
60322
60323 if test $ac_prog_rejected = yes; then
60324 # We found a bogon in the path, so make sure we never use it.
60325 @@ -4508,22 +5031,23 @@ fi
60326 fi
60327 CC=$ac_cv_prog_CC
60328 if test -n "$CC"; then
60329 - echo "$as_me:$LINENO: result: $CC" >&5
60330 -echo "${ECHO_T}$CC" >&6
60331 + { echo "$as_me:$LINENO: result: $CC" >&5
60332 +echo "${ECHO_T}$CC" >&6; }
60333 else
60334 - echo "$as_me:$LINENO: result: no" >&5
60335 -echo "${ECHO_T}no" >&6
60336 + { echo "$as_me:$LINENO: result: no" >&5
60337 +echo "${ECHO_T}no" >&6; }
60338 fi
60339
60340 +
60341 fi
60342 if test -z "$CC"; then
60343 if test -n "$ac_tool_prefix"; then
60344 - for ac_prog in cl
60345 + for ac_prog in cl.exe
60346 do
60347 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
60348 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
60349 -echo "$as_me:$LINENO: checking for $ac_word" >&5
60350 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
60351 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
60352 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
60353 if test "${ac_cv_prog_CC+set}" = set; then
60354 echo $ECHO_N "(cached) $ECHO_C" >&6
60355 else
60356 @@ -4536,36 +5060,38 @@ do
60357 IFS=$as_save_IFS
60358 test -z "$as_dir" && as_dir=.
60359 for ac_exec_ext in '' $ac_executable_extensions; do
60360 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
60361 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
60362 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
60363 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
60364 break 2
60365 fi
60366 done
60367 done
60368 +IFS=$as_save_IFS
60369
60370 fi
60371 fi
60372 CC=$ac_cv_prog_CC
60373 if test -n "$CC"; then
60374 - echo "$as_me:$LINENO: result: $CC" >&5
60375 -echo "${ECHO_T}$CC" >&6
60376 + { echo "$as_me:$LINENO: result: $CC" >&5
60377 +echo "${ECHO_T}$CC" >&6; }
60378 else
60379 - echo "$as_me:$LINENO: result: no" >&5
60380 -echo "${ECHO_T}no" >&6
60381 + { echo "$as_me:$LINENO: result: no" >&5
60382 +echo "${ECHO_T}no" >&6; }
60383 fi
60384
60385 +
60386 test -n "$CC" && break
60387 done
60388 fi
60389 if test -z "$CC"; then
60390 ac_ct_CC=$CC
60391 - for ac_prog in cl
60392 + for ac_prog in cl.exe
60393 do
60394 # Extract the first word of "$ac_prog", so it can be a program name with args.
60395 set dummy $ac_prog; ac_word=$2
60396 -echo "$as_me:$LINENO: checking for $ac_word" >&5
60397 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
60398 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
60399 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
60400 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
60401 echo $ECHO_N "(cached) $ECHO_C" >&6
60402 else
60403 @@ -4578,29 +5104,45 @@ do
60404 IFS=$as_save_IFS
60405 test -z "$as_dir" && as_dir=.
60406 for ac_exec_ext in '' $ac_executable_extensions; do
60407 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
60408 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
60409 ac_cv_prog_ac_ct_CC="$ac_prog"
60410 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
60411 break 2
60412 fi
60413 done
60414 done
60415 +IFS=$as_save_IFS
60416
60417 fi
60418 fi
60419 ac_ct_CC=$ac_cv_prog_ac_ct_CC
60420 if test -n "$ac_ct_CC"; then
60421 - echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
60422 -echo "${ECHO_T}$ac_ct_CC" >&6
60423 + { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
60424 +echo "${ECHO_T}$ac_ct_CC" >&6; }
60425 else
60426 - echo "$as_me:$LINENO: result: no" >&5
60427 -echo "${ECHO_T}no" >&6
60428 + { echo "$as_me:$LINENO: result: no" >&5
60429 +echo "${ECHO_T}no" >&6; }
60430 fi
60431
60432 +
60433 test -n "$ac_ct_CC" && break
60434 done
60435
60436 - CC=$ac_ct_CC
60437 + if test "x$ac_ct_CC" = x; then
60438 + CC=""
60439 + else
60440 + case $cross_compiling:$ac_tool_warned in
60441 +yes:)
60442 +{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
60443 +whose name does not start with the host triplet. If you think this
60444 +configuration is useful to you, please write to autoconf@gnu.org." >&5
60445 +echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
60446 +whose name does not start with the host triplet. If you think this
60447 +configuration is useful to you, please write to autoconf@gnu.org." >&2;}
60448 +ac_tool_warned=yes ;;
60449 +esac
60450 + CC=$ac_ct_CC
60451 + fi
60452 fi
60453
60454 fi
60455 @@ -4613,27 +5155,41 @@ See \`config.log' for more details." >&2
60456 { (exit 1); exit 1; }; }
60457
60458 # Provide some information about the compiler.
60459 -echo "$as_me:$LINENO:" \
60460 - "checking for C compiler version" >&5
60461 +echo "$as_me:$LINENO: checking for C compiler version" >&5
60462 ac_compiler=`set X $ac_compile; echo $2`
60463 -{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
60464 - (eval $ac_compiler --version </dev/null >&5) 2>&5
60465 +{ (ac_try="$ac_compiler --version >&5"
60466 +case "(($ac_try" in
60467 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
60468 + *) ac_try_echo=$ac_try;;
60469 +esac
60470 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
60471 + (eval "$ac_compiler --version >&5") 2>&5
60472 ac_status=$?
60473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60474 (exit $ac_status); }
60475 -{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
60476 - (eval $ac_compiler -v </dev/null >&5) 2>&5
60477 +{ (ac_try="$ac_compiler -v >&5"
60478 +case "(($ac_try" in
60479 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
60480 + *) ac_try_echo=$ac_try;;
60481 +esac
60482 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
60483 + (eval "$ac_compiler -v >&5") 2>&5
60484 ac_status=$?
60485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60486 (exit $ac_status); }
60487 -{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
60488 - (eval $ac_compiler -V </dev/null >&5) 2>&5
60489 +{ (ac_try="$ac_compiler -V >&5"
60490 +case "(($ac_try" in
60491 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
60492 + *) ac_try_echo=$ac_try;;
60493 +esac
60494 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
60495 + (eval "$ac_compiler -V >&5") 2>&5
60496 ac_status=$?
60497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60498 (exit $ac_status); }
60499
60500 -echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
60501 -echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
60502 +{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
60503 +echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
60504 if test "${ac_cv_c_compiler_gnu+set}" = set; then
60505 echo $ECHO_N "(cached) $ECHO_C" >&6
60506 else
60507 @@ -4656,50 +5212,49 @@ main ()
60508 }
60509 _ACEOF
60510 rm -f conftest.$ac_objext
60511 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
60512 - (eval $ac_compile) 2>conftest.er1
60513 +if { (ac_try="$ac_compile"
60514 +case "(($ac_try" in
60515 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
60516 + *) ac_try_echo=$ac_try;;
60517 +esac
60518 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
60519 + (eval "$ac_compile") 2>conftest.er1
60520 ac_status=$?
60521 grep -v '^ *+' conftest.er1 >conftest.err
60522 rm -f conftest.er1
60523 cat conftest.err >&5
60524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60525 - (exit $ac_status); } &&
60526 - { ac_try='test -z "$ac_c_werror_flag"
60527 - || test ! -s conftest.err'
60528 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
60529 - (eval $ac_try) 2>&5
60530 - ac_status=$?
60531 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
60532 - (exit $ac_status); }; } &&
60533 - { ac_try='test -s conftest.$ac_objext'
60534 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
60535 - (eval $ac_try) 2>&5
60536 - ac_status=$?
60537 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
60538 - (exit $ac_status); }; }; then
60539 + (exit $ac_status); } && {
60540 + test -z "$ac_c_werror_flag" ||
60541 + test ! -s conftest.err
60542 + } && test -s conftest.$ac_objext; then
60543 ac_compiler_gnu=yes
60544 else
60545 echo "$as_me: failed program was:" >&5
60546 sed 's/^/| /' conftest.$ac_ext >&5
60547
60548 -ac_compiler_gnu=no
60549 + ac_compiler_gnu=no
60550 fi
60551 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
60552 +
60553 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
60554 ac_cv_c_compiler_gnu=$ac_compiler_gnu
60555
60556 fi
60557 -echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
60558 -echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
60559 +{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
60560 +echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
60561 GCC=`test $ac_compiler_gnu = yes && echo yes`
60562 ac_test_CFLAGS=${CFLAGS+set}
60563 ac_save_CFLAGS=$CFLAGS
60564 -CFLAGS="-g"
60565 -echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
60566 -echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
60567 +{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
60568 +echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
60569 if test "${ac_cv_prog_cc_g+set}" = set; then
60570 echo $ECHO_N "(cached) $ECHO_C" >&6
60571 else
60572 - cat >conftest.$ac_ext <<_ACEOF
60573 + ac_save_c_werror_flag=$ac_c_werror_flag
60574 + ac_c_werror_flag=yes
60575 + ac_cv_prog_cc_g=no
60576 + CFLAGS="-g"
60577 + cat >conftest.$ac_ext <<_ACEOF
60578 /* confdefs.h. */
60579 _ACEOF
60580 cat confdefs.h >>conftest.$ac_ext
60581 @@ -4715,59 +5270,139 @@ main ()
60582 }
60583 _ACEOF
60584 rm -f conftest.$ac_objext
60585 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
60586 - (eval $ac_compile) 2>conftest.er1
60587 +if { (ac_try="$ac_compile"
60588 +case "(($ac_try" in
60589 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
60590 + *) ac_try_echo=$ac_try;;
60591 +esac
60592 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
60593 + (eval "$ac_compile") 2>conftest.er1
60594 ac_status=$?
60595 grep -v '^ *+' conftest.er1 >conftest.err
60596 rm -f conftest.er1
60597 cat conftest.err >&5
60598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60599 - (exit $ac_status); } &&
60600 - { ac_try='test -z "$ac_c_werror_flag"
60601 - || test ! -s conftest.err'
60602 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
60603 - (eval $ac_try) 2>&5
60604 - ac_status=$?
60605 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
60606 - (exit $ac_status); }; } &&
60607 - { ac_try='test -s conftest.$ac_objext'
60608 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
60609 - (eval $ac_try) 2>&5
60610 - ac_status=$?
60611 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
60612 - (exit $ac_status); }; }; then
60613 + (exit $ac_status); } && {
60614 + test -z "$ac_c_werror_flag" ||
60615 + test ! -s conftest.err
60616 + } && test -s conftest.$ac_objext; then
60617 ac_cv_prog_cc_g=yes
60618 else
60619 echo "$as_me: failed program was:" >&5
60620 sed 's/^/| /' conftest.$ac_ext >&5
60621
60622 -ac_cv_prog_cc_g=no
60623 -fi
60624 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
60625 -fi
60626 -echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
60627 -echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
60628 -if test "$ac_test_CFLAGS" = set; then
60629 - CFLAGS=$ac_save_CFLAGS
60630 -elif test $ac_cv_prog_cc_g = yes; then
60631 - if test "$GCC" = yes; then
60632 - CFLAGS="-g -O2"
60633 - else
60634 - CFLAGS="-g"
60635 - fi
60636 -else
60637 - if test "$GCC" = yes; then
60638 - CFLAGS="-O2"
60639 - else
60640 - CFLAGS=
60641 - fi
60642 -fi
60643 -echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
60644 -echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
60645 -if test "${ac_cv_prog_cc_stdc+set}" = set; then
60646 - echo $ECHO_N "(cached) $ECHO_C" >&6
60647 -else
60648 - ac_cv_prog_cc_stdc=no
60649 + CFLAGS=""
60650 + cat >conftest.$ac_ext <<_ACEOF
60651 +/* confdefs.h. */
60652 +_ACEOF
60653 +cat confdefs.h >>conftest.$ac_ext
60654 +cat >>conftest.$ac_ext <<_ACEOF
60655 +/* end confdefs.h. */
60656 +
60657 +int
60658 +main ()
60659 +{
60660 +
60661 + ;
60662 + return 0;
60663 +}
60664 +_ACEOF
60665 +rm -f conftest.$ac_objext
60666 +if { (ac_try="$ac_compile"
60667 +case "(($ac_try" in
60668 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
60669 + *) ac_try_echo=$ac_try;;
60670 +esac
60671 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
60672 + (eval "$ac_compile") 2>conftest.er1
60673 + ac_status=$?
60674 + grep -v '^ *+' conftest.er1 >conftest.err
60675 + rm -f conftest.er1
60676 + cat conftest.err >&5
60677 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
60678 + (exit $ac_status); } && {
60679 + test -z "$ac_c_werror_flag" ||
60680 + test ! -s conftest.err
60681 + } && test -s conftest.$ac_objext; then
60682 + :
60683 +else
60684 + echo "$as_me: failed program was:" >&5
60685 +sed 's/^/| /' conftest.$ac_ext >&5
60686 +
60687 + ac_c_werror_flag=$ac_save_c_werror_flag
60688 + CFLAGS="-g"
60689 + cat >conftest.$ac_ext <<_ACEOF
60690 +/* confdefs.h. */
60691 +_ACEOF
60692 +cat confdefs.h >>conftest.$ac_ext
60693 +cat >>conftest.$ac_ext <<_ACEOF
60694 +/* end confdefs.h. */
60695 +
60696 +int
60697 +main ()
60698 +{
60699 +
60700 + ;
60701 + return 0;
60702 +}
60703 +_ACEOF
60704 +rm -f conftest.$ac_objext
60705 +if { (ac_try="$ac_compile"
60706 +case "(($ac_try" in
60707 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
60708 + *) ac_try_echo=$ac_try;;
60709 +esac
60710 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
60711 + (eval "$ac_compile") 2>conftest.er1
60712 + ac_status=$?
60713 + grep -v '^ *+' conftest.er1 >conftest.err
60714 + rm -f conftest.er1
60715 + cat conftest.err >&5
60716 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
60717 + (exit $ac_status); } && {
60718 + test -z "$ac_c_werror_flag" ||
60719 + test ! -s conftest.err
60720 + } && test -s conftest.$ac_objext; then
60721 + ac_cv_prog_cc_g=yes
60722 +else
60723 + echo "$as_me: failed program was:" >&5
60724 +sed 's/^/| /' conftest.$ac_ext >&5
60725 +
60726 +
60727 +fi
60728 +
60729 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
60730 +fi
60731 +
60732 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
60733 +fi
60734 +
60735 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
60736 + ac_c_werror_flag=$ac_save_c_werror_flag
60737 +fi
60738 +{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
60739 +echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
60740 +if test "$ac_test_CFLAGS" = set; then
60741 + CFLAGS=$ac_save_CFLAGS
60742 +elif test $ac_cv_prog_cc_g = yes; then
60743 + if test "$GCC" = yes; then
60744 + CFLAGS="-g -O2"
60745 + else
60746 + CFLAGS="-g"
60747 + fi
60748 +else
60749 + if test "$GCC" = yes; then
60750 + CFLAGS="-O2"
60751 + else
60752 + CFLAGS=
60753 + fi
60754 +fi
60755 +{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
60756 +echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
60757 +if test "${ac_cv_prog_cc_c89+set}" = set; then
60758 + echo $ECHO_N "(cached) $ECHO_C" >&6
60759 +else
60760 + ac_cv_prog_cc_c89=no
60761 ac_save_CC=$CC
60762 cat >conftest.$ac_ext <<_ACEOF
60763 /* confdefs.h. */
60764 @@ -4801,12 +5436,17 @@ static char *f (char * (*g) (char **, in
60765 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
60766 function prototypes and stuff, but not '\xHH' hex character constants.
60767 These don't provoke an error unfortunately, instead are silently treated
60768 - as 'x'. The following induces an error, until -std1 is added to get
60769 + as 'x'. The following induces an error, until -std is added to get
60770 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
60771 array size at least. It's necessary to write '\x00'==0 to get something
60772 - that's true only with -std1. */
60773 + that's true only with -std. */
60774 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
60775
60776 +/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
60777 + inside strings and character constants. */
60778 +#define FOO(x) 'x'
60779 +int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
60780 +
60781 int test (int i, double x);
60782 struct s1 {int (*f) (int a);};
60783 struct s2 {int (*f) (double a);};
60784 @@ -4821,205 +5461,57 @@ return f (e, argv, 0) != argv[0] || f
60785 return 0;
60786 }
60787 _ACEOF
60788 -# Don't try gcc -ansi; that turns off useful extensions and
60789 -# breaks some systems' header files.
60790 -# AIX -qlanglvl=ansi
60791 -# Ultrix and OSF/1 -std1
60792 -# HP-UX 10.20 and later -Ae
60793 -# HP-UX older versions -Aa -D_HPUX_SOURCE
60794 -# SVR4 -Xc -D__EXTENSIONS__
60795 -for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
60796 +for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
60797 + -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
60798 do
60799 CC="$ac_save_CC $ac_arg"
60800 rm -f conftest.$ac_objext
60801 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
60802 - (eval $ac_compile) 2>conftest.er1
60803 +if { (ac_try="$ac_compile"
60804 +case "(($ac_try" in
60805 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
60806 + *) ac_try_echo=$ac_try;;
60807 +esac
60808 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
60809 + (eval "$ac_compile") 2>conftest.er1
60810 ac_status=$?
60811 grep -v '^ *+' conftest.er1 >conftest.err
60812 rm -f conftest.er1
60813 cat conftest.err >&5
60814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60815 - (exit $ac_status); } &&
60816 - { ac_try='test -z "$ac_c_werror_flag"
60817 - || test ! -s conftest.err'
60818 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
60819 - (eval $ac_try) 2>&5
60820 - ac_status=$?
60821 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
60822 - (exit $ac_status); }; } &&
60823 - { ac_try='test -s conftest.$ac_objext'
60824 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
60825 - (eval $ac_try) 2>&5
60826 - ac_status=$?
60827 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
60828 - (exit $ac_status); }; }; then
60829 - ac_cv_prog_cc_stdc=$ac_arg
60830 -break
60831 + (exit $ac_status); } && {
60832 + test -z "$ac_c_werror_flag" ||
60833 + test ! -s conftest.err
60834 + } && test -s conftest.$ac_objext; then
60835 + ac_cv_prog_cc_c89=$ac_arg
60836 else
60837 echo "$as_me: failed program was:" >&5
60838 sed 's/^/| /' conftest.$ac_ext >&5
60839
60840 +
60841 fi
60842 -rm -f conftest.err conftest.$ac_objext
60843 +
60844 +rm -f core conftest.err conftest.$ac_objext
60845 + test "x$ac_cv_prog_cc_c89" != "xno" && break
60846 done
60847 -rm -f conftest.$ac_ext conftest.$ac_objext
60848 +rm -f conftest.$ac_ext
60849 CC=$ac_save_CC
60850
60851 fi
60852 -
60853 -case "x$ac_cv_prog_cc_stdc" in
60854 - x|xno)
60855 - echo "$as_me:$LINENO: result: none needed" >&5
60856 -echo "${ECHO_T}none needed" >&6 ;;
60857 +# AC_CACHE_VAL
60858 +case "x$ac_cv_prog_cc_c89" in
60859 + x)
60860 + { echo "$as_me:$LINENO: result: none needed" >&5
60861 +echo "${ECHO_T}none needed" >&6; } ;;
60862 + xno)
60863 + { echo "$as_me:$LINENO: result: unsupported" >&5
60864 +echo "${ECHO_T}unsupported" >&6; } ;;
60865 *)
60866 - echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
60867 -echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
60868 - CC="$CC $ac_cv_prog_cc_stdc" ;;
60869 + CC="$CC $ac_cv_prog_cc_c89"
60870 + { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
60871 +echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
60872 esac
60873
60874 -# Some people use a C++ compiler to compile C. Since we use `exit',
60875 -# in C++ we need to declare it. In case someone uses the same compiler
60876 -# for both compiling C and C++ we need to have the C++ compiler decide
60877 -# the declaration of exit, since it's the most demanding environment.
60878 -cat >conftest.$ac_ext <<_ACEOF
60879 -#ifndef __cplusplus
60880 - choke me
60881 -#endif
60882 -_ACEOF
60883 -rm -f conftest.$ac_objext
60884 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
60885 - (eval $ac_compile) 2>conftest.er1
60886 - ac_status=$?
60887 - grep -v '^ *+' conftest.er1 >conftest.err
60888 - rm -f conftest.er1
60889 - cat conftest.err >&5
60890 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
60891 - (exit $ac_status); } &&
60892 - { ac_try='test -z "$ac_c_werror_flag"
60893 - || test ! -s conftest.err'
60894 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
60895 - (eval $ac_try) 2>&5
60896 - ac_status=$?
60897 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
60898 - (exit $ac_status); }; } &&
60899 - { ac_try='test -s conftest.$ac_objext'
60900 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
60901 - (eval $ac_try) 2>&5
60902 - ac_status=$?
60903 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
60904 - (exit $ac_status); }; }; then
60905 - for ac_declaration in \
60906 - '' \
60907 - 'extern "C" void std::exit (int) throw (); using std::exit;' \
60908 - 'extern "C" void std::exit (int); using std::exit;' \
60909 - 'extern "C" void exit (int) throw ();' \
60910 - 'extern "C" void exit (int);' \
60911 - 'void exit (int);'
60912 -do
60913 - cat >conftest.$ac_ext <<_ACEOF
60914 -/* confdefs.h. */
60915 -_ACEOF
60916 -cat confdefs.h >>conftest.$ac_ext
60917 -cat >>conftest.$ac_ext <<_ACEOF
60918 -/* end confdefs.h. */
60919 -$ac_declaration
60920 -#include <stdlib.h>
60921 -int
60922 -main ()
60923 -{
60924 -exit (42);
60925 - ;
60926 - return 0;
60927 -}
60928 -_ACEOF
60929 -rm -f conftest.$ac_objext
60930 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
60931 - (eval $ac_compile) 2>conftest.er1
60932 - ac_status=$?
60933 - grep -v '^ *+' conftest.er1 >conftest.err
60934 - rm -f conftest.er1
60935 - cat conftest.err >&5
60936 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
60937 - (exit $ac_status); } &&
60938 - { ac_try='test -z "$ac_c_werror_flag"
60939 - || test ! -s conftest.err'
60940 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
60941 - (eval $ac_try) 2>&5
60942 - ac_status=$?
60943 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
60944 - (exit $ac_status); }; } &&
60945 - { ac_try='test -s conftest.$ac_objext'
60946 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
60947 - (eval $ac_try) 2>&5
60948 - ac_status=$?
60949 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
60950 - (exit $ac_status); }; }; then
60951 - :
60952 -else
60953 - echo "$as_me: failed program was:" >&5
60954 -sed 's/^/| /' conftest.$ac_ext >&5
60955 -
60956 -continue
60957 -fi
60958 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
60959 - cat >conftest.$ac_ext <<_ACEOF
60960 -/* confdefs.h. */
60961 -_ACEOF
60962 -cat confdefs.h >>conftest.$ac_ext
60963 -cat >>conftest.$ac_ext <<_ACEOF
60964 -/* end confdefs.h. */
60965 -$ac_declaration
60966 -int
60967 -main ()
60968 -{
60969 -exit (42);
60970 - ;
60971 - return 0;
60972 -}
60973 -_ACEOF
60974 -rm -f conftest.$ac_objext
60975 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
60976 - (eval $ac_compile) 2>conftest.er1
60977 - ac_status=$?
60978 - grep -v '^ *+' conftest.er1 >conftest.err
60979 - rm -f conftest.er1
60980 - cat conftest.err >&5
60981 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
60982 - (exit $ac_status); } &&
60983 - { ac_try='test -z "$ac_c_werror_flag"
60984 - || test ! -s conftest.err'
60985 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
60986 - (eval $ac_try) 2>&5
60987 - ac_status=$?
60988 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
60989 - (exit $ac_status); }; } &&
60990 - { ac_try='test -s conftest.$ac_objext'
60991 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
60992 - (eval $ac_try) 2>&5
60993 - ac_status=$?
60994 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
60995 - (exit $ac_status); }; }; then
60996 - break
60997 -else
60998 - echo "$as_me: failed program was:" >&5
60999 -sed 's/^/| /' conftest.$ac_ext >&5
61000 -
61001 -fi
61002 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
61003 -done
61004 -rm -f conftest*
61005 -if test -n "$ac_declaration"; then
61006 - echo '#ifdef __cplusplus' >>confdefs.h
61007 - echo $ac_declaration >>confdefs.h
61008 - echo '#endif' >>confdefs.h
61009 -fi
61010 -
61011 -else
61012 - echo "$as_me: failed program was:" >&5
61013 -sed 's/^/| /' conftest.$ac_ext >&5
61014
61015 -fi
61016 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
61017 ac_ext=c
61018 ac_cpp='$CPP $CPPFLAGS'
61019 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
61020 @@ -5039,8 +5531,8 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
61021 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
61022 # OS/2's system install, which has a completely different semantic
61023 # ./install, which can be erroneously created by make from ./install.sh.
61024 -echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
61025 -echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
61026 +{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
61027 +echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
61028 if test -z "$INSTALL"; then
61029 if test "${ac_cv_path_install+set}" = set; then
61030 echo $ECHO_N "(cached) $ECHO_C" >&6
61031 @@ -5062,7 +5554,7 @@ case $as_dir/ in
61032 # by default.
61033 for ac_prog in ginstall scoinst install; do
61034 for ac_exec_ext in '' $ac_executable_extensions; do
61035 - if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
61036 + if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
61037 if test $ac_prog = install &&
61038 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
61039 # AIX install. It has an incompatible calling convention.
61040 @@ -5081,21 +5573,22 @@ case $as_dir/ in
61041 ;;
61042 esac
61043 done
61044 +IFS=$as_save_IFS
61045
61046
61047 fi
61048 if test "${ac_cv_path_install+set}" = set; then
61049 INSTALL=$ac_cv_path_install
61050 else
61051 - # As a last resort, use the slow shell script. We don't cache a
61052 - # path for INSTALL within a source directory, because that will
61053 + # As a last resort, use the slow shell script. Don't cache a
61054 + # value for INSTALL within a source directory, because that will
61055 # break other packages using the cache if that directory is
61056 - # removed, or if the path is relative.
61057 + # removed, or if the value is a relative name.
61058 INSTALL=$ac_install_sh
61059 fi
61060 fi
61061 -echo "$as_me:$LINENO: result: $INSTALL" >&5
61062 -echo "${ECHO_T}$INSTALL" >&6
61063 +{ echo "$as_me:$LINENO: result: $INSTALL" >&5
61064 +echo "${ECHO_T}$INSTALL" >&6; }
61065
61066 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
61067 # It thinks the first close brace ends the variable substitution.
61068 @@ -5110,8 +5603,8 @@ ALL_LINGUAS="fr sv tr es da vi zh_CN"
61069 if test -n "$ac_tool_prefix"; then
61070 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
61071 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
61072 -echo "$as_me:$LINENO: checking for $ac_word" >&5
61073 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
61074 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
61075 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
61076 if test "${ac_cv_prog_RANLIB+set}" = set; then
61077 echo $ECHO_N "(cached) $ECHO_C" >&6
61078 else
61079 @@ -5124,32 +5617,34 @@ do
61080 IFS=$as_save_IFS
61081 test -z "$as_dir" && as_dir=.
61082 for ac_exec_ext in '' $ac_executable_extensions; do
61083 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
61084 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
61085 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
61086 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
61087 break 2
61088 fi
61089 done
61090 done
61091 +IFS=$as_save_IFS
61092
61093 fi
61094 fi
61095 RANLIB=$ac_cv_prog_RANLIB
61096 if test -n "$RANLIB"; then
61097 - echo "$as_me:$LINENO: result: $RANLIB" >&5
61098 -echo "${ECHO_T}$RANLIB" >&6
61099 + { echo "$as_me:$LINENO: result: $RANLIB" >&5
61100 +echo "${ECHO_T}$RANLIB" >&6; }
61101 else
61102 - echo "$as_me:$LINENO: result: no" >&5
61103 -echo "${ECHO_T}no" >&6
61104 + { echo "$as_me:$LINENO: result: no" >&5
61105 +echo "${ECHO_T}no" >&6; }
61106 fi
61107
61108 +
61109 fi
61110 if test -z "$ac_cv_prog_RANLIB"; then
61111 ac_ct_RANLIB=$RANLIB
61112 # Extract the first word of "ranlib", so it can be a program name with args.
61113 set dummy ranlib; ac_word=$2
61114 -echo "$as_me:$LINENO: checking for $ac_word" >&5
61115 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
61116 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
61117 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
61118 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
61119 echo $ECHO_N "(cached) $ECHO_C" >&6
61120 else
61121 @@ -5162,27 +5657,41 @@ do
61122 IFS=$as_save_IFS
61123 test -z "$as_dir" && as_dir=.
61124 for ac_exec_ext in '' $ac_executable_extensions; do
61125 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
61126 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
61127 ac_cv_prog_ac_ct_RANLIB="ranlib"
61128 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
61129 break 2
61130 fi
61131 done
61132 done
61133 +IFS=$as_save_IFS
61134
61135 - test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
61136 fi
61137 fi
61138 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
61139 if test -n "$ac_ct_RANLIB"; then
61140 - echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
61141 -echo "${ECHO_T}$ac_ct_RANLIB" >&6
61142 + { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
61143 +echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
61144 else
61145 - echo "$as_me:$LINENO: result: no" >&5
61146 -echo "${ECHO_T}no" >&6
61147 + { echo "$as_me:$LINENO: result: no" >&5
61148 +echo "${ECHO_T}no" >&6; }
61149 fi
61150
61151 - RANLIB=$ac_ct_RANLIB
61152 + if test "x$ac_ct_RANLIB" = x; then
61153 + RANLIB=":"
61154 + else
61155 + case $cross_compiling:$ac_tool_warned in
61156 +yes:)
61157 +{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
61158 +whose name does not start with the host triplet. If you think this
61159 +configuration is useful to you, please write to autoconf@gnu.org." >&5
61160 +echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
61161 +whose name does not start with the host triplet. If you think this
61162 +configuration is useful to you, please write to autoconf@gnu.org." >&2;}
61163 +ac_tool_warned=yes ;;
61164 +esac
61165 + RANLIB=$ac_ct_RANLIB
61166 + fi
61167 else
61168 RANLIB="$ac_cv_prog_RANLIB"
61169 fi
61170 @@ -5192,8 +5701,8 @@ ac_cpp='$CPP $CPPFLAGS'
61171 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
61172 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
61173 ac_compiler_gnu=$ac_cv_c_compiler_gnu
61174 -echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
61175 -echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
61176 +{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
61177 +echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
61178 # On Suns, sometimes $CPP names a directory.
61179 if test -n "$CPP" && test -d "$CPP"; then
61180 CPP=
61181 @@ -5227,24 +5736,22 @@ cat >>conftest.$ac_ext <<_ACEOF
61182 #endif
61183 Syntax error
61184 _ACEOF
61185 -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
61186 - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
61187 +if { (ac_try="$ac_cpp conftest.$ac_ext"
61188 +case "(($ac_try" in
61189 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
61190 + *) ac_try_echo=$ac_try;;
61191 +esac
61192 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
61193 + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
61194 ac_status=$?
61195 grep -v '^ *+' conftest.er1 >conftest.err
61196 rm -f conftest.er1
61197 cat conftest.err >&5
61198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61199 - (exit $ac_status); } >/dev/null; then
61200 - if test -s conftest.err; then
61201 - ac_cpp_err=$ac_c_preproc_warn_flag
61202 - ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
61203 - else
61204 - ac_cpp_err=
61205 - fi
61206 -else
61207 - ac_cpp_err=yes
61208 -fi
61209 -if test -z "$ac_cpp_err"; then
61210 + (exit $ac_status); } >/dev/null && {
61211 + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
61212 + test ! -s conftest.err
61213 + }; then
61214 :
61215 else
61216 echo "$as_me: failed program was:" >&5
61217 @@ -5253,9 +5760,10 @@ sed 's/^/| /' conftest.$ac_ext >&5
61218 # Broken: fails on valid input.
61219 continue
61220 fi
61221 +
61222 rm -f conftest.err conftest.$ac_ext
61223
61224 - # OK, works on sane cases. Now check whether non-existent headers
61225 + # OK, works on sane cases. Now check whether nonexistent headers
61226 # can be detected and how.
61227 cat >conftest.$ac_ext <<_ACEOF
61228 /* confdefs.h. */
61229 @@ -5265,24 +5773,22 @@ cat >>conftest.$ac_ext <<_ACEOF
61230 /* end confdefs.h. */
61231 #include <ac_nonexistent.h>
61232 _ACEOF
61233 -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
61234 - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
61235 +if { (ac_try="$ac_cpp conftest.$ac_ext"
61236 +case "(($ac_try" in
61237 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
61238 + *) ac_try_echo=$ac_try;;
61239 +esac
61240 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
61241 + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
61242 ac_status=$?
61243 grep -v '^ *+' conftest.er1 >conftest.err
61244 rm -f conftest.er1
61245 cat conftest.err >&5
61246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61247 - (exit $ac_status); } >/dev/null; then
61248 - if test -s conftest.err; then
61249 - ac_cpp_err=$ac_c_preproc_warn_flag
61250 - ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
61251 - else
61252 - ac_cpp_err=
61253 - fi
61254 -else
61255 - ac_cpp_err=yes
61256 -fi
61257 -if test -z "$ac_cpp_err"; then
61258 + (exit $ac_status); } >/dev/null && {
61259 + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
61260 + test ! -s conftest.err
61261 + }; then
61262 # Broken: success on invalid input.
61263 continue
61264 else
61265 @@ -5293,6 +5799,7 @@ sed 's/^/| /' conftest.$ac_ext >&5
61266 ac_preproc_ok=:
61267 break
61268 fi
61269 +
61270 rm -f conftest.err conftest.$ac_ext
61271
61272 done
61273 @@ -5310,8 +5817,8 @@ fi
61274 else
61275 ac_cv_prog_CPP=$CPP
61276 fi
61277 -echo "$as_me:$LINENO: result: $CPP" >&5
61278 -echo "${ECHO_T}$CPP" >&6
61279 +{ echo "$as_me:$LINENO: result: $CPP" >&5
61280 +echo "${ECHO_T}$CPP" >&6; }
61281 ac_preproc_ok=false
61282 for ac_c_preproc_warn_flag in '' yes
61283 do
61284 @@ -5334,24 +5841,22 @@ cat >>conftest.$ac_ext <<_ACEOF
61285 #endif
61286 Syntax error
61287 _ACEOF
61288 -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
61289 - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
61290 +if { (ac_try="$ac_cpp conftest.$ac_ext"
61291 +case "(($ac_try" in
61292 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
61293 + *) ac_try_echo=$ac_try;;
61294 +esac
61295 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
61296 + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
61297 ac_status=$?
61298 grep -v '^ *+' conftest.er1 >conftest.err
61299 rm -f conftest.er1
61300 cat conftest.err >&5
61301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61302 - (exit $ac_status); } >/dev/null; then
61303 - if test -s conftest.err; then
61304 - ac_cpp_err=$ac_c_preproc_warn_flag
61305 - ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
61306 - else
61307 - ac_cpp_err=
61308 - fi
61309 -else
61310 - ac_cpp_err=yes
61311 -fi
61312 -if test -z "$ac_cpp_err"; then
61313 + (exit $ac_status); } >/dev/null && {
61314 + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
61315 + test ! -s conftest.err
61316 + }; then
61317 :
61318 else
61319 echo "$as_me: failed program was:" >&5
61320 @@ -5360,9 +5865,10 @@ sed 's/^/| /' conftest.$ac_ext >&5
61321 # Broken: fails on valid input.
61322 continue
61323 fi
61324 +
61325 rm -f conftest.err conftest.$ac_ext
61326
61327 - # OK, works on sane cases. Now check whether non-existent headers
61328 + # OK, works on sane cases. Now check whether nonexistent headers
61329 # can be detected and how.
61330 cat >conftest.$ac_ext <<_ACEOF
61331 /* confdefs.h. */
61332 @@ -5372,24 +5878,22 @@ cat >>conftest.$ac_ext <<_ACEOF
61333 /* end confdefs.h. */
61334 #include <ac_nonexistent.h>
61335 _ACEOF
61336 -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
61337 - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
61338 +if { (ac_try="$ac_cpp conftest.$ac_ext"
61339 +case "(($ac_try" in
61340 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
61341 + *) ac_try_echo=$ac_try;;
61342 +esac
61343 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
61344 + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
61345 ac_status=$?
61346 grep -v '^ *+' conftest.er1 >conftest.err
61347 rm -f conftest.er1
61348 cat conftest.err >&5
61349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61350 - (exit $ac_status); } >/dev/null; then
61351 - if test -s conftest.err; then
61352 - ac_cpp_err=$ac_c_preproc_warn_flag
61353 - ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
61354 - else
61355 - ac_cpp_err=
61356 - fi
61357 -else
61358 - ac_cpp_err=yes
61359 -fi
61360 -if test -z "$ac_cpp_err"; then
61361 + (exit $ac_status); } >/dev/null && {
61362 + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
61363 + test ! -s conftest.err
61364 + }; then
61365 # Broken: success on invalid input.
61366 continue
61367 else
61368 @@ -5400,6 +5904,7 @@ sed 's/^/| /' conftest.$ac_ext >&5
61369 ac_preproc_ok=:
61370 break
61371 fi
61372 +
61373 rm -f conftest.err conftest.$ac_ext
61374
61375 done
61376 @@ -5422,79 +5927,222 @@ ac_link='$CC -o conftest$ac_exeext $CFLA
61377 ac_compiler_gnu=$ac_cv_c_compiler_gnu
61378
61379
61380 -echo "$as_me:$LINENO: checking for egrep" >&5
61381 -echo $ECHO_N "checking for egrep... $ECHO_C" >&6
61382 -if test "${ac_cv_prog_egrep+set}" = set; then
61383 +{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
61384 +echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
61385 +if test "${ac_cv_path_GREP+set}" = set; then
61386 + echo $ECHO_N "(cached) $ECHO_C" >&6
61387 +else
61388 + # Extract the first word of "grep ggrep" to use in msg output
61389 +if test -z "$GREP"; then
61390 +set dummy grep ggrep; ac_prog_name=$2
61391 +if test "${ac_cv_path_GREP+set}" = set; then
61392 echo $ECHO_N "(cached) $ECHO_C" >&6
61393 else
61394 - if echo a | (grep -E '(a|b)') >/dev/null 2>&1
61395 - then ac_cv_prog_egrep='grep -E'
61396 - else ac_cv_prog_egrep='egrep'
61397 + ac_path_GREP_found=false
61398 +# Loop through the user's path and test for each of PROGNAME-LIST
61399 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
61400 +for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
61401 +do
61402 + IFS=$as_save_IFS
61403 + test -z "$as_dir" && as_dir=.
61404 + for ac_prog in grep ggrep; do
61405 + for ac_exec_ext in '' $ac_executable_extensions; do
61406 + ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
61407 + { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
61408 + # Check for GNU ac_path_GREP and select it if it is found.
61409 + # Check for GNU $ac_path_GREP
61410 +case `"$ac_path_GREP" --version 2>&1` in
61411 +*GNU*)
61412 + ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
61413 +*)
61414 + ac_count=0
61415 + echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
61416 + while :
61417 + do
61418 + cat "conftest.in" "conftest.in" >"conftest.tmp"
61419 + mv "conftest.tmp" "conftest.in"
61420 + cp "conftest.in" "conftest.nl"
61421 + echo 'GREP' >> "conftest.nl"
61422 + "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
61423 + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
61424 + ac_count=`expr $ac_count + 1`
61425 + if test $ac_count -gt ${ac_path_GREP_max-0}; then
61426 + # Best one so far, save it but keep looking for a better one
61427 + ac_cv_path_GREP="$ac_path_GREP"
61428 + ac_path_GREP_max=$ac_count
61429 fi
61430 -fi
61431 -echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
61432 -echo "${ECHO_T}$ac_cv_prog_egrep" >&6
61433 - EGREP=$ac_cv_prog_egrep
61434 + # 10*(2^10) chars as input seems more than enough
61435 + test $ac_count -gt 10 && break
61436 + done
61437 + rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
61438 +esac
61439
61440
61441 -echo "$as_me:$LINENO: checking for ANSI C header files" >&5
61442 -echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
61443 -if test "${ac_cv_header_stdc+set}" = set; then
61444 - echo $ECHO_N "(cached) $ECHO_C" >&6
61445 -else
61446 - cat >conftest.$ac_ext <<_ACEOF
61447 -/* confdefs.h. */
61448 -_ACEOF
61449 -cat confdefs.h >>conftest.$ac_ext
61450 -cat >>conftest.$ac_ext <<_ACEOF
61451 -/* end confdefs.h. */
61452 -#include <stdlib.h>
61453 -#include <stdarg.h>
61454 -#include <string.h>
61455 -#include <float.h>
61456 + $ac_path_GREP_found && break 3
61457 + done
61458 +done
61459
61460 -int
61461 -main ()
61462 -{
61463 +done
61464 +IFS=$as_save_IFS
61465
61466 - ;
61467 - return 0;
61468 -}
61469 -_ACEOF
61470 -rm -f conftest.$ac_objext
61471 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
61472 - (eval $ac_compile) 2>conftest.er1
61473 - ac_status=$?
61474 - grep -v '^ *+' conftest.er1 >conftest.err
61475 - rm -f conftest.er1
61476 - cat conftest.err >&5
61477 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
61478 - (exit $ac_status); } &&
61479 - { ac_try='test -z "$ac_c_werror_flag"
61480 - || test ! -s conftest.err'
61481 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
61482 - (eval $ac_try) 2>&5
61483 - ac_status=$?
61484 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
61485 - (exit $ac_status); }; } &&
61486 - { ac_try='test -s conftest.$ac_objext'
61487 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
61488 - (eval $ac_try) 2>&5
61489 - ac_status=$?
61490 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
61491 - (exit $ac_status); }; }; then
61492 - ac_cv_header_stdc=yes
61493 -else
61494 - echo "$as_me: failed program was:" >&5
61495 -sed 's/^/| /' conftest.$ac_ext >&5
61496
61497 -ac_cv_header_stdc=no
61498 fi
61499 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
61500
61501 -if test $ac_cv_header_stdc = yes; then
61502 - # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
61503 - cat >conftest.$ac_ext <<_ACEOF
61504 +GREP="$ac_cv_path_GREP"
61505 +if test -z "$GREP"; then
61506 + { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
61507 +echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
61508 + { (exit 1); exit 1; }; }
61509 +fi
61510 +
61511 +else
61512 + ac_cv_path_GREP=$GREP
61513 +fi
61514 +
61515 +
61516 +fi
61517 +{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
61518 +echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
61519 + GREP="$ac_cv_path_GREP"
61520 +
61521 +
61522 +{ echo "$as_me:$LINENO: checking for egrep" >&5
61523 +echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
61524 +if test "${ac_cv_path_EGREP+set}" = set; then
61525 + echo $ECHO_N "(cached) $ECHO_C" >&6
61526 +else
61527 + if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
61528 + then ac_cv_path_EGREP="$GREP -E"
61529 + else
61530 + # Extract the first word of "egrep" to use in msg output
61531 +if test -z "$EGREP"; then
61532 +set dummy egrep; ac_prog_name=$2
61533 +if test "${ac_cv_path_EGREP+set}" = set; then
61534 + echo $ECHO_N "(cached) $ECHO_C" >&6
61535 +else
61536 + ac_path_EGREP_found=false
61537 +# Loop through the user's path and test for each of PROGNAME-LIST
61538 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
61539 +for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
61540 +do
61541 + IFS=$as_save_IFS
61542 + test -z "$as_dir" && as_dir=.
61543 + for ac_prog in egrep; do
61544 + for ac_exec_ext in '' $ac_executable_extensions; do
61545 + ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
61546 + { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
61547 + # Check for GNU ac_path_EGREP and select it if it is found.
61548 + # Check for GNU $ac_path_EGREP
61549 +case `"$ac_path_EGREP" --version 2>&1` in
61550 +*GNU*)
61551 + ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
61552 +*)
61553 + ac_count=0
61554 + echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
61555 + while :
61556 + do
61557 + cat "conftest.in" "conftest.in" >"conftest.tmp"
61558 + mv "conftest.tmp" "conftest.in"
61559 + cp "conftest.in" "conftest.nl"
61560 + echo 'EGREP' >> "conftest.nl"
61561 + "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
61562 + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
61563 + ac_count=`expr $ac_count + 1`
61564 + if test $ac_count -gt ${ac_path_EGREP_max-0}; then
61565 + # Best one so far, save it but keep looking for a better one
61566 + ac_cv_path_EGREP="$ac_path_EGREP"
61567 + ac_path_EGREP_max=$ac_count
61568 + fi
61569 + # 10*(2^10) chars as input seems more than enough
61570 + test $ac_count -gt 10 && break
61571 + done
61572 + rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
61573 +esac
61574 +
61575 +
61576 + $ac_path_EGREP_found && break 3
61577 + done
61578 +done
61579 +
61580 +done
61581 +IFS=$as_save_IFS
61582 +
61583 +
61584 +fi
61585 +
61586 +EGREP="$ac_cv_path_EGREP"
61587 +if test -z "$EGREP"; then
61588 + { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
61589 +echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
61590 + { (exit 1); exit 1; }; }
61591 +fi
61592 +
61593 +else
61594 + ac_cv_path_EGREP=$EGREP
61595 +fi
61596 +
61597 +
61598 + fi
61599 +fi
61600 +{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
61601 +echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
61602 + EGREP="$ac_cv_path_EGREP"
61603 +
61604 +
61605 +{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
61606 +echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
61607 +if test "${ac_cv_header_stdc+set}" = set; then
61608 + echo $ECHO_N "(cached) $ECHO_C" >&6
61609 +else
61610 + cat >conftest.$ac_ext <<_ACEOF
61611 +/* confdefs.h. */
61612 +_ACEOF
61613 +cat confdefs.h >>conftest.$ac_ext
61614 +cat >>conftest.$ac_ext <<_ACEOF
61615 +/* end confdefs.h. */
61616 +#include <stdlib.h>
61617 +#include <stdarg.h>
61618 +#include <string.h>
61619 +#include <float.h>
61620 +
61621 +int
61622 +main ()
61623 +{
61624 +
61625 + ;
61626 + return 0;
61627 +}
61628 +_ACEOF
61629 +rm -f conftest.$ac_objext
61630 +if { (ac_try="$ac_compile"
61631 +case "(($ac_try" in
61632 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
61633 + *) ac_try_echo=$ac_try;;
61634 +esac
61635 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
61636 + (eval "$ac_compile") 2>conftest.er1
61637 + ac_status=$?
61638 + grep -v '^ *+' conftest.er1 >conftest.err
61639 + rm -f conftest.er1
61640 + cat conftest.err >&5
61641 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
61642 + (exit $ac_status); } && {
61643 + test -z "$ac_c_werror_flag" ||
61644 + test ! -s conftest.err
61645 + } && test -s conftest.$ac_objext; then
61646 + ac_cv_header_stdc=yes
61647 +else
61648 + echo "$as_me: failed program was:" >&5
61649 +sed 's/^/| /' conftest.$ac_ext >&5
61650 +
61651 + ac_cv_header_stdc=no
61652 +fi
61653 +
61654 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
61655 +
61656 +if test $ac_cv_header_stdc = yes; then
61657 + # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
61658 + cat >conftest.$ac_ext <<_ACEOF
61659 /* confdefs.h. */
61660 _ACEOF
61661 cat confdefs.h >>conftest.$ac_ext
61662 @@ -5546,6 +6194,7 @@ cat confdefs.h >>conftest.$ac_ext
61663 cat >>conftest.$ac_ext <<_ACEOF
61664 /* end confdefs.h. */
61665 #include <ctype.h>
61666 +#include <stdlib.h>
61667 #if ((' ' & 0x0FF) == 0x020)
61668 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
61669 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
61670 @@ -5565,18 +6214,27 @@ main ()
61671 for (i = 0; i < 256; i++)
61672 if (XOR (islower (i), ISLOWER (i))
61673 || toupper (i) != TOUPPER (i))
61674 - exit(2);
61675 - exit (0);
61676 + return 2;
61677 + return 0;
61678 }
61679 _ACEOF
61680 rm -f conftest$ac_exeext
61681 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
61682 - (eval $ac_link) 2>&5
61683 +if { (ac_try="$ac_link"
61684 +case "(($ac_try" in
61685 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
61686 + *) ac_try_echo=$ac_try;;
61687 +esac
61688 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
61689 + (eval "$ac_link") 2>&5
61690 ac_status=$?
61691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61692 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
61693 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
61694 - (eval $ac_try) 2>&5
61695 + { (case "(($ac_try" in
61696 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
61697 + *) ac_try_echo=$ac_try;;
61698 +esac
61699 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
61700 + (eval "$ac_try") 2>&5
61701 ac_status=$?
61702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61703 (exit $ac_status); }; }; then
61704 @@ -5589,12 +6247,14 @@ sed 's/^/| /' conftest.$ac_ext >&5
61705 ( exit $ac_status )
61706 ac_cv_header_stdc=no
61707 fi
61708 -rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
61709 +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
61710 fi
61711 +
61712 +
61713 fi
61714 fi
61715 -echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
61716 -echo "${ECHO_T}$ac_cv_header_stdc" >&6
61717 +{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
61718 +echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
61719 if test $ac_cv_header_stdc = yes; then
61720
61721 cat >>confdefs.h <<\_ACEOF
61722 @@ -5603,8 +6263,8 @@ _ACEOF
61723
61724 fi
61725
61726 -echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
61727 -echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
61728 +{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
61729 +echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
61730 if test "${ac_cv_c_const+set}" = set; then
61731 echo $ECHO_N "(cached) $ECHO_C" >&6
61732 else
61733 @@ -5622,10 +6282,10 @@ main ()
61734 #ifndef __cplusplus
61735 /* Ultrix mips cc rejects this. */
61736 typedef int charset[2];
61737 - const charset x;
61738 + const charset cs;
61739 /* SunOS 4.1.1 cc rejects this. */
61740 - char const *const *ccp;
61741 - char **p;
61742 + char const *const *pcpcc;
61743 + char **ppc;
61744 /* NEC SVR4.0.2 mips cc rejects this. */
61745 struct point {int x, y;};
61746 static struct point const zero = {0,0};
61747 @@ -5634,16 +6294,17 @@ main ()
61748 an arm of an if-expression whose if-part is not a constant
61749 expression */
61750 const char *g = "string";
61751 - ccp = &g + (g ? g-g : 0);
61752 + pcpcc = &g + (g ? g-g : 0);
61753 /* HPUX 7.0 cc rejects these. */
61754 - ++ccp;
61755 - p = (char**) ccp;
61756 - ccp = (char const *const *) p;
61757 + ++pcpcc;
61758 + ppc = (char**) pcpcc;
61759 + pcpcc = (char const *const *) ppc;
61760 { /* SCO 3.2v4 cc rejects this. */
61761 char *t;
61762 char const *s = 0 ? (char *) 0 : (char const *) 0;
61763
61764 *t++ = 0;
61765 + if (s) return 0;
61766 }
61767 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
61768 int x[] = {25, 17};
61769 @@ -5662,7 +6323,9 @@ main ()
61770 }
61771 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
61772 const int foo = 10;
61773 + if (!foo) return 0;
61774 }
61775 + return !cs[0] && !zero.x;
61776 #endif
61777
61778 ;
61779 @@ -5670,38 +6333,34 @@ main ()
61780 }
61781 _ACEOF
61782 rm -f conftest.$ac_objext
61783 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
61784 - (eval $ac_compile) 2>conftest.er1
61785 +if { (ac_try="$ac_compile"
61786 +case "(($ac_try" in
61787 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
61788 + *) ac_try_echo=$ac_try;;
61789 +esac
61790 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
61791 + (eval "$ac_compile") 2>conftest.er1
61792 ac_status=$?
61793 grep -v '^ *+' conftest.er1 >conftest.err
61794 rm -f conftest.er1
61795 cat conftest.err >&5
61796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61797 - (exit $ac_status); } &&
61798 - { ac_try='test -z "$ac_c_werror_flag"
61799 - || test ! -s conftest.err'
61800 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
61801 - (eval $ac_try) 2>&5
61802 - ac_status=$?
61803 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
61804 - (exit $ac_status); }; } &&
61805 - { ac_try='test -s conftest.$ac_objext'
61806 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
61807 - (eval $ac_try) 2>&5
61808 - ac_status=$?
61809 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
61810 - (exit $ac_status); }; }; then
61811 + (exit $ac_status); } && {
61812 + test -z "$ac_c_werror_flag" ||
61813 + test ! -s conftest.err
61814 + } && test -s conftest.$ac_objext; then
61815 ac_cv_c_const=yes
61816 else
61817 echo "$as_me: failed program was:" >&5
61818 sed 's/^/| /' conftest.$ac_ext >&5
61819
61820 -ac_cv_c_const=no
61821 + ac_cv_c_const=no
61822 fi
61823 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
61824 +
61825 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
61826 fi
61827 -echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
61828 -echo "${ECHO_T}$ac_cv_c_const" >&6
61829 +{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
61830 +echo "${ECHO_T}$ac_cv_c_const" >&6; }
61831 if test $ac_cv_c_const = no; then
61832
61833 cat >>confdefs.h <<\_ACEOF
61834 @@ -5710,8 +6369,8 @@ _ACEOF
61835
61836 fi
61837
61838 -echo "$as_me:$LINENO: checking for inline" >&5
61839 -echo $ECHO_N "checking for inline... $ECHO_C" >&6
61840 +{ echo "$as_me:$LINENO: checking for inline" >&5
61841 +echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
61842 if test "${ac_cv_c_inline+set}" = set; then
61843 echo $ECHO_N "(cached) $ECHO_C" >&6
61844 else
61845 @@ -5731,39 +6390,37 @@ $ac_kw foo_t foo () {return 0; }
61846
61847 _ACEOF
61848 rm -f conftest.$ac_objext
61849 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
61850 - (eval $ac_compile) 2>conftest.er1
61851 +if { (ac_try="$ac_compile"
61852 +case "(($ac_try" in
61853 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
61854 + *) ac_try_echo=$ac_try;;
61855 +esac
61856 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
61857 + (eval "$ac_compile") 2>conftest.er1
61858 ac_status=$?
61859 grep -v '^ *+' conftest.er1 >conftest.err
61860 rm -f conftest.er1
61861 cat conftest.err >&5
61862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61863 - (exit $ac_status); } &&
61864 - { ac_try='test -z "$ac_c_werror_flag"
61865 - || test ! -s conftest.err'
61866 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
61867 - (eval $ac_try) 2>&5
61868 - ac_status=$?
61869 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
61870 - (exit $ac_status); }; } &&
61871 - { ac_try='test -s conftest.$ac_objext'
61872 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
61873 - (eval $ac_try) 2>&5
61874 - ac_status=$?
61875 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
61876 - (exit $ac_status); }; }; then
61877 - ac_cv_c_inline=$ac_kw; break
61878 + (exit $ac_status); } && {
61879 + test -z "$ac_c_werror_flag" ||
61880 + test ! -s conftest.err
61881 + } && test -s conftest.$ac_objext; then
61882 + ac_cv_c_inline=$ac_kw
61883 else
61884 echo "$as_me: failed program was:" >&5
61885 sed 's/^/| /' conftest.$ac_ext >&5
61886
61887 +
61888 fi
61889 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
61890 +
61891 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
61892 + test "$ac_cv_c_inline" != no && break
61893 done
61894
61895 fi
61896 -echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
61897 -echo "${ECHO_T}$ac_cv_c_inline" >&6
61898 +{ echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
61899 +echo "${ECHO_T}$ac_cv_c_inline" >&6; }
61900
61901
61902 case $ac_cv_c_inline in
61903 @@ -5795,9 +6452,9 @@ for ac_header in sys/types.h sys/stat.h
61904 inttypes.h stdint.h unistd.h
61905 do
61906 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
61907 -echo "$as_me:$LINENO: checking for $ac_header" >&5
61908 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
61909 -if eval "test \"\${$as_ac_Header+set}\" = set"; then
61910 +{ echo "$as_me:$LINENO: checking for $ac_header" >&5
61911 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
61912 +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
61913 echo $ECHO_N "(cached) $ECHO_C" >&6
61914 else
61915 cat >conftest.$ac_ext <<_ACEOF
61916 @@ -5811,38 +6468,35 @@ $ac_includes_default
61917 #include <$ac_header>
61918 _ACEOF
61919 rm -f conftest.$ac_objext
61920 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
61921 - (eval $ac_compile) 2>conftest.er1
61922 +if { (ac_try="$ac_compile"
61923 +case "(($ac_try" in
61924 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
61925 + *) ac_try_echo=$ac_try;;
61926 +esac
61927 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
61928 + (eval "$ac_compile") 2>conftest.er1
61929 ac_status=$?
61930 grep -v '^ *+' conftest.er1 >conftest.err
61931 rm -f conftest.er1
61932 cat conftest.err >&5
61933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61934 - (exit $ac_status); } &&
61935 - { ac_try='test -z "$ac_c_werror_flag"
61936 - || test ! -s conftest.err'
61937 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
61938 - (eval $ac_try) 2>&5
61939 - ac_status=$?
61940 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
61941 - (exit $ac_status); }; } &&
61942 - { ac_try='test -s conftest.$ac_objext'
61943 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
61944 - (eval $ac_try) 2>&5
61945 - ac_status=$?
61946 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
61947 - (exit $ac_status); }; }; then
61948 + (exit $ac_status); } && {
61949 + test -z "$ac_c_werror_flag" ||
61950 + test ! -s conftest.err
61951 + } && test -s conftest.$ac_objext; then
61952 eval "$as_ac_Header=yes"
61953 else
61954 echo "$as_me: failed program was:" >&5
61955 sed 's/^/| /' conftest.$ac_ext >&5
61956
61957 -eval "$as_ac_Header=no"
61958 + eval "$as_ac_Header=no"
61959 fi
61960 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
61961 +
61962 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
61963 fi
61964 -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
61965 -echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
61966 +ac_res=`eval echo '${'$as_ac_Header'}'`
61967 + { echo "$as_me:$LINENO: result: $ac_res" >&5
61968 +echo "${ECHO_T}$ac_res" >&6; }
61969 if test `eval echo '${'$as_ac_Header'}'` = yes; then
61970 cat >>confdefs.h <<_ACEOF
61971 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
61972 @@ -5853,8 +6507,8 @@ fi
61973 done
61974
61975
61976 -echo "$as_me:$LINENO: checking for off_t" >&5
61977 -echo $ECHO_N "checking for off_t... $ECHO_C" >&6
61978 +{ echo "$as_me:$LINENO: checking for off_t" >&5
61979 +echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
61980 if test "${ac_cv_type_off_t+set}" = set; then
61981 echo $ECHO_N "(cached) $ECHO_C" >&6
61982 else
61983 @@ -5865,62 +6519,59 @@ cat confdefs.h >>conftest.$ac_ext
61984 cat >>conftest.$ac_ext <<_ACEOF
61985 /* end confdefs.h. */
61986 $ac_includes_default
61987 +typedef off_t ac__type_new_;
61988 int
61989 main ()
61990 {
61991 -if ((off_t *) 0)
61992 +if ((ac__type_new_ *) 0)
61993 return 0;
61994 -if (sizeof (off_t))
61995 +if (sizeof (ac__type_new_))
61996 return 0;
61997 ;
61998 return 0;
61999 }
62000 _ACEOF
62001 rm -f conftest.$ac_objext
62002 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
62003 - (eval $ac_compile) 2>conftest.er1
62004 +if { (ac_try="$ac_compile"
62005 +case "(($ac_try" in
62006 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
62007 + *) ac_try_echo=$ac_try;;
62008 +esac
62009 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
62010 + (eval "$ac_compile") 2>conftest.er1
62011 ac_status=$?
62012 grep -v '^ *+' conftest.er1 >conftest.err
62013 rm -f conftest.er1
62014 cat conftest.err >&5
62015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
62016 - (exit $ac_status); } &&
62017 - { ac_try='test -z "$ac_c_werror_flag"
62018 - || test ! -s conftest.err'
62019 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
62020 - (eval $ac_try) 2>&5
62021 - ac_status=$?
62022 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
62023 - (exit $ac_status); }; } &&
62024 - { ac_try='test -s conftest.$ac_objext'
62025 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
62026 - (eval $ac_try) 2>&5
62027 - ac_status=$?
62028 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
62029 - (exit $ac_status); }; }; then
62030 + (exit $ac_status); } && {
62031 + test -z "$ac_c_werror_flag" ||
62032 + test ! -s conftest.err
62033 + } && test -s conftest.$ac_objext; then
62034 ac_cv_type_off_t=yes
62035 else
62036 echo "$as_me: failed program was:" >&5
62037 sed 's/^/| /' conftest.$ac_ext >&5
62038
62039 -ac_cv_type_off_t=no
62040 + ac_cv_type_off_t=no
62041 fi
62042 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
62043 +
62044 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
62045 fi
62046 -echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
62047 -echo "${ECHO_T}$ac_cv_type_off_t" >&6
62048 +{ echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
62049 +echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
62050 if test $ac_cv_type_off_t = yes; then
62051 :
62052 else
62053
62054 cat >>confdefs.h <<_ACEOF
62055 -#define off_t long
62056 +#define off_t long int
62057 _ACEOF
62058
62059 fi
62060
62061 -echo "$as_me:$LINENO: checking for size_t" >&5
62062 -echo $ECHO_N "checking for size_t... $ECHO_C" >&6
62063 +{ echo "$as_me:$LINENO: checking for size_t" >&5
62064 +echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
62065 if test "${ac_cv_type_size_t+set}" = set; then
62066 echo $ECHO_N "(cached) $ECHO_C" >&6
62067 else
62068 @@ -5931,64 +6582,61 @@ cat confdefs.h >>conftest.$ac_ext
62069 cat >>conftest.$ac_ext <<_ACEOF
62070 /* end confdefs.h. */
62071 $ac_includes_default
62072 +typedef size_t ac__type_new_;
62073 int
62074 main ()
62075 {
62076 -if ((size_t *) 0)
62077 +if ((ac__type_new_ *) 0)
62078 return 0;
62079 -if (sizeof (size_t))
62080 +if (sizeof (ac__type_new_))
62081 return 0;
62082 ;
62083 return 0;
62084 }
62085 _ACEOF
62086 rm -f conftest.$ac_objext
62087 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
62088 - (eval $ac_compile) 2>conftest.er1
62089 +if { (ac_try="$ac_compile"
62090 +case "(($ac_try" in
62091 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
62092 + *) ac_try_echo=$ac_try;;
62093 +esac
62094 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
62095 + (eval "$ac_compile") 2>conftest.er1
62096 ac_status=$?
62097 grep -v '^ *+' conftest.er1 >conftest.err
62098 rm -f conftest.er1
62099 cat conftest.err >&5
62100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
62101 - (exit $ac_status); } &&
62102 - { ac_try='test -z "$ac_c_werror_flag"
62103 - || test ! -s conftest.err'
62104 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
62105 - (eval $ac_try) 2>&5
62106 - ac_status=$?
62107 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
62108 - (exit $ac_status); }; } &&
62109 - { ac_try='test -s conftest.$ac_objext'
62110 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
62111 - (eval $ac_try) 2>&5
62112 - ac_status=$?
62113 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
62114 - (exit $ac_status); }; }; then
62115 + (exit $ac_status); } && {
62116 + test -z "$ac_c_werror_flag" ||
62117 + test ! -s conftest.err
62118 + } && test -s conftest.$ac_objext; then
62119 ac_cv_type_size_t=yes
62120 else
62121 echo "$as_me: failed program was:" >&5
62122 sed 's/^/| /' conftest.$ac_ext >&5
62123
62124 -ac_cv_type_size_t=no
62125 + ac_cv_type_size_t=no
62126 fi
62127 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
62128 +
62129 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
62130 fi
62131 -echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
62132 -echo "${ECHO_T}$ac_cv_type_size_t" >&6
62133 +{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
62134 +echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
62135 if test $ac_cv_type_size_t = yes; then
62136 :
62137 else
62138
62139 cat >>confdefs.h <<_ACEOF
62140 -#define size_t unsigned
62141 +#define size_t unsigned int
62142 _ACEOF
62143
62144 fi
62145
62146 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
62147 # for constant arguments. Useless!
62148 -echo "$as_me:$LINENO: checking for working alloca.h" >&5
62149 -echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
62150 +{ echo "$as_me:$LINENO: checking for working alloca.h" >&5
62151 +echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
62152 if test "${ac_cv_working_alloca_h+set}" = set; then
62153 echo $ECHO_N "(cached) $ECHO_C" >&6
62154 else
62155 @@ -6003,44 +6651,42 @@ int
62156 main ()
62157 {
62158 char *p = (char *) alloca (2 * sizeof (int));
62159 + if (p) return 0;
62160 ;
62161 return 0;
62162 }
62163 _ACEOF
62164 rm -f conftest.$ac_objext conftest$ac_exeext
62165 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
62166 - (eval $ac_link) 2>conftest.er1
62167 +if { (ac_try="$ac_link"
62168 +case "(($ac_try" in
62169 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
62170 + *) ac_try_echo=$ac_try;;
62171 +esac
62172 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
62173 + (eval "$ac_link") 2>conftest.er1
62174 ac_status=$?
62175 grep -v '^ *+' conftest.er1 >conftest.err
62176 rm -f conftest.er1
62177 cat conftest.err >&5
62178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
62179 - (exit $ac_status); } &&
62180 - { ac_try='test -z "$ac_c_werror_flag"
62181 - || test ! -s conftest.err'
62182 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
62183 - (eval $ac_try) 2>&5
62184 - ac_status=$?
62185 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
62186 - (exit $ac_status); }; } &&
62187 - { ac_try='test -s conftest$ac_exeext'
62188 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
62189 - (eval $ac_try) 2>&5
62190 - ac_status=$?
62191 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
62192 - (exit $ac_status); }; }; then
62193 + (exit $ac_status); } && {
62194 + test -z "$ac_c_werror_flag" ||
62195 + test ! -s conftest.err
62196 + } && test -s conftest$ac_exeext &&
62197 + $as_test_x conftest$ac_exeext; then
62198 ac_cv_working_alloca_h=yes
62199 else
62200 echo "$as_me: failed program was:" >&5
62201 sed 's/^/| /' conftest.$ac_ext >&5
62202
62203 -ac_cv_working_alloca_h=no
62204 + ac_cv_working_alloca_h=no
62205 fi
62206 -rm -f conftest.err conftest.$ac_objext \
62207 +
62208 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
62209 conftest$ac_exeext conftest.$ac_ext
62210 fi
62211 -echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
62212 -echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
62213 +{ echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
62214 +echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
62215 if test $ac_cv_working_alloca_h = yes; then
62216
62217 cat >>confdefs.h <<\_ACEOF
62218 @@ -6049,8 +6695,8 @@ _ACEOF
62219
62220 fi
62221
62222 -echo "$as_me:$LINENO: checking for alloca" >&5
62223 -echo $ECHO_N "checking for alloca... $ECHO_C" >&6
62224 +{ echo "$as_me:$LINENO: checking for alloca" >&5
62225 +echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
62226 if test "${ac_cv_func_alloca_works+set}" = set; then
62227 echo $ECHO_N "(cached) $ECHO_C" >&6
62228 else
62229 @@ -6067,7 +6713,7 @@ cat >>conftest.$ac_ext <<_ACEOF
62230 # include <malloc.h>
62231 # define alloca _alloca
62232 # else
62233 -# if HAVE_ALLOCA_H
62234 +# ifdef HAVE_ALLOCA_H
62235 # include <alloca.h>
62236 # else
62237 # ifdef _AIX
62238 @@ -6085,44 +6731,42 @@ int
62239 main ()
62240 {
62241 char *p = (char *) alloca (1);
62242 + if (p) return 0;
62243 ;
62244 return 0;
62245 }
62246 _ACEOF
62247 rm -f conftest.$ac_objext conftest$ac_exeext
62248 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
62249 - (eval $ac_link) 2>conftest.er1
62250 +if { (ac_try="$ac_link"
62251 +case "(($ac_try" in
62252 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
62253 + *) ac_try_echo=$ac_try;;
62254 +esac
62255 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
62256 + (eval "$ac_link") 2>conftest.er1
62257 ac_status=$?
62258 grep -v '^ *+' conftest.er1 >conftest.err
62259 rm -f conftest.er1
62260 cat conftest.err >&5
62261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
62262 - (exit $ac_status); } &&
62263 - { ac_try='test -z "$ac_c_werror_flag"
62264 - || test ! -s conftest.err'
62265 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
62266 - (eval $ac_try) 2>&5
62267 - ac_status=$?
62268 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
62269 - (exit $ac_status); }; } &&
62270 - { ac_try='test -s conftest$ac_exeext'
62271 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
62272 - (eval $ac_try) 2>&5
62273 - ac_status=$?
62274 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
62275 - (exit $ac_status); }; }; then
62276 + (exit $ac_status); } && {
62277 + test -z "$ac_c_werror_flag" ||
62278 + test ! -s conftest.err
62279 + } && test -s conftest$ac_exeext &&
62280 + $as_test_x conftest$ac_exeext; then
62281 ac_cv_func_alloca_works=yes
62282 else
62283 echo "$as_me: failed program was:" >&5
62284 sed 's/^/| /' conftest.$ac_ext >&5
62285
62286 -ac_cv_func_alloca_works=no
62287 + ac_cv_func_alloca_works=no
62288 fi
62289 -rm -f conftest.err conftest.$ac_objext \
62290 +
62291 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
62292 conftest$ac_exeext conftest.$ac_ext
62293 fi
62294 -echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
62295 -echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
62296 +{ echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
62297 +echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
62298
62299 if test $ac_cv_func_alloca_works = yes; then
62300
62301 @@ -6136,15 +6780,15 @@ else
62302 # contain a buggy version. If you still want to use their alloca,
62303 # use ar to extract alloca.o from them instead of compiling alloca.c.
62304
62305 -ALLOCA=alloca.$ac_objext
62306 +ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
62307
62308 cat >>confdefs.h <<\_ACEOF
62309 #define C_ALLOCA 1
62310 _ACEOF
62311
62312
62313 -echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
62314 -echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
62315 +{ echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
62316 +echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
62317 if test "${ac_cv_os_cray+set}" = set; then
62318 echo $ECHO_N "(cached) $ECHO_C" >&6
62319 else
62320 @@ -6154,7 +6798,7 @@ _ACEOF
62321 cat confdefs.h >>conftest.$ac_ext
62322 cat >>conftest.$ac_ext <<_ACEOF
62323 /* end confdefs.h. */
62324 -#if defined(CRAY) && ! defined(CRAY2)
62325 +#if defined CRAY && ! defined CRAY2
62326 webecray
62327 #else
62328 wenotbecray
62329 @@ -6170,14 +6814,14 @@ fi
62330 rm -f conftest*
62331
62332 fi
62333 -echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
62334 -echo "${ECHO_T}$ac_cv_os_cray" >&6
62335 +{ echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
62336 +echo "${ECHO_T}$ac_cv_os_cray" >&6; }
62337 if test $ac_cv_os_cray = yes; then
62338 for ac_func in _getb67 GETB67 getb67; do
62339 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
62340 -echo "$as_me:$LINENO: checking for $ac_func" >&5
62341 -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
62342 -if eval "test \"\${$as_ac_var+set}\" = set"; then
62343 +{ echo "$as_me:$LINENO: checking for $ac_func" >&5
62344 +echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
62345 +if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
62346 echo $ECHO_N "(cached) $ECHO_C" >&6
62347 else
62348 cat >conftest.$ac_ext <<_ACEOF
62349 @@ -6203,68 +6847,60 @@ cat >>conftest.$ac_ext <<_ACEOF
62350
62351 #undef $ac_func
62352
62353 -/* Override any gcc2 internal prototype to avoid an error. */
62354 +/* Override any GCC internal prototype to avoid an error.
62355 + Use char because int might match the return type of a GCC
62356 + builtin and then its argument prototype would still apply. */
62357 #ifdef __cplusplus
62358 extern "C"
62359 -{
62360 #endif
62361 -/* We use char because int might match the return type of a gcc2
62362 - builtin and then its argument prototype would still apply. */
62363 char $ac_func ();
62364 /* The GNU C library defines this for functions which it implements
62365 to always fail with ENOSYS. Some functions are actually named
62366 something starting with __ and the normal name is an alias. */
62367 -#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
62368 +#if defined __stub_$ac_func || defined __stub___$ac_func
62369 choke me
62370 -#else
62371 -char (*f) () = $ac_func;
62372 -#endif
62373 -#ifdef __cplusplus
62374 -}
62375 #endif
62376
62377 int
62378 main ()
62379 {
62380 -return f != $ac_func;
62381 +return $ac_func ();
62382 ;
62383 return 0;
62384 }
62385 _ACEOF
62386 rm -f conftest.$ac_objext conftest$ac_exeext
62387 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
62388 - (eval $ac_link) 2>conftest.er1
62389 +if { (ac_try="$ac_link"
62390 +case "(($ac_try" in
62391 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
62392 + *) ac_try_echo=$ac_try;;
62393 +esac
62394 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
62395 + (eval "$ac_link") 2>conftest.er1
62396 ac_status=$?
62397 grep -v '^ *+' conftest.er1 >conftest.err
62398 rm -f conftest.er1
62399 cat conftest.err >&5
62400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
62401 - (exit $ac_status); } &&
62402 - { ac_try='test -z "$ac_c_werror_flag"
62403 - || test ! -s conftest.err'
62404 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
62405 - (eval $ac_try) 2>&5
62406 - ac_status=$?
62407 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
62408 - (exit $ac_status); }; } &&
62409 - { ac_try='test -s conftest$ac_exeext'
62410 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
62411 - (eval $ac_try) 2>&5
62412 - ac_status=$?
62413 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
62414 - (exit $ac_status); }; }; then
62415 + (exit $ac_status); } && {
62416 + test -z "$ac_c_werror_flag" ||
62417 + test ! -s conftest.err
62418 + } && test -s conftest$ac_exeext &&
62419 + $as_test_x conftest$ac_exeext; then
62420 eval "$as_ac_var=yes"
62421 else
62422 echo "$as_me: failed program was:" >&5
62423 sed 's/^/| /' conftest.$ac_ext >&5
62424
62425 -eval "$as_ac_var=no"
62426 + eval "$as_ac_var=no"
62427 fi
62428 -rm -f conftest.err conftest.$ac_objext \
62429 +
62430 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
62431 conftest$ac_exeext conftest.$ac_ext
62432 fi
62433 -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
62434 -echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
62435 +ac_res=`eval echo '${'$as_ac_var'}'`
62436 + { echo "$as_me:$LINENO: result: $ac_res" >&5
62437 +echo "${ECHO_T}$ac_res" >&6; }
62438 if test `eval echo '${'$as_ac_var'}'` = yes; then
62439
62440 cat >>confdefs.h <<_ACEOF
62441 @@ -6277,8 +6913,8 @@ fi
62442 done
62443 fi
62444
62445 -echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
62446 -echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
62447 +{ echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
62448 +echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
62449 if test "${ac_cv_c_stack_direction+set}" = set; then
62450 echo $ECHO_N "(cached) $ECHO_C" >&6
62451 else
62452 @@ -6291,6 +6927,7 @@ _ACEOF
62453 cat confdefs.h >>conftest.$ac_ext
62454 cat >>conftest.$ac_ext <<_ACEOF
62455 /* end confdefs.h. */
62456 +$ac_includes_default
62457 int
62458 find_stack_direction ()
62459 {
62460 @@ -6308,17 +6945,26 @@ find_stack_direction ()
62461 int
62462 main ()
62463 {
62464 - exit (find_stack_direction () < 0);
62465 + return find_stack_direction () < 0;
62466 }
62467 _ACEOF
62468 rm -f conftest$ac_exeext
62469 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
62470 - (eval $ac_link) 2>&5
62471 +if { (ac_try="$ac_link"
62472 +case "(($ac_try" in
62473 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
62474 + *) ac_try_echo=$ac_try;;
62475 +esac
62476 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
62477 + (eval "$ac_link") 2>&5
62478 ac_status=$?
62479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
62480 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
62481 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
62482 - (eval $ac_try) 2>&5
62483 + { (case "(($ac_try" in
62484 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
62485 + *) ac_try_echo=$ac_try;;
62486 +esac
62487 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
62488 + (eval "$ac_try") 2>&5
62489 ac_status=$?
62490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
62491 (exit $ac_status); }; }; then
62492 @@ -6331,11 +6977,13 @@ sed 's/^/| /' conftest.$ac_ext >&5
62493 ( exit $ac_status )
62494 ac_cv_c_stack_direction=-1
62495 fi
62496 -rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
62497 +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
62498 fi
62499 +
62500 +
62501 fi
62502 -echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
62503 -echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
62504 +{ echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
62505 +echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
62506
62507 cat >>confdefs.h <<_ACEOF
62508 #define STACK_DIRECTION $ac_cv_c_stack_direction
62509 @@ -6349,18 +6997,19 @@ fi
62510 for ac_header in stdlib.h unistd.h
62511 do
62512 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
62513 -if eval "test \"\${$as_ac_Header+set}\" = set"; then
62514 - echo "$as_me:$LINENO: checking for $ac_header" >&5
62515 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
62516 -if eval "test \"\${$as_ac_Header+set}\" = set"; then
62517 +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
62518 + { echo "$as_me:$LINENO: checking for $ac_header" >&5
62519 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
62520 +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
62521 echo $ECHO_N "(cached) $ECHO_C" >&6
62522 fi
62523 -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
62524 -echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
62525 +ac_res=`eval echo '${'$as_ac_Header'}'`
62526 + { echo "$as_me:$LINENO: result: $ac_res" >&5
62527 +echo "${ECHO_T}$ac_res" >&6; }
62528 else
62529 # Is the header compilable?
62530 -echo "$as_me:$LINENO: checking $ac_header usability" >&5
62531 -echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
62532 +{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
62533 +echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
62534 cat >conftest.$ac_ext <<_ACEOF
62535 /* confdefs.h. */
62536 _ACEOF
62537 @@ -6371,41 +7020,37 @@ $ac_includes_default
62538 #include <$ac_header>
62539 _ACEOF
62540 rm -f conftest.$ac_objext
62541 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
62542 - (eval $ac_compile) 2>conftest.er1
62543 +if { (ac_try="$ac_compile"
62544 +case "(($ac_try" in
62545 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
62546 + *) ac_try_echo=$ac_try;;
62547 +esac
62548 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
62549 + (eval "$ac_compile") 2>conftest.er1
62550 ac_status=$?
62551 grep -v '^ *+' conftest.er1 >conftest.err
62552 rm -f conftest.er1
62553 cat conftest.err >&5
62554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
62555 - (exit $ac_status); } &&
62556 - { ac_try='test -z "$ac_c_werror_flag"
62557 - || test ! -s conftest.err'
62558 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
62559 - (eval $ac_try) 2>&5
62560 - ac_status=$?
62561 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
62562 - (exit $ac_status); }; } &&
62563 - { ac_try='test -s conftest.$ac_objext'
62564 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
62565 - (eval $ac_try) 2>&5
62566 - ac_status=$?
62567 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
62568 - (exit $ac_status); }; }; then
62569 + (exit $ac_status); } && {
62570 + test -z "$ac_c_werror_flag" ||
62571 + test ! -s conftest.err
62572 + } && test -s conftest.$ac_objext; then
62573 ac_header_compiler=yes
62574 else
62575 echo "$as_me: failed program was:" >&5
62576 sed 's/^/| /' conftest.$ac_ext >&5
62577
62578 -ac_header_compiler=no
62579 + ac_header_compiler=no
62580 fi
62581 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
62582 -echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
62583 -echo "${ECHO_T}$ac_header_compiler" >&6
62584 +
62585 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
62586 +{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
62587 +echo "${ECHO_T}$ac_header_compiler" >&6; }
62588
62589 # Is the header present?
62590 -echo "$as_me:$LINENO: checking $ac_header presence" >&5
62591 -echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
62592 +{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
62593 +echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
62594 cat >conftest.$ac_ext <<_ACEOF
62595 /* confdefs.h. */
62596 _ACEOF
62597 @@ -6414,24 +7059,22 @@ cat >>conftest.$ac_ext <<_ACEOF
62598 /* end confdefs.h. */
62599 #include <$ac_header>
62600 _ACEOF
62601 -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
62602 - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
62603 +if { (ac_try="$ac_cpp conftest.$ac_ext"
62604 +case "(($ac_try" in
62605 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
62606 + *) ac_try_echo=$ac_try;;
62607 +esac
62608 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
62609 + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
62610 ac_status=$?
62611 grep -v '^ *+' conftest.er1 >conftest.err
62612 rm -f conftest.er1
62613 cat conftest.err >&5
62614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
62615 - (exit $ac_status); } >/dev/null; then
62616 - if test -s conftest.err; then
62617 - ac_cpp_err=$ac_c_preproc_warn_flag
62618 - ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
62619 - else
62620 - ac_cpp_err=
62621 - fi
62622 -else
62623 - ac_cpp_err=yes
62624 -fi
62625 -if test -z "$ac_cpp_err"; then
62626 + (exit $ac_status); } >/dev/null && {
62627 + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
62628 + test ! -s conftest.err
62629 + }; then
62630 ac_header_preproc=yes
62631 else
62632 echo "$as_me: failed program was:" >&5
62633 @@ -6439,9 +7082,10 @@ sed 's/^/| /' conftest.$ac_ext >&5
62634
62635 ac_header_preproc=no
62636 fi
62637 +
62638 rm -f conftest.err conftest.$ac_ext
62639 -echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
62640 -echo "${ECHO_T}$ac_header_preproc" >&6
62641 +{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
62642 +echo "${ECHO_T}$ac_header_preproc" >&6; }
62643
62644 # So? What about this header?
62645 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
62646 @@ -6465,25 +7109,19 @@ echo "$as_me: WARNING: $ac_header: s
62647 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
62648 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
62649 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
62650 - (
62651 - cat <<\_ASBOX
62652 -## ------------------------------------------ ##
62653 -## Report this to the AC_PACKAGE_NAME lists. ##
62654 -## ------------------------------------------ ##
62655 -_ASBOX
62656 - ) |
62657 - sed "s/^/$as_me: WARNING: /" >&2
62658 +
62659 ;;
62660 esac
62661 -echo "$as_me:$LINENO: checking for $ac_header" >&5
62662 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
62663 -if eval "test \"\${$as_ac_Header+set}\" = set"; then
62664 +{ echo "$as_me:$LINENO: checking for $ac_header" >&5
62665 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
62666 +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
62667 echo $ECHO_N "(cached) $ECHO_C" >&6
62668 else
62669 eval "$as_ac_Header=\$ac_header_preproc"
62670 fi
62671 -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
62672 -echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
62673 +ac_res=`eval echo '${'$as_ac_Header'}'`
62674 + { echo "$as_me:$LINENO: result: $ac_res" >&5
62675 +echo "${ECHO_T}$ac_res" >&6; }
62676
62677 fi
62678 if test `eval echo '${'$as_ac_Header'}'` = yes; then
62679 @@ -6499,9 +7137,9 @@ done
62680 for ac_func in getpagesize
62681 do
62682 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
62683 -echo "$as_me:$LINENO: checking for $ac_func" >&5
62684 -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
62685 -if eval "test \"\${$as_ac_var+set}\" = set"; then
62686 +{ echo "$as_me:$LINENO: checking for $ac_func" >&5
62687 +echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
62688 +if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
62689 echo $ECHO_N "(cached) $ECHO_C" >&6
62690 else
62691 cat >conftest.$ac_ext <<_ACEOF
62692 @@ -6527,68 +7165,60 @@ cat >>conftest.$ac_ext <<_ACEOF
62693
62694 #undef $ac_func
62695
62696 -/* Override any gcc2 internal prototype to avoid an error. */
62697 +/* Override any GCC internal prototype to avoid an error.
62698 + Use char because int might match the return type of a GCC
62699 + builtin and then its argument prototype would still apply. */
62700 #ifdef __cplusplus
62701 extern "C"
62702 -{
62703 #endif
62704 -/* We use char because int might match the return type of a gcc2
62705 - builtin and then its argument prototype would still apply. */
62706 char $ac_func ();
62707 /* The GNU C library defines this for functions which it implements
62708 to always fail with ENOSYS. Some functions are actually named
62709 something starting with __ and the normal name is an alias. */
62710 -#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
62711 +#if defined __stub_$ac_func || defined __stub___$ac_func
62712 choke me
62713 -#else
62714 -char (*f) () = $ac_func;
62715 -#endif
62716 -#ifdef __cplusplus
62717 -}
62718 #endif
62719
62720 int
62721 main ()
62722 {
62723 -return f != $ac_func;
62724 +return $ac_func ();
62725 ;
62726 return 0;
62727 }
62728 _ACEOF
62729 rm -f conftest.$ac_objext conftest$ac_exeext
62730 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
62731 - (eval $ac_link) 2>conftest.er1
62732 +if { (ac_try="$ac_link"
62733 +case "(($ac_try" in
62734 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
62735 + *) ac_try_echo=$ac_try;;
62736 +esac
62737 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
62738 + (eval "$ac_link") 2>conftest.er1
62739 ac_status=$?
62740 grep -v '^ *+' conftest.er1 >conftest.err
62741 rm -f conftest.er1
62742 cat conftest.err >&5
62743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
62744 - (exit $ac_status); } &&
62745 - { ac_try='test -z "$ac_c_werror_flag"
62746 - || test ! -s conftest.err'
62747 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
62748 - (eval $ac_try) 2>&5
62749 - ac_status=$?
62750 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
62751 - (exit $ac_status); }; } &&
62752 - { ac_try='test -s conftest$ac_exeext'
62753 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
62754 - (eval $ac_try) 2>&5
62755 - ac_status=$?
62756 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
62757 - (exit $ac_status); }; }; then
62758 + (exit $ac_status); } && {
62759 + test -z "$ac_c_werror_flag" ||
62760 + test ! -s conftest.err
62761 + } && test -s conftest$ac_exeext &&
62762 + $as_test_x conftest$ac_exeext; then
62763 eval "$as_ac_var=yes"
62764 else
62765 echo "$as_me: failed program was:" >&5
62766 sed 's/^/| /' conftest.$ac_ext >&5
62767
62768 -eval "$as_ac_var=no"
62769 + eval "$as_ac_var=no"
62770 fi
62771 -rm -f conftest.err conftest.$ac_objext \
62772 +
62773 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
62774 conftest$ac_exeext conftest.$ac_ext
62775 fi
62776 -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
62777 -echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
62778 +ac_res=`eval echo '${'$as_ac_var'}'`
62779 + { echo "$as_me:$LINENO: result: $ac_res" >&5
62780 +echo "${ECHO_T}$ac_res" >&6; }
62781 if test `eval echo '${'$as_ac_var'}'` = yes; then
62782 cat >>confdefs.h <<_ACEOF
62783 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
62784 @@ -6597,8 +7227,8 @@ _ACEOF
62785 fi
62786 done
62787
62788 -echo "$as_me:$LINENO: checking for working mmap" >&5
62789 -echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
62790 +{ echo "$as_me:$LINENO: checking for working mmap" >&5
62791 +echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
62792 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
62793 echo $ECHO_N "(cached) $ECHO_C" >&6
62794 else
62795 @@ -6640,21 +7270,21 @@ $ac_includes_default
62796 #include <fcntl.h>
62797 #include <sys/mman.h>
62798
62799 -#if !STDC_HEADERS && !HAVE_STDLIB_H
62800 +#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
62801 char *malloc ();
62802 #endif
62803
62804 /* This mess was copied from the GNU getpagesize.h. */
62805 -#if !HAVE_GETPAGESIZE
62806 +#ifndef HAVE_GETPAGESIZE
62807 /* Assume that all systems that can run configure have sys/param.h. */
62808 -# if !HAVE_SYS_PARAM_H
62809 +# ifndef HAVE_SYS_PARAM_H
62810 # define HAVE_SYS_PARAM_H 1
62811 # endif
62812
62813 # ifdef _SC_PAGESIZE
62814 # define getpagesize() sysconf(_SC_PAGESIZE)
62815 # else /* no _SC_PAGESIZE */
62816 -# if HAVE_SYS_PARAM_H
62817 +# ifdef HAVE_SYS_PARAM_H
62818 # include <sys/param.h>
62819 # ifdef EXEC_PAGESIZE
62820 # define getpagesize() EXEC_PAGESIZE
62821 @@ -6693,15 +7323,15 @@ main ()
62822 /* First, make a file with some known garbage in it. */
62823 data = (char *) malloc (pagesize);
62824 if (!data)
62825 - exit (1);
62826 + return 1;
62827 for (i = 0; i < pagesize; ++i)
62828 *(data + i) = rand ();
62829 umask (0);
62830 fd = creat ("conftest.mmap", 0600);
62831 if (fd < 0)
62832 - exit (1);
62833 + return 1;
62834 if (write (fd, data, pagesize) != pagesize)
62835 - exit (1);
62836 + return 1;
62837 close (fd);
62838
62839 /* Next, try to mmap the file at a fixed address which already has
62840 @@ -6709,17 +7339,17 @@ main ()
62841 we see the same garbage. */
62842 fd = open ("conftest.mmap", O_RDWR);
62843 if (fd < 0)
62844 - exit (1);
62845 + return 1;
62846 data2 = (char *) malloc (2 * pagesize);
62847 if (!data2)
62848 - exit (1);
62849 - data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
62850 + return 1;
62851 + data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
62852 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
62853 MAP_PRIVATE | MAP_FIXED, fd, 0L))
62854 - exit (1);
62855 + return 1;
62856 for (i = 0; i < pagesize; ++i)
62857 if (*(data + i) != *(data2 + i))
62858 - exit (1);
62859 + return 1;
62860
62861 /* Finally, make sure that changes to the mapped area do not
62862 percolate back to the file as seen by read(). (This is a bug on
62863 @@ -6728,24 +7358,33 @@ main ()
62864 *(data2 + i) = *(data2 + i) + 1;
62865 data3 = (char *) malloc (pagesize);
62866 if (!data3)
62867 - exit (1);
62868 + return 1;
62869 if (read (fd, data3, pagesize) != pagesize)
62870 - exit (1);
62871 + return 1;
62872 for (i = 0; i < pagesize; ++i)
62873 if (*(data + i) != *(data3 + i))
62874 - exit (1);
62875 + return 1;
62876 close (fd);
62877 - exit (0);
62878 + return 0;
62879 }
62880 _ACEOF
62881 rm -f conftest$ac_exeext
62882 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
62883 - (eval $ac_link) 2>&5
62884 +if { (ac_try="$ac_link"
62885 +case "(($ac_try" in
62886 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
62887 + *) ac_try_echo=$ac_try;;
62888 +esac
62889 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
62890 + (eval "$ac_link") 2>&5
62891 ac_status=$?
62892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
62893 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
62894 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
62895 - (eval $ac_try) 2>&5
62896 + { (case "(($ac_try" in
62897 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
62898 + *) ac_try_echo=$ac_try;;
62899 +esac
62900 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
62901 + (eval "$ac_try") 2>&5
62902 ac_status=$?
62903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
62904 (exit $ac_status); }; }; then
62905 @@ -6758,11 +7397,13 @@ sed 's/^/| /' conftest.$ac_ext >&5
62906 ( exit $ac_status )
62907 ac_cv_func_mmap_fixed_mapped=no
62908 fi
62909 -rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
62910 +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
62911 fi
62912 +
62913 +
62914 fi
62915 -echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
62916 -echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
62917 +{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
62918 +echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
62919 if test $ac_cv_func_mmap_fixed_mapped = yes; then
62920
62921 cat >>confdefs.h <<\_ACEOF
62922 @@ -6786,18 +7427,19 @@ for ac_header in argz.h limits.h locale.
62923 unistd.h values.h sys/param.h
62924 do
62925 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
62926 -if eval "test \"\${$as_ac_Header+set}\" = set"; then
62927 - echo "$as_me:$LINENO: checking for $ac_header" >&5
62928 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
62929 -if eval "test \"\${$as_ac_Header+set}\" = set"; then
62930 +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
62931 + { echo "$as_me:$LINENO: checking for $ac_header" >&5
62932 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
62933 +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
62934 echo $ECHO_N "(cached) $ECHO_C" >&6
62935 fi
62936 -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
62937 -echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
62938 +ac_res=`eval echo '${'$as_ac_Header'}'`
62939 + { echo "$as_me:$LINENO: result: $ac_res" >&5
62940 +echo "${ECHO_T}$ac_res" >&6; }
62941 else
62942 # Is the header compilable?
62943 -echo "$as_me:$LINENO: checking $ac_header usability" >&5
62944 -echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
62945 +{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
62946 +echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
62947 cat >conftest.$ac_ext <<_ACEOF
62948 /* confdefs.h. */
62949 _ACEOF
62950 @@ -6808,41 +7450,37 @@ $ac_includes_default
62951 #include <$ac_header>
62952 _ACEOF
62953 rm -f conftest.$ac_objext
62954 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
62955 - (eval $ac_compile) 2>conftest.er1
62956 +if { (ac_try="$ac_compile"
62957 +case "(($ac_try" in
62958 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
62959 + *) ac_try_echo=$ac_try;;
62960 +esac
62961 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
62962 + (eval "$ac_compile") 2>conftest.er1
62963 ac_status=$?
62964 grep -v '^ *+' conftest.er1 >conftest.err
62965 rm -f conftest.er1
62966 cat conftest.err >&5
62967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
62968 - (exit $ac_status); } &&
62969 - { ac_try='test -z "$ac_c_werror_flag"
62970 - || test ! -s conftest.err'
62971 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
62972 - (eval $ac_try) 2>&5
62973 - ac_status=$?
62974 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
62975 - (exit $ac_status); }; } &&
62976 - { ac_try='test -s conftest.$ac_objext'
62977 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
62978 - (eval $ac_try) 2>&5
62979 - ac_status=$?
62980 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
62981 - (exit $ac_status); }; }; then
62982 + (exit $ac_status); } && {
62983 + test -z "$ac_c_werror_flag" ||
62984 + test ! -s conftest.err
62985 + } && test -s conftest.$ac_objext; then
62986 ac_header_compiler=yes
62987 else
62988 echo "$as_me: failed program was:" >&5
62989 sed 's/^/| /' conftest.$ac_ext >&5
62990
62991 -ac_header_compiler=no
62992 + ac_header_compiler=no
62993 fi
62994 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
62995 -echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
62996 -echo "${ECHO_T}$ac_header_compiler" >&6
62997 +
62998 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
62999 +{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
63000 +echo "${ECHO_T}$ac_header_compiler" >&6; }
63001
63002 # Is the header present?
63003 -echo "$as_me:$LINENO: checking $ac_header presence" >&5
63004 -echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
63005 +{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
63006 +echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
63007 cat >conftest.$ac_ext <<_ACEOF
63008 /* confdefs.h. */
63009 _ACEOF
63010 @@ -6851,24 +7489,22 @@ cat >>conftest.$ac_ext <<_ACEOF
63011 /* end confdefs.h. */
63012 #include <$ac_header>
63013 _ACEOF
63014 -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
63015 - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
63016 +if { (ac_try="$ac_cpp conftest.$ac_ext"
63017 +case "(($ac_try" in
63018 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
63019 + *) ac_try_echo=$ac_try;;
63020 +esac
63021 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
63022 + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
63023 ac_status=$?
63024 grep -v '^ *+' conftest.er1 >conftest.err
63025 rm -f conftest.er1
63026 cat conftest.err >&5
63027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
63028 - (exit $ac_status); } >/dev/null; then
63029 - if test -s conftest.err; then
63030 - ac_cpp_err=$ac_c_preproc_warn_flag
63031 - ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
63032 - else
63033 - ac_cpp_err=
63034 - fi
63035 -else
63036 - ac_cpp_err=yes
63037 -fi
63038 -if test -z "$ac_cpp_err"; then
63039 + (exit $ac_status); } >/dev/null && {
63040 + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
63041 + test ! -s conftest.err
63042 + }; then
63043 ac_header_preproc=yes
63044 else
63045 echo "$as_me: failed program was:" >&5
63046 @@ -6876,9 +7512,10 @@ sed 's/^/| /' conftest.$ac_ext >&5
63047
63048 ac_header_preproc=no
63049 fi
63050 +
63051 rm -f conftest.err conftest.$ac_ext
63052 -echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
63053 -echo "${ECHO_T}$ac_header_preproc" >&6
63054 +{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
63055 +echo "${ECHO_T}$ac_header_preproc" >&6; }
63056
63057 # So? What about this header?
63058 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
63059 @@ -6902,25 +7539,19 @@ echo "$as_me: WARNING: $ac_header: s
63060 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
63061 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
63062 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
63063 - (
63064 - cat <<\_ASBOX
63065 -## ------------------------------------------ ##
63066 -## Report this to the AC_PACKAGE_NAME lists. ##
63067 -## ------------------------------------------ ##
63068 -_ASBOX
63069 - ) |
63070 - sed "s/^/$as_me: WARNING: /" >&2
63071 +
63072 ;;
63073 esac
63074 -echo "$as_me:$LINENO: checking for $ac_header" >&5
63075 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
63076 -if eval "test \"\${$as_ac_Header+set}\" = set"; then
63077 +{ echo "$as_me:$LINENO: checking for $ac_header" >&5
63078 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
63079 +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
63080 echo $ECHO_N "(cached) $ECHO_C" >&6
63081 else
63082 eval "$as_ac_Header=\$ac_header_preproc"
63083 fi
63084 -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
63085 -echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
63086 +ac_res=`eval echo '${'$as_ac_Header'}'`
63087 + { echo "$as_me:$LINENO: result: $ac_res" >&5
63088 +echo "${ECHO_T}$ac_res" >&6; }
63089
63090 fi
63091 if test `eval echo '${'$as_ac_Header'}'` = yes; then
63092 @@ -6946,9 +7577,9 @@ for ac_func in getcwd munmap putenv sete
63093 __argz_count __argz_stringify __argz_next
63094 do
63095 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
63096 -echo "$as_me:$LINENO: checking for $ac_func" >&5
63097 -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
63098 -if eval "test \"\${$as_ac_var+set}\" = set"; then
63099 +{ echo "$as_me:$LINENO: checking for $ac_func" >&5
63100 +echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
63101 +if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
63102 echo $ECHO_N "(cached) $ECHO_C" >&6
63103 else
63104 cat >conftest.$ac_ext <<_ACEOF
63105 @@ -6974,68 +7605,60 @@ cat >>conftest.$ac_ext <<_ACEOF
63106
63107 #undef $ac_func
63108
63109 -/* Override any gcc2 internal prototype to avoid an error. */
63110 +/* Override any GCC internal prototype to avoid an error.
63111 + Use char because int might match the return type of a GCC
63112 + builtin and then its argument prototype would still apply. */
63113 #ifdef __cplusplus
63114 extern "C"
63115 -{
63116 #endif
63117 -/* We use char because int might match the return type of a gcc2
63118 - builtin and then its argument prototype would still apply. */
63119 char $ac_func ();
63120 /* The GNU C library defines this for functions which it implements
63121 to always fail with ENOSYS. Some functions are actually named
63122 something starting with __ and the normal name is an alias. */
63123 -#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
63124 +#if defined __stub_$ac_func || defined __stub___$ac_func
63125 choke me
63126 -#else
63127 -char (*f) () = $ac_func;
63128 -#endif
63129 -#ifdef __cplusplus
63130 -}
63131 #endif
63132
63133 int
63134 main ()
63135 {
63136 -return f != $ac_func;
63137 +return $ac_func ();
63138 ;
63139 return 0;
63140 }
63141 _ACEOF
63142 rm -f conftest.$ac_objext conftest$ac_exeext
63143 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
63144 - (eval $ac_link) 2>conftest.er1
63145 +if { (ac_try="$ac_link"
63146 +case "(($ac_try" in
63147 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
63148 + *) ac_try_echo=$ac_try;;
63149 +esac
63150 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
63151 + (eval "$ac_link") 2>conftest.er1
63152 ac_status=$?
63153 grep -v '^ *+' conftest.er1 >conftest.err
63154 rm -f conftest.er1
63155 cat conftest.err >&5
63156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
63157 - (exit $ac_status); } &&
63158 - { ac_try='test -z "$ac_c_werror_flag"
63159 - || test ! -s conftest.err'
63160 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
63161 - (eval $ac_try) 2>&5
63162 - ac_status=$?
63163 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
63164 - (exit $ac_status); }; } &&
63165 - { ac_try='test -s conftest$ac_exeext'
63166 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
63167 - (eval $ac_try) 2>&5
63168 - ac_status=$?
63169 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
63170 - (exit $ac_status); }; }; then
63171 + (exit $ac_status); } && {
63172 + test -z "$ac_c_werror_flag" ||
63173 + test ! -s conftest.err
63174 + } && test -s conftest$ac_exeext &&
63175 + $as_test_x conftest$ac_exeext; then
63176 eval "$as_ac_var=yes"
63177 else
63178 echo "$as_me: failed program was:" >&5
63179 sed 's/^/| /' conftest.$ac_ext >&5
63180
63181 -eval "$as_ac_var=no"
63182 + eval "$as_ac_var=no"
63183 fi
63184 -rm -f conftest.err conftest.$ac_objext \
63185 +
63186 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
63187 conftest$ac_exeext conftest.$ac_ext
63188 fi
63189 -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
63190 -echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
63191 +ac_res=`eval echo '${'$as_ac_var'}'`
63192 + { echo "$as_me:$LINENO: result: $ac_res" >&5
63193 +echo "${ECHO_T}$ac_res" >&6; }
63194 if test `eval echo '${'$as_ac_var'}'` = yes; then
63195 cat >>confdefs.h <<_ACEOF
63196 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
63197 @@ -7050,9 +7673,9 @@ done
63198 for ac_func in stpcpy
63199 do
63200 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
63201 -echo "$as_me:$LINENO: checking for $ac_func" >&5
63202 -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
63203 -if eval "test \"\${$as_ac_var+set}\" = set"; then
63204 +{ echo "$as_me:$LINENO: checking for $ac_func" >&5
63205 +echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
63206 +if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
63207 echo $ECHO_N "(cached) $ECHO_C" >&6
63208 else
63209 cat >conftest.$ac_ext <<_ACEOF
63210 @@ -7078,68 +7701,60 @@ cat >>conftest.$ac_ext <<_ACEOF
63211
63212 #undef $ac_func
63213
63214 -/* Override any gcc2 internal prototype to avoid an error. */
63215 +/* Override any GCC internal prototype to avoid an error.
63216 + Use char because int might match the return type of a GCC
63217 + builtin and then its argument prototype would still apply. */
63218 #ifdef __cplusplus
63219 extern "C"
63220 -{
63221 #endif
63222 -/* We use char because int might match the return type of a gcc2
63223 - builtin and then its argument prototype would still apply. */
63224 char $ac_func ();
63225 /* The GNU C library defines this for functions which it implements
63226 to always fail with ENOSYS. Some functions are actually named
63227 something starting with __ and the normal name is an alias. */
63228 -#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
63229 +#if defined __stub_$ac_func || defined __stub___$ac_func
63230 choke me
63231 -#else
63232 -char (*f) () = $ac_func;
63233 -#endif
63234 -#ifdef __cplusplus
63235 -}
63236 #endif
63237
63238 int
63239 main ()
63240 {
63241 -return f != $ac_func;
63242 +return $ac_func ();
63243 ;
63244 return 0;
63245 }
63246 _ACEOF
63247 rm -f conftest.$ac_objext conftest$ac_exeext
63248 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
63249 - (eval $ac_link) 2>conftest.er1
63250 +if { (ac_try="$ac_link"
63251 +case "(($ac_try" in
63252 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
63253 + *) ac_try_echo=$ac_try;;
63254 +esac
63255 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
63256 + (eval "$ac_link") 2>conftest.er1
63257 ac_status=$?
63258 grep -v '^ *+' conftest.er1 >conftest.err
63259 rm -f conftest.er1
63260 cat conftest.err >&5
63261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
63262 - (exit $ac_status); } &&
63263 - { ac_try='test -z "$ac_c_werror_flag"
63264 - || test ! -s conftest.err'
63265 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
63266 - (eval $ac_try) 2>&5
63267 - ac_status=$?
63268 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
63269 - (exit $ac_status); }; } &&
63270 - { ac_try='test -s conftest$ac_exeext'
63271 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
63272 - (eval $ac_try) 2>&5
63273 - ac_status=$?
63274 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
63275 - (exit $ac_status); }; }; then
63276 + (exit $ac_status); } && {
63277 + test -z "$ac_c_werror_flag" ||
63278 + test ! -s conftest.err
63279 + } && test -s conftest$ac_exeext &&
63280 + $as_test_x conftest$ac_exeext; then
63281 eval "$as_ac_var=yes"
63282 else
63283 echo "$as_me: failed program was:" >&5
63284 sed 's/^/| /' conftest.$ac_ext >&5
63285
63286 -eval "$as_ac_var=no"
63287 + eval "$as_ac_var=no"
63288 fi
63289 -rm -f conftest.err conftest.$ac_objext \
63290 +
63291 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
63292 conftest$ac_exeext conftest.$ac_ext
63293 fi
63294 -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
63295 -echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
63296 +ac_res=`eval echo '${'$as_ac_var'}'`
63297 + { echo "$as_me:$LINENO: result: $ac_res" >&5
63298 +echo "${ECHO_T}$ac_res" >&6; }
63299 if test `eval echo '${'$as_ac_var'}'` = yes; then
63300 cat >>confdefs.h <<_ACEOF
63301 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
63302 @@ -7158,8 +7773,8 @@ _ACEOF
63303 fi
63304
63305 if test $ac_cv_header_locale_h = yes; then
63306 - echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
63307 -echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
63308 + { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
63309 +echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
63310 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
63311 echo $ECHO_N "(cached) $ECHO_C" >&6
63312 else
63313 @@ -7179,39 +7794,36 @@ return LC_MESSAGES
63314 }
63315 _ACEOF
63316 rm -f conftest.$ac_objext conftest$ac_exeext
63317 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
63318 - (eval $ac_link) 2>conftest.er1
63319 +if { (ac_try="$ac_link"
63320 +case "(($ac_try" in
63321 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
63322 + *) ac_try_echo=$ac_try;;
63323 +esac
63324 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
63325 + (eval "$ac_link") 2>conftest.er1
63326 ac_status=$?
63327 grep -v '^ *+' conftest.er1 >conftest.err
63328 rm -f conftest.er1
63329 cat conftest.err >&5
63330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
63331 - (exit $ac_status); } &&
63332 - { ac_try='test -z "$ac_c_werror_flag"
63333 - || test ! -s conftest.err'
63334 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
63335 - (eval $ac_try) 2>&5
63336 - ac_status=$?
63337 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
63338 - (exit $ac_status); }; } &&
63339 - { ac_try='test -s conftest$ac_exeext'
63340 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
63341 - (eval $ac_try) 2>&5
63342 - ac_status=$?
63343 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
63344 - (exit $ac_status); }; }; then
63345 + (exit $ac_status); } && {
63346 + test -z "$ac_c_werror_flag" ||
63347 + test ! -s conftest.err
63348 + } && test -s conftest$ac_exeext &&
63349 + $as_test_x conftest$ac_exeext; then
63350 am_cv_val_LC_MESSAGES=yes
63351 else
63352 echo "$as_me: failed program was:" >&5
63353 sed 's/^/| /' conftest.$ac_ext >&5
63354
63355 -am_cv_val_LC_MESSAGES=no
63356 + am_cv_val_LC_MESSAGES=no
63357 fi
63358 -rm -f conftest.err conftest.$ac_objext \
63359 +
63360 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
63361 conftest$ac_exeext conftest.$ac_ext
63362 fi
63363 -echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
63364 -echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
63365 +{ echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
63366 +echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6; }
63367 if test $am_cv_val_LC_MESSAGES = yes; then
63368
63369 cat >>confdefs.h <<\_ACEOF
63370 @@ -7220,34 +7832,34 @@ _ACEOF
63371
63372 fi
63373 fi
63374 - echo "$as_me:$LINENO: checking whether NLS is requested" >&5
63375 -echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
63376 - # Check whether --enable-nls or --disable-nls was given.
63377 + { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
63378 +echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
63379 + # Check whether --enable-nls was given.
63380 if test "${enable_nls+set}" = set; then
63381 - enableval="$enable_nls"
63382 - USE_NLS=$enableval
63383 + enableval=$enable_nls; USE_NLS=$enableval
63384 else
63385 USE_NLS=yes
63386 -fi;
63387 - echo "$as_me:$LINENO: result: $USE_NLS" >&5
63388 -echo "${ECHO_T}$USE_NLS" >&6
63389 +fi
63390 +
63391 + { echo "$as_me:$LINENO: result: $USE_NLS" >&5
63392 +echo "${ECHO_T}$USE_NLS" >&6; }
63393
63394
63395 USE_INCLUDED_LIBINTL=no
63396
63397 if test "$USE_NLS" = "yes"; then
63398 - echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
63399 -echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
63400 + { echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
63401 +echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6; }
63402
63403 -# Check whether --with-included-gettext or --without-included-gettext was given.
63404 +# Check whether --with-included-gettext was given.
63405 if test "${with_included_gettext+set}" = set; then
63406 - withval="$with_included_gettext"
63407 - nls_cv_force_use_gnu_gettext=$withval
63408 + withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
63409 else
63410 nls_cv_force_use_gnu_gettext=no
63411 -fi;
63412 - echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
63413 -echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
63414 +fi
63415 +
63416 + { echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
63417 +echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6; }
63418
63419 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
63420 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
63421 @@ -7256,17 +7868,17 @@ echo "${ECHO_T}$nls_cv_force_use_gnu_get
63422 CATOBJEXT=
63423
63424 if test "${ac_cv_header_libintl_h+set}" = set; then
63425 - echo "$as_me:$LINENO: checking for libintl.h" >&5
63426 -echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
63427 + { echo "$as_me:$LINENO: checking for libintl.h" >&5
63428 +echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; }
63429 if test "${ac_cv_header_libintl_h+set}" = set; then
63430 echo $ECHO_N "(cached) $ECHO_C" >&6
63431 fi
63432 -echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
63433 -echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
63434 +{ echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
63435 +echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; }
63436 else
63437 # Is the header compilable?
63438 -echo "$as_me:$LINENO: checking libintl.h usability" >&5
63439 -echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
63440 +{ echo "$as_me:$LINENO: checking libintl.h usability" >&5
63441 +echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6; }
63442 cat >conftest.$ac_ext <<_ACEOF
63443 /* confdefs.h. */
63444 _ACEOF
63445 @@ -7277,41 +7889,37 @@ $ac_includes_default
63446 #include <libintl.h>
63447 _ACEOF
63448 rm -f conftest.$ac_objext
63449 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
63450 - (eval $ac_compile) 2>conftest.er1
63451 +if { (ac_try="$ac_compile"
63452 +case "(($ac_try" in
63453 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
63454 + *) ac_try_echo=$ac_try;;
63455 +esac
63456 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
63457 + (eval "$ac_compile") 2>conftest.er1
63458 ac_status=$?
63459 grep -v '^ *+' conftest.er1 >conftest.err
63460 rm -f conftest.er1
63461 cat conftest.err >&5
63462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
63463 - (exit $ac_status); } &&
63464 - { ac_try='test -z "$ac_c_werror_flag"
63465 - || test ! -s conftest.err'
63466 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
63467 - (eval $ac_try) 2>&5
63468 - ac_status=$?
63469 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
63470 - (exit $ac_status); }; } &&
63471 - { ac_try='test -s conftest.$ac_objext'
63472 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
63473 - (eval $ac_try) 2>&5
63474 - ac_status=$?
63475 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
63476 - (exit $ac_status); }; }; then
63477 + (exit $ac_status); } && {
63478 + test -z "$ac_c_werror_flag" ||
63479 + test ! -s conftest.err
63480 + } && test -s conftest.$ac_objext; then
63481 ac_header_compiler=yes
63482 else
63483 echo "$as_me: failed program was:" >&5
63484 sed 's/^/| /' conftest.$ac_ext >&5
63485
63486 -ac_header_compiler=no
63487 + ac_header_compiler=no
63488 fi
63489 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
63490 -echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
63491 -echo "${ECHO_T}$ac_header_compiler" >&6
63492 +
63493 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
63494 +{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
63495 +echo "${ECHO_T}$ac_header_compiler" >&6; }
63496
63497 # Is the header present?
63498 -echo "$as_me:$LINENO: checking libintl.h presence" >&5
63499 -echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
63500 +{ echo "$as_me:$LINENO: checking libintl.h presence" >&5
63501 +echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6; }
63502 cat >conftest.$ac_ext <<_ACEOF
63503 /* confdefs.h. */
63504 _ACEOF
63505 @@ -7320,24 +7928,22 @@ cat >>conftest.$ac_ext <<_ACEOF
63506 /* end confdefs.h. */
63507 #include <libintl.h>
63508 _ACEOF
63509 -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
63510 - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
63511 +if { (ac_try="$ac_cpp conftest.$ac_ext"
63512 +case "(($ac_try" in
63513 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
63514 + *) ac_try_echo=$ac_try;;
63515 +esac
63516 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
63517 + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
63518 ac_status=$?
63519 grep -v '^ *+' conftest.er1 >conftest.err
63520 rm -f conftest.er1
63521 cat conftest.err >&5
63522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
63523 - (exit $ac_status); } >/dev/null; then
63524 - if test -s conftest.err; then
63525 - ac_cpp_err=$ac_c_preproc_warn_flag
63526 - ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
63527 - else
63528 - ac_cpp_err=
63529 - fi
63530 -else
63531 - ac_cpp_err=yes
63532 -fi
63533 -if test -z "$ac_cpp_err"; then
63534 + (exit $ac_status); } >/dev/null && {
63535 + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
63536 + test ! -s conftest.err
63537 + }; then
63538 ac_header_preproc=yes
63539 else
63540 echo "$as_me: failed program was:" >&5
63541 @@ -7345,9 +7951,10 @@ sed 's/^/| /' conftest.$ac_ext >&5
63542
63543 ac_header_preproc=no
63544 fi
63545 +
63546 rm -f conftest.err conftest.$ac_ext
63547 -echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
63548 -echo "${ECHO_T}$ac_header_preproc" >&6
63549 +{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
63550 +echo "${ECHO_T}$ac_header_preproc" >&6; }
63551
63552 # So? What about this header?
63553 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
63554 @@ -7371,30 +7978,23 @@ echo "$as_me: WARNING: libintl.h: se
63555 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
63556 { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
63557 echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
63558 - (
63559 - cat <<\_ASBOX
63560 -## ------------------------------------------ ##
63561 -## Report this to the AC_PACKAGE_NAME lists. ##
63562 -## ------------------------------------------ ##
63563 -_ASBOX
63564 - ) |
63565 - sed "s/^/$as_me: WARNING: /" >&2
63566 +
63567 ;;
63568 esac
63569 -echo "$as_me:$LINENO: checking for libintl.h" >&5
63570 -echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
63571 +{ echo "$as_me:$LINENO: checking for libintl.h" >&5
63572 +echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; }
63573 if test "${ac_cv_header_libintl_h+set}" = set; then
63574 echo $ECHO_N "(cached) $ECHO_C" >&6
63575 else
63576 ac_cv_header_libintl_h=$ac_header_preproc
63577 fi
63578 -echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
63579 -echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
63580 +{ echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
63581 +echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; }
63582
63583 fi
63584 if test $ac_cv_header_libintl_h = yes; then
63585 - echo "$as_me:$LINENO: checking for gettext in libc" >&5
63586 -echo $ECHO_N "checking for gettext in libc... $ECHO_C" >&6
63587 + { echo "$as_me:$LINENO: checking for gettext in libc" >&5
63588 +echo $ECHO_N "checking for gettext in libc... $ECHO_C" >&6; }
63589 if test "${gt_cv_func_gettext_libc+set}" = set; then
63590 echo $ECHO_N "(cached) $ECHO_C" >&6
63591 else
63592 @@ -7414,43 +8014,40 @@ return (int) gettext ("")
63593 }
63594 _ACEOF
63595 rm -f conftest.$ac_objext conftest$ac_exeext
63596 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
63597 - (eval $ac_link) 2>conftest.er1
63598 +if { (ac_try="$ac_link"
63599 +case "(($ac_try" in
63600 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
63601 + *) ac_try_echo=$ac_try;;
63602 +esac
63603 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
63604 + (eval "$ac_link") 2>conftest.er1
63605 ac_status=$?
63606 grep -v '^ *+' conftest.er1 >conftest.err
63607 rm -f conftest.er1
63608 cat conftest.err >&5
63609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
63610 - (exit $ac_status); } &&
63611 - { ac_try='test -z "$ac_c_werror_flag"
63612 - || test ! -s conftest.err'
63613 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
63614 - (eval $ac_try) 2>&5
63615 - ac_status=$?
63616 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
63617 - (exit $ac_status); }; } &&
63618 - { ac_try='test -s conftest$ac_exeext'
63619 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
63620 - (eval $ac_try) 2>&5
63621 - ac_status=$?
63622 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
63623 - (exit $ac_status); }; }; then
63624 + (exit $ac_status); } && {
63625 + test -z "$ac_c_werror_flag" ||
63626 + test ! -s conftest.err
63627 + } && test -s conftest$ac_exeext &&
63628 + $as_test_x conftest$ac_exeext; then
63629 gt_cv_func_gettext_libc=yes
63630 else
63631 echo "$as_me: failed program was:" >&5
63632 sed 's/^/| /' conftest.$ac_ext >&5
63633
63634 -gt_cv_func_gettext_libc=no
63635 + gt_cv_func_gettext_libc=no
63636 fi
63637 -rm -f conftest.err conftest.$ac_objext \
63638 +
63639 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
63640 conftest$ac_exeext conftest.$ac_ext
63641 fi
63642 -echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libc" >&5
63643 -echo "${ECHO_T}$gt_cv_func_gettext_libc" >&6
63644 +{ echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libc" >&5
63645 +echo "${ECHO_T}$gt_cv_func_gettext_libc" >&6; }
63646
63647 if test "$gt_cv_func_gettext_libc" != "yes"; then
63648 - echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
63649 -echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6
63650 + { echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
63651 +echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6; }
63652 if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
63653 echo $ECHO_N "(cached) $ECHO_C" >&6
63654 else
63655 @@ -7463,59 +8060,56 @@ cat confdefs.h >>conftest.$ac_ext
63656 cat >>conftest.$ac_ext <<_ACEOF
63657 /* end confdefs.h. */
63658
63659 -/* Override any gcc2 internal prototype to avoid an error. */
63660 +/* Override any GCC internal prototype to avoid an error.
63661 + Use char because int might match the return type of a GCC
63662 + builtin and then its argument prototype would still apply. */
63663 #ifdef __cplusplus
63664 extern "C"
63665 #endif
63666 -/* We use char because int might match the return type of a gcc2
63667 - builtin and then its argument prototype would still apply. */
63668 char bindtextdomain ();
63669 int
63670 main ()
63671 {
63672 -bindtextdomain ();
63673 +return bindtextdomain ();
63674 ;
63675 return 0;
63676 }
63677 _ACEOF
63678 rm -f conftest.$ac_objext conftest$ac_exeext
63679 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
63680 - (eval $ac_link) 2>conftest.er1
63681 +if { (ac_try="$ac_link"
63682 +case "(($ac_try" in
63683 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
63684 + *) ac_try_echo=$ac_try;;
63685 +esac
63686 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
63687 + (eval "$ac_link") 2>conftest.er1
63688 ac_status=$?
63689 grep -v '^ *+' conftest.er1 >conftest.err
63690 rm -f conftest.er1
63691 cat conftest.err >&5
63692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
63693 - (exit $ac_status); } &&
63694 - { ac_try='test -z "$ac_c_werror_flag"
63695 - || test ! -s conftest.err'
63696 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
63697 - (eval $ac_try) 2>&5
63698 - ac_status=$?
63699 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
63700 - (exit $ac_status); }; } &&
63701 - { ac_try='test -s conftest$ac_exeext'
63702 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
63703 - (eval $ac_try) 2>&5
63704 - ac_status=$?
63705 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
63706 - (exit $ac_status); }; }; then
63707 + (exit $ac_status); } && {
63708 + test -z "$ac_c_werror_flag" ||
63709 + test ! -s conftest.err
63710 + } && test -s conftest$ac_exeext &&
63711 + $as_test_x conftest$ac_exeext; then
63712 ac_cv_lib_intl_bindtextdomain=yes
63713 else
63714 echo "$as_me: failed program was:" >&5
63715 sed 's/^/| /' conftest.$ac_ext >&5
63716
63717 -ac_cv_lib_intl_bindtextdomain=no
63718 + ac_cv_lib_intl_bindtextdomain=no
63719 fi
63720 -rm -f conftest.err conftest.$ac_objext \
63721 +
63722 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
63723 conftest$ac_exeext conftest.$ac_ext
63724 LIBS=$ac_check_lib_save_LIBS
63725 fi
63726 -echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
63727 -echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6
63728 +{ echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
63729 +echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6; }
63730 if test $ac_cv_lib_intl_bindtextdomain = yes; then
63731 - echo "$as_me:$LINENO: checking for gettext in libintl" >&5
63732 -echo $ECHO_N "checking for gettext in libintl... $ECHO_C" >&6
63733 + { echo "$as_me:$LINENO: checking for gettext in libintl" >&5
63734 +echo $ECHO_N "checking for gettext in libintl... $ECHO_C" >&6; }
63735 if test "${gt_cv_func_gettext_libintl+set}" = set; then
63736 echo $ECHO_N "(cached) $ECHO_C" >&6
63737 else
63738 @@ -7535,39 +8129,36 @@ return (int) gettext ("")
63739 }
63740 _ACEOF
63741 rm -f conftest.$ac_objext conftest$ac_exeext
63742 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
63743 - (eval $ac_link) 2>conftest.er1
63744 +if { (ac_try="$ac_link"
63745 +case "(($ac_try" in
63746 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
63747 + *) ac_try_echo=$ac_try;;
63748 +esac
63749 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
63750 + (eval "$ac_link") 2>conftest.er1
63751 ac_status=$?
63752 grep -v '^ *+' conftest.er1 >conftest.err
63753 rm -f conftest.er1
63754 cat conftest.err >&5
63755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
63756 - (exit $ac_status); } &&
63757 - { ac_try='test -z "$ac_c_werror_flag"
63758 - || test ! -s conftest.err'
63759 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
63760 - (eval $ac_try) 2>&5
63761 - ac_status=$?
63762 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
63763 - (exit $ac_status); }; } &&
63764 - { ac_try='test -s conftest$ac_exeext'
63765 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
63766 - (eval $ac_try) 2>&5
63767 - ac_status=$?
63768 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
63769 - (exit $ac_status); }; }; then
63770 + (exit $ac_status); } && {
63771 + test -z "$ac_c_werror_flag" ||
63772 + test ! -s conftest.err
63773 + } && test -s conftest$ac_exeext &&
63774 + $as_test_x conftest$ac_exeext; then
63775 gt_cv_func_gettext_libintl=yes
63776 else
63777 echo "$as_me: failed program was:" >&5
63778 sed 's/^/| /' conftest.$ac_ext >&5
63779
63780 -gt_cv_func_gettext_libintl=no
63781 + gt_cv_func_gettext_libintl=no
63782 fi
63783 -rm -f conftest.err conftest.$ac_objext \
63784 +
63785 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
63786 conftest$ac_exeext conftest.$ac_ext
63787 fi
63788 -echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libintl" >&5
63789 -echo "${ECHO_T}$gt_cv_func_gettext_libintl" >&6
63790 +{ echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libintl" >&5
63791 +echo "${ECHO_T}$gt_cv_func_gettext_libintl" >&6; }
63792 fi
63793
63794 fi
63795 @@ -7581,8 +8172,8 @@ _ACEOF
63796
63797 # Extract the first word of "msgfmt", so it can be a program name with args.
63798 set dummy msgfmt; ac_word=$2
63799 -echo "$as_me:$LINENO: checking for $ac_word" >&5
63800 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
63801 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
63802 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
63803 if test "${ac_cv_path_MSGFMT+set}" = set; then
63804 echo $ECHO_N "(cached) $ECHO_C" >&6
63805 else
63806 @@ -7608,20 +8199,20 @@ esac
63807 fi
63808 MSGFMT="$ac_cv_path_MSGFMT"
63809 if test -n "$MSGFMT"; then
63810 - echo "$as_me:$LINENO: result: $MSGFMT" >&5
63811 -echo "${ECHO_T}$MSGFMT" >&6
63812 + { echo "$as_me:$LINENO: result: $MSGFMT" >&5
63813 +echo "${ECHO_T}$MSGFMT" >&6; }
63814 else
63815 - echo "$as_me:$LINENO: result: no" >&5
63816 -echo "${ECHO_T}no" >&6
63817 + { echo "$as_me:$LINENO: result: no" >&5
63818 +echo "${ECHO_T}no" >&6; }
63819 fi
63820 if test "$MSGFMT" != "no"; then
63821
63822 for ac_func in dcgettext
63823 do
63824 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
63825 -echo "$as_me:$LINENO: checking for $ac_func" >&5
63826 -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
63827 -if eval "test \"\${$as_ac_var+set}\" = set"; then
63828 +{ echo "$as_me:$LINENO: checking for $ac_func" >&5
63829 +echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
63830 +if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
63831 echo $ECHO_N "(cached) $ECHO_C" >&6
63832 else
63833 cat >conftest.$ac_ext <<_ACEOF
63834 @@ -7647,68 +8238,60 @@ cat >>conftest.$ac_ext <<_ACEOF
63835
63836 #undef $ac_func
63837
63838 -/* Override any gcc2 internal prototype to avoid an error. */
63839 +/* Override any GCC internal prototype to avoid an error.
63840 + Use char because int might match the return type of a GCC
63841 + builtin and then its argument prototype would still apply. */
63842 #ifdef __cplusplus
63843 extern "C"
63844 -{
63845 #endif
63846 -/* We use char because int might match the return type of a gcc2
63847 - builtin and then its argument prototype would still apply. */
63848 char $ac_func ();
63849 /* The GNU C library defines this for functions which it implements
63850 to always fail with ENOSYS. Some functions are actually named
63851 something starting with __ and the normal name is an alias. */
63852 -#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
63853 +#if defined __stub_$ac_func || defined __stub___$ac_func
63854 choke me
63855 -#else
63856 -char (*f) () = $ac_func;
63857 -#endif
63858 -#ifdef __cplusplus
63859 -}
63860 #endif
63861
63862 int
63863 main ()
63864 {
63865 -return f != $ac_func;
63866 +return $ac_func ();
63867 ;
63868 return 0;
63869 }
63870 _ACEOF
63871 rm -f conftest.$ac_objext conftest$ac_exeext
63872 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
63873 - (eval $ac_link) 2>conftest.er1
63874 +if { (ac_try="$ac_link"
63875 +case "(($ac_try" in
63876 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
63877 + *) ac_try_echo=$ac_try;;
63878 +esac
63879 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
63880 + (eval "$ac_link") 2>conftest.er1
63881 ac_status=$?
63882 grep -v '^ *+' conftest.er1 >conftest.err
63883 rm -f conftest.er1
63884 cat conftest.err >&5
63885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
63886 - (exit $ac_status); } &&
63887 - { ac_try='test -z "$ac_c_werror_flag"
63888 - || test ! -s conftest.err'
63889 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
63890 - (eval $ac_try) 2>&5
63891 - ac_status=$?
63892 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
63893 - (exit $ac_status); }; } &&
63894 - { ac_try='test -s conftest$ac_exeext'
63895 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
63896 - (eval $ac_try) 2>&5
63897 - ac_status=$?
63898 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
63899 - (exit $ac_status); }; }; then
63900 + (exit $ac_status); } && {
63901 + test -z "$ac_c_werror_flag" ||
63902 + test ! -s conftest.err
63903 + } && test -s conftest$ac_exeext &&
63904 + $as_test_x conftest$ac_exeext; then
63905 eval "$as_ac_var=yes"
63906 else
63907 echo "$as_me: failed program was:" >&5
63908 sed 's/^/| /' conftest.$ac_ext >&5
63909
63910 -eval "$as_ac_var=no"
63911 + eval "$as_ac_var=no"
63912 fi
63913 -rm -f conftest.err conftest.$ac_objext \
63914 +
63915 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
63916 conftest$ac_exeext conftest.$ac_ext
63917 fi
63918 -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
63919 -echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
63920 +ac_res=`eval echo '${'$as_ac_var'}'`
63921 + { echo "$as_me:$LINENO: result: $ac_res" >&5
63922 +echo "${ECHO_T}$ac_res" >&6; }
63923 if test `eval echo '${'$as_ac_var'}'` = yes; then
63924 cat >>confdefs.h <<_ACEOF
63925 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
63926 @@ -7719,8 +8302,8 @@ done
63927
63928 # Extract the first word of "gmsgfmt", so it can be a program name with args.
63929 set dummy gmsgfmt; ac_word=$2
63930 -echo "$as_me:$LINENO: checking for $ac_word" >&5
63931 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
63932 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
63933 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
63934 if test "${ac_cv_path_GMSGFMT+set}" = set; then
63935 echo $ECHO_N "(cached) $ECHO_C" >&6
63936 else
63937 @@ -7735,32 +8318,33 @@ do
63938 IFS=$as_save_IFS
63939 test -z "$as_dir" && as_dir=.
63940 for ac_exec_ext in '' $ac_executable_extensions; do
63941 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
63942 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
63943 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
63944 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
63945 break 2
63946 fi
63947 done
63948 done
63949 +IFS=$as_save_IFS
63950
63951 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
63952 ;;
63953 esac
63954 fi
63955 GMSGFMT=$ac_cv_path_GMSGFMT
63956 -
63957 if test -n "$GMSGFMT"; then
63958 - echo "$as_me:$LINENO: result: $GMSGFMT" >&5
63959 -echo "${ECHO_T}$GMSGFMT" >&6
63960 + { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
63961 +echo "${ECHO_T}$GMSGFMT" >&6; }
63962 else
63963 - echo "$as_me:$LINENO: result: no" >&5
63964 -echo "${ECHO_T}no" >&6
63965 + { echo "$as_me:$LINENO: result: no" >&5
63966 +echo "${ECHO_T}no" >&6; }
63967 fi
63968
63969 +
63970 # Extract the first word of "xgettext", so it can be a program name with args.
63971 set dummy xgettext; ac_word=$2
63972 -echo "$as_me:$LINENO: checking for $ac_word" >&5
63973 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
63974 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
63975 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
63976 if test "${ac_cv_path_XGETTEXT+set}" = set; then
63977 echo $ECHO_N "(cached) $ECHO_C" >&6
63978 else
63979 @@ -7786,11 +8370,11 @@ esac
63980 fi
63981 XGETTEXT="$ac_cv_path_XGETTEXT"
63982 if test -n "$XGETTEXT"; then
63983 - echo "$as_me:$LINENO: result: $XGETTEXT" >&5
63984 -echo "${ECHO_T}$XGETTEXT" >&6
63985 + { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
63986 +echo "${ECHO_T}$XGETTEXT" >&6; }
63987 else
63988 - echo "$as_me:$LINENO: result: no" >&5
63989 -echo "${ECHO_T}no" >&6
63990 + { echo "$as_me:$LINENO: result: no" >&5
63991 +echo "${ECHO_T}no" >&6; }
63992 fi
63993
63994 cat >conftest.$ac_ext <<_ACEOF
63995 @@ -7810,37 +8394,34 @@ extern int _nl_msg_cat_cntr;
63996 }
63997 _ACEOF
63998 rm -f conftest.$ac_objext conftest$ac_exeext
63999 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
64000 - (eval $ac_link) 2>conftest.er1
64001 +if { (ac_try="$ac_link"
64002 +case "(($ac_try" in
64003 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
64004 + *) ac_try_echo=$ac_try;;
64005 +esac
64006 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
64007 + (eval "$ac_link") 2>conftest.er1
64008 ac_status=$?
64009 grep -v '^ *+' conftest.er1 >conftest.err
64010 rm -f conftest.er1
64011 cat conftest.err >&5
64012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64013 - (exit $ac_status); } &&
64014 - { ac_try='test -z "$ac_c_werror_flag"
64015 - || test ! -s conftest.err'
64016 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
64017 - (eval $ac_try) 2>&5
64018 - ac_status=$?
64019 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
64020 - (exit $ac_status); }; } &&
64021 - { ac_try='test -s conftest$ac_exeext'
64022 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
64023 - (eval $ac_try) 2>&5
64024 - ac_status=$?
64025 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
64026 - (exit $ac_status); }; }; then
64027 + (exit $ac_status); } && {
64028 + test -z "$ac_c_werror_flag" ||
64029 + test ! -s conftest.err
64030 + } && test -s conftest$ac_exeext &&
64031 + $as_test_x conftest$ac_exeext; then
64032 CATOBJEXT=.gmo
64033 DATADIRNAME=share
64034 else
64035 echo "$as_me: failed program was:" >&5
64036 sed 's/^/| /' conftest.$ac_ext >&5
64037
64038 -CATOBJEXT=.mo
64039 + CATOBJEXT=.mo
64040 DATADIRNAME=lib
64041 fi
64042 -rm -f conftest.err conftest.$ac_objext \
64043 +
64044 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
64045 conftest$ac_exeext conftest.$ac_ext
64046 INSTOBJEXT=.mo
64047 fi
64048 @@ -7862,8 +8443,8 @@ fi
64049 INTLOBJS="\$(GETTOBJS)"
64050 # Extract the first word of "msgfmt", so it can be a program name with args.
64051 set dummy msgfmt; ac_word=$2
64052 -echo "$as_me:$LINENO: checking for $ac_word" >&5
64053 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
64054 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
64055 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
64056 if test "${ac_cv_path_MSGFMT+set}" = set; then
64057 echo $ECHO_N "(cached) $ECHO_C" >&6
64058 else
64059 @@ -7889,17 +8470,17 @@ esac
64060 fi
64061 MSGFMT="$ac_cv_path_MSGFMT"
64062 if test -n "$MSGFMT"; then
64063 - echo "$as_me:$LINENO: result: $MSGFMT" >&5
64064 -echo "${ECHO_T}$MSGFMT" >&6
64065 + { echo "$as_me:$LINENO: result: $MSGFMT" >&5
64066 +echo "${ECHO_T}$MSGFMT" >&6; }
64067 else
64068 - echo "$as_me:$LINENO: result: no" >&5
64069 -echo "${ECHO_T}no" >&6
64070 + { echo "$as_me:$LINENO: result: no" >&5
64071 +echo "${ECHO_T}no" >&6; }
64072 fi
64073
64074 # Extract the first word of "gmsgfmt", so it can be a program name with args.
64075 set dummy gmsgfmt; ac_word=$2
64076 -echo "$as_me:$LINENO: checking for $ac_word" >&5
64077 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
64078 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
64079 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
64080 if test "${ac_cv_path_GMSGFMT+set}" = set; then
64081 echo $ECHO_N "(cached) $ECHO_C" >&6
64082 else
64083 @@ -7914,32 +8495,33 @@ do
64084 IFS=$as_save_IFS
64085 test -z "$as_dir" && as_dir=.
64086 for ac_exec_ext in '' $ac_executable_extensions; do
64087 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
64088 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
64089 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
64090 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
64091 break 2
64092 fi
64093 done
64094 done
64095 +IFS=$as_save_IFS
64096
64097 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
64098 ;;
64099 esac
64100 fi
64101 GMSGFMT=$ac_cv_path_GMSGFMT
64102 -
64103 if test -n "$GMSGFMT"; then
64104 - echo "$as_me:$LINENO: result: $GMSGFMT" >&5
64105 -echo "${ECHO_T}$GMSGFMT" >&6
64106 + { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
64107 +echo "${ECHO_T}$GMSGFMT" >&6; }
64108 else
64109 - echo "$as_me:$LINENO: result: no" >&5
64110 -echo "${ECHO_T}no" >&6
64111 + { echo "$as_me:$LINENO: result: no" >&5
64112 +echo "${ECHO_T}no" >&6; }
64113 fi
64114
64115 +
64116 # Extract the first word of "xgettext", so it can be a program name with args.
64117 set dummy xgettext; ac_word=$2
64118 -echo "$as_me:$LINENO: checking for $ac_word" >&5
64119 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
64120 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
64121 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
64122 if test "${ac_cv_path_XGETTEXT+set}" = set; then
64123 echo $ECHO_N "(cached) $ECHO_C" >&6
64124 else
64125 @@ -7965,11 +8547,11 @@ esac
64126 fi
64127 XGETTEXT="$ac_cv_path_XGETTEXT"
64128 if test -n "$XGETTEXT"; then
64129 - echo "$as_me:$LINENO: result: $XGETTEXT" >&5
64130 -echo "${ECHO_T}$XGETTEXT" >&6
64131 + { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
64132 +echo "${ECHO_T}$XGETTEXT" >&6; }
64133 else
64134 - echo "$as_me:$LINENO: result: no" >&5
64135 -echo "${ECHO_T}no" >&6
64136 + { echo "$as_me:$LINENO: result: no" >&5
64137 +echo "${ECHO_T}no" >&6; }
64138 fi
64139
64140
64141 @@ -7988,8 +8570,8 @@ fi
64142 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
64143 : ;
64144 else
64145 - echo "$as_me:$LINENO: result: found xgettext programs is not GNU xgettext; ignore it" >&5
64146 -echo "${ECHO_T}found xgettext programs is not GNU xgettext; ignore it" >&6
64147 + { echo "$as_me:$LINENO: result: found xgettext programs is not GNU xgettext; ignore it" >&5
64148 +echo "${ECHO_T}found xgettext programs is not GNU xgettext; ignore it" >&6; }
64149 XGETTEXT=":"
64150 fi
64151 fi
64152 @@ -8038,8 +8620,8 @@ _ACEOF
64153 if test "x$ALL_LINGUAS" = "x"; then
64154 LINGUAS=
64155 else
64156 - echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
64157 -echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
64158 + { echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
64159 +echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6; }
64160 NEW_LINGUAS=
64161 for lang in ${LINGUAS=$ALL_LINGUAS}; do
64162 case "$ALL_LINGUAS" in
64163 @@ -8047,8 +8629,8 @@ echo $ECHO_N "checking for catalogs to b
64164 esac
64165 done
64166 LINGUAS=$NEW_LINGUAS
64167 - echo "$as_me:$LINENO: result: $LINGUAS" >&5
64168 -echo "${ECHO_T}$LINGUAS" >&6
64169 + { echo "$as_me:$LINENO: result: $LINGUAS" >&5
64170 +echo "${ECHO_T}$LINGUAS" >&6; }
64171 fi
64172
64173 if test -n "$LINGUAS"; then
64174 @@ -8067,17 +8649,17 @@ echo "${ECHO_T}$LINGUAS" >&6
64175 if test -f $srcdir/po2tbl.sed.in; then
64176 if test "$CATOBJEXT" = ".cat"; then
64177 if test "${ac_cv_header_linux_version_h+set}" = set; then
64178 - echo "$as_me:$LINENO: checking for linux/version.h" >&5
64179 -echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
64180 + { echo "$as_me:$LINENO: checking for linux/version.h" >&5
64181 +echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6; }
64182 if test "${ac_cv_header_linux_version_h+set}" = set; then
64183 echo $ECHO_N "(cached) $ECHO_C" >&6
64184 fi
64185 -echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
64186 -echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
64187 +{ echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
64188 +echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6; }
64189 else
64190 # Is the header compilable?
64191 -echo "$as_me:$LINENO: checking linux/version.h usability" >&5
64192 -echo $ECHO_N "checking linux/version.h usability... $ECHO_C" >&6
64193 +{ echo "$as_me:$LINENO: checking linux/version.h usability" >&5
64194 +echo $ECHO_N "checking linux/version.h usability... $ECHO_C" >&6; }
64195 cat >conftest.$ac_ext <<_ACEOF
64196 /* confdefs.h. */
64197 _ACEOF
64198 @@ -8088,41 +8670,37 @@ $ac_includes_default
64199 #include <linux/version.h>
64200 _ACEOF
64201 rm -f conftest.$ac_objext
64202 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
64203 - (eval $ac_compile) 2>conftest.er1
64204 +if { (ac_try="$ac_compile"
64205 +case "(($ac_try" in
64206 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
64207 + *) ac_try_echo=$ac_try;;
64208 +esac
64209 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
64210 + (eval "$ac_compile") 2>conftest.er1
64211 ac_status=$?
64212 grep -v '^ *+' conftest.er1 >conftest.err
64213 rm -f conftest.er1
64214 cat conftest.err >&5
64215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64216 - (exit $ac_status); } &&
64217 - { ac_try='test -z "$ac_c_werror_flag"
64218 - || test ! -s conftest.err'
64219 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
64220 - (eval $ac_try) 2>&5
64221 - ac_status=$?
64222 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
64223 - (exit $ac_status); }; } &&
64224 - { ac_try='test -s conftest.$ac_objext'
64225 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
64226 - (eval $ac_try) 2>&5
64227 - ac_status=$?
64228 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
64229 - (exit $ac_status); }; }; then
64230 + (exit $ac_status); } && {
64231 + test -z "$ac_c_werror_flag" ||
64232 + test ! -s conftest.err
64233 + } && test -s conftest.$ac_objext; then
64234 ac_header_compiler=yes
64235 else
64236 echo "$as_me: failed program was:" >&5
64237 sed 's/^/| /' conftest.$ac_ext >&5
64238
64239 -ac_header_compiler=no
64240 + ac_header_compiler=no
64241 fi
64242 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
64243 -echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
64244 -echo "${ECHO_T}$ac_header_compiler" >&6
64245 +
64246 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
64247 +{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
64248 +echo "${ECHO_T}$ac_header_compiler" >&6; }
64249
64250 # Is the header present?
64251 -echo "$as_me:$LINENO: checking linux/version.h presence" >&5
64252 -echo $ECHO_N "checking linux/version.h presence... $ECHO_C" >&6
64253 +{ echo "$as_me:$LINENO: checking linux/version.h presence" >&5
64254 +echo $ECHO_N "checking linux/version.h presence... $ECHO_C" >&6; }
64255 cat >conftest.$ac_ext <<_ACEOF
64256 /* confdefs.h. */
64257 _ACEOF
64258 @@ -8131,24 +8709,22 @@ cat >>conftest.$ac_ext <<_ACEOF
64259 /* end confdefs.h. */
64260 #include <linux/version.h>
64261 _ACEOF
64262 -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
64263 - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
64264 +if { (ac_try="$ac_cpp conftest.$ac_ext"
64265 +case "(($ac_try" in
64266 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
64267 + *) ac_try_echo=$ac_try;;
64268 +esac
64269 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
64270 + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
64271 ac_status=$?
64272 grep -v '^ *+' conftest.er1 >conftest.err
64273 rm -f conftest.er1
64274 cat conftest.err >&5
64275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64276 - (exit $ac_status); } >/dev/null; then
64277 - if test -s conftest.err; then
64278 - ac_cpp_err=$ac_c_preproc_warn_flag
64279 - ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
64280 - else
64281 - ac_cpp_err=
64282 - fi
64283 -else
64284 - ac_cpp_err=yes
64285 -fi
64286 -if test -z "$ac_cpp_err"; then
64287 + (exit $ac_status); } >/dev/null && {
64288 + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
64289 + test ! -s conftest.err
64290 + }; then
64291 ac_header_preproc=yes
64292 else
64293 echo "$as_me: failed program was:" >&5
64294 @@ -8156,9 +8732,10 @@ sed 's/^/| /' conftest.$ac_ext >&5
64295
64296 ac_header_preproc=no
64297 fi
64298 +
64299 rm -f conftest.err conftest.$ac_ext
64300 -echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
64301 -echo "${ECHO_T}$ac_header_preproc" >&6
64302 +{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
64303 +echo "${ECHO_T}$ac_header_preproc" >&6; }
64304
64305 # So? What about this header?
64306 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
64307 @@ -8182,25 +8759,18 @@ echo "$as_me: WARNING: linux/version.h:
64308 echo "$as_me: WARNING: linux/version.h: proceeding with the preprocessor's result" >&2;}
64309 { echo "$as_me:$LINENO: WARNING: linux/version.h: in the future, the compiler will take precedence" >&5
64310 echo "$as_me: WARNING: linux/version.h: in the future, the compiler will take precedence" >&2;}
64311 - (
64312 - cat <<\_ASBOX
64313 -## ------------------------------------------ ##
64314 -## Report this to the AC_PACKAGE_NAME lists. ##
64315 -## ------------------------------------------ ##
64316 -_ASBOX
64317 - ) |
64318 - sed "s/^/$as_me: WARNING: /" >&2
64319 +
64320 ;;
64321 esac
64322 -echo "$as_me:$LINENO: checking for linux/version.h" >&5
64323 -echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
64324 +{ echo "$as_me:$LINENO: checking for linux/version.h" >&5
64325 +echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6; }
64326 if test "${ac_cv_header_linux_version_h+set}" = set; then
64327 echo $ECHO_N "(cached) $ECHO_C" >&6
64328 else
64329 ac_cv_header_linux_version_h=$ac_header_preproc
64330 fi
64331 -echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
64332 -echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
64333 +{ echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
64334 +echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6; }
64335
64336 fi
64337 if test $ac_cv_header_linux_version_h = yes; then
64338 @@ -8256,8 +8826,8 @@ for ac_prog in 'bison -y' byacc
64339 do
64340 # Extract the first word of "$ac_prog", so it can be a program name with args.
64341 set dummy $ac_prog; ac_word=$2
64342 -echo "$as_me:$LINENO: checking for $ac_word" >&5
64343 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
64344 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
64345 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
64346 if test "${ac_cv_prog_YACC+set}" = set; then
64347 echo $ECHO_N "(cached) $ECHO_C" >&6
64348 else
64349 @@ -8270,25 +8840,27 @@ do
64350 IFS=$as_save_IFS
64351 test -z "$as_dir" && as_dir=.
64352 for ac_exec_ext in '' $ac_executable_extensions; do
64353 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
64354 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
64355 ac_cv_prog_YACC="$ac_prog"
64356 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
64357 break 2
64358 fi
64359 done
64360 done
64361 +IFS=$as_save_IFS
64362
64363 fi
64364 fi
64365 YACC=$ac_cv_prog_YACC
64366 if test -n "$YACC"; then
64367 - echo "$as_me:$LINENO: result: $YACC" >&5
64368 -echo "${ECHO_T}$YACC" >&6
64369 + { echo "$as_me:$LINENO: result: $YACC" >&5
64370 +echo "${ECHO_T}$YACC" >&6; }
64371 else
64372 - echo "$as_me:$LINENO: result: no" >&5
64373 -echo "${ECHO_T}no" >&6
64374 + { echo "$as_me:$LINENO: result: no" >&5
64375 +echo "${ECHO_T}no" >&6; }
64376 fi
64377
64378 +
64379 test -n "$YACC" && break
64380 done
64381 test -n "$YACC" || YACC="yacc"
64382 @@ -8297,8 +8869,8 @@ for ac_prog in flex lex
64383 do
64384 # Extract the first word of "$ac_prog", so it can be a program name with args.
64385 set dummy $ac_prog; ac_word=$2
64386 -echo "$as_me:$LINENO: checking for $ac_word" >&5
64387 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
64388 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
64389 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
64390 if test "${ac_cv_prog_LEX+set}" = set; then
64391 echo $ECHO_N "(cached) $ECHO_C" >&6
64392 else
64393 @@ -8311,253 +8883,182 @@ do
64394 IFS=$as_save_IFS
64395 test -z "$as_dir" && as_dir=.
64396 for ac_exec_ext in '' $ac_executable_extensions; do
64397 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
64398 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
64399 ac_cv_prog_LEX="$ac_prog"
64400 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
64401 break 2
64402 fi
64403 done
64404 done
64405 +IFS=$as_save_IFS
64406
64407 fi
64408 fi
64409 LEX=$ac_cv_prog_LEX
64410 if test -n "$LEX"; then
64411 - echo "$as_me:$LINENO: result: $LEX" >&5
64412 -echo "${ECHO_T}$LEX" >&6
64413 + { echo "$as_me:$LINENO: result: $LEX" >&5
64414 +echo "${ECHO_T}$LEX" >&6; }
64415 else
64416 - echo "$as_me:$LINENO: result: no" >&5
64417 -echo "${ECHO_T}no" >&6
64418 + { echo "$as_me:$LINENO: result: no" >&5
64419 +echo "${ECHO_T}no" >&6; }
64420 fi
64421
64422 +
64423 test -n "$LEX" && break
64424 done
64425 test -n "$LEX" || LEX=":"
64426
64427 -if test -z "$LEXLIB"
64428 -then
64429 - echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
64430 -echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
64431 -if test "${ac_cv_lib_fl_yywrap+set}" = set; then
64432 - echo $ECHO_N "(cached) $ECHO_C" >&6
64433 -else
64434 - ac_check_lib_save_LIBS=$LIBS
64435 -LIBS="-lfl $LIBS"
64436 -cat >conftest.$ac_ext <<_ACEOF
64437 -/* confdefs.h. */
64438 -_ACEOF
64439 -cat confdefs.h >>conftest.$ac_ext
64440 -cat >>conftest.$ac_ext <<_ACEOF
64441 -/* end confdefs.h. */
64442 -
64443 -/* Override any gcc2 internal prototype to avoid an error. */
64444 -#ifdef __cplusplus
64445 -extern "C"
64446 +if test "x$LEX" != "x:"; then
64447 + cat >conftest.l <<_ACEOF
64448 +%%
64449 +a { ECHO; }
64450 +b { REJECT; }
64451 +c { yymore (); }
64452 +d { yyless (1); }
64453 +e { yyless (input () != 0); }
64454 +f { unput (yytext[0]); }
64455 +. { BEGIN INITIAL; }
64456 +%%
64457 +#ifdef YYTEXT_POINTER
64458 +extern char *yytext;
64459 #endif
64460 -/* We use char because int might match the return type of a gcc2
64461 - builtin and then its argument prototype would still apply. */
64462 -char yywrap ();
64463 int
64464 -main ()
64465 +main (void)
64466 {
64467 -yywrap ();
64468 - ;
64469 - return 0;
64470 + return ! yylex () + ! yywrap ();
64471 }
64472 _ACEOF
64473 -rm -f conftest.$ac_objext conftest$ac_exeext
64474 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
64475 - (eval $ac_link) 2>conftest.er1
64476 - ac_status=$?
64477 - grep -v '^ *+' conftest.er1 >conftest.err
64478 - rm -f conftest.er1
64479 - cat conftest.err >&5
64480 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
64481 - (exit $ac_status); } &&
64482 - { ac_try='test -z "$ac_c_werror_flag"
64483 - || test ! -s conftest.err'
64484 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
64485 - (eval $ac_try) 2>&5
64486 - ac_status=$?
64487 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
64488 - (exit $ac_status); }; } &&
64489 - { ac_try='test -s conftest$ac_exeext'
64490 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
64491 - (eval $ac_try) 2>&5
64492 +{ (ac_try="$LEX conftest.l"
64493 +case "(($ac_try" in
64494 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
64495 + *) ac_try_echo=$ac_try;;
64496 +esac
64497 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
64498 + (eval "$LEX conftest.l") 2>&5
64499 ac_status=$?
64500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64501 - (exit $ac_status); }; }; then
64502 - ac_cv_lib_fl_yywrap=yes
64503 + (exit $ac_status); }
64504 +{ echo "$as_me:$LINENO: checking lex output file root" >&5
64505 +echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; }
64506 +if test "${ac_cv_prog_lex_root+set}" = set; then
64507 + echo $ECHO_N "(cached) $ECHO_C" >&6
64508 else
64509 - echo "$as_me: failed program was:" >&5
64510 -sed 's/^/| /' conftest.$ac_ext >&5
64511
64512 -ac_cv_lib_fl_yywrap=no
64513 +if test -f lex.yy.c; then
64514 + ac_cv_prog_lex_root=lex.yy
64515 +elif test -f lexyy.c; then
64516 + ac_cv_prog_lex_root=lexyy
64517 +else
64518 + { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
64519 +echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
64520 + { (exit 1); exit 1; }; }
64521 fi
64522 -rm -f conftest.err conftest.$ac_objext \
64523 - conftest$ac_exeext conftest.$ac_ext
64524 -LIBS=$ac_check_lib_save_LIBS
64525 fi
64526 -echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
64527 -echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
64528 -if test $ac_cv_lib_fl_yywrap = yes; then
64529 - LEXLIB="-lfl"
64530 -else
64531 - echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
64532 -echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
64533 -if test "${ac_cv_lib_l_yywrap+set}" = set; then
64534 +{ echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
64535 +echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; }
64536 +LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
64537 +
64538 +if test -z "${LEXLIB+set}"; then
64539 + { echo "$as_me:$LINENO: checking lex library" >&5
64540 +echo $ECHO_N "checking lex library... $ECHO_C" >&6; }
64541 +if test "${ac_cv_lib_lex+set}" = set; then
64542 echo $ECHO_N "(cached) $ECHO_C" >&6
64543 else
64544 - ac_check_lib_save_LIBS=$LIBS
64545 -LIBS="-ll $LIBS"
64546 -cat >conftest.$ac_ext <<_ACEOF
64547 -/* confdefs.h. */
64548 -_ACEOF
64549 -cat confdefs.h >>conftest.$ac_ext
64550 -cat >>conftest.$ac_ext <<_ACEOF
64551 -/* end confdefs.h. */
64552
64553 -/* Override any gcc2 internal prototype to avoid an error. */
64554 -#ifdef __cplusplus
64555 -extern "C"
64556 -#endif
64557 -/* We use char because int might match the return type of a gcc2
64558 - builtin and then its argument prototype would still apply. */
64559 -char yywrap ();
64560 -int
64561 -main ()
64562 -{
64563 -yywrap ();
64564 - ;
64565 - return 0;
64566 -}
64567 + ac_save_LIBS=$LIBS
64568 + ac_cv_lib_lex='none needed'
64569 + for ac_lib in '' -lfl -ll; do
64570 + LIBS="$ac_lib $ac_save_LIBS"
64571 + cat >conftest.$ac_ext <<_ACEOF
64572 +`cat $LEX_OUTPUT_ROOT.c`
64573 _ACEOF
64574 rm -f conftest.$ac_objext conftest$ac_exeext
64575 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
64576 - (eval $ac_link) 2>conftest.er1
64577 +if { (ac_try="$ac_link"
64578 +case "(($ac_try" in
64579 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
64580 + *) ac_try_echo=$ac_try;;
64581 +esac
64582 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
64583 + (eval "$ac_link") 2>conftest.er1
64584 ac_status=$?
64585 grep -v '^ *+' conftest.er1 >conftest.err
64586 rm -f conftest.er1
64587 cat conftest.err >&5
64588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64589 - (exit $ac_status); } &&
64590 - { ac_try='test -z "$ac_c_werror_flag"
64591 - || test ! -s conftest.err'
64592 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
64593 - (eval $ac_try) 2>&5
64594 - ac_status=$?
64595 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
64596 - (exit $ac_status); }; } &&
64597 - { ac_try='test -s conftest$ac_exeext'
64598 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
64599 - (eval $ac_try) 2>&5
64600 - ac_status=$?
64601 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
64602 - (exit $ac_status); }; }; then
64603 - ac_cv_lib_l_yywrap=yes
64604 + (exit $ac_status); } && {
64605 + test -z "$ac_c_werror_flag" ||
64606 + test ! -s conftest.err
64607 + } && test -s conftest$ac_exeext &&
64608 + $as_test_x conftest$ac_exeext; then
64609 + ac_cv_lib_lex=$ac_lib
64610 else
64611 echo "$as_me: failed program was:" >&5
64612 sed 's/^/| /' conftest.$ac_ext >&5
64613
64614 -ac_cv_lib_l_yywrap=no
64615 -fi
64616 -rm -f conftest.err conftest.$ac_objext \
64617 - conftest$ac_exeext conftest.$ac_ext
64618 -LIBS=$ac_check_lib_save_LIBS
64619 -fi
64620 -echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
64621 -echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
64622 -if test $ac_cv_lib_l_yywrap = yes; then
64623 - LEXLIB="-ll"
64624 -fi
64625
64626 fi
64627
64628 -fi
64629 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
64630 + conftest$ac_exeext conftest.$ac_ext
64631 + test "$ac_cv_lib_lex" != 'none needed' && break
64632 + done
64633 + LIBS=$ac_save_LIBS
64634
64635 -if test "x$LEX" != "x:"; then
64636 - echo "$as_me:$LINENO: checking lex output file root" >&5
64637 -echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
64638 -if test "${ac_cv_prog_lex_root+set}" = set; then
64639 - echo $ECHO_N "(cached) $ECHO_C" >&6
64640 -else
64641 - # The minimal lex program is just a single line: %%. But some broken lexes
64642 -# (Solaris, I think it was) want two %% lines, so accommodate them.
64643 -cat >conftest.l <<_ACEOF
64644 -%%
64645 -%%
64646 -_ACEOF
64647 -{ (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
64648 - (eval $LEX conftest.l) 2>&5
64649 - ac_status=$?
64650 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
64651 - (exit $ac_status); }
64652 -if test -f lex.yy.c; then
64653 - ac_cv_prog_lex_root=lex.yy
64654 -elif test -f lexyy.c; then
64655 - ac_cv_prog_lex_root=lexyy
64656 -else
64657 - { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
64658 -echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
64659 - { (exit 1); exit 1; }; }
64660 fi
64661 +{ echo "$as_me:$LINENO: result: $ac_cv_lib_lex" >&5
64662 +echo "${ECHO_T}$ac_cv_lib_lex" >&6; }
64663 + test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
64664 fi
64665 -echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
64666 -echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
64667 -rm -f conftest.l
64668 -LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
64669
64670 -echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
64671 -echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
64672 +
64673 +{ echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
64674 +echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; }
64675 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
64676 echo $ECHO_N "(cached) $ECHO_C" >&6
64677 else
64678 # POSIX says lex can declare yytext either as a pointer or an array; the
64679 -# default is implementation-dependent. Figure out which it is, since
64680 +# default is implementation-dependent. Figure out which it is, since
64681 # not all implementations provide the %pointer and %array declarations.
64682 ac_cv_prog_lex_yytext_pointer=no
64683 -echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
64684 ac_save_LIBS=$LIBS
64685 -LIBS="$LIBS $LEXLIB"
64686 +LIBS="$LEXLIB $ac_save_LIBS"
64687 cat >conftest.$ac_ext <<_ACEOF
64688 +#define YYTEXT_POINTER 1
64689 `cat $LEX_OUTPUT_ROOT.c`
64690 _ACEOF
64691 rm -f conftest.$ac_objext conftest$ac_exeext
64692 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
64693 - (eval $ac_link) 2>conftest.er1
64694 +if { (ac_try="$ac_link"
64695 +case "(($ac_try" in
64696 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
64697 + *) ac_try_echo=$ac_try;;
64698 +esac
64699 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
64700 + (eval "$ac_link") 2>conftest.er1
64701 ac_status=$?
64702 grep -v '^ *+' conftest.er1 >conftest.err
64703 rm -f conftest.er1
64704 cat conftest.err >&5
64705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64706 - (exit $ac_status); } &&
64707 - { ac_try='test -z "$ac_c_werror_flag"
64708 - || test ! -s conftest.err'
64709 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
64710 - (eval $ac_try) 2>&5
64711 - ac_status=$?
64712 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
64713 - (exit $ac_status); }; } &&
64714 - { ac_try='test -s conftest$ac_exeext'
64715 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
64716 - (eval $ac_try) 2>&5
64717 - ac_status=$?
64718 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
64719 - (exit $ac_status); }; }; then
64720 + (exit $ac_status); } && {
64721 + test -z "$ac_c_werror_flag" ||
64722 + test ! -s conftest.err
64723 + } && test -s conftest$ac_exeext &&
64724 + $as_test_x conftest$ac_exeext; then
64725 ac_cv_prog_lex_yytext_pointer=yes
64726 else
64727 echo "$as_me: failed program was:" >&5
64728 sed 's/^/| /' conftest.$ac_ext >&5
64729
64730 +
64731 fi
64732 -rm -f conftest.err conftest.$ac_objext \
64733 +
64734 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
64735 conftest$ac_exeext conftest.$ac_ext
64736 LIBS=$ac_save_LIBS
64737 -rm -f "${LEX_OUTPUT_ROOT}.c"
64738
64739 fi
64740 -echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
64741 -echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
64742 +{ echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
64743 +echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; }
64744 if test $ac_cv_prog_lex_yytext_pointer = yes; then
64745
64746 cat >>confdefs.h <<\_ACEOF
64747 @@ -8565,23 +9066,24 @@ cat >>confdefs.h <<\_ACEOF
64748 _ACEOF
64749
64750 fi
64751 +rm -f conftest.l $LEX_OUTPUT_ROOT.c
64752
64753 fi
64754 if test "$LEX" = :; then
64755 LEX=${am_missing_run}flex
64756 fi
64757
64758 -echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
64759 -echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
64760 - # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
64761 +{ echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
64762 +echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
64763 + # Check whether --enable-maintainer-mode was given.
64764 if test "${enable_maintainer_mode+set}" = set; then
64765 - enableval="$enable_maintainer_mode"
64766 - USE_MAINTAINER_MODE=$enableval
64767 + enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
64768 else
64769 USE_MAINTAINER_MODE=no
64770 -fi;
64771 - echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
64772 -echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
64773 +fi
64774 +
64775 + { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
64776 +echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
64777
64778
64779 if test $USE_MAINTAINER_MODE = yes; then
64780 @@ -8611,18 +9113,19 @@ fi
64781 for ac_header in string.h strings.h stdlib.h unistd.h elf-hints.h
64782 do
64783 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
64784 -if eval "test \"\${$as_ac_Header+set}\" = set"; then
64785 - echo "$as_me:$LINENO: checking for $ac_header" >&5
64786 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
64787 -if eval "test \"\${$as_ac_Header+set}\" = set"; then
64788 +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
64789 + { echo "$as_me:$LINENO: checking for $ac_header" >&5
64790 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
64791 +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
64792 echo $ECHO_N "(cached) $ECHO_C" >&6
64793 fi
64794 -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
64795 -echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
64796 +ac_res=`eval echo '${'$as_ac_Header'}'`
64797 + { echo "$as_me:$LINENO: result: $ac_res" >&5
64798 +echo "${ECHO_T}$ac_res" >&6; }
64799 else
64800 # Is the header compilable?
64801 -echo "$as_me:$LINENO: checking $ac_header usability" >&5
64802 -echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
64803 +{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
64804 +echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
64805 cat >conftest.$ac_ext <<_ACEOF
64806 /* confdefs.h. */
64807 _ACEOF
64808 @@ -8633,41 +9136,37 @@ $ac_includes_default
64809 #include <$ac_header>
64810 _ACEOF
64811 rm -f conftest.$ac_objext
64812 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
64813 - (eval $ac_compile) 2>conftest.er1
64814 +if { (ac_try="$ac_compile"
64815 +case "(($ac_try" in
64816 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
64817 + *) ac_try_echo=$ac_try;;
64818 +esac
64819 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
64820 + (eval "$ac_compile") 2>conftest.er1
64821 ac_status=$?
64822 grep -v '^ *+' conftest.er1 >conftest.err
64823 rm -f conftest.er1
64824 cat conftest.err >&5
64825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64826 - (exit $ac_status); } &&
64827 - { ac_try='test -z "$ac_c_werror_flag"
64828 - || test ! -s conftest.err'
64829 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
64830 - (eval $ac_try) 2>&5
64831 - ac_status=$?
64832 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
64833 - (exit $ac_status); }; } &&
64834 - { ac_try='test -s conftest.$ac_objext'
64835 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
64836 - (eval $ac_try) 2>&5
64837 - ac_status=$?
64838 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
64839 - (exit $ac_status); }; }; then
64840 + (exit $ac_status); } && {
64841 + test -z "$ac_c_werror_flag" ||
64842 + test ! -s conftest.err
64843 + } && test -s conftest.$ac_objext; then
64844 ac_header_compiler=yes
64845 else
64846 echo "$as_me: failed program was:" >&5
64847 sed 's/^/| /' conftest.$ac_ext >&5
64848
64849 -ac_header_compiler=no
64850 + ac_header_compiler=no
64851 fi
64852 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
64853 -echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
64854 -echo "${ECHO_T}$ac_header_compiler" >&6
64855 +
64856 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
64857 +{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
64858 +echo "${ECHO_T}$ac_header_compiler" >&6; }
64859
64860 # Is the header present?
64861 -echo "$as_me:$LINENO: checking $ac_header presence" >&5
64862 -echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
64863 +{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
64864 +echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
64865 cat >conftest.$ac_ext <<_ACEOF
64866 /* confdefs.h. */
64867 _ACEOF
64868 @@ -8676,24 +9175,22 @@ cat >>conftest.$ac_ext <<_ACEOF
64869 /* end confdefs.h. */
64870 #include <$ac_header>
64871 _ACEOF
64872 -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
64873 - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
64874 +if { (ac_try="$ac_cpp conftest.$ac_ext"
64875 +case "(($ac_try" in
64876 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
64877 + *) ac_try_echo=$ac_try;;
64878 +esac
64879 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
64880 + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
64881 ac_status=$?
64882 grep -v '^ *+' conftest.er1 >conftest.err
64883 rm -f conftest.er1
64884 cat conftest.err >&5
64885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64886 - (exit $ac_status); } >/dev/null; then
64887 - if test -s conftest.err; then
64888 - ac_cpp_err=$ac_c_preproc_warn_flag
64889 - ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
64890 - else
64891 - ac_cpp_err=
64892 - fi
64893 -else
64894 - ac_cpp_err=yes
64895 -fi
64896 -if test -z "$ac_cpp_err"; then
64897 + (exit $ac_status); } >/dev/null && {
64898 + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
64899 + test ! -s conftest.err
64900 + }; then
64901 ac_header_preproc=yes
64902 else
64903 echo "$as_me: failed program was:" >&5
64904 @@ -8701,9 +9198,10 @@ sed 's/^/| /' conftest.$ac_ext >&5
64905
64906 ac_header_preproc=no
64907 fi
64908 +
64909 rm -f conftest.err conftest.$ac_ext
64910 -echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
64911 -echo "${ECHO_T}$ac_header_preproc" >&6
64912 +{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
64913 +echo "${ECHO_T}$ac_header_preproc" >&6; }
64914
64915 # So? What about this header?
64916 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
64917 @@ -8727,25 +9225,19 @@ echo "$as_me: WARNING: $ac_header: s
64918 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
64919 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
64920 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
64921 - (
64922 - cat <<\_ASBOX
64923 -## ------------------------------------------ ##
64924 -## Report this to the AC_PACKAGE_NAME lists. ##
64925 -## ------------------------------------------ ##
64926 -_ASBOX
64927 - ) |
64928 - sed "s/^/$as_me: WARNING: /" >&2
64929 +
64930 ;;
64931 esac
64932 -echo "$as_me:$LINENO: checking for $ac_header" >&5
64933 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
64934 -if eval "test \"\${$as_ac_Header+set}\" = set"; then
64935 +{ echo "$as_me:$LINENO: checking for $ac_header" >&5
64936 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
64937 +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
64938 echo $ECHO_N "(cached) $ECHO_C" >&6
64939 else
64940 eval "$as_ac_Header=\$ac_header_preproc"
64941 fi
64942 -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
64943 -echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
64944 +ac_res=`eval echo '${'$as_ac_Header'}'`
64945 + { echo "$as_me:$LINENO: result: $ac_res" >&5
64946 +echo "${ECHO_T}$ac_res" >&6; }
64947
64948 fi
64949 if test `eval echo '${'$as_ac_Header'}'` = yes; then
64950 @@ -8763,9 +9255,9 @@ done
64951 for ac_func in sbrk realpath glob
64952 do
64953 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
64954 -echo "$as_me:$LINENO: checking for $ac_func" >&5
64955 -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
64956 -if eval "test \"\${$as_ac_var+set}\" = set"; then
64957 +{ echo "$as_me:$LINENO: checking for $ac_func" >&5
64958 +echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
64959 +if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
64960 echo $ECHO_N "(cached) $ECHO_C" >&6
64961 else
64962 cat >conftest.$ac_ext <<_ACEOF
64963 @@ -8791,68 +9283,60 @@ cat >>conftest.$ac_ext <<_ACEOF
64964
64965 #undef $ac_func
64966
64967 -/* Override any gcc2 internal prototype to avoid an error. */
64968 +/* Override any GCC internal prototype to avoid an error.
64969 + Use char because int might match the return type of a GCC
64970 + builtin and then its argument prototype would still apply. */
64971 #ifdef __cplusplus
64972 extern "C"
64973 -{
64974 #endif
64975 -/* We use char because int might match the return type of a gcc2
64976 - builtin and then its argument prototype would still apply. */
64977 char $ac_func ();
64978 /* The GNU C library defines this for functions which it implements
64979 to always fail with ENOSYS. Some functions are actually named
64980 something starting with __ and the normal name is an alias. */
64981 -#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
64982 +#if defined __stub_$ac_func || defined __stub___$ac_func
64983 choke me
64984 -#else
64985 -char (*f) () = $ac_func;
64986 -#endif
64987 -#ifdef __cplusplus
64988 -}
64989 #endif
64990
64991 int
64992 main ()
64993 {
64994 -return f != $ac_func;
64995 +return $ac_func ();
64996 ;
64997 return 0;
64998 }
64999 _ACEOF
65000 rm -f conftest.$ac_objext conftest$ac_exeext
65001 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
65002 - (eval $ac_link) 2>conftest.er1
65003 +if { (ac_try="$ac_link"
65004 +case "(($ac_try" in
65005 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
65006 + *) ac_try_echo=$ac_try;;
65007 +esac
65008 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
65009 + (eval "$ac_link") 2>conftest.er1
65010 ac_status=$?
65011 grep -v '^ *+' conftest.er1 >conftest.err
65012 rm -f conftest.er1
65013 cat conftest.err >&5
65014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
65015 - (exit $ac_status); } &&
65016 - { ac_try='test -z "$ac_c_werror_flag"
65017 - || test ! -s conftest.err'
65018 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
65019 - (eval $ac_try) 2>&5
65020 - ac_status=$?
65021 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
65022 - (exit $ac_status); }; } &&
65023 - { ac_try='test -s conftest$ac_exeext'
65024 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
65025 - (eval $ac_try) 2>&5
65026 - ac_status=$?
65027 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
65028 - (exit $ac_status); }; }; then
65029 + (exit $ac_status); } && {
65030 + test -z "$ac_c_werror_flag" ||
65031 + test ! -s conftest.err
65032 + } && test -s conftest$ac_exeext &&
65033 + $as_test_x conftest$ac_exeext; then
65034 eval "$as_ac_var=yes"
65035 else
65036 echo "$as_me: failed program was:" >&5
65037 sed 's/^/| /' conftest.$ac_ext >&5
65038
65039 -eval "$as_ac_var=no"
65040 + eval "$as_ac_var=no"
65041 fi
65042 -rm -f conftest.err conftest.$ac_objext \
65043 +
65044 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
65045 conftest$ac_exeext conftest.$ac_ext
65046 fi
65047 -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
65048 -echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
65049 +ac_res=`eval echo '${'$as_ac_var'}'`
65050 + { echo "$as_me:$LINENO: result: $ac_res" >&5
65051 +echo "${ECHO_T}$ac_res" >&6; }
65052 if test `eval echo '${'$as_ac_var'}'` = yes; then
65053 cat >>confdefs.h <<_ACEOF
65054 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
65055 @@ -8869,9 +9353,9 @@ done
65056 ac_header_dirent=no
65057 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
65058 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
65059 -echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
65060 -echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
65061 -if eval "test \"\${$as_ac_Header+set}\" = set"; then
65062 +{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
65063 +echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
65064 +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
65065 echo $ECHO_N "(cached) $ECHO_C" >&6
65066 else
65067 cat >conftest.$ac_ext <<_ACEOF
65068 @@ -8893,38 +9377,35 @@ return 0;
65069 }
65070 _ACEOF
65071 rm -f conftest.$ac_objext
65072 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
65073 - (eval $ac_compile) 2>conftest.er1
65074 +if { (ac_try="$ac_compile"
65075 +case "(($ac_try" in
65076 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
65077 + *) ac_try_echo=$ac_try;;
65078 +esac
65079 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
65080 + (eval "$ac_compile") 2>conftest.er1
65081 ac_status=$?
65082 grep -v '^ *+' conftest.er1 >conftest.err
65083 rm -f conftest.er1
65084 cat conftest.err >&5
65085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
65086 - (exit $ac_status); } &&
65087 - { ac_try='test -z "$ac_c_werror_flag"
65088 - || test ! -s conftest.err'
65089 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
65090 - (eval $ac_try) 2>&5
65091 - ac_status=$?
65092 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
65093 - (exit $ac_status); }; } &&
65094 - { ac_try='test -s conftest.$ac_objext'
65095 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
65096 - (eval $ac_try) 2>&5
65097 - ac_status=$?
65098 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
65099 - (exit $ac_status); }; }; then
65100 + (exit $ac_status); } && {
65101 + test -z "$ac_c_werror_flag" ||
65102 + test ! -s conftest.err
65103 + } && test -s conftest.$ac_objext; then
65104 eval "$as_ac_Header=yes"
65105 else
65106 echo "$as_me: failed program was:" >&5
65107 sed 's/^/| /' conftest.$ac_ext >&5
65108
65109 -eval "$as_ac_Header=no"
65110 + eval "$as_ac_Header=no"
65111 fi
65112 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
65113 +
65114 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
65115 fi
65116 -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
65117 -echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
65118 +ac_res=`eval echo '${'$as_ac_Header'}'`
65119 + { echo "$as_me:$LINENO: result: $ac_res" >&5
65120 +echo "${ECHO_T}$ac_res" >&6; }
65121 if test `eval echo '${'$as_ac_Header'}'` = yes; then
65122 cat >>confdefs.h <<_ACEOF
65123 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
65124 @@ -8936,13 +9417,12 @@ fi
65125 done
65126 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
65127 if test $ac_header_dirent = dirent.h; then
65128 - echo "$as_me:$LINENO: checking for library containing opendir" >&5
65129 -echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
65130 + { echo "$as_me:$LINENO: checking for library containing opendir" >&5
65131 +echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
65132 if test "${ac_cv_search_opendir+set}" = set; then
65133 echo $ECHO_N "(cached) $ECHO_C" >&6
65134 else
65135 ac_func_search_save_LIBS=$LIBS
65136 -ac_cv_search_opendir=no
65137 cat >conftest.$ac_ext <<_ACEOF
65138 /* confdefs.h. */
65139 _ACEOF
65140 @@ -8950,126 +9430,83 @@ cat confdefs.h >>conftest.$ac_ext
65141 cat >>conftest.$ac_ext <<_ACEOF
65142 /* end confdefs.h. */
65143
65144 -/* Override any gcc2 internal prototype to avoid an error. */
65145 +/* Override any GCC internal prototype to avoid an error.
65146 + Use char because int might match the return type of a GCC
65147 + builtin and then its argument prototype would still apply. */
65148 #ifdef __cplusplus
65149 extern "C"
65150 #endif
65151 -/* We use char because int might match the return type of a gcc2
65152 - builtin and then its argument prototype would still apply. */
65153 char opendir ();
65154 int
65155 main ()
65156 {
65157 -opendir ();
65158 +return opendir ();
65159 ;
65160 return 0;
65161 }
65162 _ACEOF
65163 -rm -f conftest.$ac_objext conftest$ac_exeext
65164 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
65165 - (eval $ac_link) 2>conftest.er1
65166 +for ac_lib in '' dir; do
65167 + if test -z "$ac_lib"; then
65168 + ac_res="none required"
65169 + else
65170 + ac_res=-l$ac_lib
65171 + LIBS="-l$ac_lib $ac_func_search_save_LIBS"
65172 + fi
65173 + rm -f conftest.$ac_objext conftest$ac_exeext
65174 +if { (ac_try="$ac_link"
65175 +case "(($ac_try" in
65176 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
65177 + *) ac_try_echo=$ac_try;;
65178 +esac
65179 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
65180 + (eval "$ac_link") 2>conftest.er1
65181 ac_status=$?
65182 grep -v '^ *+' conftest.er1 >conftest.err
65183 rm -f conftest.er1
65184 cat conftest.err >&5
65185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
65186 - (exit $ac_status); } &&
65187 - { ac_try='test -z "$ac_c_werror_flag"
65188 - || test ! -s conftest.err'
65189 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
65190 - (eval $ac_try) 2>&5
65191 - ac_status=$?
65192 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
65193 - (exit $ac_status); }; } &&
65194 - { ac_try='test -s conftest$ac_exeext'
65195 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
65196 - (eval $ac_try) 2>&5
65197 - ac_status=$?
65198 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
65199 - (exit $ac_status); }; }; then
65200 - ac_cv_search_opendir="none required"
65201 + (exit $ac_status); } && {
65202 + test -z "$ac_c_werror_flag" ||
65203 + test ! -s conftest.err
65204 + } && test -s conftest$ac_exeext &&
65205 + $as_test_x conftest$ac_exeext; then
65206 + ac_cv_search_opendir=$ac_res
65207 else
65208 echo "$as_me: failed program was:" >&5
65209 sed 's/^/| /' conftest.$ac_ext >&5
65210
65211 +
65212 fi
65213 -rm -f conftest.err conftest.$ac_objext \
65214 - conftest$ac_exeext conftest.$ac_ext
65215 -if test "$ac_cv_search_opendir" = no; then
65216 - for ac_lib in dir; do
65217 - LIBS="-l$ac_lib $ac_func_search_save_LIBS"
65218 - cat >conftest.$ac_ext <<_ACEOF
65219 -/* confdefs.h. */
65220 -_ACEOF
65221 -cat confdefs.h >>conftest.$ac_ext
65222 -cat >>conftest.$ac_ext <<_ACEOF
65223 -/* end confdefs.h. */
65224 -
65225 -/* Override any gcc2 internal prototype to avoid an error. */
65226 -#ifdef __cplusplus
65227 -extern "C"
65228 -#endif
65229 -/* We use char because int might match the return type of a gcc2
65230 - builtin and then its argument prototype would still apply. */
65231 -char opendir ();
65232 -int
65233 -main ()
65234 -{
65235 -opendir ();
65236 - ;
65237 - return 0;
65238 -}
65239 -_ACEOF
65240 -rm -f conftest.$ac_objext conftest$ac_exeext
65241 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
65242 - (eval $ac_link) 2>conftest.er1
65243 - ac_status=$?
65244 - grep -v '^ *+' conftest.er1 >conftest.err
65245 - rm -f conftest.er1
65246 - cat conftest.err >&5
65247 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
65248 - (exit $ac_status); } &&
65249 - { ac_try='test -z "$ac_c_werror_flag"
65250 - || test ! -s conftest.err'
65251 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
65252 - (eval $ac_try) 2>&5
65253 - ac_status=$?
65254 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
65255 - (exit $ac_status); }; } &&
65256 - { ac_try='test -s conftest$ac_exeext'
65257 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
65258 - (eval $ac_try) 2>&5
65259 - ac_status=$?
65260 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
65261 - (exit $ac_status); }; }; then
65262 - ac_cv_search_opendir="-l$ac_lib"
65263 -break
65264 -else
65265 - echo "$as_me: failed program was:" >&5
65266 -sed 's/^/| /' conftest.$ac_ext >&5
65267
65268 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
65269 + conftest$ac_exeext
65270 + if test "${ac_cv_search_opendir+set}" = set; then
65271 + break
65272 fi
65273 -rm -f conftest.err conftest.$ac_objext \
65274 - conftest$ac_exeext conftest.$ac_ext
65275 - done
65276 +done
65277 +if test "${ac_cv_search_opendir+set}" = set; then
65278 + :
65279 +else
65280 + ac_cv_search_opendir=no
65281 fi
65282 +rm conftest.$ac_ext
65283 LIBS=$ac_func_search_save_LIBS
65284 fi
65285 -echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
65286 -echo "${ECHO_T}$ac_cv_search_opendir" >&6
65287 -if test "$ac_cv_search_opendir" != no; then
65288 - test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
65289 +{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
65290 +echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
65291 +ac_res=$ac_cv_search_opendir
65292 +if test "$ac_res" != no; then
65293 + test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
65294
65295 fi
65296
65297 else
65298 - echo "$as_me:$LINENO: checking for library containing opendir" >&5
65299 -echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
65300 + { echo "$as_me:$LINENO: checking for library containing opendir" >&5
65301 +echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
65302 if test "${ac_cv_search_opendir+set}" = set; then
65303 echo $ECHO_N "(cached) $ECHO_C" >&6
65304 else
65305 ac_func_search_save_LIBS=$LIBS
65306 -ac_cv_search_opendir=no
65307 cat >conftest.$ac_ext <<_ACEOF
65308 /* confdefs.h. */
65309 _ACEOF
65310 @@ -9077,123 +9514,81 @@ cat confdefs.h >>conftest.$ac_ext
65311 cat >>conftest.$ac_ext <<_ACEOF
65312 /* end confdefs.h. */
65313
65314 -/* Override any gcc2 internal prototype to avoid an error. */
65315 +/* Override any GCC internal prototype to avoid an error.
65316 + Use char because int might match the return type of a GCC
65317 + builtin and then its argument prototype would still apply. */
65318 #ifdef __cplusplus
65319 extern "C"
65320 #endif
65321 -/* We use char because int might match the return type of a gcc2
65322 - builtin and then its argument prototype would still apply. */
65323 char opendir ();
65324 int
65325 main ()
65326 {
65327 -opendir ();
65328 +return opendir ();
65329 ;
65330 return 0;
65331 }
65332 _ACEOF
65333 -rm -f conftest.$ac_objext conftest$ac_exeext
65334 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
65335 - (eval $ac_link) 2>conftest.er1
65336 +for ac_lib in '' x; do
65337 + if test -z "$ac_lib"; then
65338 + ac_res="none required"
65339 + else
65340 + ac_res=-l$ac_lib
65341 + LIBS="-l$ac_lib $ac_func_search_save_LIBS"
65342 + fi
65343 + rm -f conftest.$ac_objext conftest$ac_exeext
65344 +if { (ac_try="$ac_link"
65345 +case "(($ac_try" in
65346 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
65347 + *) ac_try_echo=$ac_try;;
65348 +esac
65349 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
65350 + (eval "$ac_link") 2>conftest.er1
65351 ac_status=$?
65352 grep -v '^ *+' conftest.er1 >conftest.err
65353 rm -f conftest.er1
65354 cat conftest.err >&5
65355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
65356 - (exit $ac_status); } &&
65357 - { ac_try='test -z "$ac_c_werror_flag"
65358 - || test ! -s conftest.err'
65359 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
65360 - (eval $ac_try) 2>&5
65361 - ac_status=$?
65362 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
65363 - (exit $ac_status); }; } &&
65364 - { ac_try='test -s conftest$ac_exeext'
65365 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
65366 - (eval $ac_try) 2>&5
65367 - ac_status=$?
65368 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
65369 - (exit $ac_status); }; }; then
65370 - ac_cv_search_opendir="none required"
65371 + (exit $ac_status); } && {
65372 + test -z "$ac_c_werror_flag" ||
65373 + test ! -s conftest.err
65374 + } && test -s conftest$ac_exeext &&
65375 + $as_test_x conftest$ac_exeext; then
65376 + ac_cv_search_opendir=$ac_res
65377 else
65378 echo "$as_me: failed program was:" >&5
65379 sed 's/^/| /' conftest.$ac_ext >&5
65380
65381 -fi
65382 -rm -f conftest.err conftest.$ac_objext \
65383 - conftest$ac_exeext conftest.$ac_ext
65384 -if test "$ac_cv_search_opendir" = no; then
65385 - for ac_lib in x; do
65386 - LIBS="-l$ac_lib $ac_func_search_save_LIBS"
65387 - cat >conftest.$ac_ext <<_ACEOF
65388 -/* confdefs.h. */
65389 -_ACEOF
65390 -cat confdefs.h >>conftest.$ac_ext
65391 -cat >>conftest.$ac_ext <<_ACEOF
65392 -/* end confdefs.h. */
65393
65394 -/* Override any gcc2 internal prototype to avoid an error. */
65395 -#ifdef __cplusplus
65396 -extern "C"
65397 -#endif
65398 -/* We use char because int might match the return type of a gcc2
65399 - builtin and then its argument prototype would still apply. */
65400 -char opendir ();
65401 -int
65402 -main ()
65403 -{
65404 -opendir ();
65405 - ;
65406 - return 0;
65407 -}
65408 -_ACEOF
65409 -rm -f conftest.$ac_objext conftest$ac_exeext
65410 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
65411 - (eval $ac_link) 2>conftest.er1
65412 - ac_status=$?
65413 - grep -v '^ *+' conftest.er1 >conftest.err
65414 - rm -f conftest.er1
65415 - cat conftest.err >&5
65416 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
65417 - (exit $ac_status); } &&
65418 - { ac_try='test -z "$ac_c_werror_flag"
65419 - || test ! -s conftest.err'
65420 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
65421 - (eval $ac_try) 2>&5
65422 - ac_status=$?
65423 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
65424 - (exit $ac_status); }; } &&
65425 - { ac_try='test -s conftest$ac_exeext'
65426 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
65427 - (eval $ac_try) 2>&5
65428 - ac_status=$?
65429 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
65430 - (exit $ac_status); }; }; then
65431 - ac_cv_search_opendir="-l$ac_lib"
65432 -break
65433 -else
65434 - echo "$as_me: failed program was:" >&5
65435 -sed 's/^/| /' conftest.$ac_ext >&5
65436 +fi
65437
65438 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
65439 + conftest$ac_exeext
65440 + if test "${ac_cv_search_opendir+set}" = set; then
65441 + break
65442 fi
65443 -rm -f conftest.err conftest.$ac_objext \
65444 - conftest$ac_exeext conftest.$ac_ext
65445 - done
65446 +done
65447 +if test "${ac_cv_search_opendir+set}" = set; then
65448 + :
65449 +else
65450 + ac_cv_search_opendir=no
65451 fi
65452 +rm conftest.$ac_ext
65453 LIBS=$ac_func_search_save_LIBS
65454 fi
65455 -echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
65456 -echo "${ECHO_T}$ac_cv_search_opendir" >&6
65457 -if test "$ac_cv_search_opendir" != no; then
65458 - test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
65459 +{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
65460 +echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
65461 +ac_res=$ac_cv_search_opendir
65462 +if test "$ac_res" != no; then
65463 + test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
65464
65465 fi
65466
65467 fi
65468
65469
65470 -echo "$as_me:$LINENO: checking for a known getopt prototype in unistd.h" >&5
65471 -echo $ECHO_N "checking for a known getopt prototype in unistd.h... $ECHO_C" >&6
65472 +{ echo "$as_me:$LINENO: checking for a known getopt prototype in unistd.h" >&5
65473 +echo $ECHO_N "checking for a known getopt prototype in unistd.h... $ECHO_C" >&6; }
65474 if test "${ld_cv_decl_getopt_unistd_h+set}" = set; then
65475 echo $ECHO_N "(cached) $ECHO_C" >&6
65476 else
65477 @@ -9213,39 +9608,35 @@ extern int getopt (int, char *const*, co
65478 }
65479 _ACEOF
65480 rm -f conftest.$ac_objext
65481 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
65482 - (eval $ac_compile) 2>conftest.er1
65483 +if { (ac_try="$ac_compile"
65484 +case "(($ac_try" in
65485 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
65486 + *) ac_try_echo=$ac_try;;
65487 +esac
65488 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
65489 + (eval "$ac_compile") 2>conftest.er1
65490 ac_status=$?
65491 grep -v '^ *+' conftest.er1 >conftest.err
65492 rm -f conftest.er1
65493 cat conftest.err >&5
65494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
65495 - (exit $ac_status); } &&
65496 - { ac_try='test -z "$ac_c_werror_flag"
65497 - || test ! -s conftest.err'
65498 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
65499 - (eval $ac_try) 2>&5
65500 - ac_status=$?
65501 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
65502 - (exit $ac_status); }; } &&
65503 - { ac_try='test -s conftest.$ac_objext'
65504 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
65505 - (eval $ac_try) 2>&5
65506 - ac_status=$?
65507 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
65508 - (exit $ac_status); }; }; then
65509 + (exit $ac_status); } && {
65510 + test -z "$ac_c_werror_flag" ||
65511 + test ! -s conftest.err
65512 + } && test -s conftest.$ac_objext; then
65513 ld_cv_decl_getopt_unistd_h=yes
65514 else
65515 echo "$as_me: failed program was:" >&5
65516 sed 's/^/| /' conftest.$ac_ext >&5
65517
65518 -ld_cv_decl_getopt_unistd_h=no
65519 + ld_cv_decl_getopt_unistd_h=no
65520 fi
65521 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
65522 +
65523 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
65524 fi
65525
65526 -echo "$as_me:$LINENO: result: $ld_cv_decl_getopt_unistd_h" >&5
65527 -echo "${ECHO_T}$ld_cv_decl_getopt_unistd_h" >&6
65528 +{ echo "$as_me:$LINENO: result: $ld_cv_decl_getopt_unistd_h" >&5
65529 +echo "${ECHO_T}$ld_cv_decl_getopt_unistd_h" >&6; }
65530 if test $ld_cv_decl_getopt_unistd_h = yes; then
65531
65532 cat >>confdefs.h <<\_ACEOF
65533 @@ -9264,8 +9655,8 @@ _ACEOF
65534 ;;
65535 esac
65536
65537 -echo "$as_me:$LINENO: checking whether strstr is declared" >&5
65538 -echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6
65539 +{ echo "$as_me:$LINENO: checking whether strstr is declared" >&5
65540 +echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6; }
65541 if test "${ac_cv_have_decl_strstr+set}" = set; then
65542 echo $ECHO_N "(cached) $ECHO_C" >&6
65543 else
65544 @@ -9280,7 +9671,7 @@ int
65545 main ()
65546 {
65547 #ifndef strstr
65548 - char *p = (char *) strstr;
65549 + (void) strstr;
65550 #endif
65551
65552 ;
65553 @@ -9288,38 +9679,34 @@ main ()
65554 }
65555 _ACEOF
65556 rm -f conftest.$ac_objext
65557 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
65558 - (eval $ac_compile) 2>conftest.er1
65559 +if { (ac_try="$ac_compile"
65560 +case "(($ac_try" in
65561 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
65562 + *) ac_try_echo=$ac_try;;
65563 +esac
65564 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
65565 + (eval "$ac_compile") 2>conftest.er1
65566 ac_status=$?
65567 grep -v '^ *+' conftest.er1 >conftest.err
65568 rm -f conftest.er1
65569 cat conftest.err >&5
65570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
65571 - (exit $ac_status); } &&
65572 - { ac_try='test -z "$ac_c_werror_flag"
65573 - || test ! -s conftest.err'
65574 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
65575 - (eval $ac_try) 2>&5
65576 - ac_status=$?
65577 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
65578 - (exit $ac_status); }; } &&
65579 - { ac_try='test -s conftest.$ac_objext'
65580 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
65581 - (eval $ac_try) 2>&5
65582 - ac_status=$?
65583 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
65584 - (exit $ac_status); }; }; then
65585 + (exit $ac_status); } && {
65586 + test -z "$ac_c_werror_flag" ||
65587 + test ! -s conftest.err
65588 + } && test -s conftest.$ac_objext; then
65589 ac_cv_have_decl_strstr=yes
65590 else
65591 echo "$as_me: failed program was:" >&5
65592 sed 's/^/| /' conftest.$ac_ext >&5
65593
65594 -ac_cv_have_decl_strstr=no
65595 + ac_cv_have_decl_strstr=no
65596 fi
65597 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
65598 +
65599 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
65600 fi
65601 -echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5
65602 -echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6
65603 +{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5
65604 +echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6; }
65605 if test $ac_cv_have_decl_strstr = yes; then
65606
65607 cat >>confdefs.h <<_ACEOF
65608 @@ -9334,8 +9721,8 @@ _ACEOF
65609
65610
65611 fi
65612 -echo "$as_me:$LINENO: checking whether free is declared" >&5
65613 -echo $ECHO_N "checking whether free is declared... $ECHO_C" >&6
65614 +{ echo "$as_me:$LINENO: checking whether free is declared" >&5
65615 +echo $ECHO_N "checking whether free is declared... $ECHO_C" >&6; }
65616 if test "${ac_cv_have_decl_free+set}" = set; then
65617 echo $ECHO_N "(cached) $ECHO_C" >&6
65618 else
65619 @@ -9350,7 +9737,7 @@ int
65620 main ()
65621 {
65622 #ifndef free
65623 - char *p = (char *) free;
65624 + (void) free;
65625 #endif
65626
65627 ;
65628 @@ -9358,38 +9745,34 @@ main ()
65629 }
65630 _ACEOF
65631 rm -f conftest.$ac_objext
65632 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
65633 - (eval $ac_compile) 2>conftest.er1
65634 +if { (ac_try="$ac_compile"
65635 +case "(($ac_try" in
65636 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
65637 + *) ac_try_echo=$ac_try;;
65638 +esac
65639 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
65640 + (eval "$ac_compile") 2>conftest.er1
65641 ac_status=$?
65642 grep -v '^ *+' conftest.er1 >conftest.err
65643 rm -f conftest.er1
65644 cat conftest.err >&5
65645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
65646 - (exit $ac_status); } &&
65647 - { ac_try='test -z "$ac_c_werror_flag"
65648 - || test ! -s conftest.err'
65649 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
65650 - (eval $ac_try) 2>&5
65651 - ac_status=$?
65652 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
65653 - (exit $ac_status); }; } &&
65654 - { ac_try='test -s conftest.$ac_objext'
65655 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
65656 - (eval $ac_try) 2>&5
65657 - ac_status=$?
65658 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
65659 - (exit $ac_status); }; }; then
65660 + (exit $ac_status); } && {
65661 + test -z "$ac_c_werror_flag" ||
65662 + test ! -s conftest.err
65663 + } && test -s conftest.$ac_objext; then
65664 ac_cv_have_decl_free=yes
65665 else
65666 echo "$as_me: failed program was:" >&5
65667 sed 's/^/| /' conftest.$ac_ext >&5
65668
65669 -ac_cv_have_decl_free=no
65670 + ac_cv_have_decl_free=no
65671 fi
65672 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
65673 +
65674 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
65675 fi
65676 -echo "$as_me:$LINENO: result: $ac_cv_have_decl_free" >&5
65677 -echo "${ECHO_T}$ac_cv_have_decl_free" >&6
65678 +{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_free" >&5
65679 +echo "${ECHO_T}$ac_cv_have_decl_free" >&6; }
65680 if test $ac_cv_have_decl_free = yes; then
65681
65682 cat >>confdefs.h <<_ACEOF
65683 @@ -9404,8 +9787,8 @@ _ACEOF
65684
65685
65686 fi
65687 -echo "$as_me:$LINENO: checking whether sbrk is declared" >&5
65688 -echo $ECHO_N "checking whether sbrk is declared... $ECHO_C" >&6
65689 +{ echo "$as_me:$LINENO: checking whether sbrk is declared" >&5
65690 +echo $ECHO_N "checking whether sbrk is declared... $ECHO_C" >&6; }
65691 if test "${ac_cv_have_decl_sbrk+set}" = set; then
65692 echo $ECHO_N "(cached) $ECHO_C" >&6
65693 else
65694 @@ -9420,7 +9803,7 @@ int
65695 main ()
65696 {
65697 #ifndef sbrk
65698 - char *p = (char *) sbrk;
65699 + (void) sbrk;
65700 #endif
65701
65702 ;
65703 @@ -9428,38 +9811,34 @@ main ()
65704 }
65705 _ACEOF
65706 rm -f conftest.$ac_objext
65707 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
65708 - (eval $ac_compile) 2>conftest.er1
65709 +if { (ac_try="$ac_compile"
65710 +case "(($ac_try" in
65711 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
65712 + *) ac_try_echo=$ac_try;;
65713 +esac
65714 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
65715 + (eval "$ac_compile") 2>conftest.er1
65716 ac_status=$?
65717 grep -v '^ *+' conftest.er1 >conftest.err
65718 rm -f conftest.er1
65719 cat conftest.err >&5
65720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
65721 - (exit $ac_status); } &&
65722 - { ac_try='test -z "$ac_c_werror_flag"
65723 - || test ! -s conftest.err'
65724 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
65725 - (eval $ac_try) 2>&5
65726 - ac_status=$?
65727 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
65728 - (exit $ac_status); }; } &&
65729 - { ac_try='test -s conftest.$ac_objext'
65730 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
65731 - (eval $ac_try) 2>&5
65732 - ac_status=$?
65733 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
65734 - (exit $ac_status); }; }; then
65735 + (exit $ac_status); } && {
65736 + test -z "$ac_c_werror_flag" ||
65737 + test ! -s conftest.err
65738 + } && test -s conftest.$ac_objext; then
65739 ac_cv_have_decl_sbrk=yes
65740 else
65741 echo "$as_me: failed program was:" >&5
65742 sed 's/^/| /' conftest.$ac_ext >&5
65743
65744 -ac_cv_have_decl_sbrk=no
65745 + ac_cv_have_decl_sbrk=no
65746 fi
65747 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
65748 +
65749 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
65750 fi
65751 -echo "$as_me:$LINENO: result: $ac_cv_have_decl_sbrk" >&5
65752 -echo "${ECHO_T}$ac_cv_have_decl_sbrk" >&6
65753 +{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_sbrk" >&5
65754 +echo "${ECHO_T}$ac_cv_have_decl_sbrk" >&6; }
65755 if test $ac_cv_have_decl_sbrk = yes; then
65756
65757 cat >>confdefs.h <<_ACEOF
65758 @@ -9474,8 +9853,8 @@ _ACEOF
65759
65760
65761 fi
65762 -echo "$as_me:$LINENO: checking whether getenv is declared" >&5
65763 -echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6
65764 +{ echo "$as_me:$LINENO: checking whether getenv is declared" >&5
65765 +echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6; }
65766 if test "${ac_cv_have_decl_getenv+set}" = set; then
65767 echo $ECHO_N "(cached) $ECHO_C" >&6
65768 else
65769 @@ -9490,7 +9869,7 @@ int
65770 main ()
65771 {
65772 #ifndef getenv
65773 - char *p = (char *) getenv;
65774 + (void) getenv;
65775 #endif
65776
65777 ;
65778 @@ -9498,38 +9877,34 @@ main ()
65779 }
65780 _ACEOF
65781 rm -f conftest.$ac_objext
65782 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
65783 - (eval $ac_compile) 2>conftest.er1
65784 +if { (ac_try="$ac_compile"
65785 +case "(($ac_try" in
65786 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
65787 + *) ac_try_echo=$ac_try;;
65788 +esac
65789 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
65790 + (eval "$ac_compile") 2>conftest.er1
65791 ac_status=$?
65792 grep -v '^ *+' conftest.er1 >conftest.err
65793 rm -f conftest.er1
65794 cat conftest.err >&5
65795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
65796 - (exit $ac_status); } &&
65797 - { ac_try='test -z "$ac_c_werror_flag"
65798 - || test ! -s conftest.err'
65799 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
65800 - (eval $ac_try) 2>&5
65801 - ac_status=$?
65802 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
65803 - (exit $ac_status); }; } &&
65804 - { ac_try='test -s conftest.$ac_objext'
65805 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
65806 - (eval $ac_try) 2>&5
65807 - ac_status=$?
65808 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
65809 - (exit $ac_status); }; }; then
65810 + (exit $ac_status); } && {
65811 + test -z "$ac_c_werror_flag" ||
65812 + test ! -s conftest.err
65813 + } && test -s conftest.$ac_objext; then
65814 ac_cv_have_decl_getenv=yes
65815 else
65816 echo "$as_me: failed program was:" >&5
65817 sed 's/^/| /' conftest.$ac_ext >&5
65818
65819 -ac_cv_have_decl_getenv=no
65820 + ac_cv_have_decl_getenv=no
65821 fi
65822 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
65823 +
65824 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
65825 fi
65826 -echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
65827 -echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6
65828 +{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
65829 +echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6; }
65830 if test $ac_cv_have_decl_getenv = yes; then
65831
65832 cat >>confdefs.h <<_ACEOF
65833 @@ -9544,8 +9919,8 @@ _ACEOF
65834
65835
65836 fi
65837 -echo "$as_me:$LINENO: checking whether environ is declared" >&5
65838 -echo $ECHO_N "checking whether environ is declared... $ECHO_C" >&6
65839 +{ echo "$as_me:$LINENO: checking whether environ is declared" >&5
65840 +echo $ECHO_N "checking whether environ is declared... $ECHO_C" >&6; }
65841 if test "${ac_cv_have_decl_environ+set}" = set; then
65842 echo $ECHO_N "(cached) $ECHO_C" >&6
65843 else
65844 @@ -9560,7 +9935,7 @@ int
65845 main ()
65846 {
65847 #ifndef environ
65848 - char *p = (char *) environ;
65849 + (void) environ;
65850 #endif
65851
65852 ;
65853 @@ -9568,38 +9943,34 @@ main ()
65854 }
65855 _ACEOF
65856 rm -f conftest.$ac_objext
65857 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
65858 - (eval $ac_compile) 2>conftest.er1
65859 +if { (ac_try="$ac_compile"
65860 +case "(($ac_try" in
65861 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
65862 + *) ac_try_echo=$ac_try;;
65863 +esac
65864 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
65865 + (eval "$ac_compile") 2>conftest.er1
65866 ac_status=$?
65867 grep -v '^ *+' conftest.er1 >conftest.err
65868 rm -f conftest.er1
65869 cat conftest.err >&5
65870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
65871 - (exit $ac_status); } &&
65872 - { ac_try='test -z "$ac_c_werror_flag"
65873 - || test ! -s conftest.err'
65874 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
65875 - (eval $ac_try) 2>&5
65876 - ac_status=$?
65877 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
65878 - (exit $ac_status); }; } &&
65879 - { ac_try='test -s conftest.$ac_objext'
65880 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
65881 - (eval $ac_try) 2>&5
65882 - ac_status=$?
65883 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
65884 - (exit $ac_status); }; }; then
65885 + (exit $ac_status); } && {
65886 + test -z "$ac_c_werror_flag" ||
65887 + test ! -s conftest.err
65888 + } && test -s conftest.$ac_objext; then
65889 ac_cv_have_decl_environ=yes
65890 else
65891 echo "$as_me: failed program was:" >&5
65892 sed 's/^/| /' conftest.$ac_ext >&5
65893
65894 -ac_cv_have_decl_environ=no
65895 + ac_cv_have_decl_environ=no
65896 fi
65897 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
65898 +
65899 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
65900 fi
65901 -echo "$as_me:$LINENO: result: $ac_cv_have_decl_environ" >&5
65902 -echo "${ECHO_T}$ac_cv_have_decl_environ" >&6
65903 +{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_environ" >&5
65904 +echo "${ECHO_T}$ac_cv_have_decl_environ" >&6; }
65905 if test $ac_cv_have_decl_environ = yes; then
65906
65907 cat >>confdefs.h <<_ACEOF
65908 @@ -9623,8 +9994,8 @@ fi
65909 # broken Microsoft MSVC compiler, which limits the length of string
65910 # constants, while still supporting pre-ANSI compilers which do not
65911 # support string concatenation.
65912 -echo "$as_me:$LINENO: checking whether ANSI C string concatenation works" >&5
65913 -echo $ECHO_N "checking whether ANSI C string concatenation works... $ECHO_C" >&6
65914 +{ echo "$as_me:$LINENO: checking whether ANSI C string concatenation works" >&5
65915 +echo $ECHO_N "checking whether ANSI C string concatenation works... $ECHO_C" >&6; }
65916 if test "${ld_cv_string_concatenation+set}" = set; then
65917 echo $ECHO_N "(cached) $ECHO_C" >&6
65918 else
65919 @@ -9644,39 +10015,35 @@ char *a = "a" "a";
65920 }
65921 _ACEOF
65922 rm -f conftest.$ac_objext
65923 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
65924 - (eval $ac_compile) 2>conftest.er1
65925 +if { (ac_try="$ac_compile"
65926 +case "(($ac_try" in
65927 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
65928 + *) ac_try_echo=$ac_try;;
65929 +esac
65930 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
65931 + (eval "$ac_compile") 2>conftest.er1
65932 ac_status=$?
65933 grep -v '^ *+' conftest.er1 >conftest.err
65934 rm -f conftest.er1
65935 cat conftest.err >&5
65936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
65937 - (exit $ac_status); } &&
65938 - { ac_try='test -z "$ac_c_werror_flag"
65939 - || test ! -s conftest.err'
65940 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
65941 - (eval $ac_try) 2>&5
65942 - ac_status=$?
65943 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
65944 - (exit $ac_status); }; } &&
65945 - { ac_try='test -s conftest.$ac_objext'
65946 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
65947 - (eval $ac_try) 2>&5
65948 - ac_status=$?
65949 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
65950 - (exit $ac_status); }; }; then
65951 + (exit $ac_status); } && {
65952 + test -z "$ac_c_werror_flag" ||
65953 + test ! -s conftest.err
65954 + } && test -s conftest.$ac_objext; then
65955 ld_cv_string_concatenation=yes
65956 else
65957 echo "$as_me: failed program was:" >&5
65958 sed 's/^/| /' conftest.$ac_ext >&5
65959
65960 -ld_cv_string_concatenation=no
65961 + ld_cv_string_concatenation=no
65962 fi
65963 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
65964 +
65965 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
65966 fi
65967
65968 -echo "$as_me:$LINENO: result: $ld_cv_string_concatenation" >&5
65969 -echo "${ECHO_T}$ld_cv_string_concatenation" >&6
65970 +{ echo "$as_me:$LINENO: result: $ld_cv_string_concatenation" >&5
65971 +echo "${ECHO_T}$ld_cv_string_concatenation" >&6; }
65972 if test "$ld_cv_string_concatenation" = "yes"; then
65973 STRINGIFY=astring.sed
65974 else
65975 @@ -9801,8 +10168,10 @@ fi
65976
65977
65978
65979 - ac_config_files="$ac_config_files Makefile po/Makefile.in:po/Make-in"
65980 - ac_config_commands="$ac_config_commands default"
65981 +ac_config_files="$ac_config_files Makefile po/Makefile.in:po/Make-in"
65982 +
65983 +ac_config_commands="$ac_config_commands default"
65984 +
65985 cat >confcache <<\_ACEOF
65986 # This file is a shell script that caches the results of configure
65987 # tests run on this system so they can be shared between configure
65988 @@ -9821,39 +10190,58 @@ _ACEOF
65989
65990 # The following way of writing the cache mishandles newlines in values,
65991 # but we know of no workaround that is simple, portable, and efficient.
65992 -# So, don't put newlines in cache variables' values.
65993 +# So, we kill variables containing newlines.
65994 # Ultrix sh set writes to stderr and can't be redirected directly,
65995 # and sets the high bit in the cache file unless we assign to the vars.
65996 -{
65997 +(
65998 + for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
65999 + eval ac_val=\$$ac_var
66000 + case $ac_val in #(
66001 + *${as_nl}*)
66002 + case $ac_var in #(
66003 + *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
66004 +echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
66005 + esac
66006 + case $ac_var in #(
66007 + _ | IFS | as_nl) ;; #(
66008 + *) $as_unset $ac_var ;;
66009 + esac ;;
66010 + esac
66011 + done
66012 +
66013 (set) 2>&1 |
66014 - case `(ac_space=' '; set | grep ac_space) 2>&1` in
66015 - *ac_space=\ *)
66016 + case $as_nl`(ac_space=' '; set) 2>&1` in #(
66017 + *${as_nl}ac_space=\ *)
66018 # `set' does not quote correctly, so add quotes (double-quote
66019 # substitution turns \\\\ into \\, and sed turns \\ into \).
66020 sed -n \
66021 "s/'/'\\\\''/g;
66022 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
66023 - ;;
66024 + ;; #(
66025 *)
66026 # `set' quotes correctly as required by POSIX, so do not add quotes.
66027 - sed -n \
66028 - "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
66029 + sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
66030 ;;
66031 - esac;
66032 -} |
66033 + esac |
66034 + sort
66035 +) |
66036 sed '
66037 + /^ac_cv_env_/b end
66038 t clear
66039 - : clear
66040 + :clear
66041 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
66042 t end
66043 - /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
66044 - : end' >>confcache
66045 -if diff $cache_file confcache >/dev/null 2>&1; then :; else
66046 - if test -w $cache_file; then
66047 - test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
66048 + s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
66049 + :end' >>confcache
66050 +if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
66051 + if test -w "$cache_file"; then
66052 + test "x$cache_file" != "x/dev/null" &&
66053 + { echo "$as_me:$LINENO: updating cache $cache_file" >&5
66054 +echo "$as_me: updating cache $cache_file" >&6;}
66055 cat confcache >$cache_file
66056 else
66057 - echo "not updating unwritable cache $cache_file"
66058 + { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
66059 +echo "$as_me: not updating unwritable cache $cache_file" >&6;}
66060 fi
66061 fi
66062 rm -f confcache
66063 @@ -9862,32 +10250,18 @@ test "x$prefix" = xNONE && prefix=$ac_de
66064 # Let make expand exec_prefix.
66065 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
66066
66067 -# VPATH may cause trouble with some makes, so we remove $(srcdir),
66068 -# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
66069 -# trailing colons and then remove the whole line if VPATH becomes empty
66070 -# (actually we leave an empty line to preserve line numbers).
66071 -if test "x$srcdir" = x.; then
66072 - ac_vpsub='/^[ ]*VPATH[ ]*=/{
66073 -s/:*\$(srcdir):*/:/;
66074 -s/:*\${srcdir}:*/:/;
66075 -s/:*@srcdir@:*/:/;
66076 -s/^\([^=]*=[ ]*\):*/\1/;
66077 -s/:*$//;
66078 -s/^[^=]*=[ ]*$//;
66079 -}'
66080 -fi
66081 -
66082 DEFS=-DHAVE_CONFIG_H
66083
66084 ac_libobjs=
66085 ac_ltlibobjs=
66086 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
66087 # 1. Remove the extension, and $U if already installed.
66088 - ac_i=`echo "$ac_i" |
66089 - sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
66090 - # 2. Add them.
66091 - ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
66092 - ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
66093 + ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
66094 + ac_i=`echo "$ac_i" | sed "$ac_script"`
66095 + # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
66096 + # will be set to the directory where LIBOBJS objects are built.
66097 + ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
66098 + ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
66099 done
66100 LIBOBJS=$ac_libobjs
66101
66102 @@ -9939,17 +10313,45 @@ cat >>$CONFIG_STATUS <<\_ACEOF
66103 ## M4sh Initialization. ##
66104 ## --------------------- ##
66105
66106 -# Be Bourne compatible
66107 +# Be more Bourne compatible
66108 +DUALCASE=1; export DUALCASE # for MKS sh
66109 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
66110 emulate sh
66111 NULLCMD=:
66112 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
66113 # is contrary to our usage. Disable this feature.
66114 alias -g '${1+"$@"}'='"$@"'
66115 -elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
66116 - set -o posix
66117 + setopt NO_GLOB_SUBST
66118 +else
66119 + case `(set -o) 2>/dev/null` in
66120 + *posix*) set -o posix ;;
66121 +esac
66122 +
66123 +fi
66124 +
66125 +
66126 +
66127 +
66128 +# PATH needs CR
66129 +# Avoid depending upon Character Ranges.
66130 +as_cr_letters='abcdefghijklmnopqrstuvwxyz'
66131 +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
66132 +as_cr_Letters=$as_cr_letters$as_cr_LETTERS
66133 +as_cr_digits='0123456789'
66134 +as_cr_alnum=$as_cr_Letters$as_cr_digits
66135 +
66136 +# The user is always right.
66137 +if test "${PATH_SEPARATOR+set}" != set; then
66138 + echo "#! /bin/sh" >conf$$.sh
66139 + echo "exit 0" >>conf$$.sh
66140 + chmod +x conf$$.sh
66141 + if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
66142 + PATH_SEPARATOR=';'
66143 + else
66144 + PATH_SEPARATOR=:
66145 + fi
66146 + rm -f conf$$.sh
66147 fi
66148 -DUALCASE=1; export DUALCASE # for MKS sh
66149
66150 # Support unset when possible.
66151 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
66152 @@ -9959,8 +10361,43 @@ else
66153 fi
66154
66155
66156 +# IFS
66157 +# We need space, tab and new line, in precisely that order. Quoting is
66158 +# there to prevent editors from complaining about space-tab.
66159 +# (If _AS_PATH_WALK were called with IFS unset, it would disable word
66160 +# splitting by setting IFS to empty value.)
66161 +as_nl='
66162 +'
66163 +IFS=" "" $as_nl"
66164 +
66165 +# Find who we are. Look in the path if we contain no directory separator.
66166 +case $0 in
66167 + *[\\/]* ) as_myself=$0 ;;
66168 + *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
66169 +for as_dir in $PATH
66170 +do
66171 + IFS=$as_save_IFS
66172 + test -z "$as_dir" && as_dir=.
66173 + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
66174 +done
66175 +IFS=$as_save_IFS
66176 +
66177 + ;;
66178 +esac
66179 +# We did not find ourselves, most probably we were run as `sh COMMAND'
66180 +# in which case we are not to be found in the path.
66181 +if test "x$as_myself" = x; then
66182 + as_myself=$0
66183 +fi
66184 +if test ! -f "$as_myself"; then
66185 + echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
66186 + { (exit 1); exit 1; }
66187 +fi
66188 +
66189 # Work around bugs in pre-3.0 UWIN ksh.
66190 -$as_unset ENV MAIL MAILPATH
66191 +for as_var in ENV MAIL MAILPATH
66192 +do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
66193 +done
66194 PS1='$ '
66195 PS2='> '
66196 PS4='+ '
66197 @@ -9974,18 +10411,19 @@ do
66198 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
66199 eval $as_var=C; export $as_var
66200 else
66201 - $as_unset $as_var
66202 + ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
66203 fi
66204 done
66205
66206 # Required to use basename.
66207 -if expr a : '\(a\)' >/dev/null 2>&1; then
66208 +if expr a : '\(a\)' >/dev/null 2>&1 &&
66209 + test "X`expr 00001 : '.*\(...\)'`" = X001; then
66210 as_expr=expr
66211 else
66212 as_expr=false
66213 fi
66214
66215 -if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
66216 +if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
66217 as_basename=basename
66218 else
66219 as_basename=false
66220 @@ -9993,159 +10431,120 @@ fi
66221
66222
66223 # Name of the executable.
66224 -as_me=`$as_basename "$0" ||
66225 +as_me=`$as_basename -- "$0" ||
66226 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
66227 X"$0" : 'X\(//\)$' \| \
66228 - X"$0" : 'X\(/\)$' \| \
66229 - . : '\(.\)' 2>/dev/null ||
66230 + X"$0" : 'X\(/\)' \| . 2>/dev/null ||
66231 echo X/"$0" |
66232 - sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
66233 - /^X\/\(\/\/\)$/{ s//\1/; q; }
66234 - /^X\/\(\/\).*/{ s//\1/; q; }
66235 - s/.*/./; q'`
66236 -
66237 -
66238 -# PATH needs CR, and LINENO needs CR and PATH.
66239 -# Avoid depending upon Character Ranges.
66240 -as_cr_letters='abcdefghijklmnopqrstuvwxyz'
66241 -as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
66242 -as_cr_Letters=$as_cr_letters$as_cr_LETTERS
66243 -as_cr_digits='0123456789'
66244 -as_cr_alnum=$as_cr_Letters$as_cr_digits
66245 + sed '/^.*\/\([^/][^/]*\)\/*$/{
66246 + s//\1/
66247 + q
66248 + }
66249 + /^X\/\(\/\/\)$/{
66250 + s//\1/
66251 + q
66252 + }
66253 + /^X\/\(\/\).*/{
66254 + s//\1/
66255 + q
66256 + }
66257 + s/.*/./; q'`
66258
66259 -# The user is always right.
66260 -if test "${PATH_SEPARATOR+set}" != set; then
66261 - echo "#! /bin/sh" >conf$$.sh
66262 - echo "exit 0" >>conf$$.sh
66263 - chmod +x conf$$.sh
66264 - if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
66265 - PATH_SEPARATOR=';'
66266 - else
66267 - PATH_SEPARATOR=:
66268 - fi
66269 - rm -f conf$$.sh
66270 -fi
66271 +# CDPATH.
66272 +$as_unset CDPATH
66273
66274
66275 - as_lineno_1=$LINENO
66276 - as_lineno_2=$LINENO
66277 - as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
66278 - test "x$as_lineno_1" != "x$as_lineno_2" &&
66279 - test "x$as_lineno_3" = "x$as_lineno_2" || {
66280 - # Find who we are. Look in the path if we contain no path at all
66281 - # relative or not.
66282 - case $0 in
66283 - *[\\/]* ) as_myself=$0 ;;
66284 - *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
66285 -for as_dir in $PATH
66286 -do
66287 - IFS=$as_save_IFS
66288 - test -z "$as_dir" && as_dir=.
66289 - test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
66290 -done
66291
66292 - ;;
66293 - esac
66294 - # We did not find ourselves, most probably we were run as `sh COMMAND'
66295 - # in which case we are not to be found in the path.
66296 - if test "x$as_myself" = x; then
66297 - as_myself=$0
66298 - fi
66299 - if test ! -f "$as_myself"; then
66300 - { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
66301 -echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
66302 - { (exit 1); exit 1; }; }
66303 - fi
66304 - case $CONFIG_SHELL in
66305 - '')
66306 - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
66307 -for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
66308 -do
66309 - IFS=$as_save_IFS
66310 - test -z "$as_dir" && as_dir=.
66311 - for as_base in sh bash ksh sh5; do
66312 - case $as_dir in
66313 - /*)
66314 - if ("$as_dir/$as_base" -c '
66315 as_lineno_1=$LINENO
66316 as_lineno_2=$LINENO
66317 - as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
66318 test "x$as_lineno_1" != "x$as_lineno_2" &&
66319 - test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
66320 - $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
66321 - $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
66322 - CONFIG_SHELL=$as_dir/$as_base
66323 - export CONFIG_SHELL
66324 - exec "$CONFIG_SHELL" "$0" ${1+"$@"}
66325 - fi;;
66326 - esac
66327 - done
66328 -done
66329 -;;
66330 - esac
66331 + test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
66332
66333 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
66334 # uniformly replaced by the line number. The first 'sed' inserts a
66335 - # line-number line before each line; the second 'sed' does the real
66336 - # work. The second script uses 'N' to pair each line-number line
66337 - # with the numbered line, and appends trailing '-' during
66338 - # substitution so that $LINENO is not a special case at line end.
66339 + # line-number line after each line using $LINENO; the second 'sed'
66340 + # does the real work. The second script uses 'N' to pair each
66341 + # line-number line with the line containing $LINENO, and appends
66342 + # trailing '-' during substitution so that $LINENO is not a special
66343 + # case at line end.
66344 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
66345 - # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
66346 - sed '=' <$as_myself |
66347 + # scripts with optimization help from Paolo Bonzini. Blame Lee
66348 + # E. McMahon (1931-1989) for sed's syntax. :-)
66349 + sed -n '
66350 + p
66351 + /[$]LINENO/=
66352 + ' <$as_myself |
66353 sed '
66354 + s/[$]LINENO.*/&-/
66355 + t lineno
66356 + b
66357 + :lineno
66358 N
66359 - s,$,-,
66360 - : loop
66361 - s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
66362 + :loop
66363 + s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
66364 t loop
66365 - s,-$,,
66366 - s,^['$as_cr_digits']*\n,,
66367 + s/-\n.*//
66368 ' >$as_me.lineno &&
66369 - chmod +x $as_me.lineno ||
66370 - { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
66371 -echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
66372 + chmod +x "$as_me.lineno" ||
66373 + { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
66374 { (exit 1); exit 1; }; }
66375
66376 # Don't try to exec as it changes $[0], causing all sort of problems
66377 # (the dirname of $[0] is not the place where we might find the
66378 - # original and so on. Autoconf is especially sensible to this).
66379 - . ./$as_me.lineno
66380 + # original and so on. Autoconf is especially sensitive to this).
66381 + . "./$as_me.lineno"
66382 # Exit status is that of the last command.
66383 exit
66384 }
66385
66386
66387 -case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
66388 - *c*,-n*) ECHO_N= ECHO_C='
66389 -' ECHO_T=' ' ;;
66390 - *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
66391 - *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
66392 +if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
66393 + as_dirname=dirname
66394 +else
66395 + as_dirname=false
66396 +fi
66397 +
66398 +ECHO_C= ECHO_N= ECHO_T=
66399 +case `echo -n x` in
66400 +-n*)
66401 + case `echo 'x\c'` in
66402 + *c*) ECHO_T=' ';; # ECHO_T is single tab character.
66403 + *) ECHO_C='\c';;
66404 + esac;;
66405 +*)
66406 + ECHO_N='-n';;
66407 esac
66408
66409 -if expr a : '\(a\)' >/dev/null 2>&1; then
66410 +if expr a : '\(a\)' >/dev/null 2>&1 &&
66411 + test "X`expr 00001 : '.*\(...\)'`" = X001; then
66412 as_expr=expr
66413 else
66414 as_expr=false
66415 fi
66416
66417 rm -f conf$$ conf$$.exe conf$$.file
66418 +if test -d conf$$.dir; then
66419 + rm -f conf$$.dir/conf$$.file
66420 +else
66421 + rm -f conf$$.dir
66422 + mkdir conf$$.dir
66423 +fi
66424 echo >conf$$.file
66425 if ln -s conf$$.file conf$$ 2>/dev/null; then
66426 - # We could just check for DJGPP; but this test a) works b) is more generic
66427 - # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
66428 - if test -f conf$$.exe; then
66429 - # Don't use ln at all; we don't have any links
66430 + as_ln_s='ln -s'
66431 + # ... but there are two gotchas:
66432 + # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
66433 + # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
66434 + # In both cases, we have to default to `cp -p'.
66435 + ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
66436 as_ln_s='cp -p'
66437 - else
66438 - as_ln_s='ln -s'
66439 - fi
66440 elif ln conf$$.file conf$$ 2>/dev/null; then
66441 as_ln_s=ln
66442 else
66443 as_ln_s='cp -p'
66444 fi
66445 -rm -f conf$$ conf$$.exe conf$$.file
66446 +rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
66447 +rmdir conf$$.dir 2>/dev/null
66448
66449 if mkdir -p . 2>/dev/null; then
66450 as_mkdir_p=:
66451 @@ -10154,7 +10553,28 @@ else
66452 as_mkdir_p=false
66453 fi
66454
66455 -as_executable_p="test -f"
66456 +if test -x / >/dev/null 2>&1; then
66457 + as_test_x='test -x'
66458 +else
66459 + if ls -dL / >/dev/null 2>&1; then
66460 + as_ls_L_option=L
66461 + else
66462 + as_ls_L_option=
66463 + fi
66464 + as_test_x='
66465 + eval sh -c '\''
66466 + if test -d "$1"; then
66467 + test -d "$1/.";
66468 + else
66469 + case $1 in
66470 + -*)set "./$1";;
66471 + esac;
66472 + case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
66473 + ???[sx]*):;;*)false;;esac;fi
66474 + '\'' sh
66475 + '
66476 +fi
66477 +as_executable_p=$as_test_x
66478
66479 # Sed expression to map a string onto a valid CPP name.
66480 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
66481 @@ -10163,31 +10583,14 @@ as_tr_cpp="eval sed 'y%*$as_cr_letters%P
66482 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
66483
66484
66485 -# IFS
66486 -# We need space, tab and new line, in precisely that order.
66487 -as_nl='
66488 -'
66489 -IFS=" $as_nl"
66490 -
66491 -# CDPATH.
66492 -$as_unset CDPATH
66493 -
66494 exec 6>&1
66495
66496 -# Open the log real soon, to keep \$[0] and so on meaningful, and to
66497 +# Save the log message, to keep $[0] and so on meaningful, and to
66498 # report actual input values of CONFIG_FILES etc. instead of their
66499 -# values after options handling. Logging --version etc. is OK.
66500 -exec 5>>config.log
66501 -{
66502 - echo
66503 - sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
66504 -## Running $as_me. ##
66505 -_ASBOX
66506 -} >&5
66507 -cat >&5 <<_CSEOF
66508 -
66509 +# values after options handling.
66510 +ac_log="
66511 This file was extended by $as_me, which was
66512 -generated by GNU Autoconf 2.59. Invocation command line was
66513 +generated by GNU Autoconf 2.61. Invocation command line was
66514
66515 CONFIG_FILES = $CONFIG_FILES
66516 CONFIG_HEADERS = $CONFIG_HEADERS
66517 @@ -10195,30 +10598,20 @@ generated by GNU Autoconf 2.59. Invocat
66518 CONFIG_COMMANDS = $CONFIG_COMMANDS
66519 $ $0 $@
66520
66521 -_CSEOF
66522 -echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
66523 -echo >&5
66524 +on `(hostname || uname -n) 2>/dev/null | sed 1q`
66525 +"
66526 +
66527 _ACEOF
66528
66529 +cat >>$CONFIG_STATUS <<_ACEOF
66530 # Files that config.status was made for.
66531 -if test -n "$ac_config_files"; then
66532 - echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
66533 -fi
66534 -
66535 -if test -n "$ac_config_headers"; then
66536 - echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
66537 -fi
66538 -
66539 -if test -n "$ac_config_links"; then
66540 - echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
66541 -fi
66542 +config_files="$ac_config_files"
66543 +config_headers="$ac_config_headers"
66544 +config_commands="$ac_config_commands"
66545
66546 -if test -n "$ac_config_commands"; then
66547 - echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
66548 -fi
66549 +_ACEOF
66550
66551 cat >>$CONFIG_STATUS <<\_ACEOF
66552 -
66553 ac_cs_usage="\
66554 \`$as_me' instantiates files from templates according to the
66555 current configuration.
66556 @@ -10226,7 +10619,7 @@ current configuration.
66557 Usage: $0 [OPTIONS] [FILE]...
66558
66559 -h, --help print this help, then exit
66560 - -V, --version print version number, then exit
66561 + -V, --version print version number and configuration settings, then exit
66562 -q, --quiet do not print progress messages
66563 -d, --debug don't remove temporary files
66564 --recheck update $as_me by reconfiguring in the same conditions
66565 @@ -10245,19 +10638,21 @@ Configuration commands:
66566 $config_commands
66567
66568 Report bugs to <bug-autoconf@gnu.org>."
66569 -_ACEOF
66570
66571 +_ACEOF
66572 cat >>$CONFIG_STATUS <<_ACEOF
66573 ac_cs_version="\\
66574 config.status
66575 -configured by $0, generated by GNU Autoconf 2.59,
66576 - with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
66577 +configured by $0, generated by GNU Autoconf 2.61,
66578 + with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
66579
66580 -Copyright (C) 2003 Free Software Foundation, Inc.
66581 +Copyright (C) 2006 Free Software Foundation, Inc.
66582 This config.status script is free software; the Free Software Foundation
66583 gives unlimited permission to copy, distribute and modify it."
66584 -srcdir=$srcdir
66585 -INSTALL="$INSTALL"
66586 +
66587 +ac_pwd='$ac_pwd'
66588 +srcdir='$srcdir'
66589 +INSTALL='$INSTALL'
66590 _ACEOF
66591
66592 cat >>$CONFIG_STATUS <<\_ACEOF
66593 @@ -10268,39 +10663,24 @@ while test $# != 0
66594 do
66595 case $1 in
66596 --*=*)
66597 - ac_option=`expr "x$1" : 'x\([^=]*\)='`
66598 - ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
66599 + ac_option=`expr "X$1" : 'X\([^=]*\)='`
66600 + ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
66601 ac_shift=:
66602 ;;
66603 - -*)
66604 + *)
66605 ac_option=$1
66606 ac_optarg=$2
66607 ac_shift=shift
66608 ;;
66609 - *) # This is not an option, so the user has probably given explicit
66610 - # arguments.
66611 - ac_option=$1
66612 - ac_need_defaults=false;;
66613 esac
66614
66615 case $ac_option in
66616 # Handling of the options.
66617 -_ACEOF
66618 -cat >>$CONFIG_STATUS <<\_ACEOF
66619 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
66620 ac_cs_recheck=: ;;
66621 - --version | --vers* | -V )
66622 - echo "$ac_cs_version"; exit 0 ;;
66623 - --he | --h)
66624 - # Conflict between --help and --header
66625 - { { echo "$as_me:$LINENO: error: ambiguous option: $1
66626 -Try \`$0 --help' for more information." >&5
66627 -echo "$as_me: error: ambiguous option: $1
66628 -Try \`$0 --help' for more information." >&2;}
66629 - { (exit 1); exit 1; }; };;
66630 - --help | --hel | -h )
66631 - echo "$ac_cs_usage"; exit 0 ;;
66632 - --debug | --d* | -d )
66633 + --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
66634 + echo "$ac_cs_version"; exit ;;
66635 + --debug | --debu | --deb | --de | --d | -d )
66636 debug=: ;;
66637 --file | --fil | --fi | --f )
66638 $ac_shift
66639 @@ -10310,18 +10690,24 @@ Try \`$0 --help' for more information."
66640 $ac_shift
66641 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
66642 ac_need_defaults=false;;
66643 + --he | --h)
66644 + # Conflict between --help and --header
66645 + { echo "$as_me: error: ambiguous option: $1
66646 +Try \`$0 --help' for more information." >&2
66647 + { (exit 1); exit 1; }; };;
66648 + --help | --hel | -h )
66649 + echo "$ac_cs_usage"; exit ;;
66650 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
66651 | -silent | --silent | --silen | --sile | --sil | --si | --s)
66652 ac_cs_silent=: ;;
66653
66654 # This is an error.
66655 - -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
66656 -Try \`$0 --help' for more information." >&5
66657 -echo "$as_me: error: unrecognized option: $1
66658 -Try \`$0 --help' for more information." >&2;}
66659 + -*) { echo "$as_me: error: unrecognized option: $1
66660 +Try \`$0 --help' for more information." >&2
66661 { (exit 1); exit 1; }; } ;;
66662
66663 - *) ac_config_targets="$ac_config_targets $1" ;;
66664 + *) ac_config_targets="$ac_config_targets $1"
66665 + ac_need_defaults=false ;;
66666
66667 esac
66668 shift
66669 @@ -10337,39 +10723,51 @@ fi
66670 _ACEOF
66671 cat >>$CONFIG_STATUS <<_ACEOF
66672 if \$ac_cs_recheck; then
66673 - echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
66674 - exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
66675 + echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
66676 + CONFIG_SHELL=$SHELL
66677 + export CONFIG_SHELL
66678 + exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
66679 fi
66680
66681 _ACEOF
66682 +cat >>$CONFIG_STATUS <<\_ACEOF
66683 +exec 5>>config.log
66684 +{
66685 + echo
66686 + sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
66687 +## Running $as_me. ##
66688 +_ASBOX
66689 + echo "$ac_log"
66690 +} >&5
66691
66692 +_ACEOF
66693 cat >>$CONFIG_STATUS <<_ACEOF
66694 #
66695 -# INIT-COMMANDS section.
66696 +# INIT-COMMANDS
66697 #
66698 -
66699 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
66700
66701 _ACEOF
66702
66703 -
66704 -
66705 cat >>$CONFIG_STATUS <<\_ACEOF
66706 +
66707 +# Handling of arguments.
66708 for ac_config_target in $ac_config_targets
66709 do
66710 - case "$ac_config_target" in
66711 - # Handling of arguments.
66712 - "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
66713 - "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
66714 - "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
66715 - "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
66716 - "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
66717 + case $ac_config_target in
66718 + "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
66719 + "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
66720 + "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
66721 + "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
66722 + "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
66723 +
66724 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
66725 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
66726 { (exit 1); exit 1; }; };;
66727 esac
66728 done
66729
66730 +
66731 # If the user did not use the arguments to specify the items to instantiate,
66732 # then the envvar interface is used. Set only those that are not.
66733 # We use the long form for the default assignment because of an extremely
66734 @@ -10381,640 +10779,634 @@ if $ac_need_defaults; then
66735 fi
66736
66737 # Have a temporary directory for convenience. Make it in the build tree
66738 -# simply because there is no reason to put it here, and in addition,
66739 +# simply because there is no reason against having it here, and in addition,
66740 # creating and moving files from /tmp can sometimes cause problems.
66741 -# Create a temporary directory, and hook for its removal unless debugging.
66742 +# Hook for its removal unless debugging.
66743 +# Note that there is a small window in which the directory will not be cleaned:
66744 +# after its creation but before its name has been assigned to `$tmp'.
66745 $debug ||
66746 {
66747 - trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
66748 + tmp=
66749 + trap 'exit_status=$?
66750 + { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
66751 +' 0
66752 trap '{ (exit 1); exit 1; }' 1 2 13 15
66753 }
66754 -
66755 # Create a (secure) tmp directory for tmp files.
66756
66757 {
66758 - tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
66759 + tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
66760 test -n "$tmp" && test -d "$tmp"
66761 } ||
66762 {
66763 - tmp=./confstat$$-$RANDOM
66764 - (umask 077 && mkdir $tmp)
66765 + tmp=./conf$$-$RANDOM
66766 + (umask 077 && mkdir "$tmp")
66767 } ||
66768 {
66769 echo "$me: cannot create a temporary directory in ." >&2
66770 { (exit 1); exit 1; }
66771 }
66772
66773 -_ACEOF
66774 -
66775 -cat >>$CONFIG_STATUS <<_ACEOF
66776 -
66777 #
66778 -# CONFIG_FILES section.
66779 +# Set up the sed scripts for CONFIG_FILES section.
66780 #
66781
66782 # No need to generate the scripts if there are no CONFIG_FILES.
66783 # This happens for instance when ./config.status config.h
66784 -if test -n "\$CONFIG_FILES"; then
66785 - # Protect against being on the right side of a sed subst in config.status.
66786 - sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
66787 - s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
66788 -s,@SHELL@,$SHELL,;t t
66789 -s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
66790 -s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
66791 -s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
66792 -s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
66793 -s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
66794 -s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
66795 -s,@exec_prefix@,$exec_prefix,;t t
66796 -s,@prefix@,$prefix,;t t
66797 -s,@program_transform_name@,$program_transform_name,;t t
66798 -s,@bindir@,$bindir,;t t
66799 -s,@sbindir@,$sbindir,;t t
66800 -s,@libexecdir@,$libexecdir,;t t
66801 -s,@datadir@,$datadir,;t t
66802 -s,@sysconfdir@,$sysconfdir,;t t
66803 -s,@sharedstatedir@,$sharedstatedir,;t t
66804 -s,@localstatedir@,$localstatedir,;t t
66805 -s,@libdir@,$libdir,;t t
66806 -s,@includedir@,$includedir,;t t
66807 -s,@oldincludedir@,$oldincludedir,;t t
66808 -s,@infodir@,$infodir,;t t
66809 -s,@mandir@,$mandir,;t t
66810 -s,@build_alias@,$build_alias,;t t
66811 -s,@host_alias@,$host_alias,;t t
66812 -s,@target_alias@,$target_alias,;t t
66813 -s,@DEFS@,$DEFS,;t t
66814 -s,@ECHO_C@,$ECHO_C,;t t
66815 -s,@ECHO_N@,$ECHO_N,;t t
66816 -s,@ECHO_T@,$ECHO_T,;t t
66817 -s,@LIBS@,$LIBS,;t t
66818 -s,@build@,$build,;t t
66819 -s,@build_cpu@,$build_cpu,;t t
66820 -s,@build_vendor@,$build_vendor,;t t
66821 -s,@build_os@,$build_os,;t t
66822 -s,@host@,$host,;t t
66823 -s,@host_cpu@,$host_cpu,;t t
66824 -s,@host_vendor@,$host_vendor,;t t
66825 -s,@host_os@,$host_os,;t t
66826 -s,@target@,$target,;t t
66827 -s,@target_cpu@,$target_cpu,;t t
66828 -s,@target_vendor@,$target_vendor,;t t
66829 -s,@target_os@,$target_os,;t t
66830 -s,@CC@,$CC,;t t
66831 -s,@CFLAGS@,$CFLAGS,;t t
66832 -s,@LDFLAGS@,$LDFLAGS,;t t
66833 -s,@CPPFLAGS@,$CPPFLAGS,;t t
66834 -s,@ac_ct_CC@,$ac_ct_CC,;t t
66835 -s,@EXEEXT@,$EXEEXT,;t t
66836 -s,@OBJEXT@,$OBJEXT,;t t
66837 -s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
66838 -s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
66839 -s,@INSTALL_DATA@,$INSTALL_DATA,;t t
66840 -s,@CYGPATH_W@,$CYGPATH_W,;t t
66841 -s,@PACKAGE@,$PACKAGE,;t t
66842 -s,@VERSION@,$VERSION,;t t
66843 -s,@ACLOCAL@,$ACLOCAL,;t t
66844 -s,@AUTOCONF@,$AUTOCONF,;t t
66845 -s,@AUTOMAKE@,$AUTOMAKE,;t t
66846 -s,@AUTOHEADER@,$AUTOHEADER,;t t
66847 -s,@MAKEINFO@,$MAKEINFO,;t t
66848 -s,@install_sh@,$install_sh,;t t
66849 -s,@STRIP@,$STRIP,;t t
66850 -s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
66851 -s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
66852 -s,@mkdir_p@,$mkdir_p,;t t
66853 -s,@AWK@,$AWK,;t t
66854 -s,@SET_MAKE@,$SET_MAKE,;t t
66855 -s,@am__leading_dot@,$am__leading_dot,;t t
66856 -s,@AMTAR@,$AMTAR,;t t
66857 -s,@am__tar@,$am__tar,;t t
66858 -s,@am__untar@,$am__untar,;t t
66859 -s,@DEPDIR@,$DEPDIR,;t t
66860 -s,@am__include@,$am__include,;t t
66861 -s,@am__quote@,$am__quote,;t t
66862 -s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
66863 -s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
66864 -s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
66865 -s,@CCDEPMODE@,$CCDEPMODE,;t t
66866 -s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
66867 -s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
66868 -s,@LN_S@,$LN_S,;t t
66869 -s,@RANLIB@,$RANLIB,;t t
66870 -s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
66871 -s,@LIBTOOL@,$LIBTOOL,;t t
66872 -s,@use_sysroot@,$use_sysroot,;t t
66873 -s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
66874 -s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
66875 -s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
66876 -s,@NO_WERROR@,$NO_WERROR,;t t
66877 -s,@CPP@,$CPP,;t t
66878 -s,@EGREP@,$EGREP,;t t
66879 -s,@ALLOCA@,$ALLOCA,;t t
66880 -s,@USE_NLS@,$USE_NLS,;t t
66881 -s,@MSGFMT@,$MSGFMT,;t t
66882 -s,@GMSGFMT@,$GMSGFMT,;t t
66883 -s,@XGETTEXT@,$XGETTEXT,;t t
66884 -s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
66885 -s,@CATALOGS@,$CATALOGS,;t t
66886 -s,@CATOBJEXT@,$CATOBJEXT,;t t
66887 -s,@DATADIRNAME@,$DATADIRNAME,;t t
66888 -s,@GMOFILES@,$GMOFILES,;t t
66889 -s,@INSTOBJEXT@,$INSTOBJEXT,;t t
66890 -s,@INTLDEPS@,$INTLDEPS,;t t
66891 -s,@INTLLIBS@,$INTLLIBS,;t t
66892 -s,@INTLOBJS@,$INTLOBJS,;t t
66893 -s,@POFILES@,$POFILES,;t t
66894 -s,@POSUB@,$POSUB,;t t
66895 -s,@INCLUDE_LOCALE_H@,$INCLUDE_LOCALE_H,;t t
66896 -s,@GT_NO@,$GT_NO,;t t
66897 -s,@GT_YES@,$GT_YES,;t t
66898 -s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
66899 -s,@l@,$l,;t t
66900 -s,@YACC@,$YACC,;t t
66901 -s,@LEX@,$LEX,;t t
66902 -s,@LEXLIB@,$LEXLIB,;t t
66903 -s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
66904 -s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
66905 -s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
66906 -s,@MAINT@,$MAINT,;t t
66907 -s,@HDEFINES@,$HDEFINES,;t t
66908 -s,@HOSTING_CRT0@,$HOSTING_CRT0,;t t
66909 -s,@HOSTING_LIBS@,$HOSTING_LIBS,;t t
66910 -s,@NATIVE_LIB_DIRS@,$NATIVE_LIB_DIRS,;t t
66911 -s,@STRINGIFY@,$STRINGIFY,;t t
66912 -s,@EMUL@,$EMUL,;t t
66913 -s,@EMULATION_OFILES@,$EMULATION_OFILES,;t t
66914 -s,@EMUL_EXTRA_OFILES@,$EMUL_EXTRA_OFILES,;t t
66915 -s,@LIB_PATH@,$LIB_PATH,;t t
66916 -s,@EMULATION_LIBPATH@,$EMULATION_LIBPATH,;t t
66917 -s,@TESTBFDLIB@,$TESTBFDLIB,;t t
66918 -s,@datarootdir@,$datarootdir,;t t
66919 -s,@docdir@,$docdir,;t t
66920 -s,@htmldir@,$htmldir,;t t
66921 -s,@LIBOBJS@,$LIBOBJS,;t t
66922 -s,@LTLIBOBJS@,$LTLIBOBJS,;t t
66923 -/@TDIRS@/r $TDIRS
66924 -s,@TDIRS@,,;t t
66925 -CEOF
66926 -
66927 -_ACEOF
66928 -
66929 - cat >>$CONFIG_STATUS <<\_ACEOF
66930 - # Split the substitutions into bite-sized pieces for seds with
66931 - # small command number limits, like on Digital OSF/1 and HP-UX.
66932 - ac_max_sed_lines=48
66933 - ac_sed_frag=1 # Number of current file.
66934 - ac_beg=1 # First line for current file.
66935 - ac_end=$ac_max_sed_lines # Line after last line for current file.
66936 - ac_more_lines=:
66937 - ac_sed_cmds=
66938 - while $ac_more_lines; do
66939 - if test $ac_beg -gt 1; then
66940 - sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
66941 - else
66942 - sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
66943 - fi
66944 - if test ! -s $tmp/subs.frag; then
66945 - ac_more_lines=false
66946 - else
66947 - # The purpose of the label and of the branching condition is to
66948 - # speed up the sed processing (if there are no `@' at all, there
66949 - # is no need to browse any of the substitutions).
66950 - # These are the two extra sed commands mentioned above.
66951 - (echo ':t
66952 - /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
66953 - if test -z "$ac_sed_cmds"; then
66954 - ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
66955 - else
66956 - ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
66957 - fi
66958 - ac_sed_frag=`expr $ac_sed_frag + 1`
66959 - ac_beg=$ac_end
66960 - ac_end=`expr $ac_end + $ac_max_sed_lines`
66961 - fi
66962 - done
66963 - if test -z "$ac_sed_cmds"; then
66964 - ac_sed_cmds=cat
66965 +if test -n "$CONFIG_FILES"; then
66966 +
66967 +_ACEOF
66968 +
66969 +# Create sed commands to just substitute file output variables.
66970 +
66971 +# Remaining file output variables are in a fragment that also has non-file
66972 +# output varibles.
66973 +
66974 +
66975 +
66976 +ac_delim='%!_!# '
66977 +for ac_last_try in false false false false false :; do
66978 + cat >conf$$subs.sed <<_ACEOF
66979 +SHELL!$SHELL$ac_delim
66980 +PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
66981 +PACKAGE_NAME!$PACKAGE_NAME$ac_delim
66982 +PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
66983 +PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
66984 +PACKAGE_STRING!$PACKAGE_STRING$ac_delim
66985 +PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
66986 +exec_prefix!$exec_prefix$ac_delim
66987 +prefix!$prefix$ac_delim
66988 +program_transform_name!$program_transform_name$ac_delim
66989 +bindir!$bindir$ac_delim
66990 +sbindir!$sbindir$ac_delim
66991 +libexecdir!$libexecdir$ac_delim
66992 +datarootdir!$datarootdir$ac_delim
66993 +datadir!$datadir$ac_delim
66994 +sysconfdir!$sysconfdir$ac_delim
66995 +sharedstatedir!$sharedstatedir$ac_delim
66996 +localstatedir!$localstatedir$ac_delim
66997 +includedir!$includedir$ac_delim
66998 +oldincludedir!$oldincludedir$ac_delim
66999 +docdir!$docdir$ac_delim
67000 +infodir!$infodir$ac_delim
67001 +htmldir!$htmldir$ac_delim
67002 +dvidir!$dvidir$ac_delim
67003 +pdfdir!$pdfdir$ac_delim
67004 +psdir!$psdir$ac_delim
67005 +libdir!$libdir$ac_delim
67006 +localedir!$localedir$ac_delim
67007 +mandir!$mandir$ac_delim
67008 +DEFS!$DEFS$ac_delim
67009 +ECHO_C!$ECHO_C$ac_delim
67010 +ECHO_N!$ECHO_N$ac_delim
67011 +ECHO_T!$ECHO_T$ac_delim
67012 +LIBS!$LIBS$ac_delim
67013 +build_alias!$build_alias$ac_delim
67014 +host_alias!$host_alias$ac_delim
67015 +target_alias!$target_alias$ac_delim
67016 +build!$build$ac_delim
67017 +build_cpu!$build_cpu$ac_delim
67018 +build_vendor!$build_vendor$ac_delim
67019 +build_os!$build_os$ac_delim
67020 +host!$host$ac_delim
67021 +host_cpu!$host_cpu$ac_delim
67022 +host_vendor!$host_vendor$ac_delim
67023 +host_os!$host_os$ac_delim
67024 +target!$target$ac_delim
67025 +target_cpu!$target_cpu$ac_delim
67026 +target_vendor!$target_vendor$ac_delim
67027 +target_os!$target_os$ac_delim
67028 +CC!$CC$ac_delim
67029 +CFLAGS!$CFLAGS$ac_delim
67030 +LDFLAGS!$LDFLAGS$ac_delim
67031 +CPPFLAGS!$CPPFLAGS$ac_delim
67032 +ac_ct_CC!$ac_ct_CC$ac_delim
67033 +EXEEXT!$EXEEXT$ac_delim
67034 +OBJEXT!$OBJEXT$ac_delim
67035 +INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
67036 +INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
67037 +INSTALL_DATA!$INSTALL_DATA$ac_delim
67038 +CYGPATH_W!$CYGPATH_W$ac_delim
67039 +PACKAGE!$PACKAGE$ac_delim
67040 +VERSION!$VERSION$ac_delim
67041 +ACLOCAL!$ACLOCAL$ac_delim
67042 +AUTOCONF!$AUTOCONF$ac_delim
67043 +AUTOMAKE!$AUTOMAKE$ac_delim
67044 +AUTOHEADER!$AUTOHEADER$ac_delim
67045 +MAKEINFO!$MAKEINFO$ac_delim
67046 +install_sh!$install_sh$ac_delim
67047 +STRIP!$STRIP$ac_delim
67048 +INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
67049 +mkdir_p!$mkdir_p$ac_delim
67050 +AWK!$AWK$ac_delim
67051 +SET_MAKE!$SET_MAKE$ac_delim
67052 +am__leading_dot!$am__leading_dot$ac_delim
67053 +AMTAR!$AMTAR$ac_delim
67054 +am__tar!$am__tar$ac_delim
67055 +am__untar!$am__untar$ac_delim
67056 +DEPDIR!$DEPDIR$ac_delim
67057 +am__include!$am__include$ac_delim
67058 +am__quote!$am__quote$ac_delim
67059 +AMDEP_TRUE!$AMDEP_TRUE$ac_delim
67060 +AMDEP_FALSE!$AMDEP_FALSE$ac_delim
67061 +AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
67062 +CCDEPMODE!$CCDEPMODE$ac_delim
67063 +am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
67064 +am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
67065 +LN_S!$LN_S$ac_delim
67066 +RANLIB!$RANLIB$ac_delim
67067 +LIBTOOL!$LIBTOOL$ac_delim
67068 +use_sysroot!$use_sysroot$ac_delim
67069 +TARGET_SYSTEM_ROOT!$TARGET_SYSTEM_ROOT$ac_delim
67070 +TARGET_SYSTEM_ROOT_DEFINE!$TARGET_SYSTEM_ROOT_DEFINE$ac_delim
67071 +WARN_CFLAGS!$WARN_CFLAGS$ac_delim
67072 +NO_WERROR!$NO_WERROR$ac_delim
67073 +_ACEOF
67074 +
67075 + if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 94; then
67076 + break
67077 + elif $ac_last_try; then
67078 + { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
67079 +echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
67080 + { (exit 1); exit 1; }; }
67081 + else
67082 + ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
67083 fi
67084 -fi # test -n "$CONFIG_FILES"
67085 +done
67086 +
67087 +ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
67088 +if test -n "$ac_eof"; then
67089 + ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
67090 + ac_eof=`expr $ac_eof + 1`
67091 +fi
67092 +
67093 +cat >>$CONFIG_STATUS <<_ACEOF
67094 +cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
67095 +/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
67096 +/^[ ]*@TDIRS@[ ]*$/{
67097 +r $TDIRS
67098 +d
67099 +}
67100 +_ACEOF
67101 +sed '
67102 +s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
67103 +s/^/s,@/; s/!/@,|#_!!_#|/
67104 +:n
67105 +t n
67106 +s/'"$ac_delim"'$/,g/; t
67107 +s/$/\\/; p
67108 +N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
67109 +' >>$CONFIG_STATUS <conf$$subs.sed
67110 +rm -f conf$$subs.sed
67111 +cat >>$CONFIG_STATUS <<_ACEOF
67112 +CEOF$ac_eof
67113 +_ACEOF
67114 +
67115 +
67116 +ac_delim='%!_!# '
67117 +for ac_last_try in false false false false false :; do
67118 + cat >conf$$subs.sed <<_ACEOF
67119 +CPP!$CPP$ac_delim
67120 +GREP!$GREP$ac_delim
67121 +EGREP!$EGREP$ac_delim
67122 +ALLOCA!$ALLOCA$ac_delim
67123 +USE_NLS!$USE_NLS$ac_delim
67124 +MSGFMT!$MSGFMT$ac_delim
67125 +GMSGFMT!$GMSGFMT$ac_delim
67126 +XGETTEXT!$XGETTEXT$ac_delim
67127 +USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim
67128 +CATALOGS!$CATALOGS$ac_delim
67129 +CATOBJEXT!$CATOBJEXT$ac_delim
67130 +DATADIRNAME!$DATADIRNAME$ac_delim
67131 +GMOFILES!$GMOFILES$ac_delim
67132 +INSTOBJEXT!$INSTOBJEXT$ac_delim
67133 +INTLDEPS!$INTLDEPS$ac_delim
67134 +INTLLIBS!$INTLLIBS$ac_delim
67135 +INTLOBJS!$INTLOBJS$ac_delim
67136 +POFILES!$POFILES$ac_delim
67137 +POSUB!$POSUB$ac_delim
67138 +INCLUDE_LOCALE_H!$INCLUDE_LOCALE_H$ac_delim
67139 +GT_NO!$GT_NO$ac_delim
67140 +GT_YES!$GT_YES$ac_delim
67141 +MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
67142 +l!$l$ac_delim
67143 +YACC!$YACC$ac_delim
67144 +YFLAGS!$YFLAGS$ac_delim
67145 +LEX!$LEX$ac_delim
67146 +LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
67147 +LEXLIB!$LEXLIB$ac_delim
67148 +MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
67149 +MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
67150 +MAINT!$MAINT$ac_delim
67151 +HDEFINES!$HDEFINES$ac_delim
67152 +HOSTING_CRT0!$HOSTING_CRT0$ac_delim
67153 +HOSTING_LIBS!$HOSTING_LIBS$ac_delim
67154 +NATIVE_LIB_DIRS!$NATIVE_LIB_DIRS$ac_delim
67155 +STRINGIFY!$STRINGIFY$ac_delim
67156 +EMUL!$EMUL$ac_delim
67157 +EMULATION_OFILES!$EMULATION_OFILES$ac_delim
67158 +EMUL_EXTRA_OFILES!$EMUL_EXTRA_OFILES$ac_delim
67159 +LIB_PATH!$LIB_PATH$ac_delim
67160 +EMULATION_LIBPATH!$EMULATION_LIBPATH$ac_delim
67161 +TESTBFDLIB!$TESTBFDLIB$ac_delim
67162 +LIBOBJS!$LIBOBJS$ac_delim
67163 +LTLIBOBJS!$LTLIBOBJS$ac_delim
67164 +_ACEOF
67165 +
67166 + if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 45; then
67167 + break
67168 + elif $ac_last_try; then
67169 + { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
67170 +echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
67171 + { (exit 1); exit 1; }; }
67172 + else
67173 + ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
67174 + fi
67175 +done
67176 +
67177 +ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
67178 +if test -n "$ac_eof"; then
67179 + ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
67180 + ac_eof=`expr $ac_eof + 1`
67181 +fi
67182
67183 +cat >>$CONFIG_STATUS <<_ACEOF
67184 +cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
67185 +/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
67186 +_ACEOF
67187 +sed '
67188 +s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
67189 +s/^/s,@/; s/!/@,|#_!!_#|/
67190 +:n
67191 +t n
67192 +s/'"$ac_delim"'$/,g/; t
67193 +s/$/\\/; p
67194 +N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
67195 +' >>$CONFIG_STATUS <conf$$subs.sed
67196 +rm -f conf$$subs.sed
67197 +cat >>$CONFIG_STATUS <<_ACEOF
67198 +:end
67199 +s/|#_!!_#|//g
67200 +CEOF$ac_eof
67201 _ACEOF
67202 +
67203 +
67204 +# VPATH may cause trouble with some makes, so we remove $(srcdir),
67205 +# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
67206 +# trailing colons and then remove the whole line if VPATH becomes empty
67207 +# (actually we leave an empty line to preserve line numbers).
67208 +if test "x$srcdir" = x.; then
67209 + ac_vpsub='/^[ ]*VPATH[ ]*=/{
67210 +s/:*\$(srcdir):*/:/
67211 +s/:*\${srcdir}:*/:/
67212 +s/:*@srcdir@:*/:/
67213 +s/^\([^=]*=[ ]*\):*/\1/
67214 +s/:*$//
67215 +s/^[^=]*=[ ]*$//
67216 +}'
67217 +fi
67218 +
67219 cat >>$CONFIG_STATUS <<\_ACEOF
67220 -for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
67221 - # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
67222 - case $ac_file in
67223 - - | *:- | *:-:* ) # input from stdin
67224 - cat >$tmp/stdin
67225 - ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
67226 - ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
67227 - *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
67228 - ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
67229 - * ) ac_file_in=$ac_file.in ;;
67230 +fi # test -n "$CONFIG_FILES"
67231 +
67232 +
67233 +for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
67234 +do
67235 + case $ac_tag in
67236 + :[FHLC]) ac_mode=$ac_tag; continue;;
67237 + esac
67238 + case $ac_mode$ac_tag in
67239 + :[FHL]*:*);;
67240 + :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
67241 +echo "$as_me: error: Invalid tag $ac_tag." >&2;}
67242 + { (exit 1); exit 1; }; };;
67243 + :[FH]-) ac_tag=-:-;;
67244 + :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
67245 + esac
67246 + ac_save_IFS=$IFS
67247 + IFS=:
67248 + set x $ac_tag
67249 + IFS=$ac_save_IFS
67250 + shift
67251 + ac_file=$1
67252 + shift
67253 +
67254 + case $ac_mode in
67255 + :L) ac_source=$1;;
67256 + :[FH])
67257 + ac_file_inputs=
67258 + for ac_f
67259 + do
67260 + case $ac_f in
67261 + -) ac_f="$tmp/stdin";;
67262 + *) # Look for the file first in the build tree, then in the source tree
67263 + # (if the path is not absolute). The absolute path cannot be DOS-style,
67264 + # because $ac_f cannot contain `:'.
67265 + test -f "$ac_f" ||
67266 + case $ac_f in
67267 + [\\/$]*) false;;
67268 + *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
67269 + esac ||
67270 + { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
67271 +echo "$as_me: error: cannot find input file: $ac_f" >&2;}
67272 + { (exit 1); exit 1; }; };;
67273 + esac
67274 + ac_file_inputs="$ac_file_inputs $ac_f"
67275 + done
67276 +
67277 + # Let's still pretend it is `configure' which instantiates (i.e., don't
67278 + # use $as_me), people would be surprised to read:
67279 + # /* config.h. Generated by config.status. */
67280 + configure_input="Generated from "`IFS=:
67281 + echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
67282 + if test x"$ac_file" != x-; then
67283 + configure_input="$ac_file. $configure_input"
67284 + { echo "$as_me:$LINENO: creating $ac_file" >&5
67285 +echo "$as_me: creating $ac_file" >&6;}
67286 + fi
67287 +
67288 + case $ac_tag in
67289 + *:-:* | *:-) cat >"$tmp/stdin";;
67290 + esac
67291 + ;;
67292 esac
67293
67294 - # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
67295 - ac_dir=`(dirname "$ac_file") 2>/dev/null ||
67296 + ac_dir=`$as_dirname -- "$ac_file" ||
67297 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
67298 X"$ac_file" : 'X\(//\)[^/]' \| \
67299 X"$ac_file" : 'X\(//\)$' \| \
67300 - X"$ac_file" : 'X\(/\)' \| \
67301 - . : '\(.\)' 2>/dev/null ||
67302 + X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
67303 echo X"$ac_file" |
67304 - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
67305 - /^X\(\/\/\)[^/].*/{ s//\1/; q; }
67306 - /^X\(\/\/\)$/{ s//\1/; q; }
67307 - /^X\(\/\).*/{ s//\1/; q; }
67308 - s/.*/./; q'`
67309 - { if $as_mkdir_p; then
67310 - mkdir -p "$ac_dir"
67311 - else
67312 - as_dir="$ac_dir"
67313 + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
67314 + s//\1/
67315 + q
67316 + }
67317 + /^X\(\/\/\)[^/].*/{
67318 + s//\1/
67319 + q
67320 + }
67321 + /^X\(\/\/\)$/{
67322 + s//\1/
67323 + q
67324 + }
67325 + /^X\(\/\).*/{
67326 + s//\1/
67327 + q
67328 + }
67329 + s/.*/./; q'`
67330 + { as_dir="$ac_dir"
67331 + case $as_dir in #(
67332 + -*) as_dir=./$as_dir;;
67333 + esac
67334 + test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
67335 as_dirs=
67336 - while test ! -d "$as_dir"; do
67337 - as_dirs="$as_dir $as_dirs"
67338 - as_dir=`(dirname "$as_dir") 2>/dev/null ||
67339 + while :; do
67340 + case $as_dir in #(
67341 + *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
67342 + *) as_qdir=$as_dir;;
67343 + esac
67344 + as_dirs="'$as_qdir' $as_dirs"
67345 + as_dir=`$as_dirname -- "$as_dir" ||
67346 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
67347 X"$as_dir" : 'X\(//\)[^/]' \| \
67348 X"$as_dir" : 'X\(//\)$' \| \
67349 - X"$as_dir" : 'X\(/\)' \| \
67350 - . : '\(.\)' 2>/dev/null ||
67351 + X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
67352 echo X"$as_dir" |
67353 - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
67354 - /^X\(\/\/\)[^/].*/{ s//\1/; q; }
67355 - /^X\(\/\/\)$/{ s//\1/; q; }
67356 - /^X\(\/\).*/{ s//\1/; q; }
67357 - s/.*/./; q'`
67358 + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
67359 + s//\1/
67360 + q
67361 + }
67362 + /^X\(\/\/\)[^/].*/{
67363 + s//\1/
67364 + q
67365 + }
67366 + /^X\(\/\/\)$/{
67367 + s//\1/
67368 + q
67369 + }
67370 + /^X\(\/\).*/{
67371 + s//\1/
67372 + q
67373 + }
67374 + s/.*/./; q'`
67375 + test -d "$as_dir" && break
67376 done
67377 - test ! -n "$as_dirs" || mkdir $as_dirs
67378 - fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
67379 -echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
67380 + test -z "$as_dirs" || eval "mkdir $as_dirs"
67381 + } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
67382 +echo "$as_me: error: cannot create directory $as_dir" >&2;}
67383 { (exit 1); exit 1; }; }; }
67384 -
67385 ac_builddir=.
67386
67387 -if test "$ac_dir" != .; then
67388 +case "$ac_dir" in
67389 +.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
67390 +*)
67391 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
67392 - # A "../" for each directory in $ac_dir_suffix.
67393 - ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
67394 -else
67395 - ac_dir_suffix= ac_top_builddir=
67396 -fi
67397 + # A ".." for each directory in $ac_dir_suffix.
67398 + ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
67399 + case $ac_top_builddir_sub in
67400 + "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
67401 + *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
67402 + esac ;;
67403 +esac
67404 +ac_abs_top_builddir=$ac_pwd
67405 +ac_abs_builddir=$ac_pwd$ac_dir_suffix
67406 +# for backward compatibility:
67407 +ac_top_builddir=$ac_top_build_prefix
67408
67409 case $srcdir in
67410 - .) # No --srcdir option. We are building in place.
67411 + .) # We are building in place.
67412 ac_srcdir=.
67413 - if test -z "$ac_top_builddir"; then
67414 - ac_top_srcdir=.
67415 - else
67416 - ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
67417 - fi ;;
67418 - [\\/]* | ?:[\\/]* ) # Absolute path.
67419 + ac_top_srcdir=$ac_top_builddir_sub
67420 + ac_abs_top_srcdir=$ac_pwd ;;
67421 + [\\/]* | ?:[\\/]* ) # Absolute name.
67422 ac_srcdir=$srcdir$ac_dir_suffix;
67423 - ac_top_srcdir=$srcdir ;;
67424 - *) # Relative path.
67425 - ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
67426 - ac_top_srcdir=$ac_top_builddir$srcdir ;;
67427 -esac
67428 + ac_top_srcdir=$srcdir
67429 + ac_abs_top_srcdir=$srcdir ;;
67430 + *) # Relative name.
67431 + ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
67432 + ac_top_srcdir=$ac_top_build_prefix$srcdir
67433 + ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
67434 +esac
67435 +ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
67436
67437 -# Do not use `cd foo && pwd` to compute absolute paths, because
67438 -# the directories may not exist.
67439 -case `pwd` in
67440 -.) ac_abs_builddir="$ac_dir";;
67441 -*)
67442 - case "$ac_dir" in
67443 - .) ac_abs_builddir=`pwd`;;
67444 - [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
67445 - *) ac_abs_builddir=`pwd`/"$ac_dir";;
67446 - esac;;
67447 -esac
67448 -case $ac_abs_builddir in
67449 -.) ac_abs_top_builddir=${ac_top_builddir}.;;
67450 -*)
67451 - case ${ac_top_builddir}. in
67452 - .) ac_abs_top_builddir=$ac_abs_builddir;;
67453 - [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
67454 - *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
67455 - esac;;
67456 -esac
67457 -case $ac_abs_builddir in
67458 -.) ac_abs_srcdir=$ac_srcdir;;
67459 -*)
67460 - case $ac_srcdir in
67461 - .) ac_abs_srcdir=$ac_abs_builddir;;
67462 - [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
67463 - *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
67464 - esac;;
67465 -esac
67466 -case $ac_abs_builddir in
67467 -.) ac_abs_top_srcdir=$ac_top_srcdir;;
67468 -*)
67469 - case $ac_top_srcdir in
67470 - .) ac_abs_top_srcdir=$ac_abs_builddir;;
67471 - [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
67472 - *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
67473 - esac;;
67474 -esac
67475
67476 + case $ac_mode in
67477 + :F)
67478 + #
67479 + # CONFIG_FILE
67480 + #
67481
67482 case $INSTALL in
67483 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
67484 - *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
67485 + *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
67486 esac
67487 +_ACEOF
67488
67489 - if test x"$ac_file" != x-; then
67490 - { echo "$as_me:$LINENO: creating $ac_file" >&5
67491 -echo "$as_me: creating $ac_file" >&6;}
67492 - rm -f "$ac_file"
67493 - fi
67494 - # Let's still pretend it is `configure' which instantiates (i.e., don't
67495 - # use $as_me), people would be surprised to read:
67496 - # /* config.h. Generated by config.status. */
67497 - if test x"$ac_file" = x-; then
67498 - configure_input=
67499 - else
67500 - configure_input="$ac_file. "
67501 - fi
67502 - configure_input=$configure_input"Generated from `echo $ac_file_in |
67503 - sed 's,.*/,,'` by configure."
67504 -
67505 - # First look for the input files in the build tree, otherwise in the
67506 - # src tree.
67507 - ac_file_inputs=`IFS=:
67508 - for f in $ac_file_in; do
67509 - case $f in
67510 - -) echo $tmp/stdin ;;
67511 - [\\/$]*)
67512 - # Absolute (can't be DOS-style, as IFS=:)
67513 - test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
67514 -echo "$as_me: error: cannot find input file: $f" >&2;}
67515 - { (exit 1); exit 1; }; }
67516 - echo "$f";;
67517 - *) # Relative
67518 - if test -f "$f"; then
67519 - # Build tree
67520 - echo "$f"
67521 - elif test -f "$srcdir/$f"; then
67522 - # Source tree
67523 - echo "$srcdir/$f"
67524 - else
67525 - # /dev/null tree
67526 - { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
67527 -echo "$as_me: error: cannot find input file: $f" >&2;}
67528 - { (exit 1); exit 1; }; }
67529 - fi;;
67530 - esac
67531 - done` || { (exit 1); exit 1; }
67532 +cat >>$CONFIG_STATUS <<\_ACEOF
67533 +# If the template does not know about datarootdir, expand it.
67534 +# FIXME: This hack should be removed a few years after 2.60.
67535 +ac_datarootdir_hack=; ac_datarootdir_seen=
67536 +
67537 +case `sed -n '/datarootdir/ {
67538 + p
67539 + q
67540 +}
67541 +/@datadir@/p
67542 +/@docdir@/p
67543 +/@infodir@/p
67544 +/@localedir@/p
67545 +/@mandir@/p
67546 +' $ac_file_inputs` in
67547 +*datarootdir*) ac_datarootdir_seen=yes;;
67548 +*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
67549 + { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
67550 +echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
67551 _ACEOF
67552 cat >>$CONFIG_STATUS <<_ACEOF
67553 + ac_datarootdir_hack='
67554 + s&@datadir@&$datadir&g
67555 + s&@docdir@&$docdir&g
67556 + s&@infodir@&$infodir&g
67557 + s&@localedir@&$localedir&g
67558 + s&@mandir@&$mandir&g
67559 + s&\\\${datarootdir}&$datarootdir&g' ;;
67560 +esac
67561 +_ACEOF
67562 +
67563 +# Neutralize VPATH when `$srcdir' = `.'.
67564 +# Shell code in configure.ac might set extrasub.
67565 +# FIXME: do we really want to maintain this feature?
67566 +cat >>$CONFIG_STATUS <<_ACEOF
67567 sed "$ac_vpsub
67568 $extrasub
67569 _ACEOF
67570 cat >>$CONFIG_STATUS <<\_ACEOF
67571 :t
67572 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
67573 -s,@configure_input@,$configure_input,;t t
67574 -s,@srcdir@,$ac_srcdir,;t t
67575 -s,@abs_srcdir@,$ac_abs_srcdir,;t t
67576 -s,@top_srcdir@,$ac_top_srcdir,;t t
67577 -s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
67578 -s,@builddir@,$ac_builddir,;t t
67579 -s,@abs_builddir@,$ac_abs_builddir,;t t
67580 -s,@top_builddir@,$ac_top_builddir,;t t
67581 -s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
67582 -s,@INSTALL@,$ac_INSTALL,;t t
67583 -" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
67584 - rm -f $tmp/stdin
67585 - if test x"$ac_file" != x-; then
67586 - mv $tmp/out $ac_file
67587 - else
67588 - cat $tmp/out
67589 - rm -f $tmp/out
67590 - fi
67591 -
67592 -done
67593 -_ACEOF
67594 -cat >>$CONFIG_STATUS <<\_ACEOF
67595 -
67596 -#
67597 -# CONFIG_HEADER section.
67598 -#
67599 -
67600 -# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
67601 -# NAME is the cpp macro being defined and VALUE is the value it is being given.
67602 -#
67603 -# ac_d sets the value in "#define NAME VALUE" lines.
67604 -ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
67605 -ac_dB='[ ].*$,\1#\2'
67606 -ac_dC=' '
67607 -ac_dD=',;t'
67608 -# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
67609 -ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
67610 -ac_uB='$,\1#\2define\3'
67611 -ac_uC=' '
67612 -ac_uD=',;t'
67613 +s&@configure_input@&$configure_input&;t t
67614 +s&@top_builddir@&$ac_top_builddir_sub&;t t
67615 +s&@srcdir@&$ac_srcdir&;t t
67616 +s&@abs_srcdir@&$ac_abs_srcdir&;t t
67617 +s&@top_srcdir@&$ac_top_srcdir&;t t
67618 +s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
67619 +s&@builddir@&$ac_builddir&;t t
67620 +s&@abs_builddir@&$ac_abs_builddir&;t t
67621 +s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
67622 +s&@INSTALL@&$ac_INSTALL&;t t
67623 +$ac_datarootdir_hack
67624 +" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
67625 +
67626 +test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
67627 + { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
67628 + { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
67629 + { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
67630 +which seems to be undefined. Please make sure it is defined." >&5
67631 +echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
67632 +which seems to be undefined. Please make sure it is defined." >&2;}
67633
67634 -for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
67635 - # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
67636 + rm -f "$tmp/stdin"
67637 case $ac_file in
67638 - - | *:- | *:-:* ) # input from stdin
67639 - cat >$tmp/stdin
67640 - ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
67641 - ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
67642 - *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
67643 - ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
67644 - * ) ac_file_in=$ac_file.in ;;
67645 + -) cat "$tmp/out"; rm -f "$tmp/out";;
67646 + *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
67647 esac
67648 + ;;
67649 + :H)
67650 + #
67651 + # CONFIG_HEADER
67652 + #
67653 +_ACEOF
67654 +
67655 +# Transform confdefs.h into a sed script `conftest.defines', that
67656 +# substitutes the proper values into config.h.in to produce config.h.
67657 +rm -f conftest.defines conftest.tail
67658 +# First, append a space to every undef/define line, to ease matching.
67659 +echo 's/$/ /' >conftest.defines
67660 +# Then, protect against being on the right side of a sed subst, or in
67661 +# an unquoted here document, in config.status. If some macros were
67662 +# called several times there might be several #defines for the same
67663 +# symbol, which is useless. But do not sort them, since the last
67664 +# AC_DEFINE must be honored.
67665 +ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
67666 +# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
67667 +# NAME is the cpp macro being defined, VALUE is the value it is being given.
67668 +# PARAMS is the parameter list in the macro definition--in most cases, it's
67669 +# just an empty string.
67670 +ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
67671 +ac_dB='\\)[ (].*,\\1define\\2'
67672 +ac_dC=' '
67673 +ac_dD=' ,'
67674
67675 - test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
67676 -echo "$as_me: creating $ac_file" >&6;}
67677 -
67678 - # First look for the input files in the build tree, otherwise in the
67679 - # src tree.
67680 - ac_file_inputs=`IFS=:
67681 - for f in $ac_file_in; do
67682 - case $f in
67683 - -) echo $tmp/stdin ;;
67684 - [\\/$]*)
67685 - # Absolute (can't be DOS-style, as IFS=:)
67686 - test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
67687 -echo "$as_me: error: cannot find input file: $f" >&2;}
67688 - { (exit 1); exit 1; }; }
67689 - # Do quote $f, to prevent DOS paths from being IFS'd.
67690 - echo "$f";;
67691 - *) # Relative
67692 - if test -f "$f"; then
67693 - # Build tree
67694 - echo "$f"
67695 - elif test -f "$srcdir/$f"; then
67696 - # Source tree
67697 - echo "$srcdir/$f"
67698 - else
67699 - # /dev/null tree
67700 - { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
67701 -echo "$as_me: error: cannot find input file: $f" >&2;}
67702 - { (exit 1); exit 1; }; }
67703 - fi;;
67704 - esac
67705 - done` || { (exit 1); exit 1; }
67706 - # Remove the trailing spaces.
67707 - sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
67708 -
67709 -_ACEOF
67710 -
67711 -# Transform confdefs.h into two sed scripts, `conftest.defines' and
67712 -# `conftest.undefs', that substitutes the proper values into
67713 -# config.h.in to produce config.h. The first handles `#define'
67714 -# templates, and the second `#undef' templates.
67715 -# And first: Protect against being on the right side of a sed subst in
67716 -# config.status. Protect against being in an unquoted here document
67717 -# in config.status.
67718 -rm -f conftest.defines conftest.undefs
67719 -# Using a here document instead of a string reduces the quoting nightmare.
67720 -# Putting comments in sed scripts is not portable.
67721 -#
67722 -# `end' is used to avoid that the second main sed command (meant for
67723 -# 0-ary CPP macros) applies to n-ary macro definitions.
67724 -# See the Autoconf documentation for `clear'.
67725 -cat >confdef2sed.sed <<\_ACEOF
67726 -s/[\\&,]/\\&/g
67727 -s,[\\$`],\\&,g
67728 -t clear
67729 -: clear
67730 -s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
67731 -t end
67732 -s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
67733 -: end
67734 -_ACEOF
67735 -# If some macros were called several times there might be several times
67736 -# the same #defines, which is useless. Nevertheless, we may not want to
67737 -# sort them, since we want the *last* AC-DEFINE to be honored.
67738 -uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
67739 -sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
67740 -rm -f confdef2sed.sed
67741 +uniq confdefs.h |
67742 + sed -n '
67743 + t rset
67744 + :rset
67745 + s/^[ ]*#[ ]*define[ ][ ]*//
67746 + t ok
67747 + d
67748 + :ok
67749 + s/[\\&,]/\\&/g
67750 + s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
67751 + s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
67752 + ' >>conftest.defines
67753
67754 -# This sed command replaces #undef with comments. This is necessary, for
67755 +# Remove the space that was appended to ease matching.
67756 +# Then replace #undef with comments. This is necessary, for
67757 # example, in the case of _POSIX_SOURCE, which is predefined and required
67758 # on some systems where configure will not decide to define it.
67759 -cat >>conftest.undefs <<\_ACEOF
67760 -s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
67761 +# (The regexp can be short, since the line contains either #define or #undef.)
67762 +echo 's/ $//
67763 +s,^[ #]*u.*,/* & */,' >>conftest.defines
67764 +
67765 +# Break up conftest.defines:
67766 +ac_max_sed_lines=50
67767 +
67768 +# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
67769 +# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
67770 +# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
67771 +# et cetera.
67772 +ac_in='$ac_file_inputs'
67773 +ac_out='"$tmp/out1"'
67774 +ac_nxt='"$tmp/out2"'
67775 +
67776 +while :
67777 +do
67778 + # Write a here document:
67779 + cat >>$CONFIG_STATUS <<_ACEOF
67780 + # First, check the format of the line:
67781 + cat >"\$tmp/defines.sed" <<\\CEOF
67782 +/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
67783 +/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
67784 +b
67785 +:def
67786 _ACEOF
67787 -
67788 -# Break up conftest.defines because some shells have a limit on the size
67789 -# of here documents, and old seds have small limits too (100 cmds).
67790 -echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
67791 -echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
67792 -echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
67793 -echo ' :' >>$CONFIG_STATUS
67794 -rm -f conftest.tail
67795 -while grep . conftest.defines >/dev/null
67796 -do
67797 - # Write a limited-size here document to $tmp/defines.sed.
67798 - echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
67799 - # Speed up: don't consider the non `#define' lines.
67800 - echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
67801 - # Work around the forget-to-reset-the-flag bug.
67802 - echo 't clr' >>$CONFIG_STATUS
67803 - echo ': clr' >>$CONFIG_STATUS
67804 - sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
67805 + sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
67806 echo 'CEOF
67807 - sed -f $tmp/defines.sed $tmp/in >$tmp/out
67808 - rm -f $tmp/in
67809 - mv $tmp/out $tmp/in
67810 -' >>$CONFIG_STATUS
67811 - sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
67812 + sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
67813 + ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
67814 + sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
67815 + grep . conftest.tail >/dev/null || break
67816 rm -f conftest.defines
67817 mv conftest.tail conftest.defines
67818 done
67819 -rm -f conftest.defines
67820 -echo ' fi # grep' >>$CONFIG_STATUS
67821 -echo >>$CONFIG_STATUS
67822 -
67823 -# Break up conftest.undefs because some shells have a limit on the size
67824 -# of here documents, and old seds have small limits too (100 cmds).
67825 -echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
67826 -rm -f conftest.tail
67827 -while grep . conftest.undefs >/dev/null
67828 -do
67829 - # Write a limited-size here document to $tmp/undefs.sed.
67830 - echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
67831 - # Speed up: don't consider the non `#undef'
67832 - echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
67833 - # Work around the forget-to-reset-the-flag bug.
67834 - echo 't clr' >>$CONFIG_STATUS
67835 - echo ': clr' >>$CONFIG_STATUS
67836 - sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
67837 - echo 'CEOF
67838 - sed -f $tmp/undefs.sed $tmp/in >$tmp/out
67839 - rm -f $tmp/in
67840 - mv $tmp/out $tmp/in
67841 -' >>$CONFIG_STATUS
67842 - sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
67843 - rm -f conftest.undefs
67844 - mv conftest.tail conftest.undefs
67845 -done
67846 -rm -f conftest.undefs
67847 +rm -f conftest.defines conftest.tail
67848
67849 +echo "ac_result=$ac_in" >>$CONFIG_STATUS
67850 cat >>$CONFIG_STATUS <<\_ACEOF
67851 - # Let's still pretend it is `configure' which instantiates (i.e., don't
67852 - # use $as_me), people would be surprised to read:
67853 - # /* config.h. Generated by config.status. */
67854 - if test x"$ac_file" = x-; then
67855 - echo "/* Generated by configure. */" >$tmp/config.h
67856 - else
67857 - echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
67858 - fi
67859 - cat $tmp/in >>$tmp/config.h
67860 - rm -f $tmp/in
67861 if test x"$ac_file" != x-; then
67862 - if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
67863 + echo "/* $configure_input */" >"$tmp/config.h"
67864 + cat "$ac_result" >>"$tmp/config.h"
67865 + if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
67866 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
67867 echo "$as_me: $ac_file is unchanged" >&6;}
67868 else
67869 - ac_dir=`(dirname "$ac_file") 2>/dev/null ||
67870 -$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
67871 - X"$ac_file" : 'X\(//\)[^/]' \| \
67872 - X"$ac_file" : 'X\(//\)$' \| \
67873 - X"$ac_file" : 'X\(/\)' \| \
67874 - . : '\(.\)' 2>/dev/null ||
67875 -echo X"$ac_file" |
67876 - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
67877 - /^X\(\/\/\)[^/].*/{ s//\1/; q; }
67878 - /^X\(\/\/\)$/{ s//\1/; q; }
67879 - /^X\(\/\).*/{ s//\1/; q; }
67880 - s/.*/./; q'`
67881 - { if $as_mkdir_p; then
67882 - mkdir -p "$ac_dir"
67883 - else
67884 - as_dir="$ac_dir"
67885 - as_dirs=
67886 - while test ! -d "$as_dir"; do
67887 - as_dirs="$as_dir $as_dirs"
67888 - as_dir=`(dirname "$as_dir") 2>/dev/null ||
67889 -$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
67890 - X"$as_dir" : 'X\(//\)[^/]' \| \
67891 - X"$as_dir" : 'X\(//\)$' \| \
67892 - X"$as_dir" : 'X\(/\)' \| \
67893 - . : '\(.\)' 2>/dev/null ||
67894 -echo X"$as_dir" |
67895 - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
67896 - /^X\(\/\/\)[^/].*/{ s//\1/; q; }
67897 - /^X\(\/\/\)$/{ s//\1/; q; }
67898 - /^X\(\/\).*/{ s//\1/; q; }
67899 - s/.*/./; q'`
67900 - done
67901 - test ! -n "$as_dirs" || mkdir $as_dirs
67902 - fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
67903 -echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
67904 - { (exit 1); exit 1; }; }; }
67905 -
67906 rm -f $ac_file
67907 - mv $tmp/config.h $ac_file
67908 + mv "$tmp/config.h" $ac_file
67909 fi
67910 else
67911 - cat $tmp/config.h
67912 - rm -f $tmp/config.h
67913 + echo "/* $configure_input */"
67914 + cat "$ac_result"
67915 fi
67916 + rm -f "$tmp/out12"
67917 # Compute $ac_file's index in $config_headers.
67918 _am_stamp_count=1
67919 for _am_header in $config_headers :; do
67920 @@ -11025,135 +11417,39 @@ for _am_header in $config_headers :; do
67921 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
67922 esac
67923 done
67924 -echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
67925 +echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
67926 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
67927 X$ac_file : 'X\(//\)[^/]' \| \
67928 X$ac_file : 'X\(//\)$' \| \
67929 - X$ac_file : 'X\(/\)' \| \
67930 - . : '\(.\)' 2>/dev/null ||
67931 + X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
67932 echo X$ac_file |
67933 - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
67934 - /^X\(\/\/\)[^/].*/{ s//\1/; q; }
67935 - /^X\(\/\/\)$/{ s//\1/; q; }
67936 - /^X\(\/\).*/{ s//\1/; q; }
67937 - s/.*/./; q'`/stamp-h$_am_stamp_count
67938 -done
67939 -_ACEOF
67940 -cat >>$CONFIG_STATUS <<\_ACEOF
67941 -
67942 -#
67943 -# CONFIG_COMMANDS section.
67944 -#
67945 -for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
67946 - ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
67947 - ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
67948 - ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
67949 -$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
67950 - X"$ac_dest" : 'X\(//\)[^/]' \| \
67951 - X"$ac_dest" : 'X\(//\)$' \| \
67952 - X"$ac_dest" : 'X\(/\)' \| \
67953 - . : '\(.\)' 2>/dev/null ||
67954 -echo X"$ac_dest" |
67955 - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
67956 - /^X\(\/\/\)[^/].*/{ s//\1/; q; }
67957 - /^X\(\/\/\)$/{ s//\1/; q; }
67958 - /^X\(\/\).*/{ s//\1/; q; }
67959 - s/.*/./; q'`
67960 - { if $as_mkdir_p; then
67961 - mkdir -p "$ac_dir"
67962 - else
67963 - as_dir="$ac_dir"
67964 - as_dirs=
67965 - while test ! -d "$as_dir"; do
67966 - as_dirs="$as_dir $as_dirs"
67967 - as_dir=`(dirname "$as_dir") 2>/dev/null ||
67968 -$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
67969 - X"$as_dir" : 'X\(//\)[^/]' \| \
67970 - X"$as_dir" : 'X\(//\)$' \| \
67971 - X"$as_dir" : 'X\(/\)' \| \
67972 - . : '\(.\)' 2>/dev/null ||
67973 -echo X"$as_dir" |
67974 - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
67975 - /^X\(\/\/\)[^/].*/{ s//\1/; q; }
67976 - /^X\(\/\/\)$/{ s//\1/; q; }
67977 - /^X\(\/\).*/{ s//\1/; q; }
67978 - s/.*/./; q'`
67979 - done
67980 - test ! -n "$as_dirs" || mkdir $as_dirs
67981 - fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
67982 -echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
67983 - { (exit 1); exit 1; }; }; }
67984 -
67985 - ac_builddir=.
67986 -
67987 -if test "$ac_dir" != .; then
67988 - ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
67989 - # A "../" for each directory in $ac_dir_suffix.
67990 - ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
67991 -else
67992 - ac_dir_suffix= ac_top_builddir=
67993 -fi
67994 -
67995 -case $srcdir in
67996 - .) # No --srcdir option. We are building in place.
67997 - ac_srcdir=.
67998 - if test -z "$ac_top_builddir"; then
67999 - ac_top_srcdir=.
68000 - else
68001 - ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
68002 - fi ;;
68003 - [\\/]* | ?:[\\/]* ) # Absolute path.
68004 - ac_srcdir=$srcdir$ac_dir_suffix;
68005 - ac_top_srcdir=$srcdir ;;
68006 - *) # Relative path.
68007 - ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
68008 - ac_top_srcdir=$ac_top_builddir$srcdir ;;
68009 -esac
68010 + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
68011 + s//\1/
68012 + q
68013 + }
68014 + /^X\(\/\/\)[^/].*/{
68015 + s//\1/
68016 + q
68017 + }
68018 + /^X\(\/\/\)$/{
68019 + s//\1/
68020 + q
68021 + }
68022 + /^X\(\/\).*/{
68023 + s//\1/
68024 + q
68025 + }
68026 + s/.*/./; q'`/stamp-h$_am_stamp_count
68027 + ;;
68028
68029 -# Do not use `cd foo && pwd` to compute absolute paths, because
68030 -# the directories may not exist.
68031 -case `pwd` in
68032 -.) ac_abs_builddir="$ac_dir";;
68033 -*)
68034 - case "$ac_dir" in
68035 - .) ac_abs_builddir=`pwd`;;
68036 - [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
68037 - *) ac_abs_builddir=`pwd`/"$ac_dir";;
68038 - esac;;
68039 -esac
68040 -case $ac_abs_builddir in
68041 -.) ac_abs_top_builddir=${ac_top_builddir}.;;
68042 -*)
68043 - case ${ac_top_builddir}. in
68044 - .) ac_abs_top_builddir=$ac_abs_builddir;;
68045 - [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
68046 - *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
68047 - esac;;
68048 -esac
68049 -case $ac_abs_builddir in
68050 -.) ac_abs_srcdir=$ac_srcdir;;
68051 -*)
68052 - case $ac_srcdir in
68053 - .) ac_abs_srcdir=$ac_abs_builddir;;
68054 - [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
68055 - *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
68056 - esac;;
68057 -esac
68058 -case $ac_abs_builddir in
68059 -.) ac_abs_top_srcdir=$ac_top_srcdir;;
68060 -*)
68061 - case $ac_top_srcdir in
68062 - .) ac_abs_top_srcdir=$ac_abs_builddir;;
68063 - [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
68064 - *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
68065 - esac;;
68066 -esac
68067 + :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
68068 +echo "$as_me: executing $ac_file commands" >&6;}
68069 + ;;
68070 + esac
68071
68072
68073 - { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
68074 -echo "$as_me: executing $ac_dest commands" >&6;}
68075 - case $ac_dest in
68076 - depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
68077 + case $ac_file$ac_mode in
68078 + "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
68079 # Strip MF so we end up with the name of the file.
68080 mf=`echo "$mf" | sed -e 's/:.*$//'`
68081 # Check whether this is an Automake generated Makefile or not.
68082 @@ -11163,18 +11459,29 @@ echo "$as_me: executing $ac_dest command
68083 # each Makefile.in and add a new line on top of each file to say so.
68084 # So let's grep whole file.
68085 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
68086 - dirpart=`(dirname "$mf") 2>/dev/null ||
68087 + dirpart=`$as_dirname -- "$mf" ||
68088 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
68089 X"$mf" : 'X\(//\)[^/]' \| \
68090 X"$mf" : 'X\(//\)$' \| \
68091 - X"$mf" : 'X\(/\)' \| \
68092 - . : '\(.\)' 2>/dev/null ||
68093 + X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
68094 echo X"$mf" |
68095 - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
68096 - /^X\(\/\/\)[^/].*/{ s//\1/; q; }
68097 - /^X\(\/\/\)$/{ s//\1/; q; }
68098 - /^X\(\/\).*/{ s//\1/; q; }
68099 - s/.*/./; q'`
68100 + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
68101 + s//\1/
68102 + q
68103 + }
68104 + /^X\(\/\/\)[^/].*/{
68105 + s//\1/
68106 + q
68107 + }
68108 + /^X\(\/\/\)$/{
68109 + s//\1/
68110 + q
68111 + }
68112 + /^X\(\/\).*/{
68113 + s//\1/
68114 + q
68115 + }
68116 + s/.*/./; q'`
68117 else
68118 continue
68119 fi
68120 @@ -11196,54 +11503,80 @@ echo X"$mf" |
68121 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
68122 # Make sure the directory exists.
68123 test -f "$dirpart/$file" && continue
68124 - fdir=`(dirname "$file") 2>/dev/null ||
68125 + fdir=`$as_dirname -- "$file" ||
68126 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
68127 X"$file" : 'X\(//\)[^/]' \| \
68128 X"$file" : 'X\(//\)$' \| \
68129 - X"$file" : 'X\(/\)' \| \
68130 - . : '\(.\)' 2>/dev/null ||
68131 + X"$file" : 'X\(/\)' \| . 2>/dev/null ||
68132 echo X"$file" |
68133 - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
68134 - /^X\(\/\/\)[^/].*/{ s//\1/; q; }
68135 - /^X\(\/\/\)$/{ s//\1/; q; }
68136 - /^X\(\/\).*/{ s//\1/; q; }
68137 - s/.*/./; q'`
68138 - { if $as_mkdir_p; then
68139 - mkdir -p $dirpart/$fdir
68140 - else
68141 - as_dir=$dirpart/$fdir
68142 + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
68143 + s//\1/
68144 + q
68145 + }
68146 + /^X\(\/\/\)[^/].*/{
68147 + s//\1/
68148 + q
68149 + }
68150 + /^X\(\/\/\)$/{
68151 + s//\1/
68152 + q
68153 + }
68154 + /^X\(\/\).*/{
68155 + s//\1/
68156 + q
68157 + }
68158 + s/.*/./; q'`
68159 + { as_dir=$dirpart/$fdir
68160 + case $as_dir in #(
68161 + -*) as_dir=./$as_dir;;
68162 + esac
68163 + test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
68164 as_dirs=
68165 - while test ! -d "$as_dir"; do
68166 - as_dirs="$as_dir $as_dirs"
68167 - as_dir=`(dirname "$as_dir") 2>/dev/null ||
68168 + while :; do
68169 + case $as_dir in #(
68170 + *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
68171 + *) as_qdir=$as_dir;;
68172 + esac
68173 + as_dirs="'$as_qdir' $as_dirs"
68174 + as_dir=`$as_dirname -- "$as_dir" ||
68175 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
68176 X"$as_dir" : 'X\(//\)[^/]' \| \
68177 X"$as_dir" : 'X\(//\)$' \| \
68178 - X"$as_dir" : 'X\(/\)' \| \
68179 - . : '\(.\)' 2>/dev/null ||
68180 + X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
68181 echo X"$as_dir" |
68182 - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
68183 - /^X\(\/\/\)[^/].*/{ s//\1/; q; }
68184 - /^X\(\/\/\)$/{ s//\1/; q; }
68185 - /^X\(\/\).*/{ s//\1/; q; }
68186 - s/.*/./; q'`
68187 + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
68188 + s//\1/
68189 + q
68190 + }
68191 + /^X\(\/\/\)[^/].*/{
68192 + s//\1/
68193 + q
68194 + }
68195 + /^X\(\/\/\)$/{
68196 + s//\1/
68197 + q
68198 + }
68199 + /^X\(\/\).*/{
68200 + s//\1/
68201 + q
68202 + }
68203 + s/.*/./; q'`
68204 + test -d "$as_dir" && break
68205 done
68206 - test ! -n "$as_dirs" || mkdir $as_dirs
68207 - fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
68208 -echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
68209 + test -z "$as_dirs" || eval "mkdir $as_dirs"
68210 + } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
68211 +echo "$as_me: error: cannot create directory $as_dir" >&2;}
68212 { (exit 1); exit 1; }; }; }
68213 -
68214 # echo "creating $dirpart/$file"
68215 echo '# dummy' > "$dirpart/$file"
68216 done
68217 done
68218 ;;
68219 - default ) sed -e '/POTFILES =/r po/POTFILES' po/Makefile.in > po/Makefile ;;
68220 + "default":C) sed -e '/POTFILES =/r po/POTFILES' po/Makefile.in > po/Makefile ;;
68221 +
68222 esac
68223 -done
68224 -_ACEOF
68225 +done # for ac_tag
68226
68227 -cat >>$CONFIG_STATUS <<\_ACEOF
68228
68229 { (exit 0); exit 0; }
68230 _ACEOF
68231 diff -Nrup binutils-2.17/ld/configure.tgt binutils-2.17.atmel.1.3.0/ld/configure.tgt
68232 --- binutils-2.17/ld/configure.tgt 2006-04-05 14:41:57.000000000 +0200
68233 +++ binutils-2.17.atmel.1.3.0/ld/configure.tgt 2007-05-31 17:03:35.000000000 +0200
68234 @@ -81,8 +81,10 @@ xscale-*-coff) targ_emul=armcoff ;;
68235 xscale-*-elf) targ_emul=armelf
68236 ;;
68237 avr-*-*) targ_emul=avr2
68238 - targ_extra_emuls="avr1 avr3 avr4 avr5"
68239 - ;;
68240 + targ_extra_emuls="avr1 avr3 avr4 avr5" ;;
68241 +avr32-*-none) targ_emul=avr32elf_ap7000
68242 + 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" ;;
68243 +avr32-*-linux*) targ_emul=avr32linux ;;
68244 bfin-*-elf) targ_emul=elf32bfin; targ_extra_emuls="elf32bfinfd" ;;
68245 bfin-*-uclinux*) targ_emul=elf32bfin; targ_extra_emuls="elf32bfinfd" ;;
68246 cr16c-*-elf*) targ_emul=elf32cr16c
68247 diff -Nrup binutils-2.17/ld/emulparams/avr32elf_ap7000.sh binutils-2.17.atmel.1.3.0/ld/emulparams/avr32elf_ap7000.sh
68248 --- binutils-2.17/ld/emulparams/avr32elf_ap7000.sh 1970-01-01 01:00:00.000000000 +0100
68249 +++ binutils-2.17.atmel.1.3.0/ld/emulparams/avr32elf_ap7000.sh 2007-09-28 10:30:45.000000000 +0200
68250 @@ -0,0 +1,35 @@
68251 +MACHINE=ap
68252 +SCRIPT_NAME=elf_xip
68253 +TEMPLATE_NAME=elf32
68254 +EXTRA_EM_FILE=avr32elf
68255 +OUTPUT_FORMAT="elf32-avr32"
68256 +ARCH=avr32
68257 +MAXPAGESIZE=4096
68258 +ENTRY=_start
68259 +EMBEDDED=yes
68260 +NO_SMALL_DATA=yes
68261 +NOP=0xd703d703
68262 +
68263 +TEXT_START_ADDR=0xa0000000
68264 +DATA_SEGMENT_ALIGN=8
68265 +BSS_ALIGNMENT=8
68266 +
68267 +INITIAL_READONLY_SECTIONS=".reset : { *(.reset) } >FLASH AT>FLASH
68268 + . = . & 0x9fffffff;"
68269 +
68270 +MEMORY="MEMORY
68271 + {
68272 + FLASH (rxai) : ORIGIN = 0x00000000, LENGTH = 0x4000000
68273 + SRAM (rwxa) : ORIGIN = 0x24000000, LENGTH = 0x8000
68274 + }"
68275 +RO_LMA_REGION="FLASH"
68276 +RO_VMA_REGION="FLASH"
68277 +RW_LMA_REGION="FLASH"
68278 +RW_VMA_REGION="SRAM"
68279 +
68280 +STACK_SIZE=0x1000
68281 +STACK_ADDR="ORIGIN(SRAM) + LENGTH(SRAM) - ${STACK_SIZE}"
68282 +
68283 +DATA_SEGMENT_END="__heap_start__ = ALIGN(8);
68284 + . = ${STACK_ADDR};
68285 + __heap_end__ = .;"
68286 diff -Nrup binutils-2.17/ld/emulparams/avr32elf.sh binutils-2.17.atmel.1.3.0/ld/emulparams/avr32elf.sh
68287 --- binutils-2.17/ld/emulparams/avr32elf.sh 1970-01-01 01:00:00.000000000 +0100
68288 +++ binutils-2.17.atmel.1.3.0/ld/emulparams/avr32elf.sh 2007-09-28 10:30:45.000000000 +0200
68289 @@ -0,0 +1,25 @@
68290 +MACHINE=
68291 +SCRIPT_NAME=elf
68292 +TEMPLATE_NAME=elf32
68293 +EXTRA_EM_FILE=avr32elf
68294 +OUTPUT_FORMAT="elf32-avr32"
68295 +TEXT_START_ADDR=0xa0000000
68296 +ARCH=avr32
68297 +MAXPAGESIZE=0x4
68298 +ENTRY=_start
68299 +EMBEDDED=yes
68300 +NOP=0xd703d703
68301 +INITIAL_READONLY_SECTIONS=".reset : AT(0x0) { *(.reset) }
68302 + . = . & 0x9fffffff;"
68303 +DATA_START_SYMBOLS="__data_init_start__ = .;
68304 + __data_init_end__ = .;
68305 + __data_start__ = .;"
68306 +
68307 +OTHER_BSS_SYMBOLS='__bss_start__ = .;'
68308 +OTHER_BSS_END_SYMBOLS="_bss_end__ = . ; __bss_end__ = . ; __end__ = . ;
68309 + . = ALIGN(16);
68310 + __heap_start__ = .;
68311 + __heap_end__ = 0x82000000;"
68312 +
68313 +STACK_ADDR=0x82000000
68314 +
68315 diff -Nrup binutils-2.17/ld/emulparams/avr32elf_uc3a0128.sh binutils-2.17.atmel.1.3.0/ld/emulparams/avr32elf_uc3a0128.sh
68316 --- binutils-2.17/ld/emulparams/avr32elf_uc3a0128.sh 1970-01-01 01:00:00.000000000 +0100
68317 +++ binutils-2.17.atmel.1.3.0/ld/emulparams/avr32elf_uc3a0128.sh 2007-09-28 10:30:45.000000000 +0200
68318 @@ -0,0 +1,40 @@
68319 +MACHINE=uc
68320 +SCRIPT_NAME=elf_xip
68321 +TEMPLATE_NAME=elf32
68322 +EXTRA_EM_FILE=avr32elf
68323 +OUTPUT_FORMAT="elf32-avr32"
68324 +ARCH=avr32
68325 +MAXPAGESIZE=4096
68326 +ENTRY=_start
68327 +EMBEDDED=yes
68328 +NO_SMALL_DATA=yes
68329 +NOP=0xd703d703
68330 +
68331 +TEXT_START_ADDR=0x80000000
68332 +DATA_SEGMENT_ALIGN=8
68333 +BSS_ALIGNMENT=8
68334 +
68335 +INITIAL_READONLY_SECTIONS=".reset : { *(.reset) } >FLASH AT>FLASH"
68336 +
68337 +MEMORY="MEMORY
68338 + {
68339 + FLASH (rxai!w) : ORIGIN = 0x80000000, LENGTH = 0x20000
68340 + INTRAM (wxa!ri) : ORIGIN = 0x00000000, LENGTH = 0x8000
68341 + USERPAGE : ORIGIN = 0x80800000, LENGTH = 0x200
68342 + FACTORYPAGE : ORIGIN = 0x80800200, LENGTH = 0x200
68343 + }"
68344 +RO_LMA_REGION="FLASH"
68345 +RO_VMA_REGION="FLASH"
68346 +RW_LMA_REGION="FLASH"
68347 +RW_VMA_REGION="INTRAM"
68348 +
68349 +STACK_SIZE=0x1000
68350 +STACK_ADDR="ORIGIN(INTRAM) + LENGTH(INTRAM) - ${STACK_SIZE}"
68351 +
68352 +DATA_SEGMENT_END="__heap_start__ = ALIGN(8);
68353 + . = ${STACK_ADDR};
68354 + __heap_end__ = .;"
68355 +
68356 +OTHER_SECTIONS=".userpage : { *(.userpage .userpage.*) } >USERPAGE AT>USERPAGE
68357 + .factorypage : { *(.factorypage .factorypage.*) } >FACTORYPAGE AT>FACTORYPAGE"
68358 +
68359 \ No newline at end of file
68360 diff -Nrup binutils-2.17/ld/emulparams/avr32elf_uc3a0256.sh binutils-2.17.atmel.1.3.0/ld/emulparams/avr32elf_uc3a0256.sh
68361 --- binutils-2.17/ld/emulparams/avr32elf_uc3a0256.sh 1970-01-01 01:00:00.000000000 +0100
68362 +++ binutils-2.17.atmel.1.3.0/ld/emulparams/avr32elf_uc3a0256.sh 2007-09-28 10:30:45.000000000 +0200
68363 @@ -0,0 +1,39 @@
68364 +MACHINE=uc
68365 +SCRIPT_NAME=elf_xip
68366 +TEMPLATE_NAME=elf32
68367 +EXTRA_EM_FILE=avr32elf
68368 +OUTPUT_FORMAT="elf32-avr32"
68369 +ARCH=avr32
68370 +MAXPAGESIZE=4096
68371 +ENTRY=_start
68372 +EMBEDDED=yes
68373 +NO_SMALL_DATA=yes
68374 +NOP=0xd703d703
68375 +
68376 +TEXT_START_ADDR=0x80000000
68377 +DATA_SEGMENT_ALIGN=8
68378 +BSS_ALIGNMENT=8
68379 +
68380 +INITIAL_READONLY_SECTIONS=".reset : { *(.reset) } >FLASH AT>FLASH"
68381 +
68382 +MEMORY="MEMORY
68383 + {
68384 + FLASH (rxai!w) : ORIGIN = 0x80000000, LENGTH = 0x40000
68385 + INTRAM (wxa!ri) : ORIGIN = 0x00000000, LENGTH = 0x10000
68386 + USERPAGE : ORIGIN = 0x80800000, LENGTH = 0x200
68387 + FACTORYPAGE : ORIGIN = 0x80800200, LENGTH = 0x200
68388 + }"
68389 +RO_LMA_REGION="FLASH"
68390 +RO_VMA_REGION="FLASH"
68391 +RW_LMA_REGION="FLASH"
68392 +RW_VMA_REGION="INTRAM"
68393 +
68394 +STACK_SIZE=0x1000
68395 +STACK_ADDR="ORIGIN(INTRAM) + LENGTH(INTRAM) - ${STACK_SIZE}"
68396 +
68397 +DATA_SEGMENT_END="__heap_start__ = ALIGN(8);
68398 + . = ${STACK_ADDR};
68399 + __heap_end__ = .;"
68400 +
68401 +OTHER_SECTIONS=".userpage : { *(.userpage .userpage.*) } >USERPAGE AT>USERPAGE
68402 + .factorypage : { *(.factorypage .factorypage.*) } >FACTORYPAGE AT>FACTORYPAGE"
68403 diff -Nrup binutils-2.17/ld/emulparams/avr32elf_uc3a0512.sh binutils-2.17.atmel.1.3.0/ld/emulparams/avr32elf_uc3a0512.sh
68404 --- binutils-2.17/ld/emulparams/avr32elf_uc3a0512.sh 1970-01-01 01:00:00.000000000 +0100
68405 +++ binutils-2.17.atmel.1.3.0/ld/emulparams/avr32elf_uc3a0512.sh 2007-09-28 10:30:45.000000000 +0200
68406 @@ -0,0 +1,39 @@
68407 +MACHINE=uc
68408 +SCRIPT_NAME=elf_xip
68409 +TEMPLATE_NAME=elf32
68410 +EXTRA_EM_FILE=avr32elf
68411 +OUTPUT_FORMAT="elf32-avr32"
68412 +ARCH=avr32
68413 +MAXPAGESIZE=4096
68414 +ENTRY=_start
68415 +EMBEDDED=yes
68416 +NO_SMALL_DATA=yes
68417 +NOP=0xd703d703
68418 +
68419 +TEXT_START_ADDR=0x80000000
68420 +DATA_SEGMENT_ALIGN=8
68421 +BSS_ALIGNMENT=8
68422 +
68423 +INITIAL_READONLY_SECTIONS=".reset : { *(.reset) } >FLASH AT>FLASH"
68424 +
68425 +MEMORY="MEMORY
68426 + {
68427 + FLASH (rxai!w) : ORIGIN = 0x80000000, LENGTH = 0x80000
68428 + INTRAM (wxa!ri) : ORIGIN = 0x00000000, LENGTH = 0x10000
68429 + USERPAGE : ORIGIN = 0x80800000, LENGTH = 0x200
68430 + FACTORYPAGE : ORIGIN = 0x80800200, LENGTH = 0x200
68431 + }"
68432 +RO_LMA_REGION="FLASH"
68433 +RO_VMA_REGION="FLASH"
68434 +RW_LMA_REGION="FLASH"
68435 +RW_VMA_REGION="INTRAM"
68436 +
68437 +STACK_SIZE=0x1000
68438 +STACK_ADDR="ORIGIN(INTRAM) + LENGTH(INTRAM) - ${STACK_SIZE}"
68439 +
68440 +DATA_SEGMENT_END="__heap_start__ = ALIGN(8);
68441 + . = ${STACK_ADDR};
68442 + __heap_end__ = .;"
68443 +
68444 +OTHER_SECTIONS=".userpage : { *(.userpage .userpage.*) } >USERPAGE AT>USERPAGE
68445 + .factorypage : { *(.factorypage .factorypage.*) } >FACTORYPAGE AT>FACTORYPAGE"
68446 diff -Nrup binutils-2.17/ld/emulparams/avr32elf_uc3a1128.sh binutils-2.17.atmel.1.3.0/ld/emulparams/avr32elf_uc3a1128.sh
68447 --- binutils-2.17/ld/emulparams/avr32elf_uc3a1128.sh 1970-01-01 01:00:00.000000000 +0100
68448 +++ binutils-2.17.atmel.1.3.0/ld/emulparams/avr32elf_uc3a1128.sh 2007-09-28 10:30:45.000000000 +0200
68449 @@ -0,0 +1,39 @@
68450 +MACHINE=uc
68451 +SCRIPT_NAME=elf_xip
68452 +TEMPLATE_NAME=elf32
68453 +EXTRA_EM_FILE=avr32elf
68454 +OUTPUT_FORMAT="elf32-avr32"
68455 +ARCH=avr32
68456 +MAXPAGESIZE=4096
68457 +ENTRY=_start
68458 +EMBEDDED=yes
68459 +NO_SMALL_DATA=yes
68460 +NOP=0xd703d703
68461 +
68462 +TEXT_START_ADDR=0x80000000
68463 +DATA_SEGMENT_ALIGN=8
68464 +BSS_ALIGNMENT=8
68465 +
68466 +INITIAL_READONLY_SECTIONS=".reset : { *(.reset) } >FLASH AT>FLASH"
68467 +
68468 +MEMORY="MEMORY
68469 + {
68470 + FLASH (rxai!w) : ORIGIN = 0x80000000, LENGTH = 0x20000
68471 + INTRAM (wxa!ri) : ORIGIN = 0x00000000, LENGTH = 0x8000
68472 + USERPAGE : ORIGIN = 0x80800000, LENGTH = 0x200
68473 + FACTORYPAGE : ORIGIN = 0x80800200, LENGTH = 0x200
68474 + }"
68475 +RO_LMA_REGION="FLASH"
68476 +RO_VMA_REGION="FLASH"
68477 +RW_LMA_REGION="FLASH"
68478 +RW_VMA_REGION="INTRAM"
68479 +
68480 +STACK_SIZE=0x1000
68481 +STACK_ADDR="ORIGIN(INTRAM) + LENGTH(INTRAM) - ${STACK_SIZE}"
68482 +
68483 +DATA_SEGMENT_END="__heap_start__ = ALIGN(8);
68484 + . = ${STACK_ADDR};
68485 + __heap_end__ = .;"
68486 +
68487 +OTHER_SECTIONS=".userpage : { *(.userpage .userpage.*) } >USERPAGE AT>USERPAGE
68488 + .factorypage : { *(.factorypage .factorypage.*) } >FACTORYPAGE AT>FACTORYPAGE"
68489 diff -Nrup binutils-2.17/ld/emulparams/avr32elf_uc3a1256.sh binutils-2.17.atmel.1.3.0/ld/emulparams/avr32elf_uc3a1256.sh
68490 --- binutils-2.17/ld/emulparams/avr32elf_uc3a1256.sh 1970-01-01 01:00:00.000000000 +0100
68491 +++ binutils-2.17.atmel.1.3.0/ld/emulparams/avr32elf_uc3a1256.sh 2007-09-28 10:30:45.000000000 +0200
68492 @@ -0,0 +1,39 @@
68493 +MACHINE=uc
68494 +SCRIPT_NAME=elf_xip
68495 +TEMPLATE_NAME=elf32
68496 +EXTRA_EM_FILE=avr32elf
68497 +OUTPUT_FORMAT="elf32-avr32"
68498 +ARCH=avr32
68499 +MAXPAGESIZE=4096
68500 +ENTRY=_start
68501 +EMBEDDED=yes
68502 +NO_SMALL_DATA=yes
68503 +NOP=0xd703d703
68504 +
68505 +TEXT_START_ADDR=0x80000000
68506 +DATA_SEGMENT_ALIGN=8
68507 +BSS_ALIGNMENT=8
68508 +
68509 +INITIAL_READONLY_SECTIONS=".reset : { *(.reset) } >FLASH AT>FLASH"
68510 +
68511 +MEMORY="MEMORY
68512 + {
68513 + FLASH (rxai!w) : ORIGIN = 0x80000000, LENGTH = 0x40000
68514 + INTRAM (wxa!ri) : ORIGIN = 0x00000000, LENGTH = 0x10000
68515 + USERPAGE : ORIGIN = 0x80800000, LENGTH = 0x200
68516 + FACTORYPAGE : ORIGIN = 0x80800200, LENGTH = 0x200
68517 + }"
68518 +RO_LMA_REGION="FLASH"
68519 +RO_VMA_REGION="FLASH"
68520 +RW_LMA_REGION="FLASH"
68521 +RW_VMA_REGION="INTRAM"
68522 +
68523 +STACK_SIZE=0x1000
68524 +STACK_ADDR="ORIGIN(INTRAM) + LENGTH(INTRAM) - ${STACK_SIZE}"
68525 +
68526 +DATA_SEGMENT_END="__heap_start__ = ALIGN(8);
68527 + . = ${STACK_ADDR};
68528 + __heap_end__ = .;"
68529 +
68530 +OTHER_SECTIONS=".userpage : { *(.userpage .userpage.*) } >USERPAGE AT>USERPAGE
68531 + .factorypage : { *(.factorypage .factorypage.*) } >FACTORYPAGE AT>FACTORYPAGE"
68532 diff -Nrup binutils-2.17/ld/emulparams/avr32elf_uc3a1512.sh binutils-2.17.atmel.1.3.0/ld/emulparams/avr32elf_uc3a1512.sh
68533 --- binutils-2.17/ld/emulparams/avr32elf_uc3a1512.sh 1970-01-01 01:00:00.000000000 +0100
68534 +++ binutils-2.17.atmel.1.3.0/ld/emulparams/avr32elf_uc3a1512.sh 2007-09-28 10:30:45.000000000 +0200
68535 @@ -0,0 +1,39 @@
68536 +MACHINE=uc
68537 +SCRIPT_NAME=elf_xip
68538 +TEMPLATE_NAME=elf32
68539 +EXTRA_EM_FILE=avr32elf
68540 +OUTPUT_FORMAT="elf32-avr32"
68541 +ARCH=avr32
68542 +MAXPAGESIZE=4096
68543 +ENTRY=_start
68544 +EMBEDDED=yes
68545 +NO_SMALL_DATA=yes
68546 +NOP=0xd703d703
68547 +
68548 +TEXT_START_ADDR=0x80000000
68549 +DATA_SEGMENT_ALIGN=8
68550 +BSS_ALIGNMENT=8
68551 +
68552 +INITIAL_READONLY_SECTIONS=".reset : { *(.reset) } >FLASH AT>FLASH"
68553 +
68554 +MEMORY="MEMORY
68555 + {
68556 + FLASH (rxai!w) : ORIGIN = 0x80000000, LENGTH = 0x80000
68557 + INTRAM (wxa!ri) : ORIGIN = 0x00000000, LENGTH = 0x10000
68558 + USERPAGE : ORIGIN = 0x80800000, LENGTH = 0x200
68559 + FACTORYPAGE : ORIGIN = 0x80800200, LENGTH = 0x200
68560 + }"
68561 +RO_LMA_REGION="FLASH"
68562 +RO_VMA_REGION="FLASH"
68563 +RW_LMA_REGION="FLASH"
68564 +RW_VMA_REGION="INTRAM"
68565 +
68566 +STACK_SIZE=0x1000
68567 +STACK_ADDR="ORIGIN(INTRAM) + LENGTH(INTRAM) - ${STACK_SIZE}"
68568 +
68569 +DATA_SEGMENT_END="__heap_start__ = ALIGN(8);
68570 + . = ${STACK_ADDR};
68571 + __heap_end__ = .;"
68572 +
68573 +OTHER_SECTIONS=".userpage : { *(.userpage .userpage.*) } >USERPAGE AT>USERPAGE
68574 + .factorypage : { *(.factorypage .factorypage.*) } >FACTORYPAGE AT>FACTORYPAGE"
68575 diff -Nrup binutils-2.17/ld/emulparams/avr32elf_uc3b0128.sh binutils-2.17.atmel.1.3.0/ld/emulparams/avr32elf_uc3b0128.sh
68576 --- binutils-2.17/ld/emulparams/avr32elf_uc3b0128.sh 1970-01-01 01:00:00.000000000 +0100
68577 +++ binutils-2.17.atmel.1.3.0/ld/emulparams/avr32elf_uc3b0128.sh 2007-09-28 10:30:45.000000000 +0200
68578 @@ -0,0 +1,39 @@
68579 +MACHINE=uc
68580 +SCRIPT_NAME=elf_xip
68581 +TEMPLATE_NAME=elf32
68582 +EXTRA_EM_FILE=avr32elf
68583 +OUTPUT_FORMAT="elf32-avr32"
68584 +ARCH=avr32
68585 +MAXPAGESIZE=4096
68586 +ENTRY=_start
68587 +EMBEDDED=yes
68588 +NO_SMALL_DATA=yes
68589 +NOP=0xd703d703
68590 +
68591 +TEXT_START_ADDR=0x80000000
68592 +DATA_SEGMENT_ALIGN=8
68593 +BSS_ALIGNMENT=8
68594 +
68595 +INITIAL_READONLY_SECTIONS=".reset : { *(.reset) } >FLASH AT>FLASH"
68596 +
68597 +MEMORY="MEMORY
68598 + {
68599 + FLASH (rxai!w) : ORIGIN = 0x80000000, LENGTH = 0x20000
68600 + INTRAM (wxa!ri) : ORIGIN = 0x00000000, LENGTH = 0x8000
68601 + USERPAGE : ORIGIN = 0x80800000, LENGTH = 0x200
68602 + FACTORYPAGE : ORIGIN = 0x80800200, LENGTH = 0x200
68603 + }"
68604 +RO_LMA_REGION="FLASH"
68605 +RO_VMA_REGION="FLASH"
68606 +RW_LMA_REGION="FLASH"
68607 +RW_VMA_REGION="INTRAM"
68608 +
68609 +STACK_SIZE=0x1000
68610 +STACK_ADDR="ORIGIN(INTRAM) + LENGTH(INTRAM) - ${STACK_SIZE}"
68611 +
68612 +DATA_SEGMENT_END="__heap_start__ = ALIGN(8);
68613 + . = ${STACK_ADDR};
68614 + __heap_end__ = .;"
68615 +
68616 +OTHER_SECTIONS=".userpage : { *(.userpage .userpage.*) } >USERPAGE AT>USERPAGE
68617 + .factorypage : { *(.factorypage .factorypage.*) } >FACTORYPAGE AT>FACTORYPAGE"
68618 diff -Nrup binutils-2.17/ld/emulparams/avr32elf_uc3b0256.sh binutils-2.17.atmel.1.3.0/ld/emulparams/avr32elf_uc3b0256.sh
68619 --- binutils-2.17/ld/emulparams/avr32elf_uc3b0256.sh 1970-01-01 01:00:00.000000000 +0100
68620 +++ binutils-2.17.atmel.1.3.0/ld/emulparams/avr32elf_uc3b0256.sh 2007-09-28 10:30:45.000000000 +0200
68621 @@ -0,0 +1,40 @@
68622 +MACHINE=uc
68623 +SCRIPT_NAME=elf_xip
68624 +TEMPLATE_NAME=elf32
68625 +EXTRA_EM_FILE=avr32elf
68626 +OUTPUT_FORMAT="elf32-avr32"
68627 +ARCH=avr32
68628 +MAXPAGESIZE=4096
68629 +ENTRY=_start
68630 +EMBEDDED=yes
68631 +NO_SMALL_DATA=yes
68632 +NOP=0xd703d703
68633 +
68634 +TEXT_START_ADDR=0x80000000
68635 +DATA_SEGMENT_ALIGN=8
68636 +BSS_ALIGNMENT=8
68637 +
68638 +INITIAL_READONLY_SECTIONS=".reset : { *(.reset) } >FLASH AT>FLASH"
68639 +
68640 +MEMORY="MEMORY
68641 + {
68642 + FLASH (rxai!w) : ORIGIN = 0x80000000, LENGTH = 0x40000
68643 + INTRAM (wxa!ri) : ORIGIN = 0x00000000, LENGTH = 0x8000
68644 + USERPAGE : ORIGIN = 0x80800000, LENGTH = 0x200
68645 + FACTORYPAGE : ORIGIN = 0x80800200, LENGTH = 0x200
68646 + }"
68647 +RO_LMA_REGION="FLASH"
68648 +RO_VMA_REGION="FLASH"
68649 +RW_LMA_REGION="FLASH"
68650 +RW_VMA_REGION="INTRAM"
68651 +
68652 +STACK_SIZE=0x1000
68653 +STACK_ADDR="ORIGIN(INTRAM) + LENGTH(INTRAM) - ${STACK_SIZE}"
68654 +
68655 +DATA_SEGMENT_END="__heap_start__ = ALIGN(8);
68656 + . = ${STACK_ADDR};
68657 + __heap_end__ = .;"
68658 +
68659 +OTHER_SECTIONS=".userpage : { *(.userpage .userpage.*) } >USERPAGE AT>USERPAGE
68660 + .factorypage : { *(.factorypage .factorypage.*) } >FACTORYPAGE AT>FACTORYPAGE"
68661 +
68662 \ No newline at end of file
68663 diff -Nrup binutils-2.17/ld/emulparams/avr32elf_uc3b064.sh binutils-2.17.atmel.1.3.0/ld/emulparams/avr32elf_uc3b064.sh
68664 --- binutils-2.17/ld/emulparams/avr32elf_uc3b064.sh 1970-01-01 01:00:00.000000000 +0100
68665 +++ binutils-2.17.atmel.1.3.0/ld/emulparams/avr32elf_uc3b064.sh 2007-09-28 10:30:45.000000000 +0200
68666 @@ -0,0 +1,39 @@
68667 +MACHINE=uc
68668 +SCRIPT_NAME=elf_xip
68669 +TEMPLATE_NAME=elf32
68670 +EXTRA_EM_FILE=avr32elf
68671 +OUTPUT_FORMAT="elf32-avr32"
68672 +ARCH=avr32
68673 +MAXPAGESIZE=4096
68674 +ENTRY=_start
68675 +EMBEDDED=yes
68676 +NO_SMALL_DATA=yes
68677 +NOP=0xd703d703
68678 +
68679 +TEXT_START_ADDR=0x80000000
68680 +DATA_SEGMENT_ALIGN=8
68681 +BSS_ALIGNMENT=8
68682 +
68683 +INITIAL_READONLY_SECTIONS=".reset : { *(.reset) } >FLASH AT>FLASH"
68684 +
68685 +MEMORY="MEMORY
68686 + {
68687 + FLASH (rxai!w) : ORIGIN = 0x80000000, LENGTH = 0x10000
68688 + INTRAM (wxa!ri) : ORIGIN = 0x00000000, LENGTH = 0x4000
68689 + USERPAGE : ORIGIN = 0x80800000, LENGTH = 0x200
68690 + FACTORYPAGE : ORIGIN = 0x80800200, LENGTH = 0x200
68691 + }"
68692 +RO_LMA_REGION="FLASH"
68693 +RO_VMA_REGION="FLASH"
68694 +RW_LMA_REGION="FLASH"
68695 +RW_VMA_REGION="INTRAM"
68696 +
68697 +STACK_SIZE=0x1000
68698 +STACK_ADDR="ORIGIN(INTRAM) + LENGTH(INTRAM) - ${STACK_SIZE}"
68699 +
68700 +DATA_SEGMENT_END="__heap_start__ = ALIGN(8);
68701 + . = ${STACK_ADDR};
68702 + __heap_end__ = .;"
68703 +
68704 +OTHER_SECTIONS=".userpage : { *(.userpage .userpage.*) } >USERPAGE AT>USERPAGE
68705 + .factorypage : { *(.factorypage .factorypage.*) } >FACTORYPAGE AT>FACTORYPAGE"
68706 diff -Nrup binutils-2.17/ld/emulparams/avr32elf_uc3b1128.sh binutils-2.17.atmel.1.3.0/ld/emulparams/avr32elf_uc3b1128.sh
68707 --- binutils-2.17/ld/emulparams/avr32elf_uc3b1128.sh 1970-01-01 01:00:00.000000000 +0100
68708 +++ binutils-2.17.atmel.1.3.0/ld/emulparams/avr32elf_uc3b1128.sh 2007-09-28 10:30:45.000000000 +0200
68709 @@ -0,0 +1,39 @@
68710 +MACHINE=uc
68711 +SCRIPT_NAME=elf_xip
68712 +TEMPLATE_NAME=elf32
68713 +EXTRA_EM_FILE=avr32elf
68714 +OUTPUT_FORMAT="elf32-avr32"
68715 +ARCH=avr32
68716 +MAXPAGESIZE=4096
68717 +ENTRY=_start
68718 +EMBEDDED=yes
68719 +NO_SMALL_DATA=yes
68720 +NOP=0xd703d703
68721 +
68722 +TEXT_START_ADDR=0x80000000
68723 +DATA_SEGMENT_ALIGN=8
68724 +BSS_ALIGNMENT=8
68725 +
68726 +INITIAL_READONLY_SECTIONS=".reset : { *(.reset) } >FLASH AT>FLASH"
68727 +
68728 +MEMORY="MEMORY
68729 + {
68730 + FLASH (rxai!w) : ORIGIN = 0x80000000, LENGTH = 0x20000
68731 + INTRAM (wxa!ri) : ORIGIN = 0x00000000, LENGTH = 0x8000
68732 + USERPAGE : ORIGIN = 0x80800000, LENGTH = 0x200
68733 + FACTORYPAGE : ORIGIN = 0x80800200, LENGTH = 0x200
68734 + }"
68735 +RO_LMA_REGION="FLASH"
68736 +RO_VMA_REGION="FLASH"
68737 +RW_LMA_REGION="FLASH"
68738 +RW_VMA_REGION="INTRAM"
68739 +
68740 +STACK_SIZE=0x1000
68741 +STACK_ADDR="ORIGIN(INTRAM) + LENGTH(INTRAM) - ${STACK_SIZE}"
68742 +
68743 +DATA_SEGMENT_END="__heap_start__ = ALIGN(8);
68744 + . = ${STACK_ADDR};
68745 + __heap_end__ = .;"
68746 +
68747 +OTHER_SECTIONS=".userpage : { *(.userpage .userpage.*) } >USERPAGE AT>USERPAGE
68748 + .factorypage : { *(.factorypage .factorypage.*) } >FACTORYPAGE AT>FACTORYPAGE"
68749 diff -Nrup binutils-2.17/ld/emulparams/avr32elf_uc3b1256.sh binutils-2.17.atmel.1.3.0/ld/emulparams/avr32elf_uc3b1256.sh
68750 --- binutils-2.17/ld/emulparams/avr32elf_uc3b1256.sh 1970-01-01 01:00:00.000000000 +0100
68751 +++ binutils-2.17.atmel.1.3.0/ld/emulparams/avr32elf_uc3b1256.sh 2007-09-28 10:30:45.000000000 +0200
68752 @@ -0,0 +1,39 @@
68753 +MACHINE=uc
68754 +SCRIPT_NAME=elf_xip
68755 +TEMPLATE_NAME=elf32
68756 +EXTRA_EM_FILE=avr32elf
68757 +OUTPUT_FORMAT="elf32-avr32"
68758 +ARCH=avr32
68759 +MAXPAGESIZE=4096
68760 +ENTRY=_start
68761 +EMBEDDED=yes
68762 +NO_SMALL_DATA=yes
68763 +NOP=0xd703d703
68764 +
68765 +TEXT_START_ADDR=0x80000000
68766 +DATA_SEGMENT_ALIGN=8
68767 +BSS_ALIGNMENT=8
68768 +
68769 +INITIAL_READONLY_SECTIONS=".reset : { *(.reset) } >FLASH AT>FLASH"
68770 +
68771 +MEMORY="MEMORY
68772 + {
68773 + FLASH (rxai!w) : ORIGIN = 0x80000000, LENGTH = 0x40000
68774 + INTRAM (wxa!ri) : ORIGIN = 0x00000000, LENGTH = 0x8000
68775 + USERPAGE : ORIGIN = 0x80800000, LENGTH = 0x200
68776 + FACTORYPAGE : ORIGIN = 0x80800200, LENGTH = 0x200
68777 + }"
68778 +RO_LMA_REGION="FLASH"
68779 +RO_VMA_REGION="FLASH"
68780 +RW_LMA_REGION="FLASH"
68781 +RW_VMA_REGION="INTRAM"
68782 +
68783 +STACK_SIZE=0x1000
68784 +STACK_ADDR="ORIGIN(INTRAM) + LENGTH(INTRAM) - ${STACK_SIZE}"
68785 +
68786 +DATA_SEGMENT_END="__heap_start__ = ALIGN(8);
68787 + . = ${STACK_ADDR};
68788 + __heap_end__ = .;"
68789 +
68790 +OTHER_SECTIONS=".userpage : { *(.userpage .userpage.*) } >USERPAGE AT>USERPAGE
68791 + .factorypage : { *(.factorypage .factorypage.*) } >FACTORYPAGE AT>FACTORYPAGE"
68792 diff -Nrup binutils-2.17/ld/emulparams/avr32elf_uc3b164.sh binutils-2.17.atmel.1.3.0/ld/emulparams/avr32elf_uc3b164.sh
68793 --- binutils-2.17/ld/emulparams/avr32elf_uc3b164.sh 1970-01-01 01:00:00.000000000 +0100
68794 +++ binutils-2.17.atmel.1.3.0/ld/emulparams/avr32elf_uc3b164.sh 2007-09-28 10:30:45.000000000 +0200
68795 @@ -0,0 +1,40 @@
68796 +MACHINE=uc
68797 +SCRIPT_NAME=elf_xip
68798 +TEMPLATE_NAME=elf32
68799 +EXTRA_EM_FILE=avr32elf
68800 +OUTPUT_FORMAT="elf32-avr32"
68801 +ARCH=avr32
68802 +MAXPAGESIZE=4096
68803 +ENTRY=_start
68804 +EMBEDDED=yes
68805 +NO_SMALL_DATA=yes
68806 +NOP=0xd703d703
68807 +
68808 +TEXT_START_ADDR=0x80000000
68809 +DATA_SEGMENT_ALIGN=8
68810 +BSS_ALIGNMENT=8
68811 +
68812 +INITIAL_READONLY_SECTIONS=".reset : { *(.reset) } >FLASH AT>FLASH"
68813 +
68814 +MEMORY="MEMORY
68815 + {
68816 + FLASH (rxai!w) : ORIGIN = 0x80000000, LENGTH = 0x10000
68817 + INTRAM (wxa!ri) : ORIGIN = 0x00000000, LENGTH = 0x4000
68818 + USERPAGE : ORIGIN = 0x80800000, LENGTH = 0x200
68819 + FACTORYPAGE : ORIGIN = 0x80800200, LENGTH = 0x200
68820 + }"
68821 +RO_LMA_REGION="FLASH"
68822 +RO_VMA_REGION="FLASH"
68823 +RW_LMA_REGION="FLASH"
68824 +RW_VMA_REGION="INTRAM"
68825 +
68826 +STACK_SIZE=0x1000
68827 +STACK_ADDR="ORIGIN(INTRAM) + LENGTH(INTRAM) - ${STACK_SIZE}"
68828 +
68829 +DATA_SEGMENT_END="__heap_start__ = ALIGN(8);
68830 + . = ${STACK_ADDR};
68831 + __heap_end__ = .;"
68832 +
68833 +OTHER_SECTIONS=".userpage : { *(.userpage .userpage.*) } >USERPAGE AT>USERPAGE
68834 + .factorypage : { *(.factorypage .factorypage.*) } >FACTORYPAGE AT>FACTORYPAGE"
68835 +
68836 \ No newline at end of file
68837 diff -Nrup binutils-2.17/ld/emulparams/avr32linux.sh binutils-2.17.atmel.1.3.0/ld/emulparams/avr32linux.sh
68838 --- binutils-2.17/ld/emulparams/avr32linux.sh 1970-01-01 01:00:00.000000000 +0100
68839 +++ binutils-2.17.atmel.1.3.0/ld/emulparams/avr32linux.sh 2007-09-28 10:30:45.000000000 +0200
68840 @@ -0,0 +1,14 @@
68841 +ARCH=avr32
68842 +SCRIPT_NAME=elf
68843 +TEMPLATE_NAME=elf32
68844 +EXTRA_EM_FILE=avr32elf
68845 +OUTPUT_FORMAT="elf32-avr32"
68846 +GENERATE_SHLIB_SCRIPT=yes
68847 +MAXPAGESIZE=0x1000
68848 +TEXT_START_ADDR=0x00001000
68849 +NOP=0xd703d703
68850 +
68851 +# This appears to place the GOT before the data section, which is
68852 +# essential for uClinux. We don't use those .s* sections on AVR32
68853 +# anyway, so it shouldn't hurt for regular Linux either...
68854 +NO_SMALL_DATA=yes
68855 diff -Nrup binutils-2.17/ld/emultempl/avr32elf.em binutils-2.17.atmel.1.3.0/ld/emultempl/avr32elf.em
68856 --- binutils-2.17/ld/emultempl/avr32elf.em 1970-01-01 01:00:00.000000000 +0100
68857 +++ binutils-2.17.atmel.1.3.0/ld/emultempl/avr32elf.em 2007-09-28 10:30:44.000000000 +0200
68858 @@ -0,0 +1,72 @@
68859 +# This shell script emits a C file. -*- C -*-
68860 +# Copyright (C) 2007 Atmel Corporation
68861 +#
68862 +# This file is part of GLD, the Gnu Linker.
68863 +#
68864 +# This program is free software; you can redistribute it and/or modify
68865 +# it under the terms of the GNU General Public License as published by
68866 +# the Free Software Foundation; either version 2 of the License, or
68867 +# (at your option) any later version.
68868 +#
68869 +# This program is distributed in the hope that it will be useful,
68870 +# but WITHOUT ANY WARRANTY; without even the implied warranty of
68871 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
68872 +# GNU General Public License for more details.
68873 +#
68874 +# You should have received a copy of the GNU General Public License
68875 +# along with this program; if not, write to the Free Software
68876 +# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.
68877 +#
68878 +
68879 +# This file is sourced from elf32.em, and defines extra avr32-elf
68880 +# specific routines.
68881 +#
68882 +
68883 +cat >> e${EMULATION_NAME}.c <<EOF
68884 +
68885 +#include "libbfd.h"
68886 +#include "elf32-avr32.h"
68887 +
68888 +/* Whether to allow direct references (sub or mov) to SEC_DATA and
68889 + !SEC_CONTENTS sections when optimizing. Not enabled by default
68890 + since it might cause link errors. */
68891 +static int direct_data_refs = 0;
68892 +
68893 +static void avr32_elf_after_open (void)
68894 +{
68895 + bfd_elf32_avr32_set_options (&link_info, direct_data_refs);
68896 + gld${EMULATION_NAME}_after_open ();
68897 +}
68898 +
68899 +EOF
68900 +
68901 +# Define some shell vars to insert bits of code into the standard elf
68902 +# parse_args and list_options functions.
68903 +#
68904 +PARSE_AND_LIST_PROLOGUE='
68905 +#define OPTION_DIRECT_DATA 300
68906 +#define OPTION_NO_DIRECT_DATA 301
68907 +'
68908 +
68909 +PARSE_AND_LIST_LONGOPTS='
68910 + { "direct-data", no_argument, NULL, OPTION_DIRECT_DATA },
68911 + { "no-direct-data", no_argument, NULL, OPTION_NO_DIRECT_DATA },
68912 +'
68913 +
68914 +PARSE_AND_LIST_OPTIONS='
68915 + fprintf (file, _(" --direct-data\t\tAllow direct data references when optimizing\n"));
68916 + fprintf (file, _(" --no-direct-data\tDo not allow direct data references when optimizing\n"));
68917 +'
68918 +
68919 +PARSE_AND_LIST_ARGS_CASES='
68920 + case OPTION_DIRECT_DATA:
68921 + direct_data_refs = 1;
68922 + break;
68923 + case OPTION_NO_DIRECT_DATA:
68924 + direct_data_refs = 0;
68925 + break;
68926 +'
68927 +
68928 +# Replace some of the standard ELF functions with our own versions.
68929 +#
68930 +LDEMUL_AFTER_OPEN=avr32_elf_after_open
68931 diff -Nrup binutils-2.17/ld/ld.info binutils-2.17.atmel.1.3.0/ld/ld.info
68932 --- binutils-2.17/ld/ld.info 2006-06-23 20:19:51.000000000 +0200
68933 +++ binutils-2.17.atmel.1.3.0/ld/ld.info 2007-09-28 10:30:45.000000000 +0200
68934 @@ -1,5 +1,7 @@
68935 -This is .././ld/ld.info, produced by makeinfo version 4.8 from
68936 -.././ld/ld.texinfo.
68937 +This is
68938 +/home/hcegtvedt/svnwork/tools/T0243-GNU_Toolchain/50-Source/binutils/trunk/ld/ld.info,
68939 +produced by makeinfo version 4.8 from
68940 +/home/hcegtvedt/svnwork/tools/T0243-GNU_Toolchain/50-Source/binutils/trunk/ld/ld.texinfo.
68941
68942 START-INFO-DIR-ENTRY
68943 * Ld: (ld). The GNU linker.
68944 @@ -4192,6 +4194,8 @@ not listed.
68945
68946 * ARM:: `ld' and the ARM family
68947
68948 +* AVR32:: `ld' and AVR32 processors
68949 +
68950 * HPPA ELF32:: `ld' and HPPA 32-bit ELF
68951
68952 * MMIX:: `ld' and MMIX
68953 @@ -4285,7 +4289,7 @@ target subroutine is a leaf routine (tha
68954 not itself call any subroutines).
68955
68956 \1f
68957 -File: ld.info, Node: ARM, Next: HPPA ELF32, Prev: i960, Up: Machine Dependent
68958 ++File: ld.info, Node: ARM, Next: AVR32, Prev: i960, Up: Machine Dependent
68959
68960 4.3 `ld' and the ARM family
68961 ===========================
68962 @@ -4351,9 +4355,33 @@ entry. This should lead to such calls ex
68963 to specify it if you are using that target.
68964
68965 \1f
68966 -File: ld.info, Node: HPPA ELF32, Next: MMIX, Prev: ARM, Up: Machine Dependent
68967 +File: ld.info, Node: AVR32, Next: HPPA ELF32, Prev: ARM, Up: Machine Dependent
68968 +
68969 +4.4 `ld' and AVR32 processors
68970 +=============================
68971 +
68972 +`--direct-data'
68973 +
68974 +`--no-direct-data'
68975 + Taking the address of a symbol can often be done by using a direct
68976 + `mov' or pc-relative `sub' instruction, which is faster than using
68977 + a PC- or GOT-relative load, especially on the uC3 processors.
68978 + However, this does not always work when dealing with symbols in
68979 + the `.data' section so this optimization is disabled by default.
68980 +
68981 + Specifying `--direct-data' will enable this optimization. Note
68982 + that this may cause `relocation truncated to fit' errors for
68983 + certain large programs. If this happens, the optimization can be
68984 + turned off by specifying `--no-direct-data'.
68985 +
68986 + All known issues with direct data optimizations are detected at
68987 + link time, so if the linker doesn't complain, the result should
68988 + run just fine.
68989 +
68990 +\1f
68991 +File: ld.info, Node: HPPA ELF32, Next: MMIX, Prev: AVR32, Up: Machine Dependent
68992
68993 -4.4 `ld' and HPPA 32-bit ELF Support
68994 +4.5 `ld' and HPPA 32-bit ELF Support
68995 ====================================
68996
68997 When generating a shared library, `ld' will by default generate import
68998 @@ -4384,7 +4412,7 @@ large, it may not be possible for a bran
68999 \1f
69000 File: ld.info, Node: MMIX, Next: MSP430, Prev: HPPA ELF32, Up: Machine Dependent
69001
69002 -4.5 `ld' and MMIX
69003 +4.6 `ld' and MMIX
69004 =================
69005
69006 For MMIX, there is a choice of generating `ELF' object files or `mmo'
69007 @@ -4412,7 +4440,7 @@ section, are left out from an mmo file.
69008 \1f
69009 File: ld.info, Node: MSP430, Next: PowerPC ELF32, Prev: MMIX, Up: Machine Dependent
69010
69011 -4.6 `ld' and MSP430
69012 +4.7 `ld' and MSP430
69013 ===================
69014
69015 For the MSP430 it is possible to select the MPU architecture. The flag
69016 @@ -4446,7 +4474,7 @@ specific:
69017 \1f
69018 File: ld.info, Node: PowerPC ELF32, Next: PowerPC64 ELF64, Prev: MSP430, Up: Machine Dependent
69019
69020 -4.7 `ld' and PowerPC 32-bit ELF Support
69021 +4.8 `ld' and PowerPC 32-bit ELF Support
69022 =======================================
69023
69024 Branches on PowerPC processors are limited to a signed 26-bit
69025 @@ -4577,7 +4605,7 @@ File: ld.info, Node: PowerPC64 ELF64,
69026 \1f
69027 File: ld.info, Node: TI COFF, Next: WIN32, Prev: PowerPC64 ELF64, Up: Machine Dependent
69028
69029 -4.9 `ld''s Support for Various TI COFF Versions
69030 +4.10 `ld''s Support for Various TI COFF Versions
69031 ===============================================
69032
69033 The `--format' switch allows selection of one of the various TI COFF
69034 @@ -4589,7 +4617,7 @@ depends on the default specified by the
69035 \1f
69036 File: ld.info, Node: WIN32, Next: Xtensa, Prev: TI COFF, Up: Machine Dependent
69037
69038 -4.10 `ld' and WIN32 (cygwin/mingw)
69039 +4.11 `ld' and WIN32 (cygwin/mingw)
69040 ==================================
69041
69042 This section describes some of the win32 specific `ld' issues. See
69043 @@ -4986,7 +5014,7 @@ _weak externals_
69044 \1f
69045 File: ld.info, Node: Xtensa, Prev: WIN32, Up: Machine Dependent
69046
69047 -4.11 `ld' and Xtensa Processors
69048 +4.12 `ld' and Xtensa Processors
69049 ===============================
69050
69051 The default `ld' behavior for Xtensa processors is to interpret
69052 @@ -5954,6 +5982,7 @@ Index
69053 * --default-symver: Options. (line 849)
69054 * --defsym SYMBOL=EXP: Options. (line 739)
69055 * --demangle[=STYLE]: Options. (line 752)
69056 +* --direct-data: AVR32. (line 6)
69057 * --disable-auto-image-base: Options. (line 1495)
69058 * --disable-auto-import: Options. (line 1624)
69059 * --disable-new-dtags: Options. (line 1295)
69060 @@ -6016,6 +6045,7 @@ Index
69061 * --no-check-sections: Options. (line 701)
69062 * --no-define-common: Options. (line 723)
69063 * --no-demangle: Options. (line 752)
69064 +* --no-direct-data: AVR32. (line 6)
69065 * --no-dotsyms: PowerPC64 ELF64. (line 33)
69066 * --no-gc-sections: Options. (line 784)
69067 * --no-keep-memory: Options. (line 804)
69068 @@ -6200,6 +6230,7 @@ Index
69069 * AT(LMA): Output Section LMA. (line 6)
69070 * AT>LMA_REGION: Output Section LMA. (line 6)
69071 * automatic data imports: WIN32. (line 170)
69072 +* AVR32 options: AVR32. (line 6)
69073 * back end: BFD. (line 6)
69074 * BASE (MRI): MRI. (line 54)
69075 * BE8: ARM. (line 23)
69076 @@ -6611,81 +6642,161 @@ Index
69077
69078 \1f
69079 Tag Table:
69080 -Node: Top\7f347
69081 -Node: Overview\7f1109
69082 -Node: Invocation\7f2223
69083 -Node: Options\7f2631
69084 -Node: Environment\7f77286
69085 -Node: Scripts\7f79046
69086 -Node: Basic Script Concepts\7f80780
69087 -Node: Script Format\7f83487
69088 -Node: Simple Example\7f84350
69089 -Node: Simple Commands\7f87446
69090 -Node: Entry Point\7f87897
69091 -Node: File Commands\7f88656
69092 -Node: Format Commands\7f92522
69093 -Node: Miscellaneous Commands\7f94488
69094 -Node: Assignments\7f96718
69095 -Node: Simple Assignments\7f97209
69096 -Node: PROVIDE\7f98945
69097 -Node: PROVIDE_HIDDEN\7f100150
69098 -Node: Source Code Reference\7f100394
69099 -Node: SECTIONS\7f103974
69100 -Node: Output Section Description\7f105865
69101 -Node: Output Section Name\7f106918
69102 -Node: Output Section Address\7f107794
69103 -Node: Input Section\7f109443
69104 -Node: Input Section Basics\7f110244
69105 -Node: Input Section Wildcards\7f112596
69106 -Node: Input Section Common\7f117329
69107 -Node: Input Section Keep\7f118811
69108 -Node: Input Section Example\7f119301
69109 -Node: Output Section Data\7f120269
69110 -Node: Output Section Keywords\7f123046
69111 -Node: Output Section Discarding\7f126615
69112 -Node: Output Section Attributes\7f127571
69113 -Node: Output Section Type\7f128575
69114 -Node: Output Section LMA\7f129729
69115 -Node: Forced Output Alignment\7f132000
69116 -Node: Forced Input Alignment\7f132268
69117 -Node: Output Section Region\7f132653
69118 -Node: Output Section Phdr\7f133083
69119 -Node: Output Section Fill\7f133747
69120 -Node: Overlay Description\7f134889
69121 -Node: MEMORY\7f139137
69122 -Node: PHDRS\7f143337
69123 -Node: VERSION\7f148376
69124 -Node: Expressions\7f156167
69125 -Node: Constants\7f157045
69126 -Node: Symbols\7f157606
69127 -Node: Orphan Sections\7f158344
69128 -Node: Location Counter\7f159107
69129 -Node: Operators\7f163411
69130 -Node: Evaluation\7f164333
69131 -Node: Expression Section\7f165697
69132 -Node: Builtin Functions\7f167186
69133 -Node: Implicit Linker Scripts\7f174678
69134 -Node: Machine Dependent\7f175453
69135 -Node: H8/300\7f176314
69136 -Node: i960\7f177939
69137 -Node: ARM\7f179624
69138 -Node: HPPA ELF32\7f182540
69139 -Node: MMIX\7f184163
69140 -Node: MSP430\7f185380
69141 -Node: PowerPC ELF32\7f186428
69142 -Node: PowerPC64 ELF64\7f188719
69143 -Node: TI COFF\7f193133
69144 -Node: WIN32\7f193665
69145 -Node: Xtensa\7f211739
69146 -Node: BFD\7f214861
69147 -Node: BFD outline\7f216316
69148 -Node: BFD information loss\7f217602
69149 -Node: Canonical format\7f220119
69150 -Node: Reporting Bugs\7f224476
69151 -Node: Bug Criteria\7f225170
69152 -Node: Bug Reporting\7f225869
69153 -Node: MRI\7f232894
69154 -Node: GNU Free Documentation License\7f237537
69155 -Node: Index\7f257251
69156 +<<<<<<< .mine
69157 +Node: Top\7f487
69158 +Node: Overview\7f1249
69159 +Node: Invocation\7f2363
69160 +Node: Options\7f2771
69161 +Node: Environment\7f77426
69162 +Node: Scripts\7f79186
69163 +Node: Basic Script Concepts\7f80920
69164 +Node: Script Format\7f83627
69165 +Node: Simple Example\7f84490
69166 +Node: Simple Commands\7f87586
69167 +Node: Entry Point\7f88037
69168 +Node: File Commands\7f88796
69169 +Node: Format Commands\7f92662
69170 +Node: Miscellaneous Commands\7f94628
69171 +Node: Assignments\7f96858
69172 +Node: Simple Assignments\7f97349
69173 +Node: PROVIDE\7f99085
69174 +Node: PROVIDE_HIDDEN\7f100290
69175 +Node: Source Code Reference\7f100534
69176 +Node: SECTIONS\7f104114
69177 +Node: Output Section Description\7f106005
69178 +Node: Output Section Name\7f107058
69179 +Node: Output Section Address\7f107934
69180 +Node: Input Section\7f109583
69181 +Node: Input Section Basics\7f110384
69182 +Node: Input Section Wildcards\7f112736
69183 +Node: Input Section Common\7f117469
69184 +Node: Input Section Keep\7f118951
69185 +Node: Input Section Example\7f119441
69186 +Node: Output Section Data\7f120409
69187 +Node: Output Section Keywords\7f123186
69188 +Node: Output Section Discarding\7f126755
69189 +Node: Output Section Attributes\7f127711
69190 +Node: Output Section Type\7f128715
69191 +Node: Output Section LMA\7f129869
69192 +Node: Forced Output Alignment\7f132140
69193 +Node: Forced Input Alignment\7f132408
69194 +Node: Output Section Region\7f132793
69195 +Node: Output Section Phdr\7f133223
69196 +Node: Output Section Fill\7f133887
69197 +Node: Overlay Description\7f135029
69198 +Node: MEMORY\7f139277
69199 +Node: PHDRS\7f143477
69200 +Node: VERSION\7f148516
69201 +Node: Expressions\7f156307
69202 +Node: Constants\7f157185
69203 +Node: Symbols\7f157746
69204 +Node: Orphan Sections\7f158484
69205 +Node: Location Counter\7f159247
69206 +Node: Operators\7f163551
69207 +Node: Evaluation\7f164473
69208 +Node: Expression Section\7f165837
69209 +Node: Builtin Functions\7f167326
69210 +Node: Implicit Linker Scripts\7f174818
69211 +Node: Machine Dependent\7f175593
69212 +Node: H8/300\7f176454
69213 +Node: i960\7f178079
69214 +Node: ARM\7f179764
69215 +Node: HPPA ELF32\7f182680
69216 +Node: MMIX\7f184303
69217 +Node: MSP430\7f185520
69218 +Node: PowerPC ELF32\7f186568
69219 +Node: PowerPC64 ELF64\7f188859
69220 +Node: TI COFF\7f193273
69221 +Node: WIN32\7f193805
69222 +Node: Xtensa\7f211879
69223 +Node: BFD\7f215001
69224 +Node: BFD outline\7f216456
69225 +Node: BFD information loss\7f217742
69226 +Node: Canonical format\7f220259
69227 +Node: Reporting Bugs\7f224616
69228 +Node: Bug Criteria\7f225310
69229 +Node: Bug Reporting\7f226009
69230 +Node: MRI\7f233034
69231 +Node: GNU Free Documentation License\7f237677
69232 +Node: Index\7f257391
69233 +=======
69234 +Node: Top\7f331
69235 +Node: Overview\7f1093
69236 +Node: Invocation\7f2207
69237 +Node: Options\7f2615
69238 +Node: Environment\7f77270
69239 +Node: Scripts\7f79030
69240 +Node: Basic Script Concepts\7f80764
69241 +Node: Script Format\7f83471
69242 +Node: Simple Example\7f84334
69243 +Node: Simple Commands\7f87430
69244 +Node: Entry Point\7f87881
69245 +Node: File Commands\7f88640
69246 +Node: Format Commands\7f92506
69247 +Node: Miscellaneous Commands\7f94472
69248 +Node: Assignments\7f96702
69249 +Node: Simple Assignments\7f97193
69250 +Node: PROVIDE\7f98929
69251 +Node: PROVIDE_HIDDEN\7f100134
69252 +Node: Source Code Reference\7f100378
69253 +Node: SECTIONS\7f103958
69254 +Node: Output Section Description\7f105849
69255 +Node: Output Section Name\7f106902
69256 +Node: Output Section Address\7f107778
69257 +Node: Input Section\7f109427
69258 +Node: Input Section Basics\7f110228
69259 +Node: Input Section Wildcards\7f112580
69260 +Node: Input Section Common\7f117313
69261 +Node: Input Section Keep\7f118795
69262 +Node: Input Section Example\7f119285
69263 +Node: Output Section Data\7f120253
69264 +Node: Output Section Keywords\7f123030
69265 +Node: Output Section Discarding\7f126599
69266 +Node: Output Section Attributes\7f127555
69267 +Node: Output Section Type\7f128559
69268 +Node: Output Section LMA\7f129713
69269 +Node: Forced Output Alignment\7f131984
69270 +Node: Forced Input Alignment\7f132252
69271 +Node: Output Section Region\7f132637
69272 +Node: Output Section Phdr\7f133067
69273 +Node: Output Section Fill\7f133731
69274 +Node: Overlay Description\7f134873
69275 +Node: MEMORY\7f139121
69276 +Node: PHDRS\7f143321
69277 +Node: VERSION\7f148360
69278 +Node: Expressions\7f156151
69279 +Node: Constants\7f157029
69280 +Node: Symbols\7f157590
69281 +Node: Orphan Sections\7f158328
69282 +Node: Location Counter\7f159091
69283 +Node: Operators\7f163395
69284 +Node: Evaluation\7f164317
69285 +Node: Expression Section\7f165681
69286 +Node: Builtin Functions\7f167170
69287 +Node: Implicit Linker Scripts\7f174662
69288 +Node: Machine Dependent\7f175437
69289 +Node: H8/300\7f176357
69290 +Node: i960\7f177982
69291 +Node: ARM\7f179667
69292 +Node: AVR32\7f182578
69293 +Node: HPPA ELF32\7f183526
69294 +Node: MMIX\7f185151
69295 +Node: MSP430\7f186368
69296 +Node: PowerPC ELF32\7f187416
69297 +Node: PowerPC64 ELF64\7f189707
69298 +Node: TI COFF\7f194121
69299 +Node: WIN32\7f194655
69300 +Node: Xtensa\7f212729
69301 +Node: BFD\7f215851
69302 +Node: BFD outline\7f217306
69303 +Node: BFD information loss\7f218592
69304 +Node: Canonical format\7f221109
69305 +Node: Reporting Bugs\7f225466
69306 +Node: Bug Criteria\7f226160
69307 +Node: Bug Reporting\7f226859
69308 +Node: MRI\7f233884
69309 +Node: GNU Free Documentation License\7f238527
69310 +Node: Index\7f258241
69311 +>>>>>>> .r31496
69312 \1f
69313 End Tag Table
69314 diff -Nrup binutils-2.17/ld/ld.info.mine binutils-2.17.atmel.1.3.0/ld/ld.info.mine
69315 --- binutils-2.17/ld/ld.info.mine 1970-01-01 01:00:00.000000000 +0100
69316 +++ binutils-2.17.atmel.1.3.0/ld/ld.info.mine 2007-09-28 10:30:44.000000000 +0200
69317 @@ -0,0 +1,6693 @@
69318 +This is
69319 +/home/hcegtvedt/svnwork/tools/T0243-GNU_Toolchain/50-Source/binutils/trunk/ld/ld.info,
69320 +produced by makeinfo version 4.8 from
69321 +/home/hcegtvedt/svnwork/tools/T0243-GNU_Toolchain/50-Source/binutils/trunk/ld/ld.texinfo.
69322 +
69323 +START-INFO-DIR-ENTRY
69324 +* Ld: (ld). The GNU linker.
69325 +END-INFO-DIR-ENTRY
69326 +
69327 + This file documents the GNU linker LD version 2.17.
69328 +
69329 + Copyright (C) 1991, 92, 93, 94, 95, 96, 97, 98, 99, 2000, 2001,
69330 +2002, 2003, 2004 Free Software Foundation, Inc.
69331 +
69332 +\1f
69333 +File: ld.info, Node: Top, Next: Overview, Up: (dir)
69334 +
69335 +Using ld
69336 +********
69337 +
69338 +This file documents the GNU linker ld version 2.17.
69339 +
69340 + This document is distributed under the terms of the GNU Free
69341 +Documentation License. A copy of the license is included in the
69342 +section entitled "GNU Free Documentation License".
69343 +
69344 +* Menu:
69345 +
69346 +* Overview:: Overview
69347 +* Invocation:: Invocation
69348 +* Scripts:: Linker Scripts
69349 +
69350 +* Machine Dependent:: Machine Dependent Features
69351 +
69352 +* BFD:: BFD
69353 +
69354 +* Reporting Bugs:: Reporting Bugs
69355 +* MRI:: MRI Compatible Script Files
69356 +* GNU Free Documentation License:: GNU Free Documentation License
69357 +* Index:: Index
69358 +
69359 +\1f
69360 +File: ld.info, Node: Overview, Next: Invocation, Prev: Top, Up: Top
69361 +
69362 +1 Overview
69363 +**********
69364 +
69365 +`ld' combines a number of object and archive files, relocates their
69366 +data and ties up symbol references. Usually the last step in compiling
69367 +a program is to run `ld'.
69368 +
69369 + `ld' accepts Linker Command Language files written in a superset of
69370 +AT&T's Link Editor Command Language syntax, to provide explicit and
69371 +total control over the linking process.
69372 +
69373 + This version of `ld' uses the general purpose BFD libraries to
69374 +operate on object files. This allows `ld' to read, combine, and write
69375 +object files in many different formats--for example, COFF or `a.out'.
69376 +Different formats may be linked together to produce any available kind
69377 +of object file. *Note BFD::, for more information.
69378 +
69379 + Aside from its flexibility, the GNU linker is more helpful than other
69380 +linkers in providing diagnostic information. Many linkers abandon
69381 +execution immediately upon encountering an error; whenever possible,
69382 +`ld' continues executing, allowing you to identify other errors (or, in
69383 +some cases, to get an output file in spite of the error).
69384 +
69385 +\1f
69386 +File: ld.info, Node: Invocation, Next: Scripts, Prev: Overview, Up: Top
69387 +
69388 +2 Invocation
69389 +************
69390 +
69391 +The GNU linker `ld' is meant to cover a broad range of situations, and
69392 +to be as compatible as possible with other linkers. As a result, you
69393 +have many choices to control its behavior.
69394 +
69395 +* Menu:
69396 +
69397 +* Options:: Command Line Options
69398 +* Environment:: Environment Variables
69399 +
69400 +\1f
69401 +File: ld.info, Node: Options, Next: Environment, Up: Invocation
69402 +
69403 +2.1 Command Line Options
69404 +========================
69405 +
69406 + The linker supports a plethora of command-line options, but in actual
69407 +practice few of them are used in any particular context. For instance,
69408 +a frequent use of `ld' is to link standard Unix object files on a
69409 +standard, supported Unix system. On such a system, to link a file
69410 +`hello.o':
69411 +
69412 + ld -o OUTPUT /lib/crt0.o hello.o -lc
69413 +
69414 + This tells `ld' to produce a file called OUTPUT as the result of
69415 +linking the file `/lib/crt0.o' with `hello.o' and the library `libc.a',
69416 +which will come from the standard search directories. (See the
69417 +discussion of the `-l' option below.)
69418 +
69419 + Some of the command-line options to `ld' may be specified at any
69420 +point in the command line. However, options which refer to files, such
69421 +as `-l' or `-T', cause the file to be read at the point at which the
69422 +option appears in the command line, relative to the object files and
69423 +other file options. Repeating non-file options with a different
69424 +argument will either have no further effect, or override prior
69425 +occurrences (those further to the left on the command line) of that
69426 +option. Options which may be meaningfully specified more than once are
69427 +noted in the descriptions below.
69428 +
69429 + Non-option arguments are object files or archives which are to be
69430 +linked together. They may follow, precede, or be mixed in with
69431 +command-line options, except that an object file argument may not be
69432 +placed between an option and its argument.
69433 +
69434 + Usually the linker is invoked with at least one object file, but you
69435 +can specify other forms of binary input files using `-l', `-R', and the
69436 +script command language. If _no_ binary input files at all are
69437 +specified, the linker does not produce any output, and issues the
69438 +message `No input files'.
69439 +
69440 + If the linker cannot recognize the format of an object file, it will
69441 +assume that it is a linker script. A script specified in this way
69442 +augments the main linker script used for the link (either the default
69443 +linker script or the one specified by using `-T'). This feature
69444 +permits the linker to link against a file which appears to be an object
69445 +or an archive, but actually merely defines some symbol values, or uses
69446 +`INPUT' or `GROUP' to load other objects. Note that specifying a
69447 +script in this way merely augments the main linker script; use the `-T'
69448 +option to replace the default linker script entirely. *Note Scripts::.
69449 +
69450 + For options whose names are a single letter, option arguments must
69451 +either follow the option letter without intervening whitespace, or be
69452 +given as separate arguments immediately following the option that
69453 +requires them.
69454 +
69455 + For options whose names are multiple letters, either one dash or two
69456 +can precede the option name; for example, `-trace-symbol' and
69457 +`--trace-symbol' are equivalent. Note--there is one exception to this
69458 +rule. Multiple letter options that start with a lower case 'o' can
69459 +only be preceeded by two dashes. This is to reduce confusion with the
69460 +`-o' option. So for example `-omagic' sets the output file name to
69461 +`magic' whereas `--omagic' sets the NMAGIC flag on the output.
69462 +
69463 + Arguments to multiple-letter options must either be separated from
69464 +the option name by an equals sign, or be given as separate arguments
69465 +immediately following the option that requires them. For example,
69466 +`--trace-symbol foo' and `--trace-symbol=foo' are equivalent. Unique
69467 +abbreviations of the names of multiple-letter options are accepted.
69468 +
69469 + Note--if the linker is being invoked indirectly, via a compiler
69470 +driver (e.g. `gcc') then all the linker command line options should be
69471 +prefixed by `-Wl,' (or whatever is appropriate for the particular
69472 +compiler driver) like this:
69473 +
69474 + gcc -Wl,--startgroup foo.o bar.o -Wl,--endgroup
69475 +
69476 + This is important, because otherwise the compiler driver program may
69477 +silently drop the linker options, resulting in a bad link.
69478 +
69479 + Here is a table of the generic command line switches accepted by the
69480 +GNU linker:
69481 +
69482 +`@FILE'
69483 + Read command-line options from FILE. The options read are
69484 + inserted in place of the original @FILE option. If FILE does not
69485 + exist, or cannot be read, then the option will be treated
69486 + literally, and not removed.
69487 +
69488 + Options in FILE are separated by whitespace. A whitespace
69489 + character may be included in an option by surrounding the entire
69490 + option in either single or double quotes. Any character
69491 + (including a backslash) may be included by prefixing the character
69492 + to be included with a backslash. The FILE may itself contain
69493 + additional @FILE options; any such options will be processed
69494 + recursively.
69495 +
69496 +`-aKEYWORD'
69497 + This option is supported for HP/UX compatibility. The KEYWORD
69498 + argument must be one of the strings `archive', `shared', or
69499 + `default'. `-aarchive' is functionally equivalent to `-Bstatic',
69500 + and the other two keywords are functionally equivalent to
69501 + `-Bdynamic'. This option may be used any number of times.
69502 +
69503 +`-AARCHITECTURE'
69504 +`--architecture=ARCHITECTURE'
69505 + In the current release of `ld', this option is useful only for the
69506 + Intel 960 family of architectures. In that `ld' configuration, the
69507 + ARCHITECTURE argument identifies the particular architecture in
69508 + the 960 family, enabling some safeguards and modifying the
69509 + archive-library search path. *Note `ld' and the Intel 960 family:
69510 + i960, for details.
69511 +
69512 + Future releases of `ld' may support similar functionality for
69513 + other architecture families.
69514 +
69515 +`-b INPUT-FORMAT'
69516 +`--format=INPUT-FORMAT'
69517 + `ld' may be configured to support more than one kind of object
69518 + file. If your `ld' is configured this way, you can use the `-b'
69519 + option to specify the binary format for input object files that
69520 + follow this option on the command line. Even when `ld' is
69521 + configured to support alternative object formats, you don't
69522 + usually need to specify this, as `ld' should be configured to
69523 + expect as a default input format the most usual format on each
69524 + machine. INPUT-FORMAT is a text string, the name of a particular
69525 + format supported by the BFD libraries. (You can list the
69526 + available binary formats with `objdump -i'.) *Note BFD::.
69527 +
69528 + You may want to use this option if you are linking files with an
69529 + unusual binary format. You can also use `-b' to switch formats
69530 + explicitly (when linking object files of different formats), by
69531 + including `-b INPUT-FORMAT' before each group of object files in a
69532 + particular format.
69533 +
69534 + The default format is taken from the environment variable
69535 + `GNUTARGET'. *Note Environment::. You can also define the input
69536 + format from a script, using the command `TARGET'; see *Note Format
69537 + Commands::.
69538 +
69539 +`-c MRI-COMMANDFILE'
69540 +`--mri-script=MRI-COMMANDFILE'
69541 + For compatibility with linkers produced by MRI, `ld' accepts script
69542 + files written in an alternate, restricted command language,
69543 + described in *Note MRI Compatible Script Files: MRI. Introduce
69544 + MRI script files with the option `-c'; use the `-T' option to run
69545 + linker scripts written in the general-purpose `ld' scripting
69546 + language. If MRI-CMDFILE does not exist, `ld' looks for it in the
69547 + directories specified by any `-L' options.
69548 +
69549 +`-d'
69550 +`-dc'
69551 +`-dp'
69552 + These three options are equivalent; multiple forms are supported
69553 + for compatibility with other linkers. They assign space to common
69554 + symbols even if a relocatable output file is specified (with
69555 + `-r'). The script command `FORCE_COMMON_ALLOCATION' has the same
69556 + effect. *Note Miscellaneous Commands::.
69557 +
69558 +`-e ENTRY'
69559 +`--entry=ENTRY'
69560 + Use ENTRY as the explicit symbol for beginning execution of your
69561 + program, rather than the default entry point. If there is no
69562 + symbol named ENTRY, the linker will try to parse ENTRY as a number,
69563 + and use that as the entry address (the number will be interpreted
69564 + in base 10; you may use a leading `0x' for base 16, or a leading
69565 + `0' for base 8). *Note Entry Point::, for a discussion of defaults
69566 + and other ways of specifying the entry point.
69567 +
69568 +`--exclude-libs LIB,LIB,...'
69569 + Specifies a list of archive libraries from which symbols should
69570 + not be automatically exported. The library names may be delimited
69571 + by commas or colons. Specifying `--exclude-libs ALL' excludes
69572 + symbols in all archive libraries from automatic export. This
69573 + option is available only for the i386 PE targeted port of the
69574 + linker and for ELF targeted ports. For i386 PE, symbols
69575 + explicitly listed in a .def file are still exported, regardless of
69576 + this option. For ELF targeted ports, symbols affected by this
69577 + option will be treated as hidden.
69578 +
69579 +`-E'
69580 +`--export-dynamic'
69581 + When creating a dynamically linked executable, add all symbols to
69582 + the dynamic symbol table. The dynamic symbol table is the set of
69583 + symbols which are visible from dynamic objects at run time.
69584 +
69585 + If you do not use this option, the dynamic symbol table will
69586 + normally contain only those symbols which are referenced by some
69587 + dynamic object mentioned in the link.
69588 +
69589 + If you use `dlopen' to load a dynamic object which needs to refer
69590 + back to the symbols defined by the program, rather than some other
69591 + dynamic object, then you will probably need to use this option when
69592 + linking the program itself.
69593 +
69594 + You can also use the version script to control what symbols should
69595 + be added to the dynamic symbol table if the output format supports
69596 + it. See the description of `--version-script' in *Note VERSION::.
69597 +
69598 +`-EB'
69599 + Link big-endian objects. This affects the default output format.
69600 +
69601 +`-EL'
69602 + Link little-endian objects. This affects the default output
69603 + format.
69604 +
69605 +`-f'
69606 +`--auxiliary NAME'
69607 + When creating an ELF shared object, set the internal DT_AUXILIARY
69608 + field to the specified name. This tells the dynamic linker that
69609 + the symbol table of the shared object should be used as an
69610 + auxiliary filter on the symbol table of the shared object NAME.
69611 +
69612 + If you later link a program against this filter object, then, when
69613 + you run the program, the dynamic linker will see the DT_AUXILIARY
69614 + field. If the dynamic linker resolves any symbols from the filter
69615 + object, it will first check whether there is a definition in the
69616 + shared object NAME. If there is one, it will be used instead of
69617 + the definition in the filter object. The shared object NAME need
69618 + not exist. Thus the shared object NAME may be used to provide an
69619 + alternative implementation of certain functions, perhaps for
69620 + debugging or for machine specific performance.
69621 +
69622 + This option may be specified more than once. The DT_AUXILIARY
69623 + entries will be created in the order in which they appear on the
69624 + command line.
69625 +
69626 +`-F NAME'
69627 +`--filter NAME'
69628 + When creating an ELF shared object, set the internal DT_FILTER
69629 + field to the specified name. This tells the dynamic linker that
69630 + the symbol table of the shared object which is being created
69631 + should be used as a filter on the symbol table of the shared
69632 + object NAME.
69633 +
69634 + If you later link a program against this filter object, then, when
69635 + you run the program, the dynamic linker will see the DT_FILTER
69636 + field. The dynamic linker will resolve symbols according to the
69637 + symbol table of the filter object as usual, but it will actually
69638 + link to the definitions found in the shared object NAME. Thus the
69639 + filter object can be used to select a subset of the symbols
69640 + provided by the object NAME.
69641 +
69642 + Some older linkers used the `-F' option throughout a compilation
69643 + toolchain for specifying object-file format for both input and
69644 + output object files. The GNU linker uses other mechanisms for
69645 + this purpose: the `-b', `--format', `--oformat' options, the
69646 + `TARGET' command in linker scripts, and the `GNUTARGET'
69647 + environment variable. The GNU linker will ignore the `-F' option
69648 + when not creating an ELF shared object.
69649 +
69650 +`-fini NAME'
69651 + When creating an ELF executable or shared object, call NAME when
69652 + the executable or shared object is unloaded, by setting DT_FINI to
69653 + the address of the function. By default, the linker uses `_fini'
69654 + as the function to call.
69655 +
69656 +`-g'
69657 + Ignored. Provided for compatibility with other tools.
69658 +
69659 +`-GVALUE'
69660 +`--gpsize=VALUE'
69661 + Set the maximum size of objects to be optimized using the GP
69662 + register to SIZE. This is only meaningful for object file formats
69663 + such as MIPS ECOFF which supports putting large and small objects
69664 + into different sections. This is ignored for other object file
69665 + formats.
69666 +
69667 +`-hNAME'
69668 +`-soname=NAME'
69669 + When creating an ELF shared object, set the internal DT_SONAME
69670 + field to the specified name. When an executable is linked with a
69671 + shared object which has a DT_SONAME field, then when the
69672 + executable is run the dynamic linker will attempt to load the
69673 + shared object specified by the DT_SONAME field rather than the
69674 + using the file name given to the linker.
69675 +
69676 +`-i'
69677 + Perform an incremental link (same as option `-r').
69678 +
69679 +`-init NAME'
69680 + When creating an ELF executable or shared object, call NAME when
69681 + the executable or shared object is loaded, by setting DT_INIT to
69682 + the address of the function. By default, the linker uses `_init'
69683 + as the function to call.
69684 +
69685 +`-lARCHIVE'
69686 +`--library=ARCHIVE'
69687 + Add archive file ARCHIVE to the list of files to link. This
69688 + option may be used any number of times. `ld' will search its
69689 + path-list for occurrences of `libARCHIVE.a' for every ARCHIVE
69690 + specified.
69691 +
69692 + On systems which support shared libraries, `ld' may also search for
69693 + libraries with extensions other than `.a'. Specifically, on ELF
69694 + and SunOS systems, `ld' will search a directory for a library with
69695 + an extension of `.so' before searching for one with an extension of
69696 + `.a'. By convention, a `.so' extension indicates a shared library.
69697 +
69698 + The linker will search an archive only once, at the location where
69699 + it is specified on the command line. If the archive defines a
69700 + symbol which was undefined in some object which appeared before
69701 + the archive on the command line, the linker will include the
69702 + appropriate file(s) from the archive. However, an undefined
69703 + symbol in an object appearing later on the command line will not
69704 + cause the linker to search the archive again.
69705 +
69706 + See the `-(' option for a way to force the linker to search
69707 + archives multiple times.
69708 +
69709 + You may list the same archive multiple times on the command line.
69710 +
69711 + This type of archive searching is standard for Unix linkers.
69712 + However, if you are using `ld' on AIX, note that it is different
69713 + from the behaviour of the AIX linker.
69714 +
69715 +`-LSEARCHDIR'
69716 +`--library-path=SEARCHDIR'
69717 + Add path SEARCHDIR to the list of paths that `ld' will search for
69718 + archive libraries and `ld' control scripts. You may use this
69719 + option any number of times. The directories are searched in the
69720 + order in which they are specified on the command line.
69721 + Directories specified on the command line are searched before the
69722 + default directories. All `-L' options apply to all `-l' options,
69723 + regardless of the order in which the options appear.
69724 +
69725 + If SEARCHDIR begins with `=', then the `=' will be replaced by the
69726 + "sysroot prefix", a path specified when the linker is configured.
69727 +
69728 + The default set of paths searched (without being specified with
69729 + `-L') depends on which emulation mode `ld' is using, and in some
69730 + cases also on how it was configured. *Note Environment::.
69731 +
69732 + The paths can also be specified in a link script with the
69733 + `SEARCH_DIR' command. Directories specified this way are searched
69734 + at the point in which the linker script appears in the command
69735 + line.
69736 +
69737 +`-mEMULATION'
69738 + Emulate the EMULATION linker. You can list the available
69739 + emulations with the `--verbose' or `-V' options.
69740 +
69741 + If the `-m' option is not used, the emulation is taken from the
69742 + `LDEMULATION' environment variable, if that is defined.
69743 +
69744 + Otherwise, the default emulation depends upon how the linker was
69745 + configured.
69746 +
69747 +`-M'
69748 +`--print-map'
69749 + Print a link map to the standard output. A link map provides
69750 + information about the link, including the following:
69751 +
69752 + * Where object files are mapped into memory.
69753 +
69754 + * How common symbols are allocated.
69755 +
69756 + * All archive members included in the link, with a mention of
69757 + the symbol which caused the archive member to be brought in.
69758 +
69759 + * The values assigned to symbols.
69760 +
69761 + Note - symbols whose values are computed by an expression
69762 + which involves a reference to a previous value of the same
69763 + symbol may not have correct result displayed in the link map.
69764 + This is because the linker discards intermediate results and
69765 + only retains the final value of an expression. Under such
69766 + circumstances the linker will display the final value
69767 + enclosed by square brackets. Thus for example a linker
69768 + script containing:
69769 +
69770 + foo = 1
69771 + foo = foo * 4
69772 + foo = foo + 8
69773 +
69774 + will produce the following output in the link map if the `-M'
69775 + option is used:
69776 +
69777 + 0x00000001 foo = 0x1
69778 + [0x0000000c] foo = (foo * 0x4)
69779 + [0x0000000c] foo = (foo + 0x8)
69780 +
69781 + See *Note Expressions:: for more information about
69782 + expressions in linker scripts.
69783 +
69784 +`-n'
69785 +`--nmagic'
69786 + Turn off page alignment of sections, and mark the output as
69787 + `NMAGIC' if possible.
69788 +
69789 +`-N'
69790 +`--omagic'
69791 + Set the text and data sections to be readable and writable. Also,
69792 + do not page-align the data segment, and disable linking against
69793 + shared libraries. If the output format supports Unix style magic
69794 + numbers, mark the output as `OMAGIC'. Note: Although a writable
69795 + text section is allowed for PE-COFF targets, it does not conform
69796 + to the format specification published by Microsoft.
69797 +
69798 +`--no-omagic'
69799 + This option negates most of the effects of the `-N' option. It
69800 + sets the text section to be read-only, and forces the data segment
69801 + to be page-aligned. Note - this option does not enable linking
69802 + against shared libraries. Use `-Bdynamic' for this.
69803 +
69804 +`-o OUTPUT'
69805 +`--output=OUTPUT'
69806 + Use OUTPUT as the name for the program produced by `ld'; if this
69807 + option is not specified, the name `a.out' is used by default. The
69808 + script command `OUTPUT' can also specify the output file name.
69809 +
69810 +`-O LEVEL'
69811 + If LEVEL is a numeric values greater than zero `ld' optimizes the
69812 + output. This might take significantly longer and therefore
69813 + probably should only be enabled for the final binary.
69814 +
69815 +`-q'
69816 +`--emit-relocs'
69817 + Leave relocation sections and contents in fully linked
69818 + exececutables. Post link analysis and optimization tools may need
69819 + this information in order to perform correct modifications of
69820 + executables. This results in larger executables.
69821 +
69822 + This option is currently only supported on ELF platforms.
69823 +
69824 +`--force-dynamic'
69825 + Force the output file to have dynamic sections. This option is
69826 + specific to VxWorks targets.
69827 +
69828 +`-r'
69829 +`--relocatable'
69830 + Generate relocatable output--i.e., generate an output file that
69831 + can in turn serve as input to `ld'. This is often called "partial
69832 + linking". As a side effect, in environments that support standard
69833 + Unix magic numbers, this option also sets the output file's magic
69834 + number to `OMAGIC'. If this option is not specified, an absolute
69835 + file is produced. When linking C++ programs, this option _will
69836 + not_ resolve references to constructors; to do that, use `-Ur'.
69837 +
69838 + When an input file does not have the same format as the output
69839 + file, partial linking is only supported if that input file does
69840 + not contain any relocations. Different output formats can have
69841 + further restrictions; for example some `a.out'-based formats do
69842 + not support partial linking with input files in other formats at
69843 + all.
69844 +
69845 + This option does the same thing as `-i'.
69846 +
69847 +`-R FILENAME'
69848 +`--just-symbols=FILENAME'
69849 + Read symbol names and their addresses from FILENAME, but do not
69850 + relocate it or include it in the output. This allows your output
69851 + file to refer symbolically to absolute locations of memory defined
69852 + in other programs. You may use this option more than once.
69853 +
69854 + For compatibility with other ELF linkers, if the `-R' option is
69855 + followed by a directory name, rather than a file name, it is
69856 + treated as the `-rpath' option.
69857 +
69858 +`-s'
69859 +`--strip-all'
69860 + Omit all symbol information from the output file.
69861 +
69862 +`-S'
69863 +`--strip-debug'
69864 + Omit debugger symbol information (but not all symbols) from the
69865 + output file.
69866 +
69867 +`-t'
69868 +`--trace'
69869 + Print the names of the input files as `ld' processes them.
69870 +
69871 +`-T SCRIPTFILE'
69872 +`--script=SCRIPTFILE'
69873 + Use SCRIPTFILE as the linker script. This script replaces `ld''s
69874 + default linker script (rather than adding to it), so COMMANDFILE
69875 + must specify everything necessary to describe the output file.
69876 + *Note Scripts::. If SCRIPTFILE does not exist in the current
69877 + directory, `ld' looks for it in the directories specified by any
69878 + preceding `-L' options. Multiple `-T' options accumulate.
69879 +
69880 +`-u SYMBOL'
69881 +`--undefined=SYMBOL'
69882 + Force SYMBOL to be entered in the output file as an undefined
69883 + symbol. Doing this may, for example, trigger linking of additional
69884 + modules from standard libraries. `-u' may be repeated with
69885 + different option arguments to enter additional undefined symbols.
69886 + This option is equivalent to the `EXTERN' linker script command.
69887 +
69888 +`-Ur'
69889 + For anything other than C++ programs, this option is equivalent to
69890 + `-r': it generates relocatable output--i.e., an output file that
69891 + can in turn serve as input to `ld'. When linking C++ programs,
69892 + `-Ur' _does_ resolve references to constructors, unlike `-r'. It
69893 + does not work to use `-Ur' on files that were themselves linked
69894 + with `-Ur'; once the constructor table has been built, it cannot
69895 + be added to. Use `-Ur' only for the last partial link, and `-r'
69896 + for the others.
69897 +
69898 +`--unique[=SECTION]'
69899 + Creates a separate output section for every input section matching
69900 + SECTION, or if the optional wildcard SECTION argument is missing,
69901 + for every orphan input section. An orphan section is one not
69902 + specifically mentioned in a linker script. You may use this option
69903 + multiple times on the command line; It prevents the normal
69904 + merging of input sections with the same name, overriding output
69905 + section assignments in a linker script.
69906 +
69907 +`-v'
69908 +`--version'
69909 +`-V'
69910 + Display the version number for `ld'. The `-V' option also lists
69911 + the supported emulations.
69912 +
69913 +`-x'
69914 +`--discard-all'
69915 + Delete all local symbols.
69916 +
69917 +`-X'
69918 +`--discard-locals'
69919 + Delete all temporary local symbols. For most targets, this is all
69920 + local symbols whose names begin with `L'.
69921 +
69922 +`-y SYMBOL'
69923 +`--trace-symbol=SYMBOL'
69924 + Print the name of each linked file in which SYMBOL appears. This
69925 + option may be given any number of times. On many systems it is
69926 + necessary to prepend an underscore.
69927 +
69928 + This option is useful when you have an undefined symbol in your
69929 + link but don't know where the reference is coming from.
69930 +
69931 +`-Y PATH'
69932 + Add PATH to the default library search path. This option exists
69933 + for Solaris compatibility.
69934 +
69935 +`-z KEYWORD'
69936 + The recognized keywords are:
69937 + `combreloc'
69938 + Combines multiple reloc sections and sorts them to make
69939 + dynamic symbol lookup caching possible.
69940 +
69941 + `defs'
69942 + Disallows undefined symbols in object files. Undefined
69943 + symbols in shared libraries are still allowed.
69944 +
69945 + `execstack'
69946 + Marks the object as requiring executable stack.
69947 +
69948 + `initfirst'
69949 + This option is only meaningful when building a shared object.
69950 + It marks the object so that its runtime initialization will
69951 + occur before the runtime initialization of any other objects
69952 + brought into the process at the same time. Similarly the
69953 + runtime finalization of the object will occur after the
69954 + runtime finalization of any other objects.
69955 +
69956 + `interpose'
69957 + Marks the object that its symbol table interposes before all
69958 + symbols but the primary executable.
69959 +
69960 + `loadfltr'
69961 + Marks the object that its filters be processed immediately at
69962 + runtime.
69963 +
69964 + `muldefs'
69965 + Allows multiple definitions.
69966 +
69967 + `nocombreloc'
69968 + Disables multiple reloc sections combining.
69969 +
69970 + `nocopyreloc'
69971 + Disables production of copy relocs.
69972 +
69973 + `nodefaultlib'
69974 + Marks the object that the search for dependencies of this
69975 + object will ignore any default library search paths.
69976 +
69977 + `nodelete'
69978 + Marks the object shouldn't be unloaded at runtime.
69979 +
69980 + `nodlopen'
69981 + Marks the object not available to `dlopen'.
69982 +
69983 + `nodump'
69984 + Marks the object can not be dumped by `dldump'.
69985 +
69986 + `noexecstack'
69987 + Marks the object as not requiring executable stack.
69988 +
69989 + `norelro'
69990 + Don't create an ELF `PT_GNU_RELRO' segment header in the
69991 + object.
69992 +
69993 + `now'
69994 + When generating an executable or shared library, mark it to
69995 + tell the dynamic linker to resolve all symbols when the
69996 + program is started, or when the shared library is linked to
69997 + using dlopen, instead of deferring function call resolution
69998 + to the point when the function is first called.
69999 +
70000 + `origin'
70001 + Marks the object may contain $ORIGIN.
70002 +
70003 + `relro'
70004 + Create an ELF `PT_GNU_RELRO' segment header in the object.
70005 +
70006 +
70007 + Other keywords are ignored for Solaris compatibility.
70008 +
70009 +`-( ARCHIVES -)'
70010 +`--start-group ARCHIVES --end-group'
70011 + The ARCHIVES should be a list of archive files. They may be
70012 + either explicit file names, or `-l' options.
70013 +
70014 + The specified archives are searched repeatedly until no new
70015 + undefined references are created. Normally, an archive is
70016 + searched only once in the order that it is specified on the
70017 + command line. If a symbol in that archive is needed to resolve an
70018 + undefined symbol referred to by an object in an archive that
70019 + appears later on the command line, the linker would not be able to
70020 + resolve that reference. By grouping the archives, they all be
70021 + searched repeatedly until all possible references are resolved.
70022 +
70023 + Using this option has a significant performance cost. It is best
70024 + to use it only when there are unavoidable circular references
70025 + between two or more archives.
70026 +
70027 +`--accept-unknown-input-arch'
70028 +`--no-accept-unknown-input-arch'
70029 + Tells the linker to accept input files whose architecture cannot be
70030 + recognised. The assumption is that the user knows what they are
70031 + doing and deliberately wants to link in these unknown input files.
70032 + This was the default behaviour of the linker, before release
70033 + 2.14. The default behaviour from release 2.14 onwards is to
70034 + reject such input files, and so the `--accept-unknown-input-arch'
70035 + option has been added to restore the old behaviour.
70036 +
70037 +`--as-needed'
70038 +`--no-as-needed'
70039 + This option affects ELF DT_NEEDED tags for dynamic libraries
70040 + mentioned on the command line after the `--as-needed' option.
70041 + Normally, the linker will add a DT_NEEDED tag for each dynamic
70042 + library mentioned on the command line, regardless of whether the
70043 + library is actually needed. `--as-needed' causes DT_NEEDED tags
70044 + to only be emitted for libraries that satisfy some symbol
70045 + reference from regular objects which is undefined at the point
70046 + that the library was linked. `--no-as-needed' restores the
70047 + default behaviour.
70048 +
70049 +`--add-needed'
70050 +`--no-add-needed'
70051 + This option affects the treatment of dynamic libraries from ELF
70052 + DT_NEEDED tags in dynamic libraries mentioned on the command line
70053 + after the `--no-add-needed' option. Normally, the linker will add
70054 + a DT_NEEDED tag for each dynamic library from DT_NEEDED tags.
70055 + `--no-add-needed' causes DT_NEEDED tags will never be emitted for
70056 + those libraries from DT_NEEDED tags. `--add-needed' restores the
70057 + default behaviour.
70058 +
70059 +`-assert KEYWORD'
70060 + This option is ignored for SunOS compatibility.
70061 +
70062 +`-Bdynamic'
70063 +`-dy'
70064 +`-call_shared'
70065 + Link against dynamic libraries. This is only meaningful on
70066 + platforms for which shared libraries are supported. This option
70067 + is normally the default on such platforms. The different variants
70068 + of this option are for compatibility with various systems. You
70069 + may use this option multiple times on the command line: it affects
70070 + library searching for `-l' options which follow it.
70071 +
70072 +`-Bgroup'
70073 + Set the `DF_1_GROUP' flag in the `DT_FLAGS_1' entry in the dynamic
70074 + section. This causes the runtime linker to handle lookups in this
70075 + object and its dependencies to be performed only inside the group.
70076 + `--unresolved-symbols=report-all' is implied. This option is only
70077 + meaningful on ELF platforms which support shared libraries.
70078 +
70079 +`-Bstatic'
70080 +`-dn'
70081 +`-non_shared'
70082 +`-static'
70083 + Do not link against shared libraries. This is only meaningful on
70084 + platforms for which shared libraries are supported. The different
70085 + variants of this option are for compatibility with various
70086 + systems. You may use this option multiple times on the command
70087 + line: it affects library searching for `-l' options which follow
70088 + it. This option also implies `--unresolved-symbols=report-all'.
70089 + This option can be used with `-shared'. Doing so means that a
70090 + shared library is being created but that all of the library's
70091 + external references must be resolved by pulling in entries from
70092 + static libraries.
70093 +
70094 +`-Bsymbolic'
70095 + When creating a shared library, bind references to global symbols
70096 + to the definition within the shared library, if any. Normally, it
70097 + is possible for a program linked against a shared library to
70098 + override the definition within the shared library. This option is
70099 + only meaningful on ELF platforms which support shared libraries.
70100 +
70101 +`--check-sections'
70102 +`--no-check-sections'
70103 + Asks the linker _not_ to check section addresses after they have
70104 + been assigned to see if there are any overlaps. Normally the
70105 + linker will perform this check, and if it finds any overlaps it
70106 + will produce suitable error messages. The linker does know about,
70107 + and does make allowances for sections in overlays. The default
70108 + behaviour can be restored by using the command line switch
70109 + `--check-sections'.
70110 +
70111 +`--cref'
70112 + Output a cross reference table. If a linker map file is being
70113 + generated, the cross reference table is printed to the map file.
70114 + Otherwise, it is printed on the standard output.
70115 +
70116 + The format of the table is intentionally simple, so that it may be
70117 + easily processed by a script if necessary. The symbols are
70118 + printed out, sorted by name. For each symbol, a list of file
70119 + names is given. If the symbol is defined, the first file listed
70120 + is the location of the definition. The remaining files contain
70121 + references to the symbol.
70122 +
70123 +`--no-define-common'
70124 + This option inhibits the assignment of addresses to common symbols.
70125 + The script command `INHIBIT_COMMON_ALLOCATION' has the same effect.
70126 + *Note Miscellaneous Commands::.
70127 +
70128 + The `--no-define-common' option allows decoupling the decision to
70129 + assign addresses to Common symbols from the choice of the output
70130 + file type; otherwise a non-Relocatable output type forces
70131 + assigning addresses to Common symbols. Using `--no-define-common'
70132 + allows Common symbols that are referenced from a shared library to
70133 + be assigned addresses only in the main program. This eliminates
70134 + the unused duplicate space in the shared library, and also
70135 + prevents any possible confusion over resolving to the wrong
70136 + duplicate when there are many dynamic modules with specialized
70137 + search paths for runtime symbol resolution.
70138 +
70139 +`--defsym SYMBOL=EXPRESSION'
70140 + Create a global symbol in the output file, containing the absolute
70141 + address given by EXPRESSION. You may use this option as many
70142 + times as necessary to define multiple symbols in the command line.
70143 + A limited form of arithmetic is supported for the EXPRESSION in
70144 + this context: you may give a hexadecimal constant or the name of
70145 + an existing symbol, or use `+' and `-' to add or subtract
70146 + hexadecimal constants or symbols. If you need more elaborate
70147 + expressions, consider using the linker command language from a
70148 + script (*note Assignment: Symbol Definitions: Assignments.).
70149 + _Note:_ there should be no white space between SYMBOL, the equals
70150 + sign ("<=>"), and EXPRESSION.
70151 +
70152 +`--demangle[=STYLE]'
70153 +`--no-demangle'
70154 + These options control whether to demangle symbol names in error
70155 + messages and other output. When the linker is told to demangle,
70156 + it tries to present symbol names in a readable fashion: it strips
70157 + leading underscores if they are used by the object file format,
70158 + and converts C++ mangled symbol names into user readable names.
70159 + Different compilers have different mangling styles. The optional
70160 + demangling style argument can be used to choose an appropriate
70161 + demangling style for your compiler. The linker will demangle by
70162 + default unless the environment variable `COLLECT_NO_DEMANGLE' is
70163 + set. These options may be used to override the default.
70164 +
70165 +`--dynamic-linker FILE'
70166 + Set the name of the dynamic linker. This is only meaningful when
70167 + generating dynamically linked ELF executables. The default dynamic
70168 + linker is normally correct; don't use this unless you know what
70169 + you are doing.
70170 +
70171 +`--fatal-warnings'
70172 + Treat all warnings as errors.
70173 +
70174 +`--force-exe-suffix'
70175 + Make sure that an output file has a .exe suffix.
70176 +
70177 + If a successfully built fully linked output file does not have a
70178 + `.exe' or `.dll' suffix, this option forces the linker to copy the
70179 + output file to one of the same name with a `.exe' suffix. This
70180 + option is useful when using unmodified Unix makefiles on a
70181 + Microsoft Windows host, since some versions of Windows won't run
70182 + an image unless it ends in a `.exe' suffix.
70183 +
70184 +`--no-gc-sections'
70185 +`--gc-sections'
70186 + Enable garbage collection of unused input sections. It is ignored
70187 + on targets that do not support this option. This option is not
70188 + compatible with `-r'. The default behaviour (of not performing
70189 + this garbage collection) can be restored by specifying
70190 + `--no-gc-sections' on the command line.
70191 +
70192 +`--help'
70193 + Print a summary of the command-line options on the standard output
70194 + and exit.
70195 +
70196 +`--target-help'
70197 + Print a summary of all target specific options on the standard
70198 + output and exit.
70199 +
70200 +`-Map MAPFILE'
70201 + Print a link map to the file MAPFILE. See the description of the
70202 + `-M' option, above.
70203 +
70204 +`--no-keep-memory'
70205 + `ld' normally optimizes for speed over memory usage by caching the
70206 + symbol tables of input files in memory. This option tells `ld' to
70207 + instead optimize for memory usage, by rereading the symbol tables
70208 + as necessary. This may be required if `ld' runs out of memory
70209 + space while linking a large executable.
70210 +
70211 +`--no-undefined'
70212 +`-z defs'
70213 + Report unresolved symbol references from regular object files.
70214 + This is done even if the linker is creating a non-symbolic shared
70215 + library. The switch `--[no-]allow-shlib-undefined' controls the
70216 + behaviour for reporting unresolved references found in shared
70217 + libraries being linked in.
70218 +
70219 +`--allow-multiple-definition'
70220 +`-z muldefs'
70221 + Normally when a symbol is defined multiple times, the linker will
70222 + report a fatal error. These options allow multiple definitions and
70223 + the first definition will be used.
70224 +
70225 +`--allow-shlib-undefined'
70226 +`--no-allow-shlib-undefined'
70227 + Allows (the default) or disallows undefined symbols in shared
70228 + libraries. This switch is similar to `--no-undefined' except that
70229 + it determines the behaviour when the undefined symbols are in a
70230 + shared library rather than a regular object file. It does not
70231 + affect how undefined symbols in regular object files are handled.
70232 +
70233 + The reason that `--allow-shlib-undefined' is the default is that
70234 + the shared library being specified at link time may not be the
70235 + same as the one that is available at load time, so the symbols
70236 + might actually be resolvable at load time. Plus there are some
70237 + systems, (eg BeOS) where undefined symbols in shared libraries is
70238 + normal. (The kernel patches them at load time to select which
70239 + function is most appropriate for the current architecture. This
70240 + is used for example to dynamically select an appropriate memset
70241 + function). Apparently it is also normal for HPPA shared libraries
70242 + to have undefined symbols.
70243 +
70244 +`--no-undefined-version'
70245 + Normally when a symbol has an undefined version, the linker will
70246 + ignore it. This option disallows symbols with undefined version
70247 + and a fatal error will be issued instead.
70248 +
70249 +`--default-symver'
70250 + Create and use a default symbol version (the soname) for
70251 + unversioned exported symbols.
70252 +
70253 +`--default-imported-symver'
70254 + Create and use a default symbol version (the soname) for
70255 + unversioned imported symbols.
70256 +
70257 +`--no-warn-mismatch'
70258 + Normally `ld' will give an error if you try to link together input
70259 + files that are mismatched for some reason, perhaps because they
70260 + have been compiled for different processors or for different
70261 + endiannesses. This option tells `ld' that it should silently
70262 + permit such possible errors. This option should only be used with
70263 + care, in cases when you have taken some special action that
70264 + ensures that the linker errors are inappropriate.
70265 +
70266 +`--no-whole-archive'
70267 + Turn off the effect of the `--whole-archive' option for subsequent
70268 + archive files.
70269 +
70270 +`--noinhibit-exec'
70271 + Retain the executable output file whenever it is still usable.
70272 + Normally, the linker will not produce an output file if it
70273 + encounters errors during the link process; it exits without
70274 + writing an output file when it issues any error whatsoever.
70275 +
70276 +`-nostdlib'
70277 + Only search library directories explicitly specified on the
70278 + command line. Library directories specified in linker scripts
70279 + (including linker scripts specified on the command line) are
70280 + ignored.
70281 +
70282 +`--oformat OUTPUT-FORMAT'
70283 + `ld' may be configured to support more than one kind of object
70284 + file. If your `ld' is configured this way, you can use the
70285 + `--oformat' option to specify the binary format for the output
70286 + object file. Even when `ld' is configured to support alternative
70287 + object formats, you don't usually need to specify this, as `ld'
70288 + should be configured to produce as a default output format the most
70289 + usual format on each machine. OUTPUT-FORMAT is a text string, the
70290 + name of a particular format supported by the BFD libraries. (You
70291 + can list the available binary formats with `objdump -i'.) The
70292 + script command `OUTPUT_FORMAT' can also specify the output format,
70293 + but this option overrides it. *Note BFD::.
70294 +
70295 +`-pie'
70296 +`--pic-executable'
70297 + Create a position independent executable. This is currently only
70298 + supported on ELF platforms. Position independent executables are
70299 + similar to shared libraries in that they are relocated by the
70300 + dynamic linker to the virtual address the OS chooses for them
70301 + (which can vary between invocations). Like normal dynamically
70302 + linked executables they can be executed and symbols defined in the
70303 + executable cannot be overridden by shared libraries.
70304 +
70305 +`-qmagic'
70306 + This option is ignored for Linux compatibility.
70307 +
70308 +`-Qy'
70309 + This option is ignored for SVR4 compatibility.
70310 +
70311 +`--relax'
70312 + An option with machine dependent effects. This option is only
70313 + supported on a few targets. *Note `ld' and the H8/300: H8/300.
70314 + *Note `ld' and the Intel 960 family: i960. *Note `ld' and Xtensa
70315 + Processors: Xtensa. *Note `ld' and PowerPC 32-bit ELF Support:
70316 + PowerPC ELF32.
70317 +
70318 + On some platforms, the `--relax' option performs global
70319 + optimizations that become possible when the linker resolves
70320 + addressing in the program, such as relaxing address modes and
70321 + synthesizing new instructions in the output object file.
70322 +
70323 + On some platforms these link time global optimizations may make
70324 + symbolic debugging of the resulting executable impossible. This
70325 + is known to be the case for the Matsushita MN10200 and MN10300
70326 + family of processors.
70327 +
70328 + On platforms where this is not supported, `--relax' is accepted,
70329 + but ignored.
70330 +
70331 +`--retain-symbols-file FILENAME'
70332 + Retain _only_ the symbols listed in the file FILENAME, discarding
70333 + all others. FILENAME is simply a flat file, with one symbol name
70334 + per line. This option is especially useful in environments (such
70335 + as VxWorks) where a large global symbol table is accumulated
70336 + gradually, to conserve run-time memory.
70337 +
70338 + `--retain-symbols-file' does _not_ discard undefined symbols, or
70339 + symbols needed for relocations.
70340 +
70341 + You may only specify `--retain-symbols-file' once in the command
70342 + line. It overrides `-s' and `-S'.
70343 +
70344 +`-rpath DIR'
70345 + Add a directory to the runtime library search path. This is used
70346 + when linking an ELF executable with shared objects. All `-rpath'
70347 + arguments are concatenated and passed to the runtime linker, which
70348 + uses them to locate shared objects at runtime. The `-rpath'
70349 + option is also used when locating shared objects which are needed
70350 + by shared objects explicitly included in the link; see the
70351 + description of the `-rpath-link' option. If `-rpath' is not used
70352 + when linking an ELF executable, the contents of the environment
70353 + variable `LD_RUN_PATH' will be used if it is defined.
70354 +
70355 + The `-rpath' option may also be used on SunOS. By default, on
70356 + SunOS, the linker will form a runtime search patch out of all the
70357 + `-L' options it is given. If a `-rpath' option is used, the
70358 + runtime search path will be formed exclusively using the `-rpath'
70359 + options, ignoring the `-L' options. This can be useful when using
70360 + gcc, which adds many `-L' options which may be on NFS mounted
70361 + filesystems.
70362 +
70363 + For compatibility with other ELF linkers, if the `-R' option is
70364 + followed by a directory name, rather than a file name, it is
70365 + treated as the `-rpath' option.
70366 +
70367 +`-rpath-link DIR'
70368 + When using ELF or SunOS, one shared library may require another.
70369 + This happens when an `ld -shared' link includes a shared library
70370 + as one of the input files.
70371 +
70372 + When the linker encounters such a dependency when doing a
70373 + non-shared, non-relocatable link, it will automatically try to
70374 + locate the required shared library and include it in the link, if
70375 + it is not included explicitly. In such a case, the `-rpath-link'
70376 + option specifies the first set of directories to search. The
70377 + `-rpath-link' option may specify a sequence of directory names
70378 + either by specifying a list of names separated by colons, or by
70379 + appearing multiple times.
70380 +
70381 + This option should be used with caution as it overrides the search
70382 + path that may have been hard compiled into a shared library. In
70383 + such a case it is possible to use unintentionally a different
70384 + search path than the runtime linker would do.
70385 +
70386 + The linker uses the following search paths to locate required
70387 + shared libraries.
70388 + 1. Any directories specified by `-rpath-link' options.
70389 +
70390 + 2. Any directories specified by `-rpath' options. The difference
70391 + between `-rpath' and `-rpath-link' is that directories
70392 + specified by `-rpath' options are included in the executable
70393 + and used at runtime, whereas the `-rpath-link' option is only
70394 + effective at link time. It is for the native linker only.
70395 +
70396 + 3. On an ELF system, if the `-rpath' and `rpath-link' options
70397 + were not used, search the contents of the environment variable
70398 + `LD_RUN_PATH'. It is for the native linker only.
70399 +
70400 + 4. On SunOS, if the `-rpath' option was not used, search any
70401 + directories specified using `-L' options.
70402 +
70403 + 5. For a native linker, the contents of the environment variable
70404 + `LD_LIBRARY_PATH'.
70405 +
70406 + 6. For a native ELF linker, the directories in `DT_RUNPATH' or
70407 + `DT_RPATH' of a shared library are searched for shared
70408 + libraries needed by it. The `DT_RPATH' entries are ignored if
70409 + `DT_RUNPATH' entries exist.
70410 +
70411 + 7. The default directories, normally `/lib' and `/usr/lib'.
70412 +
70413 + 8. For a native linker on an ELF system, if the file
70414 + `/etc/ld.so.conf' exists, the list of directories found in
70415 + that file.
70416 +
70417 + If the required shared library is not found, the linker will issue
70418 + a warning and continue with the link.
70419 +
70420 +`-shared'
70421 +`-Bshareable'
70422 + Create a shared library. This is currently only supported on ELF,
70423 + XCOFF and SunOS platforms. On SunOS, the linker will
70424 + automatically create a shared library if the `-e' option is not
70425 + used and there are undefined symbols in the link.
70426 +
70427 +`--sort-common'
70428 + This option tells `ld' to sort the common symbols by size when it
70429 + places them in the appropriate output sections. First come all
70430 + the one byte symbols, then all the two byte, then all the four
70431 + byte, and then everything else. This is to prevent gaps between
70432 + symbols due to alignment constraints.
70433 +
70434 +`--sort-section name'
70435 + This option will apply `SORT_BY_NAME' to all wildcard section
70436 + patterns in the linker script.
70437 +
70438 +`--sort-section alignment'
70439 + This option will apply `SORT_BY_ALIGNMENT' to all wildcard section
70440 + patterns in the linker script.
70441 +
70442 +`--split-by-file [SIZE]'
70443 + Similar to `--split-by-reloc' but creates a new output section for
70444 + each input file when SIZE is reached. SIZE defaults to a size of
70445 + 1 if not given.
70446 +
70447 +`--split-by-reloc [COUNT]'
70448 + Tries to creates extra sections in the output file so that no
70449 + single output section in the file contains more than COUNT
70450 + relocations. This is useful when generating huge relocatable
70451 + files for downloading into certain real time kernels with the COFF
70452 + object file format; since COFF cannot represent more than 65535
70453 + relocations in a single section. Note that this will fail to work
70454 + with object file formats which do not support arbitrary sections.
70455 + The linker will not split up individual input sections for
70456 + redistribution, so if a single input section contains more than
70457 + COUNT relocations one output section will contain that many
70458 + relocations. COUNT defaults to a value of 32768.
70459 +
70460 +`--stats'
70461 + Compute and display statistics about the operation of the linker,
70462 + such as execution time and memory usage.
70463 +
70464 +`--sysroot=DIRECTORY'
70465 + Use DIRECTORY as the location of the sysroot, overriding the
70466 + configure-time default. This option is only supported by linkers
70467 + that were configured using `--with-sysroot'.
70468 +
70469 +`--traditional-format'
70470 + For some targets, the output of `ld' is different in some ways from
70471 + the output of some existing linker. This switch requests `ld' to
70472 + use the traditional format instead.
70473 +
70474 + For example, on SunOS, `ld' combines duplicate entries in the
70475 + symbol string table. This can reduce the size of an output file
70476 + with full debugging information by over 30 percent.
70477 + Unfortunately, the SunOS `dbx' program can not read the resulting
70478 + program (`gdb' has no trouble). The `--traditional-format' switch
70479 + tells `ld' to not combine duplicate entries.
70480 +
70481 +`--section-start SECTIONNAME=ORG'
70482 + Locate a section in the output file at the absolute address given
70483 + by ORG. You may use this option as many times as necessary to
70484 + locate multiple sections in the command line. ORG must be a
70485 + single hexadecimal integer; for compatibility with other linkers,
70486 + you may omit the leading `0x' usually associated with hexadecimal
70487 + values. _Note:_ there should be no white space between
70488 + SECTIONNAME, the equals sign ("<=>"), and ORG.
70489 +
70490 +`-Tbss ORG'
70491 +`-Tdata ORG'
70492 +`-Ttext ORG'
70493 + Same as -section-start, with `.bss', `.data' or `.text' as the
70494 + SECTIONNAME.
70495 +
70496 +`--unresolved-symbols=METHOD'
70497 + Determine how to handle unresolved symbols. There are four
70498 + possible values for `method':
70499 +
70500 + `ignore-all'
70501 + Do not report any unresolved symbols.
70502 +
70503 + `report-all'
70504 + Report all unresolved symbols. This is the default.
70505 +
70506 + `ignore-in-object-files'
70507 + Report unresolved symbols that are contained in shared
70508 + libraries, but ignore them if they come from regular object
70509 + files.
70510 +
70511 + `ignore-in-shared-libs'
70512 + Report unresolved symbols that come from regular object
70513 + files, but ignore them if they come from shared libraries.
70514 + This can be useful when creating a dynamic binary and it is
70515 + known that all the shared libraries that it should be
70516 + referencing are included on the linker's command line.
70517 +
70518 + The behaviour for shared libraries on their own can also be
70519 + controlled by the `--[no-]allow-shlib-undefined' option.
70520 +
70521 + Normally the linker will generate an error message for each
70522 + reported unresolved symbol but the option
70523 + `--warn-unresolved-symbols' can change this to a warning.
70524 +
70525 +`--dll-verbose'
70526 +`--verbose'
70527 + Display the version number for `ld' and list the linker emulations
70528 + supported. Display which input files can and cannot be opened.
70529 + Display the linker script being used by the linker.
70530 +
70531 +`--version-script=VERSION-SCRIPTFILE'
70532 + Specify the name of a version script to the linker. This is
70533 + typically used when creating shared libraries to specify
70534 + additional information about the version hierarchy for the library
70535 + being created. This option is only meaningful on ELF platforms
70536 + which support shared libraries. *Note VERSION::.
70537 +
70538 +`--warn-common'
70539 + Warn when a common symbol is combined with another common symbol
70540 + or with a symbol definition. Unix linkers allow this somewhat
70541 + sloppy practise, but linkers on some other operating systems do
70542 + not. This option allows you to find potential problems from
70543 + combining global symbols. Unfortunately, some C libraries use
70544 + this practise, so you may get some warnings about symbols in the
70545 + libraries as well as in your programs.
70546 +
70547 + There are three kinds of global symbols, illustrated here by C
70548 + examples:
70549 +
70550 + `int i = 1;'
70551 + A definition, which goes in the initialized data section of
70552 + the output file.
70553 +
70554 + `extern int i;'
70555 + An undefined reference, which does not allocate space. There
70556 + must be either a definition or a common symbol for the
70557 + variable somewhere.
70558 +
70559 + `int i;'
70560 + A common symbol. If there are only (one or more) common
70561 + symbols for a variable, it goes in the uninitialized data
70562 + area of the output file. The linker merges multiple common
70563 + symbols for the same variable into a single symbol. If they
70564 + are of different sizes, it picks the largest size. The
70565 + linker turns a common symbol into a declaration, if there is
70566 + a definition of the same variable.
70567 +
70568 + The `--warn-common' option can produce five kinds of warnings.
70569 + Each warning consists of a pair of lines: the first describes the
70570 + symbol just encountered, and the second describes the previous
70571 + symbol encountered with the same name. One or both of the two
70572 + symbols will be a common symbol.
70573 +
70574 + 1. Turning a common symbol into a reference, because there is
70575 + already a definition for the symbol.
70576 + FILE(SECTION): warning: common of `SYMBOL'
70577 + overridden by definition
70578 + FILE(SECTION): warning: defined here
70579 +
70580 + 2. Turning a common symbol into a reference, because a later
70581 + definition for the symbol is encountered. This is the same
70582 + as the previous case, except that the symbols are encountered
70583 + in a different order.
70584 + FILE(SECTION): warning: definition of `SYMBOL'
70585 + overriding common
70586 + FILE(SECTION): warning: common is here
70587 +
70588 + 3. Merging a common symbol with a previous same-sized common
70589 + symbol.
70590 + FILE(SECTION): warning: multiple common
70591 + of `SYMBOL'
70592 + FILE(SECTION): warning: previous common is here
70593 +
70594 + 4. Merging a common symbol with a previous larger common symbol.
70595 + FILE(SECTION): warning: common of `SYMBOL'
70596 + overridden by larger common
70597 + FILE(SECTION): warning: larger common is here
70598 +
70599 + 5. Merging a common symbol with a previous smaller common
70600 + symbol. This is the same as the previous case, except that
70601 + the symbols are encountered in a different order.
70602 + FILE(SECTION): warning: common of `SYMBOL'
70603 + overriding smaller common
70604 + FILE(SECTION): warning: smaller common is here
70605 +
70606 +`--warn-constructors'
70607 + Warn if any global constructors are used. This is only useful for
70608 + a few object file formats. For formats like COFF or ELF, the
70609 + linker can not detect the use of global constructors.
70610 +
70611 +`--warn-multiple-gp'
70612 + Warn if multiple global pointer values are required in the output
70613 + file. This is only meaningful for certain processors, such as the
70614 + Alpha. Specifically, some processors put large-valued constants
70615 + in a special section. A special register (the global pointer)
70616 + points into the middle of this section, so that constants can be
70617 + loaded efficiently via a base-register relative addressing mode.
70618 + Since the offset in base-register relative mode is fixed and
70619 + relatively small (e.g., 16 bits), this limits the maximum size of
70620 + the constant pool. Thus, in large programs, it is often necessary
70621 + to use multiple global pointer values in order to be able to
70622 + address all possible constants. This option causes a warning to
70623 + be issued whenever this case occurs.
70624 +
70625 +`--warn-once'
70626 + Only warn once for each undefined symbol, rather than once per
70627 + module which refers to it.
70628 +
70629 +`--warn-section-align'
70630 + Warn if the address of an output section is changed because of
70631 + alignment. Typically, the alignment will be set by an input
70632 + section. The address will only be changed if it not explicitly
70633 + specified; that is, if the `SECTIONS' command does not specify a
70634 + start address for the section (*note SECTIONS::).
70635 +
70636 +`--warn-shared-textrel'
70637 + Warn if the linker adds a DT_TEXTREL to a shared object.
70638 +
70639 +`--warn-unresolved-symbols'
70640 + If the linker is going to report an unresolved symbol (see the
70641 + option `--unresolved-symbols') it will normally generate an error.
70642 + This option makes it generate a warning instead.
70643 +
70644 +`--error-unresolved-symbols'
70645 + This restores the linker's default behaviour of generating errors
70646 + when it is reporting unresolved symbols.
70647 +
70648 +`--whole-archive'
70649 + For each archive mentioned on the command line after the
70650 + `--whole-archive' option, include every object file in the archive
70651 + in the link, rather than searching the archive for the required
70652 + object files. This is normally used to turn an archive file into
70653 + a shared library, forcing every object to be included in the
70654 + resulting shared library. This option may be used more than once.
70655 +
70656 + Two notes when using this option from gcc: First, gcc doesn't know
70657 + about this option, so you have to use `-Wl,-whole-archive'.
70658 + Second, don't forget to use `-Wl,-no-whole-archive' after your
70659 + list of archives, because gcc will add its own list of archives to
70660 + your link and you may not want this flag to affect those as well.
70661 +
70662 +`--wrap SYMBOL'
70663 + Use a wrapper function for SYMBOL. Any undefined reference to
70664 + SYMBOL will be resolved to `__wrap_SYMBOL'. Any undefined
70665 + reference to `__real_SYMBOL' will be resolved to SYMBOL.
70666 +
70667 + This can be used to provide a wrapper for a system function. The
70668 + wrapper function should be called `__wrap_SYMBOL'. If it wishes
70669 + to call the system function, it should call `__real_SYMBOL'.
70670 +
70671 + Here is a trivial example:
70672 +
70673 + void *
70674 + __wrap_malloc (size_t c)
70675 + {
70676 + printf ("malloc called with %zu\n", c);
70677 + return __real_malloc (c);
70678 + }
70679 +
70680 + If you link other code with this file using `--wrap malloc', then
70681 + all calls to `malloc' will call the function `__wrap_malloc'
70682 + instead. The call to `__real_malloc' in `__wrap_malloc' will call
70683 + the real `malloc' function.
70684 +
70685 + You may wish to provide a `__real_malloc' function as well, so that
70686 + links without the `--wrap' option will succeed. If you do this,
70687 + you should not put the definition of `__real_malloc' in the same
70688 + file as `__wrap_malloc'; if you do, the assembler may resolve the
70689 + call before the linker has a chance to wrap it to `malloc'.
70690 +
70691 +`--eh-frame-hdr'
70692 + Request creation of `.eh_frame_hdr' section and ELF
70693 + `PT_GNU_EH_FRAME' segment header.
70694 +
70695 +`--enable-new-dtags'
70696 +`--disable-new-dtags'
70697 + This linker can create the new dynamic tags in ELF. But the older
70698 + ELF systems may not understand them. If you specify
70699 + `--enable-new-dtags', the dynamic tags will be created as needed.
70700 + If you specify `--disable-new-dtags', no new dynamic tags will be
70701 + created. By default, the new dynamic tags are not created. Note
70702 + that those options are only available for ELF systems.
70703 +
70704 +`--hash-size=NUMBER'
70705 + Set the default size of the linker's hash tables to a prime number
70706 + close to NUMBER. Increasing this value can reduce the length of
70707 + time it takes the linker to perform its tasks, at the expense of
70708 + increasing the linker's memory requirements. Similarly reducing
70709 + this value can reduce the memory requirements at the expense of
70710 + speed.
70711 +
70712 +`--reduce-memory-overheads'
70713 + This option reduces memory requirements at ld runtime, at the
70714 + expense of linking speed. This was introduced to select the old
70715 + O(n^2) algorithm for link map file generation, rather than the new
70716 + O(n) algorithm which uses about 40% more memory for symbol storage.
70717 +
70718 + Another effect of the switch is to set the default hash table size
70719 + to 1021, which again saves memory at the cost of lengthening the
70720 + linker's run time. This is not done however if the `--hash-size'
70721 + switch has been used.
70722 +
70723 + The `--reduce-memory-overheads' switch may be also be used to
70724 + enable other tradeoffs in future versions of the linker.
70725 +
70726 +
70727 +2.1.1 Options Specific to i386 PE Targets
70728 +-----------------------------------------
70729 +
70730 +The i386 PE linker supports the `-shared' option, which causes the
70731 +output to be a dynamically linked library (DLL) instead of a normal
70732 +executable. You should name the output `*.dll' when you use this
70733 +option. In addition, the linker fully supports the standard `*.def'
70734 +files, which may be specified on the linker command line like an object
70735 +file (in fact, it should precede archives it exports symbols from, to
70736 +ensure that they get linked in, just like a normal object file).
70737 +
70738 + In addition to the options common to all targets, the i386 PE linker
70739 +support additional command line options that are specific to the i386
70740 +PE target. Options that take values may be separated from their values
70741 +by either a space or an equals sign.
70742 +
70743 +`--add-stdcall-alias'
70744 + If given, symbols with a stdcall suffix (@NN) will be exported
70745 + as-is and also with the suffix stripped. [This option is specific
70746 + to the i386 PE targeted port of the linker]
70747 +
70748 +`--base-file FILE'
70749 + Use FILE as the name of a file in which to save the base addresses
70750 + of all the relocations needed for generating DLLs with `dlltool'.
70751 + [This is an i386 PE specific option]
70752 +
70753 +`--dll'
70754 + Create a DLL instead of a regular executable. You may also use
70755 + `-shared' or specify a `LIBRARY' in a given `.def' file. [This
70756 + option is specific to the i386 PE targeted port of the linker]
70757 +
70758 +`--enable-stdcall-fixup'
70759 +`--disable-stdcall-fixup'
70760 + If the link finds a symbol that it cannot resolve, it will attempt
70761 + to do "fuzzy linking" by looking for another defined symbol that
70762 + differs only in the format of the symbol name (cdecl vs stdcall)
70763 + and will resolve that symbol by linking to the match. For
70764 + example, the undefined symbol `_foo' might be linked to the
70765 + function `_foo@12', or the undefined symbol `_bar@16' might be
70766 + linked to the function `_bar'. When the linker does this, it
70767 + prints a warning, since it normally should have failed to link,
70768 + but sometimes import libraries generated from third-party dlls may
70769 + need this feature to be usable. If you specify
70770 + `--enable-stdcall-fixup', this feature is fully enabled and
70771 + warnings are not printed. If you specify
70772 + `--disable-stdcall-fixup', this feature is disabled and such
70773 + mismatches are considered to be errors. [This option is specific
70774 + to the i386 PE targeted port of the linker]
70775 +
70776 +`--export-all-symbols'
70777 + If given, all global symbols in the objects used to build a DLL
70778 + will be exported by the DLL. Note that this is the default if
70779 + there otherwise wouldn't be any exported symbols. When symbols are
70780 + explicitly exported via DEF files or implicitly exported via
70781 + function attributes, the default is to not export anything else
70782 + unless this option is given. Note that the symbols `DllMain@12',
70783 + `DllEntryPoint@0', `DllMainCRTStartup@12', and `impure_ptr' will
70784 + not be automatically exported. Also, symbols imported from other
70785 + DLLs will not be re-exported, nor will symbols specifying the
70786 + DLL's internal layout such as those beginning with `_head_' or
70787 + ending with `_iname'. In addition, no symbols from `libgcc',
70788 + `libstd++', `libmingw32', or `crtX.o' will be exported. Symbols
70789 + whose names begin with `__rtti_' or `__builtin_' will not be
70790 + exported, to help with C++ DLLs. Finally, there is an extensive
70791 + list of cygwin-private symbols that are not exported (obviously,
70792 + this applies on when building DLLs for cygwin targets). These
70793 + cygwin-excludes are: `_cygwin_dll_entry@12',
70794 + `_cygwin_crt0_common@8', `_cygwin_noncygwin_dll_entry@12',
70795 + `_fmode', `_impure_ptr', `cygwin_attach_dll', `cygwin_premain0',
70796 + `cygwin_premain1', `cygwin_premain2', `cygwin_premain3', and
70797 + `environ'. [This option is specific to the i386 PE targeted port
70798 + of the linker]
70799 +
70800 +`--exclude-symbols SYMBOL,SYMBOL,...'
70801 + Specifies a list of symbols which should not be automatically
70802 + exported. The symbol names may be delimited by commas or colons.
70803 + [This option is specific to the i386 PE targeted port of the
70804 + linker]
70805 +
70806 +`--file-alignment'
70807 + Specify the file alignment. Sections in the file will always
70808 + begin at file offsets which are multiples of this number. This
70809 + defaults to 512. [This option is specific to the i386 PE targeted
70810 + port of the linker]
70811 +
70812 +`--heap RESERVE'
70813 +`--heap RESERVE,COMMIT'
70814 + Specify the amount of memory to reserve (and optionally commit) to
70815 + be used as heap for this program. The default is 1Mb reserved, 4K
70816 + committed. [This option is specific to the i386 PE targeted port
70817 + of the linker]
70818 +
70819 +`--image-base VALUE'
70820 + Use VALUE as the base address of your program or dll. This is the
70821 + lowest memory location that will be used when your program or dll
70822 + is loaded. To reduce the need to relocate and improve performance
70823 + of your dlls, each should have a unique base address and not
70824 + overlap any other dlls. The default is 0x400000 for executables,
70825 + and 0x10000000 for dlls. [This option is specific to the i386 PE
70826 + targeted port of the linker]
70827 +
70828 +`--kill-at'
70829 + If given, the stdcall suffixes (@NN) will be stripped from symbols
70830 + before they are exported. [This option is specific to the i386 PE
70831 + targeted port of the linker]
70832 +
70833 +`--large-address-aware'
70834 + If given, the appropriate bit in the "Charateristics" field of the
70835 + COFF header is set to indicate that this executable supports
70836 + virtual addresses greater than 2 gigabytes. This should be used
70837 + in conjuction with the /3GB or /USERVA=VALUE megabytes switch in
70838 + the "[operating systems]" section of the BOOT.INI. Otherwise,
70839 + this bit has no effect. [This option is specific to PE targeted
70840 + ports of the linker]
70841 +
70842 +`--major-image-version VALUE'
70843 + Sets the major number of the "image version". Defaults to 1.
70844 + [This option is specific to the i386 PE targeted port of the
70845 + linker]
70846 +
70847 +`--major-os-version VALUE'
70848 + Sets the major number of the "os version". Defaults to 4. [This
70849 + option is specific to the i386 PE targeted port of the linker]
70850 +
70851 +`--major-subsystem-version VALUE'
70852 + Sets the major number of the "subsystem version". Defaults to 4.
70853 + [This option is specific to the i386 PE targeted port of the
70854 + linker]
70855 +
70856 +`--minor-image-version VALUE'
70857 + Sets the minor number of the "image version". Defaults to 0.
70858 + [This option is specific to the i386 PE targeted port of the
70859 + linker]
70860 +
70861 +`--minor-os-version VALUE'
70862 + Sets the minor number of the "os version". Defaults to 0. [This
70863 + option is specific to the i386 PE targeted port of the linker]
70864 +
70865 +`--minor-subsystem-version VALUE'
70866 + Sets the minor number of the "subsystem version". Defaults to 0.
70867 + [This option is specific to the i386 PE targeted port of the
70868 + linker]
70869 +
70870 +`--output-def FILE'
70871 + The linker will create the file FILE which will contain a DEF file
70872 + corresponding to the DLL the linker is generating. This DEF file
70873 + (which should be called `*.def') may be used to create an import
70874 + library with `dlltool' or may be used as a reference to
70875 + automatically or implicitly exported symbols. [This option is
70876 + specific to the i386 PE targeted port of the linker]
70877 +
70878 +`--out-implib FILE'
70879 + The linker will create the file FILE which will contain an import
70880 + lib corresponding to the DLL the linker is generating. This import
70881 + lib (which should be called `*.dll.a' or `*.a' may be used to link
70882 + clients against the generated DLL; this behaviour makes it
70883 + possible to skip a separate `dlltool' import library creation step.
70884 + [This option is specific to the i386 PE targeted port of the
70885 + linker]
70886 +
70887 +`--enable-auto-image-base'
70888 + Automatically choose the image base for DLLs, unless one is
70889 + specified using the `--image-base' argument. By using a hash
70890 + generated from the dllname to create unique image bases for each
70891 + DLL, in-memory collisions and relocations which can delay program
70892 + execution are avoided. [This option is specific to the i386 PE
70893 + targeted port of the linker]
70894 +
70895 +`--disable-auto-image-base'
70896 + Do not automatically generate a unique image base. If there is no
70897 + user-specified image base (`--image-base') then use the platform
70898 + default. [This option is specific to the i386 PE targeted port of
70899 + the linker]
70900 +
70901 +`--dll-search-prefix STRING'
70902 + When linking dynamically to a dll without an import library,
70903 + search for `<string><basename>.dll' in preference to
70904 + `lib<basename>.dll'. This behaviour allows easy distinction
70905 + between DLLs built for the various "subplatforms": native, cygwin,
70906 + uwin, pw, etc. For instance, cygwin DLLs typically use
70907 + `--dll-search-prefix=cyg'. [This option is specific to the i386
70908 + PE targeted port of the linker]
70909 +
70910 +`--enable-auto-import'
70911 + Do sophisticated linking of `_symbol' to `__imp__symbol' for DATA
70912 + imports from DLLs, and create the necessary thunking symbols when
70913 + building the import libraries with those DATA exports. Note: Use
70914 + of the 'auto-import' extension will cause the text section of the
70915 + image file to be made writable. This does not conform to the
70916 + PE-COFF format specification published by Microsoft.
70917 +
70918 + Using 'auto-import' generally will 'just work' - but sometimes you
70919 + may see this message:
70920 +
70921 + "variable '<var>' can't be auto-imported. Please read the
70922 + documentation for ld's `--enable-auto-import' for details."
70923 +
70924 + This message occurs when some (sub)expression accesses an address
70925 + ultimately given by the sum of two constants (Win32 import tables
70926 + only allow one). Instances where this may occur include accesses
70927 + to member fields of struct variables imported from a DLL, as well
70928 + as using a constant index into an array variable imported from a
70929 + DLL. Any multiword variable (arrays, structs, long long, etc) may
70930 + trigger this error condition. However, regardless of the exact
70931 + data type of the offending exported variable, ld will always
70932 + detect it, issue the warning, and exit.
70933 +
70934 + There are several ways to address this difficulty, regardless of
70935 + the data type of the exported variable:
70936 +
70937 + One way is to use -enable-runtime-pseudo-reloc switch. This leaves
70938 + the task of adjusting references in your client code for runtime
70939 + environment, so this method works only when runtime environment
70940 + supports this feature.
70941 +
70942 + A second solution is to force one of the 'constants' to be a
70943 + variable - that is, unknown and un-optimizable at compile time.
70944 + For arrays, there are two possibilities: a) make the indexee (the
70945 + array's address) a variable, or b) make the 'constant' index a
70946 + variable. Thus:
70947 +
70948 + extern type extern_array[];
70949 + extern_array[1] -->
70950 + { volatile type *t=extern_array; t[1] }
70951 +
70952 + or
70953 +
70954 + extern type extern_array[];
70955 + extern_array[1] -->
70956 + { volatile int t=1; extern_array[t] }
70957 +
70958 + For structs (and most other multiword data types) the only option
70959 + is to make the struct itself (or the long long, or the ...)
70960 + variable:
70961 +
70962 + extern struct s extern_struct;
70963 + extern_struct.field -->
70964 + { volatile struct s *t=&extern_struct; t->field }
70965 +
70966 + or
70967 +
70968 + extern long long extern_ll;
70969 + extern_ll -->
70970 + { volatile long long * local_ll=&extern_ll; *local_ll }
70971 +
70972 + A third method of dealing with this difficulty is to abandon
70973 + 'auto-import' for the offending symbol and mark it with
70974 + `__declspec(dllimport)'. However, in practise that requires using
70975 + compile-time #defines to indicate whether you are building a DLL,
70976 + building client code that will link to the DLL, or merely
70977 + building/linking to a static library. In making the choice
70978 + between the various methods of resolving the 'direct address with
70979 + constant offset' problem, you should consider typical real-world
70980 + usage:
70981 +
70982 + Original:
70983 + --foo.h
70984 + extern int arr[];
70985 + --foo.c
70986 + #include "foo.h"
70987 + void main(int argc, char **argv){
70988 + printf("%d\n",arr[1]);
70989 + }
70990 +
70991 + Solution 1:
70992 + --foo.h
70993 + extern int arr[];
70994 + --foo.c
70995 + #include "foo.h"
70996 + void main(int argc, char **argv){
70997 + /* This workaround is for win32 and cygwin; do not "optimize" */
70998 + volatile int *parr = arr;
70999 + printf("%d\n",parr[1]);
71000 + }
71001 +
71002 + Solution 2:
71003 + --foo.h
71004 + /* Note: auto-export is assumed (no __declspec(dllexport)) */
71005 + #if (defined(_WIN32) || defined(__CYGWIN__)) && \
71006 + !(defined(FOO_BUILD_DLL) || defined(FOO_STATIC))
71007 + #define FOO_IMPORT __declspec(dllimport)
71008 + #else
71009 + #define FOO_IMPORT
71010 + #endif
71011 + extern FOO_IMPORT int arr[];
71012 + --foo.c
71013 + #include "foo.h"
71014 + void main(int argc, char **argv){
71015 + printf("%d\n",arr[1]);
71016 + }
71017 +
71018 + A fourth way to avoid this problem is to re-code your library to
71019 + use a functional interface rather than a data interface for the
71020 + offending variables (e.g. set_foo() and get_foo() accessor
71021 + functions). [This option is specific to the i386 PE targeted port
71022 + of the linker]
71023 +
71024 +`--disable-auto-import'
71025 + Do not attempt to do sophisticated linking of `_symbol' to
71026 + `__imp__symbol' for DATA imports from DLLs. [This option is
71027 + specific to the i386 PE targeted port of the linker]
71028 +
71029 +`--enable-runtime-pseudo-reloc'
71030 + If your code contains expressions described in -enable-auto-import
71031 + section, that is, DATA imports from DLL with non-zero offset, this
71032 + switch will create a vector of 'runtime pseudo relocations' which
71033 + can be used by runtime environment to adjust references to such
71034 + data in your client code. [This option is specific to the i386 PE
71035 + targeted port of the linker]
71036 +
71037 +`--disable-runtime-pseudo-reloc'
71038 + Do not create pseudo relocations for non-zero offset DATA imports
71039 + from DLLs. This is the default. [This option is specific to the
71040 + i386 PE targeted port of the linker]
71041 +
71042 +`--enable-extra-pe-debug'
71043 + Show additional debug info related to auto-import symbol thunking.
71044 + [This option is specific to the i386 PE targeted port of the
71045 + linker]
71046 +
71047 +`--section-alignment'
71048 + Sets the section alignment. Sections in memory will always begin
71049 + at addresses which are a multiple of this number. Defaults to
71050 + 0x1000. [This option is specific to the i386 PE targeted port of
71051 + the linker]
71052 +
71053 +`--stack RESERVE'
71054 +`--stack RESERVE,COMMIT'
71055 + Specify the amount of memory to reserve (and optionally commit) to
71056 + be used as stack for this program. The default is 2Mb reserved, 4K
71057 + committed. [This option is specific to the i386 PE targeted port
71058 + of the linker]
71059 +
71060 +`--subsystem WHICH'
71061 +`--subsystem WHICH:MAJOR'
71062 +`--subsystem WHICH:MAJOR.MINOR'
71063 + Specifies the subsystem under which your program will execute. The
71064 + legal values for WHICH are `native', `windows', `console',
71065 + `posix', and `xbox'. You may optionally set the subsystem version
71066 + also. Numeric values are also accepted for WHICH. [This option
71067 + is specific to the i386 PE targeted port of the linker]
71068 +
71069 +
71070 +\1f
71071 +File: ld.info, Node: Environment, Prev: Options, Up: Invocation
71072 +
71073 +2.2 Environment Variables
71074 +=========================
71075 +
71076 +You can change the behaviour of `ld' with the environment variables
71077 +`GNUTARGET', `LDEMULATION' and `COLLECT_NO_DEMANGLE'.
71078 +
71079 + `GNUTARGET' determines the input-file object format if you don't use
71080 +`-b' (or its synonym `--format'). Its value should be one of the BFD
71081 +names for an input format (*note BFD::). If there is no `GNUTARGET' in
71082 +the environment, `ld' uses the natural format of the target. If
71083 +`GNUTARGET' is set to `default' then BFD attempts to discover the input
71084 +format by examining binary input files; this method often succeeds, but
71085 +there are potential ambiguities, since there is no method of ensuring
71086 +that the magic number used to specify object-file formats is unique.
71087 +However, the configuration procedure for BFD on each system places the
71088 +conventional format for that system first in the search-list, so
71089 +ambiguities are resolved in favor of convention.
71090 +
71091 + `LDEMULATION' determines the default emulation if you don't use the
71092 +`-m' option. The emulation can affect various aspects of linker
71093 +behaviour, particularly the default linker script. You can list the
71094 +available emulations with the `--verbose' or `-V' options. If the `-m'
71095 +option is not used, and the `LDEMULATION' environment variable is not
71096 +defined, the default emulation depends upon how the linker was
71097 +configured.
71098 +
71099 + Normally, the linker will default to demangling symbols. However, if
71100 +`COLLECT_NO_DEMANGLE' is set in the environment, then it will default
71101 +to not demangling symbols. This environment variable is used in a
71102 +similar fashion by the `gcc' linker wrapper program. The default may
71103 +be overridden by the `--demangle' and `--no-demangle' options.
71104 +
71105 +\1f
71106 +File: ld.info, Node: Scripts, Next: Machine Dependent, Prev: Invocation, Up: Top
71107 +
71108 +3 Linker Scripts
71109 +****************
71110 +
71111 +Every link is controlled by a "linker script". This script is written
71112 +in the linker command language.
71113 +
71114 + The main purpose of the linker script is to describe how the
71115 +sections in the input files should be mapped into the output file, and
71116 +to control the memory layout of the output file. Most linker scripts
71117 +do nothing more than this. However, when necessary, the linker script
71118 +can also direct the linker to perform many other operations, using the
71119 +commands described below.
71120 +
71121 + The linker always uses a linker script. If you do not supply one
71122 +yourself, the linker will use a default script that is compiled into the
71123 +linker executable. You can use the `--verbose' command line option to
71124 +display the default linker script. Certain command line options, such
71125 +as `-r' or `-N', will affect the default linker script.
71126 +
71127 + You may supply your own linker script by using the `-T' command line
71128 +option. When you do this, your linker script will replace the default
71129 +linker script.
71130 +
71131 + You may also use linker scripts implicitly by naming them as input
71132 +files to the linker, as though they were files to be linked. *Note
71133 +Implicit Linker Scripts::.
71134 +
71135 +* Menu:
71136 +
71137 +* Basic Script Concepts:: Basic Linker Script Concepts
71138 +* Script Format:: Linker Script Format
71139 +* Simple Example:: Simple Linker Script Example
71140 +* Simple Commands:: Simple Linker Script Commands
71141 +* Assignments:: Assigning Values to Symbols
71142 +* SECTIONS:: SECTIONS Command
71143 +* MEMORY:: MEMORY Command
71144 +* PHDRS:: PHDRS Command
71145 +* VERSION:: VERSION Command
71146 +* Expressions:: Expressions in Linker Scripts
71147 +* Implicit Linker Scripts:: Implicit Linker Scripts
71148 +
71149 +\1f
71150 +File: ld.info, Node: Basic Script Concepts, Next: Script Format, Up: Scripts
71151 +
71152 +3.1 Basic Linker Script Concepts
71153 +================================
71154 +
71155 +We need to define some basic concepts and vocabulary in order to
71156 +describe the linker script language.
71157 +
71158 + The linker combines input files into a single output file. The
71159 +output file and each input file are in a special data format known as an
71160 +"object file format". Each file is called an "object file". The
71161 +output file is often called an "executable", but for our purposes we
71162 +will also call it an object file. Each object file has, among other
71163 +things, a list of "sections". We sometimes refer to a section in an
71164 +input file as an "input section"; similarly, a section in the output
71165 +file is an "output section".
71166 +
71167 + Each section in an object file has a name and a size. Most sections
71168 +also have an associated block of data, known as the "section contents".
71169 +A section may be marked as "loadable", which mean that the contents
71170 +should be loaded into memory when the output file is run. A section
71171 +with no contents may be "allocatable", which means that an area in
71172 +memory should be set aside, but nothing in particular should be loaded
71173 +there (in some cases this memory must be zeroed out). A section which
71174 +is neither loadable nor allocatable typically contains some sort of
71175 +debugging information.
71176 +
71177 + Every loadable or allocatable output section has two addresses. The
71178 +first is the "VMA", or virtual memory address. This is the address the
71179 +section will have when the output file is run. The second is the
71180 +"LMA", or load memory address. This is the address at which the
71181 +section will be loaded. In most cases the two addresses will be the
71182 +same. An example of when they might be different is when a data section
71183 +is loaded into ROM, and then copied into RAM when the program starts up
71184 +(this technique is often used to initialize global variables in a ROM
71185 +based system). In this case the ROM address would be the LMA, and the
71186 +RAM address would be the VMA.
71187 +
71188 + You can see the sections in an object file by using the `objdump'
71189 +program with the `-h' option.
71190 +
71191 + Every object file also has a list of "symbols", known as the "symbol
71192 +table". A symbol may be defined or undefined. Each symbol has a name,
71193 +and each defined symbol has an address, among other information. If
71194 +you compile a C or C++ program into an object file, you will get a
71195 +defined symbol for every defined function and global or static
71196 +variable. Every undefined function or global variable which is
71197 +referenced in the input file will become an undefined symbol.
71198 +
71199 + You can see the symbols in an object file by using the `nm' program,
71200 +or by using the `objdump' program with the `-t' option.
71201 +
71202 +\1f
71203 +File: ld.info, Node: Script Format, Next: Simple Example, Prev: Basic Script Concepts, Up: Scripts
71204 +
71205 +3.2 Linker Script Format
71206 +========================
71207 +
71208 +Linker scripts are text files.
71209 +
71210 + You write a linker script as a series of commands. Each command is
71211 +either a keyword, possibly followed by arguments, or an assignment to a
71212 +symbol. You may separate commands using semicolons. Whitespace is
71213 +generally ignored.
71214 +
71215 + Strings such as file or format names can normally be entered
71216 +directly. If the file name contains a character such as a comma which
71217 +would otherwise serve to separate file names, you may put the file name
71218 +in double quotes. There is no way to use a double quote character in a
71219 +file name.
71220 +
71221 + You may include comments in linker scripts just as in C, delimited by
71222 +`/*' and `*/'. As in C, comments are syntactically equivalent to
71223 +whitespace.
71224 +
71225 +\1f
71226 +File: ld.info, Node: Simple Example, Next: Simple Commands, Prev: Script Format, Up: Scripts
71227 +
71228 +3.3 Simple Linker Script Example
71229 +================================
71230 +
71231 +Many linker scripts are fairly simple.
71232 +
71233 + The simplest possible linker script has just one command:
71234 +`SECTIONS'. You use the `SECTIONS' command to describe the memory
71235 +layout of the output file.
71236 +
71237 + The `SECTIONS' command is a powerful command. Here we will describe
71238 +a simple use of it. Let's assume your program consists only of code,
71239 +initialized data, and uninitialized data. These will be in the
71240 +`.text', `.data', and `.bss' sections, respectively. Let's assume
71241 +further that these are the only sections which appear in your input
71242 +files.
71243 +
71244 + For this example, let's say that the code should be loaded at address
71245 +0x10000, and that the data should start at address 0x8000000. Here is a
71246 +linker script which will do that:
71247 + SECTIONS
71248 + {
71249 + . = 0x10000;
71250 + .text : { *(.text) }
71251 + . = 0x8000000;
71252 + .data : { *(.data) }
71253 + .bss : { *(.bss) }
71254 + }
71255 +
71256 + You write the `SECTIONS' command as the keyword `SECTIONS', followed
71257 +by a series of symbol assignments and output section descriptions
71258 +enclosed in curly braces.
71259 +
71260 + The first line inside the `SECTIONS' command of the above example
71261 +sets the value of the special symbol `.', which is the location
71262 +counter. If you do not specify the address of an output section in some
71263 +other way (other ways are described later), the address is set from the
71264 +current value of the location counter. The location counter is then
71265 +incremented by the size of the output section. At the start of the
71266 +`SECTIONS' command, the location counter has the value `0'.
71267 +
71268 + The second line defines an output section, `.text'. The colon is
71269 +required syntax which may be ignored for now. Within the curly braces
71270 +after the output section name, you list the names of the input sections
71271 +which should be placed into this output section. The `*' is a wildcard
71272 +which matches any file name. The expression `*(.text)' means all
71273 +`.text' input sections in all input files.
71274 +
71275 + Since the location counter is `0x10000' when the output section
71276 +`.text' is defined, the linker will set the address of the `.text'
71277 +section in the output file to be `0x10000'.
71278 +
71279 + The remaining lines define the `.data' and `.bss' sections in the
71280 +output file. The linker will place the `.data' output section at
71281 +address `0x8000000'. After the linker places the `.data' output
71282 +section, the value of the location counter will be `0x8000000' plus the
71283 +size of the `.data' output section. The effect is that the linker will
71284 +place the `.bss' output section immediately after the `.data' output
71285 +section in memory.
71286 +
71287 + The linker will ensure that each output section has the required
71288 +alignment, by increasing the location counter if necessary. In this
71289 +example, the specified addresses for the `.text' and `.data' sections
71290 +will probably satisfy any alignment constraints, but the linker may
71291 +have to create a small gap between the `.data' and `.bss' sections.
71292 +
71293 + That's it! That's a simple and complete linker script.
71294 +
71295 +\1f
71296 +File: ld.info, Node: Simple Commands, Next: Assignments, Prev: Simple Example, Up: Scripts
71297 +
71298 +3.4 Simple Linker Script Commands
71299 +=================================
71300 +
71301 +In this section we describe the simple linker script commands.
71302 +
71303 +* Menu:
71304 +
71305 +* Entry Point:: Setting the entry point
71306 +* File Commands:: Commands dealing with files
71307 +
71308 +* Format Commands:: Commands dealing with object file formats
71309 +
71310 +* Miscellaneous Commands:: Other linker script commands
71311 +
71312 +\1f
71313 +File: ld.info, Node: Entry Point, Next: File Commands, Up: Simple Commands
71314 +
71315 +3.4.1 Setting the Entry Point
71316 +-----------------------------
71317 +
71318 +The first instruction to execute in a program is called the "entry
71319 +point". You can use the `ENTRY' linker script command to set the entry
71320 +point. The argument is a symbol name:
71321 + ENTRY(SYMBOL)
71322 +
71323 + There are several ways to set the entry point. The linker will set
71324 +the entry point by trying each of the following methods in order, and
71325 +stopping when one of them succeeds:
71326 + * the `-e' ENTRY command-line option;
71327 +
71328 + * the `ENTRY(SYMBOL)' command in a linker script;
71329 +
71330 + * the value of the symbol `start', if defined;
71331 +
71332 + * the address of the first byte of the `.text' section, if present;
71333 +
71334 + * The address `0'.
71335 +
71336 +\1f
71337 +File: ld.info, Node: File Commands, Next: Format Commands, Prev: Entry Point, Up: Simple Commands
71338 +
71339 +3.4.2 Commands Dealing with Files
71340 +---------------------------------
71341 +
71342 +Several linker script commands deal with files.
71343 +
71344 +`INCLUDE FILENAME'
71345 + Include the linker script FILENAME at this point. The file will
71346 + be searched for in the current directory, and in any directory
71347 + specified with the `-L' option. You can nest calls to `INCLUDE'
71348 + up to 10 levels deep.
71349 +
71350 +`INPUT(FILE, FILE, ...)'
71351 +`INPUT(FILE FILE ...)'
71352 + The `INPUT' command directs the linker to include the named files
71353 + in the link, as though they were named on the command line.
71354 +
71355 + For example, if you always want to include `subr.o' any time you do
71356 + a link, but you can't be bothered to put it on every link command
71357 + line, then you can put `INPUT (subr.o)' in your linker script.
71358 +
71359 + In fact, if you like, you can list all of your input files in the
71360 + linker script, and then invoke the linker with nothing but a `-T'
71361 + option.
71362 +
71363 + In case a "sysroot prefix" is configured, and the filename starts
71364 + with the `/' character, and the script being processed was located
71365 + inside the "sysroot prefix", the filename will be looked for in
71366 + the "sysroot prefix". Otherwise, the linker will try to open the
71367 + file in the current directory. If it is not found, the linker
71368 + will search through the archive library search path. See the
71369 + description of `-L' in *Note Command Line Options: Options.
71370 +
71371 + If you use `INPUT (-lFILE)', `ld' will transform the name to
71372 + `libFILE.a', as with the command line argument `-l'.
71373 +
71374 + When you use the `INPUT' command in an implicit linker script, the
71375 + files will be included in the link at the point at which the linker
71376 + script file is included. This can affect archive searching.
71377 +
71378 +`GROUP(FILE, FILE, ...)'
71379 +`GROUP(FILE FILE ...)'
71380 + The `GROUP' command is like `INPUT', except that the named files
71381 + should all be archives, and they are searched repeatedly until no
71382 + new undefined references are created. See the description of `-('
71383 + in *Note Command Line Options: Options.
71384 +
71385 +`AS_NEEDED(FILE, FILE, ...)'
71386 +`AS_NEEDED(FILE FILE ...)'
71387 + This construct can appear only inside of the `INPUT' or `GROUP'
71388 + commands, among other filenames. The files listed will be handled
71389 + as if they appear directly in the `INPUT' or `GROUP' commands,
71390 + with the exception of ELF shared libraries, that will be added only
71391 + when they are actually needed. This construct essentially enables
71392 + `--as-needed' option for all the files listed inside of it and
71393 + restores previous `--as-needed' resp. `--no-as-needed' setting
71394 + afterwards.
71395 +
71396 +`OUTPUT(FILENAME)'
71397 + The `OUTPUT' command names the output file. Using
71398 + `OUTPUT(FILENAME)' in the linker script is exactly like using `-o
71399 + FILENAME' on the command line (*note Command Line Options:
71400 + Options.). If both are used, the command line option takes
71401 + precedence.
71402 +
71403 + You can use the `OUTPUT' command to define a default name for the
71404 + output file other than the usual default of `a.out'.
71405 +
71406 +`SEARCH_DIR(PATH)'
71407 + The `SEARCH_DIR' command adds PATH to the list of paths where `ld'
71408 + looks for archive libraries. Using `SEARCH_DIR(PATH)' is exactly
71409 + like using `-L PATH' on the command line (*note Command Line
71410 + Options: Options.). If both are used, then the linker will search
71411 + both paths. Paths specified using the command line option are
71412 + searched first.
71413 +
71414 +`STARTUP(FILENAME)'
71415 + The `STARTUP' command is just like the `INPUT' command, except
71416 + that FILENAME will become the first input file to be linked, as
71417 + though it were specified first on the command line. This may be
71418 + useful when using a system in which the entry point is always the
71419 + start of the first file.
71420 +
71421 +\1f
71422 +File: ld.info, Node: Format Commands, Next: Miscellaneous Commands, Prev: File Commands, Up: Simple Commands
71423 +
71424 +3.4.3 Commands Dealing with Object File Formats
71425 +-----------------------------------------------
71426 +
71427 +A couple of linker script commands deal with object file formats.
71428 +
71429 +`OUTPUT_FORMAT(BFDNAME)'
71430 +`OUTPUT_FORMAT(DEFAULT, BIG, LITTLE)'
71431 + The `OUTPUT_FORMAT' command names the BFD format to use for the
71432 + output file (*note BFD::). Using `OUTPUT_FORMAT(BFDNAME)' is
71433 + exactly like using `--oformat BFDNAME' on the command line (*note
71434 + Command Line Options: Options.). If both are used, the command
71435 + line option takes precedence.
71436 +
71437 + You can use `OUTPUT_FORMAT' with three arguments to use different
71438 + formats based on the `-EB' and `-EL' command line options. This
71439 + permits the linker script to set the output format based on the
71440 + desired endianness.
71441 +
71442 + If neither `-EB' nor `-EL' are used, then the output format will
71443 + be the first argument, DEFAULT. If `-EB' is used, the output
71444 + format will be the second argument, BIG. If `-EL' is used, the
71445 + output format will be the third argument, LITTLE.
71446 +
71447 + For example, the default linker script for the MIPS ELF target
71448 + uses this command:
71449 + OUTPUT_FORMAT(elf32-bigmips, elf32-bigmips, elf32-littlemips)
71450 + This says that the default format for the output file is
71451 + `elf32-bigmips', but if the user uses the `-EL' command line
71452 + option, the output file will be created in the `elf32-littlemips'
71453 + format.
71454 +
71455 +`TARGET(BFDNAME)'
71456 + The `TARGET' command names the BFD format to use when reading input
71457 + files. It affects subsequent `INPUT' and `GROUP' commands. This
71458 + command is like using `-b BFDNAME' on the command line (*note
71459 + Command Line Options: Options.). If the `TARGET' command is used
71460 + but `OUTPUT_FORMAT' is not, then the last `TARGET' command is also
71461 + used to set the format for the output file. *Note BFD::.
71462 +
71463 +\1f
71464 +File: ld.info, Node: Miscellaneous Commands, Prev: Format Commands, Up: Simple Commands
71465 +
71466 +3.4.4 Other Linker Script Commands
71467 +----------------------------------
71468 +
71469 +There are a few other linker scripts commands.
71470 +
71471 +`ASSERT(EXP, MESSAGE)'
71472 + Ensure that EXP is non-zero. If it is zero, then exit the linker
71473 + with an error code, and print MESSAGE.
71474 +
71475 +`EXTERN(SYMBOL SYMBOL ...)'
71476 + Force SYMBOL to be entered in the output file as an undefined
71477 + symbol. Doing this may, for example, trigger linking of additional
71478 + modules from standard libraries. You may list several SYMBOLs for
71479 + each `EXTERN', and you may use `EXTERN' multiple times. This
71480 + command has the same effect as the `-u' command-line option.
71481 +
71482 +`FORCE_COMMON_ALLOCATION'
71483 + This command has the same effect as the `-d' command-line option:
71484 + to make `ld' assign space to common symbols even if a relocatable
71485 + output file is specified (`-r').
71486 +
71487 +`INHIBIT_COMMON_ALLOCATION'
71488 + This command has the same effect as the `--no-define-common'
71489 + command-line option: to make `ld' omit the assignment of addresses
71490 + to common symbols even for a non-relocatable output file.
71491 +
71492 +`NOCROSSREFS(SECTION SECTION ...)'
71493 + This command may be used to tell `ld' to issue an error about any
71494 + references among certain output sections.
71495 +
71496 + In certain types of programs, particularly on embedded systems when
71497 + using overlays, when one section is loaded into memory, another
71498 + section will not be. Any direct references between the two
71499 + sections would be errors. For example, it would be an error if
71500 + code in one section called a function defined in the other section.
71501 +
71502 + The `NOCROSSREFS' command takes a list of output section names. If
71503 + `ld' detects any cross references between the sections, it reports
71504 + an error and returns a non-zero exit status. Note that the
71505 + `NOCROSSREFS' command uses output section names, not input section
71506 + names.
71507 +
71508 +`OUTPUT_ARCH(BFDARCH)'
71509 + Specify a particular output machine architecture. The argument is
71510 + one of the names used by the BFD library (*note BFD::). You can
71511 + see the architecture of an object file by using the `objdump'
71512 + program with the `-f' option.
71513 +
71514 +\1f
71515 +File: ld.info, Node: Assignments, Next: SECTIONS, Prev: Simple Commands, Up: Scripts
71516 +
71517 +3.5 Assigning Values to Symbols
71518 +===============================
71519 +
71520 +You may assign a value to a symbol in a linker script. This will define
71521 +the symbol and place it into the symbol table with a global scope.
71522 +
71523 +* Menu:
71524 +
71525 +* Simple Assignments:: Simple Assignments
71526 +* PROVIDE:: PROVIDE
71527 +* PROVIDE_HIDDEN:: PROVIDE_HIDDEN
71528 +* Source Code Reference:: How to use a linker script defined symbol in source code
71529 +
71530 +\1f
71531 +File: ld.info, Node: Simple Assignments, Next: PROVIDE, Up: Assignments
71532 +
71533 +3.5.1 Simple Assignments
71534 +------------------------
71535 +
71536 +You may assign to a symbol using any of the C assignment operators:
71537 +
71538 +`SYMBOL = EXPRESSION ;'
71539 +`SYMBOL += EXPRESSION ;'
71540 +`SYMBOL -= EXPRESSION ;'
71541 +`SYMBOL *= EXPRESSION ;'
71542 +`SYMBOL /= EXPRESSION ;'
71543 +`SYMBOL <<= EXPRESSION ;'
71544 +`SYMBOL >>= EXPRESSION ;'
71545 +`SYMBOL &= EXPRESSION ;'
71546 +`SYMBOL |= EXPRESSION ;'
71547 +
71548 + The first case will define SYMBOL to the value of EXPRESSION. In
71549 +the other cases, SYMBOL must already be defined, and the value will be
71550 +adjusted accordingly.
71551 +
71552 + The special symbol name `.' indicates the location counter. You may
71553 +only use this within a `SECTIONS' command. *Note Location Counter::.
71554 +
71555 + The semicolon after EXPRESSION is required.
71556 +
71557 + Expressions are defined below; see *Note Expressions::.
71558 +
71559 + You may write symbol assignments as commands in their own right, or
71560 +as statements within a `SECTIONS' command, or as part of an output
71561 +section description in a `SECTIONS' command.
71562 +
71563 + The section of the symbol will be set from the section of the
71564 +expression; for more information, see *Note Expression Section::.
71565 +
71566 + Here is an example showing the three different places that symbol
71567 +assignments may be used:
71568 +
71569 + floating_point = 0;
71570 + SECTIONS
71571 + {
71572 + .text :
71573 + {
71574 + *(.text)
71575 + _etext = .;
71576 + }
71577 + _bdata = (. + 3) & ~ 3;
71578 + .data : { *(.data) }
71579 + }
71580 + In this example, the symbol `floating_point' will be defined as
71581 +zero. The symbol `_etext' will be defined as the address following the
71582 +last `.text' input section. The symbol `_bdata' will be defined as the
71583 +address following the `.text' output section aligned upward to a 4 byte
71584 +boundary.
71585 +
71586 +\1f
71587 +File: ld.info, Node: PROVIDE, Next: PROVIDE_HIDDEN, Prev: Simple Assignments, Up: Assignments
71588 +
71589 +3.5.2 PROVIDE
71590 +-------------
71591 +
71592 +In some cases, it is desirable for a linker script to define a symbol
71593 +only if it is referenced and is not defined by any object included in
71594 +the link. For example, traditional linkers defined the symbol `etext'.
71595 +However, ANSI C requires that the user be able to use `etext' as a
71596 +function name without encountering an error. The `PROVIDE' keyword may
71597 +be used to define a symbol, such as `etext', only if it is referenced
71598 +but not defined. The syntax is `PROVIDE(SYMBOL = EXPRESSION)'.
71599 +
71600 + Here is an example of using `PROVIDE' to define `etext':
71601 + SECTIONS
71602 + {
71603 + .text :
71604 + {
71605 + *(.text)
71606 + _etext = .;
71607 + PROVIDE(etext = .);
71608 + }
71609 + }
71610 +
71611 + In this example, if the program defines `_etext' (with a leading
71612 +underscore), the linker will give a multiple definition error. If, on
71613 +the other hand, the program defines `etext' (with no leading
71614 +underscore), the linker will silently use the definition in the program.
71615 +If the program references `etext' but does not define it, the linker
71616 +will use the definition in the linker script.
71617 +
71618 +\1f
71619 +File: ld.info, Node: PROVIDE_HIDDEN, Next: Source Code Reference, Prev: PROVIDE, Up: Assignments
71620 +
71621 +3.5.3 PROVIDE_HIDDEN
71622 +--------------------
71623 +
71624 +Similar to `PROVIDE'. For ELF targeted ports, the symbol will be
71625 +hidden and won't be exported.
71626 +
71627 +\1f
71628 +File: ld.info, Node: Source Code Reference, Prev: PROVIDE_HIDDEN, Up: Assignments
71629 +
71630 +3.5.4 Source Code Reference
71631 +---------------------------
71632 +
71633 +Accessing a linker script defined variable from source code is not
71634 +intuitive. In particular a linker script symbol is not equivalent to a
71635 +variable declaration in a high level language, it is instead a symbol
71636 +that does not have a value.
71637 +
71638 + Before going further, it is important to note that compilers often
71639 +transform names in the source code into different names when they are
71640 +stored in the symbol table. For example, Fortran compilers commonly
71641 +prepend or append an underscore, and C++ performs extensive `name
71642 +mangling'. Therefore there might be a discrepancy between the name of
71643 +a variable as it is used in source code and the name of the same
71644 +variable as it is defined in a linker script. For example in C a
71645 +linker script variable might be referred to as:
71646 +
71647 + extern int foo;
71648 +
71649 + But in the linker script it might be defined as:
71650 +
71651 + _foo = 1000;
71652 +
71653 + In the remaining examples however it is assumed that no name
71654 +transformation has taken place.
71655 +
71656 + When a symbol is declared in a high level language such as C, two
71657 +things happen. The first is that the compiler reserves enough space in
71658 +the program's memory to hold the _value_ of the symbol. The second is
71659 +that the compiler creates an entry in the program's symbol table which
71660 +holds the symbol's _address_. ie the symbol table contains the address
71661 +of the block of memory holding the symbol's value. So for example the
71662 +following C declaration, at file scope:
71663 +
71664 + int foo = 1000;
71665 +
71666 + creates a entry called `foo' in the symbol table. This entry holds
71667 +the address of an `int' sized block of memory where the number 1000 is
71668 +initially stored.
71669 +
71670 + When a program references a symbol the compiler generates code that
71671 +first accesses the symbol table to find the address of the symbol's
71672 +memory block and then code to read the value from that memory block.
71673 +So:
71674 +
71675 + foo = 1;
71676 +
71677 + looks up the symbol `foo' in the symbol table, gets the address
71678 +associated with this symbol and then writes the value 1 into that
71679 +address. Whereas:
71680 +
71681 + int * a = & foo;
71682 +
71683 + looks up the symbol `foo' in the symbol table, gets it address and
71684 +then copies this address into the block of memory associated with the
71685 +variable `a'.
71686 +
71687 + Linker scripts symbol declarations, by contrast, create an entry in
71688 +the symbol table but do not assign any memory to them. Thus they are
71689 +an address without a value. So for example the linker script
71690 +definition:
71691 +
71692 + foo = 1000;
71693 +
71694 + creates an entry in the symbol table called `foo' which holds the
71695 +address of memory location 1000, but nothing special is stored at
71696 +address 1000. This means that you cannot access the _value_ of a
71697 +linker script defined symbol - it has no value - all you can do is
71698 +access the _address_ of a linker script defined symbol.
71699 +
71700 + Hence when you are using a linker script defined symbol in source
71701 +code you should always take the address of the symbol, and never
71702 +attempt to use its value. For example suppose you want to copy the
71703 +contents of a section of memory called .ROM into a section called
71704 +.FLASH and the linker script contains these declarations:
71705 +
71706 + start_of_ROM = .ROM;
71707 + end_of_ROM = .ROM + sizeof (.ROM) - 1;
71708 + start_of_FLASH = .FLASH;
71709 +
71710 + Then the C source code to perform the copy would be:
71711 +
71712 + extern char start_of_ROM, end_of_ROM, start_of_FLASH;
71713 +
71714 + memcpy (& start_of_FLASH, & start_of_ROM, & end_of_ROM - & start_of_ROM);
71715 +
71716 + Note the use of the `&' operators. These are correct.
71717 +
71718 +\1f
71719 +File: ld.info, Node: SECTIONS, Next: MEMORY, Prev: Assignments, Up: Scripts
71720 +
71721 +3.6 SECTIONS Command
71722 +====================
71723 +
71724 +The `SECTIONS' command tells the linker how to map input sections into
71725 +output sections, and how to place the output sections in memory.
71726 +
71727 + The format of the `SECTIONS' command is:
71728 + SECTIONS
71729 + {
71730 + SECTIONS-COMMAND
71731 + SECTIONS-COMMAND
71732 + ...
71733 + }
71734 +
71735 + Each SECTIONS-COMMAND may of be one of the following:
71736 +
71737 + * an `ENTRY' command (*note Entry command: Entry Point.)
71738 +
71739 + * a symbol assignment (*note Assignments::)
71740 +
71741 + * an output section description
71742 +
71743 + * an overlay description
71744 +
71745 + The `ENTRY' command and symbol assignments are permitted inside the
71746 +`SECTIONS' command for convenience in using the location counter in
71747 +those commands. This can also make the linker script easier to
71748 +understand because you can use those commands at meaningful points in
71749 +the layout of the output file.
71750 +
71751 + Output section descriptions and overlay descriptions are described
71752 +below.
71753 +
71754 + If you do not use a `SECTIONS' command in your linker script, the
71755 +linker will place each input section into an identically named output
71756 +section in the order that the sections are first encountered in the
71757 +input files. If all input sections are present in the first file, for
71758 +example, the order of sections in the output file will match the order
71759 +in the first input file. The first section will be at address zero.
71760 +
71761 +* Menu:
71762 +
71763 +* Output Section Description:: Output section description
71764 +* Output Section Name:: Output section name
71765 +* Output Section Address:: Output section address
71766 +* Input Section:: Input section description
71767 +* Output Section Data:: Output section data
71768 +* Output Section Keywords:: Output section keywords
71769 +* Output Section Discarding:: Output section discarding
71770 +* Output Section Attributes:: Output section attributes
71771 +* Overlay Description:: Overlay description
71772 +
71773 +\1f
71774 +File: ld.info, Node: Output Section Description, Next: Output Section Name, Up: SECTIONS
71775 +
71776 +3.6.1 Output Section Description
71777 +--------------------------------
71778 +
71779 +The full description of an output section looks like this:
71780 + SECTION [ADDRESS] [(TYPE)] :
71781 + [AT(LMA)] [ALIGN(SECTION_ALIGN)] [SUBALIGN(SUBSECTION_ALIGN)]
71782 + {
71783 + OUTPUT-SECTION-COMMAND
71784 + OUTPUT-SECTION-COMMAND
71785 + ...
71786 + } [>REGION] [AT>LMA_REGION] [:PHDR :PHDR ...] [=FILLEXP]
71787 +
71788 + Most output sections do not use most of the optional section
71789 +attributes.
71790 +
71791 + The whitespace around SECTION is required, so that the section name
71792 +is unambiguous. The colon and the curly braces are also required. The
71793 +line breaks and other white space are optional.
71794 +
71795 + Each OUTPUT-SECTION-COMMAND may be one of the following:
71796 +
71797 + * a symbol assignment (*note Assignments::)
71798 +
71799 + * an input section description (*note Input Section::)
71800 +
71801 + * data values to include directly (*note Output Section Data::)
71802 +
71803 + * a special output section keyword (*note Output Section Keywords::)
71804 +
71805 +\1f
71806 +File: ld.info, Node: Output Section Name, Next: Output Section Address, Prev: Output Section Description, Up: SECTIONS
71807 +
71808 +3.6.2 Output Section Name
71809 +-------------------------
71810 +
71811 +The name of the output section is SECTION. SECTION must meet the
71812 +constraints of your output format. In formats which only support a
71813 +limited number of sections, such as `a.out', the name must be one of
71814 +the names supported by the format (`a.out', for example, allows only
71815 +`.text', `.data' or `.bss'). If the output format supports any number
71816 +of sections, but with numbers and not names (as is the case for Oasys),
71817 +the name should be supplied as a quoted numeric string. A section name
71818 +may consist of any sequence of characters, but a name which contains
71819 +any unusual characters such as commas must be quoted.
71820 +
71821 + The output section name `/DISCARD/' is special; *Note Output Section
71822 +Discarding::.
71823 +
71824 +\1f
71825 +File: ld.info, Node: Output Section Address, Next: Input Section, Prev: Output Section Name, Up: SECTIONS
71826 +
71827 +3.6.3 Output Section Address
71828 +----------------------------
71829 +
71830 +The ADDRESS is an expression for the VMA (the virtual memory address)
71831 +of the output section. If you do not provide ADDRESS, the linker will
71832 +set it based on REGION if present, or otherwise based on the current
71833 +value of the location counter.
71834 +
71835 + If you provide ADDRESS, the address of the output section will be
71836 +set to precisely that. If you provide neither ADDRESS nor REGION, then
71837 +the address of the output section will be set to the current value of
71838 +the location counter aligned to the alignment requirements of the
71839 +output section. The alignment requirement of the output section is the
71840 +strictest alignment of any input section contained within the output
71841 +section.
71842 +
71843 + For example,
71844 + .text . : { *(.text) }
71845 + and
71846 + .text : { *(.text) }
71847 + are subtly different. The first will set the address of the `.text'
71848 +output section to the current value of the location counter. The
71849 +second will set it to the current value of the location counter aligned
71850 +to the strictest alignment of a `.text' input section.
71851 +
71852 + The ADDRESS may be an arbitrary expression; *Note Expressions::.
71853 +For example, if you want to align the section on a 0x10 byte boundary,
71854 +so that the lowest four bits of the section address are zero, you could
71855 +do something like this:
71856 + .text ALIGN(0x10) : { *(.text) }
71857 + This works because `ALIGN' returns the current location counter
71858 +aligned upward to the specified value.
71859 +
71860 + Specifying ADDRESS for a section will change the value of the
71861 +location counter.
71862 +
71863 +\1f
71864 +File: ld.info, Node: Input Section, Next: Output Section Data, Prev: Output Section Address, Up: SECTIONS
71865 +
71866 +3.6.4 Input Section Description
71867 +-------------------------------
71868 +
71869 +The most common output section command is an input section description.
71870 +
71871 + The input section description is the most basic linker script
71872 +operation. You use output sections to tell the linker how to lay out
71873 +your program in memory. You use input section descriptions to tell the
71874 +linker how to map the input files into your memory layout.
71875 +
71876 +* Menu:
71877 +
71878 +* Input Section Basics:: Input section basics
71879 +* Input Section Wildcards:: Input section wildcard patterns
71880 +* Input Section Common:: Input section for common symbols
71881 +* Input Section Keep:: Input section and garbage collection
71882 +* Input Section Example:: Input section example
71883 +
71884 +\1f
71885 +File: ld.info, Node: Input Section Basics, Next: Input Section Wildcards, Up: Input Section
71886 +
71887 +3.6.4.1 Input Section Basics
71888 +............................
71889 +
71890 +An input section description consists of a file name optionally followed
71891 +by a list of section names in parentheses.
71892 +
71893 + The file name and the section name may be wildcard patterns, which we
71894 +describe further below (*note Input Section Wildcards::).
71895 +
71896 + The most common input section description is to include all input
71897 +sections with a particular name in the output section. For example, to
71898 +include all input `.text' sections, you would write:
71899 + *(.text)
71900 + Here the `*' is a wildcard which matches any file name. To exclude
71901 +a list of files from matching the file name wildcard, EXCLUDE_FILE may
71902 +be used to match all files except the ones specified in the
71903 +EXCLUDE_FILE list. For example:
71904 + (*(EXCLUDE_FILE (*crtend.o *otherfile.o) .ctors))
71905 + will cause all .ctors sections from all files except `crtend.o' and
71906 +`otherfile.o' to be included.
71907 +
71908 + There are two ways to include more than one section:
71909 + *(.text .rdata)
71910 + *(.text) *(.rdata)
71911 + The difference between these is the order in which the `.text' and
71912 +`.rdata' input sections will appear in the output section. In the
71913 +first example, they will be intermingled, appearing in the same order as
71914 +they are found in the linker input. In the second example, all `.text'
71915 +input sections will appear first, followed by all `.rdata' input
71916 +sections.
71917 +
71918 + You can specify a file name to include sections from a particular
71919 +file. You would do this if one or more of your files contain special
71920 +data that needs to be at a particular location in memory. For example:
71921 + data.o(.data)
71922 +
71923 + If you use a file name without a list of sections, then all sections
71924 +in the input file will be included in the output section. This is not
71925 +commonly done, but it may by useful on occasion. For example:
71926 + data.o
71927 +
71928 + When you use a file name which does not contain any wild card
71929 +characters, the linker will first see if you also specified the file
71930 +name on the linker command line or in an `INPUT' command. If you did
71931 +not, the linker will attempt to open the file as an input file, as
71932 +though it appeared on the command line. Note that this differs from an
71933 +`INPUT' command, because the linker will not search for the file in the
71934 +archive search path.
71935 +
71936 +\1f
71937 +File: ld.info, Node: Input Section Wildcards, Next: Input Section Common, Prev: Input Section Basics, Up: Input Section
71938 +
71939 +3.6.4.2 Input Section Wildcard Patterns
71940 +.......................................
71941 +
71942 +In an input section description, either the file name or the section
71943 +name or both may be wildcard patterns.
71944 +
71945 + The file name of `*' seen in many examples is a simple wildcard
71946 +pattern for the file name.
71947 +
71948 + The wildcard patterns are like those used by the Unix shell.
71949 +
71950 +`*'
71951 + matches any number of characters
71952 +
71953 +`?'
71954 + matches any single character
71955 +
71956 +`[CHARS]'
71957 + matches a single instance of any of the CHARS; the `-' character
71958 + may be used to specify a range of characters, as in `[a-z]' to
71959 + match any lower case letter
71960 +
71961 +`\'
71962 + quotes the following character
71963 +
71964 + When a file name is matched with a wildcard, the wildcard characters
71965 +will not match a `/' character (used to separate directory names on
71966 +Unix). A pattern consisting of a single `*' character is an exception;
71967 +it will always match any file name, whether it contains a `/' or not.
71968 +In a section name, the wildcard characters will match a `/' character.
71969 +
71970 + File name wildcard patterns only match files which are explicitly
71971 +specified on the command line or in an `INPUT' command. The linker
71972 +does not search directories to expand wildcards.
71973 +
71974 + If a file name matches more than one wildcard pattern, or if a file
71975 +name appears explicitly and is also matched by a wildcard pattern, the
71976 +linker will use the first match in the linker script. For example, this
71977 +sequence of input section descriptions is probably in error, because the
71978 +`data.o' rule will not be used:
71979 + .data : { *(.data) }
71980 + .data1 : { data.o(.data) }
71981 +
71982 + Normally, the linker will place files and sections matched by
71983 +wildcards in the order in which they are seen during the link. You can
71984 +change this by using the `SORT_BY_NAME' keyword, which appears before a
71985 +wildcard pattern in parentheses (e.g., `SORT_BY_NAME(.text*)'). When
71986 +the `SORT_BY_NAME' keyword is used, the linker will sort the files or
71987 +sections into ascending order by name before placing them in the output
71988 +file.
71989 +
71990 + `SORT_BY_ALIGNMENT' is very similar to `SORT_BY_NAME'. The
71991 +difference is `SORT_BY_ALIGNMENT' will sort sections into ascending
71992 +order by alignment before placing them in the output file.
71993 +
71994 + `SORT' is an alias for `SORT_BY_NAME'.
71995 +
71996 + When there are nested section sorting commands in linker script,
71997 +there can be at most 1 level of nesting for section sorting commands.
71998 +
71999 + 1. `SORT_BY_NAME' (`SORT_BY_ALIGNMENT' (wildcard section pattern)).
72000 + It will sort the input sections by name first, then by alignment
72001 + if 2 sections have the same name.
72002 +
72003 + 2. `SORT_BY_ALIGNMENT' (`SORT_BY_NAME' (wildcard section pattern)).
72004 + It will sort the input sections by alignment first, then by name
72005 + if 2 sections have the same alignment.
72006 +
72007 + 3. `SORT_BY_NAME' (`SORT_BY_NAME' (wildcard section pattern)) is
72008 + treated the same as `SORT_BY_NAME' (wildcard section pattern).
72009 +
72010 + 4. `SORT_BY_ALIGNMENT' (`SORT_BY_ALIGNMENT' (wildcard section
72011 + pattern)) is treated the same as `SORT_BY_ALIGNMENT' (wildcard
72012 + section pattern).
72013 +
72014 + 5. All other nested section sorting commands are invalid.
72015 +
72016 + When both command line section sorting option and linker script
72017 +section sorting command are used, section sorting command always takes
72018 +precedence over the command line option.
72019 +
72020 + If the section sorting command in linker script isn't nested, the
72021 +command line option will make the section sorting command to be treated
72022 +as nested sorting command.
72023 +
72024 + 1. `SORT_BY_NAME' (wildcard section pattern ) with `--sort-sections
72025 + alignment' is equivalent to `SORT_BY_NAME' (`SORT_BY_ALIGNMENT'
72026 + (wildcard section pattern)).
72027 +
72028 + 2. `SORT_BY_ALIGNMENT' (wildcard section pattern) with
72029 + `--sort-section name' is equivalent to `SORT_BY_ALIGNMENT'
72030 + (`SORT_BY_NAME' (wildcard section pattern)).
72031 +
72032 + If the section sorting command in linker script is nested, the
72033 +command line option will be ignored.
72034 +
72035 + If you ever get confused about where input sections are going, use
72036 +the `-M' linker option to generate a map file. The map file shows
72037 +precisely how input sections are mapped to output sections.
72038 +
72039 + This example shows how wildcard patterns might be used to partition
72040 +files. This linker script directs the linker to place all `.text'
72041 +sections in `.text' and all `.bss' sections in `.bss'. The linker will
72042 +place the `.data' section from all files beginning with an upper case
72043 +character in `.DATA'; for all other files, the linker will place the
72044 +`.data' section in `.data'.
72045 + SECTIONS {
72046 + .text : { *(.text) }
72047 + .DATA : { [A-Z]*(.data) }
72048 + .data : { *(.data) }
72049 + .bss : { *(.bss) }
72050 + }
72051 +
72052 +\1f
72053 +File: ld.info, Node: Input Section Common, Next: Input Section Keep, Prev: Input Section Wildcards, Up: Input Section
72054 +
72055 +3.6.4.3 Input Section for Common Symbols
72056 +........................................
72057 +
72058 +A special notation is needed for common symbols, because in many object
72059 +file formats common symbols do not have a particular input section. The
72060 +linker treats common symbols as though they are in an input section
72061 +named `COMMON'.
72062 +
72063 + You may use file names with the `COMMON' section just as with any
72064 +other input sections. You can use this to place common symbols from a
72065 +particular input file in one section while common symbols from other
72066 +input files are placed in another section.
72067 +
72068 + In most cases, common symbols in input files will be placed in the
72069 +`.bss' section in the output file. For example:
72070 + .bss { *(.bss) *(COMMON) }
72071 +
72072 + Some object file formats have more than one type of common symbol.
72073 +For example, the MIPS ELF object file format distinguishes standard
72074 +common symbols and small common symbols. In this case, the linker will
72075 +use a different special section name for other types of common symbols.
72076 +In the case of MIPS ELF, the linker uses `COMMON' for standard common
72077 +symbols and `.scommon' for small common symbols. This permits you to
72078 +map the different types of common symbols into memory at different
72079 +locations.
72080 +
72081 + You will sometimes see `[COMMON]' in old linker scripts. This
72082 +notation is now considered obsolete. It is equivalent to `*(COMMON)'.
72083 +
72084 +\1f
72085 +File: ld.info, Node: Input Section Keep, Next: Input Section Example, Prev: Input Section Common, Up: Input Section
72086 +
72087 +3.6.4.4 Input Section and Garbage Collection
72088 +............................................
72089 +
72090 +When link-time garbage collection is in use (`--gc-sections'), it is
72091 +often useful to mark sections that should not be eliminated. This is
72092 +accomplished by surrounding an input section's wildcard entry with
72093 +`KEEP()', as in `KEEP(*(.init))' or `KEEP(SORT_BY_NAME(*)(.ctors))'.
72094 +
72095 +\1f
72096 +File: ld.info, Node: Input Section Example, Prev: Input Section Keep, Up: Input Section
72097 +
72098 +3.6.4.5 Input Section Example
72099 +.............................
72100 +
72101 +The following example is a complete linker script. It tells the linker
72102 +to read all of the sections from file `all.o' and place them at the
72103 +start of output section `outputa' which starts at location `0x10000'.
72104 +All of section `.input1' from file `foo.o' follows immediately, in the
72105 +same output section. All of section `.input2' from `foo.o' goes into
72106 +output section `outputb', followed by section `.input1' from `foo1.o'.
72107 +All of the remaining `.input1' and `.input2' sections from any files
72108 +are written to output section `outputc'.
72109 +
72110 + SECTIONS {
72111 + outputa 0x10000 :
72112 + {
72113 + all.o
72114 + foo.o (.input1)
72115 + }
72116 + outputb :
72117 + {
72118 + foo.o (.input2)
72119 + foo1.o (.input1)
72120 + }
72121 + outputc :
72122 + {
72123 + *(.input1)
72124 + *(.input2)
72125 + }
72126 + }
72127 +
72128 +\1f
72129 +File: ld.info, Node: Output Section Data, Next: Output Section Keywords, Prev: Input Section, Up: SECTIONS
72130 +
72131 +3.6.5 Output Section Data
72132 +-------------------------
72133 +
72134 +You can include explicit bytes of data in an output section by using
72135 +`BYTE', `SHORT', `LONG', `QUAD', or `SQUAD' as an output section
72136 +command. Each keyword is followed by an expression in parentheses
72137 +providing the value to store (*note Expressions::). The value of the
72138 +expression is stored at the current value of the location counter.
72139 +
72140 + The `BYTE', `SHORT', `LONG', and `QUAD' commands store one, two,
72141 +four, and eight bytes (respectively). After storing the bytes, the
72142 +location counter is incremented by the number of bytes stored.
72143 +
72144 + For example, this will store the byte 1 followed by the four byte
72145 +value of the symbol `addr':
72146 + BYTE(1)
72147 + LONG(addr)
72148 +
72149 + When using a 64 bit host or target, `QUAD' and `SQUAD' are the same;
72150 +they both store an 8 byte, or 64 bit, value. When both host and target
72151 +are 32 bits, an expression is computed as 32 bits. In this case `QUAD'
72152 +stores a 32 bit value zero extended to 64 bits, and `SQUAD' stores a 32
72153 +bit value sign extended to 64 bits.
72154 +
72155 + If the object file format of the output file has an explicit
72156 +endianness, which is the normal case, the value will be stored in that
72157 +endianness. When the object file format does not have an explicit
72158 +endianness, as is true of, for example, S-records, the value will be
72159 +stored in the endianness of the first input object file.
72160 +
72161 + Note--these commands only work inside a section description and not
72162 +between them, so the following will produce an error from the linker:
72163 + SECTIONS { .text : { *(.text) } LONG(1) .data : { *(.data) } }
72164 + whereas this will work:
72165 + SECTIONS { .text : { *(.text) ; LONG(1) } .data : { *(.data) } }
72166 +
72167 + You may use the `FILL' command to set the fill pattern for the
72168 +current section. It is followed by an expression in parentheses. Any
72169 +otherwise unspecified regions of memory within the section (for example,
72170 +gaps left due to the required alignment of input sections) are filled
72171 +with the value of the expression, repeated as necessary. A `FILL'
72172 +statement covers memory locations after the point at which it occurs in
72173 +the section definition; by including more than one `FILL' statement,
72174 +you can have different fill patterns in different parts of an output
72175 +section.
72176 +
72177 + This example shows how to fill unspecified regions of memory with the
72178 +value `0x90':
72179 + FILL(0x90909090)
72180 +
72181 + The `FILL' command is similar to the `=FILLEXP' output section
72182 +attribute, but it only affects the part of the section following the
72183 +`FILL' command, rather than the entire section. If both are used, the
72184 +`FILL' command takes precedence. *Note Output Section Fill::, for
72185 +details on the fill expression.
72186 +
72187 +\1f
72188 +File: ld.info, Node: Output Section Keywords, Next: Output Section Discarding, Prev: Output Section Data, Up: SECTIONS
72189 +
72190 +3.6.6 Output Section Keywords
72191 +-----------------------------
72192 +
72193 +There are a couple of keywords which can appear as output section
72194 +commands.
72195 +
72196 +`CREATE_OBJECT_SYMBOLS'
72197 + The command tells the linker to create a symbol for each input
72198 + file. The name of each symbol will be the name of the
72199 + corresponding input file. The section of each symbol will be the
72200 + output section in which the `CREATE_OBJECT_SYMBOLS' command
72201 + appears.
72202 +
72203 + This is conventional for the a.out object file format. It is not
72204 + normally used for any other object file format.
72205 +
72206 +`CONSTRUCTORS'
72207 + When linking using the a.out object file format, the linker uses an
72208 + unusual set construct to support C++ global constructors and
72209 + destructors. When linking object file formats which do not support
72210 + arbitrary sections, such as ECOFF and XCOFF, the linker will
72211 + automatically recognize C++ global constructors and destructors by
72212 + name. For these object file formats, the `CONSTRUCTORS' command
72213 + tells the linker to place constructor information in the output
72214 + section where the `CONSTRUCTORS' command appears. The
72215 + `CONSTRUCTORS' command is ignored for other object file formats.
72216 +
72217 + The symbol `__CTOR_LIST__' marks the start of the global
72218 + constructors, and the symbol `__CTOR_END__' marks the end.
72219 + Similarly, `__DTOR_LIST__' and `__DTOR_END__' mark the start and
72220 + end of the global destructors. The first word in the list is the
72221 + number of entries, followed by the address of each constructor or
72222 + destructor, followed by a zero word. The compiler must arrange to
72223 + actually run the code. For these object file formats GNU C++
72224 + normally calls constructors from a subroutine `__main'; a call to
72225 + `__main' is automatically inserted into the startup code for
72226 + `main'. GNU C++ normally runs destructors either by using
72227 + `atexit', or directly from the function `exit'.
72228 +
72229 + For object file formats such as `COFF' or `ELF' which support
72230 + arbitrary section names, GNU C++ will normally arrange to put the
72231 + addresses of global constructors and destructors into the `.ctors'
72232 + and `.dtors' sections. Placing the following sequence into your
72233 + linker script will build the sort of table which the GNU C++
72234 + runtime code expects to see.
72235 +
72236 + __CTOR_LIST__ = .;
72237 + LONG((__CTOR_END__ - __CTOR_LIST__) / 4 - 2)
72238 + *(.ctors)
72239 + LONG(0)
72240 + __CTOR_END__ = .;
72241 + __DTOR_LIST__ = .;
72242 + LONG((__DTOR_END__ - __DTOR_LIST__) / 4 - 2)
72243 + *(.dtors)
72244 + LONG(0)
72245 + __DTOR_END__ = .;
72246 +
72247 + If you are using the GNU C++ support for initialization priority,
72248 + which provides some control over the order in which global
72249 + constructors are run, you must sort the constructors at link time
72250 + to ensure that they are executed in the correct order. When using
72251 + the `CONSTRUCTORS' command, use `SORT_BY_NAME(CONSTRUCTORS)'
72252 + instead. When using the `.ctors' and `.dtors' sections, use
72253 + `*(SORT_BY_NAME(.ctors))' and `*(SORT_BY_NAME(.dtors))' instead of
72254 + just `*(.ctors)' and `*(.dtors)'.
72255 +
72256 + Normally the compiler and linker will handle these issues
72257 + automatically, and you will not need to concern yourself with
72258 + them. However, you may need to consider this if you are using C++
72259 + and writing your own linker scripts.
72260 +
72261 +
72262 +\1f
72263 +File: ld.info, Node: Output Section Discarding, Next: Output Section Attributes, Prev: Output Section Keywords, Up: SECTIONS
72264 +
72265 +3.6.7 Output Section Discarding
72266 +-------------------------------
72267 +
72268 +The linker will not create output section which do not have any
72269 +contents. This is for convenience when referring to input sections that
72270 +may or may not be present in any of the input files. For example:
72271 + .foo { *(.foo) }
72272 + will only create a `.foo' section in the output file if there is a
72273 +`.foo' section in at least one input file.
72274 +
72275 + If you use anything other than an input section description as an
72276 +output section command, such as a symbol assignment, then the output
72277 +section will always be created, even if there are no matching input
72278 +sections.
72279 +
72280 + The special output section name `/DISCARD/' may be used to discard
72281 +input sections. Any input sections which are assigned to an output
72282 +section named `/DISCARD/' are not included in the output file.
72283 +
72284 +\1f
72285 +File: ld.info, Node: Output Section Attributes, Next: Overlay Description, Prev: Output Section Discarding, Up: SECTIONS
72286 +
72287 +3.6.8 Output Section Attributes
72288 +-------------------------------
72289 +
72290 +We showed above that the full description of an output section looked
72291 +like this:
72292 + SECTION [ADDRESS] [(TYPE)] :
72293 + [AT(LMA)] [ALIGN(SECTION_ALIGN)] [SUBALIGN(SUBSECTION_ALIGN)]
72294 + {
72295 + OUTPUT-SECTION-COMMAND
72296 + OUTPUT-SECTION-COMMAND
72297 + ...
72298 + } [>REGION] [AT>LMA_REGION] [:PHDR :PHDR ...] [=FILLEXP]
72299 +We've already described SECTION, ADDRESS, and
72300 +OUTPUT-SECTION-COMMAND. In this section we will describe the remaining
72301 +section attributes.
72302 +
72303 +* Menu:
72304 +
72305 +* Output Section Type:: Output section type
72306 +* Output Section LMA:: Output section LMA
72307 +* Forced Output Alignment:: Forced Output Alignment
72308 +* Forced Input Alignment:: Forced Input Alignment
72309 +* Output Section Region:: Output section region
72310 +* Output Section Phdr:: Output section phdr
72311 +* Output Section Fill:: Output section fill
72312 +
72313 +\1f
72314 +File: ld.info, Node: Output Section Type, Next: Output Section LMA, Up: Output Section Attributes
72315 +
72316 +3.6.8.1 Output Section Type
72317 +...........................
72318 +
72319 +Each output section may have a type. The type is a keyword in
72320 +parentheses. The following types are defined:
72321 +
72322 +`NOLOAD'
72323 + The section should be marked as not loadable, so that it will not
72324 + be loaded into memory when the program is run.
72325 +
72326 +`DSECT'
72327 +`COPY'
72328 +`INFO'
72329 +`OVERLAY'
72330 + These type names are supported for backward compatibility, and are
72331 + rarely used. They all have the same effect: the section should be
72332 + marked as not allocatable, so that no memory is allocated for the
72333 + section when the program is run.
72334 +
72335 + The linker normally sets the attributes of an output section based on
72336 +the input sections which map into it. You can override this by using
72337 +the section type. For example, in the script sample below, the `ROM'
72338 +section is addressed at memory location `0' and does not need to be
72339 +loaded when the program is run. The contents of the `ROM' section will
72340 +appear in the linker output file as usual.
72341 + SECTIONS {
72342 + ROM 0 (NOLOAD) : { ... }
72343 + ...
72344 + }
72345 +
72346 +\1f
72347 +File: ld.info, Node: Output Section LMA, Next: Forced Output Alignment, Prev: Output Section Type, Up: Output Section Attributes
72348 +
72349 +3.6.8.2 Output Section LMA
72350 +..........................
72351 +
72352 +Every section has a virtual address (VMA) and a load address (LMA); see
72353 +*Note Basic Script Concepts::. The address expression which may appear
72354 +in an output section description sets the VMA (*note Output Section
72355 +Address::).
72356 +
72357 + The linker will normally set the LMA equal to the VMA. You can
72358 +change that by using the `AT' keyword. The expression LMA that follows
72359 +the `AT' keyword specifies the load address of the section.
72360 +
72361 + Alternatively, with `AT>LMA_REGION' expression, you may specify a
72362 +memory region for the section's load address. *Note MEMORY::. Note
72363 +that if the section has not had a VMA assigned to it then the linker
72364 +will use the LMA_REGION as the VMA region as well. *Note Output
72365 +Section Region::.
72366 +
72367 + This feature is designed to make it easy to build a ROM image. For
72368 +example, the following linker script creates three output sections: one
72369 +called `.text', which starts at `0x1000', one called `.mdata', which is
72370 +loaded at the end of the `.text' section even though its VMA is
72371 +`0x2000', and one called `.bss' to hold uninitialized data at address
72372 +`0x3000'. The symbol `_data' is defined with the value `0x2000', which
72373 +shows that the location counter holds the VMA value, not the LMA value.
72374 +
72375 + SECTIONS
72376 + {
72377 + .text 0x1000 : { *(.text) _etext = . ; }
72378 + .mdata 0x2000 :
72379 + AT ( ADDR (.text) + SIZEOF (.text) )
72380 + { _data = . ; *(.data); _edata = . ; }
72381 + .bss 0x3000 :
72382 + { _bstart = . ; *(.bss) *(COMMON) ; _bend = . ;}
72383 + }
72384 +
72385 + The run-time initialization code for use with a program generated
72386 +with this linker script would include something like the following, to
72387 +copy the initialized data from the ROM image to its runtime address.
72388 +Notice how this code takes advantage of the symbols defined by the
72389 +linker script.
72390 +
72391 + extern char _etext, _data, _edata, _bstart, _bend;
72392 + char *src = &_etext;
72393 + char *dst = &_data;
72394 +
72395 + /* ROM has data at end of text; copy it. */
72396 + while (dst < &_edata) {
72397 + *dst++ = *src++;
72398 + }
72399 +
72400 + /* Zero bss */
72401 + for (dst = &_bstart; dst< &_bend; dst++)
72402 + *dst = 0;
72403 +
72404 +\1f
72405 +File: ld.info, Node: Forced Output Alignment, Next: Forced Input Alignment, Prev: Output Section LMA, Up: Output Section Attributes
72406 +
72407 +3.6.8.3 Forced Output Alignment
72408 +...............................
72409 +
72410 +You can increase an output section's alignment by using ALIGN.
72411 +
72412 +\1f
72413 +File: ld.info, Node: Forced Input Alignment, Next: Output Section Region, Prev: Forced Output Alignment, Up: Output Section Attributes
72414 +
72415 +3.6.8.4 Forced Input Alignment
72416 +..............................
72417 +
72418 +You can force input section alignment within an output section by using
72419 +SUBALIGN. The value specified overrides any alignment given by input
72420 +sections, whether larger or smaller.
72421 +
72422 +\1f
72423 +File: ld.info, Node: Output Section Region, Next: Output Section Phdr, Prev: Forced Input Alignment, Up: Output Section Attributes
72424 +
72425 +3.6.8.5 Output Section Region
72426 +.............................
72427 +
72428 +You can assign a section to a previously defined region of memory by
72429 +using `>REGION'. *Note MEMORY::.
72430 +
72431 + Here is a simple example:
72432 + MEMORY { rom : ORIGIN = 0x1000, LENGTH = 0x1000 }
72433 + SECTIONS { ROM : { *(.text) } >rom }
72434 +
72435 +\1f
72436 +File: ld.info, Node: Output Section Phdr, Next: Output Section Fill, Prev: Output Section Region, Up: Output Section Attributes
72437 +
72438 +3.6.8.6 Output Section Phdr
72439 +...........................
72440 +
72441 +You can assign a section to a previously defined program segment by
72442 +using `:PHDR'. *Note PHDRS::. If a section is assigned to one or more
72443 +segments, then all subsequent allocated sections will be assigned to
72444 +those segments as well, unless they use an explicitly `:PHDR' modifier.
72445 +You can use `:NONE' to tell the linker to not put the section in any
72446 +segment at all.
72447 +
72448 + Here is a simple example:
72449 + PHDRS { text PT_LOAD ; }
72450 + SECTIONS { .text : { *(.text) } :text }
72451 +
72452 +\1f
72453 +File: ld.info, Node: Output Section Fill, Prev: Output Section Phdr, Up: Output Section Attributes
72454 +
72455 +3.6.8.7 Output Section Fill
72456 +...........................
72457 +
72458 +You can set the fill pattern for an entire section by using `=FILLEXP'.
72459 +FILLEXP is an expression (*note Expressions::). Any otherwise
72460 +unspecified regions of memory within the output section (for example,
72461 +gaps left due to the required alignment of input sections) will be
72462 +filled with the value, repeated as necessary. If the fill expression
72463 +is a simple hex number, ie. a string of hex digit starting with `0x'
72464 +and without a trailing `k' or `M', then an arbitrarily long sequence of
72465 +hex digits can be used to specify the fill pattern; Leading zeros
72466 +become part of the pattern too. For all other cases, including extra
72467 +parentheses or a unary `+', the fill pattern is the four least
72468 +significant bytes of the value of the expression. In all cases, the
72469 +number is big-endian.
72470 +
72471 + You can also change the fill value with a `FILL' command in the
72472 +output section commands; (*note Output Section Data::).
72473 +
72474 + Here is a simple example:
72475 + SECTIONS { .text : { *(.text) } =0x90909090 }
72476 +
72477 +\1f
72478 +File: ld.info, Node: Overlay Description, Prev: Output Section Attributes, Up: SECTIONS
72479 +
72480 +3.6.9 Overlay Description
72481 +-------------------------
72482 +
72483 +An overlay description provides an easy way to describe sections which
72484 +are to be loaded as part of a single memory image but are to be run at
72485 +the same memory address. At run time, some sort of overlay manager will
72486 +copy the overlaid sections in and out of the runtime memory address as
72487 +required, perhaps by simply manipulating addressing bits. This approach
72488 +can be useful, for example, when a certain region of memory is faster
72489 +than another.
72490 +
72491 + Overlays are described using the `OVERLAY' command. The `OVERLAY'
72492 +command is used within a `SECTIONS' command, like an output section
72493 +description. The full syntax of the `OVERLAY' command is as follows:
72494 + OVERLAY [START] : [NOCROSSREFS] [AT ( LDADDR )]
72495 + {
72496 + SECNAME1
72497 + {
72498 + OUTPUT-SECTION-COMMAND
72499 + OUTPUT-SECTION-COMMAND
72500 + ...
72501 + } [:PHDR...] [=FILL]
72502 + SECNAME2
72503 + {
72504 + OUTPUT-SECTION-COMMAND
72505 + OUTPUT-SECTION-COMMAND
72506 + ...
72507 + } [:PHDR...] [=FILL]
72508 + ...
72509 + } [>REGION] [:PHDR...] [=FILL]
72510 +
72511 + Everything is optional except `OVERLAY' (a keyword), and each
72512 +section must have a name (SECNAME1 and SECNAME2 above). The section
72513 +definitions within the `OVERLAY' construct are identical to those
72514 +within the general `SECTIONS' contruct (*note SECTIONS::), except that
72515 +no addresses and no memory regions may be defined for sections within
72516 +an `OVERLAY'.
72517 +
72518 + The sections are all defined with the same starting address. The
72519 +load addresses of the sections are arranged such that they are
72520 +consecutive in memory starting at the load address used for the
72521 +`OVERLAY' as a whole (as with normal section definitions, the load
72522 +address is optional, and defaults to the start address; the start
72523 +address is also optional, and defaults to the current value of the
72524 +location counter).
72525 +
72526 + If the `NOCROSSREFS' keyword is used, and there any references among
72527 +the sections, the linker will report an error. Since the sections all
72528 +run at the same address, it normally does not make sense for one
72529 +section to refer directly to another. *Note NOCROSSREFS: Miscellaneous
72530 +Commands.
72531 +
72532 + For each section within the `OVERLAY', the linker automatically
72533 +defines two symbols. The symbol `__load_start_SECNAME' is defined as
72534 +the starting load address of the section. The symbol
72535 +`__load_stop_SECNAME' is defined as the final load address of the
72536 +section. Any characters within SECNAME which are not legal within C
72537 +identifiers are removed. C (or assembler) code may use these symbols
72538 +to move the overlaid sections around as necessary.
72539 +
72540 + At the end of the overlay, the value of the location counter is set
72541 +to the start address of the overlay plus the size of the largest
72542 +section.
72543 +
72544 + Here is an example. Remember that this would appear inside a
72545 +`SECTIONS' construct.
72546 + OVERLAY 0x1000 : AT (0x4000)
72547 + {
72548 + .text0 { o1/*.o(.text) }
72549 + .text1 { o2/*.o(.text) }
72550 + }
72551 +This will define both `.text0' and `.text1' to start at address
72552 +0x1000. `.text0' will be loaded at address 0x4000, and `.text1' will
72553 +be loaded immediately after `.text0'. The following symbols will be
72554 +defined: `__load_start_text0', `__load_stop_text0',
72555 +`__load_start_text1', `__load_stop_text1'.
72556 +
72557 + C code to copy overlay `.text1' into the overlay area might look
72558 +like the following.
72559 +
72560 + extern char __load_start_text1, __load_stop_text1;
72561 + memcpy ((char *) 0x1000, &__load_start_text1,
72562 + &__load_stop_text1 - &__load_start_text1);
72563 +
72564 + Note that the `OVERLAY' command is just syntactic sugar, since
72565 +everything it does can be done using the more basic commands. The above
72566 +example could have been written identically as follows.
72567 +
72568 + .text0 0x1000 : AT (0x4000) { o1/*.o(.text) }
72569 + __load_start_text0 = LOADADDR (.text0);
72570 + __load_stop_text0 = LOADADDR (.text0) + SIZEOF (.text0);
72571 + .text1 0x1000 : AT (0x4000 + SIZEOF (.text0)) { o2/*.o(.text) }
72572 + __load_start_text1 = LOADADDR (.text1);
72573 + __load_stop_text1 = LOADADDR (.text1) + SIZEOF (.text1);
72574 + . = 0x1000 + MAX (SIZEOF (.text0), SIZEOF (.text1));
72575 +
72576 +\1f
72577 +File: ld.info, Node: MEMORY, Next: PHDRS, Prev: SECTIONS, Up: Scripts
72578 +
72579 +3.7 MEMORY Command
72580 +==================
72581 +
72582 +The linker's default configuration permits allocation of all available
72583 +memory. You can override this by using the `MEMORY' command.
72584 +
72585 + The `MEMORY' command describes the location and size of blocks of
72586 +memory in the target. You can use it to describe which memory regions
72587 +may be used by the linker, and which memory regions it must avoid. You
72588 +can then assign sections to particular memory regions. The linker will
72589 +set section addresses based on the memory regions, and will warn about
72590 +regions that become too full. The linker will not shuffle sections
72591 +around to fit into the available regions.
72592 +
72593 + A linker script may contain at most one use of the `MEMORY' command.
72594 +However, you can define as many blocks of memory within it as you
72595 +wish. The syntax is:
72596 + MEMORY
72597 + {
72598 + NAME [(ATTR)] : ORIGIN = ORIGIN, LENGTH = LEN
72599 + ...
72600 + }
72601 +
72602 + The NAME is a name used in the linker script to refer to the region.
72603 +The region name has no meaning outside of the linker script. Region
72604 +names are stored in a separate name space, and will not conflict with
72605 +symbol names, file names, or section names. Each memory region must
72606 +have a distinct name.
72607 +
72608 + The ATTR string is an optional list of attributes that specify
72609 +whether to use a particular memory region for an input section which is
72610 +not explicitly mapped in the linker script. As described in *Note
72611 +SECTIONS::, if you do not specify an output section for some input
72612 +section, the linker will create an output section with the same name as
72613 +the input section. If you define region attributes, the linker will use
72614 +them to select the memory region for the output section that it creates.
72615 +
72616 + The ATTR string must consist only of the following characters:
72617 +`R'
72618 + Read-only section
72619 +
72620 +`W'
72621 + Read/write section
72622 +
72623 +`X'
72624 + Executable section
72625 +
72626 +`A'
72627 + Allocatable section
72628 +
72629 +`I'
72630 + Initialized section
72631 +
72632 +`L'
72633 + Same as `I'
72634 +
72635 +`!'
72636 + Invert the sense of any of the preceding attributes
72637 +
72638 + If a unmapped section matches any of the listed attributes other than
72639 +`!', it will be placed in the memory region. The `!' attribute
72640 +reverses this test, so that an unmapped section will be placed in the
72641 +memory region only if it does not match any of the listed attributes.
72642 +
72643 + The ORIGIN is an numerical expression for the start address of the
72644 +memory region. The expression must evaluate to a constant and it
72645 +cannot involve any symbols. The keyword `ORIGIN' may be abbreviated to
72646 +`org' or `o' (but not, for example, `ORG').
72647 +
72648 + The LEN is an expression for the size in bytes of the memory region.
72649 +As with the ORIGIN expression, the expression must be numerical only
72650 +and must evaluate to a constant. The keyword `LENGTH' may be
72651 +abbreviated to `len' or `l'.
72652 +
72653 + In the following example, we specify that there are two memory
72654 +regions available for allocation: one starting at `0' for 256 kilobytes,
72655 +and the other starting at `0x40000000' for four megabytes. The linker
72656 +will place into the `rom' memory region every section which is not
72657 +explicitly mapped into a memory region, and is either read-only or
72658 +executable. The linker will place other sections which are not
72659 +explicitly mapped into a memory region into the `ram' memory region.
72660 +
72661 + MEMORY
72662 + {
72663 + rom (rx) : ORIGIN = 0, LENGTH = 256K
72664 + ram (!rx) : org = 0x40000000, l = 4M
72665 + }
72666 +
72667 + Once you define a memory region, you can direct the linker to place
72668 +specific output sections into that memory region by using the `>REGION'
72669 +output section attribute. For example, if you have a memory region
72670 +named `mem', you would use `>mem' in the output section definition.
72671 +*Note Output Section Region::. If no address was specified for the
72672 +output section, the linker will set the address to the next available
72673 +address within the memory region. If the combined output sections
72674 +directed to a memory region are too large for the region, the linker
72675 +will issue an error message.
72676 +
72677 + It is possible to access the origin and length of a memory in an
72678 +expression via the `ORIGIN(MEMORY)' and `LENGTH(MEMORY)' functions:
72679 +
72680 + _fstack = ORIGIN(ram) + LENGTH(ram) - 4;
72681 +
72682 +\1f
72683 +File: ld.info, Node: PHDRS, Next: VERSION, Prev: MEMORY, Up: Scripts
72684 +
72685 +3.8 PHDRS Command
72686 +=================
72687 +
72688 +The ELF object file format uses "program headers", also knows as
72689 +"segments". The program headers describe how the program should be
72690 +loaded into memory. You can print them out by using the `objdump'
72691 +program with the `-p' option.
72692 +
72693 + When you run an ELF program on a native ELF system, the system loader
72694 +reads the program headers in order to figure out how to load the
72695 +program. This will only work if the program headers are set correctly.
72696 +This manual does not describe the details of how the system loader
72697 +interprets program headers; for more information, see the ELF ABI.
72698 +
72699 + The linker will create reasonable program headers by default.
72700 +However, in some cases, you may need to specify the program headers more
72701 +precisely. You may use the `PHDRS' command for this purpose. When the
72702 +linker sees the `PHDRS' command in the linker script, it will not
72703 +create any program headers other than the ones specified.
72704 +
72705 + The linker only pays attention to the `PHDRS' command when
72706 +generating an ELF output file. In other cases, the linker will simply
72707 +ignore `PHDRS'.
72708 +
72709 + This is the syntax of the `PHDRS' command. The words `PHDRS',
72710 +`FILEHDR', `AT', and `FLAGS' are keywords.
72711 +
72712 + PHDRS
72713 + {
72714 + NAME TYPE [ FILEHDR ] [ PHDRS ] [ AT ( ADDRESS ) ]
72715 + [ FLAGS ( FLAGS ) ] ;
72716 + }
72717 +
72718 + The NAME is used only for reference in the `SECTIONS' command of the
72719 +linker script. It is not put into the output file. Program header
72720 +names are stored in a separate name space, and will not conflict with
72721 +symbol names, file names, or section names. Each program header must
72722 +have a distinct name.
72723 +
72724 + Certain program header types describe segments of memory which the
72725 +system loader will load from the file. In the linker script, you
72726 +specify the contents of these segments by placing allocatable output
72727 +sections in the segments. You use the `:PHDR' output section attribute
72728 +to place a section in a particular segment. *Note Output Section
72729 +Phdr::.
72730 +
72731 + It is normal to put certain sections in more than one segment. This
72732 +merely implies that one segment of memory contains another. You may
72733 +repeat `:PHDR', using it once for each segment which should contain the
72734 +section.
72735 +
72736 + If you place a section in one or more segments using `:PHDR', then
72737 +the linker will place all subsequent allocatable sections which do not
72738 +specify `:PHDR' in the same segments. This is for convenience, since
72739 +generally a whole set of contiguous sections will be placed in a single
72740 +segment. You can use `:NONE' to override the default segment and tell
72741 +the linker to not put the section in any segment at all.
72742 +
72743 + You may use the `FILEHDR' and `PHDRS' keywords appear after the
72744 +program header type to further describe the contents of the segment.
72745 +The `FILEHDR' keyword means that the segment should include the ELF
72746 +file header. The `PHDRS' keyword means that the segment should include
72747 +the ELF program headers themselves.
72748 +
72749 + The TYPE may be one of the following. The numbers indicate the
72750 +value of the keyword.
72751 +
72752 +`PT_NULL' (0)
72753 + Indicates an unused program header.
72754 +
72755 +`PT_LOAD' (1)
72756 + Indicates that this program header describes a segment to be
72757 + loaded from the file.
72758 +
72759 +`PT_DYNAMIC' (2)
72760 + Indicates a segment where dynamic linking information can be found.
72761 +
72762 +`PT_INTERP' (3)
72763 + Indicates a segment where the name of the program interpreter may
72764 + be found.
72765 +
72766 +`PT_NOTE' (4)
72767 + Indicates a segment holding note information.
72768 +
72769 +`PT_SHLIB' (5)
72770 + A reserved program header type, defined but not specified by the
72771 + ELF ABI.
72772 +
72773 +`PT_PHDR' (6)
72774 + Indicates a segment where the program headers may be found.
72775 +
72776 +EXPRESSION
72777 + An expression giving the numeric type of the program header. This
72778 + may be used for types not defined above.
72779 +
72780 + You can specify that a segment should be loaded at a particular
72781 +address in memory by using an `AT' expression. This is identical to the
72782 +`AT' command used as an output section attribute (*note Output Section
72783 +LMA::). The `AT' command for a program header overrides the output
72784 +section attribute.
72785 +
72786 + The linker will normally set the segment flags based on the sections
72787 +which comprise the segment. You may use the `FLAGS' keyword to
72788 +explicitly specify the segment flags. The value of FLAGS must be an
72789 +integer. It is used to set the `p_flags' field of the program header.
72790 +
72791 + Here is an example of `PHDRS'. This shows a typical set of program
72792 +headers used on a native ELF system.
72793 +
72794 + PHDRS
72795 + {
72796 + headers PT_PHDR PHDRS ;
72797 + interp PT_INTERP ;
72798 + text PT_LOAD FILEHDR PHDRS ;
72799 + data PT_LOAD ;
72800 + dynamic PT_DYNAMIC ;
72801 + }
72802 +
72803 + SECTIONS
72804 + {
72805 + . = SIZEOF_HEADERS;
72806 + .interp : { *(.interp) } :text :interp
72807 + .text : { *(.text) } :text
72808 + .rodata : { *(.rodata) } /* defaults to :text */
72809 + ...
72810 + . = . + 0x1000; /* move to a new page in memory */
72811 + .data : { *(.data) } :data
72812 + .dynamic : { *(.dynamic) } :data :dynamic
72813 + ...
72814 + }
72815 +
72816 +\1f
72817 +File: ld.info, Node: VERSION, Next: Expressions, Prev: PHDRS, Up: Scripts
72818 +
72819 +3.9 VERSION Command
72820 +===================
72821 +
72822 +The linker supports symbol versions when using ELF. Symbol versions are
72823 +only useful when using shared libraries. The dynamic linker can use
72824 +symbol versions to select a specific version of a function when it runs
72825 +a program that may have been linked against an earlier version of the
72826 +shared library.
72827 +
72828 + You can include a version script directly in the main linker script,
72829 +or you can supply the version script as an implicit linker script. You
72830 +can also use the `--version-script' linker option.
72831 +
72832 + The syntax of the `VERSION' command is simply
72833 + VERSION { version-script-commands }
72834 +
72835 + The format of the version script commands is identical to that used
72836 +by Sun's linker in Solaris 2.5. The version script defines a tree of
72837 +version nodes. You specify the node names and interdependencies in the
72838 +version script. You can specify which symbols are bound to which
72839 +version nodes, and you can reduce a specified set of symbols to local
72840 +scope so that they are not globally visible outside of the shared
72841 +library.
72842 +
72843 + The easiest way to demonstrate the version script language is with a
72844 +few examples.
72845 +
72846 + VERS_1.1 {
72847 + global:
72848 + foo1;
72849 + local:
72850 + old*;
72851 + original*;
72852 + new*;
72853 + };
72854 +
72855 + VERS_1.2 {
72856 + foo2;
72857 + } VERS_1.1;
72858 +
72859 + VERS_2.0 {
72860 + bar1; bar2;
72861 + extern "C++" {
72862 + ns::*;
72863 + "int f(int, double)";
72864 + }
72865 + } VERS_1.2;
72866 +
72867 + This example version script defines three version nodes. The first
72868 +version node defined is `VERS_1.1'; it has no other dependencies. The
72869 +script binds the symbol `foo1' to `VERS_1.1'. It reduces a number of
72870 +symbols to local scope so that they are not visible outside of the
72871 +shared library; this is done using wildcard patterns, so that any
72872 +symbol whose name begins with `old', `original', or `new' is matched.
72873 +The wildcard patterns available are the same as those used in the shell
72874 +when matching filenames (also known as "globbing"). However, if you
72875 +specify the symbol name inside double quotes, then the name is treated
72876 +as literal, rather than as a glob pattern.
72877 +
72878 + Next, the version script defines node `VERS_1.2'. This node depends
72879 +upon `VERS_1.1'. The script binds the symbol `foo2' to the version
72880 +node `VERS_1.2'.
72881 +
72882 + Finally, the version script defines node `VERS_2.0'. This node
72883 +depends upon `VERS_1.2'. The scripts binds the symbols `bar1' and
72884 +`bar2' are bound to the version node `VERS_2.0'.
72885 +
72886 + When the linker finds a symbol defined in a library which is not
72887 +specifically bound to a version node, it will effectively bind it to an
72888 +unspecified base version of the library. You can bind all otherwise
72889 +unspecified symbols to a given version node by using `global: *;'
72890 +somewhere in the version script.
72891 +
72892 + The names of the version nodes have no specific meaning other than
72893 +what they might suggest to the person reading them. The `2.0' version
72894 +could just as well have appeared in between `1.1' and `1.2'. However,
72895 +this would be a confusing way to write a version script.
72896 +
72897 + Node name can be omited, provided it is the only version node in the
72898 +version script. Such version script doesn't assign any versions to
72899 +symbols, only selects which symbols will be globally visible out and
72900 +which won't.
72901 +
72902 + { global: foo; bar; local: *; };
72903 +
72904 + When you link an application against a shared library that has
72905 +versioned symbols, the application itself knows which version of each
72906 +symbol it requires, and it also knows which version nodes it needs from
72907 +each shared library it is linked against. Thus at runtime, the dynamic
72908 +loader can make a quick check to make sure that the libraries you have
72909 +linked against do in fact supply all of the version nodes that the
72910 +application will need to resolve all of the dynamic symbols. In this
72911 +way it is possible for the dynamic linker to know with certainty that
72912 +all external symbols that it needs will be resolvable without having to
72913 +search for each symbol reference.
72914 +
72915 + The symbol versioning is in effect a much more sophisticated way of
72916 +doing minor version checking that SunOS does. The fundamental problem
72917 +that is being addressed here is that typically references to external
72918 +functions are bound on an as-needed basis, and are not all bound when
72919 +the application starts up. If a shared library is out of date, a
72920 +required interface may be missing; when the application tries to use
72921 +that interface, it may suddenly and unexpectedly fail. With symbol
72922 +versioning, the user will get a warning when they start their program if
72923 +the libraries being used with the application are too old.
72924 +
72925 + There are several GNU extensions to Sun's versioning approach. The
72926 +first of these is the ability to bind a symbol to a version node in the
72927 +source file where the symbol is defined instead of in the versioning
72928 +script. This was done mainly to reduce the burden on the library
72929 +maintainer. You can do this by putting something like:
72930 + __asm__(".symver original_foo,foo@VERS_1.1");
72931 + in the C source file. This renames the function `original_foo' to
72932 +be an alias for `foo' bound to the version node `VERS_1.1'. The
72933 +`local:' directive can be used to prevent the symbol `original_foo'
72934 +from being exported. A `.symver' directive takes precedence over a
72935 +version script.
72936 +
72937 + The second GNU extension is to allow multiple versions of the same
72938 +function to appear in a given shared library. In this way you can make
72939 +an incompatible change to an interface without increasing the major
72940 +version number of the shared library, while still allowing applications
72941 +linked against the old interface to continue to function.
72942 +
72943 + To do this, you must use multiple `.symver' directives in the source
72944 +file. Here is an example:
72945 +
72946 + __asm__(".symver original_foo,foo@");
72947 + __asm__(".symver old_foo,foo@VERS_1.1");
72948 + __asm__(".symver old_foo1,foo@VERS_1.2");
72949 + __asm__(".symver new_foo,foo@@VERS_2.0");
72950 +
72951 + In this example, `foo@' represents the symbol `foo' bound to the
72952 +unspecified base version of the symbol. The source file that contains
72953 +this example would define 4 C functions: `original_foo', `old_foo',
72954 +`old_foo1', and `new_foo'.
72955 +
72956 + When you have multiple definitions of a given symbol, there needs to
72957 +be some way to specify a default version to which external references to
72958 +this symbol will be bound. You can do this with the `foo@@VERS_2.0'
72959 +type of `.symver' directive. You can only declare one version of a
72960 +symbol as the default in this manner; otherwise you would effectively
72961 +have multiple definitions of the same symbol.
72962 +
72963 + If you wish to bind a reference to a specific version of the symbol
72964 +within the shared library, you can use the aliases of convenience
72965 +(i.e., `old_foo'), or you can use the `.symver' directive to
72966 +specifically bind to an external version of the function in question.
72967 +
72968 + You can also specify the language in the version script:
72969 +
72970 + VERSION extern "lang" { version-script-commands }
72971 +
72972 + The supported `lang's are `C', `C++', and `Java'. The linker will
72973 +iterate over the list of symbols at the link time and demangle them
72974 +according to `lang' before matching them to the patterns specified in
72975 +`version-script-commands'.
72976 +
72977 + Demangled names may contains spaces and other special characters. As
72978 +described above, you can use a glob pattern to match demangled names,
72979 +or you can use a double-quoted string to match the string exactly. In
72980 +the latter case, be aware that minor differences (such as differing
72981 +whitespace) between the version script and the demangler output will
72982 +cause a mismatch. As the exact string generated by the demangler might
72983 +change in the future, even if the mangled name does not, you should
72984 +check that all of your version directives are behaving as you expect
72985 +when you upgrade.
72986 +
72987 +\1f
72988 +File: ld.info, Node: Expressions, Next: Implicit Linker Scripts, Prev: VERSION, Up: Scripts
72989 +
72990 +3.10 Expressions in Linker Scripts
72991 +==================================
72992 +
72993 +The syntax for expressions in the linker script language is identical to
72994 +that of C expressions. All expressions are evaluated as integers. All
72995 +expressions are evaluated in the same size, which is 32 bits if both the
72996 +host and target are 32 bits, and is otherwise 64 bits.
72997 +
72998 + You can use and set symbol values in expressions.
72999 +
73000 + The linker defines several special purpose builtin functions for use
73001 +in expressions.
73002 +
73003 +* Menu:
73004 +
73005 +* Constants:: Constants
73006 +* Symbols:: Symbol Names
73007 +* Orphan Sections:: Orphan Sections
73008 +* Location Counter:: The Location Counter
73009 +* Operators:: Operators
73010 +* Evaluation:: Evaluation
73011 +* Expression Section:: The Section of an Expression
73012 +* Builtin Functions:: Builtin Functions
73013 +
73014 +\1f
73015 +File: ld.info, Node: Constants, Next: Symbols, Up: Expressions
73016 +
73017 +3.10.1 Constants
73018 +----------------
73019 +
73020 +All constants are integers.
73021 +
73022 + As in C, the linker considers an integer beginning with `0' to be
73023 +octal, and an integer beginning with `0x' or `0X' to be hexadecimal.
73024 +The linker considers other integers to be decimal.
73025 +
73026 + In addition, you can use the suffixes `K' and `M' to scale a
73027 +constant by `1024' or `1024*1024' respectively. For example, the
73028 +following all refer to the same quantity:
73029 + _fourk_1 = 4K;
73030 + _fourk_2 = 4096;
73031 + _fourk_3 = 0x1000;
73032 +
73033 +\1f
73034 +File: ld.info, Node: Symbols, Next: Orphan Sections, Prev: Constants, Up: Expressions
73035 +
73036 +3.10.2 Symbol Names
73037 +-------------------
73038 +
73039 +Unless quoted, symbol names start with a letter, underscore, or period
73040 +and may include letters, digits, underscores, periods, and hyphens.
73041 +Unquoted symbol names must not conflict with any keywords. You can
73042 +specify a symbol which contains odd characters or has the same name as a
73043 +keyword by surrounding the symbol name in double quotes:
73044 + "SECTION" = 9;
73045 + "with a space" = "also with a space" + 10;
73046 +
73047 + Since symbols can contain many non-alphabetic characters, it is
73048 +safest to delimit symbols with spaces. For example, `A-B' is one
73049 +symbol, whereas `A - B' is an expression involving subtraction.
73050 +
73051 +\1f
73052 +File: ld.info, Node: Orphan Sections, Next: Location Counter, Prev: Symbols, Up: Expressions
73053 +
73054 +3.10.3 Orphan Sections
73055 +----------------------
73056 +
73057 +Orphan sections are sections present in the input files which are not
73058 +explicitly placed into the output file by the linker script. The
73059 +linker will still copy these sections into the output file, but it has
73060 +to guess as to where they should be placed. The linker uses a simple
73061 +heuristic to do this. It attempts to place orphan sections after
73062 +non-orphan sections of the same attribute, such as code vs data,
73063 +loadable vs non-loadable, etc. If there is not enough room to do this
73064 +then it places at the end of the file.
73065 +
73066 + For ELF targets, the attribute of the section includes section type
73067 +as well as section flag.
73068 +
73069 +\1f
73070 +File: ld.info, Node: Location Counter, Next: Operators, Prev: Orphan Sections, Up: Expressions
73071 +
73072 +3.10.4 The Location Counter
73073 +---------------------------
73074 +
73075 +The special linker variable "dot" `.' always contains the current
73076 +output location counter. Since the `.' always refers to a location in
73077 +an output section, it may only appear in an expression within a
73078 +`SECTIONS' command. The `.' symbol may appear anywhere that an
73079 +ordinary symbol is allowed in an expression.
73080 +
73081 + Assigning a value to `.' will cause the location counter to be
73082 +moved. This may be used to create holes in the output section. The
73083 +location counter may never be moved backwards.
73084 +
73085 + SECTIONS
73086 + {
73087 + output :
73088 + {
73089 + file1(.text)
73090 + . = . + 1000;
73091 + file2(.text)
73092 + . += 1000;
73093 + file3(.text)
73094 + } = 0x12345678;
73095 + }
73096 + In the previous example, the `.text' section from `file1' is located
73097 +at the beginning of the output section `output'. It is followed by a
73098 +1000 byte gap. Then the `.text' section from `file2' appears, also
73099 +with a 1000 byte gap following before the `.text' section from `file3'.
73100 +The notation `= 0x12345678' specifies what data to write in the gaps
73101 +(*note Output Section Fill::).
73102 +
73103 + Note: `.' actually refers to the byte offset from the start of the
73104 +current containing object. Normally this is the `SECTIONS' statement,
73105 +whose start address is 0, hence `.' can be used as an absolute address.
73106 +If `.' is used inside a section description however, it refers to the
73107 +byte offset from the start of that section, not an absolute address.
73108 +Thus in a script like this:
73109 +
73110 + SECTIONS
73111 + {
73112 + . = 0x100
73113 + .text: {
73114 + *(.text)
73115 + . = 0x200
73116 + }
73117 + . = 0x500
73118 + .data: {
73119 + *(.data)
73120 + . += 0x600
73121 + }
73122 + }
73123 +
73124 + The `.text' section will be assigned a starting address of 0x100 and
73125 +a size of exactly 0x200 bytes, even if there is not enough data in the
73126 +`.text' input sections to fill this area. (If there is too much data,
73127 +an error will be produced because this would be an attempt to move `.'
73128 +backwards). The `.data' section will start at 0x500 and it will have
73129 +an extra 0x600 bytes worth of space after the end of the values from
73130 +the `.data' input sections and before the end of the `.data' output
73131 +section itself.
73132 +
73133 + Setting symbols to the value of the location counter outside of an
73134 +output section statement can result in unexpected values if the linker
73135 +needs to place orphan sections. For example, given the following:
73136 +
73137 + SECTIONS
73138 + {
73139 + start_of_text = . ;
73140 + .text: { *(.text) }
73141 + end_of_text = . ;
73142 +
73143 + start_of_data = . ;
73144 + .data: { *(.data) }
73145 + end_of_data = . ;
73146 + }
73147 +
73148 + If the linker needs to place some input section, e.g. `.rodata', not
73149 +mentioned in the script, it might choose to place that section between
73150 +`.text' and `.data'. You might think the linker should place `.rodata'
73151 +on the blank line in the above script, but blank lines are of no
73152 +particular significance to the linker. As well, the linker doesn't
73153 +associate the above symbol names with their sections. Instead, it
73154 +assumes that all assignments or other statements belong to the previous
73155 +output section, except for the special case of an assignment to `.'.
73156 +I.e., the linker will place the orphan `.rodata' section as if the
73157 +script was written as follows:
73158 +
73159 + SECTIONS
73160 + {
73161 + start_of_text = . ;
73162 + .text: { *(.text) }
73163 + end_of_text = . ;
73164 +
73165 + start_of_data = . ;
73166 + .rodata: { *(.rodata) }
73167 + .data: { *(.data) }
73168 + end_of_data = . ;
73169 + }
73170 +
73171 + This may or may not be the script author's intention for the value of
73172 +`start_of_data'. One way to influence the orphan section placement is
73173 +to assign the location counter to itself, as the linker assumes that an
73174 +assignment to `.' is setting the start address of a following output
73175 +section and thus should be grouped with that section. So you could
73176 +write:
73177 +
73178 + SECTIONS
73179 + {
73180 + start_of_text = . ;
73181 + .text: { *(.text) }
73182 + end_of_text = . ;
73183 +
73184 + . = . ;
73185 + start_of_data = . ;
73186 + .data: { *(.data) }
73187 + end_of_data = . ;
73188 + }
73189 +
73190 + Now, the orphan `.rodata' section will be placed between
73191 +`end_of_text' and `start_of_data'.
73192 +
73193 +\1f
73194 +File: ld.info, Node: Operators, Next: Evaluation, Prev: Location Counter, Up: Expressions
73195 +
73196 +3.10.5 Operators
73197 +----------------
73198 +
73199 +The linker recognizes the standard C set of arithmetic operators, with
73200 +the standard bindings and precedence levels:
73201 + precedence associativity Operators Notes
73202 + (highest)
73203 + 1 left ! - ~ (1)
73204 + 2 left * / %
73205 + 3 left + -
73206 + 4 left >> <<
73207 + 5 left == != > < <= >=
73208 + 6 left &
73209 + 7 left |
73210 + 8 left &&
73211 + 9 left ||
73212 + 10 right ? :
73213 + 11 right &= += -= *= /= (2)
73214 + (lowest)
73215 + Notes: (1) Prefix operators (2) *Note Assignments::.
73216 +
73217 +\1f
73218 +File: ld.info, Node: Evaluation, Next: Expression Section, Prev: Operators, Up: Expressions
73219 +
73220 +3.10.6 Evaluation
73221 +-----------------
73222 +
73223 +The linker evaluates expressions lazily. It only computes the value of
73224 +an expression when absolutely necessary.
73225 +
73226 + The linker needs some information, such as the value of the start
73227 +address of the first section, and the origins and lengths of memory
73228 +regions, in order to do any linking at all. These values are computed
73229 +as soon as possible when the linker reads in the linker script.
73230 +
73231 + However, other values (such as symbol values) are not known or needed
73232 +until after storage allocation. Such values are evaluated later, when
73233 +other information (such as the sizes of output sections) is available
73234 +for use in the symbol assignment expression.
73235 +
73236 + The sizes of sections cannot be known until after allocation, so
73237 +assignments dependent upon these are not performed until after
73238 +allocation.
73239 +
73240 + Some expressions, such as those depending upon the location counter
73241 +`.', must be evaluated during section allocation.
73242 +
73243 + If the result of an expression is required, but the value is not
73244 +available, then an error results. For example, a script like the
73245 +following
73246 + SECTIONS
73247 + {
73248 + .text 9+this_isnt_constant :
73249 + { *(.text) }
73250 + }
73251 +will cause the error message `non constant expression for initial
73252 +address'.
73253 +
73254 +\1f
73255 +File: ld.info, Node: Expression Section, Next: Builtin Functions, Prev: Evaluation, Up: Expressions
73256 +
73257 +3.10.7 The Section of an Expression
73258 +-----------------------------------
73259 +
73260 +When the linker evaluates an expression, the result is either absolute
73261 +or relative to some section. A relative expression is expressed as a
73262 +fixed offset from the base of a section.
73263 +
73264 + The position of the expression within the linker script determines
73265 +whether it is absolute or relative. An expression which appears within
73266 +an output section definition is relative to the base of the output
73267 +section. An expression which appears elsewhere will be absolute.
73268 +
73269 + A symbol set to a relative expression will be relocatable if you
73270 +request relocatable output using the `-r' option. That means that a
73271 +further link operation may change the value of the symbol. The symbol's
73272 +section will be the section of the relative expression.
73273 +
73274 + A symbol set to an absolute expression will retain the same value
73275 +through any further link operation. The symbol will be absolute, and
73276 +will not have any particular associated section.
73277 +
73278 + You can use the builtin function `ABSOLUTE' to force an expression
73279 +to be absolute when it would otherwise be relative. For example, to
73280 +create an absolute symbol set to the address of the end of the output
73281 +section `.data':
73282 + SECTIONS
73283 + {
73284 + .data : { *(.data) _edata = ABSOLUTE(.); }
73285 + }
73286 + If `ABSOLUTE' were not used, `_edata' would be relative to the
73287 +`.data' section.
73288 +
73289 +\1f
73290 +File: ld.info, Node: Builtin Functions, Prev: Expression Section, Up: Expressions
73291 +
73292 +3.10.8 Builtin Functions
73293 +------------------------
73294 +
73295 +The linker script language includes a number of builtin functions for
73296 +use in linker script expressions.
73297 +
73298 +`ABSOLUTE(EXP)'
73299 + Return the absolute (non-relocatable, as opposed to non-negative)
73300 + value of the expression EXP. Primarily useful to assign an
73301 + absolute value to a symbol within a section definition, where
73302 + symbol values are normally section relative. *Note Expression
73303 + Section::.
73304 +
73305 +`ADDR(SECTION)'
73306 + Return the absolute address (the VMA) of the named SECTION. Your
73307 + script must previously have defined the location of that section.
73308 + In the following example, `symbol_1' and `symbol_2' are assigned
73309 + identical values:
73310 + SECTIONS { ...
73311 + .output1 :
73312 + {
73313 + start_of_output_1 = ABSOLUTE(.);
73314 + ...
73315 + }
73316 + .output :
73317 + {
73318 + symbol_1 = ADDR(.output1);
73319 + symbol_2 = start_of_output_1;
73320 + }
73321 + ... }
73322 +
73323 +`ALIGN(ALIGN)'
73324 +`ALIGN(EXP,ALIGN)'
73325 + Return the location counter (`.') or arbitrary expression aligned
73326 + to the next ALIGN boundary. The single operand `ALIGN' doesn't
73327 + change the value of the location counter--it just does arithmetic
73328 + on it. The two operand `ALIGN' allows an arbitrary expression to
73329 + be aligned upwards (`ALIGN(ALIGN)' is equivalent to `ALIGN(.,
73330 + ALIGN)').
73331 +
73332 + Here is an example which aligns the output `.data' section to the
73333 + next `0x2000' byte boundary after the preceding section and sets a
73334 + variable within the section to the next `0x8000' boundary after the
73335 + input sections:
73336 + SECTIONS { ...
73337 + .data ALIGN(0x2000): {
73338 + *(.data)
73339 + variable = ALIGN(0x8000);
73340 + }
73341 + ... }
73342 + The first use of `ALIGN' in this example specifies the
73343 + location of a section because it is used as the optional ADDRESS
73344 + attribute of a section definition (*note Output Section
73345 + Address::). The second use of `ALIGN' is used to defines the
73346 + value of a symbol.
73347 +
73348 + The builtin function `NEXT' is closely related to `ALIGN'.
73349 +
73350 +`BLOCK(EXP)'
73351 + This is a synonym for `ALIGN', for compatibility with older linker
73352 + scripts. It is most often seen when setting the address of an
73353 + output section.
73354 +
73355 +`DATA_SEGMENT_ALIGN(MAXPAGESIZE, COMMONPAGESIZE)'
73356 + This is equivalent to either
73357 + (ALIGN(MAXPAGESIZE) + (. & (MAXPAGESIZE - 1)))
73358 + or
73359 + (ALIGN(MAXPAGESIZE) + (. & (MAXPAGESIZE - COMMONPAGESIZE)))
73360 + depending on whether the latter uses fewer COMMONPAGESIZE sized
73361 + pages for the data segment (area between the result of this
73362 + expression and `DATA_SEGMENT_END') than the former or not. If the
73363 + latter form is used, it means COMMONPAGESIZE bytes of runtime
73364 + memory will be saved at the expense of up to COMMONPAGESIZE wasted
73365 + bytes in the on-disk file.
73366 +
73367 + This expression can only be used directly in `SECTIONS' commands,
73368 + not in any output section descriptions and only once in the linker
73369 + script. COMMONPAGESIZE should be less or equal to MAXPAGESIZE and
73370 + should be the system page size the object wants to be optimized
73371 + for (while still working on system page sizes up to MAXPAGESIZE).
73372 +
73373 + Example:
73374 + . = DATA_SEGMENT_ALIGN(0x10000, 0x2000);
73375 +
73376 +`DATA_SEGMENT_END(EXP)'
73377 + This defines the end of data segment for `DATA_SEGMENT_ALIGN'
73378 + evaluation purposes.
73379 +
73380 + . = DATA_SEGMENT_END(.);
73381 +
73382 +`DATA_SEGMENT_RELRO_END(OFFSET, EXP)'
73383 + This defines the end of the `PT_GNU_RELRO' segment when `-z relro'
73384 + option is used. Second argument is returned. When `-z relro'
73385 + option is not present, `DATA_SEGMENT_RELRO_END' does nothing,
73386 + otherwise `DATA_SEGMENT_ALIGN' is padded so that EXP + OFFSET is
73387 + aligned to the most commonly used page boundary for particular
73388 + target. If present in the linker script, it must always come in
73389 + between `DATA_SEGMENT_ALIGN' and `DATA_SEGMENT_END'.
73390 +
73391 + . = DATA_SEGMENT_RELRO_END(24, .);
73392 +
73393 +`DEFINED(SYMBOL)'
73394 + Return 1 if SYMBOL is in the linker global symbol table and is
73395 + defined before the statement using DEFINED in the script, otherwise
73396 + return 0. You can use this function to provide default values for
73397 + symbols. For example, the following script fragment shows how to
73398 + set a global symbol `begin' to the first location in the `.text'
73399 + section--but if a symbol called `begin' already existed, its value
73400 + is preserved:
73401 +
73402 + SECTIONS { ...
73403 + .text : {
73404 + begin = DEFINED(begin) ? begin : . ;
73405 + ...
73406 + }
73407 + ...
73408 + }
73409 +
73410 +`LENGTH(MEMORY)'
73411 + Return the length of the memory region named MEMORY.
73412 +
73413 +`LOADADDR(SECTION)'
73414 + Return the absolute LMA of the named SECTION. This is normally
73415 + the same as `ADDR', but it may be different if the `AT' attribute
73416 + is used in the output section definition (*note Output Section
73417 + LMA::).
73418 +
73419 +`MAX(EXP1, EXP2)'
73420 + Returns the maximum of EXP1 and EXP2.
73421 +
73422 +`MIN(EXP1, EXP2)'
73423 + Returns the minimum of EXP1 and EXP2.
73424 +
73425 +`NEXT(EXP)'
73426 + Return the next unallocated address that is a multiple of EXP.
73427 + This function is closely related to `ALIGN(EXP)'; unless you use
73428 + the `MEMORY' command to define discontinuous memory for the output
73429 + file, the two functions are equivalent.
73430 +
73431 +`ORIGIN(MEMORY)'
73432 + Return the origin of the memory region named MEMORY.
73433 +
73434 +`SEGMENT_START(SEGMENT, DEFAULT)'
73435 + Return the base address of the named SEGMENT. If an explicit
73436 + value has been given for this segment (with a command-line `-T'
73437 + option) that value will be returned; otherwise the value will be
73438 + DEFAULT. At present, the `-T' command-line option can only be
73439 + used to set the base address for the "text", "data", and "bss"
73440 + sections, but you use `SEGMENT_START' with any segment name.
73441 +
73442 +`SIZEOF(SECTION)'
73443 + Return the size in bytes of the named SECTION, if that section has
73444 + been allocated. If the section has not been allocated when this is
73445 + evaluated, the linker will report an error. In the following
73446 + example, `symbol_1' and `symbol_2' are assigned identical values:
73447 + SECTIONS{ ...
73448 + .output {
73449 + .start = . ;
73450 + ...
73451 + .end = . ;
73452 + }
73453 + symbol_1 = .end - .start ;
73454 + symbol_2 = SIZEOF(.output);
73455 + ... }
73456 +
73457 +`SIZEOF_HEADERS'
73458 +`sizeof_headers'
73459 + Return the size in bytes of the output file's headers. This is
73460 + information which appears at the start of the output file. You
73461 + can use this number when setting the start address of the first
73462 + section, if you choose, to facilitate paging.
73463 +
73464 + When producing an ELF output file, if the linker script uses the
73465 + `SIZEOF_HEADERS' builtin function, the linker must compute the
73466 + number of program headers before it has determined all the section
73467 + addresses and sizes. If the linker later discovers that it needs
73468 + additional program headers, it will report an error `not enough
73469 + room for program headers'. To avoid this error, you must avoid
73470 + using the `SIZEOF_HEADERS' function, or you must rework your linker
73471 + script to avoid forcing the linker to use additional program
73472 + headers, or you must define the program headers yourself using the
73473 + `PHDRS' command (*note PHDRS::).
73474 +
73475 +\1f
73476 +File: ld.info, Node: Implicit Linker Scripts, Prev: Expressions, Up: Scripts
73477 +
73478 +3.11 Implicit Linker Scripts
73479 +============================
73480 +
73481 +If you specify a linker input file which the linker can not recognize as
73482 +an object file or an archive file, it will try to read the file as a
73483 +linker script. If the file can not be parsed as a linker script, the
73484 +linker will report an error.
73485 +
73486 + An implicit linker script will not replace the default linker script.
73487 +
73488 + Typically an implicit linker script would contain only symbol
73489 +assignments, or the `INPUT', `GROUP', or `VERSION' commands.
73490 +
73491 + Any input files read because of an implicit linker script will be
73492 +read at the position in the command line where the implicit linker
73493 +script was read. This can affect archive searching.
73494 +
73495 +\1f
73496 +File: ld.info, Node: Machine Dependent, Next: BFD, Prev: Scripts, Up: Top
73497 +
73498 +4 Machine Dependent Features
73499 +****************************
73500 +
73501 +`ld' has additional features on some platforms; the following sections
73502 +describe them. Machines where `ld' has no additional functionality are
73503 +not listed.
73504 +
73505 +* Menu:
73506 +
73507 +
73508 +* H8/300:: `ld' and the H8/300
73509 +
73510 +* i960:: `ld' and the Intel 960 family
73511 +
73512 +* ARM:: `ld' and the ARM family
73513 +
73514 +* HPPA ELF32:: `ld' and HPPA 32-bit ELF
73515 +
73516 +* MMIX:: `ld' and MMIX
73517 +
73518 +* MSP430:: `ld' and MSP430
73519 +
73520 +* PowerPC ELF32:: `ld' and PowerPC 32-bit ELF Support
73521 +
73522 +* PowerPC64 ELF64:: `ld' and PowerPC64 64-bit ELF Support
73523 +
73524 +* TI COFF:: `ld' and TI COFF
73525 +
73526 +* WIN32:: `ld' and WIN32 (cygwin/mingw)
73527 +
73528 +* Xtensa:: `ld' and Xtensa Processors
73529 +
73530 +\1f
73531 +File: ld.info, Node: H8/300, Next: i960, Up: Machine Dependent
73532 +
73533 +4.1 `ld' and the H8/300
73534 +=======================
73535 +
73536 +For the H8/300, `ld' can perform these global optimizations when you
73537 +specify the `--relax' command-line option.
73538 +
73539 +_relaxing address modes_
73540 + `ld' finds all `jsr' and `jmp' instructions whose targets are
73541 + within eight bits, and turns them into eight-bit program-counter
73542 + relative `bsr' and `bra' instructions, respectively.
73543 +
73544 +_synthesizing instructions_
73545 + `ld' finds all `mov.b' instructions which use the sixteen-bit
73546 + absolute address form, but refer to the top page of memory, and
73547 + changes them to use the eight-bit address form. (That is: the
73548 + linker turns `mov.b `@'AA:16' into `mov.b `@'AA:8' whenever the
73549 + address AA is in the top page of memory).
73550 +
73551 +_bit manipulation instructions_
73552 + `ld' finds all bit manipulation instructions like `band, bclr,
73553 + biand, bild, bior, bist, bixor, bld, bnot, bor, bset, bst, btst,
73554 + bxor' which use 32 bit and 16 bit absolute address form, but refer
73555 + to the top page of memory, and changes them to use the 8 bit
73556 + address form. (That is: the linker turns `bset #xx:3,`@'AA:32'
73557 + into `bset #xx:3,`@'AA:8' whenever the address AA is in the top
73558 + page of memory).
73559 +
73560 +_system control instructions_
73561 + `ld' finds all `ldc.w, stc.w' instrcutions which use the 32 bit
73562 + absolute address form, but refer to the top page of memory, and
73563 + changes them to use 16 bit address form. (That is: the linker
73564 + turns `ldc.w `@'AA:32,ccr' into `ldc.w `@'AA:16,ccr' whenever the
73565 + address AA is in the top page of memory).
73566 +
73567 +\1f
73568 +File: ld.info, Node: i960, Next: ARM, Prev: H8/300, Up: Machine Dependent
73569 +
73570 +4.2 `ld' and the Intel 960 Family
73571 +=================================
73572 +
73573 +You can use the `-AARCHITECTURE' command line option to specify one of
73574 +the two-letter names identifying members of the 960 family; the option
73575 +specifies the desired output target, and warns of any incompatible
73576 +instructions in the input files. It also modifies the linker's search
73577 +strategy for archive libraries, to support the use of libraries
73578 +specific to each particular architecture, by including in the search
73579 +loop names suffixed with the string identifying the architecture.
73580 +
73581 + For example, if your `ld' command line included `-ACA' as well as
73582 +`-ltry', the linker would look (in its built-in search paths, and in
73583 +any paths you specify with `-L') for a library with the names
73584 +
73585 + try
73586 + libtry.a
73587 + tryca
73588 + libtryca.a
73589 +
73590 +The first two possibilities would be considered in any event; the last
73591 +two are due to the use of `-ACA'.
73592 +
73593 + You can meaningfully use `-A' more than once on a command line, since
73594 +the 960 architecture family allows combination of target architectures;
73595 +each use will add another pair of name variants to search for when `-l'
73596 +specifies a library.
73597 +
73598 + `ld' supports the `--relax' option for the i960 family. If you
73599 +specify `--relax', `ld' finds all `balx' and `calx' instructions whose
73600 +targets are within 24 bits, and turns them into 24-bit program-counter
73601 +relative `bal' and `cal' instructions, respectively. `ld' also turns
73602 +`cal' instructions into `bal' instructions when it determines that the
73603 +target subroutine is a leaf routine (that is, the target subroutine does
73604 +not itself call any subroutines).
73605 +
73606 +\1f
73607 +File: ld.info, Node: ARM, Next: HPPA ELF32, Prev: i960, Up: Machine Dependent
73608 +
73609 +4.3 `ld' and the ARM family
73610 +===========================
73611 +
73612 +For the ARM, `ld' will generate code stubs to allow functions calls
73613 +betweem ARM and Thumb code. These stubs only work with code that has
73614 +been compiled and assembled with the `-mthumb-interwork' command line
73615 +option. If it is necessary to link with old ARM object files or
73616 +libraries, which have not been compiled with the -mthumb-interwork
73617 +option then the `--support-old-code' command line switch should be
73618 +given to the linker. This will make it generate larger stub functions
73619 +which will work with non-interworking aware ARM code. Note, however,
73620 +the linker does not support generating stubs for function calls to
73621 +non-interworking aware Thumb code.
73622 +
73623 + The `--thumb-entry' switch is a duplicate of the generic `--entry'
73624 +switch, in that it sets the program's starting address. But it also
73625 +sets the bottom bit of the address, so that it can be branched to using
73626 +a BX instruction, and the program will start executing in Thumb mode
73627 +straight away.
73628 +
73629 + The `--be8' switch instructs `ld' to generate BE8 format
73630 +executables. This option is only valid when linking big-endian objects.
73631 +The resulting image will contain big-endian data and little-endian code.
73632 +
73633 + The `R_ARM_TARGET1' relocation is typically used for entries in the
73634 +`.init_array' section. It is interpreted as either `R_ARM_REL32' or
73635 +`R_ARM_ABS32', depending on the target. The `--target1-rel' and
73636 +`--target1-abs' switches override the default.
73637 +
73638 + The `--target2=type' switch overrides the default definition of the
73639 +`R_ARM_TARGET2' relocation. Valid values for `type', their meanings,
73640 +and target defaults are as follows:
73641 +`rel'
73642 + `R_ARM_REL32' (arm*-*-elf, arm*-*-eabi)
73643 +
73644 +`abs'
73645 + `R_ARM_ABS32' (arm*-*-symbianelf)
73646 +
73647 +`got-rel'
73648 + `R_ARM_GOT_PREL' (arm*-*-linux, arm*-*-*bsd)
73649 +
73650 + The `R_ARM_V4BX' relocation (defined by the ARM AAELF specification)
73651 +enables objects compiled for the ARMv4 architecture to be
73652 +interworking-safe when linked with other objects compiled for ARMv4t,
73653 +but also allows pure ARMv4 binaries to be built from the same ARMv4
73654 +objects.
73655 +
73656 + In the latter case, the switch `--fix-v4bx' must be passed to the
73657 +linker, which causes v4t `BX rM' instructions to be rewritten as `MOV
73658 +PC,rM', since v4 processors do not have a `BX' instruction.
73659 +
73660 + In the former case, the switch should not be used, and `R_ARM_V4BX'
73661 +relocations are ignored.
73662 +
73663 + The `--use-blx' switch enables the linker to use ARM/Thumb BLX
73664 +instructions (available on ARMv5t and above) in various situations.
73665 +Currently it is used to perform calls via the PLT from Thumb code using
73666 +BLX rather than using BX and a mode-switching stub before each PLT
73667 +entry. This should lead to such calls executing slightly faster.
73668 +
73669 + This option is enabled implicitly for SymbianOS, so there is no need
73670 +to specify it if you are using that target.
73671 +
73672 +\1f
73673 +File: ld.info, Node: HPPA ELF32, Next: MMIX, Prev: ARM, Up: Machine Dependent
73674 +
73675 +4.4 `ld' and HPPA 32-bit ELF Support
73676 +====================================
73677 +
73678 +When generating a shared library, `ld' will by default generate import
73679 +stubs suitable for use with a single sub-space application. The
73680 +`--multi-subspace' switch causes `ld' to generate export stubs, and
73681 +different (larger) import stubs suitable for use with multiple
73682 +sub-spaces.
73683 +
73684 + Long branch stubs and import/export stubs are placed by `ld' in stub
73685 +sections located between groups of input sections. `--stub-group-size'
73686 +specifies the maximum size of a group of input sections handled by one
73687 +stub section. Since branch offsets are signed, a stub section may
73688 +serve two groups of input sections, one group before the stub section,
73689 +and one group after it. However, when using conditional branches that
73690 +require stubs, it may be better (for branch prediction) that stub
73691 +sections only serve one group of input sections. A negative value for
73692 +`N' chooses this scheme, ensuring that branches to stubs always use a
73693 +negative offset. Two special values of `N' are recognized, `1' and
73694 +`-1'. These both instruct `ld' to automatically size input section
73695 +groups for the branch types detected, with the same behaviour regarding
73696 +stub placement as other positive or negative values of `N' respectively.
73697 +
73698 + Note that `--stub-group-size' does not split input sections. A
73699 +single input section larger than the group size specified will of course
73700 +create a larger group (of one section). If input sections are too
73701 +large, it may not be possible for a branch to reach its stub.
73702 +
73703 +\1f
73704 +File: ld.info, Node: MMIX, Next: MSP430, Prev: HPPA ELF32, Up: Machine Dependent
73705 +
73706 +4.5 `ld' and MMIX
73707 +=================
73708 +
73709 +For MMIX, there is a choice of generating `ELF' object files or `mmo'
73710 +object files when linking. The simulator `mmix' understands the `mmo'
73711 +format. The binutils `objcopy' utility can translate between the two
73712 +formats.
73713 +
73714 + There is one special section, the `.MMIX.reg_contents' section.
73715 +Contents in this section is assumed to correspond to that of global
73716 +registers, and symbols referring to it are translated to special
73717 +symbols, equal to registers. In a final link, the start address of the
73718 +`.MMIX.reg_contents' section corresponds to the first allocated global
73719 +register multiplied by 8. Register `$255' is not included in this
73720 +section; it is always set to the program entry, which is at the symbol
73721 +`Main' for `mmo' files.
73722 +
73723 + Symbols with the prefix `__.MMIX.start.', for example
73724 +`__.MMIX.start..text' and `__.MMIX.start..data' are special; there must
73725 +be only one each, even if they are local. The default linker script
73726 +uses these to set the default start address of a section.
73727 +
73728 + Initial and trailing multiples of zero-valued 32-bit words in a
73729 +section, are left out from an mmo file.
73730 +
73731 +\1f
73732 +File: ld.info, Node: MSP430, Next: PowerPC ELF32, Prev: MMIX, Up: Machine Dependent
73733 +
73734 +4.6 `ld' and MSP430
73735 +===================
73736 +
73737 +For the MSP430 it is possible to select the MPU architecture. The flag
73738 +`-m [mpu type]' will select an appropriate linker script for selected
73739 +MPU type. (To get a list of known MPUs just pass `-m help' option to
73740 +the linker).
73741 +
73742 + The linker will recognize some extra sections which are MSP430
73743 +specific:
73744 +
73745 +``.vectors''
73746 + Defines a portion of ROM where interrupt vectors located.
73747 +
73748 +``.bootloader''
73749 + Defines the bootloader portion of the ROM (if applicable). Any
73750 + code in this section will be uploaded to the MPU.
73751 +
73752 +``.infomem''
73753 + Defines an information memory section (if applicable). Any code in
73754 + this section will be uploaded to the MPU.
73755 +
73756 +``.infomemnobits''
73757 + This is the same as the `.infomem' section except that any code in
73758 + this section will not be uploaded to the MPU.
73759 +
73760 +``.noinit''
73761 + Denotes a portion of RAM located above `.bss' section.
73762 +
73763 + The last two sections are used by gcc.
73764 +
73765 +\1f
73766 +File: ld.info, Node: PowerPC ELF32, Next: PowerPC64 ELF64, Prev: MSP430, Up: Machine Dependent
73767 +
73768 +4.7 `ld' and PowerPC 32-bit ELF Support
73769 +=======================================
73770 +
73771 +Branches on PowerPC processors are limited to a signed 26-bit
73772 +displacement, which may result in `ld' giving `relocation truncated to
73773 +fit' errors with very large programs. `--relax' enables the generation
73774 +of trampolines that can access the entire 32-bit address space. These
73775 +trampolines are inserted at section boundaries, so may not themselves
73776 +be reachable if an input section exceeds 33M in size.
73777 +
73778 +`--bss-plt'
73779 + Current PowerPC GCC accepts a `-msecure-plt' option that generates
73780 + code capable of using a newer PLT and GOT layout that has the
73781 + security advantage of no executable section ever needing to be
73782 + writable and no writable section ever being executable. PowerPC
73783 + `ld' will generate this layout, including stubs to access the PLT,
73784 + if all input files (including startup and static libraries) were
73785 + compiled with `-msecure-plt'. `--bss-plt' forces the old BSS PLT
73786 + (and GOT layout) which can give slightly better performance.
73787 +
73788 +`--sdata-got'
73789 + The new secure PLT and GOT are placed differently relative to other
73790 + sections compared to older BSS PLT and GOT placement. The
73791 + location of `.plt' must change because the new secure PLT is an
73792 + initialized section while the old PLT is uninitialized. The
73793 + reason for the `.got' change is more subtle: The new placement
73794 + allows `.got' to be read-only in applications linked with `-z
73795 + relro -z now'. However, this placement means that `.sdata' cannot
73796 + always be used in shared libraries, because the PowerPC ABI
73797 + accesses `.sdata' in shared libraries from the GOT pointer.
73798 + `--sdata-got' forces the old GOT placement. PowerPC GCC doesn't
73799 + use `.sdata' in shared libraries, so this option is really only
73800 + useful for other compilers that may do so.
73801 +
73802 +`--emit-stub-syms'
73803 + This option causes `ld' to label linker stubs with a local symbol
73804 + that encodes the stub type and destination.
73805 +
73806 +`--no-tls-optimize'
73807 + PowerPC `ld' normally performs some optimization of code sequences
73808 + used to access Thread-Local Storage. Use this option to disable
73809 + the optimization.
73810 +
73811 +\1f
73812 +File: ld.info, Node: PowerPC64 ELF64, Next: TI COFF, Prev: PowerPC ELF32, Up: Machine Dependent
73813 +
73814 +4.8 `ld' and PowerPC64 64-bit ELF Support
73815 +=========================================
73816 +
73817 +`--stub-group-size'
73818 + Long branch stubs, PLT call stubs and TOC adjusting stubs are
73819 + placed by `ld' in stub sections located between groups of input
73820 + sections. `--stub-group-size' specifies the maximum size of a
73821 + group of input sections handled by one stub section. Since branch
73822 + offsets are signed, a stub section may serve two groups of input
73823 + sections, one group before the stub section, and one group after
73824 + it. However, when using conditional branches that require stubs,
73825 + it may be better (for branch prediction) that stub sections only
73826 + serve one group of input sections. A negative value for `N'
73827 + chooses this scheme, ensuring that branches to stubs always use a
73828 + negative offset. Two special values of `N' are recognized, `1'
73829 + and `-1'. These both instruct `ld' to automatically size input
73830 + section groups for the branch types detected, with the same
73831 + behaviour regarding stub placement as other positive or negative
73832 + values of `N' respectively.
73833 +
73834 + Note that `--stub-group-size' does not split input sections. A
73835 + single input section larger than the group size specified will of
73836 + course create a larger group (of one section). If input sections
73837 + are too large, it may not be possible for a branch to reach its
73838 + stub.
73839 +
73840 +`--emit-stub-syms'
73841 + This option causes `ld' to label linker stubs with a local symbol
73842 + that encodes the stub type and destination.
73843 +
73844 +`--dotsyms, --no-dotsyms'
73845 + These two options control how `ld' interprets version patterns in
73846 + a version script. Older PowerPC64 compilers emitted both a
73847 + function descriptor symbol with the same name as the function, and
73848 + a code entry symbol with the name prefixed by a dot (`.'). To
73849 + properly version a function `foo', the version script thus needs
73850 + to control both `foo' and `.foo'. The option `--dotsyms', on by
73851 + default, automatically adds the required dot-prefixed patterns.
73852 + Use `--no-dotsyms' to disable this feature.
73853 +
73854 +`--no-tls-optimize'
73855 + PowerPC64 `ld' normally performs some optimization of code
73856 + sequences used to access Thread-Local Storage. Use this option to
73857 + disable the optimization.
73858 +
73859 +`--no-opd-optimize'
73860 + PowerPC64 `ld' normally removes `.opd' section entries
73861 + corresponding to deleted link-once functions, or functions removed
73862 + by the action of `--gc-sections' or linker scrip `/DISCARD/'. Use
73863 + this option to disable `.opd' optimization.
73864 +
73865 +`--non-overlapping-opd'
73866 + Some PowerPC64 compilers have an option to generate compressed
73867 + `.opd' entries spaced 16 bytes apart, overlapping the third word,
73868 + the static chain pointer (unused in C) with the first word of the
73869 + next entry. This option expands such entries to the full 24 bytes.
73870 +
73871 +`--no-toc-optimize'
73872 + PowerPC64 `ld' normally removes unused `.toc' section entries.
73873 + Such entries are detected by examining relocations that reference
73874 + the TOC in code sections. A reloc in a deleted code section marks
73875 + a TOC word as unneeded, while a reloc in a kept code section marks
73876 + a TOC word as needed. Since the TOC may reference itself, TOC
73877 + relocs are also examined. TOC words marked as both needed and
73878 + unneeded will of course be kept. TOC words without any referencing
73879 + reloc are assumed to be part of a multi-word entry, and are kept or
73880 + discarded as per the nearest marked preceding word. This works
73881 + reliably for compiler generated code, but may be incorrect if
73882 + assembly code is used to insert TOC entries. Use this option to
73883 + disable the optimization.
73884 +
73885 +`--no-multi-toc'
73886 + By default, PowerPC64 GCC generates code for a TOC model where TOC
73887 + entries are accessed with a 16-bit offset from r2. This limits the
73888 + total TOC size to 64K. PowerPC64 `ld' extends this limit by
73889 + grouping code sections such that each group uses less than 64K for
73890 + its TOC entries, then inserts r2 adjusting stubs between
73891 + inter-group calls. `ld' does not split apart input sections, so
73892 + cannot help if a single input file has a `.toc' section that
73893 + exceeds 64K, most likely from linking multiple files with `ld -r'.
73894 + Use this option to turn off this feature.
73895 +
73896 +\1f
73897 +File: ld.info, Node: TI COFF, Next: WIN32, Prev: PowerPC64 ELF64, Up: Machine Dependent
73898 +
73899 +4.9 `ld''s Support for Various TI COFF Versions
73900 +===============================================
73901 +
73902 +The `--format' switch allows selection of one of the various TI COFF
73903 +versions. The latest of this writing is 2; versions 0 and 1 are also
73904 +supported. The TI COFF versions also vary in header byte-order format;
73905 +`ld' will read any version or byte order, but the output header format
73906 +depends on the default specified by the specific target.
73907 +
73908 +\1f
73909 +File: ld.info, Node: WIN32, Next: Xtensa, Prev: TI COFF, Up: Machine Dependent
73910 +
73911 +4.10 `ld' and WIN32 (cygwin/mingw)
73912 +==================================
73913 +
73914 +This section describes some of the win32 specific `ld' issues. See
73915 +*Note Command Line Options: Options. for detailed decription of the
73916 +command line options mentioned here.
73917 +
73918 +_import libraries_
73919 + The standard Windows linker creates and uses so-called import
73920 + libraries, which contains information for linking to dll's. They
73921 + are regular static archives and are handled as any other static
73922 + archive. The cygwin and mingw ports of `ld' have specific support
73923 + for creating such libraries provided with the `--out-implib'
73924 + command line option.
73925 +
73926 +_exporting DLL symbols_
73927 + The cygwin/mingw `ld' has several ways to export symbols for dll's.
73928 +
73929 + _using auto-export functionality_
73930 + By default `ld' exports symbols with the auto-export
73931 + functionality, which is controlled by the following command
73932 + line options:
73933 +
73934 + * -export-all-symbols [This is the default]
73935 +
73936 + * -exclude-symbols
73937 +
73938 + * -exclude-libs
73939 +
73940 + If, however, `--export-all-symbols' is not given explicitly
73941 + on the command line, then the default auto-export behavior
73942 + will be _disabled_ if either of the following are true:
73943 +
73944 + * A DEF file is used.
73945 +
73946 + * Any symbol in any object file was marked with the
73947 + __declspec(dllexport) attribute.
73948 +
73949 + _using a DEF file_
73950 + Another way of exporting symbols is using a DEF file. A DEF
73951 + file is an ASCII file containing definitions of symbols which
73952 + should be exported when a dll is created. Usually it is
73953 + named `<dll name>.def' and is added as any other object file
73954 + to the linker's command line. The file's name must end in
73955 + `.def' or `.DEF'.
73956 +
73957 + gcc -o <output> <objectfiles> <dll name>.def
73958 +
73959 + Using a DEF file turns off the normal auto-export behavior,
73960 + unless the `--export-all-symbols' option is also used.
73961 +
73962 + Here is an example of a DEF file for a shared library called
73963 + `xyz.dll':
73964 +
73965 + LIBRARY "xyz.dll" BASE=0x20000000
73966 +
73967 + EXPORTS
73968 + foo
73969 + bar
73970 + _bar = bar
73971 + another_foo = abc.dll.afoo
73972 + var1 DATA
73973 +
73974 + This example defines a DLL with a non-default base address
73975 + and five symbols in the export table. The third exported
73976 + symbol `_bar' is an alias for the second. The fourth symbol,
73977 + `another_foo' is resolved by "forwarding" to another module
73978 + and treating it as an alias for `afoo' exported from the DLL
73979 + `abc.dll'. The final symbol `var1' is declared to be a data
73980 + object.
73981 +
73982 + The optional `LIBRARY <name>' command indicates the _internal_
73983 + name of the output DLL. If `<name>' does not include a suffix,
73984 + the default library suffix, `.DLL' is appended.
73985 +
73986 + When the .DEF file is used to build an application. rather
73987 + than a library, the `NAME <name>' command shoud be used
73988 + instead of `LIBRARY'. If `<name>' does not include a suffix,
73989 + the default executable suffix, `.EXE' is appended.
73990 +
73991 + With either `LIBRARY <name>' or `NAME <name>' the optional
73992 + specification `BASE = <number>' may be used to specify a
73993 + non-default base address for the image.
73994 +
73995 + If neither `LIBRARY <name>' nor `NAME <name>' is specified,
73996 + or they specify an empty string, the internal name is the
73997 + same as the filename specified on the command line.
73998 +
73999 + The complete specification of an export symbol is:
74000 +
74001 + EXPORTS
74002 + ( ( ( <name1> [ = <name2> ] )
74003 + | ( <name1> = <module-name> . <external-name>))
74004 + [ @ <integer> ] [NONAME] [DATA] [CONSTANT] [PRIVATE] ) *
74005 +
74006 + Declares `<name1>' as an exported symbol from the DLL, or
74007 + declares `<name1>' as an exported alias for `<name2>'; or
74008 + declares `<name1>' as a "forward" alias for the symbol
74009 + `<external-name>' in the DLL `<module-name>'. Optionally,
74010 + the symbol may be exported by the specified ordinal
74011 + `<integer>' alias.
74012 +
74013 + The optional keywords that follow the declaration indicate:
74014 +
74015 + `NONAME': Do not put the symbol name in the DLL's export
74016 + table. It will still be exported by its ordinal alias
74017 + (either the value specified by the .def specification or,
74018 + otherwise, the value assigned by the linker). The symbol
74019 + name, however, does remain visible in the import library (if
74020 + any), unless `PRIVATE' is also specified.
74021 +
74022 + `DATA': The symbol is a variable or object, rather than a
74023 + function. The import lib will export only an indirect
74024 + reference to `foo' as the symbol `_imp__foo' (ie, `foo' must
74025 + be resolved as `*_imp__foo').
74026 +
74027 + `CONSTANT': Like `DATA', but put the undecorated `foo' as
74028 + well as `_imp__foo' into the import library. Both refer to the
74029 + read-only import address table's pointer to the variable, not
74030 + to the variable itself. This can be dangerous. If the user
74031 + code fails to add the `dllimport' attribute and also fails to
74032 + explicitly add the extra indirection that the use of the
74033 + attribute enforces, the application will behave unexpectedly.
74034 +
74035 + `PRIVATE': Put the symbol in the DLL's export table, but do
74036 + not put it into the static import library used to resolve
74037 + imports at link time. The symbol can still be imported using
74038 + the `LoadLibrary/GetProcAddress' API at runtime or by by
74039 + using the GNU ld extension of linking directly to the DLL
74040 + without an import library.
74041 +
74042 + See ld/deffilep.y in the binutils sources for the full
74043 + specification of other DEF file statements
74044 +
74045 + While linking a shared dll, `ld' is able to create a DEF file
74046 + with the `--output-def <file>' command line option.
74047 +
74048 + _Using decorations_
74049 + Another way of marking symbols for export is to modify the
74050 + source code itself, so that when building the DLL each symbol
74051 + to be exported is declared as:
74052 +
74053 + __declspec(dllexport) int a_variable
74054 + __declspec(dllexport) void a_function(int with_args)
74055 +
74056 + All such symbols will be exported from the DLL. If, however,
74057 + any of the object files in the DLL contain symbols decorated
74058 + in this way, then the normal auto-export behavior is
74059 + disabled, unless the `--export-all-symbols' option is also
74060 + used.
74061 +
74062 + Note that object files that wish to access these symbols must
74063 + _not_ decorate them with dllexport. Instead, they should use
74064 + dllimport, instead:
74065 +
74066 + __declspec(dllimport) int a_variable
74067 + __declspec(dllimport) void a_function(int with_args)
74068 +
74069 + This complicates the structure of library header files,
74070 + because when included by the library itself the header must
74071 + declare the variables and functions as dllexport, but when
74072 + included by client code the header must declare them as
74073 + dllimport. There are a number of idioms that are typically
74074 + used to do this; often client code can omit the __declspec()
74075 + declaration completely. See `--enable-auto-import' and
74076 + `automatic data imports' for more imformation.
74077 +
74078 +_automatic data imports_
74079 + The standard Windows dll format supports data imports from dlls
74080 + only by adding special decorations (dllimport/dllexport), which
74081 + let the compiler produce specific assembler instructions to deal
74082 + with this issue. This increases the effort necessary to port
74083 + existing Un*x code to these platforms, especially for large c++
74084 + libraries and applications. The auto-import feature, which was
74085 + initially provided by Paul Sokolovsky, allows one to omit the
74086 + decorations to archieve a behavior that conforms to that on
74087 + POSIX/Un*x platforms. This feature is enabled with the
74088 + `--enable-auto-import' command-line option, although it is enabled
74089 + by default on cygwin/mingw. The `--enable-auto-import' option
74090 + itself now serves mainly to suppress any warnings that are
74091 + ordinarily emitted when linked objects trigger the feature's use.
74092 +
74093 + auto-import of variables does not always work flawlessly without
74094 + additional assistance. Sometimes, you will see this message
74095 +
74096 + "variable '<var>' can't be auto-imported. Please read the
74097 + documentation for ld's `--enable-auto-import' for details."
74098 +
74099 + The `--enable-auto-import' documentation explains why this error
74100 + occurs, and several methods that can be used to overcome this
74101 + difficulty. One of these methods is the _runtime pseudo-relocs_
74102 + feature, described below.
74103 +
74104 + For complex variables imported from DLLs (such as structs or
74105 + classes), object files typically contain a base address for the
74106 + variable and an offset (_addend_) within the variable-to specify a
74107 + particular field or public member, for instance. Unfortunately,
74108 + the runtime loader used in win32 environments is incapable of
74109 + fixing these references at runtime without the additional
74110 + information supplied by dllimport/dllexport decorations. The
74111 + standard auto-import feature described above is unable to resolve
74112 + these references.
74113 +
74114 + The `--enable-runtime-pseudo-relocs' switch allows these
74115 + references to be resolved without error, while leaving the task of
74116 + adjusting the references themselves (with their non-zero addends)
74117 + to specialized code provided by the runtime environment. Recent
74118 + versions of the cygwin and mingw environments and compilers
74119 + provide this runtime support; older versions do not. However, the
74120 + support is only necessary on the developer's platform; the
74121 + compiled result will run without error on an older system.
74122 +
74123 + `--enable-runtime-pseudo-relocs' is not the default; it must be
74124 + explicitly enabled as needed.
74125 +
74126 +_direct linking to a dll_
74127 + The cygwin/mingw ports of `ld' support the direct linking,
74128 + including data symbols, to a dll without the usage of any import
74129 + libraries. This is much faster and uses much less memory than
74130 + does the traditional import library method, expecially when
74131 + linking large libraries or applications. When `ld' creates an
74132 + import lib, each function or variable exported from the dll is
74133 + stored in its own bfd, even though a single bfd could contain many
74134 + exports. The overhead involved in storing, loading, and
74135 + processing so many bfd's is quite large, and explains the
74136 + tremendous time, memory, and storage needed to link against
74137 + particularly large or complex libraries when using import libs.
74138 +
74139 + Linking directly to a dll uses no extra command-line switches
74140 + other than `-L' and `-l', because `ld' already searches for a
74141 + number of names to match each library. All that is needed from
74142 + the developer's perspective is an understanding of this search, in
74143 + order to force ld to select the dll instead of an import library.
74144 +
74145 + For instance, when ld is called with the argument `-lxxx' it will
74146 + attempt to find, in the first directory of its search path,
74147 +
74148 + libxxx.dll.a
74149 + xxx.dll.a
74150 + libxxx.a
74151 + cygxxx.dll (*)
74152 + libxxx.dll
74153 + xxx.dll
74154 +
74155 + before moving on to the next directory in the search path.
74156 +
74157 + (*) Actually, this is not `cygxxx.dll' but in fact is
74158 + `<prefix>xxx.dll', where `<prefix>' is set by the `ld' option
74159 + `--dll-search-prefix=<prefix>'. In the case of cygwin, the
74160 + standard gcc spec file includes `--dll-search-prefix=cyg', so in
74161 + effect we actually search for `cygxxx.dll'.
74162 +
74163 + Other win32-based unix environments, such as mingw or pw32, may
74164 + use other `<prefix>'es, although at present only cygwin makes use
74165 + of this feature. It was originally intended to help avoid name
74166 + conflicts among dll's built for the various win32/un*x
74167 + environments, so that (for example) two versions of a zlib dll
74168 + could coexist on the same machine.
74169 +
74170 + The generic cygwin/mingw path layout uses a `bin' directory for
74171 + applications and dll's and a `lib' directory for the import
74172 + libraries (using cygwin nomenclature):
74173 +
74174 + bin/
74175 + cygxxx.dll
74176 + lib/
74177 + libxxx.dll.a (in case of dll's)
74178 + libxxx.a (in case of static archive)
74179 +
74180 + Linking directly to a dll without using the import library can be
74181 + done two ways:
74182 +
74183 + 1. Use the dll directly by adding the `bin' path to the link line
74184 + gcc -Wl,-verbose -o a.exe -L../bin/ -lxxx
74185 +
74186 + However, as the dll's often have version numbers appended to their
74187 + names (`cygncurses-5.dll') this will often fail, unless one
74188 + specifies `-L../bin -lncurses-5' to include the version. Import
74189 + libs are generally not versioned, and do not have this difficulty.
74190 +
74191 + 2. Create a symbolic link from the dll to a file in the `lib'
74192 + directory according to the above mentioned search pattern. This
74193 + should be used to avoid unwanted changes in the tools needed for
74194 + making the app/dll.
74195 +
74196 + ln -s bin/cygxxx.dll lib/[cyg|lib|]xxx.dll[.a]
74197 +
74198 + Then you can link without any make environment changes.
74199 +
74200 + gcc -Wl,-verbose -o a.exe -L../lib/ -lxxx
74201 +
74202 + This technique also avoids the version number problems, because
74203 + the following is perfectly legal
74204 +
74205 + bin/
74206 + cygxxx-5.dll
74207 + lib/
74208 + libxxx.dll.a -> ../bin/cygxxx-5.dll
74209 +
74210 + Linking directly to a dll without using an import lib will work
74211 + even when auto-import features are exercised, and even when
74212 + `--enable-runtime-pseudo-relocs' is used.
74213 +
74214 + Given the improvements in speed and memory usage, one might
74215 + justifiably wonder why import libraries are used at all. There
74216 + are two reasons:
74217 +
74218 + 1. Until recently, the link-directly-to-dll functionality did _not_
74219 + work with auto-imported data.
74220 +
74221 + 2. Sometimes it is necessary to include pure static objects within
74222 + the import library (which otherwise contains only bfd's for
74223 + indirection symbols that point to the exports of a dll). Again,
74224 + the import lib for the cygwin kernel makes use of this ability,
74225 + and it is not possible to do this without an import lib.
74226 +
74227 + So, import libs are not going away. But the ability to replace
74228 + true import libs with a simple symbolic link to (or a copy of) a
74229 + dll, in most cases, is a useful addition to the suite of tools
74230 + binutils makes available to the win32 developer. Given the
74231 + massive improvements in memory requirements during linking, storage
74232 + requirements, and linking speed, we expect that many developers
74233 + will soon begin to use this feature whenever possible.
74234 +
74235 +_symbol aliasing_
74236 +
74237 + _adding additional names_
74238 + Sometimes, it is useful to export symbols with additional
74239 + names. A symbol `foo' will be exported as `foo', but it can
74240 + also be exported as `_foo' by using special directives in the
74241 + DEF file when creating the dll. This will affect also the
74242 + optional created import library. Consider the following DEF
74243 + file:
74244 +
74245 + LIBRARY "xyz.dll" BASE=0x61000000
74246 +
74247 + EXPORTS
74248 + foo
74249 + _foo = foo
74250 +
74251 + The line `_foo = foo' maps the symbol `foo' to `_foo'.
74252 +
74253 + Another method for creating a symbol alias is to create it in
74254 + the source code using the "weak" attribute:
74255 +
74256 + void foo () { /* Do something. */; }
74257 + void _foo () __attribute__ ((weak, alias ("foo")));
74258 +
74259 + See the gcc manual for more information about attributes and
74260 + weak symbols.
74261 +
74262 + _renaming symbols_
74263 + Sometimes it is useful to rename exports. For instance, the
74264 + cygwin kernel does this regularly. A symbol `_foo' can be
74265 + exported as `foo' but not as `_foo' by using special
74266 + directives in the DEF file. (This will also affect the import
74267 + library, if it is created). In the following example:
74268 +
74269 + LIBRARY "xyz.dll" BASE=0x61000000
74270 +
74271 + EXPORTS
74272 + _foo = foo
74273 +
74274 + The line `_foo = foo' maps the exported symbol `foo' to
74275 + `_foo'.
74276 +
74277 + Note: using a DEF file disables the default auto-export behavior,
74278 + unless the `--export-all-symbols' command line option is used.
74279 + If, however, you are trying to rename symbols, then you should list
74280 + _all_ desired exports in the DEF file, including the symbols that
74281 + are not being renamed, and do _not_ use the `--export-all-symbols'
74282 + option. If you list only the renamed symbols in the DEF file, and
74283 + use `--export-all-symbols' to handle the other symbols, then the
74284 + both the new names _and_ the original names for the renamed
74285 + symbols will be exported. In effect, you'd be aliasing those
74286 + symbols, not renaming them, which is probably not what you wanted.
74287 +
74288 +_weak externals_
74289 + The Windows object format, PE, specifies a form of weak symbols
74290 + called weak externals. When a weak symbol is linked and the
74291 + symbol is not defined, the weak symbol becomes an alias for some
74292 + other symbol. There are three variants of weak externals:
74293 + * Definition is searched for in objects and libraries,
74294 + historically called lazy externals.
74295 +
74296 + * Definition is searched for only in other objects, not in
74297 + libraries. This form is not presently implemented.
74298 +
74299 + * No search; the symbol is an alias. This form is not presently
74300 + implemented.
74301 + As a GNU extension, weak symbols that do not specify an alternate
74302 + symbol are supported. If the symbol is undefined when linking,
74303 + the symbol uses a default value.
74304 +
74305 +\1f
74306 +File: ld.info, Node: Xtensa, Prev: WIN32, Up: Machine Dependent
74307 +
74308 +4.11 `ld' and Xtensa Processors
74309 +===============================
74310 +
74311 +The default `ld' behavior for Xtensa processors is to interpret
74312 +`SECTIONS' commands so that lists of explicitly named sections in a
74313 +specification with a wildcard file will be interleaved when necessary to
74314 +keep literal pools within the range of PC-relative load offsets. For
74315 +example, with the command:
74316 +
74317 + SECTIONS
74318 + {
74319 + .text : {
74320 + *(.literal .text)
74321 + }
74322 + }
74323 +
74324 +`ld' may interleave some of the `.literal' and `.text' sections from
74325 +different object files to ensure that the literal pools are within the
74326 +range of PC-relative load offsets. A valid interleaving might place
74327 +the `.literal' sections from an initial group of files followed by the
74328 +`.text' sections of that group of files. Then, the `.literal' sections
74329 +from the rest of the files and the `.text' sections from the rest of
74330 +the files would follow.
74331 +
74332 + Relaxation is enabled by default for the Xtensa version of `ld' and
74333 +provides two important link-time optimizations. The first optimization
74334 +is to combine identical literal values to reduce code size. A redundant
74335 +literal will be removed and all the `L32R' instructions that use it
74336 +will be changed to reference an identical literal, as long as the
74337 +location of the replacement literal is within the offset range of all
74338 +the `L32R' instructions. The second optimization is to remove
74339 +unnecessary overhead from assembler-generated "longcall" sequences of
74340 +`L32R'/`CALLXN' when the target functions are within range of direct
74341 +`CALLN' instructions.
74342 +
74343 + For each of these cases where an indirect call sequence can be
74344 +optimized to a direct call, the linker will change the `CALLXN'
74345 +instruction to a `CALLN' instruction, remove the `L32R' instruction,
74346 +and remove the literal referenced by the `L32R' instruction if it is
74347 +not used for anything else. Removing the `L32R' instruction always
74348 +reduces code size but can potentially hurt performance by changing the
74349 +alignment of subsequent branch targets. By default, the linker will
74350 +always preserve alignments, either by switching some instructions
74351 +between 24-bit encodings and the equivalent density instructions or by
74352 +inserting a no-op in place of the `L32R' instruction that was removed.
74353 +If code size is more important than performance, the `--size-opt'
74354 +option can be used to prevent the linker from widening density
74355 +instructions or inserting no-ops, except in a few cases where no-ops
74356 +are required for correctness.
74357 +
74358 + The following Xtensa-specific command-line options can be used to
74359 +control the linker:
74360 +
74361 +`--no-relax'
74362 + Since the Xtensa version of `ld' enables the `--relax' option by
74363 + default, the `--no-relax' option is provided to disable relaxation.
74364 +
74365 +`--size-opt'
74366 + When optimizing indirect calls to direct calls, optimize for code
74367 + size more than performance. With this option, the linker will not
74368 + insert no-ops or widen density instructions to preserve branch
74369 + target alignment. There may still be some cases where no-ops are
74370 + required to preserve the correctness of the code.
74371 +
74372 +\1f
74373 +File: ld.info, Node: BFD, Next: Reporting Bugs, Prev: Machine Dependent, Up: Top
74374 +
74375 +5 BFD
74376 +*****
74377 +
74378 +The linker accesses object and archive files using the BFD libraries.
74379 +These libraries allow the linker to use the same routines to operate on
74380 +object files whatever the object file format. A different object file
74381 +format can be supported simply by creating a new BFD back end and adding
74382 +it to the library. To conserve runtime memory, however, the linker and
74383 +associated tools are usually configured to support only a subset of the
74384 +object file formats available. You can use `objdump -i' (*note
74385 +objdump: (binutils.info)objdump.) to list all the formats available for
74386 +your configuration.
74387 +
74388 + As with most implementations, BFD is a compromise between several
74389 +conflicting requirements. The major factor influencing BFD design was
74390 +efficiency: any time used converting between formats is time which
74391 +would not have been spent had BFD not been involved. This is partly
74392 +offset by abstraction payback; since BFD simplifies applications and
74393 +back ends, more time and care may be spent optimizing algorithms for a
74394 +greater speed.
74395 +
74396 + One minor artifact of the BFD solution which you should bear in mind
74397 +is the potential for information loss. There are two places where
74398 +useful information can be lost using the BFD mechanism: during
74399 +conversion and during output. *Note BFD information loss::.
74400 +
74401 +* Menu:
74402 +
74403 +* BFD outline:: How it works: an outline of BFD
74404 +
74405 +\1f
74406 +File: ld.info, Node: BFD outline, Up: BFD
74407 +
74408 +5.1 How It Works: An Outline of BFD
74409 +===================================
74410 +
74411 +When an object file is opened, BFD subroutines automatically determine
74412 +the format of the input object file. They then build a descriptor in
74413 +memory with pointers to routines that will be used to access elements of
74414 +the object file's data structures.
74415 +
74416 + As different information from the object files is required, BFD
74417 +reads from different sections of the file and processes them. For
74418 +example, a very common operation for the linker is processing symbol
74419 +tables. Each BFD back end provides a routine for converting between
74420 +the object file's representation of symbols and an internal canonical
74421 +format. When the linker asks for the symbol table of an object file, it
74422 +calls through a memory pointer to the routine from the relevant BFD
74423 +back end which reads and converts the table into a canonical form. The
74424 +linker then operates upon the canonical form. When the link is finished
74425 +and the linker writes the output file's symbol table, another BFD back
74426 +end routine is called to take the newly created symbol table and
74427 +convert it into the chosen output format.
74428 +
74429 +* Menu:
74430 +
74431 +* BFD information loss:: Information Loss
74432 +* Canonical format:: The BFD canonical object-file format
74433 +
74434 +\1f
74435 +File: ld.info, Node: BFD information loss, Next: Canonical format, Up: BFD outline
74436 +
74437 +5.1.1 Information Loss
74438 +----------------------
74439 +
74440 +_Information can be lost during output._ The output formats supported
74441 +by BFD do not provide identical facilities, and information which can
74442 +be described in one form has nowhere to go in another format. One
74443 +example of this is alignment information in `b.out'. There is nowhere
74444 +in an `a.out' format file to store alignment information on the
74445 +contained data, so when a file is linked from `b.out' and an `a.out'
74446 +image is produced, alignment information will not propagate to the
74447 +output file. (The linker will still use the alignment information
74448 +internally, so the link is performed correctly).
74449 +
74450 + Another example is COFF section names. COFF files may contain an
74451 +unlimited number of sections, each one with a textual section name. If
74452 +the target of the link is a format which does not have many sections
74453 +(e.g., `a.out') or has sections without names (e.g., the Oasys format),
74454 +the link cannot be done simply. You can circumvent this problem by
74455 +describing the desired input-to-output section mapping with the linker
74456 +command language.
74457 +
74458 + _Information can be lost during canonicalization._ The BFD internal
74459 +canonical form of the external formats is not exhaustive; there are
74460 +structures in input formats for which there is no direct representation
74461 +internally. This means that the BFD back ends cannot maintain all
74462 +possible data richness through the transformation between external to
74463 +internal and back to external formats.
74464 +
74465 + This limitation is only a problem when an application reads one
74466 +format and writes another. Each BFD back end is responsible for
74467 +maintaining as much data as possible, and the internal BFD canonical
74468 +form has structures which are opaque to the BFD core, and exported only
74469 +to the back ends. When a file is read in one format, the canonical form
74470 +is generated for BFD and the application. At the same time, the back
74471 +end saves away any information which may otherwise be lost. If the data
74472 +is then written back in the same format, the back end routine will be
74473 +able to use the canonical form provided by the BFD core as well as the
74474 +information it prepared earlier. Since there is a great deal of
74475 +commonality between back ends, there is no information lost when
74476 +linking or copying big endian COFF to little endian COFF, or `a.out' to
74477 +`b.out'. When a mixture of formats is linked, the information is only
74478 +lost from the files whose format differs from the destination.
74479 +
74480 +\1f
74481 +File: ld.info, Node: Canonical format, Prev: BFD information loss, Up: BFD outline
74482 +
74483 +5.1.2 The BFD canonical object-file format
74484 +------------------------------------------
74485 +
74486 +The greatest potential for loss of information occurs when there is the
74487 +least overlap between the information provided by the source format,
74488 +that stored by the canonical format, and that needed by the destination
74489 +format. A brief description of the canonical form may help you
74490 +understand which kinds of data you can count on preserving across
74491 +conversions.
74492 +
74493 +_files_
74494 + Information stored on a per-file basis includes target machine
74495 + architecture, particular implementation format type, a demand
74496 + pageable bit, and a write protected bit. Information like Unix
74497 + magic numbers is not stored here--only the magic numbers' meaning,
74498 + so a `ZMAGIC' file would have both the demand pageable bit and the
74499 + write protected text bit set. The byte order of the target is
74500 + stored on a per-file basis, so that big- and little-endian object
74501 + files may be used with one another.
74502 +
74503 +_sections_
74504 + Each section in the input file contains the name of the section,
74505 + the section's original address in the object file, size and
74506 + alignment information, various flags, and pointers into other BFD
74507 + data structures.
74508 +
74509 +_symbols_
74510 + Each symbol contains a pointer to the information for the object
74511 + file which originally defined it, its name, its value, and various
74512 + flag bits. When a BFD back end reads in a symbol table, it
74513 + relocates all symbols to make them relative to the base of the
74514 + section where they were defined. Doing this ensures that each
74515 + symbol points to its containing section. Each symbol also has a
74516 + varying amount of hidden private data for the BFD back end. Since
74517 + the symbol points to the original file, the private data format
74518 + for that symbol is accessible. `ld' can operate on a collection
74519 + of symbols of wildly different formats without problems.
74520 +
74521 + Normal global and simple local symbols are maintained on output,
74522 + so an output file (no matter its format) will retain symbols
74523 + pointing to functions and to global, static, and common variables.
74524 + Some symbol information is not worth retaining; in `a.out', type
74525 + information is stored in the symbol table as long symbol names.
74526 + This information would be useless to most COFF debuggers; the
74527 + linker has command line switches to allow users to throw it away.
74528 +
74529 + There is one word of type information within the symbol, so if the
74530 + format supports symbol type information within symbols (for
74531 + example, COFF, IEEE, Oasys) and the type is simple enough to fit
74532 + within one word (nearly everything but aggregates), the
74533 + information will be preserved.
74534 +
74535 +_relocation level_
74536 + Each canonical BFD relocation record contains a pointer to the
74537 + symbol to relocate to, the offset of the data to relocate, the
74538 + section the data is in, and a pointer to a relocation type
74539 + descriptor. Relocation is performed by passing messages through
74540 + the relocation type descriptor and the symbol pointer. Therefore,
74541 + relocations can be performed on output data using a relocation
74542 + method that is only available in one of the input formats. For
74543 + instance, Oasys provides a byte relocation format. A relocation
74544 + record requesting this relocation type would point indirectly to a
74545 + routine to perform this, so the relocation may be performed on a
74546 + byte being written to a 68k COFF file, even though 68k COFF has no
74547 + such relocation type.
74548 +
74549 +_line numbers_
74550 + Object formats can contain, for debugging purposes, some form of
74551 + mapping between symbols, source line numbers, and addresses in the
74552 + output file. These addresses have to be relocated along with the
74553 + symbol information. Each symbol with an associated list of line
74554 + number records points to the first record of the list. The head
74555 + of a line number list consists of a pointer to the symbol, which
74556 + allows finding out the address of the function whose line number
74557 + is being described. The rest of the list is made up of pairs:
74558 + offsets into the section and line numbers. Any format which can
74559 + simply derive this information can pass it successfully between
74560 + formats (COFF, IEEE and Oasys).
74561 +
74562 +\1f
74563 +File: ld.info, Node: Reporting Bugs, Next: MRI, Prev: BFD, Up: Top
74564 +
74565 +6 Reporting Bugs
74566 +****************
74567 +
74568 +Your bug reports play an essential role in making `ld' reliable.
74569 +
74570 + Reporting a bug may help you by bringing a solution to your problem,
74571 +or it may not. But in any case the principal function of a bug report
74572 +is to help the entire community by making the next version of `ld' work
74573 +better. Bug reports are your contribution to the maintenance of `ld'.
74574 +
74575 + In order for a bug report to serve its purpose, you must include the
74576 +information that enables us to fix the bug.
74577 +
74578 +* Menu:
74579 +
74580 +* Bug Criteria:: Have you found a bug?
74581 +* Bug Reporting:: How to report bugs
74582 +
74583 +\1f
74584 +File: ld.info, Node: Bug Criteria, Next: Bug Reporting, Up: Reporting Bugs
74585 +
74586 +6.1 Have You Found a Bug?
74587 +=========================
74588 +
74589 +If you are not sure whether you have found a bug, here are some
74590 +guidelines:
74591 +
74592 + * If the linker gets a fatal signal, for any input whatever, that is
74593 + a `ld' bug. Reliable linkers never crash.
74594 +
74595 + * If `ld' produces an error message for valid input, that is a bug.
74596 +
74597 + * If `ld' does not produce an error message for invalid input, that
74598 + may be a bug. In the general case, the linker can not verify that
74599 + object files are correct.
74600 +
74601 + * If you are an experienced user of linkers, your suggestions for
74602 + improvement of `ld' are welcome in any case.
74603 +
74604 +\1f
74605 +File: ld.info, Node: Bug Reporting, Prev: Bug Criteria, Up: Reporting Bugs
74606 +
74607 +6.2 How to Report Bugs
74608 +======================
74609 +
74610 +A number of companies and individuals offer support for GNU products.
74611 +If you obtained `ld' from a support organization, we recommend you
74612 +contact that organization first.
74613 +
74614 + You can find contact information for many support companies and
74615 +individuals in the file `etc/SERVICE' in the GNU Emacs distribution.
74616 +
74617 + Otherwise, send bug reports for `ld' to `bug-binutils@gnu.org'.
74618 +
74619 + The fundamental principle of reporting bugs usefully is this:
74620 +*report all the facts*. If you are not sure whether to state a fact or
74621 +leave it out, state it!
74622 +
74623 + Often people omit facts because they think they know what causes the
74624 +problem and assume that some details do not matter. Thus, you might
74625 +assume that the name of a symbol you use in an example does not matter.
74626 +Well, probably it does not, but one cannot be sure. Perhaps the bug
74627 +is a stray memory reference which happens to fetch from the location
74628 +where that name is stored in memory; perhaps, if the name were
74629 +different, the contents of that location would fool the linker into
74630 +doing the right thing despite the bug. Play it safe and give a
74631 +specific, complete example. That is the easiest thing for you to do,
74632 +and the most helpful.
74633 +
74634 + Keep in mind that the purpose of a bug report is to enable us to fix
74635 +the bug if it is new to us. Therefore, always write your bug reports
74636 +on the assumption that the bug has not been reported previously.
74637 +
74638 + Sometimes people give a few sketchy facts and ask, "Does this ring a
74639 +bell?" This cannot help us fix a bug, so it is basically useless. We
74640 +respond by asking for enough details to enable us to investigate. You
74641 +might as well expedite matters by sending them to begin with.
74642 +
74643 + To enable us to fix the bug, you should include all these things:
74644 +
74645 + * The version of `ld'. `ld' announces it if you start it with the
74646 + `--version' argument.
74647 +
74648 + Without this, we will not know whether there is any point in
74649 + looking for the bug in the current version of `ld'.
74650 +
74651 + * Any patches you may have applied to the `ld' source, including any
74652 + patches made to the `BFD' library.
74653 +
74654 + * The type of machine you are using, and the operating system name
74655 + and version number.
74656 +
74657 + * What compiler (and its version) was used to compile `ld'--e.g.
74658 + "`gcc-2.7'".
74659 +
74660 + * The command arguments you gave the linker to link your example and
74661 + observe the bug. To guarantee you will not omit something
74662 + important, list them all. A copy of the Makefile (or the output
74663 + from make) is sufficient.
74664 +
74665 + If we were to try to guess the arguments, we would probably guess
74666 + wrong and then we might not encounter the bug.
74667 +
74668 + * A complete input file, or set of input files, that will reproduce
74669 + the bug. It is generally most helpful to send the actual object
74670 + files provided that they are reasonably small. Say no more than
74671 + 10K. For bigger files you can either make them available by FTP
74672 + or HTTP or else state that you are willing to send the object
74673 + file(s) to whomever requests them. (Note - your email will be
74674 + going to a mailing list, so we do not want to clog it up with
74675 + large attachments). But small attachments are best.
74676 +
74677 + If the source files were assembled using `gas' or compiled using
74678 + `gcc', then it may be OK to send the source files rather than the
74679 + object files. In this case, be sure to say exactly what version of
74680 + `gas' or `gcc' was used to produce the object files. Also say how
74681 + `gas' or `gcc' were configured.
74682 +
74683 + * A description of what behavior you observe that you believe is
74684 + incorrect. For example, "It gets a fatal signal."
74685 +
74686 + Of course, if the bug is that `ld' gets a fatal signal, then we
74687 + will certainly notice it. But if the bug is incorrect output, we
74688 + might not notice unless it is glaringly wrong. You might as well
74689 + not give us a chance to make a mistake.
74690 +
74691 + Even if the problem you experience is a fatal signal, you should
74692 + still say so explicitly. Suppose something strange is going on,
74693 + such as, your copy of `ld' is out of synch, or you have
74694 + encountered a bug in the C library on your system. (This has
74695 + happened!) Your copy might crash and ours would not. If you told
74696 + us to expect a crash, then when ours fails to crash, we would know
74697 + that the bug was not happening for us. If you had not told us to
74698 + expect a crash, then we would not be able to draw any conclusion
74699 + from our observations.
74700 +
74701 + * If you wish to suggest changes to the `ld' source, send us context
74702 + diffs, as generated by `diff' with the `-u', `-c', or `-p' option.
74703 + Always send diffs from the old file to the new file. If you even
74704 + discuss something in the `ld' source, refer to it by context, not
74705 + by line number.
74706 +
74707 + The line numbers in our development sources will not match those
74708 + in your sources. Your line numbers would convey no useful
74709 + information to us.
74710 +
74711 + Here are some things that are not necessary:
74712 +
74713 + * A description of the envelope of the bug.
74714 +
74715 + Often people who encounter a bug spend a lot of time investigating
74716 + which changes to the input file will make the bug go away and which
74717 + changes will not affect it.
74718 +
74719 + This is often time consuming and not very useful, because the way
74720 + we will find the bug is by running a single example under the
74721 + debugger with breakpoints, not by pure deduction from a series of
74722 + examples. We recommend that you save your time for something else.
74723 +
74724 + Of course, if you can find a simpler example to report _instead_
74725 + of the original one, that is a convenience for us. Errors in the
74726 + output will be easier to spot, running under the debugger will take
74727 + less time, and so on.
74728 +
74729 + However, simplification is not vital; if you do not want to do
74730 + this, report the bug anyway and send us the entire test case you
74731 + used.
74732 +
74733 + * A patch for the bug.
74734 +
74735 + A patch for the bug does help us if it is a good one. But do not
74736 + omit the necessary information, such as the test case, on the
74737 + assumption that a patch is all we need. We might see problems
74738 + with your patch and decide to fix the problem another way, or we
74739 + might not understand it at all.
74740 +
74741 + Sometimes with a program as complicated as `ld' it is very hard to
74742 + construct an example that will make the program follow a certain
74743 + path through the code. If you do not send us the example, we will
74744 + not be able to construct one, so we will not be able to verify
74745 + that the bug is fixed.
74746 +
74747 + And if we cannot understand what bug you are trying to fix, or why
74748 + your patch should be an improvement, we will not install it. A
74749 + test case will help us to understand.
74750 +
74751 + * A guess about what the bug is or what it depends on.
74752 +
74753 + Such guesses are usually wrong. Even we cannot guess right about
74754 + such things without first using the debugger to find the facts.
74755 +
74756 +\1f
74757 +File: ld.info, Node: MRI, Next: GNU Free Documentation License, Prev: Reporting Bugs, Up: Top
74758 +
74759 +Appendix A MRI Compatible Script Files
74760 +**************************************
74761 +
74762 +To aid users making the transition to GNU `ld' from the MRI linker,
74763 +`ld' can use MRI compatible linker scripts as an alternative to the
74764 +more general-purpose linker scripting language described in *Note
74765 +Scripts::. MRI compatible linker scripts have a much simpler command
74766 +set than the scripting language otherwise used with `ld'. GNU `ld'
74767 +supports the most commonly used MRI linker commands; these commands are
74768 +described here.
74769 +
74770 + In general, MRI scripts aren't of much use with the `a.out' object
74771 +file format, since it only has three sections and MRI scripts lack some
74772 +features to make use of them.
74773 +
74774 + You can specify a file containing an MRI-compatible script using the
74775 +`-c' command-line option.
74776 +
74777 + Each command in an MRI-compatible script occupies its own line; each
74778 +command line starts with the keyword that identifies the command (though
74779 +blank lines are also allowed for punctuation). If a line of an
74780 +MRI-compatible script begins with an unrecognized keyword, `ld' issues
74781 +a warning message, but continues processing the script.
74782 +
74783 + Lines beginning with `*' are comments.
74784 +
74785 + You can write these commands using all upper-case letters, or all
74786 +lower case; for example, `chip' is the same as `CHIP'. The following
74787 +list shows only the upper-case form of each command.
74788 +
74789 +`ABSOLUTE SECNAME'
74790 +`ABSOLUTE SECNAME, SECNAME, ... SECNAME'
74791 + Normally, `ld' includes in the output file all sections from all
74792 + the input files. However, in an MRI-compatible script, you can
74793 + use the `ABSOLUTE' command to restrict the sections that will be
74794 + present in your output program. If the `ABSOLUTE' command is used
74795 + at all in a script, then only the sections named explicitly in
74796 + `ABSOLUTE' commands will appear in the linker output. You can
74797 + still use other input sections (whatever you select on the command
74798 + line, or using `LOAD') to resolve addresses in the output file.
74799 +
74800 +`ALIAS OUT-SECNAME, IN-SECNAME'
74801 + Use this command to place the data from input section IN-SECNAME
74802 + in a section called OUT-SECNAME in the linker output file.
74803 +
74804 + IN-SECNAME may be an integer.
74805 +
74806 +`ALIGN SECNAME = EXPRESSION'
74807 + Align the section called SECNAME to EXPRESSION. The EXPRESSION
74808 + should be a power of two.
74809 +
74810 +`BASE EXPRESSION'
74811 + Use the value of EXPRESSION as the lowest address (other than
74812 + absolute addresses) in the output file.
74813 +
74814 +`CHIP EXPRESSION'
74815 +`CHIP EXPRESSION, EXPRESSION'
74816 + This command does nothing; it is accepted only for compatibility.
74817 +
74818 +`END'
74819 + This command does nothing whatever; it's only accepted for
74820 + compatibility.
74821 +
74822 +`FORMAT OUTPUT-FORMAT'
74823 + Similar to the `OUTPUT_FORMAT' command in the more general linker
74824 + language, but restricted to one of these output formats:
74825 +
74826 + 1. S-records, if OUTPUT-FORMAT is `S'
74827 +
74828 + 2. IEEE, if OUTPUT-FORMAT is `IEEE'
74829 +
74830 + 3. COFF (the `coff-m68k' variant in BFD), if OUTPUT-FORMAT is
74831 + `COFF'
74832 +
74833 +`LIST ANYTHING...'
74834 + Print (to the standard output file) a link map, as produced by the
74835 + `ld' command-line option `-M'.
74836 +
74837 + The keyword `LIST' may be followed by anything on the same line,
74838 + with no change in its effect.
74839 +
74840 +`LOAD FILENAME'
74841 +`LOAD FILENAME, FILENAME, ... FILENAME'
74842 + Include one or more object file FILENAME in the link; this has the
74843 + same effect as specifying FILENAME directly on the `ld' command
74844 + line.
74845 +
74846 +`NAME OUTPUT-NAME'
74847 + OUTPUT-NAME is the name for the program produced by `ld'; the
74848 + MRI-compatible command `NAME' is equivalent to the command-line
74849 + option `-o' or the general script language command `OUTPUT'.
74850 +
74851 +`ORDER SECNAME, SECNAME, ... SECNAME'
74852 +`ORDER SECNAME SECNAME SECNAME'
74853 + Normally, `ld' orders the sections in its output file in the order
74854 + in which they first appear in the input files. In an
74855 + MRI-compatible script, you can override this ordering with the
74856 + `ORDER' command. The sections you list with `ORDER' will appear
74857 + first in your output file, in the order specified.
74858 +
74859 +`PUBLIC NAME=EXPRESSION'
74860 +`PUBLIC NAME,EXPRESSION'
74861 +`PUBLIC NAME EXPRESSION'
74862 + Supply a value (EXPRESSION) for external symbol NAME used in the
74863 + linker input files.
74864 +
74865 +`SECT SECNAME, EXPRESSION'
74866 +`SECT SECNAME=EXPRESSION'
74867 +`SECT SECNAME EXPRESSION'
74868 + You can use any of these three forms of the `SECT' command to
74869 + specify the start address (EXPRESSION) for section SECNAME. If
74870 + you have more than one `SECT' statement for the same SECNAME, only
74871 + the _first_ sets the start address.
74872 +
74873 +\1f
74874 +File: ld.info, Node: GNU Free Documentation License, Next: Index, Prev: MRI, Up: Top
74875 +
74876 +Appendix B GNU Free Documentation License
74877 +*****************************************
74878 +
74879 + Version 1.1, March 2000
74880 +
74881 + Copyright (C) 2000, 2003 Free Software Foundation, Inc.
74882 + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
74883 +
74884 + Everyone is permitted to copy and distribute verbatim copies
74885 + of this license document, but changing it is not allowed.
74886 +
74887 +
74888 + 0. PREAMBLE
74889 +
74890 + The purpose of this License is to make a manual, textbook, or other
74891 + written document "free" in the sense of freedom: to assure everyone
74892 + the effective freedom to copy and redistribute it, with or without
74893 + modifying it, either commercially or noncommercially. Secondarily,
74894 + this License preserves for the author and publisher a way to get
74895 + credit for their work, while not being considered responsible for
74896 + modifications made by others.
74897 +
74898 + This License is a kind of "copyleft", which means that derivative
74899 + works of the document must themselves be free in the same sense.
74900 + It complements the GNU General Public License, which is a copyleft
74901 + license designed for free software.
74902 +
74903 + We have designed this License in order to use it for manuals for
74904 + free software, because free software needs free documentation: a
74905 + free program should come with manuals providing the same freedoms
74906 + that the software does. But this License is not limited to
74907 + software manuals; it can be used for any textual work, regardless
74908 + of subject matter or whether it is published as a printed book.
74909 + We recommend this License principally for works whose purpose is
74910 + instruction or reference.
74911 +
74912 +
74913 + 1. APPLICABILITY AND DEFINITIONS
74914 +
74915 + This License applies to any manual or other work that contains a
74916 + notice placed by the copyright holder saying it can be distributed
74917 + under the terms of this License. The "Document", below, refers to
74918 + any such manual or work. Any member of the public is a licensee,
74919 + and is addressed as "you."
74920 +
74921 + A "Modified Version" of the Document means any work containing the
74922 + Document or a portion of it, either copied verbatim, or with
74923 + modifications and/or translated into another language.
74924 +
74925 + A "Secondary Section" is a named appendix or a front-matter
74926 + section of the Document that deals exclusively with the
74927 + relationship of the publishers or authors of the Document to the
74928 + Document's overall subject (or to related matters) and contains
74929 + nothing that could fall directly within that overall subject.
74930 + (For example, if the Document is in part a textbook of
74931 + mathematics, a Secondary Section may not explain any mathematics.)
74932 + The relationship could be a matter of historical connection with
74933 + the subject or with related matters, or of legal, commercial,
74934 + philosophical, ethical or political position regarding them.
74935 +
74936 + The "Invariant Sections" are certain Secondary Sections whose
74937 + titles are designated, as being those of Invariant Sections, in
74938 + the notice that says that the Document is released under this
74939 + License.
74940 +
74941 + The "Cover Texts" are certain short passages of text that are
74942 + listed, as Front-Cover Texts or Back-Cover Texts, in the notice
74943 + that says that the Document is released under this License.
74944 +
74945 + A "Transparent" copy of the Document means a machine-readable copy,
74946 + represented in a format whose specification is available to the
74947 + general public, whose contents can be viewed and edited directly
74948 + and straightforwardly with generic text editors or (for images
74949 + composed of pixels) generic paint programs or (for drawings) some
74950 + widely available drawing editor, and that is suitable for input to
74951 + text formatters or for automatic translation to a variety of
74952 + formats suitable for input to text formatters. A copy made in an
74953 + otherwise Transparent file format whose markup has been designed
74954 + to thwart or discourage subsequent modification by readers is not
74955 + Transparent. A copy that is not "Transparent" is called "Opaque."
74956 +
74957 + Examples of suitable formats for Transparent copies include plain
74958 + ASCII without markup, Texinfo input format, LaTeX input format,
74959 + SGML or XML using a publicly available DTD, and
74960 + standard-conforming simple HTML designed for human modification.
74961 + Opaque formats include PostScript, PDF, proprietary formats that
74962 + can be read and edited only by proprietary word processors, SGML
74963 + or XML for which the DTD and/or processing tools are not generally
74964 + available, and the machine-generated HTML produced by some word
74965 + processors for output purposes only.
74966 +
74967 + The "Title Page" means, for a printed book, the title page itself,
74968 + plus such following pages as are needed to hold, legibly, the
74969 + material this License requires to appear in the title page. For
74970 + works in formats which do not have any title page as such, "Title
74971 + Page" means the text near the most prominent appearance of the
74972 + work's title, preceding the beginning of the body of the text.
74973 +
74974 + 2. VERBATIM COPYING
74975 +
74976 + You may copy and distribute the Document in any medium, either
74977 + commercially or noncommercially, provided that this License, the
74978 + copyright notices, and the license notice saying this License
74979 + applies to the Document are reproduced in all copies, and that you
74980 + add no other conditions whatsoever to those of this License. You
74981 + may not use technical measures to obstruct or control the reading
74982 + or further copying of the copies you make or distribute. However,
74983 + you may accept compensation in exchange for copies. If you
74984 + distribute a large enough number of copies you must also follow
74985 + the conditions in section 3.
74986 +
74987 + You may also lend copies, under the same conditions stated above,
74988 + and you may publicly display copies.
74989 +
74990 + 3. COPYING IN QUANTITY
74991 +
74992 + If you publish printed copies of the Document numbering more than
74993 + 100, and the Document's license notice requires Cover Texts, you
74994 + must enclose the copies in covers that carry, clearly and legibly,
74995 + all these Cover Texts: Front-Cover Texts on the front cover, and
74996 + Back-Cover Texts on the back cover. Both covers must also clearly
74997 + and legibly identify you as the publisher of these copies. The
74998 + front cover must present the full title with all words of the
74999 + title equally prominent and visible. You may add other material
75000 + on the covers in addition. Copying with changes limited to the
75001 + covers, as long as they preserve the title of the Document and
75002 + satisfy these conditions, can be treated as verbatim copying in
75003 + other respects.
75004 +
75005 + If the required texts for either cover are too voluminous to fit
75006 + legibly, you should put the first ones listed (as many as fit
75007 + reasonably) on the actual cover, and continue the rest onto
75008 + adjacent pages.
75009 +
75010 + If you publish or distribute Opaque copies of the Document
75011 + numbering more than 100, you must either include a
75012 + machine-readable Transparent copy along with each Opaque copy, or
75013 + state in or with each Opaque copy a publicly-accessible
75014 + computer-network location containing a complete Transparent copy
75015 + of the Document, free of added material, which the general
75016 + network-using public has access to download anonymously at no
75017 + charge using public-standard network protocols. If you use the
75018 + latter option, you must take reasonably prudent steps, when you
75019 + begin distribution of Opaque copies in quantity, to ensure that
75020 + this Transparent copy will remain thus accessible at the stated
75021 + location until at least one year after the last time you
75022 + distribute an Opaque copy (directly or through your agents or
75023 + retailers) of that edition to the public.
75024 +
75025 + It is requested, but not required, that you contact the authors of
75026 + the Document well before redistributing any large number of
75027 + copies, to give them a chance to provide you with an updated
75028 + version of the Document.
75029 +
75030 + 4. MODIFICATIONS
75031 +
75032 + You may copy and distribute a Modified Version of the Document
75033 + under the conditions of sections 2 and 3 above, provided that you
75034 + release the Modified Version under precisely this License, with
75035 + the Modified Version filling the role of the Document, thus
75036 + licensing distribution and modification of the Modified Version to
75037 + whoever possesses a copy of it. In addition, you must do these
75038 + things in the Modified Version:
75039 +
75040 + A. Use in the Title Page (and on the covers, if any) a title
75041 + distinct from that of the Document, and from those of previous
75042 + versions (which should, if there were any, be listed in the
75043 + History section of the Document). You may use the same title
75044 + as a previous version if the original publisher of that version
75045 + gives permission.
75046 + B. List on the Title Page, as authors, one or more persons or
75047 + entities responsible for authorship of the modifications in the
75048 + Modified Version, together with at least five of the principal
75049 + authors of the Document (all of its principal authors, if it
75050 + has less than five).
75051 + C. State on the Title page the name of the publisher of the
75052 + Modified Version, as the publisher.
75053 + D. Preserve all the copyright notices of the Document.
75054 + E. Add an appropriate copyright notice for your modifications
75055 + adjacent to the other copyright notices.
75056 + F. Include, immediately after the copyright notices, a license
75057 + notice giving the public permission to use the Modified Version
75058 + under the terms of this License, in the form shown in the
75059 + Addendum below.
75060 + G. Preserve in that license notice the full lists of Invariant
75061 + Sections and required Cover Texts given in the Document's
75062 + license notice.
75063 + H. Include an unaltered copy of this License.
75064 + I. Preserve the section entitled "History", and its title, and add
75065 + to it an item stating at least the title, year, new authors, and
75066 + publisher of the Modified Version as given on the Title Page.
75067 + If there is no section entitled "History" in the Document,
75068 + create one stating the title, year, authors, and publisher of
75069 + the Document as given on its Title Page, then add an item
75070 + describing the Modified Version as stated in the previous
75071 + sentence.
75072 + J. Preserve the network location, if any, given in the Document for
75073 + public access to a Transparent copy of the Document, and
75074 + likewise the network locations given in the Document for
75075 + previous versions it was based on. These may be placed in the
75076 + "History" section. You may omit a network location for a work
75077 + that was published at least four years before the Document
75078 + itself, or if the original publisher of the version it refers
75079 + to gives permission.
75080 + K. In any section entitled "Acknowledgements" or "Dedications",
75081 + preserve the section's title, and preserve in the section all the
75082 + substance and tone of each of the contributor acknowledgements
75083 + and/or dedications given therein.
75084 + L. Preserve all the Invariant Sections of the Document,
75085 + unaltered in their text and in their titles. Section numbers
75086 + or the equivalent are not considered part of the section titles.
75087 + M. Delete any section entitled "Endorsements." Such a section
75088 + may not be included in the Modified Version.
75089 + N. Do not retitle any existing section as "Endorsements" or to
75090 + conflict in title with any Invariant Section.
75091 +
75092 + If the Modified Version includes new front-matter sections or
75093 + appendices that qualify as Secondary Sections and contain no
75094 + material copied from the Document, you may at your option
75095 + designate some or all of these sections as invariant. To do this,
75096 + add their titles to the list of Invariant Sections in the Modified
75097 + Version's license notice. These titles must be distinct from any
75098 + other section titles.
75099 +
75100 + You may add a section entitled "Endorsements", provided it contains
75101 + nothing but endorsements of your Modified Version by various
75102 + parties-for example, statements of peer review or that the text has
75103 + been approved by an organization as the authoritative definition
75104 + of a standard.
75105 +
75106 + You may add a passage of up to five words as a Front-Cover Text,
75107 + and a passage of up to 25 words as a Back-Cover Text, to the end
75108 + of the list of Cover Texts in the Modified Version. Only one
75109 + passage of Front-Cover Text and one of Back-Cover Text may be
75110 + added by (or through arrangements made by) any one entity. If the
75111 + Document already includes a cover text for the same cover,
75112 + previously added by you or by arrangement made by the same entity
75113 + you are acting on behalf of, you may not add another; but you may
75114 + replace the old one, on explicit permission from the previous
75115 + publisher that added the old one.
75116 +
75117 + The author(s) and publisher(s) of the Document do not by this
75118 + License give permission to use their names for publicity for or to
75119 + assert or imply endorsement of any Modified Version.
75120 +
75121 + 5. COMBINING DOCUMENTS
75122 +
75123 + You may combine the Document with other documents released under
75124 + this License, under the terms defined in section 4 above for
75125 + modified versions, provided that you include in the combination
75126 + all of the Invariant Sections of all of the original documents,
75127 + unmodified, and list them all as Invariant Sections of your
75128 + combined work in its license notice.
75129 +
75130 + The combined work need only contain one copy of this License, and
75131 + multiple identical Invariant Sections may be replaced with a single
75132 + copy. If there are multiple Invariant Sections with the same name
75133 + but different contents, make the title of each such section unique
75134 + by adding at the end of it, in parentheses, the name of the
75135 + original author or publisher of that section if known, or else a
75136 + unique number. Make the same adjustment to the section titles in
75137 + the list of Invariant Sections in the license notice of the
75138 + combined work.
75139 +
75140 + In the combination, you must combine any sections entitled
75141 + "History" in the various original documents, forming one section
75142 + entitled "History"; likewise combine any sections entitled
75143 + "Acknowledgements", and any sections entitled "Dedications." You
75144 + must delete all sections entitled "Endorsements."
75145 +
75146 + 6. COLLECTIONS OF DOCUMENTS
75147 +
75148 + You may make a collection consisting of the Document and other
75149 + documents released under this License, and replace the individual
75150 + copies of this License in the various documents with a single copy
75151 + that is included in the collection, provided that you follow the
75152 + rules of this License for verbatim copying of each of the
75153 + documents in all other respects.
75154 +
75155 + You may extract a single document from such a collection, and
75156 + distribute it individually under this License, provided you insert
75157 + a copy of this License into the extracted document, and follow
75158 + this License in all other respects regarding verbatim copying of
75159 + that document.
75160 +
75161 + 7. AGGREGATION WITH INDEPENDENT WORKS
75162 +
75163 + A compilation of the Document or its derivatives with other
75164 + separate and independent documents or works, in or on a volume of
75165 + a storage or distribution medium, does not as a whole count as a
75166 + Modified Version of the Document, provided no compilation
75167 + copyright is claimed for the compilation. Such a compilation is
75168 + called an "aggregate", and this License does not apply to the
75169 + other self-contained works thus compiled with the Document, on
75170 + account of their being thus compiled, if they are not themselves
75171 + derivative works of the Document.
75172 +
75173 + If the Cover Text requirement of section 3 is applicable to these
75174 + copies of the Document, then if the Document is less than one
75175 + quarter of the entire aggregate, the Document's Cover Texts may be
75176 + placed on covers that surround only the Document within the
75177 + aggregate. Otherwise they must appear on covers around the whole
75178 + aggregate.
75179 +
75180 + 8. TRANSLATION
75181 +
75182 + Translation is considered a kind of modification, so you may
75183 + distribute translations of the Document under the terms of section
75184 + 4. Replacing Invariant Sections with translations requires special
75185 + permission from their copyright holders, but you may include
75186 + translations of some or all Invariant Sections in addition to the
75187 + original versions of these Invariant Sections. You may include a
75188 + translation of this License provided that you also include the
75189 + original English version of this License. In case of a
75190 + disagreement between the translation and the original English
75191 + version of this License, the original English version will prevail.
75192 +
75193 + 9. TERMINATION
75194 +
75195 + You may not copy, modify, sublicense, or distribute the Document
75196 + except as expressly provided for under this License. Any other
75197 + attempt to copy, modify, sublicense or distribute the Document is
75198 + void, and will automatically terminate your rights under this
75199 + License. However, parties who have received copies, or rights,
75200 + from you under this License will not have their licenses
75201 + terminated so long as such parties remain in full compliance.
75202 +
75203 + 10. FUTURE REVISIONS OF THIS LICENSE
75204 +
75205 + The Free Software Foundation may publish new, revised versions of
75206 + the GNU Free Documentation License from time to time. Such new
75207 + versions will be similar in spirit to the present version, but may
75208 + differ in detail to address new problems or concerns. See
75209 + http://www.gnu.org/copyleft/.
75210 +
75211 + Each version of the License is given a distinguishing version
75212 + number. If the Document specifies that a particular numbered
75213 + version of this License "or any later version" applies to it, you
75214 + have the option of following the terms and conditions either of
75215 + that specified version or of any later version that has been
75216 + published (not as a draft) by the Free Software Foundation. If
75217 + the Document does not specify a version number of this License,
75218 + you may choose any version ever published (not as a draft) by the
75219 + Free Software Foundation.
75220 +
75221 +
75222 +ADDENDUM: How to use this License for your documents
75223 +====================================================
75224 +
75225 +To use this License in a document you have written, include a copy of
75226 +the License in the document and put the following copyright and license
75227 +notices just after the title page:
75228 +
75229 + Copyright (C) YEAR YOUR NAME.
75230 + Permission is granted to copy, distribute and/or modify this document
75231 + under the terms of the GNU Free Documentation License, Version 1.1
75232 + or any later version published by the Free Software Foundation;
75233 + with the Invariant Sections being LIST THEIR TITLES, with the
75234 + Front-Cover Texts being LIST, and with the Back-Cover Texts being LIST.
75235 + A copy of the license is included in the section entitled "GNU
75236 + Free Documentation License."
75237 +
75238 + If you have no Invariant Sections, write "with no Invariant Sections"
75239 +instead of saying which ones are invariant. If you have no Front-Cover
75240 +Texts, write "no Front-Cover Texts" instead of "Front-Cover Texts being
75241 +LIST"; likewise for Back-Cover Texts.
75242 +
75243 + If your document contains nontrivial examples of program code, we
75244 +recommend releasing these examples in parallel under your choice of
75245 +free software license, such as the GNU General Public License, to
75246 +permit their use in free software.
75247 +
75248 +\1f
75249 +File: ld.info, Node: Index, Prev: GNU Free Documentation License, Up: Top
75250 +
75251 +Index
75252 +*****
75253 +
75254 +