OSDN Git Service

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