xref: /netbsd-src/external/gpl3/binutils/dist/libiberty/configure (revision cb861154c176d3dcc8ff846f449e3c16a5f5edb5)
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
13if 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+"$@"}'='"$@"'
19elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20  set -o posix
21fi
22DUALCASE=1; export DUALCASE # for MKS sh
23
24# Support unset when possible.
25if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26  as_unset=unset
27else
28  as_unset=false
29fi
30
31
32# Work around bugs in pre-3.0 UWIN ksh.
33$as_unset ENV MAIL MAILPATH
34PS1='$ '
35PS2='> '
36PS4='+ '
37
38# NLS nuisances.
39for 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
43do
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
49done
50
51# Required to use basename.
52if expr a : '\(a\)' >/dev/null 2>&1; then
53  as_expr=expr
54else
55  as_expr=false
56fi
57
58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59  as_basename=basename
60else
61  as_basename=false
62fi
63
64
65# Name of the executable.
66as_me=`$as_basename "$0" ||
67$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68	 X"$0" : 'X\(//\)$' \| \
69	 X"$0" : 'X\(/\)$' \| \
70	 .     : '\(.\)' 2>/dev/null ||
71echo 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.
80as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83as_cr_digits='0123456789'
84as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86# The user is always right.
87if 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
97fi
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
110for as_dir in $PATH
111do
112  IFS=$as_save_IFS
113  test -z "$as_dir" && as_dir=.
114  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115done
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
131for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132do
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
152done
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
187case `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= ;;
192esac
193
194if expr a : '\(a\)' >/dev/null 2>&1; then
195  as_expr=expr
196else
197  as_expr=false
198fi
199
200rm -f conf$$ conf$$.exe conf$$.file
201echo >conf$$.file
202if 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
211elif ln conf$$.file conf$$ 2>/dev/null; then
212  as_ln_s=ln
213else
214  as_ln_s='cp -p'
215fi
216rm -f conf$$ conf$$.exe conf$$.file
217
218if mkdir -p . 2>/dev/null; then
219  as_mkdir_p=:
220else
221  test -d ./-p && rmdir ./-p
222  as_mkdir_p=false
223fi
224
225as_executable_p="test -f"
226
227# Sed expression to map a string onto a valid CPP name.
228as_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.
231as_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.
236as_nl='
237'
238IFS=" 	$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.
247ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249exec 6>&1
250
251#
252# Initializations.
253#
254ac_default_prefix=/usr/local
255ac_config_libobj_dir=.
256cross_compiling=no
257subdirs=
258MFLAGS=
259MAKEFLAGS=
260SHELL=${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.
268PACKAGE_NAME=
269PACKAGE_TARNAME=
270PACKAGE_VERSION=
271PACKAGE_STRING=
272PACKAGE_BUGREPORT=
273
274ac_unique_file="xmalloc.c"
275# Factoring default headers for most tests.
276ac_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
312ac_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 libiberty_topdir MAINT NOTMAINT MAKEINFO BUILD_INFO PERL HAVE_PERL build build_cpu build_vendor build_os host host_cpu host_vendor host_os AR ac_ct_AR RANLIB ac_ct_RANLIB CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP ac_libiberty_warn_cflags NO_MINUS_C_MINUS_O OUTPUT_OPTION INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA PICFLAG EGREP LIBOBJS CHECK target_header_dir pexecute INSTALL_DEST datarootdir docdir htmldir LTLIBOBJS'
313ac_subst_files='host_makefile_frag'
314ac_pwd=`pwd`
315
316# Initialize some variables set by options.
317ac_init_help=
318ac_init_version=false
319# The variables have the same names as the options, with
320# dashes changed to underlines.
321cache_file=/dev/null
322exec_prefix=NONE
323no_create=
324no_recursion=
325prefix=NONE
326program_prefix=NONE
327program_suffix=NONE
328program_transform_name=s,x,x,
329silent=
330site=
331srcdir=
332verbose=
333x_includes=NONE
334x_libraries=NONE
335
336# Installation directory options.
337# These are left unexpanded so users can "make install exec_prefix=/foo"
338# and all the variables that are supposed to be based on exec_prefix
339# by default will actually change.
340# Use braces instead of parens because sh, perl, etc. also accept them.
341bindir='${exec_prefix}/bin'
342sbindir='${exec_prefix}/sbin'
343libexecdir='${exec_prefix}/libexec'
344datadir='${prefix}/share'
345sysconfdir='${prefix}/etc'
346sharedstatedir='${prefix}/com'
347localstatedir='${prefix}/var'
348libdir='${exec_prefix}/lib'
349includedir='${prefix}/include'
350oldincludedir='/usr/include'
351infodir='${prefix}/info'
352mandir='${prefix}/man'
353
354ac_prev=
355for ac_option
356do
357  # If the previous option needs an argument, assign it.
358  if test -n "$ac_prev"; then
359    eval "$ac_prev=\$ac_option"
360    ac_prev=
361    continue
362  fi
363
364  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365
366  # Accept the important Cygnus configure options, so we can diagnose typos.
367
368  case $ac_option in
369
370  -bindir | --bindir | --bindi | --bind | --bin | --bi)
371    ac_prev=bindir ;;
372  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
373    bindir=$ac_optarg ;;
374
375  -build | --build | --buil | --bui | --bu)
376    ac_prev=build_alias ;;
377  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
378    build_alias=$ac_optarg ;;
379
380  -cache-file | --cache-file | --cache-fil | --cache-fi \
381  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
382    ac_prev=cache_file ;;
383  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
384  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
385    cache_file=$ac_optarg ;;
386
387  --config-cache | -C)
388    cache_file=config.cache ;;
389
390  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
391    ac_prev=datadir ;;
392  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
393  | --da=*)
394    datadir=$ac_optarg ;;
395
396  -disable-* | --disable-*)
397    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
398    # Reject names that are not valid shell variable names.
399    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
400      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
401   { (exit 1); exit 1; }; }
402    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
403    eval "enable_$ac_feature=no" ;;
404
405  -enable-* | --enable-*)
406    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
407    # Reject names that are not valid shell variable names.
408    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
409      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
410   { (exit 1); exit 1; }; }
411    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
412    case $ac_option in
413      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
414      *) ac_optarg=yes ;;
415    esac
416    eval "enable_$ac_feature='$ac_optarg'" ;;
417
418  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
419  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
420  | --exec | --exe | --ex)
421    ac_prev=exec_prefix ;;
422  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
423  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
424  | --exec=* | --exe=* | --ex=*)
425    exec_prefix=$ac_optarg ;;
426
427  -gas | --gas | --ga | --g)
428    # Obsolete; use --with-gas.
429    with_gas=yes ;;
430
431  -help | --help | --hel | --he | -h)
432    ac_init_help=long ;;
433  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
434    ac_init_help=recursive ;;
435  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
436    ac_init_help=short ;;
437
438  -host | --host | --hos | --ho)
439    ac_prev=host_alias ;;
440  -host=* | --host=* | --hos=* | --ho=*)
441    host_alias=$ac_optarg ;;
442
443  -includedir | --includedir | --includedi | --included | --include \
444  | --includ | --inclu | --incl | --inc)
445    ac_prev=includedir ;;
446  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
447  | --includ=* | --inclu=* | --incl=* | --inc=*)
448    includedir=$ac_optarg ;;
449
450  -infodir | --infodir | --infodi | --infod | --info | --inf)
451    ac_prev=infodir ;;
452  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
453    infodir=$ac_optarg ;;
454
455  -libdir | --libdir | --libdi | --libd)
456    ac_prev=libdir ;;
457  -libdir=* | --libdir=* | --libdi=* | --libd=*)
458    libdir=$ac_optarg ;;
459
460  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
461  | --libexe | --libex | --libe)
462    ac_prev=libexecdir ;;
463  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
464  | --libexe=* | --libex=* | --libe=*)
465    libexecdir=$ac_optarg ;;
466
467  -localstatedir | --localstatedir | --localstatedi | --localstated \
468  | --localstate | --localstat | --localsta | --localst \
469  | --locals | --local | --loca | --loc | --lo)
470    ac_prev=localstatedir ;;
471  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
472  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
473  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
474    localstatedir=$ac_optarg ;;
475
476  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
477    ac_prev=mandir ;;
478  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
479    mandir=$ac_optarg ;;
480
481  -nfp | --nfp | --nf)
482    # Obsolete; use --without-fp.
483    with_fp=no ;;
484
485  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
486  | --no-cr | --no-c | -n)
487    no_create=yes ;;
488
489  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
490  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
491    no_recursion=yes ;;
492
493  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
494  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
495  | --oldin | --oldi | --old | --ol | --o)
496    ac_prev=oldincludedir ;;
497  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
498  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
499  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
500    oldincludedir=$ac_optarg ;;
501
502  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
503    ac_prev=prefix ;;
504  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
505    prefix=$ac_optarg ;;
506
507  -program-prefix | --program-prefix | --program-prefi | --program-pref \
508  | --program-pre | --program-pr | --program-p)
509    ac_prev=program_prefix ;;
510  -program-prefix=* | --program-prefix=* | --program-prefi=* \
511  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
512    program_prefix=$ac_optarg ;;
513
514  -program-suffix | --program-suffix | --program-suffi | --program-suff \
515  | --program-suf | --program-su | --program-s)
516    ac_prev=program_suffix ;;
517  -program-suffix=* | --program-suffix=* | --program-suffi=* \
518  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
519    program_suffix=$ac_optarg ;;
520
521  -program-transform-name | --program-transform-name \
522  | --program-transform-nam | --program-transform-na \
523  | --program-transform-n | --program-transform- \
524  | --program-transform | --program-transfor \
525  | --program-transfo | --program-transf \
526  | --program-trans | --program-tran \
527  | --progr-tra | --program-tr | --program-t)
528    ac_prev=program_transform_name ;;
529  -program-transform-name=* | --program-transform-name=* \
530  | --program-transform-nam=* | --program-transform-na=* \
531  | --program-transform-n=* | --program-transform-=* \
532  | --program-transform=* | --program-transfor=* \
533  | --program-transfo=* | --program-transf=* \
534  | --program-trans=* | --program-tran=* \
535  | --progr-tra=* | --program-tr=* | --program-t=*)
536    program_transform_name=$ac_optarg ;;
537
538  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
539  | -silent | --silent | --silen | --sile | --sil)
540    silent=yes ;;
541
542  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
543    ac_prev=sbindir ;;
544  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
545  | --sbi=* | --sb=*)
546    sbindir=$ac_optarg ;;
547
548  -sharedstatedir | --sharedstatedir | --sharedstatedi \
549  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
550  | --sharedst | --shareds | --shared | --share | --shar \
551  | --sha | --sh)
552    ac_prev=sharedstatedir ;;
553  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
554  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
555  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
556  | --sha=* | --sh=*)
557    sharedstatedir=$ac_optarg ;;
558
559  -site | --site | --sit)
560    ac_prev=site ;;
561  -site=* | --site=* | --sit=*)
562    site=$ac_optarg ;;
563
564  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
565    ac_prev=srcdir ;;
566  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
567    srcdir=$ac_optarg ;;
568
569  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
570  | --syscon | --sysco | --sysc | --sys | --sy)
571    ac_prev=sysconfdir ;;
572  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
573  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
574    sysconfdir=$ac_optarg ;;
575
576  -target | --target | --targe | --targ | --tar | --ta | --t)
577    ac_prev=target_alias ;;
578  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
579    target_alias=$ac_optarg ;;
580
581  -v | -verbose | --verbose | --verbos | --verbo | --verb)
582    verbose=yes ;;
583
584  -version | --version | --versio | --versi | --vers | -V)
585    ac_init_version=: ;;
586
587  -with-* | --with-*)
588    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
589    # Reject names that are not valid shell variable names.
590    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
591      { echo "$as_me: error: invalid package name: $ac_package" >&2
592   { (exit 1); exit 1; }; }
593    ac_package=`echo $ac_package| sed 's/-/_/g'`
594    case $ac_option in
595      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
596      *) ac_optarg=yes ;;
597    esac
598    eval "with_$ac_package='$ac_optarg'" ;;
599
600  -without-* | --without-*)
601    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
602    # Reject names that are not valid shell variable names.
603    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
604      { echo "$as_me: error: invalid package name: $ac_package" >&2
605   { (exit 1); exit 1; }; }
606    ac_package=`echo $ac_package | sed 's/-/_/g'`
607    eval "with_$ac_package=no" ;;
608
609  --x)
610    # Obsolete; use --with-x.
611    with_x=yes ;;
612
613  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
614  | --x-incl | --x-inc | --x-in | --x-i)
615    ac_prev=x_includes ;;
616  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
617  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
618    x_includes=$ac_optarg ;;
619
620  -x-libraries | --x-libraries | --x-librarie | --x-librari \
621  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
622    ac_prev=x_libraries ;;
623  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
624  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
625    x_libraries=$ac_optarg ;;
626
627  -*) { echo "$as_me: error: unrecognized option: $ac_option
628Try \`$0 --help' for more information." >&2
629   { (exit 1); exit 1; }; }
630    ;;
631
632  *=*)
633    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
634    # Reject names that are not valid shell variable names.
635    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
636      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
637   { (exit 1); exit 1; }; }
638    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
639    eval "$ac_envvar='$ac_optarg'"
640    export $ac_envvar ;;
641
642  *)
643    # FIXME: should be removed in autoconf 3.0.
644    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
645    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
646      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
647    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
648    ;;
649
650  esac
651done
652
653if test -n "$ac_prev"; then
654  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
655  { echo "$as_me: error: missing argument to $ac_option" >&2
656   { (exit 1); exit 1; }; }
657fi
658
659# Be sure to have absolute paths.
660for ac_var in exec_prefix prefix
661do
662  eval ac_val=$`echo $ac_var`
663  case $ac_val in
664    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
665    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
666   { (exit 1); exit 1; }; };;
667  esac
668done
669
670# Be sure to have absolute paths.
671for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
672	      localstatedir libdir includedir oldincludedir infodir mandir
673do
674  eval ac_val=$`echo $ac_var`
675  case $ac_val in
676    [\\/$]* | ?:[\\/]* ) ;;
677    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
678   { (exit 1); exit 1; }; };;
679  esac
680done
681
682# There might be people who depend on the old broken behavior: `$host'
683# used to hold the argument of --host etc.
684# FIXME: To remove some day.
685build=$build_alias
686host=$host_alias
687target=$target_alias
688
689# FIXME: To remove some day.
690if test "x$host_alias" != x; then
691  if test "x$build_alias" = x; then
692    cross_compiling=maybe
693    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
694    If a cross compiler is detected then cross compile mode will be used." >&2
695  elif test "x$build_alias" != "x$host_alias"; then
696    cross_compiling=yes
697  fi
698fi
699
700ac_tool_prefix=
701test -n "$host_alias" && ac_tool_prefix=$host_alias-
702
703test "$silent" = yes && exec 6>/dev/null
704
705
706# Find the source files, if location was not specified.
707if test -z "$srcdir"; then
708  ac_srcdir_defaulted=yes
709  # Try the directory containing this script, then its parent.
710  ac_confdir=`(dirname "$0") 2>/dev/null ||
711$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
712	 X"$0" : 'X\(//\)[^/]' \| \
713	 X"$0" : 'X\(//\)$' \| \
714	 X"$0" : 'X\(/\)' \| \
715	 .     : '\(.\)' 2>/dev/null ||
716echo X"$0" |
717    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
718  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
719  	  /^X\(\/\/\)$/{ s//\1/; q; }
720  	  /^X\(\/\).*/{ s//\1/; q; }
721  	  s/.*/./; q'`
722  srcdir=$ac_confdir
723  if test ! -r $srcdir/$ac_unique_file; then
724    srcdir=..
725  fi
726else
727  ac_srcdir_defaulted=no
728fi
729if test ! -r $srcdir/$ac_unique_file; then
730  if test "$ac_srcdir_defaulted" = yes; then
731    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
732   { (exit 1); exit 1; }; }
733  else
734    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
735   { (exit 1); exit 1; }; }
736  fi
737fi
738(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
739  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
740   { (exit 1); exit 1; }; }
741srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
742ac_env_build_alias_set=${build_alias+set}
743ac_env_build_alias_value=$build_alias
744ac_cv_env_build_alias_set=${build_alias+set}
745ac_cv_env_build_alias_value=$build_alias
746ac_env_host_alias_set=${host_alias+set}
747ac_env_host_alias_value=$host_alias
748ac_cv_env_host_alias_set=${host_alias+set}
749ac_cv_env_host_alias_value=$host_alias
750ac_env_target_alias_set=${target_alias+set}
751ac_env_target_alias_value=$target_alias
752ac_cv_env_target_alias_set=${target_alias+set}
753ac_cv_env_target_alias_value=$target_alias
754ac_env_CC_set=${CC+set}
755ac_env_CC_value=$CC
756ac_cv_env_CC_set=${CC+set}
757ac_cv_env_CC_value=$CC
758ac_env_CFLAGS_set=${CFLAGS+set}
759ac_env_CFLAGS_value=$CFLAGS
760ac_cv_env_CFLAGS_set=${CFLAGS+set}
761ac_cv_env_CFLAGS_value=$CFLAGS
762ac_env_LDFLAGS_set=${LDFLAGS+set}
763ac_env_LDFLAGS_value=$LDFLAGS
764ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
765ac_cv_env_LDFLAGS_value=$LDFLAGS
766ac_env_CPPFLAGS_set=${CPPFLAGS+set}
767ac_env_CPPFLAGS_value=$CPPFLAGS
768ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
769ac_cv_env_CPPFLAGS_value=$CPPFLAGS
770ac_env_CPP_set=${CPP+set}
771ac_env_CPP_value=$CPP
772ac_cv_env_CPP_set=${CPP+set}
773ac_cv_env_CPP_value=$CPP
774
775#
776# Report the --help message.
777#
778if test "$ac_init_help" = "long"; then
779  # Omit some internal or obsolete options to make the list less imposing.
780  # This message is too long to be a string in the A/UX 3.1 sh.
781  cat <<_ACEOF
782\`configure' configures this package to adapt to many kinds of systems.
783
784Usage: $0 [OPTION]... [VAR=VALUE]...
785
786To assign environment variables (e.g., CC, CFLAGS...), specify them as
787VAR=VALUE.  See below for descriptions of some of the useful variables.
788
789Defaults for the options are specified in brackets.
790
791Configuration:
792  -h, --help              display this help and exit
793      --help=short        display options specific to this package
794      --help=recursive    display the short help of all the included packages
795  -V, --version           display version information and exit
796  -q, --quiet, --silent   do not print \`checking...' messages
797      --cache-file=FILE   cache test results in FILE [disabled]
798  -C, --config-cache      alias for \`--cache-file=config.cache'
799  -n, --no-create         do not create output files
800      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
801
802_ACEOF
803
804  cat <<_ACEOF
805Installation directories:
806  --prefix=PREFIX         install architecture-independent files in PREFIX
807			  [$ac_default_prefix]
808  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
809			  [PREFIX]
810
811By default, \`make install' will install all the files in
812\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
813an installation prefix other than \`$ac_default_prefix' using \`--prefix',
814for instance \`--prefix=\$HOME'.
815
816For better control, use the options below.
817
818Fine tuning of the installation directories:
819  --bindir=DIR           user executables [EPREFIX/bin]
820  --sbindir=DIR          system admin executables [EPREFIX/sbin]
821  --libexecdir=DIR       program executables [EPREFIX/libexec]
822  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
823  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
824  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
825  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
826  --libdir=DIR           object code libraries [EPREFIX/lib]
827  --includedir=DIR       C header files [PREFIX/include]
828  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
829  --infodir=DIR          info documentation [PREFIX/info]
830  --mandir=DIR           man documentation [PREFIX/man]
831_ACEOF
832
833  cat <<\_ACEOF
834
835System types:
836  --build=BUILD     configure for building on BUILD [guessed]
837  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
838_ACEOF
839fi
840
841if test -n "$ac_init_help"; then
842
843  cat <<\_ACEOF
844
845Optional Features:
846  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
847  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
848  --enable-maintainer-mode
849                          enable make rules and dependencies not useful
850                          (and sometimes confusing) to the casual installer
851  --enable-multilib       build many library versions (default)
852  --enable-install-libiberty       Install headers for end users
853
854Optional Packages:
855  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
856  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
857  --with-target-subdir=SUBDIR      Configuring in a subdirectory for target
858  --with-build-subdir=SUBDIR       Configuring in a subdirectory for build
859  --with-cross-host=HOST           Configuring with a cross compiler
860  --with-newlib                    Configuring with newlib
861
862Some influential environment variables:
863  CC          C compiler command
864  CFLAGS      C compiler flags
865  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
866              nonstandard directory <lib dir>
867  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
868              headers in a nonstandard directory <include dir>
869  CPP         C preprocessor
870
871Use these variables to override the choices made by `configure' or to help
872it to find libraries and programs with nonstandard names/locations.
873
874_ACEOF
875fi
876
877if test "$ac_init_help" = "recursive"; then
878  # If there are subdirs, report their specific --help.
879  ac_popdir=`pwd`
880  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
881    test -d $ac_dir || continue
882    ac_builddir=.
883
884if test "$ac_dir" != .; then
885  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
886  # A "../" for each directory in $ac_dir_suffix.
887  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
888else
889  ac_dir_suffix= ac_top_builddir=
890fi
891
892case $srcdir in
893  .)  # No --srcdir option.  We are building in place.
894    ac_srcdir=.
895    if test -z "$ac_top_builddir"; then
896       ac_top_srcdir=.
897    else
898       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
899    fi ;;
900  [\\/]* | ?:[\\/]* )  # Absolute path.
901    ac_srcdir=$srcdir$ac_dir_suffix;
902    ac_top_srcdir=$srcdir ;;
903  *) # Relative path.
904    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
905    ac_top_srcdir=$ac_top_builddir$srcdir ;;
906esac
907
908# Do not use `cd foo && pwd` to compute absolute paths, because
909# the directories may not exist.
910case `pwd` in
911.) ac_abs_builddir="$ac_dir";;
912*)
913  case "$ac_dir" in
914  .) ac_abs_builddir=`pwd`;;
915  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
916  *) ac_abs_builddir=`pwd`/"$ac_dir";;
917  esac;;
918esac
919case $ac_abs_builddir in
920.) ac_abs_top_builddir=${ac_top_builddir}.;;
921*)
922  case ${ac_top_builddir}. in
923  .) ac_abs_top_builddir=$ac_abs_builddir;;
924  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
925  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
926  esac;;
927esac
928case $ac_abs_builddir in
929.) ac_abs_srcdir=$ac_srcdir;;
930*)
931  case $ac_srcdir in
932  .) ac_abs_srcdir=$ac_abs_builddir;;
933  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
934  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
935  esac;;
936esac
937case $ac_abs_builddir in
938.) ac_abs_top_srcdir=$ac_top_srcdir;;
939*)
940  case $ac_top_srcdir in
941  .) ac_abs_top_srcdir=$ac_abs_builddir;;
942  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
943  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
944  esac;;
945esac
946
947    cd $ac_dir
948    # Check for guested configure; otherwise get Cygnus style configure.
949    if test -f $ac_srcdir/configure.gnu; then
950      echo
951      $SHELL $ac_srcdir/configure.gnu  --help=recursive
952    elif test -f $ac_srcdir/configure; then
953      echo
954      $SHELL $ac_srcdir/configure  --help=recursive
955    elif test -f $ac_srcdir/configure.ac ||
956	   test -f $ac_srcdir/configure.in; then
957      echo
958      $ac_configure --help
959    else
960      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
961    fi
962    cd $ac_popdir
963  done
964fi
965
966test -n "$ac_init_help" && exit 0
967if $ac_init_version; then
968  cat <<\_ACEOF
969
970Copyright (C) 2003 Free Software Foundation, Inc.
971This configure script is free software; the Free Software Foundation
972gives unlimited permission to copy, distribute and modify it.
973_ACEOF
974  exit 0
975fi
976exec 5>config.log
977cat >&5 <<_ACEOF
978This file contains any messages produced by compilers while
979running configure, to aid debugging if configure makes a mistake.
980
981It was created by $as_me, which was
982generated by GNU Autoconf 2.59.  Invocation command line was
983
984  $ $0 $@
985
986_ACEOF
987{
988cat <<_ASUNAME
989## --------- ##
990## Platform. ##
991## --------- ##
992
993hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
994uname -m = `(uname -m) 2>/dev/null || echo unknown`
995uname -r = `(uname -r) 2>/dev/null || echo unknown`
996uname -s = `(uname -s) 2>/dev/null || echo unknown`
997uname -v = `(uname -v) 2>/dev/null || echo unknown`
998
999/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1000/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1001
1002/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1003/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1004/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1005hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1006/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1007/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1008/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1009
1010_ASUNAME
1011
1012as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1013for as_dir in $PATH
1014do
1015  IFS=$as_save_IFS
1016  test -z "$as_dir" && as_dir=.
1017  echo "PATH: $as_dir"
1018done
1019
1020} >&5
1021
1022cat >&5 <<_ACEOF
1023
1024
1025## ----------- ##
1026## Core tests. ##
1027## ----------- ##
1028
1029_ACEOF
1030
1031
1032# Keep a trace of the command line.
1033# Strip out --no-create and --no-recursion so they do not pile up.
1034# Strip out --silent because we don't want to record it for future runs.
1035# Also quote any args containing shell meta-characters.
1036# Make two passes to allow for proper duplicate-argument suppression.
1037ac_configure_args=
1038ac_configure_args0=
1039ac_configure_args1=
1040ac_sep=
1041ac_must_keep_next=false
1042for ac_pass in 1 2
1043do
1044  for ac_arg
1045  do
1046    case $ac_arg in
1047    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1048    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1049    | -silent | --silent | --silen | --sile | --sil)
1050      continue ;;
1051    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1052      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1053    esac
1054    case $ac_pass in
1055    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1056    2)
1057      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1058      if test $ac_must_keep_next = true; then
1059	ac_must_keep_next=false # Got value, back to normal.
1060      else
1061	case $ac_arg in
1062	  *=* | --config-cache | -C | -disable-* | --disable-* \
1063	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1064	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1065	  | -with-* | --with-* | -without-* | --without-* | --x)
1066	    case "$ac_configure_args0 " in
1067	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1068	    esac
1069	    ;;
1070	  -* ) ac_must_keep_next=true ;;
1071	esac
1072      fi
1073      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1074      # Get rid of the leading space.
1075      ac_sep=" "
1076      ;;
1077    esac
1078  done
1079done
1080$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1081$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1082
1083# When interrupted or exit'd, cleanup temporary files, and complete
1084# config.log.  We remove comments because anyway the quotes in there
1085# would cause problems or look ugly.
1086# WARNING: Be sure not to use single quotes in there, as some shells,
1087# such as our DU 5.0 friend, will then `close' the trap.
1088trap 'exit_status=$?
1089  # Save into config.log some information that might help in debugging.
1090  {
1091    echo
1092
1093    cat <<\_ASBOX
1094## ---------------- ##
1095## Cache variables. ##
1096## ---------------- ##
1097_ASBOX
1098    echo
1099    # The following way of writing the cache mishandles newlines in values,
1100{
1101  (set) 2>&1 |
1102    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1103    *ac_space=\ *)
1104      sed -n \
1105	"s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1106	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1107      ;;
1108    *)
1109      sed -n \
1110	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1111      ;;
1112    esac;
1113}
1114    echo
1115
1116    cat <<\_ASBOX
1117## ----------------- ##
1118## Output variables. ##
1119## ----------------- ##
1120_ASBOX
1121    echo
1122    for ac_var in $ac_subst_vars
1123    do
1124      eval ac_val=$`echo $ac_var`
1125      echo "$ac_var='"'"'$ac_val'"'"'"
1126    done | sort
1127    echo
1128
1129    if test -n "$ac_subst_files"; then
1130      cat <<\_ASBOX
1131## ------------- ##
1132## Output files. ##
1133## ------------- ##
1134_ASBOX
1135      echo
1136      for ac_var in $ac_subst_files
1137      do
1138	eval ac_val=$`echo $ac_var`
1139	echo "$ac_var='"'"'$ac_val'"'"'"
1140      done | sort
1141      echo
1142    fi
1143
1144    if test -s confdefs.h; then
1145      cat <<\_ASBOX
1146## ----------- ##
1147## confdefs.h. ##
1148## ----------- ##
1149_ASBOX
1150      echo
1151      sed "/^$/d" confdefs.h | sort
1152      echo
1153    fi
1154    test "$ac_signal" != 0 &&
1155      echo "$as_me: caught signal $ac_signal"
1156    echo "$as_me: exit $exit_status"
1157  } >&5
1158  rm -f core *.core &&
1159  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1160    exit $exit_status
1161     ' 0
1162for ac_signal in 1 2 13 15; do
1163  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1164done
1165ac_signal=0
1166
1167# confdefs.h avoids OS command line length limits that DEFS can exceed.
1168rm -rf conftest* confdefs.h
1169# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1170echo >confdefs.h
1171
1172# Predefined preprocessor variables.
1173
1174cat >>confdefs.h <<_ACEOF
1175#define PACKAGE_NAME "$PACKAGE_NAME"
1176_ACEOF
1177
1178
1179cat >>confdefs.h <<_ACEOF
1180#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1181_ACEOF
1182
1183
1184cat >>confdefs.h <<_ACEOF
1185#define PACKAGE_VERSION "$PACKAGE_VERSION"
1186_ACEOF
1187
1188
1189cat >>confdefs.h <<_ACEOF
1190#define PACKAGE_STRING "$PACKAGE_STRING"
1191_ACEOF
1192
1193
1194cat >>confdefs.h <<_ACEOF
1195#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1196_ACEOF
1197
1198
1199# Let the site file select an alternate cache file if it wants to.
1200# Prefer explicitly selected file to automatically selected ones.
1201if test -z "$CONFIG_SITE"; then
1202  if test "x$prefix" != xNONE; then
1203    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1204  else
1205    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1206  fi
1207fi
1208for ac_site_file in $CONFIG_SITE; do
1209  if test -r "$ac_site_file"; then
1210    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1211echo "$as_me: loading site script $ac_site_file" >&6;}
1212    sed 's/^/| /' "$ac_site_file" >&5
1213    . "$ac_site_file"
1214  fi
1215done
1216
1217if test -r "$cache_file"; then
1218  # Some versions of bash will fail to source /dev/null (special
1219  # files actually), so we avoid doing that.
1220  if test -f "$cache_file"; then
1221    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1222echo "$as_me: loading cache $cache_file" >&6;}
1223    case $cache_file in
1224      [\\/]* | ?:[\\/]* ) . $cache_file;;
1225      *)                      . ./$cache_file;;
1226    esac
1227  fi
1228else
1229  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1230echo "$as_me: creating cache $cache_file" >&6;}
1231  >$cache_file
1232fi
1233
1234# Check that the precious variables saved in the cache have kept the same
1235# value.
1236ac_cache_corrupted=false
1237for ac_var in `(set) 2>&1 |
1238	       sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1239  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1240  eval ac_new_set=\$ac_env_${ac_var}_set
1241  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1242  eval ac_new_val="\$ac_env_${ac_var}_value"
1243  case $ac_old_set,$ac_new_set in
1244    set,)
1245      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1246echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1247      ac_cache_corrupted=: ;;
1248    ,set)
1249      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1250echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1251      ac_cache_corrupted=: ;;
1252    ,);;
1253    *)
1254      if test "x$ac_old_val" != "x$ac_new_val"; then
1255        # differences in whitespace do not lead to failure.
1256        ac_old_val_w=`echo x $ac_old_val`
1257        ac_new_val_w=`echo x $ac_new_val`
1258        if test "$ac_old_val_w" != "$ac_new_val_w"; then
1259          { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1260echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1261          ac_cache_corrupted=:
1262        else
1263          { echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1264echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1265          eval $ac_var=\$ac_old_val
1266        fi
1267        { echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
1268echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
1269        { echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
1270echo "$as_me:   current value: \`$ac_new_val'" >&2;}
1271      fi;;
1272  esac
1273  # Pass precious variables to config.status.
1274  if test "$ac_new_set" = set; then
1275    case $ac_new_val in
1276    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1277      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1278    *) ac_arg=$ac_var=$ac_new_val ;;
1279    esac
1280    case " $ac_configure_args " in
1281      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1282      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1283    esac
1284  fi
1285done
1286if $ac_cache_corrupted; then
1287  { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1288echo "$as_me: error: in \`$ac_pwd':" >&2;}
1289  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1290echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1291  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1292echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1293   { (exit 1); exit 1; }; }
1294fi
1295
1296ac_ext=c
1297ac_cpp='$CPP $CPPFLAGS'
1298ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1299ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1300ac_compiler_gnu=$ac_cv_c_compiler_gnu
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325# This works around the fact that libtool configuration may change LD
1326# for this particular configuration, but some shells, instead of
1327# keeping the changes in LD private, export them just because LD is
1328# exported.  We don't use libtool yet, but some day we might, so...
1329ORIGINAL_LD_FOR_MULTILIBS=$LD
1330
1331
1332# Check whether --with-target-subdir or --without-target-subdir was given.
1333if test "${with_target_subdir+set}" = set; then
1334  withval="$with_target_subdir"
1335
1336fi;
1337
1338# Check whether --with-build-subdir or --without-build-subdir was given.
1339if test "${with_build_subdir+set}" = set; then
1340  withval="$with_build_subdir"
1341
1342fi;
1343
1344# Check whether --with-cross-host or --without-cross-host was given.
1345if test "${with_cross_host+set}" = set; then
1346  withval="$with_cross_host"
1347
1348fi;
1349
1350# Check whether --with-newlib or --without-newlib was given.
1351if test "${with_newlib+set}" = set; then
1352  withval="$with_newlib"
1353
1354fi;
1355
1356if test "${srcdir}" = "."; then
1357  if test -n "${with_build_subdir}"; then
1358    libiberty_topdir="${srcdir}/../.."
1359    with_target_subdir=
1360  elif test -z "${with_target_subdir}"; then
1361    libiberty_topdir="${srcdir}/.."
1362  else
1363    if test "${with_target_subdir}" != "."; then
1364      libiberty_topdir="${srcdir}/${with_multisrctop}../.."
1365    else
1366      libiberty_topdir="${srcdir}/${with_multisrctop}.."
1367    fi
1368  fi
1369else
1370  libiberty_topdir="${srcdir}/.."
1371fi
1372
1373ac_aux_dir=
1374for ac_dir in $libiberty_topdir $srcdir/$libiberty_topdir; do
1375  if test -f $ac_dir/install-sh; then
1376    ac_aux_dir=$ac_dir
1377    ac_install_sh="$ac_aux_dir/install-sh -c"
1378    break
1379  elif test -f $ac_dir/install.sh; then
1380    ac_aux_dir=$ac_dir
1381    ac_install_sh="$ac_aux_dir/install.sh -c"
1382    break
1383  elif test -f $ac_dir/shtool; then
1384    ac_aux_dir=$ac_dir
1385    ac_install_sh="$ac_aux_dir/shtool install -c"
1386    break
1387  fi
1388done
1389if test -z "$ac_aux_dir"; then
1390  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $libiberty_topdir $srcdir/$libiberty_topdir" >&5
1391echo "$as_me: error: cannot find install-sh or install.sh in $libiberty_topdir $srcdir/$libiberty_topdir" >&2;}
1392   { (exit 1); exit 1; }; }
1393fi
1394ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1395ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1396ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1397
1398
1399
1400echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1401echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1402    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1403if test "${enable_maintainer_mode+set}" = set; then
1404  enableval="$enable_maintainer_mode"
1405  maintainer_mode=$enableval
1406else
1407  maintainer_mode=no
1408fi;
1409
1410echo "$as_me:$LINENO: result: $maintainer_mode" >&5
1411echo "${ECHO_T}$maintainer_mode" >&6
1412
1413if test "$maintainer_mode" = "yes"; then
1414  MAINT=''
1415  NOTMAINT='#'
1416else
1417  MAINT='#'
1418  NOTMAINT=''
1419fi
1420
1421# Do we have a single-tree copy of texinfo?  Even if we do, we can't
1422# rely on it - libiberty is built before texinfo.
1423# Extract the first word of "makeinfo", so it can be a program name with args.
1424set dummy makeinfo; ac_word=$2
1425echo "$as_me:$LINENO: checking for $ac_word" >&5
1426echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1427if test "${ac_cv_prog_MAKEINFO+set}" = set; then
1428  echo $ECHO_N "(cached) $ECHO_C" >&6
1429else
1430  if test -n "$MAKEINFO"; then
1431  ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
1432else
1433as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1434for as_dir in $PATH
1435do
1436  IFS=$as_save_IFS
1437  test -z "$as_dir" && as_dir=.
1438  for ac_exec_ext in '' $ac_executable_extensions; do
1439  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1440    ac_cv_prog_MAKEINFO="makeinfo"
1441    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1442    break 2
1443  fi
1444done
1445done
1446
1447fi
1448fi
1449MAKEINFO=$ac_cv_prog_MAKEINFO
1450if test -n "$MAKEINFO"; then
1451  echo "$as_me:$LINENO: result: $MAKEINFO" >&5
1452echo "${ECHO_T}$MAKEINFO" >&6
1453else
1454  echo "$as_me:$LINENO: result: no" >&5
1455echo "${ECHO_T}no" >&6
1456fi
1457
1458if test "x$MAKEINFO" = "x"; then
1459    MAKEINFO="@echo makeinfo missing; true"
1460    BUILD_INFO=
1461else
1462    BUILD_INFO=info
1463    case "$MAKEINFO" in
1464      */missing\ makeinfo*)
1465	BUILD_INFO=
1466	{ echo "$as_me:$LINENO: WARNING:
1467*** Makeinfo is missing. Info documentation will not be built." >&5
1468echo "$as_me: WARNING:
1469*** Makeinfo is missing. Info documentation will not be built." >&2;}
1470        ;;
1471      *)
1472	case x"`$MAKEINFO --version | grep 'GNU texinfo'`" in
1473	  x*\ [1-3].* )
1474	    MAKEINFO="@echo $MAKEINFO is too old, 4.0 or newer required; true"
1475	    BUILD_INFO=
1476	    { echo "$as_me:$LINENO: WARNING:
1477*** Makeinfo is too old. Info documentation will not be built." >&5
1478echo "$as_me: WARNING:
1479*** Makeinfo is too old. Info documentation will not be built." >&2;}
1480	  ;;
1481	esac
1482	;;
1483    esac
1484fi
1485
1486
1487
1488# Extract the first word of "perl", so it can be a program name with args.
1489set dummy perl; ac_word=$2
1490echo "$as_me:$LINENO: checking for $ac_word" >&5
1491echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1492if test "${ac_cv_prog_PERL+set}" = set; then
1493  echo $ECHO_N "(cached) $ECHO_C" >&6
1494else
1495  if test -n "$PERL"; then
1496  ac_cv_prog_PERL="$PERL" # Let the user override the test.
1497else
1498as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1499for as_dir in $PATH
1500do
1501  IFS=$as_save_IFS
1502  test -z "$as_dir" && as_dir=.
1503  for ac_exec_ext in '' $ac_executable_extensions; do
1504  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1505    ac_cv_prog_PERL="perl"
1506    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1507    break 2
1508  fi
1509done
1510done
1511
1512fi
1513fi
1514PERL=$ac_cv_prog_PERL
1515if test -n "$PERL"; then
1516  echo "$as_me:$LINENO: result: $PERL" >&5
1517echo "${ECHO_T}$PERL" >&6
1518else
1519  echo "$as_me:$LINENO: result: no" >&5
1520echo "${ECHO_T}no" >&6
1521fi
1522
1523if test x"$PERL" = x""; then
1524  HAVE_PERL='#'
1525else
1526  HAVE_PERL=''
1527fi
1528
1529
1530# Make sure we can run config.sub.
1531$ac_config_sub sun4 >/dev/null 2>&1 ||
1532  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1533echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1534   { (exit 1); exit 1; }; }
1535
1536echo "$as_me:$LINENO: checking build system type" >&5
1537echo $ECHO_N "checking build system type... $ECHO_C" >&6
1538if test "${ac_cv_build+set}" = set; then
1539  echo $ECHO_N "(cached) $ECHO_C" >&6
1540else
1541  ac_cv_build_alias=$build_alias
1542test -z "$ac_cv_build_alias" &&
1543  ac_cv_build_alias=`$ac_config_guess`
1544test -z "$ac_cv_build_alias" &&
1545  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1546echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1547   { (exit 1); exit 1; }; }
1548ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1549  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1550echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1551   { (exit 1); exit 1; }; }
1552
1553fi
1554echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1555echo "${ECHO_T}$ac_cv_build" >&6
1556build=$ac_cv_build
1557build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1558build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1559build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1560
1561
1562echo "$as_me:$LINENO: checking host system type" >&5
1563echo $ECHO_N "checking host system type... $ECHO_C" >&6
1564if test "${ac_cv_host+set}" = set; then
1565  echo $ECHO_N "(cached) $ECHO_C" >&6
1566else
1567  ac_cv_host_alias=$host_alias
1568test -z "$ac_cv_host_alias" &&
1569  ac_cv_host_alias=$ac_cv_build_alias
1570ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1571  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1572echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1573   { (exit 1); exit 1; }; }
1574
1575fi
1576echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1577echo "${ECHO_T}$ac_cv_host" >&6
1578host=$ac_cv_host
1579host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1580host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1581host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1582
1583
1584
1585
1586if test -n "$ac_tool_prefix"; then
1587  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1588set dummy ${ac_tool_prefix}ar; ac_word=$2
1589echo "$as_me:$LINENO: checking for $ac_word" >&5
1590echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1591if test "${ac_cv_prog_AR+set}" = set; then
1592  echo $ECHO_N "(cached) $ECHO_C" >&6
1593else
1594  if test -n "$AR"; then
1595  ac_cv_prog_AR="$AR" # Let the user override the test.
1596else
1597as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1598for as_dir in $PATH
1599do
1600  IFS=$as_save_IFS
1601  test -z "$as_dir" && as_dir=.
1602  for ac_exec_ext in '' $ac_executable_extensions; do
1603  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1604    ac_cv_prog_AR="${ac_tool_prefix}ar"
1605    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1606    break 2
1607  fi
1608done
1609done
1610
1611fi
1612fi
1613AR=$ac_cv_prog_AR
1614if test -n "$AR"; then
1615  echo "$as_me:$LINENO: result: $AR" >&5
1616echo "${ECHO_T}$AR" >&6
1617else
1618  echo "$as_me:$LINENO: result: no" >&5
1619echo "${ECHO_T}no" >&6
1620fi
1621
1622fi
1623if test -z "$ac_cv_prog_AR"; then
1624  ac_ct_AR=$AR
1625  # Extract the first word of "ar", so it can be a program name with args.
1626set dummy ar; ac_word=$2
1627echo "$as_me:$LINENO: checking for $ac_word" >&5
1628echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1629if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
1630  echo $ECHO_N "(cached) $ECHO_C" >&6
1631else
1632  if test -n "$ac_ct_AR"; then
1633  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
1634else
1635as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1636for as_dir in $PATH
1637do
1638  IFS=$as_save_IFS
1639  test -z "$as_dir" && as_dir=.
1640  for ac_exec_ext in '' $ac_executable_extensions; do
1641  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1642    ac_cv_prog_ac_ct_AR="ar"
1643    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1644    break 2
1645  fi
1646done
1647done
1648
1649fi
1650fi
1651ac_ct_AR=$ac_cv_prog_ac_ct_AR
1652if test -n "$ac_ct_AR"; then
1653  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
1654echo "${ECHO_T}$ac_ct_AR" >&6
1655else
1656  echo "$as_me:$LINENO: result: no" >&5
1657echo "${ECHO_T}no" >&6
1658fi
1659
1660  AR=$ac_ct_AR
1661else
1662  AR="$ac_cv_prog_AR"
1663fi
1664
1665if test -n "$ac_tool_prefix"; then
1666  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1667set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1668echo "$as_me:$LINENO: checking for $ac_word" >&5
1669echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1670if test "${ac_cv_prog_RANLIB+set}" = set; then
1671  echo $ECHO_N "(cached) $ECHO_C" >&6
1672else
1673  if test -n "$RANLIB"; then
1674  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1675else
1676as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1677for as_dir in $PATH
1678do
1679  IFS=$as_save_IFS
1680  test -z "$as_dir" && as_dir=.
1681  for ac_exec_ext in '' $ac_executable_extensions; do
1682  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1683    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1684    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1685    break 2
1686  fi
1687done
1688done
1689
1690fi
1691fi
1692RANLIB=$ac_cv_prog_RANLIB
1693if test -n "$RANLIB"; then
1694  echo "$as_me:$LINENO: result: $RANLIB" >&5
1695echo "${ECHO_T}$RANLIB" >&6
1696else
1697  echo "$as_me:$LINENO: result: no" >&5
1698echo "${ECHO_T}no" >&6
1699fi
1700
1701fi
1702if test -z "$ac_cv_prog_RANLIB"; then
1703  ac_ct_RANLIB=$RANLIB
1704  # Extract the first word of "ranlib", so it can be a program name with args.
1705set dummy ranlib; ac_word=$2
1706echo "$as_me:$LINENO: checking for $ac_word" >&5
1707echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1708if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
1709  echo $ECHO_N "(cached) $ECHO_C" >&6
1710else
1711  if test -n "$ac_ct_RANLIB"; then
1712  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
1713else
1714as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1715for as_dir in $PATH
1716do
1717  IFS=$as_save_IFS
1718  test -z "$as_dir" && as_dir=.
1719  for ac_exec_ext in '' $ac_executable_extensions; do
1720  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1721    ac_cv_prog_ac_ct_RANLIB="ranlib"
1722    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1723    break 2
1724  fi
1725done
1726done
1727
1728  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
1729fi
1730fi
1731ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
1732if test -n "$ac_ct_RANLIB"; then
1733  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
1734echo "${ECHO_T}$ac_ct_RANLIB" >&6
1735else
1736  echo "$as_me:$LINENO: result: no" >&5
1737echo "${ECHO_T}no" >&6
1738fi
1739
1740  RANLIB=$ac_ct_RANLIB
1741else
1742  RANLIB="$ac_cv_prog_RANLIB"
1743fi
1744
1745
1746# Add --enable-multilib to configure.
1747# Default to --enable-multilib
1748# Check whether --enable-multilib or --disable-multilib was given.
1749if test "${enable_multilib+set}" = set; then
1750  enableval="$enable_multilib"
1751  case "$enableval" in
1752  yes) multilib=yes ;;
1753  no)  multilib=no ;;
1754  *)   { { echo "$as_me:$LINENO: error: bad value $enableval for multilib option" >&5
1755echo "$as_me: error: bad value $enableval for multilib option" >&2;}
1756   { (exit 1); exit 1; }; } ;;
1757 esac
1758else
1759  multilib=yes
1760fi;
1761
1762# Even if the default multilib is not a cross compilation,
1763# it may be that some of the other multilibs are.
1764if test $cross_compiling = no && test $multilib = yes \
1765   && test "x${with_multisubdir}" != x ; then
1766   cross_compiling=maybe
1767fi
1768
1769
1770ac_ext=c
1771ac_cpp='$CPP $CPPFLAGS'
1772ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1773ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1774ac_compiler_gnu=$ac_cv_c_compiler_gnu
1775if test -n "$ac_tool_prefix"; then
1776  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1777set dummy ${ac_tool_prefix}gcc; ac_word=$2
1778echo "$as_me:$LINENO: checking for $ac_word" >&5
1779echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1780if test "${ac_cv_prog_CC+set}" = set; then
1781  echo $ECHO_N "(cached) $ECHO_C" >&6
1782else
1783  if test -n "$CC"; then
1784  ac_cv_prog_CC="$CC" # Let the user override the test.
1785else
1786as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1787for as_dir in $PATH
1788do
1789  IFS=$as_save_IFS
1790  test -z "$as_dir" && as_dir=.
1791  for ac_exec_ext in '' $ac_executable_extensions; do
1792  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1793    ac_cv_prog_CC="${ac_tool_prefix}gcc"
1794    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1795    break 2
1796  fi
1797done
1798done
1799
1800fi
1801fi
1802CC=$ac_cv_prog_CC
1803if test -n "$CC"; then
1804  echo "$as_me:$LINENO: result: $CC" >&5
1805echo "${ECHO_T}$CC" >&6
1806else
1807  echo "$as_me:$LINENO: result: no" >&5
1808echo "${ECHO_T}no" >&6
1809fi
1810
1811fi
1812if test -z "$ac_cv_prog_CC"; then
1813  ac_ct_CC=$CC
1814  # Extract the first word of "gcc", so it can be a program name with args.
1815set dummy gcc; ac_word=$2
1816echo "$as_me:$LINENO: checking for $ac_word" >&5
1817echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1818if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1819  echo $ECHO_N "(cached) $ECHO_C" >&6
1820else
1821  if test -n "$ac_ct_CC"; then
1822  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1823else
1824as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1825for as_dir in $PATH
1826do
1827  IFS=$as_save_IFS
1828  test -z "$as_dir" && as_dir=.
1829  for ac_exec_ext in '' $ac_executable_extensions; do
1830  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1831    ac_cv_prog_ac_ct_CC="gcc"
1832    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1833    break 2
1834  fi
1835done
1836done
1837
1838fi
1839fi
1840ac_ct_CC=$ac_cv_prog_ac_ct_CC
1841if test -n "$ac_ct_CC"; then
1842  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1843echo "${ECHO_T}$ac_ct_CC" >&6
1844else
1845  echo "$as_me:$LINENO: result: no" >&5
1846echo "${ECHO_T}no" >&6
1847fi
1848
1849  CC=$ac_ct_CC
1850else
1851  CC="$ac_cv_prog_CC"
1852fi
1853
1854if test -z "$CC"; then
1855  if test -n "$ac_tool_prefix"; then
1856  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1857set dummy ${ac_tool_prefix}cc; ac_word=$2
1858echo "$as_me:$LINENO: checking for $ac_word" >&5
1859echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1860if test "${ac_cv_prog_CC+set}" = set; then
1861  echo $ECHO_N "(cached) $ECHO_C" >&6
1862else
1863  if test -n "$CC"; then
1864  ac_cv_prog_CC="$CC" # Let the user override the test.
1865else
1866as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1867for as_dir in $PATH
1868do
1869  IFS=$as_save_IFS
1870  test -z "$as_dir" && as_dir=.
1871  for ac_exec_ext in '' $ac_executable_extensions; do
1872  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1873    ac_cv_prog_CC="${ac_tool_prefix}cc"
1874    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1875    break 2
1876  fi
1877done
1878done
1879
1880fi
1881fi
1882CC=$ac_cv_prog_CC
1883if test -n "$CC"; then
1884  echo "$as_me:$LINENO: result: $CC" >&5
1885echo "${ECHO_T}$CC" >&6
1886else
1887  echo "$as_me:$LINENO: result: no" >&5
1888echo "${ECHO_T}no" >&6
1889fi
1890
1891fi
1892if test -z "$ac_cv_prog_CC"; then
1893  ac_ct_CC=$CC
1894  # Extract the first word of "cc", so it can be a program name with args.
1895set dummy cc; ac_word=$2
1896echo "$as_me:$LINENO: checking for $ac_word" >&5
1897echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1898if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1899  echo $ECHO_N "(cached) $ECHO_C" >&6
1900else
1901  if test -n "$ac_ct_CC"; then
1902  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1903else
1904as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1905for as_dir in $PATH
1906do
1907  IFS=$as_save_IFS
1908  test -z "$as_dir" && as_dir=.
1909  for ac_exec_ext in '' $ac_executable_extensions; do
1910  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1911    ac_cv_prog_ac_ct_CC="cc"
1912    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1913    break 2
1914  fi
1915done
1916done
1917
1918fi
1919fi
1920ac_ct_CC=$ac_cv_prog_ac_ct_CC
1921if test -n "$ac_ct_CC"; then
1922  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1923echo "${ECHO_T}$ac_ct_CC" >&6
1924else
1925  echo "$as_me:$LINENO: result: no" >&5
1926echo "${ECHO_T}no" >&6
1927fi
1928
1929  CC=$ac_ct_CC
1930else
1931  CC="$ac_cv_prog_CC"
1932fi
1933
1934fi
1935if test -z "$CC"; then
1936  # Extract the first word of "cc", so it can be a program name with args.
1937set dummy cc; ac_word=$2
1938echo "$as_me:$LINENO: checking for $ac_word" >&5
1939echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1940if test "${ac_cv_prog_CC+set}" = set; then
1941  echo $ECHO_N "(cached) $ECHO_C" >&6
1942else
1943  if test -n "$CC"; then
1944  ac_cv_prog_CC="$CC" # Let the user override the test.
1945else
1946  ac_prog_rejected=no
1947as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1948for as_dir in $PATH
1949do
1950  IFS=$as_save_IFS
1951  test -z "$as_dir" && as_dir=.
1952  for ac_exec_ext in '' $ac_executable_extensions; do
1953  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1954    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1955       ac_prog_rejected=yes
1956       continue
1957     fi
1958    ac_cv_prog_CC="cc"
1959    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1960    break 2
1961  fi
1962done
1963done
1964
1965if test $ac_prog_rejected = yes; then
1966  # We found a bogon in the path, so make sure we never use it.
1967  set dummy $ac_cv_prog_CC
1968  shift
1969  if test $# != 0; then
1970    # We chose a different compiler from the bogus one.
1971    # However, it has the same basename, so the bogon will be chosen
1972    # first if we set CC to just the basename; use the full file name.
1973    shift
1974    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1975  fi
1976fi
1977fi
1978fi
1979CC=$ac_cv_prog_CC
1980if test -n "$CC"; then
1981  echo "$as_me:$LINENO: result: $CC" >&5
1982echo "${ECHO_T}$CC" >&6
1983else
1984  echo "$as_me:$LINENO: result: no" >&5
1985echo "${ECHO_T}no" >&6
1986fi
1987
1988fi
1989if test -z "$CC"; then
1990  if test -n "$ac_tool_prefix"; then
1991  for ac_prog in cl
1992  do
1993    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1994set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1995echo "$as_me:$LINENO: checking for $ac_word" >&5
1996echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1997if test "${ac_cv_prog_CC+set}" = set; then
1998  echo $ECHO_N "(cached) $ECHO_C" >&6
1999else
2000  if test -n "$CC"; then
2001  ac_cv_prog_CC="$CC" # Let the user override the test.
2002else
2003as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2004for as_dir in $PATH
2005do
2006  IFS=$as_save_IFS
2007  test -z "$as_dir" && as_dir=.
2008  for ac_exec_ext in '' $ac_executable_extensions; do
2009  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2010    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2011    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2012    break 2
2013  fi
2014done
2015done
2016
2017fi
2018fi
2019CC=$ac_cv_prog_CC
2020if test -n "$CC"; then
2021  echo "$as_me:$LINENO: result: $CC" >&5
2022echo "${ECHO_T}$CC" >&6
2023else
2024  echo "$as_me:$LINENO: result: no" >&5
2025echo "${ECHO_T}no" >&6
2026fi
2027
2028    test -n "$CC" && break
2029  done
2030fi
2031if test -z "$CC"; then
2032  ac_ct_CC=$CC
2033  for ac_prog in cl
2034do
2035  # Extract the first word of "$ac_prog", so it can be a program name with args.
2036set dummy $ac_prog; ac_word=$2
2037echo "$as_me:$LINENO: checking for $ac_word" >&5
2038echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2039if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2040  echo $ECHO_N "(cached) $ECHO_C" >&6
2041else
2042  if test -n "$ac_ct_CC"; then
2043  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2044else
2045as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2046for as_dir in $PATH
2047do
2048  IFS=$as_save_IFS
2049  test -z "$as_dir" && as_dir=.
2050  for ac_exec_ext in '' $ac_executable_extensions; do
2051  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2052    ac_cv_prog_ac_ct_CC="$ac_prog"
2053    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2054    break 2
2055  fi
2056done
2057done
2058
2059fi
2060fi
2061ac_ct_CC=$ac_cv_prog_ac_ct_CC
2062if test -n "$ac_ct_CC"; then
2063  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2064echo "${ECHO_T}$ac_ct_CC" >&6
2065else
2066  echo "$as_me:$LINENO: result: no" >&5
2067echo "${ECHO_T}no" >&6
2068fi
2069
2070  test -n "$ac_ct_CC" && break
2071done
2072
2073  CC=$ac_ct_CC
2074fi
2075
2076fi
2077
2078
2079test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2080echo "$as_me: error: in \`$ac_pwd':" >&2;}
2081{ { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2082See \`config.log' for more details." >&5
2083echo "$as_me: error: no acceptable C compiler found in \$PATH
2084See \`config.log' for more details." >&2;}
2085   { (exit 1); exit 1; }; }; }
2086
2087# Provide some information about the compiler.
2088echo "$as_me:$LINENO:" \
2089     "checking for C compiler version" >&5
2090ac_compiler=`set X $ac_compile; echo $2`
2091{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2092  (eval $ac_compiler --version </dev/null >&5) 2>&5
2093  ac_status=$?
2094  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2095  (exit $ac_status); }
2096{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2097  (eval $ac_compiler -v </dev/null >&5) 2>&5
2098  ac_status=$?
2099  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2100  (exit $ac_status); }
2101{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2102  (eval $ac_compiler -V </dev/null >&5) 2>&5
2103  ac_status=$?
2104  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2105  (exit $ac_status); }
2106
2107cat >conftest.$ac_ext <<_ACEOF
2108/* confdefs.h.  */
2109_ACEOF
2110cat confdefs.h >>conftest.$ac_ext
2111cat >>conftest.$ac_ext <<_ACEOF
2112/* end confdefs.h.  */
2113
2114int
2115main ()
2116{
2117
2118  ;
2119  return 0;
2120}
2121_ACEOF
2122# FIXME: Cleanup?
2123if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2124  (eval $ac_link) 2>&5
2125  ac_status=$?
2126  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2127  (exit $ac_status); }; then
2128  gcc_no_link=no
2129else
2130  gcc_no_link=yes
2131fi
2132
2133if test x$gcc_no_link = xyes; then
2134  # Setting cross_compile will disable run tests; it will
2135  # also disable AC_CHECK_FILE but that's generally
2136  # correct if we can't link.
2137  cross_compiling=yes
2138  EXEEXT=
2139else
2140  cat >conftest.$ac_ext <<_ACEOF
2141/* confdefs.h.  */
2142_ACEOF
2143cat confdefs.h >>conftest.$ac_ext
2144cat >>conftest.$ac_ext <<_ACEOF
2145/* end confdefs.h.  */
2146
2147int
2148main ()
2149{
2150
2151  ;
2152  return 0;
2153}
2154_ACEOF
2155ac_clean_files_save=$ac_clean_files
2156ac_clean_files="$ac_clean_files a.out a.exe b.out"
2157# Try to create an executable without -o first, disregard a.out.
2158# It will help us diagnose broken compilers, and finding out an intuition
2159# of exeext.
2160echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2161echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2162ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2163if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2164  (eval $ac_link_default) 2>&5
2165  ac_status=$?
2166  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2167  (exit $ac_status); }; then
2168  # Find the output, starting from the most likely.  This scheme is
2169# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2170# resort.
2171
2172# Be careful to initialize this variable, since it used to be cached.
2173# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2174ac_cv_exeext=
2175# b.out is created by i960 compilers.
2176for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2177do
2178  test -f "$ac_file" || continue
2179  case $ac_file in
2180    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2181	;;
2182    conftest.$ac_ext )
2183	# This is the source file.
2184	;;
2185    [ab].out )
2186	# We found the default executable, but exeext='' is most
2187	# certainly right.
2188	break;;
2189    *.* )
2190	ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2191	# FIXME: I believe we export ac_cv_exeext for Libtool,
2192	# but it would be cool to find out if it's true.  Does anybody
2193	# maintain Libtool? --akim.
2194	export ac_cv_exeext
2195	break;;
2196    * )
2197	break;;
2198  esac
2199done
2200else
2201  echo "$as_me: failed program was:" >&5
2202sed 's/^/| /' conftest.$ac_ext >&5
2203
2204{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2205echo "$as_me: error: in \`$ac_pwd':" >&2;}
2206{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2207See \`config.log' for more details." >&5
2208echo "$as_me: error: C compiler cannot create executables
2209See \`config.log' for more details." >&2;}
2210   { (exit 77); exit 77; }; }; }
2211fi
2212
2213ac_exeext=$ac_cv_exeext
2214echo "$as_me:$LINENO: result: $ac_file" >&5
2215echo "${ECHO_T}$ac_file" >&6
2216
2217# Check the compiler produces executables we can run.  If not, either
2218# the compiler is broken, or we cross compile.
2219echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2220echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2221# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2222# If not cross compiling, check that we can run a simple program.
2223if test "$cross_compiling" != yes; then
2224  if { ac_try='./$ac_file'
2225  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2226  (eval $ac_try) 2>&5
2227  ac_status=$?
2228  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2229  (exit $ac_status); }; }; then
2230    cross_compiling=no
2231  else
2232    if test "$cross_compiling" = maybe; then
2233	cross_compiling=yes
2234    else
2235	{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2236echo "$as_me: error: in \`$ac_pwd':" >&2;}
2237{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2238If you meant to cross compile, use \`--host'.
2239See \`config.log' for more details." >&5
2240echo "$as_me: error: cannot run C compiled programs.
2241If you meant to cross compile, use \`--host'.
2242See \`config.log' for more details." >&2;}
2243   { (exit 1); exit 1; }; }; }
2244    fi
2245  fi
2246fi
2247echo "$as_me:$LINENO: result: yes" >&5
2248echo "${ECHO_T}yes" >&6
2249
2250rm -f a.out a.exe conftest$ac_cv_exeext b.out
2251ac_clean_files=$ac_clean_files_save
2252# Check the compiler produces executables we can run.  If not, either
2253# the compiler is broken, or we cross compile.
2254echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2255echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2256echo "$as_me:$LINENO: result: $cross_compiling" >&5
2257echo "${ECHO_T}$cross_compiling" >&6
2258
2259echo "$as_me:$LINENO: checking for suffix of executables" >&5
2260echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2261if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2262  (eval $ac_link) 2>&5
2263  ac_status=$?
2264  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2265  (exit $ac_status); }; then
2266  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2267# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2268# work properly (i.e., refer to `conftest.exe'), while it won't with
2269# `rm'.
2270for ac_file in conftest.exe conftest conftest.*; do
2271  test -f "$ac_file" || continue
2272  case $ac_file in
2273    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2274    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2275	  export ac_cv_exeext
2276	  break;;
2277    * ) break;;
2278  esac
2279done
2280else
2281  { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2282echo "$as_me: error: in \`$ac_pwd':" >&2;}
2283{ { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2284See \`config.log' for more details." >&5
2285echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2286See \`config.log' for more details." >&2;}
2287   { (exit 1); exit 1; }; }; }
2288fi
2289
2290rm -f conftest$ac_cv_exeext
2291echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2292echo "${ECHO_T}$ac_cv_exeext" >&6
2293
2294rm -f conftest.$ac_ext
2295EXEEXT=$ac_cv_exeext
2296ac_exeext=$EXEEXT
2297fi
2298echo "$as_me:$LINENO: checking for suffix of object files" >&5
2299echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2300if test "${ac_cv_objext+set}" = set; then
2301  echo $ECHO_N "(cached) $ECHO_C" >&6
2302else
2303  cat >conftest.$ac_ext <<_ACEOF
2304/* confdefs.h.  */
2305_ACEOF
2306cat confdefs.h >>conftest.$ac_ext
2307cat >>conftest.$ac_ext <<_ACEOF
2308/* end confdefs.h.  */
2309
2310int
2311main ()
2312{
2313
2314  ;
2315  return 0;
2316}
2317_ACEOF
2318rm -f conftest.o conftest.obj
2319if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2320  (eval $ac_compile) 2>&5
2321  ac_status=$?
2322  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2323  (exit $ac_status); }; then
2324  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2325  case $ac_file in
2326    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2327    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2328       break;;
2329  esac
2330done
2331else
2332  echo "$as_me: failed program was:" >&5
2333sed 's/^/| /' conftest.$ac_ext >&5
2334
2335{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2336echo "$as_me: error: in \`$ac_pwd':" >&2;}
2337{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2338See \`config.log' for more details." >&5
2339echo "$as_me: error: cannot compute suffix of object files: cannot compile
2340See \`config.log' for more details." >&2;}
2341   { (exit 1); exit 1; }; }; }
2342fi
2343
2344rm -f conftest.$ac_cv_objext conftest.$ac_ext
2345fi
2346echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2347echo "${ECHO_T}$ac_cv_objext" >&6
2348OBJEXT=$ac_cv_objext
2349ac_objext=$OBJEXT
2350echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2351echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2352if test "${ac_cv_c_compiler_gnu+set}" = set; then
2353  echo $ECHO_N "(cached) $ECHO_C" >&6
2354else
2355  cat >conftest.$ac_ext <<_ACEOF
2356/* confdefs.h.  */
2357_ACEOF
2358cat confdefs.h >>conftest.$ac_ext
2359cat >>conftest.$ac_ext <<_ACEOF
2360/* end confdefs.h.  */
2361
2362int
2363main ()
2364{
2365#ifndef __GNUC__
2366       choke me
2367#endif
2368
2369  ;
2370  return 0;
2371}
2372_ACEOF
2373rm -f conftest.$ac_objext
2374if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2375  (eval $ac_compile) 2>conftest.er1
2376  ac_status=$?
2377  grep -v '^ *+' conftest.er1 >conftest.err
2378  rm -f conftest.er1
2379  cat conftest.err >&5
2380  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2381  (exit $ac_status); } &&
2382	 { ac_try='test -z "$ac_c_werror_flag"
2383			 || test ! -s conftest.err'
2384  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2385  (eval $ac_try) 2>&5
2386  ac_status=$?
2387  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2388  (exit $ac_status); }; } &&
2389	 { ac_try='test -s conftest.$ac_objext'
2390  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2391  (eval $ac_try) 2>&5
2392  ac_status=$?
2393  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2394  (exit $ac_status); }; }; then
2395  ac_compiler_gnu=yes
2396else
2397  echo "$as_me: failed program was:" >&5
2398sed 's/^/| /' conftest.$ac_ext >&5
2399
2400ac_compiler_gnu=no
2401fi
2402rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2403ac_cv_c_compiler_gnu=$ac_compiler_gnu
2404
2405fi
2406echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2407echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2408GCC=`test $ac_compiler_gnu = yes && echo yes`
2409ac_test_CFLAGS=${CFLAGS+set}
2410ac_save_CFLAGS=$CFLAGS
2411CFLAGS="-g"
2412echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2413echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2414if test "${ac_cv_prog_cc_g+set}" = set; then
2415  echo $ECHO_N "(cached) $ECHO_C" >&6
2416else
2417  cat >conftest.$ac_ext <<_ACEOF
2418/* confdefs.h.  */
2419_ACEOF
2420cat confdefs.h >>conftest.$ac_ext
2421cat >>conftest.$ac_ext <<_ACEOF
2422/* end confdefs.h.  */
2423
2424int
2425main ()
2426{
2427
2428  ;
2429  return 0;
2430}
2431_ACEOF
2432rm -f conftest.$ac_objext
2433if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2434  (eval $ac_compile) 2>conftest.er1
2435  ac_status=$?
2436  grep -v '^ *+' conftest.er1 >conftest.err
2437  rm -f conftest.er1
2438  cat conftest.err >&5
2439  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2440  (exit $ac_status); } &&
2441	 { ac_try='test -z "$ac_c_werror_flag"
2442			 || test ! -s conftest.err'
2443  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2444  (eval $ac_try) 2>&5
2445  ac_status=$?
2446  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2447  (exit $ac_status); }; } &&
2448	 { ac_try='test -s conftest.$ac_objext'
2449  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2450  (eval $ac_try) 2>&5
2451  ac_status=$?
2452  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2453  (exit $ac_status); }; }; then
2454  ac_cv_prog_cc_g=yes
2455else
2456  echo "$as_me: failed program was:" >&5
2457sed 's/^/| /' conftest.$ac_ext >&5
2458
2459ac_cv_prog_cc_g=no
2460fi
2461rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2462fi
2463echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2464echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2465if test "$ac_test_CFLAGS" = set; then
2466  CFLAGS=$ac_save_CFLAGS
2467elif test $ac_cv_prog_cc_g = yes; then
2468  if test "$GCC" = yes; then
2469    CFLAGS="-g -O2"
2470  else
2471    CFLAGS="-g"
2472  fi
2473else
2474  if test "$GCC" = yes; then
2475    CFLAGS="-O2"
2476  else
2477    CFLAGS=
2478  fi
2479fi
2480echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2481echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2482if test "${ac_cv_prog_cc_stdc+set}" = set; then
2483  echo $ECHO_N "(cached) $ECHO_C" >&6
2484else
2485  ac_cv_prog_cc_stdc=no
2486ac_save_CC=$CC
2487cat >conftest.$ac_ext <<_ACEOF
2488/* confdefs.h.  */
2489_ACEOF
2490cat confdefs.h >>conftest.$ac_ext
2491cat >>conftest.$ac_ext <<_ACEOF
2492/* end confdefs.h.  */
2493#include <stdarg.h>
2494#include <stdio.h>
2495#include <sys/types.h>
2496#include <sys/stat.h>
2497/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2498struct buf { int x; };
2499FILE * (*rcsopen) (struct buf *, struct stat *, int);
2500static char *e (p, i)
2501     char **p;
2502     int i;
2503{
2504  return p[i];
2505}
2506static char *f (char * (*g) (char **, int), char **p, ...)
2507{
2508  char *s;
2509  va_list v;
2510  va_start (v,p);
2511  s = g (p, va_arg (v,int));
2512  va_end (v);
2513  return s;
2514}
2515
2516/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2517   function prototypes and stuff, but not '\xHH' hex character constants.
2518   These don't provoke an error unfortunately, instead are silently treated
2519   as 'x'.  The following induces an error, until -std1 is added to get
2520   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2521   array size at least.  It's necessary to write '\x00'==0 to get something
2522   that's true only with -std1.  */
2523int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2524
2525int test (int i, double x);
2526struct s1 {int (*f) (int a);};
2527struct s2 {int (*f) (double a);};
2528int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2529int argc;
2530char **argv;
2531int
2532main ()
2533{
2534return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2535  ;
2536  return 0;
2537}
2538_ACEOF
2539# Don't try gcc -ansi; that turns off useful extensions and
2540# breaks some systems' header files.
2541# AIX			-qlanglvl=ansi
2542# Ultrix and OSF/1	-std1
2543# HP-UX 10.20 and later	-Ae
2544# HP-UX older versions	-Aa -D_HPUX_SOURCE
2545# SVR4			-Xc -D__EXTENSIONS__
2546for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2547do
2548  CC="$ac_save_CC $ac_arg"
2549  rm -f conftest.$ac_objext
2550if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2551  (eval $ac_compile) 2>conftest.er1
2552  ac_status=$?
2553  grep -v '^ *+' conftest.er1 >conftest.err
2554  rm -f conftest.er1
2555  cat conftest.err >&5
2556  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2557  (exit $ac_status); } &&
2558	 { ac_try='test -z "$ac_c_werror_flag"
2559			 || test ! -s conftest.err'
2560  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2561  (eval $ac_try) 2>&5
2562  ac_status=$?
2563  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2564  (exit $ac_status); }; } &&
2565	 { ac_try='test -s conftest.$ac_objext'
2566  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2567  (eval $ac_try) 2>&5
2568  ac_status=$?
2569  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2570  (exit $ac_status); }; }; then
2571  ac_cv_prog_cc_stdc=$ac_arg
2572break
2573else
2574  echo "$as_me: failed program was:" >&5
2575sed 's/^/| /' conftest.$ac_ext >&5
2576
2577fi
2578rm -f conftest.err conftest.$ac_objext
2579done
2580rm -f conftest.$ac_ext conftest.$ac_objext
2581CC=$ac_save_CC
2582
2583fi
2584
2585case "x$ac_cv_prog_cc_stdc" in
2586  x|xno)
2587    echo "$as_me:$LINENO: result: none needed" >&5
2588echo "${ECHO_T}none needed" >&6 ;;
2589  *)
2590    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2591echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2592    CC="$CC $ac_cv_prog_cc_stdc" ;;
2593esac
2594
2595# Some people use a C++ compiler to compile C.  Since we use `exit',
2596# in C++ we need to declare it.  In case someone uses the same compiler
2597# for both compiling C and C++ we need to have the C++ compiler decide
2598# the declaration of exit, since it's the most demanding environment.
2599cat >conftest.$ac_ext <<_ACEOF
2600#ifndef __cplusplus
2601  choke me
2602#endif
2603_ACEOF
2604rm -f conftest.$ac_objext
2605if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2606  (eval $ac_compile) 2>conftest.er1
2607  ac_status=$?
2608  grep -v '^ *+' conftest.er1 >conftest.err
2609  rm -f conftest.er1
2610  cat conftest.err >&5
2611  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2612  (exit $ac_status); } &&
2613	 { ac_try='test -z "$ac_c_werror_flag"
2614			 || test ! -s conftest.err'
2615  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2616  (eval $ac_try) 2>&5
2617  ac_status=$?
2618  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2619  (exit $ac_status); }; } &&
2620	 { ac_try='test -s conftest.$ac_objext'
2621  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2622  (eval $ac_try) 2>&5
2623  ac_status=$?
2624  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2625  (exit $ac_status); }; }; then
2626  for ac_declaration in \
2627   '' \
2628   'extern "C" void std::exit (int) throw (); using std::exit;' \
2629   'extern "C" void std::exit (int); using std::exit;' \
2630   'extern "C" void exit (int) throw ();' \
2631   'extern "C" void exit (int);' \
2632   'void exit (int);'
2633do
2634  cat >conftest.$ac_ext <<_ACEOF
2635/* confdefs.h.  */
2636_ACEOF
2637cat confdefs.h >>conftest.$ac_ext
2638cat >>conftest.$ac_ext <<_ACEOF
2639/* end confdefs.h.  */
2640$ac_declaration
2641#include <stdlib.h>
2642int
2643main ()
2644{
2645exit (42);
2646  ;
2647  return 0;
2648}
2649_ACEOF
2650rm -f conftest.$ac_objext
2651if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2652  (eval $ac_compile) 2>conftest.er1
2653  ac_status=$?
2654  grep -v '^ *+' conftest.er1 >conftest.err
2655  rm -f conftest.er1
2656  cat conftest.err >&5
2657  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2658  (exit $ac_status); } &&
2659	 { ac_try='test -z "$ac_c_werror_flag"
2660			 || test ! -s conftest.err'
2661  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2662  (eval $ac_try) 2>&5
2663  ac_status=$?
2664  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2665  (exit $ac_status); }; } &&
2666	 { ac_try='test -s conftest.$ac_objext'
2667  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2668  (eval $ac_try) 2>&5
2669  ac_status=$?
2670  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2671  (exit $ac_status); }; }; then
2672  :
2673else
2674  echo "$as_me: failed program was:" >&5
2675sed 's/^/| /' conftest.$ac_ext >&5
2676
2677continue
2678fi
2679rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2680  cat >conftest.$ac_ext <<_ACEOF
2681/* confdefs.h.  */
2682_ACEOF
2683cat confdefs.h >>conftest.$ac_ext
2684cat >>conftest.$ac_ext <<_ACEOF
2685/* end confdefs.h.  */
2686$ac_declaration
2687int
2688main ()
2689{
2690exit (42);
2691  ;
2692  return 0;
2693}
2694_ACEOF
2695rm -f conftest.$ac_objext
2696if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2697  (eval $ac_compile) 2>conftest.er1
2698  ac_status=$?
2699  grep -v '^ *+' conftest.er1 >conftest.err
2700  rm -f conftest.er1
2701  cat conftest.err >&5
2702  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2703  (exit $ac_status); } &&
2704	 { ac_try='test -z "$ac_c_werror_flag"
2705			 || test ! -s conftest.err'
2706  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2707  (eval $ac_try) 2>&5
2708  ac_status=$?
2709  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2710  (exit $ac_status); }; } &&
2711	 { ac_try='test -s conftest.$ac_objext'
2712  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2713  (eval $ac_try) 2>&5
2714  ac_status=$?
2715  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2716  (exit $ac_status); }; }; then
2717  break
2718else
2719  echo "$as_me: failed program was:" >&5
2720sed 's/^/| /' conftest.$ac_ext >&5
2721
2722fi
2723rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2724done
2725rm -f conftest*
2726if test -n "$ac_declaration"; then
2727  echo '#ifdef __cplusplus' >>confdefs.h
2728  echo $ac_declaration      >>confdefs.h
2729  echo '#endif'             >>confdefs.h
2730fi
2731
2732else
2733  echo "$as_me: failed program was:" >&5
2734sed 's/^/| /' conftest.$ac_ext >&5
2735
2736fi
2737rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2738ac_ext=c
2739ac_cpp='$CPP $CPPFLAGS'
2740ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2741ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2742ac_compiler_gnu=$ac_cv_c_compiler_gnu
2743
2744ac_ext=c
2745ac_cpp='$CPP $CPPFLAGS'
2746ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2747ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2748ac_compiler_gnu=$ac_cv_c_compiler_gnu
2749echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2750echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2751# On Suns, sometimes $CPP names a directory.
2752if test -n "$CPP" && test -d "$CPP"; then
2753  CPP=
2754fi
2755if test -z "$CPP"; then
2756  if test "${ac_cv_prog_CPP+set}" = set; then
2757  echo $ECHO_N "(cached) $ECHO_C" >&6
2758else
2759      # Double quotes because CPP needs to be expanded
2760    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2761    do
2762      ac_preproc_ok=false
2763for ac_c_preproc_warn_flag in '' yes
2764do
2765  # Use a header file that comes with gcc, so configuring glibc
2766  # with a fresh cross-compiler works.
2767  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2768  # <limits.h> exists even on freestanding compilers.
2769  # On the NeXT, cc -E runs the code through the compiler's parser,
2770  # not just through cpp. "Syntax error" is here to catch this case.
2771  cat >conftest.$ac_ext <<_ACEOF
2772/* confdefs.h.  */
2773_ACEOF
2774cat confdefs.h >>conftest.$ac_ext
2775cat >>conftest.$ac_ext <<_ACEOF
2776/* end confdefs.h.  */
2777#ifdef __STDC__
2778# include <limits.h>
2779#else
2780# include <assert.h>
2781#endif
2782		     Syntax error
2783_ACEOF
2784if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2785  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2786  ac_status=$?
2787  grep -v '^ *+' conftest.er1 >conftest.err
2788  rm -f conftest.er1
2789  cat conftest.err >&5
2790  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2791  (exit $ac_status); } >/dev/null; then
2792  if test -s conftest.err; then
2793    ac_cpp_err=$ac_c_preproc_warn_flag
2794    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2795  else
2796    ac_cpp_err=
2797  fi
2798else
2799  ac_cpp_err=yes
2800fi
2801if test -z "$ac_cpp_err"; then
2802  :
2803else
2804  echo "$as_me: failed program was:" >&5
2805sed 's/^/| /' conftest.$ac_ext >&5
2806
2807  # Broken: fails on valid input.
2808continue
2809fi
2810rm -f conftest.err conftest.$ac_ext
2811
2812  # OK, works on sane cases.  Now check whether non-existent headers
2813  # can be detected and how.
2814  cat >conftest.$ac_ext <<_ACEOF
2815/* confdefs.h.  */
2816_ACEOF
2817cat confdefs.h >>conftest.$ac_ext
2818cat >>conftest.$ac_ext <<_ACEOF
2819/* end confdefs.h.  */
2820#include <ac_nonexistent.h>
2821_ACEOF
2822if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2823  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2824  ac_status=$?
2825  grep -v '^ *+' conftest.er1 >conftest.err
2826  rm -f conftest.er1
2827  cat conftest.err >&5
2828  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2829  (exit $ac_status); } >/dev/null; then
2830  if test -s conftest.err; then
2831    ac_cpp_err=$ac_c_preproc_warn_flag
2832    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2833  else
2834    ac_cpp_err=
2835  fi
2836else
2837  ac_cpp_err=yes
2838fi
2839if test -z "$ac_cpp_err"; then
2840  # Broken: success on invalid input.
2841continue
2842else
2843  echo "$as_me: failed program was:" >&5
2844sed 's/^/| /' conftest.$ac_ext >&5
2845
2846  # Passes both tests.
2847ac_preproc_ok=:
2848break
2849fi
2850rm -f conftest.err conftest.$ac_ext
2851
2852done
2853# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2854rm -f conftest.err conftest.$ac_ext
2855if $ac_preproc_ok; then
2856  break
2857fi
2858
2859    done
2860    ac_cv_prog_CPP=$CPP
2861
2862fi
2863  CPP=$ac_cv_prog_CPP
2864else
2865  ac_cv_prog_CPP=$CPP
2866fi
2867echo "$as_me:$LINENO: result: $CPP" >&5
2868echo "${ECHO_T}$CPP" >&6
2869ac_preproc_ok=false
2870for ac_c_preproc_warn_flag in '' yes
2871do
2872  # Use a header file that comes with gcc, so configuring glibc
2873  # with a fresh cross-compiler works.
2874  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2875  # <limits.h> exists even on freestanding compilers.
2876  # On the NeXT, cc -E runs the code through the compiler's parser,
2877  # not just through cpp. "Syntax error" is here to catch this case.
2878  cat >conftest.$ac_ext <<_ACEOF
2879/* confdefs.h.  */
2880_ACEOF
2881cat confdefs.h >>conftest.$ac_ext
2882cat >>conftest.$ac_ext <<_ACEOF
2883/* end confdefs.h.  */
2884#ifdef __STDC__
2885# include <limits.h>
2886#else
2887# include <assert.h>
2888#endif
2889		     Syntax error
2890_ACEOF
2891if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2892  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2893  ac_status=$?
2894  grep -v '^ *+' conftest.er1 >conftest.err
2895  rm -f conftest.er1
2896  cat conftest.err >&5
2897  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2898  (exit $ac_status); } >/dev/null; then
2899  if test -s conftest.err; then
2900    ac_cpp_err=$ac_c_preproc_warn_flag
2901    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2902  else
2903    ac_cpp_err=
2904  fi
2905else
2906  ac_cpp_err=yes
2907fi
2908if test -z "$ac_cpp_err"; then
2909  :
2910else
2911  echo "$as_me: failed program was:" >&5
2912sed 's/^/| /' conftest.$ac_ext >&5
2913
2914  # Broken: fails on valid input.
2915continue
2916fi
2917rm -f conftest.err conftest.$ac_ext
2918
2919  # OK, works on sane cases.  Now check whether non-existent headers
2920  # can be detected and how.
2921  cat >conftest.$ac_ext <<_ACEOF
2922/* confdefs.h.  */
2923_ACEOF
2924cat confdefs.h >>conftest.$ac_ext
2925cat >>conftest.$ac_ext <<_ACEOF
2926/* end confdefs.h.  */
2927#include <ac_nonexistent.h>
2928_ACEOF
2929if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2930  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2931  ac_status=$?
2932  grep -v '^ *+' conftest.er1 >conftest.err
2933  rm -f conftest.er1
2934  cat conftest.err >&5
2935  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2936  (exit $ac_status); } >/dev/null; then
2937  if test -s conftest.err; then
2938    ac_cpp_err=$ac_c_preproc_warn_flag
2939    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2940  else
2941    ac_cpp_err=
2942  fi
2943else
2944  ac_cpp_err=yes
2945fi
2946if test -z "$ac_cpp_err"; then
2947  # Broken: success on invalid input.
2948continue
2949else
2950  echo "$as_me: failed program was:" >&5
2951sed 's/^/| /' conftest.$ac_ext >&5
2952
2953  # Passes both tests.
2954ac_preproc_ok=:
2955break
2956fi
2957rm -f conftest.err conftest.$ac_ext
2958
2959done
2960# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2961rm -f conftest.err conftest.$ac_ext
2962if $ac_preproc_ok; then
2963  :
2964else
2965  { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2966echo "$as_me: error: in \`$ac_pwd':" >&2;}
2967{ { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2968See \`config.log' for more details." >&5
2969echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2970See \`config.log' for more details." >&2;}
2971   { (exit 1); exit 1; }; }; }
2972fi
2973
2974ac_ext=c
2975ac_cpp='$CPP $CPPFLAGS'
2976ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2977ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2978ac_compiler_gnu=$ac_cv_c_compiler_gnu
2979
2980
2981ac_c_preproc_warn_flag=yes
2982
2983
2984ac_libiberty_warn_cflags=
2985save_CFLAGS="$CFLAGS"
2986for option in -W -Wall -Wwrite-strings -Wc++-compat \
2987			  -Wstrict-prototypes; do
2988  as_acx_Woption=`echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
2989
2990  echo "$as_me:$LINENO: checking whether $CC supports $option" >&5
2991echo $ECHO_N "checking whether $CC supports $option... $ECHO_C" >&6
2992if eval "test \"\${$as_acx_Woption+set}\" = set"; then
2993  echo $ECHO_N "(cached) $ECHO_C" >&6
2994else
2995  CFLAGS="$option"
2996    cat >conftest.$ac_ext <<_ACEOF
2997/* confdefs.h.  */
2998_ACEOF
2999cat confdefs.h >>conftest.$ac_ext
3000cat >>conftest.$ac_ext <<_ACEOF
3001/* end confdefs.h.  */
3002
3003int
3004main ()
3005{
3006
3007  ;
3008  return 0;
3009}
3010_ACEOF
3011rm -f conftest.$ac_objext
3012if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3013  (eval $ac_compile) 2>conftest.er1
3014  ac_status=$?
3015  grep -v '^ *+' conftest.er1 >conftest.err
3016  rm -f conftest.er1
3017  cat conftest.err >&5
3018  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3019  (exit $ac_status); } &&
3020	 { ac_try='test -z "$ac_c_werror_flag"
3021			 || test ! -s conftest.err'
3022  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3023  (eval $ac_try) 2>&5
3024  ac_status=$?
3025  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3026  (exit $ac_status); }; } &&
3027	 { ac_try='test -s conftest.$ac_objext'
3028  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3029  (eval $ac_try) 2>&5
3030  ac_status=$?
3031  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3032  (exit $ac_status); }; }; then
3033  eval "$as_acx_Woption=yes"
3034else
3035  echo "$as_me: failed program was:" >&5
3036sed 's/^/| /' conftest.$ac_ext >&5
3037
3038eval "$as_acx_Woption=no"
3039fi
3040rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3041
3042fi
3043echo "$as_me:$LINENO: result: `eval echo '${'$as_acx_Woption'}'`" >&5
3044echo "${ECHO_T}`eval echo '${'$as_acx_Woption'}'`" >&6
3045  if test `eval echo '${'$as_acx_Woption'}'` = yes; then
3046  ac_libiberty_warn_cflags="$ac_libiberty_warn_cflags${ac_libiberty_warn_cflags:+ }$option"
3047fi
3048
3049  done
3050CFLAGS="$save_CFLAGS"
3051
3052if test "$GCC" = yes; then
3053  echo "$as_me:$LINENO: checking whether $CC supports -pedantic " >&5
3054echo $ECHO_N "checking whether $CC supports -pedantic ... $ECHO_C" >&6
3055if test "${acx_cv_prog_cc_pedantic_+set}" = set; then
3056  echo $ECHO_N "(cached) $ECHO_C" >&6
3057else
3058  save_CFLAGS="$CFLAGS"
3059CFLAGS="-pedantic "
3060cat >conftest.$ac_ext <<_ACEOF
3061/* confdefs.h.  */
3062_ACEOF
3063cat confdefs.h >>conftest.$ac_ext
3064cat >>conftest.$ac_ext <<_ACEOF
3065/* end confdefs.h.  */
3066
3067int
3068main ()
3069{
3070
3071  ;
3072  return 0;
3073}
3074_ACEOF
3075rm -f conftest.$ac_objext
3076if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3077  (eval $ac_compile) 2>conftest.er1
3078  ac_status=$?
3079  grep -v '^ *+' conftest.er1 >conftest.err
3080  rm -f conftest.er1
3081  cat conftest.err >&5
3082  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3083  (exit $ac_status); } &&
3084	 { ac_try='test -z "$ac_c_werror_flag"
3085			 || test ! -s conftest.err'
3086  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3087  (eval $ac_try) 2>&5
3088  ac_status=$?
3089  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3090  (exit $ac_status); }; } &&
3091	 { ac_try='test -s conftest.$ac_objext'
3092  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3093  (eval $ac_try) 2>&5
3094  ac_status=$?
3095  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3096  (exit $ac_status); }; }; then
3097  acx_cv_prog_cc_pedantic_=yes
3098else
3099  echo "$as_me: failed program was:" >&5
3100sed 's/^/| /' conftest.$ac_ext >&5
3101
3102acx_cv_prog_cc_pedantic_=no
3103fi
3104rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3105CFLAGS="$save_CFLAGS"
3106fi
3107echo "$as_me:$LINENO: result: $acx_cv_prog_cc_pedantic_" >&5
3108echo "${ECHO_T}$acx_cv_prog_cc_pedantic_" >&6
3109if test $acx_cv_prog_cc_pedantic_ = yes; then
3110  ac_libiberty_warn_cflags="$ac_libiberty_warn_cflags${ac_libiberty_warn_cflags:+ }-pedantic "
3111fi
3112
3113
3114fi
3115
3116
3117
3118if test "x$CC" != xcc; then
3119  echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
3120echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
3121else
3122  echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
3123echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
3124fi
3125set dummy $CC; ac_cc=`echo $2 |
3126		      sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3127if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
3128  echo $ECHO_N "(cached) $ECHO_C" >&6
3129else
3130  cat >conftest.$ac_ext <<_ACEOF
3131/* confdefs.h.  */
3132_ACEOF
3133cat confdefs.h >>conftest.$ac_ext
3134cat >>conftest.$ac_ext <<_ACEOF
3135/* end confdefs.h.  */
3136
3137int
3138main ()
3139{
3140
3141  ;
3142  return 0;
3143}
3144_ACEOF
3145# Make sure it works both with $CC and with simple cc.
3146# We do the test twice because some compilers refuse to overwrite an
3147# existing .o file with -o, though they will create one.
3148ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
3149if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3150  (eval $ac_try) 2>&5
3151  ac_status=$?
3152  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3153  (exit $ac_status); } &&
3154   test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3155  (eval $ac_try) 2>&5
3156  ac_status=$?
3157  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3158  (exit $ac_status); };
3159then
3160  eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3161  if test "x$CC" != xcc; then
3162    # Test first that cc exists at all.
3163    if { ac_try='cc -c conftest.$ac_ext >&5'
3164  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3165  (eval $ac_try) 2>&5
3166  ac_status=$?
3167  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3168  (exit $ac_status); }; }; then
3169      ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
3170      if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3171  (eval $ac_try) 2>&5
3172  ac_status=$?
3173  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3174  (exit $ac_status); } &&
3175	 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3176  (eval $ac_try) 2>&5
3177  ac_status=$?
3178  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3179  (exit $ac_status); };
3180      then
3181	# cc works too.
3182	:
3183      else
3184	# cc exists but doesn't like -o.
3185	eval ac_cv_prog_cc_${ac_cc}_c_o=no
3186      fi
3187    fi
3188  fi
3189else
3190  eval ac_cv_prog_cc_${ac_cc}_c_o=no
3191fi
3192rm -f conftest*
3193
3194fi
3195if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
3196  echo "$as_me:$LINENO: result: yes" >&5
3197echo "${ECHO_T}yes" >&6
3198else
3199  echo "$as_me:$LINENO: result: no" >&5
3200echo "${ECHO_T}no" >&6
3201
3202cat >>confdefs.h <<\_ACEOF
3203#define NO_MINUS_C_MINUS_O 1
3204_ACEOF
3205
3206fi
3207
3208# autoconf is lame and doesn't give us any substitution variable for this.
3209if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
3210  NO_MINUS_C_MINUS_O=yes
3211else
3212  OUTPUT_OPTION='-o $@'
3213fi
3214
3215
3216
3217echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3218echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3219if test "${ac_cv_c_const+set}" = set; then
3220  echo $ECHO_N "(cached) $ECHO_C" >&6
3221else
3222  cat >conftest.$ac_ext <<_ACEOF
3223/* confdefs.h.  */
3224_ACEOF
3225cat confdefs.h >>conftest.$ac_ext
3226cat >>conftest.$ac_ext <<_ACEOF
3227/* end confdefs.h.  */
3228
3229int
3230main ()
3231{
3232/* FIXME: Include the comments suggested by Paul. */
3233#ifndef __cplusplus
3234  /* Ultrix mips cc rejects this.  */
3235  typedef int charset[2];
3236  const charset x;
3237  /* SunOS 4.1.1 cc rejects this.  */
3238  char const *const *ccp;
3239  char **p;
3240  /* NEC SVR4.0.2 mips cc rejects this.  */
3241  struct point {int x, y;};
3242  static struct point const zero = {0,0};
3243  /* AIX XL C 1.02.0.0 rejects this.
3244     It does not let you subtract one const X* pointer from another in
3245     an arm of an if-expression whose if-part is not a constant
3246     expression */
3247  const char *g = "string";
3248  ccp = &g + (g ? g-g : 0);
3249  /* HPUX 7.0 cc rejects these. */
3250  ++ccp;
3251  p = (char**) ccp;
3252  ccp = (char const *const *) p;
3253  { /* SCO 3.2v4 cc rejects this.  */
3254    char *t;
3255    char const *s = 0 ? (char *) 0 : (char const *) 0;
3256
3257    *t++ = 0;
3258  }
3259  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
3260    int x[] = {25, 17};
3261    const int *foo = &x[0];
3262    ++foo;
3263  }
3264  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3265    typedef const int *iptr;
3266    iptr p = 0;
3267    ++p;
3268  }
3269  { /* AIX XL C 1.02.0.0 rejects this saying
3270       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3271    struct s { int j; const int *ap[3]; };
3272    struct s *b; b->j = 5;
3273  }
3274  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3275    const int foo = 10;
3276  }
3277#endif
3278
3279  ;
3280  return 0;
3281}
3282_ACEOF
3283rm -f conftest.$ac_objext
3284if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3285  (eval $ac_compile) 2>conftest.er1
3286  ac_status=$?
3287  grep -v '^ *+' conftest.er1 >conftest.err
3288  rm -f conftest.er1
3289  cat conftest.err >&5
3290  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3291  (exit $ac_status); } &&
3292	 { ac_try='test -z "$ac_c_werror_flag"
3293			 || test ! -s conftest.err'
3294  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3295  (eval $ac_try) 2>&5
3296  ac_status=$?
3297  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3298  (exit $ac_status); }; } &&
3299	 { ac_try='test -s conftest.$ac_objext'
3300  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3301  (eval $ac_try) 2>&5
3302  ac_status=$?
3303  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3304  (exit $ac_status); }; }; then
3305  ac_cv_c_const=yes
3306else
3307  echo "$as_me: failed program was:" >&5
3308sed 's/^/| /' conftest.$ac_ext >&5
3309
3310ac_cv_c_const=no
3311fi
3312rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3313fi
3314echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3315echo "${ECHO_T}$ac_cv_c_const" >&6
3316if test $ac_cv_c_const = no; then
3317
3318cat >>confdefs.h <<\_ACEOF
3319#define const
3320_ACEOF
3321
3322fi
3323
3324echo "$as_me:$LINENO: checking for inline" >&5
3325echo $ECHO_N "checking for inline... $ECHO_C" >&6
3326if test "${ac_cv_c_inline+set}" = set; then
3327  echo $ECHO_N "(cached) $ECHO_C" >&6
3328else
3329  ac_cv_c_inline=no
3330for ac_kw in inline __inline__ __inline; do
3331  cat >conftest.$ac_ext <<_ACEOF
3332/* confdefs.h.  */
3333_ACEOF
3334cat confdefs.h >>conftest.$ac_ext
3335cat >>conftest.$ac_ext <<_ACEOF
3336/* end confdefs.h.  */
3337#ifndef __cplusplus
3338typedef int foo_t;
3339static $ac_kw foo_t static_foo () {return 0; }
3340$ac_kw foo_t foo () {return 0; }
3341#endif
3342
3343_ACEOF
3344rm -f conftest.$ac_objext
3345if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3346  (eval $ac_compile) 2>conftest.er1
3347  ac_status=$?
3348  grep -v '^ *+' conftest.er1 >conftest.err
3349  rm -f conftest.er1
3350  cat conftest.err >&5
3351  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3352  (exit $ac_status); } &&
3353	 { ac_try='test -z "$ac_c_werror_flag"
3354			 || test ! -s conftest.err'
3355  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3356  (eval $ac_try) 2>&5
3357  ac_status=$?
3358  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3359  (exit $ac_status); }; } &&
3360	 { ac_try='test -s conftest.$ac_objext'
3361  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3362  (eval $ac_try) 2>&5
3363  ac_status=$?
3364  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3365  (exit $ac_status); }; }; then
3366  ac_cv_c_inline=$ac_kw; break
3367else
3368  echo "$as_me: failed program was:" >&5
3369sed 's/^/| /' conftest.$ac_ext >&5
3370
3371fi
3372rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3373done
3374
3375fi
3376echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3377echo "${ECHO_T}$ac_cv_c_inline" >&6
3378
3379
3380case $ac_cv_c_inline in
3381  inline | yes) ;;
3382  *)
3383    case $ac_cv_c_inline in
3384      no) ac_val=;;
3385      *) ac_val=$ac_cv_c_inline;;
3386    esac
3387    cat >>confdefs.h <<_ACEOF
3388#ifndef __cplusplus
3389#define inline $ac_val
3390#endif
3391_ACEOF
3392    ;;
3393esac
3394
3395echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
3396echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
3397if test "${ac_cv_c_bigendian+set}" = set; then
3398  echo $ECHO_N "(cached) $ECHO_C" >&6
3399else
3400  # See if sys/param.h defines the BYTE_ORDER macro.
3401cat >conftest.$ac_ext <<_ACEOF
3402/* confdefs.h.  */
3403_ACEOF
3404cat confdefs.h >>conftest.$ac_ext
3405cat >>conftest.$ac_ext <<_ACEOF
3406/* end confdefs.h.  */
3407#include <sys/types.h>
3408#include <sys/param.h>
3409
3410int
3411main ()
3412{
3413#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3414 bogus endian macros
3415#endif
3416
3417  ;
3418  return 0;
3419}
3420_ACEOF
3421rm -f conftest.$ac_objext
3422if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3423  (eval $ac_compile) 2>conftest.er1
3424  ac_status=$?
3425  grep -v '^ *+' conftest.er1 >conftest.err
3426  rm -f conftest.er1
3427  cat conftest.err >&5
3428  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3429  (exit $ac_status); } &&
3430	 { ac_try='test -z "$ac_c_werror_flag"
3431			 || test ! -s conftest.err'
3432  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3433  (eval $ac_try) 2>&5
3434  ac_status=$?
3435  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3436  (exit $ac_status); }; } &&
3437	 { ac_try='test -s conftest.$ac_objext'
3438  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3439  (eval $ac_try) 2>&5
3440  ac_status=$?
3441  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3442  (exit $ac_status); }; }; then
3443  # It does; now see whether it defined to BIG_ENDIAN or not.
3444cat >conftest.$ac_ext <<_ACEOF
3445/* confdefs.h.  */
3446_ACEOF
3447cat confdefs.h >>conftest.$ac_ext
3448cat >>conftest.$ac_ext <<_ACEOF
3449/* end confdefs.h.  */
3450#include <sys/types.h>
3451#include <sys/param.h>
3452
3453int
3454main ()
3455{
3456#if BYTE_ORDER != BIG_ENDIAN
3457 not big endian
3458#endif
3459
3460  ;
3461  return 0;
3462}
3463_ACEOF
3464rm -f conftest.$ac_objext
3465if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3466  (eval $ac_compile) 2>conftest.er1
3467  ac_status=$?
3468  grep -v '^ *+' conftest.er1 >conftest.err
3469  rm -f conftest.er1
3470  cat conftest.err >&5
3471  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3472  (exit $ac_status); } &&
3473	 { ac_try='test -z "$ac_c_werror_flag"
3474			 || test ! -s conftest.err'
3475  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3476  (eval $ac_try) 2>&5
3477  ac_status=$?
3478  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3479  (exit $ac_status); }; } &&
3480	 { ac_try='test -s conftest.$ac_objext'
3481  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3482  (eval $ac_try) 2>&5
3483  ac_status=$?
3484  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3485  (exit $ac_status); }; }; then
3486  ac_cv_c_bigendian=yes
3487else
3488  echo "$as_me: failed program was:" >&5
3489sed 's/^/| /' conftest.$ac_ext >&5
3490
3491ac_cv_c_bigendian=no
3492fi
3493rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3494else
3495  echo "$as_me: failed program was:" >&5
3496sed 's/^/| /' conftest.$ac_ext >&5
3497
3498# It does not; compile a test program.
3499if test "$cross_compiling" = yes; then
3500  # try to guess the endianness by grepping values into an object file
3501  ac_cv_c_bigendian=unknown
3502  cat >conftest.$ac_ext <<_ACEOF
3503/* confdefs.h.  */
3504_ACEOF
3505cat confdefs.h >>conftest.$ac_ext
3506cat >>conftest.$ac_ext <<_ACEOF
3507/* end confdefs.h.  */
3508short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
3509short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
3510void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
3511short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
3512short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
3513void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
3514int
3515main ()
3516{
3517 _ascii (); _ebcdic ();
3518  ;
3519  return 0;
3520}
3521_ACEOF
3522rm -f conftest.$ac_objext
3523if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3524  (eval $ac_compile) 2>conftest.er1
3525  ac_status=$?
3526  grep -v '^ *+' conftest.er1 >conftest.err
3527  rm -f conftest.er1
3528  cat conftest.err >&5
3529  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3530  (exit $ac_status); } &&
3531	 { ac_try='test -z "$ac_c_werror_flag"
3532			 || test ! -s conftest.err'
3533  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3534  (eval $ac_try) 2>&5
3535  ac_status=$?
3536  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3537  (exit $ac_status); }; } &&
3538	 { ac_try='test -s conftest.$ac_objext'
3539  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3540  (eval $ac_try) 2>&5
3541  ac_status=$?
3542  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3543  (exit $ac_status); }; }; then
3544  if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
3545  ac_cv_c_bigendian=yes
3546fi
3547if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
3548  if test "$ac_cv_c_bigendian" = unknown; then
3549    ac_cv_c_bigendian=no
3550  else
3551    # finding both strings is unlikely to happen, but who knows?
3552    ac_cv_c_bigendian=unknown
3553  fi
3554fi
3555else
3556  echo "$as_me: failed program was:" >&5
3557sed 's/^/| /' conftest.$ac_ext >&5
3558
3559fi
3560rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3561else
3562  cat >conftest.$ac_ext <<_ACEOF
3563/* confdefs.h.  */
3564_ACEOF
3565cat confdefs.h >>conftest.$ac_ext
3566cat >>conftest.$ac_ext <<_ACEOF
3567/* end confdefs.h.  */
3568int
3569main ()
3570{
3571  /* Are we little or big endian?  From Harbison&Steele.  */
3572  union
3573  {
3574    long l;
3575    char c[sizeof (long)];
3576  } u;
3577  u.l = 1;
3578  exit (u.c[sizeof (long) - 1] == 1);
3579}
3580_ACEOF
3581rm -f conftest$ac_exeext
3582if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3583  (eval $ac_link) 2>&5
3584  ac_status=$?
3585  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3586  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3587  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3588  (eval $ac_try) 2>&5
3589  ac_status=$?
3590  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3591  (exit $ac_status); }; }; then
3592  ac_cv_c_bigendian=no
3593else
3594  echo "$as_me: program exited with status $ac_status" >&5
3595echo "$as_me: failed program was:" >&5
3596sed 's/^/| /' conftest.$ac_ext >&5
3597
3598( exit $ac_status )
3599ac_cv_c_bigendian=yes
3600fi
3601rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3602fi
3603fi
3604rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3605fi
3606echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
3607echo "${ECHO_T}$ac_cv_c_bigendian" >&6
3608case $ac_cv_c_bigendian in
3609  yes)
3610
3611cat >>confdefs.h <<\_ACEOF
3612#define WORDS_BIGENDIAN 1
3613_ACEOF
3614 ;;
3615  no)
3616     ;;
3617  *)
3618    { { echo "$as_me:$LINENO: error: unknown endianness
3619presetting ac_cv_c_bigendian=no (or yes) will help" >&5
3620echo "$as_me: error: unknown endianness
3621presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
3622   { (exit 1); exit 1; }; } ;;
3623esac
3624
3625
3626
3627
3628          ac_config_headers="$ac_config_headers config.h:config.in"
3629
3630
3631
3632# Find a good install program.  We prefer a C program (faster),
3633# so one script is as good as another.  But avoid the broken or
3634# incompatible versions:
3635# SysV /etc/install, /usr/sbin/install
3636# SunOS /usr/etc/install
3637# IRIX /sbin/install
3638# AIX /bin/install
3639# AmigaOS /C/install, which installs bootblocks on floppy discs
3640# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3641# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3642# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3643# OS/2's system install, which has a completely different semantic
3644# ./install, which can be erroneously created by make from ./install.sh.
3645echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3646echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3647if test -z "$INSTALL"; then
3648if test "${ac_cv_path_install+set}" = set; then
3649  echo $ECHO_N "(cached) $ECHO_C" >&6
3650else
3651  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3652for as_dir in $PATH
3653do
3654  IFS=$as_save_IFS
3655  test -z "$as_dir" && as_dir=.
3656  # Account for people who put trailing slashes in PATH elements.
3657case $as_dir/ in
3658  ./ | .// | /cC/* | \
3659  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3660  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3661  /usr/ucb/* ) ;;
3662  *)
3663    # OSF1 and SCO ODT 3.0 have their own names for install.
3664    # Don't use installbsd from OSF since it installs stuff as root
3665    # by default.
3666    for ac_prog in ginstall scoinst install; do
3667      for ac_exec_ext in '' $ac_executable_extensions; do
3668	if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3669	  if test $ac_prog = install &&
3670	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3671	    # AIX install.  It has an incompatible calling convention.
3672	    :
3673	  elif test $ac_prog = install &&
3674	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3675	    # program-specific install script used by HP pwplus--don't use.
3676	    :
3677	  else
3678	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3679	    break 3
3680	  fi
3681	fi
3682      done
3683    done
3684    ;;
3685esac
3686done
3687
3688
3689fi
3690  if test "${ac_cv_path_install+set}" = set; then
3691    INSTALL=$ac_cv_path_install
3692  else
3693    # As a last resort, use the slow shell script.  We don't cache a
3694    # path for INSTALL within a source directory, because that will
3695    # break other packages using the cache if that directory is
3696    # removed, or if the path is relative.
3697    INSTALL=$ac_install_sh
3698  fi
3699fi
3700echo "$as_me:$LINENO: result: $INSTALL" >&5
3701echo "${ECHO_T}$INSTALL" >&6
3702
3703# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3704# It thinks the first close brace ends the variable substitution.
3705test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3706
3707test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3708
3709test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3710
3711
3712# Don't build the shared library for build.
3713if [ -n "${with_build_subdir}" ]; then
3714  enable_shared=no
3715fi
3716
3717frag=
3718case "${host}" in
3719  rs6000-ibm-aix3.1 | rs6000-ibm-aix)
3720                        frag=mh-aix ;;
3721  *-*-cxux7*)		frag=mh-cxux7 ;;
3722  *-*-freebsd2.1.*)	frag=mh-fbsd21 ;;
3723  *-*-freebsd2.2.[012])	frag=mh-fbsd21 ;;
3724  i370-*-opened*)       frag=mh-openedition ;;
3725  i[34567]86-*-windows*)	frag=mh-windows ;;
3726esac
3727
3728if [ -n "${frag}" ]; then
3729  frag=${libiberty_topdir}/libiberty/config/$frag
3730fi
3731
3732# If they didn't specify --enable-shared, don't generate shared libs.
3733case "${enable_shared}" in
3734  yes) shared=yes ;;
3735  no) shared=no ;;
3736  "") shared=no ;;
3737  *) shared=yes ;;
3738esac
3739if [ "${shared}" = "yes" ]; then
3740  case "${host}" in
3741    *-*-cygwin*)	;;
3742    alpha*-*-linux*)	PICFLAG=-fPIC ;;
3743    arm*-*-*)		PICFLAG=-fPIC ;;
3744    hppa*-*-*)		PICFLAG=-fPIC ;;
3745    i370-*-*)		PICFLAG=-fPIC ;;
3746    ia64-*-*)		PICFLAG=-fpic ;;
3747    i[34567]86-*-* | x86_64-*-*)
3748			PICFLAG=-fpic ;;
3749    m68k-*-*)		PICFLAG=-fpic ;;
3750    mips*-*-linux)	PICFLAG=-fPIC ;;
3751    powerpc*-*-aix*)	;;
3752    powerpc*-*-*)	PICFLAG=-fPIC ;;
3753    sparc*-*-*)		case "${CFLAGS}" in
3754			  *-fpic* ) PICFLAG=-fpic ;;
3755			  * ) PICFLAG=-fPIC ;;
3756			esac ;;
3757    s390*-*-*)		PICFLAG=-fpic ;;
3758  esac
3759fi
3760
3761
3762echo "# Warning: this fragment is automatically generated" > temp-frag
3763
3764if [ -n "${frag}" ] && [ -f "${frag}" ]; then
3765  echo "Appending ${frag} to xhost-mkfrag"
3766  echo "# Following fragment copied from ${frag}" >> temp-frag
3767  cat ${frag} >> temp-frag
3768fi
3769
3770# record if we want to build shared libs.
3771if [ "${shared}" = "yes" ]; then
3772  echo enable_shared = yes >> temp-frag
3773else
3774  echo enable_shared = no >> temp-frag
3775fi
3776
3777frag=xhost-mkfrag
3778${CONFIG_SHELL-/bin/sh} ${libiberty_topdir}/move-if-change temp-frag xhost-mkfrag
3779
3780host_makefile_frag=${frag}
3781
3782
3783# It's OK to check for header files.  Although the compiler may not be
3784# able to link anything, it had better be able to at least compile
3785# something.
3786
3787
3788
3789
3790
3791
3792
3793
3794
3795
3796
3797
3798
3799
3800
3801
3802
3803
3804
3805
3806
3807
3808
3809
3810
3811for ac_header in sys/file.h sys/param.h limits.h stdlib.h malloc.h string.h unistd.h strings.h sys/time.h time.h sys/resource.h sys/stat.h sys/mman.h fcntl.h alloca.h sys/pstat.h sys/sysmp.h sys/sysinfo.h machine/hal_sysinfo.h sys/table.h sys/sysctl.h sys/systemcfg.h stdint.h stdio_ext.h
3812do
3813as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3814echo "$as_me:$LINENO: checking for $ac_header" >&5
3815echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3816if eval "test \"\${$as_ac_Header+set}\" = set"; then
3817  echo $ECHO_N "(cached) $ECHO_C" >&6
3818else
3819  cat >conftest.$ac_ext <<_ACEOF
3820/* confdefs.h.  */
3821_ACEOF
3822cat confdefs.h >>conftest.$ac_ext
3823cat >>conftest.$ac_ext <<_ACEOF
3824/* end confdefs.h.  */
3825#include <$ac_header>
3826_ACEOF
3827if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3828  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3829  ac_status=$?
3830  grep -v '^ *+' conftest.er1 >conftest.err
3831  rm -f conftest.er1
3832  cat conftest.err >&5
3833  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3834  (exit $ac_status); } >/dev/null; then
3835  if test -s conftest.err; then
3836    ac_cpp_err=$ac_c_preproc_warn_flag
3837    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3838  else
3839    ac_cpp_err=
3840  fi
3841else
3842  ac_cpp_err=yes
3843fi
3844if test -z "$ac_cpp_err"; then
3845  eval "$as_ac_Header=yes"
3846else
3847  echo "$as_me: failed program was:" >&5
3848sed 's/^/| /' conftest.$ac_ext >&5
3849
3850  eval "$as_ac_Header=no"
3851fi
3852rm -f conftest.err conftest.$ac_ext
3853fi
3854echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3855echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3856if test `eval echo '${'$as_ac_Header'}'` = yes; then
3857  cat >>confdefs.h <<_ACEOF
3858#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3859_ACEOF
3860
3861fi
3862done
3863
3864echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
3865echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
3866if test "${ac_cv_header_sys_wait_h+set}" = set; then
3867  echo $ECHO_N "(cached) $ECHO_C" >&6
3868else
3869  cat >conftest.$ac_ext <<_ACEOF
3870/* confdefs.h.  */
3871_ACEOF
3872cat confdefs.h >>conftest.$ac_ext
3873cat >>conftest.$ac_ext <<_ACEOF
3874/* end confdefs.h.  */
3875#include <sys/types.h>
3876#include <sys/wait.h>
3877#ifndef WEXITSTATUS
3878# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
3879#endif
3880#ifndef WIFEXITED
3881# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
3882#endif
3883
3884int
3885main ()
3886{
3887  int s;
3888  wait (&s);
3889  s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
3890  ;
3891  return 0;
3892}
3893_ACEOF
3894rm -f conftest.$ac_objext
3895if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3896  (eval $ac_compile) 2>conftest.er1
3897  ac_status=$?
3898  grep -v '^ *+' conftest.er1 >conftest.err
3899  rm -f conftest.er1
3900  cat conftest.err >&5
3901  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3902  (exit $ac_status); } &&
3903	 { ac_try='test -z "$ac_c_werror_flag"
3904			 || test ! -s conftest.err'
3905  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3906  (eval $ac_try) 2>&5
3907  ac_status=$?
3908  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3909  (exit $ac_status); }; } &&
3910	 { ac_try='test -s conftest.$ac_objext'
3911  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3912  (eval $ac_try) 2>&5
3913  ac_status=$?
3914  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3915  (exit $ac_status); }; }; then
3916  ac_cv_header_sys_wait_h=yes
3917else
3918  echo "$as_me: failed program was:" >&5
3919sed 's/^/| /' conftest.$ac_ext >&5
3920
3921ac_cv_header_sys_wait_h=no
3922fi
3923rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3924fi
3925echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
3926echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
3927if test $ac_cv_header_sys_wait_h = yes; then
3928
3929cat >>confdefs.h <<\_ACEOF
3930#define HAVE_SYS_WAIT_H 1
3931_ACEOF
3932
3933fi
3934
3935echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
3936echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
3937if test "${ac_cv_header_time+set}" = set; then
3938  echo $ECHO_N "(cached) $ECHO_C" >&6
3939else
3940  cat >conftest.$ac_ext <<_ACEOF
3941/* confdefs.h.  */
3942_ACEOF
3943cat confdefs.h >>conftest.$ac_ext
3944cat >>conftest.$ac_ext <<_ACEOF
3945/* end confdefs.h.  */
3946#include <sys/types.h>
3947#include <sys/time.h>
3948#include <time.h>
3949
3950int
3951main ()
3952{
3953if ((struct tm *) 0)
3954return 0;
3955  ;
3956  return 0;
3957}
3958_ACEOF
3959rm -f conftest.$ac_objext
3960if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3961  (eval $ac_compile) 2>conftest.er1
3962  ac_status=$?
3963  grep -v '^ *+' conftest.er1 >conftest.err
3964  rm -f conftest.er1
3965  cat conftest.err >&5
3966  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3967  (exit $ac_status); } &&
3968	 { ac_try='test -z "$ac_c_werror_flag"
3969			 || test ! -s conftest.err'
3970  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3971  (eval $ac_try) 2>&5
3972  ac_status=$?
3973  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3974  (exit $ac_status); }; } &&
3975	 { ac_try='test -s conftest.$ac_objext'
3976  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3977  (eval $ac_try) 2>&5
3978  ac_status=$?
3979  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3980  (exit $ac_status); }; }; then
3981  ac_cv_header_time=yes
3982else
3983  echo "$as_me: failed program was:" >&5
3984sed 's/^/| /' conftest.$ac_ext >&5
3985
3986ac_cv_header_time=no
3987fi
3988rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3989fi
3990echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
3991echo "${ECHO_T}$ac_cv_header_time" >&6
3992if test $ac_cv_header_time = yes; then
3993
3994cat >>confdefs.h <<\_ACEOF
3995#define TIME_WITH_SYS_TIME 1
3996_ACEOF
3997
3998fi
3999
4000
4001echo "$as_me:$LINENO: checking whether errno must be declared" >&5
4002echo $ECHO_N "checking whether errno must be declared... $ECHO_C" >&6
4003if test "${libiberty_cv_declare_errno+set}" = set; then
4004  echo $ECHO_N "(cached) $ECHO_C" >&6
4005else
4006  cat >conftest.$ac_ext <<_ACEOF
4007/* confdefs.h.  */
4008_ACEOF
4009cat confdefs.h >>conftest.$ac_ext
4010cat >>conftest.$ac_ext <<_ACEOF
4011/* end confdefs.h.  */
4012#include <errno.h>
4013int
4014main ()
4015{
4016int x = errno;
4017  ;
4018  return 0;
4019}
4020_ACEOF
4021rm -f conftest.$ac_objext
4022if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4023  (eval $ac_compile) 2>conftest.er1
4024  ac_status=$?
4025  grep -v '^ *+' conftest.er1 >conftest.err
4026  rm -f conftest.er1
4027  cat conftest.err >&5
4028  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4029  (exit $ac_status); } &&
4030	 { ac_try='test -z "$ac_c_werror_flag"
4031			 || test ! -s conftest.err'
4032  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4033  (eval $ac_try) 2>&5
4034  ac_status=$?
4035  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4036  (exit $ac_status); }; } &&
4037	 { ac_try='test -s conftest.$ac_objext'
4038  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4039  (eval $ac_try) 2>&5
4040  ac_status=$?
4041  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4042  (exit $ac_status); }; }; then
4043  libiberty_cv_declare_errno=no
4044else
4045  echo "$as_me: failed program was:" >&5
4046sed 's/^/| /' conftest.$ac_ext >&5
4047
4048libiberty_cv_declare_errno=yes
4049fi
4050rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4051fi
4052echo "$as_me:$LINENO: result: $libiberty_cv_declare_errno" >&5
4053echo "${ECHO_T}$libiberty_cv_declare_errno" >&6
4054if test $libiberty_cv_declare_errno = yes
4055then
4056cat >>confdefs.h <<\_ACEOF
4057#define NEED_DECLARATION_ERRNO 1
4058_ACEOF
4059
4060fi
4061
4062
4063# Determine the size of an int for struct fibnode.
4064echo "$as_me:$LINENO: checking for egrep" >&5
4065echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4066if test "${ac_cv_prog_egrep+set}" = set; then
4067  echo $ECHO_N "(cached) $ECHO_C" >&6
4068else
4069  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4070    then ac_cv_prog_egrep='grep -E'
4071    else ac_cv_prog_egrep='egrep'
4072    fi
4073fi
4074echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4075echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4076 EGREP=$ac_cv_prog_egrep
4077
4078
4079echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4080echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4081if test "${ac_cv_header_stdc+set}" = set; then
4082  echo $ECHO_N "(cached) $ECHO_C" >&6
4083else
4084  cat >conftest.$ac_ext <<_ACEOF
4085/* confdefs.h.  */
4086_ACEOF
4087cat confdefs.h >>conftest.$ac_ext
4088cat >>conftest.$ac_ext <<_ACEOF
4089/* end confdefs.h.  */
4090#include <stdlib.h>
4091#include <stdarg.h>
4092#include <string.h>
4093#include <float.h>
4094
4095int
4096main ()
4097{
4098
4099  ;
4100  return 0;
4101}
4102_ACEOF
4103rm -f conftest.$ac_objext
4104if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4105  (eval $ac_compile) 2>conftest.er1
4106  ac_status=$?
4107  grep -v '^ *+' conftest.er1 >conftest.err
4108  rm -f conftest.er1
4109  cat conftest.err >&5
4110  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4111  (exit $ac_status); } &&
4112	 { ac_try='test -z "$ac_c_werror_flag"
4113			 || test ! -s conftest.err'
4114  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4115  (eval $ac_try) 2>&5
4116  ac_status=$?
4117  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4118  (exit $ac_status); }; } &&
4119	 { ac_try='test -s conftest.$ac_objext'
4120  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4121  (eval $ac_try) 2>&5
4122  ac_status=$?
4123  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4124  (exit $ac_status); }; }; then
4125  ac_cv_header_stdc=yes
4126else
4127  echo "$as_me: failed program was:" >&5
4128sed 's/^/| /' conftest.$ac_ext >&5
4129
4130ac_cv_header_stdc=no
4131fi
4132rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4133
4134if test $ac_cv_header_stdc = yes; then
4135  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4136  cat >conftest.$ac_ext <<_ACEOF
4137/* confdefs.h.  */
4138_ACEOF
4139cat confdefs.h >>conftest.$ac_ext
4140cat >>conftest.$ac_ext <<_ACEOF
4141/* end confdefs.h.  */
4142#include <string.h>
4143
4144_ACEOF
4145if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4146  $EGREP "memchr" >/dev/null 2>&1; then
4147  :
4148else
4149  ac_cv_header_stdc=no
4150fi
4151rm -f conftest*
4152
4153fi
4154
4155if test $ac_cv_header_stdc = yes; then
4156  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4157  cat >conftest.$ac_ext <<_ACEOF
4158/* confdefs.h.  */
4159_ACEOF
4160cat confdefs.h >>conftest.$ac_ext
4161cat >>conftest.$ac_ext <<_ACEOF
4162/* end confdefs.h.  */
4163#include <stdlib.h>
4164
4165_ACEOF
4166if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4167  $EGREP "free" >/dev/null 2>&1; then
4168  :
4169else
4170  ac_cv_header_stdc=no
4171fi
4172rm -f conftest*
4173
4174fi
4175
4176if test $ac_cv_header_stdc = yes; then
4177  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4178  if test "$cross_compiling" = yes; then
4179  :
4180else
4181  cat >conftest.$ac_ext <<_ACEOF
4182/* confdefs.h.  */
4183_ACEOF
4184cat confdefs.h >>conftest.$ac_ext
4185cat >>conftest.$ac_ext <<_ACEOF
4186/* end confdefs.h.  */
4187#include <ctype.h>
4188#if ((' ' & 0x0FF) == 0x020)
4189# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4190# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4191#else
4192# define ISLOWER(c) \
4193		   (('a' <= (c) && (c) <= 'i') \
4194		     || ('j' <= (c) && (c) <= 'r') \
4195		     || ('s' <= (c) && (c) <= 'z'))
4196# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4197#endif
4198
4199#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4200int
4201main ()
4202{
4203  int i;
4204  for (i = 0; i < 256; i++)
4205    if (XOR (islower (i), ISLOWER (i))
4206	|| toupper (i) != TOUPPER (i))
4207      exit(2);
4208  exit (0);
4209}
4210_ACEOF
4211rm -f conftest$ac_exeext
4212if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4213  (eval $ac_link) 2>&5
4214  ac_status=$?
4215  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4216  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4217  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4218  (eval $ac_try) 2>&5
4219  ac_status=$?
4220  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4221  (exit $ac_status); }; }; then
4222  :
4223else
4224  echo "$as_me: program exited with status $ac_status" >&5
4225echo "$as_me: failed program was:" >&5
4226sed 's/^/| /' conftest.$ac_ext >&5
4227
4228( exit $ac_status )
4229ac_cv_header_stdc=no
4230fi
4231rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4232fi
4233fi
4234fi
4235echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4236echo "${ECHO_T}$ac_cv_header_stdc" >&6
4237if test $ac_cv_header_stdc = yes; then
4238
4239cat >>confdefs.h <<\_ACEOF
4240#define STDC_HEADERS 1
4241_ACEOF
4242
4243fi
4244
4245# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4246
4247
4248
4249
4250
4251
4252
4253
4254
4255for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4256		  inttypes.h stdint.h unistd.h
4257do
4258as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4259echo "$as_me:$LINENO: checking for $ac_header" >&5
4260echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4261if eval "test \"\${$as_ac_Header+set}\" = set"; then
4262  echo $ECHO_N "(cached) $ECHO_C" >&6
4263else
4264  cat >conftest.$ac_ext <<_ACEOF
4265/* confdefs.h.  */
4266_ACEOF
4267cat confdefs.h >>conftest.$ac_ext
4268cat >>conftest.$ac_ext <<_ACEOF
4269/* end confdefs.h.  */
4270#include <$ac_header>
4271_ACEOF
4272if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4273  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4274  ac_status=$?
4275  grep -v '^ *+' conftest.er1 >conftest.err
4276  rm -f conftest.er1
4277  cat conftest.err >&5
4278  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4279  (exit $ac_status); } >/dev/null; then
4280  if test -s conftest.err; then
4281    ac_cpp_err=$ac_c_preproc_warn_flag
4282    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4283  else
4284    ac_cpp_err=
4285  fi
4286else
4287  ac_cpp_err=yes
4288fi
4289if test -z "$ac_cpp_err"; then
4290  eval "$as_ac_Header=yes"
4291else
4292  echo "$as_me: failed program was:" >&5
4293sed 's/^/| /' conftest.$ac_ext >&5
4294
4295  eval "$as_ac_Header=no"
4296fi
4297rm -f conftest.err conftest.$ac_ext
4298fi
4299echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4300echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4301if test `eval echo '${'$as_ac_Header'}'` = yes; then
4302  cat >>confdefs.h <<_ACEOF
4303#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4304_ACEOF
4305
4306fi
4307done
4308
4309
4310echo "$as_me:$LINENO: checking for int" >&5
4311echo $ECHO_N "checking for int... $ECHO_C" >&6
4312if test "${ac_cv_type_int+set}" = set; then
4313  echo $ECHO_N "(cached) $ECHO_C" >&6
4314else
4315  cat >conftest.$ac_ext <<_ACEOF
4316/* confdefs.h.  */
4317_ACEOF
4318cat confdefs.h >>conftest.$ac_ext
4319cat >>conftest.$ac_ext <<_ACEOF
4320/* end confdefs.h.  */
4321$ac_includes_default
4322int
4323main ()
4324{
4325if ((int *) 0)
4326  return 0;
4327if (sizeof (int))
4328  return 0;
4329  ;
4330  return 0;
4331}
4332_ACEOF
4333rm -f conftest.$ac_objext
4334if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4335  (eval $ac_compile) 2>conftest.er1
4336  ac_status=$?
4337  grep -v '^ *+' conftest.er1 >conftest.err
4338  rm -f conftest.er1
4339  cat conftest.err >&5
4340  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4341  (exit $ac_status); } &&
4342	 { ac_try='test -z "$ac_c_werror_flag"
4343			 || test ! -s conftest.err'
4344  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4345  (eval $ac_try) 2>&5
4346  ac_status=$?
4347  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4348  (exit $ac_status); }; } &&
4349	 { ac_try='test -s conftest.$ac_objext'
4350  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4351  (eval $ac_try) 2>&5
4352  ac_status=$?
4353  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4354  (exit $ac_status); }; }; then
4355  ac_cv_type_int=yes
4356else
4357  echo "$as_me: failed program was:" >&5
4358sed 's/^/| /' conftest.$ac_ext >&5
4359
4360ac_cv_type_int=no
4361fi
4362rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4363fi
4364echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
4365echo "${ECHO_T}$ac_cv_type_int" >&6
4366
4367echo "$as_me:$LINENO: checking size of int" >&5
4368echo $ECHO_N "checking size of int... $ECHO_C" >&6
4369if test "${ac_cv_sizeof_int+set}" = set; then
4370  echo $ECHO_N "(cached) $ECHO_C" >&6
4371else
4372  if test "$ac_cv_type_int" = yes; then
4373  # The cast to unsigned long works around a bug in the HP C Compiler
4374  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4375  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4376  # This bug is HP SR number 8606223364.
4377  if test "$cross_compiling" = yes; then
4378  # Depending upon the size, compute the lo and hi bounds.
4379cat >conftest.$ac_ext <<_ACEOF
4380/* confdefs.h.  */
4381_ACEOF
4382cat confdefs.h >>conftest.$ac_ext
4383cat >>conftest.$ac_ext <<_ACEOF
4384/* end confdefs.h.  */
4385$ac_includes_default
4386int
4387main ()
4388{
4389static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
4390test_array [0] = 0
4391
4392  ;
4393  return 0;
4394}
4395_ACEOF
4396rm -f conftest.$ac_objext
4397if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4398  (eval $ac_compile) 2>conftest.er1
4399  ac_status=$?
4400  grep -v '^ *+' conftest.er1 >conftest.err
4401  rm -f conftest.er1
4402  cat conftest.err >&5
4403  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4404  (exit $ac_status); } &&
4405	 { ac_try='test -z "$ac_c_werror_flag"
4406			 || test ! -s conftest.err'
4407  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4408  (eval $ac_try) 2>&5
4409  ac_status=$?
4410  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4411  (exit $ac_status); }; } &&
4412	 { ac_try='test -s conftest.$ac_objext'
4413  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4414  (eval $ac_try) 2>&5
4415  ac_status=$?
4416  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4417  (exit $ac_status); }; }; then
4418  ac_lo=0 ac_mid=0
4419  while :; do
4420    cat >conftest.$ac_ext <<_ACEOF
4421/* confdefs.h.  */
4422_ACEOF
4423cat confdefs.h >>conftest.$ac_ext
4424cat >>conftest.$ac_ext <<_ACEOF
4425/* end confdefs.h.  */
4426$ac_includes_default
4427int
4428main ()
4429{
4430static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4431test_array [0] = 0
4432
4433  ;
4434  return 0;
4435}
4436_ACEOF
4437rm -f conftest.$ac_objext
4438if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4439  (eval $ac_compile) 2>conftest.er1
4440  ac_status=$?
4441  grep -v '^ *+' conftest.er1 >conftest.err
4442  rm -f conftest.er1
4443  cat conftest.err >&5
4444  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4445  (exit $ac_status); } &&
4446	 { ac_try='test -z "$ac_c_werror_flag"
4447			 || test ! -s conftest.err'
4448  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4449  (eval $ac_try) 2>&5
4450  ac_status=$?
4451  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4452  (exit $ac_status); }; } &&
4453	 { ac_try='test -s conftest.$ac_objext'
4454  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4455  (eval $ac_try) 2>&5
4456  ac_status=$?
4457  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4458  (exit $ac_status); }; }; then
4459  ac_hi=$ac_mid; break
4460else
4461  echo "$as_me: failed program was:" >&5
4462sed 's/^/| /' conftest.$ac_ext >&5
4463
4464ac_lo=`expr $ac_mid + 1`
4465		    if test $ac_lo -le $ac_mid; then
4466		      ac_lo= ac_hi=
4467		      break
4468		    fi
4469		    ac_mid=`expr 2 '*' $ac_mid + 1`
4470fi
4471rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4472  done
4473else
4474  echo "$as_me: failed program was:" >&5
4475sed 's/^/| /' conftest.$ac_ext >&5
4476
4477cat >conftest.$ac_ext <<_ACEOF
4478/* confdefs.h.  */
4479_ACEOF
4480cat confdefs.h >>conftest.$ac_ext
4481cat >>conftest.$ac_ext <<_ACEOF
4482/* end confdefs.h.  */
4483$ac_includes_default
4484int
4485main ()
4486{
4487static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
4488test_array [0] = 0
4489
4490  ;
4491  return 0;
4492}
4493_ACEOF
4494rm -f conftest.$ac_objext
4495if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4496  (eval $ac_compile) 2>conftest.er1
4497  ac_status=$?
4498  grep -v '^ *+' conftest.er1 >conftest.err
4499  rm -f conftest.er1
4500  cat conftest.err >&5
4501  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4502  (exit $ac_status); } &&
4503	 { ac_try='test -z "$ac_c_werror_flag"
4504			 || test ! -s conftest.err'
4505  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4506  (eval $ac_try) 2>&5
4507  ac_status=$?
4508  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4509  (exit $ac_status); }; } &&
4510	 { ac_try='test -s conftest.$ac_objext'
4511  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4512  (eval $ac_try) 2>&5
4513  ac_status=$?
4514  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4515  (exit $ac_status); }; }; then
4516  ac_hi=-1 ac_mid=-1
4517  while :; do
4518    cat >conftest.$ac_ext <<_ACEOF
4519/* confdefs.h.  */
4520_ACEOF
4521cat confdefs.h >>conftest.$ac_ext
4522cat >>conftest.$ac_ext <<_ACEOF
4523/* end confdefs.h.  */
4524$ac_includes_default
4525int
4526main ()
4527{
4528static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
4529test_array [0] = 0
4530
4531  ;
4532  return 0;
4533}
4534_ACEOF
4535rm -f conftest.$ac_objext
4536if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4537  (eval $ac_compile) 2>conftest.er1
4538  ac_status=$?
4539  grep -v '^ *+' conftest.er1 >conftest.err
4540  rm -f conftest.er1
4541  cat conftest.err >&5
4542  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4543  (exit $ac_status); } &&
4544	 { ac_try='test -z "$ac_c_werror_flag"
4545			 || test ! -s conftest.err'
4546  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4547  (eval $ac_try) 2>&5
4548  ac_status=$?
4549  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4550  (exit $ac_status); }; } &&
4551	 { ac_try='test -s conftest.$ac_objext'
4552  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4553  (eval $ac_try) 2>&5
4554  ac_status=$?
4555  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4556  (exit $ac_status); }; }; then
4557  ac_lo=$ac_mid; break
4558else
4559  echo "$as_me: failed program was:" >&5
4560sed 's/^/| /' conftest.$ac_ext >&5
4561
4562ac_hi=`expr '(' $ac_mid ')' - 1`
4563		       if test $ac_mid -le $ac_hi; then
4564			 ac_lo= ac_hi=
4565			 break
4566		       fi
4567		       ac_mid=`expr 2 '*' $ac_mid`
4568fi
4569rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4570  done
4571else
4572  echo "$as_me: failed program was:" >&5
4573sed 's/^/| /' conftest.$ac_ext >&5
4574
4575ac_lo= ac_hi=
4576fi
4577rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4578fi
4579rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4580# Binary search between lo and hi bounds.
4581while test "x$ac_lo" != "x$ac_hi"; do
4582  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4583  cat >conftest.$ac_ext <<_ACEOF
4584/* confdefs.h.  */
4585_ACEOF
4586cat confdefs.h >>conftest.$ac_ext
4587cat >>conftest.$ac_ext <<_ACEOF
4588/* end confdefs.h.  */
4589$ac_includes_default
4590int
4591main ()
4592{
4593static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4594test_array [0] = 0
4595
4596  ;
4597  return 0;
4598}
4599_ACEOF
4600rm -f conftest.$ac_objext
4601if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4602  (eval $ac_compile) 2>conftest.er1
4603  ac_status=$?
4604  grep -v '^ *+' conftest.er1 >conftest.err
4605  rm -f conftest.er1
4606  cat conftest.err >&5
4607  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4608  (exit $ac_status); } &&
4609	 { ac_try='test -z "$ac_c_werror_flag"
4610			 || test ! -s conftest.err'
4611  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4612  (eval $ac_try) 2>&5
4613  ac_status=$?
4614  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4615  (exit $ac_status); }; } &&
4616	 { ac_try='test -s conftest.$ac_objext'
4617  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4618  (eval $ac_try) 2>&5
4619  ac_status=$?
4620  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4621  (exit $ac_status); }; }; then
4622  ac_hi=$ac_mid
4623else
4624  echo "$as_me: failed program was:" >&5
4625sed 's/^/| /' conftest.$ac_ext >&5
4626
4627ac_lo=`expr '(' $ac_mid ')' + 1`
4628fi
4629rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4630done
4631case $ac_lo in
4632?*) ac_cv_sizeof_int=$ac_lo;;
4633'') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4634echo "$as_me: error: in \`$ac_pwd':" >&2;}
4635{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4636See \`config.log' for more details." >&5
4637echo "$as_me: error: cannot compute sizeof (int), 77
4638See \`config.log' for more details." >&2;}
4639   { (exit 1); exit 1; }; }; } ;;
4640esac
4641else
4642  if test "$cross_compiling" = yes; then
4643  { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4644echo "$as_me: error: in \`$ac_pwd':" >&2;}
4645{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4646See \`config.log' for more details." >&5
4647echo "$as_me: error: cannot run test program while cross compiling
4648See \`config.log' for more details." >&2;}
4649   { (exit 1); exit 1; }; }; }
4650else
4651  cat >conftest.$ac_ext <<_ACEOF
4652/* confdefs.h.  */
4653_ACEOF
4654cat confdefs.h >>conftest.$ac_ext
4655cat >>conftest.$ac_ext <<_ACEOF
4656/* end confdefs.h.  */
4657$ac_includes_default
4658long longval () { return (long) (sizeof (int)); }
4659unsigned long ulongval () { return (long) (sizeof (int)); }
4660#include <stdio.h>
4661#include <stdlib.h>
4662int
4663main ()
4664{
4665
4666  FILE *f = fopen ("conftest.val", "w");
4667  if (! f)
4668    exit (1);
4669  if (((long) (sizeof (int))) < 0)
4670    {
4671      long i = longval ();
4672      if (i != ((long) (sizeof (int))))
4673	exit (1);
4674      fprintf (f, "%ld\n", i);
4675    }
4676  else
4677    {
4678      unsigned long i = ulongval ();
4679      if (i != ((long) (sizeof (int))))
4680	exit (1);
4681      fprintf (f, "%lu\n", i);
4682    }
4683  exit (ferror (f) || fclose (f) != 0);
4684
4685  ;
4686  return 0;
4687}
4688_ACEOF
4689rm -f conftest$ac_exeext
4690if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4691  (eval $ac_link) 2>&5
4692  ac_status=$?
4693  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4694  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4695  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4696  (eval $ac_try) 2>&5
4697  ac_status=$?
4698  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4699  (exit $ac_status); }; }; then
4700  ac_cv_sizeof_int=`cat conftest.val`
4701else
4702  echo "$as_me: program exited with status $ac_status" >&5
4703echo "$as_me: failed program was:" >&5
4704sed 's/^/| /' conftest.$ac_ext >&5
4705
4706( exit $ac_status )
4707{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4708echo "$as_me: error: in \`$ac_pwd':" >&2;}
4709{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4710See \`config.log' for more details." >&5
4711echo "$as_me: error: cannot compute sizeof (int), 77
4712See \`config.log' for more details." >&2;}
4713   { (exit 1); exit 1; }; }; }
4714fi
4715rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4716fi
4717fi
4718rm -f conftest.val
4719else
4720  ac_cv_sizeof_int=0
4721fi
4722fi
4723echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
4724echo "${ECHO_T}$ac_cv_sizeof_int" >&6
4725cat >>confdefs.h <<_ACEOF
4726#define SIZEOF_INT $ac_cv_sizeof_int
4727_ACEOF
4728
4729
4730
4731echo "$as_me:$LINENO: checking for uintptr_t" >&5
4732echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
4733if test "${ac_cv_type_uintptr_t+set}" = set; then
4734  echo $ECHO_N "(cached) $ECHO_C" >&6
4735else
4736  cat >conftest.$ac_ext <<_ACEOF
4737/* confdefs.h.  */
4738_ACEOF
4739cat confdefs.h >>conftest.$ac_ext
4740cat >>conftest.$ac_ext <<_ACEOF
4741/* end confdefs.h.  */
4742$ac_includes_default
4743int
4744main ()
4745{
4746if ((uintptr_t *) 0)
4747  return 0;
4748if (sizeof (uintptr_t))
4749  return 0;
4750  ;
4751  return 0;
4752}
4753_ACEOF
4754rm -f conftest.$ac_objext
4755if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4756  (eval $ac_compile) 2>conftest.er1
4757  ac_status=$?
4758  grep -v '^ *+' conftest.er1 >conftest.err
4759  rm -f conftest.er1
4760  cat conftest.err >&5
4761  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4762  (exit $ac_status); } &&
4763	 { ac_try='test -z "$ac_c_werror_flag"
4764			 || test ! -s conftest.err'
4765  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4766  (eval $ac_try) 2>&5
4767  ac_status=$?
4768  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4769  (exit $ac_status); }; } &&
4770	 { ac_try='test -s conftest.$ac_objext'
4771  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4772  (eval $ac_try) 2>&5
4773  ac_status=$?
4774  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4775  (exit $ac_status); }; }; then
4776  ac_cv_type_uintptr_t=yes
4777else
4778  echo "$as_me: failed program was:" >&5
4779sed 's/^/| /' conftest.$ac_ext >&5
4780
4781ac_cv_type_uintptr_t=no
4782fi
4783rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4784fi
4785echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
4786echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
4787if test $ac_cv_type_uintptr_t = yes; then
4788  :
4789else
4790
4791cat >>confdefs.h <<_ACEOF
4792#define uintptr_t unsigned long
4793_ACEOF
4794
4795fi
4796
4797
4798# Look for a 64-bit type.
4799echo "$as_me:$LINENO: checking for a 64-bit type" >&5
4800echo $ECHO_N "checking for a 64-bit type... $ECHO_C" >&6
4801if test "${liberty_cv_uint64+set}" = set; then
4802  echo $ECHO_N "(cached) $ECHO_C" >&6
4803else
4804  cat >conftest.$ac_ext <<_ACEOF
4805/* confdefs.h.  */
4806_ACEOF
4807cat confdefs.h >>conftest.$ac_ext
4808cat >>conftest.$ac_ext <<_ACEOF
4809/* end confdefs.h.  */
4810#ifdef HAVE_STDINT_H
4811#include <stdint.h>
4812#endif
4813int
4814main ()
4815{
4816extern uint64_t foo;
4817  ;
4818  return 0;
4819}
4820_ACEOF
4821rm -f conftest.$ac_objext
4822if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4823  (eval $ac_compile) 2>conftest.er1
4824  ac_status=$?
4825  grep -v '^ *+' conftest.er1 >conftest.err
4826  rm -f conftest.er1
4827  cat conftest.err >&5
4828  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4829  (exit $ac_status); } &&
4830	 { ac_try='test -z "$ac_c_werror_flag"
4831			 || test ! -s conftest.err'
4832  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4833  (eval $ac_try) 2>&5
4834  ac_status=$?
4835  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4836  (exit $ac_status); }; } &&
4837	 { ac_try='test -s conftest.$ac_objext'
4838  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4839  (eval $ac_try) 2>&5
4840  ac_status=$?
4841  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4842  (exit $ac_status); }; }; then
4843  liberty_cv_uint64=uint64_t
4844else
4845  echo "$as_me: failed program was:" >&5
4846sed 's/^/| /' conftest.$ac_ext >&5
4847
4848cat >conftest.$ac_ext <<_ACEOF
4849/* confdefs.h.  */
4850_ACEOF
4851cat confdefs.h >>conftest.$ac_ext
4852cat >>conftest.$ac_ext <<_ACEOF
4853/* end confdefs.h.  */
4854#ifdef HAVE_LIMITS_H
4855#include <limits.h>
4856#endif
4857#ifndef CHAR_BIT
4858#define CHAR_BIT 8
4859#endif
4860int
4861main ()
4862{
4863extern char foo[sizeof(long) * CHAR_BIT >= 64 ? 1 : -1];
4864  ;
4865  return 0;
4866}
4867_ACEOF
4868rm -f conftest.$ac_objext
4869if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4870  (eval $ac_compile) 2>conftest.er1
4871  ac_status=$?
4872  grep -v '^ *+' conftest.er1 >conftest.err
4873  rm -f conftest.er1
4874  cat conftest.err >&5
4875  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4876  (exit $ac_status); } &&
4877	 { ac_try='test -z "$ac_c_werror_flag"
4878			 || test ! -s conftest.err'
4879  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4880  (eval $ac_try) 2>&5
4881  ac_status=$?
4882  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4883  (exit $ac_status); }; } &&
4884	 { ac_try='test -s conftest.$ac_objext'
4885  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4886  (eval $ac_try) 2>&5
4887  ac_status=$?
4888  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4889  (exit $ac_status); }; }; then
4890  liberty_cv_uint64="unsigned long"
4891else
4892  echo "$as_me: failed program was:" >&5
4893sed 's/^/| /' conftest.$ac_ext >&5
4894
4895cat >conftest.$ac_ext <<_ACEOF
4896/* confdefs.h.  */
4897_ACEOF
4898cat confdefs.h >>conftest.$ac_ext
4899cat >>conftest.$ac_ext <<_ACEOF
4900/* end confdefs.h.  */
4901#ifdef HAVE_LIMITS_H
4902#include <limits.h>
4903#endif
4904#ifndef CHAR_BIT
4905#define CHAR_BIT 8
4906#endif
4907int
4908main ()
4909{
4910extern char foo[sizeof(long long) * CHAR_BIT >= 64 ? 1 : -1];
4911  ;
4912  return 0;
4913}
4914_ACEOF
4915rm -f conftest.$ac_objext
4916if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4917  (eval $ac_compile) 2>conftest.er1
4918  ac_status=$?
4919  grep -v '^ *+' conftest.er1 >conftest.err
4920  rm -f conftest.er1
4921  cat conftest.err >&5
4922  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4923  (exit $ac_status); } &&
4924	 { ac_try='test -z "$ac_c_werror_flag"
4925			 || test ! -s conftest.err'
4926  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4927  (eval $ac_try) 2>&5
4928  ac_status=$?
4929  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4930  (exit $ac_status); }; } &&
4931	 { ac_try='test -s conftest.$ac_objext'
4932  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4933  (eval $ac_try) 2>&5
4934  ac_status=$?
4935  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4936  (exit $ac_status); }; }; then
4937  liberty_cv_uint64="unsigned long long"
4938else
4939  echo "$as_me: failed program was:" >&5
4940sed 's/^/| /' conftest.$ac_ext >&5
4941
4942liberty_cv_uint64=none
4943fi
4944rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4945fi
4946rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4947fi
4948rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4949fi
4950
4951echo "$as_me:$LINENO: result: $liberty_cv_uint64" >&5
4952echo "${ECHO_T}$liberty_cv_uint64" >&6
4953if test "$liberty_cv_uint64" != none; then
4954
4955cat >>confdefs.h <<_ACEOF
4956#define UNSIGNED_64BIT_TYPE $liberty_cv_uint64
4957_ACEOF
4958
4959fi
4960
4961# Given the above check, we always have uintptr_t or a fallback
4962# definition.  So define HAVE_UINTPTR_T in case any imported code
4963# relies on it.
4964
4965cat >>confdefs.h <<\_ACEOF
4966#define HAVE_UINTPTR_T 1
4967_ACEOF
4968
4969
4970echo "$as_me:$LINENO: checking for pid_t" >&5
4971echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
4972if test "${ac_cv_type_pid_t+set}" = set; then
4973  echo $ECHO_N "(cached) $ECHO_C" >&6
4974else
4975  cat >conftest.$ac_ext <<_ACEOF
4976/* confdefs.h.  */
4977_ACEOF
4978cat confdefs.h >>conftest.$ac_ext
4979cat >>conftest.$ac_ext <<_ACEOF
4980/* end confdefs.h.  */
4981$ac_includes_default
4982int
4983main ()
4984{
4985if ((pid_t *) 0)
4986  return 0;
4987if (sizeof (pid_t))
4988  return 0;
4989  ;
4990  return 0;
4991}
4992_ACEOF
4993rm -f conftest.$ac_objext
4994if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4995  (eval $ac_compile) 2>conftest.er1
4996  ac_status=$?
4997  grep -v '^ *+' conftest.er1 >conftest.err
4998  rm -f conftest.er1
4999  cat conftest.err >&5
5000  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5001  (exit $ac_status); } &&
5002	 { ac_try='test -z "$ac_c_werror_flag"
5003			 || test ! -s conftest.err'
5004  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5005  (eval $ac_try) 2>&5
5006  ac_status=$?
5007  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5008  (exit $ac_status); }; } &&
5009	 { ac_try='test -s conftest.$ac_objext'
5010  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5011  (eval $ac_try) 2>&5
5012  ac_status=$?
5013  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5014  (exit $ac_status); }; }; then
5015  ac_cv_type_pid_t=yes
5016else
5017  echo "$as_me: failed program was:" >&5
5018sed 's/^/| /' conftest.$ac_ext >&5
5019
5020ac_cv_type_pid_t=no
5021fi
5022rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5023fi
5024echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
5025echo "${ECHO_T}$ac_cv_type_pid_t" >&6
5026if test $ac_cv_type_pid_t = yes; then
5027  :
5028else
5029
5030cat >>confdefs.h <<_ACEOF
5031#define pid_t int
5032_ACEOF
5033
5034fi
5035
5036
5037# This is the list of functions which libiberty will provide if they
5038# are not available on the host.
5039
5040funcs="asprintf"
5041funcs="$funcs atexit"
5042funcs="$funcs basename"
5043funcs="$funcs bcmp"
5044funcs="$funcs bcopy"
5045funcs="$funcs bsearch"
5046funcs="$funcs bzero"
5047funcs="$funcs calloc"
5048funcs="$funcs clock"
5049funcs="$funcs ffs"
5050funcs="$funcs getcwd"
5051funcs="$funcs getpagesize"
5052funcs="$funcs gettimeofday"
5053funcs="$funcs index"
5054funcs="$funcs insque"
5055funcs="$funcs memchr"
5056funcs="$funcs memcmp"
5057funcs="$funcs memcpy"
5058funcs="$funcs memmove"
5059funcs="$funcs mempcpy"
5060funcs="$funcs memset"
5061funcs="$funcs mkstemps"
5062funcs="$funcs putenv"
5063funcs="$funcs random"
5064funcs="$funcs rename"
5065funcs="$funcs rindex"
5066funcs="$funcs setenv"
5067funcs="$funcs snprintf"
5068funcs="$funcs sigsetmask"
5069funcs="$funcs stpcpy"
5070funcs="$funcs stpncpy"
5071funcs="$funcs strcasecmp"
5072funcs="$funcs strchr"
5073funcs="$funcs strdup"
5074funcs="$funcs strncasecmp"
5075funcs="$funcs strndup"
5076funcs="$funcs strrchr"
5077funcs="$funcs strstr"
5078funcs="$funcs strtod"
5079funcs="$funcs strtol"
5080funcs="$funcs strtoul"
5081funcs="$funcs strverscmp"
5082funcs="$funcs tmpnam"
5083funcs="$funcs vasprintf"
5084funcs="$funcs vfprintf"
5085funcs="$funcs vprintf"
5086funcs="$funcs vsnprintf"
5087funcs="$funcs vsprintf"
5088funcs="$funcs waitpid"
5089
5090# Also in the old function.def file: alloca, vfork, getopt.
5091
5092vars="sys_errlist sys_nerr sys_siglist"
5093
5094checkfuncs="getrusage on_exit psignal strerror strsignal sysconf times sbrk gettimeofday"
5095checkfuncs="$checkfuncs realpath canonicalize_file_name pstat_getstatic pstat_getdynamic sysmp"
5096checkfuncs="$checkfuncs getsysinfo table sysctl wait3 wait4 __fsetlocking"
5097
5098# These are neither executed nor required, but they help keep
5099# autoheader happy without adding a bunch of text to acconfig.h.
5100if test "x" = "y"; then
5101
5102
5103
5104
5105
5106
5107
5108
5109
5110
5111
5112
5113
5114
5115
5116
5117
5118
5119
5120
5121
5122
5123
5124
5125
5126
5127
5128
5129
5130
5131
5132
5133
5134
5135
5136
5137
5138
5139
5140
5141
5142
5143
5144
5145
5146
5147
5148
5149
5150
5151
5152
5153
5154
5155
5156
5157
5158
5159
5160
5161
5162
5163
5164
5165
5166
5167
5168
5169
5170for ac_func in asprintf atexit basename bcmp bcopy bsearch bzero calloc clock \
5171  getcwd getpagesize gettimeofday index insque mkstemps memchr memcmp memcpy \
5172  memmove mempcpy memset putenv random rename rindex sigsetmask \
5173  strcasecmp setenv stpcpy stpncpy strchr strdup strncasecmp strndup strrchr strstr \
5174  strtod strtol strtoul strverscmp tmpnam vasprintf vfprintf vprintf \
5175  vsprintf waitpid getrusage on_exit psignal strerror strsignal \
5176  sysconf times sbrk gettimeofday ffs snprintf vsnprintf \
5177  pstat_getstatic pstat_getdynamic sysmp getsysinfo table sysctl wait3 wait4 \
5178  realpath canonicalize_file_name __fsetlocking
5179do
5180as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5181echo "$as_me:$LINENO: checking for $ac_func" >&5
5182echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5183if eval "test \"\${$as_ac_var+set}\" = set"; then
5184  echo $ECHO_N "(cached) $ECHO_C" >&6
5185else
5186  if test x$gcc_no_link = xyes; then
5187  { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
5188echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
5189   { (exit 1); exit 1; }; }
5190fi
5191cat >conftest.$ac_ext <<_ACEOF
5192/* confdefs.h.  */
5193_ACEOF
5194cat confdefs.h >>conftest.$ac_ext
5195cat >>conftest.$ac_ext <<_ACEOF
5196/* end confdefs.h.  */
5197/* System header to define __stub macros and hopefully few prototypes,
5198    which can conflict with char $ac_func (); below.
5199    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5200    <limits.h> exists even on freestanding compilers.  Under hpux,
5201    including <limits.h> includes <sys/time.h> and causes problems
5202    checking for functions defined therein.  */
5203#if defined (__STDC__) && !defined (_HPUX_SOURCE)
5204# include <limits.h>
5205#else
5206# include <assert.h>
5207#endif
5208/* Override any gcc2 internal prototype to avoid an error.  */
5209#ifdef __cplusplus
5210extern "C"
5211{
5212#endif
5213/* We use char because int might match the return type of a gcc2
5214   builtin and then its argument prototype would still apply.  */
5215char $ac_func ();
5216/* The GNU C library defines this for functions which it implements
5217    to always fail with ENOSYS.  Some functions are actually named
5218    something starting with __ and the normal name is an alias.  */
5219#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5220choke me
5221#else
5222char (*f) () = $ac_func;
5223#endif
5224#ifdef __cplusplus
5225}
5226#endif
5227
5228int
5229main ()
5230{
5231return f != $ac_func;
5232  ;
5233  return 0;
5234}
5235_ACEOF
5236rm -f conftest.$ac_objext conftest$ac_exeext
5237if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5238  (eval $ac_link) 2>conftest.er1
5239  ac_status=$?
5240  grep -v '^ *+' conftest.er1 >conftest.err
5241  rm -f conftest.er1
5242  cat conftest.err >&5
5243  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5244  (exit $ac_status); } &&
5245	 { ac_try='test -z "$ac_c_werror_flag"
5246			 || test ! -s conftest.err'
5247  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5248  (eval $ac_try) 2>&5
5249  ac_status=$?
5250  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5251  (exit $ac_status); }; } &&
5252	 { ac_try='test -s conftest$ac_exeext'
5253  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5254  (eval $ac_try) 2>&5
5255  ac_status=$?
5256  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5257  (exit $ac_status); }; }; then
5258  eval "$as_ac_var=yes"
5259else
5260  echo "$as_me: failed program was:" >&5
5261sed 's/^/| /' conftest.$ac_ext >&5
5262
5263eval "$as_ac_var=no"
5264fi
5265rm -f conftest.err conftest.$ac_objext \
5266      conftest$ac_exeext conftest.$ac_ext
5267fi
5268echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5269echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5270if test `eval echo '${'$as_ac_var'}'` = yes; then
5271  cat >>confdefs.h <<_ACEOF
5272#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5273_ACEOF
5274
5275fi
5276done
5277
5278  echo "$as_me:$LINENO: checking whether basename is declared" >&5
5279echo $ECHO_N "checking whether basename is declared... $ECHO_C" >&6
5280if test "${ac_cv_have_decl_basename+set}" = set; then
5281  echo $ECHO_N "(cached) $ECHO_C" >&6
5282else
5283  cat >conftest.$ac_ext <<_ACEOF
5284/* confdefs.h.  */
5285_ACEOF
5286cat confdefs.h >>conftest.$ac_ext
5287cat >>conftest.$ac_ext <<_ACEOF
5288/* end confdefs.h.  */
5289$ac_includes_default
5290int
5291main ()
5292{
5293#ifndef basename
5294  char *p = (char *) basename;
5295#endif
5296
5297  ;
5298  return 0;
5299}
5300_ACEOF
5301rm -f conftest.$ac_objext
5302if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5303  (eval $ac_compile) 2>conftest.er1
5304  ac_status=$?
5305  grep -v '^ *+' conftest.er1 >conftest.err
5306  rm -f conftest.er1
5307  cat conftest.err >&5
5308  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5309  (exit $ac_status); } &&
5310	 { ac_try='test -z "$ac_c_werror_flag"
5311			 || test ! -s conftest.err'
5312  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5313  (eval $ac_try) 2>&5
5314  ac_status=$?
5315  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5316  (exit $ac_status); }; } &&
5317	 { ac_try='test -s conftest.$ac_objext'
5318  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5319  (eval $ac_try) 2>&5
5320  ac_status=$?
5321  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5322  (exit $ac_status); }; }; then
5323  ac_cv_have_decl_basename=yes
5324else
5325  echo "$as_me: failed program was:" >&5
5326sed 's/^/| /' conftest.$ac_ext >&5
5327
5328ac_cv_have_decl_basename=no
5329fi
5330rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5331fi
5332echo "$as_me:$LINENO: result: $ac_cv_have_decl_basename" >&5
5333echo "${ECHO_T}$ac_cv_have_decl_basename" >&6
5334if test $ac_cv_have_decl_basename = yes; then
5335
5336cat >>confdefs.h <<_ACEOF
5337#define HAVE_DECL_BASENAME 1
5338_ACEOF
5339
5340
5341else
5342  cat >>confdefs.h <<_ACEOF
5343#define HAVE_DECL_BASENAME 0
5344_ACEOF
5345
5346
5347fi
5348echo "$as_me:$LINENO: checking whether ffs is declared" >&5
5349echo $ECHO_N "checking whether ffs is declared... $ECHO_C" >&6
5350if test "${ac_cv_have_decl_ffs+set}" = set; then
5351  echo $ECHO_N "(cached) $ECHO_C" >&6
5352else
5353  cat >conftest.$ac_ext <<_ACEOF
5354/* confdefs.h.  */
5355_ACEOF
5356cat confdefs.h >>conftest.$ac_ext
5357cat >>conftest.$ac_ext <<_ACEOF
5358/* end confdefs.h.  */
5359$ac_includes_default
5360int
5361main ()
5362{
5363#ifndef ffs
5364  char *p = (char *) ffs;
5365#endif
5366
5367  ;
5368  return 0;
5369}
5370_ACEOF
5371rm -f conftest.$ac_objext
5372if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5373  (eval $ac_compile) 2>conftest.er1
5374  ac_status=$?
5375  grep -v '^ *+' conftest.er1 >conftest.err
5376  rm -f conftest.er1
5377  cat conftest.err >&5
5378  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5379  (exit $ac_status); } &&
5380	 { ac_try='test -z "$ac_c_werror_flag"
5381			 || test ! -s conftest.err'
5382  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5383  (eval $ac_try) 2>&5
5384  ac_status=$?
5385  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5386  (exit $ac_status); }; } &&
5387	 { ac_try='test -s conftest.$ac_objext'
5388  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5389  (eval $ac_try) 2>&5
5390  ac_status=$?
5391  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5392  (exit $ac_status); }; }; then
5393  ac_cv_have_decl_ffs=yes
5394else
5395  echo "$as_me: failed program was:" >&5
5396sed 's/^/| /' conftest.$ac_ext >&5
5397
5398ac_cv_have_decl_ffs=no
5399fi
5400rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5401fi
5402echo "$as_me:$LINENO: result: $ac_cv_have_decl_ffs" >&5
5403echo "${ECHO_T}$ac_cv_have_decl_ffs" >&6
5404if test $ac_cv_have_decl_ffs = yes; then
5405
5406cat >>confdefs.h <<_ACEOF
5407#define HAVE_DECL_FFS 1
5408_ACEOF
5409
5410
5411else
5412  cat >>confdefs.h <<_ACEOF
5413#define HAVE_DECL_FFS 0
5414_ACEOF
5415
5416
5417fi
5418echo "$as_me:$LINENO: checking whether asprintf is declared" >&5
5419echo $ECHO_N "checking whether asprintf is declared... $ECHO_C" >&6
5420if test "${ac_cv_have_decl_asprintf+set}" = set; then
5421  echo $ECHO_N "(cached) $ECHO_C" >&6
5422else
5423  cat >conftest.$ac_ext <<_ACEOF
5424/* confdefs.h.  */
5425_ACEOF
5426cat confdefs.h >>conftest.$ac_ext
5427cat >>conftest.$ac_ext <<_ACEOF
5428/* end confdefs.h.  */
5429$ac_includes_default
5430int
5431main ()
5432{
5433#ifndef asprintf
5434  char *p = (char *) asprintf;
5435#endif
5436
5437  ;
5438  return 0;
5439}
5440_ACEOF
5441rm -f conftest.$ac_objext
5442if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5443  (eval $ac_compile) 2>conftest.er1
5444  ac_status=$?
5445  grep -v '^ *+' conftest.er1 >conftest.err
5446  rm -f conftest.er1
5447  cat conftest.err >&5
5448  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5449  (exit $ac_status); } &&
5450	 { ac_try='test -z "$ac_c_werror_flag"
5451			 || test ! -s conftest.err'
5452  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5453  (eval $ac_try) 2>&5
5454  ac_status=$?
5455  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5456  (exit $ac_status); }; } &&
5457	 { ac_try='test -s conftest.$ac_objext'
5458  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5459  (eval $ac_try) 2>&5
5460  ac_status=$?
5461  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5462  (exit $ac_status); }; }; then
5463  ac_cv_have_decl_asprintf=yes
5464else
5465  echo "$as_me: failed program was:" >&5
5466sed 's/^/| /' conftest.$ac_ext >&5
5467
5468ac_cv_have_decl_asprintf=no
5469fi
5470rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5471fi
5472echo "$as_me:$LINENO: result: $ac_cv_have_decl_asprintf" >&5
5473echo "${ECHO_T}$ac_cv_have_decl_asprintf" >&6
5474if test $ac_cv_have_decl_asprintf = yes; then
5475
5476cat >>confdefs.h <<_ACEOF
5477#define HAVE_DECL_ASPRINTF 1
5478_ACEOF
5479
5480
5481else
5482  cat >>confdefs.h <<_ACEOF
5483#define HAVE_DECL_ASPRINTF 0
5484_ACEOF
5485
5486
5487fi
5488echo "$as_me:$LINENO: checking whether vasprintf is declared" >&5
5489echo $ECHO_N "checking whether vasprintf is declared... $ECHO_C" >&6
5490if test "${ac_cv_have_decl_vasprintf+set}" = set; then
5491  echo $ECHO_N "(cached) $ECHO_C" >&6
5492else
5493  cat >conftest.$ac_ext <<_ACEOF
5494/* confdefs.h.  */
5495_ACEOF
5496cat confdefs.h >>conftest.$ac_ext
5497cat >>conftest.$ac_ext <<_ACEOF
5498/* end confdefs.h.  */
5499$ac_includes_default
5500int
5501main ()
5502{
5503#ifndef vasprintf
5504  char *p = (char *) vasprintf;
5505#endif
5506
5507  ;
5508  return 0;
5509}
5510_ACEOF
5511rm -f conftest.$ac_objext
5512if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5513  (eval $ac_compile) 2>conftest.er1
5514  ac_status=$?
5515  grep -v '^ *+' conftest.er1 >conftest.err
5516  rm -f conftest.er1
5517  cat conftest.err >&5
5518  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5519  (exit $ac_status); } &&
5520	 { ac_try='test -z "$ac_c_werror_flag"
5521			 || test ! -s conftest.err'
5522  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5523  (eval $ac_try) 2>&5
5524  ac_status=$?
5525  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5526  (exit $ac_status); }; } &&
5527	 { ac_try='test -s conftest.$ac_objext'
5528  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5529  (eval $ac_try) 2>&5
5530  ac_status=$?
5531  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5532  (exit $ac_status); }; }; then
5533  ac_cv_have_decl_vasprintf=yes
5534else
5535  echo "$as_me: failed program was:" >&5
5536sed 's/^/| /' conftest.$ac_ext >&5
5537
5538ac_cv_have_decl_vasprintf=no
5539fi
5540rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5541fi
5542echo "$as_me:$LINENO: result: $ac_cv_have_decl_vasprintf" >&5
5543echo "${ECHO_T}$ac_cv_have_decl_vasprintf" >&6
5544if test $ac_cv_have_decl_vasprintf = yes; then
5545
5546cat >>confdefs.h <<_ACEOF
5547#define HAVE_DECL_VASPRINTF 1
5548_ACEOF
5549
5550
5551else
5552  cat >>confdefs.h <<_ACEOF
5553#define HAVE_DECL_VASPRINTF 0
5554_ACEOF
5555
5556
5557fi
5558echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
5559echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
5560if test "${ac_cv_have_decl_snprintf+set}" = set; then
5561  echo $ECHO_N "(cached) $ECHO_C" >&6
5562else
5563  cat >conftest.$ac_ext <<_ACEOF
5564/* confdefs.h.  */
5565_ACEOF
5566cat confdefs.h >>conftest.$ac_ext
5567cat >>conftest.$ac_ext <<_ACEOF
5568/* end confdefs.h.  */
5569$ac_includes_default
5570int
5571main ()
5572{
5573#ifndef snprintf
5574  char *p = (char *) snprintf;
5575#endif
5576
5577  ;
5578  return 0;
5579}
5580_ACEOF
5581rm -f conftest.$ac_objext
5582if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5583  (eval $ac_compile) 2>conftest.er1
5584  ac_status=$?
5585  grep -v '^ *+' conftest.er1 >conftest.err
5586  rm -f conftest.er1
5587  cat conftest.err >&5
5588  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5589  (exit $ac_status); } &&
5590	 { ac_try='test -z "$ac_c_werror_flag"
5591			 || test ! -s conftest.err'
5592  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5593  (eval $ac_try) 2>&5
5594  ac_status=$?
5595  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5596  (exit $ac_status); }; } &&
5597	 { ac_try='test -s conftest.$ac_objext'
5598  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5599  (eval $ac_try) 2>&5
5600  ac_status=$?
5601  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5602  (exit $ac_status); }; }; then
5603  ac_cv_have_decl_snprintf=yes
5604else
5605  echo "$as_me: failed program was:" >&5
5606sed 's/^/| /' conftest.$ac_ext >&5
5607
5608ac_cv_have_decl_snprintf=no
5609fi
5610rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5611fi
5612echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
5613echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
5614if test $ac_cv_have_decl_snprintf = yes; then
5615
5616cat >>confdefs.h <<_ACEOF
5617#define HAVE_DECL_SNPRINTF 1
5618_ACEOF
5619
5620
5621else
5622  cat >>confdefs.h <<_ACEOF
5623#define HAVE_DECL_SNPRINTF 0
5624_ACEOF
5625
5626
5627fi
5628echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
5629echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
5630if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
5631  echo $ECHO_N "(cached) $ECHO_C" >&6
5632else
5633  cat >conftest.$ac_ext <<_ACEOF
5634/* confdefs.h.  */
5635_ACEOF
5636cat confdefs.h >>conftest.$ac_ext
5637cat >>conftest.$ac_ext <<_ACEOF
5638/* end confdefs.h.  */
5639$ac_includes_default
5640int
5641main ()
5642{
5643#ifndef vsnprintf
5644  char *p = (char *) vsnprintf;
5645#endif
5646
5647  ;
5648  return 0;
5649}
5650_ACEOF
5651rm -f conftest.$ac_objext
5652if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5653  (eval $ac_compile) 2>conftest.er1
5654  ac_status=$?
5655  grep -v '^ *+' conftest.er1 >conftest.err
5656  rm -f conftest.er1
5657  cat conftest.err >&5
5658  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5659  (exit $ac_status); } &&
5660	 { ac_try='test -z "$ac_c_werror_flag"
5661			 || test ! -s conftest.err'
5662  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5663  (eval $ac_try) 2>&5
5664  ac_status=$?
5665  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5666  (exit $ac_status); }; } &&
5667	 { ac_try='test -s conftest.$ac_objext'
5668  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5669  (eval $ac_try) 2>&5
5670  ac_status=$?
5671  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5672  (exit $ac_status); }; }; then
5673  ac_cv_have_decl_vsnprintf=yes
5674else
5675  echo "$as_me: failed program was:" >&5
5676sed 's/^/| /' conftest.$ac_ext >&5
5677
5678ac_cv_have_decl_vsnprintf=no
5679fi
5680rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5681fi
5682echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
5683echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
5684if test $ac_cv_have_decl_vsnprintf = yes; then
5685
5686cat >>confdefs.h <<_ACEOF
5687#define HAVE_DECL_VSNPRINTF 1
5688_ACEOF
5689
5690
5691else
5692  cat >>confdefs.h <<_ACEOF
5693#define HAVE_DECL_VSNPRINTF 0
5694_ACEOF
5695
5696
5697fi
5698
5699
5700
5701cat >>confdefs.h <<\_ACEOF
5702#define HAVE_SYS_ERRLIST 1
5703_ACEOF
5704
5705
5706cat >>confdefs.h <<\_ACEOF
5707#define HAVE_SYS_NERR 1
5708_ACEOF
5709
5710
5711cat >>confdefs.h <<\_ACEOF
5712#define HAVE_SYS_SIGLIST 1
5713_ACEOF
5714
5715fi
5716
5717# For each of these functions, if the host does not provide the
5718# function we want to put FN.o in LIBOBJS, and if the host does
5719# provide the function, we want to define HAVE_FN in config.h.
5720
5721setobjs=
5722CHECK=
5723target_header_dir=
5724if test -n "${with_target_subdir}"; then
5725
5726  # We are being configured as a target library.  AC_REPLACE_FUNCS
5727  # may not work correctly, because the compiler may not be able to
5728  # link executables.  Note that we may still be being configured
5729  # native.
5730
5731  # If we are being configured for newlib, we know which functions
5732  # newlib provide and which ones we will be expected to provide.
5733
5734  if test "x${with_newlib}" = "xyes"; then
5735    case $LIBOBJS in
5736    "asprintf.$ac_objext"   | \
5737  *" asprintf.$ac_objext"   | \
5738    "asprintf.$ac_objext "* | \
5739  *" asprintf.$ac_objext "* ) ;;
5740  *) LIBOBJS="$LIBOBJS asprintf.$ac_objext" ;;
5741esac
5742
5743    case $LIBOBJS in
5744    "basename.$ac_objext"   | \
5745  *" basename.$ac_objext"   | \
5746    "basename.$ac_objext "* | \
5747  *" basename.$ac_objext "* ) ;;
5748  *) LIBOBJS="$LIBOBJS basename.$ac_objext" ;;
5749esac
5750
5751    case $LIBOBJS in
5752    "insque.$ac_objext"   | \
5753  *" insque.$ac_objext"   | \
5754    "insque.$ac_objext "* | \
5755  *" insque.$ac_objext "* ) ;;
5756  *) LIBOBJS="$LIBOBJS insque.$ac_objext" ;;
5757esac
5758
5759    case $LIBOBJS in
5760    "random.$ac_objext"   | \
5761  *" random.$ac_objext"   | \
5762    "random.$ac_objext "* | \
5763  *" random.$ac_objext "* ) ;;
5764  *) LIBOBJS="$LIBOBJS random.$ac_objext" ;;
5765esac
5766
5767    case $LIBOBJS in
5768    "strdup.$ac_objext"   | \
5769  *" strdup.$ac_objext"   | \
5770    "strdup.$ac_objext "* | \
5771  *" strdup.$ac_objext "* ) ;;
5772  *) LIBOBJS="$LIBOBJS strdup.$ac_objext" ;;
5773esac
5774
5775    case $LIBOBJS in
5776    "vasprintf.$ac_objext"   | \
5777  *" vasprintf.$ac_objext"   | \
5778    "vasprintf.$ac_objext "* | \
5779  *" vasprintf.$ac_objext "* ) ;;
5780  *) LIBOBJS="$LIBOBJS vasprintf.$ac_objext" ;;
5781esac
5782
5783
5784    for f in $funcs; do
5785      case "$f" in
5786	asprintf | basename | insque | random | strdup | vasprintf)
5787	  ;;
5788	*)
5789	  n=HAVE_`echo $f | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5790	  cat >>confdefs.h <<_ACEOF
5791#define $n 1
5792_ACEOF
5793
5794	  ;;
5795      esac
5796    done
5797
5798    # newlib doesnt provide any of the variables in $vars, so we
5799    # dont have to check them here.
5800
5801    # Of the functions in $checkfuncs, newlib only has strerror.
5802    cat >>confdefs.h <<\_ACEOF
5803#define HAVE_STRERROR 1
5804_ACEOF
5805
5806
5807    setobjs=yes
5808
5809  fi
5810
5811  # If we are being configured for Mingw, we know which functions
5812  # Mingw provides and which ones we will be expected to provide.
5813
5814  case "${host}" in
5815  *-*-mingw*)
5816    case $LIBOBJS in
5817    "asprintf.$ac_objext"   | \
5818  *" asprintf.$ac_objext"   | \
5819    "asprintf.$ac_objext "* | \
5820  *" asprintf.$ac_objext "* ) ;;
5821  *) LIBOBJS="$LIBOBJS asprintf.$ac_objext" ;;
5822esac
5823
5824    case $LIBOBJS in
5825    "basename.$ac_objext"   | \
5826  *" basename.$ac_objext"   | \
5827    "basename.$ac_objext "* | \
5828  *" basename.$ac_objext "* ) ;;
5829  *) LIBOBJS="$LIBOBJS basename.$ac_objext" ;;
5830esac
5831
5832    case $LIBOBJS in
5833    "bcmp.$ac_objext"   | \
5834  *" bcmp.$ac_objext"   | \
5835    "bcmp.$ac_objext "* | \
5836  *" bcmp.$ac_objext "* ) ;;
5837  *) LIBOBJS="$LIBOBJS bcmp.$ac_objext" ;;
5838esac
5839
5840    case $LIBOBJS in
5841    "bcopy.$ac_objext"   | \
5842  *" bcopy.$ac_objext"   | \
5843    "bcopy.$ac_objext "* | \
5844  *" bcopy.$ac_objext "* ) ;;
5845  *) LIBOBJS="$LIBOBJS bcopy.$ac_objext" ;;
5846esac
5847
5848    case $LIBOBJS in
5849    "bzero.$ac_objext"   | \
5850  *" bzero.$ac_objext"   | \
5851    "bzero.$ac_objext "* | \
5852  *" bzero.$ac_objext "* ) ;;
5853  *) LIBOBJS="$LIBOBJS bzero.$ac_objext" ;;
5854esac
5855
5856    case $LIBOBJS in
5857    "clock.$ac_objext"   | \
5858  *" clock.$ac_objext"   | \
5859    "clock.$ac_objext "* | \
5860  *" clock.$ac_objext "* ) ;;
5861  *) LIBOBJS="$LIBOBJS clock.$ac_objext" ;;
5862esac
5863
5864    case $LIBOBJS in
5865    "ffs.$ac_objext"   | \
5866  *" ffs.$ac_objext"   | \
5867    "ffs.$ac_objext "* | \
5868  *" ffs.$ac_objext "* ) ;;
5869  *) LIBOBJS="$LIBOBJS ffs.$ac_objext" ;;
5870esac
5871
5872    case $LIBOBJS in
5873    "getpagesize.$ac_objext"   | \
5874  *" getpagesize.$ac_objext"   | \
5875    "getpagesize.$ac_objext "* | \
5876  *" getpagesize.$ac_objext "* ) ;;
5877  *) LIBOBJS="$LIBOBJS getpagesize.$ac_objext" ;;
5878esac
5879
5880    case $LIBOBJS in
5881    "index.$ac_objext"   | \
5882  *" index.$ac_objext"   | \
5883    "index.$ac_objext "* | \
5884  *" index.$ac_objext "* ) ;;
5885  *) LIBOBJS="$LIBOBJS index.$ac_objext" ;;
5886esac
5887
5888    case $LIBOBJS in
5889    "insque.$ac_objext"   | \
5890  *" insque.$ac_objext"   | \
5891    "insque.$ac_objext "* | \
5892  *" insque.$ac_objext "* ) ;;
5893  *) LIBOBJS="$LIBOBJS insque.$ac_objext" ;;
5894esac
5895
5896    case $LIBOBJS in
5897    "mempcpy.$ac_objext"   | \
5898  *" mempcpy.$ac_objext"   | \
5899    "mempcpy.$ac_objext "* | \
5900  *" mempcpy.$ac_objext "* ) ;;
5901  *) LIBOBJS="$LIBOBJS mempcpy.$ac_objext" ;;
5902esac
5903
5904    case $LIBOBJS in
5905    "mkstemps.$ac_objext"   | \
5906  *" mkstemps.$ac_objext"   | \
5907    "mkstemps.$ac_objext "* | \
5908  *" mkstemps.$ac_objext "* ) ;;
5909  *) LIBOBJS="$LIBOBJS mkstemps.$ac_objext" ;;
5910esac
5911
5912    case $LIBOBJS in
5913    "random.$ac_objext"   | \
5914  *" random.$ac_objext"   | \
5915    "random.$ac_objext "* | \
5916  *" random.$ac_objext "* ) ;;
5917  *) LIBOBJS="$LIBOBJS random.$ac_objext" ;;
5918esac
5919
5920    case $LIBOBJS in
5921    "rindex.$ac_objext"   | \
5922  *" rindex.$ac_objext"   | \
5923    "rindex.$ac_objext "* | \
5924  *" rindex.$ac_objext "* ) ;;
5925  *) LIBOBJS="$LIBOBJS rindex.$ac_objext" ;;
5926esac
5927
5928    case $LIBOBJS in
5929    "sigsetmask.$ac_objext"   | \
5930  *" sigsetmask.$ac_objext"   | \
5931    "sigsetmask.$ac_objext "* | \
5932  *" sigsetmask.$ac_objext "* ) ;;
5933  *) LIBOBJS="$LIBOBJS sigsetmask.$ac_objext" ;;
5934esac
5935
5936    case $LIBOBJS in
5937    "stpcpy.$ac_objext"   | \
5938  *" stpcpy.$ac_objext"   | \
5939    "stpcpy.$ac_objext "* | \
5940  *" stpcpy.$ac_objext "* ) ;;
5941  *) LIBOBJS="$LIBOBJS stpcpy.$ac_objext" ;;
5942esac
5943
5944    case $LIBOBJS in
5945    "stpncpy.$ac_objext"   | \
5946  *" stpncpy.$ac_objext"   | \
5947    "stpncpy.$ac_objext "* | \
5948  *" stpncpy.$ac_objext "* ) ;;
5949  *) LIBOBJS="$LIBOBJS stpncpy.$ac_objext" ;;
5950esac
5951
5952    case $LIBOBJS in
5953    "strndup.$ac_objext"   | \
5954  *" strndup.$ac_objext"   | \
5955    "strndup.$ac_objext "* | \
5956  *" strndup.$ac_objext "* ) ;;
5957  *) LIBOBJS="$LIBOBJS strndup.$ac_objext" ;;
5958esac
5959
5960    case $LIBOBJS in
5961    "strverscmp.$ac_objext"   | \
5962  *" strverscmp.$ac_objext"   | \
5963    "strverscmp.$ac_objext "* | \
5964  *" strverscmp.$ac_objext "* ) ;;
5965  *) LIBOBJS="$LIBOBJS strverscmp.$ac_objext" ;;
5966esac
5967
5968    case $LIBOBJS in
5969    "vasprintf.$ac_objext"   | \
5970  *" vasprintf.$ac_objext"   | \
5971    "vasprintf.$ac_objext "* | \
5972  *" vasprintf.$ac_objext "* ) ;;
5973  *) LIBOBJS="$LIBOBJS vasprintf.$ac_objext" ;;
5974esac
5975
5976    case $LIBOBJS in
5977    "waitpid.$ac_objext"   | \
5978  *" waitpid.$ac_objext"   | \
5979    "waitpid.$ac_objext "* | \
5980  *" waitpid.$ac_objext "* ) ;;
5981  *) LIBOBJS="$LIBOBJS waitpid.$ac_objext" ;;
5982esac
5983
5984
5985    for f in $funcs; do
5986      case "$f" in
5987	asprintf | basename | bcmp | bcopy | bzero | clock | ffs | getpagesize | index | insque | mempcpy | mkstemps | random | rindex | sigsetmask | stpcpy | stpncpy | strdup | strndup | strverscmp | vasprintf | waitpid)
5988	  ;;
5989	*)
5990	  n=HAVE_`echo $f | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5991	  cat >>confdefs.h <<_ACEOF
5992#define $n 1
5993_ACEOF
5994
5995	  ;;
5996      esac
5997    done
5998
5999    # Mingw doesnt provide any of the variables in $vars, so we
6000    # dont have to check them here.
6001
6002    # Of the functions in $checkfuncs, Mingw only has strerror.
6003    cat >>confdefs.h <<\_ACEOF
6004#define HAVE_STRERROR 1
6005_ACEOF
6006
6007
6008    setobjs=yes
6009    ;;
6010
6011  esac
6012
6013  # We may wish to install the target headers somewhere.
6014  # Check whether --enable-install-libiberty or --disable-install-libiberty was given.
6015if test "${enable_install_libiberty+set}" = set; then
6016  enableval="$enable_install_libiberty"
6017  enable_install_libiberty=$enableval
6018else
6019  enable_install_libiberty=no
6020fi;
6021  # Option parsed, now set things appropriately.
6022  case x"$enable_install_libiberty" in
6023    xyes|x)
6024      target_header_dir=libiberty
6025      ;;
6026    xno)
6027      target_header_dir=
6028      ;;
6029    *)
6030      # This could be sanity-checked in various ways...
6031      target_header_dir="${enable_install_libiberty}"
6032      ;;
6033  esac
6034
6035
6036else
6037
6038   # Not a target library, so we set things up to run the test suite.
6039   CHECK=really-check
6040
6041fi
6042
6043
6044
6045
6046case "${host}" in
6047  *-*-cygwin* | *-*-mingw*)
6048    cat >>confdefs.h <<\_ACEOF
6049#define HAVE_SYS_ERRLIST 1
6050_ACEOF
6051
6052    cat >>confdefs.h <<\_ACEOF
6053#define HAVE_SYS_NERR 1
6054_ACEOF
6055
6056    ;;
6057esac
6058
6059if test -z "${setobjs}"; then
6060  case "${host}" in
6061
6062  *-*-vxworks*)
6063    # Handle VxWorks configuration specially, since on VxWorks the
6064    # libraries are actually on the target board, not in the file
6065    # system.
6066    case $LIBOBJS in
6067    "basename.$ac_objext"   | \
6068  *" basename.$ac_objext"   | \
6069    "basename.$ac_objext "* | \
6070  *" basename.$ac_objext "* ) ;;
6071  *) LIBOBJS="$LIBOBJS basename.$ac_objext" ;;
6072esac
6073
6074    case $LIBOBJS in
6075    "getpagesize.$ac_objext"   | \
6076  *" getpagesize.$ac_objext"   | \
6077    "getpagesize.$ac_objext "* | \
6078  *" getpagesize.$ac_objext "* ) ;;
6079  *) LIBOBJS="$LIBOBJS getpagesize.$ac_objext" ;;
6080esac
6081
6082    case $LIBOBJS in
6083    "insque.$ac_objext"   | \
6084  *" insque.$ac_objext"   | \
6085    "insque.$ac_objext "* | \
6086  *" insque.$ac_objext "* ) ;;
6087  *) LIBOBJS="$LIBOBJS insque.$ac_objext" ;;
6088esac
6089
6090    case $LIBOBJS in
6091    "random.$ac_objext"   | \
6092  *" random.$ac_objext"   | \
6093    "random.$ac_objext "* | \
6094  *" random.$ac_objext "* ) ;;
6095  *) LIBOBJS="$LIBOBJS random.$ac_objext" ;;
6096esac
6097
6098    case $LIBOBJS in
6099    "strcasecmp.$ac_objext"   | \
6100  *" strcasecmp.$ac_objext"   | \
6101    "strcasecmp.$ac_objext "* | \
6102  *" strcasecmp.$ac_objext "* ) ;;
6103  *) LIBOBJS="$LIBOBJS strcasecmp.$ac_objext" ;;
6104esac
6105
6106    case $LIBOBJS in
6107    "strncasecmp.$ac_objext"   | \
6108  *" strncasecmp.$ac_objext"   | \
6109    "strncasecmp.$ac_objext "* | \
6110  *" strncasecmp.$ac_objext "* ) ;;
6111  *) LIBOBJS="$LIBOBJS strncasecmp.$ac_objext" ;;
6112esac
6113
6114    case $LIBOBJS in
6115    "strdup.$ac_objext"   | \
6116  *" strdup.$ac_objext"   | \
6117    "strdup.$ac_objext "* | \
6118  *" strdup.$ac_objext "* ) ;;
6119  *) LIBOBJS="$LIBOBJS strdup.$ac_objext" ;;
6120esac
6121
6122    case $LIBOBJS in
6123    "vfork.$ac_objext"   | \
6124  *" vfork.$ac_objext"   | \
6125    "vfork.$ac_objext "* | \
6126  *" vfork.$ac_objext "* ) ;;
6127  *) LIBOBJS="$LIBOBJS vfork.$ac_objext" ;;
6128esac
6129
6130    case $LIBOBJS in
6131    "waitpid.$ac_objext"   | \
6132  *" waitpid.$ac_objext"   | \
6133    "waitpid.$ac_objext "* | \
6134  *" waitpid.$ac_objext "* ) ;;
6135  *) LIBOBJS="$LIBOBJS waitpid.$ac_objext" ;;
6136esac
6137
6138    case $LIBOBJS in
6139    "vasprintf.$ac_objext"   | \
6140  *" vasprintf.$ac_objext"   | \
6141    "vasprintf.$ac_objext "* | \
6142  *" vasprintf.$ac_objext "* ) ;;
6143  *) LIBOBJS="$LIBOBJS vasprintf.$ac_objext" ;;
6144esac
6145
6146    for f in $funcs; do
6147      case "$f" in
6148	basename | getpagesize | insque | random | strcasecmp)
6149	  ;;
6150	strncasecmp | strdup | vfork | waitpid | vasprintf)
6151	  ;;
6152	*)
6153	  n=HAVE_`echo $f | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6154	  cat >>confdefs.h <<_ACEOF
6155#define $n 1
6156_ACEOF
6157
6158	  ;;
6159      esac
6160    done
6161
6162    # VxWorks doesn't provide any of the variables in $vars, so we
6163    # don't have to check them here.
6164
6165    # Of the functions in $checkfuncs, VxWorks only has strerror.
6166    cat >>confdefs.h <<\_ACEOF
6167#define HAVE_STRERROR 1
6168_ACEOF
6169
6170
6171    setobjs=yes
6172    ;;
6173
6174  *-*-msdosdjgpp)
6175    for f in atexit basename bcmp bcopy bsearch bzero calloc clock ffs \
6176             getcwd getpagesize getrusage gettimeofday \
6177             index insque memchr memcmp memcpy memmove memset psignal \
6178             putenv random rename rindex sbrk setenv stpcpy strcasecmp \
6179             strchr strdup strerror strncasecmp strrchr strstr strtod \
6180             strtol strtoul sysconf times tmpnam vfprintf vprintf \
6181             vsprintf waitpid
6182    do
6183      n=HAVE_`echo $f | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6184      cat >>confdefs.h <<_ACEOF
6185#define $n 1
6186_ACEOF
6187
6188    done
6189
6190
6191    setobjs=yes
6192    ;;
6193
6194  esac
6195fi
6196
6197if test -z "${setobjs}"; then
6198
6199  case "${host}" in
6200
6201  *-*-cygwin*)
6202    # The Cygwin library actually uses a couple of files from
6203    # libiberty when it is built.  If we are building a native
6204    # Cygwin, and we run the tests, we will appear to have these
6205    # files.  However, when we go on to build winsup, we will wind up
6206    # with a library which does not have the files, since they should
6207    # have come from libiberty.
6208
6209    # We handle this by removing the functions the winsup library
6210    # provides from our shell variables, so that they appear to be
6211    # missing.
6212
6213    # DJ - only if we're *building* cygwin, not just building *with* cygwin
6214
6215    if test -n "${with_target_subdir}"
6216    then
6217      funcs="`echo $funcs | sed -e 's/random//'`"
6218      case $LIBOBJS in
6219    "random.$ac_objext"   | \
6220  *" random.$ac_objext"   | \
6221    "random.$ac_objext "* | \
6222  *" random.$ac_objext "* ) ;;
6223  *) LIBOBJS="$LIBOBJS random.$ac_objext" ;;
6224esac
6225
6226      vars="`echo $vars | sed -e 's/sys_siglist//'`"
6227      checkfuncs="`echo $checkfuncs | sed -e 's/strsignal//' -e 's/psignal//'`"
6228    fi
6229    ;;
6230
6231  *-*-mingw32*)
6232    # Under mingw32, sys_nerr and sys_errlist exist, but they are
6233    # macros, so the test below won't find them.
6234    libiberty_cv_var_sys_nerr=yes
6235    libiberty_cv_var_sys_errlist=yes
6236    ;;
6237
6238  *-*-msdosdjgpp*)
6239    # vfork and fork are stubs.
6240    ac_cv_func_vfork_works=no
6241    ;;
6242
6243  *-*-uwin*)
6244    # Under some versions of uwin, vfork is notoriously buggy and the test
6245    # can hang configure; on other versions, vfork exists just as a stub.
6246    # FIXME: This should be removed once vfork in uwin's runtime is fixed.
6247    ac_cv_func_vfork_works=no
6248    # Under uwin 2.0+, sys_nerr and sys_errlist exist, but they are
6249    # macros (actually, these are imported from a DLL, but the end effect
6250    # is the same), so the test below won't find them.
6251    libiberty_cv_var_sys_nerr=yes
6252    libiberty_cv_var_sys_errlist=yes
6253    ;;
6254
6255  *-*-*vms*)
6256    # Under VMS, vfork works very different than on Unix. The standard test
6257    # won't work, and it isn't easily adaptable. It makes more sense to
6258    # just force it.
6259    ac_cv_func_vfork_works=yes
6260    ;;
6261
6262  esac
6263
6264  # We haven't set the list of objects yet.  Use the standard autoconf
6265  # tests.  This will only work if the compiler works.
6266  echo "$as_me:$LINENO: checking for library containing strerror" >&5
6267echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
6268if test "${ac_cv_search_strerror+set}" = set; then
6269  echo $ECHO_N "(cached) $ECHO_C" >&6
6270else
6271  ac_func_search_save_LIBS=$LIBS
6272ac_cv_search_strerror=no
6273if test x$gcc_no_link = xyes; then
6274  { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6275echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6276   { (exit 1); exit 1; }; }
6277fi
6278cat >conftest.$ac_ext <<_ACEOF
6279/* confdefs.h.  */
6280_ACEOF
6281cat confdefs.h >>conftest.$ac_ext
6282cat >>conftest.$ac_ext <<_ACEOF
6283/* end confdefs.h.  */
6284
6285/* Override any gcc2 internal prototype to avoid an error.  */
6286#ifdef __cplusplus
6287extern "C"
6288#endif
6289/* We use char because int might match the return type of a gcc2
6290   builtin and then its argument prototype would still apply.  */
6291char strerror ();
6292int
6293main ()
6294{
6295strerror ();
6296  ;
6297  return 0;
6298}
6299_ACEOF
6300rm -f conftest.$ac_objext conftest$ac_exeext
6301if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6302  (eval $ac_link) 2>conftest.er1
6303  ac_status=$?
6304  grep -v '^ *+' conftest.er1 >conftest.err
6305  rm -f conftest.er1
6306  cat conftest.err >&5
6307  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6308  (exit $ac_status); } &&
6309	 { ac_try='test -z "$ac_c_werror_flag"
6310			 || test ! -s conftest.err'
6311  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6312  (eval $ac_try) 2>&5
6313  ac_status=$?
6314  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6315  (exit $ac_status); }; } &&
6316	 { ac_try='test -s conftest$ac_exeext'
6317  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6318  (eval $ac_try) 2>&5
6319  ac_status=$?
6320  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6321  (exit $ac_status); }; }; then
6322  ac_cv_search_strerror="none required"
6323else
6324  echo "$as_me: failed program was:" >&5
6325sed 's/^/| /' conftest.$ac_ext >&5
6326
6327fi
6328rm -f conftest.err conftest.$ac_objext \
6329      conftest$ac_exeext conftest.$ac_ext
6330if test "$ac_cv_search_strerror" = no; then
6331  for ac_lib in cposix; do
6332    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6333    if test x$gcc_no_link = xyes; then
6334  { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6335echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6336   { (exit 1); exit 1; }; }
6337fi
6338cat >conftest.$ac_ext <<_ACEOF
6339/* confdefs.h.  */
6340_ACEOF
6341cat confdefs.h >>conftest.$ac_ext
6342cat >>conftest.$ac_ext <<_ACEOF
6343/* end confdefs.h.  */
6344
6345/* Override any gcc2 internal prototype to avoid an error.  */
6346#ifdef __cplusplus
6347extern "C"
6348#endif
6349/* We use char because int might match the return type of a gcc2
6350   builtin and then its argument prototype would still apply.  */
6351char strerror ();
6352int
6353main ()
6354{
6355strerror ();
6356  ;
6357  return 0;
6358}
6359_ACEOF
6360rm -f conftest.$ac_objext conftest$ac_exeext
6361if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6362  (eval $ac_link) 2>conftest.er1
6363  ac_status=$?
6364  grep -v '^ *+' conftest.er1 >conftest.err
6365  rm -f conftest.er1
6366  cat conftest.err >&5
6367  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6368  (exit $ac_status); } &&
6369	 { ac_try='test -z "$ac_c_werror_flag"
6370			 || test ! -s conftest.err'
6371  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6372  (eval $ac_try) 2>&5
6373  ac_status=$?
6374  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6375  (exit $ac_status); }; } &&
6376	 { ac_try='test -s conftest$ac_exeext'
6377  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6378  (eval $ac_try) 2>&5
6379  ac_status=$?
6380  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6381  (exit $ac_status); }; }; then
6382  ac_cv_search_strerror="-l$ac_lib"
6383break
6384else
6385  echo "$as_me: failed program was:" >&5
6386sed 's/^/| /' conftest.$ac_ext >&5
6387
6388fi
6389rm -f conftest.err conftest.$ac_objext \
6390      conftest$ac_exeext conftest.$ac_ext
6391  done
6392fi
6393LIBS=$ac_func_search_save_LIBS
6394fi
6395echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
6396echo "${ECHO_T}$ac_cv_search_strerror" >&6
6397if test "$ac_cv_search_strerror" != no; then
6398  test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
6399
6400fi
6401
6402
6403for ac_func in $funcs
6404do
6405as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6406echo "$as_me:$LINENO: checking for $ac_func" >&5
6407echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6408if eval "test \"\${$as_ac_var+set}\" = set"; then
6409  echo $ECHO_N "(cached) $ECHO_C" >&6
6410else
6411  if test x$gcc_no_link = xyes; then
6412  { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6413echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6414   { (exit 1); exit 1; }; }
6415fi
6416cat >conftest.$ac_ext <<_ACEOF
6417/* confdefs.h.  */
6418_ACEOF
6419cat confdefs.h >>conftest.$ac_ext
6420cat >>conftest.$ac_ext <<_ACEOF
6421/* end confdefs.h.  */
6422/* System header to define __stub macros and hopefully few prototypes,
6423    which can conflict with char $ac_func (); below.
6424    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6425    <limits.h> exists even on freestanding compilers.  Under hpux,
6426    including <limits.h> includes <sys/time.h> and causes problems
6427    checking for functions defined therein.  */
6428#if defined (__STDC__) && !defined (_HPUX_SOURCE)
6429# include <limits.h>
6430#else
6431# include <assert.h>
6432#endif
6433/* Override any gcc2 internal prototype to avoid an error.  */
6434#ifdef __cplusplus
6435extern "C"
6436{
6437#endif
6438/* We use char because int might match the return type of a gcc2
6439   builtin and then its argument prototype would still apply.  */
6440char $ac_func ();
6441/* The GNU C library defines this for functions which it implements
6442    to always fail with ENOSYS.  Some functions are actually named
6443    something starting with __ and the normal name is an alias.  */
6444#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6445choke me
6446#else
6447char (*f) () = $ac_func;
6448#endif
6449#ifdef __cplusplus
6450}
6451#endif
6452
6453int
6454main ()
6455{
6456return f != $ac_func;
6457  ;
6458  return 0;
6459}
6460_ACEOF
6461rm -f conftest.$ac_objext conftest$ac_exeext
6462if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6463  (eval $ac_link) 2>conftest.er1
6464  ac_status=$?
6465  grep -v '^ *+' conftest.er1 >conftest.err
6466  rm -f conftest.er1
6467  cat conftest.err >&5
6468  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6469  (exit $ac_status); } &&
6470	 { ac_try='test -z "$ac_c_werror_flag"
6471			 || test ! -s conftest.err'
6472  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6473  (eval $ac_try) 2>&5
6474  ac_status=$?
6475  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6476  (exit $ac_status); }; } &&
6477	 { ac_try='test -s conftest$ac_exeext'
6478  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6479  (eval $ac_try) 2>&5
6480  ac_status=$?
6481  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6482  (exit $ac_status); }; }; then
6483  eval "$as_ac_var=yes"
6484else
6485  echo "$as_me: failed program was:" >&5
6486sed 's/^/| /' conftest.$ac_ext >&5
6487
6488eval "$as_ac_var=no"
6489fi
6490rm -f conftest.err conftest.$ac_objext \
6491      conftest$ac_exeext conftest.$ac_ext
6492fi
6493echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6494echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6495if test `eval echo '${'$as_ac_var'}'` = yes; then
6496  cat >>confdefs.h <<_ACEOF
6497#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6498_ACEOF
6499
6500else
6501  case $LIBOBJS in
6502    "$ac_func.$ac_objext"   | \
6503  *" $ac_func.$ac_objext"   | \
6504    "$ac_func.$ac_objext "* | \
6505  *" $ac_func.$ac_objext "* ) ;;
6506  *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
6507esac
6508
6509fi
6510done
6511
6512
6513  echo "$as_me:$LINENO: checking whether alloca needs Cray hooks" >&5
6514echo $ECHO_N "checking whether alloca needs Cray hooks... $ECHO_C" >&6
6515if test "${ac_cv_os_cray+set}" = set; then
6516  echo $ECHO_N "(cached) $ECHO_C" >&6
6517else
6518  cat >conftest.$ac_ext <<_ACEOF
6519/* confdefs.h.  */
6520_ACEOF
6521cat confdefs.h >>conftest.$ac_ext
6522cat >>conftest.$ac_ext <<_ACEOF
6523/* end confdefs.h.  */
6524#if defined(CRAY) && ! defined(CRAY2)
6525webecray
6526#else
6527wenotbecray
6528#endif
6529
6530_ACEOF
6531if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6532  $EGREP "webecray" >/dev/null 2>&1; then
6533  ac_cv_os_cray=yes
6534else
6535  ac_cv_os_cray=no
6536fi
6537rm -f conftest*
6538
6539fi
6540echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
6541echo "${ECHO_T}$ac_cv_os_cray" >&6
6542if test $ac_cv_os_cray = yes; then
6543  for ac_func in _getb67 GETB67 getb67; do
6544    as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6545echo "$as_me:$LINENO: checking for $ac_func" >&5
6546echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6547if eval "test \"\${$as_ac_var+set}\" = set"; then
6548  echo $ECHO_N "(cached) $ECHO_C" >&6
6549else
6550  if test x$gcc_no_link = xyes; then
6551  { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6552echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6553   { (exit 1); exit 1; }; }
6554fi
6555cat >conftest.$ac_ext <<_ACEOF
6556/* confdefs.h.  */
6557_ACEOF
6558cat confdefs.h >>conftest.$ac_ext
6559cat >>conftest.$ac_ext <<_ACEOF
6560/* end confdefs.h.  */
6561/* System header to define __stub macros and hopefully few prototypes,
6562    which can conflict with char $ac_func (); below.
6563    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6564    <limits.h> exists even on freestanding compilers.  Under hpux,
6565    including <limits.h> includes <sys/time.h> and causes problems
6566    checking for functions defined therein.  */
6567#if defined (__STDC__) && !defined (_HPUX_SOURCE)
6568# include <limits.h>
6569#else
6570# include <assert.h>
6571#endif
6572/* Override any gcc2 internal prototype to avoid an error.  */
6573#ifdef __cplusplus
6574extern "C"
6575{
6576#endif
6577/* We use char because int might match the return type of a gcc2
6578   builtin and then its argument prototype would still apply.  */
6579char $ac_func ();
6580/* The GNU C library defines this for functions which it implements
6581    to always fail with ENOSYS.  Some functions are actually named
6582    something starting with __ and the normal name is an alias.  */
6583#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6584choke me
6585#else
6586char (*f) () = $ac_func;
6587#endif
6588#ifdef __cplusplus
6589}
6590#endif
6591
6592int
6593main ()
6594{
6595return f != $ac_func;
6596  ;
6597  return 0;
6598}
6599_ACEOF
6600rm -f conftest.$ac_objext conftest$ac_exeext
6601if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6602  (eval $ac_link) 2>conftest.er1
6603  ac_status=$?
6604  grep -v '^ *+' conftest.er1 >conftest.err
6605  rm -f conftest.er1
6606  cat conftest.err >&5
6607  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6608  (exit $ac_status); } &&
6609	 { ac_try='test -z "$ac_c_werror_flag"
6610			 || test ! -s conftest.err'
6611  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6612  (eval $ac_try) 2>&5
6613  ac_status=$?
6614  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6615  (exit $ac_status); }; } &&
6616	 { ac_try='test -s conftest$ac_exeext'
6617  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6618  (eval $ac_try) 2>&5
6619  ac_status=$?
6620  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6621  (exit $ac_status); }; }; then
6622  eval "$as_ac_var=yes"
6623else
6624  echo "$as_me: failed program was:" >&5
6625sed 's/^/| /' conftest.$ac_ext >&5
6626
6627eval "$as_ac_var=no"
6628fi
6629rm -f conftest.err conftest.$ac_objext \
6630      conftest$ac_exeext conftest.$ac_ext
6631fi
6632echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6633echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6634if test `eval echo '${'$as_ac_var'}'` = yes; then
6635
6636cat >>confdefs.h <<_ACEOF
6637#define CRAY_STACKSEG_END $ac_func
6638_ACEOF
6639  break
6640fi
6641
6642  done
6643fi
6644
6645echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
6646echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
6647if test "${ac_cv_c_stack_direction+set}" = set; then
6648  echo $ECHO_N "(cached) $ECHO_C" >&6
6649else
6650  if test "$cross_compiling" = yes; then
6651  ac_cv_c_stack_direction=0
6652else
6653  cat >conftest.$ac_ext <<_ACEOF
6654/* confdefs.h.  */
6655_ACEOF
6656cat confdefs.h >>conftest.$ac_ext
6657cat >>conftest.$ac_ext <<_ACEOF
6658/* end confdefs.h.  */
6659find_stack_direction ()
6660{
6661  static char *addr = 0;
6662  auto char dummy;
6663  if (addr == 0)
6664    {
6665      addr = &dummy;
6666      return find_stack_direction ();
6667    }
6668  else
6669    return (&dummy > addr) ? 1 : -1;
6670}
6671main ()
6672{
6673  exit (find_stack_direction() < 0);
6674}
6675_ACEOF
6676rm -f conftest$ac_exeext
6677if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6678  (eval $ac_link) 2>&5
6679  ac_status=$?
6680  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6681  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6682  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6683  (eval $ac_try) 2>&5
6684  ac_status=$?
6685  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6686  (exit $ac_status); }; }; then
6687  ac_cv_c_stack_direction=1
6688else
6689  echo "$as_me: program exited with status $ac_status" >&5
6690echo "$as_me: failed program was:" >&5
6691sed 's/^/| /' conftest.$ac_ext >&5
6692
6693( exit $ac_status )
6694ac_cv_c_stack_direction=-1
6695fi
6696rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6697fi
6698fi
6699echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
6700echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
6701
6702cat >>confdefs.h <<_ACEOF
6703#define STACK_DIRECTION $ac_cv_c_stack_direction
6704_ACEOF
6705
6706
6707
6708
6709for ac_header in unistd.h vfork.h
6710do
6711as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6712echo "$as_me:$LINENO: checking for $ac_header" >&5
6713echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6714if eval "test \"\${$as_ac_Header+set}\" = set"; then
6715  echo $ECHO_N "(cached) $ECHO_C" >&6
6716else
6717  cat >conftest.$ac_ext <<_ACEOF
6718/* confdefs.h.  */
6719_ACEOF
6720cat confdefs.h >>conftest.$ac_ext
6721cat >>conftest.$ac_ext <<_ACEOF
6722/* end confdefs.h.  */
6723#include <$ac_header>
6724_ACEOF
6725if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6726  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6727  ac_status=$?
6728  grep -v '^ *+' conftest.er1 >conftest.err
6729  rm -f conftest.er1
6730  cat conftest.err >&5
6731  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6732  (exit $ac_status); } >/dev/null; then
6733  if test -s conftest.err; then
6734    ac_cpp_err=$ac_c_preproc_warn_flag
6735    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6736  else
6737    ac_cpp_err=
6738  fi
6739else
6740  ac_cpp_err=yes
6741fi
6742if test -z "$ac_cpp_err"; then
6743  eval "$as_ac_Header=yes"
6744else
6745  echo "$as_me: failed program was:" >&5
6746sed 's/^/| /' conftest.$ac_ext >&5
6747
6748  eval "$as_ac_Header=no"
6749fi
6750rm -f conftest.err conftest.$ac_ext
6751fi
6752echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6753echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6754if test `eval echo '${'$as_ac_Header'}'` = yes; then
6755  cat >>confdefs.h <<_ACEOF
6756#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6757_ACEOF
6758
6759fi
6760done
6761
6762
6763
6764for ac_func in fork vfork
6765do
6766as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6767echo "$as_me:$LINENO: checking for $ac_func" >&5
6768echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6769if eval "test \"\${$as_ac_var+set}\" = set"; then
6770  echo $ECHO_N "(cached) $ECHO_C" >&6
6771else
6772  if test x$gcc_no_link = xyes; then
6773  { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6774echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6775   { (exit 1); exit 1; }; }
6776fi
6777cat >conftest.$ac_ext <<_ACEOF
6778/* confdefs.h.  */
6779_ACEOF
6780cat confdefs.h >>conftest.$ac_ext
6781cat >>conftest.$ac_ext <<_ACEOF
6782/* end confdefs.h.  */
6783/* System header to define __stub macros and hopefully few prototypes,
6784    which can conflict with char $ac_func (); below.
6785    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6786    <limits.h> exists even on freestanding compilers.  Under hpux,
6787    including <limits.h> includes <sys/time.h> and causes problems
6788    checking for functions defined therein.  */
6789#if defined (__STDC__) && !defined (_HPUX_SOURCE)
6790# include <limits.h>
6791#else
6792# include <assert.h>
6793#endif
6794/* Override any gcc2 internal prototype to avoid an error.  */
6795#ifdef __cplusplus
6796extern "C"
6797{
6798#endif
6799/* We use char because int might match the return type of a gcc2
6800   builtin and then its argument prototype would still apply.  */
6801char $ac_func ();
6802/* The GNU C library defines this for functions which it implements
6803    to always fail with ENOSYS.  Some functions are actually named
6804    something starting with __ and the normal name is an alias.  */
6805#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6806choke me
6807#else
6808char (*f) () = $ac_func;
6809#endif
6810#ifdef __cplusplus
6811}
6812#endif
6813
6814int
6815main ()
6816{
6817return f != $ac_func;
6818  ;
6819  return 0;
6820}
6821_ACEOF
6822rm -f conftest.$ac_objext conftest$ac_exeext
6823if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6824  (eval $ac_link) 2>conftest.er1
6825  ac_status=$?
6826  grep -v '^ *+' conftest.er1 >conftest.err
6827  rm -f conftest.er1
6828  cat conftest.err >&5
6829  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6830  (exit $ac_status); } &&
6831	 { ac_try='test -z "$ac_c_werror_flag"
6832			 || test ! -s conftest.err'
6833  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6834  (eval $ac_try) 2>&5
6835  ac_status=$?
6836  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6837  (exit $ac_status); }; } &&
6838	 { ac_try='test -s conftest$ac_exeext'
6839  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6840  (eval $ac_try) 2>&5
6841  ac_status=$?
6842  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6843  (exit $ac_status); }; }; then
6844  eval "$as_ac_var=yes"
6845else
6846  echo "$as_me: failed program was:" >&5
6847sed 's/^/| /' conftest.$ac_ext >&5
6848
6849eval "$as_ac_var=no"
6850fi
6851rm -f conftest.err conftest.$ac_objext \
6852      conftest$ac_exeext conftest.$ac_ext
6853fi
6854echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6855echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6856if test `eval echo '${'$as_ac_var'}'` = yes; then
6857  cat >>confdefs.h <<_ACEOF
6858#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6859_ACEOF
6860
6861fi
6862done
6863
6864if test "x$ac_cv_func_fork" = xyes; then
6865  echo "$as_me:$LINENO: checking for working fork" >&5
6866echo $ECHO_N "checking for working fork... $ECHO_C" >&6
6867if test "${ac_cv_func_fork_works+set}" = set; then
6868  echo $ECHO_N "(cached) $ECHO_C" >&6
6869else
6870  if test "$cross_compiling" = yes; then
6871  ac_cv_func_fork_works=cross
6872else
6873  cat >conftest.$ac_ext <<_ACEOF
6874/* By Ruediger Kuhlmann. */
6875      #include <sys/types.h>
6876      #if HAVE_UNISTD_H
6877      # include <unistd.h>
6878      #endif
6879      /* Some systems only have a dummy stub for fork() */
6880      int main ()
6881      {
6882	if (fork() < 0)
6883	  exit (1);
6884	exit (0);
6885      }
6886_ACEOF
6887rm -f conftest$ac_exeext
6888if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6889  (eval $ac_link) 2>&5
6890  ac_status=$?
6891  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6892  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6893  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6894  (eval $ac_try) 2>&5
6895  ac_status=$?
6896  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6897  (exit $ac_status); }; }; then
6898  ac_cv_func_fork_works=yes
6899else
6900  echo "$as_me: program exited with status $ac_status" >&5
6901echo "$as_me: failed program was:" >&5
6902sed 's/^/| /' conftest.$ac_ext >&5
6903
6904( exit $ac_status )
6905ac_cv_func_fork_works=no
6906fi
6907rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6908fi
6909fi
6910echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
6911echo "${ECHO_T}$ac_cv_func_fork_works" >&6
6912
6913else
6914  ac_cv_func_fork_works=$ac_cv_func_fork
6915fi
6916if test "x$ac_cv_func_fork_works" = xcross; then
6917  case $host in
6918    *-*-amigaos* | *-*-msdosdjgpp*)
6919      # Override, as these systems have only a dummy fork() stub
6920      ac_cv_func_fork_works=no
6921      ;;
6922    *)
6923      ac_cv_func_fork_works=yes
6924      ;;
6925  esac
6926  { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
6927echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
6928fi
6929ac_cv_func_vfork_works=$ac_cv_func_vfork
6930if test "x$ac_cv_func_vfork" = xyes; then
6931  echo "$as_me:$LINENO: checking for working vfork" >&5
6932echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
6933if test "${ac_cv_func_vfork_works+set}" = set; then
6934  echo $ECHO_N "(cached) $ECHO_C" >&6
6935else
6936  if test "$cross_compiling" = yes; then
6937  ac_cv_func_vfork_works=cross
6938else
6939  cat >conftest.$ac_ext <<_ACEOF
6940/* confdefs.h.  */
6941_ACEOF
6942cat confdefs.h >>conftest.$ac_ext
6943cat >>conftest.$ac_ext <<_ACEOF
6944/* end confdefs.h.  */
6945/* Thanks to Paul Eggert for this test.  */
6946#include <stdio.h>
6947#include <stdlib.h>
6948#include <sys/types.h>
6949#include <sys/stat.h>
6950#include <sys/wait.h>
6951#if HAVE_UNISTD_H
6952# include <unistd.h>
6953#endif
6954#if HAVE_VFORK_H
6955# include <vfork.h>
6956#endif
6957/* On some sparc systems, changes by the child to local and incoming
6958   argument registers are propagated back to the parent.  The compiler
6959   is told about this with #include <vfork.h>, but some compilers
6960   (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
6961   static variable whose address is put into a register that is
6962   clobbered by the vfork.  */
6963static void
6964#ifdef __cplusplus
6965sparc_address_test (int arg)
6966# else
6967sparc_address_test (arg) int arg;
6968#endif
6969{
6970  static pid_t child;
6971  if (!child) {
6972    child = vfork ();
6973    if (child < 0) {
6974      perror ("vfork");
6975      _exit(2);
6976    }
6977    if (!child) {
6978      arg = getpid();
6979      write(-1, "", 0);
6980      _exit (arg);
6981    }
6982  }
6983}
6984
6985int
6986main ()
6987{
6988  pid_t parent = getpid ();
6989  pid_t child;
6990
6991  sparc_address_test (0);
6992
6993  child = vfork ();
6994
6995  if (child == 0) {
6996    /* Here is another test for sparc vfork register problems.  This
6997       test uses lots of local variables, at least as many local
6998       variables as main has allocated so far including compiler
6999       temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
7000       4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
7001       reuse the register of parent for one of the local variables,
7002       since it will think that parent can't possibly be used any more
7003       in this routine.  Assigning to the local variable will thus
7004       munge parent in the parent process.  */
7005    pid_t
7006      p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
7007      p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
7008    /* Convince the compiler that p..p7 are live; otherwise, it might
7009       use the same hardware register for all 8 local variables.  */
7010    if (p != p1 || p != p2 || p != p3 || p != p4
7011	|| p != p5 || p != p6 || p != p7)
7012      _exit(1);
7013
7014    /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
7015       from child file descriptors.  If the child closes a descriptor
7016       before it execs or exits, this munges the parent's descriptor
7017       as well.  Test for this by closing stdout in the child.  */
7018    _exit(close(fileno(stdout)) != 0);
7019  } else {
7020    int status;
7021    struct stat st;
7022
7023    while (wait(&status) != child)
7024      ;
7025    exit(
7026	 /* Was there some problem with vforking?  */
7027	 child < 0
7028
7029	 /* Did the child fail?  (This shouldn't happen.)  */
7030	 || status
7031
7032	 /* Did the vfork/compiler bug occur?  */
7033	 || parent != getpid()
7034
7035	 /* Did the file descriptor bug occur?  */
7036	 || fstat(fileno(stdout), &st) != 0
7037	 );
7038  }
7039}
7040_ACEOF
7041rm -f conftest$ac_exeext
7042if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7043  (eval $ac_link) 2>&5
7044  ac_status=$?
7045  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7046  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7047  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7048  (eval $ac_try) 2>&5
7049  ac_status=$?
7050  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7051  (exit $ac_status); }; }; then
7052  ac_cv_func_vfork_works=yes
7053else
7054  echo "$as_me: program exited with status $ac_status" >&5
7055echo "$as_me: failed program was:" >&5
7056sed 's/^/| /' conftest.$ac_ext >&5
7057
7058( exit $ac_status )
7059ac_cv_func_vfork_works=no
7060fi
7061rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7062fi
7063fi
7064echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
7065echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
7066
7067fi;
7068if test "x$ac_cv_func_fork_works" = xcross; then
7069  ac_cv_func_vfork_works=$ac_cv_func_vfork
7070  { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
7071echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
7072fi
7073
7074if test "x$ac_cv_func_vfork_works" = xyes; then
7075
7076cat >>confdefs.h <<\_ACEOF
7077#define HAVE_WORKING_VFORK 1
7078_ACEOF
7079
7080else
7081
7082cat >>confdefs.h <<\_ACEOF
7083#define vfork fork
7084_ACEOF
7085
7086fi
7087if test "x$ac_cv_func_fork_works" = xyes; then
7088
7089cat >>confdefs.h <<\_ACEOF
7090#define HAVE_WORKING_FORK 1
7091_ACEOF
7092
7093fi
7094
7095  if test $ac_cv_func_vfork_works = no; then
7096    case $LIBOBJS in
7097    "vfork.$ac_objext"   | \
7098  *" vfork.$ac_objext"   | \
7099    "vfork.$ac_objext "* | \
7100  *" vfork.$ac_objext "* ) ;;
7101  *) LIBOBJS="$LIBOBJS vfork.$ac_objext" ;;
7102esac
7103
7104  fi
7105  # We only need _doprnt if we might use it to implement v*printf.
7106  if test $ac_cv_func_vprintf != yes \
7107     || test $ac_cv_func_vfprintf != yes \
7108     || test $ac_cv_func_vsprintf != yes; then
7109
7110for ac_func in _doprnt
7111do
7112as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7113echo "$as_me:$LINENO: checking for $ac_func" >&5
7114echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7115if eval "test \"\${$as_ac_var+set}\" = set"; then
7116  echo $ECHO_N "(cached) $ECHO_C" >&6
7117else
7118  if test x$gcc_no_link = xyes; then
7119  { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7120echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7121   { (exit 1); exit 1; }; }
7122fi
7123cat >conftest.$ac_ext <<_ACEOF
7124/* confdefs.h.  */
7125_ACEOF
7126cat confdefs.h >>conftest.$ac_ext
7127cat >>conftest.$ac_ext <<_ACEOF
7128/* end confdefs.h.  */
7129/* System header to define __stub macros and hopefully few prototypes,
7130    which can conflict with char $ac_func (); below.
7131    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7132    <limits.h> exists even on freestanding compilers.  Under hpux,
7133    including <limits.h> includes <sys/time.h> and causes problems
7134    checking for functions defined therein.  */
7135#if defined (__STDC__) && !defined (_HPUX_SOURCE)
7136# include <limits.h>
7137#else
7138# include <assert.h>
7139#endif
7140/* Override any gcc2 internal prototype to avoid an error.  */
7141#ifdef __cplusplus
7142extern "C"
7143{
7144#endif
7145/* We use char because int might match the return type of a gcc2
7146   builtin and then its argument prototype would still apply.  */
7147char $ac_func ();
7148/* The GNU C library defines this for functions which it implements
7149    to always fail with ENOSYS.  Some functions are actually named
7150    something starting with __ and the normal name is an alias.  */
7151#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7152choke me
7153#else
7154char (*f) () = $ac_func;
7155#endif
7156#ifdef __cplusplus
7157}
7158#endif
7159
7160int
7161main ()
7162{
7163return f != $ac_func;
7164  ;
7165  return 0;
7166}
7167_ACEOF
7168rm -f conftest.$ac_objext conftest$ac_exeext
7169if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7170  (eval $ac_link) 2>conftest.er1
7171  ac_status=$?
7172  grep -v '^ *+' conftest.er1 >conftest.err
7173  rm -f conftest.er1
7174  cat conftest.err >&5
7175  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7176  (exit $ac_status); } &&
7177	 { ac_try='test -z "$ac_c_werror_flag"
7178			 || test ! -s conftest.err'
7179  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7180  (eval $ac_try) 2>&5
7181  ac_status=$?
7182  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7183  (exit $ac_status); }; } &&
7184	 { ac_try='test -s conftest$ac_exeext'
7185  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7186  (eval $ac_try) 2>&5
7187  ac_status=$?
7188  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7189  (exit $ac_status); }; }; then
7190  eval "$as_ac_var=yes"
7191else
7192  echo "$as_me: failed program was:" >&5
7193sed 's/^/| /' conftest.$ac_ext >&5
7194
7195eval "$as_ac_var=no"
7196fi
7197rm -f conftest.err conftest.$ac_objext \
7198      conftest$ac_exeext conftest.$ac_ext
7199fi
7200echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7201echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7202if test `eval echo '${'$as_ac_var'}'` = yes; then
7203  cat >>confdefs.h <<_ACEOF
7204#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7205_ACEOF
7206
7207else
7208  case $LIBOBJS in
7209    "$ac_func.$ac_objext"   | \
7210  *" $ac_func.$ac_objext"   | \
7211    "$ac_func.$ac_objext "* | \
7212  *" $ac_func.$ac_objext "* ) ;;
7213  *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
7214esac
7215
7216fi
7217done
7218
7219
7220  else
7221
7222for ac_func in _doprnt
7223do
7224as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7225echo "$as_me:$LINENO: checking for $ac_func" >&5
7226echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7227if eval "test \"\${$as_ac_var+set}\" = set"; then
7228  echo $ECHO_N "(cached) $ECHO_C" >&6
7229else
7230  if test x$gcc_no_link = xyes; then
7231  { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7232echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7233   { (exit 1); exit 1; }; }
7234fi
7235cat >conftest.$ac_ext <<_ACEOF
7236/* confdefs.h.  */
7237_ACEOF
7238cat confdefs.h >>conftest.$ac_ext
7239cat >>conftest.$ac_ext <<_ACEOF
7240/* end confdefs.h.  */
7241/* System header to define __stub macros and hopefully few prototypes,
7242    which can conflict with char $ac_func (); below.
7243    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7244    <limits.h> exists even on freestanding compilers.  Under hpux,
7245    including <limits.h> includes <sys/time.h> and causes problems
7246    checking for functions defined therein.  */
7247#if defined (__STDC__) && !defined (_HPUX_SOURCE)
7248# include <limits.h>
7249#else
7250# include <assert.h>
7251#endif
7252/* Override any gcc2 internal prototype to avoid an error.  */
7253#ifdef __cplusplus
7254extern "C"
7255{
7256#endif
7257/* We use char because int might match the return type of a gcc2
7258   builtin and then its argument prototype would still apply.  */
7259char $ac_func ();
7260/* The GNU C library defines this for functions which it implements
7261    to always fail with ENOSYS.  Some functions are actually named
7262    something starting with __ and the normal name is an alias.  */
7263#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7264choke me
7265#else
7266char (*f) () = $ac_func;
7267#endif
7268#ifdef __cplusplus
7269}
7270#endif
7271
7272int
7273main ()
7274{
7275return f != $ac_func;
7276  ;
7277  return 0;
7278}
7279_ACEOF
7280rm -f conftest.$ac_objext conftest$ac_exeext
7281if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7282  (eval $ac_link) 2>conftest.er1
7283  ac_status=$?
7284  grep -v '^ *+' conftest.er1 >conftest.err
7285  rm -f conftest.er1
7286  cat conftest.err >&5
7287  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7288  (exit $ac_status); } &&
7289	 { ac_try='test -z "$ac_c_werror_flag"
7290			 || test ! -s conftest.err'
7291  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7292  (eval $ac_try) 2>&5
7293  ac_status=$?
7294  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7295  (exit $ac_status); }; } &&
7296	 { ac_try='test -s conftest$ac_exeext'
7297  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7298  (eval $ac_try) 2>&5
7299  ac_status=$?
7300  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7301  (exit $ac_status); }; }; then
7302  eval "$as_ac_var=yes"
7303else
7304  echo "$as_me: failed program was:" >&5
7305sed 's/^/| /' conftest.$ac_ext >&5
7306
7307eval "$as_ac_var=no"
7308fi
7309rm -f conftest.err conftest.$ac_objext \
7310      conftest$ac_exeext conftest.$ac_ext
7311fi
7312echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7313echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7314if test `eval echo '${'$as_ac_var'}'` = yes; then
7315  cat >>confdefs.h <<_ACEOF
7316#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7317_ACEOF
7318
7319fi
7320done
7321
7322  fi
7323
7324  for v in $vars; do
7325    echo "$as_me:$LINENO: checking for $v" >&5
7326echo $ECHO_N "checking for $v... $ECHO_C" >&6
7327    if eval "test \"\${libiberty_cv_var_$v+set}\" = set"; then
7328  echo $ECHO_N "(cached) $ECHO_C" >&6
7329else
7330  if test x$gcc_no_link = xyes; then
7331  { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7332echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7333   { (exit 1); exit 1; }; }
7334fi
7335cat >conftest.$ac_ext <<_ACEOF
7336/* confdefs.h.  */
7337_ACEOF
7338cat confdefs.h >>conftest.$ac_ext
7339cat >>conftest.$ac_ext <<_ACEOF
7340/* end confdefs.h.  */
7341int *p;
7342int
7343main ()
7344{
7345extern int $v []; p = $v;
7346  ;
7347  return 0;
7348}
7349_ACEOF
7350rm -f conftest.$ac_objext conftest$ac_exeext
7351if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7352  (eval $ac_link) 2>conftest.er1
7353  ac_status=$?
7354  grep -v '^ *+' conftest.er1 >conftest.err
7355  rm -f conftest.er1
7356  cat conftest.err >&5
7357  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7358  (exit $ac_status); } &&
7359	 { ac_try='test -z "$ac_c_werror_flag"
7360			 || test ! -s conftest.err'
7361  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7362  (eval $ac_try) 2>&5
7363  ac_status=$?
7364  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7365  (exit $ac_status); }; } &&
7366	 { ac_try='test -s conftest$ac_exeext'
7367  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7368  (eval $ac_try) 2>&5
7369  ac_status=$?
7370  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7371  (exit $ac_status); }; }; then
7372  eval "libiberty_cv_var_$v=yes"
7373else
7374  echo "$as_me: failed program was:" >&5
7375sed 's/^/| /' conftest.$ac_ext >&5
7376
7377eval "libiberty_cv_var_$v=no"
7378fi
7379rm -f conftest.err conftest.$ac_objext \
7380      conftest$ac_exeext conftest.$ac_ext
7381fi
7382
7383    if eval "test \"`echo '$libiberty_cv_var_'$v`\" = yes"; then
7384      echo "$as_me:$LINENO: result: yes" >&5
7385echo "${ECHO_T}yes" >&6
7386      n=HAVE_`echo $v | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7387      cat >>confdefs.h <<_ACEOF
7388#define $n 1
7389_ACEOF
7390
7391    else
7392      echo "$as_me:$LINENO: result: no" >&5
7393echo "${ECHO_T}no" >&6
7394    fi
7395  done
7396
7397  # special check for _system_configuration because AIX <4.3.2 do not
7398  # contain the `physmem' member.
7399  echo "$as_me:$LINENO: checking for external symbol _system_configuration" >&5
7400echo $ECHO_N "checking for external symbol _system_configuration... $ECHO_C" >&6
7401  cat >conftest.$ac_ext <<_ACEOF
7402/* confdefs.h.  */
7403_ACEOF
7404cat confdefs.h >>conftest.$ac_ext
7405cat >>conftest.$ac_ext <<_ACEOF
7406/* end confdefs.h.  */
7407#include <sys/systemcfg.h>
7408int
7409main ()
7410{
7411double x = _system_configuration.physmem;
7412  ;
7413  return 0;
7414}
7415_ACEOF
7416rm -f conftest.$ac_objext
7417if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7418  (eval $ac_compile) 2>conftest.er1
7419  ac_status=$?
7420  grep -v '^ *+' conftest.er1 >conftest.err
7421  rm -f conftest.er1
7422  cat conftest.err >&5
7423  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7424  (exit $ac_status); } &&
7425	 { ac_try='test -z "$ac_c_werror_flag"
7426			 || test ! -s conftest.err'
7427  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7428  (eval $ac_try) 2>&5
7429  ac_status=$?
7430  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7431  (exit $ac_status); }; } &&
7432	 { ac_try='test -s conftest.$ac_objext'
7433  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7434  (eval $ac_try) 2>&5
7435  ac_status=$?
7436  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7437  (exit $ac_status); }; }; then
7438  echo "$as_me:$LINENO: result: yes" >&5
7439echo "${ECHO_T}yes" >&6
7440
7441cat >>confdefs.h <<\_ACEOF
7442#define HAVE__SYSTEM_CONFIGURATION 1
7443_ACEOF
7444
7445else
7446  echo "$as_me: failed program was:" >&5
7447sed 's/^/| /' conftest.$ac_ext >&5
7448
7449echo "$as_me:$LINENO: result: no" >&5
7450echo "${ECHO_T}no" >&6
7451fi
7452rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7453
7454
7455for ac_func in $checkfuncs
7456do
7457as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7458echo "$as_me:$LINENO: checking for $ac_func" >&5
7459echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7460if eval "test \"\${$as_ac_var+set}\" = set"; then
7461  echo $ECHO_N "(cached) $ECHO_C" >&6
7462else
7463  if test x$gcc_no_link = xyes; then
7464  { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7465echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7466   { (exit 1); exit 1; }; }
7467fi
7468cat >conftest.$ac_ext <<_ACEOF
7469/* confdefs.h.  */
7470_ACEOF
7471cat confdefs.h >>conftest.$ac_ext
7472cat >>conftest.$ac_ext <<_ACEOF
7473/* end confdefs.h.  */
7474/* System header to define __stub macros and hopefully few prototypes,
7475    which can conflict with char $ac_func (); below.
7476    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7477    <limits.h> exists even on freestanding compilers.  Under hpux,
7478    including <limits.h> includes <sys/time.h> and causes problems
7479    checking for functions defined therein.  */
7480#if defined (__STDC__) && !defined (_HPUX_SOURCE)
7481# include <limits.h>
7482#else
7483# include <assert.h>
7484#endif
7485/* Override any gcc2 internal prototype to avoid an error.  */
7486#ifdef __cplusplus
7487extern "C"
7488{
7489#endif
7490/* We use char because int might match the return type of a gcc2
7491   builtin and then its argument prototype would still apply.  */
7492char $ac_func ();
7493/* The GNU C library defines this for functions which it implements
7494    to always fail with ENOSYS.  Some functions are actually named
7495    something starting with __ and the normal name is an alias.  */
7496#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7497choke me
7498#else
7499char (*f) () = $ac_func;
7500#endif
7501#ifdef __cplusplus
7502}
7503#endif
7504
7505int
7506main ()
7507{
7508return f != $ac_func;
7509  ;
7510  return 0;
7511}
7512_ACEOF
7513rm -f conftest.$ac_objext conftest$ac_exeext
7514if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7515  (eval $ac_link) 2>conftest.er1
7516  ac_status=$?
7517  grep -v '^ *+' conftest.er1 >conftest.err
7518  rm -f conftest.er1
7519  cat conftest.err >&5
7520  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7521  (exit $ac_status); } &&
7522	 { ac_try='test -z "$ac_c_werror_flag"
7523			 || test ! -s conftest.err'
7524  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7525  (eval $ac_try) 2>&5
7526  ac_status=$?
7527  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7528  (exit $ac_status); }; } &&
7529	 { ac_try='test -s conftest$ac_exeext'
7530  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7531  (eval $ac_try) 2>&5
7532  ac_status=$?
7533  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7534  (exit $ac_status); }; }; then
7535  eval "$as_ac_var=yes"
7536else
7537  echo "$as_me: failed program was:" >&5
7538sed 's/^/| /' conftest.$ac_ext >&5
7539
7540eval "$as_ac_var=no"
7541fi
7542rm -f conftest.err conftest.$ac_objext \
7543      conftest$ac_exeext conftest.$ac_ext
7544fi
7545echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7546echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7547if test `eval echo '${'$as_ac_var'}'` = yes; then
7548  cat >>confdefs.h <<_ACEOF
7549#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7550_ACEOF
7551
7552fi
7553done
7554
7555  echo "$as_me:$LINENO: checking whether basename is declared" >&5
7556echo $ECHO_N "checking whether basename is declared... $ECHO_C" >&6
7557if test "${ac_cv_have_decl_basename+set}" = set; then
7558  echo $ECHO_N "(cached) $ECHO_C" >&6
7559else
7560  cat >conftest.$ac_ext <<_ACEOF
7561/* confdefs.h.  */
7562_ACEOF
7563cat confdefs.h >>conftest.$ac_ext
7564cat >>conftest.$ac_ext <<_ACEOF
7565/* end confdefs.h.  */
7566$ac_includes_default
7567int
7568main ()
7569{
7570#ifndef basename
7571  char *p = (char *) basename;
7572#endif
7573
7574  ;
7575  return 0;
7576}
7577_ACEOF
7578rm -f conftest.$ac_objext
7579if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7580  (eval $ac_compile) 2>conftest.er1
7581  ac_status=$?
7582  grep -v '^ *+' conftest.er1 >conftest.err
7583  rm -f conftest.er1
7584  cat conftest.err >&5
7585  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7586  (exit $ac_status); } &&
7587	 { ac_try='test -z "$ac_c_werror_flag"
7588			 || test ! -s conftest.err'
7589  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7590  (eval $ac_try) 2>&5
7591  ac_status=$?
7592  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7593  (exit $ac_status); }; } &&
7594	 { ac_try='test -s conftest.$ac_objext'
7595  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7596  (eval $ac_try) 2>&5
7597  ac_status=$?
7598  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7599  (exit $ac_status); }; }; then
7600  ac_cv_have_decl_basename=yes
7601else
7602  echo "$as_me: failed program was:" >&5
7603sed 's/^/| /' conftest.$ac_ext >&5
7604
7605ac_cv_have_decl_basename=no
7606fi
7607rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7608fi
7609echo "$as_me:$LINENO: result: $ac_cv_have_decl_basename" >&5
7610echo "${ECHO_T}$ac_cv_have_decl_basename" >&6
7611if test $ac_cv_have_decl_basename = yes; then
7612
7613cat >>confdefs.h <<_ACEOF
7614#define HAVE_DECL_BASENAME 1
7615_ACEOF
7616
7617
7618else
7619  cat >>confdefs.h <<_ACEOF
7620#define HAVE_DECL_BASENAME 0
7621_ACEOF
7622
7623
7624fi
7625echo "$as_me:$LINENO: checking whether ffs is declared" >&5
7626echo $ECHO_N "checking whether ffs is declared... $ECHO_C" >&6
7627if test "${ac_cv_have_decl_ffs+set}" = set; then
7628  echo $ECHO_N "(cached) $ECHO_C" >&6
7629else
7630  cat >conftest.$ac_ext <<_ACEOF
7631/* confdefs.h.  */
7632_ACEOF
7633cat confdefs.h >>conftest.$ac_ext
7634cat >>conftest.$ac_ext <<_ACEOF
7635/* end confdefs.h.  */
7636$ac_includes_default
7637int
7638main ()
7639{
7640#ifndef ffs
7641  char *p = (char *) ffs;
7642#endif
7643
7644  ;
7645  return 0;
7646}
7647_ACEOF
7648rm -f conftest.$ac_objext
7649if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7650  (eval $ac_compile) 2>conftest.er1
7651  ac_status=$?
7652  grep -v '^ *+' conftest.er1 >conftest.err
7653  rm -f conftest.er1
7654  cat conftest.err >&5
7655  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7656  (exit $ac_status); } &&
7657	 { ac_try='test -z "$ac_c_werror_flag"
7658			 || test ! -s conftest.err'
7659  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7660  (eval $ac_try) 2>&5
7661  ac_status=$?
7662  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7663  (exit $ac_status); }; } &&
7664	 { ac_try='test -s conftest.$ac_objext'
7665  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7666  (eval $ac_try) 2>&5
7667  ac_status=$?
7668  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7669  (exit $ac_status); }; }; then
7670  ac_cv_have_decl_ffs=yes
7671else
7672  echo "$as_me: failed program was:" >&5
7673sed 's/^/| /' conftest.$ac_ext >&5
7674
7675ac_cv_have_decl_ffs=no
7676fi
7677rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7678fi
7679echo "$as_me:$LINENO: result: $ac_cv_have_decl_ffs" >&5
7680echo "${ECHO_T}$ac_cv_have_decl_ffs" >&6
7681if test $ac_cv_have_decl_ffs = yes; then
7682
7683cat >>confdefs.h <<_ACEOF
7684#define HAVE_DECL_FFS 1
7685_ACEOF
7686
7687
7688else
7689  cat >>confdefs.h <<_ACEOF
7690#define HAVE_DECL_FFS 0
7691_ACEOF
7692
7693
7694fi
7695echo "$as_me:$LINENO: checking whether asprintf is declared" >&5
7696echo $ECHO_N "checking whether asprintf is declared... $ECHO_C" >&6
7697if test "${ac_cv_have_decl_asprintf+set}" = set; then
7698  echo $ECHO_N "(cached) $ECHO_C" >&6
7699else
7700  cat >conftest.$ac_ext <<_ACEOF
7701/* confdefs.h.  */
7702_ACEOF
7703cat confdefs.h >>conftest.$ac_ext
7704cat >>conftest.$ac_ext <<_ACEOF
7705/* end confdefs.h.  */
7706$ac_includes_default
7707int
7708main ()
7709{
7710#ifndef asprintf
7711  char *p = (char *) asprintf;
7712#endif
7713
7714  ;
7715  return 0;
7716}
7717_ACEOF
7718rm -f conftest.$ac_objext
7719if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7720  (eval $ac_compile) 2>conftest.er1
7721  ac_status=$?
7722  grep -v '^ *+' conftest.er1 >conftest.err
7723  rm -f conftest.er1
7724  cat conftest.err >&5
7725  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7726  (exit $ac_status); } &&
7727	 { ac_try='test -z "$ac_c_werror_flag"
7728			 || test ! -s conftest.err'
7729  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7730  (eval $ac_try) 2>&5
7731  ac_status=$?
7732  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7733  (exit $ac_status); }; } &&
7734	 { ac_try='test -s conftest.$ac_objext'
7735  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7736  (eval $ac_try) 2>&5
7737  ac_status=$?
7738  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7739  (exit $ac_status); }; }; then
7740  ac_cv_have_decl_asprintf=yes
7741else
7742  echo "$as_me: failed program was:" >&5
7743sed 's/^/| /' conftest.$ac_ext >&5
7744
7745ac_cv_have_decl_asprintf=no
7746fi
7747rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7748fi
7749echo "$as_me:$LINENO: result: $ac_cv_have_decl_asprintf" >&5
7750echo "${ECHO_T}$ac_cv_have_decl_asprintf" >&6
7751if test $ac_cv_have_decl_asprintf = yes; then
7752
7753cat >>confdefs.h <<_ACEOF
7754#define HAVE_DECL_ASPRINTF 1
7755_ACEOF
7756
7757
7758else
7759  cat >>confdefs.h <<_ACEOF
7760#define HAVE_DECL_ASPRINTF 0
7761_ACEOF
7762
7763
7764fi
7765echo "$as_me:$LINENO: checking whether vasprintf is declared" >&5
7766echo $ECHO_N "checking whether vasprintf is declared... $ECHO_C" >&6
7767if test "${ac_cv_have_decl_vasprintf+set}" = set; then
7768  echo $ECHO_N "(cached) $ECHO_C" >&6
7769else
7770  cat >conftest.$ac_ext <<_ACEOF
7771/* confdefs.h.  */
7772_ACEOF
7773cat confdefs.h >>conftest.$ac_ext
7774cat >>conftest.$ac_ext <<_ACEOF
7775/* end confdefs.h.  */
7776$ac_includes_default
7777int
7778main ()
7779{
7780#ifndef vasprintf
7781  char *p = (char *) vasprintf;
7782#endif
7783
7784  ;
7785  return 0;
7786}
7787_ACEOF
7788rm -f conftest.$ac_objext
7789if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7790  (eval $ac_compile) 2>conftest.er1
7791  ac_status=$?
7792  grep -v '^ *+' conftest.er1 >conftest.err
7793  rm -f conftest.er1
7794  cat conftest.err >&5
7795  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7796  (exit $ac_status); } &&
7797	 { ac_try='test -z "$ac_c_werror_flag"
7798			 || test ! -s conftest.err'
7799  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7800  (eval $ac_try) 2>&5
7801  ac_status=$?
7802  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7803  (exit $ac_status); }; } &&
7804	 { ac_try='test -s conftest.$ac_objext'
7805  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7806  (eval $ac_try) 2>&5
7807  ac_status=$?
7808  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7809  (exit $ac_status); }; }; then
7810  ac_cv_have_decl_vasprintf=yes
7811else
7812  echo "$as_me: failed program was:" >&5
7813sed 's/^/| /' conftest.$ac_ext >&5
7814
7815ac_cv_have_decl_vasprintf=no
7816fi
7817rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7818fi
7819echo "$as_me:$LINENO: result: $ac_cv_have_decl_vasprintf" >&5
7820echo "${ECHO_T}$ac_cv_have_decl_vasprintf" >&6
7821if test $ac_cv_have_decl_vasprintf = yes; then
7822
7823cat >>confdefs.h <<_ACEOF
7824#define HAVE_DECL_VASPRINTF 1
7825_ACEOF
7826
7827
7828else
7829  cat >>confdefs.h <<_ACEOF
7830#define HAVE_DECL_VASPRINTF 0
7831_ACEOF
7832
7833
7834fi
7835echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
7836echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
7837if test "${ac_cv_have_decl_snprintf+set}" = set; then
7838  echo $ECHO_N "(cached) $ECHO_C" >&6
7839else
7840  cat >conftest.$ac_ext <<_ACEOF
7841/* confdefs.h.  */
7842_ACEOF
7843cat confdefs.h >>conftest.$ac_ext
7844cat >>conftest.$ac_ext <<_ACEOF
7845/* end confdefs.h.  */
7846$ac_includes_default
7847int
7848main ()
7849{
7850#ifndef snprintf
7851  char *p = (char *) snprintf;
7852#endif
7853
7854  ;
7855  return 0;
7856}
7857_ACEOF
7858rm -f conftest.$ac_objext
7859if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7860  (eval $ac_compile) 2>conftest.er1
7861  ac_status=$?
7862  grep -v '^ *+' conftest.er1 >conftest.err
7863  rm -f conftest.er1
7864  cat conftest.err >&5
7865  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7866  (exit $ac_status); } &&
7867	 { ac_try='test -z "$ac_c_werror_flag"
7868			 || test ! -s conftest.err'
7869  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7870  (eval $ac_try) 2>&5
7871  ac_status=$?
7872  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7873  (exit $ac_status); }; } &&
7874	 { ac_try='test -s conftest.$ac_objext'
7875  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7876  (eval $ac_try) 2>&5
7877  ac_status=$?
7878  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7879  (exit $ac_status); }; }; then
7880  ac_cv_have_decl_snprintf=yes
7881else
7882  echo "$as_me: failed program was:" >&5
7883sed 's/^/| /' conftest.$ac_ext >&5
7884
7885ac_cv_have_decl_snprintf=no
7886fi
7887rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7888fi
7889echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
7890echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
7891if test $ac_cv_have_decl_snprintf = yes; then
7892
7893cat >>confdefs.h <<_ACEOF
7894#define HAVE_DECL_SNPRINTF 1
7895_ACEOF
7896
7897
7898else
7899  cat >>confdefs.h <<_ACEOF
7900#define HAVE_DECL_SNPRINTF 0
7901_ACEOF
7902
7903
7904fi
7905echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
7906echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
7907if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
7908  echo $ECHO_N "(cached) $ECHO_C" >&6
7909else
7910  cat >conftest.$ac_ext <<_ACEOF
7911/* confdefs.h.  */
7912_ACEOF
7913cat confdefs.h >>conftest.$ac_ext
7914cat >>conftest.$ac_ext <<_ACEOF
7915/* end confdefs.h.  */
7916$ac_includes_default
7917int
7918main ()
7919{
7920#ifndef vsnprintf
7921  char *p = (char *) vsnprintf;
7922#endif
7923
7924  ;
7925  return 0;
7926}
7927_ACEOF
7928rm -f conftest.$ac_objext
7929if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7930  (eval $ac_compile) 2>conftest.er1
7931  ac_status=$?
7932  grep -v '^ *+' conftest.er1 >conftest.err
7933  rm -f conftest.er1
7934  cat conftest.err >&5
7935  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7936  (exit $ac_status); } &&
7937	 { ac_try='test -z "$ac_c_werror_flag"
7938			 || test ! -s conftest.err'
7939  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7940  (eval $ac_try) 2>&5
7941  ac_status=$?
7942  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7943  (exit $ac_status); }; } &&
7944	 { ac_try='test -s conftest.$ac_objext'
7945  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7946  (eval $ac_try) 2>&5
7947  ac_status=$?
7948  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7949  (exit $ac_status); }; }; then
7950  ac_cv_have_decl_vsnprintf=yes
7951else
7952  echo "$as_me: failed program was:" >&5
7953sed 's/^/| /' conftest.$ac_ext >&5
7954
7955ac_cv_have_decl_vsnprintf=no
7956fi
7957rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7958fi
7959echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
7960echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
7961if test $ac_cv_have_decl_vsnprintf = yes; then
7962
7963cat >>confdefs.h <<_ACEOF
7964#define HAVE_DECL_VSNPRINTF 1
7965_ACEOF
7966
7967
7968else
7969  cat >>confdefs.h <<_ACEOF
7970#define HAVE_DECL_VSNPRINTF 0
7971_ACEOF
7972
7973
7974fi
7975
7976
7977  echo "$as_me:$LINENO: checking whether calloc is declared" >&5
7978echo $ECHO_N "checking whether calloc is declared... $ECHO_C" >&6
7979if test "${ac_cv_have_decl_calloc+set}" = set; then
7980  echo $ECHO_N "(cached) $ECHO_C" >&6
7981else
7982  cat >conftest.$ac_ext <<_ACEOF
7983/* confdefs.h.  */
7984_ACEOF
7985cat confdefs.h >>conftest.$ac_ext
7986cat >>conftest.$ac_ext <<_ACEOF
7987/* end confdefs.h.  */
7988$ac_includes_default
7989int
7990main ()
7991{
7992#ifndef calloc
7993  char *p = (char *) calloc;
7994#endif
7995
7996  ;
7997  return 0;
7998}
7999_ACEOF
8000rm -f conftest.$ac_objext
8001if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8002  (eval $ac_compile) 2>conftest.er1
8003  ac_status=$?
8004  grep -v '^ *+' conftest.er1 >conftest.err
8005  rm -f conftest.er1
8006  cat conftest.err >&5
8007  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8008  (exit $ac_status); } &&
8009	 { ac_try='test -z "$ac_c_werror_flag"
8010			 || test ! -s conftest.err'
8011  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8012  (eval $ac_try) 2>&5
8013  ac_status=$?
8014  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8015  (exit $ac_status); }; } &&
8016	 { ac_try='test -s conftest.$ac_objext'
8017  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8018  (eval $ac_try) 2>&5
8019  ac_status=$?
8020  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8021  (exit $ac_status); }; }; then
8022  ac_cv_have_decl_calloc=yes
8023else
8024  echo "$as_me: failed program was:" >&5
8025sed 's/^/| /' conftest.$ac_ext >&5
8026
8027ac_cv_have_decl_calloc=no
8028fi
8029rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8030fi
8031echo "$as_me:$LINENO: result: $ac_cv_have_decl_calloc" >&5
8032echo "${ECHO_T}$ac_cv_have_decl_calloc" >&6
8033if test $ac_cv_have_decl_calloc = yes; then
8034
8035cat >>confdefs.h <<_ACEOF
8036#define HAVE_DECL_CALLOC 1
8037_ACEOF
8038
8039
8040else
8041  cat >>confdefs.h <<_ACEOF
8042#define HAVE_DECL_CALLOC 0
8043_ACEOF
8044
8045
8046fi
8047echo "$as_me:$LINENO: checking whether getenv is declared" >&5
8048echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6
8049if test "${ac_cv_have_decl_getenv+set}" = set; then
8050  echo $ECHO_N "(cached) $ECHO_C" >&6
8051else
8052  cat >conftest.$ac_ext <<_ACEOF
8053/* confdefs.h.  */
8054_ACEOF
8055cat confdefs.h >>conftest.$ac_ext
8056cat >>conftest.$ac_ext <<_ACEOF
8057/* end confdefs.h.  */
8058$ac_includes_default
8059int
8060main ()
8061{
8062#ifndef getenv
8063  char *p = (char *) getenv;
8064#endif
8065
8066  ;
8067  return 0;
8068}
8069_ACEOF
8070rm -f conftest.$ac_objext
8071if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8072  (eval $ac_compile) 2>conftest.er1
8073  ac_status=$?
8074  grep -v '^ *+' conftest.er1 >conftest.err
8075  rm -f conftest.er1
8076  cat conftest.err >&5
8077  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8078  (exit $ac_status); } &&
8079	 { ac_try='test -z "$ac_c_werror_flag"
8080			 || test ! -s conftest.err'
8081  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8082  (eval $ac_try) 2>&5
8083  ac_status=$?
8084  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8085  (exit $ac_status); }; } &&
8086	 { ac_try='test -s conftest.$ac_objext'
8087  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8088  (eval $ac_try) 2>&5
8089  ac_status=$?
8090  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8091  (exit $ac_status); }; }; then
8092  ac_cv_have_decl_getenv=yes
8093else
8094  echo "$as_me: failed program was:" >&5
8095sed 's/^/| /' conftest.$ac_ext >&5
8096
8097ac_cv_have_decl_getenv=no
8098fi
8099rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8100fi
8101echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
8102echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6
8103if test $ac_cv_have_decl_getenv = yes; then
8104
8105cat >>confdefs.h <<_ACEOF
8106#define HAVE_DECL_GETENV 1
8107_ACEOF
8108
8109
8110else
8111  cat >>confdefs.h <<_ACEOF
8112#define HAVE_DECL_GETENV 0
8113_ACEOF
8114
8115
8116fi
8117echo "$as_me:$LINENO: checking whether getopt is declared" >&5
8118echo $ECHO_N "checking whether getopt is declared... $ECHO_C" >&6
8119if test "${ac_cv_have_decl_getopt+set}" = set; then
8120  echo $ECHO_N "(cached) $ECHO_C" >&6
8121else
8122  cat >conftest.$ac_ext <<_ACEOF
8123/* confdefs.h.  */
8124_ACEOF
8125cat confdefs.h >>conftest.$ac_ext
8126cat >>conftest.$ac_ext <<_ACEOF
8127/* end confdefs.h.  */
8128$ac_includes_default
8129int
8130main ()
8131{
8132#ifndef getopt
8133  char *p = (char *) getopt;
8134#endif
8135
8136  ;
8137  return 0;
8138}
8139_ACEOF
8140rm -f conftest.$ac_objext
8141if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8142  (eval $ac_compile) 2>conftest.er1
8143  ac_status=$?
8144  grep -v '^ *+' conftest.er1 >conftest.err
8145  rm -f conftest.er1
8146  cat conftest.err >&5
8147  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8148  (exit $ac_status); } &&
8149	 { ac_try='test -z "$ac_c_werror_flag"
8150			 || test ! -s conftest.err'
8151  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8152  (eval $ac_try) 2>&5
8153  ac_status=$?
8154  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8155  (exit $ac_status); }; } &&
8156	 { ac_try='test -s conftest.$ac_objext'
8157  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8158  (eval $ac_try) 2>&5
8159  ac_status=$?
8160  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8161  (exit $ac_status); }; }; then
8162  ac_cv_have_decl_getopt=yes
8163else
8164  echo "$as_me: failed program was:" >&5
8165sed 's/^/| /' conftest.$ac_ext >&5
8166
8167ac_cv_have_decl_getopt=no
8168fi
8169rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8170fi
8171echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt" >&5
8172echo "${ECHO_T}$ac_cv_have_decl_getopt" >&6
8173if test $ac_cv_have_decl_getopt = yes; then
8174
8175cat >>confdefs.h <<_ACEOF
8176#define HAVE_DECL_GETOPT 1
8177_ACEOF
8178
8179
8180else
8181  cat >>confdefs.h <<_ACEOF
8182#define HAVE_DECL_GETOPT 0
8183_ACEOF
8184
8185
8186fi
8187echo "$as_me:$LINENO: checking whether malloc is declared" >&5
8188echo $ECHO_N "checking whether malloc is declared... $ECHO_C" >&6
8189if test "${ac_cv_have_decl_malloc+set}" = set; then
8190  echo $ECHO_N "(cached) $ECHO_C" >&6
8191else
8192  cat >conftest.$ac_ext <<_ACEOF
8193/* confdefs.h.  */
8194_ACEOF
8195cat confdefs.h >>conftest.$ac_ext
8196cat >>conftest.$ac_ext <<_ACEOF
8197/* end confdefs.h.  */
8198$ac_includes_default
8199int
8200main ()
8201{
8202#ifndef malloc
8203  char *p = (char *) malloc;
8204#endif
8205
8206  ;
8207  return 0;
8208}
8209_ACEOF
8210rm -f conftest.$ac_objext
8211if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8212  (eval $ac_compile) 2>conftest.er1
8213  ac_status=$?
8214  grep -v '^ *+' conftest.er1 >conftest.err
8215  rm -f conftest.er1
8216  cat conftest.err >&5
8217  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8218  (exit $ac_status); } &&
8219	 { ac_try='test -z "$ac_c_werror_flag"
8220			 || test ! -s conftest.err'
8221  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8222  (eval $ac_try) 2>&5
8223  ac_status=$?
8224  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8225  (exit $ac_status); }; } &&
8226	 { ac_try='test -s conftest.$ac_objext'
8227  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8228  (eval $ac_try) 2>&5
8229  ac_status=$?
8230  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8231  (exit $ac_status); }; }; then
8232  ac_cv_have_decl_malloc=yes
8233else
8234  echo "$as_me: failed program was:" >&5
8235sed 's/^/| /' conftest.$ac_ext >&5
8236
8237ac_cv_have_decl_malloc=no
8238fi
8239rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8240fi
8241echo "$as_me:$LINENO: result: $ac_cv_have_decl_malloc" >&5
8242echo "${ECHO_T}$ac_cv_have_decl_malloc" >&6
8243if test $ac_cv_have_decl_malloc = yes; then
8244
8245cat >>confdefs.h <<_ACEOF
8246#define HAVE_DECL_MALLOC 1
8247_ACEOF
8248
8249
8250else
8251  cat >>confdefs.h <<_ACEOF
8252#define HAVE_DECL_MALLOC 0
8253_ACEOF
8254
8255
8256fi
8257echo "$as_me:$LINENO: checking whether realloc is declared" >&5
8258echo $ECHO_N "checking whether realloc is declared... $ECHO_C" >&6
8259if test "${ac_cv_have_decl_realloc+set}" = set; then
8260  echo $ECHO_N "(cached) $ECHO_C" >&6
8261else
8262  cat >conftest.$ac_ext <<_ACEOF
8263/* confdefs.h.  */
8264_ACEOF
8265cat confdefs.h >>conftest.$ac_ext
8266cat >>conftest.$ac_ext <<_ACEOF
8267/* end confdefs.h.  */
8268$ac_includes_default
8269int
8270main ()
8271{
8272#ifndef realloc
8273  char *p = (char *) realloc;
8274#endif
8275
8276  ;
8277  return 0;
8278}
8279_ACEOF
8280rm -f conftest.$ac_objext
8281if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8282  (eval $ac_compile) 2>conftest.er1
8283  ac_status=$?
8284  grep -v '^ *+' conftest.er1 >conftest.err
8285  rm -f conftest.er1
8286  cat conftest.err >&5
8287  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8288  (exit $ac_status); } &&
8289	 { ac_try='test -z "$ac_c_werror_flag"
8290			 || test ! -s conftest.err'
8291  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8292  (eval $ac_try) 2>&5
8293  ac_status=$?
8294  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8295  (exit $ac_status); }; } &&
8296	 { ac_try='test -s conftest.$ac_objext'
8297  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8298  (eval $ac_try) 2>&5
8299  ac_status=$?
8300  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8301  (exit $ac_status); }; }; then
8302  ac_cv_have_decl_realloc=yes
8303else
8304  echo "$as_me: failed program was:" >&5
8305sed 's/^/| /' conftest.$ac_ext >&5
8306
8307ac_cv_have_decl_realloc=no
8308fi
8309rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8310fi
8311echo "$as_me:$LINENO: result: $ac_cv_have_decl_realloc" >&5
8312echo "${ECHO_T}$ac_cv_have_decl_realloc" >&6
8313if test $ac_cv_have_decl_realloc = yes; then
8314
8315cat >>confdefs.h <<_ACEOF
8316#define HAVE_DECL_REALLOC 1
8317_ACEOF
8318
8319
8320else
8321  cat >>confdefs.h <<_ACEOF
8322#define HAVE_DECL_REALLOC 0
8323_ACEOF
8324
8325
8326fi
8327echo "$as_me:$LINENO: checking whether sbrk is declared" >&5
8328echo $ECHO_N "checking whether sbrk is declared... $ECHO_C" >&6
8329if test "${ac_cv_have_decl_sbrk+set}" = set; then
8330  echo $ECHO_N "(cached) $ECHO_C" >&6
8331else
8332  cat >conftest.$ac_ext <<_ACEOF
8333/* confdefs.h.  */
8334_ACEOF
8335cat confdefs.h >>conftest.$ac_ext
8336cat >>conftest.$ac_ext <<_ACEOF
8337/* end confdefs.h.  */
8338$ac_includes_default
8339int
8340main ()
8341{
8342#ifndef sbrk
8343  char *p = (char *) sbrk;
8344#endif
8345
8346  ;
8347  return 0;
8348}
8349_ACEOF
8350rm -f conftest.$ac_objext
8351if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8352  (eval $ac_compile) 2>conftest.er1
8353  ac_status=$?
8354  grep -v '^ *+' conftest.er1 >conftest.err
8355  rm -f conftest.er1
8356  cat conftest.err >&5
8357  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8358  (exit $ac_status); } &&
8359	 { ac_try='test -z "$ac_c_werror_flag"
8360			 || test ! -s conftest.err'
8361  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8362  (eval $ac_try) 2>&5
8363  ac_status=$?
8364  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8365  (exit $ac_status); }; } &&
8366	 { ac_try='test -s conftest.$ac_objext'
8367  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8368  (eval $ac_try) 2>&5
8369  ac_status=$?
8370  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8371  (exit $ac_status); }; }; then
8372  ac_cv_have_decl_sbrk=yes
8373else
8374  echo "$as_me: failed program was:" >&5
8375sed 's/^/| /' conftest.$ac_ext >&5
8376
8377ac_cv_have_decl_sbrk=no
8378fi
8379rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8380fi
8381echo "$as_me:$LINENO: result: $ac_cv_have_decl_sbrk" >&5
8382echo "${ECHO_T}$ac_cv_have_decl_sbrk" >&6
8383if test $ac_cv_have_decl_sbrk = yes; then
8384
8385cat >>confdefs.h <<_ACEOF
8386#define HAVE_DECL_SBRK 1
8387_ACEOF
8388
8389
8390else
8391  cat >>confdefs.h <<_ACEOF
8392#define HAVE_DECL_SBRK 0
8393_ACEOF
8394
8395
8396fi
8397
8398
8399  echo "$as_me:$LINENO: checking whether strverscmp is declared" >&5
8400echo $ECHO_N "checking whether strverscmp is declared... $ECHO_C" >&6
8401if test "${ac_cv_have_decl_strverscmp+set}" = set; then
8402  echo $ECHO_N "(cached) $ECHO_C" >&6
8403else
8404  cat >conftest.$ac_ext <<_ACEOF
8405/* confdefs.h.  */
8406_ACEOF
8407cat confdefs.h >>conftest.$ac_ext
8408cat >>conftest.$ac_ext <<_ACEOF
8409/* end confdefs.h.  */
8410$ac_includes_default
8411int
8412main ()
8413{
8414#ifndef strverscmp
8415  char *p = (char *) strverscmp;
8416#endif
8417
8418  ;
8419  return 0;
8420}
8421_ACEOF
8422rm -f conftest.$ac_objext
8423if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8424  (eval $ac_compile) 2>conftest.er1
8425  ac_status=$?
8426  grep -v '^ *+' conftest.er1 >conftest.err
8427  rm -f conftest.er1
8428  cat conftest.err >&5
8429  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8430  (exit $ac_status); } &&
8431	 { ac_try='test -z "$ac_c_werror_flag"
8432			 || test ! -s conftest.err'
8433  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8434  (eval $ac_try) 2>&5
8435  ac_status=$?
8436  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8437  (exit $ac_status); }; } &&
8438	 { ac_try='test -s conftest.$ac_objext'
8439  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8440  (eval $ac_try) 2>&5
8441  ac_status=$?
8442  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8443  (exit $ac_status); }; }; then
8444  ac_cv_have_decl_strverscmp=yes
8445else
8446  echo "$as_me: failed program was:" >&5
8447sed 's/^/| /' conftest.$ac_ext >&5
8448
8449ac_cv_have_decl_strverscmp=no
8450fi
8451rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8452fi
8453echo "$as_me:$LINENO: result: $ac_cv_have_decl_strverscmp" >&5
8454echo "${ECHO_T}$ac_cv_have_decl_strverscmp" >&6
8455if test $ac_cv_have_decl_strverscmp = yes; then
8456
8457cat >>confdefs.h <<_ACEOF
8458#define HAVE_DECL_STRVERSCMP 1
8459_ACEOF
8460
8461
8462else
8463  cat >>confdefs.h <<_ACEOF
8464#define HAVE_DECL_STRVERSCMP 0
8465_ACEOF
8466
8467
8468fi
8469
8470
8471  echo "$as_me:$LINENO: checking whether canonicalize_file_name must be declared" >&5
8472echo $ECHO_N "checking whether canonicalize_file_name must be declared... $ECHO_C" >&6
8473if test "${libiberty_cv_decl_needed_canonicalize_file_name+set}" = set; then
8474  echo $ECHO_N "(cached) $ECHO_C" >&6
8475else
8476  cat >conftest.$ac_ext <<_ACEOF
8477/* confdefs.h.  */
8478_ACEOF
8479cat confdefs.h >>conftest.$ac_ext
8480cat >>conftest.$ac_ext <<_ACEOF
8481/* end confdefs.h.  */
8482
8483#include "confdefs.h"
8484#include <stdio.h>
8485#ifdef HAVE_STRING_H
8486#include <string.h>
8487#else
8488#ifdef HAVE_STRINGS_H
8489#include <strings.h>
8490#endif
8491#endif
8492#ifdef HAVE_STDLIB_H
8493#include <stdlib.h>
8494#endif
8495#ifdef HAVE_UNISTD_H
8496#include <unistd.h>
8497#endif
8498int
8499main ()
8500{
8501char *(*pfn) = (char *(*)) canonicalize_file_name
8502  ;
8503  return 0;
8504}
8505_ACEOF
8506rm -f conftest.$ac_objext
8507if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8508  (eval $ac_compile) 2>conftest.er1
8509  ac_status=$?
8510  grep -v '^ *+' conftest.er1 >conftest.err
8511  rm -f conftest.er1
8512  cat conftest.err >&5
8513  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8514  (exit $ac_status); } &&
8515	 { ac_try='test -z "$ac_c_werror_flag"
8516			 || test ! -s conftest.err'
8517  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8518  (eval $ac_try) 2>&5
8519  ac_status=$?
8520  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8521  (exit $ac_status); }; } &&
8522	 { ac_try='test -s conftest.$ac_objext'
8523  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8524  (eval $ac_try) 2>&5
8525  ac_status=$?
8526  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8527  (exit $ac_status); }; }; then
8528  libiberty_cv_decl_needed_canonicalize_file_name=no
8529else
8530  echo "$as_me: failed program was:" >&5
8531sed 's/^/| /' conftest.$ac_ext >&5
8532
8533libiberty_cv_decl_needed_canonicalize_file_name=yes
8534fi
8535rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8536fi
8537
8538echo "$as_me:$LINENO: result: $libiberty_cv_decl_needed_canonicalize_file_name" >&5
8539echo "${ECHO_T}$libiberty_cv_decl_needed_canonicalize_file_name" >&6
8540if test $libiberty_cv_decl_needed_canonicalize_file_name = yes; then
8541
8542cat >>confdefs.h <<\_ACEOF
8543#define NEED_DECLARATION_CANONICALIZE_FILE_NAME 1
8544_ACEOF
8545
8546fi
8547
8548fi
8549
8550# Figure out which version of pexecute to use.
8551case "${host}" in
8552     *-*-mingw* | *-*-winnt*)	pexecute=./pex-win32.o  ;;
8553     *-*-msdosdjgpp*)		pexecute=./pex-djgpp.o  ;;
8554     *-*-msdos*)		pexecute=./pex-msdos.o  ;;
8555     *)				pexecute=./pex-unix.o   ;;
8556esac
8557
8558
8559if test x$gcc_no_link = xyes; then
8560  if test "x${ac_cv_func_mmap_fixed_mapped+set}" != xset; then
8561    ac_cv_func_mmap_fixed_mapped=no
8562  fi
8563fi
8564if test "x${ac_cv_func_mmap_fixed_mapped}" != xno; then
8565
8566
8567for ac_header in stdlib.h unistd.h
8568do
8569as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8570echo "$as_me:$LINENO: checking for $ac_header" >&5
8571echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8572if eval "test \"\${$as_ac_Header+set}\" = set"; then
8573  echo $ECHO_N "(cached) $ECHO_C" >&6
8574else
8575  cat >conftest.$ac_ext <<_ACEOF
8576/* confdefs.h.  */
8577_ACEOF
8578cat confdefs.h >>conftest.$ac_ext
8579cat >>conftest.$ac_ext <<_ACEOF
8580/* end confdefs.h.  */
8581#include <$ac_header>
8582_ACEOF
8583if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8584  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8585  ac_status=$?
8586  grep -v '^ *+' conftest.er1 >conftest.err
8587  rm -f conftest.er1
8588  cat conftest.err >&5
8589  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8590  (exit $ac_status); } >/dev/null; then
8591  if test -s conftest.err; then
8592    ac_cpp_err=$ac_c_preproc_warn_flag
8593    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8594  else
8595    ac_cpp_err=
8596  fi
8597else
8598  ac_cpp_err=yes
8599fi
8600if test -z "$ac_cpp_err"; then
8601  eval "$as_ac_Header=yes"
8602else
8603  echo "$as_me: failed program was:" >&5
8604sed 's/^/| /' conftest.$ac_ext >&5
8605
8606  eval "$as_ac_Header=no"
8607fi
8608rm -f conftest.err conftest.$ac_ext
8609fi
8610echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8611echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8612if test `eval echo '${'$as_ac_Header'}'` = yes; then
8613  cat >>confdefs.h <<_ACEOF
8614#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8615_ACEOF
8616
8617fi
8618done
8619
8620
8621for ac_func in getpagesize
8622do
8623as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8624echo "$as_me:$LINENO: checking for $ac_func" >&5
8625echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8626if eval "test \"\${$as_ac_var+set}\" = set"; then
8627  echo $ECHO_N "(cached) $ECHO_C" >&6
8628else
8629  if test x$gcc_no_link = xyes; then
8630  { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8631echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8632   { (exit 1); exit 1; }; }
8633fi
8634cat >conftest.$ac_ext <<_ACEOF
8635/* confdefs.h.  */
8636_ACEOF
8637cat confdefs.h >>conftest.$ac_ext
8638cat >>conftest.$ac_ext <<_ACEOF
8639/* end confdefs.h.  */
8640/* System header to define __stub macros and hopefully few prototypes,
8641    which can conflict with char $ac_func (); below.
8642    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8643    <limits.h> exists even on freestanding compilers.  Under hpux,
8644    including <limits.h> includes <sys/time.h> and causes problems
8645    checking for functions defined therein.  */
8646#if defined (__STDC__) && !defined (_HPUX_SOURCE)
8647# include <limits.h>
8648#else
8649# include <assert.h>
8650#endif
8651/* Override any gcc2 internal prototype to avoid an error.  */
8652#ifdef __cplusplus
8653extern "C"
8654{
8655#endif
8656/* We use char because int might match the return type of a gcc2
8657   builtin and then its argument prototype would still apply.  */
8658char $ac_func ();
8659/* The GNU C library defines this for functions which it implements
8660    to always fail with ENOSYS.  Some functions are actually named
8661    something starting with __ and the normal name is an alias.  */
8662#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8663choke me
8664#else
8665char (*f) () = $ac_func;
8666#endif
8667#ifdef __cplusplus
8668}
8669#endif
8670
8671int
8672main ()
8673{
8674return f != $ac_func;
8675  ;
8676  return 0;
8677}
8678_ACEOF
8679rm -f conftest.$ac_objext conftest$ac_exeext
8680if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8681  (eval $ac_link) 2>conftest.er1
8682  ac_status=$?
8683  grep -v '^ *+' conftest.er1 >conftest.err
8684  rm -f conftest.er1
8685  cat conftest.err >&5
8686  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8687  (exit $ac_status); } &&
8688	 { ac_try='test -z "$ac_c_werror_flag"
8689			 || test ! -s conftest.err'
8690  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8691  (eval $ac_try) 2>&5
8692  ac_status=$?
8693  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8694  (exit $ac_status); }; } &&
8695	 { ac_try='test -s conftest$ac_exeext'
8696  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8697  (eval $ac_try) 2>&5
8698  ac_status=$?
8699  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8700  (exit $ac_status); }; }; then
8701  eval "$as_ac_var=yes"
8702else
8703  echo "$as_me: failed program was:" >&5
8704sed 's/^/| /' conftest.$ac_ext >&5
8705
8706eval "$as_ac_var=no"
8707fi
8708rm -f conftest.err conftest.$ac_objext \
8709      conftest$ac_exeext conftest.$ac_ext
8710fi
8711echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8712echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8713if test `eval echo '${'$as_ac_var'}'` = yes; then
8714  cat >>confdefs.h <<_ACEOF
8715#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8716_ACEOF
8717
8718fi
8719done
8720
8721echo "$as_me:$LINENO: checking for working mmap" >&5
8722echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
8723if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
8724  echo $ECHO_N "(cached) $ECHO_C" >&6
8725else
8726  if test "$cross_compiling" = yes; then
8727  ac_cv_func_mmap_fixed_mapped=no
8728else
8729  cat >conftest.$ac_ext <<_ACEOF
8730/* confdefs.h.  */
8731_ACEOF
8732cat confdefs.h >>conftest.$ac_ext
8733cat >>conftest.$ac_ext <<_ACEOF
8734/* end confdefs.h.  */
8735$ac_includes_default
8736/* malloc might have been renamed as rpl_malloc. */
8737#undef malloc
8738
8739/* Thanks to Mike Haertel and Jim Avera for this test.
8740   Here is a matrix of mmap possibilities:
8741	mmap private not fixed
8742	mmap private fixed at somewhere currently unmapped
8743	mmap private fixed at somewhere already mapped
8744	mmap shared not fixed
8745	mmap shared fixed at somewhere currently unmapped
8746	mmap shared fixed at somewhere already mapped
8747   For private mappings, we should verify that changes cannot be read()
8748   back from the file, nor mmap's back from the file at a different
8749   address.  (There have been systems where private was not correctly
8750   implemented like the infamous i386 svr4.0, and systems where the
8751   VM page cache was not coherent with the file system buffer cache
8752   like early versions of FreeBSD and possibly contemporary NetBSD.)
8753   For shared mappings, we should conversely verify that changes get
8754   propagated back to all the places they're supposed to be.
8755
8756   Grep wants private fixed already mapped.
8757   The main things grep needs to know about mmap are:
8758   * does it exist and is it safe to write into the mmap'd area
8759   * how to use it (BSD variants)  */
8760
8761#include <fcntl.h>
8762#include <sys/mman.h>
8763
8764#if !STDC_HEADERS && !HAVE_STDLIB_H
8765char *malloc ();
8766#endif
8767
8768/* This mess was copied from the GNU getpagesize.h.  */
8769#if !HAVE_GETPAGESIZE
8770/* Assume that all systems that can run configure have sys/param.h.  */
8771# if !HAVE_SYS_PARAM_H
8772#  define HAVE_SYS_PARAM_H 1
8773# endif
8774
8775# ifdef _SC_PAGESIZE
8776#  define getpagesize() sysconf(_SC_PAGESIZE)
8777# else /* no _SC_PAGESIZE */
8778#  if HAVE_SYS_PARAM_H
8779#   include <sys/param.h>
8780#   ifdef EXEC_PAGESIZE
8781#    define getpagesize() EXEC_PAGESIZE
8782#   else /* no EXEC_PAGESIZE */
8783#    ifdef NBPG
8784#     define getpagesize() NBPG * CLSIZE
8785#     ifndef CLSIZE
8786#      define CLSIZE 1
8787#     endif /* no CLSIZE */
8788#    else /* no NBPG */
8789#     ifdef NBPC
8790#      define getpagesize() NBPC
8791#     else /* no NBPC */
8792#      ifdef PAGESIZE
8793#       define getpagesize() PAGESIZE
8794#      endif /* PAGESIZE */
8795#     endif /* no NBPC */
8796#    endif /* no NBPG */
8797#   endif /* no EXEC_PAGESIZE */
8798#  else /* no HAVE_SYS_PARAM_H */
8799#   define getpagesize() 8192	/* punt totally */
8800#  endif /* no HAVE_SYS_PARAM_H */
8801# endif /* no _SC_PAGESIZE */
8802
8803#endif /* no HAVE_GETPAGESIZE */
8804
8805int
8806main ()
8807{
8808  char *data, *data2, *data3;
8809  int i, pagesize;
8810  int fd;
8811
8812  pagesize = getpagesize ();
8813
8814  /* First, make a file with some known garbage in it. */
8815  data = (char *) malloc (pagesize);
8816  if (!data)
8817    exit (1);
8818  for (i = 0; i < pagesize; ++i)
8819    *(data + i) = rand ();
8820  umask (0);
8821  fd = creat ("conftest.mmap", 0600);
8822  if (fd < 0)
8823    exit (1);
8824  if (write (fd, data, pagesize) != pagesize)
8825    exit (1);
8826  close (fd);
8827
8828  /* Next, try to mmap the file at a fixed address which already has
8829     something else allocated at it.  If we can, also make sure that
8830     we see the same garbage.  */
8831  fd = open ("conftest.mmap", O_RDWR);
8832  if (fd < 0)
8833    exit (1);
8834  data2 = (char *) malloc (2 * pagesize);
8835  if (!data2)
8836    exit (1);
8837  data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
8838  if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
8839		     MAP_PRIVATE | MAP_FIXED, fd, 0L))
8840    exit (1);
8841  for (i = 0; i < pagesize; ++i)
8842    if (*(data + i) != *(data2 + i))
8843      exit (1);
8844
8845  /* Finally, make sure that changes to the mapped area do not
8846     percolate back to the file as seen by read().  (This is a bug on
8847     some variants of i386 svr4.0.)  */
8848  for (i = 0; i < pagesize; ++i)
8849    *(data2 + i) = *(data2 + i) + 1;
8850  data3 = (char *) malloc (pagesize);
8851  if (!data3)
8852    exit (1);
8853  if (read (fd, data3, pagesize) != pagesize)
8854    exit (1);
8855  for (i = 0; i < pagesize; ++i)
8856    if (*(data + i) != *(data3 + i))
8857      exit (1);
8858  close (fd);
8859  exit (0);
8860}
8861_ACEOF
8862rm -f conftest$ac_exeext
8863if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8864  (eval $ac_link) 2>&5
8865  ac_status=$?
8866  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8867  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8868  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8869  (eval $ac_try) 2>&5
8870  ac_status=$?
8871  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8872  (exit $ac_status); }; }; then
8873  ac_cv_func_mmap_fixed_mapped=yes
8874else
8875  echo "$as_me: program exited with status $ac_status" >&5
8876echo "$as_me: failed program was:" >&5
8877sed 's/^/| /' conftest.$ac_ext >&5
8878
8879( exit $ac_status )
8880ac_cv_func_mmap_fixed_mapped=no
8881fi
8882rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8883fi
8884fi
8885echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
8886echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
8887if test $ac_cv_func_mmap_fixed_mapped = yes; then
8888
8889cat >>confdefs.h <<\_ACEOF
8890#define HAVE_MMAP 1
8891_ACEOF
8892
8893fi
8894rm -f conftest.mmap
8895
8896fi
8897
8898echo "$as_me:$LINENO: checking for working strncmp" >&5
8899echo $ECHO_N "checking for working strncmp... $ECHO_C" >&6
8900if test "${ac_cv_func_strncmp_works+set}" = set; then
8901  echo $ECHO_N "(cached) $ECHO_C" >&6
8902else
8903  if test "$cross_compiling" = yes; then
8904  ac_cv_func_strncmp_works=no
8905else
8906  cat >conftest.$ac_ext <<_ACEOF
8907/* confdefs.h.  */
8908_ACEOF
8909cat confdefs.h >>conftest.$ac_ext
8910cat >>conftest.$ac_ext <<_ACEOF
8911/* end confdefs.h.  */
8912
8913/* Test by Jim Wilson and Kaveh Ghazi.
8914   Check whether strncmp reads past the end of its string parameters. */
8915#include <sys/types.h>
8916
8917#ifdef HAVE_FCNTL_H
8918#include <fcntl.h>
8919#endif
8920
8921#ifdef HAVE_SYS_MMAN_H
8922#include <sys/mman.h>
8923#endif
8924
8925#ifndef MAP_ANON
8926#ifdef MAP_ANONYMOUS
8927#define MAP_ANON MAP_ANONYMOUS
8928#else
8929#define MAP_ANON MAP_FILE
8930#endif
8931#endif
8932
8933#ifndef MAP_FILE
8934#define MAP_FILE 0
8935#endif
8936#ifndef O_RDONLY
8937#define O_RDONLY 0
8938#endif
8939
8940#define MAP_LEN 0x10000
8941
8942main ()
8943{
8944#if defined(HAVE_MMAP) || defined(HAVE_MMAP_ANYWHERE)
8945  char *p;
8946  int dev_zero;
8947
8948  dev_zero = open ("/dev/zero", O_RDONLY);
8949  if (dev_zero < 0)
8950    exit (1);
8951
8952  p = (char *) mmap (0, MAP_LEN, PROT_READ|PROT_WRITE,
8953		     MAP_ANON|MAP_PRIVATE, dev_zero, 0);
8954  if (p == (char *)-1)
8955    p = (char *) mmap (0, MAP_LEN, PROT_READ|PROT_WRITE,
8956		       MAP_ANON|MAP_PRIVATE, -1, 0);
8957  if (p == (char *)-1)
8958    exit (2);
8959  else
8960    {
8961      char *string = "__si_type_info";
8962      char *q = (char *) p + MAP_LEN - strlen (string) - 2;
8963      char *r = (char *) p + 0xe;
8964
8965      strcpy (q, string);
8966      strcpy (r, string);
8967      strncmp (r, q, 14);
8968    }
8969#endif /* HAVE_MMAP || HAVE_MMAP_ANYWHERE */
8970  exit (0);
8971}
8972
8973_ACEOF
8974rm -f conftest$ac_exeext
8975if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8976  (eval $ac_link) 2>&5
8977  ac_status=$?
8978  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8979  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8980  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8981  (eval $ac_try) 2>&5
8982  ac_status=$?
8983  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8984  (exit $ac_status); }; }; then
8985  ac_cv_func_strncmp_works=yes
8986else
8987  echo "$as_me: program exited with status $ac_status" >&5
8988echo "$as_me: failed program was:" >&5
8989sed 's/^/| /' conftest.$ac_ext >&5
8990
8991( exit $ac_status )
8992ac_cv_func_strncmp_works=no
8993fi
8994rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8995fi
8996rm -f core core.* *.core
8997fi
8998echo "$as_me:$LINENO: result: $ac_cv_func_strncmp_works" >&5
8999echo "${ECHO_T}$ac_cv_func_strncmp_works" >&6
9000if test $ac_cv_func_strncmp_works = no ; then
9001  case $LIBOBJS in
9002    "strncmp.$ac_objext"   | \
9003  *" strncmp.$ac_objext"   | \
9004    "strncmp.$ac_objext "* | \
9005  *" strncmp.$ac_objext "* ) ;;
9006  *) LIBOBJS="$LIBOBJS strncmp.$ac_objext" ;;
9007esac
9008
9009fi
9010
9011
9012# Install a library built with a cross compiler in $(tooldir) rather
9013# than $(libdir).
9014if test -z "${with_cross_host}"; then
9015  INSTALL_DEST=libdir
9016else
9017  INSTALL_DEST=tooldir
9018fi
9019
9020
9021
9022L=""
9023for l in x $LIBOBJS; do
9024  case $l in
9025    x) ;;
9026    *) L="$L ./$l" ;;
9027  esac
9028done
9029LIBOBJS="$L"
9030
9031
9032
9033
9034
9035# We need multilib support, but only if configuring for the target.
9036                    ac_config_files="$ac_config_files Makefile testsuite/Makefile"
9037
9038          ac_config_commands="$ac_config_commands default"
9039
9040cat >confcache <<\_ACEOF
9041# This file is a shell script that caches the results of configure
9042# tests run on this system so they can be shared between configure
9043# scripts and configure runs, see configure's option --config-cache.
9044# It is not useful on other systems.  If it contains results you don't
9045# want to keep, you may remove or edit it.
9046#
9047# config.status only pays attention to the cache file if you give it
9048# the --recheck option to rerun configure.
9049#
9050# `ac_cv_env_foo' variables (set or unset) will be overridden when
9051# loading this file, other *unset* `ac_cv_foo' will be assigned the
9052# following values.
9053
9054_ACEOF
9055
9056# The following way of writing the cache mishandles newlines in values,
9057# but we know of no workaround that is simple, portable, and efficient.
9058# So, don't put newlines in cache variables' values.
9059# Ultrix sh set writes to stderr and can't be redirected directly,
9060# and sets the high bit in the cache file unless we assign to the vars.
9061{
9062  (set) 2>&1 |
9063    case `(ac_space=' '; set | grep ac_space) 2>&1` in
9064    *ac_space=\ *)
9065      # `set' does not quote correctly, so add quotes (double-quote
9066      # substitution turns \\\\ into \\, and sed turns \\ into \).
9067      sed -n \
9068	"s/'/'\\\\''/g;
9069	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9070      ;;
9071    *)
9072      # `set' quotes correctly as required by POSIX, so do not add quotes.
9073      sed -n \
9074	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
9075      ;;
9076    esac;
9077} |
9078  sed '
9079     t clear
9080     : clear
9081     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9082     t end
9083     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9084     : end' >>confcache
9085if diff $cache_file confcache >/dev/null 2>&1; then :; else
9086  if test -w $cache_file; then
9087    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
9088    cat confcache >$cache_file
9089  else
9090    echo "not updating unwritable cache $cache_file"
9091  fi
9092fi
9093rm -f confcache
9094
9095test "x$prefix" = xNONE && prefix=$ac_default_prefix
9096# Let make expand exec_prefix.
9097test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9098
9099# VPATH may cause trouble with some makes, so we remove $(srcdir),
9100# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
9101# trailing colons and then remove the whole line if VPATH becomes empty
9102# (actually we leave an empty line to preserve line numbers).
9103if test "x$srcdir" = x.; then
9104  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
9105s/:*\$(srcdir):*/:/;
9106s/:*\${srcdir}:*/:/;
9107s/:*@srcdir@:*/:/;
9108s/^\([^=]*=[	 ]*\):*/\1/;
9109s/:*$//;
9110s/^[^=]*=[	 ]*$//;
9111}'
9112fi
9113
9114DEFS=-DHAVE_CONFIG_H
9115
9116ac_libobjs=
9117ac_ltlibobjs=
9118for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
9119  # 1. Remove the extension, and $U if already installed.
9120  ac_i=`echo "$ac_i" |
9121	 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
9122  # 2. Add them.
9123  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
9124  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
9125done
9126LIBOBJS=$ac_libobjs
9127
9128LTLIBOBJS=$ac_ltlibobjs
9129
9130
9131
9132: ${CONFIG_STATUS=./config.status}
9133ac_clean_files_save=$ac_clean_files
9134ac_clean_files="$ac_clean_files $CONFIG_STATUS"
9135{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
9136echo "$as_me: creating $CONFIG_STATUS" >&6;}
9137cat >$CONFIG_STATUS <<_ACEOF
9138#! $SHELL
9139# Generated by $as_me.
9140# Run this file to recreate the current configuration.
9141# Compiler output produced by configure, useful for debugging
9142# configure, is in config.log if it exists.
9143
9144debug=false
9145ac_cs_recheck=false
9146ac_cs_silent=false
9147SHELL=\${CONFIG_SHELL-$SHELL}
9148_ACEOF
9149
9150cat >>$CONFIG_STATUS <<\_ACEOF
9151## --------------------- ##
9152## M4sh Initialization.  ##
9153## --------------------- ##
9154
9155# Be Bourne compatible
9156if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
9157  emulate sh
9158  NULLCMD=:
9159  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
9160  # is contrary to our usage.  Disable this feature.
9161  alias -g '${1+"$@"}'='"$@"'
9162elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
9163  set -o posix
9164fi
9165DUALCASE=1; export DUALCASE # for MKS sh
9166
9167# Support unset when possible.
9168if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
9169  as_unset=unset
9170else
9171  as_unset=false
9172fi
9173
9174
9175# Work around bugs in pre-3.0 UWIN ksh.
9176$as_unset ENV MAIL MAILPATH
9177PS1='$ '
9178PS2='> '
9179PS4='+ '
9180
9181# NLS nuisances.
9182for as_var in \
9183  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
9184  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
9185  LC_TELEPHONE LC_TIME
9186do
9187  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
9188    eval $as_var=C; export $as_var
9189  else
9190    $as_unset $as_var
9191  fi
9192done
9193
9194# Required to use basename.
9195if expr a : '\(a\)' >/dev/null 2>&1; then
9196  as_expr=expr
9197else
9198  as_expr=false
9199fi
9200
9201if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
9202  as_basename=basename
9203else
9204  as_basename=false
9205fi
9206
9207
9208# Name of the executable.
9209as_me=`$as_basename "$0" ||
9210$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9211	 X"$0" : 'X\(//\)$' \| \
9212	 X"$0" : 'X\(/\)$' \| \
9213	 .     : '\(.\)' 2>/dev/null ||
9214echo X/"$0" |
9215    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
9216  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
9217  	  /^X\/\(\/\).*/{ s//\1/; q; }
9218  	  s/.*/./; q'`
9219
9220
9221# PATH needs CR, and LINENO needs CR and PATH.
9222# Avoid depending upon Character Ranges.
9223as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9224as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9225as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9226as_cr_digits='0123456789'
9227as_cr_alnum=$as_cr_Letters$as_cr_digits
9228
9229# The user is always right.
9230if test "${PATH_SEPARATOR+set}" != set; then
9231  echo "#! /bin/sh" >conf$$.sh
9232  echo  "exit 0"   >>conf$$.sh
9233  chmod +x conf$$.sh
9234  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9235    PATH_SEPARATOR=';'
9236  else
9237    PATH_SEPARATOR=:
9238  fi
9239  rm -f conf$$.sh
9240fi
9241
9242
9243  as_lineno_1=$LINENO
9244  as_lineno_2=$LINENO
9245  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9246  test "x$as_lineno_1" != "x$as_lineno_2" &&
9247  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
9248  # Find who we are.  Look in the path if we contain no path at all
9249  # relative or not.
9250  case $0 in
9251    *[\\/]* ) as_myself=$0 ;;
9252    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9253for as_dir in $PATH
9254do
9255  IFS=$as_save_IFS
9256  test -z "$as_dir" && as_dir=.
9257  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9258done
9259
9260       ;;
9261  esac
9262  # We did not find ourselves, most probably we were run as `sh COMMAND'
9263  # in which case we are not to be found in the path.
9264  if test "x$as_myself" = x; then
9265    as_myself=$0
9266  fi
9267  if test ! -f "$as_myself"; then
9268    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
9269echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
9270   { (exit 1); exit 1; }; }
9271  fi
9272  case $CONFIG_SHELL in
9273  '')
9274    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9275for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
9276do
9277  IFS=$as_save_IFS
9278  test -z "$as_dir" && as_dir=.
9279  for as_base in sh bash ksh sh5; do
9280	 case $as_dir in
9281	 /*)
9282	   if ("$as_dir/$as_base" -c '
9283  as_lineno_1=$LINENO
9284  as_lineno_2=$LINENO
9285  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9286  test "x$as_lineno_1" != "x$as_lineno_2" &&
9287  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
9288	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
9289	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
9290	     CONFIG_SHELL=$as_dir/$as_base
9291	     export CONFIG_SHELL
9292	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
9293	   fi;;
9294	 esac
9295       done
9296done
9297;;
9298  esac
9299
9300  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
9301  # uniformly replaced by the line number.  The first 'sed' inserts a
9302  # line-number line before each line; the second 'sed' does the real
9303  # work.  The second script uses 'N' to pair each line-number line
9304  # with the numbered line, and appends trailing '-' during
9305  # substitution so that $LINENO is not a special case at line end.
9306  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
9307  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
9308  sed '=' <$as_myself |
9309    sed '
9310      N
9311      s,$,-,
9312      : loop
9313      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
9314      t loop
9315      s,-$,,
9316      s,^['$as_cr_digits']*\n,,
9317    ' >$as_me.lineno &&
9318  chmod +x $as_me.lineno ||
9319    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
9320echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
9321   { (exit 1); exit 1; }; }
9322
9323  # Don't try to exec as it changes $[0], causing all sort of problems
9324  # (the dirname of $[0] is not the place where we might find the
9325  # original and so on.  Autoconf is especially sensible to this).
9326  . ./$as_me.lineno
9327  # Exit status is that of the last command.
9328  exit
9329}
9330
9331
9332case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
9333  *c*,-n*) ECHO_N= ECHO_C='
9334' ECHO_T='	' ;;
9335  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
9336  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
9337esac
9338
9339if expr a : '\(a\)' >/dev/null 2>&1; then
9340  as_expr=expr
9341else
9342  as_expr=false
9343fi
9344
9345rm -f conf$$ conf$$.exe conf$$.file
9346echo >conf$$.file
9347if ln -s conf$$.file conf$$ 2>/dev/null; then
9348  # We could just check for DJGPP; but this test a) works b) is more generic
9349  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
9350  if test -f conf$$.exe; then
9351    # Don't use ln at all; we don't have any links
9352    as_ln_s='cp -p'
9353  else
9354    as_ln_s='ln -s'
9355  fi
9356elif ln conf$$.file conf$$ 2>/dev/null; then
9357  as_ln_s=ln
9358else
9359  as_ln_s='cp -p'
9360fi
9361rm -f conf$$ conf$$.exe conf$$.file
9362
9363if mkdir -p . 2>/dev/null; then
9364  as_mkdir_p=:
9365else
9366  test -d ./-p && rmdir ./-p
9367  as_mkdir_p=false
9368fi
9369
9370as_executable_p="test -f"
9371
9372# Sed expression to map a string onto a valid CPP name.
9373as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
9374
9375# Sed expression to map a string onto a valid variable name.
9376as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
9377
9378
9379# IFS
9380# We need space, tab and new line, in precisely that order.
9381as_nl='
9382'
9383IFS=" 	$as_nl"
9384
9385# CDPATH.
9386$as_unset CDPATH
9387
9388exec 6>&1
9389
9390# Open the log real soon, to keep \$[0] and so on meaningful, and to
9391# report actual input values of CONFIG_FILES etc. instead of their
9392# values after options handling.  Logging --version etc. is OK.
9393exec 5>>config.log
9394{
9395  echo
9396  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9397## Running $as_me. ##
9398_ASBOX
9399} >&5
9400cat >&5 <<_CSEOF
9401
9402This file was extended by $as_me, which was
9403generated by GNU Autoconf 2.59.  Invocation command line was
9404
9405  CONFIG_FILES    = $CONFIG_FILES
9406  CONFIG_HEADERS  = $CONFIG_HEADERS
9407  CONFIG_LINKS    = $CONFIG_LINKS
9408  CONFIG_COMMANDS = $CONFIG_COMMANDS
9409  $ $0 $@
9410
9411_CSEOF
9412echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
9413echo >&5
9414_ACEOF
9415
9416# Files that config.status was made for.
9417if test -n "$ac_config_files"; then
9418  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
9419fi
9420
9421if test -n "$ac_config_headers"; then
9422  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
9423fi
9424
9425if test -n "$ac_config_links"; then
9426  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
9427fi
9428
9429if test -n "$ac_config_commands"; then
9430  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
9431fi
9432
9433cat >>$CONFIG_STATUS <<\_ACEOF
9434
9435ac_cs_usage="\
9436\`$as_me' instantiates files from templates according to the
9437current configuration.
9438
9439Usage: $0 [OPTIONS] [FILE]...
9440
9441  -h, --help       print this help, then exit
9442  -V, --version    print version number, then exit
9443  -q, --quiet      do not print progress messages
9444  -d, --debug      don't remove temporary files
9445      --recheck    update $as_me by reconfiguring in the same conditions
9446  --file=FILE[:TEMPLATE]
9447		   instantiate the configuration file FILE
9448  --header=FILE[:TEMPLATE]
9449		   instantiate the configuration header FILE
9450
9451Configuration files:
9452$config_files
9453
9454Configuration headers:
9455$config_headers
9456
9457Configuration commands:
9458$config_commands
9459
9460Report bugs to <bug-autoconf@gnu.org>."
9461_ACEOF
9462
9463cat >>$CONFIG_STATUS <<_ACEOF
9464ac_cs_version="\\
9465config.status
9466configured by $0, generated by GNU Autoconf 2.59,
9467  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
9468
9469Copyright (C) 2003 Free Software Foundation, Inc.
9470This config.status script is free software; the Free Software Foundation
9471gives unlimited permission to copy, distribute and modify it."
9472srcdir=$srcdir
9473INSTALL="$INSTALL"
9474_ACEOF
9475
9476cat >>$CONFIG_STATUS <<\_ACEOF
9477# If no file are specified by the user, then we need to provide default
9478# value.  By we need to know if files were specified by the user.
9479ac_need_defaults=:
9480while test $# != 0
9481do
9482  case $1 in
9483  --*=*)
9484    ac_option=`expr "x$1" : 'x\([^=]*\)='`
9485    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
9486    ac_shift=:
9487    ;;
9488  -*)
9489    ac_option=$1
9490    ac_optarg=$2
9491    ac_shift=shift
9492    ;;
9493  *) # This is not an option, so the user has probably given explicit
9494     # arguments.
9495     ac_option=$1
9496     ac_need_defaults=false;;
9497  esac
9498
9499  case $ac_option in
9500  # Handling of the options.
9501_ACEOF
9502cat >>$CONFIG_STATUS <<\_ACEOF
9503  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9504    ac_cs_recheck=: ;;
9505  --version | --vers* | -V )
9506    echo "$ac_cs_version"; exit 0 ;;
9507  --he | --h)
9508    # Conflict between --help and --header
9509    { { echo "$as_me:$LINENO: error: ambiguous option: $1
9510Try \`$0 --help' for more information." >&5
9511echo "$as_me: error: ambiguous option: $1
9512Try \`$0 --help' for more information." >&2;}
9513   { (exit 1); exit 1; }; };;
9514  --help | --hel | -h )
9515    echo "$ac_cs_usage"; exit 0 ;;
9516  --debug | --d* | -d )
9517    debug=: ;;
9518  --file | --fil | --fi | --f )
9519    $ac_shift
9520    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
9521    ac_need_defaults=false;;
9522  --header | --heade | --head | --hea )
9523    $ac_shift
9524    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
9525    ac_need_defaults=false;;
9526  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
9527  | -silent | --silent | --silen | --sile | --sil | --si | --s)
9528    ac_cs_silent=: ;;
9529
9530  # This is an error.
9531  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
9532Try \`$0 --help' for more information." >&5
9533echo "$as_me: error: unrecognized option: $1
9534Try \`$0 --help' for more information." >&2;}
9535   { (exit 1); exit 1; }; } ;;
9536
9537  *) ac_config_targets="$ac_config_targets $1" ;;
9538
9539  esac
9540  shift
9541done
9542
9543ac_configure_extra_args=
9544
9545if $ac_cs_silent; then
9546  exec 6>/dev/null
9547  ac_configure_extra_args="$ac_configure_extra_args --silent"
9548fi
9549
9550_ACEOF
9551cat >>$CONFIG_STATUS <<_ACEOF
9552if \$ac_cs_recheck; then
9553  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
9554  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9555fi
9556
9557_ACEOF
9558
9559cat >>$CONFIG_STATUS <<_ACEOF
9560#
9561# INIT-COMMANDS section.
9562#
9563
9564srcdir=${srcdir}
9565host=${host}
9566target=${target}
9567with_target_subdir=${with_target_subdir}
9568with_multisubdir=${with_multisubdir}
9569ac_configure_args="--enable-multilib ${ac_configure_args}"
9570CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
9571ORIGINAL_LD_FOR_MULTILIBS="${ORIGINAL_LD_FOR_MULTILIBS}"
9572libiberty_topdir=${libiberty_topdir}
9573
9574
9575_ACEOF
9576
9577
9578
9579cat >>$CONFIG_STATUS <<\_ACEOF
9580for ac_config_target in $ac_config_targets
9581do
9582  case "$ac_config_target" in
9583  # Handling of arguments.
9584  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
9585  "testsuite/Makefile" ) CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
9586  "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
9587  "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
9588  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
9589echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
9590   { (exit 1); exit 1; }; };;
9591  esac
9592done
9593
9594# If the user did not use the arguments to specify the items to instantiate,
9595# then the envvar interface is used.  Set only those that are not.
9596# We use the long form for the default assignment because of an extremely
9597# bizarre bug on SunOS 4.1.3.
9598if $ac_need_defaults; then
9599  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
9600  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
9601  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
9602fi
9603
9604# Have a temporary directory for convenience.  Make it in the build tree
9605# simply because there is no reason to put it here, and in addition,
9606# creating and moving files from /tmp can sometimes cause problems.
9607# Create a temporary directory, and hook for its removal unless debugging.
9608$debug ||
9609{
9610  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
9611  trap '{ (exit 1); exit 1; }' 1 2 13 15
9612}
9613
9614# Create a (secure) tmp directory for tmp files.
9615
9616{
9617  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
9618  test -n "$tmp" && test -d "$tmp"
9619}  ||
9620{
9621  tmp=./confstat$$-$RANDOM
9622  (umask 077 && mkdir $tmp)
9623} ||
9624{
9625   echo "$me: cannot create a temporary directory in ." >&2
9626   { (exit 1); exit 1; }
9627}
9628
9629_ACEOF
9630
9631cat >>$CONFIG_STATUS <<_ACEOF
9632
9633#
9634# CONFIG_FILES section.
9635#
9636
9637# No need to generate the scripts if there are no CONFIG_FILES.
9638# This happens for instance when ./config.status config.h
9639if test -n "\$CONFIG_FILES"; then
9640  # Protect against being on the right side of a sed subst in config.status.
9641  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
9642   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
9643s,@SHELL@,$SHELL,;t t
9644s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
9645s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
9646s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
9647s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
9648s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
9649s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
9650s,@exec_prefix@,$exec_prefix,;t t
9651s,@prefix@,$prefix,;t t
9652s,@program_transform_name@,$program_transform_name,;t t
9653s,@bindir@,$bindir,;t t
9654s,@sbindir@,$sbindir,;t t
9655s,@libexecdir@,$libexecdir,;t t
9656s,@datadir@,$datadir,;t t
9657s,@sysconfdir@,$sysconfdir,;t t
9658s,@sharedstatedir@,$sharedstatedir,;t t
9659s,@localstatedir@,$localstatedir,;t t
9660s,@libdir@,$libdir,;t t
9661s,@includedir@,$includedir,;t t
9662s,@oldincludedir@,$oldincludedir,;t t
9663s,@infodir@,$infodir,;t t
9664s,@mandir@,$mandir,;t t
9665s,@build_alias@,$build_alias,;t t
9666s,@host_alias@,$host_alias,;t t
9667s,@target_alias@,$target_alias,;t t
9668s,@DEFS@,$DEFS,;t t
9669s,@ECHO_C@,$ECHO_C,;t t
9670s,@ECHO_N@,$ECHO_N,;t t
9671s,@ECHO_T@,$ECHO_T,;t t
9672s,@LIBS@,$LIBS,;t t
9673s,@libiberty_topdir@,$libiberty_topdir,;t t
9674s,@MAINT@,$MAINT,;t t
9675s,@NOTMAINT@,$NOTMAINT,;t t
9676s,@MAKEINFO@,$MAKEINFO,;t t
9677s,@BUILD_INFO@,$BUILD_INFO,;t t
9678s,@PERL@,$PERL,;t t
9679s,@HAVE_PERL@,$HAVE_PERL,;t t
9680s,@build@,$build,;t t
9681s,@build_cpu@,$build_cpu,;t t
9682s,@build_vendor@,$build_vendor,;t t
9683s,@build_os@,$build_os,;t t
9684s,@host@,$host,;t t
9685s,@host_cpu@,$host_cpu,;t t
9686s,@host_vendor@,$host_vendor,;t t
9687s,@host_os@,$host_os,;t t
9688s,@AR@,$AR,;t t
9689s,@ac_ct_AR@,$ac_ct_AR,;t t
9690s,@RANLIB@,$RANLIB,;t t
9691s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
9692s,@CC@,$CC,;t t
9693s,@CFLAGS@,$CFLAGS,;t t
9694s,@LDFLAGS@,$LDFLAGS,;t t
9695s,@CPPFLAGS@,$CPPFLAGS,;t t
9696s,@ac_ct_CC@,$ac_ct_CC,;t t
9697s,@EXEEXT@,$EXEEXT,;t t
9698s,@OBJEXT@,$OBJEXT,;t t
9699s,@CPP@,$CPP,;t t
9700s,@ac_libiberty_warn_cflags@,$ac_libiberty_warn_cflags,;t t
9701s,@NO_MINUS_C_MINUS_O@,$NO_MINUS_C_MINUS_O,;t t
9702s,@OUTPUT_OPTION@,$OUTPUT_OPTION,;t t
9703s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
9704s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
9705s,@INSTALL_DATA@,$INSTALL_DATA,;t t
9706s,@PICFLAG@,$PICFLAG,;t t
9707s,@EGREP@,$EGREP,;t t
9708s,@LIBOBJS@,$LIBOBJS,;t t
9709s,@CHECK@,$CHECK,;t t
9710s,@target_header_dir@,$target_header_dir,;t t
9711s,@pexecute@,$pexecute,;t t
9712s,@INSTALL_DEST@,$INSTALL_DEST,;t t
9713s,@datarootdir@,$datarootdir,;t t
9714s,@docdir@,$docdir,;t t
9715s,@htmldir@,$htmldir,;t t
9716s,@LTLIBOBJS@,$LTLIBOBJS,;t t
9717/@host_makefile_frag@/r $host_makefile_frag
9718s,@host_makefile_frag@,,;t t
9719CEOF
9720
9721_ACEOF
9722
9723  cat >>$CONFIG_STATUS <<\_ACEOF
9724  # Split the substitutions into bite-sized pieces for seds with
9725  # small command number limits, like on Digital OSF/1 and HP-UX.
9726  ac_max_sed_lines=48
9727  ac_sed_frag=1 # Number of current file.
9728  ac_beg=1 # First line for current file.
9729  ac_end=$ac_max_sed_lines # Line after last line for current file.
9730  ac_more_lines=:
9731  ac_sed_cmds=
9732  while $ac_more_lines; do
9733    if test $ac_beg -gt 1; then
9734      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9735    else
9736      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9737    fi
9738    if test ! -s $tmp/subs.frag; then
9739      ac_more_lines=false
9740    else
9741      # The purpose of the label and of the branching condition is to
9742      # speed up the sed processing (if there are no `@' at all, there
9743      # is no need to browse any of the substitutions).
9744      # These are the two extra sed commands mentioned above.
9745      (echo ':t
9746  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
9747      if test -z "$ac_sed_cmds"; then
9748	ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
9749      else
9750	ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
9751      fi
9752      ac_sed_frag=`expr $ac_sed_frag + 1`
9753      ac_beg=$ac_end
9754      ac_end=`expr $ac_end + $ac_max_sed_lines`
9755    fi
9756  done
9757  if test -z "$ac_sed_cmds"; then
9758    ac_sed_cmds=cat
9759  fi
9760fi # test -n "$CONFIG_FILES"
9761
9762_ACEOF
9763cat >>$CONFIG_STATUS <<\_ACEOF
9764for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
9765  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9766  case $ac_file in
9767  - | *:- | *:-:* ) # input from stdin
9768	cat >$tmp/stdin
9769	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9770	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9771  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9772	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9773  * )   ac_file_in=$ac_file.in ;;
9774  esac
9775
9776  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
9777  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
9778$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9779	 X"$ac_file" : 'X\(//\)[^/]' \| \
9780	 X"$ac_file" : 'X\(//\)$' \| \
9781	 X"$ac_file" : 'X\(/\)' \| \
9782	 .     : '\(.\)' 2>/dev/null ||
9783echo X"$ac_file" |
9784    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9785  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9786  	  /^X\(\/\/\)$/{ s//\1/; q; }
9787  	  /^X\(\/\).*/{ s//\1/; q; }
9788  	  s/.*/./; q'`
9789  { if $as_mkdir_p; then
9790    mkdir -p "$ac_dir"
9791  else
9792    as_dir="$ac_dir"
9793    as_dirs=
9794    while test ! -d "$as_dir"; do
9795      as_dirs="$as_dir $as_dirs"
9796      as_dir=`(dirname "$as_dir") 2>/dev/null ||
9797$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9798	 X"$as_dir" : 'X\(//\)[^/]' \| \
9799	 X"$as_dir" : 'X\(//\)$' \| \
9800	 X"$as_dir" : 'X\(/\)' \| \
9801	 .     : '\(.\)' 2>/dev/null ||
9802echo X"$as_dir" |
9803    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9804  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9805  	  /^X\(\/\/\)$/{ s//\1/; q; }
9806  	  /^X\(\/\).*/{ s//\1/; q; }
9807  	  s/.*/./; q'`
9808    done
9809    test ! -n "$as_dirs" || mkdir $as_dirs
9810  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9811echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9812   { (exit 1); exit 1; }; }; }
9813
9814  ac_builddir=.
9815
9816if test "$ac_dir" != .; then
9817  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9818  # A "../" for each directory in $ac_dir_suffix.
9819  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9820else
9821  ac_dir_suffix= ac_top_builddir=
9822fi
9823
9824case $srcdir in
9825  .)  # No --srcdir option.  We are building in place.
9826    ac_srcdir=.
9827    if test -z "$ac_top_builddir"; then
9828       ac_top_srcdir=.
9829    else
9830       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
9831    fi ;;
9832  [\\/]* | ?:[\\/]* )  # Absolute path.
9833    ac_srcdir=$srcdir$ac_dir_suffix;
9834    ac_top_srcdir=$srcdir ;;
9835  *) # Relative path.
9836    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
9837    ac_top_srcdir=$ac_top_builddir$srcdir ;;
9838esac
9839
9840# Do not use `cd foo && pwd` to compute absolute paths, because
9841# the directories may not exist.
9842case `pwd` in
9843.) ac_abs_builddir="$ac_dir";;
9844*)
9845  case "$ac_dir" in
9846  .) ac_abs_builddir=`pwd`;;
9847  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
9848  *) ac_abs_builddir=`pwd`/"$ac_dir";;
9849  esac;;
9850esac
9851case $ac_abs_builddir in
9852.) ac_abs_top_builddir=${ac_top_builddir}.;;
9853*)
9854  case ${ac_top_builddir}. in
9855  .) ac_abs_top_builddir=$ac_abs_builddir;;
9856  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
9857  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
9858  esac;;
9859esac
9860case $ac_abs_builddir in
9861.) ac_abs_srcdir=$ac_srcdir;;
9862*)
9863  case $ac_srcdir in
9864  .) ac_abs_srcdir=$ac_abs_builddir;;
9865  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
9866  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
9867  esac;;
9868esac
9869case $ac_abs_builddir in
9870.) ac_abs_top_srcdir=$ac_top_srcdir;;
9871*)
9872  case $ac_top_srcdir in
9873  .) ac_abs_top_srcdir=$ac_abs_builddir;;
9874  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
9875  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
9876  esac;;
9877esac
9878
9879
9880  case $INSTALL in
9881  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
9882  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
9883  esac
9884
9885  if test x"$ac_file" != x-; then
9886    { echo "$as_me:$LINENO: creating $ac_file" >&5
9887echo "$as_me: creating $ac_file" >&6;}
9888    rm -f "$ac_file"
9889  fi
9890  # Let's still pretend it is `configure' which instantiates (i.e., don't
9891  # use $as_me), people would be surprised to read:
9892  #    /* config.h.  Generated by config.status.  */
9893  if test x"$ac_file" = x-; then
9894    configure_input=
9895  else
9896    configure_input="$ac_file.  "
9897  fi
9898  configure_input=$configure_input"Generated from `echo $ac_file_in |
9899				     sed 's,.*/,,'` by configure."
9900
9901  # First look for the input files in the build tree, otherwise in the
9902  # src tree.
9903  ac_file_inputs=`IFS=:
9904    for f in $ac_file_in; do
9905      case $f in
9906      -) echo $tmp/stdin ;;
9907      [\\/$]*)
9908	 # Absolute (can't be DOS-style, as IFS=:)
9909	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9910echo "$as_me: error: cannot find input file: $f" >&2;}
9911   { (exit 1); exit 1; }; }
9912	 echo "$f";;
9913      *) # Relative
9914	 if test -f "$f"; then
9915	   # Build tree
9916	   echo "$f"
9917	 elif test -f "$srcdir/$f"; then
9918	   # Source tree
9919	   echo "$srcdir/$f"
9920	 else
9921	   # /dev/null tree
9922	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9923echo "$as_me: error: cannot find input file: $f" >&2;}
9924   { (exit 1); exit 1; }; }
9925	 fi;;
9926      esac
9927    done` || { (exit 1); exit 1; }
9928_ACEOF
9929cat >>$CONFIG_STATUS <<_ACEOF
9930  sed "$ac_vpsub
9931$extrasub
9932_ACEOF
9933cat >>$CONFIG_STATUS <<\_ACEOF
9934:t
9935/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9936s,@configure_input@,$configure_input,;t t
9937s,@srcdir@,$ac_srcdir,;t t
9938s,@abs_srcdir@,$ac_abs_srcdir,;t t
9939s,@top_srcdir@,$ac_top_srcdir,;t t
9940s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
9941s,@builddir@,$ac_builddir,;t t
9942s,@abs_builddir@,$ac_abs_builddir,;t t
9943s,@top_builddir@,$ac_top_builddir,;t t
9944s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
9945s,@INSTALL@,$ac_INSTALL,;t t
9946" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
9947  rm -f $tmp/stdin
9948  if test x"$ac_file" != x-; then
9949    mv $tmp/out $ac_file
9950  else
9951    cat $tmp/out
9952    rm -f $tmp/out
9953  fi
9954
9955done
9956_ACEOF
9957cat >>$CONFIG_STATUS <<\_ACEOF
9958
9959#
9960# CONFIG_HEADER section.
9961#
9962
9963# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
9964# NAME is the cpp macro being defined and VALUE is the value it is being given.
9965#
9966# ac_d sets the value in "#define NAME VALUE" lines.
9967ac_dA='s,^\([	 ]*\)#\([	 ]*define[	 ][	 ]*\)'
9968ac_dB='[	 ].*$,\1#\2'
9969ac_dC=' '
9970ac_dD=',;t'
9971# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9972ac_uA='s,^\([	 ]*\)#\([	 ]*\)undef\([	 ][	 ]*\)'
9973ac_uB='$,\1#\2define\3'
9974ac_uC=' '
9975ac_uD=',;t'
9976
9977for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
9978  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9979  case $ac_file in
9980  - | *:- | *:-:* ) # input from stdin
9981	cat >$tmp/stdin
9982	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9983	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9984  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9985	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9986  * )   ac_file_in=$ac_file.in ;;
9987  esac
9988
9989  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
9990echo "$as_me: creating $ac_file" >&6;}
9991
9992  # First look for the input files in the build tree, otherwise in the
9993  # src tree.
9994  ac_file_inputs=`IFS=:
9995    for f in $ac_file_in; do
9996      case $f in
9997      -) echo $tmp/stdin ;;
9998      [\\/$]*)
9999	 # Absolute (can't be DOS-style, as IFS=:)
10000	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10001echo "$as_me: error: cannot find input file: $f" >&2;}
10002   { (exit 1); exit 1; }; }
10003	 # Do quote $f, to prevent DOS paths from being IFS'd.
10004	 echo "$f";;
10005      *) # Relative
10006	 if test -f "$f"; then
10007	   # Build tree
10008	   echo "$f"
10009	 elif test -f "$srcdir/$f"; then
10010	   # Source tree
10011	   echo "$srcdir/$f"
10012	 else
10013	   # /dev/null tree
10014	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10015echo "$as_me: error: cannot find input file: $f" >&2;}
10016   { (exit 1); exit 1; }; }
10017	 fi;;
10018      esac
10019    done` || { (exit 1); exit 1; }
10020  # Remove the trailing spaces.
10021  sed 's/[	 ]*$//' $ac_file_inputs >$tmp/in
10022
10023_ACEOF
10024
10025# Transform confdefs.h into two sed scripts, `conftest.defines' and
10026# `conftest.undefs', that substitutes the proper values into
10027# config.h.in to produce config.h.  The first handles `#define'
10028# templates, and the second `#undef' templates.
10029# And first: Protect against being on the right side of a sed subst in
10030# config.status.  Protect against being in an unquoted here document
10031# in config.status.
10032rm -f conftest.defines conftest.undefs
10033# Using a here document instead of a string reduces the quoting nightmare.
10034# Putting comments in sed scripts is not portable.
10035#
10036# `end' is used to avoid that the second main sed command (meant for
10037# 0-ary CPP macros) applies to n-ary macro definitions.
10038# See the Autoconf documentation for `clear'.
10039cat >confdef2sed.sed <<\_ACEOF
10040s/[\\&,]/\\&/g
10041s,[\\$`],\\&,g
10042t clear
10043: clear
10044s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*\)\(([^)]*)\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
10045t end
10046s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
10047: end
10048_ACEOF
10049# If some macros were called several times there might be several times
10050# the same #defines, which is useless.  Nevertheless, we may not want to
10051# sort them, since we want the *last* AC-DEFINE to be honored.
10052uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
10053sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
10054rm -f confdef2sed.sed
10055
10056# This sed command replaces #undef with comments.  This is necessary, for
10057# example, in the case of _POSIX_SOURCE, which is predefined and required
10058# on some systems where configure will not decide to define it.
10059cat >>conftest.undefs <<\_ACEOF
10060s,^[	 ]*#[	 ]*undef[	 ][	 ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
10061_ACEOF
10062
10063# Break up conftest.defines because some shells have a limit on the size
10064# of here documents, and old seds have small limits too (100 cmds).
10065echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
10066echo '  if grep "^[	 ]*#[	 ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
10067echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
10068echo '  :' >>$CONFIG_STATUS
10069rm -f conftest.tail
10070while grep . conftest.defines >/dev/null
10071do
10072  # Write a limited-size here document to $tmp/defines.sed.
10073  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
10074  # Speed up: don't consider the non `#define' lines.
10075  echo '/^[	 ]*#[	 ]*define/!b' >>$CONFIG_STATUS
10076  # Work around the forget-to-reset-the-flag bug.
10077  echo 't clr' >>$CONFIG_STATUS
10078  echo ': clr' >>$CONFIG_STATUS
10079  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
10080  echo 'CEOF
10081  sed -f $tmp/defines.sed $tmp/in >$tmp/out
10082  rm -f $tmp/in
10083  mv $tmp/out $tmp/in
10084' >>$CONFIG_STATUS
10085  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
10086  rm -f conftest.defines
10087  mv conftest.tail conftest.defines
10088done
10089rm -f conftest.defines
10090echo '  fi # grep' >>$CONFIG_STATUS
10091echo >>$CONFIG_STATUS
10092
10093# Break up conftest.undefs because some shells have a limit on the size
10094# of here documents, and old seds have small limits too (100 cmds).
10095echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
10096rm -f conftest.tail
10097while grep . conftest.undefs >/dev/null
10098do
10099  # Write a limited-size here document to $tmp/undefs.sed.
10100  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
10101  # Speed up: don't consider the non `#undef'
10102  echo '/^[	 ]*#[	 ]*undef/!b' >>$CONFIG_STATUS
10103  # Work around the forget-to-reset-the-flag bug.
10104  echo 't clr' >>$CONFIG_STATUS
10105  echo ': clr' >>$CONFIG_STATUS
10106  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
10107  echo 'CEOF
10108  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
10109  rm -f $tmp/in
10110  mv $tmp/out $tmp/in
10111' >>$CONFIG_STATUS
10112  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
10113  rm -f conftest.undefs
10114  mv conftest.tail conftest.undefs
10115done
10116rm -f conftest.undefs
10117
10118cat >>$CONFIG_STATUS <<\_ACEOF
10119  # Let's still pretend it is `configure' which instantiates (i.e., don't
10120  # use $as_me), people would be surprised to read:
10121  #    /* config.h.  Generated by config.status.  */
10122  if test x"$ac_file" = x-; then
10123    echo "/* Generated by configure.  */" >$tmp/config.h
10124  else
10125    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
10126  fi
10127  cat $tmp/in >>$tmp/config.h
10128  rm -f $tmp/in
10129  if test x"$ac_file" != x-; then
10130    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
10131      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
10132echo "$as_me: $ac_file is unchanged" >&6;}
10133    else
10134      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
10135$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10136	 X"$ac_file" : 'X\(//\)[^/]' \| \
10137	 X"$ac_file" : 'X\(//\)$' \| \
10138	 X"$ac_file" : 'X\(/\)' \| \
10139	 .     : '\(.\)' 2>/dev/null ||
10140echo X"$ac_file" |
10141    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10142  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10143  	  /^X\(\/\/\)$/{ s//\1/; q; }
10144  	  /^X\(\/\).*/{ s//\1/; q; }
10145  	  s/.*/./; q'`
10146      { if $as_mkdir_p; then
10147    mkdir -p "$ac_dir"
10148  else
10149    as_dir="$ac_dir"
10150    as_dirs=
10151    while test ! -d "$as_dir"; do
10152      as_dirs="$as_dir $as_dirs"
10153      as_dir=`(dirname "$as_dir") 2>/dev/null ||
10154$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10155	 X"$as_dir" : 'X\(//\)[^/]' \| \
10156	 X"$as_dir" : 'X\(//\)$' \| \
10157	 X"$as_dir" : 'X\(/\)' \| \
10158	 .     : '\(.\)' 2>/dev/null ||
10159echo X"$as_dir" |
10160    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10161  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10162  	  /^X\(\/\/\)$/{ s//\1/; q; }
10163  	  /^X\(\/\).*/{ s//\1/; q; }
10164  	  s/.*/./; q'`
10165    done
10166    test ! -n "$as_dirs" || mkdir $as_dirs
10167  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10168echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10169   { (exit 1); exit 1; }; }; }
10170
10171      rm -f $ac_file
10172      mv $tmp/config.h $ac_file
10173    fi
10174  else
10175    cat $tmp/config.h
10176    rm -f $tmp/config.h
10177  fi
10178done
10179_ACEOF
10180cat >>$CONFIG_STATUS <<\_ACEOF
10181
10182#
10183# CONFIG_COMMANDS section.
10184#
10185for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
10186  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
10187  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
10188  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
10189$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10190	 X"$ac_dest" : 'X\(//\)[^/]' \| \
10191	 X"$ac_dest" : 'X\(//\)$' \| \
10192	 X"$ac_dest" : 'X\(/\)' \| \
10193	 .     : '\(.\)' 2>/dev/null ||
10194echo X"$ac_dest" |
10195    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10196  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10197  	  /^X\(\/\/\)$/{ s//\1/; q; }
10198  	  /^X\(\/\).*/{ s//\1/; q; }
10199  	  s/.*/./; q'`
10200  { if $as_mkdir_p; then
10201    mkdir -p "$ac_dir"
10202  else
10203    as_dir="$ac_dir"
10204    as_dirs=
10205    while test ! -d "$as_dir"; do
10206      as_dirs="$as_dir $as_dirs"
10207      as_dir=`(dirname "$as_dir") 2>/dev/null ||
10208$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10209	 X"$as_dir" : 'X\(//\)[^/]' \| \
10210	 X"$as_dir" : 'X\(//\)$' \| \
10211	 X"$as_dir" : 'X\(/\)' \| \
10212	 .     : '\(.\)' 2>/dev/null ||
10213echo X"$as_dir" |
10214    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10215  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10216  	  /^X\(\/\/\)$/{ s//\1/; q; }
10217  	  /^X\(\/\).*/{ s//\1/; q; }
10218  	  s/.*/./; q'`
10219    done
10220    test ! -n "$as_dirs" || mkdir $as_dirs
10221  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10222echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10223   { (exit 1); exit 1; }; }; }
10224
10225  ac_builddir=.
10226
10227if test "$ac_dir" != .; then
10228  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10229  # A "../" for each directory in $ac_dir_suffix.
10230  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10231else
10232  ac_dir_suffix= ac_top_builddir=
10233fi
10234
10235case $srcdir in
10236  .)  # No --srcdir option.  We are building in place.
10237    ac_srcdir=.
10238    if test -z "$ac_top_builddir"; then
10239       ac_top_srcdir=.
10240    else
10241       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
10242    fi ;;
10243  [\\/]* | ?:[\\/]* )  # Absolute path.
10244    ac_srcdir=$srcdir$ac_dir_suffix;
10245    ac_top_srcdir=$srcdir ;;
10246  *) # Relative path.
10247    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
10248    ac_top_srcdir=$ac_top_builddir$srcdir ;;
10249esac
10250
10251# Do not use `cd foo && pwd` to compute absolute paths, because
10252# the directories may not exist.
10253case `pwd` in
10254.) ac_abs_builddir="$ac_dir";;
10255*)
10256  case "$ac_dir" in
10257  .) ac_abs_builddir=`pwd`;;
10258  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
10259  *) ac_abs_builddir=`pwd`/"$ac_dir";;
10260  esac;;
10261esac
10262case $ac_abs_builddir in
10263.) ac_abs_top_builddir=${ac_top_builddir}.;;
10264*)
10265  case ${ac_top_builddir}. in
10266  .) ac_abs_top_builddir=$ac_abs_builddir;;
10267  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
10268  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
10269  esac;;
10270esac
10271case $ac_abs_builddir in
10272.) ac_abs_srcdir=$ac_srcdir;;
10273*)
10274  case $ac_srcdir in
10275  .) ac_abs_srcdir=$ac_abs_builddir;;
10276  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
10277  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
10278  esac;;
10279esac
10280case $ac_abs_builddir in
10281.) ac_abs_top_srcdir=$ac_top_srcdir;;
10282*)
10283  case $ac_top_srcdir in
10284  .) ac_abs_top_srcdir=$ac_abs_builddir;;
10285  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
10286  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
10287  esac;;
10288esac
10289
10290
10291  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
10292echo "$as_me: executing $ac_dest commands" >&6;}
10293  case $ac_dest in
10294    default ) test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
10295if test -n "$CONFIG_FILES"; then
10296  if test -n "${with_target_subdir}"; then
10297    # FIXME: We shouldn't need to set ac_file
10298    ac_file=Makefile
10299    LD="${ORIGINAL_LD_FOR_MULTILIBS}"
10300    . ${libiberty_topdir}/config-ml.in
10301  fi
10302fi ;;
10303  esac
10304done
10305_ACEOF
10306
10307cat >>$CONFIG_STATUS <<\_ACEOF
10308
10309{ (exit 0); exit 0; }
10310_ACEOF
10311chmod +x $CONFIG_STATUS
10312ac_clean_files=$ac_clean_files_save
10313
10314
10315# configure is writing to config.log, and then calls config.status.
10316# config.status does its own redirection, appending to config.log.
10317# Unfortunately, on DOS this fails, as config.log is still kept open
10318# by configure, so config.status won't be able to write to it; its
10319# output is simply discarded.  So we exec the FD to /dev/null,
10320# effectively closing config.log, so it can be properly (re)opened and
10321# appended to by config.status.  When coming back to configure, we
10322# need to make the FD available again.
10323if test "$no_create" != yes; then
10324  ac_cs_success=:
10325  ac_config_status_args=
10326  test "$silent" = yes &&
10327    ac_config_status_args="$ac_config_status_args --quiet"
10328  exec 5>/dev/null
10329  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
10330  exec 5>>config.log
10331  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10332  # would make configure fail if this is the last instruction.
10333  $ac_cs_success || { (exit 1); exit 1; }
10334fi
10335
10336