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