OSDN Git Service

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