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