* bfd/elf.c (INCLUDE_SECTION_IN_SEGMENT): Don't put empty sections into
[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 WARN_CFLAGS MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT INSTALL_LIBBFD_TRUE INSTALL_LIBBFD_FALSE host_noncanonical target_noncanonical bfdlibdir bfdincludedir CPP EGREP ALLOCA USE_NLS MSGFMT GMSGFMT XGETTEXT USE_INCLUDED_LIBINTL CATALOGS CATOBJEXT DATADIRNAME GMOFILES INSTOBJEXT INTLDEPS INTLLIBS INTLOBJS POFILES POSUB INCLUDE_LOCALE_H GT_NO GT_YES MKINSTALLDIRS l HDEFINES BFD_HOST_64BIT_LONG BFD_HOST_LONG_LONG BFD_HOST_64_BIT_DEFINED BFD_HOST_64_BIT BFD_HOST_U_64_BIT CC_FOR_BUILD EXEEXT_FOR_BUILD COREFILE COREFLAG WIN32LDFLAGS WIN32LIBADD TDEFINES wordsize bfd_libs all_backends bfd_backends bfd_machines bfd_default_target_size bfd_file_ptr bfd_ufile_ptr tdefaults 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-build-warnings Enable build-time compiler warnings if gcc is used
863 --enable-maintainer-mode enable make rules and dependencies not useful
864 (and sometimes confusing) to the casual installer
865 --enable-install-libbfd controls installation of libbfd and related headers
866 --disable-nls do not use Native Language Support
867
868 Optional Packages:
869 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
870 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
871 --with-gnu-ld assume the C compiler uses GNU ld default=no
872 --with-pic try to use only PIC/non-PIC objects default=use both
873 --with-mmap try using mmap for BFD input files if available
874 --with-included-gettext use the GNU gettext library included here
875
876 Some influential environment variables:
877 CC C compiler command
878 CFLAGS C compiler flags
879 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
880 nonstandard directory <lib dir>
881 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
882 headers in a nonstandard directory <include dir>
883 CPP C preprocessor
884
885 Use these variables to override the choices made by `configure' or to help
886 it to find libraries and programs with nonstandard names/locations.
887
888 _ACEOF
889 fi
890
891 if test "$ac_init_help" = "recursive"; then
892 # If there are subdirs, report their specific --help.
893 ac_popdir=`pwd`
894 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
895 test -d $ac_dir || continue
896 ac_builddir=.
897
898 if test "$ac_dir" != .; then
899 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
900 # A "../" for each directory in $ac_dir_suffix.
901 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
902 else
903 ac_dir_suffix= ac_top_builddir=
904 fi
905
906 case $srcdir in
907 .) # No --srcdir option. We are building in place.
908 ac_srcdir=.
909 if test -z "$ac_top_builddir"; then
910 ac_top_srcdir=.
911 else
912 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
913 fi ;;
914 [\\/]* | ?:[\\/]* ) # Absolute path.
915 ac_srcdir=$srcdir$ac_dir_suffix;
916 ac_top_srcdir=$srcdir ;;
917 *) # Relative path.
918 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
919 ac_top_srcdir=$ac_top_builddir$srcdir ;;
920 esac
921
922 # Do not use `cd foo && pwd` to compute absolute paths, because
923 # the directories may not exist.
924 case `pwd` in
925 .) ac_abs_builddir="$ac_dir";;
926 *)
927 case "$ac_dir" in
928 .) ac_abs_builddir=`pwd`;;
929 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
930 *) ac_abs_builddir=`pwd`/"$ac_dir";;
931 esac;;
932 esac
933 case $ac_abs_builddir in
934 .) ac_abs_top_builddir=${ac_top_builddir}.;;
935 *)
936 case ${ac_top_builddir}. in
937 .) ac_abs_top_builddir=$ac_abs_builddir;;
938 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
939 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
940 esac;;
941 esac
942 case $ac_abs_builddir in
943 .) ac_abs_srcdir=$ac_srcdir;;
944 *)
945 case $ac_srcdir in
946 .) ac_abs_srcdir=$ac_abs_builddir;;
947 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
948 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
949 esac;;
950 esac
951 case $ac_abs_builddir in
952 .) ac_abs_top_srcdir=$ac_top_srcdir;;
953 *)
954 case $ac_top_srcdir in
955 .) ac_abs_top_srcdir=$ac_abs_builddir;;
956 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
957 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
958 esac;;
959 esac
960
961 cd $ac_dir
962 # Check for guested configure; otherwise get Cygnus style configure.
963 if test -f $ac_srcdir/configure.gnu; then
964 echo
965 $SHELL $ac_srcdir/configure.gnu --help=recursive
966 elif test -f $ac_srcdir/configure; then
967 echo
968 $SHELL $ac_srcdir/configure --help=recursive
969 elif test -f $ac_srcdir/configure.ac ||
970 test -f $ac_srcdir/configure.in; then
971 echo
972 $ac_configure --help
973 else
974 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
975 fi
976 cd "$ac_popdir"
977 done
978 fi
979
980 test -n "$ac_init_help" && exit 0
981 if $ac_init_version; then
982 cat <<\_ACEOF
983
984 Copyright (C) 2003 Free Software Foundation, Inc.
985 This configure script is free software; the Free Software Foundation
986 gives unlimited permission to copy, distribute and modify it.
987 _ACEOF
988 exit 0
989 fi
990 exec 5>config.log
991 cat >&5 <<_ACEOF
992 This file contains any messages produced by compilers while
993 running configure, to aid debugging if configure makes a mistake.
994
995 It was created by $as_me, which was
996 generated by GNU Autoconf 2.59. Invocation command line was
997
998 $ $0 $@
999
1000 _ACEOF
1001 {
1002 cat <<_ASUNAME
1003 ## --------- ##
1004 ## Platform. ##
1005 ## --------- ##
1006
1007 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1008 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1009 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1010 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1011 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1012
1013 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1014 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1015
1016 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1017 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1018 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1019 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1020 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1021 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1022 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1023
1024 _ASUNAME
1025
1026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1027 for as_dir in $PATH
1028 do
1029 IFS=$as_save_IFS
1030 test -z "$as_dir" && as_dir=.
1031 echo "PATH: $as_dir"
1032 done
1033
1034 } >&5
1035
1036 cat >&5 <<_ACEOF
1037
1038
1039 ## ----------- ##
1040 ## Core tests. ##
1041 ## ----------- ##
1042
1043 _ACEOF
1044
1045
1046 # Keep a trace of the command line.
1047 # Strip out --no-create and --no-recursion so they do not pile up.
1048 # Strip out --silent because we don't want to record it for future runs.
1049 # Also quote any args containing shell meta-characters.
1050 # Make two passes to allow for proper duplicate-argument suppression.
1051 ac_configure_args=
1052 ac_configure_args0=
1053 ac_configure_args1=
1054 ac_sep=
1055 ac_must_keep_next=false
1056 for ac_pass in 1 2
1057 do
1058 for ac_arg
1059 do
1060 case $ac_arg in
1061 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1062 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1063 | -silent | --silent | --silen | --sile | --sil)
1064 continue ;;
1065 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1066 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1067 esac
1068 case $ac_pass in
1069 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1070 2)
1071 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1072 if test $ac_must_keep_next = true; then
1073 ac_must_keep_next=false # Got value, back to normal.
1074 else
1075 case $ac_arg in
1076 *=* | --config-cache | -C | -disable-* | --disable-* \
1077 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1078 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1079 | -with-* | --with-* | -without-* | --without-* | --x)
1080 case "$ac_configure_args0 " in
1081 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1082 esac
1083 ;;
1084 -* ) ac_must_keep_next=true ;;
1085 esac
1086 fi
1087 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1088 # Get rid of the leading space.
1089 ac_sep=" "
1090 ;;
1091 esac
1092 done
1093 done
1094 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1095 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1096
1097 # When interrupted or exit'd, cleanup temporary files, and complete
1098 # config.log. We remove comments because anyway the quotes in there
1099 # would cause problems or look ugly.
1100 # WARNING: Be sure not to use single quotes in there, as some shells,
1101 # such as our DU 5.0 friend, will then `close' the trap.
1102 trap 'exit_status=$?
1103 # Save into config.log some information that might help in debugging.
1104 {
1105 echo
1106
1107 cat <<\_ASBOX
1108 ## ---------------- ##
1109 ## Cache variables. ##
1110 ## ---------------- ##
1111 _ASBOX
1112 echo
1113 # The following way of writing the cache mishandles newlines in values,
1114 {
1115 (set) 2>&1 |
1116 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1117 *ac_space=\ *)
1118 sed -n \
1119 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1120 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1121 ;;
1122 *)
1123 sed -n \
1124 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1125 ;;
1126 esac;
1127 }
1128 echo
1129
1130 cat <<\_ASBOX
1131 ## ----------------- ##
1132 ## Output variables. ##
1133 ## ----------------- ##
1134 _ASBOX
1135 echo
1136 for ac_var in $ac_subst_vars
1137 do
1138 eval ac_val=$`echo $ac_var`
1139 echo "$ac_var='"'"'$ac_val'"'"'"
1140 done | sort
1141 echo
1142
1143 if test -n "$ac_subst_files"; then
1144 cat <<\_ASBOX
1145 ## ------------- ##
1146 ## Output files. ##
1147 ## ------------- ##
1148 _ASBOX
1149 echo
1150 for ac_var in $ac_subst_files
1151 do
1152 eval ac_val=$`echo $ac_var`
1153 echo "$ac_var='"'"'$ac_val'"'"'"
1154 done | sort
1155 echo
1156 fi
1157
1158 if test -s confdefs.h; then
1159 cat <<\_ASBOX
1160 ## ----------- ##
1161 ## confdefs.h. ##
1162 ## ----------- ##
1163 _ASBOX
1164 echo
1165 sed "/^$/d" confdefs.h | sort
1166 echo
1167 fi
1168 test "$ac_signal" != 0 &&
1169 echo "$as_me: caught signal $ac_signal"
1170 echo "$as_me: exit $exit_status"
1171 } >&5
1172 rm -f core *.core &&
1173 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1174 exit $exit_status
1175 ' 0
1176 for ac_signal in 1 2 13 15; do
1177 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1178 done
1179 ac_signal=0
1180
1181 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1182 rm -rf conftest* confdefs.h
1183 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1184 echo >confdefs.h
1185
1186 # Predefined preprocessor variables.
1187
1188 cat >>confdefs.h <<_ACEOF
1189 #define PACKAGE_NAME "$PACKAGE_NAME"
1190 _ACEOF
1191
1192
1193 cat >>confdefs.h <<_ACEOF
1194 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1195 _ACEOF
1196
1197
1198 cat >>confdefs.h <<_ACEOF
1199 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1200 _ACEOF
1201
1202
1203 cat >>confdefs.h <<_ACEOF
1204 #define PACKAGE_STRING "$PACKAGE_STRING"
1205 _ACEOF
1206
1207
1208 cat >>confdefs.h <<_ACEOF
1209 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1210 _ACEOF
1211
1212
1213 # Let the site file select an alternate cache file if it wants to.
1214 # Prefer explicitly selected file to automatically selected ones.
1215 if test -z "$CONFIG_SITE"; then
1216 if test "x$prefix" != xNONE; then
1217 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1218 else
1219 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1220 fi
1221 fi
1222 for ac_site_file in $CONFIG_SITE; do
1223 if test -r "$ac_site_file"; then
1224 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1225 echo "$as_me: loading site script $ac_site_file" >&6;}
1226 sed 's/^/| /' "$ac_site_file" >&5
1227 . "$ac_site_file"
1228 fi
1229 done
1230
1231 if test -r "$cache_file"; then
1232 # Some versions of bash will fail to source /dev/null (special
1233 # files actually), so we avoid doing that.
1234 if test -f "$cache_file"; then
1235 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1236 echo "$as_me: loading cache $cache_file" >&6;}
1237 case $cache_file in
1238 [\\/]* | ?:[\\/]* ) . $cache_file;;
1239 *) . ./$cache_file;;
1240 esac
1241 fi
1242 else
1243 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1244 echo "$as_me: creating cache $cache_file" >&6;}
1245 >$cache_file
1246 fi
1247
1248 # Check that the precious variables saved in the cache have kept the same
1249 # value.
1250 ac_cache_corrupted=false
1251 for ac_var in `(set) 2>&1 |
1252 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1253 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1254 eval ac_new_set=\$ac_env_${ac_var}_set
1255 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1256 eval ac_new_val="\$ac_env_${ac_var}_value"
1257 case $ac_old_set,$ac_new_set in
1258 set,)
1259 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1260 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1261 ac_cache_corrupted=: ;;
1262 ,set)
1263 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1264 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1265 ac_cache_corrupted=: ;;
1266 ,);;
1267 *)
1268 if test "x$ac_old_val" != "x$ac_new_val"; then
1269 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1270 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1271 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1272 echo "$as_me: former value: $ac_old_val" >&2;}
1273 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1274 echo "$as_me: current value: $ac_new_val" >&2;}
1275 ac_cache_corrupted=:
1276 fi;;
1277 esac
1278 # Pass precious variables to config.status.
1279 if test "$ac_new_set" = set; then
1280 case $ac_new_val in
1281 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1282 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1283 *) ac_arg=$ac_var=$ac_new_val ;;
1284 esac
1285 case " $ac_configure_args " in
1286 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1287 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1288 esac
1289 fi
1290 done
1291 if $ac_cache_corrupted; then
1292 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1293 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1294 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1295 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1296 { (exit 1); exit 1; }; }
1297 fi
1298
1299 ac_ext=c
1300 ac_cpp='$CPP $CPPFLAGS'
1301 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1302 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1303 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325 ac_aux_dir=
1326 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1327 if test -f $ac_dir/install-sh; then
1328 ac_aux_dir=$ac_dir
1329 ac_install_sh="$ac_aux_dir/install-sh -c"
1330 break
1331 elif 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/shtool; then
1336 ac_aux_dir=$ac_dir
1337 ac_install_sh="$ac_aux_dir/shtool install -c"
1338 break
1339 fi
1340 done
1341 if test -z "$ac_aux_dir"; then
1342 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1343 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1344 { (exit 1); exit 1; }; }
1345 fi
1346 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1347 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1348 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1349
1350 # Make sure we can run config.sub.
1351 $ac_config_sub sun4 >/dev/null 2>&1 ||
1352 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1353 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1354 { (exit 1); exit 1; }; }
1355
1356 echo "$as_me:$LINENO: checking build system type" >&5
1357 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1358 if test "${ac_cv_build+set}" = set; then
1359 echo $ECHO_N "(cached) $ECHO_C" >&6
1360 else
1361 ac_cv_build_alias=$build_alias
1362 test -z "$ac_cv_build_alias" &&
1363 ac_cv_build_alias=`$ac_config_guess`
1364 test -z "$ac_cv_build_alias" &&
1365 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1366 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1367 { (exit 1); exit 1; }; }
1368 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1369 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1370 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1371 { (exit 1); exit 1; }; }
1372
1373 fi
1374 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1375 echo "${ECHO_T}$ac_cv_build" >&6
1376 build=$ac_cv_build
1377 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1378 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1379 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1380
1381
1382 echo "$as_me:$LINENO: checking host system type" >&5
1383 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1384 if test "${ac_cv_host+set}" = set; then
1385 echo $ECHO_N "(cached) $ECHO_C" >&6
1386 else
1387 ac_cv_host_alias=$host_alias
1388 test -z "$ac_cv_host_alias" &&
1389 ac_cv_host_alias=$ac_cv_build_alias
1390 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1391 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1392 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1393 { (exit 1); exit 1; }; }
1394
1395 fi
1396 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1397 echo "${ECHO_T}$ac_cv_host" >&6
1398 host=$ac_cv_host
1399 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1400 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1401 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1402
1403
1404 echo "$as_me:$LINENO: checking target system type" >&5
1405 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1406 if test "${ac_cv_target+set}" = set; then
1407 echo $ECHO_N "(cached) $ECHO_C" >&6
1408 else
1409 ac_cv_target_alias=$target_alias
1410 test "x$ac_cv_target_alias" = "x" &&
1411 ac_cv_target_alias=$ac_cv_host_alias
1412 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1413 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1414 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1415 { (exit 1); exit 1; }; }
1416
1417 fi
1418 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1419 echo "${ECHO_T}$ac_cv_target" >&6
1420 target=$ac_cv_target
1421 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1422 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1423 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1424
1425
1426 # The aliases save the names the user supplied, while $host etc.
1427 # will get canonicalized.
1428 test -n "$target_alias" &&
1429 test "$program_prefix$program_suffix$program_transform_name" = \
1430 NONENONEs,x,x, &&
1431 program_prefix=${target_alias}-
1432 ac_ext=c
1433 ac_cpp='$CPP $CPPFLAGS'
1434 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1435 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1436 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1437 if test -n "$ac_tool_prefix"; then
1438 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1439 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1440 echo "$as_me:$LINENO: checking for $ac_word" >&5
1441 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1442 if test "${ac_cv_prog_CC+set}" = set; then
1443 echo $ECHO_N "(cached) $ECHO_C" >&6
1444 else
1445 if test -n "$CC"; then
1446 ac_cv_prog_CC="$CC" # Let the user override the test.
1447 else
1448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1449 for as_dir in $PATH
1450 do
1451 IFS=$as_save_IFS
1452 test -z "$as_dir" && as_dir=.
1453 for ac_exec_ext in '' $ac_executable_extensions; do
1454 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1455 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1456 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1457 break 2
1458 fi
1459 done
1460 done
1461
1462 fi
1463 fi
1464 CC=$ac_cv_prog_CC
1465 if test -n "$CC"; then
1466 echo "$as_me:$LINENO: result: $CC" >&5
1467 echo "${ECHO_T}$CC" >&6
1468 else
1469 echo "$as_me:$LINENO: result: no" >&5
1470 echo "${ECHO_T}no" >&6
1471 fi
1472
1473 fi
1474 if test -z "$ac_cv_prog_CC"; then
1475 ac_ct_CC=$CC
1476 # Extract the first word of "gcc", so it can be a program name with args.
1477 set dummy gcc; ac_word=$2
1478 echo "$as_me:$LINENO: checking for $ac_word" >&5
1479 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1480 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1481 echo $ECHO_N "(cached) $ECHO_C" >&6
1482 else
1483 if test -n "$ac_ct_CC"; then
1484 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1485 else
1486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1487 for as_dir in $PATH
1488 do
1489 IFS=$as_save_IFS
1490 test -z "$as_dir" && as_dir=.
1491 for ac_exec_ext in '' $ac_executable_extensions; do
1492 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1493 ac_cv_prog_ac_ct_CC="gcc"
1494 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1495 break 2
1496 fi
1497 done
1498 done
1499
1500 fi
1501 fi
1502 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1503 if test -n "$ac_ct_CC"; then
1504 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1505 echo "${ECHO_T}$ac_ct_CC" >&6
1506 else
1507 echo "$as_me:$LINENO: result: no" >&5
1508 echo "${ECHO_T}no" >&6
1509 fi
1510
1511 CC=$ac_ct_CC
1512 else
1513 CC="$ac_cv_prog_CC"
1514 fi
1515
1516 if test -z "$CC"; then
1517 if test -n "$ac_tool_prefix"; then
1518 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1519 set dummy ${ac_tool_prefix}cc; ac_word=$2
1520 echo "$as_me:$LINENO: checking for $ac_word" >&5
1521 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1522 if test "${ac_cv_prog_CC+set}" = set; then
1523 echo $ECHO_N "(cached) $ECHO_C" >&6
1524 else
1525 if test -n "$CC"; then
1526 ac_cv_prog_CC="$CC" # Let the user override the test.
1527 else
1528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1529 for as_dir in $PATH
1530 do
1531 IFS=$as_save_IFS
1532 test -z "$as_dir" && as_dir=.
1533 for ac_exec_ext in '' $ac_executable_extensions; do
1534 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1535 ac_cv_prog_CC="${ac_tool_prefix}cc"
1536 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1537 break 2
1538 fi
1539 done
1540 done
1541
1542 fi
1543 fi
1544 CC=$ac_cv_prog_CC
1545 if test -n "$CC"; then
1546 echo "$as_me:$LINENO: result: $CC" >&5
1547 echo "${ECHO_T}$CC" >&6
1548 else
1549 echo "$as_me:$LINENO: result: no" >&5
1550 echo "${ECHO_T}no" >&6
1551 fi
1552
1553 fi
1554 if test -z "$ac_cv_prog_CC"; then
1555 ac_ct_CC=$CC
1556 # Extract the first word of "cc", so it can be a program name with args.
1557 set dummy cc; ac_word=$2
1558 echo "$as_me:$LINENO: checking for $ac_word" >&5
1559 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1560 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1561 echo $ECHO_N "(cached) $ECHO_C" >&6
1562 else
1563 if test -n "$ac_ct_CC"; then
1564 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1565 else
1566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1567 for as_dir in $PATH
1568 do
1569 IFS=$as_save_IFS
1570 test -z "$as_dir" && as_dir=.
1571 for ac_exec_ext in '' $ac_executable_extensions; do
1572 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1573 ac_cv_prog_ac_ct_CC="cc"
1574 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1575 break 2
1576 fi
1577 done
1578 done
1579
1580 fi
1581 fi
1582 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1583 if test -n "$ac_ct_CC"; then
1584 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1585 echo "${ECHO_T}$ac_ct_CC" >&6
1586 else
1587 echo "$as_me:$LINENO: result: no" >&5
1588 echo "${ECHO_T}no" >&6
1589 fi
1590
1591 CC=$ac_ct_CC
1592 else
1593 CC="$ac_cv_prog_CC"
1594 fi
1595
1596 fi
1597 if test -z "$CC"; then
1598 # Extract the first word of "cc", so it can be a program name with args.
1599 set dummy cc; ac_word=$2
1600 echo "$as_me:$LINENO: checking for $ac_word" >&5
1601 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1602 if test "${ac_cv_prog_CC+set}" = set; then
1603 echo $ECHO_N "(cached) $ECHO_C" >&6
1604 else
1605 if test -n "$CC"; then
1606 ac_cv_prog_CC="$CC" # Let the user override the test.
1607 else
1608 ac_prog_rejected=no
1609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1610 for as_dir in $PATH
1611 do
1612 IFS=$as_save_IFS
1613 test -z "$as_dir" && as_dir=.
1614 for ac_exec_ext in '' $ac_executable_extensions; do
1615 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1616 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1617 ac_prog_rejected=yes
1618 continue
1619 fi
1620 ac_cv_prog_CC="cc"
1621 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1622 break 2
1623 fi
1624 done
1625 done
1626
1627 if test $ac_prog_rejected = yes; then
1628 # We found a bogon in the path, so make sure we never use it.
1629 set dummy $ac_cv_prog_CC
1630 shift
1631 if test $# != 0; then
1632 # We chose a different compiler from the bogus one.
1633 # However, it has the same basename, so the bogon will be chosen
1634 # first if we set CC to just the basename; use the full file name.
1635 shift
1636 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1637 fi
1638 fi
1639 fi
1640 fi
1641 CC=$ac_cv_prog_CC
1642 if test -n "$CC"; then
1643 echo "$as_me:$LINENO: result: $CC" >&5
1644 echo "${ECHO_T}$CC" >&6
1645 else
1646 echo "$as_me:$LINENO: result: no" >&5
1647 echo "${ECHO_T}no" >&6
1648 fi
1649
1650 fi
1651 if test -z "$CC"; then
1652 if test -n "$ac_tool_prefix"; then
1653 for ac_prog in cl
1654 do
1655 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1656 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1657 echo "$as_me:$LINENO: checking for $ac_word" >&5
1658 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1659 if test "${ac_cv_prog_CC+set}" = set; then
1660 echo $ECHO_N "(cached) $ECHO_C" >&6
1661 else
1662 if test -n "$CC"; then
1663 ac_cv_prog_CC="$CC" # Let the user override the test.
1664 else
1665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1666 for as_dir in $PATH
1667 do
1668 IFS=$as_save_IFS
1669 test -z "$as_dir" && as_dir=.
1670 for ac_exec_ext in '' $ac_executable_extensions; do
1671 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1672 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1673 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1674 break 2
1675 fi
1676 done
1677 done
1678
1679 fi
1680 fi
1681 CC=$ac_cv_prog_CC
1682 if test -n "$CC"; then
1683 echo "$as_me:$LINENO: result: $CC" >&5
1684 echo "${ECHO_T}$CC" >&6
1685 else
1686 echo "$as_me:$LINENO: result: no" >&5
1687 echo "${ECHO_T}no" >&6
1688 fi
1689
1690 test -n "$CC" && break
1691 done
1692 fi
1693 if test -z "$CC"; then
1694 ac_ct_CC=$CC
1695 for ac_prog in cl
1696 do
1697 # Extract the first word of "$ac_prog", so it can be a program name with args.
1698 set dummy $ac_prog; ac_word=$2
1699 echo "$as_me:$LINENO: checking for $ac_word" >&5
1700 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1701 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1702 echo $ECHO_N "(cached) $ECHO_C" >&6
1703 else
1704 if test -n "$ac_ct_CC"; then
1705 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1706 else
1707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1708 for as_dir in $PATH
1709 do
1710 IFS=$as_save_IFS
1711 test -z "$as_dir" && as_dir=.
1712 for ac_exec_ext in '' $ac_executable_extensions; do
1713 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1714 ac_cv_prog_ac_ct_CC="$ac_prog"
1715 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1716 break 2
1717 fi
1718 done
1719 done
1720
1721 fi
1722 fi
1723 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1724 if test -n "$ac_ct_CC"; then
1725 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1726 echo "${ECHO_T}$ac_ct_CC" >&6
1727 else
1728 echo "$as_me:$LINENO: result: no" >&5
1729 echo "${ECHO_T}no" >&6
1730 fi
1731
1732 test -n "$ac_ct_CC" && break
1733 done
1734
1735 CC=$ac_ct_CC
1736 fi
1737
1738 fi
1739
1740
1741 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1742 See \`config.log' for more details." >&5
1743 echo "$as_me: error: no acceptable C compiler found in \$PATH
1744 See \`config.log' for more details." >&2;}
1745 { (exit 1); exit 1; }; }
1746
1747 # Provide some information about the compiler.
1748 echo "$as_me:$LINENO:" \
1749 "checking for C compiler version" >&5
1750 ac_compiler=`set X $ac_compile; echo $2`
1751 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1752 (eval $ac_compiler --version </dev/null >&5) 2>&5
1753 ac_status=$?
1754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1755 (exit $ac_status); }
1756 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1757 (eval $ac_compiler -v </dev/null >&5) 2>&5
1758 ac_status=$?
1759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1760 (exit $ac_status); }
1761 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1762 (eval $ac_compiler -V </dev/null >&5) 2>&5
1763 ac_status=$?
1764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1765 (exit $ac_status); }
1766
1767 cat >conftest.$ac_ext <<_ACEOF
1768 /* confdefs.h. */
1769 _ACEOF
1770 cat confdefs.h >>conftest.$ac_ext
1771 cat >>conftest.$ac_ext <<_ACEOF
1772 /* end confdefs.h. */
1773
1774 int
1775 main ()
1776 {
1777
1778 ;
1779 return 0;
1780 }
1781 _ACEOF
1782 ac_clean_files_save=$ac_clean_files
1783 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1784 # Try to create an executable without -o first, disregard a.out.
1785 # It will help us diagnose broken compilers, and finding out an intuition
1786 # of exeext.
1787 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1788 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1789 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1790 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1791 (eval $ac_link_default) 2>&5
1792 ac_status=$?
1793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1794 (exit $ac_status); }; then
1795 # Find the output, starting from the most likely. This scheme is
1796 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1797 # resort.
1798
1799 # Be careful to initialize this variable, since it used to be cached.
1800 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1801 ac_cv_exeext=
1802 # b.out is created by i960 compilers.
1803 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1804 do
1805 test -f "$ac_file" || continue
1806 case $ac_file in
1807 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1808 ;;
1809 conftest.$ac_ext )
1810 # This is the source file.
1811 ;;
1812 [ab].out )
1813 # We found the default executable, but exeext='' is most
1814 # certainly right.
1815 break;;
1816 *.* )
1817 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1818 # FIXME: I believe we export ac_cv_exeext for Libtool,
1819 # but it would be cool to find out if it's true. Does anybody
1820 # maintain Libtool? --akim.
1821 export ac_cv_exeext
1822 break;;
1823 * )
1824 break;;
1825 esac
1826 done
1827 else
1828 echo "$as_me: failed program was:" >&5
1829 sed 's/^/| /' conftest.$ac_ext >&5
1830
1831 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1832 See \`config.log' for more details." >&5
1833 echo "$as_me: error: C compiler cannot create executables
1834 See \`config.log' for more details." >&2;}
1835 { (exit 77); exit 77; }; }
1836 fi
1837
1838 ac_exeext=$ac_cv_exeext
1839 echo "$as_me:$LINENO: result: $ac_file" >&5
1840 echo "${ECHO_T}$ac_file" >&6
1841
1842 # Check the compiler produces executables we can run. If not, either
1843 # the compiler is broken, or we cross compile.
1844 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1845 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1846 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1847 # If not cross compiling, check that we can run a simple program.
1848 if test "$cross_compiling" != yes; then
1849 if { ac_try='./$ac_file'
1850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1851 (eval $ac_try) 2>&5
1852 ac_status=$?
1853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1854 (exit $ac_status); }; }; then
1855 cross_compiling=no
1856 else
1857 if test "$cross_compiling" = maybe; then
1858 cross_compiling=yes
1859 else
1860 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1861 If you meant to cross compile, use \`--host'.
1862 See \`config.log' for more details." >&5
1863 echo "$as_me: error: cannot run C compiled programs.
1864 If you meant to cross compile, use \`--host'.
1865 See \`config.log' for more details." >&2;}
1866 { (exit 1); exit 1; }; }
1867 fi
1868 fi
1869 fi
1870 echo "$as_me:$LINENO: result: yes" >&5
1871 echo "${ECHO_T}yes" >&6
1872
1873 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1874 ac_clean_files=$ac_clean_files_save
1875 # Check the compiler produces executables we can run. If not, either
1876 # the compiler is broken, or we cross compile.
1877 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1878 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1879 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1880 echo "${ECHO_T}$cross_compiling" >&6
1881
1882 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1883 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1884 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1885 (eval $ac_link) 2>&5
1886 ac_status=$?
1887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1888 (exit $ac_status); }; then
1889 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1890 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1891 # work properly (i.e., refer to `conftest.exe'), while it won't with
1892 # `rm'.
1893 for ac_file in conftest.exe conftest conftest.*; do
1894 test -f "$ac_file" || continue
1895 case $ac_file in
1896 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1897 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1898 export ac_cv_exeext
1899 break;;
1900 * ) break;;
1901 esac
1902 done
1903 else
1904 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1905 See \`config.log' for more details." >&5
1906 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1907 See \`config.log' for more details." >&2;}
1908 { (exit 1); exit 1; }; }
1909 fi
1910
1911 rm -f conftest$ac_cv_exeext
1912 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1913 echo "${ECHO_T}$ac_cv_exeext" >&6
1914
1915 rm -f conftest.$ac_ext
1916 EXEEXT=$ac_cv_exeext
1917 ac_exeext=$EXEEXT
1918 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1919 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1920 if test "${ac_cv_objext+set}" = set; then
1921 echo $ECHO_N "(cached) $ECHO_C" >&6
1922 else
1923 cat >conftest.$ac_ext <<_ACEOF
1924 /* confdefs.h. */
1925 _ACEOF
1926 cat confdefs.h >>conftest.$ac_ext
1927 cat >>conftest.$ac_ext <<_ACEOF
1928 /* end confdefs.h. */
1929
1930 int
1931 main ()
1932 {
1933
1934 ;
1935 return 0;
1936 }
1937 _ACEOF
1938 rm -f conftest.o conftest.obj
1939 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1940 (eval $ac_compile) 2>&5
1941 ac_status=$?
1942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1943 (exit $ac_status); }; then
1944 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1945 case $ac_file in
1946 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1947 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1948 break;;
1949 esac
1950 done
1951 else
1952 echo "$as_me: failed program was:" >&5
1953 sed 's/^/| /' conftest.$ac_ext >&5
1954
1955 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1956 See \`config.log' for more details." >&5
1957 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1958 See \`config.log' for more details." >&2;}
1959 { (exit 1); exit 1; }; }
1960 fi
1961
1962 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1963 fi
1964 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1965 echo "${ECHO_T}$ac_cv_objext" >&6
1966 OBJEXT=$ac_cv_objext
1967 ac_objext=$OBJEXT
1968 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1969 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1970 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1971 echo $ECHO_N "(cached) $ECHO_C" >&6
1972 else
1973 cat >conftest.$ac_ext <<_ACEOF
1974 /* confdefs.h. */
1975 _ACEOF
1976 cat confdefs.h >>conftest.$ac_ext
1977 cat >>conftest.$ac_ext <<_ACEOF
1978 /* end confdefs.h. */
1979
1980 int
1981 main ()
1982 {
1983 #ifndef __GNUC__
1984 choke me
1985 #endif
1986
1987 ;
1988 return 0;
1989 }
1990 _ACEOF
1991 rm -f conftest.$ac_objext
1992 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1993 (eval $ac_compile) 2>conftest.er1
1994 ac_status=$?
1995 grep -v '^ *+' conftest.er1 >conftest.err
1996 rm -f conftest.er1
1997 cat conftest.err >&5
1998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1999 (exit $ac_status); } &&
2000 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2002 (eval $ac_try) 2>&5
2003 ac_status=$?
2004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2005 (exit $ac_status); }; } &&
2006 { ac_try='test -s conftest.$ac_objext'
2007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2008 (eval $ac_try) 2>&5
2009 ac_status=$?
2010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2011 (exit $ac_status); }; }; then
2012 ac_compiler_gnu=yes
2013 else
2014 echo "$as_me: failed program was:" >&5
2015 sed 's/^/| /' conftest.$ac_ext >&5
2016
2017 ac_compiler_gnu=no
2018 fi
2019 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2020 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2021
2022 fi
2023 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2024 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2025 GCC=`test $ac_compiler_gnu = yes && echo yes`
2026 ac_test_CFLAGS=${CFLAGS+set}
2027 ac_save_CFLAGS=$CFLAGS
2028 CFLAGS="-g"
2029 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2030 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2031 if test "${ac_cv_prog_cc_g+set}" = set; then
2032 echo $ECHO_N "(cached) $ECHO_C" >&6
2033 else
2034 cat >conftest.$ac_ext <<_ACEOF
2035 /* confdefs.h. */
2036 _ACEOF
2037 cat confdefs.h >>conftest.$ac_ext
2038 cat >>conftest.$ac_ext <<_ACEOF
2039 /* end confdefs.h. */
2040
2041 int
2042 main ()
2043 {
2044
2045 ;
2046 return 0;
2047 }
2048 _ACEOF
2049 rm -f conftest.$ac_objext
2050 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2051 (eval $ac_compile) 2>conftest.er1
2052 ac_status=$?
2053 grep -v '^ *+' conftest.er1 >conftest.err
2054 rm -f conftest.er1
2055 cat conftest.err >&5
2056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2057 (exit $ac_status); } &&
2058 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2060 (eval $ac_try) 2>&5
2061 ac_status=$?
2062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2063 (exit $ac_status); }; } &&
2064 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
2070 ac_cv_prog_cc_g=yes
2071 else
2072 echo "$as_me: failed program was:" >&5
2073 sed 's/^/| /' conftest.$ac_ext >&5
2074
2075 ac_cv_prog_cc_g=no
2076 fi
2077 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2078 fi
2079 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2080 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2081 if test "$ac_test_CFLAGS" = set; then
2082 CFLAGS=$ac_save_CFLAGS
2083 elif test $ac_cv_prog_cc_g = yes; then
2084 if test "$GCC" = yes; then
2085 CFLAGS="-g -O2"
2086 else
2087 CFLAGS="-g"
2088 fi
2089 else
2090 if test "$GCC" = yes; then
2091 CFLAGS="-O2"
2092 else
2093 CFLAGS=
2094 fi
2095 fi
2096 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2097 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2098 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2099 echo $ECHO_N "(cached) $ECHO_C" >&6
2100 else
2101 ac_cv_prog_cc_stdc=no
2102 ac_save_CC=$CC
2103 cat >conftest.$ac_ext <<_ACEOF
2104 /* confdefs.h. */
2105 _ACEOF
2106 cat confdefs.h >>conftest.$ac_ext
2107 cat >>conftest.$ac_ext <<_ACEOF
2108 /* end confdefs.h. */
2109 #include <stdarg.h>
2110 #include <stdio.h>
2111 #include <sys/types.h>
2112 #include <sys/stat.h>
2113 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2114 struct buf { int x; };
2115 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2116 static char *e (p, i)
2117 char **p;
2118 int i;
2119 {
2120 return p[i];
2121 }
2122 static char *f (char * (*g) (char **, int), char **p, ...)
2123 {
2124 char *s;
2125 va_list v;
2126 va_start (v,p);
2127 s = g (p, va_arg (v,int));
2128 va_end (v);
2129 return s;
2130 }
2131
2132 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2133 function prototypes and stuff, but not '\xHH' hex character constants.
2134 These don't provoke an error unfortunately, instead are silently treated
2135 as 'x'. The following induces an error, until -std1 is added to get
2136 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2137 array size at least. It's necessary to write '\x00'==0 to get something
2138 that's true only with -std1. */
2139 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2140
2141 int test (int i, double x);
2142 struct s1 {int (*f) (int a);};
2143 struct s2 {int (*f) (double a);};
2144 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2145 int argc;
2146 char **argv;
2147 int
2148 main ()
2149 {
2150 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2151 ;
2152 return 0;
2153 }
2154 _ACEOF
2155 # Don't try gcc -ansi; that turns off useful extensions and
2156 # breaks some systems' header files.
2157 # AIX -qlanglvl=ansi
2158 # Ultrix and OSF/1 -std1
2159 # HP-UX 10.20 and later -Ae
2160 # HP-UX older versions -Aa -D_HPUX_SOURCE
2161 # SVR4 -Xc -D__EXTENSIONS__
2162 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2163 do
2164 CC="$ac_save_CC $ac_arg"
2165 rm -f conftest.$ac_objext
2166 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2167 (eval $ac_compile) 2>conftest.er1
2168 ac_status=$?
2169 grep -v '^ *+' conftest.er1 >conftest.err
2170 rm -f conftest.er1
2171 cat conftest.err >&5
2172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2173 (exit $ac_status); } &&
2174 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2176 (eval $ac_try) 2>&5
2177 ac_status=$?
2178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2179 (exit $ac_status); }; } &&
2180 { ac_try='test -s conftest.$ac_objext'
2181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2182 (eval $ac_try) 2>&5
2183 ac_status=$?
2184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2185 (exit $ac_status); }; }; then
2186 ac_cv_prog_cc_stdc=$ac_arg
2187 break
2188 else
2189 echo "$as_me: failed program was:" >&5
2190 sed 's/^/| /' conftest.$ac_ext >&5
2191
2192 fi
2193 rm -f conftest.err conftest.$ac_objext
2194 done
2195 rm -f conftest.$ac_ext conftest.$ac_objext
2196 CC=$ac_save_CC
2197
2198 fi
2199
2200 case "x$ac_cv_prog_cc_stdc" in
2201 x|xno)
2202 echo "$as_me:$LINENO: result: none needed" >&5
2203 echo "${ECHO_T}none needed" >&6 ;;
2204 *)
2205 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2206 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2207 CC="$CC $ac_cv_prog_cc_stdc" ;;
2208 esac
2209
2210 # Some people use a C++ compiler to compile C. Since we use `exit',
2211 # in C++ we need to declare it. In case someone uses the same compiler
2212 # for both compiling C and C++ we need to have the C++ compiler decide
2213 # the declaration of exit, since it's the most demanding environment.
2214 cat >conftest.$ac_ext <<_ACEOF
2215 #ifndef __cplusplus
2216 choke me
2217 #endif
2218 _ACEOF
2219 rm -f conftest.$ac_objext
2220 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2221 (eval $ac_compile) 2>conftest.er1
2222 ac_status=$?
2223 grep -v '^ *+' conftest.er1 >conftest.err
2224 rm -f conftest.er1
2225 cat conftest.err >&5
2226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2227 (exit $ac_status); } &&
2228 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2230 (eval $ac_try) 2>&5
2231 ac_status=$?
2232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2233 (exit $ac_status); }; } &&
2234 { ac_try='test -s conftest.$ac_objext'
2235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2236 (eval $ac_try) 2>&5
2237 ac_status=$?
2238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2239 (exit $ac_status); }; }; then
2240 for ac_declaration in \
2241 '' \
2242 'extern "C" void std::exit (int) throw (); using std::exit;' \
2243 'extern "C" void std::exit (int); using std::exit;' \
2244 'extern "C" void exit (int) throw ();' \
2245 'extern "C" void exit (int);' \
2246 'void exit (int);'
2247 do
2248 cat >conftest.$ac_ext <<_ACEOF
2249 /* confdefs.h. */
2250 _ACEOF
2251 cat confdefs.h >>conftest.$ac_ext
2252 cat >>conftest.$ac_ext <<_ACEOF
2253 /* end confdefs.h. */
2254 $ac_declaration
2255 #include <stdlib.h>
2256 int
2257 main ()
2258 {
2259 exit (42);
2260 ;
2261 return 0;
2262 }
2263 _ACEOF
2264 rm -f conftest.$ac_objext
2265 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2266 (eval $ac_compile) 2>conftest.er1
2267 ac_status=$?
2268 grep -v '^ *+' conftest.er1 >conftest.err
2269 rm -f conftest.er1
2270 cat conftest.err >&5
2271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2272 (exit $ac_status); } &&
2273 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2275 (eval $ac_try) 2>&5
2276 ac_status=$?
2277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2278 (exit $ac_status); }; } &&
2279 { ac_try='test -s conftest.$ac_objext'
2280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2281 (eval $ac_try) 2>&5
2282 ac_status=$?
2283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2284 (exit $ac_status); }; }; then
2285 :
2286 else
2287 echo "$as_me: failed program was:" >&5
2288 sed 's/^/| /' conftest.$ac_ext >&5
2289
2290 continue
2291 fi
2292 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2293 cat >conftest.$ac_ext <<_ACEOF
2294 /* confdefs.h. */
2295 _ACEOF
2296 cat confdefs.h >>conftest.$ac_ext
2297 cat >>conftest.$ac_ext <<_ACEOF
2298 /* end confdefs.h. */
2299 $ac_declaration
2300 int
2301 main ()
2302 {
2303 exit (42);
2304 ;
2305 return 0;
2306 }
2307 _ACEOF
2308 rm -f conftest.$ac_objext
2309 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2310 (eval $ac_compile) 2>conftest.er1
2311 ac_status=$?
2312 grep -v '^ *+' conftest.er1 >conftest.err
2313 rm -f conftest.er1
2314 cat conftest.err >&5
2315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2316 (exit $ac_status); } &&
2317 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2319 (eval $ac_try) 2>&5
2320 ac_status=$?
2321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2322 (exit $ac_status); }; } &&
2323 { ac_try='test -s conftest.$ac_objext'
2324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2325 (eval $ac_try) 2>&5
2326 ac_status=$?
2327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2328 (exit $ac_status); }; }; then
2329 break
2330 else
2331 echo "$as_me: failed program was:" >&5
2332 sed 's/^/| /' conftest.$ac_ext >&5
2333
2334 fi
2335 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2336 done
2337 rm -f conftest*
2338 if test -n "$ac_declaration"; then
2339 echo '#ifdef __cplusplus' >>confdefs.h
2340 echo $ac_declaration >>confdefs.h
2341 echo '#endif' >>confdefs.h
2342 fi
2343
2344 else
2345 echo "$as_me: failed program was:" >&5
2346 sed 's/^/| /' conftest.$ac_ext >&5
2347
2348 fi
2349 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2350 ac_ext=c
2351 ac_cpp='$CPP $CPPFLAGS'
2352 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2353 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2354 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2355
2356
2357 echo "$as_me:$LINENO: checking for library containing strerror" >&5
2358 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2359 if test "${ac_cv_search_strerror+set}" = set; then
2360 echo $ECHO_N "(cached) $ECHO_C" >&6
2361 else
2362 ac_func_search_save_LIBS=$LIBS
2363 ac_cv_search_strerror=no
2364 cat >conftest.$ac_ext <<_ACEOF
2365 /* confdefs.h. */
2366 _ACEOF
2367 cat confdefs.h >>conftest.$ac_ext
2368 cat >>conftest.$ac_ext <<_ACEOF
2369 /* end confdefs.h. */
2370
2371 /* Override any gcc2 internal prototype to avoid an error. */
2372 #ifdef __cplusplus
2373 extern "C"
2374 #endif
2375 /* We use char because int might match the return type of a gcc2
2376 builtin and then its argument prototype would still apply. */
2377 char strerror ();
2378 int
2379 main ()
2380 {
2381 strerror ();
2382 ;
2383 return 0;
2384 }
2385 _ACEOF
2386 rm -f conftest.$ac_objext conftest$ac_exeext
2387 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2388 (eval $ac_link) 2>conftest.er1
2389 ac_status=$?
2390 grep -v '^ *+' conftest.er1 >conftest.err
2391 rm -f conftest.er1
2392 cat conftest.err >&5
2393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2394 (exit $ac_status); } &&
2395 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2397 (eval $ac_try) 2>&5
2398 ac_status=$?
2399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2400 (exit $ac_status); }; } &&
2401 { ac_try='test -s conftest$ac_exeext'
2402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2403 (eval $ac_try) 2>&5
2404 ac_status=$?
2405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2406 (exit $ac_status); }; }; then
2407 ac_cv_search_strerror="none required"
2408 else
2409 echo "$as_me: failed program was:" >&5
2410 sed 's/^/| /' conftest.$ac_ext >&5
2411
2412 fi
2413 rm -f conftest.err conftest.$ac_objext \
2414 conftest$ac_exeext conftest.$ac_ext
2415 if test "$ac_cv_search_strerror" = no; then
2416 for ac_lib in cposix; do
2417 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2418 cat >conftest.$ac_ext <<_ACEOF
2419 /* confdefs.h. */
2420 _ACEOF
2421 cat confdefs.h >>conftest.$ac_ext
2422 cat >>conftest.$ac_ext <<_ACEOF
2423 /* end confdefs.h. */
2424
2425 /* Override any gcc2 internal prototype to avoid an error. */
2426 #ifdef __cplusplus
2427 extern "C"
2428 #endif
2429 /* We use char because int might match the return type of a gcc2
2430 builtin and then its argument prototype would still apply. */
2431 char strerror ();
2432 int
2433 main ()
2434 {
2435 strerror ();
2436 ;
2437 return 0;
2438 }
2439 _ACEOF
2440 rm -f conftest.$ac_objext conftest$ac_exeext
2441 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2442 (eval $ac_link) 2>conftest.er1
2443 ac_status=$?
2444 grep -v '^ *+' conftest.er1 >conftest.err
2445 rm -f conftest.er1
2446 cat conftest.err >&5
2447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2448 (exit $ac_status); } &&
2449 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2451 (eval $ac_try) 2>&5
2452 ac_status=$?
2453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2454 (exit $ac_status); }; } &&
2455 { ac_try='test -s conftest$ac_exeext'
2456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2457 (eval $ac_try) 2>&5
2458 ac_status=$?
2459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2460 (exit $ac_status); }; }; then
2461 ac_cv_search_strerror="-l$ac_lib"
2462 break
2463 else
2464 echo "$as_me: failed program was:" >&5
2465 sed 's/^/| /' conftest.$ac_ext >&5
2466
2467 fi
2468 rm -f conftest.err conftest.$ac_objext \
2469 conftest$ac_exeext conftest.$ac_ext
2470 done
2471 fi
2472 LIBS=$ac_func_search_save_LIBS
2473 fi
2474 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2475 echo "${ECHO_T}$ac_cv_search_strerror" >&6
2476 if test "$ac_cv_search_strerror" != no; then
2477 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
2478
2479 fi
2480
2481
2482 am__api_version="1.9"
2483 # Find a good install program. We prefer a C program (faster),
2484 # so one script is as good as another. But avoid the broken or
2485 # incompatible versions:
2486 # SysV /etc/install, /usr/sbin/install
2487 # SunOS /usr/etc/install
2488 # IRIX /sbin/install
2489 # AIX /bin/install
2490 # AmigaOS /C/install, which installs bootblocks on floppy discs
2491 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2492 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2493 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2494 # OS/2's system install, which has a completely different semantic
2495 # ./install, which can be erroneously created by make from ./install.sh.
2496 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2497 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2498 if test -z "$INSTALL"; then
2499 if test "${ac_cv_path_install+set}" = set; then
2500 echo $ECHO_N "(cached) $ECHO_C" >&6
2501 else
2502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2503 for as_dir in $PATH
2504 do
2505 IFS=$as_save_IFS
2506 test -z "$as_dir" && as_dir=.
2507 # Account for people who put trailing slashes in PATH elements.
2508 case $as_dir/ in
2509 ./ | .// | /cC/* | \
2510 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2511 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2512 /usr/ucb/* ) ;;
2513 *)
2514 # OSF1 and SCO ODT 3.0 have their own names for install.
2515 # Don't use installbsd from OSF since it installs stuff as root
2516 # by default.
2517 for ac_prog in ginstall scoinst install; do
2518 for ac_exec_ext in '' $ac_executable_extensions; do
2519 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2520 if test $ac_prog = install &&
2521 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2522 # AIX install. It has an incompatible calling convention.
2523 :
2524 elif test $ac_prog = install &&
2525 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2526 # program-specific install script used by HP pwplus--don't use.
2527 :
2528 else
2529 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2530 break 3
2531 fi
2532 fi
2533 done
2534 done
2535 ;;
2536 esac
2537 done
2538
2539
2540 fi
2541 if test "${ac_cv_path_install+set}" = set; then
2542 INSTALL=$ac_cv_path_install
2543 else
2544 # As a last resort, use the slow shell script. We don't cache a
2545 # path for INSTALL within a source directory, because that will
2546 # break other packages using the cache if that directory is
2547 # removed, or if the path is relative.
2548 INSTALL=$ac_install_sh
2549 fi
2550 fi
2551 echo "$as_me:$LINENO: result: $INSTALL" >&5
2552 echo "${ECHO_T}$INSTALL" >&6
2553
2554 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2555 # It thinks the first close brace ends the variable substitution.
2556 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2557
2558 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2559
2560 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2561
2562 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2563 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
2564 # Just in case
2565 sleep 1
2566 echo timestamp > conftest.file
2567 # Do `set' in a subshell so we don't clobber the current shell's
2568 # arguments. Must try -L first in case configure is actually a
2569 # symlink; some systems play weird games with the mod time of symlinks
2570 # (eg FreeBSD returns the mod time of the symlink's containing
2571 # directory).
2572 if (
2573 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2574 if test "$*" = "X"; then
2575 # -L didn't work.
2576 set X `ls -t $srcdir/configure conftest.file`
2577 fi
2578 rm -f conftest.file
2579 if test "$*" != "X $srcdir/configure conftest.file" \
2580 && test "$*" != "X conftest.file $srcdir/configure"; then
2581
2582 # If neither matched, then we have a broken ls. This can happen
2583 # if, for instance, CONFIG_SHELL is bash and it inherits a
2584 # broken ls alias from the environment. This has actually
2585 # happened. Such a system could not be considered "sane".
2586 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2587 alias in your environment" >&5
2588 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2589 alias in your environment" >&2;}
2590 { (exit 1); exit 1; }; }
2591 fi
2592
2593 test "$2" = conftest.file
2594 )
2595 then
2596 # Ok.
2597 :
2598 else
2599 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2600 Check your system clock" >&5
2601 echo "$as_me: error: newly created file is older than distributed files!
2602 Check your system clock" >&2;}
2603 { (exit 1); exit 1; }; }
2604 fi
2605 echo "$as_me:$LINENO: result: yes" >&5
2606 echo "${ECHO_T}yes" >&6
2607 test "$program_prefix" != NONE &&
2608 program_transform_name="s,^,$program_prefix,;$program_transform_name"
2609 # Use a double $ so make ignores it.
2610 test "$program_suffix" != NONE &&
2611 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2612 # Double any \ or $. echo might interpret backslashes.
2613 # By default was `s,x,x', remove it if useless.
2614 cat <<\_ACEOF >conftest.sed
2615 s/[\\$]/&&/g;s/;s,x,x,$//
2616 _ACEOF
2617 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2618 rm conftest.sed
2619
2620 # expand $ac_aux_dir to an absolute path
2621 am_aux_dir=`cd $ac_aux_dir && pwd`
2622
2623 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2624 # Use eval to expand $SHELL
2625 if eval "$MISSING --run true"; then
2626 am_missing_run="$MISSING --run "
2627 else
2628 am_missing_run=
2629 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2630 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2631 fi
2632
2633 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2634 # We used to keeping the `.' as first argument, in order to
2635 # allow $(mkdir_p) to be used without argument. As in
2636 # $(mkdir_p) $(somedir)
2637 # where $(somedir) is conditionally defined. However this is wrong
2638 # for two reasons:
2639 # 1. if the package is installed by a user who cannot write `.'
2640 # make install will fail,
2641 # 2. the above comment should most certainly read
2642 # $(mkdir_p) $(DESTDIR)$(somedir)
2643 # so it does not work when $(somedir) is undefined and
2644 # $(DESTDIR) is not.
2645 # To support the latter case, we have to write
2646 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2647 # so the `.' trick is pointless.
2648 mkdir_p='mkdir -p --'
2649 else
2650 # On NextStep and OpenStep, the `mkdir' command does not
2651 # recognize any option. It will interpret all options as
2652 # directories to create, and then abort because `.' already
2653 # exists.
2654 for d in ./-p ./--version;
2655 do
2656 test -d $d && rmdir $d
2657 done
2658 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2659 if test -f "$ac_aux_dir/mkinstalldirs"; then
2660 mkdir_p='$(mkinstalldirs)'
2661 else
2662 mkdir_p='$(install_sh) -d'
2663 fi
2664 fi
2665
2666 for ac_prog in gawk mawk nawk awk
2667 do
2668 # Extract the first word of "$ac_prog", so it can be a program name with args.
2669 set dummy $ac_prog; ac_word=$2
2670 echo "$as_me:$LINENO: checking for $ac_word" >&5
2671 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2672 if test "${ac_cv_prog_AWK+set}" = set; then
2673 echo $ECHO_N "(cached) $ECHO_C" >&6
2674 else
2675 if test -n "$AWK"; then
2676 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2677 else
2678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2679 for as_dir in $PATH
2680 do
2681 IFS=$as_save_IFS
2682 test -z "$as_dir" && as_dir=.
2683 for ac_exec_ext in '' $ac_executable_extensions; do
2684 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2685 ac_cv_prog_AWK="$ac_prog"
2686 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2687 break 2
2688 fi
2689 done
2690 done
2691
2692 fi
2693 fi
2694 AWK=$ac_cv_prog_AWK
2695 if test -n "$AWK"; then
2696 echo "$as_me:$LINENO: result: $AWK" >&5
2697 echo "${ECHO_T}$AWK" >&6
2698 else
2699 echo "$as_me:$LINENO: result: no" >&5
2700 echo "${ECHO_T}no" >&6
2701 fi
2702
2703 test -n "$AWK" && break
2704 done
2705
2706 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2707 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2708 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2709 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2710 echo $ECHO_N "(cached) $ECHO_C" >&6
2711 else
2712 cat >conftest.make <<\_ACEOF
2713 all:
2714 @echo 'ac_maketemp="$(MAKE)"'
2715 _ACEOF
2716 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2717 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2718 if test -n "$ac_maketemp"; then
2719 eval ac_cv_prog_make_${ac_make}_set=yes
2720 else
2721 eval ac_cv_prog_make_${ac_make}_set=no
2722 fi
2723 rm -f conftest.make
2724 fi
2725 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2726 echo "$as_me:$LINENO: result: yes" >&5
2727 echo "${ECHO_T}yes" >&6
2728 SET_MAKE=
2729 else
2730 echo "$as_me:$LINENO: result: no" >&5
2731 echo "${ECHO_T}no" >&6
2732 SET_MAKE="MAKE=${MAKE-make}"
2733 fi
2734
2735 rm -rf .tst 2>/dev/null
2736 mkdir .tst 2>/dev/null
2737 if test -d .tst; then
2738 am__leading_dot=.
2739 else
2740 am__leading_dot=_
2741 fi
2742 rmdir .tst 2>/dev/null
2743
2744 DEPDIR="${am__leading_dot}deps"
2745
2746 ac_config_commands="$ac_config_commands depfiles"
2747
2748
2749 am_make=${MAKE-make}
2750 cat > confinc << 'END'
2751 am__doit:
2752 @echo done
2753 .PHONY: am__doit
2754 END
2755 # If we don't find an include directive, just comment out the code.
2756 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2757 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2758 am__include="#"
2759 am__quote=
2760 _am_result=none
2761 # First try GNU make style include.
2762 echo "include confinc" > confmf
2763 # We grep out `Entering directory' and `Leaving directory'
2764 # messages which can occur if `w' ends up in MAKEFLAGS.
2765 # In particular we don't look at `^make:' because GNU make might
2766 # be invoked under some other name (usually "gmake"), in which
2767 # case it prints its new name instead of `make'.
2768 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2769 am__include=include
2770 am__quote=
2771 _am_result=GNU
2772 fi
2773 # Now try BSD make style include.
2774 if test "$am__include" = "#"; then
2775 echo '.include "confinc"' > confmf
2776 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2777 am__include=.include
2778 am__quote="\""
2779 _am_result=BSD
2780 fi
2781 fi
2782
2783
2784 echo "$as_me:$LINENO: result: $_am_result" >&5
2785 echo "${ECHO_T}$_am_result" >&6
2786 rm -f confinc confmf
2787
2788 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2789 if test "${enable_dependency_tracking+set}" = set; then
2790 enableval="$enable_dependency_tracking"
2791
2792 fi;
2793 if test "x$enable_dependency_tracking" != xno; then
2794 am_depcomp="$ac_aux_dir/depcomp"
2795 AMDEPBACKSLASH='\'
2796 fi
2797
2798
2799 if test "x$enable_dependency_tracking" != xno; then
2800 AMDEP_TRUE=
2801 AMDEP_FALSE='#'
2802 else
2803 AMDEP_TRUE='#'
2804 AMDEP_FALSE=
2805 fi
2806
2807
2808
2809 # test to see if srcdir already configured
2810 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2811 test -f $srcdir/config.status; then
2812 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2813 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2814 { (exit 1); exit 1; }; }
2815 fi
2816
2817 # test whether we have cygpath
2818 if test -z "$CYGPATH_W"; then
2819 if (cygpath --version) >/dev/null 2>/dev/null; then
2820 CYGPATH_W='cygpath -w'
2821 else
2822 CYGPATH_W=echo
2823 fi
2824 fi
2825
2826
2827 # Define the identity of the package.
2828 PACKAGE=bfd
2829 VERSION=2.15.94
2830
2831
2832 cat >>confdefs.h <<_ACEOF
2833 #define PACKAGE "$PACKAGE"
2834 _ACEOF
2835
2836
2837 cat >>confdefs.h <<_ACEOF
2838 #define VERSION "$VERSION"
2839 _ACEOF
2840
2841 # Some tools Automake needs.
2842
2843 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2844
2845
2846 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2847
2848
2849 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2850
2851
2852 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2853
2854
2855 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2856
2857 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2858
2859 # Installed binaries are usually stripped using `strip' when the user
2860 # run `make install-strip'. However `strip' might not be the right
2861 # tool to use in cross-compilation environments, therefore Automake
2862 # will honor the `STRIP' environment variable to overrule this program.
2863 if test "$cross_compiling" != no; then
2864 if test -n "$ac_tool_prefix"; then
2865 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2866 set dummy ${ac_tool_prefix}strip; ac_word=$2
2867 echo "$as_me:$LINENO: checking for $ac_word" >&5
2868 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2869 if test "${ac_cv_prog_STRIP+set}" = set; then
2870 echo $ECHO_N "(cached) $ECHO_C" >&6
2871 else
2872 if test -n "$STRIP"; then
2873 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2874 else
2875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2876 for as_dir in $PATH
2877 do
2878 IFS=$as_save_IFS
2879 test -z "$as_dir" && as_dir=.
2880 for ac_exec_ext in '' $ac_executable_extensions; do
2881 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2882 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2883 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2884 break 2
2885 fi
2886 done
2887 done
2888
2889 fi
2890 fi
2891 STRIP=$ac_cv_prog_STRIP
2892 if test -n "$STRIP"; then
2893 echo "$as_me:$LINENO: result: $STRIP" >&5
2894 echo "${ECHO_T}$STRIP" >&6
2895 else
2896 echo "$as_me:$LINENO: result: no" >&5
2897 echo "${ECHO_T}no" >&6
2898 fi
2899
2900 fi
2901 if test -z "$ac_cv_prog_STRIP"; then
2902 ac_ct_STRIP=$STRIP
2903 # Extract the first word of "strip", so it can be a program name with args.
2904 set dummy strip; ac_word=$2
2905 echo "$as_me:$LINENO: checking for $ac_word" >&5
2906 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2907 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2908 echo $ECHO_N "(cached) $ECHO_C" >&6
2909 else
2910 if test -n "$ac_ct_STRIP"; then
2911 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2912 else
2913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2914 for as_dir in $PATH
2915 do
2916 IFS=$as_save_IFS
2917 test -z "$as_dir" && as_dir=.
2918 for ac_exec_ext in '' $ac_executable_extensions; do
2919 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2920 ac_cv_prog_ac_ct_STRIP="strip"
2921 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2922 break 2
2923 fi
2924 done
2925 done
2926
2927 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2928 fi
2929 fi
2930 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2931 if test -n "$ac_ct_STRIP"; then
2932 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2933 echo "${ECHO_T}$ac_ct_STRIP" >&6
2934 else
2935 echo "$as_me:$LINENO: result: no" >&5
2936 echo "${ECHO_T}no" >&6
2937 fi
2938
2939 STRIP=$ac_ct_STRIP
2940 else
2941 STRIP="$ac_cv_prog_STRIP"
2942 fi
2943
2944 fi
2945 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2946
2947 # We need awk for the "check" target. The system "awk" is bad on
2948 # some platforms.
2949 # Always define AMTAR for backward compatibility.
2950
2951 AMTAR=${AMTAR-"${am_missing_run}tar"}
2952
2953 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2954
2955
2956
2957
2958 depcc="$CC" am_compiler_list=
2959
2960 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2961 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2962 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2963 echo $ECHO_N "(cached) $ECHO_C" >&6
2964 else
2965 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2966 # We make a subdir and do the tests there. Otherwise we can end up
2967 # making bogus files that we don't know about and never remove. For
2968 # instance it was reported that on HP-UX the gcc test will end up
2969 # making a dummy file named `D' -- because `-MD' means `put the output
2970 # in D'.
2971 mkdir conftest.dir
2972 # Copy depcomp to subdir because otherwise we won't find it if we're
2973 # using a relative directory.
2974 cp "$am_depcomp" conftest.dir
2975 cd conftest.dir
2976 # We will build objects and dependencies in a subdirectory because
2977 # it helps to detect inapplicable dependency modes. For instance
2978 # both Tru64's cc and ICC support -MD to output dependencies as a
2979 # side effect of compilation, but ICC will put the dependencies in
2980 # the current directory while Tru64 will put them in the object
2981 # directory.
2982 mkdir sub
2983
2984 am_cv_CC_dependencies_compiler_type=none
2985 if test "$am_compiler_list" = ""; then
2986 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2987 fi
2988 for depmode in $am_compiler_list; do
2989 # Setup a source with many dependencies, because some compilers
2990 # like to wrap large dependency lists on column 80 (with \), and
2991 # we should not choose a depcomp mode which is confused by this.
2992 #
2993 # We need to recreate these files for each test, as the compiler may
2994 # overwrite some of them when testing with obscure command lines.
2995 # This happens at least with the AIX C compiler.
2996 : > sub/conftest.c
2997 for i in 1 2 3 4 5 6; do
2998 echo '#include "conftst'$i'.h"' >> sub/conftest.c
2999 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3000 # Solaris 8's {/usr,}/bin/sh.
3001 touch sub/conftst$i.h
3002 done
3003 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3004
3005 case $depmode in
3006 nosideeffect)
3007 # after this tag, mechanisms are not by side-effect, so they'll
3008 # only be used when explicitly requested
3009 if test "x$enable_dependency_tracking" = xyes; then
3010 continue
3011 else
3012 break
3013 fi
3014 ;;
3015 none) break ;;
3016 esac
3017 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3018 # mode. It turns out that the SunPro C++ compiler does not properly
3019 # handle `-M -o', and we need to detect this.
3020 if depmode=$depmode \
3021 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3022 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3023 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3024 >/dev/null 2>conftest.err &&
3025 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3026 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3027 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3028 # icc doesn't choke on unknown options, it will just issue warnings
3029 # or remarks (even with -Werror). So we grep stderr for any message
3030 # that says an option was ignored or not supported.
3031 # When given -MP, icc 7.0 and 7.1 complain thusly:
3032 # icc: Command line warning: ignoring option '-M'; no argument required
3033 # The diagnosis changed in icc 8.0:
3034 # icc: Command line remark: option '-MP' not supported
3035 if (grep 'ignoring option' conftest.err ||
3036 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3037 am_cv_CC_dependencies_compiler_type=$depmode
3038 break
3039 fi
3040 fi
3041 done
3042
3043 cd ..
3044 rm -rf conftest.dir
3045 else
3046 am_cv_CC_dependencies_compiler_type=none
3047 fi
3048
3049 fi
3050 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3051 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3052 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3053
3054
3055
3056 if
3057 test "x$enable_dependency_tracking" != xno \
3058 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3059 am__fastdepCC_TRUE=
3060 am__fastdepCC_FALSE='#'
3061 else
3062 am__fastdepCC_TRUE='#'
3063 am__fastdepCC_FALSE=
3064 fi
3065
3066
3067
3068
3069 if test -n "$ac_tool_prefix"; then
3070 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3071 set dummy ${ac_tool_prefix}ar; ac_word=$2
3072 echo "$as_me:$LINENO: checking for $ac_word" >&5
3073 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3074 if test "${ac_cv_prog_AR+set}" = set; then
3075 echo $ECHO_N "(cached) $ECHO_C" >&6
3076 else
3077 if test -n "$AR"; then
3078 ac_cv_prog_AR="$AR" # Let the user override the test.
3079 else
3080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3081 for as_dir in $PATH
3082 do
3083 IFS=$as_save_IFS
3084 test -z "$as_dir" && as_dir=.
3085 for ac_exec_ext in '' $ac_executable_extensions; do
3086 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3087 ac_cv_prog_AR="${ac_tool_prefix}ar"
3088 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3089 break 2
3090 fi
3091 done
3092 done
3093
3094 fi
3095 fi
3096 AR=$ac_cv_prog_AR
3097 if test -n "$AR"; then
3098 echo "$as_me:$LINENO: result: $AR" >&5
3099 echo "${ECHO_T}$AR" >&6
3100 else
3101 echo "$as_me:$LINENO: result: no" >&5
3102 echo "${ECHO_T}no" >&6
3103 fi
3104
3105 fi
3106 if test -z "$ac_cv_prog_AR"; then
3107 ac_ct_AR=$AR
3108 # Extract the first word of "ar", so it can be a program name with args.
3109 set dummy ar; ac_word=$2
3110 echo "$as_me:$LINENO: checking for $ac_word" >&5
3111 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3112 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3113 echo $ECHO_N "(cached) $ECHO_C" >&6
3114 else
3115 if test -n "$ac_ct_AR"; then
3116 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3117 else
3118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3119 for as_dir in $PATH
3120 do
3121 IFS=$as_save_IFS
3122 test -z "$as_dir" && as_dir=.
3123 for ac_exec_ext in '' $ac_executable_extensions; do
3124 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3125 ac_cv_prog_ac_ct_AR="ar"
3126 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3127 break 2
3128 fi
3129 done
3130 done
3131
3132 fi
3133 fi
3134 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3135 if test -n "$ac_ct_AR"; then
3136 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3137 echo "${ECHO_T}$ac_ct_AR" >&6
3138 else
3139 echo "$as_me:$LINENO: result: no" >&5
3140 echo "${ECHO_T}no" >&6
3141 fi
3142
3143 AR=$ac_ct_AR
3144 else
3145 AR="$ac_cv_prog_AR"
3146 fi
3147
3148 if test -n "$ac_tool_prefix"; then
3149 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3150 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3151 echo "$as_me:$LINENO: checking for $ac_word" >&5
3152 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3153 if test "${ac_cv_prog_RANLIB+set}" = set; then
3154 echo $ECHO_N "(cached) $ECHO_C" >&6
3155 else
3156 if test -n "$RANLIB"; then
3157 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3158 else
3159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3160 for as_dir in $PATH
3161 do
3162 IFS=$as_save_IFS
3163 test -z "$as_dir" && as_dir=.
3164 for ac_exec_ext in '' $ac_executable_extensions; do
3165 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3166 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3167 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3168 break 2
3169 fi
3170 done
3171 done
3172
3173 fi
3174 fi
3175 RANLIB=$ac_cv_prog_RANLIB
3176 if test -n "$RANLIB"; then
3177 echo "$as_me:$LINENO: result: $RANLIB" >&5
3178 echo "${ECHO_T}$RANLIB" >&6
3179 else
3180 echo "$as_me:$LINENO: result: no" >&5
3181 echo "${ECHO_T}no" >&6
3182 fi
3183
3184 fi
3185 if test -z "$ac_cv_prog_RANLIB"; then
3186 ac_ct_RANLIB=$RANLIB
3187 # Extract the first word of "ranlib", so it can be a program name with args.
3188 set dummy ranlib; ac_word=$2
3189 echo "$as_me:$LINENO: checking for $ac_word" >&5
3190 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3191 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3192 echo $ECHO_N "(cached) $ECHO_C" >&6
3193 else
3194 if test -n "$ac_ct_RANLIB"; then
3195 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3196 else
3197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3198 for as_dir in $PATH
3199 do
3200 IFS=$as_save_IFS
3201 test -z "$as_dir" && as_dir=.
3202 for ac_exec_ext in '' $ac_executable_extensions; do
3203 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3204 ac_cv_prog_ac_ct_RANLIB="ranlib"
3205 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3206 break 2
3207 fi
3208 done
3209 done
3210
3211 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3212 fi
3213 fi
3214 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3215 if test -n "$ac_ct_RANLIB"; then
3216 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3217 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3218 else
3219 echo "$as_me:$LINENO: result: no" >&5
3220 echo "${ECHO_T}no" >&6
3221 fi
3222
3223 RANLIB=$ac_ct_RANLIB
3224 else
3225 RANLIB="$ac_cv_prog_RANLIB"
3226 fi
3227
3228
3229 # Check whether --enable-shared or --disable-shared was given.
3230 if test "${enable_shared+set}" = set; then
3231 enableval="$enable_shared"
3232 p=${PACKAGE-default}
3233 case $enableval in
3234 yes) enable_shared=yes ;;
3235 no) enable_shared=no ;;
3236 *)
3237 enable_shared=no
3238 # Look at the argument we got. We use all the common list separators.
3239 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3240 for pkg in $enableval; do
3241 if test "X$pkg" = "X$p"; then
3242 enable_shared=yes
3243 fi
3244 done
3245 IFS="$ac_save_ifs"
3246 ;;
3247 esac
3248 else
3249 enable_shared=no
3250 fi;
3251
3252 # Check whether --enable-static or --disable-static was given.
3253 if test "${enable_static+set}" = set; then
3254 enableval="$enable_static"
3255 p=${PACKAGE-default}
3256 case $enableval in
3257 yes) enable_static=yes ;;
3258 no) enable_static=no ;;
3259 *)
3260 enable_static=no
3261 # Look at the argument we got. We use all the common list separators.
3262 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3263 for pkg in $enableval; do
3264 if test "X$pkg" = "X$p"; then
3265 enable_static=yes
3266 fi
3267 done
3268 IFS="$ac_save_ifs"
3269 ;;
3270 esac
3271 else
3272 enable_static=yes
3273 fi;
3274 # Check whether --enable-fast-install or --disable-fast-install was given.
3275 if test "${enable_fast_install+set}" = set; then
3276 enableval="$enable_fast_install"
3277 p=${PACKAGE-default}
3278 case $enableval in
3279 yes) enable_fast_install=yes ;;
3280 no) enable_fast_install=no ;;
3281 *)
3282 enable_fast_install=no
3283 # Look at the argument we got. We use all the common list separators.
3284 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3285 for pkg in $enableval; do
3286 if test "X$pkg" = "X$p"; then
3287 enable_fast_install=yes
3288 fi
3289 done
3290 IFS="$ac_save_ifs"
3291 ;;
3292 esac
3293 else
3294 enable_fast_install=yes
3295 fi;
3296
3297 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3298 if test "${with_gnu_ld+set}" = set; then
3299 withval="$with_gnu_ld"
3300 test "$withval" = no || with_gnu_ld=yes
3301 else
3302 with_gnu_ld=no
3303 fi;
3304 ac_prog=ld
3305 if test "$GCC" = yes; then
3306 # Check if gcc -print-prog-name=ld gives a path.
3307 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3308 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3309 case $host in
3310 *-*-mingw*)
3311 # gcc leaves a trailing carriage return which upsets mingw
3312 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3313 *)
3314 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3315 esac
3316 case $ac_prog in
3317 # Accept absolute paths.
3318 [\\/]* | [A-Za-z]:[\\/]*)
3319 re_direlt='/[^/][^/]*/\.\./'
3320 # Canonicalize the path of ld
3321 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3322 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3323 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3324 done
3325 test -z "$LD" && LD="$ac_prog"
3326 ;;
3327 "")
3328 # If it fails, then pretend we aren't using GCC.
3329 ac_prog=ld
3330 ;;
3331 *)
3332 # If it is relative, then search for the first ld in PATH.
3333 with_gnu_ld=unknown
3334 ;;
3335 esac
3336 elif test "$with_gnu_ld" = yes; then
3337 echo "$as_me:$LINENO: checking for GNU ld" >&5
3338 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3339 else
3340 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3341 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3342 fi
3343 if test "${lt_cv_path_LD+set}" = set; then
3344 echo $ECHO_N "(cached) $ECHO_C" >&6
3345 else
3346 if test -z "$LD"; then
3347 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3348 for ac_dir in $PATH; do
3349 test -z "$ac_dir" && ac_dir=.
3350 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3351 lt_cv_path_LD="$ac_dir/$ac_prog"
3352 # Check to see if the program is GNU ld. I'd rather use --version,
3353 # but apparently some GNU ld's only accept -v.
3354 # Break only if it was the GNU/non-GNU ld that we prefer.
3355 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3356 test "$with_gnu_ld" != no && break
3357 else
3358 test "$with_gnu_ld" != yes && break
3359 fi
3360 fi
3361 done
3362 IFS="$ac_save_ifs"
3363 else
3364 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3365 fi
3366 fi
3367
3368 LD="$lt_cv_path_LD"
3369 if test -n "$LD"; then
3370 echo "$as_me:$LINENO: result: $LD" >&5
3371 echo "${ECHO_T}$LD" >&6
3372 else
3373 echo "$as_me:$LINENO: result: no" >&5
3374 echo "${ECHO_T}no" >&6
3375 fi
3376 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3377 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3378 { (exit 1); exit 1; }; }
3379 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3380 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3381 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3382 echo $ECHO_N "(cached) $ECHO_C" >&6
3383 else
3384 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3385 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3386 lt_cv_prog_gnu_ld=yes
3387 else
3388 lt_cv_prog_gnu_ld=no
3389 fi
3390 fi
3391 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3392 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3393 with_gnu_ld=$lt_cv_prog_gnu_ld
3394
3395
3396 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3397 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3398 if test "${lt_cv_ld_reload_flag+set}" = set; then
3399 echo $ECHO_N "(cached) $ECHO_C" >&6
3400 else
3401 lt_cv_ld_reload_flag='-r'
3402 fi
3403 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3404 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3405 reload_flag=$lt_cv_ld_reload_flag
3406 test -n "$reload_flag" && reload_flag=" $reload_flag"
3407
3408 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3409 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3410 if test "${lt_cv_path_NM+set}" = set; then
3411 echo $ECHO_N "(cached) $ECHO_C" >&6
3412 else
3413 if test -n "$NM"; then
3414 # Let the user override the test.
3415 lt_cv_path_NM="$NM"
3416 else
3417 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3418 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3419 test -z "$ac_dir" && ac_dir=.
3420 tmp_nm=$ac_dir/${ac_tool_prefix}nm
3421 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3422 # Check to see if the nm accepts a BSD-compat flag.
3423 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3424 # nm: unknown option "B" ignored
3425 # Tru64's nm complains that /dev/null is an invalid object file
3426 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3427 lt_cv_path_NM="$tmp_nm -B"
3428 break
3429 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3430 lt_cv_path_NM="$tmp_nm -p"
3431 break
3432 else
3433 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3434 continue # so that we can try to find one that supports BSD flags
3435 fi
3436 fi
3437 done
3438 IFS="$ac_save_ifs"
3439 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3440 fi
3441 fi
3442
3443 NM="$lt_cv_path_NM"
3444 echo "$as_me:$LINENO: result: $NM" >&5
3445 echo "${ECHO_T}$NM" >&6
3446
3447 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3448 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3449 LN_S=$as_ln_s
3450 if test "$LN_S" = "ln -s"; then
3451 echo "$as_me:$LINENO: result: yes" >&5
3452 echo "${ECHO_T}yes" >&6
3453 else
3454 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3455 echo "${ECHO_T}no, using $LN_S" >&6
3456 fi
3457
3458 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
3459 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
3460 if test "${lt_cv_deplibs_check_method+set}" = set; then
3461 echo $ECHO_N "(cached) $ECHO_C" >&6
3462 else
3463 lt_cv_file_magic_cmd='$MAGIC_CMD'
3464 lt_cv_file_magic_test_file=
3465 lt_cv_deplibs_check_method='unknown'
3466 # Need to set the preceding variable on all platforms that support
3467 # interlibrary dependencies.
3468 # 'none' -- dependencies not supported.
3469 # `unknown' -- same as none, but documents that we really don't know.
3470 # 'pass_all' -- all dependencies passed with no checks.
3471 # 'test_compile' -- check by making test program.
3472 # 'file_magic [regex]' -- check by looking for files in library path
3473 # which responds to the $file_magic_cmd with a given egrep regex.
3474 # If you have `file' or equivalent on your system and you're not sure
3475 # whether `pass_all' will *always* work, you probably want this one.
3476
3477 case $host_os in
3478 aix*)
3479 lt_cv_deplibs_check_method=pass_all
3480 ;;
3481
3482 beos*)
3483 lt_cv_deplibs_check_method=pass_all
3484 ;;
3485
3486 bsdi4*)
3487 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3488 lt_cv_file_magic_cmd='/usr/bin/file -L'
3489 lt_cv_file_magic_test_file=/shlib/libc.so
3490 ;;
3491
3492 cygwin* | mingw* |pw32*)
3493 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3494 lt_cv_file_magic_cmd='$OBJDUMP -f'
3495 ;;
3496
3497 darwin* | rhapsody*)
3498 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3499 lt_cv_file_magic_cmd='/usr/bin/file -L'
3500 case "$host_os" in
3501 rhapsody* | darwin1.012)
3502 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
3503 ;;
3504 *) # Darwin 1.3 on
3505 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3506 ;;
3507 esac
3508 ;;
3509
3510 freebsd* | kfreebsd*-gnu)
3511 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3512 case $host_cpu in
3513 i*86 )
3514 # Not sure whether the presence of OpenBSD here was a mistake.
3515 # Let's accept both of them until this is cleared up.
3516 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3517 lt_cv_file_magic_cmd=/usr/bin/file
3518 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3519 ;;
3520 esac
3521 else
3522 lt_cv_deplibs_check_method=pass_all
3523 fi
3524 ;;
3525
3526 gnu*)
3527 lt_cv_deplibs_check_method=pass_all
3528 ;;
3529
3530 hpux10.20*|hpux11*)
3531 case $host_cpu in
3532 hppa*)
3533 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3534 lt_cv_file_magic_cmd=/usr/bin/file
3535 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3536 ;;
3537 ia64*)
3538 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3539 lt_cv_file_magic_cmd=/usr/bin/file
3540 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3541 ;;
3542 esac
3543 ;;
3544
3545 irix5* | irix6*)
3546 case $host_os in
3547 irix5*)
3548 # this will be overridden with pass_all, but let us keep it just in case
3549 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3550 ;;
3551 *)
3552 case $LD in
3553 *-32|*"-32 ") libmagic=32-bit;;
3554 *-n32|*"-n32 ") libmagic=N32;;
3555 *-64|*"-64 ") libmagic=64-bit;;
3556 *) libmagic=never-match;;
3557 esac
3558 # this will be overridden with pass_all, but let us keep it just in case
3559 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3560 ;;
3561 esac
3562 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3563 lt_cv_deplibs_check_method=pass_all
3564 ;;
3565
3566 # This must be Linux ELF.
3567 linux-gnu*)
3568 case $host_cpu in
3569 alpha* | mips* | hppa* | i*86 | powerpc* | sparc* | ia64* )
3570 lt_cv_deplibs_check_method=pass_all ;;
3571 *)
3572 # glibc up to 2.1.1 does not perform some relocations on ARM
3573 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3574 esac
3575 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3576 ;;
3577
3578 netbsd* | knetbsd*-gnu)
3579 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3580 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3581 else
3582 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3583 fi
3584 ;;
3585
3586 newsos6)
3587 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3588 lt_cv_file_magic_cmd=/usr/bin/file
3589 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3590 ;;
3591
3592 osf3* | osf4* | osf5*)
3593 # this will be overridden with pass_all, but let us keep it just in case
3594 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3595 lt_cv_file_magic_test_file=/shlib/libc.so
3596 lt_cv_deplibs_check_method=pass_all
3597 ;;
3598
3599 sco3.2v5*)
3600 lt_cv_deplibs_check_method=pass_all
3601 ;;
3602
3603 solaris*)
3604 lt_cv_deplibs_check_method=pass_all
3605 lt_cv_file_magic_test_file=/lib/libc.so
3606 ;;
3607
3608 sysv5uw[78]* | sysv4*uw2*)
3609 lt_cv_deplibs_check_method=pass_all
3610 ;;
3611
3612 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3613 case $host_vendor in
3614 ncr)
3615 lt_cv_deplibs_check_method=pass_all
3616 ;;
3617 motorola)
3618 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]'
3619 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3620 ;;
3621 esac
3622 ;;
3623 esac
3624
3625 fi
3626 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3627 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3628 file_magic_cmd=$lt_cv_file_magic_cmd
3629 deplibs_check_method=$lt_cv_deplibs_check_method
3630
3631
3632
3633
3634 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
3635
3636 # Only perform the check for file, if the check method requires it
3637 case $deplibs_check_method in
3638 file_magic*)
3639 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
3640 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
3641 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
3642 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3643 echo $ECHO_N "(cached) $ECHO_C" >&6
3644 else
3645 case $MAGIC_CMD in
3646 /*)
3647 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3648 ;;
3649 ?:/*)
3650 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3651 ;;
3652 *)
3653 ac_save_MAGIC_CMD="$MAGIC_CMD"
3654 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3655 ac_dummy="/usr/bin:$PATH"
3656 for ac_dir in $ac_dummy; do
3657 test -z "$ac_dir" && ac_dir=.
3658 if test -f $ac_dir/${ac_tool_prefix}file; then
3659 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
3660 if test -n "$file_magic_test_file"; then
3661 case $deplibs_check_method in
3662 "file_magic "*)
3663 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3664 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3665 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3666 egrep "$file_magic_regex" > /dev/null; then
3667 :
3668 else
3669 cat <<EOF 1>&2
3670
3671 *** Warning: the command libtool uses to detect shared libraries,
3672 *** $file_magic_cmd, produces output that libtool cannot recognize.
3673 *** The result is that libtool may fail to recognize shared libraries
3674 *** as such. This will affect the creation of libtool libraries that
3675 *** depend on shared libraries, but programs linked with such libtool
3676 *** libraries will work regardless of this problem. Nevertheless, you
3677 *** may want to report the problem to your system manager and/or to
3678 *** bug-libtool@gnu.org
3679
3680 EOF
3681 fi ;;
3682 esac
3683 fi
3684 break
3685 fi
3686 done
3687 IFS="$ac_save_ifs"
3688 MAGIC_CMD="$ac_save_MAGIC_CMD"
3689 ;;
3690 esac
3691 fi
3692
3693 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3694 if test -n "$MAGIC_CMD"; then
3695 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3696 echo "${ECHO_T}$MAGIC_CMD" >&6
3697 else
3698 echo "$as_me:$LINENO: result: no" >&5
3699 echo "${ECHO_T}no" >&6
3700 fi
3701
3702 if test -z "$lt_cv_path_MAGIC_CMD"; then
3703 if test -n "$ac_tool_prefix"; then
3704 echo "$as_me:$LINENO: checking for file" >&5
3705 echo $ECHO_N "checking for file... $ECHO_C" >&6
3706 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3707 echo $ECHO_N "(cached) $ECHO_C" >&6
3708 else
3709 case $MAGIC_CMD in
3710 /*)
3711 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3712 ;;
3713 ?:/*)
3714 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3715 ;;
3716 *)
3717 ac_save_MAGIC_CMD="$MAGIC_CMD"
3718 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3719 ac_dummy="/usr/bin:$PATH"
3720 for ac_dir in $ac_dummy; do
3721 test -z "$ac_dir" && ac_dir=.
3722 if test -f $ac_dir/file; then
3723 lt_cv_path_MAGIC_CMD="$ac_dir/file"
3724 if test -n "$file_magic_test_file"; then
3725 case $deplibs_check_method in
3726 "file_magic "*)
3727 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3728 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3729 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3730 egrep "$file_magic_regex" > /dev/null; then
3731 :
3732 else
3733 cat <<EOF 1>&2
3734
3735 *** Warning: the command libtool uses to detect shared libraries,
3736 *** $file_magic_cmd, produces output that libtool cannot recognize.
3737 *** The result is that libtool may fail to recognize shared libraries
3738 *** as such. This will affect the creation of libtool libraries that
3739 *** depend on shared libraries, but programs linked with such libtool
3740 *** libraries will work regardless of this problem. Nevertheless, you
3741 *** may want to report the problem to your system manager and/or to
3742 *** bug-libtool@gnu.org
3743
3744 EOF
3745 fi ;;
3746 esac
3747 fi
3748 break
3749 fi
3750 done
3751 IFS="$ac_save_ifs"
3752 MAGIC_CMD="$ac_save_MAGIC_CMD"
3753 ;;
3754 esac
3755 fi
3756
3757 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3758 if test -n "$MAGIC_CMD"; then
3759 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3760 echo "${ECHO_T}$MAGIC_CMD" >&6
3761 else
3762 echo "$as_me:$LINENO: result: no" >&5
3763 echo "${ECHO_T}no" >&6
3764 fi
3765
3766 else
3767 MAGIC_CMD=:
3768 fi
3769 fi
3770
3771 fi
3772 ;;
3773 esac
3774
3775 if test -n "$ac_tool_prefix"; then
3776 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3777 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3778 echo "$as_me:$LINENO: checking for $ac_word" >&5
3779 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3780 if test "${ac_cv_prog_RANLIB+set}" = set; then
3781 echo $ECHO_N "(cached) $ECHO_C" >&6
3782 else
3783 if test -n "$RANLIB"; then
3784 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3785 else
3786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3787 for as_dir in $PATH
3788 do
3789 IFS=$as_save_IFS
3790 test -z "$as_dir" && as_dir=.
3791 for ac_exec_ext in '' $ac_executable_extensions; do
3792 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3793 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3794 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3795 break 2
3796 fi
3797 done
3798 done
3799
3800 fi
3801 fi
3802 RANLIB=$ac_cv_prog_RANLIB
3803 if test -n "$RANLIB"; then
3804 echo "$as_me:$LINENO: result: $RANLIB" >&5
3805 echo "${ECHO_T}$RANLIB" >&6
3806 else
3807 echo "$as_me:$LINENO: result: no" >&5
3808 echo "${ECHO_T}no" >&6
3809 fi
3810
3811 fi
3812 if test -z "$ac_cv_prog_RANLIB"; then
3813 ac_ct_RANLIB=$RANLIB
3814 # Extract the first word of "ranlib", so it can be a program name with args.
3815 set dummy ranlib; ac_word=$2
3816 echo "$as_me:$LINENO: checking for $ac_word" >&5
3817 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3818 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3819 echo $ECHO_N "(cached) $ECHO_C" >&6
3820 else
3821 if test -n "$ac_ct_RANLIB"; then
3822 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3823 else
3824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3825 for as_dir in $PATH
3826 do
3827 IFS=$as_save_IFS
3828 test -z "$as_dir" && as_dir=.
3829 for ac_exec_ext in '' $ac_executable_extensions; do
3830 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3831 ac_cv_prog_ac_ct_RANLIB="ranlib"
3832 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3833 break 2
3834 fi
3835 done
3836 done
3837
3838 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3839 fi
3840 fi
3841 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3842 if test -n "$ac_ct_RANLIB"; then
3843 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3844 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3845 else
3846 echo "$as_me:$LINENO: result: no" >&5
3847 echo "${ECHO_T}no" >&6
3848 fi
3849
3850 RANLIB=$ac_ct_RANLIB
3851 else
3852 RANLIB="$ac_cv_prog_RANLIB"
3853 fi
3854
3855 if test -n "$ac_tool_prefix"; then
3856 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3857 set dummy ${ac_tool_prefix}strip; ac_word=$2
3858 echo "$as_me:$LINENO: checking for $ac_word" >&5
3859 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3860 if test "${ac_cv_prog_STRIP+set}" = set; then
3861 echo $ECHO_N "(cached) $ECHO_C" >&6
3862 else
3863 if test -n "$STRIP"; then
3864 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3865 else
3866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3867 for as_dir in $PATH
3868 do
3869 IFS=$as_save_IFS
3870 test -z "$as_dir" && as_dir=.
3871 for ac_exec_ext in '' $ac_executable_extensions; do
3872 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3873 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3874 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3875 break 2
3876 fi
3877 done
3878 done
3879
3880 fi
3881 fi
3882 STRIP=$ac_cv_prog_STRIP
3883 if test -n "$STRIP"; then
3884 echo "$as_me:$LINENO: result: $STRIP" >&5
3885 echo "${ECHO_T}$STRIP" >&6
3886 else
3887 echo "$as_me:$LINENO: result: no" >&5
3888 echo "${ECHO_T}no" >&6
3889 fi
3890
3891 fi
3892 if test -z "$ac_cv_prog_STRIP"; then
3893 ac_ct_STRIP=$STRIP
3894 # Extract the first word of "strip", so it can be a program name with args.
3895 set dummy strip; ac_word=$2
3896 echo "$as_me:$LINENO: checking for $ac_word" >&5
3897 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3898 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3899 echo $ECHO_N "(cached) $ECHO_C" >&6
3900 else
3901 if test -n "$ac_ct_STRIP"; then
3902 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3903 else
3904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3905 for as_dir in $PATH
3906 do
3907 IFS=$as_save_IFS
3908 test -z "$as_dir" && as_dir=.
3909 for ac_exec_ext in '' $ac_executable_extensions; do
3910 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3911 ac_cv_prog_ac_ct_STRIP="strip"
3912 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3913 break 2
3914 fi
3915 done
3916 done
3917
3918 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3919 fi
3920 fi
3921 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3922 if test -n "$ac_ct_STRIP"; then
3923 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3924 echo "${ECHO_T}$ac_ct_STRIP" >&6
3925 else
3926 echo "$as_me:$LINENO: result: no" >&5
3927 echo "${ECHO_T}no" >&6
3928 fi
3929
3930 STRIP=$ac_ct_STRIP
3931 else
3932 STRIP="$ac_cv_prog_STRIP"
3933 fi
3934
3935
3936 # Check for any special flags to pass to ltconfig.
3937 libtool_flags="--cache-file=$cache_file"
3938 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
3939 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
3940 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
3941 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
3942 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
3943
3944
3945 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3946 if test "${enable_libtool_lock+set}" = set; then
3947 enableval="$enable_libtool_lock"
3948
3949 fi;
3950 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
3951 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
3952
3953
3954 # Check whether --with-pic or --without-pic was given.
3955 if test "${with_pic+set}" = set; then
3956 withval="$with_pic"
3957 pic_mode="$withval"
3958 else
3959 pic_mode=default
3960 fi;
3961 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
3962 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
3963
3964 # Some flags need to be propagated to the compiler or linker for good
3965 # libtool support.
3966 case $host in
3967 *-*-irix6*)
3968 # Find out which ABI we are using.
3969 echo '#line 3969 "configure"' > conftest.$ac_ext
3970 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3971 (eval $ac_compile) 2>&5
3972 ac_status=$?
3973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3974 (exit $ac_status); }; then
3975 if test "$lt_cv_prog_gnu_ld" = yes; then
3976 case `/usr/bin/file conftest.$ac_objext` in
3977 *32-bit*)
3978 LD="${LD-ld} -melf32bsmip"
3979 ;;
3980 *N32*)
3981 LD="${LD-ld} -melf32bmipn32"
3982 ;;
3983 *64-bit*)
3984 LD="${LD-ld} -melf64bmip"
3985 ;;
3986 esac
3987 else
3988 case `/usr/bin/file conftest.$ac_objext` in
3989 *32-bit*)
3990 LD="${LD-ld} -32"
3991 ;;
3992 *N32*)
3993 LD="${LD-ld} -n32"
3994 ;;
3995 *64-bit*)
3996 LD="${LD-ld} -64"
3997 ;;
3998 esac
3999 fi
4000 fi
4001 rm -rf conftest*
4002 ;;
4003
4004 ia64-*-hpux*)
4005 # Find out which ABI we are using.
4006 echo 'int i;' > conftest.$ac_ext
4007 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4008 (eval $ac_compile) 2>&5
4009 ac_status=$?
4010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4011 (exit $ac_status); }; then
4012 case "`/usr/bin/file conftest.o`" in
4013 *ELF-32*)
4014 HPUX_IA64_MODE="32"
4015 ;;
4016 *ELF-64*)
4017 HPUX_IA64_MODE="64"
4018 ;;
4019 esac
4020 fi
4021 rm -rf conftest*
4022 ;;
4023
4024 *-*-sco3.2v5*)
4025 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4026 SAVE_CFLAGS="$CFLAGS"
4027 CFLAGS="$CFLAGS -belf"
4028 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4029 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4030 if test "${lt_cv_cc_needs_belf+set}" = set; then
4031 echo $ECHO_N "(cached) $ECHO_C" >&6
4032 else
4033
4034
4035 ac_ext=c
4036 ac_cpp='$CPP $CPPFLAGS'
4037 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4038 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4039 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4040
4041 cat >conftest.$ac_ext <<_ACEOF
4042 /* confdefs.h. */
4043 _ACEOF
4044 cat confdefs.h >>conftest.$ac_ext
4045 cat >>conftest.$ac_ext <<_ACEOF
4046 /* end confdefs.h. */
4047
4048 int
4049 main ()
4050 {
4051
4052 ;
4053 return 0;
4054 }
4055 _ACEOF
4056 rm -f conftest.$ac_objext conftest$ac_exeext
4057 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4058 (eval $ac_link) 2>conftest.er1
4059 ac_status=$?
4060 grep -v '^ *+' conftest.er1 >conftest.err
4061 rm -f conftest.er1
4062 cat conftest.err >&5
4063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4064 (exit $ac_status); } &&
4065 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4067 (eval $ac_try) 2>&5
4068 ac_status=$?
4069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4070 (exit $ac_status); }; } &&
4071 { ac_try='test -s conftest$ac_exeext'
4072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4073 (eval $ac_try) 2>&5
4074 ac_status=$?
4075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4076 (exit $ac_status); }; }; then
4077 lt_cv_cc_needs_belf=yes
4078 else
4079 echo "$as_me: failed program was:" >&5
4080 sed 's/^/| /' conftest.$ac_ext >&5
4081
4082 lt_cv_cc_needs_belf=no
4083 fi
4084 rm -f conftest.err conftest.$ac_objext \
4085 conftest$ac_exeext conftest.$ac_ext
4086 ac_ext=c
4087 ac_cpp='$CPP $CPPFLAGS'
4088 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4089 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4090 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4091
4092 fi
4093 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4094 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4095 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4096 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4097 CFLAGS="$SAVE_CFLAGS"
4098 fi
4099 ;;
4100
4101
4102 esac
4103
4104
4105 # Save cache, so that ltconfig can load it
4106 cat >confcache <<\_ACEOF
4107 # This file is a shell script that caches the results of configure
4108 # tests run on this system so they can be shared between configure
4109 # scripts and configure runs, see configure's option --config-cache.
4110 # It is not useful on other systems. If it contains results you don't
4111 # want to keep, you may remove or edit it.
4112 #
4113 # config.status only pays attention to the cache file if you give it
4114 # the --recheck option to rerun configure.
4115 #
4116 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4117 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4118 # following values.
4119
4120 _ACEOF
4121
4122 # The following way of writing the cache mishandles newlines in values,
4123 # but we know of no workaround that is simple, portable, and efficient.
4124 # So, don't put newlines in cache variables' values.
4125 # Ultrix sh set writes to stderr and can't be redirected directly,
4126 # and sets the high bit in the cache file unless we assign to the vars.
4127 {
4128 (set) 2>&1 |
4129 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4130 *ac_space=\ *)
4131 # `set' does not quote correctly, so add quotes (double-quote
4132 # substitution turns \\\\ into \\, and sed turns \\ into \).
4133 sed -n \
4134 "s/'/'\\\\''/g;
4135 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4136 ;;
4137 *)
4138 # `set' quotes correctly as required by POSIX, so do not add quotes.
4139 sed -n \
4140 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4141 ;;
4142 esac;
4143 } |
4144 sed '
4145 t clear
4146 : clear
4147 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4148 t end
4149 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4150 : end' >>confcache
4151 if diff $cache_file confcache >/dev/null 2>&1; then :; else
4152 if test -w $cache_file; then
4153 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4154 cat confcache >$cache_file
4155 else
4156 echo "not updating unwritable cache $cache_file"
4157 fi
4158 fi
4159 rm -f confcache
4160
4161 # Actually configure libtool. ac_aux_dir is where install-sh is found.
4162 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
4163 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
4164 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
4165 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
4166 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
4167 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
4168 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
4169 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
4170 || { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
4171 echo "$as_me: error: libtool configure failed" >&2;}
4172 { (exit 1); exit 1; }; }
4173
4174 # Reload cache, that may have been modified by ltconfig
4175 if test -r "$cache_file"; then
4176 # Some versions of bash will fail to source /dev/null (special
4177 # files actually), so we avoid doing that.
4178 if test -f "$cache_file"; then
4179 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
4180 echo "$as_me: loading cache $cache_file" >&6;}
4181 case $cache_file in
4182 [\\/]* | ?:[\\/]* ) . $cache_file;;
4183 *) . ./$cache_file;;
4184 esac
4185 fi
4186 else
4187 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
4188 echo "$as_me: creating cache $cache_file" >&6;}
4189 >$cache_file
4190 fi
4191
4192
4193 # This can be used to rebuild libtool when needed
4194 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
4195
4196 # Always use our own libtool.
4197 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
4198
4199 # Redirect the config.log output again, so that the ltconfig log is not
4200 # clobbered by the next message.
4201 exec 5>>./config.log
4202
4203
4204
4205
4206
4207
4208
4209 # Check whether --enable-64-bit-bfd or --disable-64-bit-bfd was given.
4210 if test "${enable_64_bit_bfd+set}" = set; then
4211 enableval="$enable_64_bit_bfd"
4212 case "${enableval}" in
4213 yes) want64=true ;;
4214 no) want64=false ;;
4215 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for 64-bit-bfd option" >&5
4216 echo "$as_me: error: bad value ${enableval} for 64-bit-bfd option" >&2;}
4217 { (exit 1); exit 1; }; } ;;
4218 esac
4219 else
4220 want64=false
4221 fi; # Check whether --enable-targets or --disable-targets was given.
4222 if test "${enable_targets+set}" = set; then
4223 enableval="$enable_targets"
4224 case "${enableval}" in
4225 yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5
4226 echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;}
4227 { (exit 1); exit 1; }; }
4228 ;;
4229 no) enable_targets= ;;
4230 *) enable_targets=$enableval ;;
4231 esac
4232 fi; # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
4233 if test "${enable_commonbfdlib+set}" = set; then
4234 enableval="$enable_commonbfdlib"
4235 case "${enableval}" in
4236 yes) commonbfdlib=true ;;
4237 no) commonbfdlib=false ;;
4238 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for BFD commonbfdlib option" >&5
4239 echo "$as_me: error: bad value ${enableval} for BFD commonbfdlib option" >&2;}
4240 { (exit 1); exit 1; }; } ;;
4241 esac
4242 fi;
4243 # Check whether --with-mmap or --without-mmap was given.
4244 if test "${with_mmap+set}" = set; then
4245 withval="$with_mmap"
4246 case "${withval}" in
4247 yes) want_mmap=true ;;
4248 no) want_mmap=false ;;
4249 *) { { echo "$as_me:$LINENO: error: bad value ${withval} for BFD with-mmap option" >&5
4250 echo "$as_me: error: bad value ${withval} for BFD with-mmap option" >&2;}
4251 { (exit 1); exit 1; }; } ;;
4252 esac
4253 else
4254 want_mmap=false
4255 fi;
4256 build_warnings="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
4257 # Check whether --enable-build-warnings or --disable-build-warnings was given.
4258 if test "${enable_build_warnings+set}" = set; then
4259 enableval="$enable_build_warnings"
4260 case "${enableval}" in
4261 yes) ;;
4262 no) build_warnings="-w";;
4263 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
4264 build_warnings="${build_warnings} ${t}";;
4265 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
4266 build_warnings="${t} ${build_warnings}";;
4267 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
4268 esac
4269 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
4270 echo "Setting warning flags = $build_warnings" 6>&1
4271 fi
4272 fi; WARN_CFLAGS=""
4273 if test "x${build_warnings}" != x && test "x$GCC" = xyes ; then
4274 WARN_CFLAGS="${build_warnings}"
4275 fi
4276
4277
4278 ac_config_headers="$ac_config_headers config.h:config.in"
4279
4280
4281 if test -z "$target" ; then
4282 { { echo "$as_me:$LINENO: error: Unrecognized target system type; please check config.sub." >&5
4283 echo "$as_me: error: Unrecognized target system type; please check config.sub." >&2;}
4284 { (exit 1); exit 1; }; }
4285 fi
4286
4287 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
4288 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
4289 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4290 if test "${enable_maintainer_mode+set}" = set; then
4291 enableval="$enable_maintainer_mode"
4292 USE_MAINTAINER_MODE=$enableval
4293 else
4294 USE_MAINTAINER_MODE=no
4295 fi;
4296 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
4297 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
4298
4299
4300 if test $USE_MAINTAINER_MODE = yes; then
4301 MAINTAINER_MODE_TRUE=
4302 MAINTAINER_MODE_FALSE='#'
4303 else
4304 MAINTAINER_MODE_TRUE='#'
4305 MAINTAINER_MODE_FALSE=
4306 fi
4307
4308 MAINT=$MAINTAINER_MODE_TRUE
4309
4310
4311 case ${build_alias} in
4312 "") build_noncanonical=${build} ;;
4313 *) build_noncanonical=${build_alias} ;;
4314 esac
4315
4316 case ${host_alias} in
4317 "") host_noncanonical=${build_noncanonical} ;;
4318 *) host_noncanonical=${host_alias} ;;
4319 esac
4320
4321 case ${target_alias} in
4322 "") target_noncanonical=${host_noncanonical} ;;
4323 *) target_noncanonical=${target_alias} ;;
4324 esac
4325
4326 echo "$as_me:$LINENO: checking whether to install libbfd" >&5
4327 echo $ECHO_N "checking whether to install libbfd... $ECHO_C" >&6
4328 # Check whether --enable-install-libbfd or --disable-install-libbfd was given.
4329 if test "${enable_install_libbfd+set}" = set; then
4330 enableval="$enable_install_libbfd"
4331 install_libbfd_p=$enableval
4332 else
4333 if test "${host}" = "${target}" || test "$enable_shared" = "yes"; then
4334 install_libbfd_p=yes
4335 else
4336 install_libbfd_p=no
4337 fi
4338 fi;
4339 echo "$as_me:$LINENO: result: $install_libbfd_p" >&5
4340 echo "${ECHO_T}$install_libbfd_p" >&6
4341
4342
4343 if test $install_libbfd_p = yes; then
4344 INSTALL_LIBBFD_TRUE=
4345 INSTALL_LIBBFD_FALSE='#'
4346 else
4347 INSTALL_LIBBFD_TRUE='#'
4348 INSTALL_LIBBFD_FALSE=
4349 fi
4350
4351 # Need _noncanonical variables for this.
4352
4353
4354
4355
4356 # libbfd.a is a host library containing target dependent code
4357 bfdlibdir='$(libdir)'
4358 bfdincludedir='$(includedir)'
4359 if test "${host}" != "${target}"; then
4360 bfdlibdir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/lib'
4361 bfdincludedir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/include'
4362 fi
4363
4364
4365
4366
4367
4368
4369 host64=false
4370 target64=false
4371 bfd_default_target_size=32
4372
4373 # host stuff:
4374
4375 ac_ext=c
4376 ac_cpp='$CPP $CPPFLAGS'
4377 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4378 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4379 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4380 if test -n "$ac_tool_prefix"; then
4381 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4382 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4383 echo "$as_me:$LINENO: checking for $ac_word" >&5
4384 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4385 if test "${ac_cv_prog_CC+set}" = set; then
4386 echo $ECHO_N "(cached) $ECHO_C" >&6
4387 else
4388 if test -n "$CC"; then
4389 ac_cv_prog_CC="$CC" # Let the user override the test.
4390 else
4391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4392 for as_dir in $PATH
4393 do
4394 IFS=$as_save_IFS
4395 test -z "$as_dir" && as_dir=.
4396 for ac_exec_ext in '' $ac_executable_extensions; do
4397 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4398 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4399 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4400 break 2
4401 fi
4402 done
4403 done
4404
4405 fi
4406 fi
4407 CC=$ac_cv_prog_CC
4408 if test -n "$CC"; then
4409 echo "$as_me:$LINENO: result: $CC" >&5
4410 echo "${ECHO_T}$CC" >&6
4411 else
4412 echo "$as_me:$LINENO: result: no" >&5
4413 echo "${ECHO_T}no" >&6
4414 fi
4415
4416 fi
4417 if test -z "$ac_cv_prog_CC"; then
4418 ac_ct_CC=$CC
4419 # Extract the first word of "gcc", so it can be a program name with args.
4420 set dummy gcc; ac_word=$2
4421 echo "$as_me:$LINENO: checking for $ac_word" >&5
4422 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4423 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4424 echo $ECHO_N "(cached) $ECHO_C" >&6
4425 else
4426 if test -n "$ac_ct_CC"; then
4427 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4428 else
4429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4430 for as_dir in $PATH
4431 do
4432 IFS=$as_save_IFS
4433 test -z "$as_dir" && as_dir=.
4434 for ac_exec_ext in '' $ac_executable_extensions; do
4435 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4436 ac_cv_prog_ac_ct_CC="gcc"
4437 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4438 break 2
4439 fi
4440 done
4441 done
4442
4443 fi
4444 fi
4445 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4446 if test -n "$ac_ct_CC"; then
4447 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4448 echo "${ECHO_T}$ac_ct_CC" >&6
4449 else
4450 echo "$as_me:$LINENO: result: no" >&5
4451 echo "${ECHO_T}no" >&6
4452 fi
4453
4454 CC=$ac_ct_CC
4455 else
4456 CC="$ac_cv_prog_CC"
4457 fi
4458
4459 if test -z "$CC"; then
4460 if test -n "$ac_tool_prefix"; then
4461 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4462 set dummy ${ac_tool_prefix}cc; ac_word=$2
4463 echo "$as_me:$LINENO: checking for $ac_word" >&5
4464 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4465 if test "${ac_cv_prog_CC+set}" = set; then
4466 echo $ECHO_N "(cached) $ECHO_C" >&6
4467 else
4468 if test -n "$CC"; then
4469 ac_cv_prog_CC="$CC" # Let the user override the test.
4470 else
4471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4472 for as_dir in $PATH
4473 do
4474 IFS=$as_save_IFS
4475 test -z "$as_dir" && as_dir=.
4476 for ac_exec_ext in '' $ac_executable_extensions; do
4477 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4478 ac_cv_prog_CC="${ac_tool_prefix}cc"
4479 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4480 break 2
4481 fi
4482 done
4483 done
4484
4485 fi
4486 fi
4487 CC=$ac_cv_prog_CC
4488 if test -n "$CC"; then
4489 echo "$as_me:$LINENO: result: $CC" >&5
4490 echo "${ECHO_T}$CC" >&6
4491 else
4492 echo "$as_me:$LINENO: result: no" >&5
4493 echo "${ECHO_T}no" >&6
4494 fi
4495
4496 fi
4497 if test -z "$ac_cv_prog_CC"; then
4498 ac_ct_CC=$CC
4499 # Extract the first word of "cc", so it can be a program name with args.
4500 set dummy cc; ac_word=$2
4501 echo "$as_me:$LINENO: checking for $ac_word" >&5
4502 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4503 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4504 echo $ECHO_N "(cached) $ECHO_C" >&6
4505 else
4506 if test -n "$ac_ct_CC"; then
4507 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4508 else
4509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4510 for as_dir in $PATH
4511 do
4512 IFS=$as_save_IFS
4513 test -z "$as_dir" && as_dir=.
4514 for ac_exec_ext in '' $ac_executable_extensions; do
4515 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4516 ac_cv_prog_ac_ct_CC="cc"
4517 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4518 break 2
4519 fi
4520 done
4521 done
4522
4523 fi
4524 fi
4525 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4526 if test -n "$ac_ct_CC"; then
4527 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4528 echo "${ECHO_T}$ac_ct_CC" >&6
4529 else
4530 echo "$as_me:$LINENO: result: no" >&5
4531 echo "${ECHO_T}no" >&6
4532 fi
4533
4534 CC=$ac_ct_CC
4535 else
4536 CC="$ac_cv_prog_CC"
4537 fi
4538
4539 fi
4540 if test -z "$CC"; then
4541 # Extract the first word of "cc", so it can be a program name with args.
4542 set dummy cc; ac_word=$2
4543 echo "$as_me:$LINENO: checking for $ac_word" >&5
4544 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4545 if test "${ac_cv_prog_CC+set}" = set; then
4546 echo $ECHO_N "(cached) $ECHO_C" >&6
4547 else
4548 if test -n "$CC"; then
4549 ac_cv_prog_CC="$CC" # Let the user override the test.
4550 else
4551 ac_prog_rejected=no
4552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4553 for as_dir in $PATH
4554 do
4555 IFS=$as_save_IFS
4556 test -z "$as_dir" && as_dir=.
4557 for ac_exec_ext in '' $ac_executable_extensions; do
4558 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4559 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4560 ac_prog_rejected=yes
4561 continue
4562 fi
4563 ac_cv_prog_CC="cc"
4564 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4565 break 2
4566 fi
4567 done
4568 done
4569
4570 if test $ac_prog_rejected = yes; then
4571 # We found a bogon in the path, so make sure we never use it.
4572 set dummy $ac_cv_prog_CC
4573 shift
4574 if test $# != 0; then
4575 # We chose a different compiler from the bogus one.
4576 # However, it has the same basename, so the bogon will be chosen
4577 # first if we set CC to just the basename; use the full file name.
4578 shift
4579 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4580 fi
4581 fi
4582 fi
4583 fi
4584 CC=$ac_cv_prog_CC
4585 if test -n "$CC"; then
4586 echo "$as_me:$LINENO: result: $CC" >&5
4587 echo "${ECHO_T}$CC" >&6
4588 else
4589 echo "$as_me:$LINENO: result: no" >&5
4590 echo "${ECHO_T}no" >&6
4591 fi
4592
4593 fi
4594 if test -z "$CC"; then
4595 if test -n "$ac_tool_prefix"; then
4596 for ac_prog in cl
4597 do
4598 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4599 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4600 echo "$as_me:$LINENO: checking for $ac_word" >&5
4601 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4602 if test "${ac_cv_prog_CC+set}" = set; then
4603 echo $ECHO_N "(cached) $ECHO_C" >&6
4604 else
4605 if test -n "$CC"; then
4606 ac_cv_prog_CC="$CC" # Let the user override the test.
4607 else
4608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4609 for as_dir in $PATH
4610 do
4611 IFS=$as_save_IFS
4612 test -z "$as_dir" && as_dir=.
4613 for ac_exec_ext in '' $ac_executable_extensions; do
4614 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4615 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4616 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4617 break 2
4618 fi
4619 done
4620 done
4621
4622 fi
4623 fi
4624 CC=$ac_cv_prog_CC
4625 if test -n "$CC"; then
4626 echo "$as_me:$LINENO: result: $CC" >&5
4627 echo "${ECHO_T}$CC" >&6
4628 else
4629 echo "$as_me:$LINENO: result: no" >&5
4630 echo "${ECHO_T}no" >&6
4631 fi
4632
4633 test -n "$CC" && break
4634 done
4635 fi
4636 if test -z "$CC"; then
4637 ac_ct_CC=$CC
4638 for ac_prog in cl
4639 do
4640 # Extract the first word of "$ac_prog", so it can be a program name with args.
4641 set dummy $ac_prog; ac_word=$2
4642 echo "$as_me:$LINENO: checking for $ac_word" >&5
4643 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4644 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4645 echo $ECHO_N "(cached) $ECHO_C" >&6
4646 else
4647 if test -n "$ac_ct_CC"; then
4648 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4649 else
4650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4651 for as_dir in $PATH
4652 do
4653 IFS=$as_save_IFS
4654 test -z "$as_dir" && as_dir=.
4655 for ac_exec_ext in '' $ac_executable_extensions; do
4656 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4657 ac_cv_prog_ac_ct_CC="$ac_prog"
4658 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4659 break 2
4660 fi
4661 done
4662 done
4663
4664 fi
4665 fi
4666 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4667 if test -n "$ac_ct_CC"; then
4668 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4669 echo "${ECHO_T}$ac_ct_CC" >&6
4670 else
4671 echo "$as_me:$LINENO: result: no" >&5
4672 echo "${ECHO_T}no" >&6
4673 fi
4674
4675 test -n "$ac_ct_CC" && break
4676 done
4677
4678 CC=$ac_ct_CC
4679 fi
4680
4681 fi
4682
4683
4684 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4685 See \`config.log' for more details." >&5
4686 echo "$as_me: error: no acceptable C compiler found in \$PATH
4687 See \`config.log' for more details." >&2;}
4688 { (exit 1); exit 1; }; }
4689
4690 # Provide some information about the compiler.
4691 echo "$as_me:$LINENO:" \
4692 "checking for C compiler version" >&5
4693 ac_compiler=`set X $ac_compile; echo $2`
4694 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4695 (eval $ac_compiler --version </dev/null >&5) 2>&5
4696 ac_status=$?
4697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4698 (exit $ac_status); }
4699 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4700 (eval $ac_compiler -v </dev/null >&5) 2>&5
4701 ac_status=$?
4702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4703 (exit $ac_status); }
4704 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4705 (eval $ac_compiler -V </dev/null >&5) 2>&5
4706 ac_status=$?
4707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4708 (exit $ac_status); }
4709
4710 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4711 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
4712 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4713 echo $ECHO_N "(cached) $ECHO_C" >&6
4714 else
4715 cat >conftest.$ac_ext <<_ACEOF
4716 /* confdefs.h. */
4717 _ACEOF
4718 cat confdefs.h >>conftest.$ac_ext
4719 cat >>conftest.$ac_ext <<_ACEOF
4720 /* end confdefs.h. */
4721
4722 int
4723 main ()
4724 {
4725 #ifndef __GNUC__
4726 choke me
4727 #endif
4728
4729 ;
4730 return 0;
4731 }
4732 _ACEOF
4733 rm -f conftest.$ac_objext
4734 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4735 (eval $ac_compile) 2>conftest.er1
4736 ac_status=$?
4737 grep -v '^ *+' conftest.er1 >conftest.err
4738 rm -f conftest.er1
4739 cat conftest.err >&5
4740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4741 (exit $ac_status); } &&
4742 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4744 (eval $ac_try) 2>&5
4745 ac_status=$?
4746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4747 (exit $ac_status); }; } &&
4748 { ac_try='test -s conftest.$ac_objext'
4749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4750 (eval $ac_try) 2>&5
4751 ac_status=$?
4752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4753 (exit $ac_status); }; }; then
4754 ac_compiler_gnu=yes
4755 else
4756 echo "$as_me: failed program was:" >&5
4757 sed 's/^/| /' conftest.$ac_ext >&5
4758
4759 ac_compiler_gnu=no
4760 fi
4761 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4762 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4763
4764 fi
4765 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4766 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
4767 GCC=`test $ac_compiler_gnu = yes && echo yes`
4768 ac_test_CFLAGS=${CFLAGS+set}
4769 ac_save_CFLAGS=$CFLAGS
4770 CFLAGS="-g"
4771 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4772 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
4773 if test "${ac_cv_prog_cc_g+set}" = set; then
4774 echo $ECHO_N "(cached) $ECHO_C" >&6
4775 else
4776 cat >conftest.$ac_ext <<_ACEOF
4777 /* confdefs.h. */
4778 _ACEOF
4779 cat confdefs.h >>conftest.$ac_ext
4780 cat >>conftest.$ac_ext <<_ACEOF
4781 /* end confdefs.h. */
4782
4783 int
4784 main ()
4785 {
4786
4787 ;
4788 return 0;
4789 }
4790 _ACEOF
4791 rm -f conftest.$ac_objext
4792 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4793 (eval $ac_compile) 2>conftest.er1
4794 ac_status=$?
4795 grep -v '^ *+' conftest.er1 >conftest.err
4796 rm -f conftest.er1
4797 cat conftest.err >&5
4798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4799 (exit $ac_status); } &&
4800 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4802 (eval $ac_try) 2>&5
4803 ac_status=$?
4804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4805 (exit $ac_status); }; } &&
4806 { ac_try='test -s conftest.$ac_objext'
4807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4808 (eval $ac_try) 2>&5
4809 ac_status=$?
4810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4811 (exit $ac_status); }; }; then
4812 ac_cv_prog_cc_g=yes
4813 else
4814 echo "$as_me: failed program was:" >&5
4815 sed 's/^/| /' conftest.$ac_ext >&5
4816
4817 ac_cv_prog_cc_g=no
4818 fi
4819 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4820 fi
4821 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4822 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
4823 if test "$ac_test_CFLAGS" = set; then
4824 CFLAGS=$ac_save_CFLAGS
4825 elif test $ac_cv_prog_cc_g = yes; then
4826 if test "$GCC" = yes; then
4827 CFLAGS="-g -O2"
4828 else
4829 CFLAGS="-g"
4830 fi
4831 else
4832 if test "$GCC" = yes; then
4833 CFLAGS="-O2"
4834 else
4835 CFLAGS=
4836 fi
4837 fi
4838 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
4839 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4840 if test "${ac_cv_prog_cc_stdc+set}" = set; then
4841 echo $ECHO_N "(cached) $ECHO_C" >&6
4842 else
4843 ac_cv_prog_cc_stdc=no
4844 ac_save_CC=$CC
4845 cat >conftest.$ac_ext <<_ACEOF
4846 /* confdefs.h. */
4847 _ACEOF
4848 cat confdefs.h >>conftest.$ac_ext
4849 cat >>conftest.$ac_ext <<_ACEOF
4850 /* end confdefs.h. */
4851 #include <stdarg.h>
4852 #include <stdio.h>
4853 #include <sys/types.h>
4854 #include <sys/stat.h>
4855 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4856 struct buf { int x; };
4857 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4858 static char *e (p, i)
4859 char **p;
4860 int i;
4861 {
4862 return p[i];
4863 }
4864 static char *f (char * (*g) (char **, int), char **p, ...)
4865 {
4866 char *s;
4867 va_list v;
4868 va_start (v,p);
4869 s = g (p, va_arg (v,int));
4870 va_end (v);
4871 return s;
4872 }
4873
4874 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4875 function prototypes and stuff, but not '\xHH' hex character constants.
4876 These don't provoke an error unfortunately, instead are silently treated
4877 as 'x'. The following induces an error, until -std1 is added to get
4878 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4879 array size at least. It's necessary to write '\x00'==0 to get something
4880 that's true only with -std1. */
4881 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4882
4883 int test (int i, double x);
4884 struct s1 {int (*f) (int a);};
4885 struct s2 {int (*f) (double a);};
4886 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4887 int argc;
4888 char **argv;
4889 int
4890 main ()
4891 {
4892 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4893 ;
4894 return 0;
4895 }
4896 _ACEOF
4897 # Don't try gcc -ansi; that turns off useful extensions and
4898 # breaks some systems' header files.
4899 # AIX -qlanglvl=ansi
4900 # Ultrix and OSF/1 -std1
4901 # HP-UX 10.20 and later -Ae
4902 # HP-UX older versions -Aa -D_HPUX_SOURCE
4903 # SVR4 -Xc -D__EXTENSIONS__
4904 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4905 do
4906 CC="$ac_save_CC $ac_arg"
4907 rm -f conftest.$ac_objext
4908 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4909 (eval $ac_compile) 2>conftest.er1
4910 ac_status=$?
4911 grep -v '^ *+' conftest.er1 >conftest.err
4912 rm -f conftest.er1
4913 cat conftest.err >&5
4914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4915 (exit $ac_status); } &&
4916 { ac_try='test -z "$ac_c_werror_flag" || 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_objext'
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 ac_cv_prog_cc_stdc=$ac_arg
4929 break
4930 else
4931 echo "$as_me: failed program was:" >&5
4932 sed 's/^/| /' conftest.$ac_ext >&5
4933
4934 fi
4935 rm -f conftest.err conftest.$ac_objext
4936 done
4937 rm -f conftest.$ac_ext conftest.$ac_objext
4938 CC=$ac_save_CC
4939
4940 fi
4941
4942 case "x$ac_cv_prog_cc_stdc" in
4943 x|xno)
4944 echo "$as_me:$LINENO: result: none needed" >&5
4945 echo "${ECHO_T}none needed" >&6 ;;
4946 *)
4947 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4948 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4949 CC="$CC $ac_cv_prog_cc_stdc" ;;
4950 esac
4951
4952 # Some people use a C++ compiler to compile C. Since we use `exit',
4953 # in C++ we need to declare it. In case someone uses the same compiler
4954 # for both compiling C and C++ we need to have the C++ compiler decide
4955 # the declaration of exit, since it's the most demanding environment.
4956 cat >conftest.$ac_ext <<_ACEOF
4957 #ifndef __cplusplus
4958 choke me
4959 #endif
4960 _ACEOF
4961 rm -f conftest.$ac_objext
4962 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4963 (eval $ac_compile) 2>conftest.er1
4964 ac_status=$?
4965 grep -v '^ *+' conftest.er1 >conftest.err
4966 rm -f conftest.er1
4967 cat conftest.err >&5
4968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4969 (exit $ac_status); } &&
4970 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4972 (eval $ac_try) 2>&5
4973 ac_status=$?
4974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4975 (exit $ac_status); }; } &&
4976 { ac_try='test -s conftest.$ac_objext'
4977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4978 (eval $ac_try) 2>&5
4979 ac_status=$?
4980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4981 (exit $ac_status); }; }; then
4982 for ac_declaration in \
4983 '' \
4984 'extern "C" void std::exit (int) throw (); using std::exit;' \
4985 'extern "C" void std::exit (int); using std::exit;' \
4986 'extern "C" void exit (int) throw ();' \
4987 'extern "C" void exit (int);' \
4988 'void exit (int);'
4989 do
4990 cat >conftest.$ac_ext <<_ACEOF
4991 /* confdefs.h. */
4992 _ACEOF
4993 cat confdefs.h >>conftest.$ac_ext
4994 cat >>conftest.$ac_ext <<_ACEOF
4995 /* end confdefs.h. */
4996 $ac_declaration
4997 #include <stdlib.h>
4998 int
4999 main ()
5000 {
5001 exit (42);
5002 ;
5003 return 0;
5004 }
5005 _ACEOF
5006 rm -f conftest.$ac_objext
5007 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5008 (eval $ac_compile) 2>conftest.er1
5009 ac_status=$?
5010 grep -v '^ *+' conftest.er1 >conftest.err
5011 rm -f conftest.er1
5012 cat conftest.err >&5
5013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5014 (exit $ac_status); } &&
5015 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5017 (eval $ac_try) 2>&5
5018 ac_status=$?
5019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5020 (exit $ac_status); }; } &&
5021 { ac_try='test -s conftest.$ac_objext'
5022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5023 (eval $ac_try) 2>&5
5024 ac_status=$?
5025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5026 (exit $ac_status); }; }; then
5027 :
5028 else
5029 echo "$as_me: failed program was:" >&5
5030 sed 's/^/| /' conftest.$ac_ext >&5
5031
5032 continue
5033 fi
5034 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5035 cat >conftest.$ac_ext <<_ACEOF
5036 /* confdefs.h. */
5037 _ACEOF
5038 cat confdefs.h >>conftest.$ac_ext
5039 cat >>conftest.$ac_ext <<_ACEOF
5040 /* end confdefs.h. */
5041 $ac_declaration
5042 int
5043 main ()
5044 {
5045 exit (42);
5046 ;
5047 return 0;
5048 }
5049 _ACEOF
5050 rm -f conftest.$ac_objext
5051 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5052 (eval $ac_compile) 2>conftest.er1
5053 ac_status=$?
5054 grep -v '^ *+' conftest.er1 >conftest.err
5055 rm -f conftest.er1
5056 cat conftest.err >&5
5057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5058 (exit $ac_status); } &&
5059 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5061 (eval $ac_try) 2>&5
5062 ac_status=$?
5063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5064 (exit $ac_status); }; } &&
5065 { ac_try='test -s conftest.$ac_objext'
5066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5067 (eval $ac_try) 2>&5
5068 ac_status=$?
5069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5070 (exit $ac_status); }; }; then
5071 break
5072 else
5073 echo "$as_me: failed program was:" >&5
5074 sed 's/^/| /' conftest.$ac_ext >&5
5075
5076 fi
5077 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5078 done
5079 rm -f conftest*
5080 if test -n "$ac_declaration"; then
5081 echo '#ifdef __cplusplus' >>confdefs.h
5082 echo $ac_declaration >>confdefs.h
5083 echo '#endif' >>confdefs.h
5084 fi
5085
5086 else
5087 echo "$as_me: failed program was:" >&5
5088 sed 's/^/| /' conftest.$ac_ext >&5
5089
5090 fi
5091 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5092 ac_ext=c
5093 ac_cpp='$CPP $CPPFLAGS'
5094 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5095 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5096 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5097
5098
5099 ALL_LINGUAS="fr tr ja es sv da zh_CN ro"
5100 if test -n "$ac_tool_prefix"; then
5101 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5102 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5103 echo "$as_me:$LINENO: checking for $ac_word" >&5
5104 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5105 if test "${ac_cv_prog_RANLIB+set}" = set; then
5106 echo $ECHO_N "(cached) $ECHO_C" >&6
5107 else
5108 if test -n "$RANLIB"; then
5109 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5110 else
5111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5112 for as_dir in $PATH
5113 do
5114 IFS=$as_save_IFS
5115 test -z "$as_dir" && as_dir=.
5116 for ac_exec_ext in '' $ac_executable_extensions; do
5117 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5118 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5119 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5120 break 2
5121 fi
5122 done
5123 done
5124
5125 fi
5126 fi
5127 RANLIB=$ac_cv_prog_RANLIB
5128 if test -n "$RANLIB"; then
5129 echo "$as_me:$LINENO: result: $RANLIB" >&5
5130 echo "${ECHO_T}$RANLIB" >&6
5131 else
5132 echo "$as_me:$LINENO: result: no" >&5
5133 echo "${ECHO_T}no" >&6
5134 fi
5135
5136 fi
5137 if test -z "$ac_cv_prog_RANLIB"; then
5138 ac_ct_RANLIB=$RANLIB
5139 # Extract the first word of "ranlib", so it can be a program name with args.
5140 set dummy ranlib; ac_word=$2
5141 echo "$as_me:$LINENO: checking for $ac_word" >&5
5142 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5143 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5144 echo $ECHO_N "(cached) $ECHO_C" >&6
5145 else
5146 if test -n "$ac_ct_RANLIB"; then
5147 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5148 else
5149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5150 for as_dir in $PATH
5151 do
5152 IFS=$as_save_IFS
5153 test -z "$as_dir" && as_dir=.
5154 for ac_exec_ext in '' $ac_executable_extensions; do
5155 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5156 ac_cv_prog_ac_ct_RANLIB="ranlib"
5157 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5158 break 2
5159 fi
5160 done
5161 done
5162
5163 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5164 fi
5165 fi
5166 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5167 if test -n "$ac_ct_RANLIB"; then
5168 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5169 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5170 else
5171 echo "$as_me:$LINENO: result: no" >&5
5172 echo "${ECHO_T}no" >&6
5173 fi
5174
5175 RANLIB=$ac_ct_RANLIB
5176 else
5177 RANLIB="$ac_cv_prog_RANLIB"
5178 fi
5179
5180 ac_ext=c
5181 ac_cpp='$CPP $CPPFLAGS'
5182 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5183 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5184 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5185 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5186 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5187 # On Suns, sometimes $CPP names a directory.
5188 if test -n "$CPP" && test -d "$CPP"; then
5189 CPP=
5190 fi
5191 if test -z "$CPP"; then
5192 if test "${ac_cv_prog_CPP+set}" = set; then
5193 echo $ECHO_N "(cached) $ECHO_C" >&6
5194 else
5195 # Double quotes because CPP needs to be expanded
5196 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5197 do
5198 ac_preproc_ok=false
5199 for ac_c_preproc_warn_flag in '' yes
5200 do
5201 # Use a header file that comes with gcc, so configuring glibc
5202 # with a fresh cross-compiler works.
5203 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5204 # <limits.h> exists even on freestanding compilers.
5205 # On the NeXT, cc -E runs the code through the compiler's parser,
5206 # not just through cpp. "Syntax error" is here to catch this case.
5207 cat >conftest.$ac_ext <<_ACEOF
5208 /* confdefs.h. */
5209 _ACEOF
5210 cat confdefs.h >>conftest.$ac_ext
5211 cat >>conftest.$ac_ext <<_ACEOF
5212 /* end confdefs.h. */
5213 #ifdef __STDC__
5214 # include <limits.h>
5215 #else
5216 # include <assert.h>
5217 #endif
5218 Syntax error
5219 _ACEOF
5220 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5221 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5222 ac_status=$?
5223 grep -v '^ *+' conftest.er1 >conftest.err
5224 rm -f conftest.er1
5225 cat conftest.err >&5
5226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5227 (exit $ac_status); } >/dev/null; then
5228 if test -s conftest.err; then
5229 ac_cpp_err=$ac_c_preproc_warn_flag
5230 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5231 else
5232 ac_cpp_err=
5233 fi
5234 else
5235 ac_cpp_err=yes
5236 fi
5237 if test -z "$ac_cpp_err"; then
5238 :
5239 else
5240 echo "$as_me: failed program was:" >&5
5241 sed 's/^/| /' conftest.$ac_ext >&5
5242
5243 # Broken: fails on valid input.
5244 continue
5245 fi
5246 rm -f conftest.err conftest.$ac_ext
5247
5248 # OK, works on sane cases. Now check whether non-existent headers
5249 # can be detected and how.
5250 cat >conftest.$ac_ext <<_ACEOF
5251 /* confdefs.h. */
5252 _ACEOF
5253 cat confdefs.h >>conftest.$ac_ext
5254 cat >>conftest.$ac_ext <<_ACEOF
5255 /* end confdefs.h. */
5256 #include <ac_nonexistent.h>
5257 _ACEOF
5258 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5259 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5260 ac_status=$?
5261 grep -v '^ *+' conftest.er1 >conftest.err
5262 rm -f conftest.er1
5263 cat conftest.err >&5
5264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5265 (exit $ac_status); } >/dev/null; then
5266 if test -s conftest.err; then
5267 ac_cpp_err=$ac_c_preproc_warn_flag
5268 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5269 else
5270 ac_cpp_err=
5271 fi
5272 else
5273 ac_cpp_err=yes
5274 fi
5275 if test -z "$ac_cpp_err"; then
5276 # Broken: success on invalid input.
5277 continue
5278 else
5279 echo "$as_me: failed program was:" >&5
5280 sed 's/^/| /' conftest.$ac_ext >&5
5281
5282 # Passes both tests.
5283 ac_preproc_ok=:
5284 break
5285 fi
5286 rm -f conftest.err conftest.$ac_ext
5287
5288 done
5289 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5290 rm -f conftest.err conftest.$ac_ext
5291 if $ac_preproc_ok; then
5292 break
5293 fi
5294
5295 done
5296 ac_cv_prog_CPP=$CPP
5297
5298 fi
5299 CPP=$ac_cv_prog_CPP
5300 else
5301 ac_cv_prog_CPP=$CPP
5302 fi
5303 echo "$as_me:$LINENO: result: $CPP" >&5
5304 echo "${ECHO_T}$CPP" >&6
5305 ac_preproc_ok=false
5306 for ac_c_preproc_warn_flag in '' yes
5307 do
5308 # Use a header file that comes with gcc, so configuring glibc
5309 # with a fresh cross-compiler works.
5310 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5311 # <limits.h> exists even on freestanding compilers.
5312 # On the NeXT, cc -E runs the code through the compiler's parser,
5313 # not just through cpp. "Syntax error" is here to catch this case.
5314 cat >conftest.$ac_ext <<_ACEOF
5315 /* confdefs.h. */
5316 _ACEOF
5317 cat confdefs.h >>conftest.$ac_ext
5318 cat >>conftest.$ac_ext <<_ACEOF
5319 /* end confdefs.h. */
5320 #ifdef __STDC__
5321 # include <limits.h>
5322 #else
5323 # include <assert.h>
5324 #endif
5325 Syntax error
5326 _ACEOF
5327 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5328 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5329 ac_status=$?
5330 grep -v '^ *+' conftest.er1 >conftest.err
5331 rm -f conftest.er1
5332 cat conftest.err >&5
5333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5334 (exit $ac_status); } >/dev/null; then
5335 if test -s conftest.err; then
5336 ac_cpp_err=$ac_c_preproc_warn_flag
5337 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5338 else
5339 ac_cpp_err=
5340 fi
5341 else
5342 ac_cpp_err=yes
5343 fi
5344 if test -z "$ac_cpp_err"; then
5345 :
5346 else
5347 echo "$as_me: failed program was:" >&5
5348 sed 's/^/| /' conftest.$ac_ext >&5
5349
5350 # Broken: fails on valid input.
5351 continue
5352 fi
5353 rm -f conftest.err conftest.$ac_ext
5354
5355 # OK, works on sane cases. Now check whether non-existent headers
5356 # can be detected and how.
5357 cat >conftest.$ac_ext <<_ACEOF
5358 /* confdefs.h. */
5359 _ACEOF
5360 cat confdefs.h >>conftest.$ac_ext
5361 cat >>conftest.$ac_ext <<_ACEOF
5362 /* end confdefs.h. */
5363 #include <ac_nonexistent.h>
5364 _ACEOF
5365 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5366 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5367 ac_status=$?
5368 grep -v '^ *+' conftest.er1 >conftest.err
5369 rm -f conftest.er1
5370 cat conftest.err >&5
5371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5372 (exit $ac_status); } >/dev/null; then
5373 if test -s conftest.err; then
5374 ac_cpp_err=$ac_c_preproc_warn_flag
5375 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5376 else
5377 ac_cpp_err=
5378 fi
5379 else
5380 ac_cpp_err=yes
5381 fi
5382 if test -z "$ac_cpp_err"; then
5383 # Broken: success on invalid input.
5384 continue
5385 else
5386 echo "$as_me: failed program was:" >&5
5387 sed 's/^/| /' conftest.$ac_ext >&5
5388
5389 # Passes both tests.
5390 ac_preproc_ok=:
5391 break
5392 fi
5393 rm -f conftest.err conftest.$ac_ext
5394
5395 done
5396 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5397 rm -f conftest.err conftest.$ac_ext
5398 if $ac_preproc_ok; then
5399 :
5400 else
5401 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5402 See \`config.log' for more details." >&5
5403 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5404 See \`config.log' for more details." >&2;}
5405 { (exit 1); exit 1; }; }
5406 fi
5407
5408 ac_ext=c
5409 ac_cpp='$CPP $CPPFLAGS'
5410 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5411 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5412 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5413
5414
5415 echo "$as_me:$LINENO: checking for egrep" >&5
5416 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5417 if test "${ac_cv_prog_egrep+set}" = set; then
5418 echo $ECHO_N "(cached) $ECHO_C" >&6
5419 else
5420 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5421 then ac_cv_prog_egrep='grep -E'
5422 else ac_cv_prog_egrep='egrep'
5423 fi
5424 fi
5425 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5426 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5427 EGREP=$ac_cv_prog_egrep
5428
5429
5430 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5431 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5432 if test "${ac_cv_header_stdc+set}" = set; then
5433 echo $ECHO_N "(cached) $ECHO_C" >&6
5434 else
5435 cat >conftest.$ac_ext <<_ACEOF
5436 /* confdefs.h. */
5437 _ACEOF
5438 cat confdefs.h >>conftest.$ac_ext
5439 cat >>conftest.$ac_ext <<_ACEOF
5440 /* end confdefs.h. */
5441 #include <stdlib.h>
5442 #include <stdarg.h>
5443 #include <string.h>
5444 #include <float.h>
5445
5446 int
5447 main ()
5448 {
5449
5450 ;
5451 return 0;
5452 }
5453 _ACEOF
5454 rm -f conftest.$ac_objext
5455 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5456 (eval $ac_compile) 2>conftest.er1
5457 ac_status=$?
5458 grep -v '^ *+' conftest.er1 >conftest.err
5459 rm -f conftest.er1
5460 cat conftest.err >&5
5461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5462 (exit $ac_status); } &&
5463 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5465 (eval $ac_try) 2>&5
5466 ac_status=$?
5467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5468 (exit $ac_status); }; } &&
5469 { ac_try='test -s conftest.$ac_objext'
5470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5471 (eval $ac_try) 2>&5
5472 ac_status=$?
5473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5474 (exit $ac_status); }; }; then
5475 ac_cv_header_stdc=yes
5476 else
5477 echo "$as_me: failed program was:" >&5
5478 sed 's/^/| /' conftest.$ac_ext >&5
5479
5480 ac_cv_header_stdc=no
5481 fi
5482 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5483
5484 if test $ac_cv_header_stdc = yes; then
5485 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5486 cat >conftest.$ac_ext <<_ACEOF
5487 /* confdefs.h. */
5488 _ACEOF
5489 cat confdefs.h >>conftest.$ac_ext
5490 cat >>conftest.$ac_ext <<_ACEOF
5491 /* end confdefs.h. */
5492 #include <string.h>
5493
5494 _ACEOF
5495 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5496 $EGREP "memchr" >/dev/null 2>&1; then
5497 :
5498 else
5499 ac_cv_header_stdc=no
5500 fi
5501 rm -f conftest*
5502
5503 fi
5504
5505 if test $ac_cv_header_stdc = yes; then
5506 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5507 cat >conftest.$ac_ext <<_ACEOF
5508 /* confdefs.h. */
5509 _ACEOF
5510 cat confdefs.h >>conftest.$ac_ext
5511 cat >>conftest.$ac_ext <<_ACEOF
5512 /* end confdefs.h. */
5513 #include <stdlib.h>
5514
5515 _ACEOF
5516 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5517 $EGREP "free" >/dev/null 2>&1; then
5518 :
5519 else
5520 ac_cv_header_stdc=no
5521 fi
5522 rm -f conftest*
5523
5524 fi
5525
5526 if test $ac_cv_header_stdc = yes; then
5527 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5528 if test "$cross_compiling" = yes; then
5529 :
5530 else
5531 cat >conftest.$ac_ext <<_ACEOF
5532 /* confdefs.h. */
5533 _ACEOF
5534 cat confdefs.h >>conftest.$ac_ext
5535 cat >>conftest.$ac_ext <<_ACEOF
5536 /* end confdefs.h. */
5537 #include <ctype.h>
5538 #if ((' ' & 0x0FF) == 0x020)
5539 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5540 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5541 #else
5542 # define ISLOWER(c) \
5543 (('a' <= (c) && (c) <= 'i') \
5544 || ('j' <= (c) && (c) <= 'r') \
5545 || ('s' <= (c) && (c) <= 'z'))
5546 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5547 #endif
5548
5549 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5550 int
5551 main ()
5552 {
5553 int i;
5554 for (i = 0; i < 256; i++)
5555 if (XOR (islower (i), ISLOWER (i))
5556 || toupper (i) != TOUPPER (i))
5557 exit(2);
5558 exit (0);
5559 }
5560 _ACEOF
5561 rm -f conftest$ac_exeext
5562 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5563 (eval $ac_link) 2>&5
5564 ac_status=$?
5565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5566 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5568 (eval $ac_try) 2>&5
5569 ac_status=$?
5570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5571 (exit $ac_status); }; }; then
5572 :
5573 else
5574 echo "$as_me: program exited with status $ac_status" >&5
5575 echo "$as_me: failed program was:" >&5
5576 sed 's/^/| /' conftest.$ac_ext >&5
5577
5578 ( exit $ac_status )
5579 ac_cv_header_stdc=no
5580 fi
5581 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5582 fi
5583 fi
5584 fi
5585 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5586 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5587 if test $ac_cv_header_stdc = yes; then
5588
5589 cat >>confdefs.h <<\_ACEOF
5590 #define STDC_HEADERS 1
5591 _ACEOF
5592
5593 fi
5594
5595 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5596 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
5597 if test "${ac_cv_c_const+set}" = set; then
5598 echo $ECHO_N "(cached) $ECHO_C" >&6
5599 else
5600 cat >conftest.$ac_ext <<_ACEOF
5601 /* confdefs.h. */
5602 _ACEOF
5603 cat confdefs.h >>conftest.$ac_ext
5604 cat >>conftest.$ac_ext <<_ACEOF
5605 /* end confdefs.h. */
5606
5607 int
5608 main ()
5609 {
5610 /* FIXME: Include the comments suggested by Paul. */
5611 #ifndef __cplusplus
5612 /* Ultrix mips cc rejects this. */
5613 typedef int charset[2];
5614 const charset x;
5615 /* SunOS 4.1.1 cc rejects this. */
5616 char const *const *ccp;
5617 char **p;
5618 /* NEC SVR4.0.2 mips cc rejects this. */
5619 struct point {int x, y;};
5620 static struct point const zero = {0,0};
5621 /* AIX XL C 1.02.0.0 rejects this.
5622 It does not let you subtract one const X* pointer from another in
5623 an arm of an if-expression whose if-part is not a constant
5624 expression */
5625 const char *g = "string";
5626 ccp = &g + (g ? g-g : 0);
5627 /* HPUX 7.0 cc rejects these. */
5628 ++ccp;
5629 p = (char**) ccp;
5630 ccp = (char const *const *) p;
5631 { /* SCO 3.2v4 cc rejects this. */
5632 char *t;
5633 char const *s = 0 ? (char *) 0 : (char const *) 0;
5634
5635 *t++ = 0;
5636 }
5637 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5638 int x[] = {25, 17};
5639 const int *foo = &x[0];
5640 ++foo;
5641 }
5642 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5643 typedef const int *iptr;
5644 iptr p = 0;
5645 ++p;
5646 }
5647 { /* AIX XL C 1.02.0.0 rejects this saying
5648 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5649 struct s { int j; const int *ap[3]; };
5650 struct s *b; b->j = 5;
5651 }
5652 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5653 const int foo = 10;
5654 }
5655 #endif
5656
5657 ;
5658 return 0;
5659 }
5660 _ACEOF
5661 rm -f conftest.$ac_objext
5662 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5663 (eval $ac_compile) 2>conftest.er1
5664 ac_status=$?
5665 grep -v '^ *+' conftest.er1 >conftest.err
5666 rm -f conftest.er1
5667 cat conftest.err >&5
5668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5669 (exit $ac_status); } &&
5670 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5672 (eval $ac_try) 2>&5
5673 ac_status=$?
5674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5675 (exit $ac_status); }; } &&
5676 { ac_try='test -s conftest.$ac_objext'
5677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5678 (eval $ac_try) 2>&5
5679 ac_status=$?
5680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5681 (exit $ac_status); }; }; then
5682 ac_cv_c_const=yes
5683 else
5684 echo "$as_me: failed program was:" >&5
5685 sed 's/^/| /' conftest.$ac_ext >&5
5686
5687 ac_cv_c_const=no
5688 fi
5689 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5690 fi
5691 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5692 echo "${ECHO_T}$ac_cv_c_const" >&6
5693 if test $ac_cv_c_const = no; then
5694
5695 cat >>confdefs.h <<\_ACEOF
5696 #define const
5697 _ACEOF
5698
5699 fi
5700
5701 echo "$as_me:$LINENO: checking for inline" >&5
5702 echo $ECHO_N "checking for inline... $ECHO_C" >&6
5703 if test "${ac_cv_c_inline+set}" = set; then
5704 echo $ECHO_N "(cached) $ECHO_C" >&6
5705 else
5706 ac_cv_c_inline=no
5707 for ac_kw in inline __inline__ __inline; do
5708 cat >conftest.$ac_ext <<_ACEOF
5709 /* confdefs.h. */
5710 _ACEOF
5711 cat confdefs.h >>conftest.$ac_ext
5712 cat >>conftest.$ac_ext <<_ACEOF
5713 /* end confdefs.h. */
5714 #ifndef __cplusplus
5715 typedef int foo_t;
5716 static $ac_kw foo_t static_foo () {return 0; }
5717 $ac_kw foo_t foo () {return 0; }
5718 #endif
5719
5720 _ACEOF
5721 rm -f conftest.$ac_objext
5722 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5723 (eval $ac_compile) 2>conftest.er1
5724 ac_status=$?
5725 grep -v '^ *+' conftest.er1 >conftest.err
5726 rm -f conftest.er1
5727 cat conftest.err >&5
5728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5729 (exit $ac_status); } &&
5730 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5732 (eval $ac_try) 2>&5
5733 ac_status=$?
5734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5735 (exit $ac_status); }; } &&
5736 { ac_try='test -s conftest.$ac_objext'
5737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5738 (eval $ac_try) 2>&5
5739 ac_status=$?
5740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5741 (exit $ac_status); }; }; then
5742 ac_cv_c_inline=$ac_kw; break
5743 else
5744 echo "$as_me: failed program was:" >&5
5745 sed 's/^/| /' conftest.$ac_ext >&5
5746
5747 fi
5748 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5749 done
5750
5751 fi
5752 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5753 echo "${ECHO_T}$ac_cv_c_inline" >&6
5754
5755
5756 case $ac_cv_c_inline in
5757 inline | yes) ;;
5758 *)
5759 case $ac_cv_c_inline in
5760 no) ac_val=;;
5761 *) ac_val=$ac_cv_c_inline;;
5762 esac
5763 cat >>confdefs.h <<_ACEOF
5764 #ifndef __cplusplus
5765 #define inline $ac_val
5766 #endif
5767 _ACEOF
5768 ;;
5769 esac
5770
5771 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5772
5773
5774
5775
5776
5777
5778
5779
5780
5781 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5782 inttypes.h stdint.h unistd.h
5783 do
5784 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5785 echo "$as_me:$LINENO: checking for $ac_header" >&5
5786 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5787 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5788 echo $ECHO_N "(cached) $ECHO_C" >&6
5789 else
5790 cat >conftest.$ac_ext <<_ACEOF
5791 /* confdefs.h. */
5792 _ACEOF
5793 cat confdefs.h >>conftest.$ac_ext
5794 cat >>conftest.$ac_ext <<_ACEOF
5795 /* end confdefs.h. */
5796 $ac_includes_default
5797
5798 #include <$ac_header>
5799 _ACEOF
5800 rm -f conftest.$ac_objext
5801 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5802 (eval $ac_compile) 2>conftest.er1
5803 ac_status=$?
5804 grep -v '^ *+' conftest.er1 >conftest.err
5805 rm -f conftest.er1
5806 cat conftest.err >&5
5807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5808 (exit $ac_status); } &&
5809 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5811 (eval $ac_try) 2>&5
5812 ac_status=$?
5813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5814 (exit $ac_status); }; } &&
5815 { ac_try='test -s conftest.$ac_objext'
5816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5817 (eval $ac_try) 2>&5
5818 ac_status=$?
5819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5820 (exit $ac_status); }; }; then
5821 eval "$as_ac_Header=yes"
5822 else
5823 echo "$as_me: failed program was:" >&5
5824 sed 's/^/| /' conftest.$ac_ext >&5
5825
5826 eval "$as_ac_Header=no"
5827 fi
5828 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5829 fi
5830 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5831 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5832 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5833 cat >>confdefs.h <<_ACEOF
5834 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5835 _ACEOF
5836
5837 fi
5838
5839 done
5840
5841
5842 echo "$as_me:$LINENO: checking for off_t" >&5
5843 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
5844 if test "${ac_cv_type_off_t+set}" = set; then
5845 echo $ECHO_N "(cached) $ECHO_C" >&6
5846 else
5847 cat >conftest.$ac_ext <<_ACEOF
5848 /* confdefs.h. */
5849 _ACEOF
5850 cat confdefs.h >>conftest.$ac_ext
5851 cat >>conftest.$ac_ext <<_ACEOF
5852 /* end confdefs.h. */
5853 $ac_includes_default
5854 int
5855 main ()
5856 {
5857 if ((off_t *) 0)
5858 return 0;
5859 if (sizeof (off_t))
5860 return 0;
5861 ;
5862 return 0;
5863 }
5864 _ACEOF
5865 rm -f conftest.$ac_objext
5866 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5867 (eval $ac_compile) 2>conftest.er1
5868 ac_status=$?
5869 grep -v '^ *+' conftest.er1 >conftest.err
5870 rm -f conftest.er1
5871 cat conftest.err >&5
5872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5873 (exit $ac_status); } &&
5874 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5876 (eval $ac_try) 2>&5
5877 ac_status=$?
5878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5879 (exit $ac_status); }; } &&
5880 { ac_try='test -s conftest.$ac_objext'
5881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5882 (eval $ac_try) 2>&5
5883 ac_status=$?
5884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5885 (exit $ac_status); }; }; then
5886 ac_cv_type_off_t=yes
5887 else
5888 echo "$as_me: failed program was:" >&5
5889 sed 's/^/| /' conftest.$ac_ext >&5
5890
5891 ac_cv_type_off_t=no
5892 fi
5893 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5894 fi
5895 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5896 echo "${ECHO_T}$ac_cv_type_off_t" >&6
5897 if test $ac_cv_type_off_t = yes; then
5898 :
5899 else
5900
5901 cat >>confdefs.h <<_ACEOF
5902 #define off_t long
5903 _ACEOF
5904
5905 fi
5906
5907 echo "$as_me:$LINENO: checking for size_t" >&5
5908 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
5909 if test "${ac_cv_type_size_t+set}" = set; then
5910 echo $ECHO_N "(cached) $ECHO_C" >&6
5911 else
5912 cat >conftest.$ac_ext <<_ACEOF
5913 /* confdefs.h. */
5914 _ACEOF
5915 cat confdefs.h >>conftest.$ac_ext
5916 cat >>conftest.$ac_ext <<_ACEOF
5917 /* end confdefs.h. */
5918 $ac_includes_default
5919 int
5920 main ()
5921 {
5922 if ((size_t *) 0)
5923 return 0;
5924 if (sizeof (size_t))
5925 return 0;
5926 ;
5927 return 0;
5928 }
5929 _ACEOF
5930 rm -f conftest.$ac_objext
5931 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5932 (eval $ac_compile) 2>conftest.er1
5933 ac_status=$?
5934 grep -v '^ *+' conftest.er1 >conftest.err
5935 rm -f conftest.er1
5936 cat conftest.err >&5
5937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5938 (exit $ac_status); } &&
5939 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5941 (eval $ac_try) 2>&5
5942 ac_status=$?
5943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5944 (exit $ac_status); }; } &&
5945 { ac_try='test -s conftest.$ac_objext'
5946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5947 (eval $ac_try) 2>&5
5948 ac_status=$?
5949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5950 (exit $ac_status); }; }; then
5951 ac_cv_type_size_t=yes
5952 else
5953 echo "$as_me: failed program was:" >&5
5954 sed 's/^/| /' conftest.$ac_ext >&5
5955
5956 ac_cv_type_size_t=no
5957 fi
5958 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5959 fi
5960 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
5961 echo "${ECHO_T}$ac_cv_type_size_t" >&6
5962 if test $ac_cv_type_size_t = yes; then
5963 :
5964 else
5965
5966 cat >>confdefs.h <<_ACEOF
5967 #define size_t unsigned
5968 _ACEOF
5969
5970 fi
5971
5972 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5973 # for constant arguments. Useless!
5974 echo "$as_me:$LINENO: checking for working alloca.h" >&5
5975 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
5976 if test "${ac_cv_working_alloca_h+set}" = set; then
5977 echo $ECHO_N "(cached) $ECHO_C" >&6
5978 else
5979 cat >conftest.$ac_ext <<_ACEOF
5980 /* confdefs.h. */
5981 _ACEOF
5982 cat confdefs.h >>conftest.$ac_ext
5983 cat >>conftest.$ac_ext <<_ACEOF
5984 /* end confdefs.h. */
5985 #include <alloca.h>
5986 int
5987 main ()
5988 {
5989 char *p = (char *) alloca (2 * sizeof (int));
5990 ;
5991 return 0;
5992 }
5993 _ACEOF
5994 rm -f conftest.$ac_objext conftest$ac_exeext
5995 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5996 (eval $ac_link) 2>conftest.er1
5997 ac_status=$?
5998 grep -v '^ *+' conftest.er1 >conftest.err
5999 rm -f conftest.er1
6000 cat conftest.err >&5
6001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6002 (exit $ac_status); } &&
6003 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6005 (eval $ac_try) 2>&5
6006 ac_status=$?
6007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6008 (exit $ac_status); }; } &&
6009 { ac_try='test -s conftest$ac_exeext'
6010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6011 (eval $ac_try) 2>&5
6012 ac_status=$?
6013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6014 (exit $ac_status); }; }; then
6015 ac_cv_working_alloca_h=yes
6016 else
6017 echo "$as_me: failed program was:" >&5
6018 sed 's/^/| /' conftest.$ac_ext >&5
6019
6020 ac_cv_working_alloca_h=no
6021 fi
6022 rm -f conftest.err conftest.$ac_objext \
6023 conftest$ac_exeext conftest.$ac_ext
6024 fi
6025 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
6026 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
6027 if test $ac_cv_working_alloca_h = yes; then
6028
6029 cat >>confdefs.h <<\_ACEOF
6030 #define HAVE_ALLOCA_H 1
6031 _ACEOF
6032
6033 fi
6034
6035 echo "$as_me:$LINENO: checking for alloca" >&5
6036 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
6037 if test "${ac_cv_func_alloca_works+set}" = set; then
6038 echo $ECHO_N "(cached) $ECHO_C" >&6
6039 else
6040 cat >conftest.$ac_ext <<_ACEOF
6041 /* confdefs.h. */
6042 _ACEOF
6043 cat confdefs.h >>conftest.$ac_ext
6044 cat >>conftest.$ac_ext <<_ACEOF
6045 /* end confdefs.h. */
6046 #ifdef __GNUC__
6047 # define alloca __builtin_alloca
6048 #else
6049 # ifdef _MSC_VER
6050 # include <malloc.h>
6051 # define alloca _alloca
6052 # else
6053 # if HAVE_ALLOCA_H
6054 # include <alloca.h>
6055 # else
6056 # ifdef _AIX
6057 #pragma alloca
6058 # else
6059 # ifndef alloca /* predefined by HP cc +Olibcalls */
6060 char *alloca ();
6061 # endif
6062 # endif
6063 # endif
6064 # endif
6065 #endif
6066
6067 int
6068 main ()
6069 {
6070 char *p = (char *) alloca (1);
6071 ;
6072 return 0;
6073 }
6074 _ACEOF
6075 rm -f conftest.$ac_objext conftest$ac_exeext
6076 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6077 (eval $ac_link) 2>conftest.er1
6078 ac_status=$?
6079 grep -v '^ *+' conftest.er1 >conftest.err
6080 rm -f conftest.er1
6081 cat conftest.err >&5
6082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6083 (exit $ac_status); } &&
6084 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6086 (eval $ac_try) 2>&5
6087 ac_status=$?
6088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6089 (exit $ac_status); }; } &&
6090 { ac_try='test -s conftest$ac_exeext'
6091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6092 (eval $ac_try) 2>&5
6093 ac_status=$?
6094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6095 (exit $ac_status); }; }; then
6096 ac_cv_func_alloca_works=yes
6097 else
6098 echo "$as_me: failed program was:" >&5
6099 sed 's/^/| /' conftest.$ac_ext >&5
6100
6101 ac_cv_func_alloca_works=no
6102 fi
6103 rm -f conftest.err conftest.$ac_objext \
6104 conftest$ac_exeext conftest.$ac_ext
6105 fi
6106 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
6107 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
6108
6109 if test $ac_cv_func_alloca_works = yes; then
6110
6111 cat >>confdefs.h <<\_ACEOF
6112 #define HAVE_ALLOCA 1
6113 _ACEOF
6114
6115 else
6116 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6117 # that cause trouble. Some versions do not even contain alloca or
6118 # contain a buggy version. If you still want to use their alloca,
6119 # use ar to extract alloca.o from them instead of compiling alloca.c.
6120
6121 ALLOCA=alloca.$ac_objext
6122
6123 cat >>confdefs.h <<\_ACEOF
6124 #define C_ALLOCA 1
6125 _ACEOF
6126
6127
6128 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
6129 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
6130 if test "${ac_cv_os_cray+set}" = set; then
6131 echo $ECHO_N "(cached) $ECHO_C" >&6
6132 else
6133 cat >conftest.$ac_ext <<_ACEOF
6134 /* confdefs.h. */
6135 _ACEOF
6136 cat confdefs.h >>conftest.$ac_ext
6137 cat >>conftest.$ac_ext <<_ACEOF
6138 /* end confdefs.h. */
6139 #if defined(CRAY) && ! defined(CRAY2)
6140 webecray
6141 #else
6142 wenotbecray
6143 #endif
6144
6145 _ACEOF
6146 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6147 $EGREP "webecray" >/dev/null 2>&1; then
6148 ac_cv_os_cray=yes
6149 else
6150 ac_cv_os_cray=no
6151 fi
6152 rm -f conftest*
6153
6154 fi
6155 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
6156 echo "${ECHO_T}$ac_cv_os_cray" >&6
6157 if test $ac_cv_os_cray = yes; then
6158 for ac_func in _getb67 GETB67 getb67; do
6159 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6160 echo "$as_me:$LINENO: checking for $ac_func" >&5
6161 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6162 if eval "test \"\${$as_ac_var+set}\" = set"; then
6163 echo $ECHO_N "(cached) $ECHO_C" >&6
6164 else
6165 cat >conftest.$ac_ext <<_ACEOF
6166 /* confdefs.h. */
6167 _ACEOF
6168 cat confdefs.h >>conftest.$ac_ext
6169 cat >>conftest.$ac_ext <<_ACEOF
6170 /* end confdefs.h. */
6171 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6172 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6173 #define $ac_func innocuous_$ac_func
6174
6175 /* System header to define __stub macros and hopefully few prototypes,
6176 which can conflict with char $ac_func (); below.
6177 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6178 <limits.h> exists even on freestanding compilers. */
6179
6180 #ifdef __STDC__
6181 # include <limits.h>
6182 #else
6183 # include <assert.h>
6184 #endif
6185
6186 #undef $ac_func
6187
6188 /* Override any gcc2 internal prototype to avoid an error. */
6189 #ifdef __cplusplus
6190 extern "C"
6191 {
6192 #endif
6193 /* We use char because int might match the return type of a gcc2
6194 builtin and then its argument prototype would still apply. */
6195 char $ac_func ();
6196 /* The GNU C library defines this for functions which it implements
6197 to always fail with ENOSYS. Some functions are actually named
6198 something starting with __ and the normal name is an alias. */
6199 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6200 choke me
6201 #else
6202 char (*f) () = $ac_func;
6203 #endif
6204 #ifdef __cplusplus
6205 }
6206 #endif
6207
6208 int
6209 main ()
6210 {
6211 return f != $ac_func;
6212 ;
6213 return 0;
6214 }
6215 _ACEOF
6216 rm -f conftest.$ac_objext conftest$ac_exeext
6217 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6218 (eval $ac_link) 2>conftest.er1
6219 ac_status=$?
6220 grep -v '^ *+' conftest.er1 >conftest.err
6221 rm -f conftest.er1
6222 cat conftest.err >&5
6223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6224 (exit $ac_status); } &&
6225 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6227 (eval $ac_try) 2>&5
6228 ac_status=$?
6229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6230 (exit $ac_status); }; } &&
6231 { ac_try='test -s conftest$ac_exeext'
6232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6233 (eval $ac_try) 2>&5
6234 ac_status=$?
6235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6236 (exit $ac_status); }; }; then
6237 eval "$as_ac_var=yes"
6238 else
6239 echo "$as_me: failed program was:" >&5
6240 sed 's/^/| /' conftest.$ac_ext >&5
6241
6242 eval "$as_ac_var=no"
6243 fi
6244 rm -f conftest.err conftest.$ac_objext \
6245 conftest$ac_exeext conftest.$ac_ext
6246 fi
6247 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6248 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6249 if test `eval echo '${'$as_ac_var'}'` = yes; then
6250
6251 cat >>confdefs.h <<_ACEOF
6252 #define CRAY_STACKSEG_END $ac_func
6253 _ACEOF
6254
6255 break
6256 fi
6257
6258 done
6259 fi
6260
6261 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
6262 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
6263 if test "${ac_cv_c_stack_direction+set}" = set; then
6264 echo $ECHO_N "(cached) $ECHO_C" >&6
6265 else
6266 if test "$cross_compiling" = yes; then
6267 ac_cv_c_stack_direction=0
6268 else
6269 cat >conftest.$ac_ext <<_ACEOF
6270 /* confdefs.h. */
6271 _ACEOF
6272 cat confdefs.h >>conftest.$ac_ext
6273 cat >>conftest.$ac_ext <<_ACEOF
6274 /* end confdefs.h. */
6275 int
6276 find_stack_direction ()
6277 {
6278 static char *addr = 0;
6279 auto char dummy;
6280 if (addr == 0)
6281 {
6282 addr = &dummy;
6283 return find_stack_direction ();
6284 }
6285 else
6286 return (&dummy > addr) ? 1 : -1;
6287 }
6288
6289 int
6290 main ()
6291 {
6292 exit (find_stack_direction () < 0);
6293 }
6294 _ACEOF
6295 rm -f conftest$ac_exeext
6296 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6297 (eval $ac_link) 2>&5
6298 ac_status=$?
6299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6300 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6302 (eval $ac_try) 2>&5
6303 ac_status=$?
6304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6305 (exit $ac_status); }; }; then
6306 ac_cv_c_stack_direction=1
6307 else
6308 echo "$as_me: program exited with status $ac_status" >&5
6309 echo "$as_me: failed program was:" >&5
6310 sed 's/^/| /' conftest.$ac_ext >&5
6311
6312 ( exit $ac_status )
6313 ac_cv_c_stack_direction=-1
6314 fi
6315 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6316 fi
6317 fi
6318 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
6319 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
6320
6321 cat >>confdefs.h <<_ACEOF
6322 #define STACK_DIRECTION $ac_cv_c_stack_direction
6323 _ACEOF
6324
6325
6326 fi
6327
6328
6329
6330 for ac_header in stdlib.h unistd.h
6331 do
6332 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6333 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6334 echo "$as_me:$LINENO: checking for $ac_header" >&5
6335 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6336 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6337 echo $ECHO_N "(cached) $ECHO_C" >&6
6338 fi
6339 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6340 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6341 else
6342 # Is the header compilable?
6343 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6344 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6345 cat >conftest.$ac_ext <<_ACEOF
6346 /* confdefs.h. */
6347 _ACEOF
6348 cat confdefs.h >>conftest.$ac_ext
6349 cat >>conftest.$ac_ext <<_ACEOF
6350 /* end confdefs.h. */
6351 $ac_includes_default
6352 #include <$ac_header>
6353 _ACEOF
6354 rm -f conftest.$ac_objext
6355 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6356 (eval $ac_compile) 2>conftest.er1
6357 ac_status=$?
6358 grep -v '^ *+' conftest.er1 >conftest.err
6359 rm -f conftest.er1
6360 cat conftest.err >&5
6361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6362 (exit $ac_status); } &&
6363 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6365 (eval $ac_try) 2>&5
6366 ac_status=$?
6367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6368 (exit $ac_status); }; } &&
6369 { ac_try='test -s conftest.$ac_objext'
6370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6371 (eval $ac_try) 2>&5
6372 ac_status=$?
6373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6374 (exit $ac_status); }; }; then
6375 ac_header_compiler=yes
6376 else
6377 echo "$as_me: failed program was:" >&5
6378 sed 's/^/| /' conftest.$ac_ext >&5
6379
6380 ac_header_compiler=no
6381 fi
6382 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6383 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6384 echo "${ECHO_T}$ac_header_compiler" >&6
6385
6386 # Is the header present?
6387 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6388 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6389 cat >conftest.$ac_ext <<_ACEOF
6390 /* confdefs.h. */
6391 _ACEOF
6392 cat confdefs.h >>conftest.$ac_ext
6393 cat >>conftest.$ac_ext <<_ACEOF
6394 /* end confdefs.h. */
6395 #include <$ac_header>
6396 _ACEOF
6397 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6398 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6399 ac_status=$?
6400 grep -v '^ *+' conftest.er1 >conftest.err
6401 rm -f conftest.er1
6402 cat conftest.err >&5
6403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6404 (exit $ac_status); } >/dev/null; then
6405 if test -s conftest.err; then
6406 ac_cpp_err=$ac_c_preproc_warn_flag
6407 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6408 else
6409 ac_cpp_err=
6410 fi
6411 else
6412 ac_cpp_err=yes
6413 fi
6414 if test -z "$ac_cpp_err"; then
6415 ac_header_preproc=yes
6416 else
6417 echo "$as_me: failed program was:" >&5
6418 sed 's/^/| /' conftest.$ac_ext >&5
6419
6420 ac_header_preproc=no
6421 fi
6422 rm -f conftest.err conftest.$ac_ext
6423 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6424 echo "${ECHO_T}$ac_header_preproc" >&6
6425
6426 # So? What about this header?
6427 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6428 yes:no: )
6429 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6430 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6431 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6432 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6433 ac_header_preproc=yes
6434 ;;
6435 no:yes:* )
6436 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6437 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6438 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6439 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6440 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6441 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6442 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6443 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6444 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6445 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6446 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6447 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6448 (
6449 cat <<\_ASBOX
6450 ## ------------------------------------------ ##
6451 ## Report this to the AC_PACKAGE_NAME lists. ##
6452 ## ------------------------------------------ ##
6453 _ASBOX
6454 ) |
6455 sed "s/^/$as_me: WARNING: /" >&2
6456 ;;
6457 esac
6458 echo "$as_me:$LINENO: checking for $ac_header" >&5
6459 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6460 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6461 echo $ECHO_N "(cached) $ECHO_C" >&6
6462 else
6463 eval "$as_ac_Header=\$ac_header_preproc"
6464 fi
6465 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6466 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6467
6468 fi
6469 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6470 cat >>confdefs.h <<_ACEOF
6471 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6472 _ACEOF
6473
6474 fi
6475
6476 done
6477
6478
6479 for ac_func in getpagesize
6480 do
6481 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6482 echo "$as_me:$LINENO: checking for $ac_func" >&5
6483 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6484 if eval "test \"\${$as_ac_var+set}\" = set"; then
6485 echo $ECHO_N "(cached) $ECHO_C" >&6
6486 else
6487 cat >conftest.$ac_ext <<_ACEOF
6488 /* confdefs.h. */
6489 _ACEOF
6490 cat confdefs.h >>conftest.$ac_ext
6491 cat >>conftest.$ac_ext <<_ACEOF
6492 /* end confdefs.h. */
6493 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6494 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6495 #define $ac_func innocuous_$ac_func
6496
6497 /* System header to define __stub macros and hopefully few prototypes,
6498 which can conflict with char $ac_func (); below.
6499 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6500 <limits.h> exists even on freestanding compilers. */
6501
6502 #ifdef __STDC__
6503 # include <limits.h>
6504 #else
6505 # include <assert.h>
6506 #endif
6507
6508 #undef $ac_func
6509
6510 /* Override any gcc2 internal prototype to avoid an error. */
6511 #ifdef __cplusplus
6512 extern "C"
6513 {
6514 #endif
6515 /* We use char because int might match the return type of a gcc2
6516 builtin and then its argument prototype would still apply. */
6517 char $ac_func ();
6518 /* The GNU C library defines this for functions which it implements
6519 to always fail with ENOSYS. Some functions are actually named
6520 something starting with __ and the normal name is an alias. */
6521 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6522 choke me
6523 #else
6524 char (*f) () = $ac_func;
6525 #endif
6526 #ifdef __cplusplus
6527 }
6528 #endif
6529
6530 int
6531 main ()
6532 {
6533 return f != $ac_func;
6534 ;
6535 return 0;
6536 }
6537 _ACEOF
6538 rm -f conftest.$ac_objext conftest$ac_exeext
6539 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6540 (eval $ac_link) 2>conftest.er1
6541 ac_status=$?
6542 grep -v '^ *+' conftest.er1 >conftest.err
6543 rm -f conftest.er1
6544 cat conftest.err >&5
6545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6546 (exit $ac_status); } &&
6547 { ac_try='test -z "$ac_c_werror_flag" || 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_exeext'
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 eval "$as_ac_var=yes"
6560 else
6561 echo "$as_me: failed program was:" >&5
6562 sed 's/^/| /' conftest.$ac_ext >&5
6563
6564 eval "$as_ac_var=no"
6565 fi
6566 rm -f conftest.err conftest.$ac_objext \
6567 conftest$ac_exeext conftest.$ac_ext
6568 fi
6569 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6570 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6571 if test `eval echo '${'$as_ac_var'}'` = yes; then
6572 cat >>confdefs.h <<_ACEOF
6573 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6574 _ACEOF
6575
6576 fi
6577 done
6578
6579 echo "$as_me:$LINENO: checking for working mmap" >&5
6580 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
6581 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
6582 echo $ECHO_N "(cached) $ECHO_C" >&6
6583 else
6584 if test "$cross_compiling" = yes; then
6585 ac_cv_func_mmap_fixed_mapped=no
6586 else
6587 cat >conftest.$ac_ext <<_ACEOF
6588 /* confdefs.h. */
6589 _ACEOF
6590 cat confdefs.h >>conftest.$ac_ext
6591 cat >>conftest.$ac_ext <<_ACEOF
6592 /* end confdefs.h. */
6593 $ac_includes_default
6594 /* malloc might have been renamed as rpl_malloc. */
6595 #undef malloc
6596
6597 /* Thanks to Mike Haertel and Jim Avera for this test.
6598 Here is a matrix of mmap possibilities:
6599 mmap private not fixed
6600 mmap private fixed at somewhere currently unmapped
6601 mmap private fixed at somewhere already mapped
6602 mmap shared not fixed
6603 mmap shared fixed at somewhere currently unmapped
6604 mmap shared fixed at somewhere already mapped
6605 For private mappings, we should verify that changes cannot be read()
6606 back from the file, nor mmap's back from the file at a different
6607 address. (There have been systems where private was not correctly
6608 implemented like the infamous i386 svr4.0, and systems where the
6609 VM page cache was not coherent with the file system buffer cache
6610 like early versions of FreeBSD and possibly contemporary NetBSD.)
6611 For shared mappings, we should conversely verify that changes get
6612 propagated back to all the places they're supposed to be.
6613
6614 Grep wants private fixed already mapped.
6615 The main things grep needs to know about mmap are:
6616 * does it exist and is it safe to write into the mmap'd area
6617 * how to use it (BSD variants) */
6618
6619 #include <fcntl.h>
6620 #include <sys/mman.h>
6621
6622 #if !STDC_HEADERS && !HAVE_STDLIB_H
6623 char *malloc ();
6624 #endif
6625
6626 /* This mess was copied from the GNU getpagesize.h. */
6627 #if !HAVE_GETPAGESIZE
6628 /* Assume that all systems that can run configure have sys/param.h. */
6629 # if !HAVE_SYS_PARAM_H
6630 # define HAVE_SYS_PARAM_H 1
6631 # endif
6632
6633 # ifdef _SC_PAGESIZE
6634 # define getpagesize() sysconf(_SC_PAGESIZE)
6635 # else /* no _SC_PAGESIZE */
6636 # if HAVE_SYS_PARAM_H
6637 # include <sys/param.h>
6638 # ifdef EXEC_PAGESIZE
6639 # define getpagesize() EXEC_PAGESIZE
6640 # else /* no EXEC_PAGESIZE */
6641 # ifdef NBPG
6642 # define getpagesize() NBPG * CLSIZE
6643 # ifndef CLSIZE
6644 # define CLSIZE 1
6645 # endif /* no CLSIZE */
6646 # else /* no NBPG */
6647 # ifdef NBPC
6648 # define getpagesize() NBPC
6649 # else /* no NBPC */
6650 # ifdef PAGESIZE
6651 # define getpagesize() PAGESIZE
6652 # endif /* PAGESIZE */
6653 # endif /* no NBPC */
6654 # endif /* no NBPG */
6655 # endif /* no EXEC_PAGESIZE */
6656 # else /* no HAVE_SYS_PARAM_H */
6657 # define getpagesize() 8192 /* punt totally */
6658 # endif /* no HAVE_SYS_PARAM_H */
6659 # endif /* no _SC_PAGESIZE */
6660
6661 #endif /* no HAVE_GETPAGESIZE */
6662
6663 int
6664 main ()
6665 {
6666 char *data, *data2, *data3;
6667 int i, pagesize;
6668 int fd;
6669
6670 pagesize = getpagesize ();
6671
6672 /* First, make a file with some known garbage in it. */
6673 data = (char *) malloc (pagesize);
6674 if (!data)
6675 exit (1);
6676 for (i = 0; i < pagesize; ++i)
6677 *(data + i) = rand ();
6678 umask (0);
6679 fd = creat ("conftest.mmap", 0600);
6680 if (fd < 0)
6681 exit (1);
6682 if (write (fd, data, pagesize) != pagesize)
6683 exit (1);
6684 close (fd);
6685
6686 /* Next, try to mmap the file at a fixed address which already has
6687 something else allocated at it. If we can, also make sure that
6688 we see the same garbage. */
6689 fd = open ("conftest.mmap", O_RDWR);
6690 if (fd < 0)
6691 exit (1);
6692 data2 = (char *) malloc (2 * pagesize);
6693 if (!data2)
6694 exit (1);
6695 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
6696 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6697 MAP_PRIVATE | MAP_FIXED, fd, 0L))
6698 exit (1);
6699 for (i = 0; i < pagesize; ++i)
6700 if (*(data + i) != *(data2 + i))
6701 exit (1);
6702
6703 /* Finally, make sure that changes to the mapped area do not
6704 percolate back to the file as seen by read(). (This is a bug on
6705 some variants of i386 svr4.0.) */
6706 for (i = 0; i < pagesize; ++i)
6707 *(data2 + i) = *(data2 + i) + 1;
6708 data3 = (char *) malloc (pagesize);
6709 if (!data3)
6710 exit (1);
6711 if (read (fd, data3, pagesize) != pagesize)
6712 exit (1);
6713 for (i = 0; i < pagesize; ++i)
6714 if (*(data + i) != *(data3 + i))
6715 exit (1);
6716 close (fd);
6717 exit (0);
6718 }
6719 _ACEOF
6720 rm -f conftest$ac_exeext
6721 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6722 (eval $ac_link) 2>&5
6723 ac_status=$?
6724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6725 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6727 (eval $ac_try) 2>&5
6728 ac_status=$?
6729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6730 (exit $ac_status); }; }; then
6731 ac_cv_func_mmap_fixed_mapped=yes
6732 else
6733 echo "$as_me: program exited with status $ac_status" >&5
6734 echo "$as_me: failed program was:" >&5
6735 sed 's/^/| /' conftest.$ac_ext >&5
6736
6737 ( exit $ac_status )
6738 ac_cv_func_mmap_fixed_mapped=no
6739 fi
6740 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6741 fi
6742 fi
6743 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
6744 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
6745 if test $ac_cv_func_mmap_fixed_mapped = yes; then
6746
6747 cat >>confdefs.h <<\_ACEOF
6748 #define HAVE_MMAP 1
6749 _ACEOF
6750
6751 fi
6752 rm -f conftest.mmap
6753
6754
6755
6756
6757
6758
6759
6760
6761
6762
6763
6764 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h string.h \
6765 unistd.h values.h sys/param.h
6766 do
6767 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6768 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6769 echo "$as_me:$LINENO: checking for $ac_header" >&5
6770 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6771 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6772 echo $ECHO_N "(cached) $ECHO_C" >&6
6773 fi
6774 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6775 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6776 else
6777 # Is the header compilable?
6778 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6779 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6780 cat >conftest.$ac_ext <<_ACEOF
6781 /* confdefs.h. */
6782 _ACEOF
6783 cat confdefs.h >>conftest.$ac_ext
6784 cat >>conftest.$ac_ext <<_ACEOF
6785 /* end confdefs.h. */
6786 $ac_includes_default
6787 #include <$ac_header>
6788 _ACEOF
6789 rm -f conftest.$ac_objext
6790 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6791 (eval $ac_compile) 2>conftest.er1
6792 ac_status=$?
6793 grep -v '^ *+' conftest.er1 >conftest.err
6794 rm -f conftest.er1
6795 cat conftest.err >&5
6796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6797 (exit $ac_status); } &&
6798 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6800 (eval $ac_try) 2>&5
6801 ac_status=$?
6802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6803 (exit $ac_status); }; } &&
6804 { ac_try='test -s conftest.$ac_objext'
6805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6806 (eval $ac_try) 2>&5
6807 ac_status=$?
6808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6809 (exit $ac_status); }; }; then
6810 ac_header_compiler=yes
6811 else
6812 echo "$as_me: failed program was:" >&5
6813 sed 's/^/| /' conftest.$ac_ext >&5
6814
6815 ac_header_compiler=no
6816 fi
6817 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6818 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6819 echo "${ECHO_T}$ac_header_compiler" >&6
6820
6821 # Is the header present?
6822 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6823 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6824 cat >conftest.$ac_ext <<_ACEOF
6825 /* confdefs.h. */
6826 _ACEOF
6827 cat confdefs.h >>conftest.$ac_ext
6828 cat >>conftest.$ac_ext <<_ACEOF
6829 /* end confdefs.h. */
6830 #include <$ac_header>
6831 _ACEOF
6832 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6833 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6834 ac_status=$?
6835 grep -v '^ *+' conftest.er1 >conftest.err
6836 rm -f conftest.er1
6837 cat conftest.err >&5
6838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6839 (exit $ac_status); } >/dev/null; then
6840 if test -s conftest.err; then
6841 ac_cpp_err=$ac_c_preproc_warn_flag
6842 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6843 else
6844 ac_cpp_err=
6845 fi
6846 else
6847 ac_cpp_err=yes
6848 fi
6849 if test -z "$ac_cpp_err"; then
6850 ac_header_preproc=yes
6851 else
6852 echo "$as_me: failed program was:" >&5
6853 sed 's/^/| /' conftest.$ac_ext >&5
6854
6855 ac_header_preproc=no
6856 fi
6857 rm -f conftest.err conftest.$ac_ext
6858 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6859 echo "${ECHO_T}$ac_header_preproc" >&6
6860
6861 # So? What about this header?
6862 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6863 yes:no: )
6864 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6865 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6866 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6867 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6868 ac_header_preproc=yes
6869 ;;
6870 no:yes:* )
6871 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6872 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6873 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6874 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6875 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6876 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6877 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6878 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6879 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6880 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6881 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6882 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6883 (
6884 cat <<\_ASBOX
6885 ## ------------------------------------------ ##
6886 ## Report this to the AC_PACKAGE_NAME lists. ##
6887 ## ------------------------------------------ ##
6888 _ASBOX
6889 ) |
6890 sed "s/^/$as_me: WARNING: /" >&2
6891 ;;
6892 esac
6893 echo "$as_me:$LINENO: checking for $ac_header" >&5
6894 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6895 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6896 echo $ECHO_N "(cached) $ECHO_C" >&6
6897 else
6898 eval "$as_ac_Header=\$ac_header_preproc"
6899 fi
6900 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6901 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6902
6903 fi
6904 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6905 cat >>confdefs.h <<_ACEOF
6906 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6907 _ACEOF
6908
6909 fi
6910
6911 done
6912
6913
6914
6915
6916
6917
6918
6919
6920
6921
6922
6923 for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
6924 __argz_count __argz_stringify __argz_next
6925 do
6926 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6927 echo "$as_me:$LINENO: checking for $ac_func" >&5
6928 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6929 if eval "test \"\${$as_ac_var+set}\" = set"; then
6930 echo $ECHO_N "(cached) $ECHO_C" >&6
6931 else
6932 cat >conftest.$ac_ext <<_ACEOF
6933 /* confdefs.h. */
6934 _ACEOF
6935 cat confdefs.h >>conftest.$ac_ext
6936 cat >>conftest.$ac_ext <<_ACEOF
6937 /* end confdefs.h. */
6938 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6939 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6940 #define $ac_func innocuous_$ac_func
6941
6942 /* System header to define __stub macros and hopefully few prototypes,
6943 which can conflict with char $ac_func (); below.
6944 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6945 <limits.h> exists even on freestanding compilers. */
6946
6947 #ifdef __STDC__
6948 # include <limits.h>
6949 #else
6950 # include <assert.h>
6951 #endif
6952
6953 #undef $ac_func
6954
6955 /* Override any gcc2 internal prototype to avoid an error. */
6956 #ifdef __cplusplus
6957 extern "C"
6958 {
6959 #endif
6960 /* We use char because int might match the return type of a gcc2
6961 builtin and then its argument prototype would still apply. */
6962 char $ac_func ();
6963 /* The GNU C library defines this for functions which it implements
6964 to always fail with ENOSYS. Some functions are actually named
6965 something starting with __ and the normal name is an alias. */
6966 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6967 choke me
6968 #else
6969 char (*f) () = $ac_func;
6970 #endif
6971 #ifdef __cplusplus
6972 }
6973 #endif
6974
6975 int
6976 main ()
6977 {
6978 return f != $ac_func;
6979 ;
6980 return 0;
6981 }
6982 _ACEOF
6983 rm -f conftest.$ac_objext conftest$ac_exeext
6984 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6985 (eval $ac_link) 2>conftest.er1
6986 ac_status=$?
6987 grep -v '^ *+' conftest.er1 >conftest.err
6988 rm -f conftest.er1
6989 cat conftest.err >&5
6990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6991 (exit $ac_status); } &&
6992 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6994 (eval $ac_try) 2>&5
6995 ac_status=$?
6996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6997 (exit $ac_status); }; } &&
6998 { ac_try='test -s conftest$ac_exeext'
6999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7000 (eval $ac_try) 2>&5
7001 ac_status=$?
7002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7003 (exit $ac_status); }; }; then
7004 eval "$as_ac_var=yes"
7005 else
7006 echo "$as_me: failed program was:" >&5
7007 sed 's/^/| /' conftest.$ac_ext >&5
7008
7009 eval "$as_ac_var=no"
7010 fi
7011 rm -f conftest.err conftest.$ac_objext \
7012 conftest$ac_exeext conftest.$ac_ext
7013 fi
7014 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7015 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7016 if test `eval echo '${'$as_ac_var'}'` = yes; then
7017 cat >>confdefs.h <<_ACEOF
7018 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7019 _ACEOF
7020
7021 fi
7022 done
7023
7024
7025 if test "${ac_cv_func_stpcpy+set}" != "set"; then
7026
7027 for ac_func in stpcpy
7028 do
7029 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7030 echo "$as_me:$LINENO: checking for $ac_func" >&5
7031 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7032 if eval "test \"\${$as_ac_var+set}\" = set"; then
7033 echo $ECHO_N "(cached) $ECHO_C" >&6
7034 else
7035 cat >conftest.$ac_ext <<_ACEOF
7036 /* confdefs.h. */
7037 _ACEOF
7038 cat confdefs.h >>conftest.$ac_ext
7039 cat >>conftest.$ac_ext <<_ACEOF
7040 /* end confdefs.h. */
7041 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7042 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7043 #define $ac_func innocuous_$ac_func
7044
7045 /* System header to define __stub macros and hopefully few prototypes,
7046 which can conflict with char $ac_func (); below.
7047 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7048 <limits.h> exists even on freestanding compilers. */
7049
7050 #ifdef __STDC__
7051 # include <limits.h>
7052 #else
7053 # include <assert.h>
7054 #endif
7055
7056 #undef $ac_func
7057
7058 /* Override any gcc2 internal prototype to avoid an error. */
7059 #ifdef __cplusplus
7060 extern "C"
7061 {
7062 #endif
7063 /* We use char because int might match the return type of a gcc2
7064 builtin and then its argument prototype would still apply. */
7065 char $ac_func ();
7066 /* The GNU C library defines this for functions which it implements
7067 to always fail with ENOSYS. Some functions are actually named
7068 something starting with __ and the normal name is an alias. */
7069 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7070 choke me
7071 #else
7072 char (*f) () = $ac_func;
7073 #endif
7074 #ifdef __cplusplus
7075 }
7076 #endif
7077
7078 int
7079 main ()
7080 {
7081 return f != $ac_func;
7082 ;
7083 return 0;
7084 }
7085 _ACEOF
7086 rm -f conftest.$ac_objext conftest$ac_exeext
7087 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7088 (eval $ac_link) 2>conftest.er1
7089 ac_status=$?
7090 grep -v '^ *+' conftest.er1 >conftest.err
7091 rm -f conftest.er1
7092 cat conftest.err >&5
7093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7094 (exit $ac_status); } &&
7095 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7097 (eval $ac_try) 2>&5
7098 ac_status=$?
7099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7100 (exit $ac_status); }; } &&
7101 { ac_try='test -s conftest$ac_exeext'
7102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7103 (eval $ac_try) 2>&5
7104 ac_status=$?
7105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7106 (exit $ac_status); }; }; then
7107 eval "$as_ac_var=yes"
7108 else
7109 echo "$as_me: failed program was:" >&5
7110 sed 's/^/| /' conftest.$ac_ext >&5
7111
7112 eval "$as_ac_var=no"
7113 fi
7114 rm -f conftest.err conftest.$ac_objext \
7115 conftest$ac_exeext conftest.$ac_ext
7116 fi
7117 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7118 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7119 if test `eval echo '${'$as_ac_var'}'` = yes; then
7120 cat >>confdefs.h <<_ACEOF
7121 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7122 _ACEOF
7123
7124 fi
7125 done
7126
7127 fi
7128 if test "${ac_cv_func_stpcpy}" = "yes"; then
7129
7130 cat >>confdefs.h <<\_ACEOF
7131 #define HAVE_STPCPY 1
7132 _ACEOF
7133
7134 fi
7135
7136 if test $ac_cv_header_locale_h = yes; then
7137 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
7138 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
7139 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
7140 echo $ECHO_N "(cached) $ECHO_C" >&6
7141 else
7142 cat >conftest.$ac_ext <<_ACEOF
7143 /* confdefs.h. */
7144 _ACEOF
7145 cat confdefs.h >>conftest.$ac_ext
7146 cat >>conftest.$ac_ext <<_ACEOF
7147 /* end confdefs.h. */
7148 #include <locale.h>
7149 int
7150 main ()
7151 {
7152 return LC_MESSAGES
7153 ;
7154 return 0;
7155 }
7156 _ACEOF
7157 rm -f conftest.$ac_objext conftest$ac_exeext
7158 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7159 (eval $ac_link) 2>conftest.er1
7160 ac_status=$?
7161 grep -v '^ *+' conftest.er1 >conftest.err
7162 rm -f conftest.er1
7163 cat conftest.err >&5
7164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7165 (exit $ac_status); } &&
7166 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7168 (eval $ac_try) 2>&5
7169 ac_status=$?
7170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7171 (exit $ac_status); }; } &&
7172 { ac_try='test -s conftest$ac_exeext'
7173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7174 (eval $ac_try) 2>&5
7175 ac_status=$?
7176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7177 (exit $ac_status); }; }; then
7178 am_cv_val_LC_MESSAGES=yes
7179 else
7180 echo "$as_me: failed program was:" >&5
7181 sed 's/^/| /' conftest.$ac_ext >&5
7182
7183 am_cv_val_LC_MESSAGES=no
7184 fi
7185 rm -f conftest.err conftest.$ac_objext \
7186 conftest$ac_exeext conftest.$ac_ext
7187 fi
7188 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
7189 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
7190 if test $am_cv_val_LC_MESSAGES = yes; then
7191
7192 cat >>confdefs.h <<\_ACEOF
7193 #define HAVE_LC_MESSAGES 1
7194 _ACEOF
7195
7196 fi
7197 fi
7198 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
7199 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
7200 # Check whether --enable-nls or --disable-nls was given.
7201 if test "${enable_nls+set}" = set; then
7202 enableval="$enable_nls"
7203 USE_NLS=$enableval
7204 else
7205 USE_NLS=yes
7206 fi;
7207 echo "$as_me:$LINENO: result: $USE_NLS" >&5
7208 echo "${ECHO_T}$USE_NLS" >&6
7209
7210
7211 USE_INCLUDED_LIBINTL=no
7212
7213 if test "$USE_NLS" = "yes"; then
7214
7215 cat >>confdefs.h <<\_ACEOF
7216 #define ENABLE_NLS 1
7217 _ACEOF
7218
7219 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
7220 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
7221
7222 # Check whether --with-included-gettext or --without-included-gettext was given.
7223 if test "${with_included_gettext+set}" = set; then
7224 withval="$with_included_gettext"
7225 nls_cv_force_use_gnu_gettext=$withval
7226 else
7227 nls_cv_force_use_gnu_gettext=no
7228 fi;
7229 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
7230 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
7231
7232 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
7233 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
7234 nls_cv_header_intl=
7235 nls_cv_header_libgt=
7236 CATOBJEXT=NONE
7237
7238 if test "${ac_cv_header_libintl_h+set}" = set; then
7239 echo "$as_me:$LINENO: checking for libintl.h" >&5
7240 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
7241 if test "${ac_cv_header_libintl_h+set}" = set; then
7242 echo $ECHO_N "(cached) $ECHO_C" >&6
7243 fi
7244 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
7245 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
7246 else
7247 # Is the header compilable?
7248 echo "$as_me:$LINENO: checking libintl.h usability" >&5
7249 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
7250 cat >conftest.$ac_ext <<_ACEOF
7251 /* confdefs.h. */
7252 _ACEOF
7253 cat confdefs.h >>conftest.$ac_ext
7254 cat >>conftest.$ac_ext <<_ACEOF
7255 /* end confdefs.h. */
7256 $ac_includes_default
7257 #include <libintl.h>
7258 _ACEOF
7259 rm -f conftest.$ac_objext
7260 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7261 (eval $ac_compile) 2>conftest.er1
7262 ac_status=$?
7263 grep -v '^ *+' conftest.er1 >conftest.err
7264 rm -f conftest.er1
7265 cat conftest.err >&5
7266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7267 (exit $ac_status); } &&
7268 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7270 (eval $ac_try) 2>&5
7271 ac_status=$?
7272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7273 (exit $ac_status); }; } &&
7274 { ac_try='test -s conftest.$ac_objext'
7275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7276 (eval $ac_try) 2>&5
7277 ac_status=$?
7278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7279 (exit $ac_status); }; }; then
7280 ac_header_compiler=yes
7281 else
7282 echo "$as_me: failed program was:" >&5
7283 sed 's/^/| /' conftest.$ac_ext >&5
7284
7285 ac_header_compiler=no
7286 fi
7287 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7288 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7289 echo "${ECHO_T}$ac_header_compiler" >&6
7290
7291 # Is the header present?
7292 echo "$as_me:$LINENO: checking libintl.h presence" >&5
7293 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
7294 cat >conftest.$ac_ext <<_ACEOF
7295 /* confdefs.h. */
7296 _ACEOF
7297 cat confdefs.h >>conftest.$ac_ext
7298 cat >>conftest.$ac_ext <<_ACEOF
7299 /* end confdefs.h. */
7300 #include <libintl.h>
7301 _ACEOF
7302 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7303 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7304 ac_status=$?
7305 grep -v '^ *+' conftest.er1 >conftest.err
7306 rm -f conftest.er1
7307 cat conftest.err >&5
7308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7309 (exit $ac_status); } >/dev/null; then
7310 if test -s conftest.err; then
7311 ac_cpp_err=$ac_c_preproc_warn_flag
7312 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7313 else
7314 ac_cpp_err=
7315 fi
7316 else
7317 ac_cpp_err=yes
7318 fi
7319 if test -z "$ac_cpp_err"; then
7320 ac_header_preproc=yes
7321 else
7322 echo "$as_me: failed program was:" >&5
7323 sed 's/^/| /' conftest.$ac_ext >&5
7324
7325 ac_header_preproc=no
7326 fi
7327 rm -f conftest.err conftest.$ac_ext
7328 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7329 echo "${ECHO_T}$ac_header_preproc" >&6
7330
7331 # So? What about this header?
7332 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7333 yes:no: )
7334 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
7335 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7336 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
7337 echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
7338 ac_header_preproc=yes
7339 ;;
7340 no:yes:* )
7341 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
7342 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
7343 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
7344 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
7345 { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
7346 echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
7347 { echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
7348 echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
7349 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
7350 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
7351 { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
7352 echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
7353 (
7354 cat <<\_ASBOX
7355 ## ------------------------------------------ ##
7356 ## Report this to the AC_PACKAGE_NAME lists. ##
7357 ## ------------------------------------------ ##
7358 _ASBOX
7359 ) |
7360 sed "s/^/$as_me: WARNING: /" >&2
7361 ;;
7362 esac
7363 echo "$as_me:$LINENO: checking for libintl.h" >&5
7364 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
7365 if test "${ac_cv_header_libintl_h+set}" = set; then
7366 echo $ECHO_N "(cached) $ECHO_C" >&6
7367 else
7368 ac_cv_header_libintl_h=$ac_header_preproc
7369 fi
7370 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
7371 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
7372
7373 fi
7374 if test $ac_cv_header_libintl_h = yes; then
7375 echo "$as_me:$LINENO: checking for gettext in libc" >&5
7376 echo $ECHO_N "checking for gettext in libc... $ECHO_C" >&6
7377 if test "${gt_cv_func_gettext_libc+set}" = set; then
7378 echo $ECHO_N "(cached) $ECHO_C" >&6
7379 else
7380 cat >conftest.$ac_ext <<_ACEOF
7381 /* confdefs.h. */
7382 _ACEOF
7383 cat confdefs.h >>conftest.$ac_ext
7384 cat >>conftest.$ac_ext <<_ACEOF
7385 /* end confdefs.h. */
7386 #include <libintl.h>
7387 int
7388 main ()
7389 {
7390 return (int) gettext ("")
7391 ;
7392 return 0;
7393 }
7394 _ACEOF
7395 rm -f conftest.$ac_objext conftest$ac_exeext
7396 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7397 (eval $ac_link) 2>conftest.er1
7398 ac_status=$?
7399 grep -v '^ *+' conftest.er1 >conftest.err
7400 rm -f conftest.er1
7401 cat conftest.err >&5
7402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7403 (exit $ac_status); } &&
7404 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7406 (eval $ac_try) 2>&5
7407 ac_status=$?
7408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7409 (exit $ac_status); }; } &&
7410 { ac_try='test -s conftest$ac_exeext'
7411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7412 (eval $ac_try) 2>&5
7413 ac_status=$?
7414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7415 (exit $ac_status); }; }; then
7416 gt_cv_func_gettext_libc=yes
7417 else
7418 echo "$as_me: failed program was:" >&5
7419 sed 's/^/| /' conftest.$ac_ext >&5
7420
7421 gt_cv_func_gettext_libc=no
7422 fi
7423 rm -f conftest.err conftest.$ac_objext \
7424 conftest$ac_exeext conftest.$ac_ext
7425 fi
7426 echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libc" >&5
7427 echo "${ECHO_T}$gt_cv_func_gettext_libc" >&6
7428
7429 if test "$gt_cv_func_gettext_libc" != "yes"; then
7430 echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
7431 echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6
7432 if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
7433 echo $ECHO_N "(cached) $ECHO_C" >&6
7434 else
7435 ac_check_lib_save_LIBS=$LIBS
7436 LIBS="-lintl $LIBS"
7437 cat >conftest.$ac_ext <<_ACEOF
7438 /* confdefs.h. */
7439 _ACEOF
7440 cat confdefs.h >>conftest.$ac_ext
7441 cat >>conftest.$ac_ext <<_ACEOF
7442 /* end confdefs.h. */
7443
7444 /* Override any gcc2 internal prototype to avoid an error. */
7445 #ifdef __cplusplus
7446 extern "C"
7447 #endif
7448 /* We use char because int might match the return type of a gcc2
7449 builtin and then its argument prototype would still apply. */
7450 char bindtextdomain ();
7451 int
7452 main ()
7453 {
7454 bindtextdomain ();
7455 ;
7456 return 0;
7457 }
7458 _ACEOF
7459 rm -f conftest.$ac_objext conftest$ac_exeext
7460 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7461 (eval $ac_link) 2>conftest.er1
7462 ac_status=$?
7463 grep -v '^ *+' conftest.er1 >conftest.err
7464 rm -f conftest.er1
7465 cat conftest.err >&5
7466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7467 (exit $ac_status); } &&
7468 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7470 (eval $ac_try) 2>&5
7471 ac_status=$?
7472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7473 (exit $ac_status); }; } &&
7474 { ac_try='test -s conftest$ac_exeext'
7475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7476 (eval $ac_try) 2>&5
7477 ac_status=$?
7478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7479 (exit $ac_status); }; }; then
7480 ac_cv_lib_intl_bindtextdomain=yes
7481 else
7482 echo "$as_me: failed program was:" >&5
7483 sed 's/^/| /' conftest.$ac_ext >&5
7484
7485 ac_cv_lib_intl_bindtextdomain=no
7486 fi
7487 rm -f conftest.err conftest.$ac_objext \
7488 conftest$ac_exeext conftest.$ac_ext
7489 LIBS=$ac_check_lib_save_LIBS
7490 fi
7491 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
7492 echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6
7493 if test $ac_cv_lib_intl_bindtextdomain = yes; then
7494 echo "$as_me:$LINENO: checking for gettext in libintl" >&5
7495 echo $ECHO_N "checking for gettext in libintl... $ECHO_C" >&6
7496 if test "${gt_cv_func_gettext_libintl+set}" = set; then
7497 echo $ECHO_N "(cached) $ECHO_C" >&6
7498 else
7499 cat >conftest.$ac_ext <<_ACEOF
7500 /* confdefs.h. */
7501 _ACEOF
7502 cat confdefs.h >>conftest.$ac_ext
7503 cat >>conftest.$ac_ext <<_ACEOF
7504 /* end confdefs.h. */
7505
7506 int
7507 main ()
7508 {
7509 return (int) gettext ("")
7510 ;
7511 return 0;
7512 }
7513 _ACEOF
7514 rm -f conftest.$ac_objext conftest$ac_exeext
7515 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7516 (eval $ac_link) 2>conftest.er1
7517 ac_status=$?
7518 grep -v '^ *+' conftest.er1 >conftest.err
7519 rm -f conftest.er1
7520 cat conftest.err >&5
7521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7522 (exit $ac_status); } &&
7523 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7525 (eval $ac_try) 2>&5
7526 ac_status=$?
7527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7528 (exit $ac_status); }; } &&
7529 { ac_try='test -s conftest$ac_exeext'
7530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7531 (eval $ac_try) 2>&5
7532 ac_status=$?
7533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7534 (exit $ac_status); }; }; then
7535 gt_cv_func_gettext_libintl=yes
7536 else
7537 echo "$as_me: failed program was:" >&5
7538 sed 's/^/| /' conftest.$ac_ext >&5
7539
7540 gt_cv_func_gettext_libintl=no
7541 fi
7542 rm -f conftest.err conftest.$ac_objext \
7543 conftest$ac_exeext conftest.$ac_ext
7544 fi
7545 echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libintl" >&5
7546 echo "${ECHO_T}$gt_cv_func_gettext_libintl" >&6
7547 fi
7548
7549 fi
7550
7551 if test "$gt_cv_func_gettext_libc" = "yes" \
7552 || test "$gt_cv_func_gettext_libintl" = "yes"; then
7553
7554 cat >>confdefs.h <<\_ACEOF
7555 #define HAVE_GETTEXT 1
7556 _ACEOF
7557
7558 # Extract the first word of "msgfmt", so it can be a program name with args.
7559 set dummy msgfmt; ac_word=$2
7560 echo "$as_me:$LINENO: checking for $ac_word" >&5
7561 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7562 if test "${ac_cv_path_MSGFMT+set}" = set; then
7563 echo $ECHO_N "(cached) $ECHO_C" >&6
7564 else
7565 case "$MSGFMT" in
7566 /*)
7567 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7568 ;;
7569 *)
7570 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7571 for ac_dir in $PATH; do
7572 test -z "$ac_dir" && ac_dir=.
7573 if test -f $ac_dir/$ac_word; then
7574 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
7575 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
7576 break
7577 fi
7578 fi
7579 done
7580 IFS="$ac_save_ifs"
7581 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
7582 ;;
7583 esac
7584 fi
7585 MSGFMT="$ac_cv_path_MSGFMT"
7586 if test -n "$MSGFMT"; then
7587 echo "$as_me:$LINENO: result: $MSGFMT" >&5
7588 echo "${ECHO_T}$MSGFMT" >&6
7589 else
7590 echo "$as_me:$LINENO: result: no" >&5
7591 echo "${ECHO_T}no" >&6
7592 fi
7593 if test "$MSGFMT" != "no"; then
7594
7595 for ac_func in dcgettext
7596 do
7597 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7598 echo "$as_me:$LINENO: checking for $ac_func" >&5
7599 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7600 if eval "test \"\${$as_ac_var+set}\" = set"; then
7601 echo $ECHO_N "(cached) $ECHO_C" >&6
7602 else
7603 cat >conftest.$ac_ext <<_ACEOF
7604 /* confdefs.h. */
7605 _ACEOF
7606 cat confdefs.h >>conftest.$ac_ext
7607 cat >>conftest.$ac_ext <<_ACEOF
7608 /* end confdefs.h. */
7609 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7610 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7611 #define $ac_func innocuous_$ac_func
7612
7613 /* System header to define __stub macros and hopefully few prototypes,
7614 which can conflict with char $ac_func (); below.
7615 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7616 <limits.h> exists even on freestanding compilers. */
7617
7618 #ifdef __STDC__
7619 # include <limits.h>
7620 #else
7621 # include <assert.h>
7622 #endif
7623
7624 #undef $ac_func
7625
7626 /* Override any gcc2 internal prototype to avoid an error. */
7627 #ifdef __cplusplus
7628 extern "C"
7629 {
7630 #endif
7631 /* We use char because int might match the return type of a gcc2
7632 builtin and then its argument prototype would still apply. */
7633 char $ac_func ();
7634 /* The GNU C library defines this for functions which it implements
7635 to always fail with ENOSYS. Some functions are actually named
7636 something starting with __ and the normal name is an alias. */
7637 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7638 choke me
7639 #else
7640 char (*f) () = $ac_func;
7641 #endif
7642 #ifdef __cplusplus
7643 }
7644 #endif
7645
7646 int
7647 main ()
7648 {
7649 return f != $ac_func;
7650 ;
7651 return 0;
7652 }
7653 _ACEOF
7654 rm -f conftest.$ac_objext conftest$ac_exeext
7655 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7656 (eval $ac_link) 2>conftest.er1
7657 ac_status=$?
7658 grep -v '^ *+' conftest.er1 >conftest.err
7659 rm -f conftest.er1
7660 cat conftest.err >&5
7661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7662 (exit $ac_status); } &&
7663 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7665 (eval $ac_try) 2>&5
7666 ac_status=$?
7667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7668 (exit $ac_status); }; } &&
7669 { ac_try='test -s conftest$ac_exeext'
7670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7671 (eval $ac_try) 2>&5
7672 ac_status=$?
7673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7674 (exit $ac_status); }; }; then
7675 eval "$as_ac_var=yes"
7676 else
7677 echo "$as_me: failed program was:" >&5
7678 sed 's/^/| /' conftest.$ac_ext >&5
7679
7680 eval "$as_ac_var=no"
7681 fi
7682 rm -f conftest.err conftest.$ac_objext \
7683 conftest$ac_exeext conftest.$ac_ext
7684 fi
7685 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7686 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7687 if test `eval echo '${'$as_ac_var'}'` = yes; then
7688 cat >>confdefs.h <<_ACEOF
7689 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7690 _ACEOF
7691
7692 fi
7693 done
7694
7695 # Extract the first word of "gmsgfmt", so it can be a program name with args.
7696 set dummy gmsgfmt; ac_word=$2
7697 echo "$as_me:$LINENO: checking for $ac_word" >&5
7698 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7699 if test "${ac_cv_path_GMSGFMT+set}" = set; then
7700 echo $ECHO_N "(cached) $ECHO_C" >&6
7701 else
7702 case $GMSGFMT in
7703 [\\/]* | ?:[\\/]*)
7704 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
7705 ;;
7706 *)
7707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7708 for as_dir in $PATH
7709 do
7710 IFS=$as_save_IFS
7711 test -z "$as_dir" && as_dir=.
7712 for ac_exec_ext in '' $ac_executable_extensions; do
7713 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7714 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
7715 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7716 break 2
7717 fi
7718 done
7719 done
7720
7721 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
7722 ;;
7723 esac
7724 fi
7725 GMSGFMT=$ac_cv_path_GMSGFMT
7726
7727 if test -n "$GMSGFMT"; then
7728 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
7729 echo "${ECHO_T}$GMSGFMT" >&6
7730 else
7731 echo "$as_me:$LINENO: result: no" >&5
7732 echo "${ECHO_T}no" >&6
7733 fi
7734
7735 # Extract the first word of "xgettext", so it can be a program name with args.
7736 set dummy xgettext; ac_word=$2
7737 echo "$as_me:$LINENO: checking for $ac_word" >&5
7738 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7739 if test "${ac_cv_path_XGETTEXT+set}" = set; then
7740 echo $ECHO_N "(cached) $ECHO_C" >&6
7741 else
7742 case "$XGETTEXT" in
7743 /*)
7744 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
7745 ;;
7746 *)
7747 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7748 for ac_dir in $PATH; do
7749 test -z "$ac_dir" && ac_dir=.
7750 if test -f $ac_dir/$ac_word; then
7751 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
7752 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
7753 break
7754 fi
7755 fi
7756 done
7757 IFS="$ac_save_ifs"
7758 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
7759 ;;
7760 esac
7761 fi
7762 XGETTEXT="$ac_cv_path_XGETTEXT"
7763 if test -n "$XGETTEXT"; then
7764 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
7765 echo "${ECHO_T}$XGETTEXT" >&6
7766 else
7767 echo "$as_me:$LINENO: result: no" >&5
7768 echo "${ECHO_T}no" >&6
7769 fi
7770
7771 cat >conftest.$ac_ext <<_ACEOF
7772 /* confdefs.h. */
7773 _ACEOF
7774 cat confdefs.h >>conftest.$ac_ext
7775 cat >>conftest.$ac_ext <<_ACEOF
7776 /* end confdefs.h. */
7777
7778 int
7779 main ()
7780 {
7781 extern int _nl_msg_cat_cntr;
7782 return _nl_msg_cat_cntr
7783 ;
7784 return 0;
7785 }
7786 _ACEOF
7787 rm -f conftest.$ac_objext conftest$ac_exeext
7788 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7789 (eval $ac_link) 2>conftest.er1
7790 ac_status=$?
7791 grep -v '^ *+' conftest.er1 >conftest.err
7792 rm -f conftest.er1
7793 cat conftest.err >&5
7794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7795 (exit $ac_status); } &&
7796 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
7802 { ac_try='test -s conftest$ac_exeext'
7803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7804 (eval $ac_try) 2>&5
7805 ac_status=$?
7806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7807 (exit $ac_status); }; }; then
7808 CATOBJEXT=.gmo
7809 DATADIRNAME=share
7810 else
7811 echo "$as_me: failed program was:" >&5
7812 sed 's/^/| /' conftest.$ac_ext >&5
7813
7814 CATOBJEXT=.mo
7815 DATADIRNAME=lib
7816 fi
7817 rm -f conftest.err conftest.$ac_objext \
7818 conftest$ac_exeext conftest.$ac_ext
7819 INSTOBJEXT=.mo
7820 fi
7821 fi
7822
7823 fi
7824
7825
7826
7827
7828 if test "$CATOBJEXT" = "NONE"; then
7829 nls_cv_use_gnu_gettext=yes
7830 fi
7831 fi
7832
7833 if test "$nls_cv_use_gnu_gettext" = "yes"; then
7834 INTLOBJS="\$(GETTOBJS)"
7835 # Extract the first word of "msgfmt", so it can be a program name with args.
7836 set dummy msgfmt; ac_word=$2
7837 echo "$as_me:$LINENO: checking for $ac_word" >&5
7838 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7839 if test "${ac_cv_path_MSGFMT+set}" = set; then
7840 echo $ECHO_N "(cached) $ECHO_C" >&6
7841 else
7842 case "$MSGFMT" in
7843 /*)
7844 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7845 ;;
7846 *)
7847 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7848 for ac_dir in $PATH; do
7849 test -z "$ac_dir" && ac_dir=.
7850 if test -f $ac_dir/$ac_word; then
7851 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
7852 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
7853 break
7854 fi
7855 fi
7856 done
7857 IFS="$ac_save_ifs"
7858 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
7859 ;;
7860 esac
7861 fi
7862 MSGFMT="$ac_cv_path_MSGFMT"
7863 if test -n "$MSGFMT"; then
7864 echo "$as_me:$LINENO: result: $MSGFMT" >&5
7865 echo "${ECHO_T}$MSGFMT" >&6
7866 else
7867 echo "$as_me:$LINENO: result: no" >&5
7868 echo "${ECHO_T}no" >&6
7869 fi
7870
7871 # Extract the first word of "gmsgfmt", so it can be a program name with args.
7872 set dummy gmsgfmt; ac_word=$2
7873 echo "$as_me:$LINENO: checking for $ac_word" >&5
7874 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7875 if test "${ac_cv_path_GMSGFMT+set}" = set; then
7876 echo $ECHO_N "(cached) $ECHO_C" >&6
7877 else
7878 case $GMSGFMT in
7879 [\\/]* | ?:[\\/]*)
7880 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
7881 ;;
7882 *)
7883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7884 for as_dir in $PATH
7885 do
7886 IFS=$as_save_IFS
7887 test -z "$as_dir" && as_dir=.
7888 for ac_exec_ext in '' $ac_executable_extensions; do
7889 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7890 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
7891 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7892 break 2
7893 fi
7894 done
7895 done
7896
7897 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
7898 ;;
7899 esac
7900 fi
7901 GMSGFMT=$ac_cv_path_GMSGFMT
7902
7903 if test -n "$GMSGFMT"; then
7904 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
7905 echo "${ECHO_T}$GMSGFMT" >&6
7906 else
7907 echo "$as_me:$LINENO: result: no" >&5
7908 echo "${ECHO_T}no" >&6
7909 fi
7910
7911 # Extract the first word of "xgettext", so it can be a program name with args.
7912 set dummy xgettext; ac_word=$2
7913 echo "$as_me:$LINENO: checking for $ac_word" >&5
7914 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7915 if test "${ac_cv_path_XGETTEXT+set}" = set; then
7916 echo $ECHO_N "(cached) $ECHO_C" >&6
7917 else
7918 case "$XGETTEXT" in
7919 /*)
7920 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
7921 ;;
7922 *)
7923 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7924 for ac_dir in $PATH; do
7925 test -z "$ac_dir" && ac_dir=.
7926 if test -f $ac_dir/$ac_word; then
7927 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
7928 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
7929 break
7930 fi
7931 fi
7932 done
7933 IFS="$ac_save_ifs"
7934 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
7935 ;;
7936 esac
7937 fi
7938 XGETTEXT="$ac_cv_path_XGETTEXT"
7939 if test -n "$XGETTEXT"; then
7940 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
7941 echo "${ECHO_T}$XGETTEXT" >&6
7942 else
7943 echo "$as_me:$LINENO: result: no" >&5
7944 echo "${ECHO_T}no" >&6
7945 fi
7946
7947
7948 USE_INCLUDED_LIBINTL=yes
7949 CATOBJEXT=.gmo
7950 INSTOBJEXT=.mo
7951 DATADIRNAME=share
7952 INTLDEPS='$(top_builddir)/../intl/libintl.a'
7953 INTLLIBS=$INTLDEPS
7954 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
7955 nls_cv_header_intl=libintl.h
7956 nls_cv_header_libgt=libgettext.h
7957 fi
7958
7959 if test "$XGETTEXT" != ":"; then
7960 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
7961 : ;
7962 else
7963 echo "$as_me:$LINENO: result: found xgettext programs is not GNU xgettext; ignore it" >&5
7964 echo "${ECHO_T}found xgettext programs is not GNU xgettext; ignore it" >&6
7965 XGETTEXT=":"
7966 fi
7967 fi
7968
7969 # We need to process the po/ directory.
7970 POSUB=po
7971 else
7972 DATADIRNAME=share
7973 nls_cv_header_intl=libintl.h
7974 nls_cv_header_libgt=libgettext.h
7975 fi
7976
7977 # If this is used in GNU gettext we have to set USE_NLS to `yes'
7978 # because some of the sources are only built for this goal.
7979 if test "$PACKAGE" = gettext; then
7980 USE_NLS=yes
7981 USE_INCLUDED_LIBINTL=yes
7982 fi
7983
7984 for lang in $ALL_LINGUAS; do
7985 GMOFILES="$GMOFILES $lang.gmo"
7986 POFILES="$POFILES $lang.po"
7987 done
7988
7989
7990
7991
7992
7993
7994
7995
7996
7997
7998
7999
8000
8001
8002 if test "x$CATOBJEXT" != "x"; then
8003 if test "x$ALL_LINGUAS" = "x"; then
8004 LINGUAS=
8005 else
8006 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
8007 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
8008 NEW_LINGUAS=
8009 for lang in ${LINGUAS=$ALL_LINGUAS}; do
8010 case "$ALL_LINGUAS" in
8011 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
8012 esac
8013 done
8014 LINGUAS=$NEW_LINGUAS
8015 echo "$as_me:$LINENO: result: $LINGUAS" >&5
8016 echo "${ECHO_T}$LINGUAS" >&6
8017 fi
8018
8019 if test -n "$LINGUAS"; then
8020 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
8021 fi
8022 fi
8023
8024 if test $ac_cv_header_locale_h = yes; then
8025 INCLUDE_LOCALE_H="#include <locale.h>"
8026 else
8027 INCLUDE_LOCALE_H="\
8028 /* The system does not provide the header <locale.h>. Take care yourself. */"
8029 fi
8030
8031
8032 if test -f $srcdir/po2tbl.sed.in; then
8033 if test "$CATOBJEXT" = ".cat"; then
8034 if test "${ac_cv_header_linux_version_h+set}" = set; then
8035 echo "$as_me:$LINENO: checking for linux/version.h" >&5
8036 echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
8037 if test "${ac_cv_header_linux_version_h+set}" = set; then
8038 echo $ECHO_N "(cached) $ECHO_C" >&6
8039 fi
8040 echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
8041 echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
8042 else
8043 # Is the header compilable?
8044 echo "$as_me:$LINENO: checking linux/version.h usability" >&5
8045 echo $ECHO_N "checking linux/version.h usability... $ECHO_C" >&6
8046 cat >conftest.$ac_ext <<_ACEOF
8047 /* confdefs.h. */
8048 _ACEOF
8049 cat confdefs.h >>conftest.$ac_ext
8050 cat >>conftest.$ac_ext <<_ACEOF
8051 /* end confdefs.h. */
8052 $ac_includes_default
8053 #include <linux/version.h>
8054 _ACEOF
8055 rm -f conftest.$ac_objext
8056 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8057 (eval $ac_compile) 2>conftest.er1
8058 ac_status=$?
8059 grep -v '^ *+' conftest.er1 >conftest.err
8060 rm -f conftest.er1
8061 cat conftest.err >&5
8062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8063 (exit $ac_status); } &&
8064 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8066 (eval $ac_try) 2>&5
8067 ac_status=$?
8068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8069 (exit $ac_status); }; } &&
8070 { ac_try='test -s conftest.$ac_objext'
8071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8072 (eval $ac_try) 2>&5
8073 ac_status=$?
8074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8075 (exit $ac_status); }; }; then
8076 ac_header_compiler=yes
8077 else
8078 echo "$as_me: failed program was:" >&5
8079 sed 's/^/| /' conftest.$ac_ext >&5
8080
8081 ac_header_compiler=no
8082 fi
8083 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8084 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8085 echo "${ECHO_T}$ac_header_compiler" >&6
8086
8087 # Is the header present?
8088 echo "$as_me:$LINENO: checking linux/version.h presence" >&5
8089 echo $ECHO_N "checking linux/version.h presence... $ECHO_C" >&6
8090 cat >conftest.$ac_ext <<_ACEOF
8091 /* confdefs.h. */
8092 _ACEOF
8093 cat confdefs.h >>conftest.$ac_ext
8094 cat >>conftest.$ac_ext <<_ACEOF
8095 /* end confdefs.h. */
8096 #include <linux/version.h>
8097 _ACEOF
8098 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8099 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8100 ac_status=$?
8101 grep -v '^ *+' conftest.er1 >conftest.err
8102 rm -f conftest.er1
8103 cat conftest.err >&5
8104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8105 (exit $ac_status); } >/dev/null; then
8106 if test -s conftest.err; then
8107 ac_cpp_err=$ac_c_preproc_warn_flag
8108 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8109 else
8110 ac_cpp_err=
8111 fi
8112 else
8113 ac_cpp_err=yes
8114 fi
8115 if test -z "$ac_cpp_err"; then
8116 ac_header_preproc=yes
8117 else
8118 echo "$as_me: failed program was:" >&5
8119 sed 's/^/| /' conftest.$ac_ext >&5
8120
8121 ac_header_preproc=no
8122 fi
8123 rm -f conftest.err conftest.$ac_ext
8124 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8125 echo "${ECHO_T}$ac_header_preproc" >&6
8126
8127 # So? What about this header?
8128 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8129 yes:no: )
8130 { echo "$as_me:$LINENO: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
8131 echo "$as_me: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8132 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the compiler's result" >&5
8133 echo "$as_me: WARNING: linux/version.h: proceeding with the compiler's result" >&2;}
8134 ac_header_preproc=yes
8135 ;;
8136 no:yes:* )
8137 { echo "$as_me:$LINENO: WARNING: linux/version.h: present but cannot be compiled" >&5
8138 echo "$as_me: WARNING: linux/version.h: present but cannot be compiled" >&2;}
8139 { echo "$as_me:$LINENO: WARNING: linux/version.h: check for missing prerequisite headers?" >&5
8140 echo "$as_me: WARNING: linux/version.h: check for missing prerequisite headers?" >&2;}
8141 { echo "$as_me:$LINENO: WARNING: linux/version.h: see the Autoconf documentation" >&5
8142 echo "$as_me: WARNING: linux/version.h: see the Autoconf documentation" >&2;}
8143 { echo "$as_me:$LINENO: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&5
8144 echo "$as_me: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
8145 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the preprocessor's result" >&5
8146 echo "$as_me: WARNING: linux/version.h: proceeding with the preprocessor's result" >&2;}
8147 { echo "$as_me:$LINENO: WARNING: linux/version.h: in the future, the compiler will take precedence" >&5
8148 echo "$as_me: WARNING: linux/version.h: in the future, the compiler will take precedence" >&2;}
8149 (
8150 cat <<\_ASBOX
8151 ## ------------------------------------------ ##
8152 ## Report this to the AC_PACKAGE_NAME lists. ##
8153 ## ------------------------------------------ ##
8154 _ASBOX
8155 ) |
8156 sed "s/^/$as_me: WARNING: /" >&2
8157 ;;
8158 esac
8159 echo "$as_me:$LINENO: checking for linux/version.h" >&5
8160 echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
8161 if test "${ac_cv_header_linux_version_h+set}" = set; then
8162 echo $ECHO_N "(cached) $ECHO_C" >&6
8163 else
8164 ac_cv_header_linux_version_h=$ac_header_preproc
8165 fi
8166 echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
8167 echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
8168
8169 fi
8170 if test $ac_cv_header_linux_version_h = yes; then
8171 msgformat=linux
8172 else
8173 msgformat=xopen
8174 fi
8175
8176
8177
8178 sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed
8179 fi
8180 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
8181 $srcdir/po2tbl.sed.in > po2tbl.sed
8182 fi
8183
8184 if test "$PACKAGE" = "gettext"; then
8185 GT_NO="#NO#"
8186 GT_YES=
8187 else
8188 GT_NO=
8189 GT_YES="#YES#"
8190 fi
8191
8192
8193
8194 MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs"
8195
8196
8197 l=
8198
8199
8200 if test -f $srcdir/po/POTFILES.in; then
8201 test -d po || mkdir po
8202 if test "x$srcdir" != "x."; then
8203 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
8204 posrcprefix="$srcdir/"
8205 else
8206 posrcprefix="../$srcdir/"
8207 fi
8208 else
8209 posrcprefix="../"
8210 fi
8211 rm -f po/POTFILES
8212 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
8213 < $srcdir/po/POTFILES.in > po/POTFILES
8214 fi
8215
8216
8217 # Permit host specific settings.
8218 . ${srcdir}/configure.host
8219
8220
8221 # Find a good install program. We prefer a C program (faster),
8222 # so one script is as good as another. But avoid the broken or
8223 # incompatible versions:
8224 # SysV /etc/install, /usr/sbin/install
8225 # SunOS /usr/etc/install
8226 # IRIX /sbin/install
8227 # AIX /bin/install
8228 # AmigaOS /C/install, which installs bootblocks on floppy discs
8229 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
8230 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8231 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8232 # OS/2's system install, which has a completely different semantic
8233 # ./install, which can be erroneously created by make from ./install.sh.
8234 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
8235 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
8236 if test -z "$INSTALL"; then
8237 if test "${ac_cv_path_install+set}" = set; then
8238 echo $ECHO_N "(cached) $ECHO_C" >&6
8239 else
8240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8241 for as_dir in $PATH
8242 do
8243 IFS=$as_save_IFS
8244 test -z "$as_dir" && as_dir=.
8245 # Account for people who put trailing slashes in PATH elements.
8246 case $as_dir/ in
8247 ./ | .// | /cC/* | \
8248 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
8249 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
8250 /usr/ucb/* ) ;;
8251 *)
8252 # OSF1 and SCO ODT 3.0 have their own names for install.
8253 # Don't use installbsd from OSF since it installs stuff as root
8254 # by default.
8255 for ac_prog in ginstall scoinst install; do
8256 for ac_exec_ext in '' $ac_executable_extensions; do
8257 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
8258 if test $ac_prog = install &&
8259 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8260 # AIX install. It has an incompatible calling convention.
8261 :
8262 elif test $ac_prog = install &&
8263 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8264 # program-specific install script used by HP pwplus--don't use.
8265 :
8266 else
8267 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
8268 break 3
8269 fi
8270 fi
8271 done
8272 done
8273 ;;
8274 esac
8275 done
8276
8277
8278 fi
8279 if test "${ac_cv_path_install+set}" = set; then
8280 INSTALL=$ac_cv_path_install
8281 else
8282 # As a last resort, use the slow shell script. We don't cache a
8283 # path for INSTALL within a source directory, because that will
8284 # break other packages using the cache if that directory is
8285 # removed, or if the path is relative.
8286 INSTALL=$ac_install_sh
8287 fi
8288 fi
8289 echo "$as_me:$LINENO: result: $INSTALL" >&5
8290 echo "${ECHO_T}$INSTALL" >&6
8291
8292 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8293 # It thinks the first close brace ends the variable substitution.
8294 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8295
8296 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
8297
8298 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8299
8300
8301 BFD_HOST_64BIT_LONG=0
8302 BFD_HOST_LONG_LONG=0
8303 BFD_HOST_64_BIT_DEFINED=0
8304 BFD_HOST_64_BIT=
8305 BFD_HOST_U_64_BIT=
8306
8307 echo "$as_me:$LINENO: checking for long long" >&5
8308 echo $ECHO_N "checking for long long... $ECHO_C" >&6
8309 if test "${bfd_cv_has_long_long+set}" = set; then
8310 echo $ECHO_N "(cached) $ECHO_C" >&6
8311 else
8312 cat >conftest.$ac_ext <<_ACEOF
8313 /* confdefs.h. */
8314 _ACEOF
8315 cat confdefs.h >>conftest.$ac_ext
8316 cat >>conftest.$ac_ext <<_ACEOF
8317 /* end confdefs.h. */
8318
8319 int
8320 main ()
8321 {
8322 unsigned long long ll = 18446744073709551615ULL;
8323 ;
8324 return 0;
8325 }
8326 _ACEOF
8327 rm -f conftest.$ac_objext
8328 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8329 (eval $ac_compile) 2>conftest.er1
8330 ac_status=$?
8331 grep -v '^ *+' conftest.er1 >conftest.err
8332 rm -f conftest.er1
8333 cat conftest.err >&5
8334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8335 (exit $ac_status); } &&
8336 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8338 (eval $ac_try) 2>&5
8339 ac_status=$?
8340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8341 (exit $ac_status); }; } &&
8342 { ac_try='test -s conftest.$ac_objext'
8343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8344 (eval $ac_try) 2>&5
8345 ac_status=$?
8346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8347 (exit $ac_status); }; }; then
8348 bfd_cv_has_long_long=yes
8349 else
8350 echo "$as_me: failed program was:" >&5
8351 sed 's/^/| /' conftest.$ac_ext >&5
8352
8353 bfd_cv_has_long_long=no
8354 fi
8355 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8356 fi
8357
8358 echo "$as_me:$LINENO: result: $bfd_cv_has_long_long" >&5
8359 echo "${ECHO_T}$bfd_cv_has_long_long" >&6
8360 if test $bfd_cv_has_long_long = yes; then
8361 BFD_HOST_LONG_LONG=1
8362 echo "$as_me:$LINENO: checking size of long long" >&5
8363 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
8364 if test "${ac_cv_sizeof_long_long+set}" = set; then
8365 echo $ECHO_N "(cached) $ECHO_C" >&6
8366 else
8367 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
8368 cat >conftest.$ac_ext <<_ACEOF
8369 /* confdefs.h. */
8370 _ACEOF
8371 cat confdefs.h >>conftest.$ac_ext
8372 cat >>conftest.$ac_ext <<_ACEOF
8373 /* end confdefs.h. */
8374 #include "confdefs.h"
8375 #include <sys/types.h>
8376
8377
8378 int
8379 main ()
8380 {
8381 switch (0) case 0: case (sizeof (long long) == $ac_size):;
8382 ;
8383 return 0;
8384 }
8385 _ACEOF
8386 rm -f conftest.$ac_objext
8387 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8388 (eval $ac_compile) 2>conftest.er1
8389 ac_status=$?
8390 grep -v '^ *+' conftest.er1 >conftest.err
8391 rm -f conftest.er1
8392 cat conftest.err >&5
8393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8394 (exit $ac_status); } &&
8395 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8397 (eval $ac_try) 2>&5
8398 ac_status=$?
8399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8400 (exit $ac_status); }; } &&
8401 { ac_try='test -s conftest.$ac_objext'
8402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8403 (eval $ac_try) 2>&5
8404 ac_status=$?
8405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8406 (exit $ac_status); }; }; then
8407 ac_cv_sizeof_long_long=$ac_size
8408 else
8409 echo "$as_me: failed program was:" >&5
8410 sed 's/^/| /' conftest.$ac_ext >&5
8411
8412 fi
8413 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8414 if test x$ac_cv_sizeof_long_long != x ; then break; fi
8415 done
8416
8417 fi
8418
8419 if test x$ac_cv_sizeof_long_long = x ; then
8420 { { echo "$as_me:$LINENO: error: cannot determine a size for long long" >&5
8421 echo "$as_me: error: cannot determine a size for long long" >&2;}
8422 { (exit 1); exit 1; }; }
8423 fi
8424 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
8425 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
8426
8427 cat >>confdefs.h <<_ACEOF
8428 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
8429 _ACEOF
8430
8431
8432 fi
8433
8434 echo "$as_me:$LINENO: checking size of long" >&5
8435 echo $ECHO_N "checking size of long... $ECHO_C" >&6
8436 if test "${ac_cv_sizeof_long+set}" = set; then
8437 echo $ECHO_N "(cached) $ECHO_C" >&6
8438 else
8439 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
8440 cat >conftest.$ac_ext <<_ACEOF
8441 /* confdefs.h. */
8442 _ACEOF
8443 cat confdefs.h >>conftest.$ac_ext
8444 cat >>conftest.$ac_ext <<_ACEOF
8445 /* end confdefs.h. */
8446 #include "confdefs.h"
8447 #include <sys/types.h>
8448
8449
8450 int
8451 main ()
8452 {
8453 switch (0) case 0: case (sizeof (long) == $ac_size):;
8454 ;
8455 return 0;
8456 }
8457 _ACEOF
8458 rm -f conftest.$ac_objext
8459 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8460 (eval $ac_compile) 2>conftest.er1
8461 ac_status=$?
8462 grep -v '^ *+' conftest.er1 >conftest.err
8463 rm -f conftest.er1
8464 cat conftest.err >&5
8465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8466 (exit $ac_status); } &&
8467 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8469 (eval $ac_try) 2>&5
8470 ac_status=$?
8471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8472 (exit $ac_status); }; } &&
8473 { ac_try='test -s conftest.$ac_objext'
8474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8475 (eval $ac_try) 2>&5
8476 ac_status=$?
8477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8478 (exit $ac_status); }; }; then
8479 ac_cv_sizeof_long=$ac_size
8480 else
8481 echo "$as_me: failed program was:" >&5
8482 sed 's/^/| /' conftest.$ac_ext >&5
8483
8484 fi
8485 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8486 if test x$ac_cv_sizeof_long != x ; then break; fi
8487 done
8488
8489 fi
8490
8491 if test x$ac_cv_sizeof_long = x ; then
8492 { { echo "$as_me:$LINENO: error: cannot determine a size for long" >&5
8493 echo "$as_me: error: cannot determine a size for long" >&2;}
8494 { (exit 1); exit 1; }; }
8495 fi
8496 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
8497 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
8498
8499 cat >>confdefs.h <<_ACEOF
8500 #define SIZEOF_LONG $ac_cv_sizeof_long
8501 _ACEOF
8502
8503
8504 if test "x${ac_cv_sizeof_long}" = "x8"; then
8505 host64=true
8506 BFD_HOST_64BIT_LONG=1
8507 test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long"
8508 test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long"
8509 elif test "x${ac_cv_sizeof_long_long}" = "x8"; then
8510 test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long long"
8511 test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long long"
8512 fi
8513
8514 if test -n "${HOST_64BIT_TYPE}" -a -n "${HOST_U_64BIT_TYPE}"; then
8515 BFD_HOST_64_BIT_DEFINED=1
8516 BFD_HOST_64_BIT="${HOST_64BIT_TYPE}"
8517 BFD_HOST_U_64_BIT="${HOST_U_64BIT_TYPE}"
8518 fi
8519
8520
8521
8522
8523
8524
8525
8526 # Put a plausible default for CC_FOR_BUILD in Makefile.
8527 if test -z "$CC_FOR_BUILD"; then
8528 if test "x$cross_compiling" = "xno"; then
8529 CC_FOR_BUILD='$(CC)'
8530 else
8531 CC_FOR_BUILD=gcc
8532 fi
8533 fi
8534
8535 # Also set EXEEXT_FOR_BUILD.
8536 if test "x$cross_compiling" = "xno"; then
8537 EXEEXT_FOR_BUILD='$(EXEEXT)'
8538 else
8539 echo "$as_me:$LINENO: checking for build system executable suffix" >&5
8540 echo $ECHO_N "checking for build system executable suffix... $ECHO_C" >&6
8541 if test "${bfd_cv_build_exeext+set}" = set; then
8542 echo $ECHO_N "(cached) $ECHO_C" >&6
8543 else
8544 rm -f conftest*
8545 echo 'int main () { return 0; }' > conftest.c
8546 bfd_cv_build_exeext=
8547 ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5
8548 for file in conftest.*; do
8549 case $file in
8550 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
8551 *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
8552 esac
8553 done
8554 rm -f conftest*
8555 test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
8556 fi
8557 echo "$as_me:$LINENO: result: $bfd_cv_build_exeext" >&5
8558 echo "${ECHO_T}$bfd_cv_build_exeext" >&6
8559 EXEEXT_FOR_BUILD=""
8560 test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
8561 fi
8562
8563
8564
8565
8566
8567
8568
8569
8570 for ac_header in stddef.h string.h strings.h stdlib.h time.h unistd.h
8571 do
8572 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8573 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8574 echo "$as_me:$LINENO: checking for $ac_header" >&5
8575 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8576 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8577 echo $ECHO_N "(cached) $ECHO_C" >&6
8578 fi
8579 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8580 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8581 else
8582 # Is the header compilable?
8583 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8584 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
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 #include <$ac_header>
8593 _ACEOF
8594 rm -f conftest.$ac_objext
8595 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8596 (eval $ac_compile) 2>conftest.er1
8597 ac_status=$?
8598 grep -v '^ *+' conftest.er1 >conftest.err
8599 rm -f conftest.er1
8600 cat conftest.err >&5
8601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8602 (exit $ac_status); } &&
8603 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8605 (eval $ac_try) 2>&5
8606 ac_status=$?
8607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8608 (exit $ac_status); }; } &&
8609 { ac_try='test -s conftest.$ac_objext'
8610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8611 (eval $ac_try) 2>&5
8612 ac_status=$?
8613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8614 (exit $ac_status); }; }; then
8615 ac_header_compiler=yes
8616 else
8617 echo "$as_me: failed program was:" >&5
8618 sed 's/^/| /' conftest.$ac_ext >&5
8619
8620 ac_header_compiler=no
8621 fi
8622 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8623 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8624 echo "${ECHO_T}$ac_header_compiler" >&6
8625
8626 # Is the header present?
8627 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8628 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8629 cat >conftest.$ac_ext <<_ACEOF
8630 /* confdefs.h. */
8631 _ACEOF
8632 cat confdefs.h >>conftest.$ac_ext
8633 cat >>conftest.$ac_ext <<_ACEOF
8634 /* end confdefs.h. */
8635 #include <$ac_header>
8636 _ACEOF
8637 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8638 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8639 ac_status=$?
8640 grep -v '^ *+' conftest.er1 >conftest.err
8641 rm -f conftest.er1
8642 cat conftest.err >&5
8643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8644 (exit $ac_status); } >/dev/null; then
8645 if test -s conftest.err; then
8646 ac_cpp_err=$ac_c_preproc_warn_flag
8647 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8648 else
8649 ac_cpp_err=
8650 fi
8651 else
8652 ac_cpp_err=yes
8653 fi
8654 if test -z "$ac_cpp_err"; then
8655 ac_header_preproc=yes
8656 else
8657 echo "$as_me: failed program was:" >&5
8658 sed 's/^/| /' conftest.$ac_ext >&5
8659
8660 ac_header_preproc=no
8661 fi
8662 rm -f conftest.err conftest.$ac_ext
8663 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8664 echo "${ECHO_T}$ac_header_preproc" >&6
8665
8666 # So? What about this header?
8667 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8668 yes:no: )
8669 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8670 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8671 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8672 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8673 ac_header_preproc=yes
8674 ;;
8675 no:yes:* )
8676 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8677 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8678 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8679 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8680 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8681 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8682 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8683 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8684 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8685 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8686 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8687 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8688 (
8689 cat <<\_ASBOX
8690 ## ------------------------------------------ ##
8691 ## Report this to the AC_PACKAGE_NAME lists. ##
8692 ## ------------------------------------------ ##
8693 _ASBOX
8694 ) |
8695 sed "s/^/$as_me: WARNING: /" >&2
8696 ;;
8697 esac
8698 echo "$as_me:$LINENO: checking for $ac_header" >&5
8699 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8700 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8701 echo $ECHO_N "(cached) $ECHO_C" >&6
8702 else
8703 eval "$as_ac_Header=\$ac_header_preproc"
8704 fi
8705 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8706 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8707
8708 fi
8709 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8710 cat >>confdefs.h <<_ACEOF
8711 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8712 _ACEOF
8713
8714 fi
8715
8716 done
8717
8718
8719
8720
8721 for ac_header in fcntl.h sys/file.h sys/time.h
8722 do
8723 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8724 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8725 echo "$as_me:$LINENO: checking for $ac_header" >&5
8726 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8727 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8728 echo $ECHO_N "(cached) $ECHO_C" >&6
8729 fi
8730 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8731 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8732 else
8733 # Is the header compilable?
8734 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8735 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8736 cat >conftest.$ac_ext <<_ACEOF
8737 /* confdefs.h. */
8738 _ACEOF
8739 cat confdefs.h >>conftest.$ac_ext
8740 cat >>conftest.$ac_ext <<_ACEOF
8741 /* end confdefs.h. */
8742 $ac_includes_default
8743 #include <$ac_header>
8744 _ACEOF
8745 rm -f conftest.$ac_objext
8746 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8747 (eval $ac_compile) 2>conftest.er1
8748 ac_status=$?
8749 grep -v '^ *+' conftest.er1 >conftest.err
8750 rm -f conftest.er1
8751 cat conftest.err >&5
8752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8753 (exit $ac_status); } &&
8754 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8756 (eval $ac_try) 2>&5
8757 ac_status=$?
8758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8759 (exit $ac_status); }; } &&
8760 { ac_try='test -s conftest.$ac_objext'
8761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8762 (eval $ac_try) 2>&5
8763 ac_status=$?
8764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8765 (exit $ac_status); }; }; then
8766 ac_header_compiler=yes
8767 else
8768 echo "$as_me: failed program was:" >&5
8769 sed 's/^/| /' conftest.$ac_ext >&5
8770
8771 ac_header_compiler=no
8772 fi
8773 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8774 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8775 echo "${ECHO_T}$ac_header_compiler" >&6
8776
8777 # Is the header present?
8778 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8779 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8780 cat >conftest.$ac_ext <<_ACEOF
8781 /* confdefs.h. */
8782 _ACEOF
8783 cat confdefs.h >>conftest.$ac_ext
8784 cat >>conftest.$ac_ext <<_ACEOF
8785 /* end confdefs.h. */
8786 #include <$ac_header>
8787 _ACEOF
8788 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8789 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8790 ac_status=$?
8791 grep -v '^ *+' conftest.er1 >conftest.err
8792 rm -f conftest.er1
8793 cat conftest.err >&5
8794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8795 (exit $ac_status); } >/dev/null; then
8796 if test -s conftest.err; then
8797 ac_cpp_err=$ac_c_preproc_warn_flag
8798 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8799 else
8800 ac_cpp_err=
8801 fi
8802 else
8803 ac_cpp_err=yes
8804 fi
8805 if test -z "$ac_cpp_err"; then
8806 ac_header_preproc=yes
8807 else
8808 echo "$as_me: failed program was:" >&5
8809 sed 's/^/| /' conftest.$ac_ext >&5
8810
8811 ac_header_preproc=no
8812 fi
8813 rm -f conftest.err conftest.$ac_ext
8814 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8815 echo "${ECHO_T}$ac_header_preproc" >&6
8816
8817 # So? What about this header?
8818 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8819 yes:no: )
8820 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8821 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8822 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8823 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8824 ac_header_preproc=yes
8825 ;;
8826 no:yes:* )
8827 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8828 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8829 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8830 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8831 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8832 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8833 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8834 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8835 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8836 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8837 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8838 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8839 (
8840 cat <<\_ASBOX
8841 ## ------------------------------------------ ##
8842 ## Report this to the AC_PACKAGE_NAME lists. ##
8843 ## ------------------------------------------ ##
8844 _ASBOX
8845 ) |
8846 sed "s/^/$as_me: WARNING: /" >&2
8847 ;;
8848 esac
8849 echo "$as_me:$LINENO: checking for $ac_header" >&5
8850 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8851 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8852 echo $ECHO_N "(cached) $ECHO_C" >&6
8853 else
8854 eval "$as_ac_Header=\$ac_header_preproc"
8855 fi
8856 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8857 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8858
8859 fi
8860 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8861 cat >>confdefs.h <<_ACEOF
8862 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8863 _ACEOF
8864
8865 fi
8866
8867 done
8868
8869 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
8870 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
8871 if test "${ac_cv_header_time+set}" = set; then
8872 echo $ECHO_N "(cached) $ECHO_C" >&6
8873 else
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 #include <sys/types.h>
8881 #include <sys/time.h>
8882 #include <time.h>
8883
8884 int
8885 main ()
8886 {
8887 if ((struct tm *) 0)
8888 return 0;
8889 ;
8890 return 0;
8891 }
8892 _ACEOF
8893 rm -f conftest.$ac_objext
8894 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8895 (eval $ac_compile) 2>conftest.er1
8896 ac_status=$?
8897 grep -v '^ *+' conftest.er1 >conftest.err
8898 rm -f conftest.er1
8899 cat conftest.err >&5
8900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8901 (exit $ac_status); } &&
8902 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8904 (eval $ac_try) 2>&5
8905 ac_status=$?
8906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8907 (exit $ac_status); }; } &&
8908 { ac_try='test -s conftest.$ac_objext'
8909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8910 (eval $ac_try) 2>&5
8911 ac_status=$?
8912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8913 (exit $ac_status); }; }; then
8914 ac_cv_header_time=yes
8915 else
8916 echo "$as_me: failed program was:" >&5
8917 sed 's/^/| /' conftest.$ac_ext >&5
8918
8919 ac_cv_header_time=no
8920 fi
8921 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8922 fi
8923 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
8924 echo "${ECHO_T}$ac_cv_header_time" >&6
8925 if test $ac_cv_header_time = yes; then
8926
8927 cat >>confdefs.h <<\_ACEOF
8928 #define TIME_WITH_SYS_TIME 1
8929 _ACEOF
8930
8931 fi
8932
8933
8934
8935
8936
8937
8938 ac_header_dirent=no
8939 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8940 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8941 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8942 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
8943 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8944 echo $ECHO_N "(cached) $ECHO_C" >&6
8945 else
8946 cat >conftest.$ac_ext <<_ACEOF
8947 /* confdefs.h. */
8948 _ACEOF
8949 cat confdefs.h >>conftest.$ac_ext
8950 cat >>conftest.$ac_ext <<_ACEOF
8951 /* end confdefs.h. */
8952 #include <sys/types.h>
8953 #include <$ac_hdr>
8954
8955 int
8956 main ()
8957 {
8958 if ((DIR *) 0)
8959 return 0;
8960 ;
8961 return 0;
8962 }
8963 _ACEOF
8964 rm -f conftest.$ac_objext
8965 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8966 (eval $ac_compile) 2>conftest.er1
8967 ac_status=$?
8968 grep -v '^ *+' conftest.er1 >conftest.err
8969 rm -f conftest.er1
8970 cat conftest.err >&5
8971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8972 (exit $ac_status); } &&
8973 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8975 (eval $ac_try) 2>&5
8976 ac_status=$?
8977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8978 (exit $ac_status); }; } &&
8979 { ac_try='test -s conftest.$ac_objext'
8980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8981 (eval $ac_try) 2>&5
8982 ac_status=$?
8983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8984 (exit $ac_status); }; }; then
8985 eval "$as_ac_Header=yes"
8986 else
8987 echo "$as_me: failed program was:" >&5
8988 sed 's/^/| /' conftest.$ac_ext >&5
8989
8990 eval "$as_ac_Header=no"
8991 fi
8992 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8993 fi
8994 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8995 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8996 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8997 cat >>confdefs.h <<_ACEOF
8998 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8999 _ACEOF
9000
9001 ac_header_dirent=$ac_hdr; break
9002 fi
9003
9004 done
9005 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9006 if test $ac_header_dirent = dirent.h; then
9007 echo "$as_me:$LINENO: checking for library containing opendir" >&5
9008 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9009 if test "${ac_cv_search_opendir+set}" = set; then
9010 echo $ECHO_N "(cached) $ECHO_C" >&6
9011 else
9012 ac_func_search_save_LIBS=$LIBS
9013 ac_cv_search_opendir=no
9014 cat >conftest.$ac_ext <<_ACEOF
9015 /* confdefs.h. */
9016 _ACEOF
9017 cat confdefs.h >>conftest.$ac_ext
9018 cat >>conftest.$ac_ext <<_ACEOF
9019 /* end confdefs.h. */
9020
9021 /* Override any gcc2 internal prototype to avoid an error. */
9022 #ifdef __cplusplus
9023 extern "C"
9024 #endif
9025 /* We use char because int might match the return type of a gcc2
9026 builtin and then its argument prototype would still apply. */
9027 char opendir ();
9028 int
9029 main ()
9030 {
9031 opendir ();
9032 ;
9033 return 0;
9034 }
9035 _ACEOF
9036 rm -f conftest.$ac_objext conftest$ac_exeext
9037 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9038 (eval $ac_link) 2>conftest.er1
9039 ac_status=$?
9040 grep -v '^ *+' conftest.er1 >conftest.err
9041 rm -f conftest.er1
9042 cat conftest.err >&5
9043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9044 (exit $ac_status); } &&
9045 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9047 (eval $ac_try) 2>&5
9048 ac_status=$?
9049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9050 (exit $ac_status); }; } &&
9051 { ac_try='test -s conftest$ac_exeext'
9052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9053 (eval $ac_try) 2>&5
9054 ac_status=$?
9055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9056 (exit $ac_status); }; }; then
9057 ac_cv_search_opendir="none required"
9058 else
9059 echo "$as_me: failed program was:" >&5
9060 sed 's/^/| /' conftest.$ac_ext >&5
9061
9062 fi
9063 rm -f conftest.err conftest.$ac_objext \
9064 conftest$ac_exeext conftest.$ac_ext
9065 if test "$ac_cv_search_opendir" = no; then
9066 for ac_lib in dir; do
9067 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9068 cat >conftest.$ac_ext <<_ACEOF
9069 /* confdefs.h. */
9070 _ACEOF
9071 cat confdefs.h >>conftest.$ac_ext
9072 cat >>conftest.$ac_ext <<_ACEOF
9073 /* end confdefs.h. */
9074
9075 /* Override any gcc2 internal prototype to avoid an error. */
9076 #ifdef __cplusplus
9077 extern "C"
9078 #endif
9079 /* We use char because int might match the return type of a gcc2
9080 builtin and then its argument prototype would still apply. */
9081 char opendir ();
9082 int
9083 main ()
9084 {
9085 opendir ();
9086 ;
9087 return 0;
9088 }
9089 _ACEOF
9090 rm -f conftest.$ac_objext conftest$ac_exeext
9091 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9092 (eval $ac_link) 2>conftest.er1
9093 ac_status=$?
9094 grep -v '^ *+' conftest.er1 >conftest.err
9095 rm -f conftest.er1
9096 cat conftest.err >&5
9097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9098 (exit $ac_status); } &&
9099 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9101 (eval $ac_try) 2>&5
9102 ac_status=$?
9103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9104 (exit $ac_status); }; } &&
9105 { ac_try='test -s conftest$ac_exeext'
9106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9107 (eval $ac_try) 2>&5
9108 ac_status=$?
9109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9110 (exit $ac_status); }; }; then
9111 ac_cv_search_opendir="-l$ac_lib"
9112 break
9113 else
9114 echo "$as_me: failed program was:" >&5
9115 sed 's/^/| /' conftest.$ac_ext >&5
9116
9117 fi
9118 rm -f conftest.err conftest.$ac_objext \
9119 conftest$ac_exeext conftest.$ac_ext
9120 done
9121 fi
9122 LIBS=$ac_func_search_save_LIBS
9123 fi
9124 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9125 echo "${ECHO_T}$ac_cv_search_opendir" >&6
9126 if test "$ac_cv_search_opendir" != no; then
9127 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9128
9129 fi
9130
9131 else
9132 echo "$as_me:$LINENO: checking for library containing opendir" >&5
9133 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9134 if test "${ac_cv_search_opendir+set}" = set; then
9135 echo $ECHO_N "(cached) $ECHO_C" >&6
9136 else
9137 ac_func_search_save_LIBS=$LIBS
9138 ac_cv_search_opendir=no
9139 cat >conftest.$ac_ext <<_ACEOF
9140 /* confdefs.h. */
9141 _ACEOF
9142 cat confdefs.h >>conftest.$ac_ext
9143 cat >>conftest.$ac_ext <<_ACEOF
9144 /* end confdefs.h. */
9145
9146 /* Override any gcc2 internal prototype to avoid an error. */
9147 #ifdef __cplusplus
9148 extern "C"
9149 #endif
9150 /* We use char because int might match the return type of a gcc2
9151 builtin and then its argument prototype would still apply. */
9152 char opendir ();
9153 int
9154 main ()
9155 {
9156 opendir ();
9157 ;
9158 return 0;
9159 }
9160 _ACEOF
9161 rm -f conftest.$ac_objext conftest$ac_exeext
9162 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9163 (eval $ac_link) 2>conftest.er1
9164 ac_status=$?
9165 grep -v '^ *+' conftest.er1 >conftest.err
9166 rm -f conftest.er1
9167 cat conftest.err >&5
9168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9169 (exit $ac_status); } &&
9170 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9172 (eval $ac_try) 2>&5
9173 ac_status=$?
9174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9175 (exit $ac_status); }; } &&
9176 { ac_try='test -s conftest$ac_exeext'
9177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9178 (eval $ac_try) 2>&5
9179 ac_status=$?
9180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9181 (exit $ac_status); }; }; then
9182 ac_cv_search_opendir="none required"
9183 else
9184 echo "$as_me: failed program was:" >&5
9185 sed 's/^/| /' conftest.$ac_ext >&5
9186
9187 fi
9188 rm -f conftest.err conftest.$ac_objext \
9189 conftest$ac_exeext conftest.$ac_ext
9190 if test "$ac_cv_search_opendir" = no; then
9191 for ac_lib in x; do
9192 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9193 cat >conftest.$ac_ext <<_ACEOF
9194 /* confdefs.h. */
9195 _ACEOF
9196 cat confdefs.h >>conftest.$ac_ext
9197 cat >>conftest.$ac_ext <<_ACEOF
9198 /* end confdefs.h. */
9199
9200 /* Override any gcc2 internal prototype to avoid an error. */
9201 #ifdef __cplusplus
9202 extern "C"
9203 #endif
9204 /* We use char because int might match the return type of a gcc2
9205 builtin and then its argument prototype would still apply. */
9206 char opendir ();
9207 int
9208 main ()
9209 {
9210 opendir ();
9211 ;
9212 return 0;
9213 }
9214 _ACEOF
9215 rm -f conftest.$ac_objext conftest$ac_exeext
9216 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9217 (eval $ac_link) 2>conftest.er1
9218 ac_status=$?
9219 grep -v '^ *+' conftest.er1 >conftest.err
9220 rm -f conftest.er1
9221 cat conftest.err >&5
9222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9223 (exit $ac_status); } &&
9224 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9226 (eval $ac_try) 2>&5
9227 ac_status=$?
9228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9229 (exit $ac_status); }; } &&
9230 { ac_try='test -s conftest$ac_exeext'
9231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9232 (eval $ac_try) 2>&5
9233 ac_status=$?
9234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9235 (exit $ac_status); }; }; then
9236 ac_cv_search_opendir="-l$ac_lib"
9237 break
9238 else
9239 echo "$as_me: failed program was:" >&5
9240 sed 's/^/| /' conftest.$ac_ext >&5
9241
9242 fi
9243 rm -f conftest.err conftest.$ac_objext \
9244 conftest$ac_exeext conftest.$ac_ext
9245 done
9246 fi
9247 LIBS=$ac_func_search_save_LIBS
9248 fi
9249 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9250 echo "${ECHO_T}$ac_cv_search_opendir" >&6
9251 if test "$ac_cv_search_opendir" != no; then
9252 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9253
9254 fi
9255
9256 fi
9257
9258
9259
9260
9261
9262
9263
9264
9265 for ac_func in fcntl getpagesize setitimer sysconf fdopen getuid getgid
9266 do
9267 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9268 echo "$as_me:$LINENO: checking for $ac_func" >&5
9269 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9270 if eval "test \"\${$as_ac_var+set}\" = set"; then
9271 echo $ECHO_N "(cached) $ECHO_C" >&6
9272 else
9273 cat >conftest.$ac_ext <<_ACEOF
9274 /* confdefs.h. */
9275 _ACEOF
9276 cat confdefs.h >>conftest.$ac_ext
9277 cat >>conftest.$ac_ext <<_ACEOF
9278 /* end confdefs.h. */
9279 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9280 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9281 #define $ac_func innocuous_$ac_func
9282
9283 /* System header to define __stub macros and hopefully few prototypes,
9284 which can conflict with char $ac_func (); below.
9285 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9286 <limits.h> exists even on freestanding compilers. */
9287
9288 #ifdef __STDC__
9289 # include <limits.h>
9290 #else
9291 # include <assert.h>
9292 #endif
9293
9294 #undef $ac_func
9295
9296 /* Override any gcc2 internal prototype to avoid an error. */
9297 #ifdef __cplusplus
9298 extern "C"
9299 {
9300 #endif
9301 /* We use char because int might match the return type of a gcc2
9302 builtin and then its argument prototype would still apply. */
9303 char $ac_func ();
9304 /* The GNU C library defines this for functions which it implements
9305 to always fail with ENOSYS. Some functions are actually named
9306 something starting with __ and the normal name is an alias. */
9307 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9308 choke me
9309 #else
9310 char (*f) () = $ac_func;
9311 #endif
9312 #ifdef __cplusplus
9313 }
9314 #endif
9315
9316 int
9317 main ()
9318 {
9319 return f != $ac_func;
9320 ;
9321 return 0;
9322 }
9323 _ACEOF
9324 rm -f conftest.$ac_objext conftest$ac_exeext
9325 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9326 (eval $ac_link) 2>conftest.er1
9327 ac_status=$?
9328 grep -v '^ *+' conftest.er1 >conftest.err
9329 rm -f conftest.er1
9330 cat conftest.err >&5
9331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9332 (exit $ac_status); } &&
9333 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9335 (eval $ac_try) 2>&5
9336 ac_status=$?
9337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9338 (exit $ac_status); }; } &&
9339 { ac_try='test -s conftest$ac_exeext'
9340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9341 (eval $ac_try) 2>&5
9342 ac_status=$?
9343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9344 (exit $ac_status); }; }; then
9345 eval "$as_ac_var=yes"
9346 else
9347 echo "$as_me: failed program was:" >&5
9348 sed 's/^/| /' conftest.$ac_ext >&5
9349
9350 eval "$as_ac_var=no"
9351 fi
9352 rm -f conftest.err conftest.$ac_objext \
9353 conftest$ac_exeext conftest.$ac_ext
9354 fi
9355 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9356 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9357 if test `eval echo '${'$as_ac_var'}'` = yes; then
9358 cat >>confdefs.h <<_ACEOF
9359 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9360 _ACEOF
9361
9362 fi
9363 done
9364
9365
9366 for ac_func in strtoull
9367 do
9368 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9369 echo "$as_me:$LINENO: checking for $ac_func" >&5
9370 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9371 if eval "test \"\${$as_ac_var+set}\" = set"; then
9372 echo $ECHO_N "(cached) $ECHO_C" >&6
9373 else
9374 cat >conftest.$ac_ext <<_ACEOF
9375 /* confdefs.h. */
9376 _ACEOF
9377 cat confdefs.h >>conftest.$ac_ext
9378 cat >>conftest.$ac_ext <<_ACEOF
9379 /* end confdefs.h. */
9380 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9381 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9382 #define $ac_func innocuous_$ac_func
9383
9384 /* System header to define __stub macros and hopefully few prototypes,
9385 which can conflict with char $ac_func (); below.
9386 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9387 <limits.h> exists even on freestanding compilers. */
9388
9389 #ifdef __STDC__
9390 # include <limits.h>
9391 #else
9392 # include <assert.h>
9393 #endif
9394
9395 #undef $ac_func
9396
9397 /* Override any gcc2 internal prototype to avoid an error. */
9398 #ifdef __cplusplus
9399 extern "C"
9400 {
9401 #endif
9402 /* We use char because int might match the return type of a gcc2
9403 builtin and then its argument prototype would still apply. */
9404 char $ac_func ();
9405 /* The GNU C library defines this for functions which it implements
9406 to always fail with ENOSYS. Some functions are actually named
9407 something starting with __ and the normal name is an alias. */
9408 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9409 choke me
9410 #else
9411 char (*f) () = $ac_func;
9412 #endif
9413 #ifdef __cplusplus
9414 }
9415 #endif
9416
9417 int
9418 main ()
9419 {
9420 return f != $ac_func;
9421 ;
9422 return 0;
9423 }
9424 _ACEOF
9425 rm -f conftest.$ac_objext conftest$ac_exeext
9426 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9427 (eval $ac_link) 2>conftest.er1
9428 ac_status=$?
9429 grep -v '^ *+' conftest.er1 >conftest.err
9430 rm -f conftest.er1
9431 cat conftest.err >&5
9432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9433 (exit $ac_status); } &&
9434 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9436 (eval $ac_try) 2>&5
9437 ac_status=$?
9438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9439 (exit $ac_status); }; } &&
9440 { ac_try='test -s conftest$ac_exeext'
9441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9442 (eval $ac_try) 2>&5
9443 ac_status=$?
9444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9445 (exit $ac_status); }; }; then
9446 eval "$as_ac_var=yes"
9447 else
9448 echo "$as_me: failed program was:" >&5
9449 sed 's/^/| /' conftest.$ac_ext >&5
9450
9451 eval "$as_ac_var=no"
9452 fi
9453 rm -f conftest.err conftest.$ac_objext \
9454 conftest$ac_exeext conftest.$ac_ext
9455 fi
9456 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9457 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9458 if test `eval echo '${'$as_ac_var'}'` = yes; then
9459 cat >>confdefs.h <<_ACEOF
9460 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9461 _ACEOF
9462
9463 fi
9464 done
9465
9466
9467
9468 case "${host}" in
9469 *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
9470
9471 cat >>confdefs.h <<\_ACEOF
9472 #define USE_BINARY_FOPEN 1
9473 _ACEOF
9474 ;;
9475 esac
9476
9477 echo "$as_me:$LINENO: checking whether strstr must be declared" >&5
9478 echo $ECHO_N "checking whether strstr must be declared... $ECHO_C" >&6
9479 if test "${bfd_cv_decl_needed_strstr+set}" = set; then
9480 echo $ECHO_N "(cached) $ECHO_C" >&6
9481 else
9482 cat >conftest.$ac_ext <<_ACEOF
9483 /* confdefs.h. */
9484 _ACEOF
9485 cat confdefs.h >>conftest.$ac_ext
9486 cat >>conftest.$ac_ext <<_ACEOF
9487 /* end confdefs.h. */
9488
9489 #include <stdio.h>
9490 #ifdef HAVE_STRING_H
9491 #include <string.h>
9492 #else
9493 #ifdef HAVE_STRINGS_H
9494 #include <strings.h>
9495 #endif
9496 #endif
9497 #ifdef HAVE_STDLIB_H
9498 #include <stdlib.h>
9499 #endif
9500 #ifdef HAVE_UNISTD_H
9501 #include <unistd.h>
9502 #endif
9503 int
9504 main ()
9505 {
9506 char *(*pfn) = (char *(*)) strstr
9507 ;
9508 return 0;
9509 }
9510 _ACEOF
9511 rm -f conftest.$ac_objext
9512 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9513 (eval $ac_compile) 2>conftest.er1
9514 ac_status=$?
9515 grep -v '^ *+' conftest.er1 >conftest.err
9516 rm -f conftest.er1
9517 cat conftest.err >&5
9518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9519 (exit $ac_status); } &&
9520 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9522 (eval $ac_try) 2>&5
9523 ac_status=$?
9524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9525 (exit $ac_status); }; } &&
9526 { ac_try='test -s conftest.$ac_objext'
9527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9528 (eval $ac_try) 2>&5
9529 ac_status=$?
9530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9531 (exit $ac_status); }; }; then
9532 bfd_cv_decl_needed_strstr=no
9533 else
9534 echo "$as_me: failed program was:" >&5
9535 sed 's/^/| /' conftest.$ac_ext >&5
9536
9537 bfd_cv_decl_needed_strstr=yes
9538 fi
9539 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9540 fi
9541
9542 echo "$as_me:$LINENO: result: $bfd_cv_decl_needed_strstr" >&5
9543 echo "${ECHO_T}$bfd_cv_decl_needed_strstr" >&6
9544 if test $bfd_cv_decl_needed_strstr = yes; then
9545
9546 cat >>confdefs.h <<\_ACEOF
9547 #define NEED_DECLARATION_STRSTR 1
9548 _ACEOF
9549
9550 fi
9551
9552 echo "$as_me:$LINENO: checking whether malloc must be declared" >&5
9553 echo $ECHO_N "checking whether malloc must be declared... $ECHO_C" >&6
9554 if test "${bfd_cv_decl_needed_malloc+set}" = set; then
9555 echo $ECHO_N "(cached) $ECHO_C" >&6
9556 else
9557 cat >conftest.$ac_ext <<_ACEOF
9558 /* confdefs.h. */
9559 _ACEOF
9560 cat confdefs.h >>conftest.$ac_ext
9561 cat >>conftest.$ac_ext <<_ACEOF
9562 /* end confdefs.h. */
9563
9564 #include <stdio.h>
9565 #ifdef HAVE_STRING_H
9566 #include <string.h>
9567 #else
9568 #ifdef HAVE_STRINGS_H
9569 #include <strings.h>
9570 #endif
9571 #endif
9572 #ifdef HAVE_STDLIB_H
9573 #include <stdlib.h>
9574 #endif
9575 #ifdef HAVE_UNISTD_H
9576 #include <unistd.h>
9577 #endif
9578 int
9579 main ()
9580 {
9581 char *(*pfn) = (char *(*)) malloc
9582 ;
9583 return 0;
9584 }
9585 _ACEOF
9586 rm -f conftest.$ac_objext
9587 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9588 (eval $ac_compile) 2>conftest.er1
9589 ac_status=$?
9590 grep -v '^ *+' conftest.er1 >conftest.err
9591 rm -f conftest.er1
9592 cat conftest.err >&5
9593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9594 (exit $ac_status); } &&
9595 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9597 (eval $ac_try) 2>&5
9598 ac_status=$?
9599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9600 (exit $ac_status); }; } &&
9601 { ac_try='test -s conftest.$ac_objext'
9602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9603 (eval $ac_try) 2>&5
9604 ac_status=$?
9605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9606 (exit $ac_status); }; }; then
9607 bfd_cv_decl_needed_malloc=no
9608 else
9609 echo "$as_me: failed program was:" >&5
9610 sed 's/^/| /' conftest.$ac_ext >&5
9611
9612 bfd_cv_decl_needed_malloc=yes
9613 fi
9614 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9615 fi
9616
9617 echo "$as_me:$LINENO: result: $bfd_cv_decl_needed_malloc" >&5
9618 echo "${ECHO_T}$bfd_cv_decl_needed_malloc" >&6
9619 if test $bfd_cv_decl_needed_malloc = yes; then
9620
9621 cat >>confdefs.h <<\_ACEOF
9622 #define NEED_DECLARATION_MALLOC 1
9623 _ACEOF
9624
9625 fi
9626
9627 echo "$as_me:$LINENO: checking whether realloc must be declared" >&5
9628 echo $ECHO_N "checking whether realloc must be declared... $ECHO_C" >&6
9629 if test "${bfd_cv_decl_needed_realloc+set}" = set; then
9630 echo $ECHO_N "(cached) $ECHO_C" >&6
9631 else
9632 cat >conftest.$ac_ext <<_ACEOF
9633 /* confdefs.h. */
9634 _ACEOF
9635 cat confdefs.h >>conftest.$ac_ext
9636 cat >>conftest.$ac_ext <<_ACEOF
9637 /* end confdefs.h. */
9638
9639 #include <stdio.h>
9640 #ifdef HAVE_STRING_H
9641 #include <string.h>
9642 #else
9643 #ifdef HAVE_STRINGS_H
9644 #include <strings.h>
9645 #endif
9646 #endif
9647 #ifdef HAVE_STDLIB_H
9648 #include <stdlib.h>
9649 #endif
9650 #ifdef HAVE_UNISTD_H
9651 #include <unistd.h>
9652 #endif
9653 int
9654 main ()
9655 {
9656 char *(*pfn) = (char *(*)) realloc
9657 ;
9658 return 0;
9659 }
9660 _ACEOF
9661 rm -f conftest.$ac_objext
9662 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9663 (eval $ac_compile) 2>conftest.er1
9664 ac_status=$?
9665 grep -v '^ *+' conftest.er1 >conftest.err
9666 rm -f conftest.er1
9667 cat conftest.err >&5
9668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9669 (exit $ac_status); } &&
9670 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9672 (eval $ac_try) 2>&5
9673 ac_status=$?
9674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9675 (exit $ac_status); }; } &&
9676 { ac_try='test -s conftest.$ac_objext'
9677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9678 (eval $ac_try) 2>&5
9679 ac_status=$?
9680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9681 (exit $ac_status); }; }; then
9682 bfd_cv_decl_needed_realloc=no
9683 else
9684 echo "$as_me: failed program was:" >&5
9685 sed 's/^/| /' conftest.$ac_ext >&5
9686
9687 bfd_cv_decl_needed_realloc=yes
9688 fi
9689 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9690 fi
9691
9692 echo "$as_me:$LINENO: result: $bfd_cv_decl_needed_realloc" >&5
9693 echo "${ECHO_T}$bfd_cv_decl_needed_realloc" >&6
9694 if test $bfd_cv_decl_needed_realloc = yes; then
9695
9696 cat >>confdefs.h <<\_ACEOF
9697 #define NEED_DECLARATION_REALLOC 1
9698 _ACEOF
9699
9700 fi
9701
9702 echo "$as_me:$LINENO: checking whether free must be declared" >&5
9703 echo $ECHO_N "checking whether free must be declared... $ECHO_C" >&6
9704 if test "${bfd_cv_decl_needed_free+set}" = set; then
9705 echo $ECHO_N "(cached) $ECHO_C" >&6
9706 else
9707 cat >conftest.$ac_ext <<_ACEOF
9708 /* confdefs.h. */
9709 _ACEOF
9710 cat confdefs.h >>conftest.$ac_ext
9711 cat >>conftest.$ac_ext <<_ACEOF
9712 /* end confdefs.h. */
9713
9714 #include <stdio.h>
9715 #ifdef HAVE_STRING_H
9716 #include <string.h>
9717 #else
9718 #ifdef HAVE_STRINGS_H
9719 #include <strings.h>
9720 #endif
9721 #endif
9722 #ifdef HAVE_STDLIB_H
9723 #include <stdlib.h>
9724 #endif
9725 #ifdef HAVE_UNISTD_H
9726 #include <unistd.h>
9727 #endif
9728 int
9729 main ()
9730 {
9731 char *(*pfn) = (char *(*)) free
9732 ;
9733 return 0;
9734 }
9735 _ACEOF
9736 rm -f conftest.$ac_objext
9737 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9738 (eval $ac_compile) 2>conftest.er1
9739 ac_status=$?
9740 grep -v '^ *+' conftest.er1 >conftest.err
9741 rm -f conftest.er1
9742 cat conftest.err >&5
9743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9744 (exit $ac_status); } &&
9745 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9747 (eval $ac_try) 2>&5
9748 ac_status=$?
9749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9750 (exit $ac_status); }; } &&
9751 { ac_try='test -s conftest.$ac_objext'
9752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9753 (eval $ac_try) 2>&5
9754 ac_status=$?
9755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9756 (exit $ac_status); }; }; then
9757 bfd_cv_decl_needed_free=no
9758 else
9759 echo "$as_me: failed program was:" >&5
9760 sed 's/^/| /' conftest.$ac_ext >&5
9761
9762 bfd_cv_decl_needed_free=yes
9763 fi
9764 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9765 fi
9766
9767 echo "$as_me:$LINENO: result: $bfd_cv_decl_needed_free" >&5
9768 echo "${ECHO_T}$bfd_cv_decl_needed_free" >&6
9769 if test $bfd_cv_decl_needed_free = yes; then
9770
9771 cat >>confdefs.h <<\_ACEOF
9772 #define NEED_DECLARATION_FREE 1
9773 _ACEOF
9774
9775 fi
9776
9777 echo "$as_me:$LINENO: checking whether getenv must be declared" >&5
9778 echo $ECHO_N "checking whether getenv must be declared... $ECHO_C" >&6
9779 if test "${bfd_cv_decl_needed_getenv+set}" = set; then
9780 echo $ECHO_N "(cached) $ECHO_C" >&6
9781 else
9782 cat >conftest.$ac_ext <<_ACEOF
9783 /* confdefs.h. */
9784 _ACEOF
9785 cat confdefs.h >>conftest.$ac_ext
9786 cat >>conftest.$ac_ext <<_ACEOF
9787 /* end confdefs.h. */
9788
9789 #include <stdio.h>
9790 #ifdef HAVE_STRING_H
9791 #include <string.h>
9792 #else
9793 #ifdef HAVE_STRINGS_H
9794 #include <strings.h>
9795 #endif
9796 #endif
9797 #ifdef HAVE_STDLIB_H
9798 #include <stdlib.h>
9799 #endif
9800 #ifdef HAVE_UNISTD_H
9801 #include <unistd.h>
9802 #endif
9803 int
9804 main ()
9805 {
9806 char *(*pfn) = (char *(*)) getenv
9807 ;
9808 return 0;
9809 }
9810 _ACEOF
9811 rm -f conftest.$ac_objext
9812 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9813 (eval $ac_compile) 2>conftest.er1
9814 ac_status=$?
9815 grep -v '^ *+' conftest.er1 >conftest.err
9816 rm -f conftest.er1
9817 cat conftest.err >&5
9818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9819 (exit $ac_status); } &&
9820 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9822 (eval $ac_try) 2>&5
9823 ac_status=$?
9824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9825 (exit $ac_status); }; } &&
9826 { ac_try='test -s conftest.$ac_objext'
9827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9828 (eval $ac_try) 2>&5
9829 ac_status=$?
9830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9831 (exit $ac_status); }; }; then
9832 bfd_cv_decl_needed_getenv=no
9833 else
9834 echo "$as_me: failed program was:" >&5
9835 sed 's/^/| /' conftest.$ac_ext >&5
9836
9837 bfd_cv_decl_needed_getenv=yes
9838 fi
9839 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9840 fi
9841
9842 echo "$as_me:$LINENO: result: $bfd_cv_decl_needed_getenv" >&5
9843 echo "${ECHO_T}$bfd_cv_decl_needed_getenv" >&6
9844 if test $bfd_cv_decl_needed_getenv = yes; then
9845
9846 cat >>confdefs.h <<\_ACEOF
9847 #define NEED_DECLARATION_GETENV 1
9848 _ACEOF
9849
9850 fi
9851
9852
9853 # If we are configured native, pick a core file support file.
9854 COREFILE=
9855 COREFLAG=
9856 TRAD_HEADER=
9857 if test "${target}" = "${host}"; then
9858 case "${host}" in
9859 alpha*-*-freebsd* | alpha*-*-kfreebsd*-gnu)
9860 COREFILE=''
9861 ;;
9862 alpha*-*-linux-gnu*)
9863 COREFILE=trad-core.lo
9864 TRAD_HEADER='"hosts/alphalinux.h"'
9865 ;;
9866 alpha*-*-netbsd* | alpha*-*-openbsd*)
9867 COREFILE=netbsd-core.lo
9868 ;;
9869 alpha*-*-*) COREFILE=osf-core.lo ;;
9870 arm-*-freebsd* | arm-*-kfreebsd*-gnu)
9871 COREFILE='' ;;
9872 arm-*-netbsd*) COREFILE=netbsd-core.lo ;;
9873 arm-*-riscix) COREFILE=trad-core.lo ;;
9874 hppa*-*-hpux*) COREFILE=hpux-core.lo ;;
9875 hppa*-*-hiux*) COREFILE=hpux-core.lo ;;
9876 hppa*-*-mpeix*) COREFILE=hpux-core.lo ;;
9877 hppa*-*-bsd*) COREFILE="hpux-core.lo hppabsd-core.lo"
9878 COREFLAG="-DHPUX_CORE -DHPPABSD_CORE" ;;
9879 hppa*-*-netbsd* | hppa*-*-openbsd*)
9880 COREFILE=netbsd-core.lo
9881 ;;
9882
9883 i370-*-*)
9884 COREFILE=trad-core.lo
9885 TRAD_HEADER='"hosts/i370linux.h"'
9886 ;;
9887
9888 i[3-7]86-sequent-bsd*)
9889 COREFILE=trad-core.lo
9890 TRAD_HEADER='"hosts/symmetry.h"'
9891 ;;
9892 i[3-7]86-sequent-sysv4*) ;;
9893 i[3-7]86-sequent-sysv*)
9894 COREFILE=trad-core.lo
9895 TRAD_HEADER='"hosts/symmetry.h"'
9896 ;;
9897 i[3-7]86-*-bsdi)
9898 COREFILE=
9899 ;;
9900 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*)
9901 COREFILE=trad-core.lo
9902 TRAD_HEADER='"hosts/i386bsd.h"'
9903 ;;
9904 i[3-7]86-*-freebsd* | i[3-7]86-*-kfreebsd*-gnu)
9905 COREFILE=''
9906 TRAD_HEADER='"hosts/i386bsd.h"'
9907 ;;
9908 i[3-7]86-*-netbsd* | i[3-7]86-*-knetbsd*-gnu | i[3-7]86-*-openbsd*)
9909 COREFILE=netbsd-core.lo
9910 ;;
9911 i[3-7]86-esix-sysv3*)
9912 COREFILE=trad-core.lo
9913 TRAD_HEADER='"hosts/esix.h"'
9914 ;;
9915 i[3-7]86-*-sco3.2v5*)
9916 COREFILE=sco5-core.lo
9917 ;;
9918 i[3-7]86-*-sco* | i[3-7]86-*-isc*)
9919 COREFILE=trad-core.lo
9920 TRAD_HEADER='"hosts/i386sco.h"'
9921 ;;
9922 i[3-7]86-*-mach3*)
9923 COREFILE=trad-core.lo
9924 TRAD_HEADER='"hosts/i386mach3.h"'
9925 ;;
9926 i[3-7]86-*-linux-gnu*)
9927 COREFILE=trad-core.lo
9928 TRAD_HEADER='"hosts/i386linux.h"'
9929 ;;
9930 i[3-7]86-*-isc*) COREFILE=trad-core.lo ;;
9931 i[3-7]86-*-aix*) COREFILE=aix386-core.lo ;;
9932 i860-*-mach3* | i860-*-osf1*)
9933 COREFILE=trad-core.lo
9934 TRAD_HEADER='"hosts/i860mach3.h"'
9935 ;;
9936 mips-*-netbsd* | mips*-*-openbsd*)
9937 COREFILE=netbsd-core.lo
9938 ;;
9939 mips-dec-*)
9940 COREFILE=trad-core.lo
9941 TRAD_HEADER='"hosts/decstation.h"'
9942 ;;
9943 mips-sgi-irix4*) COREFILE=irix-core.lo ;;
9944 mips-sgi-irix5*) COREFILE=irix-core.lo ;;
9945 mips-sgi-irix6*) COREFILE=irix-core.lo ;;
9946 mips-*-sysv4*) ;;
9947 mips-*-sysv* | mips-*-riscos*)
9948 COREFILE=trad-core.lo
9949 TRAD_HEADER='"hosts/riscos.h"'
9950 ;;
9951 mips-sony-bsd*)
9952 COREFILE=trad-core.lo
9953 TRAD_HEADER='"hosts/news-mips.h"'
9954 ;;
9955 m68*-bull*-sysv*)
9956 COREFILE=trad-core.lo
9957 TRAD_HEADER='"hosts/dpx2.h"'
9958 ;;
9959 m68*-hp-hpux*) COREFILE=hpux-core.lo ;;
9960 m68*-hp-bsd*)
9961 COREFILE=trad-core.lo
9962 TRAD_HEADER='"hosts/hp300bsd.h"'
9963 ;;
9964 m68*-*-linux-gnu*)
9965 COREFILE=trad-core.lo
9966 TRAD_HEADER='"hosts/m68klinux.h"'
9967 ;;
9968 m68*-motorola-sysv*)
9969 COREFILE=trad-core.lo
9970 TRAD_HEADER='"hosts/delta68.h"'
9971 ;;
9972 m68*-sony-*)
9973 COREFILE=trad-core.lo
9974 TRAD_HEADER='"hosts/news.h"'
9975 ;;
9976 m68*-*-netbsd* | m68*-*-openbsd*)
9977 COREFILE=netbsd-core.lo
9978 ;;
9979 m68*-apple-aux*)
9980 COREFILE=trad-core.lo
9981 TRAD_HEADER='"hosts/m68kaux.h"'
9982 ;;
9983 m88*-*-sysv4*)
9984 ;;
9985 m88*-motorola-sysv*)
9986 COREFILE=ptrace-core.lo
9987 ;;
9988 m88*-*-mach3*)
9989 COREFILE=trad-core.lo
9990 TRAD_HEADER='"hosts/m88kmach3.h"'
9991 ;;
9992 m88*-*-openbsd*)
9993 COREFILE=netbsd-core.lo
9994 ;;
9995 ns32k-pc532-mach)
9996 COREFILE=trad-core.lo
9997 TRAD_HEADER='"hosts/pc532mach.h"'
9998 ;;
9999 ns32k-*-netbsd* | ns32k-*-openbsd*)
10000 COREFILE=netbsd-core.lo
10001 ;;
10002 rs6000-*-lynx*)
10003 COREFILE=lynx-core.lo
10004 ;;
10005 rs6000-*-aix5.* | powerpc-*-aix5.*)
10006 COREFILE=rs6000-core.lo
10007 COREFLAG="$COREFLAG -DAIX_5_CORE -DAIX_CORE_DUMPX_CORE"
10008 ;;
10009 rs6000-*-aix4.[3-9]* | powerpc-*-aix4.[3-9]*)
10010 COREFILE=rs6000-core.lo
10011 COREFLAG="$COREFLAG -DAIX_CORE_DUMPX_CORE"
10012 # Not all versions of AIX with -DAIX_CORE_DUMPX_CORE
10013 # have c_impl as a member of struct core_dumpx
10014 echo "$as_me:$LINENO: checking for c_impl in struct core_dumpx" >&5
10015 echo $ECHO_N "checking for c_impl in struct core_dumpx... $ECHO_C" >&6
10016 cat >conftest.$ac_ext <<_ACEOF
10017 /* confdefs.h. */
10018 _ACEOF
10019 cat confdefs.h >>conftest.$ac_ext
10020 cat >>conftest.$ac_ext <<_ACEOF
10021 /* end confdefs.h. */
10022 #include <core.h>
10023 int
10024 main ()
10025 {
10026 struct core_dumpx c; c.c_impl = 0;
10027 ;
10028 return 0;
10029 }
10030 _ACEOF
10031 rm -f conftest.$ac_objext
10032 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10033 (eval $ac_compile) 2>conftest.er1
10034 ac_status=$?
10035 grep -v '^ *+' conftest.er1 >conftest.err
10036 rm -f conftest.er1
10037 cat conftest.err >&5
10038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10039 (exit $ac_status); } &&
10040 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10042 (eval $ac_try) 2>&5
10043 ac_status=$?
10044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10045 (exit $ac_status); }; } &&
10046 { ac_try='test -s conftest.$ac_objext'
10047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10048 (eval $ac_try) 2>&5
10049 ac_status=$?
10050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10051 (exit $ac_status); }; }; then
10052
10053 cat >>confdefs.h <<\_ACEOF
10054 #define HAVE_ST_C_IMPL 1
10055 _ACEOF
10056
10057 echo "$as_me:$LINENO: result: yes" >&5
10058 echo "${ECHO_T}yes" >&6
10059 else
10060 echo "$as_me: failed program was:" >&5
10061 sed 's/^/| /' conftest.$ac_ext >&5
10062
10063 echo "$as_me:$LINENO: result: no" >&5
10064 echo "${ECHO_T}no" >&6
10065 fi
10066 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10067 ;;
10068 rs6000-*-aix4*) COREFILE=rs6000-core.lo ;;
10069 rs6000-*-*) COREFILE=rs6000-core.lo ;;
10070 powerpc-*-aix4*) COREFILE=rs6000-core.lo ;;
10071 powerpc-*-aix*) COREFILE=rs6000-core.lo ;;
10072 powerpc-*-beos*) ;;
10073 powerpc-*-freebsd* | powerpc-*-kfreebsd*-gnu)
10074 COREFILE='' ;;
10075 powerpc-*-netbsd*) COREFILE=netbsd-core.lo ;;
10076 powerpc-*-*bsd*) COREFILE=netbsd-core.lo ;;
10077 s390*-*-*) COREFILE=trad-core.lo ;;
10078 sh*-*-netbsd*) COREFILE=netbsd-core.lo ;;
10079 sparc-*-netbsd* | sparc*-*-openbsd*)
10080 COREFILE=netbsd-core.lo
10081 ;;
10082 tahoe-*-*)
10083 COREFILE=trad-core.lo
10084 TRAD_HEADER='"hosts/tahoe.h"'
10085 ;;
10086 vax-*-netbsd* | vax-*-openbsd*)
10087 COREFILE=netbsd-core.lo
10088 ;;
10089 vax-*-ultrix2*)
10090 COREFILE=trad-core.lo
10091 TRAD_HEADER='"hosts/vaxult2.h"'
10092 ;;
10093 vax-*-ultrix*)
10094 COREFILE=trad-core.lo
10095 TRAD_HEADER='"hosts/vaxult2.h"'
10096 ;;
10097 vax-*-linux-gnu*)
10098 COREFILE=trad-core.lo
10099 TRAD_HEADER='"hosts/vaxlinux.h"'
10100 ;;
10101 vax-*-*)
10102 COREFILE=trad-core.lo
10103 TRAD_HEADER='"hosts/vaxbsd.h"'
10104 ;;
10105 x86_64-*-netbsd* | x86_64-*-openbsd*)
10106 COREFILE=netbsd-core.lo
10107 ;;
10108 esac
10109
10110 case "$COREFILE" in
10111 aix386-core.lo) COREFLAG=-DAIX386_CORE ;;
10112 hppabsd-core.lo) COREFLAG=-DHPPABSD_CORE ;;
10113 hpux-core.lo) COREFLAG=-DHPUX_CORE ;;
10114 irix-core.lo) COREFLAG=-DIRIX_CORE ;;
10115 lynx-core.lo) COREFLAG=-DLYNX_CORE ;;
10116 netbsd-core.lo) COREFLAG=-DNETBSD_CORE ;;
10117 osf-core.lo) COREFLAG=-DOSF_CORE ;;
10118 ptrace-core.lo) COREFLAG=-DPTRACE_CORE ;;
10119 rs6000-core.lo) COREFLAG="$COREFLAG -DAIX_CORE" ;;
10120 sco5-core.lo) COREFLAG="$COREFLAG -DSCO5_CORE" ;;
10121 trad-core.lo) COREFLAG="$COREFLAG -DTRAD_CORE" ;;
10122 esac
10123
10124 # ELF corefile support has several flavors, but all of
10125 # them use something called <sys/procfs.h>
10126
10127 for ac_header in sys/procfs.h
10128 do
10129 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10130 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10131 echo "$as_me:$LINENO: checking for $ac_header" >&5
10132 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10133 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10134 echo $ECHO_N "(cached) $ECHO_C" >&6
10135 fi
10136 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10137 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10138 else
10139 # Is the header compilable?
10140 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10141 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10142 cat >conftest.$ac_ext <<_ACEOF
10143 /* confdefs.h. */
10144 _ACEOF
10145 cat confdefs.h >>conftest.$ac_ext
10146 cat >>conftest.$ac_ext <<_ACEOF
10147 /* end confdefs.h. */
10148 $ac_includes_default
10149 #include <$ac_header>
10150 _ACEOF
10151 rm -f conftest.$ac_objext
10152 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10153 (eval $ac_compile) 2>conftest.er1
10154 ac_status=$?
10155 grep -v '^ *+' conftest.er1 >conftest.err
10156 rm -f conftest.er1
10157 cat conftest.err >&5
10158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10159 (exit $ac_status); } &&
10160 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10162 (eval $ac_try) 2>&5
10163 ac_status=$?
10164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10165 (exit $ac_status); }; } &&
10166 { ac_try='test -s conftest.$ac_objext'
10167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10168 (eval $ac_try) 2>&5
10169 ac_status=$?
10170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10171 (exit $ac_status); }; }; then
10172 ac_header_compiler=yes
10173 else
10174 echo "$as_me: failed program was:" >&5
10175 sed 's/^/| /' conftest.$ac_ext >&5
10176
10177 ac_header_compiler=no
10178 fi
10179 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10180 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10181 echo "${ECHO_T}$ac_header_compiler" >&6
10182
10183 # Is the header present?
10184 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10185 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10186 cat >conftest.$ac_ext <<_ACEOF
10187 /* confdefs.h. */
10188 _ACEOF
10189 cat confdefs.h >>conftest.$ac_ext
10190 cat >>conftest.$ac_ext <<_ACEOF
10191 /* end confdefs.h. */
10192 #include <$ac_header>
10193 _ACEOF
10194 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10195 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10196 ac_status=$?
10197 grep -v '^ *+' conftest.er1 >conftest.err
10198 rm -f conftest.er1
10199 cat conftest.err >&5
10200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10201 (exit $ac_status); } >/dev/null; then
10202 if test -s conftest.err; then
10203 ac_cpp_err=$ac_c_preproc_warn_flag
10204 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10205 else
10206 ac_cpp_err=
10207 fi
10208 else
10209 ac_cpp_err=yes
10210 fi
10211 if test -z "$ac_cpp_err"; then
10212 ac_header_preproc=yes
10213 else
10214 echo "$as_me: failed program was:" >&5
10215 sed 's/^/| /' conftest.$ac_ext >&5
10216
10217 ac_header_preproc=no
10218 fi
10219 rm -f conftest.err conftest.$ac_ext
10220 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10221 echo "${ECHO_T}$ac_header_preproc" >&6
10222
10223 # So? What about this header?
10224 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10225 yes:no: )
10226 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10227 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10228 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10229 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10230 ac_header_preproc=yes
10231 ;;
10232 no:yes:* )
10233 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10234 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10235 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10236 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10237 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10238 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10239 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10240 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10241 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10242 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10243 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10244 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10245 (
10246 cat <<\_ASBOX
10247 ## ------------------------------------------ ##
10248 ## Report this to the AC_PACKAGE_NAME lists. ##
10249 ## ------------------------------------------ ##
10250 _ASBOX
10251 ) |
10252 sed "s/^/$as_me: WARNING: /" >&2
10253 ;;
10254 esac
10255 echo "$as_me:$LINENO: checking for $ac_header" >&5
10256 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10257 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10258 echo $ECHO_N "(cached) $ECHO_C" >&6
10259 else
10260 eval "$as_ac_Header=\$ac_header_preproc"
10261 fi
10262 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10263 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10264
10265 fi
10266 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10267 cat >>confdefs.h <<_ACEOF
10268 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10269 _ACEOF
10270
10271 fi
10272
10273 done
10274
10275 if test "$ac_cv_header_sys_procfs_h" = yes; then
10276 echo "$as_me:$LINENO: checking for prstatus_t in sys/procfs.h" >&5
10277 echo $ECHO_N "checking for prstatus_t in sys/procfs.h... $ECHO_C" >&6
10278 if test "${bfd_cv_have_sys_procfs_type_prstatus_t+set}" = set; then
10279 echo $ECHO_N "(cached) $ECHO_C" >&6
10280 else
10281 cat >conftest.$ac_ext <<_ACEOF
10282 /* confdefs.h. */
10283 _ACEOF
10284 cat confdefs.h >>conftest.$ac_ext
10285 cat >>conftest.$ac_ext <<_ACEOF
10286 /* end confdefs.h. */
10287
10288 #define _SYSCALL32
10289 #include <sys/procfs.h>
10290 int
10291 main ()
10292 {
10293 prstatus_t avar
10294 ;
10295 return 0;
10296 }
10297 _ACEOF
10298 rm -f conftest.$ac_objext
10299 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10300 (eval $ac_compile) 2>conftest.er1
10301 ac_status=$?
10302 grep -v '^ *+' conftest.er1 >conftest.err
10303 rm -f conftest.er1
10304 cat conftest.err >&5
10305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10306 (exit $ac_status); } &&
10307 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10309 (eval $ac_try) 2>&5
10310 ac_status=$?
10311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10312 (exit $ac_status); }; } &&
10313 { ac_try='test -s conftest.$ac_objext'
10314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10315 (eval $ac_try) 2>&5
10316 ac_status=$?
10317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10318 (exit $ac_status); }; }; then
10319 bfd_cv_have_sys_procfs_type_prstatus_t=yes
10320 else
10321 echo "$as_me: failed program was:" >&5
10322 sed 's/^/| /' conftest.$ac_ext >&5
10323
10324 bfd_cv_have_sys_procfs_type_prstatus_t=no
10325
10326 fi
10327 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10328 fi
10329
10330 if test $bfd_cv_have_sys_procfs_type_prstatus_t = yes; then
10331
10332 cat >>confdefs.h <<\_ACEOF
10333 #define HAVE_PRSTATUS_T 1
10334 _ACEOF
10335
10336 fi
10337 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prstatus_t" >&5
10338 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prstatus_t" >&6
10339
10340 echo "$as_me:$LINENO: checking for prstatus32_t in sys/procfs.h" >&5
10341 echo $ECHO_N "checking for prstatus32_t in sys/procfs.h... $ECHO_C" >&6
10342 if test "${bfd_cv_have_sys_procfs_type_prstatus32_t+set}" = set; then
10343 echo $ECHO_N "(cached) $ECHO_C" >&6
10344 else
10345 cat >conftest.$ac_ext <<_ACEOF
10346 /* confdefs.h. */
10347 _ACEOF
10348 cat confdefs.h >>conftest.$ac_ext
10349 cat >>conftest.$ac_ext <<_ACEOF
10350 /* end confdefs.h. */
10351
10352 #define _SYSCALL32
10353 #include <sys/procfs.h>
10354 int
10355 main ()
10356 {
10357 prstatus32_t avar
10358 ;
10359 return 0;
10360 }
10361 _ACEOF
10362 rm -f conftest.$ac_objext
10363 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10364 (eval $ac_compile) 2>conftest.er1
10365 ac_status=$?
10366 grep -v '^ *+' conftest.er1 >conftest.err
10367 rm -f conftest.er1
10368 cat conftest.err >&5
10369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10370 (exit $ac_status); } &&
10371 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10373 (eval $ac_try) 2>&5
10374 ac_status=$?
10375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10376 (exit $ac_status); }; } &&
10377 { ac_try='test -s conftest.$ac_objext'
10378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10379 (eval $ac_try) 2>&5
10380 ac_status=$?
10381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10382 (exit $ac_status); }; }; then
10383 bfd_cv_have_sys_procfs_type_prstatus32_t=yes
10384 else
10385 echo "$as_me: failed program was:" >&5
10386 sed 's/^/| /' conftest.$ac_ext >&5
10387
10388 bfd_cv_have_sys_procfs_type_prstatus32_t=no
10389
10390 fi
10391 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10392 fi
10393
10394 if test $bfd_cv_have_sys_procfs_type_prstatus32_t = yes; then
10395
10396 cat >>confdefs.h <<\_ACEOF
10397 #define HAVE_PRSTATUS32_T 1
10398 _ACEOF
10399
10400 fi
10401 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prstatus32_t" >&5
10402 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prstatus32_t" >&6
10403
10404 echo "$as_me:$LINENO: checking for prstatus_t.pr_who in sys/procfs.h" >&5
10405 echo $ECHO_N "checking for prstatus_t.pr_who in sys/procfs.h... $ECHO_C" >&6
10406 if test "${bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who+set}" = set; then
10407 echo $ECHO_N "(cached) $ECHO_C" >&6
10408 else
10409 cat >conftest.$ac_ext <<_ACEOF
10410 /* confdefs.h. */
10411 _ACEOF
10412 cat confdefs.h >>conftest.$ac_ext
10413 cat >>conftest.$ac_ext <<_ACEOF
10414 /* end confdefs.h. */
10415
10416 #define _SYSCALL32
10417 #include <sys/procfs.h>
10418 int
10419 main ()
10420 {
10421 prstatus_t avar; void* aref = (void*) &avar.pr_who
10422 ;
10423 return 0;
10424 }
10425 _ACEOF
10426 rm -f conftest.$ac_objext
10427 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10428 (eval $ac_compile) 2>conftest.er1
10429 ac_status=$?
10430 grep -v '^ *+' conftest.er1 >conftest.err
10431 rm -f conftest.er1
10432 cat conftest.err >&5
10433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10434 (exit $ac_status); } &&
10435 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10437 (eval $ac_try) 2>&5
10438 ac_status=$?
10439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10440 (exit $ac_status); }; } &&
10441 { ac_try='test -s conftest.$ac_objext'
10442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10443 (eval $ac_try) 2>&5
10444 ac_status=$?
10445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10446 (exit $ac_status); }; }; then
10447 bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=yes
10448 else
10449 echo "$as_me: failed program was:" >&5
10450 sed 's/^/| /' conftest.$ac_ext >&5
10451
10452 bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=no
10453
10454 fi
10455 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10456 fi
10457
10458 if test $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who = yes; then
10459
10460 cat >>confdefs.h <<\_ACEOF
10461 #define HAVE_PRSTATUS_T_PR_WHO 1
10462 _ACEOF
10463
10464 fi
10465 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" >&5
10466 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" >&6
10467
10468 echo "$as_me:$LINENO: checking for prstatus32_t.pr_who in sys/procfs.h" >&5
10469 echo $ECHO_N "checking for prstatus32_t.pr_who in sys/procfs.h... $ECHO_C" >&6
10470 if test "${bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who+set}" = set; then
10471 echo $ECHO_N "(cached) $ECHO_C" >&6
10472 else
10473 cat >conftest.$ac_ext <<_ACEOF
10474 /* confdefs.h. */
10475 _ACEOF
10476 cat confdefs.h >>conftest.$ac_ext
10477 cat >>conftest.$ac_ext <<_ACEOF
10478 /* end confdefs.h. */
10479
10480 #define _SYSCALL32
10481 #include <sys/procfs.h>
10482 int
10483 main ()
10484 {
10485 prstatus32_t avar; void* aref = (void*) &avar.pr_who
10486 ;
10487 return 0;
10488 }
10489 _ACEOF
10490 rm -f conftest.$ac_objext
10491 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10492 (eval $ac_compile) 2>conftest.er1
10493 ac_status=$?
10494 grep -v '^ *+' conftest.er1 >conftest.err
10495 rm -f conftest.er1
10496 cat conftest.err >&5
10497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10498 (exit $ac_status); } &&
10499 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10501 (eval $ac_try) 2>&5
10502 ac_status=$?
10503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10504 (exit $ac_status); }; } &&
10505 { ac_try='test -s conftest.$ac_objext'
10506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10507 (eval $ac_try) 2>&5
10508 ac_status=$?
10509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10510 (exit $ac_status); }; }; then
10511 bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=yes
10512 else
10513 echo "$as_me: failed program was:" >&5
10514 sed 's/^/| /' conftest.$ac_ext >&5
10515
10516 bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=no
10517
10518 fi
10519 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10520 fi
10521
10522 if test $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who = yes; then
10523
10524 cat >>confdefs.h <<\_ACEOF
10525 #define HAVE_PRSTATUS32_T_PR_WHO 1
10526 _ACEOF
10527
10528 fi
10529 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" >&5
10530 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" >&6
10531
10532 echo "$as_me:$LINENO: checking for pstatus_t in sys/procfs.h" >&5
10533 echo $ECHO_N "checking for pstatus_t in sys/procfs.h... $ECHO_C" >&6
10534 if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then
10535 echo $ECHO_N "(cached) $ECHO_C" >&6
10536 else
10537 cat >conftest.$ac_ext <<_ACEOF
10538 /* confdefs.h. */
10539 _ACEOF
10540 cat confdefs.h >>conftest.$ac_ext
10541 cat >>conftest.$ac_ext <<_ACEOF
10542 /* end confdefs.h. */
10543
10544 #define _SYSCALL32
10545 #include <sys/procfs.h>
10546 int
10547 main ()
10548 {
10549 pstatus_t avar
10550 ;
10551 return 0;
10552 }
10553 _ACEOF
10554 rm -f conftest.$ac_objext
10555 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10556 (eval $ac_compile) 2>conftest.er1
10557 ac_status=$?
10558 grep -v '^ *+' conftest.er1 >conftest.err
10559 rm -f conftest.er1
10560 cat conftest.err >&5
10561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10562 (exit $ac_status); } &&
10563 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10565 (eval $ac_try) 2>&5
10566 ac_status=$?
10567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10568 (exit $ac_status); }; } &&
10569 { ac_try='test -s conftest.$ac_objext'
10570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10571 (eval $ac_try) 2>&5
10572 ac_status=$?
10573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10574 (exit $ac_status); }; }; then
10575 bfd_cv_have_sys_procfs_type_pstatus_t=yes
10576 else
10577 echo "$as_me: failed program was:" >&5
10578 sed 's/^/| /' conftest.$ac_ext >&5
10579
10580 bfd_cv_have_sys_procfs_type_pstatus_t=no
10581
10582 fi
10583 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10584 fi
10585
10586 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
10587
10588 cat >>confdefs.h <<\_ACEOF
10589 #define HAVE_PSTATUS_T 1
10590 _ACEOF
10591
10592 fi
10593 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5
10594 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus_t" >&6
10595
10596 echo "$as_me:$LINENO: checking for pxstatus_t in sys/procfs.h" >&5
10597 echo $ECHO_N "checking for pxstatus_t in sys/procfs.h... $ECHO_C" >&6
10598 if test "${bfd_cv_have_sys_procfs_type_pxstatus_t+set}" = set; then
10599 echo $ECHO_N "(cached) $ECHO_C" >&6
10600 else
10601 cat >conftest.$ac_ext <<_ACEOF
10602 /* confdefs.h. */
10603 _ACEOF
10604 cat confdefs.h >>conftest.$ac_ext
10605 cat >>conftest.$ac_ext <<_ACEOF
10606 /* end confdefs.h. */
10607
10608 #define _SYSCALL32
10609 #include <sys/procfs.h>
10610 int
10611 main ()
10612 {
10613 pxstatus_t avar
10614 ;
10615 return 0;
10616 }
10617 _ACEOF
10618 rm -f conftest.$ac_objext
10619 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10620 (eval $ac_compile) 2>conftest.er1
10621 ac_status=$?
10622 grep -v '^ *+' conftest.er1 >conftest.err
10623 rm -f conftest.er1
10624 cat conftest.err >&5
10625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10626 (exit $ac_status); } &&
10627 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10629 (eval $ac_try) 2>&5
10630 ac_status=$?
10631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10632 (exit $ac_status); }; } &&
10633 { ac_try='test -s conftest.$ac_objext'
10634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10635 (eval $ac_try) 2>&5
10636 ac_status=$?
10637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10638 (exit $ac_status); }; }; then
10639 bfd_cv_have_sys_procfs_type_pxstatus_t=yes
10640 else
10641 echo "$as_me: failed program was:" >&5
10642 sed 's/^/| /' conftest.$ac_ext >&5
10643
10644 bfd_cv_have_sys_procfs_type_pxstatus_t=no
10645
10646 fi
10647 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10648 fi
10649
10650 if test $bfd_cv_have_sys_procfs_type_pxstatus_t = yes; then
10651
10652 cat >>confdefs.h <<\_ACEOF
10653 #define HAVE_PXSTATUS_T 1
10654 _ACEOF
10655
10656 fi
10657 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pxstatus_t" >&5
10658 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pxstatus_t" >&6
10659
10660 echo "$as_me:$LINENO: checking for pstatus32_t in sys/procfs.h" >&5
10661 echo $ECHO_N "checking for pstatus32_t in sys/procfs.h... $ECHO_C" >&6
10662 if test "${bfd_cv_have_sys_procfs_type_pstatus32_t+set}" = set; then
10663 echo $ECHO_N "(cached) $ECHO_C" >&6
10664 else
10665 cat >conftest.$ac_ext <<_ACEOF
10666 /* confdefs.h. */
10667 _ACEOF
10668 cat confdefs.h >>conftest.$ac_ext
10669 cat >>conftest.$ac_ext <<_ACEOF
10670 /* end confdefs.h. */
10671
10672 #define _SYSCALL32
10673 #include <sys/procfs.h>
10674 int
10675 main ()
10676 {
10677 pstatus32_t avar
10678 ;
10679 return 0;
10680 }
10681 _ACEOF
10682 rm -f conftest.$ac_objext
10683 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10684 (eval $ac_compile) 2>conftest.er1
10685 ac_status=$?
10686 grep -v '^ *+' conftest.er1 >conftest.err
10687 rm -f conftest.er1
10688 cat conftest.err >&5
10689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10690 (exit $ac_status); } &&
10691 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10693 (eval $ac_try) 2>&5
10694 ac_status=$?
10695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10696 (exit $ac_status); }; } &&
10697 { ac_try='test -s conftest.$ac_objext'
10698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10699 (eval $ac_try) 2>&5
10700 ac_status=$?
10701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10702 (exit $ac_status); }; }; then
10703 bfd_cv_have_sys_procfs_type_pstatus32_t=yes
10704 else
10705 echo "$as_me: failed program was:" >&5
10706 sed 's/^/| /' conftest.$ac_ext >&5
10707
10708 bfd_cv_have_sys_procfs_type_pstatus32_t=no
10709
10710 fi
10711 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10712 fi
10713
10714 if test $bfd_cv_have_sys_procfs_type_pstatus32_t = yes; then
10715
10716 cat >>confdefs.h <<\_ACEOF
10717 #define HAVE_PSTATUS32_T 1
10718 _ACEOF
10719
10720 fi
10721 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus32_t" >&5
10722 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus32_t" >&6
10723
10724 echo "$as_me:$LINENO: checking for prpsinfo_t in sys/procfs.h" >&5
10725 echo $ECHO_N "checking for prpsinfo_t in sys/procfs.h... $ECHO_C" >&6
10726 if test "${bfd_cv_have_sys_procfs_type_prpsinfo_t+set}" = set; then
10727 echo $ECHO_N "(cached) $ECHO_C" >&6
10728 else
10729 cat >conftest.$ac_ext <<_ACEOF
10730 /* confdefs.h. */
10731 _ACEOF
10732 cat confdefs.h >>conftest.$ac_ext
10733 cat >>conftest.$ac_ext <<_ACEOF
10734 /* end confdefs.h. */
10735
10736 #define _SYSCALL32
10737 #include <sys/procfs.h>
10738 int
10739 main ()
10740 {
10741 prpsinfo_t avar
10742 ;
10743 return 0;
10744 }
10745 _ACEOF
10746 rm -f conftest.$ac_objext
10747 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10748 (eval $ac_compile) 2>conftest.er1
10749 ac_status=$?
10750 grep -v '^ *+' conftest.er1 >conftest.err
10751 rm -f conftest.er1
10752 cat conftest.err >&5
10753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10754 (exit $ac_status); } &&
10755 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10757 (eval $ac_try) 2>&5
10758 ac_status=$?
10759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10760 (exit $ac_status); }; } &&
10761 { ac_try='test -s conftest.$ac_objext'
10762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10763 (eval $ac_try) 2>&5
10764 ac_status=$?
10765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10766 (exit $ac_status); }; }; then
10767 bfd_cv_have_sys_procfs_type_prpsinfo_t=yes
10768 else
10769 echo "$as_me: failed program was:" >&5
10770 sed 's/^/| /' conftest.$ac_ext >&5
10771
10772 bfd_cv_have_sys_procfs_type_prpsinfo_t=no
10773
10774 fi
10775 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10776 fi
10777
10778 if test $bfd_cv_have_sys_procfs_type_prpsinfo_t = yes; then
10779
10780 cat >>confdefs.h <<\_ACEOF
10781 #define HAVE_PRPSINFO_T 1
10782 _ACEOF
10783
10784 fi
10785 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prpsinfo_t" >&5
10786 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prpsinfo_t" >&6
10787
10788 echo "$as_me:$LINENO: checking for prpsinfo32_t in sys/procfs.h" >&5
10789 echo $ECHO_N "checking for prpsinfo32_t in sys/procfs.h... $ECHO_C" >&6
10790 if test "${bfd_cv_have_sys_procfs_type_prpsinfo32_t+set}" = set; then
10791 echo $ECHO_N "(cached) $ECHO_C" >&6
10792 else
10793 cat >conftest.$ac_ext <<_ACEOF
10794 /* confdefs.h. */
10795 _ACEOF
10796 cat confdefs.h >>conftest.$ac_ext
10797 cat >>conftest.$ac_ext <<_ACEOF
10798 /* end confdefs.h. */
10799
10800 #define _SYSCALL32
10801 #include <sys/procfs.h>
10802 int
10803 main ()
10804 {
10805 prpsinfo32_t avar
10806 ;
10807 return 0;
10808 }
10809 _ACEOF
10810 rm -f conftest.$ac_objext
10811 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10812 (eval $ac_compile) 2>conftest.er1
10813 ac_status=$?
10814 grep -v '^ *+' conftest.er1 >conftest.err
10815 rm -f conftest.er1
10816 cat conftest.err >&5
10817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10818 (exit $ac_status); } &&
10819 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10821 (eval $ac_try) 2>&5
10822 ac_status=$?
10823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10824 (exit $ac_status); }; } &&
10825 { ac_try='test -s conftest.$ac_objext'
10826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10827 (eval $ac_try) 2>&5
10828 ac_status=$?
10829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10830 (exit $ac_status); }; }; then
10831 bfd_cv_have_sys_procfs_type_prpsinfo32_t=yes
10832 else
10833 echo "$as_me: failed program was:" >&5
10834 sed 's/^/| /' conftest.$ac_ext >&5
10835
10836 bfd_cv_have_sys_procfs_type_prpsinfo32_t=no
10837
10838 fi
10839 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10840 fi
10841
10842 if test $bfd_cv_have_sys_procfs_type_prpsinfo32_t = yes; then
10843
10844 cat >>confdefs.h <<\_ACEOF
10845 #define HAVE_PRPSINFO32_T 1
10846 _ACEOF
10847
10848 fi
10849 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prpsinfo32_t" >&5
10850 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prpsinfo32_t" >&6
10851
10852 echo "$as_me:$LINENO: checking for psinfo_t in sys/procfs.h" >&5
10853 echo $ECHO_N "checking for psinfo_t in sys/procfs.h... $ECHO_C" >&6
10854 if test "${bfd_cv_have_sys_procfs_type_psinfo_t+set}" = set; then
10855 echo $ECHO_N "(cached) $ECHO_C" >&6
10856 else
10857 cat >conftest.$ac_ext <<_ACEOF
10858 /* confdefs.h. */
10859 _ACEOF
10860 cat confdefs.h >>conftest.$ac_ext
10861 cat >>conftest.$ac_ext <<_ACEOF
10862 /* end confdefs.h. */
10863
10864 #define _SYSCALL32
10865 #include <sys/procfs.h>
10866 int
10867 main ()
10868 {
10869 psinfo_t avar
10870 ;
10871 return 0;
10872 }
10873 _ACEOF
10874 rm -f conftest.$ac_objext
10875 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10876 (eval $ac_compile) 2>conftest.er1
10877 ac_status=$?
10878 grep -v '^ *+' conftest.er1 >conftest.err
10879 rm -f conftest.er1
10880 cat conftest.err >&5
10881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10882 (exit $ac_status); } &&
10883 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10885 (eval $ac_try) 2>&5
10886 ac_status=$?
10887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10888 (exit $ac_status); }; } &&
10889 { ac_try='test -s conftest.$ac_objext'
10890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10891 (eval $ac_try) 2>&5
10892 ac_status=$?
10893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10894 (exit $ac_status); }; }; then
10895 bfd_cv_have_sys_procfs_type_psinfo_t=yes
10896 else
10897 echo "$as_me: failed program was:" >&5
10898 sed 's/^/| /' conftest.$ac_ext >&5
10899
10900 bfd_cv_have_sys_procfs_type_psinfo_t=no
10901
10902 fi
10903 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10904 fi
10905
10906 if test $bfd_cv_have_sys_procfs_type_psinfo_t = yes; then
10907
10908 cat >>confdefs.h <<\_ACEOF
10909 #define HAVE_PSINFO_T 1
10910 _ACEOF
10911
10912 fi
10913 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psinfo_t" >&5
10914 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psinfo_t" >&6
10915
10916 echo "$as_me:$LINENO: checking for psinfo32_t in sys/procfs.h" >&5
10917 echo $ECHO_N "checking for psinfo32_t in sys/procfs.h... $ECHO_C" >&6
10918 if test "${bfd_cv_have_sys_procfs_type_psinfo32_t+set}" = set; then
10919 echo $ECHO_N "(cached) $ECHO_C" >&6
10920 else
10921 cat >conftest.$ac_ext <<_ACEOF
10922 /* confdefs.h. */
10923 _ACEOF
10924 cat confdefs.h >>conftest.$ac_ext
10925 cat >>conftest.$ac_ext <<_ACEOF
10926 /* end confdefs.h. */
10927
10928 #define _SYSCALL32
10929 #include <sys/procfs.h>
10930 int
10931 main ()
10932 {
10933 psinfo32_t avar
10934 ;
10935 return 0;
10936 }
10937 _ACEOF
10938 rm -f conftest.$ac_objext
10939 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10940 (eval $ac_compile) 2>conftest.er1
10941 ac_status=$?
10942 grep -v '^ *+' conftest.er1 >conftest.err
10943 rm -f conftest.er1
10944 cat conftest.err >&5
10945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10946 (exit $ac_status); } &&
10947 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10949 (eval $ac_try) 2>&5
10950 ac_status=$?
10951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10952 (exit $ac_status); }; } &&
10953 { ac_try='test -s conftest.$ac_objext'
10954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10955 (eval $ac_try) 2>&5
10956 ac_status=$?
10957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10958 (exit $ac_status); }; }; then
10959 bfd_cv_have_sys_procfs_type_psinfo32_t=yes
10960 else
10961 echo "$as_me: failed program was:" >&5
10962 sed 's/^/| /' conftest.$ac_ext >&5
10963
10964 bfd_cv_have_sys_procfs_type_psinfo32_t=no
10965
10966 fi
10967 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10968 fi
10969
10970 if test $bfd_cv_have_sys_procfs_type_psinfo32_t = yes; then
10971
10972 cat >>confdefs.h <<\_ACEOF
10973 #define HAVE_PSINFO32_T 1
10974 _ACEOF
10975
10976 fi
10977 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psinfo32_t" >&5
10978 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psinfo32_t" >&6
10979
10980 echo "$as_me:$LINENO: checking for lwpstatus_t in sys/procfs.h" >&5
10981 echo $ECHO_N "checking for lwpstatus_t in sys/procfs.h... $ECHO_C" >&6
10982 if test "${bfd_cv_have_sys_procfs_type_lwpstatus_t+set}" = set; then
10983 echo $ECHO_N "(cached) $ECHO_C" >&6
10984 else
10985 cat >conftest.$ac_ext <<_ACEOF
10986 /* confdefs.h. */
10987 _ACEOF
10988 cat confdefs.h >>conftest.$ac_ext
10989 cat >>conftest.$ac_ext <<_ACEOF
10990 /* end confdefs.h. */
10991
10992 #define _SYSCALL32
10993 #include <sys/procfs.h>
10994 int
10995 main ()
10996 {
10997 lwpstatus_t avar
10998 ;
10999 return 0;
11000 }
11001 _ACEOF
11002 rm -f conftest.$ac_objext
11003 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11004 (eval $ac_compile) 2>conftest.er1
11005 ac_status=$?
11006 grep -v '^ *+' conftest.er1 >conftest.err
11007 rm -f conftest.er1
11008 cat conftest.err >&5
11009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11010 (exit $ac_status); } &&
11011 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11013 (eval $ac_try) 2>&5
11014 ac_status=$?
11015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11016 (exit $ac_status); }; } &&
11017 { ac_try='test -s conftest.$ac_objext'
11018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11019 (eval $ac_try) 2>&5
11020 ac_status=$?
11021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11022 (exit $ac_status); }; }; then
11023 bfd_cv_have_sys_procfs_type_lwpstatus_t=yes
11024 else
11025 echo "$as_me: failed program was:" >&5
11026 sed 's/^/| /' conftest.$ac_ext >&5
11027
11028 bfd_cv_have_sys_procfs_type_lwpstatus_t=no
11029
11030 fi
11031 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11032 fi
11033
11034 if test $bfd_cv_have_sys_procfs_type_lwpstatus_t = yes; then
11035
11036 cat >>confdefs.h <<\_ACEOF
11037 #define HAVE_LWPSTATUS_T 1
11038 _ACEOF
11039
11040 fi
11041 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpstatus_t" >&5
11042 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpstatus_t" >&6
11043
11044 echo "$as_me:$LINENO: checking for lwpxstatus_t in sys/procfs.h" >&5
11045 echo $ECHO_N "checking for lwpxstatus_t in sys/procfs.h... $ECHO_C" >&6
11046 if test "${bfd_cv_have_sys_procfs_type_lwpxstatus_t+set}" = set; then
11047 echo $ECHO_N "(cached) $ECHO_C" >&6
11048 else
11049 cat >conftest.$ac_ext <<_ACEOF
11050 /* confdefs.h. */
11051 _ACEOF
11052 cat confdefs.h >>conftest.$ac_ext
11053 cat >>conftest.$ac_ext <<_ACEOF
11054 /* end confdefs.h. */
11055
11056 #define _SYSCALL32
11057 #include <sys/procfs.h>
11058 int
11059 main ()
11060 {
11061 lwpxstatus_t avar
11062 ;
11063 return 0;
11064 }
11065 _ACEOF
11066 rm -f conftest.$ac_objext
11067 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11068 (eval $ac_compile) 2>conftest.er1
11069 ac_status=$?
11070 grep -v '^ *+' conftest.er1 >conftest.err
11071 rm -f conftest.er1
11072 cat conftest.err >&5
11073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11074 (exit $ac_status); } &&
11075 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11077 (eval $ac_try) 2>&5
11078 ac_status=$?
11079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11080 (exit $ac_status); }; } &&
11081 { ac_try='test -s conftest.$ac_objext'
11082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11083 (eval $ac_try) 2>&5
11084 ac_status=$?
11085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11086 (exit $ac_status); }; }; then
11087 bfd_cv_have_sys_procfs_type_lwpxstatus_t=yes
11088 else
11089 echo "$as_me: failed program was:" >&5
11090 sed 's/^/| /' conftest.$ac_ext >&5
11091
11092 bfd_cv_have_sys_procfs_type_lwpxstatus_t=no
11093
11094 fi
11095 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11096 fi
11097
11098 if test $bfd_cv_have_sys_procfs_type_lwpxstatus_t = yes; then
11099
11100 cat >>confdefs.h <<\_ACEOF
11101 #define HAVE_LWPXSTATUS_T 1
11102 _ACEOF
11103
11104 fi
11105 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpxstatus_t" >&5
11106 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpxstatus_t" >&6
11107
11108 echo "$as_me:$LINENO: checking for lwpstatus_t.pr_context in sys/procfs.h" >&5
11109 echo $ECHO_N "checking for lwpstatus_t.pr_context in sys/procfs.h... $ECHO_C" >&6
11110 if test "${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context+set}" = set; then
11111 echo $ECHO_N "(cached) $ECHO_C" >&6
11112 else
11113 cat >conftest.$ac_ext <<_ACEOF
11114 /* confdefs.h. */
11115 _ACEOF
11116 cat confdefs.h >>conftest.$ac_ext
11117 cat >>conftest.$ac_ext <<_ACEOF
11118 /* end confdefs.h. */
11119
11120 #define _SYSCALL32
11121 #include <sys/procfs.h>
11122 int
11123 main ()
11124 {
11125 lwpstatus_t avar; void* aref = (void*) &avar.pr_context
11126 ;
11127 return 0;
11128 }
11129 _ACEOF
11130 rm -f conftest.$ac_objext
11131 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11132 (eval $ac_compile) 2>conftest.er1
11133 ac_status=$?
11134 grep -v '^ *+' conftest.er1 >conftest.err
11135 rm -f conftest.er1
11136 cat conftest.err >&5
11137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11138 (exit $ac_status); } &&
11139 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11141 (eval $ac_try) 2>&5
11142 ac_status=$?
11143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11144 (exit $ac_status); }; } &&
11145 { ac_try='test -s conftest.$ac_objext'
11146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11147 (eval $ac_try) 2>&5
11148 ac_status=$?
11149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11150 (exit $ac_status); }; }; then
11151 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=yes
11152 else
11153 echo "$as_me: failed program was:" >&5
11154 sed 's/^/| /' conftest.$ac_ext >&5
11155
11156 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=no
11157
11158 fi
11159 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11160 fi
11161
11162 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context = yes; then
11163
11164 cat >>confdefs.h <<\_ACEOF
11165 #define HAVE_LWPSTATUS_T_PR_CONTEXT 1
11166 _ACEOF
11167
11168 fi
11169 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" >&5
11170 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" >&6
11171
11172 echo "$as_me:$LINENO: checking for lwpstatus_t.pr_reg in sys/procfs.h" >&5
11173 echo $ECHO_N "checking for lwpstatus_t.pr_reg in sys/procfs.h... $ECHO_C" >&6
11174 if test "${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg+set}" = set; then
11175 echo $ECHO_N "(cached) $ECHO_C" >&6
11176 else
11177 cat >conftest.$ac_ext <<_ACEOF
11178 /* confdefs.h. */
11179 _ACEOF
11180 cat confdefs.h >>conftest.$ac_ext
11181 cat >>conftest.$ac_ext <<_ACEOF
11182 /* end confdefs.h. */
11183
11184 #define _SYSCALL32
11185 #include <sys/procfs.h>
11186 int
11187 main ()
11188 {
11189 lwpstatus_t avar; void* aref = (void*) &avar.pr_reg
11190 ;
11191 return 0;
11192 }
11193 _ACEOF
11194 rm -f conftest.$ac_objext
11195 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11196 (eval $ac_compile) 2>conftest.er1
11197 ac_status=$?
11198 grep -v '^ *+' conftest.er1 >conftest.err
11199 rm -f conftest.er1
11200 cat conftest.err >&5
11201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11202 (exit $ac_status); } &&
11203 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11205 (eval $ac_try) 2>&5
11206 ac_status=$?
11207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11208 (exit $ac_status); }; } &&
11209 { ac_try='test -s conftest.$ac_objext'
11210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11211 (eval $ac_try) 2>&5
11212 ac_status=$?
11213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11214 (exit $ac_status); }; }; then
11215 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=yes
11216 else
11217 echo "$as_me: failed program was:" >&5
11218 sed 's/^/| /' conftest.$ac_ext >&5
11219
11220 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=no
11221
11222 fi
11223 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11224 fi
11225
11226 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg = yes; then
11227
11228 cat >>confdefs.h <<\_ACEOF
11229 #define HAVE_LWPSTATUS_T_PR_REG 1
11230 _ACEOF
11231
11232 fi
11233 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" >&5
11234 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" >&6
11235
11236 echo "$as_me:$LINENO: checking for win32_pstatus_t in sys/procfs.h" >&5
11237 echo $ECHO_N "checking for win32_pstatus_t in sys/procfs.h... $ECHO_C" >&6
11238 if test "${bfd_cv_have_sys_procfs_type_win32_pstatus_t+set}" = set; then
11239 echo $ECHO_N "(cached) $ECHO_C" >&6
11240 else
11241 cat >conftest.$ac_ext <<_ACEOF
11242 /* confdefs.h. */
11243 _ACEOF
11244 cat confdefs.h >>conftest.$ac_ext
11245 cat >>conftest.$ac_ext <<_ACEOF
11246 /* end confdefs.h. */
11247
11248 #define _SYSCALL32
11249 #include <sys/procfs.h>
11250 int
11251 main ()
11252 {
11253 win32_pstatus_t avar
11254 ;
11255 return 0;
11256 }
11257 _ACEOF
11258 rm -f conftest.$ac_objext
11259 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11260 (eval $ac_compile) 2>conftest.er1
11261 ac_status=$?
11262 grep -v '^ *+' conftest.er1 >conftest.err
11263 rm -f conftest.er1
11264 cat conftest.err >&5
11265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11266 (exit $ac_status); } &&
11267 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11269 (eval $ac_try) 2>&5
11270 ac_status=$?
11271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11272 (exit $ac_status); }; } &&
11273 { ac_try='test -s conftest.$ac_objext'
11274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11275 (eval $ac_try) 2>&5
11276 ac_status=$?
11277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11278 (exit $ac_status); }; }; then
11279 bfd_cv_have_sys_procfs_type_win32_pstatus_t=yes
11280 else
11281 echo "$as_me: failed program was:" >&5
11282 sed 's/^/| /' conftest.$ac_ext >&5
11283
11284 bfd_cv_have_sys_procfs_type_win32_pstatus_t=no
11285
11286 fi
11287 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11288 fi
11289
11290 if test $bfd_cv_have_sys_procfs_type_win32_pstatus_t = yes; then
11291
11292 cat >>confdefs.h <<\_ACEOF
11293 #define HAVE_WIN32_PSTATUS_T 1
11294 _ACEOF
11295
11296 fi
11297 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_win32_pstatus_t" >&5
11298 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_win32_pstatus_t" >&6
11299
11300 fi
11301 fi
11302
11303
11304 if test -n "$TRAD_HEADER"; then
11305
11306 cat >>confdefs.h <<_ACEOF
11307 #define TRAD_HEADER $TRAD_HEADER
11308 _ACEOF
11309
11310 fi
11311
11312 # Horrible hacks to build DLLs on Windows.
11313 WIN32LDFLAGS=
11314 WIN32LIBADD=
11315 case "${host}" in
11316 *-*-cygwin*)
11317 if test "$enable_shared" = "yes"; then
11318 WIN32LDFLAGS="-no-undefined"
11319 WIN32LIBADD="-L`pwd`/../libiberty -liberty -L`pwd`/../intl -lintl -lcygwin -lkernel32"
11320 fi
11321 ;;
11322 *-*-linux*)
11323 # We borrow WIN32LIBADD so that the shared libbfd won't depend on
11324 # libiberty.a.
11325 case "${host}" in
11326 mips*-*-linux*)
11327 # Linux/MIPS uses PIC by default.
11328 if test "$enable_shared" = "yes"; then
11329 WIN32LIBADD="-L../libiberty -liberty"
11330 fi
11331 ;;
11332 *)
11333 x=`sed -n -e 's/^[ ]*PICFLAG[ ]*=[ ]*//p' < ../libiberty/Makefile | sed -n '$p'`
11334 if test -n "$x"; then
11335 WIN32LIBADD="-L../libiberty/pic -liberty"
11336 fi
11337 ;;
11338 esac
11339 ;;
11340 esac
11341
11342
11343
11344 # target stuff:
11345
11346 # Canonicalize the secondary target names.
11347 if test -n "$enable_targets" ; then
11348 for targ in `echo $enable_targets | sed 's/,/ /g'`
11349 do
11350 result=`$ac_config_sub $targ 2>/dev/null`
11351 if test -n "$result" ; then
11352 canon_targets="$canon_targets $result"
11353 else
11354 # Allow targets that config.sub doesn't recognize, like "all".
11355 canon_targets="$canon_targets $targ"
11356 fi
11357 done
11358 fi
11359
11360 all_targets=false
11361 defvec=
11362 selvecs=
11363 assocvecs=
11364 selarchs=
11365 TDEFINES=
11366 for targ in $target $canon_targets
11367 do
11368 if test "x$targ" = "xall"; then
11369 all_targets=true
11370 assocvecs="$assocvecs $targ_defvec $targ_selvecs"
11371 else
11372 . $srcdir/config.bfd
11373 if test "x$targ" = "x$target"; then
11374 defvec=$targ_defvec
11375 fi
11376 selvecs="$selvecs $targ_defvec $targ_selvecs"
11377 selarchs="$selarchs $targ_archs"
11378 TDEFINES="$TDEFINES $targ_cflags"
11379 fi
11380 done
11381
11382
11383 # This processing still needs to be done if we're to decide properly whether
11384 # 64-bit support needs to be compiled in. Currently, it will be included if
11385 # the default or any other explicitly requested target requires it; it
11386 # will not be included on a 32-bit host if no 64-bit target is requested, and
11387 # no "--with-64-bit-bfd" option is given, even if "--enable-targets=all" is
11388 # used.
11389
11390 # uniq the default and selected vectors in all the configured targets.
11391 f=""
11392 for i in $selvecs ; do
11393 case " $f " in
11394 *" $i "*) ;;
11395 *) f="$f $i" ;;
11396 esac
11397 done
11398 selvecs="$f"
11399
11400
11401 # uniq the associated vectors in all the configured targets.
11402 f=""
11403 for i in $assocvecs ; do
11404 case " $f " in
11405 *" $i "*) ;;
11406 *) f="$f $i" ;;
11407 esac
11408 done
11409 assocvecs="$f"
11410
11411
11412 # uniq the architectures in all the configured targets.
11413 f=""
11414 for i in $selarchs ; do
11415 case " $f " in
11416 *" $i "*) ;;
11417 *) f="$f $i" ;;
11418 esac
11419 done
11420 selarchs="$f"
11421
11422 # Target backend .o files.
11423 tb=
11424
11425 elf="elf.lo elflink.lo elf-strtab.lo elf-eh-frame.lo dwarf1.lo"
11426
11427 for vec in $selvecs
11428 do
11429 target_size=32
11430 case "$vec" in
11431 # This list is alphabetized to make it easy to compare
11432 # with the two vector lists in targets.c. For the same reason,
11433 # use one entry per line, even though this leads to long lines.
11434 a29kcoff_big_vec) tb="$tb coff-a29k.lo cofflink.lo" ;;
11435 a_out_adobe_vec) tb="$tb aout-adobe.lo aout32.lo" ;;
11436 aix5coff64_vec) tb="$tb coff64-rs6000.lo xcofflink.lo aix5ppc-core.lo"; target_size=64 ;;
11437 aout0_big_vec) tb="$tb aout0.lo aout32.lo" ;;
11438 aout_arm_big_vec) tb="$tb aout-arm.lo aout32.lo" ;;
11439 aout_arm_little_vec) tb="$tb aout-arm.lo aout32.lo" ;;
11440 apollocoff_vec) tb="$tb coff-apollo.lo" ;;
11441 arm_epoc_pe_big_vec) tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;;
11442 arm_epoc_pe_little_vec) tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;;
11443 arm_epoc_pei_big_vec) tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;;
11444 arm_epoc_pei_little_vec) tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;;
11445 armcoff_big_vec) tb="$tb coff-arm.lo cofflink.lo " ;;
11446 armcoff_little_vec) tb="$tb coff-arm.lo cofflink.lo " ;;
11447 armnetbsd_vec) tb="$tb armnetbsd.lo aout32.lo" ;;
11448 armpe_big_vec) tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;;
11449 armpe_little_vec) tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;;
11450 armpei_big_vec) tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;;
11451 armpei_little_vec) tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;;
11452 b_out_vec_big_host) tb="$tb bout.lo aout32.lo" ;;
11453 b_out_vec_little_host) tb="$tb bout.lo aout32.lo" ;;
11454 bfd_efi_app_ia32_vec) tb="$tb efi-app-ia32.lo peigen.lo cofflink.lo" ;;
11455 bfd_efi_app_ia64_vec) tb="$tb efi-app-ia64.lo pepigen.lo cofflink.lo"; target_size=64 ;;
11456 bfd_elf32_am33lin_vec) tb="$tb elf32-am33lin.lo elf32.lo $elf" ;;
11457 bfd_elf32_avr_vec) tb="$tb elf32-avr.lo elf32.lo $elf" ;;
11458 bfd_elf32_big_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
11459 bfd_elf32_bigarc_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;;
11460 bfd_elf32_bigarm_vec) tb="$tb elf32-arm.lo elf32.lo $elf" ;;
11461 bfd_elf32_bigarm_symbian_vec)
11462 tb="$tb elf32-arm.lo elf32.lo $elf" ;;
11463 bfd_elf32_bigarm_vxworks_vec)
11464 tb="$tb elf32-arm.lo elf32.lo $elf" ;;
11465 bfd_elf32_bigmips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo" ;;
11466 bfd_elf32_cr16c_vec) tb="$tb elf32-cr16c.lo elf32.lo $elf" ;;
11467 bfd_elf32_cris_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;;
11468 bfd_elf32_crx_vec) tb="$tb elf32-crx.lo elf32.lo $elf" ;;
11469 bfd_elf32_d10v_vec) tb="$tb elf32-d10v.lo elf32.lo $elf" ;;
11470 bfd_elf32_d30v_vec) tb="$tb elf32-d30v.lo elf32.lo $elf" ;;
11471 bfd_elf32_dlx_big_vec) tb="$tb elf32-dlx.lo elf32.lo $elf" ;;
11472 bfd_elf32_fr30_vec) tb="$tb elf32-fr30.lo elf32.lo $elf" ;;
11473 bfd_elf32_frv_vec) tb="$tb elf32-frv.lo elf32.lo $elf" ;;
11474 bfd_elf32_frvfdpic_vec) tb="$tb elf32-frv.lo elf32.lo $elf" ;;
11475 bfd_elf32_h8300_vec) tb="$tb elf32-h8300.lo elf32.lo $elf" ;;
11476 bfd_elf32_hppa_linux_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
11477 bfd_elf32_hppa_nbsd_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
11478 bfd_elf32_hppa_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
11479 bfd_elf32_i370_vec) tb="$tb elf32-i370.lo elf32.lo $elf" ;;
11480 bfd_elf32_i386_freebsd_vec) tb="$tb elf32-i386.lo elf32.lo $elf" ;;
11481 bfd_elf32_i386_vec) tb="$tb elf32-i386.lo elf32.lo $elf" ;;
11482 bfd_elf32_i860_little_vec) tb="$tb elf32-i860.lo elf32.lo $elf" ;;
11483 bfd_elf32_i860_vec) tb="$tb elf32-i860.lo elf32.lo $elf" ;;
11484 bfd_elf32_i960_vec) tb="$tb elf32-i960.lo elf32.lo $elf" ;;
11485 bfd_elf32_ia64_big_vec) tb="$tb elf32-ia64.lo elf32.lo $elf" ;;
11486 bfd_elf32_ia64_hpux_big_vec) tb="$tb elf32-ia64.lo elf32.lo $elf";;
11487 bfd_elf32_ip2k_vec) tb="$tb elf32-ip2k.lo elf32.lo $elf" ;;
11488 bfd_elf32_iq2000_vec) tb="$tb elf32-iq2000.lo elf32.lo $elf" ;;
11489 bfd_elf32_little_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
11490 bfd_elf32_littlearc_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;;
11491 bfd_elf32_littlearm_symbian_vec)
11492 tb="$tb elf32-arm.lo elf32.lo $elf" ;;
11493 bfd_elf32_littlearm_vxworks_vec)
11494 tb="$tb elf32-arm.lo elf32.lo $elf" ;;
11495 bfd_elf32_littlearm_vec) tb="$tb elf32-arm.lo elf32.lo $elf" ;;
11496 bfd_elf32_littlemips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo" ;;
11497 bfd_elf32_m32r_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
11498 bfd_elf32_m32rle_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
11499 bfd_elf32_m32rlin_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
11500 bfd_elf32_m32rlelin_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
11501 bfd_elf32_m68hc11_vec) tb="$tb elf32-m68hc11.lo elf32-m68hc1x.lo elf32.lo $elf" ;;
11502 bfd_elf32_m68hc12_vec) tb="$tb elf32-m68hc12.lo elf32-m68hc1x.lo elf32.lo $elf" ;;
11503 bfd_elf32_m68k_vec) tb="$tb elf32-m68k.lo elf32.lo $elf" ;;
11504 bfd_elf32_m88k_vec) tb="$tb elf32-m88k.lo elf32.lo $elf" ;;
11505 bfd_elf32_mcore_big_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
11506 bfd_elf32_mcore_little_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
11507 bfd_elf32_mn10200_vec) tb="$tb elf-m10200.lo elf32.lo $elf" ;;
11508 bfd_elf32_mn10300_vec) tb="$tb elf-m10300.lo elf32.lo $elf" ;;
11509 bfd_elf32_msp430_vec) tb="$tb elf32-msp430.lo elf32.lo $elf" ;;
11510 bfd_elf32_nbigmips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
11511 bfd_elf32_nlittlemips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
11512 bfd_elf32_ntradbigmips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
11513 bfd_elf32_ntradlittlemips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
11514 bfd_elf32_openrisc_vec) tb="$tb elf32-openrisc.lo elf32.lo $elf" ;;
11515 bfd_elf32_or32_big_vec) tb="$tb elf32-or32.lo elf32.lo $elf" ;;
11516 bfd_elf32_pj_vec) tb="$tb elf32-pj.lo elf32.lo $elf";;
11517 bfd_elf32_pjl_vec) tb="$tb elf32-pj.lo elf32.lo $elf";;
11518 bfd_elf32_powerpc_vec) tb="$tb elf32-ppc.lo elf32.lo $elf" ;;
11519 bfd_elf32_powerpcle_vec) tb="$tb elf32-ppc.lo elf32.lo $elf" ;;
11520 bfd_elf32_s390_vec) tb="$tb elf32-s390.lo elf32.lo $elf" ;;
11521 # FIXME: We include cofflink.lo not because it's needed for
11522 # bfd_elf32_sh64[l]_vec, but because we include bfd_elf32_sh[l]_vec
11523 # which needs it but does not list it. Should be fixed in right place.
11524 bfd_elf32_sh64_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
11525 bfd_elf32_sh64l_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
11526 bfd_elf32_sh64lin_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
11527 bfd_elf32_sh64blin_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
11528 bfd_elf32_sh64lnbsd_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" ;;
11529 bfd_elf32_sh64nbsd_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" ;;
11530 bfd_elf32_sh_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo" ;;
11531 bfd_elf32_shblin_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
11532 bfd_elf32_shl_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo" ;;
11533 bfd_elf32_shl_symbian_vec) tb="$tb elf32-sh-symbian.lo elf32-sh64-com.lo elf32.lo $elf coff-sh.lo" ;;
11534 bfd_elf32_shlin_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
11535 bfd_elf32_shlnbsd_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
11536 bfd_elf32_shnbsd_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
11537 bfd_elf32_sparc_vec) tb="$tb elf32-sparc.lo elf32.lo $elf" ;;
11538 bfd_elf32_tradbigmips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo" ;;
11539 bfd_elf32_tradlittlemips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo" ;;
11540 bfd_elf32_us_cris_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;;
11541 bfd_elf32_v850_vec) tb="$tb elf32-v850.lo elf32.lo $elf" ;;
11542 bfd_elf32_vax_vec) tb="$tb elf32-vax.lo elf32.lo $elf" ;;
11543 bfd_elf32_xstormy16_vec) tb="$tb elf32-xstormy16.lo elf32.lo $elf" ;;
11544 bfd_elf32_xtensa_le_vec) tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;;
11545 bfd_elf32_xtensa_be_vec) tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;;
11546 bfd_elf64_alpha_freebsd_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;;
11547 bfd_elf64_alpha_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;;
11548 bfd_elf64_big_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
11549 bfd_elf64_bigmips_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
11550 bfd_elf64_hppa_linux_vec) tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;;
11551 bfd_elf64_hppa_vec) tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;;
11552 bfd_elf64_ia64_big_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
11553 bfd_elf64_ia64_hpux_big_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
11554 bfd_elf64_ia64_little_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
11555 bfd_elf64_little_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
11556 bfd_elf64_littlemips_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
11557 bfd_elf64_mmix_vec) tb="$tb elf64-mmix.lo elf64.lo $elf" target_size=64 ;;
11558 bfd_elf64_powerpc_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
11559 bfd_elf64_powerpcle_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf" target_size=64 ;;
11560 bfd_elf64_s390_vec) tb="$tb elf64-s390.lo elf64.lo $elf"; target_size=64 ;;
11561 bfd_elf64_sh64_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
11562 bfd_elf64_sh64l_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
11563 bfd_elf64_sh64lin_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
11564 bfd_elf64_sh64blin_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
11565 bfd_elf64_sh64lnbsd_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
11566 bfd_elf64_sh64nbsd_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
11567 bfd_elf64_sparc_vec) tb="$tb elf64-sparc.lo elf64.lo $elf"; target_size=64 ;;
11568 bfd_elf64_tradbigmips_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
11569 bfd_elf64_tradlittlemips_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
11570 bfd_elf64_x86_64_vec) tb="$tb elf64-x86-64.lo elf64.lo $elf"; target_size=64 ;;
11571 bfd_mmo_vec) tb="$tb mmo.lo" target_size=64 ;;
11572 bfd_powerpc_pe_vec) tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;;
11573 bfd_powerpc_pei_vec) tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;;
11574 bfd_powerpcle_pe_vec) tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;;
11575 bfd_powerpcle_pei_vec) tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;;
11576 cris_aout_vec) tb="$tb aout-cris.lo" ;;
11577 demo_64_vec) tb="$tb demo64.lo aout64.lo"; target_size=64 ;;
11578 ecoff_big_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
11579 ecoff_biglittle_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
11580 ecoff_little_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
11581 ecoffalpha_little_vec) tb="$tb coff-alpha.lo ecoff.lo ecofflink.lo"; target_size=64 ;;
11582 go32coff_vec) tb="$tb coff-go32.lo cofflink.lo" ;;
11583 go32stubbedcoff_vec) tb="$tb coff-stgo32.lo cofflink.lo" ;;
11584 h8300coff_vec) tb="$tb coff-h8300.lo reloc16.lo" ;;
11585 h8500coff_vec) tb="$tb coff-h8500.lo reloc16.lo" ;;
11586 host_aout_vec) tb="$tb host-aout.lo aout32.lo" ;;
11587 hp300bsd_vec) tb="$tb hp300bsd.lo aout32.lo" ;;
11588 hp300hpux_vec) tb="$tb hp300hpux.lo aout32.lo" ;;
11589 i386aout_vec) tb="$tb i386aout.lo aout32.lo" ;;
11590 i386bsd_vec) tb="$tb i386bsd.lo aout32.lo" ;;
11591 i386coff_vec) tb="$tb coff-i386.lo cofflink.lo" ;;
11592 i386dynix_vec) tb="$tb i386dynix.lo aout32.lo" ;;
11593 i386freebsd_vec) tb="$tb i386freebsd.lo aout32.lo" ;;
11594 i386linux_vec) tb="$tb i386linux.lo aout32.lo" ;;
11595 i386lynx_aout_vec) tb="$tb i386lynx.lo lynx-core.lo aout32.lo" ;;
11596 i386lynx_coff_vec) tb="$tb cf-i386lynx.lo cofflink.lo lynx-core.lo" ;;
11597 i386mach3_vec) tb="$tb i386mach3.lo aout32.lo" ;;
11598 i386msdos_vec) tb="$tb i386msdos.lo" ;;
11599 i386netbsd_vec) tb="$tb i386netbsd.lo aout32.lo" ;;
11600 i386os9k_vec) tb="$tb i386os9k.lo aout32.lo" ;;
11601 i386pe_vec) tb="$tb pe-i386.lo peigen.lo cofflink.lo" ;;
11602 i386pei_vec) tb="$tb pei-i386.lo peigen.lo cofflink.lo" ;;
11603 i860coff_vec) tb="$tb coff-i860.lo cofflink.lo" ;;
11604 icoff_big_vec) tb="$tb coff-i960.lo cofflink.lo" ;;
11605 icoff_little_vec) tb="$tb coff-i960.lo cofflink.lo" ;;
11606 ieee_vec) tb="$tb ieee.lo" ;;
11607 m68k4knetbsd_vec) tb="$tb m68k4knetbsd.lo aout32.lo" ;;
11608 m68kaux_coff_vec) tb="$tb coff-aux.lo coff-m68k.lo cofflink.lo" ;;
11609 m68kcoff_vec) tb="$tb coff-m68k.lo cofflink.lo" ;;
11610 m68kcoffun_vec) tb="$tb coff-u68k.lo coff-m68k.lo cofflink.lo" ;;
11611 m68klinux_vec) tb="$tb m68klinux.lo aout32.lo" ;;
11612 m68klynx_aout_vec) tb="$tb m68klynx.lo lynx-core.lo aout32.lo" ;;
11613 m68klynx_coff_vec) tb="$tb cf-m68klynx.lo coff-m68k.lo cofflink.lo lynx-core.lo" ;;
11614 m68knetbsd_vec) tb="$tb m68knetbsd.lo aout32.lo" ;;
11615 m68ksysvcoff_vec) tb="$tb coff-svm68k.lo cofflink.lo" ;;
11616 m88kbcs_vec) tb="$tb coff-m88k.lo" ;;
11617 m88kmach3_vec) tb="$tb m88kmach3.lo aout32.lo" ;;
11618 m88kopenbsd_vec) tb="$tb m88kopenbsd.lo aout32.lo" ;;
11619 maxqcoff_vec) tb="$tb coff-maxq.lo" ;;
11620 mach_o_be_vec) tb="$tb mach-o.lo" ;;
11621 mach_o_le_vec) tb="$tb mach-o.lo" ;;
11622 mach_o_fat_vec) tb="$tb mach-o.lo" ;;
11623 mcore_pe_big_vec) tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
11624 mcore_pe_little_vec) tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
11625 mcore_pei_big_vec) tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;;
11626 mcore_pei_little_vec) tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;;
11627 mipslpe_vec) tb="$tb pe-mips.lo peigen.lo cofflink.lo" ;;
11628 mipslpei_vec) tb="$tb pei-mips.lo peigen.lo cofflink.lo" ;;
11629 newsos3_vec) tb="$tb newsos3.lo aout32.lo" ;;
11630 nlm32_alpha_vec) tb="$tb nlm32-alpha.lo nlm32.lo nlm.lo"; target_size=64 ;;
11631 nlm32_i386_vec) tb="$tb nlm32-i386.lo nlm32.lo nlm.lo" ;;
11632 nlm32_powerpc_vec) tb="$tb nlm32-ppc.lo nlm32.lo nlm.lo" ;;
11633 nlm32_sparc_vec) tb="$tb nlm32-sparc.lo nlm32.lo nlm.lo" ;;
11634 or32coff_big_vec) tb="$tb coff-or32.lo cofflink.lo" ;;
11635 pc532machaout_vec) tb="$tb pc532-mach.lo aout-ns32k.lo" ;;
11636 pc532netbsd_vec) tb="$tb ns32knetbsd.lo aout-ns32k.lo" ;;
11637 pef_vec) tb="$tb pef.lo" ;;
11638 pef_xlib_vec) tb="$tb pef.lo" ;;
11639 pdp11_aout_vec) tb="$tb pdp11.lo" ;;
11640 pmac_xcoff_vec) tb="$tb coff-rs6000.lo xcofflink.lo" ;;
11641 ppcboot_vec) tb="$tb ppcboot.lo" ;;
11642 riscix_vec) tb="$tb aout32.lo riscix.lo" ;;
11643 rs6000coff64_vec) tb="$tb coff64-rs6000.lo xcofflink.lo aix5ppc-core.lo"; target_size=64 ;;
11644 rs6000coff_vec) tb="$tb coff-rs6000.lo xcofflink.lo" ;;
11645 shcoff_small_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
11646 shcoff_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
11647 shlcoff_small_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
11648 shlcoff_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
11649 shlpe_vec) tb="$tb pe-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;;
11650 shlpei_vec) tb="$tb pei-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;;
11651 som_vec) tb="$tb som.lo" ;;
11652 sparccoff_vec) tb="$tb coff-sparc.lo" ;;
11653 sparcle_aout_vec) tb="$tb aout-sparcle.lo aout32.lo" ;;
11654 sparclinux_vec) tb="$tb sparclinux.lo aout32.lo" ;;
11655 sparclynx_aout_vec) tb="$tb sparclynx.lo lynx-core.lo aout32.lo" ;;
11656 sparclynx_coff_vec) tb="$tb cf-sparclynx.lo lynx-core.lo" ;;
11657 sparcnetbsd_vec) tb="$tb sparcnetbsd.lo aout32.lo" ;;
11658 sunos_big_vec) tb="$tb sunos.lo aout32.lo" ;;
11659 sym_vec) tb="$tb xsym.lo" ;;
11660 tic30_aout_vec) tb="$tb aout-tic30.lo" ;;
11661 tic30_coff_vec) tb="$tb coff-tic30.lo" ;;
11662 tic4x_coff0_vec) tb="$tb coff-tic4x.lo" ;;
11663 tic4x_coff0_beh_vec) tb="$tb coff-tic4x.lo" ;;
11664 tic4x_coff1_vec) tb="$tb coff-tic4x.lo" ;;
11665 tic4x_coff1_beh_vec) tb="$tb coff-tic4x.lo" ;;
11666 tic4x_coff2_vec) tb="$tb coff-tic4x.lo" ;;
11667 tic4x_coff2_beh_vec) tb="$tb coff-tic4x.lo" ;;
11668 tic54x_coff0_beh_vec) tb="$tb coff-tic54x.lo" ;;
11669 tic54x_coff0_vec) tb="$tb coff-tic54x.lo" ;;
11670 tic54x_coff1_beh_vec) tb="$tb coff-tic54x.lo" ;;
11671 tic54x_coff1_vec) tb="$tb coff-tic54x.lo" ;;
11672 tic54x_coff2_beh_vec) tb="$tb coff-tic54x.lo" ;;
11673 tic54x_coff2_vec) tb="$tb coff-tic54x.lo" ;;
11674 tic80coff_vec) tb="$tb coff-tic80.lo cofflink.lo" ;;
11675 vaxnetbsd_vec) tb="$tb vaxnetbsd.lo aout32.lo" ;;
11676 vax1knetbsd_vec) tb="$tb vax1knetbsd.lo aout32.lo" ;;
11677 vaxbsd_vec) tb="$tb vaxbsd.lo aout32.lo" ;;
11678 versados_vec) tb="$tb versados.lo" ;;
11679 vms_alpha_vec) tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo"; target_size=64 ;;
11680 vms_vax_vec) tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo" ;;
11681 w65_vec) tb="$tb coff-w65.lo reloc16.lo" ;;
11682 we32kcoff_vec) tb="$tb coff-we32k.lo" ;;
11683 z8kcoff_vec) tb="$tb coff-z8k.lo reloc16.lo" ;;
11684
11685 # These appear out of order in targets.c
11686 srec_vec) tb="$tb srec.lo" ;;
11687 symbolsrec_vec) tb="$tb srec.lo" ;;
11688 tekhex_vec) tb="$tb tekhex.lo" ;;
11689 cisco_core_big_vec) tb="$tb cisco-core.lo" ;;
11690 cisco_core_little_vec) tb="$tb cisco-core.lo" ;;
11691
11692 "") ;;
11693 *) { { echo "$as_me:$LINENO: error: *** unknown target vector $vec" >&5
11694 echo "$as_me: error: *** unknown target vector $vec" >&2;}
11695 { (exit 1); exit 1; }; } ;;
11696 esac
11697
11698 if test ${target_size} = 64; then
11699 target64=true
11700 fi
11701 if test x"${vec}" = x"${defvec}"; then
11702 bfd_default_target_size=${target_size}
11703 fi
11704 done
11705
11706 # Target architecture .o files.
11707 # A couple of CPUs use shorter file names to avoid problems on DOS
11708 # filesystems.
11709 ta=`echo $selarchs | sed -e s/bfd_/cpu-/g -e s/_arch/.lo/g -e s/mn10200/m10200/ -e s/mn10300/m10300/`
11710
11711 # Weed out duplicate .o files.
11712 f=""
11713 for i in $tb ; do
11714 case " $f " in
11715 *" $i "*) ;;
11716 *) f="$f $i" ;;
11717 esac
11718 done
11719 tb="$f"
11720
11721 f=""
11722 for i in $ta ; do
11723 case " $f " in
11724 *" $i "*) ;;
11725 *) f="$f $i" ;;
11726 esac
11727 done
11728 ta="$f"
11729
11730 bfd_backends="$tb"
11731 bfd_machines="$ta"
11732
11733 if test x${all_targets} = xtrue ; then
11734 bfd_backends="${bfd_backends}"' $(ALL_BACKENDS)'
11735 bfd_machines="${bfd_machines}"' $(ALL_MACHINES)'
11736 selvecs=
11737 havevecs=
11738 selarchs=
11739 test -n "$assocvecs" &&
11740 assocvecs=`echo $assocvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
11741 else # all_targets is true
11742 # Only set these if they will be nonempty, for the clever echo.
11743 havevecs=
11744 assocvecs=
11745 test -n "$selvecs" &&
11746 havevecs=`echo $selvecs | sed -e 's/^/-DHAVE_/' -e 's/ \(.\)/ -DHAVE_\1/g'`
11747 test -n "$selvecs" &&
11748 selvecs=`echo $selvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
11749 test -n "$selarchs" &&
11750 selarchs=`echo $selarchs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
11751 fi # all_targets is true
11752
11753 case ${host64}-${target64}-${want64} in
11754 *true*)
11755 wordsize=64
11756 bfd_libs='$(BFD64_LIBS) $(BFD32_LIBS)'
11757 all_backends='$(BFD64_BACKENDS) $(BFD32_BACKENDS)'
11758 if test $BFD_HOST_64_BIT_DEFINED = 0; then
11759 { echo "$as_me:$LINENO: WARNING: You have requested a 64 bit BFD configuration, but" >&5
11760 echo "$as_me: WARNING: You have requested a 64 bit BFD configuration, but" >&2;}
11761 { echo "$as_me:$LINENO: WARNING: your compiler may not have a 64 bit integral type" >&5
11762 echo "$as_me: WARNING: your compiler may not have a 64 bit integral type" >&2;}
11763 fi
11764 if test -n "$GCC" ; then
11765 bad_64bit_gcc=no;
11766 echo "$as_me:$LINENO: checking for gcc version with buggy 64-bit support" >&5
11767 echo $ECHO_N "checking for gcc version with buggy 64-bit support... $ECHO_C" >&6
11768 # Add more tests for gcc versions with non-working 64-bit support here.
11769 cat >conftest.$ac_ext <<_ACEOF
11770 /* confdefs.h. */
11771 _ACEOF
11772 cat confdefs.h >>conftest.$ac_ext
11773 cat >>conftest.$ac_ext <<_ACEOF
11774 /* end confdefs.h. */
11775 :__GNUC__:__GNUC_MINOR__:__i386__:
11776 _ACEOF
11777 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11778 $EGREP ": 2 : 91 : 1 :" >/dev/null 2>&1; then
11779 bad_64bit_gcc=yes;
11780 echo "$as_me:$LINENO: result: yes: egcs-1.1.2 on ix86 spotted" >&5
11781 echo "${ECHO_T}yes: egcs-1.1.2 on ix86 spotted" >&6
11782 else
11783 echo "$as_me:$LINENO: result: no" >&5
11784 echo "${ECHO_T}no" >&6
11785 fi
11786 rm -f conftest*
11787
11788 if test $bad_64bit_gcc = yes ; then
11789 { { echo "$as_me:$LINENO: error: A newer version of gcc is needed for the requested 64-bit BFD configuration" >&5
11790 echo "$as_me: error: A newer version of gcc is needed for the requested 64-bit BFD configuration" >&2;}
11791 { (exit 1); exit 1; }; }
11792 fi
11793 fi
11794 ;;
11795 false-false-false)
11796 wordsize=32
11797 bfd_libs='$(BFD32_LIBS)'
11798 all_backends='$(BFD32_BACKENDS)'
11799 ;;
11800 esac
11801
11802
11803
11804
11805
11806
11807
11808
11809 # Determine the host dependant file_ptr a.k.a. off_t type. In order
11810 # prefer: off64_t - if ftello64 and fseeko64, off_t - if ftello and
11811 # fseeko, long. This assumes that sizeof off_t is .ge. sizeof long.
11812 # Hopefully a reasonable assumption since fseeko et.al. should be
11813 # upward compatible.
11814
11815
11816
11817
11818 for ac_func in ftello ftello64 fseeko fseeko64
11819 do
11820 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11821 echo "$as_me:$LINENO: checking for $ac_func" >&5
11822 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11823 if eval "test \"\${$as_ac_var+set}\" = set"; then
11824 echo $ECHO_N "(cached) $ECHO_C" >&6
11825 else
11826 cat >conftest.$ac_ext <<_ACEOF
11827 /* confdefs.h. */
11828 _ACEOF
11829 cat confdefs.h >>conftest.$ac_ext
11830 cat >>conftest.$ac_ext <<_ACEOF
11831 /* end confdefs.h. */
11832 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11833 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11834 #define $ac_func innocuous_$ac_func
11835
11836 /* System header to define __stub macros and hopefully few prototypes,
11837 which can conflict with char $ac_func (); below.
11838 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11839 <limits.h> exists even on freestanding compilers. */
11840
11841 #ifdef __STDC__
11842 # include <limits.h>
11843 #else
11844 # include <assert.h>
11845 #endif
11846
11847 #undef $ac_func
11848
11849 /* Override any gcc2 internal prototype to avoid an error. */
11850 #ifdef __cplusplus
11851 extern "C"
11852 {
11853 #endif
11854 /* We use char because int might match the return type of a gcc2
11855 builtin and then its argument prototype would still apply. */
11856 char $ac_func ();
11857 /* The GNU C library defines this for functions which it implements
11858 to always fail with ENOSYS. Some functions are actually named
11859 something starting with __ and the normal name is an alias. */
11860 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11861 choke me
11862 #else
11863 char (*f) () = $ac_func;
11864 #endif
11865 #ifdef __cplusplus
11866 }
11867 #endif
11868
11869 int
11870 main ()
11871 {
11872 return f != $ac_func;
11873 ;
11874 return 0;
11875 }
11876 _ACEOF
11877 rm -f conftest.$ac_objext conftest$ac_exeext
11878 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11879 (eval $ac_link) 2>conftest.er1
11880 ac_status=$?
11881 grep -v '^ *+' conftest.er1 >conftest.err
11882 rm -f conftest.er1
11883 cat conftest.err >&5
11884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11885 (exit $ac_status); } &&
11886 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11888 (eval $ac_try) 2>&5
11889 ac_status=$?
11890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11891 (exit $ac_status); }; } &&
11892 { ac_try='test -s conftest$ac_exeext'
11893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11894 (eval $ac_try) 2>&5
11895 ac_status=$?
11896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11897 (exit $ac_status); }; }; then
11898 eval "$as_ac_var=yes"
11899 else
11900 echo "$as_me: failed program was:" >&5
11901 sed 's/^/| /' conftest.$ac_ext >&5
11902
11903 eval "$as_ac_var=no"
11904 fi
11905 rm -f conftest.err conftest.$ac_objext \
11906 conftest$ac_exeext conftest.$ac_ext
11907 fi
11908 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11909 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11910 if test `eval echo '${'$as_ac_var'}'` = yes; then
11911 cat >>confdefs.h <<_ACEOF
11912 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11913 _ACEOF
11914
11915 fi
11916 done
11917
11918 if test x"$ac_cv_func_ftello" = xyes -a x"$ac_cv_func_fseeko" = xyes; then
11919 echo "$as_me:$LINENO: checking size of off_t" >&5
11920 echo $ECHO_N "checking size of off_t... $ECHO_C" >&6
11921 if test "${ac_cv_sizeof_off_t+set}" = set; then
11922 echo $ECHO_N "(cached) $ECHO_C" >&6
11923 else
11924 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
11925 cat >conftest.$ac_ext <<_ACEOF
11926 /* confdefs.h. */
11927 _ACEOF
11928 cat confdefs.h >>conftest.$ac_ext
11929 cat >>conftest.$ac_ext <<_ACEOF
11930 /* end confdefs.h. */
11931 #include "confdefs.h"
11932 #include <sys/types.h>
11933
11934
11935 int
11936 main ()
11937 {
11938 switch (0) case 0: case (sizeof (off_t) == $ac_size):;
11939 ;
11940 return 0;
11941 }
11942 _ACEOF
11943 rm -f conftest.$ac_objext
11944 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11945 (eval $ac_compile) 2>conftest.er1
11946 ac_status=$?
11947 grep -v '^ *+' conftest.er1 >conftest.err
11948 rm -f conftest.er1
11949 cat conftest.err >&5
11950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11951 (exit $ac_status); } &&
11952 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11954 (eval $ac_try) 2>&5
11955 ac_status=$?
11956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11957 (exit $ac_status); }; } &&
11958 { ac_try='test -s conftest.$ac_objext'
11959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11960 (eval $ac_try) 2>&5
11961 ac_status=$?
11962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11963 (exit $ac_status); }; }; then
11964 ac_cv_sizeof_off_t=$ac_size
11965 else
11966 echo "$as_me: failed program was:" >&5
11967 sed 's/^/| /' conftest.$ac_ext >&5
11968
11969 fi
11970 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11971 if test x$ac_cv_sizeof_off_t != x ; then break; fi
11972 done
11973
11974 fi
11975
11976 if test x$ac_cv_sizeof_off_t = x ; then
11977 { { echo "$as_me:$LINENO: error: cannot determine a size for off_t" >&5
11978 echo "$as_me: error: cannot determine a size for off_t" >&2;}
11979 { (exit 1); exit 1; }; }
11980 fi
11981 echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
11982 echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6
11983
11984 cat >>confdefs.h <<_ACEOF
11985 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
11986 _ACEOF
11987
11988
11989 fi
11990 echo "$as_me:$LINENO: checking file_ptr type" >&5
11991 echo $ECHO_N "checking file_ptr type... $ECHO_C" >&6
11992 bfd_file_ptr="long"
11993 bfd_ufile_ptr="unsigned long"
11994 if test x"$ac_cv_func_ftello64" = xyes -a x"$ac_cv_func_fseeko64" = xyes \
11995 -o x"${ac_cv_sizeof_off_t}" = x8; then
11996 bfd_file_ptr=BFD_HOST_64_BIT
11997 bfd_ufile_ptr=BFD_HOST_U_64_BIT
11998 fi
11999 echo "$as_me:$LINENO: result: $bfd_file_ptr" >&5
12000 echo "${ECHO_T}$bfd_file_ptr" >&6
12001
12002
12003
12004
12005 tdefaults=""
12006 test -n "${defvec}" && tdefaults="${tdefaults} -DDEFAULT_VECTOR=${defvec}"
12007 test -n "${selvecs}" && tdefaults="${tdefaults} -DSELECT_VECS='${selvecs}'"
12008 test -n "${assocvecs}" && tdefaults="${tdefaults} -DASSOCIATED_VECS='${assocvecs}'"
12009 test -n "${selarchs}" && tdefaults="${tdefaults} -DSELECT_ARCHITECTURES='${selarchs}'"
12010 test -n "${havevecs}" && tdefaults="${tdefaults} ${havevecs}"
12011
12012
12013
12014
12015 for ac_header in stdlib.h unistd.h
12016 do
12017 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12018 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12019 echo "$as_me:$LINENO: checking for $ac_header" >&5
12020 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12021 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12022 echo $ECHO_N "(cached) $ECHO_C" >&6
12023 fi
12024 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12025 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12026 else
12027 # Is the header compilable?
12028 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12029 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12030 cat >conftest.$ac_ext <<_ACEOF
12031 /* confdefs.h. */
12032 _ACEOF
12033 cat confdefs.h >>conftest.$ac_ext
12034 cat >>conftest.$ac_ext <<_ACEOF
12035 /* end confdefs.h. */
12036 $ac_includes_default
12037 #include <$ac_header>
12038 _ACEOF
12039 rm -f conftest.$ac_objext
12040 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12041 (eval $ac_compile) 2>conftest.er1
12042 ac_status=$?
12043 grep -v '^ *+' conftest.er1 >conftest.err
12044 rm -f conftest.er1
12045 cat conftest.err >&5
12046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12047 (exit $ac_status); } &&
12048 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12050 (eval $ac_try) 2>&5
12051 ac_status=$?
12052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12053 (exit $ac_status); }; } &&
12054 { ac_try='test -s conftest.$ac_objext'
12055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12056 (eval $ac_try) 2>&5
12057 ac_status=$?
12058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12059 (exit $ac_status); }; }; then
12060 ac_header_compiler=yes
12061 else
12062 echo "$as_me: failed program was:" >&5
12063 sed 's/^/| /' conftest.$ac_ext >&5
12064
12065 ac_header_compiler=no
12066 fi
12067 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12068 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12069 echo "${ECHO_T}$ac_header_compiler" >&6
12070
12071 # Is the header present?
12072 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12073 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12074 cat >conftest.$ac_ext <<_ACEOF
12075 /* confdefs.h. */
12076 _ACEOF
12077 cat confdefs.h >>conftest.$ac_ext
12078 cat >>conftest.$ac_ext <<_ACEOF
12079 /* end confdefs.h. */
12080 #include <$ac_header>
12081 _ACEOF
12082 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12083 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12084 ac_status=$?
12085 grep -v '^ *+' conftest.er1 >conftest.err
12086 rm -f conftest.er1
12087 cat conftest.err >&5
12088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12089 (exit $ac_status); } >/dev/null; then
12090 if test -s conftest.err; then
12091 ac_cpp_err=$ac_c_preproc_warn_flag
12092 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12093 else
12094 ac_cpp_err=
12095 fi
12096 else
12097 ac_cpp_err=yes
12098 fi
12099 if test -z "$ac_cpp_err"; then
12100 ac_header_preproc=yes
12101 else
12102 echo "$as_me: failed program was:" >&5
12103 sed 's/^/| /' conftest.$ac_ext >&5
12104
12105 ac_header_preproc=no
12106 fi
12107 rm -f conftest.err conftest.$ac_ext
12108 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12109 echo "${ECHO_T}$ac_header_preproc" >&6
12110
12111 # So? What about this header?
12112 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12113 yes:no: )
12114 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12115 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12116 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12117 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12118 ac_header_preproc=yes
12119 ;;
12120 no:yes:* )
12121 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12122 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12123 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12124 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12125 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12126 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12127 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12128 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12129 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12130 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12131 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12132 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12133 (
12134 cat <<\_ASBOX
12135 ## ------------------------------------------ ##
12136 ## Report this to the AC_PACKAGE_NAME lists. ##
12137 ## ------------------------------------------ ##
12138 _ASBOX
12139 ) |
12140 sed "s/^/$as_me: WARNING: /" >&2
12141 ;;
12142 esac
12143 echo "$as_me:$LINENO: checking for $ac_header" >&5
12144 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12145 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12146 echo $ECHO_N "(cached) $ECHO_C" >&6
12147 else
12148 eval "$as_ac_Header=\$ac_header_preproc"
12149 fi
12150 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12151 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12152
12153 fi
12154 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12155 cat >>confdefs.h <<_ACEOF
12156 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12157 _ACEOF
12158
12159 fi
12160
12161 done
12162
12163
12164 for ac_func in getpagesize
12165 do
12166 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12167 echo "$as_me:$LINENO: checking for $ac_func" >&5
12168 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12169 if eval "test \"\${$as_ac_var+set}\" = set"; then
12170 echo $ECHO_N "(cached) $ECHO_C" >&6
12171 else
12172 cat >conftest.$ac_ext <<_ACEOF
12173 /* confdefs.h. */
12174 _ACEOF
12175 cat confdefs.h >>conftest.$ac_ext
12176 cat >>conftest.$ac_ext <<_ACEOF
12177 /* end confdefs.h. */
12178 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12179 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12180 #define $ac_func innocuous_$ac_func
12181
12182 /* System header to define __stub macros and hopefully few prototypes,
12183 which can conflict with char $ac_func (); below.
12184 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12185 <limits.h> exists even on freestanding compilers. */
12186
12187 #ifdef __STDC__
12188 # include <limits.h>
12189 #else
12190 # include <assert.h>
12191 #endif
12192
12193 #undef $ac_func
12194
12195 /* Override any gcc2 internal prototype to avoid an error. */
12196 #ifdef __cplusplus
12197 extern "C"
12198 {
12199 #endif
12200 /* We use char because int might match the return type of a gcc2
12201 builtin and then its argument prototype would still apply. */
12202 char $ac_func ();
12203 /* The GNU C library defines this for functions which it implements
12204 to always fail with ENOSYS. Some functions are actually named
12205 something starting with __ and the normal name is an alias. */
12206 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12207 choke me
12208 #else
12209 char (*f) () = $ac_func;
12210 #endif
12211 #ifdef __cplusplus
12212 }
12213 #endif
12214
12215 int
12216 main ()
12217 {
12218 return f != $ac_func;
12219 ;
12220 return 0;
12221 }
12222 _ACEOF
12223 rm -f conftest.$ac_objext conftest$ac_exeext
12224 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12225 (eval $ac_link) 2>conftest.er1
12226 ac_status=$?
12227 grep -v '^ *+' conftest.er1 >conftest.err
12228 rm -f conftest.er1
12229 cat conftest.err >&5
12230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12231 (exit $ac_status); } &&
12232 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12234 (eval $ac_try) 2>&5
12235 ac_status=$?
12236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12237 (exit $ac_status); }; } &&
12238 { ac_try='test -s conftest$ac_exeext'
12239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12240 (eval $ac_try) 2>&5
12241 ac_status=$?
12242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12243 (exit $ac_status); }; }; then
12244 eval "$as_ac_var=yes"
12245 else
12246 echo "$as_me: failed program was:" >&5
12247 sed 's/^/| /' conftest.$ac_ext >&5
12248
12249 eval "$as_ac_var=no"
12250 fi
12251 rm -f conftest.err conftest.$ac_objext \
12252 conftest$ac_exeext conftest.$ac_ext
12253 fi
12254 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12255 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12256 if test `eval echo '${'$as_ac_var'}'` = yes; then
12257 cat >>confdefs.h <<_ACEOF
12258 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12259 _ACEOF
12260
12261 fi
12262 done
12263
12264 echo "$as_me:$LINENO: checking for working mmap" >&5
12265 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
12266 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
12267 echo $ECHO_N "(cached) $ECHO_C" >&6
12268 else
12269 if test "$cross_compiling" = yes; then
12270 ac_cv_func_mmap_fixed_mapped=no
12271 else
12272 cat >conftest.$ac_ext <<_ACEOF
12273 /* confdefs.h. */
12274 _ACEOF
12275 cat confdefs.h >>conftest.$ac_ext
12276 cat >>conftest.$ac_ext <<_ACEOF
12277 /* end confdefs.h. */
12278 $ac_includes_default
12279 /* malloc might have been renamed as rpl_malloc. */
12280 #undef malloc
12281
12282 /* Thanks to Mike Haertel and Jim Avera for this test.
12283 Here is a matrix of mmap possibilities:
12284 mmap private not fixed
12285 mmap private fixed at somewhere currently unmapped
12286 mmap private fixed at somewhere already mapped
12287 mmap shared not fixed
12288 mmap shared fixed at somewhere currently unmapped
12289 mmap shared fixed at somewhere already mapped
12290 For private mappings, we should verify that changes cannot be read()
12291 back from the file, nor mmap's back from the file at a different
12292 address. (There have been systems where private was not correctly
12293 implemented like the infamous i386 svr4.0, and systems where the
12294 VM page cache was not coherent with the file system buffer cache
12295 like early versions of FreeBSD and possibly contemporary NetBSD.)
12296 For shared mappings, we should conversely verify that changes get
12297 propagated back to all the places they're supposed to be.
12298
12299 Grep wants private fixed already mapped.
12300 The main things grep needs to know about mmap are:
12301 * does it exist and is it safe to write into the mmap'd area
12302 * how to use it (BSD variants) */
12303
12304 #include <fcntl.h>
12305 #include <sys/mman.h>
12306
12307 #if !STDC_HEADERS && !HAVE_STDLIB_H
12308 char *malloc ();
12309 #endif
12310
12311 /* This mess was copied from the GNU getpagesize.h. */
12312 #if !HAVE_GETPAGESIZE
12313 /* Assume that all systems that can run configure have sys/param.h. */
12314 # if !HAVE_SYS_PARAM_H
12315 # define HAVE_SYS_PARAM_H 1
12316 # endif
12317
12318 # ifdef _SC_PAGESIZE
12319 # define getpagesize() sysconf(_SC_PAGESIZE)
12320 # else /* no _SC_PAGESIZE */
12321 # if HAVE_SYS_PARAM_H
12322 # include <sys/param.h>
12323 # ifdef EXEC_PAGESIZE
12324 # define getpagesize() EXEC_PAGESIZE
12325 # else /* no EXEC_PAGESIZE */
12326 # ifdef NBPG
12327 # define getpagesize() NBPG * CLSIZE
12328 # ifndef CLSIZE
12329 # define CLSIZE 1
12330 # endif /* no CLSIZE */
12331 # else /* no NBPG */
12332 # ifdef NBPC
12333 # define getpagesize() NBPC
12334 # else /* no NBPC */
12335 # ifdef PAGESIZE
12336 # define getpagesize() PAGESIZE
12337 # endif /* PAGESIZE */
12338 # endif /* no NBPC */
12339 # endif /* no NBPG */
12340 # endif /* no EXEC_PAGESIZE */
12341 # else /* no HAVE_SYS_PARAM_H */
12342 # define getpagesize() 8192 /* punt totally */
12343 # endif /* no HAVE_SYS_PARAM_H */
12344 # endif /* no _SC_PAGESIZE */
12345
12346 #endif /* no HAVE_GETPAGESIZE */
12347
12348 int
12349 main ()
12350 {
12351 char *data, *data2, *data3;
12352 int i, pagesize;
12353 int fd;
12354
12355 pagesize = getpagesize ();
12356
12357 /* First, make a file with some known garbage in it. */
12358 data = (char *) malloc (pagesize);
12359 if (!data)
12360 exit (1);
12361 for (i = 0; i < pagesize; ++i)
12362 *(data + i) = rand ();
12363 umask (0);
12364 fd = creat ("conftest.mmap", 0600);
12365 if (fd < 0)
12366 exit (1);
12367 if (write (fd, data, pagesize) != pagesize)
12368 exit (1);
12369 close (fd);
12370
12371 /* Next, try to mmap the file at a fixed address which already has
12372 something else allocated at it. If we can, also make sure that
12373 we see the same garbage. */
12374 fd = open ("conftest.mmap", O_RDWR);
12375 if (fd < 0)
12376 exit (1);
12377 data2 = (char *) malloc (2 * pagesize);
12378 if (!data2)
12379 exit (1);
12380 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
12381 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
12382 MAP_PRIVATE | MAP_FIXED, fd, 0L))
12383 exit (1);
12384 for (i = 0; i < pagesize; ++i)
12385 if (*(data + i) != *(data2 + i))
12386 exit (1);
12387
12388 /* Finally, make sure that changes to the mapped area do not
12389 percolate back to the file as seen by read(). (This is a bug on
12390 some variants of i386 svr4.0.) */
12391 for (i = 0; i < pagesize; ++i)
12392 *(data2 + i) = *(data2 + i) + 1;
12393 data3 = (char *) malloc (pagesize);
12394 if (!data3)
12395 exit (1);
12396 if (read (fd, data3, pagesize) != pagesize)
12397 exit (1);
12398 for (i = 0; i < pagesize; ++i)
12399 if (*(data + i) != *(data3 + i))
12400 exit (1);
12401 close (fd);
12402 exit (0);
12403 }
12404 _ACEOF
12405 rm -f conftest$ac_exeext
12406 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12407 (eval $ac_link) 2>&5
12408 ac_status=$?
12409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12410 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12412 (eval $ac_try) 2>&5
12413 ac_status=$?
12414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12415 (exit $ac_status); }; }; then
12416 ac_cv_func_mmap_fixed_mapped=yes
12417 else
12418 echo "$as_me: program exited with status $ac_status" >&5
12419 echo "$as_me: failed program was:" >&5
12420 sed 's/^/| /' conftest.$ac_ext >&5
12421
12422 ( exit $ac_status )
12423 ac_cv_func_mmap_fixed_mapped=no
12424 fi
12425 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12426 fi
12427 fi
12428 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
12429 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
12430 if test $ac_cv_func_mmap_fixed_mapped = yes; then
12431
12432 cat >>confdefs.h <<\_ACEOF
12433 #define HAVE_MMAP 1
12434 _ACEOF
12435
12436 fi
12437 rm -f conftest.mmap
12438
12439
12440
12441 for ac_func in madvise mprotect
12442 do
12443 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12444 echo "$as_me:$LINENO: checking for $ac_func" >&5
12445 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12446 if eval "test \"\${$as_ac_var+set}\" = set"; then
12447 echo $ECHO_N "(cached) $ECHO_C" >&6
12448 else
12449 cat >conftest.$ac_ext <<_ACEOF
12450 /* confdefs.h. */
12451 _ACEOF
12452 cat confdefs.h >>conftest.$ac_ext
12453 cat >>conftest.$ac_ext <<_ACEOF
12454 /* end confdefs.h. */
12455 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12456 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12457 #define $ac_func innocuous_$ac_func
12458
12459 /* System header to define __stub macros and hopefully few prototypes,
12460 which can conflict with char $ac_func (); below.
12461 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12462 <limits.h> exists even on freestanding compilers. */
12463
12464 #ifdef __STDC__
12465 # include <limits.h>
12466 #else
12467 # include <assert.h>
12468 #endif
12469
12470 #undef $ac_func
12471
12472 /* Override any gcc2 internal prototype to avoid an error. */
12473 #ifdef __cplusplus
12474 extern "C"
12475 {
12476 #endif
12477 /* We use char because int might match the return type of a gcc2
12478 builtin and then its argument prototype would still apply. */
12479 char $ac_func ();
12480 /* The GNU C library defines this for functions which it implements
12481 to always fail with ENOSYS. Some functions are actually named
12482 something starting with __ and the normal name is an alias. */
12483 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12484 choke me
12485 #else
12486 char (*f) () = $ac_func;
12487 #endif
12488 #ifdef __cplusplus
12489 }
12490 #endif
12491
12492 int
12493 main ()
12494 {
12495 return f != $ac_func;
12496 ;
12497 return 0;
12498 }
12499 _ACEOF
12500 rm -f conftest.$ac_objext conftest$ac_exeext
12501 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12502 (eval $ac_link) 2>conftest.er1
12503 ac_status=$?
12504 grep -v '^ *+' conftest.er1 >conftest.err
12505 rm -f conftest.er1
12506 cat conftest.err >&5
12507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12508 (exit $ac_status); } &&
12509 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12511 (eval $ac_try) 2>&5
12512 ac_status=$?
12513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12514 (exit $ac_status); }; } &&
12515 { ac_try='test -s conftest$ac_exeext'
12516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12517 (eval $ac_try) 2>&5
12518 ac_status=$?
12519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12520 (exit $ac_status); }; }; then
12521 eval "$as_ac_var=yes"
12522 else
12523 echo "$as_me: failed program was:" >&5
12524 sed 's/^/| /' conftest.$ac_ext >&5
12525
12526 eval "$as_ac_var=no"
12527 fi
12528 rm -f conftest.err conftest.$ac_objext \
12529 conftest$ac_exeext conftest.$ac_ext
12530 fi
12531 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12532 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12533 if test `eval echo '${'$as_ac_var'}'` = yes; then
12534 cat >>confdefs.h <<_ACEOF
12535 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12536 _ACEOF
12537
12538 fi
12539 done
12540
12541 case ${want_mmap}+${ac_cv_func_mmap_fixed_mapped} in
12542 true+yes )
12543 cat >>confdefs.h <<\_ACEOF
12544 #define USE_MMAP 1
12545 _ACEOF
12546 ;;
12547 esac
12548
12549 rm -f doc/config.status
12550 ac_config_files="$ac_config_files Makefile doc/Makefile bfd-in3.h:bfd-in2.h po/Makefile.in:po/Make-in"
12551
12552 ac_config_commands="$ac_config_commands default"
12553
12554 cat >confcache <<\_ACEOF
12555 # This file is a shell script that caches the results of configure
12556 # tests run on this system so they can be shared between configure
12557 # scripts and configure runs, see configure's option --config-cache.
12558 # It is not useful on other systems. If it contains results you don't
12559 # want to keep, you may remove or edit it.
12560 #
12561 # config.status only pays attention to the cache file if you give it
12562 # the --recheck option to rerun configure.
12563 #
12564 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12565 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12566 # following values.
12567
12568 _ACEOF
12569
12570 # The following way of writing the cache mishandles newlines in values,
12571 # but we know of no workaround that is simple, portable, and efficient.
12572 # So, don't put newlines in cache variables' values.
12573 # Ultrix sh set writes to stderr and can't be redirected directly,
12574 # and sets the high bit in the cache file unless we assign to the vars.
12575 {
12576 (set) 2>&1 |
12577 case `(ac_space=' '; set | grep ac_space) 2>&1` in
12578 *ac_space=\ *)
12579 # `set' does not quote correctly, so add quotes (double-quote
12580 # substitution turns \\\\ into \\, and sed turns \\ into \).
12581 sed -n \
12582 "s/'/'\\\\''/g;
12583 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12584 ;;
12585 *)
12586 # `set' quotes correctly as required by POSIX, so do not add quotes.
12587 sed -n \
12588 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
12589 ;;
12590 esac;
12591 } |
12592 sed '
12593 t clear
12594 : clear
12595 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12596 t end
12597 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12598 : end' >>confcache
12599 if diff $cache_file confcache >/dev/null 2>&1; then :; else
12600 if test -w $cache_file; then
12601 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
12602 cat confcache >$cache_file
12603 else
12604 echo "not updating unwritable cache $cache_file"
12605 fi
12606 fi
12607 rm -f confcache
12608
12609 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12610 # Let make expand exec_prefix.
12611 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12612
12613 # VPATH may cause trouble with some makes, so we remove $(srcdir),
12614 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12615 # trailing colons and then remove the whole line if VPATH becomes empty
12616 # (actually we leave an empty line to preserve line numbers).
12617 if test "x$srcdir" = x.; then
12618 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12619 s/:*\$(srcdir):*/:/;
12620 s/:*\${srcdir}:*/:/;
12621 s/:*@srcdir@:*/:/;
12622 s/^\([^=]*=[ ]*\):*/\1/;
12623 s/:*$//;
12624 s/^[^=]*=[ ]*$//;
12625 }'
12626 fi
12627
12628 DEFS=-DHAVE_CONFIG_H
12629
12630 ac_libobjs=
12631 ac_ltlibobjs=
12632 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12633 # 1. Remove the extension, and $U if already installed.
12634 ac_i=`echo "$ac_i" |
12635 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
12636 # 2. Add them.
12637 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
12638 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
12639 done
12640 LIBOBJS=$ac_libobjs
12641
12642 LTLIBOBJS=$ac_ltlibobjs
12643
12644
12645 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12646 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
12647 Usually this means the macro was only invoked conditionally." >&5
12648 echo "$as_me: error: conditional \"AMDEP\" was never defined.
12649 Usually this means the macro was only invoked conditionally." >&2;}
12650 { (exit 1); exit 1; }; }
12651 fi
12652 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12653 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
12654 Usually this means the macro was only invoked conditionally." >&5
12655 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
12656 Usually this means the macro was only invoked conditionally." >&2;}
12657 { (exit 1); exit 1; }; }
12658 fi
12659 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
12660 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
12661 Usually this means the macro was only invoked conditionally." >&5
12662 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
12663 Usually this means the macro was only invoked conditionally." >&2;}
12664 { (exit 1); exit 1; }; }
12665 fi
12666 if test -z "${INSTALL_LIBBFD_TRUE}" && test -z "${INSTALL_LIBBFD_FALSE}"; then
12667 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LIBBFD\" was never defined.
12668 Usually this means the macro was only invoked conditionally." >&5
12669 echo "$as_me: error: conditional \"INSTALL_LIBBFD\" was never defined.
12670 Usually this means the macro was only invoked conditionally." >&2;}
12671 { (exit 1); exit 1; }; }
12672 fi
12673
12674 : ${CONFIG_STATUS=./config.status}
12675 ac_clean_files_save=$ac_clean_files
12676 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12677 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12678 echo "$as_me: creating $CONFIG_STATUS" >&6;}
12679 cat >$CONFIG_STATUS <<_ACEOF
12680 #! $SHELL
12681 # Generated by $as_me.
12682 # Run this file to recreate the current configuration.
12683 # Compiler output produced by configure, useful for debugging
12684 # configure, is in config.log if it exists.
12685
12686 debug=false
12687 ac_cs_recheck=false
12688 ac_cs_silent=false
12689 SHELL=\${CONFIG_SHELL-$SHELL}
12690 _ACEOF
12691
12692 cat >>$CONFIG_STATUS <<\_ACEOF
12693 ## --------------------- ##
12694 ## M4sh Initialization. ##
12695 ## --------------------- ##
12696
12697 # Be Bourne compatible
12698 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12699 emulate sh
12700 NULLCMD=:
12701 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
12702 # is contrary to our usage. Disable this feature.
12703 alias -g '${1+"$@"}'='"$@"'
12704 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
12705 set -o posix
12706 fi
12707 DUALCASE=1; export DUALCASE # for MKS sh
12708
12709 # Support unset when possible.
12710 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12711 as_unset=unset
12712 else
12713 as_unset=false
12714 fi
12715
12716
12717 # Work around bugs in pre-3.0 UWIN ksh.
12718 $as_unset ENV MAIL MAILPATH
12719 PS1='$ '
12720 PS2='> '
12721 PS4='+ '
12722
12723 # NLS nuisances.
12724 for as_var in \
12725 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
12726 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
12727 LC_TELEPHONE LC_TIME
12728 do
12729 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
12730 eval $as_var=C; export $as_var
12731 else
12732 $as_unset $as_var
12733 fi
12734 done
12735
12736 # Required to use basename.
12737 if expr a : '\(a\)' >/dev/null 2>&1; then
12738 as_expr=expr
12739 else
12740 as_expr=false
12741 fi
12742
12743 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
12744 as_basename=basename
12745 else
12746 as_basename=false
12747 fi
12748
12749
12750 # Name of the executable.
12751 as_me=`$as_basename "$0" ||
12752 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12753 X"$0" : 'X\(//\)$' \| \
12754 X"$0" : 'X\(/\)$' \| \
12755 . : '\(.\)' 2>/dev/null ||
12756 echo X/"$0" |
12757 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
12758 /^X\/\(\/\/\)$/{ s//\1/; q; }
12759 /^X\/\(\/\).*/{ s//\1/; q; }
12760 s/.*/./; q'`
12761
12762
12763 # PATH needs CR, and LINENO needs CR and PATH.
12764 # Avoid depending upon Character Ranges.
12765 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12766 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12767 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12768 as_cr_digits='0123456789'
12769 as_cr_alnum=$as_cr_Letters$as_cr_digits
12770
12771 # The user is always right.
12772 if test "${PATH_SEPARATOR+set}" != set; then
12773 echo "#! /bin/sh" >conf$$.sh
12774 echo "exit 0" >>conf$$.sh
12775 chmod +x conf$$.sh
12776 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12777 PATH_SEPARATOR=';'
12778 else
12779 PATH_SEPARATOR=:
12780 fi
12781 rm -f conf$$.sh
12782 fi
12783
12784
12785 as_lineno_1=$LINENO
12786 as_lineno_2=$LINENO
12787 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12788 test "x$as_lineno_1" != "x$as_lineno_2" &&
12789 test "x$as_lineno_3" = "x$as_lineno_2" || {
12790 # Find who we are. Look in the path if we contain no path at all
12791 # relative or not.
12792 case $0 in
12793 *[\\/]* ) as_myself=$0 ;;
12794 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12795 for as_dir in $PATH
12796 do
12797 IFS=$as_save_IFS
12798 test -z "$as_dir" && as_dir=.
12799 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12800 done
12801
12802 ;;
12803 esac
12804 # We did not find ourselves, most probably we were run as `sh COMMAND'
12805 # in which case we are not to be found in the path.
12806 if test "x$as_myself" = x; then
12807 as_myself=$0
12808 fi
12809 if test ! -f "$as_myself"; then
12810 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
12811 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
12812 { (exit 1); exit 1; }; }
12813 fi
12814 case $CONFIG_SHELL in
12815 '')
12816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12817 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
12818 do
12819 IFS=$as_save_IFS
12820 test -z "$as_dir" && as_dir=.
12821 for as_base in sh bash ksh sh5; do
12822 case $as_dir in
12823 /*)
12824 if ("$as_dir/$as_base" -c '
12825 as_lineno_1=$LINENO
12826 as_lineno_2=$LINENO
12827 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12828 test "x$as_lineno_1" != "x$as_lineno_2" &&
12829 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
12830 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
12831 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
12832 CONFIG_SHELL=$as_dir/$as_base
12833 export CONFIG_SHELL
12834 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
12835 fi;;
12836 esac
12837 done
12838 done
12839 ;;
12840 esac
12841
12842 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12843 # uniformly replaced by the line number. The first 'sed' inserts a
12844 # line-number line before each line; the second 'sed' does the real
12845 # work. The second script uses 'N' to pair each line-number line
12846 # with the numbered line, and appends trailing '-' during
12847 # substitution so that $LINENO is not a special case at line end.
12848 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
12849 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
12850 sed '=' <$as_myself |
12851 sed '
12852 N
12853 s,$,-,
12854 : loop
12855 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
12856 t loop
12857 s,-$,,
12858 s,^['$as_cr_digits']*\n,,
12859 ' >$as_me.lineno &&
12860 chmod +x $as_me.lineno ||
12861 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
12862 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
12863 { (exit 1); exit 1; }; }
12864
12865 # Don't try to exec as it changes $[0], causing all sort of problems
12866 # (the dirname of $[0] is not the place where we might find the
12867 # original and so on. Autoconf is especially sensible to this).
12868 . ./$as_me.lineno
12869 # Exit status is that of the last command.
12870 exit
12871 }
12872
12873
12874 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
12875 *c*,-n*) ECHO_N= ECHO_C='
12876 ' ECHO_T=' ' ;;
12877 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
12878 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
12879 esac
12880
12881 if expr a : '\(a\)' >/dev/null 2>&1; then
12882 as_expr=expr
12883 else
12884 as_expr=false
12885 fi
12886
12887 rm -f conf$$ conf$$.exe conf$$.file
12888 echo >conf$$.file
12889 if ln -s conf$$.file conf$$ 2>/dev/null; then
12890 # We could just check for DJGPP; but this test a) works b) is more generic
12891 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
12892 if test -f conf$$.exe; then
12893 # Don't use ln at all; we don't have any links
12894 as_ln_s='cp -p'
12895 else
12896 as_ln_s='ln -s'
12897 fi
12898 elif ln conf$$.file conf$$ 2>/dev/null; then
12899 as_ln_s=ln
12900 else
12901 as_ln_s='cp -p'
12902 fi
12903 rm -f conf$$ conf$$.exe conf$$.file
12904
12905 if mkdir -p . 2>/dev/null; then
12906 as_mkdir_p=:
12907 else
12908 test -d ./-p && rmdir ./-p
12909 as_mkdir_p=false
12910 fi
12911
12912 as_executable_p="test -f"
12913
12914 # Sed expression to map a string onto a valid CPP name.
12915 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12916
12917 # Sed expression to map a string onto a valid variable name.
12918 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12919
12920
12921 # IFS
12922 # We need space, tab and new line, in precisely that order.
12923 as_nl='
12924 '
12925 IFS=" $as_nl"
12926
12927 # CDPATH.
12928 $as_unset CDPATH
12929
12930 exec 6>&1
12931
12932 # Open the log real soon, to keep \$[0] and so on meaningful, and to
12933 # report actual input values of CONFIG_FILES etc. instead of their
12934 # values after options handling. Logging --version etc. is OK.
12935 exec 5>>config.log
12936 {
12937 echo
12938 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12939 ## Running $as_me. ##
12940 _ASBOX
12941 } >&5
12942 cat >&5 <<_CSEOF
12943
12944 This file was extended by $as_me, which was
12945 generated by GNU Autoconf 2.59. Invocation command line was
12946
12947 CONFIG_FILES = $CONFIG_FILES
12948 CONFIG_HEADERS = $CONFIG_HEADERS
12949 CONFIG_LINKS = $CONFIG_LINKS
12950 CONFIG_COMMANDS = $CONFIG_COMMANDS
12951 $ $0 $@
12952
12953 _CSEOF
12954 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
12955 echo >&5
12956 _ACEOF
12957
12958 # Files that config.status was made for.
12959 if test -n "$ac_config_files"; then
12960 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
12961 fi
12962
12963 if test -n "$ac_config_headers"; then
12964 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
12965 fi
12966
12967 if test -n "$ac_config_links"; then
12968 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
12969 fi
12970
12971 if test -n "$ac_config_commands"; then
12972 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
12973 fi
12974
12975 cat >>$CONFIG_STATUS <<\_ACEOF
12976
12977 ac_cs_usage="\
12978 \`$as_me' instantiates files from templates according to the
12979 current configuration.
12980
12981 Usage: $0 [OPTIONS] [FILE]...
12982
12983 -h, --help print this help, then exit
12984 -V, --version print version number, then exit
12985 -q, --quiet do not print progress messages
12986 -d, --debug don't remove temporary files
12987 --recheck update $as_me by reconfiguring in the same conditions
12988 --file=FILE[:TEMPLATE]
12989 instantiate the configuration file FILE
12990 --header=FILE[:TEMPLATE]
12991 instantiate the configuration header FILE
12992
12993 Configuration files:
12994 $config_files
12995
12996 Configuration headers:
12997 $config_headers
12998
12999 Configuration commands:
13000 $config_commands
13001
13002 Report bugs to <bug-autoconf@gnu.org>."
13003 _ACEOF
13004
13005 cat >>$CONFIG_STATUS <<_ACEOF
13006 ac_cs_version="\\
13007 config.status
13008 configured by $0, generated by GNU Autoconf 2.59,
13009 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
13010
13011 Copyright (C) 2003 Free Software Foundation, Inc.
13012 This config.status script is free software; the Free Software Foundation
13013 gives unlimited permission to copy, distribute and modify it."
13014 srcdir=$srcdir
13015 INSTALL="$INSTALL"
13016 _ACEOF
13017
13018 cat >>$CONFIG_STATUS <<\_ACEOF
13019 # If no file are specified by the user, then we need to provide default
13020 # value. By we need to know if files were specified by the user.
13021 ac_need_defaults=:
13022 while test $# != 0
13023 do
13024 case $1 in
13025 --*=*)
13026 ac_option=`expr "x$1" : 'x\([^=]*\)='`
13027 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
13028 ac_shift=:
13029 ;;
13030 -*)
13031 ac_option=$1
13032 ac_optarg=$2
13033 ac_shift=shift
13034 ;;
13035 *) # This is not an option, so the user has probably given explicit
13036 # arguments.
13037 ac_option=$1
13038 ac_need_defaults=false;;
13039 esac
13040
13041 case $ac_option in
13042 # Handling of the options.
13043 _ACEOF
13044 cat >>$CONFIG_STATUS <<\_ACEOF
13045 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13046 ac_cs_recheck=: ;;
13047 --version | --vers* | -V )
13048 echo "$ac_cs_version"; exit 0 ;;
13049 --he | --h)
13050 # Conflict between --help and --header
13051 { { echo "$as_me:$LINENO: error: ambiguous option: $1
13052 Try \`$0 --help' for more information." >&5
13053 echo "$as_me: error: ambiguous option: $1
13054 Try \`$0 --help' for more information." >&2;}
13055 { (exit 1); exit 1; }; };;
13056 --help | --hel | -h )
13057 echo "$ac_cs_usage"; exit 0 ;;
13058 --debug | --d* | -d )
13059 debug=: ;;
13060 --file | --fil | --fi | --f )
13061 $ac_shift
13062 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
13063 ac_need_defaults=false;;
13064 --header | --heade | --head | --hea )
13065 $ac_shift
13066 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
13067 ac_need_defaults=false;;
13068 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13069 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13070 ac_cs_silent=: ;;
13071
13072 # This is an error.
13073 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
13074 Try \`$0 --help' for more information." >&5
13075 echo "$as_me: error: unrecognized option: $1
13076 Try \`$0 --help' for more information." >&2;}
13077 { (exit 1); exit 1; }; } ;;
13078
13079 *) ac_config_targets="$ac_config_targets $1" ;;
13080
13081 esac
13082 shift
13083 done
13084
13085 ac_configure_extra_args=
13086
13087 if $ac_cs_silent; then
13088 exec 6>/dev/null
13089 ac_configure_extra_args="$ac_configure_extra_args --silent"
13090 fi
13091
13092 _ACEOF
13093 cat >>$CONFIG_STATUS <<_ACEOF
13094 if \$ac_cs_recheck; then
13095 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
13096 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13097 fi
13098
13099 _ACEOF
13100
13101 cat >>$CONFIG_STATUS <<_ACEOF
13102 #
13103 # INIT-COMMANDS section.
13104 #
13105
13106 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13107
13108
13109 _ACEOF
13110
13111
13112
13113 cat >>$CONFIG_STATUS <<\_ACEOF
13114 for ac_config_target in $ac_config_targets
13115 do
13116 case "$ac_config_target" in
13117 # Handling of arguments.
13118 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13119 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
13120 "bfd-in3.h" ) CONFIG_FILES="$CONFIG_FILES bfd-in3.h:bfd-in2.h" ;;
13121 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
13122 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13123 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
13124 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
13125 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
13126 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
13127 { (exit 1); exit 1; }; };;
13128 esac
13129 done
13130
13131 # If the user did not use the arguments to specify the items to instantiate,
13132 # then the envvar interface is used. Set only those that are not.
13133 # We use the long form for the default assignment because of an extremely
13134 # bizarre bug on SunOS 4.1.3.
13135 if $ac_need_defaults; then
13136 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13137 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13138 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13139 fi
13140
13141 # Have a temporary directory for convenience. Make it in the build tree
13142 # simply because there is no reason to put it here, and in addition,
13143 # creating and moving files from /tmp can sometimes cause problems.
13144 # Create a temporary directory, and hook for its removal unless debugging.
13145 $debug ||
13146 {
13147 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
13148 trap '{ (exit 1); exit 1; }' 1 2 13 15
13149 }
13150
13151 # Create a (secure) tmp directory for tmp files.
13152
13153 {
13154 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
13155 test -n "$tmp" && test -d "$tmp"
13156 } ||
13157 {
13158 tmp=./confstat$$-$RANDOM
13159 (umask 077 && mkdir $tmp)
13160 } ||
13161 {
13162 echo "$me: cannot create a temporary directory in ." >&2
13163 { (exit 1); exit 1; }
13164 }
13165
13166 _ACEOF
13167
13168 cat >>$CONFIG_STATUS <<_ACEOF
13169
13170 #
13171 # CONFIG_FILES section.
13172 #
13173
13174 # No need to generate the scripts if there are no CONFIG_FILES.
13175 # This happens for instance when ./config.status config.h
13176 if test -n "\$CONFIG_FILES"; then
13177 # Protect against being on the right side of a sed subst in config.status.
13178 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
13179 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
13180 s,@SHELL@,$SHELL,;t t
13181 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
13182 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
13183 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
13184 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
13185 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
13186 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
13187 s,@exec_prefix@,$exec_prefix,;t t
13188 s,@prefix@,$prefix,;t t
13189 s,@program_transform_name@,$program_transform_name,;t t
13190 s,@bindir@,$bindir,;t t
13191 s,@sbindir@,$sbindir,;t t
13192 s,@libexecdir@,$libexecdir,;t t
13193 s,@datadir@,$datadir,;t t
13194 s,@sysconfdir@,$sysconfdir,;t t
13195 s,@sharedstatedir@,$sharedstatedir,;t t
13196 s,@localstatedir@,$localstatedir,;t t
13197 s,@libdir@,$libdir,;t t
13198 s,@includedir@,$includedir,;t t
13199 s,@oldincludedir@,$oldincludedir,;t t
13200 s,@infodir@,$infodir,;t t
13201 s,@mandir@,$mandir,;t t
13202 s,@build_alias@,$build_alias,;t t
13203 s,@host_alias@,$host_alias,;t t
13204 s,@target_alias@,$target_alias,;t t
13205 s,@DEFS@,$DEFS,;t t
13206 s,@ECHO_C@,$ECHO_C,;t t
13207 s,@ECHO_N@,$ECHO_N,;t t
13208 s,@ECHO_T@,$ECHO_T,;t t
13209 s,@LIBS@,$LIBS,;t t
13210 s,@build@,$build,;t t
13211 s,@build_cpu@,$build_cpu,;t t
13212 s,@build_vendor@,$build_vendor,;t t
13213 s,@build_os@,$build_os,;t t
13214 s,@host@,$host,;t t
13215 s,@host_cpu@,$host_cpu,;t t
13216 s,@host_vendor@,$host_vendor,;t t
13217 s,@host_os@,$host_os,;t t
13218 s,@target@,$target,;t t
13219 s,@target_cpu@,$target_cpu,;t t
13220 s,@target_vendor@,$target_vendor,;t t
13221 s,@target_os@,$target_os,;t t
13222 s,@CC@,$CC,;t t
13223 s,@CFLAGS@,$CFLAGS,;t t
13224 s,@LDFLAGS@,$LDFLAGS,;t t
13225 s,@CPPFLAGS@,$CPPFLAGS,;t t
13226 s,@ac_ct_CC@,$ac_ct_CC,;t t
13227 s,@EXEEXT@,$EXEEXT,;t t
13228 s,@OBJEXT@,$OBJEXT,;t t
13229 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
13230 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
13231 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
13232 s,@CYGPATH_W@,$CYGPATH_W,;t t
13233 s,@PACKAGE@,$PACKAGE,;t t
13234 s,@VERSION@,$VERSION,;t t
13235 s,@ACLOCAL@,$ACLOCAL,;t t
13236 s,@AUTOCONF@,$AUTOCONF,;t t
13237 s,@AUTOMAKE@,$AUTOMAKE,;t t
13238 s,@AUTOHEADER@,$AUTOHEADER,;t t
13239 s,@MAKEINFO@,$MAKEINFO,;t t
13240 s,@install_sh@,$install_sh,;t t
13241 s,@STRIP@,$STRIP,;t t
13242 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
13243 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
13244 s,@mkdir_p@,$mkdir_p,;t t
13245 s,@AWK@,$AWK,;t t
13246 s,@SET_MAKE@,$SET_MAKE,;t t
13247 s,@am__leading_dot@,$am__leading_dot,;t t
13248 s,@AMTAR@,$AMTAR,;t t
13249 s,@am__tar@,$am__tar,;t t
13250 s,@am__untar@,$am__untar,;t t
13251 s,@DEPDIR@,$DEPDIR,;t t
13252 s,@am__include@,$am__include,;t t
13253 s,@am__quote@,$am__quote,;t t
13254 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
13255 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
13256 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
13257 s,@CCDEPMODE@,$CCDEPMODE,;t t
13258 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
13259 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
13260 s,@AR@,$AR,;t t
13261 s,@ac_ct_AR@,$ac_ct_AR,;t t
13262 s,@RANLIB@,$RANLIB,;t t
13263 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
13264 s,@LN_S@,$LN_S,;t t
13265 s,@LIBTOOL@,$LIBTOOL,;t t
13266 s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
13267 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
13268 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
13269 s,@MAINT@,$MAINT,;t t
13270 s,@INSTALL_LIBBFD_TRUE@,$INSTALL_LIBBFD_TRUE,;t t
13271 s,@INSTALL_LIBBFD_FALSE@,$INSTALL_LIBBFD_FALSE,;t t
13272 s,@host_noncanonical@,$host_noncanonical,;t t
13273 s,@target_noncanonical@,$target_noncanonical,;t t
13274 s,@bfdlibdir@,$bfdlibdir,;t t
13275 s,@bfdincludedir@,$bfdincludedir,;t t
13276 s,@CPP@,$CPP,;t t
13277 s,@EGREP@,$EGREP,;t t
13278 s,@ALLOCA@,$ALLOCA,;t t
13279 s,@USE_NLS@,$USE_NLS,;t t
13280 s,@MSGFMT@,$MSGFMT,;t t
13281 s,@GMSGFMT@,$GMSGFMT,;t t
13282 s,@XGETTEXT@,$XGETTEXT,;t t
13283 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
13284 s,@CATALOGS@,$CATALOGS,;t t
13285 s,@CATOBJEXT@,$CATOBJEXT,;t t
13286 s,@DATADIRNAME@,$DATADIRNAME,;t t
13287 s,@GMOFILES@,$GMOFILES,;t t
13288 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
13289 s,@INTLDEPS@,$INTLDEPS,;t t
13290 s,@INTLLIBS@,$INTLLIBS,;t t
13291 s,@INTLOBJS@,$INTLOBJS,;t t
13292 s,@POFILES@,$POFILES,;t t
13293 s,@POSUB@,$POSUB,;t t
13294 s,@INCLUDE_LOCALE_H@,$INCLUDE_LOCALE_H,;t t
13295 s,@GT_NO@,$GT_NO,;t t
13296 s,@GT_YES@,$GT_YES,;t t
13297 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
13298 s,@l@,$l,;t t
13299 s,@HDEFINES@,$HDEFINES,;t t
13300 s,@BFD_HOST_64BIT_LONG@,$BFD_HOST_64BIT_LONG,;t t
13301 s,@BFD_HOST_LONG_LONG@,$BFD_HOST_LONG_LONG,;t t
13302 s,@BFD_HOST_64_BIT_DEFINED@,$BFD_HOST_64_BIT_DEFINED,;t t
13303 s,@BFD_HOST_64_BIT@,$BFD_HOST_64_BIT,;t t
13304 s,@BFD_HOST_U_64_BIT@,$BFD_HOST_U_64_BIT,;t t
13305 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
13306 s,@EXEEXT_FOR_BUILD@,$EXEEXT_FOR_BUILD,;t t
13307 s,@COREFILE@,$COREFILE,;t t
13308 s,@COREFLAG@,$COREFLAG,;t t
13309 s,@WIN32LDFLAGS@,$WIN32LDFLAGS,;t t
13310 s,@WIN32LIBADD@,$WIN32LIBADD,;t t
13311 s,@TDEFINES@,$TDEFINES,;t t
13312 s,@wordsize@,$wordsize,;t t
13313 s,@bfd_libs@,$bfd_libs,;t t
13314 s,@all_backends@,$all_backends,;t t
13315 s,@bfd_backends@,$bfd_backends,;t t
13316 s,@bfd_machines@,$bfd_machines,;t t
13317 s,@bfd_default_target_size@,$bfd_default_target_size,;t t
13318 s,@bfd_file_ptr@,$bfd_file_ptr,;t t
13319 s,@bfd_ufile_ptr@,$bfd_ufile_ptr,;t t
13320 s,@tdefaults@,$tdefaults,;t t
13321 s,@LIBOBJS@,$LIBOBJS,;t t
13322 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
13323 CEOF
13324
13325 _ACEOF
13326
13327 cat >>$CONFIG_STATUS <<\_ACEOF
13328 # Split the substitutions into bite-sized pieces for seds with
13329 # small command number limits, like on Digital OSF/1 and HP-UX.
13330 ac_max_sed_lines=48
13331 ac_sed_frag=1 # Number of current file.
13332 ac_beg=1 # First line for current file.
13333 ac_end=$ac_max_sed_lines # Line after last line for current file.
13334 ac_more_lines=:
13335 ac_sed_cmds=
13336 while $ac_more_lines; do
13337 if test $ac_beg -gt 1; then
13338 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13339 else
13340 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13341 fi
13342 if test ! -s $tmp/subs.frag; then
13343 ac_more_lines=false
13344 else
13345 # The purpose of the label and of the branching condition is to
13346 # speed up the sed processing (if there are no `@' at all, there
13347 # is no need to browse any of the substitutions).
13348 # These are the two extra sed commands mentioned above.
13349 (echo ':t
13350 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
13351 if test -z "$ac_sed_cmds"; then
13352 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
13353 else
13354 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
13355 fi
13356 ac_sed_frag=`expr $ac_sed_frag + 1`
13357 ac_beg=$ac_end
13358 ac_end=`expr $ac_end + $ac_max_sed_lines`
13359 fi
13360 done
13361 if test -z "$ac_sed_cmds"; then
13362 ac_sed_cmds=cat
13363 fi
13364 fi # test -n "$CONFIG_FILES"
13365
13366 _ACEOF
13367 cat >>$CONFIG_STATUS <<\_ACEOF
13368 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
13369 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13370 case $ac_file in
13371 - | *:- | *:-:* ) # input from stdin
13372 cat >$tmp/stdin
13373 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13374 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13375 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13376 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13377 * ) ac_file_in=$ac_file.in ;;
13378 esac
13379
13380 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
13381 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13382 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13383 X"$ac_file" : 'X\(//\)[^/]' \| \
13384 X"$ac_file" : 'X\(//\)$' \| \
13385 X"$ac_file" : 'X\(/\)' \| \
13386 . : '\(.\)' 2>/dev/null ||
13387 echo X"$ac_file" |
13388 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13389 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13390 /^X\(\/\/\)$/{ s//\1/; q; }
13391 /^X\(\/\).*/{ s//\1/; q; }
13392 s/.*/./; q'`
13393 { if $as_mkdir_p; then
13394 mkdir -p "$ac_dir"
13395 else
13396 as_dir="$ac_dir"
13397 as_dirs=
13398 while test ! -d "$as_dir"; do
13399 as_dirs="$as_dir $as_dirs"
13400 as_dir=`(dirname "$as_dir") 2>/dev/null ||
13401 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13402 X"$as_dir" : 'X\(//\)[^/]' \| \
13403 X"$as_dir" : 'X\(//\)$' \| \
13404 X"$as_dir" : 'X\(/\)' \| \
13405 . : '\(.\)' 2>/dev/null ||
13406 echo X"$as_dir" |
13407 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13408 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13409 /^X\(\/\/\)$/{ s//\1/; q; }
13410 /^X\(\/\).*/{ s//\1/; q; }
13411 s/.*/./; q'`
13412 done
13413 test ! -n "$as_dirs" || mkdir $as_dirs
13414 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13415 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13416 { (exit 1); exit 1; }; }; }
13417
13418 ac_builddir=.
13419
13420 if test "$ac_dir" != .; then
13421 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13422 # A "../" for each directory in $ac_dir_suffix.
13423 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13424 else
13425 ac_dir_suffix= ac_top_builddir=
13426 fi
13427
13428 case $srcdir in
13429 .) # No --srcdir option. We are building in place.
13430 ac_srcdir=.
13431 if test -z "$ac_top_builddir"; then
13432 ac_top_srcdir=.
13433 else
13434 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13435 fi ;;
13436 [\\/]* | ?:[\\/]* ) # Absolute path.
13437 ac_srcdir=$srcdir$ac_dir_suffix;
13438 ac_top_srcdir=$srcdir ;;
13439 *) # Relative path.
13440 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13441 ac_top_srcdir=$ac_top_builddir$srcdir ;;
13442 esac
13443
13444 # Do not use `cd foo && pwd` to compute absolute paths, because
13445 # the directories may not exist.
13446 case `pwd` in
13447 .) ac_abs_builddir="$ac_dir";;
13448 *)
13449 case "$ac_dir" in
13450 .) ac_abs_builddir=`pwd`;;
13451 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
13452 *) ac_abs_builddir=`pwd`/"$ac_dir";;
13453 esac;;
13454 esac
13455 case $ac_abs_builddir in
13456 .) ac_abs_top_builddir=${ac_top_builddir}.;;
13457 *)
13458 case ${ac_top_builddir}. in
13459 .) ac_abs_top_builddir=$ac_abs_builddir;;
13460 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
13461 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
13462 esac;;
13463 esac
13464 case $ac_abs_builddir in
13465 .) ac_abs_srcdir=$ac_srcdir;;
13466 *)
13467 case $ac_srcdir in
13468 .) ac_abs_srcdir=$ac_abs_builddir;;
13469 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
13470 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
13471 esac;;
13472 esac
13473 case $ac_abs_builddir in
13474 .) ac_abs_top_srcdir=$ac_top_srcdir;;
13475 *)
13476 case $ac_top_srcdir in
13477 .) ac_abs_top_srcdir=$ac_abs_builddir;;
13478 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
13479 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
13480 esac;;
13481 esac
13482
13483
13484 case $INSTALL in
13485 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13486 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
13487 esac
13488
13489 # Let's still pretend it is `configure' which instantiates (i.e., don't
13490 # use $as_me), people would be surprised to read:
13491 # /* config.h. Generated by config.status. */
13492 if test x"$ac_file" = x-; then
13493 configure_input=
13494 else
13495 configure_input="$ac_file. "
13496 fi
13497 configure_input=$configure_input"Generated from `echo $ac_file_in |
13498 sed 's,.*/,,'` by configure."
13499
13500 # First look for the input files in the build tree, otherwise in the
13501 # src tree.
13502 ac_file_inputs=`IFS=:
13503 for f in $ac_file_in; do
13504 case $f in
13505 -) echo $tmp/stdin ;;
13506 [\\/$]*)
13507 # Absolute (can't be DOS-style, as IFS=:)
13508 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13509 echo "$as_me: error: cannot find input file: $f" >&2;}
13510 { (exit 1); exit 1; }; }
13511 echo "$f";;
13512 *) # Relative
13513 if test -f "$f"; then
13514 # Build tree
13515 echo "$f"
13516 elif test -f "$srcdir/$f"; then
13517 # Source tree
13518 echo "$srcdir/$f"
13519 else
13520 # /dev/null tree
13521 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13522 echo "$as_me: error: cannot find input file: $f" >&2;}
13523 { (exit 1); exit 1; }; }
13524 fi;;
13525 esac
13526 done` || { (exit 1); exit 1; }
13527
13528 if test x"$ac_file" != x-; then
13529 { echo "$as_me:$LINENO: creating $ac_file" >&5
13530 echo "$as_me: creating $ac_file" >&6;}
13531 rm -f "$ac_file"
13532 fi
13533 _ACEOF
13534 cat >>$CONFIG_STATUS <<_ACEOF
13535 sed "$ac_vpsub
13536 $extrasub
13537 _ACEOF
13538 cat >>$CONFIG_STATUS <<\_ACEOF
13539 :t
13540 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13541 s,@configure_input@,$configure_input,;t t
13542 s,@srcdir@,$ac_srcdir,;t t
13543 s,@abs_srcdir@,$ac_abs_srcdir,;t t
13544 s,@top_srcdir@,$ac_top_srcdir,;t t
13545 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
13546 s,@builddir@,$ac_builddir,;t t
13547 s,@abs_builddir@,$ac_abs_builddir,;t t
13548 s,@top_builddir@,$ac_top_builddir,;t t
13549 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
13550 s,@INSTALL@,$ac_INSTALL,;t t
13551 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
13552 rm -f $tmp/stdin
13553 if test x"$ac_file" != x-; then
13554 mv $tmp/out $ac_file
13555 else
13556 cat $tmp/out
13557 rm -f $tmp/out
13558 fi
13559
13560 done
13561 _ACEOF
13562 cat >>$CONFIG_STATUS <<\_ACEOF
13563
13564 #
13565 # CONFIG_HEADER section.
13566 #
13567
13568 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
13569 # NAME is the cpp macro being defined and VALUE is the value it is being given.
13570 #
13571 # ac_d sets the value in "#define NAME VALUE" lines.
13572 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
13573 ac_dB='[ ].*$,\1#\2'
13574 ac_dC=' '
13575 ac_dD=',;t'
13576 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
13577 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13578 ac_uB='$,\1#\2define\3'
13579 ac_uC=' '
13580 ac_uD=',;t'
13581
13582 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
13583 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13584 case $ac_file in
13585 - | *:- | *:-:* ) # input from stdin
13586 cat >$tmp/stdin
13587 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13588 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13589 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13590 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13591 * ) ac_file_in=$ac_file.in ;;
13592 esac
13593
13594 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
13595 echo "$as_me: creating $ac_file" >&6;}
13596
13597 # First look for the input files in the build tree, otherwise in the
13598 # src tree.
13599 ac_file_inputs=`IFS=:
13600 for f in $ac_file_in; do
13601 case $f in
13602 -) echo $tmp/stdin ;;
13603 [\\/$]*)
13604 # Absolute (can't be DOS-style, as IFS=:)
13605 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13606 echo "$as_me: error: cannot find input file: $f" >&2;}
13607 { (exit 1); exit 1; }; }
13608 # Do quote $f, to prevent DOS paths from being IFS'd.
13609 echo "$f";;
13610 *) # Relative
13611 if test -f "$f"; then
13612 # Build tree
13613 echo "$f"
13614 elif test -f "$srcdir/$f"; then
13615 # Source tree
13616 echo "$srcdir/$f"
13617 else
13618 # /dev/null tree
13619 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13620 echo "$as_me: error: cannot find input file: $f" >&2;}
13621 { (exit 1); exit 1; }; }
13622 fi;;
13623 esac
13624 done` || { (exit 1); exit 1; }
13625 # Remove the trailing spaces.
13626 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
13627
13628 _ACEOF
13629
13630 # Transform confdefs.h into two sed scripts, `conftest.defines' and
13631 # `conftest.undefs', that substitutes the proper values into
13632 # config.h.in to produce config.h. The first handles `#define'
13633 # templates, and the second `#undef' templates.
13634 # And first: Protect against being on the right side of a sed subst in
13635 # config.status. Protect against being in an unquoted here document
13636 # in config.status.
13637 rm -f conftest.defines conftest.undefs
13638 # Using a here document instead of a string reduces the quoting nightmare.
13639 # Putting comments in sed scripts is not portable.
13640 #
13641 # `end' is used to avoid that the second main sed command (meant for
13642 # 0-ary CPP macros) applies to n-ary macro definitions.
13643 # See the Autoconf documentation for `clear'.
13644 cat >confdef2sed.sed <<\_ACEOF
13645 s/[\\&,]/\\&/g
13646 s,[\\$`],\\&,g
13647 t clear
13648 : clear
13649 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
13650 t end
13651 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
13652 : end
13653 _ACEOF
13654 # If some macros were called several times there might be several times
13655 # the same #defines, which is useless. Nevertheless, we may not want to
13656 # sort them, since we want the *last* AC-DEFINE to be honored.
13657 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
13658 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
13659 rm -f confdef2sed.sed
13660
13661 # This sed command replaces #undef with comments. This is necessary, for
13662 # example, in the case of _POSIX_SOURCE, which is predefined and required
13663 # on some systems where configure will not decide to define it.
13664 cat >>conftest.undefs <<\_ACEOF
13665 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
13666 _ACEOF
13667
13668 # Break up conftest.defines because some shells have a limit on the size
13669 # of here documents, and old seds have small limits too (100 cmds).
13670 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
13671 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
13672 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
13673 echo ' :' >>$CONFIG_STATUS
13674 rm -f conftest.tail
13675 while grep . conftest.defines >/dev/null
13676 do
13677 # Write a limited-size here document to $tmp/defines.sed.
13678 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
13679 # Speed up: don't consider the non `#define' lines.
13680 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
13681 # Work around the forget-to-reset-the-flag bug.
13682 echo 't clr' >>$CONFIG_STATUS
13683 echo ': clr' >>$CONFIG_STATUS
13684 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
13685 echo 'CEOF
13686 sed -f $tmp/defines.sed $tmp/in >$tmp/out
13687 rm -f $tmp/in
13688 mv $tmp/out $tmp/in
13689 ' >>$CONFIG_STATUS
13690 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
13691 rm -f conftest.defines
13692 mv conftest.tail conftest.defines
13693 done
13694 rm -f conftest.defines
13695 echo ' fi # grep' >>$CONFIG_STATUS
13696 echo >>$CONFIG_STATUS
13697
13698 # Break up conftest.undefs because some shells have a limit on the size
13699 # of here documents, and old seds have small limits too (100 cmds).
13700 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
13701 rm -f conftest.tail
13702 while grep . conftest.undefs >/dev/null
13703 do
13704 # Write a limited-size here document to $tmp/undefs.sed.
13705 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
13706 # Speed up: don't consider the non `#undef'
13707 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
13708 # Work around the forget-to-reset-the-flag bug.
13709 echo 't clr' >>$CONFIG_STATUS
13710 echo ': clr' >>$CONFIG_STATUS
13711 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
13712 echo 'CEOF
13713 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
13714 rm -f $tmp/in
13715 mv $tmp/out $tmp/in
13716 ' >>$CONFIG_STATUS
13717 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
13718 rm -f conftest.undefs
13719 mv conftest.tail conftest.undefs
13720 done
13721 rm -f conftest.undefs
13722
13723 cat >>$CONFIG_STATUS <<\_ACEOF
13724 # Let's still pretend it is `configure' which instantiates (i.e., don't
13725 # use $as_me), people would be surprised to read:
13726 # /* config.h. Generated by config.status. */
13727 if test x"$ac_file" = x-; then
13728 echo "/* Generated by configure. */" >$tmp/config.h
13729 else
13730 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
13731 fi
13732 cat $tmp/in >>$tmp/config.h
13733 rm -f $tmp/in
13734 if test x"$ac_file" != x-; then
13735 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
13736 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
13737 echo "$as_me: $ac_file is unchanged" >&6;}
13738 else
13739 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13740 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13741 X"$ac_file" : 'X\(//\)[^/]' \| \
13742 X"$ac_file" : 'X\(//\)$' \| \
13743 X"$ac_file" : 'X\(/\)' \| \
13744 . : '\(.\)' 2>/dev/null ||
13745 echo X"$ac_file" |
13746 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13747 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13748 /^X\(\/\/\)$/{ s//\1/; q; }
13749 /^X\(\/\).*/{ s//\1/; q; }
13750 s/.*/./; q'`
13751 { if $as_mkdir_p; then
13752 mkdir -p "$ac_dir"
13753 else
13754 as_dir="$ac_dir"
13755 as_dirs=
13756 while test ! -d "$as_dir"; do
13757 as_dirs="$as_dir $as_dirs"
13758 as_dir=`(dirname "$as_dir") 2>/dev/null ||
13759 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13760 X"$as_dir" : 'X\(//\)[^/]' \| \
13761 X"$as_dir" : 'X\(//\)$' \| \
13762 X"$as_dir" : 'X\(/\)' \| \
13763 . : '\(.\)' 2>/dev/null ||
13764 echo X"$as_dir" |
13765 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13766 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13767 /^X\(\/\/\)$/{ s//\1/; q; }
13768 /^X\(\/\).*/{ s//\1/; q; }
13769 s/.*/./; q'`
13770 done
13771 test ! -n "$as_dirs" || mkdir $as_dirs
13772 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13773 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13774 { (exit 1); exit 1; }; }; }
13775
13776 rm -f $ac_file
13777 mv $tmp/config.h $ac_file
13778 fi
13779 else
13780 cat $tmp/config.h
13781 rm -f $tmp/config.h
13782 fi
13783 # Compute $ac_file's index in $config_headers.
13784 _am_stamp_count=1
13785 for _am_header in $config_headers :; do
13786 case $_am_header in
13787 $ac_file | $ac_file:* )
13788 break ;;
13789 * )
13790 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13791 esac
13792 done
13793 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
13794 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13795 X$ac_file : 'X\(//\)[^/]' \| \
13796 X$ac_file : 'X\(//\)$' \| \
13797 X$ac_file : 'X\(/\)' \| \
13798 . : '\(.\)' 2>/dev/null ||
13799 echo X$ac_file |
13800 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13801 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13802 /^X\(\/\/\)$/{ s//\1/; q; }
13803 /^X\(\/\).*/{ s//\1/; q; }
13804 s/.*/./; q'`/stamp-h$_am_stamp_count
13805 done
13806 _ACEOF
13807 cat >>$CONFIG_STATUS <<\_ACEOF
13808
13809 #
13810 # CONFIG_COMMANDS section.
13811 #
13812 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
13813 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
13814 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
13815 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
13816 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13817 X"$ac_dest" : 'X\(//\)[^/]' \| \
13818 X"$ac_dest" : 'X\(//\)$' \| \
13819 X"$ac_dest" : 'X\(/\)' \| \
13820 . : '\(.\)' 2>/dev/null ||
13821 echo X"$ac_dest" |
13822 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13823 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13824 /^X\(\/\/\)$/{ s//\1/; q; }
13825 /^X\(\/\).*/{ s//\1/; q; }
13826 s/.*/./; q'`
13827 { if $as_mkdir_p; then
13828 mkdir -p "$ac_dir"
13829 else
13830 as_dir="$ac_dir"
13831 as_dirs=
13832 while test ! -d "$as_dir"; do
13833 as_dirs="$as_dir $as_dirs"
13834 as_dir=`(dirname "$as_dir") 2>/dev/null ||
13835 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13836 X"$as_dir" : 'X\(//\)[^/]' \| \
13837 X"$as_dir" : 'X\(//\)$' \| \
13838 X"$as_dir" : 'X\(/\)' \| \
13839 . : '\(.\)' 2>/dev/null ||
13840 echo X"$as_dir" |
13841 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13842 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13843 /^X\(\/\/\)$/{ s//\1/; q; }
13844 /^X\(\/\).*/{ s//\1/; q; }
13845 s/.*/./; q'`
13846 done
13847 test ! -n "$as_dirs" || mkdir $as_dirs
13848 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13849 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13850 { (exit 1); exit 1; }; }; }
13851
13852 ac_builddir=.
13853
13854 if test "$ac_dir" != .; then
13855 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13856 # A "../" for each directory in $ac_dir_suffix.
13857 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13858 else
13859 ac_dir_suffix= ac_top_builddir=
13860 fi
13861
13862 case $srcdir in
13863 .) # No --srcdir option. We are building in place.
13864 ac_srcdir=.
13865 if test -z "$ac_top_builddir"; then
13866 ac_top_srcdir=.
13867 else
13868 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13869 fi ;;
13870 [\\/]* | ?:[\\/]* ) # Absolute path.
13871 ac_srcdir=$srcdir$ac_dir_suffix;
13872 ac_top_srcdir=$srcdir ;;
13873 *) # Relative path.
13874 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13875 ac_top_srcdir=$ac_top_builddir$srcdir ;;
13876 esac
13877
13878 # Do not use `cd foo && pwd` to compute absolute paths, because
13879 # the directories may not exist.
13880 case `pwd` in
13881 .) ac_abs_builddir="$ac_dir";;
13882 *)
13883 case "$ac_dir" in
13884 .) ac_abs_builddir=`pwd`;;
13885 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
13886 *) ac_abs_builddir=`pwd`/"$ac_dir";;
13887 esac;;
13888 esac
13889 case $ac_abs_builddir in
13890 .) ac_abs_top_builddir=${ac_top_builddir}.;;
13891 *)
13892 case ${ac_top_builddir}. in
13893 .) ac_abs_top_builddir=$ac_abs_builddir;;
13894 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
13895 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
13896 esac;;
13897 esac
13898 case $ac_abs_builddir in
13899 .) ac_abs_srcdir=$ac_srcdir;;
13900 *)
13901 case $ac_srcdir in
13902 .) ac_abs_srcdir=$ac_abs_builddir;;
13903 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
13904 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
13905 esac;;
13906 esac
13907 case $ac_abs_builddir in
13908 .) ac_abs_top_srcdir=$ac_top_srcdir;;
13909 *)
13910 case $ac_top_srcdir in
13911 .) ac_abs_top_srcdir=$ac_abs_builddir;;
13912 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
13913 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
13914 esac;;
13915 esac
13916
13917
13918 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
13919 echo "$as_me: executing $ac_dest commands" >&6;}
13920 case $ac_dest in
13921 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
13922 # Strip MF so we end up with the name of the file.
13923 mf=`echo "$mf" | sed -e 's/:.*$//'`
13924 # Check whether this is an Automake generated Makefile or not.
13925 # We used to match only the files named `Makefile.in', but
13926 # some people rename them; so instead we look at the file content.
13927 # Grep'ing the first line is not enough: some people post-process
13928 # each Makefile.in and add a new line on top of each file to say so.
13929 # So let's grep whole file.
13930 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
13931 dirpart=`(dirname "$mf") 2>/dev/null ||
13932 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13933 X"$mf" : 'X\(//\)[^/]' \| \
13934 X"$mf" : 'X\(//\)$' \| \
13935 X"$mf" : 'X\(/\)' \| \
13936 . : '\(.\)' 2>/dev/null ||
13937 echo X"$mf" |
13938 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13939 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13940 /^X\(\/\/\)$/{ s//\1/; q; }
13941 /^X\(\/\).*/{ s//\1/; q; }
13942 s/.*/./; q'`
13943 else
13944 continue
13945 fi
13946 # Extract the definition of DEPDIR, am__include, and am__quote
13947 # from the Makefile without running `make'.
13948 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
13949 test -z "$DEPDIR" && continue
13950 am__include=`sed -n 's/^am__include = //p' < "$mf"`
13951 test -z "am__include" && continue
13952 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
13953 # When using ansi2knr, U may be empty or an underscore; expand it
13954 U=`sed -n 's/^U = //p' < "$mf"`
13955 # Find all dependency output files, they are included files with
13956 # $(DEPDIR) in their names. We invoke sed twice because it is the
13957 # simplest approach to changing $(DEPDIR) to its actual value in the
13958 # expansion.
13959 for file in `sed -n "
13960 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
13961 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
13962 # Make sure the directory exists.
13963 test -f "$dirpart/$file" && continue
13964 fdir=`(dirname "$file") 2>/dev/null ||
13965 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13966 X"$file" : 'X\(//\)[^/]' \| \
13967 X"$file" : 'X\(//\)$' \| \
13968 X"$file" : 'X\(/\)' \| \
13969 . : '\(.\)' 2>/dev/null ||
13970 echo X"$file" |
13971 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13972 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13973 /^X\(\/\/\)$/{ s//\1/; q; }
13974 /^X\(\/\).*/{ s//\1/; q; }
13975 s/.*/./; q'`
13976 { if $as_mkdir_p; then
13977 mkdir -p $dirpart/$fdir
13978 else
13979 as_dir=$dirpart/$fdir
13980 as_dirs=
13981 while test ! -d "$as_dir"; do
13982 as_dirs="$as_dir $as_dirs"
13983 as_dir=`(dirname "$as_dir") 2>/dev/null ||
13984 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13985 X"$as_dir" : 'X\(//\)[^/]' \| \
13986 X"$as_dir" : 'X\(//\)$' \| \
13987 X"$as_dir" : 'X\(/\)' \| \
13988 . : '\(.\)' 2>/dev/null ||
13989 echo X"$as_dir" |
13990 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13991 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13992 /^X\(\/\/\)$/{ s//\1/; q; }
13993 /^X\(\/\).*/{ s//\1/; q; }
13994 s/.*/./; q'`
13995 done
13996 test ! -n "$as_dirs" || mkdir $as_dirs
13997 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
13998 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
13999 { (exit 1); exit 1; }; }; }
14000
14001 # echo "creating $dirpart/$file"
14002 echo '# dummy' > "$dirpart/$file"
14003 done
14004 done
14005 ;;
14006 default ) sed -e '/SRC-POTFILES =/r po/SRC-POTFILES' -e '/BLD-POTFILES =/r po/BLD-POTFILES' po/Makefile.in > po/Makefile ;;
14007 esac
14008 done
14009 _ACEOF
14010
14011 cat >>$CONFIG_STATUS <<\_ACEOF
14012
14013 { (exit 0); exit 0; }
14014 _ACEOF
14015 chmod +x $CONFIG_STATUS
14016 ac_clean_files=$ac_clean_files_save
14017
14018
14019 # configure is writing to config.log, and then calls config.status.
14020 # config.status does its own redirection, appending to config.log.
14021 # Unfortunately, on DOS this fails, as config.log is still kept open
14022 # by configure, so config.status won't be able to write to it; its
14023 # output is simply discarded. So we exec the FD to /dev/null,
14024 # effectively closing config.log, so it can be properly (re)opened and
14025 # appended to by config.status. When coming back to configure, we
14026 # need to make the FD available again.
14027 if test "$no_create" != yes; then
14028 ac_cs_success=:
14029 ac_config_status_args=
14030 test "$silent" = yes &&
14031 ac_config_status_args="$ac_config_status_args --quiet"
14032 exec 5>/dev/null
14033 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14034 exec 5>>config.log
14035 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14036 # would make configure fail if this is the last instruction.
14037 $ac_cs_success || { (exit 1); exit 1; }
14038 fi
14039
14040
This page took 0.534281 seconds and 4 git commands to generate.