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