* elf64-sparc.c (sparc64_elf_relocate_section): Ignore overflows
[platform/upstream/binutils.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"
2001                          || test ! -s conftest.err'
2002   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2003   (eval $ac_try) 2>&5
2004   ac_status=$?
2005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006   (exit $ac_status); }; } &&
2007          { ac_try='test -s conftest.$ac_objext'
2008   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2009   (eval $ac_try) 2>&5
2010   ac_status=$?
2011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2012   (exit $ac_status); }; }; then
2013   ac_compiler_gnu=yes
2014 else
2015   echo "$as_me: failed program was:" >&5
2016 sed 's/^/| /' conftest.$ac_ext >&5
2017
2018 ac_compiler_gnu=no
2019 fi
2020 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2021 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2022
2023 fi
2024 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2025 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2026 GCC=`test $ac_compiler_gnu = yes && echo yes`
2027 ac_test_CFLAGS=${CFLAGS+set}
2028 ac_save_CFLAGS=$CFLAGS
2029 CFLAGS="-g"
2030 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2031 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2032 if test "${ac_cv_prog_cc_g+set}" = set; then
2033   echo $ECHO_N "(cached) $ECHO_C" >&6
2034 else
2035   cat >conftest.$ac_ext <<_ACEOF
2036 /* confdefs.h.  */
2037 _ACEOF
2038 cat confdefs.h >>conftest.$ac_ext
2039 cat >>conftest.$ac_ext <<_ACEOF
2040 /* end confdefs.h.  */
2041
2042 int
2043 main ()
2044 {
2045
2046   ;
2047   return 0;
2048 }
2049 _ACEOF
2050 rm -f conftest.$ac_objext
2051 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2052   (eval $ac_compile) 2>conftest.er1
2053   ac_status=$?
2054   grep -v '^ *+' conftest.er1 >conftest.err
2055   rm -f conftest.er1
2056   cat conftest.err >&5
2057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2058   (exit $ac_status); } &&
2059          { ac_try='test -z "$ac_c_werror_flag"
2060                          || test ! -s conftest.err'
2061   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2062   (eval $ac_try) 2>&5
2063   ac_status=$?
2064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2065   (exit $ac_status); }; } &&
2066          { ac_try='test -s conftest.$ac_objext'
2067   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2068   (eval $ac_try) 2>&5
2069   ac_status=$?
2070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2071   (exit $ac_status); }; }; then
2072   ac_cv_prog_cc_g=yes
2073 else
2074   echo "$as_me: failed program was:" >&5
2075 sed 's/^/| /' conftest.$ac_ext >&5
2076
2077 ac_cv_prog_cc_g=no
2078 fi
2079 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2080 fi
2081 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2082 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2083 if test "$ac_test_CFLAGS" = set; then
2084   CFLAGS=$ac_save_CFLAGS
2085 elif test $ac_cv_prog_cc_g = yes; then
2086   if test "$GCC" = yes; then
2087     CFLAGS="-g -O2"
2088   else
2089     CFLAGS="-g"
2090   fi
2091 else
2092   if test "$GCC" = yes; then
2093     CFLAGS="-O2"
2094   else
2095     CFLAGS=
2096   fi
2097 fi
2098 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2099 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2100 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2101   echo $ECHO_N "(cached) $ECHO_C" >&6
2102 else
2103   ac_cv_prog_cc_stdc=no
2104 ac_save_CC=$CC
2105 cat >conftest.$ac_ext <<_ACEOF
2106 /* confdefs.h.  */
2107 _ACEOF
2108 cat confdefs.h >>conftest.$ac_ext
2109 cat >>conftest.$ac_ext <<_ACEOF
2110 /* end confdefs.h.  */
2111 #include <stdarg.h>
2112 #include <stdio.h>
2113 #include <sys/types.h>
2114 #include <sys/stat.h>
2115 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2116 struct buf { int x; };
2117 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2118 static char *e (p, i)
2119      char **p;
2120      int i;
2121 {
2122   return p[i];
2123 }
2124 static char *f (char * (*g) (char **, int), char **p, ...)
2125 {
2126   char *s;
2127   va_list v;
2128   va_start (v,p);
2129   s = g (p, va_arg (v,int));
2130   va_end (v);
2131   return s;
2132 }
2133
2134 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2135    function prototypes and stuff, but not '\xHH' hex character constants.
2136    These don't provoke an error unfortunately, instead are silently treated
2137    as 'x'.  The following induces an error, until -std1 is added to get
2138    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2139    array size at least.  It's necessary to write '\x00'==0 to get something
2140    that's true only with -std1.  */
2141 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2142
2143 int test (int i, double x);
2144 struct s1 {int (*f) (int a);};
2145 struct s2 {int (*f) (double a);};
2146 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2147 int argc;
2148 char **argv;
2149 int
2150 main ()
2151 {
2152 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2153   ;
2154   return 0;
2155 }
2156 _ACEOF
2157 # Don't try gcc -ansi; that turns off useful extensions and
2158 # breaks some systems' header files.
2159 # AIX                   -qlanglvl=ansi
2160 # Ultrix and OSF/1      -std1
2161 # HP-UX 10.20 and later -Ae
2162 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2163 # SVR4                  -Xc -D__EXTENSIONS__
2164 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2165 do
2166   CC="$ac_save_CC $ac_arg"
2167   rm -f conftest.$ac_objext
2168 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2169   (eval $ac_compile) 2>conftest.er1
2170   ac_status=$?
2171   grep -v '^ *+' conftest.er1 >conftest.err
2172   rm -f conftest.er1
2173   cat conftest.err >&5
2174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2175   (exit $ac_status); } &&
2176          { ac_try='test -z "$ac_c_werror_flag"
2177                          || test ! -s conftest.err'
2178   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2179   (eval $ac_try) 2>&5
2180   ac_status=$?
2181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2182   (exit $ac_status); }; } &&
2183          { ac_try='test -s conftest.$ac_objext'
2184   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2185   (eval $ac_try) 2>&5
2186   ac_status=$?
2187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2188   (exit $ac_status); }; }; then
2189   ac_cv_prog_cc_stdc=$ac_arg
2190 break
2191 else
2192   echo "$as_me: failed program was:" >&5
2193 sed 's/^/| /' conftest.$ac_ext >&5
2194
2195 fi
2196 rm -f conftest.err conftest.$ac_objext
2197 done
2198 rm -f conftest.$ac_ext conftest.$ac_objext
2199 CC=$ac_save_CC
2200
2201 fi
2202
2203 case "x$ac_cv_prog_cc_stdc" in
2204   x|xno)
2205     echo "$as_me:$LINENO: result: none needed" >&5
2206 echo "${ECHO_T}none needed" >&6 ;;
2207   *)
2208     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2209 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2210     CC="$CC $ac_cv_prog_cc_stdc" ;;
2211 esac
2212
2213 # Some people use a C++ compiler to compile C.  Since we use `exit',
2214 # in C++ we need to declare it.  In case someone uses the same compiler
2215 # for both compiling C and C++ we need to have the C++ compiler decide
2216 # the declaration of exit, since it's the most demanding environment.
2217 cat >conftest.$ac_ext <<_ACEOF
2218 #ifndef __cplusplus
2219   choke me
2220 #endif
2221 _ACEOF
2222 rm -f conftest.$ac_objext
2223 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2224   (eval $ac_compile) 2>conftest.er1
2225   ac_status=$?
2226   grep -v '^ *+' conftest.er1 >conftest.err
2227   rm -f conftest.er1
2228   cat conftest.err >&5
2229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2230   (exit $ac_status); } &&
2231          { ac_try='test -z "$ac_c_werror_flag"
2232                          || test ! -s conftest.err'
2233   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2234   (eval $ac_try) 2>&5
2235   ac_status=$?
2236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2237   (exit $ac_status); }; } &&
2238          { ac_try='test -s conftest.$ac_objext'
2239   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2240   (eval $ac_try) 2>&5
2241   ac_status=$?
2242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2243   (exit $ac_status); }; }; then
2244   for ac_declaration in \
2245    '' \
2246    'extern "C" void std::exit (int) throw (); using std::exit;' \
2247    'extern "C" void std::exit (int); using std::exit;' \
2248    'extern "C" void exit (int) throw ();' \
2249    'extern "C" void exit (int);' \
2250    'void exit (int);'
2251 do
2252   cat >conftest.$ac_ext <<_ACEOF
2253 /* confdefs.h.  */
2254 _ACEOF
2255 cat confdefs.h >>conftest.$ac_ext
2256 cat >>conftest.$ac_ext <<_ACEOF
2257 /* end confdefs.h.  */
2258 $ac_declaration
2259 #include <stdlib.h>
2260 int
2261 main ()
2262 {
2263 exit (42);
2264   ;
2265   return 0;
2266 }
2267 _ACEOF
2268 rm -f conftest.$ac_objext
2269 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2270   (eval $ac_compile) 2>conftest.er1
2271   ac_status=$?
2272   grep -v '^ *+' conftest.er1 >conftest.err
2273   rm -f conftest.er1
2274   cat conftest.err >&5
2275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2276   (exit $ac_status); } &&
2277          { ac_try='test -z "$ac_c_werror_flag"
2278                          || test ! -s conftest.err'
2279   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2280   (eval $ac_try) 2>&5
2281   ac_status=$?
2282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2283   (exit $ac_status); }; } &&
2284          { ac_try='test -s conftest.$ac_objext'
2285   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2286   (eval $ac_try) 2>&5
2287   ac_status=$?
2288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2289   (exit $ac_status); }; }; then
2290   :
2291 else
2292   echo "$as_me: failed program was:" >&5
2293 sed 's/^/| /' conftest.$ac_ext >&5
2294
2295 continue
2296 fi
2297 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2298   cat >conftest.$ac_ext <<_ACEOF
2299 /* confdefs.h.  */
2300 _ACEOF
2301 cat confdefs.h >>conftest.$ac_ext
2302 cat >>conftest.$ac_ext <<_ACEOF
2303 /* end confdefs.h.  */
2304 $ac_declaration
2305 int
2306 main ()
2307 {
2308 exit (42);
2309   ;
2310   return 0;
2311 }
2312 _ACEOF
2313 rm -f conftest.$ac_objext
2314 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2315   (eval $ac_compile) 2>conftest.er1
2316   ac_status=$?
2317   grep -v '^ *+' conftest.er1 >conftest.err
2318   rm -f conftest.er1
2319   cat conftest.err >&5
2320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2321   (exit $ac_status); } &&
2322          { ac_try='test -z "$ac_c_werror_flag"
2323                          || test ! -s conftest.err'
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); }; } &&
2329          { ac_try='test -s conftest.$ac_objext'
2330   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2331   (eval $ac_try) 2>&5
2332   ac_status=$?
2333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2334   (exit $ac_status); }; }; then
2335   break
2336 else
2337   echo "$as_me: failed program was:" >&5
2338 sed 's/^/| /' conftest.$ac_ext >&5
2339
2340 fi
2341 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2342 done
2343 rm -f conftest*
2344 if test -n "$ac_declaration"; then
2345   echo '#ifdef __cplusplus' >>confdefs.h
2346   echo $ac_declaration      >>confdefs.h
2347   echo '#endif'             >>confdefs.h
2348 fi
2349
2350 else
2351   echo "$as_me: failed program was:" >&5
2352 sed 's/^/| /' conftest.$ac_ext >&5
2353
2354 fi
2355 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2356 ac_ext=c
2357 ac_cpp='$CPP $CPPFLAGS'
2358 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2359 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2360 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2361
2362
2363 echo "$as_me:$LINENO: checking for library containing strerror" >&5
2364 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2365 if test "${ac_cv_search_strerror+set}" = set; then
2366   echo $ECHO_N "(cached) $ECHO_C" >&6
2367 else
2368   ac_func_search_save_LIBS=$LIBS
2369 ac_cv_search_strerror=no
2370 cat >conftest.$ac_ext <<_ACEOF
2371 /* confdefs.h.  */
2372 _ACEOF
2373 cat confdefs.h >>conftest.$ac_ext
2374 cat >>conftest.$ac_ext <<_ACEOF
2375 /* end confdefs.h.  */
2376
2377 /* Override any gcc2 internal prototype to avoid an error.  */
2378 #ifdef __cplusplus
2379 extern "C"
2380 #endif
2381 /* We use char because int might match the return type of a gcc2
2382    builtin and then its argument prototype would still apply.  */
2383 char strerror ();
2384 int
2385 main ()
2386 {
2387 strerror ();
2388   ;
2389   return 0;
2390 }
2391 _ACEOF
2392 rm -f conftest.$ac_objext conftest$ac_exeext
2393 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2394   (eval $ac_link) 2>conftest.er1
2395   ac_status=$?
2396   grep -v '^ *+' conftest.er1 >conftest.err
2397   rm -f conftest.er1
2398   cat conftest.err >&5
2399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2400   (exit $ac_status); } &&
2401          { ac_try='test -z "$ac_c_werror_flag"
2402                          || test ! -s conftest.err'
2403   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2404   (eval $ac_try) 2>&5
2405   ac_status=$?
2406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2407   (exit $ac_status); }; } &&
2408          { ac_try='test -s conftest$ac_exeext'
2409   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2410   (eval $ac_try) 2>&5
2411   ac_status=$?
2412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2413   (exit $ac_status); }; }; then
2414   ac_cv_search_strerror="none required"
2415 else
2416   echo "$as_me: failed program was:" >&5
2417 sed 's/^/| /' conftest.$ac_ext >&5
2418
2419 fi
2420 rm -f conftest.err conftest.$ac_objext \
2421       conftest$ac_exeext conftest.$ac_ext
2422 if test "$ac_cv_search_strerror" = no; then
2423   for ac_lib in cposix; do
2424     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
2425     cat >conftest.$ac_ext <<_ACEOF
2426 /* confdefs.h.  */
2427 _ACEOF
2428 cat confdefs.h >>conftest.$ac_ext
2429 cat >>conftest.$ac_ext <<_ACEOF
2430 /* end confdefs.h.  */
2431
2432 /* Override any gcc2 internal prototype to avoid an error.  */
2433 #ifdef __cplusplus
2434 extern "C"
2435 #endif
2436 /* We use char because int might match the return type of a gcc2
2437    builtin and then its argument prototype would still apply.  */
2438 char strerror ();
2439 int
2440 main ()
2441 {
2442 strerror ();
2443   ;
2444   return 0;
2445 }
2446 _ACEOF
2447 rm -f conftest.$ac_objext conftest$ac_exeext
2448 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2449   (eval $ac_link) 2>conftest.er1
2450   ac_status=$?
2451   grep -v '^ *+' conftest.er1 >conftest.err
2452   rm -f conftest.er1
2453   cat conftest.err >&5
2454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2455   (exit $ac_status); } &&
2456          { ac_try='test -z "$ac_c_werror_flag"
2457                          || test ! -s conftest.err'
2458   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2459   (eval $ac_try) 2>&5
2460   ac_status=$?
2461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2462   (exit $ac_status); }; } &&
2463          { ac_try='test -s conftest$ac_exeext'
2464   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2465   (eval $ac_try) 2>&5
2466   ac_status=$?
2467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2468   (exit $ac_status); }; }; then
2469   ac_cv_search_strerror="-l$ac_lib"
2470 break
2471 else
2472   echo "$as_me: failed program was:" >&5
2473 sed 's/^/| /' conftest.$ac_ext >&5
2474
2475 fi
2476 rm -f conftest.err conftest.$ac_objext \
2477       conftest$ac_exeext conftest.$ac_ext
2478   done
2479 fi
2480 LIBS=$ac_func_search_save_LIBS
2481 fi
2482 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2483 echo "${ECHO_T}$ac_cv_search_strerror" >&6
2484 if test "$ac_cv_search_strerror" != no; then
2485   test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
2486
2487 fi
2488
2489
2490 am__api_version="1.9"
2491 # Find a good install program.  We prefer a C program (faster),
2492 # so one script is as good as another.  But avoid the broken or
2493 # incompatible versions:
2494 # SysV /etc/install, /usr/sbin/install
2495 # SunOS /usr/etc/install
2496 # IRIX /sbin/install
2497 # AIX /bin/install
2498 # AmigaOS /C/install, which installs bootblocks on floppy discs
2499 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2500 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2501 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2502 # OS/2's system install, which has a completely different semantic
2503 # ./install, which can be erroneously created by make from ./install.sh.
2504 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2505 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2506 if test -z "$INSTALL"; then
2507 if test "${ac_cv_path_install+set}" = set; then
2508   echo $ECHO_N "(cached) $ECHO_C" >&6
2509 else
2510   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2511 for as_dir in $PATH
2512 do
2513   IFS=$as_save_IFS
2514   test -z "$as_dir" && as_dir=.
2515   # Account for people who put trailing slashes in PATH elements.
2516 case $as_dir/ in
2517   ./ | .// | /cC/* | \
2518   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2519   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2520   /usr/ucb/* ) ;;
2521   *)
2522     # OSF1 and SCO ODT 3.0 have their own names for install.
2523     # Don't use installbsd from OSF since it installs stuff as root
2524     # by default.
2525     for ac_prog in ginstall scoinst install; do
2526       for ac_exec_ext in '' $ac_executable_extensions; do
2527         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2528           if test $ac_prog = install &&
2529             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2530             # AIX install.  It has an incompatible calling convention.
2531             :
2532           elif test $ac_prog = install &&
2533             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2534             # program-specific install script used by HP pwplus--don't use.
2535             :
2536           else
2537             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2538             break 3
2539           fi
2540         fi
2541       done
2542     done
2543     ;;
2544 esac
2545 done
2546
2547
2548 fi
2549   if test "${ac_cv_path_install+set}" = set; then
2550     INSTALL=$ac_cv_path_install
2551   else
2552     # As a last resort, use the slow shell script.  We don't cache a
2553     # path for INSTALL within a source directory, because that will
2554     # break other packages using the cache if that directory is
2555     # removed, or if the path is relative.
2556     INSTALL=$ac_install_sh
2557   fi
2558 fi
2559 echo "$as_me:$LINENO: result: $INSTALL" >&5
2560 echo "${ECHO_T}$INSTALL" >&6
2561
2562 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2563 # It thinks the first close brace ends the variable substitution.
2564 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2565
2566 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2567
2568 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2569
2570 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2571 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
2572 # Just in case
2573 sleep 1
2574 echo timestamp > conftest.file
2575 # Do `set' in a subshell so we don't clobber the current shell's
2576 # arguments.  Must try -L first in case configure is actually a
2577 # symlink; some systems play weird games with the mod time of symlinks
2578 # (eg FreeBSD returns the mod time of the symlink's containing
2579 # directory).
2580 if (
2581    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2582    if test "$*" = "X"; then
2583       # -L didn't work.
2584       set X `ls -t $srcdir/configure conftest.file`
2585    fi
2586    rm -f conftest.file
2587    if test "$*" != "X $srcdir/configure conftest.file" \
2588       && test "$*" != "X conftest.file $srcdir/configure"; then
2589
2590       # If neither matched, then we have a broken ls.  This can happen
2591       # if, for instance, CONFIG_SHELL is bash and it inherits a
2592       # broken ls alias from the environment.  This has actually
2593       # happened.  Such a system could not be considered "sane".
2594       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2595 alias in your environment" >&5
2596 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2597 alias in your environment" >&2;}
2598    { (exit 1); exit 1; }; }
2599    fi
2600
2601    test "$2" = conftest.file
2602    )
2603 then
2604    # Ok.
2605    :
2606 else
2607    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2608 Check your system clock" >&5
2609 echo "$as_me: error: newly created file is older than distributed files!
2610 Check your system clock" >&2;}
2611    { (exit 1); exit 1; }; }
2612 fi
2613 echo "$as_me:$LINENO: result: yes" >&5
2614 echo "${ECHO_T}yes" >&6
2615 test "$program_prefix" != NONE &&
2616   program_transform_name="s,^,$program_prefix,;$program_transform_name"
2617 # Use a double $ so make ignores it.
2618 test "$program_suffix" != NONE &&
2619   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2620 # Double any \ or $.  echo might interpret backslashes.
2621 # By default was `s,x,x', remove it if useless.
2622 cat <<\_ACEOF >conftest.sed
2623 s/[\\$]/&&/g;s/;s,x,x,$//
2624 _ACEOF
2625 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2626 rm conftest.sed
2627
2628 # expand $ac_aux_dir to an absolute path
2629 am_aux_dir=`cd $ac_aux_dir && pwd`
2630
2631 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2632 # Use eval to expand $SHELL
2633 if eval "$MISSING --run true"; then
2634   am_missing_run="$MISSING --run "
2635 else
2636   am_missing_run=
2637   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2638 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2639 fi
2640
2641 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2642   # We used to keeping the `.' as first argument, in order to
2643   # allow $(mkdir_p) to be used without argument.  As in
2644   #   $(mkdir_p) $(somedir)
2645   # where $(somedir) is conditionally defined.  However this is wrong
2646   # for two reasons:
2647   #  1. if the package is installed by a user who cannot write `.'
2648   #     make install will fail,
2649   #  2. the above comment should most certainly read
2650   #     $(mkdir_p) $(DESTDIR)$(somedir)
2651   #     so it does not work when $(somedir) is undefined and
2652   #     $(DESTDIR) is not.
2653   #  To support the latter case, we have to write
2654   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2655   #  so the `.' trick is pointless.
2656   mkdir_p='mkdir -p --'
2657 else
2658   # On NextStep and OpenStep, the `mkdir' command does not
2659   # recognize any option.  It will interpret all options as
2660   # directories to create, and then abort because `.' already
2661   # exists.
2662   for d in ./-p ./--version;
2663   do
2664     test -d $d && rmdir $d
2665   done
2666   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2667   if test -f "$ac_aux_dir/mkinstalldirs"; then
2668     mkdir_p='$(mkinstalldirs)'
2669   else
2670     mkdir_p='$(install_sh) -d'
2671   fi
2672 fi
2673
2674 for ac_prog in gawk mawk nawk awk
2675 do
2676   # Extract the first word of "$ac_prog", so it can be a program name with args.
2677 set dummy $ac_prog; ac_word=$2
2678 echo "$as_me:$LINENO: checking for $ac_word" >&5
2679 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2680 if test "${ac_cv_prog_AWK+set}" = set; then
2681   echo $ECHO_N "(cached) $ECHO_C" >&6
2682 else
2683   if test -n "$AWK"; then
2684   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2685 else
2686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2687 for as_dir in $PATH
2688 do
2689   IFS=$as_save_IFS
2690   test -z "$as_dir" && as_dir=.
2691   for ac_exec_ext in '' $ac_executable_extensions; do
2692   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2693     ac_cv_prog_AWK="$ac_prog"
2694     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2695     break 2
2696   fi
2697 done
2698 done
2699
2700 fi
2701 fi
2702 AWK=$ac_cv_prog_AWK
2703 if test -n "$AWK"; then
2704   echo "$as_me:$LINENO: result: $AWK" >&5
2705 echo "${ECHO_T}$AWK" >&6
2706 else
2707   echo "$as_me:$LINENO: result: no" >&5
2708 echo "${ECHO_T}no" >&6
2709 fi
2710
2711   test -n "$AWK" && break
2712 done
2713
2714 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2715 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2716 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2717 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2718   echo $ECHO_N "(cached) $ECHO_C" >&6
2719 else
2720   cat >conftest.make <<\_ACEOF
2721 all:
2722         @echo 'ac_maketemp="$(MAKE)"'
2723 _ACEOF
2724 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2725 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2726 if test -n "$ac_maketemp"; then
2727   eval ac_cv_prog_make_${ac_make}_set=yes
2728 else
2729   eval ac_cv_prog_make_${ac_make}_set=no
2730 fi
2731 rm -f conftest.make
2732 fi
2733 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2734   echo "$as_me:$LINENO: result: yes" >&5
2735 echo "${ECHO_T}yes" >&6
2736   SET_MAKE=
2737 else
2738   echo "$as_me:$LINENO: result: no" >&5
2739 echo "${ECHO_T}no" >&6
2740   SET_MAKE="MAKE=${MAKE-make}"
2741 fi
2742
2743 rm -rf .tst 2>/dev/null
2744 mkdir .tst 2>/dev/null
2745 if test -d .tst; then
2746   am__leading_dot=.
2747 else
2748   am__leading_dot=_
2749 fi
2750 rmdir .tst 2>/dev/null
2751
2752 DEPDIR="${am__leading_dot}deps"
2753
2754           ac_config_commands="$ac_config_commands depfiles"
2755
2756
2757 am_make=${MAKE-make}
2758 cat > confinc << 'END'
2759 am__doit:
2760         @echo done
2761 .PHONY: am__doit
2762 END
2763 # If we don't find an include directive, just comment out the code.
2764 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2765 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2766 am__include="#"
2767 am__quote=
2768 _am_result=none
2769 # First try GNU make style include.
2770 echo "include confinc" > confmf
2771 # We grep out `Entering directory' and `Leaving directory'
2772 # messages which can occur if `w' ends up in MAKEFLAGS.
2773 # In particular we don't look at `^make:' because GNU make might
2774 # be invoked under some other name (usually "gmake"), in which
2775 # case it prints its new name instead of `make'.
2776 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2777    am__include=include
2778    am__quote=
2779    _am_result=GNU
2780 fi
2781 # Now try BSD make style include.
2782 if test "$am__include" = "#"; then
2783    echo '.include "confinc"' > confmf
2784    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2785       am__include=.include
2786       am__quote="\""
2787       _am_result=BSD
2788    fi
2789 fi
2790
2791
2792 echo "$as_me:$LINENO: result: $_am_result" >&5
2793 echo "${ECHO_T}$_am_result" >&6
2794 rm -f confinc confmf
2795
2796 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2797 if test "${enable_dependency_tracking+set}" = set; then
2798   enableval="$enable_dependency_tracking"
2799
2800 fi;
2801 if test "x$enable_dependency_tracking" != xno; then
2802   am_depcomp="$ac_aux_dir/depcomp"
2803   AMDEPBACKSLASH='\'
2804 fi
2805
2806
2807 if test "x$enable_dependency_tracking" != xno; then
2808   AMDEP_TRUE=
2809   AMDEP_FALSE='#'
2810 else
2811   AMDEP_TRUE='#'
2812   AMDEP_FALSE=
2813 fi
2814
2815
2816
2817 # test to see if srcdir already configured
2818 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2819    test -f $srcdir/config.status; then
2820   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2821 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2822    { (exit 1); exit 1; }; }
2823 fi
2824
2825 # test whether we have cygpath
2826 if test -z "$CYGPATH_W"; then
2827   if (cygpath --version) >/dev/null 2>/dev/null; then
2828     CYGPATH_W='cygpath -w'
2829   else
2830     CYGPATH_W=echo
2831   fi
2832 fi
2833
2834
2835 # Define the identity of the package.
2836  PACKAGE=bfd
2837  VERSION=2.15.94
2838
2839
2840 cat >>confdefs.h <<_ACEOF
2841 #define PACKAGE "$PACKAGE"
2842 _ACEOF
2843
2844
2845 cat >>confdefs.h <<_ACEOF
2846 #define VERSION "$VERSION"
2847 _ACEOF
2848
2849 # Some tools Automake needs.
2850
2851 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2852
2853
2854 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2855
2856
2857 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2858
2859
2860 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2861
2862
2863 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2864
2865 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2866
2867 # Installed binaries are usually stripped using `strip' when the user
2868 # run `make install-strip'.  However `strip' might not be the right
2869 # tool to use in cross-compilation environments, therefore Automake
2870 # will honor the `STRIP' environment variable to overrule this program.
2871 if test "$cross_compiling" != no; then
2872   if test -n "$ac_tool_prefix"; then
2873   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2874 set dummy ${ac_tool_prefix}strip; ac_word=$2
2875 echo "$as_me:$LINENO: checking for $ac_word" >&5
2876 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2877 if test "${ac_cv_prog_STRIP+set}" = set; then
2878   echo $ECHO_N "(cached) $ECHO_C" >&6
2879 else
2880   if test -n "$STRIP"; then
2881   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2882 else
2883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2884 for as_dir in $PATH
2885 do
2886   IFS=$as_save_IFS
2887   test -z "$as_dir" && as_dir=.
2888   for ac_exec_ext in '' $ac_executable_extensions; do
2889   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2890     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2891     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2892     break 2
2893   fi
2894 done
2895 done
2896
2897 fi
2898 fi
2899 STRIP=$ac_cv_prog_STRIP
2900 if test -n "$STRIP"; then
2901   echo "$as_me:$LINENO: result: $STRIP" >&5
2902 echo "${ECHO_T}$STRIP" >&6
2903 else
2904   echo "$as_me:$LINENO: result: no" >&5
2905 echo "${ECHO_T}no" >&6
2906 fi
2907
2908 fi
2909 if test -z "$ac_cv_prog_STRIP"; then
2910   ac_ct_STRIP=$STRIP
2911   # Extract the first word of "strip", so it can be a program name with args.
2912 set dummy strip; ac_word=$2
2913 echo "$as_me:$LINENO: checking for $ac_word" >&5
2914 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2915 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2916   echo $ECHO_N "(cached) $ECHO_C" >&6
2917 else
2918   if test -n "$ac_ct_STRIP"; then
2919   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2920 else
2921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2922 for as_dir in $PATH
2923 do
2924   IFS=$as_save_IFS
2925   test -z "$as_dir" && as_dir=.
2926   for ac_exec_ext in '' $ac_executable_extensions; do
2927   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2928     ac_cv_prog_ac_ct_STRIP="strip"
2929     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2930     break 2
2931   fi
2932 done
2933 done
2934
2935   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2936 fi
2937 fi
2938 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2939 if test -n "$ac_ct_STRIP"; then
2940   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2941 echo "${ECHO_T}$ac_ct_STRIP" >&6
2942 else
2943   echo "$as_me:$LINENO: result: no" >&5
2944 echo "${ECHO_T}no" >&6
2945 fi
2946
2947   STRIP=$ac_ct_STRIP
2948 else
2949   STRIP="$ac_cv_prog_STRIP"
2950 fi
2951
2952 fi
2953 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2954
2955 # We need awk for the "check" target.  The system "awk" is bad on
2956 # some platforms.
2957 # Always define AMTAR for backward compatibility.
2958
2959 AMTAR=${AMTAR-"${am_missing_run}tar"}
2960
2961 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2962
2963
2964
2965
2966 depcc="$CC"   am_compiler_list=
2967
2968 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2969 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2970 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2971   echo $ECHO_N "(cached) $ECHO_C" >&6
2972 else
2973   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2974   # We make a subdir and do the tests there.  Otherwise we can end up
2975   # making bogus files that we don't know about and never remove.  For
2976   # instance it was reported that on HP-UX the gcc test will end up
2977   # making a dummy file named `D' -- because `-MD' means `put the output
2978   # in D'.
2979   mkdir conftest.dir
2980   # Copy depcomp to subdir because otherwise we won't find it if we're
2981   # using a relative directory.
2982   cp "$am_depcomp" conftest.dir
2983   cd conftest.dir
2984   # We will build objects and dependencies in a subdirectory because
2985   # it helps to detect inapplicable dependency modes.  For instance
2986   # both Tru64's cc and ICC support -MD to output dependencies as a
2987   # side effect of compilation, but ICC will put the dependencies in
2988   # the current directory while Tru64 will put them in the object
2989   # directory.
2990   mkdir sub
2991
2992   am_cv_CC_dependencies_compiler_type=none
2993   if test "$am_compiler_list" = ""; then
2994      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2995   fi
2996   for depmode in $am_compiler_list; do
2997     # Setup a source with many dependencies, because some compilers
2998     # like to wrap large dependency lists on column 80 (with \), and
2999     # we should not choose a depcomp mode which is confused by this.
3000     #
3001     # We need to recreate these files for each test, as the compiler may
3002     # overwrite some of them when testing with obscure command lines.
3003     # This happens at least with the AIX C compiler.
3004     : > sub/conftest.c
3005     for i in 1 2 3 4 5 6; do
3006       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3007       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3008       # Solaris 8's {/usr,}/bin/sh.
3009       touch sub/conftst$i.h
3010     done
3011     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3012
3013     case $depmode in
3014     nosideeffect)
3015       # after this tag, mechanisms are not by side-effect, so they'll
3016       # only be used when explicitly requested
3017       if test "x$enable_dependency_tracking" = xyes; then
3018         continue
3019       else
3020         break
3021       fi
3022       ;;
3023     none) break ;;
3024     esac
3025     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3026     # mode.  It turns out that the SunPro C++ compiler does not properly
3027     # handle `-M -o', and we need to detect this.
3028     if depmode=$depmode \
3029        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3030        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3031        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3032          >/dev/null 2>conftest.err &&
3033        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3034        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3035        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3036       # icc doesn't choke on unknown options, it will just issue warnings
3037       # or remarks (even with -Werror).  So we grep stderr for any message
3038       # that says an option was ignored or not supported.
3039       # When given -MP, icc 7.0 and 7.1 complain thusly:
3040       #   icc: Command line warning: ignoring option '-M'; no argument required
3041       # The diagnosis changed in icc 8.0:
3042       #   icc: Command line remark: option '-MP' not supported
3043       if (grep 'ignoring option' conftest.err ||
3044           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3045         am_cv_CC_dependencies_compiler_type=$depmode
3046         break
3047       fi
3048     fi
3049   done
3050
3051   cd ..
3052   rm -rf conftest.dir
3053 else
3054   am_cv_CC_dependencies_compiler_type=none
3055 fi
3056
3057 fi
3058 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3059 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3060 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3061
3062
3063
3064 if
3065   test "x$enable_dependency_tracking" != xno \
3066   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3067   am__fastdepCC_TRUE=
3068   am__fastdepCC_FALSE='#'
3069 else
3070   am__fastdepCC_TRUE='#'
3071   am__fastdepCC_FALSE=
3072 fi
3073
3074
3075
3076
3077 if test -n "$ac_tool_prefix"; then
3078   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3079 set dummy ${ac_tool_prefix}ar; ac_word=$2
3080 echo "$as_me:$LINENO: checking for $ac_word" >&5
3081 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3082 if test "${ac_cv_prog_AR+set}" = set; then
3083   echo $ECHO_N "(cached) $ECHO_C" >&6
3084 else
3085   if test -n "$AR"; then
3086   ac_cv_prog_AR="$AR" # Let the user override the test.
3087 else
3088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3089 for as_dir in $PATH
3090 do
3091   IFS=$as_save_IFS
3092   test -z "$as_dir" && as_dir=.
3093   for ac_exec_ext in '' $ac_executable_extensions; do
3094   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3095     ac_cv_prog_AR="${ac_tool_prefix}ar"
3096     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3097     break 2
3098   fi
3099 done
3100 done
3101
3102 fi
3103 fi
3104 AR=$ac_cv_prog_AR
3105 if test -n "$AR"; then
3106   echo "$as_me:$LINENO: result: $AR" >&5
3107 echo "${ECHO_T}$AR" >&6
3108 else
3109   echo "$as_me:$LINENO: result: no" >&5
3110 echo "${ECHO_T}no" >&6
3111 fi
3112
3113 fi
3114 if test -z "$ac_cv_prog_AR"; then
3115   ac_ct_AR=$AR
3116   # Extract the first word of "ar", so it can be a program name with args.
3117 set dummy ar; ac_word=$2
3118 echo "$as_me:$LINENO: checking for $ac_word" >&5
3119 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3120 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3121   echo $ECHO_N "(cached) $ECHO_C" >&6
3122 else
3123   if test -n "$ac_ct_AR"; then
3124   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3125 else
3126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3127 for as_dir in $PATH
3128 do
3129   IFS=$as_save_IFS
3130   test -z "$as_dir" && as_dir=.
3131   for ac_exec_ext in '' $ac_executable_extensions; do
3132   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3133     ac_cv_prog_ac_ct_AR="ar"
3134     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3135     break 2
3136   fi
3137 done
3138 done
3139
3140 fi
3141 fi
3142 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3143 if test -n "$ac_ct_AR"; then
3144   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3145 echo "${ECHO_T}$ac_ct_AR" >&6
3146 else
3147   echo "$as_me:$LINENO: result: no" >&5
3148 echo "${ECHO_T}no" >&6
3149 fi
3150
3151   AR=$ac_ct_AR
3152 else
3153   AR="$ac_cv_prog_AR"
3154 fi
3155
3156 if test -n "$ac_tool_prefix"; then
3157   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3158 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3159 echo "$as_me:$LINENO: checking for $ac_word" >&5
3160 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3161 if test "${ac_cv_prog_RANLIB+set}" = set; then
3162   echo $ECHO_N "(cached) $ECHO_C" >&6
3163 else
3164   if test -n "$RANLIB"; then
3165   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3166 else
3167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3168 for as_dir in $PATH
3169 do
3170   IFS=$as_save_IFS
3171   test -z "$as_dir" && as_dir=.
3172   for ac_exec_ext in '' $ac_executable_extensions; do
3173   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3174     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3175     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3176     break 2
3177   fi
3178 done
3179 done
3180
3181 fi
3182 fi
3183 RANLIB=$ac_cv_prog_RANLIB
3184 if test -n "$RANLIB"; then
3185   echo "$as_me:$LINENO: result: $RANLIB" >&5
3186 echo "${ECHO_T}$RANLIB" >&6
3187 else
3188   echo "$as_me:$LINENO: result: no" >&5
3189 echo "${ECHO_T}no" >&6
3190 fi
3191
3192 fi
3193 if test -z "$ac_cv_prog_RANLIB"; then
3194   ac_ct_RANLIB=$RANLIB
3195   # Extract the first word of "ranlib", so it can be a program name with args.
3196 set dummy ranlib; ac_word=$2
3197 echo "$as_me:$LINENO: checking for $ac_word" >&5
3198 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3199 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3200   echo $ECHO_N "(cached) $ECHO_C" >&6
3201 else
3202   if test -n "$ac_ct_RANLIB"; then
3203   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3204 else
3205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3206 for as_dir in $PATH
3207 do
3208   IFS=$as_save_IFS
3209   test -z "$as_dir" && as_dir=.
3210   for ac_exec_ext in '' $ac_executable_extensions; do
3211   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3212     ac_cv_prog_ac_ct_RANLIB="ranlib"
3213     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3214     break 2
3215   fi
3216 done
3217 done
3218
3219   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3220 fi
3221 fi
3222 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3223 if test -n "$ac_ct_RANLIB"; then
3224   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3225 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3226 else
3227   echo "$as_me:$LINENO: result: no" >&5
3228 echo "${ECHO_T}no" >&6
3229 fi
3230
3231   RANLIB=$ac_ct_RANLIB
3232 else
3233   RANLIB="$ac_cv_prog_RANLIB"
3234 fi
3235
3236
3237 # Check whether --enable-shared or --disable-shared was given.
3238 if test "${enable_shared+set}" = set; then
3239   enableval="$enable_shared"
3240   p=${PACKAGE-default}
3241 case $enableval in
3242 yes) enable_shared=yes ;;
3243 no) enable_shared=no ;;
3244 *)
3245   enable_shared=no
3246   # Look at the argument we got.  We use all the common list separators.
3247   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3248   for pkg in $enableval; do
3249     if test "X$pkg" = "X$p"; then
3250       enable_shared=yes
3251     fi
3252   done
3253   IFS="$ac_save_ifs"
3254   ;;
3255 esac
3256 else
3257   enable_shared=no
3258 fi;
3259
3260 # Check whether --enable-static or --disable-static was given.
3261 if test "${enable_static+set}" = set; then
3262   enableval="$enable_static"
3263   p=${PACKAGE-default}
3264 case $enableval in
3265 yes) enable_static=yes ;;
3266 no) enable_static=no ;;
3267 *)
3268   enable_static=no
3269   # Look at the argument we got.  We use all the common list separators.
3270   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3271   for pkg in $enableval; do
3272     if test "X$pkg" = "X$p"; then
3273       enable_static=yes
3274     fi
3275   done
3276   IFS="$ac_save_ifs"
3277   ;;
3278 esac
3279 else
3280   enable_static=yes
3281 fi;
3282 # Check whether --enable-fast-install or --disable-fast-install was given.
3283 if test "${enable_fast_install+set}" = set; then
3284   enableval="$enable_fast_install"
3285   p=${PACKAGE-default}
3286 case $enableval in
3287 yes) enable_fast_install=yes ;;
3288 no) enable_fast_install=no ;;
3289 *)
3290   enable_fast_install=no
3291   # Look at the argument we got.  We use all the common list separators.
3292   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3293   for pkg in $enableval; do
3294     if test "X$pkg" = "X$p"; then
3295       enable_fast_install=yes
3296     fi
3297   done
3298   IFS="$ac_save_ifs"
3299   ;;
3300 esac
3301 else
3302   enable_fast_install=yes
3303 fi;
3304
3305 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3306 if test "${with_gnu_ld+set}" = set; then
3307   withval="$with_gnu_ld"
3308   test "$withval" = no || with_gnu_ld=yes
3309 else
3310   with_gnu_ld=no
3311 fi;
3312 ac_prog=ld
3313 if test "$GCC" = yes; then
3314   # Check if gcc -print-prog-name=ld gives a path.
3315   echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3316 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3317   case $host in
3318   *-*-mingw*)
3319     # gcc leaves a trailing carriage return which upsets mingw
3320     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3321   *)
3322     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3323   esac
3324   case $ac_prog in
3325     # Accept absolute paths.
3326     [\\/]* | [A-Za-z]:[\\/]*)
3327       re_direlt='/[^/][^/]*/\.\./'
3328       # Canonicalize the path of ld
3329       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3330       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3331         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3332       done
3333       test -z "$LD" && LD="$ac_prog"
3334       ;;
3335   "")
3336     # If it fails, then pretend we aren't using GCC.
3337     ac_prog=ld
3338     ;;
3339   *)
3340     # If it is relative, then search for the first ld in PATH.
3341     with_gnu_ld=unknown
3342     ;;
3343   esac
3344 elif test "$with_gnu_ld" = yes; then
3345   echo "$as_me:$LINENO: checking for GNU ld" >&5
3346 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3347 else
3348   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3349 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3350 fi
3351 if test "${lt_cv_path_LD+set}" = set; then
3352   echo $ECHO_N "(cached) $ECHO_C" >&6
3353 else
3354   if test -z "$LD"; then
3355   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3356   for ac_dir in $PATH; do
3357     test -z "$ac_dir" && ac_dir=.
3358     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3359       lt_cv_path_LD="$ac_dir/$ac_prog"
3360       # Check to see if the program is GNU ld.  I'd rather use --version,
3361       # but apparently some GNU ld's only accept -v.
3362       # Break only if it was the GNU/non-GNU ld that we prefer.
3363       if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3364         test "$with_gnu_ld" != no && break
3365       else
3366         test "$with_gnu_ld" != yes && break
3367       fi
3368     fi
3369   done
3370   IFS="$ac_save_ifs"
3371 else
3372   lt_cv_path_LD="$LD" # Let the user override the test with a path.
3373 fi
3374 fi
3375
3376 LD="$lt_cv_path_LD"
3377 if test -n "$LD"; then
3378   echo "$as_me:$LINENO: result: $LD" >&5
3379 echo "${ECHO_T}$LD" >&6
3380 else
3381   echo "$as_me:$LINENO: result: no" >&5
3382 echo "${ECHO_T}no" >&6
3383 fi
3384 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3385 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3386    { (exit 1); exit 1; }; }
3387 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3388 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3389 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3390   echo $ECHO_N "(cached) $ECHO_C" >&6
3391 else
3392   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3393 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3394   lt_cv_prog_gnu_ld=yes
3395 else
3396   lt_cv_prog_gnu_ld=no
3397 fi
3398 fi
3399 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3400 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3401 with_gnu_ld=$lt_cv_prog_gnu_ld
3402
3403
3404 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3405 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3406 if test "${lt_cv_ld_reload_flag+set}" = set; then
3407   echo $ECHO_N "(cached) $ECHO_C" >&6
3408 else
3409   lt_cv_ld_reload_flag='-r'
3410 fi
3411 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3412 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3413 reload_flag=$lt_cv_ld_reload_flag
3414 test -n "$reload_flag" && reload_flag=" $reload_flag"
3415
3416 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3417 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3418 if test "${lt_cv_path_NM+set}" = set; then
3419   echo $ECHO_N "(cached) $ECHO_C" >&6
3420 else
3421   if test -n "$NM"; then
3422   # Let the user override the test.
3423   lt_cv_path_NM="$NM"
3424 else
3425   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3426   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3427     test -z "$ac_dir" && ac_dir=.
3428     tmp_nm=$ac_dir/${ac_tool_prefix}nm
3429     if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3430       # Check to see if the nm accepts a BSD-compat flag.
3431       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3432       #   nm: unknown option "B" ignored
3433       # Tru64's nm complains that /dev/null is an invalid object file
3434       if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3435         lt_cv_path_NM="$tmp_nm -B"
3436         break
3437       elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3438         lt_cv_path_NM="$tmp_nm -p"
3439         break
3440       else
3441         lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3442         continue # so that we can try to find one that supports BSD flags
3443       fi
3444     fi
3445   done
3446   IFS="$ac_save_ifs"
3447   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3448 fi
3449 fi
3450
3451 NM="$lt_cv_path_NM"
3452 echo "$as_me:$LINENO: result: $NM" >&5
3453 echo "${ECHO_T}$NM" >&6
3454
3455 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3456 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3457 LN_S=$as_ln_s
3458 if test "$LN_S" = "ln -s"; then
3459   echo "$as_me:$LINENO: result: yes" >&5
3460 echo "${ECHO_T}yes" >&6
3461 else
3462   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3463 echo "${ECHO_T}no, using $LN_S" >&6
3464 fi
3465
3466 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
3467 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
3468 if test "${lt_cv_deplibs_check_method+set}" = set; then
3469   echo $ECHO_N "(cached) $ECHO_C" >&6
3470 else
3471   lt_cv_file_magic_cmd='$MAGIC_CMD'
3472 lt_cv_file_magic_test_file=
3473 lt_cv_deplibs_check_method='unknown'
3474 # Need to set the preceding variable on all platforms that support
3475 # interlibrary dependencies.
3476 # 'none' -- dependencies not supported.
3477 # `unknown' -- same as none, but documents that we really don't know.
3478 # 'pass_all' -- all dependencies passed with no checks.
3479 # 'test_compile' -- check by making test program.
3480 # 'file_magic [regex]' -- check by looking for files in library path
3481 # which responds to the $file_magic_cmd with a given egrep regex.
3482 # If you have `file' or equivalent on your system and you're not sure
3483 # whether `pass_all' will *always* work, you probably want this one.
3484
3485 case $host_os in
3486 aix*)
3487   lt_cv_deplibs_check_method=pass_all
3488   ;;
3489
3490 beos*)
3491   lt_cv_deplibs_check_method=pass_all
3492   ;;
3493
3494 bsdi4*)
3495   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3496   lt_cv_file_magic_cmd='/usr/bin/file -L'
3497   lt_cv_file_magic_test_file=/shlib/libc.so
3498   ;;
3499
3500 cygwin* | mingw* |pw32*)
3501   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3502   lt_cv_file_magic_cmd='$OBJDUMP -f'
3503   ;;
3504
3505 darwin* | rhapsody*)
3506   lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3507   lt_cv_file_magic_cmd='/usr/bin/file -L'
3508   case "$host_os" in
3509   rhapsody* | darwin1.012)
3510     lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
3511     ;;
3512   *) # Darwin 1.3 on
3513     lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3514     ;;
3515   esac
3516   ;;
3517
3518 freebsd* | kfreebsd*-gnu)
3519   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3520     case $host_cpu in
3521     i*86 )
3522       # Not sure whether the presence of OpenBSD here was a mistake.
3523       # Let's accept both of them until this is cleared up.
3524       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3525       lt_cv_file_magic_cmd=/usr/bin/file
3526       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3527       ;;
3528     esac
3529   else
3530     lt_cv_deplibs_check_method=pass_all
3531   fi
3532   ;;
3533
3534 gnu*)
3535   lt_cv_deplibs_check_method=pass_all
3536   ;;
3537
3538 hpux10.20*|hpux11*)
3539   case $host_cpu in
3540   hppa*)
3541     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3542     lt_cv_file_magic_cmd=/usr/bin/file
3543     lt_cv_file_magic_test_file=/usr/lib/libc.sl
3544     ;;
3545   ia64*)
3546     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3547     lt_cv_file_magic_cmd=/usr/bin/file
3548     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3549     ;;
3550   esac
3551   ;;
3552
3553 irix5* | irix6*)
3554   case $host_os in
3555   irix5*)
3556     # this will be overridden with pass_all, but let us keep it just in case
3557     lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3558     ;;
3559   *)
3560     case $LD in
3561     *-32|*"-32 ") libmagic=32-bit;;
3562     *-n32|*"-n32 ") libmagic=N32;;
3563     *-64|*"-64 ") libmagic=64-bit;;
3564     *) libmagic=never-match;;
3565     esac
3566     # this will be overridden with pass_all, but let us keep it just in case
3567     lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3568     ;;
3569   esac
3570   lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3571   lt_cv_deplibs_check_method=pass_all
3572   ;;
3573
3574 # This must be Linux ELF.
3575 linux-gnu*)
3576   case $host_cpu in
3577   alpha* | mips* | hppa* | i*86 | powerpc* | sparc* | ia64* )
3578     lt_cv_deplibs_check_method=pass_all ;;
3579   *)
3580     # glibc up to 2.1.1 does not perform some relocations on ARM
3581     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3582   esac
3583   lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3584   ;;
3585
3586 netbsd* | knetbsd*-gnu)
3587   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3588     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3589   else
3590     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3591   fi
3592   ;;
3593
3594 newsos6)
3595   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3596   lt_cv_file_magic_cmd=/usr/bin/file
3597   lt_cv_file_magic_test_file=/usr/lib/libnls.so
3598   ;;
3599
3600 osf3* | osf4* | osf5*)
3601   # this will be overridden with pass_all, but let us keep it just in case
3602   lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3603   lt_cv_file_magic_test_file=/shlib/libc.so
3604   lt_cv_deplibs_check_method=pass_all
3605   ;;
3606
3607 sco3.2v5*)
3608   lt_cv_deplibs_check_method=pass_all
3609   ;;
3610
3611 solaris*)
3612   lt_cv_deplibs_check_method=pass_all
3613   lt_cv_file_magic_test_file=/lib/libc.so
3614   ;;
3615
3616 sysv5uw[78]* | sysv4*uw2*)
3617   lt_cv_deplibs_check_method=pass_all
3618   ;;
3619
3620 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3621   case $host_vendor in
3622   ncr)
3623     lt_cv_deplibs_check_method=pass_all
3624     ;;
3625   motorola)
3626     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]'
3627     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3628     ;;
3629   esac
3630   ;;
3631 esac
3632
3633 fi
3634 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3635 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3636 file_magic_cmd=$lt_cv_file_magic_cmd
3637 deplibs_check_method=$lt_cv_deplibs_check_method
3638
3639
3640
3641
3642 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
3643
3644 # Only perform the check for file, if the check method requires it
3645 case $deplibs_check_method in
3646 file_magic*)
3647   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
3648     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
3649 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
3650 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3651   echo $ECHO_N "(cached) $ECHO_C" >&6
3652 else
3653   case $MAGIC_CMD in
3654   /*)
3655   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3656   ;;
3657   ?:/*)
3658   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3659   ;;
3660   *)
3661   ac_save_MAGIC_CMD="$MAGIC_CMD"
3662   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
3663   ac_dummy="/usr/bin:$PATH"
3664   for ac_dir in $ac_dummy; do
3665     test -z "$ac_dir" && ac_dir=.
3666     if test -f $ac_dir/${ac_tool_prefix}file; then
3667       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
3668       if test -n "$file_magic_test_file"; then
3669         case $deplibs_check_method in
3670         "file_magic "*)
3671           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3672           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3673           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3674             egrep "$file_magic_regex" > /dev/null; then
3675             :
3676           else
3677             cat <<EOF 1>&2
3678
3679 *** Warning: the command libtool uses to detect shared libraries,
3680 *** $file_magic_cmd, produces output that libtool cannot recognize.
3681 *** The result is that libtool may fail to recognize shared libraries
3682 *** as such.  This will affect the creation of libtool libraries that
3683 *** depend on shared libraries, but programs linked with such libtool
3684 *** libraries will work regardless of this problem.  Nevertheless, you
3685 *** may want to report the problem to your system manager and/or to
3686 *** bug-libtool@gnu.org
3687
3688 EOF
3689           fi ;;
3690         esac
3691       fi
3692       break
3693     fi
3694   done
3695   IFS="$ac_save_ifs"
3696   MAGIC_CMD="$ac_save_MAGIC_CMD"
3697   ;;
3698 esac
3699 fi
3700
3701 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3702 if test -n "$MAGIC_CMD"; then
3703   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3704 echo "${ECHO_T}$MAGIC_CMD" >&6
3705 else
3706   echo "$as_me:$LINENO: result: no" >&5
3707 echo "${ECHO_T}no" >&6
3708 fi
3709
3710 if test -z "$lt_cv_path_MAGIC_CMD"; then
3711   if test -n "$ac_tool_prefix"; then
3712     echo "$as_me:$LINENO: checking for file" >&5
3713 echo $ECHO_N "checking for file... $ECHO_C" >&6
3714 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3715   echo $ECHO_N "(cached) $ECHO_C" >&6
3716 else
3717   case $MAGIC_CMD in
3718   /*)
3719   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3720   ;;
3721   ?:/*)
3722   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3723   ;;
3724   *)
3725   ac_save_MAGIC_CMD="$MAGIC_CMD"
3726   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
3727   ac_dummy="/usr/bin:$PATH"
3728   for ac_dir in $ac_dummy; do
3729     test -z "$ac_dir" && ac_dir=.
3730     if test -f $ac_dir/file; then
3731       lt_cv_path_MAGIC_CMD="$ac_dir/file"
3732       if test -n "$file_magic_test_file"; then
3733         case $deplibs_check_method in
3734         "file_magic "*)
3735           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3736           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3737           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3738             egrep "$file_magic_regex" > /dev/null; then
3739             :
3740           else
3741             cat <<EOF 1>&2
3742
3743 *** Warning: the command libtool uses to detect shared libraries,
3744 *** $file_magic_cmd, produces output that libtool cannot recognize.
3745 *** The result is that libtool may fail to recognize shared libraries
3746 *** as such.  This will affect the creation of libtool libraries that
3747 *** depend on shared libraries, but programs linked with such libtool
3748 *** libraries will work regardless of this problem.  Nevertheless, you
3749 *** may want to report the problem to your system manager and/or to
3750 *** bug-libtool@gnu.org
3751
3752 EOF
3753           fi ;;
3754         esac
3755       fi
3756       break
3757     fi
3758   done
3759   IFS="$ac_save_ifs"
3760   MAGIC_CMD="$ac_save_MAGIC_CMD"
3761   ;;
3762 esac
3763 fi
3764
3765 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3766 if test -n "$MAGIC_CMD"; then
3767   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3768 echo "${ECHO_T}$MAGIC_CMD" >&6
3769 else
3770   echo "$as_me:$LINENO: result: no" >&5
3771 echo "${ECHO_T}no" >&6
3772 fi
3773
3774   else
3775     MAGIC_CMD=:
3776   fi
3777 fi
3778
3779   fi
3780   ;;
3781 esac
3782
3783 if test -n "$ac_tool_prefix"; then
3784   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3785 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3786 echo "$as_me:$LINENO: checking for $ac_word" >&5
3787 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3788 if test "${ac_cv_prog_RANLIB+set}" = set; then
3789   echo $ECHO_N "(cached) $ECHO_C" >&6
3790 else
3791   if test -n "$RANLIB"; then
3792   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3793 else
3794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3795 for as_dir in $PATH
3796 do
3797   IFS=$as_save_IFS
3798   test -z "$as_dir" && as_dir=.
3799   for ac_exec_ext in '' $ac_executable_extensions; do
3800   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3801     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3802     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3803     break 2
3804   fi
3805 done
3806 done
3807
3808 fi
3809 fi
3810 RANLIB=$ac_cv_prog_RANLIB
3811 if test -n "$RANLIB"; then
3812   echo "$as_me:$LINENO: result: $RANLIB" >&5
3813 echo "${ECHO_T}$RANLIB" >&6
3814 else
3815   echo "$as_me:$LINENO: result: no" >&5
3816 echo "${ECHO_T}no" >&6
3817 fi
3818
3819 fi
3820 if test -z "$ac_cv_prog_RANLIB"; then
3821   ac_ct_RANLIB=$RANLIB
3822   # Extract the first word of "ranlib", so it can be a program name with args.
3823 set dummy ranlib; ac_word=$2
3824 echo "$as_me:$LINENO: checking for $ac_word" >&5
3825 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3826 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3827   echo $ECHO_N "(cached) $ECHO_C" >&6
3828 else
3829   if test -n "$ac_ct_RANLIB"; then
3830   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3831 else
3832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3833 for as_dir in $PATH
3834 do
3835   IFS=$as_save_IFS
3836   test -z "$as_dir" && as_dir=.
3837   for ac_exec_ext in '' $ac_executable_extensions; do
3838   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3839     ac_cv_prog_ac_ct_RANLIB="ranlib"
3840     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3841     break 2
3842   fi
3843 done
3844 done
3845
3846   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3847 fi
3848 fi
3849 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3850 if test -n "$ac_ct_RANLIB"; then
3851   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3852 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3853 else
3854   echo "$as_me:$LINENO: result: no" >&5
3855 echo "${ECHO_T}no" >&6
3856 fi
3857
3858   RANLIB=$ac_ct_RANLIB
3859 else
3860   RANLIB="$ac_cv_prog_RANLIB"
3861 fi
3862
3863 if test -n "$ac_tool_prefix"; then
3864   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3865 set dummy ${ac_tool_prefix}strip; ac_word=$2
3866 echo "$as_me:$LINENO: checking for $ac_word" >&5
3867 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3868 if test "${ac_cv_prog_STRIP+set}" = set; then
3869   echo $ECHO_N "(cached) $ECHO_C" >&6
3870 else
3871   if test -n "$STRIP"; then
3872   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3873 else
3874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3875 for as_dir in $PATH
3876 do
3877   IFS=$as_save_IFS
3878   test -z "$as_dir" && as_dir=.
3879   for ac_exec_ext in '' $ac_executable_extensions; do
3880   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3881     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3882     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3883     break 2
3884   fi
3885 done
3886 done
3887
3888 fi
3889 fi
3890 STRIP=$ac_cv_prog_STRIP
3891 if test -n "$STRIP"; then
3892   echo "$as_me:$LINENO: result: $STRIP" >&5
3893 echo "${ECHO_T}$STRIP" >&6
3894 else
3895   echo "$as_me:$LINENO: result: no" >&5
3896 echo "${ECHO_T}no" >&6
3897 fi
3898
3899 fi
3900 if test -z "$ac_cv_prog_STRIP"; then
3901   ac_ct_STRIP=$STRIP
3902   # Extract the first word of "strip", so it can be a program name with args.
3903 set dummy strip; ac_word=$2
3904 echo "$as_me:$LINENO: checking for $ac_word" >&5
3905 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3906 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3907   echo $ECHO_N "(cached) $ECHO_C" >&6
3908 else
3909   if test -n "$ac_ct_STRIP"; then
3910   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3911 else
3912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3913 for as_dir in $PATH
3914 do
3915   IFS=$as_save_IFS
3916   test -z "$as_dir" && as_dir=.
3917   for ac_exec_ext in '' $ac_executable_extensions; do
3918   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3919     ac_cv_prog_ac_ct_STRIP="strip"
3920     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3921     break 2
3922   fi
3923 done
3924 done
3925
3926   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3927 fi
3928 fi
3929 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3930 if test -n "$ac_ct_STRIP"; then
3931   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3932 echo "${ECHO_T}$ac_ct_STRIP" >&6
3933 else
3934   echo "$as_me:$LINENO: result: no" >&5
3935 echo "${ECHO_T}no" >&6
3936 fi
3937
3938   STRIP=$ac_ct_STRIP
3939 else
3940   STRIP="$ac_cv_prog_STRIP"
3941 fi
3942
3943
3944 # Check for any special flags to pass to ltconfig.
3945 libtool_flags="--cache-file=$cache_file"
3946 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
3947 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
3948 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
3949 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
3950 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
3951
3952
3953 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3954 if test "${enable_libtool_lock+set}" = set; then
3955   enableval="$enable_libtool_lock"
3956
3957 fi;
3958 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
3959 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
3960
3961
3962 # Check whether --with-pic or --without-pic was given.
3963 if test "${with_pic+set}" = set; then
3964   withval="$with_pic"
3965   pic_mode="$withval"
3966 else
3967   pic_mode=default
3968 fi;
3969 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
3970 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
3971
3972 # Some flags need to be propagated to the compiler or linker for good
3973 # libtool support.
3974 case $host in
3975 *-*-irix6*)
3976   # Find out which ABI we are using.
3977   echo '#line 3977 "configure"' > conftest.$ac_ext
3978   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3979   (eval $ac_compile) 2>&5
3980   ac_status=$?
3981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3982   (exit $ac_status); }; then
3983    if test "$lt_cv_prog_gnu_ld" = yes; then
3984     case `/usr/bin/file conftest.$ac_objext` in
3985     *32-bit*)
3986       LD="${LD-ld} -melf32bsmip"
3987       ;;
3988     *N32*)
3989       LD="${LD-ld} -melf32bmipn32"
3990       ;;
3991     *64-bit*)
3992       LD="${LD-ld} -melf64bmip"
3993       ;;
3994     esac
3995    else
3996     case `/usr/bin/file conftest.$ac_objext` in
3997     *32-bit*)
3998       LD="${LD-ld} -32"
3999       ;;
4000     *N32*)
4001       LD="${LD-ld} -n32"
4002       ;;
4003     *64-bit*)
4004       LD="${LD-ld} -64"
4005       ;;
4006     esac
4007    fi
4008   fi
4009   rm -rf conftest*
4010   ;;
4011
4012 ia64-*-hpux*)
4013   # Find out which ABI we are using.
4014   echo 'int i;' > conftest.$ac_ext
4015   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4016   (eval $ac_compile) 2>&5
4017   ac_status=$?
4018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4019   (exit $ac_status); }; then
4020     case "`/usr/bin/file conftest.o`" in
4021     *ELF-32*)
4022       HPUX_IA64_MODE="32"
4023       ;;
4024     *ELF-64*)
4025       HPUX_IA64_MODE="64"
4026       ;;
4027     esac
4028   fi
4029   rm -rf conftest*
4030   ;;
4031
4032 *-*-sco3.2v5*)
4033   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4034   SAVE_CFLAGS="$CFLAGS"
4035   CFLAGS="$CFLAGS -belf"
4036   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4037 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4038 if test "${lt_cv_cc_needs_belf+set}" = set; then
4039   echo $ECHO_N "(cached) $ECHO_C" >&6
4040 else
4041
4042
4043      ac_ext=c
4044 ac_cpp='$CPP $CPPFLAGS'
4045 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4046 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4047 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4048
4049      cat >conftest.$ac_ext <<_ACEOF
4050 /* confdefs.h.  */
4051 _ACEOF
4052 cat confdefs.h >>conftest.$ac_ext
4053 cat >>conftest.$ac_ext <<_ACEOF
4054 /* end confdefs.h.  */
4055
4056 int
4057 main ()
4058 {
4059
4060   ;
4061   return 0;
4062 }
4063 _ACEOF
4064 rm -f conftest.$ac_objext conftest$ac_exeext
4065 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4066   (eval $ac_link) 2>conftest.er1
4067   ac_status=$?
4068   grep -v '^ *+' conftest.er1 >conftest.err
4069   rm -f conftest.er1
4070   cat conftest.err >&5
4071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4072   (exit $ac_status); } &&
4073          { ac_try='test -z "$ac_c_werror_flag"
4074                          || test ! -s conftest.err'
4075   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4076   (eval $ac_try) 2>&5
4077   ac_status=$?
4078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4079   (exit $ac_status); }; } &&
4080          { ac_try='test -s conftest$ac_exeext'
4081   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4082   (eval $ac_try) 2>&5
4083   ac_status=$?
4084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4085   (exit $ac_status); }; }; then
4086   lt_cv_cc_needs_belf=yes
4087 else
4088   echo "$as_me: failed program was:" >&5
4089 sed 's/^/| /' conftest.$ac_ext >&5
4090
4091 lt_cv_cc_needs_belf=no
4092 fi
4093 rm -f conftest.err conftest.$ac_objext \
4094       conftest$ac_exeext conftest.$ac_ext
4095      ac_ext=c
4096 ac_cpp='$CPP $CPPFLAGS'
4097 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4098 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4099 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4100
4101 fi
4102 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4103 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4104   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4105     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4106     CFLAGS="$SAVE_CFLAGS"
4107   fi
4108   ;;
4109
4110
4111 esac
4112
4113
4114 # Save cache, so that ltconfig can load it
4115 cat >confcache <<\_ACEOF
4116 # This file is a shell script that caches the results of configure
4117 # tests run on this system so they can be shared between configure
4118 # scripts and configure runs, see configure's option --config-cache.
4119 # It is not useful on other systems.  If it contains results you don't
4120 # want to keep, you may remove or edit it.
4121 #
4122 # config.status only pays attention to the cache file if you give it
4123 # the --recheck option to rerun configure.
4124 #
4125 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4126 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4127 # following values.
4128
4129 _ACEOF
4130
4131 # The following way of writing the cache mishandles newlines in values,
4132 # but we know of no workaround that is simple, portable, and efficient.
4133 # So, don't put newlines in cache variables' values.
4134 # Ultrix sh set writes to stderr and can't be redirected directly,
4135 # and sets the high bit in the cache file unless we assign to the vars.
4136 {
4137   (set) 2>&1 |
4138     case `(ac_space=' '; set | grep ac_space) 2>&1` in
4139     *ac_space=\ *)
4140       # `set' does not quote correctly, so add quotes (double-quote
4141       # substitution turns \\\\ into \\, and sed turns \\ into \).
4142       sed -n \
4143         "s/'/'\\\\''/g;
4144           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4145       ;;
4146     *)
4147       # `set' quotes correctly as required by POSIX, so do not add quotes.
4148       sed -n \
4149         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4150       ;;
4151     esac;
4152 } |
4153   sed '
4154      t clear
4155      : clear
4156      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4157      t end
4158      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4159      : end' >>confcache
4160 if diff $cache_file confcache >/dev/null 2>&1; then :; else
4161   if test -w $cache_file; then
4162     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4163     cat confcache >$cache_file
4164   else
4165     echo "not updating unwritable cache $cache_file"
4166   fi
4167 fi
4168 rm -f confcache
4169
4170 # Actually configure libtool.  ac_aux_dir is where install-sh is found.
4171 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
4172 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
4173 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
4174 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
4175 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
4176 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
4177 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
4178 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
4179 || { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
4180 echo "$as_me: error: libtool configure failed" >&2;}
4181    { (exit 1); exit 1; }; }
4182
4183 # Reload cache, that may have been modified by ltconfig
4184 if test -r "$cache_file"; then
4185   # Some versions of bash will fail to source /dev/null (special
4186   # files actually), so we avoid doing that.
4187   if test -f "$cache_file"; then
4188     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
4189 echo "$as_me: loading cache $cache_file" >&6;}
4190     case $cache_file in
4191       [\\/]* | ?:[\\/]* ) . $cache_file;;
4192       *)                      . ./$cache_file;;
4193     esac
4194   fi
4195 else
4196   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
4197 echo "$as_me: creating cache $cache_file" >&6;}
4198   >$cache_file
4199 fi
4200
4201
4202 # This can be used to rebuild libtool when needed
4203 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
4204
4205 # Always use our own libtool.
4206 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
4207
4208 # Redirect the config.log output again, so that the ltconfig log is not
4209 # clobbered by the next message.
4210 exec 5>>./config.log
4211
4212
4213
4214
4215
4216
4217
4218 # Check whether --enable-64-bit-bfd or --disable-64-bit-bfd was given.
4219 if test "${enable_64_bit_bfd+set}" = set; then
4220   enableval="$enable_64_bit_bfd"
4221   case "${enableval}" in
4222   yes)  want64=true  ;;
4223   no)   want64=false ;;
4224   *)    { { echo "$as_me:$LINENO: error: bad value ${enableval} for 64-bit-bfd option" >&5
4225 echo "$as_me: error: bad value ${enableval} for 64-bit-bfd option" >&2;}
4226    { (exit 1); exit 1; }; } ;;
4227 esac
4228 else
4229   want64=false
4230 fi; # Check whether --enable-targets or --disable-targets was given.
4231 if test "${enable_targets+set}" = set; then
4232   enableval="$enable_targets"
4233   case "${enableval}" in
4234   yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5
4235 echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;}
4236    { (exit 1); exit 1; }; }
4237             ;;
4238   no)       enable_targets= ;;
4239   *)        enable_targets=$enableval ;;
4240 esac
4241 fi; # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
4242 if test "${enable_commonbfdlib+set}" = set; then
4243   enableval="$enable_commonbfdlib"
4244   case "${enableval}" in
4245   yes) commonbfdlib=true ;;
4246   no)  commonbfdlib=false ;;
4247   *)   { { echo "$as_me:$LINENO: error: bad value ${enableval} for BFD commonbfdlib option" >&5
4248 echo "$as_me: error: bad value ${enableval} for BFD commonbfdlib option" >&2;}
4249    { (exit 1); exit 1; }; } ;;
4250 esac
4251 fi;
4252 # Check whether --with-mmap or --without-mmap was given.
4253 if test "${with_mmap+set}" = set; then
4254   withval="$with_mmap"
4255   case "${withval}" in
4256   yes)  want_mmap=true ;;
4257   no)   want_mmap=false ;;
4258   *)    { { echo "$as_me:$LINENO: error: bad value ${withval} for BFD with-mmap option" >&5
4259 echo "$as_me: error: bad value ${withval} for BFD with-mmap option" >&2;}
4260    { (exit 1); exit 1; }; } ;;
4261 esac
4262 else
4263   want_mmap=false
4264 fi;
4265 build_warnings="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
4266 # Check whether --enable-build-warnings or --disable-build-warnings was given.
4267 if test "${enable_build_warnings+set}" = set; then
4268   enableval="$enable_build_warnings"
4269   case "${enableval}" in
4270   yes)  ;;
4271   no)   build_warnings="-w";;
4272   ,*)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
4273         build_warnings="${build_warnings} ${t}";;
4274   *,)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
4275         build_warnings="${t} ${build_warnings}";;
4276   *)    build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
4277 esac
4278 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
4279   echo "Setting warning flags = $build_warnings" 6>&1
4280 fi
4281 fi; WARN_CFLAGS=""
4282 if test "x${build_warnings}" != x && test "x$GCC" = xyes ; then
4283     WARN_CFLAGS="${build_warnings}"
4284 fi
4285
4286
4287           ac_config_headers="$ac_config_headers config.h:config.in"
4288
4289
4290 if test -z "$target" ; then
4291     { { echo "$as_me:$LINENO: error: Unrecognized target system type; please check config.sub." >&5
4292 echo "$as_me: error: Unrecognized target system type; please check config.sub." >&2;}
4293    { (exit 1); exit 1; }; }
4294 fi
4295
4296 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
4297 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
4298     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4299 if test "${enable_maintainer_mode+set}" = set; then
4300   enableval="$enable_maintainer_mode"
4301   USE_MAINTAINER_MODE=$enableval
4302 else
4303   USE_MAINTAINER_MODE=no
4304 fi;
4305   echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
4306 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
4307
4308
4309 if test $USE_MAINTAINER_MODE = yes; then
4310   MAINTAINER_MODE_TRUE=
4311   MAINTAINER_MODE_FALSE='#'
4312 else
4313   MAINTAINER_MODE_TRUE='#'
4314   MAINTAINER_MODE_FALSE=
4315 fi
4316
4317   MAINT=$MAINTAINER_MODE_TRUE
4318
4319
4320  case ${build_alias} in
4321   "") build_noncanonical=${build} ;;
4322   *) build_noncanonical=${build_alias} ;;
4323 esac
4324
4325  case ${host_alias} in
4326   "") host_noncanonical=${build_noncanonical} ;;
4327   *) host_noncanonical=${host_alias} ;;
4328 esac
4329
4330  case ${target_alias} in
4331   "") target_noncanonical=${host_noncanonical} ;;
4332   *) target_noncanonical=${target_alias} ;;
4333 esac
4334
4335 echo "$as_me:$LINENO: checking whether to install libbfd" >&5
4336 echo $ECHO_N "checking whether to install libbfd... $ECHO_C" >&6
4337   # Check whether --enable-install-libbfd or --disable-install-libbfd was given.
4338 if test "${enable_install_libbfd+set}" = set; then
4339   enableval="$enable_install_libbfd"
4340   install_libbfd_p=$enableval
4341 else
4342   if test "${host}" = "${target}" || test "$enable_shared" = "yes"; then
4343         install_libbfd_p=yes
4344       else
4345         install_libbfd_p=no
4346       fi
4347 fi;
4348   echo "$as_me:$LINENO: result: $install_libbfd_p" >&5
4349 echo "${ECHO_T}$install_libbfd_p" >&6
4350
4351
4352 if test $install_libbfd_p = yes; then
4353   INSTALL_LIBBFD_TRUE=
4354   INSTALL_LIBBFD_FALSE='#'
4355 else
4356   INSTALL_LIBBFD_TRUE='#'
4357   INSTALL_LIBBFD_FALSE=
4358 fi
4359
4360   # Need _noncanonical variables for this.
4361
4362
4363
4364
4365   # libbfd.a is a host library containing target dependent code
4366   bfdlibdir='$(libdir)'
4367   bfdincludedir='$(includedir)'
4368   if test "${host}" != "${target}"; then
4369     bfdlibdir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/lib'
4370     bfdincludedir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/include'
4371   fi
4372
4373
4374
4375
4376
4377
4378 host64=false
4379 target64=false
4380 bfd_default_target_size=32
4381
4382 # host stuff:
4383
4384 ac_ext=c
4385 ac_cpp='$CPP $CPPFLAGS'
4386 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4387 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4388 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4389 if test -n "$ac_tool_prefix"; then
4390   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4391 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4392 echo "$as_me:$LINENO: checking for $ac_word" >&5
4393 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4394 if test "${ac_cv_prog_CC+set}" = set; then
4395   echo $ECHO_N "(cached) $ECHO_C" >&6
4396 else
4397   if test -n "$CC"; then
4398   ac_cv_prog_CC="$CC" # Let the user override the test.
4399 else
4400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4401 for as_dir in $PATH
4402 do
4403   IFS=$as_save_IFS
4404   test -z "$as_dir" && as_dir=.
4405   for ac_exec_ext in '' $ac_executable_extensions; do
4406   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4407     ac_cv_prog_CC="${ac_tool_prefix}gcc"
4408     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4409     break 2
4410   fi
4411 done
4412 done
4413
4414 fi
4415 fi
4416 CC=$ac_cv_prog_CC
4417 if test -n "$CC"; then
4418   echo "$as_me:$LINENO: result: $CC" >&5
4419 echo "${ECHO_T}$CC" >&6
4420 else
4421   echo "$as_me:$LINENO: result: no" >&5
4422 echo "${ECHO_T}no" >&6
4423 fi
4424
4425 fi
4426 if test -z "$ac_cv_prog_CC"; then
4427   ac_ct_CC=$CC
4428   # Extract the first word of "gcc", so it can be a program name with args.
4429 set dummy gcc; ac_word=$2
4430 echo "$as_me:$LINENO: checking for $ac_word" >&5
4431 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4432 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4433   echo $ECHO_N "(cached) $ECHO_C" >&6
4434 else
4435   if test -n "$ac_ct_CC"; then
4436   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4437 else
4438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4439 for as_dir in $PATH
4440 do
4441   IFS=$as_save_IFS
4442   test -z "$as_dir" && as_dir=.
4443   for ac_exec_ext in '' $ac_executable_extensions; do
4444   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4445     ac_cv_prog_ac_ct_CC="gcc"
4446     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4447     break 2
4448   fi
4449 done
4450 done
4451
4452 fi
4453 fi
4454 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4455 if test -n "$ac_ct_CC"; then
4456   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4457 echo "${ECHO_T}$ac_ct_CC" >&6
4458 else
4459   echo "$as_me:$LINENO: result: no" >&5
4460 echo "${ECHO_T}no" >&6
4461 fi
4462
4463   CC=$ac_ct_CC
4464 else
4465   CC="$ac_cv_prog_CC"
4466 fi
4467
4468 if test -z "$CC"; then
4469   if test -n "$ac_tool_prefix"; then
4470   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4471 set dummy ${ac_tool_prefix}cc; ac_word=$2
4472 echo "$as_me:$LINENO: checking for $ac_word" >&5
4473 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4474 if test "${ac_cv_prog_CC+set}" = set; then
4475   echo $ECHO_N "(cached) $ECHO_C" >&6
4476 else
4477   if test -n "$CC"; then
4478   ac_cv_prog_CC="$CC" # Let the user override the test.
4479 else
4480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4481 for as_dir in $PATH
4482 do
4483   IFS=$as_save_IFS
4484   test -z "$as_dir" && as_dir=.
4485   for ac_exec_ext in '' $ac_executable_extensions; do
4486   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4487     ac_cv_prog_CC="${ac_tool_prefix}cc"
4488     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4489     break 2
4490   fi
4491 done
4492 done
4493
4494 fi
4495 fi
4496 CC=$ac_cv_prog_CC
4497 if test -n "$CC"; then
4498   echo "$as_me:$LINENO: result: $CC" >&5
4499 echo "${ECHO_T}$CC" >&6
4500 else
4501   echo "$as_me:$LINENO: result: no" >&5
4502 echo "${ECHO_T}no" >&6
4503 fi
4504
4505 fi
4506 if test -z "$ac_cv_prog_CC"; then
4507   ac_ct_CC=$CC
4508   # Extract the first word of "cc", so it can be a program name with args.
4509 set dummy cc; ac_word=$2
4510 echo "$as_me:$LINENO: checking for $ac_word" >&5
4511 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4512 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4513   echo $ECHO_N "(cached) $ECHO_C" >&6
4514 else
4515   if test -n "$ac_ct_CC"; then
4516   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4517 else
4518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4519 for as_dir in $PATH
4520 do
4521   IFS=$as_save_IFS
4522   test -z "$as_dir" && as_dir=.
4523   for ac_exec_ext in '' $ac_executable_extensions; do
4524   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4525     ac_cv_prog_ac_ct_CC="cc"
4526     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4527     break 2
4528   fi
4529 done
4530 done
4531
4532 fi
4533 fi
4534 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4535 if test -n "$ac_ct_CC"; then
4536   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4537 echo "${ECHO_T}$ac_ct_CC" >&6
4538 else
4539   echo "$as_me:$LINENO: result: no" >&5
4540 echo "${ECHO_T}no" >&6
4541 fi
4542
4543   CC=$ac_ct_CC
4544 else
4545   CC="$ac_cv_prog_CC"
4546 fi
4547
4548 fi
4549 if test -z "$CC"; then
4550   # Extract the first word of "cc", so it can be a program name with args.
4551 set dummy cc; ac_word=$2
4552 echo "$as_me:$LINENO: checking for $ac_word" >&5
4553 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4554 if test "${ac_cv_prog_CC+set}" = set; then
4555   echo $ECHO_N "(cached) $ECHO_C" >&6
4556 else
4557   if test -n "$CC"; then
4558   ac_cv_prog_CC="$CC" # Let the user override the test.
4559 else
4560   ac_prog_rejected=no
4561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4562 for as_dir in $PATH
4563 do
4564   IFS=$as_save_IFS
4565   test -z "$as_dir" && as_dir=.
4566   for ac_exec_ext in '' $ac_executable_extensions; do
4567   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4568     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4569        ac_prog_rejected=yes
4570        continue
4571      fi
4572     ac_cv_prog_CC="cc"
4573     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4574     break 2
4575   fi
4576 done
4577 done
4578
4579 if test $ac_prog_rejected = yes; then
4580   # We found a bogon in the path, so make sure we never use it.
4581   set dummy $ac_cv_prog_CC
4582   shift
4583   if test $# != 0; then
4584     # We chose a different compiler from the bogus one.
4585     # However, it has the same basename, so the bogon will be chosen
4586     # first if we set CC to just the basename; use the full file name.
4587     shift
4588     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4589   fi
4590 fi
4591 fi
4592 fi
4593 CC=$ac_cv_prog_CC
4594 if test -n "$CC"; then
4595   echo "$as_me:$LINENO: result: $CC" >&5
4596 echo "${ECHO_T}$CC" >&6
4597 else
4598   echo "$as_me:$LINENO: result: no" >&5
4599 echo "${ECHO_T}no" >&6
4600 fi
4601
4602 fi
4603 if test -z "$CC"; then
4604   if test -n "$ac_tool_prefix"; then
4605   for ac_prog in cl
4606   do
4607     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4608 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4609 echo "$as_me:$LINENO: checking for $ac_word" >&5
4610 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4611 if test "${ac_cv_prog_CC+set}" = set; then
4612   echo $ECHO_N "(cached) $ECHO_C" >&6
4613 else
4614   if test -n "$CC"; then
4615   ac_cv_prog_CC="$CC" # Let the user override the test.
4616 else
4617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4618 for as_dir in $PATH
4619 do
4620   IFS=$as_save_IFS
4621   test -z "$as_dir" && as_dir=.
4622   for ac_exec_ext in '' $ac_executable_extensions; do
4623   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4624     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4625     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4626     break 2
4627   fi
4628 done
4629 done
4630
4631 fi
4632 fi
4633 CC=$ac_cv_prog_CC
4634 if test -n "$CC"; then
4635   echo "$as_me:$LINENO: result: $CC" >&5
4636 echo "${ECHO_T}$CC" >&6
4637 else
4638   echo "$as_me:$LINENO: result: no" >&5
4639 echo "${ECHO_T}no" >&6
4640 fi
4641
4642     test -n "$CC" && break
4643   done
4644 fi
4645 if test -z "$CC"; then
4646   ac_ct_CC=$CC
4647   for ac_prog in cl
4648 do
4649   # Extract the first word of "$ac_prog", so it can be a program name with args.
4650 set dummy $ac_prog; ac_word=$2
4651 echo "$as_me:$LINENO: checking for $ac_word" >&5
4652 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4653 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4654   echo $ECHO_N "(cached) $ECHO_C" >&6
4655 else
4656   if test -n "$ac_ct_CC"; then
4657   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4658 else
4659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4660 for as_dir in $PATH
4661 do
4662   IFS=$as_save_IFS
4663   test -z "$as_dir" && as_dir=.
4664   for ac_exec_ext in '' $ac_executable_extensions; do
4665   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4666     ac_cv_prog_ac_ct_CC="$ac_prog"
4667     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4668     break 2
4669   fi
4670 done
4671 done
4672
4673 fi
4674 fi
4675 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4676 if test -n "$ac_ct_CC"; then
4677   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4678 echo "${ECHO_T}$ac_ct_CC" >&6
4679 else
4680   echo "$as_me:$LINENO: result: no" >&5
4681 echo "${ECHO_T}no" >&6
4682 fi
4683
4684   test -n "$ac_ct_CC" && break
4685 done
4686
4687   CC=$ac_ct_CC
4688 fi
4689
4690 fi
4691
4692
4693 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4694 See \`config.log' for more details." >&5
4695 echo "$as_me: error: no acceptable C compiler found in \$PATH
4696 See \`config.log' for more details." >&2;}
4697    { (exit 1); exit 1; }; }
4698
4699 # Provide some information about the compiler.
4700 echo "$as_me:$LINENO:" \
4701      "checking for C compiler version" >&5
4702 ac_compiler=`set X $ac_compile; echo $2`
4703 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4704   (eval $ac_compiler --version </dev/null >&5) 2>&5
4705   ac_status=$?
4706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4707   (exit $ac_status); }
4708 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4709   (eval $ac_compiler -v </dev/null >&5) 2>&5
4710   ac_status=$?
4711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4712   (exit $ac_status); }
4713 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4714   (eval $ac_compiler -V </dev/null >&5) 2>&5
4715   ac_status=$?
4716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4717   (exit $ac_status); }
4718
4719 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4720 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
4721 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4722   echo $ECHO_N "(cached) $ECHO_C" >&6
4723 else
4724   cat >conftest.$ac_ext <<_ACEOF
4725 /* confdefs.h.  */
4726 _ACEOF
4727 cat confdefs.h >>conftest.$ac_ext
4728 cat >>conftest.$ac_ext <<_ACEOF
4729 /* end confdefs.h.  */
4730
4731 int
4732 main ()
4733 {
4734 #ifndef __GNUC__
4735        choke me
4736 #endif
4737
4738   ;
4739   return 0;
4740 }
4741 _ACEOF
4742 rm -f conftest.$ac_objext
4743 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4744   (eval $ac_compile) 2>conftest.er1
4745   ac_status=$?
4746   grep -v '^ *+' conftest.er1 >conftest.err
4747   rm -f conftest.er1
4748   cat conftest.err >&5
4749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4750   (exit $ac_status); } &&
4751          { ac_try='test -z "$ac_c_werror_flag"
4752                          || test ! -s conftest.err'
4753   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4754   (eval $ac_try) 2>&5
4755   ac_status=$?
4756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4757   (exit $ac_status); }; } &&
4758          { ac_try='test -s conftest.$ac_objext'
4759   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4760   (eval $ac_try) 2>&5
4761   ac_status=$?
4762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4763   (exit $ac_status); }; }; then
4764   ac_compiler_gnu=yes
4765 else
4766   echo "$as_me: failed program was:" >&5
4767 sed 's/^/| /' conftest.$ac_ext >&5
4768
4769 ac_compiler_gnu=no
4770 fi
4771 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4772 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4773
4774 fi
4775 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4776 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
4777 GCC=`test $ac_compiler_gnu = yes && echo yes`
4778 ac_test_CFLAGS=${CFLAGS+set}
4779 ac_save_CFLAGS=$CFLAGS
4780 CFLAGS="-g"
4781 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4782 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
4783 if test "${ac_cv_prog_cc_g+set}" = set; then
4784   echo $ECHO_N "(cached) $ECHO_C" >&6
4785 else
4786   cat >conftest.$ac_ext <<_ACEOF
4787 /* confdefs.h.  */
4788 _ACEOF
4789 cat confdefs.h >>conftest.$ac_ext
4790 cat >>conftest.$ac_ext <<_ACEOF
4791 /* end confdefs.h.  */
4792
4793 int
4794 main ()
4795 {
4796
4797   ;
4798   return 0;
4799 }
4800 _ACEOF
4801 rm -f conftest.$ac_objext
4802 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4803   (eval $ac_compile) 2>conftest.er1
4804   ac_status=$?
4805   grep -v '^ *+' conftest.er1 >conftest.err
4806   rm -f conftest.er1
4807   cat conftest.err >&5
4808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4809   (exit $ac_status); } &&
4810          { ac_try='test -z "$ac_c_werror_flag"
4811                          || test ! -s conftest.err'
4812   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4813   (eval $ac_try) 2>&5
4814   ac_status=$?
4815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4816   (exit $ac_status); }; } &&
4817          { ac_try='test -s conftest.$ac_objext'
4818   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4819   (eval $ac_try) 2>&5
4820   ac_status=$?
4821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4822   (exit $ac_status); }; }; then
4823   ac_cv_prog_cc_g=yes
4824 else
4825   echo "$as_me: failed program was:" >&5
4826 sed 's/^/| /' conftest.$ac_ext >&5
4827
4828 ac_cv_prog_cc_g=no
4829 fi
4830 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4831 fi
4832 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4833 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
4834 if test "$ac_test_CFLAGS" = set; then
4835   CFLAGS=$ac_save_CFLAGS
4836 elif test $ac_cv_prog_cc_g = yes; then
4837   if test "$GCC" = yes; then
4838     CFLAGS="-g -O2"
4839   else
4840     CFLAGS="-g"
4841   fi
4842 else
4843   if test "$GCC" = yes; then
4844     CFLAGS="-O2"
4845   else
4846     CFLAGS=
4847   fi
4848 fi
4849 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
4850 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4851 if test "${ac_cv_prog_cc_stdc+set}" = set; then
4852   echo $ECHO_N "(cached) $ECHO_C" >&6
4853 else
4854   ac_cv_prog_cc_stdc=no
4855 ac_save_CC=$CC
4856 cat >conftest.$ac_ext <<_ACEOF
4857 /* confdefs.h.  */
4858 _ACEOF
4859 cat confdefs.h >>conftest.$ac_ext
4860 cat >>conftest.$ac_ext <<_ACEOF
4861 /* end confdefs.h.  */
4862 #include <stdarg.h>
4863 #include <stdio.h>
4864 #include <sys/types.h>
4865 #include <sys/stat.h>
4866 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4867 struct buf { int x; };
4868 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4869 static char *e (p, i)
4870      char **p;
4871      int i;
4872 {
4873   return p[i];
4874 }
4875 static char *f (char * (*g) (char **, int), char **p, ...)
4876 {
4877   char *s;
4878   va_list v;
4879   va_start (v,p);
4880   s = g (p, va_arg (v,int));
4881   va_end (v);
4882   return s;
4883 }
4884
4885 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4886    function prototypes and stuff, but not '\xHH' hex character constants.
4887    These don't provoke an error unfortunately, instead are silently treated
4888    as 'x'.  The following induces an error, until -std1 is added to get
4889    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4890    array size at least.  It's necessary to write '\x00'==0 to get something
4891    that's true only with -std1.  */
4892 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4893
4894 int test (int i, double x);
4895 struct s1 {int (*f) (int a);};
4896 struct s2 {int (*f) (double a);};
4897 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4898 int argc;
4899 char **argv;
4900 int
4901 main ()
4902 {
4903 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4904   ;
4905   return 0;
4906 }
4907 _ACEOF
4908 # Don't try gcc -ansi; that turns off useful extensions and
4909 # breaks some systems' header files.
4910 # AIX                   -qlanglvl=ansi
4911 # Ultrix and OSF/1      -std1
4912 # HP-UX 10.20 and later -Ae
4913 # HP-UX older versions  -Aa -D_HPUX_SOURCE
4914 # SVR4                  -Xc -D__EXTENSIONS__
4915 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4916 do
4917   CC="$ac_save_CC $ac_arg"
4918   rm -f conftest.$ac_objext
4919 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4920   (eval $ac_compile) 2>conftest.er1
4921   ac_status=$?
4922   grep -v '^ *+' conftest.er1 >conftest.err
4923   rm -f conftest.er1
4924   cat conftest.err >&5
4925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4926   (exit $ac_status); } &&
4927          { ac_try='test -z "$ac_c_werror_flag"
4928                          || test ! -s conftest.err'
4929   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4930   (eval $ac_try) 2>&5
4931   ac_status=$?
4932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4933   (exit $ac_status); }; } &&
4934          { ac_try='test -s conftest.$ac_objext'
4935   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4936   (eval $ac_try) 2>&5
4937   ac_status=$?
4938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4939   (exit $ac_status); }; }; then
4940   ac_cv_prog_cc_stdc=$ac_arg
4941 break
4942 else
4943   echo "$as_me: failed program was:" >&5
4944 sed 's/^/| /' conftest.$ac_ext >&5
4945
4946 fi
4947 rm -f conftest.err conftest.$ac_objext
4948 done
4949 rm -f conftest.$ac_ext conftest.$ac_objext
4950 CC=$ac_save_CC
4951
4952 fi
4953
4954 case "x$ac_cv_prog_cc_stdc" in
4955   x|xno)
4956     echo "$as_me:$LINENO: result: none needed" >&5
4957 echo "${ECHO_T}none needed" >&6 ;;
4958   *)
4959     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4960 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4961     CC="$CC $ac_cv_prog_cc_stdc" ;;
4962 esac
4963
4964 # Some people use a C++ compiler to compile C.  Since we use `exit',
4965 # in C++ we need to declare it.  In case someone uses the same compiler
4966 # for both compiling C and C++ we need to have the C++ compiler decide
4967 # the declaration of exit, since it's the most demanding environment.
4968 cat >conftest.$ac_ext <<_ACEOF
4969 #ifndef __cplusplus
4970   choke me
4971 #endif
4972 _ACEOF
4973 rm -f conftest.$ac_objext
4974 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4975   (eval $ac_compile) 2>conftest.er1
4976   ac_status=$?
4977   grep -v '^ *+' conftest.er1 >conftest.err
4978   rm -f conftest.er1
4979   cat conftest.err >&5
4980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4981   (exit $ac_status); } &&
4982          { ac_try='test -z "$ac_c_werror_flag"
4983                          || test ! -s conftest.err'
4984   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4985   (eval $ac_try) 2>&5
4986   ac_status=$?
4987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4988   (exit $ac_status); }; } &&
4989          { ac_try='test -s conftest.$ac_objext'
4990   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4991   (eval $ac_try) 2>&5
4992   ac_status=$?
4993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4994   (exit $ac_status); }; }; then
4995   for ac_declaration in \
4996    '' \
4997    'extern "C" void std::exit (int) throw (); using std::exit;' \
4998    'extern "C" void std::exit (int); using std::exit;' \
4999    'extern "C" void exit (int) throw ();' \
5000    'extern "C" void exit (int);' \
5001    'void exit (int);'
5002 do
5003   cat >conftest.$ac_ext <<_ACEOF
5004 /* confdefs.h.  */
5005 _ACEOF
5006 cat confdefs.h >>conftest.$ac_ext
5007 cat >>conftest.$ac_ext <<_ACEOF
5008 /* end confdefs.h.  */
5009 $ac_declaration
5010 #include <stdlib.h>
5011 int
5012 main ()
5013 {
5014 exit (42);
5015   ;
5016   return 0;
5017 }
5018 _ACEOF
5019 rm -f conftest.$ac_objext
5020 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5021   (eval $ac_compile) 2>conftest.er1
5022   ac_status=$?
5023   grep -v '^ *+' conftest.er1 >conftest.err
5024   rm -f conftest.er1
5025   cat conftest.err >&5
5026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5027   (exit $ac_status); } &&
5028          { ac_try='test -z "$ac_c_werror_flag"
5029                          || test ! -s conftest.err'
5030   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5031   (eval $ac_try) 2>&5
5032   ac_status=$?
5033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5034   (exit $ac_status); }; } &&
5035          { ac_try='test -s conftest.$ac_objext'
5036   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5037   (eval $ac_try) 2>&5
5038   ac_status=$?
5039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5040   (exit $ac_status); }; }; then
5041   :
5042 else
5043   echo "$as_me: failed program was:" >&5
5044 sed 's/^/| /' conftest.$ac_ext >&5
5045
5046 continue
5047 fi
5048 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5049   cat >conftest.$ac_ext <<_ACEOF
5050 /* confdefs.h.  */
5051 _ACEOF
5052 cat confdefs.h >>conftest.$ac_ext
5053 cat >>conftest.$ac_ext <<_ACEOF
5054 /* end confdefs.h.  */
5055 $ac_declaration
5056 int
5057 main ()
5058 {
5059 exit (42);
5060   ;
5061   return 0;
5062 }
5063 _ACEOF
5064 rm -f conftest.$ac_objext
5065 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5066   (eval $ac_compile) 2>conftest.er1
5067   ac_status=$?
5068   grep -v '^ *+' conftest.er1 >conftest.err
5069   rm -f conftest.er1
5070   cat conftest.err >&5
5071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5072   (exit $ac_status); } &&
5073          { ac_try='test -z "$ac_c_werror_flag"
5074                          || test ! -s conftest.err'
5075   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5076   (eval $ac_try) 2>&5
5077   ac_status=$?
5078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5079   (exit $ac_status); }; } &&
5080          { ac_try='test -s conftest.$ac_objext'
5081   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5082   (eval $ac_try) 2>&5
5083   ac_status=$?
5084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5085   (exit $ac_status); }; }; then
5086   break
5087 else
5088   echo "$as_me: failed program was:" >&5
5089 sed 's/^/| /' conftest.$ac_ext >&5
5090
5091 fi
5092 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5093 done
5094 rm -f conftest*
5095 if test -n "$ac_declaration"; then
5096   echo '#ifdef __cplusplus' >>confdefs.h
5097   echo $ac_declaration      >>confdefs.h
5098   echo '#endif'             >>confdefs.h
5099 fi
5100
5101 else
5102   echo "$as_me: failed program was:" >&5
5103 sed 's/^/| /' conftest.$ac_ext >&5
5104
5105 fi
5106 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5107 ac_ext=c
5108 ac_cpp='$CPP $CPPFLAGS'
5109 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5110 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5111 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5112
5113
5114 ALL_LINGUAS="fr tr ja es sv da zh_CN ro"
5115 if test -n "$ac_tool_prefix"; then
5116   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5117 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5118 echo "$as_me:$LINENO: checking for $ac_word" >&5
5119 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5120 if test "${ac_cv_prog_RANLIB+set}" = set; then
5121   echo $ECHO_N "(cached) $ECHO_C" >&6
5122 else
5123   if test -n "$RANLIB"; then
5124   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5125 else
5126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5127 for as_dir in $PATH
5128 do
5129   IFS=$as_save_IFS
5130   test -z "$as_dir" && as_dir=.
5131   for ac_exec_ext in '' $ac_executable_extensions; do
5132   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5133     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5134     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5135     break 2
5136   fi
5137 done
5138 done
5139
5140 fi
5141 fi
5142 RANLIB=$ac_cv_prog_RANLIB
5143 if test -n "$RANLIB"; then
5144   echo "$as_me:$LINENO: result: $RANLIB" >&5
5145 echo "${ECHO_T}$RANLIB" >&6
5146 else
5147   echo "$as_me:$LINENO: result: no" >&5
5148 echo "${ECHO_T}no" >&6
5149 fi
5150
5151 fi
5152 if test -z "$ac_cv_prog_RANLIB"; then
5153   ac_ct_RANLIB=$RANLIB
5154   # Extract the first word of "ranlib", so it can be a program name with args.
5155 set dummy ranlib; ac_word=$2
5156 echo "$as_me:$LINENO: checking for $ac_word" >&5
5157 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5158 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5159   echo $ECHO_N "(cached) $ECHO_C" >&6
5160 else
5161   if test -n "$ac_ct_RANLIB"; then
5162   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5163 else
5164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5165 for as_dir in $PATH
5166 do
5167   IFS=$as_save_IFS
5168   test -z "$as_dir" && as_dir=.
5169   for ac_exec_ext in '' $ac_executable_extensions; do
5170   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5171     ac_cv_prog_ac_ct_RANLIB="ranlib"
5172     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5173     break 2
5174   fi
5175 done
5176 done
5177
5178   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5179 fi
5180 fi
5181 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5182 if test -n "$ac_ct_RANLIB"; then
5183   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5184 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5185 else
5186   echo "$as_me:$LINENO: result: no" >&5
5187 echo "${ECHO_T}no" >&6
5188 fi
5189
5190   RANLIB=$ac_ct_RANLIB
5191 else
5192   RANLIB="$ac_cv_prog_RANLIB"
5193 fi
5194
5195 ac_ext=c
5196 ac_cpp='$CPP $CPPFLAGS'
5197 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5198 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5199 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5200 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5201 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5202 # On Suns, sometimes $CPP names a directory.
5203 if test -n "$CPP" && test -d "$CPP"; then
5204   CPP=
5205 fi
5206 if test -z "$CPP"; then
5207   if test "${ac_cv_prog_CPP+set}" = set; then
5208   echo $ECHO_N "(cached) $ECHO_C" >&6
5209 else
5210       # Double quotes because CPP needs to be expanded
5211     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5212     do
5213       ac_preproc_ok=false
5214 for ac_c_preproc_warn_flag in '' yes
5215 do
5216   # Use a header file that comes with gcc, so configuring glibc
5217   # with a fresh cross-compiler works.
5218   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5219   # <limits.h> exists even on freestanding compilers.
5220   # On the NeXT, cc -E runs the code through the compiler's parser,
5221   # not just through cpp. "Syntax error" is here to catch this case.
5222   cat >conftest.$ac_ext <<_ACEOF
5223 /* confdefs.h.  */
5224 _ACEOF
5225 cat confdefs.h >>conftest.$ac_ext
5226 cat >>conftest.$ac_ext <<_ACEOF
5227 /* end confdefs.h.  */
5228 #ifdef __STDC__
5229 # include <limits.h>
5230 #else
5231 # include <assert.h>
5232 #endif
5233                      Syntax error
5234 _ACEOF
5235 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5236   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5237   ac_status=$?
5238   grep -v '^ *+' conftest.er1 >conftest.err
5239   rm -f conftest.er1
5240   cat conftest.err >&5
5241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5242   (exit $ac_status); } >/dev/null; then
5243   if test -s conftest.err; then
5244     ac_cpp_err=$ac_c_preproc_warn_flag
5245     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5246   else
5247     ac_cpp_err=
5248   fi
5249 else
5250   ac_cpp_err=yes
5251 fi
5252 if test -z "$ac_cpp_err"; then
5253   :
5254 else
5255   echo "$as_me: failed program was:" >&5
5256 sed 's/^/| /' conftest.$ac_ext >&5
5257
5258   # Broken: fails on valid input.
5259 continue
5260 fi
5261 rm -f conftest.err conftest.$ac_ext
5262
5263   # OK, works on sane cases.  Now check whether non-existent headers
5264   # can be detected and how.
5265   cat >conftest.$ac_ext <<_ACEOF
5266 /* confdefs.h.  */
5267 _ACEOF
5268 cat confdefs.h >>conftest.$ac_ext
5269 cat >>conftest.$ac_ext <<_ACEOF
5270 /* end confdefs.h.  */
5271 #include <ac_nonexistent.h>
5272 _ACEOF
5273 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5274   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5275   ac_status=$?
5276   grep -v '^ *+' conftest.er1 >conftest.err
5277   rm -f conftest.er1
5278   cat conftest.err >&5
5279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5280   (exit $ac_status); } >/dev/null; then
5281   if test -s conftest.err; then
5282     ac_cpp_err=$ac_c_preproc_warn_flag
5283     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5284   else
5285     ac_cpp_err=
5286   fi
5287 else
5288   ac_cpp_err=yes
5289 fi
5290 if test -z "$ac_cpp_err"; then
5291   # Broken: success on invalid input.
5292 continue
5293 else
5294   echo "$as_me: failed program was:" >&5
5295 sed 's/^/| /' conftest.$ac_ext >&5
5296
5297   # Passes both tests.
5298 ac_preproc_ok=:
5299 break
5300 fi
5301 rm -f conftest.err conftest.$ac_ext
5302
5303 done
5304 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5305 rm -f conftest.err conftest.$ac_ext
5306 if $ac_preproc_ok; then
5307   break
5308 fi
5309
5310     done
5311     ac_cv_prog_CPP=$CPP
5312
5313 fi
5314   CPP=$ac_cv_prog_CPP
5315 else
5316   ac_cv_prog_CPP=$CPP
5317 fi
5318 echo "$as_me:$LINENO: result: $CPP" >&5
5319 echo "${ECHO_T}$CPP" >&6
5320 ac_preproc_ok=false
5321 for ac_c_preproc_warn_flag in '' yes
5322 do
5323   # Use a header file that comes with gcc, so configuring glibc
5324   # with a fresh cross-compiler works.
5325   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5326   # <limits.h> exists even on freestanding compilers.
5327   # On the NeXT, cc -E runs the code through the compiler's parser,
5328   # not just through cpp. "Syntax error" is here to catch this case.
5329   cat >conftest.$ac_ext <<_ACEOF
5330 /* confdefs.h.  */
5331 _ACEOF
5332 cat confdefs.h >>conftest.$ac_ext
5333 cat >>conftest.$ac_ext <<_ACEOF
5334 /* end confdefs.h.  */
5335 #ifdef __STDC__
5336 # include <limits.h>
5337 #else
5338 # include <assert.h>
5339 #endif
5340                      Syntax error
5341 _ACEOF
5342 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5343   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5344   ac_status=$?
5345   grep -v '^ *+' conftest.er1 >conftest.err
5346   rm -f conftest.er1
5347   cat conftest.err >&5
5348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5349   (exit $ac_status); } >/dev/null; then
5350   if test -s conftest.err; then
5351     ac_cpp_err=$ac_c_preproc_warn_flag
5352     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5353   else
5354     ac_cpp_err=
5355   fi
5356 else
5357   ac_cpp_err=yes
5358 fi
5359 if test -z "$ac_cpp_err"; then
5360   :
5361 else
5362   echo "$as_me: failed program was:" >&5
5363 sed 's/^/| /' conftest.$ac_ext >&5
5364
5365   # Broken: fails on valid input.
5366 continue
5367 fi
5368 rm -f conftest.err conftest.$ac_ext
5369
5370   # OK, works on sane cases.  Now check whether non-existent headers
5371   # can be detected and how.
5372   cat >conftest.$ac_ext <<_ACEOF
5373 /* confdefs.h.  */
5374 _ACEOF
5375 cat confdefs.h >>conftest.$ac_ext
5376 cat >>conftest.$ac_ext <<_ACEOF
5377 /* end confdefs.h.  */
5378 #include <ac_nonexistent.h>
5379 _ACEOF
5380 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5381   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5382   ac_status=$?
5383   grep -v '^ *+' conftest.er1 >conftest.err
5384   rm -f conftest.er1
5385   cat conftest.err >&5
5386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5387   (exit $ac_status); } >/dev/null; then
5388   if test -s conftest.err; then
5389     ac_cpp_err=$ac_c_preproc_warn_flag
5390     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5391   else
5392     ac_cpp_err=
5393   fi
5394 else
5395   ac_cpp_err=yes
5396 fi
5397 if test -z "$ac_cpp_err"; then
5398   # Broken: success on invalid input.
5399 continue
5400 else
5401   echo "$as_me: failed program was:" >&5
5402 sed 's/^/| /' conftest.$ac_ext >&5
5403
5404   # Passes both tests.
5405 ac_preproc_ok=:
5406 break
5407 fi
5408 rm -f conftest.err conftest.$ac_ext
5409
5410 done
5411 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5412 rm -f conftest.err conftest.$ac_ext
5413 if $ac_preproc_ok; then
5414   :
5415 else
5416   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5417 See \`config.log' for more details." >&5
5418 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5419 See \`config.log' for more details." >&2;}
5420    { (exit 1); exit 1; }; }
5421 fi
5422
5423 ac_ext=c
5424 ac_cpp='$CPP $CPPFLAGS'
5425 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5426 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5427 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5428
5429
5430 echo "$as_me:$LINENO: checking for egrep" >&5
5431 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5432 if test "${ac_cv_prog_egrep+set}" = set; then
5433   echo $ECHO_N "(cached) $ECHO_C" >&6
5434 else
5435   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5436     then ac_cv_prog_egrep='grep -E'
5437     else ac_cv_prog_egrep='egrep'
5438     fi
5439 fi
5440 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5441 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5442  EGREP=$ac_cv_prog_egrep
5443
5444
5445 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5446 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5447 if test "${ac_cv_header_stdc+set}" = set; then
5448   echo $ECHO_N "(cached) $ECHO_C" >&6
5449 else
5450   cat >conftest.$ac_ext <<_ACEOF
5451 /* confdefs.h.  */
5452 _ACEOF
5453 cat confdefs.h >>conftest.$ac_ext
5454 cat >>conftest.$ac_ext <<_ACEOF
5455 /* end confdefs.h.  */
5456 #include <stdlib.h>
5457 #include <stdarg.h>
5458 #include <string.h>
5459 #include <float.h>
5460
5461 int
5462 main ()
5463 {
5464
5465   ;
5466   return 0;
5467 }
5468 _ACEOF
5469 rm -f conftest.$ac_objext
5470 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5471   (eval $ac_compile) 2>conftest.er1
5472   ac_status=$?
5473   grep -v '^ *+' conftest.er1 >conftest.err
5474   rm -f conftest.er1
5475   cat conftest.err >&5
5476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5477   (exit $ac_status); } &&
5478          { ac_try='test -z "$ac_c_werror_flag"
5479                          || test ! -s conftest.err'
5480   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5481   (eval $ac_try) 2>&5
5482   ac_status=$?
5483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5484   (exit $ac_status); }; } &&
5485          { ac_try='test -s conftest.$ac_objext'
5486   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5487   (eval $ac_try) 2>&5
5488   ac_status=$?
5489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5490   (exit $ac_status); }; }; then
5491   ac_cv_header_stdc=yes
5492 else
5493   echo "$as_me: failed program was:" >&5
5494 sed 's/^/| /' conftest.$ac_ext >&5
5495
5496 ac_cv_header_stdc=no
5497 fi
5498 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5499
5500 if test $ac_cv_header_stdc = yes; then
5501   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5502   cat >conftest.$ac_ext <<_ACEOF
5503 /* confdefs.h.  */
5504 _ACEOF
5505 cat confdefs.h >>conftest.$ac_ext
5506 cat >>conftest.$ac_ext <<_ACEOF
5507 /* end confdefs.h.  */
5508 #include <string.h>
5509
5510 _ACEOF
5511 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5512   $EGREP "memchr" >/dev/null 2>&1; then
5513   :
5514 else
5515   ac_cv_header_stdc=no
5516 fi
5517 rm -f conftest*
5518
5519 fi
5520
5521 if test $ac_cv_header_stdc = yes; then
5522   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5523   cat >conftest.$ac_ext <<_ACEOF
5524 /* confdefs.h.  */
5525 _ACEOF
5526 cat confdefs.h >>conftest.$ac_ext
5527 cat >>conftest.$ac_ext <<_ACEOF
5528 /* end confdefs.h.  */
5529 #include <stdlib.h>
5530
5531 _ACEOF
5532 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5533   $EGREP "free" >/dev/null 2>&1; then
5534   :
5535 else
5536   ac_cv_header_stdc=no
5537 fi
5538 rm -f conftest*
5539
5540 fi
5541
5542 if test $ac_cv_header_stdc = yes; then
5543   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5544   if test "$cross_compiling" = yes; then
5545   :
5546 else
5547   cat >conftest.$ac_ext <<_ACEOF
5548 /* confdefs.h.  */
5549 _ACEOF
5550 cat confdefs.h >>conftest.$ac_ext
5551 cat >>conftest.$ac_ext <<_ACEOF
5552 /* end confdefs.h.  */
5553 #include <ctype.h>
5554 #if ((' ' & 0x0FF) == 0x020)
5555 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5556 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5557 #else
5558 # define ISLOWER(c) \
5559                    (('a' <= (c) && (c) <= 'i') \
5560                      || ('j' <= (c) && (c) <= 'r') \
5561                      || ('s' <= (c) && (c) <= 'z'))
5562 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5563 #endif
5564
5565 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5566 int
5567 main ()
5568 {
5569   int i;
5570   for (i = 0; i < 256; i++)
5571     if (XOR (islower (i), ISLOWER (i))
5572         || toupper (i) != TOUPPER (i))
5573       exit(2);
5574   exit (0);
5575 }
5576 _ACEOF
5577 rm -f conftest$ac_exeext
5578 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5579   (eval $ac_link) 2>&5
5580   ac_status=$?
5581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5582   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5583   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5584   (eval $ac_try) 2>&5
5585   ac_status=$?
5586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5587   (exit $ac_status); }; }; then
5588   :
5589 else
5590   echo "$as_me: program exited with status $ac_status" >&5
5591 echo "$as_me: failed program was:" >&5
5592 sed 's/^/| /' conftest.$ac_ext >&5
5593
5594 ( exit $ac_status )
5595 ac_cv_header_stdc=no
5596 fi
5597 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5598 fi
5599 fi
5600 fi
5601 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5602 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5603 if test $ac_cv_header_stdc = yes; then
5604
5605 cat >>confdefs.h <<\_ACEOF
5606 #define STDC_HEADERS 1
5607 _ACEOF
5608
5609 fi
5610
5611 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5612 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
5613 if test "${ac_cv_c_const+set}" = set; then
5614   echo $ECHO_N "(cached) $ECHO_C" >&6
5615 else
5616   cat >conftest.$ac_ext <<_ACEOF
5617 /* confdefs.h.  */
5618 _ACEOF
5619 cat confdefs.h >>conftest.$ac_ext
5620 cat >>conftest.$ac_ext <<_ACEOF
5621 /* end confdefs.h.  */
5622
5623 int
5624 main ()
5625 {
5626 /* FIXME: Include the comments suggested by Paul. */
5627 #ifndef __cplusplus
5628   /* Ultrix mips cc rejects this.  */
5629   typedef int charset[2];
5630   const charset x;
5631   /* SunOS 4.1.1 cc rejects this.  */
5632   char const *const *ccp;
5633   char **p;
5634   /* NEC SVR4.0.2 mips cc rejects this.  */
5635   struct point {int x, y;};
5636   static struct point const zero = {0,0};
5637   /* AIX XL C 1.02.0.0 rejects this.
5638      It does not let you subtract one const X* pointer from another in
5639      an arm of an if-expression whose if-part is not a constant
5640      expression */
5641   const char *g = "string";
5642   ccp = &g + (g ? g-g : 0);
5643   /* HPUX 7.0 cc rejects these. */
5644   ++ccp;
5645   p = (char**) ccp;
5646   ccp = (char const *const *) p;
5647   { /* SCO 3.2v4 cc rejects this.  */
5648     char *t;
5649     char const *s = 0 ? (char *) 0 : (char const *) 0;
5650
5651     *t++ = 0;
5652   }
5653   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
5654     int x[] = {25, 17};
5655     const int *foo = &x[0];
5656     ++foo;
5657   }
5658   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5659     typedef const int *iptr;
5660     iptr p = 0;
5661     ++p;
5662   }
5663   { /* AIX XL C 1.02.0.0 rejects this saying
5664        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5665     struct s { int j; const int *ap[3]; };
5666     struct s *b; b->j = 5;
5667   }
5668   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5669     const int foo = 10;
5670   }
5671 #endif
5672
5673   ;
5674   return 0;
5675 }
5676 _ACEOF
5677 rm -f conftest.$ac_objext
5678 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5679   (eval $ac_compile) 2>conftest.er1
5680   ac_status=$?
5681   grep -v '^ *+' conftest.er1 >conftest.err
5682   rm -f conftest.er1
5683   cat conftest.err >&5
5684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5685   (exit $ac_status); } &&
5686          { ac_try='test -z "$ac_c_werror_flag"
5687                          || test ! -s conftest.err'
5688   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5689   (eval $ac_try) 2>&5
5690   ac_status=$?
5691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5692   (exit $ac_status); }; } &&
5693          { ac_try='test -s conftest.$ac_objext'
5694   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5695   (eval $ac_try) 2>&5
5696   ac_status=$?
5697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5698   (exit $ac_status); }; }; then
5699   ac_cv_c_const=yes
5700 else
5701   echo "$as_me: failed program was:" >&5
5702 sed 's/^/| /' conftest.$ac_ext >&5
5703
5704 ac_cv_c_const=no
5705 fi
5706 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5707 fi
5708 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5709 echo "${ECHO_T}$ac_cv_c_const" >&6
5710 if test $ac_cv_c_const = no; then
5711
5712 cat >>confdefs.h <<\_ACEOF
5713 #define const
5714 _ACEOF
5715
5716 fi
5717
5718 echo "$as_me:$LINENO: checking for inline" >&5
5719 echo $ECHO_N "checking for inline... $ECHO_C" >&6
5720 if test "${ac_cv_c_inline+set}" = set; then
5721   echo $ECHO_N "(cached) $ECHO_C" >&6
5722 else
5723   ac_cv_c_inline=no
5724 for ac_kw in inline __inline__ __inline; do
5725   cat >conftest.$ac_ext <<_ACEOF
5726 /* confdefs.h.  */
5727 _ACEOF
5728 cat confdefs.h >>conftest.$ac_ext
5729 cat >>conftest.$ac_ext <<_ACEOF
5730 /* end confdefs.h.  */
5731 #ifndef __cplusplus
5732 typedef int foo_t;
5733 static $ac_kw foo_t static_foo () {return 0; }
5734 $ac_kw foo_t foo () {return 0; }
5735 #endif
5736
5737 _ACEOF
5738 rm -f conftest.$ac_objext
5739 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5740   (eval $ac_compile) 2>conftest.er1
5741   ac_status=$?
5742   grep -v '^ *+' conftest.er1 >conftest.err
5743   rm -f conftest.er1
5744   cat conftest.err >&5
5745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5746   (exit $ac_status); } &&
5747          { ac_try='test -z "$ac_c_werror_flag"
5748                          || test ! -s conftest.err'
5749   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5750   (eval $ac_try) 2>&5
5751   ac_status=$?
5752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5753   (exit $ac_status); }; } &&
5754          { ac_try='test -s conftest.$ac_objext'
5755   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5756   (eval $ac_try) 2>&5
5757   ac_status=$?
5758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5759   (exit $ac_status); }; }; then
5760   ac_cv_c_inline=$ac_kw; break
5761 else
5762   echo "$as_me: failed program was:" >&5
5763 sed 's/^/| /' conftest.$ac_ext >&5
5764
5765 fi
5766 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5767 done
5768
5769 fi
5770 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5771 echo "${ECHO_T}$ac_cv_c_inline" >&6
5772
5773
5774 case $ac_cv_c_inline in
5775   inline | yes) ;;
5776   *)
5777     case $ac_cv_c_inline in
5778       no) ac_val=;;
5779       *) ac_val=$ac_cv_c_inline;;
5780     esac
5781     cat >>confdefs.h <<_ACEOF
5782 #ifndef __cplusplus
5783 #define inline $ac_val
5784 #endif
5785 _ACEOF
5786     ;;
5787 esac
5788
5789 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5790
5791
5792
5793
5794
5795
5796
5797
5798
5799 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5800                   inttypes.h stdint.h unistd.h
5801 do
5802 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5803 echo "$as_me:$LINENO: checking for $ac_header" >&5
5804 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5805 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5806   echo $ECHO_N "(cached) $ECHO_C" >&6
5807 else
5808   cat >conftest.$ac_ext <<_ACEOF
5809 /* confdefs.h.  */
5810 _ACEOF
5811 cat confdefs.h >>conftest.$ac_ext
5812 cat >>conftest.$ac_ext <<_ACEOF
5813 /* end confdefs.h.  */
5814 $ac_includes_default
5815
5816 #include <$ac_header>
5817 _ACEOF
5818 rm -f conftest.$ac_objext
5819 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5820   (eval $ac_compile) 2>conftest.er1
5821   ac_status=$?
5822   grep -v '^ *+' conftest.er1 >conftest.err
5823   rm -f conftest.er1
5824   cat conftest.err >&5
5825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5826   (exit $ac_status); } &&
5827          { ac_try='test -z "$ac_c_werror_flag"
5828                          || test ! -s conftest.err'
5829   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5830   (eval $ac_try) 2>&5
5831   ac_status=$?
5832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5833   (exit $ac_status); }; } &&
5834          { ac_try='test -s conftest.$ac_objext'
5835   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5836   (eval $ac_try) 2>&5
5837   ac_status=$?
5838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5839   (exit $ac_status); }; }; then
5840   eval "$as_ac_Header=yes"
5841 else
5842   echo "$as_me: failed program was:" >&5
5843 sed 's/^/| /' conftest.$ac_ext >&5
5844
5845 eval "$as_ac_Header=no"
5846 fi
5847 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5848 fi
5849 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5850 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5851 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5852   cat >>confdefs.h <<_ACEOF
5853 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5854 _ACEOF
5855
5856 fi
5857
5858 done
5859
5860
5861 echo "$as_me:$LINENO: checking for off_t" >&5
5862 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
5863 if test "${ac_cv_type_off_t+set}" = set; then
5864   echo $ECHO_N "(cached) $ECHO_C" >&6
5865 else
5866   cat >conftest.$ac_ext <<_ACEOF
5867 /* confdefs.h.  */
5868 _ACEOF
5869 cat confdefs.h >>conftest.$ac_ext
5870 cat >>conftest.$ac_ext <<_ACEOF
5871 /* end confdefs.h.  */
5872 $ac_includes_default
5873 int
5874 main ()
5875 {
5876 if ((off_t *) 0)
5877   return 0;
5878 if (sizeof (off_t))
5879   return 0;
5880   ;
5881   return 0;
5882 }
5883 _ACEOF
5884 rm -f conftest.$ac_objext
5885 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5886   (eval $ac_compile) 2>conftest.er1
5887   ac_status=$?
5888   grep -v '^ *+' conftest.er1 >conftest.err
5889   rm -f conftest.er1
5890   cat conftest.err >&5
5891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5892   (exit $ac_status); } &&
5893          { ac_try='test -z "$ac_c_werror_flag"
5894                          || test ! -s conftest.err'
5895   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5896   (eval $ac_try) 2>&5
5897   ac_status=$?
5898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5899   (exit $ac_status); }; } &&
5900          { ac_try='test -s conftest.$ac_objext'
5901   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5902   (eval $ac_try) 2>&5
5903   ac_status=$?
5904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5905   (exit $ac_status); }; }; then
5906   ac_cv_type_off_t=yes
5907 else
5908   echo "$as_me: failed program was:" >&5
5909 sed 's/^/| /' conftest.$ac_ext >&5
5910
5911 ac_cv_type_off_t=no
5912 fi
5913 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5914 fi
5915 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5916 echo "${ECHO_T}$ac_cv_type_off_t" >&6
5917 if test $ac_cv_type_off_t = yes; then
5918   :
5919 else
5920
5921 cat >>confdefs.h <<_ACEOF
5922 #define off_t long
5923 _ACEOF
5924
5925 fi
5926
5927 echo "$as_me:$LINENO: checking for size_t" >&5
5928 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
5929 if test "${ac_cv_type_size_t+set}" = set; then
5930   echo $ECHO_N "(cached) $ECHO_C" >&6
5931 else
5932   cat >conftest.$ac_ext <<_ACEOF
5933 /* confdefs.h.  */
5934 _ACEOF
5935 cat confdefs.h >>conftest.$ac_ext
5936 cat >>conftest.$ac_ext <<_ACEOF
5937 /* end confdefs.h.  */
5938 $ac_includes_default
5939 int
5940 main ()
5941 {
5942 if ((size_t *) 0)
5943   return 0;
5944 if (sizeof (size_t))
5945   return 0;
5946   ;
5947   return 0;
5948 }
5949 _ACEOF
5950 rm -f conftest.$ac_objext
5951 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5952   (eval $ac_compile) 2>conftest.er1
5953   ac_status=$?
5954   grep -v '^ *+' conftest.er1 >conftest.err
5955   rm -f conftest.er1
5956   cat conftest.err >&5
5957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5958   (exit $ac_status); } &&
5959          { ac_try='test -z "$ac_c_werror_flag"
5960                          || test ! -s conftest.err'
5961   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5962   (eval $ac_try) 2>&5
5963   ac_status=$?
5964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5965   (exit $ac_status); }; } &&
5966          { ac_try='test -s conftest.$ac_objext'
5967   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5968   (eval $ac_try) 2>&5
5969   ac_status=$?
5970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5971   (exit $ac_status); }; }; then
5972   ac_cv_type_size_t=yes
5973 else
5974   echo "$as_me: failed program was:" >&5
5975 sed 's/^/| /' conftest.$ac_ext >&5
5976
5977 ac_cv_type_size_t=no
5978 fi
5979 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5980 fi
5981 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
5982 echo "${ECHO_T}$ac_cv_type_size_t" >&6
5983 if test $ac_cv_type_size_t = yes; then
5984   :
5985 else
5986
5987 cat >>confdefs.h <<_ACEOF
5988 #define size_t unsigned
5989 _ACEOF
5990
5991 fi
5992
5993 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5994 # for constant arguments.  Useless!
5995 echo "$as_me:$LINENO: checking for working alloca.h" >&5
5996 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
5997 if test "${ac_cv_working_alloca_h+set}" = set; then
5998   echo $ECHO_N "(cached) $ECHO_C" >&6
5999 else
6000   cat >conftest.$ac_ext <<_ACEOF
6001 /* confdefs.h.  */
6002 _ACEOF
6003 cat confdefs.h >>conftest.$ac_ext
6004 cat >>conftest.$ac_ext <<_ACEOF
6005 /* end confdefs.h.  */
6006 #include <alloca.h>
6007 int
6008 main ()
6009 {
6010 char *p = (char *) alloca (2 * sizeof (int));
6011   ;
6012   return 0;
6013 }
6014 _ACEOF
6015 rm -f conftest.$ac_objext conftest$ac_exeext
6016 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6017   (eval $ac_link) 2>conftest.er1
6018   ac_status=$?
6019   grep -v '^ *+' conftest.er1 >conftest.err
6020   rm -f conftest.er1
6021   cat conftest.err >&5
6022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6023   (exit $ac_status); } &&
6024          { ac_try='test -z "$ac_c_werror_flag"
6025                          || test ! -s conftest.err'
6026   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6027   (eval $ac_try) 2>&5
6028   ac_status=$?
6029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6030   (exit $ac_status); }; } &&
6031          { ac_try='test -s conftest$ac_exeext'
6032   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6033   (eval $ac_try) 2>&5
6034   ac_status=$?
6035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6036   (exit $ac_status); }; }; then
6037   ac_cv_working_alloca_h=yes
6038 else
6039   echo "$as_me: failed program was:" >&5
6040 sed 's/^/| /' conftest.$ac_ext >&5
6041
6042 ac_cv_working_alloca_h=no
6043 fi
6044 rm -f conftest.err conftest.$ac_objext \
6045       conftest$ac_exeext conftest.$ac_ext
6046 fi
6047 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
6048 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
6049 if test $ac_cv_working_alloca_h = yes; then
6050
6051 cat >>confdefs.h <<\_ACEOF
6052 #define HAVE_ALLOCA_H 1
6053 _ACEOF
6054
6055 fi
6056
6057 echo "$as_me:$LINENO: checking for alloca" >&5
6058 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
6059 if test "${ac_cv_func_alloca_works+set}" = set; then
6060   echo $ECHO_N "(cached) $ECHO_C" >&6
6061 else
6062   cat >conftest.$ac_ext <<_ACEOF
6063 /* confdefs.h.  */
6064 _ACEOF
6065 cat confdefs.h >>conftest.$ac_ext
6066 cat >>conftest.$ac_ext <<_ACEOF
6067 /* end confdefs.h.  */
6068 #ifdef __GNUC__
6069 # define alloca __builtin_alloca
6070 #else
6071 # ifdef _MSC_VER
6072 #  include <malloc.h>
6073 #  define alloca _alloca
6074 # else
6075 #  if HAVE_ALLOCA_H
6076 #   include <alloca.h>
6077 #  else
6078 #   ifdef _AIX
6079  #pragma alloca
6080 #   else
6081 #    ifndef alloca /* predefined by HP cc +Olibcalls */
6082 char *alloca ();
6083 #    endif
6084 #   endif
6085 #  endif
6086 # endif
6087 #endif
6088
6089 int
6090 main ()
6091 {
6092 char *p = (char *) alloca (1);
6093   ;
6094   return 0;
6095 }
6096 _ACEOF
6097 rm -f conftest.$ac_objext conftest$ac_exeext
6098 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6099   (eval $ac_link) 2>conftest.er1
6100   ac_status=$?
6101   grep -v '^ *+' conftest.er1 >conftest.err
6102   rm -f conftest.er1
6103   cat conftest.err >&5
6104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6105   (exit $ac_status); } &&
6106          { ac_try='test -z "$ac_c_werror_flag"
6107                          || test ! -s conftest.err'
6108   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6109   (eval $ac_try) 2>&5
6110   ac_status=$?
6111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6112   (exit $ac_status); }; } &&
6113          { ac_try='test -s conftest$ac_exeext'
6114   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6115   (eval $ac_try) 2>&5
6116   ac_status=$?
6117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6118   (exit $ac_status); }; }; then
6119   ac_cv_func_alloca_works=yes
6120 else
6121   echo "$as_me: failed program was:" >&5
6122 sed 's/^/| /' conftest.$ac_ext >&5
6123
6124 ac_cv_func_alloca_works=no
6125 fi
6126 rm -f conftest.err conftest.$ac_objext \
6127       conftest$ac_exeext conftest.$ac_ext
6128 fi
6129 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
6130 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
6131
6132 if test $ac_cv_func_alloca_works = yes; then
6133
6134 cat >>confdefs.h <<\_ACEOF
6135 #define HAVE_ALLOCA 1
6136 _ACEOF
6137
6138 else
6139   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6140 # that cause trouble.  Some versions do not even contain alloca or
6141 # contain a buggy version.  If you still want to use their alloca,
6142 # use ar to extract alloca.o from them instead of compiling alloca.c.
6143
6144 ALLOCA=alloca.$ac_objext
6145
6146 cat >>confdefs.h <<\_ACEOF
6147 #define C_ALLOCA 1
6148 _ACEOF
6149
6150
6151 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
6152 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
6153 if test "${ac_cv_os_cray+set}" = set; then
6154   echo $ECHO_N "(cached) $ECHO_C" >&6
6155 else
6156   cat >conftest.$ac_ext <<_ACEOF
6157 /* confdefs.h.  */
6158 _ACEOF
6159 cat confdefs.h >>conftest.$ac_ext
6160 cat >>conftest.$ac_ext <<_ACEOF
6161 /* end confdefs.h.  */
6162 #if defined(CRAY) && ! defined(CRAY2)
6163 webecray
6164 #else
6165 wenotbecray
6166 #endif
6167
6168 _ACEOF
6169 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6170   $EGREP "webecray" >/dev/null 2>&1; then
6171   ac_cv_os_cray=yes
6172 else
6173   ac_cv_os_cray=no
6174 fi
6175 rm -f conftest*
6176
6177 fi
6178 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
6179 echo "${ECHO_T}$ac_cv_os_cray" >&6
6180 if test $ac_cv_os_cray = yes; then
6181   for ac_func in _getb67 GETB67 getb67; do
6182     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6183 echo "$as_me:$LINENO: checking for $ac_func" >&5
6184 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6185 if eval "test \"\${$as_ac_var+set}\" = set"; then
6186   echo $ECHO_N "(cached) $ECHO_C" >&6
6187 else
6188   cat >conftest.$ac_ext <<_ACEOF
6189 /* confdefs.h.  */
6190 _ACEOF
6191 cat confdefs.h >>conftest.$ac_ext
6192 cat >>conftest.$ac_ext <<_ACEOF
6193 /* end confdefs.h.  */
6194 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6195    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6196 #define $ac_func innocuous_$ac_func
6197
6198 /* System header to define __stub macros and hopefully few prototypes,
6199     which can conflict with char $ac_func (); below.
6200     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6201     <limits.h> exists even on freestanding compilers.  */
6202
6203 #ifdef __STDC__
6204 # include <limits.h>
6205 #else
6206 # include <assert.h>
6207 #endif
6208
6209 #undef $ac_func
6210
6211 /* Override any gcc2 internal prototype to avoid an error.  */
6212 #ifdef __cplusplus
6213 extern "C"
6214 {
6215 #endif
6216 /* We use char because int might match the return type of a gcc2
6217    builtin and then its argument prototype would still apply.  */
6218 char $ac_func ();
6219 /* The GNU C library defines this for functions which it implements
6220     to always fail with ENOSYS.  Some functions are actually named
6221     something starting with __ and the normal name is an alias.  */
6222 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6223 choke me
6224 #else
6225 char (*f) () = $ac_func;
6226 #endif
6227 #ifdef __cplusplus
6228 }
6229 #endif
6230
6231 int
6232 main ()
6233 {
6234 return f != $ac_func;
6235   ;
6236   return 0;
6237 }
6238 _ACEOF
6239 rm -f conftest.$ac_objext conftest$ac_exeext
6240 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6241   (eval $ac_link) 2>conftest.er1
6242   ac_status=$?
6243   grep -v '^ *+' conftest.er1 >conftest.err
6244   rm -f conftest.er1
6245   cat conftest.err >&5
6246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6247   (exit $ac_status); } &&
6248          { ac_try='test -z "$ac_c_werror_flag"
6249                          || test ! -s conftest.err'
6250   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6251   (eval $ac_try) 2>&5
6252   ac_status=$?
6253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6254   (exit $ac_status); }; } &&
6255          { ac_try='test -s conftest$ac_exeext'
6256   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6257   (eval $ac_try) 2>&5
6258   ac_status=$?
6259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6260   (exit $ac_status); }; }; then
6261   eval "$as_ac_var=yes"
6262 else
6263   echo "$as_me: failed program was:" >&5
6264 sed 's/^/| /' conftest.$ac_ext >&5
6265
6266 eval "$as_ac_var=no"
6267 fi
6268 rm -f conftest.err conftest.$ac_objext \
6269       conftest$ac_exeext conftest.$ac_ext
6270 fi
6271 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6272 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6273 if test `eval echo '${'$as_ac_var'}'` = yes; then
6274
6275 cat >>confdefs.h <<_ACEOF
6276 #define CRAY_STACKSEG_END $ac_func
6277 _ACEOF
6278
6279     break
6280 fi
6281
6282   done
6283 fi
6284
6285 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
6286 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
6287 if test "${ac_cv_c_stack_direction+set}" = set; then
6288   echo $ECHO_N "(cached) $ECHO_C" >&6
6289 else
6290   if test "$cross_compiling" = yes; then
6291   ac_cv_c_stack_direction=0
6292 else
6293   cat >conftest.$ac_ext <<_ACEOF
6294 /* confdefs.h.  */
6295 _ACEOF
6296 cat confdefs.h >>conftest.$ac_ext
6297 cat >>conftest.$ac_ext <<_ACEOF
6298 /* end confdefs.h.  */
6299 int
6300 find_stack_direction ()
6301 {
6302   static char *addr = 0;
6303   auto char dummy;
6304   if (addr == 0)
6305     {
6306       addr = &dummy;
6307       return find_stack_direction ();
6308     }
6309   else
6310     return (&dummy > addr) ? 1 : -1;
6311 }
6312
6313 int
6314 main ()
6315 {
6316   exit (find_stack_direction () < 0);
6317 }
6318 _ACEOF
6319 rm -f conftest$ac_exeext
6320 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6321   (eval $ac_link) 2>&5
6322   ac_status=$?
6323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6324   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6325   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6326   (eval $ac_try) 2>&5
6327   ac_status=$?
6328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6329   (exit $ac_status); }; }; then
6330   ac_cv_c_stack_direction=1
6331 else
6332   echo "$as_me: program exited with status $ac_status" >&5
6333 echo "$as_me: failed program was:" >&5
6334 sed 's/^/| /' conftest.$ac_ext >&5
6335
6336 ( exit $ac_status )
6337 ac_cv_c_stack_direction=-1
6338 fi
6339 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6340 fi
6341 fi
6342 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
6343 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
6344
6345 cat >>confdefs.h <<_ACEOF
6346 #define STACK_DIRECTION $ac_cv_c_stack_direction
6347 _ACEOF
6348
6349
6350 fi
6351
6352
6353
6354 for ac_header in stdlib.h unistd.h
6355 do
6356 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6357 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6358   echo "$as_me:$LINENO: checking for $ac_header" >&5
6359 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6360 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6361   echo $ECHO_N "(cached) $ECHO_C" >&6
6362 fi
6363 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6364 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6365 else
6366   # Is the header compilable?
6367 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6368 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6369 cat >conftest.$ac_ext <<_ACEOF
6370 /* confdefs.h.  */
6371 _ACEOF
6372 cat confdefs.h >>conftest.$ac_ext
6373 cat >>conftest.$ac_ext <<_ACEOF
6374 /* end confdefs.h.  */
6375 $ac_includes_default
6376 #include <$ac_header>
6377 _ACEOF
6378 rm -f conftest.$ac_objext
6379 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6380   (eval $ac_compile) 2>conftest.er1
6381   ac_status=$?
6382   grep -v '^ *+' conftest.er1 >conftest.err
6383   rm -f conftest.er1
6384   cat conftest.err >&5
6385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6386   (exit $ac_status); } &&
6387          { ac_try='test -z "$ac_c_werror_flag"
6388                          || test ! -s conftest.err'
6389   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6390   (eval $ac_try) 2>&5
6391   ac_status=$?
6392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6393   (exit $ac_status); }; } &&
6394          { ac_try='test -s conftest.$ac_objext'
6395   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6396   (eval $ac_try) 2>&5
6397   ac_status=$?
6398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6399   (exit $ac_status); }; }; then
6400   ac_header_compiler=yes
6401 else
6402   echo "$as_me: failed program was:" >&5
6403 sed 's/^/| /' conftest.$ac_ext >&5
6404
6405 ac_header_compiler=no
6406 fi
6407 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6408 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6409 echo "${ECHO_T}$ac_header_compiler" >&6
6410
6411 # Is the header present?
6412 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6413 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6414 cat >conftest.$ac_ext <<_ACEOF
6415 /* confdefs.h.  */
6416 _ACEOF
6417 cat confdefs.h >>conftest.$ac_ext
6418 cat >>conftest.$ac_ext <<_ACEOF
6419 /* end confdefs.h.  */
6420 #include <$ac_header>
6421 _ACEOF
6422 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6423   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6424   ac_status=$?
6425   grep -v '^ *+' conftest.er1 >conftest.err
6426   rm -f conftest.er1
6427   cat conftest.err >&5
6428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6429   (exit $ac_status); } >/dev/null; then
6430   if test -s conftest.err; then
6431     ac_cpp_err=$ac_c_preproc_warn_flag
6432     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6433   else
6434     ac_cpp_err=
6435   fi
6436 else
6437   ac_cpp_err=yes
6438 fi
6439 if test -z "$ac_cpp_err"; then
6440   ac_header_preproc=yes
6441 else
6442   echo "$as_me: failed program was:" >&5
6443 sed 's/^/| /' conftest.$ac_ext >&5
6444
6445   ac_header_preproc=no
6446 fi
6447 rm -f conftest.err conftest.$ac_ext
6448 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6449 echo "${ECHO_T}$ac_header_preproc" >&6
6450
6451 # So?  What about this header?
6452 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6453   yes:no: )
6454     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6455 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6456     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6457 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6458     ac_header_preproc=yes
6459     ;;
6460   no:yes:* )
6461     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6462 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6463     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6464 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6465     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6466 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6467     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6468 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6469     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6470 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6471     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6472 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6473     (
6474       cat <<\_ASBOX
6475 ## ------------------------------------------ ##
6476 ## Report this to the AC_PACKAGE_NAME lists.  ##
6477 ## ------------------------------------------ ##
6478 _ASBOX
6479     ) |
6480       sed "s/^/$as_me: WARNING:     /" >&2
6481     ;;
6482 esac
6483 echo "$as_me:$LINENO: checking for $ac_header" >&5
6484 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6485 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6486   echo $ECHO_N "(cached) $ECHO_C" >&6
6487 else
6488   eval "$as_ac_Header=\$ac_header_preproc"
6489 fi
6490 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6491 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6492
6493 fi
6494 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6495   cat >>confdefs.h <<_ACEOF
6496 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6497 _ACEOF
6498
6499 fi
6500
6501 done
6502
6503
6504 for ac_func in getpagesize
6505 do
6506 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6507 echo "$as_me:$LINENO: checking for $ac_func" >&5
6508 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6509 if eval "test \"\${$as_ac_var+set}\" = set"; then
6510   echo $ECHO_N "(cached) $ECHO_C" >&6
6511 else
6512   cat >conftest.$ac_ext <<_ACEOF
6513 /* confdefs.h.  */
6514 _ACEOF
6515 cat confdefs.h >>conftest.$ac_ext
6516 cat >>conftest.$ac_ext <<_ACEOF
6517 /* end confdefs.h.  */
6518 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6519    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6520 #define $ac_func innocuous_$ac_func
6521
6522 /* System header to define __stub macros and hopefully few prototypes,
6523     which can conflict with char $ac_func (); below.
6524     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6525     <limits.h> exists even on freestanding compilers.  */
6526
6527 #ifdef __STDC__
6528 # include <limits.h>
6529 #else
6530 # include <assert.h>
6531 #endif
6532
6533 #undef $ac_func
6534
6535 /* Override any gcc2 internal prototype to avoid an error.  */
6536 #ifdef __cplusplus
6537 extern "C"
6538 {
6539 #endif
6540 /* We use char because int might match the return type of a gcc2
6541    builtin and then its argument prototype would still apply.  */
6542 char $ac_func ();
6543 /* The GNU C library defines this for functions which it implements
6544     to always fail with ENOSYS.  Some functions are actually named
6545     something starting with __ and the normal name is an alias.  */
6546 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6547 choke me
6548 #else
6549 char (*f) () = $ac_func;
6550 #endif
6551 #ifdef __cplusplus
6552 }
6553 #endif
6554
6555 int
6556 main ()
6557 {
6558 return f != $ac_func;
6559   ;
6560   return 0;
6561 }
6562 _ACEOF
6563 rm -f conftest.$ac_objext conftest$ac_exeext
6564 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6565   (eval $ac_link) 2>conftest.er1
6566   ac_status=$?
6567   grep -v '^ *+' conftest.er1 >conftest.err
6568   rm -f conftest.er1
6569   cat conftest.err >&5
6570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6571   (exit $ac_status); } &&
6572          { ac_try='test -z "$ac_c_werror_flag"
6573                          || test ! -s conftest.err'
6574   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6575   (eval $ac_try) 2>&5
6576   ac_status=$?
6577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6578   (exit $ac_status); }; } &&
6579          { ac_try='test -s conftest$ac_exeext'
6580   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6581   (eval $ac_try) 2>&5
6582   ac_status=$?
6583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6584   (exit $ac_status); }; }; then
6585   eval "$as_ac_var=yes"
6586 else
6587   echo "$as_me: failed program was:" >&5
6588 sed 's/^/| /' conftest.$ac_ext >&5
6589
6590 eval "$as_ac_var=no"
6591 fi
6592 rm -f conftest.err conftest.$ac_objext \
6593       conftest$ac_exeext conftest.$ac_ext
6594 fi
6595 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6596 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6597 if test `eval echo '${'$as_ac_var'}'` = yes; then
6598   cat >>confdefs.h <<_ACEOF
6599 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6600 _ACEOF
6601
6602 fi
6603 done
6604
6605 echo "$as_me:$LINENO: checking for working mmap" >&5
6606 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
6607 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
6608   echo $ECHO_N "(cached) $ECHO_C" >&6
6609 else
6610   if test "$cross_compiling" = yes; then
6611   ac_cv_func_mmap_fixed_mapped=no
6612 else
6613   cat >conftest.$ac_ext <<_ACEOF
6614 /* confdefs.h.  */
6615 _ACEOF
6616 cat confdefs.h >>conftest.$ac_ext
6617 cat >>conftest.$ac_ext <<_ACEOF
6618 /* end confdefs.h.  */
6619 $ac_includes_default
6620 /* malloc might have been renamed as rpl_malloc. */
6621 #undef malloc
6622
6623 /* Thanks to Mike Haertel and Jim Avera for this test.
6624    Here is a matrix of mmap possibilities:
6625         mmap private not fixed
6626         mmap private fixed at somewhere currently unmapped
6627         mmap private fixed at somewhere already mapped
6628         mmap shared not fixed
6629         mmap shared fixed at somewhere currently unmapped
6630         mmap shared fixed at somewhere already mapped
6631    For private mappings, we should verify that changes cannot be read()
6632    back from the file, nor mmap's back from the file at a different
6633    address.  (There have been systems where private was not correctly
6634    implemented like the infamous i386 svr4.0, and systems where the
6635    VM page cache was not coherent with the file system buffer cache
6636    like early versions of FreeBSD and possibly contemporary NetBSD.)
6637    For shared mappings, we should conversely verify that changes get
6638    propagated back to all the places they're supposed to be.
6639
6640    Grep wants private fixed already mapped.
6641    The main things grep needs to know about mmap are:
6642    * does it exist and is it safe to write into the mmap'd area
6643    * how to use it (BSD variants)  */
6644
6645 #include <fcntl.h>
6646 #include <sys/mman.h>
6647
6648 #if !STDC_HEADERS && !HAVE_STDLIB_H
6649 char *malloc ();
6650 #endif
6651
6652 /* This mess was copied from the GNU getpagesize.h.  */
6653 #if !HAVE_GETPAGESIZE
6654 /* Assume that all systems that can run configure have sys/param.h.  */
6655 # if !HAVE_SYS_PARAM_H
6656 #  define HAVE_SYS_PARAM_H 1
6657 # endif
6658
6659 # ifdef _SC_PAGESIZE
6660 #  define getpagesize() sysconf(_SC_PAGESIZE)
6661 # else /* no _SC_PAGESIZE */
6662 #  if HAVE_SYS_PARAM_H
6663 #   include <sys/param.h>
6664 #   ifdef EXEC_PAGESIZE
6665 #    define getpagesize() EXEC_PAGESIZE
6666 #   else /* no EXEC_PAGESIZE */
6667 #    ifdef NBPG
6668 #     define getpagesize() NBPG * CLSIZE
6669 #     ifndef CLSIZE
6670 #      define CLSIZE 1
6671 #     endif /* no CLSIZE */
6672 #    else /* no NBPG */
6673 #     ifdef NBPC
6674 #      define getpagesize() NBPC
6675 #     else /* no NBPC */
6676 #      ifdef PAGESIZE
6677 #       define getpagesize() PAGESIZE
6678 #      endif /* PAGESIZE */
6679 #     endif /* no NBPC */
6680 #    endif /* no NBPG */
6681 #   endif /* no EXEC_PAGESIZE */
6682 #  else /* no HAVE_SYS_PARAM_H */
6683 #   define getpagesize() 8192   /* punt totally */
6684 #  endif /* no HAVE_SYS_PARAM_H */
6685 # endif /* no _SC_PAGESIZE */
6686
6687 #endif /* no HAVE_GETPAGESIZE */
6688
6689 int
6690 main ()
6691 {
6692   char *data, *data2, *data3;
6693   int i, pagesize;
6694   int fd;
6695
6696   pagesize = getpagesize ();
6697
6698   /* First, make a file with some known garbage in it. */
6699   data = (char *) malloc (pagesize);
6700   if (!data)
6701     exit (1);
6702   for (i = 0; i < pagesize; ++i)
6703     *(data + i) = rand ();
6704   umask (0);
6705   fd = creat ("conftest.mmap", 0600);
6706   if (fd < 0)
6707     exit (1);
6708   if (write (fd, data, pagesize) != pagesize)
6709     exit (1);
6710   close (fd);
6711
6712   /* Next, try to mmap the file at a fixed address which already has
6713      something else allocated at it.  If we can, also make sure that
6714      we see the same garbage.  */
6715   fd = open ("conftest.mmap", O_RDWR);
6716   if (fd < 0)
6717     exit (1);
6718   data2 = (char *) malloc (2 * pagesize);
6719   if (!data2)
6720     exit (1);
6721   data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
6722   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6723                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
6724     exit (1);
6725   for (i = 0; i < pagesize; ++i)
6726     if (*(data + i) != *(data2 + i))
6727       exit (1);
6728
6729   /* Finally, make sure that changes to the mapped area do not
6730      percolate back to the file as seen by read().  (This is a bug on
6731      some variants of i386 svr4.0.)  */
6732   for (i = 0; i < pagesize; ++i)
6733     *(data2 + i) = *(data2 + i) + 1;
6734   data3 = (char *) malloc (pagesize);
6735   if (!data3)
6736     exit (1);
6737   if (read (fd, data3, pagesize) != pagesize)
6738     exit (1);
6739   for (i = 0; i < pagesize; ++i)
6740     if (*(data + i) != *(data3 + i))
6741       exit (1);
6742   close (fd);
6743   exit (0);
6744 }
6745 _ACEOF
6746 rm -f conftest$ac_exeext
6747 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6748   (eval $ac_link) 2>&5
6749   ac_status=$?
6750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6751   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6752   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6753   (eval $ac_try) 2>&5
6754   ac_status=$?
6755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6756   (exit $ac_status); }; }; then
6757   ac_cv_func_mmap_fixed_mapped=yes
6758 else
6759   echo "$as_me: program exited with status $ac_status" >&5
6760 echo "$as_me: failed program was:" >&5
6761 sed 's/^/| /' conftest.$ac_ext >&5
6762
6763 ( exit $ac_status )
6764 ac_cv_func_mmap_fixed_mapped=no
6765 fi
6766 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6767 fi
6768 fi
6769 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
6770 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
6771 if test $ac_cv_func_mmap_fixed_mapped = yes; then
6772
6773 cat >>confdefs.h <<\_ACEOF
6774 #define HAVE_MMAP 1
6775 _ACEOF
6776
6777 fi
6778 rm -f conftest.mmap
6779
6780
6781
6782
6783
6784
6785
6786
6787
6788
6789
6790 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h string.h \
6791 unistd.h values.h sys/param.h
6792 do
6793 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6794 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6795   echo "$as_me:$LINENO: checking for $ac_header" >&5
6796 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6797 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6798   echo $ECHO_N "(cached) $ECHO_C" >&6
6799 fi
6800 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6801 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6802 else
6803   # Is the header compilable?
6804 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6805 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6806 cat >conftest.$ac_ext <<_ACEOF
6807 /* confdefs.h.  */
6808 _ACEOF
6809 cat confdefs.h >>conftest.$ac_ext
6810 cat >>conftest.$ac_ext <<_ACEOF
6811 /* end confdefs.h.  */
6812 $ac_includes_default
6813 #include <$ac_header>
6814 _ACEOF
6815 rm -f conftest.$ac_objext
6816 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6817   (eval $ac_compile) 2>conftest.er1
6818   ac_status=$?
6819   grep -v '^ *+' conftest.er1 >conftest.err
6820   rm -f conftest.er1
6821   cat conftest.err >&5
6822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6823   (exit $ac_status); } &&
6824          { ac_try='test -z "$ac_c_werror_flag"
6825                          || test ! -s conftest.err'
6826   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6827   (eval $ac_try) 2>&5
6828   ac_status=$?
6829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6830   (exit $ac_status); }; } &&
6831          { ac_try='test -s conftest.$ac_objext'
6832   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6833   (eval $ac_try) 2>&5
6834   ac_status=$?
6835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6836   (exit $ac_status); }; }; then
6837   ac_header_compiler=yes
6838 else
6839   echo "$as_me: failed program was:" >&5
6840 sed 's/^/| /' conftest.$ac_ext >&5
6841
6842 ac_header_compiler=no
6843 fi
6844 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6845 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6846 echo "${ECHO_T}$ac_header_compiler" >&6
6847
6848 # Is the header present?
6849 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6850 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6851 cat >conftest.$ac_ext <<_ACEOF
6852 /* confdefs.h.  */
6853 _ACEOF
6854 cat confdefs.h >>conftest.$ac_ext
6855 cat >>conftest.$ac_ext <<_ACEOF
6856 /* end confdefs.h.  */
6857 #include <$ac_header>
6858 _ACEOF
6859 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6860   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6861   ac_status=$?
6862   grep -v '^ *+' conftest.er1 >conftest.err
6863   rm -f conftest.er1
6864   cat conftest.err >&5
6865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6866   (exit $ac_status); } >/dev/null; then
6867   if test -s conftest.err; then
6868     ac_cpp_err=$ac_c_preproc_warn_flag
6869     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6870   else
6871     ac_cpp_err=
6872   fi
6873 else
6874   ac_cpp_err=yes
6875 fi
6876 if test -z "$ac_cpp_err"; then
6877   ac_header_preproc=yes
6878 else
6879   echo "$as_me: failed program was:" >&5
6880 sed 's/^/| /' conftest.$ac_ext >&5
6881
6882   ac_header_preproc=no
6883 fi
6884 rm -f conftest.err conftest.$ac_ext
6885 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6886 echo "${ECHO_T}$ac_header_preproc" >&6
6887
6888 # So?  What about this header?
6889 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6890   yes:no: )
6891     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6892 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6893     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6894 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6895     ac_header_preproc=yes
6896     ;;
6897   no:yes:* )
6898     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6899 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6900     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6901 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6902     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6903 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6904     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6905 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6906     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6907 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6908     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6909 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6910     (
6911       cat <<\_ASBOX
6912 ## ------------------------------------------ ##
6913 ## Report this to the AC_PACKAGE_NAME lists.  ##
6914 ## ------------------------------------------ ##
6915 _ASBOX
6916     ) |
6917       sed "s/^/$as_me: WARNING:     /" >&2
6918     ;;
6919 esac
6920 echo "$as_me:$LINENO: checking for $ac_header" >&5
6921 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6922 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6923   echo $ECHO_N "(cached) $ECHO_C" >&6
6924 else
6925   eval "$as_ac_Header=\$ac_header_preproc"
6926 fi
6927 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6928 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6929
6930 fi
6931 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6932   cat >>confdefs.h <<_ACEOF
6933 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6934 _ACEOF
6935
6936 fi
6937
6938 done
6939
6940
6941
6942
6943
6944
6945
6946
6947
6948
6949
6950 for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
6951 __argz_count __argz_stringify __argz_next
6952 do
6953 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6954 echo "$as_me:$LINENO: checking for $ac_func" >&5
6955 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6956 if eval "test \"\${$as_ac_var+set}\" = set"; then
6957   echo $ECHO_N "(cached) $ECHO_C" >&6
6958 else
6959   cat >conftest.$ac_ext <<_ACEOF
6960 /* confdefs.h.  */
6961 _ACEOF
6962 cat confdefs.h >>conftest.$ac_ext
6963 cat >>conftest.$ac_ext <<_ACEOF
6964 /* end confdefs.h.  */
6965 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6966    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6967 #define $ac_func innocuous_$ac_func
6968
6969 /* System header to define __stub macros and hopefully few prototypes,
6970     which can conflict with char $ac_func (); below.
6971     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6972     <limits.h> exists even on freestanding compilers.  */
6973
6974 #ifdef __STDC__
6975 # include <limits.h>
6976 #else
6977 # include <assert.h>
6978 #endif
6979
6980 #undef $ac_func
6981
6982 /* Override any gcc2 internal prototype to avoid an error.  */
6983 #ifdef __cplusplus
6984 extern "C"
6985 {
6986 #endif
6987 /* We use char because int might match the return type of a gcc2
6988    builtin and then its argument prototype would still apply.  */
6989 char $ac_func ();
6990 /* The GNU C library defines this for functions which it implements
6991     to always fail with ENOSYS.  Some functions are actually named
6992     something starting with __ and the normal name is an alias.  */
6993 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6994 choke me
6995 #else
6996 char (*f) () = $ac_func;
6997 #endif
6998 #ifdef __cplusplus
6999 }
7000 #endif
7001
7002 int
7003 main ()
7004 {
7005 return f != $ac_func;
7006   ;
7007   return 0;
7008 }
7009 _ACEOF
7010 rm -f conftest.$ac_objext conftest$ac_exeext
7011 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7012   (eval $ac_link) 2>conftest.er1
7013   ac_status=$?
7014   grep -v '^ *+' conftest.er1 >conftest.err
7015   rm -f conftest.er1
7016   cat conftest.err >&5
7017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7018   (exit $ac_status); } &&
7019          { ac_try='test -z "$ac_c_werror_flag"
7020                          || test ! -s conftest.err'
7021   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7022   (eval $ac_try) 2>&5
7023   ac_status=$?
7024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7025   (exit $ac_status); }; } &&
7026          { ac_try='test -s conftest$ac_exeext'
7027   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7028   (eval $ac_try) 2>&5
7029   ac_status=$?
7030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7031   (exit $ac_status); }; }; then
7032   eval "$as_ac_var=yes"
7033 else
7034   echo "$as_me: failed program was:" >&5
7035 sed 's/^/| /' conftest.$ac_ext >&5
7036
7037 eval "$as_ac_var=no"
7038 fi
7039 rm -f conftest.err conftest.$ac_objext \
7040       conftest$ac_exeext conftest.$ac_ext
7041 fi
7042 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7043 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7044 if test `eval echo '${'$as_ac_var'}'` = yes; then
7045   cat >>confdefs.h <<_ACEOF
7046 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7047 _ACEOF
7048
7049 fi
7050 done
7051
7052
7053    if test "${ac_cv_func_stpcpy+set}" != "set"; then
7054
7055 for ac_func in stpcpy
7056 do
7057 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7058 echo "$as_me:$LINENO: checking for $ac_func" >&5
7059 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7060 if eval "test \"\${$as_ac_var+set}\" = set"; then
7061   echo $ECHO_N "(cached) $ECHO_C" >&6
7062 else
7063   cat >conftest.$ac_ext <<_ACEOF
7064 /* confdefs.h.  */
7065 _ACEOF
7066 cat confdefs.h >>conftest.$ac_ext
7067 cat >>conftest.$ac_ext <<_ACEOF
7068 /* end confdefs.h.  */
7069 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7070    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7071 #define $ac_func innocuous_$ac_func
7072
7073 /* System header to define __stub macros and hopefully few prototypes,
7074     which can conflict with char $ac_func (); below.
7075     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7076     <limits.h> exists even on freestanding compilers.  */
7077
7078 #ifdef __STDC__
7079 # include <limits.h>
7080 #else
7081 # include <assert.h>
7082 #endif
7083
7084 #undef $ac_func
7085
7086 /* Override any gcc2 internal prototype to avoid an error.  */
7087 #ifdef __cplusplus
7088 extern "C"
7089 {
7090 #endif
7091 /* We use char because int might match the return type of a gcc2
7092    builtin and then its argument prototype would still apply.  */
7093 char $ac_func ();
7094 /* The GNU C library defines this for functions which it implements
7095     to always fail with ENOSYS.  Some functions are actually named
7096     something starting with __ and the normal name is an alias.  */
7097 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7098 choke me
7099 #else
7100 char (*f) () = $ac_func;
7101 #endif
7102 #ifdef __cplusplus
7103 }
7104 #endif
7105
7106 int
7107 main ()
7108 {
7109 return f != $ac_func;
7110   ;
7111   return 0;
7112 }
7113 _ACEOF
7114 rm -f conftest.$ac_objext conftest$ac_exeext
7115 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7116   (eval $ac_link) 2>conftest.er1
7117   ac_status=$?
7118   grep -v '^ *+' conftest.er1 >conftest.err
7119   rm -f conftest.er1
7120   cat conftest.err >&5
7121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7122   (exit $ac_status); } &&
7123          { ac_try='test -z "$ac_c_werror_flag"
7124                          || test ! -s conftest.err'
7125   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7126   (eval $ac_try) 2>&5
7127   ac_status=$?
7128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7129   (exit $ac_status); }; } &&
7130          { ac_try='test -s conftest$ac_exeext'
7131   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7132   (eval $ac_try) 2>&5
7133   ac_status=$?
7134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7135   (exit $ac_status); }; }; then
7136   eval "$as_ac_var=yes"
7137 else
7138   echo "$as_me: failed program was:" >&5
7139 sed 's/^/| /' conftest.$ac_ext >&5
7140
7141 eval "$as_ac_var=no"
7142 fi
7143 rm -f conftest.err conftest.$ac_objext \
7144       conftest$ac_exeext conftest.$ac_ext
7145 fi
7146 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7147 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7148 if test `eval echo '${'$as_ac_var'}'` = yes; then
7149   cat >>confdefs.h <<_ACEOF
7150 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7151 _ACEOF
7152
7153 fi
7154 done
7155
7156    fi
7157    if test "${ac_cv_func_stpcpy}" = "yes"; then
7158
7159 cat >>confdefs.h <<\_ACEOF
7160 #define HAVE_STPCPY 1
7161 _ACEOF
7162
7163    fi
7164
7165    if test $ac_cv_header_locale_h = yes; then
7166     echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
7167 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
7168 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
7169   echo $ECHO_N "(cached) $ECHO_C" >&6
7170 else
7171   cat >conftest.$ac_ext <<_ACEOF
7172 /* confdefs.h.  */
7173 _ACEOF
7174 cat confdefs.h >>conftest.$ac_ext
7175 cat >>conftest.$ac_ext <<_ACEOF
7176 /* end confdefs.h.  */
7177 #include <locale.h>
7178 int
7179 main ()
7180 {
7181 return LC_MESSAGES
7182   ;
7183   return 0;
7184 }
7185 _ACEOF
7186 rm -f conftest.$ac_objext conftest$ac_exeext
7187 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7188   (eval $ac_link) 2>conftest.er1
7189   ac_status=$?
7190   grep -v '^ *+' conftest.er1 >conftest.err
7191   rm -f conftest.er1
7192   cat conftest.err >&5
7193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7194   (exit $ac_status); } &&
7195          { ac_try='test -z "$ac_c_werror_flag"
7196                          || test ! -s conftest.err'
7197   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7198   (eval $ac_try) 2>&5
7199   ac_status=$?
7200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7201   (exit $ac_status); }; } &&
7202          { ac_try='test -s conftest$ac_exeext'
7203   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7204   (eval $ac_try) 2>&5
7205   ac_status=$?
7206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7207   (exit $ac_status); }; }; then
7208   am_cv_val_LC_MESSAGES=yes
7209 else
7210   echo "$as_me: failed program was:" >&5
7211 sed 's/^/| /' conftest.$ac_ext >&5
7212
7213 am_cv_val_LC_MESSAGES=no
7214 fi
7215 rm -f conftest.err conftest.$ac_objext \
7216       conftest$ac_exeext conftest.$ac_ext
7217 fi
7218 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
7219 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
7220     if test $am_cv_val_LC_MESSAGES = yes; then
7221
7222 cat >>confdefs.h <<\_ACEOF
7223 #define HAVE_LC_MESSAGES 1
7224 _ACEOF
7225
7226     fi
7227   fi
7228    echo "$as_me:$LINENO: checking whether NLS is requested" >&5
7229 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
7230         # Check whether --enable-nls or --disable-nls was given.
7231 if test "${enable_nls+set}" = set; then
7232   enableval="$enable_nls"
7233   USE_NLS=$enableval
7234 else
7235   USE_NLS=yes
7236 fi;
7237     echo "$as_me:$LINENO: result: $USE_NLS" >&5
7238 echo "${ECHO_T}$USE_NLS" >&6
7239
7240
7241     USE_INCLUDED_LIBINTL=no
7242
7243         if test "$USE_NLS" = "yes"; then
7244
7245 cat >>confdefs.h <<\_ACEOF
7246 #define ENABLE_NLS 1
7247 _ACEOF
7248
7249       echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
7250 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
7251
7252 # Check whether --with-included-gettext or --without-included-gettext was given.
7253 if test "${with_included_gettext+set}" = set; then
7254   withval="$with_included_gettext"
7255   nls_cv_force_use_gnu_gettext=$withval
7256 else
7257   nls_cv_force_use_gnu_gettext=no
7258 fi;
7259       echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
7260 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
7261
7262       nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
7263       if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
7264                                         nls_cv_header_intl=
7265         nls_cv_header_libgt=
7266         CATOBJEXT=NONE
7267
7268         if test "${ac_cv_header_libintl_h+set}" = set; then
7269   echo "$as_me:$LINENO: checking for libintl.h" >&5
7270 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
7271 if test "${ac_cv_header_libintl_h+set}" = set; then
7272   echo $ECHO_N "(cached) $ECHO_C" >&6
7273 fi
7274 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
7275 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
7276 else
7277   # Is the header compilable?
7278 echo "$as_me:$LINENO: checking libintl.h usability" >&5
7279 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
7280 cat >conftest.$ac_ext <<_ACEOF
7281 /* confdefs.h.  */
7282 _ACEOF
7283 cat confdefs.h >>conftest.$ac_ext
7284 cat >>conftest.$ac_ext <<_ACEOF
7285 /* end confdefs.h.  */
7286 $ac_includes_default
7287 #include <libintl.h>
7288 _ACEOF
7289 rm -f conftest.$ac_objext
7290 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7291   (eval $ac_compile) 2>conftest.er1
7292   ac_status=$?
7293   grep -v '^ *+' conftest.er1 >conftest.err
7294   rm -f conftest.er1
7295   cat conftest.err >&5
7296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7297   (exit $ac_status); } &&
7298          { ac_try='test -z "$ac_c_werror_flag"
7299                          || test ! -s conftest.err'
7300   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7301   (eval $ac_try) 2>&5
7302   ac_status=$?
7303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7304   (exit $ac_status); }; } &&
7305          { ac_try='test -s conftest.$ac_objext'
7306   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7307   (eval $ac_try) 2>&5
7308   ac_status=$?
7309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7310   (exit $ac_status); }; }; then
7311   ac_header_compiler=yes
7312 else
7313   echo "$as_me: failed program was:" >&5
7314 sed 's/^/| /' conftest.$ac_ext >&5
7315
7316 ac_header_compiler=no
7317 fi
7318 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7319 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7320 echo "${ECHO_T}$ac_header_compiler" >&6
7321
7322 # Is the header present?
7323 echo "$as_me:$LINENO: checking libintl.h presence" >&5
7324 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
7325 cat >conftest.$ac_ext <<_ACEOF
7326 /* confdefs.h.  */
7327 _ACEOF
7328 cat confdefs.h >>conftest.$ac_ext
7329 cat >>conftest.$ac_ext <<_ACEOF
7330 /* end confdefs.h.  */
7331 #include <libintl.h>
7332 _ACEOF
7333 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7334   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7335   ac_status=$?
7336   grep -v '^ *+' conftest.er1 >conftest.err
7337   rm -f conftest.er1
7338   cat conftest.err >&5
7339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7340   (exit $ac_status); } >/dev/null; then
7341   if test -s conftest.err; then
7342     ac_cpp_err=$ac_c_preproc_warn_flag
7343     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7344   else
7345     ac_cpp_err=
7346   fi
7347 else
7348   ac_cpp_err=yes
7349 fi
7350 if test -z "$ac_cpp_err"; then
7351   ac_header_preproc=yes
7352 else
7353   echo "$as_me: failed program was:" >&5
7354 sed 's/^/| /' conftest.$ac_ext >&5
7355
7356   ac_header_preproc=no
7357 fi
7358 rm -f conftest.err conftest.$ac_ext
7359 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7360 echo "${ECHO_T}$ac_header_preproc" >&6
7361
7362 # So?  What about this header?
7363 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7364   yes:no: )
7365     { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
7366 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7367     { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
7368 echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
7369     ac_header_preproc=yes
7370     ;;
7371   no:yes:* )
7372     { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
7373 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
7374     { echo "$as_me:$LINENO: WARNING: libintl.h:     check for missing prerequisite headers?" >&5
7375 echo "$as_me: WARNING: libintl.h:     check for missing prerequisite headers?" >&2;}
7376     { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
7377 echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
7378     { echo "$as_me:$LINENO: WARNING: libintl.h:     section \"Present But Cannot Be Compiled\"" >&5
7379 echo "$as_me: WARNING: libintl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
7380     { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
7381 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
7382     { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
7383 echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
7384     (
7385       cat <<\_ASBOX
7386 ## ------------------------------------------ ##
7387 ## Report this to the AC_PACKAGE_NAME lists.  ##
7388 ## ------------------------------------------ ##
7389 _ASBOX
7390     ) |
7391       sed "s/^/$as_me: WARNING:     /" >&2
7392     ;;
7393 esac
7394 echo "$as_me:$LINENO: checking for libintl.h" >&5
7395 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
7396 if test "${ac_cv_header_libintl_h+set}" = set; then
7397   echo $ECHO_N "(cached) $ECHO_C" >&6
7398 else
7399   ac_cv_header_libintl_h=$ac_header_preproc
7400 fi
7401 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
7402 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
7403
7404 fi
7405 if test $ac_cv_header_libintl_h = yes; then
7406   echo "$as_me:$LINENO: checking for gettext in libc" >&5
7407 echo $ECHO_N "checking for gettext in libc... $ECHO_C" >&6
7408 if test "${gt_cv_func_gettext_libc+set}" = set; then
7409   echo $ECHO_N "(cached) $ECHO_C" >&6
7410 else
7411   cat >conftest.$ac_ext <<_ACEOF
7412 /* confdefs.h.  */
7413 _ACEOF
7414 cat confdefs.h >>conftest.$ac_ext
7415 cat >>conftest.$ac_ext <<_ACEOF
7416 /* end confdefs.h.  */
7417 #include <libintl.h>
7418 int
7419 main ()
7420 {
7421 return (int) gettext ("")
7422   ;
7423   return 0;
7424 }
7425 _ACEOF
7426 rm -f conftest.$ac_objext conftest$ac_exeext
7427 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7428   (eval $ac_link) 2>conftest.er1
7429   ac_status=$?
7430   grep -v '^ *+' conftest.er1 >conftest.err
7431   rm -f conftest.er1
7432   cat conftest.err >&5
7433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7434   (exit $ac_status); } &&
7435          { ac_try='test -z "$ac_c_werror_flag"
7436                          || test ! -s conftest.err'
7437   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7438   (eval $ac_try) 2>&5
7439   ac_status=$?
7440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7441   (exit $ac_status); }; } &&
7442          { ac_try='test -s conftest$ac_exeext'
7443   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7444   (eval $ac_try) 2>&5
7445   ac_status=$?
7446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7447   (exit $ac_status); }; }; then
7448   gt_cv_func_gettext_libc=yes
7449 else
7450   echo "$as_me: failed program was:" >&5
7451 sed 's/^/| /' conftest.$ac_ext >&5
7452
7453 gt_cv_func_gettext_libc=no
7454 fi
7455 rm -f conftest.err conftest.$ac_objext \
7456       conftest$ac_exeext conftest.$ac_ext
7457 fi
7458 echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libc" >&5
7459 echo "${ECHO_T}$gt_cv_func_gettext_libc" >&6
7460
7461            if test "$gt_cv_func_gettext_libc" != "yes"; then
7462              echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
7463 echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6
7464 if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
7465   echo $ECHO_N "(cached) $ECHO_C" >&6
7466 else
7467   ac_check_lib_save_LIBS=$LIBS
7468 LIBS="-lintl  $LIBS"
7469 cat >conftest.$ac_ext <<_ACEOF
7470 /* confdefs.h.  */
7471 _ACEOF
7472 cat confdefs.h >>conftest.$ac_ext
7473 cat >>conftest.$ac_ext <<_ACEOF
7474 /* end confdefs.h.  */
7475
7476 /* Override any gcc2 internal prototype to avoid an error.  */
7477 #ifdef __cplusplus
7478 extern "C"
7479 #endif
7480 /* We use char because int might match the return type of a gcc2
7481    builtin and then its argument prototype would still apply.  */
7482 char bindtextdomain ();
7483 int
7484 main ()
7485 {
7486 bindtextdomain ();
7487   ;
7488   return 0;
7489 }
7490 _ACEOF
7491 rm -f conftest.$ac_objext conftest$ac_exeext
7492 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7493   (eval $ac_link) 2>conftest.er1
7494   ac_status=$?
7495   grep -v '^ *+' conftest.er1 >conftest.err
7496   rm -f conftest.er1
7497   cat conftest.err >&5
7498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7499   (exit $ac_status); } &&
7500          { ac_try='test -z "$ac_c_werror_flag"
7501                          || test ! -s conftest.err'
7502   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7503   (eval $ac_try) 2>&5
7504   ac_status=$?
7505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7506   (exit $ac_status); }; } &&
7507          { ac_try='test -s conftest$ac_exeext'
7508   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7509   (eval $ac_try) 2>&5
7510   ac_status=$?
7511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7512   (exit $ac_status); }; }; then
7513   ac_cv_lib_intl_bindtextdomain=yes
7514 else
7515   echo "$as_me: failed program was:" >&5
7516 sed 's/^/| /' conftest.$ac_ext >&5
7517
7518 ac_cv_lib_intl_bindtextdomain=no
7519 fi
7520 rm -f conftest.err conftest.$ac_objext \
7521       conftest$ac_exeext conftest.$ac_ext
7522 LIBS=$ac_check_lib_save_LIBS
7523 fi
7524 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
7525 echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6
7526 if test $ac_cv_lib_intl_bindtextdomain = yes; then
7527   echo "$as_me:$LINENO: checking for gettext in libintl" >&5
7528 echo $ECHO_N "checking for gettext in libintl... $ECHO_C" >&6
7529 if test "${gt_cv_func_gettext_libintl+set}" = set; then
7530   echo $ECHO_N "(cached) $ECHO_C" >&6
7531 else
7532   cat >conftest.$ac_ext <<_ACEOF
7533 /* confdefs.h.  */
7534 _ACEOF
7535 cat confdefs.h >>conftest.$ac_ext
7536 cat >>conftest.$ac_ext <<_ACEOF
7537 /* end confdefs.h.  */
7538
7539 int
7540 main ()
7541 {
7542 return (int) gettext ("")
7543   ;
7544   return 0;
7545 }
7546 _ACEOF
7547 rm -f conftest.$ac_objext conftest$ac_exeext
7548 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7549   (eval $ac_link) 2>conftest.er1
7550   ac_status=$?
7551   grep -v '^ *+' conftest.er1 >conftest.err
7552   rm -f conftest.er1
7553   cat conftest.err >&5
7554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7555   (exit $ac_status); } &&
7556          { ac_try='test -z "$ac_c_werror_flag"
7557                          || test ! -s conftest.err'
7558   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7559   (eval $ac_try) 2>&5
7560   ac_status=$?
7561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7562   (exit $ac_status); }; } &&
7563          { ac_try='test -s conftest$ac_exeext'
7564   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7565   (eval $ac_try) 2>&5
7566   ac_status=$?
7567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7568   (exit $ac_status); }; }; then
7569   gt_cv_func_gettext_libintl=yes
7570 else
7571   echo "$as_me: failed program was:" >&5
7572 sed 's/^/| /' conftest.$ac_ext >&5
7573
7574 gt_cv_func_gettext_libintl=no
7575 fi
7576 rm -f conftest.err conftest.$ac_objext \
7577       conftest$ac_exeext conftest.$ac_ext
7578 fi
7579 echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libintl" >&5
7580 echo "${ECHO_T}$gt_cv_func_gettext_libintl" >&6
7581 fi
7582
7583            fi
7584
7585            if test "$gt_cv_func_gettext_libc" = "yes" \
7586               || test "$gt_cv_func_gettext_libintl" = "yes"; then
7587
7588 cat >>confdefs.h <<\_ACEOF
7589 #define HAVE_GETTEXT 1
7590 _ACEOF
7591
7592               # Extract the first word of "msgfmt", so it can be a program name with args.
7593 set dummy msgfmt; ac_word=$2
7594 echo "$as_me:$LINENO: checking for $ac_word" >&5
7595 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7596 if test "${ac_cv_path_MSGFMT+set}" = set; then
7597   echo $ECHO_N "(cached) $ECHO_C" >&6
7598 else
7599   case "$MSGFMT" in
7600   /*)
7601   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7602   ;;
7603   *)
7604   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7605   for ac_dir in $PATH; do
7606     test -z "$ac_dir" && ac_dir=.
7607     if test -f $ac_dir/$ac_word; then
7608       if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
7609         ac_cv_path_MSGFMT="$ac_dir/$ac_word"
7610         break
7611       fi
7612     fi
7613   done
7614   IFS="$ac_save_ifs"
7615   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
7616   ;;
7617 esac
7618 fi
7619 MSGFMT="$ac_cv_path_MSGFMT"
7620 if test -n "$MSGFMT"; then
7621   echo "$as_me:$LINENO: result: $MSGFMT" >&5
7622 echo "${ECHO_T}$MSGFMT" >&6
7623 else
7624   echo "$as_me:$LINENO: result: no" >&5
7625 echo "${ECHO_T}no" >&6
7626 fi
7627               if test "$MSGFMT" != "no"; then
7628
7629 for ac_func in dcgettext
7630 do
7631 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7632 echo "$as_me:$LINENO: checking for $ac_func" >&5
7633 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7634 if eval "test \"\${$as_ac_var+set}\" = set"; then
7635   echo $ECHO_N "(cached) $ECHO_C" >&6
7636 else
7637   cat >conftest.$ac_ext <<_ACEOF
7638 /* confdefs.h.  */
7639 _ACEOF
7640 cat confdefs.h >>conftest.$ac_ext
7641 cat >>conftest.$ac_ext <<_ACEOF
7642 /* end confdefs.h.  */
7643 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7644    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7645 #define $ac_func innocuous_$ac_func
7646
7647 /* System header to define __stub macros and hopefully few prototypes,
7648     which can conflict with char $ac_func (); below.
7649     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7650     <limits.h> exists even on freestanding compilers.  */
7651
7652 #ifdef __STDC__
7653 # include <limits.h>
7654 #else
7655 # include <assert.h>
7656 #endif
7657
7658 #undef $ac_func
7659
7660 /* Override any gcc2 internal prototype to avoid an error.  */
7661 #ifdef __cplusplus
7662 extern "C"
7663 {
7664 #endif
7665 /* We use char because int might match the return type of a gcc2
7666    builtin and then its argument prototype would still apply.  */
7667 char $ac_func ();
7668 /* The GNU C library defines this for functions which it implements
7669     to always fail with ENOSYS.  Some functions are actually named
7670     something starting with __ and the normal name is an alias.  */
7671 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7672 choke me
7673 #else
7674 char (*f) () = $ac_func;
7675 #endif
7676 #ifdef __cplusplus
7677 }
7678 #endif
7679
7680 int
7681 main ()
7682 {
7683 return f != $ac_func;
7684   ;
7685   return 0;
7686 }
7687 _ACEOF
7688 rm -f conftest.$ac_objext conftest$ac_exeext
7689 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7690   (eval $ac_link) 2>conftest.er1
7691   ac_status=$?
7692   grep -v '^ *+' conftest.er1 >conftest.err
7693   rm -f conftest.er1
7694   cat conftest.err >&5
7695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7696   (exit $ac_status); } &&
7697          { ac_try='test -z "$ac_c_werror_flag"
7698                          || test ! -s conftest.err'
7699   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7700   (eval $ac_try) 2>&5
7701   ac_status=$?
7702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7703   (exit $ac_status); }; } &&
7704          { ac_try='test -s conftest$ac_exeext'
7705   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7706   (eval $ac_try) 2>&5
7707   ac_status=$?
7708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7709   (exit $ac_status); }; }; then
7710   eval "$as_ac_var=yes"
7711 else
7712   echo "$as_me: failed program was:" >&5
7713 sed 's/^/| /' conftest.$ac_ext >&5
7714
7715 eval "$as_ac_var=no"
7716 fi
7717 rm -f conftest.err conftest.$ac_objext \
7718       conftest$ac_exeext conftest.$ac_ext
7719 fi
7720 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7721 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7722 if test `eval echo '${'$as_ac_var'}'` = yes; then
7723   cat >>confdefs.h <<_ACEOF
7724 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7725 _ACEOF
7726
7727 fi
7728 done
7729
7730                 # Extract the first word of "gmsgfmt", so it can be a program name with args.
7731 set dummy gmsgfmt; ac_word=$2
7732 echo "$as_me:$LINENO: checking for $ac_word" >&5
7733 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7734 if test "${ac_cv_path_GMSGFMT+set}" = set; then
7735   echo $ECHO_N "(cached) $ECHO_C" >&6
7736 else
7737   case $GMSGFMT in
7738   [\\/]* | ?:[\\/]*)
7739   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
7740   ;;
7741   *)
7742   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7743 for as_dir in $PATH
7744 do
7745   IFS=$as_save_IFS
7746   test -z "$as_dir" && as_dir=.
7747   for ac_exec_ext in '' $ac_executable_extensions; do
7748   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7749     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
7750     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7751     break 2
7752   fi
7753 done
7754 done
7755
7756   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
7757   ;;
7758 esac
7759 fi
7760 GMSGFMT=$ac_cv_path_GMSGFMT
7761
7762 if test -n "$GMSGFMT"; then
7763   echo "$as_me:$LINENO: result: $GMSGFMT" >&5
7764 echo "${ECHO_T}$GMSGFMT" >&6
7765 else
7766   echo "$as_me:$LINENO: result: no" >&5
7767 echo "${ECHO_T}no" >&6
7768 fi
7769
7770                 # Extract the first word of "xgettext", so it can be a program name with args.
7771 set dummy xgettext; ac_word=$2
7772 echo "$as_me:$LINENO: checking for $ac_word" >&5
7773 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7774 if test "${ac_cv_path_XGETTEXT+set}" = set; then
7775   echo $ECHO_N "(cached) $ECHO_C" >&6
7776 else
7777   case "$XGETTEXT" in
7778   /*)
7779   ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
7780   ;;
7781   *)
7782   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7783   for ac_dir in $PATH; do
7784     test -z "$ac_dir" && ac_dir=.
7785     if test -f $ac_dir/$ac_word; then
7786       if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
7787         ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
7788         break
7789       fi
7790     fi
7791   done
7792   IFS="$ac_save_ifs"
7793   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
7794   ;;
7795 esac
7796 fi
7797 XGETTEXT="$ac_cv_path_XGETTEXT"
7798 if test -n "$XGETTEXT"; then
7799   echo "$as_me:$LINENO: result: $XGETTEXT" >&5
7800 echo "${ECHO_T}$XGETTEXT" >&6
7801 else
7802   echo "$as_me:$LINENO: result: no" >&5
7803 echo "${ECHO_T}no" >&6
7804 fi
7805
7806                 cat >conftest.$ac_ext <<_ACEOF
7807 /* confdefs.h.  */
7808 _ACEOF
7809 cat confdefs.h >>conftest.$ac_ext
7810 cat >>conftest.$ac_ext <<_ACEOF
7811 /* end confdefs.h.  */
7812
7813 int
7814 main ()
7815 {
7816 extern int _nl_msg_cat_cntr;
7817                                return _nl_msg_cat_cntr
7818   ;
7819   return 0;
7820 }
7821 _ACEOF
7822 rm -f conftest.$ac_objext conftest$ac_exeext
7823 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7824   (eval $ac_link) 2>conftest.er1
7825   ac_status=$?
7826   grep -v '^ *+' conftest.er1 >conftest.err
7827   rm -f conftest.er1
7828   cat conftest.err >&5
7829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7830   (exit $ac_status); } &&
7831          { ac_try='test -z "$ac_c_werror_flag"
7832                          || test ! -s conftest.err'
7833   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7834   (eval $ac_try) 2>&5
7835   ac_status=$?
7836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7837   (exit $ac_status); }; } &&
7838          { ac_try='test -s conftest$ac_exeext'
7839   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7840   (eval $ac_try) 2>&5
7841   ac_status=$?
7842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7843   (exit $ac_status); }; }; then
7844   CATOBJEXT=.gmo
7845                    DATADIRNAME=share
7846 else
7847   echo "$as_me: failed program was:" >&5
7848 sed 's/^/| /' conftest.$ac_ext >&5
7849
7850 CATOBJEXT=.mo
7851                    DATADIRNAME=lib
7852 fi
7853 rm -f conftest.err conftest.$ac_objext \
7854       conftest$ac_exeext conftest.$ac_ext
7855                 INSTOBJEXT=.mo
7856               fi
7857             fi
7858
7859 fi
7860
7861
7862
7863
7864         if test "$CATOBJEXT" = "NONE"; then
7865                           nls_cv_use_gnu_gettext=yes
7866         fi
7867       fi
7868
7869       if test "$nls_cv_use_gnu_gettext" = "yes"; then
7870                 INTLOBJS="\$(GETTOBJS)"
7871         # Extract the first word of "msgfmt", so it can be a program name with args.
7872 set dummy msgfmt; 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_MSGFMT+set}" = set; then
7876   echo $ECHO_N "(cached) $ECHO_C" >&6
7877 else
7878   case "$MSGFMT" in
7879   /*)
7880   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7881   ;;
7882   *)
7883   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7884   for ac_dir in $PATH; do
7885     test -z "$ac_dir" && ac_dir=.
7886     if test -f $ac_dir/$ac_word; then
7887       if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
7888         ac_cv_path_MSGFMT="$ac_dir/$ac_word"
7889         break
7890       fi
7891     fi
7892   done
7893   IFS="$ac_save_ifs"
7894   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
7895   ;;
7896 esac
7897 fi
7898 MSGFMT="$ac_cv_path_MSGFMT"
7899 if test -n "$MSGFMT"; then
7900   echo "$as_me:$LINENO: result: $MSGFMT" >&5
7901 echo "${ECHO_T}$MSGFMT" >&6
7902 else
7903   echo "$as_me:$LINENO: result: no" >&5
7904 echo "${ECHO_T}no" >&6
7905 fi
7906
7907         # Extract the first word of "gmsgfmt", so it can be a program name with args.
7908 set dummy gmsgfmt; ac_word=$2
7909 echo "$as_me:$LINENO: checking for $ac_word" >&5
7910 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7911 if test "${ac_cv_path_GMSGFMT+set}" = set; then
7912   echo $ECHO_N "(cached) $ECHO_C" >&6
7913 else
7914   case $GMSGFMT in
7915   [\\/]* | ?:[\\/]*)
7916   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
7917   ;;
7918   *)
7919   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7920 for as_dir in $PATH
7921 do
7922   IFS=$as_save_IFS
7923   test -z "$as_dir" && as_dir=.
7924   for ac_exec_ext in '' $ac_executable_extensions; do
7925   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7926     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
7927     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7928     break 2
7929   fi
7930 done
7931 done
7932
7933   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
7934   ;;
7935 esac
7936 fi
7937 GMSGFMT=$ac_cv_path_GMSGFMT
7938
7939 if test -n "$GMSGFMT"; then
7940   echo "$as_me:$LINENO: result: $GMSGFMT" >&5
7941 echo "${ECHO_T}$GMSGFMT" >&6
7942 else
7943   echo "$as_me:$LINENO: result: no" >&5
7944 echo "${ECHO_T}no" >&6
7945 fi
7946
7947         # Extract the first word of "xgettext", so it can be a program name with args.
7948 set dummy xgettext; ac_word=$2
7949 echo "$as_me:$LINENO: checking for $ac_word" >&5
7950 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7951 if test "${ac_cv_path_XGETTEXT+set}" = set; then
7952   echo $ECHO_N "(cached) $ECHO_C" >&6
7953 else
7954   case "$XGETTEXT" in
7955   /*)
7956   ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
7957   ;;
7958   *)
7959   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7960   for ac_dir in $PATH; do
7961     test -z "$ac_dir" && ac_dir=.
7962     if test -f $ac_dir/$ac_word; then
7963       if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
7964         ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
7965         break
7966       fi
7967     fi
7968   done
7969   IFS="$ac_save_ifs"
7970   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
7971   ;;
7972 esac
7973 fi
7974 XGETTEXT="$ac_cv_path_XGETTEXT"
7975 if test -n "$XGETTEXT"; then
7976   echo "$as_me:$LINENO: result: $XGETTEXT" >&5
7977 echo "${ECHO_T}$XGETTEXT" >&6
7978 else
7979   echo "$as_me:$LINENO: result: no" >&5
7980 echo "${ECHO_T}no" >&6
7981 fi
7982
7983
7984         USE_INCLUDED_LIBINTL=yes
7985         CATOBJEXT=.gmo
7986         INSTOBJEXT=.mo
7987         DATADIRNAME=share
7988         INTLDEPS='$(top_builddir)/../intl/libintl.a'
7989         INTLLIBS=$INTLDEPS
7990         LIBS=`echo $LIBS | sed -e 's/-lintl//'`
7991         nls_cv_header_intl=libintl.h
7992         nls_cv_header_libgt=libgettext.h
7993       fi
7994
7995             if test "$XGETTEXT" != ":"; then
7996                         if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
7997           : ;
7998         else
7999           echo "$as_me:$LINENO: result: found xgettext programs is not GNU xgettext; ignore it" >&5
8000 echo "${ECHO_T}found xgettext programs is not GNU xgettext; ignore it" >&6
8001           XGETTEXT=":"
8002         fi
8003       fi
8004
8005       # We need to process the po/ directory.
8006       POSUB=po
8007     else
8008       DATADIRNAME=share
8009       nls_cv_header_intl=libintl.h
8010       nls_cv_header_libgt=libgettext.h
8011     fi
8012
8013     # If this is used in GNU gettext we have to set USE_NLS to `yes'
8014     # because some of the sources are only built for this goal.
8015     if test "$PACKAGE" = gettext; then
8016       USE_NLS=yes
8017       USE_INCLUDED_LIBINTL=yes
8018     fi
8019
8020                 for lang in $ALL_LINGUAS; do
8021       GMOFILES="$GMOFILES $lang.gmo"
8022       POFILES="$POFILES $lang.po"
8023     done
8024
8025
8026
8027
8028
8029
8030
8031
8032
8033
8034
8035
8036
8037
8038    if test "x$CATOBJEXT" != "x"; then
8039      if test "x$ALL_LINGUAS" = "x"; then
8040        LINGUAS=
8041      else
8042        echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
8043 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
8044        NEW_LINGUAS=
8045        for lang in ${LINGUAS=$ALL_LINGUAS}; do
8046          case "$ALL_LINGUAS" in
8047           *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
8048          esac
8049        done
8050        LINGUAS=$NEW_LINGUAS
8051        echo "$as_me:$LINENO: result: $LINGUAS" >&5
8052 echo "${ECHO_T}$LINGUAS" >&6
8053      fi
8054
8055           if test -n "$LINGUAS"; then
8056        for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
8057      fi
8058    fi
8059
8060             if test $ac_cv_header_locale_h = yes; then
8061      INCLUDE_LOCALE_H="#include <locale.h>"
8062    else
8063      INCLUDE_LOCALE_H="\
8064 /* The system does not provide the header <locale.h>.  Take care yourself.  */"
8065    fi
8066
8067
8068             if test -f $srcdir/po2tbl.sed.in; then
8069       if test "$CATOBJEXT" = ".cat"; then
8070          if test "${ac_cv_header_linux_version_h+set}" = set; then
8071   echo "$as_me:$LINENO: checking for linux/version.h" >&5
8072 echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
8073 if test "${ac_cv_header_linux_version_h+set}" = set; then
8074   echo $ECHO_N "(cached) $ECHO_C" >&6
8075 fi
8076 echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
8077 echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
8078 else
8079   # Is the header compilable?
8080 echo "$as_me:$LINENO: checking linux/version.h usability" >&5
8081 echo $ECHO_N "checking linux/version.h usability... $ECHO_C" >&6
8082 cat >conftest.$ac_ext <<_ACEOF
8083 /* confdefs.h.  */
8084 _ACEOF
8085 cat confdefs.h >>conftest.$ac_ext
8086 cat >>conftest.$ac_ext <<_ACEOF
8087 /* end confdefs.h.  */
8088 $ac_includes_default
8089 #include <linux/version.h>
8090 _ACEOF
8091 rm -f conftest.$ac_objext
8092 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8093   (eval $ac_compile) 2>conftest.er1
8094   ac_status=$?
8095   grep -v '^ *+' conftest.er1 >conftest.err
8096   rm -f conftest.er1
8097   cat conftest.err >&5
8098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8099   (exit $ac_status); } &&
8100          { ac_try='test -z "$ac_c_werror_flag"
8101                          || test ! -s conftest.err'
8102   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8103   (eval $ac_try) 2>&5
8104   ac_status=$?
8105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8106   (exit $ac_status); }; } &&
8107          { ac_try='test -s conftest.$ac_objext'
8108   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8109   (eval $ac_try) 2>&5
8110   ac_status=$?
8111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8112   (exit $ac_status); }; }; then
8113   ac_header_compiler=yes
8114 else
8115   echo "$as_me: failed program was:" >&5
8116 sed 's/^/| /' conftest.$ac_ext >&5
8117
8118 ac_header_compiler=no
8119 fi
8120 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8121 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8122 echo "${ECHO_T}$ac_header_compiler" >&6
8123
8124 # Is the header present?
8125 echo "$as_me:$LINENO: checking linux/version.h presence" >&5
8126 echo $ECHO_N "checking linux/version.h presence... $ECHO_C" >&6
8127 cat >conftest.$ac_ext <<_ACEOF
8128 /* confdefs.h.  */
8129 _ACEOF
8130 cat confdefs.h >>conftest.$ac_ext
8131 cat >>conftest.$ac_ext <<_ACEOF
8132 /* end confdefs.h.  */
8133 #include <linux/version.h>
8134 _ACEOF
8135 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8136   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8137   ac_status=$?
8138   grep -v '^ *+' conftest.er1 >conftest.err
8139   rm -f conftest.er1
8140   cat conftest.err >&5
8141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8142   (exit $ac_status); } >/dev/null; then
8143   if test -s conftest.err; then
8144     ac_cpp_err=$ac_c_preproc_warn_flag
8145     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8146   else
8147     ac_cpp_err=
8148   fi
8149 else
8150   ac_cpp_err=yes
8151 fi
8152 if test -z "$ac_cpp_err"; then
8153   ac_header_preproc=yes
8154 else
8155   echo "$as_me: failed program was:" >&5
8156 sed 's/^/| /' conftest.$ac_ext >&5
8157
8158   ac_header_preproc=no
8159 fi
8160 rm -f conftest.err conftest.$ac_ext
8161 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8162 echo "${ECHO_T}$ac_header_preproc" >&6
8163
8164 # So?  What about this header?
8165 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8166   yes:no: )
8167     { echo "$as_me:$LINENO: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
8168 echo "$as_me: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8169     { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the compiler's result" >&5
8170 echo "$as_me: WARNING: linux/version.h: proceeding with the compiler's result" >&2;}
8171     ac_header_preproc=yes
8172     ;;
8173   no:yes:* )
8174     { echo "$as_me:$LINENO: WARNING: linux/version.h: present but cannot be compiled" >&5
8175 echo "$as_me: WARNING: linux/version.h: present but cannot be compiled" >&2;}
8176     { echo "$as_me:$LINENO: WARNING: linux/version.h:     check for missing prerequisite headers?" >&5
8177 echo "$as_me: WARNING: linux/version.h:     check for missing prerequisite headers?" >&2;}
8178     { echo "$as_me:$LINENO: WARNING: linux/version.h: see the Autoconf documentation" >&5
8179 echo "$as_me: WARNING: linux/version.h: see the Autoconf documentation" >&2;}
8180     { echo "$as_me:$LINENO: WARNING: linux/version.h:     section \"Present But Cannot Be Compiled\"" >&5
8181 echo "$as_me: WARNING: linux/version.h:     section \"Present But Cannot Be Compiled\"" >&2;}
8182     { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the preprocessor's result" >&5
8183 echo "$as_me: WARNING: linux/version.h: proceeding with the preprocessor's result" >&2;}
8184     { echo "$as_me:$LINENO: WARNING: linux/version.h: in the future, the compiler will take precedence" >&5
8185 echo "$as_me: WARNING: linux/version.h: in the future, the compiler will take precedence" >&2;}
8186     (
8187       cat <<\_ASBOX
8188 ## ------------------------------------------ ##
8189 ## Report this to the AC_PACKAGE_NAME lists.  ##
8190 ## ------------------------------------------ ##
8191 _ASBOX
8192     ) |
8193       sed "s/^/$as_me: WARNING:     /" >&2
8194     ;;
8195 esac
8196 echo "$as_me:$LINENO: checking for linux/version.h" >&5
8197 echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
8198 if test "${ac_cv_header_linux_version_h+set}" = set; then
8199   echo $ECHO_N "(cached) $ECHO_C" >&6
8200 else
8201   ac_cv_header_linux_version_h=$ac_header_preproc
8202 fi
8203 echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
8204 echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
8205
8206 fi
8207 if test $ac_cv_header_linux_version_h = yes; then
8208   msgformat=linux
8209 else
8210   msgformat=xopen
8211 fi
8212
8213
8214
8215                          sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed
8216       fi
8217             sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
8218          $srcdir/po2tbl.sed.in > po2tbl.sed
8219    fi
8220
8221             if test "$PACKAGE" = "gettext"; then
8222      GT_NO="#NO#"
8223      GT_YES=
8224    else
8225      GT_NO=
8226      GT_YES="#YES#"
8227    fi
8228
8229
8230
8231    MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs"
8232
8233
8234       l=
8235
8236
8237             if test -f $srcdir/po/POTFILES.in; then
8238       test -d po || mkdir po
8239       if test "x$srcdir" != "x."; then
8240          if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
8241             posrcprefix="$srcdir/"
8242          else
8243             posrcprefix="../$srcdir/"
8244          fi
8245       else
8246          posrcprefix="../"
8247       fi
8248       rm -f po/POTFILES
8249       sed -e "/^#/d" -e "/^\$/d" -e "s,.*,      $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
8250          < $srcdir/po/POTFILES.in > po/POTFILES
8251    fi
8252
8253
8254 # Permit host specific settings.
8255 . ${srcdir}/configure.host
8256
8257
8258 # Find a good install program.  We prefer a C program (faster),
8259 # so one script is as good as another.  But avoid the broken or
8260 # incompatible versions:
8261 # SysV /etc/install, /usr/sbin/install
8262 # SunOS /usr/etc/install
8263 # IRIX /sbin/install
8264 # AIX /bin/install
8265 # AmigaOS /C/install, which installs bootblocks on floppy discs
8266 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
8267 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8268 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8269 # OS/2's system install, which has a completely different semantic
8270 # ./install, which can be erroneously created by make from ./install.sh.
8271 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
8272 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
8273 if test -z "$INSTALL"; then
8274 if test "${ac_cv_path_install+set}" = set; then
8275   echo $ECHO_N "(cached) $ECHO_C" >&6
8276 else
8277   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8278 for as_dir in $PATH
8279 do
8280   IFS=$as_save_IFS
8281   test -z "$as_dir" && as_dir=.
8282   # Account for people who put trailing slashes in PATH elements.
8283 case $as_dir/ in
8284   ./ | .// | /cC/* | \
8285   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
8286   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
8287   /usr/ucb/* ) ;;
8288   *)
8289     # OSF1 and SCO ODT 3.0 have their own names for install.
8290     # Don't use installbsd from OSF since it installs stuff as root
8291     # by default.
8292     for ac_prog in ginstall scoinst install; do
8293       for ac_exec_ext in '' $ac_executable_extensions; do
8294         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
8295           if test $ac_prog = install &&
8296             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8297             # AIX install.  It has an incompatible calling convention.
8298             :
8299           elif test $ac_prog = install &&
8300             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8301             # program-specific install script used by HP pwplus--don't use.
8302             :
8303           else
8304             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
8305             break 3
8306           fi
8307         fi
8308       done
8309     done
8310     ;;
8311 esac
8312 done
8313
8314
8315 fi
8316   if test "${ac_cv_path_install+set}" = set; then
8317     INSTALL=$ac_cv_path_install
8318   else
8319     # As a last resort, use the slow shell script.  We don't cache a
8320     # path for INSTALL within a source directory, because that will
8321     # break other packages using the cache if that directory is
8322     # removed, or if the path is relative.
8323     INSTALL=$ac_install_sh
8324   fi
8325 fi
8326 echo "$as_me:$LINENO: result: $INSTALL" >&5
8327 echo "${ECHO_T}$INSTALL" >&6
8328
8329 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8330 # It thinks the first close brace ends the variable substitution.
8331 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8332
8333 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
8334
8335 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8336
8337
8338 BFD_HOST_64BIT_LONG=0
8339 BFD_HOST_LONG_LONG=0
8340 BFD_HOST_64_BIT_DEFINED=0
8341 BFD_HOST_64_BIT=
8342 BFD_HOST_U_64_BIT=
8343
8344 echo "$as_me:$LINENO: checking for long long" >&5
8345 echo $ECHO_N "checking for long long... $ECHO_C" >&6
8346 if test "${bfd_cv_has_long_long+set}" = set; then
8347   echo $ECHO_N "(cached) $ECHO_C" >&6
8348 else
8349   cat >conftest.$ac_ext <<_ACEOF
8350 /* confdefs.h.  */
8351 _ACEOF
8352 cat confdefs.h >>conftest.$ac_ext
8353 cat >>conftest.$ac_ext <<_ACEOF
8354 /* end confdefs.h.  */
8355
8356 int
8357 main ()
8358 {
8359 unsigned long long ll = 18446744073709551615ULL;
8360   ;
8361   return 0;
8362 }
8363 _ACEOF
8364 rm -f conftest.$ac_objext
8365 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8366   (eval $ac_compile) 2>conftest.er1
8367   ac_status=$?
8368   grep -v '^ *+' conftest.er1 >conftest.err
8369   rm -f conftest.er1
8370   cat conftest.err >&5
8371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8372   (exit $ac_status); } &&
8373          { ac_try='test -z "$ac_c_werror_flag"
8374                          || test ! -s conftest.err'
8375   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8376   (eval $ac_try) 2>&5
8377   ac_status=$?
8378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8379   (exit $ac_status); }; } &&
8380          { ac_try='test -s conftest.$ac_objext'
8381   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8382   (eval $ac_try) 2>&5
8383   ac_status=$?
8384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8385   (exit $ac_status); }; }; then
8386   bfd_cv_has_long_long=yes
8387 else
8388   echo "$as_me: failed program was:" >&5
8389 sed 's/^/| /' conftest.$ac_ext >&5
8390
8391 bfd_cv_has_long_long=no
8392 fi
8393 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8394 fi
8395
8396 echo "$as_me:$LINENO: result: $bfd_cv_has_long_long" >&5
8397 echo "${ECHO_T}$bfd_cv_has_long_long" >&6
8398 if test $bfd_cv_has_long_long = yes; then
8399   BFD_HOST_LONG_LONG=1
8400   echo "$as_me:$LINENO: checking size of long long" >&5
8401 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
8402 if test "${ac_cv_sizeof_long_long+set}" = set; then
8403   echo $ECHO_N "(cached) $ECHO_C" >&6
8404 else
8405   for ac_size in 4 8 1 2 16 12  ; do # List sizes in rough order of prevalence.
8406   cat >conftest.$ac_ext <<_ACEOF
8407 /* confdefs.h.  */
8408 _ACEOF
8409 cat confdefs.h >>conftest.$ac_ext
8410 cat >>conftest.$ac_ext <<_ACEOF
8411 /* end confdefs.h.  */
8412 #include "confdefs.h"
8413 #include <sys/types.h>
8414
8415
8416 int
8417 main ()
8418 {
8419 switch (0) case 0: case (sizeof (long long) == $ac_size):;
8420   ;
8421   return 0;
8422 }
8423 _ACEOF
8424 rm -f conftest.$ac_objext
8425 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8426   (eval $ac_compile) 2>conftest.er1
8427   ac_status=$?
8428   grep -v '^ *+' conftest.er1 >conftest.err
8429   rm -f conftest.er1
8430   cat conftest.err >&5
8431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8432   (exit $ac_status); } &&
8433          { ac_try='test -z "$ac_c_werror_flag"
8434                          || test ! -s conftest.err'
8435   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8436   (eval $ac_try) 2>&5
8437   ac_status=$?
8438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8439   (exit $ac_status); }; } &&
8440          { ac_try='test -s conftest.$ac_objext'
8441   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8442   (eval $ac_try) 2>&5
8443   ac_status=$?
8444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8445   (exit $ac_status); }; }; then
8446   ac_cv_sizeof_long_long=$ac_size
8447 else
8448   echo "$as_me: failed program was:" >&5
8449 sed 's/^/| /' conftest.$ac_ext >&5
8450
8451 fi
8452 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8453   if test x$ac_cv_sizeof_long_long != x ; then break; fi
8454 done
8455
8456 fi
8457
8458 if test x$ac_cv_sizeof_long_long = x ; then
8459   { { echo "$as_me:$LINENO: error: cannot determine a size for long long" >&5
8460 echo "$as_me: error: cannot determine a size for long long" >&2;}
8461    { (exit 1); exit 1; }; }
8462 fi
8463 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
8464 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
8465
8466 cat >>confdefs.h <<_ACEOF
8467 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
8468 _ACEOF
8469
8470
8471 fi
8472
8473 echo "$as_me:$LINENO: checking size of long" >&5
8474 echo $ECHO_N "checking size of long... $ECHO_C" >&6
8475 if test "${ac_cv_sizeof_long+set}" = set; then
8476   echo $ECHO_N "(cached) $ECHO_C" >&6
8477 else
8478   for ac_size in 4 8 1 2 16 12  ; do # List sizes in rough order of prevalence.
8479   cat >conftest.$ac_ext <<_ACEOF
8480 /* confdefs.h.  */
8481 _ACEOF
8482 cat confdefs.h >>conftest.$ac_ext
8483 cat >>conftest.$ac_ext <<_ACEOF
8484 /* end confdefs.h.  */
8485 #include "confdefs.h"
8486 #include <sys/types.h>
8487
8488
8489 int
8490 main ()
8491 {
8492 switch (0) case 0: case (sizeof (long) == $ac_size):;
8493   ;
8494   return 0;
8495 }
8496 _ACEOF
8497 rm -f conftest.$ac_objext
8498 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8499   (eval $ac_compile) 2>conftest.er1
8500   ac_status=$?
8501   grep -v '^ *+' conftest.er1 >conftest.err
8502   rm -f conftest.er1
8503   cat conftest.err >&5
8504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8505   (exit $ac_status); } &&
8506          { ac_try='test -z "$ac_c_werror_flag"
8507                          || test ! -s conftest.err'
8508   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8509   (eval $ac_try) 2>&5
8510   ac_status=$?
8511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8512   (exit $ac_status); }; } &&
8513          { ac_try='test -s conftest.$ac_objext'
8514   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8515   (eval $ac_try) 2>&5
8516   ac_status=$?
8517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8518   (exit $ac_status); }; }; then
8519   ac_cv_sizeof_long=$ac_size
8520 else
8521   echo "$as_me: failed program was:" >&5
8522 sed 's/^/| /' conftest.$ac_ext >&5
8523
8524 fi
8525 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8526   if test x$ac_cv_sizeof_long != x ; then break; fi
8527 done
8528
8529 fi
8530
8531 if test x$ac_cv_sizeof_long = x ; then
8532   { { echo "$as_me:$LINENO: error: cannot determine a size for long" >&5
8533 echo "$as_me: error: cannot determine a size for long" >&2;}
8534    { (exit 1); exit 1; }; }
8535 fi
8536 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
8537 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
8538
8539 cat >>confdefs.h <<_ACEOF
8540 #define SIZEOF_LONG $ac_cv_sizeof_long
8541 _ACEOF
8542
8543
8544 if test "x${ac_cv_sizeof_long}" = "x8"; then
8545   host64=true
8546   BFD_HOST_64BIT_LONG=1
8547   test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long"
8548   test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long"
8549 elif test "x${ac_cv_sizeof_long_long}" = "x8"; then
8550   test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long long"
8551   test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long long"
8552 fi
8553
8554 if test -n "${HOST_64BIT_TYPE}" -a -n "${HOST_U_64BIT_TYPE}"; then
8555   BFD_HOST_64_BIT_DEFINED=1
8556   BFD_HOST_64_BIT="${HOST_64BIT_TYPE}"
8557   BFD_HOST_U_64_BIT="${HOST_U_64BIT_TYPE}"
8558 fi
8559
8560
8561
8562
8563
8564
8565
8566 # Put a plausible default for CC_FOR_BUILD in Makefile.
8567 if test -z "$CC_FOR_BUILD"; then
8568   if test "x$cross_compiling" = "xno"; then
8569     CC_FOR_BUILD='$(CC)'
8570   else
8571     CC_FOR_BUILD=gcc
8572   fi
8573 fi
8574
8575 # Also set EXEEXT_FOR_BUILD.
8576 if test "x$cross_compiling" = "xno"; then
8577   EXEEXT_FOR_BUILD='$(EXEEXT)'
8578 else
8579   echo "$as_me:$LINENO: checking for build system executable suffix" >&5
8580 echo $ECHO_N "checking for build system executable suffix... $ECHO_C" >&6
8581 if test "${bfd_cv_build_exeext+set}" = set; then
8582   echo $ECHO_N "(cached) $ECHO_C" >&6
8583 else
8584   rm -f conftest*
8585      echo 'int main () { return 0; }' > conftest.c
8586      bfd_cv_build_exeext=
8587      ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5
8588      for file in conftest.*; do
8589        case $file in
8590        *.c | *.o | *.obj | *.ilk | *.pdb) ;;
8591        *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
8592        esac
8593      done
8594      rm -f conftest*
8595      test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
8596 fi
8597 echo "$as_me:$LINENO: result: $bfd_cv_build_exeext" >&5
8598 echo "${ECHO_T}$bfd_cv_build_exeext" >&6
8599   EXEEXT_FOR_BUILD=""
8600   test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
8601 fi
8602
8603
8604
8605
8606
8607
8608
8609
8610 for ac_header in stddef.h string.h strings.h stdlib.h time.h unistd.h
8611 do
8612 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8613 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8614   echo "$as_me:$LINENO: checking for $ac_header" >&5
8615 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8616 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8617   echo $ECHO_N "(cached) $ECHO_C" >&6
8618 fi
8619 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8620 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8621 else
8622   # Is the header compilable?
8623 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8624 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8625 cat >conftest.$ac_ext <<_ACEOF
8626 /* confdefs.h.  */
8627 _ACEOF
8628 cat confdefs.h >>conftest.$ac_ext
8629 cat >>conftest.$ac_ext <<_ACEOF
8630 /* end confdefs.h.  */
8631 $ac_includes_default
8632 #include <$ac_header>
8633 _ACEOF
8634 rm -f conftest.$ac_objext
8635 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8636   (eval $ac_compile) 2>conftest.er1
8637   ac_status=$?
8638   grep -v '^ *+' conftest.er1 >conftest.err
8639   rm -f conftest.er1
8640   cat conftest.err >&5
8641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8642   (exit $ac_status); } &&
8643          { ac_try='test -z "$ac_c_werror_flag"
8644                          || test ! -s conftest.err'
8645   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8646   (eval $ac_try) 2>&5
8647   ac_status=$?
8648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8649   (exit $ac_status); }; } &&
8650          { ac_try='test -s conftest.$ac_objext'
8651   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8652   (eval $ac_try) 2>&5
8653   ac_status=$?
8654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8655   (exit $ac_status); }; }; then
8656   ac_header_compiler=yes
8657 else
8658   echo "$as_me: failed program was:" >&5
8659 sed 's/^/| /' conftest.$ac_ext >&5
8660
8661 ac_header_compiler=no
8662 fi
8663 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8664 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8665 echo "${ECHO_T}$ac_header_compiler" >&6
8666
8667 # Is the header present?
8668 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8669 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8670 cat >conftest.$ac_ext <<_ACEOF
8671 /* confdefs.h.  */
8672 _ACEOF
8673 cat confdefs.h >>conftest.$ac_ext
8674 cat >>conftest.$ac_ext <<_ACEOF
8675 /* end confdefs.h.  */
8676 #include <$ac_header>
8677 _ACEOF
8678 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8679   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8680   ac_status=$?
8681   grep -v '^ *+' conftest.er1 >conftest.err
8682   rm -f conftest.er1
8683   cat conftest.err >&5
8684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8685   (exit $ac_status); } >/dev/null; then
8686   if test -s conftest.err; then
8687     ac_cpp_err=$ac_c_preproc_warn_flag
8688     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8689   else
8690     ac_cpp_err=
8691   fi
8692 else
8693   ac_cpp_err=yes
8694 fi
8695 if test -z "$ac_cpp_err"; then
8696   ac_header_preproc=yes
8697 else
8698   echo "$as_me: failed program was:" >&5
8699 sed 's/^/| /' conftest.$ac_ext >&5
8700
8701   ac_header_preproc=no
8702 fi
8703 rm -f conftest.err conftest.$ac_ext
8704 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8705 echo "${ECHO_T}$ac_header_preproc" >&6
8706
8707 # So?  What about this header?
8708 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8709   yes:no: )
8710     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8711 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8712     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8713 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8714     ac_header_preproc=yes
8715     ;;
8716   no:yes:* )
8717     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8718 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8719     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8720 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8721     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8722 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8723     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8724 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8725     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8726 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8727     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8728 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8729     (
8730       cat <<\_ASBOX
8731 ## ------------------------------------------ ##
8732 ## Report this to the AC_PACKAGE_NAME lists.  ##
8733 ## ------------------------------------------ ##
8734 _ASBOX
8735     ) |
8736       sed "s/^/$as_me: WARNING:     /" >&2
8737     ;;
8738 esac
8739 echo "$as_me:$LINENO: checking for $ac_header" >&5
8740 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8741 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8742   echo $ECHO_N "(cached) $ECHO_C" >&6
8743 else
8744   eval "$as_ac_Header=\$ac_header_preproc"
8745 fi
8746 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8747 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8748
8749 fi
8750 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8751   cat >>confdefs.h <<_ACEOF
8752 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8753 _ACEOF
8754
8755 fi
8756
8757 done
8758
8759
8760
8761
8762 for ac_header in fcntl.h sys/file.h sys/time.h
8763 do
8764 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8765 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8766   echo "$as_me:$LINENO: checking for $ac_header" >&5
8767 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8768 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8769   echo $ECHO_N "(cached) $ECHO_C" >&6
8770 fi
8771 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8772 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8773 else
8774   # Is the header compilable?
8775 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8776 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8777 cat >conftest.$ac_ext <<_ACEOF
8778 /* confdefs.h.  */
8779 _ACEOF
8780 cat confdefs.h >>conftest.$ac_ext
8781 cat >>conftest.$ac_ext <<_ACEOF
8782 /* end confdefs.h.  */
8783 $ac_includes_default
8784 #include <$ac_header>
8785 _ACEOF
8786 rm -f conftest.$ac_objext
8787 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8788   (eval $ac_compile) 2>conftest.er1
8789   ac_status=$?
8790   grep -v '^ *+' conftest.er1 >conftest.err
8791   rm -f conftest.er1
8792   cat conftest.err >&5
8793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8794   (exit $ac_status); } &&
8795          { ac_try='test -z "$ac_c_werror_flag"
8796                          || test ! -s conftest.err'
8797   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8798   (eval $ac_try) 2>&5
8799   ac_status=$?
8800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8801   (exit $ac_status); }; } &&
8802          { ac_try='test -s conftest.$ac_objext'
8803   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8804   (eval $ac_try) 2>&5
8805   ac_status=$?
8806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8807   (exit $ac_status); }; }; then
8808   ac_header_compiler=yes
8809 else
8810   echo "$as_me: failed program was:" >&5
8811 sed 's/^/| /' conftest.$ac_ext >&5
8812
8813 ac_header_compiler=no
8814 fi
8815 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8816 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8817 echo "${ECHO_T}$ac_header_compiler" >&6
8818
8819 # Is the header present?
8820 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8821 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8822 cat >conftest.$ac_ext <<_ACEOF
8823 /* confdefs.h.  */
8824 _ACEOF
8825 cat confdefs.h >>conftest.$ac_ext
8826 cat >>conftest.$ac_ext <<_ACEOF
8827 /* end confdefs.h.  */
8828 #include <$ac_header>
8829 _ACEOF
8830 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8831   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8832   ac_status=$?
8833   grep -v '^ *+' conftest.er1 >conftest.err
8834   rm -f conftest.er1
8835   cat conftest.err >&5
8836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8837   (exit $ac_status); } >/dev/null; then
8838   if test -s conftest.err; then
8839     ac_cpp_err=$ac_c_preproc_warn_flag
8840     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8841   else
8842     ac_cpp_err=
8843   fi
8844 else
8845   ac_cpp_err=yes
8846 fi
8847 if test -z "$ac_cpp_err"; then
8848   ac_header_preproc=yes
8849 else
8850   echo "$as_me: failed program was:" >&5
8851 sed 's/^/| /' conftest.$ac_ext >&5
8852
8853   ac_header_preproc=no
8854 fi
8855 rm -f conftest.err conftest.$ac_ext
8856 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8857 echo "${ECHO_T}$ac_header_preproc" >&6
8858
8859 # So?  What about this header?
8860 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8861   yes:no: )
8862     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8863 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8864     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8865 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8866     ac_header_preproc=yes
8867     ;;
8868   no:yes:* )
8869     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8870 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8871     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8872 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8873     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8874 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8875     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8876 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8877     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8878 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8879     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8880 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8881     (
8882       cat <<\_ASBOX
8883 ## ------------------------------------------ ##
8884 ## Report this to the AC_PACKAGE_NAME lists.  ##
8885 ## ------------------------------------------ ##
8886 _ASBOX
8887     ) |
8888       sed "s/^/$as_me: WARNING:     /" >&2
8889     ;;
8890 esac
8891 echo "$as_me:$LINENO: checking for $ac_header" >&5
8892 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8893 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8894   echo $ECHO_N "(cached) $ECHO_C" >&6
8895 else
8896   eval "$as_ac_Header=\$ac_header_preproc"
8897 fi
8898 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8899 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8900
8901 fi
8902 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8903   cat >>confdefs.h <<_ACEOF
8904 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8905 _ACEOF
8906
8907 fi
8908
8909 done
8910
8911 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
8912 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
8913 if test "${ac_cv_header_time+set}" = set; then
8914   echo $ECHO_N "(cached) $ECHO_C" >&6
8915 else
8916   cat >conftest.$ac_ext <<_ACEOF
8917 /* confdefs.h.  */
8918 _ACEOF
8919 cat confdefs.h >>conftest.$ac_ext
8920 cat >>conftest.$ac_ext <<_ACEOF
8921 /* end confdefs.h.  */
8922 #include <sys/types.h>
8923 #include <sys/time.h>
8924 #include <time.h>
8925
8926 int
8927 main ()
8928 {
8929 if ((struct tm *) 0)
8930 return 0;
8931   ;
8932   return 0;
8933 }
8934 _ACEOF
8935 rm -f conftest.$ac_objext
8936 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8937   (eval $ac_compile) 2>conftest.er1
8938   ac_status=$?
8939   grep -v '^ *+' conftest.er1 >conftest.err
8940   rm -f conftest.er1
8941   cat conftest.err >&5
8942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8943   (exit $ac_status); } &&
8944          { ac_try='test -z "$ac_c_werror_flag"
8945                          || test ! -s conftest.err'
8946   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8947   (eval $ac_try) 2>&5
8948   ac_status=$?
8949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8950   (exit $ac_status); }; } &&
8951          { ac_try='test -s conftest.$ac_objext'
8952   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8953   (eval $ac_try) 2>&5
8954   ac_status=$?
8955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8956   (exit $ac_status); }; }; then
8957   ac_cv_header_time=yes
8958 else
8959   echo "$as_me: failed program was:" >&5
8960 sed 's/^/| /' conftest.$ac_ext >&5
8961
8962 ac_cv_header_time=no
8963 fi
8964 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8965 fi
8966 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
8967 echo "${ECHO_T}$ac_cv_header_time" >&6
8968 if test $ac_cv_header_time = yes; then
8969
8970 cat >>confdefs.h <<\_ACEOF
8971 #define TIME_WITH_SYS_TIME 1
8972 _ACEOF
8973
8974 fi
8975
8976
8977
8978
8979
8980
8981 ac_header_dirent=no
8982 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8983   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8984 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8985 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
8986 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8987   echo $ECHO_N "(cached) $ECHO_C" >&6
8988 else
8989   cat >conftest.$ac_ext <<_ACEOF
8990 /* confdefs.h.  */
8991 _ACEOF
8992 cat confdefs.h >>conftest.$ac_ext
8993 cat >>conftest.$ac_ext <<_ACEOF
8994 /* end confdefs.h.  */
8995 #include <sys/types.h>
8996 #include <$ac_hdr>
8997
8998 int
8999 main ()
9000 {
9001 if ((DIR *) 0)
9002 return 0;
9003   ;
9004   return 0;
9005 }
9006 _ACEOF
9007 rm -f conftest.$ac_objext
9008 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9009   (eval $ac_compile) 2>conftest.er1
9010   ac_status=$?
9011   grep -v '^ *+' conftest.er1 >conftest.err
9012   rm -f conftest.er1
9013   cat conftest.err >&5
9014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9015   (exit $ac_status); } &&
9016          { ac_try='test -z "$ac_c_werror_flag"
9017                          || test ! -s conftest.err'
9018   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9019   (eval $ac_try) 2>&5
9020   ac_status=$?
9021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9022   (exit $ac_status); }; } &&
9023          { ac_try='test -s conftest.$ac_objext'
9024   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9025   (eval $ac_try) 2>&5
9026   ac_status=$?
9027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9028   (exit $ac_status); }; }; then
9029   eval "$as_ac_Header=yes"
9030 else
9031   echo "$as_me: failed program was:" >&5
9032 sed 's/^/| /' conftest.$ac_ext >&5
9033
9034 eval "$as_ac_Header=no"
9035 fi
9036 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9037 fi
9038 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9039 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9040 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9041   cat >>confdefs.h <<_ACEOF
9042 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9043 _ACEOF
9044
9045 ac_header_dirent=$ac_hdr; break
9046 fi
9047
9048 done
9049 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9050 if test $ac_header_dirent = dirent.h; then
9051   echo "$as_me:$LINENO: checking for library containing opendir" >&5
9052 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9053 if test "${ac_cv_search_opendir+set}" = set; then
9054   echo $ECHO_N "(cached) $ECHO_C" >&6
9055 else
9056   ac_func_search_save_LIBS=$LIBS
9057 ac_cv_search_opendir=no
9058 cat >conftest.$ac_ext <<_ACEOF
9059 /* confdefs.h.  */
9060 _ACEOF
9061 cat confdefs.h >>conftest.$ac_ext
9062 cat >>conftest.$ac_ext <<_ACEOF
9063 /* end confdefs.h.  */
9064
9065 /* Override any gcc2 internal prototype to avoid an error.  */
9066 #ifdef __cplusplus
9067 extern "C"
9068 #endif
9069 /* We use char because int might match the return type of a gcc2
9070    builtin and then its argument prototype would still apply.  */
9071 char opendir ();
9072 int
9073 main ()
9074 {
9075 opendir ();
9076   ;
9077   return 0;
9078 }
9079 _ACEOF
9080 rm -f conftest.$ac_objext conftest$ac_exeext
9081 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9082   (eval $ac_link) 2>conftest.er1
9083   ac_status=$?
9084   grep -v '^ *+' conftest.er1 >conftest.err
9085   rm -f conftest.er1
9086   cat conftest.err >&5
9087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9088   (exit $ac_status); } &&
9089          { ac_try='test -z "$ac_c_werror_flag"
9090                          || test ! -s conftest.err'
9091   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9092   (eval $ac_try) 2>&5
9093   ac_status=$?
9094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9095   (exit $ac_status); }; } &&
9096          { ac_try='test -s conftest$ac_exeext'
9097   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9098   (eval $ac_try) 2>&5
9099   ac_status=$?
9100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9101   (exit $ac_status); }; }; then
9102   ac_cv_search_opendir="none required"
9103 else
9104   echo "$as_me: failed program was:" >&5
9105 sed 's/^/| /' conftest.$ac_ext >&5
9106
9107 fi
9108 rm -f conftest.err conftest.$ac_objext \
9109       conftest$ac_exeext conftest.$ac_ext
9110 if test "$ac_cv_search_opendir" = no; then
9111   for ac_lib in dir; do
9112     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9113     cat >conftest.$ac_ext <<_ACEOF
9114 /* confdefs.h.  */
9115 _ACEOF
9116 cat confdefs.h >>conftest.$ac_ext
9117 cat >>conftest.$ac_ext <<_ACEOF
9118 /* end confdefs.h.  */
9119
9120 /* Override any gcc2 internal prototype to avoid an error.  */
9121 #ifdef __cplusplus
9122 extern "C"
9123 #endif
9124 /* We use char because int might match the return type of a gcc2
9125    builtin and then its argument prototype would still apply.  */
9126 char opendir ();
9127 int
9128 main ()
9129 {
9130 opendir ();
9131   ;
9132   return 0;
9133 }
9134 _ACEOF
9135 rm -f conftest.$ac_objext conftest$ac_exeext
9136 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9137   (eval $ac_link) 2>conftest.er1
9138   ac_status=$?
9139   grep -v '^ *+' conftest.er1 >conftest.err
9140   rm -f conftest.er1
9141   cat conftest.err >&5
9142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9143   (exit $ac_status); } &&
9144          { ac_try='test -z "$ac_c_werror_flag"
9145                          || test ! -s conftest.err'
9146   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9147   (eval $ac_try) 2>&5
9148   ac_status=$?
9149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9150   (exit $ac_status); }; } &&
9151          { ac_try='test -s conftest$ac_exeext'
9152   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9153   (eval $ac_try) 2>&5
9154   ac_status=$?
9155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9156   (exit $ac_status); }; }; then
9157   ac_cv_search_opendir="-l$ac_lib"
9158 break
9159 else
9160   echo "$as_me: failed program was:" >&5
9161 sed 's/^/| /' conftest.$ac_ext >&5
9162
9163 fi
9164 rm -f conftest.err conftest.$ac_objext \
9165       conftest$ac_exeext conftest.$ac_ext
9166   done
9167 fi
9168 LIBS=$ac_func_search_save_LIBS
9169 fi
9170 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9171 echo "${ECHO_T}$ac_cv_search_opendir" >&6
9172 if test "$ac_cv_search_opendir" != no; then
9173   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9174
9175 fi
9176
9177 else
9178   echo "$as_me:$LINENO: checking for library containing opendir" >&5
9179 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9180 if test "${ac_cv_search_opendir+set}" = set; then
9181   echo $ECHO_N "(cached) $ECHO_C" >&6
9182 else
9183   ac_func_search_save_LIBS=$LIBS
9184 ac_cv_search_opendir=no
9185 cat >conftest.$ac_ext <<_ACEOF
9186 /* confdefs.h.  */
9187 _ACEOF
9188 cat confdefs.h >>conftest.$ac_ext
9189 cat >>conftest.$ac_ext <<_ACEOF
9190 /* end confdefs.h.  */
9191
9192 /* Override any gcc2 internal prototype to avoid an error.  */
9193 #ifdef __cplusplus
9194 extern "C"
9195 #endif
9196 /* We use char because int might match the return type of a gcc2
9197    builtin and then its argument prototype would still apply.  */
9198 char opendir ();
9199 int
9200 main ()
9201 {
9202 opendir ();
9203   ;
9204   return 0;
9205 }
9206 _ACEOF
9207 rm -f conftest.$ac_objext conftest$ac_exeext
9208 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9209   (eval $ac_link) 2>conftest.er1
9210   ac_status=$?
9211   grep -v '^ *+' conftest.er1 >conftest.err
9212   rm -f conftest.er1
9213   cat conftest.err >&5
9214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9215   (exit $ac_status); } &&
9216          { ac_try='test -z "$ac_c_werror_flag"
9217                          || test ! -s conftest.err'
9218   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9219   (eval $ac_try) 2>&5
9220   ac_status=$?
9221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9222   (exit $ac_status); }; } &&
9223          { ac_try='test -s conftest$ac_exeext'
9224   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9225   (eval $ac_try) 2>&5
9226   ac_status=$?
9227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9228   (exit $ac_status); }; }; then
9229   ac_cv_search_opendir="none required"
9230 else
9231   echo "$as_me: failed program was:" >&5
9232 sed 's/^/| /' conftest.$ac_ext >&5
9233
9234 fi
9235 rm -f conftest.err conftest.$ac_objext \
9236       conftest$ac_exeext conftest.$ac_ext
9237 if test "$ac_cv_search_opendir" = no; then
9238   for ac_lib in x; do
9239     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9240     cat >conftest.$ac_ext <<_ACEOF
9241 /* confdefs.h.  */
9242 _ACEOF
9243 cat confdefs.h >>conftest.$ac_ext
9244 cat >>conftest.$ac_ext <<_ACEOF
9245 /* end confdefs.h.  */
9246
9247 /* Override any gcc2 internal prototype to avoid an error.  */
9248 #ifdef __cplusplus
9249 extern "C"
9250 #endif
9251 /* We use char because int might match the return type of a gcc2
9252    builtin and then its argument prototype would still apply.  */
9253 char opendir ();
9254 int
9255 main ()
9256 {
9257 opendir ();
9258   ;
9259   return 0;
9260 }
9261 _ACEOF
9262 rm -f conftest.$ac_objext conftest$ac_exeext
9263 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9264   (eval $ac_link) 2>conftest.er1
9265   ac_status=$?
9266   grep -v '^ *+' conftest.er1 >conftest.err
9267   rm -f conftest.er1
9268   cat conftest.err >&5
9269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9270   (exit $ac_status); } &&
9271          { ac_try='test -z "$ac_c_werror_flag"
9272                          || test ! -s conftest.err'
9273   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9274   (eval $ac_try) 2>&5
9275   ac_status=$?
9276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9277   (exit $ac_status); }; } &&
9278          { ac_try='test -s conftest$ac_exeext'
9279   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9280   (eval $ac_try) 2>&5
9281   ac_status=$?
9282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9283   (exit $ac_status); }; }; then
9284   ac_cv_search_opendir="-l$ac_lib"
9285 break
9286 else
9287   echo "$as_me: failed program was:" >&5
9288 sed 's/^/| /' conftest.$ac_ext >&5
9289
9290 fi
9291 rm -f conftest.err conftest.$ac_objext \
9292       conftest$ac_exeext conftest.$ac_ext
9293   done
9294 fi
9295 LIBS=$ac_func_search_save_LIBS
9296 fi
9297 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9298 echo "${ECHO_T}$ac_cv_search_opendir" >&6
9299 if test "$ac_cv_search_opendir" != no; then
9300   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9301
9302 fi
9303
9304 fi
9305
9306
9307
9308
9309
9310
9311
9312
9313 for ac_func in fcntl getpagesize setitimer sysconf fdopen getuid getgid
9314 do
9315 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9316 echo "$as_me:$LINENO: checking for $ac_func" >&5
9317 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9318 if eval "test \"\${$as_ac_var+set}\" = set"; then
9319   echo $ECHO_N "(cached) $ECHO_C" >&6
9320 else
9321   cat >conftest.$ac_ext <<_ACEOF
9322 /* confdefs.h.  */
9323 _ACEOF
9324 cat confdefs.h >>conftest.$ac_ext
9325 cat >>conftest.$ac_ext <<_ACEOF
9326 /* end confdefs.h.  */
9327 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9328    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9329 #define $ac_func innocuous_$ac_func
9330
9331 /* System header to define __stub macros and hopefully few prototypes,
9332     which can conflict with char $ac_func (); below.
9333     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9334     <limits.h> exists even on freestanding compilers.  */
9335
9336 #ifdef __STDC__
9337 # include <limits.h>
9338 #else
9339 # include <assert.h>
9340 #endif
9341
9342 #undef $ac_func
9343
9344 /* Override any gcc2 internal prototype to avoid an error.  */
9345 #ifdef __cplusplus
9346 extern "C"
9347 {
9348 #endif
9349 /* We use char because int might match the return type of a gcc2
9350    builtin and then its argument prototype would still apply.  */
9351 char $ac_func ();
9352 /* The GNU C library defines this for functions which it implements
9353     to always fail with ENOSYS.  Some functions are actually named
9354     something starting with __ and the normal name is an alias.  */
9355 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9356 choke me
9357 #else
9358 char (*f) () = $ac_func;
9359 #endif
9360 #ifdef __cplusplus
9361 }
9362 #endif
9363
9364 int
9365 main ()
9366 {
9367 return f != $ac_func;
9368   ;
9369   return 0;
9370 }
9371 _ACEOF
9372 rm -f conftest.$ac_objext conftest$ac_exeext
9373 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9374   (eval $ac_link) 2>conftest.er1
9375   ac_status=$?
9376   grep -v '^ *+' conftest.er1 >conftest.err
9377   rm -f conftest.er1
9378   cat conftest.err >&5
9379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9380   (exit $ac_status); } &&
9381          { ac_try='test -z "$ac_c_werror_flag"
9382                          || test ! -s conftest.err'
9383   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9384   (eval $ac_try) 2>&5
9385   ac_status=$?
9386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9387   (exit $ac_status); }; } &&
9388          { ac_try='test -s conftest$ac_exeext'
9389   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9390   (eval $ac_try) 2>&5
9391   ac_status=$?
9392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9393   (exit $ac_status); }; }; then
9394   eval "$as_ac_var=yes"
9395 else
9396   echo "$as_me: failed program was:" >&5
9397 sed 's/^/| /' conftest.$ac_ext >&5
9398
9399 eval "$as_ac_var=no"
9400 fi
9401 rm -f conftest.err conftest.$ac_objext \
9402       conftest$ac_exeext conftest.$ac_ext
9403 fi
9404 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9405 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9406 if test `eval echo '${'$as_ac_var'}'` = yes; then
9407   cat >>confdefs.h <<_ACEOF
9408 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9409 _ACEOF
9410
9411 fi
9412 done
9413
9414
9415 for ac_func in strtoull
9416 do
9417 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9418 echo "$as_me:$LINENO: checking for $ac_func" >&5
9419 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9420 if eval "test \"\${$as_ac_var+set}\" = set"; then
9421   echo $ECHO_N "(cached) $ECHO_C" >&6
9422 else
9423   cat >conftest.$ac_ext <<_ACEOF
9424 /* confdefs.h.  */
9425 _ACEOF
9426 cat confdefs.h >>conftest.$ac_ext
9427 cat >>conftest.$ac_ext <<_ACEOF
9428 /* end confdefs.h.  */
9429 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9430    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9431 #define $ac_func innocuous_$ac_func
9432
9433 /* System header to define __stub macros and hopefully few prototypes,
9434     which can conflict with char $ac_func (); below.
9435     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9436     <limits.h> exists even on freestanding compilers.  */
9437
9438 #ifdef __STDC__
9439 # include <limits.h>
9440 #else
9441 # include <assert.h>
9442 #endif
9443
9444 #undef $ac_func
9445
9446 /* Override any gcc2 internal prototype to avoid an error.  */
9447 #ifdef __cplusplus
9448 extern "C"
9449 {
9450 #endif
9451 /* We use char because int might match the return type of a gcc2
9452    builtin and then its argument prototype would still apply.  */
9453 char $ac_func ();
9454 /* The GNU C library defines this for functions which it implements
9455     to always fail with ENOSYS.  Some functions are actually named
9456     something starting with __ and the normal name is an alias.  */
9457 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9458 choke me
9459 #else
9460 char (*f) () = $ac_func;
9461 #endif
9462 #ifdef __cplusplus
9463 }
9464 #endif
9465
9466 int
9467 main ()
9468 {
9469 return f != $ac_func;
9470   ;
9471   return 0;
9472 }
9473 _ACEOF
9474 rm -f conftest.$ac_objext conftest$ac_exeext
9475 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9476   (eval $ac_link) 2>conftest.er1
9477   ac_status=$?
9478   grep -v '^ *+' conftest.er1 >conftest.err
9479   rm -f conftest.er1
9480   cat conftest.err >&5
9481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9482   (exit $ac_status); } &&
9483          { ac_try='test -z "$ac_c_werror_flag"
9484                          || test ! -s conftest.err'
9485   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9486   (eval $ac_try) 2>&5
9487   ac_status=$?
9488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9489   (exit $ac_status); }; } &&
9490          { ac_try='test -s conftest$ac_exeext'
9491   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9492   (eval $ac_try) 2>&5
9493   ac_status=$?
9494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9495   (exit $ac_status); }; }; then
9496   eval "$as_ac_var=yes"
9497 else
9498   echo "$as_me: failed program was:" >&5
9499 sed 's/^/| /' conftest.$ac_ext >&5
9500
9501 eval "$as_ac_var=no"
9502 fi
9503 rm -f conftest.err conftest.$ac_objext \
9504       conftest$ac_exeext conftest.$ac_ext
9505 fi
9506 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9507 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9508 if test `eval echo '${'$as_ac_var'}'` = yes; then
9509   cat >>confdefs.h <<_ACEOF
9510 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9511 _ACEOF
9512
9513 fi
9514 done
9515
9516
9517
9518 case "${host}" in
9519 *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
9520
9521 cat >>confdefs.h <<\_ACEOF
9522 #define USE_BINARY_FOPEN 1
9523 _ACEOF
9524  ;;
9525 esac
9526
9527 echo "$as_me:$LINENO: checking whether strstr must be declared" >&5
9528 echo $ECHO_N "checking whether strstr must be declared... $ECHO_C" >&6
9529 if test "${bfd_cv_decl_needed_strstr+set}" = set; then
9530   echo $ECHO_N "(cached) $ECHO_C" >&6
9531 else
9532   cat >conftest.$ac_ext <<_ACEOF
9533 /* confdefs.h.  */
9534 _ACEOF
9535 cat confdefs.h >>conftest.$ac_ext
9536 cat >>conftest.$ac_ext <<_ACEOF
9537 /* end confdefs.h.  */
9538
9539 #include <stdio.h>
9540 #ifdef HAVE_STRING_H
9541 #include <string.h>
9542 #else
9543 #ifdef HAVE_STRINGS_H
9544 #include <strings.h>
9545 #endif
9546 #endif
9547 #ifdef HAVE_STDLIB_H
9548 #include <stdlib.h>
9549 #endif
9550 #ifdef HAVE_UNISTD_H
9551 #include <unistd.h>
9552 #endif
9553 int
9554 main ()
9555 {
9556 char *(*pfn) = (char *(*)) strstr
9557   ;
9558   return 0;
9559 }
9560 _ACEOF
9561 rm -f conftest.$ac_objext
9562 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9563   (eval $ac_compile) 2>conftest.er1
9564   ac_status=$?
9565   grep -v '^ *+' conftest.er1 >conftest.err
9566   rm -f conftest.er1
9567   cat conftest.err >&5
9568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9569   (exit $ac_status); } &&
9570          { ac_try='test -z "$ac_c_werror_flag"
9571                          || test ! -s conftest.err'
9572   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9573   (eval $ac_try) 2>&5
9574   ac_status=$?
9575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9576   (exit $ac_status); }; } &&
9577          { ac_try='test -s conftest.$ac_objext'
9578   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9579   (eval $ac_try) 2>&5
9580   ac_status=$?
9581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9582   (exit $ac_status); }; }; then
9583   bfd_cv_decl_needed_strstr=no
9584 else
9585   echo "$as_me: failed program was:" >&5
9586 sed 's/^/| /' conftest.$ac_ext >&5
9587
9588 bfd_cv_decl_needed_strstr=yes
9589 fi
9590 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9591 fi
9592
9593 echo "$as_me:$LINENO: result: $bfd_cv_decl_needed_strstr" >&5
9594 echo "${ECHO_T}$bfd_cv_decl_needed_strstr" >&6
9595 if test $bfd_cv_decl_needed_strstr = yes; then
9596
9597 cat >>confdefs.h <<\_ACEOF
9598 #define NEED_DECLARATION_STRSTR 1
9599 _ACEOF
9600
9601 fi
9602
9603 echo "$as_me:$LINENO: checking whether malloc must be declared" >&5
9604 echo $ECHO_N "checking whether malloc must be declared... $ECHO_C" >&6
9605 if test "${bfd_cv_decl_needed_malloc+set}" = set; then
9606   echo $ECHO_N "(cached) $ECHO_C" >&6
9607 else
9608   cat >conftest.$ac_ext <<_ACEOF
9609 /* confdefs.h.  */
9610 _ACEOF
9611 cat confdefs.h >>conftest.$ac_ext
9612 cat >>conftest.$ac_ext <<_ACEOF
9613 /* end confdefs.h.  */
9614
9615 #include <stdio.h>
9616 #ifdef HAVE_STRING_H
9617 #include <string.h>
9618 #else
9619 #ifdef HAVE_STRINGS_H
9620 #include <strings.h>
9621 #endif
9622 #endif
9623 #ifdef HAVE_STDLIB_H
9624 #include <stdlib.h>
9625 #endif
9626 #ifdef HAVE_UNISTD_H
9627 #include <unistd.h>
9628 #endif
9629 int
9630 main ()
9631 {
9632 char *(*pfn) = (char *(*)) malloc
9633   ;
9634   return 0;
9635 }
9636 _ACEOF
9637 rm -f conftest.$ac_objext
9638 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9639   (eval $ac_compile) 2>conftest.er1
9640   ac_status=$?
9641   grep -v '^ *+' conftest.er1 >conftest.err
9642   rm -f conftest.er1
9643   cat conftest.err >&5
9644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9645   (exit $ac_status); } &&
9646          { ac_try='test -z "$ac_c_werror_flag"
9647                          || test ! -s conftest.err'
9648   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9649   (eval $ac_try) 2>&5
9650   ac_status=$?
9651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9652   (exit $ac_status); }; } &&
9653          { ac_try='test -s conftest.$ac_objext'
9654   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9655   (eval $ac_try) 2>&5
9656   ac_status=$?
9657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9658   (exit $ac_status); }; }; then
9659   bfd_cv_decl_needed_malloc=no
9660 else
9661   echo "$as_me: failed program was:" >&5
9662 sed 's/^/| /' conftest.$ac_ext >&5
9663
9664 bfd_cv_decl_needed_malloc=yes
9665 fi
9666 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9667 fi
9668
9669 echo "$as_me:$LINENO: result: $bfd_cv_decl_needed_malloc" >&5
9670 echo "${ECHO_T}$bfd_cv_decl_needed_malloc" >&6
9671 if test $bfd_cv_decl_needed_malloc = yes; then
9672
9673 cat >>confdefs.h <<\_ACEOF
9674 #define NEED_DECLARATION_MALLOC 1
9675 _ACEOF
9676
9677 fi
9678
9679 echo "$as_me:$LINENO: checking whether realloc must be declared" >&5
9680 echo $ECHO_N "checking whether realloc must be declared... $ECHO_C" >&6
9681 if test "${bfd_cv_decl_needed_realloc+set}" = set; then
9682   echo $ECHO_N "(cached) $ECHO_C" >&6
9683 else
9684   cat >conftest.$ac_ext <<_ACEOF
9685 /* confdefs.h.  */
9686 _ACEOF
9687 cat confdefs.h >>conftest.$ac_ext
9688 cat >>conftest.$ac_ext <<_ACEOF
9689 /* end confdefs.h.  */
9690
9691 #include <stdio.h>
9692 #ifdef HAVE_STRING_H
9693 #include <string.h>
9694 #else
9695 #ifdef HAVE_STRINGS_H
9696 #include <strings.h>
9697 #endif
9698 #endif
9699 #ifdef HAVE_STDLIB_H
9700 #include <stdlib.h>
9701 #endif
9702 #ifdef HAVE_UNISTD_H
9703 #include <unistd.h>
9704 #endif
9705 int
9706 main ()
9707 {
9708 char *(*pfn) = (char *(*)) realloc
9709   ;
9710   return 0;
9711 }
9712 _ACEOF
9713 rm -f conftest.$ac_objext
9714 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9715   (eval $ac_compile) 2>conftest.er1
9716   ac_status=$?
9717   grep -v '^ *+' conftest.er1 >conftest.err
9718   rm -f conftest.er1
9719   cat conftest.err >&5
9720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9721   (exit $ac_status); } &&
9722          { ac_try='test -z "$ac_c_werror_flag"
9723                          || test ! -s conftest.err'
9724   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9725   (eval $ac_try) 2>&5
9726   ac_status=$?
9727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9728   (exit $ac_status); }; } &&
9729          { ac_try='test -s conftest.$ac_objext'
9730   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9731   (eval $ac_try) 2>&5
9732   ac_status=$?
9733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9734   (exit $ac_status); }; }; then
9735   bfd_cv_decl_needed_realloc=no
9736 else
9737   echo "$as_me: failed program was:" >&5
9738 sed 's/^/| /' conftest.$ac_ext >&5
9739
9740 bfd_cv_decl_needed_realloc=yes
9741 fi
9742 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9743 fi
9744
9745 echo "$as_me:$LINENO: result: $bfd_cv_decl_needed_realloc" >&5
9746 echo "${ECHO_T}$bfd_cv_decl_needed_realloc" >&6
9747 if test $bfd_cv_decl_needed_realloc = yes; then
9748
9749 cat >>confdefs.h <<\_ACEOF
9750 #define NEED_DECLARATION_REALLOC 1
9751 _ACEOF
9752
9753 fi
9754
9755 echo "$as_me:$LINENO: checking whether free must be declared" >&5
9756 echo $ECHO_N "checking whether free must be declared... $ECHO_C" >&6
9757 if test "${bfd_cv_decl_needed_free+set}" = set; then
9758   echo $ECHO_N "(cached) $ECHO_C" >&6
9759 else
9760   cat >conftest.$ac_ext <<_ACEOF
9761 /* confdefs.h.  */
9762 _ACEOF
9763 cat confdefs.h >>conftest.$ac_ext
9764 cat >>conftest.$ac_ext <<_ACEOF
9765 /* end confdefs.h.  */
9766
9767 #include <stdio.h>
9768 #ifdef HAVE_STRING_H
9769 #include <string.h>
9770 #else
9771 #ifdef HAVE_STRINGS_H
9772 #include <strings.h>
9773 #endif
9774 #endif
9775 #ifdef HAVE_STDLIB_H
9776 #include <stdlib.h>
9777 #endif
9778 #ifdef HAVE_UNISTD_H
9779 #include <unistd.h>
9780 #endif
9781 int
9782 main ()
9783 {
9784 char *(*pfn) = (char *(*)) free
9785   ;
9786   return 0;
9787 }
9788 _ACEOF
9789 rm -f conftest.$ac_objext
9790 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9791   (eval $ac_compile) 2>conftest.er1
9792   ac_status=$?
9793   grep -v '^ *+' conftest.er1 >conftest.err
9794   rm -f conftest.er1
9795   cat conftest.err >&5
9796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9797   (exit $ac_status); } &&
9798          { ac_try='test -z "$ac_c_werror_flag"
9799                          || test ! -s conftest.err'
9800   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9801   (eval $ac_try) 2>&5
9802   ac_status=$?
9803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9804   (exit $ac_status); }; } &&
9805          { ac_try='test -s conftest.$ac_objext'
9806   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9807   (eval $ac_try) 2>&5
9808   ac_status=$?
9809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9810   (exit $ac_status); }; }; then
9811   bfd_cv_decl_needed_free=no
9812 else
9813   echo "$as_me: failed program was:" >&5
9814 sed 's/^/| /' conftest.$ac_ext >&5
9815
9816 bfd_cv_decl_needed_free=yes
9817 fi
9818 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9819 fi
9820
9821 echo "$as_me:$LINENO: result: $bfd_cv_decl_needed_free" >&5
9822 echo "${ECHO_T}$bfd_cv_decl_needed_free" >&6
9823 if test $bfd_cv_decl_needed_free = yes; then
9824
9825 cat >>confdefs.h <<\_ACEOF
9826 #define NEED_DECLARATION_FREE 1
9827 _ACEOF
9828
9829 fi
9830
9831 echo "$as_me:$LINENO: checking whether getenv must be declared" >&5
9832 echo $ECHO_N "checking whether getenv must be declared... $ECHO_C" >&6
9833 if test "${bfd_cv_decl_needed_getenv+set}" = set; then
9834   echo $ECHO_N "(cached) $ECHO_C" >&6
9835 else
9836   cat >conftest.$ac_ext <<_ACEOF
9837 /* confdefs.h.  */
9838 _ACEOF
9839 cat confdefs.h >>conftest.$ac_ext
9840 cat >>conftest.$ac_ext <<_ACEOF
9841 /* end confdefs.h.  */
9842
9843 #include <stdio.h>
9844 #ifdef HAVE_STRING_H
9845 #include <string.h>
9846 #else
9847 #ifdef HAVE_STRINGS_H
9848 #include <strings.h>
9849 #endif
9850 #endif
9851 #ifdef HAVE_STDLIB_H
9852 #include <stdlib.h>
9853 #endif
9854 #ifdef HAVE_UNISTD_H
9855 #include <unistd.h>
9856 #endif
9857 int
9858 main ()
9859 {
9860 char *(*pfn) = (char *(*)) getenv
9861   ;
9862   return 0;
9863 }
9864 _ACEOF
9865 rm -f conftest.$ac_objext
9866 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9867   (eval $ac_compile) 2>conftest.er1
9868   ac_status=$?
9869   grep -v '^ *+' conftest.er1 >conftest.err
9870   rm -f conftest.er1
9871   cat conftest.err >&5
9872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9873   (exit $ac_status); } &&
9874          { ac_try='test -z "$ac_c_werror_flag"
9875                          || test ! -s conftest.err'
9876   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9877   (eval $ac_try) 2>&5
9878   ac_status=$?
9879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9880   (exit $ac_status); }; } &&
9881          { ac_try='test -s conftest.$ac_objext'
9882   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9883   (eval $ac_try) 2>&5
9884   ac_status=$?
9885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9886   (exit $ac_status); }; }; then
9887   bfd_cv_decl_needed_getenv=no
9888 else
9889   echo "$as_me: failed program was:" >&5
9890 sed 's/^/| /' conftest.$ac_ext >&5
9891
9892 bfd_cv_decl_needed_getenv=yes
9893 fi
9894 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9895 fi
9896
9897 echo "$as_me:$LINENO: result: $bfd_cv_decl_needed_getenv" >&5
9898 echo "${ECHO_T}$bfd_cv_decl_needed_getenv" >&6
9899 if test $bfd_cv_decl_needed_getenv = yes; then
9900
9901 cat >>confdefs.h <<\_ACEOF
9902 #define NEED_DECLARATION_GETENV 1
9903 _ACEOF
9904
9905 fi
9906
9907
9908 # If we are configured native, pick a core file support file.
9909 COREFILE=
9910 COREFLAG=
9911 TRAD_HEADER=
9912 if test "${target}" = "${host}"; then
9913   case "${host}" in
9914   alpha*-*-freebsd* | alpha*-*-kfreebsd*-gnu)
9915         COREFILE=''
9916         ;;
9917   alpha*-*-linux-gnu*)
9918         COREFILE=trad-core.lo
9919         TRAD_HEADER='"hosts/alphalinux.h"'
9920         ;;
9921   alpha*-*-netbsd* | alpha*-*-openbsd*)
9922         COREFILE=netbsd-core.lo
9923         ;;
9924   alpha*-*-*)           COREFILE=osf-core.lo ;;
9925   arm-*-freebsd* | arm-*-kfreebsd*-gnu)
9926                         COREFILE='' ;;
9927   arm-*-netbsd*)        COREFILE=netbsd-core.lo ;;
9928   arm-*-riscix)         COREFILE=trad-core.lo ;;
9929   hppa*-*-hpux*)        COREFILE=hpux-core.lo ;;
9930   hppa*-*-hiux*)        COREFILE=hpux-core.lo ;;
9931   hppa*-*-mpeix*)       COREFILE=hpux-core.lo ;;
9932   hppa*-*-bsd*)         COREFILE="hpux-core.lo hppabsd-core.lo"
9933                         COREFLAG="-DHPUX_CORE -DHPPABSD_CORE" ;;
9934   hppa*-*-netbsd* | hppa*-*-openbsd*)
9935         COREFILE=netbsd-core.lo
9936         ;;
9937
9938   i370-*-*)
9939         COREFILE=trad-core.lo
9940         TRAD_HEADER='"hosts/i370linux.h"'
9941         ;;
9942
9943   i[3-7]86-sequent-bsd*)
9944         COREFILE=trad-core.lo
9945         TRAD_HEADER='"hosts/symmetry.h"'
9946         ;;
9947   i[3-7]86-sequent-sysv4*) ;;
9948   i[3-7]86-sequent-sysv*)
9949         COREFILE=trad-core.lo
9950         TRAD_HEADER='"hosts/symmetry.h"'
9951         ;;
9952   i[3-7]86-*-bsdi)
9953         COREFILE=
9954         ;;
9955   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*)
9956         COREFILE=trad-core.lo
9957         TRAD_HEADER='"hosts/i386bsd.h"'
9958         ;;
9959   i[3-7]86-*-freebsd* | i[3-7]86-*-kfreebsd*-gnu)
9960         COREFILE=''
9961         TRAD_HEADER='"hosts/i386bsd.h"'
9962         ;;
9963   i[3-7]86-*-netbsd* | i[3-7]86-*-knetbsd*-gnu | i[3-7]86-*-openbsd*)
9964         COREFILE=netbsd-core.lo
9965         ;;
9966   i[3-7]86-esix-sysv3*)
9967         COREFILE=trad-core.lo
9968         TRAD_HEADER='"hosts/esix.h"'
9969         ;;
9970   i[3-7]86-*-sco3.2v5*)
9971         COREFILE=sco5-core.lo
9972         ;;
9973   i[3-7]86-*-sco* | i[3-7]86-*-isc*)
9974         COREFILE=trad-core.lo
9975         TRAD_HEADER='"hosts/i386sco.h"'
9976         ;;
9977   i[3-7]86-*-mach3*)
9978         COREFILE=trad-core.lo
9979         TRAD_HEADER='"hosts/i386mach3.h"'
9980         ;;
9981   i[3-7]86-*-linux-gnu*)
9982         COREFILE=trad-core.lo
9983         TRAD_HEADER='"hosts/i386linux.h"'
9984         ;;
9985   i[3-7]86-*-isc*)      COREFILE=trad-core.lo ;;
9986   i[3-7]86-*-aix*)      COREFILE=aix386-core.lo ;;
9987   i860-*-mach3* | i860-*-osf1*)
9988         COREFILE=trad-core.lo
9989         TRAD_HEADER='"hosts/i860mach3.h"'
9990         ;;
9991   mips-*-netbsd* | mips*-*-openbsd*)
9992         COREFILE=netbsd-core.lo
9993         ;;
9994   mips-dec-*)
9995         COREFILE=trad-core.lo
9996         TRAD_HEADER='"hosts/decstation.h"'
9997         ;;
9998   mips-sgi-irix4*)      COREFILE=irix-core.lo ;;
9999   mips-sgi-irix5*)      COREFILE=irix-core.lo ;;
10000   mips-sgi-irix6*)      COREFILE=irix-core.lo ;;
10001   mips-*-sysv4*)        ;;
10002   mips-*-sysv* | mips-*-riscos*)
10003         COREFILE=trad-core.lo
10004         TRAD_HEADER='"hosts/riscos.h"'
10005         ;;
10006   mips-sony-bsd*)
10007         COREFILE=trad-core.lo
10008         TRAD_HEADER='"hosts/news-mips.h"'
10009         ;;
10010   m68*-bull*-sysv*)
10011         COREFILE=trad-core.lo
10012         TRAD_HEADER='"hosts/dpx2.h"'
10013         ;;
10014   m68*-hp-hpux*)        COREFILE=hpux-core.lo ;;
10015   m68*-hp-bsd*)
10016         COREFILE=trad-core.lo
10017         TRAD_HEADER='"hosts/hp300bsd.h"'
10018         ;;
10019   m68*-*-linux-gnu*)
10020         COREFILE=trad-core.lo
10021         TRAD_HEADER='"hosts/m68klinux.h"'
10022         ;;
10023   m68*-motorola-sysv*)
10024         COREFILE=trad-core.lo
10025         TRAD_HEADER='"hosts/delta68.h"'
10026         ;;
10027   m68*-sony-*)
10028         COREFILE=trad-core.lo
10029         TRAD_HEADER='"hosts/news.h"'
10030         ;;
10031   m68*-*-netbsd* | m68*-*-openbsd*)
10032         COREFILE=netbsd-core.lo
10033         ;;
10034   m68*-apple-aux*)
10035         COREFILE=trad-core.lo
10036         TRAD_HEADER='"hosts/m68kaux.h"'
10037         ;;
10038   m88*-*-sysv4*)
10039         ;;
10040   m88*-motorola-sysv*)
10041         COREFILE=ptrace-core.lo
10042         ;;
10043   m88*-*-mach3*)
10044         COREFILE=trad-core.lo
10045         TRAD_HEADER='"hosts/m88kmach3.h"'
10046         ;;
10047   m88*-*-openbsd*)
10048         COREFILE=netbsd-core.lo
10049         ;;
10050   ns32k-pc532-mach)
10051         COREFILE=trad-core.lo
10052         TRAD_HEADER='"hosts/pc532mach.h"'
10053         ;;
10054   ns32k-*-netbsd* | ns32k-*-openbsd*)
10055         COREFILE=netbsd-core.lo
10056         ;;
10057   rs6000-*-lynx*)
10058         COREFILE=lynx-core.lo
10059         ;;
10060   rs6000-*-aix5.* | powerpc-*-aix5.*)
10061         COREFILE=rs6000-core.lo
10062         COREFLAG="$COREFLAG -DAIX_5_CORE -DAIX_CORE_DUMPX_CORE"
10063         ;;
10064   rs6000-*-aix4.[3-9]* | powerpc-*-aix4.[3-9]*)
10065         COREFILE=rs6000-core.lo
10066         COREFLAG="$COREFLAG -DAIX_CORE_DUMPX_CORE"
10067         # Not all versions of AIX with -DAIX_CORE_DUMPX_CORE
10068         # have c_impl as a member of struct core_dumpx
10069         echo "$as_me:$LINENO: checking for c_impl in struct core_dumpx" >&5
10070 echo $ECHO_N "checking for c_impl in struct core_dumpx... $ECHO_C" >&6
10071         cat >conftest.$ac_ext <<_ACEOF
10072 /* confdefs.h.  */
10073 _ACEOF
10074 cat confdefs.h >>conftest.$ac_ext
10075 cat >>conftest.$ac_ext <<_ACEOF
10076 /* end confdefs.h.  */
10077 #include <core.h>
10078 int
10079 main ()
10080 {
10081 struct core_dumpx c; c.c_impl = 0;
10082   ;
10083   return 0;
10084 }
10085 _ACEOF
10086 rm -f conftest.$ac_objext
10087 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10088   (eval $ac_compile) 2>conftest.er1
10089   ac_status=$?
10090   grep -v '^ *+' conftest.er1 >conftest.err
10091   rm -f conftest.er1
10092   cat conftest.err >&5
10093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10094   (exit $ac_status); } &&
10095          { ac_try='test -z "$ac_c_werror_flag"
10096                          || test ! -s conftest.err'
10097   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10098   (eval $ac_try) 2>&5
10099   ac_status=$?
10100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10101   (exit $ac_status); }; } &&
10102          { ac_try='test -s conftest.$ac_objext'
10103   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10104   (eval $ac_try) 2>&5
10105   ac_status=$?
10106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10107   (exit $ac_status); }; }; then
10108
10109 cat >>confdefs.h <<\_ACEOF
10110 #define HAVE_ST_C_IMPL 1
10111 _ACEOF
10112
10113           echo "$as_me:$LINENO: result: yes" >&5
10114 echo "${ECHO_T}yes" >&6
10115 else
10116   echo "$as_me: failed program was:" >&5
10117 sed 's/^/| /' conftest.$ac_ext >&5
10118
10119 echo "$as_me:$LINENO: result: no" >&5
10120 echo "${ECHO_T}no" >&6
10121 fi
10122 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10123         ;;
10124   rs6000-*-aix4*)       COREFILE=rs6000-core.lo ;;
10125   rs6000-*-*)           COREFILE=rs6000-core.lo ;;
10126   powerpc-*-aix4*)      COREFILE=rs6000-core.lo ;;
10127   powerpc-*-aix*)       COREFILE=rs6000-core.lo ;;
10128   powerpc-*-beos*)      ;;
10129   powerpc-*-freebsd* | powerpc-*-kfreebsd*-gnu)
10130                         COREFILE='' ;;
10131   powerpc-*-netbsd*)    COREFILE=netbsd-core.lo ;;
10132   powerpc-*-*bsd*)      COREFILE=netbsd-core.lo ;;
10133   s390*-*-*)            COREFILE=trad-core.lo ;;
10134   sh*-*-netbsd*)        COREFILE=netbsd-core.lo ;;
10135   sparc-*-netbsd* | sparc*-*-openbsd*)
10136         COREFILE=netbsd-core.lo
10137         ;;
10138   tahoe-*-*)
10139         COREFILE=trad-core.lo
10140         TRAD_HEADER='"hosts/tahoe.h"'
10141         ;;
10142   vax-*-netbsd* | vax-*-openbsd*)
10143         COREFILE=netbsd-core.lo
10144         ;;
10145   vax-*-ultrix2*)
10146         COREFILE=trad-core.lo
10147         TRAD_HEADER='"hosts/vaxult2.h"'
10148         ;;
10149   vax-*-ultrix*)
10150         COREFILE=trad-core.lo
10151         TRAD_HEADER='"hosts/vaxult2.h"'
10152         ;;
10153   vax-*-linux-gnu*)
10154         COREFILE=trad-core.lo
10155         TRAD_HEADER='"hosts/vaxlinux.h"'
10156         ;;
10157   vax-*-*)
10158         COREFILE=trad-core.lo
10159         TRAD_HEADER='"hosts/vaxbsd.h"'
10160         ;;
10161   x86_64-*-netbsd* | x86_64-*-openbsd*)
10162         COREFILE=netbsd-core.lo
10163         ;;
10164   esac
10165
10166   case "$COREFILE" in
10167   aix386-core.lo)       COREFLAG=-DAIX386_CORE ;;
10168   hppabsd-core.lo)      COREFLAG=-DHPPABSD_CORE ;;
10169   hpux-core.lo)         COREFLAG=-DHPUX_CORE ;;
10170   irix-core.lo)         COREFLAG=-DIRIX_CORE ;;
10171   lynx-core.lo)         COREFLAG=-DLYNX_CORE ;;
10172   netbsd-core.lo)       COREFLAG=-DNETBSD_CORE ;;
10173   osf-core.lo)          COREFLAG=-DOSF_CORE ;;
10174   ptrace-core.lo)       COREFLAG=-DPTRACE_CORE ;;
10175   rs6000-core.lo)       COREFLAG="$COREFLAG -DAIX_CORE" ;;
10176   sco5-core.lo)         COREFLAG="$COREFLAG -DSCO5_CORE" ;;
10177   trad-core.lo)         COREFLAG="$COREFLAG -DTRAD_CORE" ;;
10178   esac
10179
10180   # ELF corefile support has several flavors, but all of
10181   # them use something called <sys/procfs.h>
10182
10183 for ac_header in sys/procfs.h
10184 do
10185 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10186 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10187   echo "$as_me:$LINENO: checking for $ac_header" >&5
10188 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10189 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10190   echo $ECHO_N "(cached) $ECHO_C" >&6
10191 fi
10192 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10193 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10194 else
10195   # Is the header compilable?
10196 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10197 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10198 cat >conftest.$ac_ext <<_ACEOF
10199 /* confdefs.h.  */
10200 _ACEOF
10201 cat confdefs.h >>conftest.$ac_ext
10202 cat >>conftest.$ac_ext <<_ACEOF
10203 /* end confdefs.h.  */
10204 $ac_includes_default
10205 #include <$ac_header>
10206 _ACEOF
10207 rm -f conftest.$ac_objext
10208 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10209   (eval $ac_compile) 2>conftest.er1
10210   ac_status=$?
10211   grep -v '^ *+' conftest.er1 >conftest.err
10212   rm -f conftest.er1
10213   cat conftest.err >&5
10214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10215   (exit $ac_status); } &&
10216          { ac_try='test -z "$ac_c_werror_flag"
10217                          || test ! -s conftest.err'
10218   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10219   (eval $ac_try) 2>&5
10220   ac_status=$?
10221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10222   (exit $ac_status); }; } &&
10223          { ac_try='test -s conftest.$ac_objext'
10224   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10225   (eval $ac_try) 2>&5
10226   ac_status=$?
10227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10228   (exit $ac_status); }; }; then
10229   ac_header_compiler=yes
10230 else
10231   echo "$as_me: failed program was:" >&5
10232 sed 's/^/| /' conftest.$ac_ext >&5
10233
10234 ac_header_compiler=no
10235 fi
10236 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10237 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10238 echo "${ECHO_T}$ac_header_compiler" >&6
10239
10240 # Is the header present?
10241 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10242 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10243 cat >conftest.$ac_ext <<_ACEOF
10244 /* confdefs.h.  */
10245 _ACEOF
10246 cat confdefs.h >>conftest.$ac_ext
10247 cat >>conftest.$ac_ext <<_ACEOF
10248 /* end confdefs.h.  */
10249 #include <$ac_header>
10250 _ACEOF
10251 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10252   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10253   ac_status=$?
10254   grep -v '^ *+' conftest.er1 >conftest.err
10255   rm -f conftest.er1
10256   cat conftest.err >&5
10257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10258   (exit $ac_status); } >/dev/null; then
10259   if test -s conftest.err; then
10260     ac_cpp_err=$ac_c_preproc_warn_flag
10261     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10262   else
10263     ac_cpp_err=
10264   fi
10265 else
10266   ac_cpp_err=yes
10267 fi
10268 if test -z "$ac_cpp_err"; then
10269   ac_header_preproc=yes
10270 else
10271   echo "$as_me: failed program was:" >&5
10272 sed 's/^/| /' conftest.$ac_ext >&5
10273
10274   ac_header_preproc=no
10275 fi
10276 rm -f conftest.err conftest.$ac_ext
10277 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10278 echo "${ECHO_T}$ac_header_preproc" >&6
10279
10280 # So?  What about this header?
10281 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10282   yes:no: )
10283     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10284 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10285     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10286 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10287     ac_header_preproc=yes
10288     ;;
10289   no:yes:* )
10290     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10291 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10292     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10293 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10294     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10295 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10296     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10297 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10298     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10299 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10300     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10301 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10302     (
10303       cat <<\_ASBOX
10304 ## ------------------------------------------ ##
10305 ## Report this to the AC_PACKAGE_NAME lists.  ##
10306 ## ------------------------------------------ ##
10307 _ASBOX
10308     ) |
10309       sed "s/^/$as_me: WARNING:     /" >&2
10310     ;;
10311 esac
10312 echo "$as_me:$LINENO: checking for $ac_header" >&5
10313 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10314 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10315   echo $ECHO_N "(cached) $ECHO_C" >&6
10316 else
10317   eval "$as_ac_Header=\$ac_header_preproc"
10318 fi
10319 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10320 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10321
10322 fi
10323 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10324   cat >>confdefs.h <<_ACEOF
10325 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10326 _ACEOF
10327
10328 fi
10329
10330 done
10331
10332   if test "$ac_cv_header_sys_procfs_h" = yes; then
10333     echo "$as_me:$LINENO: checking for prstatus_t in sys/procfs.h" >&5
10334 echo $ECHO_N "checking for prstatus_t in sys/procfs.h... $ECHO_C" >&6
10335  if test "${bfd_cv_have_sys_procfs_type_prstatus_t+set}" = set; then
10336   echo $ECHO_N "(cached) $ECHO_C" >&6
10337 else
10338   cat >conftest.$ac_ext <<_ACEOF
10339 /* confdefs.h.  */
10340 _ACEOF
10341 cat confdefs.h >>conftest.$ac_ext
10342 cat >>conftest.$ac_ext <<_ACEOF
10343 /* end confdefs.h.  */
10344
10345 #define _SYSCALL32
10346 #include <sys/procfs.h>
10347 int
10348 main ()
10349 {
10350 prstatus_t avar
10351   ;
10352   return 0;
10353 }
10354 _ACEOF
10355 rm -f conftest.$ac_objext
10356 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10357   (eval $ac_compile) 2>conftest.er1
10358   ac_status=$?
10359   grep -v '^ *+' conftest.er1 >conftest.err
10360   rm -f conftest.er1
10361   cat conftest.err >&5
10362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10363   (exit $ac_status); } &&
10364          { ac_try='test -z "$ac_c_werror_flag"
10365                          || test ! -s conftest.err'
10366   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10367   (eval $ac_try) 2>&5
10368   ac_status=$?
10369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10370   (exit $ac_status); }; } &&
10371          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
10377   bfd_cv_have_sys_procfs_type_prstatus_t=yes
10378 else
10379   echo "$as_me: failed program was:" >&5
10380 sed 's/^/| /' conftest.$ac_ext >&5
10381
10382 bfd_cv_have_sys_procfs_type_prstatus_t=no
10383
10384 fi
10385 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10386 fi
10387
10388  if test $bfd_cv_have_sys_procfs_type_prstatus_t = yes; then
10389
10390 cat >>confdefs.h <<\_ACEOF
10391 #define HAVE_PRSTATUS_T 1
10392 _ACEOF
10393
10394  fi
10395  echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prstatus_t" >&5
10396 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prstatus_t" >&6
10397
10398     echo "$as_me:$LINENO: checking for prstatus32_t in sys/procfs.h" >&5
10399 echo $ECHO_N "checking for prstatus32_t in sys/procfs.h... $ECHO_C" >&6
10400  if test "${bfd_cv_have_sys_procfs_type_prstatus32_t+set}" = set; then
10401   echo $ECHO_N "(cached) $ECHO_C" >&6
10402 else
10403   cat >conftest.$ac_ext <<_ACEOF
10404 /* confdefs.h.  */
10405 _ACEOF
10406 cat confdefs.h >>conftest.$ac_ext
10407 cat >>conftest.$ac_ext <<_ACEOF
10408 /* end confdefs.h.  */
10409
10410 #define _SYSCALL32
10411 #include <sys/procfs.h>
10412 int
10413 main ()
10414 {
10415 prstatus32_t avar
10416   ;
10417   return 0;
10418 }
10419 _ACEOF
10420 rm -f conftest.$ac_objext
10421 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10422   (eval $ac_compile) 2>conftest.er1
10423   ac_status=$?
10424   grep -v '^ *+' conftest.er1 >conftest.err
10425   rm -f conftest.er1
10426   cat conftest.err >&5
10427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10428   (exit $ac_status); } &&
10429          { ac_try='test -z "$ac_c_werror_flag"
10430                          || test ! -s conftest.err'
10431   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10432   (eval $ac_try) 2>&5
10433   ac_status=$?
10434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10435   (exit $ac_status); }; } &&
10436          { ac_try='test -s conftest.$ac_objext'
10437   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10438   (eval $ac_try) 2>&5
10439   ac_status=$?
10440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10441   (exit $ac_status); }; }; then
10442   bfd_cv_have_sys_procfs_type_prstatus32_t=yes
10443 else
10444   echo "$as_me: failed program was:" >&5
10445 sed 's/^/| /' conftest.$ac_ext >&5
10446
10447 bfd_cv_have_sys_procfs_type_prstatus32_t=no
10448
10449 fi
10450 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10451 fi
10452
10453  if test $bfd_cv_have_sys_procfs_type_prstatus32_t = yes; then
10454
10455 cat >>confdefs.h <<\_ACEOF
10456 #define HAVE_PRSTATUS32_T 1
10457 _ACEOF
10458
10459  fi
10460  echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prstatus32_t" >&5
10461 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prstatus32_t" >&6
10462
10463     echo "$as_me:$LINENO: checking for prstatus_t.pr_who in sys/procfs.h" >&5
10464 echo $ECHO_N "checking for prstatus_t.pr_who in sys/procfs.h... $ECHO_C" >&6
10465  if test "${bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who+set}" = set; then
10466   echo $ECHO_N "(cached) $ECHO_C" >&6
10467 else
10468   cat >conftest.$ac_ext <<_ACEOF
10469 /* confdefs.h.  */
10470 _ACEOF
10471 cat confdefs.h >>conftest.$ac_ext
10472 cat >>conftest.$ac_ext <<_ACEOF
10473 /* end confdefs.h.  */
10474
10475 #define _SYSCALL32
10476 #include <sys/procfs.h>
10477 int
10478 main ()
10479 {
10480 prstatus_t avar; void* aref = (void*) &avar.pr_who
10481   ;
10482   return 0;
10483 }
10484 _ACEOF
10485 rm -f conftest.$ac_objext
10486 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10487   (eval $ac_compile) 2>conftest.er1
10488   ac_status=$?
10489   grep -v '^ *+' conftest.er1 >conftest.err
10490   rm -f conftest.er1
10491   cat conftest.err >&5
10492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10493   (exit $ac_status); } &&
10494          { ac_try='test -z "$ac_c_werror_flag"
10495                          || test ! -s conftest.err'
10496   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10497   (eval $ac_try) 2>&5
10498   ac_status=$?
10499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10500   (exit $ac_status); }; } &&
10501          { ac_try='test -s conftest.$ac_objext'
10502   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10503   (eval $ac_try) 2>&5
10504   ac_status=$?
10505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10506   (exit $ac_status); }; }; then
10507   bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=yes
10508 else
10509   echo "$as_me: failed program was:" >&5
10510 sed 's/^/| /' conftest.$ac_ext >&5
10511
10512 bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=no
10513
10514 fi
10515 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10516 fi
10517
10518  if test $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who = yes; then
10519
10520 cat >>confdefs.h <<\_ACEOF
10521 #define HAVE_PRSTATUS_T_PR_WHO 1
10522 _ACEOF
10523
10524  fi
10525  echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" >&5
10526 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" >&6
10527
10528     echo "$as_me:$LINENO: checking for prstatus32_t.pr_who in sys/procfs.h" >&5
10529 echo $ECHO_N "checking for prstatus32_t.pr_who in sys/procfs.h... $ECHO_C" >&6
10530  if test "${bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who+set}" = set; then
10531   echo $ECHO_N "(cached) $ECHO_C" >&6
10532 else
10533   cat >conftest.$ac_ext <<_ACEOF
10534 /* confdefs.h.  */
10535 _ACEOF
10536 cat confdefs.h >>conftest.$ac_ext
10537 cat >>conftest.$ac_ext <<_ACEOF
10538 /* end confdefs.h.  */
10539
10540 #define _SYSCALL32
10541 #include <sys/procfs.h>
10542 int
10543 main ()
10544 {
10545 prstatus32_t avar; void* aref = (void*) &avar.pr_who
10546   ;
10547   return 0;
10548 }
10549 _ACEOF
10550 rm -f conftest.$ac_objext
10551 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10552   (eval $ac_compile) 2>conftest.er1
10553   ac_status=$?
10554   grep -v '^ *+' conftest.er1 >conftest.err
10555   rm -f conftest.er1
10556   cat conftest.err >&5
10557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10558   (exit $ac_status); } &&
10559          { ac_try='test -z "$ac_c_werror_flag"
10560                          || test ! -s conftest.err'
10561   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10562   (eval $ac_try) 2>&5
10563   ac_status=$?
10564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10565   (exit $ac_status); }; } &&
10566          { ac_try='test -s conftest.$ac_objext'
10567   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10568   (eval $ac_try) 2>&5
10569   ac_status=$?
10570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10571   (exit $ac_status); }; }; then
10572   bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=yes
10573 else
10574   echo "$as_me: failed program was:" >&5
10575 sed 's/^/| /' conftest.$ac_ext >&5
10576
10577 bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=no
10578
10579 fi
10580 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10581 fi
10582
10583  if test $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who = yes; then
10584
10585 cat >>confdefs.h <<\_ACEOF
10586 #define HAVE_PRSTATUS32_T_PR_WHO 1
10587 _ACEOF
10588
10589  fi
10590  echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" >&5
10591 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" >&6
10592
10593     echo "$as_me:$LINENO: checking for pstatus_t in sys/procfs.h" >&5
10594 echo $ECHO_N "checking for pstatus_t in sys/procfs.h... $ECHO_C" >&6
10595  if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then
10596   echo $ECHO_N "(cached) $ECHO_C" >&6
10597 else
10598   cat >conftest.$ac_ext <<_ACEOF
10599 /* confdefs.h.  */
10600 _ACEOF
10601 cat confdefs.h >>conftest.$ac_ext
10602 cat >>conftest.$ac_ext <<_ACEOF
10603 /* end confdefs.h.  */
10604
10605 #define _SYSCALL32
10606 #include <sys/procfs.h>
10607 int
10608 main ()
10609 {
10610 pstatus_t avar
10611   ;
10612   return 0;
10613 }
10614 _ACEOF
10615 rm -f conftest.$ac_objext
10616 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10617   (eval $ac_compile) 2>conftest.er1
10618   ac_status=$?
10619   grep -v '^ *+' conftest.er1 >conftest.err
10620   rm -f conftest.er1
10621   cat conftest.err >&5
10622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10623   (exit $ac_status); } &&
10624          { ac_try='test -z "$ac_c_werror_flag"
10625                          || test ! -s conftest.err'
10626   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10627   (eval $ac_try) 2>&5
10628   ac_status=$?
10629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10630   (exit $ac_status); }; } &&
10631          { ac_try='test -s conftest.$ac_objext'
10632   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10633   (eval $ac_try) 2>&5
10634   ac_status=$?
10635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10636   (exit $ac_status); }; }; then
10637   bfd_cv_have_sys_procfs_type_pstatus_t=yes
10638 else
10639   echo "$as_me: failed program was:" >&5
10640 sed 's/^/| /' conftest.$ac_ext >&5
10641
10642 bfd_cv_have_sys_procfs_type_pstatus_t=no
10643
10644 fi
10645 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10646 fi
10647
10648  if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
10649
10650 cat >>confdefs.h <<\_ACEOF
10651 #define HAVE_PSTATUS_T 1
10652 _ACEOF
10653
10654  fi
10655  echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5
10656 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus_t" >&6
10657
10658     echo "$as_me:$LINENO: checking for pxstatus_t in sys/procfs.h" >&5
10659 echo $ECHO_N "checking for pxstatus_t in sys/procfs.h... $ECHO_C" >&6
10660  if test "${bfd_cv_have_sys_procfs_type_pxstatus_t+set}" = set; then
10661   echo $ECHO_N "(cached) $ECHO_C" >&6
10662 else
10663   cat >conftest.$ac_ext <<_ACEOF
10664 /* confdefs.h.  */
10665 _ACEOF
10666 cat confdefs.h >>conftest.$ac_ext
10667 cat >>conftest.$ac_ext <<_ACEOF
10668 /* end confdefs.h.  */
10669
10670 #define _SYSCALL32
10671 #include <sys/procfs.h>
10672 int
10673 main ()
10674 {
10675 pxstatus_t avar
10676   ;
10677   return 0;
10678 }
10679 _ACEOF
10680 rm -f conftest.$ac_objext
10681 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10682   (eval $ac_compile) 2>conftest.er1
10683   ac_status=$?
10684   grep -v '^ *+' conftest.er1 >conftest.err
10685   rm -f conftest.er1
10686   cat conftest.err >&5
10687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10688   (exit $ac_status); } &&
10689          { ac_try='test -z "$ac_c_werror_flag"
10690                          || test ! -s conftest.err'
10691   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10692   (eval $ac_try) 2>&5
10693   ac_status=$?
10694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10695   (exit $ac_status); }; } &&
10696          { ac_try='test -s conftest.$ac_objext'
10697   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10698   (eval $ac_try) 2>&5
10699   ac_status=$?
10700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10701   (exit $ac_status); }; }; then
10702   bfd_cv_have_sys_procfs_type_pxstatus_t=yes
10703 else
10704   echo "$as_me: failed program was:" >&5
10705 sed 's/^/| /' conftest.$ac_ext >&5
10706
10707 bfd_cv_have_sys_procfs_type_pxstatus_t=no
10708
10709 fi
10710 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10711 fi
10712
10713  if test $bfd_cv_have_sys_procfs_type_pxstatus_t = yes; then
10714
10715 cat >>confdefs.h <<\_ACEOF
10716 #define HAVE_PXSTATUS_T 1
10717 _ACEOF
10718
10719  fi
10720  echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pxstatus_t" >&5
10721 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pxstatus_t" >&6
10722
10723     echo "$as_me:$LINENO: checking for pstatus32_t in sys/procfs.h" >&5
10724 echo $ECHO_N "checking for pstatus32_t in sys/procfs.h... $ECHO_C" >&6
10725  if test "${bfd_cv_have_sys_procfs_type_pstatus32_t+set}" = set; then
10726   echo $ECHO_N "(cached) $ECHO_C" >&6
10727 else
10728   cat >conftest.$ac_ext <<_ACEOF
10729 /* confdefs.h.  */
10730 _ACEOF
10731 cat confdefs.h >>conftest.$ac_ext
10732 cat >>conftest.$ac_ext <<_ACEOF
10733 /* end confdefs.h.  */
10734
10735 #define _SYSCALL32
10736 #include <sys/procfs.h>
10737 int
10738 main ()
10739 {
10740 pstatus32_t avar
10741   ;
10742   return 0;
10743 }
10744 _ACEOF
10745 rm -f conftest.$ac_objext
10746 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10747   (eval $ac_compile) 2>conftest.er1
10748   ac_status=$?
10749   grep -v '^ *+' conftest.er1 >conftest.err
10750   rm -f conftest.er1
10751   cat conftest.err >&5
10752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10753   (exit $ac_status); } &&
10754          { ac_try='test -z "$ac_c_werror_flag"
10755                          || 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_pstatus32_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_pstatus32_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_pstatus32_t = yes; then
10779
10780 cat >>confdefs.h <<\_ACEOF
10781 #define HAVE_PSTATUS32_T 1
10782 _ACEOF
10783
10784  fi
10785  echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus32_t" >&5
10786 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus32_t" >&6
10787
10788     echo "$as_me:$LINENO: checking for prpsinfo_t in sys/procfs.h" >&5
10789 echo $ECHO_N "checking for prpsinfo_t in sys/procfs.h... $ECHO_C" >&6
10790  if test "${bfd_cv_have_sys_procfs_type_prpsinfo_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 prpsinfo_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"
10820                          || test ! -s conftest.err'
10821   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10822   (eval $ac_try) 2>&5
10823   ac_status=$?
10824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10825   (exit $ac_status); }; } &&
10826          { ac_try='test -s conftest.$ac_objext'
10827   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10828   (eval $ac_try) 2>&5
10829   ac_status=$?
10830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10831   (exit $ac_status); }; }; then
10832   bfd_cv_have_sys_procfs_type_prpsinfo_t=yes
10833 else
10834   echo "$as_me: failed program was:" >&5
10835 sed 's/^/| /' conftest.$ac_ext >&5
10836
10837 bfd_cv_have_sys_procfs_type_prpsinfo_t=no
10838
10839 fi
10840 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10841 fi
10842
10843  if test $bfd_cv_have_sys_procfs_type_prpsinfo_t = yes; then
10844
10845 cat >>confdefs.h <<\_ACEOF
10846 #define HAVE_PRPSINFO_T 1
10847 _ACEOF
10848
10849  fi
10850  echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prpsinfo_t" >&5
10851 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prpsinfo_t" >&6
10852
10853     echo "$as_me:$LINENO: checking for prpsinfo32_t in sys/procfs.h" >&5
10854 echo $ECHO_N "checking for prpsinfo32_t in sys/procfs.h... $ECHO_C" >&6
10855  if test "${bfd_cv_have_sys_procfs_type_prpsinfo32_t+set}" = set; then
10856   echo $ECHO_N "(cached) $ECHO_C" >&6
10857 else
10858   cat >conftest.$ac_ext <<_ACEOF
10859 /* confdefs.h.  */
10860 _ACEOF
10861 cat confdefs.h >>conftest.$ac_ext
10862 cat >>conftest.$ac_ext <<_ACEOF
10863 /* end confdefs.h.  */
10864
10865 #define _SYSCALL32
10866 #include <sys/procfs.h>
10867 int
10868 main ()
10869 {
10870 prpsinfo32_t avar
10871   ;
10872   return 0;
10873 }
10874 _ACEOF
10875 rm -f conftest.$ac_objext
10876 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10877   (eval $ac_compile) 2>conftest.er1
10878   ac_status=$?
10879   grep -v '^ *+' conftest.er1 >conftest.err
10880   rm -f conftest.er1
10881   cat conftest.err >&5
10882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10883   (exit $ac_status); } &&
10884          { ac_try='test -z "$ac_c_werror_flag"
10885                          || test ! -s conftest.err'
10886   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10887   (eval $ac_try) 2>&5
10888   ac_status=$?
10889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10890   (exit $ac_status); }; } &&
10891          { ac_try='test -s conftest.$ac_objext'
10892   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10893   (eval $ac_try) 2>&5
10894   ac_status=$?
10895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10896   (exit $ac_status); }; }; then
10897   bfd_cv_have_sys_procfs_type_prpsinfo32_t=yes
10898 else
10899   echo "$as_me: failed program was:" >&5
10900 sed 's/^/| /' conftest.$ac_ext >&5
10901
10902 bfd_cv_have_sys_procfs_type_prpsinfo32_t=no
10903
10904 fi
10905 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10906 fi
10907
10908  if test $bfd_cv_have_sys_procfs_type_prpsinfo32_t = yes; then
10909
10910 cat >>confdefs.h <<\_ACEOF
10911 #define HAVE_PRPSINFO32_T 1
10912 _ACEOF
10913
10914  fi
10915  echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prpsinfo32_t" >&5
10916 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prpsinfo32_t" >&6
10917
10918     echo "$as_me:$LINENO: checking for psinfo_t in sys/procfs.h" >&5
10919 echo $ECHO_N "checking for psinfo_t in sys/procfs.h... $ECHO_C" >&6
10920  if test "${bfd_cv_have_sys_procfs_type_psinfo_t+set}" = set; then
10921   echo $ECHO_N "(cached) $ECHO_C" >&6
10922 else
10923   cat >conftest.$ac_ext <<_ACEOF
10924 /* confdefs.h.  */
10925 _ACEOF
10926 cat confdefs.h >>conftest.$ac_ext
10927 cat >>conftest.$ac_ext <<_ACEOF
10928 /* end confdefs.h.  */
10929
10930 #define _SYSCALL32
10931 #include <sys/procfs.h>
10932 int
10933 main ()
10934 {
10935 psinfo_t avar
10936   ;
10937   return 0;
10938 }
10939 _ACEOF
10940 rm -f conftest.$ac_objext
10941 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10942   (eval $ac_compile) 2>conftest.er1
10943   ac_status=$?
10944   grep -v '^ *+' conftest.er1 >conftest.err
10945   rm -f conftest.er1
10946   cat conftest.err >&5
10947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10948   (exit $ac_status); } &&
10949          { ac_try='test -z "$ac_c_werror_flag"
10950                          || test ! -s conftest.err'
10951   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10952   (eval $ac_try) 2>&5
10953   ac_status=$?
10954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10955   (exit $ac_status); }; } &&
10956          { ac_try='test -s conftest.$ac_objext'
10957   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10958   (eval $ac_try) 2>&5
10959   ac_status=$?
10960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10961   (exit $ac_status); }; }; then
10962   bfd_cv_have_sys_procfs_type_psinfo_t=yes
10963 else
10964   echo "$as_me: failed program was:" >&5
10965 sed 's/^/| /' conftest.$ac_ext >&5
10966
10967 bfd_cv_have_sys_procfs_type_psinfo_t=no
10968
10969 fi
10970 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10971 fi
10972
10973  if test $bfd_cv_have_sys_procfs_type_psinfo_t = yes; then
10974
10975 cat >>confdefs.h <<\_ACEOF
10976 #define HAVE_PSINFO_T 1
10977 _ACEOF
10978
10979  fi
10980  echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psinfo_t" >&5
10981 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psinfo_t" >&6
10982
10983     echo "$as_me:$LINENO: checking for psinfo32_t in sys/procfs.h" >&5
10984 echo $ECHO_N "checking for psinfo32_t in sys/procfs.h... $ECHO_C" >&6
10985  if test "${bfd_cv_have_sys_procfs_type_psinfo32_t+set}" = set; then
10986   echo $ECHO_N "(cached) $ECHO_C" >&6
10987 else
10988   cat >conftest.$ac_ext <<_ACEOF
10989 /* confdefs.h.  */
10990 _ACEOF
10991 cat confdefs.h >>conftest.$ac_ext
10992 cat >>conftest.$ac_ext <<_ACEOF
10993 /* end confdefs.h.  */
10994
10995 #define _SYSCALL32
10996 #include <sys/procfs.h>
10997 int
10998 main ()
10999 {
11000 psinfo32_t avar
11001   ;
11002   return 0;
11003 }
11004 _ACEOF
11005 rm -f conftest.$ac_objext
11006 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11007   (eval $ac_compile) 2>conftest.er1
11008   ac_status=$?
11009   grep -v '^ *+' conftest.er1 >conftest.err
11010   rm -f conftest.er1
11011   cat conftest.err >&5
11012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11013   (exit $ac_status); } &&
11014          { ac_try='test -z "$ac_c_werror_flag"
11015                          || test ! -s conftest.err'
11016   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11017   (eval $ac_try) 2>&5
11018   ac_status=$?
11019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11020   (exit $ac_status); }; } &&
11021          { ac_try='test -s conftest.$ac_objext'
11022   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11023   (eval $ac_try) 2>&5
11024   ac_status=$?
11025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11026   (exit $ac_status); }; }; then
11027   bfd_cv_have_sys_procfs_type_psinfo32_t=yes
11028 else
11029   echo "$as_me: failed program was:" >&5
11030 sed 's/^/| /' conftest.$ac_ext >&5
11031
11032 bfd_cv_have_sys_procfs_type_psinfo32_t=no
11033
11034 fi
11035 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11036 fi
11037
11038  if test $bfd_cv_have_sys_procfs_type_psinfo32_t = yes; then
11039
11040 cat >>confdefs.h <<\_ACEOF
11041 #define HAVE_PSINFO32_T 1
11042 _ACEOF
11043
11044  fi
11045  echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psinfo32_t" >&5
11046 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psinfo32_t" >&6
11047
11048     echo "$as_me:$LINENO: checking for lwpstatus_t in sys/procfs.h" >&5
11049 echo $ECHO_N "checking for lwpstatus_t in sys/procfs.h... $ECHO_C" >&6
11050  if test "${bfd_cv_have_sys_procfs_type_lwpstatus_t+set}" = set; then
11051   echo $ECHO_N "(cached) $ECHO_C" >&6
11052 else
11053   cat >conftest.$ac_ext <<_ACEOF
11054 /* confdefs.h.  */
11055 _ACEOF
11056 cat confdefs.h >>conftest.$ac_ext
11057 cat >>conftest.$ac_ext <<_ACEOF
11058 /* end confdefs.h.  */
11059
11060 #define _SYSCALL32
11061 #include <sys/procfs.h>
11062 int
11063 main ()
11064 {
11065 lwpstatus_t avar
11066   ;
11067   return 0;
11068 }
11069 _ACEOF
11070 rm -f conftest.$ac_objext
11071 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11072   (eval $ac_compile) 2>conftest.er1
11073   ac_status=$?
11074   grep -v '^ *+' conftest.er1 >conftest.err
11075   rm -f conftest.er1
11076   cat conftest.err >&5
11077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11078   (exit $ac_status); } &&
11079          { ac_try='test -z "$ac_c_werror_flag"
11080                          || test ! -s conftest.err'
11081   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11082   (eval $ac_try) 2>&5
11083   ac_status=$?
11084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11085   (exit $ac_status); }; } &&
11086          { ac_try='test -s conftest.$ac_objext'
11087   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11088   (eval $ac_try) 2>&5
11089   ac_status=$?
11090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11091   (exit $ac_status); }; }; then
11092   bfd_cv_have_sys_procfs_type_lwpstatus_t=yes
11093 else
11094   echo "$as_me: failed program was:" >&5
11095 sed 's/^/| /' conftest.$ac_ext >&5
11096
11097 bfd_cv_have_sys_procfs_type_lwpstatus_t=no
11098
11099 fi
11100 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11101 fi
11102
11103  if test $bfd_cv_have_sys_procfs_type_lwpstatus_t = yes; then
11104
11105 cat >>confdefs.h <<\_ACEOF
11106 #define HAVE_LWPSTATUS_T 1
11107 _ACEOF
11108
11109  fi
11110  echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpstatus_t" >&5
11111 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpstatus_t" >&6
11112
11113     echo "$as_me:$LINENO: checking for lwpxstatus_t in sys/procfs.h" >&5
11114 echo $ECHO_N "checking for lwpxstatus_t in sys/procfs.h... $ECHO_C" >&6
11115  if test "${bfd_cv_have_sys_procfs_type_lwpxstatus_t+set}" = set; then
11116   echo $ECHO_N "(cached) $ECHO_C" >&6
11117 else
11118   cat >conftest.$ac_ext <<_ACEOF
11119 /* confdefs.h.  */
11120 _ACEOF
11121 cat confdefs.h >>conftest.$ac_ext
11122 cat >>conftest.$ac_ext <<_ACEOF
11123 /* end confdefs.h.  */
11124
11125 #define _SYSCALL32
11126 #include <sys/procfs.h>
11127 int
11128 main ()
11129 {
11130 lwpxstatus_t avar
11131   ;
11132   return 0;
11133 }
11134 _ACEOF
11135 rm -f conftest.$ac_objext
11136 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11137   (eval $ac_compile) 2>conftest.er1
11138   ac_status=$?
11139   grep -v '^ *+' conftest.er1 >conftest.err
11140   rm -f conftest.er1
11141   cat conftest.err >&5
11142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11143   (exit $ac_status); } &&
11144          { ac_try='test -z "$ac_c_werror_flag"
11145                          || test ! -s conftest.err'
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); }; } &&
11151          { ac_try='test -s conftest.$ac_objext'
11152   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11153   (eval $ac_try) 2>&5
11154   ac_status=$?
11155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11156   (exit $ac_status); }; }; then
11157   bfd_cv_have_sys_procfs_type_lwpxstatus_t=yes
11158 else
11159   echo "$as_me: failed program was:" >&5
11160 sed 's/^/| /' conftest.$ac_ext >&5
11161
11162 bfd_cv_have_sys_procfs_type_lwpxstatus_t=no
11163
11164 fi
11165 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11166 fi
11167
11168  if test $bfd_cv_have_sys_procfs_type_lwpxstatus_t = yes; then
11169
11170 cat >>confdefs.h <<\_ACEOF
11171 #define HAVE_LWPXSTATUS_T 1
11172 _ACEOF
11173
11174  fi
11175  echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpxstatus_t" >&5
11176 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpxstatus_t" >&6
11177
11178     echo "$as_me:$LINENO: checking for lwpstatus_t.pr_context in sys/procfs.h" >&5
11179 echo $ECHO_N "checking for lwpstatus_t.pr_context in sys/procfs.h... $ECHO_C" >&6
11180  if test "${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context+set}" = set; then
11181   echo $ECHO_N "(cached) $ECHO_C" >&6
11182 else
11183   cat >conftest.$ac_ext <<_ACEOF
11184 /* confdefs.h.  */
11185 _ACEOF
11186 cat confdefs.h >>conftest.$ac_ext
11187 cat >>conftest.$ac_ext <<_ACEOF
11188 /* end confdefs.h.  */
11189
11190 #define _SYSCALL32
11191 #include <sys/procfs.h>
11192 int
11193 main ()
11194 {
11195 lwpstatus_t avar; void* aref = (void*) &avar.pr_context
11196   ;
11197   return 0;
11198 }
11199 _ACEOF
11200 rm -f conftest.$ac_objext
11201 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11202   (eval $ac_compile) 2>conftest.er1
11203   ac_status=$?
11204   grep -v '^ *+' conftest.er1 >conftest.err
11205   rm -f conftest.er1
11206   cat conftest.err >&5
11207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11208   (exit $ac_status); } &&
11209          { ac_try='test -z "$ac_c_werror_flag"
11210                          || test ! -s conftest.err'
11211   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11212   (eval $ac_try) 2>&5
11213   ac_status=$?
11214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11215   (exit $ac_status); }; } &&
11216          { ac_try='test -s conftest.$ac_objext'
11217   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11218   (eval $ac_try) 2>&5
11219   ac_status=$?
11220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11221   (exit $ac_status); }; }; then
11222   bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=yes
11223 else
11224   echo "$as_me: failed program was:" >&5
11225 sed 's/^/| /' conftest.$ac_ext >&5
11226
11227 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=no
11228
11229 fi
11230 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11231 fi
11232
11233  if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context = yes; then
11234
11235 cat >>confdefs.h <<\_ACEOF
11236 #define HAVE_LWPSTATUS_T_PR_CONTEXT 1
11237 _ACEOF
11238
11239  fi
11240  echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" >&5
11241 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" >&6
11242
11243     echo "$as_me:$LINENO: checking for lwpstatus_t.pr_reg in sys/procfs.h" >&5
11244 echo $ECHO_N "checking for lwpstatus_t.pr_reg in sys/procfs.h... $ECHO_C" >&6
11245  if test "${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg+set}" = set; then
11246   echo $ECHO_N "(cached) $ECHO_C" >&6
11247 else
11248   cat >conftest.$ac_ext <<_ACEOF
11249 /* confdefs.h.  */
11250 _ACEOF
11251 cat confdefs.h >>conftest.$ac_ext
11252 cat >>conftest.$ac_ext <<_ACEOF
11253 /* end confdefs.h.  */
11254
11255 #define _SYSCALL32
11256 #include <sys/procfs.h>
11257 int
11258 main ()
11259 {
11260 lwpstatus_t avar; void* aref = (void*) &avar.pr_reg
11261   ;
11262   return 0;
11263 }
11264 _ACEOF
11265 rm -f conftest.$ac_objext
11266 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11267   (eval $ac_compile) 2>conftest.er1
11268   ac_status=$?
11269   grep -v '^ *+' conftest.er1 >conftest.err
11270   rm -f conftest.er1
11271   cat conftest.err >&5
11272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11273   (exit $ac_status); } &&
11274          { ac_try='test -z "$ac_c_werror_flag"
11275                          || test ! -s conftest.err'
11276   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11277   (eval $ac_try) 2>&5
11278   ac_status=$?
11279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11280   (exit $ac_status); }; } &&
11281          { ac_try='test -s conftest.$ac_objext'
11282   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11283   (eval $ac_try) 2>&5
11284   ac_status=$?
11285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11286   (exit $ac_status); }; }; then
11287   bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=yes
11288 else
11289   echo "$as_me: failed program was:" >&5
11290 sed 's/^/| /' conftest.$ac_ext >&5
11291
11292 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=no
11293
11294 fi
11295 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11296 fi
11297
11298  if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg = yes; then
11299
11300 cat >>confdefs.h <<\_ACEOF
11301 #define HAVE_LWPSTATUS_T_PR_REG 1
11302 _ACEOF
11303
11304  fi
11305  echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" >&5
11306 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" >&6
11307
11308     echo "$as_me:$LINENO: checking for win32_pstatus_t in sys/procfs.h" >&5
11309 echo $ECHO_N "checking for win32_pstatus_t in sys/procfs.h... $ECHO_C" >&6
11310  if test "${bfd_cv_have_sys_procfs_type_win32_pstatus_t+set}" = set; then
11311   echo $ECHO_N "(cached) $ECHO_C" >&6
11312 else
11313   cat >conftest.$ac_ext <<_ACEOF
11314 /* confdefs.h.  */
11315 _ACEOF
11316 cat confdefs.h >>conftest.$ac_ext
11317 cat >>conftest.$ac_ext <<_ACEOF
11318 /* end confdefs.h.  */
11319
11320 #define _SYSCALL32
11321 #include <sys/procfs.h>
11322 int
11323 main ()
11324 {
11325 win32_pstatus_t avar
11326   ;
11327   return 0;
11328 }
11329 _ACEOF
11330 rm -f conftest.$ac_objext
11331 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11332   (eval $ac_compile) 2>conftest.er1
11333   ac_status=$?
11334   grep -v '^ *+' conftest.er1 >conftest.err
11335   rm -f conftest.er1
11336   cat conftest.err >&5
11337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11338   (exit $ac_status); } &&
11339          { ac_try='test -z "$ac_c_werror_flag"
11340                          || test ! -s conftest.err'
11341   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11342   (eval $ac_try) 2>&5
11343   ac_status=$?
11344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11345   (exit $ac_status); }; } &&
11346          { ac_try='test -s conftest.$ac_objext'
11347   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11348   (eval $ac_try) 2>&5
11349   ac_status=$?
11350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11351   (exit $ac_status); }; }; then
11352   bfd_cv_have_sys_procfs_type_win32_pstatus_t=yes
11353 else
11354   echo "$as_me: failed program was:" >&5
11355 sed 's/^/| /' conftest.$ac_ext >&5
11356
11357 bfd_cv_have_sys_procfs_type_win32_pstatus_t=no
11358
11359 fi
11360 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11361 fi
11362
11363  if test $bfd_cv_have_sys_procfs_type_win32_pstatus_t = yes; then
11364
11365 cat >>confdefs.h <<\_ACEOF
11366 #define HAVE_WIN32_PSTATUS_T 1
11367 _ACEOF
11368
11369  fi
11370  echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_win32_pstatus_t" >&5
11371 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_win32_pstatus_t" >&6
11372
11373   fi
11374 fi
11375
11376
11377 if test -n "$TRAD_HEADER"; then
11378
11379 cat >>confdefs.h <<_ACEOF
11380 #define TRAD_HEADER $TRAD_HEADER
11381 _ACEOF
11382
11383 fi
11384
11385 # Horrible hacks to build DLLs on Windows.
11386 WIN32LDFLAGS=
11387 WIN32LIBADD=
11388 case "${host}" in
11389 *-*-cygwin*)
11390   if test "$enable_shared" = "yes"; then
11391     WIN32LDFLAGS="-no-undefined"
11392     WIN32LIBADD="-L`pwd`/../libiberty -liberty -L`pwd`/../intl -lintl -lcygwin -lkernel32"
11393   fi
11394   ;;
11395 *-*-linux*)
11396   # We borrow WIN32LIBADD so that the shared libbfd won't depend on
11397   # libiberty.a.
11398   case "${host}" in
11399   mips*-*-linux*)
11400     # Linux/MIPS uses PIC by default.
11401     if test "$enable_shared" = "yes"; then
11402       WIN32LIBADD="-L../libiberty -liberty"
11403     fi
11404     ;;
11405   *)
11406     x=`sed -n -e 's/^[  ]*PICFLAG[      ]*=[    ]*//p' < ../libiberty/Makefile | sed -n '$p'`
11407     if test -n "$x"; then
11408       WIN32LIBADD="-L../libiberty/pic -liberty"
11409     fi
11410   ;;
11411   esac
11412   ;;
11413 esac
11414
11415
11416
11417 # target stuff:
11418
11419 # Canonicalize the secondary target names.
11420 if test -n "$enable_targets" ; then
11421     for targ in `echo $enable_targets | sed 's/,/ /g'`
11422     do
11423         result=`$ac_config_sub $targ 2>/dev/null`
11424         if test -n "$result" ; then
11425             canon_targets="$canon_targets $result"
11426         else
11427             # Allow targets that config.sub doesn't recognize, like "all".
11428             canon_targets="$canon_targets $targ"
11429         fi
11430     done
11431 fi
11432
11433 all_targets=false
11434 defvec=
11435 selvecs=
11436 assocvecs=
11437 selarchs=
11438 TDEFINES=
11439 for targ in $target $canon_targets
11440 do
11441     if test "x$targ" = "xall"; then
11442         all_targets=true
11443         assocvecs="$assocvecs $targ_defvec $targ_selvecs"
11444     else
11445         . $srcdir/config.bfd
11446         if test "x$targ" = "x$target"; then
11447             defvec=$targ_defvec
11448         fi
11449         selvecs="$selvecs $targ_defvec $targ_selvecs"
11450         selarchs="$selarchs $targ_archs"
11451         TDEFINES="$TDEFINES $targ_cflags"
11452     fi
11453 done
11454
11455
11456 # This processing still needs to be done if we're to decide properly whether
11457 # 64-bit support needs to be compiled in.  Currently, it will be included if
11458 # the default or any other explicitly requested target requires it; it
11459 # will not be included on a 32-bit host if no 64-bit target is requested, and
11460 # no "--with-64-bit-bfd" option is given, even if "--enable-targets=all" is
11461 # used.
11462
11463 # uniq the default and selected vectors in all the configured targets.
11464 f=""
11465 for i in $selvecs ; do
11466     case " $f " in
11467     *" $i "*) ;;
11468     *) f="$f $i" ;;
11469     esac
11470 done
11471 selvecs="$f"
11472
11473
11474 # uniq the associated vectors in all the configured targets.
11475 f=""
11476 for i in $assocvecs ; do
11477     case " $f " in
11478     *" $i "*) ;;
11479     *) f="$f $i" ;;
11480     esac
11481 done
11482 assocvecs="$f"
11483
11484
11485 # uniq the architectures in all the configured targets.
11486 f=""
11487 for i in $selarchs ; do
11488     case " $f " in
11489     *" $i "*) ;;
11490     *) f="$f $i" ;;
11491     esac
11492 done
11493 selarchs="$f"
11494
11495 # Target backend .o files.
11496 tb=
11497
11498 elf="elf.lo elflink.lo elf-strtab.lo elf-eh-frame.lo dwarf1.lo"
11499
11500 for vec in $selvecs
11501 do
11502     target_size=32
11503     case "$vec" in
11504     # This list is alphabetized to make it easy to compare
11505     # with the two vector lists in targets.c.  For the same reason,
11506     # use one entry per line, even though this leads to long lines.
11507     a29kcoff_big_vec)           tb="$tb coff-a29k.lo cofflink.lo" ;;
11508     a_out_adobe_vec)            tb="$tb aout-adobe.lo aout32.lo" ;;
11509     aix5coff64_vec)             tb="$tb coff64-rs6000.lo xcofflink.lo aix5ppc-core.lo"; target_size=64 ;;
11510     aout0_big_vec)              tb="$tb aout0.lo aout32.lo" ;;
11511     aout_arm_big_vec)           tb="$tb aout-arm.lo aout32.lo" ;;
11512     aout_arm_little_vec)        tb="$tb aout-arm.lo aout32.lo" ;;
11513     apollocoff_vec)             tb="$tb coff-apollo.lo" ;;
11514     arm_epoc_pe_big_vec)        tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;;
11515     arm_epoc_pe_little_vec)     tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;;
11516     arm_epoc_pei_big_vec)       tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;;
11517     arm_epoc_pei_little_vec)    tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;;
11518     armcoff_big_vec)            tb="$tb coff-arm.lo cofflink.lo " ;;
11519     armcoff_little_vec)         tb="$tb coff-arm.lo cofflink.lo " ;;
11520     armnetbsd_vec)              tb="$tb armnetbsd.lo aout32.lo" ;;
11521     armpe_big_vec)              tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;;
11522     armpe_little_vec)           tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;;
11523     armpei_big_vec)             tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;;
11524     armpei_little_vec)          tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;;
11525     b_out_vec_big_host)         tb="$tb bout.lo aout32.lo" ;;
11526     b_out_vec_little_host)      tb="$tb bout.lo aout32.lo" ;;
11527     bfd_efi_app_ia32_vec)       tb="$tb efi-app-ia32.lo peigen.lo cofflink.lo" ;;
11528     bfd_efi_app_ia64_vec)       tb="$tb efi-app-ia64.lo pepigen.lo cofflink.lo"; target_size=64 ;;
11529     bfd_elf32_am33lin_vec)      tb="$tb elf32-am33lin.lo elf32.lo $elf" ;;
11530     bfd_elf32_avr_vec)          tb="$tb elf32-avr.lo elf32.lo $elf" ;;
11531     bfd_elf32_big_generic_vec)  tb="$tb elf32-gen.lo elf32.lo $elf" ;;
11532     bfd_elf32_bigarc_vec)       tb="$tb elf32-arc.lo elf32.lo $elf" ;;
11533     bfd_elf32_bigarm_vec)       tb="$tb elf32-arm.lo elf32.lo $elf" ;;
11534     bfd_elf32_bigarm_symbian_vec)
11535                                 tb="$tb elf32-arm.lo elf32.lo $elf" ;;
11536     bfd_elf32_bigmips_vec)      tb="$tb elf32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo" ;;
11537     bfd_elf32_cr16c_vec)        tb="$tb elf32-cr16c.lo elf32.lo $elf" ;;
11538     bfd_elf32_cris_vec)         tb="$tb elf32-cris.lo elf32.lo $elf" ;;
11539     bfd_elf32_crx_vec)          tb="$tb elf32-crx.lo elf32.lo $elf" ;;
11540     bfd_elf32_d10v_vec)         tb="$tb elf32-d10v.lo elf32.lo $elf" ;;
11541     bfd_elf32_d30v_vec)         tb="$tb elf32-d30v.lo elf32.lo $elf" ;;
11542     bfd_elf32_dlx_big_vec)      tb="$tb elf32-dlx.lo elf32.lo $elf" ;;
11543     bfd_elf32_fr30_vec)         tb="$tb elf32-fr30.lo elf32.lo $elf" ;;
11544     bfd_elf32_frv_vec)          tb="$tb elf32-frv.lo elf32.lo $elf" ;;
11545     bfd_elf32_frvfdpic_vec)     tb="$tb elf32-frv.lo elf32.lo $elf" ;;
11546     bfd_elf32_h8300_vec)        tb="$tb elf32-h8300.lo elf32.lo $elf" ;;
11547     bfd_elf32_hppa_linux_vec)   tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
11548     bfd_elf32_hppa_nbsd_vec)    tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
11549     bfd_elf32_hppa_vec)         tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
11550     bfd_elf32_i370_vec)         tb="$tb elf32-i370.lo elf32.lo $elf" ;;
11551     bfd_elf32_i386_freebsd_vec) tb="$tb elf32-i386.lo elf32.lo $elf" ;;
11552     bfd_elf32_i386_vec)         tb="$tb elf32-i386.lo elf32.lo $elf" ;;
11553     bfd_elf32_i860_little_vec)  tb="$tb elf32-i860.lo elf32.lo $elf" ;;
11554     bfd_elf32_i860_vec)         tb="$tb elf32-i860.lo elf32.lo $elf" ;;
11555     bfd_elf32_i960_vec)         tb="$tb elf32-i960.lo elf32.lo $elf" ;;
11556     bfd_elf32_ia64_big_vec)     tb="$tb elf32-ia64.lo elf32.lo $elf" ;;
11557     bfd_elf32_ia64_hpux_big_vec) tb="$tb elf32-ia64.lo elf32.lo $elf";;
11558     bfd_elf32_ip2k_vec)         tb="$tb elf32-ip2k.lo elf32.lo $elf" ;;
11559     bfd_elf32_iq2000_vec)       tb="$tb elf32-iq2000.lo elf32.lo $elf" ;;
11560     bfd_elf32_little_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
11561     bfd_elf32_littlearc_vec)    tb="$tb elf32-arc.lo elf32.lo $elf" ;;
11562     bfd_elf32_littlearm_symbian_vec)
11563                                 tb="$tb elf32-arm.lo elf32.lo $elf" ;;
11564     bfd_elf32_littlearm_vec)    tb="$tb elf32-arm.lo elf32.lo $elf" ;;
11565     bfd_elf32_littlemips_vec)   tb="$tb elf32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo" ;;
11566     bfd_elf32_m32r_vec)         tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
11567     bfd_elf32_m32rle_vec)       tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
11568     bfd_elf32_m32rlin_vec)      tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
11569     bfd_elf32_m32rlelin_vec)    tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
11570     bfd_elf32_m68hc11_vec)      tb="$tb elf32-m68hc11.lo elf32-m68hc1x.lo elf32.lo $elf" ;;
11571     bfd_elf32_m68hc12_vec)      tb="$tb elf32-m68hc12.lo elf32-m68hc1x.lo elf32.lo $elf" ;;
11572     bfd_elf32_m68k_vec)         tb="$tb elf32-m68k.lo elf32.lo $elf" ;;
11573     bfd_elf32_m88k_vec)         tb="$tb elf32-m88k.lo elf32.lo $elf" ;;
11574     bfd_elf32_mcore_big_vec)    tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
11575     bfd_elf32_mcore_little_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
11576     bfd_elf32_mn10200_vec)      tb="$tb elf-m10200.lo elf32.lo $elf" ;;
11577     bfd_elf32_mn10300_vec)      tb="$tb elf-m10300.lo elf32.lo $elf" ;;
11578     bfd_elf32_msp430_vec)       tb="$tb elf32-msp430.lo elf32.lo $elf" ;;
11579     bfd_elf32_nbigmips_vec)     tb="$tb elfn32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
11580     bfd_elf32_nlittlemips_vec)  tb="$tb elfn32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
11581     bfd_elf32_ntradbigmips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
11582     bfd_elf32_ntradlittlemips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
11583     bfd_elf32_openrisc_vec)     tb="$tb elf32-openrisc.lo elf32.lo $elf" ;;
11584     bfd_elf32_or32_big_vec)     tb="$tb elf32-or32.lo elf32.lo $elf" ;;
11585     bfd_elf32_pj_vec)           tb="$tb elf32-pj.lo elf32.lo $elf";;
11586     bfd_elf32_pjl_vec)          tb="$tb elf32-pj.lo elf32.lo $elf";;
11587     bfd_elf32_powerpc_vec)      tb="$tb elf32-ppc.lo elf32.lo $elf" ;;
11588     bfd_elf32_powerpcle_vec)    tb="$tb elf32-ppc.lo elf32.lo $elf" ;;
11589     bfd_elf32_s390_vec)         tb="$tb elf32-s390.lo elf32.lo $elf" ;;
11590     # FIXME: We include cofflink.lo not because it's needed for
11591     # bfd_elf32_sh64[l]_vec, but because we include bfd_elf32_sh[l]_vec
11592     # which needs it but does not list it.  Should be fixed in right place.
11593     bfd_elf32_sh64_vec)         tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
11594     bfd_elf32_sh64l_vec)        tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
11595     bfd_elf32_sh64lin_vec)      tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
11596     bfd_elf32_sh64blin_vec)     tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
11597     bfd_elf32_sh64lnbsd_vec)    tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" ;;
11598     bfd_elf32_sh64nbsd_vec)     tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" ;;
11599     bfd_elf32_sh_vec)           tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo" ;;
11600     bfd_elf32_shblin_vec)       tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
11601     bfd_elf32_shl_vec)          tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo" ;;
11602     bfd_elf32_shl_symbian_vec)  tb="$tb elf32-sh-symbian.lo elf32-sh64-com.lo elf32.lo $elf coff-sh.lo" ;;
11603     bfd_elf32_shlin_vec)        tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
11604     bfd_elf32_shlnbsd_vec)      tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
11605     bfd_elf32_shnbsd_vec)       tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
11606     bfd_elf32_sparc_vec)        tb="$tb elf32-sparc.lo elf32.lo $elf" ;;
11607     bfd_elf32_tradbigmips_vec)  tb="$tb elf32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo" ;;
11608     bfd_elf32_tradlittlemips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo" ;;
11609     bfd_elf32_us_cris_vec)      tb="$tb elf32-cris.lo elf32.lo $elf" ;;
11610     bfd_elf32_v850_vec)         tb="$tb elf32-v850.lo elf32.lo $elf" ;;
11611     bfd_elf32_vax_vec)          tb="$tb elf32-vax.lo elf32.lo $elf" ;;
11612     bfd_elf32_xstormy16_vec)    tb="$tb elf32-xstormy16.lo elf32.lo $elf" ;;
11613     bfd_elf32_xtensa_le_vec)    tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;;
11614     bfd_elf32_xtensa_be_vec)    tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;;
11615     bfd_elf64_alpha_freebsd_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;;
11616     bfd_elf64_alpha_vec)        tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;;
11617     bfd_elf64_big_generic_vec)  tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
11618     bfd_elf64_bigmips_vec)      tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
11619     bfd_elf64_hppa_linux_vec)   tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;;
11620     bfd_elf64_hppa_vec)         tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;;
11621     bfd_elf64_ia64_big_vec)     tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
11622     bfd_elf64_ia64_hpux_big_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
11623     bfd_elf64_ia64_little_vec)  tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
11624     bfd_elf64_little_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
11625     bfd_elf64_littlemips_vec)   tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
11626     bfd_elf64_mmix_vec)         tb="$tb elf64-mmix.lo elf64.lo $elf" target_size=64 ;;
11627     bfd_elf64_powerpc_vec)      tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
11628     bfd_elf64_powerpcle_vec)    tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf" target_size=64 ;;
11629     bfd_elf64_s390_vec)         tb="$tb elf64-s390.lo elf64.lo $elf"; target_size=64 ;;
11630     bfd_elf64_sh64_vec)         tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
11631     bfd_elf64_sh64l_vec)        tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
11632     bfd_elf64_sh64lin_vec)      tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
11633     bfd_elf64_sh64blin_vec)     tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
11634     bfd_elf64_sh64lnbsd_vec)    tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
11635     bfd_elf64_sh64nbsd_vec)     tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
11636     bfd_elf64_sparc_vec)        tb="$tb elf64-sparc.lo elf64.lo $elf"; target_size=64 ;;
11637     bfd_elf64_tradbigmips_vec)  tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
11638     bfd_elf64_tradlittlemips_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
11639     bfd_elf64_x86_64_vec)       tb="$tb elf64-x86-64.lo elf64.lo $elf"; target_size=64 ;;
11640     bfd_mmo_vec)                tb="$tb mmo.lo" target_size=64 ;;
11641     bfd_powerpc_pe_vec)         tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;;
11642     bfd_powerpc_pei_vec)        tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;;
11643     bfd_powerpcle_pe_vec)       tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;;
11644     bfd_powerpcle_pei_vec)      tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;;
11645     cris_aout_vec)              tb="$tb aout-cris.lo" ;;
11646     demo_64_vec)                tb="$tb demo64.lo aout64.lo"; target_size=64 ;;
11647     ecoff_big_vec)              tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
11648     ecoff_biglittle_vec)        tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
11649     ecoff_little_vec)           tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
11650     ecoffalpha_little_vec)      tb="$tb coff-alpha.lo ecoff.lo ecofflink.lo"; target_size=64 ;;
11651     go32coff_vec)               tb="$tb coff-go32.lo cofflink.lo" ;;
11652     go32stubbedcoff_vec)        tb="$tb coff-stgo32.lo cofflink.lo" ;;
11653     h8300coff_vec)              tb="$tb coff-h8300.lo reloc16.lo" ;;
11654     h8500coff_vec)              tb="$tb coff-h8500.lo reloc16.lo" ;;
11655     host_aout_vec)              tb="$tb host-aout.lo aout32.lo" ;;
11656     hp300bsd_vec)               tb="$tb hp300bsd.lo aout32.lo" ;;
11657     hp300hpux_vec)              tb="$tb hp300hpux.lo aout32.lo" ;;
11658     i386aout_vec)               tb="$tb i386aout.lo aout32.lo" ;;
11659     i386bsd_vec)                tb="$tb i386bsd.lo aout32.lo" ;;
11660     i386coff_vec)               tb="$tb coff-i386.lo cofflink.lo" ;;
11661     i386dynix_vec)              tb="$tb i386dynix.lo aout32.lo" ;;
11662     i386freebsd_vec)            tb="$tb i386freebsd.lo aout32.lo" ;;
11663     i386linux_vec)              tb="$tb i386linux.lo aout32.lo" ;;
11664     i386lynx_aout_vec)          tb="$tb i386lynx.lo lynx-core.lo aout32.lo" ;;
11665     i386lynx_coff_vec)          tb="$tb cf-i386lynx.lo cofflink.lo lynx-core.lo" ;;
11666     i386mach3_vec)              tb="$tb i386mach3.lo aout32.lo" ;;
11667     i386msdos_vec)              tb="$tb i386msdos.lo" ;;
11668     i386netbsd_vec)             tb="$tb i386netbsd.lo aout32.lo" ;;
11669     i386os9k_vec)               tb="$tb i386os9k.lo aout32.lo" ;;
11670     i386pe_vec)                 tb="$tb pe-i386.lo peigen.lo cofflink.lo" ;;
11671     i386pei_vec)                tb="$tb pei-i386.lo peigen.lo cofflink.lo" ;;
11672     i860coff_vec)               tb="$tb coff-i860.lo cofflink.lo" ;;
11673     icoff_big_vec)              tb="$tb coff-i960.lo cofflink.lo" ;;
11674     icoff_little_vec)           tb="$tb coff-i960.lo cofflink.lo" ;;
11675     ieee_vec)                   tb="$tb ieee.lo" ;;
11676     m68k4knetbsd_vec)           tb="$tb m68k4knetbsd.lo aout32.lo" ;;
11677     m68kaux_coff_vec)           tb="$tb coff-aux.lo coff-m68k.lo cofflink.lo" ;;
11678     m68kcoff_vec)               tb="$tb coff-m68k.lo cofflink.lo" ;;
11679     m68kcoffun_vec)             tb="$tb coff-u68k.lo coff-m68k.lo cofflink.lo" ;;
11680     m68klinux_vec)              tb="$tb m68klinux.lo aout32.lo" ;;
11681     m68klynx_aout_vec)          tb="$tb m68klynx.lo lynx-core.lo aout32.lo" ;;
11682     m68klynx_coff_vec)          tb="$tb cf-m68klynx.lo coff-m68k.lo cofflink.lo lynx-core.lo" ;;
11683     m68knetbsd_vec)             tb="$tb m68knetbsd.lo aout32.lo" ;;
11684     m68ksysvcoff_vec)           tb="$tb coff-svm68k.lo cofflink.lo" ;;
11685     m88kbcs_vec)                tb="$tb coff-m88k.lo" ;;
11686     m88kmach3_vec)              tb="$tb m88kmach3.lo aout32.lo" ;;
11687     m88kopenbsd_vec)            tb="$tb m88kopenbsd.lo aout32.lo" ;;
11688     maxqcoff_vec)               tb="$tb coff-maxq.lo" ;;
11689     mach_o_be_vec)              tb="$tb mach-o.lo" ;;
11690     mach_o_le_vec)              tb="$tb mach-o.lo" ;;
11691     mach_o_fat_vec)             tb="$tb mach-o.lo" ;;
11692     mcore_pe_big_vec)           tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
11693     mcore_pe_little_vec)        tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
11694     mcore_pei_big_vec)          tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;;
11695     mcore_pei_little_vec)       tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;;
11696     mipslpe_vec)                tb="$tb pe-mips.lo peigen.lo cofflink.lo" ;;
11697     mipslpei_vec)               tb="$tb pei-mips.lo peigen.lo cofflink.lo" ;;
11698     newsos3_vec)                tb="$tb newsos3.lo aout32.lo" ;;
11699     nlm32_alpha_vec)            tb="$tb nlm32-alpha.lo nlm32.lo nlm.lo"; target_size=64 ;;
11700     nlm32_i386_vec)             tb="$tb nlm32-i386.lo nlm32.lo nlm.lo" ;;
11701     nlm32_powerpc_vec)          tb="$tb nlm32-ppc.lo nlm32.lo nlm.lo" ;;
11702     nlm32_sparc_vec)            tb="$tb nlm32-sparc.lo nlm32.lo nlm.lo" ;;
11703     or32coff_big_vec)           tb="$tb coff-or32.lo cofflink.lo" ;;
11704     pc532machaout_vec)          tb="$tb pc532-mach.lo aout-ns32k.lo" ;;
11705     pc532netbsd_vec)            tb="$tb ns32knetbsd.lo aout-ns32k.lo" ;;
11706     pef_vec)                    tb="$tb pef.lo" ;;
11707     pef_xlib_vec)               tb="$tb pef.lo" ;;
11708     pdp11_aout_vec)             tb="$tb pdp11.lo" ;;
11709     pmac_xcoff_vec)             tb="$tb coff-rs6000.lo xcofflink.lo" ;;
11710     ppcboot_vec)                tb="$tb ppcboot.lo" ;;
11711     riscix_vec)                 tb="$tb aout32.lo riscix.lo" ;;
11712     rs6000coff64_vec)           tb="$tb coff64-rs6000.lo xcofflink.lo aix5ppc-core.lo"; target_size=64 ;;
11713     rs6000coff_vec)             tb="$tb coff-rs6000.lo xcofflink.lo" ;;
11714     shcoff_small_vec)           tb="$tb coff-sh.lo cofflink.lo" ;;
11715     shcoff_vec)                 tb="$tb coff-sh.lo cofflink.lo" ;;
11716     shlcoff_small_vec)          tb="$tb coff-sh.lo cofflink.lo" ;;
11717     shlcoff_vec)                tb="$tb coff-sh.lo cofflink.lo" ;;
11718     shlpe_vec)                  tb="$tb pe-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;;
11719     shlpei_vec)                 tb="$tb pei-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;;
11720     som_vec)                    tb="$tb som.lo" ;;
11721     sparccoff_vec)              tb="$tb coff-sparc.lo" ;;
11722     sparcle_aout_vec)           tb="$tb aout-sparcle.lo aout32.lo" ;;
11723     sparclinux_vec)             tb="$tb sparclinux.lo aout32.lo" ;;
11724     sparclynx_aout_vec)         tb="$tb sparclynx.lo lynx-core.lo aout32.lo" ;;
11725     sparclynx_coff_vec)         tb="$tb cf-sparclynx.lo lynx-core.lo" ;;
11726     sparcnetbsd_vec)            tb="$tb sparcnetbsd.lo aout32.lo" ;;
11727     sunos_big_vec)              tb="$tb sunos.lo aout32.lo" ;;
11728     sym_vec)                    tb="$tb xsym.lo" ;;
11729     tic30_aout_vec)             tb="$tb aout-tic30.lo" ;;
11730     tic30_coff_vec)             tb="$tb coff-tic30.lo" ;;
11731     tic4x_coff0_vec)            tb="$tb coff-tic4x.lo" ;;
11732     tic4x_coff0_beh_vec)        tb="$tb coff-tic4x.lo" ;;
11733     tic4x_coff1_vec)            tb="$tb coff-tic4x.lo" ;;
11734     tic4x_coff1_beh_vec)        tb="$tb coff-tic4x.lo" ;;
11735     tic4x_coff2_vec)            tb="$tb coff-tic4x.lo" ;;
11736     tic4x_coff2_beh_vec)        tb="$tb coff-tic4x.lo" ;;
11737     tic54x_coff0_beh_vec)       tb="$tb coff-tic54x.lo" ;;
11738     tic54x_coff0_vec)           tb="$tb coff-tic54x.lo" ;;
11739     tic54x_coff1_beh_vec)       tb="$tb coff-tic54x.lo" ;;
11740     tic54x_coff1_vec)           tb="$tb coff-tic54x.lo" ;;
11741     tic54x_coff2_beh_vec)       tb="$tb coff-tic54x.lo" ;;
11742     tic54x_coff2_vec)           tb="$tb coff-tic54x.lo" ;;
11743     tic80coff_vec)              tb="$tb coff-tic80.lo cofflink.lo" ;;
11744     vaxnetbsd_vec)              tb="$tb vaxnetbsd.lo aout32.lo" ;;
11745     vax1knetbsd_vec)            tb="$tb vax1knetbsd.lo aout32.lo" ;;
11746     vaxbsd_vec)                 tb="$tb vaxbsd.lo aout32.lo" ;;
11747     versados_vec)               tb="$tb versados.lo" ;;
11748     vms_alpha_vec)              tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo"; target_size=64 ;;
11749     vms_vax_vec)                tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo" ;;
11750     w65_vec)                    tb="$tb coff-w65.lo reloc16.lo" ;;
11751     we32kcoff_vec)              tb="$tb coff-we32k.lo" ;;
11752     z8kcoff_vec)                tb="$tb coff-z8k.lo reloc16.lo" ;;
11753
11754     # These appear out of order in targets.c
11755     srec_vec)                   tb="$tb srec.lo" ;;
11756     symbolsrec_vec)             tb="$tb srec.lo" ;;
11757     tekhex_vec)                 tb="$tb tekhex.lo" ;;
11758     cisco_core_big_vec)         tb="$tb cisco-core.lo" ;;
11759     cisco_core_little_vec)      tb="$tb cisco-core.lo" ;;
11760
11761     "")                 ;;
11762     *) { { echo "$as_me:$LINENO: error: *** unknown target vector $vec" >&5
11763 echo "$as_me: error: *** unknown target vector $vec" >&2;}
11764    { (exit 1); exit 1; }; } ;;
11765     esac
11766
11767     if test ${target_size} = 64; then
11768         target64=true
11769     fi
11770     if test x"${vec}" = x"${defvec}"; then
11771         bfd_default_target_size=${target_size}
11772     fi
11773 done
11774
11775 # Target architecture .o files.
11776 # A couple of CPUs use shorter file names to avoid problems on DOS
11777 # filesystems.
11778 ta=`echo $selarchs | sed -e s/bfd_/cpu-/g -e s/_arch/.lo/g -e s/mn10200/m10200/ -e s/mn10300/m10300/`
11779
11780 # Weed out duplicate .o files.
11781 f=""
11782 for i in $tb ; do
11783     case " $f " in
11784     *" $i "*) ;;
11785     *) f="$f $i" ;;
11786     esac
11787 done
11788 tb="$f"
11789
11790 f=""
11791 for i in $ta ; do
11792     case " $f " in
11793     *" $i "*) ;;
11794     *) f="$f $i" ;;
11795     esac
11796 done
11797 ta="$f"
11798
11799 bfd_backends="$tb"
11800 bfd_machines="$ta"
11801
11802 if test x${all_targets} = xtrue ; then
11803   bfd_backends="${bfd_backends}"' $(ALL_BACKENDS)'
11804   bfd_machines="${bfd_machines}"' $(ALL_MACHINES)'
11805   selvecs=
11806   havevecs=
11807   selarchs=
11808   test -n "$assocvecs" &&
11809     assocvecs=`echo $assocvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
11810 else    # all_targets is true
11811   # Only set these if they will be nonempty, for the clever echo.
11812   havevecs=
11813   assocvecs=
11814   test -n "$selvecs" &&
11815     havevecs=`echo $selvecs | sed -e 's/^/-DHAVE_/' -e 's/ \(.\)/ -DHAVE_\1/g'`
11816   test -n "$selvecs" &&
11817     selvecs=`echo $selvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
11818   test -n "$selarchs" &&
11819     selarchs=`echo $selarchs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
11820 fi      # all_targets is true
11821
11822 case ${host64}-${target64}-${want64} in
11823   *true*)
11824     wordsize=64
11825     bfd_libs='$(BFD64_LIBS) $(BFD32_LIBS)'
11826     all_backends='$(BFD64_BACKENDS) $(BFD32_BACKENDS)'
11827     if test $BFD_HOST_64_BIT_DEFINED = 0; then
11828       { echo "$as_me:$LINENO: WARNING: You have requested a 64 bit BFD configuration, but" >&5
11829 echo "$as_me: WARNING: You have requested a 64 bit BFD configuration, but" >&2;}
11830       { echo "$as_me:$LINENO: WARNING: your compiler may not have a 64 bit integral type" >&5
11831 echo "$as_me: WARNING: your compiler may not have a 64 bit integral type" >&2;}
11832     fi
11833     if test -n "$GCC" ; then
11834        bad_64bit_gcc=no;
11835        echo "$as_me:$LINENO: checking for gcc version with buggy 64-bit support" >&5
11836 echo $ECHO_N "checking for gcc version with buggy 64-bit support... $ECHO_C" >&6
11837        # Add more tests for gcc versions with non-working 64-bit support here.
11838        cat >conftest.$ac_ext <<_ACEOF
11839 /* confdefs.h.  */
11840 _ACEOF
11841 cat confdefs.h >>conftest.$ac_ext
11842 cat >>conftest.$ac_ext <<_ACEOF
11843 /* end confdefs.h.  */
11844 :__GNUC__:__GNUC_MINOR__:__i386__:
11845 _ACEOF
11846 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11847   $EGREP ": 2 : 91 : 1 :" >/dev/null 2>&1; then
11848   bad_64bit_gcc=yes;
11849                     echo "$as_me:$LINENO: result: yes: egcs-1.1.2 on ix86 spotted" >&5
11850 echo "${ECHO_T}yes: egcs-1.1.2 on ix86 spotted" >&6
11851 else
11852   echo "$as_me:$LINENO: result: no" >&5
11853 echo "${ECHO_T}no" >&6
11854 fi
11855 rm -f conftest*
11856
11857        if test $bad_64bit_gcc = yes ; then
11858          { { echo "$as_me:$LINENO: error: A newer version of gcc is needed for the requested 64-bit BFD configuration" >&5
11859 echo "$as_me: error: A newer version of gcc is needed for the requested 64-bit BFD configuration" >&2;}
11860    { (exit 1); exit 1; }; }
11861        fi
11862     fi
11863     ;;
11864   false-false-false)
11865     wordsize=32
11866     bfd_libs='$(BFD32_LIBS)'
11867     all_backends='$(BFD32_BACKENDS)'
11868     ;;
11869 esac
11870
11871
11872
11873
11874
11875
11876
11877
11878 # Determine the host dependant file_ptr a.k.a. off_t type.  In order
11879 # prefer: off64_t - if ftello64 and fseeko64, off_t - if ftello and
11880 # fseeko, long.  This assumes that sizeof off_t is .ge. sizeof long.
11881 # Hopefully a reasonable assumption since fseeko et.al. should be
11882 # upward compatible.
11883
11884
11885
11886
11887 for ac_func in ftello ftello64 fseeko fseeko64
11888 do
11889 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11890 echo "$as_me:$LINENO: checking for $ac_func" >&5
11891 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11892 if eval "test \"\${$as_ac_var+set}\" = set"; then
11893   echo $ECHO_N "(cached) $ECHO_C" >&6
11894 else
11895   cat >conftest.$ac_ext <<_ACEOF
11896 /* confdefs.h.  */
11897 _ACEOF
11898 cat confdefs.h >>conftest.$ac_ext
11899 cat >>conftest.$ac_ext <<_ACEOF
11900 /* end confdefs.h.  */
11901 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11902    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11903 #define $ac_func innocuous_$ac_func
11904
11905 /* System header to define __stub macros and hopefully few prototypes,
11906     which can conflict with char $ac_func (); below.
11907     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11908     <limits.h> exists even on freestanding compilers.  */
11909
11910 #ifdef __STDC__
11911 # include <limits.h>
11912 #else
11913 # include <assert.h>
11914 #endif
11915
11916 #undef $ac_func
11917
11918 /* Override any gcc2 internal prototype to avoid an error.  */
11919 #ifdef __cplusplus
11920 extern "C"
11921 {
11922 #endif
11923 /* We use char because int might match the return type of a gcc2
11924    builtin and then its argument prototype would still apply.  */
11925 char $ac_func ();
11926 /* The GNU C library defines this for functions which it implements
11927     to always fail with ENOSYS.  Some functions are actually named
11928     something starting with __ and the normal name is an alias.  */
11929 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11930 choke me
11931 #else
11932 char (*f) () = $ac_func;
11933 #endif
11934 #ifdef __cplusplus
11935 }
11936 #endif
11937
11938 int
11939 main ()
11940 {
11941 return f != $ac_func;
11942   ;
11943   return 0;
11944 }
11945 _ACEOF
11946 rm -f conftest.$ac_objext conftest$ac_exeext
11947 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11948   (eval $ac_link) 2>conftest.er1
11949   ac_status=$?
11950   grep -v '^ *+' conftest.er1 >conftest.err
11951   rm -f conftest.er1
11952   cat conftest.err >&5
11953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11954   (exit $ac_status); } &&
11955          { ac_try='test -z "$ac_c_werror_flag"
11956                          || test ! -s conftest.err'
11957   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11958   (eval $ac_try) 2>&5
11959   ac_status=$?
11960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11961   (exit $ac_status); }; } &&
11962          { ac_try='test -s conftest$ac_exeext'
11963   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11964   (eval $ac_try) 2>&5
11965   ac_status=$?
11966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11967   (exit $ac_status); }; }; then
11968   eval "$as_ac_var=yes"
11969 else
11970   echo "$as_me: failed program was:" >&5
11971 sed 's/^/| /' conftest.$ac_ext >&5
11972
11973 eval "$as_ac_var=no"
11974 fi
11975 rm -f conftest.err conftest.$ac_objext \
11976       conftest$ac_exeext conftest.$ac_ext
11977 fi
11978 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11979 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11980 if test `eval echo '${'$as_ac_var'}'` = yes; then
11981   cat >>confdefs.h <<_ACEOF
11982 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11983 _ACEOF
11984
11985 fi
11986 done
11987
11988 if test x"$ac_cv_func_ftello" = xyes -a x"$ac_cv_func_fseeko" = xyes; then
11989     echo "$as_me:$LINENO: checking size of off_t" >&5
11990 echo $ECHO_N "checking size of off_t... $ECHO_C" >&6
11991 if test "${ac_cv_sizeof_off_t+set}" = set; then
11992   echo $ECHO_N "(cached) $ECHO_C" >&6
11993 else
11994   for ac_size in 4 8 1 2 16 12  ; do # List sizes in rough order of prevalence.
11995   cat >conftest.$ac_ext <<_ACEOF
11996 /* confdefs.h.  */
11997 _ACEOF
11998 cat confdefs.h >>conftest.$ac_ext
11999 cat >>conftest.$ac_ext <<_ACEOF
12000 /* end confdefs.h.  */
12001 #include "confdefs.h"
12002 #include <sys/types.h>
12003
12004
12005 int
12006 main ()
12007 {
12008 switch (0) case 0: case (sizeof (off_t) == $ac_size):;
12009   ;
12010   return 0;
12011 }
12012 _ACEOF
12013 rm -f conftest.$ac_objext
12014 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12015   (eval $ac_compile) 2>conftest.er1
12016   ac_status=$?
12017   grep -v '^ *+' conftest.er1 >conftest.err
12018   rm -f conftest.er1
12019   cat conftest.err >&5
12020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12021   (exit $ac_status); } &&
12022          { ac_try='test -z "$ac_c_werror_flag"
12023                          || test ! -s conftest.err'
12024   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12025   (eval $ac_try) 2>&5
12026   ac_status=$?
12027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12028   (exit $ac_status); }; } &&
12029          { ac_try='test -s conftest.$ac_objext'
12030   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12031   (eval $ac_try) 2>&5
12032   ac_status=$?
12033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12034   (exit $ac_status); }; }; then
12035   ac_cv_sizeof_off_t=$ac_size
12036 else
12037   echo "$as_me: failed program was:" >&5
12038 sed 's/^/| /' conftest.$ac_ext >&5
12039
12040 fi
12041 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12042   if test x$ac_cv_sizeof_off_t != x ; then break; fi
12043 done
12044
12045 fi
12046
12047 if test x$ac_cv_sizeof_off_t = x ; then
12048   { { echo "$as_me:$LINENO: error: cannot determine a size for off_t" >&5
12049 echo "$as_me: error: cannot determine a size for off_t" >&2;}
12050    { (exit 1); exit 1; }; }
12051 fi
12052 echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
12053 echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6
12054
12055 cat >>confdefs.h <<_ACEOF
12056 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
12057 _ACEOF
12058
12059
12060 fi
12061 echo "$as_me:$LINENO: checking file_ptr type" >&5
12062 echo $ECHO_N "checking file_ptr type... $ECHO_C" >&6
12063 bfd_file_ptr="long"
12064 bfd_ufile_ptr="unsigned long"
12065 if test x"$ac_cv_func_ftello64" = xyes -a x"$ac_cv_func_fseeko64" = xyes \
12066         -o x"${ac_cv_sizeof_off_t}" = x8; then
12067     bfd_file_ptr=BFD_HOST_64_BIT
12068     bfd_ufile_ptr=BFD_HOST_U_64_BIT
12069 fi
12070 echo "$as_me:$LINENO: result: $bfd_file_ptr" >&5
12071 echo "${ECHO_T}$bfd_file_ptr" >&6
12072
12073
12074
12075
12076 tdefaults=""
12077 test -n "${defvec}" && tdefaults="${tdefaults} -DDEFAULT_VECTOR=${defvec}"
12078 test -n "${selvecs}" && tdefaults="${tdefaults} -DSELECT_VECS='${selvecs}'"
12079 test -n "${assocvecs}" && tdefaults="${tdefaults} -DASSOCIATED_VECS='${assocvecs}'"
12080 test -n "${selarchs}" && tdefaults="${tdefaults} -DSELECT_ARCHITECTURES='${selarchs}'"
12081 test -n "${havevecs}" && tdefaults="${tdefaults} ${havevecs}"
12082
12083
12084
12085
12086 for ac_header in stdlib.h unistd.h
12087 do
12088 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12089 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12090   echo "$as_me:$LINENO: checking for $ac_header" >&5
12091 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12092 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12093   echo $ECHO_N "(cached) $ECHO_C" >&6
12094 fi
12095 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12096 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12097 else
12098   # Is the header compilable?
12099 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12100 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12101 cat >conftest.$ac_ext <<_ACEOF
12102 /* confdefs.h.  */
12103 _ACEOF
12104 cat confdefs.h >>conftest.$ac_ext
12105 cat >>conftest.$ac_ext <<_ACEOF
12106 /* end confdefs.h.  */
12107 $ac_includes_default
12108 #include <$ac_header>
12109 _ACEOF
12110 rm -f conftest.$ac_objext
12111 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12112   (eval $ac_compile) 2>conftest.er1
12113   ac_status=$?
12114   grep -v '^ *+' conftest.er1 >conftest.err
12115   rm -f conftest.er1
12116   cat conftest.err >&5
12117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12118   (exit $ac_status); } &&
12119          { ac_try='test -z "$ac_c_werror_flag"
12120                          || test ! -s conftest.err'
12121   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12122   (eval $ac_try) 2>&5
12123   ac_status=$?
12124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12125   (exit $ac_status); }; } &&
12126          { ac_try='test -s conftest.$ac_objext'
12127   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12128   (eval $ac_try) 2>&5
12129   ac_status=$?
12130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12131   (exit $ac_status); }; }; then
12132   ac_header_compiler=yes
12133 else
12134   echo "$as_me: failed program was:" >&5
12135 sed 's/^/| /' conftest.$ac_ext >&5
12136
12137 ac_header_compiler=no
12138 fi
12139 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12140 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12141 echo "${ECHO_T}$ac_header_compiler" >&6
12142
12143 # Is the header present?
12144 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12145 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12146 cat >conftest.$ac_ext <<_ACEOF
12147 /* confdefs.h.  */
12148 _ACEOF
12149 cat confdefs.h >>conftest.$ac_ext
12150 cat >>conftest.$ac_ext <<_ACEOF
12151 /* end confdefs.h.  */
12152 #include <$ac_header>
12153 _ACEOF
12154 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12155   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12156   ac_status=$?
12157   grep -v '^ *+' conftest.er1 >conftest.err
12158   rm -f conftest.er1
12159   cat conftest.err >&5
12160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12161   (exit $ac_status); } >/dev/null; then
12162   if test -s conftest.err; then
12163     ac_cpp_err=$ac_c_preproc_warn_flag
12164     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12165   else
12166     ac_cpp_err=
12167   fi
12168 else
12169   ac_cpp_err=yes
12170 fi
12171 if test -z "$ac_cpp_err"; then
12172   ac_header_preproc=yes
12173 else
12174   echo "$as_me: failed program was:" >&5
12175 sed 's/^/| /' conftest.$ac_ext >&5
12176
12177   ac_header_preproc=no
12178 fi
12179 rm -f conftest.err conftest.$ac_ext
12180 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12181 echo "${ECHO_T}$ac_header_preproc" >&6
12182
12183 # So?  What about this header?
12184 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12185   yes:no: )
12186     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12187 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12188     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12189 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12190     ac_header_preproc=yes
12191     ;;
12192   no:yes:* )
12193     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12194 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12195     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12196 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12197     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12198 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12199     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12200 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12201     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12202 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12203     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12204 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12205     (
12206       cat <<\_ASBOX
12207 ## ------------------------------------------ ##
12208 ## Report this to the AC_PACKAGE_NAME lists.  ##
12209 ## ------------------------------------------ ##
12210 _ASBOX
12211     ) |
12212       sed "s/^/$as_me: WARNING:     /" >&2
12213     ;;
12214 esac
12215 echo "$as_me:$LINENO: checking for $ac_header" >&5
12216 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12217 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12218   echo $ECHO_N "(cached) $ECHO_C" >&6
12219 else
12220   eval "$as_ac_Header=\$ac_header_preproc"
12221 fi
12222 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12223 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12224
12225 fi
12226 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12227   cat >>confdefs.h <<_ACEOF
12228 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12229 _ACEOF
12230
12231 fi
12232
12233 done
12234
12235
12236 for ac_func in getpagesize
12237 do
12238 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12239 echo "$as_me:$LINENO: checking for $ac_func" >&5
12240 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12241 if eval "test \"\${$as_ac_var+set}\" = set"; then
12242   echo $ECHO_N "(cached) $ECHO_C" >&6
12243 else
12244   cat >conftest.$ac_ext <<_ACEOF
12245 /* confdefs.h.  */
12246 _ACEOF
12247 cat confdefs.h >>conftest.$ac_ext
12248 cat >>conftest.$ac_ext <<_ACEOF
12249 /* end confdefs.h.  */
12250 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12251    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12252 #define $ac_func innocuous_$ac_func
12253
12254 /* System header to define __stub macros and hopefully few prototypes,
12255     which can conflict with char $ac_func (); below.
12256     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12257     <limits.h> exists even on freestanding compilers.  */
12258
12259 #ifdef __STDC__
12260 # include <limits.h>
12261 #else
12262 # include <assert.h>
12263 #endif
12264
12265 #undef $ac_func
12266
12267 /* Override any gcc2 internal prototype to avoid an error.  */
12268 #ifdef __cplusplus
12269 extern "C"
12270 {
12271 #endif
12272 /* We use char because int might match the return type of a gcc2
12273    builtin and then its argument prototype would still apply.  */
12274 char $ac_func ();
12275 /* The GNU C library defines this for functions which it implements
12276     to always fail with ENOSYS.  Some functions are actually named
12277     something starting with __ and the normal name is an alias.  */
12278 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12279 choke me
12280 #else
12281 char (*f) () = $ac_func;
12282 #endif
12283 #ifdef __cplusplus
12284 }
12285 #endif
12286
12287 int
12288 main ()
12289 {
12290 return f != $ac_func;
12291   ;
12292   return 0;
12293 }
12294 _ACEOF
12295 rm -f conftest.$ac_objext conftest$ac_exeext
12296 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12297   (eval $ac_link) 2>conftest.er1
12298   ac_status=$?
12299   grep -v '^ *+' conftest.er1 >conftest.err
12300   rm -f conftest.er1
12301   cat conftest.err >&5
12302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12303   (exit $ac_status); } &&
12304          { ac_try='test -z "$ac_c_werror_flag"
12305                          || test ! -s conftest.err'
12306   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12307   (eval $ac_try) 2>&5
12308   ac_status=$?
12309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12310   (exit $ac_status); }; } &&
12311          { ac_try='test -s conftest$ac_exeext'
12312   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12313   (eval $ac_try) 2>&5
12314   ac_status=$?
12315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12316   (exit $ac_status); }; }; then
12317   eval "$as_ac_var=yes"
12318 else
12319   echo "$as_me: failed program was:" >&5
12320 sed 's/^/| /' conftest.$ac_ext >&5
12321
12322 eval "$as_ac_var=no"
12323 fi
12324 rm -f conftest.err conftest.$ac_objext \
12325       conftest$ac_exeext conftest.$ac_ext
12326 fi
12327 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12328 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12329 if test `eval echo '${'$as_ac_var'}'` = yes; then
12330   cat >>confdefs.h <<_ACEOF
12331 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12332 _ACEOF
12333
12334 fi
12335 done
12336
12337 echo "$as_me:$LINENO: checking for working mmap" >&5
12338 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
12339 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
12340   echo $ECHO_N "(cached) $ECHO_C" >&6
12341 else
12342   if test "$cross_compiling" = yes; then
12343   ac_cv_func_mmap_fixed_mapped=no
12344 else
12345   cat >conftest.$ac_ext <<_ACEOF
12346 /* confdefs.h.  */
12347 _ACEOF
12348 cat confdefs.h >>conftest.$ac_ext
12349 cat >>conftest.$ac_ext <<_ACEOF
12350 /* end confdefs.h.  */
12351 $ac_includes_default
12352 /* malloc might have been renamed as rpl_malloc. */
12353 #undef malloc
12354
12355 /* Thanks to Mike Haertel and Jim Avera for this test.
12356    Here is a matrix of mmap possibilities:
12357         mmap private not fixed
12358         mmap private fixed at somewhere currently unmapped
12359         mmap private fixed at somewhere already mapped
12360         mmap shared not fixed
12361         mmap shared fixed at somewhere currently unmapped
12362         mmap shared fixed at somewhere already mapped
12363    For private mappings, we should verify that changes cannot be read()
12364    back from the file, nor mmap's back from the file at a different
12365    address.  (There have been systems where private was not correctly
12366    implemented like the infamous i386 svr4.0, and systems where the
12367    VM page cache was not coherent with the file system buffer cache
12368    like early versions of FreeBSD and possibly contemporary NetBSD.)
12369    For shared mappings, we should conversely verify that changes get
12370    propagated back to all the places they're supposed to be.
12371
12372    Grep wants private fixed already mapped.
12373    The main things grep needs to know about mmap are:
12374    * does it exist and is it safe to write into the mmap'd area
12375    * how to use it (BSD variants)  */
12376
12377 #include <fcntl.h>
12378 #include <sys/mman.h>
12379
12380 #if !STDC_HEADERS && !HAVE_STDLIB_H
12381 char *malloc ();
12382 #endif
12383
12384 /* This mess was copied from the GNU getpagesize.h.  */
12385 #if !HAVE_GETPAGESIZE
12386 /* Assume that all systems that can run configure have sys/param.h.  */
12387 # if !HAVE_SYS_PARAM_H
12388 #  define HAVE_SYS_PARAM_H 1
12389 # endif
12390
12391 # ifdef _SC_PAGESIZE
12392 #  define getpagesize() sysconf(_SC_PAGESIZE)
12393 # else /* no _SC_PAGESIZE */
12394 #  if HAVE_SYS_PARAM_H
12395 #   include <sys/param.h>
12396 #   ifdef EXEC_PAGESIZE
12397 #    define getpagesize() EXEC_PAGESIZE
12398 #   else /* no EXEC_PAGESIZE */
12399 #    ifdef NBPG
12400 #     define getpagesize() NBPG * CLSIZE
12401 #     ifndef CLSIZE
12402 #      define CLSIZE 1
12403 #     endif /* no CLSIZE */
12404 #    else /* no NBPG */
12405 #     ifdef NBPC
12406 #      define getpagesize() NBPC
12407 #     else /* no NBPC */
12408 #      ifdef PAGESIZE
12409 #       define getpagesize() PAGESIZE
12410 #      endif /* PAGESIZE */
12411 #     endif /* no NBPC */
12412 #    endif /* no NBPG */
12413 #   endif /* no EXEC_PAGESIZE */
12414 #  else /* no HAVE_SYS_PARAM_H */
12415 #   define getpagesize() 8192   /* punt totally */
12416 #  endif /* no HAVE_SYS_PARAM_H */
12417 # endif /* no _SC_PAGESIZE */
12418
12419 #endif /* no HAVE_GETPAGESIZE */
12420
12421 int
12422 main ()
12423 {
12424   char *data, *data2, *data3;
12425   int i, pagesize;
12426   int fd;
12427
12428   pagesize = getpagesize ();
12429
12430   /* First, make a file with some known garbage in it. */
12431   data = (char *) malloc (pagesize);
12432   if (!data)
12433     exit (1);
12434   for (i = 0; i < pagesize; ++i)
12435     *(data + i) = rand ();
12436   umask (0);
12437   fd = creat ("conftest.mmap", 0600);
12438   if (fd < 0)
12439     exit (1);
12440   if (write (fd, data, pagesize) != pagesize)
12441     exit (1);
12442   close (fd);
12443
12444   /* Next, try to mmap the file at a fixed address which already has
12445      something else allocated at it.  If we can, also make sure that
12446      we see the same garbage.  */
12447   fd = open ("conftest.mmap", O_RDWR);
12448   if (fd < 0)
12449     exit (1);
12450   data2 = (char *) malloc (2 * pagesize);
12451   if (!data2)
12452     exit (1);
12453   data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
12454   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
12455                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
12456     exit (1);
12457   for (i = 0; i < pagesize; ++i)
12458     if (*(data + i) != *(data2 + i))
12459       exit (1);
12460
12461   /* Finally, make sure that changes to the mapped area do not
12462      percolate back to the file as seen by read().  (This is a bug on
12463      some variants of i386 svr4.0.)  */
12464   for (i = 0; i < pagesize; ++i)
12465     *(data2 + i) = *(data2 + i) + 1;
12466   data3 = (char *) malloc (pagesize);
12467   if (!data3)
12468     exit (1);
12469   if (read (fd, data3, pagesize) != pagesize)
12470     exit (1);
12471   for (i = 0; i < pagesize; ++i)
12472     if (*(data + i) != *(data3 + i))
12473       exit (1);
12474   close (fd);
12475   exit (0);
12476 }
12477 _ACEOF
12478 rm -f conftest$ac_exeext
12479 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12480   (eval $ac_link) 2>&5
12481   ac_status=$?
12482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12483   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12484   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12485   (eval $ac_try) 2>&5
12486   ac_status=$?
12487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12488   (exit $ac_status); }; }; then
12489   ac_cv_func_mmap_fixed_mapped=yes
12490 else
12491   echo "$as_me: program exited with status $ac_status" >&5
12492 echo "$as_me: failed program was:" >&5
12493 sed 's/^/| /' conftest.$ac_ext >&5
12494
12495 ( exit $ac_status )
12496 ac_cv_func_mmap_fixed_mapped=no
12497 fi
12498 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12499 fi
12500 fi
12501 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
12502 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
12503 if test $ac_cv_func_mmap_fixed_mapped = yes; then
12504
12505 cat >>confdefs.h <<\_ACEOF
12506 #define HAVE_MMAP 1
12507 _ACEOF
12508
12509 fi
12510 rm -f conftest.mmap
12511
12512
12513
12514 for ac_func in madvise mprotect
12515 do
12516 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12517 echo "$as_me:$LINENO: checking for $ac_func" >&5
12518 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12519 if eval "test \"\${$as_ac_var+set}\" = set"; then
12520   echo $ECHO_N "(cached) $ECHO_C" >&6
12521 else
12522   cat >conftest.$ac_ext <<_ACEOF
12523 /* confdefs.h.  */
12524 _ACEOF
12525 cat confdefs.h >>conftest.$ac_ext
12526 cat >>conftest.$ac_ext <<_ACEOF
12527 /* end confdefs.h.  */
12528 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12529    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12530 #define $ac_func innocuous_$ac_func
12531
12532 /* System header to define __stub macros and hopefully few prototypes,
12533     which can conflict with char $ac_func (); below.
12534     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12535     <limits.h> exists even on freestanding compilers.  */
12536
12537 #ifdef __STDC__
12538 # include <limits.h>
12539 #else
12540 # include <assert.h>
12541 #endif
12542
12543 #undef $ac_func
12544
12545 /* Override any gcc2 internal prototype to avoid an error.  */
12546 #ifdef __cplusplus
12547 extern "C"
12548 {
12549 #endif
12550 /* We use char because int might match the return type of a gcc2
12551    builtin and then its argument prototype would still apply.  */
12552 char $ac_func ();
12553 /* The GNU C library defines this for functions which it implements
12554     to always fail with ENOSYS.  Some functions are actually named
12555     something starting with __ and the normal name is an alias.  */
12556 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12557 choke me
12558 #else
12559 char (*f) () = $ac_func;
12560 #endif
12561 #ifdef __cplusplus
12562 }
12563 #endif
12564
12565 int
12566 main ()
12567 {
12568 return f != $ac_func;
12569   ;
12570   return 0;
12571 }
12572 _ACEOF
12573 rm -f conftest.$ac_objext conftest$ac_exeext
12574 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12575   (eval $ac_link) 2>conftest.er1
12576   ac_status=$?
12577   grep -v '^ *+' conftest.er1 >conftest.err
12578   rm -f conftest.er1
12579   cat conftest.err >&5
12580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12581   (exit $ac_status); } &&
12582          { ac_try='test -z "$ac_c_werror_flag"
12583                          || test ! -s conftest.err'
12584   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12585   (eval $ac_try) 2>&5
12586   ac_status=$?
12587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12588   (exit $ac_status); }; } &&
12589          { ac_try='test -s conftest$ac_exeext'
12590   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12591   (eval $ac_try) 2>&5
12592   ac_status=$?
12593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12594   (exit $ac_status); }; }; then
12595   eval "$as_ac_var=yes"
12596 else
12597   echo "$as_me: failed program was:" >&5
12598 sed 's/^/| /' conftest.$ac_ext >&5
12599
12600 eval "$as_ac_var=no"
12601 fi
12602 rm -f conftest.err conftest.$ac_objext \
12603       conftest$ac_exeext conftest.$ac_ext
12604 fi
12605 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12606 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12607 if test `eval echo '${'$as_ac_var'}'` = yes; then
12608   cat >>confdefs.h <<_ACEOF
12609 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12610 _ACEOF
12611
12612 fi
12613 done
12614
12615 case ${want_mmap}+${ac_cv_func_mmap_fixed_mapped} in
12616   true+yes )
12617 cat >>confdefs.h <<\_ACEOF
12618 #define USE_MMAP 1
12619 _ACEOF
12620  ;;
12621 esac
12622
12623 rm -f doc/config.status
12624                                         ac_config_files="$ac_config_files Makefile doc/Makefile bfd-in3.h:bfd-in2.h po/Makefile.in:po/Make-in"
12625
12626           ac_config_commands="$ac_config_commands default"
12627
12628 cat >confcache <<\_ACEOF
12629 # This file is a shell script that caches the results of configure
12630 # tests run on this system so they can be shared between configure
12631 # scripts and configure runs, see configure's option --config-cache.
12632 # It is not useful on other systems.  If it contains results you don't
12633 # want to keep, you may remove or edit it.
12634 #
12635 # config.status only pays attention to the cache file if you give it
12636 # the --recheck option to rerun configure.
12637 #
12638 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12639 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12640 # following values.
12641
12642 _ACEOF
12643
12644 # The following way of writing the cache mishandles newlines in values,
12645 # but we know of no workaround that is simple, portable, and efficient.
12646 # So, don't put newlines in cache variables' values.
12647 # Ultrix sh set writes to stderr and can't be redirected directly,
12648 # and sets the high bit in the cache file unless we assign to the vars.
12649 {
12650   (set) 2>&1 |
12651     case `(ac_space=' '; set | grep ac_space) 2>&1` in
12652     *ac_space=\ *)
12653       # `set' does not quote correctly, so add quotes (double-quote
12654       # substitution turns \\\\ into \\, and sed turns \\ into \).
12655       sed -n \
12656         "s/'/'\\\\''/g;
12657           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12658       ;;
12659     *)
12660       # `set' quotes correctly as required by POSIX, so do not add quotes.
12661       sed -n \
12662         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
12663       ;;
12664     esac;
12665 } |
12666   sed '
12667      t clear
12668      : clear
12669      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12670      t end
12671      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12672      : end' >>confcache
12673 if diff $cache_file confcache >/dev/null 2>&1; then :; else
12674   if test -w $cache_file; then
12675     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
12676     cat confcache >$cache_file
12677   else
12678     echo "not updating unwritable cache $cache_file"
12679   fi
12680 fi
12681 rm -f confcache
12682
12683 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12684 # Let make expand exec_prefix.
12685 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12686
12687 # VPATH may cause trouble with some makes, so we remove $(srcdir),
12688 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12689 # trailing colons and then remove the whole line if VPATH becomes empty
12690 # (actually we leave an empty line to preserve line numbers).
12691 if test "x$srcdir" = x.; then
12692   ac_vpsub='/^[  ]*VPATH[        ]*=/{
12693 s/:*\$(srcdir):*/:/;
12694 s/:*\${srcdir}:*/:/;
12695 s/:*@srcdir@:*/:/;
12696 s/^\([^=]*=[     ]*\):*/\1/;
12697 s/:*$//;
12698 s/^[^=]*=[       ]*$//;
12699 }'
12700 fi
12701
12702 DEFS=-DHAVE_CONFIG_H
12703
12704 ac_libobjs=
12705 ac_ltlibobjs=
12706 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12707   # 1. Remove the extension, and $U if already installed.
12708   ac_i=`echo "$ac_i" |
12709          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
12710   # 2. Add them.
12711   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
12712   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
12713 done
12714 LIBOBJS=$ac_libobjs
12715
12716 LTLIBOBJS=$ac_ltlibobjs
12717
12718
12719 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12720   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
12721 Usually this means the macro was only invoked conditionally." >&5
12722 echo "$as_me: error: conditional \"AMDEP\" was never defined.
12723 Usually this means the macro was only invoked conditionally." >&2;}
12724    { (exit 1); exit 1; }; }
12725 fi
12726 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12727   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
12728 Usually this means the macro was only invoked conditionally." >&5
12729 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
12730 Usually this means the macro was only invoked conditionally." >&2;}
12731    { (exit 1); exit 1; }; }
12732 fi
12733 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
12734   { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
12735 Usually this means the macro was only invoked conditionally." >&5
12736 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
12737 Usually this means the macro was only invoked conditionally." >&2;}
12738    { (exit 1); exit 1; }; }
12739 fi
12740 if test -z "${INSTALL_LIBBFD_TRUE}" && test -z "${INSTALL_LIBBFD_FALSE}"; then
12741   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LIBBFD\" was never defined.
12742 Usually this means the macro was only invoked conditionally." >&5
12743 echo "$as_me: error: conditional \"INSTALL_LIBBFD\" was never defined.
12744 Usually this means the macro was only invoked conditionally." >&2;}
12745    { (exit 1); exit 1; }; }
12746 fi
12747
12748 : ${CONFIG_STATUS=./config.status}
12749 ac_clean_files_save=$ac_clean_files
12750 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12751 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12752 echo "$as_me: creating $CONFIG_STATUS" >&6;}
12753 cat >$CONFIG_STATUS <<_ACEOF
12754 #! $SHELL
12755 # Generated by $as_me.
12756 # Run this file to recreate the current configuration.
12757 # Compiler output produced by configure, useful for debugging
12758 # configure, is in config.log if it exists.
12759
12760 debug=false
12761 ac_cs_recheck=false
12762 ac_cs_silent=false
12763 SHELL=\${CONFIG_SHELL-$SHELL}
12764 _ACEOF
12765
12766 cat >>$CONFIG_STATUS <<\_ACEOF
12767 ## --------------------- ##
12768 ## M4sh Initialization.  ##
12769 ## --------------------- ##
12770
12771 # Be Bourne compatible
12772 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12773   emulate sh
12774   NULLCMD=:
12775   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
12776   # is contrary to our usage.  Disable this feature.
12777   alias -g '${1+"$@"}'='"$@"'
12778 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
12779   set -o posix
12780 fi
12781 DUALCASE=1; export DUALCASE # for MKS sh
12782
12783 # Support unset when possible.
12784 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12785   as_unset=unset
12786 else
12787   as_unset=false
12788 fi
12789
12790
12791 # Work around bugs in pre-3.0 UWIN ksh.
12792 $as_unset ENV MAIL MAILPATH
12793 PS1='$ '
12794 PS2='> '
12795 PS4='+ '
12796
12797 # NLS nuisances.
12798 for as_var in \
12799   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
12800   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
12801   LC_TELEPHONE LC_TIME
12802 do
12803   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
12804     eval $as_var=C; export $as_var
12805   else
12806     $as_unset $as_var
12807   fi
12808 done
12809
12810 # Required to use basename.
12811 if expr a : '\(a\)' >/dev/null 2>&1; then
12812   as_expr=expr
12813 else
12814   as_expr=false
12815 fi
12816
12817 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
12818   as_basename=basename
12819 else
12820   as_basename=false
12821 fi
12822
12823
12824 # Name of the executable.
12825 as_me=`$as_basename "$0" ||
12826 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12827          X"$0" : 'X\(//\)$' \| \
12828          X"$0" : 'X\(/\)$' \| \
12829          .     : '\(.\)' 2>/dev/null ||
12830 echo X/"$0" |
12831     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
12832           /^X\/\(\/\/\)$/{ s//\1/; q; }
12833           /^X\/\(\/\).*/{ s//\1/; q; }
12834           s/.*/./; q'`
12835
12836
12837 # PATH needs CR, and LINENO needs CR and PATH.
12838 # Avoid depending upon Character Ranges.
12839 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12840 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12841 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12842 as_cr_digits='0123456789'
12843 as_cr_alnum=$as_cr_Letters$as_cr_digits
12844
12845 # The user is always right.
12846 if test "${PATH_SEPARATOR+set}" != set; then
12847   echo "#! /bin/sh" >conf$$.sh
12848   echo  "exit 0"   >>conf$$.sh
12849   chmod +x conf$$.sh
12850   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12851     PATH_SEPARATOR=';'
12852   else
12853     PATH_SEPARATOR=:
12854   fi
12855   rm -f conf$$.sh
12856 fi
12857
12858
12859   as_lineno_1=$LINENO
12860   as_lineno_2=$LINENO
12861   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12862   test "x$as_lineno_1" != "x$as_lineno_2" &&
12863   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
12864   # Find who we are.  Look in the path if we contain no path at all
12865   # relative or not.
12866   case $0 in
12867     *[\\/]* ) as_myself=$0 ;;
12868     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12869 for as_dir in $PATH
12870 do
12871   IFS=$as_save_IFS
12872   test -z "$as_dir" && as_dir=.
12873   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12874 done
12875
12876        ;;
12877   esac
12878   # We did not find ourselves, most probably we were run as `sh COMMAND'
12879   # in which case we are not to be found in the path.
12880   if test "x$as_myself" = x; then
12881     as_myself=$0
12882   fi
12883   if test ! -f "$as_myself"; then
12884     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
12885 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
12886    { (exit 1); exit 1; }; }
12887   fi
12888   case $CONFIG_SHELL in
12889   '')
12890     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12891 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
12892 do
12893   IFS=$as_save_IFS
12894   test -z "$as_dir" && as_dir=.
12895   for as_base in sh bash ksh sh5; do
12896          case $as_dir in
12897          /*)
12898            if ("$as_dir/$as_base" -c '
12899   as_lineno_1=$LINENO
12900   as_lineno_2=$LINENO
12901   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12902   test "x$as_lineno_1" != "x$as_lineno_2" &&
12903   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
12904              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
12905              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
12906              CONFIG_SHELL=$as_dir/$as_base
12907              export CONFIG_SHELL
12908              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
12909            fi;;
12910          esac
12911        done
12912 done
12913 ;;
12914   esac
12915
12916   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12917   # uniformly replaced by the line number.  The first 'sed' inserts a
12918   # line-number line before each line; the second 'sed' does the real
12919   # work.  The second script uses 'N' to pair each line-number line
12920   # with the numbered line, and appends trailing '-' during
12921   # substitution so that $LINENO is not a special case at line end.
12922   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
12923   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
12924   sed '=' <$as_myself |
12925     sed '
12926       N
12927       s,$,-,
12928       : loop
12929       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
12930       t loop
12931       s,-$,,
12932       s,^['$as_cr_digits']*\n,,
12933     ' >$as_me.lineno &&
12934   chmod +x $as_me.lineno ||
12935     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
12936 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
12937    { (exit 1); exit 1; }; }
12938
12939   # Don't try to exec as it changes $[0], causing all sort of problems
12940   # (the dirname of $[0] is not the place where we might find the
12941   # original and so on.  Autoconf is especially sensible to this).
12942   . ./$as_me.lineno
12943   # Exit status is that of the last command.
12944   exit
12945 }
12946
12947
12948 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
12949   *c*,-n*) ECHO_N= ECHO_C='
12950 ' ECHO_T='      ' ;;
12951   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
12952   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
12953 esac
12954
12955 if expr a : '\(a\)' >/dev/null 2>&1; then
12956   as_expr=expr
12957 else
12958   as_expr=false
12959 fi
12960
12961 rm -f conf$$ conf$$.exe conf$$.file
12962 echo >conf$$.file
12963 if ln -s conf$$.file conf$$ 2>/dev/null; then
12964   # We could just check for DJGPP; but this test a) works b) is more generic
12965   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
12966   if test -f conf$$.exe; then
12967     # Don't use ln at all; we don't have any links
12968     as_ln_s='cp -p'
12969   else
12970     as_ln_s='ln -s'
12971   fi
12972 elif ln conf$$.file conf$$ 2>/dev/null; then
12973   as_ln_s=ln
12974 else
12975   as_ln_s='cp -p'
12976 fi
12977 rm -f conf$$ conf$$.exe conf$$.file
12978
12979 if mkdir -p . 2>/dev/null; then
12980   as_mkdir_p=:
12981 else
12982   test -d ./-p && rmdir ./-p
12983   as_mkdir_p=false
12984 fi
12985
12986 as_executable_p="test -f"
12987
12988 # Sed expression to map a string onto a valid CPP name.
12989 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12990
12991 # Sed expression to map a string onto a valid variable name.
12992 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12993
12994
12995 # IFS
12996 # We need space, tab and new line, in precisely that order.
12997 as_nl='
12998 '
12999 IFS="   $as_nl"
13000
13001 # CDPATH.
13002 $as_unset CDPATH
13003
13004 exec 6>&1
13005
13006 # Open the log real soon, to keep \$[0] and so on meaningful, and to
13007 # report actual input values of CONFIG_FILES etc. instead of their
13008 # values after options handling.  Logging --version etc. is OK.
13009 exec 5>>config.log
13010 {
13011   echo
13012   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13013 ## Running $as_me. ##
13014 _ASBOX
13015 } >&5
13016 cat >&5 <<_CSEOF
13017
13018 This file was extended by $as_me, which was
13019 generated by GNU Autoconf 2.59.  Invocation command line was
13020
13021   CONFIG_FILES    = $CONFIG_FILES
13022   CONFIG_HEADERS  = $CONFIG_HEADERS
13023   CONFIG_LINKS    = $CONFIG_LINKS
13024   CONFIG_COMMANDS = $CONFIG_COMMANDS
13025   $ $0 $@
13026
13027 _CSEOF
13028 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
13029 echo >&5
13030 _ACEOF
13031
13032 # Files that config.status was made for.
13033 if test -n "$ac_config_files"; then
13034   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
13035 fi
13036
13037 if test -n "$ac_config_headers"; then
13038   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
13039 fi
13040
13041 if test -n "$ac_config_links"; then
13042   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
13043 fi
13044
13045 if test -n "$ac_config_commands"; then
13046   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
13047 fi
13048
13049 cat >>$CONFIG_STATUS <<\_ACEOF
13050
13051 ac_cs_usage="\
13052 \`$as_me' instantiates files from templates according to the
13053 current configuration.
13054
13055 Usage: $0 [OPTIONS] [FILE]...
13056
13057   -h, --help       print this help, then exit
13058   -V, --version    print version number, then exit
13059   -q, --quiet      do not print progress messages
13060   -d, --debug      don't remove temporary files
13061       --recheck    update $as_me by reconfiguring in the same conditions
13062   --file=FILE[:TEMPLATE]
13063                    instantiate the configuration file FILE
13064   --header=FILE[:TEMPLATE]
13065                    instantiate the configuration header FILE
13066
13067 Configuration files:
13068 $config_files
13069
13070 Configuration headers:
13071 $config_headers
13072
13073 Configuration commands:
13074 $config_commands
13075
13076 Report bugs to <bug-autoconf@gnu.org>."
13077 _ACEOF
13078
13079 cat >>$CONFIG_STATUS <<_ACEOF
13080 ac_cs_version="\\
13081 config.status
13082 configured by $0, generated by GNU Autoconf 2.59,
13083   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
13084
13085 Copyright (C) 2003 Free Software Foundation, Inc.
13086 This config.status script is free software; the Free Software Foundation
13087 gives unlimited permission to copy, distribute and modify it."
13088 srcdir=$srcdir
13089 INSTALL="$INSTALL"
13090 _ACEOF
13091
13092 cat >>$CONFIG_STATUS <<\_ACEOF
13093 # If no file are specified by the user, then we need to provide default
13094 # value.  By we need to know if files were specified by the user.
13095 ac_need_defaults=:
13096 while test $# != 0
13097 do
13098   case $1 in
13099   --*=*)
13100     ac_option=`expr "x$1" : 'x\([^=]*\)='`
13101     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
13102     ac_shift=:
13103     ;;
13104   -*)
13105     ac_option=$1
13106     ac_optarg=$2
13107     ac_shift=shift
13108     ;;
13109   *) # This is not an option, so the user has probably given explicit
13110      # arguments.
13111      ac_option=$1
13112      ac_need_defaults=false;;
13113   esac
13114
13115   case $ac_option in
13116   # Handling of the options.
13117 _ACEOF
13118 cat >>$CONFIG_STATUS <<\_ACEOF
13119   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13120     ac_cs_recheck=: ;;
13121   --version | --vers* | -V )
13122     echo "$ac_cs_version"; exit 0 ;;
13123   --he | --h)
13124     # Conflict between --help and --header
13125     { { echo "$as_me:$LINENO: error: ambiguous option: $1
13126 Try \`$0 --help' for more information." >&5
13127 echo "$as_me: error: ambiguous option: $1
13128 Try \`$0 --help' for more information." >&2;}
13129    { (exit 1); exit 1; }; };;
13130   --help | --hel | -h )
13131     echo "$ac_cs_usage"; exit 0 ;;
13132   --debug | --d* | -d )
13133     debug=: ;;
13134   --file | --fil | --fi | --f )
13135     $ac_shift
13136     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
13137     ac_need_defaults=false;;
13138   --header | --heade | --head | --hea )
13139     $ac_shift
13140     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
13141     ac_need_defaults=false;;
13142   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13143   | -silent | --silent | --silen | --sile | --sil | --si | --s)
13144     ac_cs_silent=: ;;
13145
13146   # This is an error.
13147   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
13148 Try \`$0 --help' for more information." >&5
13149 echo "$as_me: error: unrecognized option: $1
13150 Try \`$0 --help' for more information." >&2;}
13151    { (exit 1); exit 1; }; } ;;
13152
13153   *) ac_config_targets="$ac_config_targets $1" ;;
13154
13155   esac
13156   shift
13157 done
13158
13159 ac_configure_extra_args=
13160
13161 if $ac_cs_silent; then
13162   exec 6>/dev/null
13163   ac_configure_extra_args="$ac_configure_extra_args --silent"
13164 fi
13165
13166 _ACEOF
13167 cat >>$CONFIG_STATUS <<_ACEOF
13168 if \$ac_cs_recheck; then
13169   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
13170   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13171 fi
13172
13173 _ACEOF
13174
13175 cat >>$CONFIG_STATUS <<_ACEOF
13176 #
13177 # INIT-COMMANDS section.
13178 #
13179
13180 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13181
13182
13183 _ACEOF
13184
13185
13186
13187 cat >>$CONFIG_STATUS <<\_ACEOF
13188 for ac_config_target in $ac_config_targets
13189 do
13190   case "$ac_config_target" in
13191   # Handling of arguments.
13192   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13193   "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
13194   "bfd-in3.h" ) CONFIG_FILES="$CONFIG_FILES bfd-in3.h:bfd-in2.h" ;;
13195   "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
13196   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13197   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
13198   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
13199   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
13200 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
13201    { (exit 1); exit 1; }; };;
13202   esac
13203 done
13204
13205 # If the user did not use the arguments to specify the items to instantiate,
13206 # then the envvar interface is used.  Set only those that are not.
13207 # We use the long form for the default assignment because of an extremely
13208 # bizarre bug on SunOS 4.1.3.
13209 if $ac_need_defaults; then
13210   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13211   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13212   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13213 fi
13214
13215 # Have a temporary directory for convenience.  Make it in the build tree
13216 # simply because there is no reason to put it here, and in addition,
13217 # creating and moving files from /tmp can sometimes cause problems.
13218 # Create a temporary directory, and hook for its removal unless debugging.
13219 $debug ||
13220 {
13221   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
13222   trap '{ (exit 1); exit 1; }' 1 2 13 15
13223 }
13224
13225 # Create a (secure) tmp directory for tmp files.
13226
13227 {
13228   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
13229   test -n "$tmp" && test -d "$tmp"
13230 }  ||
13231 {
13232   tmp=./confstat$$-$RANDOM
13233   (umask 077 && mkdir $tmp)
13234 } ||
13235 {
13236    echo "$me: cannot create a temporary directory in ." >&2
13237    { (exit 1); exit 1; }
13238 }
13239
13240 _ACEOF
13241
13242 cat >>$CONFIG_STATUS <<_ACEOF
13243
13244 #
13245 # CONFIG_FILES section.
13246 #
13247
13248 # No need to generate the scripts if there are no CONFIG_FILES.
13249 # This happens for instance when ./config.status config.h
13250 if test -n "\$CONFIG_FILES"; then
13251   # Protect against being on the right side of a sed subst in config.status.
13252   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
13253    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
13254 s,@SHELL@,$SHELL,;t t
13255 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
13256 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
13257 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
13258 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
13259 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
13260 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
13261 s,@exec_prefix@,$exec_prefix,;t t
13262 s,@prefix@,$prefix,;t t
13263 s,@program_transform_name@,$program_transform_name,;t t
13264 s,@bindir@,$bindir,;t t
13265 s,@sbindir@,$sbindir,;t t
13266 s,@libexecdir@,$libexecdir,;t t
13267 s,@datadir@,$datadir,;t t
13268 s,@sysconfdir@,$sysconfdir,;t t
13269 s,@sharedstatedir@,$sharedstatedir,;t t
13270 s,@localstatedir@,$localstatedir,;t t
13271 s,@libdir@,$libdir,;t t
13272 s,@includedir@,$includedir,;t t
13273 s,@oldincludedir@,$oldincludedir,;t t
13274 s,@infodir@,$infodir,;t t
13275 s,@mandir@,$mandir,;t t
13276 s,@build_alias@,$build_alias,;t t
13277 s,@host_alias@,$host_alias,;t t
13278 s,@target_alias@,$target_alias,;t t
13279 s,@DEFS@,$DEFS,;t t
13280 s,@ECHO_C@,$ECHO_C,;t t
13281 s,@ECHO_N@,$ECHO_N,;t t
13282 s,@ECHO_T@,$ECHO_T,;t t
13283 s,@LIBS@,$LIBS,;t t
13284 s,@build@,$build,;t t
13285 s,@build_cpu@,$build_cpu,;t t
13286 s,@build_vendor@,$build_vendor,;t t
13287 s,@build_os@,$build_os,;t t
13288 s,@host@,$host,;t t
13289 s,@host_cpu@,$host_cpu,;t t
13290 s,@host_vendor@,$host_vendor,;t t
13291 s,@host_os@,$host_os,;t t
13292 s,@target@,$target,;t t
13293 s,@target_cpu@,$target_cpu,;t t
13294 s,@target_vendor@,$target_vendor,;t t
13295 s,@target_os@,$target_os,;t t
13296 s,@CC@,$CC,;t t
13297 s,@CFLAGS@,$CFLAGS,;t t
13298 s,@LDFLAGS@,$LDFLAGS,;t t
13299 s,@CPPFLAGS@,$CPPFLAGS,;t t
13300 s,@ac_ct_CC@,$ac_ct_CC,;t t
13301 s,@EXEEXT@,$EXEEXT,;t t
13302 s,@OBJEXT@,$OBJEXT,;t t
13303 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
13304 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
13305 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
13306 s,@CYGPATH_W@,$CYGPATH_W,;t t
13307 s,@PACKAGE@,$PACKAGE,;t t
13308 s,@VERSION@,$VERSION,;t t
13309 s,@ACLOCAL@,$ACLOCAL,;t t
13310 s,@AUTOCONF@,$AUTOCONF,;t t
13311 s,@AUTOMAKE@,$AUTOMAKE,;t t
13312 s,@AUTOHEADER@,$AUTOHEADER,;t t
13313 s,@MAKEINFO@,$MAKEINFO,;t t
13314 s,@install_sh@,$install_sh,;t t
13315 s,@STRIP@,$STRIP,;t t
13316 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
13317 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
13318 s,@mkdir_p@,$mkdir_p,;t t
13319 s,@AWK@,$AWK,;t t
13320 s,@SET_MAKE@,$SET_MAKE,;t t
13321 s,@am__leading_dot@,$am__leading_dot,;t t
13322 s,@AMTAR@,$AMTAR,;t t
13323 s,@am__tar@,$am__tar,;t t
13324 s,@am__untar@,$am__untar,;t t
13325 s,@DEPDIR@,$DEPDIR,;t t
13326 s,@am__include@,$am__include,;t t
13327 s,@am__quote@,$am__quote,;t t
13328 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
13329 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
13330 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
13331 s,@CCDEPMODE@,$CCDEPMODE,;t t
13332 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
13333 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
13334 s,@AR@,$AR,;t t
13335 s,@ac_ct_AR@,$ac_ct_AR,;t t
13336 s,@RANLIB@,$RANLIB,;t t
13337 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
13338 s,@LN_S@,$LN_S,;t t
13339 s,@LIBTOOL@,$LIBTOOL,;t t
13340 s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
13341 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
13342 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
13343 s,@MAINT@,$MAINT,;t t
13344 s,@INSTALL_LIBBFD_TRUE@,$INSTALL_LIBBFD_TRUE,;t t
13345 s,@INSTALL_LIBBFD_FALSE@,$INSTALL_LIBBFD_FALSE,;t t
13346 s,@host_noncanonical@,$host_noncanonical,;t t
13347 s,@target_noncanonical@,$target_noncanonical,;t t
13348 s,@bfdlibdir@,$bfdlibdir,;t t
13349 s,@bfdincludedir@,$bfdincludedir,;t t
13350 s,@CPP@,$CPP,;t t
13351 s,@EGREP@,$EGREP,;t t
13352 s,@ALLOCA@,$ALLOCA,;t t
13353 s,@USE_NLS@,$USE_NLS,;t t
13354 s,@MSGFMT@,$MSGFMT,;t t
13355 s,@GMSGFMT@,$GMSGFMT,;t t
13356 s,@XGETTEXT@,$XGETTEXT,;t t
13357 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
13358 s,@CATALOGS@,$CATALOGS,;t t
13359 s,@CATOBJEXT@,$CATOBJEXT,;t t
13360 s,@DATADIRNAME@,$DATADIRNAME,;t t
13361 s,@GMOFILES@,$GMOFILES,;t t
13362 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
13363 s,@INTLDEPS@,$INTLDEPS,;t t
13364 s,@INTLLIBS@,$INTLLIBS,;t t
13365 s,@INTLOBJS@,$INTLOBJS,;t t
13366 s,@POFILES@,$POFILES,;t t
13367 s,@POSUB@,$POSUB,;t t
13368 s,@INCLUDE_LOCALE_H@,$INCLUDE_LOCALE_H,;t t
13369 s,@GT_NO@,$GT_NO,;t t
13370 s,@GT_YES@,$GT_YES,;t t
13371 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
13372 s,@l@,$l,;t t
13373 s,@HDEFINES@,$HDEFINES,;t t
13374 s,@BFD_HOST_64BIT_LONG@,$BFD_HOST_64BIT_LONG,;t t
13375 s,@BFD_HOST_LONG_LONG@,$BFD_HOST_LONG_LONG,;t t
13376 s,@BFD_HOST_64_BIT_DEFINED@,$BFD_HOST_64_BIT_DEFINED,;t t
13377 s,@BFD_HOST_64_BIT@,$BFD_HOST_64_BIT,;t t
13378 s,@BFD_HOST_U_64_BIT@,$BFD_HOST_U_64_BIT,;t t
13379 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
13380 s,@EXEEXT_FOR_BUILD@,$EXEEXT_FOR_BUILD,;t t
13381 s,@COREFILE@,$COREFILE,;t t
13382 s,@COREFLAG@,$COREFLAG,;t t
13383 s,@WIN32LDFLAGS@,$WIN32LDFLAGS,;t t
13384 s,@WIN32LIBADD@,$WIN32LIBADD,;t t
13385 s,@TDEFINES@,$TDEFINES,;t t
13386 s,@wordsize@,$wordsize,;t t
13387 s,@bfd_libs@,$bfd_libs,;t t
13388 s,@all_backends@,$all_backends,;t t
13389 s,@bfd_backends@,$bfd_backends,;t t
13390 s,@bfd_machines@,$bfd_machines,;t t
13391 s,@bfd_default_target_size@,$bfd_default_target_size,;t t
13392 s,@bfd_file_ptr@,$bfd_file_ptr,;t t
13393 s,@bfd_ufile_ptr@,$bfd_ufile_ptr,;t t
13394 s,@tdefaults@,$tdefaults,;t t
13395 s,@LIBOBJS@,$LIBOBJS,;t t
13396 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
13397 CEOF
13398
13399 _ACEOF
13400
13401   cat >>$CONFIG_STATUS <<\_ACEOF
13402   # Split the substitutions into bite-sized pieces for seds with
13403   # small command number limits, like on Digital OSF/1 and HP-UX.
13404   ac_max_sed_lines=48
13405   ac_sed_frag=1 # Number of current file.
13406   ac_beg=1 # First line for current file.
13407   ac_end=$ac_max_sed_lines # Line after last line for current file.
13408   ac_more_lines=:
13409   ac_sed_cmds=
13410   while $ac_more_lines; do
13411     if test $ac_beg -gt 1; then
13412       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13413     else
13414       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13415     fi
13416     if test ! -s $tmp/subs.frag; then
13417       ac_more_lines=false
13418     else
13419       # The purpose of the label and of the branching condition is to
13420       # speed up the sed processing (if there are no `@' at all, there
13421       # is no need to browse any of the substitutions).
13422       # These are the two extra sed commands mentioned above.
13423       (echo ':t
13424   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
13425       if test -z "$ac_sed_cmds"; then
13426         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
13427       else
13428         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
13429       fi
13430       ac_sed_frag=`expr $ac_sed_frag + 1`
13431       ac_beg=$ac_end
13432       ac_end=`expr $ac_end + $ac_max_sed_lines`
13433     fi
13434   done
13435   if test -z "$ac_sed_cmds"; then
13436     ac_sed_cmds=cat
13437   fi
13438 fi # test -n "$CONFIG_FILES"
13439
13440 _ACEOF
13441 cat >>$CONFIG_STATUS <<\_ACEOF
13442 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
13443   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13444   case $ac_file in
13445   - | *:- | *:-:* ) # input from stdin
13446         cat >$tmp/stdin
13447         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13448         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13449   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13450         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13451   * )   ac_file_in=$ac_file.in ;;
13452   esac
13453
13454   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
13455   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13456 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13457          X"$ac_file" : 'X\(//\)[^/]' \| \
13458          X"$ac_file" : 'X\(//\)$' \| \
13459          X"$ac_file" : 'X\(/\)' \| \
13460          .     : '\(.\)' 2>/dev/null ||
13461 echo X"$ac_file" |
13462     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13463           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13464           /^X\(\/\/\)$/{ s//\1/; q; }
13465           /^X\(\/\).*/{ s//\1/; q; }
13466           s/.*/./; q'`
13467   { if $as_mkdir_p; then
13468     mkdir -p "$ac_dir"
13469   else
13470     as_dir="$ac_dir"
13471     as_dirs=
13472     while test ! -d "$as_dir"; do
13473       as_dirs="$as_dir $as_dirs"
13474       as_dir=`(dirname "$as_dir") 2>/dev/null ||
13475 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13476          X"$as_dir" : 'X\(//\)[^/]' \| \
13477          X"$as_dir" : 'X\(//\)$' \| \
13478          X"$as_dir" : 'X\(/\)' \| \
13479          .     : '\(.\)' 2>/dev/null ||
13480 echo X"$as_dir" |
13481     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13482           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13483           /^X\(\/\/\)$/{ s//\1/; q; }
13484           /^X\(\/\).*/{ s//\1/; q; }
13485           s/.*/./; q'`
13486     done
13487     test ! -n "$as_dirs" || mkdir $as_dirs
13488   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13489 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13490    { (exit 1); exit 1; }; }; }
13491
13492   ac_builddir=.
13493
13494 if test "$ac_dir" != .; then
13495   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13496   # A "../" for each directory in $ac_dir_suffix.
13497   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13498 else
13499   ac_dir_suffix= ac_top_builddir=
13500 fi
13501
13502 case $srcdir in
13503   .)  # No --srcdir option.  We are building in place.
13504     ac_srcdir=.
13505     if test -z "$ac_top_builddir"; then
13506        ac_top_srcdir=.
13507     else
13508        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13509     fi ;;
13510   [\\/]* | ?:[\\/]* )  # Absolute path.
13511     ac_srcdir=$srcdir$ac_dir_suffix;
13512     ac_top_srcdir=$srcdir ;;
13513   *) # Relative path.
13514     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13515     ac_top_srcdir=$ac_top_builddir$srcdir ;;
13516 esac
13517
13518 # Do not use `cd foo && pwd` to compute absolute paths, because
13519 # the directories may not exist.
13520 case `pwd` in
13521 .) ac_abs_builddir="$ac_dir";;
13522 *)
13523   case "$ac_dir" in
13524   .) ac_abs_builddir=`pwd`;;
13525   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
13526   *) ac_abs_builddir=`pwd`/"$ac_dir";;
13527   esac;;
13528 esac
13529 case $ac_abs_builddir in
13530 .) ac_abs_top_builddir=${ac_top_builddir}.;;
13531 *)
13532   case ${ac_top_builddir}. in
13533   .) ac_abs_top_builddir=$ac_abs_builddir;;
13534   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
13535   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
13536   esac;;
13537 esac
13538 case $ac_abs_builddir in
13539 .) ac_abs_srcdir=$ac_srcdir;;
13540 *)
13541   case $ac_srcdir in
13542   .) ac_abs_srcdir=$ac_abs_builddir;;
13543   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
13544   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
13545   esac;;
13546 esac
13547 case $ac_abs_builddir in
13548 .) ac_abs_top_srcdir=$ac_top_srcdir;;
13549 *)
13550   case $ac_top_srcdir in
13551   .) ac_abs_top_srcdir=$ac_abs_builddir;;
13552   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
13553   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
13554   esac;;
13555 esac
13556
13557
13558   case $INSTALL in
13559   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13560   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
13561   esac
13562
13563   if test x"$ac_file" != x-; then
13564     { echo "$as_me:$LINENO: creating $ac_file" >&5
13565 echo "$as_me: creating $ac_file" >&6;}
13566     rm -f "$ac_file"
13567   fi
13568   # Let's still pretend it is `configure' which instantiates (i.e., don't
13569   # use $as_me), people would be surprised to read:
13570   #    /* config.h.  Generated by config.status.  */
13571   if test x"$ac_file" = x-; then
13572     configure_input=
13573   else
13574     configure_input="$ac_file.  "
13575   fi
13576   configure_input=$configure_input"Generated from `echo $ac_file_in |
13577                                      sed 's,.*/,,'` by configure."
13578
13579   # First look for the input files in the build tree, otherwise in the
13580   # src tree.
13581   ac_file_inputs=`IFS=:
13582     for f in $ac_file_in; do
13583       case $f in
13584       -) echo $tmp/stdin ;;
13585       [\\/$]*)
13586          # Absolute (can't be DOS-style, as IFS=:)
13587          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13588 echo "$as_me: error: cannot find input file: $f" >&2;}
13589    { (exit 1); exit 1; }; }
13590          echo "$f";;
13591       *) # Relative
13592          if test -f "$f"; then
13593            # Build tree
13594            echo "$f"
13595          elif test -f "$srcdir/$f"; then
13596            # Source tree
13597            echo "$srcdir/$f"
13598          else
13599            # /dev/null tree
13600            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13601 echo "$as_me: error: cannot find input file: $f" >&2;}
13602    { (exit 1); exit 1; }; }
13603          fi;;
13604       esac
13605     done` || { (exit 1); exit 1; }
13606 _ACEOF
13607 cat >>$CONFIG_STATUS <<_ACEOF
13608   sed "$ac_vpsub
13609 $extrasub
13610 _ACEOF
13611 cat >>$CONFIG_STATUS <<\_ACEOF
13612 :t
13613 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13614 s,@configure_input@,$configure_input,;t t
13615 s,@srcdir@,$ac_srcdir,;t t
13616 s,@abs_srcdir@,$ac_abs_srcdir,;t t
13617 s,@top_srcdir@,$ac_top_srcdir,;t t
13618 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
13619 s,@builddir@,$ac_builddir,;t t
13620 s,@abs_builddir@,$ac_abs_builddir,;t t
13621 s,@top_builddir@,$ac_top_builddir,;t t
13622 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
13623 s,@INSTALL@,$ac_INSTALL,;t t
13624 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
13625   rm -f $tmp/stdin
13626   if test x"$ac_file" != x-; then
13627     mv $tmp/out $ac_file
13628   else
13629     cat $tmp/out
13630     rm -f $tmp/out
13631   fi
13632
13633 done
13634 _ACEOF
13635 cat >>$CONFIG_STATUS <<\_ACEOF
13636
13637 #
13638 # CONFIG_HEADER section.
13639 #
13640
13641 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
13642 # NAME is the cpp macro being defined and VALUE is the value it is being given.
13643 #
13644 # ac_d sets the value in "#define NAME VALUE" lines.
13645 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
13646 ac_dB='[         ].*$,\1#\2'
13647 ac_dC=' '
13648 ac_dD=',;t'
13649 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
13650 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
13651 ac_uB='$,\1#\2define\3'
13652 ac_uC=' '
13653 ac_uD=',;t'
13654
13655 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
13656   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13657   case $ac_file in
13658   - | *:- | *:-:* ) # input from stdin
13659         cat >$tmp/stdin
13660         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13661         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13662   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13663         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13664   * )   ac_file_in=$ac_file.in ;;
13665   esac
13666
13667   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
13668 echo "$as_me: creating $ac_file" >&6;}
13669
13670   # First look for the input files in the build tree, otherwise in the
13671   # src tree.
13672   ac_file_inputs=`IFS=:
13673     for f in $ac_file_in; do
13674       case $f in
13675       -) echo $tmp/stdin ;;
13676       [\\/$]*)
13677          # Absolute (can't be DOS-style, as IFS=:)
13678          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13679 echo "$as_me: error: cannot find input file: $f" >&2;}
13680    { (exit 1); exit 1; }; }
13681          # Do quote $f, to prevent DOS paths from being IFS'd.
13682          echo "$f";;
13683       *) # Relative
13684          if test -f "$f"; then
13685            # Build tree
13686            echo "$f"
13687          elif test -f "$srcdir/$f"; then
13688            # Source tree
13689            echo "$srcdir/$f"
13690          else
13691            # /dev/null tree
13692            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13693 echo "$as_me: error: cannot find input file: $f" >&2;}
13694    { (exit 1); exit 1; }; }
13695          fi;;
13696       esac
13697     done` || { (exit 1); exit 1; }
13698   # Remove the trailing spaces.
13699   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
13700
13701 _ACEOF
13702
13703 # Transform confdefs.h into two sed scripts, `conftest.defines' and
13704 # `conftest.undefs', that substitutes the proper values into
13705 # config.h.in to produce config.h.  The first handles `#define'
13706 # templates, and the second `#undef' templates.
13707 # And first: Protect against being on the right side of a sed subst in
13708 # config.status.  Protect against being in an unquoted here document
13709 # in config.status.
13710 rm -f conftest.defines conftest.undefs
13711 # Using a here document instead of a string reduces the quoting nightmare.
13712 # Putting comments in sed scripts is not portable.
13713 #
13714 # `end' is used to avoid that the second main sed command (meant for
13715 # 0-ary CPP macros) applies to n-ary macro definitions.
13716 # See the Autoconf documentation for `clear'.
13717 cat >confdef2sed.sed <<\_ACEOF
13718 s/[\\&,]/\\&/g
13719 s,[\\$`],\\&,g
13720 t clear
13721 : clear
13722 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
13723 t end
13724 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
13725 : end
13726 _ACEOF
13727 # If some macros were called several times there might be several times
13728 # the same #defines, which is useless.  Nevertheless, we may not want to
13729 # sort them, since we want the *last* AC-DEFINE to be honored.
13730 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
13731 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
13732 rm -f confdef2sed.sed
13733
13734 # This sed command replaces #undef with comments.  This is necessary, for
13735 # example, in the case of _POSIX_SOURCE, which is predefined and required
13736 # on some systems where configure will not decide to define it.
13737 cat >>conftest.undefs <<\_ACEOF
13738 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
13739 _ACEOF
13740
13741 # Break up conftest.defines because some shells have a limit on the size
13742 # of here documents, and old seds have small limits too (100 cmds).
13743 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
13744 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
13745 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
13746 echo '  :' >>$CONFIG_STATUS
13747 rm -f conftest.tail
13748 while grep . conftest.defines >/dev/null
13749 do
13750   # Write a limited-size here document to $tmp/defines.sed.
13751   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
13752   # Speed up: don't consider the non `#define' lines.
13753   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
13754   # Work around the forget-to-reset-the-flag bug.
13755   echo 't clr' >>$CONFIG_STATUS
13756   echo ': clr' >>$CONFIG_STATUS
13757   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
13758   echo 'CEOF
13759   sed -f $tmp/defines.sed $tmp/in >$tmp/out
13760   rm -f $tmp/in
13761   mv $tmp/out $tmp/in
13762 ' >>$CONFIG_STATUS
13763   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
13764   rm -f conftest.defines
13765   mv conftest.tail conftest.defines
13766 done
13767 rm -f conftest.defines
13768 echo '  fi # grep' >>$CONFIG_STATUS
13769 echo >>$CONFIG_STATUS
13770
13771 # Break up conftest.undefs because some shells have a limit on the size
13772 # of here documents, and old seds have small limits too (100 cmds).
13773 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
13774 rm -f conftest.tail
13775 while grep . conftest.undefs >/dev/null
13776 do
13777   # Write a limited-size here document to $tmp/undefs.sed.
13778   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
13779   # Speed up: don't consider the non `#undef'
13780   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
13781   # Work around the forget-to-reset-the-flag bug.
13782   echo 't clr' >>$CONFIG_STATUS
13783   echo ': clr' >>$CONFIG_STATUS
13784   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
13785   echo 'CEOF
13786   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
13787   rm -f $tmp/in
13788   mv $tmp/out $tmp/in
13789 ' >>$CONFIG_STATUS
13790   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
13791   rm -f conftest.undefs
13792   mv conftest.tail conftest.undefs
13793 done
13794 rm -f conftest.undefs
13795
13796 cat >>$CONFIG_STATUS <<\_ACEOF
13797   # Let's still pretend it is `configure' which instantiates (i.e., don't
13798   # use $as_me), people would be surprised to read:
13799   #    /* config.h.  Generated by config.status.  */
13800   if test x"$ac_file" = x-; then
13801     echo "/* Generated by configure.  */" >$tmp/config.h
13802   else
13803     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
13804   fi
13805   cat $tmp/in >>$tmp/config.h
13806   rm -f $tmp/in
13807   if test x"$ac_file" != x-; then
13808     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
13809       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
13810 echo "$as_me: $ac_file is unchanged" >&6;}
13811     else
13812       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13813 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13814          X"$ac_file" : 'X\(//\)[^/]' \| \
13815          X"$ac_file" : 'X\(//\)$' \| \
13816          X"$ac_file" : 'X\(/\)' \| \
13817          .     : '\(.\)' 2>/dev/null ||
13818 echo X"$ac_file" |
13819     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13820           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13821           /^X\(\/\/\)$/{ s//\1/; q; }
13822           /^X\(\/\).*/{ s//\1/; q; }
13823           s/.*/./; q'`
13824       { if $as_mkdir_p; then
13825     mkdir -p "$ac_dir"
13826   else
13827     as_dir="$ac_dir"
13828     as_dirs=
13829     while test ! -d "$as_dir"; do
13830       as_dirs="$as_dir $as_dirs"
13831       as_dir=`(dirname "$as_dir") 2>/dev/null ||
13832 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13833          X"$as_dir" : 'X\(//\)[^/]' \| \
13834          X"$as_dir" : 'X\(//\)$' \| \
13835          X"$as_dir" : 'X\(/\)' \| \
13836          .     : '\(.\)' 2>/dev/null ||
13837 echo X"$as_dir" |
13838     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13839           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13840           /^X\(\/\/\)$/{ s//\1/; q; }
13841           /^X\(\/\).*/{ s//\1/; q; }
13842           s/.*/./; q'`
13843     done
13844     test ! -n "$as_dirs" || mkdir $as_dirs
13845   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13846 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13847    { (exit 1); exit 1; }; }; }
13848
13849       rm -f $ac_file
13850       mv $tmp/config.h $ac_file
13851     fi
13852   else
13853     cat $tmp/config.h
13854     rm -f $tmp/config.h
13855   fi
13856 # Compute $ac_file's index in $config_headers.
13857 _am_stamp_count=1
13858 for _am_header in $config_headers :; do
13859   case $_am_header in
13860     $ac_file | $ac_file:* )
13861       break ;;
13862     * )
13863       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13864   esac
13865 done
13866 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
13867 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13868          X$ac_file : 'X\(//\)[^/]' \| \
13869          X$ac_file : 'X\(//\)$' \| \
13870          X$ac_file : 'X\(/\)' \| \
13871          .     : '\(.\)' 2>/dev/null ||
13872 echo X$ac_file |
13873     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13874           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13875           /^X\(\/\/\)$/{ s//\1/; q; }
13876           /^X\(\/\).*/{ s//\1/; q; }
13877           s/.*/./; q'`/stamp-h$_am_stamp_count
13878 done
13879 _ACEOF
13880 cat >>$CONFIG_STATUS <<\_ACEOF
13881
13882 #
13883 # CONFIG_COMMANDS section.
13884 #
13885 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
13886   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
13887   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
13888   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
13889 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13890          X"$ac_dest" : 'X\(//\)[^/]' \| \
13891          X"$ac_dest" : 'X\(//\)$' \| \
13892          X"$ac_dest" : 'X\(/\)' \| \
13893          .     : '\(.\)' 2>/dev/null ||
13894 echo X"$ac_dest" |
13895     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13896           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13897           /^X\(\/\/\)$/{ s//\1/; q; }
13898           /^X\(\/\).*/{ s//\1/; q; }
13899           s/.*/./; q'`
13900   { if $as_mkdir_p; then
13901     mkdir -p "$ac_dir"
13902   else
13903     as_dir="$ac_dir"
13904     as_dirs=
13905     while test ! -d "$as_dir"; do
13906       as_dirs="$as_dir $as_dirs"
13907       as_dir=`(dirname "$as_dir") 2>/dev/null ||
13908 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13909          X"$as_dir" : 'X\(//\)[^/]' \| \
13910          X"$as_dir" : 'X\(//\)$' \| \
13911          X"$as_dir" : 'X\(/\)' \| \
13912          .     : '\(.\)' 2>/dev/null ||
13913 echo X"$as_dir" |
13914     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13915           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13916           /^X\(\/\/\)$/{ s//\1/; q; }
13917           /^X\(\/\).*/{ s//\1/; q; }
13918           s/.*/./; q'`
13919     done
13920     test ! -n "$as_dirs" || mkdir $as_dirs
13921   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13922 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13923    { (exit 1); exit 1; }; }; }
13924
13925   ac_builddir=.
13926
13927 if test "$ac_dir" != .; then
13928   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13929   # A "../" for each directory in $ac_dir_suffix.
13930   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13931 else
13932   ac_dir_suffix= ac_top_builddir=
13933 fi
13934
13935 case $srcdir in
13936   .)  # No --srcdir option.  We are building in place.
13937     ac_srcdir=.
13938     if test -z "$ac_top_builddir"; then
13939        ac_top_srcdir=.
13940     else
13941        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13942     fi ;;
13943   [\\/]* | ?:[\\/]* )  # Absolute path.
13944     ac_srcdir=$srcdir$ac_dir_suffix;
13945     ac_top_srcdir=$srcdir ;;
13946   *) # Relative path.
13947     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13948     ac_top_srcdir=$ac_top_builddir$srcdir ;;
13949 esac
13950
13951 # Do not use `cd foo && pwd` to compute absolute paths, because
13952 # the directories may not exist.
13953 case `pwd` in
13954 .) ac_abs_builddir="$ac_dir";;
13955 *)
13956   case "$ac_dir" in
13957   .) ac_abs_builddir=`pwd`;;
13958   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
13959   *) ac_abs_builddir=`pwd`/"$ac_dir";;
13960   esac;;
13961 esac
13962 case $ac_abs_builddir in
13963 .) ac_abs_top_builddir=${ac_top_builddir}.;;
13964 *)
13965   case ${ac_top_builddir}. in
13966   .) ac_abs_top_builddir=$ac_abs_builddir;;
13967   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
13968   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
13969   esac;;
13970 esac
13971 case $ac_abs_builddir in
13972 .) ac_abs_srcdir=$ac_srcdir;;
13973 *)
13974   case $ac_srcdir in
13975   .) ac_abs_srcdir=$ac_abs_builddir;;
13976   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
13977   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
13978   esac;;
13979 esac
13980 case $ac_abs_builddir in
13981 .) ac_abs_top_srcdir=$ac_top_srcdir;;
13982 *)
13983   case $ac_top_srcdir in
13984   .) ac_abs_top_srcdir=$ac_abs_builddir;;
13985   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
13986   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
13987   esac;;
13988 esac
13989
13990
13991   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
13992 echo "$as_me: executing $ac_dest commands" >&6;}
13993   case $ac_dest in
13994     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
13995   # Strip MF so we end up with the name of the file.
13996   mf=`echo "$mf" | sed -e 's/:.*$//'`
13997   # Check whether this is an Automake generated Makefile or not.
13998   # We used to match only the files named `Makefile.in', but
13999   # some people rename them; so instead we look at the file content.
14000   # Grep'ing the first line is not enough: some people post-process
14001   # each Makefile.in and add a new line on top of each file to say so.
14002   # So let's grep whole file.
14003   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
14004     dirpart=`(dirname "$mf") 2>/dev/null ||
14005 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14006          X"$mf" : 'X\(//\)[^/]' \| \
14007          X"$mf" : 'X\(//\)$' \| \
14008          X"$mf" : 'X\(/\)' \| \
14009          .     : '\(.\)' 2>/dev/null ||
14010 echo X"$mf" |
14011     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14012           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14013           /^X\(\/\/\)$/{ s//\1/; q; }
14014           /^X\(\/\).*/{ s//\1/; q; }
14015           s/.*/./; q'`
14016   else
14017     continue
14018   fi
14019   # Extract the definition of DEPDIR, am__include, and am__quote
14020   # from the Makefile without running `make'.
14021   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14022   test -z "$DEPDIR" && continue
14023   am__include=`sed -n 's/^am__include = //p' < "$mf"`
14024   test -z "am__include" && continue
14025   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14026   # When using ansi2knr, U may be empty or an underscore; expand it
14027   U=`sed -n 's/^U = //p' < "$mf"`
14028   # Find all dependency output files, they are included files with
14029   # $(DEPDIR) in their names.  We invoke sed twice because it is the
14030   # simplest approach to changing $(DEPDIR) to its actual value in the
14031   # expansion.
14032   for file in `sed -n "
14033     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14034        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14035     # Make sure the directory exists.
14036     test -f "$dirpart/$file" && continue
14037     fdir=`(dirname "$file") 2>/dev/null ||
14038 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14039          X"$file" : 'X\(//\)[^/]' \| \
14040          X"$file" : 'X\(//\)$' \| \
14041          X"$file" : 'X\(/\)' \| \
14042          .     : '\(.\)' 2>/dev/null ||
14043 echo X"$file" |
14044     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14045           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14046           /^X\(\/\/\)$/{ s//\1/; q; }
14047           /^X\(\/\).*/{ s//\1/; q; }
14048           s/.*/./; q'`
14049     { if $as_mkdir_p; then
14050     mkdir -p $dirpart/$fdir
14051   else
14052     as_dir=$dirpart/$fdir
14053     as_dirs=
14054     while test ! -d "$as_dir"; do
14055       as_dirs="$as_dir $as_dirs"
14056       as_dir=`(dirname "$as_dir") 2>/dev/null ||
14057 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14058          X"$as_dir" : 'X\(//\)[^/]' \| \
14059          X"$as_dir" : 'X\(//\)$' \| \
14060          X"$as_dir" : 'X\(/\)' \| \
14061          .     : '\(.\)' 2>/dev/null ||
14062 echo X"$as_dir" |
14063     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14064           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14065           /^X\(\/\/\)$/{ s//\1/; q; }
14066           /^X\(\/\).*/{ s//\1/; q; }
14067           s/.*/./; q'`
14068     done
14069     test ! -n "$as_dirs" || mkdir $as_dirs
14070   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
14071 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
14072    { (exit 1); exit 1; }; }; }
14073
14074     # echo "creating $dirpart/$file"
14075     echo '# dummy' > "$dirpart/$file"
14076   done
14077 done
14078  ;;
14079     default ) sed -e '/SRC-POTFILES =/r po/SRC-POTFILES' -e '/BLD-POTFILES =/r po/BLD-POTFILES' po/Makefile.in > po/Makefile ;;
14080   esac
14081 done
14082 _ACEOF
14083
14084 cat >>$CONFIG_STATUS <<\_ACEOF
14085
14086 { (exit 0); exit 0; }
14087 _ACEOF
14088 chmod +x $CONFIG_STATUS
14089 ac_clean_files=$ac_clean_files_save
14090
14091
14092 # configure is writing to config.log, and then calls config.status.
14093 # config.status does its own redirection, appending to config.log.
14094 # Unfortunately, on DOS this fails, as config.log is still kept open
14095 # by configure, so config.status won't be able to write to it; its
14096 # output is simply discarded.  So we exec the FD to /dev/null,
14097 # effectively closing config.log, so it can be properly (re)opened and
14098 # appended to by config.status.  When coming back to configure, we
14099 # need to make the FD available again.
14100 if test "$no_create" != yes; then
14101   ac_cs_success=:
14102   ac_config_status_args=
14103   test "$silent" = yes &&
14104     ac_config_status_args="$ac_config_status_args --quiet"
14105   exec 5>/dev/null
14106   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14107   exec 5>>config.log
14108   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14109   # would make configure fail if this is the last instruction.
14110   $ac_cs_success || { (exit 1); exit 1; }
14111 fi
14112
14113