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 EGREP LIBOBJS CHECK target_header_dir pexecute INSTALL_DEST datarootdir docdir htmldir LTLIBOBJS'
313ac_subst_files='host_makefile_frag'
314
315# Initialize some variables set by options.
316ac_init_help=
317ac_init_version=false
318# The variables have the same names as the options, with
319# dashes changed to underlines.
320cache_file=/dev/null
321exec_prefix=NONE
322no_create=
323no_recursion=
324prefix=NONE
325program_prefix=NONE
326program_suffix=NONE
327program_transform_name=s,x,x,
328silent=
329site=
330srcdir=
331verbose=
332x_includes=NONE
333x_libraries=NONE
334
335# Installation directory options.
336# These are left unexpanded so users can "make install exec_prefix=/foo"
337# and all the variables that are supposed to be based on exec_prefix
338# by default will actually change.
339# Use braces instead of parens because sh, perl, etc. also accept them.
340bindir='${exec_prefix}/bin'
341sbindir='${exec_prefix}/sbin'
342libexecdir='${exec_prefix}/libexec'
343datadir='${prefix}/share'
344sysconfdir='${prefix}/etc'
345sharedstatedir='${prefix}/com'
346localstatedir='${prefix}/var'
347libdir='${exec_prefix}/lib'
348includedir='${prefix}/include'
349oldincludedir='/usr/include'
350infodir='${prefix}/info'
351mandir='${prefix}/man'
352
353ac_prev=
354for ac_option
355do
356  # If the previous option needs an argument, assign it.
357  if test -n "$ac_prev"; then
358    eval "$ac_prev=\$ac_option"
359    ac_prev=
360    continue
361  fi
362
363  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
364
365  # Accept the important Cygnus configure options, so we can diagnose typos.
366
367  case $ac_option in
368
369  -bindir | --bindir | --bindi | --bind | --bin | --bi)
370    ac_prev=bindir ;;
371  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
372    bindir=$ac_optarg ;;
373
374  -build | --build | --buil | --bui | --bu)
375    ac_prev=build_alias ;;
376  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377    build_alias=$ac_optarg ;;
378
379  -cache-file | --cache-file | --cache-fil | --cache-fi \
380  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381    ac_prev=cache_file ;;
382  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384    cache_file=$ac_optarg ;;
385
386  --config-cache | -C)
387    cache_file=config.cache ;;
388
389  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390    ac_prev=datadir ;;
391  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392  | --da=*)
393    datadir=$ac_optarg ;;
394
395  -disable-* | --disable-*)
396    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397    # Reject names that are not valid shell variable names.
398    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400   { (exit 1); exit 1; }; }
401    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402    eval "enable_$ac_feature=no" ;;
403
404  -enable-* | --enable-*)
405    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406    # Reject names that are not valid shell variable names.
407    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409   { (exit 1); exit 1; }; }
410    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411    case $ac_option in
412      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
413      *) ac_optarg=yes ;;
414    esac
415    eval "enable_$ac_feature='$ac_optarg'" ;;
416
417  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419  | --exec | --exe | --ex)
420    ac_prev=exec_prefix ;;
421  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423  | --exec=* | --exe=* | --ex=*)
424    exec_prefix=$ac_optarg ;;
425
426  -gas | --gas | --ga | --g)
427    # Obsolete; use --with-gas.
428    with_gas=yes ;;
429
430  -help | --help | --hel | --he | -h)
431    ac_init_help=long ;;
432  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433    ac_init_help=recursive ;;
434  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435    ac_init_help=short ;;
436
437  -host | --host | --hos | --ho)
438    ac_prev=host_alias ;;
439  -host=* | --host=* | --hos=* | --ho=*)
440    host_alias=$ac_optarg ;;
441
442  -includedir | --includedir | --includedi | --included | --include \
443  | --includ | --inclu | --incl | --inc)
444    ac_prev=includedir ;;
445  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446  | --includ=* | --inclu=* | --incl=* | --inc=*)
447    includedir=$ac_optarg ;;
448
449  -infodir | --infodir | --infodi | --infod | --info | --inf)
450    ac_prev=infodir ;;
451  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452    infodir=$ac_optarg ;;
453
454  -libdir | --libdir | --libdi | --libd)
455    ac_prev=libdir ;;
456  -libdir=* | --libdir=* | --libdi=* | --libd=*)
457    libdir=$ac_optarg ;;
458
459  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460  | --libexe | --libex | --libe)
461    ac_prev=libexecdir ;;
462  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463  | --libexe=* | --libex=* | --libe=*)
464    libexecdir=$ac_optarg ;;
465
466  -localstatedir | --localstatedir | --localstatedi | --localstated \
467  | --localstate | --localstat | --localsta | --localst \
468  | --locals | --local | --loca | --loc | --lo)
469    ac_prev=localstatedir ;;
470  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473    localstatedir=$ac_optarg ;;
474
475  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476    ac_prev=mandir ;;
477  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
478    mandir=$ac_optarg ;;
479
480  -nfp | --nfp | --nf)
481    # Obsolete; use --without-fp.
482    with_fp=no ;;
483
484  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485  | --no-cr | --no-c | -n)
486    no_create=yes ;;
487
488  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
490    no_recursion=yes ;;
491
492  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494  | --oldin | --oldi | --old | --ol | --o)
495    ac_prev=oldincludedir ;;
496  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499    oldincludedir=$ac_optarg ;;
500
501  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502    ac_prev=prefix ;;
503  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
504    prefix=$ac_optarg ;;
505
506  -program-prefix | --program-prefix | --program-prefi | --program-pref \
507  | --program-pre | --program-pr | --program-p)
508    ac_prev=program_prefix ;;
509  -program-prefix=* | --program-prefix=* | --program-prefi=* \
510  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511    program_prefix=$ac_optarg ;;
512
513  -program-suffix | --program-suffix | --program-suffi | --program-suff \
514  | --program-suf | --program-su | --program-s)
515    ac_prev=program_suffix ;;
516  -program-suffix=* | --program-suffix=* | --program-suffi=* \
517  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518    program_suffix=$ac_optarg ;;
519
520  -program-transform-name | --program-transform-name \
521  | --program-transform-nam | --program-transform-na \
522  | --program-transform-n | --program-transform- \
523  | --program-transform | --program-transfor \
524  | --program-transfo | --program-transf \
525  | --program-trans | --program-tran \
526  | --progr-tra | --program-tr | --program-t)
527    ac_prev=program_transform_name ;;
528  -program-transform-name=* | --program-transform-name=* \
529  | --program-transform-nam=* | --program-transform-na=* \
530  | --program-transform-n=* | --program-transform-=* \
531  | --program-transform=* | --program-transfor=* \
532  | --program-transfo=* | --program-transf=* \
533  | --program-trans=* | --program-tran=* \
534  | --progr-tra=* | --program-tr=* | --program-t=*)
535    program_transform_name=$ac_optarg ;;
536
537  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538  | -silent | --silent | --silen | --sile | --sil)
539    silent=yes ;;
540
541  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542    ac_prev=sbindir ;;
543  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544  | --sbi=* | --sb=*)
545    sbindir=$ac_optarg ;;
546
547  -sharedstatedir | --sharedstatedir | --sharedstatedi \
548  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549  | --sharedst | --shareds | --shared | --share | --shar \
550  | --sha | --sh)
551    ac_prev=sharedstatedir ;;
552  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555  | --sha=* | --sh=*)
556    sharedstatedir=$ac_optarg ;;
557
558  -site | --site | --sit)
559    ac_prev=site ;;
560  -site=* | --site=* | --sit=*)
561    site=$ac_optarg ;;
562
563  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564    ac_prev=srcdir ;;
565  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
566    srcdir=$ac_optarg ;;
567
568  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569  | --syscon | --sysco | --sysc | --sys | --sy)
570    ac_prev=sysconfdir ;;
571  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573    sysconfdir=$ac_optarg ;;
574
575  -target | --target | --targe | --targ | --tar | --ta | --t)
576    ac_prev=target_alias ;;
577  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578    target_alias=$ac_optarg ;;
579
580  -v | -verbose | --verbose | --verbos | --verbo | --verb)
581    verbose=yes ;;
582
583  -version | --version | --versio | --versi | --vers | -V)
584    ac_init_version=: ;;
585
586  -with-* | --with-*)
587    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588    # Reject names that are not valid shell variable names.
589    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590      { echo "$as_me: error: invalid package name: $ac_package" >&2
591   { (exit 1); exit 1; }; }
592    ac_package=`echo $ac_package| sed 's/-/_/g'`
593    case $ac_option in
594      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
595      *) ac_optarg=yes ;;
596    esac
597    eval "with_$ac_package='$ac_optarg'" ;;
598
599  -without-* | --without-*)
600    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601    # Reject names that are not valid shell variable names.
602    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603      { echo "$as_me: error: invalid package name: $ac_package" >&2
604   { (exit 1); exit 1; }; }
605    ac_package=`echo $ac_package | sed 's/-/_/g'`
606    eval "with_$ac_package=no" ;;
607
608  --x)
609    # Obsolete; use --with-x.
610    with_x=yes ;;
611
612  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613  | --x-incl | --x-inc | --x-in | --x-i)
614    ac_prev=x_includes ;;
615  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617    x_includes=$ac_optarg ;;
618
619  -x-libraries | --x-libraries | --x-librarie | --x-librari \
620  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621    ac_prev=x_libraries ;;
622  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624    x_libraries=$ac_optarg ;;
625
626  -*) { echo "$as_me: error: unrecognized option: $ac_option
627Try \`$0 --help' for more information." >&2
628   { (exit 1); exit 1; }; }
629    ;;
630
631  *=*)
632    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633    # Reject names that are not valid shell variable names.
634    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636   { (exit 1); exit 1; }; }
637    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638    eval "$ac_envvar='$ac_optarg'"
639    export $ac_envvar ;;
640
641  *)
642    # FIXME: should be removed in autoconf 3.0.
643    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
647    ;;
648
649  esac
650done
651
652if test -n "$ac_prev"; then
653  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654  { echo "$as_me: error: missing argument to $ac_option" >&2
655   { (exit 1); exit 1; }; }
656fi
657
658# Be sure to have absolute paths.
659for ac_var in exec_prefix prefix
660do
661  eval ac_val=$`echo $ac_var`
662  case $ac_val in
663    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665   { (exit 1); exit 1; }; };;
666  esac
667done
668
669# Be sure to have absolute paths.
670for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671	      localstatedir libdir includedir oldincludedir infodir mandir
672do
673  eval ac_val=$`echo $ac_var`
674  case $ac_val in
675    [\\/$]* | ?:[\\/]* ) ;;
676    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677   { (exit 1); exit 1; }; };;
678  esac
679done
680
681# There might be people who depend on the old broken behavior: `$host'
682# used to hold the argument of --host etc.
683# FIXME: To remove some day.
684build=$build_alias
685host=$host_alias
686target=$target_alias
687
688# FIXME: To remove some day.
689if test "x$host_alias" != x; then
690  if test "x$build_alias" = x; then
691    cross_compiling=maybe
692    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693    If a cross compiler is detected then cross compile mode will be used." >&2
694  elif test "x$build_alias" != "x$host_alias"; then
695    cross_compiling=yes
696  fi
697fi
698
699ac_tool_prefix=
700test -n "$host_alias" && ac_tool_prefix=$host_alias-
701
702test "$silent" = yes && exec 6>/dev/null
703
704
705# Find the source files, if location was not specified.
706if test -z "$srcdir"; then
707  ac_srcdir_defaulted=yes
708  # Try the directory containing this script, then its parent.
709  ac_confdir=`(dirname "$0") 2>/dev/null ||
710$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711	 X"$0" : 'X\(//\)[^/]' \| \
712	 X"$0" : 'X\(//\)$' \| \
713	 X"$0" : 'X\(/\)' \| \
714	 .     : '\(.\)' 2>/dev/null ||
715echo X"$0" |
716    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718  	  /^X\(\/\/\)$/{ s//\1/; q; }
719  	  /^X\(\/\).*/{ s//\1/; q; }
720  	  s/.*/./; q'`
721  srcdir=$ac_confdir
722  if test ! -r $srcdir/$ac_unique_file; then
723    srcdir=..
724  fi
725else
726  ac_srcdir_defaulted=no
727fi
728if test ! -r $srcdir/$ac_unique_file; then
729  if test "$ac_srcdir_defaulted" = yes; then
730    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731   { (exit 1); exit 1; }; }
732  else
733    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734   { (exit 1); exit 1; }; }
735  fi
736fi
737(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739   { (exit 1); exit 1; }; }
740srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741ac_env_build_alias_set=${build_alias+set}
742ac_env_build_alias_value=$build_alias
743ac_cv_env_build_alias_set=${build_alias+set}
744ac_cv_env_build_alias_value=$build_alias
745ac_env_host_alias_set=${host_alias+set}
746ac_env_host_alias_value=$host_alias
747ac_cv_env_host_alias_set=${host_alias+set}
748ac_cv_env_host_alias_value=$host_alias
749ac_env_target_alias_set=${target_alias+set}
750ac_env_target_alias_value=$target_alias
751ac_cv_env_target_alias_set=${target_alias+set}
752ac_cv_env_target_alias_value=$target_alias
753ac_env_CC_set=${CC+set}
754ac_env_CC_value=$CC
755ac_cv_env_CC_set=${CC+set}
756ac_cv_env_CC_value=$CC
757ac_env_CFLAGS_set=${CFLAGS+set}
758ac_env_CFLAGS_value=$CFLAGS
759ac_cv_env_CFLAGS_set=${CFLAGS+set}
760ac_cv_env_CFLAGS_value=$CFLAGS
761ac_env_LDFLAGS_set=${LDFLAGS+set}
762ac_env_LDFLAGS_value=$LDFLAGS
763ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764ac_cv_env_LDFLAGS_value=$LDFLAGS
765ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766ac_env_CPPFLAGS_value=$CPPFLAGS
767ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769ac_env_CPP_set=${CPP+set}
770ac_env_CPP_value=$CPP
771ac_cv_env_CPP_set=${CPP+set}
772ac_cv_env_CPP_value=$CPP
773
774#
775# Report the --help message.
776#
777if test "$ac_init_help" = "long"; then
778  # Omit some internal or obsolete options to make the list less imposing.
779  # This message is too long to be a string in the A/UX 3.1 sh.
780  cat <<_ACEOF
781\`configure' configures this package to adapt to many kinds of systems.
782
783Usage: $0 [OPTION]... [VAR=VALUE]...
784
785To assign environment variables (e.g., CC, CFLAGS...), specify them as
786VAR=VALUE.  See below for descriptions of some of the useful variables.
787
788Defaults for the options are specified in brackets.
789
790Configuration:
791  -h, --help              display this help and exit
792      --help=short        display options specific to this package
793      --help=recursive    display the short help of all the included packages
794  -V, --version           display version information and exit
795  -q, --quiet, --silent   do not print \`checking...' messages
796      --cache-file=FILE   cache test results in FILE [disabled]
797  -C, --config-cache      alias for \`--cache-file=config.cache'
798  -n, --no-create         do not create output files
799      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
800
801_ACEOF
802
803  cat <<_ACEOF
804Installation directories:
805  --prefix=PREFIX         install architecture-independent files in PREFIX
806			  [$ac_default_prefix]
807  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
808			  [PREFIX]
809
810By default, \`make install' will install all the files in
811\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
812an installation prefix other than \`$ac_default_prefix' using \`--prefix',
813for instance \`--prefix=\$HOME'.
814
815For better control, use the options below.
816
817Fine tuning of the installation directories:
818  --bindir=DIR           user executables [EPREFIX/bin]
819  --sbindir=DIR          system admin executables [EPREFIX/sbin]
820  --libexecdir=DIR       program executables [EPREFIX/libexec]
821  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
822  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
823  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
824  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
825  --libdir=DIR           object code libraries [EPREFIX/lib]
826  --includedir=DIR       C header files [PREFIX/include]
827  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
828  --infodir=DIR          info documentation [PREFIX/info]
829  --mandir=DIR           man documentation [PREFIX/man]
830_ACEOF
831
832  cat <<\_ACEOF
833
834System types:
835  --build=BUILD     configure for building on BUILD [guessed]
836  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
837_ACEOF
838fi
839
840if test -n "$ac_init_help"; then
841
842  cat <<\_ACEOF
843
844Optional Features:
845  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
846  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
847  --enable-maintainer-mode
848                          enable make rules and dependencies not useful
849                          (and sometimes confusing) to the casual installer
850  --enable-multilib       build many library versions (default)
851  --enable-install-libiberty       Install headers for end users
852
853Optional Packages:
854  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
855  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
856  --with-target-subdir=SUBDIR      Configuring in a subdirectory for target
857  --with-build-subdir=SUBDIR       Configuring in a subdirectory for build
858  --with-cross-host=HOST           Configuring with a cross compiler
859  --with-newlib                    Configuring with newlib
860
861Some influential environment variables:
862  CC          C compiler command
863  CFLAGS      C compiler flags
864  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
865              nonstandard directory <lib dir>
866  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
867              headers in a nonstandard directory <include dir>
868  CPP         C preprocessor
869
870Use these variables to override the choices made by `configure' or to help
871it to find libraries and programs with nonstandard names/locations.
872
873_ACEOF
874fi
875
876if test "$ac_init_help" = "recursive"; then
877  # If there are subdirs, report their specific --help.
878  ac_popdir=`pwd`
879  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
880    test -d $ac_dir || continue
881    ac_builddir=.
882
883if test "$ac_dir" != .; then
884  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
885  # A "../" for each directory in $ac_dir_suffix.
886  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
887else
888  ac_dir_suffix= ac_top_builddir=
889fi
890
891case $srcdir in
892  .)  # No --srcdir option.  We are building in place.
893    ac_srcdir=.
894    if test -z "$ac_top_builddir"; then
895       ac_top_srcdir=.
896    else
897       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
898    fi ;;
899  [\\/]* | ?:[\\/]* )  # Absolute path.
900    ac_srcdir=$srcdir$ac_dir_suffix;
901    ac_top_srcdir=$srcdir ;;
902  *) # Relative path.
903    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
904    ac_top_srcdir=$ac_top_builddir$srcdir ;;
905esac
906
907# Do not use `cd foo && pwd` to compute absolute paths, because
908# the directories may not exist.
909case `pwd` in
910.) ac_abs_builddir="$ac_dir";;
911*)
912  case "$ac_dir" in
913  .) ac_abs_builddir=`pwd`;;
914  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
915  *) ac_abs_builddir=`pwd`/"$ac_dir";;
916  esac;;
917esac
918case $ac_abs_builddir in
919.) ac_abs_top_builddir=${ac_top_builddir}.;;
920*)
921  case ${ac_top_builddir}. in
922  .) ac_abs_top_builddir=$ac_abs_builddir;;
923  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
924  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
925  esac;;
926esac
927case $ac_abs_builddir in
928.) ac_abs_srcdir=$ac_srcdir;;
929*)
930  case $ac_srcdir in
931  .) ac_abs_srcdir=$ac_abs_builddir;;
932  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
933  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
934  esac;;
935esac
936case $ac_abs_builddir in
937.) ac_abs_top_srcdir=$ac_top_srcdir;;
938*)
939  case $ac_top_srcdir in
940  .) ac_abs_top_srcdir=$ac_abs_builddir;;
941  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
942  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
943  esac;;
944esac
945
946    cd $ac_dir
947    # Check for guested configure; otherwise get Cygnus style configure.
948    if test -f $ac_srcdir/configure.gnu; then
949      echo
950      $SHELL $ac_srcdir/configure.gnu  --help=recursive
951    elif test -f $ac_srcdir/configure; then
952      echo
953      $SHELL $ac_srcdir/configure  --help=recursive
954    elif test -f $ac_srcdir/configure.ac ||
955	   test -f $ac_srcdir/configure.in; then
956      echo
957      $ac_configure --help
958    else
959      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
960    fi
961    cd $ac_popdir
962  done
963fi
964
965test -n "$ac_init_help" && exit 0
966if $ac_init_version; then
967  cat <<\_ACEOF
968
969Copyright (C) 2003 Free Software Foundation, Inc.
970This configure script is free software; the Free Software Foundation
971gives unlimited permission to copy, distribute and modify it.
972_ACEOF
973  exit 0
974fi
975exec 5>config.log
976cat >&5 <<_ACEOF
977This file contains any messages produced by compilers while
978running configure, to aid debugging if configure makes a mistake.
979
980It was created by $as_me, which was
981generated by GNU Autoconf 2.59.  Invocation command line was
982
983  $ $0 $@
984
985_ACEOF
986{
987cat <<_ASUNAME
988## --------- ##
989## Platform. ##
990## --------- ##
991
992hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
993uname -m = `(uname -m) 2>/dev/null || echo unknown`
994uname -r = `(uname -r) 2>/dev/null || echo unknown`
995uname -s = `(uname -s) 2>/dev/null || echo unknown`
996uname -v = `(uname -v) 2>/dev/null || echo unknown`
997
998/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
999/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1000
1001/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1002/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1003/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1004hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1005/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1006/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1007/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1008
1009_ASUNAME
1010
1011as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1012for as_dir in $PATH
1013do
1014  IFS=$as_save_IFS
1015  test -z "$as_dir" && as_dir=.
1016  echo "PATH: $as_dir"
1017done
1018
1019} >&5
1020
1021cat >&5 <<_ACEOF
1022
1023
1024## ----------- ##
1025## Core tests. ##
1026## ----------- ##
1027
1028_ACEOF
1029
1030
1031# Keep a trace of the command line.
1032# Strip out --no-create and --no-recursion so they do not pile up.
1033# Strip out --silent because we don't want to record it for future runs.
1034# Also quote any args containing shell meta-characters.
1035# Make two passes to allow for proper duplicate-argument suppression.
1036ac_configure_args=
1037ac_configure_args0=
1038ac_configure_args1=
1039ac_sep=
1040ac_must_keep_next=false
1041for ac_pass in 1 2
1042do
1043  for ac_arg
1044  do
1045    case $ac_arg in
1046    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1047    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1048    | -silent | --silent | --silen | --sile | --sil)
1049      continue ;;
1050    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1051      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1052    esac
1053    case $ac_pass in
1054    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1055    2)
1056      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1057      if test $ac_must_keep_next = true; then
1058	ac_must_keep_next=false # Got value, back to normal.
1059      else
1060	case $ac_arg in
1061	  *=* | --config-cache | -C | -disable-* | --disable-* \
1062	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1063	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1064	  | -with-* | --with-* | -without-* | --without-* | --x)
1065	    case "$ac_configure_args0 " in
1066	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1067	    esac
1068	    ;;
1069	  -* ) ac_must_keep_next=true ;;
1070	esac
1071      fi
1072      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1073      # Get rid of the leading space.
1074      ac_sep=" "
1075      ;;
1076    esac
1077  done
1078done
1079$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1080$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1081
1082# When interrupted or exit'd, cleanup temporary files, and complete
1083# config.log.  We remove comments because anyway the quotes in there
1084# would cause problems or look ugly.
1085# WARNING: Be sure not to use single quotes in there, as some shells,
1086# such as our DU 5.0 friend, will then `close' the trap.
1087trap 'exit_status=$?
1088  # Save into config.log some information that might help in debugging.
1089  {
1090    echo
1091
1092    cat <<\_ASBOX
1093## ---------------- ##
1094## Cache variables. ##
1095## ---------------- ##
1096_ASBOX
1097    echo
1098    # The following way of writing the cache mishandles newlines in values,
1099{
1100  (set) 2>&1 |
1101    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1102    *ac_space=\ *)
1103      sed -n \
1104	"s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1105	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1106      ;;
1107    *)
1108      sed -n \
1109	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1110      ;;
1111    esac;
1112}
1113    echo
1114
1115    cat <<\_ASBOX
1116## ----------------- ##
1117## Output variables. ##
1118## ----------------- ##
1119_ASBOX
1120    echo
1121    for ac_var in $ac_subst_vars
1122    do
1123      eval ac_val=$`echo $ac_var`
1124      echo "$ac_var='"'"'$ac_val'"'"'"
1125    done | sort
1126    echo
1127
1128    if test -n "$ac_subst_files"; then
1129      cat <<\_ASBOX
1130## ------------- ##
1131## Output files. ##
1132## ------------- ##
1133_ASBOX
1134      echo
1135      for ac_var in $ac_subst_files
1136      do
1137	eval ac_val=$`echo $ac_var`
1138	echo "$ac_var='"'"'$ac_val'"'"'"
1139      done | sort
1140      echo
1141    fi
1142
1143    if test -s confdefs.h; then
1144      cat <<\_ASBOX
1145## ----------- ##
1146## confdefs.h. ##
1147## ----------- ##
1148_ASBOX
1149      echo
1150      sed "/^$/d" confdefs.h | sort
1151      echo
1152    fi
1153    test "$ac_signal" != 0 &&
1154      echo "$as_me: caught signal $ac_signal"
1155    echo "$as_me: exit $exit_status"
1156  } >&5
1157  rm -f core *.core &&
1158  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1159    exit $exit_status
1160     ' 0
1161for ac_signal in 1 2 13 15; do
1162  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1163done
1164ac_signal=0
1165
1166# confdefs.h avoids OS command line length limits that DEFS can exceed.
1167rm -rf conftest* confdefs.h
1168# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1169echo >confdefs.h
1170
1171# Predefined preprocessor variables.
1172
1173cat >>confdefs.h <<_ACEOF
1174#define PACKAGE_NAME "$PACKAGE_NAME"
1175_ACEOF
1176
1177
1178cat >>confdefs.h <<_ACEOF
1179#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1180_ACEOF
1181
1182
1183cat >>confdefs.h <<_ACEOF
1184#define PACKAGE_VERSION "$PACKAGE_VERSION"
1185_ACEOF
1186
1187
1188cat >>confdefs.h <<_ACEOF
1189#define PACKAGE_STRING "$PACKAGE_STRING"
1190_ACEOF
1191
1192
1193cat >>confdefs.h <<_ACEOF
1194#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1195_ACEOF
1196
1197
1198# Let the site file select an alternate cache file if it wants to.
1199# Prefer explicitly selected file to automatically selected ones.
1200if test -z "$CONFIG_SITE"; then
1201  if test "x$prefix" != xNONE; then
1202    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1203  else
1204    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1205  fi
1206fi
1207for ac_site_file in $CONFIG_SITE; do
1208  if test -r "$ac_site_file"; then
1209    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1210echo "$as_me: loading site script $ac_site_file" >&6;}
1211    sed 's/^/| /' "$ac_site_file" >&5
1212    . "$ac_site_file"
1213  fi
1214done
1215
1216if test -r "$cache_file"; then
1217  # Some versions of bash will fail to source /dev/null (special
1218  # files actually), so we avoid doing that.
1219  if test -f "$cache_file"; then
1220    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1221echo "$as_me: loading cache $cache_file" >&6;}
1222    case $cache_file in
1223      [\\/]* | ?:[\\/]* ) . $cache_file;;
1224      *)                      . ./$cache_file;;
1225    esac
1226  fi
1227else
1228  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1229echo "$as_me: creating cache $cache_file" >&6;}
1230  >$cache_file
1231fi
1232
1233# Check that the precious variables saved in the cache have kept the same
1234# value.
1235ac_cache_corrupted=false
1236for ac_var in `(set) 2>&1 |
1237	       sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1238  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1239  eval ac_new_set=\$ac_env_${ac_var}_set
1240  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1241  eval ac_new_val="\$ac_env_${ac_var}_value"
1242  case $ac_old_set,$ac_new_set in
1243    set,)
1244      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1245echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1246      ac_cache_corrupted=: ;;
1247    ,set)
1248      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1249echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1250      ac_cache_corrupted=: ;;
1251    ,);;
1252    *)
1253      if test "x$ac_old_val" != "x$ac_new_val"; then
1254	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1255echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1256	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1257echo "$as_me:   former value:  $ac_old_val" >&2;}
1258	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1259echo "$as_me:   current value: $ac_new_val" >&2;}
1260	ac_cache_corrupted=:
1261      fi;;
1262  esac
1263  # Pass precious variables to config.status.
1264  if test "$ac_new_set" = set; then
1265    case $ac_new_val in
1266    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1267      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1268    *) ac_arg=$ac_var=$ac_new_val ;;
1269    esac
1270    case " $ac_configure_args " in
1271      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1272      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1273    esac
1274  fi
1275done
1276if $ac_cache_corrupted; then
1277  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1278echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1279  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1280echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1281   { (exit 1); exit 1; }; }
1282fi
1283
1284ac_ext=c
1285ac_cpp='$CPP $CPPFLAGS'
1286ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1287ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1288ac_compiler_gnu=$ac_cv_c_compiler_gnu
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310# This works around the fact that libtool configuration may change LD
1311# for this particular configuration, but some shells, instead of
1312# keeping the changes in LD private, export them just because LD is
1313# exported.  We don't use libtool yet, but some day we might, so...
1314ORIGINAL_LD_FOR_MULTILIBS=$LD
1315
1316
1317# Check whether --with-target-subdir or --without-target-subdir was given.
1318if test "${with_target_subdir+set}" = set; then
1319  withval="$with_target_subdir"
1320
1321fi;
1322
1323# Check whether --with-build-subdir or --without-build-subdir was given.
1324if test "${with_build_subdir+set}" = set; then
1325  withval="$with_build_subdir"
1326
1327fi;
1328
1329# Check whether --with-cross-host or --without-cross-host was given.
1330if test "${with_cross_host+set}" = set; then
1331  withval="$with_cross_host"
1332
1333fi;
1334
1335# Check whether --with-newlib or --without-newlib was given.
1336if test "${with_newlib+set}" = set; then
1337  withval="$with_newlib"
1338
1339fi;
1340
1341if test "${srcdir}" = "."; then
1342  if test -n "${with_build_subdir}"; then
1343    libiberty_topdir="${srcdir}/../.."
1344    with_target_subdir=
1345  elif test -z "${with_target_subdir}"; then
1346    libiberty_topdir="${srcdir}/.."
1347  else
1348    if test "${with_target_subdir}" != "."; then
1349      libiberty_topdir="${srcdir}/${with_multisrctop}../.."
1350    else
1351      libiberty_topdir="${srcdir}/${with_multisrctop}.."
1352    fi
1353  fi
1354else
1355  libiberty_topdir="${srcdir}/.."
1356fi
1357
1358ac_aux_dir=
1359for ac_dir in $libiberty_topdir $srcdir/$libiberty_topdir; do
1360  if test -f $ac_dir/install-sh; then
1361    ac_aux_dir=$ac_dir
1362    ac_install_sh="$ac_aux_dir/install-sh -c"
1363    break
1364  elif test -f $ac_dir/install.sh; then
1365    ac_aux_dir=$ac_dir
1366    ac_install_sh="$ac_aux_dir/install.sh -c"
1367    break
1368  elif test -f $ac_dir/shtool; then
1369    ac_aux_dir=$ac_dir
1370    ac_install_sh="$ac_aux_dir/shtool install -c"
1371    break
1372  fi
1373done
1374if test -z "$ac_aux_dir"; then
1375  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $libiberty_topdir $srcdir/$libiberty_topdir" >&5
1376echo "$as_me: error: cannot find install-sh or install.sh in $libiberty_topdir $srcdir/$libiberty_topdir" >&2;}
1377   { (exit 1); exit 1; }; }
1378fi
1379ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1380ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1381ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1382
1383
1384
1385echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1386echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1387    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1388if test "${enable_maintainer_mode+set}" = set; then
1389  enableval="$enable_maintainer_mode"
1390  maintainer_mode=$enableval
1391else
1392  maintainer_mode=no
1393fi;
1394
1395echo "$as_me:$LINENO: result: $maintainer_mode" >&5
1396echo "${ECHO_T}$maintainer_mode" >&6
1397
1398if test "$maintainer_mode" = "yes"; then
1399  MAINT=''
1400  NOTMAINT='#'
1401else
1402  MAINT='#'
1403  NOTMAINT=''
1404fi
1405
1406# Do we have a single-tree copy of texinfo?  Even if we do, we can't
1407# rely on it - libiberty is built before texinfo.
1408# Extract the first word of "makeinfo", so it can be a program name with args.
1409set dummy makeinfo; ac_word=$2
1410echo "$as_me:$LINENO: checking for $ac_word" >&5
1411echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1412if test "${ac_cv_prog_MAKEINFO+set}" = set; then
1413  echo $ECHO_N "(cached) $ECHO_C" >&6
1414else
1415  if test -n "$MAKEINFO"; then
1416  ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
1417else
1418as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1419for as_dir in $PATH
1420do
1421  IFS=$as_save_IFS
1422  test -z "$as_dir" && as_dir=.
1423  for ac_exec_ext in '' $ac_executable_extensions; do
1424  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1425    ac_cv_prog_MAKEINFO="makeinfo"
1426    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1427    break 2
1428  fi
1429done
1430done
1431
1432fi
1433fi
1434MAKEINFO=$ac_cv_prog_MAKEINFO
1435if test -n "$MAKEINFO"; then
1436  echo "$as_me:$LINENO: result: $MAKEINFO" >&5
1437echo "${ECHO_T}$MAKEINFO" >&6
1438else
1439  echo "$as_me:$LINENO: result: no" >&5
1440echo "${ECHO_T}no" >&6
1441fi
1442
1443if test "x$MAKEINFO" = "x"; then
1444    MAKEINFO="@echo makeinfo missing; true"
1445    BUILD_INFO=
1446else
1447    BUILD_INFO=info
1448    case "$MAKEINFO" in
1449      */missing\ makeinfo*)
1450	BUILD_INFO=
1451	{ echo "$as_me:$LINENO: WARNING:
1452*** Makeinfo is missing. Info documentation will not be built." >&5
1453echo "$as_me: WARNING:
1454*** Makeinfo is missing. Info documentation will not be built." >&2;}
1455        ;;
1456      *)
1457	case x"`$MAKEINFO --version | grep 'GNU texinfo'`" in
1458	  x*\ [1-3].* )
1459	    MAKEINFO="@echo $MAKEINFO is too old, 4.0 or newer required; true"
1460	    BUILD_INFO=
1461	    { echo "$as_me:$LINENO: WARNING:
1462*** Makeinfo is too old. Info documentation will not be built." >&5
1463echo "$as_me: WARNING:
1464*** Makeinfo is too old. Info documentation will not be built." >&2;}
1465	  ;;
1466	esac
1467	;;
1468    esac
1469fi
1470
1471
1472
1473# Extract the first word of "perl", so it can be a program name with args.
1474set dummy perl; ac_word=$2
1475echo "$as_me:$LINENO: checking for $ac_word" >&5
1476echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1477if test "${ac_cv_prog_PERL+set}" = set; then
1478  echo $ECHO_N "(cached) $ECHO_C" >&6
1479else
1480  if test -n "$PERL"; then
1481  ac_cv_prog_PERL="$PERL" # Let the user override the test.
1482else
1483as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1484for as_dir in $PATH
1485do
1486  IFS=$as_save_IFS
1487  test -z "$as_dir" && as_dir=.
1488  for ac_exec_ext in '' $ac_executable_extensions; do
1489  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1490    ac_cv_prog_PERL="perl"
1491    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1492    break 2
1493  fi
1494done
1495done
1496
1497fi
1498fi
1499PERL=$ac_cv_prog_PERL
1500if test -n "$PERL"; then
1501  echo "$as_me:$LINENO: result: $PERL" >&5
1502echo "${ECHO_T}$PERL" >&6
1503else
1504  echo "$as_me:$LINENO: result: no" >&5
1505echo "${ECHO_T}no" >&6
1506fi
1507
1508if test x"$PERL" = x""; then
1509  HAVE_PERL='#'
1510else
1511  HAVE_PERL=''
1512fi
1513
1514
1515# Make sure we can run config.sub.
1516$ac_config_sub sun4 >/dev/null 2>&1 ||
1517  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1518echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1519   { (exit 1); exit 1; }; }
1520
1521echo "$as_me:$LINENO: checking build system type" >&5
1522echo $ECHO_N "checking build system type... $ECHO_C" >&6
1523if test "${ac_cv_build+set}" = set; then
1524  echo $ECHO_N "(cached) $ECHO_C" >&6
1525else
1526  ac_cv_build_alias=$build_alias
1527test -z "$ac_cv_build_alias" &&
1528  ac_cv_build_alias=`$ac_config_guess`
1529test -z "$ac_cv_build_alias" &&
1530  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1531echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1532   { (exit 1); exit 1; }; }
1533ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1534  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1535echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1536   { (exit 1); exit 1; }; }
1537
1538fi
1539echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1540echo "${ECHO_T}$ac_cv_build" >&6
1541build=$ac_cv_build
1542build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1543build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1544build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1545
1546
1547echo "$as_me:$LINENO: checking host system type" >&5
1548echo $ECHO_N "checking host system type... $ECHO_C" >&6
1549if test "${ac_cv_host+set}" = set; then
1550  echo $ECHO_N "(cached) $ECHO_C" >&6
1551else
1552  ac_cv_host_alias=$host_alias
1553test -z "$ac_cv_host_alias" &&
1554  ac_cv_host_alias=$ac_cv_build_alias
1555ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1556  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1557echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1558   { (exit 1); exit 1; }; }
1559
1560fi
1561echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1562echo "${ECHO_T}$ac_cv_host" >&6
1563host=$ac_cv_host
1564host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1565host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1566host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1567
1568
1569
1570
1571if test -n "$ac_tool_prefix"; then
1572  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1573set dummy ${ac_tool_prefix}ar; ac_word=$2
1574echo "$as_me:$LINENO: checking for $ac_word" >&5
1575echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1576if test "${ac_cv_prog_AR+set}" = set; then
1577  echo $ECHO_N "(cached) $ECHO_C" >&6
1578else
1579  if test -n "$AR"; then
1580  ac_cv_prog_AR="$AR" # Let the user override the test.
1581else
1582as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1583for as_dir in $PATH
1584do
1585  IFS=$as_save_IFS
1586  test -z "$as_dir" && as_dir=.
1587  for ac_exec_ext in '' $ac_executable_extensions; do
1588  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1589    ac_cv_prog_AR="${ac_tool_prefix}ar"
1590    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1591    break 2
1592  fi
1593done
1594done
1595
1596fi
1597fi
1598AR=$ac_cv_prog_AR
1599if test -n "$AR"; then
1600  echo "$as_me:$LINENO: result: $AR" >&5
1601echo "${ECHO_T}$AR" >&6
1602else
1603  echo "$as_me:$LINENO: result: no" >&5
1604echo "${ECHO_T}no" >&6
1605fi
1606
1607fi
1608if test -z "$ac_cv_prog_AR"; then
1609  ac_ct_AR=$AR
1610  # Extract the first word of "ar", so it can be a program name with args.
1611set dummy ar; ac_word=$2
1612echo "$as_me:$LINENO: checking for $ac_word" >&5
1613echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1614if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
1615  echo $ECHO_N "(cached) $ECHO_C" >&6
1616else
1617  if test -n "$ac_ct_AR"; then
1618  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
1619else
1620as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1621for as_dir in $PATH
1622do
1623  IFS=$as_save_IFS
1624  test -z "$as_dir" && as_dir=.
1625  for ac_exec_ext in '' $ac_executable_extensions; do
1626  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1627    ac_cv_prog_ac_ct_AR="ar"
1628    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1629    break 2
1630  fi
1631done
1632done
1633
1634fi
1635fi
1636ac_ct_AR=$ac_cv_prog_ac_ct_AR
1637if test -n "$ac_ct_AR"; then
1638  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
1639echo "${ECHO_T}$ac_ct_AR" >&6
1640else
1641  echo "$as_me:$LINENO: result: no" >&5
1642echo "${ECHO_T}no" >&6
1643fi
1644
1645  AR=$ac_ct_AR
1646else
1647  AR="$ac_cv_prog_AR"
1648fi
1649
1650if test -n "$ac_tool_prefix"; then
1651  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1652set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1653echo "$as_me:$LINENO: checking for $ac_word" >&5
1654echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1655if test "${ac_cv_prog_RANLIB+set}" = set; then
1656  echo $ECHO_N "(cached) $ECHO_C" >&6
1657else
1658  if test -n "$RANLIB"; then
1659  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1660else
1661as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1662for as_dir in $PATH
1663do
1664  IFS=$as_save_IFS
1665  test -z "$as_dir" && as_dir=.
1666  for ac_exec_ext in '' $ac_executable_extensions; do
1667  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1668    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1669    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1670    break 2
1671  fi
1672done
1673done
1674
1675fi
1676fi
1677RANLIB=$ac_cv_prog_RANLIB
1678if test -n "$RANLIB"; then
1679  echo "$as_me:$LINENO: result: $RANLIB" >&5
1680echo "${ECHO_T}$RANLIB" >&6
1681else
1682  echo "$as_me:$LINENO: result: no" >&5
1683echo "${ECHO_T}no" >&6
1684fi
1685
1686fi
1687if test -z "$ac_cv_prog_RANLIB"; then
1688  ac_ct_RANLIB=$RANLIB
1689  # Extract the first word of "ranlib", so it can be a program name with args.
1690set dummy ranlib; ac_word=$2
1691echo "$as_me:$LINENO: checking for $ac_word" >&5
1692echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1693if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
1694  echo $ECHO_N "(cached) $ECHO_C" >&6
1695else
1696  if test -n "$ac_ct_RANLIB"; then
1697  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
1698else
1699as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1700for as_dir in $PATH
1701do
1702  IFS=$as_save_IFS
1703  test -z "$as_dir" && as_dir=.
1704  for ac_exec_ext in '' $ac_executable_extensions; do
1705  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1706    ac_cv_prog_ac_ct_RANLIB="ranlib"
1707    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1708    break 2
1709  fi
1710done
1711done
1712
1713  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
1714fi
1715fi
1716ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
1717if test -n "$ac_ct_RANLIB"; then
1718  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
1719echo "${ECHO_T}$ac_ct_RANLIB" >&6
1720else
1721  echo "$as_me:$LINENO: result: no" >&5
1722echo "${ECHO_T}no" >&6
1723fi
1724
1725  RANLIB=$ac_ct_RANLIB
1726else
1727  RANLIB="$ac_cv_prog_RANLIB"
1728fi
1729
1730
1731# Add --enable-multilib to configure.
1732# Default to --enable-multilib
1733# Check whether --enable-multilib or --disable-multilib was given.
1734if test "${enable_multilib+set}" = set; then
1735  enableval="$enable_multilib"
1736  case "$enableval" in
1737  yes) multilib=yes ;;
1738  no)  multilib=no ;;
1739  *)   { { echo "$as_me:$LINENO: error: bad value $enableval for multilib option" >&5
1740echo "$as_me: error: bad value $enableval for multilib option" >&2;}
1741   { (exit 1); exit 1; }; } ;;
1742 esac
1743else
1744  multilib=yes
1745fi;
1746
1747# Even if the default multilib is not a cross compilation,
1748# it may be that some of the other multilibs are.
1749if test $cross_compiling = no && test $multilib = yes \
1750   && test "x${with_multisubdir}" != x ; then
1751   cross_compiling=maybe
1752fi
1753
1754
1755ac_ext=c
1756ac_cpp='$CPP $CPPFLAGS'
1757ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1758ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1759ac_compiler_gnu=$ac_cv_c_compiler_gnu
1760if test -n "$ac_tool_prefix"; then
1761  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1762set dummy ${ac_tool_prefix}gcc; ac_word=$2
1763echo "$as_me:$LINENO: checking for $ac_word" >&5
1764echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1765if test "${ac_cv_prog_CC+set}" = set; then
1766  echo $ECHO_N "(cached) $ECHO_C" >&6
1767else
1768  if test -n "$CC"; then
1769  ac_cv_prog_CC="$CC" # Let the user override the test.
1770else
1771as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1772for as_dir in $PATH
1773do
1774  IFS=$as_save_IFS
1775  test -z "$as_dir" && as_dir=.
1776  for ac_exec_ext in '' $ac_executable_extensions; do
1777  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1778    ac_cv_prog_CC="${ac_tool_prefix}gcc"
1779    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1780    break 2
1781  fi
1782done
1783done
1784
1785fi
1786fi
1787CC=$ac_cv_prog_CC
1788if test -n "$CC"; then
1789  echo "$as_me:$LINENO: result: $CC" >&5
1790echo "${ECHO_T}$CC" >&6
1791else
1792  echo "$as_me:$LINENO: result: no" >&5
1793echo "${ECHO_T}no" >&6
1794fi
1795
1796fi
1797if test -z "$ac_cv_prog_CC"; then
1798  ac_ct_CC=$CC
1799  # Extract the first word of "gcc", so it can be a program name with args.
1800set dummy gcc; ac_word=$2
1801echo "$as_me:$LINENO: checking for $ac_word" >&5
1802echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1803if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1804  echo $ECHO_N "(cached) $ECHO_C" >&6
1805else
1806  if test -n "$ac_ct_CC"; then
1807  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1808else
1809as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1810for as_dir in $PATH
1811do
1812  IFS=$as_save_IFS
1813  test -z "$as_dir" && as_dir=.
1814  for ac_exec_ext in '' $ac_executable_extensions; do
1815  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1816    ac_cv_prog_ac_ct_CC="gcc"
1817    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1818    break 2
1819  fi
1820done
1821done
1822
1823fi
1824fi
1825ac_ct_CC=$ac_cv_prog_ac_ct_CC
1826if test -n "$ac_ct_CC"; then
1827  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1828echo "${ECHO_T}$ac_ct_CC" >&6
1829else
1830  echo "$as_me:$LINENO: result: no" >&5
1831echo "${ECHO_T}no" >&6
1832fi
1833
1834  CC=$ac_ct_CC
1835else
1836  CC="$ac_cv_prog_CC"
1837fi
1838
1839if test -z "$CC"; then
1840  if test -n "$ac_tool_prefix"; then
1841  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1842set dummy ${ac_tool_prefix}cc; ac_word=$2
1843echo "$as_me:$LINENO: checking for $ac_word" >&5
1844echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1845if test "${ac_cv_prog_CC+set}" = set; then
1846  echo $ECHO_N "(cached) $ECHO_C" >&6
1847else
1848  if test -n "$CC"; then
1849  ac_cv_prog_CC="$CC" # Let the user override the test.
1850else
1851as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1852for as_dir in $PATH
1853do
1854  IFS=$as_save_IFS
1855  test -z "$as_dir" && as_dir=.
1856  for ac_exec_ext in '' $ac_executable_extensions; do
1857  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1858    ac_cv_prog_CC="${ac_tool_prefix}cc"
1859    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1860    break 2
1861  fi
1862done
1863done
1864
1865fi
1866fi
1867CC=$ac_cv_prog_CC
1868if test -n "$CC"; then
1869  echo "$as_me:$LINENO: result: $CC" >&5
1870echo "${ECHO_T}$CC" >&6
1871else
1872  echo "$as_me:$LINENO: result: no" >&5
1873echo "${ECHO_T}no" >&6
1874fi
1875
1876fi
1877if test -z "$ac_cv_prog_CC"; then
1878  ac_ct_CC=$CC
1879  # Extract the first word of "cc", so it can be a program name with args.
1880set dummy cc; ac_word=$2
1881echo "$as_me:$LINENO: checking for $ac_word" >&5
1882echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1883if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1884  echo $ECHO_N "(cached) $ECHO_C" >&6
1885else
1886  if test -n "$ac_ct_CC"; then
1887  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1888else
1889as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1890for as_dir in $PATH
1891do
1892  IFS=$as_save_IFS
1893  test -z "$as_dir" && as_dir=.
1894  for ac_exec_ext in '' $ac_executable_extensions; do
1895  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1896    ac_cv_prog_ac_ct_CC="cc"
1897    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1898    break 2
1899  fi
1900done
1901done
1902
1903fi
1904fi
1905ac_ct_CC=$ac_cv_prog_ac_ct_CC
1906if test -n "$ac_ct_CC"; then
1907  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1908echo "${ECHO_T}$ac_ct_CC" >&6
1909else
1910  echo "$as_me:$LINENO: result: no" >&5
1911echo "${ECHO_T}no" >&6
1912fi
1913
1914  CC=$ac_ct_CC
1915else
1916  CC="$ac_cv_prog_CC"
1917fi
1918
1919fi
1920if test -z "$CC"; then
1921  # Extract the first word of "cc", so it can be a program name with args.
1922set dummy cc; ac_word=$2
1923echo "$as_me:$LINENO: checking for $ac_word" >&5
1924echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1925if test "${ac_cv_prog_CC+set}" = set; then
1926  echo $ECHO_N "(cached) $ECHO_C" >&6
1927else
1928  if test -n "$CC"; then
1929  ac_cv_prog_CC="$CC" # Let the user override the test.
1930else
1931  ac_prog_rejected=no
1932as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1933for as_dir in $PATH
1934do
1935  IFS=$as_save_IFS
1936  test -z "$as_dir" && as_dir=.
1937  for ac_exec_ext in '' $ac_executable_extensions; do
1938  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1939    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1940       ac_prog_rejected=yes
1941       continue
1942     fi
1943    ac_cv_prog_CC="cc"
1944    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1945    break 2
1946  fi
1947done
1948done
1949
1950if test $ac_prog_rejected = yes; then
1951  # We found a bogon in the path, so make sure we never use it.
1952  set dummy $ac_cv_prog_CC
1953  shift
1954  if test $# != 0; then
1955    # We chose a different compiler from the bogus one.
1956    # However, it has the same basename, so the bogon will be chosen
1957    # first if we set CC to just the basename; use the full file name.
1958    shift
1959    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1960  fi
1961fi
1962fi
1963fi
1964CC=$ac_cv_prog_CC
1965if test -n "$CC"; then
1966  echo "$as_me:$LINENO: result: $CC" >&5
1967echo "${ECHO_T}$CC" >&6
1968else
1969  echo "$as_me:$LINENO: result: no" >&5
1970echo "${ECHO_T}no" >&6
1971fi
1972
1973fi
1974if test -z "$CC"; then
1975  if test -n "$ac_tool_prefix"; then
1976  for ac_prog in cl
1977  do
1978    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1979set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1980echo "$as_me:$LINENO: checking for $ac_word" >&5
1981echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1982if test "${ac_cv_prog_CC+set}" = set; then
1983  echo $ECHO_N "(cached) $ECHO_C" >&6
1984else
1985  if test -n "$CC"; then
1986  ac_cv_prog_CC="$CC" # Let the user override the test.
1987else
1988as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1989for as_dir in $PATH
1990do
1991  IFS=$as_save_IFS
1992  test -z "$as_dir" && as_dir=.
1993  for ac_exec_ext in '' $ac_executable_extensions; do
1994  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1995    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1996    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1997    break 2
1998  fi
1999done
2000done
2001
2002fi
2003fi
2004CC=$ac_cv_prog_CC
2005if test -n "$CC"; then
2006  echo "$as_me:$LINENO: result: $CC" >&5
2007echo "${ECHO_T}$CC" >&6
2008else
2009  echo "$as_me:$LINENO: result: no" >&5
2010echo "${ECHO_T}no" >&6
2011fi
2012
2013    test -n "$CC" && break
2014  done
2015fi
2016if test -z "$CC"; then
2017  ac_ct_CC=$CC
2018  for ac_prog in cl
2019do
2020  # Extract the first word of "$ac_prog", so it can be a program name with args.
2021set dummy $ac_prog; ac_word=$2
2022echo "$as_me:$LINENO: checking for $ac_word" >&5
2023echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2024if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2025  echo $ECHO_N "(cached) $ECHO_C" >&6
2026else
2027  if test -n "$ac_ct_CC"; then
2028  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2029else
2030as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2031for as_dir in $PATH
2032do
2033  IFS=$as_save_IFS
2034  test -z "$as_dir" && as_dir=.
2035  for ac_exec_ext in '' $ac_executable_extensions; do
2036  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2037    ac_cv_prog_ac_ct_CC="$ac_prog"
2038    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2039    break 2
2040  fi
2041done
2042done
2043
2044fi
2045fi
2046ac_ct_CC=$ac_cv_prog_ac_ct_CC
2047if test -n "$ac_ct_CC"; then
2048  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2049echo "${ECHO_T}$ac_ct_CC" >&6
2050else
2051  echo "$as_me:$LINENO: result: no" >&5
2052echo "${ECHO_T}no" >&6
2053fi
2054
2055  test -n "$ac_ct_CC" && break
2056done
2057
2058  CC=$ac_ct_CC
2059fi
2060
2061fi
2062
2063
2064test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2065See \`config.log' for more details." >&5
2066echo "$as_me: error: no acceptable C compiler found in \$PATH
2067See \`config.log' for more details." >&2;}
2068   { (exit 1); exit 1; }; }
2069
2070# Provide some information about the compiler.
2071echo "$as_me:$LINENO:" \
2072     "checking for C compiler version" >&5
2073ac_compiler=`set X $ac_compile; echo $2`
2074{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2075  (eval $ac_compiler --version </dev/null >&5) 2>&5
2076  ac_status=$?
2077  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2078  (exit $ac_status); }
2079{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2080  (eval $ac_compiler -v </dev/null >&5) 2>&5
2081  ac_status=$?
2082  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2083  (exit $ac_status); }
2084{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2085  (eval $ac_compiler -V </dev/null >&5) 2>&5
2086  ac_status=$?
2087  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2088  (exit $ac_status); }
2089
2090cat >conftest.$ac_ext <<_ACEOF
2091/* confdefs.h.  */
2092_ACEOF
2093cat confdefs.h >>conftest.$ac_ext
2094cat >>conftest.$ac_ext <<_ACEOF
2095/* end confdefs.h.  */
2096
2097int
2098main ()
2099{
2100
2101  ;
2102  return 0;
2103}
2104_ACEOF
2105# FIXME: Cleanup?
2106if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2107  (eval $ac_link) 2>&5
2108  ac_status=$?
2109  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2110  (exit $ac_status); }; then
2111  gcc_no_link=no
2112else
2113  gcc_no_link=yes
2114fi
2115
2116if test x$gcc_no_link = xyes; then
2117  # Setting cross_compile will disable run tests; it will
2118  # also disable AC_CHECK_FILE but that's generally
2119  # correct if we can't link.
2120  cross_compiling=yes
2121  EXEEXT=
2122else
2123  cat >conftest.$ac_ext <<_ACEOF
2124/* confdefs.h.  */
2125_ACEOF
2126cat confdefs.h >>conftest.$ac_ext
2127cat >>conftest.$ac_ext <<_ACEOF
2128/* end confdefs.h.  */
2129
2130int
2131main ()
2132{
2133
2134  ;
2135  return 0;
2136}
2137_ACEOF
2138ac_clean_files_save=$ac_clean_files
2139ac_clean_files="$ac_clean_files a.out a.exe b.out"
2140# Try to create an executable without -o first, disregard a.out.
2141# It will help us diagnose broken compilers, and finding out an intuition
2142# of exeext.
2143echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2144echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2145ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2146if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2147  (eval $ac_link_default) 2>&5
2148  ac_status=$?
2149  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2150  (exit $ac_status); }; then
2151  # Find the output, starting from the most likely.  This scheme is
2152# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2153# resort.
2154
2155# Be careful to initialize this variable, since it used to be cached.
2156# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2157ac_cv_exeext=
2158# b.out is created by i960 compilers.
2159for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2160do
2161  test -f "$ac_file" || continue
2162  case $ac_file in
2163    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2164	;;
2165    conftest.$ac_ext )
2166	# This is the source file.
2167	;;
2168    [ab].out )
2169	# We found the default executable, but exeext='' is most
2170	# certainly right.
2171	break;;
2172    *.* )
2173	ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2174	# FIXME: I believe we export ac_cv_exeext for Libtool,
2175	# but it would be cool to find out if it's true.  Does anybody
2176	# maintain Libtool? --akim.
2177	export ac_cv_exeext
2178	break;;
2179    * )
2180	break;;
2181  esac
2182done
2183else
2184  echo "$as_me: failed program was:" >&5
2185sed 's/^/| /' conftest.$ac_ext >&5
2186
2187{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2188See \`config.log' for more details." >&5
2189echo "$as_me: error: C compiler cannot create executables
2190See \`config.log' for more details." >&2;}
2191   { (exit 77); exit 77; }; }
2192fi
2193
2194ac_exeext=$ac_cv_exeext
2195echo "$as_me:$LINENO: result: $ac_file" >&5
2196echo "${ECHO_T}$ac_file" >&6
2197
2198# Check the compiler produces executables we can run.  If not, either
2199# the compiler is broken, or we cross compile.
2200echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2201echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2202# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2203# If not cross compiling, check that we can run a simple program.
2204if test "$cross_compiling" != yes; then
2205  if { ac_try='./$ac_file'
2206  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2207  (eval $ac_try) 2>&5
2208  ac_status=$?
2209  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2210  (exit $ac_status); }; }; then
2211    cross_compiling=no
2212  else
2213    if test "$cross_compiling" = maybe; then
2214	cross_compiling=yes
2215    else
2216	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2217If you meant to cross compile, use \`--host'.
2218See \`config.log' for more details." >&5
2219echo "$as_me: error: cannot run C compiled programs.
2220If you meant to cross compile, use \`--host'.
2221See \`config.log' for more details." >&2;}
2222   { (exit 1); exit 1; }; }
2223    fi
2224  fi
2225fi
2226echo "$as_me:$LINENO: result: yes" >&5
2227echo "${ECHO_T}yes" >&6
2228
2229rm -f a.out a.exe conftest$ac_cv_exeext b.out
2230ac_clean_files=$ac_clean_files_save
2231# Check the compiler produces executables we can run.  If not, either
2232# the compiler is broken, or we cross compile.
2233echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2234echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2235echo "$as_me:$LINENO: result: $cross_compiling" >&5
2236echo "${ECHO_T}$cross_compiling" >&6
2237
2238echo "$as_me:$LINENO: checking for suffix of executables" >&5
2239echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2240if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2241  (eval $ac_link) 2>&5
2242  ac_status=$?
2243  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2244  (exit $ac_status); }; then
2245  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2246# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2247# work properly (i.e., refer to `conftest.exe'), while it won't with
2248# `rm'.
2249for ac_file in conftest.exe conftest conftest.*; do
2250  test -f "$ac_file" || continue
2251  case $ac_file in
2252    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2253    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2254	  export ac_cv_exeext
2255	  break;;
2256    * ) break;;
2257  esac
2258done
2259else
2260  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2261See \`config.log' for more details." >&5
2262echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2263See \`config.log' for more details." >&2;}
2264   { (exit 1); exit 1; }; }
2265fi
2266
2267rm -f conftest$ac_cv_exeext
2268echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2269echo "${ECHO_T}$ac_cv_exeext" >&6
2270
2271rm -f conftest.$ac_ext
2272EXEEXT=$ac_cv_exeext
2273ac_exeext=$EXEEXT
2274fi
2275echo "$as_me:$LINENO: checking for suffix of object files" >&5
2276echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2277if test "${ac_cv_objext+set}" = set; then
2278  echo $ECHO_N "(cached) $ECHO_C" >&6
2279else
2280  cat >conftest.$ac_ext <<_ACEOF
2281/* confdefs.h.  */
2282_ACEOF
2283cat confdefs.h >>conftest.$ac_ext
2284cat >>conftest.$ac_ext <<_ACEOF
2285/* end confdefs.h.  */
2286
2287int
2288main ()
2289{
2290
2291  ;
2292  return 0;
2293}
2294_ACEOF
2295rm -f conftest.o conftest.obj
2296if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2297  (eval $ac_compile) 2>&5
2298  ac_status=$?
2299  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2300  (exit $ac_status); }; then
2301  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2302  case $ac_file in
2303    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2304    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2305       break;;
2306  esac
2307done
2308else
2309  echo "$as_me: failed program was:" >&5
2310sed 's/^/| /' conftest.$ac_ext >&5
2311
2312{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2313See \`config.log' for more details." >&5
2314echo "$as_me: error: cannot compute suffix of object files: cannot compile
2315See \`config.log' for more details." >&2;}
2316   { (exit 1); exit 1; }; }
2317fi
2318
2319rm -f conftest.$ac_cv_objext conftest.$ac_ext
2320fi
2321echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2322echo "${ECHO_T}$ac_cv_objext" >&6
2323OBJEXT=$ac_cv_objext
2324ac_objext=$OBJEXT
2325echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2326echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2327if test "${ac_cv_c_compiler_gnu+set}" = set; then
2328  echo $ECHO_N "(cached) $ECHO_C" >&6
2329else
2330  cat >conftest.$ac_ext <<_ACEOF
2331/* confdefs.h.  */
2332_ACEOF
2333cat confdefs.h >>conftest.$ac_ext
2334cat >>conftest.$ac_ext <<_ACEOF
2335/* end confdefs.h.  */
2336
2337int
2338main ()
2339{
2340#ifndef __GNUC__
2341       choke me
2342#endif
2343
2344  ;
2345  return 0;
2346}
2347_ACEOF
2348rm -f conftest.$ac_objext
2349if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2350  (eval $ac_compile) 2>conftest.er1
2351  ac_status=$?
2352  grep -v '^ *+' conftest.er1 >conftest.err
2353  rm -f conftest.er1
2354  cat conftest.err >&5
2355  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2356  (exit $ac_status); } &&
2357	 { ac_try='test -z "$ac_c_werror_flag"
2358			 || test ! -s conftest.err'
2359  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2360  (eval $ac_try) 2>&5
2361  ac_status=$?
2362  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2363  (exit $ac_status); }; } &&
2364	 { ac_try='test -s conftest.$ac_objext'
2365  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2366  (eval $ac_try) 2>&5
2367  ac_status=$?
2368  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2369  (exit $ac_status); }; }; then
2370  ac_compiler_gnu=yes
2371else
2372  echo "$as_me: failed program was:" >&5
2373sed 's/^/| /' conftest.$ac_ext >&5
2374
2375ac_compiler_gnu=no
2376fi
2377rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2378ac_cv_c_compiler_gnu=$ac_compiler_gnu
2379
2380fi
2381echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2382echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2383GCC=`test $ac_compiler_gnu = yes && echo yes`
2384ac_test_CFLAGS=${CFLAGS+set}
2385ac_save_CFLAGS=$CFLAGS
2386CFLAGS="-g"
2387echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2388echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2389if test "${ac_cv_prog_cc_g+set}" = set; then
2390  echo $ECHO_N "(cached) $ECHO_C" >&6
2391else
2392  cat >conftest.$ac_ext <<_ACEOF
2393/* confdefs.h.  */
2394_ACEOF
2395cat confdefs.h >>conftest.$ac_ext
2396cat >>conftest.$ac_ext <<_ACEOF
2397/* end confdefs.h.  */
2398
2399int
2400main ()
2401{
2402
2403  ;
2404  return 0;
2405}
2406_ACEOF
2407rm -f conftest.$ac_objext
2408if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2409  (eval $ac_compile) 2>conftest.er1
2410  ac_status=$?
2411  grep -v '^ *+' conftest.er1 >conftest.err
2412  rm -f conftest.er1
2413  cat conftest.err >&5
2414  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2415  (exit $ac_status); } &&
2416	 { ac_try='test -z "$ac_c_werror_flag"
2417			 || test ! -s conftest.err'
2418  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2419  (eval $ac_try) 2>&5
2420  ac_status=$?
2421  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2422  (exit $ac_status); }; } &&
2423	 { ac_try='test -s conftest.$ac_objext'
2424  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2425  (eval $ac_try) 2>&5
2426  ac_status=$?
2427  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2428  (exit $ac_status); }; }; then
2429  ac_cv_prog_cc_g=yes
2430else
2431  echo "$as_me: failed program was:" >&5
2432sed 's/^/| /' conftest.$ac_ext >&5
2433
2434ac_cv_prog_cc_g=no
2435fi
2436rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2437fi
2438echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2439echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2440if test "$ac_test_CFLAGS" = set; then
2441  CFLAGS=$ac_save_CFLAGS
2442elif test $ac_cv_prog_cc_g = yes; then
2443  if test "$GCC" = yes; then
2444    CFLAGS="-g -O2"
2445  else
2446    CFLAGS="-g"
2447  fi
2448else
2449  if test "$GCC" = yes; then
2450    CFLAGS="-O2"
2451  else
2452    CFLAGS=
2453  fi
2454fi
2455echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2456echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2457if test "${ac_cv_prog_cc_stdc+set}" = set; then
2458  echo $ECHO_N "(cached) $ECHO_C" >&6
2459else
2460  ac_cv_prog_cc_stdc=no
2461ac_save_CC=$CC
2462cat >conftest.$ac_ext <<_ACEOF
2463/* confdefs.h.  */
2464_ACEOF
2465cat confdefs.h >>conftest.$ac_ext
2466cat >>conftest.$ac_ext <<_ACEOF
2467/* end confdefs.h.  */
2468#include <stdarg.h>
2469#include <stdio.h>
2470#include <sys/types.h>
2471#include <sys/stat.h>
2472/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2473struct buf { int x; };
2474FILE * (*rcsopen) (struct buf *, struct stat *, int);
2475static char *e (p, i)
2476     char **p;
2477     int i;
2478{
2479  return p[i];
2480}
2481static char *f (char * (*g) (char **, int), char **p, ...)
2482{
2483  char *s;
2484  va_list v;
2485  va_start (v,p);
2486  s = g (p, va_arg (v,int));
2487  va_end (v);
2488  return s;
2489}
2490
2491/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2492   function prototypes and stuff, but not '\xHH' hex character constants.
2493   These don't provoke an error unfortunately, instead are silently treated
2494   as 'x'.  The following induces an error, until -std1 is added to get
2495   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2496   array size at least.  It's necessary to write '\x00'==0 to get something
2497   that's true only with -std1.  */
2498int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2499
2500int test (int i, double x);
2501struct s1 {int (*f) (int a);};
2502struct s2 {int (*f) (double a);};
2503int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2504int argc;
2505char **argv;
2506int
2507main ()
2508{
2509return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2510  ;
2511  return 0;
2512}
2513_ACEOF
2514# Don't try gcc -ansi; that turns off useful extensions and
2515# breaks some systems' header files.
2516# AIX			-qlanglvl=ansi
2517# Ultrix and OSF/1	-std1
2518# HP-UX 10.20 and later	-Ae
2519# HP-UX older versions	-Aa -D_HPUX_SOURCE
2520# SVR4			-Xc -D__EXTENSIONS__
2521for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2522do
2523  CC="$ac_save_CC $ac_arg"
2524  rm -f conftest.$ac_objext
2525if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2526  (eval $ac_compile) 2>conftest.er1
2527  ac_status=$?
2528  grep -v '^ *+' conftest.er1 >conftest.err
2529  rm -f conftest.er1
2530  cat conftest.err >&5
2531  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2532  (exit $ac_status); } &&
2533	 { ac_try='test -z "$ac_c_werror_flag"
2534			 || test ! -s conftest.err'
2535  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2536  (eval $ac_try) 2>&5
2537  ac_status=$?
2538  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2539  (exit $ac_status); }; } &&
2540	 { ac_try='test -s conftest.$ac_objext'
2541  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2542  (eval $ac_try) 2>&5
2543  ac_status=$?
2544  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2545  (exit $ac_status); }; }; then
2546  ac_cv_prog_cc_stdc=$ac_arg
2547break
2548else
2549  echo "$as_me: failed program was:" >&5
2550sed 's/^/| /' conftest.$ac_ext >&5
2551
2552fi
2553rm -f conftest.err conftest.$ac_objext
2554done
2555rm -f conftest.$ac_ext conftest.$ac_objext
2556CC=$ac_save_CC
2557
2558fi
2559
2560case "x$ac_cv_prog_cc_stdc" in
2561  x|xno)
2562    echo "$as_me:$LINENO: result: none needed" >&5
2563echo "${ECHO_T}none needed" >&6 ;;
2564  *)
2565    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2566echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2567    CC="$CC $ac_cv_prog_cc_stdc" ;;
2568esac
2569
2570# Some people use a C++ compiler to compile C.  Since we use `exit',
2571# in C++ we need to declare it.  In case someone uses the same compiler
2572# for both compiling C and C++ we need to have the C++ compiler decide
2573# the declaration of exit, since it's the most demanding environment.
2574cat >conftest.$ac_ext <<_ACEOF
2575#ifndef __cplusplus
2576  choke me
2577#endif
2578_ACEOF
2579rm -f conftest.$ac_objext
2580if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2581  (eval $ac_compile) 2>conftest.er1
2582  ac_status=$?
2583  grep -v '^ *+' conftest.er1 >conftest.err
2584  rm -f conftest.er1
2585  cat conftest.err >&5
2586  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2587  (exit $ac_status); } &&
2588	 { ac_try='test -z "$ac_c_werror_flag"
2589			 || test ! -s conftest.err'
2590  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2591  (eval $ac_try) 2>&5
2592  ac_status=$?
2593  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2594  (exit $ac_status); }; } &&
2595	 { ac_try='test -s conftest.$ac_objext'
2596  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2597  (eval $ac_try) 2>&5
2598  ac_status=$?
2599  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2600  (exit $ac_status); }; }; then
2601  for ac_declaration in \
2602   '' \
2603   'extern "C" void std::exit (int) throw (); using std::exit;' \
2604   'extern "C" void std::exit (int); using std::exit;' \
2605   'extern "C" void exit (int) throw ();' \
2606   'extern "C" void exit (int);' \
2607   'void exit (int);'
2608do
2609  cat >conftest.$ac_ext <<_ACEOF
2610/* confdefs.h.  */
2611_ACEOF
2612cat confdefs.h >>conftest.$ac_ext
2613cat >>conftest.$ac_ext <<_ACEOF
2614/* end confdefs.h.  */
2615$ac_declaration
2616#include <stdlib.h>
2617int
2618main ()
2619{
2620exit (42);
2621  ;
2622  return 0;
2623}
2624_ACEOF
2625rm -f conftest.$ac_objext
2626if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2627  (eval $ac_compile) 2>conftest.er1
2628  ac_status=$?
2629  grep -v '^ *+' conftest.er1 >conftest.err
2630  rm -f conftest.er1
2631  cat conftest.err >&5
2632  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2633  (exit $ac_status); } &&
2634	 { ac_try='test -z "$ac_c_werror_flag"
2635			 || test ! -s conftest.err'
2636  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2637  (eval $ac_try) 2>&5
2638  ac_status=$?
2639  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2640  (exit $ac_status); }; } &&
2641	 { ac_try='test -s conftest.$ac_objext'
2642  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2643  (eval $ac_try) 2>&5
2644  ac_status=$?
2645  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2646  (exit $ac_status); }; }; then
2647  :
2648else
2649  echo "$as_me: failed program was:" >&5
2650sed 's/^/| /' conftest.$ac_ext >&5
2651
2652continue
2653fi
2654rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2655  cat >conftest.$ac_ext <<_ACEOF
2656/* confdefs.h.  */
2657_ACEOF
2658cat confdefs.h >>conftest.$ac_ext
2659cat >>conftest.$ac_ext <<_ACEOF
2660/* end confdefs.h.  */
2661$ac_declaration
2662int
2663main ()
2664{
2665exit (42);
2666  ;
2667  return 0;
2668}
2669_ACEOF
2670rm -f conftest.$ac_objext
2671if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2672  (eval $ac_compile) 2>conftest.er1
2673  ac_status=$?
2674  grep -v '^ *+' conftest.er1 >conftest.err
2675  rm -f conftest.er1
2676  cat conftest.err >&5
2677  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2678  (exit $ac_status); } &&
2679	 { ac_try='test -z "$ac_c_werror_flag"
2680			 || test ! -s conftest.err'
2681  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2682  (eval $ac_try) 2>&5
2683  ac_status=$?
2684  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2685  (exit $ac_status); }; } &&
2686	 { ac_try='test -s conftest.$ac_objext'
2687  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2688  (eval $ac_try) 2>&5
2689  ac_status=$?
2690  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2691  (exit $ac_status); }; }; then
2692  break
2693else
2694  echo "$as_me: failed program was:" >&5
2695sed 's/^/| /' conftest.$ac_ext >&5
2696
2697fi
2698rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2699done
2700rm -f conftest*
2701if test -n "$ac_declaration"; then
2702  echo '#ifdef __cplusplus' >>confdefs.h
2703  echo $ac_declaration      >>confdefs.h
2704  echo '#endif'             >>confdefs.h
2705fi
2706
2707else
2708  echo "$as_me: failed program was:" >&5
2709sed 's/^/| /' conftest.$ac_ext >&5
2710
2711fi
2712rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2713ac_ext=c
2714ac_cpp='$CPP $CPPFLAGS'
2715ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2716ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2717ac_compiler_gnu=$ac_cv_c_compiler_gnu
2718
2719ac_ext=c
2720ac_cpp='$CPP $CPPFLAGS'
2721ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2722ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2723ac_compiler_gnu=$ac_cv_c_compiler_gnu
2724echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2725echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2726# On Suns, sometimes $CPP names a directory.
2727if test -n "$CPP" && test -d "$CPP"; then
2728  CPP=
2729fi
2730if test -z "$CPP"; then
2731  if test "${ac_cv_prog_CPP+set}" = set; then
2732  echo $ECHO_N "(cached) $ECHO_C" >&6
2733else
2734      # Double quotes because CPP needs to be expanded
2735    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2736    do
2737      ac_preproc_ok=false
2738for ac_c_preproc_warn_flag in '' yes
2739do
2740  # Use a header file that comes with gcc, so configuring glibc
2741  # with a fresh cross-compiler works.
2742  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2743  # <limits.h> exists even on freestanding compilers.
2744  # On the NeXT, cc -E runs the code through the compiler's parser,
2745  # not just through cpp. "Syntax error" is here to catch this case.
2746  cat >conftest.$ac_ext <<_ACEOF
2747/* confdefs.h.  */
2748_ACEOF
2749cat confdefs.h >>conftest.$ac_ext
2750cat >>conftest.$ac_ext <<_ACEOF
2751/* end confdefs.h.  */
2752#ifdef __STDC__
2753# include <limits.h>
2754#else
2755# include <assert.h>
2756#endif
2757		     Syntax error
2758_ACEOF
2759if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2760  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2761  ac_status=$?
2762  grep -v '^ *+' conftest.er1 >conftest.err
2763  rm -f conftest.er1
2764  cat conftest.err >&5
2765  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2766  (exit $ac_status); } >/dev/null; then
2767  if test -s conftest.err; then
2768    ac_cpp_err=$ac_c_preproc_warn_flag
2769    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2770  else
2771    ac_cpp_err=
2772  fi
2773else
2774  ac_cpp_err=yes
2775fi
2776if test -z "$ac_cpp_err"; then
2777  :
2778else
2779  echo "$as_me: failed program was:" >&5
2780sed 's/^/| /' conftest.$ac_ext >&5
2781
2782  # Broken: fails on valid input.
2783continue
2784fi
2785rm -f conftest.err conftest.$ac_ext
2786
2787  # OK, works on sane cases.  Now check whether non-existent headers
2788  # can be detected and how.
2789  cat >conftest.$ac_ext <<_ACEOF
2790/* confdefs.h.  */
2791_ACEOF
2792cat confdefs.h >>conftest.$ac_ext
2793cat >>conftest.$ac_ext <<_ACEOF
2794/* end confdefs.h.  */
2795#include <ac_nonexistent.h>
2796_ACEOF
2797if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2798  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2799  ac_status=$?
2800  grep -v '^ *+' conftest.er1 >conftest.err
2801  rm -f conftest.er1
2802  cat conftest.err >&5
2803  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2804  (exit $ac_status); } >/dev/null; then
2805  if test -s conftest.err; then
2806    ac_cpp_err=$ac_c_preproc_warn_flag
2807    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2808  else
2809    ac_cpp_err=
2810  fi
2811else
2812  ac_cpp_err=yes
2813fi
2814if test -z "$ac_cpp_err"; then
2815  # Broken: success on invalid input.
2816continue
2817else
2818  echo "$as_me: failed program was:" >&5
2819sed 's/^/| /' conftest.$ac_ext >&5
2820
2821  # Passes both tests.
2822ac_preproc_ok=:
2823break
2824fi
2825rm -f conftest.err conftest.$ac_ext
2826
2827done
2828# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2829rm -f conftest.err conftest.$ac_ext
2830if $ac_preproc_ok; then
2831  break
2832fi
2833
2834    done
2835    ac_cv_prog_CPP=$CPP
2836
2837fi
2838  CPP=$ac_cv_prog_CPP
2839else
2840  ac_cv_prog_CPP=$CPP
2841fi
2842echo "$as_me:$LINENO: result: $CPP" >&5
2843echo "${ECHO_T}$CPP" >&6
2844ac_preproc_ok=false
2845for ac_c_preproc_warn_flag in '' yes
2846do
2847  # Use a header file that comes with gcc, so configuring glibc
2848  # with a fresh cross-compiler works.
2849  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2850  # <limits.h> exists even on freestanding compilers.
2851  # On the NeXT, cc -E runs the code through the compiler's parser,
2852  # not just through cpp. "Syntax error" is here to catch this case.
2853  cat >conftest.$ac_ext <<_ACEOF
2854/* confdefs.h.  */
2855_ACEOF
2856cat confdefs.h >>conftest.$ac_ext
2857cat >>conftest.$ac_ext <<_ACEOF
2858/* end confdefs.h.  */
2859#ifdef __STDC__
2860# include <limits.h>
2861#else
2862# include <assert.h>
2863#endif
2864		     Syntax error
2865_ACEOF
2866if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2867  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2868  ac_status=$?
2869  grep -v '^ *+' conftest.er1 >conftest.err
2870  rm -f conftest.er1
2871  cat conftest.err >&5
2872  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2873  (exit $ac_status); } >/dev/null; then
2874  if test -s conftest.err; then
2875    ac_cpp_err=$ac_c_preproc_warn_flag
2876    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2877  else
2878    ac_cpp_err=
2879  fi
2880else
2881  ac_cpp_err=yes
2882fi
2883if test -z "$ac_cpp_err"; then
2884  :
2885else
2886  echo "$as_me: failed program was:" >&5
2887sed 's/^/| /' conftest.$ac_ext >&5
2888
2889  # Broken: fails on valid input.
2890continue
2891fi
2892rm -f conftest.err conftest.$ac_ext
2893
2894  # OK, works on sane cases.  Now check whether non-existent headers
2895  # can be detected and how.
2896  cat >conftest.$ac_ext <<_ACEOF
2897/* confdefs.h.  */
2898_ACEOF
2899cat confdefs.h >>conftest.$ac_ext
2900cat >>conftest.$ac_ext <<_ACEOF
2901/* end confdefs.h.  */
2902#include <ac_nonexistent.h>
2903_ACEOF
2904if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2905  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2906  ac_status=$?
2907  grep -v '^ *+' conftest.er1 >conftest.err
2908  rm -f conftest.er1
2909  cat conftest.err >&5
2910  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2911  (exit $ac_status); } >/dev/null; then
2912  if test -s conftest.err; then
2913    ac_cpp_err=$ac_c_preproc_warn_flag
2914    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2915  else
2916    ac_cpp_err=
2917  fi
2918else
2919  ac_cpp_err=yes
2920fi
2921if test -z "$ac_cpp_err"; then
2922  # Broken: success on invalid input.
2923continue
2924else
2925  echo "$as_me: failed program was:" >&5
2926sed 's/^/| /' conftest.$ac_ext >&5
2927
2928  # Passes both tests.
2929ac_preproc_ok=:
2930break
2931fi
2932rm -f conftest.err conftest.$ac_ext
2933
2934done
2935# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2936rm -f conftest.err conftest.$ac_ext
2937if $ac_preproc_ok; then
2938  :
2939else
2940  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2941See \`config.log' for more details." >&5
2942echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2943See \`config.log' for more details." >&2;}
2944   { (exit 1); exit 1; }; }
2945fi
2946
2947ac_ext=c
2948ac_cpp='$CPP $CPPFLAGS'
2949ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2950ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2951ac_compiler_gnu=$ac_cv_c_compiler_gnu
2952
2953
2954ac_c_preproc_warn_flag=yes
2955
2956
2957ac_libiberty_warn_cflags=
2958save_CFLAGS="$CFLAGS"
2959for option in -W -Wall -Wwrite-strings -Wc++-compat \
2960			  -Wstrict-prototypes; do
2961  as_acx_Woption=`echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
2962
2963  echo "$as_me:$LINENO: checking whether $CC supports $option" >&5
2964echo $ECHO_N "checking whether $CC supports $option... $ECHO_C" >&6
2965if eval "test \"\${$as_acx_Woption+set}\" = set"; then
2966  echo $ECHO_N "(cached) $ECHO_C" >&6
2967else
2968  CFLAGS="$option"
2969    cat >conftest.$ac_ext <<_ACEOF
2970/* confdefs.h.  */
2971_ACEOF
2972cat confdefs.h >>conftest.$ac_ext
2973cat >>conftest.$ac_ext <<_ACEOF
2974/* end confdefs.h.  */
2975
2976int
2977main ()
2978{
2979
2980  ;
2981  return 0;
2982}
2983_ACEOF
2984rm -f conftest.$ac_objext
2985if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2986  (eval $ac_compile) 2>conftest.er1
2987  ac_status=$?
2988  grep -v '^ *+' conftest.er1 >conftest.err
2989  rm -f conftest.er1
2990  cat conftest.err >&5
2991  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2992  (exit $ac_status); } &&
2993	 { ac_try='test -z "$ac_c_werror_flag"
2994			 || test ! -s conftest.err'
2995  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2996  (eval $ac_try) 2>&5
2997  ac_status=$?
2998  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2999  (exit $ac_status); }; } &&
3000	 { ac_try='test -s conftest.$ac_objext'
3001  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3002  (eval $ac_try) 2>&5
3003  ac_status=$?
3004  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3005  (exit $ac_status); }; }; then
3006  eval "$as_acx_Woption=yes"
3007else
3008  echo "$as_me: failed program was:" >&5
3009sed 's/^/| /' conftest.$ac_ext >&5
3010
3011eval "$as_acx_Woption=no"
3012fi
3013rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3014
3015fi
3016echo "$as_me:$LINENO: result: `eval echo '${'$as_acx_Woption'}'`" >&5
3017echo "${ECHO_T}`eval echo '${'$as_acx_Woption'}'`" >&6
3018  if test `eval echo '${'$as_acx_Woption'}'` = yes; then
3019  ac_libiberty_warn_cflags="$ac_libiberty_warn_cflags${ac_libiberty_warn_cflags:+ }$option"
3020fi
3021
3022  done
3023CFLAGS="$save_CFLAGS"
3024
3025if test "$GCC" = yes; then
3026  echo "$as_me:$LINENO: checking whether $CC supports -pedantic " >&5
3027echo $ECHO_N "checking whether $CC supports -pedantic ... $ECHO_C" >&6
3028if test "${acx_cv_prog_cc_pedantic_+set}" = set; then
3029  echo $ECHO_N "(cached) $ECHO_C" >&6
3030else
3031  save_CFLAGS="$CFLAGS"
3032CFLAGS="-pedantic "
3033cat >conftest.$ac_ext <<_ACEOF
3034/* confdefs.h.  */
3035_ACEOF
3036cat confdefs.h >>conftest.$ac_ext
3037cat >>conftest.$ac_ext <<_ACEOF
3038/* end confdefs.h.  */
3039
3040int
3041main ()
3042{
3043
3044  ;
3045  return 0;
3046}
3047_ACEOF
3048rm -f conftest.$ac_objext
3049if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3050  (eval $ac_compile) 2>conftest.er1
3051  ac_status=$?
3052  grep -v '^ *+' conftest.er1 >conftest.err
3053  rm -f conftest.er1
3054  cat conftest.err >&5
3055  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3056  (exit $ac_status); } &&
3057	 { ac_try='test -z "$ac_c_werror_flag"
3058			 || test ! -s conftest.err'
3059  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3060  (eval $ac_try) 2>&5
3061  ac_status=$?
3062  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3063  (exit $ac_status); }; } &&
3064	 { ac_try='test -s conftest.$ac_objext'
3065  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3066  (eval $ac_try) 2>&5
3067  ac_status=$?
3068  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3069  (exit $ac_status); }; }; then
3070  acx_cv_prog_cc_pedantic_=yes
3071else
3072  echo "$as_me: failed program was:" >&5
3073sed 's/^/| /' conftest.$ac_ext >&5
3074
3075acx_cv_prog_cc_pedantic_=no
3076fi
3077rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3078CFLAGS="$save_CFLAGS"
3079fi
3080echo "$as_me:$LINENO: result: $acx_cv_prog_cc_pedantic_" >&5
3081echo "${ECHO_T}$acx_cv_prog_cc_pedantic_" >&6
3082if test $acx_cv_prog_cc_pedantic_ = yes; then
3083  ac_libiberty_warn_cflags="$ac_libiberty_warn_cflags${ac_libiberty_warn_cflags:+ }-pedantic "
3084fi
3085
3086
3087fi
3088
3089
3090
3091if test "x$CC" != xcc; then
3092  echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
3093echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
3094else
3095  echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
3096echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
3097fi
3098set dummy $CC; ac_cc=`echo $2 |
3099		      sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3100if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
3101  echo $ECHO_N "(cached) $ECHO_C" >&6
3102else
3103  cat >conftest.$ac_ext <<_ACEOF
3104/* confdefs.h.  */
3105_ACEOF
3106cat confdefs.h >>conftest.$ac_ext
3107cat >>conftest.$ac_ext <<_ACEOF
3108/* end confdefs.h.  */
3109
3110int
3111main ()
3112{
3113
3114  ;
3115  return 0;
3116}
3117_ACEOF
3118# Make sure it works both with $CC and with simple cc.
3119# We do the test twice because some compilers refuse to overwrite an
3120# existing .o file with -o, though they will create one.
3121ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
3122if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3123  (eval $ac_try) 2>&5
3124  ac_status=$?
3125  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3126  (exit $ac_status); } &&
3127   test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3128  (eval $ac_try) 2>&5
3129  ac_status=$?
3130  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3131  (exit $ac_status); };
3132then
3133  eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3134  if test "x$CC" != xcc; then
3135    # Test first that cc exists at all.
3136    if { ac_try='cc -c conftest.$ac_ext >&5'
3137  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3138  (eval $ac_try) 2>&5
3139  ac_status=$?
3140  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3141  (exit $ac_status); }; }; then
3142      ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
3143      if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3144  (eval $ac_try) 2>&5
3145  ac_status=$?
3146  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3147  (exit $ac_status); } &&
3148	 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3149  (eval $ac_try) 2>&5
3150  ac_status=$?
3151  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3152  (exit $ac_status); };
3153      then
3154	# cc works too.
3155	:
3156      else
3157	# cc exists but doesn't like -o.
3158	eval ac_cv_prog_cc_${ac_cc}_c_o=no
3159      fi
3160    fi
3161  fi
3162else
3163  eval ac_cv_prog_cc_${ac_cc}_c_o=no
3164fi
3165rm -f conftest*
3166
3167fi
3168if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
3169  echo "$as_me:$LINENO: result: yes" >&5
3170echo "${ECHO_T}yes" >&6
3171else
3172  echo "$as_me:$LINENO: result: no" >&5
3173echo "${ECHO_T}no" >&6
3174
3175cat >>confdefs.h <<\_ACEOF
3176#define NO_MINUS_C_MINUS_O 1
3177_ACEOF
3178
3179fi
3180
3181# autoconf is lame and doesn't give us any substitution variable for this.
3182if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
3183  NO_MINUS_C_MINUS_O=yes
3184else
3185  OUTPUT_OPTION='-o $@'
3186fi
3187
3188
3189
3190echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3191echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3192if test "${ac_cv_c_const+set}" = set; then
3193  echo $ECHO_N "(cached) $ECHO_C" >&6
3194else
3195  cat >conftest.$ac_ext <<_ACEOF
3196/* confdefs.h.  */
3197_ACEOF
3198cat confdefs.h >>conftest.$ac_ext
3199cat >>conftest.$ac_ext <<_ACEOF
3200/* end confdefs.h.  */
3201
3202int
3203main ()
3204{
3205/* FIXME: Include the comments suggested by Paul. */
3206#ifndef __cplusplus
3207  /* Ultrix mips cc rejects this.  */
3208  typedef int charset[2];
3209  const charset x;
3210  /* SunOS 4.1.1 cc rejects this.  */
3211  char const *const *ccp;
3212  char **p;
3213  /* NEC SVR4.0.2 mips cc rejects this.  */
3214  struct point {int x, y;};
3215  static struct point const zero = {0,0};
3216  /* AIX XL C 1.02.0.0 rejects this.
3217     It does not let you subtract one const X* pointer from another in
3218     an arm of an if-expression whose if-part is not a constant
3219     expression */
3220  const char *g = "string";
3221  ccp = &g + (g ? g-g : 0);
3222  /* HPUX 7.0 cc rejects these. */
3223  ++ccp;
3224  p = (char**) ccp;
3225  ccp = (char const *const *) p;
3226  { /* SCO 3.2v4 cc rejects this.  */
3227    char *t;
3228    char const *s = 0 ? (char *) 0 : (char const *) 0;
3229
3230    *t++ = 0;
3231  }
3232  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
3233    int x[] = {25, 17};
3234    const int *foo = &x[0];
3235    ++foo;
3236  }
3237  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3238    typedef const int *iptr;
3239    iptr p = 0;
3240    ++p;
3241  }
3242  { /* AIX XL C 1.02.0.0 rejects this saying
3243       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3244    struct s { int j; const int *ap[3]; };
3245    struct s *b; b->j = 5;
3246  }
3247  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3248    const int foo = 10;
3249  }
3250#endif
3251
3252  ;
3253  return 0;
3254}
3255_ACEOF
3256rm -f conftest.$ac_objext
3257if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3258  (eval $ac_compile) 2>conftest.er1
3259  ac_status=$?
3260  grep -v '^ *+' conftest.er1 >conftest.err
3261  rm -f conftest.er1
3262  cat conftest.err >&5
3263  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3264  (exit $ac_status); } &&
3265	 { ac_try='test -z "$ac_c_werror_flag"
3266			 || test ! -s conftest.err'
3267  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3268  (eval $ac_try) 2>&5
3269  ac_status=$?
3270  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3271  (exit $ac_status); }; } &&
3272	 { ac_try='test -s conftest.$ac_objext'
3273  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3274  (eval $ac_try) 2>&5
3275  ac_status=$?
3276  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3277  (exit $ac_status); }; }; then
3278  ac_cv_c_const=yes
3279else
3280  echo "$as_me: failed program was:" >&5
3281sed 's/^/| /' conftest.$ac_ext >&5
3282
3283ac_cv_c_const=no
3284fi
3285rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3286fi
3287echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3288echo "${ECHO_T}$ac_cv_c_const" >&6
3289if test $ac_cv_c_const = no; then
3290
3291cat >>confdefs.h <<\_ACEOF
3292#define const
3293_ACEOF
3294
3295fi
3296
3297echo "$as_me:$LINENO: checking for inline" >&5
3298echo $ECHO_N "checking for inline... $ECHO_C" >&6
3299if test "${ac_cv_c_inline+set}" = set; then
3300  echo $ECHO_N "(cached) $ECHO_C" >&6
3301else
3302  ac_cv_c_inline=no
3303for ac_kw in inline __inline__ __inline; do
3304  cat >conftest.$ac_ext <<_ACEOF
3305/* confdefs.h.  */
3306_ACEOF
3307cat confdefs.h >>conftest.$ac_ext
3308cat >>conftest.$ac_ext <<_ACEOF
3309/* end confdefs.h.  */
3310#ifndef __cplusplus
3311typedef int foo_t;
3312static $ac_kw foo_t static_foo () {return 0; }
3313$ac_kw foo_t foo () {return 0; }
3314#endif
3315
3316_ACEOF
3317rm -f conftest.$ac_objext
3318if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3319  (eval $ac_compile) 2>conftest.er1
3320  ac_status=$?
3321  grep -v '^ *+' conftest.er1 >conftest.err
3322  rm -f conftest.er1
3323  cat conftest.err >&5
3324  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3325  (exit $ac_status); } &&
3326	 { ac_try='test -z "$ac_c_werror_flag"
3327			 || test ! -s conftest.err'
3328  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3329  (eval $ac_try) 2>&5
3330  ac_status=$?
3331  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3332  (exit $ac_status); }; } &&
3333	 { ac_try='test -s conftest.$ac_objext'
3334  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3335  (eval $ac_try) 2>&5
3336  ac_status=$?
3337  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3338  (exit $ac_status); }; }; then
3339  ac_cv_c_inline=$ac_kw; break
3340else
3341  echo "$as_me: failed program was:" >&5
3342sed 's/^/| /' conftest.$ac_ext >&5
3343
3344fi
3345rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3346done
3347
3348fi
3349echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3350echo "${ECHO_T}$ac_cv_c_inline" >&6
3351
3352
3353case $ac_cv_c_inline in
3354  inline | yes) ;;
3355  *)
3356    case $ac_cv_c_inline in
3357      no) ac_val=;;
3358      *) ac_val=$ac_cv_c_inline;;
3359    esac
3360    cat >>confdefs.h <<_ACEOF
3361#ifndef __cplusplus
3362#define inline $ac_val
3363#endif
3364_ACEOF
3365    ;;
3366esac
3367
3368echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
3369echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
3370if test "${ac_cv_c_bigendian+set}" = set; then
3371  echo $ECHO_N "(cached) $ECHO_C" >&6
3372else
3373  # See if sys/param.h defines the BYTE_ORDER macro.
3374cat >conftest.$ac_ext <<_ACEOF
3375/* confdefs.h.  */
3376_ACEOF
3377cat confdefs.h >>conftest.$ac_ext
3378cat >>conftest.$ac_ext <<_ACEOF
3379/* end confdefs.h.  */
3380#include <sys/types.h>
3381#include <sys/param.h>
3382
3383int
3384main ()
3385{
3386#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3387 bogus endian macros
3388#endif
3389
3390  ;
3391  return 0;
3392}
3393_ACEOF
3394rm -f conftest.$ac_objext
3395if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3396  (eval $ac_compile) 2>conftest.er1
3397  ac_status=$?
3398  grep -v '^ *+' conftest.er1 >conftest.err
3399  rm -f conftest.er1
3400  cat conftest.err >&5
3401  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3402  (exit $ac_status); } &&
3403	 { ac_try='test -z "$ac_c_werror_flag"
3404			 || test ! -s conftest.err'
3405  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3406  (eval $ac_try) 2>&5
3407  ac_status=$?
3408  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3409  (exit $ac_status); }; } &&
3410	 { ac_try='test -s conftest.$ac_objext'
3411  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3412  (eval $ac_try) 2>&5
3413  ac_status=$?
3414  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3415  (exit $ac_status); }; }; then
3416  # It does; now see whether it defined to BIG_ENDIAN or not.
3417cat >conftest.$ac_ext <<_ACEOF
3418/* confdefs.h.  */
3419_ACEOF
3420cat confdefs.h >>conftest.$ac_ext
3421cat >>conftest.$ac_ext <<_ACEOF
3422/* end confdefs.h.  */
3423#include <sys/types.h>
3424#include <sys/param.h>
3425
3426int
3427main ()
3428{
3429#if BYTE_ORDER != BIG_ENDIAN
3430 not big endian
3431#endif
3432
3433  ;
3434  return 0;
3435}
3436_ACEOF
3437rm -f conftest.$ac_objext
3438if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3439  (eval $ac_compile) 2>conftest.er1
3440  ac_status=$?
3441  grep -v '^ *+' conftest.er1 >conftest.err
3442  rm -f conftest.er1
3443  cat conftest.err >&5
3444  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3445  (exit $ac_status); } &&
3446	 { ac_try='test -z "$ac_c_werror_flag"
3447			 || test ! -s conftest.err'
3448  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3449  (eval $ac_try) 2>&5
3450  ac_status=$?
3451  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3452  (exit $ac_status); }; } &&
3453	 { ac_try='test -s conftest.$ac_objext'
3454  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3455  (eval $ac_try) 2>&5
3456  ac_status=$?
3457  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3458  (exit $ac_status); }; }; then
3459  ac_cv_c_bigendian=yes
3460else
3461  echo "$as_me: failed program was:" >&5
3462sed 's/^/| /' conftest.$ac_ext >&5
3463
3464ac_cv_c_bigendian=no
3465fi
3466rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3467else
3468  echo "$as_me: failed program was:" >&5
3469sed 's/^/| /' conftest.$ac_ext >&5
3470
3471# It does not; compile a test program.
3472if test "$cross_compiling" = yes; then
3473  # try to guess the endianness by grepping values into an object file
3474  ac_cv_c_bigendian=unknown
3475  cat >conftest.$ac_ext <<_ACEOF
3476/* confdefs.h.  */
3477_ACEOF
3478cat confdefs.h >>conftest.$ac_ext
3479cat >>conftest.$ac_ext <<_ACEOF
3480/* end confdefs.h.  */
3481short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
3482short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
3483void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
3484short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
3485short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
3486void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
3487int
3488main ()
3489{
3490 _ascii (); _ebcdic ();
3491  ;
3492  return 0;
3493}
3494_ACEOF
3495rm -f conftest.$ac_objext
3496if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3497  (eval $ac_compile) 2>conftest.er1
3498  ac_status=$?
3499  grep -v '^ *+' conftest.er1 >conftest.err
3500  rm -f conftest.er1
3501  cat conftest.err >&5
3502  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3503  (exit $ac_status); } &&
3504	 { ac_try='test -z "$ac_c_werror_flag"
3505			 || test ! -s conftest.err'
3506  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3507  (eval $ac_try) 2>&5
3508  ac_status=$?
3509  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3510  (exit $ac_status); }; } &&
3511	 { ac_try='test -s conftest.$ac_objext'
3512  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3513  (eval $ac_try) 2>&5
3514  ac_status=$?
3515  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3516  (exit $ac_status); }; }; then
3517  if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
3518  ac_cv_c_bigendian=yes
3519fi
3520if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
3521  if test "$ac_cv_c_bigendian" = unknown; then
3522    ac_cv_c_bigendian=no
3523  else
3524    # finding both strings is unlikely to happen, but who knows?
3525    ac_cv_c_bigendian=unknown
3526  fi
3527fi
3528else
3529  echo "$as_me: failed program was:" >&5
3530sed 's/^/| /' conftest.$ac_ext >&5
3531
3532fi
3533rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3534else
3535  cat >conftest.$ac_ext <<_ACEOF
3536/* confdefs.h.  */
3537_ACEOF
3538cat confdefs.h >>conftest.$ac_ext
3539cat >>conftest.$ac_ext <<_ACEOF
3540/* end confdefs.h.  */
3541int
3542main ()
3543{
3544  /* Are we little or big endian?  From Harbison&Steele.  */
3545  union
3546  {
3547    long l;
3548    char c[sizeof (long)];
3549  } u;
3550  u.l = 1;
3551  exit (u.c[sizeof (long) - 1] == 1);
3552}
3553_ACEOF
3554rm -f conftest$ac_exeext
3555if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3556  (eval $ac_link) 2>&5
3557  ac_status=$?
3558  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3559  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3560  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3561  (eval $ac_try) 2>&5
3562  ac_status=$?
3563  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3564  (exit $ac_status); }; }; then
3565  ac_cv_c_bigendian=no
3566else
3567  echo "$as_me: program exited with status $ac_status" >&5
3568echo "$as_me: failed program was:" >&5
3569sed 's/^/| /' conftest.$ac_ext >&5
3570
3571( exit $ac_status )
3572ac_cv_c_bigendian=yes
3573fi
3574rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3575fi
3576fi
3577rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3578fi
3579echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
3580echo "${ECHO_T}$ac_cv_c_bigendian" >&6
3581case $ac_cv_c_bigendian in
3582  yes)
3583
3584cat >>confdefs.h <<\_ACEOF
3585#define WORDS_BIGENDIAN 1
3586_ACEOF
3587 ;;
3588  no)
3589     ;;
3590  *)
3591    { { echo "$as_me:$LINENO: error: unknown endianness
3592presetting ac_cv_c_bigendian=no (or yes) will help" >&5
3593echo "$as_me: error: unknown endianness
3594presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
3595   { (exit 1); exit 1; }; } ;;
3596esac
3597
3598
3599
3600
3601          ac_config_headers="$ac_config_headers config.h:config.in"
3602
3603
3604
3605# Find a good install program.  We prefer a C program (faster),
3606# so one script is as good as another.  But avoid the broken or
3607# incompatible versions:
3608# SysV /etc/install, /usr/sbin/install
3609# SunOS /usr/etc/install
3610# IRIX /sbin/install
3611# AIX /bin/install
3612# AmigaOS /C/install, which installs bootblocks on floppy discs
3613# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3614# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3615# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3616# OS/2's system install, which has a completely different semantic
3617# ./install, which can be erroneously created by make from ./install.sh.
3618echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3619echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3620if test -z "$INSTALL"; then
3621if test "${ac_cv_path_install+set}" = set; then
3622  echo $ECHO_N "(cached) $ECHO_C" >&6
3623else
3624  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3625for as_dir in $PATH
3626do
3627  IFS=$as_save_IFS
3628  test -z "$as_dir" && as_dir=.
3629  # Account for people who put trailing slashes in PATH elements.
3630case $as_dir/ in
3631  ./ | .// | /cC/* | \
3632  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3633  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3634  /usr/ucb/* ) ;;
3635  *)
3636    # OSF1 and SCO ODT 3.0 have their own names for install.
3637    # Don't use installbsd from OSF since it installs stuff as root
3638    # by default.
3639    for ac_prog in ginstall scoinst install; do
3640      for ac_exec_ext in '' $ac_executable_extensions; do
3641	if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3642	  if test $ac_prog = install &&
3643	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3644	    # AIX install.  It has an incompatible calling convention.
3645	    :
3646	  elif test $ac_prog = install &&
3647	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3648	    # program-specific install script used by HP pwplus--don't use.
3649	    :
3650	  else
3651	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3652	    break 3
3653	  fi
3654	fi
3655      done
3656    done
3657    ;;
3658esac
3659done
3660
3661
3662fi
3663  if test "${ac_cv_path_install+set}" = set; then
3664    INSTALL=$ac_cv_path_install
3665  else
3666    # As a last resort, use the slow shell script.  We don't cache a
3667    # path for INSTALL within a source directory, because that will
3668    # break other packages using the cache if that directory is
3669    # removed, or if the path is relative.
3670    INSTALL=$ac_install_sh
3671  fi
3672fi
3673echo "$as_me:$LINENO: result: $INSTALL" >&5
3674echo "${ECHO_T}$INSTALL" >&6
3675
3676# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3677# It thinks the first close brace ends the variable substitution.
3678test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3679
3680test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3681
3682test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3683
3684
3685# Don't build the shared library for build.
3686if [ -n "${with_build_subdir}" ]; then
3687  enable_shared=no
3688fi
3689
3690frag=
3691case "${host}" in
3692  rs6000-ibm-aix3.1 | rs6000-ibm-aix)
3693                        frag=mh-aix ;;
3694  *-*-cxux7*)		frag=mh-cxux7 ;;
3695  *-*-freebsd2.1.*)	frag=mh-fbsd21 ;;
3696  *-*-freebsd2.2.[012])	frag=mh-fbsd21 ;;
3697  i370-*-opened*)       frag=mh-openedition ;;
3698  i[34567]86-*-windows*)	frag=mh-windows ;;
3699esac
3700
3701if [ -n "${frag}" ]; then
3702  frags=${libiberty_topdir}/libiberty/config/$frag
3703else
3704  frags=
3705fi
3706
3707# If they didn't specify --enable-shared, don't generate shared libs.
3708case "${enable_shared}" in
3709  yes) shared=yes ;;
3710  no) shared=no ;;
3711  "") shared=no ;;
3712  *) shared=yes ;;
3713esac
3714if [ "${shared}" = "yes" ]; then
3715  frag=
3716  case "${host}" in
3717    *-*-cygwin*)	;;
3718    alpha*-*-linux*)	frag=mh-elfalphapic ;;
3719    arm*-*-*)		frag=mh-armpic ;;
3720    hppa*-*-*)		frag=mh-papic ;;
3721    i[34567]86-*-* | x86_64-*-*)
3722			frag=mh-x86pic ;;
3723    powerpc*-*-aix*)	;;
3724    powerpc*-*-*)	frag=mh-ppcpic ;;
3725    sparc*-*-*)		frag=mh-sparcpic ;;
3726    s390*-*-*)		frag=mh-s390pic ;;
3727    *)			frag=mh-${host_cpu}pic ;;
3728  esac
3729  if [ -n "${frag}" ]; then
3730    frags="${frags} ${libiberty_topdir}/config/${frag}"
3731  fi
3732fi
3733
3734echo "# Warning: this fragment is automatically generated" > temp-frag
3735
3736for frag in ${frags}; do
3737  if [ -f ${frag} ]; then
3738    echo "Appending ${frag} to xhost-mkfrag"
3739    echo "# Following fragment copied from ${frag}" >> temp-frag
3740    cat ${frag} >> temp-frag
3741  fi
3742done
3743
3744# record if we want to build shared libs.
3745if [ "${shared}" = "yes" ]; then
3746  echo enable_shared = yes >> temp-frag
3747else
3748  echo enable_shared = no >> temp-frag
3749fi
3750
3751frag=xhost-mkfrag
3752${CONFIG_SHELL-/bin/sh} ${libiberty_topdir}/move-if-change temp-frag xhost-mkfrag
3753
3754host_makefile_frag=${frag}
3755
3756
3757# It's OK to check for header files.  Although the compiler may not be
3758# able to link anything, it had better be able to at least compile
3759# something.
3760
3761
3762
3763
3764
3765
3766
3767
3768
3769
3770
3771
3772
3773
3774
3775
3776
3777
3778
3779
3780
3781
3782
3783
3784
3785for 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
3786do
3787as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3788echo "$as_me:$LINENO: checking for $ac_header" >&5
3789echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3790if eval "test \"\${$as_ac_Header+set}\" = set"; then
3791  echo $ECHO_N "(cached) $ECHO_C" >&6
3792else
3793  cat >conftest.$ac_ext <<_ACEOF
3794/* confdefs.h.  */
3795_ACEOF
3796cat confdefs.h >>conftest.$ac_ext
3797cat >>conftest.$ac_ext <<_ACEOF
3798/* end confdefs.h.  */
3799#include <$ac_header>
3800_ACEOF
3801if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3802  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3803  ac_status=$?
3804  grep -v '^ *+' conftest.er1 >conftest.err
3805  rm -f conftest.er1
3806  cat conftest.err >&5
3807  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3808  (exit $ac_status); } >/dev/null; then
3809  if test -s conftest.err; then
3810    ac_cpp_err=$ac_c_preproc_warn_flag
3811    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3812  else
3813    ac_cpp_err=
3814  fi
3815else
3816  ac_cpp_err=yes
3817fi
3818if test -z "$ac_cpp_err"; then
3819  eval "$as_ac_Header=yes"
3820else
3821  echo "$as_me: failed program was:" >&5
3822sed 's/^/| /' conftest.$ac_ext >&5
3823
3824  eval "$as_ac_Header=no"
3825fi
3826rm -f conftest.err conftest.$ac_ext
3827fi
3828echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3829echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3830if test `eval echo '${'$as_ac_Header'}'` = yes; then
3831  cat >>confdefs.h <<_ACEOF
3832#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3833_ACEOF
3834
3835fi
3836done
3837
3838echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
3839echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
3840if test "${ac_cv_header_sys_wait_h+set}" = set; then
3841  echo $ECHO_N "(cached) $ECHO_C" >&6
3842else
3843  cat >conftest.$ac_ext <<_ACEOF
3844/* confdefs.h.  */
3845_ACEOF
3846cat confdefs.h >>conftest.$ac_ext
3847cat >>conftest.$ac_ext <<_ACEOF
3848/* end confdefs.h.  */
3849#include <sys/types.h>
3850#include <sys/wait.h>
3851#ifndef WEXITSTATUS
3852# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
3853#endif
3854#ifndef WIFEXITED
3855# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
3856#endif
3857
3858int
3859main ()
3860{
3861  int s;
3862  wait (&s);
3863  s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
3864  ;
3865  return 0;
3866}
3867_ACEOF
3868rm -f conftest.$ac_objext
3869if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3870  (eval $ac_compile) 2>conftest.er1
3871  ac_status=$?
3872  grep -v '^ *+' conftest.er1 >conftest.err
3873  rm -f conftest.er1
3874  cat conftest.err >&5
3875  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3876  (exit $ac_status); } &&
3877	 { ac_try='test -z "$ac_c_werror_flag"
3878			 || test ! -s conftest.err'
3879  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3880  (eval $ac_try) 2>&5
3881  ac_status=$?
3882  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3883  (exit $ac_status); }; } &&
3884	 { ac_try='test -s conftest.$ac_objext'
3885  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3886  (eval $ac_try) 2>&5
3887  ac_status=$?
3888  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3889  (exit $ac_status); }; }; then
3890  ac_cv_header_sys_wait_h=yes
3891else
3892  echo "$as_me: failed program was:" >&5
3893sed 's/^/| /' conftest.$ac_ext >&5
3894
3895ac_cv_header_sys_wait_h=no
3896fi
3897rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3898fi
3899echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
3900echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
3901if test $ac_cv_header_sys_wait_h = yes; then
3902
3903cat >>confdefs.h <<\_ACEOF
3904#define HAVE_SYS_WAIT_H 1
3905_ACEOF
3906
3907fi
3908
3909echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
3910echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
3911if test "${ac_cv_header_time+set}" = set; then
3912  echo $ECHO_N "(cached) $ECHO_C" >&6
3913else
3914  cat >conftest.$ac_ext <<_ACEOF
3915/* confdefs.h.  */
3916_ACEOF
3917cat confdefs.h >>conftest.$ac_ext
3918cat >>conftest.$ac_ext <<_ACEOF
3919/* end confdefs.h.  */
3920#include <sys/types.h>
3921#include <sys/time.h>
3922#include <time.h>
3923
3924int
3925main ()
3926{
3927if ((struct tm *) 0)
3928return 0;
3929  ;
3930  return 0;
3931}
3932_ACEOF
3933rm -f conftest.$ac_objext
3934if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3935  (eval $ac_compile) 2>conftest.er1
3936  ac_status=$?
3937  grep -v '^ *+' conftest.er1 >conftest.err
3938  rm -f conftest.er1
3939  cat conftest.err >&5
3940  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3941  (exit $ac_status); } &&
3942	 { ac_try='test -z "$ac_c_werror_flag"
3943			 || test ! -s conftest.err'
3944  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3945  (eval $ac_try) 2>&5
3946  ac_status=$?
3947  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3948  (exit $ac_status); }; } &&
3949	 { ac_try='test -s conftest.$ac_objext'
3950  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3951  (eval $ac_try) 2>&5
3952  ac_status=$?
3953  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3954  (exit $ac_status); }; }; then
3955  ac_cv_header_time=yes
3956else
3957  echo "$as_me: failed program was:" >&5
3958sed 's/^/| /' conftest.$ac_ext >&5
3959
3960ac_cv_header_time=no
3961fi
3962rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3963fi
3964echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
3965echo "${ECHO_T}$ac_cv_header_time" >&6
3966if test $ac_cv_header_time = yes; then
3967
3968cat >>confdefs.h <<\_ACEOF
3969#define TIME_WITH_SYS_TIME 1
3970_ACEOF
3971
3972fi
3973
3974
3975echo "$as_me:$LINENO: checking whether errno must be declared" >&5
3976echo $ECHO_N "checking whether errno must be declared... $ECHO_C" >&6
3977if test "${libiberty_cv_declare_errno+set}" = set; then
3978  echo $ECHO_N "(cached) $ECHO_C" >&6
3979else
3980  cat >conftest.$ac_ext <<_ACEOF
3981/* confdefs.h.  */
3982_ACEOF
3983cat confdefs.h >>conftest.$ac_ext
3984cat >>conftest.$ac_ext <<_ACEOF
3985/* end confdefs.h.  */
3986#include <errno.h>
3987int
3988main ()
3989{
3990int x = errno;
3991  ;
3992  return 0;
3993}
3994_ACEOF
3995rm -f conftest.$ac_objext
3996if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3997  (eval $ac_compile) 2>conftest.er1
3998  ac_status=$?
3999  grep -v '^ *+' conftest.er1 >conftest.err
4000  rm -f conftest.er1
4001  cat conftest.err >&5
4002  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4003  (exit $ac_status); } &&
4004	 { ac_try='test -z "$ac_c_werror_flag"
4005			 || test ! -s conftest.err'
4006  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4007  (eval $ac_try) 2>&5
4008  ac_status=$?
4009  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4010  (exit $ac_status); }; } &&
4011	 { ac_try='test -s conftest.$ac_objext'
4012  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4013  (eval $ac_try) 2>&5
4014  ac_status=$?
4015  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4016  (exit $ac_status); }; }; then
4017  libiberty_cv_declare_errno=no
4018else
4019  echo "$as_me: failed program was:" >&5
4020sed 's/^/| /' conftest.$ac_ext >&5
4021
4022libiberty_cv_declare_errno=yes
4023fi
4024rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4025fi
4026echo "$as_me:$LINENO: result: $libiberty_cv_declare_errno" >&5
4027echo "${ECHO_T}$libiberty_cv_declare_errno" >&6
4028if test $libiberty_cv_declare_errno = yes
4029then
4030cat >>confdefs.h <<\_ACEOF
4031#define NEED_DECLARATION_ERRNO 1
4032_ACEOF
4033
4034fi
4035
4036
4037# Determine the size of an int for struct fibnode.
4038echo "$as_me:$LINENO: checking for egrep" >&5
4039echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4040if test "${ac_cv_prog_egrep+set}" = set; then
4041  echo $ECHO_N "(cached) $ECHO_C" >&6
4042else
4043  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4044    then ac_cv_prog_egrep='grep -E'
4045    else ac_cv_prog_egrep='egrep'
4046    fi
4047fi
4048echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4049echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4050 EGREP=$ac_cv_prog_egrep
4051
4052
4053echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4054echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4055if test "${ac_cv_header_stdc+set}" = set; then
4056  echo $ECHO_N "(cached) $ECHO_C" >&6
4057else
4058  cat >conftest.$ac_ext <<_ACEOF
4059/* confdefs.h.  */
4060_ACEOF
4061cat confdefs.h >>conftest.$ac_ext
4062cat >>conftest.$ac_ext <<_ACEOF
4063/* end confdefs.h.  */
4064#include <stdlib.h>
4065#include <stdarg.h>
4066#include <string.h>
4067#include <float.h>
4068
4069int
4070main ()
4071{
4072
4073  ;
4074  return 0;
4075}
4076_ACEOF
4077rm -f conftest.$ac_objext
4078if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4079  (eval $ac_compile) 2>conftest.er1
4080  ac_status=$?
4081  grep -v '^ *+' conftest.er1 >conftest.err
4082  rm -f conftest.er1
4083  cat conftest.err >&5
4084  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4085  (exit $ac_status); } &&
4086	 { ac_try='test -z "$ac_c_werror_flag"
4087			 || test ! -s conftest.err'
4088  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4089  (eval $ac_try) 2>&5
4090  ac_status=$?
4091  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4092  (exit $ac_status); }; } &&
4093	 { ac_try='test -s conftest.$ac_objext'
4094  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4095  (eval $ac_try) 2>&5
4096  ac_status=$?
4097  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4098  (exit $ac_status); }; }; then
4099  ac_cv_header_stdc=yes
4100else
4101  echo "$as_me: failed program was:" >&5
4102sed 's/^/| /' conftest.$ac_ext >&5
4103
4104ac_cv_header_stdc=no
4105fi
4106rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4107
4108if test $ac_cv_header_stdc = yes; then
4109  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4110  cat >conftest.$ac_ext <<_ACEOF
4111/* confdefs.h.  */
4112_ACEOF
4113cat confdefs.h >>conftest.$ac_ext
4114cat >>conftest.$ac_ext <<_ACEOF
4115/* end confdefs.h.  */
4116#include <string.h>
4117
4118_ACEOF
4119if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4120  $EGREP "memchr" >/dev/null 2>&1; then
4121  :
4122else
4123  ac_cv_header_stdc=no
4124fi
4125rm -f conftest*
4126
4127fi
4128
4129if test $ac_cv_header_stdc = yes; then
4130  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4131  cat >conftest.$ac_ext <<_ACEOF
4132/* confdefs.h.  */
4133_ACEOF
4134cat confdefs.h >>conftest.$ac_ext
4135cat >>conftest.$ac_ext <<_ACEOF
4136/* end confdefs.h.  */
4137#include <stdlib.h>
4138
4139_ACEOF
4140if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4141  $EGREP "free" >/dev/null 2>&1; then
4142  :
4143else
4144  ac_cv_header_stdc=no
4145fi
4146rm -f conftest*
4147
4148fi
4149
4150if test $ac_cv_header_stdc = yes; then
4151  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4152  if test "$cross_compiling" = yes; then
4153  :
4154else
4155  cat >conftest.$ac_ext <<_ACEOF
4156/* confdefs.h.  */
4157_ACEOF
4158cat confdefs.h >>conftest.$ac_ext
4159cat >>conftest.$ac_ext <<_ACEOF
4160/* end confdefs.h.  */
4161#include <ctype.h>
4162#if ((' ' & 0x0FF) == 0x020)
4163# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4164# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4165#else
4166# define ISLOWER(c) \
4167		   (('a' <= (c) && (c) <= 'i') \
4168		     || ('j' <= (c) && (c) <= 'r') \
4169		     || ('s' <= (c) && (c) <= 'z'))
4170# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4171#endif
4172
4173#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4174int
4175main ()
4176{
4177  int i;
4178  for (i = 0; i < 256; i++)
4179    if (XOR (islower (i), ISLOWER (i))
4180	|| toupper (i) != TOUPPER (i))
4181      exit(2);
4182  exit (0);
4183}
4184_ACEOF
4185rm -f conftest$ac_exeext
4186if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4187  (eval $ac_link) 2>&5
4188  ac_status=$?
4189  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4190  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4191  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4192  (eval $ac_try) 2>&5
4193  ac_status=$?
4194  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4195  (exit $ac_status); }; }; then
4196  :
4197else
4198  echo "$as_me: program exited with status $ac_status" >&5
4199echo "$as_me: failed program was:" >&5
4200sed 's/^/| /' conftest.$ac_ext >&5
4201
4202( exit $ac_status )
4203ac_cv_header_stdc=no
4204fi
4205rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4206fi
4207fi
4208fi
4209echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4210echo "${ECHO_T}$ac_cv_header_stdc" >&6
4211if test $ac_cv_header_stdc = yes; then
4212
4213cat >>confdefs.h <<\_ACEOF
4214#define STDC_HEADERS 1
4215_ACEOF
4216
4217fi
4218
4219# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4220
4221
4222
4223
4224
4225
4226
4227
4228
4229for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4230		  inttypes.h stdint.h unistd.h
4231do
4232as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4233echo "$as_me:$LINENO: checking for $ac_header" >&5
4234echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4235if eval "test \"\${$as_ac_Header+set}\" = set"; then
4236  echo $ECHO_N "(cached) $ECHO_C" >&6
4237else
4238  cat >conftest.$ac_ext <<_ACEOF
4239/* confdefs.h.  */
4240_ACEOF
4241cat confdefs.h >>conftest.$ac_ext
4242cat >>conftest.$ac_ext <<_ACEOF
4243/* end confdefs.h.  */
4244#include <$ac_header>
4245_ACEOF
4246if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4247  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4248  ac_status=$?
4249  grep -v '^ *+' conftest.er1 >conftest.err
4250  rm -f conftest.er1
4251  cat conftest.err >&5
4252  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4253  (exit $ac_status); } >/dev/null; then
4254  if test -s conftest.err; then
4255    ac_cpp_err=$ac_c_preproc_warn_flag
4256    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4257  else
4258    ac_cpp_err=
4259  fi
4260else
4261  ac_cpp_err=yes
4262fi
4263if test -z "$ac_cpp_err"; then
4264  eval "$as_ac_Header=yes"
4265else
4266  echo "$as_me: failed program was:" >&5
4267sed 's/^/| /' conftest.$ac_ext >&5
4268
4269  eval "$as_ac_Header=no"
4270fi
4271rm -f conftest.err conftest.$ac_ext
4272fi
4273echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4274echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4275if test `eval echo '${'$as_ac_Header'}'` = yes; then
4276  cat >>confdefs.h <<_ACEOF
4277#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4278_ACEOF
4279
4280fi
4281done
4282
4283
4284echo "$as_me:$LINENO: checking for int" >&5
4285echo $ECHO_N "checking for int... $ECHO_C" >&6
4286if test "${ac_cv_type_int+set}" = set; then
4287  echo $ECHO_N "(cached) $ECHO_C" >&6
4288else
4289  cat >conftest.$ac_ext <<_ACEOF
4290/* confdefs.h.  */
4291_ACEOF
4292cat confdefs.h >>conftest.$ac_ext
4293cat >>conftest.$ac_ext <<_ACEOF
4294/* end confdefs.h.  */
4295$ac_includes_default
4296int
4297main ()
4298{
4299if ((int *) 0)
4300  return 0;
4301if (sizeof (int))
4302  return 0;
4303  ;
4304  return 0;
4305}
4306_ACEOF
4307rm -f conftest.$ac_objext
4308if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4309  (eval $ac_compile) 2>conftest.er1
4310  ac_status=$?
4311  grep -v '^ *+' conftest.er1 >conftest.err
4312  rm -f conftest.er1
4313  cat conftest.err >&5
4314  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4315  (exit $ac_status); } &&
4316	 { ac_try='test -z "$ac_c_werror_flag"
4317			 || test ! -s conftest.err'
4318  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4319  (eval $ac_try) 2>&5
4320  ac_status=$?
4321  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4322  (exit $ac_status); }; } &&
4323	 { ac_try='test -s conftest.$ac_objext'
4324  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4325  (eval $ac_try) 2>&5
4326  ac_status=$?
4327  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4328  (exit $ac_status); }; }; then
4329  ac_cv_type_int=yes
4330else
4331  echo "$as_me: failed program was:" >&5
4332sed 's/^/| /' conftest.$ac_ext >&5
4333
4334ac_cv_type_int=no
4335fi
4336rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4337fi
4338echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
4339echo "${ECHO_T}$ac_cv_type_int" >&6
4340
4341echo "$as_me:$LINENO: checking size of int" >&5
4342echo $ECHO_N "checking size of int... $ECHO_C" >&6
4343if test "${ac_cv_sizeof_int+set}" = set; then
4344  echo $ECHO_N "(cached) $ECHO_C" >&6
4345else
4346  if test "$ac_cv_type_int" = yes; then
4347  # The cast to unsigned long works around a bug in the HP C Compiler
4348  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4349  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4350  # This bug is HP SR number 8606223364.
4351  if test "$cross_compiling" = yes; then
4352  # Depending upon the size, compute the lo and hi bounds.
4353cat >conftest.$ac_ext <<_ACEOF
4354/* confdefs.h.  */
4355_ACEOF
4356cat confdefs.h >>conftest.$ac_ext
4357cat >>conftest.$ac_ext <<_ACEOF
4358/* end confdefs.h.  */
4359$ac_includes_default
4360int
4361main ()
4362{
4363static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
4364test_array [0] = 0
4365
4366  ;
4367  return 0;
4368}
4369_ACEOF
4370rm -f conftest.$ac_objext
4371if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4372  (eval $ac_compile) 2>conftest.er1
4373  ac_status=$?
4374  grep -v '^ *+' conftest.er1 >conftest.err
4375  rm -f conftest.er1
4376  cat conftest.err >&5
4377  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4378  (exit $ac_status); } &&
4379	 { ac_try='test -z "$ac_c_werror_flag"
4380			 || test ! -s conftest.err'
4381  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4382  (eval $ac_try) 2>&5
4383  ac_status=$?
4384  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4385  (exit $ac_status); }; } &&
4386	 { ac_try='test -s conftest.$ac_objext'
4387  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4388  (eval $ac_try) 2>&5
4389  ac_status=$?
4390  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4391  (exit $ac_status); }; }; then
4392  ac_lo=0 ac_mid=0
4393  while :; do
4394    cat >conftest.$ac_ext <<_ACEOF
4395/* confdefs.h.  */
4396_ACEOF
4397cat confdefs.h >>conftest.$ac_ext
4398cat >>conftest.$ac_ext <<_ACEOF
4399/* end confdefs.h.  */
4400$ac_includes_default
4401int
4402main ()
4403{
4404static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4405test_array [0] = 0
4406
4407  ;
4408  return 0;
4409}
4410_ACEOF
4411rm -f conftest.$ac_objext
4412if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4413  (eval $ac_compile) 2>conftest.er1
4414  ac_status=$?
4415  grep -v '^ *+' conftest.er1 >conftest.err
4416  rm -f conftest.er1
4417  cat conftest.err >&5
4418  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4419  (exit $ac_status); } &&
4420	 { ac_try='test -z "$ac_c_werror_flag"
4421			 || test ! -s conftest.err'
4422  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4423  (eval $ac_try) 2>&5
4424  ac_status=$?
4425  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4426  (exit $ac_status); }; } &&
4427	 { ac_try='test -s conftest.$ac_objext'
4428  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4429  (eval $ac_try) 2>&5
4430  ac_status=$?
4431  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4432  (exit $ac_status); }; }; then
4433  ac_hi=$ac_mid; break
4434else
4435  echo "$as_me: failed program was:" >&5
4436sed 's/^/| /' conftest.$ac_ext >&5
4437
4438ac_lo=`expr $ac_mid + 1`
4439		    if test $ac_lo -le $ac_mid; then
4440		      ac_lo= ac_hi=
4441		      break
4442		    fi
4443		    ac_mid=`expr 2 '*' $ac_mid + 1`
4444fi
4445rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4446  done
4447else
4448  echo "$as_me: failed program was:" >&5
4449sed 's/^/| /' conftest.$ac_ext >&5
4450
4451cat >conftest.$ac_ext <<_ACEOF
4452/* confdefs.h.  */
4453_ACEOF
4454cat confdefs.h >>conftest.$ac_ext
4455cat >>conftest.$ac_ext <<_ACEOF
4456/* end confdefs.h.  */
4457$ac_includes_default
4458int
4459main ()
4460{
4461static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
4462test_array [0] = 0
4463
4464  ;
4465  return 0;
4466}
4467_ACEOF
4468rm -f conftest.$ac_objext
4469if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4470  (eval $ac_compile) 2>conftest.er1
4471  ac_status=$?
4472  grep -v '^ *+' conftest.er1 >conftest.err
4473  rm -f conftest.er1
4474  cat conftest.err >&5
4475  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4476  (exit $ac_status); } &&
4477	 { ac_try='test -z "$ac_c_werror_flag"
4478			 || test ! -s conftest.err'
4479  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4480  (eval $ac_try) 2>&5
4481  ac_status=$?
4482  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4483  (exit $ac_status); }; } &&
4484	 { ac_try='test -s conftest.$ac_objext'
4485  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4486  (eval $ac_try) 2>&5
4487  ac_status=$?
4488  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4489  (exit $ac_status); }; }; then
4490  ac_hi=-1 ac_mid=-1
4491  while :; do
4492    cat >conftest.$ac_ext <<_ACEOF
4493/* confdefs.h.  */
4494_ACEOF
4495cat confdefs.h >>conftest.$ac_ext
4496cat >>conftest.$ac_ext <<_ACEOF
4497/* end confdefs.h.  */
4498$ac_includes_default
4499int
4500main ()
4501{
4502static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
4503test_array [0] = 0
4504
4505  ;
4506  return 0;
4507}
4508_ACEOF
4509rm -f conftest.$ac_objext
4510if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4511  (eval $ac_compile) 2>conftest.er1
4512  ac_status=$?
4513  grep -v '^ *+' conftest.er1 >conftest.err
4514  rm -f conftest.er1
4515  cat conftest.err >&5
4516  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4517  (exit $ac_status); } &&
4518	 { ac_try='test -z "$ac_c_werror_flag"
4519			 || test ! -s conftest.err'
4520  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4521  (eval $ac_try) 2>&5
4522  ac_status=$?
4523  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4524  (exit $ac_status); }; } &&
4525	 { ac_try='test -s conftest.$ac_objext'
4526  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4527  (eval $ac_try) 2>&5
4528  ac_status=$?
4529  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4530  (exit $ac_status); }; }; then
4531  ac_lo=$ac_mid; break
4532else
4533  echo "$as_me: failed program was:" >&5
4534sed 's/^/| /' conftest.$ac_ext >&5
4535
4536ac_hi=`expr '(' $ac_mid ')' - 1`
4537		       if test $ac_mid -le $ac_hi; then
4538			 ac_lo= ac_hi=
4539			 break
4540		       fi
4541		       ac_mid=`expr 2 '*' $ac_mid`
4542fi
4543rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4544  done
4545else
4546  echo "$as_me: failed program was:" >&5
4547sed 's/^/| /' conftest.$ac_ext >&5
4548
4549ac_lo= ac_hi=
4550fi
4551rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4552fi
4553rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4554# Binary search between lo and hi bounds.
4555while test "x$ac_lo" != "x$ac_hi"; do
4556  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4557  cat >conftest.$ac_ext <<_ACEOF
4558/* confdefs.h.  */
4559_ACEOF
4560cat confdefs.h >>conftest.$ac_ext
4561cat >>conftest.$ac_ext <<_ACEOF
4562/* end confdefs.h.  */
4563$ac_includes_default
4564int
4565main ()
4566{
4567static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4568test_array [0] = 0
4569
4570  ;
4571  return 0;
4572}
4573_ACEOF
4574rm -f conftest.$ac_objext
4575if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4576  (eval $ac_compile) 2>conftest.er1
4577  ac_status=$?
4578  grep -v '^ *+' conftest.er1 >conftest.err
4579  rm -f conftest.er1
4580  cat conftest.err >&5
4581  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4582  (exit $ac_status); } &&
4583	 { ac_try='test -z "$ac_c_werror_flag"
4584			 || test ! -s conftest.err'
4585  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4586  (eval $ac_try) 2>&5
4587  ac_status=$?
4588  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4589  (exit $ac_status); }; } &&
4590	 { ac_try='test -s conftest.$ac_objext'
4591  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4592  (eval $ac_try) 2>&5
4593  ac_status=$?
4594  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4595  (exit $ac_status); }; }; then
4596  ac_hi=$ac_mid
4597else
4598  echo "$as_me: failed program was:" >&5
4599sed 's/^/| /' conftest.$ac_ext >&5
4600
4601ac_lo=`expr '(' $ac_mid ')' + 1`
4602fi
4603rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4604done
4605case $ac_lo in
4606?*) ac_cv_sizeof_int=$ac_lo;;
4607'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4608See \`config.log' for more details." >&5
4609echo "$as_me: error: cannot compute sizeof (int), 77
4610See \`config.log' for more details." >&2;}
4611   { (exit 1); exit 1; }; } ;;
4612esac
4613else
4614  if test "$cross_compiling" = yes; then
4615  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4616See \`config.log' for more details." >&5
4617echo "$as_me: error: cannot run test program while cross compiling
4618See \`config.log' for more details." >&2;}
4619   { (exit 1); exit 1; }; }
4620else
4621  cat >conftest.$ac_ext <<_ACEOF
4622/* confdefs.h.  */
4623_ACEOF
4624cat confdefs.h >>conftest.$ac_ext
4625cat >>conftest.$ac_ext <<_ACEOF
4626/* end confdefs.h.  */
4627$ac_includes_default
4628long longval () { return (long) (sizeof (int)); }
4629unsigned long ulongval () { return (long) (sizeof (int)); }
4630#include <stdio.h>
4631#include <stdlib.h>
4632int
4633main ()
4634{
4635
4636  FILE *f = fopen ("conftest.val", "w");
4637  if (! f)
4638    exit (1);
4639  if (((long) (sizeof (int))) < 0)
4640    {
4641      long i = longval ();
4642      if (i != ((long) (sizeof (int))))
4643	exit (1);
4644      fprintf (f, "%ld\n", i);
4645    }
4646  else
4647    {
4648      unsigned long i = ulongval ();
4649      if (i != ((long) (sizeof (int))))
4650	exit (1);
4651      fprintf (f, "%lu\n", i);
4652    }
4653  exit (ferror (f) || fclose (f) != 0);
4654
4655  ;
4656  return 0;
4657}
4658_ACEOF
4659rm -f conftest$ac_exeext
4660if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4661  (eval $ac_link) 2>&5
4662  ac_status=$?
4663  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4664  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4665  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4666  (eval $ac_try) 2>&5
4667  ac_status=$?
4668  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4669  (exit $ac_status); }; }; then
4670  ac_cv_sizeof_int=`cat conftest.val`
4671else
4672  echo "$as_me: program exited with status $ac_status" >&5
4673echo "$as_me: failed program was:" >&5
4674sed 's/^/| /' conftest.$ac_ext >&5
4675
4676( exit $ac_status )
4677{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4678See \`config.log' for more details." >&5
4679echo "$as_me: error: cannot compute sizeof (int), 77
4680See \`config.log' for more details." >&2;}
4681   { (exit 1); exit 1; }; }
4682fi
4683rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4684fi
4685fi
4686rm -f conftest.val
4687else
4688  ac_cv_sizeof_int=0
4689fi
4690fi
4691echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
4692echo "${ECHO_T}$ac_cv_sizeof_int" >&6
4693cat >>confdefs.h <<_ACEOF
4694#define SIZEOF_INT $ac_cv_sizeof_int
4695_ACEOF
4696
4697
4698
4699echo "$as_me:$LINENO: checking for uintptr_t" >&5
4700echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
4701if test "${ac_cv_type_uintptr_t+set}" = set; then
4702  echo $ECHO_N "(cached) $ECHO_C" >&6
4703else
4704  cat >conftest.$ac_ext <<_ACEOF
4705/* confdefs.h.  */
4706_ACEOF
4707cat confdefs.h >>conftest.$ac_ext
4708cat >>conftest.$ac_ext <<_ACEOF
4709/* end confdefs.h.  */
4710$ac_includes_default
4711int
4712main ()
4713{
4714if ((uintptr_t *) 0)
4715  return 0;
4716if (sizeof (uintptr_t))
4717  return 0;
4718  ;
4719  return 0;
4720}
4721_ACEOF
4722rm -f conftest.$ac_objext
4723if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4724  (eval $ac_compile) 2>conftest.er1
4725  ac_status=$?
4726  grep -v '^ *+' conftest.er1 >conftest.err
4727  rm -f conftest.er1
4728  cat conftest.err >&5
4729  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4730  (exit $ac_status); } &&
4731	 { ac_try='test -z "$ac_c_werror_flag"
4732			 || test ! -s conftest.err'
4733  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4734  (eval $ac_try) 2>&5
4735  ac_status=$?
4736  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4737  (exit $ac_status); }; } &&
4738	 { ac_try='test -s conftest.$ac_objext'
4739  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4740  (eval $ac_try) 2>&5
4741  ac_status=$?
4742  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4743  (exit $ac_status); }; }; then
4744  ac_cv_type_uintptr_t=yes
4745else
4746  echo "$as_me: failed program was:" >&5
4747sed 's/^/| /' conftest.$ac_ext >&5
4748
4749ac_cv_type_uintptr_t=no
4750fi
4751rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4752fi
4753echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
4754echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
4755if test $ac_cv_type_uintptr_t = yes; then
4756  :
4757else
4758
4759cat >>confdefs.h <<_ACEOF
4760#define uintptr_t unsigned long
4761_ACEOF
4762
4763fi
4764
4765
4766# Look for a 64-bit type.
4767echo "$as_me:$LINENO: checking for a 64-bit type" >&5
4768echo $ECHO_N "checking for a 64-bit type... $ECHO_C" >&6
4769if test "${liberty_cv_uint64+set}" = set; then
4770  echo $ECHO_N "(cached) $ECHO_C" >&6
4771else
4772  cat >conftest.$ac_ext <<_ACEOF
4773/* confdefs.h.  */
4774_ACEOF
4775cat confdefs.h >>conftest.$ac_ext
4776cat >>conftest.$ac_ext <<_ACEOF
4777/* end confdefs.h.  */
4778#ifdef HAVE_STDINT_H
4779#include <stdint.h>
4780#endif
4781int
4782main ()
4783{
4784extern uint64_t foo;
4785  ;
4786  return 0;
4787}
4788_ACEOF
4789rm -f conftest.$ac_objext
4790if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4791  (eval $ac_compile) 2>conftest.er1
4792  ac_status=$?
4793  grep -v '^ *+' conftest.er1 >conftest.err
4794  rm -f conftest.er1
4795  cat conftest.err >&5
4796  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4797  (exit $ac_status); } &&
4798	 { ac_try='test -z "$ac_c_werror_flag"
4799			 || test ! -s conftest.err'
4800  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4801  (eval $ac_try) 2>&5
4802  ac_status=$?
4803  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4804  (exit $ac_status); }; } &&
4805	 { ac_try='test -s conftest.$ac_objext'
4806  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4807  (eval $ac_try) 2>&5
4808  ac_status=$?
4809  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4810  (exit $ac_status); }; }; then
4811  liberty_cv_uint64=uint64_t
4812else
4813  echo "$as_me: failed program was:" >&5
4814sed 's/^/| /' conftest.$ac_ext >&5
4815
4816cat >conftest.$ac_ext <<_ACEOF
4817/* confdefs.h.  */
4818_ACEOF
4819cat confdefs.h >>conftest.$ac_ext
4820cat >>conftest.$ac_ext <<_ACEOF
4821/* end confdefs.h.  */
4822#ifdef HAVE_LIMITS_H
4823#include <limits.h>
4824#endif
4825#ifndef CHAR_BIT
4826#define CHAR_BIT 8
4827#endif
4828int
4829main ()
4830{
4831extern char foo[sizeof(long) * CHAR_BIT >= 64 ? 1 : -1];
4832  ;
4833  return 0;
4834}
4835_ACEOF
4836rm -f conftest.$ac_objext
4837if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4838  (eval $ac_compile) 2>conftest.er1
4839  ac_status=$?
4840  grep -v '^ *+' conftest.er1 >conftest.err
4841  rm -f conftest.er1
4842  cat conftest.err >&5
4843  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4844  (exit $ac_status); } &&
4845	 { ac_try='test -z "$ac_c_werror_flag"
4846			 || test ! -s conftest.err'
4847  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4848  (eval $ac_try) 2>&5
4849  ac_status=$?
4850  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4851  (exit $ac_status); }; } &&
4852	 { ac_try='test -s conftest.$ac_objext'
4853  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4854  (eval $ac_try) 2>&5
4855  ac_status=$?
4856  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4857  (exit $ac_status); }; }; then
4858  liberty_cv_uint64="unsigned long"
4859else
4860  echo "$as_me: failed program was:" >&5
4861sed 's/^/| /' conftest.$ac_ext >&5
4862
4863cat >conftest.$ac_ext <<_ACEOF
4864/* confdefs.h.  */
4865_ACEOF
4866cat confdefs.h >>conftest.$ac_ext
4867cat >>conftest.$ac_ext <<_ACEOF
4868/* end confdefs.h.  */
4869#ifdef HAVE_LIMITS_H
4870#include <limits.h>
4871#endif
4872#ifndef CHAR_BIT
4873#define CHAR_BIT 8
4874#endif
4875int
4876main ()
4877{
4878extern char foo[sizeof(long long) * CHAR_BIT >= 64 ? 1 : -1];
4879  ;
4880  return 0;
4881}
4882_ACEOF
4883rm -f conftest.$ac_objext
4884if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4885  (eval $ac_compile) 2>conftest.er1
4886  ac_status=$?
4887  grep -v '^ *+' conftest.er1 >conftest.err
4888  rm -f conftest.er1
4889  cat conftest.err >&5
4890  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4891  (exit $ac_status); } &&
4892	 { ac_try='test -z "$ac_c_werror_flag"
4893			 || test ! -s conftest.err'
4894  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4895  (eval $ac_try) 2>&5
4896  ac_status=$?
4897  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4898  (exit $ac_status); }; } &&
4899	 { ac_try='test -s conftest.$ac_objext'
4900  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4901  (eval $ac_try) 2>&5
4902  ac_status=$?
4903  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4904  (exit $ac_status); }; }; then
4905  liberty_cv_uint64="unsigned long long"
4906else
4907  echo "$as_me: failed program was:" >&5
4908sed 's/^/| /' conftest.$ac_ext >&5
4909
4910liberty_cv_uint64=none
4911fi
4912rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4913fi
4914rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4915fi
4916rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4917fi
4918
4919echo "$as_me:$LINENO: result: $liberty_cv_uint64" >&5
4920echo "${ECHO_T}$liberty_cv_uint64" >&6
4921if test "$liberty_cv_uint64" != none; then
4922
4923cat >>confdefs.h <<_ACEOF
4924#define UNSIGNED_64BIT_TYPE $liberty_cv_uint64
4925_ACEOF
4926
4927fi
4928
4929# Given the above check, we always have uintptr_t or a fallback
4930# definition.  So define HAVE_UINTPTR_T in case any imported code
4931# relies on it.
4932
4933cat >>confdefs.h <<\_ACEOF
4934#define HAVE_UINTPTR_T 1
4935_ACEOF
4936
4937
4938echo "$as_me:$LINENO: checking for pid_t" >&5
4939echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
4940if test "${ac_cv_type_pid_t+set}" = set; then
4941  echo $ECHO_N "(cached) $ECHO_C" >&6
4942else
4943  cat >conftest.$ac_ext <<_ACEOF
4944/* confdefs.h.  */
4945_ACEOF
4946cat confdefs.h >>conftest.$ac_ext
4947cat >>conftest.$ac_ext <<_ACEOF
4948/* end confdefs.h.  */
4949$ac_includes_default
4950int
4951main ()
4952{
4953if ((pid_t *) 0)
4954  return 0;
4955if (sizeof (pid_t))
4956  return 0;
4957  ;
4958  return 0;
4959}
4960_ACEOF
4961rm -f conftest.$ac_objext
4962if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4963  (eval $ac_compile) 2>conftest.er1
4964  ac_status=$?
4965  grep -v '^ *+' conftest.er1 >conftest.err
4966  rm -f conftest.er1
4967  cat conftest.err >&5
4968  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4969  (exit $ac_status); } &&
4970	 { ac_try='test -z "$ac_c_werror_flag"
4971			 || test ! -s conftest.err'
4972  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4973  (eval $ac_try) 2>&5
4974  ac_status=$?
4975  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4976  (exit $ac_status); }; } &&
4977	 { ac_try='test -s conftest.$ac_objext'
4978  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4979  (eval $ac_try) 2>&5
4980  ac_status=$?
4981  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4982  (exit $ac_status); }; }; then
4983  ac_cv_type_pid_t=yes
4984else
4985  echo "$as_me: failed program was:" >&5
4986sed 's/^/| /' conftest.$ac_ext >&5
4987
4988ac_cv_type_pid_t=no
4989fi
4990rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4991fi
4992echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
4993echo "${ECHO_T}$ac_cv_type_pid_t" >&6
4994if test $ac_cv_type_pid_t = yes; then
4995  :
4996else
4997
4998cat >>confdefs.h <<_ACEOF
4999#define pid_t int
5000_ACEOF
5001
5002fi
5003
5004
5005# This is the list of functions which libiberty will provide if they
5006# are not available on the host.
5007
5008funcs="asprintf"
5009funcs="$funcs atexit"
5010funcs="$funcs basename"
5011funcs="$funcs bcmp"
5012funcs="$funcs bcopy"
5013funcs="$funcs bsearch"
5014funcs="$funcs bzero"
5015funcs="$funcs calloc"
5016funcs="$funcs clock"
5017funcs="$funcs ffs"
5018funcs="$funcs getcwd"
5019funcs="$funcs getpagesize"
5020funcs="$funcs gettimeofday"
5021funcs="$funcs index"
5022funcs="$funcs insque"
5023funcs="$funcs memchr"
5024funcs="$funcs memcmp"
5025funcs="$funcs memcpy"
5026funcs="$funcs memmove"
5027funcs="$funcs mempcpy"
5028funcs="$funcs memset"
5029funcs="$funcs mkstemps"
5030funcs="$funcs putenv"
5031funcs="$funcs random"
5032funcs="$funcs rename"
5033funcs="$funcs rindex"
5034funcs="$funcs setenv"
5035funcs="$funcs snprintf"
5036funcs="$funcs sigsetmask"
5037funcs="$funcs stpcpy"
5038funcs="$funcs stpncpy"
5039funcs="$funcs strcasecmp"
5040funcs="$funcs strchr"
5041funcs="$funcs strdup"
5042funcs="$funcs strncasecmp"
5043funcs="$funcs strndup"
5044funcs="$funcs strrchr"
5045funcs="$funcs strstr"
5046funcs="$funcs strtod"
5047funcs="$funcs strtol"
5048funcs="$funcs strtoul"
5049funcs="$funcs strverscmp"
5050funcs="$funcs tmpnam"
5051funcs="$funcs vasprintf"
5052funcs="$funcs vfprintf"
5053funcs="$funcs vprintf"
5054funcs="$funcs vsnprintf"
5055funcs="$funcs vsprintf"
5056funcs="$funcs waitpid"
5057
5058# Also in the old function.def file: alloca, vfork, getopt.
5059
5060vars="sys_errlist sys_nerr sys_siglist"
5061
5062checkfuncs="getrusage on_exit psignal strerror strsignal sysconf times sbrk gettimeofday"
5063checkfuncs="$checkfuncs realpath canonicalize_file_name pstat_getstatic pstat_getdynamic sysmp"
5064checkfuncs="$checkfuncs getsysinfo table sysctl wait3 wait4 __fsetlocking"
5065
5066# These are neither executed nor required, but they help keep
5067# autoheader happy without adding a bunch of text to acconfig.h.
5068if test "x" = "y"; then
5069
5070
5071
5072
5073
5074
5075
5076
5077
5078
5079
5080
5081
5082
5083
5084
5085
5086
5087
5088
5089
5090
5091
5092
5093
5094
5095
5096
5097
5098
5099
5100
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
5138for ac_func in asprintf atexit basename bcmp bcopy bsearch bzero calloc clock \
5139  getcwd getpagesize gettimeofday index insque mkstemps memchr memcmp memcpy \
5140  memmove mempcpy memset putenv random rename rindex sigsetmask \
5141  strcasecmp setenv stpcpy stpncpy strchr strdup strncasecmp strndup strrchr strstr \
5142  strtod strtol strtoul strverscmp tmpnam vasprintf vfprintf vprintf \
5143  vsprintf waitpid getrusage on_exit psignal strerror strsignal \
5144  sysconf times sbrk gettimeofday ffs snprintf vsnprintf \
5145  pstat_getstatic pstat_getdynamic sysmp getsysinfo table sysctl wait3 wait4 \
5146  realpath canonicalize_file_name __fsetlocking
5147do
5148as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5149echo "$as_me:$LINENO: checking for $ac_func" >&5
5150echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5151if eval "test \"\${$as_ac_var+set}\" = set"; then
5152  echo $ECHO_N "(cached) $ECHO_C" >&6
5153else
5154  if test x$gcc_no_link = xyes; then
5155  { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
5156echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
5157   { (exit 1); exit 1; }; }
5158fi
5159cat >conftest.$ac_ext <<_ACEOF
5160/* confdefs.h.  */
5161_ACEOF
5162cat confdefs.h >>conftest.$ac_ext
5163cat >>conftest.$ac_ext <<_ACEOF
5164/* end confdefs.h.  */
5165/* System header to define __stub macros and hopefully few prototypes,
5166    which can conflict with char $ac_func (); below.
5167    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5168    <limits.h> exists even on freestanding compilers.  Under hpux,
5169    including <limits.h> includes <sys/time.h> and causes problems
5170    checking for functions defined therein.  */
5171#if defined (__STDC__) && !defined (_HPUX_SOURCE)
5172# include <limits.h>
5173#else
5174# include <assert.h>
5175#endif
5176/* Override any gcc2 internal prototype to avoid an error.  */
5177#ifdef __cplusplus
5178extern "C"
5179{
5180#endif
5181/* We use char because int might match the return type of a gcc2
5182   builtin and then its argument prototype would still apply.  */
5183char $ac_func ();
5184/* The GNU C library defines this for functions which it implements
5185    to always fail with ENOSYS.  Some functions are actually named
5186    something starting with __ and the normal name is an alias.  */
5187#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5188choke me
5189#else
5190char (*f) () = $ac_func;
5191#endif
5192#ifdef __cplusplus
5193}
5194#endif
5195
5196int
5197main ()
5198{
5199return f != $ac_func;
5200  ;
5201  return 0;
5202}
5203_ACEOF
5204rm -f conftest.$ac_objext conftest$ac_exeext
5205if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5206  (eval $ac_link) 2>conftest.er1
5207  ac_status=$?
5208  grep -v '^ *+' conftest.er1 >conftest.err
5209  rm -f conftest.er1
5210  cat conftest.err >&5
5211  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5212  (exit $ac_status); } &&
5213	 { ac_try='test -z "$ac_c_werror_flag"
5214			 || test ! -s conftest.err'
5215  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5216  (eval $ac_try) 2>&5
5217  ac_status=$?
5218  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5219  (exit $ac_status); }; } &&
5220	 { ac_try='test -s conftest$ac_exeext'
5221  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5222  (eval $ac_try) 2>&5
5223  ac_status=$?
5224  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5225  (exit $ac_status); }; }; then
5226  eval "$as_ac_var=yes"
5227else
5228  echo "$as_me: failed program was:" >&5
5229sed 's/^/| /' conftest.$ac_ext >&5
5230
5231eval "$as_ac_var=no"
5232fi
5233rm -f conftest.err conftest.$ac_objext \
5234      conftest$ac_exeext conftest.$ac_ext
5235fi
5236echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5237echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5238if test `eval echo '${'$as_ac_var'}'` = yes; then
5239  cat >>confdefs.h <<_ACEOF
5240#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5241_ACEOF
5242
5243fi
5244done
5245
5246  echo "$as_me:$LINENO: checking whether basename is declared" >&5
5247echo $ECHO_N "checking whether basename is declared... $ECHO_C" >&6
5248if test "${ac_cv_have_decl_basename+set}" = set; then
5249  echo $ECHO_N "(cached) $ECHO_C" >&6
5250else
5251  cat >conftest.$ac_ext <<_ACEOF
5252/* confdefs.h.  */
5253_ACEOF
5254cat confdefs.h >>conftest.$ac_ext
5255cat >>conftest.$ac_ext <<_ACEOF
5256/* end confdefs.h.  */
5257$ac_includes_default
5258int
5259main ()
5260{
5261#ifndef basename
5262  char *p = (char *) basename;
5263#endif
5264
5265  ;
5266  return 0;
5267}
5268_ACEOF
5269rm -f conftest.$ac_objext
5270if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5271  (eval $ac_compile) 2>conftest.er1
5272  ac_status=$?
5273  grep -v '^ *+' conftest.er1 >conftest.err
5274  rm -f conftest.er1
5275  cat conftest.err >&5
5276  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5277  (exit $ac_status); } &&
5278	 { ac_try='test -z "$ac_c_werror_flag"
5279			 || test ! -s conftest.err'
5280  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5281  (eval $ac_try) 2>&5
5282  ac_status=$?
5283  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5284  (exit $ac_status); }; } &&
5285	 { ac_try='test -s conftest.$ac_objext'
5286  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5287  (eval $ac_try) 2>&5
5288  ac_status=$?
5289  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5290  (exit $ac_status); }; }; then
5291  ac_cv_have_decl_basename=yes
5292else
5293  echo "$as_me: failed program was:" >&5
5294sed 's/^/| /' conftest.$ac_ext >&5
5295
5296ac_cv_have_decl_basename=no
5297fi
5298rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5299fi
5300echo "$as_me:$LINENO: result: $ac_cv_have_decl_basename" >&5
5301echo "${ECHO_T}$ac_cv_have_decl_basename" >&6
5302if test $ac_cv_have_decl_basename = yes; then
5303
5304cat >>confdefs.h <<_ACEOF
5305#define HAVE_DECL_BASENAME 1
5306_ACEOF
5307
5308
5309else
5310  cat >>confdefs.h <<_ACEOF
5311#define HAVE_DECL_BASENAME 0
5312_ACEOF
5313
5314
5315fi
5316echo "$as_me:$LINENO: checking whether ffs is declared" >&5
5317echo $ECHO_N "checking whether ffs is declared... $ECHO_C" >&6
5318if test "${ac_cv_have_decl_ffs+set}" = set; then
5319  echo $ECHO_N "(cached) $ECHO_C" >&6
5320else
5321  cat >conftest.$ac_ext <<_ACEOF
5322/* confdefs.h.  */
5323_ACEOF
5324cat confdefs.h >>conftest.$ac_ext
5325cat >>conftest.$ac_ext <<_ACEOF
5326/* end confdefs.h.  */
5327$ac_includes_default
5328int
5329main ()
5330{
5331#ifndef ffs
5332  char *p = (char *) ffs;
5333#endif
5334
5335  ;
5336  return 0;
5337}
5338_ACEOF
5339rm -f conftest.$ac_objext
5340if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5341  (eval $ac_compile) 2>conftest.er1
5342  ac_status=$?
5343  grep -v '^ *+' conftest.er1 >conftest.err
5344  rm -f conftest.er1
5345  cat conftest.err >&5
5346  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5347  (exit $ac_status); } &&
5348	 { ac_try='test -z "$ac_c_werror_flag"
5349			 || test ! -s conftest.err'
5350  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5351  (eval $ac_try) 2>&5
5352  ac_status=$?
5353  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5354  (exit $ac_status); }; } &&
5355	 { ac_try='test -s conftest.$ac_objext'
5356  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5357  (eval $ac_try) 2>&5
5358  ac_status=$?
5359  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5360  (exit $ac_status); }; }; then
5361  ac_cv_have_decl_ffs=yes
5362else
5363  echo "$as_me: failed program was:" >&5
5364sed 's/^/| /' conftest.$ac_ext >&5
5365
5366ac_cv_have_decl_ffs=no
5367fi
5368rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5369fi
5370echo "$as_me:$LINENO: result: $ac_cv_have_decl_ffs" >&5
5371echo "${ECHO_T}$ac_cv_have_decl_ffs" >&6
5372if test $ac_cv_have_decl_ffs = yes; then
5373
5374cat >>confdefs.h <<_ACEOF
5375#define HAVE_DECL_FFS 1
5376_ACEOF
5377
5378
5379else
5380  cat >>confdefs.h <<_ACEOF
5381#define HAVE_DECL_FFS 0
5382_ACEOF
5383
5384
5385fi
5386echo "$as_me:$LINENO: checking whether asprintf is declared" >&5
5387echo $ECHO_N "checking whether asprintf is declared... $ECHO_C" >&6
5388if test "${ac_cv_have_decl_asprintf+set}" = set; then
5389  echo $ECHO_N "(cached) $ECHO_C" >&6
5390else
5391  cat >conftest.$ac_ext <<_ACEOF
5392/* confdefs.h.  */
5393_ACEOF
5394cat confdefs.h >>conftest.$ac_ext
5395cat >>conftest.$ac_ext <<_ACEOF
5396/* end confdefs.h.  */
5397$ac_includes_default
5398int
5399main ()
5400{
5401#ifndef asprintf
5402  char *p = (char *) asprintf;
5403#endif
5404
5405  ;
5406  return 0;
5407}
5408_ACEOF
5409rm -f conftest.$ac_objext
5410if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5411  (eval $ac_compile) 2>conftest.er1
5412  ac_status=$?
5413  grep -v '^ *+' conftest.er1 >conftest.err
5414  rm -f conftest.er1
5415  cat conftest.err >&5
5416  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5417  (exit $ac_status); } &&
5418	 { ac_try='test -z "$ac_c_werror_flag"
5419			 || test ! -s conftest.err'
5420  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5421  (eval $ac_try) 2>&5
5422  ac_status=$?
5423  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5424  (exit $ac_status); }; } &&
5425	 { ac_try='test -s conftest.$ac_objext'
5426  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5427  (eval $ac_try) 2>&5
5428  ac_status=$?
5429  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5430  (exit $ac_status); }; }; then
5431  ac_cv_have_decl_asprintf=yes
5432else
5433  echo "$as_me: failed program was:" >&5
5434sed 's/^/| /' conftest.$ac_ext >&5
5435
5436ac_cv_have_decl_asprintf=no
5437fi
5438rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5439fi
5440echo "$as_me:$LINENO: result: $ac_cv_have_decl_asprintf" >&5
5441echo "${ECHO_T}$ac_cv_have_decl_asprintf" >&6
5442if test $ac_cv_have_decl_asprintf = yes; then
5443
5444cat >>confdefs.h <<_ACEOF
5445#define HAVE_DECL_ASPRINTF 1
5446_ACEOF
5447
5448
5449else
5450  cat >>confdefs.h <<_ACEOF
5451#define HAVE_DECL_ASPRINTF 0
5452_ACEOF
5453
5454
5455fi
5456echo "$as_me:$LINENO: checking whether vasprintf is declared" >&5
5457echo $ECHO_N "checking whether vasprintf is declared... $ECHO_C" >&6
5458if test "${ac_cv_have_decl_vasprintf+set}" = set; then
5459  echo $ECHO_N "(cached) $ECHO_C" >&6
5460else
5461  cat >conftest.$ac_ext <<_ACEOF
5462/* confdefs.h.  */
5463_ACEOF
5464cat confdefs.h >>conftest.$ac_ext
5465cat >>conftest.$ac_ext <<_ACEOF
5466/* end confdefs.h.  */
5467$ac_includes_default
5468int
5469main ()
5470{
5471#ifndef vasprintf
5472  char *p = (char *) vasprintf;
5473#endif
5474
5475  ;
5476  return 0;
5477}
5478_ACEOF
5479rm -f conftest.$ac_objext
5480if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5481  (eval $ac_compile) 2>conftest.er1
5482  ac_status=$?
5483  grep -v '^ *+' conftest.er1 >conftest.err
5484  rm -f conftest.er1
5485  cat conftest.err >&5
5486  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5487  (exit $ac_status); } &&
5488	 { ac_try='test -z "$ac_c_werror_flag"
5489			 || test ! -s conftest.err'
5490  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5491  (eval $ac_try) 2>&5
5492  ac_status=$?
5493  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5494  (exit $ac_status); }; } &&
5495	 { ac_try='test -s conftest.$ac_objext'
5496  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5497  (eval $ac_try) 2>&5
5498  ac_status=$?
5499  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5500  (exit $ac_status); }; }; then
5501  ac_cv_have_decl_vasprintf=yes
5502else
5503  echo "$as_me: failed program was:" >&5
5504sed 's/^/| /' conftest.$ac_ext >&5
5505
5506ac_cv_have_decl_vasprintf=no
5507fi
5508rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5509fi
5510echo "$as_me:$LINENO: result: $ac_cv_have_decl_vasprintf" >&5
5511echo "${ECHO_T}$ac_cv_have_decl_vasprintf" >&6
5512if test $ac_cv_have_decl_vasprintf = yes; then
5513
5514cat >>confdefs.h <<_ACEOF
5515#define HAVE_DECL_VASPRINTF 1
5516_ACEOF
5517
5518
5519else
5520  cat >>confdefs.h <<_ACEOF
5521#define HAVE_DECL_VASPRINTF 0
5522_ACEOF
5523
5524
5525fi
5526echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
5527echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
5528if test "${ac_cv_have_decl_snprintf+set}" = set; then
5529  echo $ECHO_N "(cached) $ECHO_C" >&6
5530else
5531  cat >conftest.$ac_ext <<_ACEOF
5532/* confdefs.h.  */
5533_ACEOF
5534cat confdefs.h >>conftest.$ac_ext
5535cat >>conftest.$ac_ext <<_ACEOF
5536/* end confdefs.h.  */
5537$ac_includes_default
5538int
5539main ()
5540{
5541#ifndef snprintf
5542  char *p = (char *) snprintf;
5543#endif
5544
5545  ;
5546  return 0;
5547}
5548_ACEOF
5549rm -f conftest.$ac_objext
5550if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5551  (eval $ac_compile) 2>conftest.er1
5552  ac_status=$?
5553  grep -v '^ *+' conftest.er1 >conftest.err
5554  rm -f conftest.er1
5555  cat conftest.err >&5
5556  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5557  (exit $ac_status); } &&
5558	 { ac_try='test -z "$ac_c_werror_flag"
5559			 || test ! -s conftest.err'
5560  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5561  (eval $ac_try) 2>&5
5562  ac_status=$?
5563  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5564  (exit $ac_status); }; } &&
5565	 { ac_try='test -s conftest.$ac_objext'
5566  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5567  (eval $ac_try) 2>&5
5568  ac_status=$?
5569  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5570  (exit $ac_status); }; }; then
5571  ac_cv_have_decl_snprintf=yes
5572else
5573  echo "$as_me: failed program was:" >&5
5574sed 's/^/| /' conftest.$ac_ext >&5
5575
5576ac_cv_have_decl_snprintf=no
5577fi
5578rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5579fi
5580echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
5581echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
5582if test $ac_cv_have_decl_snprintf = yes; then
5583
5584cat >>confdefs.h <<_ACEOF
5585#define HAVE_DECL_SNPRINTF 1
5586_ACEOF
5587
5588
5589else
5590  cat >>confdefs.h <<_ACEOF
5591#define HAVE_DECL_SNPRINTF 0
5592_ACEOF
5593
5594
5595fi
5596echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
5597echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
5598if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
5599  echo $ECHO_N "(cached) $ECHO_C" >&6
5600else
5601  cat >conftest.$ac_ext <<_ACEOF
5602/* confdefs.h.  */
5603_ACEOF
5604cat confdefs.h >>conftest.$ac_ext
5605cat >>conftest.$ac_ext <<_ACEOF
5606/* end confdefs.h.  */
5607$ac_includes_default
5608int
5609main ()
5610{
5611#ifndef vsnprintf
5612  char *p = (char *) vsnprintf;
5613#endif
5614
5615  ;
5616  return 0;
5617}
5618_ACEOF
5619rm -f conftest.$ac_objext
5620if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5621  (eval $ac_compile) 2>conftest.er1
5622  ac_status=$?
5623  grep -v '^ *+' conftest.er1 >conftest.err
5624  rm -f conftest.er1
5625  cat conftest.err >&5
5626  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5627  (exit $ac_status); } &&
5628	 { ac_try='test -z "$ac_c_werror_flag"
5629			 || test ! -s conftest.err'
5630  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5631  (eval $ac_try) 2>&5
5632  ac_status=$?
5633  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5634  (exit $ac_status); }; } &&
5635	 { ac_try='test -s conftest.$ac_objext'
5636  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5637  (eval $ac_try) 2>&5
5638  ac_status=$?
5639  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5640  (exit $ac_status); }; }; then
5641  ac_cv_have_decl_vsnprintf=yes
5642else
5643  echo "$as_me: failed program was:" >&5
5644sed 's/^/| /' conftest.$ac_ext >&5
5645
5646ac_cv_have_decl_vsnprintf=no
5647fi
5648rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5649fi
5650echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
5651echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
5652if test $ac_cv_have_decl_vsnprintf = yes; then
5653
5654cat >>confdefs.h <<_ACEOF
5655#define HAVE_DECL_VSNPRINTF 1
5656_ACEOF
5657
5658
5659else
5660  cat >>confdefs.h <<_ACEOF
5661#define HAVE_DECL_VSNPRINTF 0
5662_ACEOF
5663
5664
5665fi
5666
5667
5668
5669cat >>confdefs.h <<\_ACEOF
5670#define HAVE_SYS_ERRLIST 1
5671_ACEOF
5672
5673
5674cat >>confdefs.h <<\_ACEOF
5675#define HAVE_SYS_NERR 1
5676_ACEOF
5677
5678
5679cat >>confdefs.h <<\_ACEOF
5680#define HAVE_SYS_SIGLIST 1
5681_ACEOF
5682
5683fi
5684
5685# For each of these functions, if the host does not provide the
5686# function we want to put FN.o in LIBOBJS, and if the host does
5687# provide the function, we want to define HAVE_FN in config.h.
5688
5689setobjs=
5690CHECK=
5691target_header_dir=
5692if test -n "${with_target_subdir}"; then
5693
5694  # We are being configured as a target library.  AC_REPLACE_FUNCS
5695  # may not work correctly, because the compiler may not be able to
5696  # link executables.  Note that we may still be being configured
5697  # native.
5698
5699  # If we are being configured for newlib, we know which functions
5700  # newlib provide and which ones we will be expected to provide.
5701
5702  if test "x${with_newlib}" = "xyes"; then
5703    case $LIBOBJS in
5704    "asprintf.$ac_objext"   | \
5705  *" asprintf.$ac_objext"   | \
5706    "asprintf.$ac_objext "* | \
5707  *" asprintf.$ac_objext "* ) ;;
5708  *) LIBOBJS="$LIBOBJS asprintf.$ac_objext" ;;
5709esac
5710
5711    case $LIBOBJS in
5712    "basename.$ac_objext"   | \
5713  *" basename.$ac_objext"   | \
5714    "basename.$ac_objext "* | \
5715  *" basename.$ac_objext "* ) ;;
5716  *) LIBOBJS="$LIBOBJS basename.$ac_objext" ;;
5717esac
5718
5719    case $LIBOBJS in
5720    "insque.$ac_objext"   | \
5721  *" insque.$ac_objext"   | \
5722    "insque.$ac_objext "* | \
5723  *" insque.$ac_objext "* ) ;;
5724  *) LIBOBJS="$LIBOBJS insque.$ac_objext" ;;
5725esac
5726
5727    case $LIBOBJS in
5728    "random.$ac_objext"   | \
5729  *" random.$ac_objext"   | \
5730    "random.$ac_objext "* | \
5731  *" random.$ac_objext "* ) ;;
5732  *) LIBOBJS="$LIBOBJS random.$ac_objext" ;;
5733esac
5734
5735    case $LIBOBJS in
5736    "strdup.$ac_objext"   | \
5737  *" strdup.$ac_objext"   | \
5738    "strdup.$ac_objext "* | \
5739  *" strdup.$ac_objext "* ) ;;
5740  *) LIBOBJS="$LIBOBJS strdup.$ac_objext" ;;
5741esac
5742
5743    case $LIBOBJS in
5744    "vasprintf.$ac_objext"   | \
5745  *" vasprintf.$ac_objext"   | \
5746    "vasprintf.$ac_objext "* | \
5747  *" vasprintf.$ac_objext "* ) ;;
5748  *) LIBOBJS="$LIBOBJS vasprintf.$ac_objext" ;;
5749esac
5750
5751
5752    for f in $funcs; do
5753      case "$f" in
5754	asprintf | basename | insque | random | strdup | vasprintf)
5755	  ;;
5756	*)
5757	  n=HAVE_`echo $f | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5758	  cat >>confdefs.h <<_ACEOF
5759#define $n 1
5760_ACEOF
5761
5762	  ;;
5763      esac
5764    done
5765
5766    # newlib doesnt provide any of the variables in $vars, so we
5767    # dont have to check them here.
5768
5769    # Of the functions in $checkfuncs, newlib only has strerror.
5770    cat >>confdefs.h <<\_ACEOF
5771#define HAVE_STRERROR 1
5772_ACEOF
5773
5774
5775    setobjs=yes
5776
5777  fi
5778
5779  # If we are being configured for Mingw, we know which functions
5780  # Mingw provides and which ones we will be expected to provide.
5781
5782  case "${host}" in
5783  *-*-mingw*)
5784    case $LIBOBJS in
5785    "asprintf.$ac_objext"   | \
5786  *" asprintf.$ac_objext"   | \
5787    "asprintf.$ac_objext "* | \
5788  *" asprintf.$ac_objext "* ) ;;
5789  *) LIBOBJS="$LIBOBJS asprintf.$ac_objext" ;;
5790esac
5791
5792    case $LIBOBJS in
5793    "basename.$ac_objext"   | \
5794  *" basename.$ac_objext"   | \
5795    "basename.$ac_objext "* | \
5796  *" basename.$ac_objext "* ) ;;
5797  *) LIBOBJS="$LIBOBJS basename.$ac_objext" ;;
5798esac
5799
5800    case $LIBOBJS in
5801    "bcmp.$ac_objext"   | \
5802  *" bcmp.$ac_objext"   | \
5803    "bcmp.$ac_objext "* | \
5804  *" bcmp.$ac_objext "* ) ;;
5805  *) LIBOBJS="$LIBOBJS bcmp.$ac_objext" ;;
5806esac
5807
5808    case $LIBOBJS in
5809    "bcopy.$ac_objext"   | \
5810  *" bcopy.$ac_objext"   | \
5811    "bcopy.$ac_objext "* | \
5812  *" bcopy.$ac_objext "* ) ;;
5813  *) LIBOBJS="$LIBOBJS bcopy.$ac_objext" ;;
5814esac
5815
5816    case $LIBOBJS in
5817    "bzero.$ac_objext"   | \
5818  *" bzero.$ac_objext"   | \
5819    "bzero.$ac_objext "* | \
5820  *" bzero.$ac_objext "* ) ;;
5821  *) LIBOBJS="$LIBOBJS bzero.$ac_objext" ;;
5822esac
5823
5824    case $LIBOBJS in
5825    "clock.$ac_objext"   | \
5826  *" clock.$ac_objext"   | \
5827    "clock.$ac_objext "* | \
5828  *" clock.$ac_objext "* ) ;;
5829  *) LIBOBJS="$LIBOBJS clock.$ac_objext" ;;
5830esac
5831
5832    case $LIBOBJS in
5833    "ffs.$ac_objext"   | \
5834  *" ffs.$ac_objext"   | \
5835    "ffs.$ac_objext "* | \
5836  *" ffs.$ac_objext "* ) ;;
5837  *) LIBOBJS="$LIBOBJS ffs.$ac_objext" ;;
5838esac
5839
5840    case $LIBOBJS in
5841    "getpagesize.$ac_objext"   | \
5842  *" getpagesize.$ac_objext"   | \
5843    "getpagesize.$ac_objext "* | \
5844  *" getpagesize.$ac_objext "* ) ;;
5845  *) LIBOBJS="$LIBOBJS getpagesize.$ac_objext" ;;
5846esac
5847
5848    case $LIBOBJS in
5849    "index.$ac_objext"   | \
5850  *" index.$ac_objext"   | \
5851    "index.$ac_objext "* | \
5852  *" index.$ac_objext "* ) ;;
5853  *) LIBOBJS="$LIBOBJS index.$ac_objext" ;;
5854esac
5855
5856    case $LIBOBJS in
5857    "insque.$ac_objext"   | \
5858  *" insque.$ac_objext"   | \
5859    "insque.$ac_objext "* | \
5860  *" insque.$ac_objext "* ) ;;
5861  *) LIBOBJS="$LIBOBJS insque.$ac_objext" ;;
5862esac
5863
5864    case $LIBOBJS in
5865    "mempcpy.$ac_objext"   | \
5866  *" mempcpy.$ac_objext"   | \
5867    "mempcpy.$ac_objext "* | \
5868  *" mempcpy.$ac_objext "* ) ;;
5869  *) LIBOBJS="$LIBOBJS mempcpy.$ac_objext" ;;
5870esac
5871
5872    case $LIBOBJS in
5873    "mkstemps.$ac_objext"   | \
5874  *" mkstemps.$ac_objext"   | \
5875    "mkstemps.$ac_objext "* | \
5876  *" mkstemps.$ac_objext "* ) ;;
5877  *) LIBOBJS="$LIBOBJS mkstemps.$ac_objext" ;;
5878esac
5879
5880    case $LIBOBJS in
5881    "random.$ac_objext"   | \
5882  *" random.$ac_objext"   | \
5883    "random.$ac_objext "* | \
5884  *" random.$ac_objext "* ) ;;
5885  *) LIBOBJS="$LIBOBJS random.$ac_objext" ;;
5886esac
5887
5888    case $LIBOBJS in
5889    "rindex.$ac_objext"   | \
5890  *" rindex.$ac_objext"   | \
5891    "rindex.$ac_objext "* | \
5892  *" rindex.$ac_objext "* ) ;;
5893  *) LIBOBJS="$LIBOBJS rindex.$ac_objext" ;;
5894esac
5895
5896    case $LIBOBJS in
5897    "sigsetmask.$ac_objext"   | \
5898  *" sigsetmask.$ac_objext"   | \
5899    "sigsetmask.$ac_objext "* | \
5900  *" sigsetmask.$ac_objext "* ) ;;
5901  *) LIBOBJS="$LIBOBJS sigsetmask.$ac_objext" ;;
5902esac
5903
5904    case $LIBOBJS in
5905    "stpcpy.$ac_objext"   | \
5906  *" stpcpy.$ac_objext"   | \
5907    "stpcpy.$ac_objext "* | \
5908  *" stpcpy.$ac_objext "* ) ;;
5909  *) LIBOBJS="$LIBOBJS stpcpy.$ac_objext" ;;
5910esac
5911
5912    case $LIBOBJS in
5913    "stpncpy.$ac_objext"   | \
5914  *" stpncpy.$ac_objext"   | \
5915    "stpncpy.$ac_objext "* | \
5916  *" stpncpy.$ac_objext "* ) ;;
5917  *) LIBOBJS="$LIBOBJS stpncpy.$ac_objext" ;;
5918esac
5919
5920    case $LIBOBJS in
5921    "strndup.$ac_objext"   | \
5922  *" strndup.$ac_objext"   | \
5923    "strndup.$ac_objext "* | \
5924  *" strndup.$ac_objext "* ) ;;
5925  *) LIBOBJS="$LIBOBJS strndup.$ac_objext" ;;
5926esac
5927
5928    case $LIBOBJS in
5929    "strverscmp.$ac_objext"   | \
5930  *" strverscmp.$ac_objext"   | \
5931    "strverscmp.$ac_objext "* | \
5932  *" strverscmp.$ac_objext "* ) ;;
5933  *) LIBOBJS="$LIBOBJS strverscmp.$ac_objext" ;;
5934esac
5935
5936    case $LIBOBJS in
5937    "vasprintf.$ac_objext"   | \
5938  *" vasprintf.$ac_objext"   | \
5939    "vasprintf.$ac_objext "* | \
5940  *" vasprintf.$ac_objext "* ) ;;
5941  *) LIBOBJS="$LIBOBJS vasprintf.$ac_objext" ;;
5942esac
5943
5944    case $LIBOBJS in
5945    "waitpid.$ac_objext"   | \
5946  *" waitpid.$ac_objext"   | \
5947    "waitpid.$ac_objext "* | \
5948  *" waitpid.$ac_objext "* ) ;;
5949  *) LIBOBJS="$LIBOBJS waitpid.$ac_objext" ;;
5950esac
5951
5952
5953    for f in $funcs; do
5954      case "$f" in
5955	asprintf | basename | bcmp | bcopy | bzero | clock | ffs | getpagesize | index | insque | mempcpy | mkstemps | random | rindex | sigsetmask | stpcpy | stpncpy | strdup | strndup | strverscmp | vasprintf | waitpid)
5956	  ;;
5957	*)
5958	  n=HAVE_`echo $f | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5959	  cat >>confdefs.h <<_ACEOF
5960#define $n 1
5961_ACEOF
5962
5963	  ;;
5964      esac
5965    done
5966
5967    # Mingw doesnt provide any of the variables in $vars, so we
5968    # dont have to check them here.
5969
5970    # Of the functions in $checkfuncs, Mingw only has strerror.
5971    cat >>confdefs.h <<\_ACEOF
5972#define HAVE_STRERROR 1
5973_ACEOF
5974
5975
5976    setobjs=yes
5977    ;;
5978
5979  esac
5980
5981  # We may wish to install the target headers somewhere.
5982  # Check whether --enable-install-libiberty or --disable-install-libiberty was given.
5983if test "${enable_install_libiberty+set}" = set; then
5984  enableval="$enable_install_libiberty"
5985  enable_install_libiberty=$enableval
5986else
5987  enable_install_libiberty=no
5988fi;
5989  # Option parsed, now set things appropriately.
5990  case x"$enable_install_libiberty" in
5991    xyes|x)
5992      target_header_dir=libiberty
5993      ;;
5994    xno)
5995      target_header_dir=
5996      ;;
5997    *)
5998      # This could be sanity-checked in various ways...
5999      target_header_dir="${enable_install_libiberty}"
6000      ;;
6001  esac
6002
6003
6004else
6005
6006   # Not a target library, so we set things up to run the test suite.
6007   CHECK=really-check
6008
6009fi
6010
6011
6012
6013
6014case "${host}" in
6015  *-*-cygwin* | *