2007-05-03 Sandra Loosemore <sandra@codesourcery.com>
[deliverable/binutils-gdb.git] / bfd / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
4 #
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
11
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
21 fi
22 DUALCASE=1; export DUALCASE # for MKS sh
23
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27 else
28 as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
43 do
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
48 fi
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54 else
55 as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60 else
61 as_basename=false
62 fi
63
64
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
76
77
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
95 fi
96 rm -f conf$$.sh
97 fi
98
99
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
111 do
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
116
117 ;;
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
123 fi
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
127 fi
128 case $CONFIG_SHELL in
129 '')
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
137 /*)
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152 done
153 ;;
154 esac
155
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
166 N
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
177
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
184 }
185
186
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196 else
197 as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
210 fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213 else
214 as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220 else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
223 fi
224
225 as_executable_p="test -f"
226
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
237 '
238 IFS=" $as_nl"
239
240 # CDPATH.
241 $as_unset CDPATH
242
243
244 # Name of the host.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249 exec 6>&1
250
251 #
252 # Initializations.
253 #
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
256 cross_compiling=no
257 subdirs=
258 MFLAGS=
259 MAKEFLAGS=
260 SHELL=${CONFIG_SHELL-/bin/sh}
261
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
266
267 # Identity of this package.
268 PACKAGE_NAME=
269 PACKAGE_TARNAME=
270 PACKAGE_VERSION=
271 PACKAGE_STRING=
272 PACKAGE_BUGREPORT=
273
274 ac_unique_file="libbfd.c"
275 # Factoring default headers for most tests.
276 ac_includes_default="\
277 #include <stdio.h>
278 #if HAVE_SYS_TYPES_H
279 # include <sys/types.h>
280 #endif
281 #if HAVE_SYS_STAT_H
282 # include <sys/stat.h>
283 #endif
284 #if STDC_HEADERS
285 # include <stdlib.h>
286 # include <stddef.h>
287 #else
288 # if HAVE_STDLIB_H
289 # include <stdlib.h>
290 # endif
291 #endif
292 #if HAVE_STRING_H
293 # if !STDC_HEADERS && HAVE_MEMORY_H
294 # include <memory.h>
295 # endif
296 # include <string.h>
297 #endif
298 #if HAVE_STRINGS_H
299 # include <strings.h>
300 #endif
301 #if HAVE_INTTYPES_H
302 # include <inttypes.h>
303 #else
304 # if HAVE_STDINT_H
305 # include <stdint.h>
306 # endif
307 #endif
308 #if HAVE_UNISTD_H
309 # include <unistd.h>
310 #endif"
311
312 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 PKGVERSION REPORT_BUGS_TO REPORT_BUGS_TEXI WARN_CFLAGS NO_WERROR MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT GENINSRC_NEVER_TRUE GENINSRC_NEVER_FALSE INSTALL_LIBBFD_TRUE INSTALL_LIBBFD_FALSE host_noncanonical target_noncanonical bfdlibdir bfdincludedir USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS DATADIRNAME INSTOBJEXT GENCAT CATOBJEXT MKINSTALLDIRS MSGFMT MSGMERGE HDEFINES CPP EGREP 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 bfd64_libs all_backends bfd_backends bfd_machines bfd_default_target_size bfd_file_ptr bfd_ufile_ptr tdefaults datarootdir docdir htmldir LIBOBJS LTLIBOBJS'
313 ac_subst_files=''
314
315 # Initialize some variables set by options.
316 ac_init_help=
317 ac_init_version=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
320 cache_file=/dev/null
321 exec_prefix=NONE
322 no_create=
323 no_recursion=
324 prefix=NONE
325 program_prefix=NONE
326 program_suffix=NONE
327 program_transform_name=s,x,x,
328 silent=
329 site=
330 srcdir=
331 verbose=
332 x_includes=NONE
333 x_libraries=NONE
334
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir='${exec_prefix}/bin'
341 sbindir='${exec_prefix}/sbin'
342 libexecdir='${exec_prefix}/libexec'
343 datadir='${prefix}/share'
344 sysconfdir='${prefix}/etc'
345 sharedstatedir='${prefix}/com'
346 localstatedir='${prefix}/var'
347 libdir='${exec_prefix}/lib'
348 includedir='${prefix}/include'
349 oldincludedir='/usr/include'
350 infodir='${prefix}/info'
351 mandir='${prefix}/man'
352
353 ac_prev=
354 for ac_option
355 do
356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
359 ac_prev=
360 continue
361 fi
362
363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
364
365 # Accept the important Cygnus configure options, so we can diagnose typos.
366
367 case $ac_option in
368
369 -bindir | --bindir | --bindi | --bind | --bin | --bi)
370 ac_prev=bindir ;;
371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
372 bindir=$ac_optarg ;;
373
374 -build | --build | --buil | --bui | --bu)
375 ac_prev=build_alias ;;
376 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377 build_alias=$ac_optarg ;;
378
379 -cache-file | --cache-file | --cache-fil | --cache-fi \
380 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381 ac_prev=cache_file ;;
382 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384 cache_file=$ac_optarg ;;
385
386 --config-cache | -C)
387 cache_file=config.cache ;;
388
389 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390 ac_prev=datadir ;;
391 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392 | --da=*)
393 datadir=$ac_optarg ;;
394
395 -disable-* | --disable-*)
396 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397 # Reject names that are not valid shell variable names.
398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400 { (exit 1); exit 1; }; }
401 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402 eval "enable_$ac_feature=no" ;;
403
404 -enable-* | --enable-*)
405 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406 # Reject names that are not valid shell variable names.
407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409 { (exit 1); exit 1; }; }
410 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411 case $ac_option in
412 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
413 *) ac_optarg=yes ;;
414 esac
415 eval "enable_$ac_feature='$ac_optarg'" ;;
416
417 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419 | --exec | --exe | --ex)
420 ac_prev=exec_prefix ;;
421 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423 | --exec=* | --exe=* | --ex=*)
424 exec_prefix=$ac_optarg ;;
425
426 -gas | --gas | --ga | --g)
427 # Obsolete; use --with-gas.
428 with_gas=yes ;;
429
430 -help | --help | --hel | --he | -h)
431 ac_init_help=long ;;
432 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433 ac_init_help=recursive ;;
434 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435 ac_init_help=short ;;
436
437 -host | --host | --hos | --ho)
438 ac_prev=host_alias ;;
439 -host=* | --host=* | --hos=* | --ho=*)
440 host_alias=$ac_optarg ;;
441
442 -includedir | --includedir | --includedi | --included | --include \
443 | --includ | --inclu | --incl | --inc)
444 ac_prev=includedir ;;
445 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446 | --includ=* | --inclu=* | --incl=* | --inc=*)
447 includedir=$ac_optarg ;;
448
449 -infodir | --infodir | --infodi | --infod | --info | --inf)
450 ac_prev=infodir ;;
451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452 infodir=$ac_optarg ;;
453
454 -libdir | --libdir | --libdi | --libd)
455 ac_prev=libdir ;;
456 -libdir=* | --libdir=* | --libdi=* | --libd=*)
457 libdir=$ac_optarg ;;
458
459 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460 | --libexe | --libex | --libe)
461 ac_prev=libexecdir ;;
462 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463 | --libexe=* | --libex=* | --libe=*)
464 libexecdir=$ac_optarg ;;
465
466 -localstatedir | --localstatedir | --localstatedi | --localstated \
467 | --localstate | --localstat | --localsta | --localst \
468 | --locals | --local | --loca | --loc | --lo)
469 ac_prev=localstatedir ;;
470 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473 localstatedir=$ac_optarg ;;
474
475 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476 ac_prev=mandir ;;
477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
478 mandir=$ac_optarg ;;
479
480 -nfp | --nfp | --nf)
481 # Obsolete; use --without-fp.
482 with_fp=no ;;
483
484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485 | --no-cr | --no-c | -n)
486 no_create=yes ;;
487
488 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
490 no_recursion=yes ;;
491
492 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494 | --oldin | --oldi | --old | --ol | --o)
495 ac_prev=oldincludedir ;;
496 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499 oldincludedir=$ac_optarg ;;
500
501 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502 ac_prev=prefix ;;
503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
504 prefix=$ac_optarg ;;
505
506 -program-prefix | --program-prefix | --program-prefi | --program-pref \
507 | --program-pre | --program-pr | --program-p)
508 ac_prev=program_prefix ;;
509 -program-prefix=* | --program-prefix=* | --program-prefi=* \
510 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511 program_prefix=$ac_optarg ;;
512
513 -program-suffix | --program-suffix | --program-suffi | --program-suff \
514 | --program-suf | --program-su | --program-s)
515 ac_prev=program_suffix ;;
516 -program-suffix=* | --program-suffix=* | --program-suffi=* \
517 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518 program_suffix=$ac_optarg ;;
519
520 -program-transform-name | --program-transform-name \
521 | --program-transform-nam | --program-transform-na \
522 | --program-transform-n | --program-transform- \
523 | --program-transform | --program-transfor \
524 | --program-transfo | --program-transf \
525 | --program-trans | --program-tran \
526 | --progr-tra | --program-tr | --program-t)
527 ac_prev=program_transform_name ;;
528 -program-transform-name=* | --program-transform-name=* \
529 | --program-transform-nam=* | --program-transform-na=* \
530 | --program-transform-n=* | --program-transform-=* \
531 | --program-transform=* | --program-transfor=* \
532 | --program-transfo=* | --program-transf=* \
533 | --program-trans=* | --program-tran=* \
534 | --progr-tra=* | --program-tr=* | --program-t=*)
535 program_transform_name=$ac_optarg ;;
536
537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538 | -silent | --silent | --silen | --sile | --sil)
539 silent=yes ;;
540
541 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542 ac_prev=sbindir ;;
543 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544 | --sbi=* | --sb=*)
545 sbindir=$ac_optarg ;;
546
547 -sharedstatedir | --sharedstatedir | --sharedstatedi \
548 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549 | --sharedst | --shareds | --shared | --share | --shar \
550 | --sha | --sh)
551 ac_prev=sharedstatedir ;;
552 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555 | --sha=* | --sh=*)
556 sharedstatedir=$ac_optarg ;;
557
558 -site | --site | --sit)
559 ac_prev=site ;;
560 -site=* | --site=* | --sit=*)
561 site=$ac_optarg ;;
562
563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564 ac_prev=srcdir ;;
565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
566 srcdir=$ac_optarg ;;
567
568 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569 | --syscon | --sysco | --sysc | --sys | --sy)
570 ac_prev=sysconfdir ;;
571 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573 sysconfdir=$ac_optarg ;;
574
575 -target | --target | --targe | --targ | --tar | --ta | --t)
576 ac_prev=target_alias ;;
577 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578 target_alias=$ac_optarg ;;
579
580 -v | -verbose | --verbose | --verbos | --verbo | --verb)
581 verbose=yes ;;
582
583 -version | --version | --versio | --versi | --vers | -V)
584 ac_init_version=: ;;
585
586 -with-* | --with-*)
587 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588 # Reject names that are not valid shell variable names.
589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590 { echo "$as_me: error: invalid package name: $ac_package" >&2
591 { (exit 1); exit 1; }; }
592 ac_package=`echo $ac_package| sed 's/-/_/g'`
593 case $ac_option in
594 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
595 *) ac_optarg=yes ;;
596 esac
597 eval "with_$ac_package='$ac_optarg'" ;;
598
599 -without-* | --without-*)
600 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601 # Reject names that are not valid shell variable names.
602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603 { echo "$as_me: error: invalid package name: $ac_package" >&2
604 { (exit 1); exit 1; }; }
605 ac_package=`echo $ac_package | sed 's/-/_/g'`
606 eval "with_$ac_package=no" ;;
607
608 --x)
609 # Obsolete; use --with-x.
610 with_x=yes ;;
611
612 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613 | --x-incl | --x-inc | --x-in | --x-i)
614 ac_prev=x_includes ;;
615 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617 x_includes=$ac_optarg ;;
618
619 -x-libraries | --x-libraries | --x-librarie | --x-librari \
620 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621 ac_prev=x_libraries ;;
622 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624 x_libraries=$ac_optarg ;;
625
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
629 ;;
630
631 *=*)
632 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633 # Reject names that are not valid shell variable names.
634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636 { (exit 1); exit 1; }; }
637 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638 eval "$ac_envvar='$ac_optarg'"
639 export $ac_envvar ;;
640
641 *)
642 # FIXME: should be removed in autoconf 3.0.
643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
647 ;;
648
649 esac
650 done
651
652 if test -n "$ac_prev"; then
653 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654 { echo "$as_me: error: missing argument to $ac_option" >&2
655 { (exit 1); exit 1; }; }
656 fi
657
658 # Be sure to have absolute paths.
659 for ac_var in exec_prefix prefix
660 do
661 eval ac_val=$`echo $ac_var`
662 case $ac_val in
663 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
666 esac
667 done
668
669 # Be sure to have absolute paths.
670 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 localstatedir libdir includedir oldincludedir infodir mandir
672 do
673 eval ac_val=$`echo $ac_var`
674 case $ac_val in
675 [\\/$]* | ?:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
678 esac
679 done
680
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
684 build=$build_alias
685 host=$host_alias
686 target=$target_alias
687
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x; then
690 if test "x$build_alias" = x; then
691 cross_compiling=maybe
692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693 If a cross compiler is detected then cross compile mode will be used." >&2
694 elif test "x$build_alias" != "x$host_alias"; then
695 cross_compiling=yes
696 fi
697 fi
698
699 ac_tool_prefix=
700 test -n "$host_alias" && ac_tool_prefix=$host_alias-
701
702 test "$silent" = yes && exec 6>/dev/null
703
704
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707 ac_srcdir_defaulted=yes
708 # Try the directory containing this script, then its parent.
709 ac_confdir=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711 X"$0" : 'X\(//\)[^/]' \| \
712 X"$0" : 'X\(//\)$' \| \
713 X"$0" : 'X\(/\)' \| \
714 . : '\(.\)' 2>/dev/null ||
715 echo X"$0" |
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
720 s/.*/./; q'`
721 srcdir=$ac_confdir
722 if test ! -r $srcdir/$ac_unique_file; then
723 srcdir=..
724 fi
725 else
726 ac_srcdir_defaulted=no
727 fi
728 if test ! -r $srcdir/$ac_unique_file; then
729 if test "$ac_srcdir_defaulted" = yes; then
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
732 else
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
735 fi
736 fi
737 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739 { (exit 1); exit 1; }; }
740 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set=${build_alias+set}
742 ac_env_build_alias_value=$build_alias
743 ac_cv_env_build_alias_set=${build_alias+set}
744 ac_cv_env_build_alias_value=$build_alias
745 ac_env_host_alias_set=${host_alias+set}
746 ac_env_host_alias_value=$host_alias
747 ac_cv_env_host_alias_set=${host_alias+set}
748 ac_cv_env_host_alias_value=$host_alias
749 ac_env_target_alias_set=${target_alias+set}
750 ac_env_target_alias_value=$target_alias
751 ac_cv_env_target_alias_set=${target_alias+set}
752 ac_cv_env_target_alias_value=$target_alias
753 ac_env_CC_set=${CC+set}
754 ac_env_CC_value=$CC
755 ac_cv_env_CC_set=${CC+set}
756 ac_cv_env_CC_value=$CC
757 ac_env_CFLAGS_set=${CFLAGS+set}
758 ac_env_CFLAGS_value=$CFLAGS
759 ac_cv_env_CFLAGS_set=${CFLAGS+set}
760 ac_cv_env_CFLAGS_value=$CFLAGS
761 ac_env_LDFLAGS_set=${LDFLAGS+set}
762 ac_env_LDFLAGS_value=$LDFLAGS
763 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value=$LDFLAGS
765 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769 ac_env_CPP_set=${CPP+set}
770 ac_env_CPP_value=$CPP
771 ac_cv_env_CPP_set=${CPP+set}
772 ac_cv_env_CPP_value=$CPP
773
774 #
775 # Report the --help message.
776 #
777 if test "$ac_init_help" = "long"; then
778 # Omit some internal or obsolete options to make the list less imposing.
779 # This message is too long to be a string in the A/UX 3.1 sh.
780 cat <<_ACEOF
781 \`configure' configures this package to adapt to many kinds of systems.
782
783 Usage: $0 [OPTION]... [VAR=VALUE]...
784
785 To assign environment variables (e.g., CC, CFLAGS...), specify them as
786 VAR=VALUE. See below for descriptions of some of the useful variables.
787
788 Defaults for the options are specified in brackets.
789
790 Configuration:
791 -h, --help display this help and exit
792 --help=short display options specific to this package
793 --help=recursive display the short help of all the included packages
794 -V, --version display version information and exit
795 -q, --quiet, --silent do not print \`checking...' messages
796 --cache-file=FILE cache test results in FILE [disabled]
797 -C, --config-cache alias for \`--cache-file=config.cache'
798 -n, --no-create do not create output files
799 --srcdir=DIR find the sources in DIR [configure dir or \`..']
800
801 _ACEOF
802
803 cat <<_ACEOF
804 Installation directories:
805 --prefix=PREFIX install architecture-independent files in PREFIX
806 [$ac_default_prefix]
807 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
808 [PREFIX]
809
810 By default, \`make install' will install all the files in
811 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
812 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
813 for instance \`--prefix=\$HOME'.
814
815 For better control, use the options below.
816
817 Fine tuning of the installation directories:
818 --bindir=DIR user executables [EPREFIX/bin]
819 --sbindir=DIR system admin executables [EPREFIX/sbin]
820 --libexecdir=DIR program executables [EPREFIX/libexec]
821 --datadir=DIR read-only architecture-independent data [PREFIX/share]
822 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
823 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
824 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
825 --libdir=DIR object code libraries [EPREFIX/lib]
826 --includedir=DIR C header files [PREFIX/include]
827 --oldincludedir=DIR C header files for non-gcc [/usr/include]
828 --infodir=DIR info documentation [PREFIX/info]
829 --mandir=DIR man documentation [PREFIX/man]
830 _ACEOF
831
832 cat <<\_ACEOF
833
834 Program names:
835 --program-prefix=PREFIX prepend PREFIX to installed program names
836 --program-suffix=SUFFIX append SUFFIX to installed program names
837 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
838
839 System types:
840 --build=BUILD configure for building on BUILD [guessed]
841 --host=HOST cross-compile to build programs to run on HOST [BUILD]
842 --target=TARGET configure for building compilers for TARGET [HOST]
843 _ACEOF
844 fi
845
846 if test -n "$ac_init_help"; then
847
848 cat <<\_ACEOF
849
850 Optional Features:
851 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
852 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
853 --disable-dependency-tracking speeds up one-time build
854 --enable-dependency-tracking do not reject slow dependency extractors
855 --enable-shared=PKGS build shared libraries default=no
856 --enable-static=PKGS build static libraries default=yes
857 --enable-fast-install=PKGS optimize for fast installation default=yes
858 --disable-libtool-lock avoid locking (might break parallel builds)
859 --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)
860 --enable-targets alternative target configurations
861 --enable-commonbfdlib build shared BFD/opcodes/libiberty library
862 --enable-secureplt Default to creating read-only plt entries
863 --enable-werror treat compile warnings as errors
864 --enable-build-warnings enable build-time compiler warnings
865 --enable-maintainer-mode enable make rules and dependencies not useful
866 (and sometimes confusing) to the casual installer
867 --enable-install-libbfd controls installation of libbfd and related headers
868 --disable-nls do not use Native Language Support
869
870 Optional Packages:
871 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
872 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
873 --with-gnu-ld assume the C compiler uses GNU ld default=no
874 --with-pic try to use only PIC/non-PIC objects default=use both
875 --with-mmap try using mmap for BFD input files if available
876 --with-pkgversion=PKG Use PKG in the version string in place of "GNU
877 Binutils"
878 --with-bugurl=URL Direct users to URL to report a bug
879
880 Some influential environment variables:
881 CC C compiler command
882 CFLAGS C compiler flags
883 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
884 nonstandard directory <lib dir>
885 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
886 headers in a nonstandard directory <include dir>
887 CPP C preprocessor
888
889 Use these variables to override the choices made by `configure' or to help
890 it to find libraries and programs with nonstandard names/locations.
891
892 _ACEOF
893 fi
894
895 if test "$ac_init_help" = "recursive"; then
896 # If there are subdirs, report their specific --help.
897 ac_popdir=`pwd`
898 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
899 test -d $ac_dir || continue
900 ac_builddir=.
901
902 if test "$ac_dir" != .; then
903 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
904 # A "../" for each directory in $ac_dir_suffix.
905 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
906 else
907 ac_dir_suffix= ac_top_builddir=
908 fi
909
910 case $srcdir in
911 .) # No --srcdir option. We are building in place.
912 ac_srcdir=.
913 if test -z "$ac_top_builddir"; then
914 ac_top_srcdir=.
915 else
916 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
917 fi ;;
918 [\\/]* | ?:[\\/]* ) # Absolute path.
919 ac_srcdir=$srcdir$ac_dir_suffix;
920 ac_top_srcdir=$srcdir ;;
921 *) # Relative path.
922 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
923 ac_top_srcdir=$ac_top_builddir$srcdir ;;
924 esac
925
926 # Do not use `cd foo && pwd` to compute absolute paths, because
927 # the directories may not exist.
928 case `pwd` in
929 .) ac_abs_builddir="$ac_dir";;
930 *)
931 case "$ac_dir" in
932 .) ac_abs_builddir=`pwd`;;
933 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
934 *) ac_abs_builddir=`pwd`/"$ac_dir";;
935 esac;;
936 esac
937 case $ac_abs_builddir in
938 .) ac_abs_top_builddir=${ac_top_builddir}.;;
939 *)
940 case ${ac_top_builddir}. in
941 .) ac_abs_top_builddir=$ac_abs_builddir;;
942 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
943 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
944 esac;;
945 esac
946 case $ac_abs_builddir in
947 .) ac_abs_srcdir=$ac_srcdir;;
948 *)
949 case $ac_srcdir in
950 .) ac_abs_srcdir=$ac_abs_builddir;;
951 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
952 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
953 esac;;
954 esac
955 case $ac_abs_builddir in
956 .) ac_abs_top_srcdir=$ac_top_srcdir;;
957 *)
958 case $ac_top_srcdir in
959 .) ac_abs_top_srcdir=$ac_abs_builddir;;
960 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
961 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
962 esac;;
963 esac
964
965 cd $ac_dir
966 # Check for guested configure; otherwise get Cygnus style configure.
967 if test -f $ac_srcdir/configure.gnu; then
968 echo
969 $SHELL $ac_srcdir/configure.gnu --help=recursive
970 elif test -f $ac_srcdir/configure; then
971 echo
972 $SHELL $ac_srcdir/configure --help=recursive
973 elif test -f $ac_srcdir/configure.ac ||
974 test -f $ac_srcdir/configure.in; then
975 echo
976 $ac_configure --help
977 else
978 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
979 fi
980 cd $ac_popdir
981 done
982 fi
983
984 test -n "$ac_init_help" && exit 0
985 if $ac_init_version; then
986 cat <<\_ACEOF
987
988 Copyright (C) 2003 Free Software Foundation, Inc.
989 This configure script is free software; the Free Software Foundation
990 gives unlimited permission to copy, distribute and modify it.
991 _ACEOF
992 exit 0
993 fi
994 exec 5>config.log
995 cat >&5 <<_ACEOF
996 This file contains any messages produced by compilers while
997 running configure, to aid debugging if configure makes a mistake.
998
999 It was created by $as_me, which was
1000 generated by GNU Autoconf 2.59. Invocation command line was
1001
1002 $ $0 $@
1003
1004 _ACEOF
1005 {
1006 cat <<_ASUNAME
1007 ## --------- ##
1008 ## Platform. ##
1009 ## --------- ##
1010
1011 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1012 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1013 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1014 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1015 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1016
1017 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1018 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1019
1020 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1021 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1022 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1023 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1024 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1025 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1026 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1027
1028 _ASUNAME
1029
1030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1031 for as_dir in $PATH
1032 do
1033 IFS=$as_save_IFS
1034 test -z "$as_dir" && as_dir=.
1035 echo "PATH: $as_dir"
1036 done
1037
1038 } >&5
1039
1040 cat >&5 <<_ACEOF
1041
1042
1043 ## ----------- ##
1044 ## Core tests. ##
1045 ## ----------- ##
1046
1047 _ACEOF
1048
1049
1050 # Keep a trace of the command line.
1051 # Strip out --no-create and --no-recursion so they do not pile up.
1052 # Strip out --silent because we don't want to record it for future runs.
1053 # Also quote any args containing shell meta-characters.
1054 # Make two passes to allow for proper duplicate-argument suppression.
1055 ac_configure_args=
1056 ac_configure_args0=
1057 ac_configure_args1=
1058 ac_sep=
1059 ac_must_keep_next=false
1060 for ac_pass in 1 2
1061 do
1062 for ac_arg
1063 do
1064 case $ac_arg in
1065 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1066 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1067 | -silent | --silent | --silen | --sile | --sil)
1068 continue ;;
1069 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1070 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1071 esac
1072 case $ac_pass in
1073 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1074 2)
1075 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1076 if test $ac_must_keep_next = true; then
1077 ac_must_keep_next=false # Got value, back to normal.
1078 else
1079 case $ac_arg in
1080 *=* | --config-cache | -C | -disable-* | --disable-* \
1081 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1082 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1083 | -with-* | --with-* | -without-* | --without-* | --x)
1084 case "$ac_configure_args0 " in
1085 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1086 esac
1087 ;;
1088 -* ) ac_must_keep_next=true ;;
1089 esac
1090 fi
1091 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1092 # Get rid of the leading space.
1093 ac_sep=" "
1094 ;;
1095 esac
1096 done
1097 done
1098 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1099 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1100
1101 # When interrupted or exit'd, cleanup temporary files, and complete
1102 # config.log. We remove comments because anyway the quotes in there
1103 # would cause problems or look ugly.
1104 # WARNING: Be sure not to use single quotes in there, as some shells,
1105 # such as our DU 5.0 friend, will then `close' the trap.
1106 trap 'exit_status=$?
1107 # Save into config.log some information that might help in debugging.
1108 {
1109 echo
1110
1111 cat <<\_ASBOX
1112 ## ---------------- ##
1113 ## Cache variables. ##
1114 ## ---------------- ##
1115 _ASBOX
1116 echo
1117 # The following way of writing the cache mishandles newlines in values,
1118 {
1119 (set) 2>&1 |
1120 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1121 *ac_space=\ *)
1122 sed -n \
1123 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1124 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1125 ;;
1126 *)
1127 sed -n \
1128 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1129 ;;
1130 esac;
1131 }
1132 echo
1133
1134 cat <<\_ASBOX
1135 ## ----------------- ##
1136 ## Output variables. ##
1137 ## ----------------- ##
1138 _ASBOX
1139 echo
1140 for ac_var in $ac_subst_vars
1141 do
1142 eval ac_val=$`echo $ac_var`
1143 echo "$ac_var='"'"'$ac_val'"'"'"
1144 done | sort
1145 echo
1146
1147 if test -n "$ac_subst_files"; then
1148 cat <<\_ASBOX
1149 ## ------------- ##
1150 ## Output files. ##
1151 ## ------------- ##
1152 _ASBOX
1153 echo
1154 for ac_var in $ac_subst_files
1155 do
1156 eval ac_val=$`echo $ac_var`
1157 echo "$ac_var='"'"'$ac_val'"'"'"
1158 done | sort
1159 echo
1160 fi
1161
1162 if test -s confdefs.h; then
1163 cat <<\_ASBOX
1164 ## ----------- ##
1165 ## confdefs.h. ##
1166 ## ----------- ##
1167 _ASBOX
1168 echo
1169 sed "/^$/d" confdefs.h | sort
1170 echo
1171 fi
1172 test "$ac_signal" != 0 &&
1173 echo "$as_me: caught signal $ac_signal"
1174 echo "$as_me: exit $exit_status"
1175 } >&5
1176 rm -f core *.core &&
1177 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1178 exit $exit_status
1179 ' 0
1180 for ac_signal in 1 2 13 15; do
1181 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1182 done
1183 ac_signal=0
1184
1185 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1186 rm -rf conftest* confdefs.h
1187 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1188 echo >confdefs.h
1189
1190 # Predefined preprocessor variables.
1191
1192 cat >>confdefs.h <<_ACEOF
1193 #define PACKAGE_NAME "$PACKAGE_NAME"
1194 _ACEOF
1195
1196
1197 cat >>confdefs.h <<_ACEOF
1198 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1199 _ACEOF
1200
1201
1202 cat >>confdefs.h <<_ACEOF
1203 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1204 _ACEOF
1205
1206
1207 cat >>confdefs.h <<_ACEOF
1208 #define PACKAGE_STRING "$PACKAGE_STRING"
1209 _ACEOF
1210
1211
1212 cat >>confdefs.h <<_ACEOF
1213 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1214 _ACEOF
1215
1216
1217 # Let the site file select an alternate cache file if it wants to.
1218 # Prefer explicitly selected file to automatically selected ones.
1219 if test -z "$CONFIG_SITE"; then
1220 if test "x$prefix" != xNONE; then
1221 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1222 else
1223 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1224 fi
1225 fi
1226 for ac_site_file in $CONFIG_SITE; do
1227 if test -r "$ac_site_file"; then
1228 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1229 echo "$as_me: loading site script $ac_site_file" >&6;}
1230 sed 's/^/| /' "$ac_site_file" >&5
1231 . "$ac_site_file"
1232 fi
1233 done
1234
1235 if test -r "$cache_file"; then
1236 # Some versions of bash will fail to source /dev/null (special
1237 # files actually), so we avoid doing that.
1238 if test -f "$cache_file"; then
1239 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1240 echo "$as_me: loading cache $cache_file" >&6;}
1241 case $cache_file in
1242 [\\/]* | ?:[\\/]* ) . $cache_file;;
1243 *) . ./$cache_file;;
1244 esac
1245 fi
1246 else
1247 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1248 echo "$as_me: creating cache $cache_file" >&6;}
1249 >$cache_file
1250 fi
1251
1252 # Check that the precious variables saved in the cache have kept the same
1253 # value.
1254 ac_cache_corrupted=false
1255 for ac_var in `(set) 2>&1 |
1256 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1257 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1258 eval ac_new_set=\$ac_env_${ac_var}_set
1259 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1260 eval ac_new_val="\$ac_env_${ac_var}_value"
1261 case $ac_old_set,$ac_new_set in
1262 set,)
1263 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1264 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1265 ac_cache_corrupted=: ;;
1266 ,set)
1267 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1268 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1269 ac_cache_corrupted=: ;;
1270 ,);;
1271 *)
1272 if test "x$ac_old_val" != "x$ac_new_val"; then
1273 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1274 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1275 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1276 echo "$as_me: former value: $ac_old_val" >&2;}
1277 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1278 echo "$as_me: current value: $ac_new_val" >&2;}
1279 ac_cache_corrupted=:
1280 fi;;
1281 esac
1282 # Pass precious variables to config.status.
1283 if test "$ac_new_set" = set; then
1284 case $ac_new_val in
1285 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1286 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1287 *) ac_arg=$ac_var=$ac_new_val ;;
1288 esac
1289 case " $ac_configure_args " in
1290 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1291 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1292 esac
1293 fi
1294 done
1295 if $ac_cache_corrupted; then
1296 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1297 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1298 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1299 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1300 { (exit 1); exit 1; }; }
1301 fi
1302
1303 ac_ext=c
1304 ac_cpp='$CPP $CPPFLAGS'
1305 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1306 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1307 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329 ac_aux_dir=
1330 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1331 if test -f $ac_dir/install-sh; then
1332 ac_aux_dir=$ac_dir
1333 ac_install_sh="$ac_aux_dir/install-sh -c"
1334 break
1335 elif test -f $ac_dir/install.sh; then
1336 ac_aux_dir=$ac_dir
1337 ac_install_sh="$ac_aux_dir/install.sh -c"
1338 break
1339 elif test -f $ac_dir/shtool; then
1340 ac_aux_dir=$ac_dir
1341 ac_install_sh="$ac_aux_dir/shtool install -c"
1342 break
1343 fi
1344 done
1345 if test -z "$ac_aux_dir"; then
1346 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1347 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1348 { (exit 1); exit 1; }; }
1349 fi
1350 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1351 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1352 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1353
1354 # Make sure we can run config.sub.
1355 $ac_config_sub sun4 >/dev/null 2>&1 ||
1356 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1357 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1358 { (exit 1); exit 1; }; }
1359
1360 echo "$as_me:$LINENO: checking build system type" >&5
1361 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1362 if test "${ac_cv_build+set}" = set; then
1363 echo $ECHO_N "(cached) $ECHO_C" >&6
1364 else
1365 ac_cv_build_alias=$build_alias
1366 test -z "$ac_cv_build_alias" &&
1367 ac_cv_build_alias=`$ac_config_guess`
1368 test -z "$ac_cv_build_alias" &&
1369 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1370 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1371 { (exit 1); exit 1; }; }
1372 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1373 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1374 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1375 { (exit 1); exit 1; }; }
1376
1377 fi
1378 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1379 echo "${ECHO_T}$ac_cv_build" >&6
1380 build=$ac_cv_build
1381 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1382 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1383 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1384
1385
1386 echo "$as_me:$LINENO: checking host system type" >&5
1387 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1388 if test "${ac_cv_host+set}" = set; then
1389 echo $ECHO_N "(cached) $ECHO_C" >&6
1390 else
1391 ac_cv_host_alias=$host_alias
1392 test -z "$ac_cv_host_alias" &&
1393 ac_cv_host_alias=$ac_cv_build_alias
1394 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1395 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1396 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1397 { (exit 1); exit 1; }; }
1398
1399 fi
1400 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1401 echo "${ECHO_T}$ac_cv_host" >&6
1402 host=$ac_cv_host
1403 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1404 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1405 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1406
1407
1408 echo "$as_me:$LINENO: checking target system type" >&5
1409 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1410 if test "${ac_cv_target+set}" = set; then
1411 echo $ECHO_N "(cached) $ECHO_C" >&6
1412 else
1413 ac_cv_target_alias=$target_alias
1414 test "x$ac_cv_target_alias" = "x" &&
1415 ac_cv_target_alias=$ac_cv_host_alias
1416 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1417 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1418 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1419 { (exit 1); exit 1; }; }
1420
1421 fi
1422 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1423 echo "${ECHO_T}$ac_cv_target" >&6
1424 target=$ac_cv_target
1425 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1426 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1427 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1428
1429
1430 # The aliases save the names the user supplied, while $host etc.
1431 # will get canonicalized.
1432 test -n "$target_alias" &&
1433 test "$program_prefix$program_suffix$program_transform_name" = \
1434 NONENONEs,x,x, &&
1435 program_prefix=${target_alias}-
1436 ac_ext=c
1437 ac_cpp='$CPP $CPPFLAGS'
1438 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1439 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1440 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1441 if test -n "$ac_tool_prefix"; then
1442 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1443 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1444 echo "$as_me:$LINENO: checking for $ac_word" >&5
1445 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1446 if test "${ac_cv_prog_CC+set}" = set; then
1447 echo $ECHO_N "(cached) $ECHO_C" >&6
1448 else
1449 if test -n "$CC"; then
1450 ac_cv_prog_CC="$CC" # Let the user override the test.
1451 else
1452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1453 for as_dir in $PATH
1454 do
1455 IFS=$as_save_IFS
1456 test -z "$as_dir" && as_dir=.
1457 for ac_exec_ext in '' $ac_executable_extensions; do
1458 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1459 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1460 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1461 break 2
1462 fi
1463 done
1464 done
1465
1466 fi
1467 fi
1468 CC=$ac_cv_prog_CC
1469 if test -n "$CC"; then
1470 echo "$as_me:$LINENO: result: $CC" >&5
1471 echo "${ECHO_T}$CC" >&6
1472 else
1473 echo "$as_me:$LINENO: result: no" >&5
1474 echo "${ECHO_T}no" >&6
1475 fi
1476
1477 fi
1478 if test -z "$ac_cv_prog_CC"; then
1479 ac_ct_CC=$CC
1480 # Extract the first word of "gcc", so it can be a program name with args.
1481 set dummy gcc; ac_word=$2
1482 echo "$as_me:$LINENO: checking for $ac_word" >&5
1483 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1484 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1485 echo $ECHO_N "(cached) $ECHO_C" >&6
1486 else
1487 if test -n "$ac_ct_CC"; then
1488 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1489 else
1490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1491 for as_dir in $PATH
1492 do
1493 IFS=$as_save_IFS
1494 test -z "$as_dir" && as_dir=.
1495 for ac_exec_ext in '' $ac_executable_extensions; do
1496 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1497 ac_cv_prog_ac_ct_CC="gcc"
1498 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1499 break 2
1500 fi
1501 done
1502 done
1503
1504 fi
1505 fi
1506 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1507 if test -n "$ac_ct_CC"; then
1508 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1509 echo "${ECHO_T}$ac_ct_CC" >&6
1510 else
1511 echo "$as_me:$LINENO: result: no" >&5
1512 echo "${ECHO_T}no" >&6
1513 fi
1514
1515 CC=$ac_ct_CC
1516 else
1517 CC="$ac_cv_prog_CC"
1518 fi
1519
1520 if test -z "$CC"; then
1521 if test -n "$ac_tool_prefix"; then
1522 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1523 set dummy ${ac_tool_prefix}cc; ac_word=$2
1524 echo "$as_me:$LINENO: checking for $ac_word" >&5
1525 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1526 if test "${ac_cv_prog_CC+set}" = set; then
1527 echo $ECHO_N "(cached) $ECHO_C" >&6
1528 else
1529 if test -n "$CC"; then
1530 ac_cv_prog_CC="$CC" # Let the user override the test.
1531 else
1532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1533 for as_dir in $PATH
1534 do
1535 IFS=$as_save_IFS
1536 test -z "$as_dir" && as_dir=.
1537 for ac_exec_ext in '' $ac_executable_extensions; do
1538 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1539 ac_cv_prog_CC="${ac_tool_prefix}cc"
1540 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1541 break 2
1542 fi
1543 done
1544 done
1545
1546 fi
1547 fi
1548 CC=$ac_cv_prog_CC
1549 if test -n "$CC"; then
1550 echo "$as_me:$LINENO: result: $CC" >&5
1551 echo "${ECHO_T}$CC" >&6
1552 else
1553 echo "$as_me:$LINENO: result: no" >&5
1554 echo "${ECHO_T}no" >&6
1555 fi
1556
1557 fi
1558 if test -z "$ac_cv_prog_CC"; then
1559 ac_ct_CC=$CC
1560 # Extract the first word of "cc", so it can be a program name with args.
1561 set dummy cc; ac_word=$2
1562 echo "$as_me:$LINENO: checking for $ac_word" >&5
1563 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1564 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1565 echo $ECHO_N "(cached) $ECHO_C" >&6
1566 else
1567 if test -n "$ac_ct_CC"; then
1568 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1569 else
1570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1571 for as_dir in $PATH
1572 do
1573 IFS=$as_save_IFS
1574 test -z "$as_dir" && as_dir=.
1575 for ac_exec_ext in '' $ac_executable_extensions; do
1576 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1577 ac_cv_prog_ac_ct_CC="cc"
1578 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1579 break 2
1580 fi
1581 done
1582 done
1583
1584 fi
1585 fi
1586 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1587 if test -n "$ac_ct_CC"; then
1588 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1589 echo "${ECHO_T}$ac_ct_CC" >&6
1590 else
1591 echo "$as_me:$LINENO: result: no" >&5
1592 echo "${ECHO_T}no" >&6
1593 fi
1594
1595 CC=$ac_ct_CC
1596 else
1597 CC="$ac_cv_prog_CC"
1598 fi
1599
1600 fi
1601 if test -z "$CC"; then
1602 # Extract the first word of "cc", so it can be a program name with args.
1603 set dummy cc; ac_word=$2
1604 echo "$as_me:$LINENO: checking for $ac_word" >&5
1605 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1606 if test "${ac_cv_prog_CC+set}" = set; then
1607 echo $ECHO_N "(cached) $ECHO_C" >&6
1608 else
1609 if test -n "$CC"; then
1610 ac_cv_prog_CC="$CC" # Let the user override the test.
1611 else
1612 ac_prog_rejected=no
1613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1614 for as_dir in $PATH
1615 do
1616 IFS=$as_save_IFS
1617 test -z "$as_dir" && as_dir=.
1618 for ac_exec_ext in '' $ac_executable_extensions; do
1619 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1620 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1621 ac_prog_rejected=yes
1622 continue
1623 fi
1624 ac_cv_prog_CC="cc"
1625 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1626 break 2
1627 fi
1628 done
1629 done
1630
1631 if test $ac_prog_rejected = yes; then
1632 # We found a bogon in the path, so make sure we never use it.
1633 set dummy $ac_cv_prog_CC
1634 shift
1635 if test $# != 0; then
1636 # We chose a different compiler from the bogus one.
1637 # However, it has the same basename, so the bogon will be chosen
1638 # first if we set CC to just the basename; use the full file name.
1639 shift
1640 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1641 fi
1642 fi
1643 fi
1644 fi
1645 CC=$ac_cv_prog_CC
1646 if test -n "$CC"; then
1647 echo "$as_me:$LINENO: result: $CC" >&5
1648 echo "${ECHO_T}$CC" >&6
1649 else
1650 echo "$as_me:$LINENO: result: no" >&5
1651 echo "${ECHO_T}no" >&6
1652 fi
1653
1654 fi
1655 if test -z "$CC"; then
1656 if test -n "$ac_tool_prefix"; then
1657 for ac_prog in cl
1658 do
1659 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1660 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1661 echo "$as_me:$LINENO: checking for $ac_word" >&5
1662 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1663 if test "${ac_cv_prog_CC+set}" = set; then
1664 echo $ECHO_N "(cached) $ECHO_C" >&6
1665 else
1666 if test -n "$CC"; then
1667 ac_cv_prog_CC="$CC" # Let the user override the test.
1668 else
1669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1670 for as_dir in $PATH
1671 do
1672 IFS=$as_save_IFS
1673 test -z "$as_dir" && as_dir=.
1674 for ac_exec_ext in '' $ac_executable_extensions; do
1675 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1676 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1677 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1678 break 2
1679 fi
1680 done
1681 done
1682
1683 fi
1684 fi
1685 CC=$ac_cv_prog_CC
1686 if test -n "$CC"; then
1687 echo "$as_me:$LINENO: result: $CC" >&5
1688 echo "${ECHO_T}$CC" >&6
1689 else
1690 echo "$as_me:$LINENO: result: no" >&5
1691 echo "${ECHO_T}no" >&6
1692 fi
1693
1694 test -n "$CC" && break
1695 done
1696 fi
1697 if test -z "$CC"; then
1698 ac_ct_CC=$CC
1699 for ac_prog in cl
1700 do
1701 # Extract the first word of "$ac_prog", so it can be a program name with args.
1702 set dummy $ac_prog; ac_word=$2
1703 echo "$as_me:$LINENO: checking for $ac_word" >&5
1704 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1705 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1706 echo $ECHO_N "(cached) $ECHO_C" >&6
1707 else
1708 if test -n "$ac_ct_CC"; then
1709 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1710 else
1711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1712 for as_dir in $PATH
1713 do
1714 IFS=$as_save_IFS
1715 test -z "$as_dir" && as_dir=.
1716 for ac_exec_ext in '' $ac_executable_extensions; do
1717 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1718 ac_cv_prog_ac_ct_CC="$ac_prog"
1719 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1720 break 2
1721 fi
1722 done
1723 done
1724
1725 fi
1726 fi
1727 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1728 if test -n "$ac_ct_CC"; then
1729 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1730 echo "${ECHO_T}$ac_ct_CC" >&6
1731 else
1732 echo "$as_me:$LINENO: result: no" >&5
1733 echo "${ECHO_T}no" >&6
1734 fi
1735
1736 test -n "$ac_ct_CC" && break
1737 done
1738
1739 CC=$ac_ct_CC
1740 fi
1741
1742 fi
1743
1744
1745 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1746 See \`config.log' for more details." >&5
1747 echo "$as_me: error: no acceptable C compiler found in \$PATH
1748 See \`config.log' for more details." >&2;}
1749 { (exit 1); exit 1; }; }
1750
1751 # Provide some information about the compiler.
1752 echo "$as_me:$LINENO:" \
1753 "checking for C compiler version" >&5
1754 ac_compiler=`set X $ac_compile; echo $2`
1755 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1756 (eval $ac_compiler --version </dev/null >&5) 2>&5
1757 ac_status=$?
1758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1759 (exit $ac_status); }
1760 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1761 (eval $ac_compiler -v </dev/null >&5) 2>&5
1762 ac_status=$?
1763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1764 (exit $ac_status); }
1765 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1766 (eval $ac_compiler -V </dev/null >&5) 2>&5
1767 ac_status=$?
1768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1769 (exit $ac_status); }
1770
1771 cat >conftest.$ac_ext <<_ACEOF
1772 /* confdefs.h. */
1773 _ACEOF
1774 cat confdefs.h >>conftest.$ac_ext
1775 cat >>conftest.$ac_ext <<_ACEOF
1776 /* end confdefs.h. */
1777
1778 int
1779 main ()
1780 {
1781
1782 ;
1783 return 0;
1784 }
1785 _ACEOF
1786 ac_clean_files_save=$ac_clean_files
1787 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1788 # Try to create an executable without -o first, disregard a.out.
1789 # It will help us diagnose broken compilers, and finding out an intuition
1790 # of exeext.
1791 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1792 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1793 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1794 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1795 (eval $ac_link_default) 2>&5
1796 ac_status=$?
1797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1798 (exit $ac_status); }; then
1799 # Find the output, starting from the most likely. This scheme is
1800 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1801 # resort.
1802
1803 # Be careful to initialize this variable, since it used to be cached.
1804 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1805 ac_cv_exeext=
1806 # b.out is created by i960 compilers.
1807 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1808 do
1809 test -f "$ac_file" || continue
1810 case $ac_file in
1811 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1812 ;;
1813 conftest.$ac_ext )
1814 # This is the source file.
1815 ;;
1816 [ab].out )
1817 # We found the default executable, but exeext='' is most
1818 # certainly right.
1819 break;;
1820 *.* )
1821 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1822 # FIXME: I believe we export ac_cv_exeext for Libtool,
1823 # but it would be cool to find out if it's true. Does anybody
1824 # maintain Libtool? --akim.
1825 export ac_cv_exeext
1826 break;;
1827 * )
1828 break;;
1829 esac
1830 done
1831 else
1832 echo "$as_me: failed program was:" >&5
1833 sed 's/^/| /' conftest.$ac_ext >&5
1834
1835 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1836 See \`config.log' for more details." >&5
1837 echo "$as_me: error: C compiler cannot create executables
1838 See \`config.log' for more details." >&2;}
1839 { (exit 77); exit 77; }; }
1840 fi
1841
1842 ac_exeext=$ac_cv_exeext
1843 echo "$as_me:$LINENO: result: $ac_file" >&5
1844 echo "${ECHO_T}$ac_file" >&6
1845
1846 # Check the compiler produces executables we can run. If not, either
1847 # the compiler is broken, or we cross compile.
1848 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1849 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1850 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1851 # If not cross compiling, check that we can run a simple program.
1852 if test "$cross_compiling" != yes; then
1853 if { ac_try='./$ac_file'
1854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1855 (eval $ac_try) 2>&5
1856 ac_status=$?
1857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1858 (exit $ac_status); }; }; then
1859 cross_compiling=no
1860 else
1861 if test "$cross_compiling" = maybe; then
1862 cross_compiling=yes
1863 else
1864 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1865 If you meant to cross compile, use \`--host'.
1866 See \`config.log' for more details." >&5
1867 echo "$as_me: error: cannot run C compiled programs.
1868 If you meant to cross compile, use \`--host'.
1869 See \`config.log' for more details." >&2;}
1870 { (exit 1); exit 1; }; }
1871 fi
1872 fi
1873 fi
1874 echo "$as_me:$LINENO: result: yes" >&5
1875 echo "${ECHO_T}yes" >&6
1876
1877 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1878 ac_clean_files=$ac_clean_files_save
1879 # Check the compiler produces executables we can run. If not, either
1880 # the compiler is broken, or we cross compile.
1881 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1882 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1883 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1884 echo "${ECHO_T}$cross_compiling" >&6
1885
1886 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1887 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1888 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1889 (eval $ac_link) 2>&5
1890 ac_status=$?
1891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1892 (exit $ac_status); }; then
1893 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1894 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1895 # work properly (i.e., refer to `conftest.exe'), while it won't with
1896 # `rm'.
1897 for ac_file in conftest.exe conftest conftest.*; do
1898 test -f "$ac_file" || continue
1899 case $ac_file in
1900 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1901 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1902 export ac_cv_exeext
1903 break;;
1904 * ) break;;
1905 esac
1906 done
1907 else
1908 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1909 See \`config.log' for more details." >&5
1910 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1911 See \`config.log' for more details." >&2;}
1912 { (exit 1); exit 1; }; }
1913 fi
1914
1915 rm -f conftest$ac_cv_exeext
1916 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1917 echo "${ECHO_T}$ac_cv_exeext" >&6
1918
1919 rm -f conftest.$ac_ext
1920 EXEEXT=$ac_cv_exeext
1921 ac_exeext=$EXEEXT
1922 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1923 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1924 if test "${ac_cv_objext+set}" = set; then
1925 echo $ECHO_N "(cached) $ECHO_C" >&6
1926 else
1927 cat >conftest.$ac_ext <<_ACEOF
1928 /* confdefs.h. */
1929 _ACEOF
1930 cat confdefs.h >>conftest.$ac_ext
1931 cat >>conftest.$ac_ext <<_ACEOF
1932 /* end confdefs.h. */
1933
1934 int
1935 main ()
1936 {
1937
1938 ;
1939 return 0;
1940 }
1941 _ACEOF
1942 rm -f conftest.o conftest.obj
1943 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1944 (eval $ac_compile) 2>&5
1945 ac_status=$?
1946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1947 (exit $ac_status); }; then
1948 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1949 case $ac_file in
1950 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1951 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1952 break;;
1953 esac
1954 done
1955 else
1956 echo "$as_me: failed program was:" >&5
1957 sed 's/^/| /' conftest.$ac_ext >&5
1958
1959 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1960 See \`config.log' for more details." >&5
1961 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1962 See \`config.log' for more details." >&2;}
1963 { (exit 1); exit 1; }; }
1964 fi
1965
1966 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1967 fi
1968 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1969 echo "${ECHO_T}$ac_cv_objext" >&6
1970 OBJEXT=$ac_cv_objext
1971 ac_objext=$OBJEXT
1972 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1973 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1974 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1975 echo $ECHO_N "(cached) $ECHO_C" >&6
1976 else
1977 cat >conftest.$ac_ext <<_ACEOF
1978 /* confdefs.h. */
1979 _ACEOF
1980 cat confdefs.h >>conftest.$ac_ext
1981 cat >>conftest.$ac_ext <<_ACEOF
1982 /* end confdefs.h. */
1983
1984 int
1985 main ()
1986 {
1987 #ifndef __GNUC__
1988 choke me
1989 #endif
1990
1991 ;
1992 return 0;
1993 }
1994 _ACEOF
1995 rm -f conftest.$ac_objext
1996 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1997 (eval $ac_compile) 2>conftest.er1
1998 ac_status=$?
1999 grep -v '^ *+' conftest.er1 >conftest.err
2000 rm -f conftest.er1
2001 cat conftest.err >&5
2002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2003 (exit $ac_status); } &&
2004 { ac_try='test -z "$ac_c_werror_flag"
2005 || test ! -s conftest.err'
2006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2007 (eval $ac_try) 2>&5
2008 ac_status=$?
2009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2010 (exit $ac_status); }; } &&
2011 { ac_try='test -s conftest.$ac_objext'
2012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2013 (eval $ac_try) 2>&5
2014 ac_status=$?
2015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2016 (exit $ac_status); }; }; then
2017 ac_compiler_gnu=yes
2018 else
2019 echo "$as_me: failed program was:" >&5
2020 sed 's/^/| /' conftest.$ac_ext >&5
2021
2022 ac_compiler_gnu=no
2023 fi
2024 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2025 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2026
2027 fi
2028 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2029 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2030 GCC=`test $ac_compiler_gnu = yes && echo yes`
2031 ac_test_CFLAGS=${CFLAGS+set}
2032 ac_save_CFLAGS=$CFLAGS
2033 CFLAGS="-g"
2034 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2035 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2036 if test "${ac_cv_prog_cc_g+set}" = set; then
2037 echo $ECHO_N "(cached) $ECHO_C" >&6
2038 else
2039 cat >conftest.$ac_ext <<_ACEOF
2040 /* confdefs.h. */
2041 _ACEOF
2042 cat confdefs.h >>conftest.$ac_ext
2043 cat >>conftest.$ac_ext <<_ACEOF
2044 /* end confdefs.h. */
2045
2046 int
2047 main ()
2048 {
2049
2050 ;
2051 return 0;
2052 }
2053 _ACEOF
2054 rm -f conftest.$ac_objext
2055 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2056 (eval $ac_compile) 2>conftest.er1
2057 ac_status=$?
2058 grep -v '^ *+' conftest.er1 >conftest.err
2059 rm -f conftest.er1
2060 cat conftest.err >&5
2061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2062 (exit $ac_status); } &&
2063 { ac_try='test -z "$ac_c_werror_flag"
2064 || test ! -s conftest.err'
2065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2066 (eval $ac_try) 2>&5
2067 ac_status=$?
2068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2069 (exit $ac_status); }; } &&
2070 { ac_try='test -s conftest.$ac_objext'
2071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2072 (eval $ac_try) 2>&5
2073 ac_status=$?
2074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2075 (exit $ac_status); }; }; then
2076 ac_cv_prog_cc_g=yes
2077 else
2078 echo "$as_me: failed program was:" >&5
2079 sed 's/^/| /' conftest.$ac_ext >&5
2080
2081 ac_cv_prog_cc_g=no
2082 fi
2083 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2084 fi
2085 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2086 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2087 if test "$ac_test_CFLAGS" = set; then
2088 CFLAGS=$ac_save_CFLAGS
2089 elif test $ac_cv_prog_cc_g = yes; then
2090 if test "$GCC" = yes; then
2091 CFLAGS="-g -O2"
2092 else
2093 CFLAGS="-g"
2094 fi
2095 else
2096 if test "$GCC" = yes; then
2097 CFLAGS="-O2"
2098 else
2099 CFLAGS=
2100 fi
2101 fi
2102 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2103 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2104 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2105 echo $ECHO_N "(cached) $ECHO_C" >&6
2106 else
2107 ac_cv_prog_cc_stdc=no
2108 ac_save_CC=$CC
2109 cat >conftest.$ac_ext <<_ACEOF
2110 /* confdefs.h. */
2111 _ACEOF
2112 cat confdefs.h >>conftest.$ac_ext
2113 cat >>conftest.$ac_ext <<_ACEOF
2114 /* end confdefs.h. */
2115 #include <stdarg.h>
2116 #include <stdio.h>
2117 #include <sys/types.h>
2118 #include <sys/stat.h>
2119 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2120 struct buf { int x; };
2121 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2122 static char *e (p, i)
2123 char **p;
2124 int i;
2125 {
2126 return p[i];
2127 }
2128 static char *f (char * (*g) (char **, int), char **p, ...)
2129 {
2130 char *s;
2131 va_list v;
2132 va_start (v,p);
2133 s = g (p, va_arg (v,int));
2134 va_end (v);
2135 return s;
2136 }
2137
2138 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2139 function prototypes and stuff, but not '\xHH' hex character constants.
2140 These don't provoke an error unfortunately, instead are silently treated
2141 as 'x'. The following induces an error, until -std1 is added to get
2142 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2143 array size at least. It's necessary to write '\x00'==0 to get something
2144 that's true only with -std1. */
2145 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2146
2147 int test (int i, double x);
2148 struct s1 {int (*f) (int a);};
2149 struct s2 {int (*f) (double a);};
2150 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2151 int argc;
2152 char **argv;
2153 int
2154 main ()
2155 {
2156 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2157 ;
2158 return 0;
2159 }
2160 _ACEOF
2161 # Don't try gcc -ansi; that turns off useful extensions and
2162 # breaks some systems' header files.
2163 # AIX -qlanglvl=ansi
2164 # Ultrix and OSF/1 -std1
2165 # HP-UX 10.20 and later -Ae
2166 # HP-UX older versions -Aa -D_HPUX_SOURCE
2167 # SVR4 -Xc -D__EXTENSIONS__
2168 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2169 do
2170 CC="$ac_save_CC $ac_arg"
2171 rm -f conftest.$ac_objext
2172 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2173 (eval $ac_compile) 2>conftest.er1
2174 ac_status=$?
2175 grep -v '^ *+' conftest.er1 >conftest.err
2176 rm -f conftest.er1
2177 cat conftest.err >&5
2178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2179 (exit $ac_status); } &&
2180 { ac_try='test -z "$ac_c_werror_flag"
2181 || test ! -s conftest.err'
2182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2183 (eval $ac_try) 2>&5
2184 ac_status=$?
2185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2186 (exit $ac_status); }; } &&
2187 { ac_try='test -s conftest.$ac_objext'
2188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2189 (eval $ac_try) 2>&5
2190 ac_status=$?
2191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2192 (exit $ac_status); }; }; then
2193 ac_cv_prog_cc_stdc=$ac_arg
2194 break
2195 else
2196 echo "$as_me: failed program was:" >&5
2197 sed 's/^/| /' conftest.$ac_ext >&5
2198
2199 fi
2200 rm -f conftest.err conftest.$ac_objext
2201 done
2202 rm -f conftest.$ac_ext conftest.$ac_objext
2203 CC=$ac_save_CC
2204
2205 fi
2206
2207 case "x$ac_cv_prog_cc_stdc" in
2208 x|xno)
2209 echo "$as_me:$LINENO: result: none needed" >&5
2210 echo "${ECHO_T}none needed" >&6 ;;
2211 *)
2212 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2213 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2214 CC="$CC $ac_cv_prog_cc_stdc" ;;
2215 esac
2216
2217 # Some people use a C++ compiler to compile C. Since we use `exit',
2218 # in C++ we need to declare it. In case someone uses the same compiler
2219 # for both compiling C and C++ we need to have the C++ compiler decide
2220 # the declaration of exit, since it's the most demanding environment.
2221 cat >conftest.$ac_ext <<_ACEOF
2222 #ifndef __cplusplus
2223 choke me
2224 #endif
2225 _ACEOF
2226 rm -f conftest.$ac_objext
2227 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2228 (eval $ac_compile) 2>conftest.er1
2229 ac_status=$?
2230 grep -v '^ *+' conftest.er1 >conftest.err
2231 rm -f conftest.er1
2232 cat conftest.err >&5
2233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2234 (exit $ac_status); } &&
2235 { ac_try='test -z "$ac_c_werror_flag"
2236 || test ! -s conftest.err'
2237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2238 (eval $ac_try) 2>&5
2239 ac_status=$?
2240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2241 (exit $ac_status); }; } &&
2242 { ac_try='test -s conftest.$ac_objext'
2243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2244 (eval $ac_try) 2>&5
2245 ac_status=$?
2246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2247 (exit $ac_status); }; }; then
2248 for ac_declaration in \
2249 '' \
2250 'extern "C" void std::exit (int) throw (); using std::exit;' \
2251 'extern "C" void std::exit (int); using std::exit;' \
2252 'extern "C" void exit (int) throw ();' \
2253 'extern "C" void exit (int);' \
2254 'void exit (int);'
2255 do
2256 cat >conftest.$ac_ext <<_ACEOF
2257 /* confdefs.h. */
2258 _ACEOF
2259 cat confdefs.h >>conftest.$ac_ext
2260 cat >>conftest.$ac_ext <<_ACEOF
2261 /* end confdefs.h. */
2262 $ac_declaration
2263 #include <stdlib.h>
2264 int
2265 main ()
2266 {
2267 exit (42);
2268 ;
2269 return 0;
2270 }
2271 _ACEOF
2272 rm -f conftest.$ac_objext
2273 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2274 (eval $ac_compile) 2>conftest.er1
2275 ac_status=$?
2276 grep -v '^ *+' conftest.er1 >conftest.err
2277 rm -f conftest.er1
2278 cat conftest.err >&5
2279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2280 (exit $ac_status); } &&
2281 { ac_try='test -z "$ac_c_werror_flag"
2282 || test ! -s conftest.err'
2283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2284 (eval $ac_try) 2>&5
2285 ac_status=$?
2286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2287 (exit $ac_status); }; } &&
2288 { ac_try='test -s conftest.$ac_objext'
2289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2290 (eval $ac_try) 2>&5
2291 ac_status=$?
2292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2293 (exit $ac_status); }; }; then
2294 :
2295 else
2296 echo "$as_me: failed program was:" >&5
2297 sed 's/^/| /' conftest.$ac_ext >&5
2298
2299 continue
2300 fi
2301 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2302 cat >conftest.$ac_ext <<_ACEOF
2303 /* confdefs.h. */
2304 _ACEOF
2305 cat confdefs.h >>conftest.$ac_ext
2306 cat >>conftest.$ac_ext <<_ACEOF
2307 /* end confdefs.h. */
2308 $ac_declaration
2309 int
2310 main ()
2311 {
2312 exit (42);
2313 ;
2314 return 0;
2315 }
2316 _ACEOF
2317 rm -f conftest.$ac_objext
2318 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2319 (eval $ac_compile) 2>conftest.er1
2320 ac_status=$?
2321 grep -v '^ *+' conftest.er1 >conftest.err
2322 rm -f conftest.er1
2323 cat conftest.err >&5
2324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2325 (exit $ac_status); } &&
2326 { ac_try='test -z "$ac_c_werror_flag"
2327 || test ! -s conftest.err'
2328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2329 (eval $ac_try) 2>&5
2330 ac_status=$?
2331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2332 (exit $ac_status); }; } &&
2333 { ac_try='test -s conftest.$ac_objext'
2334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2335 (eval $ac_try) 2>&5
2336 ac_status=$?
2337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2338 (exit $ac_status); }; }; then
2339 break
2340 else
2341 echo "$as_me: failed program was:" >&5
2342 sed 's/^/| /' conftest.$ac_ext >&5
2343
2344 fi
2345 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2346 done
2347 rm -f conftest*
2348 if test -n "$ac_declaration"; then
2349 echo '#ifdef __cplusplus' >>confdefs.h
2350 echo $ac_declaration >>confdefs.h
2351 echo '#endif' >>confdefs.h
2352 fi
2353
2354 else
2355 echo "$as_me: failed program was:" >&5
2356 sed 's/^/| /' conftest.$ac_ext >&5
2357
2358 fi
2359 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2360 ac_ext=c
2361 ac_cpp='$CPP $CPPFLAGS'
2362 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2363 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2364 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2365
2366
2367 echo "$as_me:$LINENO: checking for library containing strerror" >&5
2368 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2369 if test "${ac_cv_search_strerror+set}" = set; then
2370 echo $ECHO_N "(cached) $ECHO_C" >&6
2371 else
2372 ac_func_search_save_LIBS=$LIBS
2373 ac_cv_search_strerror=no
2374 cat >conftest.$ac_ext <<_ACEOF
2375 /* confdefs.h. */
2376 _ACEOF
2377 cat confdefs.h >>conftest.$ac_ext
2378 cat >>conftest.$ac_ext <<_ACEOF
2379 /* end confdefs.h. */
2380
2381 /* Override any gcc2 internal prototype to avoid an error. */
2382 #ifdef __cplusplus
2383 extern "C"
2384 #endif
2385 /* We use char because int might match the return type of a gcc2
2386 builtin and then its argument prototype would still apply. */
2387 char strerror ();
2388 int
2389 main ()
2390 {
2391 strerror ();
2392 ;
2393 return 0;
2394 }
2395 _ACEOF
2396 rm -f conftest.$ac_objext conftest$ac_exeext
2397 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2398 (eval $ac_link) 2>conftest.er1
2399 ac_status=$?
2400 grep -v '^ *+' conftest.er1 >conftest.err
2401 rm -f conftest.er1
2402 cat conftest.err >&5
2403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2404 (exit $ac_status); } &&
2405 { ac_try='test -z "$ac_c_werror_flag"
2406 || test ! -s conftest.err'
2407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2408 (eval $ac_try) 2>&5
2409 ac_status=$?
2410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2411 (exit $ac_status); }; } &&
2412 { ac_try='test -s conftest$ac_exeext'
2413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2414 (eval $ac_try) 2>&5
2415 ac_status=$?
2416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2417 (exit $ac_status); }; }; then
2418 ac_cv_search_strerror="none required"
2419 else
2420 echo "$as_me: failed program was:" >&5
2421 sed 's/^/| /' conftest.$ac_ext >&5
2422
2423 fi
2424 rm -f conftest.err conftest.$ac_objext \
2425 conftest$ac_exeext conftest.$ac_ext
2426 if test "$ac_cv_search_strerror" = no; then
2427 for ac_lib in cposix; do
2428 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2429 cat >conftest.$ac_ext <<_ACEOF
2430 /* confdefs.h. */
2431 _ACEOF
2432 cat confdefs.h >>conftest.$ac_ext
2433 cat >>conftest.$ac_ext <<_ACEOF
2434 /* end confdefs.h. */
2435
2436 /* Override any gcc2 internal prototype to avoid an error. */
2437 #ifdef __cplusplus
2438 extern "C"
2439 #endif
2440 /* We use char because int might match the return type of a gcc2
2441 builtin and then its argument prototype would still apply. */
2442 char strerror ();
2443 int
2444 main ()
2445 {
2446 strerror ();
2447 ;
2448 return 0;
2449 }
2450 _ACEOF
2451 rm -f conftest.$ac_objext conftest$ac_exeext
2452 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2453 (eval $ac_link) 2>conftest.er1
2454 ac_status=$?
2455 grep -v '^ *+' conftest.er1 >conftest.err
2456 rm -f conftest.er1
2457 cat conftest.err >&5
2458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2459 (exit $ac_status); } &&
2460 { ac_try='test -z "$ac_c_werror_flag"
2461 || test ! -s conftest.err'
2462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2463 (eval $ac_try) 2>&5
2464 ac_status=$?
2465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2466 (exit $ac_status); }; } &&
2467 { ac_try='test -s conftest$ac_exeext'
2468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2469 (eval $ac_try) 2>&5
2470 ac_status=$?
2471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2472 (exit $ac_status); }; }; then
2473 ac_cv_search_strerror="-l$ac_lib"
2474 break
2475 else
2476 echo "$as_me: failed program was:" >&5
2477 sed 's/^/| /' conftest.$ac_ext >&5
2478
2479 fi
2480 rm -f conftest.err conftest.$ac_objext \
2481 conftest$ac_exeext conftest.$ac_ext
2482 done
2483 fi
2484 LIBS=$ac_func_search_save_LIBS
2485 fi
2486 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2487 echo "${ECHO_T}$ac_cv_search_strerror" >&6
2488 if test "$ac_cv_search_strerror" != no; then
2489 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
2490
2491 fi
2492
2493
2494 am__api_version="1.9"
2495 # Find a good install program. We prefer a C program (faster),
2496 # so one script is as good as another. But avoid the broken or
2497 # incompatible versions:
2498 # SysV /etc/install, /usr/sbin/install
2499 # SunOS /usr/etc/install
2500 # IRIX /sbin/install
2501 # AIX /bin/install
2502 # AmigaOS /C/install, which installs bootblocks on floppy discs
2503 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2504 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2505 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2506 # OS/2's system install, which has a completely different semantic
2507 # ./install, which can be erroneously created by make from ./install.sh.
2508 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2509 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2510 if test -z "$INSTALL"; then
2511 if test "${ac_cv_path_install+set}" = set; then
2512 echo $ECHO_N "(cached) $ECHO_C" >&6
2513 else
2514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2515 for as_dir in $PATH
2516 do
2517 IFS=$as_save_IFS
2518 test -z "$as_dir" && as_dir=.
2519 # Account for people who put trailing slashes in PATH elements.
2520 case $as_dir/ in
2521 ./ | .// | /cC/* | \
2522 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2523 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2524 /usr/ucb/* ) ;;
2525 *)
2526 # OSF1 and SCO ODT 3.0 have their own names for install.
2527 # Don't use installbsd from OSF since it installs stuff as root
2528 # by default.
2529 for ac_prog in ginstall scoinst install; do
2530 for ac_exec_ext in '' $ac_executable_extensions; do
2531 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2532 if test $ac_prog = install &&
2533 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2534 # AIX install. It has an incompatible calling convention.
2535 :
2536 elif test $ac_prog = install &&
2537 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2538 # program-specific install script used by HP pwplus--don't use.
2539 :
2540 else
2541 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2542 break 3
2543 fi
2544 fi
2545 done
2546 done
2547 ;;
2548 esac
2549 done
2550
2551
2552 fi
2553 if test "${ac_cv_path_install+set}" = set; then
2554 INSTALL=$ac_cv_path_install
2555 else
2556 # As a last resort, use the slow shell script. We don't cache a
2557 # path for INSTALL within a source directory, because that will
2558 # break other packages using the cache if that directory is
2559 # removed, or if the path is relative.
2560 INSTALL=$ac_install_sh
2561 fi
2562 fi
2563 echo "$as_me:$LINENO: result: $INSTALL" >&5
2564 echo "${ECHO_T}$INSTALL" >&6
2565
2566 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2567 # It thinks the first close brace ends the variable substitution.
2568 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2569
2570 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2571
2572 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2573
2574 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2575 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
2576 # Just in case
2577 sleep 1
2578 echo timestamp > conftest.file
2579 # Do `set' in a subshell so we don't clobber the current shell's
2580 # arguments. Must try -L first in case configure is actually a
2581 # symlink; some systems play weird games with the mod time of symlinks
2582 # (eg FreeBSD returns the mod time of the symlink's containing
2583 # directory).
2584 if (
2585 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2586 if test "$*" = "X"; then
2587 # -L didn't work.
2588 set X `ls -t $srcdir/configure conftest.file`
2589 fi
2590 rm -f conftest.file
2591 if test "$*" != "X $srcdir/configure conftest.file" \
2592 && test "$*" != "X conftest.file $srcdir/configure"; then
2593
2594 # If neither matched, then we have a broken ls. This can happen
2595 # if, for instance, CONFIG_SHELL is bash and it inherits a
2596 # broken ls alias from the environment. This has actually
2597 # happened. Such a system could not be considered "sane".
2598 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2599 alias in your environment" >&5
2600 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2601 alias in your environment" >&2;}
2602 { (exit 1); exit 1; }; }
2603 fi
2604
2605 test "$2" = conftest.file
2606 )
2607 then
2608 # Ok.
2609 :
2610 else
2611 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2612 Check your system clock" >&5
2613 echo "$as_me: error: newly created file is older than distributed files!
2614 Check your system clock" >&2;}
2615 { (exit 1); exit 1; }; }
2616 fi
2617 echo "$as_me:$LINENO: result: yes" >&5
2618 echo "${ECHO_T}yes" >&6
2619 test "$program_prefix" != NONE &&
2620 program_transform_name="s,^,$program_prefix,;$program_transform_name"
2621 # Use a double $ so make ignores it.
2622 test "$program_suffix" != NONE &&
2623 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2624 # Double any \ or $. echo might interpret backslashes.
2625 # By default was `s,x,x', remove it if useless.
2626 cat <<\_ACEOF >conftest.sed
2627 s/[\\$]/&&/g;s/;s,x,x,$//
2628 _ACEOF
2629 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2630 rm conftest.sed
2631
2632 # expand $ac_aux_dir to an absolute path
2633 am_aux_dir=`cd $ac_aux_dir && pwd`
2634
2635 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2636 # Use eval to expand $SHELL
2637 if eval "$MISSING --run true"; then
2638 am_missing_run="$MISSING --run "
2639 else
2640 am_missing_run=
2641 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2642 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2643 fi
2644
2645 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2646 # We used to keeping the `.' as first argument, in order to
2647 # allow $(mkdir_p) to be used without argument. As in
2648 # $(mkdir_p) $(somedir)
2649 # where $(somedir) is conditionally defined. However this is wrong
2650 # for two reasons:
2651 # 1. if the package is installed by a user who cannot write `.'
2652 # make install will fail,
2653 # 2. the above comment should most certainly read
2654 # $(mkdir_p) $(DESTDIR)$(somedir)
2655 # so it does not work when $(somedir) is undefined and
2656 # $(DESTDIR) is not.
2657 # To support the latter case, we have to write
2658 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2659 # so the `.' trick is pointless.
2660 mkdir_p='mkdir -p --'
2661 else
2662 # On NextStep and OpenStep, the `mkdir' command does not
2663 # recognize any option. It will interpret all options as
2664 # directories to create, and then abort because `.' already
2665 # exists.
2666 for d in ./-p ./--version;
2667 do
2668 test -d $d && rmdir $d
2669 done
2670 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2671 if test -f "$ac_aux_dir/mkinstalldirs"; then
2672 mkdir_p='$(mkinstalldirs)'
2673 else
2674 mkdir_p='$(install_sh) -d'
2675 fi
2676 fi
2677
2678 for ac_prog in gawk mawk nawk awk
2679 do
2680 # Extract the first word of "$ac_prog", so it can be a program name with args.
2681 set dummy $ac_prog; ac_word=$2
2682 echo "$as_me:$LINENO: checking for $ac_word" >&5
2683 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2684 if test "${ac_cv_prog_AWK+set}" = set; then
2685 echo $ECHO_N "(cached) $ECHO_C" >&6
2686 else
2687 if test -n "$AWK"; then
2688 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2689 else
2690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2691 for as_dir in $PATH
2692 do
2693 IFS=$as_save_IFS
2694 test -z "$as_dir" && as_dir=.
2695 for ac_exec_ext in '' $ac_executable_extensions; do
2696 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2697 ac_cv_prog_AWK="$ac_prog"
2698 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2699 break 2
2700 fi
2701 done
2702 done
2703
2704 fi
2705 fi
2706 AWK=$ac_cv_prog_AWK
2707 if test -n "$AWK"; then
2708 echo "$as_me:$LINENO: result: $AWK" >&5
2709 echo "${ECHO_T}$AWK" >&6
2710 else
2711 echo "$as_me:$LINENO: result: no" >&5
2712 echo "${ECHO_T}no" >&6
2713 fi
2714
2715 test -n "$AWK" && break
2716 done
2717
2718 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2719 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2720 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2721 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2722 echo $ECHO_N "(cached) $ECHO_C" >&6
2723 else
2724 cat >conftest.make <<\_ACEOF
2725 all:
2726 @echo 'ac_maketemp="$(MAKE)"'
2727 _ACEOF
2728 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2729 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2730 if test -n "$ac_maketemp"; then
2731 eval ac_cv_prog_make_${ac_make}_set=yes
2732 else
2733 eval ac_cv_prog_make_${ac_make}_set=no
2734 fi
2735 rm -f conftest.make
2736 fi
2737 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2738 echo "$as_me:$LINENO: result: yes" >&5
2739 echo "${ECHO_T}yes" >&6
2740 SET_MAKE=
2741 else
2742 echo "$as_me:$LINENO: result: no" >&5
2743 echo "${ECHO_T}no" >&6
2744 SET_MAKE="MAKE=${MAKE-make}"
2745 fi
2746
2747 rm -rf .tst 2>/dev/null
2748 mkdir .tst 2>/dev/null
2749 if test -d .tst; then
2750 am__leading_dot=.
2751 else
2752 am__leading_dot=_
2753 fi
2754 rmdir .tst 2>/dev/null
2755
2756 DEPDIR="${am__leading_dot}deps"
2757
2758 ac_config_commands="$ac_config_commands depfiles"
2759
2760
2761 am_make=${MAKE-make}
2762 cat > confinc << 'END'
2763 am__doit:
2764 @echo done
2765 .PHONY: am__doit
2766 END
2767 # If we don't find an include directive, just comment out the code.
2768 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2769 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2770 am__include="#"
2771 am__quote=
2772 _am_result=none
2773 # First try GNU make style include.
2774 echo "include confinc" > confmf
2775 # We grep out `Entering directory' and `Leaving directory'
2776 # messages which can occur if `w' ends up in MAKEFLAGS.
2777 # In particular we don't look at `^make:' because GNU make might
2778 # be invoked under some other name (usually "gmake"), in which
2779 # case it prints its new name instead of `make'.
2780 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2781 am__include=include
2782 am__quote=
2783 _am_result=GNU
2784 fi
2785 # Now try BSD make style include.
2786 if test "$am__include" = "#"; then
2787 echo '.include "confinc"' > confmf
2788 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2789 am__include=.include
2790 am__quote="\""
2791 _am_result=BSD
2792 fi
2793 fi
2794
2795
2796 echo "$as_me:$LINENO: result: $_am_result" >&5
2797 echo "${ECHO_T}$_am_result" >&6
2798 rm -f confinc confmf
2799
2800 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2801 if test "${enable_dependency_tracking+set}" = set; then
2802 enableval="$enable_dependency_tracking"
2803
2804 fi;
2805 if test "x$enable_dependency_tracking" != xno; then
2806 am_depcomp="$ac_aux_dir/depcomp"
2807 AMDEPBACKSLASH='\'
2808 fi
2809
2810
2811 if test "x$enable_dependency_tracking" != xno; then
2812 AMDEP_TRUE=
2813 AMDEP_FALSE='#'
2814 else
2815 AMDEP_TRUE='#'
2816 AMDEP_FALSE=
2817 fi
2818
2819
2820
2821 # test to see if srcdir already configured
2822 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2823 test -f $srcdir/config.status; then
2824 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2825 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2826 { (exit 1); exit 1; }; }
2827 fi
2828
2829 # test whether we have cygpath
2830 if test -z "$CYGPATH_W"; then
2831 if (cygpath --version) >/dev/null 2>/dev/null; then
2832 CYGPATH_W='cygpath -w'
2833 else
2834 CYGPATH_W=echo
2835 fi
2836 fi
2837
2838
2839 # Define the identity of the package.
2840 PACKAGE=bfd
2841 VERSION=2.17.50
2842
2843
2844 cat >>confdefs.h <<_ACEOF
2845 #define PACKAGE "$PACKAGE"
2846 _ACEOF
2847
2848
2849 cat >>confdefs.h <<_ACEOF
2850 #define VERSION "$VERSION"
2851 _ACEOF
2852
2853 # Some tools Automake needs.
2854
2855 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2856
2857
2858 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2859
2860
2861 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2862
2863
2864 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2865
2866
2867 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2868
2869 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2870
2871 # Installed binaries are usually stripped using `strip' when the user
2872 # run `make install-strip'. However `strip' might not be the right
2873 # tool to use in cross-compilation environments, therefore Automake
2874 # will honor the `STRIP' environment variable to overrule this program.
2875 if test "$cross_compiling" != no; then
2876 if test -n "$ac_tool_prefix"; then
2877 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2878 set dummy ${ac_tool_prefix}strip; ac_word=$2
2879 echo "$as_me:$LINENO: checking for $ac_word" >&5
2880 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2881 if test "${ac_cv_prog_STRIP+set}" = set; then
2882 echo $ECHO_N "(cached) $ECHO_C" >&6
2883 else
2884 if test -n "$STRIP"; then
2885 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2886 else
2887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2888 for as_dir in $PATH
2889 do
2890 IFS=$as_save_IFS
2891 test -z "$as_dir" && as_dir=.
2892 for ac_exec_ext in '' $ac_executable_extensions; do
2893 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2894 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2895 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2896 break 2
2897 fi
2898 done
2899 done
2900
2901 fi
2902 fi
2903 STRIP=$ac_cv_prog_STRIP
2904 if test -n "$STRIP"; then
2905 echo "$as_me:$LINENO: result: $STRIP" >&5
2906 echo "${ECHO_T}$STRIP" >&6
2907 else
2908 echo "$as_me:$LINENO: result: no" >&5
2909 echo "${ECHO_T}no" >&6
2910 fi
2911
2912 fi
2913 if test -z "$ac_cv_prog_STRIP"; then
2914 ac_ct_STRIP=$STRIP
2915 # Extract the first word of "strip", so it can be a program name with args.
2916 set dummy strip; ac_word=$2
2917 echo "$as_me:$LINENO: checking for $ac_word" >&5
2918 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2919 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2920 echo $ECHO_N "(cached) $ECHO_C" >&6
2921 else
2922 if test -n "$ac_ct_STRIP"; then
2923 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2924 else
2925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2926 for as_dir in $PATH
2927 do
2928 IFS=$as_save_IFS
2929 test -z "$as_dir" && as_dir=.
2930 for ac_exec_ext in '' $ac_executable_extensions; do
2931 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2932 ac_cv_prog_ac_ct_STRIP="strip"
2933 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2934 break 2
2935 fi
2936 done
2937 done
2938
2939 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2940 fi
2941 fi
2942 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2943 if test -n "$ac_ct_STRIP"; then
2944 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2945 echo "${ECHO_T}$ac_ct_STRIP" >&6
2946 else
2947 echo "$as_me:$LINENO: result: no" >&5
2948 echo "${ECHO_T}no" >&6
2949 fi
2950
2951 STRIP=$ac_ct_STRIP
2952 else
2953 STRIP="$ac_cv_prog_STRIP"
2954 fi
2955
2956 fi
2957 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2958
2959 # We need awk for the "check" target. The system "awk" is bad on
2960 # some platforms.
2961 # Always define AMTAR for backward compatibility.
2962
2963 AMTAR=${AMTAR-"${am_missing_run}tar"}
2964
2965 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2966
2967
2968
2969
2970 depcc="$CC" am_compiler_list=
2971
2972 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2973 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2974 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2975 echo $ECHO_N "(cached) $ECHO_C" >&6
2976 else
2977 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2978 # We make a subdir and do the tests there. Otherwise we can end up
2979 # making bogus files that we don't know about and never remove. For
2980 # instance it was reported that on HP-UX the gcc test will end up
2981 # making a dummy file named `D' -- because `-MD' means `put the output
2982 # in D'.
2983 mkdir conftest.dir
2984 # Copy depcomp to subdir because otherwise we won't find it if we're
2985 # using a relative directory.
2986 cp "$am_depcomp" conftest.dir
2987 cd conftest.dir
2988 # We will build objects and dependencies in a subdirectory because
2989 # it helps to detect inapplicable dependency modes. For instance
2990 # both Tru64's cc and ICC support -MD to output dependencies as a
2991 # side effect of compilation, but ICC will put the dependencies in
2992 # the current directory while Tru64 will put them in the object
2993 # directory.
2994 mkdir sub
2995
2996 am_cv_CC_dependencies_compiler_type=none
2997 if test "$am_compiler_list" = ""; then
2998 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2999 fi
3000 for depmode in $am_compiler_list; do
3001 # Setup a source with many dependencies, because some compilers
3002 # like to wrap large dependency lists on column 80 (with \), and
3003 # we should not choose a depcomp mode which is confused by this.
3004 #
3005 # We need to recreate these files for each test, as the compiler may
3006 # overwrite some of them when testing with obscure command lines.
3007 # This happens at least with the AIX C compiler.
3008 : > sub/conftest.c
3009 for i in 1 2 3 4 5 6; do
3010 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3011 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3012 # Solaris 8's {/usr,}/bin/sh.
3013 touch sub/conftst$i.h
3014 done
3015 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3016
3017 case $depmode in
3018 nosideeffect)
3019 # after this tag, mechanisms are not by side-effect, so they'll
3020 # only be used when explicitly requested
3021 if test "x$enable_dependency_tracking" = xyes; then
3022 continue
3023 else
3024 break
3025 fi
3026 ;;
3027 none) break ;;
3028 esac
3029 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3030 # mode. It turns out that the SunPro C++ compiler does not properly
3031 # handle `-M -o', and we need to detect this.
3032 if depmode=$depmode \
3033 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3034 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3035 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3036 >/dev/null 2>conftest.err &&
3037 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3038 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3039 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3040 # icc doesn't choke on unknown options, it will just issue warnings
3041 # or remarks (even with -Werror). So we grep stderr for any message
3042 # that says an option was ignored or not supported.
3043 # When given -MP, icc 7.0 and 7.1 complain thusly:
3044 # icc: Command line warning: ignoring option '-M'; no argument required
3045 # The diagnosis changed in icc 8.0:
3046 # icc: Command line remark: option '-MP' not supported
3047 if (grep 'ignoring option' conftest.err ||
3048 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3049 am_cv_CC_dependencies_compiler_type=$depmode
3050 break
3051 fi
3052 fi
3053 done
3054
3055 cd ..
3056 rm -rf conftest.dir
3057 else
3058 am_cv_CC_dependencies_compiler_type=none
3059 fi
3060
3061 fi
3062 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3063 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3064 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3065
3066
3067
3068 if
3069 test "x$enable_dependency_tracking" != xno \
3070 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3071 am__fastdepCC_TRUE=
3072 am__fastdepCC_FALSE='#'
3073 else
3074 am__fastdepCC_TRUE='#'
3075 am__fastdepCC_FALSE=
3076 fi
3077
3078
3079
3080
3081 if test -n "$ac_tool_prefix"; then
3082 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3083 set dummy ${ac_tool_prefix}ar; ac_word=$2
3084 echo "$as_me:$LINENO: checking for $ac_word" >&5
3085 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3086 if test "${ac_cv_prog_AR+set}" = set; then
3087 echo $ECHO_N "(cached) $ECHO_C" >&6
3088 else
3089 if test -n "$AR"; then
3090 ac_cv_prog_AR="$AR" # Let the user override the test.
3091 else
3092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3093 for as_dir in $PATH
3094 do
3095 IFS=$as_save_IFS
3096 test -z "$as_dir" && as_dir=.
3097 for ac_exec_ext in '' $ac_executable_extensions; do
3098 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3099 ac_cv_prog_AR="${ac_tool_prefix}ar"
3100 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3101 break 2
3102 fi
3103 done
3104 done
3105
3106 fi
3107 fi
3108 AR=$ac_cv_prog_AR
3109 if test -n "$AR"; then
3110 echo "$as_me:$LINENO: result: $AR" >&5
3111 echo "${ECHO_T}$AR" >&6
3112 else
3113 echo "$as_me:$LINENO: result: no" >&5
3114 echo "${ECHO_T}no" >&6
3115 fi
3116
3117 fi
3118 if test -z "$ac_cv_prog_AR"; then
3119 ac_ct_AR=$AR
3120 # Extract the first word of "ar", so it can be a program name with args.
3121 set dummy ar; ac_word=$2
3122 echo "$as_me:$LINENO: checking for $ac_word" >&5
3123 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3124 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3125 echo $ECHO_N "(cached) $ECHO_C" >&6
3126 else
3127 if test -n "$ac_ct_AR"; then
3128 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3129 else
3130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3131 for as_dir in $PATH
3132 do
3133 IFS=$as_save_IFS
3134 test -z "$as_dir" && as_dir=.
3135 for ac_exec_ext in '' $ac_executable_extensions; do
3136 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3137 ac_cv_prog_ac_ct_AR="ar"
3138 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3139 break 2
3140 fi
3141 done
3142 done
3143
3144 fi
3145 fi
3146 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3147 if test -n "$ac_ct_AR"; then
3148 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3149 echo "${ECHO_T}$ac_ct_AR" >&6
3150 else
3151 echo "$as_me:$LINENO: result: no" >&5
3152 echo "${ECHO_T}no" >&6
3153 fi
3154
3155 AR=$ac_ct_AR
3156 else
3157 AR="$ac_cv_prog_AR"
3158 fi
3159
3160 if test -n "$ac_tool_prefix"; then
3161 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3162 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3163 echo "$as_me:$LINENO: checking for $ac_word" >&5
3164 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3165 if test "${ac_cv_prog_RANLIB+set}" = set; then
3166 echo $ECHO_N "(cached) $ECHO_C" >&6
3167 else
3168 if test -n "$RANLIB"; then
3169 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3170 else
3171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3172 for as_dir in $PATH
3173 do
3174 IFS=$as_save_IFS
3175 test -z "$as_dir" && as_dir=.
3176 for ac_exec_ext in '' $ac_executable_extensions; do
3177 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3178 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3179 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3180 break 2
3181 fi
3182 done
3183 done
3184
3185 fi
3186 fi
3187 RANLIB=$ac_cv_prog_RANLIB
3188 if test -n "$RANLIB"; then
3189 echo "$as_me:$LINENO: result: $RANLIB" >&5
3190 echo "${ECHO_T}$RANLIB" >&6
3191 else
3192 echo "$as_me:$LINENO: result: no" >&5
3193 echo "${ECHO_T}no" >&6
3194 fi
3195
3196 fi
3197 if test -z "$ac_cv_prog_RANLIB"; then
3198 ac_ct_RANLIB=$RANLIB
3199 # Extract the first word of "ranlib", so it can be a program name with args.
3200 set dummy ranlib; ac_word=$2
3201 echo "$as_me:$LINENO: checking for $ac_word" >&5
3202 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3203 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3204 echo $ECHO_N "(cached) $ECHO_C" >&6
3205 else
3206 if test -n "$ac_ct_RANLIB"; then
3207 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3208 else
3209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3210 for as_dir in $PATH
3211 do
3212 IFS=$as_save_IFS
3213 test -z "$as_dir" && as_dir=.
3214 for ac_exec_ext in '' $ac_executable_extensions; do
3215 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3216 ac_cv_prog_ac_ct_RANLIB="ranlib"
3217 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3218 break 2
3219 fi
3220 done
3221 done
3222
3223 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3224 fi
3225 fi
3226 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3227 if test -n "$ac_ct_RANLIB"; then
3228 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3229 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3230 else
3231 echo "$as_me:$LINENO: result: no" >&5
3232 echo "${ECHO_T}no" >&6
3233 fi
3234
3235 RANLIB=$ac_ct_RANLIB
3236 else
3237 RANLIB="$ac_cv_prog_RANLIB"
3238 fi
3239
3240
3241 # Check whether --enable-shared or --disable-shared was given.
3242 if test "${enable_shared+set}" = set; then
3243 enableval="$enable_shared"
3244 p=${PACKAGE-default}
3245 case $enableval in
3246 yes) enable_shared=yes ;;
3247 no) enable_shared=no ;;
3248 *)
3249 enable_shared=no
3250 # Look at the argument we got. We use all the common list separators.
3251 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3252 for pkg in $enableval; do
3253 if test "X$pkg" = "X$p"; then
3254 enable_shared=yes
3255 fi
3256 done
3257 IFS="$ac_save_ifs"
3258 ;;
3259 esac
3260 else
3261 enable_shared=no
3262 fi;
3263
3264 ac_ext=c
3265 ac_cpp='$CPP $CPPFLAGS'
3266 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3267 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3268 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3269 if test -n "$ac_tool_prefix"; then
3270 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3271 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3272 echo "$as_me:$LINENO: checking for $ac_word" >&5
3273 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3274 if test "${ac_cv_prog_CC+set}" = set; then
3275 echo $ECHO_N "(cached) $ECHO_C" >&6
3276 else
3277 if test -n "$CC"; then
3278 ac_cv_prog_CC="$CC" # Let the user override the test.
3279 else
3280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3281 for as_dir in $PATH
3282 do
3283 IFS=$as_save_IFS
3284 test -z "$as_dir" && as_dir=.
3285 for ac_exec_ext in '' $ac_executable_extensions; do
3286 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3287 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3288 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3289 break 2
3290 fi
3291 done
3292 done
3293
3294 fi
3295 fi
3296 CC=$ac_cv_prog_CC
3297 if test -n "$CC"; then
3298 echo "$as_me:$LINENO: result: $CC" >&5
3299 echo "${ECHO_T}$CC" >&6
3300 else
3301 echo "$as_me:$LINENO: result: no" >&5
3302 echo "${ECHO_T}no" >&6
3303 fi
3304
3305 fi
3306 if test -z "$ac_cv_prog_CC"; then
3307 ac_ct_CC=$CC
3308 # Extract the first word of "gcc", so it can be a program name with args.
3309 set dummy gcc; ac_word=$2
3310 echo "$as_me:$LINENO: checking for $ac_word" >&5
3311 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3312 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3313 echo $ECHO_N "(cached) $ECHO_C" >&6
3314 else
3315 if test -n "$ac_ct_CC"; then
3316 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3317 else
3318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3319 for as_dir in $PATH
3320 do
3321 IFS=$as_save_IFS
3322 test -z "$as_dir" && as_dir=.
3323 for ac_exec_ext in '' $ac_executable_extensions; do
3324 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3325 ac_cv_prog_ac_ct_CC="gcc"
3326 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3327 break 2
3328 fi
3329 done
3330 done
3331
3332 fi
3333 fi
3334 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3335 if test -n "$ac_ct_CC"; then
3336 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3337 echo "${ECHO_T}$ac_ct_CC" >&6
3338 else
3339 echo "$as_me:$LINENO: result: no" >&5
3340 echo "${ECHO_T}no" >&6
3341 fi
3342
3343 CC=$ac_ct_CC
3344 else
3345 CC="$ac_cv_prog_CC"
3346 fi
3347
3348 if test -z "$CC"; then
3349 if test -n "$ac_tool_prefix"; then
3350 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3351 set dummy ${ac_tool_prefix}cc; ac_word=$2
3352 echo "$as_me:$LINENO: checking for $ac_word" >&5
3353 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3354 if test "${ac_cv_prog_CC+set}" = set; then
3355 echo $ECHO_N "(cached) $ECHO_C" >&6
3356 else
3357 if test -n "$CC"; then
3358 ac_cv_prog_CC="$CC" # Let the user override the test.
3359 else
3360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3361 for as_dir in $PATH
3362 do
3363 IFS=$as_save_IFS
3364 test -z "$as_dir" && as_dir=.
3365 for ac_exec_ext in '' $ac_executable_extensions; do
3366 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3367 ac_cv_prog_CC="${ac_tool_prefix}cc"
3368 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3369 break 2
3370 fi
3371 done
3372 done
3373
3374 fi
3375 fi
3376 CC=$ac_cv_prog_CC
3377 if test -n "$CC"; then
3378 echo "$as_me:$LINENO: result: $CC" >&5
3379 echo "${ECHO_T}$CC" >&6
3380 else
3381 echo "$as_me:$LINENO: result: no" >&5
3382 echo "${ECHO_T}no" >&6
3383 fi
3384
3385 fi
3386 if test -z "$ac_cv_prog_CC"; then
3387 ac_ct_CC=$CC
3388 # Extract the first word of "cc", so it can be a program name with args.
3389 set dummy cc; ac_word=$2
3390 echo "$as_me:$LINENO: checking for $ac_word" >&5
3391 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3392 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3393 echo $ECHO_N "(cached) $ECHO_C" >&6
3394 else
3395 if test -n "$ac_ct_CC"; then
3396 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3397 else
3398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3399 for as_dir in $PATH
3400 do
3401 IFS=$as_save_IFS
3402 test -z "$as_dir" && as_dir=.
3403 for ac_exec_ext in '' $ac_executable_extensions; do
3404 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3405 ac_cv_prog_ac_ct_CC="cc"
3406 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3407 break 2
3408 fi
3409 done
3410 done
3411
3412 fi
3413 fi
3414 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3415 if test -n "$ac_ct_CC"; then
3416 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3417 echo "${ECHO_T}$ac_ct_CC" >&6
3418 else
3419 echo "$as_me:$LINENO: result: no" >&5
3420 echo "${ECHO_T}no" >&6
3421 fi
3422
3423 CC=$ac_ct_CC
3424 else
3425 CC="$ac_cv_prog_CC"
3426 fi
3427
3428 fi
3429 if test -z "$CC"; then
3430 # Extract the first word of "cc", so it can be a program name with args.
3431 set dummy cc; ac_word=$2
3432 echo "$as_me:$LINENO: checking for $ac_word" >&5
3433 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3434 if test "${ac_cv_prog_CC+set}" = set; then
3435 echo $ECHO_N "(cached) $ECHO_C" >&6
3436 else
3437 if test -n "$CC"; then
3438 ac_cv_prog_CC="$CC" # Let the user override the test.
3439 else
3440 ac_prog_rejected=no
3441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3442 for as_dir in $PATH
3443 do
3444 IFS=$as_save_IFS
3445 test -z "$as_dir" && as_dir=.
3446 for ac_exec_ext in '' $ac_executable_extensions; do
3447 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3448 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3449 ac_prog_rejected=yes
3450 continue
3451 fi
3452 ac_cv_prog_CC="cc"
3453 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3454 break 2
3455 fi
3456 done
3457 done
3458
3459 if test $ac_prog_rejected = yes; then
3460 # We found a bogon in the path, so make sure we never use it.
3461 set dummy $ac_cv_prog_CC
3462 shift
3463 if test $# != 0; then
3464 # We chose a different compiler from the bogus one.
3465 # However, it has the same basename, so the bogon will be chosen
3466 # first if we set CC to just the basename; use the full file name.
3467 shift
3468 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3469 fi
3470 fi
3471 fi
3472 fi
3473 CC=$ac_cv_prog_CC
3474 if test -n "$CC"; then
3475 echo "$as_me:$LINENO: result: $CC" >&5
3476 echo "${ECHO_T}$CC" >&6
3477 else
3478 echo "$as_me:$LINENO: result: no" >&5
3479 echo "${ECHO_T}no" >&6
3480 fi
3481
3482 fi
3483 if test -z "$CC"; then
3484 if test -n "$ac_tool_prefix"; then
3485 for ac_prog in cl
3486 do
3487 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3488 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3489 echo "$as_me:$LINENO: checking for $ac_word" >&5
3490 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3491 if test "${ac_cv_prog_CC+set}" = set; then
3492 echo $ECHO_N "(cached) $ECHO_C" >&6
3493 else
3494 if test -n "$CC"; then
3495 ac_cv_prog_CC="$CC" # Let the user override the test.
3496 else
3497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3498 for as_dir in $PATH
3499 do
3500 IFS=$as_save_IFS
3501 test -z "$as_dir" && as_dir=.
3502 for ac_exec_ext in '' $ac_executable_extensions; do
3503 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3504 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3505 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3506 break 2
3507 fi
3508 done
3509 done
3510
3511 fi
3512 fi
3513 CC=$ac_cv_prog_CC
3514 if test -n "$CC"; then
3515 echo "$as_me:$LINENO: result: $CC" >&5
3516 echo "${ECHO_T}$CC" >&6
3517 else
3518 echo "$as_me:$LINENO: result: no" >&5
3519 echo "${ECHO_T}no" >&6
3520 fi
3521
3522 test -n "$CC" && break
3523 done
3524 fi
3525 if test -z "$CC"; then
3526 ac_ct_CC=$CC
3527 for ac_prog in cl
3528 do
3529 # Extract the first word of "$ac_prog", so it can be a program name with args.
3530 set dummy $ac_prog; ac_word=$2
3531 echo "$as_me:$LINENO: checking for $ac_word" >&5
3532 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3533 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3534 echo $ECHO_N "(cached) $ECHO_C" >&6
3535 else
3536 if test -n "$ac_ct_CC"; then
3537 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3538 else
3539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3540 for as_dir in $PATH
3541 do
3542 IFS=$as_save_IFS
3543 test -z "$as_dir" && as_dir=.
3544 for ac_exec_ext in '' $ac_executable_extensions; do
3545 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3546 ac_cv_prog_ac_ct_CC="$ac_prog"
3547 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3548 break 2
3549 fi
3550 done
3551 done
3552
3553 fi
3554 fi
3555 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3556 if test -n "$ac_ct_CC"; then
3557 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3558 echo "${ECHO_T}$ac_ct_CC" >&6
3559 else
3560 echo "$as_me:$LINENO: result: no" >&5
3561 echo "${ECHO_T}no" >&6
3562 fi
3563
3564 test -n "$ac_ct_CC" && break
3565 done
3566
3567 CC=$ac_ct_CC
3568 fi
3569
3570 fi
3571
3572
3573 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3574 See \`config.log' for more details." >&5
3575 echo "$as_me: error: no acceptable C compiler found in \$PATH
3576 See \`config.log' for more details." >&2;}
3577 { (exit 1); exit 1; }; }
3578
3579 # Provide some information about the compiler.
3580 echo "$as_me:$LINENO:" \
3581 "checking for C compiler version" >&5
3582 ac_compiler=`set X $ac_compile; echo $2`
3583 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3584 (eval $ac_compiler --version </dev/null >&5) 2>&5
3585 ac_status=$?
3586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3587 (exit $ac_status); }
3588 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3589 (eval $ac_compiler -v </dev/null >&5) 2>&5
3590 ac_status=$?
3591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3592 (exit $ac_status); }
3593 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3594 (eval $ac_compiler -V </dev/null >&5) 2>&5
3595 ac_status=$?
3596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3597 (exit $ac_status); }
3598
3599 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3600 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3601 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3602 echo $ECHO_N "(cached) $ECHO_C" >&6
3603 else
3604 cat >conftest.$ac_ext <<_ACEOF
3605 /* confdefs.h. */
3606 _ACEOF
3607 cat confdefs.h >>conftest.$ac_ext
3608 cat >>conftest.$ac_ext <<_ACEOF
3609 /* end confdefs.h. */
3610
3611 int
3612 main ()
3613 {
3614 #ifndef __GNUC__
3615 choke me
3616 #endif
3617
3618 ;
3619 return 0;
3620 }
3621 _ACEOF
3622 rm -f conftest.$ac_objext
3623 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3624 (eval $ac_compile) 2>conftest.er1
3625 ac_status=$?
3626 grep -v '^ *+' conftest.er1 >conftest.err
3627 rm -f conftest.er1
3628 cat conftest.err >&5
3629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3630 (exit $ac_status); } &&
3631 { ac_try='test -z "$ac_c_werror_flag"
3632 || test ! -s conftest.err'
3633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3634 (eval $ac_try) 2>&5
3635 ac_status=$?
3636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3637 (exit $ac_status); }; } &&
3638 { ac_try='test -s conftest.$ac_objext'
3639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3640 (eval $ac_try) 2>&5
3641 ac_status=$?
3642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3643 (exit $ac_status); }; }; then
3644 ac_compiler_gnu=yes
3645 else
3646 echo "$as_me: failed program was:" >&5
3647 sed 's/^/| /' conftest.$ac_ext >&5
3648
3649 ac_compiler_gnu=no
3650 fi
3651 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3652 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3653
3654 fi
3655 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3656 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3657 GCC=`test $ac_compiler_gnu = yes && echo yes`
3658 ac_test_CFLAGS=${CFLAGS+set}
3659 ac_save_CFLAGS=$CFLAGS
3660 CFLAGS="-g"
3661 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3662 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3663 if test "${ac_cv_prog_cc_g+set}" = set; then
3664 echo $ECHO_N "(cached) $ECHO_C" >&6
3665 else
3666 cat >conftest.$ac_ext <<_ACEOF
3667 /* confdefs.h. */
3668 _ACEOF
3669 cat confdefs.h >>conftest.$ac_ext
3670 cat >>conftest.$ac_ext <<_ACEOF
3671 /* end confdefs.h. */
3672
3673 int
3674 main ()
3675 {
3676
3677 ;
3678 return 0;
3679 }
3680 _ACEOF
3681 rm -f conftest.$ac_objext
3682 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3683 (eval $ac_compile) 2>conftest.er1
3684 ac_status=$?
3685 grep -v '^ *+' conftest.er1 >conftest.err
3686 rm -f conftest.er1
3687 cat conftest.err >&5
3688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3689 (exit $ac_status); } &&
3690 { ac_try='test -z "$ac_c_werror_flag"
3691 || test ! -s conftest.err'
3692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3693 (eval $ac_try) 2>&5
3694 ac_status=$?
3695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3696 (exit $ac_status); }; } &&
3697 { ac_try='test -s conftest.$ac_objext'
3698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3699 (eval $ac_try) 2>&5
3700 ac_status=$?
3701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3702 (exit $ac_status); }; }; then
3703 ac_cv_prog_cc_g=yes
3704 else
3705 echo "$as_me: failed program was:" >&5
3706 sed 's/^/| /' conftest.$ac_ext >&5
3707
3708 ac_cv_prog_cc_g=no
3709 fi
3710 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3711 fi
3712 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3713 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3714 if test "$ac_test_CFLAGS" = set; then
3715 CFLAGS=$ac_save_CFLAGS
3716 elif test $ac_cv_prog_cc_g = yes; then
3717 if test "$GCC" = yes; then
3718 CFLAGS="-g -O2"
3719 else
3720 CFLAGS="-g"
3721 fi
3722 else
3723 if test "$GCC" = yes; then
3724 CFLAGS="-O2"
3725 else
3726 CFLAGS=
3727 fi
3728 fi
3729 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3730 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3731 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3732 echo $ECHO_N "(cached) $ECHO_C" >&6
3733 else
3734 ac_cv_prog_cc_stdc=no
3735 ac_save_CC=$CC
3736 cat >conftest.$ac_ext <<_ACEOF
3737 /* confdefs.h. */
3738 _ACEOF
3739 cat confdefs.h >>conftest.$ac_ext
3740 cat >>conftest.$ac_ext <<_ACEOF
3741 /* end confdefs.h. */
3742 #include <stdarg.h>
3743 #include <stdio.h>
3744 #include <sys/types.h>
3745 #include <sys/stat.h>
3746 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3747 struct buf { int x; };
3748 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3749 static char *e (p, i)
3750 char **p;
3751 int i;
3752 {
3753 return p[i];
3754 }
3755 static char *f (char * (*g) (char **, int), char **p, ...)
3756 {
3757 char *s;
3758 va_list v;
3759 va_start (v,p);
3760 s = g (p, va_arg (v,int));
3761 va_end (v);
3762 return s;
3763 }
3764
3765 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3766 function prototypes and stuff, but not '\xHH' hex character constants.
3767 These don't provoke an error unfortunately, instead are silently treated
3768 as 'x'. The following induces an error, until -std1 is added to get
3769 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3770 array size at least. It's necessary to write '\x00'==0 to get something
3771 that's true only with -std1. */
3772 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3773
3774 int test (int i, double x);
3775 struct s1 {int (*f) (int a);};
3776 struct s2 {int (*f) (double a);};
3777 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3778 int argc;
3779 char **argv;
3780 int
3781 main ()
3782 {
3783 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3784 ;
3785 return 0;
3786 }
3787 _ACEOF
3788 # Don't try gcc -ansi; that turns off useful extensions and
3789 # breaks some systems' header files.
3790 # AIX -qlanglvl=ansi
3791 # Ultrix and OSF/1 -std1
3792 # HP-UX 10.20 and later -Ae
3793 # HP-UX older versions -Aa -D_HPUX_SOURCE
3794 # SVR4 -Xc -D__EXTENSIONS__
3795 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3796 do
3797 CC="$ac_save_CC $ac_arg"
3798 rm -f conftest.$ac_objext
3799 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3800 (eval $ac_compile) 2>conftest.er1
3801 ac_status=$?
3802 grep -v '^ *+' conftest.er1 >conftest.err
3803 rm -f conftest.er1
3804 cat conftest.err >&5
3805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3806 (exit $ac_status); } &&
3807 { ac_try='test -z "$ac_c_werror_flag"
3808 || test ! -s conftest.err'
3809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3810 (eval $ac_try) 2>&5
3811 ac_status=$?
3812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3813 (exit $ac_status); }; } &&
3814 { ac_try='test -s conftest.$ac_objext'
3815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3816 (eval $ac_try) 2>&5
3817 ac_status=$?
3818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3819 (exit $ac_status); }; }; then
3820 ac_cv_prog_cc_stdc=$ac_arg
3821 break
3822 else
3823 echo "$as_me: failed program was:" >&5
3824 sed 's/^/| /' conftest.$ac_ext >&5
3825
3826 fi
3827 rm -f conftest.err conftest.$ac_objext
3828 done
3829 rm -f conftest.$ac_ext conftest.$ac_objext
3830 CC=$ac_save_CC
3831
3832 fi
3833
3834 case "x$ac_cv_prog_cc_stdc" in
3835 x|xno)
3836 echo "$as_me:$LINENO: result: none needed" >&5
3837 echo "${ECHO_T}none needed" >&6 ;;
3838 *)
3839 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3840 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3841 CC="$CC $ac_cv_prog_cc_stdc" ;;
3842 esac
3843
3844 # Some people use a C++ compiler to compile C. Since we use `exit',
3845 # in C++ we need to declare it. In case someone uses the same compiler
3846 # for both compiling C and C++ we need to have the C++ compiler decide
3847 # the declaration of exit, since it's the most demanding environment.
3848 cat >conftest.$ac_ext <<_ACEOF
3849 #ifndef __cplusplus
3850 choke me
3851 #endif
3852 _ACEOF
3853 rm -f conftest.$ac_objext
3854 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3855 (eval $ac_compile) 2>conftest.er1
3856 ac_status=$?
3857 grep -v '^ *+' conftest.er1 >conftest.err
3858 rm -f conftest.er1
3859 cat conftest.err >&5
3860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3861 (exit $ac_status); } &&
3862 { ac_try='test -z "$ac_c_werror_flag"
3863 || test ! -s conftest.err'
3864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3865 (eval $ac_try) 2>&5
3866 ac_status=$?
3867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3868 (exit $ac_status); }; } &&
3869 { ac_try='test -s conftest.$ac_objext'
3870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3871 (eval $ac_try) 2>&5
3872 ac_status=$?
3873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3874 (exit $ac_status); }; }; then
3875 for ac_declaration in \
3876 '' \
3877 'extern "C" void std::exit (int) throw (); using std::exit;' \
3878 'extern "C" void std::exit (int); using std::exit;' \
3879 'extern "C" void exit (int) throw ();' \
3880 'extern "C" void exit (int);' \
3881 'void exit (int);'
3882 do
3883 cat >conftest.$ac_ext <<_ACEOF
3884 /* confdefs.h. */
3885 _ACEOF
3886 cat confdefs.h >>conftest.$ac_ext
3887 cat >>conftest.$ac_ext <<_ACEOF
3888 /* end confdefs.h. */
3889 $ac_declaration
3890 #include <stdlib.h>
3891 int
3892 main ()
3893 {
3894 exit (42);
3895 ;
3896 return 0;
3897 }
3898 _ACEOF
3899 rm -f conftest.$ac_objext
3900 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3901 (eval $ac_compile) 2>conftest.er1
3902 ac_status=$?
3903 grep -v '^ *+' conftest.er1 >conftest.err
3904 rm -f conftest.er1
3905 cat conftest.err >&5
3906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3907 (exit $ac_status); } &&
3908 { ac_try='test -z "$ac_c_werror_flag"
3909 || test ! -s conftest.err'
3910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3911 (eval $ac_try) 2>&5
3912 ac_status=$?
3913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3914 (exit $ac_status); }; } &&
3915 { ac_try='test -s conftest.$ac_objext'
3916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3917 (eval $ac_try) 2>&5
3918 ac_status=$?
3919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3920 (exit $ac_status); }; }; then
3921 :
3922 else
3923 echo "$as_me: failed program was:" >&5
3924 sed 's/^/| /' conftest.$ac_ext >&5
3925
3926 continue
3927 fi
3928 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3929 cat >conftest.$ac_ext <<_ACEOF
3930 /* confdefs.h. */
3931 _ACEOF
3932 cat confdefs.h >>conftest.$ac_ext
3933 cat >>conftest.$ac_ext <<_ACEOF
3934 /* end confdefs.h. */
3935 $ac_declaration
3936 int
3937 main ()
3938 {
3939 exit (42);
3940 ;
3941 return 0;
3942 }
3943 _ACEOF
3944 rm -f conftest.$ac_objext
3945 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3946 (eval $ac_compile) 2>conftest.er1
3947 ac_status=$?
3948 grep -v '^ *+' conftest.er1 >conftest.err
3949 rm -f conftest.er1
3950 cat conftest.err >&5
3951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3952 (exit $ac_status); } &&
3953 { ac_try='test -z "$ac_c_werror_flag"
3954 || test ! -s conftest.err'
3955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3956 (eval $ac_try) 2>&5
3957 ac_status=$?
3958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3959 (exit $ac_status); }; } &&
3960 { ac_try='test -s conftest.$ac_objext'
3961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3962 (eval $ac_try) 2>&5
3963 ac_status=$?
3964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3965 (exit $ac_status); }; }; then
3966 break
3967 else
3968 echo "$as_me: failed program was:" >&5
3969 sed 's/^/| /' conftest.$ac_ext >&5
3970
3971 fi
3972 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3973 done
3974 rm -f conftest*
3975 if test -n "$ac_declaration"; then
3976 echo '#ifdef __cplusplus' >>confdefs.h
3977 echo $ac_declaration >>confdefs.h
3978 echo '#endif' >>confdefs.h
3979 fi
3980
3981 else
3982 echo "$as_me: failed program was:" >&5
3983 sed 's/^/| /' conftest.$ac_ext >&5
3984
3985 fi
3986 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3987 ac_ext=c
3988 ac_cpp='$CPP $CPPFLAGS'
3989 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3990 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3991 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3992
3993
3994 cat >>confdefs.h <<\_ACEOF
3995 #define _GNU_SOURCE 1
3996 _ACEOF
3997
3998
3999
4000 # Check whether --enable-static or --disable-static was given.
4001 if test "${enable_static+set}" = set; then
4002 enableval="$enable_static"
4003 p=${PACKAGE-default}
4004 case $enableval in
4005 yes) enable_static=yes ;;
4006 no) enable_static=no ;;
4007 *)
4008 enable_static=no
4009 # Look at the argument we got. We use all the common list separators.
4010 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4011 for pkg in $enableval; do
4012 if test "X$pkg" = "X$p"; then
4013 enable_static=yes
4014 fi
4015 done
4016 IFS="$ac_save_ifs"
4017 ;;
4018 esac
4019 else
4020 enable_static=yes
4021 fi;
4022 # Check whether --enable-fast-install or --disable-fast-install was given.
4023 if test "${enable_fast_install+set}" = set; then
4024 enableval="$enable_fast_install"
4025 p=${PACKAGE-default}
4026 case $enableval in
4027 yes) enable_fast_install=yes ;;
4028 no) enable_fast_install=no ;;
4029 *)
4030 enable_fast_install=no
4031 # Look at the argument we got. We use all the common list separators.
4032 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4033 for pkg in $enableval; do
4034 if test "X$pkg" = "X$p"; then
4035 enable_fast_install=yes
4036 fi
4037 done
4038 IFS="$ac_save_ifs"
4039 ;;
4040 esac
4041 else
4042 enable_fast_install=yes
4043 fi;
4044
4045 # Check whether --with-gnu-ld or --without-gnu-ld was given.
4046 if test "${with_gnu_ld+set}" = set; then
4047 withval="$with_gnu_ld"
4048 test "$withval" = no || with_gnu_ld=yes
4049 else
4050 with_gnu_ld=no
4051 fi;
4052 ac_prog=ld
4053 if test "$GCC" = yes; then
4054 # Check if gcc -print-prog-name=ld gives a path.
4055 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
4056 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
4057 case $host in
4058 *-*-mingw*)
4059 # gcc leaves a trailing carriage return which upsets mingw
4060 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4061 *)
4062 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4063 esac
4064 case $ac_prog in
4065 # Accept absolute paths.
4066 [\\/]* | [A-Za-z]:[\\/]*)
4067 re_direlt='/[^/][^/]*/\.\./'
4068 # Canonicalize the path of ld
4069 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
4070 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4071 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
4072 done
4073 test -z "$LD" && LD="$ac_prog"
4074 ;;
4075 "")
4076 # If it fails, then pretend we aren't using GCC.
4077 ac_prog=ld
4078 ;;
4079 *)
4080 # If it is relative, then search for the first ld in PATH.
4081 with_gnu_ld=unknown
4082 ;;
4083 esac
4084 elif test "$with_gnu_ld" = yes; then
4085 echo "$as_me:$LINENO: checking for GNU ld" >&5
4086 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4087 else
4088 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4089 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4090 fi
4091 if test "${lt_cv_path_LD+set}" = set; then
4092 echo $ECHO_N "(cached) $ECHO_C" >&6
4093 else
4094 if test -z "$LD"; then
4095 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
4096 for ac_dir in $PATH; do
4097 test -z "$ac_dir" && ac_dir=.
4098 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4099 lt_cv_path_LD="$ac_dir/$ac_prog"
4100 # Check to see if the program is GNU ld. I'd rather use --version,
4101 # but apparently some GNU ld's only accept -v.
4102 # Break only if it was the GNU/non-GNU ld that we prefer.
4103 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
4104 test "$with_gnu_ld" != no && break
4105 else
4106 test "$with_gnu_ld" != yes && break
4107 fi
4108 fi
4109 done
4110 IFS="$ac_save_ifs"
4111 else
4112 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4113 fi
4114 fi
4115
4116 LD="$lt_cv_path_LD"
4117 if test -n "$LD"; then
4118 echo "$as_me:$LINENO: result: $LD" >&5
4119 echo "${ECHO_T}$LD" >&6
4120 else
4121 echo "$as_me:$LINENO: result: no" >&5
4122 echo "${ECHO_T}no" >&6
4123 fi
4124 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4125 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4126 { (exit 1); exit 1; }; }
4127 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4128 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4129 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4130 echo $ECHO_N "(cached) $ECHO_C" >&6
4131 else
4132 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4133 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
4134 lt_cv_prog_gnu_ld=yes
4135 else
4136 lt_cv_prog_gnu_ld=no
4137 fi
4138 fi
4139 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4140 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4141 with_gnu_ld=$lt_cv_prog_gnu_ld
4142
4143
4144 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4145 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4146 if test "${lt_cv_ld_reload_flag+set}" = set; then
4147 echo $ECHO_N "(cached) $ECHO_C" >&6
4148 else
4149 lt_cv_ld_reload_flag='-r'
4150 fi
4151 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4152 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4153 reload_flag=$lt_cv_ld_reload_flag
4154 test -n "$reload_flag" && reload_flag=" $reload_flag"
4155
4156 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4157 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4158 if test "${lt_cv_path_NM+set}" = set; then
4159 echo $ECHO_N "(cached) $ECHO_C" >&6
4160 else
4161 if test -n "$NM"; then
4162 # Let the user override the test.
4163 lt_cv_path_NM="$NM"
4164 else
4165 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
4166 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
4167 test -z "$ac_dir" && ac_dir=.
4168 tmp_nm=$ac_dir/${ac_tool_prefix}nm
4169 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
4170 # Check to see if the nm accepts a BSD-compat flag.
4171 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4172 # nm: unknown option "B" ignored
4173 # Tru64's nm complains that /dev/null is an invalid object file
4174 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
4175 lt_cv_path_NM="$tmp_nm -B"
4176 break
4177 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
4178 lt_cv_path_NM="$tmp_nm -p"
4179 break
4180 else
4181 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4182 continue # so that we can try to find one that supports BSD flags
4183 fi
4184 fi
4185 done
4186 IFS="$ac_save_ifs"
4187 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4188 fi
4189 fi
4190
4191 NM="$lt_cv_path_NM"
4192 echo "$as_me:$LINENO: result: $NM" >&5
4193 echo "${ECHO_T}$NM" >&6
4194
4195 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4196 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4197 LN_S=$as_ln_s
4198 if test "$LN_S" = "ln -s"; then
4199 echo "$as_me:$LINENO: result: yes" >&5
4200 echo "${ECHO_T}yes" >&6
4201 else
4202 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4203 echo "${ECHO_T}no, using $LN_S" >&6
4204 fi
4205
4206 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
4207 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
4208 if test "${lt_cv_deplibs_check_method+set}" = set; then
4209 echo $ECHO_N "(cached) $ECHO_C" >&6
4210 else
4211 lt_cv_file_magic_cmd='$MAGIC_CMD'
4212 lt_cv_file_magic_test_file=
4213 lt_cv_deplibs_check_method='unknown'
4214 # Need to set the preceding variable on all platforms that support
4215 # interlibrary dependencies.
4216 # 'none' -- dependencies not supported.
4217 # `unknown' -- same as none, but documents that we really don't know.
4218 # 'pass_all' -- all dependencies passed with no checks.
4219 # 'test_compile' -- check by making test program.
4220 # 'file_magic [regex]' -- check by looking for files in library path
4221 # which responds to the $file_magic_cmd with a given egrep regex.
4222 # If you have `file' or equivalent on your system and you're not sure
4223 # whether `pass_all' will *always* work, you probably want this one.
4224
4225 case $host_os in
4226 aix*)
4227 lt_cv_deplibs_check_method=pass_all
4228 ;;
4229
4230 beos*)
4231 lt_cv_deplibs_check_method=pass_all
4232 ;;
4233
4234 bsdi4*)
4235 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4236 lt_cv_file_magic_cmd='/usr/bin/file -L'
4237 lt_cv_file_magic_test_file=/shlib/libc.so
4238 ;;
4239
4240 cygwin* | mingw* |pw32*)
4241 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4242 lt_cv_file_magic_cmd='$OBJDUMP -f'
4243 ;;
4244
4245 darwin* | rhapsody*)
4246 # this will be overwritten by pass_all, but leave it in just in case
4247 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
4248 lt_cv_file_magic_cmd='/usr/bin/file -L'
4249 case "$host_os" in
4250 rhapsody* | darwin1.012)
4251 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
4252 ;;
4253 *) # Darwin 1.3 on
4254 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
4255 ;;
4256 esac
4257 lt_cv_deplibs_check_method=pass_all
4258 ;;
4259
4260 freebsd* | kfreebsd*-gnu)
4261 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4262 case $host_cpu in
4263 i*86 )
4264 # Not sure whether the presence of OpenBSD here was a mistake.
4265 # Let's accept both of them until this is cleared up.
4266 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4267 lt_cv_file_magic_cmd=/usr/bin/file
4268 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4269 ;;
4270 esac
4271 else
4272 lt_cv_deplibs_check_method=pass_all
4273 fi
4274 ;;
4275
4276 gnu*)
4277 lt_cv_deplibs_check_method=pass_all
4278 ;;
4279
4280 hpux10.20*|hpux11*)
4281 case $host_cpu in
4282 hppa*)
4283 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4284 lt_cv_file_magic_cmd=/usr/bin/file
4285 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4286 ;;
4287 ia64*)
4288 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4289 lt_cv_file_magic_cmd=/usr/bin/file
4290 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4291 ;;
4292 esac
4293 ;;
4294
4295 irix5* | irix6*)
4296 case $host_os in
4297 irix5*)
4298 # this will be overridden with pass_all, but let us keep it just in case
4299 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
4300 ;;
4301 *)
4302 case $LD in
4303 *-32|*"-32 ") libmagic=32-bit;;
4304 *-n32|*"-n32 ") libmagic=N32;;
4305 *-64|*"-64 ") libmagic=64-bit;;
4306 *) libmagic=never-match;;
4307 esac
4308 # this will be overridden with pass_all, but let us keep it just in case
4309 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
4310 ;;
4311 esac
4312 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
4313 lt_cv_deplibs_check_method=pass_all
4314 ;;
4315
4316 # This must be Linux ELF.
4317 linux-gnu*)
4318 lt_cv_deplibs_check_method=pass_all
4319 ;;
4320
4321 netbsd* | knetbsd*-gnu)
4322 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4323 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
4324 else
4325 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
4326 fi
4327 ;;
4328
4329 newsos6)
4330 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4331 lt_cv_file_magic_cmd=/usr/bin/file
4332 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4333 ;;
4334
4335 osf3* | osf4* | osf5*)
4336 # this will be overridden with pass_all, but let us keep it just in case
4337 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
4338 lt_cv_file_magic_test_file=/shlib/libc.so
4339 lt_cv_deplibs_check_method=pass_all
4340 ;;
4341
4342 sco3.2v5*)
4343 lt_cv_deplibs_check_method=pass_all
4344 ;;
4345
4346 solaris*)
4347 lt_cv_deplibs_check_method=pass_all
4348 lt_cv_file_magic_test_file=/lib/libc.so
4349 ;;
4350
4351 sysv5uw[78]* | sysv4*uw2*)
4352 lt_cv_deplibs_check_method=pass_all
4353 ;;
4354
4355 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4356 case $host_vendor in
4357 ncr)
4358 lt_cv_deplibs_check_method=pass_all
4359 ;;
4360 motorola)
4361 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
4362 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4363 ;;
4364 esac
4365 ;;
4366 esac
4367
4368 fi
4369 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4370 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4371 file_magic_cmd=$lt_cv_file_magic_cmd
4372 deplibs_check_method=$lt_cv_deplibs_check_method
4373
4374
4375
4376
4377 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
4378
4379 # find the maximum length of command line arguments
4380 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4381 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
4382 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4383 echo $ECHO_N "(cached) $ECHO_C" >&6
4384 else
4385 i=0
4386 teststring="ABCD"
4387
4388 case $build_os in
4389 msdosdjgpp*)
4390 # On DJGPP, this test can blow up pretty badly due to problems in libc
4391 # (any single argument exceeding 2000 bytes causes a buffer overrun
4392 # during glob expansion). Even if it were fixed, the result of this
4393 # check would be larger than it should be.
4394 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4395 ;;
4396
4397 cygwin* | mingw*)
4398 # On Win9x/ME, this test blows up -- it succeeds, but takes
4399 # about 5 minutes as the teststring grows exponentially.
4400 # Worse, since 9x/ME are not pre-emptively multitasking,
4401 # you end up with a "frozen" computer, even though with patience
4402 # the test eventually succeeds (with a max line length of 256k).
4403 # Instead, let's just punt: use the minimum linelength reported by
4404 # all of the supported platforms: 8192 (on NT/2K/XP).
4405 lt_cv_sys_max_cmd_len=8192;
4406 ;;
4407
4408 amigaos*)
4409 # On AmigaOS with pdksh, this test takes hours, literally.
4410 # So we just punt and use a minimum line length of 8192.
4411 lt_cv_sys_max_cmd_len=8192;
4412 ;;
4413
4414 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4415 # This has been around since 386BSD, at least. Likely further.
4416 if test -x /sbin/sysctl; then
4417 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4418 elif test -x /usr/sbin/sysctl; then
4419 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4420 else
4421 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
4422 fi
4423 # And add a safety zone
4424 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4425 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4426 ;;
4427 esac
4428
4429 fi
4430
4431 if test -n "$lt_cv_sys_max_cmd_len" ; then
4432 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4433 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
4434 else
4435 echo "$as_me:$LINENO: result: none" >&5
4436 echo "${ECHO_T}none" >&6
4437 fi
4438
4439
4440 # Only perform the check for file, if the check method requires it
4441 case $deplibs_check_method in
4442 file_magic*)
4443 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
4444 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
4445 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
4446 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4447 echo $ECHO_N "(cached) $ECHO_C" >&6
4448 else
4449 case $MAGIC_CMD in
4450 /*)
4451 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4452 ;;
4453 ?:/*)
4454 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4455 ;;
4456 *)
4457 ac_save_MAGIC_CMD="$MAGIC_CMD"
4458 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4459 ac_dummy="/usr/bin:$PATH"
4460 for ac_dir in $ac_dummy; do
4461 test -z "$ac_dir" && ac_dir=.
4462 if test -f $ac_dir/${ac_tool_prefix}file; then
4463 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
4464 if test -n "$file_magic_test_file"; then
4465 case $deplibs_check_method in
4466 "file_magic "*)
4467 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4468 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4469 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4470 egrep "$file_magic_regex" > /dev/null; then
4471 :
4472 else
4473 cat <<EOF 1>&2
4474
4475 *** Warning: the command libtool uses to detect shared libraries,
4476 *** $file_magic_cmd, produces output that libtool cannot recognize.
4477 *** The result is that libtool may fail to recognize shared libraries
4478 *** as such. This will affect the creation of libtool libraries that
4479 *** depend on shared libraries, but programs linked with such libtool
4480 *** libraries will work regardless of this problem. Nevertheless, you
4481 *** may want to report the problem to your system manager and/or to
4482 *** bug-libtool@gnu.org
4483
4484 EOF
4485 fi ;;
4486 esac
4487 fi
4488 break
4489 fi
4490 done
4491 IFS="$ac_save_ifs"
4492 MAGIC_CMD="$ac_save_MAGIC_CMD"
4493 ;;
4494 esac
4495 fi
4496
4497 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4498 if test -n "$MAGIC_CMD"; then
4499 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4500 echo "${ECHO_T}$MAGIC_CMD" >&6
4501 else
4502 echo "$as_me:$LINENO: result: no" >&5
4503 echo "${ECHO_T}no" >&6
4504 fi
4505
4506 if test -z "$lt_cv_path_MAGIC_CMD"; then
4507 if test -n "$ac_tool_prefix"; then
4508 echo "$as_me:$LINENO: checking for file" >&5
4509 echo $ECHO_N "checking for file... $ECHO_C" >&6
4510 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4511 echo $ECHO_N "(cached) $ECHO_C" >&6
4512 else
4513 case $MAGIC_CMD in
4514 /*)
4515 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4516 ;;
4517 ?:/*)
4518 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4519 ;;
4520 *)
4521 ac_save_MAGIC_CMD="$MAGIC_CMD"
4522 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4523 ac_dummy="/usr/bin:$PATH"
4524 for ac_dir in $ac_dummy; do
4525 test -z "$ac_dir" && ac_dir=.
4526 if test -f $ac_dir/file; then
4527 lt_cv_path_MAGIC_CMD="$ac_dir/file"
4528 if test -n "$file_magic_test_file"; then
4529 case $deplibs_check_method in
4530 "file_magic "*)
4531 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4532 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4533 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4534 egrep "$file_magic_regex" > /dev/null; then
4535 :
4536 else
4537 cat <<EOF 1>&2
4538
4539 *** Warning: the command libtool uses to detect shared libraries,
4540 *** $file_magic_cmd, produces output that libtool cannot recognize.
4541 *** The result is that libtool may fail to recognize shared libraries
4542 *** as such. This will affect the creation of libtool libraries that
4543 *** depend on shared libraries, but programs linked with such libtool
4544 *** libraries will work regardless of this problem. Nevertheless, you
4545 *** may want to report the problem to your system manager and/or to
4546 *** bug-libtool@gnu.org
4547
4548 EOF
4549 fi ;;
4550 esac
4551 fi
4552 break
4553 fi
4554 done
4555 IFS="$ac_save_ifs"
4556 MAGIC_CMD="$ac_save_MAGIC_CMD"
4557 ;;
4558 esac
4559 fi
4560
4561 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4562 if test -n "$MAGIC_CMD"; then
4563 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4564 echo "${ECHO_T}$MAGIC_CMD" >&6
4565 else
4566 echo "$as_me:$LINENO: result: no" >&5
4567 echo "${ECHO_T}no" >&6
4568 fi
4569
4570 else
4571 MAGIC_CMD=:
4572 fi
4573 fi
4574
4575 fi
4576 ;;
4577 esac
4578
4579 if test -n "$ac_tool_prefix"; then
4580 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4581 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4582 echo "$as_me:$LINENO: checking for $ac_word" >&5
4583 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4584 if test "${ac_cv_prog_RANLIB+set}" = set; then
4585 echo $ECHO_N "(cached) $ECHO_C" >&6
4586 else
4587 if test -n "$RANLIB"; then
4588 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4589 else
4590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4591 for as_dir in $PATH
4592 do
4593 IFS=$as_save_IFS
4594 test -z "$as_dir" && as_dir=.
4595 for ac_exec_ext in '' $ac_executable_extensions; do
4596 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4597 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4598 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4599 break 2
4600 fi
4601 done
4602 done
4603
4604 fi
4605 fi
4606 RANLIB=$ac_cv_prog_RANLIB
4607 if test -n "$RANLIB"; then
4608 echo "$as_me:$LINENO: result: $RANLIB" >&5
4609 echo "${ECHO_T}$RANLIB" >&6
4610 else
4611 echo "$as_me:$LINENO: result: no" >&5
4612 echo "${ECHO_T}no" >&6
4613 fi
4614
4615 fi
4616 if test -z "$ac_cv_prog_RANLIB"; then
4617 ac_ct_RANLIB=$RANLIB
4618 # Extract the first word of "ranlib", so it can be a program name with args.
4619 set dummy ranlib; ac_word=$2
4620 echo "$as_me:$LINENO: checking for $ac_word" >&5
4621 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4622 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4623 echo $ECHO_N "(cached) $ECHO_C" >&6
4624 else
4625 if test -n "$ac_ct_RANLIB"; then
4626 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4627 else
4628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4629 for as_dir in $PATH
4630 do
4631 IFS=$as_save_IFS
4632 test -z "$as_dir" && as_dir=.
4633 for ac_exec_ext in '' $ac_executable_extensions; do
4634 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4635 ac_cv_prog_ac_ct_RANLIB="ranlib"
4636 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4637 break 2
4638 fi
4639 done
4640 done
4641
4642 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4643 fi
4644 fi
4645 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4646 if test -n "$ac_ct_RANLIB"; then
4647 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4648 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4649 else
4650 echo "$as_me:$LINENO: result: no" >&5
4651 echo "${ECHO_T}no" >&6
4652 fi
4653
4654 RANLIB=$ac_ct_RANLIB
4655 else
4656 RANLIB="$ac_cv_prog_RANLIB"
4657 fi
4658
4659 if test -n "$ac_tool_prefix"; then
4660 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4661 set dummy ${ac_tool_prefix}strip; ac_word=$2
4662 echo "$as_me:$LINENO: checking for $ac_word" >&5
4663 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4664 if test "${ac_cv_prog_STRIP+set}" = set; then
4665 echo $ECHO_N "(cached) $ECHO_C" >&6
4666 else
4667 if test -n "$STRIP"; then
4668 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4669 else
4670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4671 for as_dir in $PATH
4672 do
4673 IFS=$as_save_IFS
4674 test -z "$as_dir" && as_dir=.
4675 for ac_exec_ext in '' $ac_executable_extensions; do
4676 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4677 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4678 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4679 break 2
4680 fi
4681 done
4682 done
4683
4684 fi
4685 fi
4686 STRIP=$ac_cv_prog_STRIP
4687 if test -n "$STRIP"; then
4688 echo "$as_me:$LINENO: result: $STRIP" >&5
4689 echo "${ECHO_T}$STRIP" >&6
4690 else
4691 echo "$as_me:$LINENO: result: no" >&5
4692 echo "${ECHO_T}no" >&6
4693 fi
4694
4695 fi
4696 if test -z "$ac_cv_prog_STRIP"; then
4697 ac_ct_STRIP=$STRIP
4698 # Extract the first word of "strip", so it can be a program name with args.
4699 set dummy strip; ac_word=$2
4700 echo "$as_me:$LINENO: checking for $ac_word" >&5
4701 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4702 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4703 echo $ECHO_N "(cached) $ECHO_C" >&6
4704 else
4705 if test -n "$ac_ct_STRIP"; then
4706 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4707 else
4708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4709 for as_dir in $PATH
4710 do
4711 IFS=$as_save_IFS
4712 test -z "$as_dir" && as_dir=.
4713 for ac_exec_ext in '' $ac_executable_extensions; do
4714 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4715 ac_cv_prog_ac_ct_STRIP="strip"
4716 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4717 break 2
4718 fi
4719 done
4720 done
4721
4722 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4723 fi
4724 fi
4725 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4726 if test -n "$ac_ct_STRIP"; then
4727 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4728 echo "${ECHO_T}$ac_ct_STRIP" >&6
4729 else
4730 echo "$as_me:$LINENO: result: no" >&5
4731 echo "${ECHO_T}no" >&6
4732 fi
4733
4734 STRIP=$ac_ct_STRIP
4735 else
4736 STRIP="$ac_cv_prog_STRIP"
4737 fi
4738
4739
4740 # Check for any special flags to pass to ltconfig.
4741 libtool_flags="--cache-file=$cache_file"
4742 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
4743 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
4744 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
4745 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
4746 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
4747
4748
4749 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4750 if test "${enable_libtool_lock+set}" = set; then
4751 enableval="$enable_libtool_lock"
4752
4753 fi;
4754 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
4755 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
4756
4757
4758 # Check whether --with-pic or --without-pic was given.
4759 if test "${with_pic+set}" = set; then
4760 withval="$with_pic"
4761 pic_mode="$withval"
4762 else
4763 pic_mode=default
4764 fi;
4765 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
4766 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
4767
4768 # Some flags need to be propagated to the compiler or linker for good
4769 # libtool support.
4770 case $host in
4771 *-*-irix6*)
4772 # Find out which ABI we are using.
4773 echo '#line 4773 "configure"' > conftest.$ac_ext
4774 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4775 (eval $ac_compile) 2>&5
4776 ac_status=$?
4777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4778 (exit $ac_status); }; then
4779 if test "$lt_cv_prog_gnu_ld" = yes; then
4780 case `/usr/bin/file conftest.$ac_objext` in
4781 *32-bit*)
4782 LD="${LD-ld} -melf32bsmip"
4783 ;;
4784 *N32*)
4785 LD="${LD-ld} -melf32bmipn32"
4786 ;;
4787 *64-bit*)
4788 LD="${LD-ld} -melf64bmip"
4789 ;;
4790 esac
4791 else
4792 case `/usr/bin/file conftest.$ac_objext` in
4793 *32-bit*)
4794 LD="${LD-ld} -32"
4795 ;;
4796 *N32*)
4797 LD="${LD-ld} -n32"
4798 ;;
4799 *64-bit*)
4800 LD="${LD-ld} -64"
4801 ;;
4802 esac
4803 fi
4804 fi
4805 rm -rf conftest*
4806 ;;
4807
4808 ia64-*-hpux*)
4809 # Find out which ABI we are using.
4810 echo 'int i;' > conftest.$ac_ext
4811 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4812 (eval $ac_compile) 2>&5
4813 ac_status=$?
4814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4815 (exit $ac_status); }; then
4816 case "`/usr/bin/file conftest.o`" in
4817 *ELF-32*)
4818 HPUX_IA64_MODE="32"
4819 ;;
4820 *ELF-64*)
4821 HPUX_IA64_MODE="64"
4822 ;;
4823 esac
4824 fi
4825 rm -rf conftest*
4826 ;;
4827
4828 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4829 # Find out which ABI we are using.
4830 echo 'int i;' > conftest.$ac_ext
4831 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4832 (eval $ac_compile) 2>&5
4833 ac_status=$?
4834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4835 (exit $ac_status); }; then
4836 case "`/usr/bin/file conftest.o`" in
4837 *32-bit*)
4838 case $host in
4839 x86_64-*linux*)
4840 LD="${LD-ld} -m elf_i386"
4841 ;;
4842 ppc64-*linux*|powerpc64-*linux*)
4843 LD="${LD-ld} -m elf32ppclinux"
4844 ;;
4845 s390x-*linux*)
4846 LD="${LD-ld} -m elf_s390"
4847 ;;
4848 sparc64-*linux*)
4849 LD="${LD-ld} -m elf32_sparc"
4850 ;;
4851 esac
4852 ;;
4853 *64-bit*)
4854 case $host in
4855 x86_64-*linux*)
4856 LD="${LD-ld} -m elf_x86_64"
4857 ;;
4858 ppc*-*linux*|powerpc*-*linux*)
4859 LD="${LD-ld} -m elf64ppc"
4860 ;;
4861 s390*-*linux*)
4862 LD="${LD-ld} -m elf64_s390"
4863 ;;
4864 sparc*-*linux*)
4865 LD="${LD-ld} -m elf64_sparc"
4866 ;;
4867 esac
4868 ;;
4869 esac
4870 fi
4871 rm -rf conftest*
4872 ;;
4873
4874 *-*-sco3.2v5*)
4875 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4876 SAVE_CFLAGS="$CFLAGS"
4877 CFLAGS="$CFLAGS -belf"
4878 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4879 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4880 if test "${lt_cv_cc_needs_belf+set}" = set; then
4881 echo $ECHO_N "(cached) $ECHO_C" >&6
4882 else
4883
4884
4885 ac_ext=c
4886 ac_cpp='$CPP $CPPFLAGS'
4887 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4888 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4889 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4890
4891 cat >conftest.$ac_ext <<_ACEOF
4892 /* confdefs.h. */
4893 _ACEOF
4894 cat confdefs.h >>conftest.$ac_ext
4895 cat >>conftest.$ac_ext <<_ACEOF
4896 /* end confdefs.h. */
4897
4898 int
4899 main ()
4900 {
4901
4902 ;
4903 return 0;
4904 }
4905 _ACEOF
4906 rm -f conftest.$ac_objext conftest$ac_exeext
4907 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4908 (eval $ac_link) 2>conftest.er1
4909 ac_status=$?
4910 grep -v '^ *+' conftest.er1 >conftest.err
4911 rm -f conftest.er1
4912 cat conftest.err >&5
4913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4914 (exit $ac_status); } &&
4915 { ac_try='test -z "$ac_c_werror_flag"
4916 || test ! -s conftest.err'
4917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4918 (eval $ac_try) 2>&5
4919 ac_status=$?
4920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4921 (exit $ac_status); }; } &&
4922 { ac_try='test -s conftest$ac_exeext'
4923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4924 (eval $ac_try) 2>&5
4925 ac_status=$?
4926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4927 (exit $ac_status); }; }; then
4928 lt_cv_cc_needs_belf=yes
4929 else
4930 echo "$as_me: failed program was:" >&5
4931 sed 's/^/| /' conftest.$ac_ext >&5
4932
4933 lt_cv_cc_needs_belf=no
4934 fi
4935 rm -f conftest.err conftest.$ac_objext \
4936 conftest$ac_exeext conftest.$ac_ext
4937 ac_ext=c
4938 ac_cpp='$CPP $CPPFLAGS'
4939 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4940 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4941 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4942
4943 fi
4944 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4945 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4946 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4947 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4948 CFLAGS="$SAVE_CFLAGS"
4949 fi
4950 ;;
4951
4952
4953 esac
4954
4955
4956 # Save cache, so that ltconfig can load it
4957 cat >confcache <<\_ACEOF
4958 # This file is a shell script that caches the results of configure
4959 # tests run on this system so they can be shared between configure
4960 # scripts and configure runs, see configure's option --config-cache.
4961 # It is not useful on other systems. If it contains results you don't
4962 # want to keep, you may remove or edit it.
4963 #
4964 # config.status only pays attention to the cache file if you give it
4965 # the --recheck option to rerun configure.
4966 #
4967 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4968 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4969 # following values.
4970
4971 _ACEOF
4972
4973 # The following way of writing the cache mishandles newlines in values,
4974 # but we know of no workaround that is simple, portable, and efficient.
4975 # So, don't put newlines in cache variables' values.
4976 # Ultrix sh set writes to stderr and can't be redirected directly,
4977 # and sets the high bit in the cache file unless we assign to the vars.
4978 {
4979 (set) 2>&1 |
4980 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4981 *ac_space=\ *)
4982 # `set' does not quote correctly, so add quotes (double-quote
4983 # substitution turns \\\\ into \\, and sed turns \\ into \).
4984 sed -n \
4985 "s/'/'\\\\''/g;
4986 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4987 ;;
4988 *)
4989 # `set' quotes correctly as required by POSIX, so do not add quotes.
4990 sed -n \
4991 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4992 ;;
4993 esac;
4994 } |
4995 sed '
4996 t clear
4997 : clear
4998 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4999 t end
5000 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5001 : end' >>confcache
5002 if diff $cache_file confcache >/dev/null 2>&1; then :; else
5003 if test -w $cache_file; then
5004 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
5005 cat confcache >$cache_file
5006 else
5007 echo "not updating unwritable cache $cache_file"
5008 fi
5009 fi
5010 rm -f confcache
5011
5012 # Actually configure libtool. ac_aux_dir is where install-sh is found.
5013 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
5014 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
5015 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
5016 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
5017 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
5018 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
5019 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
5020 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
5021 || { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
5022 echo "$as_me: error: libtool configure failed" >&2;}
5023 { (exit 1); exit 1; }; }
5024
5025 # Reload cache, that may have been modified by ltconfig
5026 if test -r "$cache_file"; then
5027 # Some versions of bash will fail to source /dev/null (special
5028 # files actually), so we avoid doing that.
5029 if test -f "$cache_file"; then
5030 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
5031 echo "$as_me: loading cache $cache_file" >&6;}
5032 case $cache_file in
5033 [\\/]* | ?:[\\/]* ) . $cache_file;;
5034 *) . ./$cache_file;;
5035 esac
5036 fi
5037 else
5038 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
5039 echo "$as_me: creating cache $cache_file" >&6;}
5040 >$cache_file
5041 fi
5042
5043
5044 # This can be used to rebuild libtool when needed
5045 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
5046
5047 # Always use our own libtool.
5048 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
5049
5050 # Redirect the config.log output again, so that the ltconfig log is not
5051 # clobbered by the next message.
5052 exec 5>>./config.log
5053
5054
5055
5056
5057
5058
5059
5060 # Check whether --enable-64-bit-bfd or --disable-64-bit-bfd was given.
5061 if test "${enable_64_bit_bfd+set}" = set; then
5062 enableval="$enable_64_bit_bfd"
5063 case "${enableval}" in
5064 yes) want64=true ;;
5065 no) want64=false ;;
5066 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for 64-bit-bfd option" >&5
5067 echo "$as_me: error: bad value ${enableval} for 64-bit-bfd option" >&2;}
5068 { (exit 1); exit 1; }; } ;;
5069 esac
5070 else
5071 want64=false
5072 fi; # Check whether --enable-targets or --disable-targets was given.
5073 if test "${enable_targets+set}" = set; then
5074 enableval="$enable_targets"
5075 case "${enableval}" in
5076 yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5
5077 echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;}
5078 { (exit 1); exit 1; }; }
5079 ;;
5080 no) enable_targets= ;;
5081 *) enable_targets=$enableval ;;
5082 esac
5083 fi; # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
5084 if test "${enable_commonbfdlib+set}" = set; then
5085 enableval="$enable_commonbfdlib"
5086 case "${enableval}" in
5087 yes) commonbfdlib=true ;;
5088 no) commonbfdlib=false ;;
5089 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for BFD commonbfdlib option" >&5
5090 echo "$as_me: error: bad value ${enableval} for BFD commonbfdlib option" >&2;}
5091 { (exit 1); exit 1; }; } ;;
5092 esac
5093 fi;
5094 # Check whether --with-mmap or --without-mmap was given.
5095 if test "${with_mmap+set}" = set; then
5096 withval="$with_mmap"
5097 case "${withval}" in
5098 yes) want_mmap=true ;;
5099 no) want_mmap=false ;;
5100 *) { { echo "$as_me:$LINENO: error: bad value ${withval} for BFD with-mmap option" >&5
5101 echo "$as_me: error: bad value ${withval} for BFD with-mmap option" >&2;}
5102 { (exit 1); exit 1; }; } ;;
5103 esac
5104 else
5105 want_mmap=false
5106 fi;
5107 # Check whether --enable-secureplt or --disable-secureplt was given.
5108 if test "${enable_secureplt+set}" = set; then
5109 enableval="$enable_secureplt"
5110 case "${enableval}" in
5111 yes) use_secureplt=true ;;
5112 no) use_secureplt=false ;;
5113 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for secureplt option" >&5
5114 echo "$as_me: error: bad value ${enableval} for secureplt option" >&2;}
5115 { (exit 1); exit 1; }; } ;;
5116 esac
5117 else
5118 use_secureplt=false
5119 fi; if test $use_secureplt = true; then
5120
5121 cat >>confdefs.h <<\_ACEOF
5122 #define USE_SECUREPLT 1
5123 _ACEOF
5124
5125 fi
5126
5127
5128
5129 # Check whether --with-pkgversion or --without-pkgversion was given.
5130 if test "${with_pkgversion+set}" = set; then
5131 withval="$with_pkgversion"
5132 case "$withval" in
5133 yes) { { echo "$as_me:$LINENO: error: package version not specified" >&5
5134 echo "$as_me: error: package version not specified" >&2;}
5135 { (exit 1); exit 1; }; } ;;
5136 no) PKGVERSION= ;;
5137 *) PKGVERSION="($withval) " ;;
5138 esac
5139 else
5140 PKGVERSION="(GNU Binutils) "
5141
5142 fi;
5143
5144
5145
5146
5147 # Check whether --with-bugurl or --without-bugurl was given.
5148 if test "${with_bugurl+set}" = set; then
5149 withval="$with_bugurl"
5150 case "$withval" in
5151 yes) { { echo "$as_me:$LINENO: error: bug URL not specified" >&5
5152 echo "$as_me: error: bug URL not specified" >&2;}
5153 { (exit 1); exit 1; }; } ;;
5154 no) BUGURL=
5155 ;;
5156 *) BUGURL="$withval"
5157 ;;
5158 esac
5159 else
5160 BUGURL="http://www.sourceware.org/bugzilla/"
5161
5162 fi;
5163 case ${BUGURL} in
5164 "")
5165 REPORT_BUGS_TO=
5166 REPORT_BUGS_TEXI=
5167 ;;
5168 *)
5169 REPORT_BUGS_TO="<$BUGURL>"
5170 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
5171 ;;
5172 esac;
5173
5174
5175
5176
5177
5178 GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
5179
5180 # Check whether --enable-werror or --disable-werror was given.
5181 if test "${enable_werror+set}" = set; then
5182 enableval="$enable_werror"
5183 case "${enableval}" in
5184 yes | y) ERROR_ON_WARNING="yes" ;;
5185 no | n) ERROR_ON_WARNING="no" ;;
5186 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
5187 echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
5188 { (exit 1); exit 1; }; } ;;
5189 esac
5190 fi;
5191
5192 # Enable -Werror by default when using gcc
5193 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
5194 ERROR_ON_WARNING=yes
5195 fi
5196
5197 NO_WERROR=
5198 if test "${ERROR_ON_WARNING}" = yes ; then
5199 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
5200 NO_WERROR="-Wno-error"
5201 fi
5202
5203 if test "${GCC}" = yes ; then
5204 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
5205 fi
5206
5207 # Check whether --enable-build-warnings or --disable-build-warnings was given.
5208 if test "${enable_build_warnings+set}" = set; then
5209 enableval="$enable_build_warnings"
5210 case "${enableval}" in
5211 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
5212 no) if test "${GCC}" = yes ; then
5213 WARN_CFLAGS="-w"
5214 fi;;
5215 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
5216 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
5217 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
5218 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
5219 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
5220 esac
5221 fi;
5222
5223 if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
5224 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
5225 fi
5226
5227
5228
5229
5230
5231 ac_config_headers="$ac_config_headers config.h:config.in"
5232
5233
5234 if test -z "$target" ; then
5235 { { echo "$as_me:$LINENO: error: Unrecognized target system type; please check config.sub." >&5
5236 echo "$as_me: error: Unrecognized target system type; please check config.sub." >&2;}
5237 { (exit 1); exit 1; }; }
5238 fi
5239
5240 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
5241 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
5242 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
5243 if test "${enable_maintainer_mode+set}" = set; then
5244 enableval="$enable_maintainer_mode"
5245 USE_MAINTAINER_MODE=$enableval
5246 else
5247 USE_MAINTAINER_MODE=no
5248 fi;
5249 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
5250 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
5251
5252
5253 if test $USE_MAINTAINER_MODE = yes; then
5254 MAINTAINER_MODE_TRUE=
5255 MAINTAINER_MODE_FALSE='#'
5256 else
5257 MAINTAINER_MODE_TRUE='#'
5258 MAINTAINER_MODE_FALSE=
5259 fi
5260
5261 MAINT=$MAINTAINER_MODE_TRUE
5262
5263
5264
5265
5266 if false; then
5267 GENINSRC_NEVER_TRUE=
5268 GENINSRC_NEVER_FALSE='#'
5269 else
5270 GENINSRC_NEVER_TRUE='#'
5271 GENINSRC_NEVER_FALSE=
5272 fi
5273
5274 case ${build_alias} in
5275 "") build_noncanonical=${build} ;;
5276 *) build_noncanonical=${build_alias} ;;
5277 esac
5278
5279 case ${host_alias} in
5280 "") host_noncanonical=${build_noncanonical} ;;
5281 *) host_noncanonical=${host_alias} ;;
5282 esac
5283
5284 case ${target_alias} in
5285 "") target_noncanonical=${host_noncanonical} ;;
5286 *) target_noncanonical=${target_alias} ;;
5287 esac
5288
5289 echo "$as_me:$LINENO: checking whether to install libbfd" >&5
5290 echo $ECHO_N "checking whether to install libbfd... $ECHO_C" >&6
5291 # Check whether --enable-install-libbfd or --disable-install-libbfd was given.
5292 if test "${enable_install_libbfd+set}" = set; then
5293 enableval="$enable_install_libbfd"
5294 install_libbfd_p=$enableval
5295 else
5296 if test "${host}" = "${target}" || test "$enable_shared" = "yes"; then
5297 install_libbfd_p=yes
5298 else
5299 install_libbfd_p=no
5300 fi
5301 fi;
5302 echo "$as_me:$LINENO: result: $install_libbfd_p" >&5
5303 echo "${ECHO_T}$install_libbfd_p" >&6
5304
5305
5306 if test $install_libbfd_p = yes; then
5307 INSTALL_LIBBFD_TRUE=
5308 INSTALL_LIBBFD_FALSE='#'
5309 else
5310 INSTALL_LIBBFD_TRUE='#'
5311 INSTALL_LIBBFD_FALSE=
5312 fi
5313
5314 # Need _noncanonical variables for this.
5315
5316
5317
5318
5319 # libbfd.a is a host library containing target dependent code
5320 bfdlibdir='$(libdir)'
5321 bfdincludedir='$(includedir)'
5322 if test "${host}" != "${target}"; then
5323 bfdlibdir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/lib'
5324 bfdincludedir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/include'
5325 fi
5326
5327
5328
5329
5330
5331
5332 host64=false
5333 target64=false
5334 bfd_default_target_size=32
5335
5336 # host stuff:
5337
5338 ALL_LINGUAS="fr tr ja es sv da zh_CN ro rw vi"
5339 # If we haven't got the data from the intl directory,
5340 # assume NLS is disabled.
5341 USE_NLS=no
5342 LIBINTL=
5343 LIBINTL_DEP=
5344 INCINTL=
5345 XGETTEXT=
5346 GMSGFMT=
5347 POSUB=
5348
5349 if test -f ../intl/config.intl; then
5350 . ../intl/config.intl
5351 fi
5352 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
5353 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
5354 if test x"$USE_NLS" != xyes; then
5355 echo "$as_me:$LINENO: result: no" >&5
5356 echo "${ECHO_T}no" >&6
5357 else
5358 echo "$as_me:$LINENO: result: yes" >&5
5359 echo "${ECHO_T}yes" >&6
5360
5361 cat >>confdefs.h <<\_ACEOF
5362 #define ENABLE_NLS 1
5363 _ACEOF
5364
5365
5366 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
5367 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
5368 # Look for .po and .gmo files in the source directory.
5369 CATALOGS=
5370 XLINGUAS=
5371 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
5372 # If there aren't any .gmo files the shell will give us the
5373 # literal string "../path/to/srcdir/po/*.gmo" which has to be
5374 # weeded out.
5375 case "$cat" in *\**)
5376 continue;;
5377 esac
5378 # The quadruple backslash is collapsed to a double backslash
5379 # by the backticks, then collapsed again by the double quotes,
5380 # leaving us with one backslash in the sed expression (right
5381 # before the dot that mustn't act as a wildcard).
5382 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
5383 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
5384 # The user is allowed to set LINGUAS to a list of languages to
5385 # install catalogs for. If it's empty that means "all of them."
5386 if test "x$LINGUAS" = x; then
5387 CATALOGS="$CATALOGS $cat"
5388 XLINGUAS="$XLINGUAS $lang"
5389 else
5390 case "$LINGUAS" in *$lang*)
5391 CATALOGS="$CATALOGS $cat"
5392 XLINGUAS="$XLINGUAS $lang"
5393 ;;
5394 esac
5395 fi
5396 done
5397 LINGUAS="$XLINGUAS"
5398 echo "$as_me:$LINENO: result: $LINGUAS" >&5
5399 echo "${ECHO_T}$LINGUAS" >&6
5400
5401
5402 DATADIRNAME=share
5403
5404 INSTOBJEXT=.mo
5405
5406 GENCAT=gencat
5407
5408 CATOBJEXT=.gmo
5409
5410 fi
5411
5412 MKINSTALLDIRS=
5413 if test -n "$ac_aux_dir"; then
5414 case "$ac_aux_dir" in
5415 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
5416 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
5417 esac
5418 fi
5419 if test -z "$MKINSTALLDIRS"; then
5420 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
5421 fi
5422
5423
5424
5425 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
5426 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
5427 # Check whether --enable-nls or --disable-nls was given.
5428 if test "${enable_nls+set}" = set; then
5429 enableval="$enable_nls"
5430 USE_NLS=$enableval
5431 else
5432 USE_NLS=yes
5433 fi;
5434 echo "$as_me:$LINENO: result: $USE_NLS" >&5
5435 echo "${ECHO_T}$USE_NLS" >&6
5436
5437
5438
5439
5440
5441
5442 # Prepare PATH_SEPARATOR.
5443 # The user is always right.
5444 if test "${PATH_SEPARATOR+set}" != set; then
5445 echo "#! /bin/sh" >conf$$.sh
5446 echo "exit 0" >>conf$$.sh
5447 chmod +x conf$$.sh
5448 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5449 PATH_SEPARATOR=';'
5450 else
5451 PATH_SEPARATOR=:
5452 fi
5453 rm -f conf$$.sh
5454 fi
5455
5456 # Find out how to test for executable files. Don't use a zero-byte file,
5457 # as systems may use methods other than mode bits to determine executability.
5458 cat >conf$$.file <<_ASEOF
5459 #! /bin/sh
5460 exit 0
5461 _ASEOF
5462 chmod +x conf$$.file
5463 if test -x conf$$.file >/dev/null 2>&1; then
5464 ac_executable_p="test -x"
5465 else
5466 ac_executable_p="test -f"
5467 fi
5468 rm -f conf$$.file
5469
5470 # Extract the first word of "msgfmt", so it can be a program name with args.
5471 set dummy msgfmt; ac_word=$2
5472 echo "$as_me:$LINENO: checking for $ac_word" >&5
5473 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5474 if test "${ac_cv_path_MSGFMT+set}" = set; then
5475 echo $ECHO_N "(cached) $ECHO_C" >&6
5476 else
5477 case "$MSGFMT" in
5478 [\\/]* | ?:[\\/]*)
5479 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5480 ;;
5481 *)
5482 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5483 for ac_dir in $PATH; do
5484 IFS="$ac_save_IFS"
5485 test -z "$ac_dir" && ac_dir=.
5486 for ac_exec_ext in '' $ac_executable_extensions; do
5487 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5488 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
5489 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5490 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
5491 break 2
5492 fi
5493 fi
5494 done
5495 done
5496 IFS="$ac_save_IFS"
5497 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
5498 ;;
5499 esac
5500 fi
5501 MSGFMT="$ac_cv_path_MSGFMT"
5502 if test "$MSGFMT" != ":"; then
5503 echo "$as_me:$LINENO: result: $MSGFMT" >&5
5504 echo "${ECHO_T}$MSGFMT" >&6
5505 else
5506 echo "$as_me:$LINENO: result: no" >&5
5507 echo "${ECHO_T}no" >&6
5508 fi
5509
5510 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5511 set dummy gmsgfmt; ac_word=$2
5512 echo "$as_me:$LINENO: checking for $ac_word" >&5
5513 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5514 if test "${ac_cv_path_GMSGFMT+set}" = set; then
5515 echo $ECHO_N "(cached) $ECHO_C" >&6
5516 else
5517 case $GMSGFMT in
5518 [\\/]* | ?:[\\/]*)
5519 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5520 ;;
5521 *)
5522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5523 for as_dir in $PATH
5524 do
5525 IFS=$as_save_IFS
5526 test -z "$as_dir" && as_dir=.
5527 for ac_exec_ext in '' $ac_executable_extensions; do
5528 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5529 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5530 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5531 break 2
5532 fi
5533 done
5534 done
5535
5536 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5537 ;;
5538 esac
5539 fi
5540 GMSGFMT=$ac_cv_path_GMSGFMT
5541
5542 if test -n "$GMSGFMT"; then
5543 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
5544 echo "${ECHO_T}$GMSGFMT" >&6
5545 else
5546 echo "$as_me:$LINENO: result: no" >&5
5547 echo "${ECHO_T}no" >&6
5548 fi
5549
5550
5551
5552 # Prepare PATH_SEPARATOR.
5553 # The user is always right.
5554 if test "${PATH_SEPARATOR+set}" != set; then
5555 echo "#! /bin/sh" >conf$$.sh
5556 echo "exit 0" >>conf$$.sh
5557 chmod +x conf$$.sh
5558 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5559 PATH_SEPARATOR=';'
5560 else
5561 PATH_SEPARATOR=:
5562 fi
5563 rm -f conf$$.sh
5564 fi
5565
5566 # Find out how to test for executable files. Don't use a zero-byte file,
5567 # as systems may use methods other than mode bits to determine executability.
5568 cat >conf$$.file <<_ASEOF
5569 #! /bin/sh
5570 exit 0
5571 _ASEOF
5572 chmod +x conf$$.file
5573 if test -x conf$$.file >/dev/null 2>&1; then
5574 ac_executable_p="test -x"
5575 else
5576 ac_executable_p="test -f"
5577 fi
5578 rm -f conf$$.file
5579
5580 # Extract the first word of "xgettext", so it can be a program name with args.
5581 set dummy xgettext; ac_word=$2
5582 echo "$as_me:$LINENO: checking for $ac_word" >&5
5583 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5584 if test "${ac_cv_path_XGETTEXT+set}" = set; then
5585 echo $ECHO_N "(cached) $ECHO_C" >&6
5586 else
5587 case "$XGETTEXT" in
5588 [\\/]* | ?:[\\/]*)
5589 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5590 ;;
5591 *)
5592 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5593 for ac_dir in $PATH; do
5594 IFS="$ac_save_IFS"
5595 test -z "$ac_dir" && ac_dir=.
5596 for ac_exec_ext in '' $ac_executable_extensions; do
5597 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5598 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
5599 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5600 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
5601 break 2
5602 fi
5603 fi
5604 done
5605 done
5606 IFS="$ac_save_IFS"
5607 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5608 ;;
5609 esac
5610 fi
5611 XGETTEXT="$ac_cv_path_XGETTEXT"
5612 if test "$XGETTEXT" != ":"; then
5613 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
5614 echo "${ECHO_T}$XGETTEXT" >&6
5615 else
5616 echo "$as_me:$LINENO: result: no" >&5
5617 echo "${ECHO_T}no" >&6
5618 fi
5619
5620 rm -f messages.po
5621
5622
5623 # Prepare PATH_SEPARATOR.
5624 # The user is always right.
5625 if test "${PATH_SEPARATOR+set}" != set; then
5626 echo "#! /bin/sh" >conf$$.sh
5627 echo "exit 0" >>conf$$.sh
5628 chmod +x conf$$.sh
5629 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5630 PATH_SEPARATOR=';'
5631 else
5632 PATH_SEPARATOR=:
5633 fi
5634 rm -f conf$$.sh
5635 fi
5636
5637 # Find out how to test for executable files. Don't use a zero-byte file,
5638 # as systems may use methods other than mode bits to determine executability.
5639 cat >conf$$.file <<_ASEOF
5640 #! /bin/sh
5641 exit 0
5642 _ASEOF
5643 chmod +x conf$$.file
5644 if test -x conf$$.file >/dev/null 2>&1; then
5645 ac_executable_p="test -x"
5646 else
5647 ac_executable_p="test -f"
5648 fi
5649 rm -f conf$$.file
5650
5651 # Extract the first word of "msgmerge", so it can be a program name with args.
5652 set dummy msgmerge; ac_word=$2
5653 echo "$as_me:$LINENO: checking for $ac_word" >&5
5654 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5655 if test "${ac_cv_path_MSGMERGE+set}" = set; then
5656 echo $ECHO_N "(cached) $ECHO_C" >&6
5657 else
5658 case "$MSGMERGE" in
5659 [\\/]* | ?:[\\/]*)
5660 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
5661 ;;
5662 *)
5663 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5664 for ac_dir in $PATH; do
5665 IFS="$ac_save_IFS"
5666 test -z "$ac_dir" && ac_dir=.
5667 for ac_exec_ext in '' $ac_executable_extensions; do
5668 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5669 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
5670 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
5671 break 2
5672 fi
5673 fi
5674 done
5675 done
5676 IFS="$ac_save_IFS"
5677 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
5678 ;;
5679 esac
5680 fi
5681 MSGMERGE="$ac_cv_path_MSGMERGE"
5682 if test "$MSGMERGE" != ":"; then
5683 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
5684 echo "${ECHO_T}$MSGMERGE" >&6
5685 else
5686 echo "$as_me:$LINENO: result: no" >&5
5687 echo "${ECHO_T}no" >&6
5688 fi
5689
5690
5691 if test "$GMSGFMT" != ":"; then
5692 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
5693 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5694 : ;
5695 else
5696 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
5697 echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
5698 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
5699 GMSGFMT=":"
5700 fi
5701 fi
5702
5703 if test "$XGETTEXT" != ":"; then
5704 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
5705 (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5706 : ;
5707 else
5708 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
5709 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
5710 XGETTEXT=":"
5711 fi
5712 rm -f messages.po
5713 fi
5714
5715 ac_config_commands="$ac_config_commands default-1"
5716
5717
5718
5719 # Permit host specific settings.
5720 . ${srcdir}/configure.host
5721
5722
5723 # Find a good install program. We prefer a C program (faster),
5724 # so one script is as good as another. But avoid the broken or
5725 # incompatible versions:
5726 # SysV /etc/install, /usr/sbin/install
5727 # SunOS /usr/etc/install
5728 # IRIX /sbin/install
5729 # AIX /bin/install
5730 # AmigaOS /C/install, which installs bootblocks on floppy discs
5731 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5732 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5733 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5734 # OS/2's system install, which has a completely different semantic
5735 # ./install, which can be erroneously created by make from ./install.sh.
5736 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5737 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
5738 if test -z "$INSTALL"; then
5739 if test "${ac_cv_path_install+set}" = set; then
5740 echo $ECHO_N "(cached) $ECHO_C" >&6
5741 else
5742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5743 for as_dir in $PATH
5744 do
5745 IFS=$as_save_IFS
5746 test -z "$as_dir" && as_dir=.
5747 # Account for people who put trailing slashes in PATH elements.
5748 case $as_dir/ in
5749 ./ | .// | /cC/* | \
5750 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5751 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5752 /usr/ucb/* ) ;;
5753 *)
5754 # OSF1 and SCO ODT 3.0 have their own names for install.
5755 # Don't use installbsd from OSF since it installs stuff as root
5756 # by default.
5757 for ac_prog in ginstall scoinst install; do
5758 for ac_exec_ext in '' $ac_executable_extensions; do
5759 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5760 if test $ac_prog = install &&
5761 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5762 # AIX install. It has an incompatible calling convention.
5763 :
5764 elif test $ac_prog = install &&
5765 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5766 # program-specific install script used by HP pwplus--don't use.
5767 :
5768 else
5769 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5770 break 3
5771 fi
5772 fi
5773 done
5774 done
5775 ;;
5776 esac
5777 done
5778
5779
5780 fi
5781 if test "${ac_cv_path_install+set}" = set; then
5782 INSTALL=$ac_cv_path_install
5783 else
5784 # As a last resort, use the slow shell script. We don't cache a
5785 # path for INSTALL within a source directory, because that will
5786 # break other packages using the cache if that directory is
5787 # removed, or if the path is relative.
5788 INSTALL=$ac_install_sh
5789 fi
5790 fi
5791 echo "$as_me:$LINENO: result: $INSTALL" >&5
5792 echo "${ECHO_T}$INSTALL" >&6
5793
5794 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5795 # It thinks the first close brace ends the variable substitution.
5796 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5797
5798 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5799
5800 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5801
5802
5803 BFD_HOST_64BIT_LONG=0
5804 BFD_HOST_LONG_LONG=0
5805 BFD_HOST_64_BIT_DEFINED=0
5806 BFD_HOST_64_BIT=
5807 BFD_HOST_U_64_BIT=
5808
5809 echo "$as_me:$LINENO: checking for long long" >&5
5810 echo $ECHO_N "checking for long long... $ECHO_C" >&6
5811 if test "${bfd_cv_has_long_long+set}" = set; then
5812 echo $ECHO_N "(cached) $ECHO_C" >&6
5813 else
5814 cat >conftest.$ac_ext <<_ACEOF
5815 /* confdefs.h. */
5816 _ACEOF
5817 cat confdefs.h >>conftest.$ac_ext
5818 cat >>conftest.$ac_ext <<_ACEOF
5819 /* end confdefs.h. */
5820
5821 int
5822 main ()
5823 {
5824 unsigned long long ll = 18446744073709551615ULL;
5825 ;
5826 return 0;
5827 }
5828 _ACEOF
5829 rm -f conftest.$ac_objext
5830 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5831 (eval $ac_compile) 2>conftest.er1
5832 ac_status=$?
5833 grep -v '^ *+' conftest.er1 >conftest.err
5834 rm -f conftest.er1
5835 cat conftest.err >&5
5836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5837 (exit $ac_status); } &&
5838 { ac_try='test -z "$ac_c_werror_flag"
5839 || test ! -s conftest.err'
5840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5841 (eval $ac_try) 2>&5
5842 ac_status=$?
5843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5844 (exit $ac_status); }; } &&
5845 { ac_try='test -s conftest.$ac_objext'
5846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5847 (eval $ac_try) 2>&5
5848 ac_status=$?
5849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5850 (exit $ac_status); }; }; then
5851 bfd_cv_has_long_long=yes
5852 else
5853 echo "$as_me: failed program was:" >&5
5854 sed 's/^/| /' conftest.$ac_ext >&5
5855
5856 bfd_cv_has_long_long=no
5857 fi
5858 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5859 fi
5860
5861 echo "$as_me:$LINENO: result: $bfd_cv_has_long_long" >&5
5862 echo "${ECHO_T}$bfd_cv_has_long_long" >&6
5863 if test $bfd_cv_has_long_long = yes; then
5864 BFD_HOST_LONG_LONG=1
5865 ac_ext=c
5866 ac_cpp='$CPP $CPPFLAGS'
5867 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5868 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5869 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5870 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5871 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5872 # On Suns, sometimes $CPP names a directory.
5873 if test -n "$CPP" && test -d "$CPP"; then
5874 CPP=
5875 fi
5876 if test -z "$CPP"; then
5877 if test "${ac_cv_prog_CPP+set}" = set; then
5878 echo $ECHO_N "(cached) $ECHO_C" >&6
5879 else
5880 # Double quotes because CPP needs to be expanded
5881 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5882 do
5883 ac_preproc_ok=false
5884 for ac_c_preproc_warn_flag in '' yes
5885 do
5886 # Use a header file that comes with gcc, so configuring glibc
5887 # with a fresh cross-compiler works.
5888 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5889 # <limits.h> exists even on freestanding compilers.
5890 # On the NeXT, cc -E runs the code through the compiler's parser,
5891 # not just through cpp. "Syntax error" is here to catch this case.
5892 cat >conftest.$ac_ext <<_ACEOF
5893 /* confdefs.h. */
5894 _ACEOF
5895 cat confdefs.h >>conftest.$ac_ext
5896 cat >>conftest.$ac_ext <<_ACEOF
5897 /* end confdefs.h. */
5898 #ifdef __STDC__
5899 # include <limits.h>
5900 #else
5901 # include <assert.h>
5902 #endif
5903 Syntax error
5904 _ACEOF
5905 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5906 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5907 ac_status=$?
5908 grep -v '^ *+' conftest.er1 >conftest.err
5909 rm -f conftest.er1
5910 cat conftest.err >&5
5911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5912 (exit $ac_status); } >/dev/null; then
5913 if test -s conftest.err; then
5914 ac_cpp_err=$ac_c_preproc_warn_flag
5915 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5916 else
5917 ac_cpp_err=
5918 fi
5919 else
5920 ac_cpp_err=yes
5921 fi
5922 if test -z "$ac_cpp_err"; then
5923 :
5924 else
5925 echo "$as_me: failed program was:" >&5
5926 sed 's/^/| /' conftest.$ac_ext >&5
5927
5928 # Broken: fails on valid input.
5929 continue
5930 fi
5931 rm -f conftest.err conftest.$ac_ext
5932
5933 # OK, works on sane cases. Now check whether non-existent headers
5934 # can be detected and how.
5935 cat >conftest.$ac_ext <<_ACEOF
5936 /* confdefs.h. */
5937 _ACEOF
5938 cat confdefs.h >>conftest.$ac_ext
5939 cat >>conftest.$ac_ext <<_ACEOF
5940 /* end confdefs.h. */
5941 #include <ac_nonexistent.h>
5942 _ACEOF
5943 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5944 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5945 ac_status=$?
5946 grep -v '^ *+' conftest.er1 >conftest.err
5947 rm -f conftest.er1
5948 cat conftest.err >&5
5949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5950 (exit $ac_status); } >/dev/null; then
5951 if test -s conftest.err; then
5952 ac_cpp_err=$ac_c_preproc_warn_flag
5953 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5954 else
5955 ac_cpp_err=
5956 fi
5957 else
5958 ac_cpp_err=yes
5959 fi
5960 if test -z "$ac_cpp_err"; then
5961 # Broken: success on invalid input.
5962 continue
5963 else
5964 echo "$as_me: failed program was:" >&5
5965 sed 's/^/| /' conftest.$ac_ext >&5
5966
5967 # Passes both tests.
5968 ac_preproc_ok=:
5969 break
5970 fi
5971 rm -f conftest.err conftest.$ac_ext
5972
5973 done
5974 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5975 rm -f conftest.err conftest.$ac_ext
5976 if $ac_preproc_ok; then
5977 break
5978 fi
5979
5980 done
5981 ac_cv_prog_CPP=$CPP
5982
5983 fi
5984 CPP=$ac_cv_prog_CPP
5985 else
5986 ac_cv_prog_CPP=$CPP
5987 fi
5988 echo "$as_me:$LINENO: result: $CPP" >&5
5989 echo "${ECHO_T}$CPP" >&6
5990 ac_preproc_ok=false
5991 for ac_c_preproc_warn_flag in '' yes
5992 do
5993 # Use a header file that comes with gcc, so configuring glibc
5994 # with a fresh cross-compiler works.
5995 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5996 # <limits.h> exists even on freestanding compilers.
5997 # On the NeXT, cc -E runs the code through the compiler's parser,
5998 # not just through cpp. "Syntax error" is here to catch this case.
5999 cat >conftest.$ac_ext <<_ACEOF
6000 /* confdefs.h. */
6001 _ACEOF
6002 cat confdefs.h >>conftest.$ac_ext
6003 cat >>conftest.$ac_ext <<_ACEOF
6004 /* end confdefs.h. */
6005 #ifdef __STDC__
6006 # include <limits.h>
6007 #else
6008 # include <assert.h>
6009 #endif
6010 Syntax error
6011 _ACEOF
6012 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6013 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6014 ac_status=$?
6015 grep -v '^ *+' conftest.er1 >conftest.err
6016 rm -f conftest.er1
6017 cat conftest.err >&5
6018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6019 (exit $ac_status); } >/dev/null; then
6020 if test -s conftest.err; then
6021 ac_cpp_err=$ac_c_preproc_warn_flag
6022 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6023 else
6024 ac_cpp_err=
6025 fi
6026 else
6027 ac_cpp_err=yes
6028 fi
6029 if test -z "$ac_cpp_err"; then
6030 :
6031 else
6032 echo "$as_me: failed program was:" >&5
6033 sed 's/^/| /' conftest.$ac_ext >&5
6034
6035 # Broken: fails on valid input.
6036 continue
6037 fi
6038 rm -f conftest.err conftest.$ac_ext
6039
6040 # OK, works on sane cases. Now check whether non-existent headers
6041 # can be detected and how.
6042 cat >conftest.$ac_ext <<_ACEOF
6043 /* confdefs.h. */
6044 _ACEOF
6045 cat confdefs.h >>conftest.$ac_ext
6046 cat >>conftest.$ac_ext <<_ACEOF
6047 /* end confdefs.h. */
6048 #include <ac_nonexistent.h>
6049 _ACEOF
6050 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6051 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6052 ac_status=$?
6053 grep -v '^ *+' conftest.er1 >conftest.err
6054 rm -f conftest.er1
6055 cat conftest.err >&5
6056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6057 (exit $ac_status); } >/dev/null; then
6058 if test -s conftest.err; then
6059 ac_cpp_err=$ac_c_preproc_warn_flag
6060 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6061 else
6062 ac_cpp_err=
6063 fi
6064 else
6065 ac_cpp_err=yes
6066 fi
6067 if test -z "$ac_cpp_err"; then
6068 # Broken: success on invalid input.
6069 continue
6070 else
6071 echo "$as_me: failed program was:" >&5
6072 sed 's/^/| /' conftest.$ac_ext >&5
6073
6074 # Passes both tests.
6075 ac_preproc_ok=:
6076 break
6077 fi
6078 rm -f conftest.err conftest.$ac_ext
6079
6080 done
6081 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6082 rm -f conftest.err conftest.$ac_ext
6083 if $ac_preproc_ok; then
6084 :
6085 else
6086 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6087 See \`config.log' for more details." >&5
6088 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6089 See \`config.log' for more details." >&2;}
6090 { (exit 1); exit 1; }; }
6091 fi
6092
6093 ac_ext=c
6094 ac_cpp='$CPP $CPPFLAGS'
6095 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6096 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6097 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6098
6099
6100 echo "$as_me:$LINENO: checking for egrep" >&5
6101 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
6102 if test "${ac_cv_prog_egrep+set}" = set; then
6103 echo $ECHO_N "(cached) $ECHO_C" >&6
6104 else
6105 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
6106 then ac_cv_prog_egrep='grep -E'
6107 else ac_cv_prog_egrep='egrep'
6108 fi
6109 fi
6110 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
6111 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
6112 EGREP=$ac_cv_prog_egrep
6113
6114
6115 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6116 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6117 if test "${ac_cv_header_stdc+set}" = set; then
6118 echo $ECHO_N "(cached) $ECHO_C" >&6
6119 else
6120 cat >conftest.$ac_ext <<_ACEOF
6121 /* confdefs.h. */
6122 _ACEOF
6123 cat confdefs.h >>conftest.$ac_ext
6124 cat >>conftest.$ac_ext <<_ACEOF
6125 /* end confdefs.h. */
6126 #include <stdlib.h>
6127 #include <stdarg.h>
6128 #include <string.h>
6129 #include <float.h>
6130
6131 int
6132 main ()
6133 {
6134
6135 ;
6136 return 0;
6137 }
6138 _ACEOF
6139 rm -f conftest.$ac_objext
6140 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6141 (eval $ac_compile) 2>conftest.er1
6142 ac_status=$?
6143 grep -v '^ *+' conftest.er1 >conftest.err
6144 rm -f conftest.er1
6145 cat conftest.err >&5
6146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6147 (exit $ac_status); } &&
6148 { ac_try='test -z "$ac_c_werror_flag"
6149 || test ! -s conftest.err'
6150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6151 (eval $ac_try) 2>&5
6152 ac_status=$?
6153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6154 (exit $ac_status); }; } &&
6155 { ac_try='test -s conftest.$ac_objext'
6156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6157 (eval $ac_try) 2>&5
6158 ac_status=$?
6159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6160 (exit $ac_status); }; }; then
6161 ac_cv_header_stdc=yes
6162 else
6163 echo "$as_me: failed program was:" >&5
6164 sed 's/^/| /' conftest.$ac_ext >&5
6165
6166 ac_cv_header_stdc=no
6167 fi
6168 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6169
6170 if test $ac_cv_header_stdc = yes; then
6171 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6172 cat >conftest.$ac_ext <<_ACEOF
6173 /* confdefs.h. */
6174 _ACEOF
6175 cat confdefs.h >>conftest.$ac_ext
6176 cat >>conftest.$ac_ext <<_ACEOF
6177 /* end confdefs.h. */
6178 #include <string.h>
6179
6180 _ACEOF
6181 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6182 $EGREP "memchr" >/dev/null 2>&1; then
6183 :
6184 else
6185 ac_cv_header_stdc=no
6186 fi
6187 rm -f conftest*
6188
6189 fi
6190
6191 if test $ac_cv_header_stdc = yes; then
6192 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6193 cat >conftest.$ac_ext <<_ACEOF
6194 /* confdefs.h. */
6195 _ACEOF
6196 cat confdefs.h >>conftest.$ac_ext
6197 cat >>conftest.$ac_ext <<_ACEOF
6198 /* end confdefs.h. */
6199 #include <stdlib.h>
6200
6201 _ACEOF
6202 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6203 $EGREP "free" >/dev/null 2>&1; then
6204 :
6205 else
6206 ac_cv_header_stdc=no
6207 fi
6208 rm -f conftest*
6209
6210 fi
6211
6212 if test $ac_cv_header_stdc = yes; then
6213 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6214 if test "$cross_compiling" = yes; then
6215 :
6216 else
6217 cat >conftest.$ac_ext <<_ACEOF
6218 /* confdefs.h. */
6219 _ACEOF
6220 cat confdefs.h >>conftest.$ac_ext
6221 cat >>conftest.$ac_ext <<_ACEOF
6222 /* end confdefs.h. */
6223 #include <ctype.h>
6224 #if ((' ' & 0x0FF) == 0x020)
6225 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6226 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6227 #else
6228 # define ISLOWER(c) \
6229 (('a' <= (c) && (c) <= 'i') \
6230 || ('j' <= (c) && (c) <= 'r') \
6231 || ('s' <= (c) && (c) <= 'z'))
6232 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6233 #endif
6234
6235 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6236 int
6237 main ()
6238 {
6239 int i;
6240 for (i = 0; i < 256; i++)
6241 if (XOR (islower (i), ISLOWER (i))
6242 || toupper (i) != TOUPPER (i))
6243 exit(2);
6244 exit (0);
6245 }
6246 _ACEOF
6247 rm -f conftest$ac_exeext
6248 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6249 (eval $ac_link) 2>&5
6250 ac_status=$?
6251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6252 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6254 (eval $ac_try) 2>&5
6255 ac_status=$?
6256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6257 (exit $ac_status); }; }; then
6258 :
6259 else
6260 echo "$as_me: program exited with status $ac_status" >&5
6261 echo "$as_me: failed program was:" >&5
6262 sed 's/^/| /' conftest.$ac_ext >&5
6263
6264 ( exit $ac_status )
6265 ac_cv_header_stdc=no
6266 fi
6267 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6268 fi
6269 fi
6270 fi
6271 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6272 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6273 if test $ac_cv_header_stdc = yes; then
6274
6275 cat >>confdefs.h <<\_ACEOF
6276 #define STDC_HEADERS 1
6277 _ACEOF
6278
6279 fi
6280
6281 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6282
6283
6284
6285
6286
6287
6288
6289
6290
6291 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6292 inttypes.h stdint.h unistd.h
6293 do
6294 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6295 echo "$as_me:$LINENO: checking for $ac_header" >&5
6296 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6297 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6298 echo $ECHO_N "(cached) $ECHO_C" >&6
6299 else
6300 cat >conftest.$ac_ext <<_ACEOF
6301 /* confdefs.h. */
6302 _ACEOF
6303 cat confdefs.h >>conftest.$ac_ext
6304 cat >>conftest.$ac_ext <<_ACEOF
6305 /* end confdefs.h. */
6306 $ac_includes_default
6307
6308 #include <$ac_header>
6309 _ACEOF
6310 rm -f conftest.$ac_objext
6311 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6312 (eval $ac_compile) 2>conftest.er1
6313 ac_status=$?
6314 grep -v '^ *+' conftest.er1 >conftest.err
6315 rm -f conftest.er1
6316 cat conftest.err >&5
6317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6318 (exit $ac_status); } &&
6319 { ac_try='test -z "$ac_c_werror_flag"
6320 || test ! -s conftest.err'
6321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6322 (eval $ac_try) 2>&5
6323 ac_status=$?
6324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6325 (exit $ac_status); }; } &&
6326 { ac_try='test -s conftest.$ac_objext'
6327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6328 (eval $ac_try) 2>&5
6329 ac_status=$?
6330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6331 (exit $ac_status); }; }; then
6332 eval "$as_ac_Header=yes"
6333 else
6334 echo "$as_me: failed program was:" >&5
6335 sed 's/^/| /' conftest.$ac_ext >&5
6336
6337 eval "$as_ac_Header=no"
6338 fi
6339 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6340 fi
6341 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6342 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6343 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6344 cat >>confdefs.h <<_ACEOF
6345 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6346 _ACEOF
6347
6348 fi
6349
6350 done
6351
6352
6353 echo "$as_me:$LINENO: checking for long long" >&5
6354 echo $ECHO_N "checking for long long... $ECHO_C" >&6
6355 if test "${ac_cv_type_long_long+set}" = set; then
6356 echo $ECHO_N "(cached) $ECHO_C" >&6
6357 else
6358 cat >conftest.$ac_ext <<_ACEOF
6359 /* confdefs.h. */
6360 _ACEOF
6361 cat confdefs.h >>conftest.$ac_ext
6362 cat >>conftest.$ac_ext <<_ACEOF
6363 /* end confdefs.h. */
6364 $ac_includes_default
6365 int
6366 main ()
6367 {
6368 if ((long long *) 0)
6369 return 0;
6370 if (sizeof (long long))
6371 return 0;
6372 ;
6373 return 0;
6374 }
6375 _ACEOF
6376 rm -f conftest.$ac_objext
6377 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6378 (eval $ac_compile) 2>conftest.er1
6379 ac_status=$?
6380 grep -v '^ *+' conftest.er1 >conftest.err
6381 rm -f conftest.er1
6382 cat conftest.err >&5
6383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6384 (exit $ac_status); } &&
6385 { ac_try='test -z "$ac_c_werror_flag"
6386 || test ! -s conftest.err'
6387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6388 (eval $ac_try) 2>&5
6389 ac_status=$?
6390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6391 (exit $ac_status); }; } &&
6392 { ac_try='test -s conftest.$ac_objext'
6393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6394 (eval $ac_try) 2>&5
6395 ac_status=$?
6396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6397 (exit $ac_status); }; }; then
6398 ac_cv_type_long_long=yes
6399 else
6400 echo "$as_me: failed program was:" >&5
6401 sed 's/^/| /' conftest.$ac_ext >&5
6402
6403 ac_cv_type_long_long=no
6404 fi
6405 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6406 fi
6407 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
6408 echo "${ECHO_T}$ac_cv_type_long_long" >&6
6409
6410 echo "$as_me:$LINENO: checking size of long long" >&5
6411 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
6412 if test "${ac_cv_sizeof_long_long+set}" = set; then
6413 echo $ECHO_N "(cached) $ECHO_C" >&6
6414 else
6415 if test "$ac_cv_type_long_long" = yes; then
6416 # The cast to unsigned long works around a bug in the HP C Compiler
6417 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6418 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6419 # This bug is HP SR number 8606223364.
6420 if test "$cross_compiling" = yes; then
6421 # Depending upon the size, compute the lo and hi bounds.
6422 cat >conftest.$ac_ext <<_ACEOF
6423 /* confdefs.h. */
6424 _ACEOF
6425 cat confdefs.h >>conftest.$ac_ext
6426 cat >>conftest.$ac_ext <<_ACEOF
6427 /* end confdefs.h. */
6428 $ac_includes_default
6429 int
6430 main ()
6431 {
6432 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
6433 test_array [0] = 0
6434
6435 ;
6436 return 0;
6437 }
6438 _ACEOF
6439 rm -f conftest.$ac_objext
6440 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6441 (eval $ac_compile) 2>conftest.er1
6442 ac_status=$?
6443 grep -v '^ *+' conftest.er1 >conftest.err
6444 rm -f conftest.er1
6445 cat conftest.err >&5
6446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6447 (exit $ac_status); } &&
6448 { ac_try='test -z "$ac_c_werror_flag"
6449 || test ! -s conftest.err'
6450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6451 (eval $ac_try) 2>&5
6452 ac_status=$?
6453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6454 (exit $ac_status); }; } &&
6455 { ac_try='test -s conftest.$ac_objext'
6456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6457 (eval $ac_try) 2>&5
6458 ac_status=$?
6459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6460 (exit $ac_status); }; }; then
6461 ac_lo=0 ac_mid=0
6462 while :; do
6463 cat >conftest.$ac_ext <<_ACEOF
6464 /* confdefs.h. */
6465 _ACEOF
6466 cat confdefs.h >>conftest.$ac_ext
6467 cat >>conftest.$ac_ext <<_ACEOF
6468 /* end confdefs.h. */
6469 $ac_includes_default
6470 int
6471 main ()
6472 {
6473 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
6474 test_array [0] = 0
6475
6476 ;
6477 return 0;
6478 }
6479 _ACEOF
6480 rm -f conftest.$ac_objext
6481 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6482 (eval $ac_compile) 2>conftest.er1
6483 ac_status=$?
6484 grep -v '^ *+' conftest.er1 >conftest.err
6485 rm -f conftest.er1
6486 cat conftest.err >&5
6487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6488 (exit $ac_status); } &&
6489 { ac_try='test -z "$ac_c_werror_flag"
6490 || test ! -s conftest.err'
6491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6492 (eval $ac_try) 2>&5
6493 ac_status=$?
6494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6495 (exit $ac_status); }; } &&
6496 { ac_try='test -s conftest.$ac_objext'
6497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6498 (eval $ac_try) 2>&5
6499 ac_status=$?
6500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6501 (exit $ac_status); }; }; then
6502 ac_hi=$ac_mid; break
6503 else
6504 echo "$as_me: failed program was:" >&5
6505 sed 's/^/| /' conftest.$ac_ext >&5
6506
6507 ac_lo=`expr $ac_mid + 1`
6508 if test $ac_lo -le $ac_mid; then
6509 ac_lo= ac_hi=
6510 break
6511 fi
6512 ac_mid=`expr 2 '*' $ac_mid + 1`
6513 fi
6514 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6515 done
6516 else
6517 echo "$as_me: failed program was:" >&5
6518 sed 's/^/| /' conftest.$ac_ext >&5
6519
6520 cat >conftest.$ac_ext <<_ACEOF
6521 /* confdefs.h. */
6522 _ACEOF
6523 cat confdefs.h >>conftest.$ac_ext
6524 cat >>conftest.$ac_ext <<_ACEOF
6525 /* end confdefs.h. */
6526 $ac_includes_default
6527 int
6528 main ()
6529 {
6530 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
6531 test_array [0] = 0
6532
6533 ;
6534 return 0;
6535 }
6536 _ACEOF
6537 rm -f conftest.$ac_objext
6538 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6539 (eval $ac_compile) 2>conftest.er1
6540 ac_status=$?
6541 grep -v '^ *+' conftest.er1 >conftest.err
6542 rm -f conftest.er1
6543 cat conftest.err >&5
6544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6545 (exit $ac_status); } &&
6546 { ac_try='test -z "$ac_c_werror_flag"
6547 || test ! -s conftest.err'
6548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6549 (eval $ac_try) 2>&5
6550 ac_status=$?
6551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6552 (exit $ac_status); }; } &&
6553 { ac_try='test -s conftest.$ac_objext'
6554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6555 (eval $ac_try) 2>&5
6556 ac_status=$?
6557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6558 (exit $ac_status); }; }; then
6559 ac_hi=-1 ac_mid=-1
6560 while :; do
6561 cat >conftest.$ac_ext <<_ACEOF
6562 /* confdefs.h. */
6563 _ACEOF
6564 cat confdefs.h >>conftest.$ac_ext
6565 cat >>conftest.$ac_ext <<_ACEOF
6566 /* end confdefs.h. */
6567 $ac_includes_default
6568 int
6569 main ()
6570 {
6571 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
6572 test_array [0] = 0
6573
6574 ;
6575 return 0;
6576 }
6577 _ACEOF
6578 rm -f conftest.$ac_objext
6579 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6580 (eval $ac_compile) 2>conftest.er1
6581 ac_status=$?
6582 grep -v '^ *+' conftest.er1 >conftest.err
6583 rm -f conftest.er1
6584 cat conftest.err >&5
6585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6586 (exit $ac_status); } &&
6587 { ac_try='test -z "$ac_c_werror_flag"
6588 || test ! -s conftest.err'
6589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6590 (eval $ac_try) 2>&5
6591 ac_status=$?
6592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6593 (exit $ac_status); }; } &&
6594 { ac_try='test -s conftest.$ac_objext'
6595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6596 (eval $ac_try) 2>&5
6597 ac_status=$?
6598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6599 (exit $ac_status); }; }; then
6600 ac_lo=$ac_mid; break
6601 else
6602 echo "$as_me: failed program was:" >&5
6603 sed 's/^/| /' conftest.$ac_ext >&5
6604
6605 ac_hi=`expr '(' $ac_mid ')' - 1`
6606 if test $ac_mid -le $ac_hi; then
6607 ac_lo= ac_hi=
6608 break
6609 fi
6610 ac_mid=`expr 2 '*' $ac_mid`
6611 fi
6612 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6613 done
6614 else
6615 echo "$as_me: failed program was:" >&5
6616 sed 's/^/| /' conftest.$ac_ext >&5
6617
6618 ac_lo= ac_hi=
6619 fi
6620 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6621 fi
6622 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6623 # Binary search between lo and hi bounds.
6624 while test "x$ac_lo" != "x$ac_hi"; do
6625 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6626 cat >conftest.$ac_ext <<_ACEOF
6627 /* confdefs.h. */
6628 _ACEOF
6629 cat confdefs.h >>conftest.$ac_ext
6630 cat >>conftest.$ac_ext <<_ACEOF
6631 /* end confdefs.h. */
6632 $ac_includes_default
6633 int
6634 main ()
6635 {
6636 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
6637 test_array [0] = 0
6638
6639 ;
6640 return 0;
6641 }
6642 _ACEOF
6643 rm -f conftest.$ac_objext
6644 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6645 (eval $ac_compile) 2>conftest.er1
6646 ac_status=$?
6647 grep -v '^ *+' conftest.er1 >conftest.err
6648 rm -f conftest.er1
6649 cat conftest.err >&5
6650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6651 (exit $ac_status); } &&
6652 { ac_try='test -z "$ac_c_werror_flag"
6653 || test ! -s conftest.err'
6654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6655 (eval $ac_try) 2>&5
6656 ac_status=$?
6657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6658 (exit $ac_status); }; } &&
6659 { ac_try='test -s conftest.$ac_objext'
6660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6661 (eval $ac_try) 2>&5
6662 ac_status=$?
6663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6664 (exit $ac_status); }; }; then
6665 ac_hi=$ac_mid
6666 else
6667 echo "$as_me: failed program was:" >&5
6668 sed 's/^/| /' conftest.$ac_ext >&5
6669
6670 ac_lo=`expr '(' $ac_mid ')' + 1`
6671 fi
6672 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6673 done
6674 case $ac_lo in
6675 ?*) ac_cv_sizeof_long_long=$ac_lo;;
6676 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
6677 See \`config.log' for more details." >&5
6678 echo "$as_me: error: cannot compute sizeof (long long), 77
6679 See \`config.log' for more details." >&2;}
6680 { (exit 1); exit 1; }; } ;;
6681 esac
6682 else
6683 if test "$cross_compiling" = yes; then
6684 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6685 See \`config.log' for more details." >&5
6686 echo "$as_me: error: cannot run test program while cross compiling
6687 See \`config.log' for more details." >&2;}
6688 { (exit 1); exit 1; }; }
6689 else
6690 cat >conftest.$ac_ext <<_ACEOF
6691 /* confdefs.h. */
6692 _ACEOF
6693 cat confdefs.h >>conftest.$ac_ext
6694 cat >>conftest.$ac_ext <<_ACEOF
6695 /* end confdefs.h. */
6696 $ac_includes_default
6697 long longval () { return (long) (sizeof (long long)); }
6698 unsigned long ulongval () { return (long) (sizeof (long long)); }
6699 #include <stdio.h>
6700 #include <stdlib.h>
6701 int
6702 main ()
6703 {
6704
6705 FILE *f = fopen ("conftest.val", "w");
6706 if (! f)
6707 exit (1);
6708 if (((long) (sizeof (long long))) < 0)
6709 {
6710 long i = longval ();
6711 if (i != ((long) (sizeof (long long))))
6712 exit (1);
6713 fprintf (f, "%ld\n", i);
6714 }
6715 else
6716 {
6717 unsigned long i = ulongval ();
6718 if (i != ((long) (sizeof (long long))))
6719 exit (1);
6720 fprintf (f, "%lu\n", i);
6721 }
6722 exit (ferror (f) || fclose (f) != 0);
6723
6724 ;
6725 return 0;
6726 }
6727 _ACEOF
6728 rm -f conftest$ac_exeext
6729 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6730 (eval $ac_link) 2>&5
6731 ac_status=$?
6732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6733 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6735 (eval $ac_try) 2>&5
6736 ac_status=$?
6737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6738 (exit $ac_status); }; }; then
6739 ac_cv_sizeof_long_long=`cat conftest.val`
6740 else
6741 echo "$as_me: program exited with status $ac_status" >&5
6742 echo "$as_me: failed program was:" >&5
6743 sed 's/^/| /' conftest.$ac_ext >&5
6744
6745 ( exit $ac_status )
6746 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
6747 See \`config.log' for more details." >&5
6748 echo "$as_me: error: cannot compute sizeof (long long), 77
6749 See \`config.log' for more details." >&2;}
6750 { (exit 1); exit 1; }; }
6751 fi
6752 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6753 fi
6754 fi
6755 rm -f conftest.val
6756 else
6757 ac_cv_sizeof_long_long=0
6758 fi
6759 fi
6760 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
6761 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
6762 cat >>confdefs.h <<_ACEOF
6763 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6764 _ACEOF
6765
6766
6767 fi
6768
6769 echo "$as_me:$LINENO: checking for long" >&5
6770 echo $ECHO_N "checking for long... $ECHO_C" >&6
6771 if test "${ac_cv_type_long+set}" = set; then
6772 echo $ECHO_N "(cached) $ECHO_C" >&6
6773 else
6774 cat >conftest.$ac_ext <<_ACEOF
6775 /* confdefs.h. */
6776 _ACEOF
6777 cat confdefs.h >>conftest.$ac_ext
6778 cat >>conftest.$ac_ext <<_ACEOF
6779 /* end confdefs.h. */
6780 $ac_includes_default
6781 int
6782 main ()
6783 {
6784 if ((long *) 0)
6785 return 0;
6786 if (sizeof (long))
6787 return 0;
6788 ;
6789 return 0;
6790 }
6791 _ACEOF
6792 rm -f conftest.$ac_objext
6793 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6794 (eval $ac_compile) 2>conftest.er1
6795 ac_status=$?
6796 grep -v '^ *+' conftest.er1 >conftest.err
6797 rm -f conftest.er1
6798 cat conftest.err >&5
6799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6800 (exit $ac_status); } &&
6801 { ac_try='test -z "$ac_c_werror_flag"
6802 || test ! -s conftest.err'
6803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6804 (eval $ac_try) 2>&5
6805 ac_status=$?
6806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6807 (exit $ac_status); }; } &&
6808 { ac_try='test -s conftest.$ac_objext'
6809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6810 (eval $ac_try) 2>&5
6811 ac_status=$?
6812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6813 (exit $ac_status); }; }; then
6814 ac_cv_type_long=yes
6815 else
6816 echo "$as_me: failed program was:" >&5
6817 sed 's/^/| /' conftest.$ac_ext >&5
6818
6819 ac_cv_type_long=no
6820 fi
6821 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6822 fi
6823 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
6824 echo "${ECHO_T}$ac_cv_type_long" >&6
6825
6826 echo "$as_me:$LINENO: checking size of long" >&5
6827 echo $ECHO_N "checking size of long... $ECHO_C" >&6
6828 if test "${ac_cv_sizeof_long+set}" = set; then
6829 echo $ECHO_N "(cached) $ECHO_C" >&6
6830 else
6831 if test "$ac_cv_type_long" = yes; then
6832 # The cast to unsigned long works around a bug in the HP C Compiler
6833 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6834 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6835 # This bug is HP SR number 8606223364.
6836 if test "$cross_compiling" = yes; then
6837 # Depending upon the size, compute the lo and hi bounds.
6838 cat >conftest.$ac_ext <<_ACEOF
6839 /* confdefs.h. */
6840 _ACEOF
6841 cat confdefs.h >>conftest.$ac_ext
6842 cat >>conftest.$ac_ext <<_ACEOF
6843 /* end confdefs.h. */
6844 $ac_includes_default
6845 int
6846 main ()
6847 {
6848 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
6849 test_array [0] = 0
6850
6851 ;
6852 return 0;
6853 }
6854 _ACEOF
6855 rm -f conftest.$ac_objext
6856 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6857 (eval $ac_compile) 2>conftest.er1
6858 ac_status=$?
6859 grep -v '^ *+' conftest.er1 >conftest.err
6860 rm -f conftest.er1
6861 cat conftest.err >&5
6862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6863 (exit $ac_status); } &&
6864 { ac_try='test -z "$ac_c_werror_flag"
6865 || test ! -s conftest.err'
6866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6867 (eval $ac_try) 2>&5
6868 ac_status=$?
6869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6870 (exit $ac_status); }; } &&
6871 { ac_try='test -s conftest.$ac_objext'
6872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6873 (eval $ac_try) 2>&5
6874 ac_status=$?
6875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6876 (exit $ac_status); }; }; then
6877 ac_lo=0 ac_mid=0
6878 while :; do
6879 cat >conftest.$ac_ext <<_ACEOF
6880 /* confdefs.h. */
6881 _ACEOF
6882 cat confdefs.h >>conftest.$ac_ext
6883 cat >>conftest.$ac_ext <<_ACEOF
6884 /* end confdefs.h. */
6885 $ac_includes_default
6886 int
6887 main ()
6888 {
6889 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
6890 test_array [0] = 0
6891
6892 ;
6893 return 0;
6894 }
6895 _ACEOF
6896 rm -f conftest.$ac_objext
6897 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6898 (eval $ac_compile) 2>conftest.er1
6899 ac_status=$?
6900 grep -v '^ *+' conftest.er1 >conftest.err
6901 rm -f conftest.er1
6902 cat conftest.err >&5
6903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6904 (exit $ac_status); } &&
6905 { ac_try='test -z "$ac_c_werror_flag"
6906 || test ! -s conftest.err'
6907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6908 (eval $ac_try) 2>&5
6909 ac_status=$?
6910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6911 (exit $ac_status); }; } &&
6912 { ac_try='test -s conftest.$ac_objext'
6913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6914 (eval $ac_try) 2>&5
6915 ac_status=$?
6916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6917 (exit $ac_status); }; }; then
6918 ac_hi=$ac_mid; break
6919 else
6920 echo "$as_me: failed program was:" >&5
6921 sed 's/^/| /' conftest.$ac_ext >&5
6922
6923 ac_lo=`expr $ac_mid + 1`
6924 if test $ac_lo -le $ac_mid; then
6925 ac_lo= ac_hi=
6926 break
6927 fi
6928 ac_mid=`expr 2 '*' $ac_mid + 1`
6929 fi
6930 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6931 done
6932 else
6933 echo "$as_me: failed program was:" >&5
6934 sed 's/^/| /' conftest.$ac_ext >&5
6935
6936 cat >conftest.$ac_ext <<_ACEOF
6937 /* confdefs.h. */
6938 _ACEOF
6939 cat confdefs.h >>conftest.$ac_ext
6940 cat >>conftest.$ac_ext <<_ACEOF
6941 /* end confdefs.h. */
6942 $ac_includes_default
6943 int
6944 main ()
6945 {
6946 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
6947 test_array [0] = 0
6948
6949 ;
6950 return 0;
6951 }
6952 _ACEOF
6953 rm -f conftest.$ac_objext
6954 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6955 (eval $ac_compile) 2>conftest.er1
6956 ac_status=$?
6957 grep -v '^ *+' conftest.er1 >conftest.err
6958 rm -f conftest.er1
6959 cat conftest.err >&5
6960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6961 (exit $ac_status); } &&
6962 { ac_try='test -z "$ac_c_werror_flag"
6963 || test ! -s conftest.err'
6964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6965 (eval $ac_try) 2>&5
6966 ac_status=$?
6967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6968 (exit $ac_status); }; } &&
6969 { ac_try='test -s conftest.$ac_objext'
6970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6971 (eval $ac_try) 2>&5
6972 ac_status=$?
6973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6974 (exit $ac_status); }; }; then
6975 ac_hi=-1 ac_mid=-1
6976 while :; do
6977 cat >conftest.$ac_ext <<_ACEOF
6978 /* confdefs.h. */
6979 _ACEOF
6980 cat confdefs.h >>conftest.$ac_ext
6981 cat >>conftest.$ac_ext <<_ACEOF
6982 /* end confdefs.h. */
6983 $ac_includes_default
6984 int
6985 main ()
6986 {
6987 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
6988 test_array [0] = 0
6989
6990 ;
6991 return 0;
6992 }
6993 _ACEOF
6994 rm -f conftest.$ac_objext
6995 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6996 (eval $ac_compile) 2>conftest.er1
6997 ac_status=$?
6998 grep -v '^ *+' conftest.er1 >conftest.err
6999 rm -f conftest.er1
7000 cat conftest.err >&5
7001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7002 (exit $ac_status); } &&
7003 { ac_try='test -z "$ac_c_werror_flag"
7004 || test ! -s conftest.err'
7005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7006 (eval $ac_try) 2>&5
7007 ac_status=$?
7008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7009 (exit $ac_status); }; } &&
7010 { ac_try='test -s conftest.$ac_objext'
7011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7012 (eval $ac_try) 2>&5
7013 ac_status=$?
7014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7015 (exit $ac_status); }; }; then
7016 ac_lo=$ac_mid; break
7017 else
7018 echo "$as_me: failed program was:" >&5
7019 sed 's/^/| /' conftest.$ac_ext >&5
7020
7021 ac_hi=`expr '(' $ac_mid ')' - 1`
7022 if test $ac_mid -le $ac_hi; then
7023 ac_lo= ac_hi=
7024 break
7025 fi
7026 ac_mid=`expr 2 '*' $ac_mid`
7027 fi
7028 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7029 done
7030 else
7031 echo "$as_me: failed program was:" >&5
7032 sed 's/^/| /' conftest.$ac_ext >&5
7033
7034 ac_lo= ac_hi=
7035 fi
7036 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7037 fi
7038 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7039 # Binary search between lo and hi bounds.
7040 while test "x$ac_lo" != "x$ac_hi"; do
7041 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7042 cat >conftest.$ac_ext <<_ACEOF
7043 /* confdefs.h. */
7044 _ACEOF
7045 cat confdefs.h >>conftest.$ac_ext
7046 cat >>conftest.$ac_ext <<_ACEOF
7047 /* end confdefs.h. */
7048 $ac_includes_default
7049 int
7050 main ()
7051 {
7052 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
7053 test_array [0] = 0
7054
7055 ;
7056 return 0;
7057 }
7058 _ACEOF
7059 rm -f conftest.$ac_objext
7060 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7061 (eval $ac_compile) 2>conftest.er1
7062 ac_status=$?
7063 grep -v '^ *+' conftest.er1 >conftest.err
7064 rm -f conftest.er1
7065 cat conftest.err >&5
7066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7067 (exit $ac_status); } &&
7068 { ac_try='test -z "$ac_c_werror_flag"
7069 || test ! -s conftest.err'
7070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7071 (eval $ac_try) 2>&5
7072 ac_status=$?
7073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7074 (exit $ac_status); }; } &&
7075 { ac_try='test -s conftest.$ac_objext'
7076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7077 (eval $ac_try) 2>&5
7078 ac_status=$?
7079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7080 (exit $ac_status); }; }; then
7081 ac_hi=$ac_mid
7082 else
7083 echo "$as_me: failed program was:" >&5
7084 sed 's/^/| /' conftest.$ac_ext >&5
7085
7086 ac_lo=`expr '(' $ac_mid ')' + 1`
7087 fi
7088 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7089 done
7090 case $ac_lo in
7091 ?*) ac_cv_sizeof_long=$ac_lo;;
7092 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
7093 See \`config.log' for more details." >&5
7094 echo "$as_me: error: cannot compute sizeof (long), 77
7095 See \`config.log' for more details." >&2;}
7096 { (exit 1); exit 1; }; } ;;
7097 esac
7098 else
7099 if test "$cross_compiling" = yes; then
7100 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7101 See \`config.log' for more details." >&5
7102 echo "$as_me: error: cannot run test program while cross compiling
7103 See \`config.log' for more details." >&2;}
7104 { (exit 1); exit 1; }; }
7105 else
7106 cat >conftest.$ac_ext <<_ACEOF
7107 /* confdefs.h. */
7108 _ACEOF
7109 cat confdefs.h >>conftest.$ac_ext
7110 cat >>conftest.$ac_ext <<_ACEOF
7111 /* end confdefs.h. */
7112 $ac_includes_default
7113 long longval () { return (long) (sizeof (long)); }
7114 unsigned long ulongval () { return (long) (sizeof (long)); }
7115 #include <stdio.h>
7116 #include <stdlib.h>
7117 int
7118 main ()
7119 {
7120
7121 FILE *f = fopen ("conftest.val", "w");
7122 if (! f)
7123 exit (1);
7124 if (((long) (sizeof (long))) < 0)
7125 {
7126 long i = longval ();
7127 if (i != ((long) (sizeof (long))))
7128 exit (1);
7129 fprintf (f, "%ld\n", i);
7130 }
7131 else
7132 {
7133 unsigned long i = ulongval ();
7134 if (i != ((long) (sizeof (long))))
7135 exit (1);
7136 fprintf (f, "%lu\n", i);
7137 }
7138 exit (ferror (f) || fclose (f) != 0);
7139
7140 ;
7141 return 0;
7142 }
7143 _ACEOF
7144 rm -f conftest$ac_exeext
7145 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7146 (eval $ac_link) 2>&5
7147 ac_status=$?
7148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7149 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7151 (eval $ac_try) 2>&5
7152 ac_status=$?
7153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7154 (exit $ac_status); }; }; then
7155 ac_cv_sizeof_long=`cat conftest.val`
7156 else
7157 echo "$as_me: program exited with status $ac_status" >&5
7158 echo "$as_me: failed program was:" >&5
7159 sed 's/^/| /' conftest.$ac_ext >&5
7160
7161 ( exit $ac_status )
7162 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
7163 See \`config.log' for more details." >&5
7164 echo "$as_me: error: cannot compute sizeof (long), 77
7165 See \`config.log' for more details." >&2;}
7166 { (exit 1); exit 1; }; }
7167 fi
7168 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7169 fi
7170 fi
7171 rm -f conftest.val
7172 else
7173 ac_cv_sizeof_long=0
7174 fi
7175 fi
7176 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
7177 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
7178 cat >>confdefs.h <<_ACEOF
7179 #define SIZEOF_LONG $ac_cv_sizeof_long
7180 _ACEOF
7181
7182
7183 if test "x${ac_cv_sizeof_long}" = "x8"; then
7184 host64=true
7185 BFD_HOST_64BIT_LONG=1
7186 test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long"
7187 test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long"
7188 elif test "x${ac_cv_sizeof_long_long}" = "x8"; then
7189 test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long long"
7190 test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long long"
7191 fi
7192
7193 if test -n "${HOST_64BIT_TYPE}" -a -n "${HOST_U_64BIT_TYPE}"; then
7194 BFD_HOST_64_BIT_DEFINED=1
7195 BFD_HOST_64_BIT="${HOST_64BIT_TYPE}"
7196 BFD_HOST_U_64_BIT="${HOST_U_64BIT_TYPE}"
7197 fi
7198
7199
7200
7201
7202
7203
7204
7205 # Put a plausible default for CC_FOR_BUILD in Makefile.
7206 if test -z "$CC_FOR_BUILD"; then
7207 if test "x$cross_compiling" = "xno"; then
7208 CC_FOR_BUILD='$(CC)'
7209 else
7210 CC_FOR_BUILD=gcc
7211 fi
7212 fi
7213
7214 # Also set EXEEXT_FOR_BUILD.
7215 if test "x$cross_compiling" = "xno"; then
7216 EXEEXT_FOR_BUILD='$(EXEEXT)'
7217 else
7218 echo "$as_me:$LINENO: checking for build system executable suffix" >&5
7219 echo $ECHO_N "checking for build system executable suffix... $ECHO_C" >&6
7220 if test "${bfd_cv_build_exeext+set}" = set; then
7221 echo $ECHO_N "(cached) $ECHO_C" >&6
7222 else
7223 rm -f conftest*
7224 echo 'int main () { return 0; }' > conftest.c
7225 bfd_cv_build_exeext=
7226 ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5
7227 for file in conftest.*; do
7228 case $file in
7229 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
7230 *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
7231 esac
7232 done
7233 rm -f conftest*
7234 test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
7235 fi
7236 echo "$as_me:$LINENO: result: $bfd_cv_build_exeext" >&5
7237 echo "${ECHO_T}$bfd_cv_build_exeext" >&6
7238 EXEEXT_FOR_BUILD=""
7239 test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
7240 fi
7241
7242
7243
7244
7245
7246
7247
7248
7249 for ac_header in stddef.h string.h strings.h stdlib.h time.h unistd.h
7250 do
7251 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7252 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7253 echo "$as_me:$LINENO: checking for $ac_header" >&5
7254 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7255 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7256 echo $ECHO_N "(cached) $ECHO_C" >&6
7257 fi
7258 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7259 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7260 else
7261 # Is the header compilable?
7262 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7263 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7264 cat >conftest.$ac_ext <<_ACEOF
7265 /* confdefs.h. */
7266 _ACEOF
7267 cat confdefs.h >>conftest.$ac_ext
7268 cat >>conftest.$ac_ext <<_ACEOF
7269 /* end confdefs.h. */
7270 $ac_includes_default
7271 #include <$ac_header>
7272 _ACEOF
7273 rm -f conftest.$ac_objext
7274 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7275 (eval $ac_compile) 2>conftest.er1
7276 ac_status=$?
7277 grep -v '^ *+' conftest.er1 >conftest.err
7278 rm -f conftest.er1
7279 cat conftest.err >&5
7280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7281 (exit $ac_status); } &&
7282 { ac_try='test -z "$ac_c_werror_flag"
7283 || test ! -s conftest.err'
7284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7285 (eval $ac_try) 2>&5
7286 ac_status=$?
7287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7288 (exit $ac_status); }; } &&
7289 { ac_try='test -s conftest.$ac_objext'
7290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7291 (eval $ac_try) 2>&5
7292 ac_status=$?
7293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7294 (exit $ac_status); }; }; then
7295 ac_header_compiler=yes
7296 else
7297 echo "$as_me: failed program was:" >&5
7298 sed 's/^/| /' conftest.$ac_ext >&5
7299
7300 ac_header_compiler=no
7301 fi
7302 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7303 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7304 echo "${ECHO_T}$ac_header_compiler" >&6
7305
7306 # Is the header present?
7307 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7308 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7309 cat >conftest.$ac_ext <<_ACEOF
7310 /* confdefs.h. */
7311 _ACEOF
7312 cat confdefs.h >>conftest.$ac_ext
7313 cat >>conftest.$ac_ext <<_ACEOF
7314 /* end confdefs.h. */
7315 #include <$ac_header>
7316 _ACEOF
7317 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7318 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7319 ac_status=$?
7320 grep -v '^ *+' conftest.er1 >conftest.err
7321 rm -f conftest.er1
7322 cat conftest.err >&5
7323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7324 (exit $ac_status); } >/dev/null; then
7325 if test -s conftest.err; then
7326 ac_cpp_err=$ac_c_preproc_warn_flag
7327 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7328 else
7329 ac_cpp_err=
7330 fi
7331 else
7332 ac_cpp_err=yes
7333 fi
7334 if test -z "$ac_cpp_err"; then
7335 ac_header_preproc=yes
7336 else
7337 echo "$as_me: failed program was:" >&5
7338 sed 's/^/| /' conftest.$ac_ext >&5
7339
7340 ac_header_preproc=no
7341 fi
7342 rm -f conftest.err conftest.$ac_ext
7343 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7344 echo "${ECHO_T}$ac_header_preproc" >&6
7345
7346 # So? What about this header?
7347 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7348 yes:no: )
7349 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7350 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7351 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7352 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7353 ac_header_preproc=yes
7354 ;;
7355 no:yes:* )
7356 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7357 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7358 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7359 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7360 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7361 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7362 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7363 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7364 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7365 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7366 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7367 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7368 (
7369 cat <<\_ASBOX
7370 ## ------------------------------------------ ##
7371 ## Report this to the AC_PACKAGE_NAME lists. ##
7372 ## ------------------------------------------ ##
7373 _ASBOX
7374 ) |
7375 sed "s/^/$as_me: WARNING: /" >&2
7376 ;;
7377 esac
7378 echo "$as_me:$LINENO: checking for $ac_header" >&5
7379 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7380 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7381 echo $ECHO_N "(cached) $ECHO_C" >&6
7382 else
7383 eval "$as_ac_Header=\$ac_header_preproc"
7384 fi
7385 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7386 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7387
7388 fi
7389 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7390 cat >>confdefs.h <<_ACEOF
7391 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7392 _ACEOF
7393
7394 fi
7395
7396 done
7397
7398
7399
7400
7401 for ac_header in fcntl.h sys/file.h sys/time.h
7402 do
7403 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7404 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7405 echo "$as_me:$LINENO: checking for $ac_header" >&5
7406 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7407 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7408 echo $ECHO_N "(cached) $ECHO_C" >&6
7409 fi
7410 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7411 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7412 else
7413 # Is the header compilable?
7414 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7415 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7416 cat >conftest.$ac_ext <<_ACEOF
7417 /* confdefs.h. */
7418 _ACEOF
7419 cat confdefs.h >>conftest.$ac_ext
7420 cat >>conftest.$ac_ext <<_ACEOF
7421 /* end confdefs.h. */
7422 $ac_includes_default
7423 #include <$ac_header>
7424 _ACEOF
7425 rm -f conftest.$ac_objext
7426 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7427 (eval $ac_compile) 2>conftest.er1
7428 ac_status=$?
7429 grep -v '^ *+' conftest.er1 >conftest.err
7430 rm -f conftest.er1
7431 cat conftest.err >&5
7432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7433 (exit $ac_status); } &&
7434 { ac_try='test -z "$ac_c_werror_flag"
7435 || test ! -s conftest.err'
7436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7437 (eval $ac_try) 2>&5
7438 ac_status=$?
7439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7440 (exit $ac_status); }; } &&
7441 { ac_try='test -s conftest.$ac_objext'
7442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7443 (eval $ac_try) 2>&5
7444 ac_status=$?
7445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7446 (exit $ac_status); }; }; then
7447 ac_header_compiler=yes
7448 else
7449 echo "$as_me: failed program was:" >&5
7450 sed 's/^/| /' conftest.$ac_ext >&5
7451
7452 ac_header_compiler=no
7453 fi
7454 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7455 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7456 echo "${ECHO_T}$ac_header_compiler" >&6
7457
7458 # Is the header present?
7459 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7460 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7461 cat >conftest.$ac_ext <<_ACEOF
7462 /* confdefs.h. */
7463 _ACEOF
7464 cat confdefs.h >>conftest.$ac_ext
7465 cat >>conftest.$ac_ext <<_ACEOF
7466 /* end confdefs.h. */
7467 #include <$ac_header>
7468 _ACEOF
7469 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7470 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7471 ac_status=$?
7472 grep -v '^ *+' conftest.er1 >conftest.err
7473 rm -f conftest.er1
7474 cat conftest.err >&5
7475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7476 (exit $ac_status); } >/dev/null; then
7477 if test -s conftest.err; then
7478 ac_cpp_err=$ac_c_preproc_warn_flag
7479 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7480 else
7481 ac_cpp_err=
7482 fi
7483 else
7484 ac_cpp_err=yes
7485 fi
7486 if test -z "$ac_cpp_err"; then
7487 ac_header_preproc=yes
7488 else
7489 echo "$as_me: failed program was:" >&5
7490 sed 's/^/| /' conftest.$ac_ext >&5
7491
7492 ac_header_preproc=no
7493 fi
7494 rm -f conftest.err conftest.$ac_ext
7495 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7496 echo "${ECHO_T}$ac_header_preproc" >&6
7497
7498 # So? What about this header?
7499 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7500 yes:no: )
7501 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7502 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7503 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7504 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7505 ac_header_preproc=yes
7506 ;;
7507 no:yes:* )
7508 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7509 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7510 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7511 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7512 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7513 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7514 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7515 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7516 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7517 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7518 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7519 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7520 (
7521 cat <<\_ASBOX
7522 ## ------------------------------------------ ##
7523 ## Report this to the AC_PACKAGE_NAME lists. ##
7524 ## ------------------------------------------ ##
7525 _ASBOX
7526 ) |
7527 sed "s/^/$as_me: WARNING: /" >&2
7528 ;;
7529 esac
7530 echo "$as_me:$LINENO: checking for $ac_header" >&5
7531 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7532 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7533 echo $ECHO_N "(cached) $ECHO_C" >&6
7534 else
7535 eval "$as_ac_Header=\$ac_header_preproc"
7536 fi
7537 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7538 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7539
7540 fi
7541 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7542 cat >>confdefs.h <<_ACEOF
7543 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7544 _ACEOF
7545
7546 fi
7547
7548 done
7549
7550
7551
7552 inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
7553
7554 acx_cv_header_stdint=stddef.h
7555 acx_cv_header_stdint_kind="(already complete)"
7556 for i in stdint.h $inttype_headers; do
7557 unset ac_cv_type_uintptr_t
7558 unset ac_cv_type_uintmax_t
7559 unset ac_cv_type_int_least32_t
7560 unset ac_cv_type_int_fast32_t
7561 unset ac_cv_type_uint64_t
7562 echo $ECHO_N "looking for a compliant stdint.h in $i, $ECHO_C" >&6
7563 echo "$as_me:$LINENO: checking for uintmax_t" >&5
7564 echo $ECHO_N "checking for uintmax_t... $ECHO_C" >&6
7565 if test "${ac_cv_type_uintmax_t+set}" = set; then
7566 echo $ECHO_N "(cached) $ECHO_C" >&6
7567 else
7568 cat >conftest.$ac_ext <<_ACEOF
7569 /* confdefs.h. */
7570 _ACEOF
7571 cat confdefs.h >>conftest.$ac_ext
7572 cat >>conftest.$ac_ext <<_ACEOF
7573 /* end confdefs.h. */
7574 #include <sys/types.h>
7575 #include <$i>
7576
7577 int
7578 main ()
7579 {
7580 if ((uintmax_t *) 0)
7581 return 0;
7582 if (sizeof (uintmax_t))
7583 return 0;
7584 ;
7585 return 0;
7586 }
7587 _ACEOF
7588 rm -f conftest.$ac_objext
7589 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7590 (eval $ac_compile) 2>conftest.er1
7591 ac_status=$?
7592 grep -v '^ *+' conftest.er1 >conftest.err
7593 rm -f conftest.er1
7594 cat conftest.err >&5
7595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7596 (exit $ac_status); } &&
7597 { ac_try='test -z "$ac_c_werror_flag"
7598 || test ! -s conftest.err'
7599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7600 (eval $ac_try) 2>&5
7601 ac_status=$?
7602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7603 (exit $ac_status); }; } &&
7604 { ac_try='test -s conftest.$ac_objext'
7605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7606 (eval $ac_try) 2>&5
7607 ac_status=$?
7608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7609 (exit $ac_status); }; }; then
7610 ac_cv_type_uintmax_t=yes
7611 else
7612 echo "$as_me: failed program was:" >&5
7613 sed 's/^/| /' conftest.$ac_ext >&5
7614
7615 ac_cv_type_uintmax_t=no
7616 fi
7617 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7618 fi
7619 echo "$as_me:$LINENO: result: $ac_cv_type_uintmax_t" >&5
7620 echo "${ECHO_T}$ac_cv_type_uintmax_t" >&6
7621 if test $ac_cv_type_uintmax_t = yes; then
7622 acx_cv_header_stdint=$i
7623 else
7624 continue
7625 fi
7626
7627 echo "$as_me:$LINENO: checking for uintptr_t" >&5
7628 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
7629 if test "${ac_cv_type_uintptr_t+set}" = set; then
7630 echo $ECHO_N "(cached) $ECHO_C" >&6
7631 else
7632 cat >conftest.$ac_ext <<_ACEOF
7633 /* confdefs.h. */
7634 _ACEOF
7635 cat confdefs.h >>conftest.$ac_ext
7636 cat >>conftest.$ac_ext <<_ACEOF
7637 /* end confdefs.h. */
7638 #include <sys/types.h>
7639 #include <$i>
7640
7641 int
7642 main ()
7643 {
7644 if ((uintptr_t *) 0)
7645 return 0;
7646 if (sizeof (uintptr_t))
7647 return 0;
7648 ;
7649 return 0;
7650 }
7651 _ACEOF
7652 rm -f conftest.$ac_objext
7653 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7654 (eval $ac_compile) 2>conftest.er1
7655 ac_status=$?
7656 grep -v '^ *+' conftest.er1 >conftest.err
7657 rm -f conftest.er1
7658 cat conftest.err >&5
7659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7660 (exit $ac_status); } &&
7661 { ac_try='test -z "$ac_c_werror_flag"
7662 || test ! -s conftest.err'
7663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7664 (eval $ac_try) 2>&5
7665 ac_status=$?
7666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7667 (exit $ac_status); }; } &&
7668 { ac_try='test -s conftest.$ac_objext'
7669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7670 (eval $ac_try) 2>&5
7671 ac_status=$?
7672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7673 (exit $ac_status); }; }; then
7674 ac_cv_type_uintptr_t=yes
7675 else
7676 echo "$as_me: failed program was:" >&5
7677 sed 's/^/| /' conftest.$ac_ext >&5
7678
7679 ac_cv_type_uintptr_t=no
7680 fi
7681 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7682 fi
7683 echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
7684 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
7685 if test $ac_cv_type_uintptr_t = yes; then
7686 :
7687 else
7688 acx_cv_header_stdint_kind="(mostly complete)"
7689 fi
7690
7691 echo "$as_me:$LINENO: checking for int_least32_t" >&5
7692 echo $ECHO_N "checking for int_least32_t... $ECHO_C" >&6
7693 if test "${ac_cv_type_int_least32_t+set}" = set; then
7694 echo $ECHO_N "(cached) $ECHO_C" >&6
7695 else
7696 cat >conftest.$ac_ext <<_ACEOF
7697 /* confdefs.h. */
7698 _ACEOF
7699 cat confdefs.h >>conftest.$ac_ext
7700 cat >>conftest.$ac_ext <<_ACEOF
7701 /* end confdefs.h. */
7702 #include <sys/types.h>
7703 #include <$i>
7704
7705 int
7706 main ()
7707 {
7708 if ((int_least32_t *) 0)
7709 return 0;
7710 if (sizeof (int_least32_t))
7711 return 0;
7712 ;
7713 return 0;
7714 }
7715 _ACEOF
7716 rm -f conftest.$ac_objext
7717 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7718 (eval $ac_compile) 2>conftest.er1
7719 ac_status=$?
7720 grep -v '^ *+' conftest.er1 >conftest.err
7721 rm -f conftest.er1
7722 cat conftest.err >&5
7723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7724 (exit $ac_status); } &&
7725 { ac_try='test -z "$ac_c_werror_flag"
7726 || test ! -s conftest.err'
7727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7728 (eval $ac_try) 2>&5
7729 ac_status=$?
7730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7731 (exit $ac_status); }; } &&
7732 { ac_try='test -s conftest.$ac_objext'
7733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7734 (eval $ac_try) 2>&5
7735 ac_status=$?
7736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7737 (exit $ac_status); }; }; then
7738 ac_cv_type_int_least32_t=yes
7739 else
7740 echo "$as_me: failed program was:" >&5
7741 sed 's/^/| /' conftest.$ac_ext >&5
7742
7743 ac_cv_type_int_least32_t=no
7744 fi
7745 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7746 fi
7747 echo "$as_me:$LINENO: result: $ac_cv_type_int_least32_t" >&5
7748 echo "${ECHO_T}$ac_cv_type_int_least32_t" >&6
7749 if test $ac_cv_type_int_least32_t = yes; then
7750 :
7751 else
7752 acx_cv_header_stdint_kind="(mostly complete)"
7753 fi
7754
7755 echo "$as_me:$LINENO: checking for int_fast32_t" >&5
7756 echo $ECHO_N "checking for int_fast32_t... $ECHO_C" >&6
7757 if test "${ac_cv_type_int_fast32_t+set}" = set; then
7758 echo $ECHO_N "(cached) $ECHO_C" >&6
7759 else
7760 cat >conftest.$ac_ext <<_ACEOF
7761 /* confdefs.h. */
7762 _ACEOF
7763 cat confdefs.h >>conftest.$ac_ext
7764 cat >>conftest.$ac_ext <<_ACEOF
7765 /* end confdefs.h. */
7766 #include <sys/types.h>
7767 #include <$i>
7768
7769 int
7770 main ()
7771 {
7772 if ((int_fast32_t *) 0)
7773 return 0;
7774 if (sizeof (int_fast32_t))
7775 return 0;
7776 ;
7777 return 0;
7778 }
7779 _ACEOF
7780 rm -f conftest.$ac_objext
7781 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7782 (eval $ac_compile) 2>conftest.er1
7783 ac_status=$?
7784 grep -v '^ *+' conftest.er1 >conftest.err
7785 rm -f conftest.er1
7786 cat conftest.err >&5
7787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7788 (exit $ac_status); } &&
7789 { ac_try='test -z "$ac_c_werror_flag"
7790 || test ! -s conftest.err'
7791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7792 (eval $ac_try) 2>&5
7793 ac_status=$?
7794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7795 (exit $ac_status); }; } &&
7796 { ac_try='test -s conftest.$ac_objext'
7797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7798 (eval $ac_try) 2>&5
7799 ac_status=$?
7800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7801 (exit $ac_status); }; }; then
7802 ac_cv_type_int_fast32_t=yes
7803 else
7804 echo "$as_me: failed program was:" >&5
7805 sed 's/^/| /' conftest.$ac_ext >&5
7806
7807 ac_cv_type_int_fast32_t=no
7808 fi
7809 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7810 fi
7811 echo "$as_me:$LINENO: result: $ac_cv_type_int_fast32_t" >&5
7812 echo "${ECHO_T}$ac_cv_type_int_fast32_t" >&6
7813 if test $ac_cv_type_int_fast32_t = yes; then
7814 :
7815 else
7816 acx_cv_header_stdint_kind="(mostly complete)"
7817 fi
7818
7819 echo "$as_me:$LINENO: checking for uint64_t" >&5
7820 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
7821 if test "${ac_cv_type_uint64_t+set}" = set; then
7822 echo $ECHO_N "(cached) $ECHO_C" >&6
7823 else
7824 cat >conftest.$ac_ext <<_ACEOF
7825 /* confdefs.h. */
7826 _ACEOF
7827 cat confdefs.h >>conftest.$ac_ext
7828 cat >>conftest.$ac_ext <<_ACEOF
7829 /* end confdefs.h. */
7830 #include <sys/types.h>
7831 #include <$i>
7832
7833 int
7834 main ()
7835 {
7836 if ((uint64_t *) 0)
7837 return 0;
7838 if (sizeof (uint64_t))
7839 return 0;
7840 ;
7841 return 0;
7842 }
7843 _ACEOF
7844 rm -f conftest.$ac_objext
7845 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7846 (eval $ac_compile) 2>conftest.er1
7847 ac_status=$?
7848 grep -v '^ *+' conftest.er1 >conftest.err
7849 rm -f conftest.er1
7850 cat conftest.err >&5
7851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7852 (exit $ac_status); } &&
7853 { ac_try='test -z "$ac_c_werror_flag"
7854 || test ! -s conftest.err'
7855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7856 (eval $ac_try) 2>&5
7857 ac_status=$?
7858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7859 (exit $ac_status); }; } &&
7860 { ac_try='test -s conftest.$ac_objext'
7861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7862 (eval $ac_try) 2>&5
7863 ac_status=$?
7864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7865 (exit $ac_status); }; }; then
7866 ac_cv_type_uint64_t=yes
7867 else
7868 echo "$as_me: failed program was:" >&5
7869 sed 's/^/| /' conftest.$ac_ext >&5
7870
7871 ac_cv_type_uint64_t=no
7872 fi
7873 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7874 fi
7875 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
7876 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
7877 if test $ac_cv_type_uint64_t = yes; then
7878 :
7879 else
7880 acx_cv_header_stdint_kind="(lacks uint64_t)"
7881 fi
7882
7883 break
7884 done
7885 if test "$acx_cv_header_stdint" = stddef.h; then
7886 acx_cv_header_stdint_kind="(lacks uintmax_t)"
7887 for i in stdint.h $inttype_headers; do
7888 unset ac_cv_type_uintptr_t
7889 unset ac_cv_type_uint32_t
7890 unset ac_cv_type_uint64_t
7891 echo $ECHO_N "looking for an incomplete stdint.h in $i, $ECHO_C" >&6
7892 echo "$as_me:$LINENO: checking for uint32_t" >&5
7893 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
7894 if test "${ac_cv_type_uint32_t+set}" = set; then
7895 echo $ECHO_N "(cached) $ECHO_C" >&6
7896 else
7897 cat >conftest.$ac_ext <<_ACEOF
7898 /* confdefs.h. */
7899 _ACEOF
7900 cat confdefs.h >>conftest.$ac_ext
7901 cat >>conftest.$ac_ext <<_ACEOF
7902 /* end confdefs.h. */
7903 #include <sys/types.h>
7904 #include <$i>
7905
7906 int
7907 main ()
7908 {
7909 if ((uint32_t *) 0)
7910 return 0;
7911 if (sizeof (uint32_t))
7912 return 0;
7913 ;
7914 return 0;
7915 }
7916 _ACEOF
7917 rm -f conftest.$ac_objext
7918 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7919 (eval $ac_compile) 2>conftest.er1
7920 ac_status=$?
7921 grep -v '^ *+' conftest.er1 >conftest.err
7922 rm -f conftest.er1
7923 cat conftest.err >&5
7924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7925 (exit $ac_status); } &&
7926 { ac_try='test -z "$ac_c_werror_flag"
7927 || test ! -s conftest.err'
7928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7929 (eval $ac_try) 2>&5
7930 ac_status=$?
7931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7932 (exit $ac_status); }; } &&
7933 { ac_try='test -s conftest.$ac_objext'
7934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7935 (eval $ac_try) 2>&5
7936 ac_status=$?
7937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7938 (exit $ac_status); }; }; then
7939 ac_cv_type_uint32_t=yes
7940 else
7941 echo "$as_me: failed program was:" >&5
7942 sed 's/^/| /' conftest.$ac_ext >&5
7943
7944 ac_cv_type_uint32_t=no
7945 fi
7946 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7947 fi
7948 echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
7949 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
7950 if test $ac_cv_type_uint32_t = yes; then
7951 acx_cv_header_stdint=$i
7952 else
7953 continue
7954 fi
7955
7956 echo "$as_me:$LINENO: checking for uint64_t" >&5
7957 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
7958 if test "${ac_cv_type_uint64_t+set}" = set; then
7959 echo $ECHO_N "(cached) $ECHO_C" >&6
7960 else
7961 cat >conftest.$ac_ext <<_ACEOF
7962 /* confdefs.h. */
7963 _ACEOF
7964 cat confdefs.h >>conftest.$ac_ext
7965 cat >>conftest.$ac_ext <<_ACEOF
7966 /* end confdefs.h. */
7967 #include <sys/types.h>
7968 #include <$i>
7969
7970 int
7971 main ()
7972 {
7973 if ((uint64_t *) 0)
7974 return 0;
7975 if (sizeof (uint64_t))
7976 return 0;
7977 ;
7978 return 0;
7979 }
7980 _ACEOF
7981 rm -f conftest.$ac_objext
7982 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7983 (eval $ac_compile) 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_objext'
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 ac_cv_type_uint64_t=yes
8004 else
8005 echo "$as_me: failed program was:" >&5
8006 sed 's/^/| /' conftest.$ac_ext >&5
8007
8008 ac_cv_type_uint64_t=no
8009 fi
8010 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8011 fi
8012 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
8013 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
8014
8015 echo "$as_me:$LINENO: checking for uintptr_t" >&5
8016 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
8017 if test "${ac_cv_type_uintptr_t+set}" = set; then
8018 echo $ECHO_N "(cached) $ECHO_C" >&6
8019 else
8020 cat >conftest.$ac_ext <<_ACEOF
8021 /* confdefs.h. */
8022 _ACEOF
8023 cat confdefs.h >>conftest.$ac_ext
8024 cat >>conftest.$ac_ext <<_ACEOF
8025 /* end confdefs.h. */
8026 #include <sys/types.h>
8027 #include <$i>
8028
8029 int
8030 main ()
8031 {
8032 if ((uintptr_t *) 0)
8033 return 0;
8034 if (sizeof (uintptr_t))
8035 return 0;
8036 ;
8037 return 0;
8038 }
8039 _ACEOF
8040 rm -f conftest.$ac_objext
8041 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8042 (eval $ac_compile) 2>conftest.er1
8043 ac_status=$?
8044 grep -v '^ *+' conftest.er1 >conftest.err
8045 rm -f conftest.er1
8046 cat conftest.err >&5
8047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8048 (exit $ac_status); } &&
8049 { ac_try='test -z "$ac_c_werror_flag"
8050 || test ! -s conftest.err'
8051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8052 (eval $ac_try) 2>&5
8053 ac_status=$?
8054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8055 (exit $ac_status); }; } &&
8056 { ac_try='test -s conftest.$ac_objext'
8057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8058 (eval $ac_try) 2>&5
8059 ac_status=$?
8060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8061 (exit $ac_status); }; }; then
8062 ac_cv_type_uintptr_t=yes
8063 else
8064 echo "$as_me: failed program was:" >&5
8065 sed 's/^/| /' conftest.$ac_ext >&5
8066
8067 ac_cv_type_uintptr_t=no
8068 fi
8069 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8070 fi
8071 echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
8072 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
8073
8074 break
8075 done
8076 fi
8077 if test "$acx_cv_header_stdint" = stddef.h; then
8078 acx_cv_header_stdint_kind="(u_intXX_t style)"
8079 for i in sys/types.h $inttype_headers; do
8080 unset ac_cv_type_u_int32_t
8081 unset ac_cv_type_u_int64_t
8082 echo $ECHO_N "looking for u_intXX_t types in $i, $ECHO_C" >&6
8083 echo "$as_me:$LINENO: checking for u_int32_t" >&5
8084 echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
8085 if test "${ac_cv_type_u_int32_t+set}" = set; then
8086 echo $ECHO_N "(cached) $ECHO_C" >&6
8087 else
8088 cat >conftest.$ac_ext <<_ACEOF
8089 /* confdefs.h. */
8090 _ACEOF
8091 cat confdefs.h >>conftest.$ac_ext
8092 cat >>conftest.$ac_ext <<_ACEOF
8093 /* end confdefs.h. */
8094 #include <sys/types.h>
8095 #include <$i>
8096
8097 int
8098 main ()
8099 {
8100 if ((u_int32_t *) 0)
8101 return 0;
8102 if (sizeof (u_int32_t))
8103 return 0;
8104 ;
8105 return 0;
8106 }
8107 _ACEOF
8108 rm -f conftest.$ac_objext
8109 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8110 (eval $ac_compile) 2>conftest.er1
8111 ac_status=$?
8112 grep -v '^ *+' conftest.er1 >conftest.err
8113 rm -f conftest.er1
8114 cat conftest.err >&5
8115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8116 (exit $ac_status); } &&
8117 { ac_try='test -z "$ac_c_werror_flag"
8118 || test ! -s conftest.err'
8119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8120 (eval $ac_try) 2>&5
8121 ac_status=$?
8122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8123 (exit $ac_status); }; } &&
8124 { ac_try='test -s conftest.$ac_objext'
8125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8126 (eval $ac_try) 2>&5
8127 ac_status=$?
8128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8129 (exit $ac_status); }; }; then
8130 ac_cv_type_u_int32_t=yes
8131 else
8132 echo "$as_me: failed program was:" >&5
8133 sed 's/^/| /' conftest.$ac_ext >&5
8134
8135 ac_cv_type_u_int32_t=no
8136 fi
8137 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8138 fi
8139 echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
8140 echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6
8141 if test $ac_cv_type_u_int32_t = yes; then
8142 acx_cv_header_stdint=$i
8143 else
8144 continue
8145 fi
8146
8147 echo "$as_me:$LINENO: checking for u_int64_t" >&5
8148 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
8149 if test "${ac_cv_type_u_int64_t+set}" = set; then
8150 echo $ECHO_N "(cached) $ECHO_C" >&6
8151 else
8152 cat >conftest.$ac_ext <<_ACEOF
8153 /* confdefs.h. */
8154 _ACEOF
8155 cat confdefs.h >>conftest.$ac_ext
8156 cat >>conftest.$ac_ext <<_ACEOF
8157 /* end confdefs.h. */
8158 #include <sys/types.h>
8159 #include <$i>
8160
8161 int
8162 main ()
8163 {
8164 if ((u_int64_t *) 0)
8165 return 0;
8166 if (sizeof (u_int64_t))
8167 return 0;
8168 ;
8169 return 0;
8170 }
8171 _ACEOF
8172 rm -f conftest.$ac_objext
8173 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8174 (eval $ac_compile) 2>conftest.er1
8175 ac_status=$?
8176 grep -v '^ *+' conftest.er1 >conftest.err
8177 rm -f conftest.er1
8178 cat conftest.err >&5
8179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8180 (exit $ac_status); } &&
8181 { ac_try='test -z "$ac_c_werror_flag"
8182 || test ! -s conftest.err'
8183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8184 (eval $ac_try) 2>&5
8185 ac_status=$?
8186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8187 (exit $ac_status); }; } &&
8188 { ac_try='test -s conftest.$ac_objext'
8189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8190 (eval $ac_try) 2>&5
8191 ac_status=$?
8192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8193 (exit $ac_status); }; }; then
8194 ac_cv_type_u_int64_t=yes
8195 else
8196 echo "$as_me: failed program was:" >&5
8197 sed 's/^/| /' conftest.$ac_ext >&5
8198
8199 ac_cv_type_u_int64_t=no
8200 fi
8201 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8202 fi
8203 echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
8204 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
8205
8206 break
8207 done
8208 fi
8209 if test "$acx_cv_header_stdint" = stddef.h; then
8210 acx_cv_header_stdint_kind="(using manual detection)"
8211 fi
8212
8213 test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
8214 test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
8215 test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
8216 test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
8217 test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
8218
8219 # ----------------- Summarize what we found so far
8220
8221 echo "$as_me:$LINENO: checking what to include in bfd_stdint.h" >&5
8222 echo $ECHO_N "checking what to include in bfd_stdint.h... $ECHO_C" >&6
8223
8224 case `$as_basename bfd_stdint.h ||
8225 $as_expr X/bfd_stdint.h : '.*/\([^/][^/]*\)/*$' \| \
8226 Xbfd_stdint.h : 'X\(//\)$' \| \
8227 Xbfd_stdint.h : 'X\(/\)$' \| \
8228 . : '\(.\)' 2>/dev/null ||
8229 echo X/bfd_stdint.h |
8230 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
8231 /^X\/\(\/\/\)$/{ s//\1/; q; }
8232 /^X\/\(\/\).*/{ s//\1/; q; }
8233 s/.*/./; q'` in
8234 stdint.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5
8235 echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
8236 inttypes.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5
8237 echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
8238 *) ;;
8239 esac
8240
8241 echo "$as_me:$LINENO: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
8242 echo "${ECHO_T}$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6
8243
8244 # ----------------- done included file, check C basic types --------
8245
8246 # Lacking an uintptr_t? Test size of void *
8247 case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
8248 stddef.h:* | *:no) echo "$as_me:$LINENO: checking for void *" >&5
8249 echo $ECHO_N "checking for void *... $ECHO_C" >&6
8250 if test "${ac_cv_type_void_p+set}" = set; then
8251 echo $ECHO_N "(cached) $ECHO_C" >&6
8252 else
8253 cat >conftest.$ac_ext <<_ACEOF
8254 /* confdefs.h. */
8255 _ACEOF
8256 cat confdefs.h >>conftest.$ac_ext
8257 cat >>conftest.$ac_ext <<_ACEOF
8258 /* end confdefs.h. */
8259 $ac_includes_default
8260 int
8261 main ()
8262 {
8263 if ((void * *) 0)
8264 return 0;
8265 if (sizeof (void *))
8266 return 0;
8267 ;
8268 return 0;
8269 }
8270 _ACEOF
8271 rm -f conftest.$ac_objext
8272 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8273 (eval $ac_compile) 2>conftest.er1
8274 ac_status=$?
8275 grep -v '^ *+' conftest.er1 >conftest.err
8276 rm -f conftest.er1
8277 cat conftest.err >&5
8278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8279 (exit $ac_status); } &&
8280 { ac_try='test -z "$ac_c_werror_flag"
8281 || test ! -s conftest.err'
8282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8283 (eval $ac_try) 2>&5
8284 ac_status=$?
8285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8286 (exit $ac_status); }; } &&
8287 { ac_try='test -s conftest.$ac_objext'
8288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8289 (eval $ac_try) 2>&5
8290 ac_status=$?
8291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8292 (exit $ac_status); }; }; then
8293 ac_cv_type_void_p=yes
8294 else
8295 echo "$as_me: failed program was:" >&5
8296 sed 's/^/| /' conftest.$ac_ext >&5
8297
8298 ac_cv_type_void_p=no
8299 fi
8300 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8301 fi
8302 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
8303 echo "${ECHO_T}$ac_cv_type_void_p" >&6
8304
8305 echo "$as_me:$LINENO: checking size of void *" >&5
8306 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
8307 if test "${ac_cv_sizeof_void_p+set}" = set; then
8308 echo $ECHO_N "(cached) $ECHO_C" >&6
8309 else
8310 if test "$ac_cv_type_void_p" = yes; then
8311 # The cast to unsigned long works around a bug in the HP C Compiler
8312 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8313 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8314 # This bug is HP SR number 8606223364.
8315 if test "$cross_compiling" = yes; then
8316 # Depending upon the size, compute the lo and hi bounds.
8317 cat >conftest.$ac_ext <<_ACEOF
8318 /* confdefs.h. */
8319 _ACEOF
8320 cat confdefs.h >>conftest.$ac_ext
8321 cat >>conftest.$ac_ext <<_ACEOF
8322 /* end confdefs.h. */
8323 $ac_includes_default
8324 int
8325 main ()
8326 {
8327 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
8328 test_array [0] = 0
8329
8330 ;
8331 return 0;
8332 }
8333 _ACEOF
8334 rm -f conftest.$ac_objext
8335 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8336 (eval $ac_compile) 2>conftest.er1
8337 ac_status=$?
8338 grep -v '^ *+' conftest.er1 >conftest.err
8339 rm -f conftest.er1
8340 cat conftest.err >&5
8341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8342 (exit $ac_status); } &&
8343 { ac_try='test -z "$ac_c_werror_flag"
8344 || test ! -s conftest.err'
8345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8346 (eval $ac_try) 2>&5
8347 ac_status=$?
8348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8349 (exit $ac_status); }; } &&
8350 { ac_try='test -s conftest.$ac_objext'
8351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8352 (eval $ac_try) 2>&5
8353 ac_status=$?
8354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8355 (exit $ac_status); }; }; then
8356 ac_lo=0 ac_mid=0
8357 while :; do
8358 cat >conftest.$ac_ext <<_ACEOF
8359 /* confdefs.h. */
8360 _ACEOF
8361 cat confdefs.h >>conftest.$ac_ext
8362 cat >>conftest.$ac_ext <<_ACEOF
8363 /* end confdefs.h. */
8364 $ac_includes_default
8365 int
8366 main ()
8367 {
8368 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
8369 test_array [0] = 0
8370
8371 ;
8372 return 0;
8373 }
8374 _ACEOF
8375 rm -f conftest.$ac_objext
8376 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8377 (eval $ac_compile) 2>conftest.er1
8378 ac_status=$?
8379 grep -v '^ *+' conftest.er1 >conftest.err
8380 rm -f conftest.er1
8381 cat conftest.err >&5
8382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8383 (exit $ac_status); } &&
8384 { ac_try='test -z "$ac_c_werror_flag"
8385 || test ! -s conftest.err'
8386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8387 (eval $ac_try) 2>&5
8388 ac_status=$?
8389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8390 (exit $ac_status); }; } &&
8391 { ac_try='test -s conftest.$ac_objext'
8392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8393 (eval $ac_try) 2>&5
8394 ac_status=$?
8395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8396 (exit $ac_status); }; }; then
8397 ac_hi=$ac_mid; break
8398 else
8399 echo "$as_me: failed program was:" >&5
8400 sed 's/^/| /' conftest.$ac_ext >&5
8401
8402 ac_lo=`expr $ac_mid + 1`
8403 if test $ac_lo -le $ac_mid; then
8404 ac_lo= ac_hi=
8405 break
8406 fi
8407 ac_mid=`expr 2 '*' $ac_mid + 1`
8408 fi
8409 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8410 done
8411 else
8412 echo "$as_me: failed program was:" >&5
8413 sed 's/^/| /' conftest.$ac_ext >&5
8414
8415 cat >conftest.$ac_ext <<_ACEOF
8416 /* confdefs.h. */
8417 _ACEOF
8418 cat confdefs.h >>conftest.$ac_ext
8419 cat >>conftest.$ac_ext <<_ACEOF
8420 /* end confdefs.h. */
8421 $ac_includes_default
8422 int
8423 main ()
8424 {
8425 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
8426 test_array [0] = 0
8427
8428 ;
8429 return 0;
8430 }
8431 _ACEOF
8432 rm -f conftest.$ac_objext
8433 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8434 (eval $ac_compile) 2>conftest.er1
8435 ac_status=$?
8436 grep -v '^ *+' conftest.er1 >conftest.err
8437 rm -f conftest.er1
8438 cat conftest.err >&5
8439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8440 (exit $ac_status); } &&
8441 { ac_try='test -z "$ac_c_werror_flag"
8442 || test ! -s conftest.err'
8443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8444 (eval $ac_try) 2>&5
8445 ac_status=$?
8446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8447 (exit $ac_status); }; } &&
8448 { ac_try='test -s conftest.$ac_objext'
8449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8450 (eval $ac_try) 2>&5
8451 ac_status=$?
8452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8453 (exit $ac_status); }; }; then
8454 ac_hi=-1 ac_mid=-1
8455 while :; do
8456 cat >conftest.$ac_ext <<_ACEOF
8457 /* confdefs.h. */
8458 _ACEOF
8459 cat confdefs.h >>conftest.$ac_ext
8460 cat >>conftest.$ac_ext <<_ACEOF
8461 /* end confdefs.h. */
8462 $ac_includes_default
8463 int
8464 main ()
8465 {
8466 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
8467 test_array [0] = 0
8468
8469 ;
8470 return 0;
8471 }
8472 _ACEOF
8473 rm -f conftest.$ac_objext
8474 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8475 (eval $ac_compile) 2>conftest.er1
8476 ac_status=$?
8477 grep -v '^ *+' conftest.er1 >conftest.err
8478 rm -f conftest.er1
8479 cat conftest.err >&5
8480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8481 (exit $ac_status); } &&
8482 { ac_try='test -z "$ac_c_werror_flag"
8483 || test ! -s conftest.err'
8484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8485 (eval $ac_try) 2>&5
8486 ac_status=$?
8487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8488 (exit $ac_status); }; } &&
8489 { ac_try='test -s conftest.$ac_objext'
8490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8491 (eval $ac_try) 2>&5
8492 ac_status=$?
8493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8494 (exit $ac_status); }; }; then
8495 ac_lo=$ac_mid; break
8496 else
8497 echo "$as_me: failed program was:" >&5
8498 sed 's/^/| /' conftest.$ac_ext >&5
8499
8500 ac_hi=`expr '(' $ac_mid ')' - 1`
8501 if test $ac_mid -le $ac_hi; then
8502 ac_lo= ac_hi=
8503 break
8504 fi
8505 ac_mid=`expr 2 '*' $ac_mid`
8506 fi
8507 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8508 done
8509 else
8510 echo "$as_me: failed program was:" >&5
8511 sed 's/^/| /' conftest.$ac_ext >&5
8512
8513 ac_lo= ac_hi=
8514 fi
8515 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8516 fi
8517 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8518 # Binary search between lo and hi bounds.
8519 while test "x$ac_lo" != "x$ac_hi"; do
8520 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8521 cat >conftest.$ac_ext <<_ACEOF
8522 /* confdefs.h. */
8523 _ACEOF
8524 cat confdefs.h >>conftest.$ac_ext
8525 cat >>conftest.$ac_ext <<_ACEOF
8526 /* end confdefs.h. */
8527 $ac_includes_default
8528 int
8529 main ()
8530 {
8531 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
8532 test_array [0] = 0
8533
8534 ;
8535 return 0;
8536 }
8537 _ACEOF
8538 rm -f conftest.$ac_objext
8539 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8540 (eval $ac_compile) 2>conftest.er1
8541 ac_status=$?
8542 grep -v '^ *+' conftest.er1 >conftest.err
8543 rm -f conftest.er1
8544 cat conftest.err >&5
8545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8546 (exit $ac_status); } &&
8547 { ac_try='test -z "$ac_c_werror_flag"
8548 || test ! -s conftest.err'
8549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8550 (eval $ac_try) 2>&5
8551 ac_status=$?
8552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8553 (exit $ac_status); }; } &&
8554 { ac_try='test -s conftest.$ac_objext'
8555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8556 (eval $ac_try) 2>&5
8557 ac_status=$?
8558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8559 (exit $ac_status); }; }; then
8560 ac_hi=$ac_mid
8561 else
8562 echo "$as_me: failed program was:" >&5
8563 sed 's/^/| /' conftest.$ac_ext >&5
8564
8565 ac_lo=`expr '(' $ac_mid ')' + 1`
8566 fi
8567 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8568 done
8569 case $ac_lo in
8570 ?*) ac_cv_sizeof_void_p=$ac_lo;;
8571 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
8572 See \`config.log' for more details." >&5
8573 echo "$as_me: error: cannot compute sizeof (void *), 77
8574 See \`config.log' for more details." >&2;}
8575 { (exit 1); exit 1; }; } ;;
8576 esac
8577 else
8578 if test "$cross_compiling" = yes; then
8579 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
8580 See \`config.log' for more details." >&5
8581 echo "$as_me: error: cannot run test program while cross compiling
8582 See \`config.log' for more details." >&2;}
8583 { (exit 1); exit 1; }; }
8584 else
8585 cat >conftest.$ac_ext <<_ACEOF
8586 /* confdefs.h. */
8587 _ACEOF
8588 cat confdefs.h >>conftest.$ac_ext
8589 cat >>conftest.$ac_ext <<_ACEOF
8590 /* end confdefs.h. */
8591 $ac_includes_default
8592 long longval () { return (long) (sizeof (void *)); }
8593 unsigned long ulongval () { return (long) (sizeof (void *)); }
8594 #include <stdio.h>
8595 #include <stdlib.h>
8596 int
8597 main ()
8598 {
8599
8600 FILE *f = fopen ("conftest.val", "w");
8601 if (! f)
8602 exit (1);
8603 if (((long) (sizeof (void *))) < 0)
8604 {
8605 long i = longval ();
8606 if (i != ((long) (sizeof (void *))))
8607 exit (1);
8608 fprintf (f, "%ld\n", i);
8609 }
8610 else
8611 {
8612 unsigned long i = ulongval ();
8613 if (i != ((long) (sizeof (void *))))
8614 exit (1);
8615 fprintf (f, "%lu\n", i);
8616 }
8617 exit (ferror (f) || fclose (f) != 0);
8618
8619 ;
8620 return 0;
8621 }
8622 _ACEOF
8623 rm -f conftest$ac_exeext
8624 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8625 (eval $ac_link) 2>&5
8626 ac_status=$?
8627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8628 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8630 (eval $ac_try) 2>&5
8631 ac_status=$?
8632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8633 (exit $ac_status); }; }; then
8634 ac_cv_sizeof_void_p=`cat conftest.val`
8635 else
8636 echo "$as_me: program exited with status $ac_status" >&5
8637 echo "$as_me: failed program was:" >&5
8638 sed 's/^/| /' conftest.$ac_ext >&5
8639
8640 ( exit $ac_status )
8641 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
8642 See \`config.log' for more details." >&5
8643 echo "$as_me: error: cannot compute sizeof (void *), 77
8644 See \`config.log' for more details." >&2;}
8645 { (exit 1); exit 1; }; }
8646 fi
8647 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8648 fi
8649 fi
8650 rm -f conftest.val
8651 else
8652 ac_cv_sizeof_void_p=0
8653 fi
8654 fi
8655 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
8656 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
8657 cat >>confdefs.h <<_ACEOF
8658 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
8659 _ACEOF
8660
8661 ;;
8662 esac
8663
8664 # Lacking an uint64_t? Test size of long
8665 case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
8666 stddef.h:*:* | *:no:no) echo "$as_me:$LINENO: checking for long" >&5
8667 echo $ECHO_N "checking for long... $ECHO_C" >&6
8668 if test "${ac_cv_type_long+set}" = set; then
8669 echo $ECHO_N "(cached) $ECHO_C" >&6
8670 else
8671 cat >conftest.$ac_ext <<_ACEOF
8672 /* confdefs.h. */
8673 _ACEOF
8674 cat confdefs.h >>conftest.$ac_ext
8675 cat >>conftest.$ac_ext <<_ACEOF
8676 /* end confdefs.h. */
8677 $ac_includes_default
8678 int
8679 main ()
8680 {
8681 if ((long *) 0)
8682 return 0;
8683 if (sizeof (long))
8684 return 0;
8685 ;
8686 return 0;
8687 }
8688 _ACEOF
8689 rm -f conftest.$ac_objext
8690 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8691 (eval $ac_compile) 2>conftest.er1
8692 ac_status=$?
8693 grep -v '^ *+' conftest.er1 >conftest.err
8694 rm -f conftest.er1
8695 cat conftest.err >&5
8696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8697 (exit $ac_status); } &&
8698 { ac_try='test -z "$ac_c_werror_flag"
8699 || test ! -s conftest.err'
8700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8701 (eval $ac_try) 2>&5
8702 ac_status=$?
8703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8704 (exit $ac_status); }; } &&
8705 { ac_try='test -s conftest.$ac_objext'
8706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8707 (eval $ac_try) 2>&5
8708 ac_status=$?
8709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8710 (exit $ac_status); }; }; then
8711 ac_cv_type_long=yes
8712 else
8713 echo "$as_me: failed program was:" >&5
8714 sed 's/^/| /' conftest.$ac_ext >&5
8715
8716 ac_cv_type_long=no
8717 fi
8718 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8719 fi
8720 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
8721 echo "${ECHO_T}$ac_cv_type_long" >&6
8722
8723 echo "$as_me:$LINENO: checking size of long" >&5
8724 echo $ECHO_N "checking size of long... $ECHO_C" >&6
8725 if test "${ac_cv_sizeof_long+set}" = set; then
8726 echo $ECHO_N "(cached) $ECHO_C" >&6
8727 else
8728 if test "$ac_cv_type_long" = yes; then
8729 # The cast to unsigned long works around a bug in the HP C Compiler
8730 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8731 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8732 # This bug is HP SR number 8606223364.
8733 if test "$cross_compiling" = yes; then
8734 # Depending upon the size, compute the lo and hi bounds.
8735 cat >conftest.$ac_ext <<_ACEOF
8736 /* confdefs.h. */
8737 _ACEOF
8738 cat confdefs.h >>conftest.$ac_ext
8739 cat >>conftest.$ac_ext <<_ACEOF
8740 /* end confdefs.h. */
8741 $ac_includes_default
8742 int
8743 main ()
8744 {
8745 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
8746 test_array [0] = 0
8747
8748 ;
8749 return 0;
8750 }
8751 _ACEOF
8752 rm -f conftest.$ac_objext
8753 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8754 (eval $ac_compile) 2>conftest.er1
8755 ac_status=$?
8756 grep -v '^ *+' conftest.er1 >conftest.err
8757 rm -f conftest.er1
8758 cat conftest.err >&5
8759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8760 (exit $ac_status); } &&
8761 { ac_try='test -z "$ac_c_werror_flag"
8762 || test ! -s conftest.err'
8763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8764 (eval $ac_try) 2>&5
8765 ac_status=$?
8766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8767 (exit $ac_status); }; } &&
8768 { ac_try='test -s conftest.$ac_objext'
8769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8770 (eval $ac_try) 2>&5
8771 ac_status=$?
8772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8773 (exit $ac_status); }; }; then
8774 ac_lo=0 ac_mid=0
8775 while :; do
8776 cat >conftest.$ac_ext <<_ACEOF
8777 /* confdefs.h. */
8778 _ACEOF
8779 cat confdefs.h >>conftest.$ac_ext
8780 cat >>conftest.$ac_ext <<_ACEOF
8781 /* end confdefs.h. */
8782 $ac_includes_default
8783 int
8784 main ()
8785 {
8786 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
8787 test_array [0] = 0
8788
8789 ;
8790 return 0;
8791 }
8792 _ACEOF
8793 rm -f conftest.$ac_objext
8794 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8795 (eval $ac_compile) 2>conftest.er1
8796 ac_status=$?
8797 grep -v '^ *+' conftest.er1 >conftest.err
8798 rm -f conftest.er1
8799 cat conftest.err >&5
8800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8801 (exit $ac_status); } &&
8802 { ac_try='test -z "$ac_c_werror_flag"
8803 || test ! -s conftest.err'
8804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8805 (eval $ac_try) 2>&5
8806 ac_status=$?
8807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8808 (exit $ac_status); }; } &&
8809 { ac_try='test -s conftest.$ac_objext'
8810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8811 (eval $ac_try) 2>&5
8812 ac_status=$?
8813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8814 (exit $ac_status); }; }; then
8815 ac_hi=$ac_mid; break
8816 else
8817 echo "$as_me: failed program was:" >&5
8818 sed 's/^/| /' conftest.$ac_ext >&5
8819
8820 ac_lo=`expr $ac_mid + 1`
8821 if test $ac_lo -le $ac_mid; then
8822 ac_lo= ac_hi=
8823 break
8824 fi
8825 ac_mid=`expr 2 '*' $ac_mid + 1`
8826 fi
8827 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8828 done
8829 else
8830 echo "$as_me: failed program was:" >&5
8831 sed 's/^/| /' conftest.$ac_ext >&5
8832
8833 cat >conftest.$ac_ext <<_ACEOF
8834 /* confdefs.h. */
8835 _ACEOF
8836 cat confdefs.h >>conftest.$ac_ext
8837 cat >>conftest.$ac_ext <<_ACEOF
8838 /* end confdefs.h. */
8839 $ac_includes_default
8840 int
8841 main ()
8842 {
8843 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
8844 test_array [0] = 0
8845
8846 ;
8847 return 0;
8848 }
8849 _ACEOF
8850 rm -f conftest.$ac_objext
8851 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8852 (eval $ac_compile) 2>conftest.er1
8853 ac_status=$?
8854 grep -v '^ *+' conftest.er1 >conftest.err
8855 rm -f conftest.er1
8856 cat conftest.err >&5
8857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8858 (exit $ac_status); } &&
8859 { ac_try='test -z "$ac_c_werror_flag"
8860 || test ! -s conftest.err'
8861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8862 (eval $ac_try) 2>&5
8863 ac_status=$?
8864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8865 (exit $ac_status); }; } &&
8866 { ac_try='test -s conftest.$ac_objext'
8867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8868 (eval $ac_try) 2>&5
8869 ac_status=$?
8870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8871 (exit $ac_status); }; }; then
8872 ac_hi=-1 ac_mid=-1
8873 while :; do
8874 cat >conftest.$ac_ext <<_ACEOF
8875 /* confdefs.h. */
8876 _ACEOF
8877 cat confdefs.h >>conftest.$ac_ext
8878 cat >>conftest.$ac_ext <<_ACEOF
8879 /* end confdefs.h. */
8880 $ac_includes_default
8881 int
8882 main ()
8883 {
8884 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
8885 test_array [0] = 0
8886
8887 ;
8888 return 0;
8889 }
8890 _ACEOF
8891 rm -f conftest.$ac_objext
8892 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8893 (eval $ac_compile) 2>conftest.er1
8894 ac_status=$?
8895 grep -v '^ *+' conftest.er1 >conftest.err
8896 rm -f conftest.er1
8897 cat conftest.err >&5
8898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8899 (exit $ac_status); } &&
8900 { ac_try='test -z "$ac_c_werror_flag"
8901 || test ! -s conftest.err'
8902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8903 (eval $ac_try) 2>&5
8904 ac_status=$?
8905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8906 (exit $ac_status); }; } &&
8907 { ac_try='test -s conftest.$ac_objext'
8908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8909 (eval $ac_try) 2>&5
8910 ac_status=$?
8911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8912 (exit $ac_status); }; }; then
8913 ac_lo=$ac_mid; break
8914 else
8915 echo "$as_me: failed program was:" >&5
8916 sed 's/^/| /' conftest.$ac_ext >&5
8917
8918 ac_hi=`expr '(' $ac_mid ')' - 1`
8919 if test $ac_mid -le $ac_hi; then
8920 ac_lo= ac_hi=
8921 break
8922 fi
8923 ac_mid=`expr 2 '*' $ac_mid`
8924 fi
8925 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8926 done
8927 else
8928 echo "$as_me: failed program was:" >&5
8929 sed 's/^/| /' conftest.$ac_ext >&5
8930
8931 ac_lo= ac_hi=
8932 fi
8933 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8934 fi
8935 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8936 # Binary search between lo and hi bounds.
8937 while test "x$ac_lo" != "x$ac_hi"; do
8938 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8939 cat >conftest.$ac_ext <<_ACEOF
8940 /* confdefs.h. */
8941 _ACEOF
8942 cat confdefs.h >>conftest.$ac_ext
8943 cat >>conftest.$ac_ext <<_ACEOF
8944 /* end confdefs.h. */
8945 $ac_includes_default
8946 int
8947 main ()
8948 {
8949 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
8950 test_array [0] = 0
8951
8952 ;
8953 return 0;
8954 }
8955 _ACEOF
8956 rm -f conftest.$ac_objext
8957 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8958 (eval $ac_compile) 2>conftest.er1
8959 ac_status=$?
8960 grep -v '^ *+' conftest.er1 >conftest.err
8961 rm -f conftest.er1
8962 cat conftest.err >&5
8963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8964 (exit $ac_status); } &&
8965 { ac_try='test -z "$ac_c_werror_flag"
8966 || test ! -s conftest.err'
8967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8968 (eval $ac_try) 2>&5
8969 ac_status=$?
8970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8971 (exit $ac_status); }; } &&
8972 { ac_try='test -s conftest.$ac_objext'
8973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8974 (eval $ac_try) 2>&5
8975 ac_status=$?
8976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8977 (exit $ac_status); }; }; then
8978 ac_hi=$ac_mid
8979 else
8980 echo "$as_me: failed program was:" >&5
8981 sed 's/^/| /' conftest.$ac_ext >&5
8982
8983 ac_lo=`expr '(' $ac_mid ')' + 1`
8984 fi
8985 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8986 done
8987 case $ac_lo in
8988 ?*) ac_cv_sizeof_long=$ac_lo;;
8989 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
8990 See \`config.log' for more details." >&5
8991 echo "$as_me: error: cannot compute sizeof (long), 77
8992 See \`config.log' for more details." >&2;}
8993 { (exit 1); exit 1; }; } ;;
8994 esac
8995 else
8996 if test "$cross_compiling" = yes; then
8997 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
8998 See \`config.log' for more details." >&5
8999 echo "$as_me: error: cannot run test program while cross compiling
9000 See \`config.log' for more details." >&2;}
9001 { (exit 1); exit 1; }; }
9002 else
9003 cat >conftest.$ac_ext <<_ACEOF
9004 /* confdefs.h. */
9005 _ACEOF
9006 cat confdefs.h >>conftest.$ac_ext
9007 cat >>conftest.$ac_ext <<_ACEOF
9008 /* end confdefs.h. */
9009 $ac_includes_default
9010 long longval () { return (long) (sizeof (long)); }
9011 unsigned long ulongval () { return (long) (sizeof (long)); }
9012 #include <stdio.h>
9013 #include <stdlib.h>
9014 int
9015 main ()
9016 {
9017
9018 FILE *f = fopen ("conftest.val", "w");
9019 if (! f)
9020 exit (1);
9021 if (((long) (sizeof (long))) < 0)
9022 {
9023 long i = longval ();
9024 if (i != ((long) (sizeof (long))))
9025 exit (1);
9026 fprintf (f, "%ld\n", i);
9027 }
9028 else
9029 {
9030 unsigned long i = ulongval ();
9031 if (i != ((long) (sizeof (long))))
9032 exit (1);
9033 fprintf (f, "%lu\n", i);
9034 }
9035 exit (ferror (f) || fclose (f) != 0);
9036
9037 ;
9038 return 0;
9039 }
9040 _ACEOF
9041 rm -f conftest$ac_exeext
9042 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9043 (eval $ac_link) 2>&5
9044 ac_status=$?
9045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9046 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9048 (eval $ac_try) 2>&5
9049 ac_status=$?
9050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9051 (exit $ac_status); }; }; then
9052 ac_cv_sizeof_long=`cat conftest.val`
9053 else
9054 echo "$as_me: program exited with status $ac_status" >&5
9055 echo "$as_me: failed program was:" >&5
9056 sed 's/^/| /' conftest.$ac_ext >&5
9057
9058 ( exit $ac_status )
9059 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
9060 See \`config.log' for more details." >&5
9061 echo "$as_me: error: cannot compute sizeof (long), 77
9062 See \`config.log' for more details." >&2;}
9063 { (exit 1); exit 1; }; }
9064 fi
9065 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9066 fi
9067 fi
9068 rm -f conftest.val
9069 else
9070 ac_cv_sizeof_long=0
9071 fi
9072 fi
9073 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
9074 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
9075 cat >>confdefs.h <<_ACEOF
9076 #define SIZEOF_LONG $ac_cv_sizeof_long
9077 _ACEOF
9078
9079 ;;
9080 esac
9081
9082 if test $acx_cv_header_stdint = stddef.h; then
9083 # Lacking a good header? Test size of everything and deduce all types.
9084 echo "$as_me:$LINENO: checking for int" >&5
9085 echo $ECHO_N "checking for int... $ECHO_C" >&6
9086 if test "${ac_cv_type_int+set}" = set; then
9087 echo $ECHO_N "(cached) $ECHO_C" >&6
9088 else
9089 cat >conftest.$ac_ext <<_ACEOF
9090 /* confdefs.h. */
9091 _ACEOF
9092 cat confdefs.h >>conftest.$ac_ext
9093 cat >>conftest.$ac_ext <<_ACEOF
9094 /* end confdefs.h. */
9095 $ac_includes_default
9096 int
9097 main ()
9098 {
9099 if ((int *) 0)
9100 return 0;
9101 if (sizeof (int))
9102 return 0;
9103 ;
9104 return 0;
9105 }
9106 _ACEOF
9107 rm -f conftest.$ac_objext
9108 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9109 (eval $ac_compile) 2>conftest.er1
9110 ac_status=$?
9111 grep -v '^ *+' conftest.er1 >conftest.err
9112 rm -f conftest.er1
9113 cat conftest.err >&5
9114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9115 (exit $ac_status); } &&
9116 { ac_try='test -z "$ac_c_werror_flag"
9117 || test ! -s conftest.err'
9118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9119 (eval $ac_try) 2>&5
9120 ac_status=$?
9121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9122 (exit $ac_status); }; } &&
9123 { ac_try='test -s conftest.$ac_objext'
9124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9125 (eval $ac_try) 2>&5
9126 ac_status=$?
9127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9128 (exit $ac_status); }; }; then
9129 ac_cv_type_int=yes
9130 else
9131 echo "$as_me: failed program was:" >&5
9132 sed 's/^/| /' conftest.$ac_ext >&5
9133
9134 ac_cv_type_int=no
9135 fi
9136 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9137 fi
9138 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
9139 echo "${ECHO_T}$ac_cv_type_int" >&6
9140
9141 echo "$as_me:$LINENO: checking size of int" >&5
9142 echo $ECHO_N "checking size of int... $ECHO_C" >&6
9143 if test "${ac_cv_sizeof_int+set}" = set; then
9144 echo $ECHO_N "(cached) $ECHO_C" >&6
9145 else
9146 if test "$ac_cv_type_int" = yes; then
9147 # The cast to unsigned long works around a bug in the HP C Compiler
9148 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9149 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9150 # This bug is HP SR number 8606223364.
9151 if test "$cross_compiling" = yes; then
9152 # Depending upon the size, compute the lo and hi bounds.
9153 cat >conftest.$ac_ext <<_ACEOF
9154 /* confdefs.h. */
9155 _ACEOF
9156 cat confdefs.h >>conftest.$ac_ext
9157 cat >>conftest.$ac_ext <<_ACEOF
9158 /* end confdefs.h. */
9159 $ac_includes_default
9160 int
9161 main ()
9162 {
9163 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
9164 test_array [0] = 0
9165
9166 ;
9167 return 0;
9168 }
9169 _ACEOF
9170 rm -f conftest.$ac_objext
9171 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9172 (eval $ac_compile) 2>conftest.er1
9173 ac_status=$?
9174 grep -v '^ *+' conftest.er1 >conftest.err
9175 rm -f conftest.er1
9176 cat conftest.err >&5
9177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9178 (exit $ac_status); } &&
9179 { ac_try='test -z "$ac_c_werror_flag"
9180 || test ! -s conftest.err'
9181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9182 (eval $ac_try) 2>&5
9183 ac_status=$?
9184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9185 (exit $ac_status); }; } &&
9186 { ac_try='test -s conftest.$ac_objext'
9187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9188 (eval $ac_try) 2>&5
9189 ac_status=$?
9190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9191 (exit $ac_status); }; }; then
9192 ac_lo=0 ac_mid=0
9193 while :; do
9194 cat >conftest.$ac_ext <<_ACEOF
9195 /* confdefs.h. */
9196 _ACEOF
9197 cat confdefs.h >>conftest.$ac_ext
9198 cat >>conftest.$ac_ext <<_ACEOF
9199 /* end confdefs.h. */
9200 $ac_includes_default
9201 int
9202 main ()
9203 {
9204 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
9205 test_array [0] = 0
9206
9207 ;
9208 return 0;
9209 }
9210 _ACEOF
9211 rm -f conftest.$ac_objext
9212 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&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 ac_hi=$ac_mid; break
9234 else
9235 echo "$as_me: failed program was:" >&5
9236 sed 's/^/| /' conftest.$ac_ext >&5
9237
9238 ac_lo=`expr $ac_mid + 1`
9239 if test $ac_lo -le $ac_mid; then
9240 ac_lo= ac_hi=
9241 break
9242 fi
9243 ac_mid=`expr 2 '*' $ac_mid + 1`
9244 fi
9245 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9246 done
9247 else
9248 echo "$as_me: failed program was:" >&5
9249 sed 's/^/| /' conftest.$ac_ext >&5
9250
9251 cat >conftest.$ac_ext <<_ACEOF
9252 /* confdefs.h. */
9253 _ACEOF
9254 cat confdefs.h >>conftest.$ac_ext
9255 cat >>conftest.$ac_ext <<_ACEOF
9256 /* end confdefs.h. */
9257 $ac_includes_default
9258 int
9259 main ()
9260 {
9261 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
9262 test_array [0] = 0
9263
9264 ;
9265 return 0;
9266 }
9267 _ACEOF
9268 rm -f conftest.$ac_objext
9269 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9270 (eval $ac_compile) 2>conftest.er1
9271 ac_status=$?
9272 grep -v '^ *+' conftest.er1 >conftest.err
9273 rm -f conftest.er1
9274 cat conftest.err >&5
9275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9276 (exit $ac_status); } &&
9277 { ac_try='test -z "$ac_c_werror_flag"
9278 || test ! -s conftest.err'
9279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9280 (eval $ac_try) 2>&5
9281 ac_status=$?
9282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9283 (exit $ac_status); }; } &&
9284 { ac_try='test -s conftest.$ac_objext'
9285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9286 (eval $ac_try) 2>&5
9287 ac_status=$?
9288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9289 (exit $ac_status); }; }; then
9290 ac_hi=-1 ac_mid=-1
9291 while :; do
9292 cat >conftest.$ac_ext <<_ACEOF
9293 /* confdefs.h. */
9294 _ACEOF
9295 cat confdefs.h >>conftest.$ac_ext
9296 cat >>conftest.$ac_ext <<_ACEOF
9297 /* end confdefs.h. */
9298 $ac_includes_default
9299 int
9300 main ()
9301 {
9302 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
9303 test_array [0] = 0
9304
9305 ;
9306 return 0;
9307 }
9308 _ACEOF
9309 rm -f conftest.$ac_objext
9310 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9311 (eval $ac_compile) 2>conftest.er1
9312 ac_status=$?
9313 grep -v '^ *+' conftest.er1 >conftest.err
9314 rm -f conftest.er1
9315 cat conftest.err >&5
9316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9317 (exit $ac_status); } &&
9318 { ac_try='test -z "$ac_c_werror_flag"
9319 || test ! -s conftest.err'
9320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9321 (eval $ac_try) 2>&5
9322 ac_status=$?
9323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9324 (exit $ac_status); }; } &&
9325 { ac_try='test -s conftest.$ac_objext'
9326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9327 (eval $ac_try) 2>&5
9328 ac_status=$?
9329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9330 (exit $ac_status); }; }; then
9331 ac_lo=$ac_mid; break
9332 else
9333 echo "$as_me: failed program was:" >&5
9334 sed 's/^/| /' conftest.$ac_ext >&5
9335
9336 ac_hi=`expr '(' $ac_mid ')' - 1`
9337 if test $ac_mid -le $ac_hi; then
9338 ac_lo= ac_hi=
9339 break
9340 fi
9341 ac_mid=`expr 2 '*' $ac_mid`
9342 fi
9343 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9344 done
9345 else
9346 echo "$as_me: failed program was:" >&5
9347 sed 's/^/| /' conftest.$ac_ext >&5
9348
9349 ac_lo= ac_hi=
9350 fi
9351 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9352 fi
9353 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9354 # Binary search between lo and hi bounds.
9355 while test "x$ac_lo" != "x$ac_hi"; do
9356 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9357 cat >conftest.$ac_ext <<_ACEOF
9358 /* confdefs.h. */
9359 _ACEOF
9360 cat confdefs.h >>conftest.$ac_ext
9361 cat >>conftest.$ac_ext <<_ACEOF
9362 /* end confdefs.h. */
9363 $ac_includes_default
9364 int
9365 main ()
9366 {
9367 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
9368 test_array [0] = 0
9369
9370 ;
9371 return 0;
9372 }
9373 _ACEOF
9374 rm -f conftest.$ac_objext
9375 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9376 (eval $ac_compile) 2>conftest.er1
9377 ac_status=$?
9378 grep -v '^ *+' conftest.er1 >conftest.err
9379 rm -f conftest.er1
9380 cat conftest.err >&5
9381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9382 (exit $ac_status); } &&
9383 { ac_try='test -z "$ac_c_werror_flag"
9384 || test ! -s conftest.err'
9385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9386 (eval $ac_try) 2>&5
9387 ac_status=$?
9388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9389 (exit $ac_status); }; } &&
9390 { ac_try='test -s conftest.$ac_objext'
9391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9392 (eval $ac_try) 2>&5
9393 ac_status=$?
9394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9395 (exit $ac_status); }; }; then
9396 ac_hi=$ac_mid
9397 else
9398 echo "$as_me: failed program was:" >&5
9399 sed 's/^/| /' conftest.$ac_ext >&5
9400
9401 ac_lo=`expr '(' $ac_mid ')' + 1`
9402 fi
9403 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9404 done
9405 case $ac_lo in
9406 ?*) ac_cv_sizeof_int=$ac_lo;;
9407 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
9408 See \`config.log' for more details." >&5
9409 echo "$as_me: error: cannot compute sizeof (int), 77
9410 See \`config.log' for more details." >&2;}
9411 { (exit 1); exit 1; }; } ;;
9412 esac
9413 else
9414 if test "$cross_compiling" = yes; then
9415 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9416 See \`config.log' for more details." >&5
9417 echo "$as_me: error: cannot run test program while cross compiling
9418 See \`config.log' for more details." >&2;}
9419 { (exit 1); exit 1; }; }
9420 else
9421 cat >conftest.$ac_ext <<_ACEOF
9422 /* confdefs.h. */
9423 _ACEOF
9424 cat confdefs.h >>conftest.$ac_ext
9425 cat >>conftest.$ac_ext <<_ACEOF
9426 /* end confdefs.h. */
9427 $ac_includes_default
9428 long longval () { return (long) (sizeof (int)); }
9429 unsigned long ulongval () { return (long) (sizeof (int)); }
9430 #include <stdio.h>
9431 #include <stdlib.h>
9432 int
9433 main ()
9434 {
9435
9436 FILE *f = fopen ("conftest.val", "w");
9437 if (! f)
9438 exit (1);
9439 if (((long) (sizeof (int))) < 0)
9440 {
9441 long i = longval ();
9442 if (i != ((long) (sizeof (int))))
9443 exit (1);
9444 fprintf (f, "%ld\n", i);
9445 }
9446 else
9447 {
9448 unsigned long i = ulongval ();
9449 if (i != ((long) (sizeof (int))))
9450 exit (1);
9451 fprintf (f, "%lu\n", i);
9452 }
9453 exit (ferror (f) || fclose (f) != 0);
9454
9455 ;
9456 return 0;
9457 }
9458 _ACEOF
9459 rm -f conftest$ac_exeext
9460 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9461 (eval $ac_link) 2>&5
9462 ac_status=$?
9463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9464 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9466 (eval $ac_try) 2>&5
9467 ac_status=$?
9468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9469 (exit $ac_status); }; }; then
9470 ac_cv_sizeof_int=`cat conftest.val`
9471 else
9472 echo "$as_me: program exited with status $ac_status" >&5
9473 echo "$as_me: failed program was:" >&5
9474 sed 's/^/| /' conftest.$ac_ext >&5
9475
9476 ( exit $ac_status )
9477 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
9478 See \`config.log' for more details." >&5
9479 echo "$as_me: error: cannot compute sizeof (int), 77
9480 See \`config.log' for more details." >&2;}
9481 { (exit 1); exit 1; }; }
9482 fi
9483 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9484 fi
9485 fi
9486 rm -f conftest.val
9487 else
9488 ac_cv_sizeof_int=0
9489 fi
9490 fi
9491 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
9492 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
9493 cat >>confdefs.h <<_ACEOF
9494 #define SIZEOF_INT $ac_cv_sizeof_int
9495 _ACEOF
9496
9497
9498 echo "$as_me:$LINENO: checking for short" >&5
9499 echo $ECHO_N "checking for short... $ECHO_C" >&6
9500 if test "${ac_cv_type_short+set}" = set; then
9501 echo $ECHO_N "(cached) $ECHO_C" >&6
9502 else
9503 cat >conftest.$ac_ext <<_ACEOF
9504 /* confdefs.h. */
9505 _ACEOF
9506 cat confdefs.h >>conftest.$ac_ext
9507 cat >>conftest.$ac_ext <<_ACEOF
9508 /* end confdefs.h. */
9509 $ac_includes_default
9510 int
9511 main ()
9512 {
9513 if ((short *) 0)
9514 return 0;
9515 if (sizeof (short))
9516 return 0;
9517 ;
9518 return 0;
9519 }
9520 _ACEOF
9521 rm -f conftest.$ac_objext
9522 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9523 (eval $ac_compile) 2>conftest.er1
9524 ac_status=$?
9525 grep -v '^ *+' conftest.er1 >conftest.err
9526 rm -f conftest.er1
9527 cat conftest.err >&5
9528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9529 (exit $ac_status); } &&
9530 { ac_try='test -z "$ac_c_werror_flag"
9531 || test ! -s conftest.err'
9532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9533 (eval $ac_try) 2>&5
9534 ac_status=$?
9535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9536 (exit $ac_status); }; } &&
9537 { ac_try='test -s conftest.$ac_objext'
9538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9539 (eval $ac_try) 2>&5
9540 ac_status=$?
9541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9542 (exit $ac_status); }; }; then
9543 ac_cv_type_short=yes
9544 else
9545 echo "$as_me: failed program was:" >&5
9546 sed 's/^/| /' conftest.$ac_ext >&5
9547
9548 ac_cv_type_short=no
9549 fi
9550 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9551 fi
9552 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
9553 echo "${ECHO_T}$ac_cv_type_short" >&6
9554
9555 echo "$as_me:$LINENO: checking size of short" >&5
9556 echo $ECHO_N "checking size of short... $ECHO_C" >&6
9557 if test "${ac_cv_sizeof_short+set}" = set; then
9558 echo $ECHO_N "(cached) $ECHO_C" >&6
9559 else
9560 if test "$ac_cv_type_short" = yes; then
9561 # The cast to unsigned long works around a bug in the HP C Compiler
9562 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9563 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9564 # This bug is HP SR number 8606223364.
9565 if test "$cross_compiling" = yes; then
9566 # Depending upon the size, compute the lo and hi bounds.
9567 cat >conftest.$ac_ext <<_ACEOF
9568 /* confdefs.h. */
9569 _ACEOF
9570 cat confdefs.h >>conftest.$ac_ext
9571 cat >>conftest.$ac_ext <<_ACEOF
9572 /* end confdefs.h. */
9573 $ac_includes_default
9574 int
9575 main ()
9576 {
9577 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
9578 test_array [0] = 0
9579
9580 ;
9581 return 0;
9582 }
9583 _ACEOF
9584 rm -f conftest.$ac_objext
9585 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9586 (eval $ac_compile) 2>conftest.er1
9587 ac_status=$?
9588 grep -v '^ *+' conftest.er1 >conftest.err
9589 rm -f conftest.er1
9590 cat conftest.err >&5
9591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9592 (exit $ac_status); } &&
9593 { ac_try='test -z "$ac_c_werror_flag"
9594 || test ! -s conftest.err'
9595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9596 (eval $ac_try) 2>&5
9597 ac_status=$?
9598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9599 (exit $ac_status); }; } &&
9600 { ac_try='test -s conftest.$ac_objext'
9601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9602 (eval $ac_try) 2>&5
9603 ac_status=$?
9604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9605 (exit $ac_status); }; }; then
9606 ac_lo=0 ac_mid=0
9607 while :; do
9608 cat >conftest.$ac_ext <<_ACEOF
9609 /* confdefs.h. */
9610 _ACEOF
9611 cat confdefs.h >>conftest.$ac_ext
9612 cat >>conftest.$ac_ext <<_ACEOF
9613 /* end confdefs.h. */
9614 $ac_includes_default
9615 int
9616 main ()
9617 {
9618 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
9619 test_array [0] = 0
9620
9621 ;
9622 return 0;
9623 }
9624 _ACEOF
9625 rm -f conftest.$ac_objext
9626 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9627 (eval $ac_compile) 2>conftest.er1
9628 ac_status=$?
9629 grep -v '^ *+' conftest.er1 >conftest.err
9630 rm -f conftest.er1
9631 cat conftest.err >&5
9632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9633 (exit $ac_status); } &&
9634 { ac_try='test -z "$ac_c_werror_flag"
9635 || test ! -s conftest.err'
9636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9637 (eval $ac_try) 2>&5
9638 ac_status=$?
9639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9640 (exit $ac_status); }; } &&
9641 { ac_try='test -s conftest.$ac_objext'
9642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9643 (eval $ac_try) 2>&5
9644 ac_status=$?
9645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9646 (exit $ac_status); }; }; then
9647 ac_hi=$ac_mid; break
9648 else
9649 echo "$as_me: failed program was:" >&5
9650 sed 's/^/| /' conftest.$ac_ext >&5
9651
9652 ac_lo=`expr $ac_mid + 1`
9653 if test $ac_lo -le $ac_mid; then
9654 ac_lo= ac_hi=
9655 break
9656 fi
9657 ac_mid=`expr 2 '*' $ac_mid + 1`
9658 fi
9659 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9660 done
9661 else
9662 echo "$as_me: failed program was:" >&5
9663 sed 's/^/| /' conftest.$ac_ext >&5
9664
9665 cat >conftest.$ac_ext <<_ACEOF
9666 /* confdefs.h. */
9667 _ACEOF
9668 cat confdefs.h >>conftest.$ac_ext
9669 cat >>conftest.$ac_ext <<_ACEOF
9670 /* end confdefs.h. */
9671 $ac_includes_default
9672 int
9673 main ()
9674 {
9675 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
9676 test_array [0] = 0
9677
9678 ;
9679 return 0;
9680 }
9681 _ACEOF
9682 rm -f conftest.$ac_objext
9683 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9684 (eval $ac_compile) 2>conftest.er1
9685 ac_status=$?
9686 grep -v '^ *+' conftest.er1 >conftest.err
9687 rm -f conftest.er1
9688 cat conftest.err >&5
9689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9690 (exit $ac_status); } &&
9691 { ac_try='test -z "$ac_c_werror_flag"
9692 || test ! -s conftest.err'
9693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9694 (eval $ac_try) 2>&5
9695 ac_status=$?
9696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9697 (exit $ac_status); }; } &&
9698 { ac_try='test -s conftest.$ac_objext'
9699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9700 (eval $ac_try) 2>&5
9701 ac_status=$?
9702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9703 (exit $ac_status); }; }; then
9704 ac_hi=-1 ac_mid=-1
9705 while :; do
9706 cat >conftest.$ac_ext <<_ACEOF
9707 /* confdefs.h. */
9708 _ACEOF
9709 cat confdefs.h >>conftest.$ac_ext
9710 cat >>conftest.$ac_ext <<_ACEOF
9711 /* end confdefs.h. */
9712 $ac_includes_default
9713 int
9714 main ()
9715 {
9716 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
9717 test_array [0] = 0
9718
9719 ;
9720 return 0;
9721 }
9722 _ACEOF
9723 rm -f conftest.$ac_objext
9724 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9725 (eval $ac_compile) 2>conftest.er1
9726 ac_status=$?
9727 grep -v '^ *+' conftest.er1 >conftest.err
9728 rm -f conftest.er1
9729 cat conftest.err >&5
9730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9731 (exit $ac_status); } &&
9732 { ac_try='test -z "$ac_c_werror_flag"
9733 || test ! -s conftest.err'
9734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9735 (eval $ac_try) 2>&5
9736 ac_status=$?
9737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9738 (exit $ac_status); }; } &&
9739 { ac_try='test -s conftest.$ac_objext'
9740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9741 (eval $ac_try) 2>&5
9742 ac_status=$?
9743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9744 (exit $ac_status); }; }; then
9745 ac_lo=$ac_mid; break
9746 else
9747 echo "$as_me: failed program was:" >&5
9748 sed 's/^/| /' conftest.$ac_ext >&5
9749
9750 ac_hi=`expr '(' $ac_mid ')' - 1`
9751 if test $ac_mid -le $ac_hi; then
9752 ac_lo= ac_hi=
9753 break
9754 fi
9755 ac_mid=`expr 2 '*' $ac_mid`
9756 fi
9757 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9758 done
9759 else
9760 echo "$as_me: failed program was:" >&5
9761 sed 's/^/| /' conftest.$ac_ext >&5
9762
9763 ac_lo= ac_hi=
9764 fi
9765 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9766 fi
9767 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9768 # Binary search between lo and hi bounds.
9769 while test "x$ac_lo" != "x$ac_hi"; do
9770 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9771 cat >conftest.$ac_ext <<_ACEOF
9772 /* confdefs.h. */
9773 _ACEOF
9774 cat confdefs.h >>conftest.$ac_ext
9775 cat >>conftest.$ac_ext <<_ACEOF
9776 /* end confdefs.h. */
9777 $ac_includes_default
9778 int
9779 main ()
9780 {
9781 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
9782 test_array [0] = 0
9783
9784 ;
9785 return 0;
9786 }
9787 _ACEOF
9788 rm -f conftest.$ac_objext
9789 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9790 (eval $ac_compile) 2>conftest.er1
9791 ac_status=$?
9792 grep -v '^ *+' conftest.er1 >conftest.err
9793 rm -f conftest.er1
9794 cat conftest.err >&5
9795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9796 (exit $ac_status); } &&
9797 { ac_try='test -z "$ac_c_werror_flag"
9798 || test ! -s conftest.err'
9799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9800 (eval $ac_try) 2>&5
9801 ac_status=$?
9802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9803 (exit $ac_status); }; } &&
9804 { ac_try='test -s conftest.$ac_objext'
9805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9806 (eval $ac_try) 2>&5
9807 ac_status=$?
9808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9809 (exit $ac_status); }; }; then
9810 ac_hi=$ac_mid
9811 else
9812 echo "$as_me: failed program was:" >&5
9813 sed 's/^/| /' conftest.$ac_ext >&5
9814
9815 ac_lo=`expr '(' $ac_mid ')' + 1`
9816 fi
9817 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9818 done
9819 case $ac_lo in
9820 ?*) ac_cv_sizeof_short=$ac_lo;;
9821 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
9822 See \`config.log' for more details." >&5
9823 echo "$as_me: error: cannot compute sizeof (short), 77
9824 See \`config.log' for more details." >&2;}
9825 { (exit 1); exit 1; }; } ;;
9826 esac
9827 else
9828 if test "$cross_compiling" = yes; then
9829 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9830 See \`config.log' for more details." >&5
9831 echo "$as_me: error: cannot run test program while cross compiling
9832 See \`config.log' for more details." >&2;}
9833 { (exit 1); exit 1; }; }
9834 else
9835 cat >conftest.$ac_ext <<_ACEOF
9836 /* confdefs.h. */
9837 _ACEOF
9838 cat confdefs.h >>conftest.$ac_ext
9839 cat >>conftest.$ac_ext <<_ACEOF
9840 /* end confdefs.h. */
9841 $ac_includes_default
9842 long longval () { return (long) (sizeof (short)); }
9843 unsigned long ulongval () { return (long) (sizeof (short)); }
9844 #include <stdio.h>
9845 #include <stdlib.h>
9846 int
9847 main ()
9848 {
9849
9850 FILE *f = fopen ("conftest.val", "w");
9851 if (! f)
9852 exit (1);
9853 if (((long) (sizeof (short))) < 0)
9854 {
9855 long i = longval ();
9856 if (i != ((long) (sizeof (short))))
9857 exit (1);
9858 fprintf (f, "%ld\n", i);
9859 }
9860 else
9861 {
9862 unsigned long i = ulongval ();
9863 if (i != ((long) (sizeof (short))))
9864 exit (1);
9865 fprintf (f, "%lu\n", i);
9866 }
9867 exit (ferror (f) || fclose (f) != 0);
9868
9869 ;
9870 return 0;
9871 }
9872 _ACEOF
9873 rm -f conftest$ac_exeext
9874 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9875 (eval $ac_link) 2>&5
9876 ac_status=$?
9877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9878 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9880 (eval $ac_try) 2>&5
9881 ac_status=$?
9882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9883 (exit $ac_status); }; }; then
9884 ac_cv_sizeof_short=`cat conftest.val`
9885 else
9886 echo "$as_me: program exited with status $ac_status" >&5
9887 echo "$as_me: failed program was:" >&5
9888 sed 's/^/| /' conftest.$ac_ext >&5
9889
9890 ( exit $ac_status )
9891 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
9892 See \`config.log' for more details." >&5
9893 echo "$as_me: error: cannot compute sizeof (short), 77
9894 See \`config.log' for more details." >&2;}
9895 { (exit 1); exit 1; }; }
9896 fi
9897 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9898 fi
9899 fi
9900 rm -f conftest.val
9901 else
9902 ac_cv_sizeof_short=0
9903 fi
9904 fi
9905 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
9906 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
9907 cat >>confdefs.h <<_ACEOF
9908 #define SIZEOF_SHORT $ac_cv_sizeof_short
9909 _ACEOF
9910
9911
9912 echo "$as_me:$LINENO: checking for char" >&5
9913 echo $ECHO_N "checking for char... $ECHO_C" >&6
9914 if test "${ac_cv_type_char+set}" = set; then
9915 echo $ECHO_N "(cached) $ECHO_C" >&6
9916 else
9917 cat >conftest.$ac_ext <<_ACEOF
9918 /* confdefs.h. */
9919 _ACEOF
9920 cat confdefs.h >>conftest.$ac_ext
9921 cat >>conftest.$ac_ext <<_ACEOF
9922 /* end confdefs.h. */
9923 $ac_includes_default
9924 int
9925 main ()
9926 {
9927 if ((char *) 0)
9928 return 0;
9929 if (sizeof (char))
9930 return 0;
9931 ;
9932 return 0;
9933 }
9934 _ACEOF
9935 rm -f conftest.$ac_objext
9936 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9937 (eval $ac_compile) 2>conftest.er1
9938 ac_status=$?
9939 grep -v '^ *+' conftest.er1 >conftest.err
9940 rm -f conftest.er1
9941 cat conftest.err >&5
9942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9943 (exit $ac_status); } &&
9944 { ac_try='test -z "$ac_c_werror_flag"
9945 || test ! -s conftest.err'
9946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9947 (eval $ac_try) 2>&5
9948 ac_status=$?
9949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9950 (exit $ac_status); }; } &&
9951 { ac_try='test -s conftest.$ac_objext'
9952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9953 (eval $ac_try) 2>&5
9954 ac_status=$?
9955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9956 (exit $ac_status); }; }; then
9957 ac_cv_type_char=yes
9958 else
9959 echo "$as_me: failed program was:" >&5
9960 sed 's/^/| /' conftest.$ac_ext >&5
9961
9962 ac_cv_type_char=no
9963 fi
9964 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9965 fi
9966 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
9967 echo "${ECHO_T}$ac_cv_type_char" >&6
9968
9969 echo "$as_me:$LINENO: checking size of char" >&5
9970 echo $ECHO_N "checking size of char... $ECHO_C" >&6
9971 if test "${ac_cv_sizeof_char+set}" = set; then
9972 echo $ECHO_N "(cached) $ECHO_C" >&6
9973 else
9974 if test "$ac_cv_type_char" = yes; then
9975 # The cast to unsigned long works around a bug in the HP C Compiler
9976 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9977 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9978 # This bug is HP SR number 8606223364.
9979 if test "$cross_compiling" = yes; then
9980 # Depending upon the size, compute the lo and hi bounds.
9981 cat >conftest.$ac_ext <<_ACEOF
9982 /* confdefs.h. */
9983 _ACEOF
9984 cat confdefs.h >>conftest.$ac_ext
9985 cat >>conftest.$ac_ext <<_ACEOF
9986 /* end confdefs.h. */
9987 $ac_includes_default
9988 int
9989 main ()
9990 {
9991 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
9992 test_array [0] = 0
9993
9994 ;
9995 return 0;
9996 }
9997 _ACEOF
9998 rm -f conftest.$ac_objext
9999 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10000 (eval $ac_compile) 2>conftest.er1
10001 ac_status=$?
10002 grep -v '^ *+' conftest.er1 >conftest.err
10003 rm -f conftest.er1
10004 cat conftest.err >&5
10005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10006 (exit $ac_status); } &&
10007 { ac_try='test -z "$ac_c_werror_flag"
10008 || test ! -s conftest.err'
10009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10010 (eval $ac_try) 2>&5
10011 ac_status=$?
10012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10013 (exit $ac_status); }; } &&
10014 { ac_try='test -s conftest.$ac_objext'
10015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10016 (eval $ac_try) 2>&5
10017 ac_status=$?
10018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10019 (exit $ac_status); }; }; then
10020 ac_lo=0 ac_mid=0
10021 while :; do
10022 cat >conftest.$ac_ext <<_ACEOF
10023 /* confdefs.h. */
10024 _ACEOF
10025 cat confdefs.h >>conftest.$ac_ext
10026 cat >>conftest.$ac_ext <<_ACEOF
10027 /* end confdefs.h. */
10028 $ac_includes_default
10029 int
10030 main ()
10031 {
10032 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
10033 test_array [0] = 0
10034
10035 ;
10036 return 0;
10037 }
10038 _ACEOF
10039 rm -f conftest.$ac_objext
10040 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10041 (eval $ac_compile) 2>conftest.er1
10042 ac_status=$?
10043 grep -v '^ *+' conftest.er1 >conftest.err
10044 rm -f conftest.er1
10045 cat conftest.err >&5
10046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10047 (exit $ac_status); } &&
10048 { ac_try='test -z "$ac_c_werror_flag"
10049 || test ! -s conftest.err'
10050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10051 (eval $ac_try) 2>&5
10052 ac_status=$?
10053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10054 (exit $ac_status); }; } &&
10055 { ac_try='test -s conftest.$ac_objext'
10056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10057 (eval $ac_try) 2>&5
10058 ac_status=$?
10059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10060 (exit $ac_status); }; }; then
10061 ac_hi=$ac_mid; break
10062 else
10063 echo "$as_me: failed program was:" >&5
10064 sed 's/^/| /' conftest.$ac_ext >&5
10065
10066 ac_lo=`expr $ac_mid + 1`
10067 if test $ac_lo -le $ac_mid; then
10068 ac_lo= ac_hi=
10069 break
10070 fi
10071 ac_mid=`expr 2 '*' $ac_mid + 1`
10072 fi
10073 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10074 done
10075 else
10076 echo "$as_me: failed program was:" >&5
10077 sed 's/^/| /' conftest.$ac_ext >&5
10078
10079 cat >conftest.$ac_ext <<_ACEOF
10080 /* confdefs.h. */
10081 _ACEOF
10082 cat confdefs.h >>conftest.$ac_ext
10083 cat >>conftest.$ac_ext <<_ACEOF
10084 /* end confdefs.h. */
10085 $ac_includes_default
10086 int
10087 main ()
10088 {
10089 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
10090 test_array [0] = 0
10091
10092 ;
10093 return 0;
10094 }
10095 _ACEOF
10096 rm -f conftest.$ac_objext
10097 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10098 (eval $ac_compile) 2>conftest.er1
10099 ac_status=$?
10100 grep -v '^ *+' conftest.er1 >conftest.err
10101 rm -f conftest.er1
10102 cat conftest.err >&5
10103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10104 (exit $ac_status); } &&
10105 { ac_try='test -z "$ac_c_werror_flag"
10106 || test ! -s conftest.err'
10107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10108 (eval $ac_try) 2>&5
10109 ac_status=$?
10110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10111 (exit $ac_status); }; } &&
10112 { ac_try='test -s conftest.$ac_objext'
10113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10114 (eval $ac_try) 2>&5
10115 ac_status=$?
10116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10117 (exit $ac_status); }; }; then
10118 ac_hi=-1 ac_mid=-1
10119 while :; do
10120 cat >conftest.$ac_ext <<_ACEOF
10121 /* confdefs.h. */
10122 _ACEOF
10123 cat confdefs.h >>conftest.$ac_ext
10124 cat >>conftest.$ac_ext <<_ACEOF
10125 /* end confdefs.h. */
10126 $ac_includes_default
10127 int
10128 main ()
10129 {
10130 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
10131 test_array [0] = 0
10132
10133 ;
10134 return 0;
10135 }
10136 _ACEOF
10137 rm -f conftest.$ac_objext
10138 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10139 (eval $ac_compile) 2>conftest.er1
10140 ac_status=$?
10141 grep -v '^ *+' conftest.er1 >conftest.err
10142 rm -f conftest.er1
10143 cat conftest.err >&5
10144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10145 (exit $ac_status); } &&
10146 { ac_try='test -z "$ac_c_werror_flag"
10147 || test ! -s conftest.err'
10148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10149 (eval $ac_try) 2>&5
10150 ac_status=$?
10151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10152 (exit $ac_status); }; } &&
10153 { ac_try='test -s conftest.$ac_objext'
10154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10155 (eval $ac_try) 2>&5
10156 ac_status=$?
10157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10158 (exit $ac_status); }; }; then
10159 ac_lo=$ac_mid; break
10160 else
10161 echo "$as_me: failed program was:" >&5
10162 sed 's/^/| /' conftest.$ac_ext >&5
10163
10164 ac_hi=`expr '(' $ac_mid ')' - 1`
10165 if test $ac_mid -le $ac_hi; then
10166 ac_lo= ac_hi=
10167 break
10168 fi
10169 ac_mid=`expr 2 '*' $ac_mid`
10170 fi
10171 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10172 done
10173 else
10174 echo "$as_me: failed program was:" >&5
10175 sed 's/^/| /' conftest.$ac_ext >&5
10176
10177 ac_lo= ac_hi=
10178 fi
10179 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10180 fi
10181 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10182 # Binary search between lo and hi bounds.
10183 while test "x$ac_lo" != "x$ac_hi"; do
10184 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10185 cat >conftest.$ac_ext <<_ACEOF
10186 /* confdefs.h. */
10187 _ACEOF
10188 cat confdefs.h >>conftest.$ac_ext
10189 cat >>conftest.$ac_ext <<_ACEOF
10190 /* end confdefs.h. */
10191 $ac_includes_default
10192 int
10193 main ()
10194 {
10195 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
10196 test_array [0] = 0
10197
10198 ;
10199 return 0;
10200 }
10201 _ACEOF
10202 rm -f conftest.$ac_objext
10203 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10204 (eval $ac_compile) 2>conftest.er1
10205 ac_status=$?
10206 grep -v '^ *+' conftest.er1 >conftest.err
10207 rm -f conftest.er1
10208 cat conftest.err >&5
10209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10210 (exit $ac_status); } &&
10211 { ac_try='test -z "$ac_c_werror_flag"
10212 || test ! -s conftest.err'
10213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10214 (eval $ac_try) 2>&5
10215 ac_status=$?
10216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10217 (exit $ac_status); }; } &&
10218 { ac_try='test -s conftest.$ac_objext'
10219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10220 (eval $ac_try) 2>&5
10221 ac_status=$?
10222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10223 (exit $ac_status); }; }; then
10224 ac_hi=$ac_mid
10225 else
10226 echo "$as_me: failed program was:" >&5
10227 sed 's/^/| /' conftest.$ac_ext >&5
10228
10229 ac_lo=`expr '(' $ac_mid ')' + 1`
10230 fi
10231 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10232 done
10233 case $ac_lo in
10234 ?*) ac_cv_sizeof_char=$ac_lo;;
10235 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
10236 See \`config.log' for more details." >&5
10237 echo "$as_me: error: cannot compute sizeof (char), 77
10238 See \`config.log' for more details." >&2;}
10239 { (exit 1); exit 1; }; } ;;
10240 esac
10241 else
10242 if test "$cross_compiling" = yes; then
10243 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10244 See \`config.log' for more details." >&5
10245 echo "$as_me: error: cannot run test program while cross compiling
10246 See \`config.log' for more details." >&2;}
10247 { (exit 1); exit 1; }; }
10248 else
10249 cat >conftest.$ac_ext <<_ACEOF
10250 /* confdefs.h. */
10251 _ACEOF
10252 cat confdefs.h >>conftest.$ac_ext
10253 cat >>conftest.$ac_ext <<_ACEOF
10254 /* end confdefs.h. */
10255 $ac_includes_default
10256 long longval () { return (long) (sizeof (char)); }
10257 unsigned long ulongval () { return (long) (sizeof (char)); }
10258 #include <stdio.h>
10259 #include <stdlib.h>
10260 int
10261 main ()
10262 {
10263
10264 FILE *f = fopen ("conftest.val", "w");
10265 if (! f)
10266 exit (1);
10267 if (((long) (sizeof (char))) < 0)
10268 {
10269 long i = longval ();
10270 if (i != ((long) (sizeof (char))))
10271 exit (1);
10272 fprintf (f, "%ld\n", i);
10273 }
10274 else
10275 {
10276 unsigned long i = ulongval ();
10277 if (i != ((long) (sizeof (char))))
10278 exit (1);
10279 fprintf (f, "%lu\n", i);
10280 }
10281 exit (ferror (f) || fclose (f) != 0);
10282
10283 ;
10284 return 0;
10285 }
10286 _ACEOF
10287 rm -f conftest$ac_exeext
10288 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10289 (eval $ac_link) 2>&5
10290 ac_status=$?
10291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10292 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10294 (eval $ac_try) 2>&5
10295 ac_status=$?
10296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10297 (exit $ac_status); }; }; then
10298 ac_cv_sizeof_char=`cat conftest.val`
10299 else
10300 echo "$as_me: program exited with status $ac_status" >&5
10301 echo "$as_me: failed program was:" >&5
10302 sed 's/^/| /' conftest.$ac_ext >&5
10303
10304 ( exit $ac_status )
10305 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
10306 See \`config.log' for more details." >&5
10307 echo "$as_me: error: cannot compute sizeof (char), 77
10308 See \`config.log' for more details." >&2;}
10309 { (exit 1); exit 1; }; }
10310 fi
10311 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10312 fi
10313 fi
10314 rm -f conftest.val
10315 else
10316 ac_cv_sizeof_char=0
10317 fi
10318 fi
10319 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
10320 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
10321 cat >>confdefs.h <<_ACEOF
10322 #define SIZEOF_CHAR $ac_cv_sizeof_char
10323 _ACEOF
10324
10325
10326
10327 echo "$as_me:$LINENO: checking for type equivalent to int8_t" >&5
10328 echo $ECHO_N "checking for type equivalent to int8_t... $ECHO_C" >&6
10329 case "$ac_cv_sizeof_char" in
10330 1) acx_cv_type_int8_t=char ;;
10331 *) { { echo "$as_me:$LINENO: error: no 8-bit type" >&5
10332 echo "$as_me: error: no 8-bit type" >&2;}
10333 { (exit please report a bug); exit please report a bug; }; }
10334 esac
10335 echo "$as_me:$LINENO: result: $acx_cv_type_int8_t" >&5
10336 echo "${ECHO_T}$acx_cv_type_int8_t" >&6
10337
10338 echo "$as_me:$LINENO: checking for type equivalent to int16_t" >&5
10339 echo $ECHO_N "checking for type equivalent to int16_t... $ECHO_C" >&6
10340 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
10341 2:*) acx_cv_type_int16_t=int ;;
10342 *:2) acx_cv_type_int16_t=short ;;
10343 *) { { echo "$as_me:$LINENO: error: no 16-bit type" >&5
10344 echo "$as_me: error: no 16-bit type" >&2;}
10345 { (exit please report a bug); exit please report a bug; }; }
10346 esac
10347 echo "$as_me:$LINENO: result: $acx_cv_type_int16_t" >&5
10348 echo "${ECHO_T}$acx_cv_type_int16_t" >&6
10349
10350 echo "$as_me:$LINENO: checking for type equivalent to int32_t" >&5
10351 echo $ECHO_N "checking for type equivalent to int32_t... $ECHO_C" >&6
10352 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
10353 4:*) acx_cv_type_int32_t=int ;;
10354 *:4) acx_cv_type_int32_t=long ;;
10355 *) { { echo "$as_me:$LINENO: error: no 32-bit type" >&5
10356 echo "$as_me: error: no 32-bit type" >&2;}
10357 { (exit please report a bug); exit please report a bug; }; }
10358 esac
10359 echo "$as_me:$LINENO: result: $acx_cv_type_int32_t" >&5
10360 echo "${ECHO_T}$acx_cv_type_int32_t" >&6
10361 fi
10362
10363 # These tests are here to make the output prettier
10364
10365 if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
10366 case "$ac_cv_sizeof_long" in
10367 8) acx_cv_type_int64_t=long ;;
10368 esac
10369 echo "$as_me:$LINENO: checking for type equivalent to int64_t" >&5
10370 echo $ECHO_N "checking for type equivalent to int64_t... $ECHO_C" >&6
10371 echo "$as_me:$LINENO: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
10372 echo "${ECHO_T}${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6
10373 fi
10374
10375 # Now we can use the above types
10376
10377 if test "$ac_cv_type_uintptr_t" != yes; then
10378 echo "$as_me:$LINENO: checking for type equivalent to intptr_t" >&5
10379 echo $ECHO_N "checking for type equivalent to intptr_t... $ECHO_C" >&6
10380 case $ac_cv_sizeof_void_p in
10381 2) acx_cv_type_intptr_t=int16_t ;;
10382 4) acx_cv_type_intptr_t=int32_t ;;
10383 8) acx_cv_type_intptr_t=int64_t ;;
10384 *) { { echo "$as_me:$LINENO: error: no equivalent for intptr_t" >&5
10385 echo "$as_me: error: no equivalent for intptr_t" >&2;}
10386 { (exit please report a bug); exit please report a bug; }; }
10387 esac
10388 echo "$as_me:$LINENO: result: $acx_cv_type_intptr_t" >&5
10389 echo "${ECHO_T}$acx_cv_type_intptr_t" >&6
10390 fi
10391
10392 # ----------------- done all checks, emit header -------------
10393 ac_config_commands="$ac_config_commands bfd_stdint.h"
10394
10395
10396
10397 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
10398 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
10399 if test "${ac_cv_header_time+set}" = set; then
10400 echo $ECHO_N "(cached) $ECHO_C" >&6
10401 else
10402 cat >conftest.$ac_ext <<_ACEOF
10403 /* confdefs.h. */
10404 _ACEOF
10405 cat confdefs.h >>conftest.$ac_ext
10406 cat >>conftest.$ac_ext <<_ACEOF
10407 /* end confdefs.h. */
10408 #include <sys/types.h>
10409 #include <sys/time.h>
10410 #include <time.h>
10411
10412 int
10413 main ()
10414 {
10415 if ((struct tm *) 0)
10416 return 0;
10417 ;
10418 return 0;
10419 }
10420 _ACEOF
10421 rm -f conftest.$ac_objext
10422 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10423 (eval $ac_compile) 2>conftest.er1
10424 ac_status=$?
10425 grep -v '^ *+' conftest.er1 >conftest.err
10426 rm -f conftest.er1
10427 cat conftest.err >&5
10428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10429 (exit $ac_status); } &&
10430 { ac_try='test -z "$ac_c_werror_flag"
10431 || test ! -s conftest.err'
10432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10433 (eval $ac_try) 2>&5
10434 ac_status=$?
10435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10436 (exit $ac_status); }; } &&
10437 { ac_try='test -s conftest.$ac_objext'
10438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10439 (eval $ac_try) 2>&5
10440 ac_status=$?
10441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10442 (exit $ac_status); }; }; then
10443 ac_cv_header_time=yes
10444 else
10445 echo "$as_me: failed program was:" >&5
10446 sed 's/^/| /' conftest.$ac_ext >&5
10447
10448 ac_cv_header_time=no
10449 fi
10450 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10451 fi
10452 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
10453 echo "${ECHO_T}$ac_cv_header_time" >&6
10454 if test $ac_cv_header_time = yes; then
10455
10456 cat >>confdefs.h <<\_ACEOF
10457 #define TIME_WITH_SYS_TIME 1
10458 _ACEOF
10459
10460 fi
10461
10462
10463
10464
10465
10466
10467 ac_header_dirent=no
10468 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
10469 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
10470 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
10471 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
10472 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10473 echo $ECHO_N "(cached) $ECHO_C" >&6
10474 else
10475 cat >conftest.$ac_ext <<_ACEOF
10476 /* confdefs.h. */
10477 _ACEOF
10478 cat confdefs.h >>conftest.$ac_ext
10479 cat >>conftest.$ac_ext <<_ACEOF
10480 /* end confdefs.h. */
10481 #include <sys/types.h>
10482 #include <$ac_hdr>
10483
10484 int
10485 main ()
10486 {
10487 if ((DIR *) 0)
10488 return 0;
10489 ;
10490 return 0;
10491 }
10492 _ACEOF
10493 rm -f conftest.$ac_objext
10494 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10495 (eval $ac_compile) 2>conftest.er1
10496 ac_status=$?
10497 grep -v '^ *+' conftest.er1 >conftest.err
10498 rm -f conftest.er1
10499 cat conftest.err >&5
10500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10501 (exit $ac_status); } &&
10502 { ac_try='test -z "$ac_c_werror_flag"
10503 || test ! -s conftest.err'
10504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10505 (eval $ac_try) 2>&5
10506 ac_status=$?
10507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10508 (exit $ac_status); }; } &&
10509 { ac_try='test -s conftest.$ac_objext'
10510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10511 (eval $ac_try) 2>&5
10512 ac_status=$?
10513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10514 (exit $ac_status); }; }; then
10515 eval "$as_ac_Header=yes"
10516 else
10517 echo "$as_me: failed program was:" >&5
10518 sed 's/^/| /' conftest.$ac_ext >&5
10519
10520 eval "$as_ac_Header=no"
10521 fi
10522 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10523 fi
10524 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10525 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10526 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10527 cat >>confdefs.h <<_ACEOF
10528 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
10529 _ACEOF
10530
10531 ac_header_dirent=$ac_hdr; break
10532 fi
10533
10534 done
10535 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
10536 if test $ac_header_dirent = dirent.h; then
10537 echo "$as_me:$LINENO: checking for library containing opendir" >&5
10538 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
10539 if test "${ac_cv_search_opendir+set}" = set; then
10540 echo $ECHO_N "(cached) $ECHO_C" >&6
10541 else
10542 ac_func_search_save_LIBS=$LIBS
10543 ac_cv_search_opendir=no
10544 cat >conftest.$ac_ext <<_ACEOF
10545 /* confdefs.h. */
10546 _ACEOF
10547 cat confdefs.h >>conftest.$ac_ext
10548 cat >>conftest.$ac_ext <<_ACEOF
10549 /* end confdefs.h. */
10550
10551 /* Override any gcc2 internal prototype to avoid an error. */
10552 #ifdef __cplusplus
10553 extern "C"
10554 #endif
10555 /* We use char because int might match the return type of a gcc2
10556 builtin and then its argument prototype would still apply. */
10557 char opendir ();
10558 int
10559 main ()
10560 {
10561 opendir ();
10562 ;
10563 return 0;
10564 }
10565 _ACEOF
10566 rm -f conftest.$ac_objext conftest$ac_exeext
10567 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10568 (eval $ac_link) 2>conftest.er1
10569 ac_status=$?
10570 grep -v '^ *+' conftest.er1 >conftest.err
10571 rm -f conftest.er1
10572 cat conftest.err >&5
10573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10574 (exit $ac_status); } &&
10575 { ac_try='test -z "$ac_c_werror_flag"
10576 || test ! -s conftest.err'
10577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10578 (eval $ac_try) 2>&5
10579 ac_status=$?
10580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10581 (exit $ac_status); }; } &&
10582 { ac_try='test -s conftest$ac_exeext'
10583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10584 (eval $ac_try) 2>&5
10585 ac_status=$?
10586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10587 (exit $ac_status); }; }; then
10588 ac_cv_search_opendir="none required"
10589 else
10590 echo "$as_me: failed program was:" >&5
10591 sed 's/^/| /' conftest.$ac_ext >&5
10592
10593 fi
10594 rm -f conftest.err conftest.$ac_objext \
10595 conftest$ac_exeext conftest.$ac_ext
10596 if test "$ac_cv_search_opendir" = no; then
10597 for ac_lib in dir; do
10598 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10599 cat >conftest.$ac_ext <<_ACEOF
10600 /* confdefs.h. */
10601 _ACEOF
10602 cat confdefs.h >>conftest.$ac_ext
10603 cat >>conftest.$ac_ext <<_ACEOF
10604 /* end confdefs.h. */
10605
10606 /* Override any gcc2 internal prototype to avoid an error. */
10607 #ifdef __cplusplus
10608 extern "C"
10609 #endif
10610 /* We use char because int might match the return type of a gcc2
10611 builtin and then its argument prototype would still apply. */
10612 char opendir ();
10613 int
10614 main ()
10615 {
10616 opendir ();
10617 ;
10618 return 0;
10619 }
10620 _ACEOF
10621 rm -f conftest.$ac_objext conftest$ac_exeext
10622 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10623 (eval $ac_link) 2>conftest.er1
10624 ac_status=$?
10625 grep -v '^ *+' conftest.er1 >conftest.err
10626 rm -f conftest.er1
10627 cat conftest.err >&5
10628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10629 (exit $ac_status); } &&
10630 { ac_try='test -z "$ac_c_werror_flag"
10631 || test ! -s conftest.err'
10632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10633 (eval $ac_try) 2>&5
10634 ac_status=$?
10635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10636 (exit $ac_status); }; } &&
10637 { ac_try='test -s conftest$ac_exeext'
10638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10639 (eval $ac_try) 2>&5
10640 ac_status=$?
10641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10642 (exit $ac_status); }; }; then
10643 ac_cv_search_opendir="-l$ac_lib"
10644 break
10645 else
10646 echo "$as_me: failed program was:" >&5
10647 sed 's/^/| /' conftest.$ac_ext >&5
10648
10649 fi
10650 rm -f conftest.err conftest.$ac_objext \
10651 conftest$ac_exeext conftest.$ac_ext
10652 done
10653 fi
10654 LIBS=$ac_func_search_save_LIBS
10655 fi
10656 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10657 echo "${ECHO_T}$ac_cv_search_opendir" >&6
10658 if test "$ac_cv_search_opendir" != no; then
10659 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
10660
10661 fi
10662
10663 else
10664 echo "$as_me:$LINENO: checking for library containing opendir" >&5
10665 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
10666 if test "${ac_cv_search_opendir+set}" = set; then
10667 echo $ECHO_N "(cached) $ECHO_C" >&6
10668 else
10669 ac_func_search_save_LIBS=$LIBS
10670 ac_cv_search_opendir=no
10671 cat >conftest.$ac_ext <<_ACEOF
10672 /* confdefs.h. */
10673 _ACEOF
10674 cat confdefs.h >>conftest.$ac_ext
10675 cat >>conftest.$ac_ext <<_ACEOF
10676 /* end confdefs.h. */
10677
10678 /* Override any gcc2 internal prototype to avoid an error. */
10679 #ifdef __cplusplus
10680 extern "C"
10681 #endif
10682 /* We use char because int might match the return type of a gcc2
10683 builtin and then its argument prototype would still apply. */
10684 char opendir ();
10685 int
10686 main ()
10687 {
10688 opendir ();
10689 ;
10690 return 0;
10691 }
10692 _ACEOF
10693 rm -f conftest.$ac_objext conftest$ac_exeext
10694 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10695 (eval $ac_link) 2>conftest.er1
10696 ac_status=$?
10697 grep -v '^ *+' conftest.er1 >conftest.err
10698 rm -f conftest.er1
10699 cat conftest.err >&5
10700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10701 (exit $ac_status); } &&
10702 { ac_try='test -z "$ac_c_werror_flag"
10703 || test ! -s conftest.err'
10704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10705 (eval $ac_try) 2>&5
10706 ac_status=$?
10707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10708 (exit $ac_status); }; } &&
10709 { ac_try='test -s conftest$ac_exeext'
10710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10711 (eval $ac_try) 2>&5
10712 ac_status=$?
10713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10714 (exit $ac_status); }; }; then
10715 ac_cv_search_opendir="none required"
10716 else
10717 echo "$as_me: failed program was:" >&5
10718 sed 's/^/| /' conftest.$ac_ext >&5
10719
10720 fi
10721 rm -f conftest.err conftest.$ac_objext \
10722 conftest$ac_exeext conftest.$ac_ext
10723 if test "$ac_cv_search_opendir" = no; then
10724 for ac_lib in x; do
10725 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10726 cat >conftest.$ac_ext <<_ACEOF
10727 /* confdefs.h. */
10728 _ACEOF
10729 cat confdefs.h >>conftest.$ac_ext
10730 cat >>conftest.$ac_ext <<_ACEOF
10731 /* end confdefs.h. */
10732
10733 /* Override any gcc2 internal prototype to avoid an error. */
10734 #ifdef __cplusplus
10735 extern "C"
10736 #endif
10737 /* We use char because int might match the return type of a gcc2
10738 builtin and then its argument prototype would still apply. */
10739 char opendir ();
10740 int
10741 main ()
10742 {
10743 opendir ();
10744 ;
10745 return 0;
10746 }
10747 _ACEOF
10748 rm -f conftest.$ac_objext conftest$ac_exeext
10749 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10750 (eval $ac_link) 2>conftest.er1
10751 ac_status=$?
10752 grep -v '^ *+' conftest.er1 >conftest.err
10753 rm -f conftest.er1
10754 cat conftest.err >&5
10755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10756 (exit $ac_status); } &&
10757 { ac_try='test -z "$ac_c_werror_flag"
10758 || test ! -s conftest.err'
10759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10760 (eval $ac_try) 2>&5
10761 ac_status=$?
10762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10763 (exit $ac_status); }; } &&
10764 { ac_try='test -s conftest$ac_exeext'
10765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10766 (eval $ac_try) 2>&5
10767 ac_status=$?
10768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10769 (exit $ac_status); }; }; then
10770 ac_cv_search_opendir="-l$ac_lib"
10771 break
10772 else
10773 echo "$as_me: failed program was:" >&5
10774 sed 's/^/| /' conftest.$ac_ext >&5
10775
10776 fi
10777 rm -f conftest.err conftest.$ac_objext \
10778 conftest$ac_exeext conftest.$ac_ext
10779 done
10780 fi
10781 LIBS=$ac_func_search_save_LIBS
10782 fi
10783 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10784 echo "${ECHO_T}$ac_cv_search_opendir" >&6
10785 if test "$ac_cv_search_opendir" != no; then
10786 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
10787
10788 fi
10789
10790 fi
10791
10792 echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
10793 echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6
10794 if test "${gcc_cv_header_string+set}" = set; then
10795 echo $ECHO_N "(cached) $ECHO_C" >&6
10796 else
10797 cat >conftest.$ac_ext <<_ACEOF
10798 /* confdefs.h. */
10799 _ACEOF
10800 cat confdefs.h >>conftest.$ac_ext
10801 cat >>conftest.$ac_ext <<_ACEOF
10802 /* end confdefs.h. */
10803 #include <string.h>
10804 #include <strings.h>
10805 int
10806 main ()
10807 {
10808
10809 ;
10810 return 0;
10811 }
10812 _ACEOF
10813 rm -f conftest.$ac_objext
10814 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10815 (eval $ac_compile) 2>conftest.er1
10816 ac_status=$?
10817 grep -v '^ *+' conftest.er1 >conftest.err
10818 rm -f conftest.er1
10819 cat conftest.err >&5
10820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10821 (exit $ac_status); } &&
10822 { ac_try='test -z "$ac_c_werror_flag"
10823 || test ! -s conftest.err'
10824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10825 (eval $ac_try) 2>&5
10826 ac_status=$?
10827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10828 (exit $ac_status); }; } &&
10829 { ac_try='test -s conftest.$ac_objext'
10830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10831 (eval $ac_try) 2>&5
10832 ac_status=$?
10833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10834 (exit $ac_status); }; }; then
10835 gcc_cv_header_string=yes
10836 else
10837 echo "$as_me: failed program was:" >&5
10838 sed 's/^/| /' conftest.$ac_ext >&5
10839
10840 gcc_cv_header_string=no
10841 fi
10842 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10843 fi
10844 echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
10845 echo "${ECHO_T}$gcc_cv_header_string" >&6
10846 if test $gcc_cv_header_string = yes; then
10847
10848 cat >>confdefs.h <<\_ACEOF
10849 #define STRING_WITH_STRINGS 1
10850 _ACEOF
10851
10852 fi
10853
10854
10855
10856
10857
10858
10859
10860
10861 for ac_func in fcntl getpagesize setitimer sysconf fdopen getuid getgid
10862 do
10863 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10864 echo "$as_me:$LINENO: checking for $ac_func" >&5
10865 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10866 if eval "test \"\${$as_ac_var+set}\" = set"; then
10867 echo $ECHO_N "(cached) $ECHO_C" >&6
10868 else
10869 cat >conftest.$ac_ext <<_ACEOF
10870 /* confdefs.h. */
10871 _ACEOF
10872 cat confdefs.h >>conftest.$ac_ext
10873 cat >>conftest.$ac_ext <<_ACEOF
10874 /* end confdefs.h. */
10875 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10876 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10877 #define $ac_func innocuous_$ac_func
10878
10879 /* System header to define __stub macros and hopefully few prototypes,
10880 which can conflict with char $ac_func (); below.
10881 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10882 <limits.h> exists even on freestanding compilers. */
10883
10884 #ifdef __STDC__
10885 # include <limits.h>
10886 #else
10887 # include <assert.h>
10888 #endif
10889
10890 #undef $ac_func
10891
10892 /* Override any gcc2 internal prototype to avoid an error. */
10893 #ifdef __cplusplus
10894 extern "C"
10895 {
10896 #endif
10897 /* We use char because int might match the return type of a gcc2
10898 builtin and then its argument prototype would still apply. */
10899 char $ac_func ();
10900 /* The GNU C library defines this for functions which it implements
10901 to always fail with ENOSYS. Some functions are actually named
10902 something starting with __ and the normal name is an alias. */
10903 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10904 choke me
10905 #else
10906 char (*f) () = $ac_func;
10907 #endif
10908 #ifdef __cplusplus
10909 }
10910 #endif
10911
10912 int
10913 main ()
10914 {
10915 return f != $ac_func;
10916 ;
10917 return 0;
10918 }
10919 _ACEOF
10920 rm -f conftest.$ac_objext conftest$ac_exeext
10921 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10922 (eval $ac_link) 2>conftest.er1
10923 ac_status=$?
10924 grep -v '^ *+' conftest.er1 >conftest.err
10925 rm -f conftest.er1
10926 cat conftest.err >&5
10927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10928 (exit $ac_status); } &&
10929 { ac_try='test -z "$ac_c_werror_flag"
10930 || test ! -s conftest.err'
10931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10932 (eval $ac_try) 2>&5
10933 ac_status=$?
10934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10935 (exit $ac_status); }; } &&
10936 { ac_try='test -s conftest$ac_exeext'
10937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10938 (eval $ac_try) 2>&5
10939 ac_status=$?
10940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10941 (exit $ac_status); }; }; then
10942 eval "$as_ac_var=yes"
10943 else
10944 echo "$as_me: failed program was:" >&5
10945 sed 's/^/| /' conftest.$ac_ext >&5
10946
10947 eval "$as_ac_var=no"
10948 fi
10949 rm -f conftest.err conftest.$ac_objext \
10950 conftest$ac_exeext conftest.$ac_ext
10951 fi
10952 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10953 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10954 if test `eval echo '${'$as_ac_var'}'` = yes; then
10955 cat >>confdefs.h <<_ACEOF
10956 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10957 _ACEOF
10958
10959 fi
10960 done
10961
10962
10963 for ac_func in strtoull
10964 do
10965 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10966 echo "$as_me:$LINENO: checking for $ac_func" >&5
10967 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10968 if eval "test \"\${$as_ac_var+set}\" = set"; then
10969 echo $ECHO_N "(cached) $ECHO_C" >&6
10970 else
10971 cat >conftest.$ac_ext <<_ACEOF
10972 /* confdefs.h. */
10973 _ACEOF
10974 cat confdefs.h >>conftest.$ac_ext
10975 cat >>conftest.$ac_ext <<_ACEOF
10976 /* end confdefs.h. */
10977 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10978 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10979 #define $ac_func innocuous_$ac_func
10980
10981 /* System header to define __stub macros and hopefully few prototypes,
10982 which can conflict with char $ac_func (); below.
10983 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10984 <limits.h> exists even on freestanding compilers. */
10985
10986 #ifdef __STDC__
10987 # include <limits.h>
10988 #else
10989 # include <assert.h>
10990 #endif
10991
10992 #undef $ac_func
10993
10994 /* Override any gcc2 internal prototype to avoid an error. */
10995 #ifdef __cplusplus
10996 extern "C"
10997 {
10998 #endif
10999 /* We use char because int might match the return type of a gcc2
11000 builtin and then its argument prototype would still apply. */
11001 char $ac_func ();
11002 /* The GNU C library defines this for functions which it implements
11003 to always fail with ENOSYS. Some functions are actually named
11004 something starting with __ and the normal name is an alias. */
11005 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11006 choke me
11007 #else
11008 char (*f) () = $ac_func;
11009 #endif
11010 #ifdef __cplusplus
11011 }
11012 #endif
11013
11014 int
11015 main ()
11016 {
11017 return f != $ac_func;
11018 ;
11019 return 0;
11020 }
11021 _ACEOF
11022 rm -f conftest.$ac_objext conftest$ac_exeext
11023 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11024 (eval $ac_link) 2>conftest.er1
11025 ac_status=$?
11026 grep -v '^ *+' conftest.er1 >conftest.err
11027 rm -f conftest.er1
11028 cat conftest.err >&5
11029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11030 (exit $ac_status); } &&
11031 { ac_try='test -z "$ac_c_werror_flag"
11032 || test ! -s conftest.err'
11033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11034 (eval $ac_try) 2>&5
11035 ac_status=$?
11036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11037 (exit $ac_status); }; } &&
11038 { ac_try='test -s conftest$ac_exeext'
11039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11040 (eval $ac_try) 2>&5
11041 ac_status=$?
11042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11043 (exit $ac_status); }; }; then
11044 eval "$as_ac_var=yes"
11045 else
11046 echo "$as_me: failed program was:" >&5
11047 sed 's/^/| /' conftest.$ac_ext >&5
11048
11049 eval "$as_ac_var=no"
11050 fi
11051 rm -f conftest.err conftest.$ac_objext \
11052 conftest$ac_exeext conftest.$ac_ext
11053 fi
11054 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11055 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11056 if test `eval echo '${'$as_ac_var'}'` = yes; then
11057 cat >>confdefs.h <<_ACEOF
11058 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11059 _ACEOF
11060
11061 fi
11062 done
11063
11064
11065 echo "$as_me:$LINENO: checking whether basename is declared" >&5
11066 echo $ECHO_N "checking whether basename is declared... $ECHO_C" >&6
11067 if test "${ac_cv_have_decl_basename+set}" = set; then
11068 echo $ECHO_N "(cached) $ECHO_C" >&6
11069 else
11070 cat >conftest.$ac_ext <<_ACEOF
11071 /* confdefs.h. */
11072 _ACEOF
11073 cat confdefs.h >>conftest.$ac_ext
11074 cat >>conftest.$ac_ext <<_ACEOF
11075 /* end confdefs.h. */
11076 $ac_includes_default
11077 int
11078 main ()
11079 {
11080 #ifndef basename
11081 char *p = (char *) basename;
11082 #endif
11083
11084 ;
11085 return 0;
11086 }
11087 _ACEOF
11088 rm -f conftest.$ac_objext
11089 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11090 (eval $ac_compile) 2>conftest.er1
11091 ac_status=$?
11092 grep -v '^ *+' conftest.er1 >conftest.err
11093 rm -f conftest.er1
11094 cat conftest.err >&5
11095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11096 (exit $ac_status); } &&
11097 { ac_try='test -z "$ac_c_werror_flag"
11098 || test ! -s conftest.err'
11099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11100 (eval $ac_try) 2>&5
11101 ac_status=$?
11102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11103 (exit $ac_status); }; } &&
11104 { ac_try='test -s conftest.$ac_objext'
11105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11106 (eval $ac_try) 2>&5
11107 ac_status=$?
11108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11109 (exit $ac_status); }; }; then
11110 ac_cv_have_decl_basename=yes
11111 else
11112 echo "$as_me: failed program was:" >&5
11113 sed 's/^/| /' conftest.$ac_ext >&5
11114
11115 ac_cv_have_decl_basename=no
11116 fi
11117 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11118 fi
11119 echo "$as_me:$LINENO: result: $ac_cv_have_decl_basename" >&5
11120 echo "${ECHO_T}$ac_cv_have_decl_basename" >&6
11121 if test $ac_cv_have_decl_basename = yes; then
11122
11123 cat >>confdefs.h <<_ACEOF
11124 #define HAVE_DECL_BASENAME 1
11125 _ACEOF
11126
11127
11128 else
11129 cat >>confdefs.h <<_ACEOF
11130 #define HAVE_DECL_BASENAME 0
11131 _ACEOF
11132
11133
11134 fi
11135
11136
11137 echo "$as_me:$LINENO: checking whether ftello is declared" >&5
11138 echo $ECHO_N "checking whether ftello is declared... $ECHO_C" >&6
11139 if test "${ac_cv_have_decl_ftello+set}" = set; then
11140 echo $ECHO_N "(cached) $ECHO_C" >&6
11141 else
11142 cat >conftest.$ac_ext <<_ACEOF
11143 /* confdefs.h. */
11144 _ACEOF
11145 cat confdefs.h >>conftest.$ac_ext
11146 cat >>conftest.$ac_ext <<_ACEOF
11147 /* end confdefs.h. */
11148 $ac_includes_default
11149 int
11150 main ()
11151 {
11152 #ifndef ftello
11153 char *p = (char *) ftello;
11154 #endif
11155
11156 ;
11157 return 0;
11158 }
11159 _ACEOF
11160 rm -f conftest.$ac_objext
11161 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11162 (eval $ac_compile) 2>conftest.er1
11163 ac_status=$?
11164 grep -v '^ *+' conftest.er1 >conftest.err
11165 rm -f conftest.er1
11166 cat conftest.err >&5
11167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11168 (exit $ac_status); } &&
11169 { ac_try='test -z "$ac_c_werror_flag"
11170 || test ! -s conftest.err'
11171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11172 (eval $ac_try) 2>&5
11173 ac_status=$?
11174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11175 (exit $ac_status); }; } &&
11176 { ac_try='test -s conftest.$ac_objext'
11177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11178 (eval $ac_try) 2>&5
11179 ac_status=$?
11180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11181 (exit $ac_status); }; }; then
11182 ac_cv_have_decl_ftello=yes
11183 else
11184 echo "$as_me: failed program was:" >&5
11185 sed 's/^/| /' conftest.$ac_ext >&5
11186
11187 ac_cv_have_decl_ftello=no
11188 fi
11189 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11190 fi
11191 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ftello" >&5
11192 echo "${ECHO_T}$ac_cv_have_decl_ftello" >&6
11193 if test $ac_cv_have_decl_ftello = yes; then
11194
11195 cat >>confdefs.h <<_ACEOF
11196 #define HAVE_DECL_FTELLO 1
11197 _ACEOF
11198
11199
11200 else
11201 cat >>confdefs.h <<_ACEOF
11202 #define HAVE_DECL_FTELLO 0
11203 _ACEOF
11204
11205
11206 fi
11207
11208
11209 echo "$as_me:$LINENO: checking whether ftello64 is declared" >&5
11210 echo $ECHO_N "checking whether ftello64 is declared... $ECHO_C" >&6
11211 if test "${ac_cv_have_decl_ftello64+set}" = set; then
11212 echo $ECHO_N "(cached) $ECHO_C" >&6
11213 else
11214 cat >conftest.$ac_ext <<_ACEOF
11215 /* confdefs.h. */
11216 _ACEOF
11217 cat confdefs.h >>conftest.$ac_ext
11218 cat >>conftest.$ac_ext <<_ACEOF
11219 /* end confdefs.h. */
11220 $ac_includes_default
11221 int
11222 main ()
11223 {
11224 #ifndef ftello64
11225 char *p = (char *) ftello64;
11226 #endif
11227
11228 ;
11229 return 0;
11230 }
11231 _ACEOF
11232 rm -f conftest.$ac_objext
11233 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11234 (eval $ac_compile) 2>conftest.er1
11235 ac_status=$?
11236 grep -v '^ *+' conftest.er1 >conftest.err
11237 rm -f conftest.er1
11238 cat conftest.err >&5
11239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11240 (exit $ac_status); } &&
11241 { ac_try='test -z "$ac_c_werror_flag"
11242 || test ! -s conftest.err'
11243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11244 (eval $ac_try) 2>&5
11245 ac_status=$?
11246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11247 (exit $ac_status); }; } &&
11248 { ac_try='test -s conftest.$ac_objext'
11249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11250 (eval $ac_try) 2>&5
11251 ac_status=$?
11252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11253 (exit $ac_status); }; }; then
11254 ac_cv_have_decl_ftello64=yes
11255 else
11256 echo "$as_me: failed program was:" >&5
11257 sed 's/^/| /' conftest.$ac_ext >&5
11258
11259 ac_cv_have_decl_ftello64=no
11260 fi
11261 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11262 fi
11263 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ftello64" >&5
11264 echo "${ECHO_T}$ac_cv_have_decl_ftello64" >&6
11265 if test $ac_cv_have_decl_ftello64 = yes; then
11266
11267 cat >>confdefs.h <<_ACEOF
11268 #define HAVE_DECL_FTELLO64 1
11269 _ACEOF
11270
11271
11272 else
11273 cat >>confdefs.h <<_ACEOF
11274 #define HAVE_DECL_FTELLO64 0
11275 _ACEOF
11276
11277
11278 fi
11279
11280
11281 echo "$as_me:$LINENO: checking whether fseeko is declared" >&5
11282 echo $ECHO_N "checking whether fseeko is declared... $ECHO_C" >&6
11283 if test "${ac_cv_have_decl_fseeko+set}" = set; then
11284 echo $ECHO_N "(cached) $ECHO_C" >&6
11285 else
11286 cat >conftest.$ac_ext <<_ACEOF
11287 /* confdefs.h. */
11288 _ACEOF
11289 cat confdefs.h >>conftest.$ac_ext
11290 cat >>conftest.$ac_ext <<_ACEOF
11291 /* end confdefs.h. */
11292 $ac_includes_default
11293 int
11294 main ()
11295 {
11296 #ifndef fseeko
11297 char *p = (char *) fseeko;
11298 #endif
11299
11300 ;
11301 return 0;
11302 }
11303 _ACEOF
11304 rm -f conftest.$ac_objext
11305 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11306 (eval $ac_compile) 2>conftest.er1
11307 ac_status=$?
11308 grep -v '^ *+' conftest.er1 >conftest.err
11309 rm -f conftest.er1
11310 cat conftest.err >&5
11311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11312 (exit $ac_status); } &&
11313 { ac_try='test -z "$ac_c_werror_flag"
11314 || test ! -s conftest.err'
11315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11316 (eval $ac_try) 2>&5
11317 ac_status=$?
11318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11319 (exit $ac_status); }; } &&
11320 { ac_try='test -s conftest.$ac_objext'
11321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11322 (eval $ac_try) 2>&5
11323 ac_status=$?
11324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11325 (exit $ac_status); }; }; then
11326 ac_cv_have_decl_fseeko=yes
11327 else
11328 echo "$as_me: failed program was:" >&5
11329 sed 's/^/| /' conftest.$ac_ext >&5
11330
11331 ac_cv_have_decl_fseeko=no
11332 fi
11333 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11334 fi
11335 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fseeko" >&5
11336 echo "${ECHO_T}$ac_cv_have_decl_fseeko" >&6
11337 if test $ac_cv_have_decl_fseeko = yes; then
11338
11339 cat >>confdefs.h <<_ACEOF
11340 #define HAVE_DECL_FSEEKO 1
11341 _ACEOF
11342
11343
11344 else
11345 cat >>confdefs.h <<_ACEOF
11346 #define HAVE_DECL_FSEEKO 0
11347 _ACEOF
11348
11349
11350 fi
11351
11352
11353 echo "$as_me:$LINENO: checking whether fseeko64 is declared" >&5
11354 echo $ECHO_N "checking whether fseeko64 is declared... $ECHO_C" >&6
11355 if test "${ac_cv_have_decl_fseeko64+set}" = set; then
11356 echo $ECHO_N "(cached) $ECHO_C" >&6
11357 else
11358 cat >conftest.$ac_ext <<_ACEOF
11359 /* confdefs.h. */
11360 _ACEOF
11361 cat confdefs.h >>conftest.$ac_ext
11362 cat >>conftest.$ac_ext <<_ACEOF
11363 /* end confdefs.h. */
11364 $ac_includes_default
11365 int
11366 main ()
11367 {
11368 #ifndef fseeko64
11369 char *p = (char *) fseeko64;
11370 #endif
11371
11372 ;
11373 return 0;
11374 }
11375 _ACEOF
11376 rm -f conftest.$ac_objext
11377 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11378 (eval $ac_compile) 2>conftest.er1
11379 ac_status=$?
11380 grep -v '^ *+' conftest.er1 >conftest.err
11381 rm -f conftest.er1
11382 cat conftest.err >&5
11383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11384 (exit $ac_status); } &&
11385 { ac_try='test -z "$ac_c_werror_flag"
11386 || test ! -s conftest.err'
11387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11388 (eval $ac_try) 2>&5
11389 ac_status=$?
11390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11391 (exit $ac_status); }; } &&
11392 { ac_try='test -s conftest.$ac_objext'
11393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11394 (eval $ac_try) 2>&5
11395 ac_status=$?
11396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11397 (exit $ac_status); }; }; then
11398 ac_cv_have_decl_fseeko64=yes
11399 else
11400 echo "$as_me: failed program was:" >&5
11401 sed 's/^/| /' conftest.$ac_ext >&5
11402
11403 ac_cv_have_decl_fseeko64=no
11404 fi
11405 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11406 fi
11407 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fseeko64" >&5
11408 echo "${ECHO_T}$ac_cv_have_decl_fseeko64" >&6
11409 if test $ac_cv_have_decl_fseeko64 = yes; then
11410
11411 cat >>confdefs.h <<_ACEOF
11412 #define HAVE_DECL_FSEEKO64 1
11413 _ACEOF
11414
11415
11416 else
11417 cat >>confdefs.h <<_ACEOF
11418 #define HAVE_DECL_FSEEKO64 0
11419 _ACEOF
11420
11421
11422 fi
11423
11424
11425
11426
11427 case "${host}" in
11428 *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
11429
11430 cat >>confdefs.h <<\_ACEOF
11431 #define USE_BINARY_FOPEN 1
11432 _ACEOF
11433 ;;
11434 esac
11435
11436 echo "$as_me:$LINENO: checking whether ffs is declared" >&5
11437 echo $ECHO_N "checking whether ffs is declared... $ECHO_C" >&6
11438 if test "${ac_cv_have_decl_ffs+set}" = set; then
11439 echo $ECHO_N "(cached) $ECHO_C" >&6
11440 else
11441 cat >conftest.$ac_ext <<_ACEOF
11442 /* confdefs.h. */
11443 _ACEOF
11444 cat confdefs.h >>conftest.$ac_ext
11445 cat >>conftest.$ac_ext <<_ACEOF
11446 /* end confdefs.h. */
11447 $ac_includes_default
11448 int
11449 main ()
11450 {
11451 #ifndef ffs
11452 char *p = (char *) ffs;
11453 #endif
11454
11455 ;
11456 return 0;
11457 }
11458 _ACEOF
11459 rm -f conftest.$ac_objext
11460 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11461 (eval $ac_compile) 2>conftest.er1
11462 ac_status=$?
11463 grep -v '^ *+' conftest.er1 >conftest.err
11464 rm -f conftest.er1
11465 cat conftest.err >&5
11466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11467 (exit $ac_status); } &&
11468 { ac_try='test -z "$ac_c_werror_flag"
11469 || test ! -s conftest.err'
11470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11471 (eval $ac_try) 2>&5
11472 ac_status=$?
11473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11474 (exit $ac_status); }; } &&
11475 { ac_try='test -s conftest.$ac_objext'
11476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11477 (eval $ac_try) 2>&5
11478 ac_status=$?
11479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11480 (exit $ac_status); }; }; then
11481 ac_cv_have_decl_ffs=yes
11482 else
11483 echo "$as_me: failed program was:" >&5
11484 sed 's/^/| /' conftest.$ac_ext >&5
11485
11486 ac_cv_have_decl_ffs=no
11487 fi
11488 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11489 fi
11490 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ffs" >&5
11491 echo "${ECHO_T}$ac_cv_have_decl_ffs" >&6
11492 if test $ac_cv_have_decl_ffs = yes; then
11493
11494 cat >>confdefs.h <<_ACEOF
11495 #define HAVE_DECL_FFS 1
11496 _ACEOF
11497
11498
11499 else
11500 cat >>confdefs.h <<_ACEOF
11501 #define HAVE_DECL_FFS 0
11502 _ACEOF
11503
11504
11505 fi
11506
11507
11508 echo "$as_me:$LINENO: checking whether free is declared" >&5
11509 echo $ECHO_N "checking whether free is declared... $ECHO_C" >&6
11510 if test "${ac_cv_have_decl_free+set}" = set; then
11511 echo $ECHO_N "(cached) $ECHO_C" >&6
11512 else
11513 cat >conftest.$ac_ext <<_ACEOF
11514 /* confdefs.h. */
11515 _ACEOF
11516 cat confdefs.h >>conftest.$ac_ext
11517 cat >>conftest.$ac_ext <<_ACEOF
11518 /* end confdefs.h. */
11519 $ac_includes_default
11520 int
11521 main ()
11522 {
11523 #ifndef free
11524 char *p = (char *) free;
11525 #endif
11526
11527 ;
11528 return 0;
11529 }
11530 _ACEOF
11531 rm -f conftest.$ac_objext
11532 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11533 (eval $ac_compile) 2>conftest.er1
11534 ac_status=$?
11535 grep -v '^ *+' conftest.er1 >conftest.err
11536 rm -f conftest.er1
11537 cat conftest.err >&5
11538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11539 (exit $ac_status); } &&
11540 { ac_try='test -z "$ac_c_werror_flag"
11541 || test ! -s conftest.err'
11542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11543 (eval $ac_try) 2>&5
11544 ac_status=$?
11545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11546 (exit $ac_status); }; } &&
11547 { ac_try='test -s conftest.$ac_objext'
11548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11549 (eval $ac_try) 2>&5
11550 ac_status=$?
11551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11552 (exit $ac_status); }; }; then
11553 ac_cv_have_decl_free=yes
11554 else
11555 echo "$as_me: failed program was:" >&5
11556 sed 's/^/| /' conftest.$ac_ext >&5
11557
11558 ac_cv_have_decl_free=no
11559 fi
11560 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11561 fi
11562 echo "$as_me:$LINENO: result: $ac_cv_have_decl_free" >&5
11563 echo "${ECHO_T}$ac_cv_have_decl_free" >&6
11564 if test $ac_cv_have_decl_free = yes; then
11565
11566 cat >>confdefs.h <<_ACEOF
11567 #define HAVE_DECL_FREE 1
11568 _ACEOF
11569
11570
11571 else
11572 cat >>confdefs.h <<_ACEOF
11573 #define HAVE_DECL_FREE 0
11574 _ACEOF
11575
11576
11577 fi
11578
11579
11580 echo "$as_me:$LINENO: checking whether getenv is declared" >&5
11581 echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6
11582 if test "${ac_cv_have_decl_getenv+set}" = set; then
11583 echo $ECHO_N "(cached) $ECHO_C" >&6
11584 else
11585 cat >conftest.$ac_ext <<_ACEOF
11586 /* confdefs.h. */
11587 _ACEOF
11588 cat confdefs.h >>conftest.$ac_ext
11589 cat >>conftest.$ac_ext <<_ACEOF
11590 /* end confdefs.h. */
11591 $ac_includes_default
11592 int
11593 main ()
11594 {
11595 #ifndef getenv
11596 char *p = (char *) getenv;
11597 #endif
11598
11599 ;
11600 return 0;
11601 }
11602 _ACEOF
11603 rm -f conftest.$ac_objext
11604 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11605 (eval $ac_compile) 2>conftest.er1
11606 ac_status=$?
11607 grep -v '^ *+' conftest.er1 >conftest.err
11608 rm -f conftest.er1
11609 cat conftest.err >&5
11610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11611 (exit $ac_status); } &&
11612 { ac_try='test -z "$ac_c_werror_flag"
11613 || test ! -s conftest.err'
11614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11615 (eval $ac_try) 2>&5
11616 ac_status=$?
11617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11618 (exit $ac_status); }; } &&
11619 { ac_try='test -s conftest.$ac_objext'
11620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11621 (eval $ac_try) 2>&5
11622 ac_status=$?
11623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11624 (exit $ac_status); }; }; then
11625 ac_cv_have_decl_getenv=yes
11626 else
11627 echo "$as_me: failed program was:" >&5
11628 sed 's/^/| /' conftest.$ac_ext >&5
11629
11630 ac_cv_have_decl_getenv=no
11631 fi
11632 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11633 fi
11634 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
11635 echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6
11636 if test $ac_cv_have_decl_getenv = yes; then
11637
11638 cat >>confdefs.h <<_ACEOF
11639 #define HAVE_DECL_GETENV 1
11640 _ACEOF
11641
11642
11643 else
11644 cat >>confdefs.h <<_ACEOF
11645 #define HAVE_DECL_GETENV 0
11646 _ACEOF
11647
11648
11649 fi
11650
11651
11652 echo "$as_me:$LINENO: checking whether malloc is declared" >&5
11653 echo $ECHO_N "checking whether malloc is declared... $ECHO_C" >&6
11654 if test "${ac_cv_have_decl_malloc+set}" = set; then
11655 echo $ECHO_N "(cached) $ECHO_C" >&6
11656 else
11657 cat >conftest.$ac_ext <<_ACEOF
11658 /* confdefs.h. */
11659 _ACEOF
11660 cat confdefs.h >>conftest.$ac_ext
11661 cat >>conftest.$ac_ext <<_ACEOF
11662 /* end confdefs.h. */
11663 $ac_includes_default
11664 int
11665 main ()
11666 {
11667 #ifndef malloc
11668 char *p = (char *) malloc;
11669 #endif
11670
11671 ;
11672 return 0;
11673 }
11674 _ACEOF
11675 rm -f conftest.$ac_objext
11676 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11677 (eval $ac_compile) 2>conftest.er1
11678 ac_status=$?
11679 grep -v '^ *+' conftest.er1 >conftest.err
11680 rm -f conftest.er1
11681 cat conftest.err >&5
11682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11683 (exit $ac_status); } &&
11684 { ac_try='test -z "$ac_c_werror_flag"
11685 || test ! -s conftest.err'
11686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11687 (eval $ac_try) 2>&5
11688 ac_status=$?
11689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11690 (exit $ac_status); }; } &&
11691 { ac_try='test -s conftest.$ac_objext'
11692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11693 (eval $ac_try) 2>&5
11694 ac_status=$?
11695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11696 (exit $ac_status); }; }; then
11697 ac_cv_have_decl_malloc=yes
11698 else
11699 echo "$as_me: failed program was:" >&5
11700 sed 's/^/| /' conftest.$ac_ext >&5
11701
11702 ac_cv_have_decl_malloc=no
11703 fi
11704 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11705 fi
11706 echo "$as_me:$LINENO: result: $ac_cv_have_decl_malloc" >&5
11707 echo "${ECHO_T}$ac_cv_have_decl_malloc" >&6
11708 if test $ac_cv_have_decl_malloc = yes; then
11709
11710 cat >>confdefs.h <<_ACEOF
11711 #define HAVE_DECL_MALLOC 1
11712 _ACEOF
11713
11714
11715 else
11716 cat >>confdefs.h <<_ACEOF
11717 #define HAVE_DECL_MALLOC 0
11718 _ACEOF
11719
11720
11721 fi
11722
11723
11724 echo "$as_me:$LINENO: checking whether realloc is declared" >&5
11725 echo $ECHO_N "checking whether realloc is declared... $ECHO_C" >&6
11726 if test "${ac_cv_have_decl_realloc+set}" = set; then
11727 echo $ECHO_N "(cached) $ECHO_C" >&6
11728 else
11729 cat >conftest.$ac_ext <<_ACEOF
11730 /* confdefs.h. */
11731 _ACEOF
11732 cat confdefs.h >>conftest.$ac_ext
11733 cat >>conftest.$ac_ext <<_ACEOF
11734 /* end confdefs.h. */
11735 $ac_includes_default
11736 int
11737 main ()
11738 {
11739 #ifndef realloc
11740 char *p = (char *) realloc;
11741 #endif
11742
11743 ;
11744 return 0;
11745 }
11746 _ACEOF
11747 rm -f conftest.$ac_objext
11748 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11749 (eval $ac_compile) 2>conftest.er1
11750 ac_status=$?
11751 grep -v '^ *+' conftest.er1 >conftest.err
11752 rm -f conftest.er1
11753 cat conftest.err >&5
11754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11755 (exit $ac_status); } &&
11756 { ac_try='test -z "$ac_c_werror_flag"
11757 || test ! -s conftest.err'
11758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11759 (eval $ac_try) 2>&5
11760 ac_status=$?
11761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11762 (exit $ac_status); }; } &&
11763 { ac_try='test -s conftest.$ac_objext'
11764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11765 (eval $ac_try) 2>&5
11766 ac_status=$?
11767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11768 (exit $ac_status); }; }; then
11769 ac_cv_have_decl_realloc=yes
11770 else
11771 echo "$as_me: failed program was:" >&5
11772 sed 's/^/| /' conftest.$ac_ext >&5
11773
11774 ac_cv_have_decl_realloc=no
11775 fi
11776 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11777 fi
11778 echo "$as_me:$LINENO: result: $ac_cv_have_decl_realloc" >&5
11779 echo "${ECHO_T}$ac_cv_have_decl_realloc" >&6
11780 if test $ac_cv_have_decl_realloc = yes; then
11781
11782 cat >>confdefs.h <<_ACEOF
11783 #define HAVE_DECL_REALLOC 1
11784 _ACEOF
11785
11786
11787 else
11788 cat >>confdefs.h <<_ACEOF
11789 #define HAVE_DECL_REALLOC 0
11790 _ACEOF
11791
11792
11793 fi
11794
11795
11796 echo "$as_me:$LINENO: checking whether stpcpy is declared" >&5
11797 echo $ECHO_N "checking whether stpcpy is declared... $ECHO_C" >&6
11798 if test "${ac_cv_have_decl_stpcpy+set}" = set; then
11799 echo $ECHO_N "(cached) $ECHO_C" >&6
11800 else
11801 cat >conftest.$ac_ext <<_ACEOF
11802 /* confdefs.h. */
11803 _ACEOF
11804 cat confdefs.h >>conftest.$ac_ext
11805 cat >>conftest.$ac_ext <<_ACEOF
11806 /* end confdefs.h. */
11807 $ac_includes_default
11808 int
11809 main ()
11810 {
11811 #ifndef stpcpy
11812 char *p = (char *) stpcpy;
11813 #endif
11814
11815 ;
11816 return 0;
11817 }
11818 _ACEOF
11819 rm -f conftest.$ac_objext
11820 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11821 (eval $ac_compile) 2>conftest.er1
11822 ac_status=$?
11823 grep -v '^ *+' conftest.er1 >conftest.err
11824 rm -f conftest.er1
11825 cat conftest.err >&5
11826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11827 (exit $ac_status); } &&
11828 { ac_try='test -z "$ac_c_werror_flag"
11829 || test ! -s conftest.err'
11830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11831 (eval $ac_try) 2>&5
11832 ac_status=$?
11833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11834 (exit $ac_status); }; } &&
11835 { ac_try='test -s conftest.$ac_objext'
11836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11837 (eval $ac_try) 2>&5
11838 ac_status=$?
11839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11840 (exit $ac_status); }; }; then
11841 ac_cv_have_decl_stpcpy=yes
11842 else
11843 echo "$as_me: failed program was:" >&5
11844 sed 's/^/| /' conftest.$ac_ext >&5
11845
11846 ac_cv_have_decl_stpcpy=no
11847 fi
11848 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11849 fi
11850 echo "$as_me:$LINENO: result: $ac_cv_have_decl_stpcpy" >&5
11851 echo "${ECHO_T}$ac_cv_have_decl_stpcpy" >&6
11852 if test $ac_cv_have_decl_stpcpy = yes; then
11853
11854 cat >>confdefs.h <<_ACEOF
11855 #define HAVE_DECL_STPCPY 1
11856 _ACEOF
11857
11858
11859 else
11860 cat >>confdefs.h <<_ACEOF
11861 #define HAVE_DECL_STPCPY 0
11862 _ACEOF
11863
11864
11865 fi
11866
11867
11868 echo "$as_me:$LINENO: checking whether strstr is declared" >&5
11869 echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6
11870 if test "${ac_cv_have_decl_strstr+set}" = set; then
11871 echo $ECHO_N "(cached) $ECHO_C" >&6
11872 else
11873 cat >conftest.$ac_ext <<_ACEOF
11874 /* confdefs.h. */
11875 _ACEOF
11876 cat confdefs.h >>conftest.$ac_ext
11877 cat >>conftest.$ac_ext <<_ACEOF
11878 /* end confdefs.h. */
11879 $ac_includes_default
11880 int
11881 main ()
11882 {
11883 #ifndef strstr
11884 char *p = (char *) strstr;
11885 #endif
11886
11887 ;
11888 return 0;
11889 }
11890 _ACEOF
11891 rm -f conftest.$ac_objext
11892 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11893 (eval $ac_compile) 2>conftest.er1
11894 ac_status=$?
11895 grep -v '^ *+' conftest.er1 >conftest.err
11896 rm -f conftest.er1
11897 cat conftest.err >&5
11898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11899 (exit $ac_status); } &&
11900 { ac_try='test -z "$ac_c_werror_flag"
11901 || test ! -s conftest.err'
11902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11903 (eval $ac_try) 2>&5
11904 ac_status=$?
11905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11906 (exit $ac_status); }; } &&
11907 { ac_try='test -s conftest.$ac_objext'
11908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11909 (eval $ac_try) 2>&5
11910 ac_status=$?
11911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11912 (exit $ac_status); }; }; then
11913 ac_cv_have_decl_strstr=yes
11914 else
11915 echo "$as_me: failed program was:" >&5
11916 sed 's/^/| /' conftest.$ac_ext >&5
11917
11918 ac_cv_have_decl_strstr=no
11919 fi
11920 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11921 fi
11922 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5
11923 echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6
11924 if test $ac_cv_have_decl_strstr = yes; then
11925
11926 cat >>confdefs.h <<_ACEOF
11927 #define HAVE_DECL_STRSTR 1
11928 _ACEOF
11929
11930
11931 else
11932 cat >>confdefs.h <<_ACEOF
11933 #define HAVE_DECL_STRSTR 0
11934 _ACEOF
11935
11936
11937 fi
11938
11939
11940 echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
11941 echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
11942 if test "${ac_cv_have_decl_snprintf+set}" = set; then
11943 echo $ECHO_N "(cached) $ECHO_C" >&6
11944 else
11945 cat >conftest.$ac_ext <<_ACEOF
11946 /* confdefs.h. */
11947 _ACEOF
11948 cat confdefs.h >>conftest.$ac_ext
11949 cat >>conftest.$ac_ext <<_ACEOF
11950 /* end confdefs.h. */
11951 $ac_includes_default
11952 int
11953 main ()
11954 {
11955 #ifndef snprintf
11956 char *p = (char *) snprintf;
11957 #endif
11958
11959 ;
11960 return 0;
11961 }
11962 _ACEOF
11963 rm -f conftest.$ac_objext
11964 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11965 (eval $ac_compile) 2>conftest.er1
11966 ac_status=$?
11967 grep -v '^ *+' conftest.er1 >conftest.err
11968 rm -f conftest.er1
11969 cat conftest.err >&5
11970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11971 (exit $ac_status); } &&
11972 { ac_try='test -z "$ac_c_werror_flag"
11973 || test ! -s conftest.err'
11974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11975 (eval $ac_try) 2>&5
11976 ac_status=$?
11977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11978 (exit $ac_status); }; } &&
11979 { ac_try='test -s conftest.$ac_objext'
11980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11981 (eval $ac_try) 2>&5
11982 ac_status=$?
11983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11984 (exit $ac_status); }; }; then
11985 ac_cv_have_decl_snprintf=yes
11986 else
11987 echo "$as_me: failed program was:" >&5
11988 sed 's/^/| /' conftest.$ac_ext >&5
11989
11990 ac_cv_have_decl_snprintf=no
11991 fi
11992 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11993 fi
11994 echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
11995 echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
11996 if test $ac_cv_have_decl_snprintf = yes; then
11997
11998 cat >>confdefs.h <<_ACEOF
11999 #define HAVE_DECL_SNPRINTF 1
12000 _ACEOF
12001
12002
12003 else
12004 cat >>confdefs.h <<_ACEOF
12005 #define HAVE_DECL_SNPRINTF 0
12006 _ACEOF
12007
12008
12009 fi
12010
12011
12012 echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
12013 echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
12014 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
12015 echo $ECHO_N "(cached) $ECHO_C" >&6
12016 else
12017 cat >conftest.$ac_ext <<_ACEOF
12018 /* confdefs.h. */
12019 _ACEOF
12020 cat confdefs.h >>conftest.$ac_ext
12021 cat >>conftest.$ac_ext <<_ACEOF
12022 /* end confdefs.h. */
12023 $ac_includes_default
12024 int
12025 main ()
12026 {
12027 #ifndef vsnprintf
12028 char *p = (char *) vsnprintf;
12029 #endif
12030
12031 ;
12032 return 0;
12033 }
12034 _ACEOF
12035 rm -f conftest.$ac_objext
12036 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12037 (eval $ac_compile) 2>conftest.er1
12038 ac_status=$?
12039 grep -v '^ *+' conftest.er1 >conftest.err
12040 rm -f conftest.er1
12041 cat conftest.err >&5
12042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12043 (exit $ac_status); } &&
12044 { ac_try='test -z "$ac_c_werror_flag"
12045 || test ! -s conftest.err'
12046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12047 (eval $ac_try) 2>&5
12048 ac_status=$?
12049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12050 (exit $ac_status); }; } &&
12051 { ac_try='test -s conftest.$ac_objext'
12052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12053 (eval $ac_try) 2>&5
12054 ac_status=$?
12055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12056 (exit $ac_status); }; }; then
12057 ac_cv_have_decl_vsnprintf=yes
12058 else
12059 echo "$as_me: failed program was:" >&5
12060 sed 's/^/| /' conftest.$ac_ext >&5
12061
12062 ac_cv_have_decl_vsnprintf=no
12063 fi
12064 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12065 fi
12066 echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
12067 echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
12068 if test $ac_cv_have_decl_vsnprintf = yes; then
12069
12070 cat >>confdefs.h <<_ACEOF
12071 #define HAVE_DECL_VSNPRINTF 1
12072 _ACEOF
12073
12074
12075 else
12076 cat >>confdefs.h <<_ACEOF
12077 #define HAVE_DECL_VSNPRINTF 0
12078 _ACEOF
12079
12080
12081 fi
12082
12083
12084
12085 # If we are configured native, pick a core file support file.
12086 COREFILE=
12087 COREFLAG=
12088 TRAD_HEADER=
12089 if test "${target}" = "${host}"; then
12090 case "${host}" in
12091 alpha*-*-freebsd* | alpha*-*-kfreebsd*-gnu)
12092 COREFILE=''
12093 ;;
12094 alpha*-*-linux-*)
12095 COREFILE=trad-core.lo
12096 TRAD_HEADER='"hosts/alphalinux.h"'
12097 ;;
12098 alpha*-*-netbsd* | alpha*-*-openbsd*)
12099 COREFILE=netbsd-core.lo
12100 ;;
12101 alpha*-*-*) COREFILE=osf-core.lo ;;
12102 arm-*-freebsd* | arm-*-kfreebsd*-gnu)
12103 COREFILE='' ;;
12104 arm-*-netbsd* | arm-*-openbsd*)
12105 COREFILE=netbsd-core.lo
12106 ;;
12107 arm-*-riscix) COREFILE=trad-core.lo ;;
12108 hppa*-*-hpux*) COREFILE=hpux-core.lo ;;
12109 hppa*-*-hiux*) COREFILE=hpux-core.lo ;;
12110 hppa*-*-mpeix*) COREFILE=hpux-core.lo ;;
12111 hppa*-*-bsd*) COREFILE="hpux-core.lo hppabsd-core.lo"
12112 COREFLAG="-DHPUX_CORE -DHPPABSD_CORE" ;;
12113 hppa*-*-netbsd* | hppa*-*-openbsd*)
12114 COREFILE=netbsd-core.lo
12115 ;;
12116
12117 i370-*-*)
12118 COREFILE=trad-core.lo
12119 TRAD_HEADER='"hosts/i370linux.h"'
12120 ;;
12121
12122 i[3-7]86-sequent-bsd*)
12123 COREFILE=trad-core.lo
12124 TRAD_HEADER='"hosts/symmetry.h"'
12125 ;;
12126 i[3-7]86-sequent-sysv4*) ;;
12127 i[3-7]86-sequent-sysv*)
12128 COREFILE=trad-core.lo
12129 TRAD_HEADER='"hosts/symmetry.h"'
12130 ;;
12131 i[3-7]86-*-bsdi)
12132 COREFILE=
12133 ;;
12134 i[3-7]86-*-bsd* | i[3-7]86-*-freebsd[123] | i[3-7]86-*-freebsd[123]\.* | i[3-7]86-*-freebsd4\.[01234] | i[3-7]86-*-freebsd4\.[01234]\.* | i[3-7]86-*-freebsd*aout*)
12135 COREFILE=trad-core.lo
12136 TRAD_HEADER='"hosts/i386bsd.h"'
12137 ;;
12138 i[3-7]86-*-freebsd* | i[3-7]86-*-kfreebsd*-gnu)
12139 COREFILE=''
12140 TRAD_HEADER='"hosts/i386bsd.h"'
12141 ;;
12142 i[3-7]86-*-netbsd* | i[3-7]86-*-knetbsd*-gnu | i[3-7]86-*-openbsd*)
12143 COREFILE=netbsd-core.lo
12144 ;;
12145 i[3-7]86-esix-sysv3*)
12146 COREFILE=trad-core.lo
12147 TRAD_HEADER='"hosts/esix.h"'
12148 ;;
12149 i[3-7]86-*-sco3.2v5*)
12150 COREFILE=sco5-core.lo
12151 ;;
12152 i[3-7]86-*-sco* | i[3-7]86-*-isc*)
12153 COREFILE=trad-core.lo
12154 TRAD_HEADER='"hosts/i386sco.h"'
12155 ;;
12156 i[3-7]86-*-mach3*)
12157 COREFILE=trad-core.lo
12158 TRAD_HEADER='"hosts/i386mach3.h"'
12159 ;;
12160 i[3-7]86-*-linux-*)
12161 COREFILE=trad-core.lo
12162 TRAD_HEADER='"hosts/i386linux.h"'
12163 ;;
12164 i[3-7]86-*-isc*) COREFILE=trad-core.lo ;;
12165 i[3-7]86-*-aix*) COREFILE=aix386-core.lo ;;
12166 i860-*-mach3* | i860-*-osf1*)
12167 COREFILE=trad-core.lo
12168 TRAD_HEADER='"hosts/i860mach3.h"'
12169 ;;
12170 mips-*-netbsd* | mips*-*-openbsd*)
12171 COREFILE=netbsd-core.lo
12172 ;;
12173 mips-dec-*)
12174 COREFILE=trad-core.lo
12175 TRAD_HEADER='"hosts/decstation.h"'
12176 ;;
12177 mips-sgi-irix4*) COREFILE=irix-core.lo ;;
12178 mips-sgi-irix5*) COREFILE=irix-core.lo ;;
12179 mips-sgi-irix6*) COREFILE=irix-core.lo ;;
12180 mips-*-sysv4*) ;;
12181 mips-*-sysv* | mips-*-riscos*)
12182 COREFILE=trad-core.lo
12183 TRAD_HEADER='"hosts/riscos.h"'
12184 ;;
12185 mips-sony-bsd*)
12186 COREFILE=trad-core.lo
12187 TRAD_HEADER='"hosts/news-mips.h"'
12188 ;;
12189 m68*-bull*-sysv*)
12190 COREFILE=trad-core.lo
12191 TRAD_HEADER='"hosts/dpx2.h"'
12192 ;;
12193 m68*-hp-hpux*) COREFILE=hpux-core.lo ;;
12194 m68*-hp-bsd*)
12195 COREFILE=trad-core.lo
12196 TRAD_HEADER='"hosts/hp300bsd.h"'
12197 ;;
12198 m68*-*-linux-*)
12199 COREFILE=trad-core.lo
12200 TRAD_HEADER='"hosts/m68klinux.h"'
12201 ;;
12202 m68*-motorola-sysv*)
12203 COREFILE=trad-core.lo
12204 TRAD_HEADER='"hosts/delta68.h"'
12205 ;;
12206 m68*-sony-*)
12207 COREFILE=trad-core.lo
12208 TRAD_HEADER='"hosts/news.h"'
12209 ;;
12210 m68*-*-netbsd* | m68*-*-openbsd*)
12211 COREFILE=netbsd-core.lo
12212 ;;
12213 m68*-apple-aux*)
12214 COREFILE=trad-core.lo
12215 TRAD_HEADER='"hosts/m68kaux.h"'
12216 ;;
12217 m88*-*-sysv4*)
12218 ;;
12219 m88*-motorola-sysv*)
12220 COREFILE=ptrace-core.lo
12221 ;;
12222 m88*-*-mach3*)
12223 COREFILE=trad-core.lo
12224 TRAD_HEADER='"hosts/m88kmach3.h"'
12225 ;;
12226 m88*-*-openbsd*)
12227 COREFILE=netbsd-core.lo
12228 ;;
12229 ns32k-pc532-mach)
12230 COREFILE=trad-core.lo
12231 TRAD_HEADER='"hosts/pc532mach.h"'
12232 ;;
12233 ns32k-*-netbsd* | ns32k-*-openbsd*)
12234 COREFILE=netbsd-core.lo
12235 ;;
12236 rs6000-*-lynx*)
12237 COREFILE=lynx-core.lo
12238 ;;
12239 rs6000-*-aix5.* | powerpc-*-aix5.*)
12240 COREFILE=rs6000-core.lo
12241 COREFLAG="$COREFLAG -DAIX_5_CORE -DAIX_CORE_DUMPX_CORE"
12242 ;;
12243 rs6000-*-aix4.[3-9]* | powerpc-*-aix4.[3-9]*)
12244 COREFILE=rs6000-core.lo
12245 COREFLAG="$COREFLAG -DAIX_CORE_DUMPX_CORE"
12246 # Not all versions of AIX with -DAIX_CORE_DUMPX_CORE
12247 # have c_impl as a member of struct core_dumpx
12248 echo "$as_me:$LINENO: checking for c_impl in struct core_dumpx" >&5
12249 echo $ECHO_N "checking for c_impl in struct core_dumpx... $ECHO_C" >&6
12250 cat >conftest.$ac_ext <<_ACEOF
12251 /* confdefs.h. */
12252 _ACEOF
12253 cat confdefs.h >>conftest.$ac_ext
12254 cat >>conftest.$ac_ext <<_ACEOF
12255 /* end confdefs.h. */
12256 #include <core.h>
12257 int
12258 main ()
12259 {
12260 struct core_dumpx c; c.c_impl = 0;
12261 ;
12262 return 0;
12263 }
12264 _ACEOF
12265 rm -f conftest.$ac_objext
12266 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12267 (eval $ac_compile) 2>conftest.er1
12268 ac_status=$?
12269 grep -v '^ *+' conftest.er1 >conftest.err
12270 rm -f conftest.er1
12271 cat conftest.err >&5
12272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12273 (exit $ac_status); } &&
12274 { ac_try='test -z "$ac_c_werror_flag"
12275 || test ! -s conftest.err'
12276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12277 (eval $ac_try) 2>&5
12278 ac_status=$?
12279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12280 (exit $ac_status); }; } &&
12281 { ac_try='test -s conftest.$ac_objext'
12282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12283 (eval $ac_try) 2>&5
12284 ac_status=$?
12285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12286 (exit $ac_status); }; }; then
12287
12288 cat >>confdefs.h <<\_ACEOF
12289 #define HAVE_ST_C_IMPL 1
12290 _ACEOF
12291
12292 echo "$as_me:$LINENO: result: yes" >&5
12293 echo "${ECHO_T}yes" >&6
12294 else
12295 echo "$as_me: failed program was:" >&5
12296 sed 's/^/| /' conftest.$ac_ext >&5
12297
12298 echo "$as_me:$LINENO: result: no" >&5
12299 echo "${ECHO_T}no" >&6
12300 fi
12301 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12302 ;;
12303 rs6000-*-aix4*) COREFILE=rs6000-core.lo ;;
12304 rs6000-*-*) COREFILE=rs6000-core.lo ;;
12305 powerpc-*-aix4*) COREFILE=rs6000-core.lo ;;
12306 powerpc-*-aix*) COREFILE=rs6000-core.lo ;;
12307 powerpc-*-beos*) ;;
12308 powerpc-*-freebsd* | powerpc-*-kfreebsd*-gnu)
12309 COREFILE='' ;;
12310 powerpc-*-netbsd*) COREFILE=netbsd-core.lo ;;
12311 powerpc-*-*bsd*) COREFILE=netbsd-core.lo ;;
12312 s390*-*-*) COREFILE=trad-core.lo ;;
12313 sh*-*-netbsd* | sh*-*-openbsd*)
12314 COREFILE=netbsd-core.lo
12315 ;;
12316 sparc-*-netbsd* | sparc*-*-openbsd*)
12317 COREFILE=netbsd-core.lo
12318 ;;
12319 tahoe-*-*)
12320 COREFILE=trad-core.lo
12321 TRAD_HEADER='"hosts/tahoe.h"'
12322 ;;
12323 vax-*-netbsd* | vax-*-openbsd*)
12324 COREFILE=netbsd-core.lo
12325 ;;
12326 vax-*-ultrix2*)
12327 COREFILE=trad-core.lo
12328 TRAD_HEADER='"hosts/vaxult2.h"'
12329 ;;
12330 vax-*-ultrix*)
12331 COREFILE=trad-core.lo
12332 TRAD_HEADER='"hosts/vaxult2.h"'
12333 ;;
12334 vax-*-linux-*)
12335 COREFILE=trad-core.lo
12336 TRAD_HEADER='"hosts/vaxlinux.h"'
12337 ;;
12338 vax-*-*)
12339 COREFILE=trad-core.lo
12340 TRAD_HEADER='"hosts/vaxbsd.h"'
12341 ;;
12342 x86_64-*-netbsd* | x86_64-*-openbsd*)
12343 COREFILE=netbsd-core.lo
12344 ;;
12345 esac
12346
12347 case "$COREFILE" in
12348 aix386-core.lo) COREFLAG=-DAIX386_CORE ;;
12349 hppabsd-core.lo) COREFLAG=-DHPPABSD_CORE ;;
12350 hpux-core.lo) COREFLAG=-DHPUX_CORE ;;
12351 irix-core.lo) COREFLAG=-DIRIX_CORE ;;
12352 lynx-core.lo) COREFLAG=-DLYNX_CORE ;;
12353 netbsd-core.lo) COREFLAG=-DNETBSD_CORE ;;
12354 osf-core.lo) COREFLAG=-DOSF_CORE ;;
12355 ptrace-core.lo) COREFLAG=-DPTRACE_CORE ;;
12356 rs6000-core.lo) COREFLAG="$COREFLAG -DAIX_CORE" ;;
12357 sco5-core.lo) COREFLAG="$COREFLAG -DSCO5_CORE" ;;
12358 trad-core.lo) COREFLAG="$COREFLAG -DTRAD_CORE" ;;
12359 esac
12360
12361 # ELF corefile support has several flavors, but all of
12362 # them use something called <sys/procfs.h>
12363
12364 for ac_header in sys/procfs.h
12365 do
12366 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12367 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12368 echo "$as_me:$LINENO: checking for $ac_header" >&5
12369 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12370 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12371 echo $ECHO_N "(cached) $ECHO_C" >&6
12372 fi
12373 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12374 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12375 else
12376 # Is the header compilable?
12377 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12378 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12379 cat >conftest.$ac_ext <<_ACEOF
12380 /* confdefs.h. */
12381 _ACEOF
12382 cat confdefs.h >>conftest.$ac_ext
12383 cat >>conftest.$ac_ext <<_ACEOF
12384 /* end confdefs.h. */
12385 $ac_includes_default
12386 #include <$ac_header>
12387 _ACEOF
12388 rm -f conftest.$ac_objext
12389 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12390 (eval $ac_compile) 2>conftest.er1
12391 ac_status=$?
12392 grep -v '^ *+' conftest.er1 >conftest.err
12393 rm -f conftest.er1
12394 cat conftest.err >&5
12395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12396 (exit $ac_status); } &&
12397 { ac_try='test -z "$ac_c_werror_flag"
12398 || test ! -s conftest.err'
12399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12400 (eval $ac_try) 2>&5
12401 ac_status=$?
12402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12403 (exit $ac_status); }; } &&
12404 { ac_try='test -s conftest.$ac_objext'
12405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12406 (eval $ac_try) 2>&5
12407 ac_status=$?
12408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12409 (exit $ac_status); }; }; then
12410 ac_header_compiler=yes
12411 else
12412 echo "$as_me: failed program was:" >&5
12413 sed 's/^/| /' conftest.$ac_ext >&5
12414
12415 ac_header_compiler=no
12416 fi
12417 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12418 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12419 echo "${ECHO_T}$ac_header_compiler" >&6
12420
12421 # Is the header present?
12422 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12423 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12424 cat >conftest.$ac_ext <<_ACEOF
12425 /* confdefs.h. */
12426 _ACEOF
12427 cat confdefs.h >>conftest.$ac_ext
12428 cat >>conftest.$ac_ext <<_ACEOF
12429 /* end confdefs.h. */
12430 #include <$ac_header>
12431 _ACEOF
12432 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12433 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12434 ac_status=$?
12435 grep -v '^ *+' conftest.er1 >conftest.err
12436 rm -f conftest.er1
12437 cat conftest.err >&5
12438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12439 (exit $ac_status); } >/dev/null; then
12440 if test -s conftest.err; then
12441 ac_cpp_err=$ac_c_preproc_warn_flag
12442 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12443 else
12444 ac_cpp_err=
12445 fi
12446 else
12447 ac_cpp_err=yes
12448 fi
12449 if test -z "$ac_cpp_err"; then
12450 ac_header_preproc=yes
12451 else
12452 echo "$as_me: failed program was:" >&5
12453 sed 's/^/| /' conftest.$ac_ext >&5
12454
12455 ac_header_preproc=no
12456 fi
12457 rm -f conftest.err conftest.$ac_ext
12458 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12459 echo "${ECHO_T}$ac_header_preproc" >&6
12460
12461 # So? What about this header?
12462 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12463 yes:no: )
12464 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12465 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12466 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12467 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12468 ac_header_preproc=yes
12469 ;;
12470 no:yes:* )
12471 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12472 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12473 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12474 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12475 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12476 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12477 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12478 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12479 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12480 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12481 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12482 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12483 (
12484 cat <<\_ASBOX
12485 ## ------------------------------------------ ##
12486 ## Report this to the AC_PACKAGE_NAME lists. ##
12487 ## ------------------------------------------ ##
12488 _ASBOX
12489 ) |
12490 sed "s/^/$as_me: WARNING: /" >&2
12491 ;;
12492 esac
12493 echo "$as_me:$LINENO: checking for $ac_header" >&5
12494 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12495 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12496 echo $ECHO_N "(cached) $ECHO_C" >&6
12497 else
12498 eval "$as_ac_Header=\$ac_header_preproc"
12499 fi
12500 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12501 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12502
12503 fi
12504 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12505 cat >>confdefs.h <<_ACEOF
12506 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12507 _ACEOF
12508
12509 fi
12510
12511 done
12512
12513 if test "$ac_cv_header_sys_procfs_h" = yes; then
12514 echo "$as_me:$LINENO: checking for prstatus_t in sys/procfs.h" >&5
12515 echo $ECHO_N "checking for prstatus_t in sys/procfs.h... $ECHO_C" >&6
12516 if test "${bfd_cv_have_sys_procfs_type_prstatus_t+set}" = set; then
12517 echo $ECHO_N "(cached) $ECHO_C" >&6
12518 else
12519 cat >conftest.$ac_ext <<_ACEOF
12520 /* confdefs.h. */
12521 _ACEOF
12522 cat confdefs.h >>conftest.$ac_ext
12523 cat >>conftest.$ac_ext <<_ACEOF
12524 /* end confdefs.h. */
12525
12526 #define _SYSCALL32
12527 #include <sys/procfs.h>
12528 int
12529 main ()
12530 {
12531 prstatus_t avar
12532 ;
12533 return 0;
12534 }
12535 _ACEOF
12536 rm -f conftest.$ac_objext
12537 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12538 (eval $ac_compile) 2>conftest.er1
12539 ac_status=$?
12540 grep -v '^ *+' conftest.er1 >conftest.err
12541 rm -f conftest.er1
12542 cat conftest.err >&5
12543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12544 (exit $ac_status); } &&
12545 { ac_try='test -z "$ac_c_werror_flag"
12546 || test ! -s conftest.err'
12547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12548 (eval $ac_try) 2>&5
12549 ac_status=$?
12550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12551 (exit $ac_status); }; } &&
12552 { ac_try='test -s conftest.$ac_objext'
12553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12554 (eval $ac_try) 2>&5
12555 ac_status=$?
12556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12557 (exit $ac_status); }; }; then
12558 bfd_cv_have_sys_procfs_type_prstatus_t=yes
12559 else
12560 echo "$as_me: failed program was:" >&5
12561 sed 's/^/| /' conftest.$ac_ext >&5
12562
12563 bfd_cv_have_sys_procfs_type_prstatus_t=no
12564
12565 fi
12566 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12567 fi
12568
12569 if test $bfd_cv_have_sys_procfs_type_prstatus_t = yes; then
12570
12571 cat >>confdefs.h <<\_ACEOF
12572 #define HAVE_PRSTATUS_T 1
12573 _ACEOF
12574
12575 fi
12576 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prstatus_t" >&5
12577 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prstatus_t" >&6
12578
12579 echo "$as_me:$LINENO: checking for prstatus32_t in sys/procfs.h" >&5
12580 echo $ECHO_N "checking for prstatus32_t in sys/procfs.h... $ECHO_C" >&6
12581 if test "${bfd_cv_have_sys_procfs_type_prstatus32_t+set}" = set; then
12582 echo $ECHO_N "(cached) $ECHO_C" >&6
12583 else
12584 cat >conftest.$ac_ext <<_ACEOF
12585 /* confdefs.h. */
12586 _ACEOF
12587 cat confdefs.h >>conftest.$ac_ext
12588 cat >>conftest.$ac_ext <<_ACEOF
12589 /* end confdefs.h. */
12590
12591 #define _SYSCALL32
12592 #include <sys/procfs.h>
12593 int
12594 main ()
12595 {
12596 prstatus32_t avar
12597 ;
12598 return 0;
12599 }
12600 _ACEOF
12601 rm -f conftest.$ac_objext
12602 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12603 (eval $ac_compile) 2>conftest.er1
12604 ac_status=$?
12605 grep -v '^ *+' conftest.er1 >conftest.err
12606 rm -f conftest.er1
12607 cat conftest.err >&5
12608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12609 (exit $ac_status); } &&
12610 { ac_try='test -z "$ac_c_werror_flag"
12611 || test ! -s conftest.err'
12612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12613 (eval $ac_try) 2>&5
12614 ac_status=$?
12615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12616 (exit $ac_status); }; } &&
12617 { ac_try='test -s conftest.$ac_objext'
12618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12619 (eval $ac_try) 2>&5
12620 ac_status=$?
12621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12622 (exit $ac_status); }; }; then
12623 bfd_cv_have_sys_procfs_type_prstatus32_t=yes
12624 else
12625 echo "$as_me: failed program was:" >&5
12626 sed 's/^/| /' conftest.$ac_ext >&5
12627
12628 bfd_cv_have_sys_procfs_type_prstatus32_t=no
12629
12630 fi
12631 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12632 fi
12633
12634 if test $bfd_cv_have_sys_procfs_type_prstatus32_t = yes; then
12635
12636 cat >>confdefs.h <<\_ACEOF
12637 #define HAVE_PRSTATUS32_T 1
12638 _ACEOF
12639
12640 fi
12641 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prstatus32_t" >&5
12642 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prstatus32_t" >&6
12643
12644 echo "$as_me:$LINENO: checking for prstatus_t.pr_who in sys/procfs.h" >&5
12645 echo $ECHO_N "checking for prstatus_t.pr_who in sys/procfs.h... $ECHO_C" >&6
12646 if test "${bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who+set}" = set; then
12647 echo $ECHO_N "(cached) $ECHO_C" >&6
12648 else
12649 cat >conftest.$ac_ext <<_ACEOF
12650 /* confdefs.h. */
12651 _ACEOF
12652 cat confdefs.h >>conftest.$ac_ext
12653 cat >>conftest.$ac_ext <<_ACEOF
12654 /* end confdefs.h. */
12655
12656 #define _SYSCALL32
12657 #include <sys/procfs.h>
12658 int
12659 main ()
12660 {
12661 prstatus_t avar; void* aref = (void*) &avar.pr_who
12662 ;
12663 return 0;
12664 }
12665 _ACEOF
12666 rm -f conftest.$ac_objext
12667 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12668 (eval $ac_compile) 2>conftest.er1
12669 ac_status=$?
12670 grep -v '^ *+' conftest.er1 >conftest.err
12671 rm -f conftest.er1
12672 cat conftest.err >&5
12673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12674 (exit $ac_status); } &&
12675 { ac_try='test -z "$ac_c_werror_flag"
12676 || test ! -s conftest.err'
12677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12678 (eval $ac_try) 2>&5
12679 ac_status=$?
12680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12681 (exit $ac_status); }; } &&
12682 { ac_try='test -s conftest.$ac_objext'
12683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12684 (eval $ac_try) 2>&5
12685 ac_status=$?
12686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12687 (exit $ac_status); }; }; then
12688 bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=yes
12689 else
12690 echo "$as_me: failed program was:" >&5
12691 sed 's/^/| /' conftest.$ac_ext >&5
12692
12693 bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=no
12694
12695 fi
12696 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12697 fi
12698
12699 if test $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who = yes; then
12700
12701 cat >>confdefs.h <<\_ACEOF
12702 #define HAVE_PRSTATUS_T_PR_WHO 1
12703 _ACEOF
12704
12705 fi
12706 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" >&5
12707 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" >&6
12708
12709 echo "$as_me:$LINENO: checking for prstatus32_t.pr_who in sys/procfs.h" >&5
12710 echo $ECHO_N "checking for prstatus32_t.pr_who in sys/procfs.h... $ECHO_C" >&6
12711 if test "${bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who+set}" = set; then
12712 echo $ECHO_N "(cached) $ECHO_C" >&6
12713 else
12714 cat >conftest.$ac_ext <<_ACEOF
12715 /* confdefs.h. */
12716 _ACEOF
12717 cat confdefs.h >>conftest.$ac_ext
12718 cat >>conftest.$ac_ext <<_ACEOF
12719 /* end confdefs.h. */
12720
12721 #define _SYSCALL32
12722 #include <sys/procfs.h>
12723 int
12724 main ()
12725 {
12726 prstatus32_t avar; void* aref = (void*) &avar.pr_who
12727 ;
12728 return 0;
12729 }
12730 _ACEOF
12731 rm -f conftest.$ac_objext
12732 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12733 (eval $ac_compile) 2>conftest.er1
12734 ac_status=$?
12735 grep -v '^ *+' conftest.er1 >conftest.err
12736 rm -f conftest.er1
12737 cat conftest.err >&5
12738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12739 (exit $ac_status); } &&
12740 { ac_try='test -z "$ac_c_werror_flag"
12741 || test ! -s conftest.err'
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); }; } &&
12747 { ac_try='test -s conftest.$ac_objext'
12748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12749 (eval $ac_try) 2>&5
12750 ac_status=$?
12751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12752 (exit $ac_status); }; }; then
12753 bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=yes
12754 else
12755 echo "$as_me: failed program was:" >&5
12756 sed 's/^/| /' conftest.$ac_ext >&5
12757
12758 bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=no
12759
12760 fi
12761 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12762 fi
12763
12764 if test $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who = yes; then
12765
12766 cat >>confdefs.h <<\_ACEOF
12767 #define HAVE_PRSTATUS32_T_PR_WHO 1
12768 _ACEOF
12769
12770 fi
12771 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" >&5
12772 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" >&6
12773
12774 echo "$as_me:$LINENO: checking for pstatus_t in sys/procfs.h" >&5
12775 echo $ECHO_N "checking for pstatus_t in sys/procfs.h... $ECHO_C" >&6
12776 if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then
12777 echo $ECHO_N "(cached) $ECHO_C" >&6
12778 else
12779 cat >conftest.$ac_ext <<_ACEOF
12780 /* confdefs.h. */
12781 _ACEOF
12782 cat confdefs.h >>conftest.$ac_ext
12783 cat >>conftest.$ac_ext <<_ACEOF
12784 /* end confdefs.h. */
12785
12786 #define _SYSCALL32
12787 #include <sys/procfs.h>
12788 int
12789 main ()
12790 {
12791 pstatus_t avar
12792 ;
12793 return 0;
12794 }
12795 _ACEOF
12796 rm -f conftest.$ac_objext
12797 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12798 (eval $ac_compile) 2>conftest.er1
12799 ac_status=$?
12800 grep -v '^ *+' conftest.er1 >conftest.err
12801 rm -f conftest.er1
12802 cat conftest.err >&5
12803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12804 (exit $ac_status); } &&
12805 { ac_try='test -z "$ac_c_werror_flag"
12806 || test ! -s conftest.err'
12807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12808 (eval $ac_try) 2>&5
12809 ac_status=$?
12810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12811 (exit $ac_status); }; } &&
12812 { ac_try='test -s conftest.$ac_objext'
12813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12814 (eval $ac_try) 2>&5
12815 ac_status=$?
12816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12817 (exit $ac_status); }; }; then
12818 bfd_cv_have_sys_procfs_type_pstatus_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_pstatus_t=no
12824
12825 fi
12826 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12827 fi
12828
12829 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
12830
12831 cat >>confdefs.h <<\_ACEOF
12832 #define HAVE_PSTATUS_T 1
12833 _ACEOF
12834
12835 fi
12836 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5
12837 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus_t" >&6
12838
12839 echo "$as_me:$LINENO: checking for pxstatus_t in sys/procfs.h" >&5
12840 echo $ECHO_N "checking for pxstatus_t in sys/procfs.h... $ECHO_C" >&6
12841 if test "${bfd_cv_have_sys_procfs_type_pxstatus_t+set}" = set; then
12842 echo $ECHO_N "(cached) $ECHO_C" >&6
12843 else
12844 cat >conftest.$ac_ext <<_ACEOF
12845 /* confdefs.h. */
12846 _ACEOF
12847 cat confdefs.h >>conftest.$ac_ext
12848 cat >>conftest.$ac_ext <<_ACEOF
12849 /* end confdefs.h. */
12850
12851 #define _SYSCALL32
12852 #include <sys/procfs.h>
12853 int
12854 main ()
12855 {
12856 pxstatus_t avar
12857 ;
12858 return 0;
12859 }
12860 _ACEOF
12861 rm -f conftest.$ac_objext
12862 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12863 (eval $ac_compile) 2>conftest.er1
12864 ac_status=$?
12865 grep -v '^ *+' conftest.er1 >conftest.err
12866 rm -f conftest.er1
12867 cat conftest.err >&5
12868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12869 (exit $ac_status); } &&
12870 { ac_try='test -z "$ac_c_werror_flag"
12871 || test ! -s conftest.err'
12872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12873 (eval $ac_try) 2>&5
12874 ac_status=$?
12875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12876 (exit $ac_status); }; } &&
12877 { ac_try='test -s conftest.$ac_objext'
12878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12879 (eval $ac_try) 2>&5
12880 ac_status=$?
12881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12882 (exit $ac_status); }; }; then
12883 bfd_cv_have_sys_procfs_type_pxstatus_t=yes
12884 else
12885 echo "$as_me: failed program was:" >&5
12886 sed 's/^/| /' conftest.$ac_ext >&5
12887
12888 bfd_cv_have_sys_procfs_type_pxstatus_t=no
12889
12890 fi
12891 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12892 fi
12893
12894 if test $bfd_cv_have_sys_procfs_type_pxstatus_t = yes; then
12895
12896 cat >>confdefs.h <<\_ACEOF
12897 #define HAVE_PXSTATUS_T 1
12898 _ACEOF
12899
12900 fi
12901 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pxstatus_t" >&5
12902 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pxstatus_t" >&6
12903
12904 echo "$as_me:$LINENO: checking for pstatus32_t in sys/procfs.h" >&5
12905 echo $ECHO_N "checking for pstatus32_t in sys/procfs.h... $ECHO_C" >&6
12906 if test "${bfd_cv_have_sys_procfs_type_pstatus32_t+set}" = set; then
12907 echo $ECHO_N "(cached) $ECHO_C" >&6
12908 else
12909 cat >conftest.$ac_ext <<_ACEOF
12910 /* confdefs.h. */
12911 _ACEOF
12912 cat confdefs.h >>conftest.$ac_ext
12913 cat >>conftest.$ac_ext <<_ACEOF
12914 /* end confdefs.h. */
12915
12916 #define _SYSCALL32
12917 #include <sys/procfs.h>
12918 int
12919 main ()
12920 {
12921 pstatus32_t avar
12922 ;
12923 return 0;
12924 }
12925 _ACEOF
12926 rm -f conftest.$ac_objext
12927 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&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 bfd_cv_have_sys_procfs_type_pstatus32_t=yes
12949 else
12950 echo "$as_me: failed program was:" >&5
12951 sed 's/^/| /' conftest.$ac_ext >&5
12952
12953 bfd_cv_have_sys_procfs_type_pstatus32_t=no
12954
12955 fi
12956 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12957 fi
12958
12959 if test $bfd_cv_have_sys_procfs_type_pstatus32_t = yes; then
12960
12961 cat >>confdefs.h <<\_ACEOF
12962 #define HAVE_PSTATUS32_T 1
12963 _ACEOF
12964
12965 fi
12966 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus32_t" >&5
12967 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus32_t" >&6
12968
12969 echo "$as_me:$LINENO: checking for prpsinfo_t in sys/procfs.h" >&5
12970 echo $ECHO_N "checking for prpsinfo_t in sys/procfs.h... $ECHO_C" >&6
12971 if test "${bfd_cv_have_sys_procfs_type_prpsinfo_t+set}" = set; then
12972 echo $ECHO_N "(cached) $ECHO_C" >&6
12973 else
12974 cat >conftest.$ac_ext <<_ACEOF
12975 /* confdefs.h. */
12976 _ACEOF
12977 cat confdefs.h >>conftest.$ac_ext
12978 cat >>conftest.$ac_ext <<_ACEOF
12979 /* end confdefs.h. */
12980
12981 #define _SYSCALL32
12982 #include <sys/procfs.h>
12983 int
12984 main ()
12985 {
12986 prpsinfo_t avar
12987 ;
12988 return 0;
12989 }
12990 _ACEOF
12991 rm -f conftest.$ac_objext
12992 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12993 (eval $ac_compile) 2>conftest.er1
12994 ac_status=$?
12995 grep -v '^ *+' conftest.er1 >conftest.err
12996 rm -f conftest.er1
12997 cat conftest.err >&5
12998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12999 (exit $ac_status); } &&
13000 { ac_try='test -z "$ac_c_werror_flag"
13001 || test ! -s conftest.err'
13002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13003 (eval $ac_try) 2>&5
13004 ac_status=$?
13005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13006 (exit $ac_status); }; } &&
13007 { ac_try='test -s conftest.$ac_objext'
13008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13009 (eval $ac_try) 2>&5
13010 ac_status=$?
13011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13012 (exit $ac_status); }; }; then
13013 bfd_cv_have_sys_procfs_type_prpsinfo_t=yes
13014 else
13015 echo "$as_me: failed program was:" >&5
13016 sed 's/^/| /' conftest.$ac_ext >&5
13017
13018 bfd_cv_have_sys_procfs_type_prpsinfo_t=no
13019
13020 fi
13021 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13022 fi
13023
13024 if test $bfd_cv_have_sys_procfs_type_prpsinfo_t = yes; then
13025
13026 cat >>confdefs.h <<\_ACEOF
13027 #define HAVE_PRPSINFO_T 1
13028 _ACEOF
13029
13030 fi
13031 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prpsinfo_t" >&5
13032 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prpsinfo_t" >&6
13033
13034 echo "$as_me:$LINENO: checking for prpsinfo32_t in sys/procfs.h" >&5
13035 echo $ECHO_N "checking for prpsinfo32_t in sys/procfs.h... $ECHO_C" >&6
13036 if test "${bfd_cv_have_sys_procfs_type_prpsinfo32_t+set}" = set; then
13037 echo $ECHO_N "(cached) $ECHO_C" >&6
13038 else
13039 cat >conftest.$ac_ext <<_ACEOF
13040 /* confdefs.h. */
13041 _ACEOF
13042 cat confdefs.h >>conftest.$ac_ext
13043 cat >>conftest.$ac_ext <<_ACEOF
13044 /* end confdefs.h. */
13045
13046 #define _SYSCALL32
13047 #include <sys/procfs.h>
13048 int
13049 main ()
13050 {
13051 prpsinfo32_t avar
13052 ;
13053 return 0;
13054 }
13055 _ACEOF
13056 rm -f conftest.$ac_objext
13057 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13058 (eval $ac_compile) 2>conftest.er1
13059 ac_status=$?
13060 grep -v '^ *+' conftest.er1 >conftest.err
13061 rm -f conftest.er1
13062 cat conftest.err >&5
13063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13064 (exit $ac_status); } &&
13065 { ac_try='test -z "$ac_c_werror_flag"
13066 || test ! -s conftest.err'
13067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13068 (eval $ac_try) 2>&5
13069 ac_status=$?
13070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13071 (exit $ac_status); }; } &&
13072 { ac_try='test -s conftest.$ac_objext'
13073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13074 (eval $ac_try) 2>&5
13075 ac_status=$?
13076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13077 (exit $ac_status); }; }; then
13078 bfd_cv_have_sys_procfs_type_prpsinfo32_t=yes
13079 else
13080 echo "$as_me: failed program was:" >&5
13081 sed 's/^/| /' conftest.$ac_ext >&5
13082
13083 bfd_cv_have_sys_procfs_type_prpsinfo32_t=no
13084
13085 fi
13086 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13087 fi
13088
13089 if test $bfd_cv_have_sys_procfs_type_prpsinfo32_t = yes; then
13090
13091 cat >>confdefs.h <<\_ACEOF
13092 #define HAVE_PRPSINFO32_T 1
13093 _ACEOF
13094
13095 fi
13096 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prpsinfo32_t" >&5
13097 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prpsinfo32_t" >&6
13098
13099 echo "$as_me:$LINENO: checking for psinfo_t in sys/procfs.h" >&5
13100 echo $ECHO_N "checking for psinfo_t in sys/procfs.h... $ECHO_C" >&6
13101 if test "${bfd_cv_have_sys_procfs_type_psinfo_t+set}" = set; then
13102 echo $ECHO_N "(cached) $ECHO_C" >&6
13103 else
13104 cat >conftest.$ac_ext <<_ACEOF
13105 /* confdefs.h. */
13106 _ACEOF
13107 cat confdefs.h >>conftest.$ac_ext
13108 cat >>conftest.$ac_ext <<_ACEOF
13109 /* end confdefs.h. */
13110
13111 #define _SYSCALL32
13112 #include <sys/procfs.h>
13113 int
13114 main ()
13115 {
13116 psinfo_t avar
13117 ;
13118 return 0;
13119 }
13120 _ACEOF
13121 rm -f conftest.$ac_objext
13122 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13123 (eval $ac_compile) 2>conftest.er1
13124 ac_status=$?
13125 grep -v '^ *+' conftest.er1 >conftest.err
13126 rm -f conftest.er1
13127 cat conftest.err >&5
13128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13129 (exit $ac_status); } &&
13130 { ac_try='test -z "$ac_c_werror_flag"
13131 || test ! -s conftest.err'
13132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13133 (eval $ac_try) 2>&5
13134 ac_status=$?
13135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13136 (exit $ac_status); }; } &&
13137 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
13143 bfd_cv_have_sys_procfs_type_psinfo_t=yes
13144 else
13145 echo "$as_me: failed program was:" >&5
13146 sed 's/^/| /' conftest.$ac_ext >&5
13147
13148 bfd_cv_have_sys_procfs_type_psinfo_t=no
13149
13150 fi
13151 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13152 fi
13153
13154 if test $bfd_cv_have_sys_procfs_type_psinfo_t = yes; then
13155
13156 cat >>confdefs.h <<\_ACEOF
13157 #define HAVE_PSINFO_T 1
13158 _ACEOF
13159
13160 fi
13161 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psinfo_t" >&5
13162 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psinfo_t" >&6
13163
13164 echo "$as_me:$LINENO: checking for psinfo32_t in sys/procfs.h" >&5
13165 echo $ECHO_N "checking for psinfo32_t in sys/procfs.h... $ECHO_C" >&6
13166 if test "${bfd_cv_have_sys_procfs_type_psinfo32_t+set}" = set; then
13167 echo $ECHO_N "(cached) $ECHO_C" >&6
13168 else
13169 cat >conftest.$ac_ext <<_ACEOF
13170 /* confdefs.h. */
13171 _ACEOF
13172 cat confdefs.h >>conftest.$ac_ext
13173 cat >>conftest.$ac_ext <<_ACEOF
13174 /* end confdefs.h. */
13175
13176 #define _SYSCALL32
13177 #include <sys/procfs.h>
13178 int
13179 main ()
13180 {
13181 psinfo32_t avar
13182 ;
13183 return 0;
13184 }
13185 _ACEOF
13186 rm -f conftest.$ac_objext
13187 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13188 (eval $ac_compile) 2>conftest.er1
13189 ac_status=$?
13190 grep -v '^ *+' conftest.er1 >conftest.err
13191 rm -f conftest.er1
13192 cat conftest.err >&5
13193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13194 (exit $ac_status); } &&
13195 { ac_try='test -z "$ac_c_werror_flag"
13196 || test ! -s conftest.err'
13197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13198 (eval $ac_try) 2>&5
13199 ac_status=$?
13200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13201 (exit $ac_status); }; } &&
13202 { ac_try='test -s conftest.$ac_objext'
13203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13204 (eval $ac_try) 2>&5
13205 ac_status=$?
13206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13207 (exit $ac_status); }; }; then
13208 bfd_cv_have_sys_procfs_type_psinfo32_t=yes
13209 else
13210 echo "$as_me: failed program was:" >&5
13211 sed 's/^/| /' conftest.$ac_ext >&5
13212
13213 bfd_cv_have_sys_procfs_type_psinfo32_t=no
13214
13215 fi
13216 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13217 fi
13218
13219 if test $bfd_cv_have_sys_procfs_type_psinfo32_t = yes; then
13220
13221 cat >>confdefs.h <<\_ACEOF
13222 #define HAVE_PSINFO32_T 1
13223 _ACEOF
13224
13225 fi
13226 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psinfo32_t" >&5
13227 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psinfo32_t" >&6
13228
13229 echo "$as_me:$LINENO: checking for lwpstatus_t in sys/procfs.h" >&5
13230 echo $ECHO_N "checking for lwpstatus_t in sys/procfs.h... $ECHO_C" >&6
13231 if test "${bfd_cv_have_sys_procfs_type_lwpstatus_t+set}" = set; then
13232 echo $ECHO_N "(cached) $ECHO_C" >&6
13233 else
13234 cat >conftest.$ac_ext <<_ACEOF
13235 /* confdefs.h. */
13236 _ACEOF
13237 cat confdefs.h >>conftest.$ac_ext
13238 cat >>conftest.$ac_ext <<_ACEOF
13239 /* end confdefs.h. */
13240
13241 #define _SYSCALL32
13242 #include <sys/procfs.h>
13243 int
13244 main ()
13245 {
13246 lwpstatus_t avar
13247 ;
13248 return 0;
13249 }
13250 _ACEOF
13251 rm -f conftest.$ac_objext
13252 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13253 (eval $ac_compile) 2>conftest.er1
13254 ac_status=$?
13255 grep -v '^ *+' conftest.er1 >conftest.err
13256 rm -f conftest.er1
13257 cat conftest.err >&5
13258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13259 (exit $ac_status); } &&
13260 { ac_try='test -z "$ac_c_werror_flag"
13261 || test ! -s conftest.err'
13262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13263 (eval $ac_try) 2>&5
13264 ac_status=$?
13265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13266 (exit $ac_status); }; } &&
13267 { ac_try='test -s conftest.$ac_objext'
13268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13269 (eval $ac_try) 2>&5
13270 ac_status=$?
13271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13272 (exit $ac_status); }; }; then
13273 bfd_cv_have_sys_procfs_type_lwpstatus_t=yes
13274 else
13275 echo "$as_me: failed program was:" >&5
13276 sed 's/^/| /' conftest.$ac_ext >&5
13277
13278 bfd_cv_have_sys_procfs_type_lwpstatus_t=no
13279
13280 fi
13281 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13282 fi
13283
13284 if test $bfd_cv_have_sys_procfs_type_lwpstatus_t = yes; then
13285
13286 cat >>confdefs.h <<\_ACEOF
13287 #define HAVE_LWPSTATUS_T 1
13288 _ACEOF
13289
13290 fi
13291 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpstatus_t" >&5
13292 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpstatus_t" >&6
13293
13294 echo "$as_me:$LINENO: checking for lwpxstatus_t in sys/procfs.h" >&5
13295 echo $ECHO_N "checking for lwpxstatus_t in sys/procfs.h... $ECHO_C" >&6
13296 if test "${bfd_cv_have_sys_procfs_type_lwpxstatus_t+set}" = set; then
13297 echo $ECHO_N "(cached) $ECHO_C" >&6
13298 else
13299 cat >conftest.$ac_ext <<_ACEOF
13300 /* confdefs.h. */
13301 _ACEOF
13302 cat confdefs.h >>conftest.$ac_ext
13303 cat >>conftest.$ac_ext <<_ACEOF
13304 /* end confdefs.h. */
13305
13306 #define _SYSCALL32
13307 #include <sys/procfs.h>
13308 int
13309 main ()
13310 {
13311 lwpxstatus_t avar
13312 ;
13313 return 0;
13314 }
13315 _ACEOF
13316 rm -f conftest.$ac_objext
13317 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13318 (eval $ac_compile) 2>conftest.er1
13319 ac_status=$?
13320 grep -v '^ *+' conftest.er1 >conftest.err
13321 rm -f conftest.er1
13322 cat conftest.err >&5
13323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13324 (exit $ac_status); } &&
13325 { ac_try='test -z "$ac_c_werror_flag"
13326 || test ! -s conftest.err'
13327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13328 (eval $ac_try) 2>&5
13329 ac_status=$?
13330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13331 (exit $ac_status); }; } &&
13332 { ac_try='test -s conftest.$ac_objext'
13333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13334 (eval $ac_try) 2>&5
13335 ac_status=$?
13336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13337 (exit $ac_status); }; }; then
13338 bfd_cv_have_sys_procfs_type_lwpxstatus_t=yes
13339 else
13340 echo "$as_me: failed program was:" >&5
13341 sed 's/^/| /' conftest.$ac_ext >&5
13342
13343 bfd_cv_have_sys_procfs_type_lwpxstatus_t=no
13344
13345 fi
13346 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13347 fi
13348
13349 if test $bfd_cv_have_sys_procfs_type_lwpxstatus_t = yes; then
13350
13351 cat >>confdefs.h <<\_ACEOF
13352 #define HAVE_LWPXSTATUS_T 1
13353 _ACEOF
13354
13355 fi
13356 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpxstatus_t" >&5
13357 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpxstatus_t" >&6
13358
13359 echo "$as_me:$LINENO: checking for lwpstatus_t.pr_context in sys/procfs.h" >&5
13360 echo $ECHO_N "checking for lwpstatus_t.pr_context in sys/procfs.h... $ECHO_C" >&6
13361 if test "${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context+set}" = set; then
13362 echo $ECHO_N "(cached) $ECHO_C" >&6
13363 else
13364 cat >conftest.$ac_ext <<_ACEOF
13365 /* confdefs.h. */
13366 _ACEOF
13367 cat confdefs.h >>conftest.$ac_ext
13368 cat >>conftest.$ac_ext <<_ACEOF
13369 /* end confdefs.h. */
13370
13371 #define _SYSCALL32
13372 #include <sys/procfs.h>
13373 int
13374 main ()
13375 {
13376 lwpstatus_t avar; void* aref = (void*) &avar.pr_context
13377 ;
13378 return 0;
13379 }
13380 _ACEOF
13381 rm -f conftest.$ac_objext
13382 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13383 (eval $ac_compile) 2>conftest.er1
13384 ac_status=$?
13385 grep -v '^ *+' conftest.er1 >conftest.err
13386 rm -f conftest.er1
13387 cat conftest.err >&5
13388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13389 (exit $ac_status); } &&
13390 { ac_try='test -z "$ac_c_werror_flag"
13391 || test ! -s conftest.err'
13392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13393 (eval $ac_try) 2>&5
13394 ac_status=$?
13395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13396 (exit $ac_status); }; } &&
13397 { ac_try='test -s conftest.$ac_objext'
13398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13399 (eval $ac_try) 2>&5
13400 ac_status=$?
13401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13402 (exit $ac_status); }; }; then
13403 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=yes
13404 else
13405 echo "$as_me: failed program was:" >&5
13406 sed 's/^/| /' conftest.$ac_ext >&5
13407
13408 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=no
13409
13410 fi
13411 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13412 fi
13413
13414 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context = yes; then
13415
13416 cat >>confdefs.h <<\_ACEOF
13417 #define HAVE_LWPSTATUS_T_PR_CONTEXT 1
13418 _ACEOF
13419
13420 fi
13421 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" >&5
13422 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" >&6
13423
13424 echo "$as_me:$LINENO: checking for lwpstatus_t.pr_reg in sys/procfs.h" >&5
13425 echo $ECHO_N "checking for lwpstatus_t.pr_reg in sys/procfs.h... $ECHO_C" >&6
13426 if test "${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg+set}" = set; then
13427 echo $ECHO_N "(cached) $ECHO_C" >&6
13428 else
13429 cat >conftest.$ac_ext <<_ACEOF
13430 /* confdefs.h. */
13431 _ACEOF
13432 cat confdefs.h >>conftest.$ac_ext
13433 cat >>conftest.$ac_ext <<_ACEOF
13434 /* end confdefs.h. */
13435
13436 #define _SYSCALL32
13437 #include <sys/procfs.h>
13438 int
13439 main ()
13440 {
13441 lwpstatus_t avar; void* aref = (void*) &avar.pr_reg
13442 ;
13443 return 0;
13444 }
13445 _ACEOF
13446 rm -f conftest.$ac_objext
13447 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13448 (eval $ac_compile) 2>conftest.er1
13449 ac_status=$?
13450 grep -v '^ *+' conftest.er1 >conftest.err
13451 rm -f conftest.er1
13452 cat conftest.err >&5
13453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13454 (exit $ac_status); } &&
13455 { ac_try='test -z "$ac_c_werror_flag"
13456 || test ! -s conftest.err'
13457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13458 (eval $ac_try) 2>&5
13459 ac_status=$?
13460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13461 (exit $ac_status); }; } &&
13462 { ac_try='test -s conftest.$ac_objext'
13463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13464 (eval $ac_try) 2>&5
13465 ac_status=$?
13466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13467 (exit $ac_status); }; }; then
13468 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=yes
13469 else
13470 echo "$as_me: failed program was:" >&5
13471 sed 's/^/| /' conftest.$ac_ext >&5
13472
13473 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=no
13474
13475 fi
13476 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13477 fi
13478
13479 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg = yes; then
13480
13481 cat >>confdefs.h <<\_ACEOF
13482 #define HAVE_LWPSTATUS_T_PR_REG 1
13483 _ACEOF
13484
13485 fi
13486 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" >&5
13487 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" >&6
13488
13489 echo "$as_me:$LINENO: checking for win32_pstatus_t in sys/procfs.h" >&5
13490 echo $ECHO_N "checking for win32_pstatus_t in sys/procfs.h... $ECHO_C" >&6
13491 if test "${bfd_cv_have_sys_procfs_type_win32_pstatus_t+set}" = set; then
13492 echo $ECHO_N "(cached) $ECHO_C" >&6
13493 else
13494 cat >conftest.$ac_ext <<_ACEOF
13495 /* confdefs.h. */
13496 _ACEOF
13497 cat confdefs.h >>conftest.$ac_ext
13498 cat >>conftest.$ac_ext <<_ACEOF
13499 /* end confdefs.h. */
13500
13501 #define _SYSCALL32
13502 #include <sys/procfs.h>
13503 int
13504 main ()
13505 {
13506 win32_pstatus_t avar
13507 ;
13508 return 0;
13509 }
13510 _ACEOF
13511 rm -f conftest.$ac_objext
13512 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13513 (eval $ac_compile) 2>conftest.er1
13514 ac_status=$?
13515 grep -v '^ *+' conftest.er1 >conftest.err
13516 rm -f conftest.er1
13517 cat conftest.err >&5
13518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13519 (exit $ac_status); } &&
13520 { ac_try='test -z "$ac_c_werror_flag"
13521 || test ! -s conftest.err'
13522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13523 (eval $ac_try) 2>&5
13524 ac_status=$?
13525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13526 (exit $ac_status); }; } &&
13527 { ac_try='test -s conftest.$ac_objext'
13528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13529 (eval $ac_try) 2>&5
13530 ac_status=$?
13531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13532 (exit $ac_status); }; }; then
13533 bfd_cv_have_sys_procfs_type_win32_pstatus_t=yes
13534 else
13535 echo "$as_me: failed program was:" >&5
13536 sed 's/^/| /' conftest.$ac_ext >&5
13537
13538 bfd_cv_have_sys_procfs_type_win32_pstatus_t=no
13539
13540 fi
13541 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13542 fi
13543
13544 if test $bfd_cv_have_sys_procfs_type_win32_pstatus_t = yes; then
13545
13546 cat >>confdefs.h <<\_ACEOF
13547 #define HAVE_WIN32_PSTATUS_T 1
13548 _ACEOF
13549
13550 fi
13551 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_win32_pstatus_t" >&5
13552 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_win32_pstatus_t" >&6
13553
13554 fi
13555 fi
13556
13557
13558 if test -n "$TRAD_HEADER"; then
13559
13560 cat >>confdefs.h <<_ACEOF
13561 #define TRAD_HEADER $TRAD_HEADER
13562 _ACEOF
13563
13564 fi
13565
13566 # Horrible hacks to build DLLs on Windows.
13567 WIN32LDFLAGS=
13568 WIN32LIBADD=
13569 case "${host}" in
13570 *-*-cygwin*)
13571 if test "$enable_shared" = "yes"; then
13572 WIN32LDFLAGS="-no-undefined"
13573 WIN32LIBADD="-L`pwd`/../libiberty -liberty -L`pwd`/../intl -lintl -lcygwin -lkernel32"
13574 fi
13575 ;;
13576 *-*-linux*)
13577 # We borrow WIN32LIBADD so that the shared libbfd won't depend on
13578 # libiberty.a.
13579 case "${host}" in
13580 mips*-*-linux*)
13581 # Linux/MIPS uses PIC by default.
13582 if test "$enable_shared" = "yes"; then
13583 WIN32LIBADD="-L../libiberty -liberty"
13584 fi
13585 ;;
13586 *)
13587 x=`sed -n -e 's/^[ ]*PICFLAG[ ]*=[ ]*//p' < ../libiberty/Makefile | sed -n '$p'`
13588 if test -n "$x"; then
13589 WIN32LIBADD="-L../libiberty/pic -liberty"
13590 fi
13591 ;;
13592 esac
13593 ;;
13594 esac
13595
13596
13597
13598 # target stuff:
13599
13600 # Canonicalize the secondary target names.
13601 if test -n "$enable_targets" ; then
13602 for targ in `echo $enable_targets | sed 's/,/ /g'`
13603 do
13604 result=`$ac_config_sub $targ 2>/dev/null`
13605 if test -n "$result" ; then
13606 canon_targets="$canon_targets $result"
13607 else
13608 # Allow targets that config.sub doesn't recognize, like "all".
13609 canon_targets="$canon_targets $targ"
13610 fi
13611 done
13612 fi
13613
13614 all_targets=false
13615 defvec=
13616 selvecs=
13617 assocvecs=
13618 selarchs=
13619 TDEFINES=
13620 for targ in $target $canon_targets
13621 do
13622 if test "x$targ" = "xall"; then
13623 all_targets=true
13624 assocvecs="$assocvecs $targ_defvec $targ_selvecs"
13625 else
13626 . $srcdir/config.bfd
13627 if test "x$targ" = "x$target"; then
13628 defvec=$targ_defvec
13629 fi
13630 selvecs="$selvecs $targ_defvec $targ_selvecs"
13631 selarchs="$selarchs $targ_archs"
13632 TDEFINES="$TDEFINES $targ_cflags"
13633 fi
13634 done
13635
13636
13637 # This processing still needs to be done if we're to decide properly whether
13638 # 64-bit support needs to be compiled in. Currently, it will be included if
13639 # the default or any other explicitly requested target requires it; it
13640 # will not be included on a 32-bit host if no 64-bit target is requested, and
13641 # no "--with-64-bit-bfd" option is given, even if "--enable-targets=all" is
13642 # used.
13643
13644 # uniq the default and selected vectors in all the configured targets.
13645 f=""
13646 for i in $selvecs ; do
13647 case " $f " in
13648 *" $i "*) ;;
13649 *) f="$f $i" ;;
13650 esac
13651 done
13652 selvecs="$f"
13653
13654
13655 # uniq the associated vectors in all the configured targets.
13656 f=""
13657 for i in $assocvecs ; do
13658 case " $f " in
13659 *" $i "*) ;;
13660 *) f="$f $i" ;;
13661 esac
13662 done
13663 assocvecs="$f"
13664
13665
13666 # uniq the architectures in all the configured targets.
13667 f=""
13668 for i in $selarchs ; do
13669 case " $f " in
13670 *" $i "*) ;;
13671 *) f="$f $i" ;;
13672 esac
13673 done
13674 selarchs="$f"
13675
13676 # Target backend .o files.
13677 tb=
13678
13679 elf="elf.lo elflink.lo elf-strtab.lo elf-eh-frame.lo dwarf1.lo"
13680
13681 for vec in $selvecs
13682 do
13683 target_size=32
13684 case "$vec" in
13685 # This list is alphabetized to make it easy to compare
13686 # with the two vector lists in targets.c. For the same reason,
13687 # use one entry per line, even though this leads to long lines.
13688 a_out_adobe_vec) tb="$tb aout-adobe.lo aout32.lo" ;;
13689 aix5coff64_vec) tb="$tb coff64-rs6000.lo xcofflink.lo aix5ppc-core.lo"; target_size=64 ;;
13690 aout0_big_vec) tb="$tb aout0.lo aout32.lo" ;;
13691 aout_arm_big_vec) tb="$tb aout-arm.lo aout32.lo" ;;
13692 aout_arm_little_vec) tb="$tb aout-arm.lo aout32.lo" ;;
13693 apollocoff_vec) tb="$tb coff-apollo.lo" ;;
13694 arm_epoc_pe_big_vec) tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;;
13695 arm_epoc_pe_little_vec) tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;;
13696 arm_epoc_pei_big_vec) tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;;
13697 arm_epoc_pei_little_vec) tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;;
13698 arm_wince_pe_big_vec) tb="$tb pe-arm-wince.lo pe-arm.lo peigen.lo cofflink.lo " ;;
13699 arm_wince_pe_little_vec) tb="$tb pe-arm-wince.lo pe-arm.lo peigen.lo cofflink.lo " ;;
13700 arm_wince_pei_big_vec) tb="$tb pei-arm-wince.lo pei-arm.lo peigen.lo cofflink.lo " ;;
13701 arm_wince_pei_little_vec) tb="$tb pei-arm-wince.lo pei-arm.lo peigen.lo cofflink.lo " ;;
13702 armcoff_big_vec) tb="$tb coff-arm.lo cofflink.lo " ;;
13703 armcoff_little_vec) tb="$tb coff-arm.lo cofflink.lo " ;;
13704 armnetbsd_vec) tb="$tb armnetbsd.lo aout32.lo" ;;
13705 armpe_big_vec) tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;;
13706 armpe_little_vec) tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;;
13707 armpei_big_vec) tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;;
13708 armpei_little_vec) tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;;
13709 b_out_vec_big_host) tb="$tb bout.lo aout32.lo" ;;
13710 b_out_vec_little_host) tb="$tb bout.lo aout32.lo" ;;
13711 bfd_efi_app_ia32_vec) tb="$tb efi-app-ia32.lo peigen.lo cofflink.lo" ;;
13712 bfd_efi_app_x86_64_vec) tb="$tb efi-app-x86_64.lo pex64igen.lo cofflink.lo" ;target_size=64;;
13713 bfd_efi_app_ia64_vec) tb="$tb efi-app-ia64.lo pepigen.lo cofflink.lo"; target_size=64 ;;
13714 bfd_elf32_am33lin_vec) tb="$tb elf32-am33lin.lo elf32.lo $elf" ;;
13715 bfd_elf32_avr_vec) tb="$tb elf32-avr.lo elf32.lo $elf" ;;
13716 bfd_elf32_bfin_vec) tb="$tb elf32-bfin.lo elf32.lo $elf" ;;
13717 bfd_elf32_bfinfdpic_vec) tb="$tb elf32-bfin.lo elf32.lo $elf" ;;
13718 bfd_elf32_big_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
13719 bfd_elf32_bigarc_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;;
13720 bfd_elf32_bigarm_vec) tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
13721 bfd_elf32_bigarm_symbian_vec)
13722 tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
13723 bfd_elf32_bigarm_vxworks_vec)
13724 tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
13725 bfd_elf32_bigmips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
13726 bfd_elf32_bigmips_vxworks_vec)
13727 tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
13728 bfd_elf32_cr16c_vec) tb="$tb elf32-cr16c.lo elf32.lo $elf" ;;
13729 bfd_elf32_cris_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;;
13730 bfd_elf32_crx_vec) tb="$tb elf32-crx.lo elf32.lo $elf" ;;
13731 bfd_elf32_d10v_vec) tb="$tb elf32-d10v.lo elf32.lo $elf" ;;
13732 bfd_elf32_d30v_vec) tb="$tb elf32-d30v.lo elf32.lo $elf" ;;
13733 bfd_elf32_dlx_big_vec) tb="$tb elf32-dlx.lo elf32.lo $elf" ;;
13734 bfd_elf32_fr30_vec) tb="$tb elf32-fr30.lo elf32.lo $elf" ;;
13735 bfd_elf32_frv_vec) tb="$tb elf32-frv.lo elf32.lo $elf" ;;
13736 bfd_elf32_frvfdpic_vec) tb="$tb elf32-frv.lo elf32.lo $elf" ;;
13737 bfd_elf32_h8300_vec) tb="$tb elf32-h8300.lo elf32.lo $elf" ;;
13738 bfd_elf32_hppa_linux_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
13739 bfd_elf32_hppa_nbsd_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
13740 bfd_elf32_hppa_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
13741 bfd_elf32_i370_vec) tb="$tb elf32-i370.lo elf32.lo $elf" ;;
13742 bfd_elf32_i386_freebsd_vec) tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;;
13743 bfd_elf32_i386_vxworks_vec) tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;;
13744 bfd_elf32_i386_vec) tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;;
13745 bfd_elf32_i860_little_vec) tb="$tb elf32-i860.lo elf32.lo $elf" ;;
13746 bfd_elf32_i860_vec) tb="$tb elf32-i860.lo elf32.lo $elf" ;;
13747 bfd_elf32_i960_vec) tb="$tb elf32-i960.lo elf32.lo $elf" ;;
13748 bfd_elf32_ia64_big_vec) tb="$tb elf32-ia64.lo elf32.lo $elf" ;;
13749 bfd_elf32_ia64_hpux_big_vec) tb="$tb elf32-ia64.lo elf32.lo $elf";;
13750 bfd_elf32_ip2k_vec) tb="$tb elf32-ip2k.lo elf32.lo $elf" ;;
13751 bfd_elf32_iq2000_vec) tb="$tb elf32-iq2000.lo elf32.lo $elf" ;;
13752 bfd_elf32_little_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
13753 bfd_elf32_littlearc_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;;
13754 bfd_elf32_littlearm_symbian_vec)
13755 tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
13756 bfd_elf32_littlearm_vxworks_vec)
13757 tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
13758 bfd_elf32_littlearm_vec) tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
13759 bfd_elf32_littlemips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
13760 bfd_elf32_littlemips_vxworks_vec)
13761 tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
13762 bfd_elf32_m32c_vec) tb="$tb elf32-m32c.lo elf32.lo $elf" ;;
13763 bfd_elf32_m32r_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
13764 bfd_elf32_m32rle_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
13765 bfd_elf32_m32rlin_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
13766 bfd_elf32_m32rlelin_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
13767 bfd_elf32_m68hc11_vec) tb="$tb elf32-m68hc11.lo elf32-m68hc1x.lo elf32.lo $elf" ;;
13768 bfd_elf32_m68hc12_vec) tb="$tb elf32-m68hc12.lo elf32-m68hc1x.lo elf32.lo $elf" ;;
13769 bfd_elf32_m68k_vec) tb="$tb elf32-m68k.lo elf32.lo $elf" ;;
13770 bfd_elf32_m88k_vec) tb="$tb elf32-m88k.lo elf32.lo $elf" ;;
13771 bfd_elf32_mcore_big_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
13772 bfd_elf32_mcore_little_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
13773 bfd_elf32_mep_vec) tb="$tb elf32-mep.lo elf32.lo $elf" ;;
13774 bfd_elf32_mep_little_vec) tb="$tb elf32-mep.lo elf32.lo $elf" ;;
13775 bfd_elf32_mn10200_vec) tb="$tb elf-m10200.lo elf32.lo $elf" ;;
13776 bfd_elf32_mn10300_vec) tb="$tb elf-m10300.lo elf32.lo $elf" ;;
13777 bfd_elf32_mt_vec) tb="$tb elf32-mt.lo elf32.lo $elf" ;;
13778 bfd_elf32_msp430_vec) tb="$tb elf32-msp430.lo elf32.lo $elf" ;;
13779 bfd_elf32_nbigmips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
13780 bfd_elf32_nlittlemips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
13781 bfd_elf32_ntradbigmips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
13782 bfd_elf32_ntradlittlemips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
13783 bfd_elf32_openrisc_vec) tb="$tb elf32-openrisc.lo elf32.lo $elf" ;;
13784 bfd_elf32_or32_big_vec) tb="$tb elf32-or32.lo elf32.lo $elf" ;;
13785 bfd_elf32_pj_vec) tb="$tb elf32-pj.lo elf32.lo $elf";;
13786 bfd_elf32_pjl_vec) tb="$tb elf32-pj.lo elf32.lo $elf";;
13787 bfd_elf32_powerpc_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
13788 bfd_elf32_powerpcle_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
13789 bfd_elf32_powerpc_vxworks_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
13790 bfd_elf32_s390_vec) tb="$tb elf32-s390.lo elf32.lo $elf" ;;
13791 bfd_elf32_bigscore_vec) tb="$tb elf32-score.lo elf32.lo $elf" ;;
13792 bfd_elf32_littlescore_vec) tb="$tb elf32-score.lo elf32.lo $elf" ;;
13793 # FIXME: We include cofflink.lo not because it's needed for
13794 # bfd_elf32_sh64[l]_vec, but because we include bfd_elf32_sh[l]_vec
13795 # which needs it but does not list it. Should be fixed in right place.
13796 bfd_elf32_sh64_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
13797 bfd_elf32_sh64l_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
13798 bfd_elf32_sh64lin_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
13799 bfd_elf32_sh64blin_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
13800 bfd_elf32_sh64lnbsd_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" ;;
13801 bfd_elf32_sh64nbsd_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" ;;
13802 bfd_elf32_sh_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
13803 bfd_elf32_shblin_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
13804 bfd_elf32_shl_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
13805 bfd_elf32_shl_symbian_vec) tb="$tb elf32-sh-symbian.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
13806 bfd_elf32_shlin_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
13807 bfd_elf32_shlnbsd_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
13808 bfd_elf32_shlvxworks_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
13809 bfd_elf32_shnbsd_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
13810 bfd_elf32_shvxworks_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
13811 bfd_elf32_sparc_vec) tb="$tb elf32-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf32.lo $elf" ;;
13812 bfd_elf32_sparc_vxworks_vec) tb="$tb elf32-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf32.lo $elf" ;;
13813 bfd_elf32_spu_vec) tb="$tb elf32-spu.lo elf32.lo $elf" ;;
13814 bfd_elf32_tradbigmips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
13815 bfd_elf32_tradlittlemips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
13816 bfd_elf32_us_cris_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;;
13817 bfd_elf32_v850_vec) tb="$tb elf32-v850.lo elf32.lo $elf" ;;
13818 bfd_elf32_vax_vec) tb="$tb elf32-vax.lo elf32.lo $elf" ;;
13819 bfd_elf32_xstormy16_vec) tb="$tb elf32-xstormy16.lo elf32.lo $elf" ;;
13820 bfd_elf32_xc16x_vec) tb="$tb elf32-xc16x.lo elf32.lo $elf" ;;
13821 bfd_elf32_xtensa_le_vec) tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;;
13822 bfd_elf32_xtensa_be_vec) tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;;
13823 bfd_elf64_alpha_freebsd_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;;
13824 bfd_elf64_alpha_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;;
13825 bfd_elf64_big_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
13826 bfd_elf64_bigmips_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
13827 bfd_elf64_hppa_linux_vec) tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;;
13828 bfd_elf64_hppa_vec) tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;;
13829 bfd_elf64_ia64_big_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
13830 bfd_elf64_ia64_hpux_big_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
13831 bfd_elf64_ia64_little_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
13832 bfd_elf64_little_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
13833 bfd_elf64_littlemips_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
13834 bfd_elf64_mmix_vec) tb="$tb elf64-mmix.lo elf64.lo $elf" target_size=64 ;;
13835 bfd_elf64_powerpc_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
13836 bfd_elf64_powerpcle_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf" target_size=64 ;;
13837 bfd_elf64_s390_vec) tb="$tb elf64-s390.lo elf64.lo $elf"; target_size=64 ;;
13838 bfd_elf64_sh64_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
13839 bfd_elf64_sh64l_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
13840 bfd_elf64_sh64lin_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
13841 bfd_elf64_sh64blin_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
13842 bfd_elf64_sh64lnbsd_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
13843 bfd_elf64_sh64nbsd_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
13844 bfd_elf64_sparc_vec) tb="$tb elf64-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf64.lo $elf"; target_size=64 ;;
13845 bfd_elf64_sparc_freebsd_vec) tb="$tb elf64-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf64.lo $elf"; target_size=64 ;;
13846 bfd_elf64_tradbigmips_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
13847 bfd_elf64_tradlittlemips_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
13848 bfd_elf64_x86_64_freebsd_vec) tb="$tb elf64-x86-64.lo elf64.lo $elf"; target_size=64 ;;
13849 bfd_elf64_x86_64_vec) tb="$tb elf64-x86-64.lo elf64.lo $elf"; target_size=64 ;;
13850 bfd_mmo_vec) tb="$tb mmo.lo" target_size=64 ;;
13851 bfd_powerpc_pe_vec) tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;;
13852 bfd_powerpc_pei_vec) tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;;
13853 bfd_powerpcle_pe_vec) tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;;
13854 bfd_powerpcle_pei_vec) tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;;
13855 cris_aout_vec) tb="$tb aout-cris.lo" ;;
13856 demo_64_vec) tb="$tb demo64.lo aout64.lo"; target_size=64 ;;
13857 ecoff_big_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
13858 ecoff_biglittle_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
13859 ecoff_little_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
13860 ecoffalpha_little_vec) tb="$tb coff-alpha.lo ecoff.lo ecofflink.lo"; target_size=64 ;;
13861 go32coff_vec) tb="$tb coff-go32.lo cofflink.lo" ;;
13862 go32stubbedcoff_vec) tb="$tb coff-stgo32.lo cofflink.lo" ;;
13863 h8300coff_vec) tb="$tb coff-h8300.lo reloc16.lo" ;;
13864 h8500coff_vec) tb="$tb coff-h8500.lo reloc16.lo" ;;
13865 host_aout_vec) tb="$tb host-aout.lo aout32.lo" ;;
13866 hp300bsd_vec) tb="$tb hp300bsd.lo aout32.lo" ;;
13867 hp300hpux_vec) tb="$tb hp300hpux.lo aout32.lo" ;;
13868 i386aout_vec) tb="$tb i386aout.lo aout32.lo" ;;
13869 i386bsd_vec) tb="$tb i386bsd.lo aout32.lo" ;;
13870 i386coff_vec) tb="$tb coff-i386.lo cofflink.lo" ;;
13871 x86_64coff_vec) tb="$tb coff-x86_64.lo cofflink.lo"; target_size=64 ;;
13872 i386dynix_vec) tb="$tb i386dynix.lo aout32.lo" ;;
13873 i386freebsd_vec) tb="$tb i386freebsd.lo aout32.lo" ;;
13874 i386linux_vec) tb="$tb i386linux.lo aout32.lo" ;;
13875 i386lynx_aout_vec) tb="$tb i386lynx.lo lynx-core.lo aout32.lo" ;;
13876 i386lynx_coff_vec) tb="$tb cf-i386lynx.lo cofflink.lo lynx-core.lo" ;;
13877 i386mach3_vec) tb="$tb i386mach3.lo aout32.lo" ;;
13878 i386msdos_vec) tb="$tb i386msdos.lo" ;;
13879 i386netbsd_vec) tb="$tb i386netbsd.lo aout32.lo" ;;
13880 i386os9k_vec) tb="$tb i386os9k.lo aout32.lo" ;;
13881 i386pe_vec) tb="$tb pe-i386.lo peigen.lo cofflink.lo" ;;
13882 i386pei_vec) tb="$tb pei-i386.lo peigen.lo cofflink.lo" ;;
13883 x86_64pe_vec) tb="$tb pe-x86_64.lo pex64igen.lo cofflink.lo"; target_size=64 ;;
13884 x86_64pei_vec) tb="$tb pei-x86_64.lo pex64igen.lo cofflink.lo"; target_size=64 ;;
13885 i860coff_vec) tb="$tb coff-i860.lo cofflink.lo" ;;
13886 icoff_big_vec) tb="$tb coff-i960.lo cofflink.lo" ;;
13887 icoff_little_vec) tb="$tb coff-i960.lo cofflink.lo" ;;
13888 ieee_vec) tb="$tb ieee.lo" ;;
13889 m68k4knetbsd_vec) tb="$tb m68k4knetbsd.lo aout32.lo" ;;
13890 m68kaux_coff_vec) tb="$tb coff-aux.lo coff-m68k.lo cofflink.lo" ;;
13891 m68kcoff_vec) tb="$tb coff-m68k.lo cofflink.lo" ;;
13892 m68kcoffun_vec) tb="$tb coff-u68k.lo coff-m68k.lo cofflink.lo" ;;
13893 m68klinux_vec) tb="$tb m68klinux.lo aout32.lo" ;;
13894 m68knetbsd_vec) tb="$tb m68knetbsd.lo aout32.lo" ;;
13895 m68ksysvcoff_vec) tb="$tb coff-svm68k.lo cofflink.lo" ;;
13896 m88kbcs_vec) tb="$tb coff-m88k.lo" ;;
13897 m88kmach3_vec) tb="$tb m88kmach3.lo aout32.lo" ;;
13898 m88kopenbsd_vec) tb="$tb m88kopenbsd.lo aout32.lo" ;;
13899 maxqcoff_vec) tb="$tb coff-maxq.lo" ;;
13900 mach_o_be_vec) tb="$tb mach-o.lo" ;;
13901 mach_o_le_vec) tb="$tb mach-o.lo" ;;
13902 mach_o_fat_vec) tb="$tb mach-o.lo" ;;
13903 mcore_pe_big_vec) tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
13904 mcore_pe_little_vec) tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
13905 mcore_pei_big_vec) tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;;
13906 mcore_pei_little_vec) tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;;
13907 mipslpe_vec) tb="$tb pe-mips.lo peigen.lo cofflink.lo" ;;
13908 mipslpei_vec) tb="$tb pei-mips.lo peigen.lo cofflink.lo" ;;
13909 newsos3_vec) tb="$tb newsos3.lo aout32.lo" ;;
13910 nlm32_alpha_vec) tb="$tb nlm32-alpha.lo nlm32.lo nlm.lo"; target_size=64 ;;
13911 nlm32_i386_vec) tb="$tb nlm32-i386.lo nlm32.lo nlm.lo" ;;
13912 nlm32_powerpc_vec) tb="$tb nlm32-ppc.lo nlm32.lo nlm.lo" ;;
13913 nlm32_sparc_vec) tb="$tb nlm32-sparc.lo nlm32.lo nlm.lo" ;;
13914 or32coff_big_vec) tb="$tb coff-or32.lo cofflink.lo" ;;
13915 pc532machaout_vec) tb="$tb pc532-mach.lo aout-ns32k.lo" ;;
13916 pc532netbsd_vec) tb="$tb ns32knetbsd.lo aout-ns32k.lo" ;;
13917 pef_vec) tb="$tb pef.lo" ;;
13918 pef_xlib_vec) tb="$tb pef.lo" ;;
13919 pdp11_aout_vec) tb="$tb pdp11.lo" ;;
13920 pmac_xcoff_vec) tb="$tb coff-rs6000.lo xcofflink.lo" ;;
13921 ppcboot_vec) tb="$tb ppcboot.lo" ;;
13922 riscix_vec) tb="$tb aout32.lo riscix.lo" ;;
13923 rs6000coff64_vec) tb="$tb coff64-rs6000.lo xcofflink.lo aix5ppc-core.lo"; target_size=64 ;;
13924 rs6000coff_vec) tb="$tb coff-rs6000.lo xcofflink.lo" ;;
13925 shcoff_small_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
13926 shcoff_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
13927 shlcoff_small_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
13928 shlcoff_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
13929 shlpe_vec) tb="$tb pe-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;;
13930 shlpei_vec) tb="$tb pei-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;;
13931 som_vec) tb="$tb som.lo" ;;
13932 sparccoff_vec) tb="$tb coff-sparc.lo" ;;
13933 sparcle_aout_vec) tb="$tb aout-sparcle.lo aout32.lo" ;;
13934 sparclinux_vec) tb="$tb sparclinux.lo aout32.lo" ;;
13935 sparclynx_aout_vec) tb="$tb sparclynx.lo lynx-core.lo aout32.lo" ;;
13936 sparclynx_coff_vec) tb="$tb cf-sparclynx.lo lynx-core.lo" ;;
13937 sparcnetbsd_vec) tb="$tb sparcnetbsd.lo aout32.lo" ;;
13938 sunos_big_vec) tb="$tb sunos.lo aout32.lo" ;;
13939 sym_vec) tb="$tb xsym.lo" ;;
13940 tic30_aout_vec) tb="$tb aout-tic30.lo" ;;
13941 tic30_coff_vec) tb="$tb coff-tic30.lo" ;;
13942 tic4x_coff0_vec) tb="$tb coff-tic4x.lo" ;;
13943 tic4x_coff0_beh_vec) tb="$tb coff-tic4x.lo" ;;
13944 tic4x_coff1_vec) tb="$tb coff-tic4x.lo" ;;
13945 tic4x_coff1_beh_vec) tb="$tb coff-tic4x.lo" ;;
13946 tic4x_coff2_vec) tb="$tb coff-tic4x.lo" ;;
13947 tic4x_coff2_beh_vec) tb="$tb coff-tic4x.lo" ;;
13948 tic54x_coff0_beh_vec) tb="$tb coff-tic54x.lo" ;;
13949 tic54x_coff0_vec) tb="$tb coff-tic54x.lo" ;;
13950 tic54x_coff1_beh_vec) tb="$tb coff-tic54x.lo" ;;
13951 tic54x_coff1_vec) tb="$tb coff-tic54x.lo" ;;
13952 tic54x_coff2_beh_vec) tb="$tb coff-tic54x.lo" ;;
13953 tic54x_coff2_vec) tb="$tb coff-tic54x.lo" ;;
13954 tic80coff_vec) tb="$tb coff-tic80.lo cofflink.lo" ;;
13955 vaxnetbsd_vec) tb="$tb vaxnetbsd.lo aout32.lo" ;;
13956 vax1knetbsd_vec) tb="$tb vax1knetbsd.lo aout32.lo" ;;
13957 vaxbsd_vec) tb="$tb vaxbsd.lo aout32.lo" ;;
13958 versados_vec) tb="$tb versados.lo" ;;
13959 vms_alpha_vec) tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo"; target_size=64 ;;
13960 vms_vax_vec) tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo" ;;
13961 w65_vec) tb="$tb coff-w65.lo reloc16.lo" ;;
13962 we32kcoff_vec) tb="$tb coff-we32k.lo" ;;
13963 z80coff_vec) tb="$tb coff-z80.lo reloc16.lo" ;;
13964 z8kcoff_vec) tb="$tb coff-z8k.lo reloc16.lo cofflink.lo" ;;
13965
13966 # These appear out of order in targets.c
13967 srec_vec) tb="$tb srec.lo" ;;
13968 symbolsrec_vec) tb="$tb srec.lo" ;;
13969 tekhex_vec) tb="$tb tekhex.lo" ;;
13970 cisco_core_big_vec) tb="$tb cisco-core.lo" ;;
13971 cisco_core_little_vec) tb="$tb cisco-core.lo" ;;
13972
13973 "") ;;
13974 *) { { echo "$as_me:$LINENO: error: *** unknown target vector $vec" >&5
13975 echo "$as_me: error: *** unknown target vector $vec" >&2;}
13976 { (exit 1); exit 1; }; } ;;
13977 esac
13978
13979 if test ${target_size} = 64; then
13980 target64=true
13981 fi
13982 if test x"${vec}" = x"${defvec}"; then
13983 bfd_default_target_size=${target_size}
13984 fi
13985 done
13986
13987 # Target architecture .o files.
13988 # A couple of CPUs use shorter file names to avoid problems on DOS
13989 # filesystems.
13990 ta=`echo $selarchs | sed -e s/bfd_/cpu-/g -e s/_arch/.lo/g -e s/mn10200/m10200/ -e s/mn10300/m10300/`
13991
13992 # Weed out duplicate .o files.
13993 f=""
13994 for i in $tb ; do
13995 case " $f " in
13996 *" $i "*) ;;
13997 *) f="$f $i" ;;
13998 esac
13999 done
14000 tb="$f"
14001
14002 f=""
14003 for i in $ta ; do
14004 case " $f " in
14005 *" $i "*) ;;
14006 *) f="$f $i" ;;
14007 esac
14008 done
14009 ta="$f"
14010
14011 bfd_backends="$tb"
14012 bfd_machines="$ta"
14013
14014 if test x${all_targets} = xtrue ; then
14015 bfd_backends="${bfd_backends}"' $(ALL_BACKENDS)'
14016 bfd_machines="${bfd_machines}"' $(ALL_MACHINES)'
14017 selvecs=
14018 havevecs=
14019 selarchs=
14020 test -n "$assocvecs" &&
14021 assocvecs=`echo $assocvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
14022 else # all_targets is true
14023 # Only set these if they will be nonempty, for the clever echo.
14024 havevecs=
14025 assocvecs=
14026 test -n "$selvecs" &&
14027 havevecs=`echo $selvecs | sed -e 's/^/-DHAVE_/' -e 's/ \(.\)/ -DHAVE_\1/g'`
14028 test -n "$selvecs" &&
14029 selvecs=`echo $selvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
14030 test -n "$selarchs" &&
14031 selarchs=`echo $selarchs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
14032 fi # all_targets is true
14033
14034 case ${host64}-${target64}-${want64} in
14035 *true*)
14036 wordsize=64
14037 bfd64_libs='$(BFD64_LIBS)'
14038 all_backends='$(BFD64_BACKENDS) $(BFD32_BACKENDS)'
14039 if test $BFD_HOST_64_BIT_DEFINED = 0; then
14040 { echo "$as_me:$LINENO: WARNING: You have requested a 64 bit BFD configuration, but" >&5
14041 echo "$as_me: WARNING: You have requested a 64 bit BFD configuration, but" >&2;}
14042 { echo "$as_me:$LINENO: WARNING: your compiler may not have a 64 bit integral type" >&5
14043 echo "$as_me: WARNING: your compiler may not have a 64 bit integral type" >&2;}
14044 fi
14045 if test -n "$GCC" ; then
14046 bad_64bit_gcc=no;
14047 echo "$as_me:$LINENO: checking for gcc version with buggy 64-bit support" >&5
14048 echo $ECHO_N "checking for gcc version with buggy 64-bit support... $ECHO_C" >&6
14049 # Add more tests for gcc versions with non-working 64-bit support here.
14050 cat >conftest.$ac_ext <<_ACEOF
14051 /* confdefs.h. */
14052 _ACEOF
14053 cat confdefs.h >>conftest.$ac_ext
14054 cat >>conftest.$ac_ext <<_ACEOF
14055 /* end confdefs.h. */
14056 :__GNUC__:__GNUC_MINOR__:__i386__:
14057 _ACEOF
14058 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14059 $EGREP ": 2 : 91 : 1 :" >/dev/null 2>&1; then
14060 bad_64bit_gcc=yes;
14061 echo "$as_me:$LINENO: result: yes: egcs-1.1.2 on ix86 spotted" >&5
14062 echo "${ECHO_T}yes: egcs-1.1.2 on ix86 spotted" >&6
14063 else
14064 echo "$as_me:$LINENO: result: no" >&5
14065 echo "${ECHO_T}no" >&6
14066 fi
14067 rm -f conftest*
14068
14069 if test $bad_64bit_gcc = yes ; then
14070 { { echo "$as_me:$LINENO: error: A newer version of gcc is needed for the requested 64-bit BFD configuration" >&5
14071 echo "$as_me: error: A newer version of gcc is needed for the requested 64-bit BFD configuration" >&2;}
14072 { (exit 1); exit 1; }; }
14073 fi
14074 fi
14075 ;;
14076 false-false-false)
14077 wordsize=32
14078 all_backends='$(BFD32_BACKENDS)'
14079 ;;
14080 esac
14081
14082
14083
14084
14085
14086
14087
14088
14089 # Determine the host dependant file_ptr a.k.a. off_t type. In order
14090 # prefer: off64_t - if ftello64 and fseeko64, off_t - if ftello and
14091 # fseeko, long. This assumes that sizeof off_t is .ge. sizeof long.
14092 # Hopefully a reasonable assumption since fseeko et.al. should be
14093 # upward compatible.
14094
14095
14096
14097
14098
14099 for ac_func in ftello ftello64 fseeko fseeko64 fopen64
14100 do
14101 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14102 echo "$as_me:$LINENO: checking for $ac_func" >&5
14103 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14104 if eval "test \"\${$as_ac_var+set}\" = set"; then
14105 echo $ECHO_N "(cached) $ECHO_C" >&6
14106 else
14107 cat >conftest.$ac_ext <<_ACEOF
14108 /* confdefs.h. */
14109 _ACEOF
14110 cat confdefs.h >>conftest.$ac_ext
14111 cat >>conftest.$ac_ext <<_ACEOF
14112 /* end confdefs.h. */
14113 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14114 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14115 #define $ac_func innocuous_$ac_func
14116
14117 /* System header to define __stub macros and hopefully few prototypes,
14118 which can conflict with char $ac_func (); below.
14119 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14120 <limits.h> exists even on freestanding compilers. */
14121
14122 #ifdef __STDC__
14123 # include <limits.h>
14124 #else
14125 # include <assert.h>
14126 #endif
14127
14128 #undef $ac_func
14129
14130 /* Override any gcc2 internal prototype to avoid an error. */
14131 #ifdef __cplusplus
14132 extern "C"
14133 {
14134 #endif
14135 /* We use char because int might match the return type of a gcc2
14136 builtin and then its argument prototype would still apply. */
14137 char $ac_func ();
14138 /* The GNU C library defines this for functions which it implements
14139 to always fail with ENOSYS. Some functions are actually named
14140 something starting with __ and the normal name is an alias. */
14141 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14142 choke me
14143 #else
14144 char (*f) () = $ac_func;
14145 #endif
14146 #ifdef __cplusplus
14147 }
14148 #endif
14149
14150 int
14151 main ()
14152 {
14153 return f != $ac_func;
14154 ;
14155 return 0;
14156 }
14157 _ACEOF
14158 rm -f conftest.$ac_objext conftest$ac_exeext
14159 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14160 (eval $ac_link) 2>conftest.er1
14161 ac_status=$?
14162 grep -v '^ *+' conftest.er1 >conftest.err
14163 rm -f conftest.er1
14164 cat conftest.err >&5
14165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14166 (exit $ac_status); } &&
14167 { ac_try='test -z "$ac_c_werror_flag"
14168 || test ! -s conftest.err'
14169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14170 (eval $ac_try) 2>&5
14171 ac_status=$?
14172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14173 (exit $ac_status); }; } &&
14174 { ac_try='test -s conftest$ac_exeext'
14175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14176 (eval $ac_try) 2>&5
14177 ac_status=$?
14178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14179 (exit $ac_status); }; }; then
14180 eval "$as_ac_var=yes"
14181 else
14182 echo "$as_me: failed program was:" >&5
14183 sed 's/^/| /' conftest.$ac_ext >&5
14184
14185 eval "$as_ac_var=no"
14186 fi
14187 rm -f conftest.err conftest.$ac_objext \
14188 conftest$ac_exeext conftest.$ac_ext
14189 fi
14190 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14191 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14192 if test `eval echo '${'$as_ac_var'}'` = yes; then
14193 cat >>confdefs.h <<_ACEOF
14194 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14195 _ACEOF
14196
14197 fi
14198 done
14199
14200 if test x"$ac_cv_func_ftello" = xyes -a x"$ac_cv_func_fseeko" = xyes; then
14201 echo "$as_me:$LINENO: checking for off_t" >&5
14202 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
14203 if test "${ac_cv_type_off_t+set}" = set; then
14204 echo $ECHO_N "(cached) $ECHO_C" >&6
14205 else
14206 cat >conftest.$ac_ext <<_ACEOF
14207 /* confdefs.h. */
14208 _ACEOF
14209 cat confdefs.h >>conftest.$ac_ext
14210 cat >>conftest.$ac_ext <<_ACEOF
14211 /* end confdefs.h. */
14212 $ac_includes_default
14213 int
14214 main ()
14215 {
14216 if ((off_t *) 0)
14217 return 0;
14218 if (sizeof (off_t))
14219 return 0;
14220 ;
14221 return 0;
14222 }
14223 _ACEOF
14224 rm -f conftest.$ac_objext
14225 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14226 (eval $ac_compile) 2>conftest.er1
14227 ac_status=$?
14228 grep -v '^ *+' conftest.er1 >conftest.err
14229 rm -f conftest.er1
14230 cat conftest.err >&5
14231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14232 (exit $ac_status); } &&
14233 { ac_try='test -z "$ac_c_werror_flag"
14234 || test ! -s conftest.err'
14235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14236 (eval $ac_try) 2>&5
14237 ac_status=$?
14238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14239 (exit $ac_status); }; } &&
14240 { ac_try='test -s conftest.$ac_objext'
14241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14242 (eval $ac_try) 2>&5
14243 ac_status=$?
14244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14245 (exit $ac_status); }; }; then
14246 ac_cv_type_off_t=yes
14247 else
14248 echo "$as_me: failed program was:" >&5
14249 sed 's/^/| /' conftest.$ac_ext >&5
14250
14251 ac_cv_type_off_t=no
14252 fi
14253 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14254 fi
14255 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
14256 echo "${ECHO_T}$ac_cv_type_off_t" >&6
14257
14258 echo "$as_me:$LINENO: checking size of off_t" >&5
14259 echo $ECHO_N "checking size of off_t... $ECHO_C" >&6
14260 if test "${ac_cv_sizeof_off_t+set}" = set; then
14261 echo $ECHO_N "(cached) $ECHO_C" >&6
14262 else
14263 if test "$ac_cv_type_off_t" = yes; then
14264 # The cast to unsigned long works around a bug in the HP C Compiler
14265 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14266 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14267 # This bug is HP SR number 8606223364.
14268 if test "$cross_compiling" = yes; then
14269 # Depending upon the size, compute the lo and hi bounds.
14270 cat >conftest.$ac_ext <<_ACEOF
14271 /* confdefs.h. */
14272 _ACEOF
14273 cat confdefs.h >>conftest.$ac_ext
14274 cat >>conftest.$ac_ext <<_ACEOF
14275 /* end confdefs.h. */
14276 $ac_includes_default
14277 int
14278 main ()
14279 {
14280 static int test_array [1 - 2 * !(((long) (sizeof (off_t))) >= 0)];
14281 test_array [0] = 0
14282
14283 ;
14284 return 0;
14285 }
14286 _ACEOF
14287 rm -f conftest.$ac_objext
14288 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14289 (eval $ac_compile) 2>conftest.er1
14290 ac_status=$?
14291 grep -v '^ *+' conftest.er1 >conftest.err
14292 rm -f conftest.er1
14293 cat conftest.err >&5
14294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14295 (exit $ac_status); } &&
14296 { ac_try='test -z "$ac_c_werror_flag"
14297 || test ! -s conftest.err'
14298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14299 (eval $ac_try) 2>&5
14300 ac_status=$?
14301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14302 (exit $ac_status); }; } &&
14303 { ac_try='test -s conftest.$ac_objext'
14304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14305 (eval $ac_try) 2>&5
14306 ac_status=$?
14307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14308 (exit $ac_status); }; }; then
14309 ac_lo=0 ac_mid=0
14310 while :; do
14311 cat >conftest.$ac_ext <<_ACEOF
14312 /* confdefs.h. */
14313 _ACEOF
14314 cat confdefs.h >>conftest.$ac_ext
14315 cat >>conftest.$ac_ext <<_ACEOF
14316 /* end confdefs.h. */
14317 $ac_includes_default
14318 int
14319 main ()
14320 {
14321 static int test_array [1 - 2 * !(((long) (sizeof (off_t))) <= $ac_mid)];
14322 test_array [0] = 0
14323
14324 ;
14325 return 0;
14326 }
14327 _ACEOF
14328 rm -f conftest.$ac_objext
14329 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14330 (eval $ac_compile) 2>conftest.er1
14331 ac_status=$?
14332 grep -v '^ *+' conftest.er1 >conftest.err
14333 rm -f conftest.er1
14334 cat conftest.err >&5
14335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14336 (exit $ac_status); } &&
14337 { ac_try='test -z "$ac_c_werror_flag"
14338 || test ! -s conftest.err'
14339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14340 (eval $ac_try) 2>&5
14341 ac_status=$?
14342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14343 (exit $ac_status); }; } &&
14344 { ac_try='test -s conftest.$ac_objext'
14345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14346 (eval $ac_try) 2>&5
14347 ac_status=$?
14348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14349 (exit $ac_status); }; }; then
14350 ac_hi=$ac_mid; break
14351 else
14352 echo "$as_me: failed program was:" >&5
14353 sed 's/^/| /' conftest.$ac_ext >&5
14354
14355 ac_lo=`expr $ac_mid + 1`
14356 if test $ac_lo -le $ac_mid; then
14357 ac_lo= ac_hi=
14358 break
14359 fi
14360 ac_mid=`expr 2 '*' $ac_mid + 1`
14361 fi
14362 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14363 done
14364 else
14365 echo "$as_me: failed program was:" >&5
14366 sed 's/^/| /' conftest.$ac_ext >&5
14367
14368 cat >conftest.$ac_ext <<_ACEOF
14369 /* confdefs.h. */
14370 _ACEOF
14371 cat confdefs.h >>conftest.$ac_ext
14372 cat >>conftest.$ac_ext <<_ACEOF
14373 /* end confdefs.h. */
14374 $ac_includes_default
14375 int
14376 main ()
14377 {
14378 static int test_array [1 - 2 * !(((long) (sizeof (off_t))) < 0)];
14379 test_array [0] = 0
14380
14381 ;
14382 return 0;
14383 }
14384 _ACEOF
14385 rm -f conftest.$ac_objext
14386 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14387 (eval $ac_compile) 2>conftest.er1
14388 ac_status=$?
14389 grep -v '^ *+' conftest.er1 >conftest.err
14390 rm -f conftest.er1
14391 cat conftest.err >&5
14392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14393 (exit $ac_status); } &&
14394 { ac_try='test -z "$ac_c_werror_flag"
14395 || test ! -s conftest.err'
14396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14397 (eval $ac_try) 2>&5
14398 ac_status=$?
14399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14400 (exit $ac_status); }; } &&
14401 { ac_try='test -s conftest.$ac_objext'
14402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14403 (eval $ac_try) 2>&5
14404 ac_status=$?
14405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14406 (exit $ac_status); }; }; then
14407 ac_hi=-1 ac_mid=-1
14408 while :; do
14409 cat >conftest.$ac_ext <<_ACEOF
14410 /* confdefs.h. */
14411 _ACEOF
14412 cat confdefs.h >>conftest.$ac_ext
14413 cat >>conftest.$ac_ext <<_ACEOF
14414 /* end confdefs.h. */
14415 $ac_includes_default
14416 int
14417 main ()
14418 {
14419 static int test_array [1 - 2 * !(((long) (sizeof (off_t))) >= $ac_mid)];
14420 test_array [0] = 0
14421
14422 ;
14423 return 0;
14424 }
14425 _ACEOF
14426 rm -f conftest.$ac_objext
14427 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14428 (eval $ac_compile) 2>conftest.er1
14429 ac_status=$?
14430 grep -v '^ *+' conftest.er1 >conftest.err
14431 rm -f conftest.er1
14432 cat conftest.err >&5
14433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14434 (exit $ac_status); } &&
14435 { ac_try='test -z "$ac_c_werror_flag"
14436 || test ! -s conftest.err'
14437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14438 (eval $ac_try) 2>&5
14439 ac_status=$?
14440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14441 (exit $ac_status); }; } &&
14442 { ac_try='test -s conftest.$ac_objext'
14443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14444 (eval $ac_try) 2>&5
14445 ac_status=$?
14446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14447 (exit $ac_status); }; }; then
14448 ac_lo=$ac_mid; break
14449 else
14450 echo "$as_me: failed program was:" >&5
14451 sed 's/^/| /' conftest.$ac_ext >&5
14452
14453 ac_hi=`expr '(' $ac_mid ')' - 1`
14454 if test $ac_mid -le $ac_hi; then
14455 ac_lo= ac_hi=
14456 break
14457 fi
14458 ac_mid=`expr 2 '*' $ac_mid`
14459 fi
14460 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14461 done
14462 else
14463 echo "$as_me: failed program was:" >&5
14464 sed 's/^/| /' conftest.$ac_ext >&5
14465
14466 ac_lo= ac_hi=
14467 fi
14468 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14469 fi
14470 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14471 # Binary search between lo and hi bounds.
14472 while test "x$ac_lo" != "x$ac_hi"; do
14473 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14474 cat >conftest.$ac_ext <<_ACEOF
14475 /* confdefs.h. */
14476 _ACEOF
14477 cat confdefs.h >>conftest.$ac_ext
14478 cat >>conftest.$ac_ext <<_ACEOF
14479 /* end confdefs.h. */
14480 $ac_includes_default
14481 int
14482 main ()
14483 {
14484 static int test_array [1 - 2 * !(((long) (sizeof (off_t))) <= $ac_mid)];
14485 test_array [0] = 0
14486
14487 ;
14488 return 0;
14489 }
14490 _ACEOF
14491 rm -f conftest.$ac_objext
14492 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14493 (eval $ac_compile) 2>conftest.er1
14494 ac_status=$?
14495 grep -v '^ *+' conftest.er1 >conftest.err
14496 rm -f conftest.er1
14497 cat conftest.err >&5
14498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14499 (exit $ac_status); } &&
14500 { ac_try='test -z "$ac_c_werror_flag"
14501 || test ! -s conftest.err'
14502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14503 (eval $ac_try) 2>&5
14504 ac_status=$?
14505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14506 (exit $ac_status); }; } &&
14507 { ac_try='test -s conftest.$ac_objext'
14508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14509 (eval $ac_try) 2>&5
14510 ac_status=$?
14511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14512 (exit $ac_status); }; }; then
14513 ac_hi=$ac_mid
14514 else
14515 echo "$as_me: failed program was:" >&5
14516 sed 's/^/| /' conftest.$ac_ext >&5
14517
14518 ac_lo=`expr '(' $ac_mid ')' + 1`
14519 fi
14520 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14521 done
14522 case $ac_lo in
14523 ?*) ac_cv_sizeof_off_t=$ac_lo;;
14524 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t), 77
14525 See \`config.log' for more details." >&5
14526 echo "$as_me: error: cannot compute sizeof (off_t), 77
14527 See \`config.log' for more details." >&2;}
14528 { (exit 1); exit 1; }; } ;;
14529 esac
14530 else
14531 if test "$cross_compiling" = yes; then
14532 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14533 See \`config.log' for more details." >&5
14534 echo "$as_me: error: cannot run test program while cross compiling
14535 See \`config.log' for more details." >&2;}
14536 { (exit 1); exit 1; }; }
14537 else
14538 cat >conftest.$ac_ext <<_ACEOF
14539 /* confdefs.h. */
14540 _ACEOF
14541 cat confdefs.h >>conftest.$ac_ext
14542 cat >>conftest.$ac_ext <<_ACEOF
14543 /* end confdefs.h. */
14544 $ac_includes_default
14545 long longval () { return (long) (sizeof (off_t)); }
14546 unsigned long ulongval () { return (long) (sizeof (off_t)); }
14547 #include <stdio.h>
14548 #include <stdlib.h>
14549 int
14550 main ()
14551 {
14552
14553 FILE *f = fopen ("conftest.val", "w");
14554 if (! f)
14555 exit (1);
14556 if (((long) (sizeof (off_t))) < 0)
14557 {
14558 long i = longval ();
14559 if (i != ((long) (sizeof (off_t))))
14560 exit (1);
14561 fprintf (f, "%ld\n", i);
14562 }
14563 else
14564 {
14565 unsigned long i = ulongval ();
14566 if (i != ((long) (sizeof (off_t))))
14567 exit (1);
14568 fprintf (f, "%lu\n", i);
14569 }
14570 exit (ferror (f) || fclose (f) != 0);
14571
14572 ;
14573 return 0;
14574 }
14575 _ACEOF
14576 rm -f conftest$ac_exeext
14577 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14578 (eval $ac_link) 2>&5
14579 ac_status=$?
14580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14581 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14583 (eval $ac_try) 2>&5
14584 ac_status=$?
14585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14586 (exit $ac_status); }; }; then
14587 ac_cv_sizeof_off_t=`cat conftest.val`
14588 else
14589 echo "$as_me: program exited with status $ac_status" >&5
14590 echo "$as_me: failed program was:" >&5
14591 sed 's/^/| /' conftest.$ac_ext >&5
14592
14593 ( exit $ac_status )
14594 { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t), 77
14595 See \`config.log' for more details." >&5
14596 echo "$as_me: error: cannot compute sizeof (off_t), 77
14597 See \`config.log' for more details." >&2;}
14598 { (exit 1); exit 1; }; }
14599 fi
14600 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14601 fi
14602 fi
14603 rm -f conftest.val
14604 else
14605 ac_cv_sizeof_off_t=0
14606 fi
14607 fi
14608 echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
14609 echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6
14610 cat >>confdefs.h <<_ACEOF
14611 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
14612 _ACEOF
14613
14614
14615 fi
14616 echo "$as_me:$LINENO: checking file_ptr type" >&5
14617 echo $ECHO_N "checking file_ptr type... $ECHO_C" >&6
14618 bfd_file_ptr="long"
14619 bfd_ufile_ptr="unsigned long"
14620 if test x"$ac_cv_func_ftello64" = xyes -a x"$ac_cv_func_fseeko64" = xyes \
14621 -o x"${ac_cv_sizeof_off_t}" = x8; then
14622 bfd_file_ptr=BFD_HOST_64_BIT
14623 bfd_ufile_ptr=BFD_HOST_U_64_BIT
14624 fi
14625 echo "$as_me:$LINENO: result: $bfd_file_ptr" >&5
14626 echo "${ECHO_T}$bfd_file_ptr" >&6
14627
14628
14629
14630
14631 tdefaults=""
14632 test -n "${defvec}" && tdefaults="${tdefaults} -DDEFAULT_VECTOR=${defvec}"
14633 test -n "${selvecs}" && tdefaults="${tdefaults} -DSELECT_VECS='${selvecs}'"
14634 test -n "${assocvecs}" && tdefaults="${tdefaults} -DASSOCIATED_VECS='${assocvecs}'"
14635 test -n "${selarchs}" && tdefaults="${tdefaults} -DSELECT_ARCHITECTURES='${selarchs}'"
14636 test -n "${havevecs}" && tdefaults="${tdefaults} ${havevecs}"
14637
14638
14639
14640
14641 for ac_header in stdlib.h unistd.h
14642 do
14643 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14644 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14645 echo "$as_me:$LINENO: checking for $ac_header" >&5
14646 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14647 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14648 echo $ECHO_N "(cached) $ECHO_C" >&6
14649 fi
14650 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14651 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14652 else
14653 # Is the header compilable?
14654 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14655 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14656 cat >conftest.$ac_ext <<_ACEOF
14657 /* confdefs.h. */
14658 _ACEOF
14659 cat confdefs.h >>conftest.$ac_ext
14660 cat >>conftest.$ac_ext <<_ACEOF
14661 /* end confdefs.h. */
14662 $ac_includes_default
14663 #include <$ac_header>
14664 _ACEOF
14665 rm -f conftest.$ac_objext
14666 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14667 (eval $ac_compile) 2>conftest.er1
14668 ac_status=$?
14669 grep -v '^ *+' conftest.er1 >conftest.err
14670 rm -f conftest.er1
14671 cat conftest.err >&5
14672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14673 (exit $ac_status); } &&
14674 { ac_try='test -z "$ac_c_werror_flag"
14675 || test ! -s conftest.err'
14676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14677 (eval $ac_try) 2>&5
14678 ac_status=$?
14679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14680 (exit $ac_status); }; } &&
14681 { ac_try='test -s conftest.$ac_objext'
14682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14683 (eval $ac_try) 2>&5
14684 ac_status=$?
14685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14686 (exit $ac_status); }; }; then
14687 ac_header_compiler=yes
14688 else
14689 echo "$as_me: failed program was:" >&5
14690 sed 's/^/| /' conftest.$ac_ext >&5
14691
14692 ac_header_compiler=no
14693 fi
14694 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14695 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14696 echo "${ECHO_T}$ac_header_compiler" >&6
14697
14698 # Is the header present?
14699 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14700 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14701 cat >conftest.$ac_ext <<_ACEOF
14702 /* confdefs.h. */
14703 _ACEOF
14704 cat confdefs.h >>conftest.$ac_ext
14705 cat >>conftest.$ac_ext <<_ACEOF
14706 /* end confdefs.h. */
14707 #include <$ac_header>
14708 _ACEOF
14709 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14710 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14711 ac_status=$?
14712 grep -v '^ *+' conftest.er1 >conftest.err
14713 rm -f conftest.er1
14714 cat conftest.err >&5
14715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14716 (exit $ac_status); } >/dev/null; then
14717 if test -s conftest.err; then
14718 ac_cpp_err=$ac_c_preproc_warn_flag
14719 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14720 else
14721 ac_cpp_err=
14722 fi
14723 else
14724 ac_cpp_err=yes
14725 fi
14726 if test -z "$ac_cpp_err"; then
14727 ac_header_preproc=yes
14728 else
14729 echo "$as_me: failed program was:" >&5
14730 sed 's/^/| /' conftest.$ac_ext >&5
14731
14732 ac_header_preproc=no
14733 fi
14734 rm -f conftest.err conftest.$ac_ext
14735 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14736 echo "${ECHO_T}$ac_header_preproc" >&6
14737
14738 # So? What about this header?
14739 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14740 yes:no: )
14741 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14742 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14743 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14744 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14745 ac_header_preproc=yes
14746 ;;
14747 no:yes:* )
14748 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14749 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14750 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14751 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14752 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14753 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14754 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14755 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14756 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14757 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14758 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14759 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14760 (
14761 cat <<\_ASBOX
14762 ## ------------------------------------------ ##
14763 ## Report this to the AC_PACKAGE_NAME lists. ##
14764 ## ------------------------------------------ ##
14765 _ASBOX
14766 ) |
14767 sed "s/^/$as_me: WARNING: /" >&2
14768 ;;
14769 esac
14770 echo "$as_me:$LINENO: checking for $ac_header" >&5
14771 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14772 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14773 echo $ECHO_N "(cached) $ECHO_C" >&6
14774 else
14775 eval "$as_ac_Header=\$ac_header_preproc"
14776 fi
14777 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14778 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14779
14780 fi
14781 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14782 cat >>confdefs.h <<_ACEOF
14783 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14784 _ACEOF
14785
14786 fi
14787
14788 done
14789
14790
14791 for ac_func in getpagesize
14792 do
14793 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14794 echo "$as_me:$LINENO: checking for $ac_func" >&5
14795 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14796 if eval "test \"\${$as_ac_var+set}\" = set"; then
14797 echo $ECHO_N "(cached) $ECHO_C" >&6
14798 else
14799 cat >conftest.$ac_ext <<_ACEOF
14800 /* confdefs.h. */
14801 _ACEOF
14802 cat confdefs.h >>conftest.$ac_ext
14803 cat >>conftest.$ac_ext <<_ACEOF
14804 /* end confdefs.h. */
14805 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14806 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14807 #define $ac_func innocuous_$ac_func
14808
14809 /* System header to define __stub macros and hopefully few prototypes,
14810 which can conflict with char $ac_func (); below.
14811 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14812 <limits.h> exists even on freestanding compilers. */
14813
14814 #ifdef __STDC__
14815 # include <limits.h>
14816 #else
14817 # include <assert.h>
14818 #endif
14819
14820 #undef $ac_func
14821
14822 /* Override any gcc2 internal prototype to avoid an error. */
14823 #ifdef __cplusplus
14824 extern "C"
14825 {
14826 #endif
14827 /* We use char because int might match the return type of a gcc2
14828 builtin and then its argument prototype would still apply. */
14829 char $ac_func ();
14830 /* The GNU C library defines this for functions which it implements
14831 to always fail with ENOSYS. Some functions are actually named
14832 something starting with __ and the normal name is an alias. */
14833 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14834 choke me
14835 #else
14836 char (*f) () = $ac_func;
14837 #endif
14838 #ifdef __cplusplus
14839 }
14840 #endif
14841
14842 int
14843 main ()
14844 {
14845 return f != $ac_func;
14846 ;
14847 return 0;
14848 }
14849 _ACEOF
14850 rm -f conftest.$ac_objext conftest$ac_exeext
14851 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14852 (eval $ac_link) 2>conftest.er1
14853 ac_status=$?
14854 grep -v '^ *+' conftest.er1 >conftest.err
14855 rm -f conftest.er1
14856 cat conftest.err >&5
14857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14858 (exit $ac_status); } &&
14859 { ac_try='test -z "$ac_c_werror_flag"
14860 || test ! -s conftest.err'
14861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14862 (eval $ac_try) 2>&5
14863 ac_status=$?
14864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14865 (exit $ac_status); }; } &&
14866 { ac_try='test -s conftest$ac_exeext'
14867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14868 (eval $ac_try) 2>&5
14869 ac_status=$?
14870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14871 (exit $ac_status); }; }; then
14872 eval "$as_ac_var=yes"
14873 else
14874 echo "$as_me: failed program was:" >&5
14875 sed 's/^/| /' conftest.$ac_ext >&5
14876
14877 eval "$as_ac_var=no"
14878 fi
14879 rm -f conftest.err conftest.$ac_objext \
14880 conftest$ac_exeext conftest.$ac_ext
14881 fi
14882 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14883 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14884 if test `eval echo '${'$as_ac_var'}'` = yes; then
14885 cat >>confdefs.h <<_ACEOF
14886 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14887 _ACEOF
14888
14889 fi
14890 done
14891
14892 echo "$as_me:$LINENO: checking for working mmap" >&5
14893 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
14894 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
14895 echo $ECHO_N "(cached) $ECHO_C" >&6
14896 else
14897 if test "$cross_compiling" = yes; then
14898 ac_cv_func_mmap_fixed_mapped=no
14899 else
14900 cat >conftest.$ac_ext <<_ACEOF
14901 /* confdefs.h. */
14902 _ACEOF
14903 cat confdefs.h >>conftest.$ac_ext
14904 cat >>conftest.$ac_ext <<_ACEOF
14905 /* end confdefs.h. */
14906 $ac_includes_default
14907 /* malloc might have been renamed as rpl_malloc. */
14908 #undef malloc
14909
14910 /* Thanks to Mike Haertel and Jim Avera for this test.
14911 Here is a matrix of mmap possibilities:
14912 mmap private not fixed
14913 mmap private fixed at somewhere currently unmapped
14914 mmap private fixed at somewhere already mapped
14915 mmap shared not fixed
14916 mmap shared fixed at somewhere currently unmapped
14917 mmap shared fixed at somewhere already mapped
14918 For private mappings, we should verify that changes cannot be read()
14919 back from the file, nor mmap's back from the file at a different
14920 address. (There have been systems where private was not correctly
14921 implemented like the infamous i386 svr4.0, and systems where the
14922 VM page cache was not coherent with the file system buffer cache
14923 like early versions of FreeBSD and possibly contemporary NetBSD.)
14924 For shared mappings, we should conversely verify that changes get
14925 propagated back to all the places they're supposed to be.
14926
14927 Grep wants private fixed already mapped.
14928 The main things grep needs to know about mmap are:
14929 * does it exist and is it safe to write into the mmap'd area
14930 * how to use it (BSD variants) */
14931
14932 #include <fcntl.h>
14933 #include <sys/mman.h>
14934
14935 #if !STDC_HEADERS && !HAVE_STDLIB_H
14936 char *malloc ();
14937 #endif
14938
14939 /* This mess was copied from the GNU getpagesize.h. */
14940 #if !HAVE_GETPAGESIZE
14941 /* Assume that all systems that can run configure have sys/param.h. */
14942 # if !HAVE_SYS_PARAM_H
14943 # define HAVE_SYS_PARAM_H 1
14944 # endif
14945
14946 # ifdef _SC_PAGESIZE
14947 # define getpagesize() sysconf(_SC_PAGESIZE)
14948 # else /* no _SC_PAGESIZE */
14949 # if HAVE_SYS_PARAM_H
14950 # include <sys/param.h>
14951 # ifdef EXEC_PAGESIZE
14952 # define getpagesize() EXEC_PAGESIZE
14953 # else /* no EXEC_PAGESIZE */
14954 # ifdef NBPG
14955 # define getpagesize() NBPG * CLSIZE
14956 # ifndef CLSIZE
14957 # define CLSIZE 1
14958 # endif /* no CLSIZE */
14959 # else /* no NBPG */
14960 # ifdef NBPC
14961 # define getpagesize() NBPC
14962 # else /* no NBPC */
14963 # ifdef PAGESIZE
14964 # define getpagesize() PAGESIZE
14965 # endif /* PAGESIZE */
14966 # endif /* no NBPC */
14967 # endif /* no NBPG */
14968 # endif /* no EXEC_PAGESIZE */
14969 # else /* no HAVE_SYS_PARAM_H */
14970 # define getpagesize() 8192 /* punt totally */
14971 # endif /* no HAVE_SYS_PARAM_H */
14972 # endif /* no _SC_PAGESIZE */
14973
14974 #endif /* no HAVE_GETPAGESIZE */
14975
14976 int
14977 main ()
14978 {
14979 char *data, *data2, *data3;
14980 int i, pagesize;
14981 int fd;
14982
14983 pagesize = getpagesize ();
14984
14985 /* First, make a file with some known garbage in it. */
14986 data = (char *) malloc (pagesize);
14987 if (!data)
14988 exit (1);
14989 for (i = 0; i < pagesize; ++i)
14990 *(data + i) = rand ();
14991 umask (0);
14992 fd = creat ("conftest.mmap", 0600);
14993 if (fd < 0)
14994 exit (1);
14995 if (write (fd, data, pagesize) != pagesize)
14996 exit (1);
14997 close (fd);
14998
14999 /* Next, try to mmap the file at a fixed address which already has
15000 something else allocated at it. If we can, also make sure that
15001 we see the same garbage. */
15002 fd = open ("conftest.mmap", O_RDWR);
15003 if (fd < 0)
15004 exit (1);
15005 data2 = (char *) malloc (2 * pagesize);
15006 if (!data2)
15007 exit (1);
15008 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
15009 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
15010 MAP_PRIVATE | MAP_FIXED, fd, 0L))
15011 exit (1);
15012 for (i = 0; i < pagesize; ++i)
15013 if (*(data + i) != *(data2 + i))
15014 exit (1);
15015
15016 /* Finally, make sure that changes to the mapped area do not
15017 percolate back to the file as seen by read(). (This is a bug on
15018 some variants of i386 svr4.0.) */
15019 for (i = 0; i < pagesize; ++i)
15020 *(data2 + i) = *(data2 + i) + 1;
15021 data3 = (char *) malloc (pagesize);
15022 if (!data3)
15023 exit (1);
15024 if (read (fd, data3, pagesize) != pagesize)
15025 exit (1);
15026 for (i = 0; i < pagesize; ++i)
15027 if (*(data + i) != *(data3 + i))
15028 exit (1);
15029 close (fd);
15030 exit (0);
15031 }
15032 _ACEOF
15033 rm -f conftest$ac_exeext
15034 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15035 (eval $ac_link) 2>&5
15036 ac_status=$?
15037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15038 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15040 (eval $ac_try) 2>&5
15041 ac_status=$?
15042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15043 (exit $ac_status); }; }; then
15044 ac_cv_func_mmap_fixed_mapped=yes
15045 else
15046 echo "$as_me: program exited with status $ac_status" >&5
15047 echo "$as_me: failed program was:" >&5
15048 sed 's/^/| /' conftest.$ac_ext >&5
15049
15050 ( exit $ac_status )
15051 ac_cv_func_mmap_fixed_mapped=no
15052 fi
15053 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15054 fi
15055 fi
15056 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
15057 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
15058 if test $ac_cv_func_mmap_fixed_mapped = yes; then
15059
15060 cat >>confdefs.h <<\_ACEOF
15061 #define HAVE_MMAP 1
15062 _ACEOF
15063
15064 fi
15065 rm -f conftest.mmap
15066
15067
15068
15069 for ac_func in madvise mprotect
15070 do
15071 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15072 echo "$as_me:$LINENO: checking for $ac_func" >&5
15073 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15074 if eval "test \"\${$as_ac_var+set}\" = set"; then
15075 echo $ECHO_N "(cached) $ECHO_C" >&6
15076 else
15077 cat >conftest.$ac_ext <<_ACEOF
15078 /* confdefs.h. */
15079 _ACEOF
15080 cat confdefs.h >>conftest.$ac_ext
15081 cat >>conftest.$ac_ext <<_ACEOF
15082 /* end confdefs.h. */
15083 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15084 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15085 #define $ac_func innocuous_$ac_func
15086
15087 /* System header to define __stub macros and hopefully few prototypes,
15088 which can conflict with char $ac_func (); below.
15089 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15090 <limits.h> exists even on freestanding compilers. */
15091
15092 #ifdef __STDC__
15093 # include <limits.h>
15094 #else
15095 # include <assert.h>
15096 #endif
15097
15098 #undef $ac_func
15099
15100 /* Override any gcc2 internal prototype to avoid an error. */
15101 #ifdef __cplusplus
15102 extern "C"
15103 {
15104 #endif
15105 /* We use char because int might match the return type of a gcc2
15106 builtin and then its argument prototype would still apply. */
15107 char $ac_func ();
15108 /* The GNU C library defines this for functions which it implements
15109 to always fail with ENOSYS. Some functions are actually named
15110 something starting with __ and the normal name is an alias. */
15111 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15112 choke me
15113 #else
15114 char (*f) () = $ac_func;
15115 #endif
15116 #ifdef __cplusplus
15117 }
15118 #endif
15119
15120 int
15121 main ()
15122 {
15123 return f != $ac_func;
15124 ;
15125 return 0;
15126 }
15127 _ACEOF
15128 rm -f conftest.$ac_objext conftest$ac_exeext
15129 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15130 (eval $ac_link) 2>conftest.er1
15131 ac_status=$?
15132 grep -v '^ *+' conftest.er1 >conftest.err
15133 rm -f conftest.er1
15134 cat conftest.err >&5
15135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15136 (exit $ac_status); } &&
15137 { ac_try='test -z "$ac_c_werror_flag"
15138 || test ! -s conftest.err'
15139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15140 (eval $ac_try) 2>&5
15141 ac_status=$?
15142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15143 (exit $ac_status); }; } &&
15144 { ac_try='test -s conftest$ac_exeext'
15145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15146 (eval $ac_try) 2>&5
15147 ac_status=$?
15148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15149 (exit $ac_status); }; }; then
15150 eval "$as_ac_var=yes"
15151 else
15152 echo "$as_me: failed program was:" >&5
15153 sed 's/^/| /' conftest.$ac_ext >&5
15154
15155 eval "$as_ac_var=no"
15156 fi
15157 rm -f conftest.err conftest.$ac_objext \
15158 conftest$ac_exeext conftest.$ac_ext
15159 fi
15160 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15161 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15162 if test `eval echo '${'$as_ac_var'}'` = yes; then
15163 cat >>confdefs.h <<_ACEOF
15164 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15165 _ACEOF
15166
15167 fi
15168 done
15169
15170 case ${want_mmap}+${ac_cv_func_mmap_fixed_mapped} in
15171 true+yes )
15172 cat >>confdefs.h <<\_ACEOF
15173 #define USE_MMAP 1
15174 _ACEOF
15175 ;;
15176 esac
15177
15178 rm -f doc/config.status
15179 ac_config_files="$ac_config_files Makefile doc/Makefile bfd-in3.h:bfd-in2.h po/Makefile.in:po/Make-in"
15180
15181
15182 ac_config_commands="$ac_config_commands default"
15183
15184
15185
15186
15187
15188
15189 cat >confcache <<\_ACEOF
15190 # This file is a shell script that caches the results of configure
15191 # tests run on this system so they can be shared between configure
15192 # scripts and configure runs, see configure's option --config-cache.
15193 # It is not useful on other systems. If it contains results you don't
15194 # want to keep, you may remove or edit it.
15195 #
15196 # config.status only pays attention to the cache file if you give it
15197 # the --recheck option to rerun configure.
15198 #
15199 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15200 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15201 # following values.
15202
15203 _ACEOF
15204
15205 # The following way of writing the cache mishandles newlines in values,
15206 # but we know of no workaround that is simple, portable, and efficient.
15207 # So, don't put newlines in cache variables' values.
15208 # Ultrix sh set writes to stderr and can't be redirected directly,
15209 # and sets the high bit in the cache file unless we assign to the vars.
15210 {
15211 (set) 2>&1 |
15212 case `(ac_space=' '; set | grep ac_space) 2>&1` in
15213 *ac_space=\ *)
15214 # `set' does not quote correctly, so add quotes (double-quote
15215 # substitution turns \\\\ into \\, and sed turns \\ into \).
15216 sed -n \
15217 "s/'/'\\\\''/g;
15218 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15219 ;;
15220 *)
15221 # `set' quotes correctly as required by POSIX, so do not add quotes.
15222 sed -n \
15223 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
15224 ;;
15225 esac;
15226 } |
15227 sed '
15228 t clear
15229 : clear
15230 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15231 t end
15232 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15233 : end' >>confcache
15234 if diff $cache_file confcache >/dev/null 2>&1; then :; else
15235 if test -w $cache_file; then
15236 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
15237 cat confcache >$cache_file
15238 else
15239 echo "not updating unwritable cache $cache_file"
15240 fi
15241 fi
15242 rm -f confcache
15243
15244 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15245 # Let make expand exec_prefix.
15246 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15247
15248 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15249 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15250 # trailing colons and then remove the whole line if VPATH becomes empty
15251 # (actually we leave an empty line to preserve line numbers).
15252 if test "x$srcdir" = x.; then
15253 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15254 s/:*\$(srcdir):*/:/;
15255 s/:*\${srcdir}:*/:/;
15256 s/:*@srcdir@:*/:/;
15257 s/^\([^=]*=[ ]*\):*/\1/;
15258 s/:*$//;
15259 s/^[^=]*=[ ]*$//;
15260 }'
15261 fi
15262
15263 DEFS=-DHAVE_CONFIG_H
15264
15265 ac_libobjs=
15266 ac_ltlibobjs=
15267 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15268 # 1. Remove the extension, and $U if already installed.
15269 ac_i=`echo "$ac_i" |
15270 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
15271 # 2. Add them.
15272 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
15273 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
15274 done
15275 LIBOBJS=$ac_libobjs
15276
15277 LTLIBOBJS=$ac_ltlibobjs
15278
15279
15280 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15281 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
15282 Usually this means the macro was only invoked conditionally." >&5
15283 echo "$as_me: error: conditional \"AMDEP\" was never defined.
15284 Usually this means the macro was only invoked conditionally." >&2;}
15285 { (exit 1); exit 1; }; }
15286 fi
15287 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15288 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
15289 Usually this means the macro was only invoked conditionally." >&5
15290 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
15291 Usually this means the macro was only invoked conditionally." >&2;}
15292 { (exit 1); exit 1; }; }
15293 fi
15294 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15295 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
15296 Usually this means the macro was only invoked conditionally." >&5
15297 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
15298 Usually this means the macro was only invoked conditionally." >&2;}
15299 { (exit 1); exit 1; }; }
15300 fi
15301 if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
15302 { { echo "$as_me:$LINENO: error: conditional \"GENINSRC_NEVER\" was never defined.
15303 Usually this means the macro was only invoked conditionally." >&5
15304 echo "$as_me: error: conditional \"GENINSRC_NEVER\" was never defined.
15305 Usually this means the macro was only invoked conditionally." >&2;}
15306 { (exit 1); exit 1; }; }
15307 fi
15308 if test -z "${INSTALL_LIBBFD_TRUE}" && test -z "${INSTALL_LIBBFD_FALSE}"; then
15309 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LIBBFD\" was never defined.
15310 Usually this means the macro was only invoked conditionally." >&5
15311 echo "$as_me: error: conditional \"INSTALL_LIBBFD\" was never defined.
15312 Usually this means the macro was only invoked conditionally." >&2;}
15313 { (exit 1); exit 1; }; }
15314 fi
15315
15316 : ${CONFIG_STATUS=./config.status}
15317 ac_clean_files_save=$ac_clean_files
15318 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15319 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
15320 echo "$as_me: creating $CONFIG_STATUS" >&6;}
15321 cat >$CONFIG_STATUS <<_ACEOF
15322 #! $SHELL
15323 # Generated by $as_me.
15324 # Run this file to recreate the current configuration.
15325 # Compiler output produced by configure, useful for debugging
15326 # configure, is in config.log if it exists.
15327
15328 debug=false
15329 ac_cs_recheck=false
15330 ac_cs_silent=false
15331 SHELL=\${CONFIG_SHELL-$SHELL}
15332 _ACEOF
15333
15334 cat >>$CONFIG_STATUS <<\_ACEOF
15335 ## --------------------- ##
15336 ## M4sh Initialization. ##
15337 ## --------------------- ##
15338
15339 # Be Bourne compatible
15340 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15341 emulate sh
15342 NULLCMD=:
15343 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
15344 # is contrary to our usage. Disable this feature.
15345 alias -g '${1+"$@"}'='"$@"'
15346 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
15347 set -o posix
15348 fi
15349 DUALCASE=1; export DUALCASE # for MKS sh
15350
15351 # Support unset when possible.
15352 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
15353 as_unset=unset
15354 else
15355 as_unset=false
15356 fi
15357
15358
15359 # Work around bugs in pre-3.0 UWIN ksh.
15360 $as_unset ENV MAIL MAILPATH
15361 PS1='$ '
15362 PS2='> '
15363 PS4='+ '
15364
15365 # NLS nuisances.
15366 for as_var in \
15367 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
15368 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
15369 LC_TELEPHONE LC_TIME
15370 do
15371 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
15372 eval $as_var=C; export $as_var
15373 else
15374 $as_unset $as_var
15375 fi
15376 done
15377
15378 # Required to use basename.
15379 if expr a : '\(a\)' >/dev/null 2>&1; then
15380 as_expr=expr
15381 else
15382 as_expr=false
15383 fi
15384
15385 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
15386 as_basename=basename
15387 else
15388 as_basename=false
15389 fi
15390
15391
15392 # Name of the executable.
15393 as_me=`$as_basename "$0" ||
15394 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15395 X"$0" : 'X\(//\)$' \| \
15396 X"$0" : 'X\(/\)$' \| \
15397 . : '\(.\)' 2>/dev/null ||
15398 echo X/"$0" |
15399 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
15400 /^X\/\(\/\/\)$/{ s//\1/; q; }
15401 /^X\/\(\/\).*/{ s//\1/; q; }
15402 s/.*/./; q'`
15403
15404
15405 # PATH needs CR, and LINENO needs CR and PATH.
15406 # Avoid depending upon Character Ranges.
15407 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15408 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15409 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15410 as_cr_digits='0123456789'
15411 as_cr_alnum=$as_cr_Letters$as_cr_digits
15412
15413 # The user is always right.
15414 if test "${PATH_SEPARATOR+set}" != set; then
15415 echo "#! /bin/sh" >conf$$.sh
15416 echo "exit 0" >>conf$$.sh
15417 chmod +x conf$$.sh
15418 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15419 PATH_SEPARATOR=';'
15420 else
15421 PATH_SEPARATOR=:
15422 fi
15423 rm -f conf$$.sh
15424 fi
15425
15426
15427 as_lineno_1=$LINENO
15428 as_lineno_2=$LINENO
15429 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
15430 test "x$as_lineno_1" != "x$as_lineno_2" &&
15431 test "x$as_lineno_3" = "x$as_lineno_2" || {
15432 # Find who we are. Look in the path if we contain no path at all
15433 # relative or not.
15434 case $0 in
15435 *[\\/]* ) as_myself=$0 ;;
15436 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15437 for as_dir in $PATH
15438 do
15439 IFS=$as_save_IFS
15440 test -z "$as_dir" && as_dir=.
15441 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15442 done
15443
15444 ;;
15445 esac
15446 # We did not find ourselves, most probably we were run as `sh COMMAND'
15447 # in which case we are not to be found in the path.
15448 if test "x$as_myself" = x; then
15449 as_myself=$0
15450 fi
15451 if test ! -f "$as_myself"; then
15452 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
15453 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
15454 { (exit 1); exit 1; }; }
15455 fi
15456 case $CONFIG_SHELL in
15457 '')
15458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15459 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
15460 do
15461 IFS=$as_save_IFS
15462 test -z "$as_dir" && as_dir=.
15463 for as_base in sh bash ksh sh5; do
15464 case $as_dir in
15465 /*)
15466 if ("$as_dir/$as_base" -c '
15467 as_lineno_1=$LINENO
15468 as_lineno_2=$LINENO
15469 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
15470 test "x$as_lineno_1" != "x$as_lineno_2" &&
15471 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
15472 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
15473 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
15474 CONFIG_SHELL=$as_dir/$as_base
15475 export CONFIG_SHELL
15476 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
15477 fi;;
15478 esac
15479 done
15480 done
15481 ;;
15482 esac
15483
15484 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
15485 # uniformly replaced by the line number. The first 'sed' inserts a
15486 # line-number line before each line; the second 'sed' does the real
15487 # work. The second script uses 'N' to pair each line-number line
15488 # with the numbered line, and appends trailing '-' during
15489 # substitution so that $LINENO is not a special case at line end.
15490 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
15491 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
15492 sed '=' <$as_myself |
15493 sed '
15494 N
15495 s,$,-,
15496 : loop
15497 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
15498 t loop
15499 s,-$,,
15500 s,^['$as_cr_digits']*\n,,
15501 ' >$as_me.lineno &&
15502 chmod +x $as_me.lineno ||
15503 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
15504 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
15505 { (exit 1); exit 1; }; }
15506
15507 # Don't try to exec as it changes $[0], causing all sort of problems
15508 # (the dirname of $[0] is not the place where we might find the
15509 # original and so on. Autoconf is especially sensible to this).
15510 . ./$as_me.lineno
15511 # Exit status is that of the last command.
15512 exit
15513 }
15514
15515
15516 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
15517 *c*,-n*) ECHO_N= ECHO_C='
15518 ' ECHO_T=' ' ;;
15519 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
15520 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
15521 esac
15522
15523 if expr a : '\(a\)' >/dev/null 2>&1; then
15524 as_expr=expr
15525 else
15526 as_expr=false
15527 fi
15528
15529 rm -f conf$$ conf$$.exe conf$$.file
15530 echo >conf$$.file
15531 if ln -s conf$$.file conf$$ 2>/dev/null; then
15532 # We could just check for DJGPP; but this test a) works b) is more generic
15533 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
15534 if test -f conf$$.exe; then
15535 # Don't use ln at all; we don't have any links
15536 as_ln_s='cp -p'
15537 else
15538 as_ln_s='ln -s'
15539 fi
15540 elif ln conf$$.file conf$$ 2>/dev/null; then
15541 as_ln_s=ln
15542 else
15543 as_ln_s='cp -p'
15544 fi
15545 rm -f conf$$ conf$$.exe conf$$.file
15546
15547 if mkdir -p . 2>/dev/null; then
15548 as_mkdir_p=:
15549 else
15550 test -d ./-p && rmdir ./-p
15551 as_mkdir_p=false
15552 fi
15553
15554 as_executable_p="test -f"
15555
15556 # Sed expression to map a string onto a valid CPP name.
15557 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15558
15559 # Sed expression to map a string onto a valid variable name.
15560 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15561
15562
15563 # IFS
15564 # We need space, tab and new line, in precisely that order.
15565 as_nl='
15566 '
15567 IFS=" $as_nl"
15568
15569 # CDPATH.
15570 $as_unset CDPATH
15571
15572 exec 6>&1
15573
15574 # Open the log real soon, to keep \$[0] and so on meaningful, and to
15575 # report actual input values of CONFIG_FILES etc. instead of their
15576 # values after options handling. Logging --version etc. is OK.
15577 exec 5>>config.log
15578 {
15579 echo
15580 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15581 ## Running $as_me. ##
15582 _ASBOX
15583 } >&5
15584 cat >&5 <<_CSEOF
15585
15586 This file was extended by $as_me, which was
15587 generated by GNU Autoconf 2.59. Invocation command line was
15588
15589 CONFIG_FILES = $CONFIG_FILES
15590 CONFIG_HEADERS = $CONFIG_HEADERS
15591 CONFIG_LINKS = $CONFIG_LINKS
15592 CONFIG_COMMANDS = $CONFIG_COMMANDS
15593 $ $0 $@
15594
15595 _CSEOF
15596 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
15597 echo >&5
15598 _ACEOF
15599
15600 # Files that config.status was made for.
15601 if test -n "$ac_config_files"; then
15602 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
15603 fi
15604
15605 if test -n "$ac_config_headers"; then
15606 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
15607 fi
15608
15609 if test -n "$ac_config_links"; then
15610 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
15611 fi
15612
15613 if test -n "$ac_config_commands"; then
15614 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
15615 fi
15616
15617 cat >>$CONFIG_STATUS <<\_ACEOF
15618
15619 ac_cs_usage="\
15620 \`$as_me' instantiates files from templates according to the
15621 current configuration.
15622
15623 Usage: $0 [OPTIONS] [FILE]...
15624
15625 -h, --help print this help, then exit
15626 -V, --version print version number, then exit
15627 -q, --quiet do not print progress messages
15628 -d, --debug don't remove temporary files
15629 --recheck update $as_me by reconfiguring in the same conditions
15630 --file=FILE[:TEMPLATE]
15631 instantiate the configuration file FILE
15632 --header=FILE[:TEMPLATE]
15633 instantiate the configuration header FILE
15634
15635 Configuration files:
15636 $config_files
15637
15638 Configuration headers:
15639 $config_headers
15640
15641 Configuration commands:
15642 $config_commands
15643
15644 Report bugs to <bug-autoconf@gnu.org>."
15645 _ACEOF
15646
15647 cat >>$CONFIG_STATUS <<_ACEOF
15648 ac_cs_version="\\
15649 config.status
15650 configured by $0, generated by GNU Autoconf 2.59,
15651 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
15652
15653 Copyright (C) 2003 Free Software Foundation, Inc.
15654 This config.status script is free software; the Free Software Foundation
15655 gives unlimited permission to copy, distribute and modify it."
15656 srcdir=$srcdir
15657 INSTALL="$INSTALL"
15658 _ACEOF
15659
15660 cat >>$CONFIG_STATUS <<\_ACEOF
15661 # If no file are specified by the user, then we need to provide default
15662 # value. By we need to know if files were specified by the user.
15663 ac_need_defaults=:
15664 while test $# != 0
15665 do
15666 case $1 in
15667 --*=*)
15668 ac_option=`expr "x$1" : 'x\([^=]*\)='`
15669 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
15670 ac_shift=:
15671 ;;
15672 -*)
15673 ac_option=$1
15674 ac_optarg=$2
15675 ac_shift=shift
15676 ;;
15677 *) # This is not an option, so the user has probably given explicit
15678 # arguments.
15679 ac_option=$1
15680 ac_need_defaults=false;;
15681 esac
15682
15683 case $ac_option in
15684 # Handling of the options.
15685 _ACEOF
15686 cat >>$CONFIG_STATUS <<\_ACEOF
15687 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15688 ac_cs_recheck=: ;;
15689 --version | --vers* | -V )
15690 echo "$ac_cs_version"; exit 0 ;;
15691 --he | --h)
15692 # Conflict between --help and --header
15693 { { echo "$as_me:$LINENO: error: ambiguous option: $1
15694 Try \`$0 --help' for more information." >&5
15695 echo "$as_me: error: ambiguous option: $1
15696 Try \`$0 --help' for more information." >&2;}
15697 { (exit 1); exit 1; }; };;
15698 --help | --hel | -h )
15699 echo "$ac_cs_usage"; exit 0 ;;
15700 --debug | --d* | -d )
15701 debug=: ;;
15702 --file | --fil | --fi | --f )
15703 $ac_shift
15704 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
15705 ac_need_defaults=false;;
15706 --header | --heade | --head | --hea )
15707 $ac_shift
15708 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
15709 ac_need_defaults=false;;
15710 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15711 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15712 ac_cs_silent=: ;;
15713
15714 # This is an error.
15715 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
15716 Try \`$0 --help' for more information." >&5
15717 echo "$as_me: error: unrecognized option: $1
15718 Try \`$0 --help' for more information." >&2;}
15719 { (exit 1); exit 1; }; } ;;
15720
15721 *) ac_config_targets="$ac_config_targets $1" ;;
15722
15723 esac
15724 shift
15725 done
15726
15727 ac_configure_extra_args=
15728
15729 if $ac_cs_silent; then
15730 exec 6>/dev/null
15731 ac_configure_extra_args="$ac_configure_extra_args --silent"
15732 fi
15733
15734 _ACEOF
15735 cat >>$CONFIG_STATUS <<_ACEOF
15736 if \$ac_cs_recheck; then
15737 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
15738 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15739 fi
15740
15741 _ACEOF
15742
15743 cat >>$CONFIG_STATUS <<_ACEOF
15744 #
15745 # INIT-COMMANDS section.
15746 #
15747
15748 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15749 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
15750 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
15751 # from automake.
15752 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
15753 # Capture the value of LINGUAS because we need it to compute CATALOGS.
15754 LINGUAS="${LINGUAS-%UNSET%}"
15755
15756
15757 GCC="$GCC"
15758 CC="$CC"
15759 acx_cv_header_stdint="$acx_cv_header_stdint"
15760 acx_cv_type_int8_t="$acx_cv_type_int8_t"
15761 acx_cv_type_int16_t="$acx_cv_type_int16_t"
15762 acx_cv_type_int32_t="$acx_cv_type_int32_t"
15763 acx_cv_type_int64_t="$acx_cv_type_int64_t"
15764 acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
15765 ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
15766 ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
15767 ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
15768 ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
15769 ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
15770 ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
15771 ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
15772 ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
15773
15774
15775
15776 _ACEOF
15777
15778
15779
15780 cat >>$CONFIG_STATUS <<\_ACEOF
15781 for ac_config_target in $ac_config_targets
15782 do
15783 case "$ac_config_target" in
15784 # Handling of arguments.
15785 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15786 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
15787 "bfd-in3.h" ) CONFIG_FILES="$CONFIG_FILES bfd-in3.h:bfd-in2.h" ;;
15788 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
15789 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15790 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
15791 "bfd_stdint.h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS bfd_stdint.h" ;;
15792 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
15793 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
15794 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
15795 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
15796 { (exit 1); exit 1; }; };;
15797 esac
15798 done
15799
15800 # If the user did not use the arguments to specify the items to instantiate,
15801 # then the envvar interface is used. Set only those that are not.
15802 # We use the long form for the default assignment because of an extremely
15803 # bizarre bug on SunOS 4.1.3.
15804 if $ac_need_defaults; then
15805 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15806 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15807 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15808 fi
15809
15810 # Have a temporary directory for convenience. Make it in the build tree
15811 # simply because there is no reason to put it here, and in addition,
15812 # creating and moving files from /tmp can sometimes cause problems.
15813 # Create a temporary directory, and hook for its removal unless debugging.
15814 $debug ||
15815 {
15816 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
15817 trap '{ (exit 1); exit 1; }' 1 2 13 15
15818 }
15819
15820 # Create a (secure) tmp directory for tmp files.
15821
15822 {
15823 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
15824 test -n "$tmp" && test -d "$tmp"
15825 } ||
15826 {
15827 tmp=./confstat$$-$RANDOM
15828 (umask 077 && mkdir $tmp)
15829 } ||
15830 {
15831 echo "$me: cannot create a temporary directory in ." >&2
15832 { (exit 1); exit 1; }
15833 }
15834
15835 _ACEOF
15836
15837 cat >>$CONFIG_STATUS <<_ACEOF
15838
15839 #
15840 # CONFIG_FILES section.
15841 #
15842
15843 # No need to generate the scripts if there are no CONFIG_FILES.
15844 # This happens for instance when ./config.status config.h
15845 if test -n "\$CONFIG_FILES"; then
15846 # Protect against being on the right side of a sed subst in config.status.
15847 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
15848 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
15849 s,@SHELL@,$SHELL,;t t
15850 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
15851 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
15852 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
15853 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
15854 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
15855 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
15856 s,@exec_prefix@,$exec_prefix,;t t
15857 s,@prefix@,$prefix,;t t
15858 s,@program_transform_name@,$program_transform_name,;t t
15859 s,@bindir@,$bindir,;t t
15860 s,@sbindir@,$sbindir,;t t
15861 s,@libexecdir@,$libexecdir,;t t
15862 s,@datadir@,$datadir,;t t
15863 s,@sysconfdir@,$sysconfdir,;t t
15864 s,@sharedstatedir@,$sharedstatedir,;t t
15865 s,@localstatedir@,$localstatedir,;t t
15866 s,@libdir@,$libdir,;t t
15867 s,@includedir@,$includedir,;t t
15868 s,@oldincludedir@,$oldincludedir,;t t
15869 s,@infodir@,$infodir,;t t
15870 s,@mandir@,$mandir,;t t
15871 s,@build_alias@,$build_alias,;t t
15872 s,@host_alias@,$host_alias,;t t
15873 s,@target_alias@,$target_alias,;t t
15874 s,@DEFS@,$DEFS,;t t
15875 s,@ECHO_C@,$ECHO_C,;t t
15876 s,@ECHO_N@,$ECHO_N,;t t
15877 s,@ECHO_T@,$ECHO_T,;t t
15878 s,@LIBS@,$LIBS,;t t
15879 s,@build@,$build,;t t
15880 s,@build_cpu@,$build_cpu,;t t
15881 s,@build_vendor@,$build_vendor,;t t
15882 s,@build_os@,$build_os,;t t
15883 s,@host@,$host,;t t
15884 s,@host_cpu@,$host_cpu,;t t
15885 s,@host_vendor@,$host_vendor,;t t
15886 s,@host_os@,$host_os,;t t
15887 s,@target@,$target,;t t
15888 s,@target_cpu@,$target_cpu,;t t
15889 s,@target_vendor@,$target_vendor,;t t
15890 s,@target_os@,$target_os,;t t
15891 s,@CC@,$CC,;t t
15892 s,@CFLAGS@,$CFLAGS,;t t
15893 s,@LDFLAGS@,$LDFLAGS,;t t
15894 s,@CPPFLAGS@,$CPPFLAGS,;t t
15895 s,@ac_ct_CC@,$ac_ct_CC,;t t
15896 s,@EXEEXT@,$EXEEXT,;t t
15897 s,@OBJEXT@,$OBJEXT,;t t
15898 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
15899 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
15900 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
15901 s,@CYGPATH_W@,$CYGPATH_W,;t t
15902 s,@PACKAGE@,$PACKAGE,;t t
15903 s,@VERSION@,$VERSION,;t t
15904 s,@ACLOCAL@,$ACLOCAL,;t t
15905 s,@AUTOCONF@,$AUTOCONF,;t t
15906 s,@AUTOMAKE@,$AUTOMAKE,;t t
15907 s,@AUTOHEADER@,$AUTOHEADER,;t t
15908 s,@MAKEINFO@,$MAKEINFO,;t t
15909 s,@install_sh@,$install_sh,;t t
15910 s,@STRIP@,$STRIP,;t t
15911 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
15912 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
15913 s,@mkdir_p@,$mkdir_p,;t t
15914 s,@AWK@,$AWK,;t t
15915 s,@SET_MAKE@,$SET_MAKE,;t t
15916 s,@am__leading_dot@,$am__leading_dot,;t t
15917 s,@AMTAR@,$AMTAR,;t t
15918 s,@am__tar@,$am__tar,;t t
15919 s,@am__untar@,$am__untar,;t t
15920 s,@DEPDIR@,$DEPDIR,;t t
15921 s,@am__include@,$am__include,;t t
15922 s,@am__quote@,$am__quote,;t t
15923 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
15924 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
15925 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
15926 s,@CCDEPMODE@,$CCDEPMODE,;t t
15927 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
15928 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
15929 s,@AR@,$AR,;t t
15930 s,@ac_ct_AR@,$ac_ct_AR,;t t
15931 s,@RANLIB@,$RANLIB,;t t
15932 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
15933 s,@LN_S@,$LN_S,;t t
15934 s,@LIBTOOL@,$LIBTOOL,;t t
15935 s,@PKGVERSION@,$PKGVERSION,;t t
15936 s,@REPORT_BUGS_TO@,$REPORT_BUGS_TO,;t t
15937 s,@REPORT_BUGS_TEXI@,$REPORT_BUGS_TEXI,;t t
15938 s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
15939 s,@NO_WERROR@,$NO_WERROR,;t t
15940 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
15941 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
15942 s,@MAINT@,$MAINT,;t t
15943 s,@GENINSRC_NEVER_TRUE@,$GENINSRC_NEVER_TRUE,;t t
15944 s,@GENINSRC_NEVER_FALSE@,$GENINSRC_NEVER_FALSE,;t t
15945 s,@INSTALL_LIBBFD_TRUE@,$INSTALL_LIBBFD_TRUE,;t t
15946 s,@INSTALL_LIBBFD_FALSE@,$INSTALL_LIBBFD_FALSE,;t t
15947 s,@host_noncanonical@,$host_noncanonical,;t t
15948 s,@target_noncanonical@,$target_noncanonical,;t t
15949 s,@bfdlibdir@,$bfdlibdir,;t t
15950 s,@bfdincludedir@,$bfdincludedir,;t t
15951 s,@USE_NLS@,$USE_NLS,;t t
15952 s,@LIBINTL@,$LIBINTL,;t t
15953 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
15954 s,@INCINTL@,$INCINTL,;t t
15955 s,@XGETTEXT@,$XGETTEXT,;t t
15956 s,@GMSGFMT@,$GMSGFMT,;t t
15957 s,@POSUB@,$POSUB,;t t
15958 s,@CATALOGS@,$CATALOGS,;t t
15959 s,@DATADIRNAME@,$DATADIRNAME,;t t
15960 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
15961 s,@GENCAT@,$GENCAT,;t t
15962 s,@CATOBJEXT@,$CATOBJEXT,;t t
15963 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
15964 s,@MSGFMT@,$MSGFMT,;t t
15965 s,@MSGMERGE@,$MSGMERGE,;t t
15966 s,@HDEFINES@,$HDEFINES,;t t
15967 s,@CPP@,$CPP,;t t
15968 s,@EGREP@,$EGREP,;t t
15969 s,@BFD_HOST_64BIT_LONG@,$BFD_HOST_64BIT_LONG,;t t
15970 s,@BFD_HOST_LONG_LONG@,$BFD_HOST_LONG_LONG,;t t
15971 s,@BFD_HOST_64_BIT_DEFINED@,$BFD_HOST_64_BIT_DEFINED,;t t
15972 s,@BFD_HOST_64_BIT@,$BFD_HOST_64_BIT,;t t
15973 s,@BFD_HOST_U_64_BIT@,$BFD_HOST_U_64_BIT,;t t
15974 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
15975 s,@EXEEXT_FOR_BUILD@,$EXEEXT_FOR_BUILD,;t t
15976 s,@COREFILE@,$COREFILE,;t t
15977 s,@COREFLAG@,$COREFLAG,;t t
15978 s,@WIN32LDFLAGS@,$WIN32LDFLAGS,;t t
15979 s,@WIN32LIBADD@,$WIN32LIBADD,;t t
15980 s,@TDEFINES@,$TDEFINES,;t t
15981 s,@wordsize@,$wordsize,;t t
15982 s,@bfd64_libs@,$bfd64_libs,;t t
15983 s,@all_backends@,$all_backends,;t t
15984 s,@bfd_backends@,$bfd_backends,;t t
15985 s,@bfd_machines@,$bfd_machines,;t t
15986 s,@bfd_default_target_size@,$bfd_default_target_size,;t t
15987 s,@bfd_file_ptr@,$bfd_file_ptr,;t t
15988 s,@bfd_ufile_ptr@,$bfd_ufile_ptr,;t t
15989 s,@tdefaults@,$tdefaults,;t t
15990 s,@datarootdir@,$datarootdir,;t t
15991 s,@docdir@,$docdir,;t t
15992 s,@htmldir@,$htmldir,;t t
15993 s,@LIBOBJS@,$LIBOBJS,;t t
15994 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
15995 CEOF
15996
15997 _ACEOF
15998
15999 cat >>$CONFIG_STATUS <<\_ACEOF
16000 # Split the substitutions into bite-sized pieces for seds with
16001 # small command number limits, like on Digital OSF/1 and HP-UX.
16002 ac_max_sed_lines=48
16003 ac_sed_frag=1 # Number of current file.
16004 ac_beg=1 # First line for current file.
16005 ac_end=$ac_max_sed_lines # Line after last line for current file.
16006 ac_more_lines=:
16007 ac_sed_cmds=
16008 while $ac_more_lines; do
16009 if test $ac_beg -gt 1; then
16010 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
16011 else
16012 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
16013 fi
16014 if test ! -s $tmp/subs.frag; then
16015 ac_more_lines=false
16016 else
16017 # The purpose of the label and of the branching condition is to
16018 # speed up the sed processing (if there are no `@' at all, there
16019 # is no need to browse any of the substitutions).
16020 # These are the two extra sed commands mentioned above.
16021 (echo ':t
16022 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
16023 if test -z "$ac_sed_cmds"; then
16024 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
16025 else
16026 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
16027 fi
16028 ac_sed_frag=`expr $ac_sed_frag + 1`
16029 ac_beg=$ac_end
16030 ac_end=`expr $ac_end + $ac_max_sed_lines`
16031 fi
16032 done
16033 if test -z "$ac_sed_cmds"; then
16034 ac_sed_cmds=cat
16035 fi
16036 fi # test -n "$CONFIG_FILES"
16037
16038 _ACEOF
16039 cat >>$CONFIG_STATUS <<\_ACEOF
16040 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
16041 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16042 case $ac_file in
16043 - | *:- | *:-:* ) # input from stdin
16044 cat >$tmp/stdin
16045 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16046 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16047 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16048 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16049 * ) ac_file_in=$ac_file.in ;;
16050 esac
16051
16052 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
16053 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
16054 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16055 X"$ac_file" : 'X\(//\)[^/]' \| \
16056 X"$ac_file" : 'X\(//\)$' \| \
16057 X"$ac_file" : 'X\(/\)' \| \
16058 . : '\(.\)' 2>/dev/null ||
16059 echo X"$ac_file" |
16060 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16061 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16062 /^X\(\/\/\)$/{ s//\1/; q; }
16063 /^X\(\/\).*/{ s//\1/; q; }
16064 s/.*/./; q'`
16065 { if $as_mkdir_p; then
16066 mkdir -p "$ac_dir"
16067 else
16068 as_dir="$ac_dir"
16069 as_dirs=
16070 while test ! -d "$as_dir"; do
16071 as_dirs="$as_dir $as_dirs"
16072 as_dir=`(dirname "$as_dir") 2>/dev/null ||
16073 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16074 X"$as_dir" : 'X\(//\)[^/]' \| \
16075 X"$as_dir" : 'X\(//\)$' \| \
16076 X"$as_dir" : 'X\(/\)' \| \
16077 . : '\(.\)' 2>/dev/null ||
16078 echo X"$as_dir" |
16079 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16080 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16081 /^X\(\/\/\)$/{ s//\1/; q; }
16082 /^X\(\/\).*/{ s//\1/; q; }
16083 s/.*/./; q'`
16084 done
16085 test ! -n "$as_dirs" || mkdir $as_dirs
16086 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16087 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16088 { (exit 1); exit 1; }; }; }
16089
16090 ac_builddir=.
16091
16092 if test "$ac_dir" != .; then
16093 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16094 # A "../" for each directory in $ac_dir_suffix.
16095 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
16096 else
16097 ac_dir_suffix= ac_top_builddir=
16098 fi
16099
16100 case $srcdir in
16101 .) # No --srcdir option. We are building in place.
16102 ac_srcdir=.
16103 if test -z "$ac_top_builddir"; then
16104 ac_top_srcdir=.
16105 else
16106 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
16107 fi ;;
16108 [\\/]* | ?:[\\/]* ) # Absolute path.
16109 ac_srcdir=$srcdir$ac_dir_suffix;
16110 ac_top_srcdir=$srcdir ;;
16111 *) # Relative path.
16112 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
16113 ac_top_srcdir=$ac_top_builddir$srcdir ;;
16114 esac
16115
16116 # Do not use `cd foo && pwd` to compute absolute paths, because
16117 # the directories may not exist.
16118 case `pwd` in
16119 .) ac_abs_builddir="$ac_dir";;
16120 *)
16121 case "$ac_dir" in
16122 .) ac_abs_builddir=`pwd`;;
16123 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
16124 *) ac_abs_builddir=`pwd`/"$ac_dir";;
16125 esac;;
16126 esac
16127 case $ac_abs_builddir in
16128 .) ac_abs_top_builddir=${ac_top_builddir}.;;
16129 *)
16130 case ${ac_top_builddir}. in
16131 .) ac_abs_top_builddir=$ac_abs_builddir;;
16132 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
16133 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
16134 esac;;
16135 esac
16136 case $ac_abs_builddir in
16137 .) ac_abs_srcdir=$ac_srcdir;;
16138 *)
16139 case $ac_srcdir in
16140 .) ac_abs_srcdir=$ac_abs_builddir;;
16141 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
16142 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
16143 esac;;
16144 esac
16145 case $ac_abs_builddir in
16146 .) ac_abs_top_srcdir=$ac_top_srcdir;;
16147 *)
16148 case $ac_top_srcdir in
16149 .) ac_abs_top_srcdir=$ac_abs_builddir;;
16150 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
16151 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
16152 esac;;
16153 esac
16154
16155
16156 case $INSTALL in
16157 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16158 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
16159 esac
16160
16161 if test x"$ac_file" != x-; then
16162 { echo "$as_me:$LINENO: creating $ac_file" >&5
16163 echo "$as_me: creating $ac_file" >&6;}
16164 rm -f "$ac_file"
16165 fi
16166 # Let's still pretend it is `configure' which instantiates (i.e., don't
16167 # use $as_me), people would be surprised to read:
16168 # /* config.h. Generated by config.status. */
16169 if test x"$ac_file" = x-; then
16170 configure_input=
16171 else
16172 configure_input="$ac_file. "
16173 fi
16174 configure_input=$configure_input"Generated from `echo $ac_file_in |
16175 sed 's,.*/,,'` by configure."
16176
16177 # First look for the input files in the build tree, otherwise in the
16178 # src tree.
16179 ac_file_inputs=`IFS=:
16180 for f in $ac_file_in; do
16181 case $f in
16182 -) echo $tmp/stdin ;;
16183 [\\/$]*)
16184 # Absolute (can't be DOS-style, as IFS=:)
16185 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16186 echo "$as_me: error: cannot find input file: $f" >&2;}
16187 { (exit 1); exit 1; }; }
16188 echo "$f";;
16189 *) # Relative
16190 if test -f "$f"; then
16191 # Build tree
16192 echo "$f"
16193 elif test -f "$srcdir/$f"; then
16194 # Source tree
16195 echo "$srcdir/$f"
16196 else
16197 # /dev/null tree
16198 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16199 echo "$as_me: error: cannot find input file: $f" >&2;}
16200 { (exit 1); exit 1; }; }
16201 fi;;
16202 esac
16203 done` || { (exit 1); exit 1; }
16204 _ACEOF
16205 cat >>$CONFIG_STATUS <<_ACEOF
16206 sed "$ac_vpsub
16207 $extrasub
16208 _ACEOF
16209 cat >>$CONFIG_STATUS <<\_ACEOF
16210 :t
16211 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16212 s,@configure_input@,$configure_input,;t t
16213 s,@srcdir@,$ac_srcdir,;t t
16214 s,@abs_srcdir@,$ac_abs_srcdir,;t t
16215 s,@top_srcdir@,$ac_top_srcdir,;t t
16216 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
16217 s,@builddir@,$ac_builddir,;t t
16218 s,@abs_builddir@,$ac_abs_builddir,;t t
16219 s,@top_builddir@,$ac_top_builddir,;t t
16220 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
16221 s,@INSTALL@,$ac_INSTALL,;t t
16222 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
16223 rm -f $tmp/stdin
16224 if test x"$ac_file" != x-; then
16225 mv $tmp/out $ac_file
16226 else
16227 cat $tmp/out
16228 rm -f $tmp/out
16229 fi
16230
16231 done
16232 _ACEOF
16233 cat >>$CONFIG_STATUS <<\_ACEOF
16234
16235 #
16236 # CONFIG_HEADER section.
16237 #
16238
16239 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
16240 # NAME is the cpp macro being defined and VALUE is the value it is being given.
16241 #
16242 # ac_d sets the value in "#define NAME VALUE" lines.
16243 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
16244 ac_dB='[ ].*$,\1#\2'
16245 ac_dC=' '
16246 ac_dD=',;t'
16247 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
16248 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
16249 ac_uB='$,\1#\2define\3'
16250 ac_uC=' '
16251 ac_uD=',;t'
16252
16253 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
16254 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16255 case $ac_file in
16256 - | *:- | *:-:* ) # input from stdin
16257 cat >$tmp/stdin
16258 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16259 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16260 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16261 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16262 * ) ac_file_in=$ac_file.in ;;
16263 esac
16264
16265 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
16266 echo "$as_me: creating $ac_file" >&6;}
16267
16268 # First look for the input files in the build tree, otherwise in the
16269 # src tree.
16270 ac_file_inputs=`IFS=:
16271 for f in $ac_file_in; do
16272 case $f in
16273 -) echo $tmp/stdin ;;
16274 [\\/$]*)
16275 # Absolute (can't be DOS-style, as IFS=:)
16276 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16277 echo "$as_me: error: cannot find input file: $f" >&2;}
16278 { (exit 1); exit 1; }; }
16279 # Do quote $f, to prevent DOS paths from being IFS'd.
16280 echo "$f";;
16281 *) # Relative
16282 if test -f "$f"; then
16283 # Build tree
16284 echo "$f"
16285 elif test -f "$srcdir/$f"; then
16286 # Source tree
16287 echo "$srcdir/$f"
16288 else
16289 # /dev/null tree
16290 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16291 echo "$as_me: error: cannot find input file: $f" >&2;}
16292 { (exit 1); exit 1; }; }
16293 fi;;
16294 esac
16295 done` || { (exit 1); exit 1; }
16296 # Remove the trailing spaces.
16297 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
16298
16299 _ACEOF
16300
16301 # Transform confdefs.h into two sed scripts, `conftest.defines' and
16302 # `conftest.undefs', that substitutes the proper values into
16303 # config.h.in to produce config.h. The first handles `#define'
16304 # templates, and the second `#undef' templates.
16305 # And first: Protect against being on the right side of a sed subst in
16306 # config.status. Protect against being in an unquoted here document
16307 # in config.status.
16308 rm -f conftest.defines conftest.undefs
16309 # Using a here document instead of a string reduces the quoting nightmare.
16310 # Putting comments in sed scripts is not portable.
16311 #
16312 # `end' is used to avoid that the second main sed command (meant for
16313 # 0-ary CPP macros) applies to n-ary macro definitions.
16314 # See the Autoconf documentation for `clear'.
16315 cat >confdef2sed.sed <<\_ACEOF
16316 s/[\\&,]/\\&/g
16317 s,[\\$`],\\&,g
16318 t clear
16319 : clear
16320 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
16321 t end
16322 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
16323 : end
16324 _ACEOF
16325 # If some macros were called several times there might be several times
16326 # the same #defines, which is useless. Nevertheless, we may not want to
16327 # sort them, since we want the *last* AC-DEFINE to be honored.
16328 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
16329 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
16330 rm -f confdef2sed.sed
16331
16332 # This sed command replaces #undef with comments. This is necessary, for
16333 # example, in the case of _POSIX_SOURCE, which is predefined and required
16334 # on some systems where configure will not decide to define it.
16335 cat >>conftest.undefs <<\_ACEOF
16336 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
16337 _ACEOF
16338
16339 # Break up conftest.defines because some shells have a limit on the size
16340 # of here documents, and old seds have small limits too (100 cmds).
16341 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
16342 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
16343 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
16344 echo ' :' >>$CONFIG_STATUS
16345 rm -f conftest.tail
16346 while grep . conftest.defines >/dev/null
16347 do
16348 # Write a limited-size here document to $tmp/defines.sed.
16349 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
16350 # Speed up: don't consider the non `#define' lines.
16351 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
16352 # Work around the forget-to-reset-the-flag bug.
16353 echo 't clr' >>$CONFIG_STATUS
16354 echo ': clr' >>$CONFIG_STATUS
16355 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
16356 echo 'CEOF
16357 sed -f $tmp/defines.sed $tmp/in >$tmp/out
16358 rm -f $tmp/in
16359 mv $tmp/out $tmp/in
16360 ' >>$CONFIG_STATUS
16361 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
16362 rm -f conftest.defines
16363 mv conftest.tail conftest.defines
16364 done
16365 rm -f conftest.defines
16366 echo ' fi # grep' >>$CONFIG_STATUS
16367 echo >>$CONFIG_STATUS
16368
16369 # Break up conftest.undefs because some shells have a limit on the size
16370 # of here documents, and old seds have small limits too (100 cmds).
16371 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
16372 rm -f conftest.tail
16373 while grep . conftest.undefs >/dev/null
16374 do
16375 # Write a limited-size here document to $tmp/undefs.sed.
16376 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
16377 # Speed up: don't consider the non `#undef'
16378 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
16379 # Work around the forget-to-reset-the-flag bug.
16380 echo 't clr' >>$CONFIG_STATUS
16381 echo ': clr' >>$CONFIG_STATUS
16382 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
16383 echo 'CEOF
16384 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
16385 rm -f $tmp/in
16386 mv $tmp/out $tmp/in
16387 ' >>$CONFIG_STATUS
16388 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
16389 rm -f conftest.undefs
16390 mv conftest.tail conftest.undefs
16391 done
16392 rm -f conftest.undefs
16393
16394 cat >>$CONFIG_STATUS <<\_ACEOF
16395 # Let's still pretend it is `configure' which instantiates (i.e., don't
16396 # use $as_me), people would be surprised to read:
16397 # /* config.h. Generated by config.status. */
16398 if test x"$ac_file" = x-; then
16399 echo "/* Generated by configure. */" >$tmp/config.h
16400 else
16401 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
16402 fi
16403 cat $tmp/in >>$tmp/config.h
16404 rm -f $tmp/in
16405 if test x"$ac_file" != x-; then
16406 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
16407 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
16408 echo "$as_me: $ac_file is unchanged" >&6;}
16409 else
16410 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
16411 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16412 X"$ac_file" : 'X\(//\)[^/]' \| \
16413 X"$ac_file" : 'X\(//\)$' \| \
16414 X"$ac_file" : 'X\(/\)' \| \
16415 . : '\(.\)' 2>/dev/null ||
16416 echo X"$ac_file" |
16417 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16418 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16419 /^X\(\/\/\)$/{ s//\1/; q; }
16420 /^X\(\/\).*/{ s//\1/; q; }
16421 s/.*/./; q'`
16422 { if $as_mkdir_p; then
16423 mkdir -p "$ac_dir"
16424 else
16425 as_dir="$ac_dir"
16426 as_dirs=
16427 while test ! -d "$as_dir"; do
16428 as_dirs="$as_dir $as_dirs"
16429 as_dir=`(dirname "$as_dir") 2>/dev/null ||
16430 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16431 X"$as_dir" : 'X\(//\)[^/]' \| \
16432 X"$as_dir" : 'X\(//\)$' \| \
16433 X"$as_dir" : 'X\(/\)' \| \
16434 . : '\(.\)' 2>/dev/null ||
16435 echo X"$as_dir" |
16436 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16437 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16438 /^X\(\/\/\)$/{ s//\1/; q; }
16439 /^X\(\/\).*/{ s//\1/; q; }
16440 s/.*/./; q'`
16441 done
16442 test ! -n "$as_dirs" || mkdir $as_dirs
16443 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16444 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16445 { (exit 1); exit 1; }; }; }
16446
16447 rm -f $ac_file
16448 mv $tmp/config.h $ac_file
16449 fi
16450 else
16451 cat $tmp/config.h
16452 rm -f $tmp/config.h
16453 fi
16454 # Compute $ac_file's index in $config_headers.
16455 _am_stamp_count=1
16456 for _am_header in $config_headers :; do
16457 case $_am_header in
16458 $ac_file | $ac_file:* )
16459 break ;;
16460 * )
16461 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16462 esac
16463 done
16464 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
16465 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16466 X$ac_file : 'X\(//\)[^/]' \| \
16467 X$ac_file : 'X\(//\)$' \| \
16468 X$ac_file : 'X\(/\)' \| \
16469 . : '\(.\)' 2>/dev/null ||
16470 echo X$ac_file |
16471 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16472 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16473 /^X\(\/\/\)$/{ s//\1/; q; }
16474 /^X\(\/\).*/{ s//\1/; q; }
16475 s/.*/./; q'`/stamp-h$_am_stamp_count
16476 done
16477 _ACEOF
16478 cat >>$CONFIG_STATUS <<\_ACEOF
16479
16480 #
16481 # CONFIG_COMMANDS section.
16482 #
16483 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
16484 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
16485 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
16486 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
16487 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16488 X"$ac_dest" : 'X\(//\)[^/]' \| \
16489 X"$ac_dest" : 'X\(//\)$' \| \
16490 X"$ac_dest" : 'X\(/\)' \| \
16491 . : '\(.\)' 2>/dev/null ||
16492 echo X"$ac_dest" |
16493 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16494 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16495 /^X\(\/\/\)$/{ s//\1/; q; }
16496 /^X\(\/\).*/{ s//\1/; q; }
16497 s/.*/./; q'`
16498 { if $as_mkdir_p; then
16499 mkdir -p "$ac_dir"
16500 else
16501 as_dir="$ac_dir"
16502 as_dirs=
16503 while test ! -d "$as_dir"; do
16504 as_dirs="$as_dir $as_dirs"
16505 as_dir=`(dirname "$as_dir") 2>/dev/null ||
16506 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16507 X"$as_dir" : 'X\(//\)[^/]' \| \
16508 X"$as_dir" : 'X\(//\)$' \| \
16509 X"$as_dir" : 'X\(/\)' \| \
16510 . : '\(.\)' 2>/dev/null ||
16511 echo X"$as_dir" |
16512 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16513 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16514 /^X\(\/\/\)$/{ s//\1/; q; }
16515 /^X\(\/\).*/{ s//\1/; q; }
16516 s/.*/./; q'`
16517 done
16518 test ! -n "$as_dirs" || mkdir $as_dirs
16519 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16520 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16521 { (exit 1); exit 1; }; }; }
16522
16523 ac_builddir=.
16524
16525 if test "$ac_dir" != .; then
16526 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16527 # A "../" for each directory in $ac_dir_suffix.
16528 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
16529 else
16530 ac_dir_suffix= ac_top_builddir=
16531 fi
16532
16533 case $srcdir in
16534 .) # No --srcdir option. We are building in place.
16535 ac_srcdir=.
16536 if test -z "$ac_top_builddir"; then
16537 ac_top_srcdir=.
16538 else
16539 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
16540 fi ;;
16541 [\\/]* | ?:[\\/]* ) # Absolute path.
16542 ac_srcdir=$srcdir$ac_dir_suffix;
16543 ac_top_srcdir=$srcdir ;;
16544 *) # Relative path.
16545 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
16546 ac_top_srcdir=$ac_top_builddir$srcdir ;;
16547 esac
16548
16549 # Do not use `cd foo && pwd` to compute absolute paths, because
16550 # the directories may not exist.
16551 case `pwd` in
16552 .) ac_abs_builddir="$ac_dir";;
16553 *)
16554 case "$ac_dir" in
16555 .) ac_abs_builddir=`pwd`;;
16556 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
16557 *) ac_abs_builddir=`pwd`/"$ac_dir";;
16558 esac;;
16559 esac
16560 case $ac_abs_builddir in
16561 .) ac_abs_top_builddir=${ac_top_builddir}.;;
16562 *)
16563 case ${ac_top_builddir}. in
16564 .) ac_abs_top_builddir=$ac_abs_builddir;;
16565 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
16566 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
16567 esac;;
16568 esac
16569 case $ac_abs_builddir in
16570 .) ac_abs_srcdir=$ac_srcdir;;
16571 *)
16572 case $ac_srcdir in
16573 .) ac_abs_srcdir=$ac_abs_builddir;;
16574 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
16575 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
16576 esac;;
16577 esac
16578 case $ac_abs_builddir in
16579 .) ac_abs_top_srcdir=$ac_top_srcdir;;
16580 *)
16581 case $ac_top_srcdir in
16582 .) ac_abs_top_srcdir=$ac_abs_builddir;;
16583 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
16584 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
16585 esac;;
16586 esac
16587
16588
16589 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
16590 echo "$as_me: executing $ac_dest commands" >&6;}
16591 case $ac_dest in
16592 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
16593 # Strip MF so we end up with the name of the file.
16594 mf=`echo "$mf" | sed -e 's/:.*$//'`
16595 # Check whether this is an Automake generated Makefile or not.
16596 # We used to match only the files named `Makefile.in', but
16597 # some people rename them; so instead we look at the file content.
16598 # Grep'ing the first line is not enough: some people post-process
16599 # each Makefile.in and add a new line on top of each file to say so.
16600 # So let's grep whole file.
16601 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
16602 dirpart=`(dirname "$mf") 2>/dev/null ||
16603 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16604 X"$mf" : 'X\(//\)[^/]' \| \
16605 X"$mf" : 'X\(//\)$' \| \
16606 X"$mf" : 'X\(/\)' \| \
16607 . : '\(.\)' 2>/dev/null ||
16608 echo X"$mf" |
16609 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16610 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16611 /^X\(\/\/\)$/{ s//\1/; q; }
16612 /^X\(\/\).*/{ s//\1/; q; }
16613 s/.*/./; q'`
16614 else
16615 continue
16616 fi
16617 # Extract the definition of DEPDIR, am__include, and am__quote
16618 # from the Makefile without running `make'.
16619 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16620 test -z "$DEPDIR" && continue
16621 am__include=`sed -n 's/^am__include = //p' < "$mf"`
16622 test -z "am__include" && continue
16623 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16624 # When using ansi2knr, U may be empty or an underscore; expand it
16625 U=`sed -n 's/^U = //p' < "$mf"`
16626 # Find all dependency output files, they are included files with
16627 # $(DEPDIR) in their names. We invoke sed twice because it is the
16628 # simplest approach to changing $(DEPDIR) to its actual value in the
16629 # expansion.
16630 for file in `sed -n "
16631 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16632 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
16633 # Make sure the directory exists.
16634 test -f "$dirpart/$file" && continue
16635 fdir=`(dirname "$file") 2>/dev/null ||
16636 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16637 X"$file" : 'X\(//\)[^/]' \| \
16638 X"$file" : 'X\(//\)$' \| \
16639 X"$file" : 'X\(/\)' \| \
16640 . : '\(.\)' 2>/dev/null ||
16641 echo X"$file" |
16642 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16643 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16644 /^X\(\/\/\)$/{ s//\1/; q; }
16645 /^X\(\/\).*/{ s//\1/; q; }
16646 s/.*/./; q'`
16647 { if $as_mkdir_p; then
16648 mkdir -p $dirpart/$fdir
16649 else
16650 as_dir=$dirpart/$fdir
16651 as_dirs=
16652 while test ! -d "$as_dir"; do
16653 as_dirs="$as_dir $as_dirs"
16654 as_dir=`(dirname "$as_dir") 2>/dev/null ||
16655 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16656 X"$as_dir" : 'X\(//\)[^/]' \| \
16657 X"$as_dir" : 'X\(//\)$' \| \
16658 X"$as_dir" : 'X\(/\)' \| \
16659 . : '\(.\)' 2>/dev/null ||
16660 echo X"$as_dir" |
16661 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16662 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16663 /^X\(\/\/\)$/{ s//\1/; q; }
16664 /^X\(\/\).*/{ s//\1/; q; }
16665 s/.*/./; q'`
16666 done
16667 test ! -n "$as_dirs" || mkdir $as_dirs
16668 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
16669 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
16670 { (exit 1); exit 1; }; }; }
16671
16672 # echo "creating $dirpart/$file"
16673 echo '# dummy' > "$dirpart/$file"
16674 done
16675 done
16676 ;;
16677 default-1 )
16678 for ac_file in $CONFIG_FILES; do
16679 # Support "outfile[:infile[:infile...]]"
16680 case "$ac_file" in
16681 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16682 esac
16683 # PO directories have a Makefile.in generated from Makefile.in.in.
16684 case "$ac_file" in */Makefile.in)
16685 # Adjust a relative srcdir.
16686 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
16687 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
16688 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
16689 # In autoconf-2.13 it is called $ac_given_srcdir.
16690 # In autoconf-2.50 it is called $srcdir.
16691 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
16692 case "$ac_given_srcdir" in
16693 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
16694 /*) top_srcdir="$ac_given_srcdir" ;;
16695 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
16696 esac
16697 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
16698 rm -f "$ac_dir/POTFILES"
16699 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
16700 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
16701 POMAKEFILEDEPS="POTFILES.in"
16702 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
16703 # on $ac_dir but don't depend on user-specified configuration
16704 # parameters.
16705 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
16706 # The LINGUAS file contains the set of available languages.
16707 if test -n "$OBSOLETE_ALL_LINGUAS"; then
16708 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
16709 fi
16710 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
16711 # Hide the ALL_LINGUAS assigment from automake.
16712 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
16713 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
16714 else
16715 # The set of available languages was given in configure.in.
16716 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
16717 fi
16718 case "$ac_given_srcdir" in
16719 .) srcdirpre= ;;
16720 *) srcdirpre='$(srcdir)/' ;;
16721 esac
16722 POFILES=
16723 GMOFILES=
16724 UPDATEPOFILES=
16725 DUMMYPOFILES=
16726 for lang in $ALL_LINGUAS; do
16727 POFILES="$POFILES $srcdirpre$lang.po"
16728 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
16729 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
16730 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
16731 done
16732 # CATALOGS depends on both $ac_dir and the user's LINGUAS
16733 # environment variable.
16734 INST_LINGUAS=
16735 if test -n "$ALL_LINGUAS"; then
16736 for presentlang in $ALL_LINGUAS; do
16737 useit=no
16738 if test "%UNSET%" != "$LINGUAS"; then
16739 desiredlanguages="$LINGUAS"
16740 else
16741 desiredlanguages="$ALL_LINGUAS"
16742 fi
16743 for desiredlang in $desiredlanguages; do
16744 # Use the presentlang catalog if desiredlang is
16745 # a. equal to presentlang, or
16746 # b. a variant of presentlang (because in this case,
16747 # presentlang can be used as a fallback for messages
16748 # which are not translated in the desiredlang catalog).
16749 case "$desiredlang" in
16750 "$presentlang"*) useit=yes;;
16751 esac
16752 done
16753 if test $useit = yes; then
16754 INST_LINGUAS="$INST_LINGUAS $presentlang"
16755 fi
16756 done
16757 fi
16758 CATALOGS=
16759 if test -n "$INST_LINGUAS"; then
16760 for lang in $INST_LINGUAS; do
16761 CATALOGS="$CATALOGS $lang.gmo"
16762 done
16763 fi
16764 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
16765 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
16766 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
16767 if test -f "$f"; then
16768 case "$f" in
16769 *.orig | *.bak | *~) ;;
16770 *) cat "$f" >> "$ac_dir/Makefile" ;;
16771 esac
16772 fi
16773 done
16774 fi
16775 ;;
16776 esac
16777 done ;;
16778 bfd_stdint.h )
16779 if test "$GCC" = yes; then
16780 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
16781 else
16782 echo "/* generated for $CC */" > tmp-stdint.h
16783 fi
16784
16785 sed 's/^ *//' >> tmp-stdint.h <<EOF
16786
16787 #ifndef GCC_GENERATED_STDINT_H
16788 #define GCC_GENERATED_STDINT_H 1
16789
16790 #include <sys/types.h>
16791 EOF
16792
16793 if test "$acx_cv_header_stdint" != stdint.h; then
16794 echo "#include <stddef.h>" >> tmp-stdint.h
16795 fi
16796 if test "$acx_cv_header_stdint" != stddef.h; then
16797 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
16798 fi
16799
16800 sed 's/^ *//' >> tmp-stdint.h <<EOF
16801 /* glibc uses these symbols as guards to prevent redefinitions. */
16802 #ifdef __int8_t_defined
16803 #define _INT8_T
16804 #define _INT16_T
16805 #define _INT32_T
16806 #endif
16807 #ifdef __uint32_t_defined
16808 #define _UINT32_T
16809 #endif
16810
16811 EOF
16812
16813 # ----------------- done header, emit basic int types -------------
16814 if test "$acx_cv_header_stdint" = stddef.h; then
16815 sed 's/^ *//' >> tmp-stdint.h <<EOF
16816
16817 #ifndef _UINT8_T
16818 #define _UINT8_T
16819 #ifndef __uint8_t_defined
16820 #define __uint8_t_defined
16821 typedef unsigned $acx_cv_type_int8_t uint8_t;
16822 #endif
16823 #endif
16824
16825 #ifndef _UINT16_T
16826 #define _UINT16_T
16827 #ifndef __uint16_t_defined
16828 #define __uint16_t_defined
16829 typedef unsigned $acx_cv_type_int16_t uint16_t;
16830 #endif
16831 #endif
16832
16833 #ifndef _UINT32_T
16834 #define _UINT32_T
16835 #ifndef __uint32_t_defined
16836 #define __uint32_t_defined
16837 typedef unsigned $acx_cv_type_int32_t uint32_t;
16838 #endif
16839 #endif
16840
16841 #ifndef _INT8_T
16842 #define _INT8_T
16843 #ifndef __int8_t_defined
16844 #define __int8_t_defined
16845 typedef $acx_cv_type_int8_t int8_t;
16846 #endif
16847 #endif
16848
16849 #ifndef _INT16_T
16850 #define _INT16_T
16851 #ifndef __int16_t_defined
16852 #define __int16_t_defined
16853 typedef $acx_cv_type_int16_t int16_t;
16854 #endif
16855 #endif
16856
16857 #ifndef _INT32_T
16858 #define _INT32_T
16859 #ifndef __int32_t_defined
16860 #define __int32_t_defined
16861 typedef $acx_cv_type_int32_t int32_t;
16862 #endif
16863 #endif
16864 EOF
16865 elif test "$ac_cv_type_u_int32_t" = yes; then
16866 sed 's/^ *//' >> tmp-stdint.h <<EOF
16867
16868 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
16869 #ifndef _INT8_T
16870 #define _INT8_T
16871 #endif
16872 #ifndef _INT16_T
16873 #define _INT16_T
16874 #endif
16875 #ifndef _INT32_T
16876 #define _INT32_T
16877 #endif
16878
16879 #ifndef _UINT8_T
16880 #define _UINT8_T
16881 #ifndef __uint8_t_defined
16882 #define __uint8_t_defined
16883 typedef u_int8_t uint8_t;
16884 #endif
16885 #endif
16886
16887 #ifndef _UINT16_T
16888 #define _UINT16_T
16889 #ifndef __uint16_t_defined
16890 #define __uint16_t_defined
16891 typedef u_int16_t uint16_t;
16892 #endif
16893 #endif
16894
16895 #ifndef _UINT32_T
16896 #define _UINT32_T
16897 #ifndef __uint32_t_defined
16898 #define __uint32_t_defined
16899 typedef u_int32_t uint32_t;
16900 #endif
16901 #endif
16902 EOF
16903 else
16904 sed 's/^ *//' >> tmp-stdint.h <<EOF
16905
16906 /* Some systems have guard macros to prevent redefinitions, define them. */
16907 #ifndef _INT8_T
16908 #define _INT8_T
16909 #endif
16910 #ifndef _INT16_T
16911 #define _INT16_T
16912 #endif
16913 #ifndef _INT32_T
16914 #define _INT32_T
16915 #endif
16916 #ifndef _UINT8_T
16917 #define _UINT8_T
16918 #endif
16919 #ifndef _UINT16_T
16920 #define _UINT16_T
16921 #endif
16922 #ifndef _UINT32_T
16923 #define _UINT32_T
16924 #endif
16925 EOF
16926 fi
16927
16928 # ------------- done basic int types, emit int64_t types ------------
16929 if test "$ac_cv_type_uint64_t" = yes; then
16930 sed 's/^ *//' >> tmp-stdint.h <<EOF
16931
16932 /* system headers have good uint64_t and int64_t */
16933 #ifndef _INT64_T
16934 #define _INT64_T
16935 #endif
16936 #ifndef _UINT64_T
16937 #define _UINT64_T
16938 #endif
16939 EOF
16940 elif test "$ac_cv_type_u_int64_t" = yes; then
16941 sed 's/^ *//' >> tmp-stdint.h <<EOF
16942
16943 /* system headers have an u_int64_t (and int64_t) */
16944 #ifndef _INT64_T
16945 #define _INT64_T
16946 #endif
16947 #ifndef _UINT64_T
16948 #define _UINT64_T
16949 #ifndef __uint64_t_defined
16950 #define __uint64_t_defined
16951 typedef u_int64_t uint64_t;
16952 #endif
16953 #endif
16954 EOF
16955 elif test -n "$acx_cv_type_int64_t"; then
16956 sed 's/^ *//' >> tmp-stdint.h <<EOF
16957
16958 /* architecture has a 64-bit type, $acx_cv_type_int64_t */
16959 #ifndef _INT64_T
16960 #define _INT64_T
16961 typedef $acx_cv_type_int64_t int64_t;
16962 #endif
16963 #ifndef _UINT64_T
16964 #define _UINT64_T
16965 #ifndef __uint64_t_defined
16966 #define __uint64_t_defined
16967 typedef unsigned $acx_cv_type_int64_t uint64_t;
16968 #endif
16969 #endif
16970 EOF
16971 else
16972 sed 's/^ *//' >> tmp-stdint.h <<EOF
16973
16974 /* some common heuristics for int64_t, using compiler-specific tests */
16975 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
16976 #ifndef _INT64_T
16977 #define _INT64_T
16978 #ifndef __int64_t_defined
16979 typedef long long int64_t;
16980 #endif
16981 #endif
16982 #ifndef _UINT64_T
16983 #define _UINT64_T
16984 typedef unsigned long long uint64_t;
16985 #endif
16986
16987 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
16988 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
16989 does not implement __extension__. But that compiler doesn't define
16990 __GNUC_MINOR__. */
16991 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
16992 # define __extension__
16993 # endif
16994
16995 # ifndef _INT64_T
16996 # define _INT64_T
16997 __extension__ typedef long long int64_t;
16998 # endif
16999 # ifndef _UINT64_T
17000 # define _UINT64_T
17001 __extension__ typedef unsigned long long uint64_t;
17002 # endif
17003
17004 #elif !defined __STRICT_ANSI__
17005 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
17006
17007 # ifndef _INT64_T
17008 # define _INT64_T
17009 typedef __int64 int64_t;
17010 # endif
17011 # ifndef _UINT64_T
17012 # define _UINT64_T
17013 typedef unsigned __int64 uint64_t;
17014 # endif
17015 # endif /* compiler */
17016
17017 #endif /* ANSI version */
17018 EOF
17019 fi
17020
17021 # ------------- done int64_t types, emit intptr types ------------
17022 if test "$ac_cv_type_uintptr_t" != yes; then
17023 sed 's/^ *//' >> tmp-stdint.h <<EOF
17024
17025 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
17026 #ifndef __uintptr_t_defined
17027 typedef u$acx_cv_type_intptr_t uintptr_t;
17028 #endif
17029 #ifndef __intptr_t_defined
17030 typedef $acx_cv_type_intptr_t intptr_t;
17031 #endif
17032 EOF
17033 fi
17034
17035 # ------------- done intptr types, emit int_least types ------------
17036 if test "$ac_cv_type_int_least32_t" != yes; then
17037 sed 's/^ *//' >> tmp-stdint.h <<EOF
17038
17039 /* Define int_least types */
17040 typedef int8_t int_least8_t;
17041 typedef int16_t int_least16_t;
17042 typedef int32_t int_least32_t;
17043 #ifdef _INT64_T
17044 typedef int64_t int_least64_t;
17045 #endif
17046
17047 typedef uint8_t uint_least8_t;
17048 typedef uint16_t uint_least16_t;
17049 typedef uint32_t uint_least32_t;
17050 #ifdef _UINT64_T
17051 typedef uint64_t uint_least64_t;
17052 #endif
17053 EOF
17054 fi
17055
17056 # ------------- done intptr types, emit int_fast types ------------
17057 if test "$ac_cv_type_int_fast32_t" != yes; then
17058 sed 's/^ *//' >> tmp-stdint.h <<EOF
17059
17060 /* Define int_fast types. short is often slow */
17061 typedef int8_t int_fast8_t;
17062 typedef int int_fast16_t;
17063 typedef int32_t int_fast32_t;
17064 #ifdef _INT64_T
17065 typedef int64_t int_fast64_t;
17066 #endif
17067
17068 typedef uint8_t uint_fast8_t;
17069 typedef unsigned int uint_fast16_t;
17070 typedef uint32_t uint_fast32_t;
17071 #ifdef _UINT64_T
17072 typedef uint64_t uint_fast64_t;
17073 #endif
17074 EOF
17075 fi
17076
17077 if test "$ac_cv_type_uintmax_t" != yes; then
17078 sed 's/^ *//' >> tmp-stdint.h <<EOF
17079
17080 /* Define intmax based on what we found */
17081 #ifdef _INT64_T
17082 typedef int64_t intmax_t;
17083 #else
17084 typedef long intmax_t;
17085 #endif
17086 #ifdef _UINT64_T
17087 typedef uint64_t uintmax_t;
17088 #else
17089 typedef unsigned long uintmax_t;
17090 #endif
17091 EOF
17092 fi
17093
17094 sed 's/^ *//' >> tmp-stdint.h <<EOF
17095
17096 #endif /* GCC_GENERATED_STDINT_H */
17097 EOF
17098
17099 if test -r bfd_stdint.h && cmp -s tmp-stdint.h bfd_stdint.h; then
17100 rm -f tmp-stdint.h
17101 else
17102 mv -f tmp-stdint.h bfd_stdint.h
17103 fi
17104
17105 ;;
17106 default )
17107 case "$srcdir" in
17108 .) srcdirpre= ;;
17109 *) srcdirpre='$(srcdir)/' ;;
17110 esac
17111 POFILES=
17112 GMOFILES=
17113 for lang in dummy $OBSOLETE_ALL_LINGUAS; do
17114 if test $lang != dummy; then
17115 POFILES="$POFILES $srcdirpre$lang.po"
17116 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
17117 fi
17118 done
17119 sed -e '/SRC-POTFILES =/r po/SRC-POTFILES' \
17120 -e '/BLD-POTFILES =/r po/BLD-POTFILES' \
17121 -e "s,@POFILES@,$POFILES," \
17122 -e "s,@GMOFILES@,$GMOFILES," \
17123 po/Makefile.in > po/Makefile ;;
17124 esac
17125 done
17126 _ACEOF
17127
17128 cat >>$CONFIG_STATUS <<\_ACEOF
17129
17130 { (exit 0); exit 0; }
17131 _ACEOF
17132 chmod +x $CONFIG_STATUS
17133 ac_clean_files=$ac_clean_files_save
17134
17135
17136 # configure is writing to config.log, and then calls config.status.
17137 # config.status does its own redirection, appending to config.log.
17138 # Unfortunately, on DOS this fails, as config.log is still kept open
17139 # by configure, so config.status won't be able to write to it; its
17140 # output is simply discarded. So we exec the FD to /dev/null,
17141 # effectively closing config.log, so it can be properly (re)opened and
17142 # appended to by config.status. When coming back to configure, we
17143 # need to make the FD available again.
17144 if test "$no_create" != yes; then
17145 ac_cs_success=:
17146 ac_config_status_args=
17147 test "$silent" = yes &&
17148 ac_config_status_args="$ac_config_status_args --quiet"
17149 exec 5>/dev/null
17150 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17151 exec 5>>config.log
17152 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17153 # would make configure fail if this is the last instruction.
17154 $ac_cs_success || { (exit 1); exit 1; }
17155 fi
17156
17157
This page took 0.866576 seconds and 4 git commands to generate.