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